From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7544 invoked by alias); 6 Mar 2006 15:18:37 -0000 Received: (qmail 7530 invoked by uid 22791); 6 Mar 2006 15:18:32 -0000 X-Spam-Check-By: sourceware.org Received: from intranet.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.6) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 06 Mar 2006 15:18:29 +0000 Received: (qmail 20390 invoked from network); 6 Mar 2006 15:18:24 -0000 Received: from unknown (HELO 81-178-176-36.dsl.pipex.com) (paul@127.0.0.2) by mail.codesourcery.com with ESMTPA; 6 Mar 2006 15:18:24 -0000 From: Paul Brook To: gdb-patches@sourceware.org Subject: [patch] Avoid gcc specific compiler flags Date: Tue, 07 Mar 2006 05:02:00 -0000 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_/KFDEJj1V1n1/y1" Message-Id: <200603061518.23469.paul@codesourcery.com> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-03/txt/msg00104.txt.bz2 --Boundary-00=_/KFDEJj1V1n1/y1 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Content-length: 2154 The attached patch allows a dejagnu target description to override the compiler flag used to disable warnings when running the gdb testsuite. Ok? Paul 2006-03-03 Paul Brook * 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. --Boundary-00=_/KFDEJj1V1n1/y1 Content-Type: text/x-diff; charset="us-ascii"; name="patch.nowarnings" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch.nowarnings" Content-length: 54213 Index: gdb/testsuite/gdb.arch/altivec-abi.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.arch/altivec-abi.exp,v retrieving revision 1.7 diff -u -p -r1.7 altivec-abi.exp --- gdb/testsuite/gdb.arch/altivec-abi.exp 20 Sep 2005 23:40:51 -0000 1.7 +++ gdb/testsuite/gdb.arch/altivec-abi.exp 3 Mar 2006 16:25:21 -0000 @@ -42,7 +42,7 @@ set testfile "altivec-abi" set binfile ${objdir}/${subdir}/${testfile} set srcfile ${testfile}.c -set compile_flags {debug additional_flags=-w} +set compile_flags {debug nowarnings} if [get_compiler_info $binfile] { warning "get_compiler failed" return -1 Index: gdb/testsuite/gdb.arch/altivec-regs.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.arch/altivec-regs.exp,v retrieving revision 1.9 diff -u -p -r1.9 altivec-regs.exp --- gdb/testsuite/gdb.arch/altivec-regs.exp 17 Oct 2005 22:16:54 -0000 1.9 +++ gdb/testsuite/gdb.arch/altivec-regs.exp 3 Mar 2006 16:25:21 -0000 @@ -42,7 +42,7 @@ set testfile "altivec-regs" set binfile ${objdir}/${subdir}/${testfile} set srcfile ${testfile}.c -set compile_flags {debug additional_flags=-w} +set compile_flags {debug nowarnings} if [get_compiler_info $binfile] { warning "get_compiler failed" return -1 Index: gdb/testsuite/gdb.arch/e500-abi.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.arch/e500-abi.exp,v retrieving revision 1.1 diff -u -p -r1.1 e500-abi.exp --- gdb/testsuite/gdb.arch/e500-abi.exp 17 Mar 2003 20:06:16 -0000 1.1 +++ gdb/testsuite/gdb.arch/e500-abi.exp 3 Mar 2006 16:25:21 -0000 @@ -42,7 +42,7 @@ set binfile ${objdir}/${subdir}/${testfi set src1 ${srcdir}/${subdir}/${testfile}.c -if { [gdb_compile ${src1} ${binfile} executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile ${src1} ${binfile} executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.arch/e500-regs.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.arch/e500-regs.exp,v retrieving revision 1.4 diff -u -p -r1.4 e500-regs.exp --- gdb/testsuite/gdb.arch/e500-regs.exp 13 May 2005 17:37:43 -0000 1.4 +++ gdb/testsuite/gdb.arch/e500-regs.exp 3 Mar 2006 16:25:21 -0000 @@ -41,7 +41,7 @@ set testfile "e500-regs" set binfile ${objdir}/${subdir}/${testfile} set src1 ${srcdir}/${subdir}/${testfile}.c -if { [gdb_compile ${src1} ${binfile} executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile ${src1} ${binfile} executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.base/all-bin.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/all-bin.exp,v retrieving revision 1.4 diff -u -p -r1.4 all-bin.exp --- gdb/testsuite/gdb.base/all-bin.exp 23 May 2002 21:20:52 -0000 1.4 +++ gdb/testsuite/gdb.base/all-bin.exp 3 Mar 2006 16:25:21 -0000 @@ -41,7 +41,7 @@ set testfile "all-types" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.base/annota1.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/annota1.exp,v retrieving revision 1.17 diff -u -p -r1.17 annota1.exp --- gdb/testsuite/gdb.base/annota1.exp 27 Apr 2005 21:45:16 -0000 1.17 +++ gdb/testsuite/gdb.base/annota1.exp 3 Mar 2006 16:25:21 -0000 @@ -42,7 +42,7 @@ set testfile "annota1" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.base/annota3.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/annota3.exp,v retrieving revision 1.6 diff -u -p -r1.6 annota3.exp --- gdb/testsuite/gdb.base/annota3.exp 28 Sep 2005 23:44:02 -0000 1.6 +++ gdb/testsuite/gdb.base/annota3.exp 3 Mar 2006 16:25:21 -0000 @@ -41,7 +41,7 @@ set testfile "annota3" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.base/args.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/args.exp,v retrieving revision 1.6 diff -u -p -r1.6 args.exp --- gdb/testsuite/gdb.base/args.exp 16 Apr 2003 20:29:42 -0000 1.6 +++ gdb/testsuite/gdb.base/args.exp 3 Mar 2006 16:25:21 -0000 @@ -44,7 +44,7 @@ set testfile "args" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.base/arithmet.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/arithmet.exp,v retrieving revision 1.4 diff -u -p -r1.4 arithmet.exp --- gdb/testsuite/gdb.base/arithmet.exp 9 Jul 2001 21:42:52 -0000 1.4 +++ gdb/testsuite/gdb.base/arithmet.exp 3 Mar 2006 16:25:21 -0000 @@ -40,7 +40,7 @@ set testfile "int-type" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.base/assign.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/assign.exp,v retrieving revision 1.2 diff -u -p -r1.2 assign.exp --- gdb/testsuite/gdb.base/assign.exp 6 Mar 2001 08:21:50 -0000 1.2 +++ gdb/testsuite/gdb.base/assign.exp 3 Mar 2006 16:25:21 -0000 @@ -39,7 +39,7 @@ set testfile "all-types" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.base/async.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/async.exp,v retrieving revision 1.2 diff -u -p -r1.2 async.exp --- gdb/testsuite/gdb.base/async.exp 6 Mar 2001 08:21:50 -0000 1.2 +++ gdb/testsuite/gdb.base/async.exp 3 Mar 2006 16:25:21 -0000 @@ -33,7 +33,7 @@ set testfile "async" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.base/bang.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/bang.exp,v retrieving revision 1.2 diff -u -p -r1.2 bang.exp --- gdb/testsuite/gdb.base/bang.exp 2 Feb 2004 21:30:02 -0000 1.2 +++ gdb/testsuite/gdb.base/bang.exp 3 Mar 2006 16:25:21 -0000 @@ -25,7 +25,7 @@ set testfile "args" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/bang! -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.base/break.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/break.exp,v retrieving revision 1.20 diff -u -p -r1.20 break.exp --- gdb/testsuite/gdb.base/break.exp 9 Nov 2005 06:41:30 -0000 1.20 +++ gdb/testsuite/gdb.base/break.exp 3 Mar 2006 16:25:21 -0000 @@ -37,15 +37,15 @@ set srcfile ${testfile}.c set srcfile1 ${testfile}1.c set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}0.o" object {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}0.o" object {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } -if { [gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile}1.o" object {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile}1.o" object {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } -if { [gdb_compile "${binfile}0.o ${binfile}1.o" "${binfile}" executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${binfile}0.o ${binfile}1.o" "${binfile}" executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } @@ -858,15 +858,15 @@ test_next_with_recursion set binfileo2 ${objdir}/${subdir}/${testfile}o2 -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}O0.o" object {debug "additional_flags=-w -O2"}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}O0.o" object {debug nowarnings optimize=-O2}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } -if { [gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile}O1.o" object {debug "additional_flags=-w -O2"}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile}O1.o" object {debug nowarnings optimize=-O2}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } -if { [gdb_compile "${binfile}O0.o ${binfile}O1.o" "${binfileo2}" executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${binfile}O0.o ${binfile}O1.o" "${binfileo2}" executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.base/call-rt-st.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/call-rt-st.exp,v retrieving revision 1.17 diff -u -p -r1.17 call-rt-st.exp --- gdb/testsuite/gdb.base/call-rt-st.exp 13 May 2005 17:36:43 -0000 1.17 +++ gdb/testsuite/gdb.base/call-rt-st.exp 3 Mar 2006 16:25:21 -0000 @@ -42,7 +42,7 @@ if { [istarget "sparclet-*-*"] } { return 0; } -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug nowarnings}] != "" } { untested "couldn't compile ${srcdir}/${subdir}/${srcfile}" return -1 } Index: gdb/testsuite/gdb.base/completion.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/completion.exp,v retrieving revision 1.21 diff -u -p -r1.21 completion.exp --- gdb/testsuite/gdb.base/completion.exp 1 Feb 2004 05:49:07 -0000 1.21 +++ gdb/testsuite/gdb.base/completion.exp 3 Mar 2006 16:25:21 -0000 @@ -67,15 +67,15 @@ set srcfile ${testfile}.c set srcfile1 ${testfile}1.c set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}0.o" object {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}0.o" object {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } -if { [gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile}1.o" object {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile}1.o" object {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } -if { [gdb_compile "${binfile}0.o ${binfile}1.o" "${binfile}" executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${binfile}0.o ${binfile}1.o" "${binfile}" executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.base/cond-expr.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/cond-expr.exp,v retrieving revision 1.2 diff -u -p -r1.2 cond-expr.exp --- gdb/testsuite/gdb.base/cond-expr.exp 6 Mar 2001 08:21:50 -0000 1.2 +++ gdb/testsuite/gdb.base/cond-expr.exp 3 Mar 2006 16:25:21 -0000 @@ -42,7 +42,7 @@ if $tracelevel then { set testfile "int-type" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.base/condbreak.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/condbreak.exp,v retrieving revision 1.4 diff -u -p -r1.4 condbreak.exp --- gdb/testsuite/gdb.base/condbreak.exp 9 Dec 2003 18:19:20 -0000 1.4 +++ gdb/testsuite/gdb.base/condbreak.exp 3 Mar 2006 16:25:21 -0000 @@ -38,15 +38,15 @@ set srcfile ${testfile}.c set srcfile1 ${testfile}1.c set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}0.o" object {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}0.o" object {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } -if { [gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile}1.o" object {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile}1.o" object {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } -if { [gdb_compile "${binfile}0.o ${binfile}1.o" "${binfile}" executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${binfile}0.o ${binfile}1.o" "${binfile}" executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.base/consecutive.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/consecutive.exp,v retrieving revision 1.1 diff -u -p -r1.1 consecutive.exp --- gdb/testsuite/gdb.base/consecutive.exp 25 Jul 2001 23:16:40 -0000 1.1 +++ gdb/testsuite/gdb.base/consecutive.exp 3 Mar 2006 16:25:21 -0000 @@ -35,7 +35,7 @@ set testfile "consecutive" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.base/define.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/define.exp,v retrieving revision 1.5 diff -u -p -r1.5 define.exp --- gdb/testsuite/gdb.base/define.exp 10 Sep 2004 23:12:12 -0000 1.5 +++ gdb/testsuite/gdb.base/define.exp 3 Mar 2006 16:25:21 -0000 @@ -37,15 +37,15 @@ set srcfile ${testfile}.c set srcfile1 ${testfile}1.c set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}0.o" object {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}0.o" object {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } -if { [gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile}1.o" object {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile}1.o" object {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } -if { [gdb_compile "${binfile}0.o ${binfile}1.o" "${binfile}" executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${binfile}0.o ${binfile}1.o" "${binfile}" executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.base/display.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/display.exp,v retrieving revision 1.6 diff -u -p -r1.6 display.exp --- gdb/testsuite/gdb.base/display.exp 20 Jan 2003 15:40:07 -0000 1.6 +++ gdb/testsuite/gdb.base/display.exp 3 Mar 2006 16:25:21 -0000 @@ -31,7 +31,7 @@ set binfile ${objdir}/${subdir}/${testf -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } if [target_info exists gdb_stub] { Index: gdb/testsuite/gdb.base/ena-dis-br.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/ena-dis-br.exp,v retrieving revision 1.5 diff -u -p -r1.5 ena-dis-br.exp --- gdb/testsuite/gdb.base/ena-dis-br.exp 13 Jul 2004 13:01:04 -0000 1.5 +++ gdb/testsuite/gdb.base/ena-dis-br.exp 3 Mar 2006 16:25:21 -0000 @@ -34,15 +34,15 @@ set srcfile ${testfile}.c set srcfile1 ${testfile}1.c set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}0.o" object {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}0.o" object {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } -if { [gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile}1.o" object {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile}1.o" object {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } -if { [gdb_compile "${binfile}0.o ${binfile}1.o" "${binfile}" executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${binfile}0.o ${binfile}1.o" "${binfile}" executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.base/environ.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/environ.exp,v retrieving revision 1.3 diff -u -p -r1.3 environ.exp --- gdb/testsuite/gdb.base/environ.exp 18 Dec 2003 07:48:37 -0000 1.3 +++ gdb/testsuite/gdb.base/environ.exp 3 Mar 2006 16:25:21 -0000 @@ -41,15 +41,15 @@ set srcfile ${testfile}.c set srcfile1 ${testfile}1.c set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}0.o" object {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}0.o" object {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } -if { [gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile}1.o" object {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile}1.o" object {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } -if { [gdb_compile "${binfile}0.o ${binfile}1.o" "${binfile}" executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${binfile}0.o ${binfile}1.o" "${binfile}" executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.base/eval-skip.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/eval-skip.exp,v retrieving revision 1.2 diff -u -p -r1.2 eval-skip.exp --- gdb/testsuite/gdb.base/eval-skip.exp 6 Mar 2001 08:21:50 -0000 1.2 +++ gdb/testsuite/gdb.base/eval-skip.exp 3 Mar 2006 16:25:21 -0000 @@ -44,7 +44,7 @@ set testfile "int-type" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.base/info-proc.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/info-proc.exp,v retrieving revision 1.3 diff -u -p -r1.3 info-proc.exp --- gdb/testsuite/gdb.base/info-proc.exp 2 Feb 2004 05:15:27 -0000 1.3 +++ gdb/testsuite/gdb.base/info-proc.exp 3 Mar 2006 16:25:21 -0000 @@ -34,15 +34,15 @@ set srcfile ${testfile}.c set srcfile1 ${testfile}1.c set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}0.o" object {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}0.o" object {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } -if { [gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile}1.o" object {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile}1.o" object {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } -if { [gdb_compile "${binfile}0.o ${binfile}1.o" "${binfile}" executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${binfile}0.o ${binfile}1.o" "${binfile}" executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.base/jump.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/jump.exp,v retrieving revision 1.3 diff -u -p -r1.3 jump.exp --- gdb/testsuite/gdb.base/jump.exp 31 Oct 2001 02:40:24 -0000 1.3 +++ gdb/testsuite/gdb.base/jump.exp 3 Mar 2006 16:25:21 -0000 @@ -31,7 +31,7 @@ set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} # Build the test case -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.base/logical.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/logical.exp,v retrieving revision 1.3 diff -u -p -r1.3 logical.exp --- gdb/testsuite/gdb.base/logical.exp 16 Jul 2004 19:08:42 -0000 1.3 +++ gdb/testsuite/gdb.base/logical.exp 3 Mar 2006 16:25:21 -0000 @@ -36,7 +36,7 @@ set testfile "int-type" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.base/long_long.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/long_long.exp,v retrieving revision 1.16 diff -u -p -r1.16 long_long.exp --- gdb/testsuite/gdb.base/long_long.exp 26 Sep 2005 02:17:34 -0000 1.16 +++ gdb/testsuite/gdb.base/long_long.exp 3 Mar 2006 16:25:21 -0000 @@ -44,7 +44,7 @@ if {$hp_cc_compiler} { set flag "" } -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [concat debug "additional_flags=$flag -w"]] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [concat debug additional_flags=$flag nowarnings]] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.base/maint.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/maint.exp,v retrieving revision 1.24 diff -u -p -r1.24 maint.exp --- gdb/testsuite/gdb.base/maint.exp 9 Feb 2005 16:45:39 -0000 1.24 +++ gdb/testsuite/gdb.base/maint.exp 3 Mar 2006 16:25:21 -0000 @@ -68,15 +68,15 @@ set srcfile ${testfile}.c set srcfile1 ${testfile}1.c set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}0.o" object {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}0.o" object {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } -if { [gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile}1.o" object {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile}1.o" object {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } -if { [gdb_compile "${binfile}0.o ${binfile}1.o" "${binfile}" executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${binfile}0.o ${binfile}1.o" "${binfile}" executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.base/miscexprs.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/miscexprs.exp,v retrieving revision 1.6 diff -u -p -r1.6 miscexprs.exp --- gdb/testsuite/gdb.base/miscexprs.exp 31 Oct 2001 20:59:22 -0000 1.6 +++ gdb/testsuite/gdb.base/miscexprs.exp 3 Mar 2006 16:25:21 -0000 @@ -39,7 +39,7 @@ if [target_info exists gdb,small_stack_s set storage "-DSTORAGE=static" } -set additional_flags "additional_flags=-w ${storage}" +set additional_flags "additional_flags=${storage}" # # test running programs @@ -51,7 +51,7 @@ set testfile "miscexprs" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug ${additional_flags}]] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug ${additional_flags} nowarnings]] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.base/pc-fp.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/pc-fp.exp,v retrieving revision 1.3 diff -u -p -r1.3 pc-fp.exp --- gdb/testsuite/gdb.base/pc-fp.exp 19 Feb 2006 20:53:34 -0000 1.3 +++ gdb/testsuite/gdb.base/pc-fp.exp 3 Mar 2006 16:25:21 -0000 @@ -38,7 +38,7 @@ set testfile "pc-fp" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.base/pointers.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/pointers.exp,v retrieving revision 1.6 diff -u -p -r1.6 pointers.exp --- gdb/testsuite/gdb.base/pointers.exp 3 Apr 2003 16:34:48 -0000 1.6 +++ gdb/testsuite/gdb.base/pointers.exp 3 Mar 2006 16:25:21 -0000 @@ -39,7 +39,7 @@ set testfile "pointers" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.base/relational.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/relational.exp,v retrieving revision 1.2 diff -u -p -r1.2 relational.exp --- gdb/testsuite/gdb.base/relational.exp 6 Mar 2001 08:21:51 -0000 1.2 +++ gdb/testsuite/gdb.base/relational.exp 3 Mar 2006 16:25:21 -0000 @@ -38,7 +38,7 @@ set bug_id 0 set testfile "int-type" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.base/reread.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/reread.exp,v retrieving revision 1.6 diff -u -p -r1.6 reread.exp --- gdb/testsuite/gdb.base/reread.exp 14 Feb 2002 06:25:18 -0000 1.6 +++ gdb/testsuite/gdb.base/reread.exp 3 Mar 2006 16:25:21 -0000 @@ -33,7 +33,7 @@ set srcfile1 ${testfile1}.c # Cygwin needs $EXEEXT. set binfile1 ${objdir}/${subdir}/${testfile1}$EXEEXT -if { [gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile1}" executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile1}" executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } @@ -43,7 +43,7 @@ set testfile2 "reread2" set srcfile2 ${testfile2}.c set binfile2 ${objdir}/${subdir}/${testfile2}$EXEEXT -if { [gdb_compile "${srcdir}/${subdir}/${srcfile2}" "${binfile2}" executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile2}" "${binfile2}" executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.base/sect-cmd.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/sect-cmd.exp,v retrieving revision 1.3 diff -u -p -r1.3 sect-cmd.exp --- gdb/testsuite/gdb.base/sect-cmd.exp 18 Dec 2003 16:25:21 -0000 1.3 +++ gdb/testsuite/gdb.base/sect-cmd.exp 3 Mar 2006 16:25:21 -0000 @@ -43,15 +43,15 @@ set srcfile ${testfile}.c set srcfile1 ${testfile}1.c set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}0.o" object {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}0.o" object {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } -if { [gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile}1.o" object {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile}1.o" object {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } -if { [gdb_compile "${binfile}0.o ${binfile}1.o" "${binfile}" executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${binfile}0.o ${binfile}1.o" "${binfile}" executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.base/sep.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/sep.exp,v retrieving revision 1.3 diff -u -p -r1.3 sep.exp --- gdb/testsuite/gdb.base/sep.exp 6 May 2004 21:32:00 -0000 1.3 +++ gdb/testsuite/gdb.base/sep.exp 3 Mar 2006 16:25:21 -0000 @@ -25,7 +25,7 @@ set testfile "sep" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.base/sepdebug.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/sepdebug.exp,v retrieving revision 1.2 diff -u -p -r1.2 sepdebug.exp --- gdb/testsuite/gdb.base/sepdebug.exp 14 Jan 2004 15:09:37 -0000 1.2 +++ gdb/testsuite/gdb.base/sepdebug.exp 3 Mar 2006 16:25:21 -0000 @@ -42,7 +42,7 @@ set testfile "sepdebug" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.base/until.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/until.exp,v retrieving revision 1.4 diff -u -p -r1.4 until.exp --- gdb/testsuite/gdb.base/until.exp 9 Dec 2003 18:19:20 -0000 1.4 +++ gdb/testsuite/gdb.base/until.exp 3 Mar 2006 16:25:21 -0000 @@ -28,15 +28,15 @@ set srcfile ${testfile}.c set srcfile1 ${testfile}1.c set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}0.o" object {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}0.o" object {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } -if { [gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile}1.o" object {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile}1.o" object {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } -if { [gdb_compile "${binfile}0.o ${binfile}1.o" "${binfile}" executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${binfile}0.o ${binfile}1.o" "${binfile}" executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.base/whatis-exp.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/whatis-exp.exp,v retrieving revision 1.2 diff -u -p -r1.2 whatis-exp.exp --- gdb/testsuite/gdb.base/whatis-exp.exp 6 Mar 2001 08:21:51 -0000 1.2 +++ gdb/testsuite/gdb.base/whatis-exp.exp 3 Mar 2006 16:25:21 -0000 @@ -42,7 +42,7 @@ set bug_id 0 set testfile "int-type" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.cp/annota2.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.cp/annota2.exp,v retrieving revision 1.3 diff -u -p -r1.3 annota2.exp --- gdb/testsuite/gdb.cp/annota2.exp 11 Feb 2004 14:01:25 -0000 1.3 +++ gdb/testsuite/gdb.cp/annota2.exp 3 Mar 2006 16:25:21 -0000 @@ -34,7 +34,7 @@ set testfile "annota2" set srcfile ${testfile}.cc set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug c++ additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug c++ nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.cp/annota3.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.cp/annota3.exp,v retrieving revision 1.4 diff -u -p -r1.4 annota3.exp --- gdb/testsuite/gdb.cp/annota3.exp 28 Sep 2005 23:44:02 -0000 1.4 +++ gdb/testsuite/gdb.cp/annota3.exp 3 Mar 2006 16:25:21 -0000 @@ -33,7 +33,7 @@ set testfile "annota3" set srcfile ${testfile}.cc set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug c++ additional_flags=-w}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug c++ nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.trace/actions.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.trace/actions.exp,v retrieving revision 1.2 diff -u -p -r1.2 actions.exp --- gdb/testsuite/gdb.trace/actions.exp 6 Mar 2001 08:22:00 -0000 1.2 +++ gdb/testsuite/gdb.trace/actions.exp 3 Mar 2006 16:25:21 -0000 @@ -39,7 +39,7 @@ if [istarget "m68k-*-elf"] then { set srcfile ${testfile}.c set binfile $objdir/$subdir/$testfile if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \ - executable {debug additional_flags=-w}] != "" } { + executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } } Index: gdb/testsuite/gdb.trace/backtrace.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.trace/backtrace.exp,v retrieving revision 1.2 diff -u -p -r1.2 backtrace.exp --- gdb/testsuite/gdb.trace/backtrace.exp 6 Mar 2001 08:22:00 -0000 1.2 +++ gdb/testsuite/gdb.trace/backtrace.exp 3 Mar 2006 16:25:21 -0000 @@ -54,7 +54,7 @@ if [istarget "m68k-*-elf"] then { set srcfile ${testfile}.c set binfile $objdir/$subdir/$testfile if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \ - executable {debug additional_flags=-w}] != "" } { + executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } gdb_load $binfile Index: gdb/testsuite/gdb.trace/circ.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.trace/circ.exp,v retrieving revision 1.2 diff -u -p -r1.2 circ.exp --- gdb/testsuite/gdb.trace/circ.exp 6 Mar 2001 08:22:00 -0000 1.2 +++ gdb/testsuite/gdb.trace/circ.exp 3 Mar 2006 16:25:21 -0000 @@ -36,7 +36,7 @@ set srcfile ${testfile}.c set binfile $objdir/$subdir/$testfile if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \ - executable {debug additional_flags=-w}] != "" } { + executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.trace/collection.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.trace/collection.exp,v retrieving revision 1.4 diff -u -p -r1.4 collection.exp --- gdb/testsuite/gdb.trace/collection.exp 27 Apr 2005 16:35:15 -0000 1.4 +++ gdb/testsuite/gdb.trace/collection.exp 3 Mar 2006 16:25:21 -0000 @@ -36,7 +36,7 @@ set srcfile ${testfile}.c set binfile $objdir/$subdir/$testfile if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \ - executable {debug additional_flags=-w}] != "" } { + executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.trace/deltrace.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.trace/deltrace.exp,v retrieving revision 1.3 diff -u -p -r1.3 deltrace.exp --- gdb/testsuite/gdb.trace/deltrace.exp 17 Apr 2001 20:16:31 -0000 1.3 +++ gdb/testsuite/gdb.trace/deltrace.exp 3 Mar 2006 16:25:21 -0000 @@ -39,7 +39,7 @@ if [istarget "m68k-*-elf"] then { set srcfile ${testfile}.c set binfile $objdir/$subdir/$testfile if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \ - executable {debug additional_flags=-w}] != "" } { + executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } } Index: gdb/testsuite/gdb.trace/infotrace.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.trace/infotrace.exp,v retrieving revision 1.3 diff -u -p -r1.3 infotrace.exp --- gdb/testsuite/gdb.trace/infotrace.exp 17 Apr 2001 20:16:31 -0000 1.3 +++ gdb/testsuite/gdb.trace/infotrace.exp 3 Mar 2006 16:25:21 -0000 @@ -39,7 +39,7 @@ if [istarget "m68k-*-elf"] then { set srcfile ${testfile}.c set binfile $objdir/$subdir/$testfile if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \ - executable {debug additional_flags=-w}] != "" } { + executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } } Index: gdb/testsuite/gdb.trace/limits.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.trace/limits.exp,v retrieving revision 1.2 diff -u -p -r1.2 limits.exp --- gdb/testsuite/gdb.trace/limits.exp 6 Mar 2001 08:22:00 -0000 1.2 +++ gdb/testsuite/gdb.trace/limits.exp 3 Mar 2006 16:25:21 -0000 @@ -36,7 +36,7 @@ set srcfile ${testfile}.c set binfile $objdir/$subdir/$testfile if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \ - executable {debug additional_flags=-w}] != "" } { + executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } Index: gdb/testsuite/gdb.trace/packetlen.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.trace/packetlen.exp,v retrieving revision 1.2 diff -u -p -r1.2 packetlen.exp --- gdb/testsuite/gdb.trace/packetlen.exp 6 Mar 2001 08:22:00 -0000 1.2 +++ gdb/testsuite/gdb.trace/packetlen.exp 3 Mar 2006 16:25:21 -0000 @@ -54,7 +54,7 @@ if [istarget "m68k-*-elf"] then { set srcfile ${testfile}.c set binfile $objdir/$subdir/$testfile if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \ - executable {debug additional_flags=-w}] != "" } { + executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } gdb_load $binfile Index: gdb/testsuite/gdb.trace/passc-dyn.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.trace/passc-dyn.exp,v retrieving revision 1.4 diff -u -p -r1.4 passc-dyn.exp --- gdb/testsuite/gdb.trace/passc-dyn.exp 27 Apr 2005 16:35:15 -0000 1.4 +++ gdb/testsuite/gdb.trace/passc-dyn.exp 3 Mar 2006 16:25:21 -0000 @@ -53,7 +53,7 @@ if [istarget "m68k-*-elf"] then { set srcfile ${testfile}.c set binfile $objdir/$subdir/$testfile if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \ - executable {debug additional_flags=-w}] != "" } { + executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } gdb_load $binfile Index: gdb/testsuite/gdb.trace/passcount.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.trace/passcount.exp,v retrieving revision 1.3 diff -u -p -r1.3 passcount.exp --- gdb/testsuite/gdb.trace/passcount.exp 17 Apr 2001 20:16:31 -0000 1.3 +++ gdb/testsuite/gdb.trace/passcount.exp 3 Mar 2006 16:25:21 -0000 @@ -38,7 +38,7 @@ if [istarget "m68k-*-elf"] then { set srcfile ${testfile}.c set binfile $objdir/$subdir/$testfile if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \ - executable {debug additional_flags=-w}] != "" } { + executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } } Index: gdb/testsuite/gdb.trace/report.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.trace/report.exp,v retrieving revision 1.2 diff -u -p -r1.2 report.exp --- gdb/testsuite/gdb.trace/report.exp 6 Mar 2001 08:22:00 -0000 1.2 +++ gdb/testsuite/gdb.trace/report.exp 3 Mar 2006 16:25:21 -0000 @@ -54,7 +54,7 @@ if [istarget "m68k-*-elf"] then { set srcfile ${testfile}.c set binfile $objdir/$subdir/$testfile if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \ - executable {debug additional_flags=-w}] != "" } { + executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } gdb_load $binfile Index: gdb/testsuite/gdb.trace/save-trace.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.trace/save-trace.exp,v retrieving revision 1.3 diff -u -p -r1.3 save-trace.exp --- gdb/testsuite/gdb.trace/save-trace.exp 7 Aug 2003 17:55:41 -0000 1.3 +++ gdb/testsuite/gdb.trace/save-trace.exp 3 Mar 2006 16:25:21 -0000 @@ -39,7 +39,7 @@ if [istarget "m68k-*-elf"] then { set srcfile ${testfile}.c set binfile $objdir/$subdir/$testfile if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \ - executable {debug additional_flags=-w}] != "" } { + executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } } Index: gdb/testsuite/gdb.trace/tfind.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.trace/tfind.exp,v retrieving revision 1.5 diff -u -p -r1.5 tfind.exp --- gdb/testsuite/gdb.trace/tfind.exp 27 Apr 2005 16:35:15 -0000 1.5 +++ gdb/testsuite/gdb.trace/tfind.exp 3 Mar 2006 16:25:21 -0000 @@ -55,7 +55,7 @@ if [istarget "m68k-*-elf"] then { set binfile $objdir/$subdir/$testfile if { [gdb_compile "$srcdir/$subdir/$srcfile" "$binfile" \ - executable {debug additional_flags=-w}] != "" } { + executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } gdb_load $binfile Index: gdb/testsuite/gdb.trace/tracecmd.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.trace/tracecmd.exp,v retrieving revision 1.2 diff -u -p -r1.2 tracecmd.exp --- gdb/testsuite/gdb.trace/tracecmd.exp 6 Mar 2001 08:22:00 -0000 1.2 +++ gdb/testsuite/gdb.trace/tracecmd.exp 3 Mar 2006 16:25:21 -0000 @@ -38,7 +38,7 @@ if [istarget "m68k-*-elf"] then { set srcfile ${testfile}.c set binfile $objdir/$subdir/$testfile if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \ - executable {debug additional_flags=-w}] != "" } { + executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } } Index: gdb/testsuite/gdb.trace/while-dyn.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.trace/while-dyn.exp,v retrieving revision 1.2 diff -u -p -r1.2 while-dyn.exp --- gdb/testsuite/gdb.trace/while-dyn.exp 6 Mar 2001 08:22:00 -0000 1.2 +++ gdb/testsuite/gdb.trace/while-dyn.exp 3 Mar 2006 16:25:21 -0000 @@ -55,7 +55,7 @@ if [istarget "m68k-*-elf"] then { set srcfile $testfile.c set binfile $objdir/$subdir/$testfile if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \ - executable {debug additional_flags=-w}] != "" } { + executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } gdb_load $binfile Index: gdb/testsuite/gdb.trace/while-stepping.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.trace/while-stepping.exp,v retrieving revision 1.3 diff -u -p -r1.3 while-stepping.exp --- gdb/testsuite/gdb.trace/while-stepping.exp 17 Apr 2001 20:16:31 -0000 1.3 +++ gdb/testsuite/gdb.trace/while-stepping.exp 3 Mar 2006 16:25:21 -0000 @@ -39,7 +39,7 @@ if [istarget "m68k-*-elf"] then { set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" $binfile \ - executable {debug additional_flags=-w}] != "" } { + executable {debug nowarnings}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } } Index: gdb/testsuite/lib/gdb.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/lib/gdb.exp,v retrieving revision 1.64 diff -u -p -r1.64 gdb.exp --- gdb/testsuite/lib/gdb.exp 27 Sep 2005 22:39:03 -0000 1.64 +++ gdb/testsuite/lib/gdb.exp 3 Mar 2006 16:25:21 -0000 @@ -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,16 @@ proc gdb_compile {source dest type optio lappend options "ldflags=${gdb_wrapper_flags}" } + 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; --Boundary-00=_/KFDEJj1V1n1/y1--