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

Urja Rannikko <urjaman at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |urjaman at gmail dot com

--- Comment #18 from Urja Rannikko <urjaman at gmail dot com> ---
This fix seems to have caused an another problem on AVR, as described on 
arch linux bug tracker https://bugs.archlinux.org/task/49284#comment149872

Also my software (this example being
https://github.com/urjaman/frser-m328lpcspi ) fails to build with similar
output:
avr-gcc  -mmcu=atmega328p -O3 -Wl,--relax -fno-tree-switch-conversion -Wall -W
-pipe -flto -flto-partition=none -fwhole-program -std=gnu99 -Ilibfrser
-std=gnu99 -I./ -o frser-m328lpcspi.out main.c uart.c flash.c ciface.c
console.c lib.c appdb.c commands.c libfrser/frser.c libfrser/udelay.c
libfrser/dxprint.c libfrser/spilib.c libfrser/spihw_avrspi.c libfrser/lpcfwh.c
nibble.c
/tmp/ccMVXcOJ.lto.o: In function `spi_spiop_end':
<artificial>:(.text+0x12e6): relocation truncated to fit: R_AVR_7_PCREL against
`no symbol'
/tmp/ccMVXcOJ.lto.o: In function `frser_main':
<artificial>:(.text+0x1338): relocation truncated to fit: R_AVR_7_PCREL against
`no symbol'
<artificial>:(.text+0x1362): relocation truncated to fit: R_AVR_7_PCREL against
`no symbol'
<artificial>:(.text+0x1370): relocation truncated to fit: R_AVR_7_PCREL against
`no symbol'
<artificial>:(.text+0x13dc): relocation truncated to fit: R_AVR_7_PCREL against
`no symbol'
<artificial>:(.text+0x13e4): relocation truncated to fit: R_AVR_7_PCREL against
`no symbol'
<artificial>:(.text+0x13ec): relocation truncated to fit: R_AVR_7_PCREL against
`no symbol'
<artificial>:(.text+0x140e): relocation truncated to fit: R_AVR_7_PCREL against
`no symbol'
<artificial>:(.text+0x1428): relocation truncated to fit: R_AVR_7_PCREL against
`no symbol'
<artificial>:(.text+0x1450): relocation truncated to fit: R_AVR_7_PCREL against
`no symbol'

Not all software fails (simpler/smaller stuff seems to work), but this is
pretty bad, should we open a seperate bug or what?

Reply via email to