re PR middle-end/67442 (GCC 5.2.0 on x86_64 creates invalid address on specific array...
authorRichard Biener <rguenther@suse.de>
Wed, 16 Sep 2015 07:25:15 +0000 (07:25 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 16 Sep 2015 07:25:15 +0000 (07:25 +0000)
commit87261d26850e695a2e68f1e7b6115001ee67299e
tree204dfe94f503659d5aa968fbd02e9017d2abdf78
parentfcb87c50b00e203aa3ef586915edd305429d3868
re PR middle-end/67442 (GCC 5.2.0 on x86_64 creates invalid address on specific array index calculation through pointer)

2015-09-16  Richard Biener  <rguenther@suse.de>

PR middle-end/67442
* fold-const.c (extract_muldiv_1): Properly extend multiplication
result before builting a tree via wide_int_to_tree.

* gcc.dg/torture/pr67442.c: New testcase.

From-SVN: r227818
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr67442.c [new file with mode: 0644]