This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Problems using gcc-3.4.0 to run binutils testsuite: cdtest ERROR: cc1plus: error: unrecognized command line option "-fgnu-linker"
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sources dot redhat dot com, christian at j-son dot org
- Date: Thu, 8 Apr 2004 23:50:35 +0930
- Subject: Re: Problems using gcc-3.4.0 to run binutils testsuite: cdtest ERROR: cc1plus: error: unrecognized command line option "-fgnu-linker"
- References: <20040219134808.B29793@fw.j-son.org> <m3oerv9l25.fsf@gossamer.airs.com>
On Thu, Feb 19, 2004 at 09:54:26AM -0500, Ian Lance Taylor wrote:
> If somebody wants to test whether gcc supports -fgnu-linker and use it
> if available, that would be fine. But I think it would also be OK to
> just remove the option.
Done.
ld/testsuite/ChangeLog
PR 47.
* ld-cdtest/cdtest.exp: Remove -fgnu-linker.
Index: ld/testsuite/ld-cdtest/cdtest.exp
===================================================================
RCS file: /src/cygnus-cvs/src/ld/testsuite/ld-cdtest/cdtest.exp,v
retrieving revision 1.3
diff -u -p -r1.3 cdtest.exp
--- ld/testsuite/ld-cdtest/cdtest.exp 1 Aug 2001 14:37:47 -0000 1.3
+++ ld/testsuite/ld-cdtest/cdtest.exp 8 Apr 2004 14:12:14 -0000
@@ -35,9 +35,9 @@ if { [which $CXX] == 0 } {
return
}
-if { ![ld_compile "$CXX $CXXFLAGS -fgnu-linker -fno-exceptions" $srcdir/$subdir/cdtest-foo.cc tmpdir/cdtest-foo.o]
- || ![ld_compile "$CXX $CXXFLAGS -fgnu-linker -fno-exceptions" $srcdir/$subdir/cdtest-bar.cc tmpdir/cdtest-bar.o]
- || ![ld_compile "$CXX $CXXFLAGS -fgnu-linker -fno-exceptions" $srcdir/$subdir/cdtest-main.cc tmpdir/cdtest-main.o] } {
+if { ![ld_compile "$CXX $CXXFLAGS -fno-exceptions" $srcdir/$subdir/cdtest-foo.cc tmpdir/cdtest-foo.o]
+ || ![ld_compile "$CXX $CXXFLAGS -fno-exceptions" $srcdir/$subdir/cdtest-bar.cc tmpdir/cdtest-bar.o]
+ || ![ld_compile "$CXX $CXXFLAGS -fno-exceptions" $srcdir/$subdir/cdtest-main.cc tmpdir/cdtest-main.o] } {
unresolved $test1
unresolved $test2
return
--
Alan Modra
IBM OzLabs - Linux Technology Centre