diff options
author | Nathan Sidwell <nathan@acm.org> | 2015-12-23 18:17:19 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2015-12-23 18:17:19 +0000 |
commit | 97b7f1385a99158f1cd445e6c44bfe70fdad6576 (patch) | |
tree | 7b6abd6791e997d5364b5b11a3b4e9392e851b40 /gcc/cgraph.h | |
parent | bd602b7fcb5fdd849e1054cb5a49c47e7dd382ee (diff) | |
download | gcc-97b7f1385a99158f1cd445e6c44bfe70fdad6576.zip gcc-97b7f1385a99158f1cd445e6c44bfe70fdad6576.tar.gz gcc-97b7f1385a99158f1cd445e6c44bfe70fdad6576.tar.bz2 |
cgraph.h (decl_in_symtab_p): Revert check DECL_IN_CONSTANT_POOL.
gcc/
* cgraph.h (decl_in_symtab_p): Revert check DECL_IN_CONSTANT_POOL.
gcc/testsuite/
* gcc.dg/alias-15.c: Revert.
From-SVN: r231931
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r-- | gcc/cgraph.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h index fe7c194..ba14215 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -2294,19 +2294,13 @@ symtab_node::real_symbol_p (void) } /* Return true if DECL should have entry in symbol table if used. - Those are functions and static & external non-constpool variables. - We do not expect constant pool variables in the varpool, as they're - not related to other variables, and simply lazily inserting them - using the regular interface results in varpool thinking they are - externally provided -- which results in erroneous assembly emission - as an undefined decl. */ + Those are functions and static & external veriables*/ static inline bool decl_in_symtab_p (const_tree decl) { return (TREE_CODE (decl) == FUNCTION_DECL || (TREE_CODE (decl) == VAR_DECL - && !DECL_IN_CONSTANT_POOL (decl) && (TREE_STATIC (decl) || DECL_EXTERNAL (decl)))); } |