[Mesa-dev] [PATCH] Remove -ffast-math from default CFLAGS

Egon Ashrafinia egon.mageia at googlemail.com
Wed Jan 11 16:18:38 PST 2012


2012/1/12 Matt Turner <mattst88 at gmail.com>

> Fixes glsl-const-folding-01. inversesqrt(1.0) != 1.0 was evaluating as
> true.
>
> Signed-off-by: Matt Turner <mattst88 at gmail.com>
> ---
> I think softpipe also had some problems recently due to -ffast-math?
>
>  configure.ac |    3 ---
>  1 files changed, 0 insertions(+), 3 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index 3f8b6b6..7461f28 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -168,9 +168,6 @@ esac
>  dnl Add flags for gcc and g++
>  if test "x$GCC" = xyes; then
>     CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -std=c99"
> -    if test "x$CLANG" = "xno"; then
> -       CFLAGS="$CFLAGS -ffast-math"
> -    fi
>
>     # Enable -fvisibility=hidden if using a gcc that supports it
>     save_CFLAGS="$CFLAGS"
> --
> 1.7.3.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>

+1

I we are going to change this, then please also do so in the currend ( new
opened ) 8.0 branch as it will fix bugs.

Greetings
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20120112/24746039/attachment.html>


More information about the mesa-dev mailing list