In some cases, __attribute__((__target__(...))) causes spurious warnings about -fpic not being supported on the target. It seems at some point flag_pic may be reset, even though the option is not passed via the command line.
These spurious warnings cause testsuite/gcc.target/i386/funcspec-4.c and funcspec-8.c to fail, while other tests succeed even with the warning. -- Summary: __attribute__((__target__)) resets pic flag causing spurious warnings Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dougsemler at gmail dot com GCC target triplet: x86_64-w64-mingw32 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44161