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]

[patch] fix i386 darwin pragma pack handling


So, for rs6000 we define HANDLE_SYSV_PRAGMA but don't for x86. We should. This does that.

Tested on i386-darwin and x86_64-darwin. OK?

-eric

2006-09-07 Eric Christopher <echristo@apple.com>

	* config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Move to...
	* config/darwin.h: ... here.
Index: darwin.h
===================================================================
--- darwin.h	(revision 116758)
+++ darwin.h	(working copy)
@@ -825,6 +825,9 @@ enum machopic_addr_class {
 #undef TARGET_ASM_NAMED_SECTION
 #define TARGET_ASM_NAMED_SECTION darwin_asm_named_section
 
+/* Handle pragma weak and pragma pack.  */
+#define HANDLE_SYSV_PRAGMA 1
+
 #define DARWIN_REGISTER_TARGET_PRAGMAS()			\
   do {								\
     c_register_pragma (0, "mark", darwin_pragma_ignore);	\
Index: rs6000/darwin.h
===================================================================
--- rs6000/darwin.h	(revision 116758)
+++ rs6000/darwin.h	(working copy)
@@ -52,10 +52,6 @@
 /* Translate config/rs6000/darwin.opt to config/darwin.h.  */
 #define TARGET_DYNAMIC_NO_PIC (TARGET_MACHO_DYNAMIC_NO_PIC)
 
-/* Handle #pragma weak and #pragma pack.  */
-#define HANDLE_SYSV_PRAGMA 1
-
-
 #define TARGET_OS_CPP_BUILTINS()                \
   do                                            \
     {                                           \

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