Clang fails to compile two testcases with the following error:
warning: equality comparison result unused [-Wunused-comparison]
This prevents the following testcases from executing:
gdb.cp/koenig.exp
gdb.cp/operator.exp
This commit builds those testcases with -Wno-unused-comparison, to
avoid the failure. Note that this commit reveals a new failure,
"FAIL: gdb.cp/koenig.exp: p foo (p_union)" when the testsuite is
compiled using clang.
gdb/testsuite/ChangeLog:
* gdb.cp/koenig.exp (prepare_for_testing): Add
additional_flags=-Wno-unused-comparison.
* gdb.cp/operator.exp (prepare_for_testing): Likewise.
+2020-05-29 Gary Benson <gbenson@redhat.com>
+
+ * gdb.cp/koenig.exp (prepare_for_testing): Add
+ additional_flags=-Wno-unused-comparison.
+ * gdb.cp/operator.exp (prepare_for_testing): Likewise.
+
2020-05-28 Gary Benson <gbenson@redhat.com>
* gdb.base/sigaltstack.c (catcher): Add default case to switch
standard_testfile .cc
-if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug c++}] } {
+if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
+ {debug c++ additional_flags=-Wno-unused-comparison}] } {
return -1
}
standard_testfile .cc
-if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug c++}] } {
+if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
+ {debug c++ additional_flags=-Wno-unused-comparison}] } {
return -1
}