------- Comment #7 from sje at cup dot hp dot com 2010-02-02 17:29 ------- If you apply the patch from comment #6 the following test case generates bad code at -O1 or higher optimization. Instead of loading 0 to initialize v it is loading the contents of memory location 0 to do the initialization.
f(int n) { int i; double v[n]; for(i=0;i<n;i++) v[i]=0; } main() { f(100); exit(0); } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42924