[Bug lto/51432] [4.6 regression] ICE in -flto -std=c++0x -g with cross-compiler
kikairoya at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Apr 16 03:33:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51432
--- Comment #5 from Tomohiro Kashiwada <kikairoya at gmail dot com> 2013-04-16 03:33:22 UTC ---
no problem at gcc-4.7.3. it works fine.
$ rx-elf-g++ -v
Using built-in specs.
COLLECT_GCC=rx-elf-g++
COLLECT_LTO_WRAPPER=/home/kikairoya/rx/libexec/gcc/rx-elf/4.7.3/lto-wrapper
Target: rx-elf
Configured with: /home/kikairoya/sources/gcc-4.7.3/configure
--prefix=/home/kikairoya/rx --target=rx-elf --disable-nls
--enable-target-optspace --with-newlib --enable-languages=c,c++ --without-ppl
--enable-checking=release
Thread model: single
gcc version 4.7.3 (GCC)
$ rx-elf-g++ -flto -std=c++0x -g -xc++ /dev/null -include functional
/home/kikairoya/rx/lib/gcc/rx-elf/4.7.3/../../../../rx-elf/lib/crt0.o: In
function `L0':
/home/kikairoya/sources/newlib-1.20.0/libgloss/rx/crt0.S:77: undefined
reference to `_main'
/home/kikairoya/rx/lib/gcc/rx-elf/4.7.3/../../../../rx-elf/bin/ld:
/home/kikairoya/rx/lib/gcc/rx-elf/4.7.3/../../../../rx-elf/lib/crt0.o(P):
error: call to undefined function '_main'
collect2: error: ld returned 1 exit status
More information about the Gcc-bugs
mailing list