aboutsummaryrefslogtreecommitdiffstats
path: root/pbx
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2008-11-19 21:34:47 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2008-11-19 21:34:47 +0000
commit9668b8c888bcb4e2c459832ab2b06245ab5262e2 (patch)
tree78f43b76335f3a7b2a96a014ef9d4dab5a4f6b1f /pbx
parenta234ce6b3b592cb8424e396f74a201a8c99088fd (diff)
the gcc optimizer frequently finds broken code (use of uninitalized variables, unreachable code, etc.), which is good. however, developers usually compile with the optimizer turned off, because if they need to debug the resulting code, optimized code makes that process very difficult. this means that we get code changes committed that weren't adequately checked over for these sorts of problems.
with this build system change, if (and only if) --enable-dev-mode was used and DONT_OPTIMIZE is turned on, when a source file is compiled it will actually be preprocessed (into a .i or .ii file), then compiled once with optimization (with the result sent to /dev/null) and again without optimization (but only if the first compile succeeded, of course). while making these changes, i did some cleanup work in Makefile.rules to move commonly-used combinations of flag variables into their own variables, to make the file easier to read and maintain git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@157859 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rw-r--r--pbx/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/pbx/Makefile b/pbx/Makefile
index 161748b2d..d92ac590c 100644
--- a/pbx/Makefile
+++ b/pbx/Makefile
@@ -32,7 +32,7 @@ all: _all
include $(ASTTOPDIR)/Makefile.moddir_rules
clean::
- rm -f ael/*.o
+ rm -f ael/*.o ael/*.i
ael/ael_lex.o: ael/ael_lex.c ../include/asterisk/ael_structs.h ael/ael.tab.h
ael/ael_lex.o: ASTCFLAGS+=-I. -Wno-unused