summaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authoramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>2007-02-20 01:28:01 +0000
committeramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>2007-02-20 01:28:01 +0000
commit076d4979926290cf742ff1a89d0bfeaa9f4dfe2a (patch)
treeccbea0dcb95ee91788293056e54b56052c8ca329 /gcc/varasm.c
parentacbfdc5ae4785397fd7ce724a3359d8d542fc0fc (diff)
downloadgcc-076d4979926290cf742ff1a89d0bfeaa9f4dfe2a.tar.gz
PR target/29943
* varasm.c (use_blocks_for_decl_p): Return false for decls with alias attribute. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_2-branch@122149 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r--gcc/varasm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c
index 819add8afba..b2d6f7aec25 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -981,6 +981,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;
}