mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-14 23:33:34 +08:00
LPC11C24 test: some GCC flags were removed, which fixed hardfault and reduced code size by ~300 bytes
This commit is contained in:
@@ -49,10 +49,8 @@ DEPDIR = $(BUILDDIR)/dep
|
||||
|
||||
DEF += -DNDEBUG -DCHIP_LPC11CXX -DCORE_M0 -DTHUMB_NO_INTERWORKING -U__STRICT_ANSI__
|
||||
|
||||
# Removing -fconserve-stack reduces code size a little
|
||||
FLAGS = -mthumb -mcpu=cortex-m0 -mno-thumb-interwork -flto -Os -g3 -Wall -Wextra -Werror -Wundef -ffunction-sections \
|
||||
-fdata-sections -fno-common -fno-exceptions -fno-unwind-tables -fno-stack-protector -fomit-frame-pointer \
|
||||
-ftracer -ftree-loop-distribute-patterns -frename-registers -freorder-blocks -fconserve-stack \
|
||||
-Wfloat-equal -Wconversion -Wsign-conversion -Wmissing-declarations
|
||||
|
||||
C_CPP_FLAGS = $(FLAGS) -MD -MP -MF $(DEPDIR)/$(@F).d
|
||||
|
||||
Reference in New Issue
Block a user