arith.c (arith_power): If simplifying integer power expression to zero...
authorThomas Koenig <tkoenig@netcologne.de>
Mon, 23 Jan 2017 19:43:28 +0000 (19:43 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Mon, 23 Jan 2017 19:43:28 +0000 (19:43 +0000)
commit15b8fd499dd07627a78253ab722cc9049d86d68a
tree02869f328c1d246803486b6bbb269f001c4407e2
parent53d190c120b3e98f54ed3093d22a72bdf87d690b
arith.c (arith_power): If simplifying integer power expression to zero...

2017-01-23  Thomas Koenig  <tkoenig@netcologne.de>

* arith.c (arith_power):  If simplifying integer power expression
to zero, warn if -Winteger-division is given.

2017-01-23  Thomas Koenig  <tkoenig@netcologne.de>

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

From-SVN: r244830
gcc/fortran/ChangeLog
gcc/fortran/arith.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/integer_exponentiation_7.f90 [new file with mode: 0644]