http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58944
Bug ID: 58944 Summary: [4.9 Regression] bogus -Wunused-macros warnings when compiling Libreoffice Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: octoploid at yandex dot com markus@x4 tmp % cat test.ii #pragma GCC push_options #pragma GCC target("xsaveopt") void fn1(void) {} #pragma GCC pop_options markus@x4 tmp % gcc -Wunused-macros -march=native -c test.ii test.ii:4:9: warning: macro "__code_model_small__" is not used [-Wunused-macros] #pragma GCC pop_options ^ test.ii:4:9: warning: macro "__XSAVE__" is not used [-Wunused-macros] test.ii:4:9: warning: macro "__XSAVEOPT__" is not used [-Wunused-macros] test.ii:4:24: warning: macro "__amdfam10__" is not used [-Wunused-macros] #pragma GCC pop_options ^ test.ii:4:24: warning: macro "__amdfam10" is not used [-Wunused-macros] test.ii:4:24: warning: macro "__code_model_small__" is not used [-Wunused-macros] test.ii:4:24: warning: macro "__tune_amdfam10__" is not used [-Wunused-macros] markus@x4 tmp % The "__tune_amdfam10__" and "__amdfam10" (and maybe "__code_model_small__") warnings look bogus. I've noticed this issue while compiling Libreoffice.