public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/13363] New: [tree-ssa] ICE with arrays
@ 2003-12-09  2:33 pinskia at gcc dot gnu dot org
  2003-12-09  2:34 ` [Bug optimization/13363] [tree-ssa] ICE with zero sized arrays pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-09  2:33 UTC (permalink / raw)
  To: gcc-bugs

Try to compile this at -O1 or above:
enum machine_mode { MAX_MACHINE_MODE };
enum insn_code { CODE_FOR_nothing };

enum insn_code fixtab[(int) MAX_MACHINE_MODE][(int) MAX_MACHINE_MODE][2];
enum insn_code fixtrunctab[(int) MAX_MACHINE_MODE][(int) MAX_MACHINE_MODE][2];

void
init_optabs ()
{
  int i, j;
  enum insn_code *p;


  for (p = fixtab[0][0];
       p < fixtab[0][0] + sizeof fixtab / sizeof (fixtab[0][0][0]);
       p++)
    *p = CODE_FOR_nothing;

  for (p = fixtrunctab[0][0];
       p < fixtrunctab[0][0] + sizeof fixtrunctab / sizeof (fixtrunctab[0][0][0]);
       p++)
    *p = CODE_FOR_nothing;
}


You get:
new.c: In function `init_optabs':

new.c:11: internal compiler error: in maybe_fold_offset_to_array_ref, at tree-ssa-ccp.c:1534
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

-- 
           Summary: [tree-ssa] ICE with arrays
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: critical
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-01-26 21:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-09  2:33 [Bug optimization/13363] New: [tree-ssa] ICE with arrays pinskia at gcc dot gnu dot org
2003-12-09  2:34 ` [Bug optimization/13363] [tree-ssa] ICE with zero sized arrays pinskia at gcc dot gnu dot org
2003-12-09 16:39 ` pinskia at gcc dot gnu dot org
2003-12-16 19:42 ` pinskia at gcc dot gnu dot org
2004-01-26 20:12 ` cvs-commit at gcc dot gnu dot org
2004-01-26 20:12 ` cvs-commit at gcc dot gnu dot org
2004-01-26 20:15 ` cvs-commit at gcc dot gnu dot org
2004-01-26 21:07 ` bangerth at dealii dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).