Mesa (master): mesa: Add -fno-math-errno -fno-trapping-math to CXXFLAGS.
Matt Turner
mattst88 at kemper.freedesktop.org
Thu Jul 21 17:44:14 UTC 2016
Module: Mesa
Branch: master
Commit: 8c8c3f859e9eb8fde014f5837f1adb8b5481be44
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8c8c3f859e9eb8fde014f5837f1adb8b5481be44
Author: Matt Turner <mattst88 at gmail.com>
Date: Thu Jun 30 15:02:49 2016 -0700
mesa: Add -fno-math-errno -fno-trapping-math to CXXFLAGS.
Not sure why I forgot to add them to CXXFLAGS in commit f55c408067 or
commit 875458b778. Cuts about 1k of .text.
text data bss dec hex filename
5806354 287816 29384 6123554 5d7022 i965_dri.so before
5805497 287744 29384 6122625 5d6c81 i965_dri.so after
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
---
configure.ac | 3 +++
1 file changed, 3 insertions(+)
diff --git a/configure.ac b/configure.ac
index accd1a1..bbc3af4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -344,6 +344,9 @@ if test "x$GXX" = xyes; then
# Work around aliasing bugs - developers should comment this out
CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
+
+ # We don't want floating-point math functions to set errno or trap
+ CXXFLAGS="$CXXFLAGS -fno-math-errno -fno-trapping-math"
fi
AC_SUBST([MSVC2013_COMPAT_CFLAGS])
More information about the mesa-commit
mailing list