This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Adjust the testsuite to reality for FreeBSD and C99 support
- From: Gerald Pfeifer <gerald at pfeifer dot com>
- To: gcc-patches at gcc dot gnu dot org, Janis Johnson <janis187 at us dot ibm dot com>, "Loren J. Rittle" <ljrittle at acm dot org>
- Cc: Uros Bizjak <ubizjak at gmail dot com>
- Date: Mon, 31 Aug 2009 00:53:12 +0200 (CEST)
- Subject: Re: Adjust the testsuite to reality for FreeBSD and C99 support
- References: <alpine.LSU.1.99.0907101328260.8877@acrux.dbai.tuwien.ac.at>
On Sun, 12 Jul 2009, Gerald Pfeifer wrote:
> 2009-07-09 Gerald Pfeifer <gerald@pfeifer.com>
>
> * gcc.dg/builtins-config.h (HAVE_C99_RUNTIME): Do not define
> for FreeBSD up to and including version 8.
On the 4.3 and 4.4 branches I committed the following variation of the
patch now. I'll still try to nudge the FreeBSD libc folks to implement
this for FreeBSD 9, but it's hard to predict the future. ;-)
Gerald
2009-08-31 Gerald Pfeifer <gerald@pfeifer.com>
* gcc.dg/builtins-config.h (HAVE_C99_RUNTIME): Do not define
for FreeBSD.
Index: gcc.dg/builtins-config.h
===================================================================
--- gcc.dg/builtins-config.h (revision 151094)
+++ gcc.dg/builtins-config.h (working copy)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation.
+/* Copyright (C) 2003, 2004, 2005, 2006, 2009 Free Software Foundation.
Define macros useful in tests for bulitin functions. */
@@ -15,8 +15,8 @@
/* Irix6 doesn't have the entire C99 runtime. */
#elif defined(__AVR__)
/* AVR doesn't have the entire C99 runtime. */
-#elif defined(__FreeBSD__) && (__FreeBSD__ < 5)
-/* FreeBSD before version 5 doesn't have the entire C99 runtime. */
+#elif defined(__FreeBSD__)
+/* FreeBSD up to at least version 8 lacks support for cexp and friends. */
#elif defined(__netware__)
/* NetWare doesn't have the entire C99 runtime. */
#elif defined(__vxworks)