aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorStan Cox <coxs@gnu.org>1996-05-06 20:58:44 +0000
committerStan Cox <coxs@gnu.org>1996-05-06 20:58:44 +0000
commit17c1a44f7551462e48911ff83394ea9f828f0d00 (patch)
treeaeff2315fab757d687f1967d9f90b4c67ecc029d /gcc
parentfc0c675f04a8eb8d197c6e924c6f2d4198a69041 (diff)
downloadgcc-17c1a44f7551462e48911ff83394ea9f828f0d00.zip
gcc-17c1a44f7551462e48911ff83394ea9f828f0d00.tar.gz
gcc-17c1a44f7551462e48911ff83394ea9f828f0d00.tar.bz2
(decl_attributes): Chain multiple attributes correctly.
From-SVN: r11942
Diffstat (limited to 'gcc')
-rw-r--r--gcc/c-common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index 8a834dd..3f6b28e 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -322,6 +322,8 @@ decl_attributes (node, attributes, prefix_attributes)
if (! valid_machine_attribute (name, args, decl, type))
warning ("`%s' attribute directive ignored",
IDENTIFIER_POINTER (name));
+ else if (decl != 0)
+ type = TREE_TYPE (decl);
continue;
}
else if (attrtab[i].decl_req && decl == 0)