[PATCH,Fortran] -- Check for overflow integer exponentation

Jerry DeLisle jvdelisle@charter.net
Fri Jun 14 23:43:00 GMT 2019


On 6/14/19 3:56 PM, Steve Kargl wrote:
> I have had this patch in my tree since the beginning of May.
> During constant folding, gfortran would not issue an error
> for overflow for integer exponentation.  Bootstrapped
> and regression tested multiple times on x86_64-*-freebsd?
> OK to commit?
> 
> 2019-06-15  Steven G. Kargl  <kargl@gcc.gnu.org>
> 
> 	* arith.c (arith_power): Rework overflow of an integer to an integer
> 	exponent.
> 
> 2019-06-15  Steven G. Kargl  <kargl@gcc.gnu.org>
> 
> 	* gfortran.dg/integer_exponentiation_4.f90: Update test.
> 	* gfortran.dg/integer_exponentiation_5.F90: Ditto.
> 	* gfortran.dg/no_range_check_1.f90: Ditto.
> 

OK, thanks Steve



More information about the Fortran mailing list