This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: target-specific type attributes
- To: richard dot earnshaw at arm dot com
- Subject: Re: target-specific type attributes
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Fri, 17 Jul 1998 01:15:38 -0600
- cc: egcs-patches at cygnus dot com
- Reply-To: law at cygnus dot com
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