Am Freitag, 16. Januar 2015, 13:42:53 schrieb Marc Dietrich:
> 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.

no comments?

btw. I tested this series with gcc 4.8/4.9 and clang (3.6). To use lto, you 
have to disable tls, e.g. --disable-gnu-tls. There is some strange 
interference with tls/asm code/lto I'm not able to resolve to make tls 
working.

To test LTO, you have pass special flags to configure:

LTO_GCC="-flto=4 -fuse-ld=gold -fuse-linker-plugin"

CFLAGS="$LTO_GCC"
CXXFLAGS="$LTO_GCC"
LDFLAGS="$LTO_GCC"
CC="gcc-4.9"
CXX="g++-4.9"
LD="ld.gold"
AR="gcc-ar-4.9"
NM="gcc-nm-4.9"
RANLIB="gcc-ranlib-4.9"

Marc

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to