]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Revert "freeswitch: taking out -Ox cflags and have them replaced with -O0"
authorJames Zhang <jzhang@sangoma.com>
Wed, 21 Mar 2012 14:05:51 +0000 (10:05 -0400)
committerJames Zhang <jzhang@sangoma.com>
Wed, 21 Mar 2012 14:05:51 +0000 (10:05 -0400)
This reverts commit e560ddccdec0232a040851f088db1adec2cbc7f4.

33 files changed:
build/config/ax_cc_maxopt.m4
libs/apr/build/NWGNUenvironment.inc
libs/apr/build/apr_hints.m4
libs/apr/configure.in
libs/broadvoice/configure.ac
libs/broadvoice/debian/rules
libs/curl/lib/Makefile.b32
libs/curl/lib/Makefile.m32
libs/curl/src/Makefile.b32
libs/curl/src/makefile.amiga
libs/js/nsprpub/configure.in
libs/libg722_1/configure.ac
libs/libsndfile/INSTALL
libs/pcre/configure.ac
libs/portaudio/Makefile.darwin
libs/portaudio/SConstruct
libs/portaudio/bindings/cpp/build/gnu/configure
libs/portaudio/bindings/cpp/build/gnu/configure.ac
libs/portaudio/bindings/cpp/configure.ac
libs/portaudio/build/dev-cpp/Makefile-static
libs/portaudio/configure.in
libs/sqlite/Makefile.linux-gcc
libs/sqlite/mkso.sh
libs/sqlite/publish.sh
libs/srtp/INSTALL
libs/srtp/build/config/ax_cc_maxopt.m4
libs/srtp/configure.in
libs/yaml/aclocal.m4
libs/yaml/configure
src/mod/applications/mod_avmd/Makefile
src/mod/endpoints/mod_gsmopen/asterisk/Makefile
src/mod/endpoints/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/configure
src/mod/languages/mod_lua/lua/Makefile

