summaryrefslogtreecommitdiff
path: root/gcc/builtins.def
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2007-03-03 17:18:17 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2007-03-03 17:18:17 +0000
commit234e67b6c61909cc1e5f13229788a074c68d0bb8 (patch)
tree21419e656c7a48167ddaba5a7b2a95b362ae67b5 /gcc/builtins.def
parentb3da18682f2cd3a7cf59289e534c7d085d16cbd1 (diff)
downloadgcc-234e67b6c61909cc1e5f13229788a074c68d0bb8.tar.gz
* builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
flag_rounding_math, not flag_unsafe_math_optimizations. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122509 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/builtins.def')
-rw-r--r--gcc/builtins.def12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/builtins.def b/gcc/builtins.def
index 48c97bf912e..8215e5beaa7 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