Commit 309dd885 by Nick Clifton Committed by Nick Clifton

Add FR30 port.

From-SVN: r29549
parent 09b5f8bf
Tue Sep 21 14:13:27 1999 Nick Clifton <nickc@cygnus.com>
* configure.in: Add fr30 target.
* configure: Regenerate.
* config/fr30: New directory.
* config/fr30/crti.asm: New file.
* config/fr30/fr30.c: New file.
* config/fr30/crtn.asm: New file.
* config/fr30/fr30.h: New file.
* config/fr30/fr30.md: New file.
* config/fr30/lib1funcs.asm: New file.
* config/fr30/t-fr30: New file.
* config/fr30/xm-fr30.h: New file.
Tue Sep 21 06:45:31 1999 Jeffrey A Law (law@cygnus.com)
* flow.c (merge_blocks_move_successor_nojumps): Delete the
......
# crti.s for ELF
# Copyright (C) 1992, 1998, 1999 Free Software Foundation, Inc.
# Written By David Vinayak Henkel-Wallace, June 1992
#
# This file 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.
#
# In addition to the permissions in the GNU General Public License, the
# Free Software Foundation gives you unlimited permission to link the
# compiled version of this file with other programs, and to distribute
# those programs without any restriction coming from the use of this
# file. (The General Public License restrictions do apply in other
# respects; for example, they cover modification of the file, and
# distribution when not linked into another program.)
#
# This file 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 this program; see the file COPYING. If not, write to
# the Free Software Foundation, 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
#
# As a special exception, if you link this library with files
# compiled with GCC to produce an executable, this does not cause
# the resulting executable to be covered by the GNU General Public License.
# This exception does not however invalidate any other reasons why
# the executable file might be covered by the GNU General Public License.
#
# This file just make a stack frame for the contents of the .fini and
# .init sections. Users may put any desired instructions in those
# sections.
.file "crti.asm"
.section ".init"
.global _init
.type _init,#function
.align 4
_init:
st rp, @-r15
enter #4
# These nops are here to align the end of this code with a 16 byte
# boundary. The linker will start inserting code into the .init
# section at such a boundary.
nop
nop
nop
nop
nop
nop
.section ".fini"
.global _fini
.type _fini,#function
.align 4
_fini:
st rp, @-r15
enter #4
nop
nop
nop
nop
nop
nop
# crtn.asm for ELF
# Copyright (C) 1992, 1999 Free Software Foundation, Inc.
# Written By David Vinayak Henkel-Wallace, June 1992
#
# This file 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.
#
# In addition to the permissions in the GNU General Public License, the
# Free Software Foundation gives you unlimited permission to link the
# compiled version of this file with other programs, and to distribute
# those programs without any restriction coming from the use of this
# file. (The General Public License restrictions do apply in other
# respects; for example, they cover modification of the file, and
# distribution when not linked into another program.)
#
# This file 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 this program; see the file COPYING. If not, write to
# the Free Software Foundation, 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
#
# As a special exception, if you link this library with files
# compiled with GCC to produce an executable, this does not cause
# the resulting executable to be covered by the GNU General Public License.
# This exception does not however invalidate any other reasons why
# the executable file might be covered by the GNU General Public License.
#
# This file just makes sure that the .fini and .init sections do in
# fact return. Users may put any desired instructions in those sections.
# This file is the last thing linked into any executable.
.file "crtn.s"
.section ".init"
.align 4
leave
ld @r15+,rp
ret
.section ".fini"
.align 4
leave
ld @r15+,rp
ret
# Th-th-th-that is all folks!
This source diff could not be displayed because it is too large. You can view the blob instead.
/* libgcc1 routines for the FR30.
Copyright (C) 1998, 1999 Free Software Foundation, Inc.
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.
In addition to the permissions in the GNU General Public License, the
Free Software Foundation gives you unlimited permission to link the
compiled version of this file with other programs, and to distribute
those programs without any restriction coming from the use of this
file. (The General Public License restrictions do apply in other
respects; for example, they cover modification of the file, and
distribution when not linked into another program.)
This file 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 this program; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
/* As a special exception, if you link this library with files
compiled with GCC to produce an executable, this does not cause
the resulting executable to be covered by the GNU General Public License.
This exception does not however invalidate any other reasons why
the executable file might be covered by the GNU General Public License. */
.macro FUNC_START name
.text
.globl __\name
.type __\name, @function
__\name:
.endm
.macro FUNC_END name
.size __\name, . - __\name
.endm
.macro DIV_BODY reg number
.if \number
DIV_BODY \reg, "\number - 1"
div1 \reg
.endif
.endm
#ifdef L_udivsi3
FUNC_START udivsi3
;; Perform an unsiged division of r4 / r5 and place the result in r4.
;; Does not handle overflow yet...
mov r4, mdl
div0u r5
DIV_BODY r5 32
mov mdl, r4
ret
FUNC_END udivsi3
#endif /* L_udivsi3 */
#ifdef L_divsi3
FUNC_START divsi3
;; Perform a siged division of r4 / r5 and place the result in r4.
;; Does not handle overflow yet...
mov r4, mdl
div0s r5
DIV_BODY r5 32
div2 r5
div3
div4s
mov mdl, r4
ret
FUNC_END divsi3
#endif /* L_divsi3 */
#ifdef L_umodsi3
FUNC_START umodsi3
;; Perform an unsiged division of r4 / r5 and places the remainder in r4.
;; Does not handle overflow yet...
mov r4, mdl
div0u r5
DIV_BODY r5 32
mov mdh, r4
ret
FUNC_END umodsi3
#endif /* L_umodsi3 */
#ifdef L_modsi3
FUNC_START modsi3
;; Perform a siged division of r4 / r5 and place the remainder in r4.
;; Does not handle overflow yet...
mov r4, mdl
div0s r5
DIV_BODY r5 32
div2 r5
div3
div4s
mov mdh, r4
ret
FUNC_END modsi3
#endif /* L_modsi3 */
#ifdef L_negsi2
FUNC_START negsi2
ldi:8 #0, r0
sub r4, r0
mov r0, r4
ret
FUNC_END negsi2
#endif /* L_negsi2 */
#ifdef L_one_cmplsi2
FUNC_START one_cmplsi2
ldi:8 #0xff, r0
extsb r0
eor r0, r4
ret
FUNC_END one_cmplsi2
#endif /* L_one_cmplsi2 */
# Name of assembly file containing libgcc1 functions.
# This entry must be present, but it can be empty if the target does
# not need any assembler functions to support its code generation.
# CROSS_LIBGCC1 =
#
# Alternatively if assembler functions *are* needed then define the
# entries below:
CROSS_LIBGCC1 = libgcc1-asm.a
LIB1ASMSRC = fr30/lib1funcs.asm
LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3
# Assemble startup files.
crti.o: $(srcdir)/config/fr30/crti.asm $(GCC_PASSES)
$(GCC_FOR_TARGET) -c -o crti.o -x assembler $(srcdir)/config/fr30/crti.asm
crtn.o: $(srcdir)/config/fr30/crtn.asm $(GCC_PASSES)
$(GCC_FOR_TARGET) -c -o crtn.o -x assembler $(srcdir)/config/fr30/crtn.asm
# These are really part of libgcc1, but this will cause them to be
# built correctly, so...
LIB2FUNCS_EXTRA = fp-bit.c dp-bit.c
# If any special flags are necessary when building libgcc2 put them here.
#
# TARGET_LIBGCC2_CFLAGS
fp-bit.c: $(srcdir)/config/fp-bit.c
echo '#define FLOAT' > fp-bit.c
cat $(srcdir)/config/fp-bit.c >> fp-bit.c
dp-bit.c: $(srcdir)/config/fp-bit.c
cat $(srcdir)/config/fp-bit.c > dp-bit.c
# Enable the following if multilibs are needed.
# See gcc/genmultilib, gcc/gcc.texi and gcc/tm.texi for a
# description of the options and their values.
#
# MULTILIB_OPTIONS =
# MULTILIB_DIRNAMES =
# MULTILIB_MATCHES =
# MULTILIB_EXCEPTIONS =
# MULTILIB_EXTRA_OPTS =
#
# LIBGCC = stmp-multilib
# INSTALL_LIBGCC = install-multilib
/* Definitions of FR30 target.
Copyright (C) 1998, 1999 Free Software Foundation, Inc.
Contributed by Cygnus Solutions.
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. */
/* #defines that need visibility everywhere. */
#define FALSE 0
#define TRUE 1
/* A C expression for the status code to be returned when the compiler exits
after serious errors. */
#define FATAL_EXIT_CODE 33
/* A C expression for the status code to be returned when the compiler exits
without serious errors. */
#define SUCCESS_EXIT_CODE 0
/* Defined if the host machine stores words of multi-word values in big-endian
order. (GNU CC does not depend on the host byte ordering within a word.) */
/* #define HOST_WORDS_BIG_ENDIAN 1 */
/* In addition, configuration files for system V define `bcopy', `bzero' and
`bcmp' as aliases. Some files define `alloca' as a macro when compiled with
GNU CC, in order to take advantage of the benefit of GNU CC's built-in
`alloca'. */
/* target machine dependencies.
tm.h is a symbolic link to the actual target specific file. */
#include "tm.h"
/* end of xm-fr30.h */
......@@ -3392,6 +3392,11 @@ for machine in $build $host $target; do
elxsi-elxsi-*)
use_collect2=yes
;;
fr30-*-elf)
tm_file="fr30/fr30.h"
tmake_file=fr30/t-fr30
extra_parts="crti.o crtn.o crtbegin.o crtend.o"
;;
# This hasn't been upgraded to GCC 2.
# fx80-alliant-*) # Alliant FX/80
# ;;
......
......@@ -865,6 +865,11 @@ changequote([,])dnl
elxsi-elxsi-*)
use_collect2=yes
;;
fr30-*-elf)
tm_file="fr30/fr30.h"
tmake_file=fr30/t-fr30
extra_parts="crti.o crtn.o crtbegin.o crtend.o"
;;
# This hasn't been upgraded to GCC 2.
# fx80-alliant-*) # Alliant FX/80
# ;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment