http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57385
--- Comment #4 from Alexander Ivchenko aivchenk at gmail dot com ---
Bootstrapped and tested on x86_64 linux, sent to gcc-patches.
http://patchwork.ozlabs.org/patch/246036/
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57385
--- Comment #5 from Alexander Ivchenko aivchenk at gmail dot com ---
btw it indeed gives a segfault for 4.7 on linux_64 if we change the index from
-1 to some -1.
g++ .../src/gcc/gcc/testsuite/gcc.dg/tree-ssa/pr57385.c -O1 -S -o pr57385.s
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57385
--- Comment #6 from Alexander Ivchenko aivchenk at gmail dot com ---
On Fri, May 24, 2013 at 1:15 PM, Kirill Yukhin kirill.yuk...@gmail.com wrote:
Ok for trunk and 4.8 after 4.8.1 is out.
Checked in to trunk:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57385
Richard Biener rguenth at gcc dot gnu.org changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57385
--- Comment #1 from Alexander Ivchenko aivchenk at gmail dot com ---
Following fix could solve the problem:
diff --git a/gcc-4.6/gcc/tree-ssa-sccvn.c b/gcc-4.6/gcc/tree-ssa-sccvn.c
index eb88969..704a86c 100644
--- a/gcc-4.6/gcc/tree-ssa-sccvn.c
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57385
Richard Biener rguenth at gcc dot gnu.org changed:
What|Removed |Added
CC||rguenth at gcc
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57385
--- Comment #3 from Alexander Ivchenko aivchenk at gmail dot com ---
Testing is in progress, will send to gcc-patches rigth after that.