aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorFelix Willgerodt <felix.willgerodt@intel.com>2022-07-18 10:55:18 +0200
committerFelix Willgerodt <felix.willgerodt@intel.com>2022-08-19 11:23:59 +0200
commit6232b8434815919cea8b0f7dca4652567ccb6c84 (patch)
treee7487e570c4fad9628b01f3bd78b7f56017c36b4 /gdb
parent84205e65087c91601e676c8a269d7f3e85da9824 (diff)
downloadfsf-binutils-gdb-6232b8434815919cea8b0f7dca4652567ccb6c84.zip
fsf-binutils-gdb-6232b8434815919cea8b0f7dca4652567ccb6c84.tar.gz
fsf-binutils-gdb-6232b8434815919cea8b0f7dca4652567ccb6c84.tar.bz2
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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/lib/gdb.exp10
1 files changed, 7 insertions, 3 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index ef34983..17523f8 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -4489,9 +4489,13 @@ proc gdb_compile {source dest type options} {
&& [lsearch -exact $options rust] == -1
&& [lsearch -exact $options ada] == -1
&& [lsearch -exact $options f90] == -1
- && [lsearch -exact $options go] == -1
- && [test_compiler_info "clang-*"]} {
- lappend new_options "additional_flags=-Wno-unknown-warning-option"
+ && [lsearch -exact $options go] == -1} {
+ if {[test_compiler_info "clang-*"] || [test_compiler_info "icx-*"]} {
+ lappend new_options "additional_flags=-Wno-unknown-warning-option"
+ } elseif {[test_compiler_info "icc-*"]} {
+ # This is the equivalent for the icc compiler.
+ lappend new_options "additional_flags=-diag-disable=10148"
+ }
}
# Treating .c input files as C++ is deprecated in Clang, so