[Bug fortran/83705] [8 Regression] ICE/wrong code with large values of REPEAT after revision r256284
jb at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Feb 1 07:41:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83705
--- Comment #8 from Janne Blomqvist <jb at gcc dot gnu.org> ---
Author: jb
Date: Thu Feb 1 07:41:03 2018
New Revision: 257281
URL: https://gcc.gnu.org/viewcvs?rev=257281&root=gcc&view=rev
Log:
PR 83705 Repeat with large values
This patch fixes the regression by increasing the limit where we fall
back to runtime to 2**28 elements, which is the same limit where
previous releases failed. The are still bugs in the runtime
evaluation, so in many cases longer characters will still fail, so
print a warning message.
Regtested on x86_64-pc-linux-gnu.
gcc/fortran/ChangeLog:
2018-02-01 Janne Blomqvist <jb@gcc.gnu.org>
PR fortran/83705
* simplify.c (gfc_simplify_repeat): Increase limit for deferring
to runtime, print a warning message.
gcc/testsuite/ChangeLog:
2018-02-01 Janne Blomqvist <jb@gcc.gnu.org>
PR fortran/83705
* gfortran.dg/repeat_7.f90: Catch warning message.
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/simplify.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/repeat_7.f90
More information about the Gcc-bugs
mailing list