]> gcc.gnu.org Git - gcc.git/commitdiff
re PR middle-end/68743 (FAIL: gfortran.dg/aint_anint_1.f90 -O0 execution test)
authorJohn David Anglin <danglin@gcc.gnu.org>
Sat, 9 Jan 2016 18:13:44 +0000 (18:13 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sat, 9 Jan 2016 18:13:44 +0000 (18:13 +0000)
PR middle-end/68743
* match.pd: Require target has function_c99_misc before doing
truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.

From-SVN: r232191

gcc/ChangeLog
gcc/match.pd

index 08c2c8c372005720b8fb8d3664f65371e4c91665..609a6a3eab8971262010216bb08dd3fa5bdc6627 100644 (file)
@@ -1,3 +1,9 @@
+2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
+
+       PR middle-end/68743
+       * match.pd: Require target has function_c99_misc before doing
+       truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
+       
 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
 
        * configure.ac (isl_options_set_schedule_serialize_sccs): Also 
index 64e718cc5c90519b87eaef554440ab307b261a10..069d27183995c99cf2c46676d023193df1dd3043 100644 (file)
@@ -2784,7 +2784,8 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT)
          BUILT_IN_RINTF BUILT_IN_RINTF)
  /* truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.,
     if x is a float.  */
- (if (optimize && canonicalize_math_p ())
+ (if (optimize && canonicalize_math_p ()
+      && targetm.libc_has_function (function_c99_misc))
   (simplify
    (froms (convert float_value_p@0))
    (convert (tos @0)))))
This page took 0.075187 seconds and 5 git commands to generate.