From: sirl Date: Tue, 12 Dec 2000 21:38:18 +0000 (+0000) Subject: 2000-12-12 Franz Sirl X-Git-Tag: upstream/4.9.2~97286 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=92a77a09dd1b9e4079887ffbf7b2ec4ef30941f2;p=platform%2Fupstream%2Flinaro-gcc.git 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38211 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ea0ea44..65a540a 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 66a3b38..f0cf9d1 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 dc70df9..b6103d6 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"