[Bug other/58944] New: [4.9 Regression] bogus -Wunused-macros warnings when compiling Libreoffice
octoploid at yandex dot com
gcc-bugzilla@gcc.gnu.org
Thu Oct 31 18:24:00 GMT 2013
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.
More information about the Gcc-bugs
mailing list