https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65803

Hans-Erik Floryd <hef-...@rt-labs.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hef-...@rt-labs.com

--- Comment #1 from Hans-Erik Floryd <hef-...@rt-labs.com> ---
I am seeing a similar problem compiling ip_addr.c from the lwIP project. The
segfault happens with GCC >= 4.8. GCC4.7.4 works fine. Using GCC4.9.2:

vmadm@ubuntu$ /home/vmadm/buildcross/toolchain//bfin-elf/bin/bfin-elf-gcc -c
ip_addr.i -Os -v
Using built-in specs.
COLLECT_GCC=/home/vmadm/buildcross/toolchain//bfin-elf/bin/bfin-elf-gcc
Target: bfin-elf
Configured with: ../gcc-4.9.2/configure --target=bfin-elf
--prefix=/home/vmadm/buildcross/toolchain/bfin-elf --disable-nls --with-gnu-as
--with-gnu-ld --enable-languages=c,c++ --enable-plugins --with-newlib
--with-headers=../newlib-2.2.0.20150323/newlib/libc/include --disable-shared
--disable-threads --disable-libssp --disable-libmudflap --disable-libgomp
--disable-__cxa_atexit --disable-libstdcxx-pch --disable-multilib
Thread model: single
gcc version 4.9.2 
COLLECT_GCC_OPTIONS='-c' '-Os' '-v'
 /home/vmadm/buildcross/toolchain/bfin-elf/libexec/gcc/bfin-elf/4.9.2/cc1
-fpreprocessed ip_addr.i -fshort-wchar -quiet -dumpbase ip_addr.i -auxbase
ip_addr -Os -version -o /tmp/ccl40owG.s
GNU C version 4.9.2 (bfin-elf)
        compiled by GNU C version 4.8.2, GMP version 4.3.2, MPFR version 2.4.2,
MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C version 4.9.2 (bfin-elf)
        compiled by GNU C version 4.8.2, GMP version 4.3.2, MPFR version 2.4.2,
MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: ccc6db3091b1c65b1a52924f93fd549a
ip_addr.c: In function 'ipaddr_ntoa_r':
ip_addr.c:312:1: internal compiler error: Segmentation fault
 }
 ^
0x8490960 crash_signal
        ../../gcc-4.9.2/gcc/toplev.c:337
0x82c6a01 insn_current_reference_address(rtx_def*)
        ../../gcc-4.9.2/gcc/final.c:656
0x867c44b insn_current_length(rtx_def*)
        /home/vmadm/buildcross/build/build_gcc/gcc/insn-attrtab.c:35
0x82c75d8 shorten_branches(rtx_def*)
        ../../gcc-4.9.2/gcc/final.c:1446
0x82c7a1f rest_of_handle_shorten_branches
        ../../gcc-4.9.2/gcc/final.c:4519
0x82c7a1f execute
        ../../gcc-4.9.2/gcc/final.c:4548
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.

The segfault only happens when using -Os.

Reply via email to