Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
d984c8ef
Commit
d984c8ef
authored
Apr 29, 2011
by
Xinliang David Li
Committed by
Xinliang David Li
Apr 29, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use tls for ic vars
From-SVN: r173177
parent
12578be7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletions
+18
-1
gcc/ChangeLog
+7
-0
gcc/coverage.c
+1
-1
gcc/tree-profile.c
+10
-0
No files found.
gcc/ChangeLog
View file @
d984c8ef
2011-04-27 Xinliang David Li <davidxl@google.com>
* tree-profile.c (init_ic_make_global_vars): Set
tls attribute on ic vars.
* coverage.c (coverage_end_function): Initialize
function_list with zero.
2011-04-29 Richard Guenther <rguenther@suse.de>
* builtins.c (fold_builtin_classify_type): Use integer_type_node
...
...
gcc/coverage.c
View file @
d984c8ef
...
...
@@ -647,7 +647,7 @@ coverage_end_function (unsigned lineno_checksum, unsigned cfg_checksum)
{
struct
function_list
*
item
;
item
=
XNEW
(
struct
function_list
);
item
=
X
C
NEW
(
struct
function_list
);
*
functions_tail
=
item
;
functions_tail
=
&
item
->
next
;
...
...
gcc/tree-profile.c
View file @
d984c8ef
...
...
@@ -44,6 +44,8 @@ along with GCC; see the file COPYING3. If not see
#include "value-prof.h"
#include "cgraph.h"
#include "profile.h"
#include "target.h"
#include "output.h"
static
GTY
(())
tree
gcov_type_node
;
static
GTY
(())
tree
gcov_type_tmp_var
;
...
...
@@ -80,6 +82,10 @@ init_ic_make_global_vars (void)
TREE_PUBLIC
(
ic_void_ptr_var
)
=
0
;
DECL_ARTIFICIAL
(
ic_void_ptr_var
)
=
1
;
DECL_INITIAL
(
ic_void_ptr_var
)
=
NULL
;
if
(
targetm
.
have_tls
)
DECL_TLS_MODEL
(
ic_void_ptr_var
)
=
decl_default_tls_model
(
ic_void_ptr_var
);
varpool_finalize_decl
(
ic_void_ptr_var
);
varpool_mark_needed_node
(
varpool_node
(
ic_void_ptr_var
));
...
...
@@ -92,6 +98,10 @@ init_ic_make_global_vars (void)
TREE_PUBLIC
(
ic_gcov_type_ptr_var
)
=
0
;
DECL_ARTIFICIAL
(
ic_gcov_type_ptr_var
)
=
1
;
DECL_INITIAL
(
ic_gcov_type_ptr_var
)
=
NULL
;
if
(
targetm
.
have_tls
)
DECL_TLS_MODEL
(
ic_gcov_type_ptr_var
)
=
decl_default_tls_model
(
ic_gcov_type_ptr_var
);
varpool_finalize_decl
(
ic_gcov_type_ptr_var
);
varpool_mark_needed_node
(
varpool_node
(
ic_gcov_type_ptr_var
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment