mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-12 09:24:34 +08:00
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
This commit is contained in:
parent
8239d6c313
commit
226c39d390
@ -1,3 +1,8 @@
|
|||||||
|
Tue Aug 25 12:54:57 1998 Jason Merrill <jason@yorick.cygnus.com>
|
||||||
|
|
||||||
|
* tree.c (valid_machine_attribute): Don't apply attributes to both
|
||||||
|
decl and type.
|
||||||
|
|
||||||
Tue Aug 25 12:23:20 PDT 1998 Richard Henderson <rth@cygnus.com>
|
Tue Aug 25 12:23:20 PDT 1998 Richard Henderson <rth@cygnus.com>
|
||||||
|
|
||||||
* reload.c (operands_match_p): Handle rtvecs.
|
* reload.c (operands_match_p): Handle rtvecs.
|
||||||
@ -86,8 +91,6 @@ Mon Aug 24 00:53:53 1998 Jason Merrill <jason@yorick.cygnus.com>
|
|||||||
|
|
||||||
* fixinc.irix: Add curses.h handling from fixinc.wrap.
|
* fixinc.irix: Add curses.h handling from fixinc.wrap.
|
||||||
|
|
||||||
Fri Aug 14 14:12:59 1998 Jason Merrill <jason@yorick.cygnus.com>
|
|
||||||
|
|
||||||
* c-common.c (combine_strings): Also set TREE_READONLY.
|
* c-common.c (combine_strings): Also set TREE_READONLY.
|
||||||
Change warn_write_strings to flag_const_strings.
|
Change warn_write_strings to flag_const_strings.
|
||||||
* c-decl.c, c-tree.h: Likewise.
|
* c-decl.c, c-tree.h: Likewise.
|
||||||
|
@ -3376,7 +3376,10 @@ valid_machine_attribute (attr_name, attr_args, decl, type)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef VALID_MACHINE_TYPE_ATTRIBUTE
|
#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),
|
tree attr = lookup_attribute (IDENTIFIER_POINTER (attr_name),
|
||||||
type_attr_list);
|
type_attr_list);
|
||||||
|
Loading…
Reference in New Issue
Block a user