https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105608
Rainer Orth <ro at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ro at gcc dot gnu.org --- Comment #10 from Rainer Orth <ro at gcc dot gnu.org> --- Something very weird is going on here: the new g++.dg/pch/line-map-3.C test FAILs on i386-pc-solaris2.11 only: XPASS: g++.dg/pch/line-map-3.C -O2 -I. -Dwith_PCH (test for bogus messages, line 2) +XPASS: g++.dg/pch/line-map-3.C -O2 -I. -Dwith_PCH at line 17 (test for bogus messages, line 2) +FAIL: g++.dg/pch/line-map-3.C -O2 -I. -Dwith_PCH (test for excess errors) +XPASS: g++.dg/pch/line-map-3.C -O2 -g -I. -Dwith_PCH (test for bogus messages, line 2) +XPASS: g++.dg/pch/line-map-3.C -O2 -g -I. -Dwith_PCH at line 17 (test for bogus messages, line 2) +FAIL: g++.dg/pch/line-map-3.C -O2 -g -I. -Dwith_PCH (test for excess errors) +XPASS: g++.dg/pch/line-map-3.C -g -I. -Dwith_PCH (test for bogus messages, line 2) +XPASS: g++.dg/pch/line-map-3.C -g -I. -Dwith_PCH at line 17 (test for bogus messages, line 2) +FAIL: g++.dg/pch/line-map-3.C -g -I. -Dwith_PCH (test for excess errors) both 32 and 64-bit. The excess error is Excess errors: /vol/gcc/src/hg/master/local/gcc/testsuite/g++.dg/pch/line-map-3.C:3:9: error: macro "UNUSED_MACRO" is not used [-Werror=unused-macros] /vol/gcc/src/hg/master/local/gcc/testsuite/g++.dg/pch/line-map-3.C:3:9: error: macro "with_PCH" is not used [-Werror=unused-macros] When checking sparc-sun-solaris2.11 for comparison, the output is different: ./line-map-3.H:2: error: macro "UNUSED_MACRO" is not used [-Werror=unused-macros] ./line-map-3.H:2: error: macro "with_PCH" is not used [-Werror=unused-macros] This is totally strange since the setup of both systems is identical; they're even building from a shared source tree.