[Bug lto/65380] [5 Regression][ICF] LTO: ICE in add_symbol_to_partition_1, at lto/lto-partition.c:158

2015-11-29 Thread milan.plzik at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65380

milan.plzik at gmail dot com changed:

   What|Removed |Added

 CC||milan.plzik at gmail dot com

--- Comment #17 from milan.plzik at gmail dot com ---
with gcc 5.2.0, I still get this error when e.g. compiling ChibiOS example:
$ make
Linking build/ch.elf
lto1: internal compiler error: in add_symbol_to_partition_1, at
lto/lto-partition.c:158
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.archlinux.org/> for instructions.
lto-wrapper: fatal error: arm-none-eabi-gcc returned 1 exit status
compilation terminated.
/usr/lib/gcc/arm-none-eabi/5.2.0/../../../../arm-none-eabi/bin/ld: lto-wrapper
failed
collect2: error: ld returned 1 exit status
../../../os/common/ports/ARMCMx/compilers/GCC/rules.mk:238: recipe for target
'build/ch.elf' failed
make: *** [build/ch.elf] Error 1

$ arm-none-eabi-gcc -v
Using built-in specs.
COLLECT_GCC=arm-none-eabi-gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-none-eabi/5.2.0/lto-wrapper
Target: arm-none-eabi
Configured with: /build/arm-none-eabi-gcc/src/gcc-5.2.0/configure
--target=arm-none-eabi --prefix=/usr --with-sysroot=/usr/arm-none-eabi
--with-native-system-header-dir=/include --libexecdir=/usr/lib
--enable-languages=c,c++ --enable-plugins --disable-decimal-float
--disable-libffi --disable-libgomp --disable-libmudflap --disable-libquadmath
--disable-libssp --disable-libstdcxx-pch --disable-nls --disable-shared
--disable-threads --disable-tls --with-gnu-as --with-gnu-ld --with-system-zlib
--with-newlib --with-headers=/usr/arm-none-eabi/include
--with-python-dir=share/gcc-arm-none-eabi --with-gmp --with-mpfr --with-mpc
--with-isl --with-libelf --enable-gnu-indirect-function
--with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm'
--with-pkgversion='Arch Repository' --with-bugurl=https://bugs.archlinux.org/
--with-multilib-list=armv6-m,armv7-m,armv7e-m,armv7-r
Thread model: single
gcc version 5.2.0 (Arch Repository)

[Bug lto/65380] [5 Regression][ICF] LTO: ICE in add_symbol_to_partition_1, at lto/lto-partition.c:158

2015-12-01 Thread milan.plzik at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65380

--- Comment #19 from milan.plzik at gmail dot com ---
Created attachment 36886
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36886&action=edit
Shell script, which compiles ChibiOS and indeed triggers gcc failure

Attached script should trigger the problem when compiling ChibiOS sources.

[Bug lto/65380] [5 Regression][ICF] LTO: ICE in add_symbol_to_partition_1, at lto/lto-partition.c:158

2015-12-02 Thread milan.plzik at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65380

--- Comment #21 from milan.plzik at gmail dot com ---
Unfortunately, I currently don't have dev setup for any non-MCU ARM platform.
Also, ChibiOS non-MCU platforms, so I guess I would need to identify different
test case, assuming it is possible to trigger this error on non-bare-metal
platforms. 

Anyway, if this is wrong place to report problems with bare-metal gcc targets,
please let me know where should this be filed :).