Bug 15512 - ICE on with -O3 -mtune=i486 on gcc.c-torture/compile/930621-1.c
Summary: ICE on with -O3 -mtune=i486 on gcc.c-torture/compile/930621-1.c
Status: RESOLVED DUPLICATE of bug 13985
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 3.4.0
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-18 11:10 UTC by niva
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host: i686-pc-linux-gnu
Target: i686-pc-linux-gnu
Build: i686-pc-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description niva 2004-05-18 11:10:26 UTC
* the exact version of GCC;

gcc version 3.4.0

     * the system type;

The host/build/target system is i686-pc-linux-gnu,

     * the options given when GCC was configured/built;

Configured with: /home/niva/src/gcc-3.4-binutils/configure
--with-gnu-as --with-gnu-ld --enable-generated-files-in-srcdir
--disable-checking --enable-languages=c
--srcdir=/home/niva/src/gcc-3.4-binutils
--prefix=/home/niva/local-osina --enable-cpp --enable-shared

     * the complete command line that triggers the bug;

/home/niva/local-osina/bin/gcc -O3 -c ttt.c -mtune=i486
/home/niva/local-osina/bin/gcc -O3 -c ttt.c -mtune=i386

      Note: we have initially detected the bug in gcc-3.4.0 targeted
      for i386-*-elf

     * the compiler output (error messages, warnings, etc.); and

ttt.c: In function `modlookup':
ttt.c:30: internal compiler error: in get_loop_body, at cfgloop.c:988
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

     * the  preprocessed  file (*.i*) that triggers the bug, generated by
       adding -save-temps to the complete compilation command, or, in the
       case  of  a  bug  report for the GNAT front end, a complete set of
       source files (see below).

int bytestart[5000 + 1];
unsigned char modtext[400 + 1];
unsigned char bytemem[2][45000L + 1];

long
modlookup (int l)
{
  signed char c;
  long j;
  long k;
  signed char w;
  long p;
  while (p != 0)
    {
      while ((k < bytestart[p + 2]) && (j <= l) && (modtext[j] == bytemem[w][k]))
 {
   k = k + 1;
   j = j + 1;
 }
      if (k == bytestart[p + 2])

   c = 1;

      else if (j > l)
 c = 3;
      else if (modtext[j] < bytemem[w][k])
 c = 0;
      else c = 2;
    }
}
Comment 1 Eric Botcazou 2004-05-18 11:19:26 UTC

*** This bug has been marked as a duplicate of 13985 ***