diff -urN -X dontdiff.fix gcc-3.2.2-orig/gcc/config/sparc/leon-aout.h gcc-3.2.2/gcc/config/sparc/leon-aout.h --- gcc-3.2.2-orig/gcc/config/sparc/leon-aout.h Thu Jan 1 01:00:00 1970 +++ gcc-3.2.2/gcc/config/sparc/leon-aout.h Tue Feb 25 12:09:16 2003 @@ -0,0 +1,27 @@ +/* Definitions for linux targeting a Leon-SPARC using elf + Copyright (C) 1996, 1997, 2000, 2002 Free Software Foundation, Inc. + Contributed by Konrad Eisele,2003. + +This file is part of GNU CC. + +GNU CC is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU CC is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU CC; see the file COPYING. If not, write to +the Free Software Foundation, 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ + + +/* Specify predefined symbols in preprocessor. */ +#undef CPP_PREDEFINES +#define CPP_PREDEFINES "-Dunix -D__sparc__ -D__gnu_linux__ \ +-Dlinux -Asystem=unix -Asystem=posix -D__leon__ " + diff -urN -X dontdiff.fix gcc-3.2.2-orig/gcc/config/sparc/leon.h gcc-3.2.2/gcc/config/sparc/leon.h --- gcc-3.2.2-orig/gcc/config/sparc/leon.h Thu Jan 1 01:00:00 1970 +++ gcc-3.2.2/gcc/config/sparc/leon.h Tue Feb 25 12:09:31 2003 @@ -0,0 +1,26 @@ +/* Definitions for linux targeting a Leon-SPARC using elf + Copyright (C) 1996, 1997, 2000, 2002 Free Software Foundation, Inc. + Contributed by Konrad Eisele,2003. + +This file is part of GNU CC. + +GNU CC is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU CC is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU CC; see the file COPYING. If not, write to +the Free Software Foundation, 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ + + +/* Specify predefined symbols in preprocessor. */ +#undef CPP_PREDEFINES +#define CPP_PREDEFINES "-D__ELF__ -Dunix -D__sparc__ -D__gnu_linux__ \ +-Dlinux -Asystem=unix -Asystem=posix -D__leon__ " diff -urN -X dontdiff.fix gcc-3.2.2-orig/gcc/config/sparc/t-leon gcc-3.2.2/gcc/config/sparc/t-leon --- gcc-3.2.2-orig/gcc/config/sparc/t-leon Thu Jan 1 01:00:00 1970 +++ gcc-3.2.2/gcc/config/sparc/t-leon Tue Feb 25 17:08:13 2003 @@ -0,0 +1,29 @@ +LIB1ASMSRC = sparc/lb1spc.asm +LIB1ASMFUNCS = _mulsi3 _divsi3 _modsi3 + +# We want fine grained libraries, so use the new code to build the +# floating point emulation libraries. +FPBIT = fp-bit.c +DPBIT = dp-bit.c + +dp-bit.c: $(srcdir)/config/fp-bit.c + cat $(srcdir)/config/fp-bit.c > dp-bit.c + +fp-bit.c: $(srcdir)/config/fp-bit.c + echo '#define FLOAT' > fp-bit.c + cat $(srcdir)/config/fp-bit.c >> fp-bit.c + +# MULTILIB_OPTIONS should have msparclite too, but we'd have to make +# gas build... +MULTILIB_OPTIONS = msoft-float mcpu=v8 +MULTILIB_DIRNAMES = soft v8 +MULTILIB_MATCHES = msoft-float=mno-fpu mcpu?v8=mv8 + +LIBGCC = stmp-multilib +INSTALL_LIBGCC = install-multilib + +# Assemble startup files. +crti.o: $(srcdir)/config/sparc/sol2-ci.asm $(GCC_PASSES) + $(GCC_FOR_TARGET) -c -o crti.o -x assembler $(srcdir)/config/sparc/sol2-ci.asm +crtn.o: $(srcdir)/config/sparc/sol2-cn.asm $(GCC_PASSES) + $(GCC_FOR_TARGET) -c -o crtn.o -x assembler $(srcdir)/config/sparc/sol2-cn.asm diff -urN -X dontdiff.fix gcc-3.2.2-orig/gcc/config.gcc gcc-3.2.2/gcc/config.gcc --- gcc-3.2.2-orig/gcc/config.gcc Thu Jan 30 15:03:42 2003 +++ gcc-3.2.2/gcc/config.gcc Tue Feb 25 17:09:09 2003 @@ -3089,6 +3089,17 @@ #float_format=i128 float_format=i64 ;; +#sparc-leon-linuxaout*) # Sparc-Leon SoC running Linux +# tm_file="aoutos.h sparc/sparc.h sparc/aout.h sparc/linux-aout.h sparc/leon-aout.h" +# gnu_ld=yes +# ;; +sparc-leon-linux*|sparc-leon-linuxelf*) # Sparc-Leon SoC running Linux + tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h sparc/leon.h" + tmake_file="t-slibgcc-elf-ver t-linux sparc/t-crtfm sparc/t-leon" + extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" + gnu_ld=yes + float_format=sparc + ;; sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out tm_file="aoutos.h sparc/sparc.h sparc/aout.h sparc/linux-aout.h" gnu_ld=yes