diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-12 20:23:03 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-12 20:23:03 +0000 |
commit | bd8390a872ae42751ff441180017b2d3c76dbe03 (patch) | |
tree | b17dd9976205b20247b3d5787ff49b41848b7361 /Makefile.flags | |
parent | fdddab0c61c55c25d4218d4370e2b16a7936a794 (diff) | |
download | busybox-w32-bd8390a872ae42751ff441180017b2d3c76dbe03.tar.gz busybox-w32-bd8390a872ae42751ff441180017b2d3c76dbe03.tar.bz2 busybox-w32-bd8390a872ae42751ff441180017b2d3c76dbe03.zip |
Reinstate DEBUG_PESSIMIZE (by Christian Ionescu-Idbohrn)
Diffstat (limited to 'Makefile.flags')
-rw-r--r-- | Makefile.flags | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Makefile.flags b/Makefile.flags index e9405476b..0ffc05c35 100644 --- a/Makefile.flags +++ b/Makefile.flags | |||
@@ -35,7 +35,7 @@ endif | |||
35 | # gcc 3.x emits bogus "old style proto" warning on find.c:alloc_action() | 35 | # gcc 3.x emits bogus "old style proto" warning on find.c:alloc_action() |
36 | CFLAGS += $(call cc-ifversion, -ge, 0400, -Wold-style-definition) | 36 | CFLAGS += $(call cc-ifversion, -ge, 0400, -Wold-style-definition) |
37 | 37 | ||
38 | CFLAGS += $(call cc-option,-Os -fno-builtin-strlen -finline-limit=0 -fomit-frame-pointer -ffunction-sections -fdata-sections,) | 38 | CFLAGS += $(call cc-option,-fno-builtin-strlen -finline-limit=0 -fomit-frame-pointer -ffunction-sections -fdata-sections,) |
39 | # -fno-guess-branch-probability: prohibit pseudo-random guessing | 39 | # -fno-guess-branch-probability: prohibit pseudo-random guessing |
40 | # of branch probabilities (hopefully makes bloatcheck more stable): | 40 | # of branch probabilities (hopefully makes bloatcheck more stable): |
41 | CFLAGS += $(call cc-option,-fno-guess-branch-probability,) | 41 | CFLAGS += $(call cc-option,-fno-guess-branch-probability,) |
@@ -46,8 +46,15 @@ CFLAGS += $(call cc-option,-falign-functions=1 -falign-jumps=1 -falign-labels=1 | |||
46 | # be fixed.. | 46 | # be fixed.. |
47 | #CFLAGS+=$(call cc-option,-Wconversion,) | 47 | #CFLAGS+=$(call cc-option,-Wconversion,) |
48 | 48 | ||
49 | ifeq ($(CONFIG_DEBUG),y) | 49 | ifneq ($(CONFIG_DEBUG),y) |
50 | CFLAGS += $(call cc-option,-g) | 50 | CFLAGS += $(call cc-option,-Os,) |
51 | else | ||
52 | CFLAGS += $(call cc-option,-g,) | ||
53 | ifeq ($(CONFIG_DEBUG_PESSIMIZE),y) | ||
54 | CFLAGS += $(call cc-option,-O0,) | ||
55 | else | ||
56 | CFLAGS += $(call cc-option,-Os,) | ||
57 | endif | ||
51 | endif | 58 | endif |
52 | 59 | ||
53 | # If arch/$(ARCH)/Makefile did not override it (with, say, -fPIC)... | 60 | # If arch/$(ARCH)/Makefile did not override it (with, say, -fPIC)... |