From: Alan Modra Date: Tue, 20 Feb 2007 01:25:41 +0000 (+0000) Subject: re PR middle-end/29943 (gcc generate incorrect alias symbols for PPC) X-Git-Tag: releases/gcc-4.3.0~6705 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=10daf6770623cc576f4b307abb3cceb5cf0de3e7;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6bab1593e912..cc601c8e6484 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2007-02-20 Alan Modra + + PR target/29943 + * varasm.c (use_blocks_for_decl_p): Return false for decls with + alias attribute. + 2007-02-19 Kazu Hirata * doc/invoke.texi (-ftree-lrs): Remove. diff --git a/gcc/varasm.c b/gcc/varasm.c index cc83623097f6..567186418664 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -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; }