m68k: mark all inline math functions as non-throwing
authorAndreas Schwab <schwab@linux-m68k.org>
Sun, 13 Jun 2010 20:30:17 +0000 (22:30 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Sun, 13 Jun 2010 20:30:17 +0000 (22:30 +0200)
ChangeLog.m68k
sysdeps/m68k/m680x0/fpu/bits/mathinline.h

index bbc8a8c..c5b5706 100644 (file)
@@ -1,5 +1,8 @@
 2010-06-13  Andreas Schwab  <schwab@linux-m68k.org>
 
+       * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Mark all functions as
+       non-throwing.
+
        * sysdeps/unix/sysv/linux/m68k/sys/user.h (NBPG, UPAGES)
        (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Define.
 
index 975ffd8..8a17127 100644 (file)
@@ -126,7 +126,7 @@ __NTH (__signbitl (long double __x))
 /* Define a const math function.  */
 #define __m81_defun(rettype, func, args)                                     \
   __m81_inline rettype __attribute__((__const__))                            \
-  __m81_u(func) args
+  __NTH (__m81_u(func) args)
 
 /* Define the three variants of a math function that has a direct
    implementation in the m68k fpu.  FUNC is the name for C (which will be
@@ -329,8 +329,8 @@ __m81_defun (long int, __CONCAT(__lrint,s), (float_type __x))                 \
 }                                                                        \
                                                                          \
 __m81_inline float_type                                                          \
-__m81_u(__CONCAT(__fma,s))(float_type __x, float_type __y,               \
-                          float_type __z)                                \
+__NTH (__m81_u(__CONCAT(__fma,s))(float_type __x, float_type __y,        \
+                                 float_type __z))                        \
 {                                                                        \
   return (__x * __y) + __z;                                              \
 }
@@ -346,8 +346,8 @@ __inline_functions (long double,l)
 
 # define __inline_functions(float_type, s)                             \
 __m81_inline void                                                      \
-__m81_u(__CONCAT(__sincos,s))(float_type __x, float_type *__sinx,      \
-                             float_type *__cosx)                       \
+__NTH (__m81_u(__CONCAT(__sincos,s))(float_type __x, float_type *__sinx, \
+                                    float_type *__cosx))               \
 {                                                                      \
   __asm ("fsincos%.x %2,%1:%0"                                         \
         : "=f" (*__sinx), "=f" (*__cosx) : "f" (__x));                 \
@@ -368,13 +368,13 @@ __inline_functions (long double,l)
    NAME, to make token pasting work correctly with -traditional.  */
 # define __inline_forward_c(rettype, name, args1, args2)       \
 __MATH_INLINE rettype __attribute__((__const__))               \
-  name args1                                                   \
+__NTH (name args1)                                             \
 {                                                              \
   return __CONCAT(__,name) args2;                              \
 }
 
 # define __inline_forward(rettype, name, args1, args2) \
-__MATH_INLINE rettype name args1                       \
+__MATH_INLINE rettype __NTH (name args1)               \
 {                                                      \
   return __CONCAT(__,name) args2;                      \
 }