1 |
12 |
jlechner |
; Options for the CRIS port of the compiler.
|
2 |
|
|
|
3 |
|
|
; Copyright (C) 2005 Free Software Foundation, Inc.
|
4 |
|
|
;
|
5 |
|
|
; This file is part of GCC.
|
6 |
|
|
;
|
7 |
|
|
; GCC is free software; you can redistribute it and/or modify it under
|
8 |
|
|
; the terms of the GNU General Public License as published by the Free
|
9 |
|
|
; Software Foundation; either version 2, or (at your option) any later
|
10 |
|
|
; version.
|
11 |
|
|
;
|
12 |
|
|
; GCC is distributed in the hope that it will be useful, but WITHOUT ANY
|
13 |
|
|
; WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
14 |
|
|
; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
15 |
|
|
; for more details.
|
16 |
|
|
;
|
17 |
|
|
; You should have received a copy of the GNU General Public License
|
18 |
|
|
; along with GCC; see the file COPYING. If not, write to the Free
|
19 |
|
|
; Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
|
20 |
|
|
; 02110-1301, USA.
|
21 |
|
|
|
22 |
|
|
; TARGET_MUL_BUG: Whether or not to work around multiplication
|
23 |
|
|
; instruction hardware bug when generating code for models where
|
24 |
|
|
; it may be present. From the trouble report for Etrax 100 LX:
|
25 |
|
|
; "A multiply operation may cause incorrect cache behaviour
|
26 |
|
|
; under some specific circumstances. The problem can occur if
|
27 |
|
|
; the instruction following the multiply instruction causes a
|
28 |
|
|
; cache miss, and multiply operand 1 (source operand) bits
|
29 |
|
|
; [31:27] matches the logical mapping of the mode register
|
30 |
|
|
; address (0xb0....), and bits [9:2] of operand 1 matches the
|
31 |
|
|
; TLB register address (0x258-0x25f). There is such a mapping
|
32 |
|
|
; in kernel mode or when the MMU is off. Normally there is no
|
33 |
|
|
; such mapping in user mode, and the problem will therefore
|
34 |
|
|
; probably not occur in Linux user mode programs."
|
35 |
|
|
;
|
36 |
|
|
; We have no sure-fire way to know from within GCC that we're
|
37 |
|
|
; compiling a user program. For example, -fpic/PIC is used in
|
38 |
|
|
; libgcc which is linked into the kernel. However, the
|
39 |
|
|
; workaround option -mno-mul-bug can be safely used per-package
|
40 |
|
|
; when compiling programs. The same goes for general user-only
|
41 |
|
|
; libraries such as glibc, since there's no user-space
|
42 |
|
|
; driver-like program that gets a mapping of I/O registers (all
|
43 |
|
|
; on the same page, including the TLB registers).
|
44 |
|
|
mmul-bug-workaround
|
45 |
|
|
Target Report Mask(MUL_BUG)
|
46 |
|
|
Work around bug in multiplication instruction
|
47 |
|
|
|
48 |
|
|
; TARGET_ETRAX4_ADD: Instruction-set additions from Etrax 4 and up.
|
49 |
|
|
; (Just "lz", which we don't really generate from GCC -- yet).
|
50 |
|
|
metrax4
|
51 |
|
|
Target Report Mask(ETRAX4_ADD)
|
52 |
|
|
Compile for ETRAX 4 (CRIS v3)
|
53 |
|
|
|
54 |
|
|
; See cris_handle_option.
|
55 |
|
|
metrax100
|
56 |
|
|
Target Report RejectNegative
|
57 |
|
|
Compile for ETRAX 100 (CRIS v8)
|
58 |
|
|
|
59 |
|
|
; See cris_handle_option.
|
60 |
|
|
mno-etrax100
|
61 |
|
|
Target Report RejectNegative Undocumented
|
62 |
|
|
|
63 |
|
|
mpdebug
|
64 |
|
|
Target Report Mask(PDEBUG)
|
65 |
|
|
Emit verbose debug information in assembly code
|
66 |
|
|
|
67 |
|
|
; TARGET_CCINIT: Whether to use condition-codes generated by
|
68 |
|
|
; insns other than the immediately preceding compare/test insn.
|
69 |
|
|
; Used to check for errors in notice_update_cc.
|
70 |
|
|
mcc-init
|
71 |
|
|
Target Report Mask(CCINIT)
|
72 |
|
|
Do not use condition codes from normal instructions
|
73 |
|
|
|
74 |
|
|
; TARGET_SIDE_EFFECT_PREFIXES: Whether to use side-effect
|
75 |
|
|
; patterns. Used to debug the [rx=ry+i] type patterns.
|
76 |
|
|
mside-effects
|
77 |
|
|
Target Report RejectNegative Mask(SIDE_EFFECT_PREFIXES) Undocumented
|
78 |
|
|
|
79 |
|
|
mno-side-effects
|
80 |
|
|
Target Report RejectNegative InverseMask(SIDE_EFFECT_PREFIXES)
|
81 |
|
|
Do not emit addressing modes with side-effect assignment
|
82 |
|
|
|
83 |
|
|
; TARGET_STACK_ALIGN: Whether to *keep* (not force) alignment of
|
84 |
|
|
; stack at 16 (or 32, depending on TARGET_ALIGN_BY_32) bits.
|
85 |
|
|
mstack-align
|
86 |
|
|
Target Report RejectNegative Mask(STACK_ALIGN) Undocumented
|
87 |
|
|
|
88 |
|
|
mno-stack-align
|
89 |
|
|
Target Report RejectNegative InverseMask(STACK_ALIGN)
|
90 |
|
|
Do not tune stack alignment
|
91 |
|
|
|
92 |
|
|
; TARGET_DATA_ALIGN: Whether to do alignment on individual
|
93 |
|
|
; modifiable objects.
|
94 |
|
|
mdata-align
|
95 |
|
|
Target Report RejectNegative Mask(DATA_ALIGN) Undocumented
|
96 |
|
|
|
97 |
|
|
mno-data-align
|
98 |
|
|
Target Report RejectNegative InverseMask(DATA_ALIGN)
|
99 |
|
|
Do not tune writable data alignment
|
100 |
|
|
|
101 |
|
|
; TARGET_CONST_ALIGN: Whether to do alignment on individual
|
102 |
|
|
; non-modifiable objects.
|
103 |
|
|
mconst-align
|
104 |
|
|
Target Report RejectNegative Mask(CONST_ALIGN) Undocumented
|
105 |
|
|
|
106 |
|
|
mno-const-align
|
107 |
|
|
Target Report RejectNegative InverseMask(CONST_ALIGN)
|
108 |
|
|
Do not tune code and read-only data alignment
|
109 |
|
|
|
110 |
|
|
; See cris_handle_option.
|
111 |
|
|
m32-bit
|
112 |
|
|
Target Report RejectNegative Undocumented
|
113 |
|
|
|
114 |
|
|
; See cris_handle_option.
|
115 |
|
|
m32bit
|
116 |
|
|
Target Report RejectNegative
|
117 |
|
|
Align code and data to 32 bits
|
118 |
|
|
|
119 |
|
|
; See cris_handle_option.
|
120 |
|
|
m16-bit
|
121 |
|
|
Target Report RejectNegative Undocumented
|
122 |
|
|
|
123 |
|
|
; See cris_handle_option.
|
124 |
|
|
m16bit
|
125 |
|
|
Target Report RejectNegative Undocumented
|
126 |
|
|
|
127 |
|
|
; See cris_handle_option.
|
128 |
|
|
m8-bit
|
129 |
|
|
Target Report RejectNegative Undocumented
|
130 |
|
|
|
131 |
|
|
; See cris_handle_option.
|
132 |
|
|
m8bit
|
133 |
|
|
Target Report RejectNegative
|
134 |
|
|
Don't align items in code or data
|
135 |
|
|
|
136 |
|
|
; TARGET_PROLOGUE_EPILOGUE: Whether or not to omit function
|
137 |
|
|
; prologue and epilogue.
|
138 |
|
|
mprologue-epilogue
|
139 |
|
|
Target Report RejectNegative Mask(PROLOGUE_EPILOGUE) Undocumented
|
140 |
|
|
|
141 |
|
|
mno-prologue-epilogue
|
142 |
|
|
Target Report RejectNegative InverseMask(PROLOGUE_EPILOGUE)
|
143 |
|
|
Do not emit function prologue or epilogue
|
144 |
|
|
|
145 |
|
|
; We have to handle this m-option here since we can't wash it
|
146 |
|
|
; off in both CC1_SPEC and CC1PLUS_SPEC.
|
147 |
|
|
|
148 |
|
|
mbest-lib-options
|
149 |
|
|
Target Report RejectNegative
|
150 |
|
|
Use the most feature-enabling options allowed by other options
|
151 |
|
|
|
152 |
|
|
; FIXME: The following comment relates to gcc before cris.opt.
|
153 |
|
|
; Check it it's still valid:
|
154 |
|
|
; We must call it "override-" since calling it "no-" will cause
|
155 |
|
|
; gcc.c to forget it, if there's a "later" -mbest-lib-options.
|
156 |
|
|
; Kludgy, but needed for some multilibbed files.
|
157 |
|
|
moverride-best-lib-options
|
158 |
|
|
Target Report RejectNegative
|
159 |
|
|
Override -mbest-lib-options
|
160 |
|
|
|
161 |
|
|
mcpu=
|
162 |
|
|
Target Report RejectNegative Joined Undocumented Var(cris_cpu_str)
|
163 |
|
|
|
164 |
|
|
march=
|
165 |
|
|
Target Report RejectNegative Joined Var(cris_cpu_str) VarExists
|
166 |
|
|
-march=ARCH Generate code for the specified chip or CPU version
|
167 |
|
|
|
168 |
|
|
mtune=
|
169 |
|
|
Target Report RejectNegative Joined Var(cris_tune_str)
|
170 |
|
|
-mtune=ARCH Tune alignment for the specified chip or CPU version
|
171 |
|
|
|
172 |
|
|
mmax-stackframe=
|
173 |
|
|
Target Report RejectNegative Joined Var(cris_max_stackframe_str)
|
174 |
|
|
-mmax-stackframe=SIZE Warn when a stackframe is larger than the specified size
|
175 |
|
|
|
176 |
|
|
max-stackframe=
|
177 |
|
|
Target Report RejectNegative Joined Undocumented Var(cris_max_stackframe_str) VarExists
|
178 |
|
|
|
179 |
|
|
; TARGET_SVINTO: Currently this just affects alignment. FIXME:
|
180 |
|
|
; Redundant with TARGET_ALIGN_BY_32, or put machine stuff here?
|
181 |
|
|
; This and the others below could just as well be variables and
|
182 |
|
|
; TARGET_* defines in cris.h.
|
183 |
|
|
Mask(SVINTO)
|
184 |
|
|
|
185 |
|
|
; TARGET_ALIGN_BY_32: Say that all alignment specifications say
|
186 |
|
|
; to prefer 32 rather than 16 bits.
|
187 |
|
|
Mask(ALIGN_BY_32)
|
188 |
|
|
|
189 |
|
|
; TARGET_AVOID_GOTPLT is referred to in the .c and the .md so we
|
190 |
|
|
; need to allocate the flag and macros here.
|
191 |
|
|
Mask(AVOID_GOTPLT)
|