Skip to content

Commit 5c60dcb

Browse files
committed
Align the start of functions to the next power-of-two greater than 4, skipping up to 3 bytes.
1 parent 6e99ccc commit 5c60dcb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hardware/esp8266com/esp8266/platform.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ compiler.sdk.path={compiler.tools.path}sdk/
1515
compiler.cpreprocessor.flags=-D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-I{compiler.sdk.path}/include"
1616

1717
compiler.c.cmd=xtensa-lx106-elf-gcc
18-
compiler.c.flags=-c -Os -Wpointer-arith -Wno-implicit-function-declaration -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -MMD -std=c99
18+
compiler.c.flags=-c -Os -Wpointer-arith -Wno-implicit-function-declaration -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -falign-functions=4 -MMD -std=c99
1919

2020
compiler.S.cmd=xtensa-lx106-elf-gcc
2121
compiler.S.flags=-c -g -x assembler-with-cpp -MMD
@@ -26,7 +26,7 @@ compiler.c.elf.cmd=xtensa-lx106-elf-gcc
2626
compiler.c.elf.libs=-lm -lgcc -lhal -lphy -lnet80211 -llwip -lwpa -lmain -lpp -lsmartconfig
2727

2828
compiler.cpp.cmd=xtensa-lx106-elf-g++
29-
compiler.cpp.flags=-c -Os -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -std=c++11 -MMD
29+
compiler.cpp.flags=-c -Os -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD
3030

3131
compiler.as.cmd=xtensa-lx106-elf-as
3232

0 commit comments

Comments
 (0)