aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2007-03-03 17:18:17 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2007-03-03 17:18:17 +0000
commita50639323b1cb8d55de55e4fc5a9ddcc3f3ae743 (patch)
tree21419e656c7a48167ddaba5a7b2a95b362ae67b5
parent31ff73b5ab49b5326e27dee776f6a4306ea88333 (diff)
downloadgcc-a50639323b1cb8d55de55e4fc5a9ddcc3f3ae743.zip
gcc-a50639323b1cb8d55de55e4fc5a9ddcc3f3ae743.tar.gz
gcc-a50639323b1cb8d55de55e4fc5a9ddcc3f3ae743.tar.bz2
builtins.def (ATTR_MATHFN_FPROUNDING): Rely on flag_rounding_math, not flag_unsafe_math_optimizations.
* builtins.def (ATTR_MATHFN_FPROUNDING): Rely on flag_rounding_math, not flag_unsafe_math_optimizations. From-SVN: r122509
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/builtins.def12
2 files changed, 9 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a514011..ea7b2a5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,8 @@
2007-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+ * builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
+ flag_rounding_math, not flag_unsafe_math_optimizations.
+
* c-pretty-print.c (pp_c_direct_abstract_declarator): Use
fold_build2.
* config/alpha/alpha.c (alpha_fold_builtin_zapnot,
diff --git a/gcc/builtins.def b/gcc/builtins.def
index 48c97bf..8215e5b 100644
--- a/gcc/builtins.def
+++ b/gcc/builtins.def
@@ -150,13 +150,13 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
ATTR_NOTHROW_LIST : ATTR_CONST_NOTHROW_LIST)
/* Define an attribute list for math functions that are normally
- "pure" but if flag_unsafe_math_optimizations is set they are
- instead "const". This distinction accounts for the fact that some
- math functions check the rounding mode which is akin to examining
- global memory. In "unsafe" mode we can be less careful. */
+ "const" but if flag_rounding_math is set they are instead "pure".
+ This distinction accounts for the fact that some math functions
+ check the rounding mode which is akin to examining global
+ memory. */
#undef ATTR_MATHFN_FPROUNDING
-#define ATTR_MATHFN_FPROUNDING (flag_unsafe_math_optimizations ? \
- ATTR_CONST_NOTHROW_LIST : ATTR_PURE_NOTHROW_NOVOPS_LIST)
+#define ATTR_MATHFN_FPROUNDING (flag_rounding_math ? \
+ ATTR_PURE_NOTHROW_NOVOPS_LIST : ATTR_CONST_NOTHROW_LIST)
/* Define an attribute list for math functions that are normally
"impure" because some of them may write into global memory for