sh.opt revision 1.3
1; Options for the SH port of the compiler. 2 3; Copyright (C) 2005-2013 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 3, 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 COPYING3. If not see 19; <http://www.gnu.org/licenses/>. 20 21;; Used for various architecture options. 22Mask(SH_E) 23 24;; Set if the default precision of the FPU is single. 25Mask(FPU_SINGLE) 26 27;; Set if the a double-precision FPU is present but is restricted to 28;; single precision usage only. 29Mask(FPU_SINGLE_ONLY) 30 31;; Set if we should generate code using type 2A insns. 32Mask(HARD_SH2A) 33 34;; Set if we should generate code using type 2A DF insns. 35Mask(HARD_SH2A_DOUBLE) 36 37;; Set if compiling for SH4 hardware (to be used for insn costs etc.) 38Mask(HARD_SH4) 39 40;; Set if we should generate code for a SH5 CPU (either ISA). 41Mask(SH5) 42 43;; Set if we should save all target registers. 44Mask(SAVE_ALL_TARGET_REGS) 45 46m1 47Target RejectNegative Mask(SH1) Condition(SUPPORT_SH1) 48Generate SH1 code 49 50m2 51Target RejectNegative Mask(SH2) Condition(SUPPORT_SH2) 52Generate SH2 code 53 54m2a 55Target RejectNegative Condition(SUPPORT_SH2A) 56Generate default double-precision SH2a-FPU code 57 58m2a-nofpu 59Target RejectNegative Condition(SUPPORT_SH2A_NOFPU) 60Generate SH2a FPU-less code 61 62m2a-single 63Target RejectNegative Condition(SUPPORT_SH2A_SINGLE) 64Generate default single-precision SH2a-FPU code 65 66m2a-single-only 67Target RejectNegative Condition(SUPPORT_SH2A_SINGLE_ONLY) 68Generate only single-precision SH2a-FPU code 69 70m2e 71Target RejectNegative Condition(SUPPORT_SH2E) 72Generate SH2e code 73 74m3 75Target RejectNegative Mask(SH3) Condition(SUPPORT_SH3) 76Generate SH3 code 77 78m3e 79Target RejectNegative Condition(SUPPORT_SH3E) 80Generate SH3e code 81 82m4 83Target RejectNegative Mask(SH4) Condition(SUPPORT_SH4) 84Generate SH4 code 85 86m4-100 87Target RejectNegative Condition(SUPPORT_SH4) 88Generate SH4-100 code 89 90m4-200 91Target RejectNegative Condition(SUPPORT_SH4) 92Generate SH4-200 code 93 94;; TARGET_SH4_300 indicates if we have the ST40-300 instruction set and 95;; pipeline - irrespective of ABI. 96m4-300 97Target RejectNegative Condition(SUPPORT_SH4) Var(TARGET_SH4_300) 98Generate SH4-300 code 99 100m4-nofpu 101Target RejectNegative Condition(SUPPORT_SH4_NOFPU) 102Generate SH4 FPU-less code 103 104m4-100-nofpu 105Target RejectNegative Condition(SUPPORT_SH4_NOFPU) 106Generate SH4-100 FPU-less code 107 108m4-200-nofpu 109Target RejectNegative Condition(SUPPORT_SH4_NOFPU) 110Generate SH4-200 FPU-less code 111 112m4-300-nofpu 113Target RejectNegative Condition(SUPPORT_SH4_NOFPU) Var(TARGET_SH4_300) 114Generate SH4-300 FPU-less code 115 116m4-340 117Target RejectNegative Condition(SUPPORT_SH4_NOFPU) Var(TARGET_SH4_300) 118Generate code for SH4 340 series (MMU/FPU-less) 119;; passes -isa=sh4-nommu-nofpu to the assembler. 120 121m4-400 122Target RejectNegative Condition(SUPPORT_SH4_NOFPU) 123Generate code for SH4 400 series (MMU/FPU-less) 124;; passes -isa=sh4-nommu-nofpu to the assembler. 125 126m4-500 127Target RejectNegative Condition(SUPPORT_SH4_NOFPU) 128Generate code for SH4 500 series (FPU-less). 129;; passes -isa=sh4-nofpu to the assembler. 130 131m4-single 132Target RejectNegative Condition(SUPPORT_SH4_SINGLE) 133Generate default single-precision SH4 code 134 135m4-100-single 136Target RejectNegative Condition(SUPPORT_SH4_SINGLE) 137Generate default single-precision SH4-100 code 138 139m4-200-single 140Target RejectNegative Condition(SUPPORT_SH4_SINGLE) 141Generate default single-precision SH4-200 code 142 143m4-300-single 144Target RejectNegative Condition(SUPPORT_SH4_SINGLE) Var(TARGET_SH4_300) 145Generate default single-precision SH4-300 code 146 147m4-single-only 148Target RejectNegative Condition(SUPPORT_SH4_SINGLE_ONLY) 149Generate only single-precision SH4 code 150 151m4-100-single-only 152Target RejectNegative Condition(SUPPORT_SH4_SINGLE_ONLY) 153Generate only single-precision SH4-100 code 154 155m4-200-single-only 156Target RejectNegative Condition(SUPPORT_SH4_SINGLE_ONLY) 157Generate only single-precision SH4-200 code 158 159m4-300-single-only 160Target RejectNegative Condition(SUPPORT_SH4_SINGLE_ONLY) Var(TARGET_SH4_300) 161Generate only single-precision SH4-300 code 162 163m4a 164Target RejectNegative Mask(SH4A) Condition(SUPPORT_SH4A) 165Generate SH4a code 166 167m4a-nofpu 168Target RejectNegative Condition(SUPPORT_SH4A_NOFPU) 169Generate SH4a FPU-less code 170 171m4a-single 172Target RejectNegative Condition(SUPPORT_SH4A_SINGLE) 173Generate default single-precision SH4a code 174 175m4a-single-only 176Target RejectNegative Condition(SUPPORT_SH4A_SINGLE_ONLY) 177Generate only single-precision SH4a code 178 179m4al 180Target RejectNegative Condition(SUPPORT_SH4AL) 181Generate SH4al-dsp code 182 183m5-32media 184Target RejectNegative Condition(SUPPORT_SH5_32MEDIA) 185Generate 32-bit SHmedia code 186 187m5-32media-nofpu 188Target RejectNegative Condition(SUPPORT_SH5_32MEDIA_NOFPU) 189Generate 32-bit FPU-less SHmedia code 190 191m5-64media 192Target RejectNegative Condition(SUPPORT_SH5_64MEDIA) 193Generate 64-bit SHmedia code 194 195m5-64media-nofpu 196Target RejectNegative Condition(SUPPORT_SH5_64MEDIA_NOFPU) 197Generate 64-bit FPU-less SHmedia code 198 199m5-compact 200Target RejectNegative Condition(SUPPORT_SH5_32MEDIA) 201Generate SHcompact code 202 203m5-compact-nofpu 204Target RejectNegative Condition(SUPPORT_SH5_32MEDIA_NOFPU) 205Generate FPU-less SHcompact code 206 207maccumulate-outgoing-args 208Target Report Var(TARGET_ACCUMULATE_OUTGOING_ARGS) Init(1) 209Reserve space for outgoing arguments in the function prologue 210 211madjust-unroll 212Target Ignore 213Does nothing. Preserved for backward compatibility. 214 215mb 216Target Report RejectNegative InverseMask(LITTLE_ENDIAN) 217Generate code in big endian mode 218 219mbigtable 220Target Report RejectNegative Mask(BIGTABLE) 221Generate 32-bit offsets in switch tables 222 223mbitops 224Target Report RejectNegative Mask(BITOPS) 225Generate bit instructions 226 227mbranch-cost= 228Target RejectNegative Joined UInteger Var(sh_branch_cost) Init(-1) 229Cost to assume for a branch insn 230 231mzdcbranch 232Target Var(TARGET_ZDCBRANCH) 233Assume that zero displacement conditional branches are fast 234 235mcbranchdi 236Target Var(TARGET_CBRANCHDI4) 237Enable cbranchdi4 pattern 238 239mcmpeqdi 240Target Var(TARGET_CMPEQDI_T) 241Emit cmpeqdi_t pattern even when -mcbranchdi is in effect. 242 243mcut2-workaround 244Target RejectNegative Var(TARGET_SH5_CUT2_WORKAROUND) 245Enable SH5 cut2 workaround 246 247mdalign 248Target Report RejectNegative Mask(ALIGN_DOUBLE) 249Align doubles at 64-bit boundaries 250 251mdiv= 252Target RejectNegative Joined Var(sh_div_str) Init("") 253Division strategy, one of: call, call2, fp, inv, inv:minlat, inv20u, inv20l, inv:call, inv:call2, inv:fp, call-div1, call-fp, call-table 254 255mdivsi3_libfunc= 256Target RejectNegative Joined Var(sh_divsi3_libfunc) Init("") 257Specify name for 32 bit signed division function 258 259mfmovd 260Target RejectNegative Mask(FMOVD) 261Enable the use of 64-bit floating point registers in fmov instructions. See -mdalign if 64-bit alignment is required. 262 263mfixed-range= 264Target RejectNegative Joined Var(sh_fixed_range_str) 265Specify range of registers to make fixed 266 267mgettrcost= 268Target RejectNegative Joined UInteger Var(sh_gettrcost) Init(-1) 269Cost to assume for gettr insn 270 271mhitachi 272Target Report RejectNegative Mask(HITACHI) 273Follow Renesas (formerly Hitachi) / SuperH calling conventions 274 275mieee 276Target Var(TARGET_IEEE) 277Increase the IEEE compliance for floating-point comparisons 278 279mindexed-addressing 280Target Report Mask(ALLOW_INDEXED_ADDRESS) Condition(SUPPORT_ANY_SH5_32MEDIA) 281Enable the use of the indexed addressing mode for SHmedia32/SHcompact 282 283minline-ic_invalidate 284Target Report Var(TARGET_INLINE_IC_INVALIDATE) 285inline code to invalidate instruction cache entries after setting up nested function trampolines 286 287minvalid-symbols 288Target Report Mask(INVALID_SYMBOLS) Condition(SUPPORT_ANY_SH5) 289Assume symbols might be invalid 290 291misize 292Target Report RejectNegative Mask(DUMPISIZE) 293Annotate assembler instructions with estimated addresses 294 295ml 296Target Report RejectNegative Mask(LITTLE_ENDIAN) 297Generate code in little endian mode 298 299mnomacsave 300Target Report RejectNegative Mask(NOMACSAVE) 301Mark MAC register as call-clobbered 302 303;; ??? This option is not useful, but is retained in case there are people 304;; who are still relying on it. It may be deleted in the future. 305mpadstruct 306Target Report RejectNegative Mask(PADSTRUCT) 307Make structs a multiple of 4 bytes (warning: ABI altered) 308 309mprefergot 310Target Report RejectNegative Mask(PREFERGOT) 311Emit function-calls using global offset table when generating PIC 312 313mpt-fixed 314Target Report Mask(PT_FIXED) Condition(SUPPORT_ANY_SH5) 315Assume pt* instructions won't trap 316 317mrelax 318Target Report RejectNegative Mask(RELAX) 319Shorten address references during linking 320 321mrenesas 322Target Mask(HITACHI) 323Follow Renesas (formerly Hitachi) / SuperH calling conventions 324 325msoft-atomic 326Target Undocumented Alias(matomic-model=, soft-gusa, none) 327Deprecated. Use -matomic= instead to select the atomic model 328 329matomic-model= 330Target Report RejectNegative Joined Var(sh_atomic_model_str) 331Specify the model for atomic operations 332 333mtas 334Target Report RejectNegative Var(TARGET_ENABLE_TAS) 335Use tas.b instruction for __atomic_test_and_set 336 337mspace 338Target RejectNegative Alias(Os) 339Deprecated. Use -Os instead 340 341multcost= 342Target RejectNegative Joined UInteger Var(sh_multcost) Init(-1) 343Cost to assume for a multiply insn 344 345musermode 346Target Var(TARGET_USERMODE) 347Don't generate privileged-mode only code; implies -mno-inline-ic_invalidate if the inline code would not work in user mode. 348 349;; We might want to enable this by default for TARGET_HARD_SH4, because 350;; zero-offset branches have zero latency. Needs some benchmarking. 351mpretend-cmove 352Target Var(TARGET_PRETEND_CMOVE) 353Pretend a branch-around-a-move is a conditional move. 354 355mfsca 356Target Var(TARGET_FSCA) 357Enable the use of the fsca instruction 358 359mfsrra 360Target Var(TARGET_FSRRA) 361Enable the use of the fsrra instruction 362 363