[Mesa-dev] [PATCH 2/2] mesa: Add -fno-math-errno -fno-trapping-math to CXXFLAGS.

Marek Olšák maraeo at gmail.com
Fri Jul 1 18:38:13 UTC 2016


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Fri, Jul 1, 2016 at 12:59 AM, Matt Turner <mattst88 at gmail.com> wrote:
> 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
> ---
>  configure.ac | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/configure.ac b/configure.ac
> index 95cfc36..e8cd97f 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -339,6 +339,9 @@ if test "x$GXX" = xyes; then
>
>      # Restore CXXFLAGS; VISIBILITY_CXXFLAGS are added to it where needed.
>      CXXFLAGS=$save_CXXFLAGS
> +
> +    # 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])
> --
> 2.7.3
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list