summaryrefslogtreecommitdiff
path: root/gcc/config/h8300/t-h8300
blob: 616849007b461afe8e4d64e13d4ca0bbd040f8a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002, 2003,
# 2004, 2011 Free Software Foundation, Inc.
#
# 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 3, 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 COPYING3.  If not see
# <http://www.gnu.org/licenses/>.

LIB1ASMSRC = h8300/lib1funcs.asm
LIB1ASMFUNCS = _cmpsi2 _ucmpsi2 _divhi3 _divsi3 _mulhi3 _mulsi3 \
  _fixunssfsi_asm

LIB2FUNCS_EXTRA = \
	$(srcdir)/config/h8300/clzhi2.c \
	$(srcdir)/config/h8300/ctzhi2.c \
	$(srcdir)/config/h8300/parityhi2.c \
	$(srcdir)/config/h8300/popcounthi2.c \
	$(srcdir)/config/h8300/fixunssfsi.c

# We do not have DF type, so fake out the libgcc2 compilation.
TARGET_LIBGCC2_CFLAGS = -DDF=SF

MULTILIB_OPTIONS = mh/ms/msx mn mint32
MULTILIB_DIRNAMES = h8300h h8300s h8sx normal int32
MULTILIB_EXCEPTIONS = mint32 mn mn/mint32

LIBGCC = stmp-multilib
INSTALL_LIBGCC = install-multilib

s-config s-conditions s-flags s-codes s-constants s-emit s-recog \
s-opinit s-extract s-peep s-attr s-attrtab s-output: \
	$(srcdir)/config/h8300/mova.md

$(srcdir)/config/h8300/mova.md: $(srcdir)/config/h8300/genmova.sh
	$(SHELL) $(srcdir)/config/h8300/genmova.sh \
	  > $(srcdir)/config/h8300/mova.md