On 11/21/2011 09:23 AM, Rainer Orth wrote: > Richard Henderson <r...@redhat.com> writes: > >> This is only ok if the compiler and library are build with default options. >> If you use --with-arch=corei7-avx then we may well use AVX insns all through >> the library, not just in the one interface that will only be used if the >> user of the library is using avx. >> >> Can you auto-foo this based on CC+CFLAGS? E.g. compile-time tests for the >> various __SSE__ / __AVX__ macros? > > Probably, but it occured to me that it might be easier to just apply the > mapfile to x86_avx.o unconditionally before linking libitm.la.
Possibly. Though you'd want to do the same thing for x86_sse.o too. Again, that file is only used if the main program uses SSE. r~