From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32068 invoked by alias); 2 May 2002 23:46:03 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 32044 invoked by uid 71); 2 May 2002 23:46:01 -0000 Resent-Date: 2 May 2002 23:46:01 -0000 Resent-Message-ID: <20020502234601.32043.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, cheng@powertv.com Received:(qmail 30790 invoked by uid 61); 2 May 2002 23:38:09 -0000 Message-Id:<20020502233809.30789.qmail@sources.redhat.com> Date: Thu, 02 May 2002 16:46:00 -0000 From: cheng@powertv.com Reply-To: cheng@powertv.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: target/6542: Internal compiler error when building libgcc for sparc-elf X-SW-Source: 2002-05/txt/msg00053.txt.bz2 List-Id: >Number: 6542 >Category: target >Synopsis: Internal compiler error when building libgcc for sparc-elf >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Thu May 02 16:46:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: cheng@powertv.com >Release: 3.1 (04-23-2002) >Organization: >Environment: Cygwin with Cygwin1.dll version 1.3.2. Compiler used for building - GCC 2.95.3 Build machine used - HP Vectra VLI8 with 256 MB of memory and 60 GB of hard drive space. Operating system - Windows 2000 Professional with service pack 2. >Description: I am trying to build a cross compiler for sparc-elf with the GCC 3.1 source snapshot (04-23-2002). I use the following configure options to configure the build. ../src/configure --build=i686-pc-cygwin32 --host=i686-pc-cygwin32 --target=sparc-elf --nfp --with-cpu=v8 --prefix=../bin/sparc-elf I also modified the Makefile generated by configure for GCC by using the following line (while TARGET_LIBGCC2_CFLAGS is empty in the original Makefile created by configure). I do this due to our special needs at work. TARGET_LIBGCC2_CFLAGS = -mflat -mv8 -fleading-underscore The GCC backends and frontends build without any problems until when the process gets to the point of building libgcc. Then the following error comes up. I get the same result if I switch to use an older release of the GCC 3 source (like version 3.0.4). Only if I leave TARGET_LIBGCC2_CFLAGS equal to empty within the GCC Makefile will libgcc be built successfully. ./xgcc -B./ -B/e/gcc31/bin/sparc-elf/sparc-elf/bin/ -isystem /e/gcc31/bin/sparc- elf/sparc-elf/include -isystem /e/gcc31/bin/sparc-elf/sparc-elf/sys-include -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissi ng-prototypes -isystem ./include -mflat -mv8 -fleading-underscore -g -DIN_LIBG CC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../../src/gcc -I../../. ./src/gcc/. -I../../../src/gcc/config -I../../../src/gcc/../include -DL_floatdi tf -c ../../../src/gcc/libgcc2.c -o libgcc/./_floatditf.o ./xgcc -B./ -B/e/gcc31/bin/sparc-elf/sparc-elf/bin/ -isystem /e/gcc31/bin/sparc- elf/sparc-elf/include -isystem /e/gcc31/bin/sparc-elf/sparc-elf/sys-include -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissi ng-prototypes -isystem ./include -mflat -mv8 -fleading-underscore -g -DIN_LIBG CC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../../src/gcc -I../../. ./src/gcc/. -I../../../src/gcc/config -I../../../src/gcc/../include -DL_clear_c ache -c ../../../src/gcc/libgcc2.c -o libgcc/./_clear_cache.o ../../../src/gcc/libgcc2.c: In function `__clear_cache': ../../../src/gcc/libgcc2.c:1608: Internal compiler error in leaf_renumber_regs_i nsn, at final.c:3975 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. make[1]: *** [libgcc/./_clear_cache.o] Error 1 >How-To-Repeat: This can be duplicated consistenly as long as TARGET_LIBGCC2_CFLAGS is set to "-mflat -mv8 -fleading-underscore" when building a GCC 3.x cross compiler for sparc-elf. >Fix: >Release-Note: >Audit-Trail: >Unformatted: