This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] pragma for __attribute__ ((__ms_struct__))
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: echristo at apple dot com (Eric Christopher)
- Cc: gcc-patches at gcc dot gnu dot org (gcc-patches at gcc dot gnu dot org Patches)
- Date: Thu, 27 Apr 2006 23:44:02 -0400 (EDT)
- Subject: Re: [patch] pragma for __attribute__ ((__ms_struct__))
>
> Customer of ours wants a pragma for the attribute so they can turn it
> on for a good chunk of their code, but not all since -mms-bitfields
> would interfere with the system headers. I made it a darwin only
> pragma since the consensus on #gcc was that it wasn't a useful pragma
> in general.
>
> I don't like the #if TARGET_MACHO in the target config files, but I
> can't think of a less intrusive way to do it.
>
> OK? Should I wait for 4.2 to branch? I'd prefer not since that could
> be a while and this is mostly OS specific, but I can. FWIW I've got a
> large bugfix patch for the ms_struct stuff coming shortly.
How are you handling objc encoding? I know right now attributes that
change the ABI are ignored but that does make this less right to add
a new feature and ignore the encoding for objc.
-- Pinski