|
|
1.1 ! root 1: /* Definitions of target machine for GNU compiler. ISI 68000/68020 version. ! 2: Intended only for use with GAS, and not ISI's assembler, which is buggy ! 3: Copyright (C) 1988 Free Software Foundation, Inc. ! 4: ! 5: This file is part of GNU CC. ! 6: ! 7: GNU CC is distributed in the hope that it will be useful, ! 8: but WITHOUT ANY WARRANTY. No author or distributor ! 9: accepts responsibility to anyone for the consequences of using it ! 10: or for whether it serves any particular purpose or works at all, ! 11: unless he says so in writing. Refer to the GNU CC General Public ! 12: License for full details. ! 13: ! 14: Everyone is granted permission to copy, modify and redistribute ! 15: GNU CC, but only under the conditions described in the ! 16: GNU CC General Public License. A copy of this license is ! 17: supposed to have been given to you along with GNU CC so you ! 18: can know your rights and responsibilities. It should be in a ! 19: file named COPYING. Among other things, the copyright notice ! 20: and this notice must be preserved on all copies. */ ! 21: ! 22: #include "tm-m68k.h" ! 23: ! 24: /* See tm-m68k.h. 7 means 68020 with 68881. */ ! 25: ! 26: #define TARGET_DEFAULT 7 ! 27: ! 28: /* If the 68881 is used, link must load libmc.a instead of libc.a */ ! 29: ! 30: #define LIB_SPEC "%{msoft-float:%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}}%{!msoft-float:%{!p:%{!pg:-lmc}}%{p:-lmc_p}%{pg:-lmc_p}}" ! 31: ! 32: /* Names to predefine in the preprocessor for this target machine. */ ! 33: ! 34: #define CPP_PREDEFINES "-Dunix -Dmc68000 -Dis68k" ! 35: ! 36: /* Override parts of tm-m68000.h to fit the ISI 68k machine. */ ! 37: ! 38: #undef FUNCTION_VALUE ! 39: #undef LIBCALL_VALUE ! 40: #undef FUNCTION_VALUE_REGNO_P ! 41: #undef ASM_FILE_START ! 42: ! 43: /* If TARGET_68881, return SF and DF values in f0 instead of d0. */ ! 44: ! 45: #define FUNCTION_VALUE(VALTYPE,FUNC) LIBCALL_VALUE (TYPE_MODE (VALTYPE)) ! 46: ! 47: #define LIBCALL_VALUE(MODE) \ ! 48: gen_rtx (REG, (MODE), ((TARGET_68881 && ((MODE) == SFmode || (MODE) == DFmode)) ? 16 : 0)) ! 49: ! 50: /* 1 if N is a possible register number for a function value. ! 51: D0 may be used, and F0 as well if -m68881 is specified. */ ! 52: ! 53: #define FUNCTION_VALUE_REGNO_P(N) \ ! 54: ((N) == 0 || (TARGET_68881 && (N) == 16)) ! 55: ! 56: /* Also output something to cause the correct _doprnt to be loaded. */ ! 57: #define ASM_FILE_START "#NO_APP\n.globl fltused\n"
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.