This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
3.0.2 PATCH: Define WINT_TYPE for Solaris 2/Intel
- To: gcc-patches at gcc dot gnu dot org
- Subject: 3.0.2 PATCH: Define WINT_TYPE for Solaris 2/Intel
- From: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- Date: Wed, 26 Sep 2001 14:14:12 +0200 (MEST)
The patch below fixes the last obvious testsuite failure on
i386-pc-solaris2.9:
FAIL: gcc.dg/wint_t-1.c (test for excess errors)
Like the SPARC version, Solaris 2/Intel uses a wint_t (long) different from
the default (unsigned int).
Bootstrapped without regressions on i386-pc-solaris2.9.
Ok for branch and mainline?
Rainer
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University
Email: ro@TechFak.Uni-Bielefeld.DE
Tue Sep 25 15:09:03 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* config/i386/sol2.h (WINT_TYPE): Redefine.
(WINT_TYPE_SIZE): Likewise.
Index: gcc/config/i386/sol2.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/sol2.h,v
retrieving revision 1.10.4.2
diff -u -p -r1.10.4.2 sol2.h
--- sol2.h 2001/07/03 12:33:09 1.10.4.2
+++ sol2.h 2001/09/25 17:24:53
@@ -69,6 +69,13 @@ Boston, MA 02111-1307, USA. */
(flag_pic ? (GLOBAL ? DW_EH_PE_indirect : 0) | DW_EH_PE_datarel \
: DW_EH_PE_absptr)
+/* Solaris 2/Intel uses a wint_t different from the default, as on SPARC. */
+#undef WINT_TYPE
+#define WINT_TYPE "long int"
+
+#undef WINT_TYPE_SIZE
+#define WINT_TYPE_SIZE BITS_PER_WORD
+
/* Add "sun" to the list of symbols defined for SVR4. */
#undef CPP_PREDEFINES
#define CPP_PREDEFINES \