From a6bc701917d40a2c7c87baf2f33217623681b84f Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Wed, 31 Aug 2016 00:16:39 -0700 Subject: [PATCH] atmel-samd: Re-enable -Os (size) optimizations. --- atmel-samd/Makefile | 38 +------------------------------------- 1 file changed, 1 insertion(+), 37 deletions(-) diff --git a/atmel-samd/Makefile b/atmel-samd/Makefile index ebb196f5a4..9e02d7f73e 100644 --- a/atmel-samd/Makefile +++ b/atmel-samd/Makefile @@ -81,43 +81,7 @@ endif ifeq ($(DEBUG), 1) CFLAGS += -O0 -ggdb else -# was -Os -CFLAGS += -O1 -ggdb -DNDEBUG -# CFLAGS += -O0 \ -# -ftree-ter \ -# -ftree-sra \ -# -ftree-slsr \ -# -ftree-sink \ -# -ftree-pta \ -# -ftree-fre \ -# -ftree-dse \ -# -ftree-dominator-opts \ -# -ftree-dce \ -# -ftree-copyrename \ -# -ftree-copy-prop \ -# -ftree-ch \ -# -ftree-ccp \ -# -ftree-bit-ccp \ -# -fsplit-wide-types \ -# -fshrink-wrap \ -# -fsection-anchors \ -# -fsched-pressure \ -# -fomit-frame-pointer \ -# -fmove-loop-invariants \ -# -fmerge-constants \ -# -fipa-reference \ -# -fipa-pure-const \ -# -fipa-profile \ -# -finline-functions-called-once \ -# -fif-conversion \ -# -fif-conversion2 \ -# -fguess-branch-probability \ -# -fforward-propagate \ -# -fdefer-pop \ -# -fcprop-registers \ -# -fcompare-elim \ -# -fcombine-stack-adjustments \ -# -fbranch-count-reg +CFLAGS += -Os -DNDEBUG endif LIBS =