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 bootstrap/12681] New: [cygwin] bootstrap broken: segfault in stage2 while compiling libgcc2.c:766


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: [cygwin] bootstrap broken: segfault in stage2 while
                    compiling libgcc2.c:766
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: critical
          Priority: P2
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: giovannibajo at libero dot it
                CC: danny_r_smith_2001 at yahoo dot co dot nz,gcc-bugs at
                    gcc dot gnu dot org
 GCC build triplet: i686-pc-cygwin
  GCC host triplet: i686-pc-cygwin
GCC target triplet: i686-pc-cygwin

Mailine is broken on cygwin. I got it off CVS today (2003/10/19), and it won't 
bootstrap.

./xgcc -B./ -B/usr/i686-pc-cygwin/bin/ -isystem /usr/i686-pc-cygwin/include -isy
stem /usr/i686-pc-cygwin/sys-include -L/cygdrive/d/code/gcc/mainline/out/gcc/../
ld -O2 -I../../gcc/gcc/../winsup/w32api/include -I../../gcc/gcc/../winsup/includ
e -I../../gcc/gcc/../winsup/cygwin/include -DIN_GCC    -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -isystem ./include   -g -DHAVE_GTHR_DEF
AULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I../../gcc/gcc -I../../gcc/
gcc/. -I../../gcc/gcc/../include   -DL_popcountdi2 -c ../../gcc/gcc/libgcc2.c -o
 libgcc/./_popcountdi2.o
../../gcc/gcc/libgcc2.c: In function `__popcountdi2':

../../gcc/gcc/libgcc2.c:766: internal compiler error: Segmentation fault
Please submit a full bug report,

I'm bootstrapping with gcc 3.3.1:

$ gcc --version
gcc (GCC) 3.3.1 (cygming special)

$ ./xgcc.exe -v
Using built-in specs.
Configured with: ../gcc/configure --enable-languages=c,c++ --enable-threads=posi
x --with-system-zlib --enable-nls --without-included-gettext --enable-version-sp
ecific-runtime-libs --disable-shared --prefix=/usr --program-suffix=-3.4 --disab
le-pch
Thread model: posix
gcc version 3.4 20031019 (experimental)

Reducing the testcase, I get this:

$ cat test.i
extern const int tab[];

int foo (int x)
{
  int i, ret;

  for (i = 0; i < 1; i++)
    ret = tab[x];

  return ret;
}

$ ./xgcc -O2 -c test.i
test.i: In function `foo':

test.i:11: internal compiler error: Segmentation fault
Please submit a full bug report,

which looks to me like a miscompilation of stage1 compiler, since I can't 
believe the above code is really broken on mainline (can anybody confirm the 
testcase does compile, on x86?)


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