OSDN Git Service

* config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
[pf3gnuchains/gcc-fork.git] / gcc / config / m68k / altos3068.h
1 /* Definitions of target machine for GNU compiler.  Altos 3068 68020 version.
2    Copyright (C) 1988, 1989, 1993, 1996 Free Software Foundation, Inc.
3    Contributed by Jyrki Kuoppala <jkp@cs.hut.fi>
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, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA.  */
21
22
23 #include "m68k/m68k.h"
24
25 /* See m68k.h.  7 means 68020 with 68881.  */
26 /* 5 is without 68881.  Change to 7 if you have 68881 */
27
28 #ifndef TARGET_DEFAULT
29 #define TARGET_DEFAULT (MASK_BITFIELD|MASK_68020)
30
31 /* Don't try using XFmode.  */
32 #undef LONG_DOUBLE_TYPE_SIZE
33 #define LONG_DOUBLE_TYPE_SIZE 64
34 #endif
35
36 /* Define __HAVE_68881__ in preprocessor,
37    according to the -m flags.
38    This will control the use of inline 68881 insns in certain macros.
39    Also inform the program which CPU this is for.  */
40
41 #if TARGET_DEFAULT & MASK_68881
42
43 /* -m68881 is the default */
44 #define CPP_SPEC \
45 "%{!msoft-float:-D__HAVE_68881__ }\
46 %{!ansi:%{m68000:-Dmc68010}%{mc68000:-Dmc68010}%{!mc68000:%{!m68000:-Dmc68020}}}"
47
48 #else
49
50 /* -msoft-float is the default */
51 #define CPP_SPEC \
52 "%{m68881:-D__HAVE_68881__ }\
53 %{!ansi:%{m68000:-Dmc68010}%{mc68000:-Dmc68010}%{!mc68000:%{!m68000:-Dmc68020}}}"
54
55 #endif
56
57 /* -m68000 requires special flags to the assembler.  */
58
59 #define ASM_SPEC \
60  "%{m68000:-mc68010}%{mc68000:-mc68010}%{!mc68000:%{!m68000:-mc68020}}"
61
62 /* Names to predefine in the preprocessor for this target machine.  */
63
64 #define CPP_PREDEFINES "-Dmc68000 -DPORTAR -Dmc68k32 -Uvax -Dm68k -Dunix -Asystem=unix  -Acpu=m68k -Amachine=m68k"
65
66 /* Every structure or union's size must be a multiple of 2 bytes.  */
67
68 #define STRUCTURE_SIZE_BOUNDARY 16
69
70 /* Generate calls to memcpy, memcmp and memset.  */
71 #define TARGET_MEM_FUNCTIONS
72
73 /* We use gnu assembler, linker and gdb, so we want DBX format.  */
74
75 #define DBX_DEBUGGING_INFO
76
77 /* Tell some conditionals we will use GAS.  Is this really used?  */
78
79 #define USE_GAS
80
81 #undef ASM_OUTPUT_FLOAT_OPERAND
82 #define ASM_OUTPUT_FLOAT_OPERAND(CODE,FILE,VALUE)               \
83  do {                                                           \
84       if (CODE == 'f')                                          \
85         {                                                       \
86           char dstr[30];                                        \
87           REAL_VALUE_TO_DECIMAL (VALUE, "%.9g", dstr);          \
88           fprintf (FILE, "#0r%s", dstr);                        \
89         }                                                       \
90       else                                                      \
91         {                                                       \
92           long l;                                               \
93           REAL_VALUE_TO_TARGET_SINGLE (VALUE, l);               \
94           if (sizeof (int) == sizeof (long))                    \
95             asm_fprintf ((FILE), "%I0x%x", (int) l);            \
96           else                                                  \
97             asm_fprintf ((FILE), "%I0x%lx", l);                 \
98         }                                                       \
99      } while (0)
100
101 #undef ASM_OUTPUT_DOUBLE_OPERAND
102 #define ASM_OUTPUT_DOUBLE_OPERAND(FILE,VALUE)           \
103   do { char dstr[30];                                   \
104        REAL_VALUE_TO_DECIMAL (VALUE, "%.20g", dstr);    \
105        fprintf (FILE, "#0r%s", dstr);                   \
106      } while (0)
107
108 /* Return pointer values in both d0 and a0.  */
109
110 #undef FUNCTION_EXTRA_EPILOGUE
111 #define FUNCTION_EXTRA_EPILOGUE(FILE, SIZE)                             \
112 {                                                                       \
113   if (current_function_returns_pointer                                  \
114       && ! find_equiv_reg (0, get_last_insn (), 0, 0, 0, 8, Pmode))     \
115     fprintf (FILE, "\tmovel d0,a0\n");                                  \
116 }