diff options
author | Stan Cox <coxs@gnu.org> | 1996-05-06 20:58:44 +0000 |
---|---|---|
committer | Stan Cox <coxs@gnu.org> | 1996-05-06 20:58:44 +0000 |
commit | 17c1a44f7551462e48911ff83394ea9f828f0d00 (patch) | |
tree | aeff2315fab757d687f1967d9f90b4c67ecc029d /gcc | |
parent | fc0c675f04a8eb8d197c6e924c6f2d4198a69041 (diff) | |
download | gcc-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.c | 2 |
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) |