Commit e1775b33 by Bruce Korb Committed by Bruce Korb

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

From-SVN: r205793
parent f58fc6a5
2013-12-07 Bruce Korb <bkorb@gnu.org>
* 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
2013-12-06 Richard Biener <rguenther@suse.de> 2013-12-06 Richard Biener <rguenther@suse.de>
* inclhack.def (suse_linux_vt_cxx): New fix for linux/vt.h * inclhack.def (suse_linux_vt_cxx): New fix for linux/vt.h
......
...@@ -9,16 +9,6 @@ ...@@ -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 ) #if defined( FERAISEEXCEPT_NOSSE_DIVBYZERO_CHECK )
# ifdef __SSE_MATH__ # ifdef __SSE_MATH__
__asm__ __volatile__ ("divss %1, %0" : : "x" (__f), "x" (__g)); __asm__ __volatile__ ("divss %1, %0" : : "x" (__f), "x" (__g));
...@@ -27,3 +17,13 @@ ...@@ -27,3 +17,13 @@
: "=t" (__f) : "0" (__f), "u" (__g) : "st(1)"); : "=t" (__f) : "0" (__f), "u" (__g) : "st(1)");
# endif # endif
#endif /* FERAISEEXCEPT_NOSSE_DIVBYZERO_CHECK */ #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 */
...@@ -20,6 +20,13 @@ ...@@ -20,6 +20,13 @@
#endif /* SOLARIS_MATH_1_CHECK */ #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 ) #if defined( SOLARIS_MATH_2_CHECK )
#ident "@(#)math_c99.h 1.9 04/11/01 SMI" #ident "@(#)math_c99.h 1.9 04/11/01 SMI"
#undef INFINITY #undef INFINITY
...@@ -68,10 +75,3 @@ ...@@ -68,10 +75,3 @@
#undef isunordered #undef isunordered
#define isunordered(x, y) __builtin_isunordered(x, y) #define isunordered(x, y) __builtin_isunordered(x, y)
#endif /* SOLARIS_MATH_9_CHECK */ #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 */
...@@ -10,5 +10,5 @@ ...@@ -10,5 +10,5 @@
#if defined( SUSE_LINUX_VT_CXX_CHECK ) #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 */ #endif /* SUSE_LINUX_VT_CXX_CHECK */
...@@ -125,16 +125,6 @@ extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask); ...@@ -125,16 +125,6 @@ extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask);
#endif /* SOLARIS_MUTEX_INIT_2_CHECK */ #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 ) #if defined( SOLARIS_ONCE_INIT_1_CHECK )
#pragma ident "@(#)pthread.h 1.37 04/09/28 SMI" #pragma ident "@(#)pthread.h 1.37 04/09/28 SMI"
#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG) #if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
...@@ -156,6 +146,16 @@ extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask); ...@@ -156,6 +146,16 @@ extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask);
#endif /* SOLARIS_ONCE_INIT_2_CHECK */ #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 ) #if defined( THREAD_KEYWORD_CHECK )
extern int pthread_create (pthread_t *__restrict __thr, extern int pthread_create (pthread_t *__restrict __thr,
extern int pthread_kill (pthread_t __thr, int __signo); extern int pthread_kill (pthread_t __thr, int __signo);
......
...@@ -9,13 +9,13 @@ ...@@ -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 ) #if defined( VMS_DECC_BUILTIN_CHECK )
define FD_ZERO(__p) memset((__p), 0, sizeof(*(__p))) define FD_ZERO(__p) memset((__p), 0, sizeof(*(__p)))
#endif /* VMS_DECC_BUILTIN_CHECK */ #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 */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment