This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit/testsuite/obvious] callfuncs.exp: use test_compiler_info
- From: mec dot gnu at mindspring dot com (Michael Elizabeth Chastain)
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 1 Dec 2003 17:08:14 -0500 (EST)
- Subject: [commit/testsuite/obvious] callfuncs.exp: use test_compiler_info
Here's my daily gcc_compiled patch. I hope I'm not bugging anybody
doing this one file at a time rather than one big patch.
Testing: native i686-pc-linux-gnu, gcc 2.95.3 and 3.3.2, dwarf-2 and
stabs+. But this is not all that useful because the logic here
is all about non-gcc compilers.
I am committing this now as an obvious fix.
Michael C
2003-12-01 Michael Chastain <mec.gnu@mindspring.com>
Partial fix for PR testsuite/1456.
* gdb.base/callfuncs.exp (do_function_calls): Replace reference to
gcc_compiled with call to test_compiler_info.
Index: gdb.base/callfuncs.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/callfuncs.exp,v
retrieving revision 1.12
diff -c -3 -p -r1.12 callfuncs.exp
*** gdb.base/callfuncs.exp 19 Nov 2003 18:34:52 -0000 1.12
--- gdb.base/callfuncs.exp 1 Dec 2003 22:06:31 -0000
*************** proc set_lang_c {} {
*** 95,101 ****
proc do_function_calls {} {
global prototypes
- global gcc_compiled
global gdb_prompt
# We need to up this because this can be really slow on some boards.
--- 95,100 ----
*************** proc do_function_calls {} {
*** 149,155 ****
# to be a generic problem on quite a few platforms.
if $prototypes then {
setup_xfail "sparc-*-*" "mips*-*-*" 5318
! if {!$gcc_compiled} then {
setup_xfail "alpha-dec-osf2*" "i*86-*-sysv4*" 5318
}
}
--- 148,154 ----
# to be a generic problem on quite a few platforms.
if $prototypes then {
setup_xfail "sparc-*-*" "mips*-*-*" 5318
! if { ! [test_compiler_info gcc-*-*] } then {
setup_xfail "alpha-dec-osf2*" "i*86-*-sysv4*" 5318
}
}