gdb, testsuite: Enable testcases that suppress specific warnings, for icc/icx.
authorFelix Willgerodt <felix.willgerodt@intel.com>
Mon, 18 Jul 2022 08:55:18 +0000 (10:55 +0200)
committerFelix Willgerodt <felix.willgerodt@intel.com>
Fri, 19 Aug 2022 09:23:59 +0000 (11:23 +0200)
commit6232b8434815919cea8b0f7dca4652567ccb6c84
treee7487e570c4fad9628b01f3bd78b7f56017c36b4
parent84205e65087c91601e676c8a269d7f3e85da9824
gdb, testsuite: Enable testcases that suppress specific warnings, for icc/icx.

To cite gdb.exp:
Some C/C++ testcases unconditionally pass -Wno-foo as additional
options to disable some warning.  That is OK with GCC, because
by design, GCC accepts any -Wno-foo option, even if it doesn't
support -Wfoo.  Clang however warns about unknown -Wno-foo by
default, unless you pass -Wno-unknown-warning-option as well.
We do that here, so that individual testcases don't have to
worry about it.

This patch adds the same option that already exists for clang for icx and
adds the equivalent icc option.
gdb/testsuite/lib/gdb.exp