[Mesa-dev] [PATCH 0/2] Use target attribute for architecture optimizations

Marc Dietrich marvin24 at gmx.de
Fri Jan 16 04:42:53 PST 2015


The GCC specific target function attribute or pragma can be used to enable
architecture depended optimisation options (e.g. SSE) directly in source files
instead of specifing them on the compiler command line. This is useful when
linking files with different compiler options which happens when using LTO.

Marc Dietrich (2):
  Add target attribute check to configure
  Make architecture specific compiler flags conditional for vector
    optimizations

 configure.ac                          | 2 ++
 m4/ax_gcc_func_attribute.m4           | 9 +++++++++
 src/mesa/Makefile.am                  | 2 ++
 src/mesa/main/sse_minmax.c            | 1 +
 src/mesa/main/streaming-load-memcpy.c | 1 +
 5 files changed, 15 insertions(+)

-- 
2.2.1



More information about the mesa-dev mailing list