[forwarded from http://bugs.debian.org/356231] found in 4.1 and in 4.2.0 20060304 not found in 3.4, 4.0 falk@juist:/src/delta/bin% cat mini.c int printf(const char *format, ...); extern const char help_string[]; void app_opts(void) { printf("%s", help_string); } const char help_string[] = "foo\n"; falk@juist:/src/delta/bin% gcc -c mini.c falk@juist:/src/delta/bin% gcc -c mini.c -O mini.c: In function 'app_opts': mini.c:6: internal compiler error: in op_iter_init, at tree-flow-inline.h:1036 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Hmm, The problem is really we are looking at the VOPS pre going into SSA in set_rhs. That seems wrong.
Right. I have a patch.
Subject: Bug 26672 Author: rguenth Date: Tue Mar 14 12:50:10 2006 New Revision: 112050 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=112050 Log: 2006-03-14 Richard Guenther <rguenther@suse.de> PR tree-optimization/26672 * tree-ssa-propagate.c (set_rhs): Don't walk DEFs if not in SSA form. * gcc.dg/torture/pr26672.c: New testcase. Added: trunk/gcc/testsuite/gcc.dg/torture/pr26672.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-ssa-propagate.c
Subject: Bug 26672 Author: rguenth Date: Tue Mar 14 13:30:08 2006 New Revision: 112051 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=112051 Log: 2006-03-14 Richard Guenther <rguenther@suse.de> PR tree-optimization/26672 * tree-ssa-propagate.c (set_rhs): Don't walk DEFs if not in SSA form. * gcc.dg/torture/pr26672.c: New testcase. Added: branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/torture/pr26672.c Modified: branches/gcc-4_1-branch/gcc/ChangeLog branches/gcc-4_1-branch/gcc/testsuite/ChangeLog branches/gcc-4_1-branch/gcc/tree-ssa-propagate.c
Fixed.
Subject: Bug number PR26672 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2006-03/msg00841.html