[riot-notifications] [RIOT] cpu/cortexm_common: add used attributes for LTO (#4004)

Thomas Eichinger notifications at github.com
Wed Sep 30 16:36:54 CEST 2015

Great! Which compiler version do you use? Compiling with `LTO=yes` gives me
RIOT/cpu/cortexm_common/vectors_cortexm.c: In function 'hard_fault_default':
RIOT/cpu/cortexm_common/vectors_cortexm.c:172:1: error: r7 cannot be used in asm here
lto-wrapper: arm-none-eabi-gcc returned 1 exit status
/usr/local/Cellar/arm-none-eabi-embedded-gcc/20140805/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld: lto-wrapper failed
collect2: error: ld returned 1 exit status
make: *** [all] Error 1

The related bug is described [here](https://bugs.launchpad.net/gcc-arm-embedded/+bug/1379236)

Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150930/6417706b/attachment.html>

More information about the notifications mailing list