[testsuite] Pass -g3 to clang in gdb.base/macscp.exp
authorYao Qi <yao.qi@linaro.org>
Thu, 23 Nov 2017 15:30:56 +0000 (15:30 +0000)
committerYao Qi <yao.qi@linaro.org>
Thu, 23 Nov 2017 15:31:13 +0000 (15:31 +0000)
clang accepts option -g3 too.  I checked the manual of xlc and icc, looks
they don't accept -g3 option, so I don't pass -g3 for them.

gdb/testsuite:

2017-11-23  Yao Qi  <yao.qi@linaro.org>

* gdb.base/macscp.exp: Append -g3 to additional_flags for clang.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/macscp.exp

index 8ff118084765aa8f744a8c16aaf4702bfcd958a3..f3f11864b8126b513361d25fce3298c7c4f1ce4d 100644 (file)
@@ -1,3 +1,7 @@
+2017-11-22  Yao Qi  <yao.qi@linaro.org>
+
+       * gdb.base/macscp.exp: Append -g3 to additional_flags for clang.
+
 2017-11-22  Simon Marchi  <simon.marchi@ericsson.com>
 
        * gdb.opt/inline-locals.exp: Mark tests as KFAIL.
index c5cd899ceb97487e1275c5d7458094b43c896070..d4242cceb1ea9460069ce0343fc5793cb9e5e482 100644 (file)
@@ -21,7 +21,7 @@ set objfile [standard_output_file ${testfile}.o]
 set options { debug additional_flags=-DFROM_COMMANDLINE=ARG}
 
 get_compiler_info
-if [test_compiler_info gcc*] {
+if { [test_compiler_info "gcc-*"] || [test_compiler_info "clang-*"] } {
     lappend options additional_flags=-g3
 }
 
This page took 0.0319970000000001 seconds and 4 git commands to generate.