diff options
author | aldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-09-24 19:50:24 +0000 |
---|---|---|
committer | aldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-09-24 19:50:24 +0000 |
commit | 16d41ae2f416c1a236bafe0131601894d74824c7 (patch) | |
tree | 3229e32dcbb119c7b007bb52db4079090ff3386b /gcc/lto | |
parent | 23f14ac682d680e94a5ecbb007c363048669af53 (diff) | |
download | gcc-16d41ae2f416c1a236bafe0131601894d74824c7.tar.gz |
* cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
varpool.c: Rename all instances of DECL_ABSTRACT to
DECL_ABSTRACT_P.
cp/
* class.c, decl.c, optimize.c: Rename all instances of
DECL_ABSTRACT to DECL_ABSTRACT_P.
lto/
* lto-symtab.c, lto.c: Rename all instances of DECL_ABSTRACT to
DECL_ABSTRACT_P.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215567 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto')
-rw-r--r-- | gcc/lto/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/lto/lto-symtab.c | 6 | ||||
-rw-r--r-- | gcc/lto/lto.c | 4 |
3 files changed, 10 insertions, 5 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index 762296cc6b7..f1e25db96da 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,8 @@ +2014-09-24 Aldy Hernandez <aldyh@redhat.com> + + * lto-symtab.c, lto.c: Rename all instances of DECL_ABSTRACT to + DECL_ABSTRACT_P. + 2014-09-23 Andi Kleen <ak@linux.intel.com> * lto-partition.c (node_cmp): Update comment. diff --git a/gcc/lto/lto-symtab.c b/gcc/lto/lto-symtab.c index cf000760713..4ec1a73f2b1 100644 --- a/gcc/lto/lto-symtab.c +++ b/gcc/lto/lto-symtab.c @@ -653,7 +653,7 @@ lto_symtab_merge_symbols (void) /* Abstract functions may have duplicated cgraph nodes attached; remove them. */ - else if (cnode && DECL_ABSTRACT (cnode->decl) + else if (cnode && DECL_ABSTRACT_P (cnode->decl) && (cnode2 = cgraph_node::get (node->decl)) && cnode2 != cnode) cnode2->remove (); @@ -675,8 +675,8 @@ lto_symtab_prevailing_decl (tree decl) if ((!TREE_PUBLIC (decl) && !DECL_EXTERNAL (decl)) || is_builtin_fn (decl)) return decl; - /* DECL_ABSTRACTs are their own prevailng decl. */ - if (TREE_CODE (decl) == FUNCTION_DECL && DECL_ABSTRACT (decl)) + /* DECL_ABSTRACT_Ps are their own prevailing decl. */ + if (TREE_CODE (decl) == FUNCTION_DECL && DECL_ABSTRACT_P (decl)) return decl; /* Likewise builtins are their own prevailing decl. This preserves diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index 570b1f7c35f..6cbb178db59 100644 --- a/gcc/lto/lto.c +++ b/gcc/lto/lto.c @@ -1048,7 +1048,7 @@ lto_register_function_decl_in_symtab (struct data_in *data_in, tree decl, { /* If this variable has already been declared, queue the declaration for merging. */ - if (TREE_PUBLIC (decl) && !DECL_ABSTRACT (decl)) + if (TREE_PUBLIC (decl) && !DECL_ABSTRACT_P (decl)) register_resolution (data_in->file_data, decl, get_resolution (data_in, ix)); } @@ -1249,7 +1249,7 @@ compare_tree_sccs_1 (tree t1, tree t2, tree **map) compare_values (DECL_NONLOCAL); compare_values (DECL_VIRTUAL_P); compare_values (DECL_IGNORED_P); - compare_values (DECL_ABSTRACT); + compare_values (DECL_ABSTRACT_P); compare_values (DECL_ARTIFICIAL); compare_values (DECL_USER_ALIGN); compare_values (DECL_PRESERVE_P); |