diff options
author | amodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-02-20 01:28:01 +0000 |
---|---|---|
committer | amodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-02-20 01:28:01 +0000 |
commit | 076d4979926290cf742ff1a89d0bfeaa9f4dfe2a (patch) | |
tree | ccbea0dcb95ee91788293056e54b56052c8ca329 /gcc/varasm.c | |
parent | acbfdc5ae4785397fd7ce724a3359d8d542fc0fc (diff) | |
download | gcc-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.c | 4 |
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; } |