This is the mail archive of the gcc-prs@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]

target/6542: Internal compiler error when building libgcc for sparc-elf



>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 <URL:http://www.gnu.org/software/gcc/bugs.html> 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:


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