Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

605 lines
24KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Copyright (C) 1988-2020 Free Software Foundation, Inc.
  4. Permission is granted to copy, distribute and/or modify this document
  5. under the terms of the GNU Free Documentation License, Version 1.3 or
  6. any later version published by the Free Software Foundation; with the
  7. Invariant Sections being "Funding Free Software", the Front-Cover
  8. Texts being (a) (see below), and with the Back-Cover Texts being (b)
  9. (see below). A copy of the license is included in the section entitled
  10. "GNU Free Documentation License".
  11. (a) The FSF's Front-Cover Text is:
  12. A GNU Manual
  13. (b) The FSF's Back-Cover Text is:
  14. You have freedom to copy and modify this GNU Manual, like GNU
  15. software. Copies published by the Free Software Foundation raise
  16. funds for GNU development. -->
  17. <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
  18. <head>
  19. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  20. <title>SH Options (Using the GNU Compiler Collection (GCC))</title>
  21. <meta name="description" content="SH Options (Using the GNU Compiler Collection (GCC))">
  22. <meta name="keywords" content="SH Options (Using the GNU Compiler Collection (GCC))">
  23. <meta name="resource-type" content="document">
  24. <meta name="distribution" content="global">
  25. <meta name="Generator" content="makeinfo">
  26. <link href="index.html#Top" rel="start" title="Top">
  27. <link href="Option-Index.html#Option-Index" rel="index" title="Option Index">
  28. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  29. <link href="Submodel-Options.html#Submodel-Options" rel="up" title="Submodel Options">
  30. <link href="Solaris-2-Options.html#Solaris-2-Options" rel="next" title="Solaris 2 Options">
  31. <link href="Score-Options.html#Score-Options" rel="prev" title="Score Options">
  32. <style type="text/css">
  33. <!--
  34. a.summary-letter {text-decoration: none}
  35. blockquote.indentedblock {margin-right: 0em}
  36. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  37. blockquote.smallquotation {font-size: smaller}
  38. div.display {margin-left: 3.2em}
  39. div.example {margin-left: 3.2em}
  40. div.lisp {margin-left: 3.2em}
  41. div.smalldisplay {margin-left: 3.2em}
  42. div.smallexample {margin-left: 3.2em}
  43. div.smalllisp {margin-left: 3.2em}
  44. kbd {font-style: oblique}
  45. pre.display {font-family: inherit}
  46. pre.format {font-family: inherit}
  47. pre.menu-comment {font-family: serif}
  48. pre.menu-preformatted {font-family: serif}
  49. pre.smalldisplay {font-family: inherit; font-size: smaller}
  50. pre.smallexample {font-size: smaller}
  51. pre.smallformat {font-family: inherit; font-size: smaller}
  52. pre.smalllisp {font-size: smaller}
  53. span.nolinebreak {white-space: nowrap}
  54. span.roman {font-family: initial; font-weight: normal}
  55. span.sansserif {font-family: sans-serif; font-weight: normal}
  56. ul.no-bullet {list-style: none}
  57. -->
  58. </style>
  59. </head>
  60. <body lang="en">
  61. <a name="SH-Options"></a>
  62. <div class="header">
  63. <p>
  64. Next: <a href="Solaris-2-Options.html#Solaris-2-Options" accesskey="n" rel="next">Solaris 2 Options</a>, Previous: <a href="Score-Options.html#Score-Options" accesskey="p" rel="prev">Score Options</a>, Up: <a href="Submodel-Options.html#Submodel-Options" accesskey="u" rel="up">Submodel Options</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html#Option-Index" title="Index" rel="index">Index</a>]</p>
  65. </div>
  66. <hr>
  67. <a name="SH-Options-1"></a>
  68. <h4 class="subsection">3.19.48 SH Options</h4>
  69. <p>These &lsquo;<samp>-m</samp>&rsquo; options are defined for the SH implementations:
  70. </p>
  71. <dl compact="compact">
  72. <dt><code>-m1</code></dt>
  73. <dd><a name="index-m1"></a>
  74. <p>Generate code for the SH1.
  75. </p>
  76. </dd>
  77. <dt><code>-m2</code></dt>
  78. <dd><a name="index-m2"></a>
  79. <p>Generate code for the SH2.
  80. </p>
  81. </dd>
  82. <dt><code>-m2e</code></dt>
  83. <dd><p>Generate code for the SH2e.
  84. </p>
  85. </dd>
  86. <dt><code>-m2a-nofpu</code></dt>
  87. <dd><a name="index-m2a_002dnofpu"></a>
  88. <p>Generate code for the SH2a without FPU, or for a SH2a-FPU in such a way
  89. that the floating-point unit is not used.
  90. </p>
  91. </dd>
  92. <dt><code>-m2a-single-only</code></dt>
  93. <dd><a name="index-m2a_002dsingle_002donly"></a>
  94. <p>Generate code for the SH2a-FPU, in such a way that no double-precision
  95. floating-point operations are used.
  96. </p>
  97. </dd>
  98. <dt><code>-m2a-single</code></dt>
  99. <dd><a name="index-m2a_002dsingle"></a>
  100. <p>Generate code for the SH2a-FPU assuming the floating-point unit is in
  101. single-precision mode by default.
  102. </p>
  103. </dd>
  104. <dt><code>-m2a</code></dt>
  105. <dd><a name="index-m2a"></a>
  106. <p>Generate code for the SH2a-FPU assuming the floating-point unit is in
  107. double-precision mode by default.
  108. </p>
  109. </dd>
  110. <dt><code>-m3</code></dt>
  111. <dd><a name="index-m3"></a>
  112. <p>Generate code for the SH3.
  113. </p>
  114. </dd>
  115. <dt><code>-m3e</code></dt>
  116. <dd><a name="index-m3e"></a>
  117. <p>Generate code for the SH3e.
  118. </p>
  119. </dd>
  120. <dt><code>-m4-nofpu</code></dt>
  121. <dd><a name="index-m4_002dnofpu"></a>
  122. <p>Generate code for the SH4 without a floating-point unit.
  123. </p>
  124. </dd>
  125. <dt><code>-m4-single-only</code></dt>
  126. <dd><a name="index-m4_002dsingle_002donly"></a>
  127. <p>Generate code for the SH4 with a floating-point unit that only
  128. supports single-precision arithmetic.
  129. </p>
  130. </dd>
  131. <dt><code>-m4-single</code></dt>
  132. <dd><a name="index-m4_002dsingle"></a>
  133. <p>Generate code for the SH4 assuming the floating-point unit is in
  134. single-precision mode by default.
  135. </p>
  136. </dd>
  137. <dt><code>-m4</code></dt>
  138. <dd><a name="index-m4"></a>
  139. <p>Generate code for the SH4.
  140. </p>
  141. </dd>
  142. <dt><code>-m4-100</code></dt>
  143. <dd><a name="index-m4_002d100"></a>
  144. <p>Generate code for SH4-100.
  145. </p>
  146. </dd>
  147. <dt><code>-m4-100-nofpu</code></dt>
  148. <dd><a name="index-m4_002d100_002dnofpu"></a>
  149. <p>Generate code for SH4-100 in such a way that the
  150. floating-point unit is not used.
  151. </p>
  152. </dd>
  153. <dt><code>-m4-100-single</code></dt>
  154. <dd><a name="index-m4_002d100_002dsingle"></a>
  155. <p>Generate code for SH4-100 assuming the floating-point unit is in
  156. single-precision mode by default.
  157. </p>
  158. </dd>
  159. <dt><code>-m4-100-single-only</code></dt>
  160. <dd><a name="index-m4_002d100_002dsingle_002donly"></a>
  161. <p>Generate code for SH4-100 in such a way that no double-precision
  162. floating-point operations are used.
  163. </p>
  164. </dd>
  165. <dt><code>-m4-200</code></dt>
  166. <dd><a name="index-m4_002d200"></a>
  167. <p>Generate code for SH4-200.
  168. </p>
  169. </dd>
  170. <dt><code>-m4-200-nofpu</code></dt>
  171. <dd><a name="index-m4_002d200_002dnofpu"></a>
  172. <p>Generate code for SH4-200 without in such a way that the
  173. floating-point unit is not used.
  174. </p>
  175. </dd>
  176. <dt><code>-m4-200-single</code></dt>
  177. <dd><a name="index-m4_002d200_002dsingle"></a>
  178. <p>Generate code for SH4-200 assuming the floating-point unit is in
  179. single-precision mode by default.
  180. </p>
  181. </dd>
  182. <dt><code>-m4-200-single-only</code></dt>
  183. <dd><a name="index-m4_002d200_002dsingle_002donly"></a>
  184. <p>Generate code for SH4-200 in such a way that no double-precision
  185. floating-point operations are used.
  186. </p>
  187. </dd>
  188. <dt><code>-m4-300</code></dt>
  189. <dd><a name="index-m4_002d300"></a>
  190. <p>Generate code for SH4-300.
  191. </p>
  192. </dd>
  193. <dt><code>-m4-300-nofpu</code></dt>
  194. <dd><a name="index-m4_002d300_002dnofpu"></a>
  195. <p>Generate code for SH4-300 without in such a way that the
  196. floating-point unit is not used.
  197. </p>
  198. </dd>
  199. <dt><code>-m4-300-single</code></dt>
  200. <dd><a name="index-m4_002d300_002dsingle"></a>
  201. <p>Generate code for SH4-300 in such a way that no double-precision
  202. floating-point operations are used.
  203. </p>
  204. </dd>
  205. <dt><code>-m4-300-single-only</code></dt>
  206. <dd><a name="index-m4_002d300_002dsingle_002donly"></a>
  207. <p>Generate code for SH4-300 in such a way that no double-precision
  208. floating-point operations are used.
  209. </p>
  210. </dd>
  211. <dt><code>-m4-340</code></dt>
  212. <dd><a name="index-m4_002d340"></a>
  213. <p>Generate code for SH4-340 (no MMU, no FPU).
  214. </p>
  215. </dd>
  216. <dt><code>-m4-500</code></dt>
  217. <dd><a name="index-m4_002d500"></a>
  218. <p>Generate code for SH4-500 (no FPU). Passes <samp>-isa=sh4-nofpu</samp> to the
  219. assembler.
  220. </p>
  221. </dd>
  222. <dt><code>-m4a-nofpu</code></dt>
  223. <dd><a name="index-m4a_002dnofpu"></a>
  224. <p>Generate code for the SH4al-dsp, or for a SH4a in such a way that the
  225. floating-point unit is not used.
  226. </p>
  227. </dd>
  228. <dt><code>-m4a-single-only</code></dt>
  229. <dd><a name="index-m4a_002dsingle_002donly"></a>
  230. <p>Generate code for the SH4a, in such a way that no double-precision
  231. floating-point operations are used.
  232. </p>
  233. </dd>
  234. <dt><code>-m4a-single</code></dt>
  235. <dd><a name="index-m4a_002dsingle"></a>
  236. <p>Generate code for the SH4a assuming the floating-point unit is in
  237. single-precision mode by default.
  238. </p>
  239. </dd>
  240. <dt><code>-m4a</code></dt>
  241. <dd><a name="index-m4a"></a>
  242. <p>Generate code for the SH4a.
  243. </p>
  244. </dd>
  245. <dt><code>-m4al</code></dt>
  246. <dd><a name="index-m4al"></a>
  247. <p>Same as <samp>-m4a-nofpu</samp>, except that it implicitly passes
  248. <samp>-dsp</samp> to the assembler. GCC doesn&rsquo;t generate any DSP
  249. instructions at the moment.
  250. </p>
  251. </dd>
  252. <dt><code>-mb</code></dt>
  253. <dd><a name="index-mb"></a>
  254. <p>Compile code for the processor in big-endian mode.
  255. </p>
  256. </dd>
  257. <dt><code>-ml</code></dt>
  258. <dd><a name="index-ml-1"></a>
  259. <p>Compile code for the processor in little-endian mode.
  260. </p>
  261. </dd>
  262. <dt><code>-mdalign</code></dt>
  263. <dd><a name="index-mdalign"></a>
  264. <p>Align doubles at 64-bit boundaries. Note that this changes the calling
  265. conventions, and thus some functions from the standard C library do
  266. not work unless you recompile it first with <samp>-mdalign</samp>.
  267. </p>
  268. </dd>
  269. <dt><code>-mrelax</code></dt>
  270. <dd><a name="index-mrelax-6"></a>
  271. <p>Shorten some address references at link time, when possible; uses the
  272. linker option <samp>-relax</samp>.
  273. </p>
  274. </dd>
  275. <dt><code>-mbigtable</code></dt>
  276. <dd><a name="index-mbigtable"></a>
  277. <p>Use 32-bit offsets in <code>switch</code> tables. The default is to use
  278. 16-bit offsets.
  279. </p>
  280. </dd>
  281. <dt><code>-mbitops</code></dt>
  282. <dd><a name="index-mbitops-1"></a>
  283. <p>Enable the use of bit manipulation instructions on SH2A.
  284. </p>
  285. </dd>
  286. <dt><code>-mfmovd</code></dt>
  287. <dd><a name="index-mfmovd"></a>
  288. <p>Enable the use of the instruction <code>fmovd</code>. Check <samp>-mdalign</samp> for
  289. alignment constraints.
  290. </p>
  291. </dd>
  292. <dt><code>-mrenesas</code></dt>
  293. <dd><a name="index-mrenesas"></a>
  294. <p>Comply with the calling conventions defined by Renesas.
  295. </p>
  296. </dd>
  297. <dt><code>-mno-renesas</code></dt>
  298. <dd><a name="index-mno_002drenesas"></a>
  299. <p>Comply with the calling conventions defined for GCC before the Renesas
  300. conventions were available. This option is the default for all
  301. targets of the SH toolchain.
  302. </p>
  303. </dd>
  304. <dt><code>-mnomacsave</code></dt>
  305. <dd><a name="index-mnomacsave"></a>
  306. <p>Mark the <code>MAC</code> register as call-clobbered, even if
  307. <samp>-mrenesas</samp> is given.
  308. </p>
  309. </dd>
  310. <dt><code>-mieee</code></dt>
  311. <dt><code>-mno-ieee</code></dt>
  312. <dd><a name="index-mieee-1"></a>
  313. <a name="index-mno_002dieee"></a>
  314. <p>Control the IEEE compliance of floating-point comparisons, which affects the
  315. handling of cases where the result of a comparison is unordered. By default
  316. <samp>-mieee</samp> is implicitly enabled. If <samp>-ffinite-math-only</samp> is
  317. enabled <samp>-mno-ieee</samp> is implicitly set, which results in faster
  318. floating-point greater-equal and less-equal comparisons. The implicit settings
  319. can be overridden by specifying either <samp>-mieee</samp> or <samp>-mno-ieee</samp>.
  320. </p>
  321. </dd>
  322. <dt><code>-minline-ic_invalidate</code></dt>
  323. <dd><a name="index-minline_002dic_005finvalidate"></a>
  324. <p>Inline code to invalidate instruction cache entries after setting up
  325. nested function trampolines.
  326. This option has no effect if <samp>-musermode</samp> is in effect and the selected
  327. code generation option (e.g. <samp>-m4</samp>) does not allow the use of the <code>icbi</code>
  328. instruction.
  329. If the selected code generation option does not allow the use of the <code>icbi</code>
  330. instruction, and <samp>-musermode</samp> is not in effect, the inlined code
  331. manipulates the instruction cache address array directly with an associative
  332. write. This not only requires privileged mode at run time, but it also
  333. fails if the cache line had been mapped via the TLB and has become unmapped.
  334. </p>
  335. </dd>
  336. <dt><code>-misize</code></dt>
  337. <dd><a name="index-misize-1"></a>
  338. <p>Dump instruction size and location in the assembly code.
  339. </p>
  340. </dd>
  341. <dt><code>-mpadstruct</code></dt>
  342. <dd><a name="index-mpadstruct"></a>
  343. <p>This option is deprecated. It pads structures to multiple of 4 bytes,
  344. which is incompatible with the SH ABI.
  345. </p>
  346. </dd>
  347. <dt><code>-matomic-model=<var>model</var></code></dt>
  348. <dd><a name="index-matomic_002dmodel_003dmodel"></a>
  349. <p>Sets the model of atomic operations and additional parameters as a comma
  350. separated list. For details on the atomic built-in functions see
  351. <a href="_005f_005fatomic-Builtins.html#g_t_005f_005fatomic-Builtins">__atomic Builtins</a>. The following models and parameters are supported:
  352. </p>
  353. <dl compact="compact">
  354. <dt>&lsquo;<samp>none</samp>&rsquo;</dt>
  355. <dd><p>Disable compiler generated atomic sequences and emit library calls for atomic
  356. operations. This is the default if the target is not <code>sh*-*-linux*</code>.
  357. </p>
  358. </dd>
  359. <dt>&lsquo;<samp>soft-gusa</samp>&rsquo;</dt>
  360. <dd><p>Generate GNU/Linux compatible gUSA software atomic sequences for the atomic
  361. built-in functions. The generated atomic sequences require additional support
  362. from the interrupt/exception handling code of the system and are only suitable
  363. for SH3* and SH4* single-core systems. This option is enabled by default when
  364. the target is <code>sh*-*-linux*</code> and SH3* or SH4*. When the target is SH4A,
  365. this option also partially utilizes the hardware atomic instructions
  366. <code>movli.l</code> and <code>movco.l</code> to create more efficient code, unless
  367. &lsquo;<samp>strict</samp>&rsquo; is specified.
  368. </p>
  369. </dd>
  370. <dt>&lsquo;<samp>soft-tcb</samp>&rsquo;</dt>
  371. <dd><p>Generate software atomic sequences that use a variable in the thread control
  372. block. This is a variation of the gUSA sequences which can also be used on
  373. SH1* and SH2* targets. The generated atomic sequences require additional
  374. support from the interrupt/exception handling code of the system and are only
  375. suitable for single-core systems. When using this model, the &lsquo;<samp>gbr-offset=</samp>&rsquo;
  376. parameter has to be specified as well.
  377. </p>
  378. </dd>
  379. <dt>&lsquo;<samp>soft-imask</samp>&rsquo;</dt>
  380. <dd><p>Generate software atomic sequences that temporarily disable interrupts by
  381. setting <code>SR.IMASK = 1111</code>. This model works only when the program runs
  382. in privileged mode and is only suitable for single-core systems. Additional
  383. support from the interrupt/exception handling code of the system is not
  384. required. This model is enabled by default when the target is
  385. <code>sh*-*-linux*</code> and SH1* or SH2*.
  386. </p>
  387. </dd>
  388. <dt>&lsquo;<samp>hard-llcs</samp>&rsquo;</dt>
  389. <dd><p>Generate hardware atomic sequences using the <code>movli.l</code> and <code>movco.l</code>
  390. instructions only. This is only available on SH4A and is suitable for
  391. multi-core systems. Since the hardware instructions support only 32 bit atomic
  392. variables access to 8 or 16 bit variables is emulated with 32 bit accesses.
  393. Code compiled with this option is also compatible with other software
  394. atomic model interrupt/exception handling systems if executed on an SH4A
  395. system. Additional support from the interrupt/exception handling code of the
  396. system is not required for this model.
  397. </p>
  398. </dd>
  399. <dt>&lsquo;<samp>gbr-offset=</samp>&rsquo;</dt>
  400. <dd><p>This parameter specifies the offset in bytes of the variable in the thread
  401. control block structure that should be used by the generated atomic sequences
  402. when the &lsquo;<samp>soft-tcb</samp>&rsquo; model has been selected. For other models this
  403. parameter is ignored. The specified value must be an integer multiple of four
  404. and in the range 0-1020.
  405. </p>
  406. </dd>
  407. <dt>&lsquo;<samp>strict</samp>&rsquo;</dt>
  408. <dd><p>This parameter prevents mixed usage of multiple atomic models, even if they
  409. are compatible, and makes the compiler generate atomic sequences of the
  410. specified model only.
  411. </p>
  412. </dd>
  413. </dl>
  414. </dd>
  415. <dt><code>-mtas</code></dt>
  416. <dd><a name="index-mtas"></a>
  417. <p>Generate the <code>tas.b</code> opcode for <code>__atomic_test_and_set</code>.
  418. Notice that depending on the particular hardware and software configuration
  419. this can degrade overall performance due to the operand cache line flushes
  420. that are implied by the <code>tas.b</code> instruction. On multi-core SH4A
  421. processors the <code>tas.b</code> instruction must be used with caution since it
  422. can result in data corruption for certain cache configurations.
  423. </p>
  424. </dd>
  425. <dt><code>-mprefergot</code></dt>
  426. <dd><a name="index-mprefergot"></a>
  427. <p>When generating position-independent code, emit function calls using
  428. the Global Offset Table instead of the Procedure Linkage Table.
  429. </p>
  430. </dd>
  431. <dt><code>-musermode</code></dt>
  432. <dt><code>-mno-usermode</code></dt>
  433. <dd><a name="index-musermode"></a>
  434. <a name="index-mno_002dusermode"></a>
  435. <p>Don&rsquo;t allow (allow) the compiler generating privileged mode code. Specifying
  436. <samp>-musermode</samp> also implies <samp>-mno-inline-ic_invalidate</samp> if the
  437. inlined code would not work in user mode. <samp>-musermode</samp> is the default
  438. when the target is <code>sh*-*-linux*</code>. If the target is SH1* or SH2*
  439. <samp>-musermode</samp> has no effect, since there is no user mode.
  440. </p>
  441. </dd>
  442. <dt><code>-multcost=<var>number</var></code></dt>
  443. <dd><a name="index-multcost_003dnumber"></a>
  444. <p>Set the cost to assume for a multiply insn.
  445. </p>
  446. </dd>
  447. <dt><code>-mdiv=<var>strategy</var></code></dt>
  448. <dd><a name="index-mdiv_003dstrategy"></a>
  449. <p>Set the division strategy to be used for integer division operations.
  450. <var>strategy</var> can be one of:
  451. </p>
  452. <dl compact="compact">
  453. <dt>&lsquo;<samp>call-div1</samp>&rsquo;</dt>
  454. <dd><p>Calls a library function that uses the single-step division instruction
  455. <code>div1</code> to perform the operation. Division by zero calculates an
  456. unspecified result and does not trap. This is the default except for SH4,
  457. SH2A and SHcompact.
  458. </p>
  459. </dd>
  460. <dt>&lsquo;<samp>call-fp</samp>&rsquo;</dt>
  461. <dd><p>Calls a library function that performs the operation in double precision
  462. floating point. Division by zero causes a floating-point exception. This is
  463. the default for SHcompact with FPU. Specifying this for targets that do not
  464. have a double precision FPU defaults to <code>call-div1</code>.
  465. </p>
  466. </dd>
  467. <dt>&lsquo;<samp>call-table</samp>&rsquo;</dt>
  468. <dd><p>Calls a library function that uses a lookup table for small divisors and
  469. the <code>div1</code> instruction with case distinction for larger divisors. Division
  470. by zero calculates an unspecified result and does not trap. This is the default
  471. for SH4. Specifying this for targets that do not have dynamic shift
  472. instructions defaults to <code>call-div1</code>.
  473. </p>
  474. </dd>
  475. </dl>
  476. <p>When a division strategy has not been specified the default strategy is
  477. selected based on the current target. For SH2A the default strategy is to
  478. use the <code>divs</code> and <code>divu</code> instructions instead of library function
  479. calls.
  480. </p>
  481. </dd>
  482. <dt><code>-maccumulate-outgoing-args</code></dt>
  483. <dd><a name="index-maccumulate_002doutgoing_002dargs"></a>
  484. <p>Reserve space once for outgoing arguments in the function prologue rather
  485. than around each call. Generally beneficial for performance and size. Also
  486. needed for unwinding to avoid changing the stack frame around conditional code.
  487. </p>
  488. </dd>
  489. <dt><code>-mdivsi3_libfunc=<var>name</var></code></dt>
  490. <dd><a name="index-mdivsi3_005flibfunc_003dname"></a>
  491. <p>Set the name of the library function used for 32-bit signed division to
  492. <var>name</var>.
  493. This only affects the name used in the &lsquo;<samp>call</samp>&rsquo; division strategies, and
  494. the compiler still expects the same sets of input/output/clobbered registers as
  495. if this option were not present.
  496. </p>
  497. </dd>
  498. <dt><code>-mfixed-range=<var>register-range</var></code></dt>
  499. <dd><a name="index-mfixed_002drange-2"></a>
  500. <p>Generate code treating the given register range as fixed registers.
  501. A fixed register is one that the register allocator cannot use. This is
  502. useful when compiling kernel code. A register range is specified as
  503. two registers separated by a dash. Multiple register ranges can be
  504. specified separated by a comma.
  505. </p>
  506. </dd>
  507. <dt><code>-mbranch-cost=<var>num</var></code></dt>
  508. <dd><a name="index-mbranch_002dcost_003dnum"></a>
  509. <p>Assume <var>num</var> to be the cost for a branch instruction. Higher numbers
  510. make the compiler try to generate more branch-free code if possible.
  511. If not specified the value is selected depending on the processor type that
  512. is being compiled for.
  513. </p>
  514. </dd>
  515. <dt><code>-mzdcbranch</code></dt>
  516. <dt><code>-mno-zdcbranch</code></dt>
  517. <dd><a name="index-mzdcbranch"></a>
  518. <a name="index-mno_002dzdcbranch"></a>
  519. <p>Assume (do not assume) that zero displacement conditional branch instructions
  520. <code>bt</code> and <code>bf</code> are fast. If <samp>-mzdcbranch</samp> is specified, the
  521. compiler prefers zero displacement branch code sequences. This is
  522. enabled by default when generating code for SH4 and SH4A. It can be explicitly
  523. disabled by specifying <samp>-mno-zdcbranch</samp>.
  524. </p>
  525. </dd>
  526. <dt><code>-mcbranch-force-delay-slot</code></dt>
  527. <dd><a name="index-mcbranch_002dforce_002ddelay_002dslot"></a>
  528. <p>Force the usage of delay slots for conditional branches, which stuffs the delay
  529. slot with a <code>nop</code> if a suitable instruction cannot be found. By default
  530. this option is disabled. It can be enabled to work around hardware bugs as
  531. found in the original SH7055.
  532. </p>
  533. </dd>
  534. <dt><code>-mfused-madd</code></dt>
  535. <dt><code>-mno-fused-madd</code></dt>
  536. <dd><a name="index-mfused_002dmadd-4"></a>
  537. <a name="index-mno_002dfused_002dmadd-4"></a>
  538. <p>Generate code that uses (does not use) the floating-point multiply and
  539. accumulate instructions. These instructions are generated by default
  540. if hardware floating point is used. The machine-dependent
  541. <samp>-mfused-madd</samp> option is now mapped to the machine-independent
  542. <samp>-ffp-contract=fast</samp> option, and <samp>-mno-fused-madd</samp> is
  543. mapped to <samp>-ffp-contract=off</samp>.
  544. </p>
  545. </dd>
  546. <dt><code>-mfsca</code></dt>
  547. <dt><code>-mno-fsca</code></dt>
  548. <dd><a name="index-mfsca"></a>
  549. <a name="index-mno_002dfsca"></a>
  550. <p>Allow or disallow the compiler to emit the <code>fsca</code> instruction for sine
  551. and cosine approximations. The option <samp>-mfsca</samp> must be used in
  552. combination with <samp>-funsafe-math-optimizations</samp>. It is enabled by default
  553. when generating code for SH4A. Using <samp>-mno-fsca</samp> disables sine and cosine
  554. approximations even if <samp>-funsafe-math-optimizations</samp> is in effect.
  555. </p>
  556. </dd>
  557. <dt><code>-mfsrra</code></dt>
  558. <dt><code>-mno-fsrra</code></dt>
  559. <dd><a name="index-mfsrra"></a>
  560. <a name="index-mno_002dfsrra"></a>
  561. <p>Allow or disallow the compiler to emit the <code>fsrra</code> instruction for
  562. reciprocal square root approximations. The option <samp>-mfsrra</samp> must be used
  563. in combination with <samp>-funsafe-math-optimizations</samp> and
  564. <samp>-ffinite-math-only</samp>. It is enabled by default when generating code for
  565. SH4A. Using <samp>-mno-fsrra</samp> disables reciprocal square root approximations
  566. even if <samp>-funsafe-math-optimizations</samp> and <samp>-ffinite-math-only</samp> are
  567. in effect.
  568. </p>
  569. </dd>
  570. <dt><code>-mpretend-cmove</code></dt>
  571. <dd><a name="index-mpretend_002dcmove"></a>
  572. <p>Prefer zero-displacement conditional branches for conditional move instruction
  573. patterns. This can result in faster code on the SH4 processor.
  574. </p>
  575. </dd>
  576. <dt><code>-mfdpic</code></dt>
  577. <dd><a name="index-fdpic"></a>
  578. <p>Generate code using the FDPIC ABI.
  579. </p>
  580. </dd>
  581. </dl>
  582. <hr>
  583. <div class="header">
  584. <p>
  585. Next: <a href="Solaris-2-Options.html#Solaris-2-Options" accesskey="n" rel="next">Solaris 2 Options</a>, Previous: <a href="Score-Options.html#Score-Options" accesskey="p" rel="prev">Score Options</a>, Up: <a href="Submodel-Options.html#Submodel-Options" accesskey="u" rel="up">Submodel Options</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html#Option-Index" title="Index" rel="index">Index</a>]</p>
  586. </div>
  587. </body>
  588. </html>