+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.
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 != "" } {
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"
}