http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54344
Julian Taylor <jtaylor.debian at googlemail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jtaylor.debian at googlemail dot c | |om --- Comment #1 from Julian Taylor <jtaylor.debian at googlemail dot com> --- you can work around the issue by putting the attributes only in the declarations not the definitions and the declaration must be placed before all definitions. int printf_avx(const char *restrict format, ...) __attribute__ ((__target__ ("arch=corei7-avx", "tune=corei7-avx"))) ; int printf_noavx(const char *restrict format, ...) __attribute__ ((__target__ ("arch=atom", "tune=atom"))) ; int printf_avx(const char *restrict format, ...) { va_list ap; ...