diff options
-rw-r--r-- | gdb/testsuite/gdb.compile/compile-cplus-anonymous.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.compile/compile-cplus-array-decay.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.compile/compile-cplus-inherit.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.compile/compile-cplus-member.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.compile/compile-cplus-method.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.compile/compile-cplus-namespace.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.compile/compile-cplus-nested.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.compile/compile-cplus-print.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.compile/compile-cplus-virtual.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.compile/compile-cplus.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.compile/compile-ifunc.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.compile/compile-ops.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.compile/compile-print.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.compile/compile-setjmp.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.compile/compile-tls.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.compile/compile.exp | 6 |
16 files changed, 32 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.compile/compile-cplus-anonymous.exp b/gdb/testsuite/gdb.compile/compile-cplus-anonymous.exp index 26cfab5..b400134 100644 --- a/gdb/testsuite/gdb.compile/compile-cplus-anonymous.exp +++ b/gdb/testsuite/gdb.compile/compile-cplus-anonymous.exp @@ -21,6 +21,8 @@ standard_testfile .cc require allow_cplus_tests +require is_c_compiler_gcc + if {[prepare_for_testing $testfile $testfile $srcfile \ {debug nowarnings c++}]} { return -1 diff --git a/gdb/testsuite/gdb.compile/compile-cplus-array-decay.exp b/gdb/testsuite/gdb.compile/compile-cplus-array-decay.exp index 0596220..4ab6928 100644 --- a/gdb/testsuite/gdb.compile/compile-cplus-array-decay.exp +++ b/gdb/testsuite/gdb.compile/compile-cplus-array-decay.exp @@ -21,6 +21,8 @@ standard_testfile .cc require allow_cplus_tests +require is_c_compiler_gcc + if {[prepare_for_testing $testfile $testfile $srcfile \ {debug nowarnings c++ additional_flags=-std=c++11}]} { return -1 diff --git a/gdb/testsuite/gdb.compile/compile-cplus-inherit.exp b/gdb/testsuite/gdb.compile/compile-cplus-inherit.exp index a6cfeb6..76d80bb 100644 --- a/gdb/testsuite/gdb.compile/compile-cplus-inherit.exp +++ b/gdb/testsuite/gdb.compile/compile-cplus-inherit.exp @@ -21,6 +21,8 @@ standard_testfile .cc require allow_cplus_tests +require is_c_compiler_gcc + if {[prepare_for_testing $testfile $testfile $srcfile \ {debug nowarnings c++}]} { return -1 diff --git a/gdb/testsuite/gdb.compile/compile-cplus-member.exp b/gdb/testsuite/gdb.compile/compile-cplus-member.exp index da9418e..9fccfd8 100644 --- a/gdb/testsuite/gdb.compile/compile-cplus-member.exp +++ b/gdb/testsuite/gdb.compile/compile-cplus-member.exp @@ -21,6 +21,8 @@ standard_testfile .cc require allow_cplus_tests +require is_c_compiler_gcc + if {[prepare_for_testing $testfile $testfile $srcfile \ {debug nowarnings c++}]} { return -1 diff --git a/gdb/testsuite/gdb.compile/compile-cplus-method.exp b/gdb/testsuite/gdb.compile/compile-cplus-method.exp index 994e00d..8448163 100644 --- a/gdb/testsuite/gdb.compile/compile-cplus-method.exp +++ b/gdb/testsuite/gdb.compile/compile-cplus-method.exp @@ -21,6 +21,8 @@ standard_testfile .cc require allow_cplus_tests +require is_c_compiler_gcc + if {[prepare_for_testing $testfile $testfile $srcfile \ {debug nowarnings c++}]} { return -1 diff --git a/gdb/testsuite/gdb.compile/compile-cplus-namespace.exp b/gdb/testsuite/gdb.compile/compile-cplus-namespace.exp index 65cc3ac..102d416 100644 --- a/gdb/testsuite/gdb.compile/compile-cplus-namespace.exp +++ b/gdb/testsuite/gdb.compile/compile-cplus-namespace.exp @@ -21,6 +21,8 @@ standard_testfile .cc require allow_cplus_tests +require is_c_compiler_gcc + if {[prepare_for_testing $testfile $testfile $srcfile \ {debug nowarnings c++}]} { return -1 diff --git a/gdb/testsuite/gdb.compile/compile-cplus-nested.exp b/gdb/testsuite/gdb.compile/compile-cplus-nested.exp index 86fddb3..124c278 100644 --- a/gdb/testsuite/gdb.compile/compile-cplus-nested.exp +++ b/gdb/testsuite/gdb.compile/compile-cplus-nested.exp @@ -21,6 +21,8 @@ standard_testfile .cc require allow_cplus_tests +require is_c_compiler_gcc + if {[prepare_for_testing $testfile $testfile $srcfile \ {debug nowarnings c++}]} { return -1 diff --git a/gdb/testsuite/gdb.compile/compile-cplus-print.exp b/gdb/testsuite/gdb.compile/compile-cplus-print.exp index a30ad2a..587f30e 100644 --- a/gdb/testsuite/gdb.compile/compile-cplus-print.exp +++ b/gdb/testsuite/gdb.compile/compile-cplus-print.exp @@ -17,6 +17,8 @@ load_lib compile-support.exp standard_testfile +require is_c_compiler_gcc + set options {} if [test_compiler_info gcc*] { lappend options additional_flags=-g3 diff --git a/gdb/testsuite/gdb.compile/compile-cplus-virtual.exp b/gdb/testsuite/gdb.compile/compile-cplus-virtual.exp index f50e385..92c88fc 100644 --- a/gdb/testsuite/gdb.compile/compile-cplus-virtual.exp +++ b/gdb/testsuite/gdb.compile/compile-cplus-virtual.exp @@ -21,6 +21,8 @@ standard_testfile .cc require allow_cplus_tests +require is_c_compiler_gcc + if {[prepare_for_testing $testfile $testfile $srcfile \ {debug nowarnings c++}]} { return -1 diff --git a/gdb/testsuite/gdb.compile/compile-cplus.exp b/gdb/testsuite/gdb.compile/compile-cplus.exp index 4e887da..c8a40ad 100644 --- a/gdb/testsuite/gdb.compile/compile-cplus.exp +++ b/gdb/testsuite/gdb.compile/compile-cplus.exp @@ -17,6 +17,8 @@ load_lib compile-support.exp standard_testfile .c compile-shlib.c compile-constvar.S compile-nodebug.c +require is_c_compiler_gcc + set options {} if { [test_compiler_info gcc*] || [test_compiler_info clang*] } { lappend options additional_flags=-g3 diff --git a/gdb/testsuite/gdb.compile/compile-ifunc.exp b/gdb/testsuite/gdb.compile/compile-ifunc.exp index 990d35a..c50228d 100644 --- a/gdb/testsuite/gdb.compile/compile-ifunc.exp +++ b/gdb/testsuite/gdb.compile/compile-ifunc.exp @@ -19,6 +19,8 @@ require allow_ifunc_tests standard_testfile +require is_c_compiler_gcc + set flags "" if [test_compiler_info gcc*] { set flags additional_flags=-Wno-attribute-alias diff --git a/gdb/testsuite/gdb.compile/compile-ops.exp b/gdb/testsuite/gdb.compile/compile-ops.exp index 3935d47..bbc221d 100644 --- a/gdb/testsuite/gdb.compile/compile-ops.exp +++ b/gdb/testsuite/gdb.compile/compile-ops.exp @@ -22,6 +22,8 @@ load_lib dwarf.exp # This test can only be run on targets which support DWARF-2 and use gas. require dwarf2_support +require is_c_compiler_gcc + standard_testfile .c -dbg.S # diff --git a/gdb/testsuite/gdb.compile/compile-print.exp b/gdb/testsuite/gdb.compile/compile-print.exp index 33f1949..bbc68a0 100644 --- a/gdb/testsuite/gdb.compile/compile-print.exp +++ b/gdb/testsuite/gdb.compile/compile-print.exp @@ -17,6 +17,8 @@ load_lib compile-support.exp standard_testfile +require is_c_compiler_gcc + if { [prepare_for_testing "failed to prepare" "$testfile"] } { return -1 } diff --git a/gdb/testsuite/gdb.compile/compile-setjmp.exp b/gdb/testsuite/gdb.compile/compile-setjmp.exp index 3fc3b6d..eed31a7 100644 --- a/gdb/testsuite/gdb.compile/compile-setjmp.exp +++ b/gdb/testsuite/gdb.compile/compile-setjmp.exp @@ -17,6 +17,8 @@ load_lib compile-support.exp standard_testfile .c compile-setjmp-mod.c +require is_c_compiler_gcc + if { [prepare_for_testing "failed to prepare" $testfile] } { return -1 } diff --git a/gdb/testsuite/gdb.compile/compile-tls.exp b/gdb/testsuite/gdb.compile/compile-tls.exp index e9281aa..7647111 100644 --- a/gdb/testsuite/gdb.compile/compile-tls.exp +++ b/gdb/testsuite/gdb.compile/compile-tls.exp @@ -17,6 +17,8 @@ load_lib compile-support.exp standard_testfile .c +require is_c_compiler_gcc + if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \ executable {debug}] != "" } { return -1 diff --git a/gdb/testsuite/gdb.compile/compile.exp b/gdb/testsuite/gdb.compile/compile.exp index f3d87cd..38818d2 100644 --- a/gdb/testsuite/gdb.compile/compile.exp +++ b/gdb/testsuite/gdb.compile/compile.exp @@ -17,10 +17,8 @@ load_lib compile-support.exp standard_testfile .c compile-shlib.c compile-constvar.S compile-nodebug.c -set options {} -if [test_compiler_info gcc*] { - lappend options additional_flags=-g3 -} +require is_c_compiler_gcc +set options {additional_flags=-g3} if { ![is_x86_64_m64_target] } { verbose "Skipping x86_64 LOC_CONST test." |