1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #1927 from kaspar030/add_lto_flags

make: optionally build with gcc's link time optimization
This commit is contained in:
Thomas Eichinger 2015-01-19 11:33:32 +01:00
commit 5ae38d6dc7
2 changed files with 7 additions and 1 deletions

View File

@ -41,3 +41,9 @@ endif
# Unwanted flags for c++
CXXUWFLAGS += -std=%
ifeq ($(LTO),yes)
LTOFLAGS = -flto -ffat-lto-objects
CFLAGS += ${LTOFLAGS}
LINKFLAGS += ${LTOFLAGS}
endif

View File

@ -188,7 +188,7 @@ void isr_dma2_ch4_5(void) __attribute__ ((weak, alias("dummy_handler")));
/* interrupt vector table */
__attribute__ ((section(".vectors")))
__attribute__ ((section(".vectors"))) __attribute__((used))
const void *interrupt_vector[] = {
/* Stack pointer */
(void*) (&_estack), /* pointer to the top of the empty stack */