[Bug c/45268] New: CPU2006 458.sjeng: type mismatch in array reference with -fwhole-program -combine

changpeng dot fang at amd dot com gcc-bugzilla@gcc.gnu.org
Thu Aug 12 18:46:00 GMT 2010


458.sjeng compilation fails with the following config options:
( fails with gcc4.6, passes with gcc4.4, gcc4.5 not tested yet)

458.sjeng=peak=default:
ONESTEP = yes
COPTIMIZE       = -fwhole-program -combine -march=amdfam10 -m64
PORTABILITY = -DSPEC_CPU_LP64
feedback = 0

Here is the message:

specmake build 2> make.err | tee make.out
/usr/local/bin/gcc -DSPEC_CPU -DNDEBUG     -fwhole-program -combine
-march=amdfam10 -m64       -DSPEC_CPU_LP64           attacks.c book.c crazy.c
draw.c ecache.c epd.c eval.c leval.c moves.c neval.c partner.c proof.c rcfile.c
search.c see.c seval.c sjeng.c ttable.c utils.c           -o sjeng
sjeng.c: In function 'main':
sjeng.c:75:5: error: type mismatch in array reference
struct move_x

struct move_x

game_history_x[move_number.324] = path_x[0];

sjeng.c:75:5: error: type mismatch in array reference
struct move_x

struct move_x

game_history_x[move_number.390] = path_x[0];

sjeng.c:75:5: error: type mismatch in array reference
struct move_x

struct move_x

path_x[0] = game_history_x[move_number.428];

sjeng.c:75:5: error: type mismatch in array reference
struct move_x

struct move_x

path_x[0] = game_history_x[move_number.435];

sjeng.c:75:5: error: type mismatch in array reference
struct move_x

struct move_x

path_x[0] = game_history_x[move_number.439];

sjeng.c:75:5: internal compiler error: verify_gimple failed


-- 
           Summary: CPU2006 458.sjeng: type mismatch in array reference with
                    -fwhole-program -combine
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: changpeng dot fang at amd dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45268



More information about the Gcc-bugs mailing list