diff options
author | Paul Brook <paul@codesourcery.com> | 2006-03-07 15:23:33 +0000 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2006-03-07 15:23:33 +0000 |
commit | fc91c6c2b9b2af49624c4cbc34247ad590c850af (patch) | |
tree | 61f8ee634b07321b61dc56e0788314eb462ae8e8 /gdb/testsuite/lib | |
parent | 00a976722ad60639affeec9c13032adfd0861a6c (diff) | |
download | gdb-fc91c6c2b9b2af49624c4cbc34247ad590c850af.zip gdb-fc91c6c2b9b2af49624c4cbc34247ad590c850af.tar.gz gdb-fc91c6c2b9b2af49624c4cbc34247ad590c850af.tar.bz2 |
2006-03-07 Paul Brook <paul@codesourcery.com>
* gdb.arch/altivec-abi.exp: Use nowarnings instead of
additional_flags=-w.
* gdb.arch/altivec-regs.exp: Ditto.
* gdb.arch/e500-abi.exp: Ditto.
* gdb.arch/e500-regs.exp: Ditto.
* gdb.base/all-bin.exp: Ditto.
* gdb.base/annota1.exp: Ditto.
* gdb.base/annota3.exp: Ditto.
* gdb.base/args.exp: Ditto.
* gdb.base/arithmet.exp: Ditto.
* gdb.base/assign.exp: Ditto.
* gdb.base/async.exp: Ditto.
* gdb.base/bang.exp: Ditto.
* gdb.base/break.exp: Ditto.
* gdb.base/call-rt-st.exp: Ditto.
* gdb.base/completion.exp: Ditto.
* gdb.base/cond-expr.exp: Ditto.
* gdb.base/condbreak.exp: Ditto.
* gdb.base/consecutive.exp: Ditto.
* gdb.base/define.exp: Ditto.
* gdb.base/display.exp: Ditto.
* gdb.base/ena-dis-br.exp: Ditto.
* gdb.base/environ.exp: Ditto.
* gdb.base/eval-skip.exp: Ditto.
* gdb.base/info-proc.exp: Ditto.
* gdb.base/jump.exp: Ditto.
* gdb.base/logical.exp: Ditto.
* gdb.base/long_long.exp: Ditto.
* gdb.base/maint.exp: Ditto.
* gdb.base/miscexprs.exp: Ditto.
* gdb.base/pc-fp.exp: Ditto.
* gdb.base/pointers.exp: Ditto.
* gdb.base/relational.exp: Ditto.
* gdb.base/reread.exp: Ditto.
* gdb.base/sect-cmd.exp: Ditto.
* gdb.base/sep.exp: Ditto.
* gdb.base/sepdebug.exp: Ditto.
* gdb.base/until.exp: Ditto.
* gdb.base/whatis-exp.exp: Ditto.
* gdb.cp/annota2.exp: Ditto.
* gdb.cp/annota3.exp: Ditto.
* gdb.trace/actions.exp: Ditto.
* gdb.trace/backtrace.exp: Ditto.
* gdb.trace/circ.exp: Ditto.
* gdb.trace/collection.exp: Ditto.
* gdb.trace/deltrace.exp: Ditto.
* gdb.trace/infotrace.exp: Ditto.
* gdb.trace/limits.exp: Ditto.
* gdb.trace/packetlen.exp: Ditto.
* gdb.trace/passc-dyn.exp: Ditto.
* gdb.trace/passcount.exp: Ditto.
* gdb.trace/report.exp: Ditto.
* gdb.trace/save-trace.exp: Ditto.
* gdb.trace/tfind.exp: Ditto.
* gdb.trace/tracecmd.exp: Ditto.
* gdb.trace/while-dyn.exp: Ditto.
* gdb.trace/while-stepping.exp: Ditto.
* lib/gdb.exp: Ditto.
(gdb_compile): Handle nowarning option.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r-- | gdb/testsuite/lib/gdb.exp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index cfddc99..4bb4b05 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -1183,7 +1183,7 @@ proc skip_altivec_tests {} { } # Make sure we have a compiler that understands altivec. - set compile_flags {debug additional_flags=-w} + set compile_flags {debug nowarnings} if [get_compiler_info not-used] { warning "Could not get compiler info" return 1 @@ -1497,6 +1497,18 @@ proc gdb_compile {source dest type options} { lappend options "ldflags=${gdb_wrapper_flags}" } + # Replace the "nowarnings" option with the appropriate additional_flags + # to disable compiler warnings. + set nowarnings [lsearch -exact $options nowarnings] + if {$nowarnings != -1} { + if [target_info exists gdb,nowarnings_flag] { + set flag "additional_flags=[target_info gdb,nowarnings_flag]" + } else { + set flag "additional_flags=-w" + } + set options [lreplace $options $nowarnings $nowarnings $flag] + } + set result [target_compile $source $dest $type $options]; regsub "\[\r\n\]*$" "$result" "" result; regsub "^\[\r\n\]*" "$result" "" result; |