[Bug middle-end/52693] Wrong code with SRA and arrays

2012-04-18 Thread jamborm at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52693 Martin Jambor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|

[Bug middle-end/52693] Wrong code with SRA and arrays

2012-03-28 Thread jamborm at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52693 Martin Jambor changed: What|Removed |Added URL||http://gcc.gnu.org/ml/gcc-p

[Bug middle-end/52693] Wrong code with SRA and arrays

2012-03-28 Thread jamborm at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52693 --- Comment #11 from Martin Jambor 2012-03-28 18:20:28 UTC --- Author: jamborm Date: Wed Mar 28 18:20:20 2012 New Revision: 185923 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=185923 Log: 2012-03-28 Martin Jambor PR middle-end/5

[Bug middle-end/52693] Wrong code with SRA and arrays

2012-03-28 Thread jamborm at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52693 --- Comment #10 from Martin Jambor 2012-03-28 18:03:34 UTC --- Author: jamborm Date: Wed Mar 28 18:03:28 2012 New Revision: 185921 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=185921 Log: 2012-03-28 Martin Jambor PR middle-end/5

[Bug middle-end/52693] Wrong code with SRA and arrays

2012-03-28 Thread jamborm at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52693 --- Comment #9 from Martin Jambor 2012-03-28 15:04:53 UTC --- Author: jamborm Date: Wed Mar 28 15:04:45 2012 New Revision: 185920 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=185920 Log: 2012-03-28 Martin Jambor PR middle-end/52

[Bug middle-end/52693] Wrong code with SRA and arrays

2012-03-27 Thread jamborm at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52693 --- Comment #8 from Martin Jambor 2012-03-27 18:22:44 UTC --- Author: jamborm Date: Tue Mar 27 18:22:39 2012 New Revision: 185891 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=185891 Log: 2012-03-27 Martin Jambor PR middle-end/52

[Bug middle-end/52693] Wrong code with SRA and arrays

2012-03-23 Thread jamborm at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52693 --- Comment #7 from Martin Jambor 2012-03-24 00:51:38 UTC --- Created attachment 26971 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26971 Proposed untested fix I'm currently bootstrapping and testing this patch.

[Bug middle-end/52693] Wrong code with SRA and arrays

2012-03-23 Thread jamborm at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52693 Martin Jambor changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug middle-end/52693] Wrong code with SRA and arrays

2012-03-23 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52693 --- Comment #5 from Andrew Pinski 2012-03-23 23:00:47 UTC --- Wait a minute, value = stack.l[D.4470_102]; With value_77 = MEM[(struct exprList_s *)&stack]; value$u_620 = MEM[(struct exprList_s *)&stack].u; Where is D.4470_102 being taken i

[Bug middle-end/52693] Wrong code with SRA and arrays

2012-03-23 Thread jamborm at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52693 --- Comment #4 from Martin Jambor 2012-03-23 22:45:47 UTC --- OTOH, I can confirm that the problematic variable is value, just not SRAing that one makes the testcase to return 120. (In the same function, SRA creates replacements also for stack a

[Bug middle-end/52693] Wrong code with SRA and arrays

2012-03-23 Thread jamborm at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52693 Martin Jambor changed: What|Removed |Added CC|mjambor at suse dot cz |jamborm at gcc dot gnu.org --- Comment #3

[Bug middle-end/52693] Wrong code with SRA and arrays

2012-03-23 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52693 --- Comment #2 from Andrew Pinski 2012-03-23 20:55:42 UTC --- The correct output should be 120 which is what happens at -O0.

[Bug middle-end/52693] Wrong code with SRA and arrays

2012-03-23 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52693 --- Comment #1 from Andrew Pinski 2012-03-23 20:51:40 UTC --- Created attachment 26970 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26970 Testcase