This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/55021] [4.8 Regression] The tests gfortran.dg/integer_exponentiation_5.F90 and masklr_1.F90 are miscompiled with -flto after revision 192529
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 22 Oct 2012 13:48:27 +0000
- Subject: [Bug lto/55021] [4.8 Regression] The tests gfortran.dg/integer_exponentiation_5.F90 and masklr_1.F90 are miscompiled with -flto after revision 192529
- Auto-submitted: auto-generated
- References: <bug-55021-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55021
--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2012-10-22 13:48:27 UTC ---
> I get
>
> > ./gfortran -B. -B ../x86_64-unknown-linux-gnu/libgfortran/.libs t.f90 -ffree-line-length-none
> t.f90:20.28:
>
> call check_i8(i8**43_8,3_8**43_8)
> 1
> Error: Arithmetic overflow at (1)
If t.f90 is the reduced test in comment #0 (reduced from
integer_exponentiation_5.F90), you need -fno-range-check (no need for
-ffree-line-length-none).