diff options
author | Ben Cheng <bccheng@google.com> | 2014-03-25 22:37:19 -0700 |
---|---|---|
committer | Ben Cheng <bccheng@google.com> | 2014-03-25 22:37:19 -0700 |
commit | 1bc5aee63eb72b341f506ad058502cd0361f0d10 (patch) | |
tree | c607e8252f3405424ff15bc2d00aa38dadbb2518 /gcc-4.9/fixincludes/tests/base/iso | |
parent | 283a0bf58fcf333c58a2a92c3ebbc41fb9eb1fdb (diff) | |
download | toolchain_gcc-1bc5aee63eb72b341f506ad058502cd0361f0d10.tar.gz toolchain_gcc-1bc5aee63eb72b341f506ad058502cd0361f0d10.tar.bz2 toolchain_gcc-1bc5aee63eb72b341f506ad058502cd0361f0d10.zip |
Initial checkin of GCC 4.9.0 from trunk (r208799).
Change-Id: I48a3c08bb98542aa215912a75f03c0890e497dba
Diffstat (limited to 'gcc-4.9/fixincludes/tests/base/iso')
-rw-r--r-- | gcc-4.9/fixincludes/tests/base/iso/math_c99.h | 77 | ||||
-rw-r--r-- | gcc-4.9/fixincludes/tests/base/iso/math_iso.h | 17 | ||||
-rw-r--r-- | gcc-4.9/fixincludes/tests/base/iso/setjmp_iso.h | 14 | ||||
-rw-r--r-- | gcc-4.9/fixincludes/tests/base/iso/stdio_iso.h | 14 | ||||
-rw-r--r-- | gcc-4.9/fixincludes/tests/base/iso/stdlib_iso.h | 16 |
5 files changed, 138 insertions, 0 deletions
diff --git a/gcc-4.9/fixincludes/tests/base/iso/math_c99.h b/gcc-4.9/fixincludes/tests/base/iso/math_c99.h new file mode 100644 index 000000000..3758cb9b5 --- /dev/null +++ b/gcc-4.9/fixincludes/tests/base/iso/math_c99.h @@ -0,0 +1,77 @@ +/* DO NOT EDIT THIS FILE. + + It has been auto-edited by fixincludes from: + + "fixinc/tests/inc/iso/math_c99.h" + + This had to be done to correct non-standard usages in the + original, manufacturer supplied header file. */ + + + +#if defined( SOLARIS_MATH_1_CHECK ) +#ident "@(#)math_c99.h 1.9 04/11/01 SMI" +#undef HUGE_VAL +#define HUGE_VAL (__builtin_huge_val()) +#undef HUGE_VALF +#define HUGE_VALF (__builtin_huge_valf()) +#undef HUGE_VALL +#define HUGE_VALL (__builtin_huge_vall()) +#endif /* SOLARIS_MATH_1_CHECK */ + + +#if defined( SOLARIS_MATH_10_CHECK ) +#pragma ident "@(#)math_c99.h 1.12 07/01/21 SMI" +#undef isinf +#define isinf(x) __builtin_isinf(x) +#endif /* SOLARIS_MATH_10_CHECK */ + + +#if defined( SOLARIS_MATH_2_CHECK ) +#ident "@(#)math_c99.h 1.9 04/11/01 SMI" +#undef INFINITY +#define INFINITY (__builtin_inff()) +#endif /* SOLARIS_MATH_2_CHECK */ + + +#if defined( SOLARIS_MATH_3_CHECK ) +#ident "@(#)math_c99.h 1.9 04/11/01 SMI" +#undef NAN +#define NAN (__builtin_nanf("")) +#endif /* SOLARIS_MATH_3_CHECK */ + + +#if defined( SOLARIS_MATH_4_CHECK ) +#ident "@(#)math_c99.h 1.9 04/11/01 SMI" +#undef fpclassify +#define fpclassify(x) \ + __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x)) +#endif /* SOLARIS_MATH_4_CHECK */ + + +#if defined( SOLARIS_MATH_8_CHECK ) +#ident "@(#)math_c99.h 1.9 04/11/01 SMI" +#undef signbit +#define signbit(x) (sizeof(x) == sizeof(float) \ + ? __builtin_signbitf(x) \ + : sizeof(x) == sizeof(long double) \ + ? __builtin_signbitl(x) \ + : __builtin_signbit(x)) +#endif /* SOLARIS_MATH_8_CHECK */ + + +#if defined( SOLARIS_MATH_9_CHECK ) +#ident "@(#)math_c99.h 1.9 04/11/01 SMI" +#undef isgreater +#define isgreater(x, y) __builtin_isgreater(x, y) +#undef isgreaterequal +#define isgreaterequal(x, y) __builtin_isgreaterequal(x, y) +#undef isless +#define isless(x, y) __builtin_isless(x, y) +#undef islessequal +#define islessequal(x, y) __builtin_islessequal(x, y) +#undef islessgreater +#define islessgreater(x, y) __builtin_islessgreater(x, y) +#undef isunordered +#define isunordered(x, y) __builtin_isunordered(x, y) +#endif /* SOLARIS_MATH_9_CHECK */ diff --git a/gcc-4.9/fixincludes/tests/base/iso/math_iso.h b/gcc-4.9/fixincludes/tests/base/iso/math_iso.h new file mode 100644 index 000000000..a1313a7f4 --- /dev/null +++ b/gcc-4.9/fixincludes/tests/base/iso/math_iso.h @@ -0,0 +1,17 @@ +/* DO NOT EDIT THIS FILE. + + It has been auto-edited by fixincludes from: + + "fixinc/tests/inc/iso/math_iso.h" + + This had to be done to correct non-standard usages in the + original, manufacturer supplied header file. */ + + + +#if defined( SOLARIS_POW_INT_OVERLOAD_CHECK ) +#if __cplusplus < 201103L + inline long double pow(long double __X, int __Y) { return + __powl(__X, (long double) (__Y)); } +#endif +#endif /* SOLARIS_POW_INT_OVERLOAD_CHECK */ diff --git a/gcc-4.9/fixincludes/tests/base/iso/setjmp_iso.h b/gcc-4.9/fixincludes/tests/base/iso/setjmp_iso.h new file mode 100644 index 000000000..4cf872007 --- /dev/null +++ b/gcc-4.9/fixincludes/tests/base/iso/setjmp_iso.h @@ -0,0 +1,14 @@ +/* DO NOT EDIT THIS FILE. + + It has been auto-edited by fixincludes from: + + "fixinc/tests/inc/iso/setjmp_iso.h" + + This had to be done to correct non-standard usages in the + original, manufacturer supplied header file. */ + + + +#if defined( SOLARIS_LONGJMP_NORETURN_CHECK ) +extern void longjmp(jmp_buf, int) __attribute__ ((__noreturn__)); +#endif /* SOLARIS_LONGJMP_NORETURN_CHECK */ diff --git a/gcc-4.9/fixincludes/tests/base/iso/stdio_iso.h b/gcc-4.9/fixincludes/tests/base/iso/stdio_iso.h new file mode 100644 index 000000000..d476752f0 --- /dev/null +++ b/gcc-4.9/fixincludes/tests/base/iso/stdio_iso.h @@ -0,0 +1,14 @@ +/* DO NOT EDIT THIS FILE. + + It has been auto-edited by fixincludes from: + + "fixinc/tests/inc/iso/stdio_iso.h" + + This had to be done to correct non-standard usages in the + original, manufacturer supplied header file. */ + + + +#if defined( SOLARIS_GETC_STRICT_STDC_CHECK ) +#if !defined(_REENTRANT) && !defined(_LP64) && (!defined(_STRICT_STDC) || (__cplusplus >= 199711L)) +#endif /* SOLARIS_GETC_STRICT_STDC_CHECK */ diff --git a/gcc-4.9/fixincludes/tests/base/iso/stdlib_iso.h b/gcc-4.9/fixincludes/tests/base/iso/stdlib_iso.h new file mode 100644 index 000000000..3fb5b3495 --- /dev/null +++ b/gcc-4.9/fixincludes/tests/base/iso/stdlib_iso.h @@ -0,0 +1,16 @@ +/* DO NOT EDIT THIS FILE. + + It has been auto-edited by fixincludes from: + + "fixinc/tests/inc/iso/stdlib_iso.h" + + This had to be done to correct non-standard usages in the + original, manufacturer supplied header file. */ + + + +#if defined( SOLARIS_CXX_LINKAGE_CHECK ) +#if __cplusplus >= 199711L && !__GNUG__ +extern "C++" { + void *bsearch(const void *, const void *, size_t, size_t, +#endif /* SOLARIS_CXX_LINKAGE_CHECK */ |