index 40bb95c8b76c5ebb8a7c9368ea97e58dafd10903..6205ee84c8982ed4f108400b8ced5250be231623 100644 (file)
@@ -10,7 +10,7 @@ AC_ARG_ENABLE(portable-binary, [AC_HELP_STRING([--enable-portable-binary], [disa
 if test "$ac_test_CFLAGS" != "set"; then
   CFLAGS=""
   case $ax_cv_c_compiler_vendor in
-    dec) CFLAGS="-newc -w0 -O0 -ansi_alias -ansi_args -fp_reorder -tune host"
+    dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
          if test "x$acx_maxopt_portable" = xno; then
            CFLAGS="$CFLAGS -arch host"
          fi;;
@@ -31,13 +31,13 @@ if test "$ac_test_CFLAGS" != "set"; then
            xlc_opt="-qtune=auto"
          fi
          AX_CHECK_COMPILER_FLAGS($xlc_opt,
-                CFLAGS="-O0 -qansialias -w $xlc_opt",
-               [CFLAGS="-O0 -qansialias -w"
+                CFLAGS="-O3 -qansialias -w $xlc_opt",
+               [CFLAGS="-O3 -qansialias -w"
                 echo "******************************************************"
                 echo "*  You seem to have the IBM  C compiler.  It is      *"
                 echo "*  recommended for best performance that you use:    *"
                 echo "*                                                    *"
-                echo "*    CFLAGS=-O0 -qarch=xxx -qtune=xxx -qansialias -w *"
+                echo "*    CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
                 echo "*                      ^^^        ^^^                *"
                 echo "*  where xxx is pwr2, pwr3, 604, or whatever kind of *"
                 echo "*  CPU you have.  (Set the CFLAGS environment var.   *"
@@ -45,7 +45,7 @@ if test "$ac_test_CFLAGS" != "set"; then
                 echo "******************************************************"])
          ;;
 
-    intel) CFLAGS="-O0 -ansi_alias"
+    intel) CFLAGS="-O3 -ansi_alias"
         if test "x$acx_maxopt_portable" = xno; then
           icc_archflag=unknown
           icc_flags=""
@@ -78,7 +78,7 @@ if test "$ac_test_CFLAGS" != "set"; then
 
     gnu)
      # default optimization flags for gcc on all systems
-     CFLAGS="-O0 -fomit-frame-pointer"
+     CFLAGS="-O3 -fomit-frame-pointer"
 
      # -malign-double for x86 systems
      AX_CHECK_COMPILER_FLAGS(-malign-double, CFLAGS="$CFLAGS -malign-double")
@@ -99,10 +99,10 @@ if test "$ac_test_CFLAGS" != "set"; then
         echo "********************************************************"
         echo "* WARNING: Don't know the best CFLAGS for this system  *"
         echo "* Use ./configure CFLAGS=... to specify your own flags *"
-        echo "* (otherwise, a default of CFLAGS=-O0 will be used)    *"
+        echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
         echo "********************************************************"
         echo ""
-        CFLAGS="-O0"
+        CFLAGS="-O3"
   fi
 
   AX_CHECK_COMPILER_FLAGS($CFLAGS, [], [
index 884330fbb7198ccd9341ced0307e299343d25928..fd54b487c93c71f1a1ecd2364fbbc6bb9948560d 100644 (file)
@@ -161,7 +161,7 @@ endif
 
 # -O4,p                 level 4 optimizations, optimize for speed
 ifeq "$(RELEASE)" "optimized"
-CFLAGS += -O0,p
+CFLAGS += -O4,p
 endif
 
 # -prefix apr_arch_pre_nw.h      #include pre_nw.h for all files
index a7011db555cbf921a5c6a6bfa3aee702edbe961e..13476536592bbfeca6d157e35baa0fa1bff0632a 100644 (file)
@@ -326,7 +326,7 @@ dnl        # Not a problem in 10.20.  Otherwise, who knows?
        ;;
     *convex-v11*)
        APR_ADDTO(CPPFLAGS, [-DCONVEXOS11])
-       APR_SETIFNULL(CFLAGS, [-O0])
+       APR_SETIFNULL(CFLAGS, [-O1])
        APR_ADDTO(CFLAGS, [-ext])
        ;;
     i860-intel-osf1)
index a1d375d7689099162979d2e5bf68b0229789c3a8..68c030e124cd7654ccabefeaaafde5cb9d8f013a 100644 (file)
@@ -239,7 +239,7 @@ nl='
 '
 echo "${nl}Check for compiler flags..."
 
-dnl AC_PROG_CC sets -g in CFLAGS (and -O0 for gcc) by default.
+dnl AC_PROG_CC sets -g in CFLAGS (and -O2 for gcc) by default.
 dnl On OS/390 this causes the compiler to insert extra debugger
 dnl hook instructions.  That's fine for debug/maintainer builds, not fine
 dnl otherwise.
@@ -287,8 +287,8 @@ AC_ARG_ENABLE(profile,[  --enable-profile        Turn on profiling for the build
     APR_ADDTO(CFLAGS, -pg)
     APR_REMOVEFROM(CFLAGS, -g)
     if test "$host" = "i586-pc-beos"; then
-        APR_REMOVEFROM(CFLAGS, -O0)
-        APR_ADDTO(CFLAGS, -O0)
+        APR_REMOVEFROM(CFLAGS, -O2)
+        APR_ADDTO(CFLAGS, -O1)
         APR_ADDTO(LDFLAGS, -p)
     fi
   fi
@@ -340,7 +340,7 @@ AC_ARG_ENABLE(pool-debug,
 
 if test "$host" = "i586-pc-beos"; then
   AC_ARG_ENABLE(malloc-debug,[  --enable-malloc-debug   Switch on malloc_debug for BeOS],
-    APR_REMOVEFROM(CFLAGS, -O0)
+    APR_REMOVEFROM(CFLAGS, -O2)
     APR_ADDTO(CPPFLAGS, -fcheck-memory-usage -D_KERNEL_MODE)
   ) dnl
 fi
index 10d279ed8ac7ea32a0849d794cf103f6ed26f4d3..ceb92a57cb44ef06a932f770bb4e4d7eb60d5006 100644 (file)
@@ -71,9 +71,9 @@ then
   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
   CPPFLAGS_FOR_BUILD="\$(CPPFLAGS)"
   CC=${CC-${host_alias}-gcc}
-  CFLAGS=${CFLAGS-"-g -O0"}
+  CFLAGS=${CFLAGS-"-g -O2"}
   CXX=${CXX-${host_alias}-c++}
-  CXXFLAGS=${CXXFLAGS-"-g -O0"}
+  CXXFLAGS=${CXXFLAGS-"-g -O2"}
 else
   # Set reasonable default values for some tools even if not Canadian.
   # Of course, these are different reasonable default values, originally
@@ -108,8 +108,8 @@ else
   fi
 
   CXX=${CXX-"c++"}
-  CFLAGS=${CFLAGS-"-g -O0"}
-  CXXFLAGS=${CXXFLAGS-"-g -O0"}
+  CFLAGS=${CFLAGS-"-g -O2"}
+  CXXFLAGS=${CXXFLAGS-"-g -O2"}
 fi
 
 AC_DEFUN([REMOVE_FROM_VAR],[
index b4f11d68766b3caf2edd2b39f95773b20522ccd7..636e1b42aeeb1c67076fe1f891e164cc412a660b 100644 (file)
@@ -21,7 +21,7 @@ CFLAGS = -Wall -g
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
        CFLAGS += -O0
 else
-       CFLAGS += -O0
+       CFLAGS += -O2
 endif
 
 include /usr/share/dpatch/dpatch.make
index 97c27ddf1211422c16f0c60ae730627fabaf3b44..4544d7e7beafb94abb23b6e6b9de10049fc6ca01 100644 (file)
@@ -35,7 +35,7 @@ RM       = del
 LIB      = tlib
 IMPLIB   = implib
 
-CXXFLAGS = -q -5 -O0 -w-aus -w-ccc -w-csu -w-par -w-pia -w-rch -w-inl -w-ngu -w-pro -tWM
+CXXFLAGS = -q -5 -O2 -w-aus -w-ccc -w-csu -w-par -w-pia -w-rch -w-inl -w-ngu -w-pro -tWM
 LIBFLAGS = /C /P32
 LDFLAGS  = -q -lq -laa -tWD
 
index 1e7977f24c9ac9edfc40dfb3c0340aa140f0d80e..77085c6b082ce0531941ac81b6efce5983d276c4 100644 (file)
@@ -26,7 +26,7 @@ STRIP = strip -g
 ## Nothing more to do below this line!
 
 INCLUDES = -I. -I../include
-CFLAGS = -g -O0 -DMINGW32 -DBUILDING_LIBCURL -DHAVE_LONGLONG
+CFLAGS = -g -O2 -DMINGW32 -DBUILDING_LIBCURL -DHAVE_LONGLONG
 ifdef SSL
   INCLUDES += -I"$(OPENSSL_PATH)/outinc" -I"$(OPENSSL_PATH)/outinc/openssl"
   CFLAGS += -DUSE_SSLEAY -DUSE_OPENSSL -DHAVE_OPENSSL_ENGINE_H -DHAVE_OPENSSL_PKCS12_H \
index b7ad61733a5f895f5a43da0eeeefeaac3390c231..d4c1a073c965b12f422779f70e26c5d0555e34f0 100644 (file)
@@ -32,7 +32,7 @@ CP       = copy
 RM       = del
 LIB      = tlib
 
-CXXFLAGS = -q -5 -O0 -w-aus -w-ccc -w-csu -w-par -w-pia -w-rch -w-inl -w-ngu -w-pro -tWM
+CXXFLAGS = -q -5 -O2 -w-aus -w-ccc -w-csu -w-par -w-pia -w-rch -w-inl -w-ngu -w-pro -tWM
 LDFLAGS  = -q -lq -lap
 
 INCDIRS  = -I.;../include;../lib
index 15234d422cb74c4bf66ecc90251705a8a95d4e00..9e03e070f09b0df7216156e43dfd5196562ecc61 100755 (executable)
@@ -8,7 +8,7 @@ ATCPSDKI=       /GG/netinclude
 
 
 CC     =       m68k-amigaos-gcc
-CFLAGS =       -I$(ATCPSDKI) -m68020-60 -O0 -msoft-float -noixemul -g -I. -I../include -W -Wall
+CFLAGS =       -I$(ATCPSDKI) -m68020-60 -O2 -msoft-float -noixemul -g -I. -I../include -W -Wall
 LIBS   =       ../lib/libcurl.a -lssl -lcrypto -lz
 MANPAGE =      ../docs/curl.1
 README =       ../docs/MANUAL
index b3fcffe60cb23f4f76a432c46ff9e2c79af43ab7..93d3bd9f85d42a279a818a9d9c5d118d90df6c5f 100644 (file)
@@ -62,7 +62,7 @@ USE_CPLUS=
 USE_IPV6=
 USE_MDUPDATE=
 _MACOSX_DEPLOYMENT_TARGET=
-_OPTIMIZE_FLAGS=-O0
+_OPTIMIZE_FLAGS=-O
 _DEBUG_FLAGS=-g
 MOZ_DEBUG=1
 MOZ_OPTIMIZE=
@@ -176,7 +176,7 @@ AC_ARG_WITH(mozilla,
            fi])
 
 AC_ARG_ENABLE(optimize,
-    [  --enable-optimize(=val) Enable code optimizations (val, ie. -O0) ],
+    [  --enable-optimize(=val) Enable code optimizations (val, ie. -O2) ],
     [ if test "$enableval" != "no"; then
         MOZ_OPTIMIZE=1
         if test -n "$enableval" && test "$enableval" != "yes"; then
@@ -887,7 +887,7 @@ case "$target" in
     RESOLVE_LINK_SYMBOLS=1
     case "${target_cpu}" in
     i*86)
-        _OPTIMIZE_FLAGS=-O0
+        _OPTIMIZE_FLAGS=-O2
         _DEBUG_FLAGS='-gdwarf-2 -O0'
         MKSHLIB='$(CCC) $(DSO_LDOPTS) -o $@'
         AC_CHECK_LIB(bind, gethostbyaddr, [OS_LIBS="$OS_LIBS -lbind -lsocket"])
@@ -897,7 +897,7 @@ case "$target" in
         CCC=mwcc
         LD=mwld
         DSO_LDOPTS='-xms -export pragma -init _init_routine_ -term _term_routine_ -lroot -lnet /boot/develop/lib/ppc/glue-noinit.a /boot/develop/lib/ppc/init_term_dyn.o /boot/develop/lib/ppc/start_dyn.o'
-        _OPTIMIZE_FLAGS=-O0    
+        _OPTIMIZE_FLAGS=-O2    
         _DEBUG_FLAGS='-g -O0'
         ;;
     esac
@@ -1115,7 +1115,7 @@ tools are selected during the Xcode/Developer Tools installation.])
     AC_DEFINE(_DGUX_SOURCE)
     AC_DEFINE(_POSIX4A_DRAFT6_SOURCE)
     DSO_LDOPTS=-G
-    _OPTIMIZE_FLAGS=-O0
+    _OPTIMIZE_FLAGS=-O2
     _DEBUG_FLAGS=
     MDCPUCFG_H=_dgux.cfg
     PR_MD_CSRCS=dgux.c
@@ -1334,7 +1334,7 @@ tools are selected during the Xcode/Developer Tools installation.])
         dnl
            AS='$(CC) -Wp,-P -x assembler-with-cpp -D_ASM -mips2 $(INCLUDES)'
            CFLAGS="$CFLAGS -Wall -Wno-format"
-           _OPTIMIZE_FLAGS="-O0"
+           _OPTIMIZE_FLAGS="-O6"
     else
            if test -n "$USE_N32"; then
                AS='as -D_ASM $(INCLUDES) -n32'
@@ -1408,7 +1408,7 @@ tools are selected during the Xcode/Developer Tools installation.])
     MKSHLIB='$(CC) $(DSO_LDOPTS) $(OS_LDFLAGS) -o $@'
     DSO_CFLAGS=-fPIC
     DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
-    _OPTIMIZE_FLAGS=-O0
+    _OPTIMIZE_FLAGS=-O2
     _DEBUG_FLAGS="-g"  # most people on linux use gcc/gdb, and that
                                    # combo is not yet good at debugging inlined
                                    # functions (even when using DWARF2 as the
@@ -1485,7 +1485,7 @@ tools are selected during the Xcode/Developer Tools installation.])
         CFLAGS="$CFLAGS -W3 -nologo -GF -Gy"
         DLLFLAGS='-OUT:"$@"'
         _DEBUG_FLAGS=-Z7
-        _OPTIMIZE_FLAGS=-O0
+        _OPTIMIZE_FLAGS=-O2
         if test -z "$MOZ_OPTIMIZE"; then
             CFLAGS="$CFLAGS -Od"
         fi
@@ -1724,7 +1724,7 @@ mips-sony-newsos*)
     DSO_CFLAGS=-fPIC
     DSO_LDOPTS=-shared
     OS_LIBS="$OS_LIBS -lsocket"
-    _OPTIMIZE_FLAGS="-O0"
+    _OPTIMIZE_FLAGS="-O1"
     _DEBUG_FLAGS="-gstabs"
        ;;
 
@@ -2082,7 +2082,7 @@ mips-sony-newsos*)
         DSO_CFLAGS=
         DSO_LDOPTS='-Zomf -Zdll -Zmap'
         LDFLAGS='-Zmap'
-        _OPTIMIZE_FLAGS="-O0 -s"
+        _OPTIMIZE_FLAGS="-O2 -s"
         _DEBUG_FLAGS="-g -fno-inline"
         if test -n "$MOZ_OPTIMIZE"; then
           DSO_LDOPTS="$DSO_LDOPTS -Zlinker /EXEPACK:2 -Zlinker /PACKCODE -Zlinker /PACKDATA"
index e5385d4091df8d28b2d799235bddc22ddc6c94c8..62095ce3740578be664aa1fb11a121d6c4282b41 100644 (file)
@@ -64,9 +64,9 @@ then
   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
   CPPFLAGS_FOR_BUILD="\$(CPPFLAGS)"
   CC=${CC-${host_alias}-gcc}
-  CFLAGS=${CFLAGS-"-g -O0"}
+  CFLAGS=${CFLAGS-"-g -O2"}
   CXX=${CXX-${host_alias}-c++}
-  CXXFLAGS=${CXXFLAGS-"-g -O0"}
+  CXXFLAGS=${CXXFLAGS-"-g -O2"}
 else
   # Set reasonable default values for some tools even if not Canadian.
   # Of course, these are different reasonable default values, originally
@@ -101,8 +101,8 @@ else
   fi
 
   CXX=${CXX-"c++"}
-  CFLAGS=${CFLAGS-"-g -O0"}
-  CXXFLAGS=${CXXFLAGS-"-g -O0"}
+  CFLAGS=${CFLAGS-"-g -O2"}
+  CXXFLAGS=${CXXFLAGS-"-g -O2"}
 fi
 
 AC_DEFUN([REMOVE_FROM_VAR],[
index d520a54b6bfcf55b92b35ac22977d18e62fbfb3d..b42a17ac4640e9a2bfe5e480e44d0eef3f365928 100644 (file)
@@ -59,7 +59,7 @@ the `configure' script does not know about.  You can give `configure'
 initial values for variables by setting them in the environment.  Using
 a Bourne-compatible shell, you can do that on the command line like
 this:
-     CC=c89 CFLAGS=-O0 LIBS=-lposix ./configure
+     CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
 
 Or on systems that have the `env' program, you can do it like this:
      env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
index 7bf7c95b355e160e71893b964ffc39b27bc5add9..b6f79f98cf299aab27459a342053ce725995c4eb 100644 (file)
@@ -26,7 +26,7 @@ CFLAGS="$CFLAGS $CONFIGURE_CFLAGS"
 CXXFLAGS="$CXXFLAGS $CONFIGURE_CXXFLAGS"
 LDFLAGS="$LDFLAGS $CONFIGURE_LDFLAGS"
 
-# The default CFLAGS and CXXFLAGS in Autoconf are "-g -O0" for gcc and just
+# The default CFLAGS and CXXFLAGS in Autoconf are "-g -O2" for gcc and just
 # "-g" for any other compiler. There doesn't seem to be a standard way of
 # getting rid of the -g (which I don't think is needed for a production
 # library). This fudge seems to achieve the necessary. First, we remember the
@@ -44,9 +44,9 @@ AC_PROG_CXX
 
 if test "x$remember_set_CFLAGS" = "x"
 then
-  if test "$CFLAGS" = "-g -O0"
+  if test "$CFLAGS" = "-g -O2"
   then
-    CFLAGS="-O0"
+    CFLAGS="-O2"
   elif test "$CFLAGS" = "-g"
   then
     CFLAGS=""
@@ -55,9 +55,9 @@ fi
 
 if test "x$remember_set_CXXFLAGS" = "x"
 then
-  if test "$CXXFLAGS" = "-g -O0"
+  if test "$CXXFLAGS" = "-g -O2"
   then
-    CXXFLAGS="-O0"
+    CXXFLAGS="-O2"
   elif test "$CXXFLAGS" = "-g"
   then
     CXXFLAGS=""
index 0d37963f048fbbd4c9fb2a72c109c19d3a88d98c..9aec51de24b20374fb93da1b266787144b3e7d73 100644 (file)
@@ -11,7 +11,7 @@ top_srcdir = .
 srcdir = .
 
 top_builddir = .
-OPT_LEVEL := -O0
+OPT_LEVEL := -O2
 PREFIX = /usr/local
 prefix = $(PREFIX)
 exec_prefix = ${prefix}
index 3c4bca0df73f36a4756a1e8a5cd65f0953bd9c24..15d36bad5776b2383b730161e4fe3e2a1967442e 100644 (file)
@@ -39,7 +39,7 @@ if Platform in Posix:
     baseLinkFlags = threadCFlags = "-pthread"
     baseCxxFlags = baseCFlags = "-Wall -pedantic -pipe " + threadCFlags
     debugCxxFlags = debugCFlags = "-g"
-    optCxxFlags = optCFlags  = "-O0"
+    optCxxFlags = optCFlags  = "-O2"
 env["CCFLAGS"] = baseCFlags.split()
 env["CXXFLAGS"] = baseCxxFlags.split()
 env["LINKFLAGS"] = baseLinkFlags.split()
index e91013c07cd9f807446746409fa2b293a666097a..69070c66d4f20c3c0d865bd202095a8f649f1eaf 100644 (file)
@@ -1263,7 +1263,7 @@ PORTAUDIO="$PACPP_ROOT/../portaudio"
 
 PACPP_INC="$PACPP_ROOT/include"
 INCLUDES="-I$PACPP_INC -I$PORTAUDIO -I$PORTAUDIO/pa_common"
-CFLAGS="-g -O0 -Wall -ansi -pedantic $INCLUDES"
+CFLAGS="-g -O2 -Wall -ansi -pedantic $INCLUDES"
 CXXFLAGS="$CFLAGS"
 PALIBDIR="$PORTAUDIO/lib"
 
@@ -1908,13 +1908,13 @@ if test "$ac_test_CFLAGS" = set; then
   CFLAGS=$ac_save_CFLAGS
 elif test $ac_cv_prog_cc_g = yes; then
   if test "$GCC" = yes; then
-    CFLAGS="-g -O0"
+    CFLAGS="-g -O2"
   else
-    CFLAGS="-g -O0"
+    CFLAGS="-g"
   fi
 else
   if test "$GCC" = yes; then
-    CFLAGS="-O0"
+    CFLAGS="-O2"
   else
     CFLAGS=
   fi
@@ -2350,13 +2350,13 @@ if test "$ac_test_CXXFLAGS" = set; then
   CXXFLAGS=$ac_save_CXXFLAGS
 elif test $ac_cv_prog_cxx_g = yes; then
   if test "$GXX" = yes; then
-    CXXFLAGS="-g -O0"
+    CXXFLAGS="-g -O2"
   else
-    CXXFLAGS="-g -O0"
+    CXXFLAGS="-g"
   fi
 else
   if test "$GXX" = yes; then
-    CXXFLAGS="-O0"
+    CXXFLAGS="-O2"
   else
     CXXFLAGS=
   fi
index 071a7e94ef9da4663c19acd6268837aba3a0e1a8..5457c53420da289775c26c4892820b1c86e5cc64 100644 (file)
@@ -24,7 +24,7 @@ PORTAUDIO="$PACPP_ROOT/../portaudio"
 
 PACPP_INC="$PACPP_ROOT/include"
 INCLUDES="-I$PACPP_INC -I$PORTAUDIO -I$PORTAUDIO/pa_common"
-CFLAGS="-g -O0 -Wall -ansi -pedantic $INCLUDES"
+CFLAGS="-g -O2 -Wall -ansi -pedantic $INCLUDES"
 CXXFLAGS="$CFLAGS"
 PALIBDIR="$PORTAUDIO/lib"
 
index 94baff8fc3778b080738433a09729d9419614300..100656ac41bba2a26bec450726161ce696c30d10 100644 (file)
@@ -25,7 +25,7 @@ PORTAUDIO_ROOT="../.."
 
 # Various other variables and flags
 DEFAULT_INCLUDES="-I$PACPP_ROOT/include -I$PACPP_ROOT/$PORTAUDIO_ROOT/include"
-CFLAGS=${CFLAGS-"-g -O0 -Wall -ansi -pedantic"}
+CFLAGS=${CFLAGS-"-g -O2 -Wall -ansi -pedantic"}
 CXXFLAGS=${CXXFLAGS-"${CFLAGS}"}
 
 LT_VERSION_INFO="lt_current:lt_revision:lt_age"
index 65fcb5dacfa57550d4a2619579aa70c8bceabb7d..2a1647ddc5f3a60f24312d60168da26357965e50 100644 (file)
@@ -7,12 +7,12 @@ WINDRES = windres.exe
 RES  = 
 OBJ  = ./pa_skeleton.o ./pa_stream.o ./pa_trace.o ./pa_allocation.o ./pa_converters.o ./pa_cpuload.o ./pa_dither.o ./pa_front.o ./pa_process.o ./pa_asio.o ./pa_win_util.o ./pa_win_hostapis.o ./pa_win_ds.o ./dsound_wrapper.o ./pa_win_wmme.o ./iasiothiscallresolver.o $(RES)
 LINKOBJ  = ./pa_skeleton.o ./pa_stream.o ./pa_trace.o ./pa_allocation.o ./pa_converters.o ./pa_cpuload.o ./pa_dither.o ./pa_front.o ./pa_process.o ./pa_asio.o ./pa_win_util.o ./pa_win_hostapis.o ./pa_win_ds.o ./dsound_wrapper.o ./pa_win_wmme.o ./iasiothiscallresolver.o $(RES)
-LIBS =  -L"C:/Dev-CPP/lib" -fmessage-length=0 -O0 -s 
+LIBS =  -L"C:/Dev-CPP/lib" -fmessage-length=0 -O3 -s 
 INCS =  -I"C:/Dev-CPP/include"  -I"../../../asiosdk2"  -I"../../../asiosdk2/common"  -I"../../../asiosdk2/host"  -I"../../../asiosdk2/host/pc"  -I"../../pa_common" 
 CXXINCS =  -I"C:/Dev-CPP/include/c++"  -I"C:/Dev-CPP/include/c++/mingw32"  -I"C:/Dev-CPP/include/c++/backward"  -I"C:/Dev-CPP/include"  -I"../../../asiosdk2"  -I"../../../asiosdk2/common"  -I"../../../asiosdk2/host"  -I"../../../asiosdk2/host/pc"  -I"../../pa_common" 
 BIN  = portaudio-static.a
-CXXFLAGS = $(CXXINCS)-O0   -fmessage-length=0 -Wall
-CFLAGS = $(INCS)-O0   -fmessage-length=0 -Wall
+CXXFLAGS = $(CXXINCS)-O3   -fmessage-length=0 -Wall
+CFLAGS = $(INCS)-O3   -fmessage-length=0 -Wall
 
 .PHONY: all all-before all-after clean clean-custom
 
index 24deaf701ce0527124ccc0afd313618ec0be6058..f4ef9abbeee09b5bb439ead6c9d3d62e8d0304a4 100644 (file)
@@ -130,7 +130,7 @@ AC_SUBST(CXXFLAGS)
 AC_SUBST(NASM)
 AC_SUBST(NASMOPT)
 
-CFLAGS=${CFLAGS:-"-g -O0 -Wall -pedantic -pipe -fPIC"}
+CFLAGS=${CFLAGS:-"-g -O2 -Wall -pedantic -pipe -fPIC"}
 
 if [[ $ac_cv_c_bigendian = "yes" ]] ; then
    CFLAGS="$CFLAGS -DPA_BIG_ENDIAN"
index e3a3d385ddf6479e95323da988ac42e22744dc3f..c865024b4400e67557b8d4a2e423c00950a5ab95 100644 (file)
@@ -19,7 +19,7 @@ TOP = ../sqlite
 #### C Compiler and options for use in building executables that
 #    will run on the platform that is doing the build.
 #
-BCC = gcc -g -O0
+BCC = gcc -g -O2
 #BCC = /opt/ancic/bin/c89 -0
 
 #### If the target operating system supports the "usleep()" system
@@ -70,10 +70,10 @@ EXE =
 #    will run on the target platform.  This is usually the same
 #    as BCC, unless you are cross-compiling.
 #
-TCC = gcc -O0
+TCC = gcc -O6
 #TCC = gcc -g -O0 -Wall
 #TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage
-#TCC = /opt/mingw/bin/i386-mingw32-gcc -O0
+#TCC = /opt/mingw/bin/i386-mingw32-gcc -O6
 #TCC = /opt/ansic/bin/c89 -O +z -Wl,-a,archive
 
 #### Tools used to build a static library.
index d6afb0198d13daf66515c714d5aed952c65a6334..9050d74255c42732015eca709940cd5bd44d8711 100755 (executable)
@@ -14,7 +14,7 @@ TCLSTUBLIB=$TCLDIR/libtclstub8.4g.a
 OPTS='-DUSE_TCL_STUBS=1 -DNDEBUG=1 -DHAVE_DLOPEN=1'
 for i in *.c; do
   if test $i != 'keywordhash.c'; then
-    CMD="cc -fPIC $OPTS -O0 -I. -I$TCLDIR -c $i"
+    CMD="cc -fPIC $OPTS -O2 -I. -I$TCLDIR -c $i"
     echo $CMD
     $CMD
   fi
index 68d7c7f6e8460f8fbf6d544edea86d4b04d276e9..043c89a0397174e4892c4fa338cf35ed21565afe 100755 (executable)
@@ -66,7 +66,7 @@ make target_source
 cd tsrc
 rm tclsqlite.c
 OPTS='-DSTATIC_BUILD=1 -DNDEBUG=1'
-i386-mingw32msvc-gcc -O0 $OPTS -I. -I$TCLDIR *.c -o sqlite3.exe
+i386-mingw32msvc-gcc -O2 $OPTS -I. -I$TCLDIR *.c -o sqlite3.exe
 zip ../doc/sqlite-$VERSW.zip sqlite3.exe
 cd ..
 
index 7d2c51bb9dd019ed0b6d61f783074bd20779fc25..23e5f25d0e5f85798dcfb368ecb2f04f59777f61 100644 (file)
@@ -78,7 +78,7 @@ details on some of the pertinent environment variables.
 by setting variables in the command line or in the environment.  Here
 is an example:
 
-     ./configure CC=c89 CFLAGS=-O0 LIBS=-lposix
+     ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
 
    *Note Defining Variables::, for more details.
 
index 40bb95c8b76c5ebb8a7c9368ea97e58dafd10903..6205ee84c8982ed4f108400b8ced5250be231623 100644 (file)
@@ -10,7 +10,7 @@ AC_ARG_ENABLE(portable-binary, [AC_HELP_STRING([--enable-portable-binary], [disa
 if test "$ac_test_CFLAGS" != "set"; then
   CFLAGS=""
   case $ax_cv_c_compiler_vendor in
-    dec) CFLAGS="-newc -w0 -O0 -ansi_alias -ansi_args -fp_reorder -tune host"
+    dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
          if test "x$acx_maxopt_portable" = xno; then
            CFLAGS="$CFLAGS -arch host"
          fi;;
@@ -31,13 +31,13 @@ if test "$ac_test_CFLAGS" != "set"; then
            xlc_opt="-qtune=auto"
          fi
          AX_CHECK_COMPILER_FLAGS($xlc_opt,
-                CFLAGS="-O0 -qansialias -w $xlc_opt",
-               [CFLAGS="-O0 -qansialias -w"
+                CFLAGS="-O3 -qansialias -w $xlc_opt",
+               [CFLAGS="-O3 -qansialias -w"
                 echo "******************************************************"
                 echo "*  You seem to have the IBM  C compiler.  It is      *"
                 echo "*  recommended for best performance that you use:    *"
                 echo "*                                                    *"
-                echo "*    CFLAGS=-O0 -qarch=xxx -qtune=xxx -qansialias -w *"
+                echo "*    CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
                 echo "*                      ^^^        ^^^                *"
                 echo "*  where xxx is pwr2, pwr3, 604, or whatever kind of *"
                 echo "*  CPU you have.  (Set the CFLAGS environment var.   *"
@@ -45,7 +45,7 @@ if test "$ac_test_CFLAGS" != "set"; then
                 echo "******************************************************"])
          ;;
 
-    intel) CFLAGS="-O0 -ansi_alias"
+    intel) CFLAGS="-O3 -ansi_alias"
         if test "x$acx_maxopt_portable" = xno; then
           icc_archflag=unknown
           icc_flags=""
@@ -78,7 +78,7 @@ if test "$ac_test_CFLAGS" != "set"; then
 
     gnu)
      # default optimization flags for gcc on all systems
-     CFLAGS="-O0 -fomit-frame-pointer"
+     CFLAGS="-O3 -fomit-frame-pointer"
 
      # -malign-double for x86 systems
      AX_CHECK_COMPILER_FLAGS(-malign-double, CFLAGS="$CFLAGS -malign-double")
@@ -99,10 +99,10 @@ if test "$ac_test_CFLAGS" != "set"; then
         echo "********************************************************"
         echo "* WARNING: Don't know the best CFLAGS for this system  *"
         echo "* Use ./configure CFLAGS=... to specify your own flags *"
-        echo "* (otherwise, a default of CFLAGS=-O0 will be used)    *"
+        echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
         echo "********************************************************"
         echo ""
-        CFLAGS="-O0"
+        CFLAGS="-O3"
   fi
 
   AX_CHECK_COMPILER_FLAGS($CFLAGS, [], [
index 8584be880e98b141bfadc0b96af689ce90ca4106..2495a55f9553ab064782830342923bef614530c1 100644 (file)
@@ -49,7 +49,7 @@ case "$host" in
                                 IN_LINE=""
                         elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
                                 SOLINK="-Bdynamic -dy -G"
-                                new_AM_CFLAGS="-fPIC -Wall -O0 -fexpensive-optimizations -funroll-loops"
+                                new_AM_CFLAGS="-fPIC -Wall -O4 -fexpensive-optimizations -funroll-loops"
                                 new_AM_LDFLAGS=""
                                 IN_LINE=inline
                         fi
@@ -71,7 +71,7 @@ case "$host" in
                                 FUNC_DEF=__func__
                         elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
                                SOLINK="-shared -Xlinker -x"
-                                new_AM_CFLAGS="-fPIC -Wall -O0 -fexpensive-optimizations -funroll-loops"
+                                new_AM_CFLAGS="-fPIC -Wall -O4 -fexpensive-optimizations -funroll-loops"
                                 new_AM_LDFLAGS=""
                         fi
                         DYNAMIC_LIB_EXTEN="so"
@@ -84,20 +84,20 @@ case "$host" in
                                 FUNC_DEF=__func__
                         elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
                                 SOLINK="-shared -Xlinker -x"
-                                new_AM_CFLAGS="-fpic -Wall -O0 -fexpensive-optimizations -funroll-loops"
+                                new_AM_CFLAGS="-fpic -Wall -O4 -fexpensive-optimizations -funroll-loops"
                                 new_AM_LDFLAGS=""
                         fi
                         DYNAMIC_LIB_EXTEN="so"
                 ;;
                i*6*-*-freebsd*)
                         SOLINK="-shared -Xlinker -x"
-                        new_AM_CFLAGS="-fPIC -Wall -O0 -fexpensive-optimizations -funroll-loops"
+                        new_AM_CFLAGS="-fPIC -Wall -O4 -fexpensive-optimizations -funroll-loops"
                         new_AM_LDFLAGS=""
                         DYNAMIC_LIB_EXTEN="so"
                ;;
                x86_64-*-freebsd*|amd64-*-freebsd*)
                         SOLINK="-shared -Xlinker -x"
-                        new_AM_CFLAGS="-fPIC -Wall -O0 -fexpensive-optimizations -funroll-loops"
+                        new_AM_CFLAGS="-fPIC -Wall -O4 -fexpensive-optimizations -funroll-loops"
                         new_AM_LDFLAGS=""
                         DYNAMIC_LIB_EXTEN="so"
                ;;
index ba1ed6387899c2999e0be0cb897901c0356a1d6e..b7984f0f015447e621faf8b21b48dc99b26b7c1d 100644 (file)
@@ -6311,7 +6311,7 @@ ifelse([AC_DISABLE_FAST_INSTALL])
 
 AC_DEFUN([LT_AC_PROG_GCJ],
 [AC_CHECK_TOOL(GCJ, gcj, no)
-  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O0"
+  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
   AC_SUBST(GCJFLAGS)
 ])
 
index f66fa4972c7b92e178992b95b5230f0c41dff0ab..66e708215a87db858050fc27d652d9288c8f2831 100755 (executable)
@@ -3222,13 +3222,13 @@ if test "$ac_test_CFLAGS" = set; then
   CFLAGS=$ac_save_CFLAGS
 elif test $ac_cv_prog_cc_g = yes; then
   if test "$GCC" = yes; then
-    CFLAGS="-g -O0"
+    CFLAGS="-g -O2"
   else
-    CFLAGS="-g -O0"
+    CFLAGS="-g"
   fi
 else
   if test "$GCC" = yes; then
-    CFLAGS="-O0"
+    CFLAGS="-O2"
   else
     CFLAGS=
   fi
@@ -5579,13 +5579,13 @@ if test "$ac_test_CXXFLAGS" = set; then
   CXXFLAGS=$ac_save_CXXFLAGS
 elif test $ac_cv_prog_cxx_g = yes; then
   if test "$GXX" = yes; then
-    CXXFLAGS="-g -O0"
+    CXXFLAGS="-g -O2"
   else
-    CXXFLAGS="-g -O0"
+    CXXFLAGS="-g"
   fi
 else
   if test "$GXX" = yes; then
-    CXXFLAGS="-O0"
+    CXXFLAGS="-O2"
   else
     CXXFLAGS=
   fi
@@ -6180,13 +6180,13 @@ if test "$ac_test_FFLAGS" = set; then
   FFLAGS=$ac_save_FFLAGS
 elif test $ac_cv_prog_f77_g = yes; then
   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
-    FFLAGS="-g -O0"
+    FFLAGS="-g -O2"
   else
-    FFLAGS="-g -O0"
+    FFLAGS="-g"
   fi
 else
   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
-    FFLAGS="-O0"
+    FFLAGS="-O2"
   else
     FFLAGS=
   fi
index fbf7ccb023b1fb3ecef0f2f3555c7ec200508778..c4a62d4120d0503cf9548173099141a618763e19 100644 (file)
@@ -1,6 +1,6 @@
 BASE=../../../..
-MOD_CFLAGS= -O0
-#MOD_CFLAGS= -march=core2 -g -O0 -malign-double -mtune=core2 -mmmx -msse -msse2 -msse3 -mssse3 -mfpmath=sse -ffast-math -funroll-loops -fprefetch-loop-arrays -funit-at-a-time -ftracer --save-temps
+MOD_CFLAGS= -O2
+#MOD_CFLAGS= -march=core2 -g -O2 -malign-double -mtune=core2 -mmmx -msse -msse2 -msse3 -mssse3 -mfpmath=sse -ffast-math -funroll-loops -fprefetch-loop-arrays -funit-at-a-time -ftracer --save-temps
 #MOD_LDFLAGS= --save-temps
 LOCAL_SOURCES=amplitude.c buffer.c desa2.c goertzel.c fast_acosf.c
 LOCAL_OBJS=amplitude.o buffer.o desa2.o goertzel.o fast_acosf.o
index f1b2d5445070b021a3e4c1d4b2cd38d4d68e4ce6..6aed86266e007f6ae39df669bc1917b3c4309884 100644 (file)
@@ -33,7 +33,7 @@ CFLAGS+=-g3
 
 CFLAGS+=-I$(AST_INCLUDE_DIR) -I.
 CFLAGS+=-D_REENTRANT -D_GNU_SOURCE
-#CFLAGS+=-O0
+#CFLAGS+=-O6
 #CFLAGS+=-march=i586
 CFLAGS+=-fomit-frame-pointer
 ifeq ($(shell uname -m),x86_64)
index 23bae838685782da9e36b4ac3f388a1dcbceacd1..5918af81fb0f3ddd6a15d4913fbc803fbc379b60 100755 (executable)
@@ -2261,13 +2261,13 @@ if test "$ac_test_CFLAGS" = set; then
   CFLAGS=$ac_save_CFLAGS
 elif test $ac_cv_prog_cc_g = yes; then
   if test "$GCC" = yes; then
-    CFLAGS="-g -O0"
+    CFLAGS="-g -O2"
   else
-    CFLAGS="-g -O0"
+    CFLAGS="-g"
   fi
 else
   if test "$GCC" = yes; then
-    CFLAGS="-O0"
+    CFLAGS="-O2"
   else
     CFLAGS=
   fi
@@ -3144,7 +3144,7 @@ fi;
 
 
 if test "$CXXFLAGS" = ""; then
-   CXXFLAGS="-O0"
+   CXXFLAGS="-O2"
 fi
 
 
@@ -4748,13 +4748,13 @@ if test "$ac_test_CXXFLAGS" = set; then
   CXXFLAGS=$ac_save_CXXFLAGS
 elif test $ac_cv_prog_cxx_g = yes; then
   if test "$GXX" = yes; then
-    CXXFLAGS="-g -O0"
+    CXXFLAGS="-g -O2"
   else
-    CXXFLAGS="-g -O0"
+    CXXFLAGS="-g"
   fi
 else
   if test "$GXX" = yes; then
-    CXXFLAGS="-O0"
+    CXXFLAGS="-O2"
   else
     CXXFLAGS=
   fi
@@ -5431,13 +5431,13 @@ if test "$ac_test_FFLAGS" = set; then
   FFLAGS=$ac_save_FFLAGS
 elif test $ac_cv_prog_f77_g = yes; then
   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
-    FFLAGS="-g -O0"
+    FFLAGS="-g -O2"
   else
-    FFLAGS="-g -O0"
+    FFLAGS="-g"
   fi
 else
   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
-    FFLAGS="-O0"
+    FFLAGS="-O2"
   else
     FFLAGS=
   fi
@@ -20153,13 +20153,13 @@ if test "$ac_test_CXXFLAGS" = set; then
   CXXFLAGS=$ac_save_CXXFLAGS
 elif test $ac_cv_prog_cxx_g = yes; then
   if test "$GXX" = yes; then
-    CXXFLAGS="-g -O0"
+    CXXFLAGS="-g -O2"
   else
-    CXXFLAGS="-g -O0"
+    CXXFLAGS="-g"
   fi
 else
   if test "$GXX" = yes; then
-    CXXFLAGS="-O0"
+    CXXFLAGS="-O2"
   else
     CXXFLAGS=
   fi
index 4e0b5480d66533d47ad0bc3f81992ca0387d6705..e4a3cd6108c219f19030e2fe48cefa3b3869936a 100644 (file)
@@ -8,7 +8,7 @@
 PLAT= none
 
 CC= gcc
-CFLAGS= -O0 -Wall $(MYCFLAGS)
+CFLAGS= -O2 -Wall $(MYCFLAGS)
 AR= ar rcu
 RANLIB= ranlib
 RM= rm -f
@@ -81,7 +81,7 @@ none:
        @echo "   $(PLATS)"
 
 aix:
-       $(MAKE) all CC="xlc" CFLAGS="-O0 -DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-ldl" MYLDFLAGS="-brtl -bexpall"
+       $(MAKE) all CC="xlc" CFLAGS="-O2 -DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-ldl" MYLDFLAGS="-brtl -bexpall"
 
 ansi:
        $(MAKE) all MYCFLAGS=-DLUA_ANSI