This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Fix gcc.dg/builtins-18.c and gcc.dg/builtins-20.c on PA
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 25 Feb 2004 14:11:24 -0500 (EST)
- Subject: [committed] Fix gcc.dg/builtins-18.c and gcc.dg/builtins-20.c on PA
PA HP-UX currently doesn't support all of C99. I added a separate
if just in case it might do so in the future.
Installed to 3.4 and 3.5. Tested on hppa*-hp-hpux11.11.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
2004-02-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* gcc.dg/builtins-config.h (HAVE_C99_RUNTIME): Don't define for PA
HP-UX.
Index: gcc.dg/builtins-config.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/builtins-config.h,v
retrieving revision 1.1
diff -u -3 -p -r1.1 builtins-config.h
--- gcc.dg/builtins-config.h 24 Dec 2003 06:52:27 -0000 1.1
+++ gcc.dg/builtins-config.h 25 Feb 2004 17:31:00 -0000
@@ -9,6 +9,9 @@
indicating whether or not TARGET_C99_FUNCTIONS is set, but it does
not presently do that.) */
+#if defined(__hppa) && defined(__hpux)
+/* PA HP-UX doesn't have the entire C99 runtime. */
+#else
#if defined(sun)
/* Solaris doesn't have the entire C99 runtime. */
#else
@@ -25,5 +28,6 @@
#ifdef _NEWLIB_VERSION
#else
#define HAVE_C99_RUNTIME
+#endif
#endif
#endif