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 ms_struct



On 27/04/2006, at 9:42 AM, Eric Christopher wrote:


So, here's the last patch. After talking with geoff yesterday he mentioned that I should unify the code in the darwin files which this does. It also makes it a little easier if people decide it's more useful as a general option. All of this helped minimize the effects on non-darwin ports for now as well. Next will be the patches to fix up the attribute.

Tested on x86-darwin, ppc-darwin.

OK?

I'm pretty sure the target-def.h change is wrong; notice the way that there's nothing like that for any other macro in target-def.h.


-eric

2006-04-25 Eric Christopher <echristo@apple.com>

* gcc.dg/pragma-ms_struct.c: New.

2006-04-25 Eric Christopher <echristo@apple.com>

	* target-def.h (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Bracket
	with #ifndef/#endif.
	* config/darwin-c.c (darwin_ms_struct): New.
	(darwin_pragma_ms_struct): Ditto.
	(darwin_set_default_type_attributes): Ditto.
	* config/darwin-protos.h (darwin_pragma_ms_struct): Declare.
	* config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS):
	Register ms_struct pragma.
	* config/i386/darwin.h (REGISTER_TARGET_PRAGMAS): Declare.
	(TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Ditto.
	* config/rs6000/rs6000.c (rs6000_set_default_type_attributes): Call
	darwin_set_default_type_attributes if TARGET_MACHO.

<pragma.diff.txt>

Attachment: smime.p7s
Description: S/MIME cryptographic signature


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