Commit f7948d51 by Ben Elliston Committed by Ben Elliston

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
parent 10c45943
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> 2002-02-03 Andrew Cagney <ac131313@redhat.com>
* gcc.dg/Wswitch.c: New test. * gcc.dg/Wswitch.c: New test.
......
...@@ -106,7 +106,9 @@ proc gcc_init { args } { ...@@ -106,7 +106,9 @@ proc gcc_init { args } {
if ![info exists tmpdir] then { if ![info exists tmpdir] then {
set tmpdir /tmp 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 gluefile ${tmpdir}/testglue.o;
set result [build_wrapper $gluefile]; set result [build_wrapper $gluefile];
if { $result != "" } { if { $result != "" } {
...@@ -127,8 +129,10 @@ proc gcc_target_compile { source dest type options } { ...@@ -127,8 +129,10 @@ proc gcc_target_compile { source dest type options } {
global gluefile wrap_flags; global gluefile wrap_flags;
global GCC_UNDER_TEST global GCC_UNDER_TEST
global TOOL_OPTIONS 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 "libs=${gluefile}"
lappend options "ldflags=$wrap_flags" lappend options "ldflags=$wrap_flags"
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment