-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
too bleeding edge to be useful with gcc-3.2 and 3.3, Daniel
- Loading branch information
Daniel Veillard
committed
Jun 27, 2004
1 parent
577d145
commit 0f59a34
Showing
1 changed file
with
13 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,24 +62,25 @@ at parse time or later once the document has been modified. | |
%build | ||
# | ||
# try to use compiler profiling, based on Arjan van de Ven <[email protected]> | ||
# initial test spec | ||
# initial test spec. This really doesn't work okay for most tests done. | ||
# | ||
GCC_VERSION=`gcc --version | grep "^gcc" | awk '{ print $3 }' | sed 's+\([0-9]\)\.\([0-9]\)\..*+\1\2+'` | ||
if [ $GCC_VERSION -eq 32 ] | ||
then | ||
PROF_GEN='-fprofile-arcs' | ||
PROF_USE='-fbranch-probabilities' | ||
else if [ $GCC_VERSION -eq 33 ] | ||
then | ||
PROF_GEN='-fprofile-arcs' | ||
PROF_USE='-fbranch-probabilities -ftracer' | ||
else if [ $GCC_VERSION -ge 34 ] | ||
#if [ $GCC_VERSION -eq 32 ] | ||
#then | ||
# PROF_GEN='-fprofile-arcs' | ||
# PROF_USE='-fbranch-probabilities' | ||
#else if [ $GCC_VERSION -eq 33 ] | ||
#then | ||
# PROF_GEN='-fprofile-arcs' | ||
# PROF_USE='-fbranch-probabilities -ftracer' | ||
#else | ||
if [ $GCC_VERSION -ge 34 ] | ||
then | ||
PROF_GEN='-fprofile-generate' | ||
PROF_USE='-fprofile-use' | ||
fi | ||
fi | ||
fi | ||
#fi | ||
#fi | ||
|
||
if [ "$PROF_GEN" != "" ] | ||
then | ||
|