This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/31120] ICE with integer_exponentiation_1.f90 and -ffast-math
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Mar 2007 19:58:52 -0000
- Subject: [Bug fortran/31120] ICE with integer_exponentiation_1.f90 and -ffast-math
- References: <bug-31120-12313@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from fxcoudert at gcc dot gnu dot org 2007-03-17 19:58 -------
Subject: Bug 31120
Author: fxcoudert
Date: Sat Mar 17 19:58:37 2007
New Revision: 123028
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=123028
Log:
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.
Added:
trunk/gcc/testsuite/gfortran.dg/integer_exponentiation_2.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/trans-expr.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31120