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
This commit is contained in:
parent
bd602b7fcb
commit
97b7f1385a
|
@ -1,3 +1,7 @@
|
|||
2015-12-23 Nathan Sidwell <nathan@acm.org>
|
||||
|
||||
* cgraph.h (decl_in_symtab_p): Revert check DECL_IN_CONSTANT_POOL.
|
||||
|
||||
2015-12-23 Nathan Sidwell <nathan@acm.org>
|
||||
|
||||
* config/nvptx/nvptx-protos.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))));
|
||||
}
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
2015-12-23 Nathan Sidwell <nathan@acm.org>
|
||||
|
||||
* gcc.dg/alias-15.c: Revert.
|
||||
|
||||
2015-12-23 James Greenhalgh <james.greenhalgh@arm.com>
|
||||
|
||||
PR testsuite/68232
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-additional-options "-O2 -fdump-ipa-cgraph" } */
|
||||
|
||||
/* RTL-level CSE shouldn't introduce LCO (for the string) into varpool */
|
||||
char *p;
|
||||
|
||||
void foo ()
|
||||
{
|
||||
p = "abc\n";
|
||||
|
||||
while (*p != '\n')
|
||||
p++;
|
||||
}
|
||||
|
||||
/* { dg-final { scan-ipa-dump-not "LC0" "cgraph" } } */
|
Loading…
Reference in New Issue