[Bug c/15512] New: ICE on with -O3 -mtune=i486 on gcc.c-torture/compile/930621-1.c

niva at niisi dot msk dot ru gcc-bugzilla@gcc.gnu.org
Tue May 18 22:05:00 GMT 2004


* 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;
    }
}

-- 
           Summary: ICE on with -O3 -mtune=i486 on gcc.c-
                    torture/compile/930621-1.c
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: niva at niisi dot msk dot ru
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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



More information about the Gcc-bugs mailing list