This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
3.3 PATCH: Define SUBTARGET_EXTRA_SPECS for pre-Solaris 7/SPARC
- From: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 13 Aug 2002 14:15:40 +0200 (MEST)
- Subject: 3.3 PATCH: Define SUBTARGET_EXTRA_SPECS for pre-Solaris 7/SPARC
During a recent mainline bootstrap, I noticed that the
sparc-sun-solaris2.5.1 gcc doesn't recognize the -R option any longer.
This is a bug caused by my Solaris 2 configuration cleanup, which didn't
define the startfile_arch and link_arch (which passes -R to the linker)
specs for non-bi-arch Solaris 2 configuations. The trivial patch below
fixes this.
Bootstrapped without regressions on sparc-sun-solaris2.5.1.
Ok for mainline?
Rainer
Tue Aug 13 00:58:35 2002 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* config/sparc/sol2.h (SUBTARGET_EXTRA_SPECS): Define.
Index: config/sparc/sol2.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/sparc/sol2.h,v
retrieving revision 1.47
diff -u -p -r1.47 sol2.h
--- config/sparc/sol2.h 20 Jun 2002 11:03:40 -0000 1.47
+++ config/sparc/sol2.h 13 Aug 2002 12:12:34 -0000
@@ -47,6 +47,11 @@ Boston, MA 02111-1307, USA. */
%{!mcpu*:%(asm_cpu_default)} \
"
+#undef SUBTARGET_EXTRA_SPECS
+#define SUBTARGET_EXTRA_SPECS \
+ { "startfile_arch", STARTFILE_ARCH_SPEC }, \
+ { "link_arch", LINK_ARCH_SPEC }
+
/* However it appears that Solaris 2.0 uses the same reg numbering as
the old BSD-style system did. */