[Bug tree-optimization/56407] [4.7 Regression] Optimizations (-O2 -O3) make comparison of arrays of ints to fail
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56407 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED Target Milestone|4.7.4 |4.8.0 Known to fail||4.7.4 --- Comment #5 from Richard Biener rguenth at gcc dot gnu.org --- Fixed in 4.8.0.
[Bug tree-optimization/56407] [4.7 Regression] Optimizations (-O2 -O3) make comparison of arrays of ints to fail
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56407 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Target Milestone|4.7.3 |4.7.4 --- Comment #4 from Richard Biener rguenth at gcc dot gnu.org 2013-04-11 07:59:32 UTC --- GCC 4.7.3 is being released, adjusting target milestone.
[Bug tree-optimization/56407] [4.7 Regression] Optimizations (-O2 -O3) make comparison of arrays of ints to fail
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56407 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Priority|P3 |P2 Component|c |tree-optimization Known to work||4.8.0
[Bug tree-optimization/56407] [4.7 Regression] Optimizations (-O2 -O3) make comparison of arrays of ints to fail
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56407 --- Comment #2 from Richard Biener rguenth at gcc dot gnu.org 2013-04-03 10:22:53 UTC --- Testcase, also fails at -O2: /* { dg-do run } */ extern void abort(void); extern int rand(void); static void copy(int *r,int *a,int na) { int i; for( i = 0 ; i na ; i++ ) r[i] = a[i]; } static void foo(int *a,int na) { int i; for( i = 0 ; i na ; i++ ) a[i] = rand(); } static int cmp(int *a,int *b,int n) { int i; for( i = 0 ; i n ; i++ ) if ( a[i] != b[i] ) return -1; return 0; } void __attribute__((noinline,noclone)) test(int sz,int comm) { int j,n; int v[64],w[64]; for( j = 1 ; j = sz ; j++ ) { n = (2 * j - 1) * (2 * j - 1); foo(w,n); copy(v,w,n); if ( comm ) if ( cmp(v,w,n) ) abort (); } } int main() { test(2,1); return 0; }
[Bug tree-optimization/56407] [4.7 Regression] Optimizations (-O2 -O3) make comparison of arrays of ints to fail
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56407 --- Comment #3 from Richard Biener rguenth at gcc dot gnu.org 2013-04-03 10:26:53 UTC --- Author: rguenth Date: Wed Apr 3 10:25:23 2013 New Revision: 197399 URL: http://gcc.gnu.org/viewcvs?rev=197399root=gccview=rev Log: 2013-04-03 Richard Biener rguent...@suse.de PR tree-optimization/56407 * gcc.dg/torture/pr56407.c: New testcase. Added: trunk/gcc/testsuite/gcc.dg/torture/pr56407.c Modified: trunk/gcc/testsuite/ChangeLog Author: rguenth Date: Wed Apr 3 10:26:13 2013 New Revision: 197400 URL: http://gcc.gnu.org/viewcvs?rev=197400root=gccview=rev Log: 2013-04-03 Richard Biener rguent...@suse.de PR tree-optimization/56407 * gcc.dg/torture/pr56407.c: New testcase. Added: branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/torture/pr56407.c Modified: branches/gcc-4_8-branch/gcc/testsuite/ChangeLog