]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR middle-end/29943 (gcc generate incorrect alias symbols for PPC)
authorAlan Modra <amodra@bigpond.net.au>
Tue, 20 Feb 2007 01:25:41 +0000 (01:25 +0000)
committerAlan Modra <amodra@gcc.gnu.org>
Tue, 20 Feb 2007 01:25:41 +0000 (11:55 +1030)
PR target/29943
* varasm.c (use_blocks_for_decl_p): Return false for decls with
alias attribute.

From-SVN: r122148

gcc/ChangeLog
gcc/varasm.c

index 6bab1593e9121a64a746d14ebba5d9ecdf060009..cc601c8e6484dae3d8901999152ffad92342b9a7 100644 (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.
index cc83623097f652299ca575588356209073b131a9..567186418664c57969d2cc0168b5e904ca97fbe7 100644 (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;
 }