1 ; Options for the CRIS port of the compiler.
3 ; Copyright (C) 2005 Free Software Foundation, Inc.
5 ; This file is part of GCC.
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
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
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
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."
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).
45 Target Report Mask(MUL_BUG)
46 Work around bug in multiplication instruction
48 ; TARGET_ETRAX4_ADD: Instruction-set additions from Etrax 4 and up.
49 ; (Just "lz", which we don't really generate from GCC -- yet).
51 Target Report Mask(ETRAX4_ADD)
52 Compile for ETRAX 4 (CRIS v3)
54 ; See cris_handle_option.
56 Target Report RejectNegative
57 Compile for ETRAX 100 (CRIS v8)
59 ; See cris_handle_option.
61 Target Report RejectNegative Undocumented
64 Target Report Mask(PDEBUG)
65 Emit verbose debug information in assembly code
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.
71 Target Report Mask(CCINIT)
72 Do not use condition codes from normal instructions
74 ; TARGET_SIDE_EFFECT_PREFIXES: Whether to use side-effect
75 ; patterns. Used to debug the [rx=ry+i] type patterns.
77 Target Report RejectNegative Mask(SIDE_EFFECT_PREFIXES) Undocumented
80 Target Report RejectNegative InverseMask(SIDE_EFFECT_PREFIXES)
81 Do not emit addressing modes with side-effect assignment
83 ; TARGET_STACK_ALIGN: Whether to *keep* (not force) alignment of
84 ; stack at 16 (or 32, depending on TARGET_ALIGN_BY_32) bits.
86 Target Report RejectNegative Mask(STACK_ALIGN) Undocumented
89 Target Report RejectNegative InverseMask(STACK_ALIGN)
90 Do not tune stack alignment
92 ; TARGET_DATA_ALIGN: Whether to do alignment on individual
95 Target Report RejectNegative Mask(DATA_ALIGN) Undocumented
98 Target Report RejectNegative InverseMask(DATA_ALIGN)
99 Do not tune writable data alignment
101 ; TARGET_CONST_ALIGN: Whether to do alignment on individual
102 ; non-modifiable objects.
104 Target Report RejectNegative Mask(CONST_ALIGN) Undocumented
107 Target Report RejectNegative InverseMask(CONST_ALIGN)
108 Do not tune code and read-only data alignment
110 ; See cris_handle_option.
112 Target Report RejectNegative Undocumented
114 ; See cris_handle_option.
116 Target Report RejectNegative
117 Align code and data to 32 bits
119 ; See cris_handle_option.
121 Target Report RejectNegative Undocumented
123 ; See cris_handle_option.
125 Target Report RejectNegative Undocumented
127 ; See cris_handle_option.
129 Target Report RejectNegative Undocumented
131 ; See cris_handle_option.
133 Target Report RejectNegative
134 Don't align items in code or data
136 ; TARGET_PROLOGUE_EPILOGUE: Whether or not to omit function
137 ; prologue and epilogue.
139 Target Report RejectNegative Mask(PROLOGUE_EPILOGUE) Undocumented
141 mno-prologue-epilogue
142 Target Report RejectNegative InverseMask(PROLOGUE_EPILOGUE)
143 Do not emit function prologue or epilogue
145 ; We have to handle this m-option here since we can't wash it
146 ; off in both CC1_SPEC and CC1PLUS_SPEC.
149 Target Report RejectNegative
150 Use the most feature-enabling options allowed by other options
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
162 Target Report RejectNegative Joined Undocumented Var(cris_cpu_str)
165 Target Report RejectNegative Joined Var(cris_cpu_str) VarExists
166 -march=ARCH Generate code for the specified chip or CPU version
169 Target Report RejectNegative Joined Var(cris_tune_str)
170 -mtune=ARCH Tune alignment for the specified chip or CPU version
173 Target Report RejectNegative Joined Var(cris_max_stackframe_str)
174 -mmax-stackframe=SIZE Warn when a stackframe is larger than the specified size
177 Target Report RejectNegative Joined Undocumented Var(cris_max_stackframe_str) VarExists
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.
185 ; TARGET_ALIGN_BY_32: Say that all alignment specifications say
186 ; to prefer 32 rather than 16 bits.
189 ; TARGET_AVOID_GOTPLT is referred to in the .c and the .md so we
190 ; need to allocate the flag and macros here.