summaryrefslogtreecommitdiff
path: root/Makefile.inc
diff options
context:
space:
mode:
authorStefan Reinauer <stefan.reinauer@coreboot.org>2015-03-15 00:21:17 +0100
committerStefan Reinauer <stefan.reinauer@coreboot.org>2015-03-17 01:08:20 +0100
commit87200e2aa327bb53b7594e058aa42f7aba693109 (patch)
tree08daa293216ea99d00b3b180509c3ad8fce985d3 /Makefile.inc
parent24f9cb91d0c4d55fe1cadaa3a913a14506412cdd (diff)
downloadcoreboot-87200e2aa327bb53b7594e058aa42f7aba693109.tar.xz
Makefile.inc: Use -Og when compiling with GDB support
From GCC's documentation: Optimize debugging experience. -Og enables optimizations that do not interfere with debugging. It should be the optimization level of choice for the standard edit-compile-debug cycle, offering a reasonable level of optimization while maintaining fast compilation and a good debugging experience. Change-Id: I9a3dadbf8e894cb28e29d7b2f4e9add252e7bbb3 Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Signed-off-by: Scott Duplichan <scott@notabs.org> Reviewed-on: http://review.coreboot.org/8689 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.inc b/Makefile.inc
index d4748fc866..412afde67c 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -259,7 +259,7 @@ CFLAGS_common += -Werror
endif
CFLAGS_common += -fno-common -ffreestanding -fno-builtin -fomit-frame-pointer
ifneq ($(GDB_DEBUG),)
-CFLAGS_common += -O0
+CFLAGS_common += -Og
else
CFLAGS_common += -Os
endif