https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123135
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Rainer Orth <[email protected]>: https://gcc.gnu.org/g:64829298399c31d380b2c9f10d4cae640e4f4b2b commit r16-8268-g64829298399c31d380b2c9f10d4cae640e4f4b2b Author: Rainer Orth <[email protected]> Date: Tue Mar 24 16:43:16 2026 +0100 testsuite: Fix g++.dg/warn/Wstringop-overflow-6.C on Solaris [PR123135] The g++.dg/warn/Wstringop-overflow-6.C test FAILs on Solaris: FAIL: g++.dg/warn/Wstringop-overflow-6.C -std=gnu++11 (test for excess errors) with Excess errors: /usr/include/iso/math_c99.h:361: warning: ignoring '#pragma does_not_read_global_data ' [-Wunknown-pragmas] and /usr/include/errno.h:93: warning: ignoring '#pragma no_side_effect ' [-Wunknown-pragmas] Those pragmas are specific to the Studio compilers but unrelated to the testcase, so this patch disables the warnings on Solaris. Tested on i386-pc-solaris2.11, sparc-sun-solaris2.11, and x86_64-pc-linux-gnu. 2026-03-06 Rainer Orth <[email protected]> gcc/testsuite: PR testsuite/123135 * g++.dg/warn/Wstringop-overflow-6.C (dg-additional-options): Add -Wno-unknown-pragmas on Solaris.
