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 regression/23256] New: gcc-3.3.6 ICE during bootstrap on arm


While using gcc-3.3.3 to bootstrap gcc-3.3.6 on arm,
the build fails with an ICE near the end of stage2:

./xgcc -B./
-B/home/mikpe/pkgs/linux-armv5b/gcc-3.3.6/armv5b-unknown-linux-gnu/bin/ -isystem
/home/mikpe/pkgs/linux-armv5b/gcc-3.3.6/armv5b-unknown-linux-gnu/include
-isystem
/home/mikpe/pkgs/linux-armv5b/gcc-3.3.6/armv5b-unknown-linux-gnu/sys-include -O2
-DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-isystem ./include  -I. -I. -I/home/mikpe/gcc-3.3.6/gcc
-I/home/mikpe/gcc-3.3.6/gcc/. -I/home/mikpe/gcc-3.3.6/gcc/config
-I/home/mikpe/gcc-3.3.6/gcc/../include  -g0 -finhibit-size-directive
-fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss  \
   -c /home/mikpe/gcc-3.3.6/gcc/crtstuff.c -DCRT_BEGIN \
  -o crtbegin.o
/home/mikpe/gcc-3.3.6/gcc/crtstuff.c: In function `__do_global_dtors_aux':
/home/mikpe/gcc-3.3.6/gcc/crtstuff.c:285: internal compiler error: Segmentation
fault

The same error occurs when attempting to bootstrap gcc-3.3.4.
Both gcc-3.3.3 and gcc-3.4.4 bootstrapped fine on the same machine.

The problem was initially discovered because a canadian-cross
gcc-3.3.6 (built on x86 then transferred to the arm box) ICEs
when compiling this trivial program (distilled down from the
'unzip' source rpm in Fedora Core 2):

===snip here for unzip.c===
int G_UzO_zipinfo_mode;

void unzip(int argc, char *argv[])
{
    if (argc > 1 && strncmp(argv[1], "-Z", 2) == 0)
        G_UzO_zipinfo_mode = 1;
}
===snip===

With canadian-cross 3.3.4 or 3.3.6, this fails as follows:

unzip.c: In function `unzip':
unzip.c:7: internal compiler error: Segmentation fault

Again, both 3.3.3 and 3.4.4 work fine.

-- 
           Summary: gcc-3.3.6 ICE during bootstrap on arm
           Product: gcc
           Version: 3.3.6
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: regression
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mikpe at csd dot uu dot se
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: armv5b-unknown-linux
  GCC host triplet: armv5b-unknown-linux
GCC target triplet: armv5b-unknown-linux


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


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