This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH: ld/testsuite/ld-srec to handle g++ 3.0 and beyond
- To: binutils at sources dot redhat dot com
- Subject: PATCH: ld/testsuite/ld-srec to handle g++ 3.0 and beyond
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- Date: Tue, 24 Jul 2001 02:21:24 -0500 (CDT)
- Reply-to: rittle at labs dot mot dot com
Same reason as part of last patch: "g++ 3.0 and beyond requires
libsupc++ to be linked in unless all objects were compiled without
support for exceptions (and RTTI, new/delete, etc). It seems better
to remove the requirement of this library since these tests use no
exotic C++ features."
Although "obvious", I have tested this patch, by running `make check'
in an already built binutils 2.11 branch tree against gcc 2.95.3, gcc
3.0 and gcc mainline on i386-unknown-freebsd4.3. And against binutils
mainline as described in related e-mail.
Regards,
Loren
2001-07-24 Loren J. Rittle <ljrittle@acm.org>
* ld-srec/srec.exp: Do not require any exception support
library.
Index: ld-srec/srec.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-srec/srec.exp,v
retrieving revision 1.6.2.3
diff -c -r1.6.2.3 srec.exp
*** srec.exp 2001/06/11 10:05:15 1.6.2.3
--- srec.exp 2001/07/24 07:17:58
***************
*** 387,393 ****
return
}
! if ![ld_compile "$CXX $CXXFLAGS -fgnu-linker" $srcdir/$subdir/sr3.cc tmpdir/sr3.o] {
unresolved $test2
return
}
--- 387,393 ----
return
}
! if ![ld_compile "$CXX $CXXFLAGS -fgnu-linker -fno-exceptions" $srcdir/$subdir/sr3.cc tmpdir/sr3.o] {
unresolved $test2
return
}