Bug 48230 - bootstrapping gcc-4.6.0-RC-20110321 fails for lm32-rtems*
Summary: bootstrapping gcc-4.6.0-RC-20110321 fails for lm32-rtems*
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.6.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-22 09:50 UTC by Ralf Corsepius
Modified: 2014-03-02 21:43 UTC (History)
3 users (show)

See Also:
Host:
Target: lm32-rtems*
Build:
Known to work: 4.5.2
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Corsepius 2011-03-22 09:50:34 UTC
bootstrapping gcc-4.6.0-RC-20110321 fails for --target=lm32-rtems*
fails with an ICE:

...
/builddir/build/BUILD/rtems-4.11-lm32-rtems4.11-gcc-4.6.0/build/./gcc/xgcc -B/builddir/build/BUILD/rtems-4.11-lm32-rtems4.11-gcc-4.6.0/build/./gcc/ -nostdinc -B/builddir/build/BUILD/rtems-4.11-lm32-rtems4.11-gcc-4.6.0/build/lm32-rtems4.11/newlib/ -isystem /builddir/build/BUILD/rtems-4.11-lm32-rtems4.11-gcc-4.6.0/build/lm32-rtems4.11/newlib/targ-include -isystem /builddir/build/BUILD/rtems-4.11-lm32-rtems4.11-gcc-4.6.0/gcc-4.6.0-RC-20110321/newlib/libc/include -B/opt/rtems-4.11/lm32-rtems4.11/bin/ -B/opt/rtems-4.11/lm32-rtems4.11/lib/ -isystem /opt/rtems-4.11/lm32-rtems4.11/include -isystem /opt/rtems-4.11/lm32-rtems4.11/sys-include    -g -O2 -mbarrel-shift-enabled -O2 -I../../gcc-4.6.0-RC-20110321/gcc/../newlib/libc/sys/rtems/include -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -fno-stack-protector -Dinhibit_libc -G 0 -msign-extend-enabled -I. -I. -I../../.././gcc -I../../../../gcc-4.6.0-RC-20110321/libgcc -I../../../../gcc-4.6.0-RC-20110321/libgcc/. -I../../../../gcc-4.6.0-RC-20110321/libgcc/../gcc -I../../../../gcc-4.6.0-RC-20110321/libgcc/../include    -o _ffsdi2.o -MT _ffsdi2.o -MD -MP -MF _ffsdi2.dep -DL_ffsdi2 -c ../../../../gcc-4.6.0-RC-20110321/libgcc/../gcc/libgcc2.c \
  
xgcc: internal compiler error: Segmentation fault (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[4]: *** [_ffssi2.o] Error 4


This is a regression against gcc-4.5.2, which bootstrapped flawlessly
Comment 1 jbeniston@gcc.gnu.org 2014-03-02 19:58:58 UTC
Author: jbeniston
Date: Sun Mar  2 19:58:24 2014
New Revision: 208260

URL: http://gcc.gnu.org/viewcvs?rev=208260&root=gcc&view=rev
Log:
	PR bootstrap/48230
	PR bootstrap/50927
	PR bootstrap/52466
	PR target/46898
	* config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
	  (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.  
	* config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
	(simple_return, *simple_return): New patterns     
	* config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
	* configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/lm32/lm32.c
    trunk/gcc/config/lm32/lm32.md
    trunk/gcc/config/lm32/predicates.md
    trunk/gcc/configure.ac
Comment 2 Sebastien Bourdeauducq 2014-03-02 21:43:45 UTC
(In reply to jbeniston@gcc.gnu.org from comment #1)