re PR middle-end/29943 (gcc generate incorrect alias symbols for PPC)

PR target/29943
	* varasm.c (use_blocks_for_decl_p): Return false for decls with
	alias attribute.

From-SVN: r122148
This commit is contained in:
Alan Modra 2007-02-20 01:25:41 +00:00 committed by Alan Modra
parent 426b876431
commit 10daf67706
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2007-02-20 Alan Modra <amodra@bigpond.net.au>
PR target/29943
* varasm.c (use_blocks_for_decl_p): Return false for decls with
alias attribute.
2007-02-19 Kazu Hirata <kazu@codesourcery.com>
* doc/invoke.texi (-ftree-lrs): Remove.

View file

@ -1218,6 +1218,10 @@ use_blocks_for_decl_p (tree decl)
if (DECL_INITIAL (decl) == decl)
return false;
/* If this decl is an alias, then we don't want to emit a definition. */
if (lookup_attribute ("alias", DECL_ATTRIBUTES (decl)))
return false;
return true;
}