gdb, btrace: Fix rn-dl-bind.exp for new icx remark.
authorFelix Willgerodt <felix.willgerodt@intel.com>
Thu, 10 Nov 2022 15:22:46 +0000 (16:22 +0100)
committerFelix Willgerodt <felix.willgerodt@intel.com>
Fri, 11 Nov 2022 12:29:42 +0000 (13:29 +0100)
When running the test with the latest Intel compiler:

Running gdb/gdb/testsuite/gdb.btrace/rn-dl-bind.exp ...
gdb compile failed, icpx: warning: treating 'c' input as 'c++' when
in C++ mode, this behavior is deprecated [-Wdeprecated]

The test doesn't seem to test something specifically for C++,
so I removed the C++ compilation option. Alternatively we could rename
rn-dl-bind.exp.c to rn-dl-bind.exp.cc.

Signed-off-by: Felix Willgerodt <felix.willgerodt@intel.com>
gdb/testsuite/gdb.btrace/rn-dl-bind.exp

index d78f5654131d887b2d481c347d88acdb27756ef0..eb486b33124d4378461122abf43a03005f35573b 100644 (file)
@@ -28,7 +28,7 @@ if { [skip_btrace_tests] } {
 
 standard_testfile
 if [prepare_for_testing "failed to prepare" $testfile $srcfile \
-       {c++ debug ldflags=-Wl,-z,lazy}] {
+       {debug ldflags=-Wl,-z,lazy}] {
     return -1
 }