From 2e24cafb92a406820b50c4ee4bf28ea42ae7ed80 Mon Sep 17 00:00:00 2001 From: Balazs Racz Date: Wed, 23 Dec 2020 17:34:25 +0100 Subject: [PATCH] Switches bare.armv7m to optimize for size. This was already the case for freertos.armv7m, freertos.armv6m and bare.armv6m targets. --- etc/bare.armv7m.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/bare.armv7m.mk b/etc/bare.armv7m.mk index 5f799a5b5..566329f44 100644 --- a/etc/bare.armv7m.mk +++ b/etc/bare.armv7m.mk @@ -28,8 +28,8 @@ INCLUDES += -I$(FREERTOSPATH)/Source/include \ -I$(OPENMRNPATH)/src/freertos_drivers/common #ARCHOPTIMIZATION = -D__NEWLIB__ -ARCHOPTIMIZATION += -O3 -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer -fdata-sections -ffunction-sections -#ARCHOPTIMIZATION += -Os -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer -fdata-sections -ffunction-sections +#ARCHOPTIMIZATION += -O3 -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer -fdata-sections -ffunction-sections +ARCHOPTIMIZATION += -Os -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer -fdata-sections -ffunction-sections ARCHFLAGS = -g -MD -MP -march=armv7-m -mthumb -mfloat-abi=soft