Hi!
I'm trying to use the link-time optimization (-flto) feature of gcc but it does not work properly if any of the optimization levels (-O1, -O2, or -O3) is also selected.
What I can see if -Ox is set, all of my ISRs are discarded. Is this the expected behaviour or am I possibly doing something wrong?
I am using
msp430-elf-gcc (GCC) 4.9.1 20140707 (prerelease (msp430-14r1-364)) (GNUPro 14r1)
(Based on: GCC 4.8 GDB 7.7 Binutils 2.24 Newlib 2.1)
update:
when compiling with -fno-use-linker-plugin, the problem disappears.
Thanks!