Commit c678a7f8 by Nick Clifton Committed by Nick Clifton

Move definition of HANDLE_PRAGMA_PACK_PUSH_POP out of i386.h and into

target OS specific headers.

From-SVN: r22896
parent bf294d92
Wed Oct 7 14:40:43 1998 Nick Clifton <nickc@cygnus.com> 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 * c-pragma.c (insert_pack_attributes): Do not insert
attributes unless #pragma pack(push,<n>) is in effect. attributes unless #pragma pack(push,<n>) is in effect.
......
...@@ -89,6 +89,9 @@ Boston, MA 02111-1307, USA. */ ...@@ -89,6 +89,9 @@ Boston, MA 02111-1307, USA. */
{ "no-nop-fun-dllimport", -0x20000 }, \ { "no-nop-fun-dllimport", -0x20000 }, \
{ "windows", 0x0 }, { "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 /* A C expression whose value is nonzero if IDENTIFIER with arguments ARGS
is a valid machine specific attribute for DECL. is a valid machine specific attribute for DECL.
The attributes in ATTRIBUTES have previously been assigned to DECL. */ The attributes in ATTRIBUTES have previously been assigned to DECL. */
......
...@@ -2,13 +2,14 @@ ...@@ -2,13 +2,14 @@
#include "dbxcoff.h" #include "dbxcoff.h"
#define NO_STAB_H /* DJGPP has no stab.h */
/* Don't assume anything about the header files. */ /* Don't assume anything about the header files. */
#define NO_IMPLICIT_EXTERN_C #define NO_IMPLICIT_EXTERN_C
#define HANDLE_SYSV_PRAGMA #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 #define YES_UNDERSCORES
#include "i386/gas.h" #include "i386/gas.h"
...@@ -88,3 +89,11 @@ dtor_section () \ ...@@ -88,3 +89,11 @@ dtor_section () \
#undef ASM_OUTPUT_ALIGN #undef ASM_OUTPUT_ALIGN
#define ASM_OUTPUT_ALIGN(FILE,LOG) \ #define ASM_OUTPUT_ALIGN(FILE,LOG) \
if ((LOG) != 0) fprintf ((FILE), "\t.p2align %d\n", 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
...@@ -2662,9 +2662,6 @@ do { \ ...@@ -2662,9 +2662,6 @@ do { \
FAIL; \ FAIL; \
} while (0) } while (0)
/* Enable parsing of #pragma pack(push,<n>) and #pragma pack(pop). */
#define HANDLE_PRAGMA_PACK_PUSH_POP 1
/* Functions in i386.c */ /* Functions in i386.c */
extern void override_options (); extern void override_options ();
......
...@@ -23,6 +23,9 @@ Boston, MA 02111-1307, USA. */ ...@@ -23,6 +23,9 @@ Boston, MA 02111-1307, USA. */
#define YES_UNDERSCORES #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 DBX_DEBUGGING_INFO
#define SDB_DEBUGGING_INFO #define SDB_DEBUGGING_INFO
#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment