File tree Expand file tree Collapse file tree 6 files changed +8
-7
lines changed
common-hal/microcontroller Expand file tree Collapse file tree 6 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ CFLAGS += \
7474 -fdata-sections \
7575 -Wall \
7676
77- OPTIMIZATION_FLAGS ?= -O2 -fno-inline-functions
77+ OPTIMIZATION_FLAGS ?= -O2
7878
7979# option to override compiler optimization level, set in boards/$(BOARD)/mpconfigboard.mk
8080CFLAGS += $(OPTIMIZATION_FLAGS )
Original file line number Diff line number Diff line change @@ -61,6 +61,8 @@ void common_hal_mcu_on_next_reset(mcu_runmode_t runmode) {
6161void common_hal_mcu_reset (void ) {
6262 filesystem_flush ();
6363 boardctl (BOARDIOC_RESET , 0 );
64+ // boardctl is noreturn in this case.
65+ __builtin_unreachable ();
6466}
6567
6668static const mp_rom_map_elem_t mcu_pin_globals_table [] = {
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ ifeq ($(DEBUG), 1)
3232 OPTIMIZATION_FLAGS ?= -Og
3333else
3434 CFLAGS += -DNDEBUG -ggdb3
35- OPTIMIZATION_FLAGS ?= -O2 -fno-inline-functions
35+ OPTIMIZATION_FLAGS ?= -O2
3636endif
3737
3838# option to override compiler optimization level, set in boards/$(BOARD)/mpconfigboard.mk
Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ ifeq ($(DEBUG), 1)
3636 CFLAGS += -ggdb3
3737 OPTIMIZATION_FLAGS = -Og
3838else
39- OPTIMIZATION_FLAGS ?= -O2 -fno-inline-functions
40- CFLAGS += -DNDEBUG -ggdb3
39+ OPTIMIZATION_FLAGS ?= -O2
40+ CFLAGS += -DNDEBUG
4141endif
4242
4343ifeq ($(NRF_DEBUG_PRINT ) , 1)
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ ifeq ($(DEBUG), 1)
7171 CFLAGS += -fno-inline -fno-ipa-sra -Og
7272else
7373 CFLAGS += -DNDEBUG
74- OPTIMIZATION_FLAGS ?= -Os -fno-inline-functions
74+ OPTIMIZATION_FLAGS ?= -Os
7575 CFLAGS += -g
7676endif
7777
Original file line number Diff line number Diff line change @@ -38,8 +38,7 @@ ifeq ($(DEBUG), 1)
3838 CFLAGS += -fno-inline -fno-ipa-sra
3939else
4040 CFLAGS += -DNDEBUG
41- OPTIMIZATION_FLAGS ?= -O2 -fno-inline-functions
42- CFLAGS += -ggdb3
41+ OPTIMIZATION_FLAGS ?= -O2
4342endif
4443
4544# to override compiler optimization level, set in boards/$(BOARD)/mpconfigboard.mk
You can’t perform that action at this time.
0 commit comments