diff options
author | Yao Qi <yao.qi@linaro.org> | 2017-11-23 15:30:56 +0000 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2017-11-23 15:31:13 +0000 |
commit | 7c3c1aa885b720e25b25af6ac05f34f9ff0e3dfa (patch) | |
tree | 7c0bb867f5b739a822d9fd2c92e5b2eeb1acf57e | |
parent | be7d1531e1ce34efbdb9367f1483f9cdad477059 (diff) | |
download | gdb-7c3c1aa885b720e25b25af6ac05f34f9ff0e3dfa.zip gdb-7c3c1aa885b720e25b25af6ac05f34f9ff0e3dfa.tar.gz gdb-7c3c1aa885b720e25b25af6ac05f34f9ff0e3dfa.tar.bz2 |
[testsuite] Pass -g3 to clang in gdb.base/macscp.exp
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.
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/macscp.exp | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 8ff1180..f3f1186 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -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. diff --git a/gdb/testsuite/gdb.base/macscp.exp b/gdb/testsuite/gdb.base/macscp.exp index c5cd899..d4242cc 100644 --- a/gdb/testsuite/gdb.base/macscp.exp +++ b/gdb/testsuite/gdb.base/macscp.exp @@ -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 } |