Commit 0f59a341 authored by Daniel Veillard's avatar Daniel Veillard
Browse files

too bleeding edge to be useful with gcc-3.2 and 3.3, Daniel

parent 577d145b
......@@ -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 <arjanv@redhat.com>
# 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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment