re PR tree-optimization/91169 (cd2a31a FAILs)
authorRichard Biener <rguenther@suse.de>
Mon, 5 Aug 2019 12:30:49 +0000 (12:30 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 5 Aug 2019 12:30:49 +0000 (12:30 +0000)
commita2001d445a5ff419c27241019c85f1e033d89d67
treedc77436e1a45df7a781ad4909f4d5a16fd3c9700
parent96d5c6dcf6b8ec0ad34a8208fc6d82df3ce20e2a
re PR tree-optimization/91169 (cd2a31a FAILs)

2019-08-05  Richard Biener  <rguenther@suse.de>

PR middle-end/91169
* fold-const.c (get_array_ctor_element_at_index): Create
offset_ints according to the sign of the index type and treat
that as signed if it is obviously so.

* gnat.dg/array37.adb: New testcase.

From-SVN: r274114
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/array37.adb [new file with mode: 0644]