OSDN Git Service

2000-12-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
authorsirl <sirl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Dec 2000 21:38:18 +0000 (21:38 +0000)
committersirl <sirl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Dec 2000 21:38:18 +0000 (21:38 +0000)
* config/rs6000/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Move from here...
* config/rs6000/sysv4.h (HANDLE_PRAGMA_PACK_PUSH_POP): ...to here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38211 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/rs6000/linux.h
gcc/config/rs6000/sysv4.h

index ea0ea44..65a540a 100644 (file)
@@ -1,3 +1,8 @@
+2000-12-12  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
+
+       * config/rs6000/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Move from here...
+       * config/rs6000/sysv4.h (HANDLE_PRAGMA_PACK_PUSH_POP): ...to here.
+
 2000-12-12  Jim Wilson  <wilson@redhat.com>
 
        * rtlanal.c (may_trap_p): Check operand modes of LE, LT, GE, and GT.
@@ -24,7 +29,7 @@
        * configure.in (HAVE_AS_DWARF2_DEBUG_LINE): Enable .file/.loc check
        for powerpc*-*-*.
        * configure: Regenerated.
-       * config/rs6000/linux.h (HANDLE_PRAGMA_PUSH_POP): Define.
+       * config/rs6000/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
        * config/rs6000/rs6000.c (rs6000_unique_section): Use
        STRIP_NAME_ENCODING.
 
index 66a3b38..f0cf9d1 100644 (file)
@@ -62,8 +62,6 @@ Boston, MA 02111-1307, USA.  */
 #undef ASM_APP_OFF
 #define ASM_APP_OFF "#NO_APP\n"
 
-#define HANDLE_PRAGMA_PACK_PUSH_POP
-
 #undef DEFAULT_VTABLE_THUNKS
 #ifndef USE_GNULIBC_1
 #define DEFAULT_VTABLE_THUNKS 1
index dc70df9..b6103d6 100644 (file)
@@ -1550,6 +1550,18 @@ do {                                                                     \
 /* Function name to call to do profiling.  */
 #define RS6000_MCOUNT "_mcount"
 
+/* Define this macro (to a value of 1) if you want to support the
+   Win32 style pragmas #pragma pack(push,<n>)' and #pragma
+   pack(pop)'.  The pack(push,<n>) pragma specifies the maximum
+   alignment (in bytes) of fields within a structure, in much the
+   same way as the __aligned__' and __packed__' __attribute__'s
+   do.  A pack value of zero resets the behaviour to the default.
+   Successive invocations of this pragma cause the previous values to
+   be stacked, so that invocations of #pragma pack(pop)' will return
+   to the previous value.  */
+
+#define HANDLE_PRAGMA_PACK_PUSH_POP 1
+
 /* Define library calls for quad FP operations.  These are all part of the
    PowerPC 32bit ABI.  */
 #define ADDTF3_LIBCALL "_q_add"