PR 83705 Repeat with large values
commiteae4d8fbb529d67428a2b0eba407b975ee13e7d1
authorJanne Blomqvist <jb@gcc.gnu.org>
Thu, 1 Feb 2018 07:41:03 +0000 (1 09:41 +0200)
committerJanne Blomqvist <jb@gcc.gnu.org>
Thu, 1 Feb 2018 07:41:03 +0000 (1 09:41 +0200)
tree0cc2f53da00d6b4a6fd019523f0f6a4bcab9e36b
parent22149e37f7537843947003b4c7df76b69dd287ac
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.

From-SVN: r257281
gcc/fortran/ChangeLog
gcc/fortran/simplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/repeat_7.f90