From 554fd8c5195424bdbcabf5de30fdc183aba391bd Mon Sep 17 00:00:00 2001 From: upstream source tree Date: Sun, 15 Mar 2015 20:14:05 -0400 Subject: obtained gcc-4.6.4.tar.bz2 from upstream website; verified gcc-4.6.4.tar.bz2.sig; imported gcc-4.6.4 source tree from verified upstream tarball. downloading a git-generated archive based on the 'upstream' tag should provide you with a source tree that is binary identical to the one extracted from the above tarball. if you have obtained the source via the command 'git clone', however, do note that line-endings of files in your working directory might differ from line-endings of the respective files in the upstream repository. --- gcc/testsuite/gcc.dg/builtins-config.h | 59 ++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/builtins-config.h (limited to 'gcc/testsuite/gcc.dg/builtins-config.h') diff --git a/gcc/testsuite/gcc.dg/builtins-config.h b/gcc/testsuite/gcc.dg/builtins-config.h new file mode 100644 index 000000000..49ec0dcc8 --- /dev/null +++ b/gcc/testsuite/gcc.dg/builtins-config.h @@ -0,0 +1,59 @@ +/* Copyright (C) 2003, 2004, 2005, 2006, 2009, 2011 Free Software Foundation. + + Define macros useful in tests for bulitin functions. */ + +/* Define HAVE_C99_RUNTIME if the entire C99 runtime is available on + the target system. The value of HAVE_C99_RUNTIME should be the + same as the value of TARGET_C99_FUNCTIONS in the GCC machine + description. (Perhaps GCC should predefine a special macro + 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. */ +#elif defined(__AVR__) +/* AVR doesn't have the entire C99 runtime. */ +#elif defined(__FreeBSD__) && (__FreeBSD__ < 9) +/* FreeBSD up to version 8 lacks support for cexp and friends. */ +#elif defined(__netware__) +/* NetWare doesn't have the entire C99 runtime. */ +#elif defined(__vxworks) +/* VxWorks doesn't have a full C99 time. (cabs is missing, for example.) */ +#elif defined(_WIN32) && !defined(__CYGWIN__) +/* Windows doesn't have the entire C99 runtime. */ +#elif (defined(__APPLE__) && defined(__ppc__) \ + && ! defined (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__)) +/* MacOS versions before 10.3 don't have many C99 functions. + But, if you're including this file, you probably want to test the + newer behaviour, so: */ +#error forgot to set -mmacosx-version-min. +#elif (defined(__APPLE__) && defined(__ppc__) \ + && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1030) +/* MacOS versions before 10.3 don't have many C99 functions. */ +#else +/* Newlib has the "f" variants of the math functions, but not the "l" + variants. TARGET_C99_FUNCTIONS is only defined if all C99 + functions are present. Therefore, on systems using newlib, tests + of builtins will fail the "l" variants, and we should therefore not + define HAVE_C99_RUNTIME. Including gives us a way of + seeing if _NEWLIB_VERSION is defined. Including would work + too, but the GLIBC math inlines cause us to generate inferior code, + which causes the test to fail, so it is not safe. Including + also fails because the include search paths are ordered such that GCC's + version will be found before the newlib version. Similarly, uClibc + lacks the C99 functions. */ +#include +#if defined(_NEWLIB_VERSION) || defined(__UCLIBC__) +#elif defined(__sun) && __STDC_VERSION__ - 0 < 199901L +/* If you're including this file, you probably want to test the newer + behaviour, so ensure the right flags were used for each test: */ +#error forgot to set -std=c99. +#elif defined(__sun) && ! defined (_STDC_C99) +/* Solaris up to 9 doesn't have the entire C99 runtime. + Solaris 10 defines _STDC_C99 if __STDC_VERSION__ is >= 199901L. + This macro is defined in which is included by + various system headers, in this case above. */ +#else +#define HAVE_C99_RUNTIME +#endif +#endif -- cgit v1.2.3