This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/42147] New: ICE: verify_stmts failed


Test trunk/gcc/testsuite/gcc.dg/pr34668-1.c fails with ICE for AVR target.

PR34668-1.c:

/* PR c/34668 */
/* { dg-do compile } */
/* { dg-options "--combine -O2" } */
/* { dg-additional-sources "pr34668-2.c" } */

struct optab { unsigned code; };
extern struct optab optab_table[1];

void
init_optab (struct optab *op)
{
  op->code = 0xdead;
}

void
set_conv_libfunc (void)
{
  init_optab (&optab_table[0]);
}
-----------------------------------------
PR34668-2.c:

/* PR c/34668 */
/* { dg-do compile } */

struct optab { unsigned code; };
extern struct optab optab_table[1];

---------------------------------------------------

Executing on host: /media/verbatim/gcchead/obj-dir/gcc/xgcc
-B/media/verbatim/gcchead/obj-dir/gcc/
/media/verbatim/gcchead/trunk/gcc/testsuite/gcc.dg/pr34668-1.c   --combine -O2
-DSTACK_SIZE=2048 -DNO_TRAMPOLINES 
/media/verbatim/gcchead/trunk/gcc/testsuite/gcc.dg/pr34668-2.c -S 
-DSIGNAL_SUPPRESS -mmcu=atmega128   -o pr34668-1.s    (timeout = 300)
/media/verbatim/gcchead/trunk/gcc/testsuite/gcc.dg/pr34668-2.c: In function
'set_conv_libfunc':
/media/verbatim/gcchead/trunk/gcc/testsuite/gcc.dg/pr34668-2.c:5:15: error:
type mismatch in array reference
struct optab

struct optab

# .MEM_3 = VDEF <.MEM_1(D)>
optab_table[0].code = 57005;

/media/verbatim/gcchead/trunk/gcc/testsuite/gcc.dg/pr34668-2.c:5:15: internal
compiler error: verify_stmts failed
Please submit a full bug report,


-- 
           Summary: ICE:  verify_stmts failed
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hutchinsonandy at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: avr-unknown-none


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]