Move definition of HANDLE_PRAGMA_PACK_PUSH_POP out of i386.h and into
authorNick Clifton <nickc@cygnus.com>
Wed, 7 Oct 1998 14:50:58 +0000 (14:50 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Wed, 7 Oct 1998 14:50:58 +0000 (14:50 +0000)
target OS specific headers.

From-SVN: r22896

gcc/ChangeLog
gcc/config/i386/cygwin32.h
gcc/config/i386/go32.h
gcc/config/i386/i386.h
gcc/config/i386/win32.h

index beb705e8a58bf42e97d1d9aed73604a6596f04bd..8f3850d5288bdb3c956b97363c95a4e89611e149 100644 (file)
@@ -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.
 
index a422af0693a5693c9d374c6725ca57521dc04c6a..e52c7100591f20ac40d9f3c3248b054b243e534c 100644 (file)
@@ -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.  */
index b0eb84d0ef7fd9eb005e242d373f052960561bec..c190f7fed15e108623cd87bc8816cfd45488dfc5 100644 (file)
@@ -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
index 12f5503322f74c67a7c1d4938900a38a3e487b82..0bb72415367bf0b03a30539575021df6e6ac3e09 100644 (file)
@@ -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
-
 \f
 /* Functions in i386.c */
 extern void override_options ();
index 32fd2949b3f6b37002189b35aa8ffabe69d3e9bc..a8b6904cdb06c4b6342e24394353e51ee2ee6a7f 100644 (file)
@@ -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