machine attribute patch

Jason Merrill jason@cygnus.com
Mon Aug 24 12:46:00 GMT 1998


A prefix attribute in a decl should only apply to the decl.

1998-08-24  Jason Merrill  <jason@yorick.cygnus.com>

	* tree.c (valid_machine_attribute): Don't apply attributes to both
	decl and type.

Index: tree.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/tree.c,v
retrieving revision 1.159.2.1
diff -c -p -r1.159.2.1 tree.c
*** tree.c	1998/07/22 20:52:11	1.159.2.1
--- tree.c	1998/08/24 19:41:30
*************** valid_machine_attribute (attr_name, attr
*** 3376,3382 ****
  #endif
  
  #ifdef VALID_MACHINE_TYPE_ATTRIBUTE
!   if (VALID_MACHINE_TYPE_ATTRIBUTE (type, type_attr_list, attr_name, attr_args))
      {
        tree attr = lookup_attribute (IDENTIFIER_POINTER (attr_name),
  				    type_attr_list);
--- 3376,3385 ----
  #endif
  
  #ifdef VALID_MACHINE_TYPE_ATTRIBUTE
!   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);



More information about the Gcc-patches mailing list