[Bug target/83090] New: ICE on lm32-rtems building newlib libm (in require, at machmode.h:282)
joel at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Nov 21 15:38:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83090
Bug ID: 83090
Summary: ICE on lm32-rtems building newlib libm (in require, at
machmode.h:282)
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: joel at gcc dot gnu.org
Target Milestone: ---
Created attachment 42670
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42670&action=edit
Preprocessed output of file causing ICE
Target: lm32-rtems5
gcc master: 8 79218abbbc680d3329b2e3d460bb0414333f3889
The build fails during newlib's libm. Compiles at -O1 and -Os but not at -O2.
/home/joel/test-gcc/b-lm32-rtems5-gcc/./gcc/xgcc
-B/home/joel/test-gcc/b-lm32-rtems5-gcc/./gcc/ -nostdinc
-B/home/joel/test-gcc/b-lm32-rtems5-gcc/lm32-rtems5/mmultiply-enabled/newlib/
-isystem
/home/joel/test-gcc/b-lm32-rtems5-gcc/lm32-rtems5/mmultiply-enabled/newlib/targ-include
-isystem /home/joel/test-gcc/gcc/newlib/libc/include
-B/home/joel/test-gcc/install-master/lm32-rtems5/bin/
-B/home/joel/test-gcc/install-master/lm32-rtems5/lib/ -isystem
/home/joel/test-gcc/install-master/lm32-rtems5/include -isystem
/home/joel/test-gcc/install-master/lm32-rtems5/sys-include -mmultiply-enabled
-DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\"
-DPACKAGE_VERSION=\"2.5.0\" -DPACKAGE_STRING=\"newlib\ 2.5.0\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -I.
-I../../../../../../gcc/newlib/libm/math
-I../../../../../../gcc/newlib/libm/math/../common -D_COMPILING_NEWLIB
-DCLOCK_PROVIDED -DMALLOC_PROVIDED -DEXIT_PROVIDED -DSIGNAL_PROVIDED
-DREENTRANT_SYSCALLS_PROVIDED -DHAVE_NANOSLEEP -DHAVE_BLKSIZE -DHAVE_FCNTL
-DHAVE_ASSERT_FUNC -D_NO_GETLOGIN -D_NO_GETPWENT -D_NO_GETUT -D_NO_GETPASS
-D_NO_SIGSET -D_NO_WORDEXP -D_NO_POPEN -D_NO_POSIX_SPAWN -fno-builtin -g
-O2 -mmultiply-enabled -c -o lib_a-e_j0.o `test -f 'e_j0.c' || echo
'../../../../../../gcc/newlib/libm/math/'`e_j0.c
during RTL pass: reload
../../../../../../gcc/newlib/libm/math/e_j0.c: In function 'pzero':
../../../../../../gcc/newlib/libm/math/e_j0.c:349:1: internal compiler error:
in require, at machmode.h:282
}
^
0x59f48b opt_mode<machine_mode>::require() const
../../gcc/gcc/machmode.h:282
0x59f48b replace_reg_with_saved_mem
../../gcc/gcc/caller-save.c:1151
0x59ffb6 mark_referenced_regs
../../gcc/gcc/caller-save.c:1073
0x59ffb6 mark_referenced_regs
../../gcc/gcc/caller-save.c:1073
0x59ffb6 mark_referenced_regs
../../gcc/gcc/caller-save.c:1073
0x59ffb6 mark_referenced_regs
../../gcc/gcc/caller-save.c:1073
0x5a1065 save_call_clobbered_regs()
../../gcc/gcc/caller-save.c:895
0x9b5498 reload(rtx_insn*, int)
../../gcc/gcc/reload1.c:980
0x853a3e do_reload
../../gcc/gcc/ira.c:5458
0x853a3e execute
../../gcc/gcc/ira.c:5630
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
More information about the Gcc-bugs
mailing list