summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authoramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>2007-02-20 01:25:41 +0000
committeramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>2007-02-20 01:25:41 +0000
commit53861d5d19cd1b5ee83842e867931fa37ab4743a (patch)
tree779187bce8764e0ba53ce03d7c86da84fd27e65f /gcc
parenteb12bb75f79714e966907f6668c05500bc17b8e7 (diff)
downloadgcc-53861d5d19cd1b5ee83842e867931fa37ab4743a.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/trunk@122148 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/varasm.c4
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6bab1593e91..cc601c8e648 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/varasm.c b/gcc/varasm.c
index cc83623097f..56718641866 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;
}