From edf11378709cc2f57df8d73523d56bd032740915 Mon Sep 17 00:00:00 2001 From: Franz Sirl Date: Tue, 12 Dec 2000 21:38:18 +0000 Subject: [PATCH] linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Move from here... 2000-12-12 Franz Sirl * config/rs6000/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Move from here... * config/rs6000/sysv4.h (HANDLE_PRAGMA_PACK_PUSH_POP): ...to here. From-SVN: r38211 --- gcc/ChangeLog | 7 ++++++- gcc/config/rs6000/linux.h | 2 -- gcc/config/rs6000/sysv4.h | 12 ++++++++++++ 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ea0ea44219e..65a540aa35a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-12-12 Franz Sirl + + * 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 * 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. diff --git a/gcc/config/rs6000/linux.h b/gcc/config/rs6000/linux.h index 66a3b38e4a8..f0cf9d18c34 100644 --- a/gcc/config/rs6000/linux.h +++ b/gcc/config/rs6000/linux.h @@ -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 diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h index dc70df99d30..b6103d6df20 100644 --- a/gcc/config/rs6000/sysv4.h +++ b/gcc/config/rs6000/sysv4.h @@ -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,)' and #pragma + pack(pop)'. The pack(push,) 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" -- 2.30.2