Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
bc7731c0
Commit
bc7731c0
authored
Apr 13, 2001
by
monty@donna.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed -O6 to -O3
Portability fix for Innodb
parent
fc6dcf4d
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
41 additions
and
31 deletions
+41
-31
BUILD/SETUP.sh
BUILD/SETUP.sh
+2
-2
BUILD/compile-pentium-max
BUILD/compile-pentium-max
+0
-0
Docs/manual.texi
Docs/manual.texi
+19
-19
configure.in
configure.in
+2
-2
innobase/os/os0thread.c
innobase/os/os0thread.c
+4
-2
scripts/safe_mysqld.sh
scripts/safe_mysqld.sh
+10
-2
sql/gen_lex_hash.cc
sql/gen_lex_hash.cc
+1
-1
support-files/mysql.spec.sh
support-files/mysql.spec.sh
+3
-3
No files found.
BUILD/SETUP.sh
View file @
bc7731c0
...
...
@@ -43,8 +43,8 @@ alpha_cflags="-mcpu=ev6 -Wa,-mev6" # Not used yet
pentium_cflags
=
"-mpentiumpro"
sparc_cflags
=
""
fast_cflags
=
"-O
6
-fno-omit-frame-pointer"
reckless_cflags
=
"-O
6
-fomit-frame-pointer -ffixed-ebp"
fast_cflags
=
"-O
3
-fno-omit-frame-pointer"
reckless_cflags
=
"-O
3
-fomit-frame-pointer -ffixed-ebp"
debug_cflags
=
"-DEXTRA_DEBUG -DFORCE_INIT_OF_VARS -DSAFEMALLOC -DSAFE_MUTEX -O2"
base_cxxflags
=
"-felide-constructors -fno-exceptions -fno-rtti"
...
...
BUILD/compile-pentium-max
100644 → 100755
View file @
bc7731c0
File mode changed from 100644 to 100755
Docs/manual.texi
View file @
bc7731c0
...
...
@@ -6152,13 +6152,13 @@ the compiler you are using:
@tindex environment variable, CXXFLAGS
@multitable @columnfractions .20 .80
@item gcc 2.7.2.1 @tab
CC=gcc CXX=gcc CXXFLAGS="-O
6
-felide-constructors"
CC=gcc CXX=gcc CXXFLAGS="-O
3
-felide-constructors"
@item egcs 1.0.3a @tab
CC=gcc CXX=gcc CXXFLAGS="-O
6
-felide-constructors -fno-exceptions -fno-rtti"
CC=gcc CXX=gcc CXXFLAGS="-O
3
-felide-constructors -fno-exceptions -fno-rtti"
@item gcc 2.95.2 @tab
CFLAGS="-O
6 -mpentiumpro" CXX=gcc CXXFLAGS="-O6
-mpentiumpro -felide-constructors -fno-exceptions -fno-rtti"
CFLAGS="-O
3 -mpentiumpro" CXX=gcc CXXFLAGS="-O3
-mpentiumpro -felide-constructors -fno-exceptions -fno-rtti"
@item pgcc 2.90.29 or newer @tab
CFLAGS="-O
6 -mpentiumpro -mstack-align-double" CXX=gcc CXXFLAGS="-O6
-mpentiumpro -mstack-align-double -felide-constructors -fno-exceptions -fno-rtti"
CFLAGS="-O
3 -mpentiumpro -mstack-align-double" CXX=gcc CXXFLAGS="-O3
-mpentiumpro -mstack-align-double -felide-constructors -fno-exceptions -fno-rtti"
@end multitable
In most cases you can get a reasonably optimal @strong{MySQL} binary by
...
...
@@ -6173,7 +6173,7 @@ The full configure line would in other words be something like the
following for all recent gcc versions:
@example
CFLAGS="-O
6 -mpentiumpro" CXX=gcc CXXFLAGS="-O6
-mpentiumpro -felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local/mysql --enable-assembler --with-mysqld-ldflags=-all-static
CFLAGS="-O
3 -mpentiumpro" CXX=gcc CXXFLAGS="-O3
-mpentiumpro -felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local/mysql --enable-assembler --with-mysqld-ldflags=-all-static
@end example
The binaries we provide on the @strong{MySQL} Web site at
...
...
@@ -6498,9 +6498,9 @@ and @code{CXX}. For example:
@example
shell> CC=gcc
shell> CFLAGS=-O
6
shell> CFLAGS=-O
3
shell> CXX=gcc
shell> CXXFLAGS=-O
6
shell> CXXFLAGS=-O
3
shell> export CC CFLAGS CXX CXXFLAGS
@end example
...
...
@@ -7017,8 +7017,8 @@ SPARC!
The recommended @code{configure} line when using @code{gcc} 2.95.2 is:
@example
CC=gcc CFLAGS="-O
6
" \
CXX=gcc CXXFLAGS="-O
6
-felide-constructors -fno-exceptions -fno-rtti" \
CC=gcc CFLAGS="-O
3
" \
CXX=gcc CXXFLAGS="-O
3
-felide-constructors -fno-exceptions -fno-rtti" \
./configure --prefix=/usr/local/mysql --with-low-memory --enable-assembler
@end example
...
...
@@ -7231,9 +7231,9 @@ experience problems with core dumps under load, you should use the
following @code{configure} command:
@example
CC=gcc CFLAGS="-O
6
-fomit-frame-pointer -DHAVE_CURSES_H" \
CC=gcc CFLAGS="-O
3
-fomit-frame-pointer -DHAVE_CURSES_H" \
CXX=gcc \
CXXFLAGS="-O
6
-fomit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti -DHAVE_CURSES_H" \
CXXFLAGS="-O
3
-fomit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti -DHAVE_CURSES_H" \
./configure --prefix=/usr/local/mysql
@end example
...
...
@@ -7668,7 +7668,7 @@ CC=ccc CFLAGS="-fast" CXX=cxx CXXFLAGS="-fast -noexceptions -nortti" ./configure
If you want to use egcs the following configure line worked for us:
@example
CFLAGS="-O
6 -fomit-frame-pointer" CXX=gcc CXXFLAGS="-O6
-fomit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local/mysql --disable-shared
CFLAGS="-O
3 -fomit-frame-pointer" CXX=gcc CXXFLAGS="-O3
-fomit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local/mysql --disable-shared
@end example
Some known problems when running @strong{MySQL} on Linux-Alpha:
...
...
@@ -8484,7 +8484,7 @@ the definition in @file{pthread.h}. Here's the diff:
After this, the following configure line should work:
@example
CFLAGS="-fomit-frame-pointer -O
6 -fpic" CXX=gcc CXXFLAGS="-felide-constructors -fno-exceptions -fno-rtti -O6
" ./configure --prefix=/usr/local/mysql --disable-shared
CFLAGS="-fomit-frame-pointer -O
3 -fpic" CXX=gcc CXXFLAGS="-felide-constructors -fno-exceptions -fno-rtti -O3
" ./configure --prefix=/usr/local/mysql --disable-shared
@end example
Here is some information that a HPUX Version 11.x user sent us about compiling
...
...
@@ -9217,19 +9217,19 @@ and are configured with the following compilers and options:
@code{CC=gcc CXX=gcc CXXFLAGS="-O3 -felide-constructors" ./configure --prefix=/usr/local/mysql --disable-shared --with-extra-charsets=complex --enable-assembler}
@item SunOS 5.5.1 sun4u with @code{egcs} 1.0.3a
@code{CC=gcc CFLAGS="-O
6 -fomit-frame-pointer" CXX=gcc CXXFLAGS="-O6
-fomit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local/mysql --with-low-memory --with-extra-charsets=complex}
@code{CC=gcc CFLAGS="-O
3 -fomit-frame-pointer" CXX=gcc CXXFLAGS="-O3
-fomit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local/mysql --with-low-memory --with-extra-charsets=complex}
@item SunOS 5.6 sun4u with @code{egcs} 2.90.27
@code{CC=gcc CFLAGS="-O
6 -fomit-frame-pointer" CXX=gcc CXXFLAGS="-O6
-fomit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local/mysql --with-low-memory --with-extra-charsets=complex}
@code{CC=gcc CFLAGS="-O
3 -fomit-frame-pointer" CXX=gcc CXXFLAGS="-O3
-fomit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local/mysql --with-low-memory --with-extra-charsets=complex}
@item SunOS 5.6 i86pc with @code{gcc} 2.8.1
@code{CC=gcc CXX=gcc CXXFLAGS=-O3 ./configure --prefix=/usr/local/mysql --with-low-memory --with-extra-charsets=complex}
@item Linux 2.0.33 i386 with @code{pgcc} 2.90.29 (@code{egcs} 1.0.3a)
@code{CFLAGS="-O
6 -mpentium -mstack-align-double -fomit-frame-pointer" CXX=gcc CXXFLAGS="-O6
-mpentium -mstack-align-double -fomit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local/mysql --enable-assembler --with-mysqld-ldflags=-all-static --with-extra-charsets=complex}
@code{CFLAGS="-O
3 -mpentium -mstack-align-double -fomit-frame-pointer" CXX=gcc CXXFLAGS="-O3
-mpentium -mstack-align-double -fomit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local/mysql --enable-assembler --with-mysqld-ldflags=-all-static --with-extra-charsets=complex}
@item Linux 2.2.x with x686 with @code{gcc} 2.95.2
@code{CFLAGS="-O
6 -mpentiumpro -fomit-frame-pointer" CXX=gcc CXXFLAGS="-O6
-mpentiumpro -fomit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local/mysql --enable-assembler --with-mysqld-ldflags=-all-static --disable-shared --with-extra-charset=complex}
@code{CFLAGS="-O
3 -mpentiumpro -fomit-frame-pointer" CXX=gcc CXXFLAGS="-O3
-mpentiumpro -fomit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local/mysql --enable-assembler --with-mysqld-ldflags=-all-static --disable-shared --with-extra-charset=complex}
@item SCO 3.2v5.0.4 i386 with @code{gcc} 2.7-95q4
@code{CC=gcc CXX=gcc CXXFLAGS=-O3 ./configure --prefix=/usr/local/mysql --with-extra-charsets=complex}
...
...
@@ -28250,7 +28250,7 @@ other operating systems and workloads.
You get the fastest executable when you link with @code{-static}.
On Linux, you will get the fastest code when compiling with @code{pgcc}
and @code{-O
6
}. To compile @file{sql_yacc.cc} with these options, you
and @code{-O
3
}. To compile @file{sql_yacc.cc} with these options, you
need about 200M memory because @code{gcc/pgcc} needs a lot of memory to
make all functions inline. You should also set @code{CXX=gcc} when
configuring @strong{MySQL} to avoid inclusion of the @code{libstdc++}
...
...
@@ -48577,7 +48577,7 @@ lists the @code{mysqld} version as @code{mysql ... -debug} in this case.
If you are using gcc or egcs, the recommended configure line is:
@example
CC=gcc CFLAGS="-O
6" CXX=gcc CXXFLAGS="-O6
-felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local/mysql --with-debug --with-extra-charsets=complex
CC=gcc CFLAGS="-O
2" CXX=gcc CXXFLAGS="-O2
-felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local/mysql --with-debug --with-extra-charsets=complex
@end example
This will avoid problems with the @code{libstdc++} library and with C++
configure.in
View file @
bc7731c0
...
...
@@ -691,7 +691,7 @@ int main()
# Some system specific hacks
#
MAX_C_OPTIMIZE
=
"-O
6
"
MAX_C_OPTIMIZE
=
"-O
3
"
case
$SYSTEM_TYPE
in
*
solaris2.7
*
)
...
...
@@ -1333,7 +1333,7 @@ AC_CHECK_FUNCS(alarm bmove \
sigset sigthreadmask pthread_sigmask pthread_setprio pthread_setprio_np \
pthread_setschedparam pthread_attr_setprio pthread_attr_setschedparam \
pthread_attr_create pthread_getsequence_np pthread_attr_setstacksize \
pthread_condattr_create rwlock_init pthread_rwlock_rdlock \
pthread_condattr_create rwlock_init pthread_rwlock_rdlock
pthread_yield
\
dlopen dlerror fchmod getpass getpassphrase initgroups mlockall)
# Sanity check: We chould not have any fseeko symbol unless
...
...
innobase/os/os0thread.c
View file @
bc7731c0
...
...
@@ -135,10 +135,12 @@ void
os_thread_yield
(
void
)
/*=================*/
{
#if
def __WIN__
#if
defined(__WIN__)
Sleep
(
0
);
#el
se
#el
if defined(HAVE_PTHREAD_YIELD)
pthread_yield
();
#else
os_thread_sleep
(
0
);
#endif
}
...
...
scripts/safe_mysqld.sh
View file @
bc7731c0
...
...
@@ -52,7 +52,15 @@ parse_arguments() {
--core-file-size
=
*
)
core_file_size
=
`
echo
"
$arg
"
|
sed
-e
"s;--core_file_size=;;"
`
;;
--timezone
=
*
)
TZ
=
`
echo
"
$arg
"
|
sed
-e
"s;--timezone=;;"
`
;
export
TZ
;
;;
--mysqld
=
*
)
MYSQLD
=
`
echo
"
$arg
"
|
sed
-e
"s;--mysqld=;;"
`
;;
--mysqld-version
=
*
)
MYSQLD
=
mysqld-
`
echo
"
$arg
"
|
sed
-e
"s;--mysqld-version=;;"
`
;;
--mysqld-version
=
*
)
tmp
=
`
echo
"
$arg
"
|
sed
-e
"s;--mysqld-version=;;"
`
if
test
-n
"
$tmp
"
then
MYSQLD
=
"mysqld-
$tmp
"
else
MYSQLD
=
"mysqld"
fi
;;
*
)
if
test
-n
"
$pick_args
"
then
...
...
@@ -73,7 +81,7 @@ then
MY_BASEDIR_VERSION
=
$MY_PWD
# Where bin, share and data are
ledir
=
$MY_BASEDIR_VERSION
/bin
# Where mysqld is
DATADIR
=
$MY_BASEDIR_VERSION
/data
if
test
-z
"defaults"
if
test
-z
"
$
defaults
"
then
defaults
=
"--defaults-extra-file=
$MY_BASEDIR_VERSION
/data/my.cnf"
fi
...
...
sql/gen_lex_hash.cc
View file @
bc7731c0
...
...
@@ -472,7 +472,7 @@ int main(int argc,char **argv)
int
error
;
MY_INIT
(
argv
[
0
]);
start_value
=
4997167L
;
best_t1
=
4533271L
;
best_t2
=
7512314L
;
best_type
=
4
;
start_value
=
323040L
;
best_t1
=
8119093L
;
best_t2
=
4787828L
;
best_type
=
4
;
/* mode=4651 add=3 type: 0 */
if
(
get_options
(
argc
,(
char
**
)
argv
))
exit
(
1
);
...
...
support-files/mysql.spec.sh
View file @
bc7731c0
...
...
@@ -151,11 +151,11 @@ BuildMySQL() {
# support assembler speedups.
sh
-c
"PATH=
\"
${
MYSQL_BUILD_PATH
:-
/bin
:/usr/bin
}
\"
\
CC=
\"
${
MYSQL_BUILD_CC
:-
egcs
}
\"
\
CFLAGS=
\"
${
MYSQL_BUILD_CFLAGS
:-
-O
6 -fno-omit-frame-pointer
}
\"
\
CFLAGS=
\"
${
MYSQL_BUILD_CFLAGS
:-
-O
3
}
\"
\
CXX=
\"
${
MYSQL_BUILD_CXX
:-
egcs
}
\"
\
CXXFLAGS=
\"
${
MYSQL_BUILD_CXXFLAGS
:-
-O
6
\
CXXFLAGS=
\"
${
MYSQL_BUILD_CXXFLAGS
:-
-O
3
\
-felide-constructors -fno-exceptions -fno-rtti \
-fno-omit-frame-pointer
}
\"
\
}
\"
\
./configure
\
$*
\
--enable-assembler
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment