[Bug lto/83967] LTO removes C functions declared as weak in assembler(depending on files order in linking)

2018-01-23 Thread hurwic8 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83967 --- Comment #7 from Rafał Mszal --- Thanks for response. I've send some basic example of the failure. However, it needs some others file to compile and link, like linker, SystemInit function decalration and so on. I've just send you most import

[Bug lto/83967] LTO removes C functions declared as weak in assembler(depending on files order in linking)

2018-01-23 Thread hurwic8 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83967 --- Comment #6 from Rafał Mszal --- Created attachment 43212 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43212&action=edit Startup file for the nRF52 microcontroller. This is typical startup for nRF5x microcontrollers. The main thing th

[Bug lto/83967] LTO removes C functions declared as weak in assembler(depending on files order in linking)

2018-01-23 Thread hurwic8 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83967 --- Comment #5 from Rafał Mszal --- Created attachment 43211 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43211&action=edit Makefile that causes failure.

[Bug lto/83967] LTO removes C functions declared as weak in assembler(depending on files order in linking)

2018-01-23 Thread hurwic8 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83967 --- Comment #4 from Rafał Mszal --- Created attachment 43210 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43210&action=edit Basic example of main funtion with LTO failure. This is simple example of observed LTO issue. RTC1_IRQHandler is

[Bug lto/83967] New: LTO removes C functions declared as weak in assembler(depending on files order in linking)

2018-01-22 Thread hurwic8 at gmail dot com
Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: hurwic8 at gmail dot com CC: marxin at gcc dot gnu.org Target Milestone: --- I've observed strange behaviour of the link-time optimizati