This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: ICE with your gcc 3.3 toolchain
- From: Bernardo Innocenti <bernie at develer dot com>
- To: Christophe Fergeau <cfergeau at mipsys dot com>
- Cc: gcc at gcc dot gnu dot org, Richard Henderson <rth at redhat dot com>, Peter Barada <peter at baradas dot org>
- Date: Thu, 11 Sep 2003 20:27:45 +0200
- Subject: Re: ICE with your gcc 3.3 toolchain
- Organization: Develer S.r.l.
- References: <1063289774.311.21.camel@bugsbunny.mipsys.com>
(I've Cc'd this reply to all involved people and on the GCC ml)
Christophe Fergeau wrote:
I have been working on a 5249 based board for a few months, and have
been using a 2.95 toolchain until now. I decided to try your gcc 3.3
toolchain today, for that I downloaded
m68k-elf-tools-gcc3.3.1-20030807.sh from your website.
I ran make clean in my uClinux-dist directory, and rerun make using the
new toolchain, and I got an internal compiler error when it tried to
compile uClibC. Here is the output:
Yes, this has already been reported in the past. It appears to be
a bug somewhere in the reload phase of GCC. I thought it had
already been fixed by this ugly patch:
http://www.develer.com/uclinux/uclinux-elf-tools/gcc-3.3.1-coldfire-reload.patch
Peter Barada was investigating the ICE with other GCC developers.
Another work-around to get it to work is removing '-O2' from
uClibc's Makefile. The '-Os' flag passed from the top-level
Makefile will then be used instead.
m68k-elf-gcc -Wall -Wstrict-prototypes -Wno-trigraphs
-fno-strict-aliasing -Os -m5200 -O2 -g -fomit-frame-pointer
-fno-builtin -msep-data -DEMBED
-I/home/teuf/Work/PikaPlatform/uClinux-dist/lib/uClibc/include
-I/home/teuf/Work/PikaPlatform/uClinux-dist -Dlinux -D__linux__
-D__uClinux__ -Dunix
-I/home/teuf/Work/PikaPlatform/uClinux-dist/linux-2.4.x/include
-fno-builtin -nostdinc -D_LIBC -I../../include -I.
-I/usr/local/lib/gcc-lib/m68k-elf/3.3.1/include -DNDEBUG -msoft-float
-fPIC -DL__dtostr printf.c -c -o _dtostr.o
printf.c: In function `_dtostr':
printf.c:2004: error: insn does not satisfy its constraints:
(insn 1525 541 542 34 (nil) (set (reg:QI 8 %a0)
(mem:QI (plus:SI (reg/f:SI 15 %sp)
(const_int 67 [0x43])) [0 mode S1 A8])) 37
{*m68k.md:1060} (nil) (nil))
printf.c:2004: internal compiler error: in reload_cse_simplify_operands,
at reload1.c:8350
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
My uClibc has the tag uClinux-dist-20030522.
Please note that erlier uClinux distributions require several
trivial fixes in order to build everything with GCC 3.3.x.
The latest stable distribution already contains all required
patches.
I don't know if this report is of any use to you, I just thought I'd
give you some feedback about your work :)
Thank you very much!
Thanks for working on this toolchain,
My pleasure :)
--
// Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/ http://www.develer.com/
Please don't send Word attachments - http://www.gnu.org/philosophy/no-word-attachments.html