diff options
author | korbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-08 21:55:46 +0000 |
---|---|---|
committer | korbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-08 21:55:46 +0000 |
commit | d1ed71e537d52a42eeb174b85f9075a4aae9a231 (patch) | |
tree | eae0ea3a2fb681b6c1e79c3d180d330e71d68eb8 /fixincludes/tests | |
parent | d6ee8401113533bd1912f55f1a964af4e0fb0f53 (diff) | |
download | gcc-d1ed71e537d52a42eeb174b85f9075a4aae9a231.tar.gz |
fenv.h on Ubuntu
plus fix the ordering of the patches:
* inclhack.def: many of the headers found under "bits/" are
often stashed under architecture directories. Apply fixes
to those, too. Also, re-ordered misordered fixes.
* tests/base/linux/vt.h: 80 columns in .def file limitation
* tests/base/iso/math_c99.h: adjust ordering
* tests/base/rtldef/string.h: likewise
* tests/base/bits/fenv.h: likewise
* tests/base/pthread.h: likewise
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205793 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'fixincludes/tests')
-rw-r--r-- | fixincludes/tests/base/bits/fenv.h | 20 | ||||
-rw-r--r-- | fixincludes/tests/base/iso/math_c99.h | 14 | ||||
-rw-r--r-- | fixincludes/tests/base/linux/vt.h | 2 | ||||
-rw-r--r-- | fixincludes/tests/base/pthread.h | 20 | ||||
-rw-r--r-- | fixincludes/tests/base/rtldef/string.h | 12 |
5 files changed, 34 insertions, 34 deletions
diff --git a/fixincludes/tests/base/bits/fenv.h b/fixincludes/tests/base/bits/fenv.h index a82ec25e8b4..eec612b7e24 100644 --- a/fixincludes/tests/base/bits/fenv.h +++ b/fixincludes/tests/base/bits/fenv.h @@ -9,16 +9,6 @@ -#if defined( FERAISEEXCEPT_NOSSE_INVALID_CHECK ) -# ifdef __SSE_MATH__ - __asm__ __volatile__ ("divss %0, %0" : : "x" (__f)); -# else - __asm__ __volatile__ ("fdiv %%st, %%st(0); fwait" - : "=t" (__f) : "0" (__f)); -# endif -#endif /* FERAISEEXCEPT_NOSSE_INVALID_CHECK */ - - #if defined( FERAISEEXCEPT_NOSSE_DIVBYZERO_CHECK ) # ifdef __SSE_MATH__ __asm__ __volatile__ ("divss %1, %0" : : "x" (__f), "x" (__g)); @@ -27,3 +17,13 @@ : "=t" (__f) : "0" (__f), "u" (__g) : "st(1)"); # endif #endif /* FERAISEEXCEPT_NOSSE_DIVBYZERO_CHECK */ + + +#if defined( FERAISEEXCEPT_NOSSE_INVALID_CHECK ) +# ifdef __SSE_MATH__ + __asm__ __volatile__ ("divss %0, %0" : : "x" (__f)); +# else + __asm__ __volatile__ ("fdiv %%st, %%st(0); fwait" + : "=t" (__f) : "0" (__f)); +# endif +#endif /* FERAISEEXCEPT_NOSSE_INVALID_CHECK */ diff --git a/fixincludes/tests/base/iso/math_c99.h b/fixincludes/tests/base/iso/math_c99.h index 4d9b6311f6d..3758cb9b5bc 100644 --- a/fixincludes/tests/base/iso/math_c99.h +++ b/fixincludes/tests/base/iso/math_c99.h @@ -20,6 +20,13 @@ #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 @@ -68,10 +75,3 @@ #undef isunordered #define isunordered(x, y) __builtin_isunordered(x, y) #endif /* SOLARIS_MATH_9_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 */ diff --git a/fixincludes/tests/base/linux/vt.h b/fixincludes/tests/base/linux/vt.h index 4814ab642c0..94e44efc26f 100644 --- a/fixincludes/tests/base/linux/vt.h +++ b/fixincludes/tests/base/linux/vt.h @@ -10,5 +10,5 @@ #if defined( SUSE_LINUX_VT_CXX_CHECK ) -unsigned int newev; /* New console (if changing) */ +unsigned int newev; /* New console (if changing) */ #endif /* SUSE_LINUX_VT_CXX_CHECK */ diff --git a/fixincludes/tests/base/pthread.h b/fixincludes/tests/base/pthread.h index 1d28067ad57..c39cd9472dd 100644 --- a/fixincludes/tests/base/pthread.h +++ b/fixincludes/tests/base/pthread.h @@ -125,16 +125,6 @@ extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask); #endif /* SOLARIS_MUTEX_INIT_2_CHECK */ -#if defined( SOLARIS_RWLOCK_INIT_1_CHECK ) -#ident "@(#)pthread.h 1.26 98/04/12 SMI" -#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG) -#define PTHREAD_RWLOCK_INITIALIZER {0, 0, 0, {0, 0, 0}, {0, 0}, {0, 0}} -#else -#define PTHREAD_RWLOCK_INITIALIZER {0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}} -#endif -#endif /* SOLARIS_RWLOCK_INIT_1_CHECK */ - - #if defined( SOLARIS_ONCE_INIT_1_CHECK ) #pragma ident "@(#)pthread.h 1.37 04/09/28 SMI" #if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG) @@ -156,6 +146,16 @@ extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask); #endif /* SOLARIS_ONCE_INIT_2_CHECK */ +#if defined( SOLARIS_RWLOCK_INIT_1_CHECK ) +#ident "@(#)pthread.h 1.26 98/04/12 SMI" +#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG) +#define PTHREAD_RWLOCK_INITIALIZER {0, 0, 0, {0, 0, 0}, {0, 0}, {0, 0}} +#else +#define PTHREAD_RWLOCK_INITIALIZER {0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}} +#endif +#endif /* SOLARIS_RWLOCK_INIT_1_CHECK */ + + #if defined( THREAD_KEYWORD_CHECK ) extern int pthread_create (pthread_t *__restrict __thr, extern int pthread_kill (pthread_t __thr, int __signo); diff --git a/fixincludes/tests/base/rtldef/string.h b/fixincludes/tests/base/rtldef/string.h index 6249b0c6732..e01354831de 100644 --- a/fixincludes/tests/base/rtldef/string.h +++ b/fixincludes/tests/base/rtldef/string.h @@ -9,13 +9,13 @@ -#if defined( VMS_DISABLE_DECC_STRING_BUILTINS_CHECK ) -#if !defined(__VAX) && !defined(__GNUC__) - -#endif /* VMS_DISABLE_DECC_STRING_BUILTINS_CHECK */ - - #if defined( VMS_DECC_BUILTIN_CHECK ) define FD_ZERO(__p) memset((__p), 0, sizeof(*(__p))) #endif /* VMS_DECC_BUILTIN_CHECK */ + + +#if defined( VMS_DISABLE_DECC_STRING_BUILTINS_CHECK ) +#if !defined(__VAX) && !defined(__GNUC__) + +#endif /* VMS_DISABLE_DECC_STRING_BUILTINS_CHECK */ |