PR 83705 Repeat with large values
commitc922c0f4cb4929ab43cebf9cd44bba145ad71d1c
authorjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Feb 2018 07:41:03 +0000 (1 07:41 +0000)
committerjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Feb 2018 07:41:03 +0000 (1 07:41 +0000)
tree0cc2f53da00d6b4a6fd019523f0f6a4bcab9e36b
parent1288505bda21b6bc4536b16bfc683e68c01f218d
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@257281 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/simplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/repeat_7.f90