This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch] New sparc targets. 2.95?
- To: law at cygnus dot com
- Subject: Re: [Patch] New sparc targets. 2.95?
- From: Jonathan Larmour <jlarmour at cygnus dot co dot uk>
- Date: Mon, 09 Aug 1999 14:46:49 +0000
- CC: egcs-patches at egcs dot cygnus dot com
- Organization: Cygnus Solutions
- References: <28435.934012621@upchuck.cygnus.com>
Jeffrey A Law wrote:
>
> In message <3772A807.D3C930FE@cygnus.co.uk>you write:
> > None of the sparc targets sparclite-elf, sparc86x-aout and sparc86x-elf
> > appear to be available in egcs, even though all the sparc.c/sparc.md
[snip]
> I made a few fixes, then installed this change into the mainline sources.
>
> 1. Avoid -Dblah, instead use -D__blah__ to avoid ANSI namespace problems.
That would make it the only sparc platform other than Sparc for linux and
OpenBSD that uses the __blah__ form. Wouldn't it be better to make it
consistent with the other ones, and then change them all over at once?
Also there has been some bitrot since I submitted the patch. The attached
patch will properly synchronise with the Cygnus repository. Again, autoconf
needs to be rerun.
Mon Aug 9 15:40:02 1999 Jonathan Larmour <jlarmour@cygnus.co.uk>
* config/sparc/liteelf.h: Handle ctors like sparc86x
* configure.in: Don't use libgloss.h for sparclite-*-elf* and
sparc86x-*-elf* targets
* configure: regenerate
Jifl
--
Cygnus Solutions, 35 Cambridge Place, Cambridge, UK. Tel: +44 (1223) 728762
"I used to have an open mind but || Get yer free open source RTOS's here...
my brains kept falling out." || http://sourceware.cygnus.com/ecos
Help fight spam! http://spam.abuse.net/ These opinions are all my own fault
Index: gcc/configure.in
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/configure.in,v
retrieving revision 1.272
diff -u -5 -p -r1.272 configure.in
--- gcc/configure.in 1999/08/07 07:58:06 1.272
+++ gcc/configure.in 1999/08/09 14:41:51
@@ -3268,20 +3268,20 @@ changequote([,])dnl
sparclite-*-aout*)
tm_file="sparc/lite.h aoutos.h libgloss.h"
tmake_file=sparc/t-sparclite
;;
sparclite-*-elf*)
- tm_file="sparc/liteelf.h libgloss.h"
+ tm_file="sparc/liteelf.h"
tmake_file=sparc/t-sparclite
extra_parts="crtbegin.o crtend.o"
;;
sparc86x-*-aout*)
tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
tmake_file=sparc/t-sp86x
;;
sparc86x-*-elf*)
- tm_file="sparc/sp86x-elf.h libgloss.h"
+ tm_file="sparc/sp86x-elf.h"
tmake_file=sparc/t-sp86x
extra_parts="crtbegin.o crtend.o"
;;
sparc64-*-aout*)
tmake_file=sparc/t-sp64
Index: gcc/config/sparc/liteelf.h
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/config/sparc/liteelf.h,v
retrieving revision 1.1
diff -u -5 -p -r1.1 liteelf.h
--- gcc/config/sparc/liteelf.h 1999/08/07 07:58:07 1.1
+++ gcc/config/sparc/liteelf.h 1999/08/09 14:41:51
@@ -45,5 +45,9 @@ Boston, MA 02111-1307, USA. */
#undef INIT_SUBTARGET_OPTABS
#define INIT_SUBTARGET_OPTABS INIT_GOFAST_OPTABS
#undef STARTFILE_SPEC
#define STARTFILE_SPEC "crti.o%s crtbegin.o%s"
+
+/* Use __main method of constructor invocation */
+#undef INIT_SECTION_ASM_OP
+#undef FINI_SECTION_ASM_OP