Re: ld testsuite: Append NOSANITIZE_CFLAGS to CFLAGS_FOR_TARGET
Don't use CC_FOR_TARGET in the bootstrap test, a silly idea aiming at consistency that made things worse. The objects being linked were built using $CC, so $CC should be used to link. * testsuite/ld-bootstrap/bootstrap.exp: Revert last change.
This commit is contained in:
parent
2c8dd9b1c3
commit
bdefc07306
1 changed files with 4 additions and 4 deletions
|
@ -190,7 +190,7 @@ foreach flags $test_flags {
|
|||
setup_xfail "mips*-*-irix5*"
|
||||
}
|
||||
|
||||
if ![ld_link $CC_FOR_TARGET tmpdir/ld1 "$CFLAGS_FOR_TARGET $flags tmpdir/ld-partial.o $CTFLIB $BFDLIB $LIBIBERTY $SFRAMELIB $extralibs"] {
|
||||
if ![ld_link $CC tmpdir/ld1 "$CFLAGS $flags tmpdir/ld-partial.o $CTFLIB $BFDLIB $LIBIBERTY $SFRAMELIB $extralibs"] {
|
||||
fail $testname
|
||||
continue
|
||||
}
|
||||
|
@ -207,13 +207,13 @@ foreach flags $test_flags {
|
|||
}
|
||||
|
||||
regsub /tmpdir/ld/ $gcc_B_opt_save /tmpdir/gccld1/ gcc_B_opt
|
||||
if ![ld_link $CC_FOR_TARGET tmpdir/ld2 "$CFLAGS_FOR_TARGET $flags $OFILES $CTFLIB $BFDLIB $LIBIBERTY $SFRAMELIB $extralibs"] {
|
||||
if ![ld_link $CC tmpdir/ld2 "$CFLAGS $flags $OFILES $CTFLIB $BFDLIB $LIBIBERTY $SFRAMELIB $extralibs"] {
|
||||
fail $testname
|
||||
continue
|
||||
}
|
||||
|
||||
regsub /tmpdir/ld/ $gcc_B_opt_save /tmpdir/gccld2/ gcc_B_opt
|
||||
if ![ld_link $CC_FOR_TARGET tmpdir/ld3 "$CFLAGS_FOR_TARGET $flags $OFILES $CTFLIB $BFDLIB $LIBIBERTY $SFRAMELIB $extralibs"] {
|
||||
if ![ld_link $CC tmpdir/ld3 "$CFLAGS $flags $OFILES $CTFLIB $BFDLIB $LIBIBERTY $SFRAMELIB $extralibs"] {
|
||||
fail $testname
|
||||
continue
|
||||
}
|
||||
|
@ -226,7 +226,7 @@ foreach flags $test_flags {
|
|||
# generated by different linkers, tmpdir/ld1 and tmpdir/ld2.
|
||||
# So we rebuild tmpdir/ld2 with tmpdir/ld3.
|
||||
regsub /tmpdir/ld/ $gcc_B_opt_save /tmpdir/gccld3/ gcc_B_opt
|
||||
if ![ld_link $CC_FOR_TARGET tmpdir/ld2 "$CFLAGS_FOR_TARGET $flags $OFILES $CTFLIB $BFDLIB $LIBIBERTY $SFRAMELIB $extralibs"] {
|
||||
if ![ld_link $CC tmpdir/ld2 "$CFLAGS $flags $OFILES $CTFLIB $BFDLIB $LIBIBERTY $SFRAMELIB $extralibs"] {
|
||||
fail $testname
|
||||
continue
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue