summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornijtmans <nijtmans>2008-11-12 00:37:01 (GMT)
committernijtmans <nijtmans>2008-11-12 00:37:01 (GMT)
commit8f0e26afae621cfcfc105b9c3535379e29ec82c4 (patch)
tree036ba7b90443922d2b65e5ee11004d75f073e0e7
parent08822bfc3683f6f3b0af04540c55847ed2b0ecd9 (diff)
downloadtk-8f0e26afae621cfcfc105b9c3535379e29ec82c4.zip
tk-8f0e26afae621cfcfc105b9c3535379e29ec82c4.tar.gz
tk-8f0e26afae621cfcfc105b9c3535379e29ec82c4.tar.bz2
Use -O2 as gcc optimization compiler flag, and get
rid of -Wno-implicit-int for UNIX
-rw-r--r--ChangeLog4
-rwxr-xr-xunix/configure9
-rw-r--r--unix/tcl.m49
3 files changed, 16 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 0365864..eaf9fbc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,10 @@
* 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)
+
* generic/tk.decls modify Tk_Create(Old)ImageType signature, relaxing
* generic/tk.h the constraint that every Tk_ImageType can only
* generic/tkImage.c be passed to this function once. This allows
diff --git a/unix/configure b/unix/configure
index cd5ad0b..9e09663 100755
--- a/unix/configure
+++ b/unix/configure
@@ -5087,13 +5087,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
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=""