gcc -B. -r -nostdlib edid.i -v -Wall -Wextra -O -ftree-loop-distribution -fgraphite-identity -g Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /home/b3po/build/gcc/gcc/configure --with-mpfr=/usr/local --with-gmp=/usr/local --with-ppl=/usr/local --with-cloog=/usr/local --with-mpc=/usr/local --with-libelf=/usr/local --enable-languages=c,c++ --enable-__cxa_atexit --enable-targets=all Thread model: posix gcc version 4.5.0 20091028 (experimental) (GCC) COLLECT_GCC_OPTIONS='-B.' '-r' '-nostdlib' '-v' '-Wall' '-Wextra' '-O' '-ftree-loop-distribution' '-fgraphite-identity' '-g' '-mtune=generic' /usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/cc1 -fpreprocessed edid.i -quiet -dumpbase edid.i -mtune=generic -auxbase edid -g -O -Wall -Wextra -version -ftree-loop-distribution -fgraphite-identity -o /tmp/ccioPiLW.s GNU C (GCC) version 4.5.0 20091028 (experimental) (x86_64-unknown-linux-gnu) compiled by GNU C version 4.5.0 20091028 (experimental), GMP version 4.3.1, MPFR version 2.4.1, MPC version 0.7 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU C (GCC) version 4.5.0 20091028 (experimental) (x86_64-unknown-linux-gnu) compiled by GNU C version 4.5.0 20091028 (experimental), GMP version 4.3.1, MPFR version 2.4.1, MPC version 0.7 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Compiler executable checksum: c30658ecf2032071e4fe041bf17f02de edid.c: In function ‘GetEDID_DDC1’: edid.c:25:1: internal compiler error: in check_loop_closed_ssa_use, at tree-ssa-loop-manip.c:424
Created attachment 18938 [details] gzipped preprocessed source triggering failure
Likewise.
Simplified testcase: /* { dg-do compile } */ /* { dg-options "-g -O -ftree-loop-distribution -fgraphite-identity" } */ int foo (int *x) { int a[10], b[10]; int i; a[9] = 8; b[9] = 8; for (i = 0; i < 9; i++) { a[i] = *x++; b[i] = 1; } b[i] = b[i] & !(a[i] ^ *x++); return b[i] ? i + 1 : 0; }
This testcase does work on the Graphite branch where I did not merged changes from trunk from the time when VTA was merged to trunk. See PR41401 as well.
Thanks. I was missing the libraries needed for graphite, so I hadn't ever tested it :-( My patches for bug 41926 (not posted yet) fixes the ICE, but we still fail -fcompare-debug. I'll work out where graphite code needs to be adjusted to support VTA.
*** Bug 41887 has been marked as a duplicate of this bug. ***
Subject: Bug 41888 Author: aoliva Date: Wed Nov 18 06:02:26 2009 New Revision: 154279 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=154279 Log: PR debug/41888 PR debug/41886 * graphite-scop-detection.c (stmt_simple_for_scop_p): Debug stmts are ok. * graphite-sese-to-poly.c (graphite_stmt_p): Likewise. (try_generate_gimple_bb): Skip debug stmts when finding data refs. * sese.c (sese_build_liveouts_bb): Skip debug stmts. (sese_bad_liveouts_use): New. (sese_reset_debug_liveouts_bb): New. (sese_build_liveouts): Use it. (rename_variables_in_stmt): Reset debug stmts rather than creating new vars for them. (expand_scalar_variable_stmt): Likewise. Modified: trunk/gcc/ChangeLog trunk/gcc/graphite-scop-detection.c trunk/gcc/graphite-sese-to-poly.c trunk/gcc/sese.c
Fixed