diff options
author | Nick Clifton <nickc@cygnus.com> | 1998-10-07 14:50:58 +0000 |
---|---|---|
committer | Nick Clifton <nickc@gcc.gnu.org> | 1998-10-07 14:50:58 +0000 |
commit | c678a7f8bd5740702e7264c5f889e6eed91a9c17 (patch) | |
tree | 8713c7f2697a2aa8144cd8a769c0fe0df436c738 | |
parent | bf294d9262596113da675d3911ed87a97c17847b (diff) | |
download | gcc-c678a7f8bd5740702e7264c5f889e6eed91a9c17.zip gcc-c678a7f8bd5740702e7264c5f889e6eed91a9c17.tar.gz gcc-c678a7f8bd5740702e7264c5f889e6eed91a9c17.tar.bz2 |
Move definition of HANDLE_PRAGMA_PACK_PUSH_POP out of i386.h and into
target OS specific headers.
From-SVN: r22896
-rw-r--r-- | gcc/ChangeLog | 12 | ||||
-rw-r--r-- | gcc/config/i386/cygwin32.h | 3 | ||||
-rw-r--r-- | gcc/config/i386/go32.h | 13 | ||||
-rw-r--r-- | gcc/config/i386/i386.h | 3 | ||||
-rw-r--r-- | gcc/config/i386/win32.h | 3 |
5 files changed, 29 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index beb705e..8f3850d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,17 @@ Wed Oct 7 14:40:43 1998 Nick Clifton <nickc@cygnus.com> + * 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,<n>) is in effect. diff --git a/gcc/config/i386/cygwin32.h b/gcc/config/i386/cygwin32.h index a422af0..e52c710 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,<n>) 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 b0eb84d..c190f7f 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,<n>) 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 12f5503..0bb7241 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,<n>) 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 32fd294..a8b6904 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,<n>) 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 |