diff options
author | Jason Merrill <jason@yorick.cygnus.com> | 1998-08-25 12:55:42 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1998-08-25 08:55:42 -0400 |
commit | 226c39d3902bcb038dfb82998e414223d5df94ec (patch) | |
tree | 795778a820399a4207f15119cb864bd5a827baff /gcc/tree.c | |
parent | 8239d6c313265003e2d28bd4b7fdd0b613ce5635 (diff) | |
download | gcc-226c39d3902bcb038dfb82998e414223d5df94ec.zip gcc-226c39d3902bcb038dfb82998e414223d5df94ec.tar.gz gcc-226c39d3902bcb038dfb82998e414223d5df94ec.tar.bz2 |
tree.c (valid_machine_attribute): Don't apply attributes to both decl and type.
* tree.c (valid_machine_attribute): Don't apply attributes to both
decl and type.
From-SVN: r21970
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -3376,7 +3376,10 @@ valid_machine_attribute (attr_name, attr_args, decl, type) #endif #ifdef VALID_MACHINE_TYPE_ATTRIBUTE - if (VALID_MACHINE_TYPE_ATTRIBUTE (type, type_attr_list, attr_name, attr_args)) + if (valid) + /* Don't apply the attribute to both the decl and the type. */; + else if (VALID_MACHINE_TYPE_ATTRIBUTE (type, type_attr_list, attr_name, + attr_args)) { tree attr = lookup_attribute (IDENTIFIER_POINTER (attr_name), type_attr_list); |