re PR fortran/31120 ([4.1/4.2 only] ICE with integer_exponentiation_1.f90 and -ffast...
authorFrancois-Xavier Coudert <coudert@clipper.ens.fr>
Sat, 17 Mar 2007 19:58:37 +0000 (20:58 +0100)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sat, 17 Mar 2007 19:58:37 +0000 (19:58 +0000)
commit6f85ab62b70089d6568902e6d74c37e8bbcc8e43
tree70262ee6ede8e9e7eaef7f06b5639f584fb7b386
parenta8af9c34fded5ce25e60c939de31b5e1fb27c056
re PR fortran/31120 ([4.1/4.2 only] ICE with integer_exponentiation_1.f90 and -ffast-math)

PR fortran/31120

* trans-expr.c (gfc_conv_powi): Make n argument unsigned hwi.
(gfc_conv_cst_int_power): Handle integer exponent with care,
since it might be too large for us.

* gfortran.dg/integer_exponentiation_2.f90: New test.

From-SVN: r123028
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/integer_exponentiation_2.f90 [new file with mode: 0644]