#At file:///Users/kevinlewis/Work/Mysql/58629/mysql-trunk-innodb/ based on revid:jimmy.yang@stripped
3403 kevin.lewis@stripped 2011-01-05
Bug#58629 - Undefine UNIV_MUST_NOT_INLINE from normal builds
so that inlining can occur on all operating systems.
modified:
BUILD/SETUP.sh
BUILD/build_mccge.sh
scripts/mysql_config.pl.in
scripts/mysql_config.sh
storage/innobase/CMakeLists.txt
storage/innobase/include/univ.i
=== modified file 'BUILD/SETUP.sh'
--- a/BUILD/SETUP.sh revid:jimmy.yang@stripped
+++ b/BUILD/SETUP.sh revid:kevin.lewis@stripped
@@ -125,7 +125,7 @@ valgrind_flags="$valgrind_flags -DMYSQL_
valgrind_configs="--with-valgrind"
#
# Used in -debug builds
-debug_cflags="-DUNIV_MUST_NOT_INLINE -DEXTRA_DEBUG -DFORCE_INIT_OF_VARS "
+debug_cflags="-DEXTRA_DEBUG -DFORCE_INIT_OF_VARS "
debug_cflags="$debug_cflags -DSAFE_MUTEX"
error_inject="--with-error-inject "
#
=== modified file 'BUILD/build_mccge.sh'
--- a/BUILD/build_mccge.sh revid:jimmy.yang@stripped
+++ b/BUILD/build_mccge.sh revid:kevin.lewis@stripped
@@ -1161,7 +1161,7 @@ set_with_debug_flags()
{
if test "x$with_debug_flag" = "xyes" ; then
if test "x$developer_flag" = "xyes" ; then
- loc_debug_flags="-DUNIV_MUST_NOT_INLINE -DEXTRA_DEBUG -DFORCE_INIT_OF_VARS "
+ loc_debug_flags="-DEXTRA_DEBUG -DFORCE_INIT_OF_VARS "
compiler_flags="$compiler_flags $loc_debug_flags"
fi
compiler_flags="$compiler_flags $extra_debug_flags"
=== modified file 'scripts/mysql_config.pl.in'
--- a/scripts/mysql_config.pl.in revid:jimmy.yang@stripped
+++ b/scripts/mysql_config.pl.in revid:kevin.lewis@stripped
@@ -42,7 +42,7 @@ use Cwd;
use strict;
my @exclude_cflags =
- qw/DDBUG_OFF DSAFE_MUTEX DUNIV_MUST_NOT_INLINE DFORCE_INIT_OF_VARS
+ qw/DDBUG_OFF DSAFE_MUTEX DFORCE_INIT_OF_VARS
DEXTRA_DEBUG DHAVE_purify O O[0-9] xO[0-9] W[-A-Za-z]*
Xa xstrconst xc99=none
unroll2 ip mp restrict/;
=== modified file 'scripts/mysql_config.sh'
--- a/scripts/mysql_config.sh revid:jimmy.yang@stripped
+++ b/scripts/mysql_config.sh revid:kevin.lewis@stripped
@@ -133,7 +133,7 @@ include="-I$pkgincludedir"
# and -xstrconst to make --cflags usable for Sun Forte C++
# FIXME until we have a --cxxflags, we need to remove -AC99
# to make --cflags usable for HP C++ (aCC)
-for remove in DDBUG_OFF DSAFE_MUTEX DUNIV_MUST_NOT_INLINE DFORCE_INIT_OF_VARS \
+for remove in DDBUG_OFF DSAFE_MUTEX DFORCE_INIT_OF_VARS \
DEXTRA_DEBUG DHAVE_purify O 'O[0-9]' 'xO[0-9]' 'W[-A-Za-z]*' \
'mtune=[-A-Za-z0-9]*' 'mcpu=[-A-Za-z0-9]*' 'march=[-A-Za-z0-9]*' \
Xa xstrconst "xc99=none" AC99 \
=== modified file 'storage/innobase/CMakeLists.txt'
--- a/storage/innobase/CMakeLists.txt revid:jimmy.yang@stripped
+++ b/storage/innobase/CMakeLists.txt revid:kevin.lewis@stripped
@@ -30,13 +30,11 @@ IF(UNIX)
LINK_LIBRARIES(aio)
ENDIF()
ELSEIF(CMAKE_SYSTEM_NAME MATCHES "HP*")
- ADD_DEFINITIONS("-DUNIV_HPUX -DUNIV_MUST_NOT_INLINE")
+ ADD_DEFINITIONS("-DUNIV_HPUX")
ELSEIF(CMAKE_SYSTEM_NAME STREQUAL "AIX")
- ADD_DEFINITIONS("-DUNIV_AIX -DUNIX_MUST_NOT_INLINE")
+ ADD_DEFINITIONS("-DUNIV_AIX")
ELSEIF(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
ADD_DEFINITIONS("-DUNIV_SOLARIS")
- ELSE()
- ADD_DEFINITIONS("-DUNIV_MUST_NOT_INLINE")
ENDIF()
ENDIF()
=== modified file 'storage/innobase/include/univ.i'
--- a/storage/innobase/include/univ.i revid:jimmy.yang@stripped
+++ b/storage/innobase/include/univ.i revid:kevin.lewis@stripped
@@ -123,11 +123,6 @@ if we are compiling on Windows. */
/* We only try to do explicit inlining of functions with gcc and
Sun Studio */
-# if !defined(__GNUC__) && !(defined(__SUNPRO_C) || defined(__SUNPRO_CC))
-# undef UNIV_MUST_NOT_INLINE /* Remove compiler warning */
-# define UNIV_MUST_NOT_INLINE
-# endif
-
# ifdef HAVE_PREAD
# define HAVE_PWRITE
# endif
@@ -270,14 +265,14 @@ easy way to get it to work. See http://b
# define UNIV_INLINE static __inline__
#endif
-#else
+#else /* !UNIV_MUST_NOT_INLINE */
/* If we want to compile a noninlined version we use the following macro
definitions: */
#define UNIV_NONINL
#define UNIV_INLINE UNIV_INTERN
-#endif /* UNIV_DEBUG */
+#endif /* !UNIV_MUST_NOT_INLINE */
#ifdef _WIN32
#define UNIV_WORD_SIZE 4
Attachment: [text/bzr-bundle] bzr/kevin.lewis@oracle.com-20110105151823-88rnr0zcmmvf3no4.bundle
| Thread |
|---|
| • bzr commit into mysql-trunk-innodb branch (kevin.lewis:3403) Bug#58629 | kevin.lewis | 5 Jan |