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]
Other format: [Raw text]

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


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