OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [config/] [m68k/] [m68k-none.h] - Blame information for rev 858

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
/* Definitions of target machine for GNU compiler.  "naked" 68020.
2
   Copyright (C) 1994, 1996, 2003, 2006, 2007 Free Software Foundation, Inc.
3
 
4
This file is part of GCC.
5
 
6
GCC is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 3, or (at your option)
9
any later version.
10
 
11
GCC is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
GNU General Public License for more details.
15
 
16
You should have received a copy of the GNU General Public License
17
along with GCC; see the file COPYING3.  If not see
18
<http://www.gnu.org/licenses/>.  */
19
 
20
/* Default to m68k (m68020).  */
21
#ifndef TARGET_CPU_DEFAULT
22
#define TARGET_CPU_DEFAULT M68K_CPU_m68k
23
#endif
24
 
25
/* These are values set by the configure script in TARGET_CPU_DEFAULT.
26
   They are (sequential integer + (desired value for TARGET_DEFAULT) << 4).  */
27
#define M68K_CPU_m68k   (0 + ((MASK_68020|MASK_68881|MASK_BITFIELD)<<4))
28
#define M68K_CPU_m68000 (1 + (0 << 4))
29
#define M68K_CPU_m68010 (1 + (0 << 4)) /* make same as m68000 */
30
#define M68K_CPU_m68020 (2 + ((MASK_68020|MASK_68881|MASK_BITFIELD) << 4))
31
#define M68K_CPU_m68030 (3 + ((MASK_68030|MASK_68020|MASK_68881|MASK_BITFIELD) << 4))
32
#define M68K_CPU_m68040 (4 + ((MASK_68040_ONLY|MASK_68020|MASK_68881|MASK_BITFIELD) << 4))
33
#define M68K_CPU_m68302 (5 + (0 << 4))
34
#define M68K_CPU_m68332 (6 + (MASK_68020 << 4))
35
 
36
/* This is tested for below, so if target wants to override this, it
37
   just set this first in cover file.  */
38
#ifndef TARGET_DEFAULT
39
#define TARGET_DEFAULT (TARGET_CPU_DEFAULT >> 4)
40
#endif
41
 
42
/* Defaults for the various specs below.
43
   These are collected here so we only test TARGET_CPU_DEFAULT once.  */
44
/* ??? CC1_CPU_DEFAULT_SPEC was copied over from the earlier version of
45
   this file.  However, it's not used anywhere here because it doesn't
46
   seem to be necessary.  */
47
#if TARGET_CPU_DEFAULT == M68K_CPU_m68k || TARGET_CPU_DEFAULT == M68K_CPU_m68020
48
#define ASM_CPU_DEFAULT_SPEC "-mc68020"
49
#define CC1_CPU_DEFAULT_SPEC "-m68020"
50
#else
51
#if TARGET_CPU_DEFAULT == M68K_CPU_m68000
52
#define ASM_CPU_DEFAULT_SPEC "-mc68000"
53
#define CC1_CPU_DEFAULT_SPEC "-m68000"
54
#else
55
#if TARGET_CPU_DEFAULT == M68K_CPU_m68030
56
#define ASM_CPU_DEFAULT_SPEC "-mc68030"
57
#define CC1_CPU_DEFAULT_SPEC "-m68030"
58
#else
59
#if TARGET_CPU_DEFAULT == M68K_CPU_m68040
60
#define ASM_CPU_DEFAULT_SPEC "-mc68040"
61
#define CC1_CPU_DEFAULT_SPEC "-m68040"
62
#else
63
#if TARGET_CPU_DEFAULT == M68K_CPU_m68302
64
#define ASM_CPU_DEFAULT_SPEC "-mc68302"
65
#define CC1_CPU_DEFAULT_SPEC "-m68302"
66
#else
67
#if TARGET_CPU_DEFAULT == M68K_CPU_m68332
68
#define ASM_CPU_DEFAULT_SPEC "-mc68332"
69
#define CC1_CPU_DEFAULT_SPEC "-m68332"
70
#else
71
Unrecognized value in TARGET_CPU_DEFAULT.
72
#endif
73
#endif
74
#endif
75
#endif
76
#endif
77
#endif
78
 
79
/* Pass flags to gas indicating which type of processor we have.  */
80
 
81
#undef ASM_SPEC
82
#define ASM_SPEC "\
83
%{m68851}%{mno-68851}%{m68881}%{mno-68881}%{msoft-float:-mno-68881} %{m68000}%{m68302}%{mc68000}%{m68010}%{m68020}%{mc68020}%{m68030}%{m68040}%{m68020-40:-mc68040} %{m68020-60:-mc68040} %{m68060}%{mcpu32}%{m68332}%{m5200}%{m5206e}%{m528x}%{m5307}%{m5407}%{mcfv4e}%{!mc68000:%{!m68000:%{!m68302:%{!m68010:%{!mc68020:%{!m68020:%{!m68030:%{!m68040:%{!m68020-40:%{!m68020-60:%{!m68060:%{!mcpu32:%{!m68332:%{!m5200:%{!m5206e:%{!m528x:%{!m5307:%{!m5407:%{!mcfv4e:%(asm_cpu_default)}}}}}}}}}}}}}}}}}}} \
84
%{fPIC:--pcrel} %{fpic:--pcrel} %{msep-data:--pcrel} %{mid-shared-library:--pcrel} \
85
"
86
 
87
/* cc1/cc1plus always receives all the -m flags. If the specs strings above
88
   are consistent with the flags in m68k.opt, there should be no need for
89
   any further cc1/cc1plus specs.  */
90
 
91
#undef CC1_SPEC
92
#define CC1_SPEC ""
93
 
94
/* This macro defines names of additional specifications to put in the specs
95
   that can be used in various specifications like CC1_SPEC.  Its definition
96
   is an initializer with a subgrouping for each command option.
97
 
98
   Each subgrouping contains a string constant, that defines the
99
   specification name, and a string constant that used by the GCC driver
100
   program.
101
 
102
   Do not define this macro if it does not need to do anything.  */
103
 
104
#define EXTRA_SPECS                                     \
105
  { "asm_cpu_default",  ASM_CPU_DEFAULT_SPEC },         \
106
  { "cc1_cpu_default",  CC1_CPU_DEFAULT_SPEC },         \
107
  SUBTARGET_EXTRA_SPECS
108
 
109
#define CPP_SUBTARGET_SPEC ""
110
#define SUBTARGET_EXTRA_SPECS
111
 
112
/* Avoid building multilib libraries for the defaults.
113
   For targets not handled here, just build the full set of multilibs.
114
   The default is m68k 99.9% of the time anyway.  */
115
 
116
#if TARGET_CPU_DEFAULT == M68K_CPU_m68k || TARGET_CPU_DEFAULT == M68K_CPU_m68020
117
#if TARGET_DEFAULT & MASK_68881
118
#define MULTILIB_DEFAULTS { "m68020", "m68881" }
119
#else
120
#define MULTILIB_DEFAULTS { "m68020", "msoft-float" }
121
#endif
122
#endif
123
 
124
#if TARGET_CPU_DEFAULT == M68K_CPU_m68000 || TARGET_CPU_DEFAULT == M68K_CPU_m68302
125
#if TARGET_DEFAULT & MASK_68881
126
#define MULTILIB_DEFAULTS { "m68000", "m68881" }
127
#else
128
#define MULTILIB_DEFAULTS { "m68000", "msoft-float" }
129
#endif
130
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.