[Bug lto/43857] New: -fresolution causes an ICE
kargl at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Apr 22 19:31:00 GMT 2010
in gcc/lto/lang.opt, one finds an -fresolution option.
First, this option appears undocumented, but more
importantly
troutmask:sgk[228] cat h.c
#include <stdio.h>
void
hello(void)
{
printf("Hello world\n");
}
troutmask:sgk[229] cat m.c
void hello(void);
int
main(void)
{
hello();
return (0);
}
troutmask:sgk[230] cat Makefile
all:
${HOME}/work/4x/bin/gcc -flto -c m.c
${HOME}/work/4x/bin/gcc -flto -c h.c
${HOME}/work/4x/bin/gcc -flto -o z h.o m.o
./z
${HOME}/work/4x/bin/gcc -flto -fresolution -o z h.o m.o
clean:
rm *.o
troutmask:sgk[231] make
/home/sgk/work/4x/bin/gcc -flto -c m.c
/home/sgk/work/4x/bin/gcc -flto -c h.c
/home/sgk/work/4x/bin/gcc -flto -o z h.o m.o
./z
Hello world
/home/sgk/work/4x/bin/gcc -flto -fresolution -o z h.o m.o
lto1: internal compiler error: in read_cgraph_and_symbols, at lto/lto.c:1797
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: /home/sgk/work/4x/bin/gcc returned 1 exit status
collect2: lto-wrapper returned 1 exit status
*** Error code 1
Stop in /usr/home/sgk/tmp/ctest.
--
Summary: -fresolution causes an ICE
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kargl at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43857
More information about the Gcc-bugs
mailing list