From 49f8be83999c651efce5f0ffb6327130c26b46e7 Mon Sep 17 00:00:00 2001
From: thorpej <thorpej@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Tue, 26 Nov 2002 04:54:50 +0000
Subject: [PATCH] * config/elfos.h (HANDLE_SYSV_PRAGMA): Define as 1. *
 config/interix.h (HANDLE_SYSV_PRAGMA): Likewise. * config/linux-aout.h
 (HANDLE_SYSV_PRAGMA): Likewise. * config/lynx-ng.h (HANDLE_SYSV_PRAGMA):
 Likewise. * config/lynx.h (HANDLE_SYSV_PRAGMA): Likewise. * config/netbsd.h
 (HANDLE_SYSV_PRAGMA): Likewise. * config/openbsd.h (HANDLE_SYSV_PRAGMA:
 Likewise. * config/alpha/elf.h (HANDLE_SYSV_PRAGMA): Likewise. *
 config/arm/netbsd.h (HANDLE_SYSV_PRAGMA): Likewise. * config/cris/aout.h
 (HANDLE_SYSV_PRAGMA): Likewise. * config/d30v/d30v.h (HANDLE_SYSV_PRAGMA):
 Likewise. * config/frv/frv.h (HANDLE_SYSV_PRAGMA): Likewise. *
 config/i386/djgpp.h (HANDLE_SYSV_PRAGMA): Likewise. *
 config/i386/i386-interix.h (HANDLE_SYSV_PRAGMA): Likewise. *
 config/i386/vxi386.h (HANDLE_SYSV_PRAGMA): Likewise. * config/ia64/ia64.h
 (HANDLE_SYSV_PRAGMA): Likewise. * config/m88k/m88k.h (HANDLE_SYSV_PRAGMA):
 Likewise. * config/mmix/mmix.h (HANDLE_SYSV_PRAGMA): Likewise. *
 config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Likewise. * config/rs6000/darwin.h
 (HANDLE_SYSV_PRAGMA): Likewise. * config/sparc/linux-aout.h
 (HANDLE_SYSV_PRAGMA): Likewise. * config/sparc/vxsparc64.h
 (HANDLE_SYSV_PRAGMA): Likewise. * config/stormy16/stormy16.h
 (HANDLE_SYSV_PRAGMA): Likewise. * config/alpha/osf.h (HANDLE_SYSV_PRAGMA):
 Don't undef before defining. * config/i386/sco5.h (HANDLE_SYSV_PRAGMA):
 Likewise. * config/mips/iris5.h (HANDLE_SYSV_PRAGMA): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59493 138bc75d-0d04-0410-961f-82ee72b054a4
---
 gcc/ChangeLog                  | 30 ++++++++++++++++++++++++++++++
 gcc/config/alpha/elf.h         |  2 +-
 gcc/config/alpha/osf.h         |  1 -
 gcc/config/arm/netbsd.h        |  2 +-
 gcc/config/cris/aout.h         |  2 +-
 gcc/config/d30v/d30v.h         |  2 +-
 gcc/config/elfos.h             |  2 +-
 gcc/config/frv/frv.h           |  2 +-
 gcc/config/i386/djgpp.h        |  2 +-
 gcc/config/i386/i386-interix.h |  2 +-
 gcc/config/i386/sco5.h         |  1 -
 gcc/config/i386/vxi386.h       |  2 +-
 gcc/config/ia64/ia64.h         |  2 +-
 gcc/config/interix.h           |  2 +-
 gcc/config/linux-aout.h        |  2 +-
 gcc/config/lynx-ng.h           |  2 +-
 gcc/config/lynx.h              |  2 +-
 gcc/config/m88k/m88k.h         |  2 +-
 gcc/config/mips/iris5.h        |  1 -
 gcc/config/mmix/mmix.h         |  2 +-
 gcc/config/netbsd.h            |  2 +-
 gcc/config/openbsd.h           |  2 +-
 gcc/config/rs6000/aix.h        |  2 +-
 gcc/config/rs6000/darwin.h     |  2 +-
 gcc/config/sparc/linux-aout.h  |  2 +-
 gcc/config/sparc/vxsparc64.h   |  2 +-
 gcc/config/stormy16/stormy16.h |  2 +-
 27 files changed, 53 insertions(+), 26 deletions(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f1d916c0f19b..8833d51bc3ec 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,33 @@
+2002-11-25  Jason Thorpe  <thorpej@wasabisystems.com>
+
+	* config/elfos.h (HANDLE_SYSV_PRAGMA): Define as 1.
+	* config/interix.h (HANDLE_SYSV_PRAGMA): Likewise.
+	* config/linux-aout.h (HANDLE_SYSV_PRAGMA): Likewise.
+	* config/lynx-ng.h (HANDLE_SYSV_PRAGMA): Likewise.
+	* config/lynx.h (HANDLE_SYSV_PRAGMA): Likewise.
+	* config/netbsd.h (HANDLE_SYSV_PRAGMA): Likewise.
+	* config/openbsd.h (HANDLE_SYSV_PRAGMA: Likewise.
+	* config/alpha/elf.h (HANDLE_SYSV_PRAGMA): Likewise.
+	* config/arm/netbsd.h (HANDLE_SYSV_PRAGMA): Likewise.
+	* config/cris/aout.h (HANDLE_SYSV_PRAGMA): Likewise.
+	* config/d30v/d30v.h (HANDLE_SYSV_PRAGMA): Likewise.
+	* config/frv/frv.h (HANDLE_SYSV_PRAGMA): Likewise.
+	* config/i386/djgpp.h (HANDLE_SYSV_PRAGMA): Likewise.
+	* config/i386/i386-interix.h (HANDLE_SYSV_PRAGMA): Likewise.
+	* config/i386/vxi386.h (HANDLE_SYSV_PRAGMA): Likewise.
+	* config/ia64/ia64.h (HANDLE_SYSV_PRAGMA): Likewise.
+	* config/m88k/m88k.h (HANDLE_SYSV_PRAGMA): Likewise.
+	* config/mmix/mmix.h (HANDLE_SYSV_PRAGMA): Likewise.
+	* config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Likewise.
+	* config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Likewise.
+	* config/sparc/linux-aout.h (HANDLE_SYSV_PRAGMA): Likewise.
+	* config/sparc/vxsparc64.h (HANDLE_SYSV_PRAGMA): Likewise.
+	* config/stormy16/stormy16.h (HANDLE_SYSV_PRAGMA): Likewise.
+	* config/alpha/osf.h (HANDLE_SYSV_PRAGMA): Don't undef before
+	defining.
+	* config/i386/sco5.h (HANDLE_SYSV_PRAGMA): Likewise.
+	* config/mips/iris5.h (HANDLE_SYSV_PRAGMA): Likewise.
+
 2002-11-25  Dave Pitts  <dpitts@cozx.com>
 
 	* gcc/fixinc/mkfixinc.sh: add i370-*-openedition to bypass fixinc list
diff --git a/gcc/config/alpha/elf.h b/gcc/config/alpha/elf.h
index 40d4f4fc510b..dbe926386641 100644
--- a/gcc/config/alpha/elf.h
+++ b/gcc/config/alpha/elf.h
@@ -426,7 +426,7 @@ void FN ()					\
    %{shared:crtendS.o%s}%{!shared:crtend.o%s} crtn.o%s"
 
 /* We support #pragma.  */
-#define HANDLE_SYSV_PRAGMA
+#define HANDLE_SYSV_PRAGMA 1
 
 /* Select a format to encode pointers in exception handling data.  CODE
    is 0 for data, 1 for code labels, 2 for function pointers.  GLOBAL is
diff --git a/gcc/config/alpha/osf.h b/gcc/config/alpha/osf.h
index 268c124c8cea..9fbe2b56a07d 100644
--- a/gcc/config/alpha/osf.h
+++ b/gcc/config/alpha/osf.h
@@ -213,7 +213,6 @@ __enable_execute_stack (addr)						\
 #define ASM_WEAKEN_LABEL(FILE, NAME) ASM_OUTPUT_WEAK_ALIAS(FILE, NAME, 0)
 
 /* Handle #pragma weak and #pragma pack.  */
-#undef HANDLE_SYSV_PRAGMA
 #define HANDLE_SYSV_PRAGMA 1
 
 /* Handle #pragma extern_prefix.  Technically only needed for Tru64 5.x,
diff --git a/gcc/config/arm/netbsd.h b/gcc/config/arm/netbsd.h
index 765bfb506637..38ccc3f171d7 100644
--- a/gcc/config/arm/netbsd.h
+++ b/gcc/config/arm/netbsd.h
@@ -80,7 +80,7 @@ Boston, MA 02111-1307, USA.  */
 #undef PTRDIFF_TYPE
 #define PTRDIFF_TYPE "int"
 
-#define HANDLE_SYSV_PRAGMA
+#define HANDLE_SYSV_PRAGMA 1
 
 /* We don't have any limit on the length as out debugger is GDB.  */
 #undef DBX_CONTIN_LENGTH
diff --git a/gcc/config/cris/aout.h b/gcc/config/cris/aout.h
index fe99c769a0d6..dabee83a73b1 100644
--- a/gcc/config/cris/aout.h
+++ b/gcc/config/cris/aout.h
@@ -359,7 +359,7 @@ Boston, MA 02111-1307, USA.  */
 
 /* Node: Misc */
 
-#define HANDLE_SYSV_PRAGMA
+#define HANDLE_SYSV_PRAGMA 1
 
 /* In theory, this one isn't necessary, but over time, external tools have
    been primed on names with "." rather than "$".  */
diff --git a/gcc/config/d30v/d30v.h b/gcc/config/d30v/d30v.h
index 3c9bff6d3104..095a1def4afa 100644
--- a/gcc/config/d30v/d30v.h
+++ b/gcc/config/d30v/d30v.h
@@ -4238,7 +4238,7 @@ fprintf (STREAM, "\t.word .L%d\n", VALUE)
 /* Define this macro to handle System V style pragmas (particularly #pack).
 
    Defined in svr4.h.  */
-#define HANDLE_SYSV_PRAGMA
+#define HANDLE_SYSV_PRAGMA 1
 
 /* Define this macro if you want to handle #pragma weak (HANDLE_SYSV_PRAGMA
    must also be defined).  */
diff --git a/gcc/config/elfos.h b/gcc/config/elfos.h
index 1900e9aeb0e4..25a44afe344b 100644
--- a/gcc/config/elfos.h
+++ b/gcc/config/elfos.h
@@ -58,7 +58,7 @@ Boston, MA 02111-1307, USA.  */
 
 /* Handle #pragma weak and #pragma pack.  */
 
-#define HANDLE_SYSV_PRAGMA
+#define HANDLE_SYSV_PRAGMA 1
 
 /* System V Release 4 uses DWARF debugging info.  */
 
diff --git a/gcc/config/frv/frv.h b/gcc/config/frv/frv.h
index 954e86f5b4d6..f9900b2f2bc6 100644
--- a/gcc/config/frv/frv.h
+++ b/gcc/config/frv/frv.h
@@ -3396,7 +3396,7 @@ do {                                                                    \
    defined.
 
    Defined in svr4.h.  */
-#define HANDLE_SYSV_PRAGMA
+#define HANDLE_SYSV_PRAGMA 1
 
 /* A C expression for the maximum number of instructions to execute via
    conditional execution instructions instead of a branch.  A value of
diff --git a/gcc/config/i386/djgpp.h b/gcc/config/i386/djgpp.h
index 29b93d96a8cd..a271aa47cde7 100644
--- a/gcc/config/i386/djgpp.h
+++ b/gcc/config/i386/djgpp.h
@@ -25,7 +25,7 @@ Boston, MA 02111-1307, USA.  */
 /* Don't assume anything about the header files.  */
 #define NO_IMPLICIT_EXTERN_C
 
-#define HANDLE_SYSV_PRAGMA
+#define HANDLE_SYSV_PRAGMA 1
 
 /* Enable parsing of #pragma pack(push,<n>) and #pragma pack(pop).  */
 #define HANDLE_PRAGMA_PACK_PUSH_POP 1
diff --git a/gcc/config/i386/i386-interix.h b/gcc/config/i386/i386-interix.h
index 79aafa43344c..d309087217de 100644
--- a/gcc/config/i386/i386-interix.h
+++ b/gcc/config/i386/i386-interix.h
@@ -30,7 +30,7 @@ Boston, MA 02111-1307, USA.  */
 #define SDB_DEBUGGING_INFO 1
 #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
 
-#define HANDLE_SYSV_PRAGMA
+#define HANDLE_SYSV_PRAGMA 1
 #undef HANDLE_PRAGMA_WEAK  /* until the link format can handle it */
 
 /* By default, target has a 80387, uses IEEE compatible arithmetic,
diff --git a/gcc/config/i386/sco5.h b/gcc/config/i386/sco5.h
index 69bf1a77502f..815e45771d65 100644
--- a/gcc/config/i386/sco5.h
+++ b/gcc/config/i386/sco5.h
@@ -511,7 +511,6 @@ init_section ()								\
 #undef TARGET_SUBTARGET_DEFAULT
 #define TARGET_SUBTARGET_DEFAULT (MASK_80387 | MASK_IEEE_FP | MASK_FLOAT_RETURNS)
 
-#undef HANDLE_SYSV_PRAGMA
 #define HANDLE_SYSV_PRAGMA 1
 
 /* Though OpenServer supports .weak in COFF, we don't use it.
diff --git a/gcc/config/i386/vxi386.h b/gcc/config/i386/vxi386.h
index 57e0662006dc..ee4a74093f8e 100644
--- a/gcc/config/i386/vxi386.h
+++ b/gcc/config/i386/vxi386.h
@@ -44,7 +44,7 @@ Boston, MA 02111-1307, USA.  */
     }							\
   while (0)
 
-#define HANDLE_SYSV_PRAGMA
+#define HANDLE_SYSV_PRAGMA 1
 
 /* VxWorks does all the library stuff itself.  */
 
diff --git a/gcc/config/ia64/ia64.h b/gcc/config/ia64/ia64.h
index 59d6e2303665..59f60d05bfae 100644
--- a/gcc/config/ia64/ia64.h
+++ b/gcc/config/ia64/ia64.h
@@ -2388,7 +2388,7 @@ do {									\
 
 #define PREFETCH_BLOCK 32
 
-#define HANDLE_SYSV_PRAGMA
+#define HANDLE_SYSV_PRAGMA 1
 
 /* In rare cases, correct code generation requires extra machine dependent
    processing between the second jump optimization pass and delayed branch
diff --git a/gcc/config/interix.h b/gcc/config/interix.h
index aea3a73425e8..8d9f58f8b5b3 100644
--- a/gcc/config/interix.h
+++ b/gcc/config/interix.h
@@ -85,7 +85,7 @@ for windows/multi thread */
 
 #define STDC_0_IN_SYSTEM_HEADERS 1
 
-#define HANDLE_SYSV_PRAGMA
+#define HANDLE_SYSV_PRAGMA 1
 #undef HANDLE_PRAGMA_WEAK  /* until the link format can handle it */
 
 /* Names to predefine in the preprocessor for this target machine.  */
diff --git a/gcc/config/linux-aout.h b/gcc/config/linux-aout.h
index 8193c6113640..13d9bfd6e83a 100644
--- a/gcc/config/linux-aout.h
+++ b/gcc/config/linux-aout.h
@@ -42,4 +42,4 @@ Boston, MA 02111-1307, USA.  */
 #define SET_ASM_OP	"\t.set\t"
 
 /* We need that too.  */
-#define HANDLE_SYSV_PRAGMA
+#define HANDLE_SYSV_PRAGMA 1
diff --git a/gcc/config/lynx-ng.h b/gcc/config/lynx-ng.h
index 9d9480153228..7c257c7982e3 100644
--- a/gcc/config/lynx-ng.h
+++ b/gcc/config/lynx-ng.h
@@ -70,7 +70,7 @@ Boston, MA 02111-1307, USA.  */
 
 /* Handle #pragma pack and sometimes #pragma weak.  */
 
-#define HANDLE_SYSV_PRAGMA
+#define HANDLE_SYSV_PRAGMA 1
 
 #define TARGET_THREADS	(target_flags & MASK_THREADS)
 #define MASK_THREADS	0x40000000
diff --git a/gcc/config/lynx.h b/gcc/config/lynx.h
index 7f1cb547a428..e060675a7ce8 100644
--- a/gcc/config/lynx.h
+++ b/gcc/config/lynx.h
@@ -95,7 +95,7 @@ Boston, MA 02111-1307, USA.  */
 
 /* Handle #pragma pack and sometimes #pragma weak.  */
 
-#define HANDLE_SYSV_PRAGMA
+#define HANDLE_SYSV_PRAGMA 1
 
 /* Some additional command-line options.  */
 
diff --git a/gcc/config/m88k/m88k.h b/gcc/config/m88k/m88k.h
index b36c5f50a822..659f5fbe8012 100644
--- a/gcc/config/m88k/m88k.h
+++ b/gcc/config/m88k/m88k.h
@@ -1439,7 +1439,7 @@ enum reg_class { NO_REGS, AP_REG, XRF_REGS, GENERAL_REGS, AGRF_REGS,
 #define SIZE_TYPE "unsigned int"
 
 /* Handle #pragma pack and sometimes #pragma weak.  */
-#define HANDLE_SYSV_PRAGMA
+#define HANDLE_SYSV_PRAGMA 1
 
 /* Tell when to handle #pragma weak.  This is only done for V.4.  */
 #define SUPPORTS_WEAK TARGET_SVR4
diff --git a/gcc/config/mips/iris5.h b/gcc/config/mips/iris5.h
index e26d53bf2d84..a3af82d339ef 100644
--- a/gcc/config/mips/iris5.h
+++ b/gcc/config/mips/iris5.h
@@ -205,5 +205,4 @@ do {							\
 #define ASM_WEAKEN_LABEL(FILE, NAME) ASM_OUTPUT_WEAK_ALIAS(FILE, NAME, 0)
 
 /* Handle #pragma weak and #pragma pack.  */
-#undef HANDLE_SYSV_PRAGMA
 #define HANDLE_SYSV_PRAGMA 1
diff --git a/gcc/config/mmix/mmix.h b/gcc/config/mmix/mmix.h
index a46a551897e3..b6c4ec702101 100644
--- a/gcc/config/mmix/mmix.h
+++ b/gcc/config/mmix/mmix.h
@@ -1175,7 +1175,7 @@ typedef struct { int regs; int lib; } CUMULATIVE_ARGS;
 
 #define NO_IMPLICIT_EXTERN_C
 
-#define HANDLE_SYSV_PRAGMA
+#define HANDLE_SYSV_PRAGMA 1
 
 /* These are checked.  */
 #define DOLLARS_IN_IDENTIFIERS 0
diff --git a/gcc/config/netbsd.h b/gcc/config/netbsd.h
index 61b44aceac40..43ff80ae6864 100644
--- a/gcc/config/netbsd.h
+++ b/gcc/config/netbsd.h
@@ -170,7 +170,7 @@ Boston, MA 02111-1307, USA.  */
 
 /* Handle #pragma weak and #pragma pack.  */
 
-#define HANDLE_SYSV_PRAGMA
+#define HANDLE_SYSV_PRAGMA 1
 
 
 /* Define some types that are the same on all NetBSD platforms,
diff --git a/gcc/config/openbsd.h b/gcc/config/openbsd.h
index ee6b52cdec61..1c215ebbf2d0 100644
--- a/gcc/config/openbsd.h
+++ b/gcc/config/openbsd.h
@@ -287,5 +287,5 @@ do {									 \
    code layout needs HANDLE_PRAGMA_WEAK asserted for __attribute((weak)) to
    work.  On the other hand, we don't define HANDLE_PRAGMA_WEAK directly,
    as this depends on a few other details as well...  */
-#define HANDLE_SYSV_PRAGMA
+#define HANDLE_SYSV_PRAGMA 1
 
diff --git a/gcc/config/rs6000/aix.h b/gcc/config/rs6000/aix.h
index 051780cfcfc0..505d758c612d 100644
--- a/gcc/config/rs6000/aix.h
+++ b/gcc/config/rs6000/aix.h
@@ -45,7 +45,7 @@ Boston, MA 02111-1307, USA.  */
 #define COLLECT_EXPORT_LIST
 
 /* Handle #pragma weak and #pragma pack.  */
-#define HANDLE_SYSV_PRAGMA
+#define HANDLE_SYSV_PRAGMA 1
 
 /* This is the only version of nm that collect2 can work with.  */
 #define REAL_NM_FILE_NAME "/usr/ucb/nm"
diff --git a/gcc/config/rs6000/darwin.h b/gcc/config/rs6000/darwin.h
index 4b3a902cb396..73041a287754 100644
--- a/gcc/config/rs6000/darwin.h
+++ b/gcc/config/rs6000/darwin.h
@@ -36,7 +36,7 @@ Boston, MA 02111-1307, USA.  */
 #define TARGET_NO_TOC 1
 
 /* Handle #pragma weak and #pragma pack.  */
-#define HANDLE_SYSV_PRAGMA
+#define HANDLE_SYSV_PRAGMA 1
 
 /* The Darwin ABI always includes AltiVec, can't be (validly) turned
    off.  */
diff --git a/gcc/config/sparc/linux-aout.h b/gcc/config/sparc/linux-aout.h
index 41d38773ecf9..70b2c794b7d9 100644
--- a/gcc/config/sparc/linux-aout.h
+++ b/gcc/config/sparc/linux-aout.h
@@ -31,7 +31,7 @@ Boston, MA 02111-1307, USA.  */
 #endif
 
 /* We need that too.  */
-#define HANDLE_SYSV_PRAGMA
+#define HANDLE_SYSV_PRAGMA 1
 
 #undef MD_EXEC_PREFIX
 #undef MD_STARTFILE_PREFIX
diff --git a/gcc/config/sparc/vxsparc64.h b/gcc/config/sparc/vxsparc64.h
index d37bd54f860e..1da8b7f25664 100644
--- a/gcc/config/sparc/vxsparc64.h
+++ b/gcc/config/sparc/vxsparc64.h
@@ -44,7 +44,7 @@ Boston, MA 02111-1307, USA.  */
 #define NO_DOT_IN_LABEL
 
 /* Enable #pragma pack(n) */
-#define HANDLE_SYSV_PRAGMA
+#define HANDLE_SYSV_PRAGMA 1
 
 /* We use stabs for debugging */
 #undef PREFERRED_DEBUGGING_TYPE
diff --git a/gcc/config/stormy16/stormy16.h b/gcc/config/stormy16/stormy16.h
index 50a784c4fb5e..87163dd415ce 100644
--- a/gcc/config/stormy16/stormy16.h
+++ b/gcc/config/stormy16/stormy16.h
@@ -3890,7 +3890,7 @@ do {									\
    defined.
 
    Defined in svr4.h.  */
-#define HANDLE_SYSV_PRAGMA
+#define HANDLE_SYSV_PRAGMA 1
 
 /* Define this macro if you want to support the Win32 style pragmas
    #pragma pack(push,<n>) and #pragma pack(pop).  */
-- 
GitLab