This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: target-specific type attributes



  In message <199807161257.NAA07142@sun52.NIS.cambridge>you write:
  > Currently 
  > 
  > struct f {char a, int b;} __attribute__((packed));
  > 
  > declares a packed structure as expected, but 
  > 
  > struct f {char a, int b;} __attribute__((md-specific-attr));
  > 
  > quietly fails to give the desired result.  This is because 
  > valid_machine_attribute creates a new type variant of struct f rather than 
  > modifying the base type.  It then promptly discards it.
  > 
  > If possible, I'd like the following patch to be in egcs-1.1;
  > 
  > <date>  Richard Earnshaw (rearnsha@arm.com)
  > 
  > 	* tree.c (valid_machine_attribute): Only create a new type variant if
  > 	there is a decl to use it.
This is OK for both the mainline sources and egcs-1.1.

Thanks
jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]