Annotation of GNUtools/cc/config/m68k/isi.h, revision 1.1.1.1

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 free software; you can redistribute it and/or modify
                      8: it under the terms of the GNU General Public License as published by
                      9: the Free Software Foundation; either version 2, or (at your option)
                     10: any later version.
                     11: 
                     12: GNU CC is distributed in the hope that it will be useful,
                     13: but WITHOUT ANY WARRANTY; without even the implied warranty of
                     14: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                     15: GNU General Public License for more details.
                     16: 
                     17: You should have received a copy of the GNU General Public License
                     18: along with GNU CC; see the file COPYING.  If not, write to
                     19: the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
                     20: 
                     21: #include "m68k/m68k.h"
                     22: 
                     23: /* See m68k.h.  7 means 68020 with 68881. */
                     24: #ifndef TARGET_DEFAULT
                     25: #define TARGET_DEFAULT 7
                     26: #endif
                     27: 
                     28: #if TARGET_DEFAULT & 2
                     29: /* Define __HAVE_68881__ in preprocessor, unless -msoft-float is specified.
                     30:    This will control the use of inline 68881 insns in certain macros.  */
                     31: 
                     32: #define CPP_SPEC "%{!msoft-float:-D__HAVE_68881__}"
                     33: 
                     34: /* If the 68881 is used, link must load libmc.a before libc.a.  */
                     35: 
                     36: #define LIB_SPEC "%{!msoft-float:%{!p:%{!pg:-lmc}}%{p:-lmc_p}%{pg:-lmc_p}} \
                     37: %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p} %{g:-lg}"
                     38: 
                     39: #else
                     40: /* Define __HAVE_68881__ in preprocessor if -m68881 is specified.
                     41:    This will control the use of inline 68881 insns in certain macros.  */
                     42: 
                     43: #define CPP_SPEC "%{m68881:-D__HAVE_68881__}"
                     44: 
                     45: /* If the 68881 is used, link must load libmc.a instead of libc.a */
                     46: 
                     47: #define LIB_SPEC "%{m68881:%{!p:%{!pg:-lmc}}%{p:-lmc_p}%{pg:-lmc_p}} \
                     48: %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p} %{g:-lg}"
                     49: #endif
                     50: 
                     51: /* Names to predefine in the preprocessor for this target machine.  */
                     52: 
                     53: #define CPP_PREDEFINES "-Dunix -Dmc68000 -Dis68k -Asystem(unix) -Asystem(bsd) -Acpu(m68k) -Amachine(m68k)"
                     54: 
                     55: /* This is BSD, so it wants DBX format.  */
                     56: 
                     57: #define DBX_DEBUGGING_INFO
                     58: 
                     59: /* Override parts of m68k.h to fit the ISI 68k machine.  */
                     60: 
                     61: #undef FUNCTION_VALUE
                     62: #undef LIBCALL_VALUE
                     63: #undef FUNCTION_VALUE_REGNO_P
                     64: #undef NEEDS_UNTYPED_CALL
                     65: #undef ASM_FILE_START
                     66: 
                     67: /* Every structure or union's size must be a multiple of 2 bytes.  */
                     68: 
                     69: #define STRUCTURE_SIZE_BOUNDARY 16
                     70: 
                     71: /* If TARGET_68881, return SF and DF values in f0 instead of d0.  */
                     72: 
                     73: #define FUNCTION_VALUE(VALTYPE,FUNC) LIBCALL_VALUE (TYPE_MODE (VALTYPE))
                     74: 
                     75: #define LIBCALL_VALUE(MODE) \
                     76:  gen_rtx (REG, (MODE), ((TARGET_68881 && ((MODE) == SFmode || (MODE) == DFmode)) ? 16 : 0))
                     77: 
                     78: /* 1 if N is a possible register number for a function value.
                     79:    D0 may be used, and F0 as well if -m68881 is specified.  */
                     80: 
                     81: #define FUNCTION_VALUE_REGNO_P(N) \
                     82:  ((N) == 0 || (TARGET_68881 && (N) == 16))
                     83: 
                     84: /* Define this to be true when FUNCTION_VALUE_REGNO_P is true for
                     85:    more than one register.  */
                     86: 
                     87: #define NEEDS_UNTYPED_CALL 1
                     88: 
                     89: /* Also output something to cause the correct _doprnt to be loaded.  */
                     90: #define ASM_FILE_START(FILE) fprintf (FILE, "#NO_APP\n%s\n", TARGET_68881 ? ".globl fltused" : "")

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.