re PR target/4198 ([sparclite-elf] does not build, needs tweaking for crtstuff.c changes)

PR target/4198
	PR target/12027
	* config.gcc (Obsolete configurations): Remove
	sparclite-*-coff*, sparclite-*-elf* and sparc-*-openbsd*.
	(sparclite-*-coff*): Delete.
	(sparclite-*-elf*): Likewise.
	(sparc86x-*-elf*): Likewise.
	(target_cpu_default) <sparc*-*-*>: Remove sparc86x.
	* config/sparc/lite.h: Delete.
	* config/sparc/litecoff.h: Likewise.
	* config/sparc/liteelf.h: Likewise.
	* config/sparc/sp86x-elf.h: Likewise.
	* config/sparc/t-sparclite: Likewise.
	* config/sparc/t-sp86x: Likewise.

From-SVN: r97555
This commit is contained in:
Eric Botcazou 2005-04-04 17:18:54 +00:00
parent 0bfc3f6970
commit 6d6f2d0804
8 changed files with 19 additions and 271 deletions

View File

@ -1,4 +1,21 @@
2005-04-04 Adrian Strae¤tling <straetling@de.ibm.com>
2005-04-04 Eric Botcazou <ebotcazou@libertysurf.fr>
PR target/4198
PR target/12027
* config.gcc (Obsolete configurations): Remove
sparclite-*-coff*, sparclite-*-elf* and sparc-*-openbsd*.
(sparclite-*-coff*): Delete.
(sparclite-*-elf*): Likewise.
(sparc86x-*-elf*): Likewise.
(target_cpu_default) <sparc*-*-*>: Remove sparc86x.
* config/sparc/lite.h: Delete.
* config/sparc/litecoff.h: Likewise.
* config/sparc/liteelf.h: Likewise.
* config/sparc/sp86x-elf.h: Likewise.
* config/sparc/t-sparclite: Likewise.
* config/sparc/t-sp86x: Likewise.
2005-04-04 Adrian Straetling <straetling@de.ibm.com>
* config/s390/s390-protos.h: (s390_comparison,
s390_alc_comparison, s390_slb_comparison, const0_operand,

View File

@ -184,10 +184,7 @@ md_file=
# Obsolete configurations.
case ${target} in
sparclite-*-coff* \
| sparclite-*-elf* \
| sparc86x-*-elf* \
| sparc-*-openbsd* \
sparc-*-openbsd* \
| i860-*-sysv4* \
| ip2k-*-elf \
| ns32k-*-netbsdelf* \
@ -2031,22 +2028,6 @@ sparc-*-sysv4*)
extra_parts="crtbegin.o crtend.o"
use_fixproto=yes
;;
sparclite-*-coff*)
tm_file="${tm_file} sparc/lite.h svr3.h sparc/litecoff.h dbxcoff.h libgloss.h"
tmake_file=sparc/t-sparclite
;;
sparclite-*-elf*)
tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sp-elf.h sparc/liteelf.h"
tmake_file="sparc/t-sparclite sparc/t-crtfm"
extra_parts="crtbegin.o crtend.o"
use_fixproto=yes
;;
sparc86x-*-elf*)
tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sp-elf.h sparc/sp86x-elf.h"
tmake_file="sparc/t-sp86x sparc/t-crtfm"
extra_parts="crtbegin.o crtend.o"
use_fixproto=yes
;;
sparc64-*-elf*)
tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sp64-elf.h"
tmake_file="${tmake_file} sparc/t-crtfm"
@ -2774,9 +2755,6 @@ case ${target} in
xsparc)
with_cpu=v7
;;
xsparc86x)
with_cpu=sparclite86x
;;
xsparcv9 | xsparc64)
with_cpu=v9
;;

View File

@ -1,31 +0,0 @@
/* Definitions of target machine for GCC, for SPARClite w/o FPU.
Copyright (C) 1993, 1996 Free Software Foundation, Inc.
Contributed by Jim Wilson (wilson@cygnus.com).
This file is part of GCC.
GCC 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.
GCC 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 GCC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#undef TARGET_VERSION
#define TARGET_VERSION fprintf (stderr, " (sparclite)");
/* Enable app-regs and epilogue options. Do not enable the fpu. */
#undef TARGET_DEFAULT
#define TARGET_DEFAULT MASK_APP_REGS
/* Enable US Software GOFAST library support. */
#define US_SOFTWARE_GOFAST

View File

