aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-03-09 21:33:58 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1995-03-09 21:33:58 -0500
commiteed328336cc5d4d4c217512a05a0c890e41c72ad (patch)
treefe680f14d5a0ba3cd7f55ea4b68e9c71d8b7a6f5 /gcc/c-common.c
parentee7d912e9bee15749519edd9775a4eff14dc6f25 (diff)
downloadgcc-eed328336cc5d4d4c217512a05a0c890e41c72ad.zip
gcc-eed328336cc5d4d4c217512a05a0c890e41c72ad.tar.gz
gcc-eed328336cc5d4d4c217512a05a0c890e41c72ad.tar.bz2
(decl_attributes): Handle prefix and suffix attributes the same way.
From-SVN: r9152
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index 6c60d6d..49bafc9 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -211,15 +211,7 @@ decl_attributes (decl, attributes, prefix_attributes)
tree a, name, args, type;
type = TREE_TYPE (decl);
-
- for (a = prefix_attributes; a; a = TREE_CHAIN (a))
- if (!(name = TREE_VALUE (a)))
- continue;
- else if (valid_machine_attribute (name, decl, type))
- ;
- else
- warning ("`%s' attribute directive ignored",
- IDENTIFIER_POINTER (name));
+ attributes = chainon (prefix_attributes, attributes);
for (a = attributes; a; a = TREE_CHAIN (a))
if (!(name = TREE_VALUE (a)))