ChibiOS does not work reliably with GCC -O0 with recent compilers.
Change to -O1
This commit is contained in:
parent
627e780b6c
commit
a5cde14428
@ -36,7 +36,7 @@ endif
|
||||
#
|
||||
|
||||
ARCH = arm-none-eabi-
|
||||
SRCFLAGS = -ggdb -O0
|
||||
SRCFLAGS = -ggdb -O1
|
||||
CFLAGS =
|
||||
CXXFLAGS = -fno-rtti
|
||||
ASFLAGS =
|
||||
|
@ -6,7 +6,7 @@
|
||||
# Compiler options here.
|
||||
ifeq ($(USE_OPT),)
|
||||
# Replace -O0 with -O2 for a production build. -O2 just messes with the debugger.
|
||||
USE_OPT = -O0 -g -fomit-frame-pointer -falign-functions=16
|
||||
USE_OPT = -O1 -g -fomit-frame-pointer -falign-functions=16
|
||||
endif
|
||||
|
||||
# C specific options here (added to USE_OPT).
|
||||
|
@ -35,7 +35,7 @@ endif
|
||||
#
|
||||
|
||||
ARCH = arm-none-eabi-
|
||||
SRCFLAGS = -ggdb -O0
|
||||
SRCFLAGS = -ggdb -O1
|
||||
CFLAGS =
|
||||
CXXFLAGS = -fno-rtti
|
||||
ASFLAGS =
|
||||
|
@ -36,7 +36,7 @@ endif
|
||||
#
|
||||
|
||||
ARCH = arm-none-eabi-
|
||||
SRCFLAGS = -ggdb -O0
|
||||
SRCFLAGS = -ggdb -O1
|
||||
CFLAGS =
|
||||
CXXFLAGS = -fno-rtti
|
||||
ASFLAGS =
|
||||
|
@ -34,7 +34,7 @@ endif
|
||||
#
|
||||
|
||||
ARCH = arm-none-eabi-
|
||||
SRCFLAGS = -ggdb -O0
|
||||
SRCFLAGS = -ggdb -O1
|
||||
CFLAGS =
|
||||
CXXFLAGS = -fno-rtti
|
||||
ASFLAGS =
|
||||
|
@ -37,7 +37,7 @@ endif
|
||||
#
|
||||
|
||||
ARCH = arm-none-eabi-
|
||||
SRCFLAGS = -ggdb -O0
|
||||
SRCFLAGS = -ggdb -O1
|
||||
CFLAGS =
|
||||
CXXFLAGS = -fno-rtti
|
||||
ASFLAGS =
|
||||
|
Loading…
Reference in New Issue
Block a user