@ -1,63 +0,0 @@
/* Definitions of target machine for GCC, for SPARClite w/o FPU, COFF.
Copyright (C) 1994, 1996, 2000, 2002, 2004, 2005
Free Software Foundation, Inc.
Written by Ken Raeburn (raeburn@cygnus.com).
This file is part of GCC.
GCC 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.
GCC 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 GCC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#define BSS_SECTION_ASM_OP "\t.section\t\".bss\""
#define TARGET_OS_CPP_BUILTINS() \
do \
{ \
builtin_define_std ("sparclite"); \
} \
while (0)
/* Default to stabs in COFF. */
#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
/* Support the ctors and dtors sections for g++. */
#undef INIT_SECTION_ASM_OP
#undef DO_GLOBAL_CTORS_BODY
#undef DO_GLOBAL_DTORS_BODY
/* These compiler options take an argument. We ignore -target for now. */
#define WORD_SWITCH_TAKES_ARG(STR) \
(DEFAULT_WORD_SWITCH_TAKES_ARG (STR) \
|| !strcmp (STR, "target") || !strcmp (STR, "assert"))
/* Output the label for a function definition. */
#define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL) \
do { \
ASM_DECLARE_RESULT (FILE, DECL_RESULT (DECL)); \
ASM_OUTPUT_LABEL (FILE, NAME); \
} while (0)
/* Output before read-only data. */
#define TEXT_SECTION_ASM_OP "\t.text"
/* Output before writable data. */
#define DATA_SECTION_ASM_OP "\t.data"

View File

@ -1,46 +0,0 @@
/* Definitions of target machine for GCC, for SPARClite w/o FPU, ELF.
Copyright (C) 1998, 1999, 2005 Free Software Foundation, Inc.
Contributed by Stan Cox (scox@cygnus.com).
This file is part of GCC.
GCC 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.
GCC 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 GCC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#undef TARGET_VERSION
#define TARGET_VERSION fprintf (stderr, " (sparclite)");
#undef TARGET_OS_CPP_BUILTINS
#define TARGET_OS_CPP_BUILTINS() \
do \
{ \
builtin_define ("__sparclite__"); \
} \
while (0)
/* Enable app-regs and epilogue options. Do not enable the fpu. */
#undef TARGET_DEFAULT
#define TARGET_DEFAULT MASK_APP_REGS
/* Enable US Software GOFAST library support. */
#define US_SOFTWARE_GOFAST
#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

View File

@ -1,61 +0,0 @@
/* Definitions of target machine for GCC, for sparclite 86x w/o FPU.
Copyright (C) 1998, 1999, 2000, 2005 Free Software Foundation, Inc.
Contributed by Stan Cox (scox@cygnus.com).
This file is part of GCC.
GCC 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.
GCC 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 GCC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#undef TARGET_VERSION
#define TARGET_VERSION fprintf (stderr, " (sparclite 86x)");
#undef TARGET_OS_CPP_BUILTINS
#define TARGET_OS_CPP_BUILTINS() \
do \
{ \
builtin_define ("__sparclite86x__"); \
} \
while (0)
/* Enable app-regs and epilogue options. Do not enable the fpu. */
#undef TARGET_DEFAULT
#define TARGET_DEFAULT MASK_APP_REGS
#undef ASM_SPEC
#define ASM_SPEC "%{v:-V} %{mlittle-endian-data:--little-endian-data} %(asm_cpu)"
/* Enable US Software GOFAST library support. */
#define US_SOFTWARE_GOFAST
#undef STARTFILE_SPEC
#define STARTFILE_SPEC "crti.o%s crtbegin.o%s"
#undef LINK_SPEC
#define LINK_SPEC "%{v:-V} %{mlittle-endian-data:-EL}"
#undef BYTES_BIG_ENDIAN
#define BYTES_BIG_ENDIAN (! TARGET_LITTLE_ENDIAN_DATA)
#undef WORDS_BIG_ENDIAN
#define WORDS_BIG_ENDIAN (! TARGET_LITTLE_ENDIAN_DATA)
/* Use __main method of constructor invocation */
#undef INIT_SECTION_ASM_OP
#define TARGET_LITTLE_ENDIAN_DATA (target_flags & MASK_LITTLE_ENDIAN)
#undef SUBTARGET_SWITCHES
#define SUBTARGET_SWITCHES \
{ "little-endian-data", MASK_LITTLE_ENDIAN, N_("Use little-endian byte order for data")},

View File

@ -1,23 +0,0 @@
LIB1ASMSRC = sparc/lb1spc.asm
LIB1ASMFUNCS = _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
echo '#define US_SOFTWARE_GOFAST' > dp-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
echo '#define US_SOFTWARE_GOFAST' >> fp-bit.c
cat $(srcdir)/config/fp-bit.c >> fp-bit.c
MULTILIB_OPTIONS = mlittle-endian-data
MULTILIB_DIRNAMES = little
LIBGCC = stmp-multilib
INSTALL_LIBGCC = install-multilib

View File

@ -1,23 +0,0 @@
LIB1ASMSRC = sparc/lb1spl.asm
LIB1ASMFUNCS = _divsi3 _udivsi3 _modsi3 _umodsi3
# 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
echo '#define US_SOFTWARE_GOFAST' > dp-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
echo '#define US_SOFTWARE_GOFAST' >> fp-bit.c
cat $(srcdir)/config/fp-bit.c >> fp-bit.c
MULTILIB_OPTIONS = mfpu
MULTILIB_DIRNAMES =
MULTILIB_MATCHES = mfpu=mhard-float mfpu=mcpu?f934
LIBGCC = stmp-multilib
INSTALL_LIBGCC = install-multilib