diff options
author | Ben Elliston <bje@redhat.com> | 2002-02-04 05:00:25 +0000 |
---|---|---|
committer | Ben Elliston <bje@gcc.gnu.org> | 2002-02-04 16:00:25 +1100 |
commit | f7948d51468a9c45abd8fd21a0efee1ec479ad37 (patch) | |
tree | 979af41b9d116a99f60b1bdfe45bfe5dab3477c6 /gcc | |
parent | 10c459437e4444fc5a111d1c3bdb96022e23716f (diff) | |
download | gcc-f7948d51468a9c45abd8fd21a0efee1ec479ad37.zip gcc-f7948d51468a9c45abd8fd21a0efee1ec479ad37.tar.gz gcc-f7948d51468a9c45abd8fd21a0efee1ec479ad37.tar.bz2 |
gcc.exp (gcc_init): Check that the need_status_wrapper target_info attribute != 0...
* lib/gcc.exp (gcc_init): Check that the need_status_wrapper
target_info attribute != 0, in addition to the empty string.
(gcc_target_compile): Likewise.
From-SVN: r49470
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/lib/gcc.exp | 10 |
2 files changed, 13 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1f5090f..8a078a4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2002-02-04 Ben Elliston <bje@redhat.com> + + * lib/gcc.exp (gcc_init): Check that the need_status_wrapper + target_info attribute != 0, in addition to the empty string. + (gcc_target_compile): Likewise. + 2002-02-03 Andrew Cagney <ac131313@redhat.com> * gcc.dg/Wswitch.c: New test. diff --git a/gcc/testsuite/lib/gcc.exp b/gcc/testsuite/lib/gcc.exp index e03f559..7333755 100644 --- a/gcc/testsuite/lib/gcc.exp +++ b/gcc/testsuite/lib/gcc.exp @@ -106,7 +106,9 @@ proc gcc_init { args } { if ![info exists tmpdir] then { set tmpdir /tmp } - if { [target_info needs_status_wrapper]!="" && ![info exists gluefile] } { + if {[target_info needs_status_wrapper] != "" && \ + [target_info needs_status_wrapper] != "0" && \ + ![info exists gluefile]} { set gluefile ${tmpdir}/testglue.o; set result [build_wrapper $gluefile]; if { $result != "" } { @@ -127,8 +129,10 @@ proc gcc_target_compile { source dest type options } { global gluefile wrap_flags; global GCC_UNDER_TEST global TOOL_OPTIONS - - if { [target_info needs_status_wrapper]!="" && [info exists gluefile] } { + + if {[target_info needs_status_wrapper] != "" && \ + [target_info needs_status_wrapper] != "0" && \ + [info exists gluefile] } { lappend options "libs=${gluefile}" lappend options "ldflags=$wrap_flags" } |