]> git.ipfire.org Git - thirdparty/asterisk.git/commit
the gcc optimizer frequently finds broken code (use of uninitalized variables, unreac...
authorKevin P. Fleming <kpfleming@digium.com>
Wed, 19 Nov 2008 21:34:47 +0000 (21:34 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Wed, 19 Nov 2008 21:34:47 +0000 (21:34 +0000)
commit187f6d485aeb5332c9c1be9f88afe12685e4e242
tree78f43b76335f3a7b2a96a014ef9d4dab5a4f6b1f
parenta6fac748de2faad6fe53eeb223643e948aefc649
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@157859 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Makefile.moddir_rules
Makefile.rules
channels/misdn/Makefile
codecs/gsm/Makefile
main/db1-ast/Makefile
main/stdtime/Makefile
pbx/Makefile
res/Makefile