Commit 201a97b4 by Andrew Pinski Committed by Andrew Pinski

trans-expr.c (gfc_conv_cst_int_power): Only check for…

trans-expr.c (gfc_conv_cst_int_power): Only check for flag_unsafe_math_optimizations if we have a float type.

2004-12-27  Andrew Pinski  <pinskia@physics.uc.edu>

        * trans-expr.c (gfc_conv_cst_int_power): Only check for
        flag_unsafe_math_optimizations if we have a float type.

From-SVN: r92644
parent 963fe808
2004-12-27 Andrew Pinski <pinskia@physics.uc.edu>
* trans-expr.c (gfc_conv_cst_int_power): Only check for
flag_unsafe_math_optimizations if we have a float type.
2004-12-27 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de> 2004-12-27 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
* trans-intrinsic.c (gfc_conv_intrinsic_ishft): Change to * trans-intrinsic.c (gfc_conv_intrinsic_ishft): Change to
......
...@@ -542,7 +542,8 @@ gfc_conv_cst_int_power (gfc_se * se, tree lhs, tree rhs) ...@@ -542,7 +542,8 @@ gfc_conv_cst_int_power (gfc_se * se, tree lhs, tree rhs)
n = abs (TREE_INT_CST_LOW (rhs)); n = abs (TREE_INT_CST_LOW (rhs));
sgn = tree_int_cst_sgn (rhs); sgn = tree_int_cst_sgn (rhs);
if ((!flag_unsafe_math_optimizations || optimize_size) && (n > 2 || n < -1)) if (((FLOAT_TYPE_P (type) && !flag_unsafe_math_optimizations) || optimize_size)
&& (n > 2 || n < -1))
return 0; return 0;
/* rhs == 0 */ /* rhs == 0 */
......
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