aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Wilson <wilson@redhat.com>2002-10-10 22:29:05 +0000
committerJim Wilson <wilson@gcc.gnu.org>2002-10-10 15:29:05 -0700
commite89fe41c872ca6495ce74543ecb6824c203bab70 (patch)
treeae15add145a06ca69074623ea319b26391210681
parent64e8f3613227827e9f1c5b2e062902209891e0b7 (diff)
downloadgcc-e89fe41c872ca6495ce74543ecb6824c203bab70.zip
gcc-e89fe41c872ca6495ce74543ecb6824c203bab70.tar.gz
gcc-e89fe41c872ca6495ce74543ecb6824c203bab70.tar.bz2
Fix C++ FE attribute alias failure.
* decl.c (duplicate_decls): Don't call decl_attributes. From-SVN: r58034
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/decl.c1
2 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 32089cf..8261bc9 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,7 @@
+2002-10-10 Jim Wilson <wilson@redhat.com>
+
+ * decl.c (duplicate_decls): Don't call decl_attributes.
+
2002-10-09 Zack Weinberg <zack@codesourcery.com>
PR c/7353
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 8ab8a5e..ad083d0 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -3422,7 +3422,6 @@ duplicate_decls (newdecl, olddecl)
except for any that we copy here from the old type. */
DECL_ATTRIBUTES (newdecl)
= (*targetm.merge_decl_attributes) (olddecl, newdecl);
- decl_attributes (&newdecl, DECL_ATTRIBUTES (newdecl), 0);
if (TREE_CODE (newdecl) == TEMPLATE_DECL)
{