public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: cheng@powertv.com
To: gcc-gnats@gcc.gnu.org
Subject: target/6542: Internal compiler error when building libgcc for sparc-elf
Date: Thu, 02 May 2002 16:46:00 -0000	[thread overview]
Message-ID: <20020502233809.30789.qmail@sources.redhat.com> (raw)


>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:


             reply	other threads:[~2002-05-02 23:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-02 16:46 cheng [this message]
2002-05-03  6:16 jakub
2002-05-03 14:44 davem

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020502233809.30789.qmail@sources.redhat.com \
    --to=cheng@powertv.com \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).