Don't use -fno-strict-aliasing for optimized build
There doesn't seem to be any need for it, the library compiles fine without it and the few warnings generated with -Wstrict-aliasing=2 are harmless (i.e. the strict aliasing rule is not really broken).
This commit is contained in:
2
configure
vendored
2
configure
vendored
@@ -32915,7 +32915,7 @@ else
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if test "$GCC" = yes ; then
|
if test "$GCC" = yes ; then
|
||||||
OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
|
OPTIMISE_CFLAGS="-O2"
|
||||||
else
|
else
|
||||||
OPTIMISE_CFLAGS="-O"
|
OPTIMISE_CFLAGS="-O"
|
||||||
fi
|
fi
|
||||||
|
@@ -5101,10 +5101,7 @@ else
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if test "$GCC" = yes ; then
|
if test "$GCC" = yes ; then
|
||||||
dnl Switch on optimisation but keep strict-aliasing off for
|
OPTIMISE_CFLAGS="-O2"
|
||||||
dnl now (see -fstrict-aliasing in the gcc manual). When it is
|
|
||||||
dnl switched back on consider using -Wstrict-aliasing=2.
|
|
||||||
OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
|
|
||||||
else
|
else
|
||||||
OPTIMISE_CFLAGS="-O"
|
OPTIMISE_CFLAGS="-O"
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user