This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] remove needless -O2 in ld testsuite case
- To: GNU Binutils mailing list <binutils at sourceware dot cygnus dot com>
- Subject: [PATCH] remove needless -O2 in ld testsuite case
- From: "David O'Brien" <obrien at FreeBSD dot org>
- Date: Sat, 31 Mar 2001 19:12:42 -0800
- Organization: The NUXI BSD group
- Reply-To: obrien at FreeBSD dot org
I would like to apply this to the binutils-2_11-branch and mainline:
Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ChangeLog,v
retrieving revision 1.50.2.2
diff -u -r1.50.2.2 ChangeLog
--- ChangeLog 2001/03/18 16:39:39 1.50.2.2
+++ ChangeLog 2001/04/01 03:11:24
@@ -1,3 +1,9 @@
+001-03-31 David O'Brien <obrien@FreeBSD.org>
+
+ * ld-selective/selective.exp: Use -O with gcc rather than -O2.
+ This optimization level is buggy on some platforms, and this test
+ is not intended to test compiler optimizations.
+
2001-03-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* ld-selective/selective.exp: Don't run test for 68hc11 and 68hc12
Index: ld-selective/selective.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-selective/selective.exp,v
retrieving revision 1.11.2.2
diff -u -r1.11.2.2 selective.exp
--- selective.exp 2001/03/18 16:39:39 1.11.2.2
+++ selective.exp 2001/04/01 03:11:24
@@ -51,7 +51,7 @@
{selective6 C++ 5.cc {} {} {foo__1B foo__1A dropme1__Fv dropme2__Fv} {*-*-*}}
}
-set cflags "-w -O2 -ffunction-sections -fdata-sections"
+set cflags "-w -O -ffunction-sections -fdata-sections"
set cxxflags "-fvtable-gc -fno-exceptions -fno-rtti"
set ldflags "--gc-sections -Bstatic"
--
-- David (obrien@FreeBSD.org)