From: Nick Clifton Date: Wed, 7 Oct 1998 14:50:58 +0000 (+0000) Subject: Move definition of HANDLE_PRAGMA_PACK_PUSH_POP out of i386.h and into X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c678a7f8bd5740702e7264c5f889e6eed91a9c17;p=gcc.git Move definition of HANDLE_PRAGMA_PACK_PUSH_POP out of i386.h and into target OS specific headers. From-SVN: r22896 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index beb705e8a58..8f3850d5288 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,17 @@ Wed Oct 7 14:40:43 1998 Nick Clifton + * config/i386/i386.h: Remove definition of + HANDLE_PRAGMA_PACK_PUSH_POP. + + * config/i386/go32.h: Add definition of + HANDLE_PRAGMA_PACK_PUSH_POP. + + * config/i386/win32.h: Add definition of + HANDLE_PRAGMA_PACK_PUSH_POP. + + * config/i386/cygwin32.h: Add definition of + HANDLE_PRAGMA_PACK_PUSH_POP. + * c-pragma.c (insert_pack_attributes): Do not insert attributes unless #pragma pack(push,) is in effect. diff --git a/gcc/config/i386/cygwin32.h b/gcc/config/i386/cygwin32.h index a422af0693a..e52c7100591 100644 --- a/gcc/config/i386/cygwin32.h +++ b/gcc/config/i386/cygwin32.h @@ -89,6 +89,9 @@ Boston, MA 02111-1307, USA. */ { "no-nop-fun-dllimport", -0x20000 }, \ { "windows", 0x0 }, +/* Enable parsing of #pragma pack(push,) and #pragma pack(pop). */ +#define HANDLE_PRAGMA_PACK_PUSH_POP 1 + /* A C expression whose value is nonzero if IDENTIFIER with arguments ARGS is a valid machine specific attribute for DECL. The attributes in ATTRIBUTES have previously been assigned to DECL. */ diff --git a/gcc/config/i386/go32.h b/gcc/config/i386/go32.h index b0eb84d0ef7..c190f7fed15 100644 --- a/gcc/config/i386/go32.h +++ b/gcc/config/i386/go32.h @@ -2,13 +2,14 @@ #include "dbxcoff.h" -#define NO_STAB_H /* DJGPP has no stab.h */ - /* Don't assume anything about the header files. */ #define NO_IMPLICIT_EXTERN_C #define HANDLE_SYSV_PRAGMA +/* Enable parsing of #pragma pack(push,) and #pragma pack(pop). */ +#define HANDLE_PRAGMA_PACK_PUSH_POP 1 + #define YES_UNDERSCORES #include "i386/gas.h" @@ -88,3 +89,11 @@ dtor_section () \ #undef ASM_OUTPUT_ALIGN #define ASM_OUTPUT_ALIGN(FILE,LOG) \ if ((LOG) != 0) fprintf ((FILE), "\t.p2align %d\n", LOG) + +/* djgpp has atexit (). */ +#undef HAVE_ATEXIT +#define HAVE_ATEXIT + +/* djgpp automatically calls its own version of __main, so don't define one + in libgcc, nor call one in main(). */ +#define HAS_INIT_SECTION diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h index 12f5503322f..0bb72415367 100644 --- a/gcc/config/i386/i386.h +++ b/gcc/config/i386/i386.h @@ -2662,9 +2662,6 @@ do { \ FAIL; \ } while (0) -/* Enable parsing of #pragma pack(push,) and #pragma pack(pop). */ -#define HANDLE_PRAGMA_PACK_PUSH_POP 1 - /* Functions in i386.c */ extern void override_options (); diff --git a/gcc/config/i386/win32.h b/gcc/config/i386/win32.h index 32fd2949b3f..a8b6904cdb0 100644 --- a/gcc/config/i386/win32.h +++ b/gcc/config/i386/win32.h @@ -23,6 +23,9 @@ Boston, MA 02111-1307, USA. */ #define YES_UNDERSCORES +/* Enable parsing of #pragma pack(push,) and #pragma pack(pop). */ +#define HANDLE_PRAGMA_PACK_PUSH_POP 1 + #define DBX_DEBUGGING_INFO #define SDB_DEBUGGING_INFO #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG