From 39004ac11e0fbfb55fc1890b75012eeef0ad530d Mon Sep 17 00:00:00 2001 From: nijtmans Date: Wed, 12 Nov 2008 00:31:43 +0000 Subject: Use -O2 as gcc optimization compiler flag, and get rid of -Wno-implicit-int for UNIX --- ChangeLog | 3 +++ unix/configure | 10 +++++++--- unix/tcl.m4 | 9 ++++++--- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 133ff17..00a4b25 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ * win/tcl.m4: reverted change from 2008-11-06 (was under the impression that "-Wno-implicit-int" added an extra warning) * win/configure (regenerated) + * unix/tcl.m4: Use -O2 as gcc optimization compiler flag, and get + rid of -Wno-implicit-int for UNIX + * unix/configure (regenerated) 2008-11-10 Andreas Kupries diff --git a/unix/configure b/unix/configure index 3e4bf79..7f0869a 100755 --- a/unix/configure +++ b/unix/configure @@ -6255,13 +6255,16 @@ fi ECHO_VERSION='`echo ${VERSION}`' TCL_LIB_VERSIONS_OK=ok CFLAGS_DEBUG=-g - CFLAGS_OPTIMIZE=-O if test "$GCC" = yes; then - CFLAGS_WARNING="-Wall -Wno-implicit-int" + CFLAGS_OPTIMIZE="-O2" + CFLAGS_WARNING="-Wall" else - CFLAGS_WARNING="" + + CFLAGS_OPTIMIZE=-O + CFLAGS_WARNING="" + fi TCL_NEEDS_EXP_FILE=0 @@ -6739,6 +6742,7 @@ fi else CFLAGS="$CFLAGS -z" + CFLAGS_WARNING="$CFLAGS_WARNING +w1 +W392000" # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc #CFLAGS="$CFLAGS +DAportable" SHLIB_CFLAGS="+z" diff --git a/unix/tcl.m4 b/unix/tcl.m4 index 14db6a4..f7c2e59 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -1101,10 +1101,13 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ ECHO_VERSION='`echo ${VERSION}`' TCL_LIB_VERSIONS_OK=ok CFLAGS_DEBUG=-g - CFLAGS_OPTIMIZE=-O AS_IF([test "$GCC" = yes], [ - CFLAGS_WARNING="-Wall -Wno-implicit-int" - ], [CFLAGS_WARNING=""]) + CFLAGS_OPTIMIZE="-O2" + CFLAGS_WARNING="-Wall" + ], [ + CFLAGS_OPTIMIZE=-O + CFLAGS_WARNING="" + ]) TCL_NEEDS_EXP_FILE=0 TCL_BUILD_EXP_FILE="" TCL_EXP_FILE="" -- cgit v0.12