Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

67445 Zeilen
2.9MB

  1. This is gcc.info, produced by makeinfo version 6.5 from gcc.texi.
  2. Copyright (C) 1988-2020 Free Software Foundation, Inc.
  3. Permission is granted to copy, distribute and/or modify this document
  4. under the terms of the GNU Free Documentation License, Version 1.3 or
  5. any later version published by the Free Software Foundation; with the
  6. Invariant Sections being "Funding Free Software", the Front-Cover Texts
  7. being (a) (see below), and with the Back-Cover Texts being (b) (see
  8. below). A copy of the license is included in the section entitled "GNU
  9. Free Documentation License".
  10. (a) The FSF's Front-Cover Text is:
  11. A GNU Manual
  12. (b) The FSF's Back-Cover Text is:
  13. You have freedom to copy and modify this GNU Manual, like GNU software.
  14. Copies published by the Free Software Foundation raise funds for GNU
  15. development.
  16. INFO-DIR-SECTION Software development
  17. START-INFO-DIR-ENTRY
  18. * gcc: (gcc). The GNU Compiler Collection.
  19. * g++: (gcc). The GNU C++ compiler.
  20. * gcov: (gcc) Gcov. 'gcov'--a test coverage program.
  21. * gcov-tool: (gcc) Gcov-tool. 'gcov-tool'--an offline gcda profile processing program.
  22. * gcov-dump: (gcc) Gcov-dump. 'gcov-dump'--an offline gcda and gcno profile dump tool.
  23. * lto-dump: (gcc) lto-dump. 'lto-dump'--Tool for
  24. dumping LTO object files.
  25. END-INFO-DIR-ENTRY
  26. This file documents the use of the GNU compilers.
  27. Copyright (C) 1988-2020 Free Software Foundation, Inc.
  28. Permission is granted to copy, distribute and/or modify this document
  29. under the terms of the GNU Free Documentation License, Version 1.3 or
  30. any later version published by the Free Software Foundation; with the
  31. Invariant Sections being "Funding Free Software", the Front-Cover Texts
  32. being (a) (see below), and with the Back-Cover Texts being (b) (see
  33. below). A copy of the license is included in the section entitled "GNU
  34. Free Documentation License".
  35. (a) The FSF's Front-Cover Text is:
  36. A GNU Manual
  37. (b) The FSF's Back-Cover Text is:
  38. You have freedom to copy and modify this GNU Manual, like GNU software.
  39. Copies published by the Free Software Foundation raise funds for GNU
  40. development.
  41. 
  42. File: gcc.info, Node: Top, Next: G++ and GCC
  43. Introduction
  44. ************
  45. This manual documents how to use the GNU compilers, as well as their
  46. features and incompatibilities, and how to report bugs. It corresponds
  47. to the compilers (GNU Arm Embedded Toolchain 10-2020-q4-major) version
  48. 10.2.1. The internals of the GNU compilers, including how to port them
  49. to new targets and some information about how to write front ends for
  50. new languages, are documented in a separate manual. *Note Introduction:
  51. (gccint)Top.
  52. * Menu:
  53. * G++ and GCC:: You can compile C or C++ programs.
  54. * Standards:: Language standards supported by GCC.
  55. * Invoking GCC:: Command options supported by 'gcc'.
  56. * C Implementation:: How GCC implements the ISO C specification.
  57. * C++ Implementation:: How GCC implements the ISO C++ specification.
  58. * C Extensions:: GNU extensions to the C language family.
  59. * C++ Extensions:: GNU extensions to the C++ language.
  60. * Objective-C:: GNU Objective-C runtime features.
  61. * Compatibility:: Binary Compatibility
  62. * Gcov:: 'gcov'--a test coverage program.
  63. * Gcov-tool:: 'gcov-tool'--an offline gcda profile processing program.
  64. * Gcov-dump:: 'gcov-dump'--an offline gcda and gcno profile dump tool.
  65. * lto-dump:: 'lto-dump'--Tool for dumping LTO
  66. object files.
  67. * Trouble:: If you have trouble using GCC.
  68. * Bugs:: How, why and where to report bugs.
  69. * Service:: How To Get Help with GCC
  70. * Contributing:: How to contribute to testing and developing GCC.
  71. * Funding:: How to help assure funding for free software.
  72. * GNU Project:: The GNU Project and GNU/Linux.
  73. * Copying:: GNU General Public License says
  74. how you can copy and share GCC.
  75. * GNU Free Documentation License:: How you can copy and share this manual.
  76. * Contributors:: People who have contributed to GCC.
  77. * Option Index:: Index to command line options.
  78. * Keyword Index:: Index of concepts and symbol names.
  79. 
  80. File: gcc.info, Node: G++ and GCC, Next: Standards, Up: Top
  81. 1 Programming Languages Supported by GCC
  82. ****************************************
  83. GCC stands for "GNU Compiler Collection". GCC is an integrated
  84. distribution of compilers for several major programming languages.
  85. These languages currently include C, C++, Objective-C, Objective-C++,
  86. Fortran, Ada, D, Go, and BRIG (HSAIL).
  87. The abbreviation "GCC" has multiple meanings in common use. The
  88. current official meaning is "GNU Compiler Collection", which refers
  89. generically to the complete suite of tools. The name historically stood
  90. for "GNU C Compiler", and this usage is still common when the emphasis
  91. is on compiling C programs. Finally, the name is also used when
  92. speaking of the "language-independent" component of GCC: code shared
  93. among the compilers for all supported languages.
  94. The language-independent component of GCC includes the majority of the
  95. optimizers, as well as the "back ends" that generate machine code for
  96. various processors.
  97. The part of a compiler that is specific to a particular language is
  98. called the "front end". In addition to the front ends that are
  99. integrated components of GCC, there are several other front ends that
  100. are maintained separately. These support languages such as Mercury, and
  101. COBOL. To use these, they must be built together with GCC proper.
  102. Most of the compilers for languages other than C have their own names.
  103. The C++ compiler is G++, the Ada compiler is GNAT, and so on. When we
  104. talk about compiling one of those languages, we might refer to that
  105. compiler by its own name, or as GCC. Either is correct.
  106. Historically, compilers for many languages, including C++ and Fortran,
  107. have been implemented as "preprocessors" which emit another high level
  108. language such as C. None of the compilers included in GCC are
  109. implemented this way; they all generate machine code directly. This
  110. sort of preprocessor should not be confused with the "C preprocessor",
  111. which is an integral feature of the C, C++, Objective-C and
  112. Objective-C++ languages.
  113. 
  114. File: gcc.info, Node: Standards, Next: Invoking GCC, Prev: G++ and GCC, Up: Top
  115. 2 Language Standards Supported by GCC
  116. *************************************
  117. For each language compiled by GCC for which there is a standard, GCC
  118. attempts to follow one or more versions of that standard, possibly with
  119. some exceptions, and possibly with some extensions.
  120. 2.1 C Language
  121. ==============
  122. The original ANSI C standard (X3.159-1989) was ratified in 1989 and
  123. published in 1990. This standard was ratified as an ISO standard
  124. (ISO/IEC 9899:1990) later in 1990. There were no technical differences
  125. between these publications, although the sections of the ANSI standard
  126. were renumbered and became clauses in the ISO standard. The ANSI
  127. standard, but not the ISO standard, also came with a Rationale document.
  128. This standard, in both its forms, is commonly known as "C89", or
  129. occasionally as "C90", from the dates of ratification. To select this
  130. standard in GCC, use one of the options '-ansi', '-std=c90' or
  131. '-std=iso9899:1990'; to obtain all the diagnostics required by the
  132. standard, you should also specify '-pedantic' (or '-pedantic-errors' if
  133. you want them to be errors rather than warnings). *Note Options
  134. Controlling C Dialect: C Dialect Options.
  135. Errors in the 1990 ISO C standard were corrected in two Technical
  136. Corrigenda published in 1994 and 1996. GCC does not support the
  137. uncorrected version.
  138. An amendment to the 1990 standard was published in 1995. This
  139. amendment added digraphs and '__STDC_VERSION__' to the language, but
  140. otherwise concerned the library. This amendment is commonly known as
  141. "AMD1"; the amended standard is sometimes known as "C94" or "C95". To
  142. select this standard in GCC, use the option '-std=iso9899:199409' (with,
  143. as for other standard versions, '-pedantic' to receive all required
  144. diagnostics).
  145. A new edition of the ISO C standard was published in 1999 as ISO/IEC
  146. 9899:1999, and is commonly known as "C99". (While in development,
  147. drafts of this standard version were referred to as "C9X".) GCC has
  148. substantially complete support for this standard version; see
  149. <http://gcc.gnu.org/c99status.html> for details. To select this
  150. standard, use '-std=c99' or '-std=iso9899:1999'.
  151. Errors in the 1999 ISO C standard were corrected in three Technical
  152. Corrigenda published in 2001, 2004 and 2007. GCC does not support the
  153. uncorrected version.
  154. A fourth version of the C standard, known as "C11", was published in
  155. 2011 as ISO/IEC 9899:2011. (While in development, drafts of this
  156. standard version were referred to as "C1X".) GCC has substantially
  157. complete support for this standard, enabled with '-std=c11' or
  158. '-std=iso9899:2011'. A version with corrections integrated was prepared
  159. in 2017 and published in 2018 as ISO/IEC 9899:2018; it is known as "C17"
  160. and is supported with '-std=c17' or '-std=iso9899:2017'; the corrections
  161. are also applied with '-std=c11', and the only difference between the
  162. options is the value of '__STDC_VERSION__'.
  163. A further version of the C standard, known as "C2X", is under
  164. development; experimental and incomplete support for this is enabled
  165. with '-std=c2x'.
  166. By default, GCC provides some extensions to the C language that, on
  167. rare occasions conflict with the C standard. *Note Extensions to the C
  168. Language Family: C Extensions. Some features that are part of the C99
  169. standard are accepted as extensions in C90 mode, and some features that
  170. are part of the C11 standard are accepted as extensions in C90 and C99
  171. modes. Use of the '-std' options listed above disables these extensions
  172. where they conflict with the C standard version selected. You may also
  173. select an extended version of the C language explicitly with
  174. '-std=gnu90' (for C90 with GNU extensions), '-std=gnu99' (for C99 with
  175. GNU extensions) or '-std=gnu11' (for C11 with GNU extensions).
  176. The default, if no C language dialect options are given, is
  177. '-std=gnu11'.
  178. The ISO C standard defines (in clause 4) two classes of conforming
  179. implementation. A "conforming hosted implementation" supports the whole
  180. standard including all the library facilities; a "conforming
  181. freestanding implementation" is only required to provide certain library
  182. facilities: those in '<float.h>', '<limits.h>', '<stdarg.h>', and
  183. '<stddef.h>'; since AMD1, also those in '<iso646.h>'; since C99, also
  184. those in '<stdbool.h>' and '<stdint.h>'; and since C11, also those in
  185. '<stdalign.h>' and '<stdnoreturn.h>'. In addition, complex types, added
  186. in C99, are not required for freestanding implementations.
  187. The standard also defines two environments for programs, a
  188. "freestanding environment", required of all implementations and which
  189. may not have library facilities beyond those required of freestanding
  190. implementations, where the handling of program startup and termination
  191. are implementation-defined; and a "hosted environment", which is not
  192. required, in which all the library facilities are provided and startup
  193. is through a function 'int main (void)' or 'int main (int, char *[])'.
  194. An OS kernel is an example of a program running in a freestanding
  195. environment; a program using the facilities of an operating system is an
  196. example of a program running in a hosted environment.
  197. GCC aims towards being usable as a conforming freestanding
  198. implementation, or as the compiler for a conforming hosted
  199. implementation. By default, it acts as the compiler for a hosted
  200. implementation, defining '__STDC_HOSTED__' as '1' and presuming that
  201. when the names of ISO C functions are used, they have the semantics
  202. defined in the standard. To make it act as a conforming freestanding
  203. implementation for a freestanding environment, use the option
  204. '-ffreestanding'; it then defines '__STDC_HOSTED__' to '0' and does not
  205. make assumptions about the meanings of function names from the standard
  206. library, with exceptions noted below. To build an OS kernel, you may
  207. well still need to make your own arrangements for linking and startup.
  208. *Note Options Controlling C Dialect: C Dialect Options.
  209. GCC does not provide the library facilities required only of hosted
  210. implementations, nor yet all the facilities required by C99 of
  211. freestanding implementations on all platforms. To use the facilities of
  212. a hosted environment, you need to find them elsewhere (for example, in
  213. the GNU C library). *Note Standard Libraries: Standard Libraries.
  214. Most of the compiler support routines used by GCC are present in
  215. 'libgcc', but there are a few exceptions. GCC requires the freestanding
  216. environment provide 'memcpy', 'memmove', 'memset' and 'memcmp'.
  217. Finally, if '__builtin_trap' is used, and the target does not implement
  218. the 'trap' pattern, then GCC emits a call to 'abort'.
  219. For references to Technical Corrigenda, Rationale documents and
  220. information concerning the history of C that is available online, see
  221. <http://gcc.gnu.org/readings.html>
  222. 2.2 C++ Language
  223. ================
  224. GCC supports the original ISO C++ standard published in 1998, and the
  225. 2011 and 2014 revisions.
  226. The original ISO C++ standard was published as the ISO standard
  227. (ISO/IEC 14882:1998) and amended by a Technical Corrigenda published in
  228. 2003 (ISO/IEC 14882:2003). These standards are referred to as C++98 and
  229. C++03, respectively. GCC implements the majority of C++98 ('export' is
  230. a notable exception) and most of the changes in C++03. To select this
  231. standard in GCC, use one of the options '-ansi', '-std=c++98', or
  232. '-std=c++03'; to obtain all the diagnostics required by the standard,
  233. you should also specify '-pedantic' (or '-pedantic-errors' if you want
  234. them to be errors rather than warnings).
  235. A revised ISO C++ standard was published in 2011 as ISO/IEC 14882:2011,
  236. and is referred to as C++11; before its publication it was commonly
  237. referred to as C++0x. C++11 contains several changes to the C++
  238. language, all of which have been implemented in GCC. For details see
  239. <https://gcc.gnu.org/projects/cxx-status.html#cxx11>. To select this
  240. standard in GCC, use the option '-std=c++11'.
  241. Another revised ISO C++ standard was published in 2014 as ISO/IEC
  242. 14882:2014, and is referred to as C++14; before its publication it was
  243. sometimes referred to as C++1y. C++14 contains several further changes
  244. to the C++ language, all of which have been implemented in GCC. For
  245. details see <https://gcc.gnu.org/projects/cxx-status.html#cxx14>. To
  246. select this standard in GCC, use the option '-std=c++14'.
  247. The C++ language was further revised in 2017 and ISO/IEC 14882:2017 was
  248. published. This is referred to as C++17, and before publication was
  249. often referred to as C++1z. GCC supports all the changes in the new
  250. specification. For further details see
  251. <https://gcc.gnu.org/projects/cxx-status.html#cxx1z>. Use the option
  252. '-std=c++17' to select this variant of C++.
  253. More information about the C++ standards is available on the ISO C++
  254. committee's web site at <http://www.open-std.org/jtc1/sc22/wg21/>.
  255. To obtain all the diagnostics required by any of the standard versions
  256. described above you should specify '-pedantic' or '-pedantic-errors',
  257. otherwise GCC will allow some non-ISO C++ features as extensions. *Note
  258. Warning Options::.
  259. By default, GCC also provides some additional extensions to the C++
  260. language that on rare occasions conflict with the C++ standard. *Note
  261. Options Controlling C++ Dialect: C++ Dialect Options. Use of the '-std'
  262. options listed above disables these extensions where they they conflict
  263. with the C++ standard version selected. You may also select an extended
  264. version of the C++ language explicitly with '-std=gnu++98' (for C++98
  265. with GNU extensions), or '-std=gnu++11' (for C++11 with GNU extensions),
  266. or '-std=gnu++14' (for C++14 with GNU extensions), or '-std=gnu++17'
  267. (for C++17 with GNU extensions).
  268. The default, if no C++ language dialect options are given, is
  269. '-std=gnu++14'.
  270. 2.3 Objective-C and Objective-C++ Languages
  271. ===========================================
  272. GCC supports "traditional" Objective-C (also known as "Objective-C 1.0")
  273. and contains support for the Objective-C exception and synchronization
  274. syntax. It has also support for a number of "Objective-C 2.0" language
  275. extensions, including properties, fast enumeration (only for
  276. Objective-C), method attributes and the @optional and @required keywords
  277. in protocols. GCC supports Objective-C++ and features available in
  278. Objective-C are also available in Objective-C++.
  279. GCC by default uses the GNU Objective-C runtime library, which is part
  280. of GCC and is not the same as the Apple/NeXT Objective-C runtime library
  281. used on Apple systems. There are a number of differences documented in
  282. this manual. The options '-fgnu-runtime' and '-fnext-runtime' allow you
  283. to switch between producing output that works with the GNU Objective-C
  284. runtime library and output that works with the Apple/NeXT Objective-C
  285. runtime library.
  286. There is no formal written standard for Objective-C or Objective-C++.
  287. The authoritative manual on traditional Objective-C (1.0) is
  288. "Object-Oriented Programming and the Objective-C Language":
  289. <http://www.gnustep.org/resources/documentation/ObjectivCBook.pdf> is
  290. the original NeXTstep document.
  291. The Objective-C exception and synchronization syntax (that is, the
  292. keywords '@try', '@throw', '@catch', '@finally' and '@synchronized') is
  293. supported by GCC and is enabled with the option '-fobjc-exceptions'.
  294. The syntax is briefly documented in this manual and in the Objective-C
  295. 2.0 manuals from Apple.
  296. The Objective-C 2.0 language extensions and features are automatically
  297. enabled; they include properties (via the '@property', '@synthesize' and
  298. '@dynamic keywords'), fast enumeration (not available in Objective-C++),
  299. attributes for methods (such as 'deprecated', 'noreturn', 'sentinel',
  300. 'format'), the 'unused' attribute for method arguments, the '@package'
  301. keyword for instance variables and the '@optional' and '@required'
  302. keywords in protocols. You can disable all these Objective-C 2.0
  303. language extensions with the option '-fobjc-std=objc1', which causes the
  304. compiler to recognize the same Objective-C language syntax recognized by
  305. GCC 4.0, and to produce an error if one of the new features is used.
  306. GCC has currently no support for non-fragile instance variables.
  307. The authoritative manual on Objective-C 2.0 is available from Apple:
  308. *
  309. <https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Introduction/Introduction.html>
  310. For more information concerning the history of Objective-C that is
  311. available online, see <http://gcc.gnu.org/readings.html>
  312. 2.4 Go Language
  313. ===============
  314. As of the GCC 4.7.1 release, GCC supports the Go 1 language standard,
  315. described at <https://golang.org/doc/go1>.
  316. 2.5 HSA Intermediate Language (HSAIL)
  317. =====================================
  318. GCC can compile the binary representation (BRIG) of the HSAIL text
  319. format as described in HSA Programmer's Reference Manual version 1.0.1.
  320. This capability is typically utilized to implement the HSA runtime API's
  321. HSAIL finalization extension for a gcc supported processor. HSA
  322. standards are freely available at
  323. <http://www.hsafoundation.com/standards/>.
  324. 2.6 D language
  325. ==============
  326. GCC supports the D 2.0 programming language. The D language itself is
  327. currently defined by its reference implementation and supporting
  328. language specification, described at <https://dlang.org/spec/spec.html>.
  329. 2.7 References for Other Languages
  330. ==================================
  331. *Note GNAT Reference Manual: (gnat_rm)Top, for information on standard
  332. conformance and compatibility of the Ada compiler.
  333. *Note Standards: (gfortran)Standards, for details of standards
  334. supported by GNU Fortran.
  335. 
  336. File: gcc.info, Node: Invoking GCC, Next: C Implementation, Prev: Standards, Up: Top
  337. 3 GCC Command Options
  338. *********************
  339. When you invoke GCC, it normally does preprocessing, compilation,
  340. assembly and linking. The "overall options" allow you to stop this
  341. process at an intermediate stage. For example, the '-c' option says not
  342. to run the linker. Then the output consists of object files output by
  343. the assembler. *Note Options Controlling the Kind of Output: Overall
  344. Options.
  345. Other options are passed on to one or more stages of processing. Some
  346. options control the preprocessor and others the compiler itself. Yet
  347. other options control the assembler and linker; most of these are not
  348. documented here, since you rarely need to use any of them.
  349. Most of the command-line options that you can use with GCC are useful
  350. for C programs; when an option is only useful with another language
  351. (usually C++), the explanation says so explicitly. If the description
  352. for a particular option does not mention a source language, you can use
  353. that option with all supported languages.
  354. The usual way to run GCC is to run the executable called 'gcc', or
  355. 'MACHINE-gcc' when cross-compiling, or 'MACHINE-gcc-VERSION' to run a
  356. specific version of GCC. When you compile C++ programs, you should
  357. invoke GCC as 'g++' instead. *Note Compiling C++ Programs: Invoking
  358. G++, for information about the differences in behavior between 'gcc' and
  359. 'g++' when compiling C++ programs.
  360. The 'gcc' program accepts options and file names as operands. Many
  361. options have multi-letter names; therefore multiple single-letter
  362. options may _not_ be grouped: '-dv' is very different from '-d -v'.
  363. You can mix options and other arguments. For the most part, the order
  364. you use doesn't matter. Order does matter when you use several options
  365. of the same kind; for example, if you specify '-L' more than once, the
  366. directories are searched in the order specified. Also, the placement of
  367. the '-l' option is significant.
  368. Many options have long names starting with '-f' or with '-W'--for
  369. example, '-fmove-loop-invariants', '-Wformat' and so on. Most of these
  370. have both positive and negative forms; the negative form of '-ffoo' is
  371. '-fno-foo'. This manual documents only one of these two forms,
  372. whichever one is not the default.
  373. Some options take one or more arguments typically separated either by a
  374. space or by the equals sign ('=') from the option name. Unless
  375. documented otherwise, an argument can be either numeric or a string.
  376. Numeric arguments must typically be small unsigned decimal or
  377. hexadecimal integers. Hexadecimal arguments must begin with the '0x'
  378. prefix. Arguments to options that specify a size threshold of some sort
  379. may be arbitrarily large decimal or hexadecimal integers followed by a
  380. byte size suffix designating a multiple of bytes such as 'kB' and 'KiB'
  381. for kilobyte and kibibyte, respectively, 'MB' and 'MiB' for megabyte and
  382. mebibyte, 'GB' and 'GiB' for gigabyte and gigibyte, and so on. Such
  383. arguments are designated by BYTE-SIZE in the following text. Refer to
  384. the NIST, IEC, and other relevant national and international standards
  385. for the full listing and explanation of the binary and decimal byte size
  386. prefixes.
  387. *Note Option Index::, for an index to GCC's options.
  388. * Menu:
  389. * Option Summary:: Brief list of all options, without explanations.
  390. * Overall Options:: Controlling the kind of output:
  391. an executable, object files, assembler files,
  392. or preprocessed source.
  393. * Invoking G++:: Compiling C++ programs.
  394. * C Dialect Options:: Controlling the variant of C language compiled.
  395. * C++ Dialect Options:: Variations on C++.
  396. * Objective-C and Objective-C++ Dialect Options:: Variations on Objective-C
  397. and Objective-C++.
  398. * Diagnostic Message Formatting Options:: Controlling how diagnostics should
  399. be formatted.
  400. * Warning Options:: How picky should the compiler be?
  401. * Static Analyzer Options:: More expensive warnings.
  402. * Debugging Options:: Producing debuggable code.
  403. * Optimize Options:: How much optimization?
  404. * Instrumentation Options:: Enabling profiling and extra run-time error checking.
  405. * Preprocessor Options:: Controlling header files and macro definitions.
  406. Also, getting dependency information for Make.
  407. * Assembler Options:: Passing options to the assembler.
  408. * Link Options:: Specifying libraries and so on.
  409. * Directory Options:: Where to find header files and libraries.
  410. Where to find the compiler executable files.
  411. * Code Gen Options:: Specifying conventions for function calls, data layout
  412. and register usage.
  413. * Developer Options:: Printing GCC configuration info, statistics, and
  414. debugging dumps.
  415. * Submodel Options:: Target-specific options, such as compiling for a
  416. specific processor variant.
  417. * Spec Files:: How to pass switches to sub-processes.
  418. * Environment Variables:: Env vars that affect GCC.
  419. * Precompiled Headers:: Compiling a header once, and using it many times.
  420. 
  421. File: gcc.info, Node: Option Summary, Next: Overall Options, Up: Invoking GCC
  422. 3.1 Option Summary
  423. ==================
  424. Here is a summary of all the options, grouped by type. Explanations are
  425. in the following sections.
  426. _Overall Options_
  427. *Note Options Controlling the Kind of Output: Overall Options.
  428. -c -S -E -o FILE -x LANGUAGE
  429. -v -### --help[=CLASS[,...]] --target-help --version
  430. -pass-exit-codes -pipe -specs=FILE -wrapper
  431. @FILE -ffile-prefix-map=OLD=NEW
  432. -fplugin=FILE -fplugin-arg-NAME=ARG
  433. -fdump-ada-spec[-slim] -fada-spec-parent=UNIT -fdump-go-spec=FILE
  434. _C Language Options_
  435. *Note Options Controlling C Dialect: C Dialect Options.
  436. -ansi -std=STANDARD -fgnu89-inline
  437. -fpermitted-flt-eval-methods=STANDARD
  438. -aux-info FILENAME -fallow-parameterless-variadic-functions
  439. -fno-asm -fno-builtin -fno-builtin-FUNCTION -fgimple
  440. -fhosted -ffreestanding
  441. -fopenacc -fopenacc-dim=GEOM
  442. -fopenmp -fopenmp-simd
  443. -fms-extensions -fplan9-extensions -fsso-struct=ENDIANNESS
  444. -fallow-single-precision -fcond-mismatch -flax-vector-conversions
  445. -fsigned-bitfields -fsigned-char
  446. -funsigned-bitfields -funsigned-char
  447. _C++ Language Options_
  448. *Note Options Controlling C++ Dialect: C++ Dialect Options.
  449. -fabi-version=N -fno-access-control
  450. -faligned-new=N -fargs-in-order=N -fchar8_t -fcheck-new
  451. -fconstexpr-depth=N -fconstexpr-cache-depth=N
  452. -fconstexpr-loop-limit=N -fconstexpr-ops-limit=N
  453. -fno-elide-constructors
  454. -fno-enforce-eh-specs
  455. -fno-gnu-keywords
  456. -fno-implicit-templates
  457. -fno-implicit-inline-templates
  458. -fno-implement-inlines -fms-extensions
  459. -fnew-inheriting-ctors
  460. -fnew-ttp-matching
  461. -fno-nonansi-builtins -fnothrow-opt -fno-operator-names
  462. -fno-optional-diags -fpermissive
  463. -fno-pretty-templates
  464. -fno-rtti -fsized-deallocation
  465. -ftemplate-backtrace-limit=N
  466. -ftemplate-depth=N
  467. -fno-threadsafe-statics -fuse-cxa-atexit
  468. -fno-weak -nostdinc++
  469. -fvisibility-inlines-hidden
  470. -fvisibility-ms-compat
  471. -fext-numeric-literals
  472. -Wabi-tag -Wcatch-value -Wcatch-value=N
  473. -Wno-class-conversion -Wclass-memaccess
  474. -Wcomma-subscript -Wconditionally-supported
  475. -Wno-conversion-null -Wctor-dtor-privacy -Wno-delete-incomplete
  476. -Wdelete-non-virtual-dtor -Wdeprecated-copy -Wdeprecated-copy-dtor
  477. -Weffc++ -Wextra-semi -Wno-inaccessible-base
  478. -Wno-inherited-variadic-ctor -Wno-init-list-lifetime
  479. -Wno-invalid-offsetof -Wno-literal-suffix -Wmismatched-tags
  480. -Wmultiple-inheritance -Wnamespaces -Wnarrowing
  481. -Wnoexcept -Wnoexcept-type -Wnon-virtual-dtor
  482. -Wpessimizing-move -Wno-placement-new -Wplacement-new=N
  483. -Wredundant-move -Wredundant-tags
  484. -Wreorder -Wregister
  485. -Wstrict-null-sentinel -Wno-subobject-linkage -Wtemplates
  486. -Wno-non-template-friend -Wold-style-cast
  487. -Woverloaded-virtual -Wno-pmf-conversions -Wsign-promo
  488. -Wsized-deallocation -Wsuggest-final-methods
  489. -Wsuggest-final-types -Wsuggest-override
  490. -Wno-terminate -Wuseless-cast -Wvirtual-inheritance
  491. -Wno-virtual-move-assign -Wvolatile -Wzero-as-null-pointer-constant
  492. _Objective-C and Objective-C++ Language Options_
  493. *Note Options Controlling Objective-C and Objective-C++ Dialects:
  494. Objective-C and Objective-C++ Dialect Options.
  495. -fconstant-string-class=CLASS-NAME
  496. -fgnu-runtime -fnext-runtime
  497. -fno-nil-receivers
  498. -fobjc-abi-version=N
  499. -fobjc-call-cxx-cdtors
  500. -fobjc-direct-dispatch
  501. -fobjc-exceptions
  502. -fobjc-gc
  503. -fobjc-nilcheck
  504. -fobjc-std=objc1
  505. -fno-local-ivars
  506. -fivar-visibility=[public|protected|private|package]
  507. -freplace-objc-classes
  508. -fzero-link
  509. -gen-decls
  510. -Wassign-intercept -Wno-property-assign-default
  511. -Wno-protocol -Wselector
  512. -Wstrict-selector-match
  513. -Wundeclared-selector
  514. _Diagnostic Message Formatting Options_
  515. *Note Options to Control Diagnostic Messages Formatting: Diagnostic
  516. Message Formatting Options.
  517. -fmessage-length=N
  518. -fdiagnostics-show-location=[once|every-line]
  519. -fdiagnostics-color=[auto|never|always]
  520. -fdiagnostics-urls=[auto|never|always]
  521. -fdiagnostics-format=[text|json]
  522. -fno-diagnostics-show-option -fno-diagnostics-show-caret
  523. -fno-diagnostics-show-labels -fno-diagnostics-show-line-numbers
  524. -fno-diagnostics-show-cwe
  525. -fdiagnostics-minimum-margin-width=WIDTH
  526. -fdiagnostics-parseable-fixits -fdiagnostics-generate-patch
  527. -fdiagnostics-show-template-tree -fno-elide-type
  528. -fdiagnostics-path-format=[none|separate-events|inline-events]
  529. -fdiagnostics-show-path-depths
  530. -fno-show-column
  531. _Warning Options_
  532. *Note Options to Request or Suppress Warnings: Warning Options.
  533. -fsyntax-only -fmax-errors=N -Wpedantic
  534. -pedantic-errors
  535. -w -Wextra -Wall -Wabi=N
  536. -Waddress -Wno-address-of-packed-member -Waggregate-return
  537. -Walloc-size-larger-than=BYTE-SIZE -Walloc-zero
  538. -Walloca -Walloca-larger-than=BYTE-SIZE
  539. -Wno-aggressive-loop-optimizations
  540. -Warith-conversion
  541. -Warray-bounds -Warray-bounds=N
  542. -Wno-attributes -Wattribute-alias=N -Wno-attribute-alias
  543. -Wno-attribute-warning -Wbool-compare -Wbool-operation
  544. -Wno-builtin-declaration-mismatch
  545. -Wno-builtin-macro-redefined -Wc90-c99-compat -Wc99-c11-compat
  546. -Wc11-c2x-compat
  547. -Wc++-compat -Wc++11-compat -Wc++14-compat -Wc++17-compat
  548. -Wc++20-compat
  549. -Wcast-align -Wcast-align=strict -Wcast-function-type -Wcast-qual
  550. -Wchar-subscripts
  551. -Wclobbered -Wcomment
  552. -Wconversion -Wno-coverage-mismatch -Wno-cpp
  553. -Wdangling-else -Wdate-time
  554. -Wno-deprecated -Wno-deprecated-declarations -Wno-designated-init
  555. -Wdisabled-optimization
  556. -Wno-discarded-array-qualifiers -Wno-discarded-qualifiers
  557. -Wno-div-by-zero -Wdouble-promotion
  558. -Wduplicated-branches -Wduplicated-cond
  559. -Wempty-body -Wno-endif-labels -Wenum-compare -Wenum-conversion
  560. -Werror -Werror=* -Wexpansion-to-defined -Wfatal-errors
  561. -Wfloat-conversion -Wfloat-equal -Wformat -Wformat=2
  562. -Wno-format-contains-nul -Wno-format-extra-args
  563. -Wformat-nonliteral -Wformat-overflow=N
  564. -Wformat-security -Wformat-signedness -Wformat-truncation=N
  565. -Wformat-y2k -Wframe-address
  566. -Wframe-larger-than=BYTE-SIZE -Wno-free-nonheap-object
  567. -Wno-hsa -Wno-if-not-aligned -Wno-ignored-attributes
  568. -Wignored-qualifiers -Wno-incompatible-pointer-types
  569. -Wimplicit -Wimplicit-fallthrough -Wimplicit-fallthrough=N
  570. -Wno-implicit-function-declaration -Wno-implicit-int
  571. -Winit-self -Winline -Wno-int-conversion -Wint-in-bool-context
  572. -Wno-int-to-pointer-cast -Wno-invalid-memory-model
  573. -Winvalid-pch -Wjump-misses-init -Wlarger-than=BYTE-SIZE
  574. -Wlogical-not-parentheses -Wlogical-op -Wlong-long
  575. -Wno-lto-type-mismatch -Wmain -Wmaybe-uninitialized
  576. -Wmemset-elt-size -Wmemset-transposed-args
  577. -Wmisleading-indentation -Wmissing-attributes -Wmissing-braces
  578. -Wmissing-field-initializers -Wmissing-format-attribute
  579. -Wmissing-include-dirs -Wmissing-noreturn -Wno-missing-profile
  580. -Wno-multichar -Wmultistatement-macros -Wnonnull -Wnonnull-compare
  581. -Wnormalized=[none|id|nfc|nfkc]
  582. -Wnull-dereference -Wno-odr -Wopenmp-simd
  583. -Wno-overflow -Woverlength-strings -Wno-override-init-side-effects
  584. -Wpacked -Wno-packed-bitfield-compat -Wpacked-not-aligned -Wpadded
  585. -Wparentheses -Wno-pedantic-ms-format
  586. -Wpointer-arith -Wno-pointer-compare -Wno-pointer-to-int-cast
  587. -Wno-pragmas -Wno-prio-ctor-dtor -Wredundant-decls
  588. -Wrestrict -Wno-return-local-addr -Wreturn-type
  589. -Wno-scalar-storage-order -Wsequence-point
  590. -Wshadow -Wshadow=global -Wshadow=local -Wshadow=compatible-local
  591. -Wno-shadow-ivar
  592. -Wno-shift-count-negative -Wno-shift-count-overflow -Wshift-negative-value
  593. -Wno-shift-overflow -Wshift-overflow=N
  594. -Wsign-compare -Wsign-conversion
  595. -Wno-sizeof-array-argument
  596. -Wsizeof-pointer-div -Wsizeof-pointer-memaccess
  597. -Wstack-protector -Wstack-usage=BYTE-SIZE -Wstrict-aliasing
  598. -Wstrict-aliasing=n -Wstrict-overflow -Wstrict-overflow=N
  599. -Wstring-compare
  600. -Wstringop-overflow=N -Wno-stringop-truncation
  601. -Wsuggest-attribute=[pure|const|noreturn|format|malloc]
  602. -Wswitch -Wno-switch-bool -Wswitch-default -Wswitch-enum
  603. -Wno-switch-outside-range -Wno-switch-unreachable -Wsync-nand
  604. -Wsystem-headers -Wtautological-compare -Wtrampolines -Wtrigraphs
  605. -Wtype-limits -Wundef
  606. -Wuninitialized -Wunknown-pragmas
  607. -Wunsuffixed-float-constants -Wunused
  608. -Wunused-but-set-parameter -Wunused-but-set-variable
  609. -Wunused-const-variable -Wunused-const-variable=N
  610. -Wunused-function -Wunused-label -Wunused-local-typedefs
  611. -Wunused-macros
  612. -Wunused-parameter -Wno-unused-result
  613. -Wunused-value -Wunused-variable
  614. -Wno-varargs -Wvariadic-macros
  615. -Wvector-operation-performance
  616. -Wvla -Wvla-larger-than=BYTE-SIZE -Wno-vla-larger-than
  617. -Wvolatile-register-var -Wwrite-strings
  618. -Wzero-length-bounds
  619. _Static Analyzer Options_
  620. -fanalyzer
  621. -fanalyzer-call-summaries
  622. -fanalyzer-checker=NAME
  623. -fanalyzer-fine-grained
  624. -fanalyzer-state-merge
  625. -fanalyzer-state-purge
  626. -fanalyzer-transitivity
  627. -fanalyzer-verbose-edges
  628. -fanalyzer-verbose-state-changes
  629. -fanalyzer-verbosity=LEVEL
  630. -fdump-analyzer
  631. -fdump-analyzer-stderr
  632. -fdump-analyzer-callgraph
  633. -fdump-analyzer-exploded-graph
  634. -fdump-analyzer-exploded-nodes
  635. -fdump-analyzer-exploded-nodes-2
  636. -fdump-analyzer-exploded-nodes-3
  637. -fdump-analyzer-state-purge
  638. -fdump-analyzer-supergraph
  639. -Wno-analyzer-double-fclose
  640. -Wno-analyzer-double-free
  641. -Wno-analyzer-exposure-through-output-file
  642. -Wno-analyzer-file-leak
  643. -Wno-analyzer-free-of-non-heap
  644. -Wno-analyzer-malloc-leak
  645. -Wno-analyzer-null-argument
  646. -Wno-analyzer-null-dereference
  647. -Wno-analyzer-possible-null-argument
  648. -Wno-analyzer-possible-null-dereference
  649. -Wno-analyzer-stale-setjmp-buffer
  650. -Wno-analyzer-tainted-array-index
  651. -Wanalyzer-too-complex
  652. -Wno-analyzer-unsafe-call-within-signal-handler
  653. -Wno-analyzer-use-after-free
  654. -Wno-analyzer-use-of-pointer-in-stale-stack-frame
  655. -Wno-analyzer-use-of-uninitialized-value
  656. _C and Objective-C-only Warning Options_
  657. -Wbad-function-cast -Wmissing-declarations
  658. -Wmissing-parameter-type -Wmissing-prototypes -Wnested-externs
  659. -Wold-style-declaration -Wold-style-definition
  660. -Wstrict-prototypes -Wtraditional -Wtraditional-conversion
  661. -Wdeclaration-after-statement -Wpointer-sign
  662. _Debugging Options_
  663. *Note Options for Debugging Your Program: Debugging Options.
  664. -g -gLEVEL -gdwarf -gdwarf-VERSION
  665. -ggdb -grecord-gcc-switches -gno-record-gcc-switches
  666. -gstabs -gstabs+ -gstrict-dwarf -gno-strict-dwarf
  667. -gas-loc-support -gno-as-loc-support
  668. -gas-locview-support -gno-as-locview-support
  669. -gcolumn-info -gno-column-info
  670. -gstatement-frontiers -gno-statement-frontiers
  671. -gvariable-location-views -gno-variable-location-views
  672. -ginternal-reset-location-views -gno-internal-reset-location-views
  673. -ginline-points -gno-inline-points
  674. -gvms -gxcoff -gxcoff+ -gz[=TYPE]
  675. -gsplit-dwarf -gdescribe-dies -gno-describe-dies
  676. -fdebug-prefix-map=OLD=NEW -fdebug-types-section
  677. -fno-eliminate-unused-debug-types
  678. -femit-struct-debug-baseonly -femit-struct-debug-reduced
  679. -femit-struct-debug-detailed[=SPEC-LIST]
  680. -fno-eliminate-unused-debug-symbols -femit-class-debug-always
  681. -fno-merge-debug-strings -fno-dwarf2-cfi-asm
  682. -fvar-tracking -fvar-tracking-assignments
  683. _Optimization Options_
  684. *Note Options that Control Optimization: Optimize Options.
  685. -faggressive-loop-optimizations
  686. -falign-functions[=N[:M:[N2[:M2]]]]
  687. -falign-jumps[=N[:M:[N2[:M2]]]]
  688. -falign-labels[=N[:M:[N2[:M2]]]]
  689. -falign-loops[=N[:M:[N2[:M2]]]]
  690. -fno-allocation-dce -fallow-store-data-races
  691. -fassociative-math -fauto-profile -fauto-profile[=PATH]
  692. -fauto-inc-dec -fbranch-probabilities
  693. -fcaller-saves
  694. -fcombine-stack-adjustments -fconserve-stack
  695. -fcompare-elim -fcprop-registers -fcrossjumping
  696. -fcse-follow-jumps -fcse-skip-blocks -fcx-fortran-rules
  697. -fcx-limited-range
  698. -fdata-sections -fdce -fdelayed-branch
  699. -fdelete-null-pointer-checks -fdevirtualize -fdevirtualize-speculatively
  700. -fdevirtualize-at-ltrans -fdse
  701. -fearly-inlining -fipa-sra -fexpensive-optimizations -ffat-lto-objects
  702. -ffast-math -ffinite-math-only -ffloat-store -fexcess-precision=STYLE
  703. -ffinite-loops
  704. -fforward-propagate -ffp-contract=STYLE -ffunction-sections
  705. -fgcse -fgcse-after-reload -fgcse-las -fgcse-lm -fgraphite-identity
  706. -fgcse-sm -fhoist-adjacent-loads -fif-conversion
  707. -fif-conversion2 -findirect-inlining
  708. -finline-functions -finline-functions-called-once -finline-limit=N
  709. -finline-small-functions -fipa-cp -fipa-cp-clone
  710. -fipa-bit-cp -fipa-vrp -fipa-pta -fipa-profile -fipa-pure-const
  711. -fipa-reference -fipa-reference-addressable
  712. -fipa-stack-alignment -fipa-icf -fira-algorithm=ALGORITHM
  713. -flive-patching=LEVEL
  714. -fira-region=REGION -fira-hoist-pressure
  715. -fira-loop-pressure -fno-ira-share-save-slots
  716. -fno-ira-share-spill-slots
  717. -fisolate-erroneous-paths-dereference -fisolate-erroneous-paths-attribute
  718. -fivopts -fkeep-inline-functions -fkeep-static-functions
  719. -fkeep-static-consts -flimit-function-alignment -flive-range-shrinkage
  720. -floop-block -floop-interchange -floop-strip-mine
  721. -floop-unroll-and-jam -floop-nest-optimize
  722. -floop-parallelize-all -flra-remat -flto -flto-compression-level
  723. -flto-partition=ALG -fmerge-all-constants
  724. -fmerge-constants -fmodulo-sched -fmodulo-sched-allow-regmoves
  725. -fmove-loop-invariants -fno-branch-count-reg
  726. -fno-defer-pop -fno-fp-int-builtin-inexact -fno-function-cse
  727. -fno-guess-branch-probability -fno-inline -fno-math-errno -fno-peephole
  728. -fno-peephole2 -fno-printf-return-value -fno-sched-interblock
  729. -fno-sched-spec -fno-signed-zeros
  730. -fno-toplevel-reorder -fno-trapping-math -fno-zero-initialized-in-bss
  731. -fomit-frame-pointer -foptimize-sibling-calls
  732. -fpartial-inlining -fpeel-loops -fpredictive-commoning
  733. -fprefetch-loop-arrays
  734. -fprofile-correction
  735. -fprofile-use -fprofile-use=PATH -fprofile-partial-training
  736. -fprofile-values -fprofile-reorder-functions
  737. -freciprocal-math -free -frename-registers -freorder-blocks
  738. -freorder-blocks-algorithm=ALGORITHM
  739. -freorder-blocks-and-partition -freorder-functions
  740. -frerun-cse-after-loop -freschedule-modulo-scheduled-loops
  741. -frounding-math -fsave-optimization-record
  742. -fsched2-use-superblocks -fsched-pressure
  743. -fsched-spec-load -fsched-spec-load-dangerous
  744. -fsched-stalled-insns-dep[=N] -fsched-stalled-insns[=N]
  745. -fsched-group-heuristic -fsched-critical-path-heuristic
  746. -fsched-spec-insn-heuristic -fsched-rank-heuristic
  747. -fsched-last-insn-heuristic -fsched-dep-count-heuristic
  748. -fschedule-fusion
  749. -fschedule-insns -fschedule-insns2 -fsection-anchors
  750. -fselective-scheduling -fselective-scheduling2
  751. -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops
  752. -fsemantic-interposition -fshrink-wrap -fshrink-wrap-separate
  753. -fsignaling-nans
  754. -fsingle-precision-constant -fsplit-ivs-in-unroller -fsplit-loops
  755. -fsplit-paths
  756. -fsplit-wide-types -fsplit-wide-types-early -fssa-backprop -fssa-phiopt
  757. -fstdarg-opt -fstore-merging -fstrict-aliasing
  758. -fthread-jumps -ftracer -ftree-bit-ccp
  759. -ftree-builtin-call-dce -ftree-ccp -ftree-ch
  760. -ftree-coalesce-vars -ftree-copy-prop -ftree-dce -ftree-dominator-opts
  761. -ftree-dse -ftree-forwprop -ftree-fre -fcode-hoisting
  762. -ftree-loop-if-convert -ftree-loop-im
  763. -ftree-phiprop -ftree-loop-distribution -ftree-loop-distribute-patterns
  764. -ftree-loop-ivcanon -ftree-loop-linear -ftree-loop-optimize
  765. -ftree-loop-vectorize
  766. -ftree-parallelize-loops=N -ftree-pre -ftree-partial-pre -ftree-pta
  767. -ftree-reassoc -ftree-scev-cprop -ftree-sink -ftree-slsr -ftree-sra
  768. -ftree-switch-conversion -ftree-tail-merge
  769. -ftree-ter -ftree-vectorize -ftree-vrp -funconstrained-commons
  770. -funit-at-a-time -funroll-all-loops -funroll-loops
  771. -funsafe-math-optimizations -funswitch-loops
  772. -fipa-ra -fvariable-expansion-in-unroller -fvect-cost-model -fvpt
  773. -fweb -fwhole-program -fwpa -fuse-linker-plugin
  774. --param NAME=VALUE
  775. -O -O0 -O1 -O2 -O3 -Os -Ofast -Og
  776. _Program Instrumentation Options_
  777. *Note Program Instrumentation Options: Instrumentation Options.
  778. -p -pg -fprofile-arcs --coverage -ftest-coverage
  779. -fprofile-abs-path
  780. -fprofile-dir=PATH -fprofile-generate -fprofile-generate=PATH
  781. -fprofile-note=PATH -fprofile-prefix-path=PATH
  782. -fprofile-update=METHOD -fprofile-filter-files=REGEX
  783. -fprofile-exclude-files=REGEX
  784. -fprofile-reproducible=[multithreaded|parallel-runs|serial]
  785. -fsanitize=STYLE -fsanitize-recover -fsanitize-recover=STYLE
  786. -fasan-shadow-offset=NUMBER -fsanitize-sections=S1,S2,...
  787. -fsanitize-undefined-trap-on-error -fbounds-check
  788. -fcf-protection=[full|branch|return|none|check]
  789. -fstack-protector -fstack-protector-all -fstack-protector-strong
  790. -fstack-protector-explicit -fstack-check
  791. -fstack-limit-register=REG -fstack-limit-symbol=SYM
  792. -fno-stack-limit -fsplit-stack
  793. -fvtable-verify=[std|preinit|none]
  794. -fvtv-counts -fvtv-debug
  795. -finstrument-functions
  796. -finstrument-functions-exclude-function-list=SYM,SYM,...
  797. -finstrument-functions-exclude-file-list=FILE,FILE,...
  798. _Preprocessor Options_
  799. *Note Options Controlling the Preprocessor: Preprocessor Options.
  800. -AQUESTION=ANSWER
  801. -A-QUESTION[=ANSWER]
  802. -C -CC -DMACRO[=DEFN]
  803. -dD -dI -dM -dN -dU
  804. -fdebug-cpp -fdirectives-only -fdollars-in-identifiers
  805. -fexec-charset=CHARSET -fextended-identifiers
  806. -finput-charset=CHARSET -fmacro-prefix-map=OLD=NEW
  807. -fmax-include-depth=DEPTH
  808. -fno-canonical-system-headers -fpch-deps -fpch-preprocess
  809. -fpreprocessed -ftabstop=WIDTH -ftrack-macro-expansion
  810. -fwide-exec-charset=CHARSET -fworking-directory
  811. -H -imacros FILE -include FILE
  812. -M -MD -MF -MG -MM -MMD -MP -MQ -MT
  813. -no-integrated-cpp -P -pthread -remap
  814. -traditional -traditional-cpp -trigraphs
  815. -UMACRO -undef
  816. -Wp,OPTION -Xpreprocessor OPTION
  817. _Assembler Options_
  818. *Note Passing Options to the Assembler: Assembler Options.
  819. -Wa,OPTION -Xassembler OPTION
  820. _Linker Options_
  821. *Note Options for Linking: Link Options.
  822. OBJECT-FILE-NAME -fuse-ld=LINKER -lLIBRARY
  823. -nostartfiles -nodefaultlibs -nolibc -nostdlib
  824. -e ENTRY --entry=ENTRY
  825. -pie -pthread -r -rdynamic
  826. -s -static -static-pie -static-libgcc -static-libstdc++
  827. -static-libasan -static-libtsan -static-liblsan -static-libubsan
  828. -shared -shared-libgcc -symbolic
  829. -T SCRIPT -Wl,OPTION -Xlinker OPTION
  830. -u SYMBOL -z KEYWORD
  831. _Directory Options_
  832. *Note Options for Directory Search: Directory Options.
  833. -BPREFIX -IDIR -I-
  834. -idirafter DIR
  835. -imacros FILE -imultilib DIR
  836. -iplugindir=DIR -iprefix FILE
  837. -iquote DIR -isysroot DIR -isystem DIR
  838. -iwithprefix DIR -iwithprefixbefore DIR
  839. -LDIR -no-canonical-prefixes --no-sysroot-suffix
  840. -nostdinc -nostdinc++ --sysroot=DIR
  841. _Code Generation Options_
  842. *Note Options for Code Generation Conventions: Code Gen Options.
  843. -fcall-saved-REG -fcall-used-REG
  844. -ffixed-REG -fexceptions
  845. -fnon-call-exceptions -fdelete-dead-exceptions -funwind-tables
  846. -fasynchronous-unwind-tables
  847. -fno-gnu-unique
  848. -finhibit-size-directive -fcommon -fno-ident
  849. -fpcc-struct-return -fpic -fPIC -fpie -fPIE -fno-plt
  850. -fno-jump-tables
  851. -frecord-gcc-switches
  852. -freg-struct-return -fshort-enums -fshort-wchar
  853. -fverbose-asm -fpack-struct[=N]
  854. -fleading-underscore -ftls-model=MODEL
  855. -fstack-reuse=REUSE_LEVEL
  856. -ftrampolines -ftrapv -fwrapv
  857. -fvisibility=[default|internal|hidden|protected]
  858. -fstrict-volatile-bitfields -fsync-libcalls
  859. _Developer Options_
  860. *Note GCC Developer Options: Developer Options.
  861. -dLETTERS -dumpspecs -dumpmachine -dumpversion
  862. -dumpfullversion -fcallgraph-info[=su,da]
  863. -fchecking -fchecking=N
  864. -fdbg-cnt-list -fdbg-cnt=COUNTER-VALUE-LIST
  865. -fdisable-ipa-PASS_NAME
  866. -fdisable-rtl-PASS_NAME
  867. -fdisable-rtl-PASS-NAME=RANGE-LIST
  868. -fdisable-tree-PASS_NAME
  869. -fdisable-tree-PASS-NAME=RANGE-LIST
  870. -fdump-debug -fdump-earlydebug
  871. -fdump-noaddr -fdump-unnumbered -fdump-unnumbered-links
  872. -fdump-final-insns[=FILE]
  873. -fdump-ipa-all -fdump-ipa-cgraph -fdump-ipa-inline
  874. -fdump-lang-all
  875. -fdump-lang-SWITCH
  876. -fdump-lang-SWITCH-OPTIONS
  877. -fdump-lang-SWITCH-OPTIONS=FILENAME
  878. -fdump-passes
  879. -fdump-rtl-PASS -fdump-rtl-PASS=FILENAME
  880. -fdump-statistics
  881. -fdump-tree-all
  882. -fdump-tree-SWITCH
  883. -fdump-tree-SWITCH-OPTIONS
  884. -fdump-tree-SWITCH-OPTIONS=FILENAME
  885. -fcompare-debug[=OPTS] -fcompare-debug-second
  886. -fenable-KIND-PASS
  887. -fenable-KIND-PASS=RANGE-LIST
  888. -fira-verbose=N
  889. -flto-report -flto-report-wpa -fmem-report-wpa
  890. -fmem-report -fpre-ipa-mem-report -fpost-ipa-mem-report
  891. -fopt-info -fopt-info-OPTIONS[=FILE]
  892. -fprofile-report
  893. -frandom-seed=STRING -fsched-verbose=N
  894. -fsel-sched-verbose -fsel-sched-dump-cfg -fsel-sched-pipelining-verbose
  895. -fstats -fstack-usage -ftime-report -ftime-report-details
  896. -fvar-tracking-assignments-toggle -gtoggle
  897. -print-file-name=LIBRARY -print-libgcc-file-name
  898. -print-multi-directory -print-multi-lib -print-multi-os-directory
  899. -print-prog-name=PROGRAM -print-search-dirs -Q
  900. -print-sysroot -print-sysroot-headers-suffix
  901. -save-temps -save-temps=cwd -save-temps=obj -time[=FILE]
  902. _Machine-Dependent Options_
  903. *Note Machine-Dependent Options: Submodel Options.
  904. _AArch64 Options_
  905. -mabi=NAME -mbig-endian -mlittle-endian
  906. -mgeneral-regs-only
  907. -mcmodel=tiny -mcmodel=small -mcmodel=large
  908. -mstrict-align -mno-strict-align
  909. -momit-leaf-frame-pointer
  910. -mtls-dialect=desc -mtls-dialect=traditional
  911. -mtls-size=SIZE
  912. -mfix-cortex-a53-835769 -mfix-cortex-a53-843419
  913. -mlow-precision-recip-sqrt -mlow-precision-sqrt -mlow-precision-div
  914. -mpc-relative-literal-loads
  915. -msign-return-address=SCOPE
  916. -mbranch-protection=NONE|STANDARD|PAC-RET[+LEAF
  917. +B-KEY]|BTI
  918. -mharden-sls=OPTS
  919. -march=NAME -mcpu=NAME -mtune=NAME
  920. -moverride=STRING -mverbose-cost-dump
  921. -mstack-protector-guard=GUARD -mstack-protector-guard-reg=SYSREG
  922. -mstack-protector-guard-offset=OFFSET -mtrack-speculation
  923. -moutline-atomics
  924. _Adapteva Epiphany Options_
  925. -mhalf-reg-file -mprefer-short-insn-regs
  926. -mbranch-cost=NUM -mcmove -mnops=NUM -msoft-cmpsf
  927. -msplit-lohi -mpost-inc -mpost-modify -mstack-offset=NUM
  928. -mround-nearest -mlong-calls -mshort-calls -msmall16
  929. -mfp-mode=MODE -mvect-double -max-vect-align=NUM
  930. -msplit-vecmove-early -m1reg-REG
  931. _AMD GCN Options_
  932. -march=GPU -mtune=GPU -mstack-size=BYTES
  933. _ARC Options_
  934. -mbarrel-shifter -mjli-always
  935. -mcpu=CPU -mA6 -mARC600 -mA7 -mARC700
  936. -mdpfp -mdpfp-compact -mdpfp-fast -mno-dpfp-lrsr
  937. -mea -mno-mpy -mmul32x16 -mmul64 -matomic
  938. -mnorm -mspfp -mspfp-compact -mspfp-fast -msimd -msoft-float -mswap
  939. -mcrc -mdsp-packa -mdvbf -mlock -mmac-d16 -mmac-24 -mrtsc -mswape
  940. -mtelephony -mxy -misize -mannotate-align -marclinux -marclinux_prof
  941. -mlong-calls -mmedium-calls -msdata -mirq-ctrl-saved
  942. -mrgf-banked-regs -mlpc-width=WIDTH -G NUM
  943. -mvolatile-cache -mtp-regno=REGNO
  944. -malign-call -mauto-modify-reg -mbbit-peephole -mno-brcc
  945. -mcase-vector-pcrel -mcompact-casesi -mno-cond-exec -mearly-cbranchsi
  946. -mexpand-adddi -mindexed-loads -mlra -mlra-priority-none
  947. -mlra-priority-compact mlra-priority-noncompact -mmillicode
  948. -mmixed-code -mq-class -mRcq -mRcw -msize-level=LEVEL
  949. -mtune=CPU -mmultcost=NUM -mcode-density-frame
  950. -munalign-prob-threshold=PROBABILITY -mmpy-option=MULTO
  951. -mdiv-rem -mcode-density -mll64 -mfpu=FPU -mrf16 -mbranch-index
  952. _ARM Options_
  953. -mapcs-frame -mno-apcs-frame
  954. -mabi=NAME
  955. -mapcs-stack-check -mno-apcs-stack-check
  956. -mapcs-reentrant -mno-apcs-reentrant
  957. -mgeneral-regs-only
  958. -msched-prolog -mno-sched-prolog
  959. -mlittle-endian -mbig-endian
  960. -mbe8 -mbe32
  961. -mfloat-abi=NAME
  962. -mfp16-format=NAME
  963. -mthumb-interwork -mno-thumb-interwork
  964. -mcpu=NAME -march=NAME -mfpu=NAME
  965. -mtune=NAME -mprint-tune-info
  966. -mstructure-size-boundary=N
  967. -mabort-on-noreturn
  968. -mlong-calls -mno-long-calls
  969. -msingle-pic-base -mno-single-pic-base
  970. -mpic-register=REG
  971. -mnop-fun-dllimport
  972. -mpoke-function-name
  973. -mthumb -marm -mflip-thumb
  974. -mtpcs-frame -mtpcs-leaf-frame
  975. -mcaller-super-interworking -mcallee-super-interworking
  976. -mtp=NAME -mtls-dialect=DIALECT
  977. -mword-relocations
  978. -mfix-cortex-m3-ldrd
  979. -munaligned-access
  980. -mneon-for-64bits
  981. -mslow-flash-data
  982. -masm-syntax-unified
  983. -mrestrict-it
  984. -mverbose-cost-dump
  985. -mpure-code
  986. -mcmse
  987. -mfdpic
  988. _AVR Options_
  989. -mmcu=MCU -mabsdata -maccumulate-args
  990. -mbranch-cost=COST
  991. -mcall-prologues -mgas-isr-prologues -mint8
  992. -mdouble=BITS -mlong-double=BITS
  993. -mn_flash=SIZE -mno-interrupts
  994. -mmain-is-OS_task -mrelax -mrmw -mstrict-X -mtiny-stack
  995. -mfract-convert-truncate
  996. -mshort-calls -nodevicelib -nodevicespecs
  997. -Waddr-space-convert -Wmisspelled-isr
  998. _Blackfin Options_
  999. -mcpu=CPU[-SIREVISION]
  1000. -msim -momit-leaf-frame-pointer -mno-omit-leaf-frame-pointer
  1001. -mspecld-anomaly -mno-specld-anomaly -mcsync-anomaly -mno-csync-anomaly
  1002. -mlow-64k -mno-low64k -mstack-check-l1 -mid-shared-library
  1003. -mno-id-shared-library -mshared-library-id=N
  1004. -mleaf-id-shared-library -mno-leaf-id-shared-library
  1005. -msep-data -mno-sep-data -mlong-calls -mno-long-calls
  1006. -mfast-fp -minline-plt -mmulticore -mcorea -mcoreb -msdram
  1007. -micplb
  1008. _C6X Options_
  1009. -mbig-endian -mlittle-endian -march=CPU
  1010. -msim -msdata=SDATA-TYPE
  1011. _CRIS Options_
  1012. -mcpu=CPU -march=CPU -mtune=CPU
  1013. -mmax-stack-frame=N -melinux-stacksize=N
  1014. -metrax4 -metrax100 -mpdebug -mcc-init -mno-side-effects
  1015. -mstack-align -mdata-align -mconst-align
  1016. -m32-bit -m16-bit -m8-bit -mno-prologue-epilogue -mno-gotplt
  1017. -melf -maout -melinux -mlinux -sim -sim2
  1018. -mmul-bug-workaround -mno-mul-bug-workaround
  1019. _CR16 Options_
  1020. -mmac
  1021. -mcr16cplus -mcr16c
  1022. -msim -mint32 -mbit-ops
  1023. -mdata-model=MODEL
  1024. _C-SKY Options_
  1025. -march=ARCH -mcpu=CPU
  1026. -mbig-endian -EB -mlittle-endian -EL
  1027. -mhard-float -msoft-float -mfpu=FPU -mdouble-float -mfdivdu
  1028. -melrw -mistack -mmp -mcp -mcache -msecurity -mtrust
  1029. -mdsp -medsp -mvdsp
  1030. -mdiv -msmart -mhigh-registers -manchor
  1031. -mpushpop -mmultiple-stld -mconstpool -mstack-size -mccrt
  1032. -mbranch-cost=N -mcse-cc -msched-prolog
  1033. _Darwin Options_
  1034. -all_load -allowable_client -arch -arch_errors_fatal
  1035. -arch_only -bind_at_load -bundle -bundle_loader
  1036. -client_name -compatibility_version -current_version
  1037. -dead_strip
  1038. -dependency-file -dylib_file -dylinker_install_name
  1039. -dynamic -dynamiclib -exported_symbols_list
  1040. -filelist -flat_namespace -force_cpusubtype_ALL
  1041. -force_flat_namespace -headerpad_max_install_names
  1042. -iframework
  1043. -image_base -init -install_name -keep_private_externs
  1044. -multi_module -multiply_defined -multiply_defined_unused
  1045. -noall_load -no_dead_strip_inits_and_terms
  1046. -nofixprebinding -nomultidefs -noprebind -noseglinkedit
  1047. -pagezero_size -prebind -prebind_all_twolevel_modules
  1048. -private_bundle -read_only_relocs -sectalign
  1049. -sectobjectsymbols -whyload -seg1addr
  1050. -sectcreate -sectobjectsymbols -sectorder
  1051. -segaddr -segs_read_only_addr -segs_read_write_addr
  1052. -seg_addr_table -seg_addr_table_filename -seglinkedit
  1053. -segprot -segs_read_only_addr -segs_read_write_addr
  1054. -single_module -static -sub_library -sub_umbrella
  1055. -twolevel_namespace -umbrella -undefined
  1056. -unexported_symbols_list -weak_reference_mismatches
  1057. -whatsloaded -F -gused -gfull -mmacosx-version-min=VERSION
  1058. -mkernel -mone-byte-bool
  1059. _DEC Alpha Options_
  1060. -mno-fp-regs -msoft-float
  1061. -mieee -mieee-with-inexact -mieee-conformant
  1062. -mfp-trap-mode=MODE -mfp-rounding-mode=MODE
  1063. -mtrap-precision=MODE -mbuild-constants
  1064. -mcpu=CPU-TYPE -mtune=CPU-TYPE
  1065. -mbwx -mmax -mfix -mcix
  1066. -mfloat-vax -mfloat-ieee
  1067. -mexplicit-relocs -msmall-data -mlarge-data
  1068. -msmall-text -mlarge-text
  1069. -mmemory-latency=TIME
  1070. _eBPF Options_
  1071. -mbig-endian -mlittle-endian -mkernel=VERSION
  1072. -mframe-limit=BYTES -mxbpf
  1073. _FR30 Options_
  1074. -msmall-model -mno-lsim
  1075. _FT32 Options_
  1076. -msim -mlra -mnodiv -mft32b -mcompress -mnopm
  1077. _FRV Options_
  1078. -mgpr-32 -mgpr-64 -mfpr-32 -mfpr-64
  1079. -mhard-float -msoft-float
  1080. -malloc-cc -mfixed-cc -mdword -mno-dword
  1081. -mdouble -mno-double
  1082. -mmedia -mno-media -mmuladd -mno-muladd
  1083. -mfdpic -minline-plt -mgprel-ro -multilib-library-pic
  1084. -mlinked-fp -mlong-calls -malign-labels
  1085. -mlibrary-pic -macc-4 -macc-8
  1086. -mpack -mno-pack -mno-eflags -mcond-move -mno-cond-move
  1087. -moptimize-membar -mno-optimize-membar
  1088. -mscc -mno-scc -mcond-exec -mno-cond-exec
  1089. -mvliw-branch -mno-vliw-branch
  1090. -mmulti-cond-exec -mno-multi-cond-exec -mnested-cond-exec
  1091. -mno-nested-cond-exec -mtomcat-stats
  1092. -mTLS -mtls
  1093. -mcpu=CPU
  1094. _GNU/Linux Options_
  1095. -mglibc -muclibc -mmusl -mbionic -mandroid
  1096. -tno-android-cc -tno-android-ld
  1097. _H8/300 Options_
  1098. -mrelax -mh -ms -mn -mexr -mno-exr -mint32 -malign-300
  1099. _HPPA Options_
  1100. -march=ARCHITECTURE-TYPE
  1101. -mcaller-copies -mdisable-fpregs -mdisable-indexing
  1102. -mfast-indirect-calls -mgas -mgnu-ld -mhp-ld
  1103. -mfixed-range=REGISTER-RANGE
  1104. -mjump-in-delay -mlinker-opt -mlong-calls
  1105. -mlong-load-store -mno-disable-fpregs
  1106. -mno-disable-indexing -mno-fast-indirect-calls -mno-gas
  1107. -mno-jump-in-delay -mno-long-load-store
  1108. -mno-portable-runtime -mno-soft-float
  1109. -mno-space-regs -msoft-float -mpa-risc-1-0
  1110. -mpa-risc-1-1 -mpa-risc-2-0 -mportable-runtime
  1111. -mschedule=CPU-TYPE -mspace-regs -msio -mwsio
  1112. -munix=UNIX-STD -nolibdld -static -threads
  1113. _IA-64 Options_
  1114. -mbig-endian -mlittle-endian -mgnu-as -mgnu-ld -mno-pic
  1115. -mvolatile-asm-stop -mregister-names -msdata -mno-sdata
  1116. -mconstant-gp -mauto-pic -mfused-madd
  1117. -minline-float-divide-min-latency
  1118. -minline-float-divide-max-throughput
  1119. -mno-inline-float-divide
  1120. -minline-int-divide-min-latency
  1121. -minline-int-divide-max-throughput
  1122. -mno-inline-int-divide
  1123. -minline-sqrt-min-latency -minline-sqrt-max-throughput
  1124. -mno-inline-sqrt
  1125. -mdwarf2-asm -mearly-stop-bits
  1126. -mfixed-range=REGISTER-RANGE -mtls-size=TLS-SIZE
  1127. -mtune=CPU-TYPE -milp32 -mlp64
  1128. -msched-br-data-spec -msched-ar-data-spec -msched-control-spec
  1129. -msched-br-in-data-spec -msched-ar-in-data-spec -msched-in-control-spec
  1130. -msched-spec-ldc -msched-spec-control-ldc
  1131. -msched-prefer-non-data-spec-insns -msched-prefer-non-control-spec-insns
  1132. -msched-stop-bits-after-every-cycle -msched-count-spec-in-critical-path
  1133. -msel-sched-dont-check-control-spec -msched-fp-mem-deps-zero-cost
  1134. -msched-max-memory-insns-hard-limit -msched-max-memory-insns=MAX-INSNS
  1135. _LM32 Options_
  1136. -mbarrel-shift-enabled -mdivide-enabled -mmultiply-enabled
  1137. -msign-extend-enabled -muser-enabled
  1138. _M32R/D Options_
  1139. -m32r2 -m32rx -m32r
  1140. -mdebug
  1141. -malign-loops -mno-align-loops
  1142. -missue-rate=NUMBER
  1143. -mbranch-cost=NUMBER
  1144. -mmodel=CODE-SIZE-MODEL-TYPE
  1145. -msdata=SDATA-TYPE
  1146. -mno-flush-func -mflush-func=NAME
  1147. -mno-flush-trap -mflush-trap=NUMBER
  1148. -G NUM
  1149. _M32C Options_
  1150. -mcpu=CPU -msim -memregs=NUMBER
  1151. _M680x0 Options_
  1152. -march=ARCH -mcpu=CPU -mtune=TUNE
  1153. -m68000 -m68020 -m68020-40 -m68020-60 -m68030 -m68040
  1154. -m68060 -mcpu32 -m5200 -m5206e -m528x -m5307 -m5407
  1155. -mcfv4e -mbitfield -mno-bitfield -mc68000 -mc68020
  1156. -mnobitfield -mrtd -mno-rtd -mdiv -mno-div -mshort
  1157. -mno-short -mhard-float -m68881 -msoft-float -mpcrel
  1158. -malign-int -mstrict-align -msep-data -mno-sep-data
  1159. -mshared-library-id=n -mid-shared-library -mno-id-shared-library
  1160. -mxgot -mno-xgot -mlong-jump-table-offsets
  1161. _MCore Options_
  1162. -mhardlit -mno-hardlit -mdiv -mno-div -mrelax-immediates
  1163. -mno-relax-immediates -mwide-bitfields -mno-wide-bitfields
  1164. -m4byte-functions -mno-4byte-functions -mcallgraph-data
  1165. -mno-callgraph-data -mslow-bytes -mno-slow-bytes -mno-lsim
  1166. -mlittle-endian -mbig-endian -m210 -m340 -mstack-increment
  1167. _MeP Options_
  1168. -mabsdiff -mall-opts -maverage -mbased=N -mbitops
  1169. -mc=N -mclip -mconfig=NAME -mcop -mcop32 -mcop64 -mivc2
  1170. -mdc -mdiv -meb -mel -mio-volatile -ml -mleadz -mm -mminmax
  1171. -mmult -mno-opts -mrepeat -ms -msatur -msdram -msim -msimnovec -mtf
  1172. -mtiny=N
  1173. _MicroBlaze Options_
  1174. -msoft-float -mhard-float -msmall-divides -mcpu=CPU
  1175. -mmemcpy -mxl-soft-mul -mxl-soft-div -mxl-barrel-shift
  1176. -mxl-pattern-compare -mxl-stack-check -mxl-gp-opt -mno-clearbss
  1177. -mxl-multiply-high -mxl-float-convert -mxl-float-sqrt
  1178. -mbig-endian -mlittle-endian -mxl-reorder -mxl-mode-APP-MODEL
  1179. -mpic-data-is-text-relative
  1180. _MIPS Options_
  1181. -EL -EB -march=ARCH -mtune=ARCH
  1182. -mips1 -mips2 -mips3 -mips4 -mips32 -mips32r2 -mips32r3 -mips32r5
  1183. -mips32r6 -mips64 -mips64r2 -mips64r3 -mips64r5 -mips64r6
  1184. -mips16 -mno-mips16 -mflip-mips16
  1185. -minterlink-compressed -mno-interlink-compressed
  1186. -minterlink-mips16 -mno-interlink-mips16
  1187. -mabi=ABI -mabicalls -mno-abicalls
  1188. -mshared -mno-shared -mplt -mno-plt -mxgot -mno-xgot
  1189. -mgp32 -mgp64 -mfp32 -mfpxx -mfp64 -mhard-float -msoft-float
  1190. -mno-float -msingle-float -mdouble-float
  1191. -modd-spreg -mno-odd-spreg
  1192. -mabs=MODE -mnan=ENCODING
  1193. -mdsp -mno-dsp -mdspr2 -mno-dspr2
  1194. -mmcu -mmno-mcu
  1195. -meva -mno-eva
  1196. -mvirt -mno-virt
  1197. -mxpa -mno-xpa
  1198. -mcrc -mno-crc
  1199. -mginv -mno-ginv
  1200. -mmicromips -mno-micromips
  1201. -mmsa -mno-msa
  1202. -mloongson-mmi -mno-loongson-mmi
  1203. -mloongson-ext -mno-loongson-ext
  1204. -mloongson-ext2 -mno-loongson-ext2
  1205. -mfpu=FPU-TYPE
  1206. -msmartmips -mno-smartmips
  1207. -mpaired-single -mno-paired-single -mdmx -mno-mdmx
  1208. -mips3d -mno-mips3d -mmt -mno-mt -mllsc -mno-llsc
  1209. -mlong64 -mlong32 -msym32 -mno-sym32
  1210. -GNUM -mlocal-sdata -mno-local-sdata
  1211. -mextern-sdata -mno-extern-sdata -mgpopt -mno-gopt
  1212. -membedded-data -mno-embedded-data
  1213. -muninit-const-in-rodata -mno-uninit-const-in-rodata
  1214. -mcode-readable=SETTING
  1215. -msplit-addresses -mno-split-addresses
  1216. -mexplicit-relocs -mno-explicit-relocs
  1217. -mcheck-zero-division -mno-check-zero-division
  1218. -mdivide-traps -mdivide-breaks
  1219. -mload-store-pairs -mno-load-store-pairs
  1220. -mmemcpy -mno-memcpy -mlong-calls -mno-long-calls
  1221. -mmad -mno-mad -mimadd -mno-imadd -mfused-madd -mno-fused-madd -nocpp
  1222. -mfix-24k -mno-fix-24k
  1223. -mfix-r4000 -mno-fix-r4000 -mfix-r4400 -mno-fix-r4400
  1224. -mfix-r5900 -mno-fix-r5900
  1225. -mfix-r10000 -mno-fix-r10000 -mfix-rm7000 -mno-fix-rm7000
  1226. -mfix-vr4120 -mno-fix-vr4120
  1227. -mfix-vr4130 -mno-fix-vr4130 -mfix-sb1 -mno-fix-sb1
  1228. -mflush-func=FUNC -mno-flush-func
  1229. -mbranch-cost=NUM -mbranch-likely -mno-branch-likely
  1230. -mcompact-branches=POLICY
  1231. -mfp-exceptions -mno-fp-exceptions
  1232. -mvr4130-align -mno-vr4130-align -msynci -mno-synci
  1233. -mlxc1-sxc1 -mno-lxc1-sxc1 -mmadd4 -mno-madd4
  1234. -mrelax-pic-calls -mno-relax-pic-calls -mmcount-ra-address
  1235. -mframe-header-opt -mno-frame-header-opt
  1236. _MMIX Options_
  1237. -mlibfuncs -mno-libfuncs -mepsilon -mno-epsilon -mabi=gnu
  1238. -mabi=mmixware -mzero-extend -mknuthdiv -mtoplevel-symbols
  1239. -melf -mbranch-predict -mno-branch-predict -mbase-addresses
  1240. -mno-base-addresses -msingle-exit -mno-single-exit
  1241. _MN10300 Options_
  1242. -mmult-bug -mno-mult-bug
  1243. -mno-am33 -mam33 -mam33-2 -mam34
  1244. -mtune=CPU-TYPE
  1245. -mreturn-pointer-on-d0
  1246. -mno-crt0 -mrelax -mliw -msetlb
  1247. _Moxie Options_
  1248. -meb -mel -mmul.x -mno-crt0
  1249. _MSP430 Options_
  1250. -msim -masm-hex -mmcu= -mcpu= -mlarge -msmall -mrelax
  1251. -mwarn-mcu
  1252. -mcode-region= -mdata-region=
  1253. -msilicon-errata= -msilicon-errata-warn=
  1254. -mhwmult= -minrt -mtiny-printf
  1255. _NDS32 Options_
  1256. -mbig-endian -mlittle-endian
  1257. -mreduced-regs -mfull-regs
  1258. -mcmov -mno-cmov
  1259. -mext-perf -mno-ext-perf
  1260. -mext-perf2 -mno-ext-perf2
  1261. -mext-string -mno-ext-string
  1262. -mv3push -mno-v3push
  1263. -m16bit -mno-16bit
  1264. -misr-vector-size=NUM
  1265. -mcache-block-size=NUM
  1266. -march=ARCH
  1267. -mcmodel=CODE-MODEL
  1268. -mctor-dtor -mrelax
  1269. _Nios II Options_
  1270. -G NUM -mgpopt=OPTION -mgpopt -mno-gpopt
  1271. -mgprel-sec=REGEXP -mr0rel-sec=REGEXP
  1272. -mel -meb
  1273. -mno-bypass-cache -mbypass-cache
  1274. -mno-cache-volatile -mcache-volatile
  1275. -mno-fast-sw-div -mfast-sw-div
  1276. -mhw-mul -mno-hw-mul -mhw-mulx -mno-hw-mulx -mno-hw-div -mhw-div
  1277. -mcustom-INSN=N -mno-custom-INSN
  1278. -mcustom-fpu-cfg=NAME
  1279. -mhal -msmallc -msys-crt0=NAME -msys-lib=NAME
  1280. -march=ARCH -mbmx -mno-bmx -mcdx -mno-cdx
  1281. _Nvidia PTX Options_
  1282. -m32 -m64 -mmainkernel -moptimize
  1283. _OpenRISC Options_
  1284. -mboard=NAME -mnewlib -mhard-mul -mhard-div
  1285. -msoft-mul -msoft-div
  1286. -msoft-float -mhard-float -mdouble-float -munordered-float
  1287. -mcmov -mror -mrori -msext -msfimm -mshftimm
  1288. _PDP-11 Options_
  1289. -mfpu -msoft-float -mac0 -mno-ac0 -m40 -m45 -m10
  1290. -mint32 -mno-int16 -mint16 -mno-int32
  1291. -msplit -munix-asm -mdec-asm -mgnu-asm -mlra
  1292. _picoChip Options_
  1293. -mae=AE_TYPE -mvliw-lookahead=N
  1294. -msymbol-as-address -mno-inefficient-warnings
  1295. _PowerPC Options_ See RS/6000 and PowerPC Options.
  1296. _PRU Options_
  1297. -mmcu=MCU -minrt -mno-relax -mloop
  1298. -mabi=VARIANT
  1299. _RISC-V Options_
  1300. -mbranch-cost=N-INSTRUCTION
  1301. -mplt -mno-plt
  1302. -mabi=ABI-STRING
  1303. -mfdiv -mno-fdiv
  1304. -mdiv -mno-div
  1305. -march=ISA-STRING
  1306. -mtune=PROCESSOR-STRING
  1307. -mpreferred-stack-boundary=NUM
  1308. -msmall-data-limit=N-BYTES
  1309. -msave-restore -mno-save-restore
  1310. -mstrict-align -mno-strict-align
  1311. -mcmodel=medlow -mcmodel=medany
  1312. -mexplicit-relocs -mno-explicit-relocs
  1313. -mrelax -mno-relax
  1314. -mriscv-attribute -mmo-riscv-attribute
  1315. -malign-data=TYPE
  1316. _RL78 Options_
  1317. -msim -mmul=none -mmul=g13 -mmul=g14 -mallregs
  1318. -mcpu=g10 -mcpu=g13 -mcpu=g14 -mg10 -mg13 -mg14
  1319. -m64bit-doubles -m32bit-doubles -msave-mduc-in-interrupts
  1320. _RS/6000 and PowerPC Options_
  1321. -mcpu=CPU-TYPE
  1322. -mtune=CPU-TYPE
  1323. -mcmodel=CODE-MODEL
  1324. -mpowerpc64
  1325. -maltivec -mno-altivec
  1326. -mpowerpc-gpopt -mno-powerpc-gpopt
  1327. -mpowerpc-gfxopt -mno-powerpc-gfxopt
  1328. -mmfcrf -mno-mfcrf -mpopcntb -mno-popcntb -mpopcntd -mno-popcntd
  1329. -mfprnd -mno-fprnd
  1330. -mcmpb -mno-cmpb -mhard-dfp -mno-hard-dfp
  1331. -mfull-toc -mminimal-toc -mno-fp-in-toc -mno-sum-in-toc
  1332. -m64 -m32 -mxl-compat -mno-xl-compat -mpe
  1333. -malign-power -malign-natural
  1334. -msoft-float -mhard-float -mmultiple -mno-multiple
  1335. -mupdate -mno-update
  1336. -mavoid-indexed-addresses -mno-avoid-indexed-addresses
  1337. -mfused-madd -mno-fused-madd -mbit-align -mno-bit-align
  1338. -mstrict-align -mno-strict-align -mrelocatable
  1339. -mno-relocatable -mrelocatable-lib -mno-relocatable-lib
  1340. -mtoc -mno-toc -mlittle -mlittle-endian -mbig -mbig-endian
  1341. -mdynamic-no-pic -mswdiv -msingle-pic-base
  1342. -mprioritize-restricted-insns=PRIORITY
  1343. -msched-costly-dep=DEPENDENCE_TYPE
  1344. -minsert-sched-nops=SCHEME
  1345. -mcall-aixdesc -mcall-eabi -mcall-freebsd
  1346. -mcall-linux -mcall-netbsd -mcall-openbsd
  1347. -mcall-sysv -mcall-sysv-eabi -mcall-sysv-noeabi
  1348. -mtraceback=TRACEBACK_TYPE
  1349. -maix-struct-return -msvr4-struct-return
  1350. -mabi=ABI-TYPE -msecure-plt -mbss-plt
  1351. -mlongcall -mno-longcall -mpltseq -mno-pltseq
  1352. -mblock-move-inline-limit=NUM
  1353. -mblock-compare-inline-limit=NUM
  1354. -mblock-compare-inline-loop-limit=NUM
  1355. -mstring-compare-inline-limit=NUM
  1356. -misel -mno-isel
  1357. -mvrsave -mno-vrsave
  1358. -mmulhw -mno-mulhw
  1359. -mdlmzb -mno-dlmzb
  1360. -mprototype -mno-prototype
  1361. -msim -mmvme -mads -myellowknife -memb -msdata
  1362. -msdata=OPT -mreadonly-in-sdata -mvxworks -G NUM
  1363. -mrecip -mrecip=OPT -mno-recip -mrecip-precision
  1364. -mno-recip-precision
  1365. -mveclibabi=TYPE -mfriz -mno-friz
  1366. -mpointers-to-nested-functions -mno-pointers-to-nested-functions
  1367. -msave-toc-indirect -mno-save-toc-indirect
  1368. -mpower8-fusion -mno-mpower8-fusion -mpower8-vector -mno-power8-vector
  1369. -mcrypto -mno-crypto -mhtm -mno-htm
  1370. -mquad-memory -mno-quad-memory
  1371. -mquad-memory-atomic -mno-quad-memory-atomic
  1372. -mcompat-align-parm -mno-compat-align-parm
  1373. -mfloat128 -mno-float128 -mfloat128-hardware -mno-float128-hardware
  1374. -mgnu-attribute -mno-gnu-attribute
  1375. -mstack-protector-guard=GUARD -mstack-protector-guard-reg=REG
  1376. -mstack-protector-guard-offset=OFFSET -mprefixed -mno-prefixed
  1377. -mpcrel -mno-pcrel -mmma -mno-mmma
  1378. _RX Options_
  1379. -m64bit-doubles -m32bit-doubles -fpu -nofpu
  1380. -mcpu=
  1381. -mbig-endian-data -mlittle-endian-data
  1382. -msmall-data
  1383. -msim -mno-sim
  1384. -mas100-syntax -mno-as100-syntax
  1385. -mrelax
  1386. -mmax-constant-size=
  1387. -mint-register=
  1388. -mpid
  1389. -mallow-string-insns -mno-allow-string-insns
  1390. -mjsr
  1391. -mno-warn-multiple-fast-interrupts
  1392. -msave-acc-in-interrupts
  1393. _S/390 and zSeries Options_
  1394. -mtune=CPU-TYPE -march=CPU-TYPE
  1395. -mhard-float -msoft-float -mhard-dfp -mno-hard-dfp
  1396. -mlong-double-64 -mlong-double-128
  1397. -mbackchain -mno-backchain -mpacked-stack -mno-packed-stack
  1398. -msmall-exec -mno-small-exec -mmvcle -mno-mvcle
  1399. -m64 -m31 -mdebug -mno-debug -mesa -mzarch
  1400. -mhtm -mvx -mzvector
  1401. -mtpf-trace -mno-tpf-trace -mtpf-trace-skip -mno-tpf-trace-skip
  1402. -mfused-madd -mno-fused-madd
  1403. -mwarn-framesize -mwarn-dynamicstack -mstack-size -mstack-guard
  1404. -mhotpatch=HALFWORDS,HALFWORDS
  1405. _Score Options_
  1406. -meb -mel
  1407. -mnhwloop
  1408. -muls
  1409. -mmac
  1410. -mscore5 -mscore5u -mscore7 -mscore7d
  1411. _SH Options_
  1412. -m1 -m2 -m2e
  1413. -m2a-nofpu -m2a-single-only -m2a-single -m2a
  1414. -m3 -m3e
  1415. -m4-nofpu -m4-single-only -m4-single -m4
  1416. -m4a-nofpu -m4a-single-only -m4a-single -m4a -m4al
  1417. -mb -ml -mdalign -mrelax
  1418. -mbigtable -mfmovd -mrenesas -mno-renesas -mnomacsave
  1419. -mieee -mno-ieee -mbitops -misize -minline-ic_invalidate -mpadstruct
  1420. -mprefergot -musermode -multcost=NUMBER -mdiv=STRATEGY
  1421. -mdivsi3_libfunc=NAME -mfixed-range=REGISTER-RANGE
  1422. -maccumulate-outgoing-args
  1423. -matomic-model=ATOMIC-MODEL
  1424. -mbranch-cost=NUM -mzdcbranch -mno-zdcbranch
  1425. -mcbranch-force-delay-slot
  1426. -mfused-madd -mno-fused-madd -mfsca -mno-fsca -mfsrra -mno-fsrra
  1427. -mpretend-cmove -mtas
  1428. _Solaris 2 Options_
  1429. -mclear-hwcap -mno-clear-hwcap -mimpure-text -mno-impure-text
  1430. -pthreads
  1431. _SPARC Options_
  1432. -mcpu=CPU-TYPE
  1433. -mtune=CPU-TYPE
  1434. -mcmodel=CODE-MODEL
  1435. -mmemory-model=MEM-MODEL
  1436. -m32 -m64 -mapp-regs -mno-app-regs
  1437. -mfaster-structs -mno-faster-structs -mflat -mno-flat
  1438. -mfpu -mno-fpu -mhard-float -msoft-float
  1439. -mhard-quad-float -msoft-quad-float
  1440. -mstack-bias -mno-stack-bias
  1441. -mstd-struct-return -mno-std-struct-return
  1442. -munaligned-doubles -mno-unaligned-doubles
  1443. -muser-mode -mno-user-mode
  1444. -mv8plus -mno-v8plus -mvis -mno-vis
  1445. -mvis2 -mno-vis2 -mvis3 -mno-vis3
  1446. -mvis4 -mno-vis4 -mvis4b -mno-vis4b
  1447. -mcbcond -mno-cbcond -mfmaf -mno-fmaf -mfsmuld -mno-fsmuld
  1448. -mpopc -mno-popc -msubxc -mno-subxc
  1449. -mfix-at697f -mfix-ut699 -mfix-ut700 -mfix-gr712rc
  1450. -mlra -mno-lra
  1451. _System V Options_
  1452. -Qy -Qn -YP,PATHS -Ym,DIR
  1453. _TILE-Gx Options_
  1454. -mcpu=CPU -m32 -m64 -mbig-endian -mlittle-endian
  1455. -mcmodel=CODE-MODEL
  1456. _TILEPro Options_
  1457. -mcpu=CPU -m32
  1458. _V850 Options_
  1459. -mlong-calls -mno-long-calls -mep -mno-ep
  1460. -mprolog-function -mno-prolog-function -mspace
  1461. -mtda=N -msda=N -mzda=N
  1462. -mapp-regs -mno-app-regs
  1463. -mdisable-callt -mno-disable-callt
  1464. -mv850e2v3 -mv850e2 -mv850e1 -mv850es
  1465. -mv850e -mv850 -mv850e3v5
  1466. -mloop
  1467. -mrelax
  1468. -mlong-jumps
  1469. -msoft-float
  1470. -mhard-float
  1471. -mgcc-abi
  1472. -mrh850-abi
  1473. -mbig-switch
  1474. _VAX Options_
  1475. -mg -mgnu -munix
  1476. _Visium Options_
  1477. -mdebug -msim -mfpu -mno-fpu -mhard-float -msoft-float
  1478. -mcpu=CPU-TYPE -mtune=CPU-TYPE -msv-mode -muser-mode
  1479. _VMS Options_
  1480. -mvms-return-codes -mdebug-main=PREFIX -mmalloc64
  1481. -mpointer-size=SIZE
  1482. _VxWorks Options_
  1483. -mrtp -non-static -Bstatic -Bdynamic
  1484. -Xbind-lazy -Xbind-now
  1485. _x86 Options_
  1486. -mtune=CPU-TYPE -march=CPU-TYPE
  1487. -mtune-ctrl=FEATURE-LIST -mdump-tune-features -mno-default
  1488. -mfpmath=UNIT
  1489. -masm=DIALECT -mno-fancy-math-387
  1490. -mno-fp-ret-in-387 -m80387 -mhard-float -msoft-float
  1491. -mno-wide-multiply -mrtd -malign-double
  1492. -mpreferred-stack-boundary=NUM
  1493. -mincoming-stack-boundary=NUM
  1494. -mcld -mcx16 -msahf -mmovbe -mcrc32
  1495. -mrecip -mrecip=OPT
  1496. -mvzeroupper -mprefer-avx128 -mprefer-vector-width=OPT
  1497. -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -msse4 -mavx
  1498. -mavx2 -mavx512f -mavx512pf -mavx512er -mavx512cd -mavx512vl
  1499. -mavx512bw -mavx512dq -mavx512ifma -mavx512vbmi -msha -maes
  1500. -mpclmul -mfsgsbase -mrdrnd -mf16c -mfma -mpconfig -mwbnoinvd
  1501. -mptwrite -mprefetchwt1 -mclflushopt -mclwb -mxsavec -mxsaves
  1502. -msse4a -m3dnow -m3dnowa -mpopcnt -mabm -mbmi -mtbm -mfma4 -mxop
  1503. -madx -mlzcnt -mbmi2 -mfxsr -mxsave -mxsaveopt -mrtm -mhle -mlwp
  1504. -mmwaitx -mclzero -mpku -mthreads -mgfni -mvaes -mwaitpkg
  1505. -mshstk -mmanual-endbr -mforce-indirect-call -mavx512vbmi2 -mavx512bf16 -menqcmd
  1506. -mvpclmulqdq -mavx512bitalg -mmovdiri -mmovdir64b -mavx512vpopcntdq
  1507. -mavx5124fmaps -mavx512vnni -mavx5124vnniw -mprfchw -mrdpid
  1508. -mrdseed -msgx -mavx512vp2intersect
  1509. -mcldemote -mms-bitfields -mno-align-stringops -minline-all-stringops
  1510. -minline-stringops-dynamically -mstringop-strategy=ALG
  1511. -mmemcpy-strategy=STRATEGY -mmemset-strategy=STRATEGY
  1512. -mpush-args -maccumulate-outgoing-args -m128bit-long-double
  1513. -m96bit-long-double -mlong-double-64 -mlong-double-80 -mlong-double-128
  1514. -mregparm=NUM -msseregparm
  1515. -mveclibabi=TYPE -mvect8-ret-in-mem
  1516. -mpc32 -mpc64 -mpc80 -mstackrealign
  1517. -momit-leaf-frame-pointer -mno-red-zone -mno-tls-direct-seg-refs
  1518. -mcmodel=CODE-MODEL -mabi=NAME -maddress-mode=MODE
  1519. -m32 -m64 -mx32 -m16 -miamcu -mlarge-data-threshold=NUM
  1520. -msse2avx -mfentry -mrecord-mcount -mnop-mcount -m8bit-idiv
  1521. -minstrument-return=TYPE -mfentry-name=NAME -mfentry-section=NAME
  1522. -mavx256-split-unaligned-load -mavx256-split-unaligned-store
  1523. -malign-data=TYPE -mstack-protector-guard=GUARD
  1524. -mstack-protector-guard-reg=REG
  1525. -mstack-protector-guard-offset=OFFSET
  1526. -mstack-protector-guard-symbol=SYMBOL
  1527. -mgeneral-regs-only -mcall-ms2sysv-xlogues
  1528. -mindirect-branch=CHOICE -mfunction-return=CHOICE
  1529. -mindirect-branch-register
  1530. _x86 Windows Options_
  1531. -mconsole -mcygwin -mno-cygwin -mdll
  1532. -mnop-fun-dllimport -mthread
  1533. -municode -mwin32 -mwindows -fno-set-stack-executable
  1534. _Xstormy16 Options_
  1535. -msim
  1536. _Xtensa Options_
  1537. -mconst16 -mno-const16
  1538. -mfused-madd -mno-fused-madd
  1539. -mforce-no-pic
  1540. -mserialize-volatile -mno-serialize-volatile
  1541. -mtext-section-literals -mno-text-section-literals
  1542. -mauto-litpools -mno-auto-litpools
  1543. -mtarget-align -mno-target-align
  1544. -mlongcalls -mno-longcalls
  1545. _zSeries Options_ See S/390 and zSeries Options.
  1546. 
  1547. File: gcc.info, Node: Overall Options, Next: Invoking G++, Prev: Option Summary, Up: Invoking GCC
  1548. 3.2 Options Controlling the Kind of Output
  1549. ==========================================
  1550. Compilation can involve up to four stages: preprocessing, compilation
  1551. proper, assembly and linking, always in that order. GCC is capable of
  1552. preprocessing and compiling several files either into several assembler
  1553. input files, or into one assembler input file; then each assembler input
  1554. file produces an object file, and linking combines all the object files
  1555. (those newly compiled, and those specified as input) into an executable
  1556. file.
  1557. For any given input file, the file name suffix determines what kind of
  1558. compilation is done:
  1559. 'FILE.c'
  1560. C source code that must be preprocessed.
  1561. 'FILE.i'
  1562. C source code that should not be preprocessed.
  1563. 'FILE.ii'
  1564. C++ source code that should not be preprocessed.
  1565. 'FILE.m'
  1566. Objective-C source code. Note that you must link with the
  1567. 'libobjc' library to make an Objective-C program work.
  1568. 'FILE.mi'
  1569. Objective-C source code that should not be preprocessed.
  1570. 'FILE.mm'
  1571. 'FILE.M'
  1572. Objective-C++ source code. Note that you must link with the
  1573. 'libobjc' library to make an Objective-C++ program work. Note that
  1574. '.M' refers to a literal capital M.
  1575. 'FILE.mii'
  1576. Objective-C++ source code that should not be preprocessed.
  1577. 'FILE.h'
  1578. C, C++, Objective-C or Objective-C++ header file to be turned into
  1579. a precompiled header (default), or C, C++ header file to be turned
  1580. into an Ada spec (via the '-fdump-ada-spec' switch).
  1581. 'FILE.cc'
  1582. 'FILE.cp'
  1583. 'FILE.cxx'
  1584. 'FILE.cpp'
  1585. 'FILE.CPP'
  1586. 'FILE.c++'
  1587. 'FILE.C'
  1588. C++ source code that must be preprocessed. Note that in '.cxx',
  1589. the last two letters must both be literally 'x'. Likewise, '.C'
  1590. refers to a literal capital C.
  1591. 'FILE.mm'
  1592. 'FILE.M'
  1593. Objective-C++ source code that must be preprocessed.
  1594. 'FILE.mii'
  1595. Objective-C++ source code that should not be preprocessed.
  1596. 'FILE.hh'
  1597. 'FILE.H'
  1598. 'FILE.hp'
  1599. 'FILE.hxx'
  1600. 'FILE.hpp'
  1601. 'FILE.HPP'
  1602. 'FILE.h++'
  1603. 'FILE.tcc'
  1604. C++ header file to be turned into a precompiled header or Ada spec.
  1605. 'FILE.f'
  1606. 'FILE.for'
  1607. 'FILE.ftn'
  1608. Fixed form Fortran source code that should not be preprocessed.
  1609. 'FILE.F'
  1610. 'FILE.FOR'
  1611. 'FILE.fpp'
  1612. 'FILE.FPP'
  1613. 'FILE.FTN'
  1614. Fixed form Fortran source code that must be preprocessed (with the
  1615. traditional preprocessor).
  1616. 'FILE.f90'
  1617. 'FILE.f95'
  1618. 'FILE.f03'
  1619. 'FILE.f08'
  1620. Free form Fortran source code that should not be preprocessed.
  1621. 'FILE.F90'
  1622. 'FILE.F95'
  1623. 'FILE.F03'
  1624. 'FILE.F08'
  1625. Free form Fortran source code that must be preprocessed (with the
  1626. traditional preprocessor).
  1627. 'FILE.go'
  1628. Go source code.
  1629. 'FILE.brig'
  1630. BRIG files (binary representation of HSAIL).
  1631. 'FILE.d'
  1632. D source code.
  1633. 'FILE.di'
  1634. D interface file.
  1635. 'FILE.dd'
  1636. D documentation code (Ddoc).
  1637. 'FILE.ads'
  1638. Ada source code file that contains a library unit declaration (a
  1639. declaration of a package, subprogram, or generic, or a generic
  1640. instantiation), or a library unit renaming declaration (a package,
  1641. generic, or subprogram renaming declaration). Such files are also
  1642. called "specs".
  1643. 'FILE.adb'
  1644. Ada source code file containing a library unit body (a subprogram
  1645. or package body). Such files are also called "bodies".
  1646. 'FILE.s'
  1647. Assembler code.
  1648. 'FILE.S'
  1649. 'FILE.sx'
  1650. Assembler code that must be preprocessed.
  1651. 'OTHER'
  1652. An object file to be fed straight into linking. Any file name with
  1653. no recognized suffix is treated this way.
  1654. You can specify the input language explicitly with the '-x' option:
  1655. '-x LANGUAGE'
  1656. Specify explicitly the LANGUAGE for the following input files
  1657. (rather than letting the compiler choose a default based on the
  1658. file name suffix). This option applies to all following input
  1659. files until the next '-x' option. Possible values for LANGUAGE
  1660. are:
  1661. c c-header cpp-output
  1662. c++ c++-header c++-cpp-output
  1663. objective-c objective-c-header objective-c-cpp-output
  1664. objective-c++ objective-c++-header objective-c++-cpp-output
  1665. assembler assembler-with-cpp
  1666. ada
  1667. d
  1668. f77 f77-cpp-input f95 f95-cpp-input
  1669. go
  1670. brig
  1671. '-x none'
  1672. Turn off any specification of a language, so that subsequent files
  1673. are handled according to their file name suffixes (as they are if
  1674. '-x' has not been used at all).
  1675. If you only want some of the stages of compilation, you can use '-x'
  1676. (or filename suffixes) to tell 'gcc' where to start, and one of the
  1677. options '-c', '-S', or '-E' to say where 'gcc' is to stop. Note that
  1678. some combinations (for example, '-x cpp-output -E') instruct 'gcc' to do
  1679. nothing at all.
  1680. '-c'
  1681. Compile or assemble the source files, but do not link. The linking
  1682. stage simply is not done. The ultimate output is in the form of an
  1683. object file for each source file.
  1684. By default, the object file name for a source file is made by
  1685. replacing the suffix '.c', '.i', '.s', etc., with '.o'.
  1686. Unrecognized input files, not requiring compilation or assembly,
  1687. are ignored.
  1688. '-S'
  1689. Stop after the stage of compilation proper; do not assemble. The
  1690. output is in the form of an assembler code file for each
  1691. non-assembler input file specified.
  1692. By default, the assembler file name for a source file is made by
  1693. replacing the suffix '.c', '.i', etc., with '.s'.
  1694. Input files that don't require compilation are ignored.
  1695. '-E'
  1696. Stop after the preprocessing stage; do not run the compiler proper.
  1697. The output is in the form of preprocessed source code, which is
  1698. sent to the standard output.
  1699. Input files that don't require preprocessing are ignored.
  1700. '-o FILE'
  1701. Place output in file FILE. This applies to whatever sort of output
  1702. is being produced, whether it be an executable file, an object
  1703. file, an assembler file or preprocessed C code.
  1704. If '-o' is not specified, the default is to put an executable file
  1705. in 'a.out', the object file for 'SOURCE.SUFFIX' in 'SOURCE.o', its
  1706. assembler file in 'SOURCE.s', a precompiled header file in
  1707. 'SOURCE.SUFFIX.gch', and all preprocessed C source on standard
  1708. output.
  1709. '-v'
  1710. Print (on standard error output) the commands executed to run the
  1711. stages of compilation. Also print the version number of the
  1712. compiler driver program and of the preprocessor and the compiler
  1713. proper.
  1714. '-###'
  1715. Like '-v' except the commands are not executed and arguments are
  1716. quoted unless they contain only alphanumeric characters or './-_'.
  1717. This is useful for shell scripts to capture the driver-generated
  1718. command lines.
  1719. '--help'
  1720. Print (on the standard output) a description of the command-line
  1721. options understood by 'gcc'. If the '-v' option is also specified
  1722. then '--help' is also passed on to the various processes invoked by
  1723. 'gcc', so that they can display the command-line options they
  1724. accept. If the '-Wextra' option has also been specified (prior to
  1725. the '--help' option), then command-line options that have no
  1726. documentation associated with them are also displayed.
  1727. '--target-help'
  1728. Print (on the standard output) a description of target-specific
  1729. command-line options for each tool. For some targets extra
  1730. target-specific information may also be printed.
  1731. '--help={CLASS|[^]QUALIFIER}[,...]'
  1732. Print (on the standard output) a description of the command-line
  1733. options understood by the compiler that fit into all specified
  1734. classes and qualifiers. These are the supported classes:
  1735. 'optimizers'
  1736. Display all of the optimization options supported by the
  1737. compiler.
  1738. 'warnings'
  1739. Display all of the options controlling warning messages
  1740. produced by the compiler.
  1741. 'target'
  1742. Display target-specific options. Unlike the '--target-help'
  1743. option however, target-specific options of the linker and
  1744. assembler are not displayed. This is because those tools do
  1745. not currently support the extended '--help=' syntax.
  1746. 'params'
  1747. Display the values recognized by the '--param' option.
  1748. LANGUAGE
  1749. Display the options supported for LANGUAGE, where LANGUAGE is
  1750. the name of one of the languages supported in this version of
  1751. GCC. If an option is supported by all languages, one needs to
  1752. select 'common' class.
  1753. 'common'
  1754. Display the options that are common to all languages.
  1755. These are the supported qualifiers:
  1756. 'undocumented'
  1757. Display only those options that are undocumented.
  1758. 'joined'
  1759. Display options taking an argument that appears after an equal
  1760. sign in the same continuous piece of text, such as:
  1761. '--help=target'.
  1762. 'separate'
  1763. Display options taking an argument that appears as a separate
  1764. word following the original option, such as: '-o output-file'.
  1765. Thus for example to display all the undocumented target-specific
  1766. switches supported by the compiler, use:
  1767. --help=target,undocumented
  1768. The sense of a qualifier can be inverted by prefixing it with the
  1769. '^' character, so for example to display all binary warning options
  1770. (i.e., ones that are either on or off and that do not take an
  1771. argument) that have a description, use:
  1772. --help=warnings,^joined,^undocumented
  1773. The argument to '--help=' should not consist solely of inverted
  1774. qualifiers.
  1775. Combining several classes is possible, although this usually
  1776. restricts the output so much that there is nothing to display. One
  1777. case where it does work, however, is when one of the classes is
  1778. TARGET. For example, to display all the target-specific
  1779. optimization options, use:
  1780. --help=target,optimizers
  1781. The '--help=' option can be repeated on the command line. Each
  1782. successive use displays its requested class of options, skipping
  1783. those that have already been displayed. If '--help' is also
  1784. specified anywhere on the command line then this takes precedence
  1785. over any '--help=' option.
  1786. If the '-Q' option appears on the command line before the '--help='
  1787. option, then the descriptive text displayed by '--help=' is
  1788. changed. Instead of describing the displayed options, an
  1789. indication is given as to whether the option is enabled, disabled
  1790. or set to a specific value (assuming that the compiler knows this
  1791. at the point where the '--help=' option is used).
  1792. Here is a truncated example from the ARM port of 'gcc':
  1793. % gcc -Q -mabi=2 --help=target -c
  1794. The following options are target specific:
  1795. -mabi= 2
  1796. -mabort-on-noreturn [disabled]
  1797. -mapcs [disabled]
  1798. The output is sensitive to the effects of previous command-line
  1799. options, so for example it is possible to find out which
  1800. optimizations are enabled at '-O2' by using:
  1801. -Q -O2 --help=optimizers
  1802. Alternatively you can discover which binary optimizations are
  1803. enabled by '-O3' by using:
  1804. gcc -c -Q -O3 --help=optimizers > /tmp/O3-opts
  1805. gcc -c -Q -O2 --help=optimizers > /tmp/O2-opts
  1806. diff /tmp/O2-opts /tmp/O3-opts | grep enabled
  1807. '--version'
  1808. Display the version number and copyrights of the invoked GCC.
  1809. '-pass-exit-codes'
  1810. Normally the 'gcc' program exits with the code of 1 if any phase of
  1811. the compiler returns a non-success return code. If you specify
  1812. '-pass-exit-codes', the 'gcc' program instead returns with the
  1813. numerically highest error produced by any phase returning an error
  1814. indication. The C, C++, and Fortran front ends return 4 if an
  1815. internal compiler error is encountered.
  1816. '-pipe'
  1817. Use pipes rather than temporary files for communication between the
  1818. various stages of compilation. This fails to work on some systems
  1819. where the assembler is unable to read from a pipe; but the GNU
  1820. assembler has no trouble.
  1821. '-specs=FILE'
  1822. Process FILE after the compiler reads in the standard 'specs' file,
  1823. in order to override the defaults which the 'gcc' driver program
  1824. uses when determining what switches to pass to 'cc1', 'cc1plus',
  1825. 'as', 'ld', etc. More than one '-specs=FILE' can be specified on
  1826. the command line, and they are processed in order, from left to
  1827. right. *Note Spec Files::, for information about the format of the
  1828. FILE.
  1829. '-wrapper'
  1830. Invoke all subcommands under a wrapper program. The name of the
  1831. wrapper program and its parameters are passed as a comma separated
  1832. list.
  1833. gcc -c t.c -wrapper gdb,--args
  1834. This invokes all subprograms of 'gcc' under 'gdb --args', thus the
  1835. invocation of 'cc1' is 'gdb --args cc1 ...'.
  1836. '-ffile-prefix-map=OLD=NEW'
  1837. When compiling files residing in directory 'OLD', record any
  1838. references to them in the result of the compilation as if the files
  1839. resided in directory 'NEW' instead. Specifying this option is
  1840. equivalent to specifying all the individual '-f*-prefix-map'
  1841. options. This can be used to make reproducible builds that are
  1842. location independent. See also '-fmacro-prefix-map' and
  1843. '-fdebug-prefix-map'.
  1844. '-fplugin=NAME.so'
  1845. Load the plugin code in file NAME.so, assumed to be a shared object
  1846. to be dlopen'd by the compiler. The base name of the shared object
  1847. file is used to identify the plugin for the purposes of argument
  1848. parsing (See '-fplugin-arg-NAME-KEY=VALUE' below). Each plugin
  1849. should define the callback functions specified in the Plugins API.
  1850. '-fplugin-arg-NAME-KEY=VALUE'
  1851. Define an argument called KEY with a value of VALUE for the plugin
  1852. called NAME.
  1853. '-fdump-ada-spec[-slim]'
  1854. For C and C++ source and include files, generate corresponding Ada
  1855. specs. *Note (gnat_ugn)Generating Ada Bindings for C and C++
  1856. headers::, which provides detailed documentation on this feature.
  1857. '-fada-spec-parent=UNIT'
  1858. In conjunction with '-fdump-ada-spec[-slim]' above, generate Ada
  1859. specs as child units of parent UNIT.
  1860. '-fdump-go-spec=FILE'
  1861. For input files in any language, generate corresponding Go
  1862. declarations in FILE. This generates Go 'const', 'type', 'var',
  1863. and 'func' declarations which may be a useful way to start writing
  1864. a Go interface to code written in some other language.
  1865. '@FILE'
  1866. Read command-line options from FILE. The options read are inserted
  1867. in place of the original @FILE option. If FILE does not exist, or
  1868. cannot be read, then the option will be treated literally, and not
  1869. removed.
  1870. Options in FILE are separated by whitespace. A whitespace
  1871. character may be included in an option by surrounding the entire
  1872. option in either single or double quotes. Any character (including
  1873. a backslash) may be included by prefixing the character to be
  1874. included with a backslash. The FILE may itself contain additional
  1875. @FILE options; any such options will be processed recursively.
  1876. 
  1877. File: gcc.info, Node: Invoking G++, Next: C Dialect Options, Prev: Overall Options, Up: Invoking GCC
  1878. 3.3 Compiling C++ Programs
  1879. ==========================
  1880. C++ source files conventionally use one of the suffixes '.C', '.cc',
  1881. '.cpp', '.CPP', '.c++', '.cp', or '.cxx'; C++ header files often use
  1882. '.hh', '.hpp', '.H', or (for shared template code) '.tcc'; and
  1883. preprocessed C++ files use the suffix '.ii'. GCC recognizes files with
  1884. these names and compiles them as C++ programs even if you call the
  1885. compiler the same way as for compiling C programs (usually with the name
  1886. 'gcc').
  1887. However, the use of 'gcc' does not add the C++ library. 'g++' is a
  1888. program that calls GCC and automatically specifies linking against the
  1889. C++ library. It treats '.c', '.h' and '.i' files as C++ source files
  1890. instead of C source files unless '-x' is used. This program is also
  1891. useful when precompiling a C header file with a '.h' extension for use
  1892. in C++ compilations. On many systems, 'g++' is also installed with the
  1893. name 'c++'.
  1894. When you compile C++ programs, you may specify many of the same
  1895. command-line options that you use for compiling programs in any
  1896. language; or command-line options meaningful for C and related
  1897. languages; or options that are meaningful only for C++ programs. *Note
  1898. Options Controlling C Dialect: C Dialect Options, for explanations of
  1899. options for languages related to C. *Note Options Controlling C++
  1900. Dialect: C++ Dialect Options, for explanations of options that are
  1901. meaningful only for C++ programs.
  1902. 
  1903. File: gcc.info, Node: C Dialect Options, Next: C++ Dialect Options, Prev: Invoking G++, Up: Invoking GCC
  1904. 3.4 Options Controlling C Dialect
  1905. =================================
  1906. The following options control the dialect of C (or languages derived
  1907. from C, such as C++, Objective-C and Objective-C++) that the compiler
  1908. accepts:
  1909. '-ansi'
  1910. In C mode, this is equivalent to '-std=c90'. In C++ mode, it is
  1911. equivalent to '-std=c++98'.
  1912. This turns off certain features of GCC that are incompatible with
  1913. ISO C90 (when compiling C code), or of standard C++ (when compiling
  1914. C++ code), such as the 'asm' and 'typeof' keywords, and predefined
  1915. macros such as 'unix' and 'vax' that identify the type of system
  1916. you are using. It also enables the undesirable and rarely used ISO
  1917. trigraph feature. For the C compiler, it disables recognition of
  1918. C++ style '//' comments as well as the 'inline' keyword.
  1919. The alternate keywords '__asm__', '__extension__', '__inline__' and
  1920. '__typeof__' continue to work despite '-ansi'. You would not want
  1921. to use them in an ISO C program, of course, but it is useful to put
  1922. them in header files that might be included in compilations done
  1923. with '-ansi'. Alternate predefined macros such as '__unix__' and
  1924. '__vax__' are also available, with or without '-ansi'.
  1925. The '-ansi' option does not cause non-ISO programs to be rejected
  1926. gratuitously. For that, '-Wpedantic' is required in addition to
  1927. '-ansi'. *Note Warning Options::.
  1928. The macro '__STRICT_ANSI__' is predefined when the '-ansi' option
  1929. is used. Some header files may notice this macro and refrain from
  1930. declaring certain functions or defining certain macros that the ISO
  1931. standard doesn't call for; this is to avoid interfering with any
  1932. programs that might use these names for other things.
  1933. Functions that are normally built in but do not have semantics
  1934. defined by ISO C (such as 'alloca' and 'ffs') are not built-in
  1935. functions when '-ansi' is used. *Note Other built-in functions
  1936. provided by GCC: Other Builtins, for details of the functions
  1937. affected.
  1938. '-std='
  1939. Determine the language standard. *Note Language Standards
  1940. Supported by GCC: Standards, for details of these standard
  1941. versions. This option is currently only supported when compiling C
  1942. or C++.
  1943. The compiler can accept several base standards, such as 'c90' or
  1944. 'c++98', and GNU dialects of those standards, such as 'gnu90' or
  1945. 'gnu++98'. When a base standard is specified, the compiler accepts
  1946. all programs following that standard plus those using GNU
  1947. extensions that do not contradict it. For example, '-std=c90'
  1948. turns off certain features of GCC that are incompatible with ISO
  1949. C90, such as the 'asm' and 'typeof' keywords, but not other GNU
  1950. extensions that do not have a meaning in ISO C90, such as omitting
  1951. the middle term of a '?:' expression. On the other hand, when a
  1952. GNU dialect of a standard is specified, all features supported by
  1953. the compiler are enabled, even when those features change the
  1954. meaning of the base standard. As a result, some strict-conforming
  1955. programs may be rejected. The particular standard is used by
  1956. '-Wpedantic' to identify which features are GNU extensions given
  1957. that version of the standard. For example '-std=gnu90 -Wpedantic'
  1958. warns about C++ style '//' comments, while '-std=gnu99 -Wpedantic'
  1959. does not.
  1960. A value for this option must be provided; possible values are
  1961. 'c90'
  1962. 'c89'
  1963. 'iso9899:1990'
  1964. Support all ISO C90 programs (certain GNU extensions that
  1965. conflict with ISO C90 are disabled). Same as '-ansi' for C
  1966. code.
  1967. 'iso9899:199409'
  1968. ISO C90 as modified in amendment 1.
  1969. 'c99'
  1970. 'c9x'
  1971. 'iso9899:1999'
  1972. 'iso9899:199x'
  1973. ISO C99. This standard is substantially completely supported,
  1974. modulo bugs and floating-point issues (mainly but not entirely
  1975. relating to optional C99 features from Annexes F and G). See
  1976. <http://gcc.gnu.org/c99status.html> for more information. The
  1977. names 'c9x' and 'iso9899:199x' are deprecated.
  1978. 'c11'
  1979. 'c1x'
  1980. 'iso9899:2011'
  1981. ISO C11, the 2011 revision of the ISO C standard. This
  1982. standard is substantially completely supported, modulo bugs,
  1983. floating-point issues (mainly but not entirely relating to
  1984. optional C11 features from Annexes F and G) and the optional
  1985. Annexes K (Bounds-checking interfaces) and L (Analyzability).
  1986. The name 'c1x' is deprecated.
  1987. 'c17'
  1988. 'c18'
  1989. 'iso9899:2017'
  1990. 'iso9899:2018'
  1991. ISO C17, the 2017 revision of the ISO C standard (published in
  1992. 2018). This standard is same as C11 except for corrections of
  1993. defects (all of which are also applied with '-std=c11') and a
  1994. new value of '__STDC_VERSION__', and so is supported to the
  1995. same extent as C11.
  1996. 'c2x'
  1997. The next version of the ISO C standard, still under
  1998. development. The support for this version is experimental and
  1999. incomplete.
  2000. 'gnu90'
  2001. 'gnu89'
  2002. GNU dialect of ISO C90 (including some C99 features).
  2003. 'gnu99'
  2004. 'gnu9x'
  2005. GNU dialect of ISO C99. The name 'gnu9x' is deprecated.
  2006. 'gnu11'
  2007. 'gnu1x'
  2008. GNU dialect of ISO C11. The name 'gnu1x' is deprecated.
  2009. 'gnu17'
  2010. 'gnu18'
  2011. GNU dialect of ISO C17. This is the default for C code.
  2012. 'gnu2x'
  2013. The next version of the ISO C standard, still under
  2014. development, plus GNU extensions. The support for this
  2015. version is experimental and incomplete.
  2016. 'c++98'
  2017. 'c++03'
  2018. The 1998 ISO C++ standard plus the 2003 technical corrigendum
  2019. and some additional defect reports. Same as '-ansi' for C++
  2020. code.
  2021. 'gnu++98'
  2022. 'gnu++03'
  2023. GNU dialect of '-std=c++98'.
  2024. 'c++11'
  2025. 'c++0x'
  2026. The 2011 ISO C++ standard plus amendments. The name 'c++0x'
  2027. is deprecated.
  2028. 'gnu++11'
  2029. 'gnu++0x'
  2030. GNU dialect of '-std=c++11'. The name 'gnu++0x' is
  2031. deprecated.
  2032. 'c++14'
  2033. 'c++1y'
  2034. The 2014 ISO C++ standard plus amendments. The name 'c++1y'
  2035. is deprecated.
  2036. 'gnu++14'
  2037. 'gnu++1y'
  2038. GNU dialect of '-std=c++14'. This is the default for C++
  2039. code. The name 'gnu++1y' is deprecated.
  2040. 'c++17'
  2041. 'c++1z'
  2042. The 2017 ISO C++ standard plus amendments. The name 'c++1z'
  2043. is deprecated.
  2044. 'gnu++17'
  2045. 'gnu++1z'
  2046. GNU dialect of '-std=c++17'. The name 'gnu++1z' is
  2047. deprecated.
  2048. 'c++20'
  2049. 'c++2a'
  2050. The next revision of the ISO C++ standard, planned for 2020.
  2051. Support is highly experimental, and will almost certainly
  2052. change in incompatible ways in future releases.
  2053. 'gnu++20'
  2054. 'gnu++2a'
  2055. GNU dialect of '-std=c++20'. Support is highly experimental,
  2056. and will almost certainly change in incompatible ways in
  2057. future releases.
  2058. '-fgnu89-inline'
  2059. The option '-fgnu89-inline' tells GCC to use the traditional GNU
  2060. semantics for 'inline' functions when in C99 mode. *Note An Inline
  2061. Function is As Fast As a Macro: Inline. Using this option is
  2062. roughly equivalent to adding the 'gnu_inline' function attribute to
  2063. all inline functions (*note Function Attributes::).
  2064. The option '-fno-gnu89-inline' explicitly tells GCC to use the C99
  2065. semantics for 'inline' when in C99 or gnu99 mode (i.e., it
  2066. specifies the default behavior). This option is not supported in
  2067. '-std=c90' or '-std=gnu90' mode.
  2068. The preprocessor macros '__GNUC_GNU_INLINE__' and
  2069. '__GNUC_STDC_INLINE__' may be used to check which semantics are in
  2070. effect for 'inline' functions. *Note (cpp)Common Predefined
  2071. Macros::.
  2072. '-fpermitted-flt-eval-methods=STYLE'
  2073. ISO/IEC TS 18661-3 defines new permissible values for
  2074. 'FLT_EVAL_METHOD' that indicate that operations and constants with
  2075. a semantic type that is an interchange or extended format should be
  2076. evaluated to the precision and range of that type. These new
  2077. values are a superset of those permitted under C99/C11, which does
  2078. not specify the meaning of other positive values of
  2079. 'FLT_EVAL_METHOD'. As such, code conforming to C11 may not have
  2080. been written expecting the possibility of the new values.
  2081. '-fpermitted-flt-eval-methods' specifies whether the compiler
  2082. should allow only the values of 'FLT_EVAL_METHOD' specified in
  2083. C99/C11, or the extended set of values specified in ISO/IEC TS
  2084. 18661-3.
  2085. STYLE is either 'c11' or 'ts-18661-3' as appropriate.
  2086. The default when in a standards compliant mode ('-std=c11' or
  2087. similar) is '-fpermitted-flt-eval-methods=c11'. The default when
  2088. in a GNU dialect ('-std=gnu11' or similar) is
  2089. '-fpermitted-flt-eval-methods=ts-18661-3'.
  2090. '-aux-info FILENAME'
  2091. Output to the given filename prototyped declarations for all
  2092. functions declared and/or defined in a translation unit, including
  2093. those in header files. This option is silently ignored in any
  2094. language other than C.
  2095. Besides declarations, the file indicates, in comments, the origin
  2096. of each declaration (source file and line), whether the declaration
  2097. was implicit, prototyped or unprototyped ('I', 'N' for new or 'O'
  2098. for old, respectively, in the first character after the line number
  2099. and the colon), and whether it came from a declaration or a
  2100. definition ('C' or 'F', respectively, in the following character).
  2101. In the case of function definitions, a K&R-style list of arguments
  2102. followed by their declarations is also provided, inside comments,
  2103. after the declaration.
  2104. '-fallow-parameterless-variadic-functions'
  2105. Accept variadic functions without named parameters.
  2106. Although it is possible to define such a function, this is not very
  2107. useful as it is not possible to read the arguments. This is only
  2108. supported for C as this construct is allowed by C++.
  2109. '-fno-asm'
  2110. Do not recognize 'asm', 'inline' or 'typeof' as a keyword, so that
  2111. code can use these words as identifiers. You can use the keywords
  2112. '__asm__', '__inline__' and '__typeof__' instead. '-ansi' implies
  2113. '-fno-asm'.
  2114. In C++, this switch only affects the 'typeof' keyword, since 'asm'
  2115. and 'inline' are standard keywords. You may want to use the
  2116. '-fno-gnu-keywords' flag instead, which has the same effect. In
  2117. C99 mode ('-std=c99' or '-std=gnu99'), this switch only affects the
  2118. 'asm' and 'typeof' keywords, since 'inline' is a standard keyword
  2119. in ISO C99.
  2120. '-fno-builtin'
  2121. '-fno-builtin-FUNCTION'
  2122. Don't recognize built-in functions that do not begin with
  2123. '__builtin_' as prefix. *Note Other built-in functions provided by
  2124. GCC: Other Builtins, for details of the functions affected,
  2125. including those which are not built-in functions when '-ansi' or
  2126. '-std' options for strict ISO C conformance are used because they
  2127. do not have an ISO standard meaning.
  2128. GCC normally generates special code to handle certain built-in
  2129. functions more efficiently; for instance, calls to 'alloca' may
  2130. become single instructions which adjust the stack directly, and
  2131. calls to 'memcpy' may become inline copy loops. The resulting code
  2132. is often both smaller and faster, but since the function calls no
  2133. longer appear as such, you cannot set a breakpoint on those calls,
  2134. nor can you change the behavior of the functions by linking with a
  2135. different library. In addition, when a function is recognized as a
  2136. built-in function, GCC may use information about that function to
  2137. warn about problems with calls to that function, or to generate
  2138. more efficient code, even if the resulting code still contains
  2139. calls to that function. For example, warnings are given with
  2140. '-Wformat' for bad calls to 'printf' when 'printf' is built in and
  2141. 'strlen' is known not to modify global memory.
  2142. With the '-fno-builtin-FUNCTION' option only the built-in function
  2143. FUNCTION is disabled. FUNCTION must not begin with '__builtin_'.
  2144. If a function is named that is not built-in in this version of GCC,
  2145. this option is ignored. There is no corresponding
  2146. '-fbuiltin-FUNCTION' option; if you wish to enable built-in
  2147. functions selectively when using '-fno-builtin' or
  2148. '-ffreestanding', you may define macros such as:
  2149. #define abs(n) __builtin_abs ((n))
  2150. #define strcpy(d, s) __builtin_strcpy ((d), (s))
  2151. '-fgimple'
  2152. Enable parsing of function definitions marked with '__GIMPLE'.
  2153. This is an experimental feature that allows unit testing of GIMPLE
  2154. passes.
  2155. '-fhosted'
  2156. Assert that compilation targets a hosted environment. This implies
  2157. '-fbuiltin'. A hosted environment is one in which the entire
  2158. standard library is available, and in which 'main' has a return
  2159. type of 'int'. Examples are nearly everything except a kernel.
  2160. This is equivalent to '-fno-freestanding'.
  2161. '-ffreestanding'
  2162. Assert that compilation targets a freestanding environment. This
  2163. implies '-fno-builtin'. A freestanding environment is one in which
  2164. the standard library may not exist, and program startup may not
  2165. necessarily be at 'main'. The most obvious example is an OS
  2166. kernel. This is equivalent to '-fno-hosted'.
  2167. *Note Language Standards Supported by GCC: Standards, for details
  2168. of freestanding and hosted environments.
  2169. '-fopenacc'
  2170. Enable handling of OpenACC directives '#pragma acc' in C/C++ and
  2171. '!$acc' in Fortran. When '-fopenacc' is specified, the compiler
  2172. generates accelerated code according to the OpenACC Application
  2173. Programming Interface v2.6 <https://www.openacc.org>. This option
  2174. implies '-pthread', and thus is only supported on targets that have
  2175. support for '-pthread'.
  2176. '-fopenacc-dim=GEOM'
  2177. Specify default compute dimensions for parallel offload regions
  2178. that do not explicitly specify. The GEOM value is a triple of
  2179. ':'-separated sizes, in order 'gang', 'worker' and, 'vector'. A
  2180. size can be omitted, to use a target-specific default value.
  2181. '-fopenmp'
  2182. Enable handling of OpenMP directives '#pragma omp' in C/C++ and
  2183. '!$omp' in Fortran. When '-fopenmp' is specified, the compiler
  2184. generates parallel code according to the OpenMP Application Program
  2185. Interface v4.5 <https://www.openmp.org>. This option implies
  2186. '-pthread', and thus is only supported on targets that have support
  2187. for '-pthread'. '-fopenmp' implies '-fopenmp-simd'.
  2188. '-fopenmp-simd'
  2189. Enable handling of OpenMP's SIMD directives with '#pragma omp' in
  2190. C/C++ and '!$omp' in Fortran. Other OpenMP directives are ignored.
  2191. '-fgnu-tm'
  2192. When the option '-fgnu-tm' is specified, the compiler generates
  2193. code for the Linux variant of Intel's current Transactional Memory
  2194. ABI specification document (Revision 1.1, May 6 2009). This is an
  2195. experimental feature whose interface may change in future versions
  2196. of GCC, as the official specification changes. Please note that
  2197. not all architectures are supported for this feature.
  2198. For more information on GCC's support for transactional memory,
  2199. *Note The GNU Transactional Memory Library: (libitm)Enabling
  2200. libitm.
  2201. Note that the transactional memory feature is not supported with
  2202. non-call exceptions ('-fnon-call-exceptions').
  2203. '-fms-extensions'
  2204. Accept some non-standard constructs used in Microsoft header files.
  2205. In C++ code, this allows member names in structures to be similar
  2206. to previous types declarations.
  2207. typedef int UOW;
  2208. struct ABC {
  2209. UOW UOW;
  2210. };
  2211. Some cases of unnamed fields in structures and unions are only
  2212. accepted with this option. *Note Unnamed struct/union fields
  2213. within structs/unions: Unnamed Fields, for details.
  2214. Note that this option is off for all targets except for x86 targets
  2215. using ms-abi.
  2216. '-fplan9-extensions'
  2217. Accept some non-standard constructs used in Plan 9 code.
  2218. This enables '-fms-extensions', permits passing pointers to
  2219. structures with anonymous fields to functions that expect pointers
  2220. to elements of the type of the field, and permits referring to
  2221. anonymous fields declared using a typedef. *Note Unnamed
  2222. struct/union fields within structs/unions: Unnamed Fields, for
  2223. details. This is only supported for C, not C++.
  2224. '-fcond-mismatch'
  2225. Allow conditional expressions with mismatched types in the second
  2226. and third arguments. The value of such an expression is void.
  2227. This option is not supported for C++.
  2228. '-flax-vector-conversions'
  2229. Allow implicit conversions between vectors with differing numbers
  2230. of elements and/or incompatible element types. This option should
  2231. not be used for new code.
  2232. '-funsigned-char'
  2233. Let the type 'char' be unsigned, like 'unsigned char'.
  2234. Each kind of machine has a default for what 'char' should be. It
  2235. is either like 'unsigned char' by default or like 'signed char' by
  2236. default.
  2237. Ideally, a portable program should always use 'signed char' or
  2238. 'unsigned char' when it depends on the signedness of an object.
  2239. But many programs have been written to use plain 'char' and expect
  2240. it to be signed, or expect it to be unsigned, depending on the
  2241. machines they were written for. This option, and its inverse, let
  2242. you make such a program work with the opposite default.
  2243. The type 'char' is always a distinct type from each of 'signed
  2244. char' or 'unsigned char', even though its behavior is always just
  2245. like one of those two.
  2246. '-fsigned-char'
  2247. Let the type 'char' be signed, like 'signed char'.
  2248. Note that this is equivalent to '-fno-unsigned-char', which is the
  2249. negative form of '-funsigned-char'. Likewise, the option
  2250. '-fno-signed-char' is equivalent to '-funsigned-char'.
  2251. '-fsigned-bitfields'
  2252. '-funsigned-bitfields'
  2253. '-fno-signed-bitfields'
  2254. '-fno-unsigned-bitfields'
  2255. These options control whether a bit-field is signed or unsigned,
  2256. when the declaration does not use either 'signed' or 'unsigned'.
  2257. By default, such a bit-field is signed, because this is consistent:
  2258. the basic integer types such as 'int' are signed types.
  2259. '-fsso-struct=ENDIANNESS'
  2260. Set the default scalar storage order of structures and unions to
  2261. the specified endianness. The accepted values are 'big-endian',
  2262. 'little-endian' and 'native' for the native endianness of the
  2263. target (the default). This option is not supported for C++.
  2264. *Warning:* the '-fsso-struct' switch causes GCC to generate code
  2265. that is not binary compatible with code generated without it if the
  2266. specified endianness is not the native endianness of the target.
  2267. 
  2268. File: gcc.info, Node: C++ Dialect Options, Next: Objective-C and Objective-C++ Dialect Options, Prev: C Dialect Options, Up: Invoking GCC
  2269. 3.5 Options Controlling C++ Dialect
  2270. ===================================
  2271. This section describes the command-line options that are only meaningful
  2272. for C++ programs. You can also use most of the GNU compiler options
  2273. regardless of what language your program is in. For example, you might
  2274. compile a file 'firstClass.C' like this:
  2275. g++ -g -fstrict-enums -O -c firstClass.C
  2276. In this example, only '-fstrict-enums' is an option meant only for C++
  2277. programs; you can use the other options with any language supported by
  2278. GCC.
  2279. Some options for compiling C programs, such as '-std', are also
  2280. relevant for C++ programs. *Note Options Controlling C Dialect: C
  2281. Dialect Options.
  2282. Here is a list of options that are _only_ for compiling C++ programs:
  2283. '-fabi-version=N'
  2284. Use version N of the C++ ABI. The default is version 0.
  2285. Version 0 refers to the version conforming most closely to the C++
  2286. ABI specification. Therefore, the ABI obtained using version 0
  2287. will change in different versions of G++ as ABI bugs are fixed.
  2288. Version 1 is the version of the C++ ABI that first appeared in G++
  2289. 3.2.
  2290. Version 2 is the version of the C++ ABI that first appeared in G++
  2291. 3.4, and was the default through G++ 4.9.
  2292. Version 3 corrects an error in mangling a constant address as a
  2293. template argument.
  2294. Version 4, which first appeared in G++ 4.5, implements a standard
  2295. mangling for vector types.
  2296. Version 5, which first appeared in G++ 4.6, corrects the mangling
  2297. of attribute const/volatile on function pointer types, decltype of
  2298. a plain decl, and use of a function parameter in the declaration of
  2299. another parameter.
  2300. Version 6, which first appeared in G++ 4.7, corrects the promotion
  2301. behavior of C++11 scoped enums and the mangling of template
  2302. argument packs, const/static_cast, prefix ++ and -, and a class
  2303. scope function used as a template argument.
  2304. Version 7, which first appeared in G++ 4.8, that treats nullptr_t
  2305. as a builtin type and corrects the mangling of lambdas in default
  2306. argument scope.
  2307. Version 8, which first appeared in G++ 4.9, corrects the
  2308. substitution behavior of function types with
  2309. function-cv-qualifiers.
  2310. Version 9, which first appeared in G++ 5.2, corrects the alignment
  2311. of 'nullptr_t'.
  2312. Version 10, which first appeared in G++ 6.1, adds mangling of
  2313. attributes that affect type identity, such as ia32 calling
  2314. convention attributes (e.g. 'stdcall').
  2315. Version 11, which first appeared in G++ 7, corrects the mangling of
  2316. sizeof... expressions and operator names. For multiple entities
  2317. with the same name within a function, that are declared in
  2318. different scopes, the mangling now changes starting with the
  2319. twelfth occurrence. It also implies '-fnew-inheriting-ctors'.
  2320. Version 12, which first appeared in G++ 8, corrects the calling
  2321. conventions for empty classes on the x86_64 target and for classes
  2322. with only deleted copy/move constructors. It accidentally changes
  2323. the calling convention for classes with a deleted copy constructor
  2324. and a trivial move constructor.
  2325. Version 13, which first appeared in G++ 8.2, fixes the accidental
  2326. change in version 12.
  2327. Version 14, which first appeared in G++ 10, corrects the mangling
  2328. of the nullptr expression.
  2329. See also '-Wabi'.
  2330. '-fabi-compat-version=N'
  2331. On targets that support strong aliases, G++ works around mangling
  2332. changes by creating an alias with the correct mangled name when
  2333. defining a symbol with an incorrect mangled name. This switch
  2334. specifies which ABI version to use for the alias.
  2335. With '-fabi-version=0' (the default), this defaults to 11 (GCC 7
  2336. compatibility). If another ABI version is explicitly selected,
  2337. this defaults to 0. For compatibility with GCC versions 3.2
  2338. through 4.9, use '-fabi-compat-version=2'.
  2339. If this option is not provided but '-Wabi=N' is, that version is
  2340. used for compatibility aliases. If this option is provided along
  2341. with '-Wabi' (without the version), the version from this option is
  2342. used for the warning.
  2343. '-fno-access-control'
  2344. Turn off all access checking. This switch is mainly useful for
  2345. working around bugs in the access control code.
  2346. '-faligned-new'
  2347. Enable support for C++17 'new' of types that require more alignment
  2348. than 'void* ::operator new(std::size_t)' provides. A numeric
  2349. argument such as '-faligned-new=32' can be used to specify how much
  2350. alignment (in bytes) is provided by that function, but few users
  2351. will need to override the default of 'alignof(std::max_align_t)'.
  2352. This flag is enabled by default for '-std=c++17'.
  2353. '-fchar8_t'
  2354. '-fno-char8_t'
  2355. Enable support for 'char8_t' as adopted for C++2a. This includes
  2356. the addition of a new 'char8_t' fundamental type, changes to the
  2357. types of UTF-8 string and character literals, new signatures for
  2358. user-defined literals, associated standard library updates, and new
  2359. '__cpp_char8_t' and '__cpp_lib_char8_t' feature test macros.
  2360. This option enables functions to be overloaded for ordinary and
  2361. UTF-8 strings:
  2362. int f(const char *); // #1
  2363. int f(const char8_t *); // #2
  2364. int v1 = f("text"); // Calls #1
  2365. int v2 = f(u8"text"); // Calls #2
  2366. and introduces new signatures for user-defined literals:
  2367. int operator""_udl1(char8_t);
  2368. int v3 = u8'x'_udl1;
  2369. int operator""_udl2(const char8_t*, std::size_t);
  2370. int v4 = u8"text"_udl2;
  2371. template<typename T, T...> int operator""_udl3();
  2372. int v5 = u8"text"_udl3;
  2373. The change to the types of UTF-8 string and character literals
  2374. introduces incompatibilities with ISO C++11 and later standards.
  2375. For example, the following code is well-formed under ISO C++11, but
  2376. is ill-formed when '-fchar8_t' is specified.
  2377. char ca[] = u8"xx"; // error: char-array initialized from wide
  2378. // string
  2379. const char *cp = u8"xx";// error: invalid conversion from
  2380. // `const char8_t*' to `const char*'
  2381. int f(const char*);
  2382. auto v = f(u8"xx"); // error: invalid conversion from
  2383. // `const char8_t*' to `const char*'
  2384. std::string s{u8"xx"}; // error: no matching function for call to
  2385. // `std::basic_string<char>::basic_string()'
  2386. using namespace std::literals;
  2387. s = u8"xx"s; // error: conversion from
  2388. // `basic_string<char8_t>' to non-scalar
  2389. // type `basic_string<char>' requested
  2390. '-fcheck-new'
  2391. Check that the pointer returned by 'operator new' is non-null
  2392. before attempting to modify the storage allocated. This check is
  2393. normally unnecessary because the C++ standard specifies that
  2394. 'operator new' only returns '0' if it is declared 'throw()', in
  2395. which case the compiler always checks the return value even without
  2396. this option. In all other cases, when 'operator new' has a
  2397. non-empty exception specification, memory exhaustion is signalled
  2398. by throwing 'std::bad_alloc'. See also 'new (nothrow)'.
  2399. '-fconcepts'
  2400. '-fconcepts-ts'
  2401. Below '-std=c++2a', '-fconcepts' enables support for the C++
  2402. Extensions for Concepts Technical Specification, ISO 19217 (2015).
  2403. With '-std=c++2a' and above, Concepts are part of the language
  2404. standard, so '-fconcepts' defaults to on. But the standard
  2405. specification of Concepts differs significantly from the TS, so
  2406. some constructs that were allowed in the TS but didn't make it into
  2407. the standard can still be enabled by '-fconcepts-ts'.
  2408. '-fconstexpr-depth=N'
  2409. Set the maximum nested evaluation depth for C++11 constexpr
  2410. functions to N. A limit is needed to detect endless recursion
  2411. during constant expression evaluation. The minimum specified by
  2412. the standard is 512.
  2413. '-fconstexpr-cache-depth=N'
  2414. Set the maximum level of nested evaluation depth for C++11
  2415. constexpr functions that will be cached to N. This is a heuristic
  2416. that trades off compilation speed (when the cache avoids repeated
  2417. calculations) against memory consumption (when the cache grows very
  2418. large from highly recursive evaluations). The default is 8. Very
  2419. few users are likely to want to adjust it, but if your code does
  2420. heavy constexpr calculations you might want to experiment to find
  2421. which value works best for you.
  2422. '-fconstexpr-loop-limit=N'
  2423. Set the maximum number of iterations for a loop in C++14 constexpr
  2424. functions to N. A limit is needed to detect infinite loops during
  2425. constant expression evaluation. The default is 262144 (1<<18).
  2426. '-fconstexpr-ops-limit=N'
  2427. Set the maximum number of operations during a single constexpr
  2428. evaluation. Even when number of iterations of a single loop is
  2429. limited with the above limit, if there are several nested loops and
  2430. each of them has many iterations but still smaller than the above
  2431. limit, or if in a body of some loop or even outside of a loop too
  2432. many expressions need to be evaluated, the resulting constexpr
  2433. evaluation might take too long. The default is 33554432 (1<<25).
  2434. '-fcoroutines'
  2435. Enable support for the C++ coroutines extension (experimental).
  2436. '-fno-elide-constructors'
  2437. The C++ standard allows an implementation to omit creating a
  2438. temporary that is only used to initialize another object of the
  2439. same type. Specifying this option disables that optimization, and
  2440. forces G++ to call the copy constructor in all cases. This option
  2441. also causes G++ to call trivial member functions which otherwise
  2442. would be expanded inline.
  2443. In C++17, the compiler is required to omit these temporaries, but
  2444. this option still affects trivial member functions.
  2445. '-fno-enforce-eh-specs'
  2446. Don't generate code to check for violation of exception
  2447. specifications at run time. This option violates the C++ standard,
  2448. but may be useful for reducing code size in production builds, much
  2449. like defining 'NDEBUG'. This does not give user code permission to
  2450. throw exceptions in violation of the exception specifications; the
  2451. compiler still optimizes based on the specifications, so throwing
  2452. an unexpected exception results in undefined behavior at run time.
  2453. '-fextern-tls-init'
  2454. '-fno-extern-tls-init'
  2455. The C++11 and OpenMP standards allow 'thread_local' and
  2456. 'threadprivate' variables to have dynamic (runtime) initialization.
  2457. To support this, any use of such a variable goes through a wrapper
  2458. function that performs any necessary initialization. When the use
  2459. and definition of the variable are in the same translation unit,
  2460. this overhead can be optimized away, but when the use is in a
  2461. different translation unit there is significant overhead even if
  2462. the variable doesn't actually need dynamic initialization. If the
  2463. programmer can be sure that no use of the variable in a
  2464. non-defining TU needs to trigger dynamic initialization (either
  2465. because the variable is statically initialized, or a use of the
  2466. variable in the defining TU will be executed before any uses in
  2467. another TU), they can avoid this overhead with the
  2468. '-fno-extern-tls-init' option.
  2469. On targets that support symbol aliases, the default is
  2470. '-fextern-tls-init'. On targets that do not support symbol
  2471. aliases, the default is '-fno-extern-tls-init'.
  2472. '-fno-gnu-keywords'
  2473. Do not recognize 'typeof' as a keyword, so that code can use this
  2474. word as an identifier. You can use the keyword '__typeof__'
  2475. instead. This option is implied by the strict ISO C++ dialects:
  2476. '-ansi', '-std=c++98', '-std=c++11', etc.
  2477. '-fno-implicit-templates'
  2478. Never emit code for non-inline templates that are instantiated
  2479. implicitly (i.e. by use); only emit code for explicit
  2480. instantiations. If you use this option, you must take care to
  2481. structure your code to include all the necessary explicit
  2482. instantiations to avoid getting undefined symbols at link time.
  2483. *Note Template Instantiation::, for more information.
  2484. '-fno-implicit-inline-templates'
  2485. Don't emit code for implicit instantiations of inline templates,
  2486. either. The default is to handle inlines differently so that
  2487. compiles with and without optimization need the same set of
  2488. explicit instantiations.
  2489. '-fno-implement-inlines'
  2490. To save space, do not emit out-of-line copies of inline functions
  2491. controlled by '#pragma implementation'. This causes linker errors
  2492. if these functions are not inlined everywhere they are called.
  2493. '-fms-extensions'
  2494. Disable Wpedantic warnings about constructs used in MFC, such as
  2495. implicit int and getting a pointer to member function via
  2496. non-standard syntax.
  2497. '-fnew-inheriting-ctors'
  2498. Enable the P0136 adjustment to the semantics of C++11 constructor
  2499. inheritance. This is part of C++17 but also considered to be a
  2500. Defect Report against C++11 and C++14. This flag is enabled by
  2501. default unless '-fabi-version=10' or lower is specified.
  2502. '-fnew-ttp-matching'
  2503. Enable the P0522 resolution to Core issue 150, template template
  2504. parameters and default arguments: this allows a template with
  2505. default template arguments as an argument for a template template
  2506. parameter with fewer template parameters. This flag is enabled by
  2507. default for '-std=c++17'.
  2508. '-fno-nonansi-builtins'
  2509. Disable built-in declarations of functions that are not mandated by
  2510. ANSI/ISO C. These include 'ffs', 'alloca', '_exit', 'index',
  2511. 'bzero', 'conjf', and other related functions.
  2512. '-fnothrow-opt'
  2513. Treat a 'throw()' exception specification as if it were a
  2514. 'noexcept' specification to reduce or eliminate the text size
  2515. overhead relative to a function with no exception specification.
  2516. If the function has local variables of types with non-trivial
  2517. destructors, the exception specification actually makes the
  2518. function smaller because the EH cleanups for those variables can be
  2519. optimized away. The semantic effect is that an exception thrown
  2520. out of a function with such an exception specification results in a
  2521. call to 'terminate' rather than 'unexpected'.
  2522. '-fno-operator-names'
  2523. Do not treat the operator name keywords 'and', 'bitand', 'bitor',
  2524. 'compl', 'not', 'or' and 'xor' as synonyms as keywords.
  2525. '-fno-optional-diags'
  2526. Disable diagnostics that the standard says a compiler does not need
  2527. to issue. Currently, the only such diagnostic issued by G++ is the
  2528. one for a name having multiple meanings within a class.
  2529. '-fpermissive'
  2530. Downgrade some diagnostics about nonconformant code from errors to
  2531. warnings. Thus, using '-fpermissive' allows some nonconforming
  2532. code to compile.
  2533. '-fno-pretty-templates'
  2534. When an error message refers to a specialization of a function
  2535. template, the compiler normally prints the signature of the
  2536. template followed by the template arguments and any typedefs or
  2537. typenames in the signature (e.g. 'void f(T) [with T = int]' rather
  2538. than 'void f(int)') so that it's clear which template is involved.
  2539. When an error message refers to a specialization of a class
  2540. template, the compiler omits any template arguments that match the
  2541. default template arguments for that template. If either of these
  2542. behaviors make it harder to understand the error message rather
  2543. than easier, you can use '-fno-pretty-templates' to disable them.
  2544. '-fno-rtti'
  2545. Disable generation of information about every class with virtual
  2546. functions for use by the C++ run-time type identification features
  2547. ('dynamic_cast' and 'typeid'). If you don't use those parts of the
  2548. language, you can save some space by using this flag. Note that
  2549. exception handling uses the same information, but G++ generates it
  2550. as needed. The 'dynamic_cast' operator can still be used for casts
  2551. that do not require run-time type information, i.e. casts to 'void
  2552. *' or to unambiguous base classes.
  2553. Mixing code compiled with '-frtti' with that compiled with
  2554. '-fno-rtti' may not work. For example, programs may fail to link
  2555. if a class compiled with '-fno-rtti' is used as a base for a class
  2556. compiled with '-frtti'.
  2557. '-fsized-deallocation'
  2558. Enable the built-in global declarations
  2559. void operator delete (void *, std::size_t) noexcept;
  2560. void operator delete[] (void *, std::size_t) noexcept;
  2561. as introduced in C++14. This is useful for user-defined
  2562. replacement deallocation functions that, for example, use the size
  2563. of the object to make deallocation faster. Enabled by default
  2564. under '-std=c++14' and above. The flag '-Wsized-deallocation'
  2565. warns about places that might want to add a definition.
  2566. '-fstrict-enums'
  2567. Allow the compiler to optimize using the assumption that a value of
  2568. enumerated type can only be one of the values of the enumeration
  2569. (as defined in the C++ standard; basically, a value that can be
  2570. represented in the minimum number of bits needed to represent all
  2571. the enumerators). This assumption may not be valid if the program
  2572. uses a cast to convert an arbitrary integer value to the enumerated
  2573. type.
  2574. '-fstrong-eval-order'
  2575. Evaluate member access, array subscripting, and shift expressions
  2576. in left-to-right order, and evaluate assignment in right-to-left
  2577. order, as adopted for C++17. Enabled by default with '-std=c++17'.
  2578. '-fstrong-eval-order=some' enables just the ordering of member
  2579. access and shift expressions, and is the default without
  2580. '-std=c++17'.
  2581. '-ftemplate-backtrace-limit=N'
  2582. Set the maximum number of template instantiation notes for a single
  2583. warning or error to N. The default value is 10.
  2584. '-ftemplate-depth=N'
  2585. Set the maximum instantiation depth for template classes to N. A
  2586. limit on the template instantiation depth is needed to detect
  2587. endless recursions during template class instantiation. ANSI/ISO
  2588. C++ conforming programs must not rely on a maximum depth greater
  2589. than 17 (changed to 1024 in C++11). The default value is 900, as
  2590. the compiler can run out of stack space before hitting 1024 in some
  2591. situations.
  2592. '-fno-threadsafe-statics'
  2593. Do not emit the extra code to use the routines specified in the C++
  2594. ABI for thread-safe initialization of local statics. You can use
  2595. this option to reduce code size slightly in code that doesn't need
  2596. to be thread-safe.
  2597. '-fuse-cxa-atexit'
  2598. Register destructors for objects with static storage duration with
  2599. the '__cxa_atexit' function rather than the 'atexit' function.
  2600. This option is required for fully standards-compliant handling of
  2601. static destructors, but only works if your C library supports
  2602. '__cxa_atexit'.
  2603. '-fno-use-cxa-get-exception-ptr'
  2604. Don't use the '__cxa_get_exception_ptr' runtime routine. This
  2605. causes 'std::uncaught_exception' to be incorrect, but is necessary
  2606. if the runtime routine is not available.
  2607. '-fvisibility-inlines-hidden'
  2608. This switch declares that the user does not attempt to compare
  2609. pointers to inline functions or methods where the addresses of the
  2610. two functions are taken in different shared objects.
  2611. The effect of this is that GCC may, effectively, mark inline
  2612. methods with '__attribute__ ((visibility ("hidden")))' so that they
  2613. do not appear in the export table of a DSO and do not require a PLT
  2614. indirection when used within the DSO. Enabling this option can
  2615. have a dramatic effect on load and link times of a DSO as it
  2616. massively reduces the size of the dynamic export table when the
  2617. library makes heavy use of templates.
  2618. The behavior of this switch is not quite the same as marking the
  2619. methods as hidden directly, because it does not affect static
  2620. variables local to the function or cause the compiler to deduce
  2621. that the function is defined in only one shared object.
  2622. You may mark a method as having a visibility explicitly to negate
  2623. the effect of the switch for that method. For example, if you do
  2624. want to compare pointers to a particular inline method, you might
  2625. mark it as having default visibility. Marking the enclosing class
  2626. with explicit visibility has no effect.
  2627. Explicitly instantiated inline methods are unaffected by this
  2628. option as their linkage might otherwise cross a shared library
  2629. boundary. *Note Template Instantiation::.
  2630. '-fvisibility-ms-compat'
  2631. This flag attempts to use visibility settings to make GCC's C++
  2632. linkage model compatible with that of Microsoft Visual Studio.
  2633. The flag makes these changes to GCC's linkage model:
  2634. 1. It sets the default visibility to 'hidden', like
  2635. '-fvisibility=hidden'.
  2636. 2. Types, but not their members, are not hidden by default.
  2637. 3. The One Definition Rule is relaxed for types without explicit
  2638. visibility specifications that are defined in more than one
  2639. shared object: those declarations are permitted if they are
  2640. permitted when this option is not used.
  2641. In new code it is better to use '-fvisibility=hidden' and export
  2642. those classes that are intended to be externally visible.
  2643. Unfortunately it is possible for code to rely, perhaps
  2644. accidentally, on the Visual Studio behavior.
  2645. Among the consequences of these changes are that static data
  2646. members of the same type with the same name but defined in
  2647. different shared objects are different, so changing one does not
  2648. change the other; and that pointers to function members defined in
  2649. different shared objects may not compare equal. When this flag is
  2650. given, it is a violation of the ODR to define types with the same
  2651. name differently.
  2652. '-fno-weak'
  2653. Do not use weak symbol support, even if it is provided by the
  2654. linker. By default, G++ uses weak symbols if they are available.
  2655. This option exists only for testing, and should not be used by
  2656. end-users; it results in inferior code and has no benefits. This
  2657. option may be removed in a future release of G++.
  2658. '-fext-numeric-literals (C++ and Objective-C++ only)'
  2659. Accept imaginary, fixed-point, or machine-defined literal number
  2660. suffixes as GNU extensions. When this option is turned off these
  2661. suffixes are treated as C++11 user-defined literal numeric
  2662. suffixes. This is on by default for all pre-C++11 dialects and all
  2663. GNU dialects: '-std=c++98', '-std=gnu++98', '-std=gnu++11',
  2664. '-std=gnu++14'. This option is off by default for ISO C++11
  2665. onwards ('-std=c++11', ...).
  2666. '-nostdinc++'
  2667. Do not search for header files in the standard directories specific
  2668. to C++, but do still search the other standard directories. (This
  2669. option is used when building the C++ library.)
  2670. In addition, these warning options have meanings only for C++ programs:
  2671. '-Wabi-tag (C++ and Objective-C++ only)'
  2672. Warn when a type with an ABI tag is used in a context that does not
  2673. have that ABI tag. See *note C++ Attributes:: for more information
  2674. about ABI tags.
  2675. '-Wcomma-subscript (C++ and Objective-C++ only)'
  2676. Warn about uses of a comma expression within a subscripting
  2677. expression. This usage was deprecated in C++2a. However, a comma
  2678. expression wrapped in '( )' is not deprecated. Example:
  2679. void f(int *a, int b, int c) {
  2680. a[b,c]; // deprecated
  2681. a[(b,c)]; // OK
  2682. }
  2683. Enabled by default with '-std=c++2a'.
  2684. '-Wctor-dtor-privacy (C++ and Objective-C++ only)'
  2685. Warn when a class seems unusable because all the constructors or
  2686. destructors in that class are private, and it has neither friends
  2687. nor public static member functions. Also warn if there are no
  2688. non-private methods, and there's at least one private member
  2689. function that isn't a constructor or destructor.
  2690. '-Wdelete-non-virtual-dtor (C++ and Objective-C++ only)'
  2691. Warn when 'delete' is used to destroy an instance of a class that
  2692. has virtual functions and non-virtual destructor. It is unsafe to
  2693. delete an instance of a derived class through a pointer to a base
  2694. class if the base class does not have a virtual destructor. This
  2695. warning is enabled by '-Wall'.
  2696. '-Wdeprecated-copy (C++ and Objective-C++ only)'
  2697. Warn that the implicit declaration of a copy constructor or copy
  2698. assignment operator is deprecated if the class has a user-provided
  2699. copy constructor or copy assignment operator, in C++11 and up.
  2700. This warning is enabled by '-Wextra'. With
  2701. '-Wdeprecated-copy-dtor', also deprecate if the class has a
  2702. user-provided destructor.
  2703. '-Wno-init-list-lifetime (C++ and Objective-C++ only)'
  2704. Do not warn about uses of 'std::initializer_list' that are likely
  2705. to result in dangling pointers. Since the underlying array for an
  2706. 'initializer_list' is handled like a normal C++ temporary object,
  2707. it is easy to inadvertently keep a pointer to the array past the
  2708. end of the array's lifetime. For example:
  2709. * If a function returns a temporary 'initializer_list', or a
  2710. local 'initializer_list' variable, the array's lifetime ends
  2711. at the end of the return statement, so the value returned has
  2712. a dangling pointer.
  2713. * If a new-expression creates an 'initializer_list', the array
  2714. only lives until the end of the enclosing full-expression, so
  2715. the 'initializer_list' in the heap has a dangling pointer.
  2716. * When an 'initializer_list' variable is assigned from a
  2717. brace-enclosed initializer list, the temporary array created
  2718. for the right side of the assignment only lives until the end
  2719. of the full-expression, so at the next statement the
  2720. 'initializer_list' variable has a dangling pointer.
  2721. // li's initial underlying array lives as long as li
  2722. std::initializer_list<int> li = { 1,2,3 };
  2723. // assignment changes li to point to a temporary array
  2724. li = { 4, 5 };
  2725. // now the temporary is gone and li has a dangling pointer
  2726. int i = li.begin()[0] // undefined behavior
  2727. * When a list constructor stores the 'begin' pointer from the
  2728. 'initializer_list' argument, this doesn't extend the lifetime
  2729. of the array, so if a class variable is constructed from a
  2730. temporary 'initializer_list', the pointer is left dangling by
  2731. the end of the variable declaration statement.
  2732. '-Wno-literal-suffix (C++ and Objective-C++ only)'
  2733. Do not warn when a string or character literal is followed by a
  2734. ud-suffix which does not begin with an underscore. As a conforming
  2735. extension, GCC treats such suffixes as separate preprocessing
  2736. tokens in order to maintain backwards compatibility with code that
  2737. uses formatting macros from '<inttypes.h>'. For example:
  2738. #define __STDC_FORMAT_MACROS
  2739. #include <inttypes.h>
  2740. #include <stdio.h>
  2741. int main() {
  2742. int64_t i64 = 123;
  2743. printf("My int64: %" PRId64"\n", i64);
  2744. }
  2745. In this case, 'PRId64' is treated as a separate preprocessing
  2746. token.
  2747. This option also controls warnings when a user-defined literal
  2748. operator is declared with a literal suffix identifier that doesn't
  2749. begin with an underscore. Literal suffix identifiers that don't
  2750. begin with an underscore are reserved for future standardization.
  2751. These warnings are enabled by default.
  2752. '-Wno-narrowing (C++ and Objective-C++ only)'
  2753. For C++11 and later standards, narrowing conversions are diagnosed
  2754. by default, as required by the standard. A narrowing conversion
  2755. from a constant produces an error, and a narrowing conversion from
  2756. a non-constant produces a warning, but '-Wno-narrowing' suppresses
  2757. the diagnostic. Note that this does not affect the meaning of
  2758. well-formed code; narrowing conversions are still considered
  2759. ill-formed in SFINAE contexts.
  2760. With '-Wnarrowing' in C++98, warn when a narrowing conversion
  2761. prohibited by C++11 occurs within '{ }', e.g.
  2762. int i = { 2.2 }; // error: narrowing from double to int
  2763. This flag is included in '-Wall' and '-Wc++11-compat'.
  2764. '-Wnoexcept (C++ and Objective-C++ only)'
  2765. Warn when a noexcept-expression evaluates to false because of a
  2766. call to a function that does not have a non-throwing exception
  2767. specification (i.e. 'throw()' or 'noexcept') but is known by the
  2768. compiler to never throw an exception.
  2769. '-Wnoexcept-type (C++ and Objective-C++ only)'
  2770. Warn if the C++17 feature making 'noexcept' part of a function type
  2771. changes the mangled name of a symbol relative to C++14. Enabled by
  2772. '-Wabi' and '-Wc++17-compat'.
  2773. As an example:
  2774. template <class T> void f(T t) { t(); };
  2775. void g() noexcept;
  2776. void h() { f(g); }
  2777. In C++14, 'f' calls 'f<void(*)()>', but in C++17 it calls
  2778. 'f<void(*)()noexcept>'.
  2779. '-Wclass-memaccess (C++ and Objective-C++ only)'
  2780. Warn when the destination of a call to a raw memory function such
  2781. as 'memset' or 'memcpy' is an object of class type, and when
  2782. writing into such an object might bypass the class non-trivial or
  2783. deleted constructor or copy assignment, violate const-correctness
  2784. or encapsulation, or corrupt virtual table pointers. Modifying the
  2785. representation of such objects may violate invariants maintained by
  2786. member functions of the class. For example, the call to 'memset'
  2787. below is undefined because it modifies a non-trivial class object
  2788. and is, therefore, diagnosed. The safe way to either initialize or
  2789. clear the storage of objects of such types is by using the
  2790. appropriate constructor or assignment operator, if one is
  2791. available.
  2792. std::string str = "abc";
  2793. memset (&str, 0, sizeof str);
  2794. The '-Wclass-memaccess' option is enabled by '-Wall'. Explicitly
  2795. casting the pointer to the class object to 'void *' or to a type
  2796. that can be safely accessed by the raw memory function suppresses
  2797. the warning.
  2798. '-Wnon-virtual-dtor (C++ and Objective-C++ only)'
  2799. Warn when a class has virtual functions and an accessible
  2800. non-virtual destructor itself or in an accessible polymorphic base
  2801. class, in which case it is possible but unsafe to delete an
  2802. instance of a derived class through a pointer to the class itself
  2803. or base class. This warning is automatically enabled if '-Weffc++'
  2804. is specified.
  2805. '-Wregister (C++ and Objective-C++ only)'
  2806. Warn on uses of the 'register' storage class specifier, except when
  2807. it is part of the GNU *note Explicit Register Variables::
  2808. extension. The use of the 'register' keyword as storage class
  2809. specifier has been deprecated in C++11 and removed in C++17.
  2810. Enabled by default with '-std=c++17'.
  2811. '-Wreorder (C++ and Objective-C++ only)'
  2812. Warn when the order of member initializers given in the code does
  2813. not match the order in which they must be executed. For instance:
  2814. struct A {
  2815. int i;
  2816. int j;
  2817. A(): j (0), i (1) { }
  2818. };
  2819. The compiler rearranges the member initializers for 'i' and 'j' to
  2820. match the declaration order of the members, emitting a warning to
  2821. that effect. This warning is enabled by '-Wall'.
  2822. '-Wno-pessimizing-move (C++ and Objective-C++ only)'
  2823. This warning warns when a call to 'std::move' prevents copy
  2824. elision. A typical scenario when copy elision can occur is when
  2825. returning in a function with a class return type, when the
  2826. expression being returned is the name of a non-volatile automatic
  2827. object, and is not a function parameter, and has the same type as
  2828. the function return type.
  2829. struct T {
  2830. ...
  2831. };
  2832. T fn()
  2833. {
  2834. T t;
  2835. ...
  2836. return std::move (t);
  2837. }
  2838. But in this example, the 'std::move' call prevents copy elision.
  2839. This warning is enabled by '-Wall'.
  2840. '-Wno-redundant-move (C++ and Objective-C++ only)'
  2841. This warning warns about redundant calls to 'std::move'; that is,
  2842. when a move operation would have been performed even without the
  2843. 'std::move' call. This happens because the compiler is forced to
  2844. treat the object as if it were an rvalue in certain situations such
  2845. as returning a local variable, where copy elision isn't applicable.
  2846. Consider:
  2847. struct T {
  2848. ...
  2849. };
  2850. T fn(T t)
  2851. {
  2852. ...
  2853. return std::move (t);
  2854. }
  2855. Here, the 'std::move' call is redundant. Because G++ implements
  2856. Core Issue 1579, another example is:
  2857. struct T { // convertible to U
  2858. ...
  2859. };
  2860. struct U {
  2861. ...
  2862. };
  2863. U fn()
  2864. {
  2865. T t;
  2866. ...
  2867. return std::move (t);
  2868. }
  2869. In this example, copy elision isn't applicable because the type of
  2870. the expression being returned and the function return type differ,
  2871. yet G++ treats the return value as if it were designated by an
  2872. rvalue.
  2873. This warning is enabled by '-Wextra'.
  2874. '-Wredundant-tags (C++ and Objective-C++ only)'
  2875. Warn about redundant class-key and enum-key in references to class
  2876. types and enumerated types in contexts where the key can be
  2877. eliminated without causing an ambiguity. For example:
  2878. struct foo;
  2879. struct foo *p; // warn that keyword struct can be eliminated
  2880. On the other hand, in this example there is no warning:
  2881. struct foo;
  2882. void foo (); // "hides" struct foo
  2883. void bar (struct foo&); // no warning, keyword struct is necessary
  2884. '-Wno-subobject-linkage (C++ and Objective-C++ only)'
  2885. Do not warn if a class type has a base or a field whose type uses
  2886. the anonymous namespace or depends on a type with no linkage. If a
  2887. type A depends on a type B with no or internal linkage, defining it
  2888. in multiple translation units would be an ODR violation because the
  2889. meaning of B is different in each translation unit. If A only
  2890. appears in a single translation unit, the best way to silence the
  2891. warning is to give it internal linkage by putting it in an
  2892. anonymous namespace as well. The compiler doesn't give this
  2893. warning for types defined in the main .C file, as those are
  2894. unlikely to have multiple definitions. '-Wsubobject-linkage' is
  2895. enabled by default.
  2896. '-Weffc++ (C++ and Objective-C++ only)'
  2897. Warn about violations of the following style guidelines from Scott
  2898. Meyers' 'Effective C++' series of books:
  2899. * Define a copy constructor and an assignment operator for
  2900. classes with dynamically-allocated memory.
  2901. * Prefer initialization to assignment in constructors.
  2902. * Have 'operator=' return a reference to '*this'.
  2903. * Don't try to return a reference when you must return an
  2904. object.
  2905. * Distinguish between prefix and postfix forms of increment and
  2906. decrement operators.
  2907. * Never overload '&&', '||', or ','.
  2908. This option also enables '-Wnon-virtual-dtor', which is also one of
  2909. the effective C++ recommendations. However, the check is extended
  2910. to warn about the lack of virtual destructor in accessible
  2911. non-polymorphic bases classes too.
  2912. When selecting this option, be aware that the standard library
  2913. headers do not obey all of these guidelines; use 'grep -v' to
  2914. filter out those warnings.
  2915. '-Wstrict-null-sentinel (C++ and Objective-C++ only)'
  2916. Warn about the use of an uncasted 'NULL' as sentinel. When
  2917. compiling only with GCC this is a valid sentinel, as 'NULL' is
  2918. defined to '__null'. Although it is a null pointer constant rather
  2919. than a null pointer, it is guaranteed to be of the same size as a
  2920. pointer. But this use is not portable across different compilers.
  2921. '-Wno-non-template-friend (C++ and Objective-C++ only)'
  2922. Disable warnings when non-template friend functions are declared
  2923. within a template. In very old versions of GCC that predate
  2924. implementation of the ISO standard, declarations such as 'friend
  2925. int foo(int)', where the name of the friend is an unqualified-id,
  2926. could be interpreted as a particular specialization of a template
  2927. function; the warning exists to diagnose compatibility problems,
  2928. and is enabled by default.
  2929. '-Wold-style-cast (C++ and Objective-C++ only)'
  2930. Warn if an old-style (C-style) cast to a non-void type is used
  2931. within a C++ program. The new-style casts ('dynamic_cast',
  2932. 'static_cast', 'reinterpret_cast', and 'const_cast') are less
  2933. vulnerable to unintended effects and much easier to search for.
  2934. '-Woverloaded-virtual (C++ and Objective-C++ only)'
  2935. Warn when a function declaration hides virtual functions from a
  2936. base class. For example, in:
  2937. struct A {
  2938. virtual void f();
  2939. };
  2940. struct B: public A {
  2941. void f(int);
  2942. };
  2943. the 'A' class version of 'f' is hidden in 'B', and code like:
  2944. B* b;
  2945. b->f();
  2946. fails to compile.
  2947. '-Wno-pmf-conversions (C++ and Objective-C++ only)'
  2948. Disable the diagnostic for converting a bound pointer to member
  2949. function to a plain pointer.
  2950. '-Wsign-promo (C++ and Objective-C++ only)'
  2951. Warn when overload resolution chooses a promotion from unsigned or
  2952. enumerated type to a signed type, over a conversion to an unsigned
  2953. type of the same size. Previous versions of G++ tried to preserve
  2954. unsignedness, but the standard mandates the current behavior.
  2955. '-Wtemplates (C++ and Objective-C++ only)'
  2956. Warn when a primary template declaration is encountered. Some
  2957. coding rules disallow templates, and this may be used to enforce
  2958. that rule. The warning is inactive inside a system header file,
  2959. such as the STL, so one can still use the STL. One may also
  2960. instantiate or specialize templates.
  2961. '-Wmismatched-tags (C++ and Objective-C++ only)'
  2962. Warn for declarations of structs, classes, and class templates and
  2963. their specializations with a class-key that does not match either
  2964. the definition or the first declaration if no definition is
  2965. provided.
  2966. For example, the declaration of 'struct Object' in the argument
  2967. list of 'draw' triggers the warning. To avoid it, either remove
  2968. the redundant class-key 'struct' or replace it with 'class' to
  2969. match its definition.
  2970. class Object {
  2971. public:
  2972. virtual ~Object () = 0;
  2973. };
  2974. void draw (struct Object*);
  2975. It is not wrong to declare a class with the class-key 'struct' as
  2976. the example above shows. The '-Wmismatched-tags' option is
  2977. intended to help achieve a consistent style of class declarations.
  2978. In code that is intended to be portable to Windows-based compilers
  2979. the warning helps prevent unresolved references due to the
  2980. difference in the mangling of symbols declared with different
  2981. class-keys. The option can be used either on its own or in
  2982. conjunction with '-Wredundant-tags'.
  2983. '-Wmultiple-inheritance (C++ and Objective-C++ only)'
  2984. Warn when a class is defined with multiple direct base classes.
  2985. Some coding rules disallow multiple inheritance, and this may be
  2986. used to enforce that rule. The warning is inactive inside a system
  2987. header file, such as the STL, so one can still use the STL. One may
  2988. also define classes that indirectly use multiple inheritance.
  2989. '-Wvirtual-inheritance'
  2990. Warn when a class is defined with a virtual direct base class.
  2991. Some coding rules disallow multiple inheritance, and this may be
  2992. used to enforce that rule. The warning is inactive inside a system
  2993. header file, such as the STL, so one can still use the STL. One may
  2994. also define classes that indirectly use virtual inheritance.
  2995. '-Wno-virtual-move-assign'
  2996. Suppress warnings about inheriting from a virtual base with a
  2997. non-trivial C++11 move assignment operator. This is dangerous
  2998. because if the virtual base is reachable along more than one path,
  2999. it is moved multiple times, which can mean both objects end up in
  3000. the moved-from state. If the move assignment operator is written
  3001. to avoid moving from a moved-from object, this warning can be
  3002. disabled.
  3003. '-Wnamespaces'
  3004. Warn when a namespace definition is opened. Some coding rules
  3005. disallow namespaces, and this may be used to enforce that rule.
  3006. The warning is inactive inside a system header file, such as the
  3007. STL, so one can still use the STL. One may also use using
  3008. directives and qualified names.
  3009. '-Wno-terminate (C++ and Objective-C++ only)'
  3010. Disable the warning about a throw-expression that will immediately
  3011. result in a call to 'terminate'.
  3012. '-Wno-class-conversion (C++ and Objective-C++ only)'
  3013. Do not warn when a conversion function converts an object to the
  3014. same type, to a base class of that type, or to void; such a
  3015. conversion function will never be called.
  3016. '-Wvolatile (C++ and Objective-C++ only)'
  3017. Warn about deprecated uses of the 'volatile' qualifier. This
  3018. includes postfix and prefix '++' and '--' expressions of
  3019. 'volatile'-qualified types, using simple assignments where the left
  3020. operand is a 'volatile'-qualified non-class type for their value,
  3021. compound assignments where the left operand is a
  3022. 'volatile'-qualified non-class type, 'volatile'-qualified function
  3023. return type, 'volatile'-qualified parameter type, and structured
  3024. bindings of a 'volatile'-qualified type. This usage was deprecated
  3025. in C++20.
  3026. Enabled by default with '-std=c++2a'.
  3027. '-Wzero-as-null-pointer-constant (C++ and Objective-C++ only)'
  3028. Warn when a literal '0' is used as null pointer constant. This can
  3029. be useful to facilitate the conversion to 'nullptr' in C++11.
  3030. '-Waligned-new'
  3031. Warn about a new-expression of a type that requires greater
  3032. alignment than the 'alignof(std::max_align_t)' but uses an
  3033. allocation function without an explicit alignment parameter. This
  3034. option is enabled by '-Wall'.
  3035. Normally this only warns about global allocation functions, but
  3036. '-Waligned-new=all' also warns about class member allocation
  3037. functions.
  3038. '-Wno-placement-new'
  3039. '-Wplacement-new=N'
  3040. Warn about placement new expressions with undefined behavior, such
  3041. as constructing an object in a buffer that is smaller than the type
  3042. of the object. For example, the placement new expression below is
  3043. diagnosed because it attempts to construct an array of 64 integers
  3044. in a buffer only 64 bytes large.
  3045. char buf [64];
  3046. new (buf) int[64];
  3047. This warning is enabled by default.
  3048. '-Wplacement-new=1'
  3049. This is the default warning level of '-Wplacement-new'. At
  3050. this level the warning is not issued for some strictly
  3051. undefined constructs that GCC allows as extensions for
  3052. compatibility with legacy code. For example, the following
  3053. 'new' expression is not diagnosed at this level even though it
  3054. has undefined behavior according to the C++ standard because
  3055. it writes past the end of the one-element array.
  3056. struct S { int n, a[1]; };
  3057. S *s = (S *)malloc (sizeof *s + 31 * sizeof s->a[0]);
  3058. new (s->a)int [32]();
  3059. '-Wplacement-new=2'
  3060. At this level, in addition to diagnosing all the same
  3061. constructs as at level 1, a diagnostic is also issued for
  3062. placement new expressions that construct an object in the last
  3063. member of structure whose type is an array of a single element
  3064. and whose size is less than the size of the object being
  3065. constructed. While the previous example would be diagnosed,
  3066. the following construct makes use of the flexible member array
  3067. extension to avoid the warning at level 2.
  3068. struct S { int n, a[]; };
  3069. S *s = (S *)malloc (sizeof *s + 32 * sizeof s->a[0]);
  3070. new (s->a)int [32]();
  3071. '-Wcatch-value'
  3072. '-Wcatch-value=N (C++ and Objective-C++ only)'
  3073. Warn about catch handlers that do not catch via reference. With
  3074. '-Wcatch-value=1' (or '-Wcatch-value' for short) warn about
  3075. polymorphic class types that are caught by value. With
  3076. '-Wcatch-value=2' warn about all class types that are caught by
  3077. value. With '-Wcatch-value=3' warn about all types that are not
  3078. caught by reference. '-Wcatch-value' is enabled by '-Wall'.
  3079. '-Wconditionally-supported (C++ and Objective-C++ only)'
  3080. Warn for conditionally-supported (C++11 [intro.defs]) constructs.
  3081. '-Wno-delete-incomplete (C++ and Objective-C++ only)'
  3082. Do not warn when deleting a pointer to incomplete type, which may
  3083. cause undefined behavior at runtime. This warning is enabled by
  3084. default.
  3085. '-Wextra-semi (C++, Objective-C++ only)'
  3086. Warn about redundant semicolons after in-class function
  3087. definitions.
  3088. '-Wno-inaccessible-base (C++, Objective-C++ only)'
  3089. This option controls warnings when a base class is inaccessible in
  3090. a class derived from it due to ambiguity. The warning is enabled
  3091. by default. Note that the warning for ambiguous virtual bases is
  3092. enabled by the '-Wextra' option.
  3093. struct A { int a; };
  3094. struct B : A { };
  3095. struct C : B, A { };
  3096. '-Wno-inherited-variadic-ctor'
  3097. Suppress warnings about use of C++11 inheriting constructors when
  3098. the base class inherited from has a C variadic constructor; the
  3099. warning is on by default because the ellipsis is not inherited.
  3100. '-Wno-invalid-offsetof (C++ and Objective-C++ only)'
  3101. Suppress warnings from applying the 'offsetof' macro to a non-POD
  3102. type. According to the 2014 ISO C++ standard, applying 'offsetof'
  3103. to a non-standard-layout type is undefined. In existing C++
  3104. implementations, however, 'offsetof' typically gives meaningful
  3105. results. This flag is for users who are aware that they are
  3106. writing nonportable code and who have deliberately chosen to ignore
  3107. the warning about it.
  3108. The restrictions on 'offsetof' may be relaxed in a future version
  3109. of the C++ standard.
  3110. '-Wsized-deallocation (C++ and Objective-C++ only)'
  3111. Warn about a definition of an unsized deallocation function
  3112. void operator delete (void *) noexcept;
  3113. void operator delete[] (void *) noexcept;
  3114. without a definition of the corresponding sized deallocation
  3115. function
  3116. void operator delete (void *, std::size_t) noexcept;
  3117. void operator delete[] (void *, std::size_t) noexcept;
  3118. or vice versa. Enabled by '-Wextra' along with
  3119. '-fsized-deallocation'.
  3120. '-Wsuggest-final-types'
  3121. Warn about types with virtual methods where code quality would be
  3122. improved if the type were declared with the C++11 'final'
  3123. specifier, or, if possible, declared in an anonymous namespace.
  3124. This allows GCC to more aggressively devirtualize the polymorphic
  3125. calls. This warning is more effective with link-time optimization,
  3126. where the information about the class hierarchy graph is more
  3127. complete.
  3128. '-Wsuggest-final-methods'
  3129. Warn about virtual methods where code quality would be improved if
  3130. the method were declared with the C++11 'final' specifier, or, if
  3131. possible, its type were declared in an anonymous namespace or with
  3132. the 'final' specifier. This warning is more effective with
  3133. link-time optimization, where the information about the class
  3134. hierarchy graph is more complete. It is recommended to first
  3135. consider suggestions of '-Wsuggest-final-types' and then rebuild
  3136. with new annotations.
  3137. '-Wsuggest-override'
  3138. Warn about overriding virtual functions that are not marked with
  3139. the 'override' keyword.
  3140. '-Wuseless-cast (C++ and Objective-C++ only)'
  3141. Warn when an expression is casted to its own type.
  3142. '-Wno-conversion-null (C++ and Objective-C++ only)'
  3143. Do not warn for conversions between 'NULL' and non-pointer types.
  3144. '-Wconversion-null' is enabled by default.
  3145. 
  3146. File: gcc.info, Node: Objective-C and Objective-C++ Dialect Options, Next: Diagnostic Message Formatting Options, Prev: C++ Dialect Options, Up: Invoking GCC
  3147. 3.6 Options Controlling Objective-C and Objective-C++ Dialects
  3148. ==============================================================
  3149. (NOTE: This manual does not describe the Objective-C and Objective-C++
  3150. languages themselves. *Note Language Standards Supported by GCC:
  3151. Standards, for references.)
  3152. This section describes the command-line options that are only
  3153. meaningful for Objective-C and Objective-C++ programs. You can also use
  3154. most of the language-independent GNU compiler options. For example, you
  3155. might compile a file 'some_class.m' like this:
  3156. gcc -g -fgnu-runtime -O -c some_class.m
  3157. In this example, '-fgnu-runtime' is an option meant only for Objective-C
  3158. and Objective-C++ programs; you can use the other options with any
  3159. language supported by GCC.
  3160. Note that since Objective-C is an extension of the C language,
  3161. Objective-C compilations may also use options specific to the C
  3162. front-end (e.g., '-Wtraditional'). Similarly, Objective-C++
  3163. compilations may use C++-specific options (e.g., '-Wabi').
  3164. Here is a list of options that are _only_ for compiling Objective-C and
  3165. Objective-C++ programs:
  3166. '-fconstant-string-class=CLASS-NAME'
  3167. Use CLASS-NAME as the name of the class to instantiate for each
  3168. literal string specified with the syntax '@"..."'. The default
  3169. class name is 'NXConstantString' if the GNU runtime is being used,
  3170. and 'NSConstantString' if the NeXT runtime is being used (see
  3171. below). The '-fconstant-cfstrings' option, if also present,
  3172. overrides the '-fconstant-string-class' setting and cause '@"..."'
  3173. literals to be laid out as constant CoreFoundation strings.
  3174. '-fgnu-runtime'
  3175. Generate object code compatible with the standard GNU Objective-C
  3176. runtime. This is the default for most types of systems.
  3177. '-fnext-runtime'
  3178. Generate output compatible with the NeXT runtime. This is the
  3179. default for NeXT-based systems, including Darwin and Mac OS X. The
  3180. macro '__NEXT_RUNTIME__' is predefined if (and only if) this option
  3181. is used.
  3182. '-fno-nil-receivers'
  3183. Assume that all Objective-C message dispatches ('[receiver
  3184. message:arg]') in this translation unit ensure that the receiver is
  3185. not 'nil'. This allows for more efficient entry points in the
  3186. runtime to be used. This option is only available in conjunction
  3187. with the NeXT runtime and ABI version 0 or 1.
  3188. '-fobjc-abi-version=N'
  3189. Use version N of the Objective-C ABI for the selected runtime.
  3190. This option is currently supported only for the NeXT runtime. In
  3191. that case, Version 0 is the traditional (32-bit) ABI without
  3192. support for properties and other Objective-C 2.0 additions.
  3193. Version 1 is the traditional (32-bit) ABI with support for
  3194. properties and other Objective-C 2.0 additions. Version 2 is the
  3195. modern (64-bit) ABI. If nothing is specified, the default is
  3196. Version 0 on 32-bit target machines, and Version 2 on 64-bit target
  3197. machines.
  3198. '-fobjc-call-cxx-cdtors'
  3199. For each Objective-C class, check if any of its instance variables
  3200. is a C++ object with a non-trivial default constructor. If so,
  3201. synthesize a special '- (id) .cxx_construct' instance method which
  3202. runs non-trivial default constructors on any such instance
  3203. variables, in order, and then return 'self'. Similarly, check if
  3204. any instance variable is a C++ object with a non-trivial
  3205. destructor, and if so, synthesize a special '- (void)
  3206. .cxx_destruct' method which runs all such default destructors, in
  3207. reverse order.
  3208. The '- (id) .cxx_construct' and '- (void) .cxx_destruct' methods
  3209. thusly generated only operate on instance variables declared in the
  3210. current Objective-C class, and not those inherited from
  3211. superclasses. It is the responsibility of the Objective-C runtime
  3212. to invoke all such methods in an object's inheritance hierarchy.
  3213. The '- (id) .cxx_construct' methods are invoked by the runtime
  3214. immediately after a new object instance is allocated; the '- (void)
  3215. .cxx_destruct' methods are invoked immediately before the runtime
  3216. deallocates an object instance.
  3217. As of this writing, only the NeXT runtime on Mac OS X 10.4 and
  3218. later has support for invoking the '- (id) .cxx_construct' and '-
  3219. (void) .cxx_destruct' methods.
  3220. '-fobjc-direct-dispatch'
  3221. Allow fast jumps to the message dispatcher. On Darwin this is
  3222. accomplished via the comm page.
  3223. '-fobjc-exceptions'
  3224. Enable syntactic support for structured exception handling in
  3225. Objective-C, similar to what is offered by C++. This option is
  3226. required to use the Objective-C keywords '@try', '@throw',
  3227. '@catch', '@finally' and '@synchronized'. This option is available
  3228. with both the GNU runtime and the NeXT runtime (but not available
  3229. in conjunction with the NeXT runtime on Mac OS X 10.2 and earlier).
  3230. '-fobjc-gc'
  3231. Enable garbage collection (GC) in Objective-C and Objective-C++
  3232. programs. This option is only available with the NeXT runtime; the
  3233. GNU runtime has a different garbage collection implementation that
  3234. does not require special compiler flags.
  3235. '-fobjc-nilcheck'
  3236. For the NeXT runtime with version 2 of the ABI, check for a nil
  3237. receiver in method invocations before doing the actual method call.
  3238. This is the default and can be disabled using '-fno-objc-nilcheck'.
  3239. Class methods and super calls are never checked for nil in this way
  3240. no matter what this flag is set to. Currently this flag does
  3241. nothing when the GNU runtime, or an older version of the NeXT
  3242. runtime ABI, is used.
  3243. '-fobjc-std=objc1'
  3244. Conform to the language syntax of Objective-C 1.0, the language
  3245. recognized by GCC 4.0. This only affects the Objective-C additions
  3246. to the C/C++ language; it does not affect conformance to C/C++
  3247. standards, which is controlled by the separate C/C++ dialect option
  3248. flags. When this option is used with the Objective-C or
  3249. Objective-C++ compiler, any Objective-C syntax that is not
  3250. recognized by GCC 4.0 is rejected. This is useful if you need to
  3251. make sure that your Objective-C code can be compiled with older
  3252. versions of GCC.
  3253. '-freplace-objc-classes'
  3254. Emit a special marker instructing 'ld(1)' not to statically link in
  3255. the resulting object file, and allow 'dyld(1)' to load it in at run
  3256. time instead. This is used in conjunction with the
  3257. Fix-and-Continue debugging mode, where the object file in question
  3258. may be recompiled and dynamically reloaded in the course of program
  3259. execution, without the need to restart the program itself.
  3260. Currently, Fix-and-Continue functionality is only available in
  3261. conjunction with the NeXT runtime on Mac OS X 10.3 and later.
  3262. '-fzero-link'
  3263. When compiling for the NeXT runtime, the compiler ordinarily
  3264. replaces calls to 'objc_getClass("...")' (when the name of the
  3265. class is known at compile time) with static class references that
  3266. get initialized at load time, which improves run-time performance.
  3267. Specifying the '-fzero-link' flag suppresses this behavior and
  3268. causes calls to 'objc_getClass("...")' to be retained. This is
  3269. useful in Zero-Link debugging mode, since it allows for individual
  3270. class implementations to be modified during program execution. The
  3271. GNU runtime currently always retains calls to
  3272. 'objc_get_class("...")' regardless of command-line options.
  3273. '-fno-local-ivars'
  3274. By default instance variables in Objective-C can be accessed as if
  3275. they were local variables from within the methods of the class
  3276. they're declared in. This can lead to shadowing between instance
  3277. variables and other variables declared either locally inside a
  3278. class method or globally with the same name. Specifying the
  3279. '-fno-local-ivars' flag disables this behavior thus avoiding
  3280. variable shadowing issues.
  3281. '-fivar-visibility=[public|protected|private|package]'
  3282. Set the default instance variable visibility to the specified
  3283. option so that instance variables declared outside the scope of any
  3284. access modifier directives default to the specified visibility.
  3285. '-gen-decls'
  3286. Dump interface declarations for all classes seen in the source file
  3287. to a file named 'SOURCENAME.decl'.
  3288. '-Wassign-intercept (Objective-C and Objective-C++ only)'
  3289. Warn whenever an Objective-C assignment is being intercepted by the
  3290. garbage collector.
  3291. '-Wno-property-assign-default (Objective-C and Objective-C++ only)'
  3292. Do not warn if a property for an Objective-C object has no assign
  3293. semantics specified.
  3294. '-Wno-protocol (Objective-C and Objective-C++ only)'
  3295. If a class is declared to implement a protocol, a warning is issued
  3296. for every method in the protocol that is not implemented by the
  3297. class. The default behavior is to issue a warning for every method
  3298. not explicitly implemented in the class, even if a method
  3299. implementation is inherited from the superclass. If you use the
  3300. '-Wno-protocol' option, then methods inherited from the superclass
  3301. are considered to be implemented, and no warning is issued for
  3302. them.
  3303. '-Wselector (Objective-C and Objective-C++ only)'
  3304. Warn if multiple methods of different types for the same selector
  3305. are found during compilation. The check is performed on the list
  3306. of methods in the final stage of compilation. Additionally, a
  3307. check is performed for each selector appearing in a
  3308. '@selector(...)' expression, and a corresponding method for that
  3309. selector has been found during compilation. Because these checks
  3310. scan the method table only at the end of compilation, these
  3311. warnings are not produced if the final stage of compilation is not
  3312. reached, for example because an error is found during compilation,
  3313. or because the '-fsyntax-only' option is being used.
  3314. '-Wstrict-selector-match (Objective-C and Objective-C++ only)'
  3315. Warn if multiple methods with differing argument and/or return
  3316. types are found for a given selector when attempting to send a
  3317. message using this selector to a receiver of type 'id' or 'Class'.
  3318. When this flag is off (which is the default behavior), the compiler
  3319. omits such warnings if any differences found are confined to types
  3320. that share the same size and alignment.
  3321. '-Wundeclared-selector (Objective-C and Objective-C++ only)'
  3322. Warn if a '@selector(...)' expression referring to an undeclared
  3323. selector is found. A selector is considered undeclared if no
  3324. method with that name has been declared before the '@selector(...)'
  3325. expression, either explicitly in an '@interface' or '@protocol'
  3326. declaration, or implicitly in an '@implementation' section. This
  3327. option always performs its checks as soon as a '@selector(...)'
  3328. expression is found, while '-Wselector' only performs its checks in
  3329. the final stage of compilation. This also enforces the coding
  3330. style convention that methods and selectors must be declared before
  3331. being used.
  3332. '-print-objc-runtime-info'
  3333. Generate C header describing the largest structure that is passed
  3334. by value, if any.
  3335. 
  3336. File: gcc.info, Node: Diagnostic Message Formatting Options, Next: Warning Options, Prev: Objective-C and Objective-C++ Dialect Options, Up: Invoking GCC
  3337. 3.7 Options to Control Diagnostic Messages Formatting
  3338. =====================================================
  3339. Traditionally, diagnostic messages have been formatted irrespective of
  3340. the output device's aspect (e.g. its width, ...). You can use the
  3341. options described below to control the formatting algorithm for
  3342. diagnostic messages, e.g. how many characters per line, how often source
  3343. location information should be reported. Note that some language front
  3344. ends may not honor these options.
  3345. '-fmessage-length=N'
  3346. Try to format error messages so that they fit on lines of about N
  3347. characters. If N is zero, then no line-wrapping is done; each
  3348. error message appears on a single line. This is the default for
  3349. all front ends.
  3350. Note - this option also affects the display of the '#error' and
  3351. '#warning' pre-processor directives, and the 'deprecated'
  3352. function/type/variable attribute. It does not however affect the
  3353. 'pragma GCC warning' and 'pragma GCC error' pragmas.
  3354. '-fdiagnostics-show-location=once'
  3355. Only meaningful in line-wrapping mode. Instructs the diagnostic
  3356. messages reporter to emit source location information _once_; that
  3357. is, in case the message is too long to fit on a single physical
  3358. line and has to be wrapped, the source location won't be emitted
  3359. (as prefix) again, over and over, in subsequent continuation lines.
  3360. This is the default behavior.
  3361. '-fdiagnostics-show-location=every-line'
  3362. Only meaningful in line-wrapping mode. Instructs the diagnostic
  3363. messages reporter to emit the same source location information (as
  3364. prefix) for physical lines that result from the process of breaking
  3365. a message which is too long to fit on a single line.
  3366. '-fdiagnostics-color[=WHEN]'
  3367. '-fno-diagnostics-color'
  3368. Use color in diagnostics. WHEN is 'never', 'always', or 'auto'.
  3369. The default depends on how the compiler has been configured, it can
  3370. be any of the above WHEN options or also 'never' if 'GCC_COLORS'
  3371. environment variable isn't present in the environment, and 'auto'
  3372. otherwise. 'auto' makes GCC use color only when the standard error
  3373. is a terminal, and when not executing in an emacs shell. The forms
  3374. '-fdiagnostics-color' and '-fno-diagnostics-color' are aliases for
  3375. '-fdiagnostics-color=always' and '-fdiagnostics-color=never',
  3376. respectively.
  3377. The colors are defined by the environment variable 'GCC_COLORS'.
  3378. Its value is a colon-separated list of capabilities and Select
  3379. Graphic Rendition (SGR) substrings. SGR commands are interpreted
  3380. by the terminal or terminal emulator. (See the section in the
  3381. documentation of your text terminal for permitted values and their
  3382. meanings as character attributes.) These substring values are
  3383. integers in decimal representation and can be concatenated with
  3384. semicolons. Common values to concatenate include '1' for bold, '4'
  3385. for underline, '5' for blink, '7' for inverse, '39' for default
  3386. foreground color, '30' to '37' for foreground colors, '90' to '97'
  3387. for 16-color mode foreground colors, '38;5;0' to '38;5;255' for
  3388. 88-color and 256-color modes foreground colors, '49' for default
  3389. background color, '40' to '47' for background colors, '100' to
  3390. '107' for 16-color mode background colors, and '48;5;0' to
  3391. '48;5;255' for 88-color and 256-color modes background colors.
  3392. The default 'GCC_COLORS' is
  3393. error=01;31:warning=01;35:note=01;36:range1=32:range2=34:locus=01:\
  3394. quote=01:path=01;36:fixit-insert=32:fixit-delete=31:\
  3395. diff-filename=01:diff-hunk=32:diff-delete=31:diff-insert=32:\
  3396. type-diff=01;32
  3397. where '01;31' is bold red, '01;35' is bold magenta, '01;36' is bold
  3398. cyan, '32' is green, '34' is blue, '01' is bold, and '31' is red.
  3399. Setting 'GCC_COLORS' to the empty string disables colors.
  3400. Supported capabilities are as follows.
  3401. 'error='
  3402. SGR substring for error: markers.
  3403. 'warning='
  3404. SGR substring for warning: markers.
  3405. 'note='
  3406. SGR substring for note: markers.
  3407. 'path='
  3408. SGR substring for colorizing paths of control-flow events as
  3409. printed via '-fdiagnostics-path-format=', such as the
  3410. identifiers of individual events and lines indicating
  3411. interprocedural calls and returns.
  3412. 'range1='
  3413. SGR substring for first additional range.
  3414. 'range2='
  3415. SGR substring for second additional range.
  3416. 'locus='
  3417. SGR substring for location information, 'file:line' or
  3418. 'file:line:column' etc.
  3419. 'quote='
  3420. SGR substring for information printed within quotes.
  3421. 'fixit-insert='
  3422. SGR substring for fix-it hints suggesting text to be inserted
  3423. or replaced.
  3424. 'fixit-delete='
  3425. SGR substring for fix-it hints suggesting text to be deleted.
  3426. 'diff-filename='
  3427. SGR substring for filename headers within generated patches.
  3428. 'diff-hunk='
  3429. SGR substring for the starts of hunks within generated
  3430. patches.
  3431. 'diff-delete='
  3432. SGR substring for deleted lines within generated patches.
  3433. 'diff-insert='
  3434. SGR substring for inserted lines within generated patches.
  3435. 'type-diff='
  3436. SGR substring for highlighting mismatching types within
  3437. template arguments in the C++ frontend.
  3438. '-fdiagnostics-urls[=WHEN]'
  3439. Use escape sequences to embed URLs in diagnostics. For example,
  3440. when '-fdiagnostics-show-option' emits text showing the
  3441. command-line option controlling a diagnostic, embed a URL for
  3442. documentation of that option.
  3443. WHEN is 'never', 'always', or 'auto'. 'auto' makes GCC use URL
  3444. escape sequences only when the standard error is a terminal, and
  3445. when not executing in an emacs shell or any graphical terminal
  3446. which is known to be incompatible with this feature, see below.
  3447. The default depends on how the compiler has been configured. It
  3448. can be any of the above WHEN options.
  3449. GCC can also be configured (via the
  3450. '--with-diagnostics-urls=auto-if-env' configure-time option) so
  3451. that the default is affected by environment variables. Under such
  3452. a configuration, GCC defaults to using 'auto' if either 'GCC_URLS'
  3453. or 'TERM_URLS' environment variables are present and non-empty in
  3454. the environment of the compiler, or 'never' if neither are.
  3455. However, even with '-fdiagnostics-urls=always' the behavior is
  3456. dependent on those environment variables: If 'GCC_URLS' is set to
  3457. empty or 'no', do not embed URLs in diagnostics. If set to 'st',
  3458. URLs use ST escape sequences. If set to 'bel', the default, URLs
  3459. use BEL escape sequences. Any other non-empty value enables the
  3460. feature. If 'GCC_URLS' is not set, use 'TERM_URLS' as a fallback.
  3461. Note: ST is an ANSI escape sequence, string terminator 'ESC \', BEL
  3462. is an ASCII character, CTRL-G that usually sounds like a beep.
  3463. At this time GCC tries to detect also a few terminals that are
  3464. known to not implement the URL feature, and have bugs or at least
  3465. had bugs in some versions that are still in use, where the URL
  3466. escapes are likely to misbehave, i.e. print garbage on the screen.
  3467. That list is currently xfce4-terminal, certain known to be buggy
  3468. gnome-terminal versions, the linux console, and mingw. This check
  3469. can be skipped with the '-fdiagnostics-urls=always'.
  3470. '-fno-diagnostics-show-option'
  3471. By default, each diagnostic emitted includes text indicating the
  3472. command-line option that directly controls the diagnostic (if such
  3473. an option is known to the diagnostic machinery). Specifying the
  3474. '-fno-diagnostics-show-option' flag suppresses that behavior.
  3475. '-fno-diagnostics-show-caret'
  3476. By default, each diagnostic emitted includes the original source
  3477. line and a caret '^' indicating the column. This option suppresses
  3478. this information. The source line is truncated to N characters, if
  3479. the '-fmessage-length=n' option is given. When the output is done
  3480. to the terminal, the width is limited to the width given by the
  3481. 'COLUMNS' environment variable or, if not set, to the terminal
  3482. width.
  3483. '-fno-diagnostics-show-labels'
  3484. By default, when printing source code (via
  3485. '-fdiagnostics-show-caret'), diagnostics can label ranges of source
  3486. code with pertinent information, such as the types of expressions:
  3487. printf ("foo %s bar", long_i + long_j);
  3488. ~^ ~~~~~~~~~~~~~~~
  3489. | |
  3490. char * long int
  3491. This option suppresses the printing of these labels (in the example
  3492. above, the vertical bars and the "char *" and "long int" text).
  3493. '-fno-diagnostics-show-cwe'
  3494. Diagnostic messages can optionally have an associated CWE
  3495. (https://cwe.mitre.org/index.html) identifier. GCC itself only
  3496. provides such metadata for some of the '-fanalyzer' diagnostics.
  3497. GCC plugins may also provide diagnostics with such metadata. By
  3498. default, if this information is present, it will be printed with
  3499. the diagnostic. This option suppresses the printing of this
  3500. metadata.
  3501. '-fno-diagnostics-show-line-numbers'
  3502. By default, when printing source code (via
  3503. '-fdiagnostics-show-caret'), a left margin is printed, showing line
  3504. numbers. This option suppresses this left margin.
  3505. '-fdiagnostics-minimum-margin-width=WIDTH'
  3506. This option controls the minimum width of the left margin printed
  3507. by '-fdiagnostics-show-line-numbers'. It defaults to 6.
  3508. '-fdiagnostics-parseable-fixits'
  3509. Emit fix-it hints in a machine-parseable format, suitable for
  3510. consumption by IDEs. For each fix-it, a line will be printed after
  3511. the relevant diagnostic, starting with the string "fix-it:". For
  3512. example:
  3513. fix-it:"test.c":{45:3-45:21}:"gtk_widget_show_all"
  3514. The location is expressed as a half-open range, expressed as a
  3515. count of bytes, starting at byte 1 for the initial column. In the
  3516. above example, bytes 3 through 20 of line 45 of "test.c" are to be
  3517. replaced with the given string:
  3518. 00000000011111111112222222222
  3519. 12345678901234567890123456789
  3520. gtk_widget_showall (dlg);
  3521. ^^^^^^^^^^^^^^^^^^
  3522. gtk_widget_show_all
  3523. The filename and replacement string escape backslash as "\\", tab
  3524. as "\t", newline as "\n", double quotes as "\"", non-printable
  3525. characters as octal (e.g. vertical tab as "\013").
  3526. An empty replacement string indicates that the given range is to be
  3527. removed. An empty range (e.g. "45:3-45:3") indicates that the
  3528. string is to be inserted at the given position.
  3529. '-fdiagnostics-generate-patch'
  3530. Print fix-it hints to stderr in unified diff format, after any
  3531. diagnostics are printed. For example:
  3532. --- test.c
  3533. +++ test.c
  3534. @ -42,5 +42,5 @
  3535. void show_cb(GtkDialog *dlg)
  3536. {
  3537. - gtk_widget_showall(dlg);
  3538. + gtk_widget_show_all(dlg);
  3539. }
  3540. The diff may or may not be colorized, following the same rules as
  3541. for diagnostics (see '-fdiagnostics-color').
  3542. '-fdiagnostics-show-template-tree'
  3543. In the C++ frontend, when printing diagnostics showing mismatching
  3544. template types, such as:
  3545. could not convert 'std::map<int, std::vector<double> >()'
  3546. from 'map<[...],vector<double>>' to 'map<[...],vector<float>>
  3547. the '-fdiagnostics-show-template-tree' flag enables printing a
  3548. tree-like structure showing the common and differing parts of the
  3549. types, such as:
  3550. map<
  3551. [...],
  3552. vector<
  3553. [double != float]>>
  3554. The parts that differ are highlighted with color ("double" and
  3555. "float" in this case).
  3556. '-fno-elide-type'
  3557. By default when the C++ frontend prints diagnostics showing
  3558. mismatching template types, common parts of the types are printed
  3559. as "[...]" to simplify the error message. For example:
  3560. could not convert 'std::map<int, std::vector<double> >()'
  3561. from 'map<[...],vector<double>>' to 'map<[...],vector<float>>
  3562. Specifying the '-fno-elide-type' flag suppresses that behavior.
  3563. This flag also affects the output of the
  3564. '-fdiagnostics-show-template-tree' flag.
  3565. '-fdiagnostics-path-format=KIND'
  3566. Specify how to print paths of control-flow events for diagnostics
  3567. that have such a path associated with them.
  3568. KIND is 'none', 'separate-events', or 'inline-events', the default.
  3569. 'none' means to not print diagnostic paths.
  3570. 'separate-events' means to print a separate "note" diagnostic for
  3571. each event within the diagnostic. For example:
  3572. test.c:29:5: error: passing NULL as argument 1 to 'PyList_Append' which requires a non-NULL parameter
  3573. test.c:25:10: note: (1) when 'PyList_New' fails, returning NULL
  3574. test.c:27:3: note: (2) when 'i < count'
  3575. test.c:29:5: note: (3) when calling 'PyList_Append', passing NULL from (1) as argument 1
  3576. 'inline-events' means to print the events "inline" within the
  3577. source code. This view attempts to consolidate the events into
  3578. runs of sufficiently-close events, printing them as labelled ranges
  3579. within the source.
  3580. For example, the same events as above might be printed as:
  3581. 'test': events 1-3
  3582. |
  3583. | 25 | list = PyList_New(0);
  3584. | | ^~~~~~~~~~~~~
  3585. | | |
  3586. | | (1) when 'PyList_New' fails, returning NULL
  3587. | 26 |
  3588. | 27 | for (i = 0; i < count; i++) {
  3589. | | ~~~
  3590. | | |
  3591. | | (2) when 'i < count'
  3592. | 28 | item = PyLong_FromLong(random());
  3593. | 29 | PyList_Append(list, item);
  3594. | | ~~~~~~~~~~~~~~~~~~~~~~~~~
  3595. | | |
  3596. | | (3) when calling 'PyList_Append', passing NULL from (1) as argument 1
  3597. |
  3598. Interprocedural control flow is shown by grouping the events by
  3599. stack frame, and using indentation to show how stack frames are
  3600. nested, pushed, and popped.
  3601. For example:
  3602. 'test': events 1-2
  3603. |
  3604. | 133 | {
  3605. | | ^
  3606. | | |
  3607. | | (1) entering 'test'
  3608. | 134 | boxed_int *obj = make_boxed_int (i);
  3609. | | ~~~~~~~~~~~~~~~~~~
  3610. | | |
  3611. | | (2) calling 'make_boxed_int'
  3612. |
  3613. +--> 'make_boxed_int': events 3-4
  3614. |
  3615. | 120 | {
  3616. | | ^
  3617. | | |
  3618. | | (3) entering 'make_boxed_int'
  3619. | 121 | boxed_int *result = (boxed_int *)wrapped_malloc (sizeof (boxed_int));
  3620. | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3621. | | |
  3622. | | (4) calling 'wrapped_malloc'
  3623. |
  3624. +--> 'wrapped_malloc': events 5-6
  3625. |
  3626. | 7 | {
  3627. | | ^
  3628. | | |
  3629. | | (5) entering 'wrapped_malloc'
  3630. | 8 | return malloc (size);
  3631. | | ~~~~~~~~~~~~~
  3632. | | |
  3633. | | (6) calling 'malloc'
  3634. |
  3635. <-------------+
  3636. |
  3637. 'test': event 7
  3638. |
  3639. | 138 | free_boxed_int (obj);
  3640. | | ^~~~~~~~~~~~~~~~~~~~
  3641. | | |
  3642. | | (7) calling 'free_boxed_int'
  3643. |
  3644. (etc)
  3645. '-fdiagnostics-show-path-depths'
  3646. This option provides additional information when printing
  3647. control-flow paths associated with a diagnostic.
  3648. If this is option is provided then the stack depth will be printed
  3649. for each run of events within
  3650. '-fdiagnostics-path-format=separate-events'.
  3651. This is intended for use by GCC developers and plugin developers
  3652. when debugging diagnostics that report interprocedural control
  3653. flow.
  3654. '-fno-show-column'
  3655. Do not print column numbers in diagnostics. This may be necessary
  3656. if diagnostics are being scanned by a program that does not
  3657. understand the column numbers, such as 'dejagnu'.
  3658. '-fdiagnostics-format=FORMAT'
  3659. Select a different format for printing diagnostics. FORMAT is
  3660. 'text' or 'json'. The default is 'text'.
  3661. The 'json' format consists of a top-level JSON array containing
  3662. JSON objects representing the diagnostics.
  3663. The JSON is emitted as one line, without formatting; the examples
  3664. below have been formatted for clarity.
  3665. Diagnostics can have child diagnostics. For example, this error
  3666. and note:
  3667. misleading-indentation.c:15:3: warning: this 'if' clause does not
  3668. guard... [-Wmisleading-indentation]
  3669. 15 | if (flag)
  3670. | ^~
  3671. misleading-indentation.c:17:5: note: ...this statement, but the latter
  3672. is misleadingly indented as if it were guarded by the 'if'
  3673. 17 | y = 2;
  3674. | ^
  3675. might be printed in JSON form (after formatting) like this:
  3676. [
  3677. {
  3678. "kind": "warning",
  3679. "locations": [
  3680. {
  3681. "caret": {
  3682. "column": 3,
  3683. "file": "misleading-indentation.c",
  3684. "line": 15
  3685. },
  3686. "finish": {
  3687. "column": 4,
  3688. "file": "misleading-indentation.c",
  3689. "line": 15
  3690. }
  3691. }
  3692. ],
  3693. "message": "this \u2018if\u2019 clause does not guard...",
  3694. "option": "-Wmisleading-indentation",
  3695. "option_url": "https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wmisleading-indentation",
  3696. "children": [
  3697. {
  3698. "kind": "note",
  3699. "locations": [
  3700. {
  3701. "caret": {
  3702. "column": 5,
  3703. "file": "misleading-indentation.c",
  3704. "line": 17
  3705. }
  3706. }
  3707. ],
  3708. "message": "...this statement, but the latter is ..."
  3709. }
  3710. ]
  3711. },
  3712. ...
  3713. ]
  3714. where the 'note' is a child of the 'warning'.
  3715. A diagnostic has a 'kind'. If this is 'warning', then there is an
  3716. 'option' key describing the command-line option controlling the
  3717. warning.
  3718. A diagnostic can contain zero or more locations. Each location has
  3719. up to three positions within it: a 'caret' position and optional
  3720. 'start' and 'finish' positions. A location can also have an
  3721. optional 'label' string. For example, this error:
  3722. bad-binary-ops.c:64:23: error: invalid operands to binary + (have 'S' {aka
  3723. 'struct s'} and 'T' {aka 'struct t'})
  3724. 64 | return callee_4a () + callee_4b ();
  3725. | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~
  3726. | | |
  3727. | | T {aka struct t}
  3728. | S {aka struct s}
  3729. has three locations. Its primary location is at the "+" token at
  3730. column 23. It has two secondary locations, describing the left and
  3731. right-hand sides of the expression, which have labels. It might be
  3732. printed in JSON form as:
  3733. {
  3734. "children": [],
  3735. "kind": "error",
  3736. "locations": [
  3737. {
  3738. "caret": {
  3739. "column": 23, "file": "bad-binary-ops.c", "line": 64
  3740. }
  3741. },
  3742. {
  3743. "caret": {
  3744. "column": 10, "file": "bad-binary-ops.c", "line": 64
  3745. },
  3746. "finish": {
  3747. "column": 21, "file": "bad-binary-ops.c", "line": 64
  3748. },
  3749. "label": "S {aka struct s}"
  3750. },
  3751. {
  3752. "caret": {
  3753. "column": 25, "file": "bad-binary-ops.c", "line": 64
  3754. },
  3755. "finish": {
  3756. "column": 36, "file": "bad-binary-ops.c", "line": 64
  3757. },
  3758. "label": "T {aka struct t}"
  3759. }
  3760. ],
  3761. "message": "invalid operands to binary + ..."
  3762. }
  3763. If a diagnostic contains fix-it hints, it has a 'fixits' array,
  3764. consisting of half-open intervals, similar to the output of
  3765. '-fdiagnostics-parseable-fixits'. For example, this diagnostic
  3766. with a replacement fix-it hint:
  3767. demo.c:8:15: error: 'struct s' has no member named 'colour'; did you
  3768. mean 'color'?
  3769. 8 | return ptr->colour;
  3770. | ^~~~~~
  3771. | color
  3772. might be printed in JSON form as:
  3773. {
  3774. "children": [],
  3775. "fixits": [
  3776. {
  3777. "next": {
  3778. "column": 21,
  3779. "file": "demo.c",
  3780. "line": 8
  3781. },
  3782. "start": {
  3783. "column": 15,
  3784. "file": "demo.c",
  3785. "line": 8
  3786. },
  3787. "string": "color"
  3788. }
  3789. ],
  3790. "kind": "error",
  3791. "locations": [
  3792. {
  3793. "caret": {
  3794. "column": 15,
  3795. "file": "demo.c",
  3796. "line": 8
  3797. },
  3798. "finish": {
  3799. "column": 20,
  3800. "file": "demo.c",
  3801. "line": 8
  3802. }
  3803. }
  3804. ],
  3805. "message": "\u2018struct s\u2019 has no member named ..."
  3806. }
  3807. where the fix-it hint suggests replacing the text from 'start' up
  3808. to but not including 'next' with 'string''s value. Deletions are
  3809. expressed via an empty value for 'string', insertions by having
  3810. 'start' equal 'next'.
  3811. If the diagnostic has a path of control-flow events associated with
  3812. it, it has a 'path' array of objects representing the events. Each
  3813. event object has a 'description' string, a 'location' object, along
  3814. with a 'function' string and a 'depth' number for representing
  3815. interprocedural paths. The 'function' represents the current
  3816. function at that event, and the 'depth' represents the stack depth
  3817. relative to some baseline: the higher, the more frames are within
  3818. the stack.
  3819. For example, the intraprocedural example shown for
  3820. '-fdiagnostics-path-format=' might have this JSON for its path:
  3821. "path": [
  3822. {
  3823. "depth": 0,
  3824. "description": "when 'PyList_New' fails, returning NULL",
  3825. "function": "test",
  3826. "location": {
  3827. "column": 10,
  3828. "file": "test.c",
  3829. "line": 25
  3830. }
  3831. },
  3832. {
  3833. "depth": 0,
  3834. "description": "when 'i < count'",
  3835. "function": "test",
  3836. "location": {
  3837. "column": 3,
  3838. "file": "test.c",
  3839. "line": 27
  3840. }
  3841. },
  3842. {
  3843. "depth": 0,
  3844. "description": "when calling 'PyList_Append', passing NULL from (1) as argument 1",
  3845. "function": "test",
  3846. "location": {
  3847. "column": 5,
  3848. "file": "test.c",
  3849. "line": 29
  3850. }
  3851. }
  3852. ]
  3853. 
  3854. File: gcc.info, Node: Warning Options, Next: Static Analyzer Options, Prev: Diagnostic Message Formatting Options, Up: Invoking GCC
  3855. 3.8 Options to Request or Suppress Warnings
  3856. ===========================================
  3857. Warnings are diagnostic messages that report constructions that are not
  3858. inherently erroneous but that are risky or suggest there may have been
  3859. an error.
  3860. The following language-independent options do not enable specific
  3861. warnings but control the kinds of diagnostics produced by GCC.
  3862. '-fsyntax-only'
  3863. Check the code for syntax errors, but don't do anything beyond
  3864. that.
  3865. '-fmax-errors=N'
  3866. Limits the maximum number of error messages to N, at which point
  3867. GCC bails out rather than attempting to continue processing the
  3868. source code. If N is 0 (the default), there is no limit on the
  3869. number of error messages produced. If '-Wfatal-errors' is also
  3870. specified, then '-Wfatal-errors' takes precedence over this option.
  3871. '-w'
  3872. Inhibit all warning messages.
  3873. '-Werror'
  3874. Make all warnings into errors.
  3875. '-Werror='
  3876. Make the specified warning into an error. The specifier for a
  3877. warning is appended; for example '-Werror=switch' turns the
  3878. warnings controlled by '-Wswitch' into errors. This switch takes a
  3879. negative form, to be used to negate '-Werror' for specific
  3880. warnings; for example '-Wno-error=switch' makes '-Wswitch' warnings
  3881. not be errors, even when '-Werror' is in effect.
  3882. The warning message for each controllable warning includes the
  3883. option that controls the warning. That option can then be used
  3884. with '-Werror=' and '-Wno-error=' as described above. (Printing of
  3885. the option in the warning message can be disabled using the
  3886. '-fno-diagnostics-show-option' flag.)
  3887. Note that specifying '-Werror='FOO automatically implies '-W'FOO.
  3888. However, '-Wno-error='FOO does not imply anything.
  3889. '-Wfatal-errors'
  3890. This option causes the compiler to abort compilation on the first
  3891. error occurred rather than trying to keep going and printing
  3892. further error messages.
  3893. You can request many specific warnings with options beginning with
  3894. '-W', for example '-Wimplicit' to request warnings on implicit
  3895. declarations. Each of these specific warning options also has a
  3896. negative form beginning '-Wno-' to turn off warnings; for example,
  3897. '-Wno-implicit'. This manual lists only one of the two forms, whichever
  3898. is not the default. For further language-specific options also refer to
  3899. *note C++ Dialect Options:: and *note Objective-C and Objective-C++
  3900. Dialect Options::. Additional warnings can be produced by enabling the
  3901. static analyzer; *Note Static Analyzer Options::.
  3902. Some options, such as '-Wall' and '-Wextra', turn on other options,
  3903. such as '-Wunused', which may turn on further options, such as
  3904. '-Wunused-value'. The combined effect of positive and negative forms is
  3905. that more specific options have priority over less specific ones,
  3906. independently of their position in the command-line. For options of the
  3907. same specificity, the last one takes effect. Options enabled or
  3908. disabled via pragmas (*note Diagnostic Pragmas::) take effect as if they
  3909. appeared at the end of the command-line.
  3910. When an unrecognized warning option is requested (e.g.,
  3911. '-Wunknown-warning'), GCC emits a diagnostic stating that the option is
  3912. not recognized. However, if the '-Wno-' form is used, the behavior is
  3913. slightly different: no diagnostic is produced for '-Wno-unknown-warning'
  3914. unless other diagnostics are being produced. This allows the use of new
  3915. '-Wno-' options with old compilers, but if something goes wrong, the
  3916. compiler warns that an unrecognized option is present.
  3917. The effectiveness of some warnings depends on optimizations also being
  3918. enabled. For example '-Wsuggest-final-types' is more effective with
  3919. link-time optimization and '-Wmaybe-uninitialized' does not warn at all
  3920. unless optimization is enabled.
  3921. '-Wpedantic'
  3922. '-pedantic'
  3923. Issue all the warnings demanded by strict ISO C and ISO C++; reject
  3924. all programs that use forbidden extensions, and some other programs
  3925. that do not follow ISO C and ISO C++. For ISO C, follows the
  3926. version of the ISO C standard specified by any '-std' option used.
  3927. Valid ISO C and ISO C++ programs should compile properly with or
  3928. without this option (though a rare few require '-ansi' or a '-std'
  3929. option specifying the required version of ISO C). However, without
  3930. this option, certain GNU extensions and traditional C and C++
  3931. features are supported as well. With this option, they are
  3932. rejected.
  3933. '-Wpedantic' does not cause warning messages for use of the
  3934. alternate keywords whose names begin and end with '__'. This
  3935. alternate format can also be used to disable warnings for non-ISO
  3936. '__intN' types, i.e. '__intN__'. Pedantic warnings are also
  3937. disabled in the expression that follows '__extension__'. However,
  3938. only system header files should use these escape routes;
  3939. application programs should avoid them. *Note Alternate
  3940. Keywords::.
  3941. Some users try to use '-Wpedantic' to check programs for strict ISO
  3942. C conformance. They soon find that it does not do quite what they
  3943. want: it finds some non-ISO practices, but not all--only those for
  3944. which ISO C _requires_ a diagnostic, and some others for which
  3945. diagnostics have been added.
  3946. A feature to report any failure to conform to ISO C might be useful
  3947. in some instances, but would require considerable additional work
  3948. and would be quite different from '-Wpedantic'. We don't have
  3949. plans to support such a feature in the near future.
  3950. Where the standard specified with '-std' represents a GNU extended
  3951. dialect of C, such as 'gnu90' or 'gnu99', there is a corresponding
  3952. "base standard", the version of ISO C on which the GNU extended
  3953. dialect is based. Warnings from '-Wpedantic' are given where they
  3954. are required by the base standard. (It does not make sense for
  3955. such warnings to be given only for features not in the specified
  3956. GNU C dialect, since by definition the GNU dialects of C include
  3957. all features the compiler supports with the given option, and there
  3958. would be nothing to warn about.)
  3959. '-pedantic-errors'
  3960. Give an error whenever the "base standard" (see '-Wpedantic')
  3961. requires a diagnostic, in some cases where there is undefined
  3962. behavior at compile-time and in some other cases that do not
  3963. prevent compilation of programs that are valid according to the
  3964. standard. This is not equivalent to '-Werror=pedantic', since
  3965. there are errors enabled by this option and not enabled by the
  3966. latter and vice versa.
  3967. '-Wall'
  3968. This enables all the warnings about constructions that some users
  3969. consider questionable, and that are easy to avoid (or modify to
  3970. prevent the warning), even in conjunction with macros. This also
  3971. enables some language-specific warnings described in *note C++
  3972. Dialect Options:: and *note Objective-C and Objective-C++ Dialect
  3973. Options::.
  3974. '-Wall' turns on the following warning flags:
  3975. -Waddress
  3976. -Warray-bounds=1 (only with -O2)
  3977. -Wbool-compare
  3978. -Wbool-operation
  3979. -Wc++11-compat -Wc++14-compat
  3980. -Wcatch-value (C++ and Objective-C++ only)
  3981. -Wchar-subscripts
  3982. -Wcomment
  3983. -Wduplicate-decl-specifier (C and Objective-C only)
  3984. -Wenum-compare (in C/ObjC; this is on by default in C++)
  3985. -Wenum-conversion in C/ObjC;
  3986. -Wformat
  3987. -Wformat-overflow
  3988. -Wformat-truncation
  3989. -Wint-in-bool-context
  3990. -Wimplicit (C and Objective-C only)
  3991. -Wimplicit-int (C and Objective-C only)
  3992. -Wimplicit-function-declaration (C and Objective-C only)
  3993. -Winit-self (only for C++)
  3994. -Wlogical-not-parentheses
  3995. -Wmain (only for C/ObjC and unless -ffreestanding)
  3996. -Wmaybe-uninitialized
  3997. -Wmemset-elt-size
  3998. -Wmemset-transposed-args
  3999. -Wmisleading-indentation (only for C/C++)
  4000. -Wmissing-attributes
  4001. -Wmissing-braces (only for C/ObjC)
  4002. -Wmultistatement-macros
  4003. -Wnarrowing (only for C++)
  4004. -Wnonnull
  4005. -Wnonnull-compare
  4006. -Wopenmp-simd
  4007. -Wparentheses
  4008. -Wpessimizing-move (only for C++)
  4009. -Wpointer-sign
  4010. -Wreorder
  4011. -Wrestrict
  4012. -Wreturn-type
  4013. -Wsequence-point
  4014. -Wsign-compare (only in C++)
  4015. -Wsizeof-pointer-div
  4016. -Wsizeof-pointer-memaccess
  4017. -Wstrict-aliasing
  4018. -Wstrict-overflow=1
  4019. -Wswitch
  4020. -Wtautological-compare
  4021. -Wtrigraphs
  4022. -Wuninitialized
  4023. -Wunknown-pragmas
  4024. -Wunused-function
  4025. -Wunused-label
  4026. -Wunused-value
  4027. -Wunused-variable
  4028. -Wvolatile-register-var
  4029. -Wzero-length-bounds
  4030. Note that some warning flags are not implied by '-Wall'. Some of
  4031. them warn about constructions that users generally do not consider
  4032. questionable, but which occasionally you might wish to check for;
  4033. others warn about constructions that are necessary or hard to avoid
  4034. in some cases, and there is no simple way to modify the code to
  4035. suppress the warning. Some of them are enabled by '-Wextra' but
  4036. many of them must be enabled individually.
  4037. '-Wextra'
  4038. This enables some extra warning flags that are not enabled by
  4039. '-Wall'. (This option used to be called '-W'. The older name is
  4040. still supported, but the newer name is more descriptive.)
  4041. -Wclobbered
  4042. -Wcast-function-type
  4043. -Wdeprecated-copy (C++ only)
  4044. -Wempty-body
  4045. -Wignored-qualifiers
  4046. -Wimplicit-fallthrough=3
  4047. -Wmissing-field-initializers
  4048. -Wmissing-parameter-type (C only)
  4049. -Wold-style-declaration (C only)
  4050. -Woverride-init
  4051. -Wsign-compare (C only)
  4052. -Wstring-compare
  4053. -Wredundant-move (only for C++)
  4054. -Wtype-limits
  4055. -Wuninitialized
  4056. -Wshift-negative-value (in C++03 and in C99 and newer)
  4057. -Wunused-parameter (only with -Wunused or -Wall)
  4058. -Wunused-but-set-parameter (only with -Wunused or -Wall)
  4059. The option '-Wextra' also prints warning messages for the following
  4060. cases:
  4061. * A pointer is compared against integer zero with '<', '<=',
  4062. '>', or '>='.
  4063. * (C++ only) An enumerator and a non-enumerator both appear in a
  4064. conditional expression.
  4065. * (C++ only) Ambiguous virtual bases.
  4066. * (C++ only) Subscripting an array that has been declared
  4067. 'register'.
  4068. * (C++ only) Taking the address of a variable that has been
  4069. declared 'register'.
  4070. * (C++ only) A base class is not initialized in the copy
  4071. constructor of a derived class.
  4072. '-Wabi (C, Objective-C, C++ and Objective-C++ only)'
  4073. Warn about code affected by ABI changes. This includes code that
  4074. may not be compatible with the vendor-neutral C++ ABI as well as
  4075. the psABI for the particular target.
  4076. Since G++ now defaults to updating the ABI with each major release,
  4077. normally '-Wabi' warns only about C++ ABI compatibility problems if
  4078. there is a check added later in a release series for an ABI issue
  4079. discovered since the initial release. '-Wabi' warns about more
  4080. things if an older ABI version is selected (with
  4081. '-fabi-version=N').
  4082. '-Wabi' can also be used with an explicit version number to warn
  4083. about C++ ABI compatibility with a particular '-fabi-version'
  4084. level, e.g. '-Wabi=2' to warn about changes relative to
  4085. '-fabi-version=2'.
  4086. If an explicit version number is provided and
  4087. '-fabi-compat-version' is not specified, the version number from
  4088. this option is used for compatibility aliases. If no explicit
  4089. version number is provided with this option, but
  4090. '-fabi-compat-version' is specified, that version number is used
  4091. for C++ ABI warnings.
  4092. Although an effort has been made to warn about all such cases,
  4093. there are probably some cases that are not warned about, even
  4094. though G++ is generating incompatible code. There may also be
  4095. cases where warnings are emitted even though the code that is
  4096. generated is compatible.
  4097. You should rewrite your code to avoid these warnings if you are
  4098. concerned about the fact that code generated by G++ may not be
  4099. binary compatible with code generated by other compilers.
  4100. Known incompatibilities in '-fabi-version=2' (which was the default
  4101. from GCC 3.4 to 4.9) include:
  4102. * A template with a non-type template parameter of reference
  4103. type was mangled incorrectly:
  4104. extern int N;
  4105. template <int &> struct S {};
  4106. void n (S<N>) {2}
  4107. This was fixed in '-fabi-version=3'.
  4108. * SIMD vector types declared using '__attribute ((vector_size))'
  4109. were mangled in a non-standard way that does not allow for
  4110. overloading of functions taking vectors of different sizes.
  4111. The mangling was changed in '-fabi-version=4'.
  4112. * '__attribute ((const))' and 'noreturn' were mangled as type
  4113. qualifiers, and 'decltype' of a plain declaration was folded
  4114. away.
  4115. These mangling issues were fixed in '-fabi-version=5'.
  4116. * Scoped enumerators passed as arguments to a variadic function
  4117. are promoted like unscoped enumerators, causing 'va_arg' to
  4118. complain. On most targets this does not actually affect the
  4119. parameter passing ABI, as there is no way to pass an argument
  4120. smaller than 'int'.
  4121. Also, the ABI changed the mangling of template argument packs,
  4122. 'const_cast', 'static_cast', prefix increment/decrement, and a
  4123. class scope function used as a template argument.
  4124. These issues were corrected in '-fabi-version=6'.
  4125. * Lambdas in default argument scope were mangled incorrectly,
  4126. and the ABI changed the mangling of 'nullptr_t'.
  4127. These issues were corrected in '-fabi-version=7'.
  4128. * When mangling a function type with function-cv-qualifiers, the
  4129. un-qualified function type was incorrectly treated as a
  4130. substitution candidate.
  4131. This was fixed in '-fabi-version=8', the default for GCC 5.1.
  4132. * 'decltype(nullptr)' incorrectly had an alignment of 1, leading
  4133. to unaligned accesses. Note that this did not affect the ABI
  4134. of a function with a 'nullptr_t' parameter, as parameters have
  4135. a minimum alignment.
  4136. This was fixed in '-fabi-version=9', the default for GCC 5.2.
  4137. * Target-specific attributes that affect the identity of a type,
  4138. such as ia32 calling conventions on a function type (stdcall,
  4139. regparm, etc.), did not affect the mangled name, leading to
  4140. name collisions when function pointers were used as template
  4141. arguments.
  4142. This was fixed in '-fabi-version=10', the default for GCC 6.1.
  4143. This option also enables warnings about psABI-related changes. The
  4144. known psABI changes at this point include:
  4145. * For SysV/x86-64, unions with 'long double' members are passed
  4146. in memory as specified in psABI. Prior to GCC 4.4, this was
  4147. not the case. For example:
  4148. union U {
  4149. long double ld;
  4150. int i;
  4151. };
  4152. 'union U' is now always passed in memory.
  4153. '-Wchar-subscripts'
  4154. Warn if an array subscript has type 'char'. This is a common cause
  4155. of error, as programmers often forget that this type is signed on
  4156. some machines. This warning is enabled by '-Wall'.
  4157. '-Wno-coverage-mismatch'
  4158. Warn if feedback profiles do not match when using the
  4159. '-fprofile-use' option. If a source file is changed between
  4160. compiling with '-fprofile-generate' and with '-fprofile-use', the
  4161. files with the profile feedback can fail to match the source file
  4162. and GCC cannot use the profile feedback information. By default,
  4163. this warning is enabled and is treated as an error.
  4164. '-Wno-coverage-mismatch' can be used to disable the warning or
  4165. '-Wno-error=coverage-mismatch' can be used to disable the error.
  4166. Disabling the error for this warning can result in poorly optimized
  4167. code and is useful only in the case of very minor changes such as
  4168. bug fixes to an existing code-base. Completely disabling the
  4169. warning is not recommended.
  4170. '-Wno-cpp'
  4171. (C, Objective-C, C++, Objective-C++ and Fortran only) Suppress
  4172. warning messages emitted by '#warning' directives.
  4173. '-Wdouble-promotion (C, C++, Objective-C and Objective-C++ only)'
  4174. Give a warning when a value of type 'float' is implicitly promoted
  4175. to 'double'. CPUs with a 32-bit "single-precision" floating-point
  4176. unit implement 'float' in hardware, but emulate 'double' in
  4177. software. On such a machine, doing computations using 'double'
  4178. values is much more expensive because of the overhead required for
  4179. software emulation.
  4180. It is easy to accidentally do computations with 'double' because
  4181. floating-point literals are implicitly of type 'double'. For
  4182. example, in:
  4183. float area(float radius)
  4184. {
  4185. return 3.14159 * radius * radius;
  4186. }
  4187. the compiler performs the entire computation with 'double' because
  4188. the floating-point literal is a 'double'.
  4189. '-Wduplicate-decl-specifier (C and Objective-C only)'
  4190. Warn if a declaration has duplicate 'const', 'volatile', 'restrict'
  4191. or '_Atomic' specifier. This warning is enabled by '-Wall'.
  4192. '-Wformat'
  4193. '-Wformat=N'
  4194. Check calls to 'printf' and 'scanf', etc., to make sure that the
  4195. arguments supplied have types appropriate to the format string
  4196. specified, and that the conversions specified in the format string
  4197. make sense. This includes standard functions, and others specified
  4198. by format attributes (*note Function Attributes::), in the
  4199. 'printf', 'scanf', 'strftime' and 'strfmon' (an X/Open extension,
  4200. not in the C standard) families (or other target-specific
  4201. families). Which functions are checked without format attributes
  4202. having been specified depends on the standard version selected, and
  4203. such checks of functions without the attribute specified are
  4204. disabled by '-ffreestanding' or '-fno-builtin'.
  4205. The formats are checked against the format features supported by
  4206. GNU libc version 2.2. These include all ISO C90 and C99 features,
  4207. as well as features from the Single Unix Specification and some BSD
  4208. and GNU extensions. Other library implementations may not support
  4209. all these features; GCC does not support warning about features
  4210. that go beyond a particular library's limitations. However, if
  4211. '-Wpedantic' is used with '-Wformat', warnings are given about
  4212. format features not in the selected standard version (but not for
  4213. 'strfmon' formats, since those are not in any version of the C
  4214. standard). *Note Options Controlling C Dialect: C Dialect Options.
  4215. '-Wformat=1'
  4216. '-Wformat'
  4217. Option '-Wformat' is equivalent to '-Wformat=1', and
  4218. '-Wno-format' is equivalent to '-Wformat=0'. Since '-Wformat'
  4219. also checks for null format arguments for several functions,
  4220. '-Wformat' also implies '-Wnonnull'. Some aspects of this
  4221. level of format checking can be disabled by the options:
  4222. '-Wno-format-contains-nul', '-Wno-format-extra-args', and
  4223. '-Wno-format-zero-length'. '-Wformat' is enabled by '-Wall'.
  4224. '-Wformat=2'
  4225. Enable '-Wformat' plus additional format checks. Currently
  4226. equivalent to '-Wformat -Wformat-nonliteral -Wformat-security
  4227. -Wformat-y2k'.
  4228. '-Wno-format-contains-nul'
  4229. If '-Wformat' is specified, do not warn about format strings that
  4230. contain NUL bytes.
  4231. '-Wno-format-extra-args'
  4232. If '-Wformat' is specified, do not warn about excess arguments to a
  4233. 'printf' or 'scanf' format function. The C standard specifies that
  4234. such arguments are ignored.
  4235. Where the unused arguments lie between used arguments that are
  4236. specified with '$' operand number specifications, normally warnings
  4237. are still given, since the implementation could not know what type
  4238. to pass to 'va_arg' to skip the unused arguments. However, in the
  4239. case of 'scanf' formats, this option suppresses the warning if the
  4240. unused arguments are all pointers, since the Single Unix
  4241. Specification says that such unused arguments are allowed.
  4242. '-Wformat-overflow'
  4243. '-Wformat-overflow=LEVEL'
  4244. Warn about calls to formatted input/output functions such as
  4245. 'sprintf' and 'vsprintf' that might overflow the destination
  4246. buffer. When the exact number of bytes written by a format
  4247. directive cannot be determined at compile-time it is estimated
  4248. based on heuristics that depend on the LEVEL argument and on
  4249. optimization. While enabling optimization will in most cases
  4250. improve the accuracy of the warning, it may also result in false
  4251. positives.
  4252. '-Wformat-overflow'
  4253. '-Wformat-overflow=1'
  4254. Level 1 of '-Wformat-overflow' enabled by '-Wformat' employs a
  4255. conservative approach that warns only about calls that most
  4256. likely overflow the buffer. At this level, numeric arguments
  4257. to format directives with unknown values are assumed to have
  4258. the value of one, and strings of unknown length to be empty.
  4259. Numeric arguments that are known to be bounded to a subrange
  4260. of their type, or string arguments whose output is bounded
  4261. either by their directive's precision or by a finite set of
  4262. string literals, are assumed to take on the value within the
  4263. range that results in the most bytes on output. For example,
  4264. the call to 'sprintf' below is diagnosed because even with
  4265. both A and B equal to zero, the terminating NUL character
  4266. (''\0'') appended by the function to the destination buffer
  4267. will be written past its end. Increasing the size of the
  4268. buffer by a single byte is sufficient to avoid the warning,
  4269. though it may not be sufficient to avoid the overflow.
  4270. void f (int a, int b)
  4271. {
  4272. char buf [13];
  4273. sprintf (buf, "a = %i, b = %i\n", a, b);
  4274. }
  4275. '-Wformat-overflow=2'
  4276. Level 2 warns also about calls that might overflow the
  4277. destination buffer given an argument of sufficient length or
  4278. magnitude. At level 2, unknown numeric arguments are assumed
  4279. to have the minimum representable value for signed types with
  4280. a precision greater than 1, and the maximum representable
  4281. value otherwise. Unknown string arguments whose length cannot
  4282. be assumed to be bounded either by the directive's precision,
  4283. or by a finite set of string literals they may evaluate to, or
  4284. the character array they may point to, are assumed to be 1
  4285. character long.
  4286. At level 2, the call in the example above is again diagnosed,
  4287. but this time because with A equal to a 32-bit 'INT_MIN' the
  4288. first '%i' directive will write some of its digits beyond the
  4289. end of the destination buffer. To make the call safe
  4290. regardless of the values of the two variables, the size of the
  4291. destination buffer must be increased to at least 34 bytes.
  4292. GCC includes the minimum size of the buffer in an
  4293. informational note following the warning.
  4294. An alternative to increasing the size of the destination
  4295. buffer is to constrain the range of formatted values. The
  4296. maximum length of string arguments can be bounded by
  4297. specifying the precision in the format directive. When
  4298. numeric arguments of format directives can be assumed to be
  4299. bounded by less than the precision of their type, choosing an
  4300. appropriate length modifier to the format specifier will
  4301. reduce the required buffer size. For example, if A and B in
  4302. the example above can be assumed to be within the precision of
  4303. the 'short int' type then using either the '%hi' format
  4304. directive or casting the argument to 'short' reduces the
  4305. maximum required size of the buffer to 24 bytes.
  4306. void f (int a, int b)
  4307. {
  4308. char buf [23];
  4309. sprintf (buf, "a = %hi, b = %i\n", a, (short)b);
  4310. }
  4311. '-Wno-format-zero-length'
  4312. If '-Wformat' is specified, do not warn about zero-length formats.
  4313. The C standard specifies that zero-length formats are allowed.
  4314. '-Wformat-nonliteral'
  4315. If '-Wformat' is specified, also warn if the format string is not a
  4316. string literal and so cannot be checked, unless the format function
  4317. takes its format arguments as a 'va_list'.
  4318. '-Wformat-security'
  4319. If '-Wformat' is specified, also warn about uses of format
  4320. functions that represent possible security problems. At present,
  4321. this warns about calls to 'printf' and 'scanf' functions where the
  4322. format string is not a string literal and there are no format
  4323. arguments, as in 'printf (foo);'. This may be a security hole if
  4324. the format string came from untrusted input and contains '%n'.
  4325. (This is currently a subset of what '-Wformat-nonliteral' warns
  4326. about, but in future warnings may be added to '-Wformat-security'
  4327. that are not included in '-Wformat-nonliteral'.)
  4328. '-Wformat-signedness'
  4329. If '-Wformat' is specified, also warn if the format string requires
  4330. an unsigned argument and the argument is signed and vice versa.
  4331. '-Wformat-truncation'
  4332. '-Wformat-truncation=LEVEL'
  4333. Warn about calls to formatted input/output functions such as
  4334. 'snprintf' and 'vsnprintf' that might result in output truncation.
  4335. When the exact number of bytes written by a format directive cannot
  4336. be determined at compile-time it is estimated based on heuristics
  4337. that depend on the LEVEL argument and on optimization. While
  4338. enabling optimization will in most cases improve the accuracy of
  4339. the warning, it may also result in false positives. Except as
  4340. noted otherwise, the option uses the same logic
  4341. '-Wformat-overflow'.
  4342. '-Wformat-truncation'
  4343. '-Wformat-truncation=1'
  4344. Level 1 of '-Wformat-truncation' enabled by '-Wformat' employs
  4345. a conservative approach that warns only about calls to bounded
  4346. functions whose return value is unused and that will most
  4347. likely result in output truncation.
  4348. '-Wformat-truncation=2'
  4349. Level 2 warns also about calls to bounded functions whose
  4350. return value is used and that might result in truncation given
  4351. an argument of sufficient length or magnitude.
  4352. '-Wformat-y2k'
  4353. If '-Wformat' is specified, also warn about 'strftime' formats that
  4354. may yield only a two-digit year.
  4355. '-Wnonnull'
  4356. Warn about passing a null pointer for arguments marked as requiring
  4357. a non-null value by the 'nonnull' function attribute.
  4358. '-Wnonnull' is included in '-Wall' and '-Wformat'. It can be
  4359. disabled with the '-Wno-nonnull' option.
  4360. '-Wnonnull-compare'
  4361. Warn when comparing an argument marked with the 'nonnull' function
  4362. attribute against null inside the function.
  4363. '-Wnonnull-compare' is included in '-Wall'. It can be disabled
  4364. with the '-Wno-nonnull-compare' option.
  4365. '-Wnull-dereference'
  4366. Warn if the compiler detects paths that trigger erroneous or
  4367. undefined behavior due to dereferencing a null pointer. This
  4368. option is only active when '-fdelete-null-pointer-checks' is
  4369. active, which is enabled by optimizations in most targets. The
  4370. precision of the warnings depends on the optimization options used.
  4371. '-Winit-self (C, C++, Objective-C and Objective-C++ only)'
  4372. Warn about uninitialized variables that are initialized with
  4373. themselves. Note this option can only be used with the
  4374. '-Wuninitialized' option.
  4375. For example, GCC warns about 'i' being uninitialized in the
  4376. following snippet only when '-Winit-self' has been specified:
  4377. int f()
  4378. {
  4379. int i = i;
  4380. return i;
  4381. }
  4382. This warning is enabled by '-Wall' in C++.
  4383. '-Wno-implicit-int (C and Objective-C only)'
  4384. This option controls warnings when a declaration does not specify a
  4385. type. This warning is enabled by default in C99 and later dialects
  4386. of C, and also by '-Wall'.
  4387. '-Wno-implicit-function-declaration (C and Objective-C only)'
  4388. This option controls warnings when a function is used before being
  4389. declared. This warning is enabled by default in C99 and later
  4390. dialects of C, and also by '-Wall'. The warning is made into an
  4391. error by '-pedantic-errors'.
  4392. '-Wimplicit (C and Objective-C only)'
  4393. Same as '-Wimplicit-int' and '-Wimplicit-function-declaration'.
  4394. This warning is enabled by '-Wall'.
  4395. '-Wimplicit-fallthrough'
  4396. '-Wimplicit-fallthrough' is the same as '-Wimplicit-fallthrough=3'
  4397. and '-Wno-implicit-fallthrough' is the same as
  4398. '-Wimplicit-fallthrough=0'.
  4399. '-Wimplicit-fallthrough=N'
  4400. Warn when a switch case falls through. For example:
  4401. switch (cond)
  4402. {
  4403. case 1:
  4404. a = 1;
  4405. break;
  4406. case 2:
  4407. a = 2;
  4408. case 3:
  4409. a = 3;
  4410. break;
  4411. }
  4412. This warning does not warn when the last statement of a case cannot
  4413. fall through, e.g. when there is a return statement or a call to
  4414. function declared with the noreturn attribute.
  4415. '-Wimplicit-fallthrough=' also takes into account control flow
  4416. statements, such as ifs, and only warns when appropriate. E.g.
  4417. switch (cond)
  4418. {
  4419. case 1:
  4420. if (i > 3) {
  4421. bar (5);
  4422. break;
  4423. } else if (i < 1) {
  4424. bar (0);
  4425. } else
  4426. return;
  4427. default:
  4428. ...
  4429. }
  4430. Since there are occasions where a switch case fall through is
  4431. desirable, GCC provides an attribute, '__attribute__
  4432. ((fallthrough))', that is to be used along with a null statement to
  4433. suppress this warning that would normally occur:
  4434. switch (cond)
  4435. {
  4436. case 1:
  4437. bar (0);
  4438. __attribute__ ((fallthrough));
  4439. default:
  4440. ...
  4441. }
  4442. C++17 provides a standard way to suppress the
  4443. '-Wimplicit-fallthrough' warning using '[[fallthrough]];' instead
  4444. of the GNU attribute. In C++11 or C++14 users can use
  4445. '[[gnu::fallthrough]];', which is a GNU extension. Instead of
  4446. these attributes, it is also possible to add a fallthrough comment
  4447. to silence the warning. The whole body of the C or C++ style
  4448. comment should match the given regular expressions listed below.
  4449. The option argument N specifies what kind of comments are accepted:
  4450. * '-Wimplicit-fallthrough=0' disables the warning altogether.
  4451. * '-Wimplicit-fallthrough=1' matches '.*' regular expression,
  4452. any comment is used as fallthrough comment.
  4453. * '-Wimplicit-fallthrough=2' case insensitively matches
  4454. '.*falls?[ \t-]*thr(ough|u).*' regular expression.
  4455. * '-Wimplicit-fallthrough=3' case sensitively matches one of the
  4456. following regular expressions:
  4457. * '-fallthrough'
  4458. * '@fallthrough@'
  4459. * 'lint -fallthrough[ \t]*'
  4460. * '[ \t.!]*(ELSE,? |INTENTIONAL(LY)? )?
  4461. FALL(S | |-)?THR(OUGH|U)[ \t.!]*(-[^\n\r]*)?'
  4462. * '[ \t.!]*(Else,? |Intentional(ly)? )?
  4463. Fall((s | |-)[Tt]|t)hr(ough|u)[ \t.!]*(-[^\n\r]*)?'
  4464. * '[ \t.!]*([Ee]lse,? |[Ii]ntentional(ly)? )?
  4465. fall(s | |-)?thr(ough|u)[ \t.!]*(-[^\n\r]*)?'
  4466. * '-Wimplicit-fallthrough=4' case sensitively matches one of the
  4467. following regular expressions:
  4468. * '-fallthrough'
  4469. * '@fallthrough@'
  4470. * 'lint -fallthrough[ \t]*'
  4471. * '[ \t]*FALLTHR(OUGH|U)[ \t]*'
  4472. * '-Wimplicit-fallthrough=5' doesn't recognize any comments as
  4473. fallthrough comments, only attributes disable the warning.
  4474. The comment needs to be followed after optional whitespace and
  4475. other comments by 'case' or 'default' keywords or by a user label
  4476. that precedes some 'case' or 'default' label.
  4477. switch (cond)
  4478. {
  4479. case 1:
  4480. bar (0);
  4481. /* FALLTHRU */
  4482. default:
  4483. ...
  4484. }
  4485. The '-Wimplicit-fallthrough=3' warning is enabled by '-Wextra'.
  4486. '-Wno-if-not-aligned (C, C++, Objective-C and Objective-C++ only)'
  4487. Control if warnings triggered by the 'warn_if_not_aligned'
  4488. attribute should be issued. These warnings are enabled by default.
  4489. '-Wignored-qualifiers (C and C++ only)'
  4490. Warn if the return type of a function has a type qualifier such as
  4491. 'const'. For ISO C such a type qualifier has no effect, since the
  4492. value returned by a function is not an lvalue. For C++, the
  4493. warning is only emitted for scalar types or 'void'. ISO C
  4494. prohibits qualified 'void' return types on function definitions, so
  4495. such return types always receive a warning even without this
  4496. option.
  4497. This warning is also enabled by '-Wextra'.
  4498. '-Wno-ignored-attributes (C and C++ only)'
  4499. This option controls warnings when an attribute is ignored. This
  4500. is different from the '-Wattributes' option in that it warns
  4501. whenever the compiler decides to drop an attribute, not that the
  4502. attribute is either unknown, used in a wrong place, etc. This
  4503. warning is enabled by default.
  4504. '-Wmain'
  4505. Warn if the type of 'main' is suspicious. 'main' should be a
  4506. function with external linkage, returning int, taking either zero
  4507. arguments, two, or three arguments of appropriate types. This
  4508. warning is enabled by default in C++ and is enabled by either
  4509. '-Wall' or '-Wpedantic'.
  4510. '-Wmisleading-indentation (C and C++ only)'
  4511. Warn when the indentation of the code does not reflect the block
  4512. structure. Specifically, a warning is issued for 'if', 'else',
  4513. 'while', and 'for' clauses with a guarded statement that does not
  4514. use braces, followed by an unguarded statement with the same
  4515. indentation.
  4516. In the following example, the call to "bar" is misleadingly
  4517. indented as if it were guarded by the "if" conditional.
  4518. if (some_condition ())
  4519. foo ();
  4520. bar (); /* Gotcha: this is not guarded by the "if". */
  4521. In the case of mixed tabs and spaces, the warning uses the
  4522. '-ftabstop=' option to determine if the statements line up
  4523. (defaulting to 8).
  4524. The warning is not issued for code involving multiline preprocessor
  4525. logic such as the following example.
  4526. if (flagA)
  4527. foo (0);
  4528. #if SOME_CONDITION_THAT_DOES_NOT_HOLD
  4529. if (flagB)
  4530. #endif
  4531. foo (1);
  4532. The warning is not issued after a '#line' directive, since this
  4533. typically indicates autogenerated code, and no assumptions can be
  4534. made about the layout of the file that the directive references.
  4535. This warning is enabled by '-Wall' in C and C++.
  4536. '-Wmissing-attributes'
  4537. Warn when a declaration of a function is missing one or more
  4538. attributes that a related function is declared with and whose
  4539. absence may adversely affect the correctness or efficiency of
  4540. generated code. For example, the warning is issued for
  4541. declarations of aliases that use attributes to specify less
  4542. restrictive requirements than those of their targets. This
  4543. typically represents a potential optimization opportunity. By
  4544. contrast, the '-Wattribute-alias=2' option controls warnings issued
  4545. when the alias is more restrictive than the target, which could
  4546. lead to incorrect code generation. Attributes considered include
  4547. 'alloc_align', 'alloc_size', 'cold', 'const', 'hot', 'leaf',
  4548. 'malloc', 'nonnull', 'noreturn', 'nothrow', 'pure',
  4549. 'returns_nonnull', and 'returns_twice'.
  4550. In C++, the warning is issued when an explicit specialization of a
  4551. primary template declared with attribute 'alloc_align',
  4552. 'alloc_size', 'assume_aligned', 'format', 'format_arg', 'malloc',
  4553. or 'nonnull' is declared without it. Attributes 'deprecated',
  4554. 'error', and 'warning' suppress the warning. (*note Function
  4555. Attributes::).
  4556. You can use the 'copy' attribute to apply the same set of
  4557. attributes to a declaration as that on another declaration without
  4558. explicitly enumerating the attributes. This attribute can be
  4559. applied to declarations of functions (*note Common Function
  4560. Attributes::), variables (*note Common Variable Attributes::), or
  4561. types (*note Common Type Attributes::).
  4562. '-Wmissing-attributes' is enabled by '-Wall'.
  4563. For example, since the declaration of the primary function template
  4564. below makes use of both attribute 'malloc' and 'alloc_size' the
  4565. declaration of the explicit specialization of the template is
  4566. diagnosed because it is missing one of the attributes.
  4567. template <class T>
  4568. T* __attribute__ ((malloc, alloc_size (1)))
  4569. allocate (size_t);
  4570. template <>
  4571. void* __attribute__ ((malloc)) // missing alloc_size
  4572. allocate<void> (size_t);
  4573. '-Wmissing-braces'
  4574. Warn if an aggregate or union initializer is not fully bracketed.
  4575. In the following example, the initializer for 'a' is not fully
  4576. bracketed, but that for 'b' is fully bracketed.
  4577. int a[2][2] = { 0, 1, 2, 3 };
  4578. int b[2][2] = { { 0, 1 }, { 2, 3 } };
  4579. This warning is enabled by '-Wall'.
  4580. '-Wmissing-include-dirs (C, C++, Objective-C and Objective-C++ only)'
  4581. Warn if a user-supplied include directory does not exist.
  4582. '-Wno-missing-profile'
  4583. This option controls warnings if feedback profiles are missing when
  4584. using the '-fprofile-use' option. This option diagnoses those
  4585. cases where a new function or a new file is added between compiling
  4586. with '-fprofile-generate' and with '-fprofile-use', without
  4587. regenerating the profiles. In these cases, the profile feedback
  4588. data files do not contain any profile feedback information for the
  4589. newly added function or file respectively. Also, in the case when
  4590. profile count data (.gcda) files are removed, GCC cannot use any
  4591. profile feedback information. In all these cases, warnings are
  4592. issued to inform you that a profile generation step is due.
  4593. Ignoring the warning can result in poorly optimized code.
  4594. '-Wno-missing-profile' can be used to disable the warning, but this
  4595. is not recommended and should be done only when non-existent
  4596. profile data is justified.
  4597. '-Wmultistatement-macros'
  4598. Warn about unsafe multiple statement macros that appear to be
  4599. guarded by a clause such as 'if', 'else', 'for', 'switch', or
  4600. 'while', in which only the first statement is actually guarded
  4601. after the macro is expanded.
  4602. For example:
  4603. #define DOIT x++; y++
  4604. if (c)
  4605. DOIT;
  4606. will increment 'y' unconditionally, not just when 'c' holds. The
  4607. can usually be fixed by wrapping the macro in a do-while loop:
  4608. #define DOIT do { x++; y++; } while (0)
  4609. if (c)
  4610. DOIT;
  4611. This warning is enabled by '-Wall' in C and C++.
  4612. '-Wparentheses'
  4613. Warn if parentheses are omitted in certain contexts, such as when
  4614. there is an assignment in a context where a truth value is
  4615. expected, or when operators are nested whose precedence people
  4616. often get confused about.
  4617. Also warn if a comparison like 'x<=y<=z' appears; this is
  4618. equivalent to '(x<=y ? 1 : 0) <= z', which is a different
  4619. interpretation from that of ordinary mathematical notation.
  4620. Also warn for dangerous uses of the GNU extension to '?:' with
  4621. omitted middle operand. When the condition in the '?': operator is
  4622. a boolean expression, the omitted value is always 1. Often
  4623. programmers expect it to be a value computed inside the conditional
  4624. expression instead.
  4625. For C++ this also warns for some cases of unnecessary parentheses
  4626. in declarations, which can indicate an attempt at a function call
  4627. instead of a declaration:
  4628. {
  4629. // Declares a local variable called mymutex.
  4630. std::unique_lock<std::mutex> (mymutex);
  4631. // User meant std::unique_lock<std::mutex> lock (mymutex);
  4632. }
  4633. This warning is enabled by '-Wall'.
  4634. '-Wsequence-point'
  4635. Warn about code that may have undefined semantics because of
  4636. violations of sequence point rules in the C and C++ standards.
  4637. The C and C++ standards define the order in which expressions in a
  4638. C/C++ program are evaluated in terms of "sequence points", which
  4639. represent a partial ordering between the execution of parts of the
  4640. program: those executed before the sequence point, and those
  4641. executed after it. These occur after the evaluation of a full
  4642. expression (one which is not part of a larger expression), after
  4643. the evaluation of the first operand of a '&&', '||', '? :' or ','
  4644. (comma) operator, before a function is called (but after the
  4645. evaluation of its arguments and the expression denoting the called
  4646. function), and in certain other places. Other than as expressed by
  4647. the sequence point rules, the order of evaluation of subexpressions
  4648. of an expression is not specified. All these rules describe only a
  4649. partial order rather than a total order, since, for example, if two
  4650. functions are called within one expression with no sequence point
  4651. between them, the order in which the functions are called is not
  4652. specified. However, the standards committee have ruled that
  4653. function calls do not overlap.
  4654. It is not specified when between sequence points modifications to
  4655. the values of objects take effect. Programs whose behavior depends
  4656. on this have undefined behavior; the C and C++ standards specify
  4657. that "Between the previous and next sequence point an object shall
  4658. have its stored value modified at most once by the evaluation of an
  4659. expression. Furthermore, the prior value shall be read only to
  4660. determine the value to be stored.". If a program breaks these
  4661. rules, the results on any particular implementation are entirely
  4662. unpredictable.
  4663. Examples of code with undefined behavior are 'a = a++;', 'a[n] =
  4664. b[n++]' and 'a[i++] = i;'. Some more complicated cases are not
  4665. diagnosed by this option, and it may give an occasional false
  4666. positive result, but in general it has been found fairly effective
  4667. at detecting this sort of problem in programs.
  4668. The C++17 standard will define the order of evaluation of operands
  4669. in more cases: in particular it requires that the right-hand side
  4670. of an assignment be evaluated before the left-hand side, so the
  4671. above examples are no longer undefined. But this option will still
  4672. warn about them, to help people avoid writing code that is
  4673. undefined in C and earlier revisions of C++.
  4674. The standard is worded confusingly, therefore there is some debate
  4675. over the precise meaning of the sequence point rules in subtle
  4676. cases. Links to discussions of the problem, including proposed
  4677. formal definitions, may be found on the GCC readings page, at
  4678. <http://gcc.gnu.org/readings.html>.
  4679. This warning is enabled by '-Wall' for C and C++.
  4680. '-Wno-return-local-addr'
  4681. Do not warn about returning a pointer (or in C++, a reference) to a
  4682. variable that goes out of scope after the function returns.
  4683. '-Wreturn-type'
  4684. Warn whenever a function is defined with a return type that
  4685. defaults to 'int'. Also warn about any 'return' statement with no
  4686. return value in a function whose return type is not 'void' (falling
  4687. off the end of the function body is considered returning without a
  4688. value).
  4689. For C only, warn about a 'return' statement with an expression in a
  4690. function whose return type is 'void', unless the expression type is
  4691. also 'void'. As a GNU extension, the latter case is accepted
  4692. without a warning unless '-Wpedantic' is used. Attempting to use
  4693. the return value of a non-'void' function other than 'main' that
  4694. flows off the end by reaching the closing curly brace that
  4695. terminates the function is undefined.
  4696. Unlike in C, in C++, flowing off the end of a non-'void' function
  4697. other than 'main' results in undefined behavior even when the value
  4698. of the function is not used.
  4699. This warning is enabled by default in C++ and by '-Wall' otherwise.
  4700. '-Wno-shift-count-negative'
  4701. Controls warnings if a shift count is negative. This warning is
  4702. enabled by default.
  4703. '-Wno-shift-count-overflow'
  4704. Controls warnings if a shift count is greater than or equal to the
  4705. bit width of the type. This warning is enabled by default.
  4706. '-Wshift-negative-value'
  4707. Warn if left shifting a negative value. This warning is enabled by
  4708. '-Wextra' in C99 and C++11 modes (and newer).
  4709. '-Wno-shift-overflow'
  4710. '-Wshift-overflow=N'
  4711. These options control warnings about left shift overflows.
  4712. '-Wshift-overflow=1'
  4713. This is the warning level of '-Wshift-overflow' and is enabled
  4714. by default in C99 and C++11 modes (and newer). This warning
  4715. level does not warn about left-shifting 1 into the sign bit.
  4716. (However, in C, such an overflow is still rejected in contexts
  4717. where an integer constant expression is required.) No warning
  4718. is emitted in C++2A mode (and newer), as signed left shifts
  4719. always wrap.
  4720. '-Wshift-overflow=2'
  4721. This warning level also warns about left-shifting 1 into the
  4722. sign bit, unless C++14 mode (or newer) is active.
  4723. '-Wswitch'
  4724. Warn whenever a 'switch' statement has an index of enumerated type
  4725. and lacks a 'case' for one or more of the named codes of that
  4726. enumeration. (The presence of a 'default' label prevents this
  4727. warning.) 'case' labels outside the enumeration range also provoke
  4728. warnings when this option is used (even if there is a 'default'
  4729. label). This warning is enabled by '-Wall'.
  4730. '-Wswitch-default'
  4731. Warn whenever a 'switch' statement does not have a 'default' case.
  4732. '-Wswitch-enum'
  4733. Warn whenever a 'switch' statement has an index of enumerated type
  4734. and lacks a 'case' for one or more of the named codes of that
  4735. enumeration. 'case' labels outside the enumeration range also
  4736. provoke warnings when this option is used. The only difference
  4737. between '-Wswitch' and this option is that this option gives a
  4738. warning about an omitted enumeration code even if there is a
  4739. 'default' label.
  4740. '-Wno-switch-bool'
  4741. Do not warn when a 'switch' statement has an index of boolean type
  4742. and the case values are outside the range of a boolean type. It is
  4743. possible to suppress this warning by casting the controlling
  4744. expression to a type other than 'bool'. For example:
  4745. switch ((int) (a == 4))
  4746. {
  4747. ...
  4748. }
  4749. This warning is enabled by default for C and C++ programs.
  4750. '-Wno-switch-outside-range'
  4751. This option controls warnings when a 'switch' case has a value that
  4752. is outside of its respective type range. This warning is enabled
  4753. by default for C and C++ programs.
  4754. '-Wno-switch-unreachable'
  4755. Do not warn when a 'switch' statement contains statements between
  4756. the controlling expression and the first case label, which will
  4757. never be executed. For example:
  4758. switch (cond)
  4759. {
  4760. i = 15;
  4761. ...
  4762. case 5:
  4763. ...
  4764. }
  4765. '-Wswitch-unreachable' does not warn if the statement between the
  4766. controlling expression and the first case label is just a
  4767. declaration:
  4768. switch (cond)
  4769. {
  4770. int i;
  4771. ...
  4772. case 5:
  4773. i = 5;
  4774. ...
  4775. }
  4776. This warning is enabled by default for C and C++ programs.
  4777. '-Wsync-nand (C and C++ only)'
  4778. Warn when '__sync_fetch_and_nand' and '__sync_nand_and_fetch'
  4779. built-in functions are used. These functions changed semantics in
  4780. GCC 4.4.
  4781. '-Wunused-but-set-parameter'
  4782. Warn whenever a function parameter is assigned to, but otherwise
  4783. unused (aside from its declaration).
  4784. To suppress this warning use the 'unused' attribute (*note Variable
  4785. Attributes::).
  4786. This warning is also enabled by '-Wunused' together with '-Wextra'.
  4787. '-Wunused-but-set-variable'
  4788. Warn whenever a local variable is assigned to, but otherwise unused
  4789. (aside from its declaration). This warning is enabled by '-Wall'.
  4790. To suppress this warning use the 'unused' attribute (*note Variable
  4791. Attributes::).
  4792. This warning is also enabled by '-Wunused', which is enabled by
  4793. '-Wall'.
  4794. '-Wunused-function'
  4795. Warn whenever a static function is declared but not defined or a
  4796. non-inline static function is unused. This warning is enabled by
  4797. '-Wall'.
  4798. '-Wunused-label'
  4799. Warn whenever a label is declared but not used. This warning is
  4800. enabled by '-Wall'.
  4801. To suppress this warning use the 'unused' attribute (*note Variable
  4802. Attributes::).
  4803. '-Wunused-local-typedefs (C, Objective-C, C++ and Objective-C++ only)'
  4804. Warn when a typedef locally defined in a function is not used.
  4805. This warning is enabled by '-Wall'.
  4806. '-Wunused-parameter'
  4807. Warn whenever a function parameter is unused aside from its
  4808. declaration.
  4809. To suppress this warning use the 'unused' attribute (*note Variable
  4810. Attributes::).
  4811. '-Wno-unused-result'
  4812. Do not warn if a caller of a function marked with attribute
  4813. 'warn_unused_result' (*note Function Attributes::) does not use its
  4814. return value. The default is '-Wunused-result'.
  4815. '-Wunused-variable'
  4816. Warn whenever a local or static variable is unused aside from its
  4817. declaration. This option implies '-Wunused-const-variable=1' for
  4818. C, but not for C++. This warning is enabled by '-Wall'.
  4819. To suppress this warning use the 'unused' attribute (*note Variable
  4820. Attributes::).
  4821. '-Wunused-const-variable'
  4822. '-Wunused-const-variable=N'
  4823. Warn whenever a constant static variable is unused aside from its
  4824. declaration. '-Wunused-const-variable=1' is enabled by
  4825. '-Wunused-variable' for C, but not for C++. In C this declares
  4826. variable storage, but in C++ this is not an error since const
  4827. variables take the place of '#define's.
  4828. To suppress this warning use the 'unused' attribute (*note Variable
  4829. Attributes::).
  4830. '-Wunused-const-variable=1'
  4831. This is the warning level that is enabled by
  4832. '-Wunused-variable' for C. It warns only about unused static
  4833. const variables defined in the main compilation unit, but not
  4834. about static const variables declared in any header included.
  4835. '-Wunused-const-variable=2'
  4836. This warning level also warns for unused constant static
  4837. variables in headers (excluding system headers). This is the
  4838. warning level of '-Wunused-const-variable' and must be
  4839. explicitly requested since in C++ this isn't an error and in C
  4840. it might be harder to clean up all headers included.
  4841. '-Wunused-value'
  4842. Warn whenever a statement computes a result that is explicitly not
  4843. used. To suppress this warning cast the unused expression to
  4844. 'void'. This includes an expression-statement or the left-hand
  4845. side of a comma expression that contains no side effects. For
  4846. example, an expression such as 'x[i,j]' causes a warning, while
  4847. 'x[(void)i,j]' does not.
  4848. This warning is enabled by '-Wall'.
  4849. '-Wunused'
  4850. All the above '-Wunused' options combined.
  4851. In order to get a warning about an unused function parameter, you
  4852. must either specify '-Wextra -Wunused' (note that '-Wall' implies
  4853. '-Wunused'), or separately specify '-Wunused-parameter'.
  4854. '-Wuninitialized'
  4855. Warn if an automatic variable is used without first being
  4856. initialized. In C++, warn if a non-static reference or non-static
  4857. 'const' member appears in a class without constructors.
  4858. If you want to warn about code that uses the uninitialized value of
  4859. the variable in its own initializer, use the '-Winit-self' option.
  4860. These warnings occur for individual uninitialized elements of
  4861. structure, union or array variables as well as for variables that
  4862. are uninitialized as a whole. They do not occur for variables or
  4863. elements declared 'volatile'. Because these warnings depend on
  4864. optimization, the exact variables or elements for which there are
  4865. warnings depend on the precise optimization options and version of
  4866. GCC used.
  4867. Note that there may be no warning about a variable that is used
  4868. only to compute a value that itself is never used, because such
  4869. computations may be deleted by data flow analysis before the
  4870. warnings are printed.
  4871. '-Wno-invalid-memory-model'
  4872. This option controls warnings for invocations of *note __atomic
  4873. Builtins::, *note __sync Builtins::, and the C11 atomic generic
  4874. functions with a memory consistency argument that is either invalid
  4875. for the operation or outside the range of values of the
  4876. 'memory_order' enumeration. For example, since the
  4877. '__atomic_store' and '__atomic_store_n' built-ins are only defined
  4878. for the relaxed, release, and sequentially consistent memory orders
  4879. the following code is diagnosed:
  4880. void store (int *i)
  4881. {
  4882. __atomic_store_n (i, 0, memory_order_consume);
  4883. }
  4884. '-Winvalid-memory-model' is enabled by default.
  4885. '-Wmaybe-uninitialized'
  4886. For an automatic (i.e. local) variable, if there exists a path from
  4887. the function entry to a use of the variable that is initialized,
  4888. but there exist some other paths for which the variable is not
  4889. initialized, the compiler emits a warning if it cannot prove the
  4890. uninitialized paths are not executed at run time.
  4891. These warnings are only possible in optimizing compilation, because
  4892. otherwise GCC does not keep track of the state of variables.
  4893. These warnings are made optional because GCC may not be able to
  4894. determine when the code is correct in spite of appearing to have an
  4895. error. Here is one example of how this can happen:
  4896. {
  4897. int x;
  4898. switch (y)
  4899. {
  4900. case 1: x = 1;
  4901. break;
  4902. case 2: x = 4;
  4903. break;
  4904. case 3: x = 5;
  4905. }
  4906. foo (x);
  4907. }
  4908. If the value of 'y' is always 1, 2 or 3, then 'x' is always
  4909. initialized, but GCC doesn't know this. To suppress the warning,
  4910. you need to provide a default case with assert(0) or similar code.
  4911. This option also warns when a non-volatile automatic variable might
  4912. be changed by a call to 'longjmp'. The compiler sees only the
  4913. calls to 'setjmp'. It cannot know where 'longjmp' will be called;
  4914. in fact, a signal handler could call it at any point in the code.
  4915. As a result, you may get a warning even when there is in fact no
  4916. problem because 'longjmp' cannot in fact be called at the place
  4917. that would cause a problem.
  4918. Some spurious warnings can be avoided if you declare all the
  4919. functions you use that never return as 'noreturn'. *Note Function
  4920. Attributes::.
  4921. This warning is enabled by '-Wall' or '-Wextra'.
  4922. '-Wunknown-pragmas'
  4923. Warn when a '#pragma' directive is encountered that is not
  4924. understood by GCC. If this command-line option is used, warnings
  4925. are even issued for unknown pragmas in system header files. This
  4926. is not the case if the warnings are only enabled by the '-Wall'
  4927. command-line option.
  4928. '-Wno-pragmas'
  4929. Do not warn about misuses of pragmas, such as incorrect parameters,
  4930. invalid syntax, or conflicts between pragmas. See also
  4931. '-Wunknown-pragmas'.
  4932. '-Wno-prio-ctor-dtor'
  4933. Do not warn if a priority from 0 to 100 is used for constructor or
  4934. destructor. The use of constructor and destructor attributes allow
  4935. you to assign a priority to the constructor/destructor to control
  4936. its order of execution before 'main' is called or after it returns.
  4937. The priority values must be greater than 100 as the compiler
  4938. reserves priority values between 0-100 for the implementation.
  4939. '-Wstrict-aliasing'
  4940. This option is only active when '-fstrict-aliasing' is active. It
  4941. warns about code that might break the strict aliasing rules that
  4942. the compiler is using for optimization. The warning does not catch
  4943. all cases, but does attempt to catch the more common pitfalls. It
  4944. is included in '-Wall'. It is equivalent to '-Wstrict-aliasing=3'
  4945. '-Wstrict-aliasing=n'
  4946. This option is only active when '-fstrict-aliasing' is active. It
  4947. warns about code that might break the strict aliasing rules that
  4948. the compiler is using for optimization. Higher levels correspond
  4949. to higher accuracy (fewer false positives). Higher levels also
  4950. correspond to more effort, similar to the way '-O' works.
  4951. '-Wstrict-aliasing' is equivalent to '-Wstrict-aliasing=3'.
  4952. Level 1: Most aggressive, quick, least accurate. Possibly useful
  4953. when higher levels do not warn but '-fstrict-aliasing' still breaks
  4954. the code, as it has very few false negatives. However, it has many
  4955. false positives. Warns for all pointer conversions between
  4956. possibly incompatible types, even if never dereferenced. Runs in
  4957. the front end only.
  4958. Level 2: Aggressive, quick, not too precise. May still have many
  4959. false positives (not as many as level 1 though), and few false
  4960. negatives (but possibly more than level 1). Unlike level 1, it
  4961. only warns when an address is taken. Warns about incomplete types.
  4962. Runs in the front end only.
  4963. Level 3 (default for '-Wstrict-aliasing'): Should have very few
  4964. false positives and few false negatives. Slightly slower than
  4965. levels 1 or 2 when optimization is enabled. Takes care of the
  4966. common pun+dereference pattern in the front end:
  4967. '*(int*)&some_float'. If optimization is enabled, it also runs in
  4968. the back end, where it deals with multiple statement cases using
  4969. flow-sensitive points-to information. Only warns when the
  4970. converted pointer is dereferenced. Does not warn about incomplete
  4971. types.
  4972. '-Wstrict-overflow'
  4973. '-Wstrict-overflow=N'
  4974. This option is only active when signed overflow is undefined. It
  4975. warns about cases where the compiler optimizes based on the
  4976. assumption that signed overflow does not occur. Note that it does
  4977. not warn about all cases where the code might overflow: it only
  4978. warns about cases where the compiler implements some optimization.
  4979. Thus this warning depends on the optimization level.
  4980. An optimization that assumes that signed overflow does not occur is
  4981. perfectly safe if the values of the variables involved are such
  4982. that overflow never does, in fact, occur. Therefore this warning
  4983. can easily give a false positive: a warning about code that is not
  4984. actually a problem. To help focus on important issues, several
  4985. warning levels are defined. No warnings are issued for the use of
  4986. undefined signed overflow when estimating how many iterations a
  4987. loop requires, in particular when determining whether a loop will
  4988. be executed at all.
  4989. '-Wstrict-overflow=1'
  4990. Warn about cases that are both questionable and easy to avoid.
  4991. For example the compiler simplifies 'x + 1 > x' to '1'. This
  4992. level of '-Wstrict-overflow' is enabled by '-Wall'; higher
  4993. levels are not, and must be explicitly requested.
  4994. '-Wstrict-overflow=2'
  4995. Also warn about other cases where a comparison is simplified
  4996. to a constant. For example: 'abs (x) >= 0'. This can only be
  4997. simplified when signed integer overflow is undefined, because
  4998. 'abs (INT_MIN)' overflows to 'INT_MIN', which is less than
  4999. zero. '-Wstrict-overflow' (with no level) is the same as
  5000. '-Wstrict-overflow=2'.
  5001. '-Wstrict-overflow=3'
  5002. Also warn about other cases where a comparison is simplified.
  5003. For example: 'x + 1 > 1' is simplified to 'x > 0'.
  5004. '-Wstrict-overflow=4'
  5005. Also warn about other simplifications not covered by the above
  5006. cases. For example: '(x * 10) / 5' is simplified to 'x * 2'.
  5007. '-Wstrict-overflow=5'
  5008. Also warn about cases where the compiler reduces the magnitude
  5009. of a constant involved in a comparison. For example: 'x + 2 >
  5010. y' is simplified to 'x + 1 >= y'. This is reported only at
  5011. the highest warning level because this simplification applies
  5012. to many comparisons, so this warning level gives a very large
  5013. number of false positives.
  5014. '-Wstring-compare'
  5015. Warn for calls to 'strcmp' and 'strncmp' whose result is determined
  5016. to be either zero or non-zero in tests for such equality owing to
  5017. the length of one argument being greater than the size of the array
  5018. the other argument is stored in (or the bound in the case of
  5019. 'strncmp'). Such calls could be mistakes. For example, the call
  5020. to 'strcmp' below is diagnosed because its result is necessarily
  5021. non-zero irrespective of the contents of the array 'a'.
  5022. extern char a[4];
  5023. void f (char *d)
  5024. {
  5025. strcpy (d, "string");
  5026. ...
  5027. if (0 == strcmp (a, d)) // cannot be true
  5028. puts ("a and d are the same");
  5029. }
  5030. '-Wstring-compare' is enabled by '-Wextra'.
  5031. '-Wstringop-overflow'
  5032. '-Wstringop-overflow=TYPE'
  5033. Warn for calls to string manipulation functions such as 'memcpy'
  5034. and 'strcpy' that are determined to overflow the destination
  5035. buffer. The optional argument is one greater than the type of
  5036. Object Size Checking to perform to determine the size of the
  5037. destination. *Note Object Size Checking::. The argument is
  5038. meaningful only for functions that operate on character arrays but
  5039. not for raw memory functions like 'memcpy' which always make use of
  5040. Object Size type-0. The option also warns for calls that specify a
  5041. size in excess of the largest possible object or at most 'SIZE_MAX
  5042. / 2' bytes. The option produces the best results with optimization
  5043. enabled but can detect a small subset of simple buffer overflows
  5044. even without optimization in calls to the GCC built-in functions
  5045. like '__builtin_memcpy' that correspond to the standard functions.
  5046. In any case, the option warns about just a subset of buffer
  5047. overflows detected by the corresponding overflow checking
  5048. built-ins. For example, the option issues a warning for the
  5049. 'strcpy' call below because it copies at least 5 characters (the
  5050. string '"blue"' including the terminating NUL) into the buffer of
  5051. size 4.
  5052. enum Color { blue, purple, yellow };
  5053. const char* f (enum Color clr)
  5054. {
  5055. static char buf [4];
  5056. const char *str;
  5057. switch (clr)
  5058. {
  5059. case blue: str = "blue"; break;
  5060. case purple: str = "purple"; break;
  5061. case yellow: str = "yellow"; break;
  5062. }
  5063. return strcpy (buf, str); // warning here
  5064. }
  5065. Option '-Wstringop-overflow=2' is enabled by default.
  5066. '-Wstringop-overflow'
  5067. '-Wstringop-overflow=1'
  5068. The '-Wstringop-overflow=1' option uses type-zero Object Size
  5069. Checking to determine the sizes of destination objects. This
  5070. is the default setting of the option. At this setting the
  5071. option does not warn for writes past the end of subobjects of
  5072. larger objects accessed by pointers unless the size of the
  5073. largest surrounding object is known. When the destination may
  5074. be one of several objects it is assumed to be the largest one
  5075. of them. On Linux systems, when optimization is enabled at
  5076. this setting the option warns for the same code as when the
  5077. '_FORTIFY_SOURCE' macro is defined to a non-zero value.
  5078. '-Wstringop-overflow=2'
  5079. The '-Wstringop-overflow=2' option uses type-one Object Size
  5080. Checking to determine the sizes of destination objects. At
  5081. this setting the option warna about overflows when writing to
  5082. members of the largest complete objects whose exact size is
  5083. known. However, it does not warn for excessive writes to the
  5084. same members of unknown objects referenced by pointers since
  5085. they may point to arrays containing unknown numbers of
  5086. elements.
  5087. '-Wstringop-overflow=3'
  5088. The '-Wstringop-overflow=3' option uses type-two Object Size
  5089. Checking to determine the sizes of destination objects. At
  5090. this setting the option warns about overflowing the smallest
  5091. object or data member. This is the most restrictive setting
  5092. of the option that may result in warnings for safe code.
  5093. '-Wstringop-overflow=4'
  5094. The '-Wstringop-overflow=4' option uses type-three Object Size
  5095. Checking to determine the sizes of destination objects. At
  5096. this setting the option warns about overflowing any data
  5097. members, and when the destination is one of several objects it
  5098. uses the size of the largest of them to decide whether to
  5099. issue a warning. Similarly to '-Wstringop-overflow=3' this
  5100. setting of the option may result in warnings for benign code.
  5101. '-Wno-stringop-truncation'
  5102. Do not warn for calls to bounded string manipulation functions such
  5103. as 'strncat', 'strncpy', and 'stpncpy' that may either truncate the
  5104. copied string or leave the destination unchanged.
  5105. In the following example, the call to 'strncat' specifies a bound
  5106. that is less than the length of the source string. As a result,
  5107. the copy of the source will be truncated and so the call is
  5108. diagnosed. To avoid the warning use 'bufsize - strlen (buf) - 1)'
  5109. as the bound.
  5110. void append (char *buf, size_t bufsize)
  5111. {
  5112. strncat (buf, ".txt", 3);
  5113. }
  5114. As another example, the following call to 'strncpy' results in
  5115. copying to 'd' just the characters preceding the terminating NUL,
  5116. without appending the NUL to the end. Assuming the result of
  5117. 'strncpy' is necessarily a NUL-terminated string is a common
  5118. mistake, and so the call is diagnosed. To avoid the warning when
  5119. the result is not expected to be NUL-terminated, call 'memcpy'
  5120. instead.
  5121. void copy (char *d, const char *s)
  5122. {
  5123. strncpy (d, s, strlen (s));
  5124. }
  5125. In the following example, the call to 'strncpy' specifies the size
  5126. of the destination buffer as the bound. If the length of the
  5127. source string is equal to or greater than this size the result of
  5128. the copy will not be NUL-terminated. Therefore, the call is also
  5129. diagnosed. To avoid the warning, specify 'sizeof buf - 1' as the
  5130. bound and set the last element of the buffer to 'NUL'.
  5131. void copy (const char *s)
  5132. {
  5133. char buf[80];
  5134. strncpy (buf, s, sizeof buf);
  5135. ...
  5136. }
  5137. In situations where a character array is intended to store a
  5138. sequence of bytes with no terminating 'NUL' such an array may be
  5139. annotated with attribute 'nonstring' to avoid this warning. Such
  5140. arrays, however, are not suitable arguments to functions that
  5141. expect 'NUL'-terminated strings. To help detect accidental misuses
  5142. of such arrays GCC issues warnings unless it can prove that the use
  5143. is safe. *Note Common Variable Attributes::.
  5144. '-Wsuggest-attribute=[pure|const|noreturn|format|cold|malloc]'
  5145. Warn for cases where adding an attribute may be beneficial. The
  5146. attributes currently supported are listed below.
  5147. '-Wsuggest-attribute=pure'
  5148. '-Wsuggest-attribute=const'
  5149. '-Wsuggest-attribute=noreturn'
  5150. '-Wmissing-noreturn'
  5151. '-Wsuggest-attribute=malloc'
  5152. Warn about functions that might be candidates for attributes
  5153. 'pure', 'const' or 'noreturn' or 'malloc'. The compiler only
  5154. warns for functions visible in other compilation units or (in
  5155. the case of 'pure' and 'const') if it cannot prove that the
  5156. function returns normally. A function returns normally if it
  5157. doesn't contain an infinite loop or return abnormally by
  5158. throwing, calling 'abort' or trapping. This analysis requires
  5159. option '-fipa-pure-const', which is enabled by default at '-O'
  5160. and higher. Higher optimization levels improve the accuracy
  5161. of the analysis.
  5162. '-Wsuggest-attribute=format'
  5163. '-Wmissing-format-attribute'
  5164. Warn about function pointers that might be candidates for
  5165. 'format' attributes. Note these are only possible candidates,
  5166. not absolute ones. GCC guesses that function pointers with
  5167. 'format' attributes that are used in assignment,
  5168. initialization, parameter passing or return statements should
  5169. have a corresponding 'format' attribute in the resulting type.
  5170. I.e. the left-hand side of the assignment or initialization,
  5171. the type of the parameter variable, or the return type of the
  5172. containing function respectively should also have a 'format'
  5173. attribute to avoid the warning.
  5174. GCC also warns about function definitions that might be
  5175. candidates for 'format' attributes. Again, these are only
  5176. possible candidates. GCC guesses that 'format' attributes
  5177. might be appropriate for any function that calls a function
  5178. like 'vprintf' or 'vscanf', but this might not always be the
  5179. case, and some functions for which 'format' attributes are
  5180. appropriate may not be detected.
  5181. '-Wsuggest-attribute=cold'
  5182. Warn about functions that might be candidates for 'cold'
  5183. attribute. This is based on static detection and generally
  5184. only warns about functions which always leads to a call to
  5185. another 'cold' function such as wrappers of C++ 'throw' or
  5186. fatal error reporting functions leading to 'abort'.
  5187. '-Walloc-zero'
  5188. Warn about calls to allocation functions decorated with attribute
  5189. 'alloc_size' that specify zero bytes, including those to the
  5190. built-in forms of the functions 'aligned_alloc', 'alloca',
  5191. 'calloc', 'malloc', and 'realloc'. Because the behavior of these
  5192. functions when called with a zero size differs among
  5193. implementations (and in the case of 'realloc' has been deprecated)
  5194. relying on it may result in subtle portability bugs and should be
  5195. avoided.
  5196. '-Walloc-size-larger-than=BYTE-SIZE'
  5197. Warn about calls to functions decorated with attribute 'alloc_size'
  5198. that attempt to allocate objects larger than the specified number
  5199. of bytes, or where the result of the size computation in an integer
  5200. type with infinite precision would exceed the value of
  5201. 'PTRDIFF_MAX' on the target.
  5202. '-Walloc-size-larger-than=''PTRDIFF_MAX' is enabled by default.
  5203. Warnings controlled by the option can be disabled either by
  5204. specifying BYTE-SIZE of 'SIZE_MAX' or more or by
  5205. '-Wno-alloc-size-larger-than'. *Note Function Attributes::.
  5206. '-Wno-alloc-size-larger-than'
  5207. Disable '-Walloc-size-larger-than=' warnings. The option is
  5208. equivalent to '-Walloc-size-larger-than=''SIZE_MAX' or larger.
  5209. '-Walloca'
  5210. This option warns on all uses of 'alloca' in the source.
  5211. '-Walloca-larger-than=BYTE-SIZE'
  5212. This option warns on calls to 'alloca' with an integer argument
  5213. whose value is either zero, or that is not bounded by a controlling
  5214. predicate that limits its value to at most BYTE-SIZE. It also
  5215. warns for calls to 'alloca' where the bound value is unknown.
  5216. Arguments of non-integer types are considered unbounded even if
  5217. they appear to be constrained to the expected range.
  5218. For example, a bounded case of 'alloca' could be:
  5219. void func (size_t n)
  5220. {
  5221. void *p;
  5222. if (n <= 1000)
  5223. p = alloca (n);
  5224. else
  5225. p = malloc (n);
  5226. f (p);
  5227. }
  5228. In the above example, passing '-Walloca-larger-than=1000' would not
  5229. issue a warning because the call to 'alloca' is known to be at most
  5230. 1000 bytes. However, if '-Walloca-larger-than=500' were passed,
  5231. the compiler would emit a warning.
  5232. Unbounded uses, on the other hand, are uses of 'alloca' with no
  5233. controlling predicate constraining its integer argument. For
  5234. example:
  5235. void func ()
  5236. {
  5237. void *p = alloca (n);
  5238. f (p);
  5239. }
  5240. If '-Walloca-larger-than=500' were passed, the above would trigger
  5241. a warning, but this time because of the lack of bounds checking.
  5242. Note, that even seemingly correct code involving signed integers
  5243. could cause a warning:
  5244. void func (signed int n)
  5245. {
  5246. if (n < 500)
  5247. {
  5248. p = alloca (n);
  5249. f (p);
  5250. }
  5251. }
  5252. In the above example, N could be negative, causing a larger than
  5253. expected argument to be implicitly cast into the 'alloca' call.
  5254. This option also warns when 'alloca' is used in a loop.
  5255. '-Walloca-larger-than=''PTRDIFF_MAX' is enabled by default but is
  5256. usually only effective when '-ftree-vrp' is active (default for
  5257. '-O2' and above).
  5258. See also '-Wvla-larger-than=''byte-size'.
  5259. '-Wno-alloca-larger-than'
  5260. Disable '-Walloca-larger-than=' warnings. The option is equivalent
  5261. to '-Walloca-larger-than=''SIZE_MAX' or larger.
  5262. '-Warith-conversion'
  5263. Do warn about implicit conversions from arithmetic operations even
  5264. when conversion of the operands to the same type cannot change
  5265. their values. This affects warnings from '-Wconversion',
  5266. '-Wfloat-conversion', and '-Wsign-conversion'.
  5267. void f (char c, int i)
  5268. {
  5269. c = c + i; // warns with -Wconversion
  5270. c = c + 1; // only warns with -Warith-conversion
  5271. }
  5272. '-Warray-bounds'
  5273. '-Warray-bounds=N'
  5274. This option is only active when '-ftree-vrp' is active (default for
  5275. '-O2' and above). It warns about subscripts to arrays that are
  5276. always out of bounds. This warning is enabled by '-Wall'.
  5277. '-Warray-bounds=1'
  5278. This is the warning level of '-Warray-bounds' and is enabled
  5279. by '-Wall'; higher levels are not, and must be explicitly
  5280. requested.
  5281. '-Warray-bounds=2'
  5282. This warning level also warns about out of bounds access for
  5283. arrays at the end of a struct and for arrays accessed through
  5284. pointers. This warning level may give a larger number of
  5285. false positives and is deactivated by default.
  5286. '-Wattribute-alias=N'
  5287. '-Wno-attribute-alias'
  5288. Warn about declarations using the 'alias' and similar attributes
  5289. whose target is incompatible with the type of the alias. *Note
  5290. Declaring Attributes of Functions: Function Attributes.
  5291. '-Wattribute-alias=1'
  5292. The default warning level of the '-Wattribute-alias' option
  5293. diagnoses incompatibilities between the type of the alias
  5294. declaration and that of its target. Such incompatibilities
  5295. are typically indicative of bugs.
  5296. '-Wattribute-alias=2'
  5297. At this level '-Wattribute-alias' also diagnoses cases where
  5298. the attributes of the alias declaration are more restrictive
  5299. than the attributes applied to its target. These mismatches
  5300. can potentially result in incorrect code generation. In other
  5301. cases they may be benign and could be resolved simply by
  5302. adding the missing attribute to the target. For comparison,
  5303. see the '-Wmissing-attributes' option, which controls
  5304. diagnostics when the alias declaration is less restrictive
  5305. than the target, rather than more restrictive.
  5306. Attributes considered include 'alloc_align', 'alloc_size',
  5307. 'cold', 'const', 'hot', 'leaf', 'malloc', 'nonnull',
  5308. 'noreturn', 'nothrow', 'pure', 'returns_nonnull', and
  5309. 'returns_twice'.
  5310. '-Wattribute-alias' is equivalent to '-Wattribute-alias=1'. This
  5311. is the default. You can disable these warnings with either
  5312. '-Wno-attribute-alias' or '-Wattribute-alias=0'.
  5313. '-Wbool-compare'
  5314. Warn about boolean expression compared with an integer value
  5315. different from 'true'/'false'. For instance, the following
  5316. comparison is always false:
  5317. int n = 5;
  5318. ...
  5319. if ((n > 1) == 2) { ... }
  5320. This warning is enabled by '-Wall'.
  5321. '-Wbool-operation'
  5322. Warn about suspicious operations on expressions of a boolean type.
  5323. For instance, bitwise negation of a boolean is very likely a bug in
  5324. the program. For C, this warning also warns about incrementing or
  5325. decrementing a boolean, which rarely makes sense. (In C++,
  5326. decrementing a boolean is always invalid. Incrementing a boolean
  5327. is invalid in C++17, and deprecated otherwise.)
  5328. This warning is enabled by '-Wall'.
  5329. '-Wduplicated-branches'
  5330. Warn when an if-else has identical branches. This warning detects
  5331. cases like
  5332. if (p != NULL)
  5333. return 0;
  5334. else
  5335. return 0;
  5336. It doesn't warn when both branches contain just a null statement.
  5337. This warning also warn for conditional operators:
  5338. int i = x ? *p : *p;
  5339. '-Wduplicated-cond'
  5340. Warn about duplicated conditions in an if-else-if chain. For
  5341. instance, warn for the following code:
  5342. if (p->q != NULL) { ... }
  5343. else if (p->q != NULL) { ... }
  5344. '-Wframe-address'
  5345. Warn when the '__builtin_frame_address' or
  5346. '__builtin_return_address' is called with an argument greater than
  5347. 0. Such calls may return indeterminate values or crash the
  5348. program. The warning is included in '-Wall'.
  5349. '-Wno-discarded-qualifiers (C and Objective-C only)'
  5350. Do not warn if type qualifiers on pointers are being discarded.
  5351. Typically, the compiler warns if a 'const char *' variable is
  5352. passed to a function that takes a 'char *' parameter. This option
  5353. can be used to suppress such a warning.
  5354. '-Wno-discarded-array-qualifiers (C and Objective-C only)'
  5355. Do not warn if type qualifiers on arrays which are pointer targets
  5356. are being discarded. Typically, the compiler warns if a 'const int
  5357. (*)[]' variable is passed to a function that takes a 'int (*)[]'
  5358. parameter. This option can be used to suppress such a warning.
  5359. '-Wno-incompatible-pointer-types (C and Objective-C only)'
  5360. Do not warn when there is a conversion between pointers that have
  5361. incompatible types. This warning is for cases not covered by
  5362. '-Wno-pointer-sign', which warns for pointer argument passing or
  5363. assignment with different signedness.
  5364. '-Wno-int-conversion (C and Objective-C only)'
  5365. Do not warn about incompatible integer to pointer and pointer to
  5366. integer conversions. This warning is about implicit conversions;
  5367. for explicit conversions the warnings '-Wno-int-to-pointer-cast'
  5368. and '-Wno-pointer-to-int-cast' may be used.
  5369. '-Wzero-length-bounds'
  5370. Warn about accesses to elements of zero-length array members that
  5371. might overlap other members of the same object. Declaring interior
  5372. zero-length arrays is discouraged because accesses to them are
  5373. undefined. See *Note Zero Length::.
  5374. For example, the first two stores in function 'bad' are diagnosed
  5375. because the array elements overlap the subsequent members 'b' and
  5376. 'c'. The third store is diagnosed by '-Warray-bounds' because it
  5377. is beyond the bounds of the enclosing object.
  5378. struct X { int a[0]; int b, c; };
  5379. struct X x;
  5380. void bad (void)
  5381. {
  5382. x.a[0] = 0; // -Wzero-length-bounds
  5383. x.a[1] = 1; // -Wzero-length-bounds
  5384. x.a[2] = 2; // -Warray-bounds
  5385. }
  5386. Option '-Wzero-length-bounds' is enabled by '-Warray-bounds'.
  5387. '-Wno-div-by-zero'
  5388. Do not warn about compile-time integer division by zero.
  5389. Floating-point division by zero is not warned about, as it can be a
  5390. legitimate way of obtaining infinities and NaNs.
  5391. '-Wsystem-headers'
  5392. Print warning messages for constructs found in system header files.
  5393. Warnings from system headers are normally suppressed, on the
  5394. assumption that they usually do not indicate real problems and
  5395. would only make the compiler output harder to read. Using this
  5396. command-line option tells GCC to emit warnings from system headers
  5397. as if they occurred in user code. However, note that using '-Wall'
  5398. in conjunction with this option does _not_ warn about unknown
  5399. pragmas in system headers--for that, '-Wunknown-pragmas' must also
  5400. be used.
  5401. '-Wtautological-compare'
  5402. Warn if a self-comparison always evaluates to true or false. This
  5403. warning detects various mistakes such as:
  5404. int i = 1;
  5405. ...
  5406. if (i > i) { ... }
  5407. This warning also warns about bitwise comparisons that always
  5408. evaluate to true or false, for instance:
  5409. if ((a & 16) == 10) { ... }
  5410. will always be false.
  5411. This warning is enabled by '-Wall'.
  5412. '-Wtrampolines'
  5413. Warn about trampolines generated for pointers to nested functions.
  5414. A trampoline is a small piece of data or code that is created at
  5415. run time on the stack when the address of a nested function is
  5416. taken, and is used to call the nested function indirectly. For
  5417. some targets, it is made up of data only and thus requires no
  5418. special treatment. But, for most targets, it is made up of code
  5419. and thus requires the stack to be made executable in order for the
  5420. program to work properly.
  5421. '-Wfloat-equal'
  5422. Warn if floating-point values are used in equality comparisons.
  5423. The idea behind this is that sometimes it is convenient (for the
  5424. programmer) to consider floating-point values as approximations to
  5425. infinitely precise real numbers. If you are doing this, then you
  5426. need to compute (by analyzing the code, or in some other way) the
  5427. maximum or likely maximum error that the computation introduces,
  5428. and allow for it when performing comparisons (and when producing
  5429. output, but that's a different problem). In particular, instead of
  5430. testing for equality, you should check to see whether the two
  5431. values have ranges that overlap; and this is done with the
  5432. relational operators, so equality comparisons are probably
  5433. mistaken.
  5434. '-Wtraditional (C and Objective-C only)'
  5435. Warn about certain constructs that behave differently in
  5436. traditional and ISO C. Also warn about ISO C constructs that have
  5437. no traditional C equivalent, and/or problematic constructs that
  5438. should be avoided.
  5439. * Macro parameters that appear within string literals in the
  5440. macro body. In traditional C macro replacement takes place
  5441. within string literals, but in ISO C it does not.
  5442. * In traditional C, some preprocessor directives did not exist.
  5443. Traditional preprocessors only considered a line to be a
  5444. directive if the '#' appeared in column 1 on the line.
  5445. Therefore '-Wtraditional' warns about directives that
  5446. traditional C understands but ignores because the '#' does not
  5447. appear as the first character on the line. It also suggests
  5448. you hide directives like '#pragma' not understood by
  5449. traditional C by indenting them. Some traditional
  5450. implementations do not recognize '#elif', so this option
  5451. suggests avoiding it altogether.
  5452. * A function-like macro that appears without arguments.
  5453. * The unary plus operator.
  5454. * The 'U' integer constant suffix, or the 'F' or 'L'
  5455. floating-point constant suffixes. (Traditional C does support
  5456. the 'L' suffix on integer constants.) Note, these suffixes
  5457. appear in macros defined in the system headers of most modern
  5458. systems, e.g. the '_MIN'/'_MAX' macros in '<limits.h>'. Use
  5459. of these macros in user code might normally lead to spurious
  5460. warnings, however GCC's integrated preprocessor has enough
  5461. context to avoid warning in these cases.
  5462. * A function declared external in one block and then used after
  5463. the end of the block.
  5464. * A 'switch' statement has an operand of type 'long'.
  5465. * A non-'static' function declaration follows a 'static' one.
  5466. This construct is not accepted by some traditional C
  5467. compilers.
  5468. * The ISO type of an integer constant has a different width or
  5469. signedness from its traditional type. This warning is only
  5470. issued if the base of the constant is ten. I.e. hexadecimal
  5471. or octal values, which typically represent bit patterns, are
  5472. not warned about.
  5473. * Usage of ISO string concatenation is detected.
  5474. * Initialization of automatic aggregates.
  5475. * Identifier conflicts with labels. Traditional C lacks a
  5476. separate namespace for labels.
  5477. * Initialization of unions. If the initializer is zero, the
  5478. warning is omitted. This is done under the assumption that
  5479. the zero initializer in user code appears conditioned on e.g.
  5480. '__STDC__' to avoid missing initializer warnings and relies on
  5481. default initialization to zero in the traditional C case.
  5482. * Conversions by prototypes between fixed/floating-point values
  5483. and vice versa. The absence of these prototypes when
  5484. compiling with traditional C causes serious problems. This is
  5485. a subset of the possible conversion warnings; for the full set
  5486. use '-Wtraditional-conversion'.
  5487. * Use of ISO C style function definitions. This warning
  5488. intentionally is _not_ issued for prototype declarations or
  5489. variadic functions because these ISO C features appear in your
  5490. code when using libiberty's traditional C compatibility
  5491. macros, 'PARAMS' and 'VPARAMS'. This warning is also bypassed
  5492. for nested functions because that feature is already a GCC
  5493. extension and thus not relevant to traditional C
  5494. compatibility.
  5495. '-Wtraditional-conversion (C and Objective-C only)'
  5496. Warn if a prototype causes a type conversion that is different from
  5497. what would happen to the same argument in the absence of a
  5498. prototype. This includes conversions of fixed point to floating
  5499. and vice versa, and conversions changing the width or signedness of
  5500. a fixed-point argument except when the same as the default
  5501. promotion.
  5502. '-Wdeclaration-after-statement (C and Objective-C only)'
  5503. Warn when a declaration is found after a statement in a block.
  5504. This construct, known from C++, was introduced with ISO C99 and is
  5505. by default allowed in GCC. It is not supported by ISO C90. *Note
  5506. Mixed Declarations::.
  5507. '-Wshadow'
  5508. Warn whenever a local variable or type declaration shadows another
  5509. variable, parameter, type, class member (in C++), or instance
  5510. variable (in Objective-C) or whenever a built-in function is
  5511. shadowed. Note that in C++, the compiler warns if a local variable
  5512. shadows an explicit typedef, but not if it shadows a
  5513. struct/class/enum. If this warning is enabled, it includes also
  5514. all instances of local shadowing. This means that
  5515. '-Wno-shadow=local' and '-Wno-shadow=compatible-local' are ignored
  5516. when '-Wshadow' is used. Same as '-Wshadow=global'.
  5517. '-Wno-shadow-ivar (Objective-C only)'
  5518. Do not warn whenever a local variable shadows an instance variable
  5519. in an Objective-C method.
  5520. '-Wshadow=global'
  5521. Warn for any shadowing. Same as '-Wshadow'.
  5522. '-Wshadow=local'
  5523. Warn when a local variable shadows another local variable or
  5524. parameter.
  5525. '-Wshadow=compatible-local'
  5526. Warn when a local variable shadows another local variable or
  5527. parameter whose type is compatible with that of the shadowing
  5528. variable. In C++, type compatibility here means the type of the
  5529. shadowing variable can be converted to that of the shadowed
  5530. variable. The creation of this flag (in addition to
  5531. '-Wshadow=local') is based on the idea that when a local variable
  5532. shadows another one of incompatible type, it is most likely
  5533. intentional, not a bug or typo, as shown in the following example:
  5534. for (SomeIterator i = SomeObj.begin(); i != SomeObj.end(); ++i)
  5535. {
  5536. for (int i = 0; i < N; ++i)
  5537. {
  5538. ...
  5539. }
  5540. ...
  5541. }
  5542. Since the two variable 'i' in the example above have incompatible
  5543. types, enabling only '-Wshadow=compatible-local' does not emit a
  5544. warning. Because their types are incompatible, if a programmer
  5545. accidentally uses one in place of the other, type checking is
  5546. expected to catch that and emit an error or warning. Use of this
  5547. flag instead of '-Wshadow=local' can possibly reduce the number of
  5548. warnings triggered by intentional shadowing. Note that this also
  5549. means that shadowing 'const char *i' by 'char *i' does not emit a
  5550. warning.
  5551. This warning is also enabled by '-Wshadow=local'.
  5552. '-Wlarger-than=BYTE-SIZE'
  5553. Warn whenever an object is defined whose size exceeds BYTE-SIZE.
  5554. '-Wlarger-than=''PTRDIFF_MAX' is enabled by default. Warnings
  5555. controlled by the option can be disabled either by specifying
  5556. BYTE-SIZE of 'SIZE_MAX' or more or by '-Wno-larger-than'.
  5557. '-Wno-larger-than'
  5558. Disable '-Wlarger-than=' warnings. The option is equivalent to
  5559. '-Wlarger-than=''SIZE_MAX' or larger.
  5560. '-Wframe-larger-than=BYTE-SIZE'
  5561. Warn if the size of a function frame exceeds BYTE-SIZE. The
  5562. computation done to determine the stack frame size is approximate
  5563. and not conservative. The actual requirements may be somewhat
  5564. greater than BYTE-SIZE even if you do not get a warning. In
  5565. addition, any space allocated via 'alloca', variable-length arrays,
  5566. or related constructs is not included by the compiler when
  5567. determining whether or not to issue a warning.
  5568. '-Wframe-larger-than=''PTRDIFF_MAX' is enabled by default.
  5569. Warnings controlled by the option can be disabled either by
  5570. specifying BYTE-SIZE of 'SIZE_MAX' or more or by
  5571. '-Wno-frame-larger-than'.
  5572. '-Wno-frame-larger-than'
  5573. Disable '-Wframe-larger-than=' warnings. The option is equivalent
  5574. to '-Wframe-larger-than=''SIZE_MAX' or larger.
  5575. '-Wno-free-nonheap-object'
  5576. Do not warn when attempting to free an object that was not
  5577. allocated on the heap.
  5578. '-Wstack-usage=BYTE-SIZE'
  5579. Warn if the stack usage of a function might exceed BYTE-SIZE. The
  5580. computation done to determine the stack usage is conservative. Any
  5581. space allocated via 'alloca', variable-length arrays, or related
  5582. constructs is included by the compiler when determining whether or
  5583. not to issue a warning.
  5584. The message is in keeping with the output of '-fstack-usage'.
  5585. * If the stack usage is fully static but exceeds the specified
  5586. amount, it's:
  5587. warning: stack usage is 1120 bytes
  5588. * If the stack usage is (partly) dynamic but bounded, it's:
  5589. warning: stack usage might be 1648 bytes
  5590. * If the stack usage is (partly) dynamic and not bounded, it's:
  5591. warning: stack usage might be unbounded
  5592. '-Wstack-usage=''PTRDIFF_MAX' is enabled by default. Warnings
  5593. controlled by the option can be disabled either by specifying
  5594. BYTE-SIZE of 'SIZE_MAX' or more or by '-Wno-stack-usage'.
  5595. '-Wno-stack-usage'
  5596. Disable '-Wstack-usage=' warnings. The option is equivalent to
  5597. '-Wstack-usage=''SIZE_MAX' or larger.
  5598. '-Wunsafe-loop-optimizations'
  5599. Warn if the loop cannot be optimized because the compiler cannot
  5600. assume anything on the bounds of the loop indices. With
  5601. '-funsafe-loop-optimizations' warn if the compiler makes such
  5602. assumptions.
  5603. '-Wno-pedantic-ms-format (MinGW targets only)'
  5604. When used in combination with '-Wformat' and '-pedantic' without
  5605. GNU extensions, this option disables the warnings about non-ISO
  5606. 'printf' / 'scanf' format width specifiers 'I32', 'I64', and 'I'
  5607. used on Windows targets, which depend on the MS runtime.
  5608. '-Wpointer-arith'
  5609. Warn about anything that depends on the "size of" a function type
  5610. or of 'void'. GNU C assigns these types a size of 1, for
  5611. convenience in calculations with 'void *' pointers and pointers to
  5612. functions. In C++, warn also when an arithmetic operation involves
  5613. 'NULL'. This warning is also enabled by '-Wpedantic'.
  5614. '-Wno-pointer-compare'
  5615. Do not warn if a pointer is compared with a zero character
  5616. constant. This usually means that the pointer was meant to be
  5617. dereferenced. For example:
  5618. const char *p = foo ();
  5619. if (p == '\0')
  5620. return 42;
  5621. Note that the code above is invalid in C++11.
  5622. This warning is enabled by default.
  5623. '-Wtype-limits'
  5624. Warn if a comparison is always true or always false due to the
  5625. limited range of the data type, but do not warn for constant
  5626. expressions. For example, warn if an unsigned variable is compared
  5627. against zero with '<' or '>='. This warning is also enabled by
  5628. '-Wextra'.
  5629. '-Wabsolute-value (C and Objective-C only)'
  5630. Warn for calls to standard functions that compute the absolute
  5631. value of an argument when a more appropriate standard function is
  5632. available. For example, calling 'abs(3.14)' triggers the warning
  5633. because the appropriate function to call to compute the absolute
  5634. value of a double argument is 'fabs'. The option also triggers
  5635. warnings when the argument in a call to such a function has an
  5636. unsigned type. This warning can be suppressed with an explicit
  5637. type cast and it is also enabled by '-Wextra'.
  5638. '-Wcomment'
  5639. '-Wcomments'
  5640. Warn whenever a comment-start sequence '/*' appears in a '/*'
  5641. comment, or whenever a backslash-newline appears in a '//' comment.
  5642. This warning is enabled by '-Wall'.
  5643. '-Wtrigraphs'
  5644. Warn if any trigraphs are encountered that might change the meaning
  5645. of the program. Trigraphs within comments are not warned about,
  5646. except those that would form escaped newlines.
  5647. This option is implied by '-Wall'. If '-Wall' is not given, this
  5648. option is still enabled unless trigraphs are enabled. To get
  5649. trigraph conversion without warnings, but get the other '-Wall'
  5650. warnings, use '-trigraphs -Wall -Wno-trigraphs'.
  5651. '-Wundef'
  5652. Warn if an undefined identifier is evaluated in an '#if' directive.
  5653. Such identifiers are replaced with zero.
  5654. '-Wexpansion-to-defined'
  5655. Warn whenever 'defined' is encountered in the expansion of a macro
  5656. (including the case where the macro is expanded by an '#if'
  5657. directive). Such usage is not portable. This warning is also
  5658. enabled by '-Wpedantic' and '-Wextra'.
  5659. '-Wunused-macros'
  5660. Warn about macros defined in the main file that are unused. A
  5661. macro is "used" if it is expanded or tested for existence at least
  5662. once. The preprocessor also warns if the macro has not been used
  5663. at the time it is redefined or undefined.
  5664. Built-in macros, macros defined on the command line, and macros
  5665. defined in include files are not warned about.
  5666. _Note:_ If a macro is actually used, but only used in skipped
  5667. conditional blocks, then the preprocessor reports it as unused. To
  5668. avoid the warning in such a case, you might improve the scope of
  5669. the macro's definition by, for example, moving it into the first
  5670. skipped block. Alternatively, you could provide a dummy use with
  5671. something like:
  5672. #if defined the_macro_causing_the_warning
  5673. #endif
  5674. '-Wno-endif-labels'
  5675. Do not warn whenever an '#else' or an '#endif' are followed by
  5676. text. This sometimes happens in older programs with code of the
  5677. form
  5678. #if FOO
  5679. ...
  5680. #else FOO
  5681. ...
  5682. #endif FOO
  5683. The second and third 'FOO' should be in comments. This warning is
  5684. on by default.
  5685. '-Wbad-function-cast (C and Objective-C only)'
  5686. Warn when a function call is cast to a non-matching type. For
  5687. example, warn if a call to a function returning an integer type is
  5688. cast to a pointer type.
  5689. '-Wc90-c99-compat (C and Objective-C only)'
  5690. Warn about features not present in ISO C90, but present in ISO C99.
  5691. For instance, warn about use of variable length arrays, 'long long'
  5692. type, 'bool' type, compound literals, designated initializers, and
  5693. so on. This option is independent of the standards mode. Warnings
  5694. are disabled in the expression that follows '__extension__'.
  5695. '-Wc99-c11-compat (C and Objective-C only)'
  5696. Warn about features not present in ISO C99, but present in ISO C11.
  5697. For instance, warn about use of anonymous structures and unions,
  5698. '_Atomic' type qualifier, '_Thread_local' storage-class specifier,
  5699. '_Alignas' specifier, 'Alignof' operator, '_Generic' keyword, and
  5700. so on. This option is independent of the standards mode. Warnings
  5701. are disabled in the expression that follows '__extension__'.
  5702. '-Wc11-c2x-compat (C and Objective-C only)'
  5703. Warn about features not present in ISO C11, but present in ISO C2X.
  5704. For instance, warn about omitting the string in '_Static_assert',
  5705. use of '[[]]' syntax for attributes, use of decimal floating-point
  5706. types, and so on. This option is independent of the standards
  5707. mode. Warnings are disabled in the expression that follows
  5708. '__extension__'.
  5709. '-Wc++-compat (C and Objective-C only)'
  5710. Warn about ISO C constructs that are outside of the common subset
  5711. of ISO C and ISO C++, e.g. request for implicit conversion from
  5712. 'void *' to a pointer to non-'void' type.
  5713. '-Wc++11-compat (C++ and Objective-C++ only)'
  5714. Warn about C++ constructs whose meaning differs between ISO C++
  5715. 1998 and ISO C++ 2011, e.g., identifiers in ISO C++ 1998 that are
  5716. keywords in ISO C++ 2011. This warning turns on '-Wnarrowing' and
  5717. is enabled by '-Wall'.
  5718. '-Wc++14-compat (C++ and Objective-C++ only)'
  5719. Warn about C++ constructs whose meaning differs between ISO C++
  5720. 2011 and ISO C++ 2014. This warning is enabled by '-Wall'.
  5721. '-Wc++17-compat (C++ and Objective-C++ only)'
  5722. Warn about C++ constructs whose meaning differs between ISO C++
  5723. 2014 and ISO C++ 2017. This warning is enabled by '-Wall'.
  5724. '-Wc++20-compat (C++ and Objective-C++ only)'
  5725. Warn about C++ constructs whose meaning differs between ISO C++
  5726. 2017 and ISO C++ 2020. This warning is enabled by '-Wall'.
  5727. '-Wcast-qual'
  5728. Warn whenever a pointer is cast so as to remove a type qualifier
  5729. from the target type. For example, warn if a 'const char *' is
  5730. cast to an ordinary 'char *'.
  5731. Also warn when making a cast that introduces a type qualifier in an
  5732. unsafe way. For example, casting 'char **' to 'const char **' is
  5733. unsafe, as in this example:
  5734. /* p is char ** value. */
  5735. const char **q = (const char **) p;
  5736. /* Assignment of readonly string to const char * is OK. */
  5737. *q = "string";
  5738. /* Now char** pointer points to read-only memory. */
  5739. **p = 'b';
  5740. '-Wcast-align'
  5741. Warn whenever a pointer is cast such that the required alignment of
  5742. the target is increased. For example, warn if a 'char *' is cast
  5743. to an 'int *' on machines where integers can only be accessed at
  5744. two- or four-byte boundaries.
  5745. '-Wcast-align=strict'
  5746. Warn whenever a pointer is cast such that the required alignment of
  5747. the target is increased. For example, warn if a 'char *' is cast
  5748. to an 'int *' regardless of the target machine.
  5749. '-Wcast-function-type'
  5750. Warn when a function pointer is cast to an incompatible function
  5751. pointer. In a cast involving function types with a variable
  5752. argument list only the types of initial arguments that are provided
  5753. are considered. Any parameter of pointer-type matches any other
  5754. pointer-type. Any benign differences in integral types are
  5755. ignored, like 'int' vs. 'long' on ILP32 targets. Likewise type
  5756. qualifiers are ignored. The function type 'void (*) (void)' is
  5757. special and matches everything, which can be used to suppress this
  5758. warning. In a cast involving pointer to member types this warning
  5759. warns whenever the type cast is changing the pointer to member
  5760. type. This warning is enabled by '-Wextra'.
  5761. '-Wwrite-strings'
  5762. When compiling C, give string constants the type 'const
  5763. char[LENGTH]' so that copying the address of one into a non-'const'
  5764. 'char *' pointer produces a warning. These warnings help you find
  5765. at compile time code that can try to write into a string constant,
  5766. but only if you have been very careful about using 'const' in
  5767. declarations and prototypes. Otherwise, it is just a nuisance.
  5768. This is why we did not make '-Wall' request these warnings.
  5769. When compiling C++, warn about the deprecated conversion from
  5770. string literals to 'char *'. This warning is enabled by default
  5771. for C++ programs.
  5772. '-Wclobbered'
  5773. Warn for variables that might be changed by 'longjmp' or 'vfork'.
  5774. This warning is also enabled by '-Wextra'.
  5775. '-Wconversion'
  5776. Warn for implicit conversions that may alter a value. This
  5777. includes conversions between real and integer, like 'abs (x)' when
  5778. 'x' is 'double'; conversions between signed and unsigned, like
  5779. 'unsigned ui = -1'; and conversions to smaller types, like 'sqrtf
  5780. (M_PI)'. Do not warn for explicit casts like 'abs ((int) x)' and
  5781. 'ui = (unsigned) -1', or if the value is not changed by the
  5782. conversion like in 'abs (2.0)'. Warnings about conversions between
  5783. signed and unsigned integers can be disabled by using
  5784. '-Wno-sign-conversion'.
  5785. For C++, also warn for confusing overload resolution for
  5786. user-defined conversions; and conversions that never use a type
  5787. conversion operator: conversions to 'void', the same type, a base
  5788. class or a reference to them. Warnings about conversions between
  5789. signed and unsigned integers are disabled by default in C++ unless
  5790. '-Wsign-conversion' is explicitly enabled.
  5791. Warnings about conversion from arithmetic on a small type back to
  5792. that type are only given with '-Warith-conversion'.
  5793. '-Wdangling-else'
  5794. Warn about constructions where there may be confusion to which 'if'
  5795. statement an 'else' branch belongs. Here is an example of such a
  5796. case:
  5797. {
  5798. if (a)
  5799. if (b)
  5800. foo ();
  5801. else
  5802. bar ();
  5803. }
  5804. In C/C++, every 'else' branch belongs to the innermost possible
  5805. 'if' statement, which in this example is 'if (b)'. This is often
  5806. not what the programmer expected, as illustrated in the above
  5807. example by indentation the programmer chose. When there is the
  5808. potential for this confusion, GCC issues a warning when this flag
  5809. is specified. To eliminate the warning, add explicit braces around
  5810. the innermost 'if' statement so there is no way the 'else' can
  5811. belong to the enclosing 'if'. The resulting code looks like this:
  5812. {
  5813. if (a)
  5814. {
  5815. if (b)
  5816. foo ();
  5817. else
  5818. bar ();
  5819. }
  5820. }
  5821. This warning is enabled by '-Wparentheses'.
  5822. '-Wdate-time'
  5823. Warn when macros '__TIME__', '__DATE__' or '__TIMESTAMP__' are
  5824. encountered as they might prevent bit-wise-identical reproducible
  5825. compilations.
  5826. '-Wempty-body'
  5827. Warn if an empty body occurs in an 'if', 'else' or 'do while'
  5828. statement. This warning is also enabled by '-Wextra'.
  5829. '-Wno-endif-labels'
  5830. Do not warn about stray tokens after '#else' and '#endif'.
  5831. '-Wenum-compare'
  5832. Warn about a comparison between values of different enumerated
  5833. types. In C++ enumerated type mismatches in conditional
  5834. expressions are also diagnosed and the warning is enabled by
  5835. default. In C this warning is enabled by '-Wall'.
  5836. '-Wenum-conversion (C, Objective-C only)'
  5837. Warn when a value of enumerated type is implicitly converted to a
  5838. different enumerated type. This warning is enabled by '-Wextra'.
  5839. '-Wjump-misses-init (C, Objective-C only)'
  5840. Warn if a 'goto' statement or a 'switch' statement jumps forward
  5841. across the initialization of a variable, or jumps backward to a
  5842. label after the variable has been initialized. This only warns
  5843. about variables that are initialized when they are declared. This
  5844. warning is only supported for C and Objective-C; in C++ this sort
  5845. of branch is an error in any case.
  5846. '-Wjump-misses-init' is included in '-Wc++-compat'. It can be
  5847. disabled with the '-Wno-jump-misses-init' option.
  5848. '-Wsign-compare'
  5849. Warn when a comparison between signed and unsigned values could
  5850. produce an incorrect result when the signed value is converted to
  5851. unsigned. In C++, this warning is also enabled by '-Wall'. In C,
  5852. it is also enabled by '-Wextra'.
  5853. '-Wsign-conversion'
  5854. Warn for implicit conversions that may change the sign of an
  5855. integer value, like assigning a signed integer expression to an
  5856. unsigned integer variable. An explicit cast silences the warning.
  5857. In C, this option is enabled also by '-Wconversion'.
  5858. '-Wfloat-conversion'
  5859. Warn for implicit conversions that reduce the precision of a real
  5860. value. This includes conversions from real to integer, and from
  5861. higher precision real to lower precision real values. This option
  5862. is also enabled by '-Wconversion'.
  5863. '-Wno-scalar-storage-order'
  5864. Do not warn on suspicious constructs involving reverse scalar
  5865. storage order.
  5866. '-Wsizeof-pointer-div'
  5867. Warn for suspicious divisions of two sizeof expressions that divide
  5868. the pointer size by the element size, which is the usual way to
  5869. compute the array size but won't work out correctly with pointers.
  5870. This warning warns e.g. about 'sizeof (ptr) / sizeof (ptr[0])' if
  5871. 'ptr' is not an array, but a pointer. This warning is enabled by
  5872. '-Wall'.
  5873. '-Wsizeof-pointer-memaccess'
  5874. Warn for suspicious length parameters to certain string and memory
  5875. built-in functions if the argument uses 'sizeof'. This warning
  5876. triggers for example for 'memset (ptr, 0, sizeof (ptr));' if 'ptr'
  5877. is not an array, but a pointer, and suggests a possible fix, or
  5878. about 'memcpy (&foo, ptr, sizeof (&foo));'.
  5879. '-Wsizeof-pointer-memaccess' also warns about calls to bounded
  5880. string copy functions like 'strncat' or 'strncpy' that specify as
  5881. the bound a 'sizeof' expression of the source array. For example,
  5882. in the following function the call to 'strncat' specifies the size
  5883. of the source string as the bound. That is almost certainly a
  5884. mistake and so the call is diagnosed.
  5885. void make_file (const char *name)
  5886. {
  5887. char path[PATH_MAX];
  5888. strncpy (path, name, sizeof path - 1);
  5889. strncat (path, ".text", sizeof ".text");
  5890. ...
  5891. }
  5892. The '-Wsizeof-pointer-memaccess' option is enabled by '-Wall'.
  5893. '-Wno-sizeof-array-argument'
  5894. Do not warn when the 'sizeof' operator is applied to a parameter
  5895. that is declared as an array in a function definition. This
  5896. warning is enabled by default for C and C++ programs.
  5897. '-Wmemset-elt-size'
  5898. Warn for suspicious calls to the 'memset' built-in function, if the
  5899. first argument references an array, and the third argument is a
  5900. number equal to the number of elements, but not equal to the size
  5901. of the array in memory. This indicates that the user has omitted a
  5902. multiplication by the element size. This warning is enabled by
  5903. '-Wall'.
  5904. '-Wmemset-transposed-args'
  5905. Warn for suspicious calls to the 'memset' built-in function where
  5906. the second argument is not zero and the third argument is zero.
  5907. For example, the call 'memset (buf, sizeof buf, 0)' is diagnosed
  5908. because 'memset (buf, 0, sizeof buf)' was meant instead. The
  5909. diagnostic is only emitted if the third argument is a literal zero.
  5910. Otherwise, if it is an expression that is folded to zero, or a cast
  5911. of zero to some type, it is far less likely that the arguments have
  5912. been mistakenly transposed and no warning is emitted. This warning
  5913. is enabled by '-Wall'.
  5914. '-Waddress'
  5915. Warn about suspicious uses of memory addresses. These include
  5916. using the address of a function in a conditional expression, such
  5917. as 'void func(void); if (func)', and comparisons against the memory
  5918. address of a string literal, such as 'if (x == "abc")'. Such uses
  5919. typically indicate a programmer error: the address of a function
  5920. always evaluates to true, so their use in a conditional usually
  5921. indicate that the programmer forgot the parentheses in a function
  5922. call; and comparisons against string literals result in unspecified
  5923. behavior and are not portable in C, so they usually indicate that
  5924. the programmer intended to use 'strcmp'. This warning is enabled
  5925. by '-Wall'.
  5926. '-Wno-address-of-packed-member'
  5927. Do not warn when the address of packed member of struct or union is
  5928. taken, which usually results in an unaligned pointer value. This
  5929. is enabled by default.
  5930. '-Wlogical-op'
  5931. Warn about suspicious uses of logical operators in expressions.
  5932. This includes using logical operators in contexts where a bit-wise
  5933. operator is likely to be expected. Also warns when the operands of
  5934. a logical operator are the same:
  5935. extern int a;
  5936. if (a < 0 && a < 0) { ... }
  5937. '-Wlogical-not-parentheses'
  5938. Warn about logical not used on the left hand side operand of a
  5939. comparison. This option does not warn if the right operand is
  5940. considered to be a boolean expression. Its purpose is to detect
  5941. suspicious code like the following:
  5942. int a;
  5943. ...
  5944. if (!a > 1) { ... }
  5945. It is possible to suppress the warning by wrapping the LHS into
  5946. parentheses:
  5947. if ((!a) > 1) { ... }
  5948. This warning is enabled by '-Wall'.
  5949. '-Waggregate-return'
  5950. Warn if any functions that return structures or unions are defined
  5951. or called. (In languages where you can return an array, this also
  5952. elicits a warning.)
  5953. '-Wno-aggressive-loop-optimizations'
  5954. Warn if in a loop with constant number of iterations the compiler
  5955. detects undefined behavior in some statement during one or more of
  5956. the iterations.
  5957. '-Wno-attributes'
  5958. Do not warn if an unexpected '__attribute__' is used, such as
  5959. unrecognized attributes, function attributes applied to variables,
  5960. etc. This does not stop errors for incorrect use of supported
  5961. attributes.
  5962. '-Wno-builtin-declaration-mismatch'
  5963. Warn if a built-in function is declared with an incompatible
  5964. signature or as a non-function, or when a built-in function
  5965. declared with a type that does not include a prototype is called
  5966. with arguments whose promoted types do not match those expected by
  5967. the function. When '-Wextra' is specified, also warn when a
  5968. built-in function that takes arguments is declared without a
  5969. prototype. The '-Wbuiltin-declaration-mismatch' warning is enabled
  5970. by default. To avoid the warning include the appropriate header to
  5971. bring the prototypes of built-in functions into scope.
  5972. For example, the call to 'memset' below is diagnosed by the warning
  5973. because the function expects a value of type 'size_t' as its
  5974. argument but the type of '32' is 'int'. With '-Wextra', the
  5975. declaration of the function is diagnosed as well.
  5976. extern void* memset ();
  5977. void f (void *d)
  5978. {
  5979. memset (d, '\0', 32);
  5980. }
  5981. '-Wno-builtin-macro-redefined'
  5982. Do not warn if certain built-in macros are redefined. This
  5983. suppresses warnings for redefinition of '__TIMESTAMP__',
  5984. '__TIME__', '__DATE__', '__FILE__', and '__BASE_FILE__'.
  5985. '-Wstrict-prototypes (C and Objective-C only)'
  5986. Warn if a function is declared or defined without specifying the
  5987. argument types. (An old-style function definition is permitted
  5988. without a warning if preceded by a declaration that specifies the
  5989. argument types.)
  5990. '-Wold-style-declaration (C and Objective-C only)'
  5991. Warn for obsolescent usages, according to the C Standard, in a
  5992. declaration. For example, warn if storage-class specifiers like
  5993. 'static' are not the first things in a declaration. This warning
  5994. is also enabled by '-Wextra'.
  5995. '-Wold-style-definition (C and Objective-C only)'
  5996. Warn if an old-style function definition is used. A warning is
  5997. given even if there is a previous prototype. A definition using
  5998. '()' is not considered an old-style definition in C2X mode, because
  5999. it is equivalent to '(void)' in that case, but is considered an
  6000. old-style definition for older standards.
  6001. '-Wmissing-parameter-type (C and Objective-C only)'
  6002. A function parameter is declared without a type specifier in
  6003. K&R-style functions:
  6004. void foo(bar) { }
  6005. This warning is also enabled by '-Wextra'.
  6006. '-Wmissing-prototypes (C and Objective-C only)'
  6007. Warn if a global function is defined without a previous prototype
  6008. declaration. This warning is issued even if the definition itself
  6009. provides a prototype. Use this option to detect global functions
  6010. that do not have a matching prototype declaration in a header file.
  6011. This option is not valid for C++ because all function declarations
  6012. provide prototypes and a non-matching declaration declares an
  6013. overload rather than conflict with an earlier declaration. Use
  6014. '-Wmissing-declarations' to detect missing declarations in C++.
  6015. '-Wmissing-declarations'
  6016. Warn if a global function is defined without a previous
  6017. declaration. Do so even if the definition itself provides a
  6018. prototype. Use this option to detect global functions that are not
  6019. declared in header files. In C, no warnings are issued for
  6020. functions with previous non-prototype declarations; use
  6021. '-Wmissing-prototypes' to detect missing prototypes. In C++, no
  6022. warnings are issued for function templates, or for inline
  6023. functions, or for functions in anonymous namespaces.
  6024. '-Wmissing-field-initializers'
  6025. Warn if a structure's initializer has some fields missing. For
  6026. example, the following code causes such a warning, because 'x.h' is
  6027. implicitly zero:
  6028. struct s { int f, g, h; };
  6029. struct s x = { 3, 4 };
  6030. This option does not warn about designated initializers, so the
  6031. following modification does not trigger a warning:
  6032. struct s { int f, g, h; };
  6033. struct s x = { .f = 3, .g = 4 };
  6034. In C this option does not warn about the universal zero initializer
  6035. '{ 0 }':
  6036. struct s { int f, g, h; };
  6037. struct s x = { 0 };
  6038. Likewise, in C++ this option does not warn about the empty { }
  6039. initializer, for example:
  6040. struct s { int f, g, h; };
  6041. s x = { };
  6042. This warning is included in '-Wextra'. To get other '-Wextra'
  6043. warnings without this one, use '-Wextra
  6044. -Wno-missing-field-initializers'.
  6045. '-Wno-multichar'
  6046. Do not warn if a multicharacter constant (''FOOF'') is used.
  6047. Usually they indicate a typo in the user's code, as they have
  6048. implementation-defined values, and should not be used in portable
  6049. code.
  6050. '-Wnormalized=[none|id|nfc|nfkc]'
  6051. In ISO C and ISO C++, two identifiers are different if they are
  6052. different sequences of characters. However, sometimes when
  6053. characters outside the basic ASCII character set are used, you can
  6054. have two different character sequences that look the same. To
  6055. avoid confusion, the ISO 10646 standard sets out some
  6056. "normalization rules" which when applied ensure that two sequences
  6057. that look the same are turned into the same sequence. GCC can warn
  6058. you if you are using identifiers that have not been normalized;
  6059. this option controls that warning.
  6060. There are four levels of warning supported by GCC. The default is
  6061. '-Wnormalized=nfc', which warns about any identifier that is not in
  6062. the ISO 10646 "C" normalized form, "NFC". NFC is the recommended
  6063. form for most uses. It is equivalent to '-Wnormalized'.
  6064. Unfortunately, there are some characters allowed in identifiers by
  6065. ISO C and ISO C++ that, when turned into NFC, are not allowed in
  6066. identifiers. That is, there's no way to use these symbols in
  6067. portable ISO C or C++ and have all your identifiers in NFC.
  6068. '-Wnormalized=id' suppresses the warning for these characters. It
  6069. is hoped that future versions of the standards involved will
  6070. correct this, which is why this option is not the default.
  6071. You can switch the warning off for all characters by writing
  6072. '-Wnormalized=none' or '-Wno-normalized'. You should only do this
  6073. if you are using some other normalization scheme (like "D"),
  6074. because otherwise you can easily create bugs that are literally
  6075. impossible to see.
  6076. Some characters in ISO 10646 have distinct meanings but look
  6077. identical in some fonts or display methodologies, especially once
  6078. formatting has been applied. For instance '\u207F', "SUPERSCRIPT
  6079. LATIN SMALL LETTER N", displays just like a regular 'n' that has
  6080. been placed in a superscript. ISO 10646 defines the "NFKC"
  6081. normalization scheme to convert all these into a standard form as
  6082. well, and GCC warns if your code is not in NFKC if you use
  6083. '-Wnormalized=nfkc'. This warning is comparable to warning about
  6084. every identifier that contains the letter O because it might be
  6085. confused with the digit 0, and so is not the default, but may be
  6086. useful as a local coding convention if the programming environment
  6087. cannot be fixed to display these characters distinctly.
  6088. '-Wno-attribute-warning'
  6089. Do not warn about usage of functions (*note Function Attributes::)
  6090. declared with 'warning' attribute. By default, this warning is
  6091. enabled. '-Wno-attribute-warning' can be used to disable the
  6092. warning or '-Wno-error=attribute-warning' can be used to disable
  6093. the error when compiled with '-Werror' flag.
  6094. '-Wno-deprecated'
  6095. Do not warn about usage of deprecated features. *Note Deprecated
  6096. Features::.
  6097. '-Wno-deprecated-declarations'
  6098. Do not warn about uses of functions (*note Function Attributes::),
  6099. variables (*note Variable Attributes::), and types (*note Type
  6100. Attributes::) marked as deprecated by using the 'deprecated'
  6101. attribute.
  6102. '-Wno-overflow'
  6103. Do not warn about compile-time overflow in constant expressions.
  6104. '-Wno-odr'
  6105. Warn about One Definition Rule violations during link-time
  6106. optimization. Enabled by default.
  6107. '-Wopenmp-simd'
  6108. Warn if the vectorizer cost model overrides the OpenMP simd
  6109. directive set by user. The '-fsimd-cost-model=unlimited' option
  6110. can be used to relax the cost model.
  6111. '-Woverride-init (C and Objective-C only)'
  6112. Warn if an initialized field without side effects is overridden
  6113. when using designated initializers (*note Designated Initializers:
  6114. Designated Inits.).
  6115. This warning is included in '-Wextra'. To get other '-Wextra'
  6116. warnings without this one, use '-Wextra -Wno-override-init'.
  6117. '-Wno-override-init-side-effects (C and Objective-C only)'
  6118. Do not warn if an initialized field with side effects is overridden
  6119. when using designated initializers (*note Designated Initializers:
  6120. Designated Inits.). This warning is enabled by default.
  6121. '-Wpacked'
  6122. Warn if a structure is given the packed attribute, but the packed
  6123. attribute has no effect on the layout or size of the structure.
  6124. Such structures may be mis-aligned for little benefit. For
  6125. instance, in this code, the variable 'f.x' in 'struct bar' is
  6126. misaligned even though 'struct bar' does not itself have the packed
  6127. attribute:
  6128. struct foo {
  6129. int x;
  6130. char a, b, c, d;
  6131. } __attribute__((packed));
  6132. struct bar {
  6133. char z;
  6134. struct foo f;
  6135. };
  6136. '-Wnopacked-bitfield-compat'
  6137. The 4.1, 4.2 and 4.3 series of GCC ignore the 'packed' attribute on
  6138. bit-fields of type 'char'. This was fixed in GCC 4.4 but the
  6139. change can lead to differences in the structure layout. GCC
  6140. informs you when the offset of such a field has changed in GCC 4.4.
  6141. For example there is no longer a 4-bit padding between field 'a'
  6142. and 'b' in this structure:
  6143. struct foo
  6144. {
  6145. char a:4;
  6146. char b:8;
  6147. } __attribute__ ((packed));
  6148. This warning is enabled by default. Use
  6149. '-Wno-packed-bitfield-compat' to disable this warning.
  6150. '-Wpacked-not-aligned (C, C++, Objective-C and Objective-C++ only)'
  6151. Warn if a structure field with explicitly specified alignment in a
  6152. packed struct or union is misaligned. For example, a warning will
  6153. be issued on 'struct S', like, 'warning: alignment 1 of 'struct S'
  6154. is less than 8', in this code:
  6155. struct __attribute__ ((aligned (8))) S8 { char a[8]; };
  6156. struct __attribute__ ((packed)) S {
  6157. struct S8 s8;
  6158. };
  6159. This warning is enabled by '-Wall'.
  6160. '-Wpadded'
  6161. Warn if padding is included in a structure, either to align an
  6162. element of the structure or to align the whole structure.
  6163. Sometimes when this happens it is possible to rearrange the fields
  6164. of the structure to reduce the padding and so make the structure
  6165. smaller.
  6166. '-Wredundant-decls'
  6167. Warn if anything is declared more than once in the same scope, even
  6168. in cases where multiple declaration is valid and changes nothing.
  6169. '-Wrestrict'
  6170. Warn when an object referenced by a 'restrict'-qualified parameter
  6171. (or, in C++, a '__restrict'-qualified parameter) is aliased by
  6172. another argument, or when copies between such objects overlap. For
  6173. example, the call to the 'strcpy' function below attempts to
  6174. truncate the string by replacing its initial characters with the
  6175. last four. However, because the call writes the terminating NUL
  6176. into 'a[4]', the copies overlap and the call is diagnosed.
  6177. void foo (void)
  6178. {
  6179. char a[] = "abcd1234";
  6180. strcpy (a, a + 4);
  6181. ...
  6182. }
  6183. The '-Wrestrict' option detects some instances of simple overlap
  6184. even without optimization but works best at '-O2' and above. It is
  6185. included in '-Wall'.
  6186. '-Wnested-externs (C and Objective-C only)'
  6187. Warn if an 'extern' declaration is encountered within a function.
  6188. '-Winline'
  6189. Warn if a function that is declared as inline cannot be inlined.
  6190. Even with this option, the compiler does not warn about failures to
  6191. inline functions declared in system headers.
  6192. The compiler uses a variety of heuristics to determine whether or
  6193. not to inline a function. For example, the compiler takes into
  6194. account the size of the function being inlined and the amount of
  6195. inlining that has already been done in the current function.
  6196. Therefore, seemingly insignificant changes in the source program
  6197. can cause the warnings produced by '-Winline' to appear or
  6198. disappear.
  6199. '-Wint-in-bool-context'
  6200. Warn for suspicious use of integer values where boolean values are
  6201. expected, such as conditional expressions (?:) using non-boolean
  6202. integer constants in boolean context, like 'if (a <= b ? 2 : 3)'.
  6203. Or left shifting of signed integers in boolean context, like 'for
  6204. (a = 0; 1 << a; a++);'. Likewise for all kinds of multiplications
  6205. regardless of the data type. This warning is enabled by '-Wall'.
  6206. '-Wno-int-to-pointer-cast'
  6207. Suppress warnings from casts to pointer type of an integer of a
  6208. different size. In C++, casting to a pointer type of smaller size
  6209. is an error. 'Wint-to-pointer-cast' is enabled by default.
  6210. '-Wno-pointer-to-int-cast (C and Objective-C only)'
  6211. Suppress warnings from casts from a pointer to an integer type of a
  6212. different size.
  6213. '-Winvalid-pch'
  6214. Warn if a precompiled header (*note Precompiled Headers::) is found
  6215. in the search path but cannot be used.
  6216. '-Wlong-long'
  6217. Warn if 'long long' type is used. This is enabled by either
  6218. '-Wpedantic' or '-Wtraditional' in ISO C90 and C++98 modes. To
  6219. inhibit the warning messages, use '-Wno-long-long'.
  6220. '-Wvariadic-macros'
  6221. Warn if variadic macros are used in ISO C90 mode, or if the GNU
  6222. alternate syntax is used in ISO C99 mode. This is enabled by
  6223. either '-Wpedantic' or '-Wtraditional'. To inhibit the warning
  6224. messages, use '-Wno-variadic-macros'.
  6225. '-Wno-varargs'
  6226. Do not warn upon questionable usage of the macros used to handle
  6227. variable arguments like 'va_start'. These warnings are enabled by
  6228. default.
  6229. '-Wvector-operation-performance'
  6230. Warn if vector operation is not implemented via SIMD capabilities
  6231. of the architecture. Mainly useful for the performance tuning.
  6232. Vector operation can be implemented 'piecewise', which means that
  6233. the scalar operation is performed on every vector element; 'in
  6234. parallel', which means that the vector operation is implemented
  6235. using scalars of wider type, which normally is more performance
  6236. efficient; and 'as a single scalar', which means that vector fits
  6237. into a scalar type.
  6238. '-Wvla'
  6239. Warn if a variable-length array is used in the code. '-Wno-vla'
  6240. prevents the '-Wpedantic' warning of the variable-length array.
  6241. '-Wvla-larger-than=BYTE-SIZE'
  6242. If this option is used, the compiler warns for declarations of
  6243. variable-length arrays whose size is either unbounded, or bounded
  6244. by an argument that allows the array size to exceed BYTE-SIZE
  6245. bytes. This is similar to how '-Walloca-larger-than='BYTE-SIZE
  6246. works, but with variable-length arrays.
  6247. Note that GCC may optimize small variable-length arrays of a known
  6248. value into plain arrays, so this warning may not get triggered for
  6249. such arrays.
  6250. '-Wvla-larger-than=''PTRDIFF_MAX' is enabled by default but is
  6251. typically only effective when '-ftree-vrp' is active (default for
  6252. '-O2' and above).
  6253. See also '-Walloca-larger-than=BYTE-SIZE'.
  6254. '-Wno-vla-larger-than'
  6255. Disable '-Wvla-larger-than=' warnings. The option is equivalent to
  6256. '-Wvla-larger-than=''SIZE_MAX' or larger.
  6257. '-Wvolatile-register-var'
  6258. Warn if a register variable is declared volatile. The volatile
  6259. modifier does not inhibit all optimizations that may eliminate
  6260. reads and/or writes to register variables. This warning is enabled
  6261. by '-Wall'.
  6262. '-Wdisabled-optimization'
  6263. Warn if a requested optimization pass is disabled. This warning
  6264. does not generally indicate that there is anything wrong with your
  6265. code; it merely indicates that GCC's optimizers are unable to
  6266. handle the code effectively. Often, the problem is that your code
  6267. is too big or too complex; GCC refuses to optimize programs when
  6268. the optimization itself is likely to take inordinate amounts of
  6269. time.
  6270. '-Wpointer-sign (C and Objective-C only)'
  6271. Warn for pointer argument passing or assignment with different
  6272. signedness. This option is only supported for C and Objective-C.
  6273. It is implied by '-Wall' and by '-Wpedantic', which can be disabled
  6274. with '-Wno-pointer-sign'.
  6275. '-Wstack-protector'
  6276. This option is only active when '-fstack-protector' is active. It
  6277. warns about functions that are not protected against stack
  6278. smashing.
  6279. '-Woverlength-strings'
  6280. Warn about string constants that are longer than the "minimum
  6281. maximum" length specified in the C standard. Modern compilers
  6282. generally allow string constants that are much longer than the
  6283. standard's minimum limit, but very portable programs should avoid
  6284. using longer strings.
  6285. The limit applies _after_ string constant concatenation, and does
  6286. not count the trailing NUL. In C90, the limit was 509 characters;
  6287. in C99, it was raised to 4095. C++98 does not specify a normative
  6288. minimum maximum, so we do not diagnose overlength strings in C++.
  6289. This option is implied by '-Wpedantic', and can be disabled with
  6290. '-Wno-overlength-strings'.
  6291. '-Wunsuffixed-float-constants (C and Objective-C only)'
  6292. Issue a warning for any floating constant that does not have a
  6293. suffix. When used together with '-Wsystem-headers' it warns about
  6294. such constants in system header files. This can be useful when
  6295. preparing code to use with the 'FLOAT_CONST_DECIMAL64' pragma from
  6296. the decimal floating-point extension to C99.
  6297. '-Wno-lto-type-mismatch'
  6298. During the link-time optimization, do not warn about type
  6299. mismatches in global declarations from different compilation units.
  6300. Requires '-flto' to be enabled. Enabled by default.
  6301. '-Wno-designated-init (C and Objective-C only)'
  6302. Suppress warnings when a positional initializer is used to
  6303. initialize a structure that has been marked with the
  6304. 'designated_init' attribute.
  6305. '-Wno-hsa'
  6306. Do not warn when HSAIL cannot be emitted for the compiled function
  6307. or OpenMP construct. These warnings are enabled by default.
  6308. 
  6309. File: gcc.info, Node: Static Analyzer Options, Next: Debugging Options, Prev: Warning Options, Up: Invoking GCC
  6310. 3.9 Options That Control Static Analysis
  6311. ========================================
  6312. '-fanalyzer'
  6313. This option enables an static analysis of program flow which looks
  6314. for "interesting" interprocedural paths through the code, and
  6315. issues warnings for problems found on them.
  6316. This analysis is much more expensive than other GCC warnings.
  6317. Enabling this option effectively enables the following warnings:
  6318. -Wanalyzer-double-fclose
  6319. -Wanalyzer-double-free
  6320. -Wanalyzer-exposure-through-output-file
  6321. -Wanalyzer-file-leak
  6322. -Wanalyzer-free-of-non-heap
  6323. -Wanalyzer-malloc-leak
  6324. -Wanalyzer-possible-null-argument
  6325. -Wanalyzer-possible-null-dereference
  6326. -Wanalyzer-null-argument
  6327. -Wanalyzer-null-dereference
  6328. -Wanalyzer-stale-setjmp-buffer
  6329. -Wanalyzer-tainted-array-index
  6330. -Wanalyzer-unsafe-call-within-signal-handler
  6331. -Wanalyzer-use-after-free
  6332. -Wanalyzer-use-of-pointer-in-stale-stack-frame
  6333. This option is only available if GCC was configured with analyzer
  6334. support enabled.
  6335. '-Wanalyzer-too-complex'
  6336. If '-fanalyzer' is enabled, the analyzer uses various heuristics to
  6337. attempt to explore the control flow and data flow in the program,
  6338. but these can be defeated by sufficiently complicated code.
  6339. By default, the analysis silently stops if the code is too
  6340. complicated for the analyzer to fully explore and it reaches an
  6341. internal limit. The '-Wanalyzer-too-complex' option warns if this
  6342. occurs.
  6343. '-Wno-analyzer-double-fclose'
  6344. This warning requires '-fanalyzer', which enables it; use
  6345. '-Wno-analyzer-double-fclose' to disable it.
  6346. This diagnostic warns for paths through the code in which a 'FILE
  6347. *' can have 'fclose' called on it more than once.
  6348. '-Wno-analyzer-double-free'
  6349. This warning requires '-fanalyzer', which enables it; use
  6350. '-Wno-analyzer-double-free' to disable it.
  6351. This diagnostic warns for paths through the code in which a pointer
  6352. can have 'free' called on it more than once.
  6353. '-Wno-analyzer-exposure-through-output-file'
  6354. This warning requires '-fanalyzer', which enables it; use
  6355. '-Wno-analyzer-exposure-through-output-file' to disable it.
  6356. This diagnostic warns for paths through the code in which a
  6357. security-sensitive value is written to an output file (such as
  6358. writing a password to a log file).
  6359. '-Wno-analyzer-file-leak'
  6360. This warning requires '-fanalyzer', which enables it; use
  6361. '-Wno-analyzer-file-leak' to disable it.
  6362. This diagnostic warns for paths through the code in which a
  6363. '<stdio.h>' 'FILE *' stream object is leaked.
  6364. '-Wno-analyzer-free-of-non-heap'
  6365. This warning requires '-fanalyzer', which enables it; use
  6366. '-Wno-analyzer-free-of-non-heap' to disable it.
  6367. This diagnostic warns for paths through the code in which 'free' is
  6368. called on a non-heap pointer (e.g. an on-stack buffer, or a
  6369. global).
  6370. '-Wno-analyzer-malloc-leak'
  6371. This warning requires '-fanalyzer', which enables it; use
  6372. '-Wno-analyzer-malloc-leak' to disable it.
  6373. This diagnostic warns for paths through the code in which a pointer
  6374. allocated via 'malloc' is leaked.
  6375. '-Wno-analyzer-possible-null-argument'
  6376. This warning requires '-fanalyzer', which enables it; use
  6377. '-Wno-analyzer-possible-null-argument' to disable it.
  6378. This diagnostic warns for paths through the code in which a
  6379. possibly-NULL value is passed to a function argument marked with
  6380. '__attribute__((nonnull))' as requiring a non-NULL value.
  6381. '-Wno-analyzer-possible-null-dereference'
  6382. This warning requires '-fanalyzer', which enables it; use
  6383. '-Wno-analyzer-possible-null-dereference' to disable it.
  6384. This diagnostic warns for paths through the code in which a
  6385. possibly-NULL value is dereferenced.
  6386. '-Wno-analyzer-null-argument'
  6387. This warning requires '-fanalyzer', which enables it; use
  6388. '-Wno-analyzer-null-argument' to disable it.
  6389. This diagnostic warns for paths through the code in which a value
  6390. known to be NULL is passed to a function argument marked with
  6391. '__attribute__((nonnull))' as requiring a non-NULL value.
  6392. '-Wno-analyzer-null-dereference'
  6393. This warning requires '-fanalyzer', which enables it; use
  6394. '-Wno-analyzer-null-dereference' to disable it.
  6395. This diagnostic warns for paths through the code in which a value
  6396. known to be NULL is dereferenced.
  6397. '-Wno-analyzer-stale-setjmp-buffer'
  6398. This warning requires '-fanalyzer', which enables it; use
  6399. '-Wno-analyzer-stale-setjmp-buffer' to disable it.
  6400. This diagnostic warns for paths through the code in which 'longjmp'
  6401. is called to rewind to a 'jmp_buf' relating to a 'setjmp' call in a
  6402. function that has returned.
  6403. When 'setjmp' is called on a 'jmp_buf' to record a rewind location,
  6404. it records the stack frame. The stack frame becomes invalid when
  6405. the function containing the 'setjmp' call returns. Attempting to
  6406. rewind to it via 'longjmp' would reference a stack frame that no
  6407. longer exists, and likely lead to a crash (or worse).
  6408. '-Wno-analyzer-tainted-array-index'
  6409. This warning requires both '-fanalyzer' and
  6410. '-fanalyzer-checker=taint' to enable it; use
  6411. '-Wno-analyzer-tainted-array-index' to disable it.
  6412. This diagnostic warns for paths through the code in which a value
  6413. that could be under an attacker's control is used as the index of
  6414. an array access without being sanitized.
  6415. '-Wno-analyzer-unsafe-call-within-signal-handler'
  6416. This warning requires '-fanalyzer', which enables it; use
  6417. '-Wno-analyzer-unsafe-call-within-signal-handler' to disable it.
  6418. This diagnostic warns for paths through the code in which a
  6419. function known to be async-signal-unsafe (such as 'fprintf') is
  6420. called from a signal handler.
  6421. '-Wno-analyzer-use-after-free'
  6422. This warning requires '-fanalyzer', which enables it; use
  6423. '-Wno-analyzer-use-after-free' to disable it.
  6424. This diagnostic warns for paths through the code in which a pointer
  6425. is used after 'free' is called on it.
  6426. '-Wno-analyzer-use-of-pointer-in-stale-stack-frame'
  6427. This warning requires '-fanalyzer', which enables it; use
  6428. '-Wno-analyzer-use-of-pointer-in-stale-stack-frame' to disable it.
  6429. This diagnostic warns for paths through the code in which a pointer
  6430. is dereferenced that points to a variable in a stale stack frame.
  6431. Pertinent parameters for controlling the exploration are: '--param
  6432. analyzer-bb-explosion-factor=VALUE', '--param
  6433. analyzer-max-enodes-per-program-point=VALUE', '--param
  6434. analyzer-max-recursion-depth=VALUE', and '--param
  6435. analyzer-min-snodes-for-call-summary=VALUE'.
  6436. The following options control the analyzer.
  6437. '-fanalyzer-call-summaries'
  6438. Simplify interprocedural analysis by computing the effect of
  6439. certain calls, rather than exploring all paths through the function
  6440. from callsite to each possible return.
  6441. If enabled, call summaries are only used for functions with more
  6442. than one call site, and that are sufficiently complicated (as per
  6443. '--param analyzer-min-snodes-for-call-summary=VALUE').
  6444. '-fanalyzer-checker=NAME'
  6445. Restrict the analyzer to run just the named checker, and enable it.
  6446. Some checkers are disabled by default (even with '-fanalyzer'),
  6447. such as the 'taint' checker that implements
  6448. '-Wanalyzer-tainted-array-index', and this option is required to
  6449. enable them.
  6450. '-fanalyzer-fine-grained'
  6451. This option is intended for analyzer developers.
  6452. Internally the analyzer builds an "exploded graph" that combines
  6453. control flow graphs with data flow information.
  6454. By default, an edge in this graph can contain the effects of a run
  6455. of multiple statements within a basic block. With
  6456. '-fanalyzer-fine-grained', each statement gets its own edge.
  6457. '-fanalyzer-show-duplicate-count'
  6458. This option is intended for analyzer developers: if multiple
  6459. diagnostics have been detected as being duplicates of each other,
  6460. it emits a note when reporting the best diagnostic, giving the
  6461. number of additional diagnostics that were suppressed by the
  6462. deduplication logic.
  6463. '-fno-analyzer-state-merge'
  6464. This option is intended for analyzer developers.
  6465. By default the analyzer attempts to simplify analysis by merging
  6466. sufficiently similar states at each program point as it builds its
  6467. "exploded graph". With '-fno-analyzer-state-merge' this merging
  6468. can be suppressed, for debugging state-handling issues.
  6469. '-fno-analyzer-state-purge'
  6470. This option is intended for analyzer developers.
  6471. By default the analyzer attempts to simplify analysis by purging
  6472. aspects of state at a program point that appear to no longer be
  6473. relevant e.g. the values of locals that aren't accessed later in
  6474. the function and which aren't relevant to leak analysis.
  6475. With '-fno-analyzer-state-purge' this purging of state can be
  6476. suppressed, for debugging state-handling issues.
  6477. '-fanalyzer-transitivity'
  6478. This option enables transitivity of constraints within the
  6479. analyzer.
  6480. '-fanalyzer-verbose-edges'
  6481. This option is intended for analyzer developers. It enables more
  6482. verbose, lower-level detail in the descriptions of control flow
  6483. within diagnostic paths.
  6484. '-fanalyzer-verbose-state-changes'
  6485. This option is intended for analyzer developers. It enables more
  6486. verbose, lower-level detail in the descriptions of events relating
  6487. to state machines within diagnostic paths.
  6488. '-fanalyzer-verbosity=LEVEL'
  6489. This option controls the complexity of the control flow paths that
  6490. are emitted for analyzer diagnostics.
  6491. The LEVEL can be one of:
  6492. '0'
  6493. At this level, interprocedural call and return events are
  6494. displayed, along with the most pertinent state-change events
  6495. relating to a diagnostic. For example, for a double-'free'
  6496. diagnostic, both calls to 'free' will be shown.
  6497. '1'
  6498. As per the previous level, but also show events for the entry
  6499. to each function.
  6500. '2'
  6501. As per the previous level, but also show events relating to
  6502. control flow that are significant to triggering the issue
  6503. (e.g. "true path taken" at a conditional).
  6504. This level is the default.
  6505. '3'
  6506. As per the previous level, but show all control flow events,
  6507. not just significant ones.
  6508. '4'
  6509. This level is intended for analyzer developers; it adds
  6510. various other events intended for debugging the analyzer.
  6511. '-fdump-analyzer'
  6512. Dump internal details about what the analyzer is doing to
  6513. 'FILE.analyzer.txt'. This option is overridden by
  6514. '-fdump-analyzer-stderr'.
  6515. '-fdump-analyzer-stderr'
  6516. Dump internal details about what the analyzer is doing to stderr.
  6517. This option overrides '-fdump-analyzer'.
  6518. '-fdump-analyzer-callgraph'
  6519. Dump a representation of the call graph suitable for viewing with
  6520. GraphViz to 'FILE.callgraph.dot'.
  6521. '-fdump-analyzer-exploded-graph'
  6522. Dump a representation of the "exploded graph" suitable for viewing
  6523. with GraphViz to 'FILE.eg.dot'. Nodes are color-coded based on
  6524. state-machine states to emphasize state changes.
  6525. '-fdump-analyzer-exploded-nodes'
  6526. Emit diagnostics showing where nodes in the "exploded graph" are in
  6527. relation to the program source.
  6528. '-fdump-analyzer-exploded-nodes-2'
  6529. Dump a textual representation of the "exploded graph" to
  6530. 'FILE.eg.txt'.
  6531. '-fdump-analyzer-exploded-nodes-3'
  6532. Dump a textual representation of the "exploded graph" to one dump
  6533. file per node, to 'FILE.eg-ID.txt'. This is typically a large
  6534. number of dump files.
  6535. '-fdump-analyzer-state-purge'
  6536. As per '-fdump-analyzer-supergraph', dump a representation of the
  6537. "supergraph" suitable for viewing with GraphViz, but annotate the
  6538. graph with information on what state will be purged at each node.
  6539. The graph is written to 'FILE.state-purge.dot'.
  6540. '-fdump-analyzer-supergraph'
  6541. Dump representations of the "supergraph" suitable for viewing with
  6542. GraphViz to 'FILE.supergraph.dot' and to 'FILE.supergraph-eg.dot'.
  6543. These show all of the control flow graphs in the program, with
  6544. interprocedural edges for calls and returns. The second dump
  6545. contains annotations showing nodes in the "exploded graph" and
  6546. diagnostics associated with them.
  6547. 
  6548. File: gcc.info, Node: Debugging Options, Next: Optimize Options, Prev: Static Analyzer Options, Up: Invoking GCC
  6549. 3.10 Options for Debugging Your Program
  6550. =======================================
  6551. To tell GCC to emit extra information for use by a debugger, in almost
  6552. all cases you need only to add '-g' to your other options.
  6553. GCC allows you to use '-g' with '-O'. The shortcuts taken by optimized
  6554. code may occasionally be surprising: some variables you declared may not
  6555. exist at all; flow of control may briefly move where you did not expect
  6556. it; some statements may not be executed because they compute constant
  6557. results or their values are already at hand; some statements may execute
  6558. in different places because they have been moved out of loops.
  6559. Nevertheless it is possible to debug optimized output. This makes it
  6560. reasonable to use the optimizer for programs that might have bugs.
  6561. If you are not using some other optimization option, consider using
  6562. '-Og' (*note Optimize Options::) with '-g'. With no '-O' option at all,
  6563. some compiler passes that collect information useful for debugging do
  6564. not run at all, so that '-Og' may result in a better debugging
  6565. experience.
  6566. '-g'
  6567. Produce debugging information in the operating system's native
  6568. format (stabs, COFF, XCOFF, or DWARF). GDB can work with this
  6569. debugging information.
  6570. On most systems that use stabs format, '-g' enables use of extra
  6571. debugging information that only GDB can use; this extra information
  6572. makes debugging work better in GDB but probably makes other
  6573. debuggers crash or refuse to read the program. If you want to
  6574. control for certain whether to generate the extra information, use
  6575. '-gstabs+', '-gstabs', '-gxcoff+', '-gxcoff', or '-gvms' (see
  6576. below).
  6577. '-ggdb'
  6578. Produce debugging information for use by GDB. This means to use
  6579. the most expressive format available (DWARF, stabs, or the native
  6580. format if neither of those are supported), including GDB extensions
  6581. if at all possible.
  6582. '-gdwarf'
  6583. '-gdwarf-VERSION'
  6584. Produce debugging information in DWARF format (if that is
  6585. supported). The value of VERSION may be either 2, 3, 4 or 5; the
  6586. default version for most targets is 4. DWARF Version 5 is only
  6587. experimental.
  6588. Note that with DWARF Version 2, some ports require and always use
  6589. some non-conflicting DWARF 3 extensions in the unwind tables.
  6590. Version 4 may require GDB 7.0 and '-fvar-tracking-assignments' for
  6591. maximum benefit.
  6592. GCC no longer supports DWARF Version 1, which is substantially
  6593. different than Version 2 and later. For historical reasons, some
  6594. other DWARF-related options such as '-fno-dwarf2-cfi-asm') retain a
  6595. reference to DWARF Version 2 in their names, but apply to all
  6596. currently-supported versions of DWARF.
  6597. '-gstabs'
  6598. Produce debugging information in stabs format (if that is
  6599. supported), without GDB extensions. This is the format used by DBX
  6600. on most BSD systems. On MIPS, Alpha and System V Release 4 systems
  6601. this option produces stabs debugging output that is not understood
  6602. by DBX. On System V Release 4 systems this option requires the GNU
  6603. assembler.
  6604. '-gstabs+'
  6605. Produce debugging information in stabs format (if that is
  6606. supported), using GNU extensions understood only by the GNU
  6607. debugger (GDB). The use of these extensions is likely to make
  6608. other debuggers crash or refuse to read the program.
  6609. '-gxcoff'
  6610. Produce debugging information in XCOFF format (if that is
  6611. supported). This is the format used by the DBX debugger on IBM
  6612. RS/6000 systems.
  6613. '-gxcoff+'
  6614. Produce debugging information in XCOFF format (if that is
  6615. supported), using GNU extensions understood only by the GNU
  6616. debugger (GDB). The use of these extensions is likely to make
  6617. other debuggers crash or refuse to read the program, and may cause
  6618. assemblers other than the GNU assembler (GAS) to fail with an
  6619. error.
  6620. '-gvms'
  6621. Produce debugging information in Alpha/VMS debug format (if that is
  6622. supported). This is the format used by DEBUG on Alpha/VMS systems.
  6623. '-gLEVEL'
  6624. '-ggdbLEVEL'
  6625. '-gstabsLEVEL'
  6626. '-gxcoffLEVEL'
  6627. '-gvmsLEVEL'
  6628. Request debugging information and also use LEVEL to specify how
  6629. much information. The default level is 2.
  6630. Level 0 produces no debug information at all. Thus, '-g0' negates
  6631. '-g'.
  6632. Level 1 produces minimal information, enough for making backtraces
  6633. in parts of the program that you don't plan to debug. This
  6634. includes descriptions of functions and external variables, and line
  6635. number tables, but no information about local variables.
  6636. Level 3 includes extra information, such as all the macro
  6637. definitions present in the program. Some debuggers support macro
  6638. expansion when you use '-g3'.
  6639. If you use multiple '-g' options, with or without level numbers,
  6640. the last such option is the one that is effective.
  6641. '-gdwarf' does not accept a concatenated debug level, to avoid
  6642. confusion with '-gdwarf-LEVEL'. Instead use an additional
  6643. '-gLEVEL' option to change the debug level for DWARF.
  6644. '-fno-eliminate-unused-debug-symbols'
  6645. By default, no debug information is produced for symbols that are
  6646. not actually used. Use this option if you want debug information
  6647. for all symbols.
  6648. '-femit-class-debug-always'
  6649. Instead of emitting debugging information for a C++ class in only
  6650. one object file, emit it in all object files using the class. This
  6651. option should be used only with debuggers that are unable to handle
  6652. the way GCC normally emits debugging information for classes
  6653. because using this option increases the size of debugging
  6654. information by as much as a factor of two.
  6655. '-fno-merge-debug-strings'
  6656. Direct the linker to not merge together strings in the debugging
  6657. information that are identical in different object files. Merging
  6658. is not supported by all assemblers or linkers. Merging decreases
  6659. the size of the debug information in the output file at the cost of
  6660. increasing link processing time. Merging is enabled by default.
  6661. '-fdebug-prefix-map=OLD=NEW'
  6662. When compiling files residing in directory 'OLD', record debugging
  6663. information describing them as if the files resided in directory
  6664. 'NEW' instead. This can be used to replace a build-time path with
  6665. an install-time path in the debug info. It can also be used to
  6666. change an absolute path to a relative path by using '.' for NEW.
  6667. This can give more reproducible builds, which are location
  6668. independent, but may require an extra command to tell GDB where to
  6669. find the source files. See also '-ffile-prefix-map'.
  6670. '-fvar-tracking'
  6671. Run variable tracking pass. It computes where variables are stored
  6672. at each position in code. Better debugging information is then
  6673. generated (if the debugging information format supports this
  6674. information).
  6675. It is enabled by default when compiling with optimization ('-Os',
  6676. '-O', '-O2', ...), debugging information ('-g') and the debug info
  6677. format supports it.
  6678. '-fvar-tracking-assignments'
  6679. Annotate assignments to user variables early in the compilation and
  6680. attempt to carry the annotations over throughout the compilation
  6681. all the way to the end, in an attempt to improve debug information
  6682. while optimizing. Use of '-gdwarf-4' is recommended along with it.
  6683. It can be enabled even if var-tracking is disabled, in which case
  6684. annotations are created and maintained, but discarded at the end.
  6685. By default, this flag is enabled together with '-fvar-tracking',
  6686. except when selective scheduling is enabled.
  6687. '-gsplit-dwarf'
  6688. Separate as much DWARF debugging information as possible into a
  6689. separate output file with the extension '.dwo'. This option allows
  6690. the build system to avoid linking files with debug information. To
  6691. be useful, this option requires a debugger capable of reading
  6692. '.dwo' files.
  6693. '-gdescribe-dies'
  6694. Add description attributes to some DWARF DIEs that have no name
  6695. attribute, such as artificial variables, external references and
  6696. call site parameter DIEs.
  6697. '-gpubnames'
  6698. Generate DWARF '.debug_pubnames' and '.debug_pubtypes' sections.
  6699. '-ggnu-pubnames'
  6700. Generate '.debug_pubnames' and '.debug_pubtypes' sections in a
  6701. format suitable for conversion into a GDB index. This option is
  6702. only useful with a linker that can produce GDB index version 7.
  6703. '-fdebug-types-section'
  6704. When using DWARF Version 4 or higher, type DIEs can be put into
  6705. their own '.debug_types' section instead of making them part of the
  6706. '.debug_info' section. It is more efficient to put them in a
  6707. separate comdat section since the linker can then remove
  6708. duplicates. But not all DWARF consumers support '.debug_types'
  6709. sections yet and on some objects '.debug_types' produces larger
  6710. instead of smaller debugging information.
  6711. '-grecord-gcc-switches'
  6712. '-gno-record-gcc-switches'
  6713. This switch causes the command-line options used to invoke the
  6714. compiler that may affect code generation to be appended to the
  6715. DW_AT_producer attribute in DWARF debugging information. The
  6716. options are concatenated with spaces separating them from each
  6717. other and from the compiler version. It is enabled by default.
  6718. See also '-frecord-gcc-switches' for another way of storing
  6719. compiler options into the object file.
  6720. '-gstrict-dwarf'
  6721. Disallow using extensions of later DWARF standard version than
  6722. selected with '-gdwarf-VERSION'. On most targets using
  6723. non-conflicting DWARF extensions from later standard versions is
  6724. allowed.
  6725. '-gno-strict-dwarf'
  6726. Allow using extensions of later DWARF standard version than
  6727. selected with '-gdwarf-VERSION'.
  6728. '-gas-loc-support'
  6729. Inform the compiler that the assembler supports '.loc' directives.
  6730. It may then use them for the assembler to generate DWARF2+ line
  6731. number tables.
  6732. This is generally desirable, because assembler-generated
  6733. line-number tables are a lot more compact than those the compiler
  6734. can generate itself.
  6735. This option will be enabled by default if, at GCC configure time,
  6736. the assembler was found to support such directives.
  6737. '-gno-as-loc-support'
  6738. Force GCC to generate DWARF2+ line number tables internally, if
  6739. DWARF2+ line number tables are to be generated.
  6740. '-gas-locview-support'
  6741. Inform the compiler that the assembler supports 'view' assignment
  6742. and reset assertion checking in '.loc' directives.
  6743. This option will be enabled by default if, at GCC configure time,
  6744. the assembler was found to support them.
  6745. '-gno-as-locview-support'
  6746. Force GCC to assign view numbers internally, if
  6747. '-gvariable-location-views' are explicitly requested.
  6748. '-gcolumn-info'
  6749. '-gno-column-info'
  6750. Emit location column information into DWARF debugging information,
  6751. rather than just file and line. This option is enabled by default.
  6752. '-gstatement-frontiers'
  6753. '-gno-statement-frontiers'
  6754. This option causes GCC to create markers in the internal
  6755. representation at the beginning of statements, and to keep them
  6756. roughly in place throughout compilation, using them to guide the
  6757. output of 'is_stmt' markers in the line number table. This is
  6758. enabled by default when compiling with optimization ('-Os', '-O',
  6759. '-O2', ...), and outputting DWARF 2 debug information at the normal
  6760. level.
  6761. '-gvariable-location-views'
  6762. '-gvariable-location-views=incompat5'
  6763. '-gno-variable-location-views'
  6764. Augment variable location lists with progressive view numbers
  6765. implied from the line number table. This enables debug information
  6766. consumers to inspect state at certain points of the program, even
  6767. if no instructions associated with the corresponding source
  6768. locations are present at that point. If the assembler lacks
  6769. support for view numbers in line number tables, this will cause the
  6770. compiler to emit the line number table, which generally makes them
  6771. somewhat less compact. The augmented line number tables and
  6772. location lists are fully backward-compatible, so they can be
  6773. consumed by debug information consumers that are not aware of these
  6774. augmentations, but they won't derive any benefit from them either.
  6775. This is enabled by default when outputting DWARF 2 debug
  6776. information at the normal level, as long as there is assembler
  6777. support, '-fvar-tracking-assignments' is enabled and
  6778. '-gstrict-dwarf' is not. When assembler support is not available,
  6779. this may still be enabled, but it will force GCC to output internal
  6780. line number tables, and if '-ginternal-reset-location-views' is not
  6781. enabled, that will most certainly lead to silently mismatching
  6782. location views.
  6783. There is a proposed representation for view numbers that is not
  6784. backward compatible with the location list format introduced in
  6785. DWARF 5, that can be enabled with
  6786. '-gvariable-location-views=incompat5'. This option may be removed
  6787. in the future, is only provided as a reference implementation of
  6788. the proposed representation. Debug information consumers are not
  6789. expected to support this extended format, and they would be
  6790. rendered unable to decode location lists using it.
  6791. '-ginternal-reset-location-views'
  6792. '-gno-internal-reset-location-views'
  6793. Attempt to determine location views that can be omitted from
  6794. location view lists. This requires the compiler to have very
  6795. accurate insn length estimates, which isn't always the case, and it
  6796. may cause incorrect view lists to be generated silently when using
  6797. an assembler that does not support location view lists. The GNU
  6798. assembler will flag any such error as a 'view number mismatch'.
  6799. This is only enabled on ports that define a reliable estimation
  6800. function.
  6801. '-ginline-points'
  6802. '-gno-inline-points'
  6803. Generate extended debug information for inlined functions.
  6804. Location view tracking markers are inserted at inlined entry
  6805. points, so that address and view numbers can be computed and output
  6806. in debug information. This can be enabled independently of
  6807. location views, in which case the view numbers won't be output, but
  6808. it can only be enabled along with statement frontiers, and it is
  6809. only enabled by default if location views are enabled.
  6810. '-gz[=TYPE]'
  6811. Produce compressed debug sections in DWARF format, if that is
  6812. supported. If TYPE is not given, the default type depends on the
  6813. capabilities of the assembler and linker used. TYPE may be one of
  6814. 'none' (don't compress debug sections), 'zlib' (use zlib
  6815. compression in ELF gABI format), or 'zlib-gnu' (use zlib
  6816. compression in traditional GNU format). If the linker doesn't
  6817. support writing compressed debug sections, the option is rejected.
  6818. Otherwise, if the assembler does not support them, '-gz' is
  6819. silently ignored when producing object files.
  6820. '-femit-struct-debug-baseonly'
  6821. Emit debug information for struct-like types only when the base
  6822. name of the compilation source file matches the base name of file
  6823. in which the struct is defined.
  6824. This option substantially reduces the size of debugging
  6825. information, but at significant potential loss in type information
  6826. to the debugger. See '-femit-struct-debug-reduced' for a less
  6827. aggressive option. See '-femit-struct-debug-detailed' for more
  6828. detailed control.
  6829. This option works only with DWARF debug output.
  6830. '-femit-struct-debug-reduced'
  6831. Emit debug information for struct-like types only when the base
  6832. name of the compilation source file matches the base name of file
  6833. in which the type is defined, unless the struct is a template or
  6834. defined in a system header.
  6835. This option significantly reduces the size of debugging
  6836. information, with some potential loss in type information to the
  6837. debugger. See '-femit-struct-debug-baseonly' for a more aggressive
  6838. option. See '-femit-struct-debug-detailed' for more detailed
  6839. control.
  6840. This option works only with DWARF debug output.
  6841. '-femit-struct-debug-detailed[=SPEC-LIST]'
  6842. Specify the struct-like types for which the compiler generates
  6843. debug information. The intent is to reduce duplicate struct debug
  6844. information between different object files within the same program.
  6845. This option is a detailed version of '-femit-struct-debug-reduced'
  6846. and '-femit-struct-debug-baseonly', which serves for most needs.
  6847. A specification has the syntax
  6848. ['dir:'|'ind:']['ord:'|'gen:']('any'|'sys'|'base'|'none')
  6849. The optional first word limits the specification to structs that
  6850. are used directly ('dir:') or used indirectly ('ind:'). A struct
  6851. type is used directly when it is the type of a variable, member.
  6852. Indirect uses arise through pointers to structs. That is, when use
  6853. of an incomplete struct is valid, the use is indirect. An example
  6854. is 'struct one direct; struct two * indirect;'.
  6855. The optional second word limits the specification to ordinary
  6856. structs ('ord:') or generic structs ('gen:'). Generic structs are
  6857. a bit complicated to explain. For C++, these are non-explicit
  6858. specializations of template classes, or non-template classes within
  6859. the above. Other programming languages have generics, but
  6860. '-femit-struct-debug-detailed' does not yet implement them.
  6861. The third word specifies the source files for those structs for
  6862. which the compiler should emit debug information. The values
  6863. 'none' and 'any' have the normal meaning. The value 'base' means
  6864. that the base of name of the file in which the type declaration
  6865. appears must match the base of the name of the main compilation
  6866. file. In practice, this means that when compiling 'foo.c', debug
  6867. information is generated for types declared in that file and
  6868. 'foo.h', but not other header files. The value 'sys' means those
  6869. types satisfying 'base' or declared in system or compiler headers.
  6870. You may need to experiment to determine the best settings for your
  6871. application.
  6872. The default is '-femit-struct-debug-detailed=all'.
  6873. This option works only with DWARF debug output.
  6874. '-fno-dwarf2-cfi-asm'
  6875. Emit DWARF unwind info as compiler generated '.eh_frame' section
  6876. instead of using GAS '.cfi_*' directives.
  6877. '-fno-eliminate-unused-debug-types'
  6878. Normally, when producing DWARF output, GCC avoids producing debug
  6879. symbol output for types that are nowhere used in the source file
  6880. being compiled. Sometimes it is useful to have GCC emit debugging
  6881. information for all types declared in a compilation unit,
  6882. regardless of whether or not they are actually used in that
  6883. compilation unit, for example if, in the debugger, you want to cast
  6884. a value to a type that is not actually used in your program (but is
  6885. declared). More often, however, this results in a significant
  6886. amount of wasted space.
  6887. 
  6888. File: gcc.info, Node: Optimize Options, Next: Instrumentation Options, Prev: Debugging Options, Up: Invoking GCC
  6889. 3.11 Options That Control Optimization
  6890. ======================================
  6891. These options control various sorts of optimizations.
  6892. Without any optimization option, the compiler's goal is to reduce the
  6893. cost of compilation and to make debugging produce the expected results.
  6894. Statements are independent: if you stop the program with a breakpoint
  6895. between statements, you can then assign a new value to any variable or
  6896. change the program counter to any other statement in the function and
  6897. get exactly the results you expect from the source code.
  6898. Turning on optimization flags makes the compiler attempt to improve the
  6899. performance and/or code size at the expense of compilation time and
  6900. possibly the ability to debug the program.
  6901. The compiler performs optimization based on the knowledge it has of the
  6902. program. Compiling multiple files at once to a single output file mode
  6903. allows the compiler to use information gained from all of the files when
  6904. compiling each of them.
  6905. Not all optimizations are controlled directly by a flag. Only
  6906. optimizations that have a flag are listed in this section.
  6907. Most optimizations are completely disabled at '-O0' or if an '-O' level
  6908. is not set on the command line, even if individual optimization flags
  6909. are specified. Similarly, '-Og' suppresses many optimization passes.
  6910. Depending on the target and how GCC was configured, a slightly
  6911. different set of optimizations may be enabled at each '-O' level than
  6912. those listed here. You can invoke GCC with '-Q --help=optimizers' to
  6913. find out the exact set of optimizations that are enabled at each level.
  6914. *Note Overall Options::, for examples.
  6915. '-O'
  6916. '-O1'
  6917. Optimize. Optimizing compilation takes somewhat more time, and a
  6918. lot more memory for a large function.
  6919. With '-O', the compiler tries to reduce code size and execution
  6920. time, without performing any optimizations that take a great deal
  6921. of compilation time.
  6922. '-O' turns on the following optimization flags:
  6923. -fauto-inc-dec
  6924. -fbranch-count-reg
  6925. -fcombine-stack-adjustments
  6926. -fcompare-elim
  6927. -fcprop-registers
  6928. -fdce
  6929. -fdefer-pop
  6930. -fdelayed-branch
  6931. -fdse
  6932. -fforward-propagate
  6933. -fguess-branch-probability
  6934. -fif-conversion
  6935. -fif-conversion2
  6936. -finline-functions-called-once
  6937. -fipa-profile
  6938. -fipa-pure-const
  6939. -fipa-reference
  6940. -fipa-reference-addressable
  6941. -fmerge-constants
  6942. -fmove-loop-invariants
  6943. -fomit-frame-pointer
  6944. -freorder-blocks
  6945. -fshrink-wrap
  6946. -fshrink-wrap-separate
  6947. -fsplit-wide-types
  6948. -fssa-backprop
  6949. -fssa-phiopt
  6950. -ftree-bit-ccp
  6951. -ftree-ccp
  6952. -ftree-ch
  6953. -ftree-coalesce-vars
  6954. -ftree-copy-prop
  6955. -ftree-dce
  6956. -ftree-dominator-opts
  6957. -ftree-dse
  6958. -ftree-forwprop
  6959. -ftree-fre
  6960. -ftree-phiprop
  6961. -ftree-pta
  6962. -ftree-scev-cprop
  6963. -ftree-sink
  6964. -ftree-slsr
  6965. -ftree-sra
  6966. -ftree-ter
  6967. -funit-at-a-time
  6968. '-O2'
  6969. Optimize even more. GCC performs nearly all supported
  6970. optimizations that do not involve a space-speed tradeoff. As
  6971. compared to '-O', this option increases both compilation time and
  6972. the performance of the generated code.
  6973. '-O2' turns on all optimization flags specified by '-O'. It also
  6974. turns on the following optimization flags:
  6975. -falign-functions -falign-jumps
  6976. -falign-labels -falign-loops
  6977. -fcaller-saves
  6978. -fcode-hoisting
  6979. -fcrossjumping
  6980. -fcse-follow-jumps -fcse-skip-blocks
  6981. -fdelete-null-pointer-checks
  6982. -fdevirtualize -fdevirtualize-speculatively
  6983. -fexpensive-optimizations
  6984. -ffinite-loops
  6985. -fgcse -fgcse-lm
  6986. -fhoist-adjacent-loads
  6987. -finline-functions
  6988. -finline-small-functions
  6989. -findirect-inlining
  6990. -fipa-bit-cp -fipa-cp -fipa-icf
  6991. -fipa-ra -fipa-sra -fipa-vrp
  6992. -fisolate-erroneous-paths-dereference
  6993. -flra-remat
  6994. -foptimize-sibling-calls
  6995. -foptimize-strlen
  6996. -fpartial-inlining
  6997. -fpeephole2
  6998. -freorder-blocks-algorithm=stc
  6999. -freorder-blocks-and-partition -freorder-functions
  7000. -frerun-cse-after-loop
  7001. -fschedule-insns -fschedule-insns2
  7002. -fsched-interblock -fsched-spec
  7003. -fstore-merging
  7004. -fstrict-aliasing
  7005. -fthread-jumps
  7006. -ftree-builtin-call-dce
  7007. -ftree-pre
  7008. -ftree-switch-conversion -ftree-tail-merge
  7009. -ftree-vrp
  7010. Please note the warning under '-fgcse' about invoking '-O2' on
  7011. programs that use computed gotos.
  7012. '-O3'
  7013. Optimize yet more. '-O3' turns on all optimizations specified by
  7014. '-O2' and also turns on the following optimization flags:
  7015. -fgcse-after-reload
  7016. -fipa-cp-clone
  7017. -floop-interchange
  7018. -floop-unroll-and-jam
  7019. -fpeel-loops
  7020. -fpredictive-commoning
  7021. -fsplit-loops
  7022. -fsplit-paths
  7023. -ftree-loop-distribution
  7024. -ftree-loop-vectorize
  7025. -ftree-partial-pre
  7026. -ftree-slp-vectorize
  7027. -funswitch-loops
  7028. -fvect-cost-model
  7029. -fvect-cost-model=dynamic
  7030. -fversion-loops-for-strides
  7031. '-O0'
  7032. Reduce compilation time and make debugging produce the expected
  7033. results. This is the default.
  7034. '-Os'
  7035. Optimize for size. '-Os' enables all '-O2' optimizations except
  7036. those that often increase code size:
  7037. -falign-functions -falign-jumps
  7038. -falign-labels -falign-loops
  7039. -fprefetch-loop-arrays -freorder-blocks-algorithm=stc
  7040. It also enables '-finline-functions', causes the compiler to tune
  7041. for code size rather than execution speed, and performs further
  7042. optimizations designed to reduce code size.
  7043. '-Ofast'
  7044. Disregard strict standards compliance. '-Ofast' enables all '-O3'
  7045. optimizations. It also enables optimizations that are not valid
  7046. for all standard-compliant programs. It turns on '-ffast-math',
  7047. '-fallow-store-data-races' and the Fortran-specific
  7048. '-fstack-arrays', unless '-fmax-stack-var-size' is specified, and
  7049. '-fno-protect-parens'.
  7050. '-Og'
  7051. Optimize debugging experience. '-Og' should be the optimization
  7052. level of choice for the standard edit-compile-debug cycle, offering
  7053. a reasonable level of optimization while maintaining fast
  7054. compilation and a good debugging experience. It is a better choice
  7055. than '-O0' for producing debuggable code because some compiler
  7056. passes that collect debug information are disabled at '-O0'.
  7057. Like '-O0', '-Og' completely disables a number of optimization
  7058. passes so that individual options controlling them have no effect.
  7059. Otherwise '-Og' enables all '-O1' optimization flags except for
  7060. those that may interfere with debugging:
  7061. -fbranch-count-reg -fdelayed-branch
  7062. -fdse -fif-conversion -fif-conversion2
  7063. -finline-functions-called-once
  7064. -fmove-loop-invariants -fssa-phiopt
  7065. -ftree-bit-ccp -ftree-dse -ftree-pta -ftree-sra
  7066. If you use multiple '-O' options, with or without level numbers, the
  7067. last such option is the one that is effective.
  7068. Options of the form '-fFLAG' specify machine-independent flags. Most
  7069. flags have both positive and negative forms; the negative form of
  7070. '-ffoo' is '-fno-foo'. In the table below, only one of the forms is
  7071. listed--the one you typically use. You can figure out the other form by
  7072. either removing 'no-' or adding it.
  7073. The following options control specific optimizations. They are either
  7074. activated by '-O' options or are related to ones that are. You can use
  7075. the following flags in the rare cases when "fine-tuning" of
  7076. optimizations to be performed is desired.
  7077. '-fno-defer-pop'
  7078. For machines that must pop arguments after a function call, always
  7079. pop the arguments as soon as each function returns. At levels
  7080. '-O1' and higher, '-fdefer-pop' is the default; this allows the
  7081. compiler to let arguments accumulate on the stack for several
  7082. function calls and pop them all at once.
  7083. '-fforward-propagate'
  7084. Perform a forward propagation pass on RTL. The pass tries to
  7085. combine two instructions and checks if the result can be
  7086. simplified. If loop unrolling is active, two passes are performed
  7087. and the second is scheduled after loop unrolling.
  7088. This option is enabled by default at optimization levels '-O',
  7089. '-O2', '-O3', '-Os'.
  7090. '-ffp-contract=STYLE'
  7091. '-ffp-contract=off' disables floating-point expression contraction.
  7092. '-ffp-contract=fast' enables floating-point expression contraction
  7093. such as forming of fused multiply-add operations if the target has
  7094. native support for them. '-ffp-contract=on' enables floating-point
  7095. expression contraction if allowed by the language standard. This
  7096. is currently not implemented and treated equal to
  7097. '-ffp-contract=off'.
  7098. The default is '-ffp-contract=fast'.
  7099. '-fomit-frame-pointer'
  7100. Omit the frame pointer in functions that don't need one. This
  7101. avoids the instructions to save, set up and restore the frame
  7102. pointer; on many targets it also makes an extra register available.
  7103. On some targets this flag has no effect because the standard
  7104. calling sequence always uses a frame pointer, so it cannot be
  7105. omitted.
  7106. Note that '-fno-omit-frame-pointer' doesn't guarantee the frame
  7107. pointer is used in all functions. Several targets always omit the
  7108. frame pointer in leaf functions.
  7109. Enabled by default at '-O' and higher.
  7110. '-foptimize-sibling-calls'
  7111. Optimize sibling and tail recursive calls.
  7112. Enabled at levels '-O2', '-O3', '-Os'.
  7113. '-foptimize-strlen'
  7114. Optimize various standard C string functions (e.g. 'strlen',
  7115. 'strchr' or 'strcpy') and their '_FORTIFY_SOURCE' counterparts into
  7116. faster alternatives.
  7117. Enabled at levels '-O2', '-O3'.
  7118. '-fno-inline'
  7119. Do not expand any functions inline apart from those marked with the
  7120. 'always_inline' attribute. This is the default when not
  7121. optimizing.
  7122. Single functions can be exempted from inlining by marking them with
  7123. the 'noinline' attribute.
  7124. '-finline-small-functions'
  7125. Integrate functions into their callers when their body is smaller
  7126. than expected function call code (so overall size of program gets
  7127. smaller). The compiler heuristically decides which functions are
  7128. simple enough to be worth integrating in this way. This inlining
  7129. applies to all functions, even those not declared inline.
  7130. Enabled at levels '-O2', '-O3', '-Os'.
  7131. '-findirect-inlining'
  7132. Inline also indirect calls that are discovered to be known at
  7133. compile time thanks to previous inlining. This option has any
  7134. effect only when inlining itself is turned on by the
  7135. '-finline-functions' or '-finline-small-functions' options.
  7136. Enabled at levels '-O2', '-O3', '-Os'.
  7137. '-finline-functions'
  7138. Consider all functions for inlining, even if they are not declared
  7139. inline. The compiler heuristically decides which functions are
  7140. worth integrating in this way.
  7141. If all calls to a given function are integrated, and the function
  7142. is declared 'static', then the function is normally not output as
  7143. assembler code in its own right.
  7144. Enabled at levels '-O2', '-O3', '-Os'. Also enabled by
  7145. '-fprofile-use' and '-fauto-profile'.
  7146. '-finline-functions-called-once'
  7147. Consider all 'static' functions called once for inlining into their
  7148. caller even if they are not marked 'inline'. If a call to a given
  7149. function is integrated, then the function is not output as
  7150. assembler code in its own right.
  7151. Enabled at levels '-O1', '-O2', '-O3' and '-Os', but not '-Og'.
  7152. '-fearly-inlining'
  7153. Inline functions marked by 'always_inline' and functions whose body
  7154. seems smaller than the function call overhead early before doing
  7155. '-fprofile-generate' instrumentation and real inlining pass. Doing
  7156. so makes profiling significantly cheaper and usually inlining
  7157. faster on programs having large chains of nested wrapper functions.
  7158. Enabled by default.
  7159. '-fipa-sra'
  7160. Perform interprocedural scalar replacement of aggregates, removal
  7161. of unused parameters and replacement of parameters passed by
  7162. reference by parameters passed by value.
  7163. Enabled at levels '-O2', '-O3' and '-Os'.
  7164. '-finline-limit=N'
  7165. By default, GCC limits the size of functions that can be inlined.
  7166. This flag allows coarse control of this limit. N is the size of
  7167. functions that can be inlined in number of pseudo instructions.
  7168. Inlining is actually controlled by a number of parameters, which
  7169. may be specified individually by using '--param NAME=VALUE'. The
  7170. '-finline-limit=N' option sets some of these parameters as follows:
  7171. 'max-inline-insns-single'
  7172. is set to N/2.
  7173. 'max-inline-insns-auto'
  7174. is set to N/2.
  7175. See below for a documentation of the individual parameters
  7176. controlling inlining and for the defaults of these parameters.
  7177. _Note:_ there may be no value to '-finline-limit' that results in
  7178. default behavior.
  7179. _Note:_ pseudo instruction represents, in this particular context,
  7180. an abstract measurement of function's size. In no way does it
  7181. represent a count of assembly instructions and as such its exact
  7182. meaning might change from one release to an another.
  7183. '-fno-keep-inline-dllexport'
  7184. This is a more fine-grained version of '-fkeep-inline-functions',
  7185. which applies only to functions that are declared using the
  7186. 'dllexport' attribute or declspec. *Note Declaring Attributes of
  7187. Functions: Function Attributes.
  7188. '-fkeep-inline-functions'
  7189. In C, emit 'static' functions that are declared 'inline' into the
  7190. object file, even if the function has been inlined into all of its
  7191. callers. This switch does not affect functions using the 'extern
  7192. inline' extension in GNU C90. In C++, emit any and all inline
  7193. functions into the object file.
  7194. '-fkeep-static-functions'
  7195. Emit 'static' functions into the object file, even if the function
  7196. is never used.
  7197. '-fkeep-static-consts'
  7198. Emit variables declared 'static const' when optimization isn't
  7199. turned on, even if the variables aren't referenced.
  7200. GCC enables this option by default. If you want to force the
  7201. compiler to check if a variable is referenced, regardless of
  7202. whether or not optimization is turned on, use the
  7203. '-fno-keep-static-consts' option.
  7204. '-fmerge-constants'
  7205. Attempt to merge identical constants (string constants and
  7206. floating-point constants) across compilation units.
  7207. This option is the default for optimized compilation if the
  7208. assembler and linker support it. Use '-fno-merge-constants' to
  7209. inhibit this behavior.
  7210. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  7211. '-fmerge-all-constants'
  7212. Attempt to merge identical constants and identical variables.
  7213. This option implies '-fmerge-constants'. In addition to
  7214. '-fmerge-constants' this considers e.g. even constant initialized
  7215. arrays or initialized constant variables with integral or
  7216. floating-point types. Languages like C or C++ require each
  7217. variable, including multiple instances of the same variable in
  7218. recursive calls, to have distinct locations, so using this option
  7219. results in non-conforming behavior.
  7220. '-fmodulo-sched'
  7221. Perform swing modulo scheduling immediately before the first
  7222. scheduling pass. This pass looks at innermost loops and reorders
  7223. their instructions by overlapping different iterations.
  7224. '-fmodulo-sched-allow-regmoves'
  7225. Perform more aggressive SMS-based modulo scheduling with register
  7226. moves allowed. By setting this flag certain anti-dependences edges
  7227. are deleted, which triggers the generation of reg-moves based on
  7228. the life-range analysis. This option is effective only with
  7229. '-fmodulo-sched' enabled.
  7230. '-fno-branch-count-reg'
  7231. Disable the optimization pass that scans for opportunities to use
  7232. "decrement and branch" instructions on a count register instead of
  7233. instruction sequences that decrement a register, compare it against
  7234. zero, and then branch based upon the result. This option is only
  7235. meaningful on architectures that support such instructions, which
  7236. include x86, PowerPC, IA-64 and S/390. Note that the
  7237. '-fno-branch-count-reg' option doesn't remove the decrement and
  7238. branch instructions from the generated instruction stream
  7239. introduced by other optimization passes.
  7240. The default is '-fbranch-count-reg' at '-O1' and higher, except for
  7241. '-Og'.
  7242. '-fno-function-cse'
  7243. Do not put function addresses in registers; make each instruction
  7244. that calls a constant function contain the function's address
  7245. explicitly.
  7246. This option results in less efficient code, but some strange hacks
  7247. that alter the assembler output may be confused by the
  7248. optimizations performed when this option is not used.
  7249. The default is '-ffunction-cse'
  7250. '-fno-zero-initialized-in-bss'
  7251. If the target supports a BSS section, GCC by default puts variables
  7252. that are initialized to zero into BSS. This can save space in the
  7253. resulting code.
  7254. This option turns off this behavior because some programs
  7255. explicitly rely on variables going to the data section--e.g., so
  7256. that the resulting executable can find the beginning of that
  7257. section and/or make assumptions based on that.
  7258. The default is '-fzero-initialized-in-bss'.
  7259. '-fthread-jumps'
  7260. Perform optimizations that check to see if a jump branches to a
  7261. location where another comparison subsumed by the first is found.
  7262. If so, the first branch is redirected to either the destination of
  7263. the second branch or a point immediately following it, depending on
  7264. whether the condition is known to be true or false.
  7265. Enabled at levels '-O2', '-O3', '-Os'.
  7266. '-fsplit-wide-types'
  7267. When using a type that occupies multiple registers, such as 'long
  7268. long' on a 32-bit system, split the registers apart and allocate
  7269. them independently. This normally generates better code for those
  7270. types, but may make debugging more difficult.
  7271. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  7272. '-fsplit-wide-types-early'
  7273. Fully split wide types early, instead of very late. This option
  7274. has no effect unless '-fsplit-wide-types' is turned on.
  7275. This is the default on some targets.
  7276. '-fcse-follow-jumps'
  7277. In common subexpression elimination (CSE), scan through jump
  7278. instructions when the target of the jump is not reached by any
  7279. other path. For example, when CSE encounters an 'if' statement
  7280. with an 'else' clause, CSE follows the jump when the condition
  7281. tested is false.
  7282. Enabled at levels '-O2', '-O3', '-Os'.
  7283. '-fcse-skip-blocks'
  7284. This is similar to '-fcse-follow-jumps', but causes CSE to follow
  7285. jumps that conditionally skip over blocks. When CSE encounters a
  7286. simple 'if' statement with no else clause, '-fcse-skip-blocks'
  7287. causes CSE to follow the jump around the body of the 'if'.
  7288. Enabled at levels '-O2', '-O3', '-Os'.
  7289. '-frerun-cse-after-loop'
  7290. Re-run common subexpression elimination after loop optimizations
  7291. are performed.
  7292. Enabled at levels '-O2', '-O3', '-Os'.
  7293. '-fgcse'
  7294. Perform a global common subexpression elimination pass. This pass
  7295. also performs global constant and copy propagation.
  7296. _Note:_ When compiling a program using computed gotos, a GCC
  7297. extension, you may get better run-time performance if you disable
  7298. the global common subexpression elimination pass by adding
  7299. '-fno-gcse' to the command line.
  7300. Enabled at levels '-O2', '-O3', '-Os'.
  7301. '-fgcse-lm'
  7302. When '-fgcse-lm' is enabled, global common subexpression
  7303. elimination attempts to move loads that are only killed by stores
  7304. into themselves. This allows a loop containing a load/store
  7305. sequence to be changed to a load outside the loop, and a copy/store
  7306. within the loop.
  7307. Enabled by default when '-fgcse' is enabled.
  7308. '-fgcse-sm'
  7309. When '-fgcse-sm' is enabled, a store motion pass is run after
  7310. global common subexpression elimination. This pass attempts to
  7311. move stores out of loops. When used in conjunction with
  7312. '-fgcse-lm', loops containing a load/store sequence can be changed
  7313. to a load before the loop and a store after the loop.
  7314. Not enabled at any optimization level.
  7315. '-fgcse-las'
  7316. When '-fgcse-las' is enabled, the global common subexpression
  7317. elimination pass eliminates redundant loads that come after stores
  7318. to the same memory location (both partial and full redundancies).
  7319. Not enabled at any optimization level.
  7320. '-fgcse-after-reload'
  7321. When '-fgcse-after-reload' is enabled, a redundant load elimination
  7322. pass is performed after reload. The purpose of this pass is to
  7323. clean up redundant spilling.
  7324. Enabled by '-fprofile-use' and '-fauto-profile'.
  7325. '-faggressive-loop-optimizations'
  7326. This option tells the loop optimizer to use language constraints to
  7327. derive bounds for the number of iterations of a loop. This assumes
  7328. that loop code does not invoke undefined behavior by for example
  7329. causing signed integer overflows or out-of-bound array accesses.
  7330. The bounds for the number of iterations of a loop are used to guide
  7331. loop unrolling and peeling and loop exit test optimizations. This
  7332. option is enabled by default.
  7333. '-funconstrained-commons'
  7334. This option tells the compiler that variables declared in common
  7335. blocks (e.g. Fortran) may later be overridden with longer trailing
  7336. arrays. This prevents certain optimizations that depend on knowing
  7337. the array bounds.
  7338. '-fcrossjumping'
  7339. Perform cross-jumping transformation. This transformation unifies
  7340. equivalent code and saves code size. The resulting code may or may
  7341. not perform better than without cross-jumping.
  7342. Enabled at levels '-O2', '-O3', '-Os'.
  7343. '-fauto-inc-dec'
  7344. Combine increments or decrements of addresses with memory accesses.
  7345. This pass is always skipped on architectures that do not have
  7346. instructions to support this. Enabled by default at '-O' and
  7347. higher on architectures that support this.
  7348. '-fdce'
  7349. Perform dead code elimination (DCE) on RTL. Enabled by default at
  7350. '-O' and higher.
  7351. '-fdse'
  7352. Perform dead store elimination (DSE) on RTL. Enabled by default at
  7353. '-O' and higher.
  7354. '-fif-conversion'
  7355. Attempt to transform conditional jumps into branch-less
  7356. equivalents. This includes use of conditional moves, min, max, set
  7357. flags and abs instructions, and some tricks doable by standard
  7358. arithmetics. The use of conditional execution on chips where it is
  7359. available is controlled by '-fif-conversion2'.
  7360. Enabled at levels '-O', '-O2', '-O3', '-Os', but not with '-Og'.
  7361. '-fif-conversion2'
  7362. Use conditional execution (where available) to transform
  7363. conditional jumps into branch-less equivalents.
  7364. Enabled at levels '-O', '-O2', '-O3', '-Os', but not with '-Og'.
  7365. '-fdeclone-ctor-dtor'
  7366. The C++ ABI requires multiple entry points for constructors and
  7367. destructors: one for a base subobject, one for a complete object,
  7368. and one for a virtual destructor that calls operator delete
  7369. afterwards. For a hierarchy with virtual bases, the base and
  7370. complete variants are clones, which means two copies of the
  7371. function. With this option, the base and complete variants are
  7372. changed to be thunks that call a common implementation.
  7373. Enabled by '-Os'.
  7374. '-fdelete-null-pointer-checks'
  7375. Assume that programs cannot safely dereference null pointers, and
  7376. that no code or data element resides at address zero. This option
  7377. enables simple constant folding optimizations at all optimization
  7378. levels. In addition, other optimization passes in GCC use this
  7379. flag to control global dataflow analyses that eliminate useless
  7380. checks for null pointers; these assume that a memory access to
  7381. address zero always results in a trap, so that if a pointer is
  7382. checked after it has already been dereferenced, it cannot be null.
  7383. Note however that in some environments this assumption is not true.
  7384. Use '-fno-delete-null-pointer-checks' to disable this optimization
  7385. for programs that depend on that behavior.
  7386. This option is enabled by default on most targets. On Nios II ELF,
  7387. it defaults to off. On AVR, CR16, and MSP430, this option is
  7388. completely disabled.
  7389. Passes that use the dataflow information are enabled independently
  7390. at different optimization levels.
  7391. '-fdevirtualize'
  7392. Attempt to convert calls to virtual functions to direct calls.
  7393. This is done both within a procedure and interprocedurally as part
  7394. of indirect inlining ('-findirect-inlining') and interprocedural
  7395. constant propagation ('-fipa-cp'). Enabled at levels '-O2', '-O3',
  7396. '-Os'.
  7397. '-fdevirtualize-speculatively'
  7398. Attempt to convert calls to virtual functions to speculative direct
  7399. calls. Based on the analysis of the type inheritance graph,
  7400. determine for a given call the set of likely targets. If the set
  7401. is small, preferably of size 1, change the call into a conditional
  7402. deciding between direct and indirect calls. The speculative calls
  7403. enable more optimizations, such as inlining. When they seem
  7404. useless after further optimization, they are converted back into
  7405. original form.
  7406. '-fdevirtualize-at-ltrans'
  7407. Stream extra information needed for aggressive devirtualization
  7408. when running the link-time optimizer in local transformation mode.
  7409. This option enables more devirtualization but significantly
  7410. increases the size of streamed data. For this reason it is
  7411. disabled by default.
  7412. '-fexpensive-optimizations'
  7413. Perform a number of minor optimizations that are relatively
  7414. expensive.
  7415. Enabled at levels '-O2', '-O3', '-Os'.
  7416. '-free'
  7417. Attempt to remove redundant extension instructions. This is
  7418. especially helpful for the x86-64 architecture, which implicitly
  7419. zero-extends in 64-bit registers after writing to their lower
  7420. 32-bit half.
  7421. Enabled for Alpha, AArch64 and x86 at levels '-O2', '-O3', '-Os'.
  7422. '-fno-lifetime-dse'
  7423. In C++ the value of an object is only affected by changes within
  7424. its lifetime: when the constructor begins, the object has an
  7425. indeterminate value, and any changes during the lifetime of the
  7426. object are dead when the object is destroyed. Normally dead store
  7427. elimination will take advantage of this; if your code relies on the
  7428. value of the object storage persisting beyond the lifetime of the
  7429. object, you can use this flag to disable this optimization. To
  7430. preserve stores before the constructor starts (e.g. because your
  7431. operator new clears the object storage) but still treat the object
  7432. as dead after the destructor, you can use '-flifetime-dse=1'. The
  7433. default behavior can be explicitly selected with
  7434. '-flifetime-dse=2'. '-flifetime-dse=0' is equivalent to
  7435. '-fno-lifetime-dse'.
  7436. '-flive-range-shrinkage'
  7437. Attempt to decrease register pressure through register live range
  7438. shrinkage. This is helpful for fast processors with small or
  7439. moderate size register sets.
  7440. '-fira-algorithm=ALGORITHM'
  7441. Use the specified coloring algorithm for the integrated register
  7442. allocator. The ALGORITHM argument can be 'priority', which
  7443. specifies Chow's priority coloring, or 'CB', which specifies
  7444. Chaitin-Briggs coloring. Chaitin-Briggs coloring is not
  7445. implemented for all architectures, but for those targets that do
  7446. support it, it is the default because it generates better code.
  7447. '-fira-region=REGION'
  7448. Use specified regions for the integrated register allocator. The
  7449. REGION argument should be one of the following:
  7450. 'all'
  7451. Use all loops as register allocation regions. This can give
  7452. the best results for machines with a small and/or irregular
  7453. register set.
  7454. 'mixed'
  7455. Use all loops except for loops with small register pressure as
  7456. the regions. This value usually gives the best results in
  7457. most cases and for most architectures, and is enabled by
  7458. default when compiling with optimization for speed ('-O',
  7459. '-O2', ...).
  7460. 'one'
  7461. Use all functions as a single region. This typically results
  7462. in the smallest code size, and is enabled by default for '-Os'
  7463. or '-O0'.
  7464. '-fira-hoist-pressure'
  7465. Use IRA to evaluate register pressure in the code hoisting pass for
  7466. decisions to hoist expressions. This option usually results in
  7467. smaller code, but it can slow the compiler down.
  7468. This option is enabled at level '-Os' for all targets.
  7469. '-fira-loop-pressure'
  7470. Use IRA to evaluate register pressure in loops for decisions to
  7471. move loop invariants. This option usually results in generation of
  7472. faster and smaller code on machines with large register files (>=
  7473. 32 registers), but it can slow the compiler down.
  7474. This option is enabled at level '-O3' for some targets.
  7475. '-fno-ira-share-save-slots'
  7476. Disable sharing of stack slots used for saving call-used hard
  7477. registers living through a call. Each hard register gets a
  7478. separate stack slot, and as a result function stack frames are
  7479. larger.
  7480. '-fno-ira-share-spill-slots'
  7481. Disable sharing of stack slots allocated for pseudo-registers.
  7482. Each pseudo-register that does not get a hard register gets a
  7483. separate stack slot, and as a result function stack frames are
  7484. larger.
  7485. '-flra-remat'
  7486. Enable CFG-sensitive rematerialization in LRA. Instead of loading
  7487. values of spilled pseudos, LRA tries to rematerialize (recalculate)
  7488. values if it is profitable.
  7489. Enabled at levels '-O2', '-O3', '-Os'.
  7490. '-fdelayed-branch'
  7491. If supported for the target machine, attempt to reorder
  7492. instructions to exploit instruction slots available after delayed
  7493. branch instructions.
  7494. Enabled at levels '-O', '-O2', '-O3', '-Os', but not at '-Og'.
  7495. '-fschedule-insns'
  7496. If supported for the target machine, attempt to reorder
  7497. instructions to eliminate execution stalls due to required data
  7498. being unavailable. This helps machines that have slow floating
  7499. point or memory load instructions by allowing other instructions to
  7500. be issued until the result of the load or floating-point
  7501. instruction is required.
  7502. Enabled at levels '-O2', '-O3'.
  7503. '-fschedule-insns2'
  7504. Similar to '-fschedule-insns', but requests an additional pass of
  7505. instruction scheduling after register allocation has been done.
  7506. This is especially useful on machines with a relatively small
  7507. number of registers and where memory load instructions take more
  7508. than one cycle.
  7509. Enabled at levels '-O2', '-O3', '-Os'.
  7510. '-fno-sched-interblock'
  7511. Disable instruction scheduling across basic blocks, which is
  7512. normally enabled when scheduling before register allocation, i.e.
  7513. with '-fschedule-insns' or at '-O2' or higher.
  7514. '-fno-sched-spec'
  7515. Disable speculative motion of non-load instructions, which is
  7516. normally enabled when scheduling before register allocation, i.e.
  7517. with '-fschedule-insns' or at '-O2' or higher.
  7518. '-fsched-pressure'
  7519. Enable register pressure sensitive insn scheduling before register
  7520. allocation. This only makes sense when scheduling before register
  7521. allocation is enabled, i.e. with '-fschedule-insns' or at '-O2' or
  7522. higher. Usage of this option can improve the generated code and
  7523. decrease its size by preventing register pressure increase above
  7524. the number of available hard registers and subsequent spills in
  7525. register allocation.
  7526. '-fsched-spec-load'
  7527. Allow speculative motion of some load instructions. This only
  7528. makes sense when scheduling before register allocation, i.e. with
  7529. '-fschedule-insns' or at '-O2' or higher.
  7530. '-fsched-spec-load-dangerous'
  7531. Allow speculative motion of more load instructions. This only
  7532. makes sense when scheduling before register allocation, i.e. with
  7533. '-fschedule-insns' or at '-O2' or higher.
  7534. '-fsched-stalled-insns'
  7535. '-fsched-stalled-insns=N'
  7536. Define how many insns (if any) can be moved prematurely from the
  7537. queue of stalled insns into the ready list during the second
  7538. scheduling pass. '-fno-sched-stalled-insns' means that no insns
  7539. are moved prematurely, '-fsched-stalled-insns=0' means there is no
  7540. limit on how many queued insns can be moved prematurely.
  7541. '-fsched-stalled-insns' without a value is equivalent to
  7542. '-fsched-stalled-insns=1'.
  7543. '-fsched-stalled-insns-dep'
  7544. '-fsched-stalled-insns-dep=N'
  7545. Define how many insn groups (cycles) are examined for a dependency
  7546. on a stalled insn that is a candidate for premature removal from
  7547. the queue of stalled insns. This has an effect only during the
  7548. second scheduling pass, and only if '-fsched-stalled-insns' is
  7549. used. '-fno-sched-stalled-insns-dep' is equivalent to
  7550. '-fsched-stalled-insns-dep=0'. '-fsched-stalled-insns-dep' without
  7551. a value is equivalent to '-fsched-stalled-insns-dep=1'.
  7552. '-fsched2-use-superblocks'
  7553. When scheduling after register allocation, use superblock
  7554. scheduling. This allows motion across basic block boundaries,
  7555. resulting in faster schedules. This option is experimental, as not
  7556. all machine descriptions used by GCC model the CPU closely enough
  7557. to avoid unreliable results from the algorithm.
  7558. This only makes sense when scheduling after register allocation,
  7559. i.e. with '-fschedule-insns2' or at '-O2' or higher.
  7560. '-fsched-group-heuristic'
  7561. Enable the group heuristic in the scheduler. This heuristic favors
  7562. the instruction that belongs to a schedule group. This is enabled
  7563. by default when scheduling is enabled, i.e. with '-fschedule-insns'
  7564. or '-fschedule-insns2' or at '-O2' or higher.
  7565. '-fsched-critical-path-heuristic'
  7566. Enable the critical-path heuristic in the scheduler. This
  7567. heuristic favors instructions on the critical path. This is
  7568. enabled by default when scheduling is enabled, i.e. with
  7569. '-fschedule-insns' or '-fschedule-insns2' or at '-O2' or higher.
  7570. '-fsched-spec-insn-heuristic'
  7571. Enable the speculative instruction heuristic in the scheduler.
  7572. This heuristic favors speculative instructions with greater
  7573. dependency weakness. This is enabled by default when scheduling is
  7574. enabled, i.e. with '-fschedule-insns' or '-fschedule-insns2' or at
  7575. '-O2' or higher.
  7576. '-fsched-rank-heuristic'
  7577. Enable the rank heuristic in the scheduler. This heuristic favors
  7578. the instruction belonging to a basic block with greater size or
  7579. frequency. This is enabled by default when scheduling is enabled,
  7580. i.e. with '-fschedule-insns' or '-fschedule-insns2' or at '-O2' or
  7581. higher.
  7582. '-fsched-last-insn-heuristic'
  7583. Enable the last-instruction heuristic in the scheduler. This
  7584. heuristic favors the instruction that is less dependent on the last
  7585. instruction scheduled. This is enabled by default when scheduling
  7586. is enabled, i.e. with '-fschedule-insns' or '-fschedule-insns2' or
  7587. at '-O2' or higher.
  7588. '-fsched-dep-count-heuristic'
  7589. Enable the dependent-count heuristic in the scheduler. This
  7590. heuristic favors the instruction that has more instructions
  7591. depending on it. This is enabled by default when scheduling is
  7592. enabled, i.e. with '-fschedule-insns' or '-fschedule-insns2' or at
  7593. '-O2' or higher.
  7594. '-freschedule-modulo-scheduled-loops'
  7595. Modulo scheduling is performed before traditional scheduling. If a
  7596. loop is modulo scheduled, later scheduling passes may change its
  7597. schedule. Use this option to control that behavior.
  7598. '-fselective-scheduling'
  7599. Schedule instructions using selective scheduling algorithm.
  7600. Selective scheduling runs instead of the first scheduler pass.
  7601. '-fselective-scheduling2'
  7602. Schedule instructions using selective scheduling algorithm.
  7603. Selective scheduling runs instead of the second scheduler pass.
  7604. '-fsel-sched-pipelining'
  7605. Enable software pipelining of innermost loops during selective
  7606. scheduling. This option has no effect unless one of
  7607. '-fselective-scheduling' or '-fselective-scheduling2' is turned on.
  7608. '-fsel-sched-pipelining-outer-loops'
  7609. When pipelining loops during selective scheduling, also pipeline
  7610. outer loops. This option has no effect unless
  7611. '-fsel-sched-pipelining' is turned on.
  7612. '-fsemantic-interposition'
  7613. Some object formats, like ELF, allow interposing of symbols by the
  7614. dynamic linker. This means that for symbols exported from the DSO,
  7615. the compiler cannot perform interprocedural propagation, inlining
  7616. and other optimizations in anticipation that the function or
  7617. variable in question may change. While this feature is useful, for
  7618. example, to rewrite memory allocation functions by a debugging
  7619. implementation, it is expensive in the terms of code quality. With
  7620. '-fno-semantic-interposition' the compiler assumes that if
  7621. interposition happens for functions the overwriting function will
  7622. have precisely the same semantics (and side effects). Similarly if
  7623. interposition happens for variables, the constructor of the
  7624. variable will be the same. The flag has no effect for functions
  7625. explicitly declared inline (where it is never allowed for
  7626. interposition to change semantics) and for symbols explicitly
  7627. declared weak.
  7628. '-fshrink-wrap'
  7629. Emit function prologues only before parts of the function that need
  7630. it, rather than at the top of the function. This flag is enabled
  7631. by default at '-O' and higher.
  7632. '-fshrink-wrap-separate'
  7633. Shrink-wrap separate parts of the prologue and epilogue separately,
  7634. so that those parts are only executed when needed. This option is
  7635. on by default, but has no effect unless '-fshrink-wrap' is also
  7636. turned on and the target supports this.
  7637. '-fcaller-saves'
  7638. Enable allocation of values to registers that are clobbered by
  7639. function calls, by emitting extra instructions to save and restore
  7640. the registers around such calls. Such allocation is done only when
  7641. it seems to result in better code.
  7642. This option is always enabled by default on certain machines,
  7643. usually those which have no call-preserved registers to use
  7644. instead.
  7645. Enabled at levels '-O2', '-O3', '-Os'.
  7646. '-fcombine-stack-adjustments'
  7647. Tracks stack adjustments (pushes and pops) and stack memory
  7648. references and then tries to find ways to combine them.
  7649. Enabled by default at '-O1' and higher.
  7650. '-fipa-ra'
  7651. Use caller save registers for allocation if those registers are not
  7652. used by any called function. In that case it is not necessary to
  7653. save and restore them around calls. This is only possible if
  7654. called functions are part of same compilation unit as current
  7655. function and they are compiled before it.
  7656. Enabled at levels '-O2', '-O3', '-Os', however the option is
  7657. disabled if generated code will be instrumented for profiling
  7658. ('-p', or '-pg') or if callee's register usage cannot be known
  7659. exactly (this happens on targets that do not expose prologues and
  7660. epilogues in RTL).
  7661. '-fconserve-stack'
  7662. Attempt to minimize stack usage. The compiler attempts to use less
  7663. stack space, even if that makes the program slower. This option
  7664. implies setting the 'large-stack-frame' parameter to 100 and the
  7665. 'large-stack-frame-growth' parameter to 400.
  7666. '-ftree-reassoc'
  7667. Perform reassociation on trees. This flag is enabled by default at
  7668. '-O' and higher.
  7669. '-fcode-hoisting'
  7670. Perform code hoisting. Code hoisting tries to move the evaluation
  7671. of expressions executed on all paths to the function exit as early
  7672. as possible. This is especially useful as a code size
  7673. optimization, but it often helps for code speed as well. This flag
  7674. is enabled by default at '-O2' and higher.
  7675. '-ftree-pre'
  7676. Perform partial redundancy elimination (PRE) on trees. This flag
  7677. is enabled by default at '-O2' and '-O3'.
  7678. '-ftree-partial-pre'
  7679. Make partial redundancy elimination (PRE) more aggressive. This
  7680. flag is enabled by default at '-O3'.
  7681. '-ftree-forwprop'
  7682. Perform forward propagation on trees. This flag is enabled by
  7683. default at '-O' and higher.
  7684. '-ftree-fre'
  7685. Perform full redundancy elimination (FRE) on trees. The difference
  7686. between FRE and PRE is that FRE only considers expressions that are
  7687. computed on all paths leading to the redundant computation. This
  7688. analysis is faster than PRE, though it exposes fewer redundancies.
  7689. This flag is enabled by default at '-O' and higher.
  7690. '-ftree-phiprop'
  7691. Perform hoisting of loads from conditional pointers on trees. This
  7692. pass is enabled by default at '-O' and higher.
  7693. '-fhoist-adjacent-loads'
  7694. Speculatively hoist loads from both branches of an if-then-else if
  7695. the loads are from adjacent locations in the same structure and the
  7696. target architecture has a conditional move instruction. This flag
  7697. is enabled by default at '-O2' and higher.
  7698. '-ftree-copy-prop'
  7699. Perform copy propagation on trees. This pass eliminates
  7700. unnecessary copy operations. This flag is enabled by default at
  7701. '-O' and higher.
  7702. '-fipa-pure-const'
  7703. Discover which functions are pure or constant. Enabled by default
  7704. at '-O' and higher.
  7705. '-fipa-reference'
  7706. Discover which static variables do not escape the compilation unit.
  7707. Enabled by default at '-O' and higher.
  7708. '-fipa-reference-addressable'
  7709. Discover read-only, write-only and non-addressable static
  7710. variables. Enabled by default at '-O' and higher.
  7711. '-fipa-stack-alignment'
  7712. Reduce stack alignment on call sites if possible. Enabled by
  7713. default.
  7714. '-fipa-pta'
  7715. Perform interprocedural pointer analysis and interprocedural
  7716. modification and reference analysis. This option can cause
  7717. excessive memory and compile-time usage on large compilation units.
  7718. It is not enabled by default at any optimization level.
  7719. '-fipa-profile'
  7720. Perform interprocedural profile propagation. The functions called
  7721. only from cold functions are marked as cold. Also functions
  7722. executed once (such as 'cold', 'noreturn', static constructors or
  7723. destructors) are identified. Cold functions and loop less parts of
  7724. functions executed once are then optimized for size. Enabled by
  7725. default at '-O' and higher.
  7726. '-fipa-cp'
  7727. Perform interprocedural constant propagation. This optimization
  7728. analyzes the program to determine when values passed to functions
  7729. are constants and then optimizes accordingly. This optimization
  7730. can substantially increase performance if the application has
  7731. constants passed to functions. This flag is enabled by default at
  7732. '-O2', '-Os' and '-O3'. It is also enabled by '-fprofile-use' and
  7733. '-fauto-profile'.
  7734. '-fipa-cp-clone'
  7735. Perform function cloning to make interprocedural constant
  7736. propagation stronger. When enabled, interprocedural constant
  7737. propagation performs function cloning when externally visible
  7738. function can be called with constant arguments. Because this
  7739. optimization can create multiple copies of functions, it may
  7740. significantly increase code size (see '--param
  7741. ipa-cp-unit-growth=VALUE'). This flag is enabled by default at
  7742. '-O3'. It is also enabled by '-fprofile-use' and '-fauto-profile'.
  7743. '-fipa-bit-cp'
  7744. When enabled, perform interprocedural bitwise constant propagation.
  7745. This flag is enabled by default at '-O2' and by '-fprofile-use' and
  7746. '-fauto-profile'. It requires that '-fipa-cp' is enabled.
  7747. '-fipa-vrp'
  7748. When enabled, perform interprocedural propagation of value ranges.
  7749. This flag is enabled by default at '-O2'. It requires that
  7750. '-fipa-cp' is enabled.
  7751. '-fipa-icf'
  7752. Perform Identical Code Folding for functions and read-only
  7753. variables. The optimization reduces code size and may disturb
  7754. unwind stacks by replacing a function by equivalent one with a
  7755. different name. The optimization works more effectively with
  7756. link-time optimization enabled.
  7757. Although the behavior is similar to the Gold Linker's ICF
  7758. optimization, GCC ICF works on different levels and thus the
  7759. optimizations are not same - there are equivalences that are found
  7760. only by GCC and equivalences found only by Gold.
  7761. This flag is enabled by default at '-O2' and '-Os'.
  7762. '-flive-patching=LEVEL'
  7763. Control GCC's optimizations to produce output suitable for
  7764. live-patching.
  7765. If the compiler's optimization uses a function's body or
  7766. information extracted from its body to optimize/change another
  7767. function, the latter is called an impacted function of the former.
  7768. If a function is patched, its impacted functions should be patched
  7769. too.
  7770. The impacted functions are determined by the compiler's
  7771. interprocedural optimizations. For example, a caller is impacted
  7772. when inlining a function into its caller, cloning a function and
  7773. changing its caller to call this new clone, or extracting a
  7774. function's pureness/constness information to optimize its direct or
  7775. indirect callers, etc.
  7776. Usually, the more IPA optimizations enabled, the larger the number
  7777. of impacted functions for each function. In order to control the
  7778. number of impacted functions and more easily compute the list of
  7779. impacted function, IPA optimizations can be partially enabled at
  7780. two different levels.
  7781. The LEVEL argument should be one of the following:
  7782. 'inline-clone'
  7783. Only enable inlining and cloning optimizations, which includes
  7784. inlining, cloning, interprocedural scalar replacement of
  7785. aggregates and partial inlining. As a result, when patching a
  7786. function, all its callers and its clones' callers are
  7787. impacted, therefore need to be patched as well.
  7788. '-flive-patching=inline-clone' disables the following
  7789. optimization flags:
  7790. -fwhole-program -fipa-pta -fipa-reference -fipa-ra
  7791. -fipa-icf -fipa-icf-functions -fipa-icf-variables
  7792. -fipa-bit-cp -fipa-vrp -fipa-pure-const -fipa-reference-addressable
  7793. -fipa-stack-alignment
  7794. 'inline-only-static'
  7795. Only enable inlining of static functions. As a result, when
  7796. patching a static function, all its callers are impacted and
  7797. so need to be patched as well.
  7798. In addition to all the flags that
  7799. '-flive-patching=inline-clone' disables,
  7800. '-flive-patching=inline-only-static' disables the following
  7801. additional optimization flags:
  7802. -fipa-cp-clone -fipa-sra -fpartial-inlining -fipa-cp
  7803. When '-flive-patching' is specified without any value, the default
  7804. value is INLINE-CLONE.
  7805. This flag is disabled by default.
  7806. Note that '-flive-patching' is not supported with link-time
  7807. optimization ('-flto').
  7808. '-fisolate-erroneous-paths-dereference'
  7809. Detect paths that trigger erroneous or undefined behavior due to
  7810. dereferencing a null pointer. Isolate those paths from the main
  7811. control flow and turn the statement with erroneous or undefined
  7812. behavior into a trap. This flag is enabled by default at '-O2' and
  7813. higher and depends on '-fdelete-null-pointer-checks' also being
  7814. enabled.
  7815. '-fisolate-erroneous-paths-attribute'
  7816. Detect paths that trigger erroneous or undefined behavior due to a
  7817. null value being used in a way forbidden by a 'returns_nonnull' or
  7818. 'nonnull' attribute. Isolate those paths from the main control
  7819. flow and turn the statement with erroneous or undefined behavior
  7820. into a trap. This is not currently enabled, but may be enabled by
  7821. '-O2' in the future.
  7822. '-ftree-sink'
  7823. Perform forward store motion on trees. This flag is enabled by
  7824. default at '-O' and higher.
  7825. '-ftree-bit-ccp'
  7826. Perform sparse conditional bit constant propagation on trees and
  7827. propagate pointer alignment information. This pass only operates
  7828. on local scalar variables and is enabled by default at '-O1' and
  7829. higher, except for '-Og'. It requires that '-ftree-ccp' is
  7830. enabled.
  7831. '-ftree-ccp'
  7832. Perform sparse conditional constant propagation (CCP) on trees.
  7833. This pass only operates on local scalar variables and is enabled by
  7834. default at '-O' and higher.
  7835. '-fssa-backprop'
  7836. Propagate information about uses of a value up the definition chain
  7837. in order to simplify the definitions. For example, this pass
  7838. strips sign operations if the sign of a value never matters. The
  7839. flag is enabled by default at '-O' and higher.
  7840. '-fssa-phiopt'
  7841. Perform pattern matching on SSA PHI nodes to optimize conditional
  7842. code. This pass is enabled by default at '-O1' and higher, except
  7843. for '-Og'.
  7844. '-ftree-switch-conversion'
  7845. Perform conversion of simple initializations in a switch to
  7846. initializations from a scalar array. This flag is enabled by
  7847. default at '-O2' and higher.
  7848. '-ftree-tail-merge'
  7849. Look for identical code sequences. When found, replace one with a
  7850. jump to the other. This optimization is known as tail merging or
  7851. cross jumping. This flag is enabled by default at '-O2' and
  7852. higher. The compilation time in this pass can be limited using
  7853. 'max-tail-merge-comparisons' parameter and
  7854. 'max-tail-merge-iterations' parameter.
  7855. '-ftree-dce'
  7856. Perform dead code elimination (DCE) on trees. This flag is enabled
  7857. by default at '-O' and higher.
  7858. '-ftree-builtin-call-dce'
  7859. Perform conditional dead code elimination (DCE) for calls to
  7860. built-in functions that may set 'errno' but are otherwise free of
  7861. side effects. This flag is enabled by default at '-O2' and higher
  7862. if '-Os' is not also specified.
  7863. '-ffinite-loops'
  7864. Assume that a loop with an exit will eventually take the exit and
  7865. not loop indefinitely. This allows the compiler to remove loops
  7866. that otherwise have no side-effects, not considering eventual
  7867. endless looping as such.
  7868. This option is enabled by default at '-O2' for C++ with -std=c++11
  7869. or higher.
  7870. '-ftree-dominator-opts'
  7871. Perform a variety of simple scalar cleanups (constant/copy
  7872. propagation, redundancy elimination, range propagation and
  7873. expression simplification) based on a dominator tree traversal.
  7874. This also performs jump threading (to reduce jumps to jumps). This
  7875. flag is enabled by default at '-O' and higher.
  7876. '-ftree-dse'
  7877. Perform dead store elimination (DSE) on trees. A dead store is a
  7878. store into a memory location that is later overwritten by another
  7879. store without any intervening loads. In this case the earlier
  7880. store can be deleted. This flag is enabled by default at '-O' and
  7881. higher.
  7882. '-ftree-ch'
  7883. Perform loop header copying on trees. This is beneficial since it
  7884. increases effectiveness of code motion optimizations. It also
  7885. saves one jump. This flag is enabled by default at '-O' and
  7886. higher. It is not enabled for '-Os', since it usually increases
  7887. code size.
  7888. '-ftree-loop-optimize'
  7889. Perform loop optimizations on trees. This flag is enabled by
  7890. default at '-O' and higher.
  7891. '-ftree-loop-linear'
  7892. '-floop-strip-mine'
  7893. '-floop-block'
  7894. Perform loop nest optimizations. Same as '-floop-nest-optimize'.
  7895. To use this code transformation, GCC has to be configured with
  7896. '--with-isl' to enable the Graphite loop transformation
  7897. infrastructure.
  7898. '-fgraphite-identity'
  7899. Enable the identity transformation for graphite. For every SCoP we
  7900. generate the polyhedral representation and transform it back to
  7901. gimple. Using '-fgraphite-identity' we can check the costs or
  7902. benefits of the GIMPLE -> GRAPHITE -> GIMPLE transformation. Some
  7903. minimal optimizations are also performed by the code generator isl,
  7904. like index splitting and dead code elimination in loops.
  7905. '-floop-nest-optimize'
  7906. Enable the isl based loop nest optimizer. This is a generic loop
  7907. nest optimizer based on the Pluto optimization algorithms. It
  7908. calculates a loop structure optimized for data-locality and
  7909. parallelism. This option is experimental.
  7910. '-floop-parallelize-all'
  7911. Use the Graphite data dependence analysis to identify loops that
  7912. can be parallelized. Parallelize all the loops that can be
  7913. analyzed to not contain loop carried dependences without checking
  7914. that it is profitable to parallelize the loops.
  7915. '-ftree-coalesce-vars'
  7916. While transforming the program out of the SSA representation,
  7917. attempt to reduce copying by coalescing versions of different
  7918. user-defined variables, instead of just compiler temporaries. This
  7919. may severely limit the ability to debug an optimized program
  7920. compiled with '-fno-var-tracking-assignments'. In the negated
  7921. form, this flag prevents SSA coalescing of user variables. This
  7922. option is enabled by default if optimization is enabled, and it
  7923. does very little otherwise.
  7924. '-ftree-loop-if-convert'
  7925. Attempt to transform conditional jumps in the innermost loops to
  7926. branch-less equivalents. The intent is to remove control-flow from
  7927. the innermost loops in order to improve the ability of the
  7928. vectorization pass to handle these loops. This is enabled by
  7929. default if vectorization is enabled.
  7930. '-ftree-loop-distribution'
  7931. Perform loop distribution. This flag can improve cache performance
  7932. on big loop bodies and allow further loop optimizations, like
  7933. parallelization or vectorization, to take place. For example, the
  7934. loop
  7935. DO I = 1, N
  7936. A(I) = B(I) + C
  7937. D(I) = E(I) * F
  7938. ENDDO
  7939. is transformed to
  7940. DO I = 1, N
  7941. A(I) = B(I) + C
  7942. ENDDO
  7943. DO I = 1, N
  7944. D(I) = E(I) * F
  7945. ENDDO
  7946. This flag is enabled by default at '-O3'. It is also enabled by
  7947. '-fprofile-use' and '-fauto-profile'.
  7948. '-ftree-loop-distribute-patterns'
  7949. Perform loop distribution of patterns that can be code generated
  7950. with calls to a library. This flag is enabled by default at '-O2'
  7951. and higher, and by '-fprofile-use' and '-fauto-profile'.
  7952. This pass distributes the initialization loops and generates a call
  7953. to memset zero. For example, the loop
  7954. DO I = 1, N
  7955. A(I) = 0
  7956. B(I) = A(I) + I
  7957. ENDDO
  7958. is transformed to
  7959. DO I = 1, N
  7960. A(I) = 0
  7961. ENDDO
  7962. DO I = 1, N
  7963. B(I) = A(I) + I
  7964. ENDDO
  7965. and the initialization loop is transformed into a call to memset
  7966. zero. This flag is enabled by default at '-O3'. It is also
  7967. enabled by '-fprofile-use' and '-fauto-profile'.
  7968. '-floop-interchange'
  7969. Perform loop interchange outside of graphite. This flag can
  7970. improve cache performance on loop nest and allow further loop
  7971. optimizations, like vectorization, to take place. For example, the
  7972. loop
  7973. for (int i = 0; i < N; i++)
  7974. for (int j = 0; j < N; j++)
  7975. for (int k = 0; k < N; k++)
  7976. c[i][j] = c[i][j] + a[i][k]*b[k][j];
  7977. is transformed to
  7978. for (int i = 0; i < N; i++)
  7979. for (int k = 0; k < N; k++)
  7980. for (int j = 0; j < N; j++)
  7981. c[i][j] = c[i][j] + a[i][k]*b[k][j];
  7982. This flag is enabled by default at '-O3'. It is also enabled by
  7983. '-fprofile-use' and '-fauto-profile'.
  7984. '-floop-unroll-and-jam'
  7985. Apply unroll and jam transformations on feasible loops. In a loop
  7986. nest this unrolls the outer loop by some factor and fuses the
  7987. resulting multiple inner loops. This flag is enabled by default at
  7988. '-O3'. It is also enabled by '-fprofile-use' and '-fauto-profile'.
  7989. '-ftree-loop-im'
  7990. Perform loop invariant motion on trees. This pass moves only
  7991. invariants that are hard to handle at RTL level (function calls,
  7992. operations that expand to nontrivial sequences of insns). With
  7993. '-funswitch-loops' it also moves operands of conditions that are
  7994. invariant out of the loop, so that we can use just trivial
  7995. invariantness analysis in loop unswitching. The pass also includes
  7996. store motion.
  7997. '-ftree-loop-ivcanon'
  7998. Create a canonical counter for number of iterations in loops for
  7999. which determining number of iterations requires complicated
  8000. analysis. Later optimizations then may determine the number
  8001. easily. Useful especially in connection with unrolling.
  8002. '-ftree-scev-cprop'
  8003. Perform final value replacement. If a variable is modified in a
  8004. loop in such a way that its value when exiting the loop can be
  8005. determined using only its initial value and the number of loop
  8006. iterations, replace uses of the final value by such a computation,
  8007. provided it is sufficiently cheap. This reduces data dependencies
  8008. and may allow further simplifications. Enabled by default at '-O'
  8009. and higher.
  8010. '-fivopts'
  8011. Perform induction variable optimizations (strength reduction,
  8012. induction variable merging and induction variable elimination) on
  8013. trees.
  8014. '-ftree-parallelize-loops=n'
  8015. Parallelize loops, i.e., split their iteration space to run in n
  8016. threads. This is only possible for loops whose iterations are
  8017. independent and can be arbitrarily reordered. The optimization is
  8018. only profitable on multiprocessor machines, for loops that are
  8019. CPU-intensive, rather than constrained e.g. by memory bandwidth.
  8020. This option implies '-pthread', and thus is only supported on
  8021. targets that have support for '-pthread'.
  8022. '-ftree-pta'
  8023. Perform function-local points-to analysis on trees. This flag is
  8024. enabled by default at '-O1' and higher, except for '-Og'.
  8025. '-ftree-sra'
  8026. Perform scalar replacement of aggregates. This pass replaces
  8027. structure references with scalars to prevent committing structures
  8028. to memory too early. This flag is enabled by default at '-O1' and
  8029. higher, except for '-Og'.
  8030. '-fstore-merging'
  8031. Perform merging of narrow stores to consecutive memory addresses.
  8032. This pass merges contiguous stores of immediate values narrower
  8033. than a word into fewer wider stores to reduce the number of
  8034. instructions. This is enabled by default at '-O2' and higher as
  8035. well as '-Os'.
  8036. '-ftree-ter'
  8037. Perform temporary expression replacement during the SSA->normal
  8038. phase. Single use/single def temporaries are replaced at their use
  8039. location with their defining expression. This results in
  8040. non-GIMPLE code, but gives the expanders much more complex trees to
  8041. work on resulting in better RTL generation. This is enabled by
  8042. default at '-O' and higher.
  8043. '-ftree-slsr'
  8044. Perform straight-line strength reduction on trees. This recognizes
  8045. related expressions involving multiplications and replaces them by
  8046. less expensive calculations when possible. This is enabled by
  8047. default at '-O' and higher.
  8048. '-ftree-vectorize'
  8049. Perform vectorization on trees. This flag enables
  8050. '-ftree-loop-vectorize' and '-ftree-slp-vectorize' if not
  8051. explicitly specified.
  8052. '-ftree-loop-vectorize'
  8053. Perform loop vectorization on trees. This flag is enabled by
  8054. default at '-O3' and by '-ftree-vectorize', '-fprofile-use', and
  8055. '-fauto-profile'.
  8056. '-ftree-slp-vectorize'
  8057. Perform basic block vectorization on trees. This flag is enabled
  8058. by default at '-O3' and by '-ftree-vectorize', '-fprofile-use', and
  8059. '-fauto-profile'.
  8060. '-fvect-cost-model=MODEL'
  8061. Alter the cost model used for vectorization. The MODEL argument
  8062. should be one of 'unlimited', 'dynamic' or 'cheap'. With the
  8063. 'unlimited' model the vectorized code-path is assumed to be
  8064. profitable while with the 'dynamic' model a runtime check guards
  8065. the vectorized code-path to enable it only for iteration counts
  8066. that will likely execute faster than when executing the original
  8067. scalar loop. The 'cheap' model disables vectorization of loops
  8068. where doing so would be cost prohibitive for example due to
  8069. required runtime checks for data dependence or alignment but
  8070. otherwise is equal to the 'dynamic' model. The default cost model
  8071. depends on other optimization flags and is either 'dynamic' or
  8072. 'cheap'.
  8073. '-fsimd-cost-model=MODEL'
  8074. Alter the cost model used for vectorization of loops marked with
  8075. the OpenMP simd directive. The MODEL argument should be one of
  8076. 'unlimited', 'dynamic', 'cheap'. All values of MODEL have the same
  8077. meaning as described in '-fvect-cost-model' and by default a cost
  8078. model defined with '-fvect-cost-model' is used.
  8079. '-ftree-vrp'
  8080. Perform Value Range Propagation on trees. This is similar to the
  8081. constant propagation pass, but instead of values, ranges of values
  8082. are propagated. This allows the optimizers to remove unnecessary
  8083. range checks like array bound checks and null pointer checks. This
  8084. is enabled by default at '-O2' and higher. Null pointer check
  8085. elimination is only done if '-fdelete-null-pointer-checks' is
  8086. enabled.
  8087. '-fsplit-paths'
  8088. Split paths leading to loop backedges. This can improve dead code
  8089. elimination and common subexpression elimination. This is enabled
  8090. by default at '-O3' and above.
  8091. '-fsplit-ivs-in-unroller'
  8092. Enables expression of values of induction variables in later
  8093. iterations of the unrolled loop using the value in the first
  8094. iteration. This breaks long dependency chains, thus improving
  8095. efficiency of the scheduling passes.
  8096. A combination of '-fweb' and CSE is often sufficient to obtain the
  8097. same effect. However, that is not reliable in cases where the loop
  8098. body is more complicated than a single basic block. It also does
  8099. not work at all on some architectures due to restrictions in the
  8100. CSE pass.
  8101. This optimization is enabled by default.
  8102. '-fvariable-expansion-in-unroller'
  8103. With this option, the compiler creates multiple copies of some
  8104. local variables when unrolling a loop, which can result in superior
  8105. code.
  8106. This optimization is enabled by default for PowerPC targets, but
  8107. disabled by default otherwise.
  8108. '-fpartial-inlining'
  8109. Inline parts of functions. This option has any effect only when
  8110. inlining itself is turned on by the '-finline-functions' or
  8111. '-finline-small-functions' options.
  8112. Enabled at levels '-O2', '-O3', '-Os'.
  8113. '-fpredictive-commoning'
  8114. Perform predictive commoning optimization, i.e., reusing
  8115. computations (especially memory loads and stores) performed in
  8116. previous iterations of loops.
  8117. This option is enabled at level '-O3'. It is also enabled by
  8118. '-fprofile-use' and '-fauto-profile'.
  8119. '-fprefetch-loop-arrays'
  8120. If supported by the target machine, generate instructions to
  8121. prefetch memory to improve the performance of loops that access
  8122. large arrays.
  8123. This option may generate better or worse code; results are highly
  8124. dependent on the structure of loops within the source code.
  8125. Disabled at level '-Os'.
  8126. '-fno-printf-return-value'
  8127. Do not substitute constants for known return value of formatted
  8128. output functions such as 'sprintf', 'snprintf', 'vsprintf', and
  8129. 'vsnprintf' (but not 'printf' of 'fprintf'). This transformation
  8130. allows GCC to optimize or even eliminate branches based on the
  8131. known return value of these functions called with arguments that
  8132. are either constant, or whose values are known to be in a range
  8133. that makes determining the exact return value possible. For
  8134. example, when '-fprintf-return-value' is in effect, both the branch
  8135. and the body of the 'if' statement (but not the call to 'snprint')
  8136. can be optimized away when 'i' is a 32-bit or smaller integer
  8137. because the return value is guaranteed to be at most 8.
  8138. char buf[9];
  8139. if (snprintf (buf, "%08x", i) >= sizeof buf)
  8140. ...
  8141. The '-fprintf-return-value' option relies on other optimizations
  8142. and yields best results with '-O2' and above. It works in tandem
  8143. with the '-Wformat-overflow' and '-Wformat-truncation' options.
  8144. The '-fprintf-return-value' option is enabled by default.
  8145. '-fno-peephole'
  8146. '-fno-peephole2'
  8147. Disable any machine-specific peephole optimizations. The
  8148. difference between '-fno-peephole' and '-fno-peephole2' is in how
  8149. they are implemented in the compiler; some targets use one, some
  8150. use the other, a few use both.
  8151. '-fpeephole' is enabled by default. '-fpeephole2' enabled at
  8152. levels '-O2', '-O3', '-Os'.
  8153. '-fno-guess-branch-probability'
  8154. Do not guess branch probabilities using heuristics.
  8155. GCC uses heuristics to guess branch probabilities if they are not
  8156. provided by profiling feedback ('-fprofile-arcs'). These
  8157. heuristics are based on the control flow graph. If some branch
  8158. probabilities are specified by '__builtin_expect', then the
  8159. heuristics are used to guess branch probabilities for the rest of
  8160. the control flow graph, taking the '__builtin_expect' info into
  8161. account. The interactions between the heuristics and
  8162. '__builtin_expect' can be complex, and in some cases, it may be
  8163. useful to disable the heuristics so that the effects of
  8164. '__builtin_expect' are easier to understand.
  8165. It is also possible to specify expected probability of the
  8166. expression with '__builtin_expect_with_probability' built-in
  8167. function.
  8168. The default is '-fguess-branch-probability' at levels '-O', '-O2',
  8169. '-O3', '-Os'.
  8170. '-freorder-blocks'
  8171. Reorder basic blocks in the compiled function in order to reduce
  8172. number of taken branches and improve code locality.
  8173. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  8174. '-freorder-blocks-algorithm=ALGORITHM'
  8175. Use the specified algorithm for basic block reordering. The
  8176. ALGORITHM argument can be 'simple', which does not increase code
  8177. size (except sometimes due to secondary effects like alignment), or
  8178. 'stc', the "software trace cache" algorithm, which tries to put all
  8179. often executed code together, minimizing the number of branches
  8180. executed by making extra copies of code.
  8181. The default is 'simple' at levels '-O', '-Os', and 'stc' at levels
  8182. '-O2', '-O3'.
  8183. '-freorder-blocks-and-partition'
  8184. In addition to reordering basic blocks in the compiled function, in
  8185. order to reduce number of taken branches, partitions hot and cold
  8186. basic blocks into separate sections of the assembly and '.o' files,
  8187. to improve paging and cache locality performance.
  8188. This optimization is automatically turned off in the presence of
  8189. exception handling or unwind tables (on targets using
  8190. setjump/longjump or target specific scheme), for linkonce sections,
  8191. for functions with a user-defined section attribute and on any
  8192. architecture that does not support named sections. When
  8193. '-fsplit-stack' is used this option is not enabled by default (to
  8194. avoid linker errors), but may be enabled explicitly (if using a
  8195. working linker).
  8196. Enabled for x86 at levels '-O2', '-O3', '-Os'.
  8197. '-freorder-functions'
  8198. Reorder functions in the object file in order to improve code
  8199. locality. This is implemented by using special subsections
  8200. '.text.hot' for most frequently executed functions and
  8201. '.text.unlikely' for unlikely executed functions. Reordering is
  8202. done by the linker so object file format must support named
  8203. sections and linker must place them in a reasonable way.
  8204. This option isn't effective unless you either provide profile
  8205. feedback (see '-fprofile-arcs' for details) or manually annotate
  8206. functions with 'hot' or 'cold' attributes (*note Common Function
  8207. Attributes::).
  8208. Enabled at levels '-O2', '-O3', '-Os'.
  8209. '-fstrict-aliasing'
  8210. Allow the compiler to assume the strictest aliasing rules
  8211. applicable to the language being compiled. For C (and C++), this
  8212. activates optimizations based on the type of expressions. In
  8213. particular, an object of one type is assumed never to reside at the
  8214. same address as an object of a different type, unless the types are
  8215. almost the same. For example, an 'unsigned int' can alias an
  8216. 'int', but not a 'void*' or a 'double'. A character type may alias
  8217. any other type.
  8218. Pay special attention to code like this:
  8219. union a_union {
  8220. int i;
  8221. double d;
  8222. };
  8223. int f() {
  8224. union a_union t;
  8225. t.d = 3.0;
  8226. return t.i;
  8227. }
  8228. The practice of reading from a different union member than the one
  8229. most recently written to (called "type-punning") is common. Even
  8230. with '-fstrict-aliasing', type-punning is allowed, provided the
  8231. memory is accessed through the union type. So, the code above
  8232. works as expected. *Note Structures unions enumerations and
  8233. bit-fields implementation::. However, this code might not:
  8234. int f() {
  8235. union a_union t;
  8236. int* ip;
  8237. t.d = 3.0;
  8238. ip = &t.i;
  8239. return *ip;
  8240. }
  8241. Similarly, access by taking the address, casting the resulting
  8242. pointer and dereferencing the result has undefined behavior, even
  8243. if the cast uses a union type, e.g.:
  8244. int f() {
  8245. double d = 3.0;
  8246. return ((union a_union *) &d)->i;
  8247. }
  8248. The '-fstrict-aliasing' option is enabled at levels '-O2', '-O3',
  8249. '-Os'.
  8250. '-falign-functions'
  8251. '-falign-functions=N'
  8252. '-falign-functions=N:M'
  8253. '-falign-functions=N:M:N2'
  8254. '-falign-functions=N:M:N2:M2'
  8255. Align the start of functions to the next power-of-two greater than
  8256. or equal to N, skipping up to M-1 bytes. This ensures that at
  8257. least the first M bytes of the function can be fetched by the CPU
  8258. without crossing an N-byte alignment boundary.
  8259. If M is not specified, it defaults to N.
  8260. Examples: '-falign-functions=32' aligns functions to the next
  8261. 32-byte boundary, '-falign-functions=24' aligns to the next 32-byte
  8262. boundary only if this can be done by skipping 23 bytes or less,
  8263. '-falign-functions=32:7' aligns to the next 32-byte boundary only
  8264. if this can be done by skipping 6 bytes or less.
  8265. The second pair of N2:M2 values allows you to specify a secondary
  8266. alignment: '-falign-functions=64:7:32:3' aligns to the next 64-byte
  8267. boundary if this can be done by skipping 6 bytes or less, otherwise
  8268. aligns to the next 32-byte boundary if this can be done by skipping
  8269. 2 bytes or less. If M2 is not specified, it defaults to N2.
  8270. Some assemblers only support this flag when N is a power of two; in
  8271. that case, it is rounded up.
  8272. '-fno-align-functions' and '-falign-functions=1' are equivalent and
  8273. mean that functions are not aligned.
  8274. If N is not specified or is zero, use a machine-dependent default.
  8275. The maximum allowed N option value is 65536.
  8276. Enabled at levels '-O2', '-O3'.
  8277. '-flimit-function-alignment'
  8278. If this option is enabled, the compiler tries to avoid
  8279. unnecessarily overaligning functions. It attempts to instruct the
  8280. assembler to align by the amount specified by '-falign-functions',
  8281. but not to skip more bytes than the size of the function.
  8282. '-falign-labels'
  8283. '-falign-labels=N'
  8284. '-falign-labels=N:M'
  8285. '-falign-labels=N:M:N2'
  8286. '-falign-labels=N:M:N2:M2'
  8287. Align all branch targets to a power-of-two boundary.
  8288. Parameters of this option are analogous to the '-falign-functions'
  8289. option. '-fno-align-labels' and '-falign-labels=1' are equivalent
  8290. and mean that labels are not aligned.
  8291. If '-falign-loops' or '-falign-jumps' are applicable and are
  8292. greater than this value, then their values are used instead.
  8293. If N is not specified or is zero, use a machine-dependent default
  8294. which is very likely to be '1', meaning no alignment. The maximum
  8295. allowed N option value is 65536.
  8296. Enabled at levels '-O2', '-O3'.
  8297. '-falign-loops'
  8298. '-falign-loops=N'
  8299. '-falign-loops=N:M'
  8300. '-falign-loops=N:M:N2'
  8301. '-falign-loops=N:M:N2:M2'
  8302. Align loops to a power-of-two boundary. If the loops are executed
  8303. many times, this makes up for any execution of the dummy padding
  8304. instructions.
  8305. If '-falign-labels' is greater than this value, then its value is
  8306. used instead.
  8307. Parameters of this option are analogous to the '-falign-functions'
  8308. option. '-fno-align-loops' and '-falign-loops=1' are equivalent
  8309. and mean that loops are not aligned. The maximum allowed N option
  8310. value is 65536.
  8311. If N is not specified or is zero, use a machine-dependent default.
  8312. Enabled at levels '-O2', '-O3'.
  8313. '-falign-jumps'
  8314. '-falign-jumps=N'
  8315. '-falign-jumps=N:M'
  8316. '-falign-jumps=N:M:N2'
  8317. '-falign-jumps=N:M:N2:M2'
  8318. Align branch targets to a power-of-two boundary, for branch targets
  8319. where the targets can only be reached by jumping. In this case, no
  8320. dummy operations need be executed.
  8321. If '-falign-labels' is greater than this value, then its value is
  8322. used instead.
  8323. Parameters of this option are analogous to the '-falign-functions'
  8324. option. '-fno-align-jumps' and '-falign-jumps=1' are equivalent
  8325. and mean that loops are not aligned.
  8326. If N is not specified or is zero, use a machine-dependent default.
  8327. The maximum allowed N option value is 65536.
  8328. Enabled at levels '-O2', '-O3'.
  8329. '-fno-allocation-dce'
  8330. Do not remove unused C++ allocations in dead code elimination.
  8331. '-fallow-store-data-races'
  8332. Allow the compiler to introduce new data races on stores.
  8333. Enabled at level '-Ofast'.
  8334. '-funit-at-a-time'
  8335. This option is left for compatibility reasons. '-funit-at-a-time'
  8336. has no effect, while '-fno-unit-at-a-time' implies
  8337. '-fno-toplevel-reorder' and '-fno-section-anchors'.
  8338. Enabled by default.
  8339. '-fno-toplevel-reorder'
  8340. Do not reorder top-level functions, variables, and 'asm'
  8341. statements. Output them in the same order that they appear in the
  8342. input file. When this option is used, unreferenced static
  8343. variables are not removed. This option is intended to support
  8344. existing code that relies on a particular ordering. For new code,
  8345. it is better to use attributes when possible.
  8346. '-ftoplevel-reorder' is the default at '-O1' and higher, and also
  8347. at '-O0' if '-fsection-anchors' is explicitly requested.
  8348. Additionally '-fno-toplevel-reorder' implies
  8349. '-fno-section-anchors'.
  8350. '-fweb'
  8351. Constructs webs as commonly used for register allocation purposes
  8352. and assign each web individual pseudo register. This allows the
  8353. register allocation pass to operate on pseudos directly, but also
  8354. strengthens several other optimization passes, such as CSE, loop
  8355. optimizer and trivial dead code remover. It can, however, make
  8356. debugging impossible, since variables no longer stay in a "home
  8357. register".
  8358. Enabled by default with '-funroll-loops'.
  8359. '-fwhole-program'
  8360. Assume that the current compilation unit represents the whole
  8361. program being compiled. All public functions and variables with
  8362. the exception of 'main' and those merged by attribute
  8363. 'externally_visible' become static functions and in effect are
  8364. optimized more aggressively by interprocedural optimizers.
  8365. This option should not be used in combination with '-flto'.
  8366. Instead relying on a linker plugin should provide safer and more
  8367. precise information.
  8368. '-flto[=N]'
  8369. This option runs the standard link-time optimizer. When invoked
  8370. with source code, it generates GIMPLE (one of GCC's internal
  8371. representations) and writes it to special ELF sections in the
  8372. object file. When the object files are linked together, all the
  8373. function bodies are read from these ELF sections and instantiated
  8374. as if they had been part of the same translation unit.
  8375. To use the link-time optimizer, '-flto' and optimization options
  8376. should be specified at compile time and during the final link. It
  8377. is recommended that you compile all the files participating in the
  8378. same link with the same options and also specify those options at
  8379. link time. For example:
  8380. gcc -c -O2 -flto foo.c
  8381. gcc -c -O2 -flto bar.c
  8382. gcc -o myprog -flto -O2 foo.o bar.o
  8383. The first two invocations to GCC save a bytecode representation of
  8384. GIMPLE into special ELF sections inside 'foo.o' and 'bar.o'. The
  8385. final invocation reads the GIMPLE bytecode from 'foo.o' and
  8386. 'bar.o', merges the two files into a single internal image, and
  8387. compiles the result as usual. Since both 'foo.o' and 'bar.o' are
  8388. merged into a single image, this causes all the interprocedural
  8389. analyses and optimizations in GCC to work across the two files as
  8390. if they were a single one. This means, for example, that the
  8391. inliner is able to inline functions in 'bar.o' into functions in
  8392. 'foo.o' and vice-versa.
  8393. Another (simpler) way to enable link-time optimization is:
  8394. gcc -o myprog -flto -O2 foo.c bar.c
  8395. The above generates bytecode for 'foo.c' and 'bar.c', merges them
  8396. together into a single GIMPLE representation and optimizes them as
  8397. usual to produce 'myprog'.
  8398. The important thing to keep in mind is that to enable link-time
  8399. optimizations you need to use the GCC driver to perform the link
  8400. step. GCC automatically performs link-time optimization if any of
  8401. the objects involved were compiled with the '-flto' command-line
  8402. option. You can always override the automatic decision to do
  8403. link-time optimization by passing '-fno-lto' to the link command.
  8404. To make whole program optimization effective, it is necessary to
  8405. make certain whole program assumptions. The compiler needs to know
  8406. what functions and variables can be accessed by libraries and
  8407. runtime outside of the link-time optimized unit. When supported by
  8408. the linker, the linker plugin (see '-fuse-linker-plugin') passes
  8409. information to the compiler about used and externally visible
  8410. symbols. When the linker plugin is not available,
  8411. '-fwhole-program' should be used to allow the compiler to make
  8412. these assumptions, which leads to more aggressive optimization
  8413. decisions.
  8414. When a file is compiled with '-flto' without '-fuse-linker-plugin',
  8415. the generated object file is larger than a regular object file
  8416. because it contains GIMPLE bytecodes and the usual final code (see
  8417. '-ffat-lto-objects'. This means that object files with LTO
  8418. information can be linked as normal object files; if '-fno-lto' is
  8419. passed to the linker, no interprocedural optimizations are applied.
  8420. Note that when '-fno-fat-lto-objects' is enabled the compile stage
  8421. is faster but you cannot perform a regular, non-LTO link on them.
  8422. When producing the final binary, GCC only applies link-time
  8423. optimizations to those files that contain bytecode. Therefore, you
  8424. can mix and match object files and libraries with GIMPLE bytecodes
  8425. and final object code. GCC automatically selects which files to
  8426. optimize in LTO mode and which files to link without further
  8427. processing.
  8428. Generally, options specified at link time override those specified
  8429. at compile time, although in some cases GCC attempts to infer
  8430. link-time options from the settings used to compile the input
  8431. files.
  8432. If you do not specify an optimization level option '-O' at link
  8433. time, then GCC uses the highest optimization level used when
  8434. compiling the object files. Note that it is generally ineffective
  8435. to specify an optimization level option only at link time and not
  8436. at compile time, for two reasons. First, compiling without
  8437. optimization suppresses compiler passes that gather information
  8438. needed for effective optimization at link time. Second, some early
  8439. optimization passes can be performed only at compile time and not
  8440. at link time.
  8441. There are some code generation flags preserved by GCC when
  8442. generating bytecodes, as they need to be used during the final
  8443. link. Currently, the following options and their settings are
  8444. taken from the first object file that explicitly specifies them:
  8445. '-fPIC', '-fpic', '-fpie', '-fcommon', '-fexceptions',
  8446. '-fnon-call-exceptions', '-fgnu-tm' and all the '-m' target flags.
  8447. Certain ABI-changing flags are required to match in all compilation
  8448. units, and trying to override this at link time with a conflicting
  8449. value is ignored. This includes options such as
  8450. '-freg-struct-return' and '-fpcc-struct-return'.
  8451. Other options such as '-ffp-contract', '-fno-strict-overflow',
  8452. '-fwrapv', '-fno-trapv' or '-fno-strict-aliasing' are passed
  8453. through to the link stage and merged conservatively for conflicting
  8454. translation units. Specifically '-fno-strict-overflow', '-fwrapv'
  8455. and '-fno-trapv' take precedence; and for example
  8456. '-ffp-contract=off' takes precedence over '-ffp-contract=fast'.
  8457. You can override them at link time.
  8458. Diagnostic options such as '-Wstringop-overflow' are passed through
  8459. to the link stage and their setting matches that of the
  8460. compile-step at function granularity. Note that this matters only
  8461. for diagnostics emitted during optimization. Note that code
  8462. transforms such as inlining can lead to warnings being enabled or
  8463. disabled for regions if code not consistent with the setting at
  8464. compile time.
  8465. When you need to pass options to the assembler via '-Wa' or
  8466. '-Xassembler' make sure to either compile such translation units
  8467. with '-fno-lto' or consistently use the same assembler options on
  8468. all translation units. You can alternatively also specify
  8469. assembler options at LTO link time.
  8470. To enable debug info generation you need to supply '-g' at compile
  8471. time. If any of the input files at link time were built with debug
  8472. info generation enabled the link will enable debug info generation
  8473. as well. Any elaborate debug info settings like the dwarf level
  8474. '-gdwarf-5' need to be explicitly repeated at the linker command
  8475. line and mixing different settings in different translation units
  8476. is discouraged.
  8477. If LTO encounters objects with C linkage declared with incompatible
  8478. types in separate translation units to be linked together
  8479. (undefined behavior according to ISO C99 6.2.7), a non-fatal
  8480. diagnostic may be issued. The behavior is still undefined at run
  8481. time. Similar diagnostics may be raised for other languages.
  8482. Another feature of LTO is that it is possible to apply
  8483. interprocedural optimizations on files written in different
  8484. languages:
  8485. gcc -c -flto foo.c
  8486. g++ -c -flto bar.cc
  8487. gfortran -c -flto baz.f90
  8488. g++ -o myprog -flto -O3 foo.o bar.o baz.o -lgfortran
  8489. Notice that the final link is done with 'g++' to get the C++
  8490. runtime libraries and '-lgfortran' is added to get the Fortran
  8491. runtime libraries. In general, when mixing languages in LTO mode,
  8492. you should use the same link command options as when mixing
  8493. languages in a regular (non-LTO) compilation.
  8494. If object files containing GIMPLE bytecode are stored in a library
  8495. archive, say 'libfoo.a', it is possible to extract and use them in
  8496. an LTO link if you are using a linker with plugin support. To
  8497. create static libraries suitable for LTO, use 'gcc-ar' and
  8498. 'gcc-ranlib' instead of 'ar' and 'ranlib'; to show the symbols of
  8499. object files with GIMPLE bytecode, use 'gcc-nm'. Those commands
  8500. require that 'ar', 'ranlib' and 'nm' have been compiled with plugin
  8501. support. At link time, use the flag '-fuse-linker-plugin' to
  8502. ensure that the library participates in the LTO optimization
  8503. process:
  8504. gcc -o myprog -O2 -flto -fuse-linker-plugin a.o b.o -lfoo
  8505. With the linker plugin enabled, the linker extracts the needed
  8506. GIMPLE files from 'libfoo.a' and passes them on to the running GCC
  8507. to make them part of the aggregated GIMPLE image to be optimized.
  8508. If you are not using a linker with plugin support and/or do not
  8509. enable the linker plugin, then the objects inside 'libfoo.a' are
  8510. extracted and linked as usual, but they do not participate in the
  8511. LTO optimization process. In order to make a static library
  8512. suitable for both LTO optimization and usual linkage, compile its
  8513. object files with '-flto' '-ffat-lto-objects'.
  8514. Link-time optimizations do not require the presence of the whole
  8515. program to operate. If the program does not require any symbols to
  8516. be exported, it is possible to combine '-flto' and
  8517. '-fwhole-program' to allow the interprocedural optimizers to use
  8518. more aggressive assumptions which may lead to improved optimization
  8519. opportunities. Use of '-fwhole-program' is not needed when linker
  8520. plugin is active (see '-fuse-linker-plugin').
  8521. The current implementation of LTO makes no attempt to generate
  8522. bytecode that is portable between different types of hosts. The
  8523. bytecode files are versioned and there is a strict version check,
  8524. so bytecode files generated in one version of GCC do not work with
  8525. an older or newer version of GCC.
  8526. Link-time optimization does not work well with generation of
  8527. debugging information on systems other than those using a
  8528. combination of ELF and DWARF.
  8529. If you specify the optional N, the optimization and code generation
  8530. done at link time is executed in parallel using N parallel jobs by
  8531. utilizing an installed 'make' program. The environment variable
  8532. 'MAKE' may be used to override the program used.
  8533. You can also specify '-flto=jobserver' to use GNU make's job server
  8534. mode to determine the number of parallel jobs. This is useful when
  8535. the Makefile calling GCC is already executing in parallel. You
  8536. must prepend a '+' to the command recipe in the parent Makefile for
  8537. this to work. This option likely only works if 'MAKE' is GNU make.
  8538. Even without the option value, GCC tries to automatically detect a
  8539. running GNU make's job server.
  8540. Use '-flto=auto' to use GNU make's job server, if available, or
  8541. otherwise fall back to autodetection of the number of CPU threads
  8542. present in your system.
  8543. '-flto-partition=ALG'
  8544. Specify the partitioning algorithm used by the link-time optimizer.
  8545. The value is either '1to1' to specify a partitioning mirroring the
  8546. original source files or 'balanced' to specify partitioning into
  8547. equally sized chunks (whenever possible) or 'max' to create new
  8548. partition for every symbol where possible. Specifying 'none' as an
  8549. algorithm disables partitioning and streaming completely. The
  8550. default value is 'balanced'. While '1to1' can be used as an
  8551. workaround for various code ordering issues, the 'max' partitioning
  8552. is intended for internal testing only. The value 'one' specifies
  8553. that exactly one partition should be used while the value 'none'
  8554. bypasses partitioning and executes the link-time optimization step
  8555. directly from the WPA phase.
  8556. '-flto-compression-level=N'
  8557. This option specifies the level of compression used for
  8558. intermediate language written to LTO object files, and is only
  8559. meaningful in conjunction with LTO mode ('-flto'). Valid values
  8560. are 0 (no compression) to 9 (maximum compression). Values outside
  8561. this range are clamped to either 0 or 9. If the option is not
  8562. given, a default balanced compression setting is used.
  8563. '-fuse-linker-plugin'
  8564. Enables the use of a linker plugin during link-time optimization.
  8565. This option relies on plugin support in the linker, which is
  8566. available in gold or in GNU ld 2.21 or newer.
  8567. This option enables the extraction of object files with GIMPLE
  8568. bytecode out of library archives. This improves the quality of
  8569. optimization by exposing more code to the link-time optimizer.
  8570. This information specifies what symbols can be accessed externally
  8571. (by non-LTO object or during dynamic linking). Resulting code
  8572. quality improvements on binaries (and shared libraries that use
  8573. hidden visibility) are similar to '-fwhole-program'. See '-flto'
  8574. for a description of the effect of this flag and how to use it.
  8575. This option is enabled by default when LTO support in GCC is
  8576. enabled and GCC was configured for use with a linker supporting
  8577. plugins (GNU ld 2.21 or newer or gold).
  8578. '-ffat-lto-objects'
  8579. Fat LTO objects are object files that contain both the intermediate
  8580. language and the object code. This makes them usable for both LTO
  8581. linking and normal linking. This option is effective only when
  8582. compiling with '-flto' and is ignored at link time.
  8583. '-fno-fat-lto-objects' improves compilation time over plain LTO,
  8584. but requires the complete toolchain to be aware of LTO. It requires
  8585. a linker with linker plugin support for basic functionality.
  8586. Additionally, 'nm', 'ar' and 'ranlib' need to support linker
  8587. plugins to allow a full-featured build environment (capable of
  8588. building static libraries etc). GCC provides the 'gcc-ar',
  8589. 'gcc-nm', 'gcc-ranlib' wrappers to pass the right options to these
  8590. tools. With non fat LTO makefiles need to be modified to use them.
  8591. Note that modern binutils provide plugin auto-load mechanism.
  8592. Installing the linker plugin into '$libdir/bfd-plugins' has the
  8593. same effect as usage of the command wrappers ('gcc-ar', 'gcc-nm'
  8594. and 'gcc-ranlib').
  8595. The default is '-fno-fat-lto-objects' on targets with linker plugin
  8596. support.
  8597. '-fcompare-elim'
  8598. After register allocation and post-register allocation instruction
  8599. splitting, identify arithmetic instructions that compute processor
  8600. flags similar to a comparison operation based on that arithmetic.
  8601. If possible, eliminate the explicit comparison operation.
  8602. This pass only applies to certain targets that cannot explicitly
  8603. represent the comparison operation before register allocation is
  8604. complete.
  8605. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  8606. '-fcprop-registers'
  8607. After register allocation and post-register allocation instruction
  8608. splitting, perform a copy-propagation pass to try to reduce
  8609. scheduling dependencies and occasionally eliminate the copy.
  8610. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  8611. '-fprofile-correction'
  8612. Profiles collected using an instrumented binary for multi-threaded
  8613. programs may be inconsistent due to missed counter updates. When
  8614. this option is specified, GCC uses heuristics to correct or smooth
  8615. out such inconsistencies. By default, GCC emits an error message
  8616. when an inconsistent profile is detected.
  8617. This option is enabled by '-fauto-profile'.
  8618. '-fprofile-partial-training'
  8619. With '-fprofile-use' all portions of programs not executed during
  8620. train run are optimized agressively for size rather than speed. In
  8621. some cases it is not practical to train all possible hot paths in
  8622. the program. (For example, program may contain functions specific
  8623. for a given hardware and trianing may not cover all hardware
  8624. configurations program is run on.) With
  8625. '-fprofile-partial-training' profile feedback will be ignored for
  8626. all functions not executed during the train run leading them to be
  8627. optimized as if they were compiled without profile feedback. This
  8628. leads to better performance when train run is not representative
  8629. but also leads to significantly bigger code.
  8630. '-fprofile-use'
  8631. '-fprofile-use=PATH'
  8632. Enable profile feedback-directed optimizations, and the following
  8633. optimizations, many of which are generally profitable only with
  8634. profile feedback available:
  8635. -fbranch-probabilities -fprofile-values
  8636. -funroll-loops -fpeel-loops -ftracer -fvpt
  8637. -finline-functions -fipa-cp -fipa-cp-clone -fipa-bit-cp
  8638. -fpredictive-commoning -fsplit-loops -funswitch-loops
  8639. -fgcse-after-reload -ftree-loop-vectorize -ftree-slp-vectorize
  8640. -fvect-cost-model=dynamic -ftree-loop-distribute-patterns
  8641. -fprofile-reorder-functions
  8642. Before you can use this option, you must first generate profiling
  8643. information. *Note Instrumentation Options::, for information
  8644. about the '-fprofile-generate' option.
  8645. By default, GCC emits an error message if the feedback profiles do
  8646. not match the source code. This error can be turned into a warning
  8647. by using '-Wno-error=coverage-mismatch'. Note this may result in
  8648. poorly optimized code. Additionally, by default, GCC also emits a
  8649. warning message if the feedback profiles do not exist (see
  8650. '-Wmissing-profile').
  8651. If PATH is specified, GCC looks at the PATH to find the profile
  8652. feedback data files. See '-fprofile-dir'.
  8653. '-fauto-profile'
  8654. '-fauto-profile=PATH'
  8655. Enable sampling-based feedback-directed optimizations, and the
  8656. following optimizations, many of which are generally profitable
  8657. only with profile feedback available:
  8658. -fbranch-probabilities -fprofile-values
  8659. -funroll-loops -fpeel-loops -ftracer -fvpt
  8660. -finline-functions -fipa-cp -fipa-cp-clone -fipa-bit-cp
  8661. -fpredictive-commoning -fsplit-loops -funswitch-loops
  8662. -fgcse-after-reload -ftree-loop-vectorize -ftree-slp-vectorize
  8663. -fvect-cost-model=dynamic -ftree-loop-distribute-patterns
  8664. -fprofile-correction
  8665. PATH is the name of a file containing AutoFDO profile information.
  8666. If omitted, it defaults to 'fbdata.afdo' in the current directory.
  8667. Producing an AutoFDO profile data file requires running your
  8668. program with the 'perf' utility on a supported GNU/Linux target
  8669. system. For more information, see <https://perf.wiki.kernel.org/>.
  8670. E.g.
  8671. perf record -e br_inst_retired:near_taken -b -o perf.data \
  8672. -- your_program
  8673. Then use the 'create_gcov' tool to convert the raw profile data to
  8674. a format that can be used by GCC. You must also supply the
  8675. unstripped binary for your program to this tool. See
  8676. <https://github.com/google/autofdo>.
  8677. E.g.
  8678. create_gcov --binary=your_program.unstripped --profile=perf.data \
  8679. --gcov=profile.afdo
  8680. The following options control compiler behavior regarding
  8681. floating-point arithmetic. These options trade off between speed and
  8682. correctness. All must be specifically enabled.
  8683. '-ffloat-store'
  8684. Do not store floating-point variables in registers, and inhibit
  8685. other options that might change whether a floating-point value is
  8686. taken from a register or memory.
  8687. This option prevents undesirable excess precision on machines such
  8688. as the 68000 where the floating registers (of the 68881) keep more
  8689. precision than a 'double' is supposed to have. Similarly for the
  8690. x86 architecture. For most programs, the excess precision does
  8691. only good, but a few programs rely on the precise definition of
  8692. IEEE floating point. Use '-ffloat-store' for such programs, after
  8693. modifying them to store all pertinent intermediate computations
  8694. into variables.
  8695. '-fexcess-precision=STYLE'
  8696. This option allows further control over excess precision on
  8697. machines where floating-point operations occur in a format with
  8698. more precision or range than the IEEE standard and interchange
  8699. floating-point types. By default, '-fexcess-precision=fast' is in
  8700. effect; this means that operations may be carried out in a wider
  8701. precision than the types specified in the source if that would
  8702. result in faster code, and it is unpredictable when rounding to the
  8703. types specified in the source code takes place. When compiling C,
  8704. if '-fexcess-precision=standard' is specified then excess precision
  8705. follows the rules specified in ISO C99; in particular, both casts
  8706. and assignments cause values to be rounded to their semantic types
  8707. (whereas '-ffloat-store' only affects assignments). This option is
  8708. enabled by default for C if a strict conformance option such as
  8709. '-std=c99' is used. '-ffast-math' enables
  8710. '-fexcess-precision=fast' by default regardless of whether a strict
  8711. conformance option is used.
  8712. '-fexcess-precision=standard' is not implemented for languages
  8713. other than C. On the x86, it has no effect if '-mfpmath=sse' or
  8714. '-mfpmath=sse+387' is specified; in the former case, IEEE semantics
  8715. apply without excess precision, and in the latter, rounding is
  8716. unpredictable.
  8717. '-ffast-math'
  8718. Sets the options '-fno-math-errno', '-funsafe-math-optimizations',
  8719. '-ffinite-math-only', '-fno-rounding-math', '-fno-signaling-nans',
  8720. '-fcx-limited-range' and '-fexcess-precision=fast'.
  8721. This option causes the preprocessor macro '__FAST_MATH__' to be
  8722. defined.
  8723. This option is not turned on by any '-O' option besides '-Ofast'
  8724. since it can result in incorrect output for programs that depend on
  8725. an exact implementation of IEEE or ISO rules/specifications for
  8726. math functions. It may, however, yield faster code for programs
  8727. that do not require the guarantees of these specifications.
  8728. '-fno-math-errno'
  8729. Do not set 'errno' after calling math functions that are executed
  8730. with a single instruction, e.g., 'sqrt'. A program that relies on
  8731. IEEE exceptions for math error handling may want to use this flag
  8732. for speed while maintaining IEEE arithmetic compatibility.
  8733. This option is not turned on by any '-O' option since it can result
  8734. in incorrect output for programs that depend on an exact
  8735. implementation of IEEE or ISO rules/specifications for math
  8736. functions. It may, however, yield faster code for programs that do
  8737. not require the guarantees of these specifications.
  8738. The default is '-fmath-errno'.
  8739. On Darwin systems, the math library never sets 'errno'. There is
  8740. therefore no reason for the compiler to consider the possibility
  8741. that it might, and '-fno-math-errno' is the default.
  8742. '-funsafe-math-optimizations'
  8743. Allow optimizations for floating-point arithmetic that (a) assume
  8744. that arguments and results are valid and (b) may violate IEEE or
  8745. ANSI standards. When used at link time, it may include libraries
  8746. or startup files that change the default FPU control word or other
  8747. similar optimizations.
  8748. This option is not turned on by any '-O' option since it can result
  8749. in incorrect output for programs that depend on an exact
  8750. implementation of IEEE or ISO rules/specifications for math
  8751. functions. It may, however, yield faster code for programs that do
  8752. not require the guarantees of these specifications. Enables
  8753. '-fno-signed-zeros', '-fno-trapping-math', '-fassociative-math' and
  8754. '-freciprocal-math'.
  8755. The default is '-fno-unsafe-math-optimizations'.
  8756. '-fassociative-math'
  8757. Allow re-association of operands in series of floating-point
  8758. operations. This violates the ISO C and C++ language standard by
  8759. possibly changing computation result. NOTE: re-ordering may change
  8760. the sign of zero as well as ignore NaNs and inhibit or create
  8761. underflow or overflow (and thus cannot be used on code that relies
  8762. on rounding behavior like '(x + 2**52) - 2**52'. May also reorder
  8763. floating-point comparisons and thus may not be used when ordered
  8764. comparisons are required. This option requires that both
  8765. '-fno-signed-zeros' and '-fno-trapping-math' be in effect.
  8766. Moreover, it doesn't make much sense with '-frounding-math'. For
  8767. Fortran the option is automatically enabled when both
  8768. '-fno-signed-zeros' and '-fno-trapping-math' are in effect.
  8769. The default is '-fno-associative-math'.
  8770. '-freciprocal-math'
  8771. Allow the reciprocal of a value to be used instead of dividing by
  8772. the value if this enables optimizations. For example 'x / y' can
  8773. be replaced with 'x * (1/y)', which is useful if '(1/y)' is subject
  8774. to common subexpression elimination. Note that this loses
  8775. precision and increases the number of flops operating on the value.
  8776. The default is '-fno-reciprocal-math'.
  8777. '-ffinite-math-only'
  8778. Allow optimizations for floating-point arithmetic that assume that
  8779. arguments and results are not NaNs or +-Infs.
  8780. This option is not turned on by any '-O' option since it can result
  8781. in incorrect output for programs that depend on an exact
  8782. implementation of IEEE or ISO rules/specifications for math
  8783. functions. It may, however, yield faster code for programs that do
  8784. not require the guarantees of these specifications.
  8785. The default is '-fno-finite-math-only'.
  8786. '-fno-signed-zeros'
  8787. Allow optimizations for floating-point arithmetic that ignore the
  8788. signedness of zero. IEEE arithmetic specifies the behavior of
  8789. distinct +0.0 and -0.0 values, which then prohibits simplification
  8790. of expressions such as x+0.0 or 0.0*x (even with
  8791. '-ffinite-math-only'). This option implies that the sign of a zero
  8792. result isn't significant.
  8793. The default is '-fsigned-zeros'.
  8794. '-fno-trapping-math'
  8795. Compile code assuming that floating-point operations cannot
  8796. generate user-visible traps. These traps include division by zero,
  8797. overflow, underflow, inexact result and invalid operation. This
  8798. option requires that '-fno-signaling-nans' be in effect. Setting
  8799. this option may allow faster code if one relies on "non-stop" IEEE
  8800. arithmetic, for example.
  8801. This option should never be turned on by any '-O' option since it
  8802. can result in incorrect output for programs that depend on an exact
  8803. implementation of IEEE or ISO rules/specifications for math
  8804. functions.
  8805. The default is '-ftrapping-math'.
  8806. '-frounding-math'
  8807. Disable transformations and optimizations that assume default
  8808. floating-point rounding behavior. This is round-to-zero for all
  8809. floating point to integer conversions, and round-to-nearest for all
  8810. other arithmetic truncations. This option should be specified for
  8811. programs that change the FP rounding mode dynamically, or that may
  8812. be executed with a non-default rounding mode. This option disables
  8813. constant folding of floating-point expressions at compile time
  8814. (which may be affected by rounding mode) and arithmetic
  8815. transformations that are unsafe in the presence of sign-dependent
  8816. rounding modes.
  8817. The default is '-fno-rounding-math'.
  8818. This option is experimental and does not currently guarantee to
  8819. disable all GCC optimizations that are affected by rounding mode.
  8820. Future versions of GCC may provide finer control of this setting
  8821. using C99's 'FENV_ACCESS' pragma. This command-line option will be
  8822. used to specify the default state for 'FENV_ACCESS'.
  8823. '-fsignaling-nans'
  8824. Compile code assuming that IEEE signaling NaNs may generate
  8825. user-visible traps during floating-point operations. Setting this
  8826. option disables optimizations that may change the number of
  8827. exceptions visible with signaling NaNs. This option implies
  8828. '-ftrapping-math'.
  8829. This option causes the preprocessor macro '__SUPPORT_SNAN__' to be
  8830. defined.
  8831. The default is '-fno-signaling-nans'.
  8832. This option is experimental and does not currently guarantee to
  8833. disable all GCC optimizations that affect signaling NaN behavior.
  8834. '-fno-fp-int-builtin-inexact'
  8835. Do not allow the built-in functions 'ceil', 'floor', 'round' and
  8836. 'trunc', and their 'float' and 'long double' variants, to generate
  8837. code that raises the "inexact" floating-point exception for
  8838. noninteger arguments. ISO C99 and C11 allow these functions to
  8839. raise the "inexact" exception, but ISO/IEC TS 18661-1:2014, the C
  8840. bindings to IEEE 754-2008, as integrated into ISO C2X, does not
  8841. allow these functions to do so.
  8842. The default is '-ffp-int-builtin-inexact', allowing the exception
  8843. to be raised, unless C2X or a later C standard is selected. This
  8844. option does nothing unless '-ftrapping-math' is in effect.
  8845. Even if '-fno-fp-int-builtin-inexact' is used, if the functions
  8846. generate a call to a library function then the "inexact" exception
  8847. may be raised if the library implementation does not follow TS
  8848. 18661.
  8849. '-fsingle-precision-constant'
  8850. Treat floating-point constants as single precision instead of
  8851. implicitly converting them to double-precision constants.
  8852. '-fcx-limited-range'
  8853. When enabled, this option states that a range reduction step is not
  8854. needed when performing complex division. Also, there is no
  8855. checking whether the result of a complex multiplication or division
  8856. is 'NaN + I*NaN', with an attempt to rescue the situation in that
  8857. case. The default is '-fno-cx-limited-range', but is enabled by
  8858. '-ffast-math'.
  8859. This option controls the default setting of the ISO C99
  8860. 'CX_LIMITED_RANGE' pragma. Nevertheless, the option applies to all
  8861. languages.
  8862. '-fcx-fortran-rules'
  8863. Complex multiplication and division follow Fortran rules. Range
  8864. reduction is done as part of complex division, but there is no
  8865. checking whether the result of a complex multiplication or division
  8866. is 'NaN + I*NaN', with an attempt to rescue the situation in that
  8867. case.
  8868. The default is '-fno-cx-fortran-rules'.
  8869. The following options control optimizations that may improve
  8870. performance, but are not enabled by any '-O' options. This section
  8871. includes experimental options that may produce broken code.
  8872. '-fbranch-probabilities'
  8873. After running a program compiled with '-fprofile-arcs' (*note
  8874. Instrumentation Options::), you can compile it a second time using
  8875. '-fbranch-probabilities', to improve optimizations based on the
  8876. number of times each branch was taken. When a program compiled
  8877. with '-fprofile-arcs' exits, it saves arc execution counts to a
  8878. file called 'SOURCENAME.gcda' for each source file. The
  8879. information in this data file is very dependent on the structure of
  8880. the generated code, so you must use the same source code and the
  8881. same optimization options for both compilations.
  8882. With '-fbranch-probabilities', GCC puts a 'REG_BR_PROB' note on
  8883. each 'JUMP_INSN' and 'CALL_INSN'. These can be used to improve
  8884. optimization. Currently, they are only used in one place: in
  8885. 'reorg.c', instead of guessing which path a branch is most likely
  8886. to take, the 'REG_BR_PROB' values are used to exactly determine
  8887. which path is taken more often.
  8888. Enabled by '-fprofile-use' and '-fauto-profile'.
  8889. '-fprofile-values'
  8890. If combined with '-fprofile-arcs', it adds code so that some data
  8891. about values of expressions in the program is gathered.
  8892. With '-fbranch-probabilities', it reads back the data gathered from
  8893. profiling values of expressions for usage in optimizations.
  8894. Enabled by '-fprofile-generate', '-fprofile-use', and
  8895. '-fauto-profile'.
  8896. '-fprofile-reorder-functions'
  8897. Function reordering based on profile instrumentation collects first
  8898. time of execution of a function and orders these functions in
  8899. ascending order.
  8900. Enabled with '-fprofile-use'.
  8901. '-fvpt'
  8902. If combined with '-fprofile-arcs', this option instructs the
  8903. compiler to add code to gather information about values of
  8904. expressions.
  8905. With '-fbranch-probabilities', it reads back the data gathered and
  8906. actually performs the optimizations based on them. Currently the
  8907. optimizations include specialization of division operations using
  8908. the knowledge about the value of the denominator.
  8909. Enabled with '-fprofile-use' and '-fauto-profile'.
  8910. '-frename-registers'
  8911. Attempt to avoid false dependencies in scheduled code by making use
  8912. of registers left over after register allocation. This
  8913. optimization most benefits processors with lots of registers.
  8914. Depending on the debug information format adopted by the target,
  8915. however, it can make debugging impossible, since variables no
  8916. longer stay in a "home register".
  8917. Enabled by default with '-funroll-loops'.
  8918. '-fschedule-fusion'
  8919. Performs a target dependent pass over the instruction stream to
  8920. schedule instructions of same type together because target machine
  8921. can execute them more efficiently if they are adjacent to each
  8922. other in the instruction flow.
  8923. Enabled at levels '-O2', '-O3', '-Os'.
  8924. '-ftracer'
  8925. Perform tail duplication to enlarge superblock size. This
  8926. transformation simplifies the control flow of the function allowing
  8927. other optimizations to do a better job.
  8928. Enabled by '-fprofile-use' and '-fauto-profile'.
  8929. '-funroll-loops'
  8930. Unroll loops whose number of iterations can be determined at
  8931. compile time or upon entry to the loop. '-funroll-loops' implies
  8932. '-frerun-cse-after-loop', '-fweb' and '-frename-registers'. It
  8933. also turns on complete loop peeling (i.e. complete removal of loops
  8934. with a small constant number of iterations). This option makes
  8935. code larger, and may or may not make it run faster.
  8936. Enabled by '-fprofile-use' and '-fauto-profile'.
  8937. '-funroll-all-loops'
  8938. Unroll all loops, even if their number of iterations is uncertain
  8939. when the loop is entered. This usually makes programs run more
  8940. slowly. '-funroll-all-loops' implies the same options as
  8941. '-funroll-loops'.
  8942. '-fpeel-loops'
  8943. Peels loops for which there is enough information that they do not
  8944. roll much (from profile feedback or static analysis). It also
  8945. turns on complete loop peeling (i.e. complete removal of loops with
  8946. small constant number of iterations).
  8947. Enabled by '-O3', '-fprofile-use', and '-fauto-profile'.
  8948. '-fmove-loop-invariants'
  8949. Enables the loop invariant motion pass in the RTL loop optimizer.
  8950. Enabled at level '-O1' and higher, except for '-Og'.
  8951. '-fsplit-loops'
  8952. Split a loop into two if it contains a condition that's always true
  8953. for one side of the iteration space and false for the other.
  8954. Enabled by '-fprofile-use' and '-fauto-profile'.
  8955. '-funswitch-loops'
  8956. Move branches with loop invariant conditions out of the loop, with
  8957. duplicates of the loop on both branches (modified according to
  8958. result of the condition).
  8959. Enabled by '-fprofile-use' and '-fauto-profile'.
  8960. '-fversion-loops-for-strides'
  8961. If a loop iterates over an array with a variable stride, create
  8962. another version of the loop that assumes the stride is always one.
  8963. For example:
  8964. for (int i = 0; i < n; ++i)
  8965. x[i * stride] = ...;
  8966. becomes:
  8967. if (stride == 1)
  8968. for (int i = 0; i < n; ++i)
  8969. x[i] = ...;
  8970. else
  8971. for (int i = 0; i < n; ++i)
  8972. x[i * stride] = ...;
  8973. This is particularly useful for assumed-shape arrays in Fortran
  8974. where (for example) it allows better vectorization assuming
  8975. contiguous accesses. This flag is enabled by default at '-O3'. It
  8976. is also enabled by '-fprofile-use' and '-fauto-profile'.
  8977. '-ffunction-sections'
  8978. '-fdata-sections'
  8979. Place each function or data item into its own section in the output
  8980. file if the target supports arbitrary sections. The name of the
  8981. function or the name of the data item determines the section's name
  8982. in the output file.
  8983. Use these options on systems where the linker can perform
  8984. optimizations to improve locality of reference in the instruction
  8985. space. Most systems using the ELF object format have linkers with
  8986. such optimizations. On AIX, the linker rearranges sections
  8987. (CSECTs) based on the call graph. The performance impact varies.
  8988. Together with a linker garbage collection (linker '--gc-sections'
  8989. option) these options may lead to smaller statically-linked
  8990. executables (after stripping).
  8991. On ELF/DWARF systems these options do not degenerate the quality of
  8992. the debug information. There could be issues with other object
  8993. files/debug info formats.
  8994. Only use these options when there are significant benefits from
  8995. doing so. When you specify these options, the assembler and linker
  8996. create larger object and executable files and are also slower.
  8997. These options affect code generation. They prevent optimizations
  8998. by the compiler and assembler using relative locations inside a
  8999. translation unit since the locations are unknown until link time.
  9000. An example of such an optimization is relaxing calls to short call
  9001. instructions.
  9002. '-fstdarg-opt'
  9003. Optimize the prologue of variadic argument functions with respect
  9004. to usage of those arguments.
  9005. '-fsection-anchors'
  9006. Try to reduce the number of symbolic address calculations by using
  9007. shared "anchor" symbols to address nearby objects. This
  9008. transformation can help to reduce the number of GOT entries and GOT
  9009. accesses on some targets.
  9010. For example, the implementation of the following function 'foo':
  9011. static int a, b, c;
  9012. int foo (void) { return a + b + c; }
  9013. usually calculates the addresses of all three variables, but if you
  9014. compile it with '-fsection-anchors', it accesses the variables from
  9015. a common anchor point instead. The effect is similar to the
  9016. following pseudocode (which isn't valid C):
  9017. int foo (void)
  9018. {
  9019. register int *xr = &x;
  9020. return xr[&a - &x] + xr[&b - &x] + xr[&c - &x];
  9021. }
  9022. Not all targets support this option.
  9023. '--param NAME=VALUE'
  9024. In some places, GCC uses various constants to control the amount of
  9025. optimization that is done. For example, GCC does not inline
  9026. functions that contain more than a certain number of instructions.
  9027. You can control some of these constants on the command line using
  9028. the '--param' option.
  9029. The names of specific parameters, and the meaning of the values,
  9030. are tied to the internals of the compiler, and are subject to
  9031. change without notice in future releases.
  9032. In order to get minimal, maximal and default value of a parameter,
  9033. one can use '--help=param -Q' options.
  9034. In each case, the VALUE is an integer. The following choices of
  9035. NAME are recognized for all targets:
  9036. 'predictable-branch-outcome'
  9037. When branch is predicted to be taken with probability lower
  9038. than this threshold (in percent), then it is considered well
  9039. predictable.
  9040. 'max-rtl-if-conversion-insns'
  9041. RTL if-conversion tries to remove conditional branches around
  9042. a block and replace them with conditionally executed
  9043. instructions. This parameter gives the maximum number of
  9044. instructions in a block which should be considered for
  9045. if-conversion. The compiler will also use other heuristics to
  9046. decide whether if-conversion is likely to be profitable.
  9047. 'max-rtl-if-conversion-predictable-cost'
  9048. 'max-rtl-if-conversion-unpredictable-cost'
  9049. RTL if-conversion will try to remove conditional branches
  9050. around a block and replace them with conditionally executed
  9051. instructions. These parameters give the maximum permissible
  9052. cost for the sequence that would be generated by if-conversion
  9053. depending on whether the branch is statically determined to be
  9054. predictable or not. The units for this parameter are the same
  9055. as those for the GCC internal seq_cost metric. The compiler
  9056. will try to provide a reasonable default for this parameter
  9057. using the BRANCH_COST target macro.
  9058. 'max-crossjump-edges'
  9059. The maximum number of incoming edges to consider for
  9060. cross-jumping. The algorithm used by '-fcrossjumping' is
  9061. O(N^2) in the number of edges incoming to each block.
  9062. Increasing values mean more aggressive optimization, making
  9063. the compilation time increase with probably small improvement
  9064. in executable size.
  9065. 'min-crossjump-insns'
  9066. The minimum number of instructions that must be matched at the
  9067. end of two blocks before cross-jumping is performed on them.
  9068. This value is ignored in the case where all instructions in
  9069. the block being cross-jumped from are matched.
  9070. 'max-grow-copy-bb-insns'
  9071. The maximum code size expansion factor when copying basic
  9072. blocks instead of jumping. The expansion is relative to a
  9073. jump instruction.
  9074. 'max-goto-duplication-insns'
  9075. The maximum number of instructions to duplicate to a block
  9076. that jumps to a computed goto. To avoid O(N^2) behavior in a
  9077. number of passes, GCC factors computed gotos early in the
  9078. compilation process, and unfactors them as late as possible.
  9079. Only computed jumps at the end of a basic blocks with no more
  9080. than max-goto-duplication-insns are unfactored.
  9081. 'max-delay-slot-insn-search'
  9082. The maximum number of instructions to consider when looking
  9083. for an instruction to fill a delay slot. If more than this
  9084. arbitrary number of instructions are searched, the time
  9085. savings from filling the delay slot are minimal, so stop
  9086. searching. Increasing values mean more aggressive
  9087. optimization, making the compilation time increase with
  9088. probably small improvement in execution time.
  9089. 'max-delay-slot-live-search'
  9090. When trying to fill delay slots, the maximum number of
  9091. instructions to consider when searching for a block with valid
  9092. live register information. Increasing this arbitrarily chosen
  9093. value means more aggressive optimization, increasing the
  9094. compilation time. This parameter should be removed when the
  9095. delay slot code is rewritten to maintain the control-flow
  9096. graph.
  9097. 'max-gcse-memory'
  9098. The approximate maximum amount of memory that can be allocated
  9099. in order to perform the global common subexpression
  9100. elimination optimization. If more memory than specified is
  9101. required, the optimization is not done.
  9102. 'max-gcse-insertion-ratio'
  9103. If the ratio of expression insertions to deletions is larger
  9104. than this value for any expression, then RTL PRE inserts or
  9105. removes the expression and thus leaves partially redundant
  9106. computations in the instruction stream.
  9107. 'max-pending-list-length'
  9108. The maximum number of pending dependencies scheduling allows
  9109. before flushing the current state and starting over. Large
  9110. functions with few branches or calls can create excessively
  9111. large lists which needlessly consume memory and resources.
  9112. 'max-modulo-backtrack-attempts'
  9113. The maximum number of backtrack attempts the scheduler should
  9114. make when modulo scheduling a loop. Larger values can
  9115. exponentially increase compilation time.
  9116. 'max-inline-insns-single'
  9117. Several parameters control the tree inliner used in GCC. This
  9118. number sets the maximum number of instructions (counted in
  9119. GCC's internal representation) in a single function that the
  9120. tree inliner considers for inlining. This only affects
  9121. functions declared inline and methods implemented in a class
  9122. declaration (C++).
  9123. 'max-inline-insns-auto'
  9124. When you use '-finline-functions' (included in '-O3'), a lot
  9125. of functions that would otherwise not be considered for
  9126. inlining by the compiler are investigated. To those
  9127. functions, a different (more restrictive) limit compared to
  9128. functions declared inline can be applied ('--param
  9129. max-inline-insns-auto').
  9130. 'max-inline-insns-small'
  9131. This is bound applied to calls which are considered relevant
  9132. with '-finline-small-functions'.
  9133. 'max-inline-insns-size'
  9134. This is bound applied to calls which are optimized for size.
  9135. Small growth may be desirable to anticipate optimization
  9136. oppurtunities exposed by inlining.
  9137. 'uninlined-function-insns'
  9138. Number of instructions accounted by inliner for function
  9139. overhead such as function prologue and epilogue.
  9140. 'uninlined-function-time'
  9141. Extra time accounted by inliner for function overhead such as
  9142. time needed to execute function prologue and epilogue
  9143. 'inline-heuristics-hint-percent'
  9144. The scale (in percents) applied to 'inline-insns-single',
  9145. 'inline-insns-single-O2', 'inline-insns-auto' when inline
  9146. heuristics hints that inlining is very profitable (will enable
  9147. later optimizations).
  9148. 'uninlined-thunk-insns'
  9149. 'uninlined-thunk-time'
  9150. Same as '--param uninlined-function-insns' and '--param
  9151. uninlined-function-time' but applied to function thunks
  9152. 'inline-min-speedup'
  9153. When estimated performance improvement of caller + callee
  9154. runtime exceeds this threshold (in percent), the function can
  9155. be inlined regardless of the limit on '--param
  9156. max-inline-insns-single' and '--param max-inline-insns-auto'.
  9157. 'large-function-insns'
  9158. The limit specifying really large functions. For functions
  9159. larger than this limit after inlining, inlining is constrained
  9160. by '--param large-function-growth'. This parameter is useful
  9161. primarily to avoid extreme compilation time caused by
  9162. non-linear algorithms used by the back end.
  9163. 'large-function-growth'
  9164. Specifies maximal growth of large function caused by inlining
  9165. in percents. For example, parameter value 100 limits large
  9166. function growth to 2.0 times the original size.
  9167. 'large-unit-insns'
  9168. The limit specifying large translation unit. Growth caused by
  9169. inlining of units larger than this limit is limited by
  9170. '--param inline-unit-growth'. For small units this might be
  9171. too tight. For example, consider a unit consisting of
  9172. function A that is inline and B that just calls A three times.
  9173. If B is small relative to A, the growth of unit is 300\% and
  9174. yet such inlining is very sane. For very large units
  9175. consisting of small inlineable functions, however, the overall
  9176. unit growth limit is needed to avoid exponential explosion of
  9177. code size. Thus for smaller units, the size is increased to
  9178. '--param large-unit-insns' before applying '--param
  9179. inline-unit-growth'.
  9180. 'inline-unit-growth'
  9181. Specifies maximal overall growth of the compilation unit
  9182. caused by inlining. For example, parameter value 20 limits
  9183. unit growth to 1.2 times the original size. Cold functions
  9184. (either marked cold via an attribute or by profile feedback)
  9185. are not accounted into the unit size.
  9186. 'ipa-cp-unit-growth'
  9187. Specifies maximal overall growth of the compilation unit
  9188. caused by interprocedural constant propagation. For example,
  9189. parameter value 10 limits unit growth to 1.1 times the
  9190. original size.
  9191. 'large-stack-frame'
  9192. The limit specifying large stack frames. While inlining the
  9193. algorithm is trying to not grow past this limit too much.
  9194. 'large-stack-frame-growth'
  9195. Specifies maximal growth of large stack frames caused by
  9196. inlining in percents. For example, parameter value 1000
  9197. limits large stack frame growth to 11 times the original size.
  9198. 'max-inline-insns-recursive'
  9199. 'max-inline-insns-recursive-auto'
  9200. Specifies the maximum number of instructions an out-of-line
  9201. copy of a self-recursive inline function can grow into by
  9202. performing recursive inlining.
  9203. '--param max-inline-insns-recursive' applies to functions
  9204. declared inline. For functions not declared inline, recursive
  9205. inlining happens only when '-finline-functions' (included in
  9206. '-O3') is enabled; '--param max-inline-insns-recursive-auto'
  9207. applies instead.
  9208. 'max-inline-recursive-depth'
  9209. 'max-inline-recursive-depth-auto'
  9210. Specifies the maximum recursion depth used for recursive
  9211. inlining.
  9212. '--param max-inline-recursive-depth' applies to functions
  9213. declared inline. For functions not declared inline, recursive
  9214. inlining happens only when '-finline-functions' (included in
  9215. '-O3') is enabled; '--param max-inline-recursive-depth-auto'
  9216. applies instead.
  9217. 'min-inline-recursive-probability'
  9218. Recursive inlining is profitable only for function having deep
  9219. recursion in average and can hurt for function having little
  9220. recursion depth by increasing the prologue size or complexity
  9221. of function body to other optimizers.
  9222. When profile feedback is available (see '-fprofile-generate')
  9223. the actual recursion depth can be guessed from the probability
  9224. that function recurses via a given call expression. This
  9225. parameter limits inlining only to call expressions whose
  9226. probability exceeds the given threshold (in percents).
  9227. 'early-inlining-insns'
  9228. Specify growth that the early inliner can make. In effect it
  9229. increases the amount of inlining for code having a large
  9230. abstraction penalty.
  9231. 'max-early-inliner-iterations'
  9232. Limit of iterations of the early inliner. This basically
  9233. bounds the number of nested indirect calls the early inliner
  9234. can resolve. Deeper chains are still handled by late
  9235. inlining.
  9236. 'comdat-sharing-probability'
  9237. Probability (in percent) that C++ inline function with comdat
  9238. visibility are shared across multiple compilation units.
  9239. 'profile-func-internal-id'
  9240. A parameter to control whether to use function internal id in
  9241. profile database lookup. If the value is 0, the compiler uses
  9242. an id that is based on function assembler name and filename,
  9243. which makes old profile data more tolerant to source changes
  9244. such as function reordering etc.
  9245. 'min-vect-loop-bound'
  9246. The minimum number of iterations under which loops are not
  9247. vectorized when '-ftree-vectorize' is used. The number of
  9248. iterations after vectorization needs to be greater than the
  9249. value specified by this option to allow vectorization.
  9250. 'gcse-cost-distance-ratio'
  9251. Scaling factor in calculation of maximum distance an
  9252. expression can be moved by GCSE optimizations. This is
  9253. currently supported only in the code hoisting pass. The
  9254. bigger the ratio, the more aggressive code hoisting is with
  9255. simple expressions, i.e., the expressions that have cost less
  9256. than 'gcse-unrestricted-cost'. Specifying 0 disables hoisting
  9257. of simple expressions.
  9258. 'gcse-unrestricted-cost'
  9259. Cost, roughly measured as the cost of a single typical machine
  9260. instruction, at which GCSE optimizations do not constrain the
  9261. distance an expression can travel. This is currently
  9262. supported only in the code hoisting pass. The lesser the
  9263. cost, the more aggressive code hoisting is. Specifying 0
  9264. allows all expressions to travel unrestricted distances.
  9265. 'max-hoist-depth'
  9266. The depth of search in the dominator tree for expressions to
  9267. hoist. This is used to avoid quadratic behavior in hoisting
  9268. algorithm. The value of 0 does not limit on the search, but
  9269. may slow down compilation of huge functions.
  9270. 'max-tail-merge-comparisons'
  9271. The maximum amount of similar bbs to compare a bb with. This
  9272. is used to avoid quadratic behavior in tree tail merging.
  9273. 'max-tail-merge-iterations'
  9274. The maximum amount of iterations of the pass over the
  9275. function. This is used to limit compilation time in tree tail
  9276. merging.
  9277. 'store-merging-allow-unaligned'
  9278. Allow the store merging pass to introduce unaligned stores if
  9279. it is legal to do so.
  9280. 'max-stores-to-merge'
  9281. The maximum number of stores to attempt to merge into wider
  9282. stores in the store merging pass.
  9283. 'max-unrolled-insns'
  9284. The maximum number of instructions that a loop may have to be
  9285. unrolled. If a loop is unrolled, this parameter also
  9286. determines how many times the loop code is unrolled.
  9287. 'max-average-unrolled-insns'
  9288. The maximum number of instructions biased by probabilities of
  9289. their execution that a loop may have to be unrolled. If a
  9290. loop is unrolled, this parameter also determines how many
  9291. times the loop code is unrolled.
  9292. 'max-unroll-times'
  9293. The maximum number of unrollings of a single loop.
  9294. 'max-peeled-insns'
  9295. The maximum number of instructions that a loop may have to be
  9296. peeled. If a loop is peeled, this parameter also determines
  9297. how many times the loop code is peeled.
  9298. 'max-peel-times'
  9299. The maximum number of peelings of a single loop.
  9300. 'max-peel-branches'
  9301. The maximum number of branches on the hot path through the
  9302. peeled sequence.
  9303. 'max-completely-peeled-insns'
  9304. The maximum number of insns of a completely peeled loop.
  9305. 'max-completely-peel-times'
  9306. The maximum number of iterations of a loop to be suitable for
  9307. complete peeling.
  9308. 'max-completely-peel-loop-nest-depth'
  9309. The maximum depth of a loop nest suitable for complete
  9310. peeling.
  9311. 'max-unswitch-insns'
  9312. The maximum number of insns of an unswitched loop.
  9313. 'max-unswitch-level'
  9314. The maximum number of branches unswitched in a single loop.
  9315. 'lim-expensive'
  9316. The minimum cost of an expensive expression in the loop
  9317. invariant motion.
  9318. 'min-loop-cond-split-prob'
  9319. When FDO profile information is available,
  9320. 'min-loop-cond-split-prob' specifies minimum threshold for
  9321. probability of semi-invariant condition statement to trigger
  9322. loop split.
  9323. 'iv-consider-all-candidates-bound'
  9324. Bound on number of candidates for induction variables, below
  9325. which all candidates are considered for each use in induction
  9326. variable optimizations. If there are more candidates than
  9327. this, only the most relevant ones are considered to avoid
  9328. quadratic time complexity.
  9329. 'iv-max-considered-uses'
  9330. The induction variable optimizations give up on loops that
  9331. contain more induction variable uses.
  9332. 'iv-always-prune-cand-set-bound'
  9333. If the number of candidates in the set is smaller than this
  9334. value, always try to remove unnecessary ivs from the set when
  9335. adding a new one.
  9336. 'avg-loop-niter'
  9337. Average number of iterations of a loop.
  9338. 'dse-max-object-size'
  9339. Maximum size (in bytes) of objects tracked bytewise by dead
  9340. store elimination. Larger values may result in larger
  9341. compilation times.
  9342. 'dse-max-alias-queries-per-store'
  9343. Maximum number of queries into the alias oracle per store.
  9344. Larger values result in larger compilation times and may
  9345. result in more removed dead stores.
  9346. 'scev-max-expr-size'
  9347. Bound on size of expressions used in the scalar evolutions
  9348. analyzer. Large expressions slow the analyzer.
  9349. 'scev-max-expr-complexity'
  9350. Bound on the complexity of the expressions in the scalar
  9351. evolutions analyzer. Complex expressions slow the analyzer.
  9352. 'max-tree-if-conversion-phi-args'
  9353. Maximum number of arguments in a PHI supported by TREE if
  9354. conversion unless the loop is marked with simd pragma.
  9355. 'vect-max-version-for-alignment-checks'
  9356. The maximum number of run-time checks that can be performed
  9357. when doing loop versioning for alignment in the vectorizer.
  9358. 'vect-max-version-for-alias-checks'
  9359. The maximum number of run-time checks that can be performed
  9360. when doing loop versioning for alias in the vectorizer.
  9361. 'vect-max-peeling-for-alignment'
  9362. The maximum number of loop peels to enhance access alignment
  9363. for vectorizer. Value -1 means no limit.
  9364. 'max-iterations-to-track'
  9365. The maximum number of iterations of a loop the brute-force
  9366. algorithm for analysis of the number of iterations of the loop
  9367. tries to evaluate.
  9368. 'hot-bb-count-fraction'
  9369. The denominator n of fraction 1/n of the maximal execution
  9370. count of a basic block in the entire program that a basic
  9371. block needs to at least have in order to be considered hot.
  9372. The default is 10000, which means that a basic block is
  9373. considered hot if its execution count is greater than 1/10000
  9374. of the maximal execution count. 0 means that it is never
  9375. considered hot. Used in non-LTO mode.
  9376. 'hot-bb-count-ws-permille'
  9377. The number of most executed permilles, ranging from 0 to 1000,
  9378. of the profiled execution of the entire program to which the
  9379. execution count of a basic block must be part of in order to
  9380. be considered hot. The default is 990, which means that a
  9381. basic block is considered hot if its execution count
  9382. contributes to the upper 990 permilles, or 99.0%, of the
  9383. profiled execution of the entire program. 0 means that it is
  9384. never considered hot. Used in LTO mode.
  9385. 'hot-bb-frequency-fraction'
  9386. The denominator n of fraction 1/n of the execution frequency
  9387. of the entry block of a function that a basic block of this
  9388. function needs to at least have in order to be considered hot.
  9389. The default is 1000, which means that a basic block is
  9390. considered hot in a function if it is executed more frequently
  9391. than 1/1000 of the frequency of the entry block of the
  9392. function. 0 means that it is never considered hot.
  9393. 'unlikely-bb-count-fraction'
  9394. The denominator n of fraction 1/n of the number of profiled
  9395. runs of the entire program below which the execution count of
  9396. a basic block must be in order for the basic block to be
  9397. considered unlikely executed. The default is 20, which means
  9398. that a basic block is considered unlikely executed if it is
  9399. executed in fewer than 1/20, or 5%, of the runs of the
  9400. program. 0 means that it is always considered unlikely
  9401. executed.
  9402. 'max-predicted-iterations'
  9403. The maximum number of loop iterations we predict statically.
  9404. This is useful in cases where a function contains a single
  9405. loop with known bound and another loop with unknown bound.
  9406. The known number of iterations is predicted correctly, while
  9407. the unknown number of iterations average to roughly 10. This
  9408. means that the loop without bounds appears artificially cold
  9409. relative to the other one.
  9410. 'builtin-expect-probability'
  9411. Control the probability of the expression having the specified
  9412. value. This parameter takes a percentage (i.e. 0 ... 100) as
  9413. input.
  9414. 'builtin-string-cmp-inline-length'
  9415. The maximum length of a constant string for a builtin string
  9416. cmp call eligible for inlining.
  9417. 'align-threshold'
  9418. Select fraction of the maximal frequency of executions of a
  9419. basic block in a function to align the basic block.
  9420. 'align-loop-iterations'
  9421. A loop expected to iterate at least the selected number of
  9422. iterations is aligned.
  9423. 'tracer-dynamic-coverage'
  9424. 'tracer-dynamic-coverage-feedback'
  9425. This value is used to limit superblock formation once the
  9426. given percentage of executed instructions is covered. This
  9427. limits unnecessary code size expansion.
  9428. The 'tracer-dynamic-coverage-feedback' parameter is used only
  9429. when profile feedback is available. The real profiles (as
  9430. opposed to statically estimated ones) are much less balanced
  9431. allowing the threshold to be larger value.
  9432. 'tracer-max-code-growth'
  9433. Stop tail duplication once code growth has reached given
  9434. percentage. This is a rather artificial limit, as most of the
  9435. duplicates are eliminated later in cross jumping, so it may be
  9436. set to much higher values than is the desired code growth.
  9437. 'tracer-min-branch-ratio'
  9438. Stop reverse growth when the reverse probability of best edge
  9439. is less than this threshold (in percent).
  9440. 'tracer-min-branch-probability'
  9441. 'tracer-min-branch-probability-feedback'
  9442. Stop forward growth if the best edge has probability lower
  9443. than this threshold.
  9444. Similarly to 'tracer-dynamic-coverage' two parameters are
  9445. provided. 'tracer-min-branch-probability-feedback' is used
  9446. for compilation with profile feedback and
  9447. 'tracer-min-branch-probability' compilation without. The
  9448. value for compilation with profile feedback needs to be more
  9449. conservative (higher) in order to make tracer effective.
  9450. 'stack-clash-protection-guard-size'
  9451. Specify the size of the operating system provided stack guard
  9452. as 2 raised to NUM bytes. Higher values may reduce the number
  9453. of explicit probes, but a value larger than the operating
  9454. system provided guard will leave code vulnerable to stack
  9455. clash style attacks.
  9456. 'stack-clash-protection-probe-interval'
  9457. Stack clash protection involves probing stack space as it is
  9458. allocated. This param controls the maximum distance between
  9459. probes into the stack as 2 raised to NUM bytes. Higher values
  9460. may reduce the number of explicit probes, but a value larger
  9461. than the operating system provided guard will leave code
  9462. vulnerable to stack clash style attacks.
  9463. 'max-cse-path-length'
  9464. The maximum number of basic blocks on path that CSE considers.
  9465. 'max-cse-insns'
  9466. The maximum number of instructions CSE processes before
  9467. flushing.
  9468. 'ggc-min-expand'
  9469. GCC uses a garbage collector to manage its own memory
  9470. allocation. This parameter specifies the minimum percentage
  9471. by which the garbage collector's heap should be allowed to
  9472. expand between collections. Tuning this may improve
  9473. compilation speed; it has no effect on code generation.
  9474. The default is 30% + 70% * (RAM/1GB) with an upper bound of
  9475. 100% when RAM >= 1GB. If 'getrlimit' is available, the notion
  9476. of "RAM" is the smallest of actual RAM and 'RLIMIT_DATA' or
  9477. 'RLIMIT_AS'. If GCC is not able to calculate RAM on a
  9478. particular platform, the lower bound of 30% is used. Setting
  9479. this parameter and 'ggc-min-heapsize' to zero causes a full
  9480. collection to occur at every opportunity. This is extremely
  9481. slow, but can be useful for debugging.
  9482. 'ggc-min-heapsize'
  9483. Minimum size of the garbage collector's heap before it begins
  9484. bothering to collect garbage. The first collection occurs
  9485. after the heap expands by 'ggc-min-expand'% beyond
  9486. 'ggc-min-heapsize'. Again, tuning this may improve
  9487. compilation speed, and has no effect on code generation.
  9488. The default is the smaller of RAM/8, RLIMIT_RSS, or a limit
  9489. that tries to ensure that RLIMIT_DATA or RLIMIT_AS are not
  9490. exceeded, but with a lower bound of 4096 (four megabytes) and
  9491. an upper bound of 131072 (128 megabytes). If GCC is not able
  9492. to calculate RAM on a particular platform, the lower bound is
  9493. used. Setting this parameter very large effectively disables
  9494. garbage collection. Setting this parameter and
  9495. 'ggc-min-expand' to zero causes a full collection to occur at
  9496. every opportunity.
  9497. 'max-reload-search-insns'
  9498. The maximum number of instruction reload should look backward
  9499. for equivalent register. Increasing values mean more
  9500. aggressive optimization, making the compilation time increase
  9501. with probably slightly better performance.
  9502. 'max-cselib-memory-locations'
  9503. The maximum number of memory locations cselib should take into
  9504. account. Increasing values mean more aggressive optimization,
  9505. making the compilation time increase with probably slightly
  9506. better performance.
  9507. 'max-sched-ready-insns'
  9508. The maximum number of instructions ready to be issued the
  9509. scheduler should consider at any given time during the first
  9510. scheduling pass. Increasing values mean more thorough
  9511. searches, making the compilation time increase with probably
  9512. little benefit.
  9513. 'max-sched-region-blocks'
  9514. The maximum number of blocks in a region to be considered for
  9515. interblock scheduling.
  9516. 'max-pipeline-region-blocks'
  9517. The maximum number of blocks in a region to be considered for
  9518. pipelining in the selective scheduler.
  9519. 'max-sched-region-insns'
  9520. The maximum number of insns in a region to be considered for
  9521. interblock scheduling.
  9522. 'max-pipeline-region-insns'
  9523. The maximum number of insns in a region to be considered for
  9524. pipelining in the selective scheduler.
  9525. 'min-spec-prob'
  9526. The minimum probability (in percents) of reaching a source
  9527. block for interblock speculative scheduling.
  9528. 'max-sched-extend-regions-iters'
  9529. The maximum number of iterations through CFG to extend
  9530. regions. A value of 0 disables region extensions.
  9531. 'max-sched-insn-conflict-delay'
  9532. The maximum conflict delay for an insn to be considered for
  9533. speculative motion.
  9534. 'sched-spec-prob-cutoff'
  9535. The minimal probability of speculation success (in percents),
  9536. so that speculative insns are scheduled.
  9537. 'sched-state-edge-prob-cutoff'
  9538. The minimum probability an edge must have for the scheduler to
  9539. save its state across it.
  9540. 'sched-mem-true-dep-cost'
  9541. Minimal distance (in CPU cycles) between store and load
  9542. targeting same memory locations.
  9543. 'selsched-max-lookahead'
  9544. The maximum size of the lookahead window of selective
  9545. scheduling. It is a depth of search for available
  9546. instructions.
  9547. 'selsched-max-sched-times'
  9548. The maximum number of times that an instruction is scheduled
  9549. during selective scheduling. This is the limit on the number
  9550. of iterations through which the instruction may be pipelined.
  9551. 'selsched-insns-to-rename'
  9552. The maximum number of best instructions in the ready list that
  9553. are considered for renaming in the selective scheduler.
  9554. 'sms-min-sc'
  9555. The minimum value of stage count that swing modulo scheduler
  9556. generates.
  9557. 'max-last-value-rtl'
  9558. The maximum size measured as number of RTLs that can be
  9559. recorded in an expression in combiner for a pseudo register as
  9560. last known value of that register.
  9561. 'max-combine-insns'
  9562. The maximum number of instructions the RTL combiner tries to
  9563. combine.
  9564. 'integer-share-limit'
  9565. Small integer constants can use a shared data structure,
  9566. reducing the compiler's memory usage and increasing its speed.
  9567. This sets the maximum value of a shared integer constant.
  9568. 'ssp-buffer-size'
  9569. The minimum size of buffers (i.e. arrays) that receive stack
  9570. smashing protection when '-fstack-protection' is used.
  9571. 'min-size-for-stack-sharing'
  9572. The minimum size of variables taking part in stack slot
  9573. sharing when not optimizing.
  9574. 'max-jump-thread-duplication-stmts'
  9575. Maximum number of statements allowed in a block that needs to
  9576. be duplicated when threading jumps.
  9577. 'max-fields-for-field-sensitive'
  9578. Maximum number of fields in a structure treated in a field
  9579. sensitive manner during pointer analysis.
  9580. 'prefetch-latency'
  9581. Estimate on average number of instructions that are executed
  9582. before prefetch finishes. The distance prefetched ahead is
  9583. proportional to this constant. Increasing this number may
  9584. also lead to less streams being prefetched (see
  9585. 'simultaneous-prefetches').
  9586. 'simultaneous-prefetches'
  9587. Maximum number of prefetches that can run at the same time.
  9588. 'l1-cache-line-size'
  9589. The size of cache line in L1 data cache, in bytes.
  9590. 'l1-cache-size'
  9591. The size of L1 data cache, in kilobytes.
  9592. 'l2-cache-size'
  9593. The size of L2 data cache, in kilobytes.
  9594. 'prefetch-dynamic-strides'
  9595. Whether the loop array prefetch pass should issue software
  9596. prefetch hints for strides that are non-constant. In some
  9597. cases this may be beneficial, though the fact the stride is
  9598. non-constant may make it hard to predict when there is clear
  9599. benefit to issuing these hints.
  9600. Set to 1 if the prefetch hints should be issued for
  9601. non-constant strides. Set to 0 if prefetch hints should be
  9602. issued only for strides that are known to be constant and
  9603. below 'prefetch-minimum-stride'.
  9604. 'prefetch-minimum-stride'
  9605. Minimum constant stride, in bytes, to start using prefetch
  9606. hints for. If the stride is less than this threshold,
  9607. prefetch hints will not be issued.
  9608. This setting is useful for processors that have hardware
  9609. prefetchers, in which case there may be conflicts between the
  9610. hardware prefetchers and the software prefetchers. If the
  9611. hardware prefetchers have a maximum stride they can handle, it
  9612. should be used here to improve the use of software
  9613. prefetchers.
  9614. A value of -1 means we don't have a threshold and therefore
  9615. prefetch hints can be issued for any constant stride.
  9616. This setting is only useful for strides that are known and
  9617. constant.
  9618. 'loop-interchange-max-num-stmts'
  9619. The maximum number of stmts in a loop to be interchanged.
  9620. 'loop-interchange-stride-ratio'
  9621. The minimum ratio between stride of two loops for interchange
  9622. to be profitable.
  9623. 'min-insn-to-prefetch-ratio'
  9624. The minimum ratio between the number of instructions and the
  9625. number of prefetches to enable prefetching in a loop.
  9626. 'prefetch-min-insn-to-mem-ratio'
  9627. The minimum ratio between the number of instructions and the
  9628. number of memory references to enable prefetching in a loop.
  9629. 'use-canonical-types'
  9630. Whether the compiler should use the "canonical" type system.
  9631. Should always be 1, which uses a more efficient internal
  9632. mechanism for comparing types in C++ and Objective-C++.
  9633. However, if bugs in the canonical type system are causing
  9634. compilation failures, set this value to 0 to disable canonical
  9635. types.
  9636. 'switch-conversion-max-branch-ratio'
  9637. Switch initialization conversion refuses to create arrays that
  9638. are bigger than 'switch-conversion-max-branch-ratio' times the
  9639. number of branches in the switch.
  9640. 'max-partial-antic-length'
  9641. Maximum length of the partial antic set computed during the
  9642. tree partial redundancy elimination optimization
  9643. ('-ftree-pre') when optimizing at '-O3' and above. For some
  9644. sorts of source code the enhanced partial redundancy
  9645. elimination optimization can run away, consuming all of the
  9646. memory available on the host machine. This parameter sets a
  9647. limit on the length of the sets that are computed, which
  9648. prevents the runaway behavior. Setting a value of 0 for this
  9649. parameter allows an unlimited set length.
  9650. 'rpo-vn-max-loop-depth'
  9651. Maximum loop depth that is value-numbered optimistically.
  9652. When the limit hits the innermost RPO-VN-MAX-LOOP-DEPTH loops
  9653. and the outermost loop in the loop nest are value-numbered
  9654. optimistically and the remaining ones not.
  9655. 'sccvn-max-alias-queries-per-access'
  9656. Maximum number of alias-oracle queries we perform when looking
  9657. for redundancies for loads and stores. If this limit is hit
  9658. the search is aborted and the load or store is not considered
  9659. redundant. The number of queries is algorithmically limited
  9660. to the number of stores on all paths from the load to the
  9661. function entry.
  9662. 'ira-max-loops-num'
  9663. IRA uses regional register allocation by default. If a
  9664. function contains more loops than the number given by this
  9665. parameter, only at most the given number of the most
  9666. frequently-executed loops form regions for regional register
  9667. allocation.
  9668. 'ira-max-conflict-table-size'
  9669. Although IRA uses a sophisticated algorithm to compress the
  9670. conflict table, the table can still require excessive amounts
  9671. of memory for huge functions. If the conflict table for a
  9672. function could be more than the size in MB given by this
  9673. parameter, the register allocator instead uses a faster,
  9674. simpler, and lower-quality algorithm that does not require
  9675. building a pseudo-register conflict table.
  9676. 'ira-loop-reserved-regs'
  9677. IRA can be used to evaluate more accurate register pressure in
  9678. loops for decisions to move loop invariants (see '-O3'). The
  9679. number of available registers reserved for some other purposes
  9680. is given by this parameter. Default of the parameter is the
  9681. best found from numerous experiments.
  9682. 'lra-inheritance-ebb-probability-cutoff'
  9683. LRA tries to reuse values reloaded in registers in subsequent
  9684. insns. This optimization is called inheritance. EBB is used
  9685. as a region to do this optimization. The parameter defines a
  9686. minimal fall-through edge probability in percentage used to
  9687. add BB to inheritance EBB in LRA. The default value was chosen
  9688. from numerous runs of SPEC2000 on x86-64.
  9689. 'loop-invariant-max-bbs-in-loop'
  9690. Loop invariant motion can be very expensive, both in
  9691. compilation time and in amount of needed compile-time memory,
  9692. with very large loops. Loops with more basic blocks than this
  9693. parameter won't have loop invariant motion optimization
  9694. performed on them.
  9695. 'loop-max-datarefs-for-datadeps'
  9696. Building data dependencies is expensive for very large loops.
  9697. This parameter limits the number of data references in loops
  9698. that are considered for data dependence analysis. These large
  9699. loops are no handled by the optimizations using loop data
  9700. dependencies.
  9701. 'max-vartrack-size'
  9702. Sets a maximum number of hash table slots to use during
  9703. variable tracking dataflow analysis of any function. If this
  9704. limit is exceeded with variable tracking at assignments
  9705. enabled, analysis for that function is retried without it,
  9706. after removing all debug insns from the function. If the
  9707. limit is exceeded even without debug insns, var tracking
  9708. analysis is completely disabled for the function. Setting the
  9709. parameter to zero makes it unlimited.
  9710. 'max-vartrack-expr-depth'
  9711. Sets a maximum number of recursion levels when attempting to
  9712. map variable names or debug temporaries to value expressions.
  9713. This trades compilation time for more complete debug
  9714. information. If this is set too low, value expressions that
  9715. are available and could be represented in debug information
  9716. may end up not being used; setting this higher may enable the
  9717. compiler to find more complex debug expressions, but compile
  9718. time and memory use may grow.
  9719. 'max-debug-marker-count'
  9720. Sets a threshold on the number of debug markers (e.g. begin
  9721. stmt markers) to avoid complexity explosion at inlining or
  9722. expanding to RTL. If a function has more such gimple stmts
  9723. than the set limit, such stmts will be dropped from the
  9724. inlined copy of a function, and from its RTL expansion.
  9725. 'min-nondebug-insn-uid'
  9726. Use uids starting at this parameter for nondebug insns. The
  9727. range below the parameter is reserved exclusively for debug
  9728. insns created by '-fvar-tracking-assignments', but debug insns
  9729. may get (non-overlapping) uids above it if the reserved range
  9730. is exhausted.
  9731. 'ipa-sra-ptr-growth-factor'
  9732. IPA-SRA replaces a pointer to an aggregate with one or more
  9733. new parameters only when their cumulative size is less or
  9734. equal to 'ipa-sra-ptr-growth-factor' times the size of the
  9735. original pointer parameter.
  9736. 'ipa-sra-max-replacements'
  9737. Maximum pieces of an aggregate that IPA-SRA tracks. As a
  9738. consequence, it is also the maximum number of replacements of
  9739. a formal parameter.
  9740. 'sra-max-scalarization-size-Ospeed'
  9741. 'sra-max-scalarization-size-Osize'
  9742. The two Scalar Reduction of Aggregates passes (SRA and
  9743. IPA-SRA) aim to replace scalar parts of aggregates with uses
  9744. of independent scalar variables. These parameters control the
  9745. maximum size, in storage units, of aggregate which is
  9746. considered for replacement when compiling for speed
  9747. ('sra-max-scalarization-size-Ospeed') or size
  9748. ('sra-max-scalarization-size-Osize') respectively.
  9749. 'sra-max-propagations'
  9750. The maximum number of artificial accesses that Scalar
  9751. Replacement of Aggregates (SRA) will track, per one local
  9752. variable, in order to facilitate copy propagation.
  9753. 'tm-max-aggregate-size'
  9754. When making copies of thread-local variables in a transaction,
  9755. this parameter specifies the size in bytes after which
  9756. variables are saved with the logging functions as opposed to
  9757. save/restore code sequence pairs. This option only applies
  9758. when using '-fgnu-tm'.
  9759. 'graphite-max-nb-scop-params'
  9760. To avoid exponential effects in the Graphite loop transforms,
  9761. the number of parameters in a Static Control Part (SCoP) is
  9762. bounded. A value of zero can be used to lift the bound. A
  9763. variable whose value is unknown at compilation time and
  9764. defined outside a SCoP is a parameter of the SCoP.
  9765. 'loop-block-tile-size'
  9766. Loop blocking or strip mining transforms, enabled with
  9767. '-floop-block' or '-floop-strip-mine', strip mine each loop in
  9768. the loop nest by a given number of iterations. The strip
  9769. length can be changed using the 'loop-block-tile-size'
  9770. parameter.
  9771. 'ipa-cp-value-list-size'
  9772. IPA-CP attempts to track all possible values and types passed
  9773. to a function's parameter in order to propagate them and
  9774. perform devirtualization. 'ipa-cp-value-list-size' is the
  9775. maximum number of values and types it stores per one formal
  9776. parameter of a function.
  9777. 'ipa-cp-eval-threshold'
  9778. IPA-CP calculates its own score of cloning profitability
  9779. heuristics and performs those cloning opportunities with
  9780. scores that exceed 'ipa-cp-eval-threshold'.
  9781. 'ipa-cp-max-recursive-depth'
  9782. Maximum depth of recursive cloning for self-recursive
  9783. function.
  9784. 'ipa-cp-min-recursive-probability'
  9785. Recursive cloning only when the probability of call being
  9786. executed exceeds the parameter.
  9787. 'ipa-cp-recursion-penalty'
  9788. Percentage penalty the recursive functions will receive when
  9789. they are evaluated for cloning.
  9790. 'ipa-cp-single-call-penalty'
  9791. Percentage penalty functions containing a single call to
  9792. another function will receive when they are evaluated for
  9793. cloning.
  9794. 'ipa-max-agg-items'
  9795. IPA-CP is also capable to propagate a number of scalar values
  9796. passed in an aggregate. 'ipa-max-agg-items' controls the
  9797. maximum number of such values per one parameter.
  9798. 'ipa-cp-loop-hint-bonus'
  9799. When IPA-CP determines that a cloning candidate would make the
  9800. number of iterations of a loop known, it adds a bonus of
  9801. 'ipa-cp-loop-hint-bonus' to the profitability score of the
  9802. candidate.
  9803. 'ipa-max-aa-steps'
  9804. During its analysis of function bodies, IPA-CP employs alias
  9805. analysis in order to track values pointed to by function
  9806. parameters. In order not spend too much time analyzing huge
  9807. functions, it gives up and consider all memory clobbered after
  9808. examining 'ipa-max-aa-steps' statements modifying memory.
  9809. 'ipa-max-switch-predicate-bounds'
  9810. Maximal number of boundary endpoints of case ranges of switch
  9811. statement. For switch exceeding this limit, IPA-CP will not
  9812. construct cloning cost predicate, which is used to estimate
  9813. cloning benefit, for default case of the switch statement.
  9814. 'ipa-max-param-expr-ops'
  9815. IPA-CP will analyze conditional statement that references some
  9816. function parameter to estimate benefit for cloning upon
  9817. certain constant value. But if number of operations in a
  9818. parameter expression exceeds 'ipa-max-param-expr-ops', the
  9819. expression is treated as complicated one, and is not handled
  9820. by IPA analysis.
  9821. 'lto-partitions'
  9822. Specify desired number of partitions produced during WHOPR
  9823. compilation. The number of partitions should exceed the
  9824. number of CPUs used for compilation.
  9825. 'lto-min-partition'
  9826. Size of minimal partition for WHOPR (in estimated
  9827. instructions). This prevents expenses of splitting very small
  9828. programs into too many partitions.
  9829. 'lto-max-partition'
  9830. Size of max partition for WHOPR (in estimated instructions).
  9831. to provide an upper bound for individual size of partition.
  9832. Meant to be used only with balanced partitioning.
  9833. 'lto-max-streaming-parallelism'
  9834. Maximal number of parallel processes used for LTO streaming.
  9835. 'cxx-max-namespaces-for-diagnostic-help'
  9836. The maximum number of namespaces to consult for suggestions
  9837. when C++ name lookup fails for an identifier.
  9838. 'sink-frequency-threshold'
  9839. The maximum relative execution frequency (in percents) of the
  9840. target block relative to a statement's original block to allow
  9841. statement sinking of a statement. Larger numbers result in
  9842. more aggressive statement sinking. A small positive
  9843. adjustment is applied for statements with memory operands as
  9844. those are even more profitable so sink.
  9845. 'max-stores-to-sink'
  9846. The maximum number of conditional store pairs that can be
  9847. sunk. Set to 0 if either vectorization ('-ftree-vectorize')
  9848. or if-conversion ('-ftree-loop-if-convert') is disabled.
  9849. 'case-values-threshold'
  9850. The smallest number of different values for which it is best
  9851. to use a jump-table instead of a tree of conditional branches.
  9852. If the value is 0, use the default for the machine.
  9853. 'jump-table-max-growth-ratio-for-size'
  9854. The maximum code size growth ratio when expanding into a jump
  9855. table (in percent). The parameter is used when optimizing for
  9856. size.
  9857. 'jump-table-max-growth-ratio-for-speed'
  9858. The maximum code size growth ratio when expanding into a jump
  9859. table (in percent). The parameter is used when optimizing for
  9860. speed.
  9861. 'tree-reassoc-width'
  9862. Set the maximum number of instructions executed in parallel in
  9863. reassociated tree. This parameter overrides target dependent
  9864. heuristics used by default if has non zero value.
  9865. 'sched-pressure-algorithm'
  9866. Choose between the two available implementations of
  9867. '-fsched-pressure'. Algorithm 1 is the original
  9868. implementation and is the more likely to prevent instructions
  9869. from being reordered. Algorithm 2 was designed to be a
  9870. compromise between the relatively conservative approach taken
  9871. by algorithm 1 and the rather aggressive approach taken by the
  9872. default scheduler. It relies more heavily on having a regular
  9873. register file and accurate register pressure classes. See
  9874. 'haifa-sched.c' in the GCC sources for more details.
  9875. The default choice depends on the target.
  9876. 'max-slsr-cand-scan'
  9877. Set the maximum number of existing candidates that are
  9878. considered when seeking a basis for a new straight-line
  9879. strength reduction candidate.
  9880. 'asan-globals'
  9881. Enable buffer overflow detection for global objects. This
  9882. kind of protection is enabled by default if you are using
  9883. '-fsanitize=address' option. To disable global objects
  9884. protection use '--param asan-globals=0'.
  9885. 'asan-stack'
  9886. Enable buffer overflow detection for stack objects. This kind
  9887. of protection is enabled by default when using
  9888. '-fsanitize=address'. To disable stack protection use
  9889. '--param asan-stack=0' option.
  9890. 'asan-instrument-reads'
  9891. Enable buffer overflow detection for memory reads. This kind
  9892. of protection is enabled by default when using
  9893. '-fsanitize=address'. To disable memory reads protection use
  9894. '--param asan-instrument-reads=0'.
  9895. 'asan-instrument-writes'
  9896. Enable buffer overflow detection for memory writes. This kind
  9897. of protection is enabled by default when using
  9898. '-fsanitize=address'. To disable memory writes protection use
  9899. '--param asan-instrument-writes=0' option.
  9900. 'asan-memintrin'
  9901. Enable detection for built-in functions. This kind of
  9902. protection is enabled by default when using
  9903. '-fsanitize=address'. To disable built-in functions
  9904. protection use '--param asan-memintrin=0'.
  9905. 'asan-use-after-return'
  9906. Enable detection of use-after-return. This kind of protection
  9907. is enabled by default when using the '-fsanitize=address'
  9908. option. To disable it use '--param asan-use-after-return=0'.
  9909. Note: By default the check is disabled at run time. To enable
  9910. it, add 'detect_stack_use_after_return=1' to the environment
  9911. variable 'ASAN_OPTIONS'.
  9912. 'asan-instrumentation-with-call-threshold'
  9913. If number of memory accesses in function being instrumented is
  9914. greater or equal to this number, use callbacks instead of
  9915. inline checks. E.g. to disable inline code use '--param
  9916. asan-instrumentation-with-call-threshold=0'.
  9917. 'use-after-scope-direct-emission-threshold'
  9918. If the size of a local variable in bytes is smaller or equal
  9919. to this number, directly poison (or unpoison) shadow memory
  9920. instead of using run-time callbacks.
  9921. 'max-fsm-thread-path-insns'
  9922. Maximum number of instructions to copy when duplicating blocks
  9923. on a finite state automaton jump thread path.
  9924. 'max-fsm-thread-length'
  9925. Maximum number of basic blocks on a finite state automaton
  9926. jump thread path.
  9927. 'max-fsm-thread-paths'
  9928. Maximum number of new jump thread paths to create for a finite
  9929. state automaton.
  9930. 'parloops-chunk-size'
  9931. Chunk size of omp schedule for loops parallelized by parloops.
  9932. 'parloops-schedule'
  9933. Schedule type of omp schedule for loops parallelized by
  9934. parloops (static, dynamic, guided, auto, runtime).
  9935. 'parloops-min-per-thread'
  9936. The minimum number of iterations per thread of an innermost
  9937. parallelized loop for which the parallelized variant is
  9938. preferred over the single threaded one. Note that for a
  9939. parallelized loop nest the minimum number of iterations of the
  9940. outermost loop per thread is two.
  9941. 'max-ssa-name-query-depth'
  9942. Maximum depth of recursion when querying properties of SSA
  9943. names in things like fold routines. One level of recursion
  9944. corresponds to following a use-def chain.
  9945. 'hsa-gen-debug-stores'
  9946. Enable emission of special debug stores within HSA kernels
  9947. which are then read and reported by libgomp plugin.
  9948. Generation of these stores is disabled by default, use
  9949. '--param hsa-gen-debug-stores=1' to enable it.
  9950. 'max-speculative-devirt-maydefs'
  9951. The maximum number of may-defs we analyze when looking for a
  9952. must-def specifying the dynamic type of an object that invokes
  9953. a virtual call we may be able to devirtualize speculatively.
  9954. 'max-vrp-switch-assertions'
  9955. The maximum number of assertions to add along the default edge
  9956. of a switch statement during VRP.
  9957. 'unroll-jam-min-percent'
  9958. The minimum percentage of memory references that must be
  9959. optimized away for the unroll-and-jam transformation to be
  9960. considered profitable.
  9961. 'unroll-jam-max-unroll'
  9962. The maximum number of times the outer loop should be unrolled
  9963. by the unroll-and-jam transformation.
  9964. 'max-rtl-if-conversion-unpredictable-cost'
  9965. Maximum permissible cost for the sequence that would be
  9966. generated by the RTL if-conversion pass for a branch that is
  9967. considered unpredictable.
  9968. 'max-variable-expansions-in-unroller'
  9969. If '-fvariable-expansion-in-unroller' is used, the maximum
  9970. number of times that an individual variable will be expanded
  9971. during loop unrolling.
  9972. 'tracer-min-branch-probability-feedback'
  9973. Stop forward growth if the probability of best edge is less
  9974. than this threshold (in percent). Used when profile feedback
  9975. is available.
  9976. 'partial-inlining-entry-probability'
  9977. Maximum probability of the entry BB of split region (in
  9978. percent relative to entry BB of the function) to make partial
  9979. inlining happen.
  9980. 'max-tracked-strlens'
  9981. Maximum number of strings for which strlen optimization pass
  9982. will track string lengths.
  9983. 'gcse-after-reload-partial-fraction'
  9984. The threshold ratio for performing partial redundancy
  9985. elimination after reload.
  9986. 'gcse-after-reload-critical-fraction'
  9987. The threshold ratio of critical edges execution count that
  9988. permit performing redundancy elimination after reload.
  9989. 'max-loop-header-insns'
  9990. The maximum number of insns in loop header duplicated by the
  9991. copy loop headers pass.
  9992. 'vect-epilogues-nomask'
  9993. Enable loop epilogue vectorization using smaller vector size.
  9994. 'slp-max-insns-in-bb'
  9995. Maximum number of instructions in basic block to be considered
  9996. for SLP vectorization.
  9997. 'avoid-fma-max-bits'
  9998. Maximum number of bits for which we avoid creating FMAs.
  9999. 'sms-loop-average-count-threshold'
  10000. A threshold on the average loop count considered by the swing
  10001. modulo scheduler.
  10002. 'sms-dfa-history'
  10003. The number of cycles the swing modulo scheduler considers when
  10004. checking conflicts using DFA.
  10005. 'max-inline-insns-recursive-auto'
  10006. The maximum number of instructions non-inline function can
  10007. grow to via recursive inlining.
  10008. 'graphite-allow-codegen-errors'
  10009. Whether codegen errors should be ICEs when '-fchecking'.
  10010. 'sms-max-ii-factor'
  10011. A factor for tuning the upper bound that swing modulo
  10012. scheduler uses for scheduling a loop.
  10013. 'lra-max-considered-reload-pseudos'
  10014. The max number of reload pseudos which are considered during
  10015. spilling a non-reload pseudo.
  10016. 'max-pow-sqrt-depth'
  10017. Maximum depth of sqrt chains to use when synthesizing
  10018. exponentiation by a real constant.
  10019. 'max-dse-active-local-stores'
  10020. Maximum number of active local stores in RTL dead store
  10021. elimination.
  10022. 'asan-instrument-allocas'
  10023. Enable asan allocas/VLAs protection.
  10024. 'max-iterations-computation-cost'
  10025. Bound on the cost of an expression to compute the number of
  10026. iterations.
  10027. 'max-isl-operations'
  10028. Maximum number of isl operations, 0 means unlimited.
  10029. 'graphite-max-arrays-per-scop'
  10030. Maximum number of arrays per scop.
  10031. 'max-vartrack-reverse-op-size'
  10032. Max. size of loc list for which reverse ops should be added.
  10033. 'tracer-dynamic-coverage-feedback'
  10034. The percentage of function, weighted by execution frequency,
  10035. that must be covered by trace formation. Used when profile
  10036. feedback is available.
  10037. 'max-inline-recursive-depth-auto'
  10038. The maximum depth of recursive inlining for non-inline
  10039. functions.
  10040. 'fsm-scale-path-stmts'
  10041. Scale factor to apply to the number of statements in a
  10042. threading path when comparing to the number of (scaled)
  10043. blocks.
  10044. 'fsm-maximum-phi-arguments'
  10045. Maximum number of arguments a PHI may have before the FSM
  10046. threader will not try to thread through its block.
  10047. 'uninit-control-dep-attempts'
  10048. Maximum number of nested calls to search for control
  10049. dependencies during uninitialized variable analysis.
  10050. 'sra-max-scalarization-size-Osize'
  10051. Maximum size, in storage units, of an aggregate which should
  10052. be considered for scalarization when compiling for size.
  10053. 'fsm-scale-path-blocks'
  10054. Scale factor to apply to the number of blocks in a threading
  10055. path when comparing to the number of (scaled) statements.
  10056. 'sched-autopref-queue-depth'
  10057. Hardware autoprefetcher scheduler model control flag. Number
  10058. of lookahead cycles the model looks into; at ' ' only enable
  10059. instruction sorting heuristic.
  10060. 'loop-versioning-max-inner-insns'
  10061. The maximum number of instructions that an inner loop can have
  10062. before the loop versioning pass considers it too big to copy.
  10063. 'loop-versioning-max-outer-insns'
  10064. The maximum number of instructions that an outer loop can have
  10065. before the loop versioning pass considers it too big to copy,
  10066. discounting any instructions in inner loops that directly
  10067. benefit from versioning.
  10068. 'ssa-name-def-chain-limit'
  10069. The maximum number of SSA_NAME assignments to follow in
  10070. determining a property of a variable such as its value. This
  10071. limits the number of iterations or recursive calls GCC
  10072. performs when optimizing certain statements or when
  10073. determining their validity prior to issuing diagnostics.
  10074. 'store-merging-max-size'
  10075. Maximum size of a single store merging region in bytes.
  10076. 'hash-table-verification-limit'
  10077. The number of elements for which hash table verification is
  10078. done for each searched element.
  10079. 'max-find-base-term-values'
  10080. Maximum number of VALUEs handled during a single
  10081. find_base_term call.
  10082. 'analyzer-max-enodes-per-program-point'
  10083. The maximum number of exploded nodes per program point within
  10084. the analyzer, before terminating analysis of that point.
  10085. 'analyzer-min-snodes-for-call-summary'
  10086. The minimum number of supernodes within a function for the
  10087. analyzer to consider summarizing its effects at call sites.
  10088. 'analyzer-max-recursion-depth'
  10089. The maximum number of times a callsite can appear in a call
  10090. stack within the analyzer, before terminating analysis of a
  10091. call that would recurse deeper.
  10092. 'gimple-fe-computed-hot-bb-threshold'
  10093. The number of executions of a basic block which is considered
  10094. hot. The parameter is used only in GIMPLE FE.
  10095. 'analyzer-bb-explosion-factor'
  10096. The maximum number of 'after supernode' exploded nodes within
  10097. the analyzer per supernode, before terminating analysis.
  10098. The following choices of NAME are available on AArch64 targets:
  10099. 'aarch64-sve-compare-costs'
  10100. When vectorizing for SVE, consider using "unpacked" vectors
  10101. for smaller elements and use the cost model to pick the
  10102. cheapest approach. Also use the cost model to choose between
  10103. SVE and Advanced SIMD vectorization.
  10104. Using unpacked vectors includes storing smaller elements in
  10105. larger containers and accessing elements with extending loads
  10106. and truncating stores.
  10107. 'aarch64-float-recp-precision'
  10108. The number of Newton iterations for calculating the reciprocal
  10109. for float type. The precision of division is proportional to
  10110. this param when division approximation is enabled. The
  10111. default value is 1.
  10112. 'aarch64-double-recp-precision'
  10113. The number of Newton iterations for calculating the reciprocal
  10114. for double type. The precision of division is propotional to
  10115. this param when division approximation is enabled. The
  10116. default value is 2.
  10117. 
  10118. File: gcc.info, Node: Instrumentation Options, Next: Preprocessor Options, Prev: Optimize Options, Up: Invoking GCC
  10119. 3.12 Program Instrumentation Options
  10120. ====================================
  10121. GCC supports a number of command-line options that control adding
  10122. run-time instrumentation to the code it normally generates. For
  10123. example, one purpose of instrumentation is collect profiling statistics
  10124. for use in finding program hot spots, code coverage analysis, or
  10125. profile-guided optimizations. Another class of program instrumentation
  10126. is adding run-time checking to detect programming errors like invalid
  10127. pointer dereferences or out-of-bounds array accesses, as well as
  10128. deliberately hostile attacks such as stack smashing or C++ vtable
  10129. hijacking. There is also a general hook which can be used to implement
  10130. other forms of tracing or function-level instrumentation for debug or
  10131. program analysis purposes.
  10132. '-p'
  10133. '-pg'
  10134. Generate extra code to write profile information suitable for the
  10135. analysis program 'prof' (for '-p') or 'gprof' (for '-pg'). You
  10136. must use this option when compiling the source files you want data
  10137. about, and you must also use it when linking.
  10138. You can use the function attribute 'no_instrument_function' to
  10139. suppress profiling of individual functions when compiling with
  10140. these options. *Note Common Function Attributes::.
  10141. '-fprofile-arcs'
  10142. Add code so that program flow "arcs" are instrumented. During
  10143. execution the program records how many times each branch and call
  10144. is executed and how many times it is taken or returns. On targets
  10145. that support constructors with priority support, profiling properly
  10146. handles constructors, destructors and C++ constructors (and
  10147. destructors) of classes which are used as a type of a global
  10148. variable.
  10149. When the compiled program exits it saves this data to a file called
  10150. 'AUXNAME.gcda' for each source file. The data may be used for
  10151. profile-directed optimizations ('-fbranch-probabilities'), or for
  10152. test coverage analysis ('-ftest-coverage'). Each object file's
  10153. AUXNAME is generated from the name of the output file, if
  10154. explicitly specified and it is not the final executable, otherwise
  10155. it is the basename of the source file. In both cases any suffix is
  10156. removed (e.g. 'foo.gcda' for input file 'dir/foo.c', or
  10157. 'dir/foo.gcda' for output file specified as '-o dir/foo.o'). *Note
  10158. Cross-profiling::.
  10159. '--coverage'
  10160. This option is used to compile and link code instrumented for
  10161. coverage analysis. The option is a synonym for '-fprofile-arcs'
  10162. '-ftest-coverage' (when compiling) and '-lgcov' (when linking).
  10163. See the documentation for those options for more details.
  10164. * Compile the source files with '-fprofile-arcs' plus
  10165. optimization and code generation options. For test coverage
  10166. analysis, use the additional '-ftest-coverage' option. You do
  10167. not need to profile every source file in a program.
  10168. * Compile the source files additionally with
  10169. '-fprofile-abs-path' to create absolute path names in the
  10170. '.gcno' files. This allows 'gcov' to find the correct sources
  10171. in projects where compilations occur with different working
  10172. directories.
  10173. * Link your object files with '-lgcov' or '-fprofile-arcs' (the
  10174. latter implies the former).
  10175. * Run the program on a representative workload to generate the
  10176. arc profile information. This may be repeated any number of
  10177. times. You can run concurrent instances of your program, and
  10178. provided that the file system supports locking, the data files
  10179. will be correctly updated. Unless a strict ISO C dialect
  10180. option is in effect, 'fork' calls are detected and correctly
  10181. handled without double counting.
  10182. * For profile-directed optimizations, compile the source files
  10183. again with the same optimization and code generation options
  10184. plus '-fbranch-probabilities' (*note Options that Control
  10185. Optimization: Optimize Options.).
  10186. * For test coverage analysis, use 'gcov' to produce human
  10187. readable information from the '.gcno' and '.gcda' files.
  10188. Refer to the 'gcov' documentation for further information.
  10189. With '-fprofile-arcs', for each function of your program GCC
  10190. creates a program flow graph, then finds a spanning tree for the
  10191. graph. Only arcs that are not on the spanning tree have to be
  10192. instrumented: the compiler adds code to count the number of times
  10193. that these arcs are executed. When an arc is the only exit or only
  10194. entrance to a block, the instrumentation code can be added to the
  10195. block; otherwise, a new basic block must be created to hold the
  10196. instrumentation code.
  10197. '-ftest-coverage'
  10198. Produce a notes file that the 'gcov' code-coverage utility (*note
  10199. 'gcov'--a Test Coverage Program: Gcov.) can use to show program
  10200. coverage. Each source file's note file is called 'AUXNAME.gcno'.
  10201. Refer to the '-fprofile-arcs' option above for a description of
  10202. AUXNAME and instructions on how to generate test coverage data.
  10203. Coverage data matches the source files more closely if you do not
  10204. optimize.
  10205. '-fprofile-abs-path'
  10206. Automatically convert relative source file names to absolute path
  10207. names in the '.gcno' files. This allows 'gcov' to find the correct
  10208. sources in projects where compilations occur with different working
  10209. directories.
  10210. '-fprofile-dir=PATH'
  10211. Set the directory to search for the profile data files in to PATH.
  10212. This option affects only the profile data generated by
  10213. '-fprofile-generate', '-ftest-coverage', '-fprofile-arcs' and used
  10214. by '-fprofile-use' and '-fbranch-probabilities' and its related
  10215. options. Both absolute and relative paths can be used. By
  10216. default, GCC uses the current directory as PATH, thus the profile
  10217. data file appears in the same directory as the object file. In
  10218. order to prevent the file name clashing, if the object file name is
  10219. not an absolute path, we mangle the absolute path of the
  10220. 'SOURCENAME.gcda' file and use it as the file name of a '.gcda'
  10221. file. See similar option '-fprofile-note'.
  10222. When an executable is run in a massive parallel environment, it is
  10223. recommended to save profile to different folders. That can be done
  10224. with variables in PATH that are exported during run-time:
  10225. '%p'
  10226. process ID.
  10227. '%q{VAR}'
  10228. value of environment variable VAR
  10229. '-fprofile-generate'
  10230. '-fprofile-generate=PATH'
  10231. Enable options usually used for instrumenting application to
  10232. produce profile useful for later recompilation with profile
  10233. feedback based optimization. You must use '-fprofile-generate'
  10234. both when compiling and when linking your program.
  10235. The following options are enabled: '-fprofile-arcs',
  10236. '-fprofile-values', '-finline-functions', and '-fipa-bit-cp'.
  10237. If PATH is specified, GCC looks at the PATH to find the profile
  10238. feedback data files. See '-fprofile-dir'.
  10239. To optimize the program based on the collected profile information,
  10240. use '-fprofile-use'. *Note Optimize Options::, for more
  10241. information.
  10242. '-fprofile-note=PATH'
  10243. If PATH is specified, GCC saves '.gcno' file into PATH location.
  10244. If you combine the option with multiple source files, the '.gcno'
  10245. file will be overwritten.
  10246. '-fprofile-prefix-path=PATH'
  10247. This option can be used in combination with
  10248. 'profile-generate='PROFILE_DIR and 'profile-use='PROFILE_DIR to
  10249. inform GCC where is the base directory of built source tree. By
  10250. default PROFILE_DIR will contain files with mangled absolute paths
  10251. of all object files in the built project. This is not desirable
  10252. when directory used to build the instrumented binary differs from
  10253. the directory used to build the binary optimized with profile
  10254. feedback because the profile data will not be found during the
  10255. optimized build. In such setups '-fprofile-prefix-path='PATH with
  10256. PATH pointing to the base directory of the build can be used to
  10257. strip the irrelevant part of the path and keep all file names
  10258. relative to the main build directory.
  10259. '-fprofile-update=METHOD'
  10260. Alter the update method for an application instrumented for profile
  10261. feedback based optimization. The METHOD argument should be one of
  10262. 'single', 'atomic' or 'prefer-atomic'. The first one is useful for
  10263. single-threaded applications, while the second one prevents profile
  10264. corruption by emitting thread-safe code.
  10265. *Warning:* When an application does not properly join all threads
  10266. (or creates an detached thread), a profile file can be still
  10267. corrupted.
  10268. Using 'prefer-atomic' would be transformed either to 'atomic', when
  10269. supported by a target, or to 'single' otherwise. The GCC driver
  10270. automatically selects 'prefer-atomic' when '-pthread' is present in
  10271. the command line.
  10272. '-fprofile-filter-files=REGEX'
  10273. Instrument only functions from files where names match any regular
  10274. expression (separated by a semi-colon).
  10275. For example, '-fprofile-filter-files=main.c;module.*.c' will
  10276. instrument only 'main.c' and all C files starting with 'module'.
  10277. '-fprofile-exclude-files=REGEX'
  10278. Instrument only functions from files where names do not match all
  10279. the regular expressions (separated by a semi-colon).
  10280. For example, '-fprofile-exclude-files=/usr/*' will prevent
  10281. instrumentation of all files that are located in '/usr/' folder.
  10282. '-fprofile-reproducible=[multithreaded|parallel-runs|serial]'
  10283. Control level of reproducibility of profile gathered by
  10284. '-fprofile-generate'. This makes it possible to rebuild program
  10285. with same outcome which is useful, for example, for distribution
  10286. packages.
  10287. With '-fprofile-reproducible=serial' the profile gathered by
  10288. '-fprofile-generate' is reproducible provided the trained program
  10289. behaves the same at each invocation of the train run, it is not
  10290. multi-threaded and profile data streaming is always done in the
  10291. same order. Note that profile streaming happens at the end of
  10292. program run but also before 'fork' function is invoked.
  10293. Note that it is quite common that execution counts of some part of
  10294. programs depends, for example, on length of temporary file names or
  10295. memory space randomization (that may affect hash-table collision
  10296. rate). Such non-reproducible part of programs may be annotated by
  10297. 'no_instrument_function' function attribute. 'gcov-dump' with '-l'
  10298. can be used to dump gathered data and verify that they are indeed
  10299. reproducible.
  10300. With '-fprofile-reproducible=parallel-runs' collected profile stays
  10301. reproducible regardless the order of streaming of the data into
  10302. gcda files. This setting makes it possible to run multiple
  10303. instances of instrumented program in parallel (such as with 'make
  10304. -j'). This reduces quality of gathered data, in particular of
  10305. indirect call profiling.
  10306. '-fsanitize=address'
  10307. Enable AddressSanitizer, a fast memory error detector. Memory
  10308. access instructions are instrumented to detect out-of-bounds and
  10309. use-after-free bugs. The option enables
  10310. '-fsanitize-address-use-after-scope'. See
  10311. <https://github.com/google/sanitizers/wiki/AddressSanitizer> for
  10312. more details. The run-time behavior can be influenced using the
  10313. 'ASAN_OPTIONS' environment variable. When set to 'help=1', the
  10314. available options are shown at startup of the instrumented program.
  10315. See
  10316. <https://github.com/google/sanitizers/wiki/AddressSanitizerFlags#run-time-flags>
  10317. for a list of supported options. The option cannot be combined
  10318. with '-fsanitize=thread'.
  10319. '-fsanitize=kernel-address'
  10320. Enable AddressSanitizer for Linux kernel. See
  10321. <https://github.com/google/kasan/wiki> for more details.
  10322. '-fsanitize=pointer-compare'
  10323. Instrument comparison operation (<, <=, >, >=) with pointer
  10324. operands. The option must be combined with either
  10325. '-fsanitize=kernel-address' or '-fsanitize=address' The option
  10326. cannot be combined with '-fsanitize=thread'. Note: By default the
  10327. check is disabled at run time. To enable it, add
  10328. 'detect_invalid_pointer_pairs=2' to the environment variable
  10329. 'ASAN_OPTIONS'. Using 'detect_invalid_pointer_pairs=1' detects
  10330. invalid operation only when both pointers are non-null.
  10331. '-fsanitize=pointer-subtract'
  10332. Instrument subtraction with pointer operands. The option must be
  10333. combined with either '-fsanitize=kernel-address' or
  10334. '-fsanitize=address' The option cannot be combined with
  10335. '-fsanitize=thread'. Note: By default the check is disabled at run
  10336. time. To enable it, add 'detect_invalid_pointer_pairs=2' to the
  10337. environment variable 'ASAN_OPTIONS'. Using
  10338. 'detect_invalid_pointer_pairs=1' detects invalid operation only
  10339. when both pointers are non-null.
  10340. '-fsanitize=thread'
  10341. Enable ThreadSanitizer, a fast data race detector. Memory access
  10342. instructions are instrumented to detect data race bugs. See
  10343. <https://github.com/google/sanitizers/wiki#threadsanitizer> for
  10344. more details. The run-time behavior can be influenced using the
  10345. 'TSAN_OPTIONS' environment variable; see
  10346. <https://github.com/google/sanitizers/wiki/ThreadSanitizerFlags>
  10347. for a list of supported options. The option cannot be combined
  10348. with '-fsanitize=address', '-fsanitize=leak'.
  10349. Note that sanitized atomic builtins cannot throw exceptions when
  10350. operating on invalid memory addresses with non-call exceptions
  10351. ('-fnon-call-exceptions').
  10352. '-fsanitize=leak'
  10353. Enable LeakSanitizer, a memory leak detector. This option only
  10354. matters for linking of executables and the executable is linked
  10355. against a library that overrides 'malloc' and other allocator
  10356. functions. See
  10357. <https://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer>
  10358. for more details. The run-time behavior can be influenced using
  10359. the 'LSAN_OPTIONS' environment variable. The option cannot be
  10360. combined with '-fsanitize=thread'.
  10361. '-fsanitize=undefined'
  10362. Enable UndefinedBehaviorSanitizer, a fast undefined behavior
  10363. detector. Various computations are instrumented to detect
  10364. undefined behavior at runtime. Current suboptions are:
  10365. '-fsanitize=shift'
  10366. This option enables checking that the result of a shift
  10367. operation is not undefined. Note that what exactly is
  10368. considered undefined differs slightly between C and C++, as
  10369. well as between ISO C90 and C99, etc. This option has two
  10370. suboptions, '-fsanitize=shift-base' and
  10371. '-fsanitize=shift-exponent'.
  10372. '-fsanitize=shift-exponent'
  10373. This option enables checking that the second argument of a
  10374. shift operation is not negative and is smaller than the
  10375. precision of the promoted first argument.
  10376. '-fsanitize=shift-base'
  10377. If the second argument of a shift operation is within range,
  10378. check that the result of a shift operation is not undefined.
  10379. Note that what exactly is considered undefined differs
  10380. slightly between C and C++, as well as between ISO C90 and
  10381. C99, etc.
  10382. '-fsanitize=integer-divide-by-zero'
  10383. Detect integer division by zero as well as 'INT_MIN / -1'
  10384. division.
  10385. '-fsanitize=unreachable'
  10386. With this option, the compiler turns the
  10387. '__builtin_unreachable' call into a diagnostics message call
  10388. instead. When reaching the '__builtin_unreachable' call, the
  10389. behavior is undefined.
  10390. '-fsanitize=vla-bound'
  10391. This option instructs the compiler to check that the size of a
  10392. variable length array is positive.
  10393. '-fsanitize=null'
  10394. This option enables pointer checking. Particularly, the
  10395. application built with this option turned on will issue an
  10396. error message when it tries to dereference a NULL pointer, or
  10397. if a reference (possibly an rvalue reference) is bound to a
  10398. NULL pointer, or if a method is invoked on an object pointed
  10399. by a NULL pointer.
  10400. '-fsanitize=return'
  10401. This option enables return statement checking. Programs built
  10402. with this option turned on will issue an error message when
  10403. the end of a non-void function is reached without actually
  10404. returning a value. This option works in C++ only.
  10405. '-fsanitize=signed-integer-overflow'
  10406. This option enables signed integer overflow checking. We
  10407. check that the result of '+', '*', and both unary and binary
  10408. '-' does not overflow in the signed arithmetics. Note,
  10409. integer promotion rules must be taken into account. That is,
  10410. the following is not an overflow:
  10411. signed char a = SCHAR_MAX;
  10412. a++;
  10413. '-fsanitize=bounds'
  10414. This option enables instrumentation of array bounds. Various
  10415. out of bounds accesses are detected. Flexible array members,
  10416. flexible array member-like arrays, and initializers of
  10417. variables with static storage are not instrumented.
  10418. '-fsanitize=bounds-strict'
  10419. This option enables strict instrumentation of array bounds.
  10420. Most out of bounds accesses are detected, including flexible
  10421. array members and flexible array member-like arrays.
  10422. Initializers of variables with static storage are not
  10423. instrumented.
  10424. '-fsanitize=alignment'
  10425. This option enables checking of alignment of pointers when
  10426. they are dereferenced, or when a reference is bound to
  10427. insufficiently aligned target, or when a method or constructor
  10428. is invoked on insufficiently aligned object.
  10429. '-fsanitize=object-size'
  10430. This option enables instrumentation of memory references using
  10431. the '__builtin_object_size' function. Various out of bounds
  10432. pointer accesses are detected.
  10433. '-fsanitize=float-divide-by-zero'
  10434. Detect floating-point division by zero. Unlike other similar
  10435. options, '-fsanitize=float-divide-by-zero' is not enabled by
  10436. '-fsanitize=undefined', since floating-point division by zero
  10437. can be a legitimate way of obtaining infinities and NaNs.
  10438. '-fsanitize=float-cast-overflow'
  10439. This option enables floating-point type to integer conversion
  10440. checking. We check that the result of the conversion does not
  10441. overflow. Unlike other similar options,
  10442. '-fsanitize=float-cast-overflow' is not enabled by
  10443. '-fsanitize=undefined'. This option does not work well with
  10444. 'FE_INVALID' exceptions enabled.
  10445. '-fsanitize=nonnull-attribute'
  10446. This option enables instrumentation of calls, checking whether
  10447. null values are not passed to arguments marked as requiring a
  10448. non-null value by the 'nonnull' function attribute.
  10449. '-fsanitize=returns-nonnull-attribute'
  10450. This option enables instrumentation of return statements in
  10451. functions marked with 'returns_nonnull' function attribute, to
  10452. detect returning of null values from such functions.
  10453. '-fsanitize=bool'
  10454. This option enables instrumentation of loads from bool. If a
  10455. value other than 0/1 is loaded, a run-time error is issued.
  10456. '-fsanitize=enum'
  10457. This option enables instrumentation of loads from an enum
  10458. type. If a value outside the range of values for the enum
  10459. type is loaded, a run-time error is issued.
  10460. '-fsanitize=vptr'
  10461. This option enables instrumentation of C++ member function
  10462. calls, member accesses and some conversions between pointers
  10463. to base and derived classes, to verify the referenced object
  10464. has the correct dynamic type.
  10465. '-fsanitize=pointer-overflow'
  10466. This option enables instrumentation of pointer arithmetics.
  10467. If the pointer arithmetics overflows, a run-time error is
  10468. issued.
  10469. '-fsanitize=builtin'
  10470. This option enables instrumentation of arguments to selected
  10471. builtin functions. If an invalid value is passed to such
  10472. arguments, a run-time error is issued. E.g. passing 0 as the
  10473. argument to '__builtin_ctz' or '__builtin_clz' invokes
  10474. undefined behavior and is diagnosed by this option.
  10475. While '-ftrapv' causes traps for signed overflows to be emitted,
  10476. '-fsanitize=undefined' gives a diagnostic message. This currently
  10477. works only for the C family of languages.
  10478. '-fno-sanitize=all'
  10479. This option disables all previously enabled sanitizers.
  10480. '-fsanitize=all' is not allowed, as some sanitizers cannot be used
  10481. together.
  10482. '-fasan-shadow-offset=NUMBER'
  10483. This option forces GCC to use custom shadow offset in
  10484. AddressSanitizer checks. It is useful for experimenting with
  10485. different shadow memory layouts in Kernel AddressSanitizer.
  10486. '-fsanitize-sections=S1,S2,...'
  10487. Sanitize global variables in selected user-defined sections. SI
  10488. may contain wildcards.
  10489. '-fsanitize-recover[=OPTS]'
  10490. '-fsanitize-recover=' controls error recovery mode for sanitizers
  10491. mentioned in comma-separated list of OPTS. Enabling this option
  10492. for a sanitizer component causes it to attempt to continue running
  10493. the program as if no error happened. This means multiple runtime
  10494. errors can be reported in a single program run, and the exit code
  10495. of the program may indicate success even when errors have been
  10496. reported. The '-fno-sanitize-recover=' option can be used to alter
  10497. this behavior: only the first detected error is reported and
  10498. program then exits with a non-zero exit code.
  10499. Currently this feature only works for '-fsanitize=undefined' (and
  10500. its suboptions except for '-fsanitize=unreachable' and
  10501. '-fsanitize=return'), '-fsanitize=float-cast-overflow',
  10502. '-fsanitize=float-divide-by-zero', '-fsanitize=bounds-strict',
  10503. '-fsanitize=kernel-address' and '-fsanitize=address'. For these
  10504. sanitizers error recovery is turned on by default, except
  10505. '-fsanitize=address', for which this feature is experimental.
  10506. '-fsanitize-recover=all' and '-fno-sanitize-recover=all' is also
  10507. accepted, the former enables recovery for all sanitizers that
  10508. support it, the latter disables recovery for all sanitizers that
  10509. support it.
  10510. Even if a recovery mode is turned on the compiler side, it needs to
  10511. be also enabled on the runtime library side, otherwise the failures
  10512. are still fatal. The runtime library defaults to 'halt_on_error=0'
  10513. for ThreadSanitizer and UndefinedBehaviorSanitizer, while default
  10514. value for AddressSanitizer is 'halt_on_error=1'. This can be
  10515. overridden through setting the 'halt_on_error' flag in the
  10516. corresponding environment variable.
  10517. Syntax without an explicit OPTS parameter is deprecated. It is
  10518. equivalent to specifying an OPTS list of:
  10519. undefined,float-cast-overflow,float-divide-by-zero,bounds-strict
  10520. '-fsanitize-address-use-after-scope'
  10521. Enable sanitization of local variables to detect use-after-scope
  10522. bugs. The option sets '-fstack-reuse' to 'none'.
  10523. '-fsanitize-undefined-trap-on-error'
  10524. The '-fsanitize-undefined-trap-on-error' option instructs the
  10525. compiler to report undefined behavior using '__builtin_trap' rather
  10526. than a 'libubsan' library routine. The advantage of this is that
  10527. the 'libubsan' library is not needed and is not linked in, so this
  10528. is usable even in freestanding environments.
  10529. '-fsanitize-coverage=trace-pc'
  10530. Enable coverage-guided fuzzing code instrumentation. Inserts a
  10531. call to '__sanitizer_cov_trace_pc' into every basic block.
  10532. '-fsanitize-coverage=trace-cmp'
  10533. Enable dataflow guided fuzzing code instrumentation. Inserts a
  10534. call to '__sanitizer_cov_trace_cmp1', '__sanitizer_cov_trace_cmp2',
  10535. '__sanitizer_cov_trace_cmp4' or '__sanitizer_cov_trace_cmp8' for
  10536. integral comparison with both operands variable or
  10537. '__sanitizer_cov_trace_const_cmp1',
  10538. '__sanitizer_cov_trace_const_cmp2',
  10539. '__sanitizer_cov_trace_const_cmp4' or
  10540. '__sanitizer_cov_trace_const_cmp8' for integral comparison with one
  10541. operand constant, '__sanitizer_cov_trace_cmpf' or
  10542. '__sanitizer_cov_trace_cmpd' for float or double comparisons and
  10543. '__sanitizer_cov_trace_switch' for switch statements.
  10544. '-fcf-protection=[full|branch|return|none|check]'
  10545. Enable code instrumentation of control-flow transfers to increase
  10546. program security by checking that target addresses of control-flow
  10547. transfer instructions (such as indirect function call, function
  10548. return, indirect jump) are valid. This prevents diverting the flow
  10549. of control to an unexpected target. This is intended to protect
  10550. against such threats as Return-oriented Programming (ROP), and
  10551. similarly call/jmp-oriented programming (COP/JOP).
  10552. The value 'branch' tells the compiler to implement checking of
  10553. validity of control-flow transfer at the point of indirect branch
  10554. instructions, i.e. call/jmp instructions. The value 'return'
  10555. implements checking of validity at the point of returning from a
  10556. function. The value 'full' is an alias for specifying both
  10557. 'branch' and 'return'. The value 'none' turns off instrumentation.
  10558. The value 'check' is used for the final link with link-time
  10559. optimization (LTO). An error is issued if LTO object files are
  10560. compiled with different '-fcf-protection' values. The value
  10561. 'check' is ignored at the compile time.
  10562. The macro '__CET__' is defined when '-fcf-protection' is used. The
  10563. first bit of '__CET__' is set to 1 for the value 'branch' and the
  10564. second bit of '__CET__' is set to 1 for the 'return'.
  10565. You can also use the 'nocf_check' attribute to identify which
  10566. functions and calls should be skipped from instrumentation (*note
  10567. Function Attributes::).
  10568. Currently the x86 GNU/Linux target provides an implementation based
  10569. on Intel Control-flow Enforcement Technology (CET).
  10570. '-fstack-protector'
  10571. Emit extra code to check for buffer overflows, such as stack
  10572. smashing attacks. This is done by adding a guard variable to
  10573. functions with vulnerable objects. This includes functions that
  10574. call 'alloca', and functions with buffers larger than or equal to 8
  10575. bytes. The guards are initialized when a function is entered and
  10576. then checked when the function exits. If a guard check fails, an
  10577. error message is printed and the program exits. Only variables
  10578. that are actually allocated on the stack are considered, optimized
  10579. away variables or variables allocated in registers don't count.
  10580. '-fstack-protector-all'
  10581. Like '-fstack-protector' except that all functions are protected.
  10582. '-fstack-protector-strong'
  10583. Like '-fstack-protector' but includes additional functions to be
  10584. protected -- those that have local array definitions, or have
  10585. references to local frame addresses. Only variables that are
  10586. actually allocated on the stack are considered, optimized away
  10587. variables or variables allocated in registers don't count.
  10588. '-fstack-protector-explicit'
  10589. Like '-fstack-protector' but only protects those functions which
  10590. have the 'stack_protect' attribute.
  10591. '-fstack-check'
  10592. Generate code to verify that you do not go beyond the boundary of
  10593. the stack. You should specify this flag if you are running in an
  10594. environment with multiple threads, but you only rarely need to
  10595. specify it in a single-threaded environment since stack overflow is
  10596. automatically detected on nearly all systems if there is only one
  10597. stack.
  10598. Note that this switch does not actually cause checking to be done;
  10599. the operating system or the language runtime must do that. The
  10600. switch causes generation of code to ensure that they see the stack
  10601. being extended.
  10602. You can additionally specify a string parameter: 'no' means no
  10603. checking, 'generic' means force the use of old-style checking,
  10604. 'specific' means use the best checking method and is equivalent to
  10605. bare '-fstack-check'.
  10606. Old-style checking is a generic mechanism that requires no specific
  10607. target support in the compiler but comes with the following
  10608. drawbacks:
  10609. 1. Modified allocation strategy for large objects: they are
  10610. always allocated dynamically if their size exceeds a fixed
  10611. threshold. Note this may change the semantics of some code.
  10612. 2. Fixed limit on the size of the static frame of functions: when
  10613. it is topped by a particular function, stack checking is not
  10614. reliable and a warning is issued by the compiler.
  10615. 3. Inefficiency: because of both the modified allocation strategy
  10616. and the generic implementation, code performance is hampered.
  10617. Note that old-style stack checking is also the fallback method for
  10618. 'specific' if no target support has been added in the compiler.
  10619. '-fstack-check=' is designed for Ada's needs to detect infinite
  10620. recursion and stack overflows. 'specific' is an excellent choice
  10621. when compiling Ada code. It is not generally sufficient to protect
  10622. against stack-clash attacks. To protect against those you want
  10623. '-fstack-clash-protection'.
  10624. '-fstack-clash-protection'
  10625. Generate code to prevent stack clash style attacks. When this
  10626. option is enabled, the compiler will only allocate one page of
  10627. stack space at a time and each page is accessed immediately after
  10628. allocation. Thus, it prevents allocations from jumping over any
  10629. stack guard page provided by the operating system.
  10630. Most targets do not fully support stack clash protection. However,
  10631. on those targets '-fstack-clash-protection' will protect dynamic
  10632. stack allocations. '-fstack-clash-protection' may also provide
  10633. limited protection for static stack allocations if the target
  10634. supports '-fstack-check=specific'.
  10635. '-fstack-limit-register=REG'
  10636. '-fstack-limit-symbol=SYM'
  10637. '-fno-stack-limit'
  10638. Generate code to ensure that the stack does not grow beyond a
  10639. certain value, either the value of a register or the address of a
  10640. symbol. If a larger stack is required, a signal is raised at run
  10641. time. For most targets, the signal is raised before the stack
  10642. overruns the boundary, so it is possible to catch the signal
  10643. without taking special precautions.
  10644. For instance, if the stack starts at absolute address '0x80000000'
  10645. and grows downwards, you can use the flags
  10646. '-fstack-limit-symbol=__stack_limit' and
  10647. '-Wl,--defsym,__stack_limit=0x7ffe0000' to enforce a stack limit of
  10648. 128KB. Note that this may only work with the GNU linker.
  10649. You can locally override stack limit checking by using the
  10650. 'no_stack_limit' function attribute (*note Function Attributes::).
  10651. '-fsplit-stack'
  10652. Generate code to automatically split the stack before it overflows.
  10653. The resulting program has a discontiguous stack which can only
  10654. overflow if the program is unable to allocate any more memory.
  10655. This is most useful when running threaded programs, as it is no
  10656. longer necessary to calculate a good stack size to use for each
  10657. thread. This is currently only implemented for the x86 targets
  10658. running GNU/Linux.
  10659. When code compiled with '-fsplit-stack' calls code compiled without
  10660. '-fsplit-stack', there may not be much stack space available for
  10661. the latter code to run. If compiling all code, including library
  10662. code, with '-fsplit-stack' is not an option, then the linker can
  10663. fix up these calls so that the code compiled without
  10664. '-fsplit-stack' always has a large stack. Support for this is
  10665. implemented in the gold linker in GNU binutils release 2.21 and
  10666. later.
  10667. '-fvtable-verify=[std|preinit|none]'
  10668. This option is only available when compiling C++ code. It turns on
  10669. (or off, if using '-fvtable-verify=none') the security feature that
  10670. verifies at run time, for every virtual call, that the vtable
  10671. pointer through which the call is made is valid for the type of the
  10672. object, and has not been corrupted or overwritten. If an invalid
  10673. vtable pointer is detected at run time, an error is reported and
  10674. execution of the program is immediately halted.
  10675. This option causes run-time data structures to be built at program
  10676. startup, which are used for verifying the vtable pointers. The
  10677. options 'std' and 'preinit' control the timing of when these data
  10678. structures are built. In both cases the data structures are built
  10679. before execution reaches 'main'. Using '-fvtable-verify=std'
  10680. causes the data structures to be built after shared libraries have
  10681. been loaded and initialized. '-fvtable-verify=preinit' causes them
  10682. to be built before shared libraries have been loaded and
  10683. initialized.
  10684. If this option appears multiple times in the command line with
  10685. different values specified, 'none' takes highest priority over both
  10686. 'std' and 'preinit'; 'preinit' takes priority over 'std'.
  10687. '-fvtv-debug'
  10688. When used in conjunction with '-fvtable-verify=std' or
  10689. '-fvtable-verify=preinit', causes debug versions of the runtime
  10690. functions for the vtable verification feature to be called. This
  10691. flag also causes the compiler to log information about which vtable
  10692. pointers it finds for each class. This information is written to a
  10693. file named 'vtv_set_ptr_data.log' in the directory named by the
  10694. environment variable 'VTV_LOGS_DIR' if that is defined or the
  10695. current working directory otherwise.
  10696. Note: This feature _appends_ data to the log file. If you want a
  10697. fresh log file, be sure to delete any existing one.
  10698. '-fvtv-counts'
  10699. This is a debugging flag. When used in conjunction with
  10700. '-fvtable-verify=std' or '-fvtable-verify=preinit', this causes the
  10701. compiler to keep track of the total number of virtual calls it
  10702. encounters and the number of verifications it inserts. It also
  10703. counts the number of calls to certain run-time library functions
  10704. that it inserts and logs this information for each compilation
  10705. unit. The compiler writes this information to a file named
  10706. 'vtv_count_data.log' in the directory named by the environment
  10707. variable 'VTV_LOGS_DIR' if that is defined or the current working
  10708. directory otherwise. It also counts the size of the vtable pointer
  10709. sets for each class, and writes this information to
  10710. 'vtv_class_set_sizes.log' in the same directory.
  10711. Note: This feature _appends_ data to the log files. To get fresh
  10712. log files, be sure to delete any existing ones.
  10713. '-finstrument-functions'
  10714. Generate instrumentation calls for entry and exit to functions.
  10715. Just after function entry and just before function exit, the
  10716. following profiling functions are called with the address of the
  10717. current function and its call site. (On some platforms,
  10718. '__builtin_return_address' does not work beyond the current
  10719. function, so the call site information may not be available to the
  10720. profiling functions otherwise.)
  10721. void __cyg_profile_func_enter (void *this_fn,
  10722. void *call_site);
  10723. void __cyg_profile_func_exit (void *this_fn,
  10724. void *call_site);
  10725. The first argument is the address of the start of the current
  10726. function, which may be looked up exactly in the symbol table.
  10727. This instrumentation is also done for functions expanded inline in
  10728. other functions. The profiling calls indicate where, conceptually,
  10729. the inline function is entered and exited. This means that
  10730. addressable versions of such functions must be available. If all
  10731. your uses of a function are expanded inline, this may mean an
  10732. additional expansion of code size. If you use 'extern inline' in
  10733. your C code, an addressable version of such functions must be
  10734. provided. (This is normally the case anyway, but if you get lucky
  10735. and the optimizer always expands the functions inline, you might
  10736. have gotten away without providing static copies.)
  10737. A function may be given the attribute 'no_instrument_function', in
  10738. which case this instrumentation is not done. This can be used, for
  10739. example, for the profiling functions listed above, high-priority
  10740. interrupt routines, and any functions from which the profiling
  10741. functions cannot safely be called (perhaps signal handlers, if the
  10742. profiling routines generate output or allocate memory). *Note
  10743. Common Function Attributes::.
  10744. '-finstrument-functions-exclude-file-list=FILE,FILE,...'
  10745. Set the list of functions that are excluded from instrumentation
  10746. (see the description of '-finstrument-functions'). If the file
  10747. that contains a function definition matches with one of FILE, then
  10748. that function is not instrumented. The match is done on
  10749. substrings: if the FILE parameter is a substring of the file name,
  10750. it is considered to be a match.
  10751. For example:
  10752. -finstrument-functions-exclude-file-list=/bits/stl,include/sys
  10753. excludes any inline function defined in files whose pathnames
  10754. contain '/bits/stl' or 'include/sys'.
  10755. If, for some reason, you want to include letter ',' in one of SYM,
  10756. write '\,'. For example,
  10757. '-finstrument-functions-exclude-file-list='\,\,tmp'' (note the
  10758. single quote surrounding the option).
  10759. '-finstrument-functions-exclude-function-list=SYM,SYM,...'
  10760. This is similar to '-finstrument-functions-exclude-file-list', but
  10761. this option sets the list of function names to be excluded from
  10762. instrumentation. The function name to be matched is its
  10763. user-visible name, such as 'vector<int> blah(const vector<int> &)',
  10764. not the internal mangled name (e.g., '_Z4blahRSt6vectorIiSaIiEE').
  10765. The match is done on substrings: if the SYM parameter is a
  10766. substring of the function name, it is considered to be a match.
  10767. For C99 and C++ extended identifiers, the function name must be
  10768. given in UTF-8, not using universal character names.
  10769. '-fpatchable-function-entry=N[,M]'
  10770. Generate N NOPs right at the beginning of each function, with the
  10771. function entry point before the Mth NOP. If M is omitted, it
  10772. defaults to '0' so the function entry points to the address just at
  10773. the first NOP. The NOP instructions reserve extra space which can
  10774. be used to patch in any desired instrumentation at run time,
  10775. provided that the code segment is writable. The amount of space is
  10776. controllable indirectly via the number of NOPs; the NOP instruction
  10777. used corresponds to the instruction emitted by the internal GCC
  10778. back-end interface 'gen_nop'. This behavior is target-specific and
  10779. may also depend on the architecture variant and/or other
  10780. compilation options.
  10781. For run-time identification, the starting addresses of these areas,
  10782. which correspond to their respective function entries minus M, are
  10783. additionally collected in the '__patchable_function_entries'
  10784. section of the resulting binary.
  10785. Note that the value of '__attribute__ ((patchable_function_entry
  10786. (N,M)))' takes precedence over command-line option
  10787. '-fpatchable-function-entry=N,M'. This can be used to increase the
  10788. area size or to remove it completely on a single function. If
  10789. 'N=0', no pad location is recorded.
  10790. The NOP instructions are inserted at--and maybe before, depending
  10791. on M--the function entry address, even before the prologue.
  10792. 
  10793. File: gcc.info, Node: Preprocessor Options, Next: Assembler Options, Prev: Instrumentation Options, Up: Invoking GCC
  10794. 3.13 Options Controlling the Preprocessor
  10795. =========================================
  10796. These options control the C preprocessor, which is run on each C source
  10797. file before actual compilation.
  10798. If you use the '-E' option, nothing is done except preprocessing. Some
  10799. of these options make sense only together with '-E' because they cause
  10800. the preprocessor output to be unsuitable for actual compilation.
  10801. In addition to the options listed here, there are a number of options
  10802. to control search paths for include files documented in *note Directory
  10803. Options::. Options to control preprocessor diagnostics are listed in
  10804. *note Warning Options::.
  10805. '-D NAME'
  10806. Predefine NAME as a macro, with definition '1'.
  10807. '-D NAME=DEFINITION'
  10808. The contents of DEFINITION are tokenized and processed as if they
  10809. appeared during translation phase three in a '#define' directive.
  10810. In particular, the definition is truncated by embedded newline
  10811. characters.
  10812. If you are invoking the preprocessor from a shell or shell-like
  10813. program you may need to use the shell's quoting syntax to protect
  10814. characters such as spaces that have a meaning in the shell syntax.
  10815. If you wish to define a function-like macro on the command line,
  10816. write its argument list with surrounding parentheses before the
  10817. equals sign (if any). Parentheses are meaningful to most shells,
  10818. so you should quote the option. With 'sh' and 'csh',
  10819. '-D'NAME(ARGS...)=DEFINITION'' works.
  10820. '-D' and '-U' options are processed in the order they are given on
  10821. the command line. All '-imacros FILE' and '-include FILE' options
  10822. are processed after all '-D' and '-U' options.
  10823. '-U NAME'
  10824. Cancel any previous definition of NAME, either built in or provided
  10825. with a '-D' option.
  10826. '-include FILE'
  10827. Process FILE as if '#include "file"' appeared as the first line of
  10828. the primary source file. However, the first directory searched for
  10829. FILE is the preprocessor's working directory _instead of_ the
  10830. directory containing the main source file. If not found there, it
  10831. is searched for in the remainder of the '#include "..."' search
  10832. chain as normal.
  10833. If multiple '-include' options are given, the files are included in
  10834. the order they appear on the command line.
  10835. '-imacros FILE'
  10836. Exactly like '-include', except that any output produced by
  10837. scanning FILE is thrown away. Macros it defines remain defined.
  10838. This allows you to acquire all the macros from a header without
  10839. also processing its declarations.
  10840. All files specified by '-imacros' are processed before all files
  10841. specified by '-include'.
  10842. '-undef'
  10843. Do not predefine any system-specific or GCC-specific macros. The
  10844. standard predefined macros remain defined.
  10845. '-pthread'
  10846. Define additional macros required for using the POSIX threads
  10847. library. You should use this option consistently for both
  10848. compilation and linking. This option is supported on GNU/Linux
  10849. targets, most other Unix derivatives, and also on x86 Cygwin and
  10850. MinGW targets.
  10851. '-M'
  10852. Instead of outputting the result of preprocessing, output a rule
  10853. suitable for 'make' describing the dependencies of the main source
  10854. file. The preprocessor outputs one 'make' rule containing the
  10855. object file name for that source file, a colon, and the names of
  10856. all the included files, including those coming from '-include' or
  10857. '-imacros' command-line options.
  10858. Unless specified explicitly (with '-MT' or '-MQ'), the object file
  10859. name consists of the name of the source file with any suffix
  10860. replaced with object file suffix and with any leading directory
  10861. parts removed. If there are many included files then the rule is
  10862. split into several lines using '\'-newline. The rule has no
  10863. commands.
  10864. This option does not suppress the preprocessor's debug output, such
  10865. as '-dM'. To avoid mixing such debug output with the dependency
  10866. rules you should explicitly specify the dependency output file with
  10867. '-MF', or use an environment variable like 'DEPENDENCIES_OUTPUT'
  10868. (*note Environment Variables::). Debug output is still sent to the
  10869. regular output stream as normal.
  10870. Passing '-M' to the driver implies '-E', and suppresses warnings
  10871. with an implicit '-w'.
  10872. '-MM'
  10873. Like '-M' but do not mention header files that are found in system
  10874. header directories, nor header files that are included, directly or
  10875. indirectly, from such a header.
  10876. This implies that the choice of angle brackets or double quotes in
  10877. an '#include' directive does not in itself determine whether that
  10878. header appears in '-MM' dependency output.
  10879. '-MF FILE'
  10880. When used with '-M' or '-MM', specifies a file to write the
  10881. dependencies to. If no '-MF' switch is given the preprocessor
  10882. sends the rules to the same place it would send preprocessed
  10883. output.
  10884. When used with the driver options '-MD' or '-MMD', '-MF' overrides
  10885. the default dependency output file.
  10886. If FILE is '-', then the dependencies are written to 'stdout'.
  10887. '-MG'
  10888. In conjunction with an option such as '-M' requesting dependency
  10889. generation, '-MG' assumes missing header files are generated files
  10890. and adds them to the dependency list without raising an error. The
  10891. dependency filename is taken directly from the '#include' directive
  10892. without prepending any path. '-MG' also suppresses preprocessed
  10893. output, as a missing header file renders this useless.
  10894. This feature is used in automatic updating of makefiles.
  10895. '-MP'
  10896. This option instructs CPP to add a phony target for each dependency
  10897. other than the main file, causing each to depend on nothing. These
  10898. dummy rules work around errors 'make' gives if you remove header
  10899. files without updating the 'Makefile' to match.
  10900. This is typical output:
  10901. test.o: test.c test.h
  10902. test.h:
  10903. '-MT TARGET'
  10904. Change the target of the rule emitted by dependency generation. By
  10905. default CPP takes the name of the main input file, deletes any
  10906. directory components and any file suffix such as '.c', and appends
  10907. the platform's usual object suffix. The result is the target.
  10908. An '-MT' option sets the target to be exactly the string you
  10909. specify. If you want multiple targets, you can specify them as a
  10910. single argument to '-MT', or use multiple '-MT' options.
  10911. For example, '-MT '$(objpfx)foo.o'' might give
  10912. $(objpfx)foo.o: foo.c
  10913. '-MQ TARGET'
  10914. Same as '-MT', but it quotes any characters which are special to
  10915. Make. '-MQ '$(objpfx)foo.o'' gives
  10916. $$(objpfx)foo.o: foo.c
  10917. The default target is automatically quoted, as if it were given
  10918. with '-MQ'.
  10919. '-MD'
  10920. '-MD' is equivalent to '-M -MF FILE', except that '-E' is not
  10921. implied. The driver determines FILE based on whether an '-o'
  10922. option is given. If it is, the driver uses its argument but with a
  10923. suffix of '.d', otherwise it takes the name of the input file,
  10924. removes any directory components and suffix, and applies a '.d'
  10925. suffix.
  10926. If '-MD' is used in conjunction with '-E', any '-o' switch is
  10927. understood to specify the dependency output file (*note -MF:
  10928. dashMF.), but if used without '-E', each '-o' is understood to
  10929. specify a target object file.
  10930. Since '-E' is not implied, '-MD' can be used to generate a
  10931. dependency output file as a side effect of the compilation process.
  10932. '-MMD'
  10933. Like '-MD' except mention only user header files, not system header
  10934. files.
  10935. '-fpreprocessed'
  10936. Indicate to the preprocessor that the input file has already been
  10937. preprocessed. This suppresses things like macro expansion,
  10938. trigraph conversion, escaped newline splicing, and processing of
  10939. most directives. The preprocessor still recognizes and removes
  10940. comments, so that you can pass a file preprocessed with '-C' to the
  10941. compiler without problems. In this mode the integrated
  10942. preprocessor is little more than a tokenizer for the front ends.
  10943. '-fpreprocessed' is implicit if the input file has one of the
  10944. extensions '.i', '.ii' or '.mi'. These are the extensions that GCC
  10945. uses for preprocessed files created by '-save-temps'.
  10946. '-fdirectives-only'
  10947. When preprocessing, handle directives, but do not expand macros.
  10948. The option's behavior depends on the '-E' and '-fpreprocessed'
  10949. options.
  10950. With '-E', preprocessing is limited to the handling of directives
  10951. such as '#define', '#ifdef', and '#error'. Other preprocessor
  10952. operations, such as macro expansion and trigraph conversion are not
  10953. performed. In addition, the '-dD' option is implicitly enabled.
  10954. With '-fpreprocessed', predefinition of command line and most
  10955. builtin macros is disabled. Macros such as '__LINE__', which are
  10956. contextually dependent, are handled normally. This enables
  10957. compilation of files previously preprocessed with '-E
  10958. -fdirectives-only'.
  10959. With both '-E' and '-fpreprocessed', the rules for '-fpreprocessed'
  10960. take precedence. This enables full preprocessing of files
  10961. previously preprocessed with '-E -fdirectives-only'.
  10962. '-fdollars-in-identifiers'
  10963. Accept '$' in identifiers.
  10964. '-fextended-identifiers'
  10965. Accept universal character names and extended characters in
  10966. identifiers. This option is enabled by default for C99 (and later
  10967. C standard versions) and C++.
  10968. '-fno-canonical-system-headers'
  10969. When preprocessing, do not shorten system header paths with
  10970. canonicalization.
  10971. '-fmax-include-depth=DEPTH'
  10972. Set the maximum depth of the nested #include. The default is 200.
  10973. '-ftabstop=WIDTH'
  10974. Set the distance between tab stops. This helps the preprocessor
  10975. report correct column numbers in warnings or errors, even if tabs
  10976. appear on the line. If the value is less than 1 or greater than
  10977. 100, the option is ignored. The default is 8.
  10978. '-ftrack-macro-expansion[=LEVEL]'
  10979. Track locations of tokens across macro expansions. This allows the
  10980. compiler to emit diagnostic about the current macro expansion stack
  10981. when a compilation error occurs in a macro expansion. Using this
  10982. option makes the preprocessor and the compiler consume more memory.
  10983. The LEVEL parameter can be used to choose the level of precision of
  10984. token location tracking thus decreasing the memory consumption if
  10985. necessary. Value '0' of LEVEL de-activates this option. Value '1'
  10986. tracks tokens locations in a degraded mode for the sake of minimal
  10987. memory overhead. In this mode all tokens resulting from the
  10988. expansion of an argument of a function-like macro have the same
  10989. location. Value '2' tracks tokens locations completely. This
  10990. value is the most memory hungry. When this option is given no
  10991. argument, the default parameter value is '2'.
  10992. Note that '-ftrack-macro-expansion=2' is activated by default.
  10993. '-fmacro-prefix-map=OLD=NEW'
  10994. When preprocessing files residing in directory 'OLD', expand the
  10995. '__FILE__' and '__BASE_FILE__' macros as if the files resided in
  10996. directory 'NEW' instead. This can be used to change an absolute
  10997. path to a relative path by using '.' for NEW which can result in
  10998. more reproducible builds that are location independent. This
  10999. option also affects '__builtin_FILE()' during compilation. See
  11000. also '-ffile-prefix-map'.
  11001. '-fexec-charset=CHARSET'
  11002. Set the execution character set, used for string and character
  11003. constants. The default is UTF-8. CHARSET can be any encoding
  11004. supported by the system's 'iconv' library routine.
  11005. '-fwide-exec-charset=CHARSET'
  11006. Set the wide execution character set, used for wide string and
  11007. character constants. The default is UTF-32 or UTF-16, whichever
  11008. corresponds to the width of 'wchar_t'. As with '-fexec-charset',
  11009. CHARSET can be any encoding supported by the system's 'iconv'
  11010. library routine; however, you will have problems with encodings
  11011. that do not fit exactly in 'wchar_t'.
  11012. '-finput-charset=CHARSET'
  11013. Set the input character set, used for translation from the
  11014. character set of the input file to the source character set used by
  11015. GCC. If the locale does not specify, or GCC cannot get this
  11016. information from the locale, the default is UTF-8. This can be
  11017. overridden by either the locale or this command-line option.
  11018. Currently the command-line option takes precedence if there's a
  11019. conflict. CHARSET can be any encoding supported by the system's
  11020. 'iconv' library routine.
  11021. '-fpch-deps'
  11022. When using precompiled headers (*note Precompiled Headers::), this
  11023. flag causes the dependency-output flags to also list the files from
  11024. the precompiled header's dependencies. If not specified, only the
  11025. precompiled header are listed and not the files that were used to
  11026. create it, because those files are not consulted when a precompiled
  11027. header is used.
  11028. '-fpch-preprocess'
  11029. This option allows use of a precompiled header (*note Precompiled
  11030. Headers::) together with '-E'. It inserts a special '#pragma',
  11031. '#pragma GCC pch_preprocess "FILENAME"' in the output to mark the
  11032. place where the precompiled header was found, and its FILENAME.
  11033. When '-fpreprocessed' is in use, GCC recognizes this '#pragma' and
  11034. loads the PCH.
  11035. This option is off by default, because the resulting preprocessed
  11036. output is only really suitable as input to GCC. It is switched on
  11037. by '-save-temps'.
  11038. You should not write this '#pragma' in your own code, but it is
  11039. safe to edit the filename if the PCH file is available in a
  11040. different location. The filename may be absolute or it may be
  11041. relative to GCC's current directory.
  11042. '-fworking-directory'
  11043. Enable generation of linemarkers in the preprocessor output that
  11044. let the compiler know the current working directory at the time of
  11045. preprocessing. When this option is enabled, the preprocessor
  11046. emits, after the initial linemarker, a second linemarker with the
  11047. current working directory followed by two slashes. GCC uses this
  11048. directory, when it's present in the preprocessed input, as the
  11049. directory emitted as the current working directory in some
  11050. debugging information formats. This option is implicitly enabled
  11051. if debugging information is enabled, but this can be inhibited with
  11052. the negated form '-fno-working-directory'. If the '-P' flag is
  11053. present in the command line, this option has no effect, since no
  11054. '#line' directives are emitted whatsoever.
  11055. '-A PREDICATE=ANSWER'
  11056. Make an assertion with the predicate PREDICATE and answer ANSWER.
  11057. This form is preferred to the older form '-A PREDICATE(ANSWER)',
  11058. which is still supported, because it does not use shell special
  11059. characters.
  11060. '-A -PREDICATE=ANSWER'
  11061. Cancel an assertion with the predicate PREDICATE and answer ANSWER.
  11062. '-C'
  11063. Do not discard comments. All comments are passed through to the
  11064. output file, except for comments in processed directives, which are
  11065. deleted along with the directive.
  11066. You should be prepared for side effects when using '-C'; it causes
  11067. the preprocessor to treat comments as tokens in their own right.
  11068. For example, comments appearing at the start of what would be a
  11069. directive line have the effect of turning that line into an
  11070. ordinary source line, since the first token on the line is no
  11071. longer a '#'.
  11072. '-CC'
  11073. Do not discard comments, including during macro expansion. This is
  11074. like '-C', except that comments contained within macros are also
  11075. passed through to the output file where the macro is expanded.
  11076. In addition to the side effects of the '-C' option, the '-CC'
  11077. option causes all C++-style comments inside a macro to be converted
  11078. to C-style comments. This is to prevent later use of that macro
  11079. from inadvertently commenting out the remainder of the source line.
  11080. The '-CC' option is generally used to support lint comments.
  11081. '-P'
  11082. Inhibit generation of linemarkers in the output from the
  11083. preprocessor. This might be useful when running the preprocessor
  11084. on something that is not C code, and will be sent to a program
  11085. which might be confused by the linemarkers.
  11086. '-traditional'
  11087. '-traditional-cpp'
  11088. Try to imitate the behavior of pre-standard C preprocessors, as
  11089. opposed to ISO C preprocessors. See the GNU CPP manual for
  11090. details.
  11091. Note that GCC does not otherwise attempt to emulate a pre-standard
  11092. C compiler, and these options are only supported with the '-E'
  11093. switch, or when invoking CPP explicitly.
  11094. '-trigraphs'
  11095. Support ISO C trigraphs. These are three-character sequences, all
  11096. starting with '??', that are defined by ISO C to stand for single
  11097. characters. For example, '??/' stands for '\', so ''??/n'' is a
  11098. character constant for a newline.
  11099. The nine trigraphs and their replacements are
  11100. Trigraph: ??( ??) ??< ??> ??= ??/ ??' ??! ??-
  11101. Replacement: [ ] { } # \ ^ | ~
  11102. By default, GCC ignores trigraphs, but in standard-conforming modes
  11103. it converts them. See the '-std' and '-ansi' options.
  11104. '-remap'
  11105. Enable special code to work around file systems which only permit
  11106. very short file names, such as MS-DOS.
  11107. '-H'
  11108. Print the name of each header file used, in addition to other
  11109. normal activities. Each name is indented to show how deep in the
  11110. '#include' stack it is. Precompiled header files are also printed,
  11111. even if they are found to be invalid; an invalid precompiled header
  11112. file is printed with '...x' and a valid one with '...!' .
  11113. '-dLETTERS'
  11114. Says to make debugging dumps during compilation as specified by
  11115. LETTERS. The flags documented here are those relevant to the
  11116. preprocessor. Other LETTERS are interpreted by the compiler
  11117. proper, or reserved for future versions of GCC, and so are silently
  11118. ignored. If you specify LETTERS whose behavior conflicts, the
  11119. result is undefined. *Note Developer Options::, for more
  11120. information.
  11121. '-dM'
  11122. Instead of the normal output, generate a list of '#define'
  11123. directives for all the macros defined during the execution of
  11124. the preprocessor, including predefined macros. This gives you
  11125. a way of finding out what is predefined in your version of the
  11126. preprocessor. Assuming you have no file 'foo.h', the command
  11127. touch foo.h; cpp -dM foo.h
  11128. shows all the predefined macros.
  11129. If you use '-dM' without the '-E' option, '-dM' is interpreted
  11130. as a synonym for '-fdump-rtl-mach'. *Note (gcc)Developer
  11131. Options::.
  11132. '-dD'
  11133. Like '-dM' except in two respects: it does _not_ include the
  11134. predefined macros, and it outputs _both_ the '#define'
  11135. directives and the result of preprocessing. Both kinds of
  11136. output go to the standard output file.
  11137. '-dN'
  11138. Like '-dD', but emit only the macro names, not their
  11139. expansions.
  11140. '-dI'
  11141. Output '#include' directives in addition to the result of
  11142. preprocessing.
  11143. '-dU'
  11144. Like '-dD' except that only macros that are expanded, or whose
  11145. definedness is tested in preprocessor directives, are output;
  11146. the output is delayed until the use or test of the macro; and
  11147. '#undef' directives are also output for macros tested but
  11148. undefined at the time.
  11149. '-fdebug-cpp'
  11150. This option is only useful for debugging GCC. When used from CPP or
  11151. with '-E', it dumps debugging information about location maps.
  11152. Every token in the output is preceded by the dump of the map its
  11153. location belongs to.
  11154. When used from GCC without '-E', this option has no effect.
  11155. '-Wp,OPTION'
  11156. You can use '-Wp,OPTION' to bypass the compiler driver and pass
  11157. OPTION directly through to the preprocessor. If OPTION contains
  11158. commas, it is split into multiple options at the commas. However,
  11159. many options are modified, translated or interpreted by the
  11160. compiler driver before being passed to the preprocessor, and '-Wp'
  11161. forcibly bypasses this phase. The preprocessor's direct interface
  11162. is undocumented and subject to change, so whenever possible you
  11163. should avoid using '-Wp' and let the driver handle the options
  11164. instead.
  11165. '-Xpreprocessor OPTION'
  11166. Pass OPTION as an option to the preprocessor. You can use this to
  11167. supply system-specific preprocessor options that GCC does not
  11168. recognize.
  11169. If you want to pass an option that takes an argument, you must use
  11170. '-Xpreprocessor' twice, once for the option and once for the
  11171. argument.
  11172. '-no-integrated-cpp'
  11173. Perform preprocessing as a separate pass before compilation. By
  11174. default, GCC performs preprocessing as an integrated part of input
  11175. tokenization and parsing. If this option is provided, the
  11176. appropriate language front end ('cc1', 'cc1plus', or 'cc1obj' for
  11177. C, C++, and Objective-C, respectively) is instead invoked twice,
  11178. once for preprocessing only and once for actual compilation of the
  11179. preprocessed input. This option may be useful in conjunction with
  11180. the '-B' or '-wrapper' options to specify an alternate preprocessor
  11181. or perform additional processing of the program source between
  11182. normal preprocessing and compilation.
  11183. 
  11184. File: gcc.info, Node: Assembler Options, Next: Link Options, Prev: Preprocessor Options, Up: Invoking GCC
  11185. 3.14 Passing Options to the Assembler
  11186. =====================================
  11187. You can pass options to the assembler.
  11188. '-Wa,OPTION'
  11189. Pass OPTION as an option to the assembler. If OPTION contains
  11190. commas, it is split into multiple options at the commas.
  11191. '-Xassembler OPTION'
  11192. Pass OPTION as an option to the assembler. You can use this to
  11193. supply system-specific assembler options that GCC does not
  11194. recognize.
  11195. If you want to pass an option that takes an argument, you must use
  11196. '-Xassembler' twice, once for the option and once for the argument.
  11197. 
  11198. File: gcc.info, Node: Link Options, Next: Directory Options, Prev: Assembler Options, Up: Invoking GCC
  11199. 3.15 Options for Linking
  11200. ========================
  11201. These options come into play when the compiler links object files into
  11202. an executable output file. They are meaningless if the compiler is not
  11203. doing a link step.
  11204. 'OBJECT-FILE-NAME'
  11205. A file name that does not end in a special recognized suffix is
  11206. considered to name an object file or library. (Object files are
  11207. distinguished from libraries by the linker according to the file
  11208. contents.) If linking is done, these object files are used as
  11209. input to the linker.
  11210. '-c'
  11211. '-S'
  11212. '-E'
  11213. If any of these options is used, then the linker is not run, and
  11214. object file names should not be used as arguments. *Note Overall
  11215. Options::.
  11216. '-flinker-output=TYPE'
  11217. This option controls code generation of the link-time optimizer.
  11218. By default the linker output is automatically determined by the
  11219. linker plugin. For debugging the compiler and if incremental
  11220. linking with a non-LTO object file is desired, it may be useful to
  11221. control the type manually.
  11222. If TYPE is 'exec', code generation produces a static binary. In
  11223. this case '-fpic' and '-fpie' are both disabled.
  11224. If TYPE is 'dyn', code generation produces a shared library. In
  11225. this case '-fpic' or '-fPIC' is preserved, but not enabled
  11226. automatically. This allows to build shared libraries without
  11227. position-independent code on architectures where this is possible,
  11228. i.e. on x86.
  11229. If TYPE is 'pie', code generation produces an '-fpie' executable.
  11230. This results in similar optimizations as 'exec' except that '-fpie'
  11231. is not disabled if specified at compilation time.
  11232. If TYPE is 'rel', the compiler assumes that incremental linking is
  11233. done. The sections containing intermediate code for link-time
  11234. optimization are merged, pre-optimized, and output to the resulting
  11235. object file. In addition, if '-ffat-lto-objects' is specified,
  11236. binary code is produced for future non-LTO linking. The object
  11237. file produced by incremental linking is smaller than a static
  11238. library produced from the same object files. At link time the
  11239. result of incremental linking also loads faster than a static
  11240. library assuming that the majority of objects in the library are
  11241. used.
  11242. Finally 'nolto-rel' configures the compiler for incremental linking
  11243. where code generation is forced, a final binary is produced, and
  11244. the intermediate code for later link-time optimization is stripped.
  11245. When multiple object files are linked together the resulting code
  11246. is better optimized than with link-time optimizations disabled (for
  11247. example, cross-module inlining happens), but most of benefits of
  11248. whole program optimizations are lost.
  11249. During the incremental link (by '-r') the linker plugin defaults to
  11250. 'rel'. With current interfaces to GNU Binutils it is however not
  11251. possible to incrementally link LTO objects and non-LTO objects into
  11252. a single mixed object file. If any of object files in incremental
  11253. link cannot be used for link-time optimization, the linker plugin
  11254. issues a warning and uses 'nolto-rel'. To maintain whole program
  11255. optimization, it is recommended to link such objects into static
  11256. library instead. Alternatively it is possible to use H.J. Lu's
  11257. binutils with support for mixed objects.
  11258. '-fuse-ld=bfd'
  11259. Use the 'bfd' linker instead of the default linker.
  11260. '-fuse-ld=gold'
  11261. Use the 'gold' linker instead of the default linker.
  11262. '-fuse-ld=lld'
  11263. Use the LLVM 'lld' linker instead of the default linker.
  11264. '-lLIBRARY'
  11265. '-l LIBRARY'
  11266. Search the library named LIBRARY when linking. (The second
  11267. alternative with the library as a separate argument is only for
  11268. POSIX compliance and is not recommended.)
  11269. The '-l' option is passed directly to the linker by GCC. Refer to
  11270. your linker documentation for exact details. The general
  11271. description below applies to the GNU linker.
  11272. The linker searches a standard list of directories for the library.
  11273. The directories searched include several standard system
  11274. directories plus any that you specify with '-L'.
  11275. Static libraries are archives of object files, and have file names
  11276. like 'libLIBRARY.a'. Some targets also support shared libraries,
  11277. which typically have names like 'libLIBRARY.so'. If both static
  11278. and shared libraries are found, the linker gives preference to
  11279. linking with the shared library unless the '-static' option is
  11280. used.
  11281. It makes a difference where in the command you write this option;
  11282. the linker searches and processes libraries and object files in the
  11283. order they are specified. Thus, 'foo.o -lz bar.o' searches library
  11284. 'z' after file 'foo.o' but before 'bar.o'. If 'bar.o' refers to
  11285. functions in 'z', those functions may not be loaded.
  11286. '-lobjc'
  11287. You need this special case of the '-l' option in order to link an
  11288. Objective-C or Objective-C++ program.
  11289. '-nostartfiles'
  11290. Do not use the standard system startup files when linking. The
  11291. standard system libraries are used normally, unless '-nostdlib',
  11292. '-nolibc', or '-nodefaultlibs' is used.
  11293. '-nodefaultlibs'
  11294. Do not use the standard system libraries when linking. Only the
  11295. libraries you specify are passed to the linker, and options
  11296. specifying linkage of the system libraries, such as
  11297. '-static-libgcc' or '-shared-libgcc', are ignored. The standard
  11298. startup files are used normally, unless '-nostartfiles' is used.
  11299. The compiler may generate calls to 'memcmp', 'memset', 'memcpy' and
  11300. 'memmove'. These entries are usually resolved by entries in libc.
  11301. These entry points should be supplied through some other mechanism
  11302. when this option is specified.
  11303. '-nolibc'
  11304. Do not use the C library or system libraries tightly coupled with
  11305. it when linking. Still link with the startup files, 'libgcc' or
  11306. toolchain provided language support libraries such as 'libgnat',
  11307. 'libgfortran' or 'libstdc++' unless options preventing their
  11308. inclusion are used as well. This typically removes '-lc' from the
  11309. link command line, as well as system libraries that normally go
  11310. with it and become meaningless when absence of a C library is
  11311. assumed, for example '-lpthread' or '-lm' in some configurations.
  11312. This is intended for bare-board targets when there is indeed no C
  11313. library available.
  11314. '-nostdlib'
  11315. Do not use the standard system startup files or libraries when
  11316. linking. No startup files and only the libraries you specify are
  11317. passed to the linker, and options specifying linkage of the system
  11318. libraries, such as '-static-libgcc' or '-shared-libgcc', are
  11319. ignored.
  11320. The compiler may generate calls to 'memcmp', 'memset', 'memcpy' and
  11321. 'memmove'. These entries are usually resolved by entries in libc.
  11322. These entry points should be supplied through some other mechanism
  11323. when this option is specified.
  11324. One of the standard libraries bypassed by '-nostdlib' and
  11325. '-nodefaultlibs' is 'libgcc.a', a library of internal subroutines
  11326. which GCC uses to overcome shortcomings of particular machines, or
  11327. special needs for some languages. (*Note Interfacing to GCC
  11328. Output: (gccint)Interface, for more discussion of 'libgcc.a'.) In
  11329. most cases, you need 'libgcc.a' even when you want to avoid other
  11330. standard libraries. In other words, when you specify '-nostdlib'
  11331. or '-nodefaultlibs' you should usually specify '-lgcc' as well.
  11332. This ensures that you have no unresolved references to internal GCC
  11333. library subroutines. (An example of such an internal subroutine is
  11334. '__main', used to ensure C++ constructors are called; *note
  11335. 'collect2': (gccint)Collect2.)
  11336. '-e ENTRY'
  11337. '--entry=ENTRY'
  11338. Specify that the program entry point is ENTRY. The argument is
  11339. interpreted by the linker; the GNU linker accepts either a symbol
  11340. name or an address.
  11341. '-pie'
  11342. Produce a dynamically linked position independent executable on
  11343. targets that support it. For predictable results, you must also
  11344. specify the same set of options used for compilation ('-fpie',
  11345. '-fPIE', or model suboptions) when you specify this linker option.
  11346. '-no-pie'
  11347. Don't produce a dynamically linked position independent executable.
  11348. '-static-pie'
  11349. Produce a static position independent executable on targets that
  11350. support it. A static position independent executable is similar to
  11351. a static executable, but can be loaded at any address without a
  11352. dynamic linker. For predictable results, you must also specify the
  11353. same set of options used for compilation ('-fpie', '-fPIE', or
  11354. model suboptions) when you specify this linker option.
  11355. '-pthread'
  11356. Link with the POSIX threads library. This option is supported on
  11357. GNU/Linux targets, most other Unix derivatives, and also on x86
  11358. Cygwin and MinGW targets. On some targets this option also sets
  11359. flags for the preprocessor, so it should be used consistently for
  11360. both compilation and linking.
  11361. '-r'
  11362. Produce a relocatable object as output. This is also known as
  11363. partial linking.
  11364. '-rdynamic'
  11365. Pass the flag '-export-dynamic' to the ELF linker, on targets that
  11366. support it. This instructs the linker to add all symbols, not only
  11367. used ones, to the dynamic symbol table. This option is needed for
  11368. some uses of 'dlopen' or to allow obtaining backtraces from within
  11369. a program.
  11370. '-s'
  11371. Remove all symbol table and relocation information from the
  11372. executable.
  11373. '-static'
  11374. On systems that support dynamic linking, this overrides '-pie' and
  11375. prevents linking with the shared libraries. On other systems, this
  11376. option has no effect.
  11377. '-shared'
  11378. Produce a shared object which can then be linked with other objects
  11379. to form an executable. Not all systems support this option. For
  11380. predictable results, you must also specify the same set of options
  11381. used for compilation ('-fpic', '-fPIC', or model suboptions) when
  11382. you specify this linker option.(1)
  11383. '-shared-libgcc'
  11384. '-static-libgcc'
  11385. On systems that provide 'libgcc' as a shared library, these options
  11386. force the use of either the shared or static version, respectively.
  11387. If no shared version of 'libgcc' was built when the compiler was
  11388. configured, these options have no effect.
  11389. There are several situations in which an application should use the
  11390. shared 'libgcc' instead of the static version. The most common of
  11391. these is when the application wishes to throw and catch exceptions
  11392. across different shared libraries. In that case, each of the
  11393. libraries as well as the application itself should use the shared
  11394. 'libgcc'.
  11395. Therefore, the G++ driver automatically adds '-shared-libgcc'
  11396. whenever you build a shared library or a main executable, because
  11397. C++ programs typically use exceptions, so this is the right thing
  11398. to do.
  11399. If, instead, you use the GCC driver to create shared libraries, you
  11400. may find that they are not always linked with the shared 'libgcc'.
  11401. If GCC finds, at its configuration time, that you have a non-GNU
  11402. linker or a GNU linker that does not support option
  11403. '--eh-frame-hdr', it links the shared version of 'libgcc' into
  11404. shared libraries by default. Otherwise, it takes advantage of the
  11405. linker and optimizes away the linking with the shared version of
  11406. 'libgcc', linking with the static version of libgcc by default.
  11407. This allows exceptions to propagate through such shared libraries,
  11408. without incurring relocation costs at library load time.
  11409. However, if a library or main executable is supposed to throw or
  11410. catch exceptions, you must link it using the G++ driver, or using
  11411. the option '-shared-libgcc', such that it is linked with the shared
  11412. 'libgcc'.
  11413. '-static-libasan'
  11414. When the '-fsanitize=address' option is used to link a program, the
  11415. GCC driver automatically links against 'libasan'. If 'libasan' is
  11416. available as a shared library, and the '-static' option is not
  11417. used, then this links against the shared version of 'libasan'. The
  11418. '-static-libasan' option directs the GCC driver to link 'libasan'
  11419. statically, without necessarily linking other libraries statically.
  11420. '-static-libtsan'
  11421. When the '-fsanitize=thread' option is used to link a program, the
  11422. GCC driver automatically links against 'libtsan'. If 'libtsan' is
  11423. available as a shared library, and the '-static' option is not
  11424. used, then this links against the shared version of 'libtsan'. The
  11425. '-static-libtsan' option directs the GCC driver to link 'libtsan'
  11426. statically, without necessarily linking other libraries statically.
  11427. '-static-liblsan'
  11428. When the '-fsanitize=leak' option is used to link a program, the
  11429. GCC driver automatically links against 'liblsan'. If 'liblsan' is
  11430. available as a shared library, and the '-static' option is not
  11431. used, then this links against the shared version of 'liblsan'. The
  11432. '-static-liblsan' option directs the GCC driver to link 'liblsan'
  11433. statically, without necessarily linking other libraries statically.
  11434. '-static-libubsan'
  11435. When the '-fsanitize=undefined' option is used to link a program,
  11436. the GCC driver automatically links against 'libubsan'. If
  11437. 'libubsan' is available as a shared library, and the '-static'
  11438. option is not used, then this links against the shared version of
  11439. 'libubsan'. The '-static-libubsan' option directs the GCC driver
  11440. to link 'libubsan' statically, without necessarily linking other
  11441. libraries statically.
  11442. '-static-libstdc++'
  11443. When the 'g++' program is used to link a C++ program, it normally
  11444. automatically links against 'libstdc++'. If 'libstdc++' is
  11445. available as a shared library, and the '-static' option is not
  11446. used, then this links against the shared version of 'libstdc++'.
  11447. That is normally fine. However, it is sometimes useful to freeze
  11448. the version of 'libstdc++' used by the program without going all
  11449. the way to a fully static link. The '-static-libstdc++' option
  11450. directs the 'g++' driver to link 'libstdc++' statically, without
  11451. necessarily linking other libraries statically.
  11452. '-symbolic'
  11453. Bind references to global symbols when building a shared object.
  11454. Warn about any unresolved references (unless overridden by the link
  11455. editor option '-Xlinker -z -Xlinker defs'). Only a few systems
  11456. support this option.
  11457. '-T SCRIPT'
  11458. Use SCRIPT as the linker script. This option is supported by most
  11459. systems using the GNU linker. On some targets, such as bare-board
  11460. targets without an operating system, the '-T' option may be
  11461. required when linking to avoid references to undefined symbols.
  11462. '-Xlinker OPTION'
  11463. Pass OPTION as an option to the linker. You can use this to supply
  11464. system-specific linker options that GCC does not recognize.
  11465. If you want to pass an option that takes a separate argument, you
  11466. must use '-Xlinker' twice, once for the option and once for the
  11467. argument. For example, to pass '-assert definitions', you must
  11468. write '-Xlinker -assert -Xlinker definitions'. It does not work to
  11469. write '-Xlinker "-assert definitions"', because this passes the
  11470. entire string as a single argument, which is not what the linker
  11471. expects.
  11472. When using the GNU linker, it is usually more convenient to pass
  11473. arguments to linker options using the 'OPTION=VALUE' syntax than as
  11474. separate arguments. For example, you can specify '-Xlinker
  11475. -Map=output.map' rather than '-Xlinker -Map -Xlinker output.map'.
  11476. Other linkers may not support this syntax for command-line options.
  11477. '-Wl,OPTION'
  11478. Pass OPTION as an option to the linker. If OPTION contains commas,
  11479. it is split into multiple options at the commas. You can use this
  11480. syntax to pass an argument to the option. For example,
  11481. '-Wl,-Map,output.map' passes '-Map output.map' to the linker. When
  11482. using the GNU linker, you can also get the same effect with
  11483. '-Wl,-Map=output.map'.
  11484. '-u SYMBOL'
  11485. Pretend the symbol SYMBOL is undefined, to force linking of library
  11486. modules to define it. You can use '-u' multiple times with
  11487. different symbols to force loading of additional library modules.
  11488. '-z KEYWORD'
  11489. '-z' is passed directly on to the linker along with the keyword
  11490. KEYWORD. See the section in the documentation of your linker for
  11491. permitted values and their meanings.
  11492. ---------- Footnotes ----------
  11493. (1) On some systems, 'gcc -shared' needs to build supplementary stub
  11494. code for constructors to work. On multi-libbed systems, 'gcc -shared'
  11495. must select the correct support libraries to link against. Failing to
  11496. supply the correct flags may lead to subtle defects. Supplying them in
  11497. cases where they are not necessary is innocuous.
  11498. 
  11499. File: gcc.info, Node: Directory Options, Next: Code Gen Options, Prev: Link Options, Up: Invoking GCC
  11500. 3.16 Options for Directory Search
  11501. =================================
  11502. These options specify directories to search for header files, for
  11503. libraries and for parts of the compiler:
  11504. '-I DIR'
  11505. '-iquote DIR'
  11506. '-isystem DIR'
  11507. '-idirafter DIR'
  11508. Add the directory DIR to the list of directories to be searched for
  11509. header files during preprocessing. If DIR begins with '=' or
  11510. '$SYSROOT', then the '=' or '$SYSROOT' is replaced by the sysroot
  11511. prefix; see '--sysroot' and '-isysroot'.
  11512. Directories specified with '-iquote' apply only to the quote form
  11513. of the directive, '#include "FILE"'. Directories specified with
  11514. '-I', '-isystem', or '-idirafter' apply to lookup for both the
  11515. '#include "FILE"' and '#include <FILE>' directives.
  11516. You can specify any number or combination of these options on the
  11517. command line to search for header files in several directories.
  11518. The lookup order is as follows:
  11519. 1. For the quote form of the include directive, the directory of
  11520. the current file is searched first.
  11521. 2. For the quote form of the include directive, the directories
  11522. specified by '-iquote' options are searched in left-to-right
  11523. order, as they appear on the command line.
  11524. 3. Directories specified with '-I' options are scanned in
  11525. left-to-right order.
  11526. 4. Directories specified with '-isystem' options are scanned in
  11527. left-to-right order.
  11528. 5. Standard system directories are scanned.
  11529. 6. Directories specified with '-idirafter' options are scanned in
  11530. left-to-right order.
  11531. You can use '-I' to override a system header file, substituting
  11532. your own version, since these directories are searched before the
  11533. standard system header file directories. However, you should not
  11534. use this option to add directories that contain vendor-supplied
  11535. system header files; use '-isystem' for that.
  11536. The '-isystem' and '-idirafter' options also mark the directory as
  11537. a system directory, so that it gets the same special treatment that
  11538. is applied to the standard system directories.
  11539. If a standard system include directory, or a directory specified
  11540. with '-isystem', is also specified with '-I', the '-I' option is
  11541. ignored. The directory is still searched but as a system directory
  11542. at its normal position in the system include chain. This is to
  11543. ensure that GCC's procedure to fix buggy system headers and the
  11544. ordering for the '#include_next' directive are not inadvertently
  11545. changed. If you really need to change the search order for system
  11546. directories, use the '-nostdinc' and/or '-isystem' options.
  11547. '-I-'
  11548. Split the include path. This option has been deprecated. Please
  11549. use '-iquote' instead for '-I' directories before the '-I-' and
  11550. remove the '-I-' option.
  11551. Any directories specified with '-I' options before '-I-' are
  11552. searched only for headers requested with '#include "FILE"'; they
  11553. are not searched for '#include <FILE>'. If additional directories
  11554. are specified with '-I' options after the '-I-', those directories
  11555. are searched for all '#include' directives.
  11556. In addition, '-I-' inhibits the use of the directory of the current
  11557. file directory as the first search directory for '#include "FILE"'.
  11558. There is no way to override this effect of '-I-'.
  11559. '-iprefix PREFIX'
  11560. Specify PREFIX as the prefix for subsequent '-iwithprefix' options.
  11561. If the prefix represents a directory, you should include the final
  11562. '/'.
  11563. '-iwithprefix DIR'
  11564. '-iwithprefixbefore DIR'
  11565. Append DIR to the prefix specified previously with '-iprefix', and
  11566. add the resulting directory to the include search path.
  11567. '-iwithprefixbefore' puts it in the same place '-I' would;
  11568. '-iwithprefix' puts it where '-idirafter' would.
  11569. '-isysroot DIR'
  11570. This option is like the '--sysroot' option, but applies only to
  11571. header files (except for Darwin targets, where it applies to both
  11572. header files and libraries). See the '--sysroot' option for more
  11573. information.
  11574. '-imultilib DIR'
  11575. Use DIR as a subdirectory of the directory containing
  11576. target-specific C++ headers.
  11577. '-nostdinc'
  11578. Do not search the standard system directories for header files.
  11579. Only the directories explicitly specified with '-I', '-iquote',
  11580. '-isystem', and/or '-idirafter' options (and the directory of the
  11581. current file, if appropriate) are searched.
  11582. '-nostdinc++'
  11583. Do not search for header files in the C++-specific standard
  11584. directories, but do still search the other standard directories.
  11585. (This option is used when building the C++ library.)
  11586. '-iplugindir=DIR'
  11587. Set the directory to search for plugins that are passed by
  11588. '-fplugin=NAME' instead of '-fplugin=PATH/NAME.so'. This option is
  11589. not meant to be used by the user, but only passed by the driver.
  11590. '-LDIR'
  11591. Add directory DIR to the list of directories to be searched for
  11592. '-l'.
  11593. '-BPREFIX'
  11594. This option specifies where to find the executables, libraries,
  11595. include files, and data files of the compiler itself.
  11596. The compiler driver program runs one or more of the subprograms
  11597. 'cpp', 'cc1', 'as' and 'ld'. It tries PREFIX as a prefix for each
  11598. program it tries to run, both with and without 'MACHINE/VERSION/'
  11599. for the corresponding target machine and compiler version.
  11600. For each subprogram to be run, the compiler driver first tries the
  11601. '-B' prefix, if any. If that name is not found, or if '-B' is not
  11602. specified, the driver tries two standard prefixes, '/usr/lib/gcc/'
  11603. and '/usr/local/lib/gcc/'. If neither of those results in a file
  11604. name that is found, the unmodified program name is searched for
  11605. using the directories specified in your 'PATH' environment
  11606. variable.
  11607. The compiler checks to see if the path provided by '-B' refers to a
  11608. directory, and if necessary it adds a directory separator character
  11609. at the end of the path.
  11610. '-B' prefixes that effectively specify directory names also apply
  11611. to libraries in the linker, because the compiler translates these
  11612. options into '-L' options for the linker. They also apply to
  11613. include files in the preprocessor, because the compiler translates
  11614. these options into '-isystem' options for the preprocessor. In
  11615. this case, the compiler appends 'include' to the prefix.
  11616. The runtime support file 'libgcc.a' can also be searched for using
  11617. the '-B' prefix, if needed. If it is not found there, the two
  11618. standard prefixes above are tried, and that is all. The file is
  11619. left out of the link if it is not found by those means.
  11620. Another way to specify a prefix much like the '-B' prefix is to use
  11621. the environment variable 'GCC_EXEC_PREFIX'. *Note Environment
  11622. Variables::.
  11623. As a special kludge, if the path provided by '-B' is
  11624. '[dir/]stageN/', where N is a number in the range 0 to 9, then it
  11625. is replaced by '[dir/]include'. This is to help with
  11626. boot-strapping the compiler.
  11627. '-no-canonical-prefixes'
  11628. Do not expand any symbolic links, resolve references to '/../' or
  11629. '/./', or make the path absolute when generating a relative prefix.
  11630. '--sysroot=DIR'
  11631. Use DIR as the logical root directory for headers and libraries.
  11632. For example, if the compiler normally searches for headers in
  11633. '/usr/include' and libraries in '/usr/lib', it instead searches
  11634. 'DIR/usr/include' and 'DIR/usr/lib'.
  11635. If you use both this option and the '-isysroot' option, then the
  11636. '--sysroot' option applies to libraries, but the '-isysroot' option
  11637. applies to header files.
  11638. The GNU linker (beginning with version 2.16) has the necessary
  11639. support for this option. If your linker does not support this
  11640. option, the header file aspect of '--sysroot' still works, but the
  11641. library aspect does not.
  11642. '--no-sysroot-suffix'
  11643. For some targets, a suffix is added to the root directory specified
  11644. with '--sysroot', depending on the other options used, so that
  11645. headers may for example be found in 'DIR/SUFFIX/usr/include'
  11646. instead of 'DIR/usr/include'. This option disables the addition of
  11647. such a suffix.
  11648. 
  11649. File: gcc.info, Node: Code Gen Options, Next: Developer Options, Prev: Directory Options, Up: Invoking GCC
  11650. 3.17 Options for Code Generation Conventions
  11651. ============================================
  11652. These machine-independent options control the interface conventions used
  11653. in code generation.
  11654. Most of them have both positive and negative forms; the negative form
  11655. of '-ffoo' is '-fno-foo'. In the table below, only one of the forms is
  11656. listed--the one that is not the default. You can figure out the other
  11657. form by either removing 'no-' or adding it.
  11658. '-fstack-reuse=REUSE-LEVEL'
  11659. This option controls stack space reuse for user declared local/auto
  11660. variables and compiler generated temporaries. REUSE_LEVEL can be
  11661. 'all', 'named_vars', or 'none'. 'all' enables stack reuse for all
  11662. local variables and temporaries, 'named_vars' enables the reuse
  11663. only for user defined local variables with names, and 'none'
  11664. disables stack reuse completely. The default value is 'all'. The
  11665. option is needed when the program extends the lifetime of a scoped
  11666. local variable or a compiler generated temporary beyond the end
  11667. point defined by the language. When a lifetime of a variable ends,
  11668. and if the variable lives in memory, the optimizing compiler has
  11669. the freedom to reuse its stack space with other temporaries or
  11670. scoped local variables whose live range does not overlap with it.
  11671. Legacy code extending local lifetime is likely to break with the
  11672. stack reuse optimization.
  11673. For example,
  11674. int *p;
  11675. {
  11676. int local1;
  11677. p = &local1;
  11678. local1 = 10;
  11679. ....
  11680. }
  11681. {
  11682. int local2;
  11683. local2 = 20;
  11684. ...
  11685. }
  11686. if (*p == 10) // out of scope use of local1
  11687. {
  11688. }
  11689. Another example:
  11690. struct A
  11691. {
  11692. A(int k) : i(k), j(k) { }
  11693. int i;
  11694. int j;
  11695. };
  11696. A *ap;
  11697. void foo(const A& ar)
  11698. {
  11699. ap = &ar;
  11700. }
  11701. void bar()
  11702. {
  11703. foo(A(10)); // temp object's lifetime ends when foo returns
  11704. {
  11705. A a(20);
  11706. ....
  11707. }
  11708. ap->i+= 10; // ap references out of scope temp whose space
  11709. // is reused with a. What is the value of ap->i?
  11710. }
  11711. The lifetime of a compiler generated temporary is well defined by
  11712. the C++ standard. When a lifetime of a temporary ends, and if the
  11713. temporary lives in memory, the optimizing compiler has the freedom
  11714. to reuse its stack space with other temporaries or scoped local
  11715. variables whose live range does not overlap with it. However some
  11716. of the legacy code relies on the behavior of older compilers in
  11717. which temporaries' stack space is not reused, the aggressive stack
  11718. reuse can lead to runtime errors. This option is used to control
  11719. the temporary stack reuse optimization.
  11720. '-ftrapv'
  11721. This option generates traps for signed overflow on addition,
  11722. subtraction, multiplication operations. The options '-ftrapv' and
  11723. '-fwrapv' override each other, so using '-ftrapv' '-fwrapv' on the
  11724. command-line results in '-fwrapv' being effective. Note that only
  11725. active options override, so using '-ftrapv' '-fwrapv' '-fno-wrapv'
  11726. on the command-line results in '-ftrapv' being effective.
  11727. '-fwrapv'
  11728. This option instructs the compiler to assume that signed arithmetic
  11729. overflow of addition, subtraction and multiplication wraps around
  11730. using twos-complement representation. This flag enables some
  11731. optimizations and disables others. The options '-ftrapv' and
  11732. '-fwrapv' override each other, so using '-ftrapv' '-fwrapv' on the
  11733. command-line results in '-fwrapv' being effective. Note that only
  11734. active options override, so using '-ftrapv' '-fwrapv' '-fno-wrapv'
  11735. on the command-line results in '-ftrapv' being effective.
  11736. '-fwrapv-pointer'
  11737. This option instructs the compiler to assume that pointer
  11738. arithmetic overflow on addition and subtraction wraps around using
  11739. twos-complement representation. This flag disables some
  11740. optimizations which assume pointer overflow is invalid.
  11741. '-fstrict-overflow'
  11742. This option implies '-fno-wrapv' '-fno-wrapv-pointer' and when
  11743. negated implies '-fwrapv' '-fwrapv-pointer'.
  11744. '-fexceptions'
  11745. Enable exception handling. Generates extra code needed to
  11746. propagate exceptions. For some targets, this implies GCC generates
  11747. frame unwind information for all functions, which can produce
  11748. significant data size overhead, although it does not affect
  11749. execution. If you do not specify this option, GCC enables it by
  11750. default for languages like C++ that normally require exception
  11751. handling, and disables it for languages like C that do not normally
  11752. require it. However, you may need to enable this option when
  11753. compiling C code that needs to interoperate properly with exception
  11754. handlers written in C++. You may also wish to disable this option
  11755. if you are compiling older C++ programs that don't use exception
  11756. handling.
  11757. '-fnon-call-exceptions'
  11758. Generate code that allows trapping instructions to throw
  11759. exceptions. Note that this requires platform-specific runtime
  11760. support that does not exist everywhere. Moreover, it only allows
  11761. _trapping_ instructions to throw exceptions, i.e. memory references
  11762. or floating-point instructions. It does not allow exceptions to be
  11763. thrown from arbitrary signal handlers such as 'SIGALRM'.
  11764. '-fdelete-dead-exceptions'
  11765. Consider that instructions that may throw exceptions but don't
  11766. otherwise contribute to the execution of the program can be
  11767. optimized away. This option is enabled by default for the Ada
  11768. front end, as permitted by the Ada language specification.
  11769. Optimization passes that cause dead exceptions to be removed are
  11770. enabled independently at different optimization levels.
  11771. '-funwind-tables'
  11772. Similar to '-fexceptions', except that it just generates any needed
  11773. static data, but does not affect the generated code in any other
  11774. way. You normally do not need to enable this option; instead, a
  11775. language processor that needs this handling enables it on your
  11776. behalf.
  11777. '-fasynchronous-unwind-tables'
  11778. Generate unwind table in DWARF format, if supported by target
  11779. machine. The table is exact at each instruction boundary, so it
  11780. can be used for stack unwinding from asynchronous events (such as
  11781. debugger or garbage collector).
  11782. '-fno-gnu-unique'
  11783. On systems with recent GNU assembler and C library, the C++
  11784. compiler uses the 'STB_GNU_UNIQUE' binding to make sure that
  11785. definitions of template static data members and static local
  11786. variables in inline functions are unique even in the presence of
  11787. 'RTLD_LOCAL'; this is necessary to avoid problems with a library
  11788. used by two different 'RTLD_LOCAL' plugins depending on a
  11789. definition in one of them and therefore disagreeing with the other
  11790. one about the binding of the symbol. But this causes 'dlclose' to
  11791. be ignored for affected DSOs; if your program relies on
  11792. reinitialization of a DSO via 'dlclose' and 'dlopen', you can use
  11793. '-fno-gnu-unique'.
  11794. '-fpcc-struct-return'
  11795. Return "short" 'struct' and 'union' values in memory like longer
  11796. ones, rather than in registers. This convention is less efficient,
  11797. but it has the advantage of allowing intercallability between
  11798. GCC-compiled files and files compiled with other compilers,
  11799. particularly the Portable C Compiler (pcc).
  11800. The precise convention for returning structures in memory depends
  11801. on the target configuration macros.
  11802. Short structures and unions are those whose size and alignment
  11803. match that of some integer type.
  11804. *Warning:* code compiled with the '-fpcc-struct-return' switch is
  11805. not binary compatible with code compiled with the
  11806. '-freg-struct-return' switch. Use it to conform to a non-default
  11807. application binary interface.
  11808. '-freg-struct-return'
  11809. Return 'struct' and 'union' values in registers when possible.
  11810. This is more efficient for small structures than
  11811. '-fpcc-struct-return'.
  11812. If you specify neither '-fpcc-struct-return' nor
  11813. '-freg-struct-return', GCC defaults to whichever convention is
  11814. standard for the target. If there is no standard convention, GCC
  11815. defaults to '-fpcc-struct-return', except on targets where GCC is
  11816. the principal compiler. In those cases, we can choose the
  11817. standard, and we chose the more efficient register return
  11818. alternative.
  11819. *Warning:* code compiled with the '-freg-struct-return' switch is
  11820. not binary compatible with code compiled with the
  11821. '-fpcc-struct-return' switch. Use it to conform to a non-default
  11822. application binary interface.
  11823. '-fshort-enums'
  11824. Allocate to an 'enum' type only as many bytes as it needs for the
  11825. declared range of possible values. Specifically, the 'enum' type
  11826. is equivalent to the smallest integer type that has enough room.
  11827. *Warning:* the '-fshort-enums' switch causes GCC to generate code
  11828. that is not binary compatible with code generated without that
  11829. switch. Use it to conform to a non-default application binary
  11830. interface.
  11831. '-fshort-wchar'
  11832. Override the underlying type for 'wchar_t' to be 'short unsigned
  11833. int' instead of the default for the target. This option is useful
  11834. for building programs to run under WINE.
  11835. *Warning:* the '-fshort-wchar' switch causes GCC to generate code
  11836. that is not binary compatible with code generated without that
  11837. switch. Use it to conform to a non-default application binary
  11838. interface.
  11839. '-fcommon'
  11840. In C code, this option controls the placement of global variables
  11841. defined without an initializer, known as "tentative definitions" in
  11842. the C standard. Tentative definitions are distinct from
  11843. declarations of a variable with the 'extern' keyword, which do not
  11844. allocate storage.
  11845. The default is '-fno-common', which specifies that the compiler
  11846. places uninitialized global variables in the BSS section of the
  11847. object file. This inhibits the merging of tentative definitions by
  11848. the linker so you get a multiple-definition error if the same
  11849. variable is accidentally defined in more than one compilation unit.
  11850. The '-fcommon' places uninitialized global variables in a common
  11851. block. This allows the linker to resolve all tentative definitions
  11852. of the same variable in different compilation units to the same
  11853. object, or to a non-tentative definition. This behavior is
  11854. inconsistent with C++, and on many targets implies a speed and code
  11855. size penalty on global variable references. It is mainly useful to
  11856. enable legacy code to link without errors.
  11857. '-fno-ident'
  11858. Ignore the '#ident' directive.
  11859. '-finhibit-size-directive'
  11860. Don't output a '.size' assembler directive, or anything else that
  11861. would cause trouble if the function is split in the middle, and the
  11862. two halves are placed at locations far apart in memory. This
  11863. option is used when compiling 'crtstuff.c'; you should not need to
  11864. use it for anything else.
  11865. '-fverbose-asm'
  11866. Put extra commentary information in the generated assembly code to
  11867. make it more readable. This option is generally only of use to
  11868. those who actually need to read the generated assembly code
  11869. (perhaps while debugging the compiler itself).
  11870. '-fno-verbose-asm', the default, causes the extra information to be
  11871. omitted and is useful when comparing two assembler files.
  11872. The added comments include:
  11873. * information on the compiler version and command-line options,
  11874. * the source code lines associated with the assembly
  11875. instructions, in the form FILENAME:LINENUMBER:CONTENT OF LINE,
  11876. * hints on which high-level expressions correspond to the
  11877. various assembly instruction operands.
  11878. For example, given this C source file:
  11879. int test (int n)
  11880. {
  11881. int i;
  11882. int total = 0;
  11883. for (i = 0; i < n; i++)
  11884. total += i * i;
  11885. return total;
  11886. }
  11887. compiling to (x86_64) assembly via '-S' and emitting the result
  11888. direct to stdout via '-o' '-'
  11889. gcc -S test.c -fverbose-asm -Os -o -
  11890. gives output similar to this:
  11891. .file "test.c"
  11892. # GNU C11 (GCC) version 7.0.0 20160809 (experimental) (x86_64-pc-linux-gnu)
  11893. [...snip...]
  11894. # options passed:
  11895. [...snip...]
  11896. .text
  11897. .globl test
  11898. .type test, @function
  11899. test:
  11900. .LFB0:
  11901. .cfi_startproc
  11902. # test.c:4: int total = 0;
  11903. xorl %eax, %eax # <retval>
  11904. # test.c:6: for (i = 0; i < n; i++)
  11905. xorl %edx, %edx # i
  11906. .L2:
  11907. # test.c:6: for (i = 0; i < n; i++)
  11908. cmpl %edi, %edx # n, i
  11909. jge .L5 #,
  11910. # test.c:7: total += i * i;
  11911. movl %edx, %ecx # i, tmp92
  11912. imull %edx, %ecx # i, tmp92
  11913. # test.c:6: for (i = 0; i < n; i++)
  11914. incl %edx # i
  11915. # test.c:7: total += i * i;
  11916. addl %ecx, %eax # tmp92, <retval>
  11917. jmp .L2 #
  11918. .L5:
  11919. # test.c:10: }
  11920. ret
  11921. .cfi_endproc
  11922. .LFE0:
  11923. .size test, .-test
  11924. .ident "GCC: (GNU) 7.0.0 20160809 (experimental)"
  11925. .section .note.GNU-stack,"",@progbits
  11926. The comments are intended for humans rather than machines and hence
  11927. the precise format of the comments is subject to change.
  11928. '-frecord-gcc-switches'
  11929. This switch causes the command line used to invoke the compiler to
  11930. be recorded into the object file that is being created. This
  11931. switch is only implemented on some targets and the exact format of
  11932. the recording is target and binary file format dependent, but it
  11933. usually takes the form of a section containing ASCII text. This
  11934. switch is related to the '-fverbose-asm' switch, but that switch
  11935. only records information in the assembler output file as comments,
  11936. so it never reaches the object file. See also
  11937. '-grecord-gcc-switches' for another way of storing compiler options
  11938. into the object file.
  11939. '-fpic'
  11940. Generate position-independent code (PIC) suitable for use in a
  11941. shared library, if supported for the target machine. Such code
  11942. accesses all constant addresses through a global offset table
  11943. (GOT). The dynamic loader resolves the GOT entries when the
  11944. program starts (the dynamic loader is not part of GCC; it is part
  11945. of the operating system). If the GOT size for the linked
  11946. executable exceeds a machine-specific maximum size, you get an
  11947. error message from the linker indicating that '-fpic' does not
  11948. work; in that case, recompile with '-fPIC' instead. (These
  11949. maximums are 8k on the SPARC, 28k on AArch64 and 32k on the m68k
  11950. and RS/6000. The x86 has no such limit.)
  11951. Position-independent code requires special support, and therefore
  11952. works only on certain machines. For the x86, GCC supports PIC for
  11953. System V but not for the Sun 386i. Code generated for the IBM
  11954. RS/6000 is always position-independent.
  11955. When this flag is set, the macros '__pic__' and '__PIC__' are
  11956. defined to 1.
  11957. '-fPIC'
  11958. If supported for the target machine, emit position-independent
  11959. code, suitable for dynamic linking and avoiding any limit on the
  11960. size of the global offset table. This option makes a difference on
  11961. AArch64, m68k, PowerPC and SPARC.
  11962. Position-independent code requires special support, and therefore
  11963. works only on certain machines.
  11964. When this flag is set, the macros '__pic__' and '__PIC__' are
  11965. defined to 2.
  11966. '-fpie'
  11967. '-fPIE'
  11968. These options are similar to '-fpic' and '-fPIC', but the generated
  11969. position-independent code can be only linked into executables.
  11970. Usually these options are used to compile code that will be linked
  11971. using the '-pie' GCC option.
  11972. '-fpie' and '-fPIE' both define the macros '__pie__' and '__PIE__'.
  11973. The macros have the value 1 for '-fpie' and 2 for '-fPIE'.
  11974. '-fno-plt'
  11975. Do not use the PLT for external function calls in
  11976. position-independent code. Instead, load the callee address at
  11977. call sites from the GOT and branch to it. This leads to more
  11978. efficient code by eliminating PLT stubs and exposing GOT loads to
  11979. optimizations. On architectures such as 32-bit x86 where PLT stubs
  11980. expect the GOT pointer in a specific register, this gives more
  11981. register allocation freedom to the compiler. Lazy binding requires
  11982. use of the PLT; with '-fno-plt' all external symbols are resolved
  11983. at load time.
  11984. Alternatively, the function attribute 'noplt' can be used to avoid
  11985. calls through the PLT for specific external functions.
  11986. In position-dependent code, a few targets also convert calls to
  11987. functions that are marked to not use the PLT to use the GOT
  11988. instead.
  11989. '-fno-jump-tables'
  11990. Do not use jump tables for switch statements even where it would be
  11991. more efficient than other code generation strategies. This option
  11992. is of use in conjunction with '-fpic' or '-fPIC' for building code
  11993. that forms part of a dynamic linker and cannot reference the
  11994. address of a jump table. On some targets, jump tables do not
  11995. require a GOT and this option is not needed.
  11996. '-ffixed-REG'
  11997. Treat the register named REG as a fixed register; generated code
  11998. should never refer to it (except perhaps as a stack pointer, frame
  11999. pointer or in some other fixed role).
  12000. REG must be the name of a register. The register names accepted
  12001. are machine-specific and are defined in the 'REGISTER_NAMES' macro
  12002. in the machine description macro file.
  12003. This flag does not have a negative form, because it specifies a
  12004. three-way choice.
  12005. '-fcall-used-REG'
  12006. Treat the register named REG as an allocable register that is
  12007. clobbered by function calls. It may be allocated for temporaries
  12008. or variables that do not live across a call. Functions compiled
  12009. this way do not save and restore the register REG.
  12010. It is an error to use this flag with the frame pointer or stack
  12011. pointer. Use of this flag for other registers that have fixed
  12012. pervasive roles in the machine's execution model produces
  12013. disastrous results.
  12014. This flag does not have a negative form, because it specifies a
  12015. three-way choice.
  12016. '-fcall-saved-REG'
  12017. Treat the register named REG as an allocable register saved by
  12018. functions. It may be allocated even for temporaries or variables
  12019. that live across a call. Functions compiled this way save and
  12020. restore the register REG if they use it.
  12021. It is an error to use this flag with the frame pointer or stack
  12022. pointer. Use of this flag for other registers that have fixed
  12023. pervasive roles in the machine's execution model produces
  12024. disastrous results.
  12025. A different sort of disaster results from the use of this flag for
  12026. a register in which function values may be returned.
  12027. This flag does not have a negative form, because it specifies a
  12028. three-way choice.
  12029. '-fpack-struct[=N]'
  12030. Without a value specified, pack all structure members together
  12031. without holes. When a value is specified (which must be a small
  12032. power of two), pack structure members according to this value,
  12033. representing the maximum alignment (that is, objects with default
  12034. alignment requirements larger than this are output potentially
  12035. unaligned at the next fitting location.
  12036. *Warning:* the '-fpack-struct' switch causes GCC to generate code
  12037. that is not binary compatible with code generated without that
  12038. switch. Additionally, it makes the code suboptimal. Use it to
  12039. conform to a non-default application binary interface.
  12040. '-fleading-underscore'
  12041. This option and its counterpart, '-fno-leading-underscore',
  12042. forcibly change the way C symbols are represented in the object
  12043. file. One use is to help link with legacy assembly code.
  12044. *Warning:* the '-fleading-underscore' switch causes GCC to generate
  12045. code that is not binary compatible with code generated without that
  12046. switch. Use it to conform to a non-default application binary
  12047. interface. Not all targets provide complete support for this
  12048. switch.
  12049. '-ftls-model=MODEL'
  12050. Alter the thread-local storage model to be used (*note
  12051. Thread-Local::). The MODEL argument should be one of
  12052. 'global-dynamic', 'local-dynamic', 'initial-exec' or 'local-exec'.
  12053. Note that the choice is subject to optimization: the compiler may
  12054. use a more efficient model for symbols not visible outside of the
  12055. translation unit, or if '-fpic' is not given on the command line.
  12056. The default without '-fpic' is 'initial-exec'; with '-fpic' the
  12057. default is 'global-dynamic'.
  12058. '-ftrampolines'
  12059. For targets that normally need trampolines for nested functions,
  12060. always generate them instead of using descriptors. Otherwise, for
  12061. targets that do not need them, like for example HP-PA or IA-64, do
  12062. nothing.
  12063. A trampoline is a small piece of code that is created at run time
  12064. on the stack when the address of a nested function is taken, and is
  12065. used to call the nested function indirectly. Therefore, it
  12066. requires the stack to be made executable in order for the program
  12067. to work properly.
  12068. '-fno-trampolines' is enabled by default on a language by language
  12069. basis to let the compiler avoid generating them, if it computes
  12070. that this is safe, and replace them with descriptors. Descriptors
  12071. are made up of data only, but the generated code must be prepared
  12072. to deal with them. As of this writing, '-fno-trampolines' is
  12073. enabled by default only for Ada.
  12074. Moreover, code compiled with '-ftrampolines' and code compiled with
  12075. '-fno-trampolines' are not binary compatible if nested functions
  12076. are present. This option must therefore be used on a program-wide
  12077. basis and be manipulated with extreme care.
  12078. '-fvisibility=[default|internal|hidden|protected]'
  12079. Set the default ELF image symbol visibility to the specified
  12080. option--all symbols are marked with this unless overridden within
  12081. the code. Using this feature can very substantially improve
  12082. linking and load times of shared object libraries, produce more
  12083. optimized code, provide near-perfect API export and prevent symbol
  12084. clashes. It is *strongly* recommended that you use this in any
  12085. shared objects you distribute.
  12086. Despite the nomenclature, 'default' always means public; i.e.,
  12087. available to be linked against from outside the shared object.
  12088. 'protected' and 'internal' are pretty useless in real-world usage
  12089. so the only other commonly used option is 'hidden'. The default if
  12090. '-fvisibility' isn't specified is 'default', i.e., make every
  12091. symbol public.
  12092. A good explanation of the benefits offered by ensuring ELF symbols
  12093. have the correct visibility is given by "How To Write Shared
  12094. Libraries" by Ulrich Drepper (which can be found at
  12095. <https://www.akkadia.org/drepper/>)--however a superior solution
  12096. made possible by this option to marking things hidden when the
  12097. default is public is to make the default hidden and mark things
  12098. public. This is the norm with DLLs on Windows and with
  12099. '-fvisibility=hidden' and '__attribute__ ((visibility("default")))'
  12100. instead of '__declspec(dllexport)' you get almost identical
  12101. semantics with identical syntax. This is a great boon to those
  12102. working with cross-platform projects.
  12103. For those adding visibility support to existing code, you may find
  12104. '#pragma GCC visibility' of use. This works by you enclosing the
  12105. declarations you wish to set visibility for with (for example)
  12106. '#pragma GCC visibility push(hidden)' and '#pragma GCC visibility
  12107. pop'. Bear in mind that symbol visibility should be viewed *as
  12108. part of the API interface contract* and thus all new code should
  12109. always specify visibility when it is not the default; i.e.,
  12110. declarations only for use within the local DSO should *always* be
  12111. marked explicitly as hidden as so to avoid PLT indirection
  12112. overheads--making this abundantly clear also aids readability and
  12113. self-documentation of the code. Note that due to ISO C++
  12114. specification requirements, 'operator new' and 'operator delete'
  12115. must always be of default visibility.
  12116. Be aware that headers from outside your project, in particular
  12117. system headers and headers from any other library you use, may not
  12118. be expecting to be compiled with visibility other than the default.
  12119. You may need to explicitly say '#pragma GCC visibility
  12120. push(default)' before including any such headers.
  12121. 'extern' declarations are not affected by '-fvisibility', so a lot
  12122. of code can be recompiled with '-fvisibility=hidden' with no
  12123. modifications. However, this means that calls to 'extern'
  12124. functions with no explicit visibility use the PLT, so it is more
  12125. effective to use '__attribute ((visibility))' and/or '#pragma GCC
  12126. visibility' to tell the compiler which 'extern' declarations should
  12127. be treated as hidden.
  12128. Note that '-fvisibility' does affect C++ vague linkage entities.
  12129. This means that, for instance, an exception class that is be thrown
  12130. between DSOs must be explicitly marked with default visibility so
  12131. that the 'type_info' nodes are unified between the DSOs.
  12132. An overview of these techniques, their benefits and how to use them
  12133. is at <http://gcc.gnu.org/wiki/Visibility>.
  12134. '-fstrict-volatile-bitfields'
  12135. This option should be used if accesses to volatile bit-fields (or
  12136. other structure fields, although the compiler usually honors those
  12137. types anyway) should use a single access of the width of the
  12138. field's type, aligned to a natural alignment if possible. For
  12139. example, targets with memory-mapped peripheral registers might
  12140. require all such accesses to be 16 bits wide; with this flag you
  12141. can declare all peripheral bit-fields as 'unsigned short' (assuming
  12142. short is 16 bits on these targets) to force GCC to use 16-bit
  12143. accesses instead of, perhaps, a more efficient 32-bit access.
  12144. If this option is disabled, the compiler uses the most efficient
  12145. instruction. In the previous example, that might be a 32-bit load
  12146. instruction, even though that accesses bytes that do not contain
  12147. any portion of the bit-field, or memory-mapped registers unrelated
  12148. to the one being updated.
  12149. In some cases, such as when the 'packed' attribute is applied to a
  12150. structure field, it may not be possible to access the field with a
  12151. single read or write that is correctly aligned for the target
  12152. machine. In this case GCC falls back to generating multiple
  12153. accesses rather than code that will fault or truncate the result at
  12154. run time.
  12155. Note: Due to restrictions of the C/C++11 memory model, write
  12156. accesses are not allowed to touch non bit-field members. It is
  12157. therefore recommended to define all bits of the field's type as
  12158. bit-field members.
  12159. The default value of this option is determined by the application
  12160. binary interface for the target processor.
  12161. '-fsync-libcalls'
  12162. This option controls whether any out-of-line instance of the
  12163. '__sync' family of functions may be used to implement the C++11
  12164. '__atomic' family of functions.
  12165. The default value of this option is enabled, thus the only useful
  12166. form of the option is '-fno-sync-libcalls'. This option is used in
  12167. the implementation of the 'libatomic' runtime library.
  12168. 
  12169. File: gcc.info, Node: Developer Options, Next: Submodel Options, Prev: Code Gen Options, Up: Invoking GCC
  12170. 3.18 GCC Developer Options
  12171. ==========================
  12172. This section describes command-line options that are primarily of
  12173. interest to GCC developers, including options to support compiler
  12174. testing and investigation of compiler bugs and compile-time performance
  12175. problems. This includes options that produce debug dumps at various
  12176. points in the compilation; that print statistics such as memory use and
  12177. execution time; and that print information about GCC's configuration,
  12178. such as where it searches for libraries. You should rarely need to use
  12179. any of these options for ordinary compilation and linking tasks.
  12180. Many developer options that cause GCC to dump output to a file take an
  12181. optional '=FILENAME' suffix. You can specify 'stdout' or '-' to dump to
  12182. standard output, and 'stderr' for standard error.
  12183. If '=FILENAME' is omitted, a default dump file name is constructed by
  12184. concatenating the base dump file name, a pass number, phase letter, and
  12185. pass name. The base dump file name is the name of output file produced
  12186. by the compiler if explicitly specified and not an executable; otherwise
  12187. it is the source file name. The pass number is determined by the order
  12188. passes are registered with the compiler's pass manager. This is
  12189. generally the same as the order of execution, but passes registered by
  12190. plugins, target-specific passes, or passes that are otherwise registered
  12191. late are numbered higher than the pass named 'final', even if they are
  12192. executed earlier. The phase letter is one of 'i' (inter-procedural
  12193. analysis), 'l' (language-specific), 'r' (RTL), or 't' (tree). The files
  12194. are created in the directory of the output file.
  12195. '-fcallgraph-info'
  12196. '-fcallgraph-info=MARKERS'
  12197. Makes the compiler output callgraph information for the program, on
  12198. a per-object-file basis. The information is generated in the
  12199. common VCG format. It can be decorated with additional, per-node
  12200. and/or per-edge information, if a list of comma-separated markers
  12201. is additionally specified. When the 'su' marker is specified, the
  12202. callgraph is decorated with stack usage information; it is
  12203. equivalent to '-fstack-usage'. When the 'da' marker is specified,
  12204. the callgraph is decorated with information about dynamically
  12205. allocated objects.
  12206. When compiling with '-flto', no callgraph information is output
  12207. along with the object file. At LTO link time, '-fcallgraph-info'
  12208. may generate multiple callgraph information files next to
  12209. intermediate LTO output files.
  12210. '-dLETTERS'
  12211. '-fdump-rtl-PASS'
  12212. '-fdump-rtl-PASS=FILENAME'
  12213. Says to make debugging dumps during compilation at times specified
  12214. by LETTERS. This is used for debugging the RTL-based passes of the
  12215. compiler.
  12216. Some '-dLETTERS' switches have different meaning when '-E' is used
  12217. for preprocessing. *Note Preprocessor Options::, for information
  12218. about preprocessor-specific dump options.
  12219. Debug dumps can be enabled with a '-fdump-rtl' switch or some '-d'
  12220. option LETTERS. Here are the possible letters for use in PASS and
  12221. LETTERS, and their meanings:
  12222. '-fdump-rtl-alignments'
  12223. Dump after branch alignments have been computed.
  12224. '-fdump-rtl-asmcons'
  12225. Dump after fixing rtl statements that have unsatisfied in/out
  12226. constraints.
  12227. '-fdump-rtl-auto_inc_dec'
  12228. Dump after auto-inc-dec discovery. This pass is only run on
  12229. architectures that have auto inc or auto dec instructions.
  12230. '-fdump-rtl-barriers'
  12231. Dump after cleaning up the barrier instructions.
  12232. '-fdump-rtl-bbpart'
  12233. Dump after partitioning hot and cold basic blocks.
  12234. '-fdump-rtl-bbro'
  12235. Dump after block reordering.
  12236. '-fdump-rtl-btl1'
  12237. '-fdump-rtl-btl2'
  12238. '-fdump-rtl-btl1' and '-fdump-rtl-btl2' enable dumping after
  12239. the two branch target load optimization passes.
  12240. '-fdump-rtl-bypass'
  12241. Dump after jump bypassing and control flow optimizations.
  12242. '-fdump-rtl-combine'
  12243. Dump after the RTL instruction combination pass.
  12244. '-fdump-rtl-compgotos'
  12245. Dump after duplicating the computed gotos.
  12246. '-fdump-rtl-ce1'
  12247. '-fdump-rtl-ce2'
  12248. '-fdump-rtl-ce3'
  12249. '-fdump-rtl-ce1', '-fdump-rtl-ce2', and '-fdump-rtl-ce3'
  12250. enable dumping after the three if conversion passes.
  12251. '-fdump-rtl-cprop_hardreg'
  12252. Dump after hard register copy propagation.
  12253. '-fdump-rtl-csa'
  12254. Dump after combining stack adjustments.
  12255. '-fdump-rtl-cse1'
  12256. '-fdump-rtl-cse2'
  12257. '-fdump-rtl-cse1' and '-fdump-rtl-cse2' enable dumping after
  12258. the two common subexpression elimination passes.
  12259. '-fdump-rtl-dce'
  12260. Dump after the standalone dead code elimination passes.
  12261. '-fdump-rtl-dbr'
  12262. Dump after delayed branch scheduling.
  12263. '-fdump-rtl-dce1'
  12264. '-fdump-rtl-dce2'
  12265. '-fdump-rtl-dce1' and '-fdump-rtl-dce2' enable dumping after
  12266. the two dead store elimination passes.
  12267. '-fdump-rtl-eh'
  12268. Dump after finalization of EH handling code.
  12269. '-fdump-rtl-eh_ranges'
  12270. Dump after conversion of EH handling range regions.
  12271. '-fdump-rtl-expand'
  12272. Dump after RTL generation.
  12273. '-fdump-rtl-fwprop1'
  12274. '-fdump-rtl-fwprop2'
  12275. '-fdump-rtl-fwprop1' and '-fdump-rtl-fwprop2' enable dumping
  12276. after the two forward propagation passes.
  12277. '-fdump-rtl-gcse1'
  12278. '-fdump-rtl-gcse2'
  12279. '-fdump-rtl-gcse1' and '-fdump-rtl-gcse2' enable dumping after
  12280. global common subexpression elimination.
  12281. '-fdump-rtl-init-regs'
  12282. Dump after the initialization of the registers.
  12283. '-fdump-rtl-initvals'
  12284. Dump after the computation of the initial value sets.
  12285. '-fdump-rtl-into_cfglayout'
  12286. Dump after converting to cfglayout mode.
  12287. '-fdump-rtl-ira'
  12288. Dump after iterated register allocation.
  12289. '-fdump-rtl-jump'
  12290. Dump after the second jump optimization.
  12291. '-fdump-rtl-loop2'
  12292. '-fdump-rtl-loop2' enables dumping after the rtl loop
  12293. optimization passes.
  12294. '-fdump-rtl-mach'
  12295. Dump after performing the machine dependent reorganization
  12296. pass, if that pass exists.
  12297. '-fdump-rtl-mode_sw'
  12298. Dump after removing redundant mode switches.
  12299. '-fdump-rtl-rnreg'
  12300. Dump after register renumbering.
  12301. '-fdump-rtl-outof_cfglayout'
  12302. Dump after converting from cfglayout mode.
  12303. '-fdump-rtl-peephole2'
  12304. Dump after the peephole pass.
  12305. '-fdump-rtl-postreload'
  12306. Dump after post-reload optimizations.
  12307. '-fdump-rtl-pro_and_epilogue'
  12308. Dump after generating the function prologues and epilogues.
  12309. '-fdump-rtl-sched1'
  12310. '-fdump-rtl-sched2'
  12311. '-fdump-rtl-sched1' and '-fdump-rtl-sched2' enable dumping
  12312. after the basic block scheduling passes.
  12313. '-fdump-rtl-ree'
  12314. Dump after sign/zero extension elimination.
  12315. '-fdump-rtl-seqabstr'
  12316. Dump after common sequence discovery.
  12317. '-fdump-rtl-shorten'
  12318. Dump after shortening branches.
  12319. '-fdump-rtl-sibling'
  12320. Dump after sibling call optimizations.
  12321. '-fdump-rtl-split1'
  12322. '-fdump-rtl-split2'
  12323. '-fdump-rtl-split3'
  12324. '-fdump-rtl-split4'
  12325. '-fdump-rtl-split5'
  12326. These options enable dumping after five rounds of instruction
  12327. splitting.
  12328. '-fdump-rtl-sms'
  12329. Dump after modulo scheduling. This pass is only run on some
  12330. architectures.
  12331. '-fdump-rtl-stack'
  12332. Dump after conversion from GCC's "flat register file"
  12333. registers to the x87's stack-like registers. This pass is
  12334. only run on x86 variants.
  12335. '-fdump-rtl-subreg1'
  12336. '-fdump-rtl-subreg2'
  12337. '-fdump-rtl-subreg1' and '-fdump-rtl-subreg2' enable dumping
  12338. after the two subreg expansion passes.
  12339. '-fdump-rtl-unshare'
  12340. Dump after all rtl has been unshared.
  12341. '-fdump-rtl-vartrack'
  12342. Dump after variable tracking.
  12343. '-fdump-rtl-vregs'
  12344. Dump after converting virtual registers to hard registers.
  12345. '-fdump-rtl-web'
  12346. Dump after live range splitting.
  12347. '-fdump-rtl-regclass'
  12348. '-fdump-rtl-subregs_of_mode_init'
  12349. '-fdump-rtl-subregs_of_mode_finish'
  12350. '-fdump-rtl-dfinit'
  12351. '-fdump-rtl-dfinish'
  12352. These dumps are defined but always produce empty files.
  12353. '-da'
  12354. '-fdump-rtl-all'
  12355. Produce all the dumps listed above.
  12356. '-dA'
  12357. Annotate the assembler output with miscellaneous debugging
  12358. information.
  12359. '-dD'
  12360. Dump all macro definitions, at the end of preprocessing, in
  12361. addition to normal output.
  12362. '-dH'
  12363. Produce a core dump whenever an error occurs.
  12364. '-dp'
  12365. Annotate the assembler output with a comment indicating which
  12366. pattern and alternative is used. The length and cost of each
  12367. instruction are also printed.
  12368. '-dP'
  12369. Dump the RTL in the assembler output as a comment before each
  12370. instruction. Also turns on '-dp' annotation.
  12371. '-dx'
  12372. Just generate RTL for a function instead of compiling it.
  12373. Usually used with '-fdump-rtl-expand'.
  12374. '-fdump-debug'
  12375. Dump debugging information generated during the debug generation
  12376. phase.
  12377. '-fdump-earlydebug'
  12378. Dump debugging information generated during the early debug
  12379. generation phase.
  12380. '-fdump-noaddr'
  12381. When doing debugging dumps, suppress address output. This makes it
  12382. more feasible to use diff on debugging dumps for compiler
  12383. invocations with different compiler binaries and/or different text
  12384. / bss / data / heap / stack / dso start locations.
  12385. '-freport-bug'
  12386. Collect and dump debug information into a temporary file if an
  12387. internal compiler error (ICE) occurs.
  12388. '-fdump-unnumbered'
  12389. When doing debugging dumps, suppress instruction numbers and
  12390. address output. This makes it more feasible to use diff on
  12391. debugging dumps for compiler invocations with different options, in
  12392. particular with and without '-g'.
  12393. '-fdump-unnumbered-links'
  12394. When doing debugging dumps (see '-d' option above), suppress
  12395. instruction numbers for the links to the previous and next
  12396. instructions in a sequence.
  12397. '-fdump-ipa-SWITCH'
  12398. '-fdump-ipa-SWITCH-OPTIONS'
  12399. Control the dumping at various stages of inter-procedural analysis
  12400. language tree to a file. The file name is generated by appending a
  12401. switch specific suffix to the source file name, and the file is
  12402. created in the same directory as the output file. The following
  12403. dumps are possible:
  12404. 'all'
  12405. Enables all inter-procedural analysis dumps.
  12406. 'cgraph'
  12407. Dumps information about call-graph optimization, unused
  12408. function removal, and inlining decisions.
  12409. 'inline'
  12410. Dump after function inlining.
  12411. Additionally, the options '-optimized', '-missed', '-note', and
  12412. '-all' can be provided, with the same meaning as for '-fopt-info',
  12413. defaulting to '-optimized'.
  12414. For example, '-fdump-ipa-inline-optimized-missed' will emit
  12415. information on callsites that were inlined, along with callsites
  12416. that were not inlined.
  12417. By default, the dump will contain messages about successful
  12418. optimizations (equivalent to '-optimized') together with low-level
  12419. details about the analysis.
  12420. '-fdump-lang-all'
  12421. '-fdump-lang-SWITCH'
  12422. '-fdump-lang-SWITCH-OPTIONS'
  12423. '-fdump-lang-SWITCH-OPTIONS=FILENAME'
  12424. Control the dumping of language-specific information. The OPTIONS
  12425. and FILENAME portions behave as described in the '-fdump-tree'
  12426. option. The following SWITCH values are accepted:
  12427. 'all'
  12428. Enable all language-specific dumps.
  12429. 'class'
  12430. Dump class hierarchy information. Virtual table information
  12431. is emitted unless ''slim'' is specified. This option is
  12432. applicable to C++ only.
  12433. 'raw'
  12434. Dump the raw internal tree data. This option is applicable to
  12435. C++ only.
  12436. '-fdump-passes'
  12437. Print on 'stderr' the list of optimization passes that are turned
  12438. on and off by the current command-line options.
  12439. '-fdump-statistics-OPTION'
  12440. Enable and control dumping of pass statistics in a separate file.
  12441. The file name is generated by appending a suffix ending in
  12442. '.statistics' to the source file name, and the file is created in
  12443. the same directory as the output file. If the '-OPTION' form is
  12444. used, '-stats' causes counters to be summed over the whole
  12445. compilation unit while '-details' dumps every event as the passes
  12446. generate them. The default with no option is to sum counters for
  12447. each function compiled.
  12448. '-fdump-tree-all'
  12449. '-fdump-tree-SWITCH'
  12450. '-fdump-tree-SWITCH-OPTIONS'
  12451. '-fdump-tree-SWITCH-OPTIONS=FILENAME'
  12452. Control the dumping at various stages of processing the
  12453. intermediate language tree to a file. If the '-OPTIONS' form is
  12454. used, OPTIONS is a list of '-' separated options which control the
  12455. details of the dump. Not all options are applicable to all dumps;
  12456. those that are not meaningful are ignored. The following options
  12457. are available
  12458. 'address'
  12459. Print the address of each node. Usually this is not
  12460. meaningful as it changes according to the environment and
  12461. source file. Its primary use is for tying up a dump file with
  12462. a debug environment.
  12463. 'asmname'
  12464. If 'DECL_ASSEMBLER_NAME' has been set for a given decl, use
  12465. that in the dump instead of 'DECL_NAME'. Its primary use is
  12466. ease of use working backward from mangled names in the
  12467. assembly file.
  12468. 'slim'
  12469. When dumping front-end intermediate representations, inhibit
  12470. dumping of members of a scope or body of a function merely
  12471. because that scope has been reached. Only dump such items
  12472. when they are directly reachable by some other path.
  12473. When dumping pretty-printed trees, this option inhibits
  12474. dumping the bodies of control structures.
  12475. When dumping RTL, print the RTL in slim (condensed) form
  12476. instead of the default LISP-like representation.
  12477. 'raw'
  12478. Print a raw representation of the tree. By default, trees are
  12479. pretty-printed into a C-like representation.
  12480. 'details'
  12481. Enable more detailed dumps (not honored by every dump option).
  12482. Also include information from the optimization passes.
  12483. 'stats'
  12484. Enable dumping various statistics about the pass (not honored
  12485. by every dump option).
  12486. 'blocks'
  12487. Enable showing basic block boundaries (disabled in raw dumps).
  12488. 'graph'
  12489. For each of the other indicated dump files
  12490. ('-fdump-rtl-PASS'), dump a representation of the control flow
  12491. graph suitable for viewing with GraphViz to
  12492. 'FILE.PASSID.PASS.dot'. Each function in the file is
  12493. pretty-printed as a subgraph, so that GraphViz can render them
  12494. all in a single plot.
  12495. This option currently only works for RTL dumps, and the RTL is
  12496. always dumped in slim form.
  12497. 'vops'
  12498. Enable showing virtual operands for every statement.
  12499. 'lineno'
  12500. Enable showing line numbers for statements.
  12501. 'uid'
  12502. Enable showing the unique ID ('DECL_UID') for each variable.
  12503. 'verbose'
  12504. Enable showing the tree dump for each statement.
  12505. 'eh'
  12506. Enable showing the EH region number holding each statement.
  12507. 'scev'
  12508. Enable showing scalar evolution analysis details.
  12509. 'optimized'
  12510. Enable showing optimization information (only available in
  12511. certain passes).
  12512. 'missed'
  12513. Enable showing missed optimization information (only available
  12514. in certain passes).
  12515. 'note'
  12516. Enable other detailed optimization information (only available
  12517. in certain passes).
  12518. 'all'
  12519. Turn on all options, except 'raw', 'slim', 'verbose' and
  12520. 'lineno'.
  12521. 'optall'
  12522. Turn on all optimization options, i.e., 'optimized', 'missed',
  12523. and 'note'.
  12524. To determine what tree dumps are available or find the dump for a
  12525. pass of interest follow the steps below.
  12526. 1. Invoke GCC with '-fdump-passes' and in the 'stderr' output
  12527. look for a code that corresponds to the pass you are
  12528. interested in. For example, the codes 'tree-evrp',
  12529. 'tree-vrp1', and 'tree-vrp2' correspond to the three Value
  12530. Range Propagation passes. The number at the end distinguishes
  12531. distinct invocations of the same pass.
  12532. 2. To enable the creation of the dump file, append the pass code
  12533. to the '-fdump-' option prefix and invoke GCC with it. For
  12534. example, to enable the dump from the Early Value Range
  12535. Propagation pass, invoke GCC with the '-fdump-tree-evrp'
  12536. option. Optionally, you may specify the name of the dump
  12537. file. If you don't specify one, GCC creates as described
  12538. below.
  12539. 3. Find the pass dump in a file whose name is composed of three
  12540. components separated by a period: the name of the source file
  12541. GCC was invoked to compile, a numeric suffix indicating the
  12542. pass number followed by the letter 't' for tree passes (and
  12543. the letter 'r' for RTL passes), and finally the pass code.
  12544. For example, the Early VRP pass dump might be in a file named
  12545. 'myfile.c.038t.evrp' in the current working directory. Note
  12546. that the numeric codes are not stable and may change from one
  12547. version of GCC to another.
  12548. '-fopt-info'
  12549. '-fopt-info-OPTIONS'
  12550. '-fopt-info-OPTIONS=FILENAME'
  12551. Controls optimization dumps from various optimization passes. If
  12552. the '-OPTIONS' form is used, OPTIONS is a list of '-' separated
  12553. option keywords to select the dump details and optimizations.
  12554. The OPTIONS can be divided into three groups:
  12555. 1. options describing what kinds of messages should be emitted,
  12556. 2. options describing the verbosity of the dump, and
  12557. 3. options describing which optimizations should be included.
  12558. The options from each group can be freely mixed as they are
  12559. non-overlapping. However, in case of any conflicts, the later
  12560. options override the earlier options on the command line.
  12561. The following options control which kinds of messages should be
  12562. emitted:
  12563. 'optimized'
  12564. Print information when an optimization is successfully
  12565. applied. It is up to a pass to decide which information is
  12566. relevant. For example, the vectorizer passes print the source
  12567. location of loops which are successfully vectorized.
  12568. 'missed'
  12569. Print information about missed optimizations. Individual
  12570. passes control which information to include in the output.
  12571. 'note'
  12572. Print verbose information about optimizations, such as certain
  12573. transformations, more detailed messages about decisions etc.
  12574. 'all'
  12575. Print detailed optimization information. This includes
  12576. 'optimized', 'missed', and 'note'.
  12577. The following option controls the dump verbosity:
  12578. 'internals'
  12579. By default, only "high-level" messages are emitted. This
  12580. option enables additional, more detailed, messages, which are
  12581. likely to only be of interest to GCC developers.
  12582. One or more of the following option keywords can be used to
  12583. describe a group of optimizations:
  12584. 'ipa'
  12585. Enable dumps from all interprocedural optimizations.
  12586. 'loop'
  12587. Enable dumps from all loop optimizations.
  12588. 'inline'
  12589. Enable dumps from all inlining optimizations.
  12590. 'omp'
  12591. Enable dumps from all OMP (Offloading and Multi Processing)
  12592. optimizations.
  12593. 'vec'
  12594. Enable dumps from all vectorization optimizations.
  12595. 'optall'
  12596. Enable dumps from all optimizations. This is a superset of
  12597. the optimization groups listed above.
  12598. If OPTIONS is omitted, it defaults to 'optimized-optall', which
  12599. means to dump messages about successful optimizations from all the
  12600. passes, omitting messages that are treated as "internals".
  12601. If the FILENAME is provided, then the dumps from all the applicable
  12602. optimizations are concatenated into the FILENAME. Otherwise the
  12603. dump is output onto 'stderr'. Though multiple '-fopt-info' options
  12604. are accepted, only one of them can include a FILENAME. If other
  12605. filenames are provided then all but the first such option are
  12606. ignored.
  12607. Note that the output FILENAME is overwritten in case of multiple
  12608. translation units. If a combined output from multiple translation
  12609. units is desired, 'stderr' should be used instead.
  12610. In the following example, the optimization info is output to
  12611. 'stderr':
  12612. gcc -O3 -fopt-info
  12613. This example:
  12614. gcc -O3 -fopt-info-missed=missed.all
  12615. outputs missed optimization report from all the passes into
  12616. 'missed.all', and this one:
  12617. gcc -O2 -ftree-vectorize -fopt-info-vec-missed
  12618. prints information about missed optimization opportunities from
  12619. vectorization passes on 'stderr'. Note that
  12620. '-fopt-info-vec-missed' is equivalent to '-fopt-info-missed-vec'.
  12621. The order of the optimization group names and message types listed
  12622. after '-fopt-info' does not matter.
  12623. As another example,
  12624. gcc -O3 -fopt-info-inline-optimized-missed=inline.txt
  12625. outputs information about missed optimizations as well as optimized
  12626. locations from all the inlining passes into 'inline.txt'.
  12627. Finally, consider:
  12628. gcc -fopt-info-vec-missed=vec.miss -fopt-info-loop-optimized=loop.opt
  12629. Here the two output filenames 'vec.miss' and 'loop.opt' are in
  12630. conflict since only one output file is allowed. In this case, only
  12631. the first option takes effect and the subsequent options are
  12632. ignored. Thus only 'vec.miss' is produced which contains dumps
  12633. from the vectorizer about missed opportunities.
  12634. '-fsave-optimization-record'
  12635. Write a SRCFILE.opt-record.json.gz file detailing what
  12636. optimizations were performed, for those optimizations that support
  12637. '-fopt-info'.
  12638. This option is experimental and the format of the data within the
  12639. compressed JSON file is subject to change.
  12640. It is roughly equivalent to a machine-readable version of
  12641. '-fopt-info-all', as a collection of messages with source file,
  12642. line number and column number, with the following additional data
  12643. for each message:
  12644. * the execution count of the code being optimized, along with
  12645. metadata about whether this was from actual profile data, or
  12646. just an estimate, allowing consumers to prioritize messages by
  12647. code hotness,
  12648. * the function name of the code being optimized, where
  12649. applicable,
  12650. * the "inlining chain" for the code being optimized, so that
  12651. when a function is inlined into several different places
  12652. (which might themselves be inlined), the reader can
  12653. distinguish between the copies,
  12654. * objects identifying those parts of the message that refer to
  12655. expressions, statements or symbol-table nodes, which of these
  12656. categories they are, and, when available, their source code
  12657. location,
  12658. * the GCC pass that emitted the message, and
  12659. * the location in GCC's own code from which the message was
  12660. emitted
  12661. Additionally, some messages are logically nested within other
  12662. messages, reflecting implementation details of the optimization
  12663. passes.
  12664. '-fsched-verbose=N'
  12665. On targets that use instruction scheduling, this option controls
  12666. the amount of debugging output the scheduler prints to the dump
  12667. files.
  12668. For N greater than zero, '-fsched-verbose' outputs the same
  12669. information as '-fdump-rtl-sched1' and '-fdump-rtl-sched2'. For N
  12670. greater than one, it also output basic block probabilities,
  12671. detailed ready list information and unit/insn info. For N greater
  12672. than two, it includes RTL at abort point, control-flow and regions
  12673. info. And for N over four, '-fsched-verbose' also includes
  12674. dependence info.
  12675. '-fenable-KIND-PASS'
  12676. '-fdisable-KIND-PASS=RANGE-LIST'
  12677. This is a set of options that are used to explicitly disable/enable
  12678. optimization passes. These options are intended for use for
  12679. debugging GCC. Compiler users should use regular options for
  12680. enabling/disabling passes instead.
  12681. '-fdisable-ipa-PASS'
  12682. Disable IPA pass PASS. PASS is the pass name. If the same
  12683. pass is statically invoked in the compiler multiple times, the
  12684. pass name should be appended with a sequential number starting
  12685. from 1.
  12686. '-fdisable-rtl-PASS'
  12687. '-fdisable-rtl-PASS=RANGE-LIST'
  12688. Disable RTL pass PASS. PASS is the pass name. If the same
  12689. pass is statically invoked in the compiler multiple times, the
  12690. pass name should be appended with a sequential number starting
  12691. from 1. RANGE-LIST is a comma-separated list of function
  12692. ranges or assembler names. Each range is a number pair
  12693. separated by a colon. The range is inclusive in both ends.
  12694. If the range is trivial, the number pair can be simplified as
  12695. a single number. If the function's call graph node's UID
  12696. falls within one of the specified ranges, the PASS is disabled
  12697. for that function. The UID is shown in the function header of
  12698. a dump file, and the pass names can be dumped by using option
  12699. '-fdump-passes'.
  12700. '-fdisable-tree-PASS'
  12701. '-fdisable-tree-PASS=RANGE-LIST'
  12702. Disable tree pass PASS. See '-fdisable-rtl' for the
  12703. description of option arguments.
  12704. '-fenable-ipa-PASS'
  12705. Enable IPA pass PASS. PASS is the pass name. If the same
  12706. pass is statically invoked in the compiler multiple times, the
  12707. pass name should be appended with a sequential number starting
  12708. from 1.
  12709. '-fenable-rtl-PASS'
  12710. '-fenable-rtl-PASS=RANGE-LIST'
  12711. Enable RTL pass PASS. See '-fdisable-rtl' for option argument
  12712. description and examples.
  12713. '-fenable-tree-PASS'
  12714. '-fenable-tree-PASS=RANGE-LIST'
  12715. Enable tree pass PASS. See '-fdisable-rtl' for the
  12716. description of option arguments.
  12717. Here are some examples showing uses of these options.
  12718. # disable ccp1 for all functions
  12719. -fdisable-tree-ccp1
  12720. # disable complete unroll for function whose cgraph node uid is 1
  12721. -fenable-tree-cunroll=1
  12722. # disable gcse2 for functions at the following ranges [1,1],
  12723. # [300,400], and [400,1000]
  12724. # disable gcse2 for functions foo and foo2
  12725. -fdisable-rtl-gcse2=foo,foo2
  12726. # disable early inlining
  12727. -fdisable-tree-einline
  12728. # disable ipa inlining
  12729. -fdisable-ipa-inline
  12730. # enable tree full unroll
  12731. -fenable-tree-unroll
  12732. '-fchecking'
  12733. '-fchecking=N'
  12734. Enable internal consistency checking. The default depends on the
  12735. compiler configuration. '-fchecking=2' enables further internal
  12736. consistency checking that might affect code generation.
  12737. '-frandom-seed=STRING'
  12738. This option provides a seed that GCC uses in place of random
  12739. numbers in generating certain symbol names that have to be
  12740. different in every compiled file. It is also used to place unique
  12741. stamps in coverage data files and the object files that produce
  12742. them. You can use the '-frandom-seed' option to produce
  12743. reproducibly identical object files.
  12744. The STRING can either be a number (decimal, octal or hex) or an
  12745. arbitrary string (in which case it's converted to a number by
  12746. computing CRC32).
  12747. The STRING should be different for every file you compile.
  12748. '-save-temps'
  12749. '-save-temps=cwd'
  12750. Store the usual "temporary" intermediate files permanently; place
  12751. them in the current directory and name them based on the source
  12752. file. Thus, compiling 'foo.c' with '-c -save-temps' produces files
  12753. 'foo.i' and 'foo.s', as well as 'foo.o'. This creates a
  12754. preprocessed 'foo.i' output file even though the compiler now
  12755. normally uses an integrated preprocessor.
  12756. When used in combination with the '-x' command-line option,
  12757. '-save-temps' is sensible enough to avoid over writing an input
  12758. source file with the same extension as an intermediate file. The
  12759. corresponding intermediate file may be obtained by renaming the
  12760. source file before using '-save-temps'.
  12761. If you invoke GCC in parallel, compiling several different source
  12762. files that share a common base name in different subdirectories or
  12763. the same source file compiled for multiple output destinations, it
  12764. is likely that the different parallel compilers will interfere with
  12765. each other, and overwrite the temporary files. For instance:
  12766. gcc -save-temps -o outdir1/foo.o indir1/foo.c&
  12767. gcc -save-temps -o outdir2/foo.o indir2/foo.c&
  12768. may result in 'foo.i' and 'foo.o' being written to simultaneously
  12769. by both compilers.
  12770. '-save-temps=obj'
  12771. Store the usual "temporary" intermediate files permanently. If the
  12772. '-o' option is used, the temporary files are based on the object
  12773. file. If the '-o' option is not used, the '-save-temps=obj' switch
  12774. behaves like '-save-temps'.
  12775. For example:
  12776. gcc -save-temps=obj -c foo.c
  12777. gcc -save-temps=obj -c bar.c -o dir/xbar.o
  12778. gcc -save-temps=obj foobar.c -o dir2/yfoobar
  12779. creates 'foo.i', 'foo.s', 'dir/xbar.i', 'dir/xbar.s',
  12780. 'dir2/yfoobar.i', 'dir2/yfoobar.s', and 'dir2/yfoobar.o'.
  12781. '-time[=FILE]'
  12782. Report the CPU time taken by each subprocess in the compilation
  12783. sequence. For C source files, this is the compiler proper and
  12784. assembler (plus the linker if linking is done).
  12785. Without the specification of an output file, the output looks like
  12786. this:
  12787. # cc1 0.12 0.01
  12788. # as 0.00 0.01
  12789. The first number on each line is the "user time", that is time
  12790. spent executing the program itself. The second number is "system
  12791. time", time spent executing operating system routines on behalf of
  12792. the program. Both numbers are in seconds.
  12793. With the specification of an output file, the output is appended to
  12794. the named file, and it looks like this:
  12795. 0.12 0.01 cc1 OPTIONS
  12796. 0.00 0.01 as OPTIONS
  12797. The "user time" and the "system time" are moved before the program
  12798. name, and the options passed to the program are displayed, so that
  12799. one can later tell what file was being compiled, and with which
  12800. options.
  12801. '-fdump-final-insns[=FILE]'
  12802. Dump the final internal representation (RTL) to FILE. If the
  12803. optional argument is omitted (or if FILE is '.'), the name of the
  12804. dump file is determined by appending '.gkd' to the compilation
  12805. output file name.
  12806. '-fcompare-debug[=OPTS]'
  12807. If no error occurs during compilation, run the compiler a second
  12808. time, adding OPTS and '-fcompare-debug-second' to the arguments
  12809. passed to the second compilation. Dump the final internal
  12810. representation in both compilations, and print an error if they
  12811. differ.
  12812. If the equal sign is omitted, the default '-gtoggle' is used.
  12813. The environment variable 'GCC_COMPARE_DEBUG', if defined, non-empty
  12814. and nonzero, implicitly enables '-fcompare-debug'. If
  12815. 'GCC_COMPARE_DEBUG' is defined to a string starting with a dash,
  12816. then it is used for OPTS, otherwise the default '-gtoggle' is used.
  12817. '-fcompare-debug=', with the equal sign but without OPTS, is
  12818. equivalent to '-fno-compare-debug', which disables the dumping of
  12819. the final representation and the second compilation, preventing
  12820. even 'GCC_COMPARE_DEBUG' from taking effect.
  12821. To verify full coverage during '-fcompare-debug' testing, set
  12822. 'GCC_COMPARE_DEBUG' to say '-fcompare-debug-not-overridden', which
  12823. GCC rejects as an invalid option in any actual compilation (rather
  12824. than preprocessing, assembly or linking). To get just a warning,
  12825. setting 'GCC_COMPARE_DEBUG' to '-w%n-fcompare-debug not overridden'
  12826. will do.
  12827. '-fcompare-debug-second'
  12828. This option is implicitly passed to the compiler for the second
  12829. compilation requested by '-fcompare-debug', along with options to
  12830. silence warnings, and omitting other options that would cause the
  12831. compiler to produce output to files or to standard output as a side
  12832. effect. Dump files and preserved temporary files are renamed so as
  12833. to contain the '.gk' additional extension during the second
  12834. compilation, to avoid overwriting those generated by the first.
  12835. When this option is passed to the compiler driver, it causes the
  12836. _first_ compilation to be skipped, which makes it useful for little
  12837. other than debugging the compiler proper.
  12838. '-gtoggle'
  12839. Turn off generation of debug info, if leaving out this option
  12840. generates it, or turn it on at level 2 otherwise. The position of
  12841. this argument in the command line does not matter; it takes effect
  12842. after all other options are processed, and it does so only once, no
  12843. matter how many times it is given. This is mainly intended to be
  12844. used with '-fcompare-debug'.
  12845. '-fvar-tracking-assignments-toggle'
  12846. Toggle '-fvar-tracking-assignments', in the same way that
  12847. '-gtoggle' toggles '-g'.
  12848. '-Q'
  12849. Makes the compiler print out each function name as it is compiled,
  12850. and print some statistics about each pass when it finishes.
  12851. '-ftime-report'
  12852. Makes the compiler print some statistics about the time consumed by
  12853. each pass when it finishes.
  12854. '-ftime-report-details'
  12855. Record the time consumed by infrastructure parts separately for
  12856. each pass.
  12857. '-fira-verbose=N'
  12858. Control the verbosity of the dump file for the integrated register
  12859. allocator. The default value is 5. If the value N is greater or
  12860. equal to 10, the dump output is sent to stderr using the same
  12861. format as N minus 10.
  12862. '-flto-report'
  12863. Prints a report with internal details on the workings of the
  12864. link-time optimizer. The contents of this report vary from version
  12865. to version. It is meant to be useful to GCC developers when
  12866. processing object files in LTO mode (via '-flto').
  12867. Disabled by default.
  12868. '-flto-report-wpa'
  12869. Like '-flto-report', but only print for the WPA phase of link-time
  12870. optimization.
  12871. '-fmem-report'
  12872. Makes the compiler print some statistics about permanent memory
  12873. allocation when it finishes.
  12874. '-fmem-report-wpa'
  12875. Makes the compiler print some statistics about permanent memory
  12876. allocation for the WPA phase only.
  12877. '-fpre-ipa-mem-report'
  12878. '-fpost-ipa-mem-report'
  12879. Makes the compiler print some statistics about permanent memory
  12880. allocation before or after interprocedural optimization.
  12881. '-fprofile-report'
  12882. Makes the compiler print some statistics about consistency of the
  12883. (estimated) profile and effect of individual passes.
  12884. '-fstack-usage'
  12885. Makes the compiler output stack usage information for the program,
  12886. on a per-function basis. The filename for the dump is made by
  12887. appending '.su' to the AUXNAME. AUXNAME is generated from the name
  12888. of the output file, if explicitly specified and it is not an
  12889. executable, otherwise it is the basename of the source file. An
  12890. entry is made up of three fields:
  12891. * The name of the function.
  12892. * A number of bytes.
  12893. * One or more qualifiers: 'static', 'dynamic', 'bounded'.
  12894. The qualifier 'static' means that the function manipulates the
  12895. stack statically: a fixed number of bytes are allocated for the
  12896. frame on function entry and released on function exit; no stack
  12897. adjustments are otherwise made in the function. The second field
  12898. is this fixed number of bytes.
  12899. The qualifier 'dynamic' means that the function manipulates the
  12900. stack dynamically: in addition to the static allocation described
  12901. above, stack adjustments are made in the body of the function, for
  12902. example to push/pop arguments around function calls. If the
  12903. qualifier 'bounded' is also present, the amount of these
  12904. adjustments is bounded at compile time and the second field is an
  12905. upper bound of the total amount of stack used by the function. If
  12906. it is not present, the amount of these adjustments is not bounded
  12907. at compile time and the second field only represents the bounded
  12908. part.
  12909. '-fstats'
  12910. Emit statistics about front-end processing at the end of the
  12911. compilation. This option is supported only by the C++ front end,
  12912. and the information is generally only useful to the G++ development
  12913. team.
  12914. '-fdbg-cnt-list'
  12915. Print the name and the counter upper bound for all debug counters.
  12916. '-fdbg-cnt=COUNTER-VALUE-LIST'
  12917. Set the internal debug counter lower and upper bound.
  12918. COUNTER-VALUE-LIST is a comma-separated list of
  12919. NAME:LOWER_BOUND1-UPPER_BOUND1 [:LOWER_BOUND2-UPPER_BOUND2...]
  12920. tuples which sets the name of the counter and list of closed
  12921. intervals. The LOWER_BOUND is optional and is zero initialized if
  12922. not set. For example, with '-fdbg-cnt=dce:2-4:10-11,tail_call:10',
  12923. 'dbg_cnt(dce)' returns true only for second, third, fourth, tenth
  12924. and eleventh invocation. For 'dbg_cnt(tail_call)' true is returned
  12925. for first 10 invocations.
  12926. '-print-file-name=LIBRARY'
  12927. Print the full absolute name of the library file LIBRARY that would
  12928. be used when linking--and don't do anything else. With this
  12929. option, GCC does not compile or link anything; it just prints the
  12930. file name.
  12931. '-print-multi-directory'
  12932. Print the directory name corresponding to the multilib selected by
  12933. any other switches present in the command line. This directory is
  12934. supposed to exist in 'GCC_EXEC_PREFIX'.
  12935. '-print-multi-lib'
  12936. Print the mapping from multilib directory names to compiler
  12937. switches that enable them. The directory name is separated from
  12938. the switches by ';', and each switch starts with an '@' instead of
  12939. the '-', without spaces between multiple switches. This is
  12940. supposed to ease shell processing.
  12941. '-print-multi-os-directory'
  12942. Print the path to OS libraries for the selected multilib, relative
  12943. to some 'lib' subdirectory. If OS libraries are present in the
  12944. 'lib' subdirectory and no multilibs are used, this is usually just
  12945. '.', if OS libraries are present in 'libSUFFIX' sibling directories
  12946. this prints e.g. '../lib64', '../lib' or '../lib32', or if OS
  12947. libraries are present in 'lib/SUBDIR' subdirectories it prints e.g.
  12948. 'amd64', 'sparcv9' or 'ev6'.
  12949. '-print-multiarch'
  12950. Print the path to OS libraries for the selected multiarch, relative
  12951. to some 'lib' subdirectory.
  12952. '-print-prog-name=PROGRAM'
  12953. Like '-print-file-name', but searches for a program such as 'cpp'.
  12954. '-print-libgcc-file-name'
  12955. Same as '-print-file-name=libgcc.a'.
  12956. This is useful when you use '-nostdlib' or '-nodefaultlibs' but you
  12957. do want to link with 'libgcc.a'. You can do:
  12958. gcc -nostdlib FILES... `gcc -print-libgcc-file-name`
  12959. '-print-search-dirs'
  12960. Print the name of the configured installation directory and a list
  12961. of program and library directories 'gcc' searches--and don't do
  12962. anything else.
  12963. This is useful when 'gcc' prints the error message 'installation
  12964. problem, cannot exec cpp0: No such file or directory'. To resolve
  12965. this you either need to put 'cpp0' and the other compiler
  12966. components where 'gcc' expects to find them, or you can set the
  12967. environment variable 'GCC_EXEC_PREFIX' to the directory where you
  12968. installed them. Don't forget the trailing '/'. *Note Environment
  12969. Variables::.
  12970. '-print-sysroot'
  12971. Print the target sysroot directory that is used during compilation.
  12972. This is the target sysroot specified either at configure time or
  12973. using the '--sysroot' option, possibly with an extra suffix that
  12974. depends on compilation options. If no target sysroot is specified,
  12975. the option prints nothing.
  12976. '-print-sysroot-headers-suffix'
  12977. Print the suffix added to the target sysroot when searching for
  12978. headers, or give an error if the compiler is not configured with
  12979. such a suffix--and don't do anything else.
  12980. '-dumpmachine'
  12981. Print the compiler's target machine (for example,
  12982. 'i686-pc-linux-gnu')--and don't do anything else.
  12983. '-dumpversion'
  12984. Print the compiler version (for example, '3.0', '6.3.0' or
  12985. '7')--and don't do anything else. This is the compiler version
  12986. used in filesystem paths and specs. Depending on how the compiler
  12987. has been configured it can be just a single number (major version),
  12988. two numbers separated by a dot (major and minor version) or three
  12989. numbers separated by dots (major, minor and patchlevel version).
  12990. '-dumpfullversion'
  12991. Print the full compiler version--and don't do anything else. The
  12992. output is always three numbers separated by dots, major, minor and
  12993. patchlevel version.
  12994. '-dumpspecs'
  12995. Print the compiler's built-in specs--and don't do anything else.
  12996. (This is used when GCC itself is being built.) *Note Spec Files::.
  12997. 
  12998. File: gcc.info, Node: Submodel Options, Next: Spec Files, Prev: Developer Options, Up: Invoking GCC
  12999. 3.19 Machine-Dependent Options
  13000. ==============================
  13001. Each target machine supported by GCC can have its own options--for
  13002. example, to allow you to compile for a particular processor variant or
  13003. ABI, or to control optimizations specific to that machine. By
  13004. convention, the names of machine-specific options start with '-m'.
  13005. Some configurations of the compiler also support additional
  13006. target-specific options, usually for compatibility with other compilers
  13007. on the same platform.
  13008. * Menu:
  13009. * AArch64 Options::
  13010. * Adapteva Epiphany Options::
  13011. * AMD GCN Options::
  13012. * ARC Options::
  13013. * ARM Options::
  13014. * AVR Options::
  13015. * Blackfin Options::
  13016. * C6X Options::
  13017. * CRIS Options::
  13018. * CR16 Options::
  13019. * C-SKY Options::
  13020. * Darwin Options::
  13021. * DEC Alpha Options::
  13022. * eBPF Options::
  13023. * FR30 Options::
  13024. * FT32 Options::
  13025. * FRV Options::
  13026. * GNU/Linux Options::
  13027. * H8/300 Options::
  13028. * HPPA Options::
  13029. * IA-64 Options::
  13030. * LM32 Options::
  13031. * M32C Options::
  13032. * M32R/D Options::
  13033. * M680x0 Options::
  13034. * MCore Options::
  13035. * MeP Options::
  13036. * MicroBlaze Options::
  13037. * MIPS Options::
  13038. * MMIX Options::
  13039. * MN10300 Options::
  13040. * Moxie Options::
  13041. * MSP430 Options::
  13042. * NDS32 Options::
  13043. * Nios II Options::
  13044. * Nvidia PTX Options::
  13045. * OpenRISC Options::
  13046. * PDP-11 Options::
  13047. * picoChip Options::
  13048. * PowerPC Options::
  13049. * PRU Options::
  13050. * RISC-V Options::
  13051. * RL78 Options::
  13052. * RS/6000 and PowerPC Options::
  13053. * RX Options::
  13054. * S/390 and zSeries Options::
  13055. * Score Options::
  13056. * SH Options::
  13057. * Solaris 2 Options::
  13058. * SPARC Options::
  13059. * System V Options::
  13060. * TILE-Gx Options::
  13061. * TILEPro Options::
  13062. * V850 Options::
  13063. * VAX Options::
  13064. * Visium Options::
  13065. * VMS Options::
  13066. * VxWorks Options::
  13067. * x86 Options::
  13068. * x86 Windows Options::
  13069. * Xstormy16 Options::
  13070. * Xtensa Options::
  13071. * zSeries Options::
  13072. 
  13073. File: gcc.info, Node: AArch64 Options, Next: Adapteva Epiphany Options, Up: Submodel Options
  13074. 3.19.1 AArch64 Options
  13075. ----------------------
  13076. These options are defined for AArch64 implementations:
  13077. '-mabi=NAME'
  13078. Generate code for the specified data model. Permissible values are
  13079. 'ilp32' for SysV-like data model where int, long int and pointers
  13080. are 32 bits, and 'lp64' for SysV-like data model where int is 32
  13081. bits, but long int and pointers are 64 bits.
  13082. The default depends on the specific target configuration. Note
  13083. that the LP64 and ILP32 ABIs are not link-compatible; you must
  13084. compile your entire program with the same ABI, and link with a
  13085. compatible set of libraries.
  13086. '-mbig-endian'
  13087. Generate big-endian code. This is the default when GCC is
  13088. configured for an 'aarch64_be-*-*' target.
  13089. '-mgeneral-regs-only'
  13090. Generate code which uses only the general-purpose registers. This
  13091. will prevent the compiler from using floating-point and Advanced
  13092. SIMD registers but will not impose any restrictions on the
  13093. assembler.
  13094. '-mlittle-endian'
  13095. Generate little-endian code. This is the default when GCC is
  13096. configured for an 'aarch64-*-*' but not an 'aarch64_be-*-*' target.
  13097. '-mcmodel=tiny'
  13098. Generate code for the tiny code model. The program and its
  13099. statically defined symbols must be within 1MB of each other.
  13100. Programs can be statically or dynamically linked.
  13101. '-mcmodel=small'
  13102. Generate code for the small code model. The program and its
  13103. statically defined symbols must be within 4GB of each other.
  13104. Programs can be statically or dynamically linked. This is the
  13105. default code model.
  13106. '-mcmodel=large'
  13107. Generate code for the large code model. This makes no assumptions
  13108. about addresses and sizes of sections. Programs can be statically
  13109. linked only. The '-mcmodel=large' option is incompatible with
  13110. '-mabi=ilp32', '-fpic' and '-fPIC'.
  13111. '-mstrict-align'
  13112. '-mno-strict-align'
  13113. Avoid or allow generating memory accesses that may not be aligned
  13114. on a natural object boundary as described in the architecture
  13115. specification.
  13116. '-momit-leaf-frame-pointer'
  13117. '-mno-omit-leaf-frame-pointer'
  13118. Omit or keep the frame pointer in leaf functions. The former
  13119. behavior is the default.
  13120. '-mstack-protector-guard=GUARD'
  13121. '-mstack-protector-guard-reg=REG'
  13122. '-mstack-protector-guard-offset=OFFSET'
  13123. Generate stack protection code using canary at GUARD. Supported
  13124. locations are 'global' for a global canary or 'sysreg' for a canary
  13125. in an appropriate system register.
  13126. With the latter choice the options
  13127. '-mstack-protector-guard-reg=REG' and
  13128. '-mstack-protector-guard-offset=OFFSET' furthermore specify which
  13129. system register to use as base register for reading the canary, and
  13130. from what offset from that base register. There is no default
  13131. register or offset as this is entirely for use within the Linux
  13132. kernel.
  13133. '-mstack-protector-guard=GUARD'
  13134. '-mstack-protector-guard-reg=REG'
  13135. '-mstack-protector-guard-offset=OFFSET'
  13136. Generate stack protection code using canary at GUARD. Supported
  13137. locations are 'global' for a global canary or 'sysreg' for a canary
  13138. in an appropriate system register.
  13139. With the latter choice the options
  13140. '-mstack-protector-guard-reg=REG' and
  13141. '-mstack-protector-guard-offset=OFFSET' furthermore specify which
  13142. system register to use as base register for reading the canary, and
  13143. from what offset from that base register. There is no default
  13144. register or offset as this is entirely for use within the Linux
  13145. kernel.
  13146. '-mtls-dialect=desc'
  13147. Use TLS descriptors as the thread-local storage mechanism for
  13148. dynamic accesses of TLS variables. This is the default.
  13149. '-mtls-dialect=traditional'
  13150. Use traditional TLS as the thread-local storage mechanism for
  13151. dynamic accesses of TLS variables.
  13152. '-mtls-size=SIZE'
  13153. Specify bit size of immediate TLS offsets. Valid values are 12,
  13154. 24, 32, 48. This option requires binutils 2.26 or newer.
  13155. '-mfix-cortex-a53-835769'
  13156. '-mno-fix-cortex-a53-835769'
  13157. Enable or disable the workaround for the ARM Cortex-A53 erratum
  13158. number 835769. This involves inserting a NOP instruction between
  13159. memory instructions and 64-bit integer multiply-accumulate
  13160. instructions.
  13161. '-mfix-cortex-a53-843419'
  13162. '-mno-fix-cortex-a53-843419'
  13163. Enable or disable the workaround for the ARM Cortex-A53 erratum
  13164. number 843419. This erratum workaround is made at link time and
  13165. this will only pass the corresponding flag to the linker.
  13166. '-mlow-precision-recip-sqrt'
  13167. '-mno-low-precision-recip-sqrt'
  13168. Enable or disable the reciprocal square root approximation. This
  13169. option only has an effect if '-ffast-math' or
  13170. '-funsafe-math-optimizations' is used as well. Enabling this
  13171. reduces precision of reciprocal square root results to about 16
  13172. bits for single precision and to 32 bits for double precision.
  13173. '-mlow-precision-sqrt'
  13174. '-mno-low-precision-sqrt'
  13175. Enable or disable the square root approximation. This option only
  13176. has an effect if '-ffast-math' or '-funsafe-math-optimizations' is
  13177. used as well. Enabling this reduces precision of square root
  13178. results to about 16 bits for single precision and to 32 bits for
  13179. double precision. If enabled, it implies
  13180. '-mlow-precision-recip-sqrt'.
  13181. '-mlow-precision-div'
  13182. '-mno-low-precision-div'
  13183. Enable or disable the division approximation. This option only has
  13184. an effect if '-ffast-math' or '-funsafe-math-optimizations' is used
  13185. as well. Enabling this reduces precision of division results to
  13186. about 16 bits for single precision and to 32 bits for double
  13187. precision.
  13188. '-mtrack-speculation'
  13189. '-mno-track-speculation'
  13190. Enable or disable generation of additional code to track
  13191. speculative execution through conditional branches. The tracking
  13192. state can then be used by the compiler when expanding calls to
  13193. '__builtin_speculation_safe_copy' to permit a more efficient code
  13194. sequence to be generated.
  13195. '-moutline-atomics'
  13196. '-mno-outline-atomics'
  13197. Enable or disable calls to out-of-line helpers to implement atomic
  13198. operations. These helpers will, at runtime, determine if the LSE
  13199. instructions from ARMv8.1-A can be used; if not, they will use the
  13200. load/store-exclusive instructions that are present in the base
  13201. ARMv8.0 ISA.
  13202. This option is only applicable when compiling for the base ARMv8.0
  13203. instruction set. If using a later revision, e.g.
  13204. '-march=armv8.1-a' or '-march=armv8-a+lse', the ARMv8.1-Atomics
  13205. instructions will be used directly. The same applies when using
  13206. '-mcpu=' when the selected cpu supports the 'lse' feature. This
  13207. option is on by default.
  13208. '-march=NAME'
  13209. Specify the name of the target architecture and, optionally, one or
  13210. more feature modifiers. This option has the form
  13211. '-march=ARCH{+[no]FEATURE}*'.
  13212. The table below summarizes the permissible values for ARCH and the
  13213. features that they enable by default:
  13214. ARCH value Architecture Includes by default
  13215. --------------------------------------------------------------------------
  13216. 'armv8-a' Armv8-A '+fp', '+simd'
  13217. 'armv8.1-a' Armv8.1-A 'armv8-a', '+crc', '+lse', '+rdma'
  13218. 'armv8.2-a' Armv8.2-A 'armv8.1-a'
  13219. 'armv8.3-a' Armv8.3-A 'armv8.2-a'
  13220. 'armv8.4-a' Armv8.4-A 'armv8.3-a', '+fp16fml', '+dotprod'
  13221. 'armv8.5-a' Armv8.5-A 'armv8.4-a', '+sb', '+ssbs', '+predres'
  13222. 'armv8.6-a' Armv8.6-A 'armv8.5-a', '+bf16', '+i8mm'
  13223. The value 'native' is available on native AArch64 GNU/Linux and
  13224. causes the compiler to pick the architecture of the host system.
  13225. This option has no effect if the compiler is unable to recognize
  13226. the architecture of the host system,
  13227. The permissible values for FEATURE are listed in the sub-section on
  13228. *note '-march' and '-mcpu' Feature Modifiers:
  13229. aarch64-feature-modifiers. Where conflicting feature modifiers are
  13230. specified, the right-most feature is used.
  13231. GCC uses NAME to determine what kind of instructions it can emit
  13232. when generating assembly code. If '-march' is specified without
  13233. either of '-mtune' or '-mcpu' also being specified, the code is
  13234. tuned to perform well across a range of target processors
  13235. implementing the target architecture.
  13236. '-mtune=NAME'
  13237. Specify the name of the target processor for which GCC should tune
  13238. the performance of the code. Permissible values for this option
  13239. are: 'generic', 'cortex-a35', 'cortex-a53', 'cortex-a55',
  13240. 'cortex-a57', 'cortex-a72', 'cortex-a73', 'cortex-a75',
  13241. 'cortex-a76', 'cortex-a76ae', 'cortex-a77', 'cortex-a65',
  13242. 'cortex-a65ae', 'cortex-a34', 'ares', 'exynos-m1', 'emag',
  13243. 'falkor', 'neoverse-e1', 'neoverse-n1', 'neoverse-n2',
  13244. 'neoverse-v1', 'qdf24xx', 'saphira', 'phecda', 'xgene1', 'vulcan',
  13245. 'octeontx', 'octeontx81', 'octeontx83', 'octeontx2',
  13246. 'octeontx2t98', 'octeontx2t96' 'octeontx2t93', 'octeontx2f95',
  13247. 'octeontx2f95n', 'octeontx2f95mm', 'a64fx', 'thunderx',
  13248. 'thunderxt88', 'thunderxt88p1', 'thunderxt81', 'tsv110',
  13249. 'thunderxt83', 'thunderx2t99', 'thunderx3t110', 'zeus',
  13250. 'cortex-a57.cortex-a53', 'cortex-a72.cortex-a53',
  13251. 'cortex-a73.cortex-a35', 'cortex-a73.cortex-a53',
  13252. 'cortex-a75.cortex-a55', 'cortex-a76.cortex-a55' 'native'.
  13253. The values 'cortex-a57.cortex-a53', 'cortex-a72.cortex-a53',
  13254. 'cortex-a73.cortex-a35', 'cortex-a73.cortex-a53',
  13255. 'cortex-a75.cortex-a55', 'cortex-a76.cortex-a55' specify that GCC
  13256. should tune for a big.LITTLE system.
  13257. Additionally on native AArch64 GNU/Linux systems the value 'native'
  13258. tunes performance to the host system. This option has no effect if
  13259. the compiler is unable to recognize the processor of the host
  13260. system.
  13261. Where none of '-mtune=', '-mcpu=' or '-march=' are specified, the
  13262. code is tuned to perform well across a range of target processors.
  13263. This option cannot be suffixed by feature modifiers.
  13264. '-mcpu=NAME'
  13265. Specify the name of the target processor, optionally suffixed by
  13266. one or more feature modifiers. This option has the form
  13267. '-mcpu=CPU{+[no]FEATURE}*', where the permissible values for CPU
  13268. are the same as those available for '-mtune'. The permissible
  13269. values for FEATURE are documented in the sub-section on *note
  13270. '-march' and '-mcpu' Feature Modifiers: aarch64-feature-modifiers.
  13271. Where conflicting feature modifiers are specified, the right-most
  13272. feature is used.
  13273. GCC uses NAME to determine what kind of instructions it can emit
  13274. when generating assembly code (as if by '-march') and to determine
  13275. the target processor for which to tune for performance (as if by
  13276. '-mtune'). Where this option is used in conjunction with '-march'
  13277. or '-mtune', those options take precedence over the appropriate
  13278. part of this option.
  13279. '-moverride=STRING'
  13280. Override tuning decisions made by the back-end in response to a
  13281. '-mtune=' switch. The syntax, semantics, and accepted values for
  13282. STRING in this option are not guaranteed to be consistent across
  13283. releases.
  13284. This option is only intended to be useful when developing GCC.
  13285. '-mverbose-cost-dump'
  13286. Enable verbose cost model dumping in the debug dump files. This
  13287. option is provided for use in debugging the compiler.
  13288. '-mpc-relative-literal-loads'
  13289. '-mno-pc-relative-literal-loads'
  13290. Enable or disable PC-relative literal loads. With this option
  13291. literal pools are accessed using a single instruction and emitted
  13292. after each function. This limits the maximum size of functions to
  13293. 1MB. This is enabled by default for '-mcmodel=tiny'.
  13294. '-msign-return-address=SCOPE'
  13295. Select the function scope on which return address signing will be
  13296. applied. Permissible values are 'none', which disables return
  13297. address signing, 'non-leaf', which enables pointer signing for
  13298. functions which are not leaf functions, and 'all', which enables
  13299. pointer signing for all functions. The default value is 'none'.
  13300. This option has been deprecated by -mbranch-protection.
  13301. '-mbranch-protection=NONE|STANDARD|PAC-RET[+LEAF+B-KEY]|BTI'
  13302. Select the branch protection features to use. 'none' is the
  13303. default and turns off all types of branch protection. 'standard'
  13304. turns on all types of branch protection features. If a feature has
  13305. additional tuning options, then 'standard' sets it to its standard
  13306. level. 'pac-ret[+LEAF]' turns on return address signing to its
  13307. standard level: signing functions that save the return address to
  13308. memory (non-leaf functions will practically always do this) using
  13309. the a-key. The optional argument 'leaf' can be used to extend the
  13310. signing to include leaf functions. The optional argument 'b-key'
  13311. can be used to sign the functions with the B-key instead of the
  13312. A-key. 'bti' turns on branch target identification mechanism.
  13313. '-mharden-sls=OPTS'
  13314. Enable compiler hardening against straight line speculation (SLS).
  13315. OPTS is a comma-separated list of the following options:
  13316. 'retbr'
  13317. 'blr'
  13318. In addition, '-mharden-sls=all' enables all SLS hardening while
  13319. '-mharden-sls=none' disables all SLS hardening.
  13320. '-msve-vector-bits=BITS'
  13321. Specify the number of bits in an SVE vector register. This option
  13322. only has an effect when SVE is enabled.
  13323. GCC supports two forms of SVE code generation: "vector-length
  13324. agnostic" output that works with any size of vector register and
  13325. "vector-length specific" output that allows GCC to make assumptions
  13326. about the vector length when it is useful for optimization reasons.
  13327. The possible values of 'bits' are: 'scalable', '128', '256', '512',
  13328. '1024' and '2048'. Specifying 'scalable' selects vector-length
  13329. agnostic output. At present '-msve-vector-bits=128' also generates
  13330. vector-length agnostic output for big-endian targets. All other
  13331. values generate vector-length specific code. The behavior of these
  13332. values may change in future releases and no value except 'scalable'
  13333. should be relied on for producing code that is portable across
  13334. different hardware SVE vector lengths.
  13335. The default is '-msve-vector-bits=scalable', which produces
  13336. vector-length agnostic code.
  13337. 3.19.1.1 '-march' and '-mcpu' Feature Modifiers
  13338. ...............................................
  13339. Feature modifiers used with '-march' and '-mcpu' can be any of the
  13340. following and their inverses 'noFEATURE':
  13341. 'crc'
  13342. Enable CRC extension. This is on by default for
  13343. '-march=armv8.1-a'.
  13344. 'crypto'
  13345. Enable Crypto extension. This also enables Advanced SIMD and
  13346. floating-point instructions.
  13347. 'fp'
  13348. Enable floating-point instructions. This is on by default for all
  13349. possible values for options '-march' and '-mcpu'.
  13350. 'simd'
  13351. Enable Advanced SIMD instructions. This also enables
  13352. floating-point instructions. This is on by default for all
  13353. possible values for options '-march' and '-mcpu'.
  13354. 'sve'
  13355. Enable Scalable Vector Extension instructions. This also enables
  13356. Advanced SIMD and floating-point instructions.
  13357. 'lse'
  13358. Enable Large System Extension instructions. This is on by default
  13359. for '-march=armv8.1-a'.
  13360. 'rdma'
  13361. Enable Round Double Multiply Accumulate instructions. This is on
  13362. by default for '-march=armv8.1-a'.
  13363. 'fp16'
  13364. Enable FP16 extension. This also enables floating-point
  13365. instructions.
  13366. 'fp16fml'
  13367. Enable FP16 fmla extension. This also enables FP16 extensions and
  13368. floating-point instructions. This option is enabled by default for
  13369. '-march=armv8.4-a'. Use of this option with architectures prior to
  13370. Armv8.2-A is not supported.
  13371. 'rcpc'
  13372. Enable the RcPc extension. This does not change code generation
  13373. from GCC, but is passed on to the assembler, enabling inline asm
  13374. statements to use instructions from the RcPc extension.
  13375. 'dotprod'
  13376. Enable the Dot Product extension. This also enables Advanced SIMD
  13377. instructions.
  13378. 'aes'
  13379. Enable the Armv8-a aes and pmull crypto extension. This also
  13380. enables Advanced SIMD instructions.
  13381. 'sha2'
  13382. Enable the Armv8-a sha2 crypto extension. This also enables
  13383. Advanced SIMD instructions.
  13384. 'sha3'
  13385. Enable the sha512 and sha3 crypto extension. This also enables
  13386. Advanced SIMD instructions. Use of this option with architectures
  13387. prior to Armv8.2-A is not supported.
  13388. 'sm4'
  13389. Enable the sm3 and sm4 crypto extension. This also enables
  13390. Advanced SIMD instructions. Use of this option with architectures
  13391. prior to Armv8.2-A is not supported.
  13392. 'profile'
  13393. Enable the Statistical Profiling extension. This option is only to
  13394. enable the extension at the assembler level and does not affect
  13395. code generation.
  13396. 'rng'
  13397. Enable the Armv8.5-a Random Number instructions. This option is
  13398. only to enable the extension at the assembler level and does not
  13399. affect code generation.
  13400. 'memtag'
  13401. Enable the Armv8.5-a Memory Tagging Extensions. Use of this option
  13402. with architectures prior to Armv8.5-A is not supported.
  13403. 'sb'
  13404. Enable the Armv8-a Speculation Barrier instruction. This option is
  13405. only to enable the extension at the assembler level and does not
  13406. affect code generation. This option is enabled by default for
  13407. '-march=armv8.5-a'.
  13408. 'ssbs'
  13409. Enable the Armv8-a Speculative Store Bypass Safe instruction. This
  13410. option is only to enable the extension at the assembler level and
  13411. does not affect code generation. This option is enabled by default
  13412. for '-march=armv8.5-a'.
  13413. 'predres'
  13414. Enable the Armv8-a Execution and Data Prediction Restriction
  13415. instructions. This option is only to enable the extension at the
  13416. assembler level and does not affect code generation. This option
  13417. is enabled by default for '-march=armv8.5-a'.
  13418. 'sve2'
  13419. Enable the Armv8-a Scalable Vector Extension 2. This also enables
  13420. SVE instructions.
  13421. 'sve2-bitperm'
  13422. Enable SVE2 bitperm instructions. This also enables SVE2
  13423. instructions.
  13424. 'sve2-sm4'
  13425. Enable SVE2 sm4 instructions. This also enables SVE2 instructions.
  13426. 'sve2-aes'
  13427. Enable SVE2 aes instructions. This also enables SVE2 instructions.
  13428. 'sve2-sha3'
  13429. Enable SVE2 sha3 instructions. This also enables SVE2
  13430. instructions.
  13431. 'tme'
  13432. Enable the Transactional Memory Extension.
  13433. 'i8mm'
  13434. Enable 8-bit Integer Matrix Multiply instructions. This also
  13435. enables Advanced SIMD and floating-point instructions. This option
  13436. is enabled by default for '-march=armv8.6-a'. Use of this option
  13437. with architectures prior to Armv8.2-A is not supported.
  13438. 'f32mm'
  13439. Enable 32-bit Floating point Matrix Multiply instructions. This
  13440. also enables SVE instructions. Use of this option with
  13441. architectures prior to Armv8.2-A is not supported.
  13442. 'f64mm'
  13443. Enable 64-bit Floating point Matrix Multiply instructions. This
  13444. also enables SVE instructions. Use of this option with
  13445. architectures prior to Armv8.2-A is not supported.
  13446. 'bf16'
  13447. Enable brain half-precision floating-point instructions. This also
  13448. enables Advanced SIMD and floating-point instructions. This option
  13449. is enabled by default for '-march=armv8.6-a'. Use of this option
  13450. with architectures prior to Armv8.2-A is not supported.
  13451. Feature 'crypto' implies 'aes', 'sha2', and 'simd', which implies 'fp'.
  13452. Conversely, 'nofp' implies 'nosimd', which implies 'nocrypto', 'noaes'
  13453. and 'nosha2'.
  13454. 
  13455. File: gcc.info, Node: Adapteva Epiphany Options, Next: AMD GCN Options, Prev: AArch64 Options, Up: Submodel Options
  13456. 3.19.2 Adapteva Epiphany Options
  13457. --------------------------------
  13458. These '-m' options are defined for Adapteva Epiphany:
  13459. '-mhalf-reg-file'
  13460. Don't allocate any register in the range 'r32'...'r63'. That
  13461. allows code to run on hardware variants that lack these registers.
  13462. '-mprefer-short-insn-regs'
  13463. Preferentially allocate registers that allow short instruction
  13464. generation. This can result in increased instruction count, so
  13465. this may either reduce or increase overall code size.
  13466. '-mbranch-cost=NUM'
  13467. Set the cost of branches to roughly NUM "simple" instructions.
  13468. This cost is only a heuristic and is not guaranteed to produce
  13469. consistent results across releases.
  13470. '-mcmove'
  13471. Enable the generation of conditional moves.
  13472. '-mnops=NUM'
  13473. Emit NUM NOPs before every other generated instruction.
  13474. '-mno-soft-cmpsf'
  13475. For single-precision floating-point comparisons, emit an 'fsub'
  13476. instruction and test the flags. This is faster than a software
  13477. comparison, but can get incorrect results in the presence of NaNs,
  13478. or when two different small numbers are compared such that their
  13479. difference is calculated as zero. The default is '-msoft-cmpsf',
  13480. which uses slower, but IEEE-compliant, software comparisons.
  13481. '-mstack-offset=NUM'
  13482. Set the offset between the top of the stack and the stack pointer.
  13483. E.g., a value of 8 means that the eight bytes in the range
  13484. 'sp+0...sp+7' can be used by leaf functions without stack
  13485. allocation. Values other than '8' or '16' are untested and
  13486. unlikely to work. Note also that this option changes the ABI;
  13487. compiling a program with a different stack offset than the
  13488. libraries have been compiled with generally does not work. This
  13489. option can be useful if you want to evaluate if a different stack
  13490. offset would give you better code, but to actually use a different
  13491. stack offset to build working programs, it is recommended to
  13492. configure the toolchain with the appropriate
  13493. '--with-stack-offset=NUM' option.
  13494. '-mno-round-nearest'
  13495. Make the scheduler assume that the rounding mode has been set to
  13496. truncating. The default is '-mround-nearest'.
  13497. '-mlong-calls'
  13498. If not otherwise specified by an attribute, assume all calls might
  13499. be beyond the offset range of the 'b' / 'bl' instructions, and
  13500. therefore load the function address into a register before
  13501. performing a (otherwise direct) call. This is the default.
  13502. '-mshort-calls'
  13503. If not otherwise specified by an attribute, assume all direct calls
  13504. are in the range of the 'b' / 'bl' instructions, so use these
  13505. instructions for direct calls. The default is '-mlong-calls'.
  13506. '-msmall16'
  13507. Assume addresses can be loaded as 16-bit unsigned values. This
  13508. does not apply to function addresses for which '-mlong-calls'
  13509. semantics are in effect.
  13510. '-mfp-mode=MODE'
  13511. Set the prevailing mode of the floating-point unit. This
  13512. determines the floating-point mode that is provided and expected at
  13513. function call and return time. Making this mode match the mode you
  13514. predominantly need at function start can make your programs smaller
  13515. and faster by avoiding unnecessary mode switches.
  13516. MODE can be set to one the following values:
  13517. 'caller'
  13518. Any mode at function entry is valid, and retained or restored
  13519. when the function returns, and when it calls other functions.
  13520. This mode is useful for compiling libraries or other
  13521. compilation units you might want to incorporate into different
  13522. programs with different prevailing FPU modes, and the
  13523. convenience of being able to use a single object file
  13524. outweighs the size and speed overhead for any extra mode
  13525. switching that might be needed, compared with what would be
  13526. needed with a more specific choice of prevailing FPU mode.
  13527. 'truncate'
  13528. This is the mode used for floating-point calculations with
  13529. truncating (i.e. round towards zero) rounding mode. That
  13530. includes conversion from floating point to integer.
  13531. 'round-nearest'
  13532. This is the mode used for floating-point calculations with
  13533. round-to-nearest-or-even rounding mode.
  13534. 'int'
  13535. This is the mode used to perform integer calculations in the
  13536. FPU, e.g. integer multiply, or integer
  13537. multiply-and-accumulate.
  13538. The default is '-mfp-mode=caller'
  13539. '-mno-split-lohi'
  13540. '-mno-postinc'
  13541. '-mno-postmodify'
  13542. Code generation tweaks that disable, respectively, splitting of
  13543. 32-bit loads, generation of post-increment addresses, and
  13544. generation of post-modify addresses. The defaults are
  13545. 'msplit-lohi', '-mpost-inc', and '-mpost-modify'.
  13546. '-mnovect-double'
  13547. Change the preferred SIMD mode to SImode. The default is
  13548. '-mvect-double', which uses DImode as preferred SIMD mode.
  13549. '-max-vect-align=NUM'
  13550. The maximum alignment for SIMD vector mode types. NUM may be 4 or
  13551. 8. The default is 8. Note that this is an ABI change, even though
  13552. many library function interfaces are unaffected if they don't use
  13553. SIMD vector modes in places that affect size and/or alignment of
  13554. relevant types.
  13555. '-msplit-vecmove-early'
  13556. Split vector moves into single word moves before reload. In theory
  13557. this can give better register allocation, but so far the reverse
  13558. seems to be generally the case.
  13559. '-m1reg-REG'
  13560. Specify a register to hold the constant -1, which makes loading
  13561. small negative constants and certain bitmasks faster. Allowable
  13562. values for REG are 'r43' and 'r63', which specify use of that
  13563. register as a fixed register, and 'none', which means that no
  13564. register is used for this purpose. The default is '-m1reg-none'.
  13565. 
  13566. File: gcc.info, Node: AMD GCN Options, Next: ARC Options, Prev: Adapteva Epiphany Options, Up: Submodel Options
  13567. 3.19.3 AMD GCN Options
  13568. ----------------------
  13569. These options are defined specifically for the AMD GCN port.
  13570. '-march=GPU'
  13571. '-mtune=GPU'
  13572. Set architecture type or tuning for GPU. Supported values for GPU
  13573. are
  13574. 'fiji'
  13575. Compile for GCN3 Fiji devices (gfx803).
  13576. 'gfx900'
  13577. Compile for GCN5 Vega 10 devices (gfx900).
  13578. 'gfx906'
  13579. Compile for GCN5 Vega 20 devices (gfx906).
  13580. '-mstack-size=BYTES'
  13581. Specify how many BYTES of stack space will be requested for each
  13582. GPU thread (wave-front). Beware that there may be many threads and
  13583. limited memory available. The size of the stack allocation may
  13584. also have an impact on run-time performance. The default is 32KB
  13585. when using OpenACC or OpenMP, and 1MB otherwise.
  13586. 
  13587. File: gcc.info, Node: ARC Options, Next: ARM Options, Prev: AMD GCN Options, Up: Submodel Options
  13588. 3.19.4 ARC Options
  13589. ------------------
  13590. The following options control the architecture variant for which code is
  13591. being compiled:
  13592. '-mbarrel-shifter'
  13593. Generate instructions supported by barrel shifter. This is the
  13594. default unless '-mcpu=ARC601' or '-mcpu=ARCEM' is in effect.
  13595. '-mjli-always'
  13596. Force to call a function using jli_s instruction. This option is
  13597. valid only for ARCv2 architecture.
  13598. '-mcpu=CPU'
  13599. Set architecture type, register usage, and instruction scheduling
  13600. parameters for CPU. There are also shortcut alias options
  13601. available for backward compatibility and convenience. Supported
  13602. values for CPU are
  13603. 'arc600'
  13604. Compile for ARC600. Aliases: '-mA6', '-mARC600'.
  13605. 'arc601'
  13606. Compile for ARC601. Alias: '-mARC601'.
  13607. 'arc700'
  13608. Compile for ARC700. Aliases: '-mA7', '-mARC700'. This is the
  13609. default when configured with '--with-cpu=arc700'.
  13610. 'arcem'
  13611. Compile for ARC EM.
  13612. 'archs'
  13613. Compile for ARC HS.
  13614. 'em'
  13615. Compile for ARC EM CPU with no hardware extensions.
  13616. 'em4'
  13617. Compile for ARC EM4 CPU.
  13618. 'em4_dmips'
  13619. Compile for ARC EM4 DMIPS CPU.
  13620. 'em4_fpus'
  13621. Compile for ARC EM4 DMIPS CPU with the single-precision
  13622. floating-point extension.
  13623. 'em4_fpuda'
  13624. Compile for ARC EM4 DMIPS CPU with single-precision
  13625. floating-point and double assist instructions.
  13626. 'hs'
  13627. Compile for ARC HS CPU with no hardware extensions except the
  13628. atomic instructions.
  13629. 'hs34'
  13630. Compile for ARC HS34 CPU.
  13631. 'hs38'
  13632. Compile for ARC HS38 CPU.
  13633. 'hs38_linux'
  13634. Compile for ARC HS38 CPU with all hardware extensions on.
  13635. 'arc600_norm'
  13636. Compile for ARC 600 CPU with 'norm' instructions enabled.
  13637. 'arc600_mul32x16'
  13638. Compile for ARC 600 CPU with 'norm' and 32x16-bit multiply
  13639. instructions enabled.
  13640. 'arc600_mul64'
  13641. Compile for ARC 600 CPU with 'norm' and 'mul64'-family
  13642. instructions enabled.
  13643. 'arc601_norm'
  13644. Compile for ARC 601 CPU with 'norm' instructions enabled.
  13645. 'arc601_mul32x16'
  13646. Compile for ARC 601 CPU with 'norm' and 32x16-bit multiply
  13647. instructions enabled.
  13648. 'arc601_mul64'
  13649. Compile for ARC 601 CPU with 'norm' and 'mul64'-family
  13650. instructions enabled.
  13651. 'nps400'
  13652. Compile for ARC 700 on NPS400 chip.
  13653. 'em_mini'
  13654. Compile for ARC EM minimalist configuration featuring reduced
  13655. register set.
  13656. '-mdpfp'
  13657. '-mdpfp-compact'
  13658. Generate double-precision FPX instructions, tuned for the compact
  13659. implementation.
  13660. '-mdpfp-fast'
  13661. Generate double-precision FPX instructions, tuned for the fast
  13662. implementation.
  13663. '-mno-dpfp-lrsr'
  13664. Disable 'lr' and 'sr' instructions from using FPX extension aux
  13665. registers.
  13666. '-mea'
  13667. Generate extended arithmetic instructions. Currently only 'divaw',
  13668. 'adds', 'subs', and 'sat16' are supported. Only valid for
  13669. '-mcpu=ARC700'.
  13670. '-mno-mpy'
  13671. Do not generate 'mpy'-family instructions for ARC700. This option
  13672. is deprecated.
  13673. '-mmul32x16'
  13674. Generate 32x16-bit multiply and multiply-accumulate instructions.
  13675. '-mmul64'
  13676. Generate 'mul64' and 'mulu64' instructions. Only valid for
  13677. '-mcpu=ARC600'.
  13678. '-mnorm'
  13679. Generate 'norm' instructions. This is the default if
  13680. '-mcpu=ARC700' is in effect.
  13681. '-mspfp'
  13682. '-mspfp-compact'
  13683. Generate single-precision FPX instructions, tuned for the compact
  13684. implementation.
  13685. '-mspfp-fast'
  13686. Generate single-precision FPX instructions, tuned for the fast
  13687. implementation.
  13688. '-msimd'
  13689. Enable generation of ARC SIMD instructions via target-specific
  13690. builtins. Only valid for '-mcpu=ARC700'.
  13691. '-msoft-float'
  13692. This option ignored; it is provided for compatibility purposes
  13693. only. Software floating-point code is emitted by default, and this
  13694. default can overridden by FPX options; '-mspfp', '-mspfp-compact',
  13695. or '-mspfp-fast' for single precision, and '-mdpfp',
  13696. '-mdpfp-compact', or '-mdpfp-fast' for double precision.
  13697. '-mswap'
  13698. Generate 'swap' instructions.
  13699. '-matomic'
  13700. This enables use of the locked load/store conditional extension to
  13701. implement atomic memory built-in functions. Not available for ARC
  13702. 6xx or ARC EM cores.
  13703. '-mdiv-rem'
  13704. Enable 'div' and 'rem' instructions for ARCv2 cores.
  13705. '-mcode-density'
  13706. Enable code density instructions for ARC EM. This option is on by
  13707. default for ARC HS.
  13708. '-mll64'
  13709. Enable double load/store operations for ARC HS cores.
  13710. '-mtp-regno=REGNO'
  13711. Specify thread pointer register number.
  13712. '-mmpy-option=MULTO'
  13713. Compile ARCv2 code with a multiplier design option. You can
  13714. specify the option using either a string or numeric value for
  13715. MULTO. 'wlh1' is the default value. The recognized values are:
  13716. '0'
  13717. 'none'
  13718. No multiplier available.
  13719. '1'
  13720. 'w'
  13721. 16x16 multiplier, fully pipelined. The following instructions
  13722. are enabled: 'mpyw' and 'mpyuw'.
  13723. '2'
  13724. 'wlh1'
  13725. 32x32 multiplier, fully pipelined (1 stage). The following
  13726. instructions are additionally enabled: 'mpy', 'mpyu', 'mpym',
  13727. 'mpymu', and 'mpy_s'.
  13728. '3'
  13729. 'wlh2'
  13730. 32x32 multiplier, fully pipelined (2 stages). The following
  13731. instructions are additionally enabled: 'mpy', 'mpyu', 'mpym',
  13732. 'mpymu', and 'mpy_s'.
  13733. '4'
  13734. 'wlh3'
  13735. Two 16x16 multipliers, blocking, sequential. The following
  13736. instructions are additionally enabled: 'mpy', 'mpyu', 'mpym',
  13737. 'mpymu', and 'mpy_s'.
  13738. '5'
  13739. 'wlh4'
  13740. One 16x16 multiplier, blocking, sequential. The following
  13741. instructions are additionally enabled: 'mpy', 'mpyu', 'mpym',
  13742. 'mpymu', and 'mpy_s'.
  13743. '6'
  13744. 'wlh5'
  13745. One 32x4 multiplier, blocking, sequential. The following
  13746. instructions are additionally enabled: 'mpy', 'mpyu', 'mpym',
  13747. 'mpymu', and 'mpy_s'.
  13748. '7'
  13749. 'plus_dmpy'
  13750. ARC HS SIMD support.
  13751. '8'
  13752. 'plus_macd'
  13753. ARC HS SIMD support.
  13754. '9'
  13755. 'plus_qmacw'
  13756. ARC HS SIMD support.
  13757. This option is only available for ARCv2 cores.
  13758. '-mfpu=FPU'
  13759. Enables support for specific floating-point hardware extensions for
  13760. ARCv2 cores. Supported values for FPU are:
  13761. 'fpus'
  13762. Enables support for single-precision floating-point hardware
  13763. extensions.
  13764. 'fpud'
  13765. Enables support for double-precision floating-point hardware
  13766. extensions. The single-precision floating-point extension is
  13767. also enabled. Not available for ARC EM.
  13768. 'fpuda'
  13769. Enables support for double-precision floating-point hardware
  13770. extensions using double-precision assist instructions. The
  13771. single-precision floating-point extension is also enabled.
  13772. This option is only available for ARC EM.
  13773. 'fpuda_div'
  13774. Enables support for double-precision floating-point hardware
  13775. extensions using double-precision assist instructions. The
  13776. single-precision floating-point, square-root, and divide
  13777. extensions are also enabled. This option is only available
  13778. for ARC EM.
  13779. 'fpuda_fma'
  13780. Enables support for double-precision floating-point hardware
  13781. extensions using double-precision assist instructions. The
  13782. single-precision floating-point and fused multiply and add
  13783. hardware extensions are also enabled. This option is only
  13784. available for ARC EM.
  13785. 'fpuda_all'
  13786. Enables support for double-precision floating-point hardware
  13787. extensions using double-precision assist instructions. All
  13788. single-precision floating-point hardware extensions are also
  13789. enabled. This option is only available for ARC EM.
  13790. 'fpus_div'
  13791. Enables support for single-precision floating-point,
  13792. square-root and divide hardware extensions.
  13793. 'fpud_div'
  13794. Enables support for double-precision floating-point,
  13795. square-root and divide hardware extensions. This option
  13796. includes option 'fpus_div'. Not available for ARC EM.
  13797. 'fpus_fma'
  13798. Enables support for single-precision floating-point and fused
  13799. multiply and add hardware extensions.
  13800. 'fpud_fma'
  13801. Enables support for double-precision floating-point and fused
  13802. multiply and add hardware extensions. This option includes
  13803. option 'fpus_fma'. Not available for ARC EM.
  13804. 'fpus_all'
  13805. Enables support for all single-precision floating-point
  13806. hardware extensions.
  13807. 'fpud_all'
  13808. Enables support for all single- and double-precision
  13809. floating-point hardware extensions. Not available for ARC EM.
  13810. '-mirq-ctrl-saved=REGISTER-RANGE, BLINK, LP_COUNT'
  13811. Specifies general-purposes registers that the processor
  13812. automatically saves/restores on interrupt entry and exit.
  13813. REGISTER-RANGE is specified as two registers separated by a dash.
  13814. The register range always starts with 'r0', the upper limit is 'fp'
  13815. register. BLINK and LP_COUNT are optional. This option is only
  13816. valid for ARC EM and ARC HS cores.
  13817. '-mrgf-banked-regs=NUMBER'
  13818. Specifies the number of registers replicated in second register
  13819. bank on entry to fast interrupt. Fast interrupts are interrupts
  13820. with the highest priority level P0. These interrupts save only PC
  13821. and STATUS32 registers to avoid memory transactions during
  13822. interrupt entry and exit sequences. Use this option when you are
  13823. using fast interrupts in an ARC V2 family processor. Permitted
  13824. values are 4, 8, 16, and 32.
  13825. '-mlpc-width=WIDTH'
  13826. Specify the width of the 'lp_count' register. Valid values for
  13827. WIDTH are 8, 16, 20, 24, 28 and 32 bits. The default width is
  13828. fixed to 32 bits. If the width is less than 32, the compiler does
  13829. not attempt to transform loops in your program to use the
  13830. zero-delay loop mechanism unless it is known that the 'lp_count'
  13831. register can hold the required loop-counter value. Depending on
  13832. the width specified, the compiler and run-time library might
  13833. continue to use the loop mechanism for various needs. This option
  13834. defines macro '__ARC_LPC_WIDTH__' with the value of WIDTH.
  13835. '-mrf16'
  13836. This option instructs the compiler to generate code for a 16-entry
  13837. register file. This option defines the '__ARC_RF16__' preprocessor
  13838. macro.
  13839. '-mbranch-index'
  13840. Enable use of 'bi' or 'bih' instructions to implement jump tables.
  13841. The following options are passed through to the assembler, and also
  13842. define preprocessor macro symbols.
  13843. '-mdsp-packa'
  13844. Passed down to the assembler to enable the DSP Pack A extensions.
  13845. Also sets the preprocessor symbol '__Xdsp_packa'. This option is
  13846. deprecated.
  13847. '-mdvbf'
  13848. Passed down to the assembler to enable the dual Viterbi butterfly
  13849. extension. Also sets the preprocessor symbol '__Xdvbf'. This
  13850. option is deprecated.
  13851. '-mlock'
  13852. Passed down to the assembler to enable the locked load/store
  13853. conditional extension. Also sets the preprocessor symbol
  13854. '__Xlock'.
  13855. '-mmac-d16'
  13856. Passed down to the assembler. Also sets the preprocessor symbol
  13857. '__Xxmac_d16'. This option is deprecated.
  13858. '-mmac-24'
  13859. Passed down to the assembler. Also sets the preprocessor symbol
  13860. '__Xxmac_24'. This option is deprecated.
  13861. '-mrtsc'
  13862. Passed down to the assembler to enable the 64-bit time-stamp
  13863. counter extension instruction. Also sets the preprocessor symbol
  13864. '__Xrtsc'. This option is deprecated.
  13865. '-mswape'
  13866. Passed down to the assembler to enable the swap byte ordering
  13867. extension instruction. Also sets the preprocessor symbol
  13868. '__Xswape'.
  13869. '-mtelephony'
  13870. Passed down to the assembler to enable dual- and single-operand
  13871. instructions for telephony. Also sets the preprocessor symbol
  13872. '__Xtelephony'. This option is deprecated.
  13873. '-mxy'
  13874. Passed down to the assembler to enable the XY memory extension.
  13875. Also sets the preprocessor symbol '__Xxy'.
  13876. The following options control how the assembly code is annotated:
  13877. '-misize'
  13878. Annotate assembler instructions with estimated addresses.
  13879. '-mannotate-align'
  13880. Explain what alignment considerations lead to the decision to make
  13881. an instruction short or long.
  13882. The following options are passed through to the linker:
  13883. '-marclinux'
  13884. Passed through to the linker, to specify use of the 'arclinux'
  13885. emulation. This option is enabled by default in tool chains built
  13886. for 'arc-linux-uclibc' and 'arceb-linux-uclibc' targets when
  13887. profiling is not requested.
  13888. '-marclinux_prof'
  13889. Passed through to the linker, to specify use of the 'arclinux_prof'
  13890. emulation. This option is enabled by default in tool chains built
  13891. for 'arc-linux-uclibc' and 'arceb-linux-uclibc' targets when
  13892. profiling is requested.
  13893. The following options control the semantics of generated code:
  13894. '-mlong-calls'
  13895. Generate calls as register indirect calls, thus providing access to
  13896. the full 32-bit address range.
  13897. '-mmedium-calls'
  13898. Don't use less than 25-bit addressing range for calls, which is the
  13899. offset available for an unconditional branch-and-link instruction.
  13900. Conditional execution of function calls is suppressed, to allow use
  13901. of the 25-bit range, rather than the 21-bit range with conditional
  13902. branch-and-link. This is the default for tool chains built for
  13903. 'arc-linux-uclibc' and 'arceb-linux-uclibc' targets.
  13904. '-G NUM'
  13905. Put definitions of externally-visible data in a small data section
  13906. if that data is no bigger than NUM bytes. The default value of NUM
  13907. is 4 for any ARC configuration, or 8 when we have double load/store
  13908. operations.
  13909. '-mno-sdata'
  13910. Do not generate sdata references. This is the default for tool
  13911. chains built for 'arc-linux-uclibc' and 'arceb-linux-uclibc'
  13912. targets.
  13913. '-mvolatile-cache'
  13914. Use ordinarily cached memory accesses for volatile references.
  13915. This is the default.
  13916. '-mno-volatile-cache'
  13917. Enable cache bypass for volatile references.
  13918. The following options fine tune code generation:
  13919. '-malign-call'
  13920. Do alignment optimizations for call instructions.
  13921. '-mauto-modify-reg'
  13922. Enable the use of pre/post modify with register displacement.
  13923. '-mbbit-peephole'
  13924. Enable bbit peephole2.
  13925. '-mno-brcc'
  13926. This option disables a target-specific pass in 'arc_reorg' to
  13927. generate compare-and-branch ('brCC') instructions. It has no
  13928. effect on generation of these instructions driven by the combiner
  13929. pass.
  13930. '-mcase-vector-pcrel'
  13931. Use PC-relative switch case tables to enable case table shortening.
  13932. This is the default for '-Os'.
  13933. '-mcompact-casesi'
  13934. Enable compact 'casesi' pattern. This is the default for '-Os',
  13935. and only available for ARCv1 cores. This option is deprecated.
  13936. '-mno-cond-exec'
  13937. Disable the ARCompact-specific pass to generate conditional
  13938. execution instructions.
  13939. Due to delay slot scheduling and interactions between operand
  13940. numbers, literal sizes, instruction lengths, and the support for
  13941. conditional execution, the target-independent pass to generate
  13942. conditional execution is often lacking, so the ARC port has kept a
  13943. special pass around that tries to find more conditional execution
  13944. generation opportunities after register allocation, branch
  13945. shortening, and delay slot scheduling have been done. This pass
  13946. generally, but not always, improves performance and code size, at
  13947. the cost of extra compilation time, which is why there is an option
  13948. to switch it off. If you have a problem with call instructions
  13949. exceeding their allowable offset range because they are
  13950. conditionalized, you should consider using '-mmedium-calls'
  13951. instead.
  13952. '-mearly-cbranchsi'
  13953. Enable pre-reload use of the 'cbranchsi' pattern.
  13954. '-mexpand-adddi'
  13955. Expand 'adddi3' and 'subdi3' at RTL generation time into 'add.f',
  13956. 'adc' etc. This option is deprecated.
  13957. '-mindexed-loads'
  13958. Enable the use of indexed loads. This can be problematic because
  13959. some optimizers then assume that indexed stores exist, which is not
  13960. the case.
  13961. '-mlra'
  13962. Enable Local Register Allocation. This is still experimental for
  13963. ARC, so by default the compiler uses standard reload (i.e.
  13964. '-mno-lra').
  13965. '-mlra-priority-none'
  13966. Don't indicate any priority for target registers.
  13967. '-mlra-priority-compact'
  13968. Indicate target register priority for r0..r3 / r12..r15.
  13969. '-mlra-priority-noncompact'
  13970. Reduce target register priority for r0..r3 / r12..r15.
  13971. '-mmillicode'
  13972. When optimizing for size (using '-Os'), prologues and epilogues
  13973. that have to save or restore a large number of registers are often
  13974. shortened by using call to a special function in libgcc; this is
  13975. referred to as a _millicode_ call. As these calls can pose
  13976. performance issues, and/or cause linking issues when linking in a
  13977. nonstandard way, this option is provided to turn on or off
  13978. millicode call generation.
  13979. '-mcode-density-frame'
  13980. This option enable the compiler to emit 'enter' and 'leave'
  13981. instructions. These instructions are only valid for CPUs with
  13982. code-density feature.
  13983. '-mmixed-code'
  13984. Tweak register allocation to help 16-bit instruction generation.
  13985. This generally has the effect of decreasing the average instruction
  13986. size while increasing the instruction count.
  13987. '-mq-class'
  13988. Ths option is deprecated. Enable 'q' instruction alternatives.
  13989. This is the default for '-Os'.
  13990. '-mRcq'
  13991. Enable 'Rcq' constraint handling. Most short code generation
  13992. depends on this. This is the default.
  13993. '-mRcw'
  13994. Enable 'Rcw' constraint handling. Most ccfsm condexec mostly
  13995. depends on this. This is the default.
  13996. '-msize-level=LEVEL'
  13997. Fine-tune size optimization with regards to instruction lengths and
  13998. alignment. The recognized values for LEVEL are:
  13999. '0'
  14000. No size optimization. This level is deprecated and treated
  14001. like '1'.
  14002. '1'
  14003. Short instructions are used opportunistically.
  14004. '2'
  14005. In addition, alignment of loops and of code after barriers are
  14006. dropped.
  14007. '3'
  14008. In addition, optional data alignment is dropped, and the
  14009. option 'Os' is enabled.
  14010. This defaults to '3' when '-Os' is in effect. Otherwise, the
  14011. behavior when this is not set is equivalent to level '1'.
  14012. '-mtune=CPU'
  14013. Set instruction scheduling parameters for CPU, overriding any
  14014. implied by '-mcpu='.
  14015. Supported values for CPU are
  14016. 'ARC600'
  14017. Tune for ARC600 CPU.
  14018. 'ARC601'
  14019. Tune for ARC601 CPU.
  14020. 'ARC700'
  14021. Tune for ARC700 CPU with standard multiplier block.
  14022. 'ARC700-xmac'
  14023. Tune for ARC700 CPU with XMAC block.
  14024. 'ARC725D'
  14025. Tune for ARC725D CPU.
  14026. 'ARC750D'
  14027. Tune for ARC750D CPU.
  14028. '-mmultcost=NUM'
  14029. Cost to assume for a multiply instruction, with '4' being equal to
  14030. a normal instruction.
  14031. '-munalign-prob-threshold=PROBABILITY'
  14032. Set probability threshold for unaligning branches. When tuning for
  14033. 'ARC700' and optimizing for speed, branches without filled delay
  14034. slot are preferably emitted unaligned and long, unless profiling
  14035. indicates that the probability for the branch to be taken is below
  14036. PROBABILITY. *Note Cross-profiling::. The default is
  14037. (REG_BR_PROB_BASE/2), i.e. 5000.
  14038. The following options are maintained for backward compatibility, but
  14039. are now deprecated and will be removed in a future release:
  14040. '-margonaut'
  14041. Obsolete FPX.
  14042. '-mbig-endian'
  14043. '-EB'
  14044. Compile code for big-endian targets. Use of these options is now
  14045. deprecated. Big-endian code is supported by configuring GCC to
  14046. build 'arceb-elf32' and 'arceb-linux-uclibc' targets, for which big
  14047. endian is the default.
  14048. '-mlittle-endian'
  14049. '-EL'
  14050. Compile code for little-endian targets. Use of these options is
  14051. now deprecated. Little-endian code is supported by configuring GCC
  14052. to build 'arc-elf32' and 'arc-linux-uclibc' targets, for which
  14053. little endian is the default.
  14054. '-mbarrel_shifter'
  14055. Replaced by '-mbarrel-shifter'.
  14056. '-mdpfp_compact'
  14057. Replaced by '-mdpfp-compact'.
  14058. '-mdpfp_fast'
  14059. Replaced by '-mdpfp-fast'.
  14060. '-mdsp_packa'
  14061. Replaced by '-mdsp-packa'.
  14062. '-mEA'
  14063. Replaced by '-mea'.
  14064. '-mmac_24'
  14065. Replaced by '-mmac-24'.
  14066. '-mmac_d16'
  14067. Replaced by '-mmac-d16'.
  14068. '-mspfp_compact'
  14069. Replaced by '-mspfp-compact'.
  14070. '-mspfp_fast'
  14071. Replaced by '-mspfp-fast'.
  14072. '-mtune=CPU'
  14073. Values 'arc600', 'arc601', 'arc700' and 'arc700-xmac' for CPU are
  14074. replaced by 'ARC600', 'ARC601', 'ARC700' and 'ARC700-xmac'
  14075. respectively.
  14076. '-multcost=NUM'
  14077. Replaced by '-mmultcost'.
  14078. 
  14079. File: gcc.info, Node: ARM Options, Next: AVR Options, Prev: ARC Options, Up: Submodel Options
  14080. 3.19.5 ARM Options
  14081. ------------------
  14082. These '-m' options are defined for the ARM port:
  14083. '-mabi=NAME'
  14084. Generate code for the specified ABI. Permissible values are:
  14085. 'apcs-gnu', 'atpcs', 'aapcs', 'aapcs-linux' and 'iwmmxt'.
  14086. '-mapcs-frame'
  14087. Generate a stack frame that is compliant with the ARM Procedure
  14088. Call Standard for all functions, even if this is not strictly
  14089. necessary for correct execution of the code. Specifying
  14090. '-fomit-frame-pointer' with this option causes the stack frames not
  14091. to be generated for leaf functions. The default is
  14092. '-mno-apcs-frame'. This option is deprecated.
  14093. '-mapcs'
  14094. This is a synonym for '-mapcs-frame' and is deprecated.
  14095. '-mthumb-interwork'
  14096. Generate code that supports calling between the ARM and Thumb
  14097. instruction sets. Without this option, on pre-v5 architectures,
  14098. the two instruction sets cannot be reliably used inside one
  14099. program. The default is '-mno-thumb-interwork', since slightly
  14100. larger code is generated when '-mthumb-interwork' is specified. In
  14101. AAPCS configurations this option is meaningless.
  14102. '-mno-sched-prolog'
  14103. Prevent the reordering of instructions in the function prologue, or
  14104. the merging of those instruction with the instructions in the
  14105. function's body. This means that all functions start with a
  14106. recognizable set of instructions (or in fact one of a choice from a
  14107. small set of different function prologues), and this information
  14108. can be used to locate the start of functions inside an executable
  14109. piece of code. The default is '-msched-prolog'.
  14110. '-mfloat-abi=NAME'
  14111. Specifies which floating-point ABI to use. Permissible values are:
  14112. 'soft', 'softfp' and 'hard'.
  14113. Specifying 'soft' causes GCC to generate output containing library
  14114. calls for floating-point operations. 'softfp' allows the
  14115. generation of code using hardware floating-point instructions, but
  14116. still uses the soft-float calling conventions. 'hard' allows
  14117. generation of floating-point instructions and uses FPU-specific
  14118. calling conventions.
  14119. The default depends on the specific target configuration. Note
  14120. that the hard-float and soft-float ABIs are not link-compatible;
  14121. you must compile your entire program with the same ABI, and link
  14122. with a compatible set of libraries.
  14123. '-mgeneral-regs-only'
  14124. Generate code which uses only the general-purpose registers. This
  14125. will prevent the compiler from using floating-point and Advanced
  14126. SIMD registers but will not impose any restrictions on the
  14127. assembler.
  14128. '-mlittle-endian'
  14129. Generate code for a processor running in little-endian mode. This
  14130. is the default for all standard configurations.
  14131. '-mbig-endian'
  14132. Generate code for a processor running in big-endian mode; the
  14133. default is to compile code for a little-endian processor.
  14134. '-mbe8'
  14135. '-mbe32'
  14136. When linking a big-endian image select between BE8 and BE32
  14137. formats. The option has no effect for little-endian images and is
  14138. ignored. The default is dependent on the selected target
  14139. architecture. For ARMv6 and later architectures the default is
  14140. BE8, for older architectures the default is BE32. BE32 format has
  14141. been deprecated by ARM.
  14142. '-march=NAME[+extension...]'
  14143. This specifies the name of the target ARM architecture. GCC uses
  14144. this name to determine what kind of instructions it can emit when
  14145. generating assembly code. This option can be used in conjunction
  14146. with or instead of the '-mcpu=' option.
  14147. Permissible names are: 'armv4t', 'armv5t', 'armv5te', 'armv6',
  14148. 'armv6j', 'armv6k', 'armv6kz', 'armv6t2', 'armv6z', 'armv6zk',
  14149. 'armv7', 'armv7-a', 'armv7ve', 'armv8-a', 'armv8.1-a', 'armv8.2-a',
  14150. 'armv8.3-a', 'armv8.4-a', 'armv8.5-a', 'armv8.6-a', 'armv7-r',
  14151. 'armv8-r', 'armv6-m', 'armv6s-m', 'armv7-m', 'armv7e-m',
  14152. 'armv8-m.base', 'armv8-m.main', 'armv8.1-m.main', 'iwmmxt' and
  14153. 'iwmmxt2'.
  14154. Additionally, the following architectures, which lack support for
  14155. the Thumb execution state, are recognized but support is
  14156. deprecated: 'armv4'.
  14157. Many of the architectures support extensions. These can be added
  14158. by appending '+EXTENSION' to the architecture name. Extension
  14159. options are processed in order and capabilities accumulate. An
  14160. extension will also enable any necessary base extensions upon which
  14161. it depends. For example, the '+crypto' extension will always
  14162. enable the '+simd' extension. The exception to the additive
  14163. construction is for extensions that are prefixed with '+no...':
  14164. these extensions disable the specified option and any other
  14165. extensions that may depend on the presence of that extension.
  14166. For example, '-march=armv7-a+simd+nofp+vfpv4' is equivalent to
  14167. writing '-march=armv7-a+vfpv4' since the '+simd' option is entirely
  14168. disabled by the '+nofp' option that follows it.
  14169. Most extension names are generically named, but have an effect that
  14170. is dependent upon the architecture to which it is applied. For
  14171. example, the '+simd' option can be applied to both 'armv7-a' and
  14172. 'armv8-a' architectures, but will enable the original ARMv7-A
  14173. Advanced SIMD (Neon) extensions for 'armv7-a' and the ARMv8-A
  14174. variant for 'armv8-a'.
  14175. The table below lists the supported extensions for each
  14176. architecture. Architectures not mentioned do not support any
  14177. extensions.
  14178. 'armv5te'
  14179. 'armv6'
  14180. 'armv6j'
  14181. 'armv6k'
  14182. 'armv6kz'
  14183. 'armv6t2'
  14184. 'armv6z'
  14185. 'armv6zk'
  14186. '+fp'
  14187. The VFPv2 floating-point instructions. The extension
  14188. '+vfpv2' can be used as an alias for this extension.
  14189. '+nofp'
  14190. Disable the floating-point instructions.
  14191. 'armv7'
  14192. The common subset of the ARMv7-A, ARMv7-R and ARMv7-M
  14193. architectures.
  14194. '+fp'
  14195. The VFPv3 floating-point instructions, with 16
  14196. double-precision registers. The extension '+vfpv3-d16'
  14197. can be used as an alias for this extension. Note that
  14198. floating-point is not supported by the base ARMv7-M
  14199. architecture, but is compatible with both the ARMv7-A and
  14200. ARMv7-R architectures.
  14201. '+nofp'
  14202. Disable the floating-point instructions.
  14203. 'armv7-a'
  14204. '+mp'
  14205. The multiprocessing extension.
  14206. '+sec'
  14207. The security extension.
  14208. '+fp'
  14209. The VFPv3 floating-point instructions, with 16
  14210. double-precision registers. The extension '+vfpv3-d16'
  14211. can be used as an alias for this extension.
  14212. '+simd'
  14213. The Advanced SIMD (Neon) v1 and the VFPv3 floating-point
  14214. instructions. The extensions '+neon' and '+neon-vfpv3'
  14215. can be used as aliases for this extension.
  14216. '+vfpv3'
  14217. The VFPv3 floating-point instructions, with 32
  14218. double-precision registers.
  14219. '+vfpv3-d16-fp16'
  14220. The VFPv3 floating-point instructions, with 16
  14221. double-precision registers and the half-precision
  14222. floating-point conversion operations.
  14223. '+vfpv3-fp16'
  14224. The VFPv3 floating-point instructions, with 32
  14225. double-precision registers and the half-precision
  14226. floating-point conversion operations.
  14227. '+vfpv4-d16'
  14228. The VFPv4 floating-point instructions, with 16
  14229. double-precision registers.
  14230. '+vfpv4'
  14231. The VFPv4 floating-point instructions, with 32
  14232. double-precision registers.
  14233. '+neon-fp16'
  14234. The Advanced SIMD (Neon) v1 and the VFPv3 floating-point
  14235. instructions, with the half-precision floating-point
  14236. conversion operations.
  14237. '+neon-vfpv4'
  14238. The Advanced SIMD (Neon) v2 and the VFPv4 floating-point
  14239. instructions.
  14240. '+nosimd'
  14241. Disable the Advanced SIMD instructions (does not disable
  14242. floating point).
  14243. '+nofp'
  14244. Disable the floating-point and Advanced SIMD
  14245. instructions.
  14246. 'armv7ve'
  14247. The extended version of the ARMv7-A architecture with support
  14248. for virtualization.
  14249. '+fp'
  14250. The VFPv4 floating-point instructions, with 16
  14251. double-precision registers. The extension '+vfpv4-d16'
  14252. can be used as an alias for this extension.
  14253. '+simd'
  14254. The Advanced SIMD (Neon) v2 and the VFPv4 floating-point
  14255. instructions. The extension '+neon-vfpv4' can be used as
  14256. an alias for this extension.
  14257. '+vfpv3-d16'
  14258. The VFPv3 floating-point instructions, with 16
  14259. double-precision registers.
  14260. '+vfpv3'
  14261. The VFPv3 floating-point instructions, with 32
  14262. double-precision registers.
  14263. '+vfpv3-d16-fp16'
  14264. The VFPv3 floating-point instructions, with 16
  14265. double-precision registers and the half-precision
  14266. floating-point conversion operations.
  14267. '+vfpv3-fp16'
  14268. The VFPv3 floating-point instructions, with 32
  14269. double-precision registers and the half-precision
  14270. floating-point conversion operations.
  14271. '+vfpv4-d16'
  14272. The VFPv4 floating-point instructions, with 16
  14273. double-precision registers.
  14274. '+vfpv4'
  14275. The VFPv4 floating-point instructions, with 32
  14276. double-precision registers.
  14277. '+neon'
  14278. The Advanced SIMD (Neon) v1 and the VFPv3 floating-point
  14279. instructions. The extension '+neon-vfpv3' can be used as
  14280. an alias for this extension.
  14281. '+neon-fp16'
  14282. The Advanced SIMD (Neon) v1 and the VFPv3 floating-point
  14283. instructions, with the half-precision floating-point
  14284. conversion operations.
  14285. '+nosimd'
  14286. Disable the Advanced SIMD instructions (does not disable
  14287. floating point).
  14288. '+nofp'
  14289. Disable the floating-point and Advanced SIMD
  14290. instructions.
  14291. 'armv8-a'
  14292. '+crc'
  14293. The Cyclic Redundancy Check (CRC) instructions.
  14294. '+simd'
  14295. The ARMv8-A Advanced SIMD and floating-point
  14296. instructions.
  14297. '+crypto'
  14298. The cryptographic instructions.
  14299. '+nocrypto'
  14300. Disable the cryptographic instructions.
  14301. '+nofp'
  14302. Disable the floating-point, Advanced SIMD and
  14303. cryptographic instructions.
  14304. '+sb'
  14305. Speculation Barrier Instruction.
  14306. '+predres'
  14307. Execution and Data Prediction Restriction Instructions.
  14308. 'armv8.1-a'
  14309. '+simd'
  14310. The ARMv8.1-A Advanced SIMD and floating-point
  14311. instructions.
  14312. '+crypto'
  14313. The cryptographic instructions. This also enables the
  14314. Advanced SIMD and floating-point instructions.
  14315. '+nocrypto'
  14316. Disable the cryptographic instructions.
  14317. '+nofp'
  14318. Disable the floating-point, Advanced SIMD and
  14319. cryptographic instructions.
  14320. '+sb'
  14321. Speculation Barrier Instruction.
  14322. '+predres'
  14323. Execution and Data Prediction Restriction Instructions.
  14324. 'armv8.2-a'
  14325. 'armv8.3-a'
  14326. '+fp16'
  14327. The half-precision floating-point data processing
  14328. instructions. This also enables the Advanced SIMD and
  14329. floating-point instructions.
  14330. '+fp16fml'
  14331. The half-precision floating-point fmla extension. This
  14332. also enables the half-precision floating-point extension
  14333. and Advanced SIMD and floating-point instructions.
  14334. '+simd'
  14335. The ARMv8.1-A Advanced SIMD and floating-point
  14336. instructions.
  14337. '+crypto'
  14338. The cryptographic instructions. This also enables the
  14339. Advanced SIMD and floating-point instructions.
  14340. '+dotprod'
  14341. Enable the Dot Product extension. This also enables
  14342. Advanced SIMD instructions.
  14343. '+nocrypto'
  14344. Disable the cryptographic extension.
  14345. '+nofp'
  14346. Disable the floating-point, Advanced SIMD and
  14347. cryptographic instructions.
  14348. '+sb'
  14349. Speculation Barrier Instruction.
  14350. '+predres'
  14351. Execution and Data Prediction Restriction Instructions.
  14352. '+i8mm'
  14353. 8-bit Integer Matrix Multiply instructions. This also
  14354. enables Advanced SIMD and floating-point instructions.
  14355. '+bf16'
  14356. Brain half-precision floating-point instructions. This
  14357. also enables Advanced SIMD and floating-point
  14358. instructions.
  14359. 'armv8.4-a'
  14360. '+fp16'
  14361. The half-precision floating-point data processing
  14362. instructions. This also enables the Advanced SIMD and
  14363. floating-point instructions as well as the Dot Product
  14364. extension and the half-precision floating-point fmla
  14365. extension.
  14366. '+simd'
  14367. The ARMv8.3-A Advanced SIMD and floating-point
  14368. instructions as well as the Dot Product extension.
  14369. '+crypto'
  14370. The cryptographic instructions. This also enables the
  14371. Advanced SIMD and floating-point instructions as well as
  14372. the Dot Product extension.
  14373. '+nocrypto'
  14374. Disable the cryptographic extension.
  14375. '+nofp'
  14376. Disable the floating-point, Advanced SIMD and
  14377. cryptographic instructions.
  14378. '+sb'
  14379. Speculation Barrier Instruction.
  14380. '+predres'
  14381. Execution and Data Prediction Restriction Instructions.
  14382. '+i8mm'
  14383. 8-bit Integer Matrix Multiply instructions. This also
  14384. enables Advanced SIMD and floating-point instructions.
  14385. '+bf16'
  14386. Brain half-precision floating-point instructions. This
  14387. also enables Advanced SIMD and floating-point
  14388. instructions.
  14389. 'armv8.5-a'
  14390. '+fp16'
  14391. The half-precision floating-point data processing
  14392. instructions. This also enables the Advanced SIMD and
  14393. floating-point instructions as well as the Dot Product
  14394. extension and the half-precision floating-point fmla
  14395. extension.
  14396. '+simd'
  14397. The ARMv8.3-A Advanced SIMD and floating-point
  14398. instructions as well as the Dot Product extension.
  14399. '+crypto'
  14400. The cryptographic instructions. This also enables the
  14401. Advanced SIMD and floating-point instructions as well as
  14402. the Dot Product extension.
  14403. '+nocrypto'
  14404. Disable the cryptographic extension.
  14405. '+nofp'
  14406. Disable the floating-point, Advanced SIMD and
  14407. cryptographic instructions.
  14408. '+i8mm'
  14409. 8-bit Integer Matrix Multiply instructions. This also
  14410. enables Advanced SIMD and floating-point instructions.
  14411. '+bf16'
  14412. Brain half-precision floating-point instructions. This
  14413. also enables Advanced SIMD and floating-point
  14414. instructions.
  14415. 'armv8.6-a'
  14416. '+fp16'
  14417. The half-precision floating-point data processing
  14418. instructions. This also enables the Advanced SIMD and
  14419. floating-point instructions as well as the Dot Product
  14420. extension and the half-precision floating-point fmla
  14421. extension.
  14422. '+simd'
  14423. The ARMv8.3-A Advanced SIMD and floating-point
  14424. instructions as well as the Dot Product extension.
  14425. '+crypto'
  14426. The cryptographic instructions. This also enables the
  14427. Advanced SIMD and floating-point instructions as well as
  14428. the Dot Product extension.
  14429. '+nocrypto'
  14430. Disable the cryptographic extension.
  14431. '+nofp'
  14432. Disable the floating-point, Advanced SIMD and
  14433. cryptographic instructions.
  14434. '+i8mm'
  14435. 8-bit Integer Matrix Multiply instructions. This also
  14436. enables Advanced SIMD and floating-point instructions.
  14437. '+bf16'
  14438. Brain half-precision floating-point instructions. This
  14439. also enables Advanced SIMD and floating-point
  14440. instructions.
  14441. 'armv7-r'
  14442. '+fp.sp'
  14443. The single-precision VFPv3 floating-point instructions.
  14444. The extension '+vfpv3xd' can be used as an alias for this
  14445. extension.
  14446. '+fp'
  14447. The VFPv3 floating-point instructions with 16
  14448. double-precision registers. The extension +vfpv3-d16 can
  14449. be used as an alias for this extension.
  14450. '+vfpv3xd-d16-fp16'
  14451. The single-precision VFPv3 floating-point instructions
  14452. with 16 double-precision registers and the half-precision
  14453. floating-point conversion operations.
  14454. '+vfpv3-d16-fp16'
  14455. The VFPv3 floating-point instructions with 16
  14456. double-precision registers and the half-precision
  14457. floating-point conversion operations.
  14458. '+nofp'
  14459. Disable the floating-point extension.
  14460. '+idiv'
  14461. The ARM-state integer division instructions.
  14462. '+noidiv'
  14463. Disable the ARM-state integer division extension.
  14464. 'armv7e-m'
  14465. '+fp'
  14466. The single-precision VFPv4 floating-point instructions.
  14467. '+fpv5'
  14468. The single-precision FPv5 floating-point instructions.
  14469. '+fp.dp'
  14470. The single- and double-precision FPv5 floating-point
  14471. instructions.
  14472. '+nofp'
  14473. Disable the floating-point extensions.
  14474. 'armv8.1-m.main'
  14475. '+dsp'
  14476. The DSP instructions.
  14477. '+mve'
  14478. The M-Profile Vector Extension (MVE) integer
  14479. instructions.
  14480. '+mve.fp'
  14481. The M-Profile Vector Extension (MVE) integer and single
  14482. precision floating-point instructions.
  14483. '+fp'
  14484. The single-precision floating-point instructions.
  14485. '+fp.dp'
  14486. The single- and double-precision floating-point
  14487. instructions.
  14488. '+nofp'
  14489. Disable the floating-point extension.
  14490. '+cdecp0, +cdecp1, ... , +cdecp7'
  14491. Enable the Custom Datapath Extension (CDE) on selected
  14492. coprocessors according to the numbers given in the
  14493. options in the range 0 to 7.
  14494. 'armv8-m.main'
  14495. '+dsp'
  14496. The DSP instructions.
  14497. '+nodsp'
  14498. Disable the DSP extension.
  14499. '+fp'
  14500. The single-precision floating-point instructions.
  14501. '+fp.dp'
  14502. The single- and double-precision floating-point
  14503. instructions.
  14504. '+nofp'
  14505. Disable the floating-point extension.
  14506. '+cdecp0, +cdecp1, ... , +cdecp7'
  14507. Enable the Custom Datapath Extension (CDE) on selected
  14508. coprocessors according to the numbers given in the
  14509. options in the range 0 to 7.
  14510. 'armv8-r'
  14511. '+crc'
  14512. The Cyclic Redundancy Check (CRC) instructions.
  14513. '+fp.sp'
  14514. The single-precision FPv5 floating-point instructions.
  14515. '+simd'
  14516. The ARMv8-A Advanced SIMD and floating-point
  14517. instructions.
  14518. '+crypto'
  14519. The cryptographic instructions.
  14520. '+nocrypto'
  14521. Disable the cryptographic instructions.
  14522. '+nofp'
  14523. Disable the floating-point, Advanced SIMD and
  14524. cryptographic instructions.
  14525. '-march=native' causes the compiler to auto-detect the architecture
  14526. of the build computer. At present, this feature is only supported
  14527. on GNU/Linux, and not all architectures are recognized. If the
  14528. auto-detect is unsuccessful the option has no effect.
  14529. '-mtune=NAME'
  14530. This option specifies the name of the target ARM processor for
  14531. which GCC should tune the performance of the code. For some ARM
  14532. implementations better performance can be obtained by using this
  14533. option. Permissible names are: 'arm7tdmi', 'arm7tdmi-s',
  14534. 'arm710t', 'arm720t', 'arm740t', 'strongarm', 'strongarm110',
  14535. 'strongarm1100', 0'strongarm1110', 'arm8', 'arm810', 'arm9',
  14536. 'arm9e', 'arm920', 'arm920t', 'arm922t', 'arm946e-s', 'arm966e-s',
  14537. 'arm968e-s', 'arm926ej-s', 'arm940t', 'arm9tdmi', 'arm10tdmi',
  14538. 'arm1020t', 'arm1026ej-s', 'arm10e', 'arm1020e', 'arm1022e',
  14539. 'arm1136j-s', 'arm1136jf-s', 'mpcore', 'mpcorenovfp',
  14540. 'arm1156t2-s', 'arm1156t2f-s', 'arm1176jz-s', 'arm1176jzf-s',
  14541. 'generic-armv7-a', 'cortex-a5', 'cortex-a7', 'cortex-a8',
  14542. 'cortex-a9', 'cortex-a12', 'cortex-a15', 'cortex-a17',
  14543. 'cortex-a32', 'cortex-a35', 'cortex-a53', 'cortex-a55',
  14544. 'cortex-a57', 'cortex-a72', 'cortex-a73', 'cortex-a75',
  14545. 'cortex-a76', 'cortex-a76ae', 'cortex-a77', 'ares', 'cortex-r4',
  14546. 'cortex-r4f', 'cortex-r5', 'cortex-r7', 'cortex-r8', 'cortex-r52',
  14547. 'cortex-m0', 'cortex-m0plus', 'cortex-m1', 'cortex-m3',
  14548. 'cortex-m4', 'cortex-m7', 'cortex-m23', 'cortex-m33',
  14549. 'cortex-m35p', 'cortex-m55', 'cortex-m1.small-multiply',
  14550. 'cortex-m0.small-multiply', 'cortex-m0plus.small-multiply',
  14551. 'exynos-m1', 'marvell-pj4', 'neoverse-n1', 'neoverse-n2',
  14552. 'neoverse-v1', 'xscale', 'iwmmxt', 'iwmmxt2', 'ep9312', 'fa526',
  14553. 'fa626', 'fa606te', 'fa626te', 'fmp626', 'fa726te', 'xgene1'.
  14554. Additionally, this option can specify that GCC should tune the
  14555. performance of the code for a big.LITTLE system. Permissible names
  14556. are: 'cortex-a15.cortex-a7', 'cortex-a17.cortex-a7',
  14557. 'cortex-a57.cortex-a53', 'cortex-a72.cortex-a53',
  14558. 'cortex-a72.cortex-a35', 'cortex-a73.cortex-a53',
  14559. 'cortex-a75.cortex-a55', 'cortex-a76.cortex-a55'.
  14560. '-mtune=generic-ARCH' specifies that GCC should tune the
  14561. performance for a blend of processors within architecture ARCH.
  14562. The aim is to generate code that run well on the current most
  14563. popular processors, balancing between optimizations that benefit
  14564. some CPUs in the range, and avoiding performance pitfalls of other
  14565. CPUs. The effects of this option may change in future GCC versions
  14566. as CPU models come and go.
  14567. '-mtune' permits the same extension options as '-mcpu', but the
  14568. extension options do not affect the tuning of the generated code.
  14569. '-mtune=native' causes the compiler to auto-detect the CPU of the
  14570. build computer. At present, this feature is only supported on
  14571. GNU/Linux, and not all architectures are recognized. If the
  14572. auto-detect is unsuccessful the option has no effect.
  14573. '-mcpu=NAME[+extension...]'
  14574. This specifies the name of the target ARM processor. GCC uses this
  14575. name to derive the name of the target ARM architecture (as if
  14576. specified by '-march') and the ARM processor type for which to tune
  14577. for performance (as if specified by '-mtune'). Where this option
  14578. is used in conjunction with '-march' or '-mtune', those options
  14579. take precedence over the appropriate part of this option.
  14580. Many of the supported CPUs implement optional architectural
  14581. extensions. Where this is so the architectural extensions are
  14582. normally enabled by default. If implementations that lack the
  14583. extension exist, then the extension syntax can be used to disable
  14584. those extensions that have been omitted. For floating-point and
  14585. Advanced SIMD (Neon) instructions, the settings of the options
  14586. '-mfloat-abi' and '-mfpu' must also be considered: floating-point
  14587. and Advanced SIMD instructions will only be used if '-mfloat-abi'
  14588. is not set to 'soft'; and any setting of '-mfpu' other than 'auto'
  14589. will override the available floating-point and SIMD extension
  14590. instructions.
  14591. For example, 'cortex-a9' can be found in three major
  14592. configurations: integer only, with just a floating-point unit or
  14593. with floating-point and Advanced SIMD. The default is to enable all
  14594. the instructions, but the extensions '+nosimd' and '+nofp' can be
  14595. used to disable just the SIMD or both the SIMD and floating-point
  14596. instructions respectively.
  14597. Permissible names for this option are the same as those for
  14598. '-mtune'.
  14599. The following extension options are common to the listed CPUs:
  14600. '+nodsp'
  14601. Disable the DSP instructions on 'cortex-m33', 'cortex-m35p'.
  14602. '+nofp'
  14603. Disables the floating-point instructions on 'arm9e',
  14604. 'arm946e-s', 'arm966e-s', 'arm968e-s', 'arm10e', 'arm1020e',
  14605. 'arm1022e', 'arm926ej-s', 'arm1026ej-s', 'cortex-r5',
  14606. 'cortex-r7', 'cortex-r8', 'cortex-m4', 'cortex-m7',
  14607. 'cortex-m33' and 'cortex-m35p'. Disables the floating-point
  14608. and SIMD instructions on 'generic-armv7-a', 'cortex-a5',
  14609. 'cortex-a7', 'cortex-a8', 'cortex-a9', 'cortex-a12',
  14610. 'cortex-a15', 'cortex-a17', 'cortex-a15.cortex-a7',
  14611. 'cortex-a17.cortex-a7', 'cortex-a32', 'cortex-a35',
  14612. 'cortex-a53' and 'cortex-a55'.
  14613. '+nofp.dp'
  14614. Disables the double-precision component of the floating-point
  14615. instructions on 'cortex-r5', 'cortex-r7', 'cortex-r8',
  14616. 'cortex-r52' and 'cortex-m7'.
  14617. '+nosimd'
  14618. Disables the SIMD (but not floating-point) instructions on
  14619. 'generic-armv7-a', 'cortex-a5', 'cortex-a7' and 'cortex-a9'.
  14620. '+crypto'
  14621. Enables the cryptographic instructions on 'cortex-a32',
  14622. 'cortex-a35', 'cortex-a53', 'cortex-a55', 'cortex-a57',
  14623. 'cortex-a72', 'cortex-a73', 'cortex-a75', 'exynos-m1',
  14624. 'xgene1', 'cortex-a57.cortex-a53', 'cortex-a72.cortex-a53',
  14625. 'cortex-a73.cortex-a35', 'cortex-a73.cortex-a53' and
  14626. 'cortex-a75.cortex-a55'.
  14627. Additionally the 'generic-armv7-a' pseudo target defaults to VFPv3
  14628. with 16 double-precision registers. It supports the following
  14629. extension options: 'mp', 'sec', 'vfpv3-d16', 'vfpv3',
  14630. 'vfpv3-d16-fp16', 'vfpv3-fp16', 'vfpv4-d16', 'vfpv4', 'neon',
  14631. 'neon-vfpv3', 'neon-fp16', 'neon-vfpv4'. The meanings are the same
  14632. as for the extensions to '-march=armv7-a'.
  14633. '-mcpu=generic-ARCH' is also permissible, and is equivalent to
  14634. '-march=ARCH -mtune=generic-ARCH'. See '-mtune' for more
  14635. information.
  14636. '-mcpu=native' causes the compiler to auto-detect the CPU of the
  14637. build computer. At present, this feature is only supported on
  14638. GNU/Linux, and not all architectures are recognized. If the
  14639. auto-detect is unsuccessful the option has no effect.
  14640. '-mfpu=NAME'
  14641. This specifies what floating-point hardware (or hardware emulation)
  14642. is available on the target. Permissible names are: 'auto',
  14643. 'vfpv2', 'vfpv3', 'vfpv3-fp16', 'vfpv3-d16', 'vfpv3-d16-fp16',
  14644. 'vfpv3xd', 'vfpv3xd-fp16', 'neon-vfpv3', 'neon-fp16', 'vfpv4',
  14645. 'vfpv4-d16', 'fpv4-sp-d16', 'neon-vfpv4', 'fpv5-d16',
  14646. 'fpv5-sp-d16', 'fp-armv8', 'neon-fp-armv8' and
  14647. 'crypto-neon-fp-armv8'. Note that 'neon' is an alias for
  14648. 'neon-vfpv3' and 'vfp' is an alias for 'vfpv2'.
  14649. The setting 'auto' is the default and is special. It causes the
  14650. compiler to select the floating-point and Advanced SIMD
  14651. instructions based on the settings of '-mcpu' and '-march'.
  14652. If the selected floating-point hardware includes the NEON extension
  14653. (e.g. '-mfpu=neon'), note that floating-point operations are not
  14654. generated by GCC's auto-vectorization pass unless
  14655. '-funsafe-math-optimizations' is also specified. This is because
  14656. NEON hardware does not fully implement the IEEE 754 standard for
  14657. floating-point arithmetic (in particular denormal values are
  14658. treated as zero), so the use of NEON instructions may lead to a
  14659. loss of precision.
  14660. You can also set the fpu name at function level by using the
  14661. 'target("fpu=")' function attributes (*note ARM Function
  14662. Attributes::) or pragmas (*note Function Specific Option
  14663. Pragmas::).
  14664. '-mfp16-format=NAME'
  14665. Specify the format of the '__fp16' half-precision floating-point
  14666. type. Permissible names are 'none', 'ieee', and 'alternative'; the
  14667. default is 'none', in which case the '__fp16' type is not defined.
  14668. *Note Half-Precision::, for more information.
  14669. '-mstructure-size-boundary=N'
  14670. The sizes of all structures and unions are rounded up to a multiple
  14671. of the number of bits set by this option. Permissible values are
  14672. 8, 32 and 64. The default value varies for different toolchains.
  14673. For the COFF targeted toolchain the default value is 8. A value of
  14674. 64 is only allowed if the underlying ABI supports it.
  14675. Specifying a larger number can produce faster, more efficient code,
  14676. but can also increase the size of the program. Different values
  14677. are potentially incompatible. Code compiled with one value cannot
  14678. necessarily expect to work with code or libraries compiled with
  14679. another value, if they exchange information using structures or
  14680. unions.
  14681. This option is deprecated.
  14682. '-mabort-on-noreturn'
  14683. Generate a call to the function 'abort' at the end of a 'noreturn'
  14684. function. It is executed if the function tries to return.
  14685. '-mlong-calls'
  14686. '-mno-long-calls'
  14687. Tells the compiler to perform function calls by first loading the
  14688. address of the function into a register and then performing a
  14689. subroutine call on this register. This switch is needed if the
  14690. target function lies outside of the 64-megabyte addressing range of
  14691. the offset-based version of subroutine call instruction.
  14692. Even if this switch is enabled, not all function calls are turned
  14693. into long calls. The heuristic is that static functions, functions
  14694. that have the 'short_call' attribute, functions that are inside the
  14695. scope of a '#pragma no_long_calls' directive, and functions whose
  14696. definitions have already been compiled within the current
  14697. compilation unit are not turned into long calls. The exceptions to
  14698. this rule are that weak function definitions, functions with the
  14699. 'long_call' attribute or the 'section' attribute, and functions
  14700. that are within the scope of a '#pragma long_calls' directive are
  14701. always turned into long calls.
  14702. This feature is not enabled by default. Specifying
  14703. '-mno-long-calls' restores the default behavior, as does placing
  14704. the function calls within the scope of a '#pragma long_calls_off'
  14705. directive. Note these switches have no effect on how the compiler
  14706. generates code to handle function calls via function pointers.
  14707. '-msingle-pic-base'
  14708. Treat the register used for PIC addressing as read-only, rather
  14709. than loading it in the prologue for each function. The runtime
  14710. system is responsible for initializing this register with an
  14711. appropriate value before execution begins.
  14712. '-mpic-register=REG'
  14713. Specify the register to be used for PIC addressing. For standard
  14714. PIC base case, the default is any suitable register determined by
  14715. compiler. For single PIC base case, the default is 'R9' if target
  14716. is EABI based or stack-checking is enabled, otherwise the default
  14717. is 'R10'.
  14718. '-mpic-data-is-text-relative'
  14719. Assume that the displacement between the text and data segments is
  14720. fixed at static link time. This permits using PC-relative
  14721. addressing operations to access data known to be in the data
  14722. segment. For non-VxWorks RTP targets, this option is enabled by
  14723. default. When disabled on such targets, it will enable
  14724. '-msingle-pic-base' by default.
  14725. '-mpoke-function-name'
  14726. Write the name of each function into the text section, directly
  14727. preceding the function prologue. The generated code is similar to
  14728. this:
  14729. t0
  14730. .ascii "arm_poke_function_name", 0
  14731. .align
  14732. t1
  14733. .word 0xff000000 + (t1 - t0)
  14734. arm_poke_function_name
  14735. mov ip, sp
  14736. stmfd sp!, {fp, ip, lr, pc}
  14737. sub fp, ip, #4
  14738. When performing a stack backtrace, code can inspect the value of
  14739. 'pc' stored at 'fp + 0'. If the trace function then looks at
  14740. location 'pc - 12' and the top 8 bits are set, then we know that
  14741. there is a function name embedded immediately preceding this
  14742. location and has length '((pc[-3]) & 0xff000000)'.
  14743. '-mthumb'
  14744. '-marm'
  14745. Select between generating code that executes in ARM and Thumb
  14746. states. The default for most configurations is to generate code
  14747. that executes in ARM state, but the default can be changed by
  14748. configuring GCC with the '--with-mode='STATE configure option.
  14749. You can also override the ARM and Thumb mode for each function by
  14750. using the 'target("thumb")' and 'target("arm")' function attributes
  14751. (*note ARM Function Attributes::) or pragmas (*note Function
  14752. Specific Option Pragmas::).
  14753. '-mflip-thumb'
  14754. Switch ARM/Thumb modes on alternating functions. This option is
  14755. provided for regression testing of mixed Thumb/ARM code generation,
  14756. and is not intended for ordinary use in compiling code.
  14757. '-mtpcs-frame'
  14758. Generate a stack frame that is compliant with the Thumb Procedure
  14759. Call Standard for all non-leaf functions. (A leaf function is one
  14760. that does not call any other functions.) The default is
  14761. '-mno-tpcs-frame'.
  14762. '-mtpcs-leaf-frame'
  14763. Generate a stack frame that is compliant with the Thumb Procedure
  14764. Call Standard for all leaf functions. (A leaf function is one that
  14765. does not call any other functions.) The default is
  14766. '-mno-apcs-leaf-frame'.
  14767. '-mcallee-super-interworking'
  14768. Gives all externally visible functions in the file being compiled
  14769. an ARM instruction set header which switches to Thumb mode before
  14770. executing the rest of the function. This allows these functions to
  14771. be called from non-interworking code. This option is not valid in
  14772. AAPCS configurations because interworking is enabled by default.
  14773. '-mcaller-super-interworking'
  14774. Allows calls via function pointers (including virtual functions) to
  14775. execute correctly regardless of whether the target code has been
  14776. compiled for interworking or not. There is a small overhead in the
  14777. cost of executing a function pointer if this option is enabled.
  14778. This option is not valid in AAPCS configurations because
  14779. interworking is enabled by default.
  14780. '-mtp=NAME'
  14781. Specify the access model for the thread local storage pointer. The
  14782. valid models are 'soft', which generates calls to
  14783. '__aeabi_read_tp', 'cp15', which fetches the thread pointer from
  14784. 'cp15' directly (supported in the arm6k architecture), and 'auto',
  14785. which uses the best available method for the selected processor.
  14786. The default setting is 'auto'.
  14787. '-mtls-dialect=DIALECT'
  14788. Specify the dialect to use for accessing thread local storage. Two
  14789. DIALECTs are supported--'gnu' and 'gnu2'. The 'gnu' dialect
  14790. selects the original GNU scheme for supporting local and global
  14791. dynamic TLS models. The 'gnu2' dialect selects the GNU descriptor
  14792. scheme, which provides better performance for shared libraries.
  14793. The GNU descriptor scheme is compatible with the original scheme,
  14794. but does require new assembler, linker and library support.
  14795. Initial and local exec TLS models are unaffected by this option and
  14796. always use the original scheme.
  14797. '-mword-relocations'
  14798. Only generate absolute relocations on word-sized values (i.e.
  14799. R_ARM_ABS32). This is enabled by default on targets (uClinux,
  14800. SymbianOS) where the runtime loader imposes this restriction, and
  14801. when '-fpic' or '-fPIC' is specified. This option conflicts with
  14802. '-mslow-flash-data'.
  14803. '-mfix-cortex-m3-ldrd'
  14804. Some Cortex-M3 cores can cause data corruption when 'ldrd'
  14805. instructions with overlapping destination and base registers are
  14806. used. This option avoids generating these instructions. This
  14807. option is enabled by default when '-mcpu=cortex-m3' is specified.
  14808. '-munaligned-access'
  14809. '-mno-unaligned-access'
  14810. Enables (or disables) reading and writing of 16- and 32- bit values
  14811. from addresses that are not 16- or 32- bit aligned. By default
  14812. unaligned access is disabled for all pre-ARMv6, all ARMv6-M and for
  14813. ARMv8-M Baseline architectures, and enabled for all other
  14814. architectures. If unaligned access is not enabled then words in
  14815. packed data structures are accessed a byte at a time.
  14816. The ARM attribute 'Tag_CPU_unaligned_access' is set in the
  14817. generated object file to either true or false, depending upon the
  14818. setting of this option. If unaligned access is enabled then the
  14819. preprocessor symbol '__ARM_FEATURE_UNALIGNED' is also defined.
  14820. '-mneon-for-64bits'
  14821. This option is deprecated and has no effect.
  14822. '-mslow-flash-data'
  14823. Assume loading data from flash is slower than fetching instruction.
  14824. Therefore literal load is minimized for better performance. This
  14825. option is only supported when compiling for ARMv7 M-profile and off
  14826. by default. It conflicts with '-mword-relocations'.
  14827. '-masm-syntax-unified'
  14828. Assume inline assembler is using unified asm syntax. The default
  14829. is currently off which implies divided syntax. This option has no
  14830. impact on Thumb2. However, this may change in future releases of
  14831. GCC. Divided syntax should be considered deprecated.
  14832. '-mrestrict-it'
  14833. Restricts generation of IT blocks to conform to the rules of
  14834. ARMv8-A. IT blocks can only contain a single 16-bit instruction
  14835. from a select set of instructions. This option is on by default
  14836. for ARMv8-A Thumb mode.
  14837. '-mprint-tune-info'
  14838. Print CPU tuning information as comment in assembler file. This is
  14839. an option used only for regression testing of the compiler and not
  14840. intended for ordinary use in compiling code. This option is
  14841. disabled by default.
  14842. '-mverbose-cost-dump'
  14843. Enable verbose cost model dumping in the debug dump files. This
  14844. option is provided for use in debugging the compiler.
  14845. '-mpure-code'
  14846. Do not allow constant data to be placed in code sections.
  14847. Additionally, when compiling for ELF object format give all text
  14848. sections the ELF processor-specific section attribute
  14849. 'SHF_ARM_PURECODE'. This option is only available when generating
  14850. non-pic code for M-profile targets.
  14851. '-mcmse'
  14852. Generate secure code as per the "ARMv8-M Security Extensions:
  14853. Requirements on Development Tools Engineering Specification", which
  14854. can be found on
  14855. <https://developer.arm.com/documentation/ecm0359818/latest/>.
  14856. '-mfdpic'
  14857. '-mno-fdpic'
  14858. Select the FDPIC ABI, which uses 64-bit function descriptors to
  14859. represent pointers to functions. When the compiler is configured
  14860. for 'arm-*-uclinuxfdpiceabi' targets, this option is on by default
  14861. and implies '-fPIE' if none of the PIC/PIE-related options is
  14862. provided. On other targets, it only enables the FDPIC-specific
  14863. code generation features, and the user should explicitly provide
  14864. the PIC/PIE-related options as needed.
  14865. Note that static linking is not supported because it would still
  14866. involve the dynamic linker when the program self-relocates. If
  14867. such behavior is acceptable, use -static and -Wl,-dynamic-linker
  14868. options.
  14869. The opposite '-mno-fdpic' option is useful (and required) to build
  14870. the Linux kernel using the same ('arm-*-uclinuxfdpiceabi')
  14871. toolchain as the one used to build the userland programs.
  14872. 
  14873. File: gcc.info, Node: AVR Options, Next: Blackfin Options, Prev: ARM Options, Up: Submodel Options
  14874. 3.19.6 AVR Options
  14875. ------------------
  14876. These options are defined for AVR implementations:
  14877. '-mmcu=MCU'
  14878. Specify Atmel AVR instruction set architectures (ISA) or MCU type.
  14879. The default for this option is 'avr2'.
  14880. GCC supports the following AVR devices and ISAs:
  14881. 'avr2'
  14882. "Classic" devices with up to 8 KiB of program memory.
  14883. MCU = 'attiny22', 'attiny26', 'at90s2313', 'at90s2323',
  14884. 'at90s2333', 'at90s2343', 'at90s4414', 'at90s4433',
  14885. 'at90s4434', 'at90c8534', 'at90s8515', 'at90s8535'.
  14886. 'avr25'
  14887. "Classic" devices with up to 8 KiB of program memory and with
  14888. the 'MOVW' instruction.
  14889. MCU = 'attiny13', 'attiny13a', 'attiny24', 'attiny24a',
  14890. 'attiny25', 'attiny261', 'attiny261a', 'attiny2313',
  14891. 'attiny2313a', 'attiny43u', 'attiny44', 'attiny44a',
  14892. 'attiny45', 'attiny48', 'attiny441', 'attiny461',
  14893. 'attiny461a', 'attiny4313', 'attiny84', 'attiny84a',
  14894. 'attiny85', 'attiny87', 'attiny88', 'attiny828', 'attiny841',
  14895. 'attiny861', 'attiny861a', 'ata5272', 'ata6616c', 'at86rf401'.
  14896. 'avr3'
  14897. "Classic" devices with 16 KiB up to 64 KiB of program memory.
  14898. MCU = 'at76c711', 'at43usb355'.
  14899. 'avr31'
  14900. "Classic" devices with 128 KiB of program memory.
  14901. MCU = 'atmega103', 'at43usb320'.
  14902. 'avr35'
  14903. "Classic" devices with 16 KiB up to 64 KiB of program memory
  14904. and with the 'MOVW' instruction.
  14905. MCU = 'attiny167', 'attiny1634', 'atmega8u2', 'atmega16u2',
  14906. 'atmega32u2', 'ata5505', 'ata6617c', 'ata664251', 'at90usb82',
  14907. 'at90usb162'.
  14908. 'avr4'
  14909. "Enhanced" devices with up to 8 KiB of program memory.
  14910. MCU = 'atmega48', 'atmega48a', 'atmega48p', 'atmega48pa',
  14911. 'atmega48pb', 'atmega8', 'atmega8a', 'atmega8hva', 'atmega88',
  14912. 'atmega88a', 'atmega88p', 'atmega88pa', 'atmega88pb',
  14913. 'atmega8515', 'atmega8535', 'ata6285', 'ata6286', 'ata6289',
  14914. 'ata6612c', 'at90pwm1', 'at90pwm2', 'at90pwm2b', 'at90pwm3',
  14915. 'at90pwm3b', 'at90pwm81'.
  14916. 'avr5'
  14917. "Enhanced" devices with 16 KiB up to 64 KiB of program memory.
  14918. MCU = 'atmega16', 'atmega16a', 'atmega16hva', 'atmega16hva2',
  14919. 'atmega16hvb', 'atmega16hvbrevb', 'atmega16m1', 'atmega16u4',
  14920. 'atmega161', 'atmega162', 'atmega163', 'atmega164a',
  14921. 'atmega164p', 'atmega164pa', 'atmega165', 'atmega165a',
  14922. 'atmega165p', 'atmega165pa', 'atmega168', 'atmega168a',
  14923. 'atmega168p', 'atmega168pa', 'atmega168pb', 'atmega169',
  14924. 'atmega169a', 'atmega169p', 'atmega169pa', 'atmega32',
  14925. 'atmega32a', 'atmega32c1', 'atmega32hvb', 'atmega32hvbrevb',
  14926. 'atmega32m1', 'atmega32u4', 'atmega32u6', 'atmega323',
  14927. 'atmega324a', 'atmega324p', 'atmega324pa', 'atmega325',
  14928. 'atmega325a', 'atmega325p', 'atmega325pa', 'atmega328',
  14929. 'atmega328p', 'atmega328pb', 'atmega329', 'atmega329a',
  14930. 'atmega329p', 'atmega329pa', 'atmega3250', 'atmega3250a',
  14931. 'atmega3250p', 'atmega3250pa', 'atmega3290', 'atmega3290a',
  14932. 'atmega3290p', 'atmega3290pa', 'atmega406', 'atmega64',
  14933. 'atmega64a', 'atmega64c1', 'atmega64hve', 'atmega64hve2',
  14934. 'atmega64m1', 'atmega64rfr2', 'atmega640', 'atmega644',
  14935. 'atmega644a', 'atmega644p', 'atmega644pa', 'atmega644rfr2',
  14936. 'atmega645', 'atmega645a', 'atmega645p', 'atmega649',
  14937. 'atmega649a', 'atmega649p', 'atmega6450', 'atmega6450a',
  14938. 'atmega6450p', 'atmega6490', 'atmega6490a', 'atmega6490p',
  14939. 'ata5795', 'ata5790', 'ata5790n', 'ata5791', 'ata6613c',
  14940. 'ata6614q', 'ata5782', 'ata5831', 'ata8210', 'ata8510',
  14941. 'ata5702m322', 'at90pwm161', 'at90pwm216', 'at90pwm316',
  14942. 'at90can32', 'at90can64', 'at90scr100', 'at90usb646',
  14943. 'at90usb647', 'at94k', 'm3000'.
  14944. 'avr51'
  14945. "Enhanced" devices with 128 KiB of program memory.
  14946. MCU = 'atmega128', 'atmega128a', 'atmega128rfa1',
  14947. 'atmega128rfr2', 'atmega1280', 'atmega1281', 'atmega1284',
  14948. 'atmega1284p', 'atmega1284rfr2', 'at90can128', 'at90usb1286',
  14949. 'at90usb1287'.
  14950. 'avr6'
  14951. "Enhanced" devices with 3-byte PC, i.e. with more than 128 KiB
  14952. of program memory.
  14953. MCU = 'atmega256rfr2', 'atmega2560', 'atmega2561',
  14954. 'atmega2564rfr2'.
  14955. 'avrxmega2'
  14956. "XMEGA" devices with more than 8 KiB and up to 64 KiB of
  14957. program memory.
  14958. MCU = 'atxmega8e5', 'atxmega16a4', 'atxmega16a4u',
  14959. 'atxmega16c4', 'atxmega16d4', 'atxmega16e5', 'atxmega32a4',
  14960. 'atxmega32a4u', 'atxmega32c3', 'atxmega32c4', 'atxmega32d3',
  14961. 'atxmega32d4', 'atxmega32e5'.
  14962. 'avrxmega3'
  14963. "XMEGA" devices with up to 64 KiB of combined program memory
  14964. and RAM, and with program memory visible in the RAM address
  14965. space.
  14966. MCU = 'attiny202', 'attiny204', 'attiny212', 'attiny214',
  14967. 'attiny402', 'attiny404', 'attiny406', 'attiny412',
  14968. 'attiny414', 'attiny416', 'attiny417', 'attiny804',
  14969. 'attiny806', 'attiny807', 'attiny814', 'attiny816',
  14970. 'attiny817', 'attiny1604', 'attiny1606', 'attiny1607',
  14971. 'attiny1614', 'attiny1616', 'attiny1617', 'attiny3214',
  14972. 'attiny3216', 'attiny3217', 'atmega808', 'atmega809',
  14973. 'atmega1608', 'atmega1609', 'atmega3208', 'atmega3209',
  14974. 'atmega4808', 'atmega4809'.
  14975. 'avrxmega4'
  14976. "XMEGA" devices with more than 64 KiB and up to 128 KiB of
  14977. program memory.
  14978. MCU = 'atxmega64a3', 'atxmega64a3u', 'atxmega64a4u',
  14979. 'atxmega64b1', 'atxmega64b3', 'atxmega64c3', 'atxmega64d3',
  14980. 'atxmega64d4'.
  14981. 'avrxmega5'
  14982. "XMEGA" devices with more than 64 KiB and up to 128 KiB of
  14983. program memory and more than 64 KiB of RAM.
  14984. MCU = 'atxmega64a1', 'atxmega64a1u'.
  14985. 'avrxmega6'
  14986. "XMEGA" devices with more than 128 KiB of program memory.
  14987. MCU = 'atxmega128a3', 'atxmega128a3u', 'atxmega128b1',
  14988. 'atxmega128b3', 'atxmega128c3', 'atxmega128d3',
  14989. 'atxmega128d4', 'atxmega192a3', 'atxmega192a3u',
  14990. 'atxmega192c3', 'atxmega192d3', 'atxmega256a3',
  14991. 'atxmega256a3b', 'atxmega256a3bu', 'atxmega256a3u',
  14992. 'atxmega256c3', 'atxmega256d3', 'atxmega384c3',
  14993. 'atxmega384d3'.
  14994. 'avrxmega7'
  14995. "XMEGA" devices with more than 128 KiB of program memory and
  14996. more than 64 KiB of RAM.
  14997. MCU = 'atxmega128a1', 'atxmega128a1u', 'atxmega128a4u'.
  14998. 'avrtiny'
  14999. "TINY" Tiny core devices with 512 B up to 4 KiB of program
  15000. memory.
  15001. MCU = 'attiny4', 'attiny5', 'attiny9', 'attiny10', 'attiny20',
  15002. 'attiny40'.
  15003. 'avr1'
  15004. This ISA is implemented by the minimal AVR core and supported
  15005. for assembler only.
  15006. MCU = 'attiny11', 'attiny12', 'attiny15', 'attiny28',
  15007. 'at90s1200'.
  15008. '-mabsdata'
  15009. Assume that all data in static storage can be accessed by LDS / STS
  15010. instructions. This option has only an effect on reduced Tiny
  15011. devices like ATtiny40. See also the 'absdata' *note variable
  15012. attribute: AVR Variable Attributes.
  15013. '-maccumulate-args'
  15014. Accumulate outgoing function arguments and acquire/release the
  15015. needed stack space for outgoing function arguments once in function
  15016. prologue/epilogue. Without this option, outgoing arguments are
  15017. pushed before calling a function and popped afterwards.
  15018. Popping the arguments after the function call can be expensive on
  15019. AVR so that accumulating the stack space might lead to smaller
  15020. executables because arguments need not be removed from the stack
  15021. after such a function call.
  15022. This option can lead to reduced code size for functions that
  15023. perform several calls to functions that get their arguments on the
  15024. stack like calls to printf-like functions.
  15025. '-mbranch-cost=COST'
  15026. Set the branch costs for conditional branch instructions to COST.
  15027. Reasonable values for COST are small, non-negative integers. The
  15028. default branch cost is 0.
  15029. '-mcall-prologues'
  15030. Functions prologues/epilogues are expanded as calls to appropriate
  15031. subroutines. Code size is smaller.
  15032. '-mdouble=BITS'
  15033. '-mlong-double=BITS'
  15034. Set the size (in bits) of the 'double' or 'long double' type,
  15035. respectively. Possible values for BITS are 32 and 64. Whether or
  15036. not a specific value for BITS is allowed depends on the
  15037. '--with-double=' and '--with-long-double='
  15038. configure options (https://gcc.gnu.org/install/configure.html#avr),
  15039. and the same applies for the default values of the options.
  15040. '-mgas-isr-prologues'
  15041. Interrupt service routines (ISRs) may use the '__gcc_isr' pseudo
  15042. instruction supported by GNU Binutils. If this option is on, the
  15043. feature can still be disabled for individual ISRs by means of the
  15044. *note 'no_gccisr': AVR Function Attributes. function attribute.
  15045. This feature is activated per default if optimization is on (but
  15046. not with '-Og', *note Optimize Options::), and if GNU Binutils
  15047. support PR21683 (https://sourceware.org/PR21683).
  15048. '-mint8'
  15049. Assume 'int' to be 8-bit integer. This affects the sizes of all
  15050. types: a 'char' is 1 byte, an 'int' is 1 byte, a 'long' is 2 bytes,
  15051. and 'long long' is 4 bytes. Please note that this option does not
  15052. conform to the C standards, but it results in smaller code size.
  15053. '-mmain-is-OS_task'
  15054. Do not save registers in 'main'. The effect is the same like
  15055. attaching attribute *note 'OS_task': AVR Function Attributes. to
  15056. 'main'. It is activated per default if optimization is on.
  15057. '-mn-flash=NUM'
  15058. Assume that the flash memory has a size of NUM times 64 KiB.
  15059. '-mno-interrupts'
  15060. Generated code is not compatible with hardware interrupts. Code
  15061. size is smaller.
  15062. '-mrelax'
  15063. Try to replace 'CALL' resp. 'JMP' instruction by the shorter
  15064. 'RCALL' resp. 'RJMP' instruction if applicable. Setting '-mrelax'
  15065. just adds the '--mlink-relax' option to the assembler's command
  15066. line and the '--relax' option to the linker's command line.
  15067. Jump relaxing is performed by the linker because jump offsets are
  15068. not known before code is located. Therefore, the assembler code
  15069. generated by the compiler is the same, but the instructions in the
  15070. executable may differ from instructions in the assembler code.
  15071. Relaxing must be turned on if linker stubs are needed, see the
  15072. section on 'EIND' and linker stubs below.
  15073. '-mrmw'
  15074. Assume that the device supports the Read-Modify-Write instructions
  15075. 'XCH', 'LAC', 'LAS' and 'LAT'.
  15076. '-mshort-calls'
  15077. Assume that 'RJMP' and 'RCALL' can target the whole program memory.
  15078. This option is used internally for multilib selection. It is not
  15079. an optimization option, and you don't need to set it by hand.
  15080. '-msp8'
  15081. Treat the stack pointer register as an 8-bit register, i.e. assume
  15082. the high byte of the stack pointer is zero. In general, you don't
  15083. need to set this option by hand.
  15084. This option is used internally by the compiler to select and build
  15085. multilibs for architectures 'avr2' and 'avr25'. These
  15086. architectures mix devices with and without 'SPH'. For any setting
  15087. other than '-mmcu=avr2' or '-mmcu=avr25' the compiler driver adds
  15088. or removes this option from the compiler proper's command line,
  15089. because the compiler then knows if the device or architecture has
  15090. an 8-bit stack pointer and thus no 'SPH' register or not.
  15091. '-mstrict-X'
  15092. Use address register 'X' in a way proposed by the hardware. This
  15093. means that 'X' is only used in indirect, post-increment or
  15094. pre-decrement addressing.
  15095. Without this option, the 'X' register may be used in the same way
  15096. as 'Y' or 'Z' which then is emulated by additional instructions.
  15097. For example, loading a value with 'X+const' addressing with a small
  15098. non-negative 'const < 64' to a register RN is performed as
  15099. adiw r26, const ; X += const
  15100. ld RN, X ; RN = *X
  15101. sbiw r26, const ; X -= const
  15102. '-mtiny-stack'
  15103. Only change the lower 8 bits of the stack pointer.
  15104. '-mfract-convert-truncate'
  15105. Allow to use truncation instead of rounding towards zero for
  15106. fractional fixed-point types.
  15107. '-nodevicelib'
  15108. Don't link against AVR-LibC's device specific library 'lib<mcu>.a'.
  15109. '-nodevicespecs'
  15110. Don't add '-specs=device-specs/specs-MCU' to the compiler driver's
  15111. command line. The user takes responsibility for supplying the
  15112. sub-processes like compiler proper, assembler and linker with
  15113. appropriate command line options. This means that the user has to
  15114. supply her private device specs file by means of
  15115. '-specs=PATH-TO-SPECS-FILE'. There is no more need for option
  15116. '-mmcu=MCU'.
  15117. This option can also serve as a replacement for the older way of
  15118. specifying custom device-specs files that needed '-B SOME-PATH' to
  15119. point to a directory which contains a folder named 'device-specs'
  15120. which contains a specs file named 'specs-MCU', where MCU was
  15121. specified by '-mmcu=MCU'.
  15122. '-Waddr-space-convert'
  15123. Warn about conversions between address spaces in the case where the
  15124. resulting address space is not contained in the incoming address
  15125. space.
  15126. '-Wmisspelled-isr'
  15127. Warn if the ISR is misspelled, i.e. without __vector prefix.
  15128. Enabled by default.
  15129. 3.19.6.1 'EIND' and Devices with More Than 128 Ki Bytes of Flash
  15130. ................................................................
  15131. Pointers in the implementation are 16 bits wide. The address of a
  15132. function or label is represented as word address so that indirect jumps
  15133. and calls can target any code address in the range of 64 Ki words.
  15134. In order to facilitate indirect jump on devices with more than 128 Ki
  15135. bytes of program memory space, there is a special function register
  15136. called 'EIND' that serves as most significant part of the target address
  15137. when 'EICALL' or 'EIJMP' instructions are used.
  15138. Indirect jumps and calls on these devices are handled as follows by the
  15139. compiler and are subject to some limitations:
  15140. * The compiler never sets 'EIND'.
  15141. * The compiler uses 'EIND' implicitly in 'EICALL'/'EIJMP'
  15142. instructions or might read 'EIND' directly in order to emulate an
  15143. indirect call/jump by means of a 'RET' instruction.
  15144. * The compiler assumes that 'EIND' never changes during the startup
  15145. code or during the application. In particular, 'EIND' is not
  15146. saved/restored in function or interrupt service routine
  15147. prologue/epilogue.
  15148. * For indirect calls to functions and computed goto, the linker
  15149. generates _stubs_. Stubs are jump pads sometimes also called
  15150. _trampolines_. Thus, the indirect call/jump jumps to such a stub.
  15151. The stub contains a direct jump to the desired address.
  15152. * Linker relaxation must be turned on so that the linker generates
  15153. the stubs correctly in all situations. See the compiler option
  15154. '-mrelax' and the linker option '--relax'. There are corner cases
  15155. where the linker is supposed to generate stubs but aborts without
  15156. relaxation and without a helpful error message.
  15157. * The default linker script is arranged for code with 'EIND = 0'. If
  15158. code is supposed to work for a setup with 'EIND != 0', a custom
  15159. linker script has to be used in order to place the sections whose
  15160. name start with '.trampolines' into the segment where 'EIND' points
  15161. to.
  15162. * The startup code from libgcc never sets 'EIND'. Notice that
  15163. startup code is a blend of code from libgcc and AVR-LibC. For the
  15164. impact of AVR-LibC on 'EIND', see the
  15165. AVR-LibC user manual (http://nongnu.org/avr-libc/user-manual/).
  15166. * It is legitimate for user-specific startup code to set up 'EIND'
  15167. early, for example by means of initialization code located in
  15168. section '.init3'. Such code runs prior to general startup code
  15169. that initializes RAM and calls constructors, but after the bit of
  15170. startup code from AVR-LibC that sets 'EIND' to the segment where
  15171. the vector table is located.
  15172. #include <avr/io.h>
  15173. static void
  15174. __attribute__((section(".init3"),naked,used,no_instrument_function))
  15175. init3_set_eind (void)
  15176. {
  15177. __asm volatile ("ldi r24,pm_hh8(__trampolines_start)\n\t"
  15178. "out %i0,r24" :: "n" (&EIND) : "r24","memory");
  15179. }
  15180. The '__trampolines_start' symbol is defined in the linker script.
  15181. * Stubs are generated automatically by the linker if the following
  15182. two conditions are met:
  15183. - The address of a label is taken by means of the 'gs' modifier
  15184. (short for _generate stubs_) like so:
  15185. LDI r24, lo8(gs(FUNC))
  15186. LDI r25, hi8(gs(FUNC))
  15187. - The final location of that label is in a code segment
  15188. _outside_ the segment where the stubs are located.
  15189. * The compiler emits such 'gs' modifiers for code labels in the
  15190. following situations:
  15191. - Taking address of a function or code label.
  15192. - Computed goto.
  15193. - If prologue-save function is used, see '-mcall-prologues'
  15194. command-line option.
  15195. - Switch/case dispatch tables. If you do not want such dispatch
  15196. tables you can specify the '-fno-jump-tables' command-line
  15197. option.
  15198. - C and C++ constructors/destructors called during
  15199. startup/shutdown.
  15200. - If the tools hit a 'gs()' modifier explained above.
  15201. * Jumping to non-symbolic addresses like so is _not_ supported:
  15202. int main (void)
  15203. {
  15204. /* Call function at word address 0x2 */
  15205. return ((int(*)(void)) 0x2)();
  15206. }
  15207. Instead, a stub has to be set up, i.e. the function has to be
  15208. called through a symbol ('func_4' in the example):
  15209. int main (void)
  15210. {
  15211. extern int func_4 (void);
  15212. /* Call function at byte address 0x4 */
  15213. return func_4();
  15214. }
  15215. and the application be linked with '-Wl,--defsym,func_4=0x4'.
  15216. Alternatively, 'func_4' can be defined in the linker script.
  15217. 3.19.6.2 Handling of the 'RAMPD', 'RAMPX', 'RAMPY' and 'RAMPZ' Special Function Registers
  15218. .........................................................................................
  15219. Some AVR devices support memories larger than the 64 KiB range that can
  15220. be accessed with 16-bit pointers. To access memory locations outside
  15221. this 64 KiB range, the content of a 'RAMP' register is used as high part
  15222. of the address: The 'X', 'Y', 'Z' address register is concatenated with
  15223. the 'RAMPX', 'RAMPY', 'RAMPZ' special function register, respectively,
  15224. to get a wide address. Similarly, 'RAMPD' is used together with direct
  15225. addressing.
  15226. * The startup code initializes the 'RAMP' special function registers
  15227. with zero.
  15228. * If a *note named address space: AVR Named Address Spaces. other
  15229. than generic or '__flash' is used, then 'RAMPZ' is set as needed
  15230. before the operation.
  15231. * If the device supports RAM larger than 64 KiB and the compiler
  15232. needs to change 'RAMPZ' to accomplish an operation, 'RAMPZ' is
  15233. reset to zero after the operation.
  15234. * If the device comes with a specific 'RAMP' register, the ISR
  15235. prologue/epilogue saves/restores that SFR and initializes it with
  15236. zero in case the ISR code might (implicitly) use it.
  15237. * RAM larger than 64 KiB is not supported by GCC for AVR targets. If
  15238. you use inline assembler to read from locations outside the 16-bit
  15239. address range and change one of the 'RAMP' registers, you must
  15240. reset it to zero after the access.
  15241. 3.19.6.3 AVR Built-in Macros
  15242. ............................
  15243. GCC defines several built-in macros so that the user code can test for
  15244. the presence or absence of features. Almost any of the following
  15245. built-in macros are deduced from device capabilities and thus triggered
  15246. by the '-mmcu=' command-line option.
  15247. For even more AVR-specific built-in macros see *note AVR Named Address
  15248. Spaces:: and *note AVR Built-in Functions::.
  15249. '__AVR_ARCH__'
  15250. Build-in macro that resolves to a decimal number that identifies
  15251. the architecture and depends on the '-mmcu=MCU' option. Possible
  15252. values are:
  15253. '2', '25', '3', '31', '35', '4', '5', '51', '6'
  15254. for MCU='avr2', 'avr25', 'avr3', 'avr31', 'avr35', 'avr4', 'avr5',
  15255. 'avr51', 'avr6',
  15256. respectively and
  15257. '100', '102', '103', '104', '105', '106', '107'
  15258. for MCU='avrtiny', 'avrxmega2', 'avrxmega3', 'avrxmega4',
  15259. 'avrxmega5', 'avrxmega6', 'avrxmega7', respectively. If MCU
  15260. specifies a device, this built-in macro is set accordingly. For
  15261. example, with '-mmcu=atmega8' the macro is defined to '4'.
  15262. '__AVR_DEVICE__'
  15263. Setting '-mmcu=DEVICE' defines this built-in macro which reflects
  15264. the device's name. For example, '-mmcu=atmega8' defines the
  15265. built-in macro '__AVR_ATmega8__', '-mmcu=attiny261a' defines
  15266. '__AVR_ATtiny261A__', etc.
  15267. The built-in macros' names follow the scheme '__AVR_DEVICE__' where
  15268. DEVICE is the device name as from the AVR user manual. The
  15269. difference between DEVICE in the built-in macro and DEVICE in
  15270. '-mmcu=DEVICE' is that the latter is always lowercase.
  15271. If DEVICE is not a device but only a core architecture like
  15272. 'avr51', this macro is not defined.
  15273. '__AVR_DEVICE_NAME__'
  15274. Setting '-mmcu=DEVICE' defines this built-in macro to the device's
  15275. name. For example, with '-mmcu=atmega8' the macro is defined to
  15276. 'atmega8'.
  15277. If DEVICE is not a device but only a core architecture like
  15278. 'avr51', this macro is not defined.
  15279. '__AVR_XMEGA__'
  15280. The device / architecture belongs to the XMEGA family of devices.
  15281. '__AVR_HAVE_ELPM__'
  15282. The device has the 'ELPM' instruction.
  15283. '__AVR_HAVE_ELPMX__'
  15284. The device has the 'ELPM RN,Z' and 'ELPM RN,Z+' instructions.
  15285. '__AVR_HAVE_MOVW__'
  15286. The device has the 'MOVW' instruction to perform 16-bit
  15287. register-register moves.
  15288. '__AVR_HAVE_LPMX__'
  15289. The device has the 'LPM RN,Z' and 'LPM RN,Z+' instructions.
  15290. '__AVR_HAVE_MUL__'
  15291. The device has a hardware multiplier.
  15292. '__AVR_HAVE_JMP_CALL__'
  15293. The device has the 'JMP' and 'CALL' instructions. This is the case
  15294. for devices with more than 8 KiB of program memory.
  15295. '__AVR_HAVE_EIJMP_EICALL__'
  15296. '__AVR_3_BYTE_PC__'
  15297. The device has the 'EIJMP' and 'EICALL' instructions. This is the
  15298. case for devices with more than 128 KiB of program memory. This
  15299. also means that the program counter (PC) is 3 bytes wide.
  15300. '__AVR_2_BYTE_PC__'
  15301. The program counter (PC) is 2 bytes wide. This is the case for
  15302. devices with up to 128 KiB of program memory.
  15303. '__AVR_HAVE_8BIT_SP__'
  15304. '__AVR_HAVE_16BIT_SP__'
  15305. The stack pointer (SP) register is treated as 8-bit respectively
  15306. 16-bit register by the compiler. The definition of these macros is
  15307. affected by '-mtiny-stack'.
  15308. '__AVR_HAVE_SPH__'
  15309. '__AVR_SP8__'
  15310. The device has the SPH (high part of stack pointer) special
  15311. function register or has an 8-bit stack pointer, respectively. The
  15312. definition of these macros is affected by '-mmcu=' and in the cases
  15313. of '-mmcu=avr2' and '-mmcu=avr25' also by '-msp8'.
  15314. '__AVR_HAVE_RAMPD__'
  15315. '__AVR_HAVE_RAMPX__'
  15316. '__AVR_HAVE_RAMPY__'
  15317. '__AVR_HAVE_RAMPZ__'
  15318. The device has the 'RAMPD', 'RAMPX', 'RAMPY', 'RAMPZ' special
  15319. function register, respectively.
  15320. '__NO_INTERRUPTS__'
  15321. This macro reflects the '-mno-interrupts' command-line option.
  15322. '__AVR_ERRATA_SKIP__'
  15323. '__AVR_ERRATA_SKIP_JMP_CALL__'
  15324. Some AVR devices (AT90S8515, ATmega103) must not skip 32-bit
  15325. instructions because of a hardware erratum. Skip instructions are
  15326. 'SBRS', 'SBRC', 'SBIS', 'SBIC' and 'CPSE'. The second macro is
  15327. only defined if '__AVR_HAVE_JMP_CALL__' is also set.
  15328. '__AVR_ISA_RMW__'
  15329. The device has Read-Modify-Write instructions (XCH, LAC, LAS and
  15330. LAT).
  15331. '__AVR_SFR_OFFSET__=OFFSET'
  15332. Instructions that can address I/O special function registers
  15333. directly like 'IN', 'OUT', 'SBI', etc. may use a different address
  15334. as if addressed by an instruction to access RAM like 'LD' or 'STS'.
  15335. This offset depends on the device architecture and has to be
  15336. subtracted from the RAM address in order to get the respective
  15337. I/O address.
  15338. '__AVR_SHORT_CALLS__'
  15339. The '-mshort-calls' command line option is set.
  15340. '__AVR_PM_BASE_ADDRESS__=ADDR'
  15341. Some devices support reading from flash memory by means of 'LD*'
  15342. instructions. The flash memory is seen in the data address space
  15343. at an offset of '__AVR_PM_BASE_ADDRESS__'. If this macro is not
  15344. defined, this feature is not available. If defined, the address
  15345. space is linear and there is no need to put '.rodata' into RAM.
  15346. This is handled by the default linker description file, and is
  15347. currently available for 'avrtiny' and 'avrxmega3'. Even more
  15348. convenient, there is no need to use address spaces like '__flash'
  15349. or features like attribute 'progmem' and 'pgm_read_*'.
  15350. '__WITH_AVRLIBC__'
  15351. The compiler is configured to be used together with AVR-Libc. See
  15352. the '--with-avrlibc' configure option.
  15353. '__HAVE_DOUBLE_MULTILIB__'
  15354. Defined if '-mdouble=' acts as a multilib option.
  15355. '__HAVE_DOUBLE32__'
  15356. '__HAVE_DOUBLE64__'
  15357. Defined if the compiler supports 32-bit double resp. 64-bit
  15358. double. The actual layout is specified by option '-mdouble='.
  15359. '__DEFAULT_DOUBLE__'
  15360. The size in bits of 'double' if '-mdouble=' is not set. To test
  15361. the layout of 'double' in a program, use the built-in macro
  15362. '__SIZEOF_DOUBLE__'.
  15363. '__HAVE_LONG_DOUBLE32__'
  15364. '__HAVE_LONG_DOUBLE64__'
  15365. '__HAVE_LONG_DOUBLE_MULTILIB__'
  15366. '__DEFAULT_LONG_DOUBLE__'
  15367. Same as above, but for 'long double' instead of 'double'.
  15368. '__WITH_DOUBLE_COMPARISON__'
  15369. Reflects the '--with-double-comparison={tristate|bool|libf7}'
  15370. configure option (https://gcc.gnu.org/install/configure.html#avr)
  15371. and is defined to '2' or '3'.
  15372. '__WITH_LIBF7_LIBGCC__'
  15373. '__WITH_LIBF7_MATH__'
  15374. '__WITH_LIBF7_MATH_SYMBOLS__'
  15375. Reflects the '--with-libf7={libgcc|math|math-symbols}'
  15376. configure option (https://gcc.gnu.org/install/configure.html#avr).
  15377. 
  15378. File: gcc.info, Node: Blackfin Options, Next: C6X Options, Prev: AVR Options, Up: Submodel Options
  15379. 3.19.7 Blackfin Options
  15380. -----------------------
  15381. '-mcpu=CPU[-SIREVISION]'
  15382. Specifies the name of the target Blackfin processor. Currently,
  15383. CPU can be one of 'bf512', 'bf514', 'bf516', 'bf518', 'bf522',
  15384. 'bf523', 'bf524', 'bf525', 'bf526', 'bf527', 'bf531', 'bf532',
  15385. 'bf533', 'bf534', 'bf536', 'bf537', 'bf538', 'bf539', 'bf542',
  15386. 'bf544', 'bf547', 'bf548', 'bf549', 'bf542m', 'bf544m', 'bf547m',
  15387. 'bf548m', 'bf549m', 'bf561', 'bf592'.
  15388. The optional SIREVISION specifies the silicon revision of the
  15389. target Blackfin processor. Any workarounds available for the
  15390. targeted silicon revision are enabled. If SIREVISION is 'none', no
  15391. workarounds are enabled. If SIREVISION is 'any', all workarounds
  15392. for the targeted processor are enabled. The '__SILICON_REVISION__'
  15393. macro is defined to two hexadecimal digits representing the major
  15394. and minor numbers in the silicon revision. If SIREVISION is
  15395. 'none', the '__SILICON_REVISION__' is not defined. If SIREVISION
  15396. is 'any', the '__SILICON_REVISION__' is defined to be '0xffff'. If
  15397. this optional SIREVISION is not used, GCC assumes the latest known
  15398. silicon revision of the targeted Blackfin processor.
  15399. GCC defines a preprocessor macro for the specified CPU. For the
  15400. 'bfin-elf' toolchain, this option causes the hardware BSP provided
  15401. by libgloss to be linked in if '-msim' is not given.
  15402. Without this option, 'bf532' is used as the processor by default.
  15403. Note that support for 'bf561' is incomplete. For 'bf561', only the
  15404. preprocessor macro is defined.
  15405. '-msim'
  15406. Specifies that the program will be run on the simulator. This
  15407. causes the simulator BSP provided by libgloss to be linked in.
  15408. This option has effect only for 'bfin-elf' toolchain. Certain
  15409. other options, such as '-mid-shared-library' and '-mfdpic', imply
  15410. '-msim'.
  15411. '-momit-leaf-frame-pointer'
  15412. Don't keep the frame pointer in a register for leaf functions.
  15413. This avoids the instructions to save, set up and restore frame
  15414. pointers and makes an extra register available in leaf functions.
  15415. '-mspecld-anomaly'
  15416. When enabled, the compiler ensures that the generated code does not
  15417. contain speculative loads after jump instructions. If this option
  15418. is used, '__WORKAROUND_SPECULATIVE_LOADS' is defined.
  15419. '-mno-specld-anomaly'
  15420. Don't generate extra code to prevent speculative loads from
  15421. occurring.
  15422. '-mcsync-anomaly'
  15423. When enabled, the compiler ensures that the generated code does not
  15424. contain CSYNC or SSYNC instructions too soon after conditional
  15425. branches. If this option is used, '__WORKAROUND_SPECULATIVE_SYNCS'
  15426. is defined.
  15427. '-mno-csync-anomaly'
  15428. Don't generate extra code to prevent CSYNC or SSYNC instructions
  15429. from occurring too soon after a conditional branch.
  15430. '-mlow64k'
  15431. When enabled, the compiler is free to take advantage of the
  15432. knowledge that the entire program fits into the low 64k of memory.
  15433. '-mno-low64k'
  15434. Assume that the program is arbitrarily large. This is the default.
  15435. '-mstack-check-l1'
  15436. Do stack checking using information placed into L1 scratchpad
  15437. memory by the uClinux kernel.
  15438. '-mid-shared-library'
  15439. Generate code that supports shared libraries via the library ID
  15440. method. This allows for execute in place and shared libraries in
  15441. an environment without virtual memory management. This option
  15442. implies '-fPIC'. With a 'bfin-elf' target, this option implies
  15443. '-msim'.
  15444. '-mno-id-shared-library'
  15445. Generate code that doesn't assume ID-based shared libraries are
  15446. being used. This is the default.
  15447. '-mleaf-id-shared-library'
  15448. Generate code that supports shared libraries via the library ID
  15449. method, but assumes that this library or executable won't link
  15450. against any other ID shared libraries. That allows the compiler to
  15451. use faster code for jumps and calls.
  15452. '-mno-leaf-id-shared-library'
  15453. Do not assume that the code being compiled won't link against any
  15454. ID shared libraries. Slower code is generated for jump and call
  15455. insns.
  15456. '-mshared-library-id=n'
  15457. Specifies the identification number of the ID-based shared library
  15458. being compiled. Specifying a value of 0 generates more compact
  15459. code; specifying other values forces the allocation of that number
  15460. to the current library but is no more space- or time-efficient than
  15461. omitting this option.
  15462. '-msep-data'
  15463. Generate code that allows the data segment to be located in a
  15464. different area of memory from the text segment. This allows for
  15465. execute in place in an environment without virtual memory
  15466. management by eliminating relocations against the text section.
  15467. '-mno-sep-data'
  15468. Generate code that assumes that the data segment follows the text
  15469. segment. This is the default.
  15470. '-mlong-calls'
  15471. '-mno-long-calls'
  15472. Tells the compiler to perform function calls by first loading the
  15473. address of the function into a register and then performing a
  15474. subroutine call on this register. This switch is needed if the
  15475. target function lies outside of the 24-bit addressing range of the
  15476. offset-based version of subroutine call instruction.
  15477. This feature is not enabled by default. Specifying
  15478. '-mno-long-calls' restores the default behavior. Note these
  15479. switches have no effect on how the compiler generates code to
  15480. handle function calls via function pointers.
  15481. '-mfast-fp'
  15482. Link with the fast floating-point library. This library relaxes
  15483. some of the IEEE floating-point standard's rules for checking
  15484. inputs against Not-a-Number (NAN), in the interest of performance.
  15485. '-minline-plt'
  15486. Enable inlining of PLT entries in function calls to functions that
  15487. are not known to bind locally. It has no effect without '-mfdpic'.
  15488. '-mmulticore'
  15489. Build a standalone application for multicore Blackfin processors.
  15490. This option causes proper start files and link scripts supporting
  15491. multicore to be used, and defines the macro '__BFIN_MULTICORE'. It
  15492. can only be used with '-mcpu=bf561[-SIREVISION]'.
  15493. This option can be used with '-mcorea' or '-mcoreb', which selects
  15494. the one-application-per-core programming model. Without '-mcorea'
  15495. or '-mcoreb', the single-application/dual-core programming model is
  15496. used. In this model, the main function of Core B should be named
  15497. as 'coreb_main'.
  15498. If this option is not used, the single-core application programming
  15499. model is used.
  15500. '-mcorea'
  15501. Build a standalone application for Core A of BF561 when using the
  15502. one-application-per-core programming model. Proper start files and
  15503. link scripts are used to support Core A, and the macro
  15504. '__BFIN_COREA' is defined. This option can only be used in
  15505. conjunction with '-mmulticore'.
  15506. '-mcoreb'
  15507. Build a standalone application for Core B of BF561 when using the
  15508. one-application-per-core programming model. Proper start files and
  15509. link scripts are used to support Core B, and the macro
  15510. '__BFIN_COREB' is defined. When this option is used, 'coreb_main'
  15511. should be used instead of 'main'. This option can only be used in
  15512. conjunction with '-mmulticore'.
  15513. '-msdram'
  15514. Build a standalone application for SDRAM. Proper start files and
  15515. link scripts are used to put the application into SDRAM, and the
  15516. macro '__BFIN_SDRAM' is defined. The loader should initialize
  15517. SDRAM before loading the application.
  15518. '-micplb'
  15519. Assume that ICPLBs are enabled at run time. This has an effect on
  15520. certain anomaly workarounds. For Linux targets, the default is to
  15521. assume ICPLBs are enabled; for standalone applications the default
  15522. is off.
  15523. 
  15524. File: gcc.info, Node: C6X Options, Next: CRIS Options, Prev: Blackfin Options, Up: Submodel Options
  15525. 3.19.8 C6X Options
  15526. ------------------
  15527. '-march=NAME'
  15528. This specifies the name of the target architecture. GCC uses this
  15529. name to determine what kind of instructions it can emit when
  15530. generating assembly code. Permissible names are: 'c62x', 'c64x',
  15531. 'c64x+', 'c67x', 'c67x+', 'c674x'.
  15532. '-mbig-endian'
  15533. Generate code for a big-endian target.
  15534. '-mlittle-endian'
  15535. Generate code for a little-endian target. This is the default.
  15536. '-msim'
  15537. Choose startup files and linker script suitable for the simulator.
  15538. '-msdata=default'
  15539. Put small global and static data in the '.neardata' section, which
  15540. is pointed to by register 'B14'. Put small uninitialized global
  15541. and static data in the '.bss' section, which is adjacent to the
  15542. '.neardata' section. Put small read-only data into the '.rodata'
  15543. section. The corresponding sections used for large pieces of data
  15544. are '.fardata', '.far' and '.const'.
  15545. '-msdata=all'
  15546. Put all data, not just small objects, into the sections reserved
  15547. for small data, and use addressing relative to the 'B14' register
  15548. to access them.
  15549. '-msdata=none'
  15550. Make no use of the sections reserved for small data, and use
  15551. absolute addresses to access all data. Put all initialized global
  15552. and static data in the '.fardata' section, and all uninitialized
  15553. data in the '.far' section. Put all constant data into the
  15554. '.const' section.
  15555. 
  15556. File: gcc.info, Node: CRIS Options, Next: CR16 Options, Prev: C6X Options, Up: Submodel Options
  15557. 3.19.9 CRIS Options
  15558. -------------------
  15559. These options are defined specifically for the CRIS ports.
  15560. '-march=ARCHITECTURE-TYPE'
  15561. '-mcpu=ARCHITECTURE-TYPE'
  15562. Generate code for the specified architecture. The choices for
  15563. ARCHITECTURE-TYPE are 'v3', 'v8' and 'v10' for respectively
  15564. ETRAX 4, ETRAX 100, and ETRAX 100 LX. Default is 'v0' except for
  15565. cris-axis-linux-gnu, where the default is 'v10'.
  15566. '-mtune=ARCHITECTURE-TYPE'
  15567. Tune to ARCHITECTURE-TYPE everything applicable about the generated
  15568. code, except for the ABI and the set of available instructions.
  15569. The choices for ARCHITECTURE-TYPE are the same as for
  15570. '-march=ARCHITECTURE-TYPE'.
  15571. '-mmax-stack-frame=N'
  15572. Warn when the stack frame of a function exceeds N bytes.
  15573. '-metrax4'
  15574. '-metrax100'
  15575. The options '-metrax4' and '-metrax100' are synonyms for
  15576. '-march=v3' and '-march=v8' respectively.
  15577. '-mmul-bug-workaround'
  15578. '-mno-mul-bug-workaround'
  15579. Work around a bug in the 'muls' and 'mulu' instructions for CPU
  15580. models where it applies. This option is active by default.
  15581. '-mpdebug'
  15582. Enable CRIS-specific verbose debug-related information in the
  15583. assembly code. This option also has the effect of turning off the
  15584. '#NO_APP' formatted-code indicator to the assembler at the
  15585. beginning of the assembly file.
  15586. '-mcc-init'
  15587. Do not use condition-code results from previous instruction; always
  15588. emit compare and test instructions before use of condition codes.
  15589. '-mno-side-effects'
  15590. Do not emit instructions with side effects in addressing modes
  15591. other than post-increment.
  15592. '-mstack-align'
  15593. '-mno-stack-align'
  15594. '-mdata-align'
  15595. '-mno-data-align'
  15596. '-mconst-align'
  15597. '-mno-const-align'
  15598. These options ('no-' options) arrange (eliminate arrangements) for
  15599. the stack frame, individual data and constants to be aligned for
  15600. the maximum single data access size for the chosen CPU model. The
  15601. default is to arrange for 32-bit alignment. ABI details such as
  15602. structure layout are not affected by these options.
  15603. '-m32-bit'
  15604. '-m16-bit'
  15605. '-m8-bit'
  15606. Similar to the stack- data- and const-align options above, these
  15607. options arrange for stack frame, writable data and constants to all
  15608. be 32-bit, 16-bit or 8-bit aligned. The default is 32-bit
  15609. alignment.
  15610. '-mno-prologue-epilogue'
  15611. '-mprologue-epilogue'
  15612. With '-mno-prologue-epilogue', the normal function prologue and
  15613. epilogue which set up the stack frame are omitted and no return
  15614. instructions or return sequences are generated in the code. Use
  15615. this option only together with visual inspection of the compiled
  15616. code: no warnings or errors are generated when call-saved registers
  15617. must be saved, or storage for local variables needs to be
  15618. allocated.
  15619. '-mno-gotplt'
  15620. '-mgotplt'
  15621. With '-fpic' and '-fPIC', don't generate (do generate) instruction
  15622. sequences that load addresses for functions from the PLT part of
  15623. the GOT rather than (traditional on other architectures) calls to
  15624. the PLT. The default is '-mgotplt'.
  15625. '-melf'
  15626. Legacy no-op option only recognized with the cris-axis-elf and
  15627. cris-axis-linux-gnu targets.
  15628. '-mlinux'
  15629. Legacy no-op option only recognized with the cris-axis-linux-gnu
  15630. target.
  15631. '-sim'
  15632. This option, recognized for the cris-axis-elf, arranges to link
  15633. with input-output functions from a simulator library. Code,
  15634. initialized data and zero-initialized data are allocated
  15635. consecutively.
  15636. '-sim2'
  15637. Like '-sim', but pass linker options to locate initialized data at
  15638. 0x40000000 and zero-initialized data at 0x80000000.
  15639. 
  15640. File: gcc.info, Node: CR16 Options, Next: C-SKY Options, Prev: CRIS Options, Up: Submodel Options
  15641. 3.19.10 CR16 Options
  15642. --------------------
  15643. These options are defined specifically for the CR16 ports.
  15644. '-mmac'
  15645. Enable the use of multiply-accumulate instructions. Disabled by
  15646. default.
  15647. '-mcr16cplus'
  15648. '-mcr16c'
  15649. Generate code for CR16C or CR16C+ architecture. CR16C+
  15650. architecture is default.
  15651. '-msim'
  15652. Links the library libsim.a which is in compatible with simulator.
  15653. Applicable to ELF compiler only.
  15654. '-mint32'
  15655. Choose integer type as 32-bit wide.
  15656. '-mbit-ops'
  15657. Generates 'sbit'/'cbit' instructions for bit manipulations.
  15658. '-mdata-model=MODEL'
  15659. Choose a data model. The choices for MODEL are 'near', 'far' or
  15660. 'medium'. 'medium' is default. However, 'far' is not valid with
  15661. '-mcr16c', as the CR16C architecture does not support the far data
  15662. model.
  15663. 
  15664. File: gcc.info, Node: C-SKY Options, Next: Darwin Options, Prev: CR16 Options, Up: Submodel Options
  15665. 3.19.11 C-SKY Options
  15666. ---------------------
  15667. GCC supports these options when compiling for C-SKY V2 processors.
  15668. '-march=ARCH'
  15669. Specify the C-SKY target architecture. Valid values for ARCH are:
  15670. 'ck801', 'ck802', 'ck803', 'ck807', and 'ck810'. The default is
  15671. 'ck810'.
  15672. '-mcpu=CPU'
  15673. Specify the C-SKY target processor. Valid values for CPU are:
  15674. 'ck801', 'ck801t', 'ck802', 'ck802t', 'ck802j', 'ck803', 'ck803h',
  15675. 'ck803t', 'ck803ht', 'ck803f', 'ck803fh', 'ck803e', 'ck803eh',
  15676. 'ck803et', 'ck803eht', 'ck803ef', 'ck803efh', 'ck803ft',
  15677. 'ck803eft', 'ck803efht', 'ck803r1', 'ck803hr1', 'ck803tr1',
  15678. 'ck803htr1', 'ck803fr1', 'ck803fhr1', 'ck803er1', 'ck803ehr1',
  15679. 'ck803etr1', 'ck803ehtr1', 'ck803efr1', 'ck803efhr1', 'ck803ftr1',
  15680. 'ck803eftr1', 'ck803efhtr1', 'ck803s', 'ck803st', 'ck803se',
  15681. 'ck803sf', 'ck803sef', 'ck803seft', 'ck807e', 'ck807ef', 'ck807',
  15682. 'ck807f', 'ck810e', 'ck810et', 'ck810ef', 'ck810eft', 'ck810',
  15683. 'ck810v', 'ck810f', 'ck810t', 'ck810fv', 'ck810tv', 'ck810ft', and
  15684. 'ck810ftv'.
  15685. '-mbig-endian'
  15686. '-EB'
  15687. '-mlittle-endian'
  15688. '-EL'
  15689. Select big- or little-endian code. The default is little-endian.
  15690. '-mhard-float'
  15691. '-msoft-float'
  15692. Select hardware or software floating-point implementations. The
  15693. default is soft float.
  15694. '-mdouble-float'
  15695. '-mno-double-float'
  15696. When '-mhard-float' is in effect, enable generation of
  15697. double-precision float instructions. This is the default except
  15698. when compiling for CK803.
  15699. '-mfdivdu'
  15700. '-mno-fdivdu'
  15701. When '-mhard-float' is in effect, enable generation of 'frecipd',
  15702. 'fsqrtd', and 'fdivd' instructions. This is the default except
  15703. when compiling for CK803.
  15704. '-mfpu=FPU'
  15705. Select the floating-point processor. This option can only be used
  15706. with '-mhard-float'. Values for FPU are 'fpv2_sf' (equivalent to
  15707. '-mno-double-float -mno-fdivdu'), 'fpv2' ('-mdouble-float
  15708. -mno-divdu'), and 'fpv2_divd' ('-mdouble-float -mdivdu').
  15709. '-melrw'
  15710. '-mno-elrw'
  15711. Enable the extended 'lrw' instruction. This option defaults to on
  15712. for CK801 and off otherwise.
  15713. '-mistack'
  15714. '-mno-istack'
  15715. Enable interrupt stack instructions; the default is off.
  15716. The '-mistack' option is required to handle the 'interrupt' and
  15717. 'isr' function attributes (*note C-SKY Function Attributes::).
  15718. '-mmp'
  15719. Enable multiprocessor instructions; the default is off.
  15720. '-mcp'
  15721. Enable coprocessor instructions; the default is off.
  15722. '-mcache'
  15723. Enable coprocessor instructions; the default is off.
  15724. '-msecurity'
  15725. Enable C-SKY security instructions; the default is off.
  15726. '-mtrust'
  15727. Enable C-SKY trust instructions; the default is off.
  15728. '-mdsp'
  15729. '-medsp'
  15730. '-mvdsp'
  15731. Enable C-SKY DSP, Enhanced DSP, or Vector DSP instructions,
  15732. respectively. All of these options default to off.
  15733. '-mdiv'
  15734. '-mno-div'
  15735. Generate divide instructions. Default is off.
  15736. '-msmart'
  15737. '-mno-smart'
  15738. Generate code for Smart Mode, using only registers numbered 0-7 to
  15739. allow use of 16-bit instructions. This option is ignored for CK801
  15740. where this is the required behavior, and it defaults to on for
  15741. CK802. For other targets, the default is off.
  15742. '-mhigh-registers'
  15743. '-mno-high-registers'
  15744. Generate code using the high registers numbered 16-31. This option
  15745. is not supported on CK801, CK802, or CK803, and is enabled by
  15746. default for other processors.
  15747. '-manchor'
  15748. '-mno-anchor'
  15749. Generate code using global anchor symbol addresses.
  15750. '-mpushpop'
  15751. '-mno-pushpop'
  15752. Generate code using 'push' and 'pop' instructions. This option
  15753. defaults to on.
  15754. '-mmultiple-stld'
  15755. '-mstm'
  15756. '-mno-multiple-stld'
  15757. '-mno-stm'
  15758. Generate code using 'stm' and 'ldm' instructions. This option
  15759. isn't supported on CK801 but is enabled by default on other
  15760. processors.
  15761. '-mconstpool'
  15762. '-mno-constpool'
  15763. Create constant pools in the compiler instead of deferring it to
  15764. the assembler. This option is the default and required for correct
  15765. code generation on CK801 and CK802, and is optional on other
  15766. processors.
  15767. '-mstack-size'
  15768. '-mno-stack-size'
  15769. Emit '.stack_size' directives for each function in the assembly
  15770. output. This option defaults to off.
  15771. '-mccrt'
  15772. '-mno-ccrt'
  15773. Generate code for the C-SKY compiler runtime instead of libgcc.
  15774. This option defaults to off.
  15775. '-mbranch-cost=N'
  15776. Set the branch costs to roughly 'n' instructions. The default is
  15777. 1.
  15778. '-msched-prolog'
  15779. '-mno-sched-prolog'
  15780. Permit scheduling of function prologue and epilogue sequences.
  15781. Using this option can result in code that is not compliant with the
  15782. C-SKY V2 ABI prologue requirements and that cannot be debugged or
  15783. backtraced. It is disabled by default.
  15784. 
  15785. File: gcc.info, Node: Darwin Options, Next: DEC Alpha Options, Prev: C-SKY Options, Up: Submodel Options
  15786. 3.19.12 Darwin Options
  15787. ----------------------
  15788. These options are defined for all architectures running the Darwin
  15789. operating system.
  15790. FSF GCC on Darwin does not create "fat" object files; it creates an
  15791. object file for the single architecture that GCC was built to target.
  15792. Apple's GCC on Darwin does create "fat" files if multiple '-arch'
  15793. options are used; it does so by running the compiler or linker multiple
  15794. times and joining the results together with 'lipo'.
  15795. The subtype of the file created (like 'ppc7400' or 'ppc970' or 'i686')
  15796. is determined by the flags that specify the ISA that GCC is targeting,
  15797. like '-mcpu' or '-march'. The '-force_cpusubtype_ALL' option can be
  15798. used to override this.
  15799. The Darwin tools vary in their behavior when presented with an ISA
  15800. mismatch. The assembler, 'as', only permits instructions to be used
  15801. that are valid for the subtype of the file it is generating, so you
  15802. cannot put 64-bit instructions in a 'ppc750' object file. The linker
  15803. for shared libraries, '/usr/bin/libtool', fails and prints an error if
  15804. asked to create a shared library with a less restrictive subtype than
  15805. its input files (for instance, trying to put a 'ppc970' object file in a
  15806. 'ppc7400' library). The linker for executables, 'ld', quietly gives the
  15807. executable the most restrictive subtype of any of its input files.
  15808. '-FDIR'
  15809. Add the framework directory DIR to the head of the list of
  15810. directories to be searched for header files. These directories are
  15811. interleaved with those specified by '-I' options and are scanned in
  15812. a left-to-right order.
  15813. A framework directory is a directory with frameworks in it. A
  15814. framework is a directory with a 'Headers' and/or 'PrivateHeaders'
  15815. directory contained directly in it that ends in '.framework'. The
  15816. name of a framework is the name of this directory excluding the
  15817. '.framework'. Headers associated with the framework are found in
  15818. one of those two directories, with 'Headers' being searched first.
  15819. A subframework is a framework directory that is in a framework's
  15820. 'Frameworks' directory. Includes of subframework headers can only
  15821. appear in a header of a framework that contains the subframework,
  15822. or in a sibling subframework header. Two subframeworks are
  15823. siblings if they occur in the same framework. A subframework
  15824. should not have the same name as a framework; a warning is issued
  15825. if this is violated. Currently a subframework cannot have
  15826. subframeworks; in the future, the mechanism may be extended to
  15827. support this. The standard frameworks can be found in
  15828. '/System/Library/Frameworks' and '/Library/Frameworks'. An example
  15829. include looks like '#include <Framework/header.h>', where
  15830. 'Framework' denotes the name of the framework and 'header.h' is
  15831. found in the 'PrivateHeaders' or 'Headers' directory.
  15832. '-iframeworkDIR'
  15833. Like '-F' except the directory is a treated as a system directory.
  15834. The main difference between this '-iframework' and '-F' is that
  15835. with '-iframework' the compiler does not warn about constructs
  15836. contained within header files found via DIR. This option is valid
  15837. only for the C family of languages.
  15838. '-gused'
  15839. Emit debugging information for symbols that are used. For stabs
  15840. debugging format, this enables '-feliminate-unused-debug-symbols'.
  15841. This is by default ON.
  15842. '-gfull'
  15843. Emit debugging information for all symbols and types.
  15844. '-mmacosx-version-min=VERSION'
  15845. The earliest version of MacOS X that this executable will run on is
  15846. VERSION. Typical values of VERSION include '10.1', '10.2', and
  15847. '10.3.9'.
  15848. If the compiler was built to use the system's headers by default,
  15849. then the default for this option is the system version on which the
  15850. compiler is running, otherwise the default is to make choices that
  15851. are compatible with as many systems and code bases as possible.
  15852. '-mkernel'
  15853. Enable kernel development mode. The '-mkernel' option sets
  15854. '-static', '-fno-common', '-fno-use-cxa-atexit', '-fno-exceptions',
  15855. '-fno-non-call-exceptions', '-fapple-kext', '-fno-weak' and
  15856. '-fno-rtti' where applicable. This mode also sets '-mno-altivec',
  15857. '-msoft-float', '-fno-builtin' and '-mlong-branch' for PowerPC
  15858. targets.
  15859. '-mone-byte-bool'
  15860. Override the defaults for 'bool' so that 'sizeof(bool)==1'. By
  15861. default 'sizeof(bool)' is '4' when compiling for Darwin/PowerPC and
  15862. '1' when compiling for Darwin/x86, so this option has no effect on
  15863. x86.
  15864. *Warning:* The '-mone-byte-bool' switch causes GCC to generate code
  15865. that is not binary compatible with code generated without that
  15866. switch. Using this switch may require recompiling all other
  15867. modules in a program, including system libraries. Use this switch
  15868. to conform to a non-default data model.
  15869. '-mfix-and-continue'
  15870. '-ffix-and-continue'
  15871. '-findirect-data'
  15872. Generate code suitable for fast turnaround development, such as to
  15873. allow GDB to dynamically load '.o' files into already-running
  15874. programs. '-findirect-data' and '-ffix-and-continue' are provided
  15875. for backwards compatibility.
  15876. '-all_load'
  15877. Loads all members of static archive libraries. See man ld(1) for
  15878. more information.
  15879. '-arch_errors_fatal'
  15880. Cause the errors having to do with files that have the wrong
  15881. architecture to be fatal.
  15882. '-bind_at_load'
  15883. Causes the output file to be marked such that the dynamic linker
  15884. will bind all undefined references when the file is loaded or
  15885. launched.
  15886. '-bundle'
  15887. Produce a Mach-o bundle format file. See man ld(1) for more
  15888. information.
  15889. '-bundle_loader EXECUTABLE'
  15890. This option specifies the EXECUTABLE that will load the build
  15891. output file being linked. See man ld(1) for more information.
  15892. '-dynamiclib'
  15893. When passed this option, GCC produces a dynamic library instead of
  15894. an executable when linking, using the Darwin 'libtool' command.
  15895. '-force_cpusubtype_ALL'
  15896. This causes GCC's output file to have the 'ALL' subtype, instead of
  15897. one controlled by the '-mcpu' or '-march' option.
  15898. '-allowable_client CLIENT_NAME'
  15899. '-client_name'
  15900. '-compatibility_version'
  15901. '-current_version'
  15902. '-dead_strip'
  15903. '-dependency-file'
  15904. '-dylib_file'
  15905. '-dylinker_install_name'
  15906. '-dynamic'
  15907. '-exported_symbols_list'
  15908. '-filelist'
  15909. '-flat_namespace'
  15910. '-force_flat_namespace'
  15911. '-headerpad_max_install_names'
  15912. '-image_base'
  15913. '-init'
  15914. '-install_name'
  15915. '-keep_private_externs'
  15916. '-multi_module'
  15917. '-multiply_defined'
  15918. '-multiply_defined_unused'
  15919. '-noall_load'
  15920. '-no_dead_strip_inits_and_terms'
  15921. '-nofixprebinding'
  15922. '-nomultidefs'
  15923. '-noprebind'
  15924. '-noseglinkedit'
  15925. '-pagezero_size'
  15926. '-prebind'
  15927. '-prebind_all_twolevel_modules'
  15928. '-private_bundle'
  15929. '-read_only_relocs'
  15930. '-sectalign'
  15931. '-sectobjectsymbols'
  15932. '-whyload'
  15933. '-seg1addr'
  15934. '-sectcreate'
  15935. '-sectobjectsymbols'
  15936. '-sectorder'
  15937. '-segaddr'
  15938. '-segs_read_only_addr'
  15939. '-segs_read_write_addr'
  15940. '-seg_addr_table'
  15941. '-seg_addr_table_filename'
  15942. '-seglinkedit'
  15943. '-segprot'
  15944. '-segs_read_only_addr'
  15945. '-segs_read_write_addr'
  15946. '-single_module'
  15947. '-static'
  15948. '-sub_library'
  15949. '-sub_umbrella'
  15950. '-twolevel_namespace'
  15951. '-umbrella'
  15952. '-undefined'
  15953. '-unexported_symbols_list'
  15954. '-weak_reference_mismatches'
  15955. '-whatsloaded'
  15956. These options are passed to the Darwin linker. The Darwin linker
  15957. man page describes them in detail.
  15958. 
  15959. File: gcc.info, Node: DEC Alpha Options, Next: eBPF Options, Prev: Darwin Options, Up: Submodel Options
  15960. 3.19.13 DEC Alpha Options
  15961. -------------------------
  15962. These '-m' options are defined for the DEC Alpha implementations:
  15963. '-mno-soft-float'
  15964. '-msoft-float'
  15965. Use (do not use) the hardware floating-point instructions for
  15966. floating-point operations. When '-msoft-float' is specified,
  15967. functions in 'libgcc.a' are used to perform floating-point
  15968. operations. Unless they are replaced by routines that emulate the
  15969. floating-point operations, or compiled in such a way as to call
  15970. such emulations routines, these routines issue floating-point
  15971. operations. If you are compiling for an Alpha without
  15972. floating-point operations, you must ensure that the library is
  15973. built so as not to call them.
  15974. Note that Alpha implementations without floating-point operations
  15975. are required to have floating-point registers.
  15976. '-mfp-reg'
  15977. '-mno-fp-regs'
  15978. Generate code that uses (does not use) the floating-point register
  15979. set. '-mno-fp-regs' implies '-msoft-float'. If the floating-point
  15980. register set is not used, floating-point operands are passed in
  15981. integer registers as if they were integers and floating-point
  15982. results are passed in '$0' instead of '$f0'. This is a
  15983. non-standard calling sequence, so any function with a
  15984. floating-point argument or return value called by code compiled
  15985. with '-mno-fp-regs' must also be compiled with that option.
  15986. A typical use of this option is building a kernel that does not
  15987. use, and hence need not save and restore, any floating-point
  15988. registers.
  15989. '-mieee'
  15990. The Alpha architecture implements floating-point hardware optimized
  15991. for maximum performance. It is mostly compliant with the IEEE
  15992. floating-point standard. However, for full compliance, software
  15993. assistance is required. This option generates code fully
  15994. IEEE-compliant code _except_ that the INEXACT-FLAG is not
  15995. maintained (see below). If this option is turned on, the
  15996. preprocessor macro '_IEEE_FP' is defined during compilation. The
  15997. resulting code is less efficient but is able to correctly support
  15998. denormalized numbers and exceptional IEEE values such as
  15999. not-a-number and plus/minus infinity. Other Alpha compilers call
  16000. this option '-ieee_with_no_inexact'.
  16001. '-mieee-with-inexact'
  16002. This is like '-mieee' except the generated code also maintains the
  16003. IEEE INEXACT-FLAG. Turning on this option causes the generated
  16004. code to implement fully-compliant IEEE math. In addition to
  16005. '_IEEE_FP', '_IEEE_FP_EXACT' is defined as a preprocessor macro.
  16006. On some Alpha implementations the resulting code may execute
  16007. significantly slower than the code generated by default. Since
  16008. there is very little code that depends on the INEXACT-FLAG, you
  16009. should normally not specify this option. Other Alpha compilers
  16010. call this option '-ieee_with_inexact'.
  16011. '-mfp-trap-mode=TRAP-MODE'
  16012. This option controls what floating-point related traps are enabled.
  16013. Other Alpha compilers call this option '-fptm TRAP-MODE'. The trap
  16014. mode can be set to one of four values:
  16015. 'n'
  16016. This is the default (normal) setting. The only traps that are
  16017. enabled are the ones that cannot be disabled in software
  16018. (e.g., division by zero trap).
  16019. 'u'
  16020. In addition to the traps enabled by 'n', underflow traps are
  16021. enabled as well.
  16022. 'su'
  16023. Like 'u', but the instructions are marked to be safe for
  16024. software completion (see Alpha architecture manual for
  16025. details).
  16026. 'sui'
  16027. Like 'su', but inexact traps are enabled as well.
  16028. '-mfp-rounding-mode=ROUNDING-MODE'
  16029. Selects the IEEE rounding mode. Other Alpha compilers call this
  16030. option '-fprm ROUNDING-MODE'. The ROUNDING-MODE can be one of:
  16031. 'n'
  16032. Normal IEEE rounding mode. Floating-point numbers are rounded
  16033. towards the nearest machine number or towards the even machine
  16034. number in case of a tie.
  16035. 'm'
  16036. Round towards minus infinity.
  16037. 'c'
  16038. Chopped rounding mode. Floating-point numbers are rounded
  16039. towards zero.
  16040. 'd'
  16041. Dynamic rounding mode. A field in the floating-point control
  16042. register (FPCR, see Alpha architecture reference manual)
  16043. controls the rounding mode in effect. The C library
  16044. initializes this register for rounding towards plus infinity.
  16045. Thus, unless your program modifies the FPCR, 'd' corresponds
  16046. to round towards plus infinity.
  16047. '-mtrap-precision=TRAP-PRECISION'
  16048. In the Alpha architecture, floating-point traps are imprecise.
  16049. This means without software assistance it is impossible to recover
  16050. from a floating trap and program execution normally needs to be
  16051. terminated. GCC can generate code that can assist operating system
  16052. trap handlers in determining the exact location that caused a
  16053. floating-point trap. Depending on the requirements of an
  16054. application, different levels of precisions can be selected:
  16055. 'p'
  16056. Program precision. This option is the default and means a
  16057. trap handler can only identify which program caused a
  16058. floating-point exception.
  16059. 'f'
  16060. Function precision. The trap handler can determine the
  16061. function that caused a floating-point exception.
  16062. 'i'
  16063. Instruction precision. The trap handler can determine the
  16064. exact instruction that caused a floating-point exception.
  16065. Other Alpha compilers provide the equivalent options called
  16066. '-scope_safe' and '-resumption_safe'.
  16067. '-mieee-conformant'
  16068. This option marks the generated code as IEEE conformant. You must
  16069. not use this option unless you also specify '-mtrap-precision=i'
  16070. and either '-mfp-trap-mode=su' or '-mfp-trap-mode=sui'. Its only
  16071. effect is to emit the line '.eflag 48' in the function prologue of
  16072. the generated assembly file.
  16073. '-mbuild-constants'
  16074. Normally GCC examines a 32- or 64-bit integer constant to see if it
  16075. can construct it from smaller constants in two or three
  16076. instructions. If it cannot, it outputs the constant as a literal
  16077. and generates code to load it from the data segment at run time.
  16078. Use this option to require GCC to construct _all_ integer constants
  16079. using code, even if it takes more instructions (the maximum is
  16080. six).
  16081. You typically use this option to build a shared library dynamic
  16082. loader. Itself a shared library, it must relocate itself in memory
  16083. before it can find the variables and constants in its own data
  16084. segment.
  16085. '-mbwx'
  16086. '-mno-bwx'
  16087. '-mcix'
  16088. '-mno-cix'
  16089. '-mfix'
  16090. '-mno-fix'
  16091. '-mmax'
  16092. '-mno-max'
  16093. Indicate whether GCC should generate code to use the optional BWX,
  16094. CIX, FIX and MAX instruction sets. The default is to use the
  16095. instruction sets supported by the CPU type specified via '-mcpu='
  16096. option or that of the CPU on which GCC was built if none is
  16097. specified.
  16098. '-mfloat-vax'
  16099. '-mfloat-ieee'
  16100. Generate code that uses (does not use) VAX F and G floating-point
  16101. arithmetic instead of IEEE single and double precision.
  16102. '-mexplicit-relocs'
  16103. '-mno-explicit-relocs'
  16104. Older Alpha assemblers provided no way to generate symbol
  16105. relocations except via assembler macros. Use of these macros does
  16106. not allow optimal instruction scheduling. GNU binutils as of
  16107. version 2.12 supports a new syntax that allows the compiler to
  16108. explicitly mark which relocations should apply to which
  16109. instructions. This option is mostly useful for debugging, as GCC
  16110. detects the capabilities of the assembler when it is built and sets
  16111. the default accordingly.
  16112. '-msmall-data'
  16113. '-mlarge-data'
  16114. When '-mexplicit-relocs' is in effect, static data is accessed via
  16115. "gp-relative" relocations. When '-msmall-data' is used, objects 8
  16116. bytes long or smaller are placed in a "small data area" (the
  16117. '.sdata' and '.sbss' sections) and are accessed via 16-bit
  16118. relocations off of the '$gp' register. This limits the size of the
  16119. small data area to 64KB, but allows the variables to be directly
  16120. accessed via a single instruction.
  16121. The default is '-mlarge-data'. With this option the data area is
  16122. limited to just below 2GB. Programs that require more than 2GB of
  16123. data must use 'malloc' or 'mmap' to allocate the data in the heap
  16124. instead of in the program's data segment.
  16125. When generating code for shared libraries, '-fpic' implies
  16126. '-msmall-data' and '-fPIC' implies '-mlarge-data'.
  16127. '-msmall-text'
  16128. '-mlarge-text'
  16129. When '-msmall-text' is used, the compiler assumes that the code of
  16130. the entire program (or shared library) fits in 4MB, and is thus
  16131. reachable with a branch instruction. When '-msmall-data' is used,
  16132. the compiler can assume that all local symbols share the same '$gp'
  16133. value, and thus reduce the number of instructions required for a
  16134. function call from 4 to 1.
  16135. The default is '-mlarge-text'.
  16136. '-mcpu=CPU_TYPE'
  16137. Set the instruction set and instruction scheduling parameters for
  16138. machine type CPU_TYPE. You can specify either the 'EV' style name
  16139. or the corresponding chip number. GCC supports scheduling
  16140. parameters for the EV4, EV5 and EV6 family of processors and
  16141. chooses the default values for the instruction set from the
  16142. processor you specify. If you do not specify a processor type, GCC
  16143. defaults to the processor on which the compiler was built.
  16144. Supported values for CPU_TYPE are
  16145. 'ev4'
  16146. 'ev45'
  16147. '21064'
  16148. Schedules as an EV4 and has no instruction set extensions.
  16149. 'ev5'
  16150. '21164'
  16151. Schedules as an EV5 and has no instruction set extensions.
  16152. 'ev56'
  16153. '21164a'
  16154. Schedules as an EV5 and supports the BWX extension.
  16155. 'pca56'
  16156. '21164pc'
  16157. '21164PC'
  16158. Schedules as an EV5 and supports the BWX and MAX extensions.
  16159. 'ev6'
  16160. '21264'
  16161. Schedules as an EV6 and supports the BWX, FIX, and MAX
  16162. extensions.
  16163. 'ev67'
  16164. '21264a'
  16165. Schedules as an EV6 and supports the BWX, CIX, FIX, and MAX
  16166. extensions.
  16167. Native toolchains also support the value 'native', which selects
  16168. the best architecture option for the host processor.
  16169. '-mcpu=native' has no effect if GCC does not recognize the
  16170. processor.
  16171. '-mtune=CPU_TYPE'
  16172. Set only the instruction scheduling parameters for machine type
  16173. CPU_TYPE. The instruction set is not changed.
  16174. Native toolchains also support the value 'native', which selects
  16175. the best architecture option for the host processor.
  16176. '-mtune=native' has no effect if GCC does not recognize the
  16177. processor.
  16178. '-mmemory-latency=TIME'
  16179. Sets the latency the scheduler should assume for typical memory
  16180. references as seen by the application. This number is highly
  16181. dependent on the memory access patterns used by the application and
  16182. the size of the external cache on the machine.
  16183. Valid options for TIME are
  16184. 'NUMBER'
  16185. A decimal number representing clock cycles.
  16186. 'L1'
  16187. 'L2'
  16188. 'L3'
  16189. 'main'
  16190. The compiler contains estimates of the number of clock cycles
  16191. for "typical" EV4 & EV5 hardware for the Level 1, 2 & 3 caches
  16192. (also called Dcache, Scache, and Bcache), as well as to main
  16193. memory. Note that L3 is only valid for EV5.
  16194. 
  16195. File: gcc.info, Node: eBPF Options, Next: FR30 Options, Prev: DEC Alpha Options, Up: Submodel Options
  16196. 3.19.14 eBPF Options
  16197. --------------------
  16198. '-mframe-limit=BYTES'
  16199. This specifies the hard limit for frame sizes, in bytes.
  16200. Currently, the value that can be specified should be less than or
  16201. equal to '32767'. Defaults to whatever limit is imposed by the
  16202. version of the Linux kernel targeted.
  16203. '-mkernel=VERSION'
  16204. This specifies the minimum version of the kernel that will run the
  16205. compiled program. GCC uses this version to determine which
  16206. instructions to use, what kernel helpers to allow, etc. Currently,
  16207. VERSION can be one of '4.0', '4.1', '4.2', '4.3', '4.4', '4.5',
  16208. '4.6', '4.7', '4.8', '4.9', '4.10', '4.11', '4.12', '4.13', '4.14',
  16209. '4.15', '4.16', '4.17', '4.18', '4.19', '4.20', '5.0', '5.1',
  16210. '5.2', 'latest' and 'native'.
  16211. '-mbig-endian'
  16212. Generate code for a big-endian target.
  16213. '-mlittle-endian'
  16214. Generate code for a little-endian target. This is the default.
  16215. '-mxbpf'
  16216. Generate code for an expanded version of BPF, which relaxes some of
  16217. the restrictions imposed by the BPF architecture:
  16218. - Save and restore callee-saved registers at function entry and
  16219. exit, respectively.
  16220. 
  16221. File: gcc.info, Node: FR30 Options, Next: FT32 Options, Prev: eBPF Options, Up: Submodel Options
  16222. 3.19.15 FR30 Options
  16223. --------------------
  16224. These options are defined specifically for the FR30 port.
  16225. '-msmall-model'
  16226. Use the small address space model. This can produce smaller code,
  16227. but it does assume that all symbolic values and addresses fit into
  16228. a 20-bit range.
  16229. '-mno-lsim'
  16230. Assume that runtime support has been provided and so there is no
  16231. need to include the simulator library ('libsim.a') on the linker
  16232. command line.
  16233. 
  16234. File: gcc.info, Node: FT32 Options, Next: FRV Options, Prev: FR30 Options, Up: Submodel Options
  16235. 3.19.16 FT32 Options
  16236. --------------------
  16237. These options are defined specifically for the FT32 port.
  16238. '-msim'
  16239. Specifies that the program will be run on the simulator. This
  16240. causes an alternate runtime startup and library to be linked. You
  16241. must not use this option when generating programs that will run on
  16242. real hardware; you must provide your own runtime library for
  16243. whatever I/O functions are needed.
  16244. '-mlra'
  16245. Enable Local Register Allocation. This is still experimental for
  16246. FT32, so by default the compiler uses standard reload.
  16247. '-mnodiv'
  16248. Do not use div and mod instructions.
  16249. '-mft32b'
  16250. Enable use of the extended instructions of the FT32B processor.
  16251. '-mcompress'
  16252. Compress all code using the Ft32B code compression scheme.
  16253. '-mnopm'
  16254. Do not generate code that reads program memory.
  16255. 
  16256. File: gcc.info, Node: FRV Options, Next: GNU/Linux Options, Prev: FT32 Options, Up: Submodel Options
  16257. 3.19.17 FRV Options
  16258. -------------------
  16259. '-mgpr-32'
  16260. Only use the first 32 general-purpose registers.
  16261. '-mgpr-64'
  16262. Use all 64 general-purpose registers.
  16263. '-mfpr-32'
  16264. Use only the first 32 floating-point registers.
  16265. '-mfpr-64'
  16266. Use all 64 floating-point registers.
  16267. '-mhard-float'
  16268. Use hardware instructions for floating-point operations.
  16269. '-msoft-float'
  16270. Use library routines for floating-point operations.
  16271. '-malloc-cc'
  16272. Dynamically allocate condition code registers.
  16273. '-mfixed-cc'
  16274. Do not try to dynamically allocate condition code registers, only
  16275. use 'icc0' and 'fcc0'.
  16276. '-mdword'
  16277. Change ABI to use double word insns.
  16278. '-mno-dword'
  16279. Do not use double word instructions.
  16280. '-mdouble'
  16281. Use floating-point double instructions.
  16282. '-mno-double'
  16283. Do not use floating-point double instructions.
  16284. '-mmedia'
  16285. Use media instructions.
  16286. '-mno-media'
  16287. Do not use media instructions.
  16288. '-mmuladd'
  16289. Use multiply and add/subtract instructions.
  16290. '-mno-muladd'
  16291. Do not use multiply and add/subtract instructions.
  16292. '-mfdpic'
  16293. Select the FDPIC ABI, which uses function descriptors to represent
  16294. pointers to functions. Without any PIC/PIE-related options, it
  16295. implies '-fPIE'. With '-fpic' or '-fpie', it assumes GOT entries
  16296. and small data are within a 12-bit range from the GOT base address;
  16297. with '-fPIC' or '-fPIE', GOT offsets are computed with 32 bits.
  16298. With a 'bfin-elf' target, this option implies '-msim'.
  16299. '-minline-plt'
  16300. Enable inlining of PLT entries in function calls to functions that
  16301. are not known to bind locally. It has no effect without '-mfdpic'.
  16302. It's enabled by default if optimizing for speed and compiling for
  16303. shared libraries (i.e., '-fPIC' or '-fpic'), or when an
  16304. optimization option such as '-O3' or above is present in the
  16305. command line.
  16306. '-mTLS'
  16307. Assume a large TLS segment when generating thread-local code.
  16308. '-mtls'
  16309. Do not assume a large TLS segment when generating thread-local
  16310. code.
  16311. '-mgprel-ro'
  16312. Enable the use of 'GPREL' relocations in the FDPIC ABI for data
  16313. that is known to be in read-only sections. It's enabled by
  16314. default, except for '-fpic' or '-fpie': even though it may help
  16315. make the global offset table smaller, it trades 1 instruction for
  16316. 4. With '-fPIC' or '-fPIE', it trades 3 instructions for 4, one of
  16317. which may be shared by multiple symbols, and it avoids the need for
  16318. a GOT entry for the referenced symbol, so it's more likely to be a
  16319. win. If it is not, '-mno-gprel-ro' can be used to disable it.
  16320. '-multilib-library-pic'
  16321. Link with the (library, not FD) pic libraries. It's implied by
  16322. '-mlibrary-pic', as well as by '-fPIC' and '-fpic' without
  16323. '-mfdpic'. You should never have to use it explicitly.
  16324. '-mlinked-fp'
  16325. Follow the EABI requirement of always creating a frame pointer
  16326. whenever a stack frame is allocated. This option is enabled by
  16327. default and can be disabled with '-mno-linked-fp'.
  16328. '-mlong-calls'
  16329. Use indirect addressing to call functions outside the current
  16330. compilation unit. This allows the functions to be placed anywhere
  16331. within the 32-bit address space.
  16332. '-malign-labels'
  16333. Try to align labels to an 8-byte boundary by inserting NOPs into
  16334. the previous packet. This option only has an effect when VLIW
  16335. packing is enabled. It doesn't create new packets; it merely adds
  16336. NOPs to existing ones.
  16337. '-mlibrary-pic'
  16338. Generate position-independent EABI code.
  16339. '-macc-4'
  16340. Use only the first four media accumulator registers.
  16341. '-macc-8'
  16342. Use all eight media accumulator registers.
  16343. '-mpack'
  16344. Pack VLIW instructions.
  16345. '-mno-pack'
  16346. Do not pack VLIW instructions.
  16347. '-mno-eflags'
  16348. Do not mark ABI switches in e_flags.
  16349. '-mcond-move'
  16350. Enable the use of conditional-move instructions (default).
  16351. This switch is mainly for debugging the compiler and will likely be
  16352. removed in a future version.
  16353. '-mno-cond-move'
  16354. Disable the use of conditional-move instructions.
  16355. This switch is mainly for debugging the compiler and will likely be
  16356. removed in a future version.
  16357. '-mscc'
  16358. Enable the use of conditional set instructions (default).
  16359. This switch is mainly for debugging the compiler and will likely be
  16360. removed in a future version.
  16361. '-mno-scc'
  16362. Disable the use of conditional set instructions.
  16363. This switch is mainly for debugging the compiler and will likely be
  16364. removed in a future version.
  16365. '-mcond-exec'
  16366. Enable the use of conditional execution (default).
  16367. This switch is mainly for debugging the compiler and will likely be
  16368. removed in a future version.
  16369. '-mno-cond-exec'
  16370. Disable the use of conditional execution.
  16371. This switch is mainly for debugging the compiler and will likely be
  16372. removed in a future version.
  16373. '-mvliw-branch'
  16374. Run a pass to pack branches into VLIW instructions (default).
  16375. This switch is mainly for debugging the compiler and will likely be
  16376. removed in a future version.
  16377. '-mno-vliw-branch'
  16378. Do not run a pass to pack branches into VLIW instructions.
  16379. This switch is mainly for debugging the compiler and will likely be
  16380. removed in a future version.
  16381. '-mmulti-cond-exec'
  16382. Enable optimization of '&&' and '||' in conditional execution
  16383. (default).
  16384. This switch is mainly for debugging the compiler and will likely be
  16385. removed in a future version.
  16386. '-mno-multi-cond-exec'
  16387. Disable optimization of '&&' and '||' in conditional execution.
  16388. This switch is mainly for debugging the compiler and will likely be
  16389. removed in a future version.
  16390. '-mnested-cond-exec'
  16391. Enable nested conditional execution optimizations (default).
  16392. This switch is mainly for debugging the compiler and will likely be
  16393. removed in a future version.
  16394. '-mno-nested-cond-exec'
  16395. Disable nested conditional execution optimizations.
  16396. This switch is mainly for debugging the compiler and will likely be
  16397. removed in a future version.
  16398. '-moptimize-membar'
  16399. This switch removes redundant 'membar' instructions from the
  16400. compiler-generated code. It is enabled by default.
  16401. '-mno-optimize-membar'
  16402. This switch disables the automatic removal of redundant 'membar'
  16403. instructions from the generated code.
  16404. '-mtomcat-stats'
  16405. Cause gas to print out tomcat statistics.
  16406. '-mcpu=CPU'
  16407. Select the processor type for which to generate code. Possible
  16408. values are 'frv', 'fr550', 'tomcat', 'fr500', 'fr450', 'fr405',
  16409. 'fr400', 'fr300' and 'simple'.
  16410. 
  16411. File: gcc.info, Node: GNU/Linux Options, Next: H8/300 Options, Prev: FRV Options, Up: Submodel Options
  16412. 3.19.18 GNU/Linux Options
  16413. -------------------------
  16414. These '-m' options are defined for GNU/Linux targets:
  16415. '-mglibc'
  16416. Use the GNU C library. This is the default except on
  16417. '*-*-linux-*uclibc*', '*-*-linux-*musl*' and '*-*-linux-*android*'
  16418. targets.
  16419. '-muclibc'
  16420. Use uClibc C library. This is the default on '*-*-linux-*uclibc*'
  16421. targets.
  16422. '-mmusl'
  16423. Use the musl C library. This is the default on '*-*-linux-*musl*'
  16424. targets.
  16425. '-mbionic'
  16426. Use Bionic C library. This is the default on '*-*-linux-*android*'
  16427. targets.
  16428. '-mandroid'
  16429. Compile code compatible with Android platform. This is the default
  16430. on '*-*-linux-*android*' targets.
  16431. When compiling, this option enables '-mbionic', '-fPIC',
  16432. '-fno-exceptions' and '-fno-rtti' by default. When linking, this
  16433. option makes the GCC driver pass Android-specific options to the
  16434. linker. Finally, this option causes the preprocessor macro
  16435. '__ANDROID__' to be defined.
  16436. '-tno-android-cc'
  16437. Disable compilation effects of '-mandroid', i.e., do not enable
  16438. '-mbionic', '-fPIC', '-fno-exceptions' and '-fno-rtti' by default.
  16439. '-tno-android-ld'
  16440. Disable linking effects of '-mandroid', i.e., pass standard Linux
  16441. linking options to the linker.
  16442. 
  16443. File: gcc.info, Node: H8/300 Options, Next: HPPA Options, Prev: GNU/Linux Options, Up: Submodel Options
  16444. 3.19.19 H8/300 Options
  16445. ----------------------
  16446. These '-m' options are defined for the H8/300 implementations:
  16447. '-mrelax'
  16448. Shorten some address references at link time, when possible; uses
  16449. the linker option '-relax'. *Note 'ld' and the H8/300: (ld)H8/300,
  16450. for a fuller description.
  16451. '-mh'
  16452. Generate code for the H8/300H.
  16453. '-ms'
  16454. Generate code for the H8S.
  16455. '-mn'
  16456. Generate code for the H8S and H8/300H in the normal mode. This
  16457. switch must be used either with '-mh' or '-ms'.
  16458. '-ms2600'
  16459. Generate code for the H8S/2600. This switch must be used with
  16460. '-ms'.
  16461. '-mexr'
  16462. Extended registers are stored on stack before execution of function
  16463. with monitor attribute. Default option is '-mexr'. This option is
  16464. valid only for H8S targets.
  16465. '-mno-exr'
  16466. Extended registers are not stored on stack before execution of
  16467. function with monitor attribute. Default option is '-mno-exr'.
  16468. This option is valid only for H8S targets.
  16469. '-mint32'
  16470. Make 'int' data 32 bits by default.
  16471. '-malign-300'
  16472. On the H8/300H and H8S, use the same alignment rules as for the
  16473. H8/300. The default for the H8/300H and H8S is to align longs and
  16474. floats on 4-byte boundaries. '-malign-300' causes them to be
  16475. aligned on 2-byte boundaries. This option has no effect on the
  16476. H8/300.
  16477. 
  16478. File: gcc.info, Node: HPPA Options, Next: IA-64 Options, Prev: H8/300 Options, Up: Submodel Options
  16479. 3.19.20 HPPA Options
  16480. --------------------
  16481. These '-m' options are defined for the HPPA family of computers:
  16482. '-march=ARCHITECTURE-TYPE'
  16483. Generate code for the specified architecture. The choices for
  16484. ARCHITECTURE-TYPE are '1.0' for PA 1.0, '1.1' for PA 1.1, and '2.0'
  16485. for PA 2.0 processors. Refer to '/usr/lib/sched.models' on an
  16486. HP-UX system to determine the proper architecture option for your
  16487. machine. Code compiled for lower numbered architectures runs on
  16488. higher numbered architectures, but not the other way around.
  16489. '-mpa-risc-1-0'
  16490. '-mpa-risc-1-1'
  16491. '-mpa-risc-2-0'
  16492. Synonyms for '-march=1.0', '-march=1.1', and '-march=2.0'
  16493. respectively.
  16494. '-mcaller-copies'
  16495. The caller copies function arguments passed by hidden reference.
  16496. This option should be used with care as it is not compatible with
  16497. the default 32-bit runtime. However, only aggregates larger than
  16498. eight bytes are passed by hidden reference and the option provides
  16499. better compatibility with OpenMP.
  16500. '-mjump-in-delay'
  16501. This option is ignored and provided for compatibility purposes
  16502. only.
  16503. '-mdisable-fpregs'
  16504. Prevent floating-point registers from being used in any manner.
  16505. This is necessary for compiling kernels that perform lazy context
  16506. switching of floating-point registers. If you use this option and
  16507. attempt to perform floating-point operations, the compiler aborts.
  16508. '-mdisable-indexing'
  16509. Prevent the compiler from using indexing address modes. This
  16510. avoids some rather obscure problems when compiling MIG generated
  16511. code under MACH.
  16512. '-mno-space-regs'
  16513. Generate code that assumes the target has no space registers. This
  16514. allows GCC to generate faster indirect calls and use unscaled index
  16515. address modes.
  16516. Such code is suitable for level 0 PA systems and kernels.
  16517. '-mfast-indirect-calls'
  16518. Generate code that assumes calls never cross space boundaries.
  16519. This allows GCC to emit code that performs faster indirect calls.
  16520. This option does not work in the presence of shared libraries or
  16521. nested functions.
  16522. '-mfixed-range=REGISTER-RANGE'
  16523. Generate code treating the given register range as fixed registers.
  16524. A fixed register is one that the register allocator cannot use.
  16525. This is useful when compiling kernel code. A register range is
  16526. specified as two registers separated by a dash. Multiple register
  16527. ranges can be specified separated by a comma.
  16528. '-mlong-load-store'
  16529. Generate 3-instruction load and store sequences as sometimes
  16530. required by the HP-UX 10 linker. This is equivalent to the '+k'
  16531. option to the HP compilers.
  16532. '-mportable-runtime'
  16533. Use the portable calling conventions proposed by HP for ELF
  16534. systems.
  16535. '-mgas'
  16536. Enable the use of assembler directives only GAS understands.
  16537. '-mschedule=CPU-TYPE'
  16538. Schedule code according to the constraints for the machine type
  16539. CPU-TYPE. The choices for CPU-TYPE are '700' '7100', '7100LC',
  16540. '7200', '7300' and '8000'. Refer to '/usr/lib/sched.models' on an
  16541. HP-UX system to determine the proper scheduling option for your
  16542. machine. The default scheduling is '8000'.
  16543. '-mlinker-opt'
  16544. Enable the optimization pass in the HP-UX linker. Note this makes
  16545. symbolic debugging impossible. It also triggers a bug in the HP-UX
  16546. 8 and HP-UX 9 linkers in which they give bogus error messages when
  16547. linking some programs.
  16548. '-msoft-float'
  16549. Generate output containing library calls for floating point.
  16550. *Warning:* the requisite libraries are not available for all HPPA
  16551. targets. Normally the facilities of the machine's usual C compiler
  16552. are used, but this cannot be done directly in cross-compilation.
  16553. You must make your own arrangements to provide suitable library
  16554. functions for cross-compilation.
  16555. '-msoft-float' changes the calling convention in the output file;
  16556. therefore, it is only useful if you compile _all_ of a program with
  16557. this option. In particular, you need to compile 'libgcc.a', the
  16558. library that comes with GCC, with '-msoft-float' in order for this
  16559. to work.
  16560. '-msio'
  16561. Generate the predefine, '_SIO', for server IO. The default is
  16562. '-mwsio'. This generates the predefines, '__hp9000s700',
  16563. '__hp9000s700__' and '_WSIO', for workstation IO. These options
  16564. are available under HP-UX and HI-UX.
  16565. '-mgnu-ld'
  16566. Use options specific to GNU 'ld'. This passes '-shared' to 'ld'
  16567. when building a shared library. It is the default when GCC is
  16568. configured, explicitly or implicitly, with the GNU linker. This
  16569. option does not affect which 'ld' is called; it only changes what
  16570. parameters are passed to that 'ld'. The 'ld' that is called is
  16571. determined by the '--with-ld' configure option, GCC's program
  16572. search path, and finally by the user's 'PATH'. The linker used by
  16573. GCC can be printed using 'which `gcc -print-prog-name=ld`'. This
  16574. option is only available on the 64-bit HP-UX GCC, i.e. configured
  16575. with 'hppa*64*-*-hpux*'.
  16576. '-mhp-ld'
  16577. Use options specific to HP 'ld'. This passes '-b' to 'ld' when
  16578. building a shared library and passes '+Accept TypeMismatch' to 'ld'
  16579. on all links. It is the default when GCC is configured, explicitly
  16580. or implicitly, with the HP linker. This option does not affect
  16581. which 'ld' is called; it only changes what parameters are passed to
  16582. that 'ld'. The 'ld' that is called is determined by the
  16583. '--with-ld' configure option, GCC's program search path, and
  16584. finally by the user's 'PATH'. The linker used by GCC can be
  16585. printed using 'which `gcc -print-prog-name=ld`'. This option is
  16586. only available on the 64-bit HP-UX GCC, i.e. configured with
  16587. 'hppa*64*-*-hpux*'.
  16588. '-mlong-calls'
  16589. Generate code that uses long call sequences. This ensures that a
  16590. call is always able to reach linker generated stubs. The default
  16591. is to generate long calls only when the distance from the call site
  16592. to the beginning of the function or translation unit, as the case
  16593. may be, exceeds a predefined limit set by the branch type being
  16594. used. The limits for normal calls are 7,600,000 and 240,000 bytes,
  16595. respectively for the PA 2.0 and PA 1.X architectures. Sibcalls are
  16596. always limited at 240,000 bytes.
  16597. Distances are measured from the beginning of functions when using
  16598. the '-ffunction-sections' option, or when using the '-mgas' and
  16599. '-mno-portable-runtime' options together under HP-UX with the SOM
  16600. linker.
  16601. It is normally not desirable to use this option as it degrades
  16602. performance. However, it may be useful in large applications,
  16603. particularly when partial linking is used to build the application.
  16604. The types of long calls used depends on the capabilities of the
  16605. assembler and linker, and the type of code being generated. The
  16606. impact on systems that support long absolute calls, and long pic
  16607. symbol-difference or pc-relative calls should be relatively small.
  16608. However, an indirect call is used on 32-bit ELF systems in pic code
  16609. and it is quite long.
  16610. '-munix=UNIX-STD'
  16611. Generate compiler predefines and select a startfile for the
  16612. specified UNIX standard. The choices for UNIX-STD are '93', '95'
  16613. and '98'. '93' is supported on all HP-UX versions. '95' is
  16614. available on HP-UX 10.10 and later. '98' is available on HP-UX
  16615. 11.11 and later. The default values are '93' for HP-UX 10.00, '95'
  16616. for HP-UX 10.10 though to 11.00, and '98' for HP-UX 11.11 and
  16617. later.
  16618. '-munix=93' provides the same predefines as GCC 3.3 and 3.4.
  16619. '-munix=95' provides additional predefines for 'XOPEN_UNIX' and
  16620. '_XOPEN_SOURCE_EXTENDED', and the startfile 'unix95.o'.
  16621. '-munix=98' provides additional predefines for '_XOPEN_UNIX',
  16622. '_XOPEN_SOURCE_EXTENDED', '_INCLUDE__STDC_A1_SOURCE' and
  16623. '_INCLUDE_XOPEN_SOURCE_500', and the startfile 'unix98.o'.
  16624. It is _important_ to note that this option changes the interfaces
  16625. for various library routines. It also affects the operational
  16626. behavior of the C library. Thus, _extreme_ care is needed in using
  16627. this option.
  16628. Library code that is intended to operate with more than one UNIX
  16629. standard must test, set and restore the variable
  16630. '__xpg4_extended_mask' as appropriate. Most GNU software doesn't
  16631. provide this capability.
  16632. '-nolibdld'
  16633. Suppress the generation of link options to search libdld.sl when
  16634. the '-static' option is specified on HP-UX 10 and later.
  16635. '-static'
  16636. The HP-UX implementation of setlocale in libc has a dependency on
  16637. libdld.sl. There isn't an archive version of libdld.sl. Thus,
  16638. when the '-static' option is specified, special link options are
  16639. needed to resolve this dependency.
  16640. On HP-UX 10 and later, the GCC driver adds the necessary options to
  16641. link with libdld.sl when the '-static' option is specified. This
  16642. causes the resulting binary to be dynamic. On the 64-bit port, the
  16643. linkers generate dynamic binaries by default in any case. The
  16644. '-nolibdld' option can be used to prevent the GCC driver from
  16645. adding these link options.
  16646. '-threads'
  16647. Add support for multithreading with the "dce thread" library under
  16648. HP-UX. This option sets flags for both the preprocessor and
  16649. linker.
  16650. 
  16651. File: gcc.info, Node: IA-64 Options, Next: LM32 Options, Prev: HPPA Options, Up: Submodel Options
  16652. 3.19.21 IA-64 Options
  16653. ---------------------
  16654. These are the '-m' options defined for the Intel IA-64 architecture.
  16655. '-mbig-endian'
  16656. Generate code for a big-endian target. This is the default for
  16657. HP-UX.
  16658. '-mlittle-endian'
  16659. Generate code for a little-endian target. This is the default for
  16660. AIX5 and GNU/Linux.
  16661. '-mgnu-as'
  16662. '-mno-gnu-as'
  16663. Generate (or don't) code for the GNU assembler. This is the
  16664. default.
  16665. '-mgnu-ld'
  16666. '-mno-gnu-ld'
  16667. Generate (or don't) code for the GNU linker. This is the default.
  16668. '-mno-pic'
  16669. Generate code that does not use a global pointer register. The
  16670. result is not position independent code, and violates the IA-64
  16671. ABI.
  16672. '-mvolatile-asm-stop'
  16673. '-mno-volatile-asm-stop'
  16674. Generate (or don't) a stop bit immediately before and after
  16675. volatile asm statements.
  16676. '-mregister-names'
  16677. '-mno-register-names'
  16678. Generate (or don't) 'in', 'loc', and 'out' register names for the
  16679. stacked registers. This may make assembler output more readable.
  16680. '-mno-sdata'
  16681. '-msdata'
  16682. Disable (or enable) optimizations that use the small data section.
  16683. This may be useful for working around optimizer bugs.
  16684. '-mconstant-gp'
  16685. Generate code that uses a single constant global pointer value.
  16686. This is useful when compiling kernel code.
  16687. '-mauto-pic'
  16688. Generate code that is self-relocatable. This implies
  16689. '-mconstant-gp'. This is useful when compiling firmware code.
  16690. '-minline-float-divide-min-latency'
  16691. Generate code for inline divides of floating-point values using the
  16692. minimum latency algorithm.
  16693. '-minline-float-divide-max-throughput'
  16694. Generate code for inline divides of floating-point values using the
  16695. maximum throughput algorithm.
  16696. '-mno-inline-float-divide'
  16697. Do not generate inline code for divides of floating-point values.
  16698. '-minline-int-divide-min-latency'
  16699. Generate code for inline divides of integer values using the
  16700. minimum latency algorithm.
  16701. '-minline-int-divide-max-throughput'
  16702. Generate code for inline divides of integer values using the
  16703. maximum throughput algorithm.
  16704. '-mno-inline-int-divide'
  16705. Do not generate inline code for divides of integer values.
  16706. '-minline-sqrt-min-latency'
  16707. Generate code for inline square roots using the minimum latency
  16708. algorithm.
  16709. '-minline-sqrt-max-throughput'
  16710. Generate code for inline square roots using the maximum throughput
  16711. algorithm.
  16712. '-mno-inline-sqrt'
  16713. Do not generate inline code for 'sqrt'.
  16714. '-mfused-madd'
  16715. '-mno-fused-madd'
  16716. Do (don't) generate code that uses the fused multiply/add or
  16717. multiply/subtract instructions. The default is to use these
  16718. instructions.
  16719. '-mno-dwarf2-asm'
  16720. '-mdwarf2-asm'
  16721. Don't (or do) generate assembler code for the DWARF line number
  16722. debugging info. This may be useful when not using the GNU
  16723. assembler.
  16724. '-mearly-stop-bits'
  16725. '-mno-early-stop-bits'
  16726. Allow stop bits to be placed earlier than immediately preceding the
  16727. instruction that triggered the stop bit. This can improve
  16728. instruction scheduling, but does not always do so.
  16729. '-mfixed-range=REGISTER-RANGE'
  16730. Generate code treating the given register range as fixed registers.
  16731. A fixed register is one that the register allocator cannot use.
  16732. This is useful when compiling kernel code. A register range is
  16733. specified as two registers separated by a dash. Multiple register
  16734. ranges can be specified separated by a comma.
  16735. '-mtls-size=TLS-SIZE'
  16736. Specify bit size of immediate TLS offsets. Valid values are 14,
  16737. 22, and 64.
  16738. '-mtune=CPU-TYPE'
  16739. Tune the instruction scheduling for a particular CPU, Valid values
  16740. are 'itanium', 'itanium1', 'merced', 'itanium2', and 'mckinley'.
  16741. '-milp32'
  16742. '-mlp64'
  16743. Generate code for a 32-bit or 64-bit environment. The 32-bit
  16744. environment sets int, long and pointer to 32 bits. The 64-bit
  16745. environment sets int to 32 bits and long and pointer to 64 bits.
  16746. These are HP-UX specific flags.
  16747. '-mno-sched-br-data-spec'
  16748. '-msched-br-data-spec'
  16749. (Dis/En)able data speculative scheduling before reload. This
  16750. results in generation of 'ld.a' instructions and the corresponding
  16751. check instructions ('ld.c' / 'chk.a'). The default setting is
  16752. disabled.
  16753. '-msched-ar-data-spec'
  16754. '-mno-sched-ar-data-spec'
  16755. (En/Dis)able data speculative scheduling after reload. This
  16756. results in generation of 'ld.a' instructions and the corresponding
  16757. check instructions ('ld.c' / 'chk.a'). The default setting is
  16758. enabled.
  16759. '-mno-sched-control-spec'
  16760. '-msched-control-spec'
  16761. (Dis/En)able control speculative scheduling. This feature is
  16762. available only during region scheduling (i.e. before reload). This
  16763. results in generation of the 'ld.s' instructions and the
  16764. corresponding check instructions 'chk.s'. The default setting is
  16765. disabled.
  16766. '-msched-br-in-data-spec'
  16767. '-mno-sched-br-in-data-spec'
  16768. (En/Dis)able speculative scheduling of the instructions that are
  16769. dependent on the data speculative loads before reload. This is
  16770. effective only with '-msched-br-data-spec' enabled. The default
  16771. setting is enabled.
  16772. '-msched-ar-in-data-spec'
  16773. '-mno-sched-ar-in-data-spec'
  16774. (En/Dis)able speculative scheduling of the instructions that are
  16775. dependent on the data speculative loads after reload. This is
  16776. effective only with '-msched-ar-data-spec' enabled. The default
  16777. setting is enabled.
  16778. '-msched-in-control-spec'
  16779. '-mno-sched-in-control-spec'
  16780. (En/Dis)able speculative scheduling of the instructions that are
  16781. dependent on the control speculative loads. This is effective only
  16782. with '-msched-control-spec' enabled. The default setting is
  16783. enabled.
  16784. '-mno-sched-prefer-non-data-spec-insns'
  16785. '-msched-prefer-non-data-spec-insns'
  16786. If enabled, data-speculative instructions are chosen for schedule
  16787. only if there are no other choices at the moment. This makes the
  16788. use of the data speculation much more conservative. The default
  16789. setting is disabled.
  16790. '-mno-sched-prefer-non-control-spec-insns'
  16791. '-msched-prefer-non-control-spec-insns'
  16792. If enabled, control-speculative instructions are chosen for
  16793. schedule only if there are no other choices at the moment. This
  16794. makes the use of the control speculation much more conservative.
  16795. The default setting is disabled.
  16796. '-mno-sched-count-spec-in-critical-path'
  16797. '-msched-count-spec-in-critical-path'
  16798. If enabled, speculative dependencies are considered during
  16799. computation of the instructions priorities. This makes the use of
  16800. the speculation a bit more conservative. The default setting is
  16801. disabled.
  16802. '-msched-spec-ldc'
  16803. Use a simple data speculation check. This option is on by default.
  16804. '-msched-control-spec-ldc'
  16805. Use a simple check for control speculation. This option is on by
  16806. default.
  16807. '-msched-stop-bits-after-every-cycle'
  16808. Place a stop bit after every cycle when scheduling. This option is
  16809. on by default.
  16810. '-msched-fp-mem-deps-zero-cost'
  16811. Assume that floating-point stores and loads are not likely to cause
  16812. a conflict when placed into the same instruction group. This
  16813. option is disabled by default.
  16814. '-msel-sched-dont-check-control-spec'
  16815. Generate checks for control speculation in selective scheduling.
  16816. This flag is disabled by default.
  16817. '-msched-max-memory-insns=MAX-INSNS'
  16818. Limit on the number of memory insns per instruction group, giving
  16819. lower priority to subsequent memory insns attempting to schedule in
  16820. the same instruction group. Frequently useful to prevent cache
  16821. bank conflicts. The default value is 1.
  16822. '-msched-max-memory-insns-hard-limit'
  16823. Makes the limit specified by 'msched-max-memory-insns' a hard
  16824. limit, disallowing more than that number in an instruction group.
  16825. Otherwise, the limit is "soft", meaning that non-memory operations
  16826. are preferred when the limit is reached, but memory operations may
  16827. still be scheduled.
  16828. 
  16829. File: gcc.info, Node: LM32 Options, Next: M32C Options, Prev: IA-64 Options, Up: Submodel Options
  16830. 3.19.22 LM32 Options
  16831. --------------------
  16832. These '-m' options are defined for the LatticeMico32 architecture:
  16833. '-mbarrel-shift-enabled'
  16834. Enable barrel-shift instructions.
  16835. '-mdivide-enabled'
  16836. Enable divide and modulus instructions.
  16837. '-mmultiply-enabled'
  16838. Enable multiply instructions.
  16839. '-msign-extend-enabled'
  16840. Enable sign extend instructions.
  16841. '-muser-enabled'
  16842. Enable user-defined instructions.
  16843. 
  16844. File: gcc.info, Node: M32C Options, Next: M32R/D Options, Prev: LM32 Options, Up: Submodel Options
  16845. 3.19.23 M32C Options
  16846. --------------------
  16847. '-mcpu=NAME'
  16848. Select the CPU for which code is generated. NAME may be one of
  16849. 'r8c' for the R8C/Tiny series, 'm16c' for the M16C (up to /60)
  16850. series, 'm32cm' for the M16C/80 series, or 'm32c' for the M32C/80
  16851. series.
  16852. '-msim'
  16853. Specifies that the program will be run on the simulator. This
  16854. causes an alternate runtime library to be linked in which supports,
  16855. for example, file I/O. You must not use this option when
  16856. generating programs that will run on real hardware; you must
  16857. provide your own runtime library for whatever I/O functions are
  16858. needed.
  16859. '-memregs=NUMBER'
  16860. Specifies the number of memory-based pseudo-registers GCC uses
  16861. during code generation. These pseudo-registers are used like real
  16862. registers, so there is a tradeoff between GCC's ability to fit the
  16863. code into available registers, and the performance penalty of using
  16864. memory instead of registers. Note that all modules in a program
  16865. must be compiled with the same value for this option. Because of
  16866. that, you must not use this option with GCC's default runtime
  16867. libraries.
  16868. 
  16869. File: gcc.info, Node: M32R/D Options, Next: M680x0 Options, Prev: M32C Options, Up: Submodel Options
  16870. 3.19.24 M32R/D Options
  16871. ----------------------
  16872. These '-m' options are defined for Renesas M32R/D architectures:
  16873. '-m32r2'
  16874. Generate code for the M32R/2.
  16875. '-m32rx'
  16876. Generate code for the M32R/X.
  16877. '-m32r'
  16878. Generate code for the M32R. This is the default.
  16879. '-mmodel=small'
  16880. Assume all objects live in the lower 16MB of memory (so that their
  16881. addresses can be loaded with the 'ld24' instruction), and assume
  16882. all subroutines are reachable with the 'bl' instruction. This is
  16883. the default.
  16884. The addressability of a particular object can be set with the
  16885. 'model' attribute.
  16886. '-mmodel=medium'
  16887. Assume objects may be anywhere in the 32-bit address space (the
  16888. compiler generates 'seth/add3' instructions to load their
  16889. addresses), and assume all subroutines are reachable with the 'bl'
  16890. instruction.
  16891. '-mmodel=large'
  16892. Assume objects may be anywhere in the 32-bit address space (the
  16893. compiler generates 'seth/add3' instructions to load their
  16894. addresses), and assume subroutines may not be reachable with the
  16895. 'bl' instruction (the compiler generates the much slower
  16896. 'seth/add3/jl' instruction sequence).
  16897. '-msdata=none'
  16898. Disable use of the small data area. Variables are put into one of
  16899. '.data', '.bss', or '.rodata' (unless the 'section' attribute has
  16900. been specified). This is the default.
  16901. The small data area consists of sections '.sdata' and '.sbss'.
  16902. Objects may be explicitly put in the small data area with the
  16903. 'section' attribute using one of these sections.
  16904. '-msdata=sdata'
  16905. Put small global and static data in the small data area, but do not
  16906. generate special code to reference them.
  16907. '-msdata=use'
  16908. Put small global and static data in the small data area, and
  16909. generate special instructions to reference them.
  16910. '-G NUM'
  16911. Put global and static objects less than or equal to NUM bytes into
  16912. the small data or BSS sections instead of the normal data or BSS
  16913. sections. The default value of NUM is 8. The '-msdata' option
  16914. must be set to one of 'sdata' or 'use' for this option to have any
  16915. effect.
  16916. All modules should be compiled with the same '-G NUM' value.
  16917. Compiling with different values of NUM may or may not work; if it
  16918. doesn't the linker gives an error message--incorrect code is not
  16919. generated.
  16920. '-mdebug'
  16921. Makes the M32R-specific code in the compiler display some
  16922. statistics that might help in debugging programs.
  16923. '-malign-loops'
  16924. Align all loops to a 32-byte boundary.
  16925. '-mno-align-loops'
  16926. Do not enforce a 32-byte alignment for loops. This is the default.
  16927. '-missue-rate=NUMBER'
  16928. Issue NUMBER instructions per cycle. NUMBER can only be 1 or 2.
  16929. '-mbranch-cost=NUMBER'
  16930. NUMBER can only be 1 or 2. If it is 1 then branches are preferred
  16931. over conditional code, if it is 2, then the opposite applies.
  16932. '-mflush-trap=NUMBER'
  16933. Specifies the trap number to use to flush the cache. The default
  16934. is 12. Valid numbers are between 0 and 15 inclusive.
  16935. '-mno-flush-trap'
  16936. Specifies that the cache cannot be flushed by using a trap.
  16937. '-mflush-func=NAME'
  16938. Specifies the name of the operating system function to call to
  16939. flush the cache. The default is '_flush_cache', but a function
  16940. call is only used if a trap is not available.
  16941. '-mno-flush-func'
  16942. Indicates that there is no OS function for flushing the cache.
  16943. 
  16944. File: gcc.info, Node: M680x0 Options, Next: MCore Options, Prev: M32R/D Options, Up: Submodel Options
  16945. 3.19.25 M680x0 Options
  16946. ----------------------
  16947. These are the '-m' options defined for M680x0 and ColdFire processors.
  16948. The default settings depend on which architecture was selected when the
  16949. compiler was configured; the defaults for the most common choices are
  16950. given below.
  16951. '-march=ARCH'
  16952. Generate code for a specific M680x0 or ColdFire instruction set
  16953. architecture. Permissible values of ARCH for M680x0 architectures
  16954. are: '68000', '68010', '68020', '68030', '68040', '68060' and
  16955. 'cpu32'. ColdFire architectures are selected according to
  16956. Freescale's ISA classification and the permissible values are:
  16957. 'isaa', 'isaaplus', 'isab' and 'isac'.
  16958. GCC defines a macro '__mcfARCH__' whenever it is generating code
  16959. for a ColdFire target. The ARCH in this macro is one of the
  16960. '-march' arguments given above.
  16961. When used together, '-march' and '-mtune' select code that runs on
  16962. a family of similar processors but that is optimized for a
  16963. particular microarchitecture.
  16964. '-mcpu=CPU'
  16965. Generate code for a specific M680x0 or ColdFire processor. The
  16966. M680x0 CPUs are: '68000', '68010', '68020', '68030', '68040',
  16967. '68060', '68302', '68332' and 'cpu32'. The ColdFire CPUs are given
  16968. by the table below, which also classifies the CPUs into families:
  16969. *Family* *'-mcpu' arguments*
  16970. '51' '51' '51ac' '51ag' '51cn' '51em' '51je' '51jf' '51jg'
  16971. '51jm' '51mm' '51qe' '51qm'
  16972. '5206' '5202' '5204' '5206'
  16973. '5206e' '5206e'
  16974. '5208' '5207' '5208'
  16975. '5211a' '5210a' '5211a'
  16976. '5213' '5211' '5212' '5213'
  16977. '5216' '5214' '5216'
  16978. '52235' '52230' '52231' '52232' '52233' '52234' '52235'
  16979. '5225' '5224' '5225'
  16980. '52259' '52252' '52254' '52255' '52256' '52258' '52259'
  16981. '5235' '5232' '5233' '5234' '5235' '523x'
  16982. '5249' '5249'
  16983. '5250' '5250'
  16984. '5271' '5270' '5271'
  16985. '5272' '5272'
  16986. '5275' '5274' '5275'
  16987. '5282' '5280' '5281' '5282' '528x'
  16988. '53017' '53011' '53012' '53013' '53014' '53015' '53016' '53017'
  16989. '5307' '5307'
  16990. '5329' '5327' '5328' '5329' '532x'
  16991. '5373' '5372' '5373' '537x'
  16992. '5407' '5407'
  16993. '5475' '5470' '5471' '5472' '5473' '5474' '5475' '547x' '5480'
  16994. '5481' '5482' '5483' '5484' '5485'
  16995. '-mcpu=CPU' overrides '-march=ARCH' if ARCH is compatible with CPU.
  16996. Other combinations of '-mcpu' and '-march' are rejected.
  16997. GCC defines the macro '__mcf_cpu_CPU' when ColdFire target CPU is
  16998. selected. It also defines '__mcf_family_FAMILY', where the value
  16999. of FAMILY is given by the table above.
  17000. '-mtune=TUNE'
  17001. Tune the code for a particular microarchitecture within the
  17002. constraints set by '-march' and '-mcpu'. The M680x0
  17003. microarchitectures are: '68000', '68010', '68020', '68030',
  17004. '68040', '68060' and 'cpu32'. The ColdFire microarchitectures are:
  17005. 'cfv1', 'cfv2', 'cfv3', 'cfv4' and 'cfv4e'.
  17006. You can also use '-mtune=68020-40' for code that needs to run
  17007. relatively well on 68020, 68030 and 68040 targets.
  17008. '-mtune=68020-60' is similar but includes 68060 targets as well.
  17009. These two options select the same tuning decisions as '-m68020-40'
  17010. and '-m68020-60' respectively.
  17011. GCC defines the macros '__mcARCH' and '__mcARCH__' when tuning for
  17012. 680x0 architecture ARCH. It also defines 'mcARCH' unless either
  17013. '-ansi' or a non-GNU '-std' option is used. If GCC is tuning for a
  17014. range of architectures, as selected by '-mtune=68020-40' or
  17015. '-mtune=68020-60', it defines the macros for every architecture in
  17016. the range.
  17017. GCC also defines the macro '__mUARCH__' when tuning for ColdFire
  17018. microarchitecture UARCH, where UARCH is one of the arguments given
  17019. above.
  17020. '-m68000'
  17021. '-mc68000'
  17022. Generate output for a 68000. This is the default when the compiler
  17023. is configured for 68000-based systems. It is equivalent to
  17024. '-march=68000'.
  17025. Use this option for microcontrollers with a 68000 or EC000 core,
  17026. including the 68008, 68302, 68306, 68307, 68322, 68328 and 68356.
  17027. '-m68010'
  17028. Generate output for a 68010. This is the default when the compiler
  17029. is configured for 68010-based systems. It is equivalent to
  17030. '-march=68010'.
  17031. '-m68020'
  17032. '-mc68020'
  17033. Generate output for a 68020. This is the default when the compiler
  17034. is configured for 68020-based systems. It is equivalent to
  17035. '-march=68020'.
  17036. '-m68030'
  17037. Generate output for a 68030. This is the default when the compiler
  17038. is configured for 68030-based systems. It is equivalent to
  17039. '-march=68030'.
  17040. '-m68040'
  17041. Generate output for a 68040. This is the default when the compiler
  17042. is configured for 68040-based systems. It is equivalent to
  17043. '-march=68040'.
  17044. This option inhibits the use of 68881/68882 instructions that have
  17045. to be emulated by software on the 68040. Use this option if your
  17046. 68040 does not have code to emulate those instructions.
  17047. '-m68060'
  17048. Generate output for a 68060. This is the default when the compiler
  17049. is configured for 68060-based systems. It is equivalent to
  17050. '-march=68060'.
  17051. This option inhibits the use of 68020 and 68881/68882 instructions
  17052. that have to be emulated by software on the 68060. Use this option
  17053. if your 68060 does not have code to emulate those instructions.
  17054. '-mcpu32'
  17055. Generate output for a CPU32. This is the default when the compiler
  17056. is configured for CPU32-based systems. It is equivalent to
  17057. '-march=cpu32'.
  17058. Use this option for microcontrollers with a CPU32 or CPU32+ core,
  17059. including the 68330, 68331, 68332, 68333, 68334, 68336, 68340,
  17060. 68341, 68349 and 68360.
  17061. '-m5200'
  17062. Generate output for a 520X ColdFire CPU. This is the default when
  17063. the compiler is configured for 520X-based systems. It is
  17064. equivalent to '-mcpu=5206', and is now deprecated in favor of that
  17065. option.
  17066. Use this option for microcontroller with a 5200 core, including the
  17067. MCF5202, MCF5203, MCF5204 and MCF5206.
  17068. '-m5206e'
  17069. Generate output for a 5206e ColdFire CPU. The option is now
  17070. deprecated in favor of the equivalent '-mcpu=5206e'.
  17071. '-m528x'
  17072. Generate output for a member of the ColdFire 528X family. The
  17073. option is now deprecated in favor of the equivalent '-mcpu=528x'.
  17074. '-m5307'
  17075. Generate output for a ColdFire 5307 CPU. The option is now
  17076. deprecated in favor of the equivalent '-mcpu=5307'.
  17077. '-m5407'
  17078. Generate output for a ColdFire 5407 CPU. The option is now
  17079. deprecated in favor of the equivalent '-mcpu=5407'.
  17080. '-mcfv4e'
  17081. Generate output for a ColdFire V4e family CPU (e.g. 547x/548x).
  17082. This includes use of hardware floating-point instructions. The
  17083. option is equivalent to '-mcpu=547x', and is now deprecated in
  17084. favor of that option.
  17085. '-m68020-40'
  17086. Generate output for a 68040, without using any of the new
  17087. instructions. This results in code that can run relatively
  17088. efficiently on either a 68020/68881 or a 68030 or a 68040. The
  17089. generated code does use the 68881 instructions that are emulated on
  17090. the 68040.
  17091. The option is equivalent to '-march=68020' '-mtune=68020-40'.
  17092. '-m68020-60'
  17093. Generate output for a 68060, without using any of the new
  17094. instructions. This results in code that can run relatively
  17095. efficiently on either a 68020/68881 or a 68030 or a 68040. The
  17096. generated code does use the 68881 instructions that are emulated on
  17097. the 68060.
  17098. The option is equivalent to '-march=68020' '-mtune=68020-60'.
  17099. '-mhard-float'
  17100. '-m68881'
  17101. Generate floating-point instructions. This is the default for
  17102. 68020 and above, and for ColdFire devices that have an FPU. It
  17103. defines the macro '__HAVE_68881__' on M680x0 targets and
  17104. '__mcffpu__' on ColdFire targets.
  17105. '-msoft-float'
  17106. Do not generate floating-point instructions; use library calls
  17107. instead. This is the default for 68000, 68010, and 68832 targets.
  17108. It is also the default for ColdFire devices that have no FPU.
  17109. '-mdiv'
  17110. '-mno-div'
  17111. Generate (do not generate) ColdFire hardware divide and remainder
  17112. instructions. If '-march' is used without '-mcpu', the default is
  17113. "on" for ColdFire architectures and "off" for M680x0 architectures.
  17114. Otherwise, the default is taken from the target CPU (either the
  17115. default CPU, or the one specified by '-mcpu'). For example, the
  17116. default is "off" for '-mcpu=5206' and "on" for '-mcpu=5206e'.
  17117. GCC defines the macro '__mcfhwdiv__' when this option is enabled.
  17118. '-mshort'
  17119. Consider type 'int' to be 16 bits wide, like 'short int'.
  17120. Additionally, parameters passed on the stack are also aligned to a
  17121. 16-bit boundary even on targets whose API mandates promotion to
  17122. 32-bit.
  17123. '-mno-short'
  17124. Do not consider type 'int' to be 16 bits wide. This is the
  17125. default.
  17126. '-mnobitfield'
  17127. '-mno-bitfield'
  17128. Do not use the bit-field instructions. The '-m68000', '-mcpu32'
  17129. and '-m5200' options imply '-mnobitfield'.
  17130. '-mbitfield'
  17131. Do use the bit-field instructions. The '-m68020' option implies
  17132. '-mbitfield'. This is the default if you use a configuration
  17133. designed for a 68020.
  17134. '-mrtd'
  17135. Use a different function-calling convention, in which functions
  17136. that take a fixed number of arguments return with the 'rtd'
  17137. instruction, which pops their arguments while returning. This
  17138. saves one instruction in the caller since there is no need to pop
  17139. the arguments there.
  17140. This calling convention is incompatible with the one normally used
  17141. on Unix, so you cannot use it if you need to call libraries
  17142. compiled with the Unix compiler.
  17143. Also, you must provide function prototypes for all functions that
  17144. take variable numbers of arguments (including 'printf'); otherwise
  17145. incorrect code is generated for calls to those functions.
  17146. In addition, seriously incorrect code results if you call a
  17147. function with too many arguments. (Normally, extra arguments are
  17148. harmlessly ignored.)
  17149. The 'rtd' instruction is supported by the 68010, 68020, 68030,
  17150. 68040, 68060 and CPU32 processors, but not by the 68000 or 5200.
  17151. The default is '-mno-rtd'.
  17152. '-malign-int'
  17153. '-mno-align-int'
  17154. Control whether GCC aligns 'int', 'long', 'long long', 'float',
  17155. 'double', and 'long double' variables on a 32-bit boundary
  17156. ('-malign-int') or a 16-bit boundary ('-mno-align-int'). Aligning
  17157. variables on 32-bit boundaries produces code that runs somewhat
  17158. faster on processors with 32-bit busses at the expense of more
  17159. memory.
  17160. *Warning:* if you use the '-malign-int' switch, GCC aligns
  17161. structures containing the above types differently than most
  17162. published application binary interface specifications for the m68k.
  17163. Use the pc-relative addressing mode of the 68000 directly, instead
  17164. of using a global offset table. At present, this option implies
  17165. '-fpic', allowing at most a 16-bit offset for pc-relative
  17166. addressing. '-fPIC' is not presently supported with '-mpcrel',
  17167. though this could be supported for 68020 and higher processors.
  17168. '-mno-strict-align'
  17169. '-mstrict-align'
  17170. Do not (do) assume that unaligned memory references are handled by
  17171. the system.
  17172. '-msep-data'
  17173. Generate code that allows the data segment to be located in a
  17174. different area of memory from the text segment. This allows for
  17175. execute-in-place in an environment without virtual memory
  17176. management. This option implies '-fPIC'.
  17177. '-mno-sep-data'
  17178. Generate code that assumes that the data segment follows the text
  17179. segment. This is the default.
  17180. '-mid-shared-library'
  17181. Generate code that supports shared libraries via the library ID
  17182. method. This allows for execute-in-place and shared libraries in
  17183. an environment without virtual memory management. This option
  17184. implies '-fPIC'.
  17185. '-mno-id-shared-library'
  17186. Generate code that doesn't assume ID-based shared libraries are
  17187. being used. This is the default.
  17188. '-mshared-library-id=n'
  17189. Specifies the identification number of the ID-based shared library
  17190. being compiled. Specifying a value of 0 generates more compact
  17191. code; specifying other values forces the allocation of that number
  17192. to the current library, but is no more space- or time-efficient
  17193. than omitting this option.
  17194. '-mxgot'
  17195. '-mno-xgot'
  17196. When generating position-independent code for ColdFire, generate
  17197. code that works if the GOT has more than 8192 entries. This code
  17198. is larger and slower than code generated without this option. On
  17199. M680x0 processors, this option is not needed; '-fPIC' suffices.
  17200. GCC normally uses a single instruction to load values from the GOT.
  17201. While this is relatively efficient, it only works if the GOT is
  17202. smaller than about 64k. Anything larger causes the linker to
  17203. report an error such as:
  17204. relocation truncated to fit: R_68K_GOT16O foobar
  17205. If this happens, you should recompile your code with '-mxgot'. It
  17206. should then work with very large GOTs. However, code generated
  17207. with '-mxgot' is less efficient, since it takes 4 instructions to
  17208. fetch the value of a global symbol.
  17209. Note that some linkers, including newer versions of the GNU linker,
  17210. can create multiple GOTs and sort GOT entries. If you have such a
  17211. linker, you should only need to use '-mxgot' when compiling a
  17212. single object file that accesses more than 8192 GOT entries. Very
  17213. few do.
  17214. These options have no effect unless GCC is generating
  17215. position-independent code.
  17216. '-mlong-jump-table-offsets'
  17217. Use 32-bit offsets in 'switch' tables. The default is to use
  17218. 16-bit offsets.
  17219. 
  17220. File: gcc.info, Node: MCore Options, Next: MeP Options, Prev: M680x0 Options, Up: Submodel Options
  17221. 3.19.26 MCore Options
  17222. ---------------------
  17223. These are the '-m' options defined for the Motorola M*Core processors.
  17224. '-mhardlit'
  17225. '-mno-hardlit'
  17226. Inline constants into the code stream if it can be done in two
  17227. instructions or less.
  17228. '-mdiv'
  17229. '-mno-div'
  17230. Use the divide instruction. (Enabled by default).
  17231. '-mrelax-immediate'
  17232. '-mno-relax-immediate'
  17233. Allow arbitrary-sized immediates in bit operations.
  17234. '-mwide-bitfields'
  17235. '-mno-wide-bitfields'
  17236. Always treat bit-fields as 'int'-sized.
  17237. '-m4byte-functions'
  17238. '-mno-4byte-functions'
  17239. Force all functions to be aligned to a 4-byte boundary.
  17240. '-mcallgraph-data'
  17241. '-mno-callgraph-data'
  17242. Emit callgraph information.
  17243. '-mslow-bytes'
  17244. '-mno-slow-bytes'
  17245. Prefer word access when reading byte quantities.
  17246. '-mlittle-endian'
  17247. '-mbig-endian'
  17248. Generate code for a little-endian target.
  17249. '-m210'
  17250. '-m340'
  17251. Generate code for the 210 processor.
  17252. '-mno-lsim'
  17253. Assume that runtime support has been provided and so omit the
  17254. simulator library ('libsim.a)' from the linker command line.
  17255. '-mstack-increment=SIZE'
  17256. Set the maximum amount for a single stack increment operation.
  17257. Large values can increase the speed of programs that contain
  17258. functions that need a large amount of stack space, but they can
  17259. also trigger a segmentation fault if the stack is extended too
  17260. much. The default value is 0x1000.
  17261. 
  17262. File: gcc.info, Node: MeP Options, Next: MicroBlaze Options, Prev: MCore Options, Up: Submodel Options
  17263. 3.19.27 MeP Options
  17264. -------------------
  17265. '-mabsdiff'
  17266. Enables the 'abs' instruction, which is the absolute difference
  17267. between two registers.
  17268. '-mall-opts'
  17269. Enables all the optional instructions--average, multiply, divide,
  17270. bit operations, leading zero, absolute difference, min/max, clip,
  17271. and saturation.
  17272. '-maverage'
  17273. Enables the 'ave' instruction, which computes the average of two
  17274. registers.
  17275. '-mbased=N'
  17276. Variables of size N bytes or smaller are placed in the '.based'
  17277. section by default. Based variables use the '$tp' register as a
  17278. base register, and there is a 128-byte limit to the '.based'
  17279. section.
  17280. '-mbitops'
  17281. Enables the bit operation instructions--bit test ('btstm'), set
  17282. ('bsetm'), clear ('bclrm'), invert ('bnotm'), and test-and-set
  17283. ('tas').
  17284. '-mc=NAME'
  17285. Selects which section constant data is placed in. NAME may be
  17286. 'tiny', 'near', or 'far'.
  17287. '-mclip'
  17288. Enables the 'clip' instruction. Note that '-mclip' is not useful
  17289. unless you also provide '-mminmax'.
  17290. '-mconfig=NAME'
  17291. Selects one of the built-in core configurations. Each MeP chip has
  17292. one or more modules in it; each module has a core CPU and a variety
  17293. of coprocessors, optional instructions, and peripherals. The
  17294. 'MeP-Integrator' tool, not part of GCC, provides these
  17295. configurations through this option; using this option is the same
  17296. as using all the corresponding command-line options. The default
  17297. configuration is 'default'.
  17298. '-mcop'
  17299. Enables the coprocessor instructions. By default, this is a 32-bit
  17300. coprocessor. Note that the coprocessor is normally enabled via the
  17301. '-mconfig=' option.
  17302. '-mcop32'
  17303. Enables the 32-bit coprocessor's instructions.
  17304. '-mcop64'
  17305. Enables the 64-bit coprocessor's instructions.
  17306. '-mivc2'
  17307. Enables IVC2 scheduling. IVC2 is a 64-bit VLIW coprocessor.
  17308. '-mdc'
  17309. Causes constant variables to be placed in the '.near' section.
  17310. '-mdiv'
  17311. Enables the 'div' and 'divu' instructions.
  17312. '-meb'
  17313. Generate big-endian code.
  17314. '-mel'
  17315. Generate little-endian code.
  17316. '-mio-volatile'
  17317. Tells the compiler that any variable marked with the 'io' attribute
  17318. is to be considered volatile.
  17319. '-ml'
  17320. Causes variables to be assigned to the '.far' section by default.
  17321. '-mleadz'
  17322. Enables the 'leadz' (leading zero) instruction.
  17323. '-mm'
  17324. Causes variables to be assigned to the '.near' section by default.
  17325. '-mminmax'
  17326. Enables the 'min' and 'max' instructions.
  17327. '-mmult'
  17328. Enables the multiplication and multiply-accumulate instructions.
  17329. '-mno-opts'
  17330. Disables all the optional instructions enabled by '-mall-opts'.
  17331. '-mrepeat'
  17332. Enables the 'repeat' and 'erepeat' instructions, used for
  17333. low-overhead looping.
  17334. '-ms'
  17335. Causes all variables to default to the '.tiny' section. Note that
  17336. there is a 65536-byte limit to this section. Accesses to these
  17337. variables use the '%gp' base register.
  17338. '-msatur'
  17339. Enables the saturation instructions. Note that the compiler does
  17340. not currently generate these itself, but this option is included
  17341. for compatibility with other tools, like 'as'.
  17342. '-msdram'
  17343. Link the SDRAM-based runtime instead of the default ROM-based
  17344. runtime.
  17345. '-msim'
  17346. Link the simulator run-time libraries.
  17347. '-msimnovec'
  17348. Link the simulator runtime libraries, excluding built-in support
  17349. for reset and exception vectors and tables.
  17350. '-mtf'
  17351. Causes all functions to default to the '.far' section. Without
  17352. this option, functions default to the '.near' section.
  17353. '-mtiny=N'
  17354. Variables that are N bytes or smaller are allocated to the '.tiny'
  17355. section. These variables use the '$gp' base register. The default
  17356. for this option is 4, but note that there's a 65536-byte limit to
  17357. the '.tiny' section.
  17358. 
  17359. File: gcc.info, Node: MicroBlaze Options, Next: MIPS Options, Prev: MeP Options, Up: Submodel Options
  17360. 3.19.28 MicroBlaze Options
  17361. --------------------------
  17362. '-msoft-float'
  17363. Use software emulation for floating point (default).
  17364. '-mhard-float'
  17365. Use hardware floating-point instructions.
  17366. '-mmemcpy'
  17367. Do not optimize block moves, use 'memcpy'.
  17368. '-mno-clearbss'
  17369. This option is deprecated. Use '-fno-zero-initialized-in-bss'
  17370. instead.
  17371. '-mcpu=CPU-TYPE'
  17372. Use features of, and schedule code for, the given CPU. Supported
  17373. values are in the format 'vX.YY.Z', where X is a major version, YY
  17374. is the minor version, and Z is compatibility code. Example values
  17375. are 'v3.00.a', 'v4.00.b', 'v5.00.a', 'v5.00.b', 'v6.00.a'.
  17376. '-mxl-soft-mul'
  17377. Use software multiply emulation (default).
  17378. '-mxl-soft-div'
  17379. Use software emulation for divides (default).
  17380. '-mxl-barrel-shift'
  17381. Use the hardware barrel shifter.
  17382. '-mxl-pattern-compare'
  17383. Use pattern compare instructions.
  17384. '-msmall-divides'
  17385. Use table lookup optimization for small signed integer divisions.
  17386. '-mxl-stack-check'
  17387. This option is deprecated. Use '-fstack-check' instead.
  17388. '-mxl-gp-opt'
  17389. Use GP-relative '.sdata'/'.sbss' sections.
  17390. '-mxl-multiply-high'
  17391. Use multiply high instructions for high part of 32x32 multiply.
  17392. '-mxl-float-convert'
  17393. Use hardware floating-point conversion instructions.
  17394. '-mxl-float-sqrt'
  17395. Use hardware floating-point square root instruction.
  17396. '-mbig-endian'
  17397. Generate code for a big-endian target.
  17398. '-mlittle-endian'
  17399. Generate code for a little-endian target.
  17400. '-mxl-reorder'
  17401. Use reorder instructions (swap and byte reversed load/store).
  17402. '-mxl-mode-APP-MODEL'
  17403. Select application model APP-MODEL. Valid models are
  17404. 'executable'
  17405. normal executable (default), uses startup code 'crt0.o'.
  17406. '-mpic-data-is-text-relative'
  17407. Assume that the displacement between the text and data
  17408. segments is fixed at static link time. This allows data to be
  17409. referenced by offset from start of text address instead of GOT
  17410. since PC-relative addressing is not supported.
  17411. 'xmdstub'
  17412. for use with Xilinx Microprocessor Debugger (XMD) based
  17413. software intrusive debug agent called xmdstub. This uses
  17414. startup file 'crt1.o' and sets the start address of the
  17415. program to 0x800.
  17416. 'bootstrap'
  17417. for applications that are loaded using a bootloader. This
  17418. model uses startup file 'crt2.o' which does not contain a
  17419. processor reset vector handler. This is suitable for
  17420. transferring control on a processor reset to the bootloader
  17421. rather than the application.
  17422. 'novectors'
  17423. for applications that do not require any of the MicroBlaze
  17424. vectors. This option may be useful for applications running
  17425. within a monitoring application. This model uses 'crt3.o' as
  17426. a startup file.
  17427. Option '-xl-mode-APP-MODEL' is a deprecated alias for
  17428. '-mxl-mode-APP-MODEL'.
  17429. 
  17430. File: gcc.info, Node: MIPS Options, Next: MMIX Options, Prev: MicroBlaze Options, Up: Submodel Options
  17431. 3.19.29 MIPS Options
  17432. --------------------
  17433. '-EB'
  17434. Generate big-endian code.
  17435. '-EL'
  17436. Generate little-endian code. This is the default for 'mips*el-*-*'
  17437. configurations.
  17438. '-march=ARCH'
  17439. Generate code that runs on ARCH, which can be the name of a generic
  17440. MIPS ISA, or the name of a particular processor. The ISA names
  17441. are: 'mips1', 'mips2', 'mips3', 'mips4', 'mips32', 'mips32r2',
  17442. 'mips32r3', 'mips32r5', 'mips32r6', 'mips64', 'mips64r2',
  17443. 'mips64r3', 'mips64r5' and 'mips64r6'. The processor names are:
  17444. '4kc', '4km', '4kp', '4ksc', '4kec', '4kem', '4kep', '4ksd', '5kc',
  17445. '5kf', '20kc', '24kc', '24kf2_1', '24kf1_1', '24kec', '24kef2_1',
  17446. '24kef1_1', '34kc', '34kf2_1', '34kf1_1', '34kn', '74kc',
  17447. '74kf2_1', '74kf1_1', '74kf3_2', '1004kc', '1004kf2_1',
  17448. '1004kf1_1', 'i6400', 'i6500', 'interaptiv', 'loongson2e',
  17449. 'loongson2f', 'loongson3a', 'gs464', 'gs464e', 'gs264e', 'm4k',
  17450. 'm14k', 'm14kc', 'm14ke', 'm14kec', 'm5100', 'm5101', 'octeon',
  17451. 'octeon+', 'octeon2', 'octeon3', 'orion', 'p5600', 'p6600',
  17452. 'r2000', 'r3000', 'r3900', 'r4000', 'r4400', 'r4600', 'r4650',
  17453. 'r4700', 'r5900', 'r6000', 'r8000', 'rm7000', 'rm9000', 'r10000',
  17454. 'r12000', 'r14000', 'r16000', 'sb1', 'sr71000', 'vr4100', 'vr4111',
  17455. 'vr4120', 'vr4130', 'vr4300', 'vr5000', 'vr5400', 'vr5500', 'xlr'
  17456. and 'xlp'. The special value 'from-abi' selects the most
  17457. compatible architecture for the selected ABI (that is, 'mips1' for
  17458. 32-bit ABIs and 'mips3' for 64-bit ABIs).
  17459. The native Linux/GNU toolchain also supports the value 'native',
  17460. which selects the best architecture option for the host processor.
  17461. '-march=native' has no effect if GCC does not recognize the
  17462. processor.
  17463. In processor names, a final '000' can be abbreviated as 'k' (for
  17464. example, '-march=r2k'). Prefixes are optional, and 'vr' may be
  17465. written 'r'.
  17466. Names of the form 'Nf2_1' refer to processors with FPUs clocked at
  17467. half the rate of the core, names of the form 'Nf1_1' refer to
  17468. processors with FPUs clocked at the same rate as the core, and
  17469. names of the form 'Nf3_2' refer to processors with FPUs clocked a
  17470. ratio of 3:2 with respect to the core. For compatibility reasons,
  17471. 'Nf' is accepted as a synonym for 'Nf2_1' while 'Nx' and 'Bfx' are
  17472. accepted as synonyms for 'Nf1_1'.
  17473. GCC defines two macros based on the value of this option. The
  17474. first is '_MIPS_ARCH', which gives the name of target architecture,
  17475. as a string. The second has the form '_MIPS_ARCH_FOO', where FOO
  17476. is the capitalized value of '_MIPS_ARCH'. For example,
  17477. '-march=r2000' sets '_MIPS_ARCH' to '"r2000"' and defines the macro
  17478. '_MIPS_ARCH_R2000'.
  17479. Note that the '_MIPS_ARCH' macro uses the processor names given
  17480. above. In other words, it has the full prefix and does not
  17481. abbreviate '000' as 'k'. In the case of 'from-abi', the macro
  17482. names the resolved architecture (either '"mips1"' or '"mips3"').
  17483. It names the default architecture when no '-march' option is given.
  17484. '-mtune=ARCH'
  17485. Optimize for ARCH. Among other things, this option controls the
  17486. way instructions are scheduled, and the perceived cost of
  17487. arithmetic operations. The list of ARCH values is the same as for
  17488. '-march'.
  17489. When this option is not used, GCC optimizes for the processor
  17490. specified by '-march'. By using '-march' and '-mtune' together, it
  17491. is possible to generate code that runs on a family of processors,
  17492. but optimize the code for one particular member of that family.
  17493. '-mtune' defines the macros '_MIPS_TUNE' and '_MIPS_TUNE_FOO',
  17494. which work in the same way as the '-march' ones described above.
  17495. '-mips1'
  17496. Equivalent to '-march=mips1'.
  17497. '-mips2'
  17498. Equivalent to '-march=mips2'.
  17499. '-mips3'
  17500. Equivalent to '-march=mips3'.
  17501. '-mips4'
  17502. Equivalent to '-march=mips4'.
  17503. '-mips32'
  17504. Equivalent to '-march=mips32'.
  17505. '-mips32r3'
  17506. Equivalent to '-march=mips32r3'.
  17507. '-mips32r5'
  17508. Equivalent to '-march=mips32r5'.
  17509. '-mips32r6'
  17510. Equivalent to '-march=mips32r6'.
  17511. '-mips64'
  17512. Equivalent to '-march=mips64'.
  17513. '-mips64r2'
  17514. Equivalent to '-march=mips64r2'.
  17515. '-mips64r3'
  17516. Equivalent to '-march=mips64r3'.
  17517. '-mips64r5'
  17518. Equivalent to '-march=mips64r5'.
  17519. '-mips64r6'
  17520. Equivalent to '-march=mips64r6'.
  17521. '-mips16'
  17522. '-mno-mips16'
  17523. Generate (do not generate) MIPS16 code. If GCC is targeting a
  17524. MIPS32 or MIPS64 architecture, it makes use of the MIPS16e ASE.
  17525. MIPS16 code generation can also be controlled on a per-function
  17526. basis by means of 'mips16' and 'nomips16' attributes. *Note
  17527. Function Attributes::, for more information.
  17528. '-mflip-mips16'
  17529. Generate MIPS16 code on alternating functions. This option is
  17530. provided for regression testing of mixed MIPS16/non-MIPS16 code
  17531. generation, and is not intended for ordinary use in compiling user
  17532. code.
  17533. '-minterlink-compressed'
  17534. '-mno-interlink-compressed'
  17535. Require (do not require) that code using the standard
  17536. (uncompressed) MIPS ISA be link-compatible with MIPS16 and
  17537. microMIPS code, and vice versa.
  17538. For example, code using the standard ISA encoding cannot jump
  17539. directly to MIPS16 or microMIPS code; it must either use a call or
  17540. an indirect jump. '-minterlink-compressed' therefore disables
  17541. direct jumps unless GCC knows that the target of the jump is not
  17542. compressed.
  17543. '-minterlink-mips16'
  17544. '-mno-interlink-mips16'
  17545. Aliases of '-minterlink-compressed' and
  17546. '-mno-interlink-compressed'. These options predate the microMIPS
  17547. ASE and are retained for backwards compatibility.
  17548. '-mabi=32'
  17549. '-mabi=o64'
  17550. '-mabi=n32'
  17551. '-mabi=64'
  17552. '-mabi=eabi'
  17553. Generate code for the given ABI.
  17554. Note that the EABI has a 32-bit and a 64-bit variant. GCC normally
  17555. generates 64-bit code when you select a 64-bit architecture, but
  17556. you can use '-mgp32' to get 32-bit code instead.
  17557. For information about the O64 ABI, see
  17558. <http://gcc.gnu.org/projects/mipso64-abi.html>.
  17559. GCC supports a variant of the o32 ABI in which floating-point
  17560. registers are 64 rather than 32 bits wide. You can select this
  17561. combination with '-mabi=32' '-mfp64'. This ABI relies on the
  17562. 'mthc1' and 'mfhc1' instructions and is therefore only supported
  17563. for MIPS32R2, MIPS32R3 and MIPS32R5 processors.
  17564. The register assignments for arguments and return values remain the
  17565. same, but each scalar value is passed in a single 64-bit register
  17566. rather than a pair of 32-bit registers. For example, scalar
  17567. floating-point values are returned in '$f0' only, not a '$f0'/'$f1'
  17568. pair. The set of call-saved registers also remains the same in
  17569. that the even-numbered double-precision registers are saved.
  17570. Two additional variants of the o32 ABI are supported to enable a
  17571. transition from 32-bit to 64-bit registers. These are FPXX
  17572. ('-mfpxx') and FP64A ('-mfp64' '-mno-odd-spreg'). The FPXX
  17573. extension mandates that all code must execute correctly when run
  17574. using 32-bit or 64-bit registers. The code can be interlinked with
  17575. either FP32 or FP64, but not both. The FP64A extension is similar
  17576. to the FP64 extension but forbids the use of odd-numbered
  17577. single-precision registers. This can be used in conjunction with
  17578. the 'FRE' mode of FPUs in MIPS32R5 processors and allows both FP32
  17579. and FP64A code to interlink and run in the same process without
  17580. changing FPU modes.
  17581. '-mabicalls'
  17582. '-mno-abicalls'
  17583. Generate (do not generate) code that is suitable for SVR4-style
  17584. dynamic objects. '-mabicalls' is the default for SVR4-based
  17585. systems.
  17586. '-mshared'
  17587. '-mno-shared'
  17588. Generate (do not generate) code that is fully position-independent,
  17589. and that can therefore be linked into shared libraries. This
  17590. option only affects '-mabicalls'.
  17591. All '-mabicalls' code has traditionally been position-independent,
  17592. regardless of options like '-fPIC' and '-fpic'. However, as an
  17593. extension, the GNU toolchain allows executables to use absolute
  17594. accesses for locally-binding symbols. It can also use shorter GP
  17595. initialization sequences and generate direct calls to
  17596. locally-defined functions. This mode is selected by '-mno-shared'.
  17597. '-mno-shared' depends on binutils 2.16 or higher and generates
  17598. objects that can only be linked by the GNU linker. However, the
  17599. option does not affect the ABI of the final executable; it only
  17600. affects the ABI of relocatable objects. Using '-mno-shared'
  17601. generally makes executables both smaller and quicker.
  17602. '-mshared' is the default.
  17603. '-mplt'
  17604. '-mno-plt'
  17605. Assume (do not assume) that the static and dynamic linkers support
  17606. PLTs and copy relocations. This option only affects '-mno-shared
  17607. -mabicalls'. For the n64 ABI, this option has no effect without
  17608. '-msym32'.
  17609. You can make '-mplt' the default by configuring GCC with
  17610. '--with-mips-plt'. The default is '-mno-plt' otherwise.
  17611. '-mxgot'
  17612. '-mno-xgot'
  17613. Lift (do not lift) the usual restrictions on the size of the global
  17614. offset table.
  17615. GCC normally uses a single instruction to load values from the GOT.
  17616. While this is relatively efficient, it only works if the GOT is
  17617. smaller than about 64k. Anything larger causes the linker to
  17618. report an error such as:
  17619. relocation truncated to fit: R_MIPS_GOT16 foobar
  17620. If this happens, you should recompile your code with '-mxgot'.
  17621. This works with very large GOTs, although the code is also less
  17622. efficient, since it takes three instructions to fetch the value of
  17623. a global symbol.
  17624. Note that some linkers can create multiple GOTs. If you have such
  17625. a linker, you should only need to use '-mxgot' when a single object
  17626. file accesses more than 64k's worth of GOT entries. Very few do.
  17627. These options have no effect unless GCC is generating position
  17628. independent code.
  17629. '-mgp32'
  17630. Assume that general-purpose registers are 32 bits wide.
  17631. '-mgp64'
  17632. Assume that general-purpose registers are 64 bits wide.
  17633. '-mfp32'
  17634. Assume that floating-point registers are 32 bits wide.
  17635. '-mfp64'
  17636. Assume that floating-point registers are 64 bits wide.
  17637. '-mfpxx'
  17638. Do not assume the width of floating-point registers.
  17639. '-mhard-float'
  17640. Use floating-point coprocessor instructions.
  17641. '-msoft-float'
  17642. Do not use floating-point coprocessor instructions. Implement
  17643. floating-point calculations using library calls instead.
  17644. '-mno-float'
  17645. Equivalent to '-msoft-float', but additionally asserts that the
  17646. program being compiled does not perform any floating-point
  17647. operations. This option is presently supported only by some
  17648. bare-metal MIPS configurations, where it may select a special set
  17649. of libraries that lack all floating-point support (including, for
  17650. example, the floating-point 'printf' formats). If code compiled
  17651. with '-mno-float' accidentally contains floating-point operations,
  17652. it is likely to suffer a link-time or run-time failure.
  17653. '-msingle-float'
  17654. Assume that the floating-point coprocessor only supports
  17655. single-precision operations.
  17656. '-mdouble-float'
  17657. Assume that the floating-point coprocessor supports
  17658. double-precision operations. This is the default.
  17659. '-modd-spreg'
  17660. '-mno-odd-spreg'
  17661. Enable the use of odd-numbered single-precision floating-point
  17662. registers for the o32 ABI. This is the default for processors that
  17663. are known to support these registers. When using the o32 FPXX ABI,
  17664. '-mno-odd-spreg' is set by default.
  17665. '-mabs=2008'
  17666. '-mabs=legacy'
  17667. These options control the treatment of the special not-a-number
  17668. (NaN) IEEE 754 floating-point data with the 'abs.fmt' and 'neg.fmt'
  17669. machine instructions.
  17670. By default or when '-mabs=legacy' is used the legacy treatment is
  17671. selected. In this case these instructions are considered
  17672. arithmetic and avoided where correct operation is required and the
  17673. input operand might be a NaN. A longer sequence of instructions
  17674. that manipulate the sign bit of floating-point datum manually is
  17675. used instead unless the '-ffinite-math-only' option has also been
  17676. specified.
  17677. The '-mabs=2008' option selects the IEEE 754-2008 treatment. In
  17678. this case these instructions are considered non-arithmetic and
  17679. therefore operating correctly in all cases, including in particular
  17680. where the input operand is a NaN. These instructions are therefore
  17681. always used for the respective operations.
  17682. '-mnan=2008'
  17683. '-mnan=legacy'
  17684. These options control the encoding of the special not-a-number
  17685. (NaN) IEEE 754 floating-point data.
  17686. The '-mnan=legacy' option selects the legacy encoding. In this
  17687. case quiet NaNs (qNaNs) are denoted by the first bit of their
  17688. trailing significand field being 0, whereas signaling NaNs (sNaNs)
  17689. are denoted by the first bit of their trailing significand field
  17690. being 1.
  17691. The '-mnan=2008' option selects the IEEE 754-2008 encoding. In
  17692. this case qNaNs are denoted by the first bit of their trailing
  17693. significand field being 1, whereas sNaNs are denoted by the first
  17694. bit of their trailing significand field being 0.
  17695. The default is '-mnan=legacy' unless GCC has been configured with
  17696. '--with-nan=2008'.
  17697. '-mllsc'
  17698. '-mno-llsc'
  17699. Use (do not use) 'll', 'sc', and 'sync' instructions to implement
  17700. atomic memory built-in functions. When neither option is
  17701. specified, GCC uses the instructions if the target architecture
  17702. supports them.
  17703. '-mllsc' is useful if the runtime environment can emulate the
  17704. instructions and '-mno-llsc' can be useful when compiling for
  17705. nonstandard ISAs. You can make either option the default by
  17706. configuring GCC with '--with-llsc' and '--without-llsc'
  17707. respectively. '--with-llsc' is the default for some
  17708. configurations; see the installation documentation for details.
  17709. '-mdsp'
  17710. '-mno-dsp'
  17711. Use (do not use) revision 1 of the MIPS DSP ASE. *Note MIPS DSP
  17712. Built-in Functions::. This option defines the preprocessor macro
  17713. '__mips_dsp'. It also defines '__mips_dsp_rev' to 1.
  17714. '-mdspr2'
  17715. '-mno-dspr2'
  17716. Use (do not use) revision 2 of the MIPS DSP ASE. *Note MIPS DSP
  17717. Built-in Functions::. This option defines the preprocessor macros
  17718. '__mips_dsp' and '__mips_dspr2'. It also defines '__mips_dsp_rev'
  17719. to 2.
  17720. '-msmartmips'
  17721. '-mno-smartmips'
  17722. Use (do not use) the MIPS SmartMIPS ASE.
  17723. '-mpaired-single'
  17724. '-mno-paired-single'
  17725. Use (do not use) paired-single floating-point instructions. *Note
  17726. MIPS Paired-Single Support::. This option requires hardware
  17727. floating-point support to be enabled.
  17728. '-mdmx'
  17729. '-mno-mdmx'
  17730. Use (do not use) MIPS Digital Media Extension instructions. This
  17731. option can only be used when generating 64-bit code and requires
  17732. hardware floating-point support to be enabled.
  17733. '-mips3d'
  17734. '-mno-mips3d'
  17735. Use (do not use) the MIPS-3D ASE. *Note MIPS-3D Built-in
  17736. Functions::. The option '-mips3d' implies '-mpaired-single'.
  17737. '-mmicromips'
  17738. '-mno-micromips'
  17739. Generate (do not generate) microMIPS code.
  17740. MicroMIPS code generation can also be controlled on a per-function
  17741. basis by means of 'micromips' and 'nomicromips' attributes. *Note
  17742. Function Attributes::, for more information.
  17743. '-mmt'
  17744. '-mno-mt'
  17745. Use (do not use) MT Multithreading instructions.
  17746. '-mmcu'
  17747. '-mno-mcu'
  17748. Use (do not use) the MIPS MCU ASE instructions.
  17749. '-meva'
  17750. '-mno-eva'
  17751. Use (do not use) the MIPS Enhanced Virtual Addressing instructions.
  17752. '-mvirt'
  17753. '-mno-virt'
  17754. Use (do not use) the MIPS Virtualization (VZ) instructions.
  17755. '-mxpa'
  17756. '-mno-xpa'
  17757. Use (do not use) the MIPS eXtended Physical Address (XPA)
  17758. instructions.
  17759. '-mcrc'
  17760. '-mno-crc'
  17761. Use (do not use) the MIPS Cyclic Redundancy Check (CRC)
  17762. instructions.
  17763. '-mginv'
  17764. '-mno-ginv'
  17765. Use (do not use) the MIPS Global INValidate (GINV) instructions.
  17766. '-mloongson-mmi'
  17767. '-mno-loongson-mmi'
  17768. Use (do not use) the MIPS Loongson MultiMedia extensions
  17769. Instructions (MMI).
  17770. '-mloongson-ext'
  17771. '-mno-loongson-ext'
  17772. Use (do not use) the MIPS Loongson EXTensions (EXT) instructions.
  17773. '-mloongson-ext2'
  17774. '-mno-loongson-ext2'
  17775. Use (do not use) the MIPS Loongson EXTensions r2 (EXT2)
  17776. instructions.
  17777. '-mlong64'
  17778. Force 'long' types to be 64 bits wide. See '-mlong32' for an
  17779. explanation of the default and the way that the pointer size is
  17780. determined.
  17781. '-mlong32'
  17782. Force 'long', 'int', and pointer types to be 32 bits wide.
  17783. The default size of 'int's, 'long's and pointers depends on the
  17784. ABI. All the supported ABIs use 32-bit 'int's. The n64 ABI uses
  17785. 64-bit 'long's, as does the 64-bit EABI; the others use 32-bit
  17786. 'long's. Pointers are the same size as 'long's, or the same size
  17787. as integer registers, whichever is smaller.
  17788. '-msym32'
  17789. '-mno-sym32'
  17790. Assume (do not assume) that all symbols have 32-bit values,
  17791. regardless of the selected ABI. This option is useful in
  17792. combination with '-mabi=64' and '-mno-abicalls' because it allows
  17793. GCC to generate shorter and faster references to symbolic
  17794. addresses.
  17795. '-G NUM'
  17796. Put definitions of externally-visible data in a small data section
  17797. if that data is no bigger than NUM bytes. GCC can then generate
  17798. more efficient accesses to the data; see '-mgpopt' for details.
  17799. The default '-G' option depends on the configuration.
  17800. '-mlocal-sdata'
  17801. '-mno-local-sdata'
  17802. Extend (do not extend) the '-G' behavior to local data too, such as
  17803. to static variables in C. '-mlocal-sdata' is the default for all
  17804. configurations.
  17805. If the linker complains that an application is using too much small
  17806. data, you might want to try rebuilding the less
  17807. performance-critical parts with '-mno-local-sdata'. You might also
  17808. want to build large libraries with '-mno-local-sdata', so that the
  17809. libraries leave more room for the main program.
  17810. '-mextern-sdata'
  17811. '-mno-extern-sdata'
  17812. Assume (do not assume) that externally-defined data is in a small
  17813. data section if the size of that data is within the '-G' limit.
  17814. '-mextern-sdata' is the default for all configurations.
  17815. If you compile a module MOD with '-mextern-sdata' '-G NUM'
  17816. '-mgpopt', and MOD references a variable VAR that is no bigger than
  17817. NUM bytes, you must make sure that VAR is placed in a small data
  17818. section. If VAR is defined by another module, you must either
  17819. compile that module with a high-enough '-G' setting or attach a
  17820. 'section' attribute to VAR's definition. If VAR is common, you
  17821. must link the application with a high-enough '-G' setting.
  17822. The easiest way of satisfying these restrictions is to compile and
  17823. link every module with the same '-G' option. However, you may wish
  17824. to build a library that supports several different small data
  17825. limits. You can do this by compiling the library with the highest
  17826. supported '-G' setting and additionally using '-mno-extern-sdata'
  17827. to stop the library from making assumptions about
  17828. externally-defined data.
  17829. '-mgpopt'
  17830. '-mno-gpopt'
  17831. Use (do not use) GP-relative accesses for symbols that are known to
  17832. be in a small data section; see '-G', '-mlocal-sdata' and
  17833. '-mextern-sdata'. '-mgpopt' is the default for all configurations.
  17834. '-mno-gpopt' is useful for cases where the '$gp' register might not
  17835. hold the value of '_gp'. For example, if the code is part of a
  17836. library that might be used in a boot monitor, programs that call
  17837. boot monitor routines pass an unknown value in '$gp'. (In such
  17838. situations, the boot monitor itself is usually compiled with
  17839. '-G0'.)
  17840. '-mno-gpopt' implies '-mno-local-sdata' and '-mno-extern-sdata'.
  17841. '-membedded-data'
  17842. '-mno-embedded-data'
  17843. Allocate variables to the read-only data section first if possible,
  17844. then next in the small data section if possible, otherwise in data.
  17845. This gives slightly slower code than the default, but reduces the
  17846. amount of RAM required when executing, and thus may be preferred
  17847. for some embedded systems.
  17848. '-muninit-const-in-rodata'
  17849. '-mno-uninit-const-in-rodata'
  17850. Put uninitialized 'const' variables in the read-only data section.
  17851. This option is only meaningful in conjunction with
  17852. '-membedded-data'.
  17853. '-mcode-readable=SETTING'
  17854. Specify whether GCC may generate code that reads from executable
  17855. sections. There are three possible settings:
  17856. '-mcode-readable=yes'
  17857. Instructions may freely access executable sections. This is
  17858. the default setting.
  17859. '-mcode-readable=pcrel'
  17860. MIPS16 PC-relative load instructions can access executable
  17861. sections, but other instructions must not do so. This option
  17862. is useful on 4KSc and 4KSd processors when the code TLBs have
  17863. the Read Inhibit bit set. It is also useful on processors
  17864. that can be configured to have a dual instruction/data SRAM
  17865. interface and that, like the M4K, automatically redirect
  17866. PC-relative loads to the instruction RAM.
  17867. '-mcode-readable=no'
  17868. Instructions must not access executable sections. This option
  17869. can be useful on targets that are configured to have a dual
  17870. instruction/data SRAM interface but that (unlike the M4K) do
  17871. not automatically redirect PC-relative loads to the
  17872. instruction RAM.
  17873. '-msplit-addresses'
  17874. '-mno-split-addresses'
  17875. Enable (disable) use of the '%hi()' and '%lo()' assembler
  17876. relocation operators. This option has been superseded by
  17877. '-mexplicit-relocs' but is retained for backwards compatibility.
  17878. '-mexplicit-relocs'
  17879. '-mno-explicit-relocs'
  17880. Use (do not use) assembler relocation operators when dealing with
  17881. symbolic addresses. The alternative, selected by
  17882. '-mno-explicit-relocs', is to use assembler macros instead.
  17883. '-mexplicit-relocs' is the default if GCC was configured to use an
  17884. assembler that supports relocation operators.
  17885. '-mcheck-zero-division'
  17886. '-mno-check-zero-division'
  17887. Trap (do not trap) on integer division by zero.
  17888. The default is '-mcheck-zero-division'.
  17889. '-mdivide-traps'
  17890. '-mdivide-breaks'
  17891. MIPS systems check for division by zero by generating either a
  17892. conditional trap or a break instruction. Using traps results in
  17893. smaller code, but is only supported on MIPS II and later. Also,
  17894. some versions of the Linux kernel have a bug that prevents trap
  17895. from generating the proper signal ('SIGFPE'). Use '-mdivide-traps'
  17896. to allow conditional traps on architectures that support them and
  17897. '-mdivide-breaks' to force the use of breaks.
  17898. The default is usually '-mdivide-traps', but this can be overridden
  17899. at configure time using '--with-divide=breaks'. Divide-by-zero
  17900. checks can be completely disabled using '-mno-check-zero-division'.
  17901. '-mload-store-pairs'
  17902. '-mno-load-store-pairs'
  17903. Enable (disable) an optimization that pairs consecutive load or
  17904. store instructions to enable load/store bonding. This option is
  17905. enabled by default but only takes effect when the selected
  17906. architecture is known to support bonding.
  17907. '-mmemcpy'
  17908. '-mno-memcpy'
  17909. Force (do not force) the use of 'memcpy' for non-trivial block
  17910. moves. The default is '-mno-memcpy', which allows GCC to inline
  17911. most constant-sized copies.
  17912. '-mlong-calls'
  17913. '-mno-long-calls'
  17914. Disable (do not disable) use of the 'jal' instruction. Calling
  17915. functions using 'jal' is more efficient but requires the caller and
  17916. callee to be in the same 256 megabyte segment.
  17917. This option has no effect on abicalls code. The default is
  17918. '-mno-long-calls'.
  17919. '-mmad'
  17920. '-mno-mad'
  17921. Enable (disable) use of the 'mad', 'madu' and 'mul' instructions,
  17922. as provided by the R4650 ISA.
  17923. '-mimadd'
  17924. '-mno-imadd'
  17925. Enable (disable) use of the 'madd' and 'msub' integer instructions.
  17926. The default is '-mimadd' on architectures that support 'madd' and
  17927. 'msub' except for the 74k architecture where it was found to
  17928. generate slower code.
  17929. '-mfused-madd'
  17930. '-mno-fused-madd'
  17931. Enable (disable) use of the floating-point multiply-accumulate
  17932. instructions, when they are available. The default is
  17933. '-mfused-madd'.
  17934. On the R8000 CPU when multiply-accumulate instructions are used,
  17935. the intermediate product is calculated to infinite precision and is
  17936. not subject to the FCSR Flush to Zero bit. This may be undesirable
  17937. in some circumstances. On other processors the result is
  17938. numerically identical to the equivalent computation using separate
  17939. multiply, add, subtract and negate instructions.
  17940. '-nocpp'
  17941. Tell the MIPS assembler to not run its preprocessor over user
  17942. assembler files (with a '.s' suffix) when assembling them.
  17943. '-mfix-24k'
  17944. '-mno-fix-24k'
  17945. Work around the 24K E48 (lost data on stores during refill) errata.
  17946. The workarounds are implemented by the assembler rather than by
  17947. GCC.
  17948. '-mfix-r4000'
  17949. '-mno-fix-r4000'
  17950. Work around certain R4000 CPU errata:
  17951. - A double-word or a variable shift may give an incorrect result
  17952. if executed immediately after starting an integer division.
  17953. - A double-word or a variable shift may give an incorrect result
  17954. if executed while an integer multiplication is in progress.
  17955. - An integer division may give an incorrect result if started in
  17956. a delay slot of a taken branch or a jump.
  17957. '-mfix-r4400'
  17958. '-mno-fix-r4400'
  17959. Work around certain R4400 CPU errata:
  17960. - A double-word or a variable shift may give an incorrect result
  17961. if executed immediately after starting an integer division.
  17962. '-mfix-r10000'
  17963. '-mno-fix-r10000'
  17964. Work around certain R10000 errata:
  17965. - 'll'/'sc' sequences may not behave atomically on revisions
  17966. prior to 3.0. They may deadlock on revisions 2.6 and earlier.
  17967. This option can only be used if the target architecture supports
  17968. branch-likely instructions. '-mfix-r10000' is the default when
  17969. '-march=r10000' is used; '-mno-fix-r10000' is the default
  17970. otherwise.
  17971. '-mfix-r5900'
  17972. '-mno-fix-r5900'
  17973. Do not attempt to schedule the preceding instruction into the delay
  17974. slot of a branch instruction placed at the end of a short loop of
  17975. six instructions or fewer and always schedule a 'nop' instruction
  17976. there instead. The short loop bug under certain conditions causes
  17977. loops to execute only once or twice, due to a hardware bug in the
  17978. R5900 chip. The workaround is implemented by the assembler rather
  17979. than by GCC.
  17980. '-mfix-rm7000'
  17981. '-mno-fix-rm7000'
  17982. Work around the RM7000 'dmult'/'dmultu' errata. The workarounds
  17983. are implemented by the assembler rather than by GCC.
  17984. '-mfix-vr4120'
  17985. '-mno-fix-vr4120'
  17986. Work around certain VR4120 errata:
  17987. - 'dmultu' does not always produce the correct result.
  17988. - 'div' and 'ddiv' do not always produce the correct result if
  17989. one of the operands is negative.
  17990. The workarounds for the division errata rely on special functions
  17991. in 'libgcc.a'. At present, these functions are only provided by
  17992. the 'mips64vr*-elf' configurations.
  17993. Other VR4120 errata require a NOP to be inserted between certain
  17994. pairs of instructions. These errata are handled by the assembler,
  17995. not by GCC itself.
  17996. '-mfix-vr4130'
  17997. Work around the VR4130 'mflo'/'mfhi' errata. The workarounds are
  17998. implemented by the assembler rather than by GCC, although GCC
  17999. avoids using 'mflo' and 'mfhi' if the VR4130 'macc', 'macchi',
  18000. 'dmacc' and 'dmacchi' instructions are available instead.
  18001. '-mfix-sb1'
  18002. '-mno-fix-sb1'
  18003. Work around certain SB-1 CPU core errata. (This flag currently
  18004. works around the SB-1 revision 2 "F1" and "F2" floating-point
  18005. errata.)
  18006. '-mr10k-cache-barrier=SETTING'
  18007. Specify whether GCC should insert cache barriers to avoid the side
  18008. effects of speculation on R10K processors.
  18009. In common with many processors, the R10K tries to predict the
  18010. outcome of a conditional branch and speculatively executes
  18011. instructions from the "taken" branch. It later aborts these
  18012. instructions if the predicted outcome is wrong. However, on the
  18013. R10K, even aborted instructions can have side effects.
  18014. This problem only affects kernel stores and, depending on the
  18015. system, kernel loads. As an example, a speculatively-executed
  18016. store may load the target memory into cache and mark the cache line
  18017. as dirty, even if the store itself is later aborted. If a DMA
  18018. operation writes to the same area of memory before the "dirty" line
  18019. is flushed, the cached data overwrites the DMA-ed data. See the
  18020. R10K processor manual for a full description, including other
  18021. potential problems.
  18022. One workaround is to insert cache barrier instructions before every
  18023. memory access that might be speculatively executed and that might
  18024. have side effects even if aborted. '-mr10k-cache-barrier=SETTING'
  18025. controls GCC's implementation of this workaround. It assumes that
  18026. aborted accesses to any byte in the following regions does not have
  18027. side effects:
  18028. 1. the memory occupied by the current function's stack frame;
  18029. 2. the memory occupied by an incoming stack argument;
  18030. 3. the memory occupied by an object with a link-time-constant
  18031. address.
  18032. It is the kernel's responsibility to ensure that speculative
  18033. accesses to these regions are indeed safe.
  18034. If the input program contains a function declaration such as:
  18035. void foo (void);
  18036. then the implementation of 'foo' must allow 'j foo' and 'jal foo'
  18037. to be executed speculatively. GCC honors this restriction for
  18038. functions it compiles itself. It expects non-GCC functions (such
  18039. as hand-written assembly code) to do the same.
  18040. The option has three forms:
  18041. '-mr10k-cache-barrier=load-store'
  18042. Insert a cache barrier before a load or store that might be
  18043. speculatively executed and that might have side effects even
  18044. if aborted.
  18045. '-mr10k-cache-barrier=store'
  18046. Insert a cache barrier before a store that might be
  18047. speculatively executed and that might have side effects even
  18048. if aborted.
  18049. '-mr10k-cache-barrier=none'
  18050. Disable the insertion of cache barriers. This is the default
  18051. setting.
  18052. '-mflush-func=FUNC'
  18053. '-mno-flush-func'
  18054. Specifies the function to call to flush the I and D caches, or to
  18055. not call any such function. If called, the function must take the
  18056. same arguments as the common '_flush_func', that is, the address of
  18057. the memory range for which the cache is being flushed, the size of
  18058. the memory range, and the number 3 (to flush both caches). The
  18059. default depends on the target GCC was configured for, but commonly
  18060. is either '_flush_func' or '__cpu_flush'.
  18061. 'mbranch-cost=NUM'
  18062. Set the cost of branches to roughly NUM "simple" instructions.
  18063. This cost is only a heuristic and is not guaranteed to produce
  18064. consistent results across releases. A zero cost redundantly
  18065. selects the default, which is based on the '-mtune' setting.
  18066. '-mbranch-likely'
  18067. '-mno-branch-likely'
  18068. Enable or disable use of Branch Likely instructions, regardless of
  18069. the default for the selected architecture. By default, Branch
  18070. Likely instructions may be generated if they are supported by the
  18071. selected architecture. An exception is for the MIPS32 and MIPS64
  18072. architectures and processors that implement those architectures;
  18073. for those, Branch Likely instructions are not be generated by
  18074. default because the MIPS32 and MIPS64 architectures specifically
  18075. deprecate their use.
  18076. '-mcompact-branches=never'
  18077. '-mcompact-branches=optimal'
  18078. '-mcompact-branches=always'
  18079. These options control which form of branches will be generated.
  18080. The default is '-mcompact-branches=optimal'.
  18081. The '-mcompact-branches=never' option ensures that compact branch
  18082. instructions will never be generated.
  18083. The '-mcompact-branches=always' option ensures that a compact
  18084. branch instruction will be generated if available. If a compact
  18085. branch instruction is not available, a delay slot form of the
  18086. branch will be used instead.
  18087. This option is supported from MIPS Release 6 onwards.
  18088. The '-mcompact-branches=optimal' option will cause a delay slot
  18089. branch to be used if one is available in the current ISA and the
  18090. delay slot is successfully filled. If the delay slot is not
  18091. filled, a compact branch will be chosen if one is available.
  18092. '-mfp-exceptions'
  18093. '-mno-fp-exceptions'
  18094. Specifies whether FP exceptions are enabled. This affects how FP
  18095. instructions are scheduled for some processors. The default is
  18096. that FP exceptions are enabled.
  18097. For instance, on the SB-1, if FP exceptions are disabled, and we
  18098. are emitting 64-bit code, then we can use both FP pipes.
  18099. Otherwise, we can only use one FP pipe.
  18100. '-mvr4130-align'
  18101. '-mno-vr4130-align'
  18102. The VR4130 pipeline is two-way superscalar, but can only issue two
  18103. instructions together if the first one is 8-byte aligned. When
  18104. this option is enabled, GCC aligns pairs of instructions that it
  18105. thinks should execute in parallel.
  18106. This option only has an effect when optimizing for the VR4130. It
  18107. normally makes code faster, but at the expense of making it bigger.
  18108. It is enabled by default at optimization level '-O3'.
  18109. '-msynci'
  18110. '-mno-synci'
  18111. Enable (disable) generation of 'synci' instructions on
  18112. architectures that support it. The 'synci' instructions (if
  18113. enabled) are generated when '__builtin___clear_cache' is compiled.
  18114. This option defaults to '-mno-synci', but the default can be
  18115. overridden by configuring GCC with '--with-synci'.
  18116. When compiling code for single processor systems, it is generally
  18117. safe to use 'synci'. However, on many multi-core (SMP) systems, it
  18118. does not invalidate the instruction caches on all cores and may
  18119. lead to undefined behavior.
  18120. '-mrelax-pic-calls'
  18121. '-mno-relax-pic-calls'
  18122. Try to turn PIC calls that are normally dispatched via register
  18123. '$25' into direct calls. This is only possible if the linker can
  18124. resolve the destination at link time and if the destination is
  18125. within range for a direct call.
  18126. '-mrelax-pic-calls' is the default if GCC was configured to use an
  18127. assembler and a linker that support the '.reloc' assembly directive
  18128. and '-mexplicit-relocs' is in effect. With '-mno-explicit-relocs',
  18129. this optimization can be performed by the assembler and the linker
  18130. alone without help from the compiler.
  18131. '-mmcount-ra-address'
  18132. '-mno-mcount-ra-address'
  18133. Emit (do not emit) code that allows '_mcount' to modify the calling
  18134. function's return address. When enabled, this option extends the
  18135. usual '_mcount' interface with a new RA-ADDRESS parameter, which
  18136. has type 'intptr_t *' and is passed in register '$12'. '_mcount'
  18137. can then modify the return address by doing both of the following:
  18138. * Returning the new address in register '$31'.
  18139. * Storing the new address in '*RA-ADDRESS', if RA-ADDRESS is
  18140. nonnull.
  18141. The default is '-mno-mcount-ra-address'.
  18142. '-mframe-header-opt'
  18143. '-mno-frame-header-opt'
  18144. Enable (disable) frame header optimization in the o32 ABI. When
  18145. using the o32 ABI, calling functions will allocate 16 bytes on the
  18146. stack for the called function to write out register arguments.
  18147. When enabled, this optimization will suppress the allocation of the
  18148. frame header if it can be determined that it is unused.
  18149. This optimization is off by default at all optimization levels.
  18150. '-mlxc1-sxc1'
  18151. '-mno-lxc1-sxc1'
  18152. When applicable, enable (disable) the generation of 'lwxc1',
  18153. 'swxc1', 'ldxc1', 'sdxc1' instructions. Enabled by default.
  18154. '-mmadd4'
  18155. '-mno-madd4'
  18156. When applicable, enable (disable) the generation of 4-operand
  18157. 'madd.s', 'madd.d' and related instructions. Enabled by default.
  18158. 
  18159. File: gcc.info, Node: MMIX Options, Next: MN10300 Options, Prev: MIPS Options, Up: Submodel Options
  18160. 3.19.30 MMIX Options
  18161. --------------------
  18162. These options are defined for the MMIX:
  18163. '-mlibfuncs'
  18164. '-mno-libfuncs'
  18165. Specify that intrinsic library functions are being compiled,
  18166. passing all values in registers, no matter the size.
  18167. '-mepsilon'
  18168. '-mno-epsilon'
  18169. Generate floating-point comparison instructions that compare with
  18170. respect to the 'rE' epsilon register.
  18171. '-mabi=mmixware'
  18172. '-mabi=gnu'
  18173. Generate code that passes function parameters and return values
  18174. that (in the called function) are seen as registers '$0' and up, as
  18175. opposed to the GNU ABI which uses global registers '$231' and up.
  18176. '-mzero-extend'
  18177. '-mno-zero-extend'
  18178. When reading data from memory in sizes shorter than 64 bits, use
  18179. (do not use) zero-extending load instructions by default, rather
  18180. than sign-extending ones.
  18181. '-mknuthdiv'
  18182. '-mno-knuthdiv'
  18183. Make the result of a division yielding a remainder have the same
  18184. sign as the divisor. With the default, '-mno-knuthdiv', the sign
  18185. of the remainder follows the sign of the dividend. Both methods
  18186. are arithmetically valid, the latter being almost exclusively used.
  18187. '-mtoplevel-symbols'
  18188. '-mno-toplevel-symbols'
  18189. Prepend (do not prepend) a ':' to all global symbols, so the
  18190. assembly code can be used with the 'PREFIX' assembly directive.
  18191. '-melf'
  18192. Generate an executable in the ELF format, rather than the default
  18193. 'mmo' format used by the 'mmix' simulator.
  18194. '-mbranch-predict'
  18195. '-mno-branch-predict'
  18196. Use (do not use) the probable-branch instructions, when static
  18197. branch prediction indicates a probable branch.
  18198. '-mbase-addresses'
  18199. '-mno-base-addresses'
  18200. Generate (do not generate) code that uses _base addresses_. Using
  18201. a base address automatically generates a request (handled by the
  18202. assembler and the linker) for a constant to be set up in a global
  18203. register. The register is used for one or more base address
  18204. requests within the range 0 to 255 from the value held in the
  18205. register. The generally leads to short and fast code, but the
  18206. number of different data items that can be addressed is limited.
  18207. This means that a program that uses lots of static data may require
  18208. '-mno-base-addresses'.
  18209. '-msingle-exit'
  18210. '-mno-single-exit'
  18211. Force (do not force) generated code to have a single exit point in
  18212. each function.
  18213. 
  18214. File: gcc.info, Node: MN10300 Options, Next: Moxie Options, Prev: MMIX Options, Up: Submodel Options
  18215. 3.19.31 MN10300 Options
  18216. -----------------------
  18217. These '-m' options are defined for Matsushita MN10300 architectures:
  18218. '-mmult-bug'
  18219. Generate code to avoid bugs in the multiply instructions for the
  18220. MN10300 processors. This is the default.
  18221. '-mno-mult-bug'
  18222. Do not generate code to avoid bugs in the multiply instructions for
  18223. the MN10300 processors.
  18224. '-mam33'
  18225. Generate code using features specific to the AM33 processor.
  18226. '-mno-am33'
  18227. Do not generate code using features specific to the AM33 processor.
  18228. This is the default.
  18229. '-mam33-2'
  18230. Generate code using features specific to the AM33/2.0 processor.
  18231. '-mam34'
  18232. Generate code using features specific to the AM34 processor.
  18233. '-mtune=CPU-TYPE'
  18234. Use the timing characteristics of the indicated CPU type when
  18235. scheduling instructions. This does not change the targeted
  18236. processor type. The CPU type must be one of 'mn10300', 'am33',
  18237. 'am33-2' or 'am34'.
  18238. '-mreturn-pointer-on-d0'
  18239. When generating a function that returns a pointer, return the
  18240. pointer in both 'a0' and 'd0'. Otherwise, the pointer is returned
  18241. only in 'a0', and attempts to call such functions without a
  18242. prototype result in errors. Note that this option is on by
  18243. default; use '-mno-return-pointer-on-d0' to disable it.
  18244. '-mno-crt0'
  18245. Do not link in the C run-time initialization object file.
  18246. '-mrelax'
  18247. Indicate to the linker that it should perform a relaxation
  18248. optimization pass to shorten branches, calls and absolute memory
  18249. addresses. This option only has an effect when used on the command
  18250. line for the final link step.
  18251. This option makes symbolic debugging impossible.
  18252. '-mliw'
  18253. Allow the compiler to generate _Long Instruction Word_ instructions
  18254. if the target is the 'AM33' or later. This is the default. This
  18255. option defines the preprocessor macro '__LIW__'.
  18256. '-mno-liw'
  18257. Do not allow the compiler to generate _Long Instruction Word_
  18258. instructions. This option defines the preprocessor macro
  18259. '__NO_LIW__'.
  18260. '-msetlb'
  18261. Allow the compiler to generate the _SETLB_ and _Lcc_ instructions
  18262. if the target is the 'AM33' or later. This is the default. This
  18263. option defines the preprocessor macro '__SETLB__'.
  18264. '-mno-setlb'
  18265. Do not allow the compiler to generate _SETLB_ or _Lcc_
  18266. instructions. This option defines the preprocessor macro
  18267. '__NO_SETLB__'.
  18268. 
  18269. File: gcc.info, Node: Moxie Options, Next: MSP430 Options, Prev: MN10300 Options, Up: Submodel Options
  18270. 3.19.32 Moxie Options
  18271. ---------------------
  18272. '-meb'
  18273. Generate big-endian code. This is the default for 'moxie-*-*'
  18274. configurations.
  18275. '-mel'
  18276. Generate little-endian code.
  18277. '-mmul.x'
  18278. Generate mul.x and umul.x instructions. This is the default for
  18279. 'moxiebox-*-*' configurations.
  18280. '-mno-crt0'
  18281. Do not link in the C run-time initialization object file.
  18282. 
  18283. File: gcc.info, Node: MSP430 Options, Next: NDS32 Options, Prev: Moxie Options, Up: Submodel Options
  18284. 3.19.33 MSP430 Options
  18285. ----------------------
  18286. These options are defined for the MSP430:
  18287. '-masm-hex'
  18288. Force assembly output to always use hex constants. Normally such
  18289. constants are signed decimals, but this option is available for
  18290. testsuite and/or aesthetic purposes.
  18291. '-mmcu='
  18292. Select the MCU to target. This is used to create a C preprocessor
  18293. symbol based upon the MCU name, converted to upper case and pre-
  18294. and post-fixed with '__'. This in turn is used by the 'msp430.h'
  18295. header file to select an MCU-specific supplementary header file.
  18296. The option also sets the ISA to use. If the MCU name is one that
  18297. is known to only support the 430 ISA then that is selected,
  18298. otherwise the 430X ISA is selected. A generic MCU name of 'msp430'
  18299. can also be used to select the 430 ISA. Similarly the generic
  18300. 'msp430x' MCU name selects the 430X ISA.
  18301. In addition an MCU-specific linker script is added to the linker
  18302. command line. The script's name is the name of the MCU with '.ld'
  18303. appended. Thus specifying '-mmcu=xxx' on the 'gcc' command line
  18304. defines the C preprocessor symbol '__XXX__' and cause the linker to
  18305. search for a script called 'xxx.ld'.
  18306. The ISA and hardware multiply supported for the different MCUs is
  18307. hard-coded into GCC. However, an external 'devices.csv' file can be
  18308. used to extend device support beyond those that have been
  18309. hard-coded.
  18310. GCC searches for the 'devices.csv' file using the following methods
  18311. in the given precedence order, where the first method takes
  18312. precendence over the second which takes precedence over the third.
  18313. Include path specified with '-I' and '-L'
  18314. 'devices.csv' will be searched for in each of the directories
  18315. specified by include paths and linker library search paths.
  18316. Path specified by the environment variable 'MSP430_GCC_INCLUDE_DIR'
  18317. Define the value of the global environment variable
  18318. 'MSP430_GCC_INCLUDE_DIR' to the full path to the directory
  18319. containing devices.csv, and GCC will search this directory for
  18320. devices.csv. If devices.csv is found, this directory will
  18321. also be registered as an include path, and linker library
  18322. path. Header files and linker scripts in this directory can
  18323. therefore be used without manually specifying '-I' and '-L' on
  18324. the command line.
  18325. The 'msp430-elf{,bare}/include/devices' directory
  18326. Finally, GCC will examine 'msp430-elf{,bare}/include/devices'
  18327. from the toolchain root directory. This directory does not
  18328. exist in a default installation, but if the user has created
  18329. it and copied 'devices.csv' there, then the MCU data will be
  18330. read. As above, this directory will also be registered as an
  18331. include path, and linker library path.
  18332. If none of the above search methods find 'devices.csv', then the
  18333. hard-coded MCU data is used.
  18334. '-mwarn-mcu'
  18335. '-mno-warn-mcu'
  18336. This option enables or disables warnings about conflicts between
  18337. the MCU name specified by the '-mmcu' option and the ISA set by the
  18338. '-mcpu' option and/or the hardware multiply support set by the
  18339. '-mhwmult' option. It also toggles warnings about unrecognized MCU
  18340. names. This option is on by default.
  18341. '-mcpu='
  18342. Specifies the ISA to use. Accepted values are 'msp430', 'msp430x'
  18343. and 'msp430xv2'. This option is deprecated. The '-mmcu=' option
  18344. should be used to select the ISA.
  18345. '-msim'
  18346. Link to the simulator runtime libraries and linker script.
  18347. Overrides any scripts that would be selected by the '-mmcu='
  18348. option.
  18349. '-mlarge'
  18350. Use large-model addressing (20-bit pointers, 32-bit 'size_t').
  18351. '-msmall'
  18352. Use small-model addressing (16-bit pointers, 16-bit 'size_t').
  18353. '-mrelax'
  18354. This option is passed to the assembler and linker, and allows the
  18355. linker to perform certain optimizations that cannot be done until
  18356. the final link.
  18357. 'mhwmult='
  18358. Describes the type of hardware multiply supported by the target.
  18359. Accepted values are 'none' for no hardware multiply, '16bit' for
  18360. the original 16-bit-only multiply supported by early MCUs. '32bit'
  18361. for the 16/32-bit multiply supported by later MCUs and 'f5series'
  18362. for the 16/32-bit multiply supported by F5-series MCUs. A value of
  18363. 'auto' can also be given. This tells GCC to deduce the hardware
  18364. multiply support based upon the MCU name provided by the '-mmcu'
  18365. option. If no '-mmcu' option is specified or if the MCU name is
  18366. not recognized then no hardware multiply support is assumed.
  18367. 'auto' is the default setting.
  18368. Hardware multiplies are normally performed by calling a library
  18369. routine. This saves space in the generated code. When compiling
  18370. at '-O3' or higher however the hardware multiplier is invoked
  18371. inline. This makes for bigger, but faster code.
  18372. The hardware multiply routines disable interrupts whilst running
  18373. and restore the previous interrupt state when they finish. This
  18374. makes them safe to use inside interrupt handlers as well as in
  18375. normal code.
  18376. '-minrt'
  18377. Enable the use of a minimum runtime environment - no static
  18378. initializers or constructors. This is intended for
  18379. memory-constrained devices. The compiler includes special symbols
  18380. in some objects that tell the linker and runtime which code
  18381. fragments are required.
  18382. '-mtiny-printf'
  18383. Enable reduced code size 'printf' and 'puts' library functions.
  18384. The 'tiny' implementations of these functions are not reentrant, so
  18385. must be used with caution in multi-threaded applications.
  18386. Support for streams has been removed and the string to be printed
  18387. will always be sent to stdout via the 'write' syscall. The string
  18388. is not buffered before it is sent to write.
  18389. This option requires Newlib Nano IO, so GCC must be configured with
  18390. '--enable-newlib-nano-formatted-io'.
  18391. '-mcode-region='
  18392. '-mdata-region='
  18393. These options tell the compiler where to place functions and data
  18394. that do not have one of the 'lower', 'upper', 'either' or 'section'
  18395. attributes. Possible values are 'lower', 'upper', 'either' or
  18396. 'any'. The first three behave like the corresponding attribute.
  18397. The fourth possible value - 'any' - is the default. It leaves
  18398. placement entirely up to the linker script and how it assigns the
  18399. standard sections ('.text', '.data', etc) to the memory regions.
  18400. '-msilicon-errata='
  18401. This option passes on a request to assembler to enable the fixes
  18402. for the named silicon errata.
  18403. '-msilicon-errata-warn='
  18404. This option passes on a request to the assembler to enable warning
  18405. messages when a silicon errata might need to be applied.
  18406. '-mwarn-devices-csv'
  18407. '-mno-warn-devices-csv'
  18408. Warn if 'devices.csv' is not found or there are problem parsing it
  18409. (default: on).
  18410. 
  18411. File: gcc.info, Node: NDS32 Options, Next: Nios II Options, Prev: MSP430 Options, Up: Submodel Options
  18412. 3.19.34 NDS32 Options
  18413. ---------------------
  18414. These options are defined for NDS32 implementations:
  18415. '-mbig-endian'
  18416. Generate code in big-endian mode.
  18417. '-mlittle-endian'
  18418. Generate code in little-endian mode.
  18419. '-mreduced-regs'
  18420. Use reduced-set registers for register allocation.
  18421. '-mfull-regs'
  18422. Use full-set registers for register allocation.
  18423. '-mcmov'
  18424. Generate conditional move instructions.
  18425. '-mno-cmov'
  18426. Do not generate conditional move instructions.
  18427. '-mext-perf'
  18428. Generate performance extension instructions.
  18429. '-mno-ext-perf'
  18430. Do not generate performance extension instructions.
  18431. '-mext-perf2'
  18432. Generate performance extension 2 instructions.
  18433. '-mno-ext-perf2'
  18434. Do not generate performance extension 2 instructions.
  18435. '-mext-string'
  18436. Generate string extension instructions.
  18437. '-mno-ext-string'
  18438. Do not generate string extension instructions.
  18439. '-mv3push'
  18440. Generate v3 push25/pop25 instructions.
  18441. '-mno-v3push'
  18442. Do not generate v3 push25/pop25 instructions.
  18443. '-m16-bit'
  18444. Generate 16-bit instructions.
  18445. '-mno-16-bit'
  18446. Do not generate 16-bit instructions.
  18447. '-misr-vector-size=NUM'
  18448. Specify the size of each interrupt vector, which must be 4 or 16.
  18449. '-mcache-block-size=NUM'
  18450. Specify the size of each cache block, which must be a power of 2
  18451. between 4 and 512.
  18452. '-march=ARCH'
  18453. Specify the name of the target architecture.
  18454. '-mcmodel=CODE-MODEL'
  18455. Set the code model to one of
  18456. 'small'
  18457. All the data and read-only data segments must be within 512KB
  18458. addressing space. The text segment must be within 16MB
  18459. addressing space.
  18460. 'medium'
  18461. The data segment must be within 512KB while the read-only data
  18462. segment can be within 4GB addressing space. The text segment
  18463. should be still within 16MB addressing space.
  18464. 'large'
  18465. All the text and data segments can be within 4GB addressing
  18466. space.
  18467. '-mctor-dtor'
  18468. Enable constructor/destructor feature.
  18469. '-mrelax'
  18470. Guide linker to relax instructions.
  18471. 
  18472. File: gcc.info, Node: Nios II Options, Next: Nvidia PTX Options, Prev: NDS32 Options, Up: Submodel Options
  18473. 3.19.35 Nios II Options
  18474. -----------------------
  18475. These are the options defined for the Altera Nios II processor.
  18476. '-G NUM'
  18477. Put global and static objects less than or equal to NUM bytes into
  18478. the small data or BSS sections instead of the normal data or BSS
  18479. sections. The default value of NUM is 8.
  18480. '-mgpopt=OPTION'
  18481. '-mgpopt'
  18482. '-mno-gpopt'
  18483. Generate (do not generate) GP-relative accesses. The following
  18484. OPTION names are recognized:
  18485. 'none'
  18486. Do not generate GP-relative accesses.
  18487. 'local'
  18488. Generate GP-relative accesses for small data objects that are
  18489. not external, weak, or uninitialized common symbols. Also use
  18490. GP-relative addressing for objects that have been explicitly
  18491. placed in a small data section via a 'section' attribute.
  18492. 'global'
  18493. As for 'local', but also generate GP-relative accesses for
  18494. small data objects that are external, weak, or common. If you
  18495. use this option, you must ensure that all parts of your
  18496. program (including libraries) are compiled with the same '-G'
  18497. setting.
  18498. 'data'
  18499. Generate GP-relative accesses for all data objects in the
  18500. program. If you use this option, the entire data and BSS
  18501. segments of your program must fit in 64K of memory and you
  18502. must use an appropriate linker script to allocate them within
  18503. the addressable range of the global pointer.
  18504. 'all'
  18505. Generate GP-relative addresses for function pointers as well
  18506. as data pointers. If you use this option, the entire text,
  18507. data, and BSS segments of your program must fit in 64K of
  18508. memory and you must use an appropriate linker script to
  18509. allocate them within the addressable range of the global
  18510. pointer.
  18511. '-mgpopt' is equivalent to '-mgpopt=local', and '-mno-gpopt' is
  18512. equivalent to '-mgpopt=none'.
  18513. The default is '-mgpopt' except when '-fpic' or '-fPIC' is
  18514. specified to generate position-independent code. Note that the
  18515. Nios II ABI does not permit GP-relative accesses from shared
  18516. libraries.
  18517. You may need to specify '-mno-gpopt' explicitly when building
  18518. programs that include large amounts of small data, including large
  18519. GOT data sections. In this case, the 16-bit offset for GP-relative
  18520. addressing may not be large enough to allow access to the entire
  18521. small data section.
  18522. '-mgprel-sec=REGEXP'
  18523. This option specifies additional section names that can be accessed
  18524. via GP-relative addressing. It is most useful in conjunction with
  18525. 'section' attributes on variable declarations (*note Common
  18526. Variable Attributes::) and a custom linker script. The REGEXP is a
  18527. POSIX Extended Regular Expression.
  18528. This option does not affect the behavior of the '-G' option, and
  18529. the specified sections are in addition to the standard '.sdata' and
  18530. '.sbss' small-data sections that are recognized by '-mgpopt'.
  18531. '-mr0rel-sec=REGEXP'
  18532. This option specifies names of sections that can be accessed via a
  18533. 16-bit offset from 'r0'; that is, in the low 32K or high 32K of the
  18534. 32-bit address space. It is most useful in conjunction with
  18535. 'section' attributes on variable declarations (*note Common
  18536. Variable Attributes::) and a custom linker script. The REGEXP is a
  18537. POSIX Extended Regular Expression.
  18538. In contrast to the use of GP-relative addressing for small data,
  18539. zero-based addressing is never generated by default and there are
  18540. no conventional section names used in standard linker scripts for
  18541. sections in the low or high areas of memory.
  18542. '-mel'
  18543. '-meb'
  18544. Generate little-endian (default) or big-endian (experimental) code,
  18545. respectively.
  18546. '-march=ARCH'
  18547. This specifies the name of the target Nios II architecture. GCC
  18548. uses this name to determine what kind of instructions it can emit
  18549. when generating assembly code. Permissible names are: 'r1', 'r2'.
  18550. The preprocessor macro '__nios2_arch__' is available to programs,
  18551. with value 1 or 2, indicating the targeted ISA level.
  18552. '-mbypass-cache'
  18553. '-mno-bypass-cache'
  18554. Force all load and store instructions to always bypass cache by
  18555. using I/O variants of the instructions. The default is not to
  18556. bypass the cache.
  18557. '-mno-cache-volatile'
  18558. '-mcache-volatile'
  18559. Volatile memory access bypass the cache using the I/O variants of
  18560. the load and store instructions. The default is not to bypass the
  18561. cache.
  18562. '-mno-fast-sw-div'
  18563. '-mfast-sw-div'
  18564. Do not use table-based fast divide for small numbers. The default
  18565. is to use the fast divide at '-O3' and above.
  18566. '-mno-hw-mul'
  18567. '-mhw-mul'
  18568. '-mno-hw-mulx'
  18569. '-mhw-mulx'
  18570. '-mno-hw-div'
  18571. '-mhw-div'
  18572. Enable or disable emitting 'mul', 'mulx' and 'div' family of
  18573. instructions by the compiler. The default is to emit 'mul' and not
  18574. emit 'div' and 'mulx'.
  18575. '-mbmx'
  18576. '-mno-bmx'
  18577. '-mcdx'
  18578. '-mno-cdx'
  18579. Enable or disable generation of Nios II R2 BMX (bit manipulation)
  18580. and CDX (code density) instructions. Enabling these instructions
  18581. also requires '-march=r2'. Since these instructions are optional
  18582. extensions to the R2 architecture, the default is not to emit them.
  18583. '-mcustom-INSN=N'
  18584. '-mno-custom-INSN'
  18585. Each '-mcustom-INSN=N' option enables use of a custom instruction
  18586. with encoding N when generating code that uses INSN. For example,
  18587. '-mcustom-fadds=253' generates custom instruction 253 for
  18588. single-precision floating-point add operations instead of the
  18589. default behavior of using a library call.
  18590. The following values of INSN are supported. Except as otherwise
  18591. noted, floating-point operations are expected to be implemented
  18592. with normal IEEE 754 semantics and correspond directly to the C
  18593. operators or the equivalent GCC built-in functions (*note Other
  18594. Builtins::).
  18595. Single-precision floating point:
  18596. 'fadds', 'fsubs', 'fdivs', 'fmuls'
  18597. Binary arithmetic operations.
  18598. 'fnegs'
  18599. Unary negation.
  18600. 'fabss'
  18601. Unary absolute value.
  18602. 'fcmpeqs', 'fcmpges', 'fcmpgts', 'fcmples', 'fcmplts', 'fcmpnes'
  18603. Comparison operations.
  18604. 'fmins', 'fmaxs'
  18605. Floating-point minimum and maximum. These instructions are
  18606. only generated if '-ffinite-math-only' is specified.
  18607. 'fsqrts'
  18608. Unary square root operation.
  18609. 'fcoss', 'fsins', 'ftans', 'fatans', 'fexps', 'flogs'
  18610. Floating-point trigonometric and exponential functions. These
  18611. instructions are only generated if
  18612. '-funsafe-math-optimizations' is also specified.
  18613. Double-precision floating point:
  18614. 'faddd', 'fsubd', 'fdivd', 'fmuld'
  18615. Binary arithmetic operations.
  18616. 'fnegd'
  18617. Unary negation.
  18618. 'fabsd'
  18619. Unary absolute value.
  18620. 'fcmpeqd', 'fcmpged', 'fcmpgtd', 'fcmpled', 'fcmpltd', 'fcmpned'
  18621. Comparison operations.
  18622. 'fmind', 'fmaxd'
  18623. Double-precision minimum and maximum. These instructions are
  18624. only generated if '-ffinite-math-only' is specified.
  18625. 'fsqrtd'
  18626. Unary square root operation.
  18627. 'fcosd', 'fsind', 'ftand', 'fatand', 'fexpd', 'flogd'
  18628. Double-precision trigonometric and exponential functions.
  18629. These instructions are only generated if
  18630. '-funsafe-math-optimizations' is also specified.
  18631. Conversions:
  18632. 'fextsd'
  18633. Conversion from single precision to double precision.
  18634. 'ftruncds'
  18635. Conversion from double precision to single precision.
  18636. 'fixsi', 'fixsu', 'fixdi', 'fixdu'
  18637. Conversion from floating point to signed or unsigned integer
  18638. types, with truncation towards zero.
  18639. 'round'
  18640. Conversion from single-precision floating point to signed
  18641. integer, rounding to the nearest integer and ties away from
  18642. zero. This corresponds to the '__builtin_lroundf' function
  18643. when '-fno-math-errno' is used.
  18644. 'floatis', 'floatus', 'floatid', 'floatud'
  18645. Conversion from signed or unsigned integer types to
  18646. floating-point types.
  18647. In addition, all of the following transfer instructions for
  18648. internal registers X and Y must be provided to use any of the
  18649. double-precision floating-point instructions. Custom instructions
  18650. taking two double-precision source operands expect the first
  18651. operand in the 64-bit register X. The other operand (or only
  18652. operand of a unary operation) is given to the custom arithmetic
  18653. instruction with the least significant half in source register SRC1
  18654. and the most significant half in SRC2. A custom instruction that
  18655. returns a double-precision result returns the most significant 32
  18656. bits in the destination register and the other half in 32-bit
  18657. register Y. GCC automatically generates the necessary code
  18658. sequences to write register X and/or read register Y when
  18659. double-precision floating-point instructions are used.
  18660. 'fwrx'
  18661. Write SRC1 into the least significant half of X and SRC2 into
  18662. the most significant half of X.
  18663. 'fwry'
  18664. Write SRC1 into Y.
  18665. 'frdxhi', 'frdxlo'
  18666. Read the most or least (respectively) significant half of X
  18667. and store it in DEST.
  18668. 'frdy'
  18669. Read the value of Y and store it into DEST.
  18670. Note that you can gain more local control over generation of Nios
  18671. II custom instructions by using the 'target("custom-INSN=N")' and
  18672. 'target("no-custom-INSN")' function attributes (*note Function
  18673. Attributes::) or pragmas (*note Function Specific Option
  18674. Pragmas::).
  18675. '-mcustom-fpu-cfg=NAME'
  18676. This option enables a predefined, named set of custom instruction
  18677. encodings (see '-mcustom-INSN' above). Currently, the following
  18678. sets are defined:
  18679. '-mcustom-fpu-cfg=60-1' is equivalent to:
  18680. -mcustom-fmuls=252
  18681. -mcustom-fadds=253
  18682. -mcustom-fsubs=254
  18683. -fsingle-precision-constant
  18684. '-mcustom-fpu-cfg=60-2' is equivalent to:
  18685. -mcustom-fmuls=252
  18686. -mcustom-fadds=253
  18687. -mcustom-fsubs=254
  18688. -mcustom-fdivs=255
  18689. -fsingle-precision-constant
  18690. '-mcustom-fpu-cfg=72-3' is equivalent to:
  18691. -mcustom-floatus=243
  18692. -mcustom-fixsi=244
  18693. -mcustom-floatis=245
  18694. -mcustom-fcmpgts=246
  18695. -mcustom-fcmples=249
  18696. -mcustom-fcmpeqs=250
  18697. -mcustom-fcmpnes=251
  18698. -mcustom-fmuls=252
  18699. -mcustom-fadds=253
  18700. -mcustom-fsubs=254
  18701. -mcustom-fdivs=255
  18702. -fsingle-precision-constant
  18703. Custom instruction assignments given by individual '-mcustom-INSN='
  18704. options override those given by '-mcustom-fpu-cfg=', regardless of
  18705. the order of the options on the command line.
  18706. Note that you can gain more local control over selection of a FPU
  18707. configuration by using the 'target("custom-fpu-cfg=NAME")' function
  18708. attribute (*note Function Attributes::) or pragma (*note Function
  18709. Specific Option Pragmas::).
  18710. These additional '-m' options are available for the Altera Nios II ELF
  18711. (bare-metal) target:
  18712. '-mhal'
  18713. Link with HAL BSP. This suppresses linking with the GCC-provided C
  18714. runtime startup and termination code, and is typically used in
  18715. conjunction with '-msys-crt0=' to specify the location of the
  18716. alternate startup code provided by the HAL BSP.
  18717. '-msmallc'
  18718. Link with a limited version of the C library, '-lsmallc', rather
  18719. than Newlib.
  18720. '-msys-crt0=STARTFILE'
  18721. STARTFILE is the file name of the startfile (crt0) to use when
  18722. linking. This option is only useful in conjunction with '-mhal'.
  18723. '-msys-lib=SYSTEMLIB'
  18724. SYSTEMLIB is the library name of the library that provides
  18725. low-level system calls required by the C library, e.g. 'read' and
  18726. 'write'. This option is typically used to link with a library
  18727. provided by a HAL BSP.
  18728. 
  18729. File: gcc.info, Node: Nvidia PTX Options, Next: OpenRISC Options, Prev: Nios II Options, Up: Submodel Options
  18730. 3.19.36 Nvidia PTX Options
  18731. --------------------------
  18732. These options are defined for Nvidia PTX:
  18733. '-m32'
  18734. '-m64'
  18735. Generate code for 32-bit or 64-bit ABI.
  18736. '-misa=ISA-STRING'
  18737. Generate code for given the specified PTX ISA (e.g. 'sm_35'). ISA
  18738. strings must be lower-case. Valid ISA strings include 'sm_30' and
  18739. 'sm_35'. The default ISA is sm_30.
  18740. '-mmainkernel'
  18741. Link in code for a __main kernel. This is for stand-alone instead
  18742. of offloading execution.
  18743. '-moptimize'
  18744. Apply partitioned execution optimizations. This is the default
  18745. when any level of optimization is selected.
  18746. '-msoft-stack'
  18747. Generate code that does not use '.local' memory directly for stack
  18748. storage. Instead, a per-warp stack pointer is maintained
  18749. explicitly. This enables variable-length stack allocation (with
  18750. variable-length arrays or 'alloca'), and when global memory is used
  18751. for underlying storage, makes it possible to access automatic
  18752. variables from other threads, or with atomic instructions. This
  18753. code generation variant is used for OpenMP offloading, but the
  18754. option is exposed on its own for the purpose of testing the
  18755. compiler; to generate code suitable for linking into programs using
  18756. OpenMP offloading, use option '-mgomp'.
  18757. '-muniform-simt'
  18758. Switch to code generation variant that allows to execute all
  18759. threads in each warp, while maintaining memory state and side
  18760. effects as if only one thread in each warp was active outside of
  18761. OpenMP SIMD regions. All atomic operations and calls to runtime
  18762. (malloc, free, vprintf) are conditionally executed (iff current
  18763. lane index equals the master lane index), and the register being
  18764. assigned is copied via a shuffle instruction from the master lane.
  18765. Outside of SIMD regions lane 0 is the master; inside, each thread
  18766. sees itself as the master. Shared memory array 'int __nvptx_uni[]'
  18767. stores all-zeros or all-ones bitmasks for each warp, indicating
  18768. current mode (0 outside of SIMD regions). Each thread can
  18769. bitwise-and the bitmask at position 'tid.y' with current lane index
  18770. to compute the master lane index.
  18771. '-mgomp'
  18772. Generate code for use in OpenMP offloading: enables '-msoft-stack'
  18773. and '-muniform-simt' options, and selects corresponding multilib
  18774. variant.
  18775. 
  18776. File: gcc.info, Node: OpenRISC Options, Next: PDP-11 Options, Prev: Nvidia PTX Options, Up: Submodel Options
  18777. 3.19.37 OpenRISC Options
  18778. ------------------------
  18779. These options are defined for OpenRISC:
  18780. '-mboard=NAME'
  18781. Configure a board specific runtime. This will be passed to the
  18782. linker for newlib board library linking. The default is 'or1ksim'.
  18783. '-mnewlib'
  18784. This option is ignored; it is for compatibility purposes only.
  18785. This used to select linker and preprocessor options for use with
  18786. newlib.
  18787. '-msoft-div'
  18788. '-mhard-div'
  18789. Select software or hardware divide ('l.div', 'l.divu')
  18790. instructions. This default is hardware divide.
  18791. '-msoft-mul'
  18792. '-mhard-mul'
  18793. Select software or hardware multiply ('l.mul', 'l.muli')
  18794. instructions. This default is hardware multiply.
  18795. '-msoft-float'
  18796. '-mhard-float'
  18797. Select software or hardware for floating point operations. The
  18798. default is software.
  18799. '-mdouble-float'
  18800. When '-mhard-float' is selected, enables generation of
  18801. double-precision floating point instructions. By default functions
  18802. from 'libgcc' are used to perform double-precision floating point
  18803. operations.
  18804. '-munordered-float'
  18805. When '-mhard-float' is selected, enables generation of unordered
  18806. floating point compare and set flag ('lf.sfun*') instructions. By
  18807. default functions from 'libgcc' are used to perform unordered
  18808. floating point compare and set flag operations.
  18809. '-mcmov'
  18810. Enable generation of conditional move ('l.cmov') instructions. By
  18811. default the equivalent will be generated using set and branch.
  18812. '-mror'
  18813. Enable generation of rotate right ('l.ror') instructions. By
  18814. default functions from 'libgcc' are used to perform rotate right
  18815. operations.
  18816. '-mrori'
  18817. Enable generation of rotate right with immediate ('l.rori')
  18818. instructions. By default functions from 'libgcc' are used to
  18819. perform rotate right with immediate operations.
  18820. '-msext'
  18821. Enable generation of sign extension ('l.ext*') instructions. By
  18822. default memory loads are used to perform sign extension.
  18823. '-msfimm'
  18824. Enable generation of compare and set flag with immediate ('l.sf*i')
  18825. instructions. By default extra instructions will be generated to
  18826. store the immediate to a register first.
  18827. '-mshftimm'
  18828. Enable generation of shift with immediate ('l.srai', 'l.srli',
  18829. 'l.slli') instructions. By default extra instructions will be
  18830. generated to store the immediate to a register first.
  18831. 
  18832. File: gcc.info, Node: PDP-11 Options, Next: picoChip Options, Prev: OpenRISC Options, Up: Submodel Options
  18833. 3.19.38 PDP-11 Options
  18834. ----------------------
  18835. These options are defined for the PDP-11:
  18836. '-mfpu'
  18837. Use hardware FPP floating point. This is the default. (FIS
  18838. floating point on the PDP-11/40 is not supported.) Implies -m45.
  18839. '-msoft-float'
  18840. Do not use hardware floating point.
  18841. '-mac0'
  18842. Return floating-point results in ac0 (fr0 in Unix assembler
  18843. syntax).
  18844. '-mno-ac0'
  18845. Return floating-point results in memory. This is the default.
  18846. '-m40'
  18847. Generate code for a PDP-11/40. Implies -msoft-float -mno-split.
  18848. '-m45'
  18849. Generate code for a PDP-11/45. This is the default.
  18850. '-m10'
  18851. Generate code for a PDP-11/10. Implies -msoft-float -mno-split.
  18852. '-mint16'
  18853. '-mno-int32'
  18854. Use 16-bit 'int'. This is the default.
  18855. '-mint32'
  18856. '-mno-int16'
  18857. Use 32-bit 'int'.
  18858. '-msplit'
  18859. Target has split instruction and data space. Implies -m45.
  18860. '-munix-asm'
  18861. Use Unix assembler syntax.
  18862. '-mdec-asm'
  18863. Use DEC assembler syntax.
  18864. '-mgnu-asm'
  18865. Use GNU assembler syntax. This is the default.
  18866. '-mlra'
  18867. Use the new LRA register allocator. By default, the old "reload"
  18868. allocator is used.
  18869. 
  18870. File: gcc.info, Node: picoChip Options, Next: PowerPC Options, Prev: PDP-11 Options, Up: Submodel Options
  18871. 3.19.39 picoChip Options
  18872. ------------------------
  18873. These '-m' options are defined for picoChip implementations:
  18874. '-mae=AE_TYPE'
  18875. Set the instruction set, register set, and instruction scheduling
  18876. parameters for array element type AE_TYPE. Supported values for
  18877. AE_TYPE are 'ANY', 'MUL', and 'MAC'.
  18878. '-mae=ANY' selects a completely generic AE type. Code generated
  18879. with this option runs on any of the other AE types. The code is
  18880. not as efficient as it would be if compiled for a specific AE type,
  18881. and some types of operation (e.g., multiplication) do not work
  18882. properly on all types of AE.
  18883. '-mae=MUL' selects a MUL AE type. This is the most useful AE type
  18884. for compiled code, and is the default.
  18885. '-mae=MAC' selects a DSP-style MAC AE. Code compiled with this
  18886. option may suffer from poor performance of byte (char)
  18887. manipulation, since the DSP AE does not provide hardware support
  18888. for byte load/stores.
  18889. '-msymbol-as-address'
  18890. Enable the compiler to directly use a symbol name as an address in
  18891. a load/store instruction, without first loading it into a register.
  18892. Typically, the use of this option generates larger programs, which
  18893. run faster than when the option isn't used. However, the results
  18894. vary from program to program, so it is left as a user option,
  18895. rather than being permanently enabled.
  18896. '-mno-inefficient-warnings'
  18897. Disables warnings about the generation of inefficient code. These
  18898. warnings can be generated, for example, when compiling code that
  18899. performs byte-level memory operations on the MAC AE type. The MAC
  18900. AE has no hardware support for byte-level memory operations, so all
  18901. byte load/stores must be synthesized from word load/store
  18902. operations. This is inefficient and a warning is generated to
  18903. indicate that you should rewrite the code to avoid byte operations,
  18904. or to target an AE type that has the necessary hardware support.
  18905. This option disables these warnings.
  18906. 
  18907. File: gcc.info, Node: PowerPC Options, Next: PRU Options, Prev: picoChip Options, Up: Submodel Options
  18908. 3.19.40 PowerPC Options
  18909. -----------------------
  18910. These are listed under *Note RS/6000 and PowerPC Options::.
  18911. 
  18912. File: gcc.info, Node: PRU Options, Next: RISC-V Options, Prev: PowerPC Options, Up: Submodel Options
  18913. 3.19.41 PRU Options
  18914. -------------------
  18915. These command-line options are defined for PRU target:
  18916. '-minrt'
  18917. Link with a minimum runtime environment, with no support for static
  18918. initializers and constructors. Using this option can significantly
  18919. reduce the size of the final ELF binary. Beware that the compiler
  18920. could still generate code with static initializers and
  18921. constructors. It is up to the programmer to ensure that the source
  18922. program will not use those features.
  18923. '-mmcu=MCU'
  18924. Specify the PRU MCU variant to use. Check Newlib for the exact
  18925. list of supported MCUs.
  18926. '-mno-relax'
  18927. Make GCC pass the '--no-relax' command-line option to the linker
  18928. instead of the '--relax' option.
  18929. '-mloop'
  18930. Allow (or do not allow) GCC to use the LOOP instruction.
  18931. '-mabi=VARIANT'
  18932. Specify the ABI variant to output code for. '-mabi=ti' selects the
  18933. unmodified TI ABI while '-mabi=gnu' selects a GNU variant that
  18934. copes more naturally with certain GCC assumptions. These are the
  18935. differences:
  18936. 'Function Pointer Size'
  18937. TI ABI specifies that function (code) pointers are 16-bit,
  18938. whereas GNU supports only 32-bit data and code pointers.
  18939. 'Optional Return Value Pointer'
  18940. Function return values larger than 64 bits are passed by using
  18941. a hidden pointer as the first argument of the function. TI
  18942. ABI, though, mandates that the pointer can be NULL in case the
  18943. caller is not using the returned value. GNU always passes and
  18944. expects a valid return value pointer.
  18945. The current '-mabi=ti' implementation simply raises a compile error
  18946. when any of the above code constructs is detected. As a
  18947. consequence the standard C library cannot be built and it is
  18948. omitted when linking with '-mabi=ti'.
  18949. Relaxation is a GNU feature and for safety reasons is disabled when
  18950. using '-mabi=ti'. The TI toolchain does not emit relocations for
  18951. QBBx instructions, so the GNU linker cannot adjust them when
  18952. shortening adjacent LDI32 pseudo instructions.
  18953. 
  18954. File: gcc.info, Node: RISC-V Options, Next: RL78 Options, Prev: PRU Options, Up: Submodel Options
  18955. 3.19.42 RISC-V Options
  18956. ----------------------
  18957. These command-line options are defined for RISC-V targets:
  18958. '-mbranch-cost=N'
  18959. Set the cost of branches to roughly N instructions.
  18960. '-mplt'
  18961. '-mno-plt'
  18962. When generating PIC code, do or don't allow the use of PLTs.
  18963. Ignored for non-PIC. The default is '-mplt'.
  18964. '-mabi=ABI-STRING'
  18965. Specify integer and floating-point calling convention. ABI-STRING
  18966. contains two parts: the size of integer types and the registers
  18967. used for floating-point types. For example '-march=rv64ifd
  18968. -mabi=lp64d' means that 'long' and pointers are 64-bit (implicitly
  18969. defining 'int' to be 32-bit), and that floating-point values up to
  18970. 64 bits wide are passed in F registers. Contrast this with
  18971. '-march=rv64ifd -mabi=lp64f', which still allows the compiler to
  18972. generate code that uses the F and D extensions but only allows
  18973. floating-point values up to 32 bits long to be passed in registers;
  18974. or '-march=rv64ifd -mabi=lp64', in which no floating-point
  18975. arguments will be passed in registers.
  18976. The default for this argument is system dependent, users who want a
  18977. specific calling convention should specify one explicitly. The
  18978. valid calling conventions are: 'ilp32', 'ilp32f', 'ilp32d', 'lp64',
  18979. 'lp64f', and 'lp64d'. Some calling conventions are impossible to
  18980. implement on some ISAs: for example, '-march=rv32if -mabi=ilp32d'
  18981. is invalid because the ABI requires 64-bit values be passed in F
  18982. registers, but F registers are only 32 bits wide. There is also
  18983. the 'ilp32e' ABI that can only be used with the 'rv32e'
  18984. architecture. This ABI is not well specified at present, and is
  18985. subject to change.
  18986. '-mfdiv'
  18987. '-mno-fdiv'
  18988. Do or don't use hardware floating-point divide and square root
  18989. instructions. This requires the F or D extensions for
  18990. floating-point registers. The default is to use them if the
  18991. specified architecture has these instructions.
  18992. '-mdiv'
  18993. '-mno-div'
  18994. Do or don't use hardware instructions for integer division. This
  18995. requires the M extension. The default is to use them if the
  18996. specified architecture has these instructions.
  18997. '-march=ISA-STRING'
  18998. Generate code for given RISC-V ISA (e.g. 'rv64im'). ISA strings
  18999. must be lower-case. Examples include 'rv64i', 'rv32g', 'rv32e',
  19000. and 'rv32imaf'.
  19001. '-mtune=PROCESSOR-STRING'
  19002. Optimize the output for the given processor, specified by
  19003. microarchitecture name. Permissible values for this option are:
  19004. 'rocket', 'sifive-3-series', 'sifive-5-series', 'sifive-7-series',
  19005. and 'size'.
  19006. When '-mtune=' is not specified, the default is 'rocket'.
  19007. The 'size' choice is not intended for use by end-users. This is
  19008. used when '-Os' is specified. It overrides the instruction cost
  19009. info provided by '-mtune=', but does not override the pipeline
  19010. info. This helps reduce code size while still giving good
  19011. performance.
  19012. '-mpreferred-stack-boundary=NUM'
  19013. Attempt to keep the stack boundary aligned to a 2 raised to NUM
  19014. byte boundary. If '-mpreferred-stack-boundary' is not specified,
  19015. the default is 4 (16 bytes or 128-bits).
  19016. *Warning:* If you use this switch, then you must build all modules
  19017. with the same value, including any libraries. This includes the
  19018. system libraries and startup modules.
  19019. '-msmall-data-limit=N'
  19020. Put global and static data smaller than N bytes into a special
  19021. section (on some targets).
  19022. '-msave-restore'
  19023. '-mno-save-restore'
  19024. Do or don't use smaller but slower prologue and epilogue code that
  19025. uses library function calls. The default is to use fast inline
  19026. prologues and epilogues.
  19027. '-mstrict-align'
  19028. '-mno-strict-align'
  19029. Do not or do generate unaligned memory accesses. The default is
  19030. set depending on whether the processor we are optimizing for
  19031. supports fast unaligned access or not.
  19032. '-mcmodel=medlow'
  19033. Generate code for the medium-low code model. The program and its
  19034. statically defined symbols must lie within a single 2 GiB address
  19035. range and must lie between absolute addresses -2 GiB and +2 GiB.
  19036. Programs can be statically or dynamically linked. This is the
  19037. default code model.
  19038. '-mcmodel=medany'
  19039. Generate code for the medium-any code model. The program and its
  19040. statically defined symbols must be within any single 2 GiB address
  19041. range. Programs can be statically or dynamically linked.
  19042. '-mexplicit-relocs'
  19043. '-mno-exlicit-relocs'
  19044. Use or do not use assembler relocation operators when dealing with
  19045. symbolic addresses. The alternative is to use assembler macros
  19046. instead, which may limit optimization.
  19047. '-mrelax'
  19048. '-mno-relax'
  19049. Take advantage of linker relaxations to reduce the number of
  19050. instructions required to materialize symbol addresses. The default
  19051. is to take advantage of linker relaxations.
  19052. '-memit-attribute'
  19053. '-mno-emit-attribute'
  19054. Emit (do not emit) RISC-V attribute to record extra information
  19055. into ELF objects. This feature requires at least binutils 2.32.
  19056. '-malign-data=TYPE'
  19057. Control how GCC aligns variables and constants of array, structure,
  19058. or union types. Supported values for TYPE are 'xlen' which uses x
  19059. register width as the alignment value, and 'natural' which uses
  19060. natural alignment. 'xlen' is the default.
  19061. 
  19062. File: gcc.info, Node: RL78 Options, Next: RS/6000 and PowerPC Options, Prev: RISC-V Options, Up: Submodel Options
  19063. 3.19.43 RL78 Options
  19064. --------------------
  19065. '-msim'
  19066. Links in additional target libraries to support operation within a
  19067. simulator.
  19068. '-mmul=none'
  19069. '-mmul=g10'
  19070. '-mmul=g13'
  19071. '-mmul=g14'
  19072. '-mmul=rl78'
  19073. Specifies the type of hardware multiplication and division support
  19074. to be used. The simplest is 'none', which uses software for both
  19075. multiplication and division. This is the default. The 'g13' value
  19076. is for the hardware multiply/divide peripheral found on the
  19077. RL78/G13 (S2 core) targets. The 'g14' value selects the use of the
  19078. multiplication and division instructions supported by the RL78/G14
  19079. (S3 core) parts. The value 'rl78' is an alias for 'g14' and the
  19080. value 'mg10' is an alias for 'none'.
  19081. In addition a C preprocessor macro is defined, based upon the
  19082. setting of this option. Possible values are: '__RL78_MUL_NONE__',
  19083. '__RL78_MUL_G13__' or '__RL78_MUL_G14__'.
  19084. '-mcpu=g10'
  19085. '-mcpu=g13'
  19086. '-mcpu=g14'
  19087. '-mcpu=rl78'
  19088. Specifies the RL78 core to target. The default is the G14 core,
  19089. also known as an S3 core or just RL78. The G13 or S2 core does not
  19090. have multiply or divide instructions, instead it uses a hardware
  19091. peripheral for these operations. The G10 or S1 core does not have
  19092. register banks, so it uses a different calling convention.
  19093. If this option is set it also selects the type of hardware multiply
  19094. support to use, unless this is overridden by an explicit
  19095. '-mmul=none' option on the command line. Thus specifying
  19096. '-mcpu=g13' enables the use of the G13 hardware multiply peripheral
  19097. and specifying '-mcpu=g10' disables the use of hardware
  19098. multiplications altogether.
  19099. Note, although the RL78/G14 core is the default target, specifying
  19100. '-mcpu=g14' or '-mcpu=rl78' on the command line does change the
  19101. behavior of the toolchain since it also enables G14 hardware
  19102. multiply support. If these options are not specified on the
  19103. command line then software multiplication routines will be used
  19104. even though the code targets the RL78 core. This is for backwards
  19105. compatibility with older toolchains which did not have hardware
  19106. multiply and divide support.
  19107. In addition a C preprocessor macro is defined, based upon the
  19108. setting of this option. Possible values are: '__RL78_G10__',
  19109. '__RL78_G13__' or '__RL78_G14__'.
  19110. '-mg10'
  19111. '-mg13'
  19112. '-mg14'
  19113. '-mrl78'
  19114. These are aliases for the corresponding '-mcpu=' option. They are
  19115. provided for backwards compatibility.
  19116. '-mallregs'
  19117. Allow the compiler to use all of the available registers. By
  19118. default registers 'r24..r31' are reserved for use in interrupt
  19119. handlers. With this option enabled these registers can be used in
  19120. ordinary functions as well.
  19121. '-m64bit-doubles'
  19122. '-m32bit-doubles'
  19123. Make the 'double' data type be 64 bits ('-m64bit-doubles') or 32
  19124. bits ('-m32bit-doubles') in size. The default is
  19125. '-m32bit-doubles'.
  19126. '-msave-mduc-in-interrupts'
  19127. '-mno-save-mduc-in-interrupts'
  19128. Specifies that interrupt handler functions should preserve the MDUC
  19129. registers. This is only necessary if normal code might use the
  19130. MDUC registers, for example because it performs multiplication and
  19131. division operations. The default is to ignore the MDUC registers
  19132. as this makes the interrupt handlers faster. The target option
  19133. -mg13 needs to be passed for this to work as this feature is only
  19134. available on the G13 target (S2 core). The MDUC registers will
  19135. only be saved if the interrupt handler performs a multiplication or
  19136. division operation or it calls another function.
  19137. 
  19138. File: gcc.info, Node: RS/6000 and PowerPC Options, Next: RX Options, Prev: RL78 Options, Up: Submodel Options
  19139. 3.19.44 IBM RS/6000 and PowerPC Options
  19140. ---------------------------------------
  19141. These '-m' options are defined for the IBM RS/6000 and PowerPC:
  19142. '-mpowerpc-gpopt'
  19143. '-mno-powerpc-gpopt'
  19144. '-mpowerpc-gfxopt'
  19145. '-mno-powerpc-gfxopt'
  19146. '-mpowerpc64'
  19147. '-mno-powerpc64'
  19148. '-mmfcrf'
  19149. '-mno-mfcrf'
  19150. '-mpopcntb'
  19151. '-mno-popcntb'
  19152. '-mpopcntd'
  19153. '-mno-popcntd'
  19154. '-mfprnd'
  19155. '-mno-fprnd'
  19156. '-mcmpb'
  19157. '-mno-cmpb'
  19158. '-mhard-dfp'
  19159. '-mno-hard-dfp'
  19160. You use these options to specify which instructions are available
  19161. on the processor you are using. The default value of these options
  19162. is determined when configuring GCC. Specifying the
  19163. '-mcpu=CPU_TYPE' overrides the specification of these options. We
  19164. recommend you use the '-mcpu=CPU_TYPE' option rather than the
  19165. options listed above.
  19166. Specifying '-mpowerpc-gpopt' allows GCC to use the optional PowerPC
  19167. architecture instructions in the General Purpose group, including
  19168. floating-point square root. Specifying '-mpowerpc-gfxopt' allows
  19169. GCC to use the optional PowerPC architecture instructions in the
  19170. Graphics group, including floating-point select.
  19171. The '-mmfcrf' option allows GCC to generate the move from condition
  19172. register field instruction implemented on the POWER4 processor and
  19173. other processors that support the PowerPC V2.01 architecture. The
  19174. '-mpopcntb' option allows GCC to generate the popcount and
  19175. double-precision FP reciprocal estimate instruction implemented on
  19176. the POWER5 processor and other processors that support the PowerPC
  19177. V2.02 architecture. The '-mpopcntd' option allows GCC to generate
  19178. the popcount instruction implemented on the POWER7 processor and
  19179. other processors that support the PowerPC V2.06 architecture. The
  19180. '-mfprnd' option allows GCC to generate the FP round to integer
  19181. instructions implemented on the POWER5+ processor and other
  19182. processors that support the PowerPC V2.03 architecture. The
  19183. '-mcmpb' option allows GCC to generate the compare bytes
  19184. instruction implemented on the POWER6 processor and other
  19185. processors that support the PowerPC V2.05 architecture. The
  19186. '-mhard-dfp' option allows GCC to generate the decimal
  19187. floating-point instructions implemented on some POWER processors.
  19188. The '-mpowerpc64' option allows GCC to generate the additional
  19189. 64-bit instructions that are found in the full PowerPC64
  19190. architecture and to treat GPRs as 64-bit, doubleword quantities.
  19191. GCC defaults to '-mno-powerpc64'.
  19192. '-mcpu=CPU_TYPE'
  19193. Set architecture type, register usage, and instruction scheduling
  19194. parameters for machine type CPU_TYPE. Supported values for
  19195. CPU_TYPE are '401', '403', '405', '405fp', '440', '440fp', '464',
  19196. '464fp', '476', '476fp', '505', '601', '602', '603', '603e', '604',
  19197. '604e', '620', '630', '740', '7400', '7450', '750', '801', '821',
  19198. '823', '860', '970', '8540', 'a2', 'e300c2', 'e300c3', 'e500mc',
  19199. 'e500mc64', 'e5500', 'e6500', 'ec603e', 'G3', 'G4', 'G5', 'titan',
  19200. 'power3', 'power4', 'power5', 'power5+', 'power6', 'power6x',
  19201. 'power7', 'power8', 'power9', 'future', 'powerpc', 'powerpc64',
  19202. 'powerpc64le', 'rs64', and 'native'.
  19203. '-mcpu=powerpc', '-mcpu=powerpc64', and '-mcpu=powerpc64le' specify
  19204. pure 32-bit PowerPC (either endian), 64-bit big endian PowerPC and
  19205. 64-bit little endian PowerPC architecture machine types, with an
  19206. appropriate, generic processor model assumed for scheduling
  19207. purposes.
  19208. Specifying 'native' as cpu type detects and selects the
  19209. architecture option that corresponds to the host processor of the
  19210. system performing the compilation. '-mcpu=native' has no effect if
  19211. GCC does not recognize the processor.
  19212. The other options specify a specific processor. Code generated
  19213. under those options runs best on that processor, and may not run at
  19214. all on others.
  19215. The '-mcpu' options automatically enable or disable the following
  19216. options:
  19217. -maltivec -mfprnd -mhard-float -mmfcrf -mmultiple
  19218. -mpopcntb -mpopcntd -mpowerpc64
  19219. -mpowerpc-gpopt -mpowerpc-gfxopt
  19220. -mmulhw -mdlmzb -mmfpgpr -mvsx
  19221. -mcrypto -mhtm -mpower8-fusion -mpower8-vector
  19222. -mquad-memory -mquad-memory-atomic -mfloat128
  19223. -mfloat128-hardware -mprefixed -mpcrel -mmma
  19224. The particular options set for any particular CPU varies between
  19225. compiler versions, depending on what setting seems to produce
  19226. optimal code for that CPU; it doesn't necessarily reflect the
  19227. actual hardware's capabilities. If you wish to set an individual
  19228. option to a particular value, you may specify it after the '-mcpu'
  19229. option, like '-mcpu=970 -mno-altivec'.
  19230. On AIX, the '-maltivec' and '-mpowerpc64' options are not enabled
  19231. or disabled by the '-mcpu' option at present because AIX does not
  19232. have full support for these options. You may still enable or
  19233. disable them individually if you're sure it'll work in your
  19234. environment.
  19235. '-mtune=CPU_TYPE'
  19236. Set the instruction scheduling parameters for machine type
  19237. CPU_TYPE, but do not set the architecture type or register usage,
  19238. as '-mcpu=CPU_TYPE' does. The same values for CPU_TYPE are used
  19239. for '-mtune' as for '-mcpu'. If both are specified, the code
  19240. generated uses the architecture and registers set by '-mcpu', but
  19241. the scheduling parameters set by '-mtune'.
  19242. '-mcmodel=small'
  19243. Generate PowerPC64 code for the small model: The TOC is limited to
  19244. 64k.
  19245. '-mcmodel=medium'
  19246. Generate PowerPC64 code for the medium model: The TOC and other
  19247. static data may be up to a total of 4G in size. This is the
  19248. default for 64-bit Linux.
  19249. '-mcmodel=large'
  19250. Generate PowerPC64 code for the large model: The TOC may be up to
  19251. 4G in size. Other data and code is only limited by the 64-bit
  19252. address space.
  19253. '-maltivec'
  19254. '-mno-altivec'
  19255. Generate code that uses (does not use) AltiVec instructions, and
  19256. also enable the use of built-in functions that allow more direct
  19257. access to the AltiVec instruction set. You may also need to set
  19258. '-mabi=altivec' to adjust the current ABI with AltiVec ABI
  19259. enhancements.
  19260. When '-maltivec' is used, the element order for AltiVec intrinsics
  19261. such as 'vec_splat', 'vec_extract', and 'vec_insert' match array
  19262. element order corresponding to the endianness of the target. That
  19263. is, element zero identifies the leftmost element in a vector
  19264. register when targeting a big-endian platform, and identifies the
  19265. rightmost element in a vector register when targeting a
  19266. little-endian platform.
  19267. '-mvrsave'
  19268. '-mno-vrsave'
  19269. Generate VRSAVE instructions when generating AltiVec code.
  19270. '-msecure-plt'
  19271. Generate code that allows 'ld' and 'ld.so' to build executables and
  19272. shared libraries with non-executable '.plt' and '.got' sections.
  19273. This is a PowerPC 32-bit SYSV ABI option.
  19274. '-mbss-plt'
  19275. Generate code that uses a BSS '.plt' section that 'ld.so' fills in,
  19276. and requires '.plt' and '.got' sections that are both writable and
  19277. executable. This is a PowerPC 32-bit SYSV ABI option.
  19278. '-misel'
  19279. '-mno-isel'
  19280. This switch enables or disables the generation of ISEL
  19281. instructions.
  19282. '-mvsx'
  19283. '-mno-vsx'
  19284. Generate code that uses (does not use) vector/scalar (VSX)
  19285. instructions, and also enable the use of built-in functions that
  19286. allow more direct access to the VSX instruction set.
  19287. '-mcrypto'
  19288. '-mno-crypto'
  19289. Enable the use (disable) of the built-in functions that allow
  19290. direct access to the cryptographic instructions that were added in
  19291. version 2.07 of the PowerPC ISA.
  19292. '-mhtm'
  19293. '-mno-htm'
  19294. Enable (disable) the use of the built-in functions that allow
  19295. direct access to the Hardware Transactional Memory (HTM)
  19296. instructions that were added in version 2.07 of the PowerPC ISA.
  19297. '-mpower8-fusion'
  19298. '-mno-power8-fusion'
  19299. Generate code that keeps (does not keeps) some integer operations
  19300. adjacent so that the instructions can be fused together on power8
  19301. and later processors.
  19302. '-mpower8-vector'
  19303. '-mno-power8-vector'
  19304. Generate code that uses (does not use) the vector and scalar
  19305. instructions that were added in version 2.07 of the PowerPC ISA.
  19306. Also enable the use of built-in functions that allow more direct
  19307. access to the vector instructions.
  19308. '-mquad-memory'
  19309. '-mno-quad-memory'
  19310. Generate code that uses (does not use) the non-atomic quad word
  19311. memory instructions. The '-mquad-memory' option requires use of
  19312. 64-bit mode.
  19313. '-mquad-memory-atomic'
  19314. '-mno-quad-memory-atomic'
  19315. Generate code that uses (does not use) the atomic quad word memory
  19316. instructions. The '-mquad-memory-atomic' option requires use of
  19317. 64-bit mode.
  19318. '-mfloat128'
  19319. '-mno-float128'
  19320. Enable/disable the __FLOAT128 keyword for IEEE 128-bit floating
  19321. point and use either software emulation for IEEE 128-bit floating
  19322. point or hardware instructions.
  19323. The VSX instruction set ('-mvsx', '-mcpu=power7', '-mcpu=power8'),
  19324. or '-mcpu=power9' must be enabled to use the IEEE 128-bit floating
  19325. point support. The IEEE 128-bit floating point support only works
  19326. on PowerPC Linux systems.
  19327. The default for '-mfloat128' is enabled on PowerPC Linux systems
  19328. using the VSX instruction set, and disabled on other systems.
  19329. If you use the ISA 3.0 instruction set ('-mpower9-vector' or
  19330. '-mcpu=power9') on a 64-bit system, the IEEE 128-bit floating point
  19331. support will also enable the generation of ISA 3.0 IEEE 128-bit
  19332. floating point instructions. Otherwise, if you do not specify to
  19333. generate ISA 3.0 instructions or you are targeting a 32-bit big
  19334. endian system, IEEE 128-bit floating point will be done with
  19335. software emulation.
  19336. '-mfloat128-hardware'
  19337. '-mno-float128-hardware'
  19338. Enable/disable using ISA 3.0 hardware instructions to support the
  19339. __FLOAT128 data type.
  19340. The default for '-mfloat128-hardware' is enabled on PowerPC Linux
  19341. systems using the ISA 3.0 instruction set, and disabled on other
  19342. systems.
  19343. '-m32'
  19344. '-m64'
  19345. Generate code for 32-bit or 64-bit environments of Darwin and SVR4
  19346. targets (including GNU/Linux). The 32-bit environment sets int,
  19347. long and pointer to 32 bits and generates code that runs on any
  19348. PowerPC variant. The 64-bit environment sets int to 32 bits and
  19349. long and pointer to 64 bits, and generates code for PowerPC64, as
  19350. for '-mpowerpc64'.
  19351. '-mfull-toc'
  19352. '-mno-fp-in-toc'
  19353. '-mno-sum-in-toc'
  19354. '-mminimal-toc'
  19355. Modify generation of the TOC (Table Of Contents), which is created
  19356. for every executable file. The '-mfull-toc' option is selected by
  19357. default. In that case, GCC allocates at least one TOC entry for
  19358. each unique non-automatic variable reference in your program. GCC
  19359. also places floating-point constants in the TOC. However, only
  19360. 16,384 entries are available in the TOC.
  19361. If you receive a linker error message that saying you have
  19362. overflowed the available TOC space, you can reduce the amount of
  19363. TOC space used with the '-mno-fp-in-toc' and '-mno-sum-in-toc'
  19364. options. '-mno-fp-in-toc' prevents GCC from putting floating-point
  19365. constants in the TOC and '-mno-sum-in-toc' forces GCC to generate
  19366. code to calculate the sum of an address and a constant at run time
  19367. instead of putting that sum into the TOC. You may specify one or
  19368. both of these options. Each causes GCC to produce very slightly
  19369. slower and larger code at the expense of conserving TOC space.
  19370. If you still run out of space in the TOC even when you specify both
  19371. of these options, specify '-mminimal-toc' instead. This option
  19372. causes GCC to make only one TOC entry for every file. When you
  19373. specify this option, GCC produces code that is slower and larger
  19374. but which uses extremely little TOC space. You may wish to use
  19375. this option only on files that contain less frequently-executed
  19376. code.
  19377. '-maix64'
  19378. '-maix32'
  19379. Enable 64-bit AIX ABI and calling convention: 64-bit pointers,
  19380. 64-bit 'long' type, and the infrastructure needed to support them.
  19381. Specifying '-maix64' implies '-mpowerpc64', while '-maix32'
  19382. disables the 64-bit ABI and implies '-mno-powerpc64'. GCC defaults
  19383. to '-maix32'.
  19384. '-mxl-compat'
  19385. '-mno-xl-compat'
  19386. Produce code that conforms more closely to IBM XL compiler
  19387. semantics when using AIX-compatible ABI. Pass floating-point
  19388. arguments to prototyped functions beyond the register save area
  19389. (RSA) on the stack in addition to argument FPRs. Do not assume
  19390. that most significant double in 128-bit long double value is
  19391. properly rounded when comparing values and converting to double.
  19392. Use XL symbol names for long double support routines.
  19393. The AIX calling convention was extended but not initially
  19394. documented to handle an obscure K&R C case of calling a function
  19395. that takes the address of its arguments with fewer arguments than
  19396. declared. IBM XL compilers access floating-point arguments that do
  19397. not fit in the RSA from the stack when a subroutine is compiled
  19398. without optimization. Because always storing floating-point
  19399. arguments on the stack is inefficient and rarely needed, this
  19400. option is not enabled by default and only is necessary when calling
  19401. subroutines compiled by IBM XL compilers without optimization.
  19402. '-mpe'
  19403. Support "IBM RS/6000 SP" "Parallel Environment" (PE). Link an
  19404. application written to use message passing with special startup
  19405. code to enable the application to run. The system must have PE
  19406. installed in the standard location ('/usr/lpp/ppe.poe/'), or the
  19407. 'specs' file must be overridden with the '-specs=' option to
  19408. specify the appropriate directory location. The Parallel
  19409. Environment does not support threads, so the '-mpe' option and the
  19410. '-pthread' option are incompatible.
  19411. '-malign-natural'
  19412. '-malign-power'
  19413. On AIX, 32-bit Darwin, and 64-bit PowerPC GNU/Linux, the option
  19414. '-malign-natural' overrides the ABI-defined alignment of larger
  19415. types, such as floating-point doubles, on their natural size-based
  19416. boundary. The option '-malign-power' instructs GCC to follow the
  19417. ABI-specified alignment rules. GCC defaults to the standard
  19418. alignment defined in the ABI.
  19419. On 64-bit Darwin, natural alignment is the default, and
  19420. '-malign-power' is not supported.
  19421. '-msoft-float'
  19422. '-mhard-float'
  19423. Generate code that does not use (uses) the floating-point register
  19424. set. Software floating-point emulation is provided if you use the
  19425. '-msoft-float' option, and pass the option to GCC when linking.
  19426. '-mmultiple'
  19427. '-mno-multiple'
  19428. Generate code that uses (does not use) the load multiple word
  19429. instructions and the store multiple word instructions. These
  19430. instructions are generated by default on POWER systems, and not
  19431. generated on PowerPC systems. Do not use '-mmultiple' on
  19432. little-endian PowerPC systems, since those instructions do not work
  19433. when the processor is in little-endian mode. The exceptions are
  19434. PPC740 and PPC750 which permit these instructions in little-endian
  19435. mode.
  19436. '-mupdate'
  19437. '-mno-update'
  19438. Generate code that uses (does not use) the load or store
  19439. instructions that update the base register to the address of the
  19440. calculated memory location. These instructions are generated by
  19441. default. If you use '-mno-update', there is a small window between
  19442. the time that the stack pointer is updated and the address of the
  19443. previous frame is stored, which means code that walks the stack
  19444. frame across interrupts or signals may get corrupted data.
  19445. '-mavoid-indexed-addresses'
  19446. '-mno-avoid-indexed-addresses'
  19447. Generate code that tries to avoid (not avoid) the use of indexed
  19448. load or store instructions. These instructions can incur a
  19449. performance penalty on Power6 processors in certain situations,
  19450. such as when stepping through large arrays that cross a 16M
  19451. boundary. This option is enabled by default when targeting Power6
  19452. and disabled otherwise.
  19453. '-mfused-madd'
  19454. '-mno-fused-madd'
  19455. Generate code that uses (does not use) the floating-point multiply
  19456. and accumulate instructions. These instructions are generated by
  19457. default if hardware floating point is used. The machine-dependent
  19458. '-mfused-madd' option is now mapped to the machine-independent
  19459. '-ffp-contract=fast' option, and '-mno-fused-madd' is mapped to
  19460. '-ffp-contract=off'.
  19461. '-mmulhw'
  19462. '-mno-mulhw'
  19463. Generate code that uses (does not use) the half-word multiply and
  19464. multiply-accumulate instructions on the IBM 405, 440, 464 and 476
  19465. processors. These instructions are generated by default when
  19466. targeting those processors.
  19467. '-mdlmzb'
  19468. '-mno-dlmzb'
  19469. Generate code that uses (does not use) the string-search 'dlmzb'
  19470. instruction on the IBM 405, 440, 464 and 476 processors. This
  19471. instruction is generated by default when targeting those
  19472. processors.
  19473. '-mno-bit-align'
  19474. '-mbit-align'
  19475. On System V.4 and embedded PowerPC systems do not (do) force
  19476. structures and unions that contain bit-fields to be aligned to the
  19477. base type of the bit-field.
  19478. For example, by default a structure containing nothing but 8
  19479. 'unsigned' bit-fields of length 1 is aligned to a 4-byte boundary
  19480. and has a size of 4 bytes. By using '-mno-bit-align', the
  19481. structure is aligned to a 1-byte boundary and is 1 byte in size.
  19482. '-mno-strict-align'
  19483. '-mstrict-align'
  19484. On System V.4 and embedded PowerPC systems do not (do) assume that
  19485. unaligned memory references are handled by the system.
  19486. '-mrelocatable'
  19487. '-mno-relocatable'
  19488. Generate code that allows (does not allow) a static executable to
  19489. be relocated to a different address at run time. A simple embedded
  19490. PowerPC system loader should relocate the entire contents of
  19491. '.got2' and 4-byte locations listed in the '.fixup' section, a
  19492. table of 32-bit addresses generated by this option. For this to
  19493. work, all objects linked together must be compiled with
  19494. '-mrelocatable' or '-mrelocatable-lib'. '-mrelocatable' code
  19495. aligns the stack to an 8-byte boundary.
  19496. '-mrelocatable-lib'
  19497. '-mno-relocatable-lib'
  19498. Like '-mrelocatable', '-mrelocatable-lib' generates a '.fixup'
  19499. section to allow static executables to be relocated at run time,
  19500. but '-mrelocatable-lib' does not use the smaller stack alignment of
  19501. '-mrelocatable'. Objects compiled with '-mrelocatable-lib' may be
  19502. linked with objects compiled with any combination of the
  19503. '-mrelocatable' options.
  19504. '-mno-toc'
  19505. '-mtoc'
  19506. On System V.4 and embedded PowerPC systems do not (do) assume that
  19507. register 2 contains a pointer to a global area pointing to the
  19508. addresses used in the program.
  19509. '-mlittle'
  19510. '-mlittle-endian'
  19511. On System V.4 and embedded PowerPC systems compile code for the
  19512. processor in little-endian mode. The '-mlittle-endian' option is
  19513. the same as '-mlittle'.
  19514. '-mbig'
  19515. '-mbig-endian'
  19516. On System V.4 and embedded PowerPC systems compile code for the
  19517. processor in big-endian mode. The '-mbig-endian' option is the
  19518. same as '-mbig'.
  19519. '-mdynamic-no-pic'
  19520. On Darwin and Mac OS X systems, compile code so that it is not
  19521. relocatable, but that its external references are relocatable. The
  19522. resulting code is suitable for applications, but not shared
  19523. libraries.
  19524. '-msingle-pic-base'
  19525. Treat the register used for PIC addressing as read-only, rather
  19526. than loading it in the prologue for each function. The runtime
  19527. system is responsible for initializing this register with an
  19528. appropriate value before execution begins.
  19529. '-mprioritize-restricted-insns=PRIORITY'
  19530. This option controls the priority that is assigned to dispatch-slot
  19531. restricted instructions during the second scheduling pass. The
  19532. argument PRIORITY takes the value '0', '1', or '2' to assign no,
  19533. highest, or second-highest (respectively) priority to dispatch-slot
  19534. restricted instructions.
  19535. '-msched-costly-dep=DEPENDENCE_TYPE'
  19536. This option controls which dependences are considered costly by the
  19537. target during instruction scheduling. The argument DEPENDENCE_TYPE
  19538. takes one of the following values:
  19539. 'no'
  19540. No dependence is costly.
  19541. 'all'
  19542. All dependences are costly.
  19543. 'true_store_to_load'
  19544. A true dependence from store to load is costly.
  19545. 'store_to_load'
  19546. Any dependence from store to load is costly.
  19547. NUMBER
  19548. Any dependence for which the latency is greater than or equal
  19549. to NUMBER is costly.
  19550. '-minsert-sched-nops=SCHEME'
  19551. This option controls which NOP insertion scheme is used during the
  19552. second scheduling pass. The argument SCHEME takes one of the
  19553. following values:
  19554. 'no'
  19555. Don't insert NOPs.
  19556. 'pad'
  19557. Pad with NOPs any dispatch group that has vacant issue slots,
  19558. according to the scheduler's grouping.
  19559. 'regroup_exact'
  19560. Insert NOPs to force costly dependent insns into separate
  19561. groups. Insert exactly as many NOPs as needed to force an
  19562. insn to a new group, according to the estimated processor
  19563. grouping.
  19564. NUMBER
  19565. Insert NOPs to force costly dependent insns into separate
  19566. groups. Insert NUMBER NOPs to force an insn to a new group.
  19567. '-mcall-sysv'
  19568. On System V.4 and embedded PowerPC systems compile code using
  19569. calling conventions that adhere to the March 1995 draft of the
  19570. System V Application Binary Interface, PowerPC processor
  19571. supplement. This is the default unless you configured GCC using
  19572. 'powerpc-*-eabiaix'.
  19573. '-mcall-sysv-eabi'
  19574. '-mcall-eabi'
  19575. Specify both '-mcall-sysv' and '-meabi' options.
  19576. '-mcall-sysv-noeabi'
  19577. Specify both '-mcall-sysv' and '-mno-eabi' options.
  19578. '-mcall-aixdesc'
  19579. On System V.4 and embedded PowerPC systems compile code for the AIX
  19580. operating system.
  19581. '-mcall-linux'
  19582. On System V.4 and embedded PowerPC systems compile code for the
  19583. Linux-based GNU system.
  19584. '-mcall-freebsd'
  19585. On System V.4 and embedded PowerPC systems compile code for the
  19586. FreeBSD operating system.
  19587. '-mcall-netbsd'
  19588. On System V.4 and embedded PowerPC systems compile code for the
  19589. NetBSD operating system.
  19590. '-mcall-openbsd'
  19591. On System V.4 and embedded PowerPC systems compile code for the
  19592. OpenBSD operating system.
  19593. '-mtraceback=TRACEBACK_TYPE'
  19594. Select the type of traceback table. Valid values for
  19595. TRACEBACK_TYPE are 'full', 'part', and 'no'.
  19596. '-maix-struct-return'
  19597. Return all structures in memory (as specified by the AIX ABI).
  19598. '-msvr4-struct-return'
  19599. Return structures smaller than 8 bytes in registers (as specified
  19600. by the SVR4 ABI).
  19601. '-mabi=ABI-TYPE'
  19602. Extend the current ABI with a particular extension, or remove such
  19603. extension. Valid values are 'altivec', 'no-altivec',
  19604. 'ibmlongdouble', 'ieeelongdouble', 'elfv1', 'elfv2'.
  19605. '-mabi=ibmlongdouble'
  19606. Change the current ABI to use IBM extended-precision long double.
  19607. This is not likely to work if your system defaults to using IEEE
  19608. extended-precision long double. If you change the long double type
  19609. from IEEE extended-precision, the compiler will issue a warning
  19610. unless you use the '-Wno-psabi' option. Requires
  19611. '-mlong-double-128' to be enabled.
  19612. '-mabi=ieeelongdouble'
  19613. Change the current ABI to use IEEE extended-precision long double.
  19614. This is not likely to work if your system defaults to using IBM
  19615. extended-precision long double. If you change the long double type
  19616. from IBM extended-precision, the compiler will issue a warning
  19617. unless you use the '-Wno-psabi' option. Requires
  19618. '-mlong-double-128' to be enabled.
  19619. '-mabi=elfv1'
  19620. Change the current ABI to use the ELFv1 ABI. This is the default
  19621. ABI for big-endian PowerPC 64-bit Linux. Overriding the default
  19622. ABI requires special system support and is likely to fail in
  19623. spectacular ways.
  19624. '-mabi=elfv2'
  19625. Change the current ABI to use the ELFv2 ABI. This is the default
  19626. ABI for little-endian PowerPC 64-bit Linux. Overriding the default
  19627. ABI requires special system support and is likely to fail in
  19628. spectacular ways.
  19629. '-mgnu-attribute'
  19630. '-mno-gnu-attribute'
  19631. Emit .gnu_attribute assembly directives to set tag/value pairs in a
  19632. .gnu.attributes section that specify ABI variations in function
  19633. parameters or return values.
  19634. '-mprototype'
  19635. '-mno-prototype'
  19636. On System V.4 and embedded PowerPC systems assume that all calls to
  19637. variable argument functions are properly prototyped. Otherwise,
  19638. the compiler must insert an instruction before every non-prototyped
  19639. call to set or clear bit 6 of the condition code register ('CR') to
  19640. indicate whether floating-point values are passed in the
  19641. floating-point registers in case the function takes variable
  19642. arguments. With '-mprototype', only calls to prototyped variable
  19643. argument functions set or clear the bit.
  19644. '-msim'
  19645. On embedded PowerPC systems, assume that the startup module is
  19646. called 'sim-crt0.o' and that the standard C libraries are
  19647. 'libsim.a' and 'libc.a'. This is the default for
  19648. 'powerpc-*-eabisim' configurations.
  19649. '-mmvme'
  19650. On embedded PowerPC systems, assume that the startup module is
  19651. called 'crt0.o' and the standard C libraries are 'libmvme.a' and
  19652. 'libc.a'.
  19653. '-mads'
  19654. On embedded PowerPC systems, assume that the startup module is
  19655. called 'crt0.o' and the standard C libraries are 'libads.a' and
  19656. 'libc.a'.
  19657. '-myellowknife'
  19658. On embedded PowerPC systems, assume that the startup module is
  19659. called 'crt0.o' and the standard C libraries are 'libyk.a' and
  19660. 'libc.a'.
  19661. '-mvxworks'
  19662. On System V.4 and embedded PowerPC systems, specify that you are
  19663. compiling for a VxWorks system.
  19664. '-memb'
  19665. On embedded PowerPC systems, set the 'PPC_EMB' bit in the ELF flags
  19666. header to indicate that 'eabi' extended relocations are used.
  19667. '-meabi'
  19668. '-mno-eabi'
  19669. On System V.4 and embedded PowerPC systems do (do not) adhere to
  19670. the Embedded Applications Binary Interface (EABI), which is a set
  19671. of modifications to the System V.4 specifications. Selecting
  19672. '-meabi' means that the stack is aligned to an 8-byte boundary, a
  19673. function '__eabi' is called from 'main' to set up the EABI
  19674. environment, and the '-msdata' option can use both 'r2' and 'r13'
  19675. to point to two separate small data areas. Selecting '-mno-eabi'
  19676. means that the stack is aligned to a 16-byte boundary, no EABI
  19677. initialization function is called from 'main', and the '-msdata'
  19678. option only uses 'r13' to point to a single small data area. The
  19679. '-meabi' option is on by default if you configured GCC using one of
  19680. the 'powerpc*-*-eabi*' options.
  19681. '-msdata=eabi'
  19682. On System V.4 and embedded PowerPC systems, put small initialized
  19683. 'const' global and static data in the '.sdata2' section, which is
  19684. pointed to by register 'r2'. Put small initialized non-'const'
  19685. global and static data in the '.sdata' section, which is pointed to
  19686. by register 'r13'. Put small uninitialized global and static data
  19687. in the '.sbss' section, which is adjacent to the '.sdata' section.
  19688. The '-msdata=eabi' option is incompatible with the '-mrelocatable'
  19689. option. The '-msdata=eabi' option also sets the '-memb' option.
  19690. '-msdata=sysv'
  19691. On System V.4 and embedded PowerPC systems, put small global and
  19692. static data in the '.sdata' section, which is pointed to by
  19693. register 'r13'. Put small uninitialized global and static data in
  19694. the '.sbss' section, which is adjacent to the '.sdata' section.
  19695. The '-msdata=sysv' option is incompatible with the '-mrelocatable'
  19696. option.
  19697. '-msdata=default'
  19698. '-msdata'
  19699. On System V.4 and embedded PowerPC systems, if '-meabi' is used,
  19700. compile code the same as '-msdata=eabi', otherwise compile code the
  19701. same as '-msdata=sysv'.
  19702. '-msdata=data'
  19703. On System V.4 and embedded PowerPC systems, put small global data
  19704. in the '.sdata' section. Put small uninitialized global data in
  19705. the '.sbss' section. Do not use register 'r13' to address small
  19706. data however. This is the default behavior unless other '-msdata'
  19707. options are used.
  19708. '-msdata=none'
  19709. '-mno-sdata'
  19710. On embedded PowerPC systems, put all initialized global and static
  19711. data in the '.data' section, and all uninitialized data in the
  19712. '.bss' section.
  19713. '-mreadonly-in-sdata'
  19714. Put read-only objects in the '.sdata' section as well. This is the
  19715. default.
  19716. '-mblock-move-inline-limit=NUM'
  19717. Inline all block moves (such as calls to 'memcpy' or structure
  19718. copies) less than or equal to NUM bytes. The minimum value for NUM
  19719. is 32 bytes on 32-bit targets and 64 bytes on 64-bit targets. The
  19720. default value is target-specific.
  19721. '-mblock-compare-inline-limit=NUM'
  19722. Generate non-looping inline code for all block compares (such as
  19723. calls to 'memcmp' or structure compares) less than or equal to NUM
  19724. bytes. If NUM is 0, all inline expansion (non-loop and loop) of
  19725. block compare is disabled. The default value is target-specific.
  19726. '-mblock-compare-inline-loop-limit=NUM'
  19727. Generate an inline expansion using loop code for all block compares
  19728. that are less than or equal to NUM bytes, but greater than the
  19729. limit for non-loop inline block compare expansion. If the block
  19730. length is not constant, at most NUM bytes will be compared before
  19731. 'memcmp' is called to compare the remainder of the block. The
  19732. default value is target-specific.
  19733. '-mstring-compare-inline-limit=NUM'
  19734. Compare at most NUM string bytes with inline code. If the
  19735. difference or end of string is not found at the end of the inline
  19736. compare a call to 'strcmp' or 'strncmp' will take care of the rest
  19737. of the comparison. The default is 64 bytes.
  19738. '-G NUM'
  19739. On embedded PowerPC systems, put global and static items less than
  19740. or equal to NUM bytes into the small data or BSS sections instead
  19741. of the normal data or BSS section. By default, NUM is 8. The '-G
  19742. NUM' switch is also passed to the linker. All modules should be
  19743. compiled with the same '-G NUM' value.
  19744. '-mregnames'
  19745. '-mno-regnames'
  19746. On System V.4 and embedded PowerPC systems do (do not) emit
  19747. register names in the assembly language output using symbolic
  19748. forms.
  19749. '-mlongcall'
  19750. '-mno-longcall'
  19751. By default assume that all calls are far away so that a longer and
  19752. more expensive calling sequence is required. This is required for
  19753. calls farther than 32 megabytes (33,554,432 bytes) from the current
  19754. location. A short call is generated if the compiler knows the call
  19755. cannot be that far away. This setting can be overridden by the
  19756. 'shortcall' function attribute, or by '#pragma longcall(0)'.
  19757. Some linkers are capable of detecting out-of-range calls and
  19758. generating glue code on the fly. On these systems, long calls are
  19759. unnecessary and generate slower code. As of this writing, the AIX
  19760. linker can do this, as can the GNU linker for PowerPC/64. It is
  19761. planned to add this feature to the GNU linker for 32-bit PowerPC
  19762. systems as well.
  19763. On PowerPC64 ELFv2 and 32-bit PowerPC systems with newer GNU
  19764. linkers, GCC can generate long calls using an inline PLT call
  19765. sequence (see '-mpltseq'). PowerPC with '-mbss-plt' and PowerPC64
  19766. ELFv1 (big-endian) do not support inline PLT calls.
  19767. On Darwin/PPC systems, '#pragma longcall' generates 'jbsr callee,
  19768. L42', plus a "branch island" (glue code). The two target addresses
  19769. represent the callee and the branch island. The Darwin/PPC linker
  19770. prefers the first address and generates a 'bl callee' if the PPC
  19771. 'bl' instruction reaches the callee directly; otherwise, the linker
  19772. generates 'bl L42' to call the branch island. The branch island is
  19773. appended to the body of the calling function; it computes the full
  19774. 32-bit address of the callee and jumps to it.
  19775. On Mach-O (Darwin) systems, this option directs the compiler emit
  19776. to the glue for every direct call, and the Darwin linker decides
  19777. whether to use or discard it.
  19778. In the future, GCC may ignore all longcall specifications when the
  19779. linker is known to generate glue.
  19780. '-mpltseq'
  19781. '-mno-pltseq'
  19782. Implement (do not implement) -fno-plt and long calls using an
  19783. inline PLT call sequence that supports lazy linking and long calls
  19784. to functions in dlopen'd shared libraries. Inline PLT calls are
  19785. only supported on PowerPC64 ELFv2 and 32-bit PowerPC systems with
  19786. newer GNU linkers, and are enabled by default if the support is
  19787. detected when configuring GCC, and, in the case of 32-bit PowerPC,
  19788. if GCC is configured with '--enable-secureplt'. '-mpltseq' code
  19789. and '-mbss-plt' 32-bit PowerPC relocatable objects may not be
  19790. linked together.
  19791. '-mtls-markers'
  19792. '-mno-tls-markers'
  19793. Mark (do not mark) calls to '__tls_get_addr' with a relocation
  19794. specifying the function argument. The relocation allows the linker
  19795. to reliably associate function call with argument setup
  19796. instructions for TLS optimization, which in turn allows GCC to
  19797. better schedule the sequence.
  19798. '-mrecip'
  19799. '-mno-recip'
  19800. This option enables use of the reciprocal estimate and reciprocal
  19801. square root estimate instructions with additional Newton-Raphson
  19802. steps to increase precision instead of doing a divide or square
  19803. root and divide for floating-point arguments. You should use the
  19804. '-ffast-math' option when using '-mrecip' (or at least
  19805. '-funsafe-math-optimizations', '-ffinite-math-only',
  19806. '-freciprocal-math' and '-fno-trapping-math'). Note that while the
  19807. throughput of the sequence is generally higher than the throughput
  19808. of the non-reciprocal instruction, the precision of the sequence
  19809. can be decreased by up to 2 ulp (i.e. the inverse of 1.0 equals
  19810. 0.99999994) for reciprocal square roots.
  19811. '-mrecip=OPT'
  19812. This option controls which reciprocal estimate instructions may be
  19813. used. OPT is a comma-separated list of options, which may be
  19814. preceded by a '!' to invert the option:
  19815. 'all'
  19816. Enable all estimate instructions.
  19817. 'default'
  19818. Enable the default instructions, equivalent to '-mrecip'.
  19819. 'none'
  19820. Disable all estimate instructions, equivalent to '-mno-recip'.
  19821. 'div'
  19822. Enable the reciprocal approximation instructions for both
  19823. single and double precision.
  19824. 'divf'
  19825. Enable the single-precision reciprocal approximation
  19826. instructions.
  19827. 'divd'
  19828. Enable the double-precision reciprocal approximation
  19829. instructions.
  19830. 'rsqrt'
  19831. Enable the reciprocal square root approximation instructions
  19832. for both single and double precision.
  19833. 'rsqrtf'
  19834. Enable the single-precision reciprocal square root
  19835. approximation instructions.
  19836. 'rsqrtd'
  19837. Enable the double-precision reciprocal square root
  19838. approximation instructions.
  19839. So, for example, '-mrecip=all,!rsqrtd' enables all of the
  19840. reciprocal estimate instructions, except for the 'FRSQRTE',
  19841. 'XSRSQRTEDP', and 'XVRSQRTEDP' instructions which handle the
  19842. double-precision reciprocal square root calculations.
  19843. '-mrecip-precision'
  19844. '-mno-recip-precision'
  19845. Assume (do not assume) that the reciprocal estimate instructions
  19846. provide higher-precision estimates than is mandated by the PowerPC
  19847. ABI. Selecting '-mcpu=power6', '-mcpu=power7' or '-mcpu=power8'
  19848. automatically selects '-mrecip-precision'. The double-precision
  19849. square root estimate instructions are not generated by default on
  19850. low-precision machines, since they do not provide an estimate that
  19851. converges after three steps.
  19852. '-mveclibabi=TYPE'
  19853. Specifies the ABI type to use for vectorizing intrinsics using an
  19854. external library. The only type supported at present is 'mass',
  19855. which specifies to use IBM's Mathematical Acceleration Subsystem
  19856. (MASS) libraries for vectorizing intrinsics using external
  19857. libraries. GCC currently emits calls to 'acosd2', 'acosf4',
  19858. 'acoshd2', 'acoshf4', 'asind2', 'asinf4', 'asinhd2', 'asinhf4',
  19859. 'atan2d2', 'atan2f4', 'atand2', 'atanf4', 'atanhd2', 'atanhf4',
  19860. 'cbrtd2', 'cbrtf4', 'cosd2', 'cosf4', 'coshd2', 'coshf4', 'erfcd2',
  19861. 'erfcf4', 'erfd2', 'erff4', 'exp2d2', 'exp2f4', 'expd2', 'expf4',
  19862. 'expm1d2', 'expm1f4', 'hypotd2', 'hypotf4', 'lgammad2', 'lgammaf4',
  19863. 'log10d2', 'log10f4', 'log1pd2', 'log1pf4', 'log2d2', 'log2f4',
  19864. 'logd2', 'logf4', 'powd2', 'powf4', 'sind2', 'sinf4', 'sinhd2',
  19865. 'sinhf4', 'sqrtd2', 'sqrtf4', 'tand2', 'tanf4', 'tanhd2', and
  19866. 'tanhf4' when generating code for power7. Both '-ftree-vectorize'
  19867. and '-funsafe-math-optimizations' must also be enabled. The MASS
  19868. libraries must be specified at link time.
  19869. '-mfriz'
  19870. '-mno-friz'
  19871. Generate (do not generate) the 'friz' instruction when the
  19872. '-funsafe-math-optimizations' option is used to optimize rounding
  19873. of floating-point values to 64-bit integer and back to floating
  19874. point. The 'friz' instruction does not return the same value if
  19875. the floating-point number is too large to fit in an integer.
  19876. '-mpointers-to-nested-functions'
  19877. '-mno-pointers-to-nested-functions'
  19878. Generate (do not generate) code to load up the static chain
  19879. register ('r11') when calling through a pointer on AIX and 64-bit
  19880. Linux systems where a function pointer points to a 3-word
  19881. descriptor giving the function address, TOC value to be loaded in
  19882. register 'r2', and static chain value to be loaded in register
  19883. 'r11'. The '-mpointers-to-nested-functions' is on by default. You
  19884. cannot call through pointers to nested functions or pointers to
  19885. functions compiled in other languages that use the static chain if
  19886. you use '-mno-pointers-to-nested-functions'.
  19887. '-msave-toc-indirect'
  19888. '-mno-save-toc-indirect'
  19889. Generate (do not generate) code to save the TOC value in the
  19890. reserved stack location in the function prologue if the function
  19891. calls through a pointer on AIX and 64-bit Linux systems. If the
  19892. TOC value is not saved in the prologue, it is saved just before the
  19893. call through the pointer. The '-mno-save-toc-indirect' option is
  19894. the default.
  19895. '-mcompat-align-parm'
  19896. '-mno-compat-align-parm'
  19897. Generate (do not generate) code to pass structure parameters with a
  19898. maximum alignment of 64 bits, for compatibility with older versions
  19899. of GCC.
  19900. Older versions of GCC (prior to 4.9.0) incorrectly did not align a
  19901. structure parameter on a 128-bit boundary when that structure
  19902. contained a member requiring 128-bit alignment. This is corrected
  19903. in more recent versions of GCC. This option may be used to generate
  19904. code that is compatible with functions compiled with older versions
  19905. of GCC.
  19906. The '-mno-compat-align-parm' option is the default.
  19907. '-mstack-protector-guard=GUARD'
  19908. '-mstack-protector-guard-reg=REG'
  19909. '-mstack-protector-guard-offset=OFFSET'
  19910. '-mstack-protector-guard-symbol=SYMBOL'
  19911. Generate stack protection code using canary at GUARD. Supported
  19912. locations are 'global' for global canary or 'tls' for per-thread
  19913. canary in the TLS block (the default with GNU libc version 2.4 or
  19914. later).
  19915. With the latter choice the options
  19916. '-mstack-protector-guard-reg=REG' and
  19917. '-mstack-protector-guard-offset=OFFSET' furthermore specify which
  19918. register to use as base register for reading the canary, and from
  19919. what offset from that base register. The default for those is as
  19920. specified in the relevant ABI.
  19921. '-mstack-protector-guard-symbol=SYMBOL' overrides the offset with a
  19922. symbol reference to a canary in the TLS block.
  19923. '-mpcrel'
  19924. '-mno-pcrel'
  19925. Generate (do not generate) pc-relative addressing when the option
  19926. '-mcpu=future' is used. The '-mpcrel' option requires that the
  19927. medium code model ('-mcmodel=medium') and prefixed addressing
  19928. ('-mprefixed') options are enabled.
  19929. '-mprefixed'
  19930. '-mno-prefixed'
  19931. Generate (do not generate) addressing modes using prefixed load and
  19932. store instructions when the option '-mcpu=future' is used.
  19933. '-mmma'
  19934. '-mno-mma'
  19935. Generate (do not generate) the MMA instructions when the option
  19936. '-mcpu=future' is used.
  19937. 
  19938. File: gcc.info, Node: RX Options, Next: S/390 and zSeries Options, Prev: RS/6000 and PowerPC Options, Up: Submodel Options
  19939. 3.19.45 RX Options
  19940. ------------------
  19941. These command-line options are defined for RX targets:
  19942. '-m64bit-doubles'
  19943. '-m32bit-doubles'
  19944. Make the 'double' data type be 64 bits ('-m64bit-doubles') or 32
  19945. bits ('-m32bit-doubles') in size. The default is
  19946. '-m32bit-doubles'. _Note_ RX floating-point hardware only works on
  19947. 32-bit values, which is why the default is '-m32bit-doubles'.
  19948. '-fpu'
  19949. '-nofpu'
  19950. Enables ('-fpu') or disables ('-nofpu') the use of RX
  19951. floating-point hardware. The default is enabled for the RX600
  19952. series and disabled for the RX200 series.
  19953. Floating-point instructions are only generated for 32-bit
  19954. floating-point values, however, so the FPU hardware is not used for
  19955. doubles if the '-m64bit-doubles' option is used.
  19956. _Note_ If the '-fpu' option is enabled then
  19957. '-funsafe-math-optimizations' is also enabled automatically. This
  19958. is because the RX FPU instructions are themselves unsafe.
  19959. '-mcpu=NAME'
  19960. Selects the type of RX CPU to be targeted. Currently three types
  19961. are supported, the generic 'RX600' and 'RX200' series hardware and
  19962. the specific 'RX610' CPU. The default is 'RX600'.
  19963. The only difference between 'RX600' and 'RX610' is that the 'RX610'
  19964. does not support the 'MVTIPL' instruction.
  19965. The 'RX200' series does not have a hardware floating-point unit and
  19966. so '-nofpu' is enabled by default when this type is selected.
  19967. '-mbig-endian-data'
  19968. '-mlittle-endian-data'
  19969. Store data (but not code) in the big-endian format. The default is
  19970. '-mlittle-endian-data', i.e. to store data in the little-endian
  19971. format.
  19972. '-msmall-data-limit=N'
  19973. Specifies the maximum size in bytes of global and static variables
  19974. which can be placed into the small data area. Using the small data
  19975. area can lead to smaller and faster code, but the size of area is
  19976. limited and it is up to the programmer to ensure that the area does
  19977. not overflow. Also when the small data area is used one of the
  19978. RX's registers (usually 'r13') is reserved for use pointing to this
  19979. area, so it is no longer available for use by the compiler. This
  19980. could result in slower and/or larger code if variables are pushed
  19981. onto the stack instead of being held in this register.
  19982. Note, common variables (variables that have not been initialized)
  19983. and constants are not placed into the small data area as they are
  19984. assigned to other sections in the output executable.
  19985. The default value is zero, which disables this feature. Note, this
  19986. feature is not enabled by default with higher optimization levels
  19987. ('-O2' etc) because of the potentially detrimental effects of
  19988. reserving a register. It is up to the programmer to experiment and
  19989. discover whether this feature is of benefit to their program. See
  19990. the description of the '-mpid' option for a description of how the
  19991. actual register to hold the small data area pointer is chosen.
  19992. '-msim'
  19993. '-mno-sim'
  19994. Use the simulator runtime. The default is to use the libgloss
  19995. board-specific runtime.
  19996. '-mas100-syntax'
  19997. '-mno-as100-syntax'
  19998. When generating assembler output use a syntax that is compatible
  19999. with Renesas's AS100 assembler. This syntax can also be handled by
  20000. the GAS assembler, but it has some restrictions so it is not
  20001. generated by default.
  20002. '-mmax-constant-size=N'
  20003. Specifies the maximum size, in bytes, of a constant that can be
  20004. used as an operand in a RX instruction. Although the RX
  20005. instruction set does allow constants of up to 4 bytes in length to
  20006. be used in instructions, a longer value equates to a longer
  20007. instruction. Thus in some circumstances it can be beneficial to
  20008. restrict the size of constants that are used in instructions.
  20009. Constants that are too big are instead placed into a constant pool
  20010. and referenced via register indirection.
  20011. The value N can be between 0 and 4. A value of 0 (the default) or
  20012. 4 means that constants of any size are allowed.
  20013. '-mrelax'
  20014. Enable linker relaxation. Linker relaxation is a process whereby
  20015. the linker attempts to reduce the size of a program by finding
  20016. shorter versions of various instructions. Disabled by default.
  20017. '-mint-register=N'
  20018. Specify the number of registers to reserve for fast interrupt
  20019. handler functions. The value N can be between 0 and 4. A value of
  20020. 1 means that register 'r13' is reserved for the exclusive use of
  20021. fast interrupt handlers. A value of 2 reserves 'r13' and 'r12'. A
  20022. value of 3 reserves 'r13', 'r12' and 'r11', and a value of 4
  20023. reserves 'r13' through 'r10'. A value of 0, the default, does not
  20024. reserve any registers.
  20025. '-msave-acc-in-interrupts'
  20026. Specifies that interrupt handler functions should preserve the
  20027. accumulator register. This is only necessary if normal code might
  20028. use the accumulator register, for example because it performs
  20029. 64-bit multiplications. The default is to ignore the accumulator
  20030. as this makes the interrupt handlers faster.
  20031. '-mpid'
  20032. '-mno-pid'
  20033. Enables the generation of position independent data. When enabled
  20034. any access to constant data is done via an offset from a base
  20035. address held in a register. This allows the location of constant
  20036. data to be determined at run time without requiring the executable
  20037. to be relocated, which is a benefit to embedded applications with
  20038. tight memory constraints. Data that can be modified is not
  20039. affected by this option.
  20040. Note, using this feature reserves a register, usually 'r13', for
  20041. the constant data base address. This can result in slower and/or
  20042. larger code, especially in complicated functions.
  20043. The actual register chosen to hold the constant data base address
  20044. depends upon whether the '-msmall-data-limit' and/or the
  20045. '-mint-register' command-line options are enabled. Starting with
  20046. register 'r13' and proceeding downwards, registers are allocated
  20047. first to satisfy the requirements of '-mint-register', then '-mpid'
  20048. and finally '-msmall-data-limit'. Thus it is possible for the
  20049. small data area register to be 'r8' if both '-mint-register=4' and
  20050. '-mpid' are specified on the command line.
  20051. By default this feature is not enabled. The default can be
  20052. restored via the '-mno-pid' command-line option.
  20053. '-mno-warn-multiple-fast-interrupts'
  20054. '-mwarn-multiple-fast-interrupts'
  20055. Prevents GCC from issuing a warning message if it finds more than
  20056. one fast interrupt handler when it is compiling a file. The
  20057. default is to issue a warning for each extra fast interrupt handler
  20058. found, as the RX only supports one such interrupt.
  20059. '-mallow-string-insns'
  20060. '-mno-allow-string-insns'
  20061. Enables or disables the use of the string manipulation instructions
  20062. 'SMOVF', 'SCMPU', 'SMOVB', 'SMOVU', 'SUNTIL' 'SWHILE' and also the
  20063. 'RMPA' instruction. These instructions may prefetch data, which is
  20064. not safe to do if accessing an I/O register. (See section 12.2.7
  20065. of the RX62N Group User's Manual for more information).
  20066. The default is to allow these instructions, but it is not possible
  20067. for GCC to reliably detect all circumstances where a string
  20068. instruction might be used to access an I/O register, so their use
  20069. cannot be disabled automatically. Instead it is reliant upon the
  20070. programmer to use the '-mno-allow-string-insns' option if their
  20071. program accesses I/O space.
  20072. When the instructions are enabled GCC defines the C preprocessor
  20073. symbol '__RX_ALLOW_STRING_INSNS__', otherwise it defines the symbol
  20074. '__RX_DISALLOW_STRING_INSNS__'.
  20075. '-mjsr'
  20076. '-mno-jsr'
  20077. Use only (or not only) 'JSR' instructions to access functions.
  20078. This option can be used when code size exceeds the range of 'BSR'
  20079. instructions. Note that '-mno-jsr' does not mean to not use 'JSR'
  20080. but instead means that any type of branch may be used.
  20081. _Note:_ The generic GCC command-line option '-ffixed-REG' has special
  20082. significance to the RX port when used with the 'interrupt' function
  20083. attribute. This attribute indicates a function intended to process fast
  20084. interrupts. GCC ensures that it only uses the registers 'r10', 'r11',
  20085. 'r12' and/or 'r13' and only provided that the normal use of the
  20086. corresponding registers have been restricted via the '-ffixed-REG' or
  20087. '-mint-register' command-line options.
  20088. 
  20089. File: gcc.info, Node: S/390 and zSeries Options, Next: Score Options, Prev: RX Options, Up: Submodel Options
  20090. 3.19.46 S/390 and zSeries Options
  20091. ---------------------------------
  20092. These are the '-m' options defined for the S/390 and zSeries
  20093. architecture.
  20094. '-mhard-float'
  20095. '-msoft-float'
  20096. Use (do not use) the hardware floating-point instructions and
  20097. registers for floating-point operations. When '-msoft-float' is
  20098. specified, functions in 'libgcc.a' are used to perform
  20099. floating-point operations. When '-mhard-float' is specified, the
  20100. compiler generates IEEE floating-point instructions. This is the
  20101. default.
  20102. '-mhard-dfp'
  20103. '-mno-hard-dfp'
  20104. Use (do not use) the hardware decimal-floating-point instructions
  20105. for decimal-floating-point operations. When '-mno-hard-dfp' is
  20106. specified, functions in 'libgcc.a' are used to perform
  20107. decimal-floating-point operations. When '-mhard-dfp' is specified,
  20108. the compiler generates decimal-floating-point hardware
  20109. instructions. This is the default for '-march=z9-ec' or higher.
  20110. '-mlong-double-64'
  20111. '-mlong-double-128'
  20112. These switches control the size of 'long double' type. A size of
  20113. 64 bits makes the 'long double' type equivalent to the 'double'
  20114. type. This is the default.
  20115. '-mbackchain'
  20116. '-mno-backchain'
  20117. Store (do not store) the address of the caller's frame as backchain
  20118. pointer into the callee's stack frame. A backchain may be needed
  20119. to allow debugging using tools that do not understand DWARF call
  20120. frame information. When '-mno-packed-stack' is in effect, the
  20121. backchain pointer is stored at the bottom of the stack frame; when
  20122. '-mpacked-stack' is in effect, the backchain is placed into the
  20123. topmost word of the 96/160 byte register save area.
  20124. In general, code compiled with '-mbackchain' is call-compatible
  20125. with code compiled with '-mmo-backchain'; however, use of the
  20126. backchain for debugging purposes usually requires that the whole
  20127. binary is built with '-mbackchain'. Note that the combination of
  20128. '-mbackchain', '-mpacked-stack' and '-mhard-float' is not
  20129. supported. In order to build a linux kernel use '-msoft-float'.
  20130. The default is to not maintain the backchain.
  20131. '-mpacked-stack'
  20132. '-mno-packed-stack'
  20133. Use (do not use) the packed stack layout. When '-mno-packed-stack'
  20134. is specified, the compiler uses the all fields of the 96/160 byte
  20135. register save area only for their default purpose; unused fields
  20136. still take up stack space. When '-mpacked-stack' is specified,
  20137. register save slots are densely packed at the top of the register
  20138. save area; unused space is reused for other purposes, allowing for
  20139. more efficient use of the available stack space. However, when
  20140. '-mbackchain' is also in effect, the topmost word of the save area
  20141. is always used to store the backchain, and the return address
  20142. register is always saved two words below the backchain.
  20143. As long as the stack frame backchain is not used, code generated
  20144. with '-mpacked-stack' is call-compatible with code generated with
  20145. '-mno-packed-stack'. Note that some non-FSF releases of GCC 2.95
  20146. for S/390 or zSeries generated code that uses the stack frame
  20147. backchain at run time, not just for debugging purposes. Such code
  20148. is not call-compatible with code compiled with '-mpacked-stack'.
  20149. Also, note that the combination of '-mbackchain', '-mpacked-stack'
  20150. and '-mhard-float' is not supported. In order to build a linux
  20151. kernel use '-msoft-float'.
  20152. The default is to not use the packed stack layout.
  20153. '-msmall-exec'
  20154. '-mno-small-exec'
  20155. Generate (or do not generate) code using the 'bras' instruction to
  20156. do subroutine calls. This only works reliably if the total
  20157. executable size does not exceed 64k. The default is to use the
  20158. 'basr' instruction instead, which does not have this limitation.
  20159. '-m64'
  20160. '-m31'
  20161. When '-m31' is specified, generate code compliant to the GNU/Linux
  20162. for S/390 ABI. When '-m64' is specified, generate code compliant
  20163. to the GNU/Linux for zSeries ABI. This allows GCC in particular to
  20164. generate 64-bit instructions. For the 's390' targets, the default
  20165. is '-m31', while the 's390x' targets default to '-m64'.
  20166. '-mzarch'
  20167. '-mesa'
  20168. When '-mzarch' is specified, generate code using the instructions
  20169. available on z/Architecture. When '-mesa' is specified, generate
  20170. code using the instructions available on ESA/390. Note that
  20171. '-mesa' is not possible with '-m64'. When generating code
  20172. compliant to the GNU/Linux for S/390 ABI, the default is '-mesa'.
  20173. When generating code compliant to the GNU/Linux for zSeries ABI,
  20174. the default is '-mzarch'.
  20175. '-mhtm'
  20176. '-mno-htm'
  20177. The '-mhtm' option enables a set of builtins making use of
  20178. instructions available with the transactional execution facility
  20179. introduced with the IBM zEnterprise EC12 machine generation *note
  20180. S/390 System z Built-in Functions::. '-mhtm' is enabled by default
  20181. when using '-march=zEC12'.
  20182. '-mvx'
  20183. '-mno-vx'
  20184. When '-mvx' is specified, generate code using the instructions
  20185. available with the vector extension facility introduced with the
  20186. IBM z13 machine generation. This option changes the ABI for some
  20187. vector type values with regard to alignment and calling
  20188. conventions. In case vector type values are being used in an
  20189. ABI-relevant context a GAS '.gnu_attribute' command will be added
  20190. to mark the resulting binary with the ABI used. '-mvx' is enabled
  20191. by default when using '-march=z13'.
  20192. '-mzvector'
  20193. '-mno-zvector'
  20194. The '-mzvector' option enables vector language extensions and
  20195. builtins using instructions available with the vector extension
  20196. facility introduced with the IBM z13 machine generation. This
  20197. option adds support for 'vector' to be used as a keyword to define
  20198. vector type variables and arguments. 'vector' is only available
  20199. when GNU extensions are enabled. It will not be expanded when
  20200. requesting strict standard compliance e.g. with '-std=c99'. In
  20201. addition to the GCC low-level builtins '-mzvector' enables a set of
  20202. builtins added for compatibility with AltiVec-style implementations
  20203. like Power and Cell. In order to make use of these builtins the
  20204. header file 'vecintrin.h' needs to be included. '-mzvector' is
  20205. disabled by default.
  20206. '-mmvcle'
  20207. '-mno-mvcle'
  20208. Generate (or do not generate) code using the 'mvcle' instruction to
  20209. perform block moves. When '-mno-mvcle' is specified, use a 'mvc'
  20210. loop instead. This is the default unless optimizing for size.
  20211. '-mdebug'
  20212. '-mno-debug'
  20213. Print (or do not print) additional debug information when
  20214. compiling. The default is to not print debug information.
  20215. '-march=CPU-TYPE'
  20216. Generate code that runs on CPU-TYPE, which is the name of a system
  20217. representing a certain processor type. Possible values for
  20218. CPU-TYPE are 'z900'/'arch5', 'z990'/'arch6', 'z9-109',
  20219. 'z9-ec'/'arch7', 'z10'/'arch8', 'z196'/'arch9', 'zEC12',
  20220. 'z13'/'arch11', 'z14'/'arch12', 'z15'/'arch13', and 'native'.
  20221. The default is '-march=z900'.
  20222. Specifying 'native' as cpu type can be used to select the best
  20223. architecture option for the host processor. '-march=native' has no
  20224. effect if GCC does not recognize the processor.
  20225. '-mtune=CPU-TYPE'
  20226. Tune to CPU-TYPE everything applicable about the generated code,
  20227. except for the ABI and the set of available instructions. The list
  20228. of CPU-TYPE values is the same as for '-march'. The default is the
  20229. value used for '-march'.
  20230. '-mtpf-trace'
  20231. '-mno-tpf-trace'
  20232. Generate code that adds (does not add) in TPF OS specific branches
  20233. to trace routines in the operating system. This option is off by
  20234. default, even when compiling for the TPF OS.
  20235. '-mtpf-trace-skip'
  20236. '-mno-tpf-trace-skip'
  20237. Generate code that changes (does not change) the default branch
  20238. targets enabled by '-mtpf-trace' to point to specialized trace
  20239. routines providing the ability of selectively skipping function
  20240. trace entries for the TPF OS. This option is off by default, even
  20241. when compiling for the TPF OS and specifying '-mtpf-trace'.
  20242. '-mfused-madd'
  20243. '-mno-fused-madd'
  20244. Generate code that uses (does not use) the floating-point multiply
  20245. and accumulate instructions. These instructions are generated by
  20246. default if hardware floating point is used.
  20247. '-mwarn-framesize=FRAMESIZE'
  20248. Emit a warning if the current function exceeds the given frame
  20249. size. Because this is a compile-time check it doesn't need to be a
  20250. real problem when the program runs. It is intended to identify
  20251. functions that most probably cause a stack overflow. It is useful
  20252. to be used in an environment with limited stack size e.g. the linux
  20253. kernel.
  20254. '-mwarn-dynamicstack'
  20255. Emit a warning if the function calls 'alloca' or uses
  20256. dynamically-sized arrays. This is generally a bad idea with a
  20257. limited stack size.
  20258. '-mstack-guard=STACK-GUARD'
  20259. '-mstack-size=STACK-SIZE'
  20260. If these options are provided the S/390 back end emits additional
  20261. instructions in the function prologue that trigger a trap if the
  20262. stack size is STACK-GUARD bytes above the STACK-SIZE (remember that
  20263. the stack on S/390 grows downward). If the STACK-GUARD option is
  20264. omitted the smallest power of 2 larger than the frame size of the
  20265. compiled function is chosen. These options are intended to be used
  20266. to help debugging stack overflow problems. The additionally
  20267. emitted code causes only little overhead and hence can also be used
  20268. in production-like systems without greater performance degradation.
  20269. The given values have to be exact powers of 2 and STACK-SIZE has to
  20270. be greater than STACK-GUARD without exceeding 64k. In order to be
  20271. efficient the extra code makes the assumption that the stack starts
  20272. at an address aligned to the value given by STACK-SIZE. The
  20273. STACK-GUARD option can only be used in conjunction with STACK-SIZE.
  20274. '-mhotpatch=PRE-HALFWORDS,POST-HALFWORDS'
  20275. If the hotpatch option is enabled, a "hot-patching" function
  20276. prologue is generated for all functions in the compilation unit.
  20277. The funtion label is prepended with the given number of two-byte
  20278. NOP instructions (PRE-HALFWORDS, maximum 1000000). After the
  20279. label, 2 * POST-HALFWORDS bytes are appended, using the largest NOP
  20280. like instructions the architecture allows (maximum 1000000).
  20281. If both arguments are zero, hotpatching is disabled.
  20282. This option can be overridden for individual functions with the
  20283. 'hotpatch' attribute.
  20284. 
  20285. File: gcc.info, Node: Score Options, Next: SH Options, Prev: S/390 and zSeries Options, Up: Submodel Options
  20286. 3.19.47 Score Options
  20287. ---------------------
  20288. These options are defined for Score implementations:
  20289. '-meb'
  20290. Compile code for big-endian mode. This is the default.
  20291. '-mel'
  20292. Compile code for little-endian mode.
  20293. '-mnhwloop'
  20294. Disable generation of 'bcnz' instructions.
  20295. '-muls'
  20296. Enable generation of unaligned load and store instructions.
  20297. '-mmac'
  20298. Enable the use of multiply-accumulate instructions. Disabled by
  20299. default.
  20300. '-mscore5'
  20301. Specify the SCORE5 as the target architecture.
  20302. '-mscore5u'
  20303. Specify the SCORE5U of the target architecture.
  20304. '-mscore7'
  20305. Specify the SCORE7 as the target architecture. This is the
  20306. default.
  20307. '-mscore7d'
  20308. Specify the SCORE7D as the target architecture.
  20309. 
  20310. File: gcc.info, Node: SH Options, Next: Solaris 2 Options, Prev: Score Options, Up: Submodel Options
  20311. 3.19.48 SH Options
  20312. ------------------
  20313. These '-m' options are defined for the SH implementations:
  20314. '-m1'
  20315. Generate code for the SH1.
  20316. '-m2'
  20317. Generate code for the SH2.
  20318. '-m2e'
  20319. Generate code for the SH2e.
  20320. '-m2a-nofpu'
  20321. Generate code for the SH2a without FPU, or for a SH2a-FPU in such a
  20322. way that the floating-point unit is not used.
  20323. '-m2a-single-only'
  20324. Generate code for the SH2a-FPU, in such a way that no
  20325. double-precision floating-point operations are used.
  20326. '-m2a-single'
  20327. Generate code for the SH2a-FPU assuming the floating-point unit is
  20328. in single-precision mode by default.
  20329. '-m2a'
  20330. Generate code for the SH2a-FPU assuming the floating-point unit is
  20331. in double-precision mode by default.
  20332. '-m3'
  20333. Generate code for the SH3.
  20334. '-m3e'
  20335. Generate code for the SH3e.
  20336. '-m4-nofpu'
  20337. Generate code for the SH4 without a floating-point unit.
  20338. '-m4-single-only'
  20339. Generate code for the SH4 with a floating-point unit that only
  20340. supports single-precision arithmetic.
  20341. '-m4-single'
  20342. Generate code for the SH4 assuming the floating-point unit is in
  20343. single-precision mode by default.
  20344. '-m4'
  20345. Generate code for the SH4.
  20346. '-m4-100'
  20347. Generate code for SH4-100.
  20348. '-m4-100-nofpu'
  20349. Generate code for SH4-100 in such a way that the floating-point
  20350. unit is not used.
  20351. '-m4-100-single'
  20352. Generate code for SH4-100 assuming the floating-point unit is in
  20353. single-precision mode by default.
  20354. '-m4-100-single-only'
  20355. Generate code for SH4-100 in such a way that no double-precision
  20356. floating-point operations are used.
  20357. '-m4-200'
  20358. Generate code for SH4-200.
  20359. '-m4-200-nofpu'
  20360. Generate code for SH4-200 without in such a way that the
  20361. floating-point unit is not used.
  20362. '-m4-200-single'
  20363. Generate code for SH4-200 assuming the floating-point unit is in
  20364. single-precision mode by default.
  20365. '-m4-200-single-only'
  20366. Generate code for SH4-200 in such a way that no double-precision
  20367. floating-point operations are used.
  20368. '-m4-300'
  20369. Generate code for SH4-300.
  20370. '-m4-300-nofpu'
  20371. Generate code for SH4-300 without in such a way that the
  20372. floating-point unit is not used.
  20373. '-m4-300-single'
  20374. Generate code for SH4-300 in such a way that no double-precision
  20375. floating-point operations are used.
  20376. '-m4-300-single-only'
  20377. Generate code for SH4-300 in such a way that no double-precision
  20378. floating-point operations are used.
  20379. '-m4-340'
  20380. Generate code for SH4-340 (no MMU, no FPU).
  20381. '-m4-500'
  20382. Generate code for SH4-500 (no FPU). Passes '-isa=sh4-nofpu' to the
  20383. assembler.
  20384. '-m4a-nofpu'
  20385. Generate code for the SH4al-dsp, or for a SH4a in such a way that
  20386. the floating-point unit is not used.
  20387. '-m4a-single-only'
  20388. Generate code for the SH4a, in such a way that no double-precision
  20389. floating-point operations are used.
  20390. '-m4a-single'
  20391. Generate code for the SH4a assuming the floating-point unit is in
  20392. single-precision mode by default.
  20393. '-m4a'
  20394. Generate code for the SH4a.
  20395. '-m4al'
  20396. Same as '-m4a-nofpu', except that it implicitly passes '-dsp' to
  20397. the assembler. GCC doesn't generate any DSP instructions at the
  20398. moment.
  20399. '-mb'
  20400. Compile code for the processor in big-endian mode.
  20401. '-ml'
  20402. Compile code for the processor in little-endian mode.
  20403. '-mdalign'
  20404. Align doubles at 64-bit boundaries. Note that this changes the
  20405. calling conventions, and thus some functions from the standard C
  20406. library do not work unless you recompile it first with '-mdalign'.
  20407. '-mrelax'
  20408. Shorten some address references at link time, when possible; uses
  20409. the linker option '-relax'.
  20410. '-mbigtable'
  20411. Use 32-bit offsets in 'switch' tables. The default is to use
  20412. 16-bit offsets.
  20413. '-mbitops'
  20414. Enable the use of bit manipulation instructions on SH2A.
  20415. '-mfmovd'
  20416. Enable the use of the instruction 'fmovd'. Check '-mdalign' for
  20417. alignment constraints.
  20418. '-mrenesas'
  20419. Comply with the calling conventions defined by Renesas.
  20420. '-mno-renesas'
  20421. Comply with the calling conventions defined for GCC before the
  20422. Renesas conventions were available. This option is the default for
  20423. all targets of the SH toolchain.
  20424. '-mnomacsave'
  20425. Mark the 'MAC' register as call-clobbered, even if '-mrenesas' is
  20426. given.
  20427. '-mieee'
  20428. '-mno-ieee'
  20429. Control the IEEE compliance of floating-point comparisons, which
  20430. affects the handling of cases where the result of a comparison is
  20431. unordered. By default '-mieee' is implicitly enabled. If
  20432. '-ffinite-math-only' is enabled '-mno-ieee' is implicitly set,
  20433. which results in faster floating-point greater-equal and less-equal
  20434. comparisons. The implicit settings can be overridden by specifying
  20435. either '-mieee' or '-mno-ieee'.
  20436. '-minline-ic_invalidate'
  20437. Inline code to invalidate instruction cache entries after setting
  20438. up nested function trampolines. This option has no effect if
  20439. '-musermode' is in effect and the selected code generation option
  20440. (e.g. '-m4') does not allow the use of the 'icbi' instruction. If
  20441. the selected code generation option does not allow the use of the
  20442. 'icbi' instruction, and '-musermode' is not in effect, the inlined
  20443. code manipulates the instruction cache address array directly with
  20444. an associative write. This not only requires privileged mode at
  20445. run time, but it also fails if the cache line had been mapped via
  20446. the TLB and has become unmapped.
  20447. '-misize'
  20448. Dump instruction size and location in the assembly code.
  20449. '-mpadstruct'
  20450. This option is deprecated. It pads structures to multiple of 4
  20451. bytes, which is incompatible with the SH ABI.
  20452. '-matomic-model=MODEL'
  20453. Sets the model of atomic operations and additional parameters as a
  20454. comma separated list. For details on the atomic built-in functions
  20455. see *note __atomic Builtins::. The following models and parameters
  20456. are supported:
  20457. 'none'
  20458. Disable compiler generated atomic sequences and emit library
  20459. calls for atomic operations. This is the default if the
  20460. target is not 'sh*-*-linux*'.
  20461. 'soft-gusa'
  20462. Generate GNU/Linux compatible gUSA software atomic sequences
  20463. for the atomic built-in functions. The generated atomic
  20464. sequences require additional support from the
  20465. interrupt/exception handling code of the system and are only
  20466. suitable for SH3* and SH4* single-core systems. This option
  20467. is enabled by default when the target is 'sh*-*-linux*' and
  20468. SH3* or SH4*. When the target is SH4A, this option also
  20469. partially utilizes the hardware atomic instructions 'movli.l'
  20470. and 'movco.l' to create more efficient code, unless 'strict'
  20471. is specified.
  20472. 'soft-tcb'
  20473. Generate software atomic sequences that use a variable in the
  20474. thread control block. This is a variation of the gUSA
  20475. sequences which can also be used on SH1* and SH2* targets.
  20476. The generated atomic sequences require additional support from
  20477. the interrupt/exception handling code of the system and are
  20478. only suitable for single-core systems. When using this model,
  20479. the 'gbr-offset=' parameter has to be specified as well.
  20480. 'soft-imask'
  20481. Generate software atomic sequences that temporarily disable
  20482. interrupts by setting 'SR.IMASK = 1111'. This model works
  20483. only when the program runs in privileged mode and is only
  20484. suitable for single-core systems. Additional support from the
  20485. interrupt/exception handling code of the system is not
  20486. required. This model is enabled by default when the target is
  20487. 'sh*-*-linux*' and SH1* or SH2*.
  20488. 'hard-llcs'
  20489. Generate hardware atomic sequences using the 'movli.l' and
  20490. 'movco.l' instructions only. This is only available on SH4A
  20491. and is suitable for multi-core systems. Since the hardware
  20492. instructions support only 32 bit atomic variables access to 8
  20493. or 16 bit variables is emulated with 32 bit accesses. Code
  20494. compiled with this option is also compatible with other
  20495. software atomic model interrupt/exception handling systems if
  20496. executed on an SH4A system. Additional support from the
  20497. interrupt/exception handling code of the system is not
  20498. required for this model.
  20499. 'gbr-offset='
  20500. This parameter specifies the offset in bytes of the variable
  20501. in the thread control block structure that should be used by
  20502. the generated atomic sequences when the 'soft-tcb' model has
  20503. been selected. For other models this parameter is ignored.
  20504. The specified value must be an integer multiple of four and in
  20505. the range 0-1020.
  20506. 'strict'
  20507. This parameter prevents mixed usage of multiple atomic models,
  20508. even if they are compatible, and makes the compiler generate
  20509. atomic sequences of the specified model only.
  20510. '-mtas'
  20511. Generate the 'tas.b' opcode for '__atomic_test_and_set'. Notice
  20512. that depending on the particular hardware and software
  20513. configuration this can degrade overall performance due to the
  20514. operand cache line flushes that are implied by the 'tas.b'
  20515. instruction. On multi-core SH4A processors the 'tas.b' instruction
  20516. must be used with caution since it can result in data corruption
  20517. for certain cache configurations.
  20518. '-mprefergot'
  20519. When generating position-independent code, emit function calls
  20520. using the Global Offset Table instead of the Procedure Linkage
  20521. Table.
  20522. '-musermode'
  20523. '-mno-usermode'
  20524. Don't allow (allow) the compiler generating privileged mode code.
  20525. Specifying '-musermode' also implies '-mno-inline-ic_invalidate' if
  20526. the inlined code would not work in user mode. '-musermode' is the
  20527. default when the target is 'sh*-*-linux*'. If the target is SH1*
  20528. or SH2* '-musermode' has no effect, since there is no user mode.
  20529. '-multcost=NUMBER'
  20530. Set the cost to assume for a multiply insn.
  20531. '-mdiv=STRATEGY'
  20532. Set the division strategy to be used for integer division
  20533. operations. STRATEGY can be one of:
  20534. 'call-div1'
  20535. Calls a library function that uses the single-step division
  20536. instruction 'div1' to perform the operation. Division by zero
  20537. calculates an unspecified result and does not trap. This is
  20538. the default except for SH4, SH2A and SHcompact.
  20539. 'call-fp'
  20540. Calls a library function that performs the operation in double
  20541. precision floating point. Division by zero causes a
  20542. floating-point exception. This is the default for SHcompact
  20543. with FPU. Specifying this for targets that do not have a
  20544. double precision FPU defaults to 'call-div1'.
  20545. 'call-table'
  20546. Calls a library function that uses a lookup table for small
  20547. divisors and the 'div1' instruction with case distinction for
  20548. larger divisors. Division by zero calculates an unspecified
  20549. result and does not trap. This is the default for SH4.
  20550. Specifying this for targets that do not have dynamic shift
  20551. instructions defaults to 'call-div1'.
  20552. When a division strategy has not been specified the default
  20553. strategy is selected based on the current target. For SH2A the
  20554. default strategy is to use the 'divs' and 'divu' instructions
  20555. instead of library function calls.
  20556. '-maccumulate-outgoing-args'
  20557. Reserve space once for outgoing arguments in the function prologue
  20558. rather than around each call. Generally beneficial for performance
  20559. and size. Also needed for unwinding to avoid changing the stack
  20560. frame around conditional code.
  20561. '-mdivsi3_libfunc=NAME'
  20562. Set the name of the library function used for 32-bit signed
  20563. division to NAME. This only affects the name used in the 'call'
  20564. division strategies, and the compiler still expects the same sets
  20565. of input/output/clobbered registers as if this option were not
  20566. present.
  20567. '-mfixed-range=REGISTER-RANGE'
  20568. Generate code treating the given register range as fixed registers.
  20569. A fixed register is one that the register allocator cannot use.
  20570. This is useful when compiling kernel code. A register range is
  20571. specified as two registers separated by a dash. Multiple register
  20572. ranges can be specified separated by a comma.
  20573. '-mbranch-cost=NUM'
  20574. Assume NUM to be the cost for a branch instruction. Higher numbers
  20575. make the compiler try to generate more branch-free code if
  20576. possible. If not specified the value is selected depending on the
  20577. processor type that is being compiled for.
  20578. '-mzdcbranch'
  20579. '-mno-zdcbranch'
  20580. Assume (do not assume) that zero displacement conditional branch
  20581. instructions 'bt' and 'bf' are fast. If '-mzdcbranch' is
  20582. specified, the compiler prefers zero displacement branch code
  20583. sequences. This is enabled by default when generating code for SH4
  20584. and SH4A. It can be explicitly disabled by specifying
  20585. '-mno-zdcbranch'.
  20586. '-mcbranch-force-delay-slot'
  20587. Force the usage of delay slots for conditional branches, which
  20588. stuffs the delay slot with a 'nop' if a suitable instruction cannot
  20589. be found. By default this option is disabled. It can be enabled
  20590. to work around hardware bugs as found in the original SH7055.
  20591. '-mfused-madd'
  20592. '-mno-fused-madd'
  20593. Generate code that uses (does not use) the floating-point multiply
  20594. and accumulate instructions. These instructions are generated by
  20595. default if hardware floating point is used. The machine-dependent
  20596. '-mfused-madd' option is now mapped to the machine-independent
  20597. '-ffp-contract=fast' option, and '-mno-fused-madd' is mapped to
  20598. '-ffp-contract=off'.
  20599. '-mfsca'
  20600. '-mno-fsca'
  20601. Allow or disallow the compiler to emit the 'fsca' instruction for
  20602. sine and cosine approximations. The option '-mfsca' must be used
  20603. in combination with '-funsafe-math-optimizations'. It is enabled
  20604. by default when generating code for SH4A. Using '-mno-fsca'
  20605. disables sine and cosine approximations even if
  20606. '-funsafe-math-optimizations' is in effect.
  20607. '-mfsrra'
  20608. '-mno-fsrra'
  20609. Allow or disallow the compiler to emit the 'fsrra' instruction for
  20610. reciprocal square root approximations. The option '-mfsrra' must
  20611. be used in combination with '-funsafe-math-optimizations' and
  20612. '-ffinite-math-only'. It is enabled by default when generating
  20613. code for SH4A. Using '-mno-fsrra' disables reciprocal square root
  20614. approximations even if '-funsafe-math-optimizations' and
  20615. '-ffinite-math-only' are in effect.
  20616. '-mpretend-cmove'
  20617. Prefer zero-displacement conditional branches for conditional move
  20618. instruction patterns. This can result in faster code on the SH4
  20619. processor.
  20620. '-mfdpic'
  20621. Generate code using the FDPIC ABI.
  20622. 
  20623. File: gcc.info, Node: Solaris 2 Options, Next: SPARC Options, Prev: SH Options, Up: Submodel Options
  20624. 3.19.49 Solaris 2 Options
  20625. -------------------------
  20626. These '-m' options are supported on Solaris 2:
  20627. '-mclear-hwcap'
  20628. '-mclear-hwcap' tells the compiler to remove the hardware
  20629. capabilities generated by the Solaris assembler. This is only
  20630. necessary when object files use ISA extensions not supported by the
  20631. current machine, but check at runtime whether or not to use them.
  20632. '-mimpure-text'
  20633. '-mimpure-text', used in addition to '-shared', tells the compiler
  20634. to not pass '-z text' to the linker when linking a shared object.
  20635. Using this option, you can link position-dependent code into a
  20636. shared object.
  20637. '-mimpure-text' suppresses the "relocations remain against
  20638. allocatable but non-writable sections" linker error message.
  20639. However, the necessary relocations trigger copy-on-write, and the
  20640. shared object is not actually shared across processes. Instead of
  20641. using '-mimpure-text', you should compile all source code with
  20642. '-fpic' or '-fPIC'.
  20643. These switches are supported in addition to the above on Solaris 2:
  20644. '-pthreads'
  20645. This is a synonym for '-pthread'.
  20646. 
  20647. File: gcc.info, Node: SPARC Options, Next: System V Options, Prev: Solaris 2 Options, Up: Submodel Options
  20648. 3.19.50 SPARC Options
  20649. ---------------------
  20650. These '-m' options are supported on the SPARC:
  20651. '-mno-app-regs'
  20652. '-mapp-regs'
  20653. Specify '-mapp-regs' to generate output using the global registers
  20654. 2 through 4, which the SPARC SVR4 ABI reserves for applications.
  20655. Like the global register 1, each global register 2 through 4 is
  20656. then treated as an allocable register that is clobbered by function
  20657. calls. This is the default.
  20658. To be fully SVR4 ABI-compliant at the cost of some performance
  20659. loss, specify '-mno-app-regs'. You should compile libraries and
  20660. system software with this option.
  20661. '-mflat'
  20662. '-mno-flat'
  20663. With '-mflat', the compiler does not generate save/restore
  20664. instructions and uses a "flat" or single register window model.
  20665. This model is compatible with the regular register window model.
  20666. The local registers and the input registers (0-5) are still treated
  20667. as "call-saved" registers and are saved on the stack as needed.
  20668. With '-mno-flat' (the default), the compiler generates save/restore
  20669. instructions (except for leaf functions). This is the normal
  20670. operating mode.
  20671. '-mfpu'
  20672. '-mhard-float'
  20673. Generate output containing floating-point instructions. This is
  20674. the default.
  20675. '-mno-fpu'
  20676. '-msoft-float'
  20677. Generate output containing library calls for floating point.
  20678. *Warning:* the requisite libraries are not available for all SPARC
  20679. targets. Normally the facilities of the machine's usual C compiler
  20680. are used, but this cannot be done directly in cross-compilation.
  20681. You must make your own arrangements to provide suitable library
  20682. functions for cross-compilation. The embedded targets
  20683. 'sparc-*-aout' and 'sparclite-*-*' do provide software
  20684. floating-point support.
  20685. '-msoft-float' changes the calling convention in the output file;
  20686. therefore, it is only useful if you compile _all_ of a program with
  20687. this option. In particular, you need to compile 'libgcc.a', the
  20688. library that comes with GCC, with '-msoft-float' in order for this
  20689. to work.
  20690. '-mhard-quad-float'
  20691. Generate output containing quad-word (long double) floating-point
  20692. instructions.
  20693. '-msoft-quad-float'
  20694. Generate output containing library calls for quad-word (long
  20695. double) floating-point instructions. The functions called are
  20696. those specified in the SPARC ABI. This is the default.
  20697. As of this writing, there are no SPARC implementations that have
  20698. hardware support for the quad-word floating-point instructions.
  20699. They all invoke a trap handler for one of these instructions, and
  20700. then the trap handler emulates the effect of the instruction.
  20701. Because of the trap handler overhead, this is much slower than
  20702. calling the ABI library routines. Thus the '-msoft-quad-float'
  20703. option is the default.
  20704. '-mno-unaligned-doubles'
  20705. '-munaligned-doubles'
  20706. Assume that doubles have 8-byte alignment. This is the default.
  20707. With '-munaligned-doubles', GCC assumes that doubles have 8-byte
  20708. alignment only if they are contained in another type, or if they
  20709. have an absolute address. Otherwise, it assumes they have 4-byte
  20710. alignment. Specifying this option avoids some rare compatibility
  20711. problems with code generated by other compilers. It is not the
  20712. default because it results in a performance loss, especially for
  20713. floating-point code.
  20714. '-muser-mode'
  20715. '-mno-user-mode'
  20716. Do not generate code that can only run in supervisor mode. This is
  20717. relevant only for the 'casa' instruction emitted for the LEON3
  20718. processor. This is the default.
  20719. '-mfaster-structs'
  20720. '-mno-faster-structs'
  20721. With '-mfaster-structs', the compiler assumes that structures
  20722. should have 8-byte alignment. This enables the use of pairs of
  20723. 'ldd' and 'std' instructions for copies in structure assignment, in
  20724. place of twice as many 'ld' and 'st' pairs. However, the use of
  20725. this changed alignment directly violates the SPARC ABI. Thus, it's
  20726. intended only for use on targets where the developer acknowledges
  20727. that their resulting code is not directly in line with the rules of
  20728. the ABI.
  20729. '-mstd-struct-return'
  20730. '-mno-std-struct-return'
  20731. With '-mstd-struct-return', the compiler generates checking code in
  20732. functions returning structures or unions to detect size mismatches
  20733. between the two sides of function calls, as per the 32-bit ABI.
  20734. The default is '-mno-std-struct-return'. This option has no effect
  20735. in 64-bit mode.
  20736. '-mlra'
  20737. '-mno-lra'
  20738. Enable Local Register Allocation. This is the default for SPARC
  20739. since GCC 7 so '-mno-lra' needs to be passed to get old Reload.
  20740. '-mcpu=CPU_TYPE'
  20741. Set the instruction set, register set, and instruction scheduling
  20742. parameters for machine type CPU_TYPE. Supported values for
  20743. CPU_TYPE are 'v7', 'cypress', 'v8', 'supersparc', 'hypersparc',
  20744. 'leon', 'leon3', 'leon3v7', 'sparclite', 'f930', 'f934',
  20745. 'sparclite86x', 'sparclet', 'tsc701', 'v9', 'ultrasparc',
  20746. 'ultrasparc3', 'niagara', 'niagara2', 'niagara3', 'niagara4',
  20747. 'niagara7' and 'm8'.
  20748. Native Solaris and GNU/Linux toolchains also support the value
  20749. 'native', which selects the best architecture option for the host
  20750. processor. '-mcpu=native' has no effect if GCC does not recognize
  20751. the processor.
  20752. Default instruction scheduling parameters are used for values that
  20753. select an architecture and not an implementation. These are 'v7',
  20754. 'v8', 'sparclite', 'sparclet', 'v9'.
  20755. Here is a list of each supported architecture and their supported
  20756. implementations.
  20757. v7
  20758. cypress, leon3v7
  20759. v8
  20760. supersparc, hypersparc, leon, leon3
  20761. sparclite
  20762. f930, f934, sparclite86x
  20763. sparclet
  20764. tsc701
  20765. v9
  20766. ultrasparc, ultrasparc3, niagara, niagara2, niagara3,
  20767. niagara4, niagara7, m8
  20768. By default (unless configured otherwise), GCC generates code for
  20769. the V7 variant of the SPARC architecture. With '-mcpu=cypress',
  20770. the compiler additionally optimizes it for the Cypress CY7C602
  20771. chip, as used in the SPARCStation/SPARCServer 3xx series. This is
  20772. also appropriate for the older SPARCStation 1, 2, IPX etc.
  20773. With '-mcpu=v8', GCC generates code for the V8 variant of the SPARC
  20774. architecture. The only difference from V7 code is that the
  20775. compiler emits the integer multiply and integer divide instructions
  20776. which exist in SPARC-V8 but not in SPARC-V7. With
  20777. '-mcpu=supersparc', the compiler additionally optimizes it for the
  20778. SuperSPARC chip, as used in the SPARCStation 10, 1000 and 2000
  20779. series.
  20780. With '-mcpu=sparclite', GCC generates code for the SPARClite
  20781. variant of the SPARC architecture. This adds the integer multiply,
  20782. integer divide step and scan ('ffs') instructions which exist in
  20783. SPARClite but not in SPARC-V7. With '-mcpu=f930', the compiler
  20784. additionally optimizes it for the Fujitsu MB86930 chip, which is
  20785. the original SPARClite, with no FPU. With '-mcpu=f934', the
  20786. compiler additionally optimizes it for the Fujitsu MB86934 chip,
  20787. which is the more recent SPARClite with FPU.
  20788. With '-mcpu=sparclet', GCC generates code for the SPARClet variant
  20789. of the SPARC architecture. This adds the integer multiply,
  20790. multiply/accumulate, integer divide step and scan ('ffs')
  20791. instructions which exist in SPARClet but not in SPARC-V7. With
  20792. '-mcpu=tsc701', the compiler additionally optimizes it for the
  20793. TEMIC SPARClet chip.
  20794. With '-mcpu=v9', GCC generates code for the V9 variant of the SPARC
  20795. architecture. This adds 64-bit integer and floating-point move
  20796. instructions, 3 additional floating-point condition code registers
  20797. and conditional move instructions. With '-mcpu=ultrasparc', the
  20798. compiler additionally optimizes it for the Sun UltraSPARC I/II/IIi
  20799. chips. With '-mcpu=ultrasparc3', the compiler additionally
  20800. optimizes it for the Sun UltraSPARC III/III+/IIIi/IIIi+/IV/IV+
  20801. chips. With '-mcpu=niagara', the compiler additionally optimizes
  20802. it for Sun UltraSPARC T1 chips. With '-mcpu=niagara2', the
  20803. compiler additionally optimizes it for Sun UltraSPARC T2 chips.
  20804. With '-mcpu=niagara3', the compiler additionally optimizes it for
  20805. Sun UltraSPARC T3 chips. With '-mcpu=niagara4', the compiler
  20806. additionally optimizes it for Sun UltraSPARC T4 chips. With
  20807. '-mcpu=niagara7', the compiler additionally optimizes it for Oracle
  20808. SPARC M7 chips. With '-mcpu=m8', the compiler additionally
  20809. optimizes it for Oracle M8 chips.
  20810. '-mtune=CPU_TYPE'
  20811. Set the instruction scheduling parameters for machine type
  20812. CPU_TYPE, but do not set the instruction set or register set that
  20813. the option '-mcpu=CPU_TYPE' does.
  20814. The same values for '-mcpu=CPU_TYPE' can be used for
  20815. '-mtune=CPU_TYPE', but the only useful values are those that select
  20816. a particular CPU implementation. Those are 'cypress',
  20817. 'supersparc', 'hypersparc', 'leon', 'leon3', 'leon3v7', 'f930',
  20818. 'f934', 'sparclite86x', 'tsc701', 'ultrasparc', 'ultrasparc3',
  20819. 'niagara', 'niagara2', 'niagara3', 'niagara4', 'niagara7' and 'm8'.
  20820. With native Solaris and GNU/Linux toolchains, 'native' can also be
  20821. used.
  20822. '-mv8plus'
  20823. '-mno-v8plus'
  20824. With '-mv8plus', GCC generates code for the SPARC-V8+ ABI. The
  20825. difference from the V8 ABI is that the global and out registers are
  20826. considered 64 bits wide. This is enabled by default on Solaris in
  20827. 32-bit mode for all SPARC-V9 processors.
  20828. '-mvis'
  20829. '-mno-vis'
  20830. With '-mvis', GCC generates code that takes advantage of the
  20831. UltraSPARC Visual Instruction Set extensions. The default is
  20832. '-mno-vis'.
  20833. '-mvis2'
  20834. '-mno-vis2'
  20835. With '-mvis2', GCC generates code that takes advantage of version
  20836. 2.0 of the UltraSPARC Visual Instruction Set extensions. The
  20837. default is '-mvis2' when targeting a cpu that supports such
  20838. instructions, such as UltraSPARC-III and later. Setting '-mvis2'
  20839. also sets '-mvis'.
  20840. '-mvis3'
  20841. '-mno-vis3'
  20842. With '-mvis3', GCC generates code that takes advantage of version
  20843. 3.0 of the UltraSPARC Visual Instruction Set extensions. The
  20844. default is '-mvis3' when targeting a cpu that supports such
  20845. instructions, such as niagara-3 and later. Setting '-mvis3' also
  20846. sets '-mvis2' and '-mvis'.
  20847. '-mvis4'
  20848. '-mno-vis4'
  20849. With '-mvis4', GCC generates code that takes advantage of version
  20850. 4.0 of the UltraSPARC Visual Instruction Set extensions. The
  20851. default is '-mvis4' when targeting a cpu that supports such
  20852. instructions, such as niagara-7 and later. Setting '-mvis4' also
  20853. sets '-mvis3', '-mvis2' and '-mvis'.
  20854. '-mvis4b'
  20855. '-mno-vis4b'
  20856. With '-mvis4b', GCC generates code that takes advantage of version
  20857. 4.0 of the UltraSPARC Visual Instruction Set extensions, plus the
  20858. additional VIS instructions introduced in the Oracle SPARC
  20859. Architecture 2017. The default is '-mvis4b' when targeting a cpu
  20860. that supports such instructions, such as m8 and later. Setting
  20861. '-mvis4b' also sets '-mvis4', '-mvis3', '-mvis2' and '-mvis'.
  20862. '-mcbcond'
  20863. '-mno-cbcond'
  20864. With '-mcbcond', GCC generates code that takes advantage of the
  20865. UltraSPARC Compare-and-Branch-on-Condition instructions. The
  20866. default is '-mcbcond' when targeting a CPU that supports such
  20867. instructions, such as Niagara-4 and later.
  20868. '-mfmaf'
  20869. '-mno-fmaf'
  20870. With '-mfmaf', GCC generates code that takes advantage of the
  20871. UltraSPARC Fused Multiply-Add Floating-point instructions. The
  20872. default is '-mfmaf' when targeting a CPU that supports such
  20873. instructions, such as Niagara-3 and later.
  20874. '-mfsmuld'
  20875. '-mno-fsmuld'
  20876. With '-mfsmuld', GCC generates code that takes advantage of the
  20877. Floating-point Multiply Single to Double (FsMULd) instruction. The
  20878. default is '-mfsmuld' when targeting a CPU supporting the
  20879. architecture versions V8 or V9 with FPU except '-mcpu=leon'.
  20880. '-mpopc'
  20881. '-mno-popc'
  20882. With '-mpopc', GCC generates code that takes advantage of the
  20883. UltraSPARC Population Count instruction. The default is '-mpopc'
  20884. when targeting a CPU that supports such an instruction, such as
  20885. Niagara-2 and later.
  20886. '-msubxc'
  20887. '-mno-subxc'
  20888. With '-msubxc', GCC generates code that takes advantage of the
  20889. UltraSPARC Subtract-Extended-with-Carry instruction. The default
  20890. is '-msubxc' when targeting a CPU that supports such an
  20891. instruction, such as Niagara-7 and later.
  20892. '-mfix-at697f'
  20893. Enable the documented workaround for the single erratum of the
  20894. Atmel AT697F processor (which corresponds to erratum #13 of the
  20895. AT697E processor).
  20896. '-mfix-ut699'
  20897. Enable the documented workarounds for the floating-point errata and
  20898. the data cache nullify errata of the UT699 processor.
  20899. '-mfix-ut700'
  20900. Enable the documented workaround for the back-to-back store errata
  20901. of the UT699E/UT700 processor.
  20902. '-mfix-gr712rc'
  20903. Enable the documented workaround for the back-to-back store errata
  20904. of the GR712RC processor.
  20905. These '-m' options are supported in addition to the above on SPARC-V9
  20906. processors in 64-bit environments:
  20907. '-m32'
  20908. '-m64'
  20909. Generate code for a 32-bit or 64-bit environment. The 32-bit
  20910. environment sets int, long and pointer to 32 bits. The 64-bit
  20911. environment sets int to 32 bits and long and pointer to 64 bits.
  20912. '-mcmodel=WHICH'
  20913. Set the code model to one of
  20914. 'medlow'
  20915. The Medium/Low code model: 64-bit addresses, programs must be
  20916. linked in the low 32 bits of memory. Programs can be
  20917. statically or dynamically linked.
  20918. 'medmid'
  20919. The Medium/Middle code model: 64-bit addresses, programs must
  20920. be linked in the low 44 bits of memory, the text and data
  20921. segments must be less than 2GB in size and the data segment
  20922. must be located within 2GB of the text segment.
  20923. 'medany'
  20924. The Medium/Anywhere code model: 64-bit addresses, programs may
  20925. be linked anywhere in memory, the text and data segments must
  20926. be less than 2GB in size and the data segment must be located
  20927. within 2GB of the text segment.
  20928. 'embmedany'
  20929. The Medium/Anywhere code model for embedded systems: 64-bit
  20930. addresses, the text and data segments must be less than 2GB in
  20931. size, both starting anywhere in memory (determined at link
  20932. time). The global register %g4 points to the base of the data
  20933. segment. Programs are statically linked and PIC is not
  20934. supported.
  20935. '-mmemory-model=MEM-MODEL'
  20936. Set the memory model in force on the processor to one of
  20937. 'default'
  20938. The default memory model for the processor and operating
  20939. system.
  20940. 'rmo'
  20941. Relaxed Memory Order
  20942. 'pso'
  20943. Partial Store Order
  20944. 'tso'
  20945. Total Store Order
  20946. 'sc'
  20947. Sequential Consistency
  20948. These memory models are formally defined in Appendix D of the
  20949. SPARC-V9 architecture manual, as set in the processor's 'PSTATE.MM'
  20950. field.
  20951. '-mstack-bias'
  20952. '-mno-stack-bias'
  20953. With '-mstack-bias', GCC assumes that the stack pointer, and frame
  20954. pointer if present, are offset by -2047 which must be added back
  20955. when making stack frame references. This is the default in 64-bit
  20956. mode. Otherwise, assume no such offset is present.
  20957. 
  20958. File: gcc.info, Node: System V Options, Next: TILE-Gx Options, Prev: SPARC Options, Up: Submodel Options
  20959. 3.19.51 Options for System V
  20960. ----------------------------
  20961. These additional options are available on System V Release 4 for
  20962. compatibility with other compilers on those systems:
  20963. '-G'
  20964. Create a shared object. It is recommended that '-symbolic' or
  20965. '-shared' be used instead.
  20966. '-Qy'
  20967. Identify the versions of each tool used by the compiler, in a
  20968. '.ident' assembler directive in the output.
  20969. '-Qn'
  20970. Refrain from adding '.ident' directives to the output file (this is
  20971. the default).
  20972. '-YP,DIRS'
  20973. Search the directories DIRS, and no others, for libraries specified
  20974. with '-l'.
  20975. '-Ym,DIR'
  20976. Look in the directory DIR to find the M4 preprocessor. The
  20977. assembler uses this option.
  20978. 
  20979. File: gcc.info, Node: TILE-Gx Options, Next: TILEPro Options, Prev: System V Options, Up: Submodel Options
  20980. 3.19.52 TILE-Gx Options
  20981. -----------------------
  20982. These '-m' options are supported on the TILE-Gx:
  20983. '-mcmodel=small'
  20984. Generate code for the small model. The distance for direct calls
  20985. is limited to 500M in either direction. PC-relative addresses are
  20986. 32 bits. Absolute addresses support the full address range.
  20987. '-mcmodel=large'
  20988. Generate code for the large model. There is no limitation on call
  20989. distance, pc-relative addresses, or absolute addresses.
  20990. '-mcpu=NAME'
  20991. Selects the type of CPU to be targeted. Currently the only
  20992. supported type is 'tilegx'.
  20993. '-m32'
  20994. '-m64'
  20995. Generate code for a 32-bit or 64-bit environment. The 32-bit
  20996. environment sets int, long, and pointer to 32 bits. The 64-bit
  20997. environment sets int to 32 bits and long and pointer to 64 bits.
  20998. '-mbig-endian'
  20999. '-mlittle-endian'
  21000. Generate code in big/little endian mode, respectively.
  21001. 
  21002. File: gcc.info, Node: TILEPro Options, Next: V850 Options, Prev: TILE-Gx Options, Up: Submodel Options
  21003. 3.19.53 TILEPro Options
  21004. -----------------------
  21005. These '-m' options are supported on the TILEPro:
  21006. '-mcpu=NAME'
  21007. Selects the type of CPU to be targeted. Currently the only
  21008. supported type is 'tilepro'.
  21009. '-m32'
  21010. Generate code for a 32-bit environment, which sets int, long, and
  21011. pointer to 32 bits. This is the only supported behavior so the
  21012. flag is essentially ignored.
  21013. 
  21014. File: gcc.info, Node: V850 Options, Next: VAX Options, Prev: TILEPro Options, Up: Submodel Options
  21015. 3.19.54 V850 Options
  21016. --------------------
  21017. These '-m' options are defined for V850 implementations:
  21018. '-mlong-calls'
  21019. '-mno-long-calls'
  21020. Treat all calls as being far away (near). If calls are assumed to
  21021. be far away, the compiler always loads the function's address into
  21022. a register, and calls indirect through the pointer.
  21023. '-mno-ep'
  21024. '-mep'
  21025. Do not optimize (do optimize) basic blocks that use the same index
  21026. pointer 4 or more times to copy pointer into the 'ep' register, and
  21027. use the shorter 'sld' and 'sst' instructions. The '-mep' option is
  21028. on by default if you optimize.
  21029. '-mno-prolog-function'
  21030. '-mprolog-function'
  21031. Do not use (do use) external functions to save and restore
  21032. registers at the prologue and epilogue of a function. The external
  21033. functions are slower, but use less code space if more than one
  21034. function saves the same number of registers. The
  21035. '-mprolog-function' option is on by default if you optimize.
  21036. '-mspace'
  21037. Try to make the code as small as possible. At present, this just
  21038. turns on the '-mep' and '-mprolog-function' options.
  21039. '-mtda=N'
  21040. Put static or global variables whose size is N bytes or less into
  21041. the tiny data area that register 'ep' points to. The tiny data
  21042. area can hold up to 256 bytes in total (128 bytes for byte
  21043. references).
  21044. '-msda=N'
  21045. Put static or global variables whose size is N bytes or less into
  21046. the small data area that register 'gp' points to. The small data
  21047. area can hold up to 64 kilobytes.
  21048. '-mzda=N'
  21049. Put static or global variables whose size is N bytes or less into
  21050. the first 32 kilobytes of memory.
  21051. '-mv850'
  21052. Specify that the target processor is the V850.
  21053. '-mv850e3v5'
  21054. Specify that the target processor is the V850E3V5. The
  21055. preprocessor constant '__v850e3v5__' is defined if this option is
  21056. used.
  21057. '-mv850e2v4'
  21058. Specify that the target processor is the V850E3V5. This is an
  21059. alias for the '-mv850e3v5' option.
  21060. '-mv850e2v3'
  21061. Specify that the target processor is the V850E2V3. The
  21062. preprocessor constant '__v850e2v3__' is defined if this option is
  21063. used.
  21064. '-mv850e2'
  21065. Specify that the target processor is the V850E2. The preprocessor
  21066. constant '__v850e2__' is defined if this option is used.
  21067. '-mv850e1'
  21068. Specify that the target processor is the V850E1. The preprocessor
  21069. constants '__v850e1__' and '__v850e__' are defined if this option
  21070. is used.
  21071. '-mv850es'
  21072. Specify that the target processor is the V850ES. This is an alias
  21073. for the '-mv850e1' option.
  21074. '-mv850e'
  21075. Specify that the target processor is the V850E. The preprocessor
  21076. constant '__v850e__' is defined if this option is used.
  21077. If neither '-mv850' nor '-mv850e' nor '-mv850e1' nor '-mv850e2' nor
  21078. '-mv850e2v3' nor '-mv850e3v5' are defined then a default target
  21079. processor is chosen and the relevant '__v850*__' preprocessor
  21080. constant is defined.
  21081. The preprocessor constants '__v850' and '__v851__' are always
  21082. defined, regardless of which processor variant is the target.
  21083. '-mdisable-callt'
  21084. '-mno-disable-callt'
  21085. This option suppresses generation of the 'CALLT' instruction for
  21086. the v850e, v850e1, v850e2, v850e2v3 and v850e3v5 flavors of the
  21087. v850 architecture.
  21088. This option is enabled by default when the RH850 ABI is in use (see
  21089. '-mrh850-abi'), and disabled by default when the GCC ABI is in use.
  21090. If 'CALLT' instructions are being generated then the C preprocessor
  21091. symbol '__V850_CALLT__' is defined.
  21092. '-mrelax'
  21093. '-mno-relax'
  21094. Pass on (or do not pass on) the '-mrelax' command-line option to
  21095. the assembler.
  21096. '-mlong-jumps'
  21097. '-mno-long-jumps'
  21098. Disable (or re-enable) the generation of PC-relative jump
  21099. instructions.
  21100. '-msoft-float'
  21101. '-mhard-float'
  21102. Disable (or re-enable) the generation of hardware floating point
  21103. instructions. This option is only significant when the target
  21104. architecture is 'V850E2V3' or higher. If hardware floating point
  21105. instructions are being generated then the C preprocessor symbol
  21106. '__FPU_OK__' is defined, otherwise the symbol '__NO_FPU__' is
  21107. defined.
  21108. '-mloop'
  21109. Enables the use of the e3v5 LOOP instruction. The use of this
  21110. instruction is not enabled by default when the e3v5 architecture is
  21111. selected because its use is still experimental.
  21112. '-mrh850-abi'
  21113. '-mghs'
  21114. Enables support for the RH850 version of the V850 ABI. This is the
  21115. default. With this version of the ABI the following rules apply:
  21116. * Integer sized structures and unions are returned via a memory
  21117. pointer rather than a register.
  21118. * Large structures and unions (more than 8 bytes in size) are
  21119. passed by value.
  21120. * Functions are aligned to 16-bit boundaries.
  21121. * The '-m8byte-align' command-line option is supported.
  21122. * The '-mdisable-callt' command-line option is enabled by
  21123. default. The '-mno-disable-callt' command-line option is not
  21124. supported.
  21125. When this version of the ABI is enabled the C preprocessor symbol
  21126. '__V850_RH850_ABI__' is defined.
  21127. '-mgcc-abi'
  21128. Enables support for the old GCC version of the V850 ABI. With this
  21129. version of the ABI the following rules apply:
  21130. * Integer sized structures and unions are returned in register
  21131. 'r10'.
  21132. * Large structures and unions (more than 8 bytes in size) are
  21133. passed by reference.
  21134. * Functions are aligned to 32-bit boundaries, unless optimizing
  21135. for size.
  21136. * The '-m8byte-align' command-line option is not supported.
  21137. * The '-mdisable-callt' command-line option is supported but not
  21138. enabled by default.
  21139. When this version of the ABI is enabled the C preprocessor symbol
  21140. '__V850_GCC_ABI__' is defined.
  21141. '-m8byte-align'
  21142. '-mno-8byte-align'
  21143. Enables support for 'double' and 'long long' types to be aligned on
  21144. 8-byte boundaries. The default is to restrict the alignment of all
  21145. objects to at most 4-bytes. When '-m8byte-align' is in effect the
  21146. C preprocessor symbol '__V850_8BYTE_ALIGN__' is defined.
  21147. '-mbig-switch'
  21148. Generate code suitable for big switch tables. Use this option only
  21149. if the assembler/linker complain about out of range branches within
  21150. a switch table.
  21151. '-mapp-regs'
  21152. This option causes r2 and r5 to be used in the code generated by
  21153. the compiler. This setting is the default.
  21154. '-mno-app-regs'
  21155. This option causes r2 and r5 to be treated as fixed registers.
  21156. 
  21157. File: gcc.info, Node: VAX Options, Next: Visium Options, Prev: V850 Options, Up: Submodel Options
  21158. 3.19.55 VAX Options
  21159. -------------------
  21160. These '-m' options are defined for the VAX:
  21161. '-munix'
  21162. Do not output certain jump instructions ('aobleq' and so on) that
  21163. the Unix assembler for the VAX cannot handle across long ranges.
  21164. '-mgnu'
  21165. Do output those jump instructions, on the assumption that the GNU
  21166. assembler is being used.
  21167. '-mg'
  21168. Output code for G-format floating-point numbers instead of
  21169. D-format.
  21170. 
  21171. File: gcc.info, Node: Visium Options, Next: VMS Options, Prev: VAX Options, Up: Submodel Options
  21172. 3.19.56 Visium Options
  21173. ----------------------
  21174. '-mdebug'
  21175. A program which performs file I/O and is destined to run on an MCM
  21176. target should be linked with this option. It causes the libraries
  21177. libc.a and libdebug.a to be linked. The program should be run on
  21178. the target under the control of the GDB remote debugging stub.
  21179. '-msim'
  21180. A program which performs file I/O and is destined to run on the
  21181. simulator should be linked with option. This causes libraries
  21182. libc.a and libsim.a to be linked.
  21183. '-mfpu'
  21184. '-mhard-float'
  21185. Generate code containing floating-point instructions. This is the
  21186. default.
  21187. '-mno-fpu'
  21188. '-msoft-float'
  21189. Generate code containing library calls for floating-point.
  21190. '-msoft-float' changes the calling convention in the output file;
  21191. therefore, it is only useful if you compile _all_ of a program with
  21192. this option. In particular, you need to compile 'libgcc.a', the
  21193. library that comes with GCC, with '-msoft-float' in order for this
  21194. to work.
  21195. '-mcpu=CPU_TYPE'
  21196. Set the instruction set, register set, and instruction scheduling
  21197. parameters for machine type CPU_TYPE. Supported values for
  21198. CPU_TYPE are 'mcm', 'gr5' and 'gr6'.
  21199. 'mcm' is a synonym of 'gr5' present for backward compatibility.
  21200. By default (unless configured otherwise), GCC generates code for
  21201. the GR5 variant of the Visium architecture.
  21202. With '-mcpu=gr6', GCC generates code for the GR6 variant of the
  21203. Visium architecture. The only difference from GR5 code is that the
  21204. compiler will generate block move instructions.
  21205. '-mtune=CPU_TYPE'
  21206. Set the instruction scheduling parameters for machine type
  21207. CPU_TYPE, but do not set the instruction set or register set that
  21208. the option '-mcpu=CPU_TYPE' would.
  21209. '-msv-mode'
  21210. Generate code for the supervisor mode, where there are no
  21211. restrictions on the access to general registers. This is the
  21212. default.
  21213. '-muser-mode'
  21214. Generate code for the user mode, where the access to some general
  21215. registers is forbidden: on the GR5, registers r24 to r31 cannot be
  21216. accessed in this mode; on the GR6, only registers r29 to r31 are
  21217. affected.
  21218. 
  21219. File: gcc.info, Node: VMS Options, Next: VxWorks Options, Prev: Visium Options, Up: Submodel Options
  21220. 3.19.57 VMS Options
  21221. -------------------
  21222. These '-m' options are defined for the VMS implementations:
  21223. '-mvms-return-codes'
  21224. Return VMS condition codes from 'main'. The default is to return
  21225. POSIX-style condition (e.g. error) codes.
  21226. '-mdebug-main=PREFIX'
  21227. Flag the first routine whose name starts with PREFIX as the main
  21228. routine for the debugger.
  21229. '-mmalloc64'
  21230. Default to 64-bit memory allocation routines.
  21231. '-mpointer-size=SIZE'
  21232. Set the default size of pointers. Possible options for SIZE are
  21233. '32' or 'short' for 32 bit pointers, '64' or 'long' for 64 bit
  21234. pointers, and 'no' for supporting only 32 bit pointers. The later
  21235. option disables 'pragma pointer_size'.
  21236. 
  21237. File: gcc.info, Node: VxWorks Options, Next: x86 Options, Prev: VMS Options, Up: Submodel Options
  21238. 3.19.58 VxWorks Options
  21239. -----------------------
  21240. The options in this section are defined for all VxWorks targets.
  21241. Options specific to the target hardware are listed with the other
  21242. options for that target.
  21243. '-mrtp'
  21244. GCC can generate code for both VxWorks kernels and real time
  21245. processes (RTPs). This option switches from the former to the
  21246. latter. It also defines the preprocessor macro '__RTP__'.
  21247. '-non-static'
  21248. Link an RTP executable against shared libraries rather than static
  21249. libraries. The options '-static' and '-shared' can also be used
  21250. for RTPs (*note Link Options::); '-static' is the default.
  21251. '-Bstatic'
  21252. '-Bdynamic'
  21253. These options are passed down to the linker. They are defined for
  21254. compatibility with Diab.
  21255. '-Xbind-lazy'
  21256. Enable lazy binding of function calls. This option is equivalent
  21257. to '-Wl,-z,now' and is defined for compatibility with Diab.
  21258. '-Xbind-now'
  21259. Disable lazy binding of function calls. This option is the default
  21260. and is defined for compatibility with Diab.
  21261. 
  21262. File: gcc.info, Node: x86 Options, Next: x86 Windows Options, Prev: VxWorks Options, Up: Submodel Options
  21263. 3.19.59 x86 Options
  21264. -------------------
  21265. These '-m' options are defined for the x86 family of computers.
  21266. '-march=CPU-TYPE'
  21267. Generate instructions for the machine type CPU-TYPE. In contrast
  21268. to '-mtune=CPU-TYPE', which merely tunes the generated code for the
  21269. specified CPU-TYPE, '-march=CPU-TYPE' allows GCC to generate code
  21270. that may not run at all on processors other than the one indicated.
  21271. Specifying '-march=CPU-TYPE' implies '-mtune=CPU-TYPE'.
  21272. The choices for CPU-TYPE are:
  21273. 'native'
  21274. This selects the CPU to generate code for at compilation time
  21275. by determining the processor type of the compiling machine.
  21276. Using '-march=native' enables all instruction subsets
  21277. supported by the local machine (hence the result might not run
  21278. on different machines). Using '-mtune=native' produces code
  21279. optimized for the local machine under the constraints of the
  21280. selected instruction set.
  21281. 'x86-64'
  21282. A generic CPU with 64-bit extensions.
  21283. 'i386'
  21284. Original Intel i386 CPU.
  21285. 'i486'
  21286. Intel i486 CPU. (No scheduling is implemented for this chip.)
  21287. 'i586'
  21288. 'pentium'
  21289. Intel Pentium CPU with no MMX support.
  21290. 'lakemont'
  21291. Intel Lakemont MCU, based on Intel Pentium CPU.
  21292. 'pentium-mmx'
  21293. Intel Pentium MMX CPU, based on Pentium core with MMX
  21294. instruction set support.
  21295. 'pentiumpro'
  21296. Intel Pentium Pro CPU.
  21297. 'i686'
  21298. When used with '-march', the Pentium Pro instruction set is
  21299. used, so the code runs on all i686 family chips. When used
  21300. with '-mtune', it has the same meaning as 'generic'.
  21301. 'pentium2'
  21302. Intel Pentium II CPU, based on Pentium Pro core with MMX
  21303. instruction set support.
  21304. 'pentium3'
  21305. 'pentium3m'
  21306. Intel Pentium III CPU, based on Pentium Pro core with MMX and
  21307. SSE instruction set support.
  21308. 'pentium-m'
  21309. Intel Pentium M; low-power version of Intel Pentium III CPU
  21310. with MMX, SSE and SSE2 instruction set support. Used by
  21311. Centrino notebooks.
  21312. 'pentium4'
  21313. 'pentium4m'
  21314. Intel Pentium 4 CPU with MMX, SSE and SSE2 instruction set
  21315. support.
  21316. 'prescott'
  21317. Improved version of Intel Pentium 4 CPU with MMX, SSE, SSE2
  21318. and SSE3 instruction set support.
  21319. 'nocona'
  21320. Improved version of Intel Pentium 4 CPU with 64-bit
  21321. extensions, MMX, SSE, SSE2 and SSE3 instruction set support.
  21322. 'core2'
  21323. Intel Core 2 CPU with 64-bit extensions, MMX, SSE, SSE2, SSE3
  21324. and SSSE3 instruction set support.
  21325. 'nehalem'
  21326. Intel Nehalem CPU with 64-bit extensions, MMX, SSE, SSE2,
  21327. SSE3, SSSE3, SSE4.1, SSE4.2 and POPCNT instruction set
  21328. support.
  21329. 'westmere'
  21330. Intel Westmere CPU with 64-bit extensions, MMX, SSE, SSE2,
  21331. SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AES and PCLMUL
  21332. instruction set support.
  21333. 'sandybridge'
  21334. Intel Sandy Bridge CPU with 64-bit extensions, MMX, SSE, SSE2,
  21335. SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AES and PCLMUL
  21336. instruction set support.
  21337. 'ivybridge'
  21338. Intel Ivy Bridge CPU with 64-bit extensions, MMX, SSE, SSE2,
  21339. SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AES, PCLMUL,
  21340. FSGSBASE, RDRND and F16C instruction set support.
  21341. 'haswell'
  21342. Intel Haswell CPU with 64-bit extensions, MOVBE, MMX, SSE,
  21343. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES,
  21344. PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2 and F16C instruction
  21345. set support.
  21346. 'broadwell'
  21347. Intel Broadwell CPU with 64-bit extensions, MOVBE, MMX, SSE,
  21348. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES,
  21349. PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED, ADCX
  21350. and PREFETCHW instruction set support.
  21351. 'skylake'
  21352. Intel Skylake CPU with 64-bit extensions, MOVBE, MMX, SSE,
  21353. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES,
  21354. PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED, ADCX,
  21355. PREFETCHW, CLFLUSHOPT, XSAVEC and XSAVES instruction set
  21356. support.
  21357. 'bonnell'
  21358. Intel Bonnell CPU with 64-bit extensions, MOVBE, MMX, SSE,
  21359. SSE2, SSE3 and SSSE3 instruction set support.
  21360. 'silvermont'
  21361. Intel Silvermont CPU with 64-bit extensions, MOVBE, MMX, SSE,
  21362. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AES, PCLMUL and
  21363. RDRND instruction set support.
  21364. 'goldmont'
  21365. Intel Goldmont CPU with 64-bit extensions, MOVBE, MMX, SSE,
  21366. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AES, PCLMUL, RDRND,
  21367. XSAVE, XSAVEOPT and FSGSBASE instruction set support.
  21368. 'goldmont-plus'
  21369. Intel Goldmont Plus CPU with 64-bit extensions, MOVBE, MMX,
  21370. SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AES, PCLMUL,
  21371. RDRND, XSAVE, XSAVEOPT, FSGSBASE, PTWRITE, RDPID, SGX and UMIP
  21372. instruction set support.
  21373. 'tremont'
  21374. Intel Tremont CPU with 64-bit extensions, MOVBE, MMX, SSE,
  21375. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AES, PCLMUL, RDRND,
  21376. XSAVE, XSAVEOPT, FSGSBASE, PTWRITE, RDPID, SGX, UMIP,
  21377. GFNI-SSE, CLWB and ENCLV instruction set support.
  21378. 'knl'
  21379. Intel Knight's Landing CPU with 64-bit extensions, MOVBE, MMX,
  21380. SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2,
  21381. AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED,
  21382. ADCX, PREFETCHW, AVX512F, AVX512PF, AVX512ER and AVX512CD
  21383. instruction set support.
  21384. 'knm'
  21385. Intel Knights Mill CPU with 64-bit extensions, MOVBE, MMX,
  21386. SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2,
  21387. AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED,
  21388. ADCX, PREFETCHW, AVX512F, AVX512PF, AVX512ER, AVX512CD,
  21389. AVX5124VNNIW, AVX5124FMAPS and AVX512VPOPCNTDQ instruction set
  21390. support.
  21391. 'skylake-avx512'
  21392. Intel Skylake Server CPU with 64-bit extensions, MOVBE, MMX,
  21393. SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX,
  21394. AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C,
  21395. RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F,
  21396. CLWB, AVX512VL, AVX512BW, AVX512DQ and AVX512CD instruction
  21397. set support.
  21398. 'cannonlake'
  21399. Intel Cannonlake Server CPU with 64-bit extensions, MOVBE,
  21400. MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX,
  21401. AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C,
  21402. RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F,
  21403. AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VBMI,
  21404. AVX512IFMA, SHA and UMIP instruction set support.
  21405. 'icelake-client'
  21406. Intel Icelake Client CPU with 64-bit extensions, MOVBE, MMX,
  21407. SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX,
  21408. AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C,
  21409. RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F,
  21410. AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VBMI,
  21411. AVX512IFMA, SHA, CLWB, UMIP, RDPID, GFNI, AVX512VBMI2,
  21412. AVX512VPOPCNTDQ, AVX512BITALG, AVX512VNNI, VPCLMULQDQ, VAES
  21413. instruction set support.
  21414. 'icelake-server'
  21415. Intel Icelake Server CPU with 64-bit extensions, MOVBE, MMX,
  21416. SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX,
  21417. AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C,
  21418. RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F,
  21419. AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VBMI,
  21420. AVX512IFMA, SHA, CLWB, UMIP, RDPID, GFNI, AVX512VBMI2,
  21421. AVX512VPOPCNTDQ, AVX512BITALG, AVX512VNNI, VPCLMULQDQ, VAES,
  21422. PCONFIG and WBNOINVD instruction set support.
  21423. 'cascadelake'
  21424. Intel Cascadelake CPU with 64-bit extensions, MOVBE, MMX, SSE,
  21425. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX, AVX2,
  21426. AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED,
  21427. ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F, CLWB,
  21428. AVX512VL, AVX512BW, AVX512DQ, AVX512CD and AVX512VNNI
  21429. instruction set support.
  21430. 'cooperlake'
  21431. Intel cooperlake CPU with 64-bit extensions, MOVBE, MMX, SSE,
  21432. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX, AVX2,
  21433. AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED,
  21434. ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F, CLWB,
  21435. AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VNNI and
  21436. AVX512BF16 instruction set support.
  21437. 'tigerlake'
  21438. Intel Tigerlake CPU with 64-bit extensions, MOVBE, MMX, SSE,
  21439. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX, AVX2,
  21440. AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED,
  21441. ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F,
  21442. AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VBMI,
  21443. AVX512IFMA, SHA, CLWB, UMIP, RDPID, GFNI, AVX512VBMI2,
  21444. AVX512VPOPCNTDQ, AVX512BITALG, AVX512VNNI, VPCLMULQDQ, VAES,
  21445. PCONFIG, WBNOINVD, MOVDIRI, MOVDIR64B and AVX512VP2INTERSECT
  21446. instruction set support.
  21447. 'k6'
  21448. AMD K6 CPU with MMX instruction set support.
  21449. 'k6-2'
  21450. 'k6-3'
  21451. Improved versions of AMD K6 CPU with MMX and 3DNow!
  21452. instruction set support.
  21453. 'athlon'
  21454. 'athlon-tbird'
  21455. AMD Athlon CPU with MMX, 3dNOW!, enhanced 3DNow! and SSE
  21456. prefetch instructions support.
  21457. 'athlon-4'
  21458. 'athlon-xp'
  21459. 'athlon-mp'
  21460. Improved AMD Athlon CPU with MMX, 3DNow!, enhanced 3DNow! and
  21461. full SSE instruction set support.
  21462. 'k8'
  21463. 'opteron'
  21464. 'athlon64'
  21465. 'athlon-fx'
  21466. Processors based on the AMD K8 core with x86-64 instruction
  21467. set support, including the AMD Opteron, Athlon 64, and Athlon
  21468. 64 FX processors. (This supersets MMX, SSE, SSE2, 3DNow!,
  21469. enhanced 3DNow! and 64-bit instruction set extensions.)
  21470. 'k8-sse3'
  21471. 'opteron-sse3'
  21472. 'athlon64-sse3'
  21473. Improved versions of AMD K8 cores with SSE3 instruction set
  21474. support.
  21475. 'amdfam10'
  21476. 'barcelona'
  21477. CPUs based on AMD Family 10h cores with x86-64 instruction set
  21478. support. (This supersets MMX, SSE, SSE2, SSE3, SSE4A, 3DNow!,
  21479. enhanced 3DNow!, ABM and 64-bit instruction set extensions.)
  21480. 'bdver1'
  21481. CPUs based on AMD Family 15h cores with x86-64 instruction set
  21482. support. (This supersets FMA4, AVX, XOP, LWP, AES, PCLMUL,
  21483. CX16, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1, SSE4.2, ABM
  21484. and 64-bit instruction set extensions.)
  21485. 'bdver2'
  21486. AMD Family 15h core based CPUs with x86-64 instruction set
  21487. support. (This supersets BMI, TBM, F16C, FMA, FMA4, AVX, XOP,
  21488. LWP, AES, PCLMUL, CX16, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3,
  21489. SSE4.1, SSE4.2, ABM and 64-bit instruction set extensions.)
  21490. 'bdver3'
  21491. AMD Family 15h core based CPUs with x86-64 instruction set
  21492. support. (This supersets BMI, TBM, F16C, FMA, FMA4, FSGSBASE,
  21493. AVX, XOP, LWP, AES, PCLMUL, CX16, MMX, SSE, SSE2, SSE3, SSE4A,
  21494. SSSE3, SSE4.1, SSE4.2, ABM and 64-bit instruction set
  21495. extensions.)
  21496. 'bdver4'
  21497. AMD Family 15h core based CPUs with x86-64 instruction set
  21498. support. (This supersets BMI, BMI2, TBM, F16C, FMA, FMA4,
  21499. FSGSBASE, AVX, AVX2, XOP, LWP, AES, PCLMUL, CX16, MOVBE, MMX,
  21500. SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1, SSE4.2, ABM and 64-bit
  21501. instruction set extensions.)
  21502. 'znver1'
  21503. AMD Family 17h core based CPUs with x86-64 instruction set
  21504. support. (This supersets BMI, BMI2, F16C, FMA, FSGSBASE, AVX,
  21505. AVX2, ADCX, RDSEED, MWAITX, SHA, CLZERO, AES, PCLMUL, CX16,
  21506. MOVBE, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1, SSE4.2,
  21507. ABM, XSAVEC, XSAVES, CLFLUSHOPT, POPCNT, and 64-bit
  21508. instruction set extensions.)
  21509. 'znver2'
  21510. AMD Family 17h core based CPUs with x86-64 instruction set
  21511. support. (This supersets BMI, BMI2, CLWB, F16C, FMA,
  21512. FSGSBASE, AVX, AVX2, ADCX, RDSEED, MWAITX, SHA, CLZERO, AES,
  21513. PCLMUL, CX16, MOVBE, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3,
  21514. SSE4.1, SSE4.2, ABM, XSAVEC, XSAVES, CLFLUSHOPT, POPCNT,
  21515. RDPID, WBNOINVD, and 64-bit instruction set extensions.)
  21516. 'btver1'
  21517. CPUs based on AMD Family 14h cores with x86-64 instruction set
  21518. support. (This supersets MMX, SSE, SSE2, SSE3, SSSE3, SSE4A,
  21519. CX16, ABM and 64-bit instruction set extensions.)
  21520. 'btver2'
  21521. CPUs based on AMD Family 16h cores with x86-64 instruction set
  21522. support. This includes MOVBE, F16C, BMI, AVX, PCLMUL, AES,
  21523. SSE4.2, SSE4.1, CX16, ABM, SSE4A, SSSE3, SSE3, SSE2, SSE, MMX
  21524. and 64-bit instruction set extensions.
  21525. 'winchip-c6'
  21526. IDT WinChip C6 CPU, dealt in same way as i486 with additional
  21527. MMX instruction set support.
  21528. 'winchip2'
  21529. IDT WinChip 2 CPU, dealt in same way as i486 with additional
  21530. MMX and 3DNow! instruction set support.
  21531. 'c3'
  21532. VIA C3 CPU with MMX and 3DNow! instruction set support. (No
  21533. scheduling is implemented for this chip.)
  21534. 'c3-2'
  21535. VIA C3-2 (Nehemiah/C5XL) CPU with MMX and SSE instruction set
  21536. support. (No scheduling is implemented for this chip.)
  21537. 'c7'
  21538. VIA C7 (Esther) CPU with MMX, SSE, SSE2 and SSE3 instruction
  21539. set support. (No scheduling is implemented for this chip.)
  21540. 'samuel-2'
  21541. VIA Eden Samuel 2 CPU with MMX and 3DNow! instruction set
  21542. support. (No scheduling is implemented for this chip.)
  21543. 'nehemiah'
  21544. VIA Eden Nehemiah CPU with MMX and SSE instruction set
  21545. support. (No scheduling is implemented for this chip.)
  21546. 'esther'
  21547. VIA Eden Esther CPU with MMX, SSE, SSE2 and SSE3 instruction
  21548. set support. (No scheduling is implemented for this chip.)
  21549. 'eden-x2'
  21550. VIA Eden X2 CPU with x86-64, MMX, SSE, SSE2 and SSE3
  21551. instruction set support. (No scheduling is implemented for
  21552. this chip.)
  21553. 'eden-x4'
  21554. VIA Eden X4 CPU with x86-64, MMX, SSE, SSE2, SSE3, SSSE3,
  21555. SSE4.1, SSE4.2, AVX and AVX2 instruction set support. (No
  21556. scheduling is implemented for this chip.)
  21557. 'nano'
  21558. Generic VIA Nano CPU with x86-64, MMX, SSE, SSE2, SSE3 and
  21559. SSSE3 instruction set support. (No scheduling is implemented
  21560. for this chip.)
  21561. 'nano-1000'
  21562. VIA Nano 1xxx CPU with x86-64, MMX, SSE, SSE2, SSE3 and SSSE3
  21563. instruction set support. (No scheduling is implemented for
  21564. this chip.)
  21565. 'nano-2000'
  21566. VIA Nano 2xxx CPU with x86-64, MMX, SSE, SSE2, SSE3 and SSSE3
  21567. instruction set support. (No scheduling is implemented for
  21568. this chip.)
  21569. 'nano-3000'
  21570. VIA Nano 3xxx CPU with x86-64, MMX, SSE, SSE2, SSE3, SSSE3 and
  21571. SSE4.1 instruction set support. (No scheduling is implemented
  21572. for this chip.)
  21573. 'nano-x2'
  21574. VIA Nano Dual Core CPU with x86-64, MMX, SSE, SSE2, SSE3,
  21575. SSSE3 and SSE4.1 instruction set support. (No scheduling is
  21576. implemented for this chip.)
  21577. 'nano-x4'
  21578. VIA Nano Quad Core CPU with x86-64, MMX, SSE, SSE2, SSE3,
  21579. SSSE3 and SSE4.1 instruction set support. (No scheduling is
  21580. implemented for this chip.)
  21581. 'geode'
  21582. AMD Geode embedded processor with MMX and 3DNow! instruction
  21583. set support.
  21584. '-mtune=CPU-TYPE'
  21585. Tune to CPU-TYPE everything applicable about the generated code,
  21586. except for the ABI and the set of available instructions. While
  21587. picking a specific CPU-TYPE schedules things appropriately for that
  21588. particular chip, the compiler does not generate any code that
  21589. cannot run on the default machine type unless you use a
  21590. '-march=CPU-TYPE' option. For example, if GCC is configured for
  21591. i686-pc-linux-gnu then '-mtune=pentium4' generates code that is
  21592. tuned for Pentium 4 but still runs on i686 machines.
  21593. The choices for CPU-TYPE are the same as for '-march'. In
  21594. addition, '-mtune' supports 2 extra choices for CPU-TYPE:
  21595. 'generic'
  21596. Produce code optimized for the most common IA32/AMD64/EM64T
  21597. processors. If you know the CPU on which your code will run,
  21598. then you should use the corresponding '-mtune' or '-march'
  21599. option instead of '-mtune=generic'. But, if you do not know
  21600. exactly what CPU users of your application will have, then you
  21601. should use this option.
  21602. As new processors are deployed in the marketplace, the
  21603. behavior of this option will change. Therefore, if you
  21604. upgrade to a newer version of GCC, code generation controlled
  21605. by this option will change to reflect the processors that are
  21606. most common at the time that version of GCC is released.
  21607. There is no '-march=generic' option because '-march' indicates
  21608. the instruction set the compiler can use, and there is no
  21609. generic instruction set applicable to all processors. In
  21610. contrast, '-mtune' indicates the processor (or, in this case,
  21611. collection of processors) for which the code is optimized.
  21612. 'intel'
  21613. Produce code optimized for the most current Intel processors,
  21614. which are Haswell and Silvermont for this version of GCC. If
  21615. you know the CPU on which your code will run, then you should
  21616. use the corresponding '-mtune' or '-march' option instead of
  21617. '-mtune=intel'. But, if you want your application performs
  21618. better on both Haswell and Silvermont, then you should use
  21619. this option.
  21620. As new Intel processors are deployed in the marketplace, the
  21621. behavior of this option will change. Therefore, if you
  21622. upgrade to a newer version of GCC, code generation controlled
  21623. by this option will change to reflect the most current Intel
  21624. processors at the time that version of GCC is released.
  21625. There is no '-march=intel' option because '-march' indicates
  21626. the instruction set the compiler can use, and there is no
  21627. common instruction set applicable to all processors. In
  21628. contrast, '-mtune' indicates the processor (or, in this case,
  21629. collection of processors) for which the code is optimized.
  21630. '-mcpu=CPU-TYPE'
  21631. A deprecated synonym for '-mtune'.
  21632. '-mfpmath=UNIT'
  21633. Generate floating-point arithmetic for selected unit UNIT. The
  21634. choices for UNIT are:
  21635. '387'
  21636. Use the standard 387 floating-point coprocessor present on the
  21637. majority of chips and emulated otherwise. Code compiled with
  21638. this option runs almost everywhere. The temporary results are
  21639. computed in 80-bit precision instead of the precision
  21640. specified by the type, resulting in slightly different results
  21641. compared to most of other chips. See '-ffloat-store' for more
  21642. detailed description.
  21643. This is the default choice for non-Darwin x86-32 targets.
  21644. 'sse'
  21645. Use scalar floating-point instructions present in the SSE
  21646. instruction set. This instruction set is supported by Pentium
  21647. III and newer chips, and in the AMD line by Athlon-4, Athlon
  21648. XP and Athlon MP chips. The earlier version of the SSE
  21649. instruction set supports only single-precision arithmetic,
  21650. thus the double and extended-precision arithmetic are still
  21651. done using 387. A later version, present only in Pentium 4
  21652. and AMD x86-64 chips, supports double-precision arithmetic
  21653. too.
  21654. For the x86-32 compiler, you must use '-march=CPU-TYPE',
  21655. '-msse' or '-msse2' switches to enable SSE extensions and make
  21656. this option effective. For the x86-64 compiler, these
  21657. extensions are enabled by default.
  21658. The resulting code should be considerably faster in the
  21659. majority of cases and avoid the numerical instability problems
  21660. of 387 code, but may break some existing code that expects
  21661. temporaries to be 80 bits.
  21662. This is the default choice for the x86-64 compiler, Darwin
  21663. x86-32 targets, and the default choice for x86-32 targets with
  21664. the SSE2 instruction set when '-ffast-math' is enabled.
  21665. 'sse,387'
  21666. 'sse+387'
  21667. 'both'
  21668. Attempt to utilize both instruction sets at once. This
  21669. effectively doubles the amount of available registers, and on
  21670. chips with separate execution units for 387 and SSE the
  21671. execution resources too. Use this option with care, as it is
  21672. still experimental, because the GCC register allocator does
  21673. not model separate functional units well, resulting in
  21674. unstable performance.
  21675. '-masm=DIALECT'
  21676. Output assembly instructions using selected DIALECT. Also affects
  21677. which dialect is used for basic 'asm' (*note Basic Asm::) and
  21678. extended 'asm' (*note Extended Asm::). Supported choices (in
  21679. dialect order) are 'att' or 'intel'. The default is 'att'. Darwin
  21680. does not support 'intel'.
  21681. '-mieee-fp'
  21682. '-mno-ieee-fp'
  21683. Control whether or not the compiler uses IEEE floating-point
  21684. comparisons. These correctly handle the case where the result of a
  21685. comparison is unordered.
  21686. '-m80387'
  21687. '-mhard-float'
  21688. Generate output containing 80387 instructions for floating point.
  21689. '-mno-80387'
  21690. '-msoft-float'
  21691. Generate output containing library calls for floating point.
  21692. *Warning:* the requisite libraries are not part of GCC. Normally
  21693. the facilities of the machine's usual C compiler are used, but this
  21694. cannot be done directly in cross-compilation. You must make your
  21695. own arrangements to provide suitable library functions for
  21696. cross-compilation.
  21697. On machines where a function returns floating-point results in the
  21698. 80387 register stack, some floating-point opcodes may be emitted
  21699. even if '-msoft-float' is used.
  21700. '-mno-fp-ret-in-387'
  21701. Do not use the FPU registers for return values of functions.
  21702. The usual calling convention has functions return values of types
  21703. 'float' and 'double' in an FPU register, even if there is no FPU.
  21704. The idea is that the operating system should emulate an FPU.
  21705. The option '-mno-fp-ret-in-387' causes such values to be returned
  21706. in ordinary CPU registers instead.
  21707. '-mno-fancy-math-387'
  21708. Some 387 emulators do not support the 'sin', 'cos' and 'sqrt'
  21709. instructions for the 387. Specify this option to avoid generating
  21710. those instructions. This option is overridden when '-march'
  21711. indicates that the target CPU always has an FPU and so the
  21712. instruction does not need emulation. These instructions are not
  21713. generated unless you also use the '-funsafe-math-optimizations'
  21714. switch.
  21715. '-malign-double'
  21716. '-mno-align-double'
  21717. Control whether GCC aligns 'double', 'long double', and 'long long'
  21718. variables on a two-word boundary or a one-word boundary. Aligning
  21719. 'double' variables on a two-word boundary produces code that runs
  21720. somewhat faster on a Pentium at the expense of more memory.
  21721. On x86-64, '-malign-double' is enabled by default.
  21722. *Warning:* if you use the '-malign-double' switch, structures
  21723. containing the above types are aligned differently than the
  21724. published application binary interface specifications for the
  21725. x86-32 and are not binary compatible with structures in code
  21726. compiled without that switch.
  21727. '-m96bit-long-double'
  21728. '-m128bit-long-double'
  21729. These switches control the size of 'long double' type. The x86-32
  21730. application binary interface specifies the size to be 96 bits, so
  21731. '-m96bit-long-double' is the default in 32-bit mode.
  21732. Modern architectures (Pentium and newer) prefer 'long double' to be
  21733. aligned to an 8- or 16-byte boundary. In arrays or structures
  21734. conforming to the ABI, this is not possible. So specifying
  21735. '-m128bit-long-double' aligns 'long double' to a 16-byte boundary
  21736. by padding the 'long double' with an additional 32-bit zero.
  21737. In the x86-64 compiler, '-m128bit-long-double' is the default
  21738. choice as its ABI specifies that 'long double' is aligned on
  21739. 16-byte boundary.
  21740. Notice that neither of these options enable any extra precision
  21741. over the x87 standard of 80 bits for a 'long double'.
  21742. *Warning:* if you override the default value for your target ABI,
  21743. this changes the size of structures and arrays containing 'long
  21744. double' variables, as well as modifying the function calling
  21745. convention for functions taking 'long double'. Hence they are not
  21746. binary-compatible with code compiled without that switch.
  21747. '-mlong-double-64'
  21748. '-mlong-double-80'
  21749. '-mlong-double-128'
  21750. These switches control the size of 'long double' type. A size of
  21751. 64 bits makes the 'long double' type equivalent to the 'double'
  21752. type. This is the default for 32-bit Bionic C library. A size of
  21753. 128 bits makes the 'long double' type equivalent to the
  21754. '__float128' type. This is the default for 64-bit Bionic C
  21755. library.
  21756. *Warning:* if you override the default value for your target ABI,
  21757. this changes the size of structures and arrays containing 'long
  21758. double' variables, as well as modifying the function calling
  21759. convention for functions taking 'long double'. Hence they are not
  21760. binary-compatible with code compiled without that switch.
  21761. '-malign-data=TYPE'
  21762. Control how GCC aligns variables. Supported values for TYPE are
  21763. 'compat' uses increased alignment value compatible uses GCC 4.8 and
  21764. earlier, 'abi' uses alignment value as specified by the psABI, and
  21765. 'cacheline' uses increased alignment value to match the cache line
  21766. size. 'compat' is the default.
  21767. '-mlarge-data-threshold=THRESHOLD'
  21768. When '-mcmodel=medium' is specified, data objects larger than
  21769. THRESHOLD are placed in the large data section. This value must be
  21770. the same across all objects linked into the binary, and defaults to
  21771. 65535.
  21772. '-mrtd'
  21773. Use a different function-calling convention, in which functions
  21774. that take a fixed number of arguments return with the 'ret NUM'
  21775. instruction, which pops their arguments while returning. This
  21776. saves one instruction in the caller since there is no need to pop
  21777. the arguments there.
  21778. You can specify that an individual function is called with this
  21779. calling sequence with the function attribute 'stdcall'. You can
  21780. also override the '-mrtd' option by using the function attribute
  21781. 'cdecl'. *Note Function Attributes::.
  21782. *Warning:* this calling convention is incompatible with the one
  21783. normally used on Unix, so you cannot use it if you need to call
  21784. libraries compiled with the Unix compiler.
  21785. Also, you must provide function prototypes for all functions that
  21786. take variable numbers of arguments (including 'printf'); otherwise
  21787. incorrect code is generated for calls to those functions.
  21788. In addition, seriously incorrect code results if you call a
  21789. function with too many arguments. (Normally, extra arguments are
  21790. harmlessly ignored.)
  21791. '-mregparm=NUM'
  21792. Control how many registers are used to pass integer arguments. By
  21793. default, no registers are used to pass arguments, and at most 3
  21794. registers can be used. You can control this behavior for a
  21795. specific function by using the function attribute 'regparm'. *Note
  21796. Function Attributes::.
  21797. *Warning:* if you use this switch, and NUM is nonzero, then you
  21798. must build all modules with the same value, including any
  21799. libraries. This includes the system libraries and startup modules.
  21800. '-msseregparm'
  21801. Use SSE register passing conventions for float and double arguments
  21802. and return values. You can control this behavior for a specific
  21803. function by using the function attribute 'sseregparm'. *Note
  21804. Function Attributes::.
  21805. *Warning:* if you use this switch then you must build all modules
  21806. with the same value, including any libraries. This includes the
  21807. system libraries and startup modules.
  21808. '-mvect8-ret-in-mem'
  21809. Return 8-byte vectors in memory instead of MMX registers. This is
  21810. the default on VxWorks to match the ABI of the Sun Studio compilers
  21811. until version 12. _Only_ use this option if you need to remain
  21812. compatible with existing code produced by those previous compiler
  21813. versions or older versions of GCC.
  21814. '-mpc32'
  21815. '-mpc64'
  21816. '-mpc80'
  21817. Set 80387 floating-point precision to 32, 64 or 80 bits. When
  21818. '-mpc32' is specified, the significands of results of
  21819. floating-point operations are rounded to 24 bits (single
  21820. precision); '-mpc64' rounds the significands of results of
  21821. floating-point operations to 53 bits (double precision) and
  21822. '-mpc80' rounds the significands of results of floating-point
  21823. operations to 64 bits (extended double precision), which is the
  21824. default. When this option is used, floating-point operations in
  21825. higher precisions are not available to the programmer without
  21826. setting the FPU control word explicitly.
  21827. Setting the rounding of floating-point operations to less than the
  21828. default 80 bits can speed some programs by 2% or more. Note that
  21829. some mathematical libraries assume that extended-precision (80-bit)
  21830. floating-point operations are enabled by default; routines in such
  21831. libraries could suffer significant loss of accuracy, typically
  21832. through so-called "catastrophic cancellation", when this option is
  21833. used to set the precision to less than extended precision.
  21834. '-mstackrealign'
  21835. Realign the stack at entry. On the x86, the '-mstackrealign'
  21836. option generates an alternate prologue and epilogue that realigns
  21837. the run-time stack if necessary. This supports mixing legacy codes
  21838. that keep 4-byte stack alignment with modern codes that keep
  21839. 16-byte stack alignment for SSE compatibility. See also the
  21840. attribute 'force_align_arg_pointer', applicable to individual
  21841. functions.
  21842. '-mpreferred-stack-boundary=NUM'
  21843. Attempt to keep the stack boundary aligned to a 2 raised to NUM
  21844. byte boundary. If '-mpreferred-stack-boundary' is not specified,
  21845. the default is 4 (16 bytes or 128 bits).
  21846. *Warning:* When generating code for the x86-64 architecture with
  21847. SSE extensions disabled, '-mpreferred-stack-boundary=3' can be used
  21848. to keep the stack boundary aligned to 8 byte boundary. Since
  21849. x86-64 ABI require 16 byte stack alignment, this is ABI
  21850. incompatible and intended to be used in controlled environment
  21851. where stack space is important limitation. This option leads to
  21852. wrong code when functions compiled with 16 byte stack alignment
  21853. (such as functions from a standard library) are called with
  21854. misaligned stack. In this case, SSE instructions may lead to
  21855. misaligned memory access traps. In addition, variable arguments
  21856. are handled incorrectly for 16 byte aligned objects (including x87
  21857. long double and __int128), leading to wrong results. You must
  21858. build all modules with '-mpreferred-stack-boundary=3', including
  21859. any libraries. This includes the system libraries and startup
  21860. modules.
  21861. '-mincoming-stack-boundary=NUM'
  21862. Assume the incoming stack is aligned to a 2 raised to NUM byte
  21863. boundary. If '-mincoming-stack-boundary' is not specified, the one
  21864. specified by '-mpreferred-stack-boundary' is used.
  21865. On Pentium and Pentium Pro, 'double' and 'long double' values
  21866. should be aligned to an 8-byte boundary (see '-malign-double') or
  21867. suffer significant run time performance penalties. On Pentium III,
  21868. the Streaming SIMD Extension (SSE) data type '__m128' may not work
  21869. properly if it is not 16-byte aligned.
  21870. To ensure proper alignment of this values on the stack, the stack
  21871. boundary must be as aligned as that required by any value stored on
  21872. the stack. Further, every function must be generated such that it
  21873. keeps the stack aligned. Thus calling a function compiled with a
  21874. higher preferred stack boundary from a function compiled with a
  21875. lower preferred stack boundary most likely misaligns the stack. It
  21876. is recommended that libraries that use callbacks always use the
  21877. default setting.
  21878. This extra alignment does consume extra stack space, and generally
  21879. increases code size. Code that is sensitive to stack space usage,
  21880. such as embedded systems and operating system kernels, may want to
  21881. reduce the preferred alignment to '-mpreferred-stack-boundary=2'.
  21882. '-mmmx'
  21883. '-msse'
  21884. '-msse2'
  21885. '-msse3'
  21886. '-mssse3'
  21887. '-msse4'
  21888. '-msse4a'
  21889. '-msse4.1'
  21890. '-msse4.2'
  21891. '-mavx'
  21892. '-mavx2'
  21893. '-mavx512f'
  21894. '-mavx512pf'
  21895. '-mavx512er'
  21896. '-mavx512cd'
  21897. '-mavx512vl'
  21898. '-mavx512bw'
  21899. '-mavx512dq'
  21900. '-mavx512ifma'
  21901. '-mavx512vbmi'
  21902. '-msha'
  21903. '-maes'
  21904. '-mpclmul'
  21905. '-mclflushopt'
  21906. '-mclwb'
  21907. '-mfsgsbase'
  21908. '-mptwrite'
  21909. '-mrdrnd'
  21910. '-mf16c'
  21911. '-mfma'
  21912. '-mpconfig'
  21913. '-mwbnoinvd'
  21914. '-mfma4'
  21915. '-mprfchw'
  21916. '-mrdpid'
  21917. '-mprefetchwt1'
  21918. '-mrdseed'
  21919. '-msgx'
  21920. '-mxop'
  21921. '-mlwp'
  21922. '-m3dnow'
  21923. '-m3dnowa'
  21924. '-mpopcnt'
  21925. '-mabm'
  21926. '-madx'
  21927. '-mbmi'
  21928. '-mbmi2'
  21929. '-mlzcnt'
  21930. '-mfxsr'
  21931. '-mxsave'
  21932. '-mxsaveopt'
  21933. '-mxsavec'
  21934. '-mxsaves'
  21935. '-mrtm'
  21936. '-mhle'
  21937. '-mtbm'
  21938. '-mmwaitx'
  21939. '-mclzero'
  21940. '-mpku'
  21941. '-mavx512vbmi2'
  21942. '-mavx512bf16'
  21943. '-mgfni'
  21944. '-mvaes'
  21945. '-mwaitpkg'
  21946. '-mvpclmulqdq'
  21947. '-mavx512bitalg'
  21948. '-mmovdiri'
  21949. '-mmovdir64b'
  21950. '-menqcmd'
  21951. '-mavx512vpopcntdq'
  21952. '-mavx512vp2intersect'
  21953. '-mavx5124fmaps'
  21954. '-mavx512vnni'
  21955. '-mavx5124vnniw'
  21956. '-mcldemote'
  21957. These switches enable the use of instructions in the MMX, SSE,
  21958. SSE2, SSE3, SSSE3, SSE4, SSE4A, SSE4.1, SSE4.2, AVX, AVX2, AVX512F,
  21959. AVX512PF, AVX512ER, AVX512CD, AVX512VL, AVX512BW, AVX512DQ,
  21960. AVX512IFMA, AVX512VBMI, SHA, AES, PCLMUL, CLFLUSHOPT, CLWB,
  21961. FSGSBASE, PTWRITE, RDRND, F16C, FMA, PCONFIG, WBNOINVD, FMA4,
  21962. PREFETCHW, RDPID, PREFETCHWT1, RDSEED, SGX, XOP, LWP, 3DNow!,
  21963. enhanced 3DNow!, POPCNT, ABM, ADX, BMI, BMI2, LZCNT, FXSR, XSAVE,
  21964. XSAVEOPT, XSAVEC, XSAVES, RTM, HLE, TBM, MWAITX, CLZERO, PKU,
  21965. AVX512VBMI2, GFNI, VAES, WAITPKG, VPCLMULQDQ, AVX512BITALG,
  21966. MOVDIRI, MOVDIR64B, AVX512BF16, ENQCMD, AVX512VPOPCNTDQ,
  21967. AVX5124FMAPS, AVX512VNNI, AVX5124VNNIW, or CLDEMOTE extended
  21968. instruction sets. Each has a corresponding '-mno-' option to
  21969. disable use of these instructions.
  21970. These extensions are also available as built-in functions: see
  21971. *note x86 Built-in Functions::, for details of the functions
  21972. enabled and disabled by these switches.
  21973. To generate SSE/SSE2 instructions automatically from floating-point
  21974. code (as opposed to 387 instructions), see '-mfpmath=sse'.
  21975. GCC depresses SSEx instructions when '-mavx' is used. Instead, it
  21976. generates new AVX instructions or AVX equivalence for all SSEx
  21977. instructions when needed.
  21978. These options enable GCC to use these extended instructions in
  21979. generated code, even without '-mfpmath=sse'. Applications that
  21980. perform run-time CPU detection must compile separate files for each
  21981. supported architecture, using the appropriate flags. In
  21982. particular, the file containing the CPU detection code should be
  21983. compiled without these options.
  21984. '-mdump-tune-features'
  21985. This option instructs GCC to dump the names of the x86 performance
  21986. tuning features and default settings. The names can be used in
  21987. '-mtune-ctrl=FEATURE-LIST'.
  21988. '-mtune-ctrl=FEATURE-LIST'
  21989. This option is used to do fine grain control of x86 code generation
  21990. features. FEATURE-LIST is a comma separated list of FEATURE names.
  21991. See also '-mdump-tune-features'. When specified, the FEATURE is
  21992. turned on if it is not preceded with '^', otherwise, it is turned
  21993. off. '-mtune-ctrl=FEATURE-LIST' is intended to be used by GCC
  21994. developers. Using it may lead to code paths not covered by testing
  21995. and can potentially result in compiler ICEs or runtime errors.
  21996. '-mno-default'
  21997. This option instructs GCC to turn off all tunable features. See
  21998. also '-mtune-ctrl=FEATURE-LIST' and '-mdump-tune-features'.
  21999. '-mcld'
  22000. This option instructs GCC to emit a 'cld' instruction in the
  22001. prologue of functions that use string instructions. String
  22002. instructions depend on the DF flag to select between autoincrement
  22003. or autodecrement mode. While the ABI specifies the DF flag to be
  22004. cleared on function entry, some operating systems violate this
  22005. specification by not clearing the DF flag in their exception
  22006. dispatchers. The exception handler can be invoked with the DF flag
  22007. set, which leads to wrong direction mode when string instructions
  22008. are used. This option can be enabled by default on 32-bit x86
  22009. targets by configuring GCC with the '--enable-cld' configure
  22010. option. Generation of 'cld' instructions can be suppressed with
  22011. the '-mno-cld' compiler option in this case.
  22012. '-mvzeroupper'
  22013. This option instructs GCC to emit a 'vzeroupper' instruction before
  22014. a transfer of control flow out of the function to minimize the AVX
  22015. to SSE transition penalty as well as remove unnecessary 'zeroupper'
  22016. intrinsics.
  22017. '-mprefer-avx128'
  22018. This option instructs GCC to use 128-bit AVX instructions instead
  22019. of 256-bit AVX instructions in the auto-vectorizer.
  22020. '-mprefer-vector-width=OPT'
  22021. This option instructs GCC to use OPT-bit vector width in
  22022. instructions instead of default on the selected platform.
  22023. 'none'
  22024. No extra limitations applied to GCC other than defined by the
  22025. selected platform.
  22026. '128'
  22027. Prefer 128-bit vector width for instructions.
  22028. '256'
  22029. Prefer 256-bit vector width for instructions.
  22030. '512'
  22031. Prefer 512-bit vector width for instructions.
  22032. '-mcx16'
  22033. This option enables GCC to generate 'CMPXCHG16B' instructions in
  22034. 64-bit code to implement compare-and-exchange operations on 16-byte
  22035. aligned 128-bit objects. This is useful for atomic updates of data
  22036. structures exceeding one machine word in size. The compiler uses
  22037. this instruction to implement *note __sync Builtins::. However,
  22038. for *note __atomic Builtins:: operating on 128-bit integers, a
  22039. library call is always used.
  22040. '-msahf'
  22041. This option enables generation of 'SAHF' instructions in 64-bit
  22042. code. Early Intel Pentium 4 CPUs with Intel 64 support, prior to
  22043. the introduction of Pentium 4 G1 step in December 2005, lacked the
  22044. 'LAHF' and 'SAHF' instructions which are supported by AMD64. These
  22045. are load and store instructions, respectively, for certain status
  22046. flags. In 64-bit mode, the 'SAHF' instruction is used to optimize
  22047. 'fmod', 'drem', and 'remainder' built-in functions; see *note Other
  22048. Builtins:: for details.
  22049. '-mmovbe'
  22050. This option enables use of the 'movbe' instruction to implement
  22051. '__builtin_bswap32' and '__builtin_bswap64'.
  22052. '-mshstk'
  22053. The '-mshstk' option enables shadow stack built-in functions from
  22054. x86 Control-flow Enforcement Technology (CET).
  22055. '-mcrc32'
  22056. This option enables built-in functions '__builtin_ia32_crc32qi',
  22057. '__builtin_ia32_crc32hi', '__builtin_ia32_crc32si' and
  22058. '__builtin_ia32_crc32di' to generate the 'crc32' machine
  22059. instruction.
  22060. '-mrecip'
  22061. This option enables use of 'RCPSS' and 'RSQRTSS' instructions (and
  22062. their vectorized variants 'RCPPS' and 'RSQRTPS') with an additional
  22063. Newton-Raphson step to increase precision instead of 'DIVSS' and
  22064. 'SQRTSS' (and their vectorized variants) for single-precision
  22065. floating-point arguments. These instructions are generated only
  22066. when '-funsafe-math-optimizations' is enabled together with
  22067. '-ffinite-math-only' and '-fno-trapping-math'. Note that while the
  22068. throughput of the sequence is higher than the throughput of the
  22069. non-reciprocal instruction, the precision of the sequence can be
  22070. decreased by up to 2 ulp (i.e. the inverse of 1.0 equals
  22071. 0.99999994).
  22072. Note that GCC implements '1.0f/sqrtf(X)' in terms of 'RSQRTSS' (or
  22073. 'RSQRTPS') already with '-ffast-math' (or the above option
  22074. combination), and doesn't need '-mrecip'.
  22075. Also note that GCC emits the above sequence with additional
  22076. Newton-Raphson step for vectorized single-float division and
  22077. vectorized 'sqrtf(X)' already with '-ffast-math' (or the above
  22078. option combination), and doesn't need '-mrecip'.
  22079. '-mrecip=OPT'
  22080. This option controls which reciprocal estimate instructions may be
  22081. used. OPT is a comma-separated list of options, which may be
  22082. preceded by a '!' to invert the option:
  22083. 'all'
  22084. Enable all estimate instructions.
  22085. 'default'
  22086. Enable the default instructions, equivalent to '-mrecip'.
  22087. 'none'
  22088. Disable all estimate instructions, equivalent to '-mno-recip'.
  22089. 'div'
  22090. Enable the approximation for scalar division.
  22091. 'vec-div'
  22092. Enable the approximation for vectorized division.
  22093. 'sqrt'
  22094. Enable the approximation for scalar square root.
  22095. 'vec-sqrt'
  22096. Enable the approximation for vectorized square root.
  22097. So, for example, '-mrecip=all,!sqrt' enables all of the reciprocal
  22098. approximations, except for square root.
  22099. '-mveclibabi=TYPE'
  22100. Specifies the ABI type to use for vectorizing intrinsics using an
  22101. external library. Supported values for TYPE are 'svml' for the
  22102. Intel short vector math library and 'acml' for the AMD math core
  22103. library. To use this option, both '-ftree-vectorize' and
  22104. '-funsafe-math-optimizations' have to be enabled, and an SVML or
  22105. ACML ABI-compatible library must be specified at link time.
  22106. GCC currently emits calls to 'vmldExp2', 'vmldLn2', 'vmldLog102',
  22107. 'vmldPow2', 'vmldTanh2', 'vmldTan2', 'vmldAtan2', 'vmldAtanh2',
  22108. 'vmldCbrt2', 'vmldSinh2', 'vmldSin2', 'vmldAsinh2', 'vmldAsin2',
  22109. 'vmldCosh2', 'vmldCos2', 'vmldAcosh2', 'vmldAcos2', 'vmlsExp4',
  22110. 'vmlsLn4', 'vmlsLog104', 'vmlsPow4', 'vmlsTanh4', 'vmlsTan4',
  22111. 'vmlsAtan4', 'vmlsAtanh4', 'vmlsCbrt4', 'vmlsSinh4', 'vmlsSin4',
  22112. 'vmlsAsinh4', 'vmlsAsin4', 'vmlsCosh4', 'vmlsCos4', 'vmlsAcosh4'
  22113. and 'vmlsAcos4' for corresponding function type when
  22114. '-mveclibabi=svml' is used, and '__vrd2_sin', '__vrd2_cos',
  22115. '__vrd2_exp', '__vrd2_log', '__vrd2_log2', '__vrd2_log10',
  22116. '__vrs4_sinf', '__vrs4_cosf', '__vrs4_expf', '__vrs4_logf',
  22117. '__vrs4_log2f', '__vrs4_log10f' and '__vrs4_powf' for the
  22118. corresponding function type when '-mveclibabi=acml' is used.
  22119. '-mabi=NAME'
  22120. Generate code for the specified calling convention. Permissible
  22121. values are 'sysv' for the ABI used on GNU/Linux and other systems,
  22122. and 'ms' for the Microsoft ABI. The default is to use the Microsoft
  22123. ABI when targeting Microsoft Windows and the SysV ABI on all other
  22124. systems. You can control this behavior for specific functions by
  22125. using the function attributes 'ms_abi' and 'sysv_abi'. *Note
  22126. Function Attributes::.
  22127. '-mforce-indirect-call'
  22128. Force all calls to functions to be indirect. This is useful when
  22129. using Intel Processor Trace where it generates more precise timing
  22130. information for function calls.
  22131. '-mmanual-endbr'
  22132. Insert ENDBR instruction at function entry only via the 'cf_check'
  22133. function attribute. This is useful when used with the option
  22134. '-fcf-protection=branch' to control ENDBR insertion at the function
  22135. entry.
  22136. '-mcall-ms2sysv-xlogues'
  22137. Due to differences in 64-bit ABIs, any Microsoft ABI function that
  22138. calls a System V ABI function must consider RSI, RDI and XMM6-15 as
  22139. clobbered. By default, the code for saving and restoring these
  22140. registers is emitted inline, resulting in fairly lengthy prologues
  22141. and epilogues. Using '-mcall-ms2sysv-xlogues' emits prologues and
  22142. epilogues that use stubs in the static portion of libgcc to perform
  22143. these saves and restores, thus reducing function size at the cost
  22144. of a few extra instructions.
  22145. '-mtls-dialect=TYPE'
  22146. Generate code to access thread-local storage using the 'gnu' or
  22147. 'gnu2' conventions. 'gnu' is the conservative default; 'gnu2' is
  22148. more efficient, but it may add compile- and run-time requirements
  22149. that cannot be satisfied on all systems.
  22150. '-mpush-args'
  22151. '-mno-push-args'
  22152. Use PUSH operations to store outgoing parameters. This method is
  22153. shorter and usually equally fast as method using SUB/MOV operations
  22154. and is enabled by default. In some cases disabling it may improve
  22155. performance because of improved scheduling and reduced
  22156. dependencies.
  22157. '-maccumulate-outgoing-args'
  22158. If enabled, the maximum amount of space required for outgoing
  22159. arguments is computed in the function prologue. This is faster on
  22160. most modern CPUs because of reduced dependencies, improved
  22161. scheduling and reduced stack usage when the preferred stack
  22162. boundary is not equal to 2. The drawback is a notable increase in
  22163. code size. This switch implies '-mno-push-args'.
  22164. '-mthreads'
  22165. Support thread-safe exception handling on MinGW. Programs that rely
  22166. on thread-safe exception handling must compile and link all code
  22167. with the '-mthreads' option. When compiling, '-mthreads' defines
  22168. '-D_MT'; when linking, it links in a special thread helper library
  22169. '-lmingwthrd' which cleans up per-thread exception-handling data.
  22170. '-mms-bitfields'
  22171. '-mno-ms-bitfields'
  22172. Enable/disable bit-field layout compatible with the native
  22173. Microsoft Windows compiler.
  22174. If 'packed' is used on a structure, or if bit-fields are used, it
  22175. may be that the Microsoft ABI lays out the structure differently
  22176. than the way GCC normally does. Particularly when moving packed
  22177. data between functions compiled with GCC and the native Microsoft
  22178. compiler (either via function call or as data in a file), it may be
  22179. necessary to access either format.
  22180. This option is enabled by default for Microsoft Windows targets.
  22181. This behavior can also be controlled locally by use of variable or
  22182. type attributes. For more information, see *note x86 Variable
  22183. Attributes:: and *note x86 Type Attributes::.
  22184. The Microsoft structure layout algorithm is fairly simple with the
  22185. exception of the bit-field packing. The padding and alignment of
  22186. members of structures and whether a bit-field can straddle a
  22187. storage-unit boundary are determine by these rules:
  22188. 1. Structure members are stored sequentially in the order in
  22189. which they are declared: the first member has the lowest
  22190. memory address and the last member the highest.
  22191. 2. Every data object has an alignment requirement. The alignment
  22192. requirement for all data except structures, unions, and arrays
  22193. is either the size of the object or the current packing size
  22194. (specified with either the 'aligned' attribute or the 'pack'
  22195. pragma), whichever is less. For structures, unions, and
  22196. arrays, the alignment requirement is the largest alignment
  22197. requirement of its members. Every object is allocated an
  22198. offset so that:
  22199. offset % alignment_requirement == 0
  22200. 3. Adjacent bit-fields are packed into the same 1-, 2-, or 4-byte
  22201. allocation unit if the integral types are the same size and if
  22202. the next bit-field fits into the current allocation unit
  22203. without crossing the boundary imposed by the common alignment
  22204. requirements of the bit-fields.
  22205. MSVC interprets zero-length bit-fields in the following ways:
  22206. 1. If a zero-length bit-field is inserted between two bit-fields
  22207. that are normally coalesced, the bit-fields are not coalesced.
  22208. For example:
  22209. struct
  22210. {
  22211. unsigned long bf_1 : 12;
  22212. unsigned long : 0;
  22213. unsigned long bf_2 : 12;
  22214. } t1;
  22215. The size of 't1' is 8 bytes with the zero-length bit-field.
  22216. If the zero-length bit-field were removed, 't1''s size would
  22217. be 4 bytes.
  22218. 2. If a zero-length bit-field is inserted after a bit-field,
  22219. 'foo', and the alignment of the zero-length bit-field is
  22220. greater than the member that follows it, 'bar', 'bar' is
  22221. aligned as the type of the zero-length bit-field.
  22222. For example:
  22223. struct
  22224. {
  22225. char foo : 4;
  22226. short : 0;
  22227. char bar;
  22228. } t2;
  22229. struct
  22230. {
  22231. char foo : 4;
  22232. short : 0;
  22233. double bar;
  22234. } t3;
  22235. For 't2', 'bar' is placed at offset 2, rather than offset 1.
  22236. Accordingly, the size of 't2' is 4. For 't3', the zero-length
  22237. bit-field does not affect the alignment of 'bar' or, as a
  22238. result, the size of the structure.
  22239. Taking this into account, it is important to note the
  22240. following:
  22241. 1. If a zero-length bit-field follows a normal bit-field,
  22242. the type of the zero-length bit-field may affect the
  22243. alignment of the structure as whole. For example, 't2'
  22244. has a size of 4 bytes, since the zero-length bit-field
  22245. follows a normal bit-field, and is of type short.
  22246. 2. Even if a zero-length bit-field is not followed by a
  22247. normal bit-field, it may still affect the alignment of
  22248. the structure:
  22249. struct
  22250. {
  22251. char foo : 6;
  22252. long : 0;
  22253. } t4;
  22254. Here, 't4' takes up 4 bytes.
  22255. 3. Zero-length bit-fields following non-bit-field members are
  22256. ignored:
  22257. struct
  22258. {
  22259. char foo;
  22260. long : 0;
  22261. char bar;
  22262. } t5;
  22263. Here, 't5' takes up 2 bytes.
  22264. '-mno-align-stringops'
  22265. Do not align the destination of inlined string operations. This
  22266. switch reduces code size and improves performance in case the
  22267. destination is already aligned, but GCC doesn't know about it.
  22268. '-minline-all-stringops'
  22269. By default GCC inlines string operations only when the destination
  22270. is known to be aligned to least a 4-byte boundary. This enables
  22271. more inlining and increases code size, but may improve performance
  22272. of code that depends on fast 'memcpy' and 'memset' for short
  22273. lengths. The option enables inline expansion of 'strlen' for all
  22274. pointer alignments.
  22275. '-minline-stringops-dynamically'
  22276. For string operations of unknown size, use run-time checks with
  22277. inline code for small blocks and a library call for large blocks.
  22278. '-mstringop-strategy=ALG'
  22279. Override the internal decision heuristic for the particular
  22280. algorithm to use for inlining string operations. The allowed
  22281. values for ALG are:
  22282. 'rep_byte'
  22283. 'rep_4byte'
  22284. 'rep_8byte'
  22285. Expand using i386 'rep' prefix of the specified size.
  22286. 'byte_loop'
  22287. 'loop'
  22288. 'unrolled_loop'
  22289. Expand into an inline loop.
  22290. 'libcall'
  22291. Always use a library call.
  22292. '-mmemcpy-strategy=STRATEGY'
  22293. Override the internal decision heuristic to decide if
  22294. '__builtin_memcpy' should be inlined and what inline algorithm to
  22295. use when the expected size of the copy operation is known.
  22296. STRATEGY is a comma-separated list of ALG:MAX_SIZE:DEST_ALIGN
  22297. triplets. ALG is specified in '-mstringop-strategy', MAX_SIZE
  22298. specifies the max byte size with which inline algorithm ALG is
  22299. allowed. For the last triplet, the MAX_SIZE must be '-1'. The
  22300. MAX_SIZE of the triplets in the list must be specified in
  22301. increasing order. The minimal byte size for ALG is '0' for the
  22302. first triplet and 'MAX_SIZE + 1' of the preceding range.
  22303. '-mmemset-strategy=STRATEGY'
  22304. The option is similar to '-mmemcpy-strategy=' except that it is to
  22305. control '__builtin_memset' expansion.
  22306. '-momit-leaf-frame-pointer'
  22307. Don't keep the frame pointer in a register for leaf functions.
  22308. This avoids the instructions to save, set up, and restore frame
  22309. pointers and makes an extra register available in leaf functions.
  22310. The option '-fomit-leaf-frame-pointer' removes the frame pointer
  22311. for leaf functions, which might make debugging harder.
  22312. '-mtls-direct-seg-refs'
  22313. '-mno-tls-direct-seg-refs'
  22314. Controls whether TLS variables may be accessed with offsets from
  22315. the TLS segment register ('%gs' for 32-bit, '%fs' for 64-bit), or
  22316. whether the thread base pointer must be added. Whether or not this
  22317. is valid depends on the operating system, and whether it maps the
  22318. segment to cover the entire TLS area.
  22319. For systems that use the GNU C Library, the default is on.
  22320. '-msse2avx'
  22321. '-mno-sse2avx'
  22322. Specify that the assembler should encode SSE instructions with VEX
  22323. prefix. The option '-mavx' turns this on by default.
  22324. '-mfentry'
  22325. '-mno-fentry'
  22326. If profiling is active ('-pg'), put the profiling counter call
  22327. before the prologue. Note: On x86 architectures the attribute
  22328. 'ms_hook_prologue' isn't possible at the moment for '-mfentry' and
  22329. '-pg'.
  22330. '-mrecord-mcount'
  22331. '-mno-record-mcount'
  22332. If profiling is active ('-pg'), generate a __mcount_loc section
  22333. that contains pointers to each profiling call. This is useful for
  22334. automatically patching and out calls.
  22335. '-mnop-mcount'
  22336. '-mno-nop-mcount'
  22337. If profiling is active ('-pg'), generate the calls to the profiling
  22338. functions as NOPs. This is useful when they should be patched in
  22339. later dynamically. This is likely only useful together with
  22340. '-mrecord-mcount'.
  22341. '-minstrument-return=TYPE'
  22342. Instrument function exit in -pg -mfentry instrumented functions
  22343. with call to specified function. This only instruments true
  22344. returns ending with ret, but not sibling calls ending with jump.
  22345. Valid types are NONE to not instrument, CALL to generate a call to
  22346. __return__, or NOP5 to generate a 5 byte nop.
  22347. '-mrecord-return'
  22348. '-mno-record-return'
  22349. Generate a __return_loc section pointing to all return
  22350. instrumentation code.
  22351. '-mfentry-name=NAME'
  22352. Set name of __fentry__ symbol called at function entry for -pg
  22353. -mfentry functions.
  22354. '-mfentry-section=NAME'
  22355. Set name of section to record -mrecord-mcount calls (default
  22356. __mcount_loc).
  22357. '-mskip-rax-setup'
  22358. '-mno-skip-rax-setup'
  22359. When generating code for the x86-64 architecture with SSE
  22360. extensions disabled, '-mskip-rax-setup' can be used to skip setting
  22361. up RAX register when there are no variable arguments passed in
  22362. vector registers.
  22363. *Warning:* Since RAX register is used to avoid unnecessarily saving
  22364. vector registers on stack when passing variable arguments, the
  22365. impacts of this option are callees may waste some stack space,
  22366. misbehave or jump to a random location. GCC 4.4 or newer don't
  22367. have those issues, regardless the RAX register value.
  22368. '-m8bit-idiv'
  22369. '-mno-8bit-idiv'
  22370. On some processors, like Intel Atom, 8-bit unsigned integer divide
  22371. is much faster than 32-bit/64-bit integer divide. This option
  22372. generates a run-time check. If both dividend and divisor are
  22373. within range of 0 to 255, 8-bit unsigned integer divide is used
  22374. instead of 32-bit/64-bit integer divide.
  22375. '-mavx256-split-unaligned-load'
  22376. '-mavx256-split-unaligned-store'
  22377. Split 32-byte AVX unaligned load and store.
  22378. '-mstack-protector-guard=GUARD'
  22379. '-mstack-protector-guard-reg=REG'
  22380. '-mstack-protector-guard-offset=OFFSET'
  22381. Generate stack protection code using canary at GUARD. Supported
  22382. locations are 'global' for global canary or 'tls' for per-thread
  22383. canary in the TLS block (the default). This option has effect only
  22384. when '-fstack-protector' or '-fstack-protector-all' is specified.
  22385. With the latter choice the options
  22386. '-mstack-protector-guard-reg=REG' and
  22387. '-mstack-protector-guard-offset=OFFSET' furthermore specify which
  22388. segment register ('%fs' or '%gs') to use as base register for
  22389. reading the canary, and from what offset from that base register.
  22390. The default for those is as specified in the relevant ABI.
  22391. '-mgeneral-regs-only'
  22392. Generate code that uses only the general-purpose registers. This
  22393. prevents the compiler from using floating-point, vector, mask and
  22394. bound registers.
  22395. '-mindirect-branch=CHOICE'
  22396. Convert indirect call and jump with CHOICE. The default is 'keep',
  22397. which keeps indirect call and jump unmodified. 'thunk' converts
  22398. indirect call and jump to call and return thunk. 'thunk-inline'
  22399. converts indirect call and jump to inlined call and return thunk.
  22400. 'thunk-extern' converts indirect call and jump to external call and
  22401. return thunk provided in a separate object file. You can control
  22402. this behavior for a specific function by using the function
  22403. attribute 'indirect_branch'. *Note Function Attributes::.
  22404. Note that '-mcmodel=large' is incompatible with
  22405. '-mindirect-branch=thunk' and '-mindirect-branch=thunk-extern'
  22406. since the thunk function may not be reachable in the large code
  22407. model.
  22408. Note that '-mindirect-branch=thunk-extern' is compatible with
  22409. '-fcf-protection=branch' since the external thunk can be made to
  22410. enable control-flow check.
  22411. '-mfunction-return=CHOICE'
  22412. Convert function return with CHOICE. The default is 'keep', which
  22413. keeps function return unmodified. 'thunk' converts function return
  22414. to call and return thunk. 'thunk-inline' converts function return
  22415. to inlined call and return thunk. 'thunk-extern' converts function
  22416. return to external call and return thunk provided in a separate
  22417. object file. You can control this behavior for a specific function
  22418. by using the function attribute 'function_return'. *Note Function
  22419. Attributes::.
  22420. Note that '-mindirect-return=thunk-extern' is compatible with
  22421. '-fcf-protection=branch' since the external thunk can be made to
  22422. enable control-flow check.
  22423. Note that '-mcmodel=large' is incompatible with
  22424. '-mfunction-return=thunk' and '-mfunction-return=thunk-extern'
  22425. since the thunk function may not be reachable in the large code
  22426. model.
  22427. '-mindirect-branch-register'
  22428. Force indirect call and jump via register.
  22429. These '-m' switches are supported in addition to the above on x86-64
  22430. processors in 64-bit environments.
  22431. '-m32'
  22432. '-m64'
  22433. '-mx32'
  22434. '-m16'
  22435. '-miamcu'
  22436. Generate code for a 16-bit, 32-bit or 64-bit environment. The
  22437. '-m32' option sets 'int', 'long', and pointer types to 32 bits, and
  22438. generates code that runs on any i386 system.
  22439. The '-m64' option sets 'int' to 32 bits and 'long' and pointer
  22440. types to 64 bits, and generates code for the x86-64 architecture.
  22441. For Darwin only the '-m64' option also turns off the '-fno-pic' and
  22442. '-mdynamic-no-pic' options.
  22443. The '-mx32' option sets 'int', 'long', and pointer types to 32
  22444. bits, and generates code for the x86-64 architecture.
  22445. The '-m16' option is the same as '-m32', except for that it outputs
  22446. the '.code16gcc' assembly directive at the beginning of the
  22447. assembly output so that the binary can run in 16-bit mode.
  22448. The '-miamcu' option generates code which conforms to Intel MCU
  22449. psABI. It requires the '-m32' option to be turned on.
  22450. '-mno-red-zone'
  22451. Do not use a so-called "red zone" for x86-64 code. The red zone is
  22452. mandated by the x86-64 ABI; it is a 128-byte area beyond the
  22453. location of the stack pointer that is not modified by signal or
  22454. interrupt handlers and therefore can be used for temporary data
  22455. without adjusting the stack pointer. The flag '-mno-red-zone'
  22456. disables this red zone.
  22457. '-mcmodel=small'
  22458. Generate code for the small code model: the program and its symbols
  22459. must be linked in the lower 2 GB of the address space. Pointers
  22460. are 64 bits. Programs can be statically or dynamically linked.
  22461. This is the default code model.
  22462. '-mcmodel=kernel'
  22463. Generate code for the kernel code model. The kernel runs in the
  22464. negative 2 GB of the address space. This model has to be used for
  22465. Linux kernel code.
  22466. '-mcmodel=medium'
  22467. Generate code for the medium model: the program is linked in the
  22468. lower 2 GB of the address space. Small symbols are also placed
  22469. there. Symbols with sizes larger than '-mlarge-data-threshold' are
  22470. put into large data or BSS sections and can be located above 2GB.
  22471. Programs can be statically or dynamically linked.
  22472. '-mcmodel=large'
  22473. Generate code for the large model. This model makes no assumptions
  22474. about addresses and sizes of sections.
  22475. '-maddress-mode=long'
  22476. Generate code for long address mode. This is only supported for
  22477. 64-bit and x32 environments. It is the default address mode for
  22478. 64-bit environments.
  22479. '-maddress-mode=short'
  22480. Generate code for short address mode. This is only supported for
  22481. 32-bit and x32 environments. It is the default address mode for
  22482. 32-bit and x32 environments.
  22483. 
  22484. File: gcc.info, Node: x86 Windows Options, Next: Xstormy16 Options, Prev: x86 Options, Up: Submodel Options
  22485. 3.19.60 x86 Windows Options
  22486. ---------------------------
  22487. These additional options are available for Microsoft Windows targets:
  22488. '-mconsole'
  22489. This option specifies that a console application is to be
  22490. generated, by instructing the linker to set the PE header subsystem
  22491. type required for console applications. This option is available
  22492. for Cygwin and MinGW targets and is enabled by default on those
  22493. targets.
  22494. '-mdll'
  22495. This option is available for Cygwin and MinGW targets. It
  22496. specifies that a DLL--a dynamic link library--is to be generated,
  22497. enabling the selection of the required runtime startup object and
  22498. entry point.
  22499. '-mnop-fun-dllimport'
  22500. This option is available for Cygwin and MinGW targets. It
  22501. specifies that the 'dllimport' attribute should be ignored.
  22502. '-mthread'
  22503. This option is available for MinGW targets. It specifies that
  22504. MinGW-specific thread support is to be used.
  22505. '-municode'
  22506. This option is available for MinGW-w64 targets. It causes the
  22507. 'UNICODE' preprocessor macro to be predefined, and chooses
  22508. Unicode-capable runtime startup code.
  22509. '-mwin32'
  22510. This option is available for Cygwin and MinGW targets. It
  22511. specifies that the typical Microsoft Windows predefined macros are
  22512. to be set in the pre-processor, but does not influence the choice
  22513. of runtime library/startup code.
  22514. '-mwindows'
  22515. This option is available for Cygwin and MinGW targets. It
  22516. specifies that a GUI application is to be generated by instructing
  22517. the linker to set the PE header subsystem type appropriately.
  22518. '-fno-set-stack-executable'
  22519. This option is available for MinGW targets. It specifies that the
  22520. executable flag for the stack used by nested functions isn't set.
  22521. This is necessary for binaries running in kernel mode of Microsoft
  22522. Windows, as there the User32 API, which is used to set executable
  22523. privileges, isn't available.
  22524. '-fwritable-relocated-rdata'
  22525. This option is available for MinGW and Cygwin targets. It
  22526. specifies that relocated-data in read-only section is put into the
  22527. '.data' section. This is a necessary for older runtimes not
  22528. supporting modification of '.rdata' sections for pseudo-relocation.
  22529. '-mpe-aligned-commons'
  22530. This option is available for Cygwin and MinGW targets. It
  22531. specifies that the GNU extension to the PE file format that permits
  22532. the correct alignment of COMMON variables should be used when
  22533. generating code. It is enabled by default if GCC detects that the
  22534. target assembler found during configuration supports the feature.
  22535. See also under *note x86 Options:: for standard options.
  22536. 
  22537. File: gcc.info, Node: Xstormy16 Options, Next: Xtensa Options, Prev: x86 Windows Options, Up: Submodel Options
  22538. 3.19.61 Xstormy16 Options
  22539. -------------------------
  22540. These options are defined for Xstormy16:
  22541. '-msim'
  22542. Choose startup files and linker script suitable for the simulator.
  22543. 
  22544. File: gcc.info, Node: Xtensa Options, Next: zSeries Options, Prev: Xstormy16 Options, Up: Submodel Options
  22545. 3.19.62 Xtensa Options
  22546. ----------------------
  22547. These options are supported for Xtensa targets:
  22548. '-mconst16'
  22549. '-mno-const16'
  22550. Enable or disable use of 'CONST16' instructions for loading
  22551. constant values. The 'CONST16' instruction is currently not a
  22552. standard option from Tensilica. When enabled, 'CONST16'
  22553. instructions are always used in place of the standard 'L32R'
  22554. instructions. The use of 'CONST16' is enabled by default only if
  22555. the 'L32R' instruction is not available.
  22556. '-mfused-madd'
  22557. '-mno-fused-madd'
  22558. Enable or disable use of fused multiply/add and multiply/subtract
  22559. instructions in the floating-point option. This has no effect if
  22560. the floating-point option is not also enabled. Disabling fused
  22561. multiply/add and multiply/subtract instructions forces the compiler
  22562. to use separate instructions for the multiply and add/subtract
  22563. operations. This may be desirable in some cases where strict IEEE
  22564. 754-compliant results are required: the fused multiply add/subtract
  22565. instructions do not round the intermediate result, thereby
  22566. producing results with _more_ bits of precision than specified by
  22567. the IEEE standard. Disabling fused multiply add/subtract
  22568. instructions also ensures that the program output is not sensitive
  22569. to the compiler's ability to combine multiply and add/subtract
  22570. operations.
  22571. '-mserialize-volatile'
  22572. '-mno-serialize-volatile'
  22573. When this option is enabled, GCC inserts 'MEMW' instructions before
  22574. 'volatile' memory references to guarantee sequential consistency.
  22575. The default is '-mserialize-volatile'. Use
  22576. '-mno-serialize-volatile' to omit the 'MEMW' instructions.
  22577. '-mforce-no-pic'
  22578. For targets, like GNU/Linux, where all user-mode Xtensa code must
  22579. be position-independent code (PIC), this option disables PIC for
  22580. compiling kernel code.
  22581. '-mtext-section-literals'
  22582. '-mno-text-section-literals'
  22583. These options control the treatment of literal pools. The default
  22584. is '-mno-text-section-literals', which places literals in a
  22585. separate section in the output file. This allows the literal pool
  22586. to be placed in a data RAM/ROM, and it also allows the linker to
  22587. combine literal pools from separate object files to remove
  22588. redundant literals and improve code size. With
  22589. '-mtext-section-literals', the literals are interspersed in the
  22590. text section in order to keep them as close as possible to their
  22591. references. This may be necessary for large assembly files.
  22592. Literals for each function are placed right before that function.
  22593. '-mauto-litpools'
  22594. '-mno-auto-litpools'
  22595. These options control the treatment of literal pools. The default
  22596. is '-mno-auto-litpools', which places literals in a separate
  22597. section in the output file unless '-mtext-section-literals' is
  22598. used. With '-mauto-litpools' the literals are interspersed in the
  22599. text section by the assembler. Compiler does not produce explicit
  22600. '.literal' directives and loads literals into registers with 'MOVI'
  22601. instructions instead of 'L32R' to let the assembler do relaxation
  22602. and place literals as necessary. This option allows assembler to
  22603. create several literal pools per function and assemble very big
  22604. functions, which may not be possible with
  22605. '-mtext-section-literals'.
  22606. '-mtarget-align'
  22607. '-mno-target-align'
  22608. When this option is enabled, GCC instructs the assembler to
  22609. automatically align instructions to reduce branch penalties at the
  22610. expense of some code density. The assembler attempts to widen
  22611. density instructions to align branch targets and the instructions
  22612. following call instructions. If there are not enough preceding
  22613. safe density instructions to align a target, no widening is
  22614. performed. The default is '-mtarget-align'. These options do not
  22615. affect the treatment of auto-aligned instructions like 'LOOP',
  22616. which the assembler always aligns, either by widening density
  22617. instructions or by inserting NOP instructions.
  22618. '-mlongcalls'
  22619. '-mno-longcalls'
  22620. When this option is enabled, GCC instructs the assembler to
  22621. translate direct calls to indirect calls unless it can determine
  22622. that the target of a direct call is in the range allowed by the
  22623. call instruction. This translation typically occurs for calls to
  22624. functions in other source files. Specifically, the assembler
  22625. translates a direct 'CALL' instruction into an 'L32R' followed by a
  22626. 'CALLX' instruction. The default is '-mno-longcalls'. This option
  22627. should be used in programs where the call target can potentially be
  22628. out of range. This option is implemented in the assembler, not the
  22629. compiler, so the assembly code generated by GCC still shows direct
  22630. call instructions--look at the disassembled object code to see the
  22631. actual instructions. Note that the assembler uses an indirect call
  22632. for every cross-file call, not just those that really are out of
  22633. range.
  22634. 
  22635. File: gcc.info, Node: zSeries Options, Prev: Xtensa Options, Up: Submodel Options
  22636. 3.19.63 zSeries Options
  22637. -----------------------
  22638. These are listed under *Note S/390 and zSeries Options::.
  22639. 
  22640. File: gcc.info, Node: Spec Files, Next: Environment Variables, Prev: Submodel Options, Up: Invoking GCC
  22641. 3.20 Specifying Subprocesses and the Switches to Pass to Them
  22642. =============================================================
  22643. 'gcc' is a driver program. It performs its job by invoking a sequence
  22644. of other programs to do the work of compiling, assembling and linking.
  22645. GCC interprets its command-line parameters and uses these to deduce
  22646. which programs it should invoke, and which command-line options it ought
  22647. to place on their command lines. This behavior is controlled by "spec
  22648. strings". In most cases there is one spec string for each program that
  22649. GCC can invoke, but a few programs have multiple spec strings to control
  22650. their behavior. The spec strings built into GCC can be overridden by
  22651. using the '-specs=' command-line switch to specify a spec file.
  22652. "Spec files" are plain-text files that are used to construct spec
  22653. strings. They consist of a sequence of directives separated by blank
  22654. lines. The type of directive is determined by the first non-whitespace
  22655. character on the line, which can be one of the following:
  22656. '%COMMAND'
  22657. Issues a COMMAND to the spec file processor. The commands that can
  22658. appear here are:
  22659. '%include <FILE>'
  22660. Search for FILE and insert its text at the current point in
  22661. the specs file.
  22662. '%include_noerr <FILE>'
  22663. Just like '%include', but do not generate an error message if
  22664. the include file cannot be found.
  22665. '%rename OLD_NAME NEW_NAME'
  22666. Rename the spec string OLD_NAME to NEW_NAME.
  22667. '*[SPEC_NAME]:'
  22668. This tells the compiler to create, override or delete the named
  22669. spec string. All lines after this directive up to the next
  22670. directive or blank line are considered to be the text for the spec
  22671. string. If this results in an empty string then the spec is
  22672. deleted. (Or, if the spec did not exist, then nothing happens.)
  22673. Otherwise, if the spec does not currently exist a new spec is
  22674. created. If the spec does exist then its contents are overridden
  22675. by the text of this directive, unless the first character of that
  22676. text is the '+' character, in which case the text is appended to
  22677. the spec.
  22678. '[SUFFIX]:'
  22679. Creates a new '[SUFFIX] spec' pair. All lines after this directive
  22680. and up to the next directive or blank line are considered to make
  22681. up the spec string for the indicated suffix. When the compiler
  22682. encounters an input file with the named suffix, it processes the
  22683. spec string in order to work out how to compile that file. For
  22684. example:
  22685. .ZZ:
  22686. z-compile -input %i
  22687. This says that any input file whose name ends in '.ZZ' should be
  22688. passed to the program 'z-compile', which should be invoked with the
  22689. command-line switch '-input' and with the result of performing the
  22690. '%i' substitution. (See below.)
  22691. As an alternative to providing a spec string, the text following a
  22692. suffix directive can be one of the following:
  22693. '@LANGUAGE'
  22694. This says that the suffix is an alias for a known LANGUAGE.
  22695. This is similar to using the '-x' command-line switch to GCC
  22696. to specify a language explicitly. For example:
  22697. .ZZ:
  22698. @c++
  22699. Says that .ZZ files are, in fact, C++ source files.
  22700. '#NAME'
  22701. This causes an error messages saying:
  22702. NAME compiler not installed on this system.
  22703. GCC already has an extensive list of suffixes built into it. This
  22704. directive adds an entry to the end of the list of suffixes, but
  22705. since the list is searched from the end backwards, it is
  22706. effectively possible to override earlier entries using this
  22707. technique.
  22708. GCC has the following spec strings built into it. Spec files can
  22709. override these strings or create their own. Note that individual
  22710. targets can also add their own spec strings to this list.
  22711. asm Options to pass to the assembler
  22712. asm_final Options to pass to the assembler post-processor
  22713. cpp Options to pass to the C preprocessor
  22714. cc1 Options to pass to the C compiler
  22715. cc1plus Options to pass to the C++ compiler
  22716. endfile Object files to include at the end of the link
  22717. link Options to pass to the linker
  22718. lib Libraries to include on the command line to the linker
  22719. libgcc Decides which GCC support library to pass to the linker
  22720. linker Sets the name of the linker
  22721. predefines Defines to be passed to the C preprocessor
  22722. signed_char Defines to pass to CPP to say whether char is signed
  22723. by default
  22724. startfile Object files to include at the start of the link
  22725. Here is a small example of a spec file:
  22726. %rename lib old_lib
  22727. *lib:
  22728. --start-group -lgcc -lc -leval1 --end-group %(old_lib)
  22729. This example renames the spec called 'lib' to 'old_lib' and then
  22730. overrides the previous definition of 'lib' with a new one. The new
  22731. definition adds in some extra command-line options before including the
  22732. text of the old definition.
  22733. "Spec strings" are a list of command-line options to be passed to their
  22734. corresponding program. In addition, the spec strings can contain
  22735. '%'-prefixed sequences to substitute variable text or to conditionally
  22736. insert text into the command line. Using these constructs it is
  22737. possible to generate quite complex command lines.
  22738. Here is a table of all defined '%'-sequences for spec strings. Note
  22739. that spaces are not generated automatically around the results of
  22740. expanding these sequences. Therefore you can concatenate them together
  22741. or combine them with constant text in a single argument.
  22742. '%%'
  22743. Substitute one '%' into the program name or argument.
  22744. '%i'
  22745. Substitute the name of the input file being processed.
  22746. '%b'
  22747. Substitute the basename of the input file being processed. This is
  22748. the substring up to (and not including) the last period and not
  22749. including the directory.
  22750. '%B'
  22751. This is the same as '%b', but include the file suffix (text after
  22752. the last period).
  22753. '%d'
  22754. Marks the argument containing or following the '%d' as a temporary
  22755. file name, so that that file is deleted if GCC exits successfully.
  22756. Unlike '%g', this contributes no text to the argument.
  22757. '%gSUFFIX'
  22758. Substitute a file name that has suffix SUFFIX and is chosen once
  22759. per compilation, and mark the argument in the same way as '%d'. To
  22760. reduce exposure to denial-of-service attacks, the file name is now
  22761. chosen in a way that is hard to predict even when previously chosen
  22762. file names are known. For example, '%g.s ... %g.o ... %g.s' might
  22763. turn into 'ccUVUUAU.s ccXYAXZ12.o ccUVUUAU.s'. SUFFIX matches the
  22764. regexp '[.A-Za-z]*' or the special string '%O', which is treated
  22765. exactly as if '%O' had been preprocessed. Previously, '%g' was
  22766. simply substituted with a file name chosen once per compilation,
  22767. without regard to any appended suffix (which was therefore treated
  22768. just like ordinary text), making such attacks more likely to
  22769. succeed.
  22770. '%uSUFFIX'
  22771. Like '%g', but generates a new temporary file name each time it
  22772. appears instead of once per compilation.
  22773. '%USUFFIX'
  22774. Substitutes the last file name generated with '%uSUFFIX',
  22775. generating a new one if there is no such last file name. In the
  22776. absence of any '%uSUFFIX', this is just like '%gSUFFIX', except
  22777. they don't share the same suffix _space_, so '%g.s ... %U.s ...
  22778. %g.s ... %U.s' involves the generation of two distinct file names,
  22779. one for each '%g.s' and another for each '%U.s'. Previously, '%U'
  22780. was simply substituted with a file name chosen for the previous
  22781. '%u', without regard to any appended suffix.
  22782. '%jSUFFIX'
  22783. Substitutes the name of the 'HOST_BIT_BUCKET', if any, and if it is
  22784. writable, and if '-save-temps' is not used; otherwise, substitute
  22785. the name of a temporary file, just like '%u'. This temporary file
  22786. is not meant for communication between processes, but rather as a
  22787. junk disposal mechanism.
  22788. '%|SUFFIX'
  22789. '%mSUFFIX'
  22790. Like '%g', except if '-pipe' is in effect. In that case '%|'
  22791. substitutes a single dash and '%m' substitutes nothing at all.
  22792. These are the two most common ways to instruct a program that it
  22793. should read from standard input or write to standard output. If
  22794. you need something more elaborate you can use an '%{pipe:'X'}'
  22795. construct: see for example 'gcc/fortran/lang-specs.h'.
  22796. '%.SUFFIX'
  22797. Substitutes .SUFFIX for the suffixes of a matched switch's args
  22798. when it is subsequently output with '%*'. SUFFIX is terminated by
  22799. the next space or %.
  22800. '%w'
  22801. Marks the argument containing or following the '%w' as the
  22802. designated output file of this compilation. This puts the argument
  22803. into the sequence of arguments that '%o' substitutes.
  22804. '%o'
  22805. Substitutes the names of all the output files, with spaces
  22806. automatically placed around them. You should write spaces around
  22807. the '%o' as well or the results are undefined. '%o' is for use in
  22808. the specs for running the linker. Input files whose names have no
  22809. recognized suffix are not compiled at all, but they are included
  22810. among the output files, so they are linked.
  22811. '%O'
  22812. Substitutes the suffix for object files. Note that this is handled
  22813. specially when it immediately follows '%g, %u, or %U', because of
  22814. the need for those to form complete file names. The handling is
  22815. such that '%O' is treated exactly as if it had already been
  22816. substituted, except that '%g, %u, and %U' do not currently support
  22817. additional SUFFIX characters following '%O' as they do following,
  22818. for example, '.o'.
  22819. '%p'
  22820. Substitutes the standard macro predefinitions for the current
  22821. target machine. Use this when running 'cpp'.
  22822. '%P'
  22823. Like '%p', but puts '__' before and after the name of each
  22824. predefined macro, except for macros that start with '__' or with
  22825. '_L', where L is an uppercase letter. This is for ISO C.
  22826. '%I'
  22827. Substitute any of '-iprefix' (made from 'GCC_EXEC_PREFIX'),
  22828. '-isysroot' (made from 'TARGET_SYSTEM_ROOT'), '-isystem' (made from
  22829. 'COMPILER_PATH' and '-B' options) and '-imultilib' as necessary.
  22830. '%s'
  22831. Current argument is the name of a library or startup file of some
  22832. sort. Search for that file in a standard list of directories and
  22833. substitute the full name found. The current working directory is
  22834. included in the list of directories scanned.
  22835. '%T'
  22836. Current argument is the name of a linker script. Search for that
  22837. file in the current list of directories to scan for libraries. If
  22838. the file is located insert a '--script' option into the command
  22839. line followed by the full path name found. If the file is not
  22840. found then generate an error message. Note: the current working
  22841. directory is not searched.
  22842. '%eSTR'
  22843. Print STR as an error message. STR is terminated by a newline.
  22844. Use this when inconsistent options are detected.
  22845. '%(NAME)'
  22846. Substitute the contents of spec string NAME at this point.
  22847. '%x{OPTION}'
  22848. Accumulate an option for '%X'.
  22849. '%X'
  22850. Output the accumulated linker options specified by '-Wl' or a '%x'
  22851. spec string.
  22852. '%Y'
  22853. Output the accumulated assembler options specified by '-Wa'.
  22854. '%Z'
  22855. Output the accumulated preprocessor options specified by '-Wp'.
  22856. '%a'
  22857. Process the 'asm' spec. This is used to compute the switches to be
  22858. passed to the assembler.
  22859. '%A'
  22860. Process the 'asm_final' spec. This is a spec string for passing
  22861. switches to an assembler post-processor, if such a program is
  22862. needed.
  22863. '%l'
  22864. Process the 'link' spec. This is the spec for computing the
  22865. command line passed to the linker. Typically it makes use of the
  22866. '%L %G %S %D and %E' sequences.
  22867. '%D'
  22868. Dump out a '-L' option for each directory that GCC believes might
  22869. contain startup files. If the target supports multilibs then the
  22870. current multilib directory is prepended to each of these paths.
  22871. '%L'
  22872. Process the 'lib' spec. This is a spec string for deciding which
  22873. libraries are included on the command line to the linker.
  22874. '%G'
  22875. Process the 'libgcc' spec. This is a spec string for deciding
  22876. which GCC support library is included on the command line to the
  22877. linker.
  22878. '%S'
  22879. Process the 'startfile' spec. This is a spec for deciding which
  22880. object files are the first ones passed to the linker. Typically
  22881. this might be a file named 'crt0.o'.
  22882. '%E'
  22883. Process the 'endfile' spec. This is a spec string that specifies
  22884. the last object files that are passed to the linker.
  22885. '%C'
  22886. Process the 'cpp' spec. This is used to construct the arguments to
  22887. be passed to the C preprocessor.
  22888. '%1'
  22889. Process the 'cc1' spec. This is used to construct the options to
  22890. be passed to the actual C compiler ('cc1').
  22891. '%2'
  22892. Process the 'cc1plus' spec. This is used to construct the options
  22893. to be passed to the actual C++ compiler ('cc1plus').
  22894. '%*'
  22895. Substitute the variable part of a matched option. See below. Note
  22896. that each comma in the substituted string is replaced by a single
  22897. space.
  22898. '%<S'
  22899. Remove all occurrences of '-S' from the command line. Note--this
  22900. command is position dependent. '%' commands in the spec string
  22901. before this one see '-S', '%' commands in the spec string after
  22902. this one do not.
  22903. '%:FUNCTION(ARGS)'
  22904. Call the named function FUNCTION, passing it ARGS. ARGS is first
  22905. processed as a nested spec string, then split into an argument
  22906. vector in the usual fashion. The function returns a string which
  22907. is processed as if it had appeared literally as part of the current
  22908. spec.
  22909. The following built-in spec functions are provided:
  22910. 'getenv'
  22911. The 'getenv' spec function takes two arguments: an environment
  22912. variable name and a string. If the environment variable is
  22913. not defined, a fatal error is issued. Otherwise, the return
  22914. value is the value of the environment variable concatenated
  22915. with the string. For example, if 'TOPDIR' is defined as
  22916. '/path/to/top', then:
  22917. %:getenv(TOPDIR /include)
  22918. expands to '/path/to/top/include'.
  22919. 'if-exists'
  22920. The 'if-exists' spec function takes one argument, an absolute
  22921. pathname to a file. If the file exists, 'if-exists' returns
  22922. the pathname. Here is a small example of its usage:
  22923. *startfile:
  22924. crt0%O%s %:if-exists(crti%O%s) crtbegin%O%s
  22925. 'if-exists-else'
  22926. The 'if-exists-else' spec function is similar to the
  22927. 'if-exists' spec function, except that it takes two arguments.
  22928. The first argument is an absolute pathname to a file. If the
  22929. file exists, 'if-exists-else' returns the pathname. If it
  22930. does not exist, it returns the second argument. This way,
  22931. 'if-exists-else' can be used to select one file or another,
  22932. based on the existence of the first. Here is a small example
  22933. of its usage:
  22934. *startfile:
  22935. crt0%O%s %:if-exists(crti%O%s) \
  22936. %:if-exists-else(crtbeginT%O%s crtbegin%O%s)
  22937. 'replace-outfile'
  22938. The 'replace-outfile' spec function takes two arguments. It
  22939. looks for the first argument in the outfiles array and
  22940. replaces it with the second argument. Here is a small example
  22941. of its usage:
  22942. %{fgnu-runtime:%:replace-outfile(-lobjc -lobjc-gnu)}
  22943. 'remove-outfile'
  22944. The 'remove-outfile' spec function takes one argument. It
  22945. looks for the first argument in the outfiles array and removes
  22946. it. Here is a small example its usage:
  22947. %:remove-outfile(-lm)
  22948. 'pass-through-libs'
  22949. The 'pass-through-libs' spec function takes any number of
  22950. arguments. It finds any '-l' options and any non-options
  22951. ending in '.a' (which it assumes are the names of linker input
  22952. library archive files) and returns a result containing all the
  22953. found arguments each prepended by '-plugin-opt=-pass-through='
  22954. and joined by spaces. This list is intended to be passed to
  22955. the LTO linker plugin.
  22956. %:pass-through-libs(%G %L %G)
  22957. 'print-asm-header'
  22958. The 'print-asm-header' function takes no arguments and simply
  22959. prints a banner like:
  22960. Assembler options
  22961. =================
  22962. Use "-Wa,OPTION" to pass "OPTION" to the assembler.
  22963. It is used to separate compiler options from assembler options
  22964. in the '--target-help' output.
  22965. '%{S}'
  22966. Substitutes the '-S' switch, if that switch is given to GCC. If
  22967. that switch is not specified, this substitutes nothing. Note that
  22968. the leading dash is omitted when specifying this option, and it is
  22969. automatically inserted if the substitution is performed. Thus the
  22970. spec string '%{foo}' matches the command-line option '-foo' and
  22971. outputs the command-line option '-foo'.
  22972. '%W{S}'
  22973. Like %{'S'} but mark last argument supplied within as a file to be
  22974. deleted on failure.
  22975. '%{S*}'
  22976. Substitutes all the switches specified to GCC whose names start
  22977. with '-S', but which also take an argument. This is used for
  22978. switches like '-o', '-D', '-I', etc. GCC considers '-o foo' as
  22979. being one switch whose name starts with 'o'. %{o*} substitutes
  22980. this text, including the space. Thus two arguments are generated.
  22981. '%{S*&T*}'
  22982. Like %{'S'*}, but preserve order of 'S' and 'T' options (the order
  22983. of 'S' and 'T' in the spec is not significant). There can be any
  22984. number of ampersand-separated variables; for each the wild card is
  22985. optional. Useful for CPP as '%{D*&U*&A*}'.
  22986. '%{S:X}'
  22987. Substitutes 'X', if the '-S' switch is given to GCC.
  22988. '%{!S:X}'
  22989. Substitutes 'X', if the '-S' switch is _not_ given to GCC.
  22990. '%{S*:X}'
  22991. Substitutes 'X' if one or more switches whose names start with '-S'
  22992. are specified to GCC. Normally 'X' is substituted only once, no
  22993. matter how many such switches appeared. However, if '%*' appears
  22994. somewhere in 'X', then 'X' is substituted once for each matching
  22995. switch, with the '%*' replaced by the part of that switch matching
  22996. the '*'.
  22997. If '%*' appears as the last part of a spec sequence then a space is
  22998. added after the end of the last substitution. If there is more
  22999. text in the sequence, however, then a space is not generated. This
  23000. allows the '%*' substitution to be used as part of a larger string.
  23001. For example, a spec string like this:
  23002. %{mcu=*:--script=%*/memory.ld}
  23003. when matching an option like '-mcu=newchip' produces:
  23004. --script=newchip/memory.ld
  23005. '%{.S:X}'
  23006. Substitutes 'X', if processing a file with suffix 'S'.
  23007. '%{!.S:X}'
  23008. Substitutes 'X', if _not_ processing a file with suffix 'S'.
  23009. '%{,S:X}'
  23010. Substitutes 'X', if processing a file for language 'S'.
  23011. '%{!,S:X}'
  23012. Substitutes 'X', if not processing a file for language 'S'.
  23013. '%{S|P:X}'
  23014. Substitutes 'X' if either '-S' or '-P' is given to GCC. This may
  23015. be combined with '!', '.', ',', and '*' sequences as well, although
  23016. they have a stronger binding than the '|'. If '%*' appears in 'X',
  23017. all of the alternatives must be starred, and only the first
  23018. matching alternative is substituted.
  23019. For example, a spec string like this:
  23020. %{.c:-foo} %{!.c:-bar} %{.c|d:-baz} %{!.c|d:-boggle}
  23021. outputs the following command-line options from the following input
  23022. command-line options:
  23023. fred.c -foo -baz
  23024. jim.d -bar -boggle
  23025. -d fred.c -foo -baz -boggle
  23026. -d jim.d -bar -baz -boggle
  23027. '%{S:X; T:Y; :D}'
  23028. If 'S' is given to GCC, substitutes 'X'; else if 'T' is given to
  23029. GCC, substitutes 'Y'; else substitutes 'D'. There can be as many
  23030. clauses as you need. This may be combined with '.', ',', '!', '|',
  23031. and '*' as needed.
  23032. The switch matching text 'S' in a '%{S}', '%{S:X}' or similar construct
  23033. can use a backslash to ignore the special meaning of the character
  23034. following it, thus allowing literal matching of a character that is
  23035. otherwise specially treated. For example, '%{std=iso9899\:1999:X}'
  23036. substitutes 'X' if the '-std=iso9899:1999' option is given.
  23037. The conditional text 'X' in a '%{S:X}' or similar construct may contain
  23038. other nested '%' constructs or spaces, or even newlines. They are
  23039. processed as usual, as described above. Trailing white space in 'X' is
  23040. ignored. White space may also appear anywhere on the left side of the
  23041. colon in these constructs, except between '.' or '*' and the
  23042. corresponding word.
  23043. The '-O', '-f', '-m', and '-W' switches are handled specifically in
  23044. these constructs. If another value of '-O' or the negated form of a
  23045. '-f', '-m', or '-W' switch is found later in the command line, the
  23046. earlier switch value is ignored, except with {'S'*} where 'S' is just
  23047. one letter, which passes all matching options.
  23048. The character '|' at the beginning of the predicate text is used to
  23049. indicate that a command should be piped to the following command, but
  23050. only if '-pipe' is specified.
  23051. It is built into GCC which switches take arguments and which do not.
  23052. (You might think it would be useful to generalize this to allow each
  23053. compiler's spec to say which switches take arguments. But this cannot
  23054. be done in a consistent fashion. GCC cannot even decide which input
  23055. files have been specified without knowing which switches take arguments,
  23056. and it must know which input files to compile in order to tell which
  23057. compilers to run).
  23058. GCC also knows implicitly that arguments starting in '-l' are to be
  23059. treated as compiler output files, and passed to the linker in their
  23060. proper position among the other output files.
  23061. 
  23062. File: gcc.info, Node: Environment Variables, Next: Precompiled Headers, Prev: Spec Files, Up: Invoking GCC
  23063. 3.21 Environment Variables Affecting GCC
  23064. ========================================
  23065. This section describes several environment variables that affect how GCC
  23066. operates. Some of them work by specifying directories or prefixes to
  23067. use when searching for various kinds of files. Some are used to specify
  23068. other aspects of the compilation environment.
  23069. Note that you can also specify places to search using options such as
  23070. '-B', '-I' and '-L' (*note Directory Options::). These take precedence
  23071. over places specified using environment variables, which in turn take
  23072. precedence over those specified by the configuration of GCC. *Note
  23073. Controlling the Compilation Driver 'gcc': (gccint)Driver.
  23074. 'LANG'
  23075. 'LC_CTYPE'
  23076. 'LC_MESSAGES'
  23077. 'LC_ALL'
  23078. These environment variables control the way that GCC uses
  23079. localization information which allows GCC to work with different
  23080. national conventions. GCC inspects the locale categories
  23081. 'LC_CTYPE' and 'LC_MESSAGES' if it has been configured to do so.
  23082. These locale categories can be set to any value supported by your
  23083. installation. A typical value is 'en_GB.UTF-8' for English in the
  23084. United Kingdom encoded in UTF-8.
  23085. The 'LC_CTYPE' environment variable specifies character
  23086. classification. GCC uses it to determine the character boundaries
  23087. in a string; this is needed for some multibyte encodings that
  23088. contain quote and escape characters that are otherwise interpreted
  23089. as a string end or escape.
  23090. The 'LC_MESSAGES' environment variable specifies the language to
  23091. use in diagnostic messages.
  23092. If the 'LC_ALL' environment variable is set, it overrides the value
  23093. of 'LC_CTYPE' and 'LC_MESSAGES'; otherwise, 'LC_CTYPE' and
  23094. 'LC_MESSAGES' default to the value of the 'LANG' environment
  23095. variable. If none of these variables are set, GCC defaults to
  23096. traditional C English behavior.
  23097. 'TMPDIR'
  23098. If 'TMPDIR' is set, it specifies the directory to use for temporary
  23099. files. GCC uses temporary files to hold the output of one stage of
  23100. compilation which is to be used as input to the next stage: for
  23101. example, the output of the preprocessor, which is the input to the
  23102. compiler proper.
  23103. 'GCC_COMPARE_DEBUG'
  23104. Setting 'GCC_COMPARE_DEBUG' is nearly equivalent to passing
  23105. '-fcompare-debug' to the compiler driver. See the documentation of
  23106. this option for more details.
  23107. 'GCC_EXEC_PREFIX'
  23108. If 'GCC_EXEC_PREFIX' is set, it specifies a prefix to use in the
  23109. names of the subprograms executed by the compiler. No slash is
  23110. added when this prefix is combined with the name of a subprogram,
  23111. but you can specify a prefix that ends with a slash if you wish.
  23112. If 'GCC_EXEC_PREFIX' is not set, GCC attempts to figure out an
  23113. appropriate prefix to use based on the pathname it is invoked with.
  23114. If GCC cannot find the subprogram using the specified prefix, it
  23115. tries looking in the usual places for the subprogram.
  23116. The default value of 'GCC_EXEC_PREFIX' is 'PREFIX/lib/gcc/' where
  23117. PREFIX is the prefix to the installed compiler. In many cases
  23118. PREFIX is the value of 'prefix' when you ran the 'configure'
  23119. script.
  23120. Other prefixes specified with '-B' take precedence over this
  23121. prefix.
  23122. This prefix is also used for finding files such as 'crt0.o' that
  23123. are used for linking.
  23124. In addition, the prefix is used in an unusual way in finding the
  23125. directories to search for header files. For each of the standard
  23126. directories whose name normally begins with '/usr/local/lib/gcc'
  23127. (more precisely, with the value of 'GCC_INCLUDE_DIR'), GCC tries
  23128. replacing that beginning with the specified prefix to produce an
  23129. alternate directory name. Thus, with '-Bfoo/', GCC searches
  23130. 'foo/bar' just before it searches the standard directory
  23131. '/usr/local/lib/bar'. If a standard directory begins with the
  23132. configured PREFIX then the value of PREFIX is replaced by
  23133. 'GCC_EXEC_PREFIX' when looking for header files.
  23134. 'COMPILER_PATH'
  23135. The value of 'COMPILER_PATH' is a colon-separated list of
  23136. directories, much like 'PATH'. GCC tries the directories thus
  23137. specified when searching for subprograms, if it cannot find the
  23138. subprograms using 'GCC_EXEC_PREFIX'.
  23139. 'LIBRARY_PATH'
  23140. The value of 'LIBRARY_PATH' is a colon-separated list of
  23141. directories, much like 'PATH'. When configured as a native
  23142. compiler, GCC tries the directories thus specified when searching
  23143. for special linker files, if it cannot find them using
  23144. 'GCC_EXEC_PREFIX'. Linking using GCC also uses these directories
  23145. when searching for ordinary libraries for the '-l' option (but
  23146. directories specified with '-L' come first).
  23147. 'LANG'
  23148. This variable is used to pass locale information to the compiler.
  23149. One way in which this information is used is to determine the
  23150. character set to be used when character literals, string literals
  23151. and comments are parsed in C and C++. When the compiler is
  23152. configured to allow multibyte characters, the following values for
  23153. 'LANG' are recognized:
  23154. 'C-JIS'
  23155. Recognize JIS characters.
  23156. 'C-SJIS'
  23157. Recognize SJIS characters.
  23158. 'C-EUCJP'
  23159. Recognize EUCJP characters.
  23160. If 'LANG' is not defined, or if it has some other value, then the
  23161. compiler uses 'mblen' and 'mbtowc' as defined by the default locale
  23162. to recognize and translate multibyte characters.
  23163. Some additional environment variables affect the behavior of the
  23164. preprocessor.
  23165. 'CPATH'
  23166. 'C_INCLUDE_PATH'
  23167. 'CPLUS_INCLUDE_PATH'
  23168. 'OBJC_INCLUDE_PATH'
  23169. Each variable's value is a list of directories separated by a
  23170. special character, much like 'PATH', in which to look for header
  23171. files. The special character, 'PATH_SEPARATOR', is
  23172. target-dependent and determined at GCC build time. For Microsoft
  23173. Windows-based targets it is a semicolon, and for almost all other
  23174. targets it is a colon.
  23175. 'CPATH' specifies a list of directories to be searched as if
  23176. specified with '-I', but after any paths given with '-I' options on
  23177. the command line. This environment variable is used regardless of
  23178. which language is being preprocessed.
  23179. The remaining environment variables apply only when preprocessing
  23180. the particular language indicated. Each specifies a list of
  23181. directories to be searched as if specified with '-isystem', but
  23182. after any paths given with '-isystem' options on the command line.
  23183. In all these variables, an empty element instructs the compiler to
  23184. search its current working directory. Empty elements can appear at
  23185. the beginning or end of a path. For instance, if the value of
  23186. 'CPATH' is ':/special/include', that has the same effect as
  23187. '-I. -I/special/include'.
  23188. 'DEPENDENCIES_OUTPUT'
  23189. If this variable is set, its value specifies how to output
  23190. dependencies for Make based on the non-system header files
  23191. processed by the compiler. System header files are ignored in the
  23192. dependency output.
  23193. The value of 'DEPENDENCIES_OUTPUT' can be just a file name, in
  23194. which case the Make rules are written to that file, guessing the
  23195. target name from the source file name. Or the value can have the
  23196. form 'FILE TARGET', in which case the rules are written to file
  23197. FILE using TARGET as the target name.
  23198. In other words, this environment variable is equivalent to
  23199. combining the options '-MM' and '-MF' (*note Preprocessor
  23200. Options::), with an optional '-MT' switch too.
  23201. 'SUNPRO_DEPENDENCIES'
  23202. This variable is the same as 'DEPENDENCIES_OUTPUT' (see above),
  23203. except that system header files are not ignored, so it implies '-M'
  23204. rather than '-MM'. However, the dependence on the main input file
  23205. is omitted. *Note Preprocessor Options::.
  23206. 'SOURCE_DATE_EPOCH'
  23207. If this variable is set, its value specifies a UNIX timestamp to be
  23208. used in replacement of the current date and time in the '__DATE__'
  23209. and '__TIME__' macros, so that the embedded timestamps become
  23210. reproducible.
  23211. The value of 'SOURCE_DATE_EPOCH' must be a UNIX timestamp, defined
  23212. as the number of seconds (excluding leap seconds) since 01 Jan 1970
  23213. 00:00:00 represented in ASCII; identical to the output of ''date
  23214. +%s'' on GNU/Linux and other systems that support the '%s'
  23215. extension in the 'date' command.
  23216. The value should be a known timestamp such as the last modification
  23217. time of the source or package and it should be set by the build
  23218. process.
  23219. 
  23220. File: gcc.info, Node: Precompiled Headers, Prev: Environment Variables, Up: Invoking GCC
  23221. 3.22 Using Precompiled Headers
  23222. ==============================
  23223. Often large projects have many header files that are included in every
  23224. source file. The time the compiler takes to process these header files
  23225. over and over again can account for nearly all of the time required to
  23226. build the project. To make builds faster, GCC allows you to
  23227. "precompile" a header file.
  23228. To create a precompiled header file, simply compile it as you would any
  23229. other file, if necessary using the '-x' option to make the driver treat
  23230. it as a C or C++ header file. You may want to use a tool like 'make' to
  23231. keep the precompiled header up-to-date when the headers it contains
  23232. change.
  23233. A precompiled header file is searched for when '#include' is seen in
  23234. the compilation. As it searches for the included file (*note Search
  23235. Path: (cpp)Search Path.) the compiler looks for a precompiled header in
  23236. each directory just before it looks for the include file in that
  23237. directory. The name searched for is the name specified in the
  23238. '#include' with '.gch' appended. If the precompiled header file cannot
  23239. be used, it is ignored.
  23240. For instance, if you have '#include "all.h"', and you have 'all.h.gch'
  23241. in the same directory as 'all.h', then the precompiled header file is
  23242. used if possible, and the original header is used otherwise.
  23243. Alternatively, you might decide to put the precompiled header file in a
  23244. directory and use '-I' to ensure that directory is searched before (or
  23245. instead of) the directory containing the original header. Then, if you
  23246. want to check that the precompiled header file is always used, you can
  23247. put a file of the same name as the original header in this directory
  23248. containing an '#error' command.
  23249. This also works with '-include'. So yet another way to use precompiled
  23250. headers, good for projects not designed with precompiled header files in
  23251. mind, is to simply take most of the header files used by a project,
  23252. include them from another header file, precompile that header file, and
  23253. '-include' the precompiled header. If the header files have guards
  23254. against multiple inclusion, they are skipped because they've already
  23255. been included (in the precompiled header).
  23256. If you need to precompile the same header file for different languages,
  23257. targets, or compiler options, you can instead make a _directory_ named
  23258. like 'all.h.gch', and put each precompiled header in the directory,
  23259. perhaps using '-o'. It doesn't matter what you call the files in the
  23260. directory; every precompiled header in the directory is considered. The
  23261. first precompiled header encountered in the directory that is valid for
  23262. this compilation is used; they're searched in no particular order.
  23263. There are many other possibilities, limited only by your imagination,
  23264. good sense, and the constraints of your build system.
  23265. A precompiled header file can be used only when these conditions apply:
  23266. * Only one precompiled header can be used in a particular
  23267. compilation.
  23268. * A precompiled header cannot be used once the first C token is seen.
  23269. You can have preprocessor directives before a precompiled header;
  23270. you cannot include a precompiled header from inside another header.
  23271. * The precompiled header file must be produced for the same language
  23272. as the current compilation. You cannot use a C precompiled header
  23273. for a C++ compilation.
  23274. * The precompiled header file must have been produced by the same
  23275. compiler binary as the current compilation is using.
  23276. * Any macros defined before the precompiled header is included must
  23277. either be defined in the same way as when the precompiled header
  23278. was generated, or must not affect the precompiled header, which
  23279. usually means that they don't appear in the precompiled header at
  23280. all.
  23281. The '-D' option is one way to define a macro before a precompiled
  23282. header is included; using a '#define' can also do it. There are
  23283. also some options that define macros implicitly, like '-O' and
  23284. '-Wdeprecated'; the same rule applies to macros defined this way.
  23285. * If debugging information is output when using the precompiled
  23286. header, using '-g' or similar, the same kind of debugging
  23287. information must have been output when building the precompiled
  23288. header. However, a precompiled header built using '-g' can be used
  23289. in a compilation when no debugging information is being output.
  23290. * The same '-m' options must generally be used when building and
  23291. using the precompiled header. *Note Submodel Options::, for any
  23292. cases where this rule is relaxed.
  23293. * Each of the following options must be the same when building and
  23294. using the precompiled header:
  23295. -fexceptions
  23296. * Some other command-line options starting with '-f', '-p', or '-O'
  23297. must be defined in the same way as when the precompiled header was
  23298. generated. At present, it's not clear which options are safe to
  23299. change and which are not; the safest choice is to use exactly the
  23300. same options when generating and using the precompiled header. The
  23301. following are known to be safe:
  23302. -fmessage-length= -fpreprocessed -fsched-interblock
  23303. -fsched-spec -fsched-spec-load -fsched-spec-load-dangerous
  23304. -fsched-verbose=NUMBER -fschedule-insns -fvisibility=
  23305. -pedantic-errors
  23306. * Address space layout randomization (ASLR) can lead to not binary
  23307. identical PCH files. If you rely on stable PCH file contents
  23308. disable ASLR when generating PCH files.
  23309. For all of these except the last, the compiler automatically ignores
  23310. the precompiled header if the conditions aren't met. If you find an
  23311. option combination that doesn't work and doesn't cause the precompiled
  23312. header to be ignored, please consider filing a bug report, see *note
  23313. Bugs::.
  23314. If you do use differing options when generating and using the
  23315. precompiled header, the actual behavior is a mixture of the behavior for
  23316. the options. For instance, if you use '-g' to generate the precompiled
  23317. header but not when using it, you may or may not get debugging
  23318. information for routines in the precompiled header.
  23319. 
  23320. File: gcc.info, Node: C Implementation, Next: C++ Implementation, Prev: Invoking GCC, Up: Top
  23321. 4 C Implementation-Defined Behavior
  23322. ***********************************
  23323. A conforming implementation of ISO C is required to document its choice
  23324. of behavior in each of the areas that are designated "implementation
  23325. defined". The following lists all such areas, along with the section
  23326. numbers from the ISO/IEC 9899:1990, ISO/IEC 9899:1999 and ISO/IEC
  23327. 9899:2011 standards. Some areas are only implementation-defined in one
  23328. version of the standard.
  23329. Some choices depend on the externally determined ABI for the platform
  23330. (including standard character encodings) which GCC follows; these are
  23331. listed as "determined by ABI" below. *Note Binary Compatibility:
  23332. Compatibility, and <http://gcc.gnu.org/readings.html>. Some choices are
  23333. documented in the preprocessor manual. *Note Implementation-defined
  23334. behavior: (cpp)Implementation-defined behavior. Some choices are made
  23335. by the library and operating system (or other environment when compiling
  23336. for a freestanding environment); refer to their documentation for
  23337. details.
  23338. * Menu:
  23339. * Translation implementation::
  23340. * Environment implementation::
  23341. * Identifiers implementation::
  23342. * Characters implementation::
  23343. * Integers implementation::
  23344. * Floating point implementation::
  23345. * Arrays and pointers implementation::
  23346. * Hints implementation::
  23347. * Structures unions enumerations and bit-fields implementation::
  23348. * Qualifiers implementation::
  23349. * Declarators implementation::
  23350. * Statements implementation::
  23351. * Preprocessing directives implementation::
  23352. * Library functions implementation::
  23353. * Architecture implementation::
  23354. * Locale-specific behavior implementation::
  23355. 
  23356. File: gcc.info, Node: Translation implementation, Next: Environment implementation, Up: C Implementation
  23357. 4.1 Translation
  23358. ===============
  23359. * 'How a diagnostic is identified (C90 3.7, C99 and C11 3.10, C90,
  23360. C99 and C11 5.1.1.3).'
  23361. Diagnostics consist of all the output sent to stderr by GCC.
  23362. * 'Whether each nonempty sequence of white-space characters other
  23363. than new-line is retained or replaced by one space character in
  23364. translation phase 3 (C90, C99 and C11 5.1.1.2).'
  23365. *Note Implementation-defined behavior: (cpp)Implementation-defined
  23366. behavior.
  23367. 
  23368. File: gcc.info, Node: Environment implementation, Next: Identifiers implementation, Prev: Translation implementation, Up: C Implementation
  23369. 4.2 Environment
  23370. ===============
  23371. The behavior of most of these points are dependent on the implementation
  23372. of the C library, and are not defined by GCC itself.
  23373. * 'The mapping between physical source file multibyte characters and
  23374. the source character set in translation phase 1 (C90, C99 and C11
  23375. 5.1.1.2).'
  23376. *Note Implementation-defined behavior: (cpp)Implementation-defined
  23377. behavior.
  23378. 
  23379. File: gcc.info, Node: Identifiers implementation, Next: Characters implementation, Prev: Environment implementation, Up: C Implementation
  23380. 4.3 Identifiers
  23381. ===============
  23382. * 'Which additional multibyte characters may appear in identifiers
  23383. and their correspondence to universal character names (C99 and C11
  23384. 6.4.2).'
  23385. *Note Implementation-defined behavior: (cpp)Implementation-defined
  23386. behavior.
  23387. * 'The number of significant initial characters in an identifier (C90
  23388. 6.1.2, C90, C99 and C11 5.2.4.1, C99 and C11 6.4.2).'
  23389. For internal names, all characters are significant. For external
  23390. names, the number of significant characters are defined by the
  23391. linker; for almost all targets, all characters are significant.
  23392. * 'Whether case distinctions are significant in an identifier with
  23393. external linkage (C90 6.1.2).'
  23394. This is a property of the linker. C99 and C11 require that case
  23395. distinctions are always significant in identifiers with external
  23396. linkage and systems without this property are not supported by GCC.
  23397. 
  23398. File: gcc.info, Node: Characters implementation, Next: Integers implementation, Prev: Identifiers implementation, Up: C Implementation
  23399. 4.4 Characters
  23400. ==============
  23401. * 'The number of bits in a byte (C90 3.4, C99 and C11 3.6).'
  23402. Determined by ABI.
  23403. * 'The values of the members of the execution character set (C90, C99
  23404. and C11 5.2.1).'
  23405. Determined by ABI.
  23406. * 'The unique value of the member of the execution character set
  23407. produced for each of the standard alphabetic escape sequences (C90,
  23408. C99 and C11 5.2.2).'
  23409. Determined by ABI.
  23410. * 'The value of a 'char' object into which has been stored any
  23411. character other than a member of the basic execution character set
  23412. (C90 6.1.2.5, C99 and C11 6.2.5).'
  23413. Determined by ABI.
  23414. * 'Which of 'signed char' or 'unsigned char' has the same range,
  23415. representation, and behavior as "plain" 'char' (C90 6.1.2.5, C90
  23416. 6.2.1.1, C99 and C11 6.2.5, C99 and C11 6.3.1.1).'
  23417. Determined by ABI. The options '-funsigned-char' and
  23418. '-fsigned-char' change the default. *Note Options Controlling C
  23419. Dialect: C Dialect Options.
  23420. * 'The mapping of members of the source character set (in character
  23421. constants and string literals) to members of the execution
  23422. character set (C90 6.1.3.4, C99 and C11 6.4.4.4, C90, C99 and C11
  23423. 5.1.1.2).'
  23424. Determined by ABI.
  23425. * 'The value of an integer character constant containing more than
  23426. one character or containing a character or escape sequence that
  23427. does not map to a single-byte execution character (C90 6.1.3.4, C99
  23428. and C11 6.4.4.4).'
  23429. *Note Implementation-defined behavior: (cpp)Implementation-defined
  23430. behavior.
  23431. * 'The value of a wide character constant containing more than one
  23432. multibyte character or a single multibyte character that maps to
  23433. multiple members of the extended execution character set, or
  23434. containing a multibyte character or escape sequence not represented
  23435. in the extended execution character set (C90 6.1.3.4, C99 and C11
  23436. 6.4.4.4).'
  23437. *Note Implementation-defined behavior: (cpp)Implementation-defined
  23438. behavior.
  23439. * 'The current locale used to convert a wide character constant
  23440. consisting of a single multibyte character that maps to a member of
  23441. the extended execution character set into a corresponding wide
  23442. character code (C90 6.1.3.4, C99 and C11 6.4.4.4).'
  23443. *Note Implementation-defined behavior: (cpp)Implementation-defined
  23444. behavior.
  23445. * 'Whether differently-prefixed wide string literal tokens can be
  23446. concatenated and, if so, the treatment of the resulting multibyte
  23447. character sequence (C11 6.4.5).'
  23448. Such tokens may not be concatenated.
  23449. * 'The current locale used to convert a wide string literal into
  23450. corresponding wide character codes (C90 6.1.4, C99 and C11 6.4.5).'
  23451. *Note Implementation-defined behavior: (cpp)Implementation-defined
  23452. behavior.
  23453. * 'The value of a string literal containing a multibyte character or
  23454. escape sequence not represented in the execution character set (C90
  23455. 6.1.4, C99 and C11 6.4.5).'
  23456. *Note Implementation-defined behavior: (cpp)Implementation-defined
  23457. behavior.
  23458. * 'The encoding of any of 'wchar_t', 'char16_t', and 'char32_t' where
  23459. the corresponding standard encoding macro ('__STDC_ISO_10646__',
  23460. '__STDC_UTF_16__', or '__STDC_UTF_32__') is not defined (C11
  23461. 6.10.8.2).'
  23462. *Note Implementation-defined behavior: (cpp)Implementation-defined
  23463. behavior. 'char16_t' and 'char32_t' literals are always encoded in
  23464. UTF-16 and UTF-32 respectively.
  23465. 
  23466. File: gcc.info, Node: Integers implementation, Next: Floating point implementation, Prev: Characters implementation, Up: C Implementation
  23467. 4.5 Integers
  23468. ============
  23469. * 'Any extended integer types that exist in the implementation (C99
  23470. and C11 6.2.5).'
  23471. GCC does not support any extended integer types.
  23472. * 'Whether signed integer types are represented using sign and
  23473. magnitude, two's complement, or one's complement, and whether the
  23474. extraordinary value is a trap representation or an ordinary value
  23475. (C99 and C11 6.2.6.2).'
  23476. GCC supports only two's complement integer types, and all bit
  23477. patterns are ordinary values.
  23478. * 'The rank of any extended integer type relative to another extended
  23479. integer type with the same precision (C99 and C11 6.3.1.1).'
  23480. GCC does not support any extended integer types.
  23481. * 'The result of, or the signal raised by, converting an integer to a
  23482. signed integer type when the value cannot be represented in an
  23483. object of that type (C90 6.2.1.2, C99 and C11 6.3.1.3).'
  23484. For conversion to a type of width N, the value is reduced modulo
  23485. 2^N to be within range of the type; no signal is raised.
  23486. * 'The results of some bitwise operations on signed integers (C90
  23487. 6.3, C99 and C11 6.5).'
  23488. Bitwise operators act on the representation of the value including
  23489. both the sign and value bits, where the sign bit is considered
  23490. immediately above the highest-value value bit. Signed '>>' acts on
  23491. negative numbers by sign extension.
  23492. As an extension to the C language, GCC does not use the latitude
  23493. given in C99 and C11 only to treat certain aspects of signed '<<'
  23494. as undefined. However, '-fsanitize=shift' (and
  23495. '-fsanitize=undefined') will diagnose such cases. They are also
  23496. diagnosed where constant expressions are required.
  23497. * 'The sign of the remainder on integer division (C90 6.3.5).'
  23498. GCC always follows the C99 and C11 requirement that the result of
  23499. division is truncated towards zero.
  23500. 
  23501. File: gcc.info, Node: Floating point implementation, Next: Arrays and pointers implementation, Prev: Integers implementation, Up: C Implementation
  23502. 4.6 Floating Point
  23503. ==================
  23504. * 'The accuracy of the floating-point operations and of the library
  23505. functions in '<math.h>' and '<complex.h>' that return
  23506. floating-point results (C90, C99 and C11 5.2.4.2.2).'
  23507. The accuracy is unknown.
  23508. * 'The rounding behaviors characterized by non-standard values of
  23509. 'FLT_ROUNDS' (C90, C99 and C11 5.2.4.2.2).'
  23510. GCC does not use such values.
  23511. * 'The evaluation methods characterized by non-standard negative
  23512. values of 'FLT_EVAL_METHOD' (C99 and C11 5.2.4.2.2).'
  23513. GCC does not use such values.
  23514. * 'The direction of rounding when an integer is converted to a
  23515. floating-point number that cannot exactly represent the original
  23516. value (C90 6.2.1.3, C99 and C11 6.3.1.4).'
  23517. C99 Annex F is followed.
  23518. * 'The direction of rounding when a floating-point number is
  23519. converted to a narrower floating-point number (C90 6.2.1.4, C99 and
  23520. C11 6.3.1.5).'
  23521. C99 Annex F is followed.
  23522. * 'How the nearest representable value or the larger or smaller
  23523. representable value immediately adjacent to the nearest
  23524. representable value is chosen for certain floating constants (C90
  23525. 6.1.3.1, C99 and C11 6.4.4.2).'
  23526. C99 Annex F is followed.
  23527. * 'Whether and how floating expressions are contracted when not
  23528. disallowed by the 'FP_CONTRACT' pragma (C99 and C11 6.5).'
  23529. Expressions are currently only contracted if '-ffp-contract=fast',
  23530. '-funsafe-math-optimizations' or '-ffast-math' are used. This is
  23531. subject to change.
  23532. * 'The default state for the 'FENV_ACCESS' pragma (C99 and C11
  23533. 7.6.1).'
  23534. This pragma is not implemented, but the default is to "off" unless
  23535. '-frounding-math' is used in which case it is "on".
  23536. * 'Additional floating-point exceptions, rounding modes,
  23537. environments, and classifications, and their macro names (C99 and
  23538. C11 7.6, C99 and C11 7.12).'
  23539. This is dependent on the implementation of the C library, and is
  23540. not defined by GCC itself.
  23541. * 'The default state for the 'FP_CONTRACT' pragma (C99 and C11
  23542. 7.12.2).'
  23543. This pragma is not implemented. Expressions are currently only
  23544. contracted if '-ffp-contract=fast', '-funsafe-math-optimizations'
  23545. or '-ffast-math' are used. This is subject to change.
  23546. * 'Whether the "inexact" floating-point exception can be raised when
  23547. the rounded result actually does equal the mathematical result in
  23548. an IEC 60559 conformant implementation (C99 F.9).'
  23549. This is dependent on the implementation of the C library, and is
  23550. not defined by GCC itself.
  23551. * 'Whether the "underflow" (and "inexact") floating-point exception
  23552. can be raised when a result is tiny but not inexact in an IEC 60559
  23553. conformant implementation (C99 F.9).'
  23554. This is dependent on the implementation of the C library, and is
  23555. not defined by GCC itself.
  23556. 
  23557. File: gcc.info, Node: Arrays and pointers implementation, Next: Hints implementation, Prev: Floating point implementation, Up: C Implementation
  23558. 4.7 Arrays and Pointers
  23559. =======================
  23560. * 'The result of converting a pointer to an integer or vice versa
  23561. (C90 6.3.4, C99 and C11 6.3.2.3).'
  23562. A cast from pointer to integer discards most-significant bits if
  23563. the pointer representation is larger than the integer type,
  23564. sign-extends(1) if the pointer representation is smaller than the
  23565. integer type, otherwise the bits are unchanged.
  23566. A cast from integer to pointer discards most-significant bits if
  23567. the pointer representation is smaller than the integer type,
  23568. extends according to the signedness of the integer type if the
  23569. pointer representation is larger than the integer type, otherwise
  23570. the bits are unchanged.
  23571. When casting from pointer to integer and back again, the resulting
  23572. pointer must reference the same object as the original pointer,
  23573. otherwise the behavior is undefined. That is, one may not use
  23574. integer arithmetic to avoid the undefined behavior of pointer
  23575. arithmetic as proscribed in C99 and C11 6.5.6/8.
  23576. * 'The size of the result of subtracting two pointers to elements of
  23577. the same array (C90 6.3.6, C99 and C11 6.5.6).'
  23578. The value is as specified in the standard and the type is
  23579. determined by the ABI.
  23580. ---------- Footnotes ----------
  23581. (1) Future versions of GCC may zero-extend, or use a target-defined
  23582. 'ptr_extend' pattern. Do not rely on sign extension.
  23583. 
  23584. File: gcc.info, Node: Hints implementation, Next: Structures unions enumerations and bit-fields implementation, Prev: Arrays and pointers implementation, Up: C Implementation
  23585. 4.8 Hints
  23586. =========
  23587. * 'The extent to which suggestions made by using the 'register'
  23588. storage-class specifier are effective (C90 6.5.1, C99 and C11
  23589. 6.7.1).'
  23590. The 'register' specifier affects code generation only in these
  23591. ways:
  23592. * When used as part of the register variable extension, see
  23593. *note Explicit Register Variables::.
  23594. * When '-O0' is in use, the compiler allocates distinct stack
  23595. memory for all variables that do not have the 'register'
  23596. storage-class specifier; if 'register' is specified, the
  23597. variable may have a shorter lifespan than the code would
  23598. indicate and may never be placed in memory.
  23599. * On some rare x86 targets, 'setjmp' doesn't save the registers
  23600. in all circumstances. In those cases, GCC doesn't allocate
  23601. any variables in registers unless they are marked 'register'.
  23602. * 'The extent to which suggestions made by using the inline function
  23603. specifier are effective (C99 and C11 6.7.4).'
  23604. GCC will not inline any functions if the '-fno-inline' option is
  23605. used or if '-O0' is used. Otherwise, GCC may still be unable to
  23606. inline a function for many reasons; the '-Winline' option may be
  23607. used to determine if a function has not been inlined and why not.
  23608. 
  23609. File: gcc.info, Node: Structures unions enumerations and bit-fields implementation, Next: Qualifiers implementation, Prev: Hints implementation, Up: C Implementation
  23610. 4.9 Structures, Unions, Enumerations, and Bit-Fields
  23611. ====================================================
  23612. * 'A member of a union object is accessed using a member of a
  23613. different type (C90 6.3.2.3).'
  23614. The relevant bytes of the representation of the object are treated
  23615. as an object of the type used for the access. *Note
  23616. Type-punning::. This may be a trap representation.
  23617. * 'Whether a "plain" 'int' bit-field is treated as a 'signed int'
  23618. bit-field or as an 'unsigned int' bit-field (C90 6.5.2, C90
  23619. 6.5.2.1, C99 and C11 6.7.2, C99 and C11 6.7.2.1).'
  23620. By default it is treated as 'signed int' but this may be changed by
  23621. the '-funsigned-bitfields' option.
  23622. * 'Allowable bit-field types other than '_Bool', 'signed int', and
  23623. 'unsigned int' (C99 and C11 6.7.2.1).'
  23624. Other integer types, such as 'long int', and enumerated types are
  23625. permitted even in strictly conforming mode.
  23626. * 'Whether atomic types are permitted for bit-fields (C11 6.7.2.1).'
  23627. Atomic types are not permitted for bit-fields.
  23628. * 'Whether a bit-field can straddle a storage-unit boundary (C90
  23629. 6.5.2.1, C99 and C11 6.7.2.1).'
  23630. Determined by ABI.
  23631. * 'The order of allocation of bit-fields within a unit (C90 6.5.2.1,
  23632. C99 and C11 6.7.2.1).'
  23633. Determined by ABI.
  23634. * 'The alignment of non-bit-field members of structures (C90 6.5.2.1,
  23635. C99 and C11 6.7.2.1).'
  23636. Determined by ABI.
  23637. * 'The integer type compatible with each enumerated type (C90
  23638. 6.5.2.2, C99 and C11 6.7.2.2).'
  23639. Normally, the type is 'unsigned int' if there are no negative
  23640. values in the enumeration, otherwise 'int'. If '-fshort-enums' is
  23641. specified, then if there are negative values it is the first of
  23642. 'signed char', 'short' and 'int' that can represent all the values,
  23643. otherwise it is the first of 'unsigned char', 'unsigned short' and
  23644. 'unsigned int' that can represent all the values.
  23645. On some targets, '-fshort-enums' is the default; this is determined
  23646. by the ABI.
  23647. 
  23648. File: gcc.info, Node: Qualifiers implementation, Next: Declarators implementation, Prev: Structures unions enumerations and bit-fields implementation, Up: C Implementation
  23649. 4.10 Qualifiers
  23650. ===============
  23651. * 'What constitutes an access to an object that has
  23652. volatile-qualified type (C90 6.5.3, C99 and C11 6.7.3).'
  23653. Such an object is normally accessed by pointers and used for
  23654. accessing hardware. In most expressions, it is intuitively obvious
  23655. what is a read and what is a write. For example
  23656. volatile int *dst = SOMEVALUE;
  23657. volatile int *src = SOMEOTHERVALUE;
  23658. *dst = *src;
  23659. will cause a read of the volatile object pointed to by SRC and
  23660. store the value into the volatile object pointed to by DST. There
  23661. is no guarantee that these reads and writes are atomic, especially
  23662. for objects larger than 'int'.
  23663. However, if the volatile storage is not being modified, and the
  23664. value of the volatile storage is not used, then the situation is
  23665. less obvious. For example
  23666. volatile int *src = SOMEVALUE;
  23667. *src;
  23668. According to the C standard, such an expression is an rvalue whose
  23669. type is the unqualified version of its original type, i.e. 'int'.
  23670. Whether GCC interprets this as a read of the volatile object being
  23671. pointed to or only as a request to evaluate the expression for its
  23672. side effects depends on this type.
  23673. If it is a scalar type, or on most targets an aggregate type whose
  23674. only member object is of a scalar type, or a union type whose
  23675. member objects are of scalar types, the expression is interpreted
  23676. by GCC as a read of the volatile object; in the other cases, the
  23677. expression is only evaluated for its side effects.
  23678. 
  23679. File: gcc.info, Node: Declarators implementation, Next: Statements implementation, Prev: Qualifiers implementation, Up: C Implementation
  23680. 4.11 Declarators
  23681. ================
  23682. * 'The maximum number of declarators that may modify an arithmetic,
  23683. structure or union type (C90 6.5.4).'
  23684. GCC is only limited by available memory.
  23685. 
  23686. File: gcc.info, Node: Statements implementation, Next: Preprocessing directives implementation, Prev: Declarators implementation, Up: C Implementation
  23687. 4.12 Statements
  23688. ===============
  23689. * 'The maximum number of 'case' values in a 'switch' statement (C90
  23690. 6.6.4.2).'
  23691. GCC is only limited by available memory.
  23692. 
  23693. File: gcc.info, Node: Preprocessing directives implementation, Next: Library functions implementation, Prev: Statements implementation, Up: C Implementation
  23694. 4.13 Preprocessing Directives
  23695. =============================
  23696. *Note Implementation-defined behavior: (cpp)Implementation-defined
  23697. behavior, for details of these aspects of implementation-defined
  23698. behavior.
  23699. * 'The locations within '#pragma' directives where header name
  23700. preprocessing tokens are recognized (C11 6.4, C11 6.4.7).'
  23701. * 'How sequences in both forms of header names are mapped to headers
  23702. or external source file names (C90 6.1.7, C99 and C11 6.4.7).'
  23703. * 'Whether the value of a character constant in a constant expression
  23704. that controls conditional inclusion matches the value of the same
  23705. character constant in the execution character set (C90 6.8.1, C99
  23706. and C11 6.10.1).'
  23707. * 'Whether the value of a single-character character constant in a
  23708. constant expression that controls conditional inclusion may have a
  23709. negative value (C90 6.8.1, C99 and C11 6.10.1).'
  23710. * 'The places that are searched for an included '<>' delimited
  23711. header, and how the places are specified or the header is
  23712. identified (C90 6.8.2, C99 and C11 6.10.2).'
  23713. * 'How the named source file is searched for in an included '""'
  23714. delimited header (C90 6.8.2, C99 and C11 6.10.2).'
  23715. * 'The method by which preprocessing tokens (possibly resulting from
  23716. macro expansion) in a '#include' directive are combined into a
  23717. header name (C90 6.8.2, C99 and C11 6.10.2).'
  23718. * 'The nesting limit for '#include' processing (C90 6.8.2, C99 and
  23719. C11 6.10.2).'
  23720. * 'Whether the '#' operator inserts a '\' character before the '\'
  23721. character that begins a universal character name in a character
  23722. constant or string literal (C99 and C11 6.10.3.2).'
  23723. * 'The behavior on each recognized non-'STDC #pragma' directive (C90
  23724. 6.8.6, C99 and C11 6.10.6).'
  23725. *Note Pragmas: (cpp)Pragmas, for details of pragmas accepted by GCC
  23726. on all targets. *Note Pragmas Accepted by GCC: Pragmas, for
  23727. details of target-specific pragmas.
  23728. * 'The definitions for '__DATE__' and '__TIME__' when respectively,
  23729. the date and time of translation are not available (C90 6.8.8, C99
  23730. 6.10.8, C11 6.10.8.1).'
  23731. 
  23732. File: gcc.info, Node: Library functions implementation, Next: Architecture implementation, Prev: Preprocessing directives implementation, Up: C Implementation
  23733. 4.14 Library Functions
  23734. ======================
  23735. The behavior of most of these points are dependent on the implementation
  23736. of the C library, and are not defined by GCC itself.
  23737. * 'The null pointer constant to which the macro 'NULL' expands (C90
  23738. 7.1.6, C99 7.17, C11 7.19).'
  23739. In '<stddef.h>', 'NULL' expands to '((void *)0)'. GCC does not
  23740. provide the other headers which define 'NULL' and some library
  23741. implementations may use other definitions in those headers.
  23742. 
  23743. File: gcc.info, Node: Architecture implementation, Next: Locale-specific behavior implementation, Prev: Library functions implementation, Up: C Implementation
  23744. 4.15 Architecture
  23745. =================
  23746. * 'The values or expressions assigned to the macros specified in the
  23747. headers '<float.h>', '<limits.h>', and '<stdint.h>' (C90, C99 and
  23748. C11 5.2.4.2, C99 7.18.2, C99 7.18.3, C11 7.20.2, C11 7.20.3).'
  23749. Determined by ABI.
  23750. * 'The result of attempting to indirectly access an object with
  23751. automatic or thread storage duration from a thread other than the
  23752. one with which it is associated (C11 6.2.4).'
  23753. Such accesses are supported, subject to the same requirements for
  23754. synchronization for concurrent accesses as for concurrent accesses
  23755. to any object.
  23756. * 'The number, order, and encoding of bytes in any object (when not
  23757. explicitly specified in this International Standard) (C99 and C11
  23758. 6.2.6.1).'
  23759. Determined by ABI.
  23760. * 'Whether any extended alignments are supported and the contexts in
  23761. which they are supported (C11 6.2.8).'
  23762. Extended alignments up to 2^{28} (bytes) are supported for objects
  23763. of automatic storage duration. Alignments supported for objects of
  23764. static and thread storage duration are determined by the ABI.
  23765. * 'Valid alignment values other than those returned by an _Alignof
  23766. expression for fundamental types, if any (C11 6.2.8).'
  23767. Valid alignments are powers of 2 up to and including 2^{28}.
  23768. * 'The value of the result of the 'sizeof' and '_Alignof' operators
  23769. (C90 6.3.3.4, C99 and C11 6.5.3.4).'
  23770. Determined by ABI.
  23771. 
  23772. File: gcc.info, Node: Locale-specific behavior implementation, Prev: Architecture implementation, Up: C Implementation
  23773. 4.16 Locale-Specific Behavior
  23774. =============================
  23775. The behavior of these points are dependent on the implementation of the
  23776. C library, and are not defined by GCC itself.
  23777. 
  23778. File: gcc.info, Node: C++ Implementation, Next: C Extensions, Prev: C Implementation, Up: Top
  23779. 5 C++ Implementation-Defined Behavior
  23780. *************************************
  23781. A conforming implementation of ISO C++ is required to document its
  23782. choice of behavior in each of the areas that are designated
  23783. "implementation defined". The following lists all such areas, along
  23784. with the section numbers from the ISO/IEC 14882:1998 and ISO/IEC
  23785. 14882:2003 standards. Some areas are only implementation-defined in one
  23786. version of the standard.
  23787. Some choices depend on the externally determined ABI for the platform
  23788. (including standard character encodings) which GCC follows; these are
  23789. listed as "determined by ABI" below. *Note Binary Compatibility:
  23790. Compatibility, and <http://gcc.gnu.org/readings.html>. Some choices are
  23791. documented in the preprocessor manual. *Note Implementation-defined
  23792. behavior: (cpp)Implementation-defined behavior. Some choices are
  23793. documented in the corresponding document for the C language. *Note C
  23794. Implementation::. Some choices are made by the library and operating
  23795. system (or other environment when compiling for a freestanding
  23796. environment); refer to their documentation for details.
  23797. * Menu:
  23798. * Conditionally-supported behavior::
  23799. * Exception handling::
  23800. 
  23801. File: gcc.info, Node: Conditionally-supported behavior, Next: Exception handling, Up: C++ Implementation
  23802. 5.1 Conditionally-Supported Behavior
  23803. ====================================
  23804. 'Each implementation shall include documentation that identifies all
  23805. conditionally-supported constructs that it does not support (C++0x
  23806. 1.4).'
  23807. * 'Whether an argument of class type with a non-trivial copy
  23808. constructor or destructor can be passed to ... (C++0x 5.2.2).'
  23809. Such argument passing is supported, using the same
  23810. pass-by-invisible-reference approach used for normal function
  23811. arguments of such types.
  23812. 
  23813. File: gcc.info, Node: Exception handling, Prev: Conditionally-supported behavior, Up: C++ Implementation
  23814. 5.2 Exception Handling
  23815. ======================
  23816. * 'In the situation where no matching handler is found, it is
  23817. implementation-defined whether or not the stack is unwound before
  23818. std::terminate() is called (C++98 15.5.1).'
  23819. The stack is not unwound before std::terminate is called.
  23820. c Copyright (C) 1988-2020 Free Software Foundation, Inc.
  23821. 
  23822. File: gcc.info, Node: C Extensions, Next: C++ Extensions, Prev: C++ Implementation, Up: Top
  23823. 6 Extensions to the C Language Family
  23824. *************************************
  23825. GNU C provides several language features not found in ISO standard C.
  23826. (The '-pedantic' option directs GCC to print a warning message if any of
  23827. these features is used.) To test for the availability of these features
  23828. in conditional compilation, check for a predefined macro '__GNUC__',
  23829. which is always defined under GCC.
  23830. These extensions are available in C and Objective-C. Most of them are
  23831. also available in C++. *Note Extensions to the C++ Language: C++
  23832. Extensions, for extensions that apply _only_ to C++.
  23833. Some features that are in ISO C99 but not C90 or C++ are also, as
  23834. extensions, accepted by GCC in C90 mode and in C++.
  23835. * Menu:
  23836. * Statement Exprs:: Putting statements and declarations inside expressions.
  23837. * Local Labels:: Labels local to a block.
  23838. * Labels as Values:: Getting pointers to labels, and computed gotos.
  23839. * Nested Functions:: Nested function in GNU C.
  23840. * Nonlocal Gotos:: Nonlocal gotos.
  23841. * Constructing Calls:: Dispatching a call to another function.
  23842. * Typeof:: 'typeof': referring to the type of an expression.
  23843. * Conditionals:: Omitting the middle operand of a '?:' expression.
  23844. * __int128:: 128-bit integers--'__int128'.
  23845. * Long Long:: Double-word integers--'long long int'.
  23846. * Complex:: Data types for complex numbers.
  23847. * Floating Types:: Additional Floating Types.
  23848. * Half-Precision:: Half-Precision Floating Point.
  23849. * Decimal Float:: Decimal Floating Types.
  23850. * Hex Floats:: Hexadecimal floating-point constants.
  23851. * Fixed-Point:: Fixed-Point Types.
  23852. * Named Address Spaces::Named address spaces.
  23853. * Zero Length:: Zero-length arrays.
  23854. * Empty Structures:: Structures with no members.
  23855. * Variable Length:: Arrays whose length is computed at run time.
  23856. * Variadic Macros:: Macros with a variable number of arguments.
  23857. * Escaped Newlines:: Slightly looser rules for escaped newlines.
  23858. * Subscripting:: Any array can be subscripted, even if not an lvalue.
  23859. * Pointer Arith:: Arithmetic on 'void'-pointers and function pointers.
  23860. * Variadic Pointer Args:: Pointer arguments to variadic functions.
  23861. * Pointers to Arrays:: Pointers to arrays with qualifiers work as expected.
  23862. * Initializers:: Non-constant initializers.
  23863. * Compound Literals:: Compound literals give structures, unions
  23864. or arrays as values.
  23865. * Designated Inits:: Labeling elements of initializers.
  23866. * Case Ranges:: 'case 1 ... 9' and such.
  23867. * Cast to Union:: Casting to union type from any member of the union.
  23868. * Mixed Declarations:: Mixing declarations and code.
  23869. * Function Attributes:: Declaring that functions have no side effects,
  23870. or that they can never return.
  23871. * Variable Attributes:: Specifying attributes of variables.
  23872. * Type Attributes:: Specifying attributes of types.
  23873. * Label Attributes:: Specifying attributes on labels.
  23874. * Enumerator Attributes:: Specifying attributes on enumerators.
  23875. * Statement Attributes:: Specifying attributes on statements.
  23876. * Attribute Syntax:: Formal syntax for attributes.
  23877. * Function Prototypes:: Prototype declarations and old-style definitions.
  23878. * C++ Comments:: C++ comments are recognized.
  23879. * Dollar Signs:: Dollar sign is allowed in identifiers.
  23880. * Character Escapes:: '\e' stands for the character <ESC>.
  23881. * Alignment:: Determining the alignment of a function, type or variable.
  23882. * Inline:: Defining inline functions (as fast as macros).
  23883. * Volatiles:: What constitutes an access to a volatile object.
  23884. * Using Assembly Language with C:: Instructions and extensions for interfacing C with assembler.
  23885. * Alternate Keywords:: '__const__', '__asm__', etc., for header files.
  23886. * Incomplete Enums:: 'enum foo;', with details to follow.
  23887. * Function Names:: Printable strings which are the name of the current
  23888. function.
  23889. * Return Address:: Getting the return or frame address of a function.
  23890. * Vector Extensions:: Using vector instructions through built-in functions.
  23891. * Offsetof:: Special syntax for implementing 'offsetof'.
  23892. * __sync Builtins:: Legacy built-in functions for atomic memory access.
  23893. * __atomic Builtins:: Atomic built-in functions with memory model.
  23894. * Integer Overflow Builtins:: Built-in functions to perform arithmetics and
  23895. arithmetic overflow checking.
  23896. * x86 specific memory model extensions for transactional memory:: x86 memory models.
  23897. * Object Size Checking:: Built-in functions for limited buffer overflow
  23898. checking.
  23899. * Other Builtins:: Other built-in functions.
  23900. * Target Builtins:: Built-in functions specific to particular targets.
  23901. * Target Format Checks:: Format checks specific to particular targets.
  23902. * Pragmas:: Pragmas accepted by GCC.
  23903. * Unnamed Fields:: Unnamed struct/union fields within structs/unions.
  23904. * Thread-Local:: Per-thread variables.
  23905. * Binary constants:: Binary constants using the '0b' prefix.
  23906. 
  23907. File: gcc.info, Node: Statement Exprs, Next: Local Labels, Up: C Extensions
  23908. 6.1 Statements and Declarations in Expressions
  23909. ==============================================
  23910. A compound statement enclosed in parentheses may appear as an expression
  23911. in GNU C. This allows you to use loops, switches, and local variables
  23912. within an expression.
  23913. Recall that a compound statement is a sequence of statements surrounded
  23914. by braces; in this construct, parentheses go around the braces. For
  23915. example:
  23916. ({ int y = foo (); int z;
  23917. if (y > 0) z = y;
  23918. else z = - y;
  23919. z; })
  23920. is a valid (though slightly more complex than necessary) expression for
  23921. the absolute value of 'foo ()'.
  23922. The last thing in the compound statement should be an expression
  23923. followed by a semicolon; the value of this subexpression serves as the
  23924. value of the entire construct. (If you use some other kind of statement
  23925. last within the braces, the construct has type 'void', and thus
  23926. effectively no value.)
  23927. This feature is especially useful in making macro definitions "safe"
  23928. (so that they evaluate each operand exactly once). For example, the
  23929. "maximum" function is commonly defined as a macro in standard C as
  23930. follows:
  23931. #define max(a,b) ((a) > (b) ? (a) : (b))
  23932. But this definition computes either A or B twice, with bad results if
  23933. the operand has side effects. In GNU C, if you know the type of the
  23934. operands (here taken as 'int'), you can avoid this problem by defining
  23935. the macro as follows:
  23936. #define maxint(a,b) \
  23937. ({int _a = (a), _b = (b); _a > _b ? _a : _b; })
  23938. Note that introducing variable declarations (as we do in 'maxint') can
  23939. cause variable shadowing, so while this example using the 'max' macro
  23940. produces correct results:
  23941. int _a = 1, _b = 2, c;
  23942. c = max (_a, _b);
  23943. this example using maxint will not:
  23944. int _a = 1, _b = 2, c;
  23945. c = maxint (_a, _b);
  23946. This problem may for instance occur when we use this pattern
  23947. recursively, like so:
  23948. #define maxint3(a, b, c) \
  23949. ({int _a = (a), _b = (b), _c = (c); maxint (maxint (_a, _b), _c); })
  23950. Embedded statements are not allowed in constant expressions, such as
  23951. the value of an enumeration constant, the width of a bit-field, or the
  23952. initial value of a static variable.
  23953. If you don't know the type of the operand, you can still do this, but
  23954. you must use 'typeof' or '__auto_type' (*note Typeof::).
  23955. In G++, the result value of a statement expression undergoes array and
  23956. function pointer decay, and is returned by value to the enclosing
  23957. expression. For instance, if 'A' is a class, then
  23958. A a;
  23959. ({a;}).Foo ()
  23960. constructs a temporary 'A' object to hold the result of the statement
  23961. expression, and that is used to invoke 'Foo'. Therefore the 'this'
  23962. pointer observed by 'Foo' is not the address of 'a'.
  23963. In a statement expression, any temporaries created within a statement
  23964. are destroyed at that statement's end. This makes statement expressions
  23965. inside macros slightly different from function calls. In the latter
  23966. case temporaries introduced during argument evaluation are destroyed at
  23967. the end of the statement that includes the function call. In the
  23968. statement expression case they are destroyed during the statement
  23969. expression. For instance,
  23970. #define macro(a) ({__typeof__(a) b = (a); b + 3; })
  23971. template<typename T> T function(T a) { T b = a; return b + 3; }
  23972. void foo ()
  23973. {
  23974. macro (X ());
  23975. function (X ());
  23976. }
  23977. has different places where temporaries are destroyed. For the 'macro'
  23978. case, the temporary 'X' is destroyed just after the initialization of
  23979. 'b'. In the 'function' case that temporary is destroyed when the
  23980. function returns.
  23981. These considerations mean that it is probably a bad idea to use
  23982. statement expressions of this form in header files that are designed to
  23983. work with C++. (Note that some versions of the GNU C Library contained
  23984. header files using statement expressions that lead to precisely this
  23985. bug.)
  23986. Jumping into a statement expression with 'goto' or using a 'switch'
  23987. statement outside the statement expression with a 'case' or 'default'
  23988. label inside the statement expression is not permitted. Jumping into a
  23989. statement expression with a computed 'goto' (*note Labels as Values::)
  23990. has undefined behavior. Jumping out of a statement expression is
  23991. permitted, but if the statement expression is part of a larger
  23992. expression then it is unspecified which other subexpressions of that
  23993. expression have been evaluated except where the language definition
  23994. requires certain subexpressions to be evaluated before or after the
  23995. statement expression. A 'break' or 'continue' statement inside of a
  23996. statement expression used in 'while', 'do' or 'for' loop or 'switch'
  23997. statement condition or 'for' statement init or increment expressions
  23998. jumps to an outer loop or 'switch' statement if any (otherwise it is an
  23999. error), rather than to the loop or 'switch' statement in whose condition
  24000. or init or increment expression it appears. In any case, as with a
  24001. function call, the evaluation of a statement expression is not
  24002. interleaved with the evaluation of other parts of the containing
  24003. expression. For example,
  24004. foo (), (({ bar1 (); goto a; 0; }) + bar2 ()), baz();
  24005. calls 'foo' and 'bar1' and does not call 'baz' but may or may not call
  24006. 'bar2'. If 'bar2' is called, it is called after 'foo' and before
  24007. 'bar1'.
  24008. 
  24009. File: gcc.info, Node: Local Labels, Next: Labels as Values, Prev: Statement Exprs, Up: C Extensions
  24010. 6.2 Locally Declared Labels
  24011. ===========================
  24012. GCC allows you to declare "local labels" in any nested block scope. A
  24013. local label is just like an ordinary label, but you can only reference
  24014. it (with a 'goto' statement, or by taking its address) within the block
  24015. in which it is declared.
  24016. A local label declaration looks like this:
  24017. __label__ LABEL;
  24018. or
  24019. __label__ LABEL1, LABEL2, /* ... */;
  24020. Local label declarations must come at the beginning of the block,
  24021. before any ordinary declarations or statements.
  24022. The label declaration defines the label _name_, but does not define the
  24023. label itself. You must do this in the usual way, with 'LABEL:', within
  24024. the statements of the statement expression.
  24025. The local label feature is useful for complex macros. If a macro
  24026. contains nested loops, a 'goto' can be useful for breaking out of them.
  24027. However, an ordinary label whose scope is the whole function cannot be
  24028. used: if the macro can be expanded several times in one function, the
  24029. label is multiply defined in that function. A local label avoids this
  24030. problem. For example:
  24031. #define SEARCH(value, array, target) \
  24032. do { \
  24033. __label__ found; \
  24034. typeof (target) _SEARCH_target = (target); \
  24035. typeof (*(array)) *_SEARCH_array = (array); \
  24036. int i, j; \
  24037. int value; \
  24038. for (i = 0; i < max; i++) \
  24039. for (j = 0; j < max; j++) \
  24040. if (_SEARCH_array[i][j] == _SEARCH_target) \
  24041. { (value) = i; goto found; } \
  24042. (value) = -1; \
  24043. found:; \
  24044. } while (0)
  24045. This could also be written using a statement expression:
  24046. #define SEARCH(array, target) \
  24047. ({ \
  24048. __label__ found; \
  24049. typeof (target) _SEARCH_target = (target); \
  24050. typeof (*(array)) *_SEARCH_array = (array); \
  24051. int i, j; \
  24052. int value; \
  24053. for (i = 0; i < max; i++) \
  24054. for (j = 0; j < max; j++) \
  24055. if (_SEARCH_array[i][j] == _SEARCH_target) \
  24056. { value = i; goto found; } \
  24057. value = -1; \
  24058. found: \
  24059. value; \
  24060. })
  24061. Local label declarations also make the labels they declare visible to
  24062. nested functions, if there are any. *Note Nested Functions::, for
  24063. details.
  24064. 
  24065. File: gcc.info, Node: Labels as Values, Next: Nested Functions, Prev: Local Labels, Up: C Extensions
  24066. 6.3 Labels as Values
  24067. ====================
  24068. You can get the address of a label defined in the current function (or a
  24069. containing function) with the unary operator '&&'. The value has type
  24070. 'void *'. This value is a constant and can be used wherever a constant
  24071. of that type is valid. For example:
  24072. void *ptr;
  24073. /* ... */
  24074. ptr = &&foo;
  24075. To use these values, you need to be able to jump to one. This is done
  24076. with the computed goto statement(1), 'goto *EXP;'. For example,
  24077. goto *ptr;
  24078. Any expression of type 'void *' is allowed.
  24079. One way of using these constants is in initializing a static array that
  24080. serves as a jump table:
  24081. static void *array[] = { &&foo, &&bar, &&hack };
  24082. Then you can select a label with indexing, like this:
  24083. goto *array[i];
  24084. Note that this does not check whether the subscript is in bounds--array
  24085. indexing in C never does that.
  24086. Such an array of label values serves a purpose much like that of the
  24087. 'switch' statement. The 'switch' statement is cleaner, so use that
  24088. rather than an array unless the problem does not fit a 'switch'
  24089. statement very well.
  24090. Another use of label values is in an interpreter for threaded code.
  24091. The labels within the interpreter function can be stored in the threaded
  24092. code for super-fast dispatching.
  24093. You may not use this mechanism to jump to code in a different function.
  24094. If you do that, totally unpredictable things happen. The best way to
  24095. avoid this is to store the label address only in automatic variables and
  24096. never pass it as an argument.
  24097. An alternate way to write the above example is
  24098. static const int array[] = { &&foo - &&foo, &&bar - &&foo,
  24099. &&hack - &&foo };
  24100. goto *(&&foo + array[i]);
  24101. This is more friendly to code living in shared libraries, as it reduces
  24102. the number of dynamic relocations that are needed, and by consequence,
  24103. allows the data to be read-only. This alternative with label
  24104. differences is not supported for the AVR target, please use the first
  24105. approach for AVR programs.
  24106. The '&&foo' expressions for the same label might have different values
  24107. if the containing function is inlined or cloned. If a program relies on
  24108. them being always the same, '__attribute__((__noinline__,__noclone__))'
  24109. should be used to prevent inlining and cloning. If '&&foo' is used in a
  24110. static variable initializer, inlining and cloning is forbidden.
  24111. ---------- Footnotes ----------
  24112. (1) The analogous feature in Fortran is called an assigned goto, but
  24113. that name seems inappropriate in C, where one can do more than simply
  24114. store label addresses in label variables.
  24115. 
  24116. File: gcc.info, Node: Nested Functions, Next: Nonlocal Gotos, Prev: Labels as Values, Up: C Extensions
  24117. 6.4 Nested Functions
  24118. ====================
  24119. A "nested function" is a function defined inside another function.
  24120. Nested functions are supported as an extension in GNU C, but are not
  24121. supported by GNU C++.
  24122. The nested function's name is local to the block where it is defined.
  24123. For example, here we define a nested function named 'square', and call
  24124. it twice:
  24125. foo (double a, double b)
  24126. {
  24127. double square (double z) { return z * z; }
  24128. return square (a) + square (b);
  24129. }
  24130. The nested function can access all the variables of the containing
  24131. function that are visible at the point of its definition. This is
  24132. called "lexical scoping". For example, here we show a nested function
  24133. which uses an inherited variable named 'offset':
  24134. bar (int *array, int offset, int size)
  24135. {
  24136. int access (int *array, int index)
  24137. { return array[index + offset]; }
  24138. int i;
  24139. /* ... */
  24140. for (i = 0; i < size; i++)
  24141. /* ... */ access (array, i) /* ... */
  24142. }
  24143. Nested function definitions are permitted within functions in the
  24144. places where variable definitions are allowed; that is, in any block,
  24145. mixed with the other declarations and statements in the block.
  24146. It is possible to call the nested function from outside the scope of
  24147. its name by storing its address or passing the address to another
  24148. function:
  24149. hack (int *array, int size)
  24150. {
  24151. void store (int index, int value)
  24152. { array[index] = value; }
  24153. intermediate (store, size);
  24154. }
  24155. Here, the function 'intermediate' receives the address of 'store' as an
  24156. argument. If 'intermediate' calls 'store', the arguments given to
  24157. 'store' are used to store into 'array'. But this technique works only
  24158. so long as the containing function ('hack', in this example) does not
  24159. exit.
  24160. If you try to call the nested function through its address after the
  24161. containing function exits, all hell breaks loose. If you try to call it
  24162. after a containing scope level exits, and if it refers to some of the
  24163. variables that are no longer in scope, you may be lucky, but it's not
  24164. wise to take the risk. If, however, the nested function does not refer
  24165. to anything that has gone out of scope, you should be safe.
  24166. GCC implements taking the address of a nested function using a
  24167. technique called "trampolines". This technique was described in
  24168. 'Lexical Closures for C++' (Thomas M. Breuel, USENIX C++ Conference
  24169. Proceedings, October 17-21, 1988).
  24170. A nested function can jump to a label inherited from a containing
  24171. function, provided the label is explicitly declared in the containing
  24172. function (*note Local Labels::). Such a jump returns instantly to the
  24173. containing function, exiting the nested function that did the 'goto' and
  24174. any intermediate functions as well. Here is an example:
  24175. bar (int *array, int offset, int size)
  24176. {
  24177. __label__ failure;
  24178. int access (int *array, int index)
  24179. {
  24180. if (index > size)
  24181. goto failure;
  24182. return array[index + offset];
  24183. }
  24184. int i;
  24185. /* ... */
  24186. for (i = 0; i < size; i++)
  24187. /* ... */ access (array, i) /* ... */
  24188. /* ... */
  24189. return 0;
  24190. /* Control comes here from 'access'
  24191. if it detects an error. */
  24192. failure:
  24193. return -1;
  24194. }
  24195. A nested function always has no linkage. Declaring one with 'extern'
  24196. or 'static' is erroneous. If you need to declare the nested function
  24197. before its definition, use 'auto' (which is otherwise meaningless for
  24198. function declarations).
  24199. bar (int *array, int offset, int size)
  24200. {
  24201. __label__ failure;
  24202. auto int access (int *, int);
  24203. /* ... */
  24204. int access (int *array, int index)
  24205. {
  24206. if (index > size)
  24207. goto failure;
  24208. return array[index + offset];
  24209. }
  24210. /* ... */
  24211. }
  24212. 
  24213. File: gcc.info, Node: Nonlocal Gotos, Next: Constructing Calls, Prev: Nested Functions, Up: C Extensions
  24214. 6.5 Nonlocal Gotos
  24215. ==================
  24216. GCC provides the built-in functions '__builtin_setjmp' and
  24217. '__builtin_longjmp' which are similar to, but not interchangeable with,
  24218. the C library functions 'setjmp' and 'longjmp'. The built-in versions
  24219. are used internally by GCC's libraries to implement exception handling
  24220. on some targets. You should use the standard C library functions
  24221. declared in '<setjmp.h>' in user code instead of the builtins.
  24222. The built-in versions of these functions use GCC's normal mechanisms to
  24223. save and restore registers using the stack on function entry and exit.
  24224. The jump buffer argument BUF holds only the information needed to
  24225. restore the stack frame, rather than the entire set of saved register
  24226. values.
  24227. An important caveat is that GCC arranges to save and restore only those
  24228. registers known to the specific architecture variant being compiled for.
  24229. This can make '__builtin_setjmp' and '__builtin_longjmp' more efficient
  24230. than their library counterparts in some cases, but it can also cause
  24231. incorrect and mysterious behavior when mixing with code that uses the
  24232. full register set.
  24233. You should declare the jump buffer argument BUF to the built-in
  24234. functions as:
  24235. #include <stdint.h>
  24236. intptr_t BUF[5];
  24237. -- Built-in Function: int __builtin_setjmp (intptr_t *BUF)
  24238. This function saves the current stack context in BUF.
  24239. '__builtin_setjmp' returns 0 when returning directly, and 1 when
  24240. returning from '__builtin_longjmp' using the same BUF.
  24241. -- Built-in Function: void __builtin_longjmp (intptr_t *BUF, int VAL)
  24242. This function restores the stack context in BUF, saved by a
  24243. previous call to '__builtin_setjmp'. After '__builtin_longjmp' is
  24244. finished, the program resumes execution as if the matching
  24245. '__builtin_setjmp' returns the value VAL, which must be 1.
  24246. Because '__builtin_longjmp' depends on the function return
  24247. mechanism to restore the stack context, it cannot be called from
  24248. the same function calling '__builtin_setjmp' to initialize BUF. It
  24249. can only be called from a function called (directly or indirectly)
  24250. from the function calling '__builtin_setjmp'.
  24251. 
  24252. File: gcc.info, Node: Constructing Calls, Next: Typeof, Prev: Nonlocal Gotos, Up: C Extensions
  24253. 6.6 Constructing Function Calls
  24254. ===============================
  24255. Using the built-in functions described below, you can record the
  24256. arguments a function received, and call another function with the same
  24257. arguments, without knowing the number or types of the arguments.
  24258. You can also record the return value of that function call, and later
  24259. return that value, without knowing what data type the function tried to
  24260. return (as long as your caller expects that data type).
  24261. However, these built-in functions may interact badly with some
  24262. sophisticated features or other extensions of the language. It is,
  24263. therefore, not recommended to use them outside very simple functions
  24264. acting as mere forwarders for their arguments.
  24265. -- Built-in Function: void * __builtin_apply_args ()
  24266. This built-in function returns a pointer to data describing how to
  24267. perform a call with the same arguments as are passed to the current
  24268. function.
  24269. The function saves the arg pointer register, structure value
  24270. address, and all registers that might be used to pass arguments to
  24271. a function into a block of memory allocated on the stack. Then it
  24272. returns the address of that block.
  24273. -- Built-in Function: void * __builtin_apply (void (*FUNCTION)(), void
  24274. *ARGUMENTS, size_t SIZE)
  24275. This built-in function invokes FUNCTION with a copy of the
  24276. parameters described by ARGUMENTS and SIZE.
  24277. The value of ARGUMENTS should be the value returned by
  24278. '__builtin_apply_args'. The argument SIZE specifies the size of
  24279. the stack argument data, in bytes.
  24280. This function returns a pointer to data describing how to return
  24281. whatever value is returned by FUNCTION. The data is saved in a
  24282. block of memory allocated on the stack.
  24283. It is not always simple to compute the proper value for SIZE. The
  24284. value is used by '__builtin_apply' to compute the amount of data
  24285. that should be pushed on the stack and copied from the incoming
  24286. argument area.
  24287. -- Built-in Function: void __builtin_return (void *RESULT)
  24288. This built-in function returns the value described by RESULT from
  24289. the containing function. You should specify, for RESULT, a value
  24290. returned by '__builtin_apply'.
  24291. -- Built-in Function: __builtin_va_arg_pack ()
  24292. This built-in function represents all anonymous arguments of an
  24293. inline function. It can be used only in inline functions that are
  24294. always inlined, never compiled as a separate function, such as
  24295. those using '__attribute__ ((__always_inline__))' or '__attribute__
  24296. ((__gnu_inline__))' extern inline functions. It must be only
  24297. passed as last argument to some other function with variable
  24298. arguments. This is useful for writing small wrapper inlines for
  24299. variable argument functions, when using preprocessor macros is
  24300. undesirable. For example:
  24301. extern int myprintf (FILE *f, const char *format, ...);
  24302. extern inline __attribute__ ((__gnu_inline__)) int
  24303. myprintf (FILE *f, const char *format, ...)
  24304. {
  24305. int r = fprintf (f, "myprintf: ");
  24306. if (r < 0)
  24307. return r;
  24308. int s = fprintf (f, format, __builtin_va_arg_pack ());
  24309. if (s < 0)
  24310. return s;
  24311. return r + s;
  24312. }
  24313. -- Built-in Function: size_t __builtin_va_arg_pack_len ()
  24314. This built-in function returns the number of anonymous arguments of
  24315. an inline function. It can be used only in inline functions that
  24316. are always inlined, never compiled as a separate function, such as
  24317. those using '__attribute__ ((__always_inline__))' or '__attribute__
  24318. ((__gnu_inline__))' extern inline functions. For example following
  24319. does link- or run-time checking of open arguments for optimized
  24320. code:
  24321. #ifdef __OPTIMIZE__
  24322. extern inline __attribute__((__gnu_inline__)) int
  24323. myopen (const char *path, int oflag, ...)
  24324. {
  24325. if (__builtin_va_arg_pack_len () > 1)
  24326. warn_open_too_many_arguments ();
  24327. if (__builtin_constant_p (oflag))
  24328. {
  24329. if ((oflag & O_CREAT) != 0 && __builtin_va_arg_pack_len () < 1)
  24330. {
  24331. warn_open_missing_mode ();
  24332. return __open_2 (path, oflag);
  24333. }
  24334. return open (path, oflag, __builtin_va_arg_pack ());
  24335. }
  24336. if (__builtin_va_arg_pack_len () < 1)
  24337. return __open_2 (path, oflag);
  24338. return open (path, oflag, __builtin_va_arg_pack ());
  24339. }
  24340. #endif
  24341. 
  24342. File: gcc.info, Node: Typeof, Next: Conditionals, Prev: Constructing Calls, Up: C Extensions
  24343. 6.7 Referring to a Type with 'typeof'
  24344. =====================================
  24345. Another way to refer to the type of an expression is with 'typeof'. The
  24346. syntax of using of this keyword looks like 'sizeof', but the construct
  24347. acts semantically like a type name defined with 'typedef'.
  24348. There are two ways of writing the argument to 'typeof': with an
  24349. expression or with a type. Here is an example with an expression:
  24350. typeof (x[0](1))
  24351. This assumes that 'x' is an array of pointers to functions; the type
  24352. described is that of the values of the functions.
  24353. Here is an example with a typename as the argument:
  24354. typeof (int *)
  24355. Here the type described is that of pointers to 'int'.
  24356. If you are writing a header file that must work when included in ISO C
  24357. programs, write '__typeof__' instead of 'typeof'. *Note Alternate
  24358. Keywords::.
  24359. A 'typeof' construct can be used anywhere a typedef name can be used.
  24360. For example, you can use it in a declaration, in a cast, or inside of
  24361. 'sizeof' or 'typeof'.
  24362. The operand of 'typeof' is evaluated for its side effects if and only
  24363. if it is an expression of variably modified type or the name of such a
  24364. type.
  24365. 'typeof' is often useful in conjunction with statement expressions
  24366. (*note Statement Exprs::). Here is how the two together can be used to
  24367. define a safe "maximum" macro which operates on any arithmetic type and
  24368. evaluates each of its arguments exactly once:
  24369. #define max(a,b) \
  24370. ({ typeof (a) _a = (a); \
  24371. typeof (b) _b = (b); \
  24372. _a > _b ? _a : _b; })
  24373. The reason for using names that start with underscores for the local
  24374. variables is to avoid conflicts with variable names that occur within
  24375. the expressions that are substituted for 'a' and 'b'. Eventually we
  24376. hope to design a new form of declaration syntax that allows you to
  24377. declare variables whose scopes start only after their initializers; this
  24378. will be a more reliable way to prevent such conflicts.
  24379. Some more examples of the use of 'typeof':
  24380. * This declares 'y' with the type of what 'x' points to.
  24381. typeof (*x) y;
  24382. * This declares 'y' as an array of such values.
  24383. typeof (*x) y[4];
  24384. * This declares 'y' as an array of pointers to characters:
  24385. typeof (typeof (char *)[4]) y;
  24386. It is equivalent to the following traditional C declaration:
  24387. char *y[4];
  24388. To see the meaning of the declaration using 'typeof', and why it
  24389. might be a useful way to write, rewrite it with these macros:
  24390. #define pointer(T) typeof(T *)
  24391. #define array(T, N) typeof(T [N])
  24392. Now the declaration can be rewritten this way:
  24393. array (pointer (char), 4) y;
  24394. Thus, 'array (pointer (char), 4)' is the type of arrays of 4
  24395. pointers to 'char'.
  24396. In GNU C, but not GNU C++, you may also declare the type of a variable
  24397. as '__auto_type'. In that case, the declaration must declare only one
  24398. variable, whose declarator must just be an identifier, the declaration
  24399. must be initialized, and the type of the variable is determined by the
  24400. initializer; the name of the variable is not in scope until after the
  24401. initializer. (In C++, you should use C++11 'auto' for this purpose.)
  24402. Using '__auto_type', the "maximum" macro above could be written as:
  24403. #define max(a,b) \
  24404. ({ __auto_type _a = (a); \
  24405. __auto_type _b = (b); \
  24406. _a > _b ? _a : _b; })
  24407. Using '__auto_type' instead of 'typeof' has two advantages:
  24408. * Each argument to the macro appears only once in the expansion of
  24409. the macro. This prevents the size of the macro expansion growing
  24410. exponentially when calls to such macros are nested inside arguments
  24411. of such macros.
  24412. * If the argument to the macro has variably modified type, it is
  24413. evaluated only once when using '__auto_type', but twice if 'typeof'
  24414. is used.
  24415. 
  24416. File: gcc.info, Node: Conditionals, Next: __int128, Prev: Typeof, Up: C Extensions
  24417. 6.8 Conditionals with Omitted Operands
  24418. ======================================
  24419. The middle operand in a conditional expression may be omitted. Then if
  24420. the first operand is nonzero, its value is the value of the conditional
  24421. expression.
  24422. Therefore, the expression
  24423. x ? : y
  24424. has the value of 'x' if that is nonzero; otherwise, the value of 'y'.
  24425. This example is perfectly equivalent to
  24426. x ? x : y
  24427. In this simple case, the ability to omit the middle operand is not
  24428. especially useful. When it becomes useful is when the first operand
  24429. does, or may (if it is a macro argument), contain a side effect. Then
  24430. repeating the operand in the middle would perform the side effect twice.
  24431. Omitting the middle operand uses the value already computed without the
  24432. undesirable effects of recomputing it.
  24433. 
  24434. File: gcc.info, Node: __int128, Next: Long Long, Prev: Conditionals, Up: C Extensions
  24435. 6.9 128-bit Integers
  24436. ====================
  24437. As an extension the integer scalar type '__int128' is supported for
  24438. targets which have an integer mode wide enough to hold 128 bits. Simply
  24439. write '__int128' for a signed 128-bit integer, or 'unsigned __int128'
  24440. for an unsigned 128-bit integer. There is no support in GCC for
  24441. expressing an integer constant of type '__int128' for targets with 'long
  24442. long' integer less than 128 bits wide.
  24443. 
  24444. File: gcc.info, Node: Long Long, Next: Complex, Prev: __int128, Up: C Extensions
  24445. 6.10 Double-Word Integers
  24446. =========================
  24447. ISO C99 and ISO C++11 support data types for integers that are at least
  24448. 64 bits wide, and as an extension GCC supports them in C90 and C++98
  24449. modes. Simply write 'long long int' for a signed integer, or 'unsigned
  24450. long long int' for an unsigned integer. To make an integer constant of
  24451. type 'long long int', add the suffix 'LL' to the integer. To make an
  24452. integer constant of type 'unsigned long long int', add the suffix 'ULL'
  24453. to the integer.
  24454. You can use these types in arithmetic like any other integer types.
  24455. Addition, subtraction, and bitwise boolean operations on these types are
  24456. open-coded on all types of machines. Multiplication is open-coded if
  24457. the machine supports a fullword-to-doubleword widening multiply
  24458. instruction. Division and shifts are open-coded only on machines that
  24459. provide special support. The operations that are not open-coded use
  24460. special library routines that come with GCC.
  24461. There may be pitfalls when you use 'long long' types for function
  24462. arguments without function prototypes. If a function expects type 'int'
  24463. for its argument, and you pass a value of type 'long long int',
  24464. confusion results because the caller and the subroutine disagree about
  24465. the number of bytes for the argument. Likewise, if the function expects
  24466. 'long long int' and you pass 'int'. The best way to avoid such problems
  24467. is to use prototypes.
  24468. 
  24469. File: gcc.info, Node: Complex, Next: Floating Types, Prev: Long Long, Up: C Extensions
  24470. 6.11 Complex Numbers
  24471. ====================
  24472. ISO C99 supports complex floating data types, and as an extension GCC
  24473. supports them in C90 mode and in C++. GCC also supports complex integer
  24474. data types which are not part of ISO C99. You can declare complex types
  24475. using the keyword '_Complex'. As an extension, the older GNU keyword
  24476. '__complex__' is also supported.
  24477. For example, '_Complex double x;' declares 'x' as a variable whose real
  24478. part and imaginary part are both of type 'double'. '_Complex short int
  24479. y;' declares 'y' to have real and imaginary parts of type 'short int';
  24480. this is not likely to be useful, but it shows that the set of complex
  24481. types is complete.
  24482. To write a constant with a complex data type, use the suffix 'i' or 'j'
  24483. (either one; they are equivalent). For example, '2.5fi' has type
  24484. '_Complex float' and '3i' has type '_Complex int'. Such a constant
  24485. always has a pure imaginary value, but you can form any complex value
  24486. you like by adding one to a real constant. This is a GNU extension; if
  24487. you have an ISO C99 conforming C library (such as the GNU C Library),
  24488. and want to construct complex constants of floating type, you should
  24489. include '<complex.h>' and use the macros 'I' or '_Complex_I' instead.
  24490. The ISO C++14 library also defines the 'i' suffix, so C++14 code that
  24491. includes the '<complex>' header cannot use 'i' for the GNU extension.
  24492. The 'j' suffix still has the GNU meaning.
  24493. To extract the real part of a complex-valued expression EXP, write
  24494. '__real__ EXP'. Likewise, use '__imag__' to extract the imaginary part.
  24495. This is a GNU extension; for values of floating type, you should use the
  24496. ISO C99 functions 'crealf', 'creal', 'creall', 'cimagf', 'cimag' and
  24497. 'cimagl', declared in '<complex.h>' and also provided as built-in
  24498. functions by GCC.
  24499. The operator '~' performs complex conjugation when used on a value with
  24500. a complex type. This is a GNU extension; for values of floating type,
  24501. you should use the ISO C99 functions 'conjf', 'conj' and 'conjl',
  24502. declared in '<complex.h>' and also provided as built-in functions by
  24503. GCC.
  24504. GCC can allocate complex automatic variables in a noncontiguous
  24505. fashion; it's even possible for the real part to be in a register while
  24506. the imaginary part is on the stack (or vice versa). Only the DWARF
  24507. debug info format can represent this, so use of DWARF is recommended.
  24508. If you are using the stabs debug info format, GCC describes a
  24509. noncontiguous complex variable as if it were two separate variables of
  24510. noncomplex type. If the variable's actual name is 'foo', the two
  24511. fictitious variables are named 'foo$real' and 'foo$imag'. You can
  24512. examine and set these two fictitious variables with your debugger.
  24513. 
  24514. File: gcc.info, Node: Floating Types, Next: Half-Precision, Prev: Complex, Up: C Extensions
  24515. 6.12 Additional Floating Types
  24516. ==============================
  24517. ISO/IEC TS 18661-3:2015 defines C support for additional floating types
  24518. '_FloatN' and '_FloatNx', and GCC supports these type names; the set of
  24519. types supported depends on the target architecture. These types are not
  24520. supported when compiling C++. Constants with these types use suffixes
  24521. 'fN' or 'FN' and 'fNx' or 'FNx'. These type names can be used together
  24522. with '_Complex' to declare complex types.
  24523. As an extension, GNU C and GNU C++ support additional floating types,
  24524. which are not supported by all targets.
  24525. * '__float128' is available on i386, x86_64, IA-64, and hppa HP-UX,
  24526. as well as on PowerPC GNU/Linux targets that enable the vector
  24527. scalar (VSX) instruction set. '__float128' supports the 128-bit
  24528. floating type. On i386, x86_64, PowerPC, and IA-64 other than
  24529. HP-UX, '__float128' is an alias for '_Float128'. On hppa and IA-64
  24530. HP-UX, '__float128' is an alias for 'long double'.
  24531. * '__float80' is available on the i386, x86_64, and IA-64 targets,
  24532. and supports the 80-bit ('XFmode') floating type. It is an alias
  24533. for the type name '_Float64x' on these targets.
  24534. * '__ibm128' is available on PowerPC targets, and provides access to
  24535. the IBM extended double format which is the current format used for
  24536. 'long double'. When 'long double' transitions to '__float128' on
  24537. PowerPC in the future, '__ibm128' will remain for use in
  24538. conversions between the two types.
  24539. Support for these additional types includes the arithmetic operators:
  24540. add, subtract, multiply, divide; unary arithmetic operators; relational
  24541. operators; equality operators; and conversions to and from integer and
  24542. other floating types. Use a suffix 'w' or 'W' in a literal constant of
  24543. type '__float80' or type '__ibm128'. Use a suffix 'q' or 'Q' for
  24544. '_float128'.
  24545. In order to use '_Float128', '__float128', and '__ibm128' on PowerPC
  24546. Linux systems, you must use the '-mfloat128' option. It is expected in
  24547. future versions of GCC that '_Float128' and '__float128' will be enabled
  24548. automatically.
  24549. The '_Float128' type is supported on all systems where '__float128' is
  24550. supported or where 'long double' has the IEEE binary128 format. The
  24551. '_Float64x' type is supported on all systems where '__float128' is
  24552. supported. The '_Float32' type is supported on all systems supporting
  24553. IEEE binary32; the '_Float64' and '_Float32x' types are supported on all
  24554. systems supporting IEEE binary64. The '_Float16' type is supported on
  24555. AArch64 systems by default, and on ARM systems when the IEEE format for
  24556. 16-bit floating-point types is selected with '-mfp16-format=ieee'. GCC
  24557. does not currently support '_Float128x' on any systems.
  24558. On the i386, x86_64, IA-64, and HP-UX targets, you can declare complex
  24559. types using the corresponding internal complex type, 'XCmode' for
  24560. '__float80' type and 'TCmode' for '__float128' type:
  24561. typedef _Complex float __attribute__((mode(TC))) _Complex128;
  24562. typedef _Complex float __attribute__((mode(XC))) _Complex80;
  24563. On the PowerPC Linux VSX targets, you can declare complex types using
  24564. the corresponding internal complex type, 'KCmode' for '__float128' type
  24565. and 'ICmode' for '__ibm128' type:
  24566. typedef _Complex float __attribute__((mode(KC))) _Complex_float128;
  24567. typedef _Complex float __attribute__((mode(IC))) _Complex_ibm128;
  24568. 
  24569. File: gcc.info, Node: Half-Precision, Next: Decimal Float, Prev: Floating Types, Up: C Extensions
  24570. 6.13 Half-Precision Floating Point
  24571. ==================================
  24572. On ARM and AArch64 targets, GCC supports half-precision (16-bit)
  24573. floating point via the '__fp16' type defined in the ARM C Language
  24574. Extensions. On ARM systems, you must enable this type explicitly with
  24575. the '-mfp16-format' command-line option in order to use it.
  24576. ARM targets support two incompatible representations for half-precision
  24577. floating-point values. You must choose one of the representations and
  24578. use it consistently in your program.
  24579. Specifying '-mfp16-format=ieee' selects the IEEE 754-2008 format. This
  24580. format can represent normalized values in the range of 2^{-14} to 65504.
  24581. There are 11 bits of significand precision, approximately 3 decimal
  24582. digits.
  24583. Specifying '-mfp16-format=alternative' selects the ARM alternative
  24584. format. This representation is similar to the IEEE format, but does not
  24585. support infinities or NaNs. Instead, the range of exponents is
  24586. extended, so that this format can represent normalized values in the
  24587. range of 2^{-14} to 131008.
  24588. The GCC port for AArch64 only supports the IEEE 754-2008 format, and
  24589. does not require use of the '-mfp16-format' command-line option.
  24590. The '__fp16' type may only be used as an argument to intrinsics defined
  24591. in '<arm_fp16.h>', or as a storage format. For purposes of arithmetic
  24592. and other operations, '__fp16' values in C or C++ expressions are
  24593. automatically promoted to 'float'.
  24594. The ARM target provides hardware support for conversions between
  24595. '__fp16' and 'float' values as an extension to VFP and NEON (Advanced
  24596. SIMD), and from ARMv8-A provides hardware support for conversions
  24597. between '__fp16' and 'double' values. GCC generates code using these
  24598. hardware instructions if you compile with options to select an FPU that
  24599. provides them; for example, '-mfpu=neon-fp16 -mfloat-abi=softfp', in
  24600. addition to the '-mfp16-format' option to select a half-precision
  24601. format.
  24602. Language-level support for the '__fp16' data type is independent of
  24603. whether GCC generates code using hardware floating-point instructions.
  24604. In cases where hardware support is not specified, GCC implements
  24605. conversions between '__fp16' and other types as library calls.
  24606. It is recommended that portable code use the '_Float16' type defined by
  24607. ISO/IEC TS 18661-3:2015. *Note Floating Types::.
  24608. 
  24609. File: gcc.info, Node: Decimal Float, Next: Hex Floats, Prev: Half-Precision, Up: C Extensions
  24610. 6.14 Decimal Floating Types
  24611. ===========================
  24612. As an extension, GNU C supports decimal floating types as defined in the
  24613. N1312 draft of ISO/IEC WDTR24732. Support for decimal floating types in
  24614. GCC will evolve as the draft technical report changes. Calling
  24615. conventions for any target might also change. Not all targets support
  24616. decimal floating types.
  24617. The decimal floating types are '_Decimal32', '_Decimal64', and
  24618. '_Decimal128'. They use a radix of ten, unlike the floating types
  24619. 'float', 'double', and 'long double' whose radix is not specified by the
  24620. C standard but is usually two.
  24621. Support for decimal floating types includes the arithmetic operators
  24622. add, subtract, multiply, divide; unary arithmetic operators; relational
  24623. operators; equality operators; and conversions to and from integer and
  24624. other floating types. Use a suffix 'df' or 'DF' in a literal constant
  24625. of type '_Decimal32', 'dd' or 'DD' for '_Decimal64', and 'dl' or 'DL'
  24626. for '_Decimal128'.
  24627. GCC support of decimal float as specified by the draft technical report
  24628. is incomplete:
  24629. * When the value of a decimal floating type cannot be represented in
  24630. the integer type to which it is being converted, the result is
  24631. undefined rather than the result value specified by the draft
  24632. technical report.
  24633. * GCC does not provide the C library functionality associated with
  24634. 'math.h', 'fenv.h', 'stdio.h', 'stdlib.h', and 'wchar.h', which
  24635. must come from a separate C library implementation. Because of
  24636. this the GNU C compiler does not define macro '__STDC_DEC_FP__' to
  24637. indicate that the implementation conforms to the technical report.
  24638. Types '_Decimal32', '_Decimal64', and '_Decimal128' are supported by
  24639. the DWARF debug information format.
  24640. 
  24641. File: gcc.info, Node: Hex Floats, Next: Fixed-Point, Prev: Decimal Float, Up: C Extensions
  24642. 6.15 Hex Floats
  24643. ===============
  24644. ISO C99 and ISO C++17 support floating-point numbers written not only in
  24645. the usual decimal notation, such as '1.55e1', but also numbers such as
  24646. '0x1.fp3' written in hexadecimal format. As a GNU extension, GCC
  24647. supports this in C90 mode (except in some cases when strictly
  24648. conforming) and in C++98, C++11 and C++14 modes. In that format the
  24649. '0x' hex introducer and the 'p' or 'P' exponent field are mandatory.
  24650. The exponent is a decimal number that indicates the power of 2 by which
  24651. the significant part is multiplied. Thus '0x1.f' is 1 15/16, 'p3'
  24652. multiplies it by 8, and the value of '0x1.fp3' is the same as '1.55e1'.
  24653. Unlike for floating-point numbers in the decimal notation the exponent
  24654. is always required in the hexadecimal notation. Otherwise the compiler
  24655. would not be able to resolve the ambiguity of, e.g., '0x1.f'. This
  24656. could mean '1.0f' or '1.9375' since 'f' is also the extension for
  24657. floating-point constants of type 'float'.
  24658. 
  24659. File: gcc.info, Node: Fixed-Point, Next: Named Address Spaces, Prev: Hex Floats, Up: C Extensions
  24660. 6.16 Fixed-Point Types
  24661. ======================
  24662. As an extension, GNU C supports fixed-point types as defined in the
  24663. N1169 draft of ISO/IEC DTR 18037. Support for fixed-point types in GCC
  24664. will evolve as the draft technical report changes. Calling conventions
  24665. for any target might also change. Not all targets support fixed-point
  24666. types.
  24667. The fixed-point types are 'short _Fract', '_Fract', 'long _Fract',
  24668. 'long long _Fract', 'unsigned short _Fract', 'unsigned _Fract',
  24669. 'unsigned long _Fract', 'unsigned long long _Fract', '_Sat short
  24670. _Fract', '_Sat _Fract', '_Sat long _Fract', '_Sat long long _Fract',
  24671. '_Sat unsigned short _Fract', '_Sat unsigned _Fract', '_Sat unsigned
  24672. long _Fract', '_Sat unsigned long long _Fract', 'short _Accum',
  24673. '_Accum', 'long _Accum', 'long long _Accum', 'unsigned short _Accum',
  24674. 'unsigned _Accum', 'unsigned long _Accum', 'unsigned long long _Accum',
  24675. '_Sat short _Accum', '_Sat _Accum', '_Sat long _Accum', '_Sat long long
  24676. _Accum', '_Sat unsigned short _Accum', '_Sat unsigned _Accum', '_Sat
  24677. unsigned long _Accum', '_Sat unsigned long long _Accum'.
  24678. Fixed-point data values contain fractional and optional integral parts.
  24679. The format of fixed-point data varies and depends on the target machine.
  24680. Support for fixed-point types includes:
  24681. * prefix and postfix increment and decrement operators ('++', '--')
  24682. * unary arithmetic operators ('+', '-', '!')
  24683. * binary arithmetic operators ('+', '-', '*', '/')
  24684. * binary shift operators ('<<', '>>')
  24685. * relational operators ('<', '<=', '>=', '>')
  24686. * equality operators ('==', '!=')
  24687. * assignment operators ('+=', '-=', '*=', '/=', '<<=', '>>=')
  24688. * conversions to and from integer, floating-point, or fixed-point
  24689. types
  24690. Use a suffix in a fixed-point literal constant:
  24691. * 'hr' or 'HR' for 'short _Fract' and '_Sat short _Fract'
  24692. * 'r' or 'R' for '_Fract' and '_Sat _Fract'
  24693. * 'lr' or 'LR' for 'long _Fract' and '_Sat long _Fract'
  24694. * 'llr' or 'LLR' for 'long long _Fract' and '_Sat long long _Fract'
  24695. * 'uhr' or 'UHR' for 'unsigned short _Fract' and '_Sat unsigned short
  24696. _Fract'
  24697. * 'ur' or 'UR' for 'unsigned _Fract' and '_Sat unsigned _Fract'
  24698. * 'ulr' or 'ULR' for 'unsigned long _Fract' and '_Sat unsigned long
  24699. _Fract'
  24700. * 'ullr' or 'ULLR' for 'unsigned long long _Fract' and '_Sat unsigned
  24701. long long _Fract'
  24702. * 'hk' or 'HK' for 'short _Accum' and '_Sat short _Accum'
  24703. * 'k' or 'K' for '_Accum' and '_Sat _Accum'
  24704. * 'lk' or 'LK' for 'long _Accum' and '_Sat long _Accum'
  24705. * 'llk' or 'LLK' for 'long long _Accum' and '_Sat long long _Accum'
  24706. * 'uhk' or 'UHK' for 'unsigned short _Accum' and '_Sat unsigned short
  24707. _Accum'
  24708. * 'uk' or 'UK' for 'unsigned _Accum' and '_Sat unsigned _Accum'
  24709. * 'ulk' or 'ULK' for 'unsigned long _Accum' and '_Sat unsigned long
  24710. _Accum'
  24711. * 'ullk' or 'ULLK' for 'unsigned long long _Accum' and '_Sat unsigned
  24712. long long _Accum'
  24713. GCC support of fixed-point types as specified by the draft technical
  24714. report is incomplete:
  24715. * Pragmas to control overflow and rounding behaviors are not
  24716. implemented.
  24717. Fixed-point types are supported by the DWARF debug information format.
  24718. 
  24719. File: gcc.info, Node: Named Address Spaces, Next: Zero Length, Prev: Fixed-Point, Up: C Extensions
  24720. 6.17 Named Address Spaces
  24721. =========================
  24722. As an extension, GNU C supports named address spaces as defined in the
  24723. N1275 draft of ISO/IEC DTR 18037. Support for named address spaces in
  24724. GCC will evolve as the draft technical report changes. Calling
  24725. conventions for any target might also change. At present, only the AVR,
  24726. M32C, RL78, and x86 targets support address spaces other than the
  24727. generic address space.
  24728. Address space identifiers may be used exactly like any other C type
  24729. qualifier (e.g., 'const' or 'volatile'). See the N1275 document for
  24730. more details.
  24731. 6.17.1 AVR Named Address Spaces
  24732. -------------------------------
  24733. On the AVR target, there are several address spaces that can be used in
  24734. order to put read-only data into the flash memory and access that data
  24735. by means of the special instructions 'LPM' or 'ELPM' needed to read from
  24736. flash.
  24737. Devices belonging to 'avrtiny' and 'avrxmega3' can access flash memory
  24738. by means of 'LD*' instructions because the flash memory is mapped into
  24739. the RAM address space. There is _no need_ for language extensions like
  24740. '__flash' or attribute *note 'progmem': AVR Variable Attributes. The
  24741. default linker description files for these devices cater for that
  24742. feature and '.rodata' stays in flash: The compiler just generates 'LD*'
  24743. instructions, and the linker script adds core specific offsets to all
  24744. '.rodata' symbols: '0x4000' in the case of 'avrtiny' and '0x8000' in the
  24745. case of 'avrxmega3'. See *note AVR Options:: for a list of respective
  24746. devices.
  24747. For devices not in 'avrtiny' or 'avrxmega3', any data including
  24748. read-only data is located in RAM (the generic address space) because
  24749. flash memory is not visible in the RAM address space. In order to
  24750. locate read-only data in flash memory _and_ to generate the right
  24751. instructions to access this data without using (inline) assembler code,
  24752. special address spaces are needed.
  24753. '__flash'
  24754. The '__flash' qualifier locates data in the '.progmem.data'
  24755. section. Data is read using the 'LPM' instruction. Pointers to
  24756. this address space are 16 bits wide.
  24757. '__flash1'
  24758. '__flash2'
  24759. '__flash3'
  24760. '__flash4'
  24761. '__flash5'
  24762. These are 16-bit address spaces locating data in section
  24763. '.progmemN.data' where N refers to address space '__flashN'. The
  24764. compiler sets the 'RAMPZ' segment register appropriately before
  24765. reading data by means of the 'ELPM' instruction.
  24766. '__memx'
  24767. This is a 24-bit address space that linearizes flash and RAM: If
  24768. the high bit of the address is set, data is read from RAM using the
  24769. lower two bytes as RAM address. If the high bit of the address is
  24770. clear, data is read from flash with 'RAMPZ' set according to the
  24771. high byte of the address. *Note '__builtin_avr_flash_segment': AVR
  24772. Built-in Functions.
  24773. Objects in this address space are located in '.progmemx.data'.
  24774. Example
  24775. char my_read (const __flash char ** p)
  24776. {
  24777. /* p is a pointer to RAM that points to a pointer to flash.
  24778. The first indirection of p reads that flash pointer
  24779. from RAM and the second indirection reads a char from this
  24780. flash address. */
  24781. return **p;
  24782. }
  24783. /* Locate array[] in flash memory */
  24784. const __flash int array[] = { 3, 5, 7, 11, 13, 17, 19 };
  24785. int i = 1;
  24786. int main (void)
  24787. {
  24788. /* Return 17 by reading from flash memory */
  24789. return array[array[i]];
  24790. }
  24791. For each named address space supported by avr-gcc there is an equally
  24792. named but uppercase built-in macro defined. The purpose is to
  24793. facilitate testing if respective address space support is available or
  24794. not:
  24795. #ifdef __FLASH
  24796. const __flash int var = 1;
  24797. int read_var (void)
  24798. {
  24799. return var;
  24800. }
  24801. #else
  24802. #include <avr/pgmspace.h> /* From AVR-LibC */
  24803. const int var PROGMEM = 1;
  24804. int read_var (void)
  24805. {
  24806. return (int) pgm_read_word (&var);
  24807. }
  24808. #endif /* __FLASH */
  24809. Notice that attribute *note 'progmem': AVR Variable Attributes. locates
  24810. data in flash but accesses to these data read from generic address
  24811. space, i.e. from RAM, so that you need special accessors like
  24812. 'pgm_read_byte' from AVR-LibC (http://nongnu.org/avr-libc/user-manual/)
  24813. together with attribute 'progmem'.
  24814. Limitations and caveats
  24815. * Reading across the 64 KiB section boundary of the '__flash' or
  24816. '__flashN' address spaces shows undefined behavior. The only
  24817. address space that supports reading across the 64 KiB flash segment
  24818. boundaries is '__memx'.
  24819. * If you use one of the '__flashN' address spaces you must arrange
  24820. your linker script to locate the '.progmemN.data' sections
  24821. according to your needs.
  24822. * Any data or pointers to the non-generic address spaces must be
  24823. qualified as 'const', i.e. as read-only data. This still applies
  24824. if the data in one of these address spaces like software version
  24825. number or calibration lookup table are intended to be changed after
  24826. load time by, say, a boot loader. In this case the right
  24827. qualification is 'const' 'volatile' so that the compiler must not
  24828. optimize away known values or insert them as immediates into
  24829. operands of instructions.
  24830. * The following code initializes a variable 'pfoo' located in static
  24831. storage with a 24-bit address:
  24832. extern const __memx char foo;
  24833. const __memx void *pfoo = &foo;
  24834. * On the reduced Tiny devices like ATtiny40, no address spaces are
  24835. supported. Just use vanilla C / C++ code without overhead as
  24836. outlined above. Attribute 'progmem' is supported but works
  24837. differently, see *note AVR Variable Attributes::.
  24838. 6.17.2 M32C Named Address Spaces
  24839. --------------------------------
  24840. On the M32C target, with the R8C and M16C CPU variants, variables
  24841. qualified with '__far' are accessed using 32-bit addresses in order to
  24842. access memory beyond the first 64 Ki bytes. If '__far' is used with the
  24843. M32CM or M32C CPU variants, it has no effect.
  24844. 6.17.3 RL78 Named Address Spaces
  24845. --------------------------------
  24846. On the RL78 target, variables qualified with '__far' are accessed with
  24847. 32-bit pointers (20-bit addresses) rather than the default 16-bit
  24848. addresses. Non-far variables are assumed to appear in the topmost
  24849. 64 KiB of the address space.
  24850. 6.17.4 x86 Named Address Spaces
  24851. -------------------------------
  24852. On the x86 target, variables may be declared as being relative to the
  24853. '%fs' or '%gs' segments.
  24854. '__seg_fs'
  24855. '__seg_gs'
  24856. The object is accessed with the respective segment override prefix.
  24857. The respective segment base must be set via some method specific to
  24858. the operating system. Rather than require an expensive system call
  24859. to retrieve the segment base, these address spaces are not
  24860. considered to be subspaces of the generic (flat) address space.
  24861. This means that explicit casts are required to convert pointers
  24862. between these address spaces and the generic address space. In
  24863. practice the application should cast to 'uintptr_t' and apply the
  24864. segment base offset that it installed previously.
  24865. The preprocessor symbols '__SEG_FS' and '__SEG_GS' are defined when
  24866. these address spaces are supported.
  24867. 
  24868. File: gcc.info, Node: Zero Length, Next: Empty Structures, Prev: Named Address Spaces, Up: C Extensions
  24869. 6.18 Arrays of Length Zero
  24870. ==========================
  24871. Declaring zero-length arrays is allowed in GNU C as an extension. A
  24872. zero-length array can be useful as the last element of a structure that
  24873. is really a header for a variable-length object:
  24874. struct line {
  24875. int length;
  24876. char contents[0];
  24877. };
  24878. struct line *thisline = (struct line *)
  24879. malloc (sizeof (struct line) + this_length);
  24880. thisline->length = this_length;
  24881. Although the size of a zero-length array is zero, an array member of
  24882. this kind may increase the size of the enclosing type as a result of
  24883. tail padding. The offset of a zero-length array member from the
  24884. beginning of the enclosing structure is the same as the offset of an
  24885. array with one or more elements of the same type. The alignment of a
  24886. zero-length array is the same as the alignment of its elements.
  24887. Declaring zero-length arrays in other contexts, including as interior
  24888. members of structure objects or as non-member objects, is discouraged.
  24889. Accessing elements of zero-length arrays declared in such contexts is
  24890. undefined and may be diagnosed.
  24891. In the absence of the zero-length array extension, in ISO C90 the
  24892. 'contents' array in the example above would typically be declared to
  24893. have a single element. Unlike a zero-length array which only
  24894. contributes to the size of the enclosing structure for the purposes of
  24895. alignment, a one-element array always occupies at least as much space as
  24896. a single object of the type. Although using one-element arrays this way
  24897. is discouraged, GCC handles accesses to trailing one-element array
  24898. members analogously to zero-length arrays.
  24899. The preferred mechanism to declare variable-length types like 'struct
  24900. line' above is the ISO C99 "flexible array member", with slightly
  24901. different syntax and semantics:
  24902. * Flexible array members are written as 'contents[]' without the '0'.
  24903. * Flexible array members have incomplete type, and so the 'sizeof'
  24904. operator may not be applied. As a quirk of the original
  24905. implementation of zero-length arrays, 'sizeof' evaluates to zero.
  24906. * Flexible array members may only appear as the last member of a
  24907. 'struct' that is otherwise non-empty.
  24908. * A structure containing a flexible array member, or a union
  24909. containing such a structure (possibly recursively), may not be a
  24910. member of a structure or an element of an array. (However, these
  24911. uses are permitted by GCC as extensions.)
  24912. Non-empty initialization of zero-length arrays is treated like any case
  24913. where there are more initializer elements than the array holds, in that
  24914. a suitable warning about "excess elements in array" is given, and the
  24915. excess elements (all of them, in this case) are ignored.
  24916. GCC allows static initialization of flexible array members. This is
  24917. equivalent to defining a new structure containing the original structure
  24918. followed by an array of sufficient size to contain the data. E.g. in
  24919. the following, 'f1' is constructed as if it were declared like 'f2'.
  24920. struct f1 {
  24921. int x; int y[];
  24922. } f1 = { 1, { 2, 3, 4 } };
  24923. struct f2 {
  24924. struct f1 f1; int data[3];
  24925. } f2 = { { 1 }, { 2, 3, 4 } };
  24926. The convenience of this extension is that 'f1' has the desired type,
  24927. eliminating the need to consistently refer to 'f2.f1'.
  24928. This has symmetry with normal static arrays, in that an array of
  24929. unknown size is also written with '[]'.
  24930. Of course, this extension only makes sense if the extra data comes at
  24931. the end of a top-level object, as otherwise we would be overwriting data
  24932. at subsequent offsets. To avoid undue complication and confusion with
  24933. initialization of deeply nested arrays, we simply disallow any non-empty
  24934. initialization except when the structure is the top-level object. For
  24935. example:
  24936. struct foo { int x; int y[]; };
  24937. struct bar { struct foo z; };
  24938. struct foo a = { 1, { 2, 3, 4 } }; // Valid.
  24939. struct bar b = { { 1, { 2, 3, 4 } } }; // Invalid.
  24940. struct bar c = { { 1, { } } }; // Valid.
  24941. struct foo d[1] = { { 1, { 2, 3, 4 } } }; // Invalid.
  24942. 
  24943. File: gcc.info, Node: Empty Structures, Next: Variable Length, Prev: Zero Length, Up: C Extensions
  24944. 6.19 Structures with No Members
  24945. ===============================
  24946. GCC permits a C structure to have no members:
  24947. struct empty {
  24948. };
  24949. The structure has size zero. In C++, empty structures are part of the
  24950. language. G++ treats empty structures as if they had a single member of
  24951. type 'char'.
  24952. 
  24953. File: gcc.info, Node: Variable Length, Next: Variadic Macros, Prev: Empty Structures, Up: C Extensions
  24954. 6.20 Arrays of Variable Length
  24955. ==============================
  24956. Variable-length automatic arrays are allowed in ISO C99, and as an
  24957. extension GCC accepts them in C90 mode and in C++. These arrays are
  24958. declared like any other automatic arrays, but with a length that is not
  24959. a constant expression. The storage is allocated at the point of
  24960. declaration and deallocated when the block scope containing the
  24961. declaration exits. For example:
  24962. FILE *
  24963. concat_fopen (char *s1, char *s2, char *mode)
  24964. {
  24965. char str[strlen (s1) + strlen (s2) + 1];
  24966. strcpy (str, s1);
  24967. strcat (str, s2);
  24968. return fopen (str, mode);
  24969. }
  24970. Jumping or breaking out of the scope of the array name deallocates the
  24971. storage. Jumping into the scope is not allowed; you get an error
  24972. message for it.
  24973. As an extension, GCC accepts variable-length arrays as a member of a
  24974. structure or a union. For example:
  24975. void
  24976. foo (int n)
  24977. {
  24978. struct S { int x[n]; };
  24979. }
  24980. You can use the function 'alloca' to get an effect much like
  24981. variable-length arrays. The function 'alloca' is available in many
  24982. other C implementations (but not in all). On the other hand,
  24983. variable-length arrays are more elegant.
  24984. There are other differences between these two methods. Space allocated
  24985. with 'alloca' exists until the containing _function_ returns. The space
  24986. for a variable-length array is deallocated as soon as the array name's
  24987. scope ends, unless you also use 'alloca' in this scope.
  24988. You can also use variable-length arrays as arguments to functions:
  24989. struct entry
  24990. tester (int len, char data[len][len])
  24991. {
  24992. /* ... */
  24993. }
  24994. The length of an array is computed once when the storage is allocated
  24995. and is remembered for the scope of the array in case you access it with
  24996. 'sizeof'.
  24997. If you want to pass the array first and the length afterward, you can
  24998. use a forward declaration in the parameter list--another GNU extension.
  24999. struct entry
  25000. tester (int len; char data[len][len], int len)
  25001. {
  25002. /* ... */
  25003. }
  25004. The 'int len' before the semicolon is a "parameter forward
  25005. declaration", and it serves the purpose of making the name 'len' known
  25006. when the declaration of 'data' is parsed.
  25007. You can write any number of such parameter forward declarations in the
  25008. parameter list. They can be separated by commas or semicolons, but the
  25009. last one must end with a semicolon, which is followed by the "real"
  25010. parameter declarations. Each forward declaration must match a "real"
  25011. declaration in parameter name and data type. ISO C99 does not support
  25012. parameter forward declarations.
  25013. 
  25014. File: gcc.info, Node: Variadic Macros, Next: Escaped Newlines, Prev: Variable Length, Up: C Extensions
  25015. 6.21 Macros with a Variable Number of Arguments.
  25016. ================================================
  25017. In the ISO C standard of 1999, a macro can be declared to accept a
  25018. variable number of arguments much as a function can. The syntax for
  25019. defining the macro is similar to that of a function. Here is an
  25020. example:
  25021. #define debug(format, ...) fprintf (stderr, format, __VA_ARGS__)
  25022. Here '...' is a "variable argument". In the invocation of such a macro,
  25023. it represents the zero or more tokens until the closing parenthesis that
  25024. ends the invocation, including any commas. This set of tokens replaces
  25025. the identifier '__VA_ARGS__' in the macro body wherever it appears. See
  25026. the CPP manual for more information.
  25027. GCC has long supported variadic macros, and used a different syntax
  25028. that allowed you to give a name to the variable arguments just like any
  25029. other argument. Here is an example:
  25030. #define debug(format, args...) fprintf (stderr, format, args)
  25031. This is in all ways equivalent to the ISO C example above, but arguably
  25032. more readable and descriptive.
  25033. GNU CPP has two further variadic macro extensions, and permits them to
  25034. be used with either of the above forms of macro definition.
  25035. In standard C, you are not allowed to leave the variable argument out
  25036. entirely; but you are allowed to pass an empty argument. For example,
  25037. this invocation is invalid in ISO C, because there is no comma after the
  25038. string:
  25039. debug ("A message")
  25040. GNU CPP permits you to completely omit the variable arguments in this
  25041. way. In the above examples, the compiler would complain, though since
  25042. the expansion of the macro still has the extra comma after the format
  25043. string.
  25044. To help solve this problem, CPP behaves specially for variable
  25045. arguments used with the token paste operator, '##'. If instead you
  25046. write
  25047. #define debug(format, ...) fprintf (stderr, format, ## __VA_ARGS__)
  25048. and if the variable arguments are omitted or empty, the '##' operator
  25049. causes the preprocessor to remove the comma before it. If you do
  25050. provide some variable arguments in your macro invocation, GNU CPP does
  25051. not complain about the paste operation and instead places the variable
  25052. arguments after the comma. Just like any other pasted macro argument,
  25053. these arguments are not macro expanded.
  25054. 
  25055. File: gcc.info, Node: Escaped Newlines, Next: Subscripting, Prev: Variadic Macros, Up: C Extensions
  25056. 6.22 Slightly Looser Rules for Escaped Newlines
  25057. ===============================================
  25058. The preprocessor treatment of escaped newlines is more relaxed than that
  25059. specified by the C90 standard, which requires the newline to immediately
  25060. follow a backslash. GCC's implementation allows whitespace in the form
  25061. of spaces, horizontal and vertical tabs, and form feeds between the
  25062. backslash and the subsequent newline. The preprocessor issues a
  25063. warning, but treats it as a valid escaped newline and combines the two
  25064. lines to form a single logical line. This works within comments and
  25065. tokens, as well as between tokens. Comments are _not_ treated as
  25066. whitespace for the purposes of this relaxation, since they have not yet
  25067. been replaced with spaces.
  25068. 
  25069. File: gcc.info, Node: Subscripting, Next: Pointer Arith, Prev: Escaped Newlines, Up: C Extensions
  25070. 6.23 Non-Lvalue Arrays May Have Subscripts
  25071. ==========================================
  25072. In ISO C99, arrays that are not lvalues still decay to pointers, and may
  25073. be subscripted, although they may not be modified or used after the next
  25074. sequence point and the unary '&' operator may not be applied to them.
  25075. As an extension, GNU C allows such arrays to be subscripted in C90 mode,
  25076. though otherwise they do not decay to pointers outside C99 mode. For
  25077. example, this is valid in GNU C though not valid in C90:
  25078. struct foo {int a[4];};
  25079. struct foo f();
  25080. bar (int index)
  25081. {
  25082. return f().a[index];
  25083. }
  25084. 
  25085. File: gcc.info, Node: Pointer Arith, Next: Variadic Pointer Args, Prev: Subscripting, Up: C Extensions
  25086. 6.24 Arithmetic on 'void'- and Function-Pointers
  25087. ================================================
  25088. In GNU C, addition and subtraction operations are supported on pointers
  25089. to 'void' and on pointers to functions. This is done by treating the
  25090. size of a 'void' or of a function as 1.
  25091. A consequence of this is that 'sizeof' is also allowed on 'void' and on
  25092. function types, and returns 1.
  25093. The option '-Wpointer-arith' requests a warning if these extensions are
  25094. used.
  25095. 
  25096. File: gcc.info, Node: Variadic Pointer Args, Next: Pointers to Arrays, Prev: Pointer Arith, Up: C Extensions
  25097. 6.25 Pointer Arguments in Variadic Functions
  25098. ============================================
  25099. Standard C requires that pointer types used with 'va_arg' in functions
  25100. with variable argument lists either must be compatible with that of the
  25101. actual argument, or that one type must be a pointer to 'void' and the
  25102. other a pointer to a character type. GNU C implements the POSIX XSI
  25103. extension that additionally permits the use of 'va_arg' with a pointer
  25104. type to receive arguments of any other pointer type.
  25105. In particular, in GNU C 'va_arg (ap, void *)' can safely be used to
  25106. consume an argument of any pointer type.
  25107. 
  25108. File: gcc.info, Node: Pointers to Arrays, Next: Initializers, Prev: Variadic Pointer Args, Up: C Extensions
  25109. 6.26 Pointers to Arrays with Qualifiers Work as Expected
  25110. ========================================================
  25111. In GNU C, pointers to arrays with qualifiers work similar to pointers to
  25112. other qualified types. For example, a value of type 'int (*)[5]' can be
  25113. used to initialize a variable of type 'const int (*)[5]'. These types
  25114. are incompatible in ISO C because the 'const' qualifier is formally
  25115. attached to the element type of the array and not the array itself.
  25116. extern void
  25117. transpose (int N, int M, double out[M][N], const double in[N][M]);
  25118. double x[3][2];
  25119. double y[2][3];
  25120. ...
  25121. transpose(3, 2, y, x);
  25122. 
  25123. File: gcc.info, Node: Initializers, Next: Compound Literals, Prev: Pointers to Arrays, Up: C Extensions
  25124. 6.27 Non-Constant Initializers
  25125. ==============================
  25126. As in standard C++ and ISO C99, the elements of an aggregate initializer
  25127. for an automatic variable are not required to be constant expressions in
  25128. GNU C. Here is an example of an initializer with run-time varying
  25129. elements:
  25130. foo (float f, float g)
  25131. {
  25132. float beat_freqs[2] = { f-g, f+g };
  25133. /* ... */
  25134. }
  25135. 
  25136. File: gcc.info, Node: Compound Literals, Next: Designated Inits, Prev: Initializers, Up: C Extensions
  25137. 6.28 Compound Literals
  25138. ======================
  25139. A compound literal looks like a cast of a brace-enclosed aggregate
  25140. initializer list. Its value is an object of the type specified in the
  25141. cast, containing the elements specified in the initializer. Unlike the
  25142. result of a cast, a compound literal is an lvalue. ISO C99 and later
  25143. support compound literals. As an extension, GCC supports compound
  25144. literals also in C90 mode and in C++, although as explained below, the
  25145. C++ semantics are somewhat different.
  25146. Usually, the specified type of a compound literal is a structure.
  25147. Assume that 'struct foo' and 'structure' are declared as shown:
  25148. struct foo {int a; char b[2];} structure;
  25149. Here is an example of constructing a 'struct foo' with a compound
  25150. literal:
  25151. structure = ((struct foo) {x + y, 'a', 0});
  25152. This is equivalent to writing the following:
  25153. {
  25154. struct foo temp = {x + y, 'a', 0};
  25155. structure = temp;
  25156. }
  25157. You can also construct an array, though this is dangerous in C++, as
  25158. explained below. If all the elements of the compound literal are (made
  25159. up of) simple constant expressions suitable for use in initializers of
  25160. objects of static storage duration, then the compound literal can be
  25161. coerced to a pointer to its first element and used in such an
  25162. initializer, as shown here:
  25163. char **foo = (char *[]) { "x", "y", "z" };
  25164. Compound literals for scalar types and union types are also allowed.
  25165. In the following example the variable 'i' is initialized to the value
  25166. '2', the result of incrementing the unnamed object created by the
  25167. compound literal.
  25168. int i = ++(int) { 1 };
  25169. As a GNU extension, GCC allows initialization of objects with static
  25170. storage duration by compound literals (which is not possible in ISO C99
  25171. because the initializer is not a constant). It is handled as if the
  25172. object were initialized only with the brace-enclosed list if the types
  25173. of the compound literal and the object match. The elements of the
  25174. compound literal must be constant. If the object being initialized has
  25175. array type of unknown size, the size is determined by the size of the
  25176. compound literal.
  25177. static struct foo x = (struct foo) {1, 'a', 'b'};
  25178. static int y[] = (int []) {1, 2, 3};
  25179. static int z[] = (int [3]) {1};
  25180. The above lines are equivalent to the following:
  25181. static struct foo x = {1, 'a', 'b'};
  25182. static int y[] = {1, 2, 3};
  25183. static int z[] = {1, 0, 0};
  25184. In C, a compound literal designates an unnamed object with static or
  25185. automatic storage duration. In C++, a compound literal designates a
  25186. temporary object that only lives until the end of its full-expression.
  25187. As a result, well-defined C code that takes the address of a subobject
  25188. of a compound literal can be undefined in C++, so G++ rejects the
  25189. conversion of a temporary array to a pointer. For instance, if the
  25190. array compound literal example above appeared inside a function, any
  25191. subsequent use of 'foo' in C++ would have undefined behavior because the
  25192. lifetime of the array ends after the declaration of 'foo'.
  25193. As an optimization, G++ sometimes gives array compound literals longer
  25194. lifetimes: when the array either appears outside a function or has a
  25195. 'const'-qualified type. If 'foo' and its initializer had elements of
  25196. type 'char *const' rather than 'char *', or if 'foo' were a global
  25197. variable, the array would have static storage duration. But it is
  25198. probably safest just to avoid the use of array compound literals in C++
  25199. code.
  25200. 
  25201. File: gcc.info, Node: Designated Inits, Next: Case Ranges, Prev: Compound Literals, Up: C Extensions
  25202. 6.29 Designated Initializers
  25203. ============================
  25204. Standard C90 requires the elements of an initializer to appear in a
  25205. fixed order, the same as the order of the elements in the array or
  25206. structure being initialized.
  25207. In ISO C99 you can give the elements in any order, specifying the array
  25208. indices or structure field names they apply to, and GNU C allows this as
  25209. an extension in C90 mode as well. This extension is not implemented in
  25210. GNU C++.
  25211. To specify an array index, write '[INDEX] =' before the element value.
  25212. For example,
  25213. int a[6] = { [4] = 29, [2] = 15 };
  25214. is equivalent to
  25215. int a[6] = { 0, 0, 15, 0, 29, 0 };
  25216. The index values must be constant expressions, even if the array being
  25217. initialized is automatic.
  25218. An alternative syntax for this that has been obsolete since GCC 2.5 but
  25219. GCC still accepts is to write '[INDEX]' before the element value, with
  25220. no '='.
  25221. To initialize a range of elements to the same value, write '[FIRST ...
  25222. LAST] = VALUE'. This is a GNU extension. For example,
  25223. int widths[] = { [0 ... 9] = 1, [10 ... 99] = 2, [100] = 3 };
  25224. If the value in it has side effects, the side effects happen only once,
  25225. not for each initialized field by the range initializer.
  25226. Note that the length of the array is the highest value specified plus
  25227. one.
  25228. In a structure initializer, specify the name of a field to initialize
  25229. with '.FIELDNAME =' before the element value. For example, given the
  25230. following structure,
  25231. struct point { int x, y; };
  25232. the following initialization
  25233. struct point p = { .y = yvalue, .x = xvalue };
  25234. is equivalent to
  25235. struct point p = { xvalue, yvalue };
  25236. Another syntax that has the same meaning, obsolete since GCC 2.5, is
  25237. 'FIELDNAME:', as shown here:
  25238. struct point p = { y: yvalue, x: xvalue };
  25239. Omitted fields are implicitly initialized the same as for objects that
  25240. have static storage duration.
  25241. The '[INDEX]' or '.FIELDNAME' is known as a "designator". You can also
  25242. use a designator (or the obsolete colon syntax) when initializing a
  25243. union, to specify which element of the union should be used. For
  25244. example,
  25245. union foo { int i; double d; };
  25246. union foo f = { .d = 4 };
  25247. converts 4 to a 'double' to store it in the union using the second
  25248. element. By contrast, casting 4 to type 'union foo' stores it into the
  25249. union as the integer 'i', since it is an integer. *Note Cast to
  25250. Union::.
  25251. You can combine this technique of naming elements with ordinary C
  25252. initialization of successive elements. Each initializer element that
  25253. does not have a designator applies to the next consecutive element of
  25254. the array or structure. For example,
  25255. int a[6] = { [1] = v1, v2, [4] = v4 };
  25256. is equivalent to
  25257. int a[6] = { 0, v1, v2, 0, v4, 0 };
  25258. Labeling the elements of an array initializer is especially useful when
  25259. the indices are characters or belong to an 'enum' type. For example:
  25260. int whitespace[256]
  25261. = { [' '] = 1, ['\t'] = 1, ['\h'] = 1,
  25262. ['\f'] = 1, ['\n'] = 1, ['\r'] = 1 };
  25263. You can also write a series of '.FIELDNAME' and '[INDEX]' designators
  25264. before an '=' to specify a nested subobject to initialize; the list is
  25265. taken relative to the subobject corresponding to the closest surrounding
  25266. brace pair. For example, with the 'struct point' declaration above:
  25267. struct point ptarray[10] = { [2].y = yv2, [2].x = xv2, [0].x = xv0 };
  25268. If the same field is initialized multiple times, or overlapping fields
  25269. of a union are initialized, the value from the last initialization is
  25270. used. When a field of a union is itself a structure, the entire
  25271. structure from the last field initialized is used. If any previous
  25272. initializer has side effect, it is unspecified whether the side effect
  25273. happens or not. Currently, GCC discards the side-effecting initializer
  25274. expressions and issues a warning.
  25275. 
  25276. File: gcc.info, Node: Case Ranges, Next: Cast to Union, Prev: Designated Inits, Up: C Extensions
  25277. 6.30 Case Ranges
  25278. ================
  25279. You can specify a range of consecutive values in a single 'case' label,
  25280. like this:
  25281. case LOW ... HIGH:
  25282. This has the same effect as the proper number of individual 'case'
  25283. labels, one for each integer value from LOW to HIGH, inclusive.
  25284. This feature is especially useful for ranges of ASCII character codes:
  25285. case 'A' ... 'Z':
  25286. *Be careful:* Write spaces around the '...', for otherwise it may be
  25287. parsed wrong when you use it with integer values. For example, write
  25288. this:
  25289. case 1 ... 5:
  25290. rather than this:
  25291. case 1...5:
  25292. 
  25293. File: gcc.info, Node: Cast to Union, Next: Mixed Declarations, Prev: Case Ranges, Up: C Extensions
  25294. 6.31 Cast to a Union Type
  25295. =========================
  25296. A cast to a union type is a C extension not available in C++. It looks
  25297. just like ordinary casts with the constraint that the type specified is
  25298. a union type. You can specify the type either with the 'union' keyword
  25299. or with a 'typedef' name that refers to a union. The result of a cast
  25300. to a union is a temporary rvalue of the union type with a member whose
  25301. type matches that of the operand initialized to the value of the
  25302. operand. The effect of a cast to a union is similar to a compound
  25303. literal except that it yields an rvalue like standard casts do. *Note
  25304. Compound Literals::.
  25305. Expressions that may be cast to the union type are those whose type
  25306. matches at least one of the members of the union. Thus, given the
  25307. following union and variables:
  25308. union foo { int i; double d; };
  25309. int x;
  25310. double y;
  25311. union foo z;
  25312. both 'x' and 'y' can be cast to type 'union foo' and the following
  25313. assignments
  25314. z = (union foo) x;
  25315. z = (union foo) y;
  25316. are shorthand equivalents of these
  25317. z = (union foo) { .i = x };
  25318. z = (union foo) { .d = y };
  25319. However, '(union foo) FLT_MAX;' is not a valid cast because the union
  25320. has no member of type 'float'.
  25321. Using the cast as the right-hand side of an assignment to a variable of
  25322. union type is equivalent to storing in a member of the union with the
  25323. same type
  25324. union foo u;
  25325. /* ... */
  25326. u = (union foo) x == u.i = x
  25327. u = (union foo) y == u.d = y
  25328. You can also use the union cast as a function argument:
  25329. void hack (union foo);
  25330. /* ... */
  25331. hack ((union foo) x);
  25332. 
  25333. File: gcc.info, Node: Mixed Declarations, Next: Function Attributes, Prev: Cast to Union, Up: C Extensions
  25334. 6.32 Mixed Declarations and Code
  25335. ================================
  25336. ISO C99 and ISO C++ allow declarations and code to be freely mixed
  25337. within compound statements. As an extension, GNU C also allows this in
  25338. C90 mode. For example, you could do:
  25339. int i;
  25340. /* ... */
  25341. i++;
  25342. int j = i + 2;
  25343. Each identifier is visible from where it is declared until the end of
  25344. the enclosing block.
  25345. 
  25346. File: gcc.info, Node: Function Attributes, Next: Variable Attributes, Prev: Mixed Declarations, Up: C Extensions
  25347. 6.33 Declaring Attributes of Functions
  25348. ======================================
  25349. In GNU C and C++, you can use function attributes to specify certain
  25350. function properties that may help the compiler optimize calls or check
  25351. code more carefully for correctness. For example, you can use
  25352. attributes to specify that a function never returns ('noreturn'),
  25353. returns a value depending only on the values of its arguments ('const'),
  25354. or has 'printf'-style arguments ('format').
  25355. You can also use attributes to control memory placement, code
  25356. generation options or call/return conventions within the function being
  25357. annotated. Many of these attributes are target-specific. For example,
  25358. many targets support attributes for defining interrupt handler
  25359. functions, which typically must follow special register usage and return
  25360. conventions. Such attributes are described in the subsection for each
  25361. target. However, a considerable number of attributes are supported by
  25362. most, if not all targets. Those are described in the *note Common
  25363. Function Attributes:: section.
  25364. Function attributes are introduced by the '__attribute__' keyword in
  25365. the declaration of a function, followed by an attribute specification
  25366. enclosed in double parentheses. You can specify multiple attributes in
  25367. a declaration by separating them by commas within the double parentheses
  25368. or by immediately following one attribute specification with another.
  25369. *Note Attribute Syntax::, for the exact rules on attribute syntax and
  25370. placement. Compatible attribute specifications on distinct declarations
  25371. of the same function are merged. An attribute specification that is not
  25372. compatible with attributes already applied to a declaration of the same
  25373. function is ignored with a warning.
  25374. Some function attributes take one or more arguments that refer to the
  25375. function's parameters by their positions within the function parameter
  25376. list. Such attribute arguments are referred to as "positional
  25377. arguments". Unless specified otherwise, positional arguments that
  25378. specify properties of parameters with pointer types can also specify the
  25379. same properties of the implicit C++ 'this' argument in non-static member
  25380. functions, and of parameters of reference to a pointer type. For
  25381. ordinary functions, position one refers to the first parameter on the
  25382. list. In C++ non-static member functions, position one refers to the
  25383. implicit 'this' pointer. The same restrictions and effects apply to
  25384. function attributes used with ordinary functions or C++ member
  25385. functions.
  25386. GCC also supports attributes on variable declarations (*note Variable
  25387. Attributes::), labels (*note Label Attributes::), enumerators (*note
  25388. Enumerator Attributes::), statements (*note Statement Attributes::), and
  25389. types (*note Type Attributes::).
  25390. There is some overlap between the purposes of attributes and pragmas
  25391. (*note Pragmas Accepted by GCC: Pragmas.). It has been found convenient
  25392. to use '__attribute__' to achieve a natural attachment of attributes to
  25393. their corresponding declarations, whereas '#pragma' is of use for
  25394. compatibility with other compilers or constructs that do not naturally
  25395. form part of the grammar.
  25396. In addition to the attributes documented here, GCC plugins may provide
  25397. their own attributes.
  25398. * Menu:
  25399. * Common Function Attributes::
  25400. * AArch64 Function Attributes::
  25401. * AMD GCN Function Attributes::
  25402. * ARC Function Attributes::
  25403. * ARM Function Attributes::
  25404. * AVR Function Attributes::
  25405. * Blackfin Function Attributes::
  25406. * BPF Function Attributes::
  25407. * CR16 Function Attributes::
  25408. * C-SKY Function Attributes::
  25409. * Epiphany Function Attributes::
  25410. * H8/300 Function Attributes::
  25411. * IA-64 Function Attributes::
  25412. * M32C Function Attributes::
  25413. * M32R/D Function Attributes::
  25414. * m68k Function Attributes::
  25415. * MCORE Function Attributes::
  25416. * MeP Function Attributes::
  25417. * MicroBlaze Function Attributes::
  25418. * Microsoft Windows Function Attributes::
  25419. * MIPS Function Attributes::
  25420. * MSP430 Function Attributes::
  25421. * NDS32 Function Attributes::
  25422. * Nios II Function Attributes::
  25423. * Nvidia PTX Function Attributes::
  25424. * PowerPC Function Attributes::
  25425. * RISC-V Function Attributes::
  25426. * RL78 Function Attributes::
  25427. * RX Function Attributes::
  25428. * S/390 Function Attributes::
  25429. * SH Function Attributes::
  25430. * Symbian OS Function Attributes::
  25431. * V850 Function Attributes::
  25432. * Visium Function Attributes::
  25433. * x86 Function Attributes::
  25434. * Xstormy16 Function Attributes::
  25435. 
  25436. File: gcc.info, Node: Common Function Attributes, Next: AArch64 Function Attributes, Up: Function Attributes
  25437. 6.33.1 Common Function Attributes
  25438. ---------------------------------
  25439. The following attributes are supported on most targets.
  25440. 'access'
  25441. 'access (ACCESS-MODE, REF-INDEX)'
  25442. 'access (ACCESS-MODE, REF-INDEX, SIZE-INDEX)'
  25443. The 'access' attribute enables the detection of invalid or unsafe
  25444. accesses by functions to which they apply or their callers, as well
  25445. as write-only accesses to objects that are never read from. Such
  25446. accesses may be diagnosed by warnings such as
  25447. '-Wstringop-overflow', '-Wuninitialized', '-Wunused', and others.
  25448. The 'access' attribute specifies that a function to whose
  25449. by-reference arguments the attribute applies accesses the
  25450. referenced object according to ACCESS-MODE. The ACCESS-MODE
  25451. argument is required and must be one of three names: 'read_only',
  25452. 'read_write', or 'write_only'. The remaining two are positional
  25453. arguments.
  25454. The required REF-INDEX positional argument denotes a function
  25455. argument of pointer (or in C++, reference) type that is subject to
  25456. the access. The same pointer argument can be referenced by at most
  25457. one distinct 'access' attribute.
  25458. The optional SIZE-INDEX positional argument denotes a function
  25459. argument of integer type that specifies the maximum size of the
  25460. access. The size is the number of elements of the type referenced
  25461. by REF-INDEX, or the number of bytes when the pointer type is
  25462. 'void*'. When no SIZE-INDEX argument is specified, the pointer
  25463. argument must be either null or point to a space that is suitably
  25464. aligned and large for at least one object of the referenced type
  25465. (this implies that a past-the-end pointer is not a valid argument).
  25466. The actual size of the access may be less but it must not be more.
  25467. The 'read_only' access mode specifies that the pointer to which it
  25468. applies is used to read the referenced object but not write to it.
  25469. Unless the argument specifying the size of the access denoted by
  25470. SIZE-INDEX is zero, the referenced object must be initialized. The
  25471. mode implies a stronger guarantee than the 'const' qualifier which,
  25472. when cast away from a pointer, does not prevent the pointed-to
  25473. object from being modified. Examples of the use of the 'read_only'
  25474. access mode is the argument to the 'puts' function, or the second
  25475. and third arguments to the 'memcpy' function.
  25476. __attribute__ ((access (read_only, 1))) int puts (const char*);
  25477. __attribute__ ((access (read_only, 1, 2))) void* memcpy (void*, const void*, size_t);
  25478. The 'read_write' access mode applies to arguments of pointer types
  25479. without the 'const' qualifier. It specifies that the pointer to
  25480. which it applies is used to both read and write the referenced
  25481. object. Unless the argument specifying the size of the access
  25482. denoted by SIZE-INDEX is zero, the object referenced by the pointer
  25483. must be initialized. An example of the use of the 'read_write'
  25484. access mode is the first argument to the 'strcat' function.
  25485. __attribute__ ((access (read_write, 1), access (read_only, 2))) char* strcat (char*, const char*);
  25486. The 'write_only' access mode applies to arguments of pointer types
  25487. without the 'const' qualifier. It specifies that the pointer to
  25488. which it applies is used to write to the referenced object but not
  25489. read from it. The object referenced by the pointer need not be
  25490. initialized. An example of the use of the 'write_only' access mode
  25491. is the first argument to the 'strcpy' function, or the first two
  25492. arguments to the 'fgets' function.
  25493. __attribute__ ((access (write_only, 1), access (read_only, 2))) char* strcpy (char*, const char*);
  25494. __attribute__ ((access (write_only, 1, 2), access (read_write, 3))) int fgets (char*, int, FILE*);
  25495. 'alias ("TARGET")'
  25496. The 'alias' attribute causes the declaration to be emitted as an
  25497. alias for another symbol, which must have been previously declared
  25498. with the same type, and for variables, also the same size and
  25499. alignment. Declaring an alias with a different type than the
  25500. target is undefined and may be diagnosed. As an example, the
  25501. following declarations:
  25502. void __f () { /* Do something. */; }
  25503. void f () __attribute__ ((weak, alias ("__f")));
  25504. define 'f' to be a weak alias for '__f'. In C++, the mangled name
  25505. for the target must be used. It is an error if '__f' is not
  25506. defined in the same translation unit.
  25507. This attribute requires assembler and object file support, and may
  25508. not be available on all targets.
  25509. 'aligned'
  25510. 'aligned (ALIGNMENT)'
  25511. The 'aligned' attribute specifies a minimum alignment for the first
  25512. instruction of the function, measured in bytes. When specified,
  25513. ALIGNMENT must be an integer constant power of 2. Specifying no
  25514. ALIGNMENT argument implies the ideal alignment for the target. The
  25515. '__alignof__' operator can be used to determine what that is (*note
  25516. Alignment::). The attribute has no effect when a definition for
  25517. the function is not provided in the same translation unit.
  25518. The attribute cannot be used to decrease the alignment of a
  25519. function previously declared with a more restrictive alignment;
  25520. only to increase it. Attempts to do otherwise are diagnosed. Some
  25521. targets specify a minimum default alignment for functions that is
  25522. greater than 1. On such targets, specifying a less restrictive
  25523. alignment is silently ignored. Using the attribute overrides the
  25524. effect of the '-falign-functions' (*note Optimize Options::) option
  25525. for this function.
  25526. Note that the effectiveness of 'aligned' attributes may be limited
  25527. by inherent limitations in the system linker and/or object file
  25528. format. On some systems, the linker is only able to arrange for
  25529. functions to be aligned up to a certain maximum alignment. (For
  25530. some linkers, the maximum supported alignment may be very very
  25531. small.) See your linker documentation for further information.
  25532. The 'aligned' attribute can also be used for variables and fields
  25533. (*note Variable Attributes::.)
  25534. 'alloc_align (POSITION)'
  25535. The 'alloc_align' attribute may be applied to a function that
  25536. returns a pointer and takes at least one argument of an integer or
  25537. enumerated type. It indicates that the returned pointer is aligned
  25538. on a boundary given by the function argument at POSITION.
  25539. Meaningful alignments are powers of 2 greater than one. GCC uses
  25540. this information to improve pointer alignment analysis.
  25541. The function parameter denoting the allocated alignment is
  25542. specified by one constant integer argument whose number is the
  25543. argument of the attribute. Argument numbering starts at one.
  25544. For instance,
  25545. void* my_memalign (size_t, size_t) __attribute__ ((alloc_align (1)));
  25546. declares that 'my_memalign' returns memory with minimum alignment
  25547. given by parameter 1.
  25548. 'alloc_size (POSITION)'
  25549. 'alloc_size (POSITION-1, POSITION-2)'
  25550. The 'alloc_size' attribute may be applied to a function that
  25551. returns a pointer and takes at least one argument of an integer or
  25552. enumerated type. It indicates that the returned pointer points to
  25553. memory whose size is given by the function argument at POSITION-1,
  25554. or by the product of the arguments at POSITION-1 and POSITION-2.
  25555. Meaningful sizes are positive values less than 'PTRDIFF_MAX'. GCC
  25556. uses this information to improve the results of
  25557. '__builtin_object_size'.
  25558. The function parameter(s) denoting the allocated size are specified
  25559. by one or two integer arguments supplied to the attribute. The
  25560. allocated size is either the value of the single function argument
  25561. specified or the product of the two function arguments specified.
  25562. Argument numbering starts at one for ordinary functions, and at two
  25563. for C++ non-static member functions.
  25564. For instance,
  25565. void* my_calloc (size_t, size_t) __attribute__ ((alloc_size (1, 2)));
  25566. void* my_realloc (void*, size_t) __attribute__ ((alloc_size (2)));
  25567. declares that 'my_calloc' returns memory of the size given by the
  25568. product of parameter 1 and 2 and that 'my_realloc' returns memory
  25569. of the size given by parameter 2.
  25570. 'always_inline'
  25571. Generally, functions are not inlined unless optimization is
  25572. specified. For functions declared inline, this attribute inlines
  25573. the function independent of any restrictions that otherwise apply
  25574. to inlining. Failure to inline such a function is diagnosed as an
  25575. error. Note that if such a function is called indirectly the
  25576. compiler may or may not inline it depending on optimization level
  25577. and a failure to inline an indirect call may or may not be
  25578. diagnosed.
  25579. 'artificial'
  25580. This attribute is useful for small inline wrappers that if possible
  25581. should appear during debugging as a unit. Depending on the debug
  25582. info format it either means marking the function as artificial or
  25583. using the caller location for all instructions within the inlined
  25584. body.
  25585. 'assume_aligned (ALIGNMENT)'
  25586. 'assume_aligned (ALIGNMENT, OFFSET)'
  25587. The 'assume_aligned' attribute may be applied to a function that
  25588. returns a pointer. It indicates that the returned pointer is
  25589. aligned on a boundary given by ALIGNMENT. If the attribute has two
  25590. arguments, the second argument is misalignment OFFSET. Meaningful
  25591. values of ALIGNMENT are powers of 2 greater than one. Meaningful
  25592. values of OFFSET are greater than zero and less than ALIGNMENT.
  25593. For instance
  25594. void* my_alloc1 (size_t) __attribute__((assume_aligned (16)));
  25595. void* my_alloc2 (size_t) __attribute__((assume_aligned (32, 8)));
  25596. declares that 'my_alloc1' returns 16-byte aligned pointers and that
  25597. 'my_alloc2' returns a pointer whose value modulo 32 is equal to 8.
  25598. 'cold'
  25599. The 'cold' attribute on functions is used to inform the compiler
  25600. that the function is unlikely to be executed. The function is
  25601. optimized for size rather than speed and on many targets it is
  25602. placed into a special subsection of the text section so all cold
  25603. functions appear close together, improving code locality of
  25604. non-cold parts of program. The paths leading to calls of cold
  25605. functions within code are marked as unlikely by the branch
  25606. prediction mechanism. It is thus useful to mark functions used to
  25607. handle unlikely conditions, such as 'perror', as cold to improve
  25608. optimization of hot functions that do call marked functions in rare
  25609. occasions.
  25610. When profile feedback is available, via '-fprofile-use', cold
  25611. functions are automatically detected and this attribute is ignored.
  25612. 'const'
  25613. Calls to functions whose return value is not affected by changes to
  25614. the observable state of the program and that have no observable
  25615. effects on such state other than to return a value may lend
  25616. themselves to optimizations such as common subexpression
  25617. elimination. Declaring such functions with the 'const' attribute
  25618. allows GCC to avoid emitting some calls in repeated invocations of
  25619. the function with the same argument values.
  25620. For example,
  25621. int square (int) __attribute__ ((const));
  25622. tells GCC that subsequent calls to function 'square' with the same
  25623. argument value can be replaced by the result of the first call
  25624. regardless of the statements in between.
  25625. The 'const' attribute prohibits a function from reading objects
  25626. that affect its return value between successive invocations.
  25627. However, functions declared with the attribute can safely read
  25628. objects that do not change their return value, such as non-volatile
  25629. constants.
  25630. The 'const' attribute imposes greater restrictions on a function's
  25631. definition than the similar 'pure' attribute. Declaring the same
  25632. function with both the 'const' and the 'pure' attribute is
  25633. diagnosed. Because a const function cannot have any observable
  25634. side effects it does not make sense for it to return 'void'.
  25635. Declaring such a function is diagnosed.
  25636. Note that a function that has pointer arguments and examines the
  25637. data pointed to must _not_ be declared 'const' if the pointed-to
  25638. data might change between successive invocations of the function.
  25639. In general, since a function cannot distinguish data that might
  25640. change from data that cannot, const functions should never take
  25641. pointer or, in C++, reference arguments. Likewise, a function that
  25642. calls a non-const function usually must not be const itself.
  25643. 'constructor'
  25644. 'destructor'
  25645. 'constructor (PRIORITY)'
  25646. 'destructor (PRIORITY)'
  25647. The 'constructor' attribute causes the function to be called
  25648. automatically before execution enters 'main ()'. Similarly, the
  25649. 'destructor' attribute causes the function to be called
  25650. automatically after 'main ()' completes or 'exit ()' is called.
  25651. Functions with these attributes are useful for initializing data
  25652. that is used implicitly during the execution of the program.
  25653. On some targets the attributes also accept an integer argument to
  25654. specify a priority to control the order in which constructor and
  25655. destructor functions are run. A constructor with a smaller
  25656. priority number runs before a constructor with a larger priority
  25657. number; the opposite relationship holds for destructors. So, if
  25658. you have a constructor that allocates a resource and a destructor
  25659. that deallocates the same resource, both functions typically have
  25660. the same priority. The priorities for constructor and destructor
  25661. functions are the same as those specified for namespace-scope C++
  25662. objects (*note C++ Attributes::). However, at present, the order
  25663. in which constructors for C++ objects with static storage duration
  25664. and functions decorated with attribute 'constructor' are invoked is
  25665. unspecified. In mixed declarations, attribute 'init_priority' can
  25666. be used to impose a specific ordering.
  25667. Using the argument forms of the 'constructor' and 'destructor'
  25668. attributes on targets where the feature is not supported is
  25669. rejected with an error.
  25670. 'copy'
  25671. 'copy (FUNCTION)'
  25672. The 'copy' attribute applies the set of attributes with which
  25673. FUNCTION has been declared to the declaration of the function to
  25674. which the attribute is applied. The attribute is designed for
  25675. libraries that define aliases or function resolvers that are
  25676. expected to specify the same set of attributes as their targets.
  25677. The 'copy' attribute can be used with functions, variables, or
  25678. types. However, the kind of symbol to which the attribute is
  25679. applied (either function or variable) must match the kind of symbol
  25680. to which the argument refers. The 'copy' attribute copies only
  25681. syntactic and semantic attributes but not attributes that affect a
  25682. symbol's linkage or visibility such as 'alias', 'visibility', or
  25683. 'weak'. The 'deprecated' and 'target_clones' attribute are also
  25684. not copied. *Note Common Type Attributes::. *Note Common Variable
  25685. Attributes::.
  25686. For example, the STRONGALIAS macro below makes use of the 'alias'
  25687. and 'copy' attributes to define an alias named ALLOC for function
  25688. ALLOCATE declared with attributes ALLOC_SIZE, MALLOC, and NOTHROW.
  25689. Thanks to the '__typeof__' operator the alias has the same type as
  25690. the target function. As a result of the 'copy' attribute the alias
  25691. also shares the same attributes as the target.
  25692. #define StrongAlias(TargetFunc, AliasDecl) \
  25693. extern __typeof__ (TargetFunc) AliasDecl \
  25694. __attribute__ ((alias (#TargetFunc), copy (TargetFunc)));
  25695. extern __attribute__ ((alloc_size (1), malloc, nothrow))
  25696. void* allocate (size_t);
  25697. StrongAlias (allocate, alloc);
  25698. 'deprecated'
  25699. 'deprecated (MSG)'
  25700. The 'deprecated' attribute results in a warning if the function is
  25701. used anywhere in the source file. This is useful when identifying
  25702. functions that are expected to be removed in a future version of a
  25703. program. The warning also includes the location of the declaration
  25704. of the deprecated function, to enable users to easily find further
  25705. information about why the function is deprecated, or what they
  25706. should do instead. Note that the warnings only occurs for uses:
  25707. int old_fn () __attribute__ ((deprecated));
  25708. int old_fn ();
  25709. int (*fn_ptr)() = old_fn;
  25710. results in a warning on line 3 but not line 2. The optional MSG
  25711. argument, which must be a string, is printed in the warning if
  25712. present.
  25713. The 'deprecated' attribute can also be used for variables and types
  25714. (*note Variable Attributes::, *note Type Attributes::.)
  25715. The message attached to the attribute is affected by the setting of
  25716. the '-fmessage-length' option.
  25717. 'error ("MESSAGE")'
  25718. 'warning ("MESSAGE")'
  25719. If the 'error' or 'warning' attribute is used on a function
  25720. declaration and a call to such a function is not eliminated through
  25721. dead code elimination or other optimizations, an error or warning
  25722. (respectively) that includes MESSAGE is diagnosed. This is useful
  25723. for compile-time checking, especially together with
  25724. '__builtin_constant_p' and inline functions where checking the
  25725. inline function arguments is not possible through 'extern char
  25726. [(condition) ? 1 : -1];' tricks.
  25727. While it is possible to leave the function undefined and thus
  25728. invoke a link failure (to define the function with a message in
  25729. '.gnu.warning*' section), when using these attributes the problem
  25730. is diagnosed earlier and with exact location of the call even in
  25731. presence of inline functions or when not emitting debugging
  25732. information.
  25733. 'externally_visible'
  25734. This attribute, attached to a global variable or function,
  25735. nullifies the effect of the '-fwhole-program' command-line option,
  25736. so the object remains visible outside the current compilation unit.
  25737. If '-fwhole-program' is used together with '-flto' and 'gold' is
  25738. used as the linker plugin, 'externally_visible' attributes are
  25739. automatically added to functions (not variable yet due to a current
  25740. 'gold' issue) that are accessed outside of LTO objects according to
  25741. resolution file produced by 'gold'. For other linkers that cannot
  25742. generate resolution file, explicit 'externally_visible' attributes
  25743. are still necessary.
  25744. 'flatten'
  25745. Generally, inlining into a function is limited. For a function
  25746. marked with this attribute, every call inside this function is
  25747. inlined, if possible. Functions declared with attribute 'noinline'
  25748. and similar are not inlined. Whether the function itself is
  25749. considered for inlining depends on its size and the current
  25750. inlining parameters.
  25751. 'format (ARCHETYPE, STRING-INDEX, FIRST-TO-CHECK)'
  25752. The 'format' attribute specifies that a function takes 'printf',
  25753. 'scanf', 'strftime' or 'strfmon' style arguments that should be
  25754. type-checked against a format string. For example, the
  25755. declaration:
  25756. extern int
  25757. my_printf (void *my_object, const char *my_format, ...)
  25758. __attribute__ ((format (printf, 2, 3)));
  25759. causes the compiler to check the arguments in calls to 'my_printf'
  25760. for consistency with the 'printf' style format string argument
  25761. 'my_format'.
  25762. The parameter ARCHETYPE determines how the format string is
  25763. interpreted, and should be 'printf', 'scanf', 'strftime',
  25764. 'gnu_printf', 'gnu_scanf', 'gnu_strftime' or 'strfmon'. (You can
  25765. also use '__printf__', '__scanf__', '__strftime__' or
  25766. '__strfmon__'.) On MinGW targets, 'ms_printf', 'ms_scanf', and
  25767. 'ms_strftime' are also present. ARCHETYPE values such as 'printf'
  25768. refer to the formats accepted by the system's C runtime library,
  25769. while values prefixed with 'gnu_' always refer to the formats
  25770. accepted by the GNU C Library. On Microsoft Windows targets,
  25771. values prefixed with 'ms_' refer to the formats accepted by the
  25772. 'msvcrt.dll' library. The parameter STRING-INDEX specifies which
  25773. argument is the format string argument (starting from 1), while
  25774. FIRST-TO-CHECK is the number of the first argument to check against
  25775. the format string. For functions where the arguments are not
  25776. available to be checked (such as 'vprintf'), specify the third
  25777. parameter as zero. In this case the compiler only checks the
  25778. format string for consistency. For 'strftime' formats, the third
  25779. parameter is required to be zero. Since non-static C++ methods
  25780. have an implicit 'this' argument, the arguments of such methods
  25781. should be counted from two, not one, when giving values for
  25782. STRING-INDEX and FIRST-TO-CHECK.
  25783. In the example above, the format string ('my_format') is the second
  25784. argument of the function 'my_print', and the arguments to check
  25785. start with the third argument, so the correct parameters for the
  25786. format attribute are 2 and 3.
  25787. The 'format' attribute allows you to identify your own functions
  25788. that take format strings as arguments, so that GCC can check the
  25789. calls to these functions for errors. The compiler always (unless
  25790. '-ffreestanding' or '-fno-builtin' is used) checks formats for the
  25791. standard library functions 'printf', 'fprintf', 'sprintf', 'scanf',
  25792. 'fscanf', 'sscanf', 'strftime', 'vprintf', 'vfprintf' and
  25793. 'vsprintf' whenever such warnings are requested (using '-Wformat'),
  25794. so there is no need to modify the header file 'stdio.h'. In C99
  25795. mode, the functions 'snprintf', 'vsnprintf', 'vscanf', 'vfscanf'
  25796. and 'vsscanf' are also checked. Except in strictly conforming C
  25797. standard modes, the X/Open function 'strfmon' is also checked as
  25798. are 'printf_unlocked' and 'fprintf_unlocked'. *Note Options
  25799. Controlling C Dialect: C Dialect Options.
  25800. For Objective-C dialects, 'NSString' (or '__NSString__') is
  25801. recognized in the same context. Declarations including these
  25802. format attributes are parsed for correct syntax, however the result
  25803. of checking of such format strings is not yet defined, and is not
  25804. carried out by this version of the compiler.
  25805. The target may also provide additional types of format checks.
  25806. *Note Format Checks Specific to Particular Target Machines: Target
  25807. Format Checks.
  25808. 'format_arg (STRING-INDEX)'
  25809. The 'format_arg' attribute specifies that a function takes one or
  25810. more format strings for a 'printf', 'scanf', 'strftime' or
  25811. 'strfmon' style function and modifies it (for example, to translate
  25812. it into another language), so the result can be passed to a
  25813. 'printf', 'scanf', 'strftime' or 'strfmon' style function (with the
  25814. remaining arguments to the format function the same as they would
  25815. have been for the unmodified string). Multiple 'format_arg'
  25816. attributes may be applied to the same function, each designating a
  25817. distinct parameter as a format string. For example, the
  25818. declaration:
  25819. extern char *
  25820. my_dgettext (char *my_domain, const char *my_format)
  25821. __attribute__ ((format_arg (2)));
  25822. causes the compiler to check the arguments in calls to a 'printf',
  25823. 'scanf', 'strftime' or 'strfmon' type function, whose format string
  25824. argument is a call to the 'my_dgettext' function, for consistency
  25825. with the format string argument 'my_format'. If the 'format_arg'
  25826. attribute had not been specified, all the compiler could tell in
  25827. such calls to format functions would be that the format string
  25828. argument is not constant; this would generate a warning when
  25829. '-Wformat-nonliteral' is used, but the calls could not be checked
  25830. without the attribute.
  25831. In calls to a function declared with more than one 'format_arg'
  25832. attribute, each with a distinct argument value, the corresponding
  25833. actual function arguments are checked against all format strings
  25834. designated by the attributes. This capability is designed to
  25835. support the GNU 'ngettext' family of functions.
  25836. The parameter STRING-INDEX specifies which argument is the format
  25837. string argument (starting from one). Since non-static C++ methods
  25838. have an implicit 'this' argument, the arguments of such methods
  25839. should be counted from two.
  25840. The 'format_arg' attribute allows you to identify your own
  25841. functions that modify format strings, so that GCC can check the
  25842. calls to 'printf', 'scanf', 'strftime' or 'strfmon' type function
  25843. whose operands are a call to one of your own function. The
  25844. compiler always treats 'gettext', 'dgettext', and 'dcgettext' in
  25845. this manner except when strict ISO C support is requested by
  25846. '-ansi' or an appropriate '-std' option, or '-ffreestanding' or
  25847. '-fno-builtin' is used. *Note Options Controlling C Dialect: C
  25848. Dialect Options.
  25849. For Objective-C dialects, the 'format-arg' attribute may refer to
  25850. an 'NSString' reference for compatibility with the 'format'
  25851. attribute above.
  25852. The target may also allow additional types in 'format-arg'
  25853. attributes. *Note Format Checks Specific to Particular Target
  25854. Machines: Target Format Checks.
  25855. 'gnu_inline'
  25856. This attribute should be used with a function that is also declared
  25857. with the 'inline' keyword. It directs GCC to treat the function as
  25858. if it were defined in gnu90 mode even when compiling in C99 or
  25859. gnu99 mode.
  25860. If the function is declared 'extern', then this definition of the
  25861. function is used only for inlining. In no case is the function
  25862. compiled as a standalone function, not even if you take its address
  25863. explicitly. Such an address becomes an external reference, as if
  25864. you had only declared the function, and had not defined it. This
  25865. has almost the effect of a macro. The way to use this is to put a
  25866. function definition in a header file with this attribute, and put
  25867. another copy of the function, without 'extern', in a library file.
  25868. The definition in the header file causes most calls to the function
  25869. to be inlined. If any uses of the function remain, they refer to
  25870. the single copy in the library. Note that the two definitions of
  25871. the functions need not be precisely the same, although if they do
  25872. not have the same effect your program may behave oddly.
  25873. In C, if the function is neither 'extern' nor 'static', then the
  25874. function is compiled as a standalone function, as well as being
  25875. inlined where possible.
  25876. This is how GCC traditionally handled functions declared 'inline'.
  25877. Since ISO C99 specifies a different semantics for 'inline', this
  25878. function attribute is provided as a transition measure and as a
  25879. useful feature in its own right. This attribute is available in
  25880. GCC 4.1.3 and later. It is available if either of the preprocessor
  25881. macros '__GNUC_GNU_INLINE__' or '__GNUC_STDC_INLINE__' are defined.
  25882. *Note An Inline Function is As Fast As a Macro: Inline.
  25883. In C++, this attribute does not depend on 'extern' in any way, but
  25884. it still requires the 'inline' keyword to enable its special
  25885. behavior.
  25886. 'hot'
  25887. The 'hot' attribute on a function is used to inform the compiler
  25888. that the function is a hot spot of the compiled program. The
  25889. function is optimized more aggressively and on many targets it is
  25890. placed into a special subsection of the text section so all hot
  25891. functions appear close together, improving locality.
  25892. When profile feedback is available, via '-fprofile-use', hot
  25893. functions are automatically detected and this attribute is ignored.
  25894. 'ifunc ("RESOLVER")'
  25895. The 'ifunc' attribute is used to mark a function as an indirect
  25896. function using the STT_GNU_IFUNC symbol type extension to the ELF
  25897. standard. This allows the resolution of the symbol value to be
  25898. determined dynamically at load time, and an optimized version of
  25899. the routine to be selected for the particular processor or other
  25900. system characteristics determined then. To use this attribute,
  25901. first define the implementation functions available, and a resolver
  25902. function that returns a pointer to the selected implementation
  25903. function. The implementation functions' declarations must match
  25904. the API of the function being implemented. The resolver should be
  25905. declared to be a function taking no arguments and returning a
  25906. pointer to a function of the same type as the implementation. For
  25907. example:
  25908. void *my_memcpy (void *dst, const void *src, size_t len)
  25909. {
  25910. ...
  25911. return dst;
  25912. }
  25913. static void * (*resolve_memcpy (void))(void *, const void *, size_t)
  25914. {
  25915. return my_memcpy; // we will just always select this routine
  25916. }
  25917. The exported header file declaring the function the user calls
  25918. would contain:
  25919. extern void *memcpy (void *, const void *, size_t);
  25920. allowing the user to call 'memcpy' as a regular function, unaware
  25921. of the actual implementation. Finally, the indirect function needs
  25922. to be defined in the same translation unit as the resolver
  25923. function:
  25924. void *memcpy (void *, const void *, size_t)
  25925. __attribute__ ((ifunc ("resolve_memcpy")));
  25926. In C++, the 'ifunc' attribute takes a string that is the mangled
  25927. name of the resolver function. A C++ resolver for a non-static
  25928. member function of class 'C' should be declared to return a pointer
  25929. to a non-member function taking pointer to 'C' as the first
  25930. argument, followed by the same arguments as of the implementation
  25931. function. G++ checks the signatures of the two functions and
  25932. issues a '-Wattribute-alias' warning for mismatches. To suppress a
  25933. warning for the necessary cast from a pointer to the implementation
  25934. member function to the type of the corresponding non-member
  25935. function use the '-Wno-pmf-conversions' option. For example:
  25936. class S
  25937. {
  25938. private:
  25939. int debug_impl (int);
  25940. int optimized_impl (int);
  25941. typedef int Func (S*, int);
  25942. static Func* resolver ();
  25943. public:
  25944. int interface (int);
  25945. };
  25946. int S::debug_impl (int) { /* ... */ }
  25947. int S::optimized_impl (int) { /* ... */ }
  25948. S::Func* S::resolver ()
  25949. {
  25950. int (S::*pimpl) (int)
  25951. = getenv ("DEBUG") ? &S::debug_impl : &S::optimized_impl;
  25952. // Cast triggers -Wno-pmf-conversions.
  25953. return reinterpret_cast<Func*>(pimpl);
  25954. }
  25955. int S::interface (int) __attribute__ ((ifunc ("_ZN1S8resolverEv")));
  25956. Indirect functions cannot be weak. Binutils version 2.20.1 or
  25957. higher and GNU C Library version 2.11.1 are required to use this
  25958. feature.
  25959. 'interrupt'
  25960. 'interrupt_handler'
  25961. Many GCC back ends support attributes to indicate that a function
  25962. is an interrupt handler, which tells the compiler to generate
  25963. function entry and exit sequences that differ from those from
  25964. regular functions. The exact syntax and behavior are
  25965. target-specific; refer to the following subsections for details.
  25966. 'leaf'
  25967. Calls to external functions with this attribute must return to the
  25968. current compilation unit only by return or by exception handling.
  25969. In particular, a leaf function is not allowed to invoke callback
  25970. functions passed to it from the current compilation unit, directly
  25971. call functions exported by the unit, or 'longjmp' into the unit.
  25972. Leaf functions might still call functions from other compilation
  25973. units and thus they are not necessarily leaf in the sense that they
  25974. contain no function calls at all.
  25975. The attribute is intended for library functions to improve dataflow
  25976. analysis. The compiler takes the hint that any data not escaping
  25977. the current compilation unit cannot be used or modified by the leaf
  25978. function. For example, the 'sin' function is a leaf function, but
  25979. 'qsort' is not.
  25980. Note that leaf functions might indirectly run a signal handler
  25981. defined in the current compilation unit that uses static variables.
  25982. Similarly, when lazy symbol resolution is in effect, leaf functions
  25983. might invoke indirect functions whose resolver function or
  25984. implementation function is defined in the current compilation unit
  25985. and uses static variables. There is no standard-compliant way to
  25986. write such a signal handler, resolver function, or implementation
  25987. function, and the best that you can do is to remove the 'leaf'
  25988. attribute or mark all such static variables 'volatile'. Lastly,
  25989. for ELF-based systems that support symbol interposition, care
  25990. should be taken that functions defined in the current compilation
  25991. unit do not unexpectedly interpose other symbols based on the
  25992. defined standards mode and defined feature test macros; otherwise
  25993. an inadvertent callback would be added.
  25994. The attribute has no effect on functions defined within the current
  25995. compilation unit. This is to allow easy merging of multiple
  25996. compilation units into one, for example, by using the link-time
  25997. optimization. For this reason the attribute is not allowed on
  25998. types to annotate indirect calls.
  25999. 'malloc'
  26000. This tells the compiler that a function is 'malloc'-like, i.e.,
  26001. that the pointer P returned by the function cannot alias any other
  26002. pointer valid when the function returns, and moreover no pointers
  26003. to valid objects occur in any storage addressed by P.
  26004. Using this attribute can improve optimization. Compiler predicts
  26005. that a function with the attribute returns non-null in most cases.
  26006. Functions like 'malloc' and 'calloc' have this property because
  26007. they return a pointer to uninitialized or zeroed-out storage.
  26008. However, functions like 'realloc' do not have this property, as
  26009. they can return a pointer to storage containing pointers.
  26010. 'no_icf'
  26011. This function attribute prevents a functions from being merged with
  26012. another semantically equivalent function.
  26013. 'no_instrument_function'
  26014. If any of '-finstrument-functions', '-p', or '-pg' are given,
  26015. profiling function calls are generated at entry and exit of most
  26016. user-compiled functions. Functions with this attribute are not so
  26017. instrumented.
  26018. 'no_profile_instrument_function'
  26019. The 'no_profile_instrument_function' attribute on functions is used
  26020. to inform the compiler that it should not process any profile
  26021. feedback based optimization code instrumentation.
  26022. 'no_reorder'
  26023. Do not reorder functions or variables marked 'no_reorder' against
  26024. each other or top level assembler statements the executable. The
  26025. actual order in the program will depend on the linker command line.
  26026. Static variables marked like this are also not removed. This has a
  26027. similar effect as the '-fno-toplevel-reorder' option, but only
  26028. applies to the marked symbols.
  26029. 'no_sanitize ("SANITIZE_OPTION")'
  26030. The 'no_sanitize' attribute on functions is used to inform the
  26031. compiler that it should not do sanitization of any option mentioned
  26032. in SANITIZE_OPTION. A list of values acceptable by the
  26033. '-fsanitize' option can be provided.
  26034. void __attribute__ ((no_sanitize ("alignment", "object-size")))
  26035. f () { /* Do something. */; }
  26036. void __attribute__ ((no_sanitize ("alignment,object-size")))
  26037. g () { /* Do something. */; }
  26038. 'no_sanitize_address'
  26039. 'no_address_safety_analysis'
  26040. The 'no_sanitize_address' attribute on functions is used to inform
  26041. the compiler that it should not instrument memory accesses in the
  26042. function when compiling with the '-fsanitize=address' option. The
  26043. 'no_address_safety_analysis' is a deprecated alias of the
  26044. 'no_sanitize_address' attribute, new code should use
  26045. 'no_sanitize_address'.
  26046. 'no_sanitize_thread'
  26047. The 'no_sanitize_thread' attribute on functions is used to inform
  26048. the compiler that it should not instrument memory accesses in the
  26049. function when compiling with the '-fsanitize=thread' option.
  26050. 'no_sanitize_undefined'
  26051. The 'no_sanitize_undefined' attribute on functions is used to
  26052. inform the compiler that it should not check for undefined behavior
  26053. in the function when compiling with the '-fsanitize=undefined'
  26054. option.
  26055. 'no_split_stack'
  26056. If '-fsplit-stack' is given, functions have a small prologue which
  26057. decides whether to split the stack. Functions with the
  26058. 'no_split_stack' attribute do not have that prologue, and thus may
  26059. run with only a small amount of stack space available.
  26060. 'no_stack_limit'
  26061. This attribute locally overrides the '-fstack-limit-register' and
  26062. '-fstack-limit-symbol' command-line options; it has the effect of
  26063. disabling stack limit checking in the function it applies to.
  26064. 'noclone'
  26065. This function attribute prevents a function from being considered
  26066. for cloning--a mechanism that produces specialized copies of
  26067. functions and which is (currently) performed by interprocedural
  26068. constant propagation.
  26069. 'noinline'
  26070. This function attribute prevents a function from being considered
  26071. for inlining. If the function does not have side effects, there
  26072. are optimizations other than inlining that cause function calls to
  26073. be optimized away, although the function call is live. To keep
  26074. such calls from being optimized away, put
  26075. asm ("");
  26076. (*note Extended Asm::) in the called function, to serve as a
  26077. special side effect.
  26078. 'noipa'
  26079. Disable interprocedural optimizations between the function with
  26080. this attribute and its callers, as if the body of the function is
  26081. not available when optimizing callers and the callers are
  26082. unavailable when optimizing the body. This attribute implies
  26083. 'noinline', 'noclone' and 'no_icf' attributes. However, this
  26084. attribute is not equivalent to a combination of other attributes,
  26085. because its purpose is to suppress existing and future
  26086. optimizations employing interprocedural analysis, including those
  26087. that do not have an attribute suitable for disabling them
  26088. individually. This attribute is supported mainly for the purpose
  26089. of testing the compiler.
  26090. 'nonnull'
  26091. 'nonnull (ARG-INDEX, ...)'
  26092. The 'nonnull' attribute may be applied to a function that takes at
  26093. least one argument of a pointer type. It indicates that the
  26094. referenced arguments must be non-null pointers. For instance, the
  26095. declaration:
  26096. extern void *
  26097. my_memcpy (void *dest, const void *src, size_t len)
  26098. __attribute__((nonnull (1, 2)));
  26099. causes the compiler to check that, in calls to 'my_memcpy',
  26100. arguments DEST and SRC are non-null. If the compiler determines
  26101. that a null pointer is passed in an argument slot marked as
  26102. non-null, and the '-Wnonnull' option is enabled, a warning is
  26103. issued. *Note Warning Options::. Unless disabled by the
  26104. '-fno-delete-null-pointer-checks' option the compiler may also
  26105. perform optimizations based on the knowledge that certain function
  26106. arguments cannot be null. In addition, the
  26107. '-fisolate-erroneous-paths-attribute' option can be specified to
  26108. have GCC transform calls with null arguments to non-null functions
  26109. into traps. *Note Optimize Options::.
  26110. If no ARG-INDEX is given to the 'nonnull' attribute, all pointer
  26111. arguments are marked as non-null. To illustrate, the following
  26112. declaration is equivalent to the previous example:
  26113. extern void *
  26114. my_memcpy (void *dest, const void *src, size_t len)
  26115. __attribute__((nonnull));
  26116. 'noplt'
  26117. The 'noplt' attribute is the counterpart to option '-fno-plt'.
  26118. Calls to functions marked with this attribute in
  26119. position-independent code do not use the PLT.
  26120. /* Externally defined function foo. */
  26121. int foo () __attribute__ ((noplt));
  26122. int
  26123. main (/* ... */)
  26124. {
  26125. /* ... */
  26126. foo ();
  26127. /* ... */
  26128. }
  26129. The 'noplt' attribute on function 'foo' tells the compiler to
  26130. assume that the function 'foo' is externally defined and that the
  26131. call to 'foo' must avoid the PLT in position-independent code.
  26132. In position-dependent code, a few targets also convert calls to
  26133. functions that are marked to not use the PLT to use the GOT
  26134. instead.
  26135. 'noreturn'
  26136. A few standard library functions, such as 'abort' and 'exit',
  26137. cannot return. GCC knows this automatically. Some programs define
  26138. their own functions that never return. You can declare them
  26139. 'noreturn' to tell the compiler this fact. For example,
  26140. void fatal () __attribute__ ((noreturn));
  26141. void
  26142. fatal (/* ... */)
  26143. {
  26144. /* ... */ /* Print error message. */ /* ... */
  26145. exit (1);
  26146. }
  26147. The 'noreturn' keyword tells the compiler to assume that 'fatal'
  26148. cannot return. It can then optimize without regard to what would
  26149. happen if 'fatal' ever did return. This makes slightly better
  26150. code. More importantly, it helps avoid spurious warnings of
  26151. uninitialized variables.
  26152. The 'noreturn' keyword does not affect the exceptional path when
  26153. that applies: a 'noreturn'-marked function may still return to the
  26154. caller by throwing an exception or calling 'longjmp'.
  26155. In order to preserve backtraces, GCC will never turn calls to
  26156. 'noreturn' functions into tail calls.
  26157. Do not assume that registers saved by the calling function are
  26158. restored before calling the 'noreturn' function.
  26159. It does not make sense for a 'noreturn' function to have a return
  26160. type other than 'void'.
  26161. 'nothrow'
  26162. The 'nothrow' attribute is used to inform the compiler that a
  26163. function cannot throw an exception. For example, most functions in
  26164. the standard C library can be guaranteed not to throw an exception
  26165. with the notable exceptions of 'qsort' and 'bsearch' that take
  26166. function pointer arguments.
  26167. 'optimize (LEVEL, ...)'
  26168. 'optimize (STRING, ...)'
  26169. The 'optimize' attribute is used to specify that a function is to
  26170. be compiled with different optimization options than specified on
  26171. the command line. Valid arguments are constant non-negative
  26172. integers and strings. Each numeric argument specifies an
  26173. optimization LEVEL. Each STRING argument consists of one or more
  26174. comma-separated substrings. Each substring that begins with the
  26175. letter 'O' refers to an optimization option such as '-O0' or '-Os'.
  26176. Other substrings are taken as suffixes to the '-f' prefix jointly
  26177. forming the name of an optimization option. *Note Optimize
  26178. Options::.
  26179. '#pragma GCC optimize' can be used to set optimization options for
  26180. more than one function. *Note Function Specific Option Pragmas::,
  26181. for details about the pragma.
  26182. Providing multiple strings as arguments separated by commas to
  26183. specify multiple options is equivalent to separating the option
  26184. suffixes with a comma (',') within a single string. Spaces are not
  26185. permitted within the strings.
  26186. Not every optimization option that starts with the -F prefix
  26187. specified by the attribute necessarily has an effect on the
  26188. function. The 'optimize' attribute should be used for debugging
  26189. purposes only. It is not suitable in production code.
  26190. 'patchable_function_entry'
  26191. In case the target's text segment can be made writable at run time
  26192. by any means, padding the function entry with a number of NOPs can
  26193. be used to provide a universal tool for instrumentation.
  26194. The 'patchable_function_entry' function attribute can be used to
  26195. change the number of NOPs to any desired value. The two-value
  26196. syntax is the same as for the command-line switch
  26197. '-fpatchable-function-entry=N,M', generating N NOPs, with the
  26198. function entry point before the Mth NOP instruction. M defaults to
  26199. 0 if omitted e.g. function entry point is before the first NOP.
  26200. If patchable function entries are enabled globally using the
  26201. command-line option '-fpatchable-function-entry=N,M', then you must
  26202. disable instrumentation on all functions that are part of the
  26203. instrumentation framework with the attribute
  26204. 'patchable_function_entry (0)' to prevent recursion.
  26205. 'pure'
  26206. Calls to functions that have no observable effects on the state of
  26207. the program other than to return a value may lend themselves to
  26208. optimizations such as common subexpression elimination. Declaring
  26209. such functions with the 'pure' attribute allows GCC to avoid
  26210. emitting some calls in repeated invocations of the function with
  26211. the same argument values.
  26212. The 'pure' attribute prohibits a function from modifying the state
  26213. of the program that is observable by means other than inspecting
  26214. the function's return value. However, functions declared with the
  26215. 'pure' attribute can safely read any non-volatile objects, and
  26216. modify the value of objects in a way that does not affect their
  26217. return value or the observable state of the program.
  26218. For example,
  26219. int hash (char *) __attribute__ ((pure));
  26220. tells GCC that subsequent calls to the function 'hash' with the
  26221. same string can be replaced by the result of the first call
  26222. provided the state of the program observable by 'hash', including
  26223. the contents of the array itself, does not change in between. Even
  26224. though 'hash' takes a non-const pointer argument it must not modify
  26225. the array it points to, or any other object whose value the rest of
  26226. the program may depend on. However, the caller may safely change
  26227. the contents of the array between successive calls to the function
  26228. (doing so disables the optimization). The restriction also applies
  26229. to member objects referenced by the 'this' pointer in C++
  26230. non-static member functions.
  26231. Some common examples of pure functions are 'strlen' or 'memcmp'.
  26232. Interesting non-pure functions are functions with infinite loops or
  26233. those depending on volatile memory or other system resource, that
  26234. may change between consecutive calls (such as the standard C 'feof'
  26235. function in a multithreading environment).
  26236. The 'pure' attribute imposes similar but looser restrictions on a
  26237. function's definition than the 'const' attribute: 'pure' allows the
  26238. function to read any non-volatile memory, even if it changes in
  26239. between successive invocations of the function. Declaring the same
  26240. function with both the 'pure' and the 'const' attribute is
  26241. diagnosed. Because a pure function cannot have any observable side
  26242. effects it does not make sense for such a function to return
  26243. 'void'. Declaring such a function is diagnosed.
  26244. 'returns_nonnull'
  26245. The 'returns_nonnull' attribute specifies that the function return
  26246. value should be a non-null pointer. For instance, the declaration:
  26247. extern void *
  26248. mymalloc (size_t len) __attribute__((returns_nonnull));
  26249. lets the compiler optimize callers based on the knowledge that the
  26250. return value will never be null.
  26251. 'returns_twice'
  26252. The 'returns_twice' attribute tells the compiler that a function
  26253. may return more than one time. The compiler ensures that all
  26254. registers are dead before calling such a function and emits a
  26255. warning about the variables that may be clobbered after the second
  26256. return from the function. Examples of such functions are 'setjmp'
  26257. and 'vfork'. The 'longjmp'-like counterpart of such function, if
  26258. any, might need to be marked with the 'noreturn' attribute.
  26259. 'section ("SECTION-NAME")'
  26260. Normally, the compiler places the code it generates in the 'text'
  26261. section. Sometimes, however, you need additional sections, or you
  26262. need certain particular functions to appear in special sections.
  26263. The 'section' attribute specifies that a function lives in a
  26264. particular section. For example, the declaration:
  26265. extern void foobar (void) __attribute__ ((section ("bar")));
  26266. puts the function 'foobar' in the 'bar' section.
  26267. Some file formats do not support arbitrary sections so the
  26268. 'section' attribute is not available on all platforms. If you need
  26269. to map the entire contents of a module to a particular section,
  26270. consider using the facilities of the linker instead.
  26271. 'sentinel'
  26272. 'sentinel (POSITION)'
  26273. This function attribute indicates that an argument in a call to the
  26274. function is expected to be an explicit 'NULL'. The attribute is
  26275. only valid on variadic functions. By default, the sentinel is
  26276. expected to be the last argument of the function call. If the
  26277. optional POSITION argument is specified to the attribute, the
  26278. sentinel must be located at POSITION counting backwards from the
  26279. end of the argument list.
  26280. __attribute__ ((sentinel))
  26281. is equivalent to
  26282. __attribute__ ((sentinel(0)))
  26283. The attribute is automatically set with a position of 0 for the
  26284. built-in functions 'execl' and 'execlp'. The built-in function
  26285. 'execle' has the attribute set with a position of 1.
  26286. A valid 'NULL' in this context is defined as zero with any object
  26287. pointer type. If your system defines the 'NULL' macro with an
  26288. integer type then you need to add an explicit cast. During
  26289. installation GCC replaces the system '<stddef.h>' header with a
  26290. copy that redefines NULL appropriately.
  26291. The warnings for missing or incorrect sentinels are enabled with
  26292. '-Wformat'.
  26293. 'simd'
  26294. 'simd("MASK")'
  26295. This attribute enables creation of one or more function versions
  26296. that can process multiple arguments using SIMD instructions from a
  26297. single invocation. Specifying this attribute allows compiler to
  26298. assume that such versions are available at link time (provided in
  26299. the same or another translation unit). Generated versions are
  26300. target-dependent and described in the corresponding Vector ABI
  26301. document. For x86_64 target this document can be found
  26302. here (https://sourceware.org/glibc/wiki/libmvec?action=AttachFile&do=view&target=VectorABI.txt).
  26303. The optional argument MASK may have the value 'notinbranch' or
  26304. 'inbranch', and instructs the compiler to generate non-masked or
  26305. masked clones correspondingly. By default, all clones are
  26306. generated.
  26307. If the attribute is specified and '#pragma omp declare simd' is
  26308. present on a declaration and the '-fopenmp' or '-fopenmp-simd'
  26309. switch is specified, then the attribute is ignored.
  26310. 'stack_protect'
  26311. This attribute adds stack protection code to the function if flags
  26312. '-fstack-protector', '-fstack-protector-strong' or
  26313. '-fstack-protector-explicit' are set.
  26314. 'target (STRING, ...)'
  26315. Multiple target back ends implement the 'target' attribute to
  26316. specify that a function is to be compiled with different target
  26317. options than specified on the command line. One or more strings
  26318. can be provided as arguments. Each string consists of one or more
  26319. comma-separated suffixes to the '-m' prefix jointly forming the
  26320. name of a machine-dependent option. *Note Machine-Dependent
  26321. Options: Submodel Options.
  26322. The 'target' attribute can be used for instance to have a function
  26323. compiled with a different ISA (instruction set architecture) than
  26324. the default. '#pragma GCC target' can be used to specify
  26325. target-specific options for more than one function. *Note Function
  26326. Specific Option Pragmas::, for details about the pragma.
  26327. For instance, on an x86, you could declare one function with the
  26328. 'target("sse4.1,arch=core2")' attribute and another with
  26329. 'target("sse4a,arch=amdfam10")'. This is equivalent to compiling
  26330. the first function with '-msse4.1' and '-march=core2' options, and
  26331. the second function with '-msse4a' and '-march=amdfam10' options.
  26332. It is up to you to make sure that a function is only invoked on a
  26333. machine that supports the particular ISA it is compiled for (for
  26334. example by using 'cpuid' on x86 to determine what feature bits and
  26335. architecture family are used).
  26336. int core2_func (void) __attribute__ ((__target__ ("arch=core2")));
  26337. int sse3_func (void) __attribute__ ((__target__ ("sse3")));
  26338. Providing multiple strings as arguments separated by commas to
  26339. specify multiple options is equivalent to separating the option
  26340. suffixes with a comma (',') within a single string. Spaces are not
  26341. permitted within the strings.
  26342. The options supported are specific to each target; refer to *note
  26343. x86 Function Attributes::, *note PowerPC Function Attributes::,
  26344. *note ARM Function Attributes::, *note AArch64 Function
  26345. Attributes::, *note Nios II Function Attributes::, and *note S/390
  26346. Function Attributes:: for details.
  26347. 'symver ("NAME2@NODENAME")'
  26348. On ELF targets this attribute creates a symbol version. The NAME2
  26349. part of the parameter is the actual name of the symbol by which it
  26350. will be externally referenced. The 'nodename' portion should be
  26351. the name of a node specified in the version script supplied to the
  26352. linker when building a shared library. Versioned symbol must be
  26353. defined and must be exported with default visibility.
  26354. __attribute__ ((__symver__ ("foo@VERS_1"))) int
  26355. foo_v1 (void)
  26356. {
  26357. }
  26358. Will produce a '.symver foo_v1, foo@VERS_1' directive in the
  26359. assembler output.
  26360. It's an error to define multiple version of a given symbol. In
  26361. such case an alias can be used.
  26362. __attribute__ ((__symver__ ("foo@VERS_2")))
  26363. __attribute__ ((alias ("foo_v1")))
  26364. int symver_foo_v1 (void);
  26365. This example creates an alias of 'foo_v1' with symbol name
  26366. 'symver_foo_v1' which will be version 'VERS_2' of 'foo'.
  26367. Finally if the parameter is '"NAME2@@NODENAME"' then in addition to
  26368. creating a symbol version (as if '"NAME2@NODENAME"' was used) the
  26369. version will be also used to resolve NAME2 by the linker.
  26370. 'target_clones (OPTIONS)'
  26371. The 'target_clones' attribute is used to specify that a function be
  26372. cloned into multiple versions compiled with different target
  26373. options than specified on the command line. The supported options
  26374. and restrictions are the same as for 'target' attribute.
  26375. For instance, on an x86, you could compile a function with
  26376. 'target_clones("sse4.1,avx")'. GCC creates two function clones,
  26377. one compiled with '-msse4.1' and another with '-mavx'.
  26378. On a PowerPC, you can compile a function with
  26379. 'target_clones("cpu=power9,default")'. GCC will create two
  26380. function clones, one compiled with '-mcpu=power9' and another with
  26381. the default options. GCC must be configured to use GLIBC 2.23 or
  26382. newer in order to use the 'target_clones' attribute.
  26383. It also creates a resolver function (see the 'ifunc' attribute
  26384. above) that dynamically selects a clone suitable for current
  26385. architecture. The resolver is created only if there is a usage of
  26386. a function with 'target_clones' attribute.
  26387. Note that any subsequent call of a function without 'target_clone'
  26388. from a 'target_clone' caller will not lead to copying (target
  26389. clone) of the called function. If you want to enforce such
  26390. behaviour, we recommend declaring the calling function with the
  26391. 'flatten' attribute?
  26392. 'unused'
  26393. This attribute, attached to a function, means that the function is
  26394. meant to be possibly unused. GCC does not produce a warning for
  26395. this function.
  26396. 'used'
  26397. This attribute, attached to a function, means that code must be
  26398. emitted for the function even if it appears that the function is
  26399. not referenced. This is useful, for example, when the function is
  26400. referenced only in inline assembly.
  26401. When applied to a member function of a C++ class template, the
  26402. attribute also means that the function is instantiated if the class
  26403. itself is instantiated.
  26404. 'visibility ("VISIBILITY_TYPE")'
  26405. This attribute affects the linkage of the declaration to which it
  26406. is attached. It can be applied to variables (*note Common Variable
  26407. Attributes::) and types (*note Common Type Attributes::) as well as
  26408. functions.
  26409. There are four supported VISIBILITY_TYPE values: default, hidden,
  26410. protected or internal visibility.
  26411. void __attribute__ ((visibility ("protected")))
  26412. f () { /* Do something. */; }
  26413. int i __attribute__ ((visibility ("hidden")));
  26414. The possible values of VISIBILITY_TYPE correspond to the visibility
  26415. settings in the ELF gABI.
  26416. 'default'
  26417. Default visibility is the normal case for the object file
  26418. format. This value is available for the visibility attribute
  26419. to override other options that may change the assumed
  26420. visibility of entities.
  26421. On ELF, default visibility means that the declaration is
  26422. visible to other modules and, in shared libraries, means that
  26423. the declared entity may be overridden.
  26424. On Darwin, default visibility means that the declaration is
  26425. visible to other modules.
  26426. Default visibility corresponds to "external linkage" in the
  26427. language.
  26428. 'hidden'
  26429. Hidden visibility indicates that the entity declared has a new
  26430. form of linkage, which we call "hidden linkage". Two
  26431. declarations of an object with hidden linkage refer to the
  26432. same object if they are in the same shared object.
  26433. 'internal'
  26434. Internal visibility is like hidden visibility, but with
  26435. additional processor specific semantics. Unless otherwise
  26436. specified by the psABI, GCC defines internal visibility to
  26437. mean that a function is _never_ called from another module.
  26438. Compare this with hidden functions which, while they cannot be
  26439. referenced directly by other modules, can be referenced
  26440. indirectly via function pointers. By indicating that a
  26441. function cannot be called from outside the module, GCC may for
  26442. instance omit the load of a PIC register since it is known
  26443. that the calling function loaded the correct value.
  26444. 'protected'
  26445. Protected visibility is like default visibility except that it
  26446. indicates that references within the defining module bind to
  26447. the definition in that module. That is, the declared entity
  26448. cannot be overridden by another module.
  26449. All visibilities are supported on many, but not all, ELF targets
  26450. (supported when the assembler supports the '.visibility'
  26451. pseudo-op). Default visibility is supported everywhere. Hidden
  26452. visibility is supported on Darwin targets.
  26453. The visibility attribute should be applied only to declarations
  26454. that would otherwise have external linkage. The attribute should
  26455. be applied consistently, so that the same entity should not be
  26456. declared with different settings of the attribute.
  26457. In C++, the visibility attribute applies to types as well as
  26458. functions and objects, because in C++ types have linkage. A class
  26459. must not have greater visibility than its non-static data member
  26460. types and bases, and class members default to the visibility of
  26461. their class. Also, a declaration without explicit visibility is
  26462. limited to the visibility of its type.
  26463. In C++, you can mark member functions and static member variables
  26464. of a class with the visibility attribute. This is useful if you
  26465. know a particular method or static member variable should only be
  26466. used from one shared object; then you can mark it hidden while the
  26467. rest of the class has default visibility. Care must be taken to
  26468. avoid breaking the One Definition Rule; for example, it is usually
  26469. not useful to mark an inline method as hidden without marking the
  26470. whole class as hidden.
  26471. A C++ namespace declaration can also have the visibility attribute.
  26472. namespace nspace1 __attribute__ ((visibility ("protected")))
  26473. { /* Do something. */; }
  26474. This attribute applies only to the particular namespace body, not
  26475. to other definitions of the same namespace; it is equivalent to
  26476. using '#pragma GCC visibility' before and after the namespace
  26477. definition (*note Visibility Pragmas::).
  26478. In C++, if a template argument has limited visibility, this
  26479. restriction is implicitly propagated to the template instantiation.
  26480. Otherwise, template instantiations and specializations default to
  26481. the visibility of their template.
  26482. If both the template and enclosing class have explicit visibility,
  26483. the visibility from the template is used.
  26484. 'warn_unused_result'
  26485. The 'warn_unused_result' attribute causes a warning to be emitted
  26486. if a caller of the function with this attribute does not use its
  26487. return value. This is useful for functions where not checking the
  26488. result is either a security problem or always a bug, such as
  26489. 'realloc'.
  26490. int fn () __attribute__ ((warn_unused_result));
  26491. int foo ()
  26492. {
  26493. if (fn () < 0) return -1;
  26494. fn ();
  26495. return 0;
  26496. }
  26497. results in warning on line 5.
  26498. 'weak'
  26499. The 'weak' attribute causes a declaration of an external symbol to
  26500. be emitted as a weak symbol rather than a global. This is
  26501. primarily useful in defining library functions that can be
  26502. overridden in user code, though it can also be used with
  26503. non-function declarations. The overriding symbol must have the
  26504. same type as the weak symbol. In addition, if it designates a
  26505. variable it must also have the same size and alignment as the weak
  26506. symbol. Weak symbols are supported for ELF targets, and also for
  26507. a.out targets when using the GNU assembler and linker.
  26508. 'weakref'
  26509. 'weakref ("TARGET")'
  26510. The 'weakref' attribute marks a declaration as a weak reference.
  26511. Without arguments, it should be accompanied by an 'alias' attribute
  26512. naming the target symbol. Alternatively, TARGET may be given as an
  26513. argument to 'weakref' itself, naming the target definition of the
  26514. alias. The TARGET must have the same type as the declaration. In
  26515. addition, if it designates a variable it must also have the same
  26516. size and alignment as the declaration. In either form of the
  26517. declaration 'weakref' implicitly marks the declared symbol as
  26518. 'weak'. Without a TARGET given as an argument to 'weakref' or to
  26519. 'alias', 'weakref' is equivalent to 'weak' (in that case the
  26520. declaration may be 'extern').
  26521. /* Given the declaration: */
  26522. extern int y (void);
  26523. /* the following... */
  26524. static int x (void) __attribute__ ((weakref ("y")));
  26525. /* is equivalent to... */
  26526. static int x (void) __attribute__ ((weakref, alias ("y")));
  26527. /* or, alternatively, to... */
  26528. static int x (void) __attribute__ ((weakref));
  26529. static int x (void) __attribute__ ((alias ("y")));
  26530. A weak reference is an alias that does not by itself require a
  26531. definition to be given for the target symbol. If the target symbol
  26532. is only referenced through weak references, then it becomes a
  26533. 'weak' undefined symbol. If it is directly referenced, however,
  26534. then such strong references prevail, and a definition is required
  26535. for the symbol, not necessarily in the same translation unit.
  26536. The effect is equivalent to moving all references to the alias to a
  26537. separate translation unit, renaming the alias to the aliased
  26538. symbol, declaring it as weak, compiling the two separate
  26539. translation units and performing a link with relocatable output
  26540. (i.e. 'ld -r') on them.
  26541. A declaration to which 'weakref' is attached and that is associated
  26542. with a named 'target' must be 'static'.
  26543. 
  26544. File: gcc.info, Node: AArch64 Function Attributes, Next: AMD GCN Function Attributes, Prev: Common Function Attributes, Up: Function Attributes
  26545. 6.33.2 AArch64 Function Attributes
  26546. ----------------------------------
  26547. The following target-specific function attributes are available for the
  26548. AArch64 target. For the most part, these options mirror the behavior of
  26549. similar command-line options (*note AArch64 Options::), but on a
  26550. per-function basis.
  26551. 'general-regs-only'
  26552. Indicates that no floating-point or Advanced SIMD registers should
  26553. be used when generating code for this function. If the function
  26554. explicitly uses floating-point code, then the compiler gives an
  26555. error. This is the same behavior as that of the command-line
  26556. option '-mgeneral-regs-only'.
  26557. 'fix-cortex-a53-835769'
  26558. Indicates that the workaround for the Cortex-A53 erratum 835769
  26559. should be applied to this function. To explicitly disable the
  26560. workaround for this function specify the negated form:
  26561. 'no-fix-cortex-a53-835769'. This corresponds to the behavior of
  26562. the command line options '-mfix-cortex-a53-835769' and
  26563. '-mno-fix-cortex-a53-835769'.
  26564. 'cmodel='
  26565. Indicates that code should be generated for a particular code model
  26566. for this function. The behavior and permissible arguments are the
  26567. same as for the command line option '-mcmodel='.
  26568. 'strict-align'
  26569. 'no-strict-align'
  26570. 'strict-align' indicates that the compiler should not assume that
  26571. unaligned memory references are handled by the system. To allow
  26572. the compiler to assume that aligned memory references are handled
  26573. by the system, the inverse attribute 'no-strict-align' can be
  26574. specified. The behavior is same as for the command-line option
  26575. '-mstrict-align' and '-mno-strict-align'.
  26576. 'omit-leaf-frame-pointer'
  26577. Indicates that the frame pointer should be omitted for a leaf
  26578. function call. To keep the frame pointer, the inverse attribute
  26579. 'no-omit-leaf-frame-pointer' can be specified. These attributes
  26580. have the same behavior as the command-line options
  26581. '-momit-leaf-frame-pointer' and '-mno-omit-leaf-frame-pointer'.
  26582. 'tls-dialect='
  26583. Specifies the TLS dialect to use for this function. The behavior
  26584. and permissible arguments are the same as for the command-line
  26585. option '-mtls-dialect='.
  26586. 'arch='
  26587. Specifies the architecture version and architectural extensions to
  26588. use for this function. The behavior and permissible arguments are
  26589. the same as for the '-march=' command-line option.
  26590. 'tune='
  26591. Specifies the core for which to tune the performance of this
  26592. function. The behavior and permissible arguments are the same as
  26593. for the '-mtune=' command-line option.
  26594. 'cpu='
  26595. Specifies the core for which to tune the performance of this
  26596. function and also whose architectural features to use. The
  26597. behavior and valid arguments are the same as for the '-mcpu='
  26598. command-line option.
  26599. 'sign-return-address'
  26600. Select the function scope on which return address signing will be
  26601. applied. The behavior and permissible arguments are the same as
  26602. for the command-line option '-msign-return-address='. The default
  26603. value is 'none'. This attribute is deprecated. The
  26604. 'branch-protection' attribute should be used instead.
  26605. 'branch-protection'
  26606. Select the function scope on which branch protection will be
  26607. applied. The behavior and permissible arguments are the same as
  26608. for the command-line option '-mbranch-protection='. The default
  26609. value is 'none'.
  26610. 'outline-atomics'
  26611. Enable or disable calls to out-of-line helpers to implement atomic
  26612. operations. This corresponds to the behavior of the command line
  26613. options '-moutline-atomics' and '-mno-outline-atomics'.
  26614. The above target attributes can be specified as follows:
  26615. __attribute__((target("ATTR-STRING")))
  26616. int
  26617. f (int a)
  26618. {
  26619. return a + 5;
  26620. }
  26621. where 'ATTR-STRING' is one of the attribute strings specified above.
  26622. Additionally, the architectural extension string may be specified on
  26623. its own. This can be used to turn on and off particular architectural
  26624. extensions without having to specify a particular architecture version
  26625. or core. Example:
  26626. __attribute__((target("+crc+nocrypto")))
  26627. int
  26628. foo (int a)
  26629. {
  26630. return a + 5;
  26631. }
  26632. In this example 'target("+crc+nocrypto")' enables the 'crc' extension
  26633. and disables the 'crypto' extension for the function 'foo' without
  26634. modifying an existing '-march=' or '-mcpu' option.
  26635. Multiple target function attributes can be specified by separating them
  26636. with a comma. For example:
  26637. __attribute__((target("arch=armv8-a+crc+crypto,tune=cortex-a53")))
  26638. int
  26639. foo (int a)
  26640. {
  26641. return a + 5;
  26642. }
  26643. is valid and compiles function 'foo' for ARMv8-A with 'crc' and
  26644. 'crypto' extensions and tunes it for 'cortex-a53'.
  26645. 6.33.2.1 Inlining rules
  26646. .......................
  26647. Specifying target attributes on individual functions or performing
  26648. link-time optimization across translation units compiled with different
  26649. target options can affect function inlining rules:
  26650. In particular, a caller function can inline a callee function only if
  26651. the architectural features available to the callee are a subset of the
  26652. features available to the caller. For example: A function 'foo'
  26653. compiled with '-march=armv8-a+crc', or tagged with the equivalent
  26654. 'arch=armv8-a+crc' attribute, can inline a function 'bar' compiled with
  26655. '-march=armv8-a+nocrc' because the all the architectural features that
  26656. function 'bar' requires are available to function 'foo'. Conversely,
  26657. function 'bar' cannot inline function 'foo'.
  26658. Additionally inlining a function compiled with '-mstrict-align' into a
  26659. function compiled without '-mstrict-align' is not allowed. However,
  26660. inlining a function compiled without '-mstrict-align' into a function
  26661. compiled with '-mstrict-align' is allowed.
  26662. Note that CPU tuning options and attributes such as the '-mcpu=',
  26663. '-mtune=' do not inhibit inlining unless the CPU specified by the
  26664. '-mcpu=' option or the 'cpu=' attribute conflicts with the architectural
  26665. feature rules specified above.
  26666. 
  26667. File: gcc.info, Node: AMD GCN Function Attributes, Next: ARC Function Attributes, Prev: AArch64 Function Attributes, Up: Function Attributes
  26668. 6.33.3 AMD GCN Function Attributes
  26669. ----------------------------------
  26670. These function attributes are supported by the AMD GCN back end:
  26671. 'amdgpu_hsa_kernel'
  26672. This attribute indicates that the corresponding function should be
  26673. compiled as a kernel function, that is an entry point that can be
  26674. invoked from the host via the HSA runtime library. By default
  26675. functions are only callable only from other GCN functions.
  26676. This attribute is implicitly applied to any function named 'main',
  26677. using default parameters.
  26678. Kernel functions may return an integer value, which will be written
  26679. to a conventional place within the HSA "kernargs" region.
  26680. The attribute parameters configure what values are passed into the
  26681. kernel function by the GPU drivers, via the initial register state.
  26682. Some values are used by the compiler, and therefore forced on.
  26683. Enabling other options may break assumptions in the compiler and/or
  26684. run-time libraries.
  26685. 'private_segment_buffer'
  26686. Set 'enable_sgpr_private_segment_buffer' flag. Always on
  26687. (required to locate the stack).
  26688. 'dispatch_ptr'
  26689. Set 'enable_sgpr_dispatch_ptr' flag. Always on (required to
  26690. locate the launch dimensions).
  26691. 'queue_ptr'
  26692. Set 'enable_sgpr_queue_ptr' flag. Always on (required to
  26693. convert address spaces).
  26694. 'kernarg_segment_ptr'
  26695. Set 'enable_sgpr_kernarg_segment_ptr' flag. Always on
  26696. (required to locate the kernel arguments, "kernargs").
  26697. 'dispatch_id'
  26698. Set 'enable_sgpr_dispatch_id' flag.
  26699. 'flat_scratch_init'
  26700. Set 'enable_sgpr_flat_scratch_init' flag.
  26701. 'private_segment_size'
  26702. Set 'enable_sgpr_private_segment_size' flag.
  26703. 'grid_workgroup_count_X'
  26704. Set 'enable_sgpr_grid_workgroup_count_x' flag. Always on
  26705. (required to use OpenACC/OpenMP).
  26706. 'grid_workgroup_count_Y'
  26707. Set 'enable_sgpr_grid_workgroup_count_y' flag.
  26708. 'grid_workgroup_count_Z'
  26709. Set 'enable_sgpr_grid_workgroup_count_z' flag.
  26710. 'workgroup_id_X'
  26711. Set 'enable_sgpr_workgroup_id_x' flag.
  26712. 'workgroup_id_Y'
  26713. Set 'enable_sgpr_workgroup_id_y' flag.
  26714. 'workgroup_id_Z'
  26715. Set 'enable_sgpr_workgroup_id_z' flag.
  26716. 'workgroup_info'
  26717. Set 'enable_sgpr_workgroup_info' flag.
  26718. 'private_segment_wave_offset'
  26719. Set 'enable_sgpr_private_segment_wave_byte_offset' flag.
  26720. Always on (required to locate the stack).
  26721. 'work_item_id_X'
  26722. Set 'enable_vgpr_workitem_id' parameter. Always on (can't be
  26723. disabled).
  26724. 'work_item_id_Y'
  26725. Set 'enable_vgpr_workitem_id' parameter. Always on (required
  26726. to enable vectorization.)
  26727. 'work_item_id_Z'
  26728. Set 'enable_vgpr_workitem_id' parameter. Always on (required
  26729. to use OpenACC/OpenMP).
  26730. 
  26731. File: gcc.info, Node: ARC Function Attributes, Next: ARM Function Attributes, Prev: AMD GCN Function Attributes, Up: Function Attributes
  26732. 6.33.4 ARC Function Attributes
  26733. ------------------------------
  26734. These function attributes are supported by the ARC back end:
  26735. 'interrupt'
  26736. Use this attribute to indicate that the specified function is an
  26737. interrupt handler. The compiler generates function entry and exit
  26738. sequences suitable for use in an interrupt handler when this
  26739. attribute is present.
  26740. On the ARC, you must specify the kind of interrupt to be handled in
  26741. a parameter to the interrupt attribute like this:
  26742. void f () __attribute__ ((interrupt ("ilink1")));
  26743. Permissible values for this parameter are: 'ilink1' and 'ilink2'
  26744. for ARCv1 architecture, and 'ilink' and 'firq' for ARCv2
  26745. architecture.
  26746. 'long_call'
  26747. 'medium_call'
  26748. 'short_call'
  26749. These attributes specify how a particular function is called.
  26750. These attributes override the '-mlong-calls' and '-mmedium-calls'
  26751. (*note ARC Options::) command-line switches and '#pragma
  26752. long_calls' settings.
  26753. For ARC, a function marked with the 'long_call' attribute is always
  26754. called using register-indirect jump-and-link instructions, thereby
  26755. enabling the called function to be placed anywhere within the
  26756. 32-bit address space. A function marked with the 'medium_call'
  26757. attribute will always be close enough to be called with an
  26758. unconditional branch-and-link instruction, which has a 25-bit
  26759. offset from the call site. A function marked with the 'short_call'
  26760. attribute will always be close enough to be called with a
  26761. conditional branch-and-link instruction, which has a 21-bit offset
  26762. from the call site.
  26763. 'jli_always'
  26764. Forces a particular function to be called using 'jli' instruction.
  26765. The 'jli' instruction makes use of a table stored into '.jlitab'
  26766. section, which holds the location of the functions which are
  26767. addressed using this instruction.
  26768. 'jli_fixed'
  26769. Identical like the above one, but the location of the function in
  26770. the 'jli' table is known and given as an attribute parameter.
  26771. 'secure_call'
  26772. This attribute allows one to mark secure-code functions that are
  26773. callable from normal mode. The location of the secure call
  26774. function into the 'sjli' table needs to be passed as argument.
  26775. 'naked'
  26776. This attribute allows the compiler to construct the requisite
  26777. function declaration, while allowing the body of the function to be
  26778. assembly code. The specified function will not have
  26779. prologue/epilogue sequences generated by the compiler. Only basic
  26780. 'asm' statements can safely be included in naked functions (*note
  26781. Basic Asm::). While using extended 'asm' or a mixture of basic
  26782. 'asm' and C code may appear to work, they cannot be depended upon
  26783. to work reliably and are not supported.
  26784. 
  26785. File: gcc.info, Node: ARM Function Attributes, Next: AVR Function Attributes, Prev: ARC Function Attributes, Up: Function Attributes
  26786. 6.33.5 ARM Function Attributes
  26787. ------------------------------
  26788. These function attributes are supported for ARM targets:
  26789. 'general-regs-only'
  26790. Indicates that no floating-point or Advanced SIMD registers should
  26791. be used when generating code for this function. If the function
  26792. explicitly uses floating-point code, then the compiler gives an
  26793. error. This is the same behavior as that of the command-line
  26794. option '-mgeneral-regs-only'.
  26795. 'interrupt'
  26796. Use this attribute to indicate that the specified function is an
  26797. interrupt handler. The compiler generates function entry and exit
  26798. sequences suitable for use in an interrupt handler when this
  26799. attribute is present.
  26800. You can specify the kind of interrupt to be handled by adding an
  26801. optional parameter to the interrupt attribute like this:
  26802. void f () __attribute__ ((interrupt ("IRQ")));
  26803. Permissible values for this parameter are: 'IRQ', 'FIQ', 'SWI',
  26804. 'ABORT' and 'UNDEF'.
  26805. On ARMv7-M the interrupt type is ignored, and the attribute means
  26806. the function may be called with a word-aligned stack pointer.
  26807. 'isr'
  26808. Use this attribute on ARM to write Interrupt Service Routines.
  26809. This is an alias to the 'interrupt' attribute above.
  26810. 'long_call'
  26811. 'short_call'
  26812. These attributes specify how a particular function is called.
  26813. These attributes override the '-mlong-calls' (*note ARM Options::)
  26814. command-line switch and '#pragma long_calls' settings. For ARM,
  26815. the 'long_call' attribute indicates that the function might be far
  26816. away from the call site and require a different (more expensive)
  26817. calling sequence. The 'short_call' attribute always places the
  26818. offset to the function from the call site into the 'BL' instruction
  26819. directly.
  26820. 'naked'
  26821. This attribute allows the compiler to construct the requisite
  26822. function declaration, while allowing the body of the function to be
  26823. assembly code. The specified function will not have
  26824. prologue/epilogue sequences generated by the compiler. Only basic
  26825. 'asm' statements can safely be included in naked functions (*note
  26826. Basic Asm::). While using extended 'asm' or a mixture of basic
  26827. 'asm' and C code may appear to work, they cannot be depended upon
  26828. to work reliably and are not supported.
  26829. 'pcs'
  26830. The 'pcs' attribute can be used to control the calling convention
  26831. used for a function on ARM. The attribute takes an argument that
  26832. specifies the calling convention to use.
  26833. When compiling using the AAPCS ABI (or a variant of it) then valid
  26834. values for the argument are '"aapcs"' and '"aapcs-vfp"'. In order
  26835. to use a variant other than '"aapcs"' then the compiler must be
  26836. permitted to use the appropriate co-processor registers (i.e., the
  26837. VFP registers must be available in order to use '"aapcs-vfp"').
  26838. For example,
  26839. /* Argument passed in r0, and result returned in r0+r1. */
  26840. double f2d (float) __attribute__((pcs("aapcs")));
  26841. Variadic functions always use the '"aapcs"' calling convention and
  26842. the compiler rejects attempts to specify an alternative.
  26843. 'target (OPTIONS)'
  26844. As discussed in *note Common Function Attributes::, this attribute
  26845. allows specification of target-specific compilation options.
  26846. On ARM, the following options are allowed:
  26847. 'thumb'
  26848. Force code generation in the Thumb (T16/T32) ISA, depending on
  26849. the architecture level.
  26850. 'arm'
  26851. Force code generation in the ARM (A32) ISA.
  26852. Functions from different modes can be inlined in the caller's
  26853. mode.
  26854. 'fpu='
  26855. Specifies the fpu for which to tune the performance of this
  26856. function. The behavior and permissible arguments are the same
  26857. as for the '-mfpu=' command-line option.
  26858. 'arch='
  26859. Specifies the architecture version and architectural
  26860. extensions to use for this function. The behavior and
  26861. permissible arguments are the same as for the '-march='
  26862. command-line option.
  26863. The above target attributes can be specified as follows:
  26864. __attribute__((target("arch=armv8-a+crc")))
  26865. int
  26866. f (int a)
  26867. {
  26868. return a + 5;
  26869. }
  26870. Additionally, the architectural extension string may be
  26871. specified on its own. This can be used to turn on and off
  26872. particular architectural extensions without having to specify
  26873. a particular architecture version or core. Example:
  26874. __attribute__((target("+crc+nocrypto")))
  26875. int
  26876. foo (int a)
  26877. {
  26878. return a + 5;
  26879. }
  26880. In this example 'target("+crc+nocrypto")' enables the 'crc'
  26881. extension and disables the 'crypto' extension for the function
  26882. 'foo' without modifying an existing '-march=' or '-mcpu'
  26883. option.
  26884. 
  26885. File: gcc.info, Node: AVR Function Attributes, Next: Blackfin Function Attributes, Prev: ARM Function Attributes, Up: Function Attributes
  26886. 6.33.6 AVR Function Attributes
  26887. ------------------------------
  26888. These function attributes are supported by the AVR back end:
  26889. 'interrupt'
  26890. Use this attribute to indicate that the specified function is an
  26891. interrupt handler. The compiler generates function entry and exit
  26892. sequences suitable for use in an interrupt handler when this
  26893. attribute is present.
  26894. On the AVR, the hardware globally disables interrupts when an
  26895. interrupt is executed. The first instruction of an interrupt
  26896. handler declared with this attribute is a 'SEI' instruction to
  26897. re-enable interrupts. See also the 'signal' function attribute
  26898. that does not insert a 'SEI' instruction. If both 'signal' and
  26899. 'interrupt' are specified for the same function, 'signal' is
  26900. silently ignored.
  26901. 'naked'
  26902. This attribute allows the compiler to construct the requisite
  26903. function declaration, while allowing the body of the function to be
  26904. assembly code. The specified function will not have
  26905. prologue/epilogue sequences generated by the compiler. Only basic
  26906. 'asm' statements can safely be included in naked functions (*note
  26907. Basic Asm::). While using extended 'asm' or a mixture of basic
  26908. 'asm' and C code may appear to work, they cannot be depended upon
  26909. to work reliably and are not supported.
  26910. 'no_gccisr'
  26911. Do not use '__gcc_isr' pseudo instructions in a function with the
  26912. 'interrupt' or 'signal' attribute aka. interrupt service routine
  26913. (ISR). Use this attribute if the preamble of the ISR prologue
  26914. should always read
  26915. push __zero_reg__
  26916. push __tmp_reg__
  26917. in __tmp_reg__, __SREG__
  26918. push __tmp_reg__
  26919. clr __zero_reg__
  26920. and accordingly for the postamble of the epilogue -- no matter
  26921. whether the mentioned registers are actually used in the ISR or
  26922. not. Situations where you might want to use this attribute
  26923. include:
  26924. * Code that (effectively) clobbers bits of 'SREG' other than the
  26925. 'I'-flag by writing to the memory location of 'SREG'.
  26926. * Code that uses inline assembler to jump to a different
  26927. function which expects (parts of) the prologue code as
  26928. outlined above to be present.
  26929. To disable '__gcc_isr' generation for the whole compilation unit,
  26930. there is option '-mno-gas-isr-prologues', *note AVR Options::.
  26931. 'OS_main'
  26932. 'OS_task'
  26933. On AVR, functions with the 'OS_main' or 'OS_task' attribute do not
  26934. save/restore any call-saved register in their prologue/epilogue.
  26935. The 'OS_main' attribute can be used when there _is guarantee_ that
  26936. interrupts are disabled at the time when the function is entered.
  26937. This saves resources when the stack pointer has to be changed to
  26938. set up a frame for local variables.
  26939. The 'OS_task' attribute can be used when there is _no guarantee_
  26940. that interrupts are disabled at that time when the function is
  26941. entered like for, e.g. task functions in a multi-threading
  26942. operating system. In that case, changing the stack pointer
  26943. register is guarded by save/clear/restore of the global interrupt
  26944. enable flag.
  26945. The differences to the 'naked' function attribute are:
  26946. * 'naked' functions do not have a return instruction whereas
  26947. 'OS_main' and 'OS_task' functions have a 'RET' or 'RETI'
  26948. return instruction.
  26949. * 'naked' functions do not set up a frame for local variables or
  26950. a frame pointer whereas 'OS_main' and 'OS_task' do this as
  26951. needed.
  26952. 'signal'
  26953. Use this attribute on the AVR to indicate that the specified
  26954. function is an interrupt handler. The compiler generates function
  26955. entry and exit sequences suitable for use in an interrupt handler
  26956. when this attribute is present.
  26957. See also the 'interrupt' function attribute.
  26958. The AVR hardware globally disables interrupts when an interrupt is
  26959. executed. Interrupt handler functions defined with the 'signal'
  26960. attribute do not re-enable interrupts. It is save to enable
  26961. interrupts in a 'signal' handler. This "save" only applies to the
  26962. code generated by the compiler and not to the IRQ layout of the
  26963. application which is responsibility of the application.
  26964. If both 'signal' and 'interrupt' are specified for the same
  26965. function, 'signal' is silently ignored.
  26966. 
  26967. File: gcc.info, Node: Blackfin Function Attributes, Next: BPF Function Attributes, Prev: AVR Function Attributes, Up: Function Attributes
  26968. 6.33.7 Blackfin Function Attributes
  26969. -----------------------------------
  26970. These function attributes are supported by the Blackfin back end:
  26971. 'exception_handler'
  26972. Use this attribute on the Blackfin to indicate that the specified
  26973. function is an exception handler. The compiler generates function
  26974. entry and exit sequences suitable for use in an exception handler
  26975. when this attribute is present.
  26976. 'interrupt_handler'
  26977. Use this attribute to indicate that the specified function is an
  26978. interrupt handler. The compiler generates function entry and exit
  26979. sequences suitable for use in an interrupt handler when this
  26980. attribute is present.
  26981. 'kspisusp'
  26982. When used together with 'interrupt_handler', 'exception_handler' or
  26983. 'nmi_handler', code is generated to load the stack pointer from the
  26984. USP register in the function prologue.
  26985. 'l1_text'
  26986. This attribute specifies a function to be placed into L1
  26987. Instruction SRAM. The function is put into a specific section
  26988. named '.l1.text'. With '-mfdpic', function calls with a such
  26989. function as the callee or caller uses inlined PLT.
  26990. 'l2'
  26991. This attribute specifies a function to be placed into L2 SRAM. The
  26992. function is put into a specific section named '.l2.text'. With
  26993. '-mfdpic', callers of such functions use an inlined PLT.
  26994. 'longcall'
  26995. 'shortcall'
  26996. The 'longcall' attribute indicates that the function might be far
  26997. away from the call site and require a different (more expensive)
  26998. calling sequence. The 'shortcall' attribute indicates that the
  26999. function is always close enough for the shorter calling sequence to
  27000. be used. These attributes override the '-mlongcall' switch.
  27001. 'nesting'
  27002. Use this attribute together with 'interrupt_handler',
  27003. 'exception_handler' or 'nmi_handler' to indicate that the function
  27004. entry code should enable nested interrupts or exceptions.
  27005. 'nmi_handler'
  27006. Use this attribute on the Blackfin to indicate that the specified
  27007. function is an NMI handler. The compiler generates function entry
  27008. and exit sequences suitable for use in an NMI handler when this
  27009. attribute is present.
  27010. 'saveall'
  27011. Use this attribute to indicate that all registers except the stack
  27012. pointer should be saved in the prologue regardless of whether they
  27013. are used or not.
  27014. 
  27015. File: gcc.info, Node: BPF Function Attributes, Next: CR16 Function Attributes, Prev: Blackfin Function Attributes, Up: Function Attributes
  27016. 6.33.8 BPF Function Attributes
  27017. ------------------------------
  27018. These function attributes are supported by the BPF back end:
  27019. 'kernel_helper'
  27020. use this attribute to indicate the specified function declaration
  27021. is a kernel helper. The helper function is passed as an argument
  27022. to the attribute. Example:
  27023. int bpf_probe_read (void *dst, int size, const void *unsafe_ptr)
  27024. __attribute__ ((kernel_helper (4)));
  27025. 
  27026. File: gcc.info, Node: CR16 Function Attributes, Next: C-SKY Function Attributes, Prev: BPF Function Attributes, Up: Function Attributes
  27027. 6.33.9 CR16 Function Attributes
  27028. -------------------------------
  27029. These function attributes are supported by the CR16 back end:
  27030. 'interrupt'
  27031. Use this attribute to indicate that the specified function is an
  27032. interrupt handler. The compiler generates function entry and exit
  27033. sequences suitable for use in an interrupt handler when this
  27034. attribute is present.
  27035. 
  27036. File: gcc.info, Node: C-SKY Function Attributes, Next: Epiphany Function Attributes, Prev: CR16 Function Attributes, Up: Function Attributes
  27037. 6.33.10 C-SKY Function Attributes
  27038. ---------------------------------
  27039. These function attributes are supported by the C-SKY back end:
  27040. 'interrupt'
  27041. 'isr'
  27042. Use these attributes to indicate that the specified function is an
  27043. interrupt handler. The compiler generates function entry and exit
  27044. sequences suitable for use in an interrupt handler when either of
  27045. these attributes are present.
  27046. Use of these options requires the '-mistack' command-line option to
  27047. enable support for the necessary interrupt stack instructions.
  27048. They are ignored with a warning otherwise. *Note C-SKY Options::.
  27049. 'naked'
  27050. This attribute allows the compiler to construct the requisite
  27051. function declaration, while allowing the body of the function to be
  27052. assembly code. The specified function will not have
  27053. prologue/epilogue sequences generated by the compiler. Only basic
  27054. 'asm' statements can safely be included in naked functions (*note
  27055. Basic Asm::). While using extended 'asm' or a mixture of basic
  27056. 'asm' and C code may appear to work, they cannot be depended upon
  27057. to work reliably and are not supported.
  27058. 
  27059. File: gcc.info, Node: Epiphany Function Attributes, Next: H8/300 Function Attributes, Prev: C-SKY Function Attributes, Up: Function Attributes
  27060. 6.33.11 Epiphany Function Attributes
  27061. ------------------------------------
  27062. These function attributes are supported by the Epiphany back end:
  27063. 'disinterrupt'
  27064. This attribute causes the compiler to emit instructions to disable
  27065. interrupts for the duration of the given function.
  27066. 'forwarder_section'
  27067. This attribute modifies the behavior of an interrupt handler. The
  27068. interrupt handler may be in external memory which cannot be reached
  27069. by a branch instruction, so generate a local memory trampoline to
  27070. transfer control. The single parameter identifies the section
  27071. where the trampoline is placed.
  27072. 'interrupt'
  27073. Use this attribute to indicate that the specified function is an
  27074. interrupt handler. The compiler generates function entry and exit
  27075. sequences suitable for use in an interrupt handler when this
  27076. attribute is present. It may also generate a special section with
  27077. code to initialize the interrupt vector table.
  27078. On Epiphany targets one or more optional parameters can be added
  27079. like this:
  27080. void __attribute__ ((interrupt ("dma0, dma1"))) universal_dma_handler ();
  27081. Permissible values for these parameters are: 'reset',
  27082. 'software_exception', 'page_miss', 'timer0', 'timer1', 'message',
  27083. 'dma0', 'dma1', 'wand' and 'swi'. Multiple parameters indicate
  27084. that multiple entries in the interrupt vector table should be
  27085. initialized for this function, i.e. for each parameter NAME, a jump
  27086. to the function is emitted in the section ivt_entry_NAME. The
  27087. parameter(s) may be omitted entirely, in which case no interrupt
  27088. vector table entry is provided.
  27089. Note that interrupts are enabled inside the function unless the
  27090. 'disinterrupt' attribute is also specified.
  27091. The following examples are all valid uses of these attributes on
  27092. Epiphany targets:
  27093. void __attribute__ ((interrupt)) universal_handler ();
  27094. void __attribute__ ((interrupt ("dma1"))) dma1_handler ();
  27095. void __attribute__ ((interrupt ("dma0, dma1")))
  27096. universal_dma_handler ();
  27097. void __attribute__ ((interrupt ("timer0"), disinterrupt))
  27098. fast_timer_handler ();
  27099. void __attribute__ ((interrupt ("dma0, dma1"),
  27100. forwarder_section ("tramp")))
  27101. external_dma_handler ();
  27102. 'long_call'
  27103. 'short_call'
  27104. These attributes specify how a particular function is called.
  27105. These attributes override the '-mlong-calls' (*note Adapteva
  27106. Epiphany Options::) command-line switch and '#pragma long_calls'
  27107. settings.
  27108. 
  27109. File: gcc.info, Node: H8/300 Function Attributes, Next: IA-64 Function Attributes, Prev: Epiphany Function Attributes, Up: Function Attributes
  27110. 6.33.12 H8/300 Function Attributes
  27111. ----------------------------------
  27112. These function attributes are available for H8/300 targets:
  27113. 'function_vector'
  27114. Use this attribute on the H8/300, H8/300H, and H8S to indicate that
  27115. the specified function should be called through the function
  27116. vector. Calling a function through the function vector reduces
  27117. code size; however, the function vector has a limited size (maximum
  27118. 128 entries on the H8/300 and 64 entries on the H8/300H and H8S)
  27119. and shares space with the interrupt vector.
  27120. 'interrupt_handler'
  27121. Use this attribute on the H8/300, H8/300H, and H8S to indicate that
  27122. the specified function is an interrupt handler. The compiler
  27123. generates function entry and exit sequences suitable for use in an
  27124. interrupt handler when this attribute is present.
  27125. 'saveall'
  27126. Use this attribute on the H8/300, H8/300H, and H8S to indicate that
  27127. all registers except the stack pointer should be saved in the
  27128. prologue regardless of whether they are used or not.
  27129. 
  27130. File: gcc.info, Node: IA-64 Function Attributes, Next: M32C Function Attributes, Prev: H8/300 Function Attributes, Up: Function Attributes
  27131. 6.33.13 IA-64 Function Attributes
  27132. ---------------------------------
  27133. These function attributes are supported on IA-64 targets:
  27134. 'syscall_linkage'
  27135. This attribute is used to modify the IA-64 calling convention by
  27136. marking all input registers as live at all function exits. This
  27137. makes it possible to restart a system call after an interrupt
  27138. without having to save/restore the input registers. This also
  27139. prevents kernel data from leaking into application code.
  27140. 'version_id'
  27141. This IA-64 HP-UX attribute, attached to a global variable or
  27142. function, renames a symbol to contain a version string, thus
  27143. allowing for function level versioning. HP-UX system header files
  27144. may use function level versioning for some system calls.
  27145. extern int foo () __attribute__((version_id ("20040821")));
  27146. Calls to 'foo' are mapped to calls to 'foo{20040821}'.
  27147. 
  27148. File: gcc.info, Node: M32C Function Attributes, Next: M32R/D Function Attributes, Prev: IA-64 Function Attributes, Up: Function Attributes
  27149. 6.33.14 M32C Function Attributes
  27150. --------------------------------
  27151. These function attributes are supported by the M32C back end:
  27152. 'bank_switch'
  27153. When added to an interrupt handler with the M32C port, causes the
  27154. prologue and epilogue to use bank switching to preserve the
  27155. registers rather than saving them on the stack.
  27156. 'fast_interrupt'
  27157. Use this attribute on the M32C port to indicate that the specified
  27158. function is a fast interrupt handler. This is just like the
  27159. 'interrupt' attribute, except that 'freit' is used to return
  27160. instead of 'reit'.
  27161. 'function_vector'
  27162. On M16C/M32C targets, the 'function_vector' attribute declares a
  27163. special page subroutine call function. Use of this attribute
  27164. reduces the code size by 2 bytes for each call generated to the
  27165. subroutine. The argument to the attribute is the vector number
  27166. entry from the special page vector table which contains the 16
  27167. low-order bits of the subroutine's entry address. Each vector
  27168. table has special page number (18 to 255) that is used in 'jsrs'
  27169. instructions. Jump addresses of the routines are generated by
  27170. adding 0x0F0000 (in case of M16C targets) or 0xFF0000 (in case of
  27171. M32C targets), to the 2-byte addresses set in the vector table.
  27172. Therefore you need to ensure that all the special page vector
  27173. routines should get mapped within the address range 0x0F0000 to
  27174. 0x0FFFFF (for M16C) and 0xFF0000 to 0xFFFFFF (for M32C).
  27175. In the following example 2 bytes are saved for each call to
  27176. function 'foo'.
  27177. void foo (void) __attribute__((function_vector(0x18)));
  27178. void foo (void)
  27179. {
  27180. }
  27181. void bar (void)
  27182. {
  27183. foo();
  27184. }
  27185. If functions are defined in one file and are called in another
  27186. file, then be sure to write this declaration in both files.
  27187. This attribute is ignored for R8C target.
  27188. 'interrupt'
  27189. Use this attribute to indicate that the specified function is an
  27190. interrupt handler. The compiler generates function entry and exit
  27191. sequences suitable for use in an interrupt handler when this
  27192. attribute is present.
  27193. 
  27194. File: gcc.info, Node: M32R/D Function Attributes, Next: m68k Function Attributes, Prev: M32C Function Attributes, Up: Function Attributes
  27195. 6.33.15 M32R/D Function Attributes
  27196. ----------------------------------
  27197. These function attributes are supported by the M32R/D back end:
  27198. 'interrupt'
  27199. Use this attribute to indicate that the specified function is an
  27200. interrupt handler. The compiler generates function entry and exit
  27201. sequences suitable for use in an interrupt handler when this
  27202. attribute is present.
  27203. 'model (MODEL-NAME)'
  27204. On the M32R/D, use this attribute to set the addressability of an
  27205. object, and of the code generated for a function. The identifier
  27206. MODEL-NAME is one of 'small', 'medium', or 'large', representing
  27207. each of the code models.
  27208. Small model objects live in the lower 16MB of memory (so that their
  27209. addresses can be loaded with the 'ld24' instruction), and are
  27210. callable with the 'bl' instruction.
  27211. Medium model objects may live anywhere in the 32-bit address space
  27212. (the compiler generates 'seth/add3' instructions to load their
  27213. addresses), and are callable with the 'bl' instruction.
  27214. Large model objects may live anywhere in the 32-bit address space
  27215. (the compiler generates 'seth/add3' instructions to load their
  27216. addresses), and may not be reachable with the 'bl' instruction (the
  27217. compiler generates the much slower 'seth/add3/jl' instruction
  27218. sequence).
  27219. 
  27220. File: gcc.info, Node: m68k Function Attributes, Next: MCORE Function Attributes, Prev: M32R/D Function Attributes, Up: Function Attributes
  27221. 6.33.16 m68k Function Attributes
  27222. --------------------------------
  27223. These function attributes are supported by the m68k back end:
  27224. 'interrupt'
  27225. 'interrupt_handler'
  27226. Use this attribute to indicate that the specified function is an
  27227. interrupt handler. The compiler generates function entry and exit
  27228. sequences suitable for use in an interrupt handler when this
  27229. attribute is present. Either name may be used.
  27230. 'interrupt_thread'
  27231. Use this attribute on fido, a subarchitecture of the m68k, to
  27232. indicate that the specified function is an interrupt handler that
  27233. is designed to run as a thread. The compiler omits generate
  27234. prologue/epilogue sequences and replaces the return instruction
  27235. with a 'sleep' instruction. This attribute is available only on
  27236. fido.
  27237. 
  27238. File: gcc.info, Node: MCORE Function Attributes, Next: MeP Function Attributes, Prev: m68k Function Attributes, Up: Function Attributes
  27239. 6.33.17 MCORE Function Attributes
  27240. ---------------------------------
  27241. These function attributes are supported by the MCORE back end:
  27242. 'naked'
  27243. This attribute allows the compiler to construct the requisite
  27244. function declaration, while allowing the body of the function to be
  27245. assembly code. The specified function will not have
  27246. prologue/epilogue sequences generated by the compiler. Only basic
  27247. 'asm' statements can safely be included in naked functions (*note
  27248. Basic Asm::). While using extended 'asm' or a mixture of basic
  27249. 'asm' and C code may appear to work, they cannot be depended upon
  27250. to work reliably and are not supported.
  27251. 
  27252. File: gcc.info, Node: MeP Function Attributes, Next: MicroBlaze Function Attributes, Prev: MCORE Function Attributes, Up: Function Attributes
  27253. 6.33.18 MeP Function Attributes
  27254. -------------------------------
  27255. These function attributes are supported by the MeP back end:
  27256. 'disinterrupt'
  27257. On MeP targets, this attribute causes the compiler to emit
  27258. instructions to disable interrupts for the duration of the given
  27259. function.
  27260. 'interrupt'
  27261. Use this attribute to indicate that the specified function is an
  27262. interrupt handler. The compiler generates function entry and exit
  27263. sequences suitable for use in an interrupt handler when this
  27264. attribute is present.
  27265. 'near'
  27266. This attribute causes the compiler to assume the called function is
  27267. close enough to use the normal calling convention, overriding the
  27268. '-mtf' command-line option.
  27269. 'far'
  27270. On MeP targets this causes the compiler to use a calling convention
  27271. that assumes the called function is too far away for the built-in
  27272. addressing modes.
  27273. 'vliw'
  27274. The 'vliw' attribute tells the compiler to emit instructions in
  27275. VLIW mode instead of core mode. Note that this attribute is not
  27276. allowed unless a VLIW coprocessor has been configured and enabled
  27277. through command-line options.
  27278. 
  27279. File: gcc.info, Node: MicroBlaze Function Attributes, Next: Microsoft Windows Function Attributes, Prev: MeP Function Attributes, Up: Function Attributes
  27280. 6.33.19 MicroBlaze Function Attributes
  27281. --------------------------------------
  27282. These function attributes are supported on MicroBlaze targets:
  27283. 'save_volatiles'
  27284. Use this attribute to indicate that the function is an interrupt
  27285. handler. All volatile registers (in addition to non-volatile
  27286. registers) are saved in the function prologue. If the function is
  27287. a leaf function, only volatiles used by the function are saved. A
  27288. normal function return is generated instead of a return from
  27289. interrupt.
  27290. 'break_handler'
  27291. Use this attribute to indicate that the specified function is a
  27292. break handler. The compiler generates function entry and exit
  27293. sequences suitable for use in an break handler when this attribute
  27294. is present. The return from 'break_handler' is done through the
  27295. 'rtbd' instead of 'rtsd'.
  27296. void f () __attribute__ ((break_handler));
  27297. 'interrupt_handler'
  27298. 'fast_interrupt'
  27299. These attributes indicate that the specified function is an
  27300. interrupt handler. Use the 'fast_interrupt' attribute to indicate
  27301. handlers used in low-latency interrupt mode, and
  27302. 'interrupt_handler' for interrupts that do not use low-latency
  27303. handlers. In both cases, GCC emits appropriate prologue code and
  27304. generates a return from the handler using 'rtid' instead of 'rtsd'.
  27305. 
  27306. File: gcc.info, Node: Microsoft Windows Function Attributes, Next: MIPS Function Attributes, Prev: MicroBlaze Function Attributes, Up: Function Attributes
  27307. 6.33.20 Microsoft Windows Function Attributes
  27308. ---------------------------------------------
  27309. The following attributes are available on Microsoft Windows and Symbian
  27310. OS targets.
  27311. 'dllexport'
  27312. On Microsoft Windows targets and Symbian OS targets the 'dllexport'
  27313. attribute causes the compiler to provide a global pointer to a
  27314. pointer in a DLL, so that it can be referenced with the 'dllimport'
  27315. attribute. On Microsoft Windows targets, the pointer name is
  27316. formed by combining '_imp__' and the function or variable name.
  27317. You can use '__declspec(dllexport)' as a synonym for '__attribute__
  27318. ((dllexport))' for compatibility with other compilers.
  27319. On systems that support the 'visibility' attribute, this attribute
  27320. also implies "default" visibility. It is an error to explicitly
  27321. specify any other visibility.
  27322. GCC's default behavior is to emit all inline functions with the
  27323. 'dllexport' attribute. Since this can cause object file-size
  27324. bloat, you can use '-fno-keep-inline-dllexport', which tells GCC to
  27325. ignore the attribute for inlined functions unless the
  27326. '-fkeep-inline-functions' flag is used instead.
  27327. The attribute is ignored for undefined symbols.
  27328. When applied to C++ classes, the attribute marks defined
  27329. non-inlined member functions and static data members as exports.
  27330. Static consts initialized in-class are not marked unless they are
  27331. also defined out-of-class.
  27332. For Microsoft Windows targets there are alternative methods for
  27333. including the symbol in the DLL's export table such as using a
  27334. '.def' file with an 'EXPORTS' section or, with GNU ld, using the
  27335. '--export-all' linker flag.
  27336. 'dllimport'
  27337. On Microsoft Windows and Symbian OS targets, the 'dllimport'
  27338. attribute causes the compiler to reference a function or variable
  27339. via a global pointer to a pointer that is set up by the DLL
  27340. exporting the symbol. The attribute implies 'extern'. On
  27341. Microsoft Windows targets, the pointer name is formed by combining
  27342. '_imp__' and the function or variable name.
  27343. You can use '__declspec(dllimport)' as a synonym for '__attribute__
  27344. ((dllimport))' for compatibility with other compilers.
  27345. On systems that support the 'visibility' attribute, this attribute
  27346. also implies "default" visibility. It is an error to explicitly
  27347. specify any other visibility.
  27348. Currently, the attribute is ignored for inlined functions. If the
  27349. attribute is applied to a symbol _definition_, an error is
  27350. reported. If a symbol previously declared 'dllimport' is later
  27351. defined, the attribute is ignored in subsequent references, and a
  27352. warning is emitted. The attribute is also overridden by a
  27353. subsequent declaration as 'dllexport'.
  27354. When applied to C++ classes, the attribute marks non-inlined member
  27355. functions and static data members as imports. However, the
  27356. attribute is ignored for virtual methods to allow creation of
  27357. vtables using thunks.
  27358. On the SH Symbian OS target the 'dllimport' attribute also has
  27359. another affect--it can cause the vtable and run-time type
  27360. information for a class to be exported. This happens when the
  27361. class has a dllimported constructor or a non-inline, non-pure
  27362. virtual function and, for either of those two conditions, the class
  27363. also has an inline constructor or destructor and has a key function
  27364. that is defined in the current translation unit.
  27365. For Microsoft Windows targets the use of the 'dllimport' attribute
  27366. on functions is not necessary, but provides a small performance
  27367. benefit by eliminating a thunk in the DLL. The use of the
  27368. 'dllimport' attribute on imported variables can be avoided by
  27369. passing the '--enable-auto-import' switch to the GNU linker. As
  27370. with functions, using the attribute for a variable eliminates a
  27371. thunk in the DLL.
  27372. One drawback to using this attribute is that a pointer to a
  27373. _variable_ marked as 'dllimport' cannot be used as a constant
  27374. address. However, a pointer to a _function_ with the 'dllimport'
  27375. attribute can be used as a constant initializer; in this case, the
  27376. address of a stub function in the import lib is referenced. On
  27377. Microsoft Windows targets, the attribute can be disabled for
  27378. functions by setting the '-mnop-fun-dllimport' flag.
  27379. 
  27380. File: gcc.info, Node: MIPS Function Attributes, Next: MSP430 Function Attributes, Prev: Microsoft Windows Function Attributes, Up: Function Attributes
  27381. 6.33.21 MIPS Function Attributes
  27382. --------------------------------
  27383. These function attributes are supported by the MIPS back end:
  27384. 'interrupt'
  27385. Use this attribute to indicate that the specified function is an
  27386. interrupt handler. The compiler generates function entry and exit
  27387. sequences suitable for use in an interrupt handler when this
  27388. attribute is present. An optional argument is supported for the
  27389. interrupt attribute which allows the interrupt mode to be
  27390. described. By default GCC assumes the external interrupt
  27391. controller (EIC) mode is in use, this can be explicitly set using
  27392. 'eic'. When interrupts are non-masked then the requested Interrupt
  27393. Priority Level (IPL) is copied to the current IPL which has the
  27394. effect of only enabling higher priority interrupts. To use
  27395. vectored interrupt mode use the argument
  27396. 'vector=[sw0|sw1|hw0|hw1|hw2|hw3|hw4|hw5]', this will change the
  27397. behavior of the non-masked interrupt support and GCC will arrange
  27398. to mask all interrupts from sw0 up to and including the specified
  27399. interrupt vector.
  27400. You can use the following attributes to modify the behavior of an
  27401. interrupt handler:
  27402. 'use_shadow_register_set'
  27403. Assume that the handler uses a shadow register set, instead of
  27404. the main general-purpose registers. An optional argument
  27405. 'intstack' is supported to indicate that the shadow register
  27406. set contains a valid stack pointer.
  27407. 'keep_interrupts_masked'
  27408. Keep interrupts masked for the whole function. Without this
  27409. attribute, GCC tries to reenable interrupts for as much of the
  27410. function as it can.
  27411. 'use_debug_exception_return'
  27412. Return using the 'deret' instruction. Interrupt handlers that
  27413. don't have this attribute return using 'eret' instead.
  27414. You can use any combination of these attributes, as shown below:
  27415. void __attribute__ ((interrupt)) v0 ();
  27416. void __attribute__ ((interrupt, use_shadow_register_set)) v1 ();
  27417. void __attribute__ ((interrupt, keep_interrupts_masked)) v2 ();
  27418. void __attribute__ ((interrupt, use_debug_exception_return)) v3 ();
  27419. void __attribute__ ((interrupt, use_shadow_register_set,
  27420. keep_interrupts_masked)) v4 ();
  27421. void __attribute__ ((interrupt, use_shadow_register_set,
  27422. use_debug_exception_return)) v5 ();
  27423. void __attribute__ ((interrupt, keep_interrupts_masked,
  27424. use_debug_exception_return)) v6 ();
  27425. void __attribute__ ((interrupt, use_shadow_register_set,
  27426. keep_interrupts_masked,
  27427. use_debug_exception_return)) v7 ();
  27428. void __attribute__ ((interrupt("eic"))) v8 ();
  27429. void __attribute__ ((interrupt("vector=hw3"))) v9 ();
  27430. 'long_call'
  27431. 'short_call'
  27432. 'near'
  27433. 'far'
  27434. These attributes specify how a particular function is called on
  27435. MIPS. The attributes override the '-mlong-calls' (*note MIPS
  27436. Options::) command-line switch. The 'long_call' and 'far'
  27437. attributes are synonyms, and cause the compiler to always call the
  27438. function by first loading its address into a register, and then
  27439. using the contents of that register. The 'short_call' and 'near'
  27440. attributes are synonyms, and have the opposite effect; they specify
  27441. that non-PIC calls should be made using the more efficient 'jal'
  27442. instruction.
  27443. 'mips16'
  27444. 'nomips16'
  27445. On MIPS targets, you can use the 'mips16' and 'nomips16' function
  27446. attributes to locally select or turn off MIPS16 code generation. A
  27447. function with the 'mips16' attribute is emitted as MIPS16 code,
  27448. while MIPS16 code generation is disabled for functions with the
  27449. 'nomips16' attribute. These attributes override the '-mips16' and
  27450. '-mno-mips16' options on the command line (*note MIPS Options::).
  27451. When compiling files containing mixed MIPS16 and non-MIPS16 code,
  27452. the preprocessor symbol '__mips16' reflects the setting on the
  27453. command line, not that within individual functions. Mixed MIPS16
  27454. and non-MIPS16 code may interact badly with some GCC extensions
  27455. such as '__builtin_apply' (*note Constructing Calls::).
  27456. 'micromips, MIPS'
  27457. 'nomicromips, MIPS'
  27458. On MIPS targets, you can use the 'micromips' and 'nomicromips'
  27459. function attributes to locally select or turn off microMIPS code
  27460. generation. A function with the 'micromips' attribute is emitted
  27461. as microMIPS code, while microMIPS code generation is disabled for
  27462. functions with the 'nomicromips' attribute. These attributes
  27463. override the '-mmicromips' and '-mno-micromips' options on the
  27464. command line (*note MIPS Options::).
  27465. When compiling files containing mixed microMIPS and non-microMIPS
  27466. code, the preprocessor symbol '__mips_micromips' reflects the
  27467. setting on the command line, not that within individual functions.
  27468. Mixed microMIPS and non-microMIPS code may interact badly with some
  27469. GCC extensions such as '__builtin_apply' (*note Constructing
  27470. Calls::).
  27471. 'nocompression'
  27472. On MIPS targets, you can use the 'nocompression' function attribute
  27473. to locally turn off MIPS16 and microMIPS code generation. This
  27474. attribute overrides the '-mips16' and '-mmicromips' options on the
  27475. command line (*note MIPS Options::).
  27476. 
  27477. File: gcc.info, Node: MSP430 Function Attributes, Next: NDS32 Function Attributes, Prev: MIPS Function Attributes, Up: Function Attributes
  27478. 6.33.22 MSP430 Function Attributes
  27479. ----------------------------------
  27480. These function attributes are supported by the MSP430 back end:
  27481. 'critical'
  27482. Critical functions disable interrupts upon entry and restore the
  27483. previous interrupt state upon exit. Critical functions cannot also
  27484. have the 'naked', 'reentrant' or 'interrupt' attributes.
  27485. The MSP430 hardware ensures that interrupts are disabled on entry
  27486. to 'interrupt' functions, and restores the previous interrupt state
  27487. on exit. The 'critical' attribute is therefore redundant on
  27488. 'interrupt' functions.
  27489. 'interrupt'
  27490. Use this attribute to indicate that the specified function is an
  27491. interrupt handler. The compiler generates function entry and exit
  27492. sequences suitable for use in an interrupt handler when this
  27493. attribute is present.
  27494. You can provide an argument to the interrupt attribute which
  27495. specifies a name or number. If the argument is a number it
  27496. indicates the slot in the interrupt vector table (0 - 31) to which
  27497. this handler should be assigned. If the argument is a name it is
  27498. treated as a symbolic name for the vector slot. These names should
  27499. match up with appropriate entries in the linker script. By default
  27500. the names 'watchdog' for vector 26, 'nmi' for vector 30 and 'reset'
  27501. for vector 31 are recognized.
  27502. 'naked'
  27503. This attribute allows the compiler to construct the requisite
  27504. function declaration, while allowing the body of the function to be
  27505. assembly code. The specified function will not have
  27506. prologue/epilogue sequences generated by the compiler. Only basic
  27507. 'asm' statements can safely be included in naked functions (*note
  27508. Basic Asm::). While using extended 'asm' or a mixture of basic
  27509. 'asm' and C code may appear to work, they cannot be depended upon
  27510. to work reliably and are not supported.
  27511. 'reentrant'
  27512. Reentrant functions disable interrupts upon entry and enable them
  27513. upon exit. Reentrant functions cannot also have the 'naked' or
  27514. 'critical' attributes. They can have the 'interrupt' attribute.
  27515. 'wakeup'
  27516. This attribute only applies to interrupt functions. It is silently
  27517. ignored if applied to a non-interrupt function. A wakeup interrupt
  27518. function will rouse the processor from any low-power state that it
  27519. might be in when the function exits.
  27520. 'lower'
  27521. 'upper'
  27522. 'either'
  27523. On the MSP430 target these attributes can be used to specify
  27524. whether the function or variable should be placed into low memory,
  27525. high memory, or the placement should be left to the linker to
  27526. decide. The attributes are only significant if compiling for the
  27527. MSP430X architecture in the large memory model.
  27528. The attributes work in conjunction with a linker script that has
  27529. been augmented to specify where to place sections with a '.lower'
  27530. and a '.upper' prefix. So, for example, as well as placing the
  27531. '.data' section, the script also specifies the placement of a
  27532. '.lower.data' and a '.upper.data' section. The intention is that
  27533. 'lower' sections are placed into a small but easier to access
  27534. memory region and the upper sections are placed into a larger, but
  27535. slower to access, region.
  27536. The 'either' attribute is special. It tells the linker to place
  27537. the object into the corresponding 'lower' section if there is room
  27538. for it. If there is insufficient room then the object is placed
  27539. into the corresponding 'upper' section instead. Note that the
  27540. placement algorithm is not very sophisticated. It does not attempt
  27541. to find an optimal packing of the 'lower' sections. It just makes
  27542. one pass over the objects and does the best that it can. Using the
  27543. '-ffunction-sections' and '-fdata-sections' command-line options
  27544. can help the packing, however, since they produce smaller, easier
  27545. to pack regions.
  27546. 
  27547. File: gcc.info, Node: NDS32 Function Attributes, Next: Nios II Function Attributes, Prev: MSP430 Function Attributes, Up: Function Attributes
  27548. 6.33.23 NDS32 Function Attributes
  27549. ---------------------------------
  27550. These function attributes are supported by the NDS32 back end:
  27551. 'exception'
  27552. Use this attribute on the NDS32 target to indicate that the
  27553. specified function is an exception handler. The compiler will
  27554. generate corresponding sections for use in an exception handler.
  27555. 'interrupt'
  27556. On NDS32 target, this attribute indicates that the specified
  27557. function is an interrupt handler. The compiler generates
  27558. corresponding sections for use in an interrupt handler. You can
  27559. use the following attributes to modify the behavior:
  27560. 'nested'
  27561. This interrupt service routine is interruptible.
  27562. 'not_nested'
  27563. This interrupt service routine is not interruptible.
  27564. 'nested_ready'
  27565. This interrupt service routine is interruptible after
  27566. 'PSW.GIE' (global interrupt enable) is set. This allows
  27567. interrupt service routine to finish some short critical code
  27568. before enabling interrupts.
  27569. 'save_all'
  27570. The system will help save all registers into stack before
  27571. entering interrupt handler.
  27572. 'partial_save'
  27573. The system will help save caller registers into stack before
  27574. entering interrupt handler.
  27575. 'naked'
  27576. This attribute allows the compiler to construct the requisite
  27577. function declaration, while allowing the body of the function to be
  27578. assembly code. The specified function will not have
  27579. prologue/epilogue sequences generated by the compiler. Only basic
  27580. 'asm' statements can safely be included in naked functions (*note
  27581. Basic Asm::). While using extended 'asm' or a mixture of basic
  27582. 'asm' and C code may appear to work, they cannot be depended upon
  27583. to work reliably and are not supported.
  27584. 'reset'
  27585. Use this attribute on the NDS32 target to indicate that the
  27586. specified function is a reset handler. The compiler will generate
  27587. corresponding sections for use in a reset handler. You can use the
  27588. following attributes to provide extra exception handling:
  27589. 'nmi'
  27590. Provide a user-defined function to handle NMI exception.
  27591. 'warm'
  27592. Provide a user-defined function to handle warm reset
  27593. exception.
  27594. 
  27595. File: gcc.info, Node: Nios II Function Attributes, Next: Nvidia PTX Function Attributes, Prev: NDS32 Function Attributes, Up: Function Attributes
  27596. 6.33.24 Nios II Function Attributes
  27597. -----------------------------------
  27598. These function attributes are supported by the Nios II back end:
  27599. 'target (OPTIONS)'
  27600. As discussed in *note Common Function Attributes::, this attribute
  27601. allows specification of target-specific compilation options.
  27602. When compiling for Nios II, the following options are allowed:
  27603. 'custom-INSN=N'
  27604. 'no-custom-INSN'
  27605. Each 'custom-INSN=N' attribute locally enables use of a custom
  27606. instruction with encoding N when generating code that uses
  27607. INSN. Similarly, 'no-custom-INSN' locally inhibits use of the
  27608. custom instruction INSN. These target attributes correspond
  27609. to the '-mcustom-INSN=N' and '-mno-custom-INSN' command-line
  27610. options, and support the same set of INSN keywords. *Note
  27611. Nios II Options::, for more information.
  27612. 'custom-fpu-cfg=NAME'
  27613. This attribute corresponds to the '-mcustom-fpu-cfg=NAME'
  27614. command-line option, to select a predefined set of custom
  27615. instructions named NAME. *Note Nios II Options::, for more
  27616. information.
  27617. 
  27618. File: gcc.info, Node: Nvidia PTX Function Attributes, Next: PowerPC Function Attributes, Prev: Nios II Function Attributes, Up: Function Attributes
  27619. 6.33.25 Nvidia PTX Function Attributes
  27620. --------------------------------------
  27621. These function attributes are supported by the Nvidia PTX back end:
  27622. 'kernel'
  27623. This attribute indicates that the corresponding function should be
  27624. compiled as a kernel function, which can be invoked from the host
  27625. via the CUDA RT library. By default functions are only callable
  27626. only from other PTX functions.
  27627. Kernel functions must have 'void' return type.
  27628. 
  27629. File: gcc.info, Node: PowerPC Function Attributes, Next: RISC-V Function Attributes, Prev: Nvidia PTX Function Attributes, Up: Function Attributes
  27630. 6.33.26 PowerPC Function Attributes
  27631. -----------------------------------
  27632. These function attributes are supported by the PowerPC back end:
  27633. 'longcall'
  27634. 'shortcall'
  27635. The 'longcall' attribute indicates that the function might be far
  27636. away from the call site and require a different (more expensive)
  27637. calling sequence. The 'shortcall' attribute indicates that the
  27638. function is always close enough for the shorter calling sequence to
  27639. be used. These attributes override both the '-mlongcall' switch
  27640. and the '#pragma longcall' setting.
  27641. *Note RS/6000 and PowerPC Options::, for more information on
  27642. whether long calls are necessary.
  27643. 'target (OPTIONS)'
  27644. As discussed in *note Common Function Attributes::, this attribute
  27645. allows specification of target-specific compilation options.
  27646. On the PowerPC, the following options are allowed:
  27647. 'altivec'
  27648. 'no-altivec'
  27649. Generate code that uses (does not use) AltiVec instructions.
  27650. In 32-bit code, you cannot enable AltiVec instructions unless
  27651. '-mabi=altivec' is used on the command line.
  27652. 'cmpb'
  27653. 'no-cmpb'
  27654. Generate code that uses (does not use) the compare bytes
  27655. instruction implemented on the POWER6 processor and other
  27656. processors that support the PowerPC V2.05 architecture.
  27657. 'dlmzb'
  27658. 'no-dlmzb'
  27659. Generate code that uses (does not use) the string-search
  27660. 'dlmzb' instruction on the IBM 405, 440, 464 and 476
  27661. processors. This instruction is generated by default when
  27662. targeting those processors.
  27663. 'fprnd'
  27664. 'no-fprnd'
  27665. Generate code that uses (does not use) the FP round to integer
  27666. instructions implemented on the POWER5+ processor and other
  27667. processors that support the PowerPC V2.03 architecture.
  27668. 'hard-dfp'
  27669. 'no-hard-dfp'
  27670. Generate code that uses (does not use) the decimal
  27671. floating-point instructions implemented on some POWER
  27672. processors.
  27673. 'isel'
  27674. 'no-isel'
  27675. Generate code that uses (does not use) ISEL instruction.
  27676. 'mfcrf'
  27677. 'no-mfcrf'
  27678. Generate code that uses (does not use) the move from condition
  27679. register field instruction implemented on the POWER4 processor
  27680. and other processors that support the PowerPC V2.01
  27681. architecture.
  27682. 'mulhw'
  27683. 'no-mulhw'
  27684. Generate code that uses (does not use) the half-word multiply
  27685. and multiply-accumulate instructions on the IBM 405, 440, 464
  27686. and 476 processors. These instructions are generated by
  27687. default when targeting those processors.
  27688. 'multiple'
  27689. 'no-multiple'
  27690. Generate code that uses (does not use) the load multiple word
  27691. instructions and the store multiple word instructions.
  27692. 'update'
  27693. 'no-update'
  27694. Generate code that uses (does not use) the load or store
  27695. instructions that update the base register to the address of
  27696. the calculated memory location.
  27697. 'popcntb'
  27698. 'no-popcntb'
  27699. Generate code that uses (does not use) the popcount and
  27700. double-precision FP reciprocal estimate instruction
  27701. implemented on the POWER5 processor and other processors that
  27702. support the PowerPC V2.02 architecture.
  27703. 'popcntd'
  27704. 'no-popcntd'
  27705. Generate code that uses (does not use) the popcount
  27706. instruction implemented on the POWER7 processor and other
  27707. processors that support the PowerPC V2.06 architecture.
  27708. 'powerpc-gfxopt'
  27709. 'no-powerpc-gfxopt'
  27710. Generate code that uses (does not use) the optional PowerPC
  27711. architecture instructions in the Graphics group, including
  27712. floating-point select.
  27713. 'powerpc-gpopt'
  27714. 'no-powerpc-gpopt'
  27715. Generate code that uses (does not use) the optional PowerPC
  27716. architecture instructions in the General Purpose group,
  27717. including floating-point square root.
  27718. 'recip-precision'
  27719. 'no-recip-precision'
  27720. Assume (do not assume) that the reciprocal estimate
  27721. instructions provide higher-precision estimates than is
  27722. mandated by the PowerPC ABI.
  27723. 'string'
  27724. 'no-string'
  27725. Generate code that uses (does not use) the load string
  27726. instructions and the store string word instructions to save
  27727. multiple registers and do small block moves.
  27728. 'vsx'
  27729. 'no-vsx'
  27730. Generate code that uses (does not use) vector/scalar (VSX)
  27731. instructions, and also enable the use of built-in functions
  27732. that allow more direct access to the VSX instruction set. In
  27733. 32-bit code, you cannot enable VSX or AltiVec instructions
  27734. unless '-mabi=altivec' is used on the command line.
  27735. 'friz'
  27736. 'no-friz'
  27737. Generate (do not generate) the 'friz' instruction when the
  27738. '-funsafe-math-optimizations' option is used to optimize
  27739. rounding a floating-point value to 64-bit integer and back to
  27740. floating point. The 'friz' instruction does not return the
  27741. same value if the floating-point number is too large to fit in
  27742. an integer.
  27743. 'avoid-indexed-addresses'
  27744. 'no-avoid-indexed-addresses'
  27745. Generate code that tries to avoid (not avoid) the use of
  27746. indexed load or store instructions.
  27747. 'paired'
  27748. 'no-paired'
  27749. Generate code that uses (does not use) the generation of
  27750. PAIRED simd instructions.
  27751. 'longcall'
  27752. 'no-longcall'
  27753. Generate code that assumes (does not assume) that all calls
  27754. are far away so that a longer more expensive calling sequence
  27755. is required.
  27756. 'cpu=CPU'
  27757. Specify the architecture to generate code for when compiling
  27758. the function. If you select the 'target("cpu=power7")'
  27759. attribute when generating 32-bit code, VSX and AltiVec
  27760. instructions are not generated unless you use the
  27761. '-mabi=altivec' option on the command line.
  27762. 'tune=TUNE'
  27763. Specify the architecture to tune for when compiling the
  27764. function. If you do not specify the 'target("tune=TUNE")'
  27765. attribute and you do specify the 'target("cpu=CPU")'
  27766. attribute, compilation tunes for the CPU architecture, and not
  27767. the default tuning specified on the command line.
  27768. On the PowerPC, the inliner does not inline a function that has
  27769. different target options than the caller, unless the callee has a
  27770. subset of the target options of the caller.
  27771. 
  27772. File: gcc.info, Node: RISC-V Function Attributes, Next: RL78 Function Attributes, Prev: PowerPC Function Attributes, Up: Function Attributes
  27773. 6.33.27 RISC-V Function Attributes
  27774. ----------------------------------
  27775. These function attributes are supported by the RISC-V back end:
  27776. 'naked'
  27777. This attribute allows the compiler to construct the requisite
  27778. function declaration, while allowing the body of the function to be
  27779. assembly code. The specified function will not have
  27780. prologue/epilogue sequences generated by the compiler. Only basic
  27781. 'asm' statements can safely be included in naked functions (*note
  27782. Basic Asm::). While using extended 'asm' or a mixture of basic
  27783. 'asm' and C code may appear to work, they cannot be depended upon
  27784. to work reliably and are not supported.
  27785. 'interrupt'
  27786. Use this attribute to indicate that the specified function is an
  27787. interrupt handler. The compiler generates function entry and exit
  27788. sequences suitable for use in an interrupt handler when this
  27789. attribute is present.
  27790. You can specify the kind of interrupt to be handled by adding an
  27791. optional parameter to the interrupt attribute like this:
  27792. void f (void) __attribute__ ((interrupt ("user")));
  27793. Permissible values for this parameter are 'user', 'supervisor', and
  27794. 'machine'. If there is no parameter, then it defaults to
  27795. 'machine'.
  27796. 
  27797. File: gcc.info, Node: RL78 Function Attributes, Next: RX Function Attributes, Prev: RISC-V Function Attributes, Up: Function Attributes
  27798. 6.33.28 RL78 Function Attributes
  27799. --------------------------------
  27800. These function attributes are supported by the RL78 back end:
  27801. 'interrupt'
  27802. 'brk_interrupt'
  27803. These attributes indicate that the specified function is an
  27804. interrupt handler. The compiler generates function entry and exit
  27805. sequences suitable for use in an interrupt handler when this
  27806. attribute is present.
  27807. Use 'brk_interrupt' instead of 'interrupt' for handlers intended to
  27808. be used with the 'BRK' opcode (i.e. those that must end with 'RETB'
  27809. instead of 'RETI').
  27810. 'naked'
  27811. This attribute allows the compiler to construct the requisite
  27812. function declaration, while allowing the body of the function to be
  27813. assembly code. The specified function will not have
  27814. prologue/epilogue sequences generated by the compiler. Only basic
  27815. 'asm' statements can safely be included in naked functions (*note
  27816. Basic Asm::). While using extended 'asm' or a mixture of basic
  27817. 'asm' and C code may appear to work, they cannot be depended upon
  27818. to work reliably and are not supported.
  27819. 
  27820. File: gcc.info, Node: RX Function Attributes, Next: S/390 Function Attributes, Prev: RL78 Function Attributes, Up: Function Attributes
  27821. 6.33.29 RX Function Attributes
  27822. ------------------------------
  27823. These function attributes are supported by the RX back end:
  27824. 'fast_interrupt'
  27825. Use this attribute on the RX port to indicate that the specified
  27826. function is a fast interrupt handler. This is just like the
  27827. 'interrupt' attribute, except that 'freit' is used to return
  27828. instead of 'reit'.
  27829. 'interrupt'
  27830. Use this attribute to indicate that the specified function is an
  27831. interrupt handler. The compiler generates function entry and exit
  27832. sequences suitable for use in an interrupt handler when this
  27833. attribute is present.
  27834. On RX and RL78 targets, you may specify one or more vector numbers
  27835. as arguments to the attribute, as well as naming an alternate table
  27836. name. Parameters are handled sequentially, so one handler can be
  27837. assigned to multiple entries in multiple tables. One may also pass
  27838. the magic string '"$default"' which causes the function to be used
  27839. for any unfilled slots in the current table.
  27840. This example shows a simple assignment of a function to one vector
  27841. in the default table (note that preprocessor macros may be used for
  27842. chip-specific symbolic vector names):
  27843. void __attribute__ ((interrupt (5))) txd1_handler ();
  27844. This example assigns a function to two slots in the default table
  27845. (using preprocessor macros defined elsewhere) and makes it the
  27846. default for the 'dct' table:
  27847. void __attribute__ ((interrupt (RXD1_VECT,RXD2_VECT,"dct","$default")))
  27848. txd1_handler ();
  27849. 'naked'
  27850. This attribute allows the compiler to construct the requisite
  27851. function declaration, while allowing the body of the function to be
  27852. assembly code. The specified function will not have
  27853. prologue/epilogue sequences generated by the compiler. Only basic
  27854. 'asm' statements can safely be included in naked functions (*note
  27855. Basic Asm::). While using extended 'asm' or a mixture of basic
  27856. 'asm' and C code may appear to work, they cannot be depended upon
  27857. to work reliably and are not supported.
  27858. 'vector'
  27859. This RX attribute is similar to the 'interrupt' attribute,
  27860. including its parameters, but does not make the function an
  27861. interrupt-handler type function (i.e. it retains the normal C
  27862. function calling ABI). See the 'interrupt' attribute for a
  27863. description of its arguments.
  27864. 
  27865. File: gcc.info, Node: S/390 Function Attributes, Next: SH Function Attributes, Prev: RX Function Attributes, Up: Function Attributes
  27866. 6.33.30 S/390 Function Attributes
  27867. ---------------------------------
  27868. These function attributes are supported on the S/390:
  27869. 'hotpatch (HALFWORDS-BEFORE-FUNCTION-LABEL,HALFWORDS-AFTER-FUNCTION-LABEL)'
  27870. On S/390 System z targets, you can use this function attribute to
  27871. make GCC generate a "hot-patching" function prologue. If the
  27872. '-mhotpatch=' command-line option is used at the same time, the
  27873. 'hotpatch' attribute takes precedence. The first of the two
  27874. arguments specifies the number of halfwords to be added before the
  27875. function label. A second argument can be used to specify the
  27876. number of halfwords to be added after the function label. For both
  27877. arguments the maximum allowed value is 1000000.
  27878. If both arguments are zero, hotpatching is disabled.
  27879. 'target (OPTIONS)'
  27880. As discussed in *note Common Function Attributes::, this attribute
  27881. allows specification of target-specific compilation options.
  27882. On S/390, the following options are supported:
  27883. 'arch='
  27884. 'tune='
  27885. 'stack-guard='
  27886. 'stack-size='
  27887. 'branch-cost='
  27888. 'warn-framesize='
  27889. 'backchain'
  27890. 'no-backchain'
  27891. 'hard-dfp'
  27892. 'no-hard-dfp'
  27893. 'hard-float'
  27894. 'soft-float'
  27895. 'htm'
  27896. 'no-htm'
  27897. 'vx'
  27898. 'no-vx'
  27899. 'packed-stack'
  27900. 'no-packed-stack'
  27901. 'small-exec'
  27902. 'no-small-exec'
  27903. 'mvcle'
  27904. 'no-mvcle'
  27905. 'warn-dynamicstack'
  27906. 'no-warn-dynamicstack'
  27907. The options work exactly like the S/390 specific command line
  27908. options (without the prefix '-m') except that they do not change
  27909. any feature macros. For example,
  27910. target("no-vx")
  27911. does not undefine the '__VEC__' macro.
  27912. 
  27913. File: gcc.info, Node: SH Function Attributes, Next: Symbian OS Function Attributes, Prev: S/390 Function Attributes, Up: Function Attributes
  27914. 6.33.31 SH Function Attributes
  27915. ------------------------------
  27916. These function attributes are supported on the SH family of processors:
  27917. 'function_vector'
  27918. On SH2A targets, this attribute declares a function to be called
  27919. using the TBR relative addressing mode. The argument to this
  27920. attribute is the entry number of the same function in a vector
  27921. table containing all the TBR relative addressable functions. For
  27922. correct operation the TBR must be setup accordingly to point to the
  27923. start of the vector table before any functions with this attribute
  27924. are invoked. Usually a good place to do the initialization is the
  27925. startup routine. The TBR relative vector table can have at max 256
  27926. function entries. The jumps to these functions are generated using
  27927. a SH2A specific, non delayed branch instruction JSR/N @(disp8,TBR).
  27928. You must use GAS and GLD from GNU binutils version 2.7 or later for
  27929. this attribute to work correctly.
  27930. In an application, for a function being called once, this attribute
  27931. saves at least 8 bytes of code; and if other successive calls are
  27932. being made to the same function, it saves 2 bytes of code per each
  27933. of these calls.
  27934. 'interrupt_handler'
  27935. Use this attribute to indicate that the specified function is an
  27936. interrupt handler. The compiler generates function entry and exit
  27937. sequences suitable for use in an interrupt handler when this
  27938. attribute is present.
  27939. 'nosave_low_regs'
  27940. Use this attribute on SH targets to indicate that an
  27941. 'interrupt_handler' function should not save and restore registers
  27942. R0..R7. This can be used on SH3* and SH4* targets that have a
  27943. second R0..R7 register bank for non-reentrant interrupt handlers.
  27944. 'renesas'
  27945. On SH targets this attribute specifies that the function or struct
  27946. follows the Renesas ABI.
  27947. 'resbank'
  27948. On the SH2A target, this attribute enables the high-speed register
  27949. saving and restoration using a register bank for
  27950. 'interrupt_handler' routines. Saving to the bank is performed
  27951. automatically after the CPU accepts an interrupt that uses a
  27952. register bank.
  27953. The nineteen 32-bit registers comprising general register R0 to
  27954. R14, control register GBR, and system registers MACH, MACL, and PR
  27955. and the vector table address offset are saved into a register bank.
  27956. Register banks are stacked in first-in last-out (FILO) sequence.
  27957. Restoration from the bank is executed by issuing a RESBANK
  27958. instruction.
  27959. 'sp_switch'
  27960. Use this attribute on the SH to indicate an 'interrupt_handler'
  27961. function should switch to an alternate stack. It expects a string
  27962. argument that names a global variable holding the address of the
  27963. alternate stack.
  27964. void *alt_stack;
  27965. void f () __attribute__ ((interrupt_handler,
  27966. sp_switch ("alt_stack")));
  27967. 'trap_exit'
  27968. Use this attribute on the SH for an 'interrupt_handler' to return
  27969. using 'trapa' instead of 'rte'. This attribute expects an integer
  27970. argument specifying the trap number to be used.
  27971. 'trapa_handler'
  27972. On SH targets this function attribute is similar to
  27973. 'interrupt_handler' but it does not save and restore all registers.
  27974. 
  27975. File: gcc.info, Node: Symbian OS Function Attributes, Next: V850 Function Attributes, Prev: SH Function Attributes, Up: Function Attributes
  27976. 6.33.32 Symbian OS Function Attributes
  27977. --------------------------------------
  27978. *Note Microsoft Windows Function Attributes::, for discussion of the
  27979. 'dllexport' and 'dllimport' attributes.
  27980. 
  27981. File: gcc.info, Node: V850 Function Attributes, Next: Visium Function Attributes, Prev: Symbian OS Function Attributes, Up: Function Attributes
  27982. 6.33.33 V850 Function Attributes
  27983. --------------------------------
  27984. The V850 back end supports these function attributes:
  27985. 'interrupt'
  27986. 'interrupt_handler'
  27987. Use these attributes to indicate that the specified function is an
  27988. interrupt handler. The compiler generates function entry and exit
  27989. sequences suitable for use in an interrupt handler when either
  27990. attribute is present.
  27991. 
  27992. File: gcc.info, Node: Visium Function Attributes, Next: x86 Function Attributes, Prev: V850 Function Attributes, Up: Function Attributes
  27993. 6.33.34 Visium Function Attributes
  27994. ----------------------------------
  27995. These function attributes are supported by the Visium back end:
  27996. 'interrupt'
  27997. Use this attribute to indicate that the specified function is an
  27998. interrupt handler. The compiler generates function entry and exit
  27999. sequences suitable for use in an interrupt handler when this
  28000. attribute is present.
  28001. 
  28002. File: gcc.info, Node: x86 Function Attributes, Next: Xstormy16 Function Attributes, Prev: Visium Function Attributes, Up: Function Attributes
  28003. 6.33.35 x86 Function Attributes
  28004. -------------------------------
  28005. These function attributes are supported by the x86 back end:
  28006. 'cdecl'
  28007. On the x86-32 targets, the 'cdecl' attribute causes the compiler to
  28008. assume that the calling function pops off the stack space used to
  28009. pass arguments. This is useful to override the effects of the
  28010. '-mrtd' switch.
  28011. 'fastcall'
  28012. On x86-32 targets, the 'fastcall' attribute causes the compiler to
  28013. pass the first argument (if of integral type) in the register ECX
  28014. and the second argument (if of integral type) in the register EDX.
  28015. Subsequent and other typed arguments are passed on the stack. The
  28016. called function pops the arguments off the stack. If the number of
  28017. arguments is variable all arguments are pushed on the stack.
  28018. 'thiscall'
  28019. On x86-32 targets, the 'thiscall' attribute causes the compiler to
  28020. pass the first argument (if of integral type) in the register ECX.
  28021. Subsequent and other typed arguments are passed on the stack. The
  28022. called function pops the arguments off the stack. If the number of
  28023. arguments is variable all arguments are pushed on the stack. The
  28024. 'thiscall' attribute is intended for C++ non-static member
  28025. functions. As a GCC extension, this calling convention can be used
  28026. for C functions and for static member methods.
  28027. 'ms_abi'
  28028. 'sysv_abi'
  28029. On 32-bit and 64-bit x86 targets, you can use an ABI attribute to
  28030. indicate which calling convention should be used for a function.
  28031. The 'ms_abi' attribute tells the compiler to use the Microsoft ABI,
  28032. while the 'sysv_abi' attribute tells the compiler to use the ABI
  28033. used on GNU/Linux and other systems. The default is to use the
  28034. Microsoft ABI when targeting Windows. On all other systems, the
  28035. default is the x86/AMD ABI.
  28036. Note, the 'ms_abi' attribute for Microsoft Windows 64-bit targets
  28037. currently requires the '-maccumulate-outgoing-args' option.
  28038. 'callee_pop_aggregate_return (NUMBER)'
  28039. On x86-32 targets, you can use this attribute to control how
  28040. aggregates are returned in memory. If the caller is responsible
  28041. for popping the hidden pointer together with the rest of the
  28042. arguments, specify NUMBER equal to zero. If callee is responsible
  28043. for popping the hidden pointer, specify NUMBER equal to one.
  28044. The default x86-32 ABI assumes that the callee pops the stack for
  28045. hidden pointer. However, on x86-32 Microsoft Windows targets, the
  28046. compiler assumes that the caller pops the stack for hidden pointer.
  28047. 'ms_hook_prologue'
  28048. On 32-bit and 64-bit x86 targets, you can use this function
  28049. attribute to make GCC generate the "hot-patching" function prologue
  28050. used in Win32 API functions in Microsoft Windows XP Service Pack 2
  28051. and newer.
  28052. 'naked'
  28053. This attribute allows the compiler to construct the requisite
  28054. function declaration, while allowing the body of the function to be
  28055. assembly code. The specified function will not have
  28056. prologue/epilogue sequences generated by the compiler. Only basic
  28057. 'asm' statements can safely be included in naked functions (*note
  28058. Basic Asm::). While using extended 'asm' or a mixture of basic
  28059. 'asm' and C code may appear to work, they cannot be depended upon
  28060. to work reliably and are not supported.
  28061. 'regparm (NUMBER)'
  28062. On x86-32 targets, the 'regparm' attribute causes the compiler to
  28063. pass arguments number one to NUMBER if they are of integral type in
  28064. registers EAX, EDX, and ECX instead of on the stack. Functions
  28065. that take a variable number of arguments continue to be passed all
  28066. of their arguments on the stack.
  28067. Beware that on some ELF systems this attribute is unsuitable for
  28068. global functions in shared libraries with lazy binding (which is
  28069. the default). Lazy binding sends the first call via resolving code
  28070. in the loader, which might assume EAX, EDX and ECX can be
  28071. clobbered, as per the standard calling conventions. Solaris 8 is
  28072. affected by this. Systems with the GNU C Library version 2.1 or
  28073. higher and FreeBSD are believed to be safe since the loaders there
  28074. save EAX, EDX and ECX. (Lazy binding can be disabled with the
  28075. linker or the loader if desired, to avoid the problem.)
  28076. 'sseregparm'
  28077. On x86-32 targets with SSE support, the 'sseregparm' attribute
  28078. causes the compiler to pass up to 3 floating-point arguments in SSE
  28079. registers instead of on the stack. Functions that take a variable
  28080. number of arguments continue to pass all of their floating-point
  28081. arguments on the stack.
  28082. 'force_align_arg_pointer'
  28083. On x86 targets, the 'force_align_arg_pointer' attribute may be
  28084. applied to individual function definitions, generating an alternate
  28085. prologue and epilogue that realigns the run-time stack if
  28086. necessary. This supports mixing legacy codes that run with a
  28087. 4-byte aligned stack with modern codes that keep a 16-byte stack
  28088. for SSE compatibility.
  28089. 'stdcall'
  28090. On x86-32 targets, the 'stdcall' attribute causes the compiler to
  28091. assume that the called function pops off the stack space used to
  28092. pass arguments, unless it takes a variable number of arguments.
  28093. 'no_caller_saved_registers'
  28094. Use this attribute to indicate that the specified function has no
  28095. caller-saved registers. That is, all registers are callee-saved.
  28096. For example, this attribute can be used for a function called from
  28097. an interrupt handler. The compiler generates proper function entry
  28098. and exit sequences to save and restore any modified registers,
  28099. except for the EFLAGS register. Since GCC doesn't preserve SSE,
  28100. MMX nor x87 states, the GCC option '-mgeneral-regs-only' should be
  28101. used to compile functions with 'no_caller_saved_registers'
  28102. attribute.
  28103. 'interrupt'
  28104. Use this attribute to indicate that the specified function is an
  28105. interrupt handler or an exception handler (depending on parameters
  28106. passed to the function, explained further). The compiler generates
  28107. function entry and exit sequences suitable for use in an interrupt
  28108. handler when this attribute is present. The 'IRET' instruction,
  28109. instead of the 'RET' instruction, is used to return from interrupt
  28110. handlers. All registers, except for the EFLAGS register which is
  28111. restored by the 'IRET' instruction, are preserved by the compiler.
  28112. Since GCC doesn't preserve SSE, MMX nor x87 states, the GCC option
  28113. '-mgeneral-regs-only' should be used to compile interrupt and
  28114. exception handlers.
  28115. Any interruptible-without-stack-switch code must be compiled with
  28116. '-mno-red-zone' since interrupt handlers can and will, because of
  28117. the hardware design, touch the red zone.
  28118. An interrupt handler must be declared with a mandatory pointer
  28119. argument:
  28120. struct interrupt_frame;
  28121. __attribute__ ((interrupt))
  28122. void
  28123. f (struct interrupt_frame *frame)
  28124. {
  28125. }
  28126. and you must define 'struct interrupt_frame' as described in the
  28127. processor's manual.
  28128. Exception handlers differ from interrupt handlers because the
  28129. system pushes an error code on the stack. An exception handler
  28130. declaration is similar to that for an interrupt handler, but with a
  28131. different mandatory function signature. The compiler arranges to
  28132. pop the error code off the stack before the 'IRET' instruction.
  28133. #ifdef __x86_64__
  28134. typedef unsigned long long int uword_t;
  28135. #else
  28136. typedef unsigned int uword_t;
  28137. #endif
  28138. struct interrupt_frame;
  28139. __attribute__ ((interrupt))
  28140. void
  28141. f (struct interrupt_frame *frame, uword_t error_code)
  28142. {
  28143. ...
  28144. }
  28145. Exception handlers should only be used for exceptions that push an
  28146. error code; you should use an interrupt handler in other cases.
  28147. The system will crash if the wrong kind of handler is used.
  28148. 'target (OPTIONS)'
  28149. As discussed in *note Common Function Attributes::, this attribute
  28150. allows specification of target-specific compilation options.
  28151. On the x86, the following options are allowed:
  28152. '3dnow'
  28153. 'no-3dnow'
  28154. Enable/disable the generation of the 3DNow! instructions.
  28155. '3dnowa'
  28156. 'no-3dnowa'
  28157. Enable/disable the generation of the enhanced 3DNow!
  28158. instructions.
  28159. 'abm'
  28160. 'no-abm'
  28161. Enable/disable the generation of the advanced bit
  28162. instructions.
  28163. 'adx'
  28164. 'no-adx'
  28165. Enable/disable the generation of the ADX instructions.
  28166. 'aes'
  28167. 'no-aes'
  28168. Enable/disable the generation of the AES instructions.
  28169. 'avx'
  28170. 'no-avx'
  28171. Enable/disable the generation of the AVX instructions.
  28172. 'avx2'
  28173. 'no-avx2'
  28174. Enable/disable the generation of the AVX2 instructions.
  28175. 'avx5124fmaps'
  28176. 'no-avx5124fmaps'
  28177. Enable/disable the generation of the AVX5124FMAPS
  28178. instructions.
  28179. 'avx5124vnniw'
  28180. 'no-avx5124vnniw'
  28181. Enable/disable the generation of the AVX5124VNNIW
  28182. instructions.
  28183. 'avx512bitalg'
  28184. 'no-avx512bitalg'
  28185. Enable/disable the generation of the AVX512BITALG
  28186. instructions.
  28187. 'avx512bw'
  28188. 'no-avx512bw'
  28189. Enable/disable the generation of the AVX512BW instructions.
  28190. 'avx512cd'
  28191. 'no-avx512cd'
  28192. Enable/disable the generation of the AVX512CD instructions.
  28193. 'avx512dq'
  28194. 'no-avx512dq'
  28195. Enable/disable the generation of the AVX512DQ instructions.
  28196. 'avx512er'
  28197. 'no-avx512er'
  28198. Enable/disable the generation of the AVX512ER instructions.
  28199. 'avx512f'
  28200. 'no-avx512f'
  28201. Enable/disable the generation of the AVX512F instructions.
  28202. 'avx512ifma'
  28203. 'no-avx512ifma'
  28204. Enable/disable the generation of the AVX512IFMA instructions.
  28205. 'avx512pf'
  28206. 'no-avx512pf'
  28207. Enable/disable the generation of the AVX512PF instructions.
  28208. 'avx512vbmi'
  28209. 'no-avx512vbmi'
  28210. Enable/disable the generation of the AVX512VBMI instructions.
  28211. 'avx512vbmi2'
  28212. 'no-avx512vbmi2'
  28213. Enable/disable the generation of the AVX512VBMI2 instructions.
  28214. 'avx512vl'
  28215. 'no-avx512vl'
  28216. Enable/disable the generation of the AVX512VL instructions.
  28217. 'avx512vnni'
  28218. 'no-avx512vnni'
  28219. Enable/disable the generation of the AVX512VNNI instructions.
  28220. 'avx512vpopcntdq'
  28221. 'no-avx512vpopcntdq'
  28222. Enable/disable the generation of the AVX512VPOPCNTDQ
  28223. instructions.
  28224. 'bmi'
  28225. 'no-bmi'
  28226. Enable/disable the generation of the BMI instructions.
  28227. 'bmi2'
  28228. 'no-bmi2'
  28229. Enable/disable the generation of the BMI2 instructions.
  28230. 'cldemote'
  28231. 'no-cldemote'
  28232. Enable/disable the generation of the CLDEMOTE instructions.
  28233. 'clflushopt'
  28234. 'no-clflushopt'
  28235. Enable/disable the generation of the CLFLUSHOPT instructions.
  28236. 'clwb'
  28237. 'no-clwb'
  28238. Enable/disable the generation of the CLWB instructions.
  28239. 'clzero'
  28240. 'no-clzero'
  28241. Enable/disable the generation of the CLZERO instructions.
  28242. 'crc32'
  28243. 'no-crc32'
  28244. Enable/disable the generation of the CRC32 instructions.
  28245. 'cx16'
  28246. 'no-cx16'
  28247. Enable/disable the generation of the CMPXCHG16B instructions.
  28248. 'default'
  28249. *Note Function Multiversioning::, where it is used to specify
  28250. the default function version.
  28251. 'f16c'
  28252. 'no-f16c'
  28253. Enable/disable the generation of the F16C instructions.
  28254. 'fma'
  28255. 'no-fma'
  28256. Enable/disable the generation of the FMA instructions.
  28257. 'fma4'
  28258. 'no-fma4'
  28259. Enable/disable the generation of the FMA4 instructions.
  28260. 'fsgsbase'
  28261. 'no-fsgsbase'
  28262. Enable/disable the generation of the FSGSBASE instructions.
  28263. 'fxsr'
  28264. 'no-fxsr'
  28265. Enable/disable the generation of the FXSR instructions.
  28266. 'gfni'
  28267. 'no-gfni'
  28268. Enable/disable the generation of the GFNI instructions.
  28269. 'hle'
  28270. 'no-hle'
  28271. Enable/disable the generation of the HLE instruction prefixes.
  28272. 'lwp'
  28273. 'no-lwp'
  28274. Enable/disable the generation of the LWP instructions.
  28275. 'lzcnt'
  28276. 'no-lzcnt'
  28277. Enable/disable the generation of the LZCNT instructions.
  28278. 'mmx'
  28279. 'no-mmx'
  28280. Enable/disable the generation of the MMX instructions.
  28281. 'movbe'
  28282. 'no-movbe'
  28283. Enable/disable the generation of the MOVBE instructions.
  28284. 'movdir64b'
  28285. 'no-movdir64b'
  28286. Enable/disable the generation of the MOVDIR64B instructions.
  28287. 'movdiri'
  28288. 'no-movdiri'
  28289. Enable/disable the generation of the MOVDIRI instructions.
  28290. 'mwaitx'
  28291. 'no-mwaitx'
  28292. Enable/disable the generation of the MWAITX instructions.
  28293. 'pclmul'
  28294. 'no-pclmul'
  28295. Enable/disable the generation of the PCLMUL instructions.
  28296. 'pconfig'
  28297. 'no-pconfig'
  28298. Enable/disable the generation of the PCONFIG instructions.
  28299. 'pku'
  28300. 'no-pku'
  28301. Enable/disable the generation of the PKU instructions.
  28302. 'popcnt'
  28303. 'no-popcnt'
  28304. Enable/disable the generation of the POPCNT instruction.
  28305. 'prefetchwt1'
  28306. 'no-prefetchwt1'
  28307. Enable/disable the generation of the PREFETCHWT1 instructions.
  28308. 'prfchw'
  28309. 'no-prfchw'
  28310. Enable/disable the generation of the PREFETCHW instruction.
  28311. 'ptwrite'
  28312. 'no-ptwrite'
  28313. Enable/disable the generation of the PTWRITE instructions.
  28314. 'rdpid'
  28315. 'no-rdpid'
  28316. Enable/disable the generation of the RDPID instructions.
  28317. 'rdrnd'
  28318. 'no-rdrnd'
  28319. Enable/disable the generation of the RDRND instructions.
  28320. 'rdseed'
  28321. 'no-rdseed'
  28322. Enable/disable the generation of the RDSEED instructions.
  28323. 'rtm'
  28324. 'no-rtm'
  28325. Enable/disable the generation of the RTM instructions.
  28326. 'sahf'
  28327. 'no-sahf'
  28328. Enable/disable the generation of the SAHF instructions.
  28329. 'sgx'
  28330. 'no-sgx'
  28331. Enable/disable the generation of the SGX instructions.
  28332. 'sha'
  28333. 'no-sha'
  28334. Enable/disable the generation of the SHA instructions.
  28335. 'shstk'
  28336. 'no-shstk'
  28337. Enable/disable the shadow stack built-in functions from CET.
  28338. 'sse'
  28339. 'no-sse'
  28340. Enable/disable the generation of the SSE instructions.
  28341. 'sse2'
  28342. 'no-sse2'
  28343. Enable/disable the generation of the SSE2 instructions.
  28344. 'sse3'
  28345. 'no-sse3'
  28346. Enable/disable the generation of the SSE3 instructions.
  28347. 'sse4'
  28348. 'no-sse4'
  28349. Enable/disable the generation of the SSE4 instructions (both
  28350. SSE4.1 and SSE4.2).
  28351. 'sse4.1'
  28352. 'no-sse4.1'
  28353. Enable/disable the generation of the sse4.1 instructions.
  28354. 'sse4.2'
  28355. 'no-sse4.2'
  28356. Enable/disable the generation of the sse4.2 instructions.
  28357. 'sse4a'
  28358. 'no-sse4a'
  28359. Enable/disable the generation of the SSE4A instructions.
  28360. 'ssse3'
  28361. 'no-ssse3'
  28362. Enable/disable the generation of the SSSE3 instructions.
  28363. 'tbm'
  28364. 'no-tbm'
  28365. Enable/disable the generation of the TBM instructions.
  28366. 'vaes'
  28367. 'no-vaes'
  28368. Enable/disable the generation of the VAES instructions.
  28369. 'vpclmulqdq'
  28370. 'no-vpclmulqdq'
  28371. Enable/disable the generation of the VPCLMULQDQ instructions.
  28372. 'waitpkg'
  28373. 'no-waitpkg'
  28374. Enable/disable the generation of the WAITPKG instructions.
  28375. 'wbnoinvd'
  28376. 'no-wbnoinvd'
  28377. Enable/disable the generation of the WBNOINVD instructions.
  28378. 'xop'
  28379. 'no-xop'
  28380. Enable/disable the generation of the XOP instructions.
  28381. 'xsave'
  28382. 'no-xsave'
  28383. Enable/disable the generation of the XSAVE instructions.
  28384. 'xsavec'
  28385. 'no-xsavec'
  28386. Enable/disable the generation of the XSAVEC instructions.
  28387. 'xsaveopt'
  28388. 'no-xsaveopt'
  28389. Enable/disable the generation of the XSAVEOPT instructions.
  28390. 'xsaves'
  28391. 'no-xsaves'
  28392. Enable/disable the generation of the XSAVES instructions.
  28393. 'cld'
  28394. 'no-cld'
  28395. Enable/disable the generation of the CLD before string moves.
  28396. 'fancy-math-387'
  28397. 'no-fancy-math-387'
  28398. Enable/disable the generation of the 'sin', 'cos', and 'sqrt'
  28399. instructions on the 387 floating-point unit.
  28400. 'ieee-fp'
  28401. 'no-ieee-fp'
  28402. Enable/disable the generation of floating point that depends
  28403. on IEEE arithmetic.
  28404. 'inline-all-stringops'
  28405. 'no-inline-all-stringops'
  28406. Enable/disable inlining of string operations.
  28407. 'inline-stringops-dynamically'
  28408. 'no-inline-stringops-dynamically'
  28409. Enable/disable the generation of the inline code to do small
  28410. string operations and calling the library routines for large
  28411. operations.
  28412. 'align-stringops'
  28413. 'no-align-stringops'
  28414. Do/do not align destination of inlined string operations.
  28415. 'recip'
  28416. 'no-recip'
  28417. Enable/disable the generation of RCPSS, RCPPS, RSQRTSS and
  28418. RSQRTPS instructions followed an additional Newton-Raphson
  28419. step instead of doing a floating-point division.
  28420. 'arch=ARCH'
  28421. Specify the architecture to generate code for in compiling the
  28422. function.
  28423. 'tune=TUNE'
  28424. Specify the architecture to tune for in compiling the
  28425. function.
  28426. 'fpmath=FPMATH'
  28427. Specify which floating-point unit to use. You must specify
  28428. the 'target("fpmath=sse,387")' option as
  28429. 'target("fpmath=sse+387")' because the comma would separate
  28430. different options.
  28431. 'indirect_branch("CHOICE")'
  28432. On x86 targets, the 'indirect_branch' attribute causes the
  28433. compiler to convert indirect call and jump with CHOICE.
  28434. 'keep' keeps indirect call and jump unmodified. 'thunk'
  28435. converts indirect call and jump to call and return thunk.
  28436. 'thunk-inline' converts indirect call and jump to inlined call
  28437. and return thunk. 'thunk-extern' converts indirect call and
  28438. jump to external call and return thunk provided in a separate
  28439. object file.
  28440. 'function_return("CHOICE")'
  28441. On x86 targets, the 'function_return' attribute causes the
  28442. compiler to convert function return with CHOICE. 'keep' keeps
  28443. function return unmodified. 'thunk' converts function return
  28444. to call and return thunk. 'thunk-inline' converts function
  28445. return to inlined call and return thunk. 'thunk-extern'
  28446. converts function return to external call and return thunk
  28447. provided in a separate object file.
  28448. 'nocf_check'
  28449. The 'nocf_check' attribute on a function is used to inform the
  28450. compiler that the function's prologue should not be
  28451. instrumented when compiled with the '-fcf-protection=branch'
  28452. option. The compiler assumes that the function's address is a
  28453. valid target for a control-flow transfer.
  28454. The 'nocf_check' attribute on a type of pointer to function is
  28455. used to inform the compiler that a call through the pointer
  28456. should not be instrumented when compiled with the
  28457. '-fcf-protection=branch' option. The compiler assumes that
  28458. the function's address from the pointer is a valid target for
  28459. a control-flow transfer. A direct function call through a
  28460. function name is assumed to be a safe call thus direct calls
  28461. are not instrumented by the compiler.
  28462. The 'nocf_check' attribute is applied to an object's type. In
  28463. case of assignment of a function address or a function pointer
  28464. to another pointer, the attribute is not carried over from the
  28465. right-hand object's type; the type of left-hand object stays
  28466. unchanged. The compiler checks for 'nocf_check' attribute
  28467. mismatch and reports a warning in case of mismatch.
  28468. {
  28469. int foo (void) __attribute__(nocf_check);
  28470. void (*foo1)(void) __attribute__(nocf_check);
  28471. void (*foo2)(void);
  28472. /* foo's address is assumed to be valid. */
  28473. int
  28474. foo (void)
  28475. /* This call site is not checked for control-flow
  28476. validity. */
  28477. (*foo1)();
  28478. /* A warning is issued about attribute mismatch. */
  28479. foo1 = foo2;
  28480. /* This call site is still not checked. */
  28481. (*foo1)();
  28482. /* This call site is checked. */
  28483. (*foo2)();
  28484. /* A warning is issued about attribute mismatch. */
  28485. foo2 = foo1;
  28486. /* This call site is still checked. */
  28487. (*foo2)();
  28488. return 0;
  28489. }
  28490. 'cf_check'
  28491. The 'cf_check' attribute on a function is used to inform the
  28492. compiler that ENDBR instruction should be placed at the
  28493. function entry when '-fcf-protection=branch' is enabled.
  28494. 'indirect_return'
  28495. The 'indirect_return' attribute can be applied to a function,
  28496. as well as variable or type of function pointer to inform the
  28497. compiler that the function may return via indirect branch.
  28498. 'fentry_name("NAME")'
  28499. On x86 targets, the 'fentry_name' attribute sets the function
  28500. to call on function entry when function instrumentation is
  28501. enabled with '-pg -mfentry'. When NAME is nop then a 5 byte
  28502. nop sequence is generated.
  28503. 'fentry_section("NAME")'
  28504. On x86 targets, the 'fentry_section' attribute sets the name
  28505. of the section to record function entry instrumentation calls
  28506. in when enabled with '-pg -mrecord-mcount'
  28507. On the x86, the inliner does not inline a function that has
  28508. different target options than the caller, unless the callee has a
  28509. subset of the target options of the caller. For example a function
  28510. declared with 'target("sse3")' can inline a function with
  28511. 'target("sse2")', since '-msse3' implies '-msse2'.
  28512. 
  28513. File: gcc.info, Node: Xstormy16 Function Attributes, Prev: x86 Function Attributes, Up: Function Attributes
  28514. 6.33.36 Xstormy16 Function Attributes
  28515. -------------------------------------
  28516. These function attributes are supported by the Xstormy16 back end:
  28517. 'interrupt'
  28518. Use this attribute to indicate that the specified function is an
  28519. interrupt handler. The compiler generates function entry and exit
  28520. sequences suitable for use in an interrupt handler when this
  28521. attribute is present.
  28522. 
  28523. File: gcc.info, Node: Variable Attributes, Next: Type Attributes, Prev: Function Attributes, Up: C Extensions
  28524. 6.34 Specifying Attributes of Variables
  28525. =======================================
  28526. The keyword '__attribute__' allows you to specify special properties of
  28527. variables, function parameters, or structure, union, and, in C++, class
  28528. members. This '__attribute__' keyword is followed by an attribute
  28529. specification enclosed in double parentheses. Some attributes are
  28530. currently defined generically for variables. Other attributes are
  28531. defined for variables on particular target systems. Other attributes
  28532. are available for functions (*note Function Attributes::), labels (*note
  28533. Label Attributes::), enumerators (*note Enumerator Attributes::),
  28534. statements (*note Statement Attributes::), and for types (*note Type
  28535. Attributes::). Other front ends might define more attributes (*note
  28536. Extensions to the C++ Language: C++ Extensions.).
  28537. *Note Attribute Syntax::, for details of the exact syntax for using
  28538. attributes.
  28539. * Menu:
  28540. * Common Variable Attributes::
  28541. * ARC Variable Attributes::
  28542. * AVR Variable Attributes::
  28543. * Blackfin Variable Attributes::
  28544. * H8/300 Variable Attributes::
  28545. * IA-64 Variable Attributes::
  28546. * M32R/D Variable Attributes::
  28547. * MeP Variable Attributes::
  28548. * Microsoft Windows Variable Attributes::
  28549. * MSP430 Variable Attributes::
  28550. * Nvidia PTX Variable Attributes::
  28551. * PowerPC Variable Attributes::
  28552. * RL78 Variable Attributes::
  28553. * V850 Variable Attributes::
  28554. * x86 Variable Attributes::
  28555. * Xstormy16 Variable Attributes::
  28556. 
  28557. File: gcc.info, Node: Common Variable Attributes, Next: ARC Variable Attributes, Up: Variable Attributes
  28558. 6.34.1 Common Variable Attributes
  28559. ---------------------------------
  28560. The following attributes are supported on most targets.
  28561. 'alias ("TARGET")'
  28562. The 'alias' variable attribute causes the declaration to be emitted
  28563. as an alias for another symbol known as an "alias target". Except
  28564. for top-level qualifiers the alias target must have the same type
  28565. as the alias. For instance, the following
  28566. int var_target;
  28567. extern int __attribute__ ((alias ("var_target"))) var_alias;
  28568. defines 'var_alias' to be an alias for the 'var_target' variable.
  28569. It is an error if the alias target is not defined in the same
  28570. translation unit as the alias.
  28571. Note that in the absence of the attribute GCC assumes that distinct
  28572. declarations with external linkage denote distinct objects. Using
  28573. both the alias and the alias target to access the same object is
  28574. undefined in a translation unit without a declaration of the alias
  28575. with the attribute.
  28576. This attribute requires assembler and object file support, and may
  28577. not be available on all targets.
  28578. 'aligned'
  28579. 'aligned (ALIGNMENT)'
  28580. The 'aligned' attribute specifies a minimum alignment for the
  28581. variable or structure field, measured in bytes. When specified,
  28582. ALIGNMENT must be an integer constant power of 2. Specifying no
  28583. ALIGNMENT argument implies the maximum alignment for the target,
  28584. which is often, but by no means always, 8 or 16 bytes.
  28585. For example, the declaration:
  28586. int x __attribute__ ((aligned (16))) = 0;
  28587. causes the compiler to allocate the global variable 'x' on a
  28588. 16-byte boundary. On a 68040, this could be used in conjunction
  28589. with an 'asm' expression to access the 'move16' instruction which
  28590. requires 16-byte aligned operands.
  28591. You can also specify the alignment of structure fields. For
  28592. example, to create a double-word aligned 'int' pair, you could
  28593. write:
  28594. struct foo { int x[2] __attribute__ ((aligned (8))); };
  28595. This is an alternative to creating a union with a 'double' member,
  28596. which forces the union to be double-word aligned.
  28597. As in the preceding examples, you can explicitly specify the
  28598. alignment (in bytes) that you wish the compiler to use for a given
  28599. variable or structure field. Alternatively, you can leave out the
  28600. alignment factor and just ask the compiler to align a variable or
  28601. field to the default alignment for the target architecture you are
  28602. compiling for. The default alignment is sufficient for all scalar
  28603. types, but may not be enough for all vector types on a target that
  28604. supports vector operations. The default alignment is fixed for a
  28605. particular target ABI.
  28606. GCC also provides a target specific macro '__BIGGEST_ALIGNMENT__',
  28607. which is the largest alignment ever used for any data type on the
  28608. target machine you are compiling for. For example, you could
  28609. write:
  28610. short array[3] __attribute__ ((aligned (__BIGGEST_ALIGNMENT__)));
  28611. The compiler automatically sets the alignment for the declared
  28612. variable or field to '__BIGGEST_ALIGNMENT__'. Doing this can often
  28613. make copy operations more efficient, because the compiler can use
  28614. whatever instructions copy the biggest chunks of memory when
  28615. performing copies to or from the variables or fields that you have
  28616. aligned this way. Note that the value of '__BIGGEST_ALIGNMENT__'
  28617. may change depending on command-line options.
  28618. When used on a struct, or struct member, the 'aligned' attribute
  28619. can only increase the alignment; in order to decrease it, the
  28620. 'packed' attribute must be specified as well. When used as part of
  28621. a typedef, the 'aligned' attribute can both increase and decrease
  28622. alignment, and specifying the 'packed' attribute generates a
  28623. warning.
  28624. Note that the effectiveness of 'aligned' attributes for static
  28625. variables may be limited by inherent limitations in the system
  28626. linker and/or object file format. On some systems, the linker is
  28627. only able to arrange for variables to be aligned up to a certain
  28628. maximum alignment. (For some linkers, the maximum supported
  28629. alignment may be very very small.) If your linker is only able to
  28630. align variables up to a maximum of 8-byte alignment, then
  28631. specifying 'aligned(16)' in an '__attribute__' still only provides
  28632. you with 8-byte alignment. See your linker documentation for
  28633. further information.
  28634. Stack variables are not affected by linker restrictions; GCC can
  28635. properly align them on any target.
  28636. The 'aligned' attribute can also be used for functions (*note
  28637. Common Function Attributes::.)
  28638. 'warn_if_not_aligned (ALIGNMENT)'
  28639. This attribute specifies a threshold for the structure field,
  28640. measured in bytes. If the structure field is aligned below the
  28641. threshold, a warning will be issued. For example, the declaration:
  28642. struct foo
  28643. {
  28644. int i1;
  28645. int i2;
  28646. unsigned long long x __attribute__ ((warn_if_not_aligned (16)));
  28647. };
  28648. causes the compiler to issue an warning on 'struct foo', like
  28649. 'warning: alignment 8 of 'struct foo' is less than 16'. The
  28650. compiler also issues a warning, like 'warning: 'x' offset 8 in
  28651. 'struct foo' isn't aligned to 16', when the structure field has the
  28652. misaligned offset:
  28653. struct __attribute__ ((aligned (16))) foo
  28654. {
  28655. int i1;
  28656. int i2;
  28657. unsigned long long x __attribute__ ((warn_if_not_aligned (16)));
  28658. };
  28659. This warning can be disabled by '-Wno-if-not-aligned'. The
  28660. 'warn_if_not_aligned' attribute can also be used for types (*note
  28661. Common Type Attributes::.)
  28662. 'alloc_size (POSITION)'
  28663. 'alloc_size (POSITION-1, POSITION-2)'
  28664. The 'alloc_size' variable attribute may be applied to the
  28665. declaration of a pointer to a function that returns a pointer and
  28666. takes at least one argument of an integer type. It indicates that
  28667. the returned pointer points to an object whose size is given by the
  28668. function argument at POSITION-1, or by the product of the arguments
  28669. at POSITION-1 and POSITION-2. Meaningful sizes are positive values
  28670. less than 'PTRDIFF_MAX'. Other sizes are disagnosed when detected.
  28671. GCC uses this information to improve the results of
  28672. '__builtin_object_size'.
  28673. For instance, the following declarations
  28674. typedef __attribute__ ((alloc_size (1, 2))) void*
  28675. (*calloc_ptr) (size_t, size_t);
  28676. typedef __attribute__ ((alloc_size (1))) void*
  28677. (*malloc_ptr) (size_t);
  28678. specify that 'calloc_ptr' is a pointer of a function that, like the
  28679. standard C function 'calloc', returns an object whose size is given
  28680. by the product of arguments 1 and 2, and similarly, that
  28681. 'malloc_ptr', like the standard C function 'malloc', returns an
  28682. object whose size is given by argument 1 to the function.
  28683. 'cleanup (CLEANUP_FUNCTION)'
  28684. The 'cleanup' attribute runs a function when the variable goes out
  28685. of scope. This attribute can only be applied to auto function
  28686. scope variables; it may not be applied to parameters or variables
  28687. with static storage duration. The function must take one
  28688. parameter, a pointer to a type compatible with the variable. The
  28689. return value of the function (if any) is ignored.
  28690. If '-fexceptions' is enabled, then CLEANUP_FUNCTION is run during
  28691. the stack unwinding that happens during the processing of the
  28692. exception. Note that the 'cleanup' attribute does not allow the
  28693. exception to be caught, only to perform an action. It is undefined
  28694. what happens if CLEANUP_FUNCTION does not return normally.
  28695. 'common'
  28696. 'nocommon'
  28697. The 'common' attribute requests GCC to place a variable in "common"
  28698. storage. The 'nocommon' attribute requests the opposite--to
  28699. allocate space for it directly.
  28700. These attributes override the default chosen by the '-fno-common'
  28701. and '-fcommon' flags respectively.
  28702. 'copy'
  28703. 'copy (VARIABLE)'
  28704. The 'copy' attribute applies the set of attributes with which
  28705. VARIABLE has been declared to the declaration of the variable to
  28706. which the attribute is applied. The attribute is designed for
  28707. libraries that define aliases that are expected to specify the same
  28708. set of attributes as the aliased symbols. The 'copy' attribute can
  28709. be used with variables, functions or types. However, the kind of
  28710. symbol to which the attribute is applied (either varible or
  28711. function) must match the kind of symbol to which the argument
  28712. refers. The 'copy' attribute copies only syntactic and semantic
  28713. attributes but not attributes that affect a symbol's linkage or
  28714. visibility such as 'alias', 'visibility', or 'weak'. The
  28715. 'deprecated' attribute is also not copied. *Note Common Function
  28716. Attributes::. *Note Common Type Attributes::.
  28717. 'deprecated'
  28718. 'deprecated (MSG)'
  28719. The 'deprecated' attribute results in a warning if the variable is
  28720. used anywhere in the source file. This is useful when identifying
  28721. variables that are expected to be removed in a future version of a
  28722. program. The warning also includes the location of the declaration
  28723. of the deprecated variable, to enable users to easily find further
  28724. information about why the variable is deprecated, or what they
  28725. should do instead. Note that the warning only occurs for uses:
  28726. extern int old_var __attribute__ ((deprecated));
  28727. extern int old_var;
  28728. int new_fn () { return old_var; }
  28729. results in a warning on line 3 but not line 2. The optional MSG
  28730. argument, which must be a string, is printed in the warning if
  28731. present.
  28732. The 'deprecated' attribute can also be used for functions and types
  28733. (*note Common Function Attributes::, *note Common Type
  28734. Attributes::).
  28735. The message attached to the attribute is affected by the setting of
  28736. the '-fmessage-length' option.
  28737. 'mode (MODE)'
  28738. This attribute specifies the data type for the
  28739. declaration--whichever type corresponds to the mode MODE. This in
  28740. effect lets you request an integer or floating-point type according
  28741. to its width.
  28742. *Note (gccint)Machine Modes::, for a list of the possible keywords
  28743. for MODE. You may also specify a mode of 'byte' or '__byte__' to
  28744. indicate the mode corresponding to a one-byte integer, 'word' or
  28745. '__word__' for the mode of a one-word integer, and 'pointer' or
  28746. '__pointer__' for the mode used to represent pointers.
  28747. 'nonstring'
  28748. The 'nonstring' variable attribute specifies that an object or
  28749. member declaration with type array of 'char', 'signed char', or
  28750. 'unsigned char', or pointer to such a type is intended to store
  28751. character arrays that do not necessarily contain a terminating
  28752. 'NUL'. This is useful in detecting uses of such arrays or pointers
  28753. with functions that expect 'NUL'-terminated strings, and to avoid
  28754. warnings when such an array or pointer is used as an argument to a
  28755. bounded string manipulation function such as 'strncpy'. For
  28756. example, without the attribute, GCC will issue a warning for the
  28757. 'strncpy' call below because it may truncate the copy without
  28758. appending the terminating 'NUL' character. Using the attribute
  28759. makes it possible to suppress the warning. However, when the array
  28760. is declared with the attribute the call to 'strlen' is diagnosed
  28761. because when the array doesn't contain a 'NUL'-terminated string
  28762. the call is undefined. To copy, compare, of search non-string
  28763. character arrays use the 'memcpy', 'memcmp', 'memchr', and other
  28764. functions that operate on arrays of bytes. In addition, calling
  28765. 'strnlen' and 'strndup' with such arrays is safe provided a
  28766. suitable bound is specified, and not diagnosed.
  28767. struct Data
  28768. {
  28769. char name [32] __attribute__ ((nonstring));
  28770. };
  28771. int f (struct Data *pd, const char *s)
  28772. {
  28773. strncpy (pd->name, s, sizeof pd->name);
  28774. ...
  28775. return strlen (pd->name); // unsafe, gets a warning
  28776. }
  28777. 'packed'
  28778. The 'packed' attribute specifies that a structure member should
  28779. have the smallest possible alignment--one bit for a bit-field and
  28780. one byte otherwise, unless a larger value is specified with the
  28781. 'aligned' attribute. The attribute does not apply to non-member
  28782. objects.
  28783. For example in the structure below, the member array 'x' is packed
  28784. so that it immediately follows 'a' with no intervening padding:
  28785. struct foo
  28786. {
  28787. char a;
  28788. int x[2] __attribute__ ((packed));
  28789. };
  28790. _Note:_ The 4.1, 4.2 and 4.3 series of GCC ignore the 'packed'
  28791. attribute on bit-fields of type 'char'. This has been fixed in GCC
  28792. 4.4 but the change can lead to differences in the structure layout.
  28793. See the documentation of '-Wpacked-bitfield-compat' for more
  28794. information.
  28795. 'section ("SECTION-NAME")'
  28796. Normally, the compiler places the objects it generates in sections
  28797. like 'data' and 'bss'. Sometimes, however, you need additional
  28798. sections, or you need certain particular variables to appear in
  28799. special sections, for example to map to special hardware. The
  28800. 'section' attribute specifies that a variable (or function) lives
  28801. in a particular section. For example, this small program uses
  28802. several specific section names:
  28803. struct duart a __attribute__ ((section ("DUART_A"))) = { 0 };
  28804. struct duart b __attribute__ ((section ("DUART_B"))) = { 0 };
  28805. char stack[10000] __attribute__ ((section ("STACK"))) = { 0 };
  28806. int init_data __attribute__ ((section ("INITDATA")));
  28807. main()
  28808. {
  28809. /* Initialize stack pointer */
  28810. init_sp (stack + sizeof (stack));
  28811. /* Initialize initialized data */
  28812. memcpy (&init_data, &data, &edata - &data);
  28813. /* Turn on the serial ports */
  28814. init_duart (&a);
  28815. init_duart (&b);
  28816. }
  28817. Use the 'section' attribute with _global_ variables and not _local_
  28818. variables, as shown in the example.
  28819. You may use the 'section' attribute with initialized or
  28820. uninitialized global variables but the linker requires each object
  28821. be defined once, with the exception that uninitialized variables
  28822. tentatively go in the 'common' (or 'bss') section and can be
  28823. multiply "defined". Using the 'section' attribute changes what
  28824. section the variable goes into and may cause the linker to issue an
  28825. error if an uninitialized variable has multiple definitions. You
  28826. can force a variable to be initialized with the '-fno-common' flag
  28827. or the 'nocommon' attribute.
  28828. Some file formats do not support arbitrary sections so the
  28829. 'section' attribute is not available on all platforms. If you need
  28830. to map the entire contents of a module to a particular section,
  28831. consider using the facilities of the linker instead.
  28832. 'tls_model ("TLS_MODEL")'
  28833. The 'tls_model' attribute sets thread-local storage model (*note
  28834. Thread-Local::) of a particular '__thread' variable, overriding
  28835. '-ftls-model=' command-line switch on a per-variable basis. The
  28836. TLS_MODEL argument should be one of 'global-dynamic',
  28837. 'local-dynamic', 'initial-exec' or 'local-exec'.
  28838. Not all targets support this attribute.
  28839. 'unused'
  28840. This attribute, attached to a variable, means that the variable is
  28841. meant to be possibly unused. GCC does not produce a warning for
  28842. this variable.
  28843. 'used'
  28844. This attribute, attached to a variable with static storage, means
  28845. that the variable must be emitted even if it appears that the
  28846. variable is not referenced.
  28847. When applied to a static data member of a C++ class template, the
  28848. attribute also means that the member is instantiated if the class
  28849. itself is instantiated.
  28850. 'vector_size (BYTES)'
  28851. This attribute specifies the vector size for the type of the
  28852. declared variable, measured in bytes. The type to which it applies
  28853. is known as the "base type". The BYTES argument must be a positive
  28854. power-of-two multiple of the base type size. For example, the
  28855. declaration:
  28856. int foo __attribute__ ((vector_size (16)));
  28857. causes the compiler to set the mode for 'foo', to be 16 bytes,
  28858. divided into 'int' sized units. Assuming a 32-bit 'int', 'foo''s
  28859. type is a vector of four units of four bytes each, and the
  28860. corresponding mode of 'foo' is 'V4SI'. *Note Vector Extensions::,
  28861. for details of manipulating vector variables.
  28862. This attribute is only applicable to integral and floating scalars,
  28863. although arrays, pointers, and function return values are allowed
  28864. in conjunction with this construct.
  28865. Aggregates with this attribute are invalid, even if they are of the
  28866. same size as a corresponding scalar. For example, the declaration:
  28867. struct S { int a; };
  28868. struct S __attribute__ ((vector_size (16))) foo;
  28869. is invalid even if the size of the structure is the same as the
  28870. size of the 'int'.
  28871. 'visibility ("VISIBILITY_TYPE")'
  28872. This attribute affects the linkage of the declaration to which it
  28873. is attached. The 'visibility' attribute is described in *note
  28874. Common Function Attributes::.
  28875. 'weak'
  28876. The 'weak' attribute is described in *note Common Function
  28877. Attributes::.
  28878. 'noinit'
  28879. Any data with the 'noinit' attribute will not be initialized by the
  28880. C runtime startup code, or the program loader. Not initializing
  28881. data in this way can reduce program startup times. This attribute
  28882. is specific to ELF targets and relies on the linker to place such
  28883. data in the right location
  28884. 
  28885. File: gcc.info, Node: ARC Variable Attributes, Next: AVR Variable Attributes, Prev: Common Variable Attributes, Up: Variable Attributes
  28886. 6.34.2 ARC Variable Attributes
  28887. ------------------------------
  28888. 'aux'
  28889. The 'aux' attribute is used to directly access the ARC's auxiliary
  28890. register space from C. The auxilirary register number is given via
  28891. attribute argument.
  28892. 
  28893. File: gcc.info, Node: AVR Variable Attributes, Next: Blackfin Variable Attributes, Prev: ARC Variable Attributes, Up: Variable Attributes
  28894. 6.34.3 AVR Variable Attributes
  28895. ------------------------------
  28896. 'progmem'
  28897. The 'progmem' attribute is used on the AVR to place read-only data
  28898. in the non-volatile program memory (flash). The 'progmem'
  28899. attribute accomplishes this by putting respective variables into a
  28900. section whose name starts with '.progmem'.
  28901. This attribute works similar to the 'section' attribute but adds
  28902. additional checking.
  28903. * Ordinary AVR cores with 32 general purpose registers:
  28904. 'progmem' affects the location of the data but not how this
  28905. data is accessed. In order to read data located with the
  28906. 'progmem' attribute (inline) assembler must be used.
  28907. /* Use custom macros from AVR-LibC (http://nongnu.org/avr-libc/user-manual/) */
  28908. #include <avr/pgmspace.h>
  28909. /* Locate var in flash memory */
  28910. const int var[2] PROGMEM = { 1, 2 };
  28911. int read_var (int i)
  28912. {
  28913. /* Access var[] by accessor macro from avr/pgmspace.h */
  28914. return (int) pgm_read_word (& var[i]);
  28915. }
  28916. AVR is a Harvard architecture processor and data and read-only
  28917. data normally resides in the data memory (RAM).
  28918. See also the *note AVR Named Address Spaces:: section for an
  28919. alternate way to locate and access data in flash memory.
  28920. * AVR cores with flash memory visible in the RAM address range:
  28921. On such devices, there is no need for attribute 'progmem' or
  28922. *note '__flash': AVR Named Address Spaces. qualifier at all.
  28923. Just use standard C / C++. The compiler will generate 'LD*'
  28924. instructions. As flash memory is visible in the RAM address
  28925. range, and the default linker script does _not_ locate
  28926. '.rodata' in RAM, no special features are needed in order not
  28927. to waste RAM for read-only data or to read from flash. You
  28928. might even get slightly better performance by avoiding
  28929. 'progmem' and '__flash'. This applies to devices from
  28930. families 'avrtiny' and 'avrxmega3', see *note AVR Options::
  28931. for an overview.
  28932. * Reduced AVR Tiny cores like ATtiny40:
  28933. The compiler adds '0x4000' to the addresses of objects and
  28934. declarations in 'progmem' and locates the objects in flash
  28935. memory, namely in section '.progmem.data'. The offset is
  28936. needed because the flash memory is visible in the RAM address
  28937. space starting at address '0x4000'.
  28938. Data in 'progmem' can be accessed by means of ordinary C code,
  28939. no special functions or macros are needed.
  28940. /* var is located in flash memory */
  28941. extern const int var[2] __attribute__((progmem));
  28942. int read_var (int i)
  28943. {
  28944. return var[i];
  28945. }
  28946. Please notice that on these devices, there is no need for
  28947. 'progmem' at all.
  28948. 'io'
  28949. 'io (ADDR)'
  28950. Variables with the 'io' attribute are used to address memory-mapped
  28951. peripherals in the io address range. If an address is specified,
  28952. the variable is assigned that address, and the value is interpreted
  28953. as an address in the data address space. Example:
  28954. volatile int porta __attribute__((io (0x22)));
  28955. The address specified in the address in the data address range.
  28956. Otherwise, the variable it is not assigned an address, but the
  28957. compiler will still use in/out instructions where applicable,
  28958. assuming some other module assigns an address in the io address
  28959. range. Example:
  28960. extern volatile int porta __attribute__((io));
  28961. 'io_low'
  28962. 'io_low (ADDR)'
  28963. This is like the 'io' attribute, but additionally it informs the
  28964. compiler that the object lies in the lower half of the I/O area,
  28965. allowing the use of 'cbi', 'sbi', 'sbic' and 'sbis' instructions.
  28966. 'address'
  28967. 'address (ADDR)'
  28968. Variables with the 'address' attribute are used to address
  28969. memory-mapped peripherals that may lie outside the io address
  28970. range.
  28971. volatile int porta __attribute__((address (0x600)));
  28972. 'absdata'
  28973. Variables in static storage and with the 'absdata' attribute can be
  28974. accessed by the 'LDS' and 'STS' instructions which take absolute
  28975. addresses.
  28976. * This attribute is only supported for the reduced AVR Tiny core
  28977. like ATtiny40.
  28978. * You must make sure that respective data is located in the
  28979. address range '0x40'...'0xbf' accessible by 'LDS' and 'STS'.
  28980. One way to achieve this as an appropriate linker description
  28981. file.
  28982. * If the location does not fit the address range of 'LDS' and
  28983. 'STS', there is currently (Binutils 2.26) just an unspecific
  28984. warning like
  28985. 'module.c:(.text+0x1c): warning: internal error: out of
  28986. range error'
  28987. See also the '-mabsdata' *note command-line option: AVR Options.
  28988. 
  28989. File: gcc.info, Node: Blackfin Variable Attributes, Next: H8/300 Variable Attributes, Prev: AVR Variable Attributes, Up: Variable Attributes
  28990. 6.34.4 Blackfin Variable Attributes
  28991. -----------------------------------
  28992. Three attributes are currently defined for the Blackfin.
  28993. 'l1_data'
  28994. 'l1_data_A'
  28995. 'l1_data_B'
  28996. Use these attributes on the Blackfin to place the variable into L1
  28997. Data SRAM. Variables with 'l1_data' attribute are put into the
  28998. specific section named '.l1.data'. Those with 'l1_data_A'
  28999. attribute are put into the specific section named '.l1.data.A'.
  29000. Those with 'l1_data_B' attribute are put into the specific section
  29001. named '.l1.data.B'.
  29002. 'l2'
  29003. Use this attribute on the Blackfin to place the variable into L2
  29004. SRAM. Variables with 'l2' attribute are put into the specific
  29005. section named '.l2.data'.
  29006. 
  29007. File: gcc.info, Node: H8/300 Variable Attributes, Next: IA-64 Variable Attributes, Prev: Blackfin Variable Attributes, Up: Variable Attributes
  29008. 6.34.5 H8/300 Variable Attributes
  29009. ---------------------------------
  29010. These variable attributes are available for H8/300 targets:
  29011. 'eightbit_data'
  29012. Use this attribute on the H8/300, H8/300H, and H8S to indicate that
  29013. the specified variable should be placed into the eight-bit data
  29014. section. The compiler generates more efficient code for certain
  29015. operations on data in the eight-bit data area. Note the eight-bit
  29016. data area is limited to 256 bytes of data.
  29017. You must use GAS and GLD from GNU binutils version 2.7 or later for
  29018. this attribute to work correctly.
  29019. 'tiny_data'
  29020. Use this attribute on the H8/300H and H8S to indicate that the
  29021. specified variable should be placed into the tiny data section.
  29022. The compiler generates more efficient code for loads and stores on
  29023. data in the tiny data section. Note the tiny data area is limited
  29024. to slightly under 32KB of data.
  29025. 
  29026. File: gcc.info, Node: IA-64 Variable Attributes, Next: M32R/D Variable Attributes, Prev: H8/300 Variable Attributes, Up: Variable Attributes
  29027. 6.34.6 IA-64 Variable Attributes
  29028. --------------------------------
  29029. The IA-64 back end supports the following variable attribute:
  29030. 'model (MODEL-NAME)'
  29031. On IA-64, use this attribute to set the addressability of an
  29032. object. At present, the only supported identifier for MODEL-NAME
  29033. is 'small', indicating addressability via "small" (22-bit)
  29034. addresses (so that their addresses can be loaded with the 'addl'
  29035. instruction). Caveat: such addressing is by definition not
  29036. position independent and hence this attribute must not be used for
  29037. objects defined by shared libraries.
  29038. 
  29039. File: gcc.info, Node: M32R/D Variable Attributes, Next: MeP Variable Attributes, Prev: IA-64 Variable Attributes, Up: Variable Attributes
  29040. 6.34.7 M32R/D Variable Attributes
  29041. ---------------------------------
  29042. One attribute is currently defined for the M32R/D.
  29043. 'model (MODEL-NAME)'
  29044. Use this attribute on the M32R/D to set the addressability of an
  29045. object. The identifier MODEL-NAME is one of 'small', 'medium', or
  29046. 'large', representing each of the code models.
  29047. Small model objects live in the lower 16MB of memory (so that their
  29048. addresses can be loaded with the 'ld24' instruction).
  29049. Medium and large model objects may live anywhere in the 32-bit
  29050. address space (the compiler generates 'seth/add3' instructions to
  29051. load their addresses).
  29052. 
  29053. File: gcc.info, Node: MeP Variable Attributes, Next: Microsoft Windows Variable Attributes, Prev: M32R/D Variable Attributes, Up: Variable Attributes
  29054. 6.34.8 MeP Variable Attributes
  29055. ------------------------------
  29056. The MeP target has a number of addressing modes and busses. The 'near'
  29057. space spans the standard memory space's first 16 megabytes (24 bits).
  29058. The 'far' space spans the entire 32-bit memory space. The 'based' space
  29059. is a 128-byte region in the memory space that is addressed relative to
  29060. the '$tp' register. The 'tiny' space is a 65536-byte region relative to
  29061. the '$gp' register. In addition to these memory regions, the MeP target
  29062. has a separate 16-bit control bus which is specified with 'cb'
  29063. attributes.
  29064. 'based'
  29065. Any variable with the 'based' attribute is assigned to the '.based'
  29066. section, and is accessed with relative to the '$tp' register.
  29067. 'tiny'
  29068. Likewise, the 'tiny' attribute assigned variables to the '.tiny'
  29069. section, relative to the '$gp' register.
  29070. 'near'
  29071. Variables with the 'near' attribute are assumed to have addresses
  29072. that fit in a 24-bit addressing mode. This is the default for
  29073. large variables ('-mtiny=4' is the default) but this attribute can
  29074. override '-mtiny=' for small variables, or override '-ml'.
  29075. 'far'
  29076. Variables with the 'far' attribute are addressed using a full
  29077. 32-bit address. Since this covers the entire memory space, this
  29078. allows modules to make no assumptions about where variables might
  29079. be stored.
  29080. 'io'
  29081. 'io (ADDR)'
  29082. Variables with the 'io' attribute are used to address memory-mapped
  29083. peripherals. If an address is specified, the variable is assigned
  29084. that address, else it is not assigned an address (it is assumed
  29085. some other module assigns an address). Example:
  29086. int timer_count __attribute__((io(0x123)));
  29087. 'cb'
  29088. 'cb (ADDR)'
  29089. Variables with the 'cb' attribute are used to access the control
  29090. bus, using special instructions. 'addr' indicates the control bus
  29091. address. Example:
  29092. int cpu_clock __attribute__((cb(0x123)));
  29093. 
  29094. File: gcc.info, Node: Microsoft Windows Variable Attributes, Next: MSP430 Variable Attributes, Prev: MeP Variable Attributes, Up: Variable Attributes
  29095. 6.34.9 Microsoft Windows Variable Attributes
  29096. --------------------------------------------
  29097. You can use these attributes on Microsoft Windows targets. *note x86
  29098. Variable Attributes:: for additional Windows compatibility attributes
  29099. available on all x86 targets.
  29100. 'dllimport'
  29101. 'dllexport'
  29102. The 'dllimport' and 'dllexport' attributes are described in *note
  29103. Microsoft Windows Function Attributes::.
  29104. 'selectany'
  29105. The 'selectany' attribute causes an initialized global variable to
  29106. have link-once semantics. When multiple definitions of the
  29107. variable are encountered by the linker, the first is selected and
  29108. the remainder are discarded. Following usage by the Microsoft
  29109. compiler, the linker is told _not_ to warn about size or content
  29110. differences of the multiple definitions.
  29111. Although the primary usage of this attribute is for POD types, the
  29112. attribute can also be applied to global C++ objects that are
  29113. initialized by a constructor. In this case, the static
  29114. initialization and destruction code for the object is emitted in
  29115. each translation defining the object, but the calls to the
  29116. constructor and destructor are protected by a link-once guard
  29117. variable.
  29118. The 'selectany' attribute is only available on Microsoft Windows
  29119. targets. You can use '__declspec (selectany)' as a synonym for
  29120. '__attribute__ ((selectany))' for compatibility with other
  29121. compilers.
  29122. 'shared'
  29123. On Microsoft Windows, in addition to putting variable definitions
  29124. in a named section, the section can also be shared among all
  29125. running copies of an executable or DLL. For example, this small
  29126. program defines shared data by putting it in a named section
  29127. 'shared' and marking the section shareable:
  29128. int foo __attribute__((section ("shared"), shared)) = 0;
  29129. int
  29130. main()
  29131. {
  29132. /* Read and write foo. All running
  29133. copies see the same value. */
  29134. return 0;
  29135. }
  29136. You may only use the 'shared' attribute along with 'section'
  29137. attribute with a fully-initialized global definition because of the
  29138. way linkers work. See 'section' attribute for more information.
  29139. The 'shared' attribute is only available on Microsoft Windows.
  29140. 
  29141. File: gcc.info, Node: MSP430 Variable Attributes, Next: Nvidia PTX Variable Attributes, Prev: Microsoft Windows Variable Attributes, Up: Variable Attributes
  29142. 6.34.10 MSP430 Variable Attributes
  29143. ----------------------------------
  29144. 'noinit'
  29145. Any data with the 'noinit' attribute will not be initialised by the
  29146. C runtime startup code, or the program loader. Not initialising
  29147. data in this way can reduce program startup times.
  29148. 'persistent'
  29149. Any variable with the 'persistent' attribute will not be
  29150. initialised by the C runtime startup code. Instead its value will
  29151. be set once, when the application is loaded, and then never
  29152. initialised again, even if the processor is reset or the program
  29153. restarts. Persistent data is intended to be placed into FLASH RAM,
  29154. where its value will be retained across resets. The linker script
  29155. being used to create the application should ensure that persistent
  29156. data is correctly placed.
  29157. 'upper'
  29158. 'either'
  29159. These attributes are the same as the MSP430 function attributes of
  29160. the same name (*note MSP430 Function Attributes::).
  29161. 'lower'
  29162. This option behaves mostly the same as the MSP430 function
  29163. attribute of the same name (*note MSP430 Function Attributes::),
  29164. but it has some additional functionality.
  29165. If '-mdata-region='{'upper,either,none'} has been passed, or the
  29166. 'section' attribute is applied to a variable, the compiler will
  29167. generate 430X instructions to handle it. This is because the
  29168. compiler has to assume that the variable could get placed in the
  29169. upper memory region (above address 0xFFFF). Marking the variable
  29170. with the 'lower' attribute informs the compiler that the variable
  29171. will be placed in lower memory so it is safe to use 430
  29172. instructions to handle it.
  29173. In the case of the 'section' attribute, the section name given will
  29174. be used, and the '.lower' prefix will not be added.
  29175. 
  29176. File: gcc.info, Node: Nvidia PTX Variable Attributes, Next: PowerPC Variable Attributes, Prev: MSP430 Variable Attributes, Up: Variable Attributes
  29177. 6.34.11 Nvidia PTX Variable Attributes
  29178. --------------------------------------
  29179. These variable attributes are supported by the Nvidia PTX back end:
  29180. 'shared'
  29181. Use this attribute to place a variable in the '.shared' memory
  29182. space. This memory space is private to each cooperative thread
  29183. array; only threads within one thread block refer to the same
  29184. instance of the variable. The runtime does not initialize
  29185. variables in this memory space.
  29186. 
  29187. File: gcc.info, Node: PowerPC Variable Attributes, Next: RL78 Variable Attributes, Prev: Nvidia PTX Variable Attributes, Up: Variable Attributes
  29188. 6.34.12 PowerPC Variable Attributes
  29189. -----------------------------------
  29190. Three attributes currently are defined for PowerPC configurations:
  29191. 'altivec', 'ms_struct' and 'gcc_struct'.
  29192. For full documentation of the struct attributes please see the
  29193. documentation in *note x86 Variable Attributes::.
  29194. For documentation of 'altivec' attribute please see the documentation
  29195. in *note PowerPC Type Attributes::.
  29196. 
  29197. File: gcc.info, Node: RL78 Variable Attributes, Next: V850 Variable Attributes, Prev: PowerPC Variable Attributes, Up: Variable Attributes
  29198. 6.34.13 RL78 Variable Attributes
  29199. --------------------------------
  29200. The RL78 back end supports the 'saddr' variable attribute. This
  29201. specifies placement of the corresponding variable in the SADDR area,
  29202. which can be accessed more efficiently than the default memory region.
  29203. 
  29204. File: gcc.info, Node: V850 Variable Attributes, Next: x86 Variable Attributes, Prev: RL78 Variable Attributes, Up: Variable Attributes
  29205. 6.34.14 V850 Variable Attributes
  29206. --------------------------------
  29207. These variable attributes are supported by the V850 back end:
  29208. 'sda'
  29209. Use this attribute to explicitly place a variable in the small data
  29210. area, which can hold up to 64 kilobytes.
  29211. 'tda'
  29212. Use this attribute to explicitly place a variable in the tiny data
  29213. area, which can hold up to 256 bytes in total.
  29214. 'zda'
  29215. Use this attribute to explicitly place a variable in the first 32
  29216. kilobytes of memory.
  29217. 
  29218. File: gcc.info, Node: x86 Variable Attributes, Next: Xstormy16 Variable Attributes, Prev: V850 Variable Attributes, Up: Variable Attributes
  29219. 6.34.15 x86 Variable Attributes
  29220. -------------------------------
  29221. Two attributes are currently defined for x86 configurations: 'ms_struct'
  29222. and 'gcc_struct'.
  29223. 'ms_struct'
  29224. 'gcc_struct'
  29225. If 'packed' is used on a structure, or if bit-fields are used, it
  29226. may be that the Microsoft ABI lays out the structure differently
  29227. than the way GCC normally does. Particularly when moving packed
  29228. data between functions compiled with GCC and the native Microsoft
  29229. compiler (either via function call or as data in a file), it may be
  29230. necessary to access either format.
  29231. The 'ms_struct' and 'gcc_struct' attributes correspond to the
  29232. '-mms-bitfields' and '-mno-ms-bitfields' command-line options,
  29233. respectively; see *note x86 Options::, for details of how structure
  29234. layout is affected. *Note x86 Type Attributes::, for information
  29235. about the corresponding attributes on types.
  29236. 
  29237. File: gcc.info, Node: Xstormy16 Variable Attributes, Prev: x86 Variable Attributes, Up: Variable Attributes
  29238. 6.34.16 Xstormy16 Variable Attributes
  29239. -------------------------------------
  29240. One attribute is currently defined for xstormy16 configurations:
  29241. 'below100'.
  29242. 'below100'
  29243. If a variable has the 'below100' attribute ('BELOW100' is allowed
  29244. also), GCC places the variable in the first 0x100 bytes of memory
  29245. and use special opcodes to access it. Such variables are placed in
  29246. either the '.bss_below100' section or the '.data_below100' section.
  29247. 
  29248. File: gcc.info, Node: Type Attributes, Next: Label Attributes, Prev: Variable Attributes, Up: C Extensions
  29249. 6.35 Specifying Attributes of Types
  29250. ===================================
  29251. The keyword '__attribute__' allows you to specify various special
  29252. properties of types. Some type attributes apply only to structure and
  29253. union types, and in C++, also class types, while others can apply to any
  29254. type defined via a 'typedef' declaration. Unless otherwise specified,
  29255. the same restrictions and effects apply to attributes regardless of
  29256. whether a type is a trivial structure or a C++ class with user-defined
  29257. constructors, destructors, or a copy assignment.
  29258. Other attributes are defined for functions (*note Function
  29259. Attributes::), labels (*note Label Attributes::), enumerators (*note
  29260. Enumerator Attributes::), statements (*note Statement Attributes::), and
  29261. for variables (*note Variable Attributes::).
  29262. The '__attribute__' keyword is followed by an attribute specification
  29263. enclosed in double parentheses.
  29264. You may specify type attributes in an enum, struct or union type
  29265. declaration or definition by placing them immediately after the
  29266. 'struct', 'union' or 'enum' keyword. You can also place them just past
  29267. the closing curly brace of the definition, but this is less preferred
  29268. because logically the type should be fully defined at the closing brace.
  29269. You can also include type attributes in a 'typedef' declaration. *Note
  29270. Attribute Syntax::, for details of the exact syntax for using
  29271. attributes.
  29272. * Menu:
  29273. * Common Type Attributes::
  29274. * ARC Type Attributes::
  29275. * ARM Type Attributes::
  29276. * MeP Type Attributes::
  29277. * PowerPC Type Attributes::
  29278. * x86 Type Attributes::
  29279. 
  29280. File: gcc.info, Node: Common Type Attributes, Next: ARC Type Attributes, Up: Type Attributes
  29281. 6.35.1 Common Type Attributes
  29282. -----------------------------
  29283. The following type attributes are supported on most targets.
  29284. 'aligned'
  29285. 'aligned (ALIGNMENT)'
  29286. The 'aligned' attribute specifies a minimum alignment (in bytes)
  29287. for variables of the specified type. When specified, ALIGNMENT
  29288. must be a power of 2. Specifying no ALIGNMENT argument implies the
  29289. maximum alignment for the target, which is often, but by no means
  29290. always, 8 or 16 bytes. For example, the declarations:
  29291. struct __attribute__ ((aligned (8))) S { short f[3]; };
  29292. typedef int more_aligned_int __attribute__ ((aligned (8)));
  29293. force the compiler to ensure (as far as it can) that each variable
  29294. whose type is 'struct S' or 'more_aligned_int' is allocated and
  29295. aligned _at least_ on a 8-byte boundary. On a SPARC, having all
  29296. variables of type 'struct S' aligned to 8-byte boundaries allows
  29297. the compiler to use the 'ldd' and 'std' (doubleword load and store)
  29298. instructions when copying one variable of type 'struct S' to
  29299. another, thus improving run-time efficiency.
  29300. Note that the alignment of any given 'struct' or 'union' type is
  29301. required by the ISO C standard to be at least a perfect multiple of
  29302. the lowest common multiple of the alignments of all of the members
  29303. of the 'struct' or 'union' in question. This means that you _can_
  29304. effectively adjust the alignment of a 'struct' or 'union' type by
  29305. attaching an 'aligned' attribute to any one of the members of such
  29306. a type, but the notation illustrated in the example above is a more
  29307. obvious, intuitive, and readable way to request the compiler to
  29308. adjust the alignment of an entire 'struct' or 'union' type.
  29309. As in the preceding example, you can explicitly specify the
  29310. alignment (in bytes) that you wish the compiler to use for a given
  29311. 'struct' or 'union' type. Alternatively, you can leave out the
  29312. alignment factor and just ask the compiler to align a type to the
  29313. maximum useful alignment for the target machine you are compiling
  29314. for. For example, you could write:
  29315. struct __attribute__ ((aligned)) S { short f[3]; };
  29316. Whenever you leave out the alignment factor in an 'aligned'
  29317. attribute specification, the compiler automatically sets the
  29318. alignment for the type to the largest alignment that is ever used
  29319. for any data type on the target machine you are compiling for.
  29320. Doing this can often make copy operations more efficient, because
  29321. the compiler can use whatever instructions copy the biggest chunks
  29322. of memory when performing copies to or from the variables that have
  29323. types that you have aligned this way.
  29324. In the example above, if the size of each 'short' is 2 bytes, then
  29325. the size of the entire 'struct S' type is 6 bytes. The smallest
  29326. power of two that is greater than or equal to that is 8, so the
  29327. compiler sets the alignment for the entire 'struct S' type to 8
  29328. bytes.
  29329. Note that although you can ask the compiler to select a
  29330. time-efficient alignment for a given type and then declare only
  29331. individual stand-alone objects of that type, the compiler's ability
  29332. to select a time-efficient alignment is primarily useful only when
  29333. you plan to create arrays of variables having the relevant
  29334. (efficiently aligned) type. If you declare or use arrays of
  29335. variables of an efficiently-aligned type, then it is likely that
  29336. your program also does pointer arithmetic (or subscripting, which
  29337. amounts to the same thing) on pointers to the relevant type, and
  29338. the code that the compiler generates for these pointer arithmetic
  29339. operations is often more efficient for efficiently-aligned types
  29340. than for other types.
  29341. Note that the effectiveness of 'aligned' attributes may be limited
  29342. by inherent limitations in your linker. On many systems, the
  29343. linker is only able to arrange for variables to be aligned up to a
  29344. certain maximum alignment. (For some linkers, the maximum
  29345. supported alignment may be very very small.) If your linker is
  29346. only able to align variables up to a maximum of 8-byte alignment,
  29347. then specifying 'aligned (16)' in an '__attribute__' still only
  29348. provides you with 8-byte alignment. See your linker documentation
  29349. for further information.
  29350. When used on a struct, or struct member, the 'aligned' attribute
  29351. can only increase the alignment; in order to decrease it, the
  29352. 'packed' attribute must be specified as well. When used as part of
  29353. a typedef, the 'aligned' attribute can both increase and decrease
  29354. alignment, and specifying the 'packed' attribute generates a
  29355. warning.
  29356. 'warn_if_not_aligned (ALIGNMENT)'
  29357. This attribute specifies a threshold for the structure field,
  29358. measured in bytes. If the structure field is aligned below the
  29359. threshold, a warning will be issued. For example, the declaration:
  29360. typedef unsigned long long __u64
  29361. __attribute__((aligned (4), warn_if_not_aligned (8)));
  29362. struct foo
  29363. {
  29364. int i1;
  29365. int i2;
  29366. __u64 x;
  29367. };
  29368. causes the compiler to issue an warning on 'struct foo', like
  29369. 'warning: alignment 4 of 'struct foo' is less than 8'. It is used
  29370. to define 'struct foo' in such a way that 'struct foo' has the same
  29371. layout and the structure field 'x' has the same alignment when
  29372. '__u64' is aligned at either 4 or 8 bytes. Align 'struct foo' to 8
  29373. bytes:
  29374. struct __attribute__ ((aligned (8))) foo
  29375. {
  29376. int i1;
  29377. int i2;
  29378. __u64 x;
  29379. };
  29380. silences the warning. The compiler also issues a warning, like
  29381. 'warning: 'x' offset 12 in 'struct foo' isn't aligned to 8', when
  29382. the structure field has the misaligned offset:
  29383. struct __attribute__ ((aligned (8))) foo
  29384. {
  29385. int i1;
  29386. int i2;
  29387. int i3;
  29388. __u64 x;
  29389. };
  29390. This warning can be disabled by '-Wno-if-not-aligned'.
  29391. 'alloc_size (POSITION)'
  29392. 'alloc_size (POSITION-1, POSITION-2)'
  29393. The 'alloc_size' type attribute may be applied to the definition of
  29394. a type of a function that returns a pointer and takes at least one
  29395. argument of an integer type. It indicates that the returned
  29396. pointer points to an object whose size is given by the function
  29397. argument at POSITION-1, or by the product of the arguments at
  29398. POSITION-1 and POSITION-2. Meaningful sizes are positive values
  29399. less than 'PTRDIFF_MAX'. Other sizes are disagnosed when detected.
  29400. GCC uses this information to improve the results of
  29401. '__builtin_object_size'.
  29402. For instance, the following declarations
  29403. typedef __attribute__ ((alloc_size (1, 2))) void*
  29404. calloc_type (size_t, size_t);
  29405. typedef __attribute__ ((alloc_size (1))) void*
  29406. malloc_type (size_t);
  29407. specify that 'calloc_type' is a type of a function that, like the
  29408. standard C function 'calloc', returns an object whose size is given
  29409. by the product of arguments 1 and 2, and that 'malloc_type', like
  29410. the standard C function 'malloc', returns an object whose size is
  29411. given by argument 1 to the function.
  29412. 'copy'
  29413. 'copy (EXPRESSION)'
  29414. The 'copy' attribute applies the set of attributes with which the
  29415. type of the EXPRESSION has been declared to the declaration of the
  29416. type to which the attribute is applied. The attribute is designed
  29417. for libraries that define aliases that are expected to specify the
  29418. same set of attributes as the aliased symbols. The 'copy'
  29419. attribute can be used with types, variables, or functions.
  29420. However, the kind of symbol to which the attribute is applied
  29421. (either varible or function) must match the kind of symbol to which
  29422. the argument refers. The 'copy' attribute copies only syntactic
  29423. and semantic attributes but not attributes that affect a symbol's
  29424. linkage or visibility such as 'alias', 'visibility', or 'weak'.
  29425. The 'deprecated' attribute is also not copied. *Note Common
  29426. Function Attributes::. *Note Common Variable Attributes::.
  29427. For example, suppose 'struct A' below is defined in some third
  29428. party library header to have the alignment requirement 'N' and to
  29429. force a warning whenever a variable of the type is not so aligned
  29430. due to attribute 'packed'. Specifying the 'copy' attribute on the
  29431. definition on the unrelated 'struct B' has the effect of copying
  29432. all relevant attributes from the type referenced by the pointer
  29433. expression to 'struct B'.
  29434. struct __attribute__ ((aligned (N), warn_if_not_aligned (N)))
  29435. A { /* ... */ };
  29436. struct __attribute__ ((copy ( (struct A *)0)) B { /* ... */ };
  29437. 'deprecated'
  29438. 'deprecated (MSG)'
  29439. The 'deprecated' attribute results in a warning if the type is used
  29440. anywhere in the source file. This is useful when identifying types
  29441. that are expected to be removed in a future version of a program.
  29442. If possible, the warning also includes the location of the
  29443. declaration of the deprecated type, to enable users to easily find
  29444. further information about why the type is deprecated, or what they
  29445. should do instead. Note that the warnings only occur for uses and
  29446. then only if the type is being applied to an identifier that itself
  29447. is not being declared as deprecated.
  29448. typedef int T1 __attribute__ ((deprecated));
  29449. T1 x;
  29450. typedef T1 T2;
  29451. T2 y;
  29452. typedef T1 T3 __attribute__ ((deprecated));
  29453. T3 z __attribute__ ((deprecated));
  29454. results in a warning on line 2 and 3 but not lines 4, 5, or 6. No
  29455. warning is issued for line 4 because T2 is not explicitly
  29456. deprecated. Line 5 has no warning because T3 is explicitly
  29457. deprecated. Similarly for line 6. The optional MSG argument,
  29458. which must be a string, is printed in the warning if present.
  29459. Control characters in the string will be replaced with escape
  29460. sequences, and if the '-fmessage-length' option is set to 0 (its
  29461. default value) then any newline characters will be ignored.
  29462. The 'deprecated' attribute can also be used for functions and
  29463. variables (*note Function Attributes::, *note Variable
  29464. Attributes::.)
  29465. The message attached to the attribute is affected by the setting of
  29466. the '-fmessage-length' option.
  29467. 'designated_init'
  29468. This attribute may only be applied to structure types. It
  29469. indicates that any initialization of an object of this type must
  29470. use designated initializers rather than positional initializers.
  29471. The intent of this attribute is to allow the programmer to indicate
  29472. that a structure's layout may change, and that therefore relying on
  29473. positional initialization will result in future breakage.
  29474. GCC emits warnings based on this attribute by default; use
  29475. '-Wno-designated-init' to suppress them.
  29476. 'may_alias'
  29477. Accesses through pointers to types with this attribute are not
  29478. subject to type-based alias analysis, but are instead assumed to be
  29479. able to alias any other type of objects. In the context of section
  29480. 6.5 paragraph 7 of the C99 standard, an lvalue expression
  29481. dereferencing such a pointer is treated like having a character
  29482. type. See '-fstrict-aliasing' for more information on aliasing
  29483. issues. This extension exists to support some vector APIs, in
  29484. which pointers to one vector type are permitted to alias pointers
  29485. to a different vector type.
  29486. Note that an object of a type with this attribute does not have any
  29487. special semantics.
  29488. Example of use:
  29489. typedef short __attribute__ ((__may_alias__)) short_a;
  29490. int
  29491. main (void)
  29492. {
  29493. int a = 0x12345678;
  29494. short_a *b = (short_a *) &a;
  29495. b[1] = 0;
  29496. if (a == 0x12345678)
  29497. abort();
  29498. exit(0);
  29499. }
  29500. If you replaced 'short_a' with 'short' in the variable declaration,
  29501. the above program would abort when compiled with
  29502. '-fstrict-aliasing', which is on by default at '-O2' or above.
  29503. 'mode (MODE)'
  29504. This attribute specifies the data type for the
  29505. declaration--whichever type corresponds to the mode MODE. This in
  29506. effect lets you request an integer or floating-point type according
  29507. to its width.
  29508. *Note (gccint)Machine Modes::, for a list of the possible keywords
  29509. for MODE. You may also specify a mode of 'byte' or '__byte__' to
  29510. indicate the mode corresponding to a one-byte integer, 'word' or
  29511. '__word__' for the mode of a one-word integer, and 'pointer' or
  29512. '__pointer__' for the mode used to represent pointers.
  29513. 'packed'
  29514. This attribute, attached to a 'struct', 'union', or C++ 'class'
  29515. type definition, specifies that each of its members (other than
  29516. zero-width bit-fields) is placed to minimize the memory required.
  29517. This is equivalent to specifying the 'packed' attribute on each of
  29518. the members.
  29519. When attached to an 'enum' definition, the 'packed' attribute
  29520. indicates that the smallest integral type should be used.
  29521. Specifying the '-fshort-enums' flag on the command line is
  29522. equivalent to specifying the 'packed' attribute on all 'enum'
  29523. definitions.
  29524. In the following example 'struct my_packed_struct''s members are
  29525. packed closely together, but the internal layout of its 's' member
  29526. is not packed--to do that, 'struct my_unpacked_struct' needs to be
  29527. packed too.
  29528. struct my_unpacked_struct
  29529. {
  29530. char c;
  29531. int i;
  29532. };
  29533. struct __attribute__ ((__packed__)) my_packed_struct
  29534. {
  29535. char c;
  29536. int i;
  29537. struct my_unpacked_struct s;
  29538. };
  29539. You may only specify the 'packed' attribute on the definition of an
  29540. 'enum', 'struct', 'union', or 'class', not on a 'typedef' that does
  29541. not also define the enumerated type, structure, union, or class.
  29542. 'scalar_storage_order ("ENDIANNESS")'
  29543. When attached to a 'union' or a 'struct', this attribute sets the
  29544. storage order, aka endianness, of the scalar fields of the type, as
  29545. well as the array fields whose component is scalar. The supported
  29546. endiannesses are 'big-endian' and 'little-endian'. The attribute
  29547. has no effects on fields which are themselves a 'union', a 'struct'
  29548. or an array whose component is a 'union' or a 'struct', and it is
  29549. possible for these fields to have a different scalar storage order
  29550. than the enclosing type.
  29551. This attribute is supported only for targets that use a uniform
  29552. default scalar storage order (fortunately, most of them), i.e.
  29553. targets that store the scalars either all in big-endian or all in
  29554. little-endian.
  29555. Additional restrictions are enforced for types with the reverse
  29556. scalar storage order with regard to the scalar storage order of the
  29557. target:
  29558. * Taking the address of a scalar field of a 'union' or a
  29559. 'struct' with reverse scalar storage order is not permitted
  29560. and yields an error.
  29561. * Taking the address of an array field, whose component is
  29562. scalar, of a 'union' or a 'struct' with reverse scalar storage
  29563. order is permitted but yields a warning, unless
  29564. '-Wno-scalar-storage-order' is specified.
  29565. * Taking the address of a 'union' or a 'struct' with reverse
  29566. scalar storage order is permitted.
  29567. These restrictions exist because the storage order attribute is
  29568. lost when the address of a scalar or the address of an array with
  29569. scalar component is taken, so storing indirectly through this
  29570. address generally does not work. The second case is nevertheless
  29571. allowed to be able to perform a block copy from or to the array.
  29572. Moreover, the use of type punning or aliasing to toggle the storage
  29573. order is not supported; that is to say, a given scalar object
  29574. cannot be accessed through distinct types that assign a different
  29575. storage order to it.
  29576. 'transparent_union'
  29577. This attribute, attached to a 'union' type definition, indicates
  29578. that any function parameter having that union type causes calls to
  29579. that function to be treated in a special way.
  29580. First, the argument corresponding to a transparent union type can
  29581. be of any type in the union; no cast is required. Also, if the
  29582. union contains a pointer type, the corresponding argument can be a
  29583. null pointer constant or a void pointer expression; and if the
  29584. union contains a void pointer type, the corresponding argument can
  29585. be any pointer expression. If the union member type is a pointer,
  29586. qualifiers like 'const' on the referenced type must be respected,
  29587. just as with normal pointer conversions.
  29588. Second, the argument is passed to the function using the calling
  29589. conventions of the first member of the transparent union, not the
  29590. calling conventions of the union itself. All members of the union
  29591. must have the same machine representation; this is necessary for
  29592. this argument passing to work properly.
  29593. Transparent unions are designed for library functions that have
  29594. multiple interfaces for compatibility reasons. For example,
  29595. suppose the 'wait' function must accept either a value of type 'int
  29596. *' to comply with POSIX, or a value of type 'union wait *' to
  29597. comply with the 4.1BSD interface. If 'wait''s parameter were 'void
  29598. *', 'wait' would accept both kinds of arguments, but it would also
  29599. accept any other pointer type and this would make argument type
  29600. checking less useful. Instead, '<sys/wait.h>' might define the
  29601. interface as follows:
  29602. typedef union __attribute__ ((__transparent_union__))
  29603. {
  29604. int *__ip;
  29605. union wait *__up;
  29606. } wait_status_ptr_t;
  29607. pid_t wait (wait_status_ptr_t);
  29608. This interface allows either 'int *' or 'union wait *' arguments to
  29609. be passed, using the 'int *' calling convention. The program can
  29610. call 'wait' with arguments of either type:
  29611. int w1 () { int w; return wait (&w); }
  29612. int w2 () { union wait w; return wait (&w); }
  29613. With this interface, 'wait''s implementation might look like this:
  29614. pid_t wait (wait_status_ptr_t p)
  29615. {
  29616. return waitpid (-1, p.__ip, 0);
  29617. }
  29618. 'unused'
  29619. When attached to a type (including a 'union' or a 'struct'), this
  29620. attribute means that variables of that type are meant to appear
  29621. possibly unused. GCC does not produce a warning for any variables
  29622. of that type, even if the variable appears to do nothing. This is
  29623. often the case with lock or thread classes, which are usually
  29624. defined and then not referenced, but contain constructors and
  29625. destructors that have nontrivial bookkeeping functions.
  29626. 'vector_size (BYTES)'
  29627. This attribute specifies the vector size for the type, measured in
  29628. bytes. The type to which it applies is known as the "base type".
  29629. The BYTES argument must be a positive power-of-two multiple of the
  29630. base type size. For example, the following declarations:
  29631. typedef __attribute__ ((vector_size (32))) int int_vec32_t ;
  29632. typedef __attribute__ ((vector_size (32))) int* int_vec32_ptr_t;
  29633. typedef __attribute__ ((vector_size (32))) int int_vec32_arr3_t[3];
  29634. define 'int_vec32_t' to be a 32-byte vector type composed of 'int'
  29635. sized units. With 'int' having a size of 4 bytes, the type defines
  29636. a vector of eight units, four bytes each. The mode of variables of
  29637. type 'int_vec32_t' is 'V8SI'. 'int_vec32_ptr_t' is then defined to
  29638. be a pointer to such a vector type, and 'int_vec32_arr3_t' to be an
  29639. array of three such vectors. *Note Vector Extensions::, for
  29640. details of manipulating objects of vector types.
  29641. This attribute is only applicable to integral and floating scalar
  29642. types. In function declarations the attribute applies to the
  29643. function return type.
  29644. For example, the following:
  29645. __attribute__ ((vector_size (16))) float get_flt_vec16 (void);
  29646. declares 'get_flt_vec16' to be a function returning a 16-byte
  29647. vector with the base type 'float'.
  29648. 'visibility'
  29649. In C++, attribute visibility (*note Function Attributes::) can also
  29650. be applied to class, struct, union and enum types. Unlike other
  29651. type attributes, the attribute must appear between the initial
  29652. keyword and the name of the type; it cannot appear after the body
  29653. of the type.
  29654. Note that the type visibility is applied to vague linkage entities
  29655. associated with the class (vtable, typeinfo node, etc.). In
  29656. particular, if a class is thrown as an exception in one shared
  29657. object and caught in another, the class must have default
  29658. visibility. Otherwise the two shared objects are unable to use the
  29659. same typeinfo node and exception handling will break.
  29660. To specify multiple attributes, separate them by commas within the
  29661. double parentheses: for example, '__attribute__ ((aligned (16),
  29662. packed))'.
  29663. 
  29664. File: gcc.info, Node: ARC Type Attributes, Next: ARM Type Attributes, Prev: Common Type Attributes, Up: Type Attributes
  29665. 6.35.2 ARC Type Attributes
  29666. --------------------------
  29667. Declaring objects with 'uncached' allows you to exclude data-cache
  29668. participation in load and store operations on those objects without
  29669. involving the additional semantic implications of 'volatile'. The '.di'
  29670. instruction suffix is used for all loads and stores of data declared
  29671. 'uncached'.
  29672. 
  29673. File: gcc.info, Node: ARM Type Attributes, Next: MeP Type Attributes, Prev: ARC Type Attributes, Up: Type Attributes
  29674. 6.35.3 ARM Type Attributes
  29675. --------------------------
  29676. On those ARM targets that support 'dllimport' (such as Symbian OS), you
  29677. can use the 'notshared' attribute to indicate that the virtual table and
  29678. other similar data for a class should not be exported from a DLL. For
  29679. example:
  29680. class __declspec(notshared) C {
  29681. public:
  29682. __declspec(dllimport) C();
  29683. virtual void f();
  29684. }
  29685. __declspec(dllexport)
  29686. C::C() {}
  29687. In this code, 'C::C' is exported from the current DLL, but the virtual
  29688. table for 'C' is not exported. (You can use '__attribute__' instead of
  29689. '__declspec' if you prefer, but most Symbian OS code uses '__declspec'.)
  29690. 
  29691. File: gcc.info, Node: MeP Type Attributes, Next: PowerPC Type Attributes, Prev: ARM Type Attributes, Up: Type Attributes
  29692. 6.35.4 MeP Type Attributes
  29693. --------------------------
  29694. Many of the MeP variable attributes may be applied to types as well.
  29695. Specifically, the 'based', 'tiny', 'near', and 'far' attributes may be
  29696. applied to either. The 'io' and 'cb' attributes may not be applied to
  29697. types.
  29698. 
  29699. File: gcc.info, Node: PowerPC Type Attributes, Next: x86 Type Attributes, Prev: MeP Type Attributes, Up: Type Attributes
  29700. 6.35.5 PowerPC Type Attributes
  29701. ------------------------------
  29702. Three attributes currently are defined for PowerPC configurations:
  29703. 'altivec', 'ms_struct' and 'gcc_struct'.
  29704. For full documentation of the 'ms_struct' and 'gcc_struct' attributes
  29705. please see the documentation in *note x86 Type Attributes::.
  29706. The 'altivec' attribute allows one to declare AltiVec vector data types
  29707. supported by the AltiVec Programming Interface Manual. The attribute
  29708. requires an argument to specify one of three vector types: 'vector__',
  29709. 'pixel__' (always followed by unsigned short), and 'bool__' (always
  29710. followed by unsigned).
  29711. __attribute__((altivec(vector__)))
  29712. __attribute__((altivec(pixel__))) unsigned short
  29713. __attribute__((altivec(bool__))) unsigned
  29714. These attributes mainly are intended to support the '__vector',
  29715. '__pixel', and '__bool' AltiVec keywords.
  29716. 
  29717. File: gcc.info, Node: x86 Type Attributes, Prev: PowerPC Type Attributes, Up: Type Attributes
  29718. 6.35.6 x86 Type Attributes
  29719. --------------------------
  29720. Two attributes are currently defined for x86 configurations: 'ms_struct'
  29721. and 'gcc_struct'.
  29722. 'ms_struct'
  29723. 'gcc_struct'
  29724. If 'packed' is used on a structure, or if bit-fields are used it
  29725. may be that the Microsoft ABI packs them differently than GCC
  29726. normally packs them. Particularly when moving packed data between
  29727. functions compiled with GCC and the native Microsoft compiler
  29728. (either via function call or as data in a file), it may be
  29729. necessary to access either format.
  29730. The 'ms_struct' and 'gcc_struct' attributes correspond to the
  29731. '-mms-bitfields' and '-mno-ms-bitfields' command-line options,
  29732. respectively; see *note x86 Options::, for details of how structure
  29733. layout is affected. *Note x86 Variable Attributes::, for
  29734. information about the corresponding attributes on variables.
  29735. 
  29736. File: gcc.info, Node: Label Attributes, Next: Enumerator Attributes, Prev: Type Attributes, Up: C Extensions
  29737. 6.36 Label Attributes
  29738. =====================
  29739. GCC allows attributes to be set on C labels. *Note Attribute Syntax::,
  29740. for details of the exact syntax for using attributes. Other attributes
  29741. are available for functions (*note Function Attributes::), variables
  29742. (*note Variable Attributes::), enumerators (*note Enumerator
  29743. Attributes::), statements (*note Statement Attributes::), and for types
  29744. (*note Type Attributes::).
  29745. This example uses the 'cold' label attribute to indicate the
  29746. 'ErrorHandling' branch is unlikely to be taken and that the
  29747. 'ErrorHandling' label is unused:
  29748. asm goto ("some asm" : : : : NoError);
  29749. /* This branch (the fall-through from the asm) is less commonly used */
  29750. ErrorHandling:
  29751. __attribute__((cold, unused)); /* Semi-colon is required here */
  29752. printf("error\n");
  29753. return 0;
  29754. NoError:
  29755. printf("no error\n");
  29756. return 1;
  29757. 'unused'
  29758. This feature is intended for program-generated code that may
  29759. contain unused labels, but which is compiled with '-Wall'. It is
  29760. not normally appropriate to use in it human-written code, though it
  29761. could be useful in cases where the code that jumps to the label is
  29762. contained within an '#ifdef' conditional.
  29763. 'hot'
  29764. The 'hot' attribute on a label is used to inform the compiler that
  29765. the path following the label is more likely than paths that are not
  29766. so annotated. This attribute is used in cases where
  29767. '__builtin_expect' cannot be used, for instance with computed goto
  29768. or 'asm goto'.
  29769. 'cold'
  29770. The 'cold' attribute on labels is used to inform the compiler that
  29771. the path following the label is unlikely to be executed. This
  29772. attribute is used in cases where '__builtin_expect' cannot be used,
  29773. for instance with computed goto or 'asm goto'.
  29774. 
  29775. File: gcc.info, Node: Enumerator Attributes, Next: Statement Attributes, Prev: Label Attributes, Up: C Extensions
  29776. 6.37 Enumerator Attributes
  29777. ==========================
  29778. GCC allows attributes to be set on enumerators. *Note Attribute
  29779. Syntax::, for details of the exact syntax for using attributes. Other
  29780. attributes are available for functions (*note Function Attributes::),
  29781. variables (*note Variable Attributes::), labels (*note Label
  29782. Attributes::), statements (*note Statement Attributes::), and for types
  29783. (*note Type Attributes::).
  29784. This example uses the 'deprecated' enumerator attribute to indicate the
  29785. 'oldval' enumerator is deprecated:
  29786. enum E {
  29787. oldval __attribute__((deprecated)),
  29788. newval
  29789. };
  29790. int
  29791. fn (void)
  29792. {
  29793. return oldval;
  29794. }
  29795. 'deprecated'
  29796. The 'deprecated' attribute results in a warning if the enumerator
  29797. is used anywhere in the source file. This is useful when
  29798. identifying enumerators that are expected to be removed in a future
  29799. version of a program. The warning also includes the location of
  29800. the declaration of the deprecated enumerator, to enable users to
  29801. easily find further information about why the enumerator is
  29802. deprecated, or what they should do instead. Note that the warnings
  29803. only occurs for uses.
  29804. 
  29805. File: gcc.info, Node: Statement Attributes, Next: Attribute Syntax, Prev: Enumerator Attributes, Up: C Extensions
  29806. 6.38 Statement Attributes
  29807. =========================
  29808. GCC allows attributes to be set on null statements. *Note Attribute
  29809. Syntax::, for details of the exact syntax for using attributes. Other
  29810. attributes are available for functions (*note Function Attributes::),
  29811. variables (*note Variable Attributes::), labels (*note Label
  29812. Attributes::), enumerators (*note Enumerator Attributes::), and for
  29813. types (*note Type Attributes::).
  29814. This example uses the 'fallthrough' statement attribute to indicate
  29815. that the '-Wimplicit-fallthrough' warning should not be emitted:
  29816. switch (cond)
  29817. {
  29818. case 1:
  29819. bar (1);
  29820. __attribute__((fallthrough));
  29821. case 2:
  29822. ...
  29823. }
  29824. 'fallthrough'
  29825. The 'fallthrough' attribute with a null statement serves as a
  29826. fallthrough statement. It hints to the compiler that a statement
  29827. that falls through to another case label, or user-defined label in
  29828. a switch statement is intentional and thus the
  29829. '-Wimplicit-fallthrough' warning must not trigger. The fallthrough
  29830. attribute may appear at most once in each attribute list, and may
  29831. not be mixed with other attributes. It can only be used in a
  29832. switch statement (the compiler will issue an error otherwise),
  29833. after a preceding statement and before a logically succeeding case
  29834. label, or user-defined label.
  29835. 
  29836. File: gcc.info, Node: Attribute Syntax, Next: Function Prototypes, Prev: Statement Attributes, Up: C Extensions
  29837. 6.39 Attribute Syntax
  29838. =====================
  29839. This section describes the syntax with which '__attribute__' may be
  29840. used, and the constructs to which attribute specifiers bind, for the C
  29841. language. Some details may vary for C++ and Objective-C. Because of
  29842. infelicities in the grammar for attributes, some forms described here
  29843. may not be successfully parsed in all cases.
  29844. There are some problems with the semantics of attributes in C++. For
  29845. example, there are no manglings for attributes, although they may affect
  29846. code generation, so problems may arise when attributed types are used in
  29847. conjunction with templates or overloading. Similarly, 'typeid' does not
  29848. distinguish between types with different attributes. Support for
  29849. attributes in C++ may be restricted in future to attributes on
  29850. declarations only, but not on nested declarators.
  29851. *Note Function Attributes::, for details of the semantics of attributes
  29852. applying to functions. *Note Variable Attributes::, for details of the
  29853. semantics of attributes applying to variables. *Note Type Attributes::,
  29854. for details of the semantics of attributes applying to structure, union
  29855. and enumerated types. *Note Label Attributes::, for details of the
  29856. semantics of attributes applying to labels. *Note Enumerator
  29857. Attributes::, for details of the semantics of attributes applying to
  29858. enumerators. *Note Statement Attributes::, for details of the semantics
  29859. of attributes applying to statements.
  29860. An "attribute specifier" is of the form '__attribute__
  29861. ((ATTRIBUTE-LIST))'. An "attribute list" is a possibly empty
  29862. comma-separated sequence of "attributes", where each attribute is one of
  29863. the following:
  29864. * Empty. Empty attributes are ignored.
  29865. * An attribute name (which may be an identifier such as 'unused', or
  29866. a reserved word such as 'const').
  29867. * An attribute name followed by a parenthesized list of parameters
  29868. for the attribute. These parameters take one of the following
  29869. forms:
  29870. * An identifier. For example, 'mode' attributes use this form.
  29871. * An identifier followed by a comma and a non-empty
  29872. comma-separated list of expressions. For example, 'format'
  29873. attributes use this form.
  29874. * A possibly empty comma-separated list of expressions. For
  29875. example, 'format_arg' attributes use this form with the list
  29876. being a single integer constant expression, and 'alias'
  29877. attributes use this form with the list being a single string
  29878. constant.
  29879. An "attribute specifier list" is a sequence of one or more attribute
  29880. specifiers, not separated by any other tokens.
  29881. You may optionally specify attribute names with '__' preceding and
  29882. following the name. This allows you to use them in header files without
  29883. being concerned about a possible macro of the same name. For example,
  29884. you may use the attribute name '__noreturn__' instead of 'noreturn'.
  29885. Label Attributes
  29886. ................
  29887. In GNU C, an attribute specifier list may appear after the colon
  29888. following a label, other than a 'case' or 'default' label. GNU C++ only
  29889. permits attributes on labels if the attribute specifier is immediately
  29890. followed by a semicolon (i.e., the label applies to an empty statement).
  29891. If the semicolon is missing, C++ label attributes are ambiguous, as it
  29892. is permissible for a declaration, which could begin with an attribute
  29893. list, to be labelled in C++. Declarations cannot be labelled in C90 or
  29894. C99, so the ambiguity does not arise there.
  29895. Enumerator Attributes
  29896. .....................
  29897. In GNU C, an attribute specifier list may appear as part of an
  29898. enumerator. The attribute goes after the enumeration constant, before
  29899. '=', if present. The optional attribute in the enumerator appertains to
  29900. the enumeration constant. It is not possible to place the attribute
  29901. after the constant expression, if present.
  29902. Statement Attributes
  29903. ....................
  29904. In GNU C, an attribute specifier list may appear as part of a null
  29905. statement. The attribute goes before the semicolon.
  29906. Type Attributes
  29907. ...............
  29908. An attribute specifier list may appear as part of a 'struct', 'union' or
  29909. 'enum' specifier. It may go either immediately after the 'struct',
  29910. 'union' or 'enum' keyword, or after the closing brace. The former
  29911. syntax is preferred. Where attribute specifiers follow the closing
  29912. brace, they are considered to relate to the structure, union or
  29913. enumerated type defined, not to any enclosing declaration the type
  29914. specifier appears in, and the type defined is not complete until after
  29915. the attribute specifiers.
  29916. All other attributes
  29917. ....................
  29918. Otherwise, an attribute specifier appears as part of a declaration,
  29919. counting declarations of unnamed parameters and type names, and relates
  29920. to that declaration (which may be nested in another declaration, for
  29921. example in the case of a parameter declaration), or to a particular
  29922. declarator within a declaration. Where an attribute specifier is
  29923. applied to a parameter declared as a function or an array, it should
  29924. apply to the function or array rather than the pointer to which the
  29925. parameter is implicitly converted, but this is not yet correctly
  29926. implemented.
  29927. Any list of specifiers and qualifiers at the start of a declaration may
  29928. contain attribute specifiers, whether or not such a list may in that
  29929. context contain storage class specifiers. (Some attributes, however,
  29930. are essentially in the nature of storage class specifiers, and only make
  29931. sense where storage class specifiers may be used; for example,
  29932. 'section'.) There is one necessary limitation to this syntax: the first
  29933. old-style parameter declaration in a function definition cannot begin
  29934. with an attribute specifier, because such an attribute applies to the
  29935. function instead by syntax described below (which, however, is not yet
  29936. implemented in this case). In some other cases, attribute specifiers
  29937. are permitted by this grammar but not yet supported by the compiler.
  29938. All attribute specifiers in this place relate to the declaration as a
  29939. whole. In the obsolescent usage where a type of 'int' is implied by the
  29940. absence of type specifiers, such a list of specifiers and qualifiers may
  29941. be an attribute specifier list with no other specifiers or qualifiers.
  29942. At present, the first parameter in a function prototype must have some
  29943. type specifier that is not an attribute specifier; this resolves an
  29944. ambiguity in the interpretation of 'void f(int (__attribute__((foo))
  29945. x))', but is subject to change. At present, if the parentheses of a
  29946. function declarator contain only attributes then those attributes are
  29947. ignored, rather than yielding an error or warning or implying a single
  29948. parameter of type int, but this is subject to change.
  29949. An attribute specifier list may appear immediately before a declarator
  29950. (other than the first) in a comma-separated list of declarators in a
  29951. declaration of more than one identifier using a single list of
  29952. specifiers and qualifiers. Such attribute specifiers apply only to the
  29953. identifier before whose declarator they appear. For example, in
  29954. __attribute__((noreturn)) void d0 (void),
  29955. __attribute__((format(printf, 1, 2))) d1 (const char *, ...),
  29956. d2 (void);
  29957. the 'noreturn' attribute applies to all the functions declared; the
  29958. 'format' attribute only applies to 'd1'.
  29959. An attribute specifier list may appear immediately before the comma,
  29960. '=' or semicolon terminating the declaration of an identifier other than
  29961. a function definition. Such attribute specifiers apply to the declared
  29962. object or function. Where an assembler name for an object or function
  29963. is specified (*note Asm Labels::), the attribute must follow the 'asm'
  29964. specification.
  29965. An attribute specifier list may, in future, be permitted to appear
  29966. after the declarator in a function definition (before any old-style
  29967. parameter declarations or the function body).
  29968. Attribute specifiers may be mixed with type qualifiers appearing inside
  29969. the '[]' of a parameter array declarator, in the C99 construct by which
  29970. such qualifiers are applied to the pointer to which the array is
  29971. implicitly converted. Such attribute specifiers apply to the pointer,
  29972. not to the array, but at present this is not implemented and they are
  29973. ignored.
  29974. An attribute specifier list may appear at the start of a nested
  29975. declarator. At present, there are some limitations in this usage: the
  29976. attributes correctly apply to the declarator, but for most individual
  29977. attributes the semantics this implies are not implemented. When
  29978. attribute specifiers follow the '*' of a pointer declarator, they may be
  29979. mixed with any type qualifiers present. The following describes the
  29980. formal semantics of this syntax. It makes the most sense if you are
  29981. familiar with the formal specification of declarators in the ISO C
  29982. standard.
  29983. Consider (as in C99 subclause 6.7.5 paragraph 4) a declaration 'T D1',
  29984. where 'T' contains declaration specifiers that specify a type TYPE (such
  29985. as 'int') and 'D1' is a declarator that contains an identifier IDENT.
  29986. The type specified for IDENT for derived declarators whose type does not
  29987. include an attribute specifier is as in the ISO C standard.
  29988. If 'D1' has the form '( ATTRIBUTE-SPECIFIER-LIST D )', and the
  29989. declaration 'T D' specifies the type "DERIVED-DECLARATOR-TYPE-LIST TYPE"
  29990. for IDENT, then 'T D1' specifies the type "DERIVED-DECLARATOR-TYPE-LIST
  29991. ATTRIBUTE-SPECIFIER-LIST TYPE" for IDENT.
  29992. If 'D1' has the form '* TYPE-QUALIFIER-AND-ATTRIBUTE-SPECIFIER-LIST D',
  29993. and the declaration 'T D' specifies the type
  29994. "DERIVED-DECLARATOR-TYPE-LIST TYPE" for IDENT, then 'T D1' specifies the
  29995. type "DERIVED-DECLARATOR-TYPE-LIST
  29996. TYPE-QUALIFIER-AND-ATTRIBUTE-SPECIFIER-LIST pointer to TYPE" for IDENT.
  29997. For example,
  29998. void (__attribute__((noreturn)) ****f) (void);
  29999. specifies the type "pointer to pointer to pointer to pointer to
  30000. non-returning function returning 'void'". As another example,
  30001. char *__attribute__((aligned(8))) *f;
  30002. specifies the type "pointer to 8-byte-aligned pointer to 'char'". Note
  30003. again that this does not work with most attributes; for example, the
  30004. usage of 'aligned' and 'noreturn' attributes given above is not yet
  30005. supported.
  30006. For compatibility with existing code written for compiler versions that
  30007. did not implement attributes on nested declarators, some laxity is
  30008. allowed in the placing of attributes. If an attribute that only applies
  30009. to types is applied to a declaration, it is treated as applying to the
  30010. type of that declaration. If an attribute that only applies to
  30011. declarations is applied to the type of a declaration, it is treated as
  30012. applying to that declaration; and, for compatibility with code placing
  30013. the attributes immediately before the identifier declared, such an
  30014. attribute applied to a function return type is treated as applying to
  30015. the function type, and such an attribute applied to an array element
  30016. type is treated as applying to the array type. If an attribute that
  30017. only applies to function types is applied to a pointer-to-function type,
  30018. it is treated as applying to the pointer target type; if such an
  30019. attribute is applied to a function return type that is not a
  30020. pointer-to-function type, it is treated as applying to the function
  30021. type.
  30022. 
  30023. File: gcc.info, Node: Function Prototypes, Next: C++ Comments, Prev: Attribute Syntax, Up: C Extensions
  30024. 6.40 Prototypes and Old-Style Function Definitions
  30025. ==================================================
  30026. GNU C extends ISO C to allow a function prototype to override a later
  30027. old-style non-prototype definition. Consider the following example:
  30028. /* Use prototypes unless the compiler is old-fashioned. */
  30029. #ifdef __STDC__
  30030. #define P(x) x
  30031. #else
  30032. #define P(x) ()
  30033. #endif
  30034. /* Prototype function declaration. */
  30035. int isroot P((uid_t));
  30036. /* Old-style function definition. */
  30037. int
  30038. isroot (x) /* ??? lossage here ??? */
  30039. uid_t x;
  30040. {
  30041. return x == 0;
  30042. }
  30043. Suppose the type 'uid_t' happens to be 'short'. ISO C does not allow
  30044. this example, because subword arguments in old-style non-prototype
  30045. definitions are promoted. Therefore in this example the function
  30046. definition's argument is really an 'int', which does not match the
  30047. prototype argument type of 'short'.
  30048. This restriction of ISO C makes it hard to write code that is portable
  30049. to traditional C compilers, because the programmer does not know whether
  30050. the 'uid_t' type is 'short', 'int', or 'long'. Therefore, in cases like
  30051. these GNU C allows a prototype to override a later old-style definition.
  30052. More precisely, in GNU C, a function prototype argument type overrides
  30053. the argument type specified by a later old-style definition if the
  30054. former type is the same as the latter type before promotion. Thus in
  30055. GNU C the above example is equivalent to the following:
  30056. int isroot (uid_t);
  30057. int
  30058. isroot (uid_t x)
  30059. {
  30060. return x == 0;
  30061. }
  30062. GNU C++ does not support old-style function definitions, so this
  30063. extension is irrelevant.
  30064. 
  30065. File: gcc.info, Node: C++ Comments, Next: Dollar Signs, Prev: Function Prototypes, Up: C Extensions
  30066. 6.41 C++ Style Comments
  30067. =======================
  30068. In GNU C, you may use C++ style comments, which start with '//' and
  30069. continue until the end of the line. Many other C implementations allow
  30070. such comments, and they are included in the 1999 C standard. However,
  30071. C++ style comments are not recognized if you specify an '-std' option
  30072. specifying a version of ISO C before C99, or '-ansi' (equivalent to
  30073. '-std=c90').
  30074. 
  30075. File: gcc.info, Node: Dollar Signs, Next: Character Escapes, Prev: C++ Comments, Up: C Extensions
  30076. 6.42 Dollar Signs in Identifier Names
  30077. =====================================
  30078. In GNU C, you may normally use dollar signs in identifier names. This
  30079. is because many traditional C implementations allow such identifiers.
  30080. However, dollar signs in identifiers are not supported on a few target
  30081. machines, typically because the target assembler does not allow them.
  30082. 
  30083. File: gcc.info, Node: Character Escapes, Next: Alignment, Prev: Dollar Signs, Up: C Extensions
  30084. 6.43 The Character <ESC> in Constants
  30085. =====================================
  30086. You can use the sequence '\e' in a string or character constant to stand
  30087. for the ASCII character <ESC>.
  30088. 
  30089. File: gcc.info, Node: Alignment, Next: Inline, Prev: Character Escapes, Up: C Extensions
  30090. 6.44 Determining the Alignment of Functions, Types or Variables
  30091. ===============================================================
  30092. The keyword '__alignof__' determines the alignment requirement of a
  30093. function, object, or a type, or the minimum alignment usually required
  30094. by a type. Its syntax is just like 'sizeof' and C11 '_Alignof'.
  30095. For example, if the target machine requires a 'double' value to be
  30096. aligned on an 8-byte boundary, then '__alignof__ (double)' is 8. This
  30097. is true on many RISC machines. On more traditional machine designs,
  30098. '__alignof__ (double)' is 4 or even 2.
  30099. Some machines never actually require alignment; they allow references
  30100. to any data type even at an odd address. For these machines,
  30101. '__alignof__' reports the smallest alignment that GCC gives the data
  30102. type, usually as mandated by the target ABI.
  30103. If the operand of '__alignof__' is an lvalue rather than a type, its
  30104. value is the required alignment for its type, taking into account any
  30105. minimum alignment specified by attribute 'aligned' (*note Common
  30106. Variable Attributes::). For example, after this declaration:
  30107. struct foo { int x; char y; } foo1;
  30108. the value of '__alignof__ (foo1.y)' is 1, even though its actual
  30109. alignment is probably 2 or 4, the same as '__alignof__ (int)'. It is an
  30110. error to ask for the alignment of an incomplete type other than 'void'.
  30111. If the operand of the '__alignof__' expression is a function, the
  30112. expression evaluates to the alignment of the function which may be
  30113. specified by attribute 'aligned' (*note Common Function Attributes::).
  30114. 
  30115. File: gcc.info, Node: Inline, Next: Volatiles, Prev: Alignment, Up: C Extensions
  30116. 6.45 An Inline Function is As Fast As a Macro
  30117. =============================================
  30118. By declaring a function inline, you can direct GCC to make calls to that
  30119. function faster. One way GCC can achieve this is to integrate that
  30120. function's code into the code for its callers. This makes execution
  30121. faster by eliminating the function-call overhead; in addition, if any of
  30122. the actual argument values are constant, their known values may permit
  30123. simplifications at compile time so that not all of the inline function's
  30124. code needs to be included. The effect on code size is less predictable;
  30125. object code may be larger or smaller with function inlining, depending
  30126. on the particular case. You can also direct GCC to try to integrate all
  30127. "simple enough" functions into their callers with the option
  30128. '-finline-functions'.
  30129. GCC implements three different semantics of declaring a function
  30130. inline. One is available with '-std=gnu89' or '-fgnu89-inline' or when
  30131. 'gnu_inline' attribute is present on all inline declarations, another
  30132. when '-std=c99', '-std=gnu99' or an option for a later C version is used
  30133. (without '-fgnu89-inline'), and the third is used when compiling C++.
  30134. To declare a function inline, use the 'inline' keyword in its
  30135. declaration, like this:
  30136. static inline int
  30137. inc (int *a)
  30138. {
  30139. return (*a)++;
  30140. }
  30141. If you are writing a header file to be included in ISO C90 programs,
  30142. write '__inline__' instead of 'inline'. *Note Alternate Keywords::.
  30143. The three types of inlining behave similarly in two important cases:
  30144. when the 'inline' keyword is used on a 'static' function, like the
  30145. example above, and when a function is first declared without using the
  30146. 'inline' keyword and then is defined with 'inline', like this:
  30147. extern int inc (int *a);
  30148. inline int
  30149. inc (int *a)
  30150. {
  30151. return (*a)++;
  30152. }
  30153. In both of these common cases, the program behaves the same as if you
  30154. had not used the 'inline' keyword, except for its speed.
  30155. When a function is both inline and 'static', if all calls to the
  30156. function are integrated into the caller, and the function's address is
  30157. never used, then the function's own assembler code is never referenced.
  30158. In this case, GCC does not actually output assembler code for the
  30159. function, unless you specify the option '-fkeep-inline-functions'. If
  30160. there is a nonintegrated call, then the function is compiled to
  30161. assembler code as usual. The function must also be compiled as usual if
  30162. the program refers to its address, because that cannot be inlined.
  30163. Note that certain usages in a function definition can make it
  30164. unsuitable for inline substitution. Among these usages are: variadic
  30165. functions, use of 'alloca', use of computed goto (*note Labels as
  30166. Values::), use of nonlocal goto, use of nested functions, use of
  30167. 'setjmp', use of '__builtin_longjmp' and use of '__builtin_return' or
  30168. '__builtin_apply_args'. Using '-Winline' warns when a function marked
  30169. 'inline' could not be substituted, and gives the reason for the failure.
  30170. As required by ISO C++, GCC considers member functions defined within
  30171. the body of a class to be marked inline even if they are not explicitly
  30172. declared with the 'inline' keyword. You can override this with
  30173. '-fno-default-inline'; *note Options Controlling C++ Dialect: C++
  30174. Dialect Options.
  30175. GCC does not inline any functions when not optimizing unless you
  30176. specify the 'always_inline' attribute for the function, like this:
  30177. /* Prototype. */
  30178. inline void foo (const char) __attribute__((always_inline));
  30179. The remainder of this section is specific to GNU C90 inlining.
  30180. When an inline function is not 'static', then the compiler must assume
  30181. that there may be calls from other source files; since a global symbol
  30182. can be defined only once in any program, the function must not be
  30183. defined in the other source files, so the calls therein cannot be
  30184. integrated. Therefore, a non-'static' inline function is always
  30185. compiled on its own in the usual fashion.
  30186. If you specify both 'inline' and 'extern' in the function definition,
  30187. then the definition is used only for inlining. In no case is the
  30188. function compiled on its own, not even if you refer to its address
  30189. explicitly. Such an address becomes an external reference, as if you
  30190. had only declared the function, and had not defined it.
  30191. This combination of 'inline' and 'extern' has almost the effect of a
  30192. macro. The way to use it is to put a function definition in a header
  30193. file with these keywords, and put another copy of the definition
  30194. (lacking 'inline' and 'extern') in a library file. The definition in
  30195. the header file causes most calls to the function to be inlined. If any
  30196. uses of the function remain, they refer to the single copy in the
  30197. library.
  30198. 
  30199. File: gcc.info, Node: Volatiles, Next: Using Assembly Language with C, Prev: Inline, Up: C Extensions
  30200. 6.46 When is a Volatile Object Accessed?
  30201. ========================================
  30202. C has the concept of volatile objects. These are normally accessed by
  30203. pointers and used for accessing hardware or inter-thread communication.
  30204. The standard encourages compilers to refrain from optimizations
  30205. concerning accesses to volatile objects, but leaves it implementation
  30206. defined as to what constitutes a volatile access. The minimum
  30207. requirement is that at a sequence point all previous accesses to
  30208. volatile objects have stabilized and no subsequent accesses have
  30209. occurred. Thus an implementation is free to reorder and combine
  30210. volatile accesses that occur between sequence points, but cannot do so
  30211. for accesses across a sequence point. The use of volatile does not
  30212. allow you to violate the restriction on updating objects multiple times
  30213. between two sequence points.
  30214. Accesses to non-volatile objects are not ordered with respect to
  30215. volatile accesses. You cannot use a volatile object as a memory barrier
  30216. to order a sequence of writes to non-volatile memory. For instance:
  30217. int *ptr = SOMETHING;
  30218. volatile int vobj;
  30219. *ptr = SOMETHING;
  30220. vobj = 1;
  30221. Unless *PTR and VOBJ can be aliased, it is not guaranteed that the write
  30222. to *PTR occurs by the time the update of VOBJ happens. If you need this
  30223. guarantee, you must use a stronger memory barrier such as:
  30224. int *ptr = SOMETHING;
  30225. volatile int vobj;
  30226. *ptr = SOMETHING;
  30227. asm volatile ("" : : : "memory");
  30228. vobj = 1;
  30229. A scalar volatile object is read when it is accessed in a void context:
  30230. volatile int *src = SOMEVALUE;
  30231. *src;
  30232. Such expressions are rvalues, and GCC implements this as a read of the
  30233. volatile object being pointed to.
  30234. Assignments are also expressions and have an rvalue. However when
  30235. assigning to a scalar volatile, the volatile object is not reread,
  30236. regardless of whether the assignment expression's rvalue is used or not.
  30237. If the assignment's rvalue is used, the value is that assigned to the
  30238. volatile object. For instance, there is no read of VOBJ in all the
  30239. following cases:
  30240. int obj;
  30241. volatile int vobj;
  30242. vobj = SOMETHING;
  30243. obj = vobj = SOMETHING;
  30244. obj ? vobj = ONETHING : vobj = ANOTHERTHING;
  30245. obj = (SOMETHING, vobj = ANOTHERTHING);
  30246. If you need to read the volatile object after an assignment has
  30247. occurred, you must use a separate expression with an intervening
  30248. sequence point.
  30249. As bit-fields are not individually addressable, volatile bit-fields may
  30250. be implicitly read when written to, or when adjacent bit-fields are
  30251. accessed. Bit-field operations may be optimized such that adjacent
  30252. bit-fields are only partially accessed, if they straddle a storage unit
  30253. boundary. For these reasons it is unwise to use volatile bit-fields to
  30254. access hardware.
  30255. 
  30256. File: gcc.info, Node: Using Assembly Language with C, Next: Alternate Keywords, Prev: Volatiles, Up: C Extensions
  30257. 6.47 How to Use Inline Assembly Language in C Code
  30258. ==================================================
  30259. The 'asm' keyword allows you to embed assembler instructions within C
  30260. code. GCC provides two forms of inline 'asm' statements. A "basic
  30261. 'asm'" statement is one with no operands (*note Basic Asm::), while an
  30262. "extended 'asm'" statement (*note Extended Asm::) includes one or more
  30263. operands. The extended form is preferred for mixing C and assembly
  30264. language within a function, but to include assembly language at top
  30265. level you must use basic 'asm'.
  30266. You can also use the 'asm' keyword to override the assembler name for a
  30267. C symbol, or to place a C variable in a specific register.
  30268. * Menu:
  30269. * Basic Asm:: Inline assembler without operands.
  30270. * Extended Asm:: Inline assembler with operands.
  30271. * Constraints:: Constraints for 'asm' operands
  30272. * Asm Labels:: Specifying the assembler name to use for a C symbol.
  30273. * Explicit Register Variables:: Defining variables residing in specified
  30274. registers.
  30275. * Size of an asm:: How GCC calculates the size of an 'asm' block.
  30276. 
  30277. File: gcc.info, Node: Basic Asm, Next: Extended Asm, Up: Using Assembly Language with C
  30278. 6.47.1 Basic Asm -- Assembler Instructions Without Operands
  30279. -----------------------------------------------------------
  30280. A basic 'asm' statement has the following syntax:
  30281. asm ASM-QUALIFIERS ( ASSEMBLERINSTRUCTIONS )
  30282. The 'asm' keyword is a GNU extension. When writing code that can be
  30283. compiled with '-ansi' and the various '-std' options, use '__asm__'
  30284. instead of 'asm' (*note Alternate Keywords::).
  30285. Qualifiers
  30286. ..........
  30287. 'volatile'
  30288. The optional 'volatile' qualifier has no effect. All basic 'asm'
  30289. blocks are implicitly volatile.
  30290. 'inline'
  30291. If you use the 'inline' qualifier, then for inlining purposes the
  30292. size of the 'asm' statement is taken as the smallest size possible
  30293. (*note Size of an asm::).
  30294. Parameters
  30295. ..........
  30296. ASSEMBLERINSTRUCTIONS
  30297. This is a literal string that specifies the assembler code. The
  30298. string can contain any instructions recognized by the assembler,
  30299. including directives. GCC does not parse the assembler
  30300. instructions themselves and does not know what they mean or even
  30301. whether they are valid assembler input.
  30302. You may place multiple assembler instructions together in a single
  30303. 'asm' string, separated by the characters normally used in assembly
  30304. code for the system. A combination that works in most places is a
  30305. newline to break the line, plus a tab character (written as
  30306. '\n\t'). Some assemblers allow semicolons as a line separator.
  30307. However, note that some assembler dialects use semicolons to start
  30308. a comment.
  30309. Remarks
  30310. .......
  30311. Using extended 'asm' (*note Extended Asm::) typically produces smaller,
  30312. safer, and more efficient code, and in most cases it is a better
  30313. solution than basic 'asm'. However, there are two situations where only
  30314. basic 'asm' can be used:
  30315. * Extended 'asm' statements have to be inside a C function, so to
  30316. write inline assembly language at file scope ("top-level"), outside
  30317. of C functions, you must use basic 'asm'. You can use this
  30318. technique to emit assembler directives, define assembly language
  30319. macros that can be invoked elsewhere in the file, or write entire
  30320. functions in assembly language. Basic 'asm' statements outside of
  30321. functions may not use any qualifiers.
  30322. * Functions declared with the 'naked' attribute also require basic
  30323. 'asm' (*note Function Attributes::).
  30324. Safely accessing C data and calling functions from basic 'asm' is more
  30325. complex than it may appear. To access C data, it is better to use
  30326. extended 'asm'.
  30327. Do not expect a sequence of 'asm' statements to remain perfectly
  30328. consecutive after compilation. If certain instructions need to remain
  30329. consecutive in the output, put them in a single multi-instruction 'asm'
  30330. statement. Note that GCC's optimizers can move 'asm' statements
  30331. relative to other code, including across jumps.
  30332. 'asm' statements may not perform jumps into other 'asm' statements.
  30333. GCC does not know about these jumps, and therefore cannot take account
  30334. of them when deciding how to optimize. Jumps from 'asm' to C labels are
  30335. only supported in extended 'asm'.
  30336. Under certain circumstances, GCC may duplicate (or remove duplicates
  30337. of) your assembly code when optimizing. This can lead to unexpected
  30338. duplicate symbol errors during compilation if your assembly code defines
  30339. symbols or labels.
  30340. *Warning:* The C standards do not specify semantics for 'asm', making
  30341. it a potential source of incompatibilities between compilers. These
  30342. incompatibilities may not produce compiler warnings/errors.
  30343. GCC does not parse basic 'asm''s ASSEMBLERINSTRUCTIONS, which means
  30344. there is no way to communicate to the compiler what is happening inside
  30345. them. GCC has no visibility of symbols in the 'asm' and may discard
  30346. them as unreferenced. It also does not know about side effects of the
  30347. assembler code, such as modifications to memory or registers. Unlike
  30348. some compilers, GCC assumes that no changes to general purpose registers
  30349. occur. This assumption may change in a future release.
  30350. To avoid complications from future changes to the semantics and the
  30351. compatibility issues between compilers, consider replacing basic 'asm'
  30352. with extended 'asm'. See How to convert from basic asm to extended asm
  30353. (https://gcc.gnu.org/wiki/ConvertBasicAsmToExtended) for information
  30354. about how to perform this conversion.
  30355. The compiler copies the assembler instructions in a basic 'asm'
  30356. verbatim to the assembly language output file, without processing
  30357. dialects or any of the '%' operators that are available with extended
  30358. 'asm'. This results in minor differences between basic 'asm' strings
  30359. and extended 'asm' templates. For example, to refer to registers you
  30360. might use '%eax' in basic 'asm' and '%%eax' in extended 'asm'.
  30361. On targets such as x86 that support multiple assembler dialects, all
  30362. basic 'asm' blocks use the assembler dialect specified by the '-masm'
  30363. command-line option (*note x86 Options::). Basic 'asm' provides no
  30364. mechanism to provide different assembler strings for different dialects.
  30365. For basic 'asm' with non-empty assembler string GCC assumes the
  30366. assembler block does not change any general purpose registers, but it
  30367. may read or write any globally accessible variable.
  30368. Here is an example of basic 'asm' for i386:
  30369. /* Note that this code will not compile with -masm=intel */
  30370. #define DebugBreak() asm("int $3")
  30371. 
  30372. File: gcc.info, Node: Extended Asm, Next: Constraints, Prev: Basic Asm, Up: Using Assembly Language with C
  30373. 6.47.2 Extended Asm - Assembler Instructions with C Expression Operands
  30374. -----------------------------------------------------------------------
  30375. With extended 'asm' you can read and write C variables from assembler
  30376. and perform jumps from assembler code to C labels. Extended 'asm'
  30377. syntax uses colons (':') to delimit the operand parameters after the
  30378. assembler template:
  30379. asm ASM-QUALIFIERS ( ASSEMBLERTEMPLATE
  30380. : OUTPUTOPERANDS
  30381. [ : INPUTOPERANDS
  30382. [ : CLOBBERS ] ])
  30383. asm ASM-QUALIFIERS ( ASSEMBLERTEMPLATE
  30384. :
  30385. : INPUTOPERANDS
  30386. : CLOBBERS
  30387. : GOTOLABELS)
  30388. where in the last form, ASM-QUALIFIERS contains 'goto' (and in the
  30389. first form, not).
  30390. The 'asm' keyword is a GNU extension. When writing code that can be
  30391. compiled with '-ansi' and the various '-std' options, use '__asm__'
  30392. instead of 'asm' (*note Alternate Keywords::).
  30393. Qualifiers
  30394. ..........
  30395. 'volatile'
  30396. The typical use of extended 'asm' statements is to manipulate input
  30397. values to produce output values. However, your 'asm' statements
  30398. may also produce side effects. If so, you may need to use the
  30399. 'volatile' qualifier to disable certain optimizations. *Note
  30400. Volatile::.
  30401. 'inline'
  30402. If you use the 'inline' qualifier, then for inlining purposes the
  30403. size of the 'asm' statement is taken as the smallest size possible
  30404. (*note Size of an asm::).
  30405. 'goto'
  30406. This qualifier informs the compiler that the 'asm' statement may
  30407. perform a jump to one of the labels listed in the GOTOLABELS.
  30408. *Note GotoLabels::.
  30409. Parameters
  30410. ..........
  30411. ASSEMBLERTEMPLATE
  30412. This is a literal string that is the template for the assembler
  30413. code. It is a combination of fixed text and tokens that refer to
  30414. the input, output, and goto parameters. *Note AssemblerTemplate::.
  30415. OUTPUTOPERANDS
  30416. A comma-separated list of the C variables modified by the
  30417. instructions in the ASSEMBLERTEMPLATE. An empty list is permitted.
  30418. *Note OutputOperands::.
  30419. INPUTOPERANDS
  30420. A comma-separated list of C expressions read by the instructions in
  30421. the ASSEMBLERTEMPLATE. An empty list is permitted. *Note
  30422. InputOperands::.
  30423. CLOBBERS
  30424. A comma-separated list of registers or other values changed by the
  30425. ASSEMBLERTEMPLATE, beyond those listed as outputs. An empty list
  30426. is permitted. *Note Clobbers and Scratch Registers::.
  30427. GOTOLABELS
  30428. When you are using the 'goto' form of 'asm', this section contains
  30429. the list of all C labels to which the code in the ASSEMBLERTEMPLATE
  30430. may jump. *Note GotoLabels::.
  30431. 'asm' statements may not perform jumps into other 'asm' statements,
  30432. only to the listed GOTOLABELS. GCC's optimizers do not know about
  30433. other jumps; therefore they cannot take account of them when
  30434. deciding how to optimize.
  30435. The total number of input + output + goto operands is limited to 30.
  30436. Remarks
  30437. .......
  30438. The 'asm' statement allows you to include assembly instructions directly
  30439. within C code. This may help you to maximize performance in
  30440. time-sensitive code or to access assembly instructions that are not
  30441. readily available to C programs.
  30442. Note that extended 'asm' statements must be inside a function. Only
  30443. basic 'asm' may be outside functions (*note Basic Asm::). Functions
  30444. declared with the 'naked' attribute also require basic 'asm' (*note
  30445. Function Attributes::).
  30446. While the uses of 'asm' are many and varied, it may help to think of an
  30447. 'asm' statement as a series of low-level instructions that convert input
  30448. parameters to output parameters. So a simple (if not particularly
  30449. useful) example for i386 using 'asm' might look like this:
  30450. int src = 1;
  30451. int dst;
  30452. asm ("mov %1, %0\n\t"
  30453. "add $1, %0"
  30454. : "=r" (dst)
  30455. : "r" (src));
  30456. printf("%d\n", dst);
  30457. This code copies 'src' to 'dst' and add 1 to 'dst'.
  30458. 6.47.2.1 Volatile
  30459. .................
  30460. GCC's optimizers sometimes discard 'asm' statements if they determine
  30461. there is no need for the output variables. Also, the optimizers may
  30462. move code out of loops if they believe that the code will always return
  30463. the same result (i.e. none of its input values change between calls).
  30464. Using the 'volatile' qualifier disables these optimizations. 'asm'
  30465. statements that have no output operands, including 'asm goto'
  30466. statements, are implicitly volatile.
  30467. This i386 code demonstrates a case that does not use (or require) the
  30468. 'volatile' qualifier. If it is performing assertion checking, this code
  30469. uses 'asm' to perform the validation. Otherwise, 'dwRes' is
  30470. unreferenced by any code. As a result, the optimizers can discard the
  30471. 'asm' statement, which in turn removes the need for the entire 'DoCheck'
  30472. routine. By omitting the 'volatile' qualifier when it isn't needed you
  30473. allow the optimizers to produce the most efficient code possible.
  30474. void DoCheck(uint32_t dwSomeValue)
  30475. {
  30476. uint32_t dwRes;
  30477. // Assumes dwSomeValue is not zero.
  30478. asm ("bsfl %1,%0"
  30479. : "=r" (dwRes)
  30480. : "r" (dwSomeValue)
  30481. : "cc");
  30482. assert(dwRes > 3);
  30483. }
  30484. The next example shows a case where the optimizers can recognize that
  30485. the input ('dwSomeValue') never changes during the execution of the
  30486. function and can therefore move the 'asm' outside the loop to produce
  30487. more efficient code. Again, using the 'volatile' qualifier disables
  30488. this type of optimization.
  30489. void do_print(uint32_t dwSomeValue)
  30490. {
  30491. uint32_t dwRes;
  30492. for (uint32_t x=0; x < 5; x++)
  30493. {
  30494. // Assumes dwSomeValue is not zero.
  30495. asm ("bsfl %1,%0"
  30496. : "=r" (dwRes)
  30497. : "r" (dwSomeValue)
  30498. : "cc");
  30499. printf("%u: %u %u\n", x, dwSomeValue, dwRes);
  30500. }
  30501. }
  30502. The following example demonstrates a case where you need to use the
  30503. 'volatile' qualifier. It uses the x86 'rdtsc' instruction, which reads
  30504. the computer's time-stamp counter. Without the 'volatile' qualifier,
  30505. the optimizers might assume that the 'asm' block will always return the
  30506. same value and therefore optimize away the second call.
  30507. uint64_t msr;
  30508. asm volatile ( "rdtsc\n\t" // Returns the time in EDX:EAX.
  30509. "shl $32, %%rdx\n\t" // Shift the upper bits left.
  30510. "or %%rdx, %0" // 'Or' in the lower bits.
  30511. : "=a" (msr)
  30512. :
  30513. : "rdx");
  30514. printf("msr: %llx\n", msr);
  30515. // Do other work...
  30516. // Reprint the timestamp
  30517. asm volatile ( "rdtsc\n\t" // Returns the time in EDX:EAX.
  30518. "shl $32, %%rdx\n\t" // Shift the upper bits left.
  30519. "or %%rdx, %0" // 'Or' in the lower bits.
  30520. : "=a" (msr)
  30521. :
  30522. : "rdx");
  30523. printf("msr: %llx\n", msr);
  30524. GCC's optimizers do not treat this code like the non-volatile code in
  30525. the earlier examples. They do not move it out of loops or omit it on
  30526. the assumption that the result from a previous call is still valid.
  30527. Note that the compiler can move even 'volatile asm' instructions
  30528. relative to other code, including across jump instructions. For
  30529. example, on many targets there is a system register that controls the
  30530. rounding mode of floating-point operations. Setting it with a 'volatile
  30531. asm' statement, as in the following PowerPC example, does not work
  30532. reliably.
  30533. asm volatile("mtfsf 255, %0" : : "f" (fpenv));
  30534. sum = x + y;
  30535. The compiler may move the addition back before the 'volatile asm'
  30536. statement. To make it work as expected, add an artificial dependency to
  30537. the 'asm' by referencing a variable in the subsequent code, for example:
  30538. asm volatile ("mtfsf 255,%1" : "=X" (sum) : "f" (fpenv));
  30539. sum = x + y;
  30540. Under certain circumstances, GCC may duplicate (or remove duplicates
  30541. of) your assembly code when optimizing. This can lead to unexpected
  30542. duplicate symbol errors during compilation if your 'asm' code defines
  30543. symbols or labels. Using '%=' (*note AssemblerTemplate::) may help
  30544. resolve this problem.
  30545. 6.47.2.2 Assembler Template
  30546. ...........................
  30547. An assembler template is a literal string containing assembler
  30548. instructions. The compiler replaces tokens in the template that refer
  30549. to inputs, outputs, and goto labels, and then outputs the resulting
  30550. string to the assembler. The string can contain any instructions
  30551. recognized by the assembler, including directives. GCC does not parse
  30552. the assembler instructions themselves and does not know what they mean
  30553. or even whether they are valid assembler input. However, it does count
  30554. the statements (*note Size of an asm::).
  30555. You may place multiple assembler instructions together in a single
  30556. 'asm' string, separated by the characters normally used in assembly code
  30557. for the system. A combination that works in most places is a newline to
  30558. break the line, plus a tab character to move to the instruction field
  30559. (written as '\n\t'). Some assemblers allow semicolons as a line
  30560. separator. However, note that some assembler dialects use semicolons to
  30561. start a comment.
  30562. Do not expect a sequence of 'asm' statements to remain perfectly
  30563. consecutive after compilation, even when you are using the 'volatile'
  30564. qualifier. If certain instructions need to remain consecutive in the
  30565. output, put them in a single multi-instruction 'asm' statement.
  30566. Accessing data from C programs without using input/output operands
  30567. (such as by using global symbols directly from the assembler template)
  30568. may not work as expected. Similarly, calling functions directly from an
  30569. assembler template requires a detailed understanding of the target
  30570. assembler and ABI.
  30571. Since GCC does not parse the assembler template, it has no visibility
  30572. of any symbols it references. This may result in GCC discarding those
  30573. symbols as unreferenced unless they are also listed as input, output, or
  30574. goto operands.
  30575. Special format strings
  30576. ......................
  30577. In addition to the tokens described by the input, output, and goto
  30578. operands, these tokens have special meanings in the assembler template:
  30579. '%%'
  30580. Outputs a single '%' into the assembler code.
  30581. '%='
  30582. Outputs a number that is unique to each instance of the 'asm'
  30583. statement in the entire compilation. This option is useful when
  30584. creating local labels and referring to them multiple times in a
  30585. single template that generates multiple assembler instructions.
  30586. '%{'
  30587. '%|'
  30588. '%}'
  30589. Outputs '{', '|', and '}' characters (respectively) into the
  30590. assembler code. When unescaped, these characters have special
  30591. meaning to indicate multiple assembler dialects, as described
  30592. below.
  30593. Multiple assembler dialects in 'asm' templates
  30594. ..............................................
  30595. On targets such as x86, GCC supports multiple assembler dialects. The
  30596. '-masm' option controls which dialect GCC uses as its default for inline
  30597. assembler. The target-specific documentation for the '-masm' option
  30598. contains the list of supported dialects, as well as the default dialect
  30599. if the option is not specified. This information may be important to
  30600. understand, since assembler code that works correctly when compiled
  30601. using one dialect will likely fail if compiled using another. *Note x86
  30602. Options::.
  30603. If your code needs to support multiple assembler dialects (for example,
  30604. if you are writing public headers that need to support a variety of
  30605. compilation options), use constructs of this form:
  30606. { dialect0 | dialect1 | dialect2... }
  30607. This construct outputs 'dialect0' when using dialect #0 to compile the
  30608. code, 'dialect1' for dialect #1, etc. If there are fewer alternatives
  30609. within the braces than the number of dialects the compiler supports, the
  30610. construct outputs nothing.
  30611. For example, if an x86 compiler supports two dialects ('att', 'intel'),
  30612. an assembler template such as this:
  30613. "bt{l %[Offset],%[Base] | %[Base],%[Offset]}; jc %l2"
  30614. is equivalent to one of
  30615. "btl %[Offset],%[Base] ; jc %l2" /* att dialect */
  30616. "bt %[Base],%[Offset]; jc %l2" /* intel dialect */
  30617. Using that same compiler, this code:
  30618. "xchg{l}\t{%%}ebx, %1"
  30619. corresponds to either
  30620. "xchgl\t%%ebx, %1" /* att dialect */
  30621. "xchg\tebx, %1" /* intel dialect */
  30622. There is no support for nesting dialect alternatives.
  30623. 6.47.2.3 Output Operands
  30624. ........................
  30625. An 'asm' statement has zero or more output operands indicating the names
  30626. of C variables modified by the assembler code.
  30627. In this i386 example, 'old' (referred to in the template string as
  30628. '%0') and '*Base' (as '%1') are outputs and 'Offset' ('%2') is an input:
  30629. bool old;
  30630. __asm__ ("btsl %2,%1\n\t" // Turn on zero-based bit #Offset in Base.
  30631. "sbb %0,%0" // Use the CF to calculate old.
  30632. : "=r" (old), "+rm" (*Base)
  30633. : "Ir" (Offset)
  30634. : "cc");
  30635. return old;
  30636. Operands are separated by commas. Each operand has this format:
  30637. [ [ASMSYMBOLICNAME] ] CONSTRAINT (CVARIABLENAME)
  30638. ASMSYMBOLICNAME
  30639. Specifies a symbolic name for the operand. Reference the name in
  30640. the assembler template by enclosing it in square brackets (i.e.
  30641. '%[Value]'). The scope of the name is the 'asm' statement that
  30642. contains the definition. Any valid C variable name is acceptable,
  30643. including names already defined in the surrounding code. No two
  30644. operands within the same 'asm' statement can use the same symbolic
  30645. name.
  30646. When not using an ASMSYMBOLICNAME, use the (zero-based) position of
  30647. the operand in the list of operands in the assembler template. For
  30648. example if there are three output operands, use '%0' in the
  30649. template to refer to the first, '%1' for the second, and '%2' for
  30650. the third.
  30651. CONSTRAINT
  30652. A string constant specifying constraints on the placement of the
  30653. operand; *Note Constraints::, for details.
  30654. Output constraints must begin with either '=' (a variable
  30655. overwriting an existing value) or '+' (when reading and writing).
  30656. When using '=', do not assume the location contains the existing
  30657. value on entry to the 'asm', except when the operand is tied to an
  30658. input; *note Input Operands: InputOperands.
  30659. After the prefix, there must be one or more additional constraints
  30660. (*note Constraints::) that describe where the value resides.
  30661. Common constraints include 'r' for register and 'm' for memory.
  30662. When you list more than one possible location (for example,
  30663. '"=rm"'), the compiler chooses the most efficient one based on the
  30664. current context. If you list as many alternates as the 'asm'
  30665. statement allows, you permit the optimizers to produce the best
  30666. possible code. If you must use a specific register, but your
  30667. Machine Constraints do not provide sufficient control to select the
  30668. specific register you want, local register variables may provide a
  30669. solution (*note Local Register Variables::).
  30670. CVARIABLENAME
  30671. Specifies a C lvalue expression to hold the output, typically a
  30672. variable name. The enclosing parentheses are a required part of
  30673. the syntax.
  30674. When the compiler selects the registers to use to represent the output
  30675. operands, it does not use any of the clobbered registers (*note Clobbers
  30676. and Scratch Registers::).
  30677. Output operand expressions must be lvalues. The compiler cannot check
  30678. whether the operands have data types that are reasonable for the
  30679. instruction being executed. For output expressions that are not
  30680. directly addressable (for example a bit-field), the constraint must
  30681. allow a register. In that case, GCC uses the register as the output of
  30682. the 'asm', and then stores that register into the output.
  30683. Operands using the '+' constraint modifier count as two operands (that
  30684. is, both as input and output) towards the total maximum of 30 operands
  30685. per 'asm' statement.
  30686. Use the '&' constraint modifier (*note Modifiers::) on all output
  30687. operands that must not overlap an input. Otherwise, GCC may allocate
  30688. the output operand in the same register as an unrelated input operand,
  30689. on the assumption that the assembler code consumes its inputs before
  30690. producing outputs. This assumption may be false if the assembler code
  30691. actually consists of more than one instruction.
  30692. The same problem can occur if one output parameter (A) allows a
  30693. register constraint and another output parameter (B) allows a memory
  30694. constraint. The code generated by GCC to access the memory address in B
  30695. can contain registers which _might_ be shared by A, and GCC considers
  30696. those registers to be inputs to the asm. As above, GCC assumes that
  30697. such input registers are consumed before any outputs are written. This
  30698. assumption may result in incorrect behavior if the 'asm' statement
  30699. writes to A before using B. Combining the '&' modifier with the
  30700. register constraint on A ensures that modifying A does not affect the
  30701. address referenced by B. Otherwise, the location of B is undefined if A
  30702. is modified before using B.
  30703. 'asm' supports operand modifiers on operands (for example '%k2' instead
  30704. of simply '%2'). Typically these qualifiers are hardware dependent.
  30705. The list of supported modifiers for x86 is found at *note x86 Operand
  30706. modifiers: x86Operandmodifiers.
  30707. If the C code that follows the 'asm' makes no use of any of the output
  30708. operands, use 'volatile' for the 'asm' statement to prevent the
  30709. optimizers from discarding the 'asm' statement as unneeded (see *note
  30710. Volatile::).
  30711. This code makes no use of the optional ASMSYMBOLICNAME. Therefore it
  30712. references the first output operand as '%0' (were there a second, it
  30713. would be '%1', etc). The number of the first input operand is one
  30714. greater than that of the last output operand. In this i386 example,
  30715. that makes 'Mask' referenced as '%1':
  30716. uint32_t Mask = 1234;
  30717. uint32_t Index;
  30718. asm ("bsfl %1, %0"
  30719. : "=r" (Index)
  30720. : "r" (Mask)
  30721. : "cc");
  30722. That code overwrites the variable 'Index' ('='), placing the value in a
  30723. register ('r'). Using the generic 'r' constraint instead of a
  30724. constraint for a specific register allows the compiler to pick the
  30725. register to use, which can result in more efficient code. This may not
  30726. be possible if an assembler instruction requires a specific register.
  30727. The following i386 example uses the ASMSYMBOLICNAME syntax. It
  30728. produces the same result as the code above, but some may consider it
  30729. more readable or more maintainable since reordering index numbers is not
  30730. necessary when adding or removing operands. The names 'aIndex' and
  30731. 'aMask' are only used in this example to emphasize which names get used
  30732. where. It is acceptable to reuse the names 'Index' and 'Mask'.
  30733. uint32_t Mask = 1234;
  30734. uint32_t Index;
  30735. asm ("bsfl %[aMask], %[aIndex]"
  30736. : [aIndex] "=r" (Index)
  30737. : [aMask] "r" (Mask)
  30738. : "cc");
  30739. Here are some more examples of output operands.
  30740. uint32_t c = 1;
  30741. uint32_t d;
  30742. uint32_t *e = &c;
  30743. asm ("mov %[e], %[d]"
  30744. : [d] "=rm" (d)
  30745. : [e] "rm" (*e));
  30746. Here, 'd' may either be in a register or in memory. Since the compiler
  30747. might already have the current value of the 'uint32_t' location pointed
  30748. to by 'e' in a register, you can enable it to choose the best location
  30749. for 'd' by specifying both constraints.
  30750. 6.47.2.4 Flag Output Operands
  30751. .............................
  30752. Some targets have a special register that holds the "flags" for the
  30753. result of an operation or comparison. Normally, the contents of that
  30754. register are either unmodifed by the asm, or the 'asm' statement is
  30755. considered to clobber the contents.
  30756. On some targets, a special form of output operand exists by which
  30757. conditions in the flags register may be outputs of the asm. The set of
  30758. conditions supported are target specific, but the general rule is that
  30759. the output variable must be a scalar integer, and the value is boolean.
  30760. When supported, the target defines the preprocessor symbol
  30761. '__GCC_ASM_FLAG_OUTPUTS__'.
  30762. Because of the special nature of the flag output operands, the
  30763. constraint may not include alternatives.
  30764. Most often, the target has only one flags register, and thus is an
  30765. implied operand of many instructions. In this case, the operand should
  30766. not be referenced within the assembler template via '%0' etc, as there's
  30767. no corresponding text in the assembly language.
  30768. ARM
  30769. AArch64
  30770. The flag output constraints for the ARM family are of the form
  30771. '=@ccCOND' where COND is one of the standard conditions defined in
  30772. the ARM ARM for 'ConditionHolds'.
  30773. 'eq'
  30774. Z flag set, or equal
  30775. 'ne'
  30776. Z flag clear or not equal
  30777. 'cs'
  30778. 'hs'
  30779. C flag set or unsigned greater than equal
  30780. 'cc'
  30781. 'lo'
  30782. C flag clear or unsigned less than
  30783. 'mi'
  30784. N flag set or "minus"
  30785. 'pl'
  30786. N flag clear or "plus"
  30787. 'vs'
  30788. V flag set or signed overflow
  30789. 'vc'
  30790. V flag clear
  30791. 'hi'
  30792. unsigned greater than
  30793. 'ls'
  30794. unsigned less than equal
  30795. 'ge'
  30796. signed greater than equal
  30797. 'lt'
  30798. signed less than
  30799. 'gt'
  30800. signed greater than
  30801. 'le'
  30802. signed less than equal
  30803. The flag output constraints are not supported in thumb1 mode.
  30804. x86 family
  30805. The flag output constraints for the x86 family are of the form
  30806. '=@ccCOND' where COND is one of the standard conditions defined in
  30807. the ISA manual for 'jCC' or 'setCC'.
  30808. 'a'
  30809. "above" or unsigned greater than
  30810. 'ae'
  30811. "above or equal" or unsigned greater than or equal
  30812. 'b'
  30813. "below" or unsigned less than
  30814. 'be'
  30815. "below or equal" or unsigned less than or equal
  30816. 'c'
  30817. carry flag set
  30818. 'e'
  30819. 'z'
  30820. "equal" or zero flag set
  30821. 'g'
  30822. signed greater than
  30823. 'ge'
  30824. signed greater than or equal
  30825. 'l'
  30826. signed less than
  30827. 'le'
  30828. signed less than or equal
  30829. 'o'
  30830. overflow flag set
  30831. 'p'
  30832. parity flag set
  30833. 's'
  30834. sign flag set
  30835. 'na'
  30836. 'nae'
  30837. 'nb'
  30838. 'nbe'
  30839. 'nc'
  30840. 'ne'
  30841. 'ng'
  30842. 'nge'
  30843. 'nl'
  30844. 'nle'
  30845. 'no'
  30846. 'np'
  30847. 'ns'
  30848. 'nz'
  30849. "not" FLAG, or inverted versions of those above
  30850. 6.47.2.5 Input Operands
  30851. .......................
  30852. Input operands make values from C variables and expressions available to
  30853. the assembly code.
  30854. Operands are separated by commas. Each operand has this format:
  30855. [ [ASMSYMBOLICNAME] ] CONSTRAINT (CEXPRESSION)
  30856. ASMSYMBOLICNAME
  30857. Specifies a symbolic name for the operand. Reference the name in
  30858. the assembler template by enclosing it in square brackets (i.e.
  30859. '%[Value]'). The scope of the name is the 'asm' statement that
  30860. contains the definition. Any valid C variable name is acceptable,
  30861. including names already defined in the surrounding code. No two
  30862. operands within the same 'asm' statement can use the same symbolic
  30863. name.
  30864. When not using an ASMSYMBOLICNAME, use the (zero-based) position of
  30865. the operand in the list of operands in the assembler template. For
  30866. example if there are two output operands and three inputs, use '%2'
  30867. in the template to refer to the first input operand, '%3' for the
  30868. second, and '%4' for the third.
  30869. CONSTRAINT
  30870. A string constant specifying constraints on the placement of the
  30871. operand; *Note Constraints::, for details.
  30872. Input constraint strings may not begin with either '=' or '+'.
  30873. When you list more than one possible location (for example,
  30874. '"irm"'), the compiler chooses the most efficient one based on the
  30875. current context. If you must use a specific register, but your
  30876. Machine Constraints do not provide sufficient control to select the
  30877. specific register you want, local register variables may provide a
  30878. solution (*note Local Register Variables::).
  30879. Input constraints can also be digits (for example, '"0"'). This
  30880. indicates that the specified input must be in the same place as the
  30881. output constraint at the (zero-based) index in the output
  30882. constraint list. When using ASMSYMBOLICNAME syntax for the output
  30883. operands, you may use these names (enclosed in brackets '[]')
  30884. instead of digits.
  30885. CEXPRESSION
  30886. This is the C variable or expression being passed to the 'asm'
  30887. statement as input. The enclosing parentheses are a required part
  30888. of the syntax.
  30889. When the compiler selects the registers to use to represent the input
  30890. operands, it does not use any of the clobbered registers (*note Clobbers
  30891. and Scratch Registers::).
  30892. If there are no output operands but there are input operands, place two
  30893. consecutive colons where the output operands would go:
  30894. __asm__ ("some instructions"
  30895. : /* No outputs. */
  30896. : "r" (Offset / 8));
  30897. *Warning:* Do _not_ modify the contents of input-only operands (except
  30898. for inputs tied to outputs). The compiler assumes that on exit from the
  30899. 'asm' statement these operands contain the same values as they had
  30900. before executing the statement. It is _not_ possible to use clobbers to
  30901. inform the compiler that the values in these inputs are changing. One
  30902. common work-around is to tie the changing input variable to an output
  30903. variable that never gets used. Note, however, that if the code that
  30904. follows the 'asm' statement makes no use of any of the output operands,
  30905. the GCC optimizers may discard the 'asm' statement as unneeded (see
  30906. *note Volatile::).
  30907. 'asm' supports operand modifiers on operands (for example '%k2' instead
  30908. of simply '%2'). Typically these qualifiers are hardware dependent.
  30909. The list of supported modifiers for x86 is found at *note x86 Operand
  30910. modifiers: x86Operandmodifiers.
  30911. In this example using the fictitious 'combine' instruction, the
  30912. constraint '"0"' for input operand 1 says that it must occupy the same
  30913. location as output operand 0. Only input operands may use numbers in
  30914. constraints, and they must each refer to an output operand. Only a
  30915. number (or the symbolic assembler name) in the constraint can guarantee
  30916. that one operand is in the same place as another. The mere fact that
  30917. 'foo' is the value of both operands is not enough to guarantee that they
  30918. are in the same place in the generated assembler code.
  30919. asm ("combine %2, %0"
  30920. : "=r" (foo)
  30921. : "0" (foo), "g" (bar));
  30922. Here is an example using symbolic names.
  30923. asm ("cmoveq %1, %2, %[result]"
  30924. : [result] "=r"(result)
  30925. : "r" (test), "r" (new), "[result]" (old));
  30926. 6.47.2.6 Clobbers and Scratch Registers
  30927. .......................................
  30928. While the compiler is aware of changes to entries listed in the output
  30929. operands, the inline 'asm' code may modify more than just the outputs.
  30930. For example, calculations may require additional registers, or the
  30931. processor may overwrite a register as a side effect of a particular
  30932. assembler instruction. In order to inform the compiler of these
  30933. changes, list them in the clobber list. Clobber list items are either
  30934. register names or the special clobbers (listed below). Each clobber
  30935. list item is a string constant enclosed in double quotes and separated
  30936. by commas.
  30937. Clobber descriptions may not in any way overlap with an input or output
  30938. operand. For example, you may not have an operand describing a register
  30939. class with one member when listing that register in the clobber list.
  30940. Variables declared to live in specific registers (*note Explicit
  30941. Register Variables::) and used as 'asm' input or output operands must
  30942. have no part mentioned in the clobber description. In particular, there
  30943. is no way to specify that input operands get modified without also
  30944. specifying them as output operands.
  30945. When the compiler selects which registers to use to represent input and
  30946. output operands, it does not use any of the clobbered registers. As a
  30947. result, clobbered registers are available for any use in the assembler
  30948. code.
  30949. Another restriction is that the clobber list should not contain the
  30950. stack pointer register. This is because the compiler requires the value
  30951. of the stack pointer to be the same after an 'asm' statement as it was
  30952. on entry to the statement. However, previous versions of GCC did not
  30953. enforce this rule and allowed the stack pointer to appear in the list,
  30954. with unclear semantics. This behavior is deprecated and listing the
  30955. stack pointer may become an error in future versions of GCC.
  30956. Here is a realistic example for the VAX showing the use of clobbered
  30957. registers:
  30958. asm volatile ("movc3 %0, %1, %2"
  30959. : /* No outputs. */
  30960. : "g" (from), "g" (to), "g" (count)
  30961. : "r0", "r1", "r2", "r3", "r4", "r5", "memory");
  30962. Also, there are two special clobber arguments:
  30963. '"cc"'
  30964. The '"cc"' clobber indicates that the assembler code modifies the
  30965. flags register. On some machines, GCC represents the condition
  30966. codes as a specific hardware register; '"cc"' serves to name this
  30967. register. On other machines, condition code handling is different,
  30968. and specifying '"cc"' has no effect. But it is valid no matter
  30969. what the target.
  30970. '"memory"'
  30971. The '"memory"' clobber tells the compiler that the assembly code
  30972. performs memory reads or writes to items other than those listed in
  30973. the input and output operands (for example, accessing the memory
  30974. pointed to by one of the input parameters). To ensure memory
  30975. contains correct values, GCC may need to flush specific register
  30976. values to memory before executing the 'asm'. Further, the compiler
  30977. does not assume that any values read from memory before an 'asm'
  30978. remain unchanged after that 'asm'; it reloads them as needed.
  30979. Using the '"memory"' clobber effectively forms a read/write memory
  30980. barrier for the compiler.
  30981. Note that this clobber does not prevent the _processor_ from doing
  30982. speculative reads past the 'asm' statement. To prevent that, you
  30983. need processor-specific fence instructions.
  30984. Flushing registers to memory has performance implications and may be an
  30985. issue for time-sensitive code. You can provide better information to
  30986. GCC to avoid this, as shown in the following examples. At a minimum,
  30987. aliasing rules allow GCC to know what memory _doesn't_ need to be
  30988. flushed.
  30989. Here is a fictitious sum of squares instruction, that takes two
  30990. pointers to floating point values in memory and produces a floating
  30991. point register output. Notice that 'x', and 'y' both appear twice in
  30992. the 'asm' parameters, once to specify memory accessed, and once to
  30993. specify a base register used by the 'asm'. You won't normally be
  30994. wasting a register by doing this as GCC can use the same register for
  30995. both purposes. However, it would be foolish to use both '%1' and '%3'
  30996. for 'x' in this 'asm' and expect them to be the same. In fact, '%3' may
  30997. well not be a register. It might be a symbolic memory reference to the
  30998. object pointed to by 'x'.
  30999. asm ("sumsq %0, %1, %2"
  31000. : "+f" (result)
  31001. : "r" (x), "r" (y), "m" (*x), "m" (*y));
  31002. Here is a fictitious '*z++ = *x++ * *y++' instruction. Notice that the
  31003. 'x', 'y' and 'z' pointer registers must be specified as input/output
  31004. because the 'asm' modifies them.
  31005. asm ("vecmul %0, %1, %2"
  31006. : "+r" (z), "+r" (x), "+r" (y), "=m" (*z)
  31007. : "m" (*x), "m" (*y));
  31008. An x86 example where the string memory argument is of unknown length.
  31009. asm("repne scasb"
  31010. : "=c" (count), "+D" (p)
  31011. : "m" (*(const char (*)[]) p), "0" (-1), "a" (0));
  31012. If you know the above will only be reading a ten byte array then you
  31013. could instead use a memory input like: '"m" (*(const char (*)[10]) p)'.
  31014. Here is an example of a PowerPC vector scale implemented in assembly,
  31015. complete with vector and condition code clobbers, and some initialized
  31016. offset registers that are unchanged by the 'asm'.
  31017. void
  31018. dscal (size_t n, double *x, double alpha)
  31019. {
  31020. asm ("/* lots of asm here */"
  31021. : "+m" (*(double (*)[n]) x), "+&r" (n), "+b" (x)
  31022. : "d" (alpha), "b" (32), "b" (48), "b" (64),
  31023. "b" (80), "b" (96), "b" (112)
  31024. : "cr0",
  31025. "vs32","vs33","vs34","vs35","vs36","vs37","vs38","vs39",
  31026. "vs40","vs41","vs42","vs43","vs44","vs45","vs46","vs47");
  31027. }
  31028. Rather than allocating fixed registers via clobbers to provide scratch
  31029. registers for an 'asm' statement, an alternative is to define a variable
  31030. and make it an early-clobber output as with 'a2' and 'a3' in the example
  31031. below. This gives the compiler register allocator more freedom. You
  31032. can also define a variable and make it an output tied to an input as
  31033. with 'a0' and 'a1', tied respectively to 'ap' and 'lda'. Of course,
  31034. with tied outputs your 'asm' can't use the input value after modifying
  31035. the output register since they are one and the same register. What's
  31036. more, if you omit the early-clobber on the output, it is possible that
  31037. GCC might allocate the same register to another of the inputs if GCC
  31038. could prove they had the same value on entry to the 'asm'. This is why
  31039. 'a1' has an early-clobber. Its tied input, 'lda' might conceivably be
  31040. known to have the value 16 and without an early-clobber share the same
  31041. register as '%11'. On the other hand, 'ap' can't be the same as any of
  31042. the other inputs, so an early-clobber on 'a0' is not needed. It is also
  31043. not desirable in this case. An early-clobber on 'a0' would cause GCC to
  31044. allocate a separate register for the '"m" (*(const double (*)[]) ap)'
  31045. input. Note that tying an input to an output is the way to set up an
  31046. initialized temporary register modified by an 'asm' statement. An input
  31047. not tied to an output is assumed by GCC to be unchanged, for example
  31048. '"b" (16)' below sets up '%11' to 16, and GCC might use that register in
  31049. following code if the value 16 happened to be needed. You can even use
  31050. a normal 'asm' output for a scratch if all inputs that might share the
  31051. same register are consumed before the scratch is used. The VSX
  31052. registers clobbered by the 'asm' statement could have used this
  31053. technique except for GCC's limit on the number of 'asm' parameters.
  31054. static void
  31055. dgemv_kernel_4x4 (long n, const double *ap, long lda,
  31056. const double *x, double *y, double alpha)
  31057. {
  31058. double *a0;
  31059. double *a1;
  31060. double *a2;
  31061. double *a3;
  31062. __asm__
  31063. (
  31064. /* lots of asm here */
  31065. "#n=%1 ap=%8=%12 lda=%13 x=%7=%10 y=%0=%2 alpha=%9 o16=%11\n"
  31066. "#a0=%3 a1=%4 a2=%5 a3=%6"
  31067. :
  31068. "+m" (*(double (*)[n]) y),
  31069. "+&r" (n), // 1
  31070. "+b" (y), // 2
  31071. "=b" (a0), // 3
  31072. "=&b" (a1), // 4
  31073. "=&b" (a2), // 5
  31074. "=&b" (a3) // 6
  31075. :
  31076. "m" (*(const double (*)[n]) x),
  31077. "m" (*(const double (*)[]) ap),
  31078. "d" (alpha), // 9
  31079. "r" (x), // 10
  31080. "b" (16), // 11
  31081. "3" (ap), // 12
  31082. "4" (lda) // 13
  31083. :
  31084. "cr0",
  31085. "vs32","vs33","vs34","vs35","vs36","vs37",
  31086. "vs40","vs41","vs42","vs43","vs44","vs45","vs46","vs47"
  31087. );
  31088. }
  31089. 6.47.2.7 Goto Labels
  31090. ....................
  31091. 'asm goto' allows assembly code to jump to one or more C labels. The
  31092. GOTOLABELS section in an 'asm goto' statement contains a comma-separated
  31093. list of all C labels to which the assembler code may jump. GCC assumes
  31094. that 'asm' execution falls through to the next statement (if this is not
  31095. the case, consider using the '__builtin_unreachable' intrinsic after the
  31096. 'asm' statement). Optimization of 'asm goto' may be improved by using
  31097. the 'hot' and 'cold' label attributes (*note Label Attributes::).
  31098. An 'asm goto' statement cannot have outputs. This is due to an
  31099. internal restriction of the compiler: control transfer instructions
  31100. cannot have outputs. If the assembler code does modify anything, use
  31101. the '"memory"' clobber to force the optimizers to flush all register
  31102. values to memory and reload them if necessary after the 'asm' statement.
  31103. Also note that an 'asm goto' statement is always implicitly considered
  31104. volatile.
  31105. To reference a label in the assembler template, prefix it with '%l'
  31106. (lowercase 'L') followed by its (zero-based) position in GOTOLABELS plus
  31107. the number of input operands. For example, if the 'asm' has three
  31108. inputs and references two labels, refer to the first label as '%l3' and
  31109. the second as '%l4').
  31110. Alternately, you can reference labels using the actual C label name
  31111. enclosed in brackets. For example, to reference a label named 'carry',
  31112. you can use '%l[carry]'. The label must still be listed in the
  31113. GOTOLABELS section when using this approach.
  31114. Here is an example of 'asm goto' for i386:
  31115. asm goto (
  31116. "btl %1, %0\n\t"
  31117. "jc %l2"
  31118. : /* No outputs. */
  31119. : "r" (p1), "r" (p2)
  31120. : "cc"
  31121. : carry);
  31122. return 0;
  31123. carry:
  31124. return 1;
  31125. The following example shows an 'asm goto' that uses a memory clobber.
  31126. int frob(int x)
  31127. {
  31128. int y;
  31129. asm goto ("frob %%r5, %1; jc %l[error]; mov (%2), %%r5"
  31130. : /* No outputs. */
  31131. : "r"(x), "r"(&y)
  31132. : "r5", "memory"
  31133. : error);
  31134. return y;
  31135. error:
  31136. return -1;
  31137. }
  31138. 6.47.2.8 x86 Operand Modifiers
  31139. ..............................
  31140. References to input, output, and goto operands in the assembler template
  31141. of extended 'asm' statements can use modifiers to affect the way the
  31142. operands are formatted in the code output to the assembler. For
  31143. example, the following code uses the 'h' and 'b' modifiers for x86:
  31144. uint16_t num;
  31145. asm volatile ("xchg %h0, %b0" : "+a" (num) );
  31146. These modifiers generate this assembler code:
  31147. xchg %ah, %al
  31148. The rest of this discussion uses the following code for illustrative
  31149. purposes.
  31150. int main()
  31151. {
  31152. int iInt = 1;
  31153. top:
  31154. asm volatile goto ("some assembler instructions here"
  31155. : /* No outputs. */
  31156. : "q" (iInt), "X" (sizeof(unsigned char) + 1), "i" (42)
  31157. : /* No clobbers. */
  31158. : top);
  31159. }
  31160. With no modifiers, this is what the output from the operands would be
  31161. for the 'att' and 'intel' dialects of assembler:
  31162. Operand 'att' 'intel'
  31163. -----------------------------------
  31164. '%0' '%eax' 'eax'
  31165. '%1' '$2' '2'
  31166. '%3' '$.L3' 'OFFSET
  31167. FLAT:.L3'
  31168. The table below shows the list of supported modifiers and their
  31169. effects.
  31170. Modifier Description Operand 'att' 'intel'
  31171. ------------------------------------------------------------------------------------
  31172. 'A' Print an absolute memory reference. '%A0' '*%rax' 'rax'
  31173. 'b' Print the QImode name of the register. '%b0' '%al' 'al'
  31174. 'c' Require a constant operand and print the '%c1' '2' '2'
  31175. constant expression with no punctuation.
  31176. 'E' Print the address in Double Integer '%E1' '%(rax)''[rax]'
  31177. (DImode) mode (8 bytes) when the target is
  31178. 64-bit. Otherwise mode is unspecified
  31179. (VOIDmode).
  31180. 'h' Print the QImode name for a "high" '%h0' '%ah' 'ah'
  31181. register.
  31182. 'H' Add 8 bytes to an offsettable memory '%H0' '8(%rax)''8[rax]'
  31183. reference. Useful when accessing the high
  31184. 8 bytes of SSE values. For a memref in
  31185. (%rax), it generates
  31186. 'k' Print the SImode name of the register. '%k0' '%eax' 'eax'
  31187. 'l' Print the label name with no punctuation. '%l3' '.L3' '.L3'
  31188. 'p' Print raw symbol name (without '%p2' '42' '42'
  31189. syntax-specific prefixes).
  31190. 'P' If used for a function, print the PLT
  31191. suffix and generate PIC code. For
  31192. example, emit 'foo@PLT' instead of 'foo'
  31193. for the function foo(). If used for a
  31194. constant, drop all syntax-specific
  31195. prefixes and issue the bare constant. See
  31196. 'p' above.
  31197. 'q' Print the DImode name of the register. '%q0' '%rax' 'rax'
  31198. 'w' Print the HImode name of the register. '%w0' '%ax' 'ax'
  31199. 'z' Print the opcode suffix for the size of '%z0' 'l'
  31200. the current integer operand (one of
  31201. 'b'/'w'/'l'/'q').
  31202. 'V' is a special modifier which prints the name of the full integer
  31203. register without '%'.
  31204. 6.47.2.9 x86 Floating-Point 'asm' Operands
  31205. ..........................................
  31206. On x86 targets, there are several rules on the usage of stack-like
  31207. registers in the operands of an 'asm'. These rules apply only to the
  31208. operands that are stack-like registers:
  31209. 1. Given a set of input registers that die in an 'asm', it is
  31210. necessary to know which are implicitly popped by the 'asm', and
  31211. which must be explicitly popped by GCC.
  31212. An input register that is implicitly popped by the 'asm' must be
  31213. explicitly clobbered, unless it is constrained to match an output
  31214. operand.
  31215. 2. For any input register that is implicitly popped by an 'asm', it is
  31216. necessary to know how to adjust the stack to compensate for the
  31217. pop. If any non-popped input is closer to the top of the reg-stack
  31218. than the implicitly popped register, it would not be possible to
  31219. know what the stack looked like--it's not clear how the rest of the
  31220. stack "slides up".
  31221. All implicitly popped input registers must be closer to the top of
  31222. the reg-stack than any input that is not implicitly popped.
  31223. It is possible that if an input dies in an 'asm', the compiler
  31224. might use the input register for an output reload. Consider this
  31225. example:
  31226. asm ("foo" : "=t" (a) : "f" (b));
  31227. This code says that input 'b' is not popped by the 'asm', and that
  31228. the 'asm' pushes a result onto the reg-stack, i.e., the stack is
  31229. one deeper after the 'asm' than it was before. But, it is possible
  31230. that reload may think that it can use the same register for both
  31231. the input and the output.
  31232. To prevent this from happening, if any input operand uses the 'f'
  31233. constraint, all output register constraints must use the '&'
  31234. early-clobber modifier.
  31235. The example above is correctly written as:
  31236. asm ("foo" : "=&t" (a) : "f" (b));
  31237. 3. Some operands need to be in particular places on the stack. All
  31238. output operands fall in this category--GCC has no other way to know
  31239. which registers the outputs appear in unless you indicate this in
  31240. the constraints.
  31241. Output operands must specifically indicate which register an output
  31242. appears in after an 'asm'. '=f' is not allowed: the operand
  31243. constraints must select a class with a single register.
  31244. 4. Output operands may not be "inserted" between existing stack
  31245. registers. Since no 387 opcode uses a read/write operand, all
  31246. output operands are dead before the 'asm', and are pushed by the
  31247. 'asm'. It makes no sense to push anywhere but the top of the
  31248. reg-stack.
  31249. Output operands must start at the top of the reg-stack: output
  31250. operands may not "skip" a register.
  31251. 5. Some 'asm' statements may need extra stack space for internal
  31252. calculations. This can be guaranteed by clobbering stack registers
  31253. unrelated to the inputs and outputs.
  31254. This 'asm' takes one input, which is internally popped, and produces
  31255. two outputs.
  31256. asm ("fsincos" : "=t" (cos), "=u" (sin) : "0" (inp));
  31257. This 'asm' takes two inputs, which are popped by the 'fyl2xp1' opcode,
  31258. and replaces them with one output. The 'st(1)' clobber is necessary for
  31259. the compiler to know that 'fyl2xp1' pops both inputs.
  31260. asm ("fyl2xp1" : "=t" (result) : "0" (x), "u" (y) : "st(1)");
  31261. 
  31262. File: gcc.info, Node: Constraints, Next: Asm Labels, Prev: Extended Asm, Up: Using Assembly Language with C
  31263. 6.47.3 Constraints for 'asm' Operands
  31264. -------------------------------------
  31265. Here are specific details on what constraint letters you can use with
  31266. 'asm' operands. Constraints can say whether an operand may be in a
  31267. register, and which kinds of register; whether the operand can be a
  31268. memory reference, and which kinds of address; whether the operand may be
  31269. an immediate constant, and which possible values it may have.
  31270. Constraints can also require two operands to match. Side-effects aren't
  31271. allowed in operands of inline 'asm', unless '<' or '>' constraints are
  31272. used, because there is no guarantee that the side effects will happen
  31273. exactly once in an instruction that can update the addressing register.
  31274. * Menu:
  31275. * Simple Constraints:: Basic use of constraints.
  31276. * Multi-Alternative:: When an insn has two alternative constraint-patterns.
  31277. * Modifiers:: More precise control over effects of constraints.
  31278. * Machine Constraints:: Special constraints for some particular machines.
  31279. 
  31280. File: gcc.info, Node: Simple Constraints, Next: Multi-Alternative, Up: Constraints
  31281. 6.47.3.1 Simple Constraints
  31282. ...........................
  31283. The simplest kind of constraint is a string full of letters, each of
  31284. which describes one kind of operand that is permitted. Here are the
  31285. letters that are allowed:
  31286. whitespace
  31287. Whitespace characters are ignored and can be inserted at any
  31288. position except the first. This enables each alternative for
  31289. different operands to be visually aligned in the machine
  31290. description even if they have different number of constraints and
  31291. modifiers.
  31292. 'm'
  31293. A memory operand is allowed, with any kind of address that the
  31294. machine supports in general. Note that the letter used for the
  31295. general memory constraint can be re-defined by a back end using the
  31296. 'TARGET_MEM_CONSTRAINT' macro.
  31297. 'o'
  31298. A memory operand is allowed, but only if the address is
  31299. "offsettable". This means that adding a small integer (actually,
  31300. the width in bytes of the operand, as determined by its machine
  31301. mode) may be added to the address and the result is also a valid
  31302. memory address.
  31303. For example, an address which is constant is offsettable; so is an
  31304. address that is the sum of a register and a constant (as long as a
  31305. slightly larger constant is also within the range of
  31306. address-offsets supported by the machine); but an autoincrement or
  31307. autodecrement address is not offsettable. More complicated
  31308. indirect/indexed addresses may or may not be offsettable depending
  31309. on the other addressing modes that the machine supports.
  31310. Note that in an output operand which can be matched by another
  31311. operand, the constraint letter 'o' is valid only when accompanied
  31312. by both '<' (if the target machine has predecrement addressing) and
  31313. '>' (if the target machine has preincrement addressing).
  31314. 'V'
  31315. A memory operand that is not offsettable. In other words, anything
  31316. that would fit the 'm' constraint but not the 'o' constraint.
  31317. '<'
  31318. A memory operand with autodecrement addressing (either predecrement
  31319. or postdecrement) is allowed. In inline 'asm' this constraint is
  31320. only allowed if the operand is used exactly once in an instruction
  31321. that can handle the side effects. Not using an operand with '<' in
  31322. constraint string in the inline 'asm' pattern at all or using it in
  31323. multiple instructions isn't valid, because the side effects
  31324. wouldn't be performed or would be performed more than once.
  31325. Furthermore, on some targets the operand with '<' in constraint
  31326. string must be accompanied by special instruction suffixes like
  31327. '%U0' instruction suffix on PowerPC or '%P0' on IA-64.
  31328. '>'
  31329. A memory operand with autoincrement addressing (either preincrement
  31330. or postincrement) is allowed. In inline 'asm' the same
  31331. restrictions as for '<' apply.
  31332. 'r'
  31333. A register operand is allowed provided that it is in a general
  31334. register.
  31335. 'i'
  31336. An immediate integer operand (one with constant value) is allowed.
  31337. This includes symbolic constants whose values will be known only at
  31338. assembly time or later.
  31339. 'n'
  31340. An immediate integer operand with a known numeric value is allowed.
  31341. Many systems cannot support assembly-time constants for operands
  31342. less than a word wide. Constraints for these operands should use
  31343. 'n' rather than 'i'.
  31344. 'I', 'J', 'K', ... 'P'
  31345. Other letters in the range 'I' through 'P' may be defined in a
  31346. machine-dependent fashion to permit immediate integer operands with
  31347. explicit integer values in specified ranges. For example, on the
  31348. 68000, 'I' is defined to stand for the range of values 1 to 8.
  31349. This is the range permitted as a shift count in the shift
  31350. instructions.
  31351. 'E'
  31352. An immediate floating operand (expression code 'const_double') is
  31353. allowed, but only if the target floating point format is the same
  31354. as that of the host machine (on which the compiler is running).
  31355. 'F'
  31356. An immediate floating operand (expression code 'const_double' or
  31357. 'const_vector') is allowed.
  31358. 'G', 'H'
  31359. 'G' and 'H' may be defined in a machine-dependent fashion to permit
  31360. immediate floating operands in particular ranges of values.
  31361. 's'
  31362. An immediate integer operand whose value is not an explicit integer
  31363. is allowed.
  31364. This might appear strange; if an insn allows a constant operand
  31365. with a value not known at compile time, it certainly must allow any
  31366. known value. So why use 's' instead of 'i'? Sometimes it allows
  31367. better code to be generated.
  31368. For example, on the 68000 in a fullword instruction it is possible
  31369. to use an immediate operand; but if the immediate value is between
  31370. -128 and 127, better code results from loading the value into a
  31371. register and using the register. This is because the load into the
  31372. register can be done with a 'moveq' instruction. We arrange for
  31373. this to happen by defining the letter 'K' to mean "any integer
  31374. outside the range -128 to 127", and then specifying 'Ks' in the
  31375. operand constraints.
  31376. 'g'
  31377. Any register, memory or immediate integer operand is allowed,
  31378. except for registers that are not general registers.
  31379. 'X'
  31380. Any operand whatsoever is allowed.
  31381. '0', '1', '2', ... '9'
  31382. An operand that matches the specified operand number is allowed.
  31383. If a digit is used together with letters within the same
  31384. alternative, the digit should come last.
  31385. This number is allowed to be more than a single digit. If multiple
  31386. digits are encountered consecutively, they are interpreted as a
  31387. single decimal integer. There is scant chance for ambiguity, since
  31388. to-date it has never been desirable that '10' be interpreted as
  31389. matching either operand 1 _or_ operand 0. Should this be desired,
  31390. one can use multiple alternatives instead.
  31391. This is called a "matching constraint" and what it really means is
  31392. that the assembler has only a single operand that fills two roles
  31393. which 'asm' distinguishes. For example, an add instruction uses
  31394. two input operands and an output operand, but on most CISC machines
  31395. an add instruction really has only two operands, one of them an
  31396. input-output operand:
  31397. addl #35,r12
  31398. Matching constraints are used in these circumstances. More
  31399. precisely, the two operands that match must include one input-only
  31400. operand and one output-only operand. Moreover, the digit must be a
  31401. smaller number than the number of the operand that uses it in the
  31402. constraint.
  31403. 'p'
  31404. An operand that is a valid memory address is allowed. This is for
  31405. "load address" and "push address" instructions.
  31406. 'p' in the constraint must be accompanied by 'address_operand' as
  31407. the predicate in the 'match_operand'. This predicate interprets
  31408. the mode specified in the 'match_operand' as the mode of the memory
  31409. reference for which the address would be valid.
  31410. OTHER-LETTERS
  31411. Other letters can be defined in machine-dependent fashion to stand
  31412. for particular classes of registers or other arbitrary operand
  31413. types. 'd', 'a' and 'f' are defined on the 68000/68020 to stand
  31414. for data, address and floating point registers.
  31415. 
  31416. File: gcc.info, Node: Multi-Alternative, Next: Modifiers, Prev: Simple Constraints, Up: Constraints
  31417. 6.47.3.2 Multiple Alternative Constraints
  31418. .........................................
  31419. Sometimes a single instruction has multiple alternative sets of possible
  31420. operands. For example, on the 68000, a logical-or instruction can
  31421. combine register or an immediate value into memory, or it can combine
  31422. any kind of operand into a register; but it cannot combine one memory
  31423. location into another.
  31424. These constraints are represented as multiple alternatives. An
  31425. alternative can be described by a series of letters for each operand.
  31426. The overall constraint for an operand is made from the letters for this
  31427. operand from the first alternative, a comma, the letters for this
  31428. operand from the second alternative, a comma, and so on until the last
  31429. alternative. All operands for a single instruction must have the same
  31430. number of alternatives.
  31431. So the first alternative for the 68000's logical-or could be written as
  31432. '"+m" (output) : "ir" (input)'. The second could be '"+r" (output):
  31433. "irm" (input)'. However, the fact that two memory locations cannot be
  31434. used in a single instruction prevents simply using '"+rm" (output) :
  31435. "irm" (input)'. Using multi-alternatives, this might be written as
  31436. '"+m,r" (output) : "ir,irm" (input)'. This describes all the available
  31437. alternatives to the compiler, allowing it to choose the most efficient
  31438. one for the current conditions.
  31439. There is no way within the template to determine which alternative was
  31440. chosen. However you may be able to wrap your 'asm' statements with
  31441. builtins such as '__builtin_constant_p' to achieve the desired results.
  31442. 
  31443. File: gcc.info, Node: Modifiers, Next: Machine Constraints, Prev: Multi-Alternative, Up: Constraints
  31444. 6.47.3.3 Constraint Modifier Characters
  31445. .......................................
  31446. Here are constraint modifier characters.
  31447. '='
  31448. Means that this operand is written to by this instruction: the
  31449. previous value is discarded and replaced by new data.
  31450. '+'
  31451. Means that this operand is both read and written by the
  31452. instruction.
  31453. When the compiler fixes up the operands to satisfy the constraints,
  31454. it needs to know which operands are read by the instruction and
  31455. which are written by it. '=' identifies an operand which is only
  31456. written; '+' identifies an operand that is both read and written;
  31457. all other operands are assumed to only be read.
  31458. If you specify '=' or '+' in a constraint, you put it in the first
  31459. character of the constraint string.
  31460. '&'
  31461. Means (in a particular alternative) that this operand is an
  31462. "earlyclobber" operand, which is written before the instruction is
  31463. finished using the input operands. Therefore, this operand may not
  31464. lie in a register that is read by the instruction or as part of any
  31465. memory address.
  31466. '&' applies only to the alternative in which it is written. In
  31467. constraints with multiple alternatives, sometimes one alternative
  31468. requires '&' while others do not. See, for example, the 'movdf'
  31469. insn of the 68000.
  31470. A operand which is read by the instruction can be tied to an
  31471. earlyclobber operand if its only use as an input occurs before the
  31472. early result is written. Adding alternatives of this form often
  31473. allows GCC to produce better code when only some of the read
  31474. operands can be affected by the earlyclobber. See, for example,
  31475. the 'mulsi3' insn of the ARM.
  31476. Furthermore, if the "earlyclobber" operand is also a read/write
  31477. operand, then that operand is written only after it's used.
  31478. '&' does not obviate the need to write '=' or '+'. As
  31479. "earlyclobber" operands are always written, a read-only
  31480. "earlyclobber" operand is ill-formed and will be rejected by the
  31481. compiler.
  31482. '%'
  31483. Declares the instruction to be commutative for this operand and the
  31484. following operand. This means that the compiler may interchange
  31485. the two operands if that is the cheapest way to make all operands
  31486. fit the constraints. '%' applies to all alternatives and must
  31487. appear as the first character in the constraint. Only read-only
  31488. operands can use '%'.
  31489. GCC can only handle one commutative pair in an asm; if you use
  31490. more, the compiler may fail. Note that you need not use the
  31491. modifier if the two alternatives are strictly identical; this would
  31492. only waste time in the reload pass.
  31493. 
  31494. File: gcc.info, Node: Machine Constraints, Prev: Modifiers, Up: Constraints
  31495. 6.47.3.4 Constraints for Particular Machines
  31496. ............................................
  31497. Whenever possible, you should use the general-purpose constraint letters
  31498. in 'asm' arguments, since they will convey meaning more readily to
  31499. people reading your code. Failing that, use the constraint letters that
  31500. usually have very similar meanings across architectures. The most
  31501. commonly used constraints are 'm' and 'r' (for memory and
  31502. general-purpose registers respectively; *note Simple Constraints::), and
  31503. 'I', usually the letter indicating the most common immediate-constant
  31504. format.
  31505. Each architecture defines additional constraints. These constraints
  31506. are used by the compiler itself for instruction generation, as well as
  31507. for 'asm' statements; therefore, some of the constraints are not
  31508. particularly useful for 'asm'. Here is a summary of some of the
  31509. machine-dependent constraints available on some particular machines; it
  31510. includes both constraints that are useful for 'asm' and constraints that
  31511. aren't. The compiler source file mentioned in the table heading for
  31512. each architecture is the definitive reference for the meanings of that
  31513. architecture's constraints.
  31514. _AArch64 family--'config/aarch64/constraints.md'_
  31515. 'k'
  31516. The stack pointer register ('SP')
  31517. 'w'
  31518. Floating point register, Advanced SIMD vector register or SVE
  31519. vector register
  31520. 'x'
  31521. Like 'w', but restricted to registers 0 to 15 inclusive.
  31522. 'y'
  31523. Like 'w', but restricted to registers 0 to 7 inclusive.
  31524. 'Upl'
  31525. One of the low eight SVE predicate registers ('P0' to 'P7')
  31526. 'Upa'
  31527. Any of the SVE predicate registers ('P0' to 'P15')
  31528. 'I'
  31529. Integer constant that is valid as an immediate operand in an
  31530. 'ADD' instruction
  31531. 'J'
  31532. Integer constant that is valid as an immediate operand in a
  31533. 'SUB' instruction (once negated)
  31534. 'K'
  31535. Integer constant that can be used with a 32-bit logical
  31536. instruction
  31537. 'L'
  31538. Integer constant that can be used with a 64-bit logical
  31539. instruction
  31540. 'M'
  31541. Integer constant that is valid as an immediate operand in a
  31542. 32-bit 'MOV' pseudo instruction. The 'MOV' may be assembled
  31543. to one of several different machine instructions depending on
  31544. the value
  31545. 'N'
  31546. Integer constant that is valid as an immediate operand in a
  31547. 64-bit 'MOV' pseudo instruction
  31548. 'S'
  31549. An absolute symbolic address or a label reference
  31550. 'Y'
  31551. Floating point constant zero
  31552. 'Z'
  31553. Integer constant zero
  31554. 'Ush'
  31555. The high part (bits 12 and upwards) of the pc-relative address
  31556. of a symbol within 4GB of the instruction
  31557. 'Q'
  31558. A memory address which uses a single base register with no
  31559. offset
  31560. 'Ump'
  31561. A memory address suitable for a load/store pair instruction in
  31562. SI, DI, SF and DF modes
  31563. _AMD GCN --'config/gcn/constraints.md'_
  31564. 'I'
  31565. Immediate integer in the range -16 to 64
  31566. 'J'
  31567. Immediate 16-bit signed integer
  31568. 'Kf'
  31569. Immediate constant -1
  31570. 'L'
  31571. Immediate 15-bit unsigned integer
  31572. 'A'
  31573. Immediate constant that can be inlined in an instruction
  31574. encoding: integer -16..64, or float 0.0, +/-0.5, +/-1.0,
  31575. +/-2.0, +/-4.0, 1.0/(2.0*PI)
  31576. 'B'
  31577. Immediate 32-bit signed integer that can be attached to an
  31578. instruction encoding
  31579. 'C'
  31580. Immediate 32-bit integer in range -16..4294967295 (i.e.
  31581. 32-bit unsigned integer or 'A' constraint)
  31582. 'DA'
  31583. Immediate 64-bit constant that can be split into two 'A'
  31584. constants
  31585. 'DB'
  31586. Immediate 64-bit constant that can be split into two 'B'
  31587. constants
  31588. 'U'
  31589. Any 'unspec'
  31590. 'Y'
  31591. Any 'symbol_ref' or 'label_ref'
  31592. 'v'
  31593. VGPR register
  31594. 'Sg'
  31595. SGPR register
  31596. 'SD'
  31597. SGPR registers valid for instruction destinations, including
  31598. VCC, M0 and EXEC
  31599. 'SS'
  31600. SGPR registers valid for instruction sources, including VCC,
  31601. M0, EXEC and SCC
  31602. 'Sm'
  31603. SGPR registers valid as a source for scalar memory
  31604. instructions (excludes M0 and EXEC)
  31605. 'Sv'
  31606. SGPR registers valid as a source or destination for vector
  31607. instructions (excludes EXEC)
  31608. 'ca'
  31609. All condition registers: SCC, VCCZ, EXECZ
  31610. 'cs'
  31611. Scalar condition register: SCC
  31612. 'cV'
  31613. Vector condition register: VCC, VCC_LO, VCC_HI
  31614. 'e'
  31615. EXEC register (EXEC_LO and EXEC_HI)
  31616. 'RB'
  31617. Memory operand with address space suitable for 'buffer_*'
  31618. instructions
  31619. 'RF'
  31620. Memory operand with address space suitable for 'flat_*'
  31621. instructions
  31622. 'RS'
  31623. Memory operand with address space suitable for 's_*'
  31624. instructions
  31625. 'RL'
  31626. Memory operand with address space suitable for 'ds_*' LDS
  31627. instructions
  31628. 'RG'
  31629. Memory operand with address space suitable for 'ds_*' GDS
  31630. instructions
  31631. 'RD'
  31632. Memory operand with address space suitable for any 'ds_*'
  31633. instructions
  31634. 'RM'
  31635. Memory operand with address space suitable for 'global_*'
  31636. instructions
  31637. _ARC --'config/arc/constraints.md'_
  31638. 'q'
  31639. Registers usable in ARCompact 16-bit instructions: 'r0'-'r3',
  31640. 'r12'-'r15'. This constraint can only match when the '-mq'
  31641. option is in effect.
  31642. 'e'
  31643. Registers usable as base-regs of memory addresses in ARCompact
  31644. 16-bit memory instructions: 'r0'-'r3', 'r12'-'r15', 'sp'.
  31645. This constraint can only match when the '-mq' option is in
  31646. effect.
  31647. 'D'
  31648. ARC FPX (dpfp) 64-bit registers. 'D0', 'D1'.
  31649. 'I'
  31650. A signed 12-bit integer constant.
  31651. 'Cal'
  31652. constant for arithmetic/logical operations. This might be any
  31653. constant that can be put into a long immediate by the assmbler
  31654. or linker without involving a PIC relocation.
  31655. 'K'
  31656. A 3-bit unsigned integer constant.
  31657. 'L'
  31658. A 6-bit unsigned integer constant.
  31659. 'CnL'
  31660. One's complement of a 6-bit unsigned integer constant.
  31661. 'CmL'
  31662. Two's complement of a 6-bit unsigned integer constant.
  31663. 'M'
  31664. A 5-bit unsigned integer constant.
  31665. 'O'
  31666. A 7-bit unsigned integer constant.
  31667. 'P'
  31668. A 8-bit unsigned integer constant.
  31669. 'H'
  31670. Any const_double value.
  31671. _ARM family--'config/arm/constraints.md'_
  31672. 'h'
  31673. In Thumb state, the core registers 'r8'-'r15'.
  31674. 'k'
  31675. The stack pointer register.
  31676. 'l'
  31677. In Thumb State the core registers 'r0'-'r7'. In ARM state
  31678. this is an alias for the 'r' constraint.
  31679. 't'
  31680. VFP floating-point registers 's0'-'s31'. Used for 32 bit
  31681. values.
  31682. 'w'
  31683. VFP floating-point registers 'd0'-'d31' and the appropriate
  31684. subset 'd0'-'d15' based on command line options. Used for 64
  31685. bit values only. Not valid for Thumb1.
  31686. 'y'
  31687. The iWMMX co-processor registers.
  31688. 'z'
  31689. The iWMMX GR registers.
  31690. 'G'
  31691. The floating-point constant 0.0
  31692. 'I'
  31693. Integer that is valid as an immediate operand in a data
  31694. processing instruction. That is, an integer in the range 0 to
  31695. 255 rotated by a multiple of 2
  31696. 'J'
  31697. Integer in the range -4095 to 4095
  31698. 'K'
  31699. Integer that satisfies constraint 'I' when inverted (ones
  31700. complement)
  31701. 'L'
  31702. Integer that satisfies constraint 'I' when negated (twos
  31703. complement)
  31704. 'M'
  31705. Integer in the range 0 to 32
  31706. 'Q'
  31707. A memory reference where the exact address is in a single
  31708. register (''m'' is preferable for 'asm' statements)
  31709. 'R'
  31710. An item in the constant pool
  31711. 'S'
  31712. A symbol in the text segment of the current file
  31713. 'Uv'
  31714. A memory reference suitable for VFP load/store insns
  31715. (reg+constant offset)
  31716. 'Uy'
  31717. A memory reference suitable for iWMMXt load/store
  31718. instructions.
  31719. 'Uq'
  31720. A memory reference suitable for the ARMv4 ldrsb instruction.
  31721. _AVR family--'config/avr/constraints.md'_
  31722. 'l'
  31723. Registers from r0 to r15
  31724. 'a'
  31725. Registers from r16 to r23
  31726. 'd'
  31727. Registers from r16 to r31
  31728. 'w'
  31729. Registers from r24 to r31. These registers can be used in
  31730. 'adiw' command
  31731. 'e'
  31732. Pointer register (r26-r31)
  31733. 'b'
  31734. Base pointer register (r28-r31)
  31735. 'q'
  31736. Stack pointer register (SPH:SPL)
  31737. 't'
  31738. Temporary register r0
  31739. 'x'
  31740. Register pair X (r27:r26)
  31741. 'y'
  31742. Register pair Y (r29:r28)
  31743. 'z'
  31744. Register pair Z (r31:r30)
  31745. 'I'
  31746. Constant greater than -1, less than 64
  31747. 'J'
  31748. Constant greater than -64, less than 1
  31749. 'K'
  31750. Constant integer 2
  31751. 'L'
  31752. Constant integer 0
  31753. 'M'
  31754. Constant that fits in 8 bits
  31755. 'N'
  31756. Constant integer -1
  31757. 'O'
  31758. Constant integer 8, 16, or 24
  31759. 'P'
  31760. Constant integer 1
  31761. 'G'
  31762. A floating point constant 0.0
  31763. 'Q'
  31764. A memory address based on Y or Z pointer with displacement.
  31765. _Blackfin family--'config/bfin/constraints.md'_
  31766. 'a'
  31767. P register
  31768. 'd'
  31769. D register
  31770. 'z'
  31771. A call clobbered P register.
  31772. 'qN'
  31773. A single register. If N is in the range 0 to 7, the
  31774. corresponding D register. If it is 'A', then the register P0.
  31775. 'D'
  31776. Even-numbered D register
  31777. 'W'
  31778. Odd-numbered D register
  31779. 'e'
  31780. Accumulator register.
  31781. 'A'
  31782. Even-numbered accumulator register.
  31783. 'B'
  31784. Odd-numbered accumulator register.
  31785. 'b'
  31786. I register
  31787. 'v'
  31788. B register
  31789. 'f'
  31790. M register
  31791. 'c'
  31792. Registers used for circular buffering, i.e. I, B, or L
  31793. registers.
  31794. 'C'
  31795. The CC register.
  31796. 't'
  31797. LT0 or LT1.
  31798. 'k'
  31799. LC0 or LC1.
  31800. 'u'
  31801. LB0 or LB1.
  31802. 'x'
  31803. Any D, P, B, M, I or L register.
  31804. 'y'
  31805. Additional registers typically used only in prologues and
  31806. epilogues: RETS, RETN, RETI, RETX, RETE, ASTAT, SEQSTAT and
  31807. USP.
  31808. 'w'
  31809. Any register except accumulators or CC.
  31810. 'Ksh'
  31811. Signed 16 bit integer (in the range -32768 to 32767)
  31812. 'Kuh'
  31813. Unsigned 16 bit integer (in the range 0 to 65535)
  31814. 'Ks7'
  31815. Signed 7 bit integer (in the range -64 to 63)
  31816. 'Ku7'
  31817. Unsigned 7 bit integer (in the range 0 to 127)
  31818. 'Ku5'
  31819. Unsigned 5 bit integer (in the range 0 to 31)
  31820. 'Ks4'
  31821. Signed 4 bit integer (in the range -8 to 7)
  31822. 'Ks3'
  31823. Signed 3 bit integer (in the range -3 to 4)
  31824. 'Ku3'
  31825. Unsigned 3 bit integer (in the range 0 to 7)
  31826. 'PN'
  31827. Constant N, where N is a single-digit constant in the range 0
  31828. to 4.
  31829. 'PA'
  31830. An integer equal to one of the MACFLAG_XXX constants that is
  31831. suitable for use with either accumulator.
  31832. 'PB'
  31833. An integer equal to one of the MACFLAG_XXX constants that is
  31834. suitable for use only with accumulator A1.
  31835. 'M1'
  31836. Constant 255.
  31837. 'M2'
  31838. Constant 65535.
  31839. 'J'
  31840. An integer constant with exactly a single bit set.
  31841. 'L'
  31842. An integer constant with all bits set except exactly one.
  31843. 'H'
  31844. 'Q'
  31845. Any SYMBOL_REF.
  31846. _CR16 Architecture--'config/cr16/cr16.h'_
  31847. 'b'
  31848. Registers from r0 to r14 (registers without stack pointer)
  31849. 't'
  31850. Register from r0 to r11 (all 16-bit registers)
  31851. 'p'
  31852. Register from r12 to r15 (all 32-bit registers)
  31853. 'I'
  31854. Signed constant that fits in 4 bits
  31855. 'J'
  31856. Signed constant that fits in 5 bits
  31857. 'K'
  31858. Signed constant that fits in 6 bits
  31859. 'L'
  31860. Unsigned constant that fits in 4 bits
  31861. 'M'
  31862. Signed constant that fits in 32 bits
  31863. 'N'
  31864. Check for 64 bits wide constants for add/sub instructions
  31865. 'G'
  31866. Floating point constant that is legal for store immediate
  31867. _C-SKY--'config/csky/constraints.md'_
  31868. 'a'
  31869. The mini registers r0 - r7.
  31870. 'b'
  31871. The low registers r0 - r15.
  31872. 'c'
  31873. C register.
  31874. 'y'
  31875. HI and LO registers.
  31876. 'l'
  31877. LO register.
  31878. 'h'
  31879. HI register.
  31880. 'v'
  31881. Vector registers.
  31882. 'z'
  31883. Stack pointer register (SP).
  31884. _Epiphany--'config/epiphany/constraints.md'_
  31885. 'U16'
  31886. An unsigned 16-bit constant.
  31887. 'K'
  31888. An unsigned 5-bit constant.
  31889. 'L'
  31890. A signed 11-bit constant.
  31891. 'Cm1'
  31892. A signed 11-bit constant added to -1. Can only match when the
  31893. '-m1reg-REG' option is active.
  31894. 'Cl1'
  31895. Left-shift of -1, i.e., a bit mask with a block of leading
  31896. ones, the rest being a block of trailing zeroes. Can only
  31897. match when the '-m1reg-REG' option is active.
  31898. 'Cr1'
  31899. Right-shift of -1, i.e., a bit mask with a trailing block of
  31900. ones, the rest being zeroes. Or to put it another way, one
  31901. less than a power of two. Can only match when the
  31902. '-m1reg-REG' option is active.
  31903. 'Cal'
  31904. Constant for arithmetic/logical operations. This is like 'i',
  31905. except that for position independent code, no symbols /
  31906. expressions needing relocations are allowed.
  31907. 'Csy'
  31908. Symbolic constant for call/jump instruction.
  31909. 'Rcs'
  31910. The register class usable in short insns. This is a register
  31911. class constraint, and can thus drive register allocation.
  31912. This constraint won't match unless '-mprefer-short-insn-regs'
  31913. is in effect.
  31914. 'Rsc'
  31915. The the register class of registers that can be used to hold a
  31916. sibcall call address. I.e., a caller-saved register.
  31917. 'Rct'
  31918. Core control register class.
  31919. 'Rgs'
  31920. The register group usable in short insns. This constraint
  31921. does not use a register class, so that it only passively
  31922. matches suitable registers, and doesn't drive register
  31923. allocation.
  31924. 'Rra'
  31925. Matches the return address if it can be replaced with the link
  31926. register.
  31927. 'Rcc'
  31928. Matches the integer condition code register.
  31929. 'Sra'
  31930. Matches the return address if it is in a stack slot.
  31931. 'Cfm'
  31932. Matches control register values to switch fp mode, which are
  31933. encapsulated in 'UNSPEC_FP_MODE'.
  31934. _FRV--'config/frv/frv.h'_
  31935. 'a'
  31936. Register in the class 'ACC_REGS' ('acc0' to 'acc7').
  31937. 'b'
  31938. Register in the class 'EVEN_ACC_REGS' ('acc0' to 'acc7').
  31939. 'c'
  31940. Register in the class 'CC_REGS' ('fcc0' to 'fcc3' and 'icc0'
  31941. to 'icc3').
  31942. 'd'
  31943. Register in the class 'GPR_REGS' ('gr0' to 'gr63').
  31944. 'e'
  31945. Register in the class 'EVEN_REGS' ('gr0' to 'gr63'). Odd
  31946. registers are excluded not in the class but through the use of
  31947. a machine mode larger than 4 bytes.
  31948. 'f'
  31949. Register in the class 'FPR_REGS' ('fr0' to 'fr63').
  31950. 'h'
  31951. Register in the class 'FEVEN_REGS' ('fr0' to 'fr63'). Odd
  31952. registers are excluded not in the class but through the use of
  31953. a machine mode larger than 4 bytes.
  31954. 'l'
  31955. Register in the class 'LR_REG' (the 'lr' register).
  31956. 'q'
  31957. Register in the class 'QUAD_REGS' ('gr2' to 'gr63'). Register
  31958. numbers not divisible by 4 are excluded not in the class but
  31959. through the use of a machine mode larger than 8 bytes.
  31960. 't'
  31961. Register in the class 'ICC_REGS' ('icc0' to 'icc3').
  31962. 'u'
  31963. Register in the class 'FCC_REGS' ('fcc0' to 'fcc3').
  31964. 'v'
  31965. Register in the class 'ICR_REGS' ('cc4' to 'cc7').
  31966. 'w'
  31967. Register in the class 'FCR_REGS' ('cc0' to 'cc3').
  31968. 'x'
  31969. Register in the class 'QUAD_FPR_REGS' ('fr0' to 'fr63').
  31970. Register numbers not divisible by 4 are excluded not in the
  31971. class but through the use of a machine mode larger than 8
  31972. bytes.
  31973. 'z'
  31974. Register in the class 'SPR_REGS' ('lcr' and 'lr').
  31975. 'A'
  31976. Register in the class 'QUAD_ACC_REGS' ('acc0' to 'acc7').
  31977. 'B'
  31978. Register in the class 'ACCG_REGS' ('accg0' to 'accg7').
  31979. 'C'
  31980. Register in the class 'CR_REGS' ('cc0' to 'cc7').
  31981. 'G'
  31982. Floating point constant zero
  31983. 'I'
  31984. 6-bit signed integer constant
  31985. 'J'
  31986. 10-bit signed integer constant
  31987. 'L'
  31988. 16-bit signed integer constant
  31989. 'M'
  31990. 16-bit unsigned integer constant
  31991. 'N'
  31992. 12-bit signed integer constant that is negative--i.e. in the
  31993. range of -2048 to -1
  31994. 'O'
  31995. Constant zero
  31996. 'P'
  31997. 12-bit signed integer constant that is greater than zero--i.e.
  31998. in the range of 1 to 2047.
  31999. _FT32--'config/ft32/constraints.md'_
  32000. 'A'
  32001. An absolute address
  32002. 'B'
  32003. An offset address
  32004. 'W'
  32005. A register indirect memory operand
  32006. 'e'
  32007. An offset address.
  32008. 'f'
  32009. An offset address.
  32010. 'O'
  32011. The constant zero or one
  32012. 'I'
  32013. A 16-bit signed constant (-32768 ... 32767)
  32014. 'w'
  32015. A bitfield mask suitable for bext or bins
  32016. 'x'
  32017. An inverted bitfield mask suitable for bext or bins
  32018. 'L'
  32019. A 16-bit unsigned constant, multiple of 4 (0 ... 65532)
  32020. 'S'
  32021. A 20-bit signed constant (-524288 ... 524287)
  32022. 'b'
  32023. A constant for a bitfield width (1 ... 16)
  32024. 'KA'
  32025. A 10-bit signed constant (-512 ... 511)
  32026. _Hewlett-Packard PA-RISC--'config/pa/pa.h'_
  32027. 'a'
  32028. General register 1
  32029. 'f'
  32030. Floating point register
  32031. 'q'
  32032. Shift amount register
  32033. 'x'
  32034. Floating point register (deprecated)
  32035. 'y'
  32036. Upper floating point register (32-bit), floating point
  32037. register (64-bit)
  32038. 'Z'
  32039. Any register
  32040. 'I'
  32041. Signed 11-bit integer constant
  32042. 'J'
  32043. Signed 14-bit integer constant
  32044. 'K'
  32045. Integer constant that can be deposited with a 'zdepi'
  32046. instruction
  32047. 'L'
  32048. Signed 5-bit integer constant
  32049. 'M'
  32050. Integer constant 0
  32051. 'N'
  32052. Integer constant that can be loaded with a 'ldil' instruction
  32053. 'O'
  32054. Integer constant whose value plus one is a power of 2
  32055. 'P'
  32056. Integer constant that can be used for 'and' operations in
  32057. 'depi' and 'extru' instructions
  32058. 'S'
  32059. Integer constant 31
  32060. 'U'
  32061. Integer constant 63
  32062. 'G'
  32063. Floating-point constant 0.0
  32064. 'A'
  32065. A 'lo_sum' data-linkage-table memory operand
  32066. 'Q'
  32067. A memory operand that can be used as the destination operand
  32068. of an integer store instruction
  32069. 'R'
  32070. A scaled or unscaled indexed memory operand
  32071. 'T'
  32072. A memory operand for floating-point loads and stores
  32073. 'W'
  32074. A register indirect memory operand
  32075. _Intel IA-64--'config/ia64/ia64.h'_
  32076. 'a'
  32077. General register 'r0' to 'r3' for 'addl' instruction
  32078. 'b'
  32079. Branch register
  32080. 'c'
  32081. Predicate register ('c' as in "conditional")
  32082. 'd'
  32083. Application register residing in M-unit
  32084. 'e'
  32085. Application register residing in I-unit
  32086. 'f'
  32087. Floating-point register
  32088. 'm'
  32089. Memory operand. If used together with '<' or '>', the operand
  32090. can have postincrement and postdecrement which require
  32091. printing with '%Pn' on IA-64.
  32092. 'G'
  32093. Floating-point constant 0.0 or 1.0
  32094. 'I'
  32095. 14-bit signed integer constant
  32096. 'J'
  32097. 22-bit signed integer constant
  32098. 'K'
  32099. 8-bit signed integer constant for logical instructions
  32100. 'L'
  32101. 8-bit adjusted signed integer constant for compare pseudo-ops
  32102. 'M'
  32103. 6-bit unsigned integer constant for shift counts
  32104. 'N'
  32105. 9-bit signed integer constant for load and store
  32106. postincrements
  32107. 'O'
  32108. The constant zero
  32109. 'P'
  32110. 0 or -1 for 'dep' instruction
  32111. 'Q'
  32112. Non-volatile memory for floating-point loads and stores
  32113. 'R'
  32114. Integer constant in the range 1 to 4 for 'shladd' instruction
  32115. 'S'
  32116. Memory operand except postincrement and postdecrement. This
  32117. is now roughly the same as 'm' when not used together with '<'
  32118. or '>'.
  32119. _M32C--'config/m32c/m32c.c'_
  32120. 'Rsp'
  32121. 'Rfb'
  32122. 'Rsb'
  32123. '$sp', '$fb', '$sb'.
  32124. 'Rcr'
  32125. Any control register, when they're 16 bits wide (nothing if
  32126. control registers are 24 bits wide)
  32127. 'Rcl'
  32128. Any control register, when they're 24 bits wide.
  32129. 'R0w'
  32130. 'R1w'
  32131. 'R2w'
  32132. 'R3w'
  32133. $r0, $r1, $r2, $r3.
  32134. 'R02'
  32135. $r0 or $r2, or $r2r0 for 32 bit values.
  32136. 'R13'
  32137. $r1 or $r3, or $r3r1 for 32 bit values.
  32138. 'Rdi'
  32139. A register that can hold a 64 bit value.
  32140. 'Rhl'
  32141. $r0 or $r1 (registers with addressable high/low bytes)
  32142. 'R23'
  32143. $r2 or $r3
  32144. 'Raa'
  32145. Address registers
  32146. 'Raw'
  32147. Address registers when they're 16 bits wide.
  32148. 'Ral'
  32149. Address registers when they're 24 bits wide.
  32150. 'Rqi'
  32151. Registers that can hold QI values.
  32152. 'Rad'
  32153. Registers that can be used with displacements ($a0, $a1, $sb).
  32154. 'Rsi'
  32155. Registers that can hold 32 bit values.
  32156. 'Rhi'
  32157. Registers that can hold 16 bit values.
  32158. 'Rhc'
  32159. Registers chat can hold 16 bit values, including all control
  32160. registers.
  32161. 'Rra'
  32162. $r0 through R1, plus $a0 and $a1.
  32163. 'Rfl'
  32164. The flags register.
  32165. 'Rmm'
  32166. The memory-based pseudo-registers $mem0 through $mem15.
  32167. 'Rpi'
  32168. Registers that can hold pointers (16 bit registers for r8c,
  32169. m16c; 24 bit registers for m32cm, m32c).
  32170. 'Rpa'
  32171. Matches multiple registers in a PARALLEL to form a larger
  32172. register. Used to match function return values.
  32173. 'Is3'
  32174. -8 ... 7
  32175. 'IS1'
  32176. -128 ... 127
  32177. 'IS2'
  32178. -32768 ... 32767
  32179. 'IU2'
  32180. 0 ... 65535
  32181. 'In4'
  32182. -8 ... -1 or 1 ... 8
  32183. 'In5'
  32184. -16 ... -1 or 1 ... 16
  32185. 'In6'
  32186. -32 ... -1 or 1 ... 32
  32187. 'IM2'
  32188. -65536 ... -1
  32189. 'Ilb'
  32190. An 8 bit value with exactly one bit set.
  32191. 'Ilw'
  32192. A 16 bit value with exactly one bit set.
  32193. 'Sd'
  32194. The common src/dest memory addressing modes.
  32195. 'Sa'
  32196. Memory addressed using $a0 or $a1.
  32197. 'Si'
  32198. Memory addressed with immediate addresses.
  32199. 'Ss'
  32200. Memory addressed using the stack pointer ($sp).
  32201. 'Sf'
  32202. Memory addressed using the frame base register ($fb).
  32203. 'Ss'
  32204. Memory addressed using the small base register ($sb).
  32205. 'S1'
  32206. $r1h
  32207. _MicroBlaze--'config/microblaze/constraints.md'_
  32208. 'd'
  32209. A general register ('r0' to 'r31').
  32210. 'z'
  32211. A status register ('rmsr', '$fcc1' to '$fcc7').
  32212. _MIPS--'config/mips/constraints.md'_
  32213. 'd'
  32214. A general-purpose register. This is equivalent to 'r' unless
  32215. generating MIPS16 code, in which case the MIPS16 register set
  32216. is used.
  32217. 'f'
  32218. A floating-point register (if available).
  32219. 'h'
  32220. Formerly the 'hi' register. This constraint is no longer
  32221. supported.
  32222. 'l'
  32223. The 'lo' register. Use this register to store values that are
  32224. no bigger than a word.
  32225. 'x'
  32226. The concatenated 'hi' and 'lo' registers. Use this register
  32227. to store doubleword values.
  32228. 'c'
  32229. A register suitable for use in an indirect jump. This will
  32230. always be '$25' for '-mabicalls'.
  32231. 'v'
  32232. Register '$3'. Do not use this constraint in new code; it is
  32233. retained only for compatibility with glibc.
  32234. 'y'
  32235. Equivalent to 'r'; retained for backwards compatibility.
  32236. 'z'
  32237. A floating-point condition code register.
  32238. 'I'
  32239. A signed 16-bit constant (for arithmetic instructions).
  32240. 'J'
  32241. Integer zero.
  32242. 'K'
  32243. An unsigned 16-bit constant (for logic instructions).
  32244. 'L'
  32245. A signed 32-bit constant in which the lower 16 bits are zero.
  32246. Such constants can be loaded using 'lui'.
  32247. 'M'
  32248. A constant that cannot be loaded using 'lui', 'addiu' or
  32249. 'ori'.
  32250. 'N'
  32251. A constant in the range -65535 to -1 (inclusive).
  32252. 'O'
  32253. A signed 15-bit constant.
  32254. 'P'
  32255. A constant in the range 1 to 65535 (inclusive).
  32256. 'G'
  32257. Floating-point zero.
  32258. 'R'
  32259. An address that can be used in a non-macro load or store.
  32260. 'ZC'
  32261. A memory operand whose address is formed by a base register
  32262. and offset that is suitable for use in instructions with the
  32263. same addressing mode as 'll' and 'sc'.
  32264. 'ZD'
  32265. An address suitable for a 'prefetch' instruction, or for any
  32266. other instruction with the same addressing mode as 'prefetch'.
  32267. _Motorola 680x0--'config/m68k/constraints.md'_
  32268. 'a'
  32269. Address register
  32270. 'd'
  32271. Data register
  32272. 'f'
  32273. 68881 floating-point register, if available
  32274. 'I'
  32275. Integer in the range 1 to 8
  32276. 'J'
  32277. 16-bit signed number
  32278. 'K'
  32279. Signed number whose magnitude is greater than 0x80
  32280. 'L'
  32281. Integer in the range -8 to -1
  32282. 'M'
  32283. Signed number whose magnitude is greater than 0x100
  32284. 'N'
  32285. Range 24 to 31, rotatert:SI 8 to 1 expressed as rotate
  32286. 'O'
  32287. 16 (for rotate using swap)
  32288. 'P'
  32289. Range 8 to 15, rotatert:HI 8 to 1 expressed as rotate
  32290. 'R'
  32291. Numbers that mov3q can handle
  32292. 'G'
  32293. Floating point constant that is not a 68881 constant
  32294. 'S'
  32295. Operands that satisfy 'm' when -mpcrel is in effect
  32296. 'T'
  32297. Operands that satisfy 's' when -mpcrel is not in effect
  32298. 'Q'
  32299. Address register indirect addressing mode
  32300. 'U'
  32301. Register offset addressing
  32302. 'W'
  32303. const_call_operand
  32304. 'Cs'
  32305. symbol_ref or const
  32306. 'Ci'
  32307. const_int
  32308. 'C0'
  32309. const_int 0
  32310. 'Cj'
  32311. Range of signed numbers that don't fit in 16 bits
  32312. 'Cmvq'
  32313. Integers valid for mvq
  32314. 'Capsw'
  32315. Integers valid for a moveq followed by a swap
  32316. 'Cmvz'
  32317. Integers valid for mvz
  32318. 'Cmvs'
  32319. Integers valid for mvs
  32320. 'Ap'
  32321. push_operand
  32322. 'Ac'
  32323. Non-register operands allowed in clr
  32324. _Moxie--'config/moxie/constraints.md'_
  32325. 'A'
  32326. An absolute address
  32327. 'B'
  32328. An offset address
  32329. 'W'
  32330. A register indirect memory operand
  32331. 'I'
  32332. A constant in the range of 0 to 255.
  32333. 'N'
  32334. A constant in the range of 0 to -255.
  32335. _MSP430-'config/msp430/constraints.md'_
  32336. 'R12'
  32337. Register R12.
  32338. 'R13'
  32339. Register R13.
  32340. 'K'
  32341. Integer constant 1.
  32342. 'L'
  32343. Integer constant -1^20..1^19.
  32344. 'M'
  32345. Integer constant 1-4.
  32346. 'Ya'
  32347. Memory references which do not require an extended MOVX
  32348. instruction.
  32349. 'Yl'
  32350. Memory reference, labels only.
  32351. 'Ys'
  32352. Memory reference, stack only.
  32353. _NDS32--'config/nds32/constraints.md'_
  32354. 'w'
  32355. LOW register class $r0 to $r7 constraint for V3/V3M ISA.
  32356. 'l'
  32357. LOW register class $r0 to $r7.
  32358. 'd'
  32359. MIDDLE register class $r0 to $r11, $r16 to $r19.
  32360. 'h'
  32361. HIGH register class $r12 to $r14, $r20 to $r31.
  32362. 't'
  32363. Temporary assist register $ta (i.e. $r15).
  32364. 'k'
  32365. Stack register $sp.
  32366. 'Iu03'
  32367. Unsigned immediate 3-bit value.
  32368. 'In03'
  32369. Negative immediate 3-bit value in the range of -7-0.
  32370. 'Iu04'
  32371. Unsigned immediate 4-bit value.
  32372. 'Is05'
  32373. Signed immediate 5-bit value.
  32374. 'Iu05'
  32375. Unsigned immediate 5-bit value.
  32376. 'In05'
  32377. Negative immediate 5-bit value in the range of -31-0.
  32378. 'Ip05'
  32379. Unsigned immediate 5-bit value for movpi45 instruction with
  32380. range 16-47.
  32381. 'Iu06'
  32382. Unsigned immediate 6-bit value constraint for addri36.sp
  32383. instruction.
  32384. 'Iu08'
  32385. Unsigned immediate 8-bit value.
  32386. 'Iu09'
  32387. Unsigned immediate 9-bit value.
  32388. 'Is10'
  32389. Signed immediate 10-bit value.
  32390. 'Is11'
  32391. Signed immediate 11-bit value.
  32392. 'Is15'
  32393. Signed immediate 15-bit value.
  32394. 'Iu15'
  32395. Unsigned immediate 15-bit value.
  32396. 'Ic15'
  32397. A constant which is not in the range of imm15u but ok for bclr
  32398. instruction.
  32399. 'Ie15'
  32400. A constant which is not in the range of imm15u but ok for bset
  32401. instruction.
  32402. 'It15'
  32403. A constant which is not in the range of imm15u but ok for btgl
  32404. instruction.
  32405. 'Ii15'
  32406. A constant whose compliment value is in the range of imm15u
  32407. and ok for bitci instruction.
  32408. 'Is16'
  32409. Signed immediate 16-bit value.
  32410. 'Is17'
  32411. Signed immediate 17-bit value.
  32412. 'Is19'
  32413. Signed immediate 19-bit value.
  32414. 'Is20'
  32415. Signed immediate 20-bit value.
  32416. 'Ihig'
  32417. The immediate value that can be simply set high 20-bit.
  32418. 'Izeb'
  32419. The immediate value 0xff.
  32420. 'Izeh'
  32421. The immediate value 0xffff.
  32422. 'Ixls'
  32423. The immediate value 0x01.
  32424. 'Ix11'
  32425. The immediate value 0x7ff.
  32426. 'Ibms'
  32427. The immediate value with power of 2.
  32428. 'Ifex'
  32429. The immediate value with power of 2 minus 1.
  32430. 'U33'
  32431. Memory constraint for 333 format.
  32432. 'U45'
  32433. Memory constraint for 45 format.
  32434. 'U37'
  32435. Memory constraint for 37 format.
  32436. _Nios II family--'config/nios2/constraints.md'_
  32437. 'I'
  32438. Integer that is valid as an immediate operand in an
  32439. instruction taking a signed 16-bit number. Range -32768 to
  32440. 32767.
  32441. 'J'
  32442. Integer that is valid as an immediate operand in an
  32443. instruction taking an unsigned 16-bit number. Range 0 to
  32444. 65535.
  32445. 'K'
  32446. Integer that is valid as an immediate operand in an
  32447. instruction taking only the upper 16-bits of a 32-bit number.
  32448. Range 32-bit numbers with the lower 16-bits being 0.
  32449. 'L'
  32450. Integer that is valid as an immediate operand for a shift
  32451. instruction. Range 0 to 31.
  32452. 'M'
  32453. Integer that is valid as an immediate operand for only the
  32454. value 0. Can be used in conjunction with the format modifier
  32455. 'z' to use 'r0' instead of '0' in the assembly output.
  32456. 'N'
  32457. Integer that is valid as an immediate operand for a custom
  32458. instruction opcode. Range 0 to 255.
  32459. 'P'
  32460. An immediate operand for R2 andchi/andci instructions.
  32461. 'S'
  32462. Matches immediates which are addresses in the small data
  32463. section and therefore can be added to 'gp' as a 16-bit
  32464. immediate to re-create their 32-bit value.
  32465. 'U'
  32466. Matches constants suitable as an operand for the rdprs and
  32467. cache instructions.
  32468. 'v'
  32469. A memory operand suitable for Nios II R2 load/store exclusive
  32470. instructions.
  32471. 'w'
  32472. A memory operand suitable for load/store IO and cache
  32473. instructions.
  32474. _OpenRISC--'config/or1k/constraints.md'_
  32475. 'I'
  32476. Integer that is valid as an immediate operand in an
  32477. instruction taking a signed 16-bit number. Range -32768 to
  32478. 32767.
  32479. 'K'
  32480. Integer that is valid as an immediate operand in an
  32481. instruction taking an unsigned 16-bit number. Range 0 to
  32482. 65535.
  32483. 'M'
  32484. Signed 16-bit constant shifted left 16 bits. (Used with
  32485. 'l.movhi')
  32486. 'O'
  32487. Zero
  32488. _PDP-11--'config/pdp11/constraints.md'_
  32489. 'a'
  32490. Floating point registers AC0 through AC3. These can be loaded
  32491. from/to memory with a single instruction.
  32492. 'd'
  32493. Odd numbered general registers (R1, R3, R5). These are used
  32494. for 16-bit multiply operations.
  32495. 'D'
  32496. A memory reference that is encoded within the opcode, but not
  32497. auto-increment or auto-decrement.
  32498. 'f'
  32499. Any of the floating point registers (AC0 through AC5).
  32500. 'G'
  32501. Floating point constant 0.
  32502. 'h'
  32503. Floating point registers AC4 and AC5. These cannot be loaded
  32504. from/to memory with a single instruction.
  32505. 'I'
  32506. An integer constant that fits in 16 bits.
  32507. 'J'
  32508. An integer constant whose low order 16 bits are zero.
  32509. 'K'
  32510. An integer constant that does not meet the constraints for
  32511. codes 'I' or 'J'.
  32512. 'L'
  32513. The integer constant 1.
  32514. 'M'
  32515. The integer constant -1.
  32516. 'N'
  32517. The integer constant 0.
  32518. 'O'
  32519. Integer constants 0 through 3; shifts by these amounts are
  32520. handled as multiple single-bit shifts rather than a single
  32521. variable-length shift.
  32522. 'Q'
  32523. A memory reference which requires an additional word (address
  32524. or offset) after the opcode.
  32525. 'R'
  32526. A memory reference that is encoded within the opcode.
  32527. _PowerPC and IBM RS6000--'config/rs6000/constraints.md'_
  32528. 'r'
  32529. A general purpose register (GPR), 'r0'...'r31'.
  32530. 'b'
  32531. A base register. Like 'r', but 'r0' is not allowed, so
  32532. 'r1'...'r31'.
  32533. 'f'
  32534. A floating point register (FPR), 'f0'...'f31'.
  32535. 'd'
  32536. A floating point register. This is the same as 'f' nowadays;
  32537. historically 'f' was for single-precision and 'd' was for
  32538. double-precision floating point.
  32539. 'v'
  32540. An Altivec vector register (VR), 'v0'...'v31'.
  32541. 'wa'
  32542. A VSX register (VSR), 'vs0'...'vs63'. This is either an FPR
  32543. ('vs0'...'vs31' are 'f0'...'f31') or a VR ('vs32'...'vs63' are
  32544. 'v0'...'v31').
  32545. When using 'wa', you should use the '%x' output modifier, so
  32546. that the correct register number is printed. For example:
  32547. asm ("xvadddp %x0,%x1,%x2"
  32548. : "=wa" (v1)
  32549. : "wa" (v2), "wa" (v3));
  32550. You should not use '%x' for 'v' operands:
  32551. asm ("xsaddqp %0,%1,%2"
  32552. : "=v" (v1)
  32553. : "v" (v2), "v" (v3));
  32554. 'c'
  32555. The count register, 'ctr'.
  32556. 'l'
  32557. The link register, 'lr'.
  32558. 'x'
  32559. Condition register field 0, 'cr0'.
  32560. 'y'
  32561. Any condition register field, 'cr0'...'cr7'.
  32562. 'I'
  32563. A signed 16-bit constant.
  32564. 'J'
  32565. An unsigned 16-bit constant shifted left 16 bits (use 'L'
  32566. instead for 'SImode' constants).
  32567. 'K'
  32568. An unsigned 16-bit constant.
  32569. 'L'
  32570. A signed 16-bit constant shifted left 16 bits.
  32571. 'eI'
  32572. A signed 34-bit integer constant if prefixed instructions are
  32573. supported.
  32574. 'm'
  32575. A memory operand. Normally, 'm' does not allow addresses that
  32576. update the base register. If the '<' or '>' constraint is
  32577. also used, they are allowed and therefore on PowerPC targets
  32578. in that case it is only safe to use 'm<>' in an 'asm'
  32579. statement if that 'asm' statement accesses the operand exactly
  32580. once. The 'asm' statement must also use '%U<OPNO>' as a
  32581. placeholder for the "update" flag in the corresponding load or
  32582. store instruction. For example:
  32583. asm ("st%U0 %1,%0" : "=m<>" (mem) : "r" (val));
  32584. is correct but:
  32585. asm ("st %1,%0" : "=m<>" (mem) : "r" (val));
  32586. is not.
  32587. 'Q'
  32588. A memory operand addressed by just a base register.
  32589. 'Z'
  32590. A memory operand accessed with indexed or indirect addressing.
  32591. 'a'
  32592. An indexed or indirect address.
  32593. _PRU--'config/pru/constraints.md'_
  32594. 'I'
  32595. An unsigned 8-bit integer constant.
  32596. 'J'
  32597. An unsigned 16-bit integer constant.
  32598. 'L'
  32599. An unsigned 5-bit integer constant (for shift counts).
  32600. 'T'
  32601. A text segment (program memory) constant label.
  32602. 'Z'
  32603. Integer constant zero.
  32604. _RL78--'config/rl78/constraints.md'_
  32605. 'Int3'
  32606. An integer constant in the range 1 ... 7.
  32607. 'Int8'
  32608. An integer constant in the range 0 ... 255.
  32609. 'J'
  32610. An integer constant in the range -255 ... 0
  32611. 'K'
  32612. The integer constant 1.
  32613. 'L'
  32614. The integer constant -1.
  32615. 'M'
  32616. The integer constant 0.
  32617. 'N'
  32618. The integer constant 2.
  32619. 'O'
  32620. The integer constant -2.
  32621. 'P'
  32622. An integer constant in the range 1 ... 15.
  32623. 'Qbi'
  32624. The built-in compare types-eq, ne, gtu, ltu, geu, and leu.
  32625. 'Qsc'
  32626. The synthetic compare types-gt, lt, ge, and le.
  32627. 'Wab'
  32628. A memory reference with an absolute address.
  32629. 'Wbc'
  32630. A memory reference using 'BC' as a base register, with an
  32631. optional offset.
  32632. 'Wca'
  32633. A memory reference using 'AX', 'BC', 'DE', or 'HL' for the
  32634. address, for calls.
  32635. 'Wcv'
  32636. A memory reference using any 16-bit register pair for the
  32637. address, for calls.
  32638. 'Wd2'
  32639. A memory reference using 'DE' as a base register, with an
  32640. optional offset.
  32641. 'Wde'
  32642. A memory reference using 'DE' as a base register, without any
  32643. offset.
  32644. 'Wfr'
  32645. Any memory reference to an address in the far address space.
  32646. 'Wh1'
  32647. A memory reference using 'HL' as a base register, with an
  32648. optional one-byte offset.
  32649. 'Whb'
  32650. A memory reference using 'HL' as a base register, with 'B' or
  32651. 'C' as the index register.
  32652. 'Whl'
  32653. A memory reference using 'HL' as a base register, without any
  32654. offset.
  32655. 'Ws1'
  32656. A memory reference using 'SP' as a base register, with an
  32657. optional one-byte offset.
  32658. 'Y'
  32659. Any memory reference to an address in the near address space.
  32660. 'A'
  32661. The 'AX' register.
  32662. 'B'
  32663. The 'BC' register.
  32664. 'D'
  32665. The 'DE' register.
  32666. 'R'
  32667. 'A' through 'L' registers.
  32668. 'S'
  32669. The 'SP' register.
  32670. 'T'
  32671. The 'HL' register.
  32672. 'Z08W'
  32673. The 16-bit 'R8' register.
  32674. 'Z10W'
  32675. The 16-bit 'R10' register.
  32676. 'Zint'
  32677. The registers reserved for interrupts ('R24' to 'R31').
  32678. 'a'
  32679. The 'A' register.
  32680. 'b'
  32681. The 'B' register.
  32682. 'c'
  32683. The 'C' register.
  32684. 'd'
  32685. The 'D' register.
  32686. 'e'
  32687. The 'E' register.
  32688. 'h'
  32689. The 'H' register.
  32690. 'l'
  32691. The 'L' register.
  32692. 'v'
  32693. The virtual registers.
  32694. 'w'
  32695. The 'PSW' register.
  32696. 'x'
  32697. The 'X' register.
  32698. _RISC-V--'config/riscv/constraints.md'_
  32699. 'f'
  32700. A floating-point register (if available).
  32701. 'I'
  32702. An I-type 12-bit signed immediate.
  32703. 'J'
  32704. Integer zero.
  32705. 'K'
  32706. A 5-bit unsigned immediate for CSR access instructions.
  32707. 'A'
  32708. An address that is held in a general-purpose register.
  32709. _RX--'config/rx/constraints.md'_
  32710. 'Q'
  32711. An address which does not involve register indirect addressing
  32712. or pre/post increment/decrement addressing.
  32713. 'Symbol'
  32714. A symbol reference.
  32715. 'Int08'
  32716. A constant in the range -256 to 255, inclusive.
  32717. 'Sint08'
  32718. A constant in the range -128 to 127, inclusive.
  32719. 'Sint16'
  32720. A constant in the range -32768 to 32767, inclusive.
  32721. 'Sint24'
  32722. A constant in the range -8388608 to 8388607, inclusive.
  32723. 'Uint04'
  32724. A constant in the range 0 to 15, inclusive.
  32725. _S/390 and zSeries--'config/s390/s390.h'_
  32726. 'a'
  32727. Address register (general purpose register except r0)
  32728. 'c'
  32729. Condition code register
  32730. 'd'
  32731. Data register (arbitrary general purpose register)
  32732. 'f'
  32733. Floating-point register
  32734. 'I'
  32735. Unsigned 8-bit constant (0-255)
  32736. 'J'
  32737. Unsigned 12-bit constant (0-4095)
  32738. 'K'
  32739. Signed 16-bit constant (-32768-32767)
  32740. 'L'
  32741. Value appropriate as displacement.
  32742. '(0..4095)'
  32743. for short displacement
  32744. '(-524288..524287)'
  32745. for long displacement
  32746. 'M'
  32747. Constant integer with a value of 0x7fffffff.
  32748. 'N'
  32749. Multiple letter constraint followed by 4 parameter letters.
  32750. '0..9:'
  32751. number of the part counting from most to least
  32752. significant
  32753. 'H,Q:'
  32754. mode of the part
  32755. 'D,S,H:'
  32756. mode of the containing operand
  32757. '0,F:'
  32758. value of the other parts (F--all bits set)
  32759. The constraint matches if the specified part of a constant has
  32760. a value different from its other parts.
  32761. 'Q'
  32762. Memory reference without index register and with short
  32763. displacement.
  32764. 'R'
  32765. Memory reference with index register and short displacement.
  32766. 'S'
  32767. Memory reference without index register but with long
  32768. displacement.
  32769. 'T'
  32770. Memory reference with index register and long displacement.
  32771. 'U'
  32772. Pointer with short displacement.
  32773. 'W'
  32774. Pointer with long displacement.
  32775. 'Y'
  32776. Shift count operand.
  32777. _SPARC--'config/sparc/sparc.h'_
  32778. 'f'
  32779. Floating-point register on the SPARC-V8 architecture and lower
  32780. floating-point register on the SPARC-V9 architecture.
  32781. 'e'
  32782. Floating-point register. It is equivalent to 'f' on the
  32783. SPARC-V8 architecture and contains both lower and upper
  32784. floating-point registers on the SPARC-V9 architecture.
  32785. 'c'
  32786. Floating-point condition code register.
  32787. 'd'
  32788. Lower floating-point register. It is only valid on the
  32789. SPARC-V9 architecture when the Visual Instruction Set is
  32790. available.
  32791. 'b'
  32792. Floating-point register. It is only valid on the SPARC-V9
  32793. architecture when the Visual Instruction Set is available.
  32794. 'h'
  32795. 64-bit global or out register for the SPARC-V8+ architecture.
  32796. 'C'
  32797. The constant all-ones, for floating-point.
  32798. 'A'
  32799. Signed 5-bit constant
  32800. 'D'
  32801. A vector constant
  32802. 'I'
  32803. Signed 13-bit constant
  32804. 'J'
  32805. Zero
  32806. 'K'
  32807. 32-bit constant with the low 12 bits clear (a constant that
  32808. can be loaded with the 'sethi' instruction)
  32809. 'L'
  32810. A constant in the range supported by 'movcc' instructions
  32811. (11-bit signed immediate)
  32812. 'M'
  32813. A constant in the range supported by 'movrcc' instructions
  32814. (10-bit signed immediate)
  32815. 'N'
  32816. Same as 'K', except that it verifies that bits that are not in
  32817. the lower 32-bit range are all zero. Must be used instead of
  32818. 'K' for modes wider than 'SImode'
  32819. 'O'
  32820. The constant 4096
  32821. 'G'
  32822. Floating-point zero
  32823. 'H'
  32824. Signed 13-bit constant, sign-extended to 32 or 64 bits
  32825. 'P'
  32826. The constant -1
  32827. 'Q'
  32828. Floating-point constant whose integral representation can be
  32829. moved into an integer register using a single sethi
  32830. instruction
  32831. 'R'
  32832. Floating-point constant whose integral representation can be
  32833. moved into an integer register using a single mov instruction
  32834. 'S'
  32835. Floating-point constant whose integral representation can be
  32836. moved into an integer register using a high/lo_sum instruction
  32837. sequence
  32838. 'T'
  32839. Memory address aligned to an 8-byte boundary
  32840. 'U'
  32841. Even register
  32842. 'W'
  32843. Memory address for 'e' constraint registers
  32844. 'w'
  32845. Memory address with only a base register
  32846. 'Y'
  32847. Vector zero
  32848. _TI C6X family--'config/c6x/constraints.md'_
  32849. 'a'
  32850. Register file A (A0-A31).
  32851. 'b'
  32852. Register file B (B0-B31).
  32853. 'A'
  32854. Predicate registers in register file A (A0-A2 on C64X and
  32855. higher, A1 and A2 otherwise).
  32856. 'B'
  32857. Predicate registers in register file B (B0-B2).
  32858. 'C'
  32859. A call-used register in register file B (B0-B9, B16-B31).
  32860. 'Da'
  32861. Register file A, excluding predicate registers (A3-A31, plus
  32862. A0 if not C64X or higher).
  32863. 'Db'
  32864. Register file B, excluding predicate registers (B3-B31).
  32865. 'Iu4'
  32866. Integer constant in the range 0 ... 15.
  32867. 'Iu5'
  32868. Integer constant in the range 0 ... 31.
  32869. 'In5'
  32870. Integer constant in the range -31 ... 0.
  32871. 'Is5'
  32872. Integer constant in the range -16 ... 15.
  32873. 'I5x'
  32874. Integer constant that can be the operand of an ADDA or a SUBA
  32875. insn.
  32876. 'IuB'
  32877. Integer constant in the range 0 ... 65535.
  32878. 'IsB'
  32879. Integer constant in the range -32768 ... 32767.
  32880. 'IsC'
  32881. Integer constant in the range -2^{20} ... 2^{20} - 1.
  32882. 'Jc'
  32883. Integer constant that is a valid mask for the clr instruction.
  32884. 'Js'
  32885. Integer constant that is a valid mask for the set instruction.
  32886. 'Q'
  32887. Memory location with A base register.
  32888. 'R'
  32889. Memory location with B base register.
  32890. 'Z'
  32891. Register B14 (aka DP).
  32892. _TILE-Gx--'config/tilegx/constraints.md'_
  32893. 'R00'
  32894. 'R01'
  32895. 'R02'
  32896. 'R03'
  32897. 'R04'
  32898. 'R05'
  32899. 'R06'
  32900. 'R07'
  32901. 'R08'
  32902. 'R09'
  32903. 'R10'
  32904. Each of these represents a register constraint for an
  32905. individual register, from r0 to r10.
  32906. 'I'
  32907. Signed 8-bit integer constant.
  32908. 'J'
  32909. Signed 16-bit integer constant.
  32910. 'K'
  32911. Unsigned 16-bit integer constant.
  32912. 'L'
  32913. Integer constant that fits in one signed byte when incremented
  32914. by one (-129 ... 126).
  32915. 'm'
  32916. Memory operand. If used together with '<' or '>', the operand
  32917. can have postincrement which requires printing with '%In' and
  32918. '%in' on TILE-Gx. For example:
  32919. asm ("st_add %I0,%1,%i0" : "=m<>" (*mem) : "r" (val));
  32920. 'M'
  32921. A bit mask suitable for the BFINS instruction.
  32922. 'N'
  32923. Integer constant that is a byte tiled out eight times.
  32924. 'O'
  32925. The integer zero constant.
  32926. 'P'
  32927. Integer constant that is a sign-extended byte tiled out as
  32928. four shorts.
  32929. 'Q'
  32930. Integer constant that fits in one signed byte when incremented
  32931. (-129 ... 126), but excluding -1.
  32932. 'S'
  32933. Integer constant that has all 1 bits consecutive and starting
  32934. at bit 0.
  32935. 'T'
  32936. A 16-bit fragment of a got, tls, or pc-relative reference.
  32937. 'U'
  32938. Memory operand except postincrement. This is roughly the same
  32939. as 'm' when not used together with '<' or '>'.
  32940. 'W'
  32941. An 8-element vector constant with identical elements.
  32942. 'Y'
  32943. A 4-element vector constant with identical elements.
  32944. 'Z0'
  32945. The integer constant 0xffffffff.
  32946. 'Z1'
  32947. The integer constant 0xffffffff00000000.
  32948. _TILEPro--'config/tilepro/constraints.md'_
  32949. 'R00'
  32950. 'R01'
  32951. 'R02'
  32952. 'R03'
  32953. 'R04'
  32954. 'R05'
  32955. 'R06'
  32956. 'R07'
  32957. 'R08'
  32958. 'R09'
  32959. 'R10'
  32960. Each of these represents a register constraint for an
  32961. individual register, from r0 to r10.
  32962. 'I'
  32963. Signed 8-bit integer constant.
  32964. 'J'
  32965. Signed 16-bit integer constant.
  32966. 'K'
  32967. Nonzero integer constant with low 16 bits zero.
  32968. 'L'
  32969. Integer constant that fits in one signed byte when incremented
  32970. by one (-129 ... 126).
  32971. 'm'
  32972. Memory operand. If used together with '<' or '>', the operand
  32973. can have postincrement which requires printing with '%In' and
  32974. '%in' on TILEPro. For example:
  32975. asm ("swadd %I0,%1,%i0" : "=m<>" (mem) : "r" (val));
  32976. 'M'
  32977. A bit mask suitable for the MM instruction.
  32978. 'N'
  32979. Integer constant that is a byte tiled out four times.
  32980. 'O'
  32981. The integer zero constant.
  32982. 'P'
  32983. Integer constant that is a sign-extended byte tiled out as two
  32984. shorts.
  32985. 'Q'
  32986. Integer constant that fits in one signed byte when incremented
  32987. (-129 ... 126), but excluding -1.
  32988. 'T'
  32989. A symbolic operand, or a 16-bit fragment of a got, tls, or
  32990. pc-relative reference.
  32991. 'U'
  32992. Memory operand except postincrement. This is roughly the same
  32993. as 'm' when not used together with '<' or '>'.
  32994. 'W'
  32995. A 4-element vector constant with identical elements.
  32996. 'Y'
  32997. A 2-element vector constant with identical elements.
  32998. _Visium--'config/visium/constraints.md'_
  32999. 'b'
  33000. EAM register 'mdb'
  33001. 'c'
  33002. EAM register 'mdc'
  33003. 'f'
  33004. Floating point register
  33005. 'l'
  33006. General register, but not 'r29', 'r30' and 'r31'
  33007. 't'
  33008. Register 'r1'
  33009. 'u'
  33010. Register 'r2'
  33011. 'v'
  33012. Register 'r3'
  33013. 'G'
  33014. Floating-point constant 0.0
  33015. 'J'
  33016. Integer constant in the range 0 .. 65535 (16-bit immediate)
  33017. 'K'
  33018. Integer constant in the range 1 .. 31 (5-bit immediate)
  33019. 'L'
  33020. Integer constant in the range -65535 .. -1 (16-bit negative
  33021. immediate)
  33022. 'M'
  33023. Integer constant -1
  33024. 'O'
  33025. Integer constant 0
  33026. 'P'
  33027. Integer constant 32
  33028. _x86 family--'config/i386/constraints.md'_
  33029. 'R'
  33030. Legacy register--the eight integer registers available on all
  33031. i386 processors ('a', 'b', 'c', 'd', 'si', 'di', 'bp', 'sp').
  33032. 'q'
  33033. Any register accessible as 'Rl'. In 32-bit mode, 'a', 'b',
  33034. 'c', and 'd'; in 64-bit mode, any integer register.
  33035. 'Q'
  33036. Any register accessible as 'Rh': 'a', 'b', 'c', and 'd'.
  33037. 'a'
  33038. The 'a' register.
  33039. 'b'
  33040. The 'b' register.
  33041. 'c'
  33042. The 'c' register.
  33043. 'd'
  33044. The 'd' register.
  33045. 'S'
  33046. The 'si' register.
  33047. 'D'
  33048. The 'di' register.
  33049. 'A'
  33050. The 'a' and 'd' registers. This class is used for
  33051. instructions that return double word results in the 'ax:dx'
  33052. register pair. Single word values will be allocated either in
  33053. 'ax' or 'dx'. For example on i386 the following implements
  33054. 'rdtsc':
  33055. unsigned long long rdtsc (void)
  33056. {
  33057. unsigned long long tick;
  33058. __asm__ __volatile__("rdtsc":"=A"(tick));
  33059. return tick;
  33060. }
  33061. This is not correct on x86-64 as it would allocate tick in
  33062. either 'ax' or 'dx'. You have to use the following variant
  33063. instead:
  33064. unsigned long long rdtsc (void)
  33065. {
  33066. unsigned int tickl, tickh;
  33067. __asm__ __volatile__("rdtsc":"=a"(tickl),"=d"(tickh));
  33068. return ((unsigned long long)tickh << 32)|tickl;
  33069. }
  33070. 'U'
  33071. The call-clobbered integer registers.
  33072. 'f'
  33073. Any 80387 floating-point (stack) register.
  33074. 't'
  33075. Top of 80387 floating-point stack ('%st(0)').
  33076. 'u'
  33077. Second from top of 80387 floating-point stack ('%st(1)').
  33078. 'y'
  33079. Any MMX register.
  33080. 'x'
  33081. Any SSE register.
  33082. 'v'
  33083. Any EVEX encodable SSE register ('%xmm0-%xmm31').
  33084. 'Yz'
  33085. First SSE register ('%xmm0').
  33086. 'I'
  33087. Integer constant in the range 0 ... 31, for 32-bit shifts.
  33088. 'J'
  33089. Integer constant in the range 0 ... 63, for 64-bit shifts.
  33090. 'K'
  33091. Signed 8-bit integer constant.
  33092. 'L'
  33093. '0xFF' or '0xFFFF', for andsi as a zero-extending move.
  33094. 'M'
  33095. 0, 1, 2, or 3 (shifts for the 'lea' instruction).
  33096. 'N'
  33097. Unsigned 8-bit integer constant (for 'in' and 'out'
  33098. instructions).
  33099. 'G'
  33100. Standard 80387 floating point constant.
  33101. 'C'
  33102. SSE constant zero operand.
  33103. 'e'
  33104. 32-bit signed integer constant, or a symbolic reference known
  33105. to fit that range (for immediate operands in sign-extending
  33106. x86-64 instructions).
  33107. 'We'
  33108. 32-bit signed integer constant, or a symbolic reference known
  33109. to fit that range (for sign-extending conversion operations
  33110. that require non-'VOIDmode' immediate operands).
  33111. 'Wz'
  33112. 32-bit unsigned integer constant, or a symbolic reference
  33113. known to fit that range (for zero-extending conversion
  33114. operations that require non-'VOIDmode' immediate operands).
  33115. 'Wd'
  33116. 128-bit integer constant where both the high and low 64-bit
  33117. word satisfy the 'e' constraint.
  33118. 'Z'
  33119. 32-bit unsigned integer constant, or a symbolic reference
  33120. known to fit that range (for immediate operands in
  33121. zero-extending x86-64 instructions).
  33122. 'Tv'
  33123. VSIB address operand.
  33124. 'Ts'
  33125. Address operand without segment register.
  33126. _Xstormy16--'config/stormy16/stormy16.h'_
  33127. 'a'
  33128. Register r0.
  33129. 'b'
  33130. Register r1.
  33131. 'c'
  33132. Register r2.
  33133. 'd'
  33134. Register r8.
  33135. 'e'
  33136. Registers r0 through r7.
  33137. 't'
  33138. Registers r0 and r1.
  33139. 'y'
  33140. The carry register.
  33141. 'z'
  33142. Registers r8 and r9.
  33143. 'I'
  33144. A constant between 0 and 3 inclusive.
  33145. 'J'
  33146. A constant that has exactly one bit set.
  33147. 'K'
  33148. A constant that has exactly one bit clear.
  33149. 'L'
  33150. A constant between 0 and 255 inclusive.
  33151. 'M'
  33152. A constant between -255 and 0 inclusive.
  33153. 'N'
  33154. A constant between -3 and 0 inclusive.
  33155. 'O'
  33156. A constant between 1 and 4 inclusive.
  33157. 'P'
  33158. A constant between -4 and -1 inclusive.
  33159. 'Q'
  33160. A memory reference that is a stack push.
  33161. 'R'
  33162. A memory reference that is a stack pop.
  33163. 'S'
  33164. A memory reference that refers to a constant address of known
  33165. value.
  33166. 'T'
  33167. The register indicated by Rx (not implemented yet).
  33168. 'U'
  33169. A constant that is not between 2 and 15 inclusive.
  33170. 'Z'
  33171. The constant 0.
  33172. _Xtensa--'config/xtensa/constraints.md'_
  33173. 'a'
  33174. General-purpose 32-bit register
  33175. 'b'
  33176. One-bit boolean register
  33177. 'A'
  33178. MAC16 40-bit accumulator register
  33179. 'I'
  33180. Signed 12-bit integer constant, for use in MOVI instructions
  33181. 'J'
  33182. Signed 8-bit integer constant, for use in ADDI instructions
  33183. 'K'
  33184. Integer constant valid for BccI instructions
  33185. 'L'
  33186. Unsigned constant valid for BccUI instructions
  33187. 
  33188. File: gcc.info, Node: Asm Labels, Next: Explicit Register Variables, Prev: Constraints, Up: Using Assembly Language with C
  33189. 6.47.4 Controlling Names Used in Assembler Code
  33190. -----------------------------------------------
  33191. You can specify the name to be used in the assembler code for a C
  33192. function or variable by writing the 'asm' (or '__asm__') keyword after
  33193. the declarator. It is up to you to make sure that the assembler names
  33194. you choose do not conflict with any other assembler symbols, or
  33195. reference registers.
  33196. Assembler names for data:
  33197. .........................
  33198. This sample shows how to specify the assembler name for data:
  33199. int foo asm ("myfoo") = 2;
  33200. This specifies that the name to be used for the variable 'foo' in the
  33201. assembler code should be 'myfoo' rather than the usual '_foo'.
  33202. On systems where an underscore is normally prepended to the name of a C
  33203. variable, this feature allows you to define names for the linker that do
  33204. not start with an underscore.
  33205. GCC does not support using this feature with a non-static local
  33206. variable since such variables do not have assembler names. If you are
  33207. trying to put the variable in a particular register, see *note Explicit
  33208. Register Variables::.
  33209. Assembler names for functions:
  33210. ..............................
  33211. To specify the assembler name for functions, write a declaration for the
  33212. function before its definition and put 'asm' there, like this:
  33213. int func (int x, int y) asm ("MYFUNC");
  33214. int func (int x, int y)
  33215. {
  33216. /* ... */
  33217. This specifies that the name to be used for the function 'func' in the
  33218. assembler code should be 'MYFUNC'.
  33219. 
  33220. File: gcc.info, Node: Explicit Register Variables, Next: Size of an asm, Prev: Asm Labels, Up: Using Assembly Language with C
  33221. 6.47.5 Variables in Specified Registers
  33222. ---------------------------------------
  33223. GNU C allows you to associate specific hardware registers with C
  33224. variables. In almost all cases, allowing the compiler to assign
  33225. registers produces the best code. However under certain unusual
  33226. circumstances, more precise control over the variable storage is
  33227. required.
  33228. Both global and local variables can be associated with a register. The
  33229. consequences of performing this association are very different between
  33230. the two, as explained in the sections below.
  33231. * Menu:
  33232. * Global Register Variables:: Variables declared at global scope.
  33233. * Local Register Variables:: Variables declared within a function.
  33234. 
  33235. File: gcc.info, Node: Global Register Variables, Next: Local Register Variables, Up: Explicit Register Variables
  33236. 6.47.5.1 Defining Global Register Variables
  33237. ...........................................
  33238. You can define a global register variable and associate it with a
  33239. specified register like this:
  33240. register int *foo asm ("r12");
  33241. Here 'r12' is the name of the register that should be used. Note that
  33242. this is the same syntax used for defining local register variables, but
  33243. for a global variable the declaration appears outside a function. The
  33244. 'register' keyword is required, and cannot be combined with 'static'.
  33245. The register name must be a valid register name for the target platform.
  33246. Do not use type qualifiers such as 'const' and 'volatile', as the
  33247. outcome may be contrary to expectations. In particular, using the
  33248. 'volatile' qualifier does not fully prevent the compiler from optimizing
  33249. accesses to the register.
  33250. Registers are a scarce resource on most systems and allowing the
  33251. compiler to manage their usage usually results in the best code.
  33252. However, under special circumstances it can make sense to reserve some
  33253. globally. For example this may be useful in programs such as
  33254. programming language interpreters that have a couple of global variables
  33255. that are accessed very often.
  33256. After defining a global register variable, for the current compilation
  33257. unit:
  33258. * If the register is a call-saved register, call ABI is affected: the
  33259. register will not be restored in function epilogue sequences after
  33260. the variable has been assigned. Therefore, functions cannot safely
  33261. return to callers that assume standard ABI.
  33262. * Conversely, if the register is a call-clobbered register, making
  33263. calls to functions that use standard ABI may lose contents of the
  33264. variable. Such calls may be created by the compiler even if none
  33265. are evident in the original program, for example when libgcc
  33266. functions are used to make up for unavailable instructions.
  33267. * Accesses to the variable may be optimized as usual and the register
  33268. remains available for allocation and use in any computations,
  33269. provided that observable values of the variable are not affected.
  33270. * If the variable is referenced in inline assembly, the type of
  33271. access must be provided to the compiler via constraints (*note
  33272. Constraints::). Accesses from basic asms are not supported.
  33273. Note that these points _only_ apply to code that is compiled with the
  33274. definition. The behavior of code that is merely linked in (for example
  33275. code from libraries) is not affected.
  33276. If you want to recompile source files that do not actually use your
  33277. global register variable so they do not use the specified register for
  33278. any other purpose, you need not actually add the global register
  33279. declaration to their source code. It suffices to specify the compiler
  33280. option '-ffixed-REG' (*note Code Gen Options::) to reserve the register.
  33281. Declaring the variable
  33282. ......................
  33283. Global register variables cannot have initial values, because an
  33284. executable file has no means to supply initial contents for a register.
  33285. When selecting a register, choose one that is normally saved and
  33286. restored by function calls on your machine. This ensures that code
  33287. which is unaware of this reservation (such as library routines) will
  33288. restore it before returning.
  33289. On machines with register windows, be sure to choose a global register
  33290. that is not affected magically by the function call mechanism.
  33291. Using the variable
  33292. ..................
  33293. When calling routines that are not aware of the reservation, be cautious
  33294. if those routines call back into code which uses them. As an example,
  33295. if you call the system library version of 'qsort', it may clobber your
  33296. registers during execution, but (if you have selected appropriate
  33297. registers) it will restore them before returning. However it will _not_
  33298. restore them before calling 'qsort''s comparison function. As a result,
  33299. global values will not reliably be available to the comparison function
  33300. unless the 'qsort' function itself is rebuilt.
  33301. Similarly, it is not safe to access the global register variables from
  33302. signal handlers or from more than one thread of control. Unless you
  33303. recompile them specially for the task at hand, the system library
  33304. routines may temporarily use the register for other things.
  33305. Furthermore, since the register is not reserved exclusively for the
  33306. variable, accessing it from handlers of asynchronous signals may observe
  33307. unrelated temporary values residing in the register.
  33308. On most machines, 'longjmp' restores to each global register variable
  33309. the value it had at the time of the 'setjmp'. On some machines,
  33310. however, 'longjmp' does not change the value of global register
  33311. variables. To be portable, the function that called 'setjmp' should
  33312. make other arrangements to save the values of the global register
  33313. variables, and to restore them in a 'longjmp'. This way, the same thing
  33314. happens regardless of what 'longjmp' does.
  33315. 
  33316. File: gcc.info, Node: Local Register Variables, Prev: Global Register Variables, Up: Explicit Register Variables
  33317. 6.47.5.2 Specifying Registers for Local Variables
  33318. .................................................
  33319. You can define a local register variable and associate it with a
  33320. specified register like this:
  33321. register int *foo asm ("r12");
  33322. Here 'r12' is the name of the register that should be used. Note that
  33323. this is the same syntax used for defining global register variables, but
  33324. for a local variable the declaration appears within a function. The
  33325. 'register' keyword is required, and cannot be combined with 'static'.
  33326. The register name must be a valid register name for the target platform.
  33327. Do not use type qualifiers such as 'const' and 'volatile', as the
  33328. outcome may be contrary to expectations. In particular, when the
  33329. 'const' qualifier is used, the compiler may substitute the variable with
  33330. its initializer in 'asm' statements, which may cause the corresponding
  33331. operand to appear in a different register.
  33332. As with global register variables, it is recommended that you choose a
  33333. register that is normally saved and restored by function calls on your
  33334. machine, so that calls to library routines will not clobber it.
  33335. The only supported use for this feature is to specify registers for
  33336. input and output operands when calling Extended 'asm' (*note Extended
  33337. Asm::). This may be necessary if the constraints for a particular
  33338. machine don't provide sufficient control to select the desired register.
  33339. To force an operand into a register, create a local variable and specify
  33340. the register name after the variable's declaration. Then use the local
  33341. variable for the 'asm' operand and specify any constraint letter that
  33342. matches the register:
  33343. register int *p1 asm ("r0") = ...;
  33344. register int *p2 asm ("r1") = ...;
  33345. register int *result asm ("r0");
  33346. asm ("sysint" : "=r" (result) : "0" (p1), "r" (p2));
  33347. _Warning:_ In the above example, be aware that a register (for example
  33348. 'r0') can be call-clobbered by subsequent code, including function calls
  33349. and library calls for arithmetic operators on other variables (for
  33350. example the initialization of 'p2'). In this case, use temporary
  33351. variables for expressions between the register assignments:
  33352. int t1 = ...;
  33353. register int *p1 asm ("r0") = ...;
  33354. register int *p2 asm ("r1") = t1;
  33355. register int *result asm ("r0");
  33356. asm ("sysint" : "=r" (result) : "0" (p1), "r" (p2));
  33357. Defining a register variable does not reserve the register. Other than
  33358. when invoking the Extended 'asm', the contents of the specified register
  33359. are not guaranteed. For this reason, the following uses are explicitly
  33360. _not_ supported. If they appear to work, it is only happenstance, and
  33361. may stop working as intended due to (seemingly) unrelated changes in
  33362. surrounding code, or even minor changes in the optimization of a future
  33363. version of gcc:
  33364. * Passing parameters to or from Basic 'asm'
  33365. * Passing parameters to or from Extended 'asm' without using input or
  33366. output operands.
  33367. * Passing parameters to or from routines written in assembler (or
  33368. other languages) using non-standard calling conventions.
  33369. Some developers use Local Register Variables in an attempt to improve
  33370. gcc's allocation of registers, especially in large functions. In this
  33371. case the register name is essentially a hint to the register allocator.
  33372. While in some instances this can generate better code, improvements are
  33373. subject to the whims of the allocator/optimizers. Since there are no
  33374. guarantees that your improvements won't be lost, this usage of Local
  33375. Register Variables is discouraged.
  33376. On the MIPS platform, there is related use for local register variables
  33377. with slightly different characteristics (*note Defining coprocessor
  33378. specifics for MIPS targets: (gccint)MIPS Coprocessors.).
  33379. 
  33380. File: gcc.info, Node: Size of an asm, Prev: Explicit Register Variables, Up: Using Assembly Language with C
  33381. 6.47.6 Size of an 'asm'
  33382. -----------------------
  33383. Some targets require that GCC track the size of each instruction used in
  33384. order to generate correct code. Because the final length of the code
  33385. produced by an 'asm' statement is only known by the assembler, GCC must
  33386. make an estimate as to how big it will be. It does this by counting the
  33387. number of instructions in the pattern of the 'asm' and multiplying that
  33388. by the length of the longest instruction supported by that processor.
  33389. (When working out the number of instructions, it assumes that any
  33390. occurrence of a newline or of whatever statement separator character is
  33391. supported by the assembler -- typically ';' -- indicates the end of an
  33392. instruction.)
  33393. Normally, GCC's estimate is adequate to ensure that correct code is
  33394. generated, but it is possible to confuse the compiler if you use pseudo
  33395. instructions or assembler macros that expand into multiple real
  33396. instructions, or if you use assembler directives that expand to more
  33397. space in the object file than is needed for a single instruction. If
  33398. this happens then the assembler may produce a diagnostic saying that a
  33399. label is unreachable.
  33400. This size is also used for inlining decisions. If you use 'asm inline'
  33401. instead of just 'asm', then for inlining purposes the size of the asm is
  33402. taken as the minimum size, ignoring how many instructions GCC thinks it
  33403. is.
  33404. 
  33405. File: gcc.info, Node: Alternate Keywords, Next: Incomplete Enums, Prev: Using Assembly Language with C, Up: C Extensions
  33406. 6.48 Alternate Keywords
  33407. =======================
  33408. '-ansi' and the various '-std' options disable certain keywords. This
  33409. causes trouble when you want to use GNU C extensions, or a
  33410. general-purpose header file that should be usable by all programs,
  33411. including ISO C programs. The keywords 'asm', 'typeof' and 'inline' are
  33412. not available in programs compiled with '-ansi' or '-std' (although
  33413. 'inline' can be used in a program compiled with '-std=c99' or a later
  33414. standard). The ISO C99 keyword 'restrict' is only available when
  33415. '-std=gnu99' (which will eventually be the default) or '-std=c99' (or
  33416. the equivalent '-std=iso9899:1999'), or an option for a later standard
  33417. version, is used.
  33418. The way to solve these problems is to put '__' at the beginning and end
  33419. of each problematical keyword. For example, use '__asm__' instead of
  33420. 'asm', and '__inline__' instead of 'inline'.
  33421. Other C compilers won't accept these alternative keywords; if you want
  33422. to compile with another compiler, you can define the alternate keywords
  33423. as macros to replace them with the customary keywords. It looks like
  33424. this:
  33425. #ifndef __GNUC__
  33426. #define __asm__ asm
  33427. #endif
  33428. '-pedantic' and other options cause warnings for many GNU C extensions.
  33429. You can prevent such warnings within one expression by writing
  33430. '__extension__' before the expression. '__extension__' has no effect
  33431. aside from this.
  33432. 
  33433. File: gcc.info, Node: Incomplete Enums, Next: Function Names, Prev: Alternate Keywords, Up: C Extensions
  33434. 6.49 Incomplete 'enum' Types
  33435. ============================
  33436. You can define an 'enum' tag without specifying its possible values.
  33437. This results in an incomplete type, much like what you get if you write
  33438. 'struct foo' without describing the elements. A later declaration that
  33439. does specify the possible values completes the type.
  33440. You cannot allocate variables or storage using the type while it is
  33441. incomplete. However, you can work with pointers to that type.
  33442. This extension may not be very useful, but it makes the handling of
  33443. 'enum' more consistent with the way 'struct' and 'union' are handled.
  33444. This extension is not supported by GNU C++.
  33445. 
  33446. File: gcc.info, Node: Function Names, Next: Return Address, Prev: Incomplete Enums, Up: C Extensions
  33447. 6.50 Function Names as Strings
  33448. ==============================
  33449. GCC provides three magic constants that hold the name of the current
  33450. function as a string. In C++11 and later modes, all three are treated
  33451. as constant expressions and can be used in 'constexpr' constexts. The
  33452. first of these constants is '__func__', which is part of the C99
  33453. standard:
  33454. The identifier '__func__' is implicitly declared by the translator as
  33455. if, immediately following the opening brace of each function definition,
  33456. the declaration
  33457. static const char __func__[] = "function-name";
  33458. appeared, where function-name is the name of the lexically-enclosing
  33459. function. This name is the unadorned name of the function. As an
  33460. extension, at file (or, in C++, namespace scope), '__func__' evaluates
  33461. to the empty string.
  33462. '__FUNCTION__' is another name for '__func__', provided for backward
  33463. compatibility with old versions of GCC.
  33464. In C, '__PRETTY_FUNCTION__' is yet another name for '__func__', except
  33465. that at file scope (or, in C++, namespace scope), it evaluates to the
  33466. string '"top level"'. In addition, in C++, '__PRETTY_FUNCTION__'
  33467. contains the signature of the function as well as its bare name. For
  33468. example, this program:
  33469. extern "C" int printf (const char *, ...);
  33470. class a {
  33471. public:
  33472. void sub (int i)
  33473. {
  33474. printf ("__FUNCTION__ = %s\n", __FUNCTION__);
  33475. printf ("__PRETTY_FUNCTION__ = %s\n", __PRETTY_FUNCTION__);
  33476. }
  33477. };
  33478. int
  33479. main (void)
  33480. {
  33481. a ax;
  33482. ax.sub (0);
  33483. return 0;
  33484. }
  33485. gives this output:
  33486. __FUNCTION__ = sub
  33487. __PRETTY_FUNCTION__ = void a::sub(int)
  33488. These identifiers are variables, not preprocessor macros, and may not
  33489. be used to initialize 'char' arrays or be concatenated with string
  33490. literals.
  33491. 
  33492. File: gcc.info, Node: Return Address, Next: Vector Extensions, Prev: Function Names, Up: C Extensions
  33493. 6.51 Getting the Return or Frame Address of a Function
  33494. ======================================================
  33495. These functions may be used to get information about the callers of a
  33496. function.
  33497. -- Built-in Function: void * __builtin_return_address (unsigned int
  33498. LEVEL)
  33499. This function returns the return address of the current function,
  33500. or of one of its callers. The LEVEL argument is number of frames
  33501. to scan up the call stack. A value of '0' yields the return
  33502. address of the current function, a value of '1' yields the return
  33503. address of the caller of the current function, and so forth. When
  33504. inlining the expected behavior is that the function returns the
  33505. address of the function that is returned to. To work around this
  33506. behavior use the 'noinline' function attribute.
  33507. The LEVEL argument must be a constant integer.
  33508. On some machines it may be impossible to determine the return
  33509. address of any function other than the current one; in such cases,
  33510. or when the top of the stack has been reached, this function
  33511. returns an unspecified value. In addition,
  33512. '__builtin_frame_address' may be used to determine if the top of
  33513. the stack has been reached.
  33514. Additional post-processing of the returned value may be needed, see
  33515. '__builtin_extract_return_addr'.
  33516. The stored representation of the return address in memory may be
  33517. different from the address returned by '__builtin_return_address'.
  33518. For example, on AArch64 the stored address may be mangled with
  33519. return address signing whereas the address returned by
  33520. '__builtin_return_address' is not.
  33521. Calling this function with a nonzero argument can have
  33522. unpredictable effects, including crashing the calling program. As
  33523. a result, calls that are considered unsafe are diagnosed when the
  33524. '-Wframe-address' option is in effect. Such calls should only be
  33525. made in debugging situations.
  33526. On targets where code addresses are representable as 'void *',
  33527. void *addr = __builtin_extract_return_addr (__builtin_return_address (0));
  33528. gives the code address where the current function would return.
  33529. For example, such an address may be used with 'dladdr' or other
  33530. interfaces that work with code addresses.
  33531. -- Built-in Function: void * __builtin_extract_return_addr (void *ADDR)
  33532. The address as returned by '__builtin_return_address' may have to
  33533. be fed through this function to get the actual encoded address.
  33534. For example, on the 31-bit S/390 platform the highest bit has to be
  33535. masked out, or on SPARC platforms an offset has to be added for the
  33536. true next instruction to be executed.
  33537. If no fixup is needed, this function simply passes through ADDR.
  33538. -- Built-in Function: void * __builtin_frob_return_addr (void *ADDR)
  33539. This function does the reverse of '__builtin_extract_return_addr'.
  33540. -- Built-in Function: void * __builtin_frame_address (unsigned int
  33541. LEVEL)
  33542. This function is similar to '__builtin_return_address', but it
  33543. returns the address of the function frame rather than the return
  33544. address of the function. Calling '__builtin_frame_address' with a
  33545. value of '0' yields the frame address of the current function, a
  33546. value of '1' yields the frame address of the caller of the current
  33547. function, and so forth.
  33548. The frame is the area on the stack that holds local variables and
  33549. saved registers. The frame address is normally the address of the
  33550. first word pushed on to the stack by the function. However, the
  33551. exact definition depends upon the processor and the calling
  33552. convention. If the processor has a dedicated frame pointer
  33553. register, and the function has a frame, then
  33554. '__builtin_frame_address' returns the value of the frame pointer
  33555. register.
  33556. On some machines it may be impossible to determine the frame
  33557. address of any function other than the current one; in such cases,
  33558. or when the top of the stack has been reached, this function
  33559. returns '0' if the first frame pointer is properly initialized by
  33560. the startup code.
  33561. Calling this function with a nonzero argument can have
  33562. unpredictable effects, including crashing the calling program. As
  33563. a result, calls that are considered unsafe are diagnosed when the
  33564. '-Wframe-address' option is in effect. Such calls should only be
  33565. made in debugging situations.
  33566. 
  33567. File: gcc.info, Node: Vector Extensions, Next: Offsetof, Prev: Return Address, Up: C Extensions
  33568. 6.52 Using Vector Instructions through Built-in Functions
  33569. =========================================================
  33570. On some targets, the instruction set contains SIMD vector instructions
  33571. which operate on multiple values contained in one large register at the
  33572. same time. For example, on the x86 the MMX, 3DNow! and SSE extensions
  33573. can be used this way.
  33574. The first step in using these extensions is to provide the necessary
  33575. data types. This should be done using an appropriate 'typedef':
  33576. typedef int v4si __attribute__ ((vector_size (16)));
  33577. The 'int' type specifies the "base type", while the attribute specifies
  33578. the vector size for the variable, measured in bytes. For example, the
  33579. declaration above causes the compiler to set the mode for the 'v4si'
  33580. type to be 16 bytes wide and divided into 'int' sized units. For a
  33581. 32-bit 'int' this means a vector of 4 units of 4 bytes, and the
  33582. corresponding mode of 'foo' is V4SI.
  33583. The 'vector_size' attribute is only applicable to integral and floating
  33584. scalars, although arrays, pointers, and function return values are
  33585. allowed in conjunction with this construct. Only sizes that are
  33586. positive power-of-two multiples of the base type size are currently
  33587. allowed.
  33588. All the basic integer types can be used as base types, both as signed
  33589. and as unsigned: 'char', 'short', 'int', 'long', 'long long'. In
  33590. addition, 'float' and 'double' can be used to build floating-point
  33591. vector types.
  33592. Specifying a combination that is not valid for the current architecture
  33593. causes GCC to synthesize the instructions using a narrower mode. For
  33594. example, if you specify a variable of type 'V4SI' and your architecture
  33595. does not allow for this specific SIMD type, GCC produces code that uses
  33596. 4 'SIs'.
  33597. The types defined in this manner can be used with a subset of normal C
  33598. operations. Currently, GCC allows using the following operators on
  33599. these types: '+, -, *, /, unary minus, ^, |, &, ~, %'.
  33600. The operations behave like C++ 'valarrays'. Addition is defined as the
  33601. addition of the corresponding elements of the operands. For example, in
  33602. the code below, each of the 4 elements in A is added to the
  33603. corresponding 4 elements in B and the resulting vector is stored in C.
  33604. typedef int v4si __attribute__ ((vector_size (16)));
  33605. v4si a, b, c;
  33606. c = a + b;
  33607. Subtraction, multiplication, division, and the logical operations
  33608. operate in a similar manner. Likewise, the result of using the unary
  33609. minus or complement operators on a vector type is a vector whose
  33610. elements are the negative or complemented values of the corresponding
  33611. elements in the operand.
  33612. It is possible to use shifting operators '<<', '>>' on integer-type
  33613. vectors. The operation is defined as following: '{a0, a1, ..., an} >>
  33614. {b0, b1, ..., bn} == {a0 >> b0, a1 >> b1, ..., an >> bn}'. Vector
  33615. operands must have the same number of elements.
  33616. For convenience, it is allowed to use a binary vector operation where
  33617. one operand is a scalar. In that case the compiler transforms the
  33618. scalar operand into a vector where each element is the scalar from the
  33619. operation. The transformation happens only if the scalar could be
  33620. safely converted to the vector-element type. Consider the following
  33621. code.
  33622. typedef int v4si __attribute__ ((vector_size (16)));
  33623. v4si a, b, c;
  33624. long l;
  33625. a = b + 1; /* a = b + {1,1,1,1}; */
  33626. a = 2 * b; /* a = {2,2,2,2} * b; */
  33627. a = l + a; /* Error, cannot convert long to int. */
  33628. Vectors can be subscripted as if the vector were an array with the same
  33629. number of elements and base type. Out of bound accesses invoke
  33630. undefined behavior at run time. Warnings for out of bound accesses for
  33631. vector subscription can be enabled with '-Warray-bounds'.
  33632. Vector comparison is supported with standard comparison operators: '==,
  33633. !=, <, <=, >, >='. Comparison operands can be vector expressions of
  33634. integer-type or real-type. Comparison between integer-type vectors and
  33635. real-type vectors are not supported. The result of the comparison is a
  33636. vector of the same width and number of elements as the comparison
  33637. operands with a signed integral element type.
  33638. Vectors are compared element-wise producing 0 when comparison is false
  33639. and -1 (constant of the appropriate type where all bits are set)
  33640. otherwise. Consider the following example.
  33641. typedef int v4si __attribute__ ((vector_size (16)));
  33642. v4si a = {1,2,3,4};
  33643. v4si b = {3,2,1,4};
  33644. v4si c;
  33645. c = a > b; /* The result would be {0, 0,-1, 0} */
  33646. c = a == b; /* The result would be {0,-1, 0,-1} */
  33647. In C++, the ternary operator '?:' is available. 'a?b:c', where 'b' and
  33648. 'c' are vectors of the same type and 'a' is an integer vector with the
  33649. same number of elements of the same size as 'b' and 'c', computes all
  33650. three arguments and creates a vector '{a[0]?b[0]:c[0], a[1]?b[1]:c[1],
  33651. ...}'. Note that unlike in OpenCL, 'a' is thus interpreted as 'a != 0'
  33652. and not 'a < 0'. As in the case of binary operations, this syntax is
  33653. also accepted when one of 'b' or 'c' is a scalar that is then
  33654. transformed into a vector. If both 'b' and 'c' are scalars and the type
  33655. of 'true?b:c' has the same size as the element type of 'a', then 'b' and
  33656. 'c' are converted to a vector type whose elements have this type and
  33657. with the same number of elements as 'a'.
  33658. In C++, the logic operators '!, &&, ||' are available for vectors.
  33659. '!v' is equivalent to 'v == 0', 'a && b' is equivalent to 'a!=0 & b!=0'
  33660. and 'a || b' is equivalent to 'a!=0 | b!=0'. For mixed operations
  33661. between a scalar 's' and a vector 'v', 's && v' is equivalent to
  33662. 's?v!=0:0' (the evaluation is short-circuit) and 'v && s' is equivalent
  33663. to 'v!=0 & (s?-1:0)'.
  33664. Vector shuffling is available using functions '__builtin_shuffle (vec,
  33665. mask)' and '__builtin_shuffle (vec0, vec1, mask)'. Both functions
  33666. construct a permutation of elements from one or two vectors and return a
  33667. vector of the same type as the input vector(s). The MASK is an integral
  33668. vector with the same width (W) and element count (N) as the output
  33669. vector.
  33670. The elements of the input vectors are numbered in memory ordering of
  33671. VEC0 beginning at 0 and VEC1 beginning at N. The elements of MASK are
  33672. considered modulo N in the single-operand case and modulo 2*N in the
  33673. two-operand case.
  33674. Consider the following example,
  33675. typedef int v4si __attribute__ ((vector_size (16)));
  33676. v4si a = {1,2,3,4};
  33677. v4si b = {5,6,7,8};
  33678. v4si mask1 = {0,1,1,3};
  33679. v4si mask2 = {0,4,2,5};
  33680. v4si res;
  33681. res = __builtin_shuffle (a, mask1); /* res is {1,2,2,4} */
  33682. res = __builtin_shuffle (a, b, mask2); /* res is {1,5,3,6} */
  33683. Note that '__builtin_shuffle' is intentionally semantically compatible
  33684. with the OpenCL 'shuffle' and 'shuffle2' functions.
  33685. You can declare variables and use them in function calls and returns,
  33686. as well as in assignments and some casts. You can specify a vector type
  33687. as a return type for a function. Vector types can also be used as
  33688. function arguments. It is possible to cast from one vector type to
  33689. another, provided they are of the same size (in fact, you can also cast
  33690. vectors to and from other datatypes of the same size).
  33691. You cannot operate between vectors of different lengths or different
  33692. signedness without a cast.
  33693. Vector conversion is available using the '__builtin_convertvector (vec,
  33694. vectype)' function. VEC must be an expression with integral or floating
  33695. vector type and VECTYPE an integral or floating vector type with the
  33696. same number of elements. The result has VECTYPE type and value of a C
  33697. cast of every element of VEC to the element type of VECTYPE.
  33698. Consider the following example,
  33699. typedef int v4si __attribute__ ((vector_size (16)));
  33700. typedef float v4sf __attribute__ ((vector_size (16)));
  33701. typedef double v4df __attribute__ ((vector_size (32)));
  33702. typedef unsigned long long v4di __attribute__ ((vector_size (32)));
  33703. v4si a = {1,-2,3,-4};
  33704. v4sf b = {1.5f,-2.5f,3.f,7.f};
  33705. v4di c = {1ULL,5ULL,0ULL,10ULL};
  33706. v4sf d = __builtin_convertvector (a, v4sf); /* d is {1.f,-2.f,3.f,-4.f} */
  33707. /* Equivalent of:
  33708. v4sf d = { (float)a[0], (float)a[1], (float)a[2], (float)a[3] }; */
  33709. v4df e = __builtin_convertvector (a, v4df); /* e is {1.,-2.,3.,-4.} */
  33710. v4df f = __builtin_convertvector (b, v4df); /* f is {1.5,-2.5,3.,7.} */
  33711. v4si g = __builtin_convertvector (f, v4si); /* g is {1,-2,3,7} */
  33712. v4si h = __builtin_convertvector (c, v4si); /* h is {1,5,0,10} */
  33713. Sometimes it is desirable to write code using a mix of generic vector
  33714. operations (for clarity) and machine-specific vector intrinsics (to
  33715. access vector instructions that are not exposed via generic built-ins).
  33716. On x86, intrinsic functions for integer vectors typically use the same
  33717. vector type '__m128i' irrespective of how they interpret the vector,
  33718. making it necessary to cast their arguments and return values from/to
  33719. other vector types. In C, you can make use of a 'union' type:
  33720. #include <immintrin.h>
  33721. typedef unsigned char u8x16 __attribute__ ((vector_size (16)));
  33722. typedef unsigned int u32x4 __attribute__ ((vector_size (16)));
  33723. typedef union {
  33724. __m128i mm;
  33725. u8x16 u8;
  33726. u32x4 u32;
  33727. } v128;
  33728. for variables that can be used with both built-in operators and x86
  33729. intrinsics:
  33730. v128 x, y = { 0 };
  33731. memcpy (&x, ptr, sizeof x);
  33732. y.u8 += 0x80;
  33733. x.mm = _mm_adds_epu8 (x.mm, y.mm);
  33734. x.u32 &= 0xffffff;
  33735. /* Instead of a variable, a compound literal may be used to pass the
  33736. return value of an intrinsic call to a function expecting the union: */
  33737. v128 foo (v128);
  33738. x = foo ((v128) {_mm_adds_epu8 (x.mm, y.mm)});
  33739. 
  33740. File: gcc.info, Node: Offsetof, Next: __sync Builtins, Prev: Vector Extensions, Up: C Extensions
  33741. 6.53 Support for 'offsetof'
  33742. ===========================
  33743. GCC implements for both C and C++ a syntactic extension to implement the
  33744. 'offsetof' macro.
  33745. primary:
  33746. "__builtin_offsetof" "(" typename "," offsetof_member_designator ")"
  33747. offsetof_member_designator:
  33748. identifier
  33749. | offsetof_member_designator "." identifier
  33750. | offsetof_member_designator "[" expr "]"
  33751. This extension is sufficient such that
  33752. #define offsetof(TYPE, MEMBER) __builtin_offsetof (TYPE, MEMBER)
  33753. is a suitable definition of the 'offsetof' macro. In C++, TYPE may be
  33754. dependent. In either case, MEMBER may consist of a single identifier,
  33755. or a sequence of member accesses and array references.
  33756. 
  33757. File: gcc.info, Node: __sync Builtins, Next: __atomic Builtins, Prev: Offsetof, Up: C Extensions
  33758. 6.54 Legacy '__sync' Built-in Functions for Atomic Memory Access
  33759. ================================================================
  33760. The following built-in functions are intended to be compatible with
  33761. those described in the 'Intel Itanium Processor-specific Application
  33762. Binary Interface', section 7.4. As such, they depart from normal GCC
  33763. practice by not using the '__builtin_' prefix and also by being
  33764. overloaded so that they work on multiple types.
  33765. The definition given in the Intel documentation allows only for the use
  33766. of the types 'int', 'long', 'long long' or their unsigned counterparts.
  33767. GCC allows any scalar type that is 1, 2, 4 or 8 bytes in size other than
  33768. the C type '_Bool' or the C++ type 'bool'. Operations on pointer
  33769. arguments are performed as if the operands were of the 'uintptr_t' type.
  33770. That is, they are not scaled by the size of the type to which the
  33771. pointer points.
  33772. These functions are implemented in terms of the '__atomic' builtins
  33773. (*note __atomic Builtins::). They should not be used for new code which
  33774. should use the '__atomic' builtins instead.
  33775. Not all operations are supported by all target processors. If a
  33776. particular operation cannot be implemented on the target processor, a
  33777. warning is generated and a call to an external function is generated.
  33778. The external function carries the same name as the built-in version,
  33779. with an additional suffix '_N' where N is the size of the data type.
  33780. In most cases, these built-in functions are considered a "full
  33781. barrier". That is, no memory operand is moved across the operation,
  33782. either forward or backward. Further, instructions are issued as
  33783. necessary to prevent the processor from speculating loads across the
  33784. operation and from queuing stores after the operation.
  33785. All of the routines are described in the Intel documentation to take
  33786. "an optional list of variables protected by the memory barrier". It's
  33787. not clear what is meant by that; it could mean that _only_ the listed
  33788. variables are protected, or it could mean a list of additional variables
  33789. to be protected. The list is ignored by GCC which treats it as empty.
  33790. GCC interprets an empty list as meaning that all globally accessible
  33791. variables should be protected.
  33792. 'TYPE __sync_fetch_and_add (TYPE *ptr, TYPE value, ...)'
  33793. 'TYPE __sync_fetch_and_sub (TYPE *ptr, TYPE value, ...)'
  33794. 'TYPE __sync_fetch_and_or (TYPE *ptr, TYPE value, ...)'
  33795. 'TYPE __sync_fetch_and_and (TYPE *ptr, TYPE value, ...)'
  33796. 'TYPE __sync_fetch_and_xor (TYPE *ptr, TYPE value, ...)'
  33797. 'TYPE __sync_fetch_and_nand (TYPE *ptr, TYPE value, ...)'
  33798. These built-in functions perform the operation suggested by the
  33799. name, and returns the value that had previously been in memory.
  33800. That is, operations on integer operands have the following
  33801. semantics. Operations on pointer arguments are performed as if the
  33802. operands were of the 'uintptr_t' type. That is, they are not
  33803. scaled by the size of the type to which the pointer points.
  33804. { tmp = *ptr; *ptr OP= value; return tmp; }
  33805. { tmp = *ptr; *ptr = ~(tmp & value); return tmp; } // nand
  33806. The object pointed to by the first argument must be of integer or
  33807. pointer type. It must not be a boolean type.
  33808. _Note:_ GCC 4.4 and later implement '__sync_fetch_and_nand' as
  33809. '*ptr = ~(tmp & value)' instead of '*ptr = ~tmp & value'.
  33810. 'TYPE __sync_add_and_fetch (TYPE *ptr, TYPE value, ...)'
  33811. 'TYPE __sync_sub_and_fetch (TYPE *ptr, TYPE value, ...)'
  33812. 'TYPE __sync_or_and_fetch (TYPE *ptr, TYPE value, ...)'
  33813. 'TYPE __sync_and_and_fetch (TYPE *ptr, TYPE value, ...)'
  33814. 'TYPE __sync_xor_and_fetch (TYPE *ptr, TYPE value, ...)'
  33815. 'TYPE __sync_nand_and_fetch (TYPE *ptr, TYPE value, ...)'
  33816. These built-in functions perform the operation suggested by the
  33817. name, and return the new value. That is, operations on integer
  33818. operands have the following semantics. Operations on pointer
  33819. operands are performed as if the operand's type were 'uintptr_t'.
  33820. { *ptr OP= value; return *ptr; }
  33821. { *ptr = ~(*ptr & value); return *ptr; } // nand
  33822. The same constraints on arguments apply as for the corresponding
  33823. '__sync_op_and_fetch' built-in functions.
  33824. _Note:_ GCC 4.4 and later implement '__sync_nand_and_fetch' as
  33825. '*ptr = ~(*ptr & value)' instead of '*ptr = ~*ptr & value'.
  33826. 'bool __sync_bool_compare_and_swap (TYPE *ptr, TYPE oldval, TYPE newval, ...)'
  33827. 'TYPE __sync_val_compare_and_swap (TYPE *ptr, TYPE oldval, TYPE newval, ...)'
  33828. These built-in functions perform an atomic compare and swap. That
  33829. is, if the current value of '*PTR' is OLDVAL, then write NEWVAL
  33830. into '*PTR'.
  33831. The "bool" version returns 'true' if the comparison is successful
  33832. and NEWVAL is written. The "val" version returns the contents of
  33833. '*PTR' before the operation.
  33834. '__sync_synchronize (...)'
  33835. This built-in function issues a full memory barrier.
  33836. 'TYPE __sync_lock_test_and_set (TYPE *ptr, TYPE value, ...)'
  33837. This built-in function, as described by Intel, is not a traditional
  33838. test-and-set operation, but rather an atomic exchange operation.
  33839. It writes VALUE into '*PTR', and returns the previous contents of
  33840. '*PTR'.
  33841. Many targets have only minimal support for such locks, and do not
  33842. support a full exchange operation. In this case, a target may
  33843. support reduced functionality here by which the _only_ valid value
  33844. to store is the immediate constant 1. The exact value actually
  33845. stored in '*PTR' is implementation defined.
  33846. This built-in function is not a full barrier, but rather an
  33847. "acquire barrier". This means that references after the operation
  33848. cannot move to (or be speculated to) before the operation, but
  33849. previous memory stores may not be globally visible yet, and
  33850. previous memory loads may not yet be satisfied.
  33851. 'void __sync_lock_release (TYPE *ptr, ...)'
  33852. This built-in function releases the lock acquired by
  33853. '__sync_lock_test_and_set'. Normally this means writing the
  33854. constant 0 to '*PTR'.
  33855. This built-in function is not a full barrier, but rather a "release
  33856. barrier". This means that all previous memory stores are globally
  33857. visible, and all previous memory loads have been satisfied, but
  33858. following memory reads are not prevented from being speculated to
  33859. before the barrier.
  33860. 
  33861. File: gcc.info, Node: __atomic Builtins, Next: Integer Overflow Builtins, Prev: __sync Builtins, Up: C Extensions
  33862. 6.55 Built-in Functions for Memory Model Aware Atomic Operations
  33863. ================================================================
  33864. The following built-in functions approximately match the requirements
  33865. for the C++11 memory model. They are all identified by being prefixed
  33866. with '__atomic' and most are overloaded so that they work with multiple
  33867. types.
  33868. These functions are intended to replace the legacy '__sync' builtins.
  33869. The main difference is that the memory order that is requested is a
  33870. parameter to the functions. New code should always use the '__atomic'
  33871. builtins rather than the '__sync' builtins.
  33872. Note that the '__atomic' builtins assume that programs will conform to
  33873. the C++11 memory model. In particular, they assume that programs are
  33874. free of data races. See the C++11 standard for detailed requirements.
  33875. The '__atomic' builtins can be used with any integral scalar or pointer
  33876. type that is 1, 2, 4, or 8 bytes in length. 16-byte integral types are
  33877. also allowed if '__int128' (*note __int128::) is supported by the
  33878. architecture.
  33879. The four non-arithmetic functions (load, store, exchange, and
  33880. compare_exchange) all have a generic version as well. This generic
  33881. version works on any data type. It uses the lock-free built-in function
  33882. if the specific data type size makes that possible; otherwise, an
  33883. external call is left to be resolved at run time. This external call is
  33884. the same format with the addition of a 'size_t' parameter inserted as
  33885. the first parameter indicating the size of the object being pointed to.
  33886. All objects must be the same size.
  33887. There are 6 different memory orders that can be specified. These map
  33888. to the C++11 memory orders with the same names, see the C++11 standard
  33889. or the GCC wiki on atomic synchronization
  33890. (http://gcc.gnu.org/wiki/Atomic/GCCMM/AtomicSync) for detailed
  33891. definitions. Individual targets may also support additional memory
  33892. orders for use on specific architectures. Refer to the target
  33893. documentation for details of these.
  33894. An atomic operation can both constrain code motion and be mapped to
  33895. hardware instructions for synchronization between threads (e.g., a
  33896. fence). To which extent this happens is controlled by the memory
  33897. orders, which are listed here in approximately ascending order of
  33898. strength. The description of each memory order is only meant to roughly
  33899. illustrate the effects and is not a specification; see the C++11 memory
  33900. model for precise semantics.
  33901. '__ATOMIC_RELAXED'
  33902. Implies no inter-thread ordering constraints.
  33903. '__ATOMIC_CONSUME'
  33904. This is currently implemented using the stronger '__ATOMIC_ACQUIRE'
  33905. memory order because of a deficiency in C++11's semantics for
  33906. 'memory_order_consume'.
  33907. '__ATOMIC_ACQUIRE'
  33908. Creates an inter-thread happens-before constraint from the release
  33909. (or stronger) semantic store to this acquire load. Can prevent
  33910. hoisting of code to before the operation.
  33911. '__ATOMIC_RELEASE'
  33912. Creates an inter-thread happens-before constraint to acquire (or
  33913. stronger) semantic loads that read from this release store. Can
  33914. prevent sinking of code to after the operation.
  33915. '__ATOMIC_ACQ_REL'
  33916. Combines the effects of both '__ATOMIC_ACQUIRE' and
  33917. '__ATOMIC_RELEASE'.
  33918. '__ATOMIC_SEQ_CST'
  33919. Enforces total ordering with all other '__ATOMIC_SEQ_CST'
  33920. operations.
  33921. Note that in the C++11 memory model, _fences_ (e.g.,
  33922. '__atomic_thread_fence') take effect in combination with other atomic
  33923. operations on specific memory locations (e.g., atomic loads); operations
  33924. on specific memory locations do not necessarily affect other operations
  33925. in the same way.
  33926. Target architectures are encouraged to provide their own patterns for
  33927. each of the atomic built-in functions. If no target is provided, the
  33928. original non-memory model set of '__sync' atomic built-in functions are
  33929. used, along with any required synchronization fences surrounding it in
  33930. order to achieve the proper behavior. Execution in this case is subject
  33931. to the same restrictions as those built-in functions.
  33932. If there is no pattern or mechanism to provide a lock-free instruction
  33933. sequence, a call is made to an external routine with the same parameters
  33934. to be resolved at run time.
  33935. When implementing patterns for these built-in functions, the memory
  33936. order parameter can be ignored as long as the pattern implements the
  33937. most restrictive '__ATOMIC_SEQ_CST' memory order. Any of the other
  33938. memory orders execute correctly with this memory order but they may not
  33939. execute as efficiently as they could with a more appropriate
  33940. implementation of the relaxed requirements.
  33941. Note that the C++11 standard allows for the memory order parameter to
  33942. be determined at run time rather than at compile time. These built-in
  33943. functions map any run-time value to '__ATOMIC_SEQ_CST' rather than
  33944. invoke a runtime library call or inline a switch statement. This is
  33945. standard compliant, safe, and the simplest approach for now.
  33946. The memory order parameter is a signed int, but only the lower 16 bits
  33947. are reserved for the memory order. The remainder of the signed int is
  33948. reserved for target use and should be 0. Use of the predefined atomic
  33949. values ensures proper usage.
  33950. -- Built-in Function: TYPE __atomic_load_n (TYPE *ptr, int memorder)
  33951. This built-in function implements an atomic load operation. It
  33952. returns the contents of '*PTR'.
  33953. The valid memory order variants are '__ATOMIC_RELAXED',
  33954. '__ATOMIC_SEQ_CST', '__ATOMIC_ACQUIRE', and '__ATOMIC_CONSUME'.
  33955. -- Built-in Function: void __atomic_load (TYPE *ptr, TYPE *ret, int
  33956. memorder)
  33957. This is the generic version of an atomic load. It returns the
  33958. contents of '*PTR' in '*RET'.
  33959. -- Built-in Function: void __atomic_store_n (TYPE *ptr, TYPE val, int
  33960. memorder)
  33961. This built-in function implements an atomic store operation. It
  33962. writes 'VAL' into '*PTR'.
  33963. The valid memory order variants are '__ATOMIC_RELAXED',
  33964. '__ATOMIC_SEQ_CST', and '__ATOMIC_RELEASE'.
  33965. -- Built-in Function: void __atomic_store (TYPE *ptr, TYPE *val, int
  33966. memorder)
  33967. This is the generic version of an atomic store. It stores the
  33968. value of '*VAL' into '*PTR'.
  33969. -- Built-in Function: TYPE __atomic_exchange_n (TYPE *ptr, TYPE val,
  33970. int memorder)
  33971. This built-in function implements an atomic exchange operation. It
  33972. writes VAL into '*PTR', and returns the previous contents of
  33973. '*PTR'.
  33974. The valid memory order variants are '__ATOMIC_RELAXED',
  33975. '__ATOMIC_SEQ_CST', '__ATOMIC_ACQUIRE', '__ATOMIC_RELEASE', and
  33976. '__ATOMIC_ACQ_REL'.
  33977. -- Built-in Function: void __atomic_exchange (TYPE *ptr, TYPE *val,
  33978. TYPE *ret, int memorder)
  33979. This is the generic version of an atomic exchange. It stores the
  33980. contents of '*VAL' into '*PTR'. The original value of '*PTR' is
  33981. copied into '*RET'.
  33982. -- Built-in Function: bool __atomic_compare_exchange_n (TYPE *ptr, TYPE
  33983. *expected, TYPE desired, bool weak, int success_memorder, int
  33984. failure_memorder)
  33985. This built-in function implements an atomic compare and exchange
  33986. operation. This compares the contents of '*PTR' with the contents
  33987. of '*EXPECTED'. If equal, the operation is a _read-modify-write_
  33988. operation that writes DESIRED into '*PTR'. If they are not equal,
  33989. the operation is a _read_ and the current contents of '*PTR' are
  33990. written into '*EXPECTED'. WEAK is 'true' for weak
  33991. compare_exchange, which may fail spuriously, and 'false' for the
  33992. strong variation, which never fails spuriously. Many targets only
  33993. offer the strong variation and ignore the parameter. When in
  33994. doubt, use the strong variation.
  33995. If DESIRED is written into '*PTR' then 'true' is returned and
  33996. memory is affected according to the memory order specified by
  33997. SUCCESS_MEMORDER. There are no restrictions on what memory order
  33998. can be used here.
  33999. Otherwise, 'false' is returned and memory is affected according to
  34000. FAILURE_MEMORDER. This memory order cannot be '__ATOMIC_RELEASE'
  34001. nor '__ATOMIC_ACQ_REL'. It also cannot be a stronger order than
  34002. that specified by SUCCESS_MEMORDER.
  34003. -- Built-in Function: bool __atomic_compare_exchange (TYPE *ptr, TYPE
  34004. *expected, TYPE *desired, bool weak, int success_memorder, int
  34005. failure_memorder)
  34006. This built-in function implements the generic version of
  34007. '__atomic_compare_exchange'. The function is virtually identical
  34008. to '__atomic_compare_exchange_n', except the desired value is also
  34009. a pointer.
  34010. -- Built-in Function: TYPE __atomic_add_fetch (TYPE *ptr, TYPE val, int
  34011. memorder)
  34012. -- Built-in Function: TYPE __atomic_sub_fetch (TYPE *ptr, TYPE val, int
  34013. memorder)
  34014. -- Built-in Function: TYPE __atomic_and_fetch (TYPE *ptr, TYPE val, int
  34015. memorder)
  34016. -- Built-in Function: TYPE __atomic_xor_fetch (TYPE *ptr, TYPE val, int
  34017. memorder)
  34018. -- Built-in Function: TYPE __atomic_or_fetch (TYPE *ptr, TYPE val, int
  34019. memorder)
  34020. -- Built-in Function: TYPE __atomic_nand_fetch (TYPE *ptr, TYPE val,
  34021. int memorder)
  34022. These built-in functions perform the operation suggested by the
  34023. name, and return the result of the operation. Operations on
  34024. pointer arguments are performed as if the operands were of the
  34025. 'uintptr_t' type. That is, they are not scaled by the size of the
  34026. type to which the pointer points.
  34027. { *ptr OP= val; return *ptr; }
  34028. { *ptr = ~(*ptr & val); return *ptr; } // nand
  34029. The object pointed to by the first argument must be of integer or
  34030. pointer type. It must not be a boolean type. All memory orders
  34031. are valid.
  34032. -- Built-in Function: TYPE __atomic_fetch_add (TYPE *ptr, TYPE val, int
  34033. memorder)
  34034. -- Built-in Function: TYPE __atomic_fetch_sub (TYPE *ptr, TYPE val, int
  34035. memorder)
  34036. -- Built-in Function: TYPE __atomic_fetch_and (TYPE *ptr, TYPE val, int
  34037. memorder)
  34038. -- Built-in Function: TYPE __atomic_fetch_xor (TYPE *ptr, TYPE val, int
  34039. memorder)
  34040. -- Built-in Function: TYPE __atomic_fetch_or (TYPE *ptr, TYPE val, int
  34041. memorder)
  34042. -- Built-in Function: TYPE __atomic_fetch_nand (TYPE *ptr, TYPE val,
  34043. int memorder)
  34044. These built-in functions perform the operation suggested by the
  34045. name, and return the value that had previously been in '*PTR'.
  34046. Operations on pointer arguments are performed as if the operands
  34047. were of the 'uintptr_t' type. That is, they are not scaled by the
  34048. size of the type to which the pointer points.
  34049. { tmp = *ptr; *ptr OP= val; return tmp; }
  34050. { tmp = *ptr; *ptr = ~(*ptr & val); return tmp; } // nand
  34051. The same constraints on arguments apply as for the corresponding
  34052. '__atomic_op_fetch' built-in functions. All memory orders are
  34053. valid.
  34054. -- Built-in Function: bool __atomic_test_and_set (void *ptr, int
  34055. memorder)
  34056. This built-in function performs an atomic test-and-set operation on
  34057. the byte at '*PTR'. The byte is set to some implementation defined
  34058. nonzero "set" value and the return value is 'true' if and only if
  34059. the previous contents were "set". It should be only used for
  34060. operands of type 'bool' or 'char'. For other types only part of
  34061. the value may be set.
  34062. All memory orders are valid.
  34063. -- Built-in Function: void __atomic_clear (bool *ptr, int memorder)
  34064. This built-in function performs an atomic clear operation on
  34065. '*PTR'. After the operation, '*PTR' contains 0. It should be only
  34066. used for operands of type 'bool' or 'char' and in conjunction with
  34067. '__atomic_test_and_set'. For other types it may only clear
  34068. partially. If the type is not 'bool' prefer using
  34069. '__atomic_store'.
  34070. The valid memory order variants are '__ATOMIC_RELAXED',
  34071. '__ATOMIC_SEQ_CST', and '__ATOMIC_RELEASE'.
  34072. -- Built-in Function: void __atomic_thread_fence (int memorder)
  34073. This built-in function acts as a synchronization fence between
  34074. threads based on the specified memory order.
  34075. All memory orders are valid.
  34076. -- Built-in Function: void __atomic_signal_fence (int memorder)
  34077. This built-in function acts as a synchronization fence between a
  34078. thread and signal handlers based in the same thread.
  34079. All memory orders are valid.
  34080. -- Built-in Function: bool __atomic_always_lock_free (size_t size, void
  34081. *ptr)
  34082. This built-in function returns 'true' if objects of SIZE bytes
  34083. always generate lock-free atomic instructions for the target
  34084. architecture. SIZE must resolve to a compile-time constant and the
  34085. result also resolves to a compile-time constant.
  34086. PTR is an optional pointer to the object that may be used to
  34087. determine alignment. A value of 0 indicates typical alignment
  34088. should be used. The compiler may also ignore this parameter.
  34089. if (__atomic_always_lock_free (sizeof (long long), 0))
  34090. -- Built-in Function: bool __atomic_is_lock_free (size_t size, void
  34091. *ptr)
  34092. This built-in function returns 'true' if objects of SIZE bytes
  34093. always generate lock-free atomic instructions for the target
  34094. architecture. If the built-in function is not known to be
  34095. lock-free, a call is made to a runtime routine named
  34096. '__atomic_is_lock_free'.
  34097. PTR is an optional pointer to the object that may be used to
  34098. determine alignment. A value of 0 indicates typical alignment
  34099. should be used. The compiler may also ignore this parameter.
  34100. 
  34101. File: gcc.info, Node: Integer Overflow Builtins, Next: x86 specific memory model extensions for transactional memory, Prev: __atomic Builtins, Up: C Extensions
  34102. 6.56 Built-in Functions to Perform Arithmetic with Overflow Checking
  34103. ====================================================================
  34104. The following built-in functions allow performing simple arithmetic
  34105. operations together with checking whether the operations overflowed.
  34106. -- Built-in Function: bool __builtin_add_overflow (TYPE1 a, TYPE2 b,
  34107. TYPE3 *res)
  34108. -- Built-in Function: bool __builtin_sadd_overflow (int a, int b, int
  34109. *res)
  34110. -- Built-in Function: bool __builtin_saddl_overflow (long int a, long
  34111. int b, long int *res)
  34112. -- Built-in Function: bool __builtin_saddll_overflow (long long int a,
  34113. long long int b, long long int *res)
  34114. -- Built-in Function: bool __builtin_uadd_overflow (unsigned int a,
  34115. unsigned int b, unsigned int *res)
  34116. -- Built-in Function: bool __builtin_uaddl_overflow (unsigned long int
  34117. a, unsigned long int b, unsigned long int *res)
  34118. -- Built-in Function: bool __builtin_uaddll_overflow (unsigned long
  34119. long int a, unsigned long long int b, unsigned long long int
  34120. *res)
  34121. These built-in functions promote the first two operands into
  34122. infinite precision signed type and perform addition on those
  34123. promoted operands. The result is then cast to the type the third
  34124. pointer argument points to and stored there. If the stored result
  34125. is equal to the infinite precision result, the built-in functions
  34126. return 'false', otherwise they return 'true'. As the addition is
  34127. performed in infinite signed precision, these built-in functions
  34128. have fully defined behavior for all argument values.
  34129. The first built-in function allows arbitrary integral types for
  34130. operands and the result type must be pointer to some integral type
  34131. other than enumerated or boolean type, the rest of the built-in
  34132. functions have explicit integer types.
  34133. The compiler will attempt to use hardware instructions to implement
  34134. these built-in functions where possible, like conditional jump on
  34135. overflow after addition, conditional jump on carry etc.
  34136. -- Built-in Function: bool __builtin_sub_overflow (TYPE1 a, TYPE2 b,
  34137. TYPE3 *res)
  34138. -- Built-in Function: bool __builtin_ssub_overflow (int a, int b, int
  34139. *res)
  34140. -- Built-in Function: bool __builtin_ssubl_overflow (long int a, long
  34141. int b, long int *res)
  34142. -- Built-in Function: bool __builtin_ssubll_overflow (long long int a,
  34143. long long int b, long long int *res)
  34144. -- Built-in Function: bool __builtin_usub_overflow (unsigned int a,
  34145. unsigned int b, unsigned int *res)
  34146. -- Built-in Function: bool __builtin_usubl_overflow (unsigned long int
  34147. a, unsigned long int b, unsigned long int *res)
  34148. -- Built-in Function: bool __builtin_usubll_overflow (unsigned long
  34149. long int a, unsigned long long int b, unsigned long long int
  34150. *res)
  34151. These built-in functions are similar to the add overflow checking
  34152. built-in functions above, except they perform subtraction, subtract
  34153. the second argument from the first one, instead of addition.
  34154. -- Built-in Function: bool __builtin_mul_overflow (TYPE1 a, TYPE2 b,
  34155. TYPE3 *res)
  34156. -- Built-in Function: bool __builtin_smul_overflow (int a, int b, int
  34157. *res)
  34158. -- Built-in Function: bool __builtin_smull_overflow (long int a, long
  34159. int b, long int *res)
  34160. -- Built-in Function: bool __builtin_smulll_overflow (long long int a,
  34161. long long int b, long long int *res)
  34162. -- Built-in Function: bool __builtin_umul_overflow (unsigned int a,
  34163. unsigned int b, unsigned int *res)
  34164. -- Built-in Function: bool __builtin_umull_overflow (unsigned long int
  34165. a, unsigned long int b, unsigned long int *res)
  34166. -- Built-in Function: bool __builtin_umulll_overflow (unsigned long
  34167. long int a, unsigned long long int b, unsigned long long int
  34168. *res)
  34169. These built-in functions are similar to the add overflow checking
  34170. built-in functions above, except they perform multiplication,
  34171. instead of addition.
  34172. The following built-in functions allow checking if simple arithmetic
  34173. operation would overflow.
  34174. -- Built-in Function: bool __builtin_add_overflow_p (TYPE1 a, TYPE2 b,
  34175. TYPE3 c)
  34176. -- Built-in Function: bool __builtin_sub_overflow_p (TYPE1 a, TYPE2 b,
  34177. TYPE3 c)
  34178. -- Built-in Function: bool __builtin_mul_overflow_p (TYPE1 a, TYPE2 b,
  34179. TYPE3 c)
  34180. These built-in functions are similar to '__builtin_add_overflow',
  34181. '__builtin_sub_overflow', or '__builtin_mul_overflow', except that
  34182. they don't store the result of the arithmetic operation anywhere
  34183. and the last argument is not a pointer, but some expression with
  34184. integral type other than enumerated or boolean type.
  34185. The built-in functions promote the first two operands into infinite
  34186. precision signed type and perform addition on those promoted
  34187. operands. The result is then cast to the type of the third
  34188. argument. If the cast result is equal to the infinite precision
  34189. result, the built-in functions return 'false', otherwise they
  34190. return 'true'. The value of the third argument is ignored, just
  34191. the side effects in the third argument are evaluated, and no
  34192. integral argument promotions are performed on the last argument.
  34193. If the third argument is a bit-field, the type used for the result
  34194. cast has the precision and signedness of the given bit-field,
  34195. rather than precision and signedness of the underlying type.
  34196. For example, the following macro can be used to portably check, at
  34197. compile-time, whether or not adding two constant integers will
  34198. overflow, and perform the addition only when it is known to be safe
  34199. and not to trigger a '-Woverflow' warning.
  34200. #define INT_ADD_OVERFLOW_P(a, b) \
  34201. __builtin_add_overflow_p (a, b, (__typeof__ ((a) + (b))) 0)
  34202. enum {
  34203. A = INT_MAX, B = 3,
  34204. C = INT_ADD_OVERFLOW_P (A, B) ? 0 : A + B,
  34205. D = __builtin_add_overflow_p (1, SCHAR_MAX, (signed char) 0)
  34206. };
  34207. The compiler will attempt to use hardware instructions to implement
  34208. these built-in functions where possible, like conditional jump on
  34209. overflow after addition, conditional jump on carry etc.
  34210. 
  34211. File: gcc.info, Node: x86 specific memory model extensions for transactional memory, Next: Object Size Checking, Prev: Integer Overflow Builtins, Up: C Extensions
  34212. 6.57 x86-Specific Memory Model Extensions for Transactional Memory
  34213. ==================================================================
  34214. The x86 architecture supports additional memory ordering flags to mark
  34215. critical sections for hardware lock elision. These must be specified in
  34216. addition to an existing memory order to atomic intrinsics.
  34217. '__ATOMIC_HLE_ACQUIRE'
  34218. Start lock elision on a lock variable. Memory order must be
  34219. '__ATOMIC_ACQUIRE' or stronger.
  34220. '__ATOMIC_HLE_RELEASE'
  34221. End lock elision on a lock variable. Memory order must be
  34222. '__ATOMIC_RELEASE' or stronger.
  34223. When a lock acquire fails, it is required for good performance to abort
  34224. the transaction quickly. This can be done with a '_mm_pause'.
  34225. #include <immintrin.h> // For _mm_pause
  34226. int lockvar;
  34227. /* Acquire lock with lock elision */
  34228. while (__atomic_exchange_n(&lockvar, 1, __ATOMIC_ACQUIRE|__ATOMIC_HLE_ACQUIRE))
  34229. _mm_pause(); /* Abort failed transaction */
  34230. ...
  34231. /* Free lock with lock elision */
  34232. __atomic_store_n(&lockvar, 0, __ATOMIC_RELEASE|__ATOMIC_HLE_RELEASE);
  34233. 
  34234. File: gcc.info, Node: Object Size Checking, Next: Other Builtins, Prev: x86 specific memory model extensions for transactional memory, Up: C Extensions
  34235. 6.58 Object Size Checking Built-in Functions
  34236. ============================================
  34237. GCC implements a limited buffer overflow protection mechanism that can
  34238. prevent some buffer overflow attacks by determining the sizes of objects
  34239. into which data is about to be written and preventing the writes when
  34240. the size isn't sufficient. The built-in functions described below yield
  34241. the best results when used together and when optimization is enabled.
  34242. For example, to detect object sizes across function boundaries or to
  34243. follow pointer assignments through non-trivial control flow they rely on
  34244. various optimization passes enabled with '-O2'. However, to a limited
  34245. extent, they can be used without optimization as well.
  34246. -- Built-in Function: size_t __builtin_object_size (const void * PTR,
  34247. int TYPE)
  34248. is a built-in construct that returns a constant number of bytes
  34249. from PTR to the end of the object PTR pointer points to (if known
  34250. at compile time). To determine the sizes of dynamically allocated
  34251. objects the function relies on the allocation functions called to
  34252. obtain the storage to be declared with the 'alloc_size' attribute
  34253. (*note Common Function Attributes::). '__builtin_object_size'
  34254. never evaluates its arguments for side effects. If there are any
  34255. side effects in them, it returns '(size_t) -1' for TYPE 0 or 1 and
  34256. '(size_t) 0' for TYPE 2 or 3. If there are multiple objects PTR
  34257. can point to and all of them are known at compile time, the
  34258. returned number is the maximum of remaining byte counts in those
  34259. objects if TYPE & 2 is 0 and minimum if nonzero. If it is not
  34260. possible to determine which objects PTR points to at compile time,
  34261. '__builtin_object_size' should return '(size_t) -1' for TYPE 0 or 1
  34262. and '(size_t) 0' for TYPE 2 or 3.
  34263. TYPE is an integer constant from 0 to 3. If the least significant
  34264. bit is clear, objects are whole variables, if it is set, a closest
  34265. surrounding subobject is considered the object a pointer points to.
  34266. The second bit determines if maximum or minimum of remaining bytes
  34267. is computed.
  34268. struct V { char buf1[10]; int b; char buf2[10]; } var;
  34269. char *p = &var.buf1[1], *q = &var.b;
  34270. /* Here the object p points to is var. */
  34271. assert (__builtin_object_size (p, 0) == sizeof (var) - 1);
  34272. /* The subobject p points to is var.buf1. */
  34273. assert (__builtin_object_size (p, 1) == sizeof (var.buf1) - 1);
  34274. /* The object q points to is var. */
  34275. assert (__builtin_object_size (q, 0)
  34276. == (char *) (&var + 1) - (char *) &var.b);
  34277. /* The subobject q points to is var.b. */
  34278. assert (__builtin_object_size (q, 1) == sizeof (var.b));
  34279. There are built-in functions added for many common string operation
  34280. functions, e.g., for 'memcpy' '__builtin___memcpy_chk' built-in is
  34281. provided. This built-in has an additional last argument, which is the
  34282. number of bytes remaining in the object the DEST argument points to or
  34283. '(size_t) -1' if the size is not known.
  34284. The built-in functions are optimized into the normal string functions
  34285. like 'memcpy' if the last argument is '(size_t) -1' or if it is known at
  34286. compile time that the destination object will not be overflowed. If the
  34287. compiler can determine at compile time that the object will always be
  34288. overflowed, it issues a warning.
  34289. The intended use can be e.g.
  34290. #undef memcpy
  34291. #define bos0(dest) __builtin_object_size (dest, 0)
  34292. #define memcpy(dest, src, n) \
  34293. __builtin___memcpy_chk (dest, src, n, bos0 (dest))
  34294. char *volatile p;
  34295. char buf[10];
  34296. /* It is unknown what object p points to, so this is optimized
  34297. into plain memcpy - no checking is possible. */
  34298. memcpy (p, "abcde", n);
  34299. /* Destination is known and length too. It is known at compile
  34300. time there will be no overflow. */
  34301. memcpy (&buf[5], "abcde", 5);
  34302. /* Destination is known, but the length is not known at compile time.
  34303. This will result in __memcpy_chk call that can check for overflow
  34304. at run time. */
  34305. memcpy (&buf[5], "abcde", n);
  34306. /* Destination is known and it is known at compile time there will
  34307. be overflow. There will be a warning and __memcpy_chk call that
  34308. will abort the program at run time. */
  34309. memcpy (&buf[6], "abcde", 5);
  34310. Such built-in functions are provided for 'memcpy', 'mempcpy',
  34311. 'memmove', 'memset', 'strcpy', 'stpcpy', 'strncpy', 'strcat' and
  34312. 'strncat'.
  34313. There are also checking built-in functions for formatted output
  34314. functions.
  34315. int __builtin___sprintf_chk (char *s, int flag, size_t os, const char *fmt, ...);
  34316. int __builtin___snprintf_chk (char *s, size_t maxlen, int flag, size_t os,
  34317. const char *fmt, ...);
  34318. int __builtin___vsprintf_chk (char *s, int flag, size_t os, const char *fmt,
  34319. va_list ap);
  34320. int __builtin___vsnprintf_chk (char *s, size_t maxlen, int flag, size_t os,
  34321. const char *fmt, va_list ap);
  34322. The added FLAG argument is passed unchanged to '__sprintf_chk' etc.
  34323. functions and can contain implementation specific flags on what
  34324. additional security measures the checking function might take, such as
  34325. handling '%n' differently.
  34326. The OS argument is the object size S points to, like in the other
  34327. built-in functions. There is a small difference in the behavior though,
  34328. if OS is '(size_t) -1', the built-in functions are optimized into the
  34329. non-checking functions only if FLAG is 0, otherwise the checking
  34330. function is called with OS argument set to '(size_t) -1'.
  34331. In addition to this, there are checking built-in functions
  34332. '__builtin___printf_chk', '__builtin___vprintf_chk',
  34333. '__builtin___fprintf_chk' and '__builtin___vfprintf_chk'. These have
  34334. just one additional argument, FLAG, right before format string FMT. If
  34335. the compiler is able to optimize them to 'fputc' etc. functions, it
  34336. does, otherwise the checking function is called and the FLAG argument
  34337. passed to it.
  34338. 
  34339. File: gcc.info, Node: Other Builtins, Next: Target Builtins, Prev: Object Size Checking, Up: C Extensions
  34340. 6.59 Other Built-in Functions Provided by GCC
  34341. =============================================
  34342. GCC provides a large number of built-in functions other than the ones
  34343. mentioned above. Some of these are for internal use in the processing
  34344. of exceptions or variable-length argument lists and are not documented
  34345. here because they may change from time to time; we do not recommend
  34346. general use of these functions.
  34347. The remaining functions are provided for optimization purposes.
  34348. With the exception of built-ins that have library equivalents such as
  34349. the standard C library functions discussed below, or that expand to
  34350. library calls, GCC built-in functions are always expanded inline and
  34351. thus do not have corresponding entry points and their address cannot be
  34352. obtained. Attempting to use them in an expression other than a function
  34353. call results in a compile-time error.
  34354. GCC includes built-in versions of many of the functions in the standard
  34355. C library. These functions come in two forms: one whose names start
  34356. with the '__builtin_' prefix, and the other without. Both forms have
  34357. the same type (including prototype), the same address (when their
  34358. address is taken), and the same meaning as the C library functions even
  34359. if you specify the '-fno-builtin' option *note C Dialect Options::).
  34360. Many of these functions are only optimized in certain cases; if they are
  34361. not optimized in a particular case, a call to the library function is
  34362. emitted.
  34363. Outside strict ISO C mode ('-ansi', '-std=c90', '-std=c99' or
  34364. '-std=c11'), the functions '_exit', 'alloca', 'bcmp', 'bzero',
  34365. 'dcgettext', 'dgettext', 'dremf', 'dreml', 'drem', 'exp10f', 'exp10l',
  34366. 'exp10', 'ffsll', 'ffsl', 'ffs', 'fprintf_unlocked', 'fputs_unlocked',
  34367. 'gammaf', 'gammal', 'gamma', 'gammaf_r', 'gammal_r', 'gamma_r',
  34368. 'gettext', 'index', 'isascii', 'j0f', 'j0l', 'j0', 'j1f', 'j1l', 'j1',
  34369. 'jnf', 'jnl', 'jn', 'lgammaf_r', 'lgammal_r', 'lgamma_r', 'mempcpy',
  34370. 'pow10f', 'pow10l', 'pow10', 'printf_unlocked', 'rindex', 'roundeven',
  34371. 'roundevenf', 'roudnevenl', 'scalbf', 'scalbl', 'scalb', 'signbit',
  34372. 'signbitf', 'signbitl', 'signbitd32', 'signbitd64', 'signbitd128',
  34373. 'significandf', 'significandl', 'significand', 'sincosf', 'sincosl',
  34374. 'sincos', 'stpcpy', 'stpncpy', 'strcasecmp', 'strdup', 'strfmon',
  34375. 'strncasecmp', 'strndup', 'strnlen', 'toascii', 'y0f', 'y0l', 'y0',
  34376. 'y1f', 'y1l', 'y1', 'ynf', 'ynl' and 'yn' may be handled as built-in
  34377. functions. All these functions have corresponding versions prefixed
  34378. with '__builtin_', which may be used even in strict C90 mode.
  34379. The ISO C99 functions '_Exit', 'acoshf', 'acoshl', 'acosh', 'asinhf',
  34380. 'asinhl', 'asinh', 'atanhf', 'atanhl', 'atanh', 'cabsf', 'cabsl',
  34381. 'cabs', 'cacosf', 'cacoshf', 'cacoshl', 'cacosh', 'cacosl', 'cacos',
  34382. 'cargf', 'cargl', 'carg', 'casinf', 'casinhf', 'casinhl', 'casinh',
  34383. 'casinl', 'casin', 'catanf', 'catanhf', 'catanhl', 'catanh', 'catanl',
  34384. 'catan', 'cbrtf', 'cbrtl', 'cbrt', 'ccosf', 'ccoshf', 'ccoshl', 'ccosh',
  34385. 'ccosl', 'ccos', 'cexpf', 'cexpl', 'cexp', 'cimagf', 'cimagl', 'cimag',
  34386. 'clogf', 'clogl', 'clog', 'conjf', 'conjl', 'conj', 'copysignf',
  34387. 'copysignl', 'copysign', 'cpowf', 'cpowl', 'cpow', 'cprojf', 'cprojl',
  34388. 'cproj', 'crealf', 'creall', 'creal', 'csinf', 'csinhf', 'csinhl',
  34389. 'csinh', 'csinl', 'csin', 'csqrtf', 'csqrtl', 'csqrt', 'ctanf',
  34390. 'ctanhf', 'ctanhl', 'ctanh', 'ctanl', 'ctan', 'erfcf', 'erfcl', 'erfc',
  34391. 'erff', 'erfl', 'erf', 'exp2f', 'exp2l', 'exp2', 'expm1f', 'expm1l',
  34392. 'expm1', 'fdimf', 'fdiml', 'fdim', 'fmaf', 'fmal', 'fmaxf', 'fmaxl',
  34393. 'fmax', 'fma', 'fminf', 'fminl', 'fmin', 'hypotf', 'hypotl', 'hypot',
  34394. 'ilogbf', 'ilogbl', 'ilogb', 'imaxabs', 'isblank', 'iswblank',
  34395. 'lgammaf', 'lgammal', 'lgamma', 'llabs', 'llrintf', 'llrintl', 'llrint',
  34396. 'llroundf', 'llroundl', 'llround', 'log1pf', 'log1pl', 'log1p', 'log2f',
  34397. 'log2l', 'log2', 'logbf', 'logbl', 'logb', 'lrintf', 'lrintl', 'lrint',
  34398. 'lroundf', 'lroundl', 'lround', 'nearbyintf', 'nearbyintl', 'nearbyint',
  34399. 'nextafterf', 'nextafterl', 'nextafter', 'nexttowardf', 'nexttowardl',
  34400. 'nexttoward', 'remainderf', 'remainderl', 'remainder', 'remquof',
  34401. 'remquol', 'remquo', 'rintf', 'rintl', 'rint', 'roundf', 'roundl',
  34402. 'round', 'scalblnf', 'scalblnl', 'scalbln', 'scalbnf', 'scalbnl',
  34403. 'scalbn', 'snprintf', 'tgammaf', 'tgammal', 'tgamma', 'truncf',
  34404. 'truncl', 'trunc', 'vfscanf', 'vscanf', 'vsnprintf' and 'vsscanf' are
  34405. handled as built-in functions except in strict ISO C90 mode ('-ansi' or
  34406. '-std=c90').
  34407. There are also built-in versions of the ISO C99 functions 'acosf',
  34408. 'acosl', 'asinf', 'asinl', 'atan2f', 'atan2l', 'atanf', 'atanl',
  34409. 'ceilf', 'ceill', 'cosf', 'coshf', 'coshl', 'cosl', 'expf', 'expl',
  34410. 'fabsf', 'fabsl', 'floorf', 'floorl', 'fmodf', 'fmodl', 'frexpf',
  34411. 'frexpl', 'ldexpf', 'ldexpl', 'log10f', 'log10l', 'logf', 'logl',
  34412. 'modfl', 'modf', 'powf', 'powl', 'sinf', 'sinhf', 'sinhl', 'sinl',
  34413. 'sqrtf', 'sqrtl', 'tanf', 'tanhf', 'tanhl' and 'tanl' that are
  34414. recognized in any mode since ISO C90 reserves these names for the
  34415. purpose to which ISO C99 puts them. All these functions have
  34416. corresponding versions prefixed with '__builtin_'.
  34417. There are also built-in functions '__builtin_fabsfN',
  34418. '__builtin_fabsfNx', '__builtin_copysignfN' and '__builtin_copysignfNx',
  34419. corresponding to the TS 18661-3 functions 'fabsfN', 'fabsfNx',
  34420. 'copysignfN' and 'copysignfNx', for supported types '_FloatN' and
  34421. '_FloatNx'.
  34422. There are also GNU extension functions 'clog10', 'clog10f' and
  34423. 'clog10l' which names are reserved by ISO C99 for future use. All these
  34424. functions have versions prefixed with '__builtin_'.
  34425. The ISO C94 functions 'iswalnum', 'iswalpha', 'iswcntrl', 'iswdigit',
  34426. 'iswgraph', 'iswlower', 'iswprint', 'iswpunct', 'iswspace', 'iswupper',
  34427. 'iswxdigit', 'towlower' and 'towupper' are handled as built-in functions
  34428. except in strict ISO C90 mode ('-ansi' or '-std=c90').
  34429. The ISO C90 functions 'abort', 'abs', 'acos', 'asin', 'atan2', 'atan',
  34430. 'calloc', 'ceil', 'cosh', 'cos', 'exit', 'exp', 'fabs', 'floor', 'fmod',
  34431. 'fprintf', 'fputs', 'free', 'frexp', 'fscanf', 'isalnum', 'isalpha',
  34432. 'iscntrl', 'isdigit', 'isgraph', 'islower', 'isprint', 'ispunct',
  34433. 'isspace', 'isupper', 'isxdigit', 'tolower', 'toupper', 'labs', 'ldexp',
  34434. 'log10', 'log', 'malloc', 'memchr', 'memcmp', 'memcpy', 'memset',
  34435. 'modf', 'pow', 'printf', 'putchar', 'puts', 'realloc', 'scanf', 'sinh',
  34436. 'sin', 'snprintf', 'sprintf', 'sqrt', 'sscanf', 'strcat', 'strchr',
  34437. 'strcmp', 'strcpy', 'strcspn', 'strlen', 'strncat', 'strncmp',
  34438. 'strncpy', 'strpbrk', 'strrchr', 'strspn', 'strstr', 'tanh', 'tan',
  34439. 'vfprintf', 'vprintf' and 'vsprintf' are all recognized as built-in
  34440. functions unless '-fno-builtin' is specified (or '-fno-builtin-FUNCTION'
  34441. is specified for an individual function). All of these functions have
  34442. corresponding versions prefixed with '__builtin_'.
  34443. GCC provides built-in versions of the ISO C99 floating-point comparison
  34444. macros that avoid raising exceptions for unordered operands. They have
  34445. the same names as the standard macros ( 'isgreater', 'isgreaterequal',
  34446. 'isless', 'islessequal', 'islessgreater', and 'isunordered') , with
  34447. '__builtin_' prefixed. We intend for a library implementor to be able
  34448. to simply '#define' each standard macro to its built-in equivalent. In
  34449. the same fashion, GCC provides 'fpclassify', 'isfinite', 'isinf_sign',
  34450. 'isnormal' and 'signbit' built-ins used with '__builtin_' prefixed. The
  34451. 'isinf' and 'isnan' built-in functions appear both with and without the
  34452. '__builtin_' prefix.
  34453. -- Built-in Function: void *__builtin_alloca (size_t size)
  34454. The '__builtin_alloca' function must be called at block scope. The
  34455. function allocates an object SIZE bytes large on the stack of the
  34456. calling function. The object is aligned on the default stack
  34457. alignment boundary for the target determined by the
  34458. '__BIGGEST_ALIGNMENT__' macro. The '__builtin_alloca' function
  34459. returns a pointer to the first byte of the allocated object. The
  34460. lifetime of the allocated object ends just before the calling
  34461. function returns to its caller. This is so even when
  34462. '__builtin_alloca' is called within a nested block.
  34463. For example, the following function allocates eight objects of 'n'
  34464. bytes each on the stack, storing a pointer to each in consecutive
  34465. elements of the array 'a'. It then passes the array to function
  34466. 'g' which can safely use the storage pointed to by each of the
  34467. array elements.
  34468. void f (unsigned n)
  34469. {
  34470. void *a [8];
  34471. for (int i = 0; i != 8; ++i)
  34472. a [i] = __builtin_alloca (n);
  34473. g (a, n); // safe
  34474. }
  34475. Since the '__builtin_alloca' function doesn't validate its argument
  34476. it is the responsibility of its caller to make sure the argument
  34477. doesn't cause it to exceed the stack size limit. The
  34478. '__builtin_alloca' function is provided to make it possible to
  34479. allocate on the stack arrays of bytes with an upper bound that may
  34480. be computed at run time. Since C99 Variable Length Arrays offer
  34481. similar functionality under a portable, more convenient, and safer
  34482. interface they are recommended instead, in both C99 and C++
  34483. programs where GCC provides them as an extension. *Note Variable
  34484. Length::, for details.
  34485. -- Built-in Function: void *__builtin_alloca_with_align (size_t size,
  34486. size_t alignment)
  34487. The '__builtin_alloca_with_align' function must be called at block
  34488. scope. The function allocates an object SIZE bytes large on the
  34489. stack of the calling function. The allocated object is aligned on
  34490. the boundary specified by the argument ALIGNMENT whose unit is
  34491. given in bits (not bytes). The SIZE argument must be positive and
  34492. not exceed the stack size limit. The ALIGNMENT argument must be a
  34493. constant integer expression that evaluates to a power of 2 greater
  34494. than or equal to 'CHAR_BIT' and less than some unspecified maximum.
  34495. Invocations with other values are rejected with an error indicating
  34496. the valid bounds. The function returns a pointer to the first byte
  34497. of the allocated object. The lifetime of the allocated object ends
  34498. at the end of the block in which the function was called. The
  34499. allocated storage is released no later than just before the calling
  34500. function returns to its caller, but may be released at the end of
  34501. the block in which the function was called.
  34502. For example, in the following function the call to 'g' is unsafe
  34503. because when 'overalign' is non-zero, the space allocated by
  34504. '__builtin_alloca_with_align' may have been released at the end of
  34505. the 'if' statement in which it was called.
  34506. void f (unsigned n, bool overalign)
  34507. {
  34508. void *p;
  34509. if (overalign)
  34510. p = __builtin_alloca_with_align (n, 64 /* bits */);
  34511. else
  34512. p = __builtin_alloc (n);
  34513. g (p, n); // unsafe
  34514. }
  34515. Since the '__builtin_alloca_with_align' function doesn't validate
  34516. its SIZE argument it is the responsibility of its caller to make
  34517. sure the argument doesn't cause it to exceed the stack size limit.
  34518. The '__builtin_alloca_with_align' function is provided to make it
  34519. possible to allocate on the stack overaligned arrays of bytes with
  34520. an upper bound that may be computed at run time. Since C99
  34521. Variable Length Arrays offer the same functionality under a
  34522. portable, more convenient, and safer interface they are recommended
  34523. instead, in both C99 and C++ programs where GCC provides them as an
  34524. extension. *Note Variable Length::, for details.
  34525. -- Built-in Function: void *__builtin_alloca_with_align_and_max (size_t
  34526. size, size_t alignment, size_t max_size)
  34527. Similar to '__builtin_alloca_with_align' but takes an extra
  34528. argument specifying an upper bound for SIZE in case its value
  34529. cannot be computed at compile time, for use by '-fstack-usage',
  34530. '-Wstack-usage' and '-Walloca-larger-than'. MAX_SIZE must be a
  34531. constant integer expression, it has no effect on code generation
  34532. and no attempt is made to check its compatibility with SIZE.
  34533. -- Built-in Function: bool __builtin_has_attribute (TYPE-OR-EXPRESSION,
  34534. ATTRIBUTE)
  34535. The '__builtin_has_attribute' function evaluates to an integer
  34536. constant expression equal to 'true' if the symbol or type
  34537. referenced by the TYPE-OR-EXPRESSION argument has been declared
  34538. with the ATTRIBUTE referenced by the second argument. For an
  34539. TYPE-OR-EXPRESSION argument that does not reference a symbol, since
  34540. attributes do not apply to expressions the built-in consider the
  34541. type of the argument. Neither argument is evaluated. The
  34542. TYPE-OR-EXPRESSION argument is subject to the same restrictions as
  34543. the argument to 'typeof' (*note Typeof::). The ATTRIBUTE argument
  34544. is an attribute name optionally followed by a comma-separated list
  34545. of arguments enclosed in parentheses. Both forms of attribute
  34546. names--with and without double leading and trailing
  34547. underscores--are recognized. *Note Attribute Syntax::, for
  34548. details. When no attribute arguments are specified for an
  34549. attribute that expects one or more arguments the function returns
  34550. 'true' if TYPE-OR-EXPRESSION has been declared with the attribute
  34551. regardless of the attribute argument values. Arguments provided
  34552. for an attribute that expects some are validated and matched up to
  34553. the provided number. The function returns 'true' if all provided
  34554. arguments match. For example, the first call to the function below
  34555. evaluates to 'true' because 'x' is declared with the 'aligned'
  34556. attribute but the second call evaluates to 'false' because 'x' is
  34557. declared 'aligned (8)' and not 'aligned (4)'.
  34558. __attribute__ ((aligned (8))) int x;
  34559. _Static_assert (__builtin_has_attribute (x, aligned), "aligned");
  34560. _Static_assert (!__builtin_has_attribute (x, aligned (4)), "aligned (4)");
  34561. Due to a limitation the '__builtin_has_attribute' function returns
  34562. 'false' for the 'mode' attribute even if the type or variable
  34563. referenced by the TYPE-OR-EXPRESSION argument was declared with
  34564. one. The function is also not supported with labels, and in C with
  34565. enumerators.
  34566. Note that unlike the '__has_attribute' preprocessor operator which
  34567. is suitable for use in '#if' preprocessing directives
  34568. '__builtin_has_attribute' is an intrinsic function that is not
  34569. recognized in such contexts.
  34570. -- Built-in Function: TYPE __builtin_speculation_safe_value (TYPE val,
  34571. TYPE failval)
  34572. This built-in function can be used to help mitigate against unsafe
  34573. speculative execution. TYPE may be any integral type or any
  34574. pointer type.
  34575. 1. If the CPU is not speculatively executing the code, then VAL
  34576. is returned.
  34577. 2. If the CPU is executing speculatively then either:
  34578. * The function may cause execution to pause until it is
  34579. known that the code is no-longer being executed
  34580. speculatively (in which case VAL can be returned, as
  34581. above); or
  34582. * The function may use target-dependent speculation
  34583. tracking state to cause FAILVAL to be returned when it is
  34584. known that speculative execution has incorrectly
  34585. predicted a conditional branch operation.
  34586. The second argument, FAILVAL, is optional and defaults to zero if
  34587. omitted.
  34588. GCC defines the preprocessor macro
  34589. '__HAVE_BUILTIN_SPECULATION_SAFE_VALUE' for targets that have been
  34590. updated to support this builtin.
  34591. The built-in function can be used where a variable appears to be
  34592. used in a safe way, but the CPU, due to speculative execution may
  34593. temporarily ignore the bounds checks. Consider, for example, the
  34594. following function:
  34595. int array[500];
  34596. int f (unsigned untrusted_index)
  34597. {
  34598. if (untrusted_index < 500)
  34599. return array[untrusted_index];
  34600. return 0;
  34601. }
  34602. If the function is called repeatedly with 'untrusted_index' less
  34603. than the limit of 500, then a branch predictor will learn that the
  34604. block of code that returns a value stored in 'array' will be
  34605. executed. If the function is subsequently called with an
  34606. out-of-range value it will still try to execute that block of code
  34607. first until the CPU determines that the prediction was incorrect
  34608. (the CPU will unwind any incorrect operations at that point).
  34609. However, depending on how the result of the function is used, it
  34610. might be possible to leave traces in the cache that can reveal what
  34611. was stored at the out-of-bounds location. The built-in function
  34612. can be used to provide some protection against leaking data in this
  34613. way by changing the code to:
  34614. int array[500];
  34615. int f (unsigned untrusted_index)
  34616. {
  34617. if (untrusted_index < 500)
  34618. return array[__builtin_speculation_safe_value (untrusted_index)];
  34619. return 0;
  34620. }
  34621. The built-in function will either cause execution to stall until
  34622. the conditional branch has been fully resolved, or it may permit
  34623. speculative execution to continue, but using 0 instead of
  34624. 'untrusted_value' if that exceeds the limit.
  34625. If accessing any memory location is potentially unsafe when
  34626. speculative execution is incorrect, then the code can be rewritten
  34627. as
  34628. int array[500];
  34629. int f (unsigned untrusted_index)
  34630. {
  34631. if (untrusted_index < 500)
  34632. return *__builtin_speculation_safe_value (&array[untrusted_index], NULL);
  34633. return 0;
  34634. }
  34635. which will cause a 'NULL' pointer to be used for the unsafe case.
  34636. -- Built-in Function: int __builtin_types_compatible_p (TYPE1, TYPE2)
  34637. You can use the built-in function '__builtin_types_compatible_p' to
  34638. determine whether two types are the same.
  34639. This built-in function returns 1 if the unqualified versions of the
  34640. types TYPE1 and TYPE2 (which are types, not expressions) are
  34641. compatible, 0 otherwise. The result of this built-in function can
  34642. be used in integer constant expressions.
  34643. This built-in function ignores top level qualifiers (e.g., 'const',
  34644. 'volatile'). For example, 'int' is equivalent to 'const int'.
  34645. The type 'int[]' and 'int[5]' are compatible. On the other hand,
  34646. 'int' and 'char *' are not compatible, even if the size of their
  34647. types, on the particular architecture are the same. Also, the
  34648. amount of pointer indirection is taken into account when
  34649. determining similarity. Consequently, 'short *' is not similar to
  34650. 'short **'. Furthermore, two types that are typedefed are
  34651. considered compatible if their underlying types are compatible.
  34652. An 'enum' type is not considered to be compatible with another
  34653. 'enum' type even if both are compatible with the same integer type;
  34654. this is what the C standard specifies. For example, 'enum {foo,
  34655. bar}' is not similar to 'enum {hot, dog}'.
  34656. You typically use this function in code whose execution varies
  34657. depending on the arguments' types. For example:
  34658. #define foo(x) \
  34659. ({ \
  34660. typeof (x) tmp = (x); \
  34661. if (__builtin_types_compatible_p (typeof (x), long double)) \
  34662. tmp = foo_long_double (tmp); \
  34663. else if (__builtin_types_compatible_p (typeof (x), double)) \
  34664. tmp = foo_double (tmp); \
  34665. else if (__builtin_types_compatible_p (typeof (x), float)) \
  34666. tmp = foo_float (tmp); \
  34667. else \
  34668. abort (); \
  34669. tmp; \
  34670. })
  34671. _Note:_ This construct is only available for C.
  34672. -- Built-in Function: TYPE __builtin_call_with_static_chain (CALL_EXP,
  34673. POINTER_EXP)
  34674. The CALL_EXP expression must be a function call, and the
  34675. POINTER_EXP expression must be a pointer. The POINTER_EXP is
  34676. passed to the function call in the target's static chain location.
  34677. The result of builtin is the result of the function call.
  34678. _Note:_ This builtin is only available for C. This builtin can be
  34679. used to call Go closures from C.
  34680. -- Built-in Function: TYPE __builtin_choose_expr (CONST_EXP, EXP1,
  34681. EXP2)
  34682. You can use the built-in function '__builtin_choose_expr' to
  34683. evaluate code depending on the value of a constant expression.
  34684. This built-in function returns EXP1 if CONST_EXP, which is an
  34685. integer constant expression, is nonzero. Otherwise it returns
  34686. EXP2.
  34687. This built-in function is analogous to the '? :' operator in C,
  34688. except that the expression returned has its type unaltered by
  34689. promotion rules. Also, the built-in function does not evaluate the
  34690. expression that is not chosen. For example, if CONST_EXP evaluates
  34691. to 'true', EXP2 is not evaluated even if it has side effects.
  34692. This built-in function can return an lvalue if the chosen argument
  34693. is an lvalue.
  34694. If EXP1 is returned, the return type is the same as EXP1's type.
  34695. Similarly, if EXP2 is returned, its return type is the same as
  34696. EXP2.
  34697. Example:
  34698. #define foo(x) \
  34699. __builtin_choose_expr ( \
  34700. __builtin_types_compatible_p (typeof (x), double), \
  34701. foo_double (x), \
  34702. __builtin_choose_expr ( \
  34703. __builtin_types_compatible_p (typeof (x), float), \
  34704. foo_float (x), \
  34705. /* The void expression results in a compile-time error \
  34706. when assigning the result to something. */ \
  34707. (void)0))
  34708. _Note:_ This construct is only available for C. Furthermore, the
  34709. unused expression (EXP1 or EXP2 depending on the value of
  34710. CONST_EXP) may still generate syntax errors. This may change in
  34711. future revisions.
  34712. -- Built-in Function: TYPE __builtin_tgmath (FUNCTIONS, ARGUMENTS)
  34713. The built-in function '__builtin_tgmath', available only for C and
  34714. Objective-C, calls a function determined according to the rules of
  34715. '<tgmath.h>' macros. It is intended to be used in implementations
  34716. of that header, so that expansions of macros from that header only
  34717. expand each of their arguments once, to avoid problems when calls
  34718. to such macros are nested inside the arguments of other calls to
  34719. such macros; in addition, it results in better diagnostics for
  34720. invalid calls to '<tgmath.h>' macros than implementations using
  34721. other GNU C language features. For example, the 'pow' type-generic
  34722. macro might be defined as:
  34723. #define pow(a, b) __builtin_tgmath (powf, pow, powl, \
  34724. cpowf, cpow, cpowl, a, b)
  34725. The arguments to '__builtin_tgmath' are at least two pointers to
  34726. functions, followed by the arguments to the type-generic macro
  34727. (which will be passed as arguments to the selected function). All
  34728. the pointers to functions must be pointers to prototyped functions,
  34729. none of which may have variable arguments, and all of which must
  34730. have the same number of parameters; the number of parameters of the
  34731. first function determines how many arguments to '__builtin_tgmath'
  34732. are interpreted as function pointers, and how many as the arguments
  34733. to the called function.
  34734. The types of the specified functions must all be different, but
  34735. related to each other in the same way as a set of functions that
  34736. may be selected between by a macro in '<tgmath.h>'. This means
  34737. that the functions are parameterized by a floating-point type T,
  34738. different for each such function. The function return types may
  34739. all be the same type, or they may be T for each function, or they
  34740. may be the real type corresponding to T for each function (if some
  34741. of the types T are complex). Likewise, for each parameter
  34742. position, the type of the parameter in that position may always be
  34743. the same type, or may be T for each function (this case must apply
  34744. for at least one parameter position), or may be the real type
  34745. corresponding to T for each function.
  34746. The standard rules for '<tgmath.h>' macros are used to find a
  34747. common type U from the types of the arguments for parameters whose
  34748. types vary between the functions; complex integer types (a GNU
  34749. extension) are treated like '_Complex double' for this purpose (or
  34750. '_Complex _Float64' if all the function return types are the same
  34751. '_FloatN' or '_FloatNx' type). If the function return types vary,
  34752. or are all the same integer type, the function called is the one
  34753. for which T is U, and it is an error if there is no such function.
  34754. If the function return types are all the same floating-point type,
  34755. the type-generic macro is taken to be one of those from TS 18661
  34756. that rounds the result to a narrower type; if there is a function
  34757. for which T is U, it is called, and otherwise the first function,
  34758. if any, for which T has at least the range and precision of U is
  34759. called, and it is an error if there is no such function.
  34760. -- Built-in Function: TYPE __builtin_complex (REAL, IMAG)
  34761. The built-in function '__builtin_complex' is provided for use in
  34762. implementing the ISO C11 macros 'CMPLXF', 'CMPLX' and 'CMPLXL'.
  34763. REAL and IMAG must have the same type, a real binary floating-point
  34764. type, and the result has the corresponding complex type with real
  34765. and imaginary parts REAL and IMAG. Unlike 'REAL + I * IMAG', this
  34766. works even when infinities, NaNs and negative zeros are involved.
  34767. -- Built-in Function: int __builtin_constant_p (EXP)
  34768. You can use the built-in function '__builtin_constant_p' to
  34769. determine if a value is known to be constant at compile time and
  34770. hence that GCC can perform constant-folding on expressions
  34771. involving that value. The argument of the function is the value to
  34772. test. The function returns the integer 1 if the argument is known
  34773. to be a compile-time constant and 0 if it is not known to be a
  34774. compile-time constant. A return of 0 does not indicate that the
  34775. value is _not_ a constant, but merely that GCC cannot prove it is a
  34776. constant with the specified value of the '-O' option.
  34777. You typically use this function in an embedded application where
  34778. memory is a critical resource. If you have some complex
  34779. calculation, you may want it to be folded if it involves constants,
  34780. but need to call a function if it does not. For example:
  34781. #define Scale_Value(X) \
  34782. (__builtin_constant_p (X) \
  34783. ? ((X) * SCALE + OFFSET) : Scale (X))
  34784. You may use this built-in function in either a macro or an inline
  34785. function. However, if you use it in an inlined function and pass
  34786. an argument of the function as the argument to the built-in, GCC
  34787. never returns 1 when you call the inline function with a string
  34788. constant or compound literal (*note Compound Literals::) and does
  34789. not return 1 when you pass a constant numeric value to the inline
  34790. function unless you specify the '-O' option.
  34791. You may also use '__builtin_constant_p' in initializers for static
  34792. data. For instance, you can write
  34793. static const int table[] = {
  34794. __builtin_constant_p (EXPRESSION) ? (EXPRESSION) : -1,
  34795. /* ... */
  34796. };
  34797. This is an acceptable initializer even if EXPRESSION is not a
  34798. constant expression, including the case where
  34799. '__builtin_constant_p' returns 1 because EXPRESSION can be folded
  34800. to a constant but EXPRESSION contains operands that are not
  34801. otherwise permitted in a static initializer (for example, '0 && foo
  34802. ()'). GCC must be more conservative about evaluating the built-in
  34803. in this case, because it has no opportunity to perform
  34804. optimization.
  34805. -- Built-in Function: bool __builtin_is_constant_evaluated (void)
  34806. The '__builtin_is_constant_evaluated' function is available only in
  34807. C++. The built-in is intended to be used by implementations of the
  34808. 'std::is_constant_evaluated' C++ function. Programs should make
  34809. use of the latter function rather than invoking the built-in
  34810. directly.
  34811. The main use case of the built-in is to determine whether a
  34812. 'constexpr' function is being called in a 'constexpr' context. A
  34813. call to the function evaluates to a core constant expression with
  34814. the value 'true' if and only if it occurs within the evaluation of
  34815. an expression or conversion that is manifestly constant-evaluated
  34816. as defined in the C++ standard. Manifestly constant-evaluated
  34817. contexts include constant-expressions, the conditions of 'constexpr
  34818. if' statements, constraint-expressions, and initializers of
  34819. variables usable in constant expressions. For more details refer
  34820. to the latest revision of the C++ standard.
  34821. -- Built-in Function: long __builtin_expect (long EXP, long C)
  34822. You may use '__builtin_expect' to provide the compiler with branch
  34823. prediction information. In general, you should prefer to use
  34824. actual profile feedback for this ('-fprofile-arcs'), as programmers
  34825. are notoriously bad at predicting how their programs actually
  34826. perform. However, there are applications in which this data is
  34827. hard to collect.
  34828. The return value is the value of EXP, which should be an integral
  34829. expression. The semantics of the built-in are that it is expected
  34830. that EXP == C. For example:
  34831. if (__builtin_expect (x, 0))
  34832. foo ();
  34833. indicates that we do not expect to call 'foo', since we expect 'x'
  34834. to be zero. Since you are limited to integral expressions for EXP,
  34835. you should use constructions such as
  34836. if (__builtin_expect (ptr != NULL, 1))
  34837. foo (*ptr);
  34838. when testing pointer or floating-point values.
  34839. For the purposes of branch prediction optimizations, the
  34840. probability that a '__builtin_expect' expression is 'true' is
  34841. controlled by GCC's 'builtin-expect-probability' parameter, which
  34842. defaults to 90%.
  34843. You can also use '__builtin_expect_with_probability' to explicitly
  34844. assign a probability value to individual expressions. If the
  34845. built-in is used in a loop construct, the provided probability will
  34846. influence the expected number of iterations made by loop
  34847. optimizations.
  34848. -- Built-in Function: long __builtin_expect_with_probability
  34849. (long EXP, long C, double PROBABILITY)
  34850. This function has the same semantics as '__builtin_expect', but the
  34851. caller provides the expected probability that EXP == C. The last
  34852. argument, PROBABILITY, is a floating-point value in the range 0.0
  34853. to 1.0, inclusive. The PROBABILITY argument must be constant
  34854. floating-point expression.
  34855. -- Built-in Function: void __builtin_trap (void)
  34856. This function causes the program to exit abnormally. GCC
  34857. implements this function by using a target-dependent mechanism
  34858. (such as intentionally executing an illegal instruction) or by
  34859. calling 'abort'. The mechanism used may vary from release to
  34860. release so you should not rely on any particular implementation.
  34861. -- Built-in Function: void __builtin_unreachable (void)
  34862. If control flow reaches the point of the '__builtin_unreachable',
  34863. the program is undefined. It is useful in situations where the
  34864. compiler cannot deduce the unreachability of the code.
  34865. One such case is immediately following an 'asm' statement that
  34866. either never terminates, or one that transfers control elsewhere
  34867. and never returns. In this example, without the
  34868. '__builtin_unreachable', GCC issues a warning that control reaches
  34869. the end of a non-void function. It also generates code to return
  34870. after the 'asm'.
  34871. int f (int c, int v)
  34872. {
  34873. if (c)
  34874. {
  34875. return v;
  34876. }
  34877. else
  34878. {
  34879. asm("jmp error_handler");
  34880. __builtin_unreachable ();
  34881. }
  34882. }
  34883. Because the 'asm' statement unconditionally transfers control out
  34884. of the function, control never reaches the end of the function
  34885. body. The '__builtin_unreachable' is in fact unreachable and
  34886. communicates this fact to the compiler.
  34887. Another use for '__builtin_unreachable' is following a call a
  34888. function that never returns but that is not declared
  34889. '__attribute__((noreturn))', as in this example:
  34890. void function_that_never_returns (void);
  34891. int g (int c)
  34892. {
  34893. if (c)
  34894. {
  34895. return 1;
  34896. }
  34897. else
  34898. {
  34899. function_that_never_returns ();
  34900. __builtin_unreachable ();
  34901. }
  34902. }
  34903. -- Built-in Function: void * __builtin_assume_aligned (const void *EXP,
  34904. size_t ALIGN, ...)
  34905. This function returns its first argument, and allows the compiler
  34906. to assume that the returned pointer is at least ALIGN bytes
  34907. aligned. This built-in can have either two or three arguments, if
  34908. it has three, the third argument should have integer type, and if
  34909. it is nonzero means misalignment offset. For example:
  34910. void *x = __builtin_assume_aligned (arg, 16);
  34911. means that the compiler can assume 'x', set to 'arg', is at least
  34912. 16-byte aligned, while:
  34913. void *x = __builtin_assume_aligned (arg, 32, 8);
  34914. means that the compiler can assume for 'x', set to 'arg', that
  34915. '(char *) x - 8' is 32-byte aligned.
  34916. -- Built-in Function: int __builtin_LINE ()
  34917. This function is the equivalent of the preprocessor '__LINE__'
  34918. macro and returns a constant integer expression that evaluates to
  34919. the line number of the invocation of the built-in. When used as a
  34920. C++ default argument for a function F, it returns the line number
  34921. of the call to F.
  34922. -- Built-in Function: const char * __builtin_FUNCTION ()
  34923. This function is the equivalent of the '__FUNCTION__' symbol and
  34924. returns an address constant pointing to the name of the function
  34925. from which the built-in was invoked, or the empty string if the
  34926. invocation is not at function scope. When used as a C++ default
  34927. argument for a function F, it returns the name of F's caller or the
  34928. empty string if the call was not made at function scope.
  34929. -- Built-in Function: const char * __builtin_FILE ()
  34930. This function is the equivalent of the preprocessor '__FILE__'
  34931. macro and returns an address constant pointing to the file name
  34932. containing the invocation of the built-in, or the empty string if
  34933. the invocation is not at function scope. When used as a C++
  34934. default argument for a function F, it returns the file name of the
  34935. call to F or the empty string if the call was not made at function
  34936. scope.
  34937. For example, in the following, each call to function 'foo' will
  34938. print a line similar to '"file.c:123: foo: message"' with the name
  34939. of the file and the line number of the 'printf' call, the name of
  34940. the function 'foo', followed by the word 'message'.
  34941. const char*
  34942. function (const char *func = __builtin_FUNCTION ())
  34943. {
  34944. return func;
  34945. }
  34946. void foo (void)
  34947. {
  34948. printf ("%s:%i: %s: message\n", file (), line (), function ());
  34949. }
  34950. -- Built-in Function: void __builtin___clear_cache (void *BEGIN, void
  34951. *END)
  34952. This function is used to flush the processor's instruction cache
  34953. for the region of memory between BEGIN inclusive and END exclusive.
  34954. Some targets require that the instruction cache be flushed, after
  34955. modifying memory containing code, in order to obtain deterministic
  34956. behavior.
  34957. If the target does not require instruction cache flushes,
  34958. '__builtin___clear_cache' has no effect. Otherwise either
  34959. instructions are emitted in-line to clear the instruction cache or
  34960. a call to the '__clear_cache' function in libgcc is made.
  34961. -- Built-in Function: void __builtin_prefetch (const void *ADDR, ...)
  34962. This function is used to minimize cache-miss latency by moving data
  34963. into a cache before it is accessed. You can insert calls to
  34964. '__builtin_prefetch' into code for which you know addresses of data
  34965. in memory that is likely to be accessed soon. If the target
  34966. supports them, data prefetch instructions are generated. If the
  34967. prefetch is done early enough before the access then the data will
  34968. be in the cache by the time it is accessed.
  34969. The value of ADDR is the address of the memory to prefetch. There
  34970. are two optional arguments, RW and LOCALITY. The value of RW is a
  34971. compile-time constant one or zero; one means that the prefetch is
  34972. preparing for a write to the memory address and zero, the default,
  34973. means that the prefetch is preparing for a read. The value
  34974. LOCALITY must be a compile-time constant integer between zero and
  34975. three. A value of zero means that the data has no temporal
  34976. locality, so it need not be left in the cache after the access. A
  34977. value of three means that the data has a high degree of temporal
  34978. locality and should be left in all levels of cache possible.
  34979. Values of one and two mean, respectively, a low or moderate degree
  34980. of temporal locality. The default is three.
  34981. for (i = 0; i < n; i++)
  34982. {
  34983. a[i] = a[i] + b[i];
  34984. __builtin_prefetch (&a[i+j], 1, 1);
  34985. __builtin_prefetch (&b[i+j], 0, 1);
  34986. /* ... */
  34987. }
  34988. Data prefetch does not generate faults if ADDR is invalid, but the
  34989. address expression itself must be valid. For example, a prefetch
  34990. of 'p->next' does not fault if 'p->next' is not a valid address,
  34991. but evaluation faults if 'p' is not a valid address.
  34992. If the target does not support data prefetch, the address
  34993. expression is evaluated if it includes side effects but no other
  34994. code is generated and GCC does not issue a warning.
  34995. -- Built-in Function: size_t __builtin_object_size (const void * PTR,
  34996. int TYPE)
  34997. Returns the size of an object pointed to by PTR. *Note Object Size
  34998. Checking::, for a detailed description of the function.
  34999. -- Built-in Function: double __builtin_huge_val (void)
  35000. Returns a positive infinity, if supported by the floating-point
  35001. format, else 'DBL_MAX'. This function is suitable for implementing
  35002. the ISO C macro 'HUGE_VAL'.
  35003. -- Built-in Function: float __builtin_huge_valf (void)
  35004. Similar to '__builtin_huge_val', except the return type is 'float'.
  35005. -- Built-in Function: long double __builtin_huge_vall (void)
  35006. Similar to '__builtin_huge_val', except the return type is 'long
  35007. double'.
  35008. -- Built-in Function: _FloatN __builtin_huge_valfN (void)
  35009. Similar to '__builtin_huge_val', except the return type is
  35010. '_FloatN'.
  35011. -- Built-in Function: _FloatNx __builtin_huge_valfNx (void)
  35012. Similar to '__builtin_huge_val', except the return type is
  35013. '_FloatNx'.
  35014. -- Built-in Function: int __builtin_fpclassify (int, int, int, int,
  35015. int, ...)
  35016. This built-in implements the C99 fpclassify functionality. The
  35017. first five int arguments should be the target library's notion of
  35018. the possible FP classes and are used for return values. They must
  35019. be constant values and they must appear in this order: 'FP_NAN',
  35020. 'FP_INFINITE', 'FP_NORMAL', 'FP_SUBNORMAL' and 'FP_ZERO'. The
  35021. ellipsis is for exactly one floating-point value to classify. GCC
  35022. treats the last argument as type-generic, which means it does not
  35023. do default promotion from float to double.
  35024. -- Built-in Function: double __builtin_inf (void)
  35025. Similar to '__builtin_huge_val', except a warning is generated if
  35026. the target floating-point format does not support infinities.
  35027. -- Built-in Function: _Decimal32 __builtin_infd32 (void)
  35028. Similar to '__builtin_inf', except the return type is '_Decimal32'.
  35029. -- Built-in Function: _Decimal64 __builtin_infd64 (void)
  35030. Similar to '__builtin_inf', except the return type is '_Decimal64'.
  35031. -- Built-in Function: _Decimal128 __builtin_infd128 (void)
  35032. Similar to '__builtin_inf', except the return type is
  35033. '_Decimal128'.
  35034. -- Built-in Function: float __builtin_inff (void)
  35035. Similar to '__builtin_inf', except the return type is 'float'.
  35036. This function is suitable for implementing the ISO C99 macro
  35037. 'INFINITY'.
  35038. -- Built-in Function: long double __builtin_infl (void)
  35039. Similar to '__builtin_inf', except the return type is 'long
  35040. double'.
  35041. -- Built-in Function: _FloatN __builtin_inffN (void)
  35042. Similar to '__builtin_inf', except the return type is '_FloatN'.
  35043. -- Built-in Function: _FloatN __builtin_inffNx (void)
  35044. Similar to '__builtin_inf', except the return type is '_FloatNx'.
  35045. -- Built-in Function: int __builtin_isinf_sign (...)
  35046. Similar to 'isinf', except the return value is -1 for an argument
  35047. of '-Inf' and 1 for an argument of '+Inf'. Note while the
  35048. parameter list is an ellipsis, this function only accepts exactly
  35049. one floating-point argument. GCC treats this parameter as
  35050. type-generic, which means it does not do default promotion from
  35051. float to double.
  35052. -- Built-in Function: double __builtin_nan (const char *str)
  35053. This is an implementation of the ISO C99 function 'nan'.
  35054. Since ISO C99 defines this function in terms of 'strtod', which we
  35055. do not implement, a description of the parsing is in order. The
  35056. string is parsed as by 'strtol'; that is, the base is recognized by
  35057. leading '0' or '0x' prefixes. The number parsed is placed in the
  35058. significand such that the least significant bit of the number is at
  35059. the least significant bit of the significand. The number is
  35060. truncated to fit the significand field provided. The significand
  35061. is forced to be a quiet NaN.
  35062. This function, if given a string literal all of which would have
  35063. been consumed by 'strtol', is evaluated early enough that it is
  35064. considered a compile-time constant.
  35065. -- Built-in Function: _Decimal32 __builtin_nand32 (const char *str)
  35066. Similar to '__builtin_nan', except the return type is '_Decimal32'.
  35067. -- Built-in Function: _Decimal64 __builtin_nand64 (const char *str)
  35068. Similar to '__builtin_nan', except the return type is '_Decimal64'.
  35069. -- Built-in Function: _Decimal128 __builtin_nand128 (const char *str)
  35070. Similar to '__builtin_nan', except the return type is
  35071. '_Decimal128'.
  35072. -- Built-in Function: float __builtin_nanf (const char *str)
  35073. Similar to '__builtin_nan', except the return type is 'float'.
  35074. -- Built-in Function: long double __builtin_nanl (const char *str)
  35075. Similar to '__builtin_nan', except the return type is 'long
  35076. double'.
  35077. -- Built-in Function: _FloatN __builtin_nanfN (const char *str)
  35078. Similar to '__builtin_nan', except the return type is '_FloatN'.
  35079. -- Built-in Function: _FloatNx __builtin_nanfNx (const char *str)
  35080. Similar to '__builtin_nan', except the return type is '_FloatNx'.
  35081. -- Built-in Function: double __builtin_nans (const char *str)
  35082. Similar to '__builtin_nan', except the significand is forced to be
  35083. a signaling NaN. The 'nans' function is proposed by WG14 N965.
  35084. -- Built-in Function: float __builtin_nansf (const char *str)
  35085. Similar to '__builtin_nans', except the return type is 'float'.
  35086. -- Built-in Function: long double __builtin_nansl (const char *str)
  35087. Similar to '__builtin_nans', except the return type is 'long
  35088. double'.
  35089. -- Built-in Function: _FloatN __builtin_nansfN (const char *str)
  35090. Similar to '__builtin_nans', except the return type is '_FloatN'.
  35091. -- Built-in Function: _FloatNx __builtin_nansfNx (const char *str)
  35092. Similar to '__builtin_nans', except the return type is '_FloatNx'.
  35093. -- Built-in Function: int __builtin_ffs (int x)
  35094. Returns one plus the index of the least significant 1-bit of X, or
  35095. if X is zero, returns zero.
  35096. -- Built-in Function: int __builtin_clz (unsigned int x)
  35097. Returns the number of leading 0-bits in X, starting at the most
  35098. significant bit position. If X is 0, the result is undefined.
  35099. -- Built-in Function: int __builtin_ctz (unsigned int x)
  35100. Returns the number of trailing 0-bits in X, starting at the least
  35101. significant bit position. If X is 0, the result is undefined.
  35102. -- Built-in Function: int __builtin_clrsb (int x)
  35103. Returns the number of leading redundant sign bits in X, i.e. the
  35104. number of bits following the most significant bit that are
  35105. identical to it. There are no special cases for 0 or other values.
  35106. -- Built-in Function: int __builtin_popcount (unsigned int x)
  35107. Returns the number of 1-bits in X.
  35108. -- Built-in Function: int __builtin_parity (unsigned int x)
  35109. Returns the parity of X, i.e. the number of 1-bits in X modulo 2.
  35110. -- Built-in Function: int __builtin_ffsl (long)
  35111. Similar to '__builtin_ffs', except the argument type is 'long'.
  35112. -- Built-in Function: int __builtin_clzl (unsigned long)
  35113. Similar to '__builtin_clz', except the argument type is 'unsigned
  35114. long'.
  35115. -- Built-in Function: int __builtin_ctzl (unsigned long)
  35116. Similar to '__builtin_ctz', except the argument type is 'unsigned
  35117. long'.
  35118. -- Built-in Function: int __builtin_clrsbl (long)
  35119. Similar to '__builtin_clrsb', except the argument type is 'long'.
  35120. -- Built-in Function: int __builtin_popcountl (unsigned long)
  35121. Similar to '__builtin_popcount', except the argument type is
  35122. 'unsigned long'.
  35123. -- Built-in Function: int __builtin_parityl (unsigned long)
  35124. Similar to '__builtin_parity', except the argument type is
  35125. 'unsigned long'.
  35126. -- Built-in Function: int __builtin_ffsll (long long)
  35127. Similar to '__builtin_ffs', except the argument type is 'long
  35128. long'.
  35129. -- Built-in Function: int __builtin_clzll (unsigned long long)
  35130. Similar to '__builtin_clz', except the argument type is 'unsigned
  35131. long long'.
  35132. -- Built-in Function: int __builtin_ctzll (unsigned long long)
  35133. Similar to '__builtin_ctz', except the argument type is 'unsigned
  35134. long long'.
  35135. -- Built-in Function: int __builtin_clrsbll (long long)
  35136. Similar to '__builtin_clrsb', except the argument type is 'long
  35137. long'.
  35138. -- Built-in Function: int __builtin_popcountll (unsigned long long)
  35139. Similar to '__builtin_popcount', except the argument type is
  35140. 'unsigned long long'.
  35141. -- Built-in Function: int __builtin_parityll (unsigned long long)
  35142. Similar to '__builtin_parity', except the argument type is
  35143. 'unsigned long long'.
  35144. -- Built-in Function: double __builtin_powi (double, int)
  35145. Returns the first argument raised to the power of the second.
  35146. Unlike the 'pow' function no guarantees about precision and
  35147. rounding are made.
  35148. -- Built-in Function: float __builtin_powif (float, int)
  35149. Similar to '__builtin_powi', except the argument and return types
  35150. are 'float'.
  35151. -- Built-in Function: long double __builtin_powil (long double, int)
  35152. Similar to '__builtin_powi', except the argument and return types
  35153. are 'long double'.
  35154. -- Built-in Function: uint16_t __builtin_bswap16 (uint16_t x)
  35155. Returns X with the order of the bytes reversed; for example,
  35156. '0xaabb' becomes '0xbbaa'. Byte here always means exactly 8 bits.
  35157. -- Built-in Function: uint32_t __builtin_bswap32 (uint32_t x)
  35158. Similar to '__builtin_bswap16', except the argument and return
  35159. types are 32 bit.
  35160. -- Built-in Function: uint64_t __builtin_bswap64 (uint64_t x)
  35161. Similar to '__builtin_bswap32', except the argument and return
  35162. types are 64 bit.
  35163. -- Built-in Function: Pmode __builtin_extend_pointer (void * x)
  35164. On targets where the user visible pointer size is smaller than the
  35165. size of an actual hardware address this function returns the
  35166. extended user pointer. Targets where this is true included ILP32
  35167. mode on x86_64 or Aarch64. This function is mainly useful when
  35168. writing inline assembly code.
  35169. -- Built-in Function: int __builtin_goacc_parlevel_id (int x)
  35170. Returns the openacc gang, worker or vector id depending on whether
  35171. X is 0, 1 or 2.
  35172. -- Built-in Function: int __builtin_goacc_parlevel_size (int x)
  35173. Returns the openacc gang, worker or vector size depending on
  35174. whether X is 0, 1 or 2.
  35175. 
  35176. File: gcc.info, Node: Target Builtins, Next: Target Format Checks, Prev: Other Builtins, Up: C Extensions
  35177. 6.60 Built-in Functions Specific to Particular Target Machines
  35178. ==============================================================
  35179. On some target machines, GCC supports many built-in functions specific
  35180. to those machines. Generally these generate calls to specific machine
  35181. instructions, but allow the compiler to schedule those calls.
  35182. * Menu:
  35183. * AArch64 Built-in Functions::
  35184. * Alpha Built-in Functions::
  35185. * Altera Nios II Built-in Functions::
  35186. * ARC Built-in Functions::
  35187. * ARC SIMD Built-in Functions::
  35188. * ARM iWMMXt Built-in Functions::
  35189. * ARM C Language Extensions (ACLE)::
  35190. * ARM Floating Point Status and Control Intrinsics::
  35191. * ARM ARMv8-M Security Extensions::
  35192. * AVR Built-in Functions::
  35193. * Blackfin Built-in Functions::
  35194. * BPF Built-in Functions::
  35195. * FR-V Built-in Functions::
  35196. * MIPS DSP Built-in Functions::
  35197. * MIPS Paired-Single Support::
  35198. * MIPS Loongson Built-in Functions::
  35199. * MIPS SIMD Architecture (MSA) Support::
  35200. * Other MIPS Built-in Functions::
  35201. * MSP430 Built-in Functions::
  35202. * NDS32 Built-in Functions::
  35203. * picoChip Built-in Functions::
  35204. * Basic PowerPC Built-in Functions::
  35205. * PowerPC AltiVec/VSX Built-in Functions::
  35206. * PowerPC Hardware Transactional Memory Built-in Functions::
  35207. * PowerPC Atomic Memory Operation Functions::
  35208. * PowerPC Matrix-Multiply Assist Built-in Functions::
  35209. * RX Built-in Functions::
  35210. * S/390 System z Built-in Functions::
  35211. * SH Built-in Functions::
  35212. * SPARC VIS Built-in Functions::
  35213. * TI C6X Built-in Functions::
  35214. * TILE-Gx Built-in Functions::
  35215. * TILEPro Built-in Functions::
  35216. * x86 Built-in Functions::
  35217. * x86 transactional memory intrinsics::
  35218. * x86 control-flow protection intrinsics::
  35219. 
  35220. File: gcc.info, Node: AArch64 Built-in Functions, Next: Alpha Built-in Functions, Up: Target Builtins
  35221. 6.60.1 AArch64 Built-in Functions
  35222. ---------------------------------
  35223. These built-in functions are available for the AArch64 family of
  35224. processors.
  35225. unsigned int __builtin_aarch64_get_fpcr ()
  35226. void __builtin_aarch64_set_fpcr (unsigned int)
  35227. unsigned int __builtin_aarch64_get_fpsr ()
  35228. void __builtin_aarch64_set_fpsr (unsigned int)
  35229. 
  35230. File: gcc.info, Node: Alpha Built-in Functions, Next: Altera Nios II Built-in Functions, Prev: AArch64 Built-in Functions, Up: Target Builtins
  35231. 6.60.2 Alpha Built-in Functions
  35232. -------------------------------
  35233. These built-in functions are available for the Alpha family of
  35234. processors, depending on the command-line switches used.
  35235. The following built-in functions are always available. They all
  35236. generate the machine instruction that is part of the name.
  35237. long __builtin_alpha_implver (void)
  35238. long __builtin_alpha_rpcc (void)
  35239. long __builtin_alpha_amask (long)
  35240. long __builtin_alpha_cmpbge (long, long)
  35241. long __builtin_alpha_extbl (long, long)
  35242. long __builtin_alpha_extwl (long, long)
  35243. long __builtin_alpha_extll (long, long)
  35244. long __builtin_alpha_extql (long, long)
  35245. long __builtin_alpha_extwh (long, long)
  35246. long __builtin_alpha_extlh (long, long)
  35247. long __builtin_alpha_extqh (long, long)
  35248. long __builtin_alpha_insbl (long, long)
  35249. long __builtin_alpha_inswl (long, long)
  35250. long __builtin_alpha_insll (long, long)
  35251. long __builtin_alpha_insql (long, long)
  35252. long __builtin_alpha_inswh (long, long)
  35253. long __builtin_alpha_inslh (long, long)
  35254. long __builtin_alpha_insqh (long, long)
  35255. long __builtin_alpha_mskbl (long, long)
  35256. long __builtin_alpha_mskwl (long, long)
  35257. long __builtin_alpha_mskll (long, long)
  35258. long __builtin_alpha_mskql (long, long)
  35259. long __builtin_alpha_mskwh (long, long)
  35260. long __builtin_alpha_msklh (long, long)
  35261. long __builtin_alpha_mskqh (long, long)
  35262. long __builtin_alpha_umulh (long, long)
  35263. long __builtin_alpha_zap (long, long)
  35264. long __builtin_alpha_zapnot (long, long)
  35265. The following built-in functions are always with '-mmax' or '-mcpu=CPU'
  35266. where CPU is 'pca56' or later. They all generate the machine
  35267. instruction that is part of the name.
  35268. long __builtin_alpha_pklb (long)
  35269. long __builtin_alpha_pkwb (long)
  35270. long __builtin_alpha_unpkbl (long)
  35271. long __builtin_alpha_unpkbw (long)
  35272. long __builtin_alpha_minub8 (long, long)
  35273. long __builtin_alpha_minsb8 (long, long)
  35274. long __builtin_alpha_minuw4 (long, long)
  35275. long __builtin_alpha_minsw4 (long, long)
  35276. long __builtin_alpha_maxub8 (long, long)
  35277. long __builtin_alpha_maxsb8 (long, long)
  35278. long __builtin_alpha_maxuw4 (long, long)
  35279. long __builtin_alpha_maxsw4 (long, long)
  35280. long __builtin_alpha_perr (long, long)
  35281. The following built-in functions are always with '-mcix' or '-mcpu=CPU'
  35282. where CPU is 'ev67' or later. They all generate the machine instruction
  35283. that is part of the name.
  35284. long __builtin_alpha_cttz (long)
  35285. long __builtin_alpha_ctlz (long)
  35286. long __builtin_alpha_ctpop (long)
  35287. The following built-in functions are available on systems that use the
  35288. OSF/1 PALcode. Normally they invoke the 'rduniq' and 'wruniq' PAL
  35289. calls, but when invoked with '-mtls-kernel', they invoke 'rdval' and
  35290. 'wrval'.
  35291. void *__builtin_thread_pointer (void)
  35292. void __builtin_set_thread_pointer (void *)
  35293. 
  35294. File: gcc.info, Node: Altera Nios II Built-in Functions, Next: ARC Built-in Functions, Prev: Alpha Built-in Functions, Up: Target Builtins
  35295. 6.60.3 Altera Nios II Built-in Functions
  35296. ----------------------------------------
  35297. These built-in functions are available for the Altera Nios II family of
  35298. processors.
  35299. The following built-in functions are always available. They all
  35300. generate the machine instruction that is part of the name.
  35301. int __builtin_ldbio (volatile const void *)
  35302. int __builtin_ldbuio (volatile const void *)
  35303. int __builtin_ldhio (volatile const void *)
  35304. int __builtin_ldhuio (volatile const void *)
  35305. int __builtin_ldwio (volatile const void *)
  35306. void __builtin_stbio (volatile void *, int)
  35307. void __builtin_sthio (volatile void *, int)
  35308. void __builtin_stwio (volatile void *, int)
  35309. void __builtin_sync (void)
  35310. int __builtin_rdctl (int)
  35311. int __builtin_rdprs (int, int)
  35312. void __builtin_wrctl (int, int)
  35313. void __builtin_flushd (volatile void *)
  35314. void __builtin_flushda (volatile void *)
  35315. int __builtin_wrpie (int);
  35316. void __builtin_eni (int);
  35317. int __builtin_ldex (volatile const void *)
  35318. int __builtin_stex (volatile void *, int)
  35319. int __builtin_ldsex (volatile const void *)
  35320. int __builtin_stsex (volatile void *, int)
  35321. The following built-in functions are always available. They all
  35322. generate a Nios II Custom Instruction. The name of the function
  35323. represents the types that the function takes and returns. The letter
  35324. before the 'n' is the return type or void if absent. The 'n' represents
  35325. the first parameter to all the custom instructions, the custom
  35326. instruction number. The two letters after the 'n' represent the up to
  35327. two parameters to the function.
  35328. The letters represent the following data types:
  35329. '<no letter>'
  35330. 'void' for return type and no parameter for parameter types.
  35331. 'i'
  35332. 'int' for return type and parameter type
  35333. 'f'
  35334. 'float' for return type and parameter type
  35335. 'p'
  35336. 'void *' for return type and parameter type
  35337. And the function names are:
  35338. void __builtin_custom_n (void)
  35339. void __builtin_custom_ni (int)
  35340. void __builtin_custom_nf (float)
  35341. void __builtin_custom_np (void *)
  35342. void __builtin_custom_nii (int, int)
  35343. void __builtin_custom_nif (int, float)
  35344. void __builtin_custom_nip (int, void *)
  35345. void __builtin_custom_nfi (float, int)
  35346. void __builtin_custom_nff (float, float)
  35347. void __builtin_custom_nfp (float, void *)
  35348. void __builtin_custom_npi (void *, int)
  35349. void __builtin_custom_npf (void *, float)
  35350. void __builtin_custom_npp (void *, void *)
  35351. int __builtin_custom_in (void)
  35352. int __builtin_custom_ini (int)
  35353. int __builtin_custom_inf (float)
  35354. int __builtin_custom_inp (void *)
  35355. int __builtin_custom_inii (int, int)
  35356. int __builtin_custom_inif (int, float)
  35357. int __builtin_custom_inip (int, void *)
  35358. int __builtin_custom_infi (float, int)
  35359. int __builtin_custom_inff (float, float)
  35360. int __builtin_custom_infp (float, void *)
  35361. int __builtin_custom_inpi (void *, int)
  35362. int __builtin_custom_inpf (void *, float)
  35363. int __builtin_custom_inpp (void *, void *)
  35364. float __builtin_custom_fn (void)
  35365. float __builtin_custom_fni (int)
  35366. float __builtin_custom_fnf (float)
  35367. float __builtin_custom_fnp (void *)
  35368. float __builtin_custom_fnii (int, int)
  35369. float __builtin_custom_fnif (int, float)
  35370. float __builtin_custom_fnip (int, void *)
  35371. float __builtin_custom_fnfi (float, int)
  35372. float __builtin_custom_fnff (float, float)
  35373. float __builtin_custom_fnfp (float, void *)
  35374. float __builtin_custom_fnpi (void *, int)
  35375. float __builtin_custom_fnpf (void *, float)
  35376. float __builtin_custom_fnpp (void *, void *)
  35377. void * __builtin_custom_pn (void)
  35378. void * __builtin_custom_pni (int)
  35379. void * __builtin_custom_pnf (float)
  35380. void * __builtin_custom_pnp (void *)
  35381. void * __builtin_custom_pnii (int, int)
  35382. void * __builtin_custom_pnif (int, float)
  35383. void * __builtin_custom_pnip (int, void *)
  35384. void * __builtin_custom_pnfi (float, int)
  35385. void * __builtin_custom_pnff (float, float)
  35386. void * __builtin_custom_pnfp (float, void *)
  35387. void * __builtin_custom_pnpi (void *, int)
  35388. void * __builtin_custom_pnpf (void *, float)
  35389. void * __builtin_custom_pnpp (void *, void *)
  35390. 
  35391. File: gcc.info, Node: ARC Built-in Functions, Next: ARC SIMD Built-in Functions, Prev: Altera Nios II Built-in Functions, Up: Target Builtins
  35392. 6.60.4 ARC Built-in Functions
  35393. -----------------------------
  35394. The following built-in functions are provided for ARC targets. The
  35395. built-ins generate the corresponding assembly instructions. In the
  35396. examples given below, the generated code often requires an operand or
  35397. result to be in a register. Where necessary further code will be
  35398. generated to ensure this is true, but for brevity this is not described
  35399. in each case.
  35400. _Note:_ Using a built-in to generate an instruction not supported by a
  35401. target may cause problems. At present the compiler is not guaranteed to
  35402. detect such misuse, and as a result an internal compiler error may be
  35403. generated.
  35404. -- Built-in Function: int __builtin_arc_aligned (void *VAL, int
  35405. ALIGNVAL)
  35406. Return 1 if VAL is known to have the byte alignment given by
  35407. ALIGNVAL, otherwise return 0. Note that this is different from
  35408. __alignof__(*(char *)VAL) >= alignval
  35409. because __alignof__ sees only the type of the dereference, whereas
  35410. __builtin_arc_align uses alignment information from the pointer as
  35411. well as from the pointed-to type. The information available will
  35412. depend on optimization level.
  35413. -- Built-in Function: void __builtin_arc_brk (void)
  35414. Generates
  35415. brk
  35416. -- Built-in Function: unsigned int __builtin_arc_core_read (unsigned
  35417. int REGNO)
  35418. The operand is the number of a register to be read. Generates:
  35419. mov DEST, rREGNO
  35420. where the value in DEST will be the result returned from the
  35421. built-in.
  35422. -- Built-in Function: void __builtin_arc_core_write (unsigned int
  35423. REGNO, unsigned int VAL)
  35424. The first operand is the number of a register to be written, the
  35425. second operand is a compile time constant to write into that
  35426. register. Generates:
  35427. mov rREGNO, VAL
  35428. -- Built-in Function: int __builtin_arc_divaw (int A, int B)
  35429. Only available if either '-mcpu=ARC700' or '-meA' is set.
  35430. Generates:
  35431. divaw DEST, A, B
  35432. where the value in DEST will be the result returned from the
  35433. built-in.
  35434. -- Built-in Function: void __builtin_arc_flag (unsigned int A)
  35435. Generates
  35436. flag A
  35437. -- Built-in Function: unsigned int __builtin_arc_lr (unsigned int AUXR)
  35438. The operand, AUXV, is the address of an auxiliary register and must
  35439. be a compile time constant. Generates:
  35440. lr DEST, [AUXR]
  35441. Where the value in DEST will be the result returned from the
  35442. built-in.
  35443. -- Built-in Function: void __builtin_arc_mul64 (int A, int B)
  35444. Only available with '-mmul64'. Generates:
  35445. mul64 A, B
  35446. -- Built-in Function: void __builtin_arc_mulu64 (unsigned int A,
  35447. unsigned int B)
  35448. Only available with '-mmul64'. Generates:
  35449. mulu64 A, B
  35450. -- Built-in Function: void __builtin_arc_nop (void)
  35451. Generates:
  35452. nop
  35453. -- Built-in Function: int __builtin_arc_norm (int SRC)
  35454. Only valid if the 'norm' instruction is available through the
  35455. '-mnorm' option or by default with '-mcpu=ARC700'. Generates:
  35456. norm DEST, SRC
  35457. Where the value in DEST will be the result returned from the
  35458. built-in.
  35459. -- Built-in Function: short int __builtin_arc_normw (short int SRC)
  35460. Only valid if the 'normw' instruction is available through the
  35461. '-mnorm' option or by default with '-mcpu=ARC700'. Generates:
  35462. normw DEST, SRC
  35463. Where the value in DEST will be the result returned from the
  35464. built-in.
  35465. -- Built-in Function: void __builtin_arc_rtie (void)
  35466. Generates:
  35467. rtie
  35468. -- Built-in Function: void __builtin_arc_sleep (int A
  35469. Generates:
  35470. sleep A
  35471. -- Built-in Function: void __builtin_arc_sr (unsigned int AUXR,
  35472. unsigned int VAL)
  35473. The first argument, AUXV, is the address of an auxiliary register,
  35474. the second argument, VAL, is a compile time constant to be written
  35475. to the register. Generates:
  35476. sr AUXR, [VAL]
  35477. -- Built-in Function: int __builtin_arc_swap (int SRC)
  35478. Only valid with '-mswap'. Generates:
  35479. swap DEST, SRC
  35480. Where the value in DEST will be the result returned from the
  35481. built-in.
  35482. -- Built-in Function: void __builtin_arc_swi (void)
  35483. Generates:
  35484. swi
  35485. -- Built-in Function: void __builtin_arc_sync (void)
  35486. Only available with '-mcpu=ARC700'. Generates:
  35487. sync
  35488. -- Built-in Function: void __builtin_arc_trap_s (unsigned int C)
  35489. Only available with '-mcpu=ARC700'. Generates:
  35490. trap_s C
  35491. -- Built-in Function: void __builtin_arc_unimp_s (void)
  35492. Only available with '-mcpu=ARC700'. Generates:
  35493. unimp_s
  35494. The instructions generated by the following builtins are not considered
  35495. as candidates for scheduling. They are not moved around by the compiler
  35496. during scheduling, and thus can be expected to appear where they are put
  35497. in the C code:
  35498. __builtin_arc_brk()
  35499. __builtin_arc_core_read()
  35500. __builtin_arc_core_write()
  35501. __builtin_arc_flag()
  35502. __builtin_arc_lr()
  35503. __builtin_arc_sleep()
  35504. __builtin_arc_sr()
  35505. __builtin_arc_swi()
  35506. 
  35507. File: gcc.info, Node: ARC SIMD Built-in Functions, Next: ARM iWMMXt Built-in Functions, Prev: ARC Built-in Functions, Up: Target Builtins
  35508. 6.60.5 ARC SIMD Built-in Functions
  35509. ----------------------------------
  35510. SIMD builtins provided by the compiler can be used to generate the
  35511. vector instructions. This section describes the available builtins and
  35512. their usage in programs. With the '-msimd' option, the compiler
  35513. provides 128-bit vector types, which can be specified using the
  35514. 'vector_size' attribute. The header file 'arc-simd.h' can be included
  35515. to use the following predefined types:
  35516. typedef int __v4si __attribute__((vector_size(16)));
  35517. typedef short __v8hi __attribute__((vector_size(16)));
  35518. These types can be used to define 128-bit variables. The built-in
  35519. functions listed in the following section can be used on these variables
  35520. to generate the vector operations.
  35521. For all builtins, '__builtin_arc_SOMEINSN', the header file
  35522. 'arc-simd.h' also provides equivalent macros called '_SOMEINSN' that can
  35523. be used for programming ease and improved readability. The following
  35524. macros for DMA control are also provided:
  35525. #define _setup_dma_in_channel_reg _vdiwr
  35526. #define _setup_dma_out_channel_reg _vdowr
  35527. The following is a complete list of all the SIMD built-ins provided for
  35528. ARC, grouped by calling signature.
  35529. The following take two '__v8hi' arguments and return a '__v8hi' result:
  35530. __v8hi __builtin_arc_vaddaw (__v8hi, __v8hi)
  35531. __v8hi __builtin_arc_vaddw (__v8hi, __v8hi)
  35532. __v8hi __builtin_arc_vand (__v8hi, __v8hi)
  35533. __v8hi __builtin_arc_vandaw (__v8hi, __v8hi)
  35534. __v8hi __builtin_arc_vavb (__v8hi, __v8hi)
  35535. __v8hi __builtin_arc_vavrb (__v8hi, __v8hi)
  35536. __v8hi __builtin_arc_vbic (__v8hi, __v8hi)
  35537. __v8hi __builtin_arc_vbicaw (__v8hi, __v8hi)
  35538. __v8hi __builtin_arc_vdifaw (__v8hi, __v8hi)
  35539. __v8hi __builtin_arc_vdifw (__v8hi, __v8hi)
  35540. __v8hi __builtin_arc_veqw (__v8hi, __v8hi)
  35541. __v8hi __builtin_arc_vh264f (__v8hi, __v8hi)
  35542. __v8hi __builtin_arc_vh264ft (__v8hi, __v8hi)
  35543. __v8hi __builtin_arc_vh264fw (__v8hi, __v8hi)
  35544. __v8hi __builtin_arc_vlew (__v8hi, __v8hi)
  35545. __v8hi __builtin_arc_vltw (__v8hi, __v8hi)
  35546. __v8hi __builtin_arc_vmaxaw (__v8hi, __v8hi)
  35547. __v8hi __builtin_arc_vmaxw (__v8hi, __v8hi)
  35548. __v8hi __builtin_arc_vminaw (__v8hi, __v8hi)
  35549. __v8hi __builtin_arc_vminw (__v8hi, __v8hi)
  35550. __v8hi __builtin_arc_vmr1aw (__v8hi, __v8hi)
  35551. __v8hi __builtin_arc_vmr1w (__v8hi, __v8hi)
  35552. __v8hi __builtin_arc_vmr2aw (__v8hi, __v8hi)
  35553. __v8hi __builtin_arc_vmr2w (__v8hi, __v8hi)
  35554. __v8hi __builtin_arc_vmr3aw (__v8hi, __v8hi)
  35555. __v8hi __builtin_arc_vmr3w (__v8hi, __v8hi)
  35556. __v8hi __builtin_arc_vmr4aw (__v8hi, __v8hi)
  35557. __v8hi __builtin_arc_vmr4w (__v8hi, __v8hi)
  35558. __v8hi __builtin_arc_vmr5aw (__v8hi, __v8hi)
  35559. __v8hi __builtin_arc_vmr5w (__v8hi, __v8hi)
  35560. __v8hi __builtin_arc_vmr6aw (__v8hi, __v8hi)
  35561. __v8hi __builtin_arc_vmr6w (__v8hi, __v8hi)
  35562. __v8hi __builtin_arc_vmr7aw (__v8hi, __v8hi)
  35563. __v8hi __builtin_arc_vmr7w (__v8hi, __v8hi)
  35564. __v8hi __builtin_arc_vmrb (__v8hi, __v8hi)
  35565. __v8hi __builtin_arc_vmulaw (__v8hi, __v8hi)
  35566. __v8hi __builtin_arc_vmulfaw (__v8hi, __v8hi)
  35567. __v8hi __builtin_arc_vmulfw (__v8hi, __v8hi)
  35568. __v8hi __builtin_arc_vmulw (__v8hi, __v8hi)
  35569. __v8hi __builtin_arc_vnew (__v8hi, __v8hi)
  35570. __v8hi __builtin_arc_vor (__v8hi, __v8hi)
  35571. __v8hi __builtin_arc_vsubaw (__v8hi, __v8hi)
  35572. __v8hi __builtin_arc_vsubw (__v8hi, __v8hi)
  35573. __v8hi __builtin_arc_vsummw (__v8hi, __v8hi)
  35574. __v8hi __builtin_arc_vvc1f (__v8hi, __v8hi)
  35575. __v8hi __builtin_arc_vvc1ft (__v8hi, __v8hi)
  35576. __v8hi __builtin_arc_vxor (__v8hi, __v8hi)
  35577. __v8hi __builtin_arc_vxoraw (__v8hi, __v8hi)
  35578. The following take one '__v8hi' and one 'int' argument and return a
  35579. '__v8hi' result:
  35580. __v8hi __builtin_arc_vbaddw (__v8hi, int)
  35581. __v8hi __builtin_arc_vbmaxw (__v8hi, int)
  35582. __v8hi __builtin_arc_vbminw (__v8hi, int)
  35583. __v8hi __builtin_arc_vbmulaw (__v8hi, int)
  35584. __v8hi __builtin_arc_vbmulfw (__v8hi, int)
  35585. __v8hi __builtin_arc_vbmulw (__v8hi, int)
  35586. __v8hi __builtin_arc_vbrsubw (__v8hi, int)
  35587. __v8hi __builtin_arc_vbsubw (__v8hi, int)
  35588. The following take one '__v8hi' argument and one 'int' argument which
  35589. must be a 3-bit compile time constant indicating a register number
  35590. I0-I7. They return a '__v8hi' result.
  35591. __v8hi __builtin_arc_vasrw (__v8hi, const int)
  35592. __v8hi __builtin_arc_vsr8 (__v8hi, const int)
  35593. __v8hi __builtin_arc_vsr8aw (__v8hi, const int)
  35594. The following take one '__v8hi' argument and one 'int' argument which
  35595. must be a 6-bit compile time constant. They return a '__v8hi' result.
  35596. __v8hi __builtin_arc_vasrpwbi (__v8hi, const int)
  35597. __v8hi __builtin_arc_vasrrpwbi (__v8hi, const int)
  35598. __v8hi __builtin_arc_vasrrwi (__v8hi, const int)
  35599. __v8hi __builtin_arc_vasrsrwi (__v8hi, const int)
  35600. __v8hi __builtin_arc_vasrwi (__v8hi, const int)
  35601. __v8hi __builtin_arc_vsr8awi (__v8hi, const int)
  35602. __v8hi __builtin_arc_vsr8i (__v8hi, const int)
  35603. The following take one '__v8hi' argument and one 'int' argument which
  35604. must be a 8-bit compile time constant. They return a '__v8hi' result.
  35605. __v8hi __builtin_arc_vd6tapf (__v8hi, const int)
  35606. __v8hi __builtin_arc_vmvaw (__v8hi, const int)
  35607. __v8hi __builtin_arc_vmvw (__v8hi, const int)
  35608. __v8hi __builtin_arc_vmvzw (__v8hi, const int)
  35609. The following take two 'int' arguments, the second of which which must
  35610. be a 8-bit compile time constant. They return a '__v8hi' result:
  35611. __v8hi __builtin_arc_vmovaw (int, const int)
  35612. __v8hi __builtin_arc_vmovw (int, const int)
  35613. __v8hi __builtin_arc_vmovzw (int, const int)
  35614. The following take a single '__v8hi' argument and return a '__v8hi'
  35615. result:
  35616. __v8hi __builtin_arc_vabsaw (__v8hi)
  35617. __v8hi __builtin_arc_vabsw (__v8hi)
  35618. __v8hi __builtin_arc_vaddsuw (__v8hi)
  35619. __v8hi __builtin_arc_vexch1 (__v8hi)
  35620. __v8hi __builtin_arc_vexch2 (__v8hi)
  35621. __v8hi __builtin_arc_vexch4 (__v8hi)
  35622. __v8hi __builtin_arc_vsignw (__v8hi)
  35623. __v8hi __builtin_arc_vupbaw (__v8hi)
  35624. __v8hi __builtin_arc_vupbw (__v8hi)
  35625. __v8hi __builtin_arc_vupsbaw (__v8hi)
  35626. __v8hi __builtin_arc_vupsbw (__v8hi)
  35627. The following take two 'int' arguments and return no result:
  35628. void __builtin_arc_vdirun (int, int)
  35629. void __builtin_arc_vdorun (int, int)
  35630. The following take two 'int' arguments and return no result. The first
  35631. argument must a 3-bit compile time constant indicating one of the
  35632. DR0-DR7 DMA setup channels:
  35633. void __builtin_arc_vdiwr (const int, int)
  35634. void __builtin_arc_vdowr (const int, int)
  35635. The following take an 'int' argument and return no result:
  35636. void __builtin_arc_vendrec (int)
  35637. void __builtin_arc_vrec (int)
  35638. void __builtin_arc_vrecrun (int)
  35639. void __builtin_arc_vrun (int)
  35640. The following take a '__v8hi' argument and two 'int' arguments and
  35641. return a '__v8hi' result. The second argument must be a 3-bit compile
  35642. time constants, indicating one the registers I0-I7, and the third
  35643. argument must be an 8-bit compile time constant.
  35644. _Note:_ Although the equivalent hardware instructions do not take an
  35645. SIMD register as an operand, these builtins overwrite the relevant bits
  35646. of the '__v8hi' register provided as the first argument with the value
  35647. loaded from the '[Ib, u8]' location in the SDM.
  35648. __v8hi __builtin_arc_vld32 (__v8hi, const int, const int)
  35649. __v8hi __builtin_arc_vld32wh (__v8hi, const int, const int)
  35650. __v8hi __builtin_arc_vld32wl (__v8hi, const int, const int)
  35651. __v8hi __builtin_arc_vld64 (__v8hi, const int, const int)
  35652. The following take two 'int' arguments and return a '__v8hi' result.
  35653. The first argument must be a 3-bit compile time constants, indicating
  35654. one the registers I0-I7, and the second argument must be an 8-bit
  35655. compile time constant.
  35656. __v8hi __builtin_arc_vld128 (const int, const int)
  35657. __v8hi __builtin_arc_vld64w (const int, const int)
  35658. The following take a '__v8hi' argument and two 'int' arguments and
  35659. return no result. The second argument must be a 3-bit compile time
  35660. constants, indicating one the registers I0-I7, and the third argument
  35661. must be an 8-bit compile time constant.
  35662. void __builtin_arc_vst128 (__v8hi, const int, const int)
  35663. void __builtin_arc_vst64 (__v8hi, const int, const int)
  35664. The following take a '__v8hi' argument and three 'int' arguments and
  35665. return no result. The second argument must be a 3-bit compile-time
  35666. constant, identifying the 16-bit sub-register to be stored, the third
  35667. argument must be a 3-bit compile time constants, indicating one the
  35668. registers I0-I7, and the fourth argument must be an 8-bit compile time
  35669. constant.
  35670. void __builtin_arc_vst16_n (__v8hi, const int, const int, const int)
  35671. void __builtin_arc_vst32_n (__v8hi, const int, const int, const int)
  35672. 
  35673. File: gcc.info, Node: ARM iWMMXt Built-in Functions, Next: ARM C Language Extensions (ACLE), Prev: ARC SIMD Built-in Functions, Up: Target Builtins
  35674. 6.60.6 ARM iWMMXt Built-in Functions
  35675. ------------------------------------
  35676. These built-in functions are available for the ARM family of processors
  35677. when the '-mcpu=iwmmxt' switch is used:
  35678. typedef int v2si __attribute__ ((vector_size (8)));
  35679. typedef short v4hi __attribute__ ((vector_size (8)));
  35680. typedef char v8qi __attribute__ ((vector_size (8)));
  35681. int __builtin_arm_getwcgr0 (void)
  35682. void __builtin_arm_setwcgr0 (int)
  35683. int __builtin_arm_getwcgr1 (void)
  35684. void __builtin_arm_setwcgr1 (int)
  35685. int __builtin_arm_getwcgr2 (void)
  35686. void __builtin_arm_setwcgr2 (int)
  35687. int __builtin_arm_getwcgr3 (void)
  35688. void __builtin_arm_setwcgr3 (int)
  35689. int __builtin_arm_textrmsb (v8qi, int)
  35690. int __builtin_arm_textrmsh (v4hi, int)
  35691. int __builtin_arm_textrmsw (v2si, int)
  35692. int __builtin_arm_textrmub (v8qi, int)
  35693. int __builtin_arm_textrmuh (v4hi, int)
  35694. int __builtin_arm_textrmuw (v2si, int)
  35695. v8qi __builtin_arm_tinsrb (v8qi, int, int)
  35696. v4hi __builtin_arm_tinsrh (v4hi, int, int)
  35697. v2si __builtin_arm_tinsrw (v2si, int, int)
  35698. long long __builtin_arm_tmia (long long, int, int)
  35699. long long __builtin_arm_tmiabb (long long, int, int)
  35700. long long __builtin_arm_tmiabt (long long, int, int)
  35701. long long __builtin_arm_tmiaph (long long, int, int)
  35702. long long __builtin_arm_tmiatb (long long, int, int)
  35703. long long __builtin_arm_tmiatt (long long, int, int)
  35704. int __builtin_arm_tmovmskb (v8qi)
  35705. int __builtin_arm_tmovmskh (v4hi)
  35706. int __builtin_arm_tmovmskw (v2si)
  35707. long long __builtin_arm_waccb (v8qi)
  35708. long long __builtin_arm_wacch (v4hi)
  35709. long long __builtin_arm_waccw (v2si)
  35710. v8qi __builtin_arm_waddb (v8qi, v8qi)
  35711. v8qi __builtin_arm_waddbss (v8qi, v8qi)
  35712. v8qi __builtin_arm_waddbus (v8qi, v8qi)
  35713. v4hi __builtin_arm_waddh (v4hi, v4hi)
  35714. v4hi __builtin_arm_waddhss (v4hi, v4hi)
  35715. v4hi __builtin_arm_waddhus (v4hi, v4hi)
  35716. v2si __builtin_arm_waddw (v2si, v2si)
  35717. v2si __builtin_arm_waddwss (v2si, v2si)
  35718. v2si __builtin_arm_waddwus (v2si, v2si)
  35719. v8qi __builtin_arm_walign (v8qi, v8qi, int)
  35720. long long __builtin_arm_wand(long long, long long)
  35721. long long __builtin_arm_wandn (long long, long long)
  35722. v8qi __builtin_arm_wavg2b (v8qi, v8qi)
  35723. v8qi __builtin_arm_wavg2br (v8qi, v8qi)
  35724. v4hi __builtin_arm_wavg2h (v4hi, v4hi)
  35725. v4hi __builtin_arm_wavg2hr (v4hi, v4hi)
  35726. v8qi __builtin_arm_wcmpeqb (v8qi, v8qi)
  35727. v4hi __builtin_arm_wcmpeqh (v4hi, v4hi)
  35728. v2si __builtin_arm_wcmpeqw (v2si, v2si)
  35729. v8qi __builtin_arm_wcmpgtsb (v8qi, v8qi)
  35730. v4hi __builtin_arm_wcmpgtsh (v4hi, v4hi)
  35731. v2si __builtin_arm_wcmpgtsw (v2si, v2si)
  35732. v8qi __builtin_arm_wcmpgtub (v8qi, v8qi)
  35733. v4hi __builtin_arm_wcmpgtuh (v4hi, v4hi)
  35734. v2si __builtin_arm_wcmpgtuw (v2si, v2si)
  35735. long long __builtin_arm_wmacs (long long, v4hi, v4hi)
  35736. long long __builtin_arm_wmacsz (v4hi, v4hi)
  35737. long long __builtin_arm_wmacu (long long, v4hi, v4hi)
  35738. long long __builtin_arm_wmacuz (v4hi, v4hi)
  35739. v4hi __builtin_arm_wmadds (v4hi, v4hi)
  35740. v4hi __builtin_arm_wmaddu (v4hi, v4hi)
  35741. v8qi __builtin_arm_wmaxsb (v8qi, v8qi)
  35742. v4hi __builtin_arm_wmaxsh (v4hi, v4hi)
  35743. v2si __builtin_arm_wmaxsw (v2si, v2si)
  35744. v8qi __builtin_arm_wmaxub (v8qi, v8qi)
  35745. v4hi __builtin_arm_wmaxuh (v4hi, v4hi)
  35746. v2si __builtin_arm_wmaxuw (v2si, v2si)
  35747. v8qi __builtin_arm_wminsb (v8qi, v8qi)
  35748. v4hi __builtin_arm_wminsh (v4hi, v4hi)
  35749. v2si __builtin_arm_wminsw (v2si, v2si)
  35750. v8qi __builtin_arm_wminub (v8qi, v8qi)
  35751. v4hi __builtin_arm_wminuh (v4hi, v4hi)
  35752. v2si __builtin_arm_wminuw (v2si, v2si)
  35753. v4hi __builtin_arm_wmulsm (v4hi, v4hi)
  35754. v4hi __builtin_arm_wmulul (v4hi, v4hi)
  35755. v4hi __builtin_arm_wmulum (v4hi, v4hi)
  35756. long long __builtin_arm_wor (long long, long long)
  35757. v2si __builtin_arm_wpackdss (long long, long long)
  35758. v2si __builtin_arm_wpackdus (long long, long long)
  35759. v8qi __builtin_arm_wpackhss (v4hi, v4hi)
  35760. v8qi __builtin_arm_wpackhus (v4hi, v4hi)
  35761. v4hi __builtin_arm_wpackwss (v2si, v2si)
  35762. v4hi __builtin_arm_wpackwus (v2si, v2si)
  35763. long long __builtin_arm_wrord (long long, long long)
  35764. long long __builtin_arm_wrordi (long long, int)
  35765. v4hi __builtin_arm_wrorh (v4hi, long long)
  35766. v4hi __builtin_arm_wrorhi (v4hi, int)
  35767. v2si __builtin_arm_wrorw (v2si, long long)
  35768. v2si __builtin_arm_wrorwi (v2si, int)
  35769. v2si __builtin_arm_wsadb (v2si, v8qi, v8qi)
  35770. v2si __builtin_arm_wsadbz (v8qi, v8qi)
  35771. v2si __builtin_arm_wsadh (v2si, v4hi, v4hi)
  35772. v2si __builtin_arm_wsadhz (v4hi, v4hi)
  35773. v4hi __builtin_arm_wshufh (v4hi, int)
  35774. long long __builtin_arm_wslld (long long, long long)
  35775. long long __builtin_arm_wslldi (long long, int)
  35776. v4hi __builtin_arm_wsllh (v4hi, long long)
  35777. v4hi __builtin_arm_wsllhi (v4hi, int)
  35778. v2si __builtin_arm_wsllw (v2si, long long)
  35779. v2si __builtin_arm_wsllwi (v2si, int)
  35780. long long __builtin_arm_wsrad (long long, long long)
  35781. long long __builtin_arm_wsradi (long long, int)
  35782. v4hi __builtin_arm_wsrah (v4hi, long long)
  35783. v4hi __builtin_arm_wsrahi (v4hi, int)
  35784. v2si __builtin_arm_wsraw (v2si, long long)
  35785. v2si __builtin_arm_wsrawi (v2si, int)
  35786. long long __builtin_arm_wsrld (long long, long long)
  35787. long long __builtin_arm_wsrldi (long long, int)
  35788. v4hi __builtin_arm_wsrlh (v4hi, long long)
  35789. v4hi __builtin_arm_wsrlhi (v4hi, int)
  35790. v2si __builtin_arm_wsrlw (v2si, long long)
  35791. v2si __builtin_arm_wsrlwi (v2si, int)
  35792. v8qi __builtin_arm_wsubb (v8qi, v8qi)
  35793. v8qi __builtin_arm_wsubbss (v8qi, v8qi)
  35794. v8qi __builtin_arm_wsubbus (v8qi, v8qi)
  35795. v4hi __builtin_arm_wsubh (v4hi, v4hi)
  35796. v4hi __builtin_arm_wsubhss (v4hi, v4hi)
  35797. v4hi __builtin_arm_wsubhus (v4hi, v4hi)
  35798. v2si __builtin_arm_wsubw (v2si, v2si)
  35799. v2si __builtin_arm_wsubwss (v2si, v2si)
  35800. v2si __builtin_arm_wsubwus (v2si, v2si)
  35801. v4hi __builtin_arm_wunpckehsb (v8qi)
  35802. v2si __builtin_arm_wunpckehsh (v4hi)
  35803. long long __builtin_arm_wunpckehsw (v2si)
  35804. v4hi __builtin_arm_wunpckehub (v8qi)
  35805. v2si __builtin_arm_wunpckehuh (v4hi)
  35806. long long __builtin_arm_wunpckehuw (v2si)
  35807. v4hi __builtin_arm_wunpckelsb (v8qi)
  35808. v2si __builtin_arm_wunpckelsh (v4hi)
  35809. long long __builtin_arm_wunpckelsw (v2si)
  35810. v4hi __builtin_arm_wunpckelub (v8qi)
  35811. v2si __builtin_arm_wunpckeluh (v4hi)
  35812. long long __builtin_arm_wunpckeluw (v2si)
  35813. v8qi __builtin_arm_wunpckihb (v8qi, v8qi)
  35814. v4hi __builtin_arm_wunpckihh (v4hi, v4hi)
  35815. v2si __builtin_arm_wunpckihw (v2si, v2si)
  35816. v8qi __builtin_arm_wunpckilb (v8qi, v8qi)
  35817. v4hi __builtin_arm_wunpckilh (v4hi, v4hi)
  35818. v2si __builtin_arm_wunpckilw (v2si, v2si)
  35819. long long __builtin_arm_wxor (long long, long long)
  35820. long long __builtin_arm_wzero ()
  35821. 
  35822. File: gcc.info, Node: ARM C Language Extensions (ACLE), Next: ARM Floating Point Status and Control Intrinsics, Prev: ARM iWMMXt Built-in Functions, Up: Target Builtins
  35823. 6.60.7 ARM C Language Extensions (ACLE)
  35824. ---------------------------------------
  35825. GCC implements extensions for C as described in the ARM C Language
  35826. Extensions (ACLE) specification, which can be found at
  35827. <https://developer.arm.com/documentation/ihi0053/latest/>.
  35828. As a part of ACLE, GCC implements extensions for Advanced SIMD as
  35829. described in the ARM C Language Extensions Specification. The complete
  35830. list of Advanced SIMD intrinsics can be found at
  35831. <https://developer.arm.com/documentation/ihi0073/latest/>. The built-in
  35832. intrinsics for the Advanced SIMD extension are available when NEON is
  35833. enabled.
  35834. Currently, ARM and AArch64 back ends do not support ACLE 2.0 fully.
  35835. Both back ends support CRC32 intrinsics and the ARM back end supports
  35836. the Coprocessor intrinsics, all from 'arm_acle.h'. The ARM back end's
  35837. 16-bit floating-point Advanced SIMD intrinsics currently comply to ACLE
  35838. v1.1. AArch64's back end does not have support for 16-bit floating
  35839. point Advanced SIMD intrinsics yet.
  35840. See *note ARM Options:: and *note AArch64 Options:: for more
  35841. information on the availability of extensions.
  35842. 
  35843. File: gcc.info, Node: ARM Floating Point Status and Control Intrinsics, Next: ARM ARMv8-M Security Extensions, Prev: ARM C Language Extensions (ACLE), Up: Target Builtins
  35844. 6.60.8 ARM Floating Point Status and Control Intrinsics
  35845. -------------------------------------------------------
  35846. These built-in functions are available for the ARM family of processors
  35847. with floating-point unit.
  35848. unsigned int __builtin_arm_get_fpscr ()
  35849. void __builtin_arm_set_fpscr (unsigned int)
  35850. 
  35851. File: gcc.info, Node: ARM ARMv8-M Security Extensions, Next: AVR Built-in Functions, Prev: ARM Floating Point Status and Control Intrinsics, Up: Target Builtins
  35852. 6.60.9 ARM ARMv8-M Security Extensions
  35853. --------------------------------------
  35854. GCC implements the ARMv8-M Security Extensions as described in the
  35855. ARMv8-M Security Extensions: Requirements on Development Tools
  35856. Engineering Specification, which can be found at
  35857. <https://developer.arm.com/documentation/ecm0359818/latest/>.
  35858. As part of the Security Extensions GCC implements two new function
  35859. attributes: 'cmse_nonsecure_entry' and 'cmse_nonsecure_call'.
  35860. As part of the Security Extensions GCC implements the intrinsics below.
  35861. FPTR is used here to mean any function pointer type.
  35862. cmse_address_info_t cmse_TT (void *)
  35863. cmse_address_info_t cmse_TT_fptr (FPTR)
  35864. cmse_address_info_t cmse_TTT (void *)
  35865. cmse_address_info_t cmse_TTT_fptr (FPTR)
  35866. cmse_address_info_t cmse_TTA (void *)
  35867. cmse_address_info_t cmse_TTA_fptr (FPTR)
  35868. cmse_address_info_t cmse_TTAT (void *)
  35869. cmse_address_info_t cmse_TTAT_fptr (FPTR)
  35870. void * cmse_check_address_range (void *, size_t, int)
  35871. typeof(p) cmse_nsfptr_create (FPTR p)
  35872. intptr_t cmse_is_nsfptr (FPTR)
  35873. int cmse_nonsecure_caller (void)
  35874. 
  35875. File: gcc.info, Node: AVR Built-in Functions, Next: Blackfin Built-in Functions, Prev: ARM ARMv8-M Security Extensions, Up: Target Builtins
  35876. 6.60.10 AVR Built-in Functions
  35877. ------------------------------
  35878. For each built-in function for AVR, there is an equally named, uppercase
  35879. built-in macro defined. That way users can easily query if or if not a
  35880. specific built-in is implemented or not. For example, if
  35881. '__builtin_avr_nop' is available the macro '__BUILTIN_AVR_NOP' is
  35882. defined to '1' and undefined otherwise.
  35883. 'void __builtin_avr_nop (void)'
  35884. 'void __builtin_avr_sei (void)'
  35885. 'void __builtin_avr_cli (void)'
  35886. 'void __builtin_avr_sleep (void)'
  35887. 'void __builtin_avr_wdr (void)'
  35888. 'unsigned char __builtin_avr_swap (unsigned char)'
  35889. 'unsigned int __builtin_avr_fmul (unsigned char, unsigned char)'
  35890. 'int __builtin_avr_fmuls (char, char)'
  35891. 'int __builtin_avr_fmulsu (char, unsigned char)'
  35892. These built-in functions map to the respective machine instruction,
  35893. i.e. 'nop', 'sei', 'cli', 'sleep', 'wdr', 'swap', 'fmul', 'fmuls'
  35894. resp. 'fmulsu'. The three 'fmul*' built-ins are implemented as
  35895. library call if no hardware multiplier is available.
  35896. 'void __builtin_avr_delay_cycles (unsigned long ticks)'
  35897. Delay execution for TICKS cycles. Note that this built-in does not
  35898. take into account the effect of interrupts that might increase
  35899. delay time. TICKS must be a compile-time integer constant; delays
  35900. with a variable number of cycles are not supported.
  35901. 'char __builtin_avr_flash_segment (const __memx void*)'
  35902. This built-in takes a byte address to the 24-bit *note address
  35903. space: AVR Named Address Spaces. '__memx' and returns the number of
  35904. the flash segment (the 64 KiB chunk) where the address points to.
  35905. Counting starts at '0'. If the address does not point to flash
  35906. memory, return '-1'.
  35907. 'uint8_t __builtin_avr_insert_bits (uint32_t map, uint8_t bits, uint8_t val)'
  35908. Insert bits from BITS into VAL and return the resulting value. The
  35909. nibbles of MAP determine how the insertion is performed: Let X be
  35910. the N-th nibble of MAP
  35911. 1. If X is '0xf', then the N-th bit of VAL is returned unaltered.
  35912. 2. If X is in the range 0...7, then the N-th result bit is set to
  35913. the X-th bit of BITS
  35914. 3. If X is in the range 8...'0xe', then the N-th result bit is
  35915. undefined.
  35916. One typical use case for this built-in is adjusting input and
  35917. output values to non-contiguous port layouts. Some examples:
  35918. // same as val, bits is unused
  35919. __builtin_avr_insert_bits (0xffffffff, bits, val)
  35920. // same as bits, val is unused
  35921. __builtin_avr_insert_bits (0x76543210, bits, val)
  35922. // same as rotating bits by 4
  35923. __builtin_avr_insert_bits (0x32107654, bits, 0)
  35924. // high nibble of result is the high nibble of val
  35925. // low nibble of result is the low nibble of bits
  35926. __builtin_avr_insert_bits (0xffff3210, bits, val)
  35927. // reverse the bit order of bits
  35928. __builtin_avr_insert_bits (0x01234567, bits, 0)
  35929. 'void __builtin_avr_nops (unsigned count)'
  35930. Insert COUNT 'NOP' instructions. The number of instructions must
  35931. be a compile-time integer constant.
  35932. There are many more AVR-specific built-in functions that are used to
  35933. implement the ISO/IEC TR 18037 "Embedded C" fixed-point functions of
  35934. section 7.18a.6. You don't need to use these built-ins directly.
  35935. Instead, use the declarations as supplied by the 'stdfix.h' header with
  35936. GNU-C99:
  35937. #include <stdfix.h>
  35938. // Re-interpret the bit representation of unsigned 16-bit
  35939. // integer UVAL as Q-format 0.16 value.
  35940. unsigned fract get_bits (uint_ur_t uval)
  35941. {
  35942. return urbits (uval);
  35943. }
  35944. 
  35945. File: gcc.info, Node: Blackfin Built-in Functions, Next: BPF Built-in Functions, Prev: AVR Built-in Functions, Up: Target Builtins
  35946. 6.60.11 Blackfin Built-in Functions
  35947. -----------------------------------
  35948. Currently, there are two Blackfin-specific built-in functions. These
  35949. are used for generating 'CSYNC' and 'SSYNC' machine insns without using
  35950. inline assembly; by using these built-in functions the compiler can
  35951. automatically add workarounds for hardware errata involving these
  35952. instructions. These functions are named as follows:
  35953. void __builtin_bfin_csync (void)
  35954. void __builtin_bfin_ssync (void)
  35955. 
  35956. File: gcc.info, Node: BPF Built-in Functions, Next: FR-V Built-in Functions, Prev: Blackfin Built-in Functions, Up: Target Builtins
  35957. 6.60.12 BPF Built-in Functions
  35958. ------------------------------
  35959. The following built-in functions are available for eBPF targets.
  35960. -- Built-in Function: unsigned long long __builtin_bpf_load_byte
  35961. (unsigned long long OFFSET)
  35962. Load a byte from the 'struct sk_buff' packet data pointed by the
  35963. register '%r6' and return it.
  35964. -- Built-in Function: unsigned long long __builtin_bpf_load_half
  35965. (unsigned long long OFFSET)
  35966. Load 16-bits from the 'struct sk_buff' packet data pointed by the
  35967. register '%r6' and return it.
  35968. -- Built-in Function: unsigned long long __builtin_bpf_load_word
  35969. (unsigned long long OFFSET)
  35970. Load 32-bits from the 'struct sk_buff' packet data pointed by the
  35971. register '%r6' and return it.
  35972. 
  35973. File: gcc.info, Node: FR-V Built-in Functions, Next: MIPS DSP Built-in Functions, Prev: BPF Built-in Functions, Up: Target Builtins
  35974. 6.60.13 FR-V Built-in Functions
  35975. -------------------------------
  35976. GCC provides many FR-V-specific built-in functions. In general, these
  35977. functions are intended to be compatible with those described by 'FR-V
  35978. Family, Softune C/C++ Compiler Manual (V6), Fujitsu Semiconductor'. The
  35979. two exceptions are '__MDUNPACKH' and '__MBTOHE', the GCC forms of which
  35980. pass 128-bit values by pointer rather than by value.
  35981. Most of the functions are named after specific FR-V instructions. Such
  35982. functions are said to be "directly mapped" and are summarized here in
  35983. tabular form.
  35984. * Menu:
  35985. * Argument Types::
  35986. * Directly-mapped Integer Functions::
  35987. * Directly-mapped Media Functions::
  35988. * Raw read/write Functions::
  35989. * Other Built-in Functions::
  35990. 
  35991. File: gcc.info, Node: Argument Types, Next: Directly-mapped Integer Functions, Up: FR-V Built-in Functions
  35992. 6.60.13.1 Argument Types
  35993. ........................
  35994. The arguments to the built-in functions can be divided into three
  35995. groups: register numbers, compile-time constants and run-time values.
  35996. In order to make this classification clear at a glance, the arguments
  35997. and return values are given the following pseudo types:
  35998. Pseudo type Real C type Constant? Description
  35999. 'uh' 'unsigned short' No an unsigned halfword
  36000. 'uw1' 'unsigned int' No an unsigned word
  36001. 'sw1' 'int' No a signed word
  36002. 'uw2' 'unsigned long long' No an unsigned doubleword
  36003. 'sw2' 'long long' No a signed doubleword
  36004. 'const' 'int' Yes an integer constant
  36005. 'acc' 'int' Yes an ACC register number
  36006. 'iacc' 'int' Yes an IACC register number
  36007. These pseudo types are not defined by GCC, they are simply a notational
  36008. convenience used in this manual.
  36009. Arguments of type 'uh', 'uw1', 'sw1', 'uw2' and 'sw2' are evaluated at
  36010. run time. They correspond to register operands in the underlying FR-V
  36011. instructions.
  36012. 'const' arguments represent immediate operands in the underlying FR-V
  36013. instructions. They must be compile-time constants.
  36014. 'acc' arguments are evaluated at compile time and specify the number of
  36015. an accumulator register. For example, an 'acc' argument of 2 selects
  36016. the ACC2 register.
  36017. 'iacc' arguments are similar to 'acc' arguments but specify the number
  36018. of an IACC register. See *note Other Built-in Functions:: for more
  36019. details.
  36020. 
  36021. File: gcc.info, Node: Directly-mapped Integer Functions, Next: Directly-mapped Media Functions, Prev: Argument Types, Up: FR-V Built-in Functions
  36022. 6.60.13.2 Directly-Mapped Integer Functions
  36023. ...........................................
  36024. The functions listed below map directly to FR-V I-type instructions.
  36025. Function prototype Example usage Assembly output
  36026. 'sw1 __ADDSS (sw1, sw1)' 'C = __ADDSS (A, B)' 'ADDSS A,B,C'
  36027. 'sw1 __SCAN (sw1, sw1)' 'C = __SCAN (A, B)' 'SCAN A,B,C'
  36028. 'sw1 __SCUTSS (sw1)' 'B = __SCUTSS (A)' 'SCUTSS A,B'
  36029. 'sw1 __SLASS (sw1, sw1)' 'C = __SLASS (A, B)' 'SLASS A,B,C'
  36030. 'void __SMASS (sw1, sw1)' '__SMASS (A, B)' 'SMASS A,B'
  36031. 'void __SMSSS (sw1, sw1)' '__SMSSS (A, B)' 'SMSSS A,B'
  36032. 'void __SMU (sw1, sw1)' '__SMU (A, B)' 'SMU A,B'
  36033. 'sw2 __SMUL (sw1, sw1)' 'C = __SMUL (A, B)' 'SMUL A,B,C'
  36034. 'sw1 __SUBSS (sw1, sw1)' 'C = __SUBSS (A, B)' 'SUBSS A,B,C'
  36035. 'uw2 __UMUL (uw1, uw1)' 'C = __UMUL (A, B)' 'UMUL A,B,C'
  36036. 
  36037. File: gcc.info, Node: Directly-mapped Media Functions, Next: Raw read/write Functions, Prev: Directly-mapped Integer Functions, Up: FR-V Built-in Functions
  36038. 6.60.13.3 Directly-Mapped Media Functions
  36039. .........................................
  36040. The functions listed below map directly to FR-V M-type instructions.
  36041. Function prototype Example usage Assembly output
  36042. 'uw1 __MABSHS (sw1)' 'B = __MABSHS (A)' 'MABSHS A,B'
  36043. 'void __MADDACCS (acc, acc)' '__MADDACCS (B, A)' 'MADDACCS A,B'
  36044. 'sw1 __MADDHSS (sw1, sw1)' 'C = __MADDHSS (A, 'MADDHSS A,B,C'
  36045. B)'
  36046. 'uw1 __MADDHUS (uw1, uw1)' 'C = __MADDHUS (A, 'MADDHUS A,B,C'
  36047. B)'
  36048. 'uw1 __MAND (uw1, uw1)' 'C = __MAND (A, B)' 'MAND A,B,C'
  36049. 'void __MASACCS (acc, acc)' '__MASACCS (B, A)' 'MASACCS A,B'
  36050. 'uw1 __MAVEH (uw1, uw1)' 'C = __MAVEH (A, B)' 'MAVEH A,B,C'
  36051. 'uw2 __MBTOH (uw1)' 'B = __MBTOH (A)' 'MBTOH A,B'
  36052. 'void __MBTOHE (uw1 *, uw1)' '__MBTOHE (&B, A)' 'MBTOHE A,B'
  36053. 'void __MCLRACC (acc)' '__MCLRACC (A)' 'MCLRACC A'
  36054. 'void __MCLRACCA (void)' '__MCLRACCA ()' 'MCLRACCA'
  36055. 'uw1 __Mcop1 (uw1, uw1)' 'C = __Mcop1 (A, B)' 'Mcop1 A,B,C'
  36056. 'uw1 __Mcop2 (uw1, uw1)' 'C = __Mcop2 (A, B)' 'Mcop2 A,B,C'
  36057. 'uw1 __MCPLHI (uw2, const)' 'C = __MCPLHI (A, B)' 'MCPLHI A,#B,C'
  36058. 'uw1 __MCPLI (uw2, const)' 'C = __MCPLI (A, B)' 'MCPLI A,#B,C'
  36059. 'void __MCPXIS (acc, sw1, '__MCPXIS (C, A, B)' 'MCPXIS A,B,C'
  36060. sw1)'
  36061. 'void __MCPXIU (acc, uw1, '__MCPXIU (C, A, B)' 'MCPXIU A,B,C'
  36062. uw1)'
  36063. 'void __MCPXRS (acc, sw1, '__MCPXRS (C, A, B)' 'MCPXRS A,B,C'
  36064. sw1)'
  36065. 'void __MCPXRU (acc, uw1, '__MCPXRU (C, A, B)' 'MCPXRU A,B,C'
  36066. uw1)'
  36067. 'uw1 __MCUT (acc, uw1)' 'C = __MCUT (A, B)' 'MCUT A,B,C'
  36068. 'uw1 __MCUTSS (acc, sw1)' 'C = __MCUTSS (A, B)' 'MCUTSS A,B,C'
  36069. 'void __MDADDACCS (acc, acc)' '__MDADDACCS (B, A)' 'MDADDACCS A,B'
  36070. 'void __MDASACCS (acc, acc)' '__MDASACCS (B, A)' 'MDASACCS A,B'
  36071. 'uw2 __MDCUTSSI (acc, const)' 'C = __MDCUTSSI (A, 'MDCUTSSI
  36072. B)' A,#B,C'
  36073. 'uw2 __MDPACKH (uw2, uw2)' 'C = __MDPACKH (A, 'MDPACKH A,B,C'
  36074. B)'
  36075. 'uw2 __MDROTLI (uw2, const)' 'C = __MDROTLI (A, 'MDROTLI
  36076. B)' A,#B,C'
  36077. 'void __MDSUBACCS (acc, acc)' '__MDSUBACCS (B, A)' 'MDSUBACCS A,B'
  36078. 'void __MDUNPACKH (uw1 *, '__MDUNPACKH (&B, A)' 'MDUNPACKH A,B'
  36079. uw2)'
  36080. 'uw2 __MEXPDHD (uw1, const)' 'C = __MEXPDHD (A, 'MEXPDHD
  36081. B)' A,#B,C'
  36082. 'uw1 __MEXPDHW (uw1, const)' 'C = __MEXPDHW (A, 'MEXPDHW
  36083. B)' A,#B,C'
  36084. 'uw1 __MHDSETH (uw1, const)' 'C = __MHDSETH (A, 'MHDSETH
  36085. B)' A,#B,C'
  36086. 'sw1 __MHDSETS (const)' 'B = __MHDSETS (A)' 'MHDSETS #A,B'
  36087. 'uw1 __MHSETHIH (uw1, const)' 'B = __MHSETHIH (B, 'MHSETHIH #A,B'
  36088. A)'
  36089. 'sw1 __MHSETHIS (sw1, const)' 'B = __MHSETHIS (B, 'MHSETHIS #A,B'
  36090. A)'
  36091. 'uw1 __MHSETLOH (uw1, const)' 'B = __MHSETLOH (B, 'MHSETLOH #A,B'
  36092. A)'
  36093. 'sw1 __MHSETLOS (sw1, const)' 'B = __MHSETLOS (B, 'MHSETLOS #A,B'
  36094. A)'
  36095. 'uw1 __MHTOB (uw2)' 'B = __MHTOB (A)' 'MHTOB A,B'
  36096. 'void __MMACHS (acc, sw1, '__MMACHS (C, A, B)' 'MMACHS A,B,C'
  36097. sw1)'
  36098. 'void __MMACHU (acc, uw1, '__MMACHU (C, A, B)' 'MMACHU A,B,C'
  36099. uw1)'
  36100. 'void __MMRDHS (acc, sw1, '__MMRDHS (C, A, B)' 'MMRDHS A,B,C'
  36101. sw1)'
  36102. 'void __MMRDHU (acc, uw1, '__MMRDHU (C, A, B)' 'MMRDHU A,B,C'
  36103. uw1)'
  36104. 'void __MMULHS (acc, sw1, '__MMULHS (C, A, B)' 'MMULHS A,B,C'
  36105. sw1)'
  36106. 'void __MMULHU (acc, uw1, '__MMULHU (C, A, B)' 'MMULHU A,B,C'
  36107. uw1)'
  36108. 'void __MMULXHS (acc, sw1, '__MMULXHS (C, A, B)' 'MMULXHS A,B,C'
  36109. sw1)'
  36110. 'void __MMULXHU (acc, uw1, '__MMULXHU (C, A, B)' 'MMULXHU A,B,C'
  36111. uw1)'
  36112. 'uw1 __MNOT (uw1)' 'B = __MNOT (A)' 'MNOT A,B'
  36113. 'uw1 __MOR (uw1, uw1)' 'C = __MOR (A, B)' 'MOR A,B,C'
  36114. 'uw1 __MPACKH (uh, uh)' 'C = __MPACKH (A, B)' 'MPACKH A,B,C'
  36115. 'sw2 __MQADDHSS (sw2, sw2)' 'C = __MQADDHSS (A, 'MQADDHSS
  36116. B)' A,B,C'
  36117. 'uw2 __MQADDHUS (uw2, uw2)' 'C = __MQADDHUS (A, 'MQADDHUS
  36118. B)' A,B,C'
  36119. 'void __MQCPXIS (acc, sw2, '__MQCPXIS (C, A, B)' 'MQCPXIS A,B,C'
  36120. sw2)'
  36121. 'void __MQCPXIU (acc, uw2, '__MQCPXIU (C, A, B)' 'MQCPXIU A,B,C'
  36122. uw2)'
  36123. 'void __MQCPXRS (acc, sw2, '__MQCPXRS (C, A, B)' 'MQCPXRS A,B,C'
  36124. sw2)'
  36125. 'void __MQCPXRU (acc, uw2, '__MQCPXRU (C, A, B)' 'MQCPXRU A,B,C'
  36126. uw2)'
  36127. 'sw2 __MQLCLRHS (sw2, sw2)' 'C = __MQLCLRHS (A, 'MQLCLRHS
  36128. B)' A,B,C'
  36129. 'sw2 __MQLMTHS (sw2, sw2)' 'C = __MQLMTHS (A, 'MQLMTHS A,B,C'
  36130. B)'
  36131. 'void __MQMACHS (acc, sw2, '__MQMACHS (C, A, B)' 'MQMACHS A,B,C'
  36132. sw2)'
  36133. 'void __MQMACHU (acc, uw2, '__MQMACHU (C, A, B)' 'MQMACHU A,B,C'
  36134. uw2)'
  36135. 'void __MQMACXHS (acc, sw2, '__MQMACXHS (C, A, 'MQMACXHS
  36136. sw2)' B)' A,B,C'
  36137. 'void __MQMULHS (acc, sw2, '__MQMULHS (C, A, B)' 'MQMULHS A,B,C'
  36138. sw2)'
  36139. 'void __MQMULHU (acc, uw2, '__MQMULHU (C, A, B)' 'MQMULHU A,B,C'
  36140. uw2)'
  36141. 'void __MQMULXHS (acc, sw2, '__MQMULXHS (C, A, 'MQMULXHS
  36142. sw2)' B)' A,B,C'
  36143. 'void __MQMULXHU (acc, uw2, '__MQMULXHU (C, A, 'MQMULXHU
  36144. uw2)' B)' A,B,C'
  36145. 'sw2 __MQSATHS (sw2, sw2)' 'C = __MQSATHS (A, 'MQSATHS A,B,C'
  36146. B)'
  36147. 'uw2 __MQSLLHI (uw2, int)' 'C = __MQSLLHI (A, 'MQSLLHI A,B,C'
  36148. B)'
  36149. 'sw2 __MQSRAHI (sw2, int)' 'C = __MQSRAHI (A, 'MQSRAHI A,B,C'
  36150. B)'
  36151. 'sw2 __MQSUBHSS (sw2, sw2)' 'C = __MQSUBHSS (A, 'MQSUBHSS
  36152. B)' A,B,C'
  36153. 'uw2 __MQSUBHUS (uw2, uw2)' 'C = __MQSUBHUS (A, 'MQSUBHUS
  36154. B)' A,B,C'
  36155. 'void __MQXMACHS (acc, sw2, '__MQXMACHS (C, A, 'MQXMACHS
  36156. sw2)' B)' A,B,C'
  36157. 'void __MQXMACXHS (acc, sw2, '__MQXMACXHS (C, A, 'MQXMACXHS
  36158. sw2)' B)' A,B,C'
  36159. 'uw1 __MRDACC (acc)' 'B = __MRDACC (A)' 'MRDACC A,B'
  36160. 'uw1 __MRDACCG (acc)' 'B = __MRDACCG (A)' 'MRDACCG A,B'
  36161. 'uw1 __MROTLI (uw1, const)' 'C = __MROTLI (A, B)' 'MROTLI A,#B,C'
  36162. 'uw1 __MROTRI (uw1, const)' 'C = __MROTRI (A, B)' 'MROTRI A,#B,C'
  36163. 'sw1 __MSATHS (sw1, sw1)' 'C = __MSATHS (A, B)' 'MSATHS A,B,C'
  36164. 'uw1 __MSATHU (uw1, uw1)' 'C = __MSATHU (A, B)' 'MSATHU A,B,C'
  36165. 'uw1 __MSLLHI (uw1, const)' 'C = __MSLLHI (A, B)' 'MSLLHI A,#B,C'
  36166. 'sw1 __MSRAHI (sw1, const)' 'C = __MSRAHI (A, B)' 'MSRAHI A,#B,C'
  36167. 'uw1 __MSRLHI (uw1, const)' 'C = __MSRLHI (A, B)' 'MSRLHI A,#B,C'
  36168. 'void __MSUBACCS (acc, acc)' '__MSUBACCS (B, A)' 'MSUBACCS A,B'
  36169. 'sw1 __MSUBHSS (sw1, sw1)' 'C = __MSUBHSS (A, 'MSUBHSS A,B,C'
  36170. B)'
  36171. 'uw1 __MSUBHUS (uw1, uw1)' 'C = __MSUBHUS (A, 'MSUBHUS A,B,C'
  36172. B)'
  36173. 'void __MTRAP (void)' '__MTRAP ()' 'MTRAP'
  36174. 'uw2 __MUNPACKH (uw1)' 'B = __MUNPACKH (A)' 'MUNPACKH A,B'
  36175. 'uw1 __MWCUT (uw2, uw1)' 'C = __MWCUT (A, B)' 'MWCUT A,B,C'
  36176. 'void __MWTACC (acc, uw1)' '__MWTACC (B, A)' 'MWTACC A,B'
  36177. 'void __MWTACCG (acc, uw1)' '__MWTACCG (B, A)' 'MWTACCG A,B'
  36178. 'uw1 __MXOR (uw1, uw1)' 'C = __MXOR (A, B)' 'MXOR A,B,C'
  36179. 
  36180. File: gcc.info, Node: Raw read/write Functions, Next: Other Built-in Functions, Prev: Directly-mapped Media Functions, Up: FR-V Built-in Functions
  36181. 6.60.13.4 Raw Read/Write Functions
  36182. ..................................
  36183. This sections describes built-in functions related to read and write
  36184. instructions to access memory. These functions generate 'membar'
  36185. instructions to flush the I/O load and stores where appropriate, as
  36186. described in Fujitsu's manual described above.
  36187. 'unsigned char __builtin_read8 (void *DATA)'
  36188. 'unsigned short __builtin_read16 (void *DATA)'
  36189. 'unsigned long __builtin_read32 (void *DATA)'
  36190. 'unsigned long long __builtin_read64 (void *DATA)'
  36191. 'void __builtin_write8 (void *DATA, unsigned char DATUM)'
  36192. 'void __builtin_write16 (void *DATA, unsigned short DATUM)'
  36193. 'void __builtin_write32 (void *DATA, unsigned long DATUM)'
  36194. 'void __builtin_write64 (void *DATA, unsigned long long DATUM)'
  36195. 
  36196. File: gcc.info, Node: Other Built-in Functions, Prev: Raw read/write Functions, Up: FR-V Built-in Functions
  36197. 6.60.13.5 Other Built-in Functions
  36198. ..................................
  36199. This section describes built-in functions that are not named after a
  36200. specific FR-V instruction.
  36201. 'sw2 __IACCreadll (iacc REG)'
  36202. Return the full 64-bit value of IACC0. The REG argument is
  36203. reserved for future expansion and must be 0.
  36204. 'sw1 __IACCreadl (iacc REG)'
  36205. Return the value of IACC0H if REG is 0 and IACC0L if REG is 1.
  36206. Other values of REG are rejected as invalid.
  36207. 'void __IACCsetll (iacc REG, sw2 X)'
  36208. Set the full 64-bit value of IACC0 to X. The REG argument is
  36209. reserved for future expansion and must be 0.
  36210. 'void __IACCsetl (iacc REG, sw1 X)'
  36211. Set IACC0H to X if REG is 0 and IACC0L to X if REG is 1. Other
  36212. values of REG are rejected as invalid.
  36213. 'void __data_prefetch0 (const void *X)'
  36214. Use the 'dcpl' instruction to load the contents of address X into
  36215. the data cache.
  36216. 'void __data_prefetch (const void *X)'
  36217. Use the 'nldub' instruction to load the contents of address X into
  36218. the data cache. The instruction is issued in slot I1.
  36219. 
  36220. File: gcc.info, Node: MIPS DSP Built-in Functions, Next: MIPS Paired-Single Support, Prev: FR-V Built-in Functions, Up: Target Builtins
  36221. 6.60.14 MIPS DSP Built-in Functions
  36222. -----------------------------------
  36223. The MIPS DSP Application-Specific Extension (ASE) includes new
  36224. instructions that are designed to improve the performance of DSP and
  36225. media applications. It provides instructions that operate on packed
  36226. 8-bit/16-bit integer data, Q7, Q15 and Q31 fractional data.
  36227. GCC supports MIPS DSP operations using both the generic vector
  36228. extensions (*note Vector Extensions::) and a collection of MIPS-specific
  36229. built-in functions. Both kinds of support are enabled by the '-mdsp'
  36230. command-line option.
  36231. Revision 2 of the ASE was introduced in the second half of 2006. This
  36232. revision adds extra instructions to the original ASE, but is otherwise
  36233. backwards-compatible with it. You can select revision 2 using the
  36234. command-line option '-mdspr2'; this option implies '-mdsp'.
  36235. The SCOUNT and POS bits of the DSP control register are global. The
  36236. WRDSP, EXTPDP, EXTPDPV and MTHLIP instructions modify the SCOUNT and POS
  36237. bits. During optimization, the compiler does not delete these
  36238. instructions and it does not delete calls to functions containing these
  36239. instructions.
  36240. At present, GCC only provides support for operations on 32-bit vectors.
  36241. The vector type associated with 8-bit integer data is usually called
  36242. 'v4i8', the vector type associated with Q7 is usually called 'v4q7', the
  36243. vector type associated with 16-bit integer data is usually called
  36244. 'v2i16', and the vector type associated with Q15 is usually called
  36245. 'v2q15'. They can be defined in C as follows:
  36246. typedef signed char v4i8 __attribute__ ((vector_size(4)));
  36247. typedef signed char v4q7 __attribute__ ((vector_size(4)));
  36248. typedef short v2i16 __attribute__ ((vector_size(4)));
  36249. typedef short v2q15 __attribute__ ((vector_size(4)));
  36250. 'v4i8', 'v4q7', 'v2i16' and 'v2q15' values are initialized in the same
  36251. way as aggregates. For example:
  36252. v4i8 a = {1, 2, 3, 4};
  36253. v4i8 b;
  36254. b = (v4i8) {5, 6, 7, 8};
  36255. v2q15 c = {0x0fcb, 0x3a75};
  36256. v2q15 d;
  36257. d = (v2q15) {0.1234 * 0x1.0p15, 0.4567 * 0x1.0p15};
  36258. _Note:_ The CPU's endianness determines the order in which values are
  36259. packed. On little-endian targets, the first value is the least
  36260. significant and the last value is the most significant. The opposite
  36261. order applies to big-endian targets. For example, the code above sets
  36262. the lowest byte of 'a' to '1' on little-endian targets and '4' on
  36263. big-endian targets.
  36264. _Note:_ Q7, Q15 and Q31 values must be initialized with their integer
  36265. representation. As shown in this example, the integer representation of
  36266. a Q7 value can be obtained by multiplying the fractional value by
  36267. '0x1.0p7'. The equivalent for Q15 values is to multiply by '0x1.0p15'.
  36268. The equivalent for Q31 values is to multiply by '0x1.0p31'.
  36269. The table below lists the 'v4i8' and 'v2q15' operations for which
  36270. hardware support exists. 'a' and 'b' are 'v4i8' values, and 'c' and 'd'
  36271. are 'v2q15' values.
  36272. C code MIPS instruction
  36273. 'a + b' 'addu.qb'
  36274. 'c + d' 'addq.ph'
  36275. 'a - b' 'subu.qb'
  36276. 'c - d' 'subq.ph'
  36277. The table below lists the 'v2i16' operation for which hardware support
  36278. exists for the DSP ASE REV 2. 'e' and 'f' are 'v2i16' values.
  36279. C code MIPS instruction
  36280. 'e * f' 'mul.ph'
  36281. It is easier to describe the DSP built-in functions if we first define
  36282. the following types:
  36283. typedef int q31;
  36284. typedef int i32;
  36285. typedef unsigned int ui32;
  36286. typedef long long a64;
  36287. 'q31' and 'i32' are actually the same as 'int', but we use 'q31' to
  36288. indicate a Q31 fractional value and 'i32' to indicate a 32-bit integer
  36289. value. Similarly, 'a64' is the same as 'long long', but we use 'a64' to
  36290. indicate values that are placed in one of the four DSP accumulators
  36291. ('$ac0', '$ac1', '$ac2' or '$ac3').
  36292. Also, some built-in functions prefer or require immediate numbers as
  36293. parameters, because the corresponding DSP instructions accept both
  36294. immediate numbers and register operands, or accept immediate numbers
  36295. only. The immediate parameters are listed as follows.
  36296. imm0_3: 0 to 3.
  36297. imm0_7: 0 to 7.
  36298. imm0_15: 0 to 15.
  36299. imm0_31: 0 to 31.
  36300. imm0_63: 0 to 63.
  36301. imm0_255: 0 to 255.
  36302. imm_n32_31: -32 to 31.
  36303. imm_n512_511: -512 to 511.
  36304. The following built-in functions map directly to a particular MIPS DSP
  36305. instruction. Please refer to the architecture specification for details
  36306. on what each instruction does.
  36307. v2q15 __builtin_mips_addq_ph (v2q15, v2q15)
  36308. v2q15 __builtin_mips_addq_s_ph (v2q15, v2q15)
  36309. q31 __builtin_mips_addq_s_w (q31, q31)
  36310. v4i8 __builtin_mips_addu_qb (v4i8, v4i8)
  36311. v4i8 __builtin_mips_addu_s_qb (v4i8, v4i8)
  36312. v2q15 __builtin_mips_subq_ph (v2q15, v2q15)
  36313. v2q15 __builtin_mips_subq_s_ph (v2q15, v2q15)
  36314. q31 __builtin_mips_subq_s_w (q31, q31)
  36315. v4i8 __builtin_mips_subu_qb (v4i8, v4i8)
  36316. v4i8 __builtin_mips_subu_s_qb (v4i8, v4i8)
  36317. i32 __builtin_mips_addsc (i32, i32)
  36318. i32 __builtin_mips_addwc (i32, i32)
  36319. i32 __builtin_mips_modsub (i32, i32)
  36320. i32 __builtin_mips_raddu_w_qb (v4i8)
  36321. v2q15 __builtin_mips_absq_s_ph (v2q15)
  36322. q31 __builtin_mips_absq_s_w (q31)
  36323. v4i8 __builtin_mips_precrq_qb_ph (v2q15, v2q15)
  36324. v2q15 __builtin_mips_precrq_ph_w (q31, q31)
  36325. v2q15 __builtin_mips_precrq_rs_ph_w (q31, q31)
  36326. v4i8 __builtin_mips_precrqu_s_qb_ph (v2q15, v2q15)
  36327. q31 __builtin_mips_preceq_w_phl (v2q15)
  36328. q31 __builtin_mips_preceq_w_phr (v2q15)
  36329. v2q15 __builtin_mips_precequ_ph_qbl (v4i8)
  36330. v2q15 __builtin_mips_precequ_ph_qbr (v4i8)
  36331. v2q15 __builtin_mips_precequ_ph_qbla (v4i8)
  36332. v2q15 __builtin_mips_precequ_ph_qbra (v4i8)
  36333. v2q15 __builtin_mips_preceu_ph_qbl (v4i8)
  36334. v2q15 __builtin_mips_preceu_ph_qbr (v4i8)
  36335. v2q15 __builtin_mips_preceu_ph_qbla (v4i8)
  36336. v2q15 __builtin_mips_preceu_ph_qbra (v4i8)
  36337. v4i8 __builtin_mips_shll_qb (v4i8, imm0_7)
  36338. v4i8 __builtin_mips_shll_qb (v4i8, i32)
  36339. v2q15 __builtin_mips_shll_ph (v2q15, imm0_15)
  36340. v2q15 __builtin_mips_shll_ph (v2q15, i32)
  36341. v2q15 __builtin_mips_shll_s_ph (v2q15, imm0_15)
  36342. v2q15 __builtin_mips_shll_s_ph (v2q15, i32)
  36343. q31 __builtin_mips_shll_s_w (q31, imm0_31)
  36344. q31 __builtin_mips_shll_s_w (q31, i32)
  36345. v4i8 __builtin_mips_shrl_qb (v4i8, imm0_7)
  36346. v4i8 __builtin_mips_shrl_qb (v4i8, i32)
  36347. v2q15 __builtin_mips_shra_ph (v2q15, imm0_15)
  36348. v2q15 __builtin_mips_shra_ph (v2q15, i32)
  36349. v2q15 __builtin_mips_shra_r_ph (v2q15, imm0_15)
  36350. v2q15 __builtin_mips_shra_r_ph (v2q15, i32)
  36351. q31 __builtin_mips_shra_r_w (q31, imm0_31)
  36352. q31 __builtin_mips_shra_r_w (q31, i32)
  36353. v2q15 __builtin_mips_muleu_s_ph_qbl (v4i8, v2q15)
  36354. v2q15 __builtin_mips_muleu_s_ph_qbr (v4i8, v2q15)
  36355. v2q15 __builtin_mips_mulq_rs_ph (v2q15, v2q15)
  36356. q31 __builtin_mips_muleq_s_w_phl (v2q15, v2q15)
  36357. q31 __builtin_mips_muleq_s_w_phr (v2q15, v2q15)
  36358. a64 __builtin_mips_dpau_h_qbl (a64, v4i8, v4i8)
  36359. a64 __builtin_mips_dpau_h_qbr (a64, v4i8, v4i8)
  36360. a64 __builtin_mips_dpsu_h_qbl (a64, v4i8, v4i8)
  36361. a64 __builtin_mips_dpsu_h_qbr (a64, v4i8, v4i8)
  36362. a64 __builtin_mips_dpaq_s_w_ph (a64, v2q15, v2q15)
  36363. a64 __builtin_mips_dpaq_sa_l_w (a64, q31, q31)
  36364. a64 __builtin_mips_dpsq_s_w_ph (a64, v2q15, v2q15)
  36365. a64 __builtin_mips_dpsq_sa_l_w (a64, q31, q31)
  36366. a64 __builtin_mips_mulsaq_s_w_ph (a64, v2q15, v2q15)
  36367. a64 __builtin_mips_maq_s_w_phl (a64, v2q15, v2q15)
  36368. a64 __builtin_mips_maq_s_w_phr (a64, v2q15, v2q15)
  36369. a64 __builtin_mips_maq_sa_w_phl (a64, v2q15, v2q15)
  36370. a64 __builtin_mips_maq_sa_w_phr (a64, v2q15, v2q15)
  36371. i32 __builtin_mips_bitrev (i32)
  36372. i32 __builtin_mips_insv (i32, i32)
  36373. v4i8 __builtin_mips_repl_qb (imm0_255)
  36374. v4i8 __builtin_mips_repl_qb (i32)
  36375. v2q15 __builtin_mips_repl_ph (imm_n512_511)
  36376. v2q15 __builtin_mips_repl_ph (i32)
  36377. void __builtin_mips_cmpu_eq_qb (v4i8, v4i8)
  36378. void __builtin_mips_cmpu_lt_qb (v4i8, v4i8)
  36379. void __builtin_mips_cmpu_le_qb (v4i8, v4i8)
  36380. i32 __builtin_mips_cmpgu_eq_qb (v4i8, v4i8)
  36381. i32 __builtin_mips_cmpgu_lt_qb (v4i8, v4i8)
  36382. i32 __builtin_mips_cmpgu_le_qb (v4i8, v4i8)
  36383. void __builtin_mips_cmp_eq_ph (v2q15, v2q15)
  36384. void __builtin_mips_cmp_lt_ph (v2q15, v2q15)
  36385. void __builtin_mips_cmp_le_ph (v2q15, v2q15)
  36386. v4i8 __builtin_mips_pick_qb (v4i8, v4i8)
  36387. v2q15 __builtin_mips_pick_ph (v2q15, v2q15)
  36388. v2q15 __builtin_mips_packrl_ph (v2q15, v2q15)
  36389. i32 __builtin_mips_extr_w (a64, imm0_31)
  36390. i32 __builtin_mips_extr_w (a64, i32)
  36391. i32 __builtin_mips_extr_r_w (a64, imm0_31)
  36392. i32 __builtin_mips_extr_s_h (a64, i32)
  36393. i32 __builtin_mips_extr_rs_w (a64, imm0_31)
  36394. i32 __builtin_mips_extr_rs_w (a64, i32)
  36395. i32 __builtin_mips_extr_s_h (a64, imm0_31)
  36396. i32 __builtin_mips_extr_r_w (a64, i32)
  36397. i32 __builtin_mips_extp (a64, imm0_31)
  36398. i32 __builtin_mips_extp (a64, i32)
  36399. i32 __builtin_mips_extpdp (a64, imm0_31)
  36400. i32 __builtin_mips_extpdp (a64, i32)
  36401. a64 __builtin_mips_shilo (a64, imm_n32_31)
  36402. a64 __builtin_mips_shilo (a64, i32)
  36403. a64 __builtin_mips_mthlip (a64, i32)
  36404. void __builtin_mips_wrdsp (i32, imm0_63)
  36405. i32 __builtin_mips_rddsp (imm0_63)
  36406. i32 __builtin_mips_lbux (void *, i32)
  36407. i32 __builtin_mips_lhx (void *, i32)
  36408. i32 __builtin_mips_lwx (void *, i32)
  36409. a64 __builtin_mips_ldx (void *, i32) [MIPS64 only]
  36410. i32 __builtin_mips_bposge32 (void)
  36411. a64 __builtin_mips_madd (a64, i32, i32);
  36412. a64 __builtin_mips_maddu (a64, ui32, ui32);
  36413. a64 __builtin_mips_msub (a64, i32, i32);
  36414. a64 __builtin_mips_msubu (a64, ui32, ui32);
  36415. a64 __builtin_mips_mult (i32, i32);
  36416. a64 __builtin_mips_multu (ui32, ui32);
  36417. The following built-in functions map directly to a particular MIPS DSP
  36418. REV 2 instruction. Please refer to the architecture specification for
  36419. details on what each instruction does.
  36420. v4q7 __builtin_mips_absq_s_qb (v4q7);
  36421. v2i16 __builtin_mips_addu_ph (v2i16, v2i16);
  36422. v2i16 __builtin_mips_addu_s_ph (v2i16, v2i16);
  36423. v4i8 __builtin_mips_adduh_qb (v4i8, v4i8);
  36424. v4i8 __builtin_mips_adduh_r_qb (v4i8, v4i8);
  36425. i32 __builtin_mips_append (i32, i32, imm0_31);
  36426. i32 __builtin_mips_balign (i32, i32, imm0_3);
  36427. i32 __builtin_mips_cmpgdu_eq_qb (v4i8, v4i8);
  36428. i32 __builtin_mips_cmpgdu_lt_qb (v4i8, v4i8);
  36429. i32 __builtin_mips_cmpgdu_le_qb (v4i8, v4i8);
  36430. a64 __builtin_mips_dpa_w_ph (a64, v2i16, v2i16);
  36431. a64 __builtin_mips_dps_w_ph (a64, v2i16, v2i16);
  36432. v2i16 __builtin_mips_mul_ph (v2i16, v2i16);
  36433. v2i16 __builtin_mips_mul_s_ph (v2i16, v2i16);
  36434. q31 __builtin_mips_mulq_rs_w (q31, q31);
  36435. v2q15 __builtin_mips_mulq_s_ph (v2q15, v2q15);
  36436. q31 __builtin_mips_mulq_s_w (q31, q31);
  36437. a64 __builtin_mips_mulsa_w_ph (a64, v2i16, v2i16);
  36438. v4i8 __builtin_mips_precr_qb_ph (v2i16, v2i16);
  36439. v2i16 __builtin_mips_precr_sra_ph_w (i32, i32, imm0_31);
  36440. v2i16 __builtin_mips_precr_sra_r_ph_w (i32, i32, imm0_31);
  36441. i32 __builtin_mips_prepend (i32, i32, imm0_31);
  36442. v4i8 __builtin_mips_shra_qb (v4i8, imm0_7);
  36443. v4i8 __builtin_mips_shra_r_qb (v4i8, imm0_7);
  36444. v4i8 __builtin_mips_shra_qb (v4i8, i32);
  36445. v4i8 __builtin_mips_shra_r_qb (v4i8, i32);
  36446. v2i16 __builtin_mips_shrl_ph (v2i16, imm0_15);
  36447. v2i16 __builtin_mips_shrl_ph (v2i16, i32);
  36448. v2i16 __builtin_mips_subu_ph (v2i16, v2i16);
  36449. v2i16 __builtin_mips_subu_s_ph (v2i16, v2i16);
  36450. v4i8 __builtin_mips_subuh_qb (v4i8, v4i8);
  36451. v4i8 __builtin_mips_subuh_r_qb (v4i8, v4i8);
  36452. v2q15 __builtin_mips_addqh_ph (v2q15, v2q15);
  36453. v2q15 __builtin_mips_addqh_r_ph (v2q15, v2q15);
  36454. q31 __builtin_mips_addqh_w (q31, q31);
  36455. q31 __builtin_mips_addqh_r_w (q31, q31);
  36456. v2q15 __builtin_mips_subqh_ph (v2q15, v2q15);
  36457. v2q15 __builtin_mips_subqh_r_ph (v2q15, v2q15);
  36458. q31 __builtin_mips_subqh_w (q31, q31);
  36459. q31 __builtin_mips_subqh_r_w (q31, q31);
  36460. a64 __builtin_mips_dpax_w_ph (a64, v2i16, v2i16);
  36461. a64 __builtin_mips_dpsx_w_ph (a64, v2i16, v2i16);
  36462. a64 __builtin_mips_dpaqx_s_w_ph (a64, v2q15, v2q15);
  36463. a64 __builtin_mips_dpaqx_sa_w_ph (a64, v2q15, v2q15);
  36464. a64 __builtin_mips_dpsqx_s_w_ph (a64, v2q15, v2q15);
  36465. a64 __builtin_mips_dpsqx_sa_w_ph (a64, v2q15, v2q15);
  36466. 
  36467. File: gcc.info, Node: MIPS Paired-Single Support, Next: MIPS Loongson Built-in Functions, Prev: MIPS DSP Built-in Functions, Up: Target Builtins
  36468. 6.60.15 MIPS Paired-Single Support
  36469. ----------------------------------
  36470. The MIPS64 architecture includes a number of instructions that operate
  36471. on pairs of single-precision floating-point values. Each pair is packed
  36472. into a 64-bit floating-point register, with one element being designated
  36473. the "upper half" and the other being designated the "lower half".
  36474. GCC supports paired-single operations using both the generic vector
  36475. extensions (*note Vector Extensions::) and a collection of MIPS-specific
  36476. built-in functions. Both kinds of support are enabled by the
  36477. '-mpaired-single' command-line option.
  36478. The vector type associated with paired-single values is usually called
  36479. 'v2sf'. It can be defined in C as follows:
  36480. typedef float v2sf __attribute__ ((vector_size (8)));
  36481. 'v2sf' values are initialized in the same way as aggregates. For
  36482. example:
  36483. v2sf a = {1.5, 9.1};
  36484. v2sf b;
  36485. float e, f;
  36486. b = (v2sf) {e, f};
  36487. _Note:_ The CPU's endianness determines which value is stored in the
  36488. upper half of a register and which value is stored in the lower half.
  36489. On little-endian targets, the first value is the lower one and the
  36490. second value is the upper one. The opposite order applies to big-endian
  36491. targets. For example, the code above sets the lower half of 'a' to
  36492. '1.5' on little-endian targets and '9.1' on big-endian targets.
  36493. 
  36494. File: gcc.info, Node: MIPS Loongson Built-in Functions, Next: MIPS SIMD Architecture (MSA) Support, Prev: MIPS Paired-Single Support, Up: Target Builtins
  36495. 6.60.16 MIPS Loongson Built-in Functions
  36496. ----------------------------------------
  36497. GCC provides intrinsics to access the SIMD instructions provided by the
  36498. ST Microelectronics Loongson-2E and -2F processors. These intrinsics,
  36499. available after inclusion of the 'loongson.h' header file, operate on
  36500. the following 64-bit vector types:
  36501. * 'uint8x8_t', a vector of eight unsigned 8-bit integers;
  36502. * 'uint16x4_t', a vector of four unsigned 16-bit integers;
  36503. * 'uint32x2_t', a vector of two unsigned 32-bit integers;
  36504. * 'int8x8_t', a vector of eight signed 8-bit integers;
  36505. * 'int16x4_t', a vector of four signed 16-bit integers;
  36506. * 'int32x2_t', a vector of two signed 32-bit integers.
  36507. The intrinsics provided are listed below; each is named after the
  36508. machine instruction to which it corresponds, with suffixes added as
  36509. appropriate to distinguish intrinsics that expand to the same machine
  36510. instruction yet have different argument types. Refer to the
  36511. architecture documentation for a description of the functionality of
  36512. each instruction.
  36513. int16x4_t packsswh (int32x2_t s, int32x2_t t);
  36514. int8x8_t packsshb (int16x4_t s, int16x4_t t);
  36515. uint8x8_t packushb (uint16x4_t s, uint16x4_t t);
  36516. uint32x2_t paddw_u (uint32x2_t s, uint32x2_t t);
  36517. uint16x4_t paddh_u (uint16x4_t s, uint16x4_t t);
  36518. uint8x8_t paddb_u (uint8x8_t s, uint8x8_t t);
  36519. int32x2_t paddw_s (int32x2_t s, int32x2_t t);
  36520. int16x4_t paddh_s (int16x4_t s, int16x4_t t);
  36521. int8x8_t paddb_s (int8x8_t s, int8x8_t t);
  36522. uint64_t paddd_u (uint64_t s, uint64_t t);
  36523. int64_t paddd_s (int64_t s, int64_t t);
  36524. int16x4_t paddsh (int16x4_t s, int16x4_t t);
  36525. int8x8_t paddsb (int8x8_t s, int8x8_t t);
  36526. uint16x4_t paddush (uint16x4_t s, uint16x4_t t);
  36527. uint8x8_t paddusb (uint8x8_t s, uint8x8_t t);
  36528. uint64_t pandn_ud (uint64_t s, uint64_t t);
  36529. uint32x2_t pandn_uw (uint32x2_t s, uint32x2_t t);
  36530. uint16x4_t pandn_uh (uint16x4_t s, uint16x4_t t);
  36531. uint8x8_t pandn_ub (uint8x8_t s, uint8x8_t t);
  36532. int64_t pandn_sd (int64_t s, int64_t t);
  36533. int32x2_t pandn_sw (int32x2_t s, int32x2_t t);
  36534. int16x4_t pandn_sh (int16x4_t s, int16x4_t t);
  36535. int8x8_t pandn_sb (int8x8_t s, int8x8_t t);
  36536. uint16x4_t pavgh (uint16x4_t s, uint16x4_t t);
  36537. uint8x8_t pavgb (uint8x8_t s, uint8x8_t t);
  36538. uint32x2_t pcmpeqw_u (uint32x2_t s, uint32x2_t t);
  36539. uint16x4_t pcmpeqh_u (uint16x4_t s, uint16x4_t t);
  36540. uint8x8_t pcmpeqb_u (uint8x8_t s, uint8x8_t t);
  36541. int32x2_t pcmpeqw_s (int32x2_t s, int32x2_t t);
  36542. int16x4_t pcmpeqh_s (int16x4_t s, int16x4_t t);
  36543. int8x8_t pcmpeqb_s (int8x8_t s, int8x8_t t);
  36544. uint32x2_t pcmpgtw_u (uint32x2_t s, uint32x2_t t);
  36545. uint16x4_t pcmpgth_u (uint16x4_t s, uint16x4_t t);
  36546. uint8x8_t pcmpgtb_u (uint8x8_t s, uint8x8_t t);
  36547. int32x2_t pcmpgtw_s (int32x2_t s, int32x2_t t);
  36548. int16x4_t pcmpgth_s (int16x4_t s, int16x4_t t);
  36549. int8x8_t pcmpgtb_s (int8x8_t s, int8x8_t t);
  36550. uint16x4_t pextrh_u (uint16x4_t s, int field);
  36551. int16x4_t pextrh_s (int16x4_t s, int field);
  36552. uint16x4_t pinsrh_0_u (uint16x4_t s, uint16x4_t t);
  36553. uint16x4_t pinsrh_1_u (uint16x4_t s, uint16x4_t t);
  36554. uint16x4_t pinsrh_2_u (uint16x4_t s, uint16x4_t t);
  36555. uint16x4_t pinsrh_3_u (uint16x4_t s, uint16x4_t t);
  36556. int16x4_t pinsrh_0_s (int16x4_t s, int16x4_t t);
  36557. int16x4_t pinsrh_1_s (int16x4_t s, int16x4_t t);
  36558. int16x4_t pinsrh_2_s (int16x4_t s, int16x4_t t);
  36559. int16x4_t pinsrh_3_s (int16x4_t s, int16x4_t t);
  36560. int32x2_t pmaddhw (int16x4_t s, int16x4_t t);
  36561. int16x4_t pmaxsh (int16x4_t s, int16x4_t t);
  36562. uint8x8_t pmaxub (uint8x8_t s, uint8x8_t t);
  36563. int16x4_t pminsh (int16x4_t s, int16x4_t t);
  36564. uint8x8_t pminub (uint8x8_t s, uint8x8_t t);
  36565. uint8x8_t pmovmskb_u (uint8x8_t s);
  36566. int8x8_t pmovmskb_s (int8x8_t s);
  36567. uint16x4_t pmulhuh (uint16x4_t s, uint16x4_t t);
  36568. int16x4_t pmulhh (int16x4_t s, int16x4_t t);
  36569. int16x4_t pmullh (int16x4_t s, int16x4_t t);
  36570. int64_t pmuluw (uint32x2_t s, uint32x2_t t);
  36571. uint8x8_t pasubub (uint8x8_t s, uint8x8_t t);
  36572. uint16x4_t biadd (uint8x8_t s);
  36573. uint16x4_t psadbh (uint8x8_t s, uint8x8_t t);
  36574. uint16x4_t pshufh_u (uint16x4_t dest, uint16x4_t s, uint8_t order);
  36575. int16x4_t pshufh_s (int16x4_t dest, int16x4_t s, uint8_t order);
  36576. uint16x4_t psllh_u (uint16x4_t s, uint8_t amount);
  36577. int16x4_t psllh_s (int16x4_t s, uint8_t amount);
  36578. uint32x2_t psllw_u (uint32x2_t s, uint8_t amount);
  36579. int32x2_t psllw_s (int32x2_t s, uint8_t amount);
  36580. uint16x4_t psrlh_u (uint16x4_t s, uint8_t amount);
  36581. int16x4_t psrlh_s (int16x4_t s, uint8_t amount);
  36582. uint32x2_t psrlw_u (uint32x2_t s, uint8_t amount);
  36583. int32x2_t psrlw_s (int32x2_t s, uint8_t amount);
  36584. uint16x4_t psrah_u (uint16x4_t s, uint8_t amount);
  36585. int16x4_t psrah_s (int16x4_t s, uint8_t amount);
  36586. uint32x2_t psraw_u (uint32x2_t s, uint8_t amount);
  36587. int32x2_t psraw_s (int32x2_t s, uint8_t amount);
  36588. uint32x2_t psubw_u (uint32x2_t s, uint32x2_t t);
  36589. uint16x4_t psubh_u (uint16x4_t s, uint16x4_t t);
  36590. uint8x8_t psubb_u (uint8x8_t s, uint8x8_t t);
  36591. int32x2_t psubw_s (int32x2_t s, int32x2_t t);
  36592. int16x4_t psubh_s (int16x4_t s, int16x4_t t);
  36593. int8x8_t psubb_s (int8x8_t s, int8x8_t t);
  36594. uint64_t psubd_u (uint64_t s, uint64_t t);
  36595. int64_t psubd_s (int64_t s, int64_t t);
  36596. int16x4_t psubsh (int16x4_t s, int16x4_t t);
  36597. int8x8_t psubsb (int8x8_t s, int8x8_t t);
  36598. uint16x4_t psubush (uint16x4_t s, uint16x4_t t);
  36599. uint8x8_t psubusb (uint8x8_t s, uint8x8_t t);
  36600. uint32x2_t punpckhwd_u (uint32x2_t s, uint32x2_t t);
  36601. uint16x4_t punpckhhw_u (uint16x4_t s, uint16x4_t t);
  36602. uint8x8_t punpckhbh_u (uint8x8_t s, uint8x8_t t);
  36603. int32x2_t punpckhwd_s (int32x2_t s, int32x2_t t);
  36604. int16x4_t punpckhhw_s (int16x4_t s, int16x4_t t);
  36605. int8x8_t punpckhbh_s (int8x8_t s, int8x8_t t);
  36606. uint32x2_t punpcklwd_u (uint32x2_t s, uint32x2_t t);
  36607. uint16x4_t punpcklhw_u (uint16x4_t s, uint16x4_t t);
  36608. uint8x8_t punpcklbh_u (uint8x8_t s, uint8x8_t t);
  36609. int32x2_t punpcklwd_s (int32x2_t s, int32x2_t t);
  36610. int16x4_t punpcklhw_s (int16x4_t s, int16x4_t t);
  36611. int8x8_t punpcklbh_s (int8x8_t s, int8x8_t t);
  36612. * Menu:
  36613. * Paired-Single Arithmetic::
  36614. * Paired-Single Built-in Functions::
  36615. * MIPS-3D Built-in Functions::
  36616. 
  36617. File: gcc.info, Node: Paired-Single Arithmetic, Next: Paired-Single Built-in Functions, Up: MIPS Loongson Built-in Functions
  36618. 6.60.16.1 Paired-Single Arithmetic
  36619. ..................................
  36620. The table below lists the 'v2sf' operations for which hardware support
  36621. exists. 'a', 'b' and 'c' are 'v2sf' values and 'x' is an integral
  36622. value.
  36623. C code MIPS instruction
  36624. 'a + b' 'add.ps'
  36625. 'a - b' 'sub.ps'
  36626. '-a' 'neg.ps'
  36627. 'a * b' 'mul.ps'
  36628. 'a * b + c' 'madd.ps'
  36629. 'a * b - c' 'msub.ps'
  36630. '-(a * b + c)' 'nmadd.ps'
  36631. '-(a * b - c)' 'nmsub.ps'
  36632. 'x ? a : b' 'movn.ps'/'movz.ps'
  36633. Note that the multiply-accumulate instructions can be disabled using
  36634. the command-line option '-mno-fused-madd'.
  36635. 
  36636. File: gcc.info, Node: Paired-Single Built-in Functions, Next: MIPS-3D Built-in Functions, Prev: Paired-Single Arithmetic, Up: MIPS Loongson Built-in Functions
  36637. 6.60.16.2 Paired-Single Built-in Functions
  36638. ..........................................
  36639. The following paired-single functions map directly to a particular MIPS
  36640. instruction. Please refer to the architecture specification for details
  36641. on what each instruction does.
  36642. 'v2sf __builtin_mips_pll_ps (v2sf, v2sf)'
  36643. Pair lower lower ('pll.ps').
  36644. 'v2sf __builtin_mips_pul_ps (v2sf, v2sf)'
  36645. Pair upper lower ('pul.ps').
  36646. 'v2sf __builtin_mips_plu_ps (v2sf, v2sf)'
  36647. Pair lower upper ('plu.ps').
  36648. 'v2sf __builtin_mips_puu_ps (v2sf, v2sf)'
  36649. Pair upper upper ('puu.ps').
  36650. 'v2sf __builtin_mips_cvt_ps_s (float, float)'
  36651. Convert pair to paired single ('cvt.ps.s').
  36652. 'float __builtin_mips_cvt_s_pl (v2sf)'
  36653. Convert pair lower to single ('cvt.s.pl').
  36654. 'float __builtin_mips_cvt_s_pu (v2sf)'
  36655. Convert pair upper to single ('cvt.s.pu').
  36656. 'v2sf __builtin_mips_abs_ps (v2sf)'
  36657. Absolute value ('abs.ps').
  36658. 'v2sf __builtin_mips_alnv_ps (v2sf, v2sf, int)'
  36659. Align variable ('alnv.ps').
  36660. _Note:_ The value of the third parameter must be 0 or 4 modulo 8,
  36661. otherwise the result is unpredictable. Please read the instruction
  36662. description for details.
  36663. The following multi-instruction functions are also available. In each
  36664. case, COND can be any of the 16 floating-point conditions: 'f', 'un',
  36665. 'eq', 'ueq', 'olt', 'ult', 'ole', 'ule', 'sf', 'ngle', 'seq', 'ngl',
  36666. 'lt', 'nge', 'le' or 'ngt'.
  36667. 'v2sf __builtin_mips_movt_c_COND_ps (v2sf A, v2sf B, v2sf C, v2sf D)'
  36668. 'v2sf __builtin_mips_movf_c_COND_ps (v2sf A, v2sf B, v2sf C, v2sf D)'
  36669. Conditional move based on floating-point comparison ('c.COND.ps',
  36670. 'movt.ps'/'movf.ps').
  36671. The 'movt' functions return the value X computed by:
  36672. c.COND.ps CC,A,B
  36673. mov.ps X,C
  36674. movt.ps X,D,CC
  36675. The 'movf' functions are similar but use 'movf.ps' instead of
  36676. 'movt.ps'.
  36677. 'int __builtin_mips_upper_c_COND_ps (v2sf A, v2sf B)'
  36678. 'int __builtin_mips_lower_c_COND_ps (v2sf A, v2sf B)'
  36679. Comparison of two paired-single values ('c.COND.ps',
  36680. 'bc1t'/'bc1f').
  36681. These functions compare A and B using 'c.COND.ps' and return either
  36682. the upper or lower half of the result. For example:
  36683. v2sf a, b;
  36684. if (__builtin_mips_upper_c_eq_ps (a, b))
  36685. upper_halves_are_equal ();
  36686. else
  36687. upper_halves_are_unequal ();
  36688. if (__builtin_mips_lower_c_eq_ps (a, b))
  36689. lower_halves_are_equal ();
  36690. else
  36691. lower_halves_are_unequal ();
  36692. 
  36693. File: gcc.info, Node: MIPS-3D Built-in Functions, Prev: Paired-Single Built-in Functions, Up: MIPS Loongson Built-in Functions
  36694. 6.60.16.3 MIPS-3D Built-in Functions
  36695. ....................................
  36696. The MIPS-3D Application-Specific Extension (ASE) includes additional
  36697. paired-single instructions that are designed to improve the performance
  36698. of 3D graphics operations. Support for these instructions is controlled
  36699. by the '-mips3d' command-line option.
  36700. The functions listed below map directly to a particular MIPS-3D
  36701. instruction. Please refer to the architecture specification for more
  36702. details on what each instruction does.
  36703. 'v2sf __builtin_mips_addr_ps (v2sf, v2sf)'
  36704. Reduction add ('addr.ps').
  36705. 'v2sf __builtin_mips_mulr_ps (v2sf, v2sf)'
  36706. Reduction multiply ('mulr.ps').
  36707. 'v2sf __builtin_mips_cvt_pw_ps (v2sf)'
  36708. Convert paired single to paired word ('cvt.pw.ps').
  36709. 'v2sf __builtin_mips_cvt_ps_pw (v2sf)'
  36710. Convert paired word to paired single ('cvt.ps.pw').
  36711. 'float __builtin_mips_recip1_s (float)'
  36712. 'double __builtin_mips_recip1_d (double)'
  36713. 'v2sf __builtin_mips_recip1_ps (v2sf)'
  36714. Reduced-precision reciprocal (sequence step 1) ('recip1.FMT').
  36715. 'float __builtin_mips_recip2_s (float, float)'
  36716. 'double __builtin_mips_recip2_d (double, double)'
  36717. 'v2sf __builtin_mips_recip2_ps (v2sf, v2sf)'
  36718. Reduced-precision reciprocal (sequence step 2) ('recip2.FMT').
  36719. 'float __builtin_mips_rsqrt1_s (float)'
  36720. 'double __builtin_mips_rsqrt1_d (double)'
  36721. 'v2sf __builtin_mips_rsqrt1_ps (v2sf)'
  36722. Reduced-precision reciprocal square root (sequence step 1)
  36723. ('rsqrt1.FMT').
  36724. 'float __builtin_mips_rsqrt2_s (float, float)'
  36725. 'double __builtin_mips_rsqrt2_d (double, double)'
  36726. 'v2sf __builtin_mips_rsqrt2_ps (v2sf, v2sf)'
  36727. Reduced-precision reciprocal square root (sequence step 2)
  36728. ('rsqrt2.FMT').
  36729. The following multi-instruction functions are also available. In each
  36730. case, COND can be any of the 16 floating-point conditions: 'f', 'un',
  36731. 'eq', 'ueq', 'olt', 'ult', 'ole', 'ule', 'sf', 'ngle', 'seq', 'ngl',
  36732. 'lt', 'nge', 'le' or 'ngt'.
  36733. 'int __builtin_mips_cabs_COND_s (float A, float B)'
  36734. 'int __builtin_mips_cabs_COND_d (double A, double B)'
  36735. Absolute comparison of two scalar values ('cabs.COND.FMT',
  36736. 'bc1t'/'bc1f').
  36737. These functions compare A and B using 'cabs.COND.s' or
  36738. 'cabs.COND.d' and return the result as a boolean value. For
  36739. example:
  36740. float a, b;
  36741. if (__builtin_mips_cabs_eq_s (a, b))
  36742. true ();
  36743. else
  36744. false ();
  36745. 'int __builtin_mips_upper_cabs_COND_ps (v2sf A, v2sf B)'
  36746. 'int __builtin_mips_lower_cabs_COND_ps (v2sf A, v2sf B)'
  36747. Absolute comparison of two paired-single values ('cabs.COND.ps',
  36748. 'bc1t'/'bc1f').
  36749. These functions compare A and B using 'cabs.COND.ps' and return
  36750. either the upper or lower half of the result. For example:
  36751. v2sf a, b;
  36752. if (__builtin_mips_upper_cabs_eq_ps (a, b))
  36753. upper_halves_are_equal ();
  36754. else
  36755. upper_halves_are_unequal ();
  36756. if (__builtin_mips_lower_cabs_eq_ps (a, b))
  36757. lower_halves_are_equal ();
  36758. else
  36759. lower_halves_are_unequal ();
  36760. 'v2sf __builtin_mips_movt_cabs_COND_ps (v2sf A, v2sf B, v2sf C, v2sf D)'
  36761. 'v2sf __builtin_mips_movf_cabs_COND_ps (v2sf A, v2sf B, v2sf C, v2sf D)'
  36762. Conditional move based on absolute comparison ('cabs.COND.ps',
  36763. 'movt.ps'/'movf.ps').
  36764. The 'movt' functions return the value X computed by:
  36765. cabs.COND.ps CC,A,B
  36766. mov.ps X,C
  36767. movt.ps X,D,CC
  36768. The 'movf' functions are similar but use 'movf.ps' instead of
  36769. 'movt.ps'.
  36770. 'int __builtin_mips_any_c_COND_ps (v2sf A, v2sf B)'
  36771. 'int __builtin_mips_all_c_COND_ps (v2sf A, v2sf B)'
  36772. 'int __builtin_mips_any_cabs_COND_ps (v2sf A, v2sf B)'
  36773. 'int __builtin_mips_all_cabs_COND_ps (v2sf A, v2sf B)'
  36774. Comparison of two paired-single values ('c.COND.ps'/'cabs.COND.ps',
  36775. 'bc1any2t'/'bc1any2f').
  36776. These functions compare A and B using 'c.COND.ps' or
  36777. 'cabs.COND.ps'. The 'any' forms return 'true' if either result is
  36778. 'true' and the 'all' forms return 'true' if both results are
  36779. 'true'. For example:
  36780. v2sf a, b;
  36781. if (__builtin_mips_any_c_eq_ps (a, b))
  36782. one_is_true ();
  36783. else
  36784. both_are_false ();
  36785. if (__builtin_mips_all_c_eq_ps (a, b))
  36786. both_are_true ();
  36787. else
  36788. one_is_false ();
  36789. 'int __builtin_mips_any_c_COND_4s (v2sf A, v2sf B, v2sf C, v2sf D)'
  36790. 'int __builtin_mips_all_c_COND_4s (v2sf A, v2sf B, v2sf C, v2sf D)'
  36791. 'int __builtin_mips_any_cabs_COND_4s (v2sf A, v2sf B, v2sf C, v2sf D)'
  36792. 'int __builtin_mips_all_cabs_COND_4s (v2sf A, v2sf B, v2sf C, v2sf D)'
  36793. Comparison of four paired-single values
  36794. ('c.COND.ps'/'cabs.COND.ps', 'bc1any4t'/'bc1any4f').
  36795. These functions use 'c.COND.ps' or 'cabs.COND.ps' to compare A with
  36796. B and to compare C with D. The 'any' forms return 'true' if any of
  36797. the four results are 'true' and the 'all' forms return 'true' if
  36798. all four results are 'true'. For example:
  36799. v2sf a, b, c, d;
  36800. if (__builtin_mips_any_c_eq_4s (a, b, c, d))
  36801. some_are_true ();
  36802. else
  36803. all_are_false ();
  36804. if (__builtin_mips_all_c_eq_4s (a, b, c, d))
  36805. all_are_true ();
  36806. else
  36807. some_are_false ();
  36808. 
  36809. File: gcc.info, Node: MIPS SIMD Architecture (MSA) Support, Next: Other MIPS Built-in Functions, Prev: MIPS Loongson Built-in Functions, Up: Target Builtins
  36810. 6.60.17 MIPS SIMD Architecture (MSA) Support
  36811. --------------------------------------------
  36812. * Menu:
  36813. * MIPS SIMD Architecture Built-in Functions::
  36814. GCC provides intrinsics to access the SIMD instructions provided by the
  36815. MSA MIPS SIMD Architecture. The interface is made available by
  36816. including '<msa.h>' and using '-mmsa -mhard-float -mfp64 -mnan=2008'.
  36817. For each '__builtin_msa_*', there is a shortened name of the intrinsic,
  36818. '__msa_*'.
  36819. MSA implements 128-bit wide vector registers, operating on 8-, 16-, 32-
  36820. and 64-bit integer, 16- and 32-bit fixed-point, or 32- and 64-bit
  36821. floating point data elements. The following vectors typedefs are
  36822. included in 'msa.h':
  36823. * 'v16i8', a vector of sixteen signed 8-bit integers;
  36824. * 'v16u8', a vector of sixteen unsigned 8-bit integers;
  36825. * 'v8i16', a vector of eight signed 16-bit integers;
  36826. * 'v8u16', a vector of eight unsigned 16-bit integers;
  36827. * 'v4i32', a vector of four signed 32-bit integers;
  36828. * 'v4u32', a vector of four unsigned 32-bit integers;
  36829. * 'v2i64', a vector of two signed 64-bit integers;
  36830. * 'v2u64', a vector of two unsigned 64-bit integers;
  36831. * 'v4f32', a vector of four 32-bit floats;
  36832. * 'v2f64', a vector of two 64-bit doubles.
  36833. Instructions and corresponding built-ins may have additional
  36834. restrictions and/or input/output values manipulated:
  36835. * 'imm0_1', an integer literal in range 0 to 1;
  36836. * 'imm0_3', an integer literal in range 0 to 3;
  36837. * 'imm0_7', an integer literal in range 0 to 7;
  36838. * 'imm0_15', an integer literal in range 0 to 15;
  36839. * 'imm0_31', an integer literal in range 0 to 31;
  36840. * 'imm0_63', an integer literal in range 0 to 63;
  36841. * 'imm0_255', an integer literal in range 0 to 255;
  36842. * 'imm_n16_15', an integer literal in range -16 to 15;
  36843. * 'imm_n512_511', an integer literal in range -512 to 511;
  36844. * 'imm_n1024_1022', an integer literal in range -512 to 511 left
  36845. shifted by 1 bit, i.e., -1024, -1022, ..., 1020, 1022;
  36846. * 'imm_n2048_2044', an integer literal in range -512 to 511 left
  36847. shifted by 2 bits, i.e., -2048, -2044, ..., 2040, 2044;
  36848. * 'imm_n4096_4088', an integer literal in range -512 to 511 left
  36849. shifted by 3 bits, i.e., -4096, -4088, ..., 4080, 4088;
  36850. * 'imm1_4', an integer literal in range 1 to 4;
  36851. * 'i32, i64, u32, u64, f32, f64', defined as follows:
  36852. {
  36853. typedef int i32;
  36854. #if __LONG_MAX__ == __LONG_LONG_MAX__
  36855. typedef long i64;
  36856. #else
  36857. typedef long long i64;
  36858. #endif
  36859. typedef unsigned int u32;
  36860. #if __LONG_MAX__ == __LONG_LONG_MAX__
  36861. typedef unsigned long u64;
  36862. #else
  36863. typedef unsigned long long u64;
  36864. #endif
  36865. typedef double f64;
  36866. typedef float f32;
  36867. }
  36868. 
  36869. File: gcc.info, Node: MIPS SIMD Architecture Built-in Functions, Up: MIPS SIMD Architecture (MSA) Support
  36870. 6.60.17.1 MIPS SIMD Architecture Built-in Functions
  36871. ...................................................
  36872. The intrinsics provided are listed below; each is named after the
  36873. machine instruction.
  36874. v16i8 __builtin_msa_add_a_b (v16i8, v16i8);
  36875. v8i16 __builtin_msa_add_a_h (v8i16, v8i16);
  36876. v4i32 __builtin_msa_add_a_w (v4i32, v4i32);
  36877. v2i64 __builtin_msa_add_a_d (v2i64, v2i64);
  36878. v16i8 __builtin_msa_adds_a_b (v16i8, v16i8);
  36879. v8i16 __builtin_msa_adds_a_h (v8i16, v8i16);
  36880. v4i32 __builtin_msa_adds_a_w (v4i32, v4i32);
  36881. v2i64 __builtin_msa_adds_a_d (v2i64, v2i64);
  36882. v16i8 __builtin_msa_adds_s_b (v16i8, v16i8);
  36883. v8i16 __builtin_msa_adds_s_h (v8i16, v8i16);
  36884. v4i32 __builtin_msa_adds_s_w (v4i32, v4i32);
  36885. v2i64 __builtin_msa_adds_s_d (v2i64, v2i64);
  36886. v16u8 __builtin_msa_adds_u_b (v16u8, v16u8);
  36887. v8u16 __builtin_msa_adds_u_h (v8u16, v8u16);
  36888. v4u32 __builtin_msa_adds_u_w (v4u32, v4u32);
  36889. v2u64 __builtin_msa_adds_u_d (v2u64, v2u64);
  36890. v16i8 __builtin_msa_addv_b (v16i8, v16i8);
  36891. v8i16 __builtin_msa_addv_h (v8i16, v8i16);
  36892. v4i32 __builtin_msa_addv_w (v4i32, v4i32);
  36893. v2i64 __builtin_msa_addv_d (v2i64, v2i64);
  36894. v16i8 __builtin_msa_addvi_b (v16i8, imm0_31);
  36895. v8i16 __builtin_msa_addvi_h (v8i16, imm0_31);
  36896. v4i32 __builtin_msa_addvi_w (v4i32, imm0_31);
  36897. v2i64 __builtin_msa_addvi_d (v2i64, imm0_31);
  36898. v16u8 __builtin_msa_and_v (v16u8, v16u8);
  36899. v16u8 __builtin_msa_andi_b (v16u8, imm0_255);
  36900. v16i8 __builtin_msa_asub_s_b (v16i8, v16i8);
  36901. v8i16 __builtin_msa_asub_s_h (v8i16, v8i16);
  36902. v4i32 __builtin_msa_asub_s_w (v4i32, v4i32);
  36903. v2i64 __builtin_msa_asub_s_d (v2i64, v2i64);
  36904. v16u8 __builtin_msa_asub_u_b (v16u8, v16u8);
  36905. v8u16 __builtin_msa_asub_u_h (v8u16, v8u16);
  36906. v4u32 __builtin_msa_asub_u_w (v4u32, v4u32);
  36907. v2u64 __builtin_msa_asub_u_d (v2u64, v2u64);
  36908. v16i8 __builtin_msa_ave_s_b (v16i8, v16i8);
  36909. v8i16 __builtin_msa_ave_s_h (v8i16, v8i16);
  36910. v4i32 __builtin_msa_ave_s_w (v4i32, v4i32);
  36911. v2i64 __builtin_msa_ave_s_d (v2i64, v2i64);
  36912. v16u8 __builtin_msa_ave_u_b (v16u8, v16u8);
  36913. v8u16 __builtin_msa_ave_u_h (v8u16, v8u16);
  36914. v4u32 __builtin_msa_ave_u_w (v4u32, v4u32);
  36915. v2u64 __builtin_msa_ave_u_d (v2u64, v2u64);
  36916. v16i8 __builtin_msa_aver_s_b (v16i8, v16i8);
  36917. v8i16 __builtin_msa_aver_s_h (v8i16, v8i16);
  36918. v4i32 __builtin_msa_aver_s_w (v4i32, v4i32);
  36919. v2i64 __builtin_msa_aver_s_d (v2i64, v2i64);
  36920. v16u8 __builtin_msa_aver_u_b (v16u8, v16u8);
  36921. v8u16 __builtin_msa_aver_u_h (v8u16, v8u16);
  36922. v4u32 __builtin_msa_aver_u_w (v4u32, v4u32);
  36923. v2u64 __builtin_msa_aver_u_d (v2u64, v2u64);
  36924. v16u8 __builtin_msa_bclr_b (v16u8, v16u8);
  36925. v8u16 __builtin_msa_bclr_h (v8u16, v8u16);
  36926. v4u32 __builtin_msa_bclr_w (v4u32, v4u32);
  36927. v2u64 __builtin_msa_bclr_d (v2u64, v2u64);
  36928. v16u8 __builtin_msa_bclri_b (v16u8, imm0_7);
  36929. v8u16 __builtin_msa_bclri_h (v8u16, imm0_15);
  36930. v4u32 __builtin_msa_bclri_w (v4u32, imm0_31);
  36931. v2u64 __builtin_msa_bclri_d (v2u64, imm0_63);
  36932. v16u8 __builtin_msa_binsl_b (v16u8, v16u8, v16u8);
  36933. v8u16 __builtin_msa_binsl_h (v8u16, v8u16, v8u16);
  36934. v4u32 __builtin_msa_binsl_w (v4u32, v4u32, v4u32);
  36935. v2u64 __builtin_msa_binsl_d (v2u64, v2u64, v2u64);
  36936. v16u8 __builtin_msa_binsli_b (v16u8, v16u8, imm0_7);
  36937. v8u16 __builtin_msa_binsli_h (v8u16, v8u16, imm0_15);
  36938. v4u32 __builtin_msa_binsli_w (v4u32, v4u32, imm0_31);
  36939. v2u64 __builtin_msa_binsli_d (v2u64, v2u64, imm0_63);
  36940. v16u8 __builtin_msa_binsr_b (v16u8, v16u8, v16u8);
  36941. v8u16 __builtin_msa_binsr_h (v8u16, v8u16, v8u16);
  36942. v4u32 __builtin_msa_binsr_w (v4u32, v4u32, v4u32);
  36943. v2u64 __builtin_msa_binsr_d (v2u64, v2u64, v2u64);
  36944. v16u8 __builtin_msa_binsri_b (v16u8, v16u8, imm0_7);
  36945. v8u16 __builtin_msa_binsri_h (v8u16, v8u16, imm0_15);
  36946. v4u32 __builtin_msa_binsri_w (v4u32, v4u32, imm0_31);
  36947. v2u64 __builtin_msa_binsri_d (v2u64, v2u64, imm0_63);
  36948. v16u8 __builtin_msa_bmnz_v (v16u8, v16u8, v16u8);
  36949. v16u8 __builtin_msa_bmnzi_b (v16u8, v16u8, imm0_255);
  36950. v16u8 __builtin_msa_bmz_v (v16u8, v16u8, v16u8);
  36951. v16u8 __builtin_msa_bmzi_b (v16u8, v16u8, imm0_255);
  36952. v16u8 __builtin_msa_bneg_b (v16u8, v16u8);
  36953. v8u16 __builtin_msa_bneg_h (v8u16, v8u16);
  36954. v4u32 __builtin_msa_bneg_w (v4u32, v4u32);
  36955. v2u64 __builtin_msa_bneg_d (v2u64, v2u64);
  36956. v16u8 __builtin_msa_bnegi_b (v16u8, imm0_7);
  36957. v8u16 __builtin_msa_bnegi_h (v8u16, imm0_15);
  36958. v4u32 __builtin_msa_bnegi_w (v4u32, imm0_31);
  36959. v2u64 __builtin_msa_bnegi_d (v2u64, imm0_63);
  36960. i32 __builtin_msa_bnz_b (v16u8);
  36961. i32 __builtin_msa_bnz_h (v8u16);
  36962. i32 __builtin_msa_bnz_w (v4u32);
  36963. i32 __builtin_msa_bnz_d (v2u64);
  36964. i32 __builtin_msa_bnz_v (v16u8);
  36965. v16u8 __builtin_msa_bsel_v (v16u8, v16u8, v16u8);
  36966. v16u8 __builtin_msa_bseli_b (v16u8, v16u8, imm0_255);
  36967. v16u8 __builtin_msa_bset_b (v16u8, v16u8);
  36968. v8u16 __builtin_msa_bset_h (v8u16, v8u16);
  36969. v4u32 __builtin_msa_bset_w (v4u32, v4u32);
  36970. v2u64 __builtin_msa_bset_d (v2u64, v2u64);
  36971. v16u8 __builtin_msa_bseti_b (v16u8, imm0_7);
  36972. v8u16 __builtin_msa_bseti_h (v8u16, imm0_15);
  36973. v4u32 __builtin_msa_bseti_w (v4u32, imm0_31);
  36974. v2u64 __builtin_msa_bseti_d (v2u64, imm0_63);
  36975. i32 __builtin_msa_bz_b (v16u8);
  36976. i32 __builtin_msa_bz_h (v8u16);
  36977. i32 __builtin_msa_bz_w (v4u32);
  36978. i32 __builtin_msa_bz_d (v2u64);
  36979. i32 __builtin_msa_bz_v (v16u8);
  36980. v16i8 __builtin_msa_ceq_b (v16i8, v16i8);
  36981. v8i16 __builtin_msa_ceq_h (v8i16, v8i16);
  36982. v4i32 __builtin_msa_ceq_w (v4i32, v4i32);
  36983. v2i64 __builtin_msa_ceq_d (v2i64, v2i64);
  36984. v16i8 __builtin_msa_ceqi_b (v16i8, imm_n16_15);
  36985. v8i16 __builtin_msa_ceqi_h (v8i16, imm_n16_15);
  36986. v4i32 __builtin_msa_ceqi_w (v4i32, imm_n16_15);
  36987. v2i64 __builtin_msa_ceqi_d (v2i64, imm_n16_15);
  36988. i32 __builtin_msa_cfcmsa (imm0_31);
  36989. v16i8 __builtin_msa_cle_s_b (v16i8, v16i8);
  36990. v8i16 __builtin_msa_cle_s_h (v8i16, v8i16);
  36991. v4i32 __builtin_msa_cle_s_w (v4i32, v4i32);
  36992. v2i64 __builtin_msa_cle_s_d (v2i64, v2i64);
  36993. v16i8 __builtin_msa_cle_u_b (v16u8, v16u8);
  36994. v8i16 __builtin_msa_cle_u_h (v8u16, v8u16);
  36995. v4i32 __builtin_msa_cle_u_w (v4u32, v4u32);
  36996. v2i64 __builtin_msa_cle_u_d (v2u64, v2u64);
  36997. v16i8 __builtin_msa_clei_s_b (v16i8, imm_n16_15);
  36998. v8i16 __builtin_msa_clei_s_h (v8i16, imm_n16_15);
  36999. v4i32 __builtin_msa_clei_s_w (v4i32, imm_n16_15);
  37000. v2i64 __builtin_msa_clei_s_d (v2i64, imm_n16_15);
  37001. v16i8 __builtin_msa_clei_u_b (v16u8, imm0_31);
  37002. v8i16 __builtin_msa_clei_u_h (v8u16, imm0_31);
  37003. v4i32 __builtin_msa_clei_u_w (v4u32, imm0_31);
  37004. v2i64 __builtin_msa_clei_u_d (v2u64, imm0_31);
  37005. v16i8 __builtin_msa_clt_s_b (v16i8, v16i8);
  37006. v8i16 __builtin_msa_clt_s_h (v8i16, v8i16);
  37007. v4i32 __builtin_msa_clt_s_w (v4i32, v4i32);
  37008. v2i64 __builtin_msa_clt_s_d (v2i64, v2i64);
  37009. v16i8 __builtin_msa_clt_u_b (v16u8, v16u8);
  37010. v8i16 __builtin_msa_clt_u_h (v8u16, v8u16);
  37011. v4i32 __builtin_msa_clt_u_w (v4u32, v4u32);
  37012. v2i64 __builtin_msa_clt_u_d (v2u64, v2u64);
  37013. v16i8 __builtin_msa_clti_s_b (v16i8, imm_n16_15);
  37014. v8i16 __builtin_msa_clti_s_h (v8i16, imm_n16_15);
  37015. v4i32 __builtin_msa_clti_s_w (v4i32, imm_n16_15);
  37016. v2i64 __builtin_msa_clti_s_d (v2i64, imm_n16_15);
  37017. v16i8 __builtin_msa_clti_u_b (v16u8, imm0_31);
  37018. v8i16 __builtin_msa_clti_u_h (v8u16, imm0_31);
  37019. v4i32 __builtin_msa_clti_u_w (v4u32, imm0_31);
  37020. v2i64 __builtin_msa_clti_u_d (v2u64, imm0_31);
  37021. i32 __builtin_msa_copy_s_b (v16i8, imm0_15);
  37022. i32 __builtin_msa_copy_s_h (v8i16, imm0_7);
  37023. i32 __builtin_msa_copy_s_w (v4i32, imm0_3);
  37024. i64 __builtin_msa_copy_s_d (v2i64, imm0_1);
  37025. u32 __builtin_msa_copy_u_b (v16i8, imm0_15);
  37026. u32 __builtin_msa_copy_u_h (v8i16, imm0_7);
  37027. u32 __builtin_msa_copy_u_w (v4i32, imm0_3);
  37028. u64 __builtin_msa_copy_u_d (v2i64, imm0_1);
  37029. void __builtin_msa_ctcmsa (imm0_31, i32);
  37030. v16i8 __builtin_msa_div_s_b (v16i8, v16i8);
  37031. v8i16 __builtin_msa_div_s_h (v8i16, v8i16);
  37032. v4i32 __builtin_msa_div_s_w (v4i32, v4i32);
  37033. v2i64 __builtin_msa_div_s_d (v2i64, v2i64);
  37034. v16u8 __builtin_msa_div_u_b (v16u8, v16u8);
  37035. v8u16 __builtin_msa_div_u_h (v8u16, v8u16);
  37036. v4u32 __builtin_msa_div_u_w (v4u32, v4u32);
  37037. v2u64 __builtin_msa_div_u_d (v2u64, v2u64);
  37038. v8i16 __builtin_msa_dotp_s_h (v16i8, v16i8);
  37039. v4i32 __builtin_msa_dotp_s_w (v8i16, v8i16);
  37040. v2i64 __builtin_msa_dotp_s_d (v4i32, v4i32);
  37041. v8u16 __builtin_msa_dotp_u_h (v16u8, v16u8);
  37042. v4u32 __builtin_msa_dotp_u_w (v8u16, v8u16);
  37043. v2u64 __builtin_msa_dotp_u_d (v4u32, v4u32);
  37044. v8i16 __builtin_msa_dpadd_s_h (v8i16, v16i8, v16i8);
  37045. v4i32 __builtin_msa_dpadd_s_w (v4i32, v8i16, v8i16);
  37046. v2i64 __builtin_msa_dpadd_s_d (v2i64, v4i32, v4i32);
  37047. v8u16 __builtin_msa_dpadd_u_h (v8u16, v16u8, v16u8);
  37048. v4u32 __builtin_msa_dpadd_u_w (v4u32, v8u16, v8u16);
  37049. v2u64 __builtin_msa_dpadd_u_d (v2u64, v4u32, v4u32);
  37050. v8i16 __builtin_msa_dpsub_s_h (v8i16, v16i8, v16i8);
  37051. v4i32 __builtin_msa_dpsub_s_w (v4i32, v8i16, v8i16);
  37052. v2i64 __builtin_msa_dpsub_s_d (v2i64, v4i32, v4i32);
  37053. v8i16 __builtin_msa_dpsub_u_h (v8i16, v16u8, v16u8);
  37054. v4i32 __builtin_msa_dpsub_u_w (v4i32, v8u16, v8u16);
  37055. v2i64 __builtin_msa_dpsub_u_d (v2i64, v4u32, v4u32);
  37056. v4f32 __builtin_msa_fadd_w (v4f32, v4f32);
  37057. v2f64 __builtin_msa_fadd_d (v2f64, v2f64);
  37058. v4i32 __builtin_msa_fcaf_w (v4f32, v4f32);
  37059. v2i64 __builtin_msa_fcaf_d (v2f64, v2f64);
  37060. v4i32 __builtin_msa_fceq_w (v4f32, v4f32);
  37061. v2i64 __builtin_msa_fceq_d (v2f64, v2f64);
  37062. v4i32 __builtin_msa_fclass_w (v4f32);
  37063. v2i64 __builtin_msa_fclass_d (v2f64);
  37064. v4i32 __builtin_msa_fcle_w (v4f32, v4f32);
  37065. v2i64 __builtin_msa_fcle_d (v2f64, v2f64);
  37066. v4i32 __builtin_msa_fclt_w (v4f32, v4f32);
  37067. v2i64 __builtin_msa_fclt_d (v2f64, v2f64);
  37068. v4i32 __builtin_msa_fcne_w (v4f32, v4f32);
  37069. v2i64 __builtin_msa_fcne_d (v2f64, v2f64);
  37070. v4i32 __builtin_msa_fcor_w (v4f32, v4f32);
  37071. v2i64 __builtin_msa_fcor_d (v2f64, v2f64);
  37072. v4i32 __builtin_msa_fcueq_w (v4f32, v4f32);
  37073. v2i64 __builtin_msa_fcueq_d (v2f64, v2f64);
  37074. v4i32 __builtin_msa_fcule_w (v4f32, v4f32);
  37075. v2i64 __builtin_msa_fcule_d (v2f64, v2f64);
  37076. v4i32 __builtin_msa_fcult_w (v4f32, v4f32);
  37077. v2i64 __builtin_msa_fcult_d (v2f64, v2f64);
  37078. v4i32 __builtin_msa_fcun_w (v4f32, v4f32);
  37079. v2i64 __builtin_msa_fcun_d (v2f64, v2f64);
  37080. v4i32 __builtin_msa_fcune_w (v4f32, v4f32);
  37081. v2i64 __builtin_msa_fcune_d (v2f64, v2f64);
  37082. v4f32 __builtin_msa_fdiv_w (v4f32, v4f32);
  37083. v2f64 __builtin_msa_fdiv_d (v2f64, v2f64);
  37084. v8i16 __builtin_msa_fexdo_h (v4f32, v4f32);
  37085. v4f32 __builtin_msa_fexdo_w (v2f64, v2f64);
  37086. v4f32 __builtin_msa_fexp2_w (v4f32, v4i32);
  37087. v2f64 __builtin_msa_fexp2_d (v2f64, v2i64);
  37088. v4f32 __builtin_msa_fexupl_w (v8i16);
  37089. v2f64 __builtin_msa_fexupl_d (v4f32);
  37090. v4f32 __builtin_msa_fexupr_w (v8i16);
  37091. v2f64 __builtin_msa_fexupr_d (v4f32);
  37092. v4f32 __builtin_msa_ffint_s_w (v4i32);
  37093. v2f64 __builtin_msa_ffint_s_d (v2i64);
  37094. v4f32 __builtin_msa_ffint_u_w (v4u32);
  37095. v2f64 __builtin_msa_ffint_u_d (v2u64);
  37096. v4f32 __builtin_msa_ffql_w (v8i16);
  37097. v2f64 __builtin_msa_ffql_d (v4i32);
  37098. v4f32 __builtin_msa_ffqr_w (v8i16);
  37099. v2f64 __builtin_msa_ffqr_d (v4i32);
  37100. v16i8 __builtin_msa_fill_b (i32);
  37101. v8i16 __builtin_msa_fill_h (i32);
  37102. v4i32 __builtin_msa_fill_w (i32);
  37103. v2i64 __builtin_msa_fill_d (i64);
  37104. v4f32 __builtin_msa_flog2_w (v4f32);
  37105. v2f64 __builtin_msa_flog2_d (v2f64);
  37106. v4f32 __builtin_msa_fmadd_w (v4f32, v4f32, v4f32);
  37107. v2f64 __builtin_msa_fmadd_d (v2f64, v2f64, v2f64);
  37108. v4f32 __builtin_msa_fmax_w (v4f32, v4f32);
  37109. v2f64 __builtin_msa_fmax_d (v2f64, v2f64);
  37110. v4f32 __builtin_msa_fmax_a_w (v4f32, v4f32);
  37111. v2f64 __builtin_msa_fmax_a_d (v2f64, v2f64);
  37112. v4f32 __builtin_msa_fmin_w (v4f32, v4f32);
  37113. v2f64 __builtin_msa_fmin_d (v2f64, v2f64);
  37114. v4f32 __builtin_msa_fmin_a_w (v4f32, v4f32);
  37115. v2f64 __builtin_msa_fmin_a_d (v2f64, v2f64);
  37116. v4f32 __builtin_msa_fmsub_w (v4f32, v4f32, v4f32);
  37117. v2f64 __builtin_msa_fmsub_d (v2f64, v2f64, v2f64);
  37118. v4f32 __builtin_msa_fmul_w (v4f32, v4f32);
  37119. v2f64 __builtin_msa_fmul_d (v2f64, v2f64);
  37120. v4f32 __builtin_msa_frint_w (v4f32);
  37121. v2f64 __builtin_msa_frint_d (v2f64);
  37122. v4f32 __builtin_msa_frcp_w (v4f32);
  37123. v2f64 __builtin_msa_frcp_d (v2f64);
  37124. v4f32 __builtin_msa_frsqrt_w (v4f32);
  37125. v2f64 __builtin_msa_frsqrt_d (v2f64);
  37126. v4i32 __builtin_msa_fsaf_w (v4f32, v4f32);
  37127. v2i64 __builtin_msa_fsaf_d (v2f64, v2f64);
  37128. v4i32 __builtin_msa_fseq_w (v4f32, v4f32);
  37129. v2i64 __builtin_msa_fseq_d (v2f64, v2f64);
  37130. v4i32 __builtin_msa_fsle_w (v4f32, v4f32);
  37131. v2i64 __builtin_msa_fsle_d (v2f64, v2f64);
  37132. v4i32 __builtin_msa_fslt_w (v4f32, v4f32);
  37133. v2i64 __builtin_msa_fslt_d (v2f64, v2f64);
  37134. v4i32 __builtin_msa_fsne_w (v4f32, v4f32);
  37135. v2i64 __builtin_msa_fsne_d (v2f64, v2f64);
  37136. v4i32 __builtin_msa_fsor_w (v4f32, v4f32);
  37137. v2i64 __builtin_msa_fsor_d (v2f64, v2f64);
  37138. v4f32 __builtin_msa_fsqrt_w (v4f32);
  37139. v2f64 __builtin_msa_fsqrt_d (v2f64);
  37140. v4f32 __builtin_msa_fsub_w (v4f32, v4f32);
  37141. v2f64 __builtin_msa_fsub_d (v2f64, v2f64);
  37142. v4i32 __builtin_msa_fsueq_w (v4f32, v4f32);
  37143. v2i64 __builtin_msa_fsueq_d (v2f64, v2f64);
  37144. v4i32 __builtin_msa_fsule_w (v4f32, v4f32);
  37145. v2i64 __builtin_msa_fsule_d (v2f64, v2f64);
  37146. v4i32 __builtin_msa_fsult_w (v4f32, v4f32);
  37147. v2i64 __builtin_msa_fsult_d (v2f64, v2f64);
  37148. v4i32 __builtin_msa_fsun_w (v4f32, v4f32);
  37149. v2i64 __builtin_msa_fsun_d (v2f64, v2f64);
  37150. v4i32 __builtin_msa_fsune_w (v4f32, v4f32);
  37151. v2i64 __builtin_msa_fsune_d (v2f64, v2f64);
  37152. v4i32 __builtin_msa_ftint_s_w (v4f32);
  37153. v2i64 __builtin_msa_ftint_s_d (v2f64);
  37154. v4u32 __builtin_msa_ftint_u_w (v4f32);
  37155. v2u64 __builtin_msa_ftint_u_d (v2f64);
  37156. v8i16 __builtin_msa_ftq_h (v4f32, v4f32);
  37157. v4i32 __builtin_msa_ftq_w (v2f64, v2f64);
  37158. v4i32 __builtin_msa_ftrunc_s_w (v4f32);
  37159. v2i64 __builtin_msa_ftrunc_s_d (v2f64);
  37160. v4u32 __builtin_msa_ftrunc_u_w (v4f32);
  37161. v2u64 __builtin_msa_ftrunc_u_d (v2f64);
  37162. v8i16 __builtin_msa_hadd_s_h (v16i8, v16i8);
  37163. v4i32 __builtin_msa_hadd_s_w (v8i16, v8i16);
  37164. v2i64 __builtin_msa_hadd_s_d (v4i32, v4i32);
  37165. v8u16 __builtin_msa_hadd_u_h (v16u8, v16u8);
  37166. v4u32 __builtin_msa_hadd_u_w (v8u16, v8u16);
  37167. v2u64 __builtin_msa_hadd_u_d (v4u32, v4u32);
  37168. v8i16 __builtin_msa_hsub_s_h (v16i8, v16i8);
  37169. v4i32 __builtin_msa_hsub_s_w (v8i16, v8i16);
  37170. v2i64 __builtin_msa_hsub_s_d (v4i32, v4i32);
  37171. v8i16 __builtin_msa_hsub_u_h (v16u8, v16u8);
  37172. v4i32 __builtin_msa_hsub_u_w (v8u16, v8u16);
  37173. v2i64 __builtin_msa_hsub_u_d (v4u32, v4u32);
  37174. v16i8 __builtin_msa_ilvev_b (v16i8, v16i8);
  37175. v8i16 __builtin_msa_ilvev_h (v8i16, v8i16);
  37176. v4i32 __builtin_msa_ilvev_w (v4i32, v4i32);
  37177. v2i64 __builtin_msa_ilvev_d (v2i64, v2i64);
  37178. v16i8 __builtin_msa_ilvl_b (v16i8, v16i8);
  37179. v8i16 __builtin_msa_ilvl_h (v8i16, v8i16);
  37180. v4i32 __builtin_msa_ilvl_w (v4i32, v4i32);
  37181. v2i64 __builtin_msa_ilvl_d (v2i64, v2i64);
  37182. v16i8 __builtin_msa_ilvod_b (v16i8, v16i8);
  37183. v8i16 __builtin_msa_ilvod_h (v8i16, v8i16);
  37184. v4i32 __builtin_msa_ilvod_w (v4i32, v4i32);
  37185. v2i64 __builtin_msa_ilvod_d (v2i64, v2i64);
  37186. v16i8 __builtin_msa_ilvr_b (v16i8, v16i8);
  37187. v8i16 __builtin_msa_ilvr_h (v8i16, v8i16);
  37188. v4i32 __builtin_msa_ilvr_w (v4i32, v4i32);
  37189. v2i64 __builtin_msa_ilvr_d (v2i64, v2i64);
  37190. v16i8 __builtin_msa_insert_b (v16i8, imm0_15, i32);
  37191. v8i16 __builtin_msa_insert_h (v8i16, imm0_7, i32);
  37192. v4i32 __builtin_msa_insert_w (v4i32, imm0_3, i32);
  37193. v2i64 __builtin_msa_insert_d (v2i64, imm0_1, i64);
  37194. v16i8 __builtin_msa_insve_b (v16i8, imm0_15, v16i8);
  37195. v8i16 __builtin_msa_insve_h (v8i16, imm0_7, v8i16);
  37196. v4i32 __builtin_msa_insve_w (v4i32, imm0_3, v4i32);
  37197. v2i64 __builtin_msa_insve_d (v2i64, imm0_1, v2i64);
  37198. v16i8 __builtin_msa_ld_b (const void *, imm_n512_511);
  37199. v8i16 __builtin_msa_ld_h (const void *, imm_n1024_1022);
  37200. v4i32 __builtin_msa_ld_w (const void *, imm_n2048_2044);
  37201. v2i64 __builtin_msa_ld_d (const void *, imm_n4096_4088);
  37202. v16i8 __builtin_msa_ldi_b (imm_n512_511);
  37203. v8i16 __builtin_msa_ldi_h (imm_n512_511);
  37204. v4i32 __builtin_msa_ldi_w (imm_n512_511);
  37205. v2i64 __builtin_msa_ldi_d (imm_n512_511);
  37206. v8i16 __builtin_msa_madd_q_h (v8i16, v8i16, v8i16);
  37207. v4i32 __builtin_msa_madd_q_w (v4i32, v4i32, v4i32);
  37208. v8i16 __builtin_msa_maddr_q_h (v8i16, v8i16, v8i16);
  37209. v4i32 __builtin_msa_maddr_q_w (v4i32, v4i32, v4i32);
  37210. v16i8 __builtin_msa_maddv_b (v16i8, v16i8, v16i8);
  37211. v8i16 __builtin_msa_maddv_h (v8i16, v8i16, v8i16);
  37212. v4i32 __builtin_msa_maddv_w (v4i32, v4i32, v4i32);
  37213. v2i64 __builtin_msa_maddv_d (v2i64, v2i64, v2i64);
  37214. v16i8 __builtin_msa_max_a_b (v16i8, v16i8);
  37215. v8i16 __builtin_msa_max_a_h (v8i16, v8i16);
  37216. v4i32 __builtin_msa_max_a_w (v4i32, v4i32);
  37217. v2i64 __builtin_msa_max_a_d (v2i64, v2i64);
  37218. v16i8 __builtin_msa_max_s_b (v16i8, v16i8);
  37219. v8i16 __builtin_msa_max_s_h (v8i16, v8i16);
  37220. v4i32 __builtin_msa_max_s_w (v4i32, v4i32);
  37221. v2i64 __builtin_msa_max_s_d (v2i64, v2i64);
  37222. v16u8 __builtin_msa_max_u_b (v16u8, v16u8);
  37223. v8u16 __builtin_msa_max_u_h (v8u16, v8u16);
  37224. v4u32 __builtin_msa_max_u_w (v4u32, v4u32);
  37225. v2u64 __builtin_msa_max_u_d (v2u64, v2u64);
  37226. v16i8 __builtin_msa_maxi_s_b (v16i8, imm_n16_15);
  37227. v8i16 __builtin_msa_maxi_s_h (v8i16, imm_n16_15);
  37228. v4i32 __builtin_msa_maxi_s_w (v4i32, imm_n16_15);
  37229. v2i64 __builtin_msa_maxi_s_d (v2i64, imm_n16_15);
  37230. v16u8 __builtin_msa_maxi_u_b (v16u8, imm0_31);
  37231. v8u16 __builtin_msa_maxi_u_h (v8u16, imm0_31);
  37232. v4u32 __builtin_msa_maxi_u_w (v4u32, imm0_31);
  37233. v2u64 __builtin_msa_maxi_u_d (v2u64, imm0_31);
  37234. v16i8 __builtin_msa_min_a_b (v16i8, v16i8);
  37235. v8i16 __builtin_msa_min_a_h (v8i16, v8i16);
  37236. v4i32 __builtin_msa_min_a_w (v4i32, v4i32);
  37237. v2i64 __builtin_msa_min_a_d (v2i64, v2i64);
  37238. v16i8 __builtin_msa_min_s_b (v16i8, v16i8);
  37239. v8i16 __builtin_msa_min_s_h (v8i16, v8i16);
  37240. v4i32 __builtin_msa_min_s_w (v4i32, v4i32);
  37241. v2i64 __builtin_msa_min_s_d (v2i64, v2i64);
  37242. v16u8 __builtin_msa_min_u_b (v16u8, v16u8);
  37243. v8u16 __builtin_msa_min_u_h (v8u16, v8u16);
  37244. v4u32 __builtin_msa_min_u_w (v4u32, v4u32);
  37245. v2u64 __builtin_msa_min_u_d (v2u64, v2u64);
  37246. v16i8 __builtin_msa_mini_s_b (v16i8, imm_n16_15);
  37247. v8i16 __builtin_msa_mini_s_h (v8i16, imm_n16_15);
  37248. v4i32 __builtin_msa_mini_s_w (v4i32, imm_n16_15);
  37249. v2i64 __builtin_msa_mini_s_d (v2i64, imm_n16_15);
  37250. v16u8 __builtin_msa_mini_u_b (v16u8, imm0_31);
  37251. v8u16 __builtin_msa_mini_u_h (v8u16, imm0_31);
  37252. v4u32 __builtin_msa_mini_u_w (v4u32, imm0_31);
  37253. v2u64 __builtin_msa_mini_u_d (v2u64, imm0_31);
  37254. v16i8 __builtin_msa_mod_s_b (v16i8, v16i8);
  37255. v8i16 __builtin_msa_mod_s_h (v8i16, v8i16);
  37256. v4i32 __builtin_msa_mod_s_w (v4i32, v4i32);
  37257. v2i64 __builtin_msa_mod_s_d (v2i64, v2i64);
  37258. v16u8 __builtin_msa_mod_u_b (v16u8, v16u8);
  37259. v8u16 __builtin_msa_mod_u_h (v8u16, v8u16);
  37260. v4u32 __builtin_msa_mod_u_w (v4u32, v4u32);
  37261. v2u64 __builtin_msa_mod_u_d (v2u64, v2u64);
  37262. v16i8 __builtin_msa_move_v (v16i8);
  37263. v8i16 __builtin_msa_msub_q_h (v8i16, v8i16, v8i16);
  37264. v4i32 __builtin_msa_msub_q_w (v4i32, v4i32, v4i32);
  37265. v8i16 __builtin_msa_msubr_q_h (v8i16, v8i16, v8i16);
  37266. v4i32 __builtin_msa_msubr_q_w (v4i32, v4i32, v4i32);
  37267. v16i8 __builtin_msa_msubv_b (v16i8, v16i8, v16i8);
  37268. v8i16 __builtin_msa_msubv_h (v8i16, v8i16, v8i16);
  37269. v4i32 __builtin_msa_msubv_w (v4i32, v4i32, v4i32);
  37270. v2i64 __builtin_msa_msubv_d (v2i64, v2i64, v2i64);
  37271. v8i16 __builtin_msa_mul_q_h (v8i16, v8i16);
  37272. v4i32 __builtin_msa_mul_q_w (v4i32, v4i32);
  37273. v8i16 __builtin_msa_mulr_q_h (v8i16, v8i16);
  37274. v4i32 __builtin_msa_mulr_q_w (v4i32, v4i32);
  37275. v16i8 __builtin_msa_mulv_b (v16i8, v16i8);
  37276. v8i16 __builtin_msa_mulv_h (v8i16, v8i16);
  37277. v4i32 __builtin_msa_mulv_w (v4i32, v4i32);
  37278. v2i64 __builtin_msa_mulv_d (v2i64, v2i64);
  37279. v16i8 __builtin_msa_nloc_b (v16i8);
  37280. v8i16 __builtin_msa_nloc_h (v8i16);
  37281. v4i32 __builtin_msa_nloc_w (v4i32);
  37282. v2i64 __builtin_msa_nloc_d (v2i64);
  37283. v16i8 __builtin_msa_nlzc_b (v16i8);
  37284. v8i16 __builtin_msa_nlzc_h (v8i16);
  37285. v4i32 __builtin_msa_nlzc_w (v4i32);
  37286. v2i64 __builtin_msa_nlzc_d (v2i64);
  37287. v16u8 __builtin_msa_nor_v (v16u8, v16u8);
  37288. v16u8 __builtin_msa_nori_b (v16u8, imm0_255);
  37289. v16u8 __builtin_msa_or_v (v16u8, v16u8);
  37290. v16u8 __builtin_msa_ori_b (v16u8, imm0_255);
  37291. v16i8 __builtin_msa_pckev_b (v16i8, v16i8);
  37292. v8i16 __builtin_msa_pckev_h (v8i16, v8i16);
  37293. v4i32 __builtin_msa_pckev_w (v4i32, v4i32);
  37294. v2i64 __builtin_msa_pckev_d (v2i64, v2i64);
  37295. v16i8 __builtin_msa_pckod_b (v16i8, v16i8);
  37296. v8i16 __builtin_msa_pckod_h (v8i16, v8i16);
  37297. v4i32 __builtin_msa_pckod_w (v4i32, v4i32);
  37298. v2i64 __builtin_msa_pckod_d (v2i64, v2i64);
  37299. v16i8 __builtin_msa_pcnt_b (v16i8);
  37300. v8i16 __builtin_msa_pcnt_h (v8i16);
  37301. v4i32 __builtin_msa_pcnt_w (v4i32);
  37302. v2i64 __builtin_msa_pcnt_d (v2i64);
  37303. v16i8 __builtin_msa_sat_s_b (v16i8, imm0_7);
  37304. v8i16 __builtin_msa_sat_s_h (v8i16, imm0_15);
  37305. v4i32 __builtin_msa_sat_s_w (v4i32, imm0_31);
  37306. v2i64 __builtin_msa_sat_s_d (v2i64, imm0_63);
  37307. v16u8 __builtin_msa_sat_u_b (v16u8, imm0_7);
  37308. v8u16 __builtin_msa_sat_u_h (v8u16, imm0_15);
  37309. v4u32 __builtin_msa_sat_u_w (v4u32, imm0_31);
  37310. v2u64 __builtin_msa_sat_u_d (v2u64, imm0_63);
  37311. v16i8 __builtin_msa_shf_b (v16i8, imm0_255);
  37312. v8i16 __builtin_msa_shf_h (v8i16, imm0_255);
  37313. v4i32 __builtin_msa_shf_w (v4i32, imm0_255);
  37314. v16i8 __builtin_msa_sld_b (v16i8, v16i8, i32);
  37315. v8i16 __builtin_msa_sld_h (v8i16, v8i16, i32);
  37316. v4i32 __builtin_msa_sld_w (v4i32, v4i32, i32);
  37317. v2i64 __builtin_msa_sld_d (v2i64, v2i64, i32);
  37318. v16i8 __builtin_msa_sldi_b (v16i8, v16i8, imm0_15);
  37319. v8i16 __builtin_msa_sldi_h (v8i16, v8i16, imm0_7);
  37320. v4i32 __builtin_msa_sldi_w (v4i32, v4i32, imm0_3);
  37321. v2i64 __builtin_msa_sldi_d (v2i64, v2i64, imm0_1);
  37322. v16i8 __builtin_msa_sll_b (v16i8, v16i8);
  37323. v8i16 __builtin_msa_sll_h (v8i16, v8i16);
  37324. v4i32 __builtin_msa_sll_w (v4i32, v4i32);
  37325. v2i64 __builtin_msa_sll_d (v2i64, v2i64);
  37326. v16i8 __builtin_msa_slli_b (v16i8, imm0_7);
  37327. v8i16 __builtin_msa_slli_h (v8i16, imm0_15);
  37328. v4i32 __builtin_msa_slli_w (v4i32, imm0_31);
  37329. v2i64 __builtin_msa_slli_d (v2i64, imm0_63);
  37330. v16i8 __builtin_msa_splat_b (v16i8, i32);
  37331. v8i16 __builtin_msa_splat_h (v8i16, i32);
  37332. v4i32 __builtin_msa_splat_w (v4i32, i32);
  37333. v2i64 __builtin_msa_splat_d (v2i64, i32);
  37334. v16i8 __builtin_msa_splati_b (v16i8, imm0_15);
  37335. v8i16 __builtin_msa_splati_h (v8i16, imm0_7);
  37336. v4i32 __builtin_msa_splati_w (v4i32, imm0_3);
  37337. v2i64 __builtin_msa_splati_d (v2i64, imm0_1);
  37338. v16i8 __builtin_msa_sra_b (v16i8, v16i8);
  37339. v8i16 __builtin_msa_sra_h (v8i16, v8i16);
  37340. v4i32 __builtin_msa_sra_w (v4i32, v4i32);
  37341. v2i64 __builtin_msa_sra_d (v2i64, v2i64);
  37342. v16i8 __builtin_msa_srai_b (v16i8, imm0_7);
  37343. v8i16 __builtin_msa_srai_h (v8i16, imm0_15);
  37344. v4i32 __builtin_msa_srai_w (v4i32, imm0_31);
  37345. v2i64 __builtin_msa_srai_d (v2i64, imm0_63);
  37346. v16i8 __builtin_msa_srar_b (v16i8, v16i8);
  37347. v8i16 __builtin_msa_srar_h (v8i16, v8i16);
  37348. v4i32 __builtin_msa_srar_w (v4i32, v4i32);
  37349. v2i64 __builtin_msa_srar_d (v2i64, v2i64);
  37350. v16i8 __builtin_msa_srari_b (v16i8, imm0_7);
  37351. v8i16 __builtin_msa_srari_h (v8i16, imm0_15);
  37352. v4i32 __builtin_msa_srari_w (v4i32, imm0_31);
  37353. v2i64 __builtin_msa_srari_d (v2i64, imm0_63);
  37354. v16i8 __builtin_msa_srl_b (v16i8, v16i8);
  37355. v8i16 __builtin_msa_srl_h (v8i16, v8i16);
  37356. v4i32 __builtin_msa_srl_w (v4i32, v4i32);
  37357. v2i64 __builtin_msa_srl_d (v2i64, v2i64);
  37358. v16i8 __builtin_msa_srli_b (v16i8, imm0_7);
  37359. v8i16 __builtin_msa_srli_h (v8i16, imm0_15);
  37360. v4i32 __builtin_msa_srli_w (v4i32, imm0_31);
  37361. v2i64 __builtin_msa_srli_d (v2i64, imm0_63);
  37362. v16i8 __builtin_msa_srlr_b (v16i8, v16i8);
  37363. v8i16 __builtin_msa_srlr_h (v8i16, v8i16);
  37364. v4i32 __builtin_msa_srlr_w (v4i32, v4i32);
  37365. v2i64 __builtin_msa_srlr_d (v2i64, v2i64);
  37366. v16i8 __builtin_msa_srlri_b (v16i8, imm0_7);
  37367. v8i16 __builtin_msa_srlri_h (v8i16, imm0_15);
  37368. v4i32 __builtin_msa_srlri_w (v4i32, imm0_31);
  37369. v2i64 __builtin_msa_srlri_d (v2i64, imm0_63);
  37370. void __builtin_msa_st_b (v16i8, void *, imm_n512_511);
  37371. void __builtin_msa_st_h (v8i16, void *, imm_n1024_1022);
  37372. void __builtin_msa_st_w (v4i32, void *, imm_n2048_2044);
  37373. void __builtin_msa_st_d (v2i64, void *, imm_n4096_4088);
  37374. v16i8 __builtin_msa_subs_s_b (v16i8, v16i8);
  37375. v8i16 __builtin_msa_subs_s_h (v8i16, v8i16);
  37376. v4i32 __builtin_msa_subs_s_w (v4i32, v4i32);
  37377. v2i64 __builtin_msa_subs_s_d (v2i64, v2i64);
  37378. v16u8 __builtin_msa_subs_u_b (v16u8, v16u8);
  37379. v8u16 __builtin_msa_subs_u_h (v8u16, v8u16);
  37380. v4u32 __builtin_msa_subs_u_w (v4u32, v4u32);
  37381. v2u64 __builtin_msa_subs_u_d (v2u64, v2u64);
  37382. v16u8 __builtin_msa_subsus_u_b (v16u8, v16i8);
  37383. v8u16 __builtin_msa_subsus_u_h (v8u16, v8i16);
  37384. v4u32 __builtin_msa_subsus_u_w (v4u32, v4i32);
  37385. v2u64 __builtin_msa_subsus_u_d (v2u64, v2i64);
  37386. v16i8 __builtin_msa_subsuu_s_b (v16u8, v16u8);
  37387. v8i16 __builtin_msa_subsuu_s_h (v8u16, v8u16);
  37388. v4i32 __builtin_msa_subsuu_s_w (v4u32, v4u32);
  37389. v2i64 __builtin_msa_subsuu_s_d (v2u64, v2u64);
  37390. v16i8 __builtin_msa_subv_b (v16i8, v16i8);
  37391. v8i16 __builtin_msa_subv_h (v8i16, v8i16);
  37392. v4i32 __builtin_msa_subv_w (v4i32, v4i32);
  37393. v2i64 __builtin_msa_subv_d (v2i64, v2i64);
  37394. v16i8 __builtin_msa_subvi_b (v16i8, imm0_31);
  37395. v8i16 __builtin_msa_subvi_h (v8i16, imm0_31);
  37396. v4i32 __builtin_msa_subvi_w (v4i32, imm0_31);
  37397. v2i64 __builtin_msa_subvi_d (v2i64, imm0_31);
  37398. v16i8 __builtin_msa_vshf_b (v16i8, v16i8, v16i8);
  37399. v8i16 __builtin_msa_vshf_h (v8i16, v8i16, v8i16);
  37400. v4i32 __builtin_msa_vshf_w (v4i32, v4i32, v4i32);
  37401. v2i64 __builtin_msa_vshf_d (v2i64, v2i64, v2i64);
  37402. v16u8 __builtin_msa_xor_v (v16u8, v16u8);
  37403. v16u8 __builtin_msa_xori_b (v16u8, imm0_255);
  37404. 
  37405. File: gcc.info, Node: Other MIPS Built-in Functions, Next: MSP430 Built-in Functions, Prev: MIPS SIMD Architecture (MSA) Support, Up: Target Builtins
  37406. 6.60.18 Other MIPS Built-in Functions
  37407. -------------------------------------
  37408. GCC provides other MIPS-specific built-in functions:
  37409. 'void __builtin_mips_cache (int OP, const volatile void *ADDR)'
  37410. Insert a 'cache' instruction with operands OP and ADDR. GCC
  37411. defines the preprocessor macro '___GCC_HAVE_BUILTIN_MIPS_CACHE'
  37412. when this function is available.
  37413. 'unsigned int __builtin_mips_get_fcsr (void)'
  37414. 'void __builtin_mips_set_fcsr (unsigned int VALUE)'
  37415. Get and set the contents of the floating-point control and status
  37416. register (FPU control register 31). These functions are only
  37417. available in hard-float code but can be called in both MIPS16 and
  37418. non-MIPS16 contexts.
  37419. '__builtin_mips_set_fcsr' can be used to change any bit of the
  37420. register except the condition codes, which GCC assumes are
  37421. preserved.
  37422. 
  37423. File: gcc.info, Node: MSP430 Built-in Functions, Next: NDS32 Built-in Functions, Prev: Other MIPS Built-in Functions, Up: Target Builtins
  37424. 6.60.19 MSP430 Built-in Functions
  37425. ---------------------------------
  37426. GCC provides a couple of special builtin functions to aid in the writing
  37427. of interrupt handlers in C.
  37428. '__bic_SR_register_on_exit (int MASK)'
  37429. This clears the indicated bits in the saved copy of the status
  37430. register currently residing on the stack. This only works inside
  37431. interrupt handlers and the changes to the status register will only
  37432. take affect once the handler returns.
  37433. '__bis_SR_register_on_exit (int MASK)'
  37434. This sets the indicated bits in the saved copy of the status
  37435. register currently residing on the stack. This only works inside
  37436. interrupt handlers and the changes to the status register will only
  37437. take affect once the handler returns.
  37438. '__delay_cycles (long long CYCLES)'
  37439. This inserts an instruction sequence that takes exactly CYCLES
  37440. cycles (between 0 and about 17E9) to complete. The inserted
  37441. sequence may use jumps, loops, or no-ops, and does not interfere
  37442. with any other instructions. Note that CYCLES must be a
  37443. compile-time constant integer - that is, you must pass a number,
  37444. not a variable that may be optimized to a constant later. The
  37445. number of cycles delayed by this builtin is exact.
  37446. 
  37447. File: gcc.info, Node: NDS32 Built-in Functions, Next: picoChip Built-in Functions, Prev: MSP430 Built-in Functions, Up: Target Builtins
  37448. 6.60.20 NDS32 Built-in Functions
  37449. --------------------------------
  37450. These built-in functions are available for the NDS32 target:
  37451. -- Built-in Function: void __builtin_nds32_isync (int *ADDR)
  37452. Insert an ISYNC instruction into the instruction stream where ADDR
  37453. is an instruction address for serialization.
  37454. -- Built-in Function: void __builtin_nds32_isb (void)
  37455. Insert an ISB instruction into the instruction stream.
  37456. -- Built-in Function: int __builtin_nds32_mfsr (int SR)
  37457. Return the content of a system register which is mapped by SR.
  37458. -- Built-in Function: int __builtin_nds32_mfusr (int USR)
  37459. Return the content of a user space register which is mapped by USR.
  37460. -- Built-in Function: void __builtin_nds32_mtsr (int VALUE, int SR)
  37461. Move the VALUE to a system register which is mapped by SR.
  37462. -- Built-in Function: void __builtin_nds32_mtusr (int VALUE, int USR)
  37463. Move the VALUE to a user space register which is mapped by USR.
  37464. -- Built-in Function: void __builtin_nds32_setgie_en (void)
  37465. Enable global interrupt.
  37466. -- Built-in Function: void __builtin_nds32_setgie_dis (void)
  37467. Disable global interrupt.
  37468. 
  37469. File: gcc.info, Node: picoChip Built-in Functions, Next: Basic PowerPC Built-in Functions, Prev: NDS32 Built-in Functions, Up: Target Builtins
  37470. 6.60.21 picoChip Built-in Functions
  37471. -----------------------------------
  37472. GCC provides an interface to selected machine instructions from the
  37473. picoChip instruction set.
  37474. 'int __builtin_sbc (int VALUE)'
  37475. Sign bit count. Return the number of consecutive bits in VALUE
  37476. that have the same value as the sign bit. The result is the number
  37477. of leading sign bits minus one, giving the number of redundant sign
  37478. bits in VALUE.
  37479. 'int __builtin_byteswap (int VALUE)'
  37480. Byte swap. Return the result of swapping the upper and lower bytes
  37481. of VALUE.
  37482. 'int __builtin_brev (int VALUE)'
  37483. Bit reversal. Return the result of reversing the bits in VALUE.
  37484. Bit 15 is swapped with bit 0, bit 14 is swapped with bit 1, and so
  37485. on.
  37486. 'int __builtin_adds (int X, int Y)'
  37487. Saturating addition. Return the result of adding X and Y, storing
  37488. the value 32767 if the result overflows.
  37489. 'int __builtin_subs (int X, int Y)'
  37490. Saturating subtraction. Return the result of subtracting Y from X,
  37491. storing the value -32768 if the result overflows.
  37492. 'void __builtin_halt (void)'
  37493. Halt. The processor stops execution. This built-in is useful for
  37494. implementing assertions.
  37495. 
  37496. File: gcc.info, Node: Basic PowerPC Built-in Functions, Next: PowerPC AltiVec/VSX Built-in Functions, Prev: picoChip Built-in Functions, Up: Target Builtins
  37497. 6.60.22 Basic PowerPC Built-in Functions
  37498. ----------------------------------------
  37499. * Menu:
  37500. * Basic PowerPC Built-in Functions Available on all Configurations::
  37501. * Basic PowerPC Built-in Functions Available on ISA 2.05::
  37502. * Basic PowerPC Built-in Functions Available on ISA 2.06::
  37503. * Basic PowerPC Built-in Functions Available on ISA 2.07::
  37504. * Basic PowerPC Built-in Functions Available on ISA 3.0::
  37505. This section describes PowerPC built-in functions that do not require
  37506. the inclusion of any special header files to declare prototypes or
  37507. provide macro definitions. The sections that follow describe additional
  37508. PowerPC built-in functions.
  37509. 
  37510. File: gcc.info, Node: Basic PowerPC Built-in Functions Available on all Configurations, Next: Basic PowerPC Built-in Functions Available on ISA 2.05, Up: Basic PowerPC Built-in Functions
  37511. 6.60.22.1 Basic PowerPC Built-in Functions Available on all Configurations
  37512. ..........................................................................
  37513. -- Built-in Function: void __builtin_cpu_init (void)
  37514. This function is a 'nop' on the PowerPC platform and is included
  37515. solely to maintain API compatibility with the x86 builtins.
  37516. -- Built-in Function: int __builtin_cpu_is (const char *CPUNAME)
  37517. This function returns a value of '1' if the run-time CPU is of type
  37518. CPUNAME and returns '0' otherwise
  37519. The '__builtin_cpu_is' function requires GLIBC 2.23 or newer which
  37520. exports the hardware capability bits. GCC defines the macro
  37521. '__BUILTIN_CPU_SUPPORTS__' if the '__builtin_cpu_supports' built-in
  37522. function is fully supported.
  37523. If GCC was configured to use a GLIBC before 2.23, the built-in
  37524. function '__builtin_cpu_is' always returns a 0 and the compiler
  37525. issues a warning.
  37526. The following CPU names can be detected:
  37527. 'power10'
  37528. IBM POWER10 Server CPU.
  37529. 'power9'
  37530. IBM POWER9 Server CPU.
  37531. 'power8'
  37532. IBM POWER8 Server CPU.
  37533. 'power7'
  37534. IBM POWER7 Server CPU.
  37535. 'power6x'
  37536. IBM POWER6 Server CPU (RAW mode).
  37537. 'power6'
  37538. IBM POWER6 Server CPU (Architected mode).
  37539. 'power5+'
  37540. IBM POWER5+ Server CPU.
  37541. 'power5'
  37542. IBM POWER5 Server CPU.
  37543. 'ppc970'
  37544. IBM 970 Server CPU (ie, Apple G5).
  37545. 'power4'
  37546. IBM POWER4 Server CPU.
  37547. 'ppca2'
  37548. IBM A2 64-bit Embedded CPU
  37549. 'ppc476'
  37550. IBM PowerPC 476FP 32-bit Embedded CPU.
  37551. 'ppc464'
  37552. IBM PowerPC 464 32-bit Embedded CPU.
  37553. 'ppc440'
  37554. PowerPC 440 32-bit Embedded CPU.
  37555. 'ppc405'
  37556. PowerPC 405 32-bit Embedded CPU.
  37557. 'ppc-cell-be'
  37558. IBM PowerPC Cell Broadband Engine Architecture CPU.
  37559. Here is an example:
  37560. #ifdef __BUILTIN_CPU_SUPPORTS__
  37561. if (__builtin_cpu_is ("power8"))
  37562. {
  37563. do_power8 (); // POWER8 specific implementation.
  37564. }
  37565. else
  37566. #endif
  37567. {
  37568. do_generic (); // Generic implementation.
  37569. }
  37570. -- Built-in Function: int __builtin_cpu_supports (const char *FEATURE)
  37571. This function returns a value of '1' if the run-time CPU supports
  37572. the HWCAP feature FEATURE and returns '0' otherwise.
  37573. The '__builtin_cpu_supports' function requires GLIBC 2.23 or newer
  37574. which exports the hardware capability bits. GCC defines the macro
  37575. '__BUILTIN_CPU_SUPPORTS__' if the '__builtin_cpu_supports' built-in
  37576. function is fully supported.
  37577. If GCC was configured to use a GLIBC before 2.23, the built-in
  37578. function '__builtin_cpu_suports' always returns a 0 and the
  37579. compiler issues a warning.
  37580. The following features can be detected:
  37581. '4xxmac'
  37582. 4xx CPU has a Multiply Accumulator.
  37583. 'altivec'
  37584. CPU has a SIMD/Vector Unit.
  37585. 'arch_2_05'
  37586. CPU supports ISA 2.05 (eg, POWER6)
  37587. 'arch_2_06'
  37588. CPU supports ISA 2.06 (eg, POWER7)
  37589. 'arch_2_07'
  37590. CPU supports ISA 2.07 (eg, POWER8)
  37591. 'arch_3_00'
  37592. CPU supports ISA 3.0 (eg, POWER9)
  37593. 'arch_3_1'
  37594. CPU supports ISA 3.1 (eg, POWER10)
  37595. 'archpmu'
  37596. CPU supports the set of compatible performance monitoring
  37597. events.
  37598. 'booke'
  37599. CPU supports the Embedded ISA category.
  37600. 'cellbe'
  37601. CPU has a CELL broadband engine.
  37602. 'darn'
  37603. CPU supports the 'darn' (deliver a random number) instruction.
  37604. 'dfp'
  37605. CPU has a decimal floating point unit.
  37606. 'dscr'
  37607. CPU supports the data stream control register.
  37608. 'ebb'
  37609. CPU supports event base branching.
  37610. 'efpdouble'
  37611. CPU has a SPE double precision floating point unit.
  37612. 'efpsingle'
  37613. CPU has a SPE single precision floating point unit.
  37614. 'fpu'
  37615. CPU has a floating point unit.
  37616. 'htm'
  37617. CPU has hardware transaction memory instructions.
  37618. 'htm-nosc'
  37619. Kernel aborts hardware transactions when a syscall is made.
  37620. 'htm-no-suspend'
  37621. CPU supports hardware transaction memory but does not support
  37622. the 'tsuspend.' instruction.
  37623. 'ic_snoop'
  37624. CPU supports icache snooping capabilities.
  37625. 'ieee128'
  37626. CPU supports 128-bit IEEE binary floating point instructions.
  37627. 'isel'
  37628. CPU supports the integer select instruction.
  37629. 'mma'
  37630. CPU supports the matrix-multiply assist instructions.
  37631. 'mmu'
  37632. CPU has a memory management unit.
  37633. 'notb'
  37634. CPU does not have a timebase (eg, 601 and 403gx).
  37635. 'pa6t'
  37636. CPU supports the PA Semi 6T CORE ISA.
  37637. 'power4'
  37638. CPU supports ISA 2.00 (eg, POWER4)
  37639. 'power5'
  37640. CPU supports ISA 2.02 (eg, POWER5)
  37641. 'power5+'
  37642. CPU supports ISA 2.03 (eg, POWER5+)
  37643. 'power6x'
  37644. CPU supports ISA 2.05 (eg, POWER6) extended opcodes mffgpr and
  37645. mftgpr.
  37646. 'ppc32'
  37647. CPU supports 32-bit mode execution.
  37648. 'ppc601'
  37649. CPU supports the old POWER ISA (eg, 601)
  37650. 'ppc64'
  37651. CPU supports 64-bit mode execution.
  37652. 'ppcle'
  37653. CPU supports a little-endian mode that uses address swizzling.
  37654. 'scv'
  37655. Kernel supports system call vectored.
  37656. 'smt'
  37657. CPU support simultaneous multi-threading.
  37658. 'spe'
  37659. CPU has a signal processing extension unit.
  37660. 'tar'
  37661. CPU supports the target address register.
  37662. 'true_le'
  37663. CPU supports true little-endian mode.
  37664. 'ucache'
  37665. CPU has unified I/D cache.
  37666. 'vcrypto'
  37667. CPU supports the vector cryptography instructions.
  37668. 'vsx'
  37669. CPU supports the vector-scalar extension.
  37670. Here is an example:
  37671. #ifdef __BUILTIN_CPU_SUPPORTS__
  37672. if (__builtin_cpu_supports ("fpu"))
  37673. {
  37674. asm("fadd %0,%1,%2" : "=d"(dst) : "d"(src1), "d"(src2));
  37675. }
  37676. else
  37677. #endif
  37678. {
  37679. dst = __fadd (src1, src2); // Software FP addition function.
  37680. }
  37681. The following built-in functions are also available on all PowerPC
  37682. processors:
  37683. uint64_t __builtin_ppc_get_timebase ();
  37684. unsigned long __builtin_ppc_mftb ();
  37685. double __builtin_unpack_ibm128 (__ibm128, int);
  37686. __ibm128 __builtin_pack_ibm128 (double, double);
  37687. double __builtin_mffs (void);
  37688. void __builtin_mtfsf (const int, double);
  37689. void __builtin_mtfsb0 (const int);
  37690. void __builtin_mtfsb1 (const int);
  37691. void __builtin_set_fpscr_rn (int);
  37692. The '__builtin_ppc_get_timebase' and '__builtin_ppc_mftb' functions
  37693. generate instructions to read the Time Base Register. The
  37694. '__builtin_ppc_get_timebase' function may generate multiple instructions
  37695. and always returns the 64 bits of the Time Base Register. The
  37696. '__builtin_ppc_mftb' function always generates one instruction and
  37697. returns the Time Base Register value as an unsigned long, throwing away
  37698. the most significant word on 32-bit environments. The '__builtin_mffs'
  37699. return the value of the FPSCR register. Note, ISA 3.0 supports the
  37700. '__builtin_mffsl()' which permits software to read the control and
  37701. non-sticky status bits in the FSPCR without the higher latency
  37702. associated with accessing the sticky status bits. The '__builtin_mtfsf'
  37703. takes a constant 8-bit integer field mask and a double precision
  37704. floating point argument and generates the 'mtfsf' (extended mnemonic)
  37705. instruction to write new values to selected fields of the FPSCR. The
  37706. '__builtin_mtfsb0' and '__builtin_mtfsb1' take the bit to change as an
  37707. argument. The valid bit range is between 0 and 31. The builtins map to
  37708. the 'mtfsb0' and 'mtfsb1' instructions which take the argument and add
  37709. 32. Hence these instructions only modify the FPSCR[32:63] bits by
  37710. changing the specified bit to a zero or one respectively. The
  37711. '__builtin_set_fpscr_rn' builtin allows changing both of the floating
  37712. point rounding mode bits. The argument is a 2-bit value. The argument
  37713. can either be a 'const int' or stored in a variable. The builtin uses
  37714. the ISA 3.0 instruction 'mffscrn' if available, otherwise it reads the
  37715. FPSCR, masks the current rounding mode bits out and OR's in the new
  37716. value.
  37717. 
  37718. File: gcc.info, Node: Basic PowerPC Built-in Functions Available on ISA 2.05, Next: Basic PowerPC Built-in Functions Available on ISA 2.06, Prev: Basic PowerPC Built-in Functions Available on all Configurations, Up: Basic PowerPC Built-in Functions
  37719. 6.60.22.2 Basic PowerPC Built-in Functions Available on ISA 2.05
  37720. ................................................................
  37721. The basic built-in functions described in this section are available on
  37722. the PowerPC family of processors starting with ISA 2.05 or later.
  37723. Unless specific options are explicitly disabled on the command line,
  37724. specifying option '-mcpu=power6' has the effect of enabling the
  37725. '-mpowerpc64', '-mpowerpc-gpopt', '-mpowerpc-gfxopt', '-mmfcrf',
  37726. '-mpopcntb', '-mfprnd', '-mcmpb', '-mhard-dfp', and '-mrecip-precision'
  37727. options. Specify the '-maltivec' option explicitly in combination with
  37728. the above options if desired.
  37729. The following functions require option '-mcmpb'.
  37730. unsigned long long __builtin_cmpb (unsigned long long int, unsigned long long int);
  37731. unsigned int __builtin_cmpb (unsigned int, unsigned int);
  37732. The '__builtin_cmpb' function performs a byte-wise compare on the
  37733. contents of its two arguments, returning the result of the byte-wise
  37734. comparison as the returned value. For each byte comparison, the
  37735. corresponding byte of the return value holds 0xff if the input bytes are
  37736. equal and 0 if the input bytes are not equal. If either of the
  37737. arguments to this built-in function is wider than 32 bits, the function
  37738. call expands into the form that expects 'unsigned long long int'
  37739. arguments which is only available on 64-bit targets.
  37740. The following built-in functions are available when hardware decimal
  37741. floating point ('-mhard-dfp') is available:
  37742. void __builtin_set_fpscr_drn(int);
  37743. _Decimal64 __builtin_ddedpd (int, _Decimal64);
  37744. _Decimal128 __builtin_ddedpdq (int, _Decimal128);
  37745. _Decimal64 __builtin_denbcd (int, _Decimal64);
  37746. _Decimal128 __builtin_denbcdq (int, _Decimal128);
  37747. _Decimal64 __builtin_diex (long long, _Decimal64);
  37748. _Decimal128 _builtin_diexq (long long, _Decimal128);
  37749. _Decimal64 __builtin_dscli (_Decimal64, int);
  37750. _Decimal128 __builtin_dscliq (_Decimal128, int);
  37751. _Decimal64 __builtin_dscri (_Decimal64, int);
  37752. _Decimal128 __builtin_dscriq (_Decimal128, int);
  37753. long long __builtin_dxex (_Decimal64);
  37754. long long __builtin_dxexq (_Decimal128);
  37755. _Decimal128 __builtin_pack_dec128 (unsigned long long, unsigned long long);
  37756. unsigned long long __builtin_unpack_dec128 (_Decimal128, int);
  37757. The __builtin_set_fpscr_drn builtin allows changing the three decimal
  37758. floating point rounding mode bits. The argument is a 3-bit value. The
  37759. argument can either be a const int or the value can be stored in
  37760. a variable.
  37761. The builtin uses the ISA 3.0 instruction mffscdrn if available.
  37762. Otherwise the builtin reads the FPSCR, masks the current decimal rounding
  37763. mode bits out and OR's in the new value.
  37764. The following functions require '-mhard-float', '-mpowerpc-gfxopt', and
  37765. '-mpopcntb' options.
  37766. double __builtin_recipdiv (double, double);
  37767. float __builtin_recipdivf (float, float);
  37768. double __builtin_rsqrt (double);
  37769. float __builtin_rsqrtf (float);
  37770. The 'vec_rsqrt', '__builtin_rsqrt', and '__builtin_rsqrtf' functions
  37771. generate multiple instructions to implement the reciprocal sqrt
  37772. functionality using reciprocal sqrt estimate instructions.
  37773. The '__builtin_recipdiv', and '__builtin_recipdivf' functions generate
  37774. multiple instructions to implement division using the reciprocal
  37775. estimate instructions.
  37776. The following functions require '-mhard-float' and '-mmultiple'
  37777. options.
  37778. The '__builtin_unpack_longdouble' function takes a 'long double'
  37779. argument and a compile time constant of 0 or 1. If the constant is 0,
  37780. the first 'double' within the 'long double' is returned, otherwise the
  37781. second 'double' is returned. The '__builtin_unpack_longdouble' function
  37782. is only available if 'long double' uses the IBM extended double
  37783. representation.
  37784. The '__builtin_pack_longdouble' function takes two 'double' arguments
  37785. and returns a 'long double' value that combines the two arguments. The
  37786. '__builtin_pack_longdouble' function is only available if 'long double'
  37787. uses the IBM extended double representation.
  37788. The '__builtin_unpack_ibm128' function takes a '__ibm128' argument and
  37789. a compile time constant of 0 or 1. If the constant is 0, the first
  37790. 'double' within the '__ibm128' is returned, otherwise the second
  37791. 'double' is returned.
  37792. The '__builtin_pack_ibm128' function takes two 'double' arguments and
  37793. returns a '__ibm128' value that combines the two arguments.
  37794. Additional built-in functions are available for the 64-bit PowerPC
  37795. family of processors, for efficient use of 128-bit floating point
  37796. ('__float128') values.
  37797. 
  37798. File: gcc.info, Node: Basic PowerPC Built-in Functions Available on ISA 2.06, Next: Basic PowerPC Built-in Functions Available on ISA 2.07, Prev: Basic PowerPC Built-in Functions Available on ISA 2.05, Up: Basic PowerPC Built-in Functions
  37799. 6.60.22.3 Basic PowerPC Built-in Functions Available on ISA 2.06
  37800. ................................................................
  37801. The basic built-in functions described in this section are available on
  37802. the PowerPC family of processors starting with ISA 2.05 or later.
  37803. Unless specific options are explicitly disabled on the command line,
  37804. specifying option '-mcpu=power7' has the effect of enabling all the same
  37805. options as for '-mcpu=power6' in addition to the '-maltivec',
  37806. '-mpopcntd', and '-mvsx' options.
  37807. The following basic built-in functions require '-mpopcntd':
  37808. unsigned int __builtin_addg6s (unsigned int, unsigned int);
  37809. long long __builtin_bpermd (long long, long long);
  37810. unsigned int __builtin_cbcdtd (unsigned int);
  37811. unsigned int __builtin_cdtbcd (unsigned int);
  37812. long long __builtin_divde (long long, long long);
  37813. unsigned long long __builtin_divdeu (unsigned long long, unsigned long long);
  37814. int __builtin_divwe (int, int);
  37815. unsigned int __builtin_divweu (unsigned int, unsigned int);
  37816. vector __int128 __builtin_pack_vector_int128 (long long, long long);
  37817. void __builtin_rs6000_speculation_barrier (void);
  37818. long long __builtin_unpack_vector_int128 (vector __int128, signed char);
  37819. Of these, the '__builtin_divde' and '__builtin_divdeu' functions
  37820. require a 64-bit environment.
  37821. The following basic built-in functions, which are also supported on x86
  37822. targets, require '-mfloat128'.
  37823. __float128 __builtin_fabsq (__float128);
  37824. __float128 __builtin_copysignq (__float128, __float128);
  37825. __float128 __builtin_infq (void);
  37826. __float128 __builtin_huge_valq (void);
  37827. __float128 __builtin_nanq (void);
  37828. __float128 __builtin_nansq (void);
  37829. __float128 __builtin_sqrtf128 (__float128);
  37830. __float128 __builtin_fmaf128 (__float128, __float128, __float128);
  37831. 
  37832. File: gcc.info, Node: Basic PowerPC Built-in Functions Available on ISA 2.07, Next: Basic PowerPC Built-in Functions Available on ISA 3.0, Prev: Basic PowerPC Built-in Functions Available on ISA 2.06, Up: Basic PowerPC Built-in Functions
  37833. 6.60.22.4 Basic PowerPC Built-in Functions Available on ISA 2.07
  37834. ................................................................
  37835. The basic built-in functions described in this section are available on
  37836. the PowerPC family of processors starting with ISA 2.07 or later.
  37837. Unless specific options are explicitly disabled on the command line,
  37838. specifying option '-mcpu=power8' has the effect of enabling all the same
  37839. options as for '-mcpu=power7' in addition to the '-mpower8-fusion',
  37840. '-mpower8-vector', '-mcrypto', '-mhtm', '-mquad-memory', and
  37841. '-mquad-memory-atomic' options.
  37842. This section intentionally empty.
  37843. 
  37844. File: gcc.info, Node: Basic PowerPC Built-in Functions Available on ISA 3.0, Prev: Basic PowerPC Built-in Functions Available on ISA 2.07, Up: Basic PowerPC Built-in Functions
  37845. 6.60.22.5 Basic PowerPC Built-in Functions Available on ISA 3.0
  37846. ...............................................................
  37847. The basic built-in functions described in this section are available on
  37848. the PowerPC family of processors starting with ISA 3.0 or later. Unless
  37849. specific options are explicitly disabled on the command line, specifying
  37850. option '-mcpu=power9' has the effect of enabling all the same options as
  37851. for '-mcpu=power8' in addition to the '-misel' option.
  37852. The following built-in functions are available on Linux 64-bit systems
  37853. that use the ISA 3.0 instruction set ('-mcpu=power9'):
  37854. '__float128 __builtin_addf128_round_to_odd (__float128, __float128)'
  37855. Perform a 128-bit IEEE floating point add using round to odd as the
  37856. rounding mode.
  37857. '__float128 __builtin_subf128_round_to_odd (__float128, __float128)'
  37858. Perform a 128-bit IEEE floating point subtract using round to odd
  37859. as the rounding mode.
  37860. '__float128 __builtin_mulf128_round_to_odd (__float128, __float128)'
  37861. Perform a 128-bit IEEE floating point multiply using round to odd
  37862. as the rounding mode.
  37863. '__float128 __builtin_divf128_round_to_odd (__float128, __float128)'
  37864. Perform a 128-bit IEEE floating point divide using round to odd as
  37865. the rounding mode.
  37866. '__float128 __builtin_sqrtf128_round_to_odd (__float128)'
  37867. Perform a 128-bit IEEE floating point square root using round to
  37868. odd as the rounding mode.
  37869. '__float128 __builtin_fmaf128_round_to_odd (__float128, __float128, __float128)'
  37870. Perform a 128-bit IEEE floating point fused multiply and add
  37871. operation using round to odd as the rounding mode.
  37872. 'double __builtin_truncf128_round_to_odd (__float128)'
  37873. Convert a 128-bit IEEE floating point value to 'double' using round
  37874. to odd as the rounding mode.
  37875. The following additional built-in functions are also available for the
  37876. PowerPC family of processors, starting with ISA 3.0 or later:
  37877. long long __builtin_darn (void);
  37878. long long __builtin_darn_raw (void);
  37879. int __builtin_darn_32 (void);
  37880. The '__builtin_darn' and '__builtin_darn_raw' functions require a
  37881. 64-bit environment supporting ISA 3.0 or later. The '__builtin_darn'
  37882. function provides a 64-bit conditioned random number. The
  37883. '__builtin_darn_raw' function provides a 64-bit raw random number. The
  37884. '__builtin_darn_32' function provides a 32-bit conditioned random
  37885. number.
  37886. The following additional built-in functions are also available for the
  37887. PowerPC family of processors, starting with ISA 3.0 or later:
  37888. int __builtin_byte_in_set (unsigned char u, unsigned long long set);
  37889. int __builtin_byte_in_range (unsigned char u, unsigned int range);
  37890. int __builtin_byte_in_either_range (unsigned char u, unsigned int ranges);
  37891. int __builtin_dfp_dtstsfi_lt (unsigned int comparison, _Decimal64 value);
  37892. int __builtin_dfp_dtstsfi_lt (unsigned int comparison, _Decimal128 value);
  37893. int __builtin_dfp_dtstsfi_lt_dd (unsigned int comparison, _Decimal64 value);
  37894. int __builtin_dfp_dtstsfi_lt_td (unsigned int comparison, _Decimal128 value);
  37895. int __builtin_dfp_dtstsfi_gt (unsigned int comparison, _Decimal64 value);
  37896. int __builtin_dfp_dtstsfi_gt (unsigned int comparison, _Decimal128 value);
  37897. int __builtin_dfp_dtstsfi_gt_dd (unsigned int comparison, _Decimal64 value);
  37898. int __builtin_dfp_dtstsfi_gt_td (unsigned int comparison, _Decimal128 value);
  37899. int __builtin_dfp_dtstsfi_eq (unsigned int comparison, _Decimal64 value);
  37900. int __builtin_dfp_dtstsfi_eq (unsigned int comparison, _Decimal128 value);
  37901. int __builtin_dfp_dtstsfi_eq_dd (unsigned int comparison, _Decimal64 value);
  37902. int __builtin_dfp_dtstsfi_eq_td (unsigned int comparison, _Decimal128 value);
  37903. int __builtin_dfp_dtstsfi_ov (unsigned int comparison, _Decimal64 value);
  37904. int __builtin_dfp_dtstsfi_ov (unsigned int comparison, _Decimal128 value);
  37905. int __builtin_dfp_dtstsfi_ov_dd (unsigned int comparison, _Decimal64 value);
  37906. int __builtin_dfp_dtstsfi_ov_td (unsigned int comparison, _Decimal128 value);
  37907. double __builtin_mffsl(void);
  37908. The '__builtin_byte_in_set' function requires a 64-bit environment
  37909. supporting ISA 3.0 or later. This function returns a non-zero value if
  37910. and only if its 'u' argument exactly equals one of the eight bytes
  37911. contained within its 64-bit 'set' argument.
  37912. The '__builtin_byte_in_range' and '__builtin_byte_in_either_range'
  37913. require an environment supporting ISA 3.0 or later. For these two
  37914. functions, the 'range' argument is encoded as 4 bytes, organized as
  37915. 'hi_1:lo_1:hi_2:lo_2'. The '__builtin_byte_in_range' function returns a
  37916. non-zero value if and only if its 'u' argument is within the range
  37917. bounded between 'lo_2' and 'hi_2' inclusive. The
  37918. '__builtin_byte_in_either_range' function returns non-zero if and only
  37919. if its 'u' argument is within either the range bounded between 'lo_1'
  37920. and 'hi_1' inclusive or the range bounded between 'lo_2' and 'hi_2'
  37921. inclusive.
  37922. The '__builtin_dfp_dtstsfi_lt' function returns a non-zero value if and
  37923. only if the number of signficant digits of its 'value' argument is less
  37924. than its 'comparison' argument. The '__builtin_dfp_dtstsfi_lt_dd' and
  37925. '__builtin_dfp_dtstsfi_lt_td' functions behave similarly, but require
  37926. that the type of the 'value' argument be '__Decimal64' and
  37927. '__Decimal128' respectively.
  37928. The '__builtin_dfp_dtstsfi_gt' function returns a non-zero value if and
  37929. only if the number of signficant digits of its 'value' argument is
  37930. greater than its 'comparison' argument. The
  37931. '__builtin_dfp_dtstsfi_gt_dd' and '__builtin_dfp_dtstsfi_gt_td'
  37932. functions behave similarly, but require that the type of the 'value'
  37933. argument be '__Decimal64' and '__Decimal128' respectively.
  37934. The '__builtin_dfp_dtstsfi_eq' function returns a non-zero value if and
  37935. only if the number of signficant digits of its 'value' argument equals
  37936. its 'comparison' argument. The '__builtin_dfp_dtstsfi_eq_dd' and
  37937. '__builtin_dfp_dtstsfi_eq_td' functions behave similarly, but require
  37938. that the type of the 'value' argument be '__Decimal64' and
  37939. '__Decimal128' respectively.
  37940. The '__builtin_dfp_dtstsfi_ov' function returns a non-zero value if and
  37941. only if its 'value' argument has an undefined number of significant
  37942. digits, such as when 'value' is an encoding of 'NaN'. The
  37943. '__builtin_dfp_dtstsfi_ov_dd' and '__builtin_dfp_dtstsfi_ov_td'
  37944. functions behave similarly, but require that the type of the 'value'
  37945. argument be '__Decimal64' and '__Decimal128' respectively.
  37946. The '__builtin_mffsl' uses the ISA 3.0 'mffsl' instruction to read the
  37947. FPSCR. The instruction is a lower latency version of the 'mffs'
  37948. instruction. If the 'mffsl' instruction is not available, then the
  37949. builtin uses the older 'mffs' instruction to read the FPSCR.
  37950. 
  37951. File: gcc.info, Node: PowerPC AltiVec/VSX Built-in Functions, Next: PowerPC Hardware Transactional Memory Built-in Functions, Prev: Basic PowerPC Built-in Functions, Up: Target Builtins
  37952. 6.60.23 PowerPC AltiVec/VSX Built-in Functions
  37953. ----------------------------------------------
  37954. GCC provides an interface for the PowerPC family of processors to access
  37955. the AltiVec operations described in Motorola's AltiVec Programming
  37956. Interface Manual. The interface is made available by including
  37957. '<altivec.h>' and using '-maltivec' and '-mabi=altivec'. The interface
  37958. supports the following vector types.
  37959. vector unsigned char
  37960. vector signed char
  37961. vector bool char
  37962. vector unsigned short
  37963. vector signed short
  37964. vector bool short
  37965. vector pixel
  37966. vector unsigned int
  37967. vector signed int
  37968. vector bool int
  37969. vector float
  37970. GCC's implementation of the high-level language interface available
  37971. from C and C++ code differs from Motorola's documentation in several
  37972. ways.
  37973. * A vector constant is a list of constant expressions within curly
  37974. braces.
  37975. * A vector initializer requires no cast if the vector constant is of
  37976. the same type as the variable it is initializing.
  37977. * If 'signed' or 'unsigned' is omitted, the signedness of the vector
  37978. type is the default signedness of the base type. The default
  37979. varies depending on the operating system, so a portable program
  37980. should always specify the signedness.
  37981. * Compiling with '-maltivec' adds keywords '__vector', 'vector',
  37982. '__pixel', 'pixel', '__bool' and 'bool'. When compiling ISO C, the
  37983. context-sensitive substitution of the keywords 'vector', 'pixel'
  37984. and 'bool' is disabled. To use them, you must include
  37985. '<altivec.h>' instead.
  37986. * GCC allows using a 'typedef' name as the type specifier for a
  37987. vector type, but only under the following circumstances:
  37988. * When using '__vector' instead of 'vector'; for example,
  37989. typedef signed short int16;
  37990. __vector int16 data;
  37991. * When using 'vector' in keyword-and-predefine mode; for
  37992. example,
  37993. typedef signed short int16;
  37994. vector int16 data;
  37995. Note that keyword-and-predefine mode is enabled by disabling
  37996. GNU extensions (e.g., by using '-std=c11') and including
  37997. '<altivec.h>'.
  37998. * For C, overloaded functions are implemented with macros so the
  37999. following does not work:
  38000. vec_add ((vector signed int){1, 2, 3, 4}, foo);
  38001. Since 'vec_add' is a macro, the vector constant in the example is
  38002. treated as four separate arguments. Wrap the entire argument in
  38003. parentheses for this to work.
  38004. _Note:_ Only the '<altivec.h>' interface is supported. Internally, GCC
  38005. uses built-in functions to achieve the functionality in the
  38006. aforementioned header file, but they are not supported and are subject
  38007. to change without notice.
  38008. GCC complies with the OpenPOWER 64-Bit ELF V2 ABI Specification, which
  38009. may be found at
  38010. <https://openpowerfoundation.org/?resource_lib=64-bit-elf-v2-abi-specification-power-architecture>.
  38011. Appendix A of this document lists the vector API interfaces that must be
  38012. provided by compliant compilers. Programmers should preferentially use
  38013. the interfaces described therein. However, historically GCC has
  38014. provided additional interfaces for access to vector instructions. These
  38015. are briefly described below.
  38016. * Menu:
  38017. * PowerPC AltiVec Built-in Functions on ISA 2.05::
  38018. * PowerPC AltiVec Built-in Functions Available on ISA 2.06::
  38019. * PowerPC AltiVec Built-in Functions Available on ISA 2.07::
  38020. * PowerPC AltiVec Built-in Functions Available on ISA 3.0::
  38021. 
  38022. File: gcc.info, Node: PowerPC AltiVec Built-in Functions on ISA 2.05, Next: PowerPC AltiVec Built-in Functions Available on ISA 2.06, Up: PowerPC AltiVec/VSX Built-in Functions
  38023. 6.60.23.1 PowerPC AltiVec Built-in Functions on ISA 2.05
  38024. ........................................................
  38025. The following interfaces are supported for the generic and specific
  38026. AltiVec operations and the AltiVec predicates. In cases where there is
  38027. a direct mapping between generic and specific operations, only the
  38028. generic names are shown here, although the specific operations can also
  38029. be used.
  38030. Arguments that are documented as 'const int' require literal integral
  38031. values within the range required for that operation.
  38032. vector signed char vec_abs (vector signed char);
  38033. vector signed short vec_abs (vector signed short);
  38034. vector signed int vec_abs (vector signed int);
  38035. vector float vec_abs (vector float);
  38036. vector signed char vec_abss (vector signed char);
  38037. vector signed short vec_abss (vector signed short);
  38038. vector signed int vec_abss (vector signed int);
  38039. vector signed char vec_add (vector bool char, vector signed char);
  38040. vector signed char vec_add (vector signed char, vector bool char);
  38041. vector signed char vec_add (vector signed char, vector signed char);
  38042. vector unsigned char vec_add (vector bool char, vector unsigned char);
  38043. vector unsigned char vec_add (vector unsigned char, vector bool char);
  38044. vector unsigned char vec_add (vector unsigned char, vector unsigned char);
  38045. vector signed short vec_add (vector bool short, vector signed short);
  38046. vector signed short vec_add (vector signed short, vector bool short);
  38047. vector signed short vec_add (vector signed short, vector signed short);
  38048. vector unsigned short vec_add (vector bool short, vector unsigned short);
  38049. vector unsigned short vec_add (vector unsigned short, vector bool short);
  38050. vector unsigned short vec_add (vector unsigned short, vector unsigned short);
  38051. vector signed int vec_add (vector bool int, vector signed int);
  38052. vector signed int vec_add (vector signed int, vector bool int);
  38053. vector signed int vec_add (vector signed int, vector signed int);
  38054. vector unsigned int vec_add (vector bool int, vector unsigned int);
  38055. vector unsigned int vec_add (vector unsigned int, vector bool int);
  38056. vector unsigned int vec_add (vector unsigned int, vector unsigned int);
  38057. vector float vec_add (vector float, vector float);
  38058. vector unsigned int vec_addc (vector unsigned int, vector unsigned int);
  38059. vector unsigned char vec_adds (vector bool char, vector unsigned char);
  38060. vector unsigned char vec_adds (vector unsigned char, vector bool char);
  38061. vector unsigned char vec_adds (vector unsigned char, vector unsigned char);
  38062. vector signed char vec_adds (vector bool char, vector signed char);
  38063. vector signed char vec_adds (vector signed char, vector bool char);
  38064. vector signed char vec_adds (vector signed char, vector signed char);
  38065. vector unsigned short vec_adds (vector bool short, vector unsigned short);
  38066. vector unsigned short vec_adds (vector unsigned short, vector bool short);
  38067. vector unsigned short vec_adds (vector unsigned short, vector unsigned short);
  38068. vector signed short vec_adds (vector bool short, vector signed short);
  38069. vector signed short vec_adds (vector signed short, vector bool short);
  38070. vector signed short vec_adds (vector signed short, vector signed short);
  38071. vector unsigned int vec_adds (vector bool int, vector unsigned int);
  38072. vector unsigned int vec_adds (vector unsigned int, vector bool int);
  38073. vector unsigned int vec_adds (vector unsigned int, vector unsigned int);
  38074. vector signed int vec_adds (vector bool int, vector signed int);
  38075. vector signed int vec_adds (vector signed int, vector bool int);
  38076. vector signed int vec_adds (vector signed int, vector signed int);
  38077. int vec_all_eq (vector signed char, vector bool char);
  38078. int vec_all_eq (vector signed char, vector signed char);
  38079. int vec_all_eq (vector unsigned char, vector bool char);
  38080. int vec_all_eq (vector unsigned char, vector unsigned char);
  38081. int vec_all_eq (vector bool char, vector bool char);
  38082. int vec_all_eq (vector bool char, vector unsigned char);
  38083. int vec_all_eq (vector bool char, vector signed char);
  38084. int vec_all_eq (vector signed short, vector bool short);
  38085. int vec_all_eq (vector signed short, vector signed short);
  38086. int vec_all_eq (vector unsigned short, vector bool short);
  38087. int vec_all_eq (vector unsigned short, vector unsigned short);
  38088. int vec_all_eq (vector bool short, vector bool short);
  38089. int vec_all_eq (vector bool short, vector unsigned short);
  38090. int vec_all_eq (vector bool short, vector signed short);
  38091. int vec_all_eq (vector pixel, vector pixel);
  38092. int vec_all_eq (vector signed int, vector bool int);
  38093. int vec_all_eq (vector signed int, vector signed int);
  38094. int vec_all_eq (vector unsigned int, vector bool int);
  38095. int vec_all_eq (vector unsigned int, vector unsigned int);
  38096. int vec_all_eq (vector bool int, vector bool int);
  38097. int vec_all_eq (vector bool int, vector unsigned int);
  38098. int vec_all_eq (vector bool int, vector signed int);
  38099. int vec_all_eq (vector float, vector float);
  38100. int vec_all_ge (vector bool char, vector unsigned char);
  38101. int vec_all_ge (vector unsigned char, vector bool char);
  38102. int vec_all_ge (vector unsigned char, vector unsigned char);
  38103. int vec_all_ge (vector bool char, vector signed char);
  38104. int vec_all_ge (vector signed char, vector bool char);
  38105. int vec_all_ge (vector signed char, vector signed char);
  38106. int vec_all_ge (vector bool short, vector unsigned short);
  38107. int vec_all_ge (vector unsigned short, vector bool short);
  38108. int vec_all_ge (vector unsigned short, vector unsigned short);
  38109. int vec_all_ge (vector signed short, vector signed short);
  38110. int vec_all_ge (vector bool short, vector signed short);
  38111. int vec_all_ge (vector signed short, vector bool short);
  38112. int vec_all_ge (vector bool int, vector unsigned int);
  38113. int vec_all_ge (vector unsigned int, vector bool int);
  38114. int vec_all_ge (vector unsigned int, vector unsigned int);
  38115. int vec_all_ge (vector bool int, vector signed int);
  38116. int vec_all_ge (vector signed int, vector bool int);
  38117. int vec_all_ge (vector signed int, vector signed int);
  38118. int vec_all_ge (vector float, vector float);
  38119. int vec_all_gt (vector bool char, vector unsigned char);
  38120. int vec_all_gt (vector unsigned char, vector bool char);
  38121. int vec_all_gt (vector unsigned char, vector unsigned char);
  38122. int vec_all_gt (vector bool char, vector signed char);
  38123. int vec_all_gt (vector signed char, vector bool char);
  38124. int vec_all_gt (vector signed char, vector signed char);
  38125. int vec_all_gt (vector bool short, vector unsigned short);
  38126. int vec_all_gt (vector unsigned short, vector bool short);
  38127. int vec_all_gt (vector unsigned short, vector unsigned short);
  38128. int vec_all_gt (vector bool short, vector signed short);
  38129. int vec_all_gt (vector signed short, vector bool short);
  38130. int vec_all_gt (vector signed short, vector signed short);
  38131. int vec_all_gt (vector bool int, vector unsigned int);
  38132. int vec_all_gt (vector unsigned int, vector bool int);
  38133. int vec_all_gt (vector unsigned int, vector unsigned int);
  38134. int vec_all_gt (vector bool int, vector signed int);
  38135. int vec_all_gt (vector signed int, vector bool int);
  38136. int vec_all_gt (vector signed int, vector signed int);
  38137. int vec_all_gt (vector float, vector float);
  38138. int vec_all_in (vector float, vector float);
  38139. int vec_all_le (vector bool char, vector unsigned char);
  38140. int vec_all_le (vector unsigned char, vector bool char);
  38141. int vec_all_le (vector unsigned char, vector unsigned char);
  38142. int vec_all_le (vector bool char, vector signed char);
  38143. int vec_all_le (vector signed char, vector bool char);
  38144. int vec_all_le (vector signed char, vector signed char);
  38145. int vec_all_le (vector bool short, vector unsigned short);
  38146. int vec_all_le (vector unsigned short, vector bool short);
  38147. int vec_all_le (vector unsigned short, vector unsigned short);
  38148. int vec_all_le (vector bool short, vector signed short);
  38149. int vec_all_le (vector signed short, vector bool short);
  38150. int vec_all_le (vector signed short, vector signed short);
  38151. int vec_all_le (vector bool int, vector unsigned int);
  38152. int vec_all_le (vector unsigned int, vector bool int);
  38153. int vec_all_le (vector unsigned int, vector unsigned int);
  38154. int vec_all_le (vector bool int, vector signed int);
  38155. int vec_all_le (vector signed int, vector bool int);
  38156. int vec_all_le (vector signed int, vector signed int);
  38157. int vec_all_le (vector float, vector float);
  38158. int vec_all_lt (vector bool char, vector unsigned char);
  38159. int vec_all_lt (vector unsigned char, vector bool char);
  38160. int vec_all_lt (vector unsigned char, vector unsigned char);
  38161. int vec_all_lt (vector bool char, vector signed char);
  38162. int vec_all_lt (vector signed char, vector bool char);
  38163. int vec_all_lt (vector signed char, vector signed char);
  38164. int vec_all_lt (vector bool short, vector unsigned short);
  38165. int vec_all_lt (vector unsigned short, vector bool short);
  38166. int vec_all_lt (vector unsigned short, vector unsigned short);
  38167. int vec_all_lt (vector bool short, vector signed short);
  38168. int vec_all_lt (vector signed short, vector bool short);
  38169. int vec_all_lt (vector signed short, vector signed short);
  38170. int vec_all_lt (vector bool int, vector unsigned int);
  38171. int vec_all_lt (vector unsigned int, vector bool int);
  38172. int vec_all_lt (vector unsigned int, vector unsigned int);
  38173. int vec_all_lt (vector bool int, vector signed int);
  38174. int vec_all_lt (vector signed int, vector bool int);
  38175. int vec_all_lt (vector signed int, vector signed int);
  38176. int vec_all_lt (vector float, vector float);
  38177. int vec_all_nan (vector float);
  38178. int vec_all_ne (vector signed char, vector bool char);
  38179. int vec_all_ne (vector signed char, vector signed char);
  38180. int vec_all_ne (vector unsigned char, vector bool char);
  38181. int vec_all_ne (vector unsigned char, vector unsigned char);
  38182. int vec_all_ne (vector bool char, vector bool char);
  38183. int vec_all_ne (vector bool char, vector unsigned char);
  38184. int vec_all_ne (vector bool char, vector signed char);
  38185. int vec_all_ne (vector signed short, vector bool short);
  38186. int vec_all_ne (vector signed short, vector signed short);
  38187. int vec_all_ne (vector unsigned short, vector bool short);
  38188. int vec_all_ne (vector unsigned short, vector unsigned short);
  38189. int vec_all_ne (vector bool short, vector bool short);
  38190. int vec_all_ne (vector bool short, vector unsigned short);
  38191. int vec_all_ne (vector bool short, vector signed short);
  38192. int vec_all_ne (vector pixel, vector pixel);
  38193. int vec_all_ne (vector signed int, vector bool int);
  38194. int vec_all_ne (vector signed int, vector signed int);
  38195. int vec_all_ne (vector unsigned int, vector bool int);
  38196. int vec_all_ne (vector unsigned int, vector unsigned int);
  38197. int vec_all_ne (vector bool int, vector bool int);
  38198. int vec_all_ne (vector bool int, vector unsigned int);
  38199. int vec_all_ne (vector bool int, vector signed int);
  38200. int vec_all_ne (vector float, vector float);
  38201. int vec_all_nge (vector float, vector float);
  38202. int vec_all_ngt (vector float, vector float);
  38203. int vec_all_nle (vector float, vector float);
  38204. int vec_all_nlt (vector float, vector float);
  38205. int vec_all_numeric (vector float);
  38206. vector float vec_and (vector float, vector float);
  38207. vector float vec_and (vector float, vector bool int);
  38208. vector float vec_and (vector bool int, vector float);
  38209. vector bool int vec_and (vector bool int, vector bool int);
  38210. vector signed int vec_and (vector bool int, vector signed int);
  38211. vector signed int vec_and (vector signed int, vector bool int);
  38212. vector signed int vec_and (vector signed int, vector signed int);
  38213. vector unsigned int vec_and (vector bool int, vector unsigned int);
  38214. vector unsigned int vec_and (vector unsigned int, vector bool int);
  38215. vector unsigned int vec_and (vector unsigned int, vector unsigned int);
  38216. vector bool short vec_and (vector bool short, vector bool short);
  38217. vector signed short vec_and (vector bool short, vector signed short);
  38218. vector signed short vec_and (vector signed short, vector bool short);
  38219. vector signed short vec_and (vector signed short, vector signed short);
  38220. vector unsigned short vec_and (vector bool short, vector unsigned short);
  38221. vector unsigned short vec_and (vector unsigned short, vector bool short);
  38222. vector unsigned short vec_and (vector unsigned short, vector unsigned short);
  38223. vector signed char vec_and (vector bool char, vector signed char);
  38224. vector bool char vec_and (vector bool char, vector bool char);
  38225. vector signed char vec_and (vector signed char, vector bool char);
  38226. vector signed char vec_and (vector signed char, vector signed char);
  38227. vector unsigned char vec_and (vector bool char, vector unsigned char);
  38228. vector unsigned char vec_and (vector unsigned char, vector bool char);
  38229. vector unsigned char vec_and (vector unsigned char, vector unsigned char);
  38230. vector float vec_andc (vector float, vector float);
  38231. vector float vec_andc (vector float, vector bool int);
  38232. vector float vec_andc (vector bool int, vector float);
  38233. vector bool int vec_andc (vector bool int, vector bool int);
  38234. vector signed int vec_andc (vector bool int, vector signed int);
  38235. vector signed int vec_andc (vector signed int, vector bool int);
  38236. vector signed int vec_andc (vector signed int, vector signed int);
  38237. vector unsigned int vec_andc (vector bool int, vector unsigned int);
  38238. vector unsigned int vec_andc (vector unsigned int, vector bool int);
  38239. vector unsigned int vec_andc (vector unsigned int, vector unsigned int);
  38240. vector bool short vec_andc (vector bool short, vector bool short);
  38241. vector signed short vec_andc (vector bool short, vector signed short);
  38242. vector signed short vec_andc (vector signed short, vector bool short);
  38243. vector signed short vec_andc (vector signed short, vector signed short);
  38244. vector unsigned short vec_andc (vector bool short, vector unsigned short);
  38245. vector unsigned short vec_andc (vector unsigned short, vector bool short);
  38246. vector unsigned short vec_andc (vector unsigned short, vector unsigned short);
  38247. vector signed char vec_andc (vector bool char, vector signed char);
  38248. vector bool char vec_andc (vector bool char, vector bool char);
  38249. vector signed char vec_andc (vector signed char, vector bool char);
  38250. vector signed char vec_andc (vector signed char, vector signed char);
  38251. vector unsigned char vec_andc (vector bool char, vector unsigned char);
  38252. vector unsigned char vec_andc (vector unsigned char, vector bool char);
  38253. vector unsigned char vec_andc (vector unsigned char, vector unsigned char);
  38254. int vec_any_eq (vector signed char, vector bool char);
  38255. int vec_any_eq (vector signed char, vector signed char);
  38256. int vec_any_eq (vector unsigned char, vector bool char);
  38257. int vec_any_eq (vector unsigned char, vector unsigned char);
  38258. int vec_any_eq (vector bool char, vector bool char);
  38259. int vec_any_eq (vector bool char, vector unsigned char);
  38260. int vec_any_eq (vector bool char, vector signed char);
  38261. int vec_any_eq (vector signed short, vector bool short);
  38262. int vec_any_eq (vector signed short, vector signed short);
  38263. int vec_any_eq (vector unsigned short, vector bool short);
  38264. int vec_any_eq (vector unsigned short, vector unsigned short);
  38265. int vec_any_eq (vector bool short, vector bool short);
  38266. int vec_any_eq (vector bool short, vector unsigned short);
  38267. int vec_any_eq (vector bool short, vector signed short);
  38268. int vec_any_eq (vector pixel, vector pixel);
  38269. int vec_any_eq (vector signed int, vector bool int);
  38270. int vec_any_eq (vector signed int, vector signed int);
  38271. int vec_any_eq (vector unsigned int, vector bool int);
  38272. int vec_any_eq (vector unsigned int, vector unsigned int);
  38273. int vec_any_eq (vector bool int, vector bool int);
  38274. int vec_any_eq (vector bool int, vector unsigned int);
  38275. int vec_any_eq (vector bool int, vector signed int);
  38276. int vec_any_eq (vector float, vector float);
  38277. int vec_any_ge (vector signed char, vector bool char);
  38278. int vec_any_ge (vector unsigned char, vector bool char);
  38279. int vec_any_ge (vector unsigned char, vector unsigned char);
  38280. int vec_any_ge (vector signed char, vector signed char);
  38281. int vec_any_ge (vector bool char, vector unsigned char);
  38282. int vec_any_ge (vector bool char, vector signed char);
  38283. int vec_any_ge (vector unsigned short, vector bool short);
  38284. int vec_any_ge (vector unsigned short, vector unsigned short);
  38285. int vec_any_ge (vector signed short, vector signed short);
  38286. int vec_any_ge (vector signed short, vector bool short);
  38287. int vec_any_ge (vector bool short, vector unsigned short);
  38288. int vec_any_ge (vector bool short, vector signed short);
  38289. int vec_any_ge (vector signed int, vector bool int);
  38290. int vec_any_ge (vector unsigned int, vector bool int);
  38291. int vec_any_ge (vector unsigned int, vector unsigned int);
  38292. int vec_any_ge (vector signed int, vector signed int);
  38293. int vec_any_ge (vector bool int, vector unsigned int);
  38294. int vec_any_ge (vector bool int, vector signed int);
  38295. int vec_any_ge (vector float, vector float);
  38296. int vec_any_gt (vector bool char, vector unsigned char);
  38297. int vec_any_gt (vector unsigned char, vector bool char);
  38298. int vec_any_gt (vector unsigned char, vector unsigned char);
  38299. int vec_any_gt (vector bool char, vector signed char);
  38300. int vec_any_gt (vector signed char, vector bool char);
  38301. int vec_any_gt (vector signed char, vector signed char);
  38302. int vec_any_gt (vector bool short, vector unsigned short);
  38303. int vec_any_gt (vector unsigned short, vector bool short);
  38304. int vec_any_gt (vector unsigned short, vector unsigned short);
  38305. int vec_any_gt (vector bool short, vector signed short);
  38306. int vec_any_gt (vector signed short, vector bool short);
  38307. int vec_any_gt (vector signed short, vector signed short);
  38308. int vec_any_gt (vector bool int, vector unsigned int);
  38309. int vec_any_gt (vector unsigned int, vector bool int);
  38310. int vec_any_gt (vector unsigned int, vector unsigned int);
  38311. int vec_any_gt (vector bool int, vector signed int);
  38312. int vec_any_gt (vector signed int, vector bool int);
  38313. int vec_any_gt (vector signed int, vector signed int);
  38314. int vec_any_gt (vector float, vector float);
  38315. int vec_any_le (vector bool char, vector unsigned char);
  38316. int vec_any_le (vector unsigned char, vector bool char);
  38317. int vec_any_le (vector unsigned char, vector unsigned char);
  38318. int vec_any_le (vector bool char, vector signed char);
  38319. int vec_any_le (vector signed char, vector bool char);
  38320. int vec_any_le (vector signed char, vector signed char);
  38321. int vec_any_le (vector bool short, vector unsigned short);
  38322. int vec_any_le (vector unsigned short, vector bool short);
  38323. int vec_any_le (vector unsigned short, vector unsigned short);
  38324. int vec_any_le (vector bool short, vector signed short);
  38325. int vec_any_le (vector signed short, vector bool short);
  38326. int vec_any_le (vector signed short, vector signed short);
  38327. int vec_any_le (vector bool int, vector unsigned int);
  38328. int vec_any_le (vector unsigned int, vector bool int);
  38329. int vec_any_le (vector unsigned int, vector unsigned int);
  38330. int vec_any_le (vector bool int, vector signed int);
  38331. int vec_any_le (vector signed int, vector bool int);
  38332. int vec_any_le (vector signed int, vector signed int);
  38333. int vec_any_le (vector float, vector float);
  38334. int vec_any_lt (vector bool char, vector unsigned char);
  38335. int vec_any_lt (vector unsigned char, vector bool char);
  38336. int vec_any_lt (vector unsigned char, vector unsigned char);
  38337. int vec_any_lt (vector bool char, vector signed char);
  38338. int vec_any_lt (vector signed char, vector bool char);
  38339. int vec_any_lt (vector signed char, vector signed char);
  38340. int vec_any_lt (vector bool short, vector unsigned short);
  38341. int vec_any_lt (vector unsigned short, vector bool short);
  38342. int vec_any_lt (vector unsigned short, vector unsigned short);
  38343. int vec_any_lt (vector bool short, vector signed short);
  38344. int vec_any_lt (vector signed short, vector bool short);
  38345. int vec_any_lt (vector signed short, vector signed short);
  38346. int vec_any_lt (vector bool int, vector unsigned int);
  38347. int vec_any_lt (vector unsigned int, vector bool int);
  38348. int vec_any_lt (vector unsigned int, vector unsigned int);
  38349. int vec_any_lt (vector bool int, vector signed int);
  38350. int vec_any_lt (vector signed int, vector bool int);
  38351. int vec_any_lt (vector signed int, vector signed int);
  38352. int vec_any_lt (vector float, vector float);
  38353. int vec_any_nan (vector float);
  38354. int vec_any_ne (vector signed char, vector bool char);
  38355. int vec_any_ne (vector signed char, vector signed char);
  38356. int vec_any_ne (vector unsigned char, vector bool char);
  38357. int vec_any_ne (vector unsigned char, vector unsigned char);
  38358. int vec_any_ne (vector bool char, vector bool char);
  38359. int vec_any_ne (vector bool char, vector unsigned char);
  38360. int vec_any_ne (vector bool char, vector signed char);
  38361. int vec_any_ne (vector signed short, vector bool short);
  38362. int vec_any_ne (vector signed short, vector signed short);
  38363. int vec_any_ne (vector unsigned short, vector bool short);
  38364. int vec_any_ne (vector unsigned short, vector unsigned short);
  38365. int vec_any_ne (vector bool short, vector bool short);
  38366. int vec_any_ne (vector bool short, vector unsigned short);
  38367. int vec_any_ne (vector bool short, vector signed short);
  38368. int vec_any_ne (vector pixel, vector pixel);
  38369. int vec_any_ne (vector signed int, vector bool int);
  38370. int vec_any_ne (vector signed int, vector signed int);
  38371. int vec_any_ne (vector unsigned int, vector bool int);
  38372. int vec_any_ne (vector unsigned int, vector unsigned int);
  38373. int vec_any_ne (vector bool int, vector bool int);
  38374. int vec_any_ne (vector bool int, vector unsigned int);
  38375. int vec_any_ne (vector bool int, vector signed int);
  38376. int vec_any_ne (vector float, vector float);
  38377. int vec_any_nge (vector float, vector float);
  38378. int vec_any_ngt (vector float, vector float);
  38379. int vec_any_nle (vector float, vector float);
  38380. int vec_any_nlt (vector float, vector float);
  38381. int vec_any_numeric (vector float);
  38382. int vec_any_out (vector float, vector float);
  38383. vector unsigned char vec_avg (vector unsigned char, vector unsigned char);
  38384. vector signed char vec_avg (vector signed char, vector signed char);
  38385. vector unsigned short vec_avg (vector unsigned short, vector unsigned short);
  38386. vector signed short vec_avg (vector signed short, vector signed short);
  38387. vector unsigned int vec_avg (vector unsigned int, vector unsigned int);
  38388. vector signed int vec_avg (vector signed int, vector signed int);
  38389. vector float vec_ceil (vector float);
  38390. vector signed int vec_cmpb (vector float, vector float);
  38391. vector bool char vec_cmpeq (vector bool char, vector bool char);
  38392. vector bool short vec_cmpeq (vector bool short, vector bool short);
  38393. vector bool int vec_cmpeq (vector bool int, vector bool int);
  38394. vector bool char vec_cmpeq (vector signed char, vector signed char);
  38395. vector bool char vec_cmpeq (vector unsigned char, vector unsigned char);
  38396. vector bool short vec_cmpeq (vector signed short, vector signed short);
  38397. vector bool short vec_cmpeq (vector unsigned short, vector unsigned short);
  38398. vector bool int vec_cmpeq (vector signed int, vector signed int);
  38399. vector bool int vec_cmpeq (vector unsigned int, vector unsigned int);
  38400. vector bool int vec_cmpeq (vector float, vector float);
  38401. vector bool int vec_cmpge (vector float, vector float);
  38402. vector bool char vec_cmpgt (vector unsigned char, vector unsigned char);
  38403. vector bool char vec_cmpgt (vector signed char, vector signed char);
  38404. vector bool short vec_cmpgt (vector unsigned short, vector unsigned short);
  38405. vector bool short vec_cmpgt (vector signed short, vector signed short);
  38406. vector bool int vec_cmpgt (vector unsigned int, vector unsigned int);
  38407. vector bool int vec_cmpgt (vector signed int, vector signed int);
  38408. vector bool int vec_cmpgt (vector float, vector float);
  38409. vector bool int vec_cmple (vector float, vector float);
  38410. vector bool char vec_cmplt (vector unsigned char, vector unsigned char);
  38411. vector bool char vec_cmplt (vector signed char, vector signed char);
  38412. vector bool short vec_cmplt (vector unsigned short, vector unsigned short);
  38413. vector bool short vec_cmplt (vector signed short, vector signed short);
  38414. vector bool int vec_cmplt (vector unsigned int, vector unsigned int);
  38415. vector bool int vec_cmplt (vector signed int, vector signed int);
  38416. vector bool int vec_cmplt (vector float, vector float);
  38417. vector float vec_cpsgn (vector float, vector float);
  38418. vector float vec_ctf (vector unsigned int, const int);
  38419. vector float vec_ctf (vector signed int, const int);
  38420. vector signed int vec_cts (vector float, const int);
  38421. vector unsigned int vec_ctu (vector float, const int);
  38422. void vec_dss (const int);
  38423. void vec_dssall (void);
  38424. void vec_dst (const vector unsigned char *, int, const int);
  38425. void vec_dst (const vector signed char *, int, const int);
  38426. void vec_dst (const vector bool char *, int, const int);
  38427. void vec_dst (const vector unsigned short *, int, const int);
  38428. void vec_dst (const vector signed short *, int, const int);
  38429. void vec_dst (const vector bool short *, int, const int);
  38430. void vec_dst (const vector pixel *, int, const int);
  38431. void vec_dst (const vector unsigned int *, int, const int);
  38432. void vec_dst (const vector signed int *, int, const int);
  38433. void vec_dst (const vector bool int *, int, const int);
  38434. void vec_dst (const vector float *, int, const int);
  38435. void vec_dst (const unsigned char *, int, const int);
  38436. void vec_dst (const signed char *, int, const int);
  38437. void vec_dst (const unsigned short *, int, const int);
  38438. void vec_dst (const short *, int, const int);
  38439. void vec_dst (const unsigned int *, int, const int);
  38440. void vec_dst (const int *, int, const int);
  38441. void vec_dst (const float *, int, const int);
  38442. void vec_dstst (const vector unsigned char *, int, const int);
  38443. void vec_dstst (const vector signed char *, int, const int);
  38444. void vec_dstst (const vector bool char *, int, const int);
  38445. void vec_dstst (const vector unsigned short *, int, const int);
  38446. void vec_dstst (const vector signed short *, int, const int);
  38447. void vec_dstst (const vector bool short *, int, const int);
  38448. void vec_dstst (const vector pixel *, int, const int);
  38449. void vec_dstst (const vector unsigned int *, int, const int);
  38450. void vec_dstst (const vector signed int *, int, const int);
  38451. void vec_dstst (const vector bool int *, int, const int);
  38452. void vec_dstst (const vector float *, int, const int);
  38453. void vec_dstst (const unsigned char *, int, const int);
  38454. void vec_dstst (const signed char *, int, const int);
  38455. void vec_dstst (const unsigned short *, int, const int);
  38456. void vec_dstst (const short *, int, const int);
  38457. void vec_dstst (const unsigned int *, int, const int);
  38458. void vec_dstst (const int *, int, const int);
  38459. void vec_dstst (const unsigned long *, int, const int);
  38460. void vec_dstst (const long *, int, const int);
  38461. void vec_dstst (const float *, int, const int);
  38462. void vec_dststt (const vector unsigned char *, int, const int);
  38463. void vec_dststt (const vector signed char *, int, const int);
  38464. void vec_dststt (const vector bool char *, int, const int);
  38465. void vec_dststt (const vector unsigned short *, int, const int);
  38466. void vec_dststt (const vector signed short *, int, const int);
  38467. void vec_dststt (const vector bool short *, int, const int);
  38468. void vec_dststt (const vector pixel *, int, const int);
  38469. void vec_dststt (const vector unsigned int *, int, const int);
  38470. void vec_dststt (const vector signed int *, int, const int);
  38471. void vec_dststt (const vector bool int *, int, const int);
  38472. void vec_dststt (const vector float *, int, const int);
  38473. void vec_dststt (const unsigned char *, int, const int);
  38474. void vec_dststt (const signed char *, int, const int);
  38475. void vec_dststt (const unsigned short *, int, const int);
  38476. void vec_dststt (const short *, int, const int);
  38477. void vec_dststt (const unsigned int *, int, const int);
  38478. void vec_dststt (const int *, int, const int);
  38479. void vec_dststt (const float *, int, const int);
  38480. void vec_dstt (const vector unsigned char *, int, const int);
  38481. void vec_dstt (const vector signed char *, int, const int);
  38482. void vec_dstt (const vector bool char *, int, const int);
  38483. void vec_dstt (const vector unsigned short *, int, const int);
  38484. void vec_dstt (const vector signed short *, int, const int);
  38485. void vec_dstt (const vector bool short *, int, const int);
  38486. void vec_dstt (const vector pixel *, int, const int);
  38487. void vec_dstt (const vector unsigned int *, int, const int);
  38488. void vec_dstt (const vector signed int *, int, const int);
  38489. void vec_dstt (const vector bool int *, int, const int);
  38490. void vec_dstt (const vector float *, int, const int);
  38491. void vec_dstt (const unsigned char *, int, const int);
  38492. void vec_dstt (const signed char *, int, const int);
  38493. void vec_dstt (const unsigned short *, int, const int);
  38494. void vec_dstt (const short *, int, const int);
  38495. void vec_dstt (const unsigned int *, int, const int);
  38496. void vec_dstt (const int *, int, const int);
  38497. void vec_dstt (const float *, int, const int);
  38498. vector float vec_expte (vector float);
  38499. vector float vec_floor (vector float);
  38500. vector float vec_ld (int, const vector float *);
  38501. vector float vec_ld (int, const float *);
  38502. vector bool int vec_ld (int, const vector bool int *);
  38503. vector signed int vec_ld (int, const vector signed int *);
  38504. vector signed int vec_ld (int, const int *);
  38505. vector unsigned int vec_ld (int, const vector unsigned int *);
  38506. vector unsigned int vec_ld (int, const unsigned int *);
  38507. vector bool short vec_ld (int, const vector bool short *);
  38508. vector pixel vec_ld (int, const vector pixel *);
  38509. vector signed short vec_ld (int, const vector signed short *);
  38510. vector signed short vec_ld (int, const short *);
  38511. vector unsigned short vec_ld (int, const vector unsigned short *);
  38512. vector unsigned short vec_ld (int, const unsigned short *);
  38513. vector bool char vec_ld (int, const vector bool char *);
  38514. vector signed char vec_ld (int, const vector signed char *);
  38515. vector signed char vec_ld (int, const signed char *);
  38516. vector unsigned char vec_ld (int, const vector unsigned char *);
  38517. vector unsigned char vec_ld (int, const unsigned char *);
  38518. vector signed char vec_lde (int, const signed char *);
  38519. vector unsigned char vec_lde (int, const unsigned char *);
  38520. vector signed short vec_lde (int, const short *);
  38521. vector unsigned short vec_lde (int, const unsigned short *);
  38522. vector float vec_lde (int, const float *);
  38523. vector signed int vec_lde (int, const int *);
  38524. vector unsigned int vec_lde (int, const unsigned int *);
  38525. vector float vec_ldl (int, const vector float *);
  38526. vector float vec_ldl (int, const float *);
  38527. vector bool int vec_ldl (int, const vector bool int *);
  38528. vector signed int vec_ldl (int, const vector signed int *);
  38529. vector signed int vec_ldl (int, const int *);
  38530. vector unsigned int vec_ldl (int, const vector unsigned int *);
  38531. vector unsigned int vec_ldl (int, const unsigned int *);
  38532. vector bool short vec_ldl (int, const vector bool short *);
  38533. vector pixel vec_ldl (int, const vector pixel *);
  38534. vector signed short vec_ldl (int, const vector signed short *);
  38535. vector signed short vec_ldl (int, const short *);
  38536. vector unsigned short vec_ldl (int, const vector unsigned short *);
  38537. vector unsigned short vec_ldl (int, const unsigned short *);
  38538. vector bool char vec_ldl (int, const vector bool char *);
  38539. vector signed char vec_ldl (int, const vector signed char *);
  38540. vector signed char vec_ldl (int, const signed char *);
  38541. vector unsigned char vec_ldl (int, const vector unsigned char *);
  38542. vector unsigned char vec_ldl (int, const unsigned char *);
  38543. vector float vec_loge (vector float);
  38544. vector signed char vec_lvebx (int, char *);
  38545. vector unsigned char vec_lvebx (int, unsigned char *);
  38546. vector signed short vec_lvehx (int, short *);
  38547. vector unsigned short vec_lvehx (int, unsigned short *);
  38548. vector float vec_lvewx (int, float *);
  38549. vector signed int vec_lvewx (int, int *);
  38550. vector unsigned int vec_lvewx (int, unsigned int *);
  38551. vector unsigned char vec_lvsl (int, const unsigned char *);
  38552. vector unsigned char vec_lvsl (int, const signed char *);
  38553. vector unsigned char vec_lvsl (int, const unsigned short *);
  38554. vector unsigned char vec_lvsl (int, const short *);
  38555. vector unsigned char vec_lvsl (int, const unsigned int *);
  38556. vector unsigned char vec_lvsl (int, const int *);
  38557. vector unsigned char vec_lvsl (int, const float *);
  38558. vector unsigned char vec_lvsr (int, const unsigned char *);
  38559. vector unsigned char vec_lvsr (int, const signed char *);
  38560. vector unsigned char vec_lvsr (int, const unsigned short *);
  38561. vector unsigned char vec_lvsr (int, const short *);
  38562. vector unsigned char vec_lvsr (int, const unsigned int *);
  38563. vector unsigned char vec_lvsr (int, const int *);
  38564. vector unsigned char vec_lvsr (int, const float *);
  38565. vector float vec_madd (vector float, vector float, vector float);
  38566. vector signed short vec_madds (vector signed short, vector signed short,
  38567. vector signed short);
  38568. vector unsigned char vec_max (vector bool char, vector unsigned char);
  38569. vector unsigned char vec_max (vector unsigned char, vector bool char);
  38570. vector unsigned char vec_max (vector unsigned char, vector unsigned char);
  38571. vector signed char vec_max (vector bool char, vector signed char);
  38572. vector signed char vec_max (vector signed char, vector bool char);
  38573. vector signed char vec_max (vector signed char, vector signed char);
  38574. vector unsigned short vec_max (vector bool short, vector unsigned short);
  38575. vector unsigned short vec_max (vector unsigned short, vector bool short);
  38576. vector unsigned short vec_max (vector unsigned short, vector unsigned short);
  38577. vector signed short vec_max (vector bool short, vector signed short);
  38578. vector signed short vec_max (vector signed short, vector bool short);
  38579. vector signed short vec_max (vector signed short, vector signed short);
  38580. vector unsigned int vec_max (vector bool int, vector unsigned int);
  38581. vector unsigned int vec_max (vector unsigned int, vector bool int);
  38582. vector unsigned int vec_max (vector unsigned int, vector unsigned int);
  38583. vector signed int vec_max (vector bool int, vector signed int);
  38584. vector signed int vec_max (vector signed int, vector bool int);
  38585. vector signed int vec_max (vector signed int, vector signed int);
  38586. vector float vec_max (vector float, vector float);
  38587. vector bool char vec_mergeh (vector bool char, vector bool char);
  38588. vector signed char vec_mergeh (vector signed char, vector signed char);
  38589. vector unsigned char vec_mergeh (vector unsigned char, vector unsigned char);
  38590. vector bool short vec_mergeh (vector bool short, vector bool short);
  38591. vector pixel vec_mergeh (vector pixel, vector pixel);
  38592. vector signed short vec_mergeh (vector signed short, vector signed short);
  38593. vector unsigned short vec_mergeh (vector unsigned short, vector unsigned short);
  38594. vector float vec_mergeh (vector float, vector float);
  38595. vector bool int vec_mergeh (vector bool int, vector bool int);
  38596. vector signed int vec_mergeh (vector signed int, vector signed int);
  38597. vector unsigned int vec_mergeh (vector unsigned int, vector unsigned int);
  38598. vector bool char vec_mergel (vector bool char, vector bool char);
  38599. vector signed char vec_mergel (vector signed char, vector signed char);
  38600. vector unsigned char vec_mergel (vector unsigned char, vector unsigned char);
  38601. vector bool short vec_mergel (vector bool short, vector bool short);
  38602. vector pixel vec_mergel (vector pixel, vector pixel);
  38603. vector signed short vec_mergel (vector signed short, vector signed short);
  38604. vector unsigned short vec_mergel (vector unsigned short, vector unsigned short);
  38605. vector float vec_mergel (vector float, vector float);
  38606. vector bool int vec_mergel (vector bool int, vector bool int);
  38607. vector signed int vec_mergel (vector signed int, vector signed int);
  38608. vector unsigned int vec_mergel (vector unsigned int, vector unsigned int);
  38609. vector unsigned short vec_mfvscr (void);
  38610. vector unsigned char vec_min (vector bool char, vector unsigned char);
  38611. vector unsigned char vec_min (vector unsigned char, vector bool char);
  38612. vector unsigned char vec_min (vector unsigned char, vector unsigned char);
  38613. vector signed char vec_min (vector bool char, vector signed char);
  38614. vector signed char vec_min (vector signed char, vector bool char);
  38615. vector signed char vec_min (vector signed char, vector signed char);
  38616. vector unsigned short vec_min (vector bool short, vector unsigned short);
  38617. vector unsigned short vec_min (vector unsigned short, vector bool short);
  38618. vector unsigned short vec_min (vector unsigned short, vector unsigned short);
  38619. vector signed short vec_min (vector bool short, vector signed short);
  38620. vector signed short vec_min (vector signed short, vector bool short);
  38621. vector signed short vec_min (vector signed short, vector signed short);
  38622. vector unsigned int vec_min (vector bool int, vector unsigned int);
  38623. vector unsigned int vec_min (vector unsigned int, vector bool int);
  38624. vector unsigned int vec_min (vector unsigned int, vector unsigned int);
  38625. vector signed int vec_min (vector bool int, vector signed int);
  38626. vector signed int vec_min (vector signed int, vector bool int);
  38627. vector signed int vec_min (vector signed int, vector signed int);
  38628. vector float vec_min (vector float, vector float);
  38629. vector signed short vec_mladd (vector signed short, vector signed short,
  38630. vector signed short);
  38631. vector signed short vec_mladd (vector signed short, vector unsigned short,
  38632. vector unsigned short);
  38633. vector signed short vec_mladd (vector unsigned short, vector signed short,
  38634. vector signed short);
  38635. vector unsigned short vec_mladd (vector unsigned short, vector unsigned short,
  38636. vector unsigned short);
  38637. vector signed short vec_mradds (vector signed short, vector signed short,
  38638. vector signed short);
  38639. vector unsigned int vec_msum (vector unsigned char, vector unsigned char,
  38640. vector unsigned int);
  38641. vector signed int vec_msum (vector signed char, vector unsigned char,
  38642. vector signed int);
  38643. vector unsigned int vec_msum (vector unsigned short, vector unsigned short,
  38644. vector unsigned int);
  38645. vector signed int vec_msum (vector signed short, vector signed short,
  38646. vector signed int);
  38647. vector unsigned int vec_msums (vector unsigned short, vector unsigned short,
  38648. vector unsigned int);
  38649. vector signed int vec_msums (vector signed short, vector signed short,
  38650. vector signed int);
  38651. void vec_mtvscr (vector signed int);
  38652. void vec_mtvscr (vector unsigned int);
  38653. void vec_mtvscr (vector bool int);
  38654. void vec_mtvscr (vector signed short);
  38655. void vec_mtvscr (vector unsigned short);
  38656. void vec_mtvscr (vector bool short);
  38657. void vec_mtvscr (vector pixel);
  38658. void vec_mtvscr (vector signed char);
  38659. void vec_mtvscr (vector unsigned char);
  38660. void vec_mtvscr (vector bool char);
  38661. vector float vec_mul (vector float, vector float);
  38662. vector unsigned short vec_mule (vector unsigned char, vector unsigned char);
  38663. vector signed short vec_mule (vector signed char, vector signed char);
  38664. vector unsigned int vec_mule (vector unsigned short, vector unsigned short);
  38665. vector signed int vec_mule (vector signed short, vector signed short);
  38666. vector unsigned short vec_mulo (vector unsigned char, vector unsigned char);
  38667. vector signed short vec_mulo (vector signed char, vector signed char);
  38668. vector unsigned int vec_mulo (vector unsigned short, vector unsigned short);
  38669. vector signed int vec_mulo (vector signed short, vector signed short);
  38670. vector signed char vec_nabs (vector signed char);
  38671. vector signed short vec_nabs (vector signed short);
  38672. vector signed int vec_nabs (vector signed int);
  38673. vector float vec_nabs (vector float);
  38674. vector float vec_nmsub (vector float, vector float, vector float);
  38675. vector float vec_nor (vector float, vector float);
  38676. vector signed int vec_nor (vector signed int, vector signed int);
  38677. vector unsigned int vec_nor (vector unsigned int, vector unsigned int);
  38678. vector bool int vec_nor (vector bool int, vector bool int);
  38679. vector signed short vec_nor (vector signed short, vector signed short);
  38680. vector unsigned short vec_nor (vector unsigned short, vector unsigned short);
  38681. vector bool short vec_nor (vector bool short, vector bool short);
  38682. vector signed char vec_nor (vector signed char, vector signed char);
  38683. vector unsigned char vec_nor (vector unsigned char, vector unsigned char);
  38684. vector bool char vec_nor (vector bool char, vector bool char);
  38685. vector float vec_or (vector float, vector float);
  38686. vector float vec_or (vector float, vector bool int);
  38687. vector float vec_or (vector bool int, vector float);
  38688. vector bool int vec_or (vector bool int, vector bool int);
  38689. vector signed int vec_or (vector bool int, vector signed int);
  38690. vector signed int vec_or (vector signed int, vector bool int);
  38691. vector signed int vec_or (vector signed int, vector signed int);
  38692. vector unsigned int vec_or (vector bool int, vector unsigned int);
  38693. vector unsigned int vec_or (vector unsigned int, vector bool int);
  38694. vector unsigned int vec_or (vector unsigned int, vector unsigned int);
  38695. vector bool short vec_or (vector bool short, vector bool short);
  38696. vector signed short vec_or (vector bool short, vector signed short);
  38697. vector signed short vec_or (vector signed short, vector bool short);
  38698. vector signed short vec_or (vector signed short, vector signed short);
  38699. vector unsigned short vec_or (vector bool short, vector unsigned short);
  38700. vector unsigned short vec_or (vector unsigned short, vector bool short);
  38701. vector unsigned short vec_or (vector unsigned short, vector unsigned short);
  38702. vector signed char vec_or (vector bool char, vector signed char);
  38703. vector bool char vec_or (vector bool char, vector bool char);
  38704. vector signed char vec_or (vector signed char, vector bool char);
  38705. vector signed char vec_or (vector signed char, vector signed char);
  38706. vector unsigned char vec_or (vector bool char, vector unsigned char);
  38707. vector unsigned char vec_or (vector unsigned char, vector bool char);
  38708. vector unsigned char vec_or (vector unsigned char, vector unsigned char);
  38709. vector signed char vec_pack (vector signed short, vector signed short);
  38710. vector unsigned char vec_pack (vector unsigned short, vector unsigned short);
  38711. vector bool char vec_pack (vector bool short, vector bool short);
  38712. vector signed short vec_pack (vector signed int, vector signed int);
  38713. vector unsigned short vec_pack (vector unsigned int, vector unsigned int);
  38714. vector bool short vec_pack (vector bool int, vector bool int);
  38715. vector pixel vec_packpx (vector unsigned int, vector unsigned int);
  38716. vector unsigned char vec_packs (vector unsigned short, vector unsigned short);
  38717. vector signed char vec_packs (vector signed short, vector signed short);
  38718. vector unsigned short vec_packs (vector unsigned int, vector unsigned int);
  38719. vector signed short vec_packs (vector signed int, vector signed int);
  38720. vector unsigned char vec_packsu (vector unsigned short, vector unsigned short);
  38721. vector unsigned char vec_packsu (vector signed short, vector signed short);
  38722. vector unsigned short vec_packsu (vector unsigned int, vector unsigned int);
  38723. vector unsigned short vec_packsu (vector signed int, vector signed int);
  38724. vector float vec_perm (vector float, vector float, vector unsigned char);
  38725. vector signed int vec_perm (vector signed int, vector signed int, vector unsigned char);
  38726. vector unsigned int vec_perm (vector unsigned int, vector unsigned int,
  38727. vector unsigned char);
  38728. vector bool int vec_perm (vector bool int, vector bool int, vector unsigned char);
  38729. vector signed short vec_perm (vector signed short, vector signed short,
  38730. vector unsigned char);
  38731. vector unsigned short vec_perm (vector unsigned short, vector unsigned short,
  38732. vector unsigned char);
  38733. vector bool short vec_perm (vector bool short, vector bool short, vector unsigned char);
  38734. vector pixel vec_perm (vector pixel, vector pixel, vector unsigned char);
  38735. vector signed char vec_perm (vector signed char, vector signed char,
  38736. vector unsigned char);
  38737. vector unsigned char vec_perm (vector unsigned char, vector unsigned char,
  38738. vector unsigned char);
  38739. vector bool char vec_perm (vector bool char, vector bool char, vector unsigned char);
  38740. vector float vec_re (vector float);
  38741. vector bool char vec_reve (vector bool char);
  38742. vector signed char vec_reve (vector signed char);
  38743. vector unsigned char vec_reve (vector unsigned char);
  38744. vector bool int vec_reve (vector bool int);
  38745. vector signed int vec_reve (vector signed int);
  38746. vector unsigned int vec_reve (vector unsigned int);
  38747. vector bool short vec_reve (vector bool short);
  38748. vector signed short vec_reve (vector signed short);
  38749. vector unsigned short vec_reve (vector unsigned short);
  38750. vector signed char vec_rl (vector signed char, vector unsigned char);
  38751. vector unsigned char vec_rl (vector unsigned char, vector unsigned char);
  38752. vector signed short vec_rl (vector signed short, vector unsigned short);
  38753. vector unsigned short vec_rl (vector unsigned short, vector unsigned short);
  38754. vector signed int vec_rl (vector signed int, vector unsigned int);
  38755. vector unsigned int vec_rl (vector unsigned int, vector unsigned int);
  38756. vector float vec_round (vector float);
  38757. vector float vec_rsqrt (vector float);
  38758. vector float vec_rsqrte (vector float);
  38759. vector float vec_sel (vector float, vector float, vector bool int);
  38760. vector float vec_sel (vector float, vector float, vector unsigned int);
  38761. vector signed int vec_sel (vector signed int, vector signed int, vector bool int);
  38762. vector signed int vec_sel (vector signed int, vector signed int, vector unsigned int);
  38763. vector unsigned int vec_sel (vector unsigned int, vector unsigned int, vector bool int);
  38764. vector unsigned int vec_sel (vector unsigned int, vector unsigned int,
  38765. vector unsigned int);
  38766. vector bool int vec_sel (vector bool int, vector bool int, vector bool int);
  38767. vector bool int vec_sel (vector bool int, vector bool int, vector unsigned int);
  38768. vector signed short vec_sel (vector signed short, vector signed short,
  38769. vector bool short);
  38770. vector signed short vec_sel (vector signed short, vector signed short,
  38771. vector unsigned short);
  38772. vector unsigned short vec_sel (vector unsigned short, vector unsigned short,
  38773. vector bool short);
  38774. vector unsigned short vec_sel (vector unsigned short, vector unsigned short,
  38775. vector unsigned short);
  38776. vector bool short vec_sel (vector bool short, vector bool short, vector bool short);
  38777. vector bool short vec_sel (vector bool short, vector bool short, vector unsigned short);
  38778. vector signed char vec_sel (vector signed char, vector signed char, vector bool char);
  38779. vector signed char vec_sel (vector signed char, vector signed char,
  38780. vector unsigned char);
  38781. vector unsigned char vec_sel (vector unsigned char, vector unsigned char,
  38782. vector bool char);
  38783. vector unsigned char vec_sel (vector unsigned char, vector unsigned char,
  38784. vector unsigned char);
  38785. vector bool char vec_sel (vector bool char, vector bool char, vector bool char);
  38786. vector bool char vec_sel (vector bool char, vector bool char, vector unsigned char);
  38787. vector signed char vec_sl (vector signed char, vector unsigned char);
  38788. vector unsigned char vec_sl (vector unsigned char, vector unsigned char);
  38789. vector signed short vec_sl (vector signed short, vector unsigned short);
  38790. vector unsigned short vec_sl (vector unsigned short, vector unsigned short);
  38791. vector signed int vec_sl (vector signed int, vector unsigned int);
  38792. vector unsigned int vec_sl (vector unsigned int, vector unsigned int);
  38793. vector float vec_sld (vector float, vector float, const int);
  38794. vector signed int vec_sld (vector signed int, vector signed int, const int);
  38795. vector unsigned int vec_sld (vector unsigned int, vector unsigned int, const int);
  38796. vector bool int vec_sld (vector bool int, vector bool int, const int);
  38797. vector signed short vec_sld (vector signed short, vector signed short, const int);
  38798. vector unsigned short vec_sld (vector unsigned short, vector unsigned short, const int);
  38799. vector bool short vec_sld (vector bool short, vector bool short, const int);
  38800. vector pixel vec_sld (vector pixel, vector pixel, const int);
  38801. vector signed char vec_sld (vector signed char, vector signed char, const int);
  38802. vector unsigned char vec_sld (vector unsigned char, vector unsigned char, const int);
  38803. vector bool char vec_sld (vector bool char, vector bool char, const int);
  38804. vector signed int vec_sll (vector signed int, vector unsigned int);
  38805. vector signed int vec_sll (vector signed int, vector unsigned short);
  38806. vector signed int vec_sll (vector signed int, vector unsigned char);
  38807. vector unsigned int vec_sll (vector unsigned int, vector unsigned int);
  38808. vector unsigned int vec_sll (vector unsigned int, vector unsigned short);
  38809. vector unsigned int vec_sll (vector unsigned int, vector unsigned char);
  38810. vector bool int vec_sll (vector bool int, vector unsigned int);
  38811. vector bool int vec_sll (vector bool int, vector unsigned short);
  38812. vector bool int vec_sll (vector bool int, vector unsigned char);
  38813. vector signed short vec_sll (vector signed short, vector unsigned int);
  38814. vector signed short vec_sll (vector signed short, vector unsigned short);
  38815. vector signed short vec_sll (vector signed short, vector unsigned char);
  38816. vector unsigned short vec_sll (vector unsigned short, vector unsigned int);
  38817. vector unsigned short vec_sll (vector unsigned short, vector unsigned short);
  38818. vector unsigned short vec_sll (vector unsigned short, vector unsigned char);
  38819. vector bool short vec_sll (vector bool short, vector unsigned int);
  38820. vector bool short vec_sll (vector bool short, vector unsigned short);
  38821. vector bool short vec_sll (vector bool short, vector unsigned char);
  38822. vector pixel vec_sll (vector pixel, vector unsigned int);
  38823. vector pixel vec_sll (vector pixel, vector unsigned short);
  38824. vector pixel vec_sll (vector pixel, vector unsigned char);
  38825. vector signed char vec_sll (vector signed char, vector unsigned int);
  38826. vector signed char vec_sll (vector signed char, vector unsigned short);
  38827. vector signed char vec_sll (vector signed char, vector unsigned char);
  38828. vector unsigned char vec_sll (vector unsigned char, vector unsigned int);
  38829. vector unsigned char vec_sll (vector unsigned char, vector unsigned short);
  38830. vector unsigned char vec_sll (vector unsigned char, vector unsigned char);
  38831. vector bool char vec_sll (vector bool char, vector unsigned int);
  38832. vector bool char vec_sll (vector bool char, vector unsigned short);
  38833. vector bool char vec_sll (vector bool char, vector unsigned char);
  38834. vector float vec_slo (vector float, vector signed char);
  38835. vector float vec_slo (vector float, vector unsigned char);
  38836. vector signed int vec_slo (vector signed int, vector signed char);
  38837. vector signed int vec_slo (vector signed int, vector unsigned char);
  38838. vector unsigned int vec_slo (vector unsigned int, vector signed char);
  38839. vector unsigned int vec_slo (vector unsigned int, vector unsigned char);
  38840. vector signed short vec_slo (vector signed short, vector signed char);
  38841. vector signed short vec_slo (vector signed short, vector unsigned char);
  38842. vector unsigned short vec_slo (vector unsigned short, vector signed char);
  38843. vector unsigned short vec_slo (vector unsigned short, vector unsigned char);
  38844. vector pixel vec_slo (vector pixel, vector signed char);
  38845. vector pixel vec_slo (vector pixel, vector unsigned char);
  38846. vector signed char vec_slo (vector signed char, vector signed char);
  38847. vector signed char vec_slo (vector signed char, vector unsigned char);
  38848. vector unsigned char vec_slo (vector unsigned char, vector signed char);
  38849. vector unsigned char vec_slo (vector unsigned char, vector unsigned char);
  38850. vector signed char vec_splat (vector signed char, const int);
  38851. vector unsigned char vec_splat (vector unsigned char, const int);
  38852. vector bool char vec_splat (vector bool char, const int);
  38853. vector signed short vec_splat (vector signed short, const int);
  38854. vector unsigned short vec_splat (vector unsigned short, const int);
  38855. vector bool short vec_splat (vector bool short, const int);
  38856. vector pixel vec_splat (vector pixel, const int);
  38857. vector float vec_splat (vector float, const int);
  38858. vector signed int vec_splat (vector signed int, const int);
  38859. vector unsigned int vec_splat (vector unsigned int, const int);
  38860. vector bool int vec_splat (vector bool int, const int);
  38861. vector signed short vec_splat_s16 (const int);
  38862. vector signed int vec_splat_s32 (const int);
  38863. vector signed char vec_splat_s8 (const int);
  38864. vector unsigned short vec_splat_u16 (const int);
  38865. vector unsigned int vec_splat_u32 (const int);
  38866. vector unsigned char vec_splat_u8 (const int);
  38867. vector signed char vec_splats (signed char);
  38868. vector unsigned char vec_splats (unsigned char);
  38869. vector signed short vec_splats (signed short);
  38870. vector unsigned short vec_splats (unsigned short);
  38871. vector signed int vec_splats (signed int);
  38872. vector unsigned int vec_splats (unsigned int);
  38873. vector float vec_splats (float);
  38874. vector signed char vec_sr (vector signed char, vector unsigned char);
  38875. vector unsigned char vec_sr (vector unsigned char, vector unsigned char);
  38876. vector signed short vec_sr (vector signed short, vector unsigned short);
  38877. vector unsigned short vec_sr (vector unsigned short, vector unsigned short);
  38878. vector signed int vec_sr (vector signed int, vector unsigned int);
  38879. vector unsigned int vec_sr (vector unsigned int, vector unsigned int);
  38880. vector signed char vec_sra (vector signed char, vector unsigned char);
  38881. vector unsigned char vec_sra (vector unsigned char, vector unsigned char);
  38882. vector signed short vec_sra (vector signed short, vector unsigned short);
  38883. vector unsigned short vec_sra (vector unsigned short, vector unsigned short);
  38884. vector signed int vec_sra (vector signed int, vector unsigned int);
  38885. vector unsigned int vec_sra (vector unsigned int, vector unsigned int);
  38886. vector signed int vec_srl (vector signed int, vector unsigned int);
  38887. vector signed int vec_srl (vector signed int, vector unsigned short);
  38888. vector signed int vec_srl (vector signed int, vector unsigned char);
  38889. vector unsigned int vec_srl (vector unsigned int, vector unsigned int);
  38890. vector unsigned int vec_srl (vector unsigned int, vector unsigned short);
  38891. vector unsigned int vec_srl (vector unsigned int, vector unsigned char);
  38892. vector bool int vec_srl (vector bool int, vector unsigned int);
  38893. vector bool int vec_srl (vector bool int, vector unsigned short);
  38894. vector bool int vec_srl (vector bool int, vector unsigned char);
  38895. vector signed short vec_srl (vector signed short, vector unsigned int);
  38896. vector signed short vec_srl (vector signed short, vector unsigned short);
  38897. vector signed short vec_srl (vector signed short, vector unsigned char);
  38898. vector unsigned short vec_srl (vector unsigned short, vector unsigned int);
  38899. vector unsigned short vec_srl (vector unsigned short, vector unsigned short);
  38900. vector unsigned short vec_srl (vector unsigned short, vector unsigned char);
  38901. vector bool short vec_srl (vector bool short, vector unsigned int);
  38902. vector bool short vec_srl (vector bool short, vector unsigned short);
  38903. vector bool short vec_srl (vector bool short, vector unsigned char);
  38904. vector pixel vec_srl (vector pixel, vector unsigned int);
  38905. vector pixel vec_srl (vector pixel, vector unsigned short);
  38906. vector pixel vec_srl (vector pixel, vector unsigned char);
  38907. vector signed char vec_srl (vector signed char, vector unsigned int);
  38908. vector signed char vec_srl (vector signed char, vector unsigned short);
  38909. vector signed char vec_srl (vector signed char, vector unsigned char);
  38910. vector unsigned char vec_srl (vector unsigned char, vector unsigned int);
  38911. vector unsigned char vec_srl (vector unsigned char, vector unsigned short);
  38912. vector unsigned char vec_srl (vector unsigned char, vector unsigned char);
  38913. vector bool char vec_srl (vector bool char, vector unsigned int);
  38914. vector bool char vec_srl (vector bool char, vector unsigned short);
  38915. vector bool char vec_srl (vector bool char, vector unsigned char);
  38916. vector float vec_sro (vector float, vector signed char);
  38917. vector float vec_sro (vector float, vector unsigned char);
  38918. vector signed int vec_sro (vector signed int, vector signed char);
  38919. vector signed int vec_sro (vector signed int, vector unsigned char);
  38920. vector unsigned int vec_sro (vector unsigned int, vector signed char);
  38921. vector unsigned int vec_sro (vector unsigned int, vector unsigned char);
  38922. vector signed short vec_sro (vector signed short, vector signed char);
  38923. vector signed short vec_sro (vector signed short, vector unsigned char);
  38924. vector unsigned short vec_sro (vector unsigned short, vector signed char);
  38925. vector unsigned short vec_sro (vector unsigned short, vector unsigned char);
  38926. vector pixel vec_sro (vector pixel, vector signed char);
  38927. vector pixel vec_sro (vector pixel, vector unsigned char);
  38928. vector signed char vec_sro (vector signed char, vector signed char);
  38929. vector signed char vec_sro (vector signed char, vector unsigned char);
  38930. vector unsigned char vec_sro (vector unsigned char, vector signed char);
  38931. vector unsigned char vec_sro (vector unsigned char, vector unsigned char);
  38932. void vec_st (vector float, int, vector float *);
  38933. void vec_st (vector float, int, float *);
  38934. void vec_st (vector signed int, int, vector signed int *);
  38935. void vec_st (vector signed int, int, int *);
  38936. void vec_st (vector unsigned int, int, vector unsigned int *);
  38937. void vec_st (vector unsigned int, int, unsigned int *);
  38938. void vec_st (vector bool int, int, vector bool int *);
  38939. void vec_st (vector bool int, int, unsigned int *);
  38940. void vec_st (vector bool int, int, int *);
  38941. void vec_st (vector signed short, int, vector signed short *);
  38942. void vec_st (vector signed short, int, short *);
  38943. void vec_st (vector unsigned short, int, vector unsigned short *);
  38944. void vec_st (vector unsigned short, int, unsigned short *);
  38945. void vec_st (vector bool short, int, vector bool short *);
  38946. void vec_st (vector bool short, int, unsigned short *);
  38947. void vec_st (vector pixel, int, vector pixel *);
  38948. void vec_st (vector bool short, int, short *);
  38949. void vec_st (vector signed char, int, vector signed char *);
  38950. void vec_st (vector signed char, int, signed char *);
  38951. void vec_st (vector unsigned char, int, vector unsigned char *);
  38952. void vec_st (vector unsigned char, int, unsigned char *);
  38953. void vec_st (vector bool char, int, vector bool char *);
  38954. void vec_st (vector bool char, int, unsigned char *);
  38955. void vec_st (vector bool char, int, signed char *);
  38956. void vec_ste (vector signed char, int, signed char *);
  38957. void vec_ste (vector unsigned char, int, unsigned char *);
  38958. void vec_ste (vector bool char, int, signed char *);
  38959. void vec_ste (vector bool char, int, unsigned char *);
  38960. void vec_ste (vector signed short, int, short *);
  38961. void vec_ste (vector unsigned short, int, unsigned short *);
  38962. void vec_ste (vector bool short, int, short *);
  38963. void vec_ste (vector bool short, int, unsigned short *);
  38964. void vec_ste (vector pixel, int, short *);
  38965. void vec_ste (vector pixel, int, unsigned short *);
  38966. void vec_ste (vector float, int, float *);
  38967. void vec_ste (vector signed int, int, int *);
  38968. void vec_ste (vector unsigned int, int, unsigned int *);
  38969. void vec_ste (vector bool int, int, int *);
  38970. void vec_ste (vector bool int, int, unsigned int *);
  38971. void vec_stl (vector float, int, vector float *);
  38972. void vec_stl (vector float, int, float *);
  38973. void vec_stl (vector signed int, int, vector signed int *);
  38974. void vec_stl (vector signed int, int, int *);
  38975. void vec_stl (vector unsigned int, int, vector unsigned int *);
  38976. void vec_stl (vector unsigned int, int, unsigned int *);
  38977. void vec_stl (vector bool int, int, vector bool int *);
  38978. void vec_stl (vector bool int, int, unsigned int *);
  38979. void vec_stl (vector bool int, int, int *);
  38980. void vec_stl (vector signed short, int, vector signed short *);
  38981. void vec_stl (vector signed short, int, short *);
  38982. void vec_stl (vector unsigned short, int, vector unsigned short *);
  38983. void vec_stl (vector unsigned short, int, unsigned short *);
  38984. void vec_stl (vector bool short, int, vector bool short *);
  38985. void vec_stl (vector bool short, int, unsigned short *);
  38986. void vec_stl (vector bool short, int, short *);
  38987. void vec_stl (vector pixel, int, vector pixel *);
  38988. void vec_stl (vector signed char, int, vector signed char *);
  38989. void vec_stl (vector signed char, int, signed char *);
  38990. void vec_stl (vector unsigned char, int, vector unsigned char *);
  38991. void vec_stl (vector unsigned char, int, unsigned char *);
  38992. void vec_stl (vector bool char, int, vector bool char *);
  38993. void vec_stl (vector bool char, int, unsigned char *);
  38994. void vec_stl (vector bool char, int, signed char *);
  38995. void vec_stvebx (vector signed char, int, signed char *);
  38996. void vec_stvebx (vector unsigned char, int, unsigned char *);
  38997. void vec_stvebx (vector bool char, int, signed char *);
  38998. void vec_stvebx (vector bool char, int, unsigned char *);
  38999. void vec_stvehx (vector signed short, int, short *);
  39000. void vec_stvehx (vector unsigned short, int, unsigned short *);
  39001. void vec_stvehx (vector bool short, int, short *);
  39002. void vec_stvehx (vector bool short, int, unsigned short *);
  39003. void vec_stvewx (vector float, int, float *);
  39004. void vec_stvewx (vector signed int, int, int *);
  39005. void vec_stvewx (vector unsigned int, int, unsigned int *);
  39006. void vec_stvewx (vector bool int, int, int *);
  39007. void vec_stvewx (vector bool int, int, unsigned int *);
  39008. vector signed char vec_sub (vector bool char, vector signed char);
  39009. vector signed char vec_sub (vector signed char, vector bool char);
  39010. vector signed char vec_sub (vector signed char, vector signed char);
  39011. vector unsigned char vec_sub (vector bool char, vector unsigned char);
  39012. vector unsigned char vec_sub (vector unsigned char, vector bool char);
  39013. vector unsigned char vec_sub (vector unsigned char, vector unsigned char);
  39014. vector signed short vec_sub (vector bool short, vector signed short);
  39015. vector signed short vec_sub (vector signed short, vector bool short);
  39016. vector signed short vec_sub (vector signed short, vector signed short);
  39017. vector unsigned short vec_sub (vector bool short, vector unsigned short);
  39018. vector unsigned short vec_sub (vector unsigned short, vector bool short);
  39019. vector unsigned short vec_sub (vector unsigned short, vector unsigned short);
  39020. vector signed int vec_sub (vector bool int, vector signed int);
  39021. vector signed int vec_sub (vector signed int, vector bool int);
  39022. vector signed int vec_sub (vector signed int, vector signed int);
  39023. vector unsigned int vec_sub (vector bool int, vector unsigned int);
  39024. vector unsigned int vec_sub (vector unsigned int, vector bool int);
  39025. vector unsigned int vec_sub (vector unsigned int, vector unsigned int);
  39026. vector float vec_sub (vector float, vector float);
  39027. vector signed int vec_subc (vector signed int, vector signed int);
  39028. vector unsigned int vec_subc (vector unsigned int, vector unsigned int);
  39029. vector signed int vec_sube (vector signed int, vector signed int,
  39030. vector signed int);
  39031. vector unsigned int vec_sube (vector unsigned int, vector unsigned int,
  39032. vector unsigned int);
  39033. vector signed int vec_subec (vector signed int, vector signed int,
  39034. vector signed int);
  39035. vector unsigned int vec_subec (vector unsigned int, vector unsigned int,
  39036. vector unsigned int);
  39037. vector unsigned char vec_subs (vector bool char, vector unsigned char);
  39038. vector unsigned char vec_subs (vector unsigned char, vector bool char);
  39039. vector unsigned char vec_subs (vector unsigned char, vector unsigned char);
  39040. vector signed char vec_subs (vector bool char, vector signed char);
  39041. vector signed char vec_subs (vector signed char, vector bool char);
  39042. vector signed char vec_subs (vector signed char, vector signed char);
  39043. vector unsigned short vec_subs (vector bool short, vector unsigned short);
  39044. vector unsigned short vec_subs (vector unsigned short, vector bool short);
  39045. vector unsigned short vec_subs (vector unsigned short, vector unsigned short);
  39046. vector signed short vec_subs (vector bool short, vector signed short);
  39047. vector signed short vec_subs (vector signed short, vector bool short);
  39048. vector signed short vec_subs (vector signed short, vector signed short);
  39049. vector unsigned int vec_subs (vector bool int, vector unsigned int);
  39050. vector unsigned int vec_subs (vector unsigned int, vector bool int);
  39051. vector unsigned int vec_subs (vector unsigned int, vector unsigned int);
  39052. vector signed int vec_subs (vector bool int, vector signed int);
  39053. vector signed int vec_subs (vector signed int, vector bool int);
  39054. vector signed int vec_subs (vector signed int, vector signed int);
  39055. vector signed int vec_sum2s (vector signed int, vector signed int);
  39056. vector unsigned int vec_sum4s (vector unsigned char, vector unsigned int);
  39057. vector signed int vec_sum4s (vector signed char, vector signed int);
  39058. vector signed int vec_sum4s (vector signed short, vector signed int);
  39059. vector signed int vec_sums (vector signed int, vector signed int);
  39060. vector float vec_trunc (vector float);
  39061. vector signed short vec_unpackh (vector signed char);
  39062. vector bool short vec_unpackh (vector bool char);
  39063. vector signed int vec_unpackh (vector signed short);
  39064. vector bool int vec_unpackh (vector bool short);
  39065. vector unsigned int vec_unpackh (vector pixel);
  39066. vector signed short vec_unpackl (vector signed char);
  39067. vector bool short vec_unpackl (vector bool char);
  39068. vector unsigned int vec_unpackl (vector pixel);
  39069. vector signed int vec_unpackl (vector signed short);
  39070. vector bool int vec_unpackl (vector bool short);
  39071. vector float vec_vaddfp (vector float, vector float);
  39072. vector signed char vec_vaddsbs (vector bool char, vector signed char);
  39073. vector signed char vec_vaddsbs (vector signed char, vector bool char);
  39074. vector signed char vec_vaddsbs (vector signed char, vector signed char);
  39075. vector signed short vec_vaddshs (vector bool short, vector signed short);
  39076. vector signed short vec_vaddshs (vector signed short, vector bool short);
  39077. vector signed short vec_vaddshs (vector signed short, vector signed short);
  39078. vector signed int vec_vaddsws (vector bool int, vector signed int);
  39079. vector signed int vec_vaddsws (vector signed int, vector bool int);
  39080. vector signed int vec_vaddsws (vector signed int, vector signed int);
  39081. vector signed char vec_vaddubm (vector bool char, vector signed char);
  39082. vector signed char vec_vaddubm (vector signed char, vector bool char);
  39083. vector signed char vec_vaddubm (vector signed char, vector signed char);
  39084. vector unsigned char vec_vaddubm (vector bool char, vector unsigned char);
  39085. vector unsigned char vec_vaddubm (vector unsigned char, vector bool char);
  39086. vector unsigned char vec_vaddubm (vector unsigned char, vector unsigned char);
  39087. vector unsigned char vec_vaddubs (vector bool char, vector unsigned char);
  39088. vector unsigned char vec_vaddubs (vector unsigned char, vector bool char);
  39089. vector unsigned char vec_vaddubs (vector unsigned char, vector unsigned char);
  39090. vector signed short vec_vadduhm (vector bool short, vector signed short);
  39091. vector signed short vec_vadduhm (vector signed short, vector bool short);
  39092. vector signed short vec_vadduhm (vector signed short, vector signed short);
  39093. vector unsigned short vec_vadduhm (vector bool short, vector unsigned short);
  39094. vector unsigned short vec_vadduhm (vector unsigned short, vector bool short);
  39095. vector unsigned short vec_vadduhm (vector unsigned short, vector unsigned short);
  39096. vector unsigned short vec_vadduhs (vector bool short, vector unsigned short);
  39097. vector unsigned short vec_vadduhs (vector unsigned short, vector bool short);
  39098. vector unsigned short vec_vadduhs (vector unsigned short, vector unsigned short);
  39099. vector signed int vec_vadduwm (vector bool int, vector signed int);
  39100. vector signed int vec_vadduwm (vector signed int, vector bool int);
  39101. vector signed int vec_vadduwm (vector signed int, vector signed int);
  39102. vector unsigned int vec_vadduwm (vector bool int, vector unsigned int);
  39103. vector unsigned int vec_vadduwm (vector unsigned int, vector bool int);
  39104. vector unsigned int vec_vadduwm (vector unsigned int, vector unsigned int);
  39105. vector unsigned int vec_vadduws (vector bool int, vector unsigned int);
  39106. vector unsigned int vec_vadduws (vector unsigned int, vector bool int);
  39107. vector unsigned int vec_vadduws (vector unsigned int, vector unsigned int);
  39108. vector signed char vec_vavgsb (vector signed char, vector signed char);
  39109. vector signed short vec_vavgsh (vector signed short, vector signed short);
  39110. vector signed int vec_vavgsw (vector signed int, vector signed int);
  39111. vector unsigned char vec_vavgub (vector unsigned char, vector unsigned char);
  39112. vector unsigned short vec_vavguh (vector unsigned short, vector unsigned short);
  39113. vector unsigned int vec_vavguw (vector unsigned int, vector unsigned int);
  39114. vector float vec_vcfsx (vector signed int, const int);
  39115. vector float vec_vcfux (vector unsigned int, const int);
  39116. vector bool int vec_vcmpeqfp (vector float, vector float);
  39117. vector bool char vec_vcmpequb (vector signed char, vector signed char);
  39118. vector bool char vec_vcmpequb (vector unsigned char, vector unsigned char);
  39119. vector bool short vec_vcmpequh (vector signed short, vector signed short);
  39120. vector bool short vec_vcmpequh (vector unsigned short, vector unsigned short);
  39121. vector bool int vec_vcmpequw (vector signed int, vector signed int);
  39122. vector bool int vec_vcmpequw (vector unsigned int, vector unsigned int);
  39123. vector bool int vec_vcmpgtfp (vector float, vector float);
  39124. vector bool char vec_vcmpgtsb (vector signed char, vector signed char);
  39125. vector bool short vec_vcmpgtsh (vector signed short, vector signed short);
  39126. vector bool int vec_vcmpgtsw (vector signed int, vector signed int);
  39127. vector bool char vec_vcmpgtub (vector unsigned char, vector unsigned char);
  39128. vector bool short vec_vcmpgtuh (vector unsigned short, vector unsigned short);
  39129. vector bool int vec_vcmpgtuw (vector unsigned int, vector unsigned int);
  39130. vector float vec_vmaxfp (vector float, vector float);
  39131. vector signed char vec_vmaxsb (vector bool char, vector signed char);
  39132. vector signed char vec_vmaxsb (vector signed char, vector bool char);
  39133. vector signed char vec_vmaxsb (vector signed char, vector signed char);
  39134. vector signed short vec_vmaxsh (vector bool short, vector signed short);
  39135. vector signed short vec_vmaxsh (vector signed short, vector bool short);
  39136. vector signed short vec_vmaxsh (vector signed short, vector signed short);
  39137. vector signed int vec_vmaxsw (vector bool int, vector signed int);
  39138. vector signed int vec_vmaxsw (vector signed int, vector bool int);
  39139. vector signed int vec_vmaxsw (vector signed int, vector signed int);
  39140. vector unsigned char vec_vmaxub (vector bool char, vector unsigned char);
  39141. vector unsigned char vec_vmaxub (vector unsigned char, vector bool char);
  39142. vector unsigned char vec_vmaxub (vector unsigned char, vector unsigned char);
  39143. vector unsigned short vec_vmaxuh (vector bool short, vector unsigned short);
  39144. vector unsigned short vec_vmaxuh (vector unsigned short, vector bool short);
  39145. vector unsigned short vec_vmaxuh (vector unsigned short, vector unsigned short);
  39146. vector unsigned int vec_vmaxuw (vector bool int, vector unsigned int);
  39147. vector unsigned int vec_vmaxuw (vector unsigned int, vector bool int);
  39148. vector unsigned int vec_vmaxuw (vector unsigned int, vector unsigned int);
  39149. vector float vec_vminfp (vector float, vector float);
  39150. vector signed char vec_vminsb (vector bool char, vector signed char);
  39151. vector signed char vec_vminsb (vector signed char, vector bool char);
  39152. vector signed char vec_vminsb (vector signed char, vector signed char);
  39153. vector signed short vec_vminsh (vector bool short, vector signed short);
  39154. vector signed short vec_vminsh (vector signed short, vector bool short);
  39155. vector signed short vec_vminsh (vector signed short, vector signed short);
  39156. vector signed int vec_vminsw (vector bool int, vector signed int);
  39157. vector signed int vec_vminsw (vector signed int, vector bool int);
  39158. vector signed int vec_vminsw (vector signed int, vector signed int);
  39159. vector unsigned char vec_vminub (vector bool char, vector unsigned char);
  39160. vector unsigned char vec_vminub (vector unsigned char, vector bool char);
  39161. vector unsigned char vec_vminub (vector unsigned char, vector unsigned char);
  39162. vector unsigned short vec_vminuh (vector bool short, vector unsigned short);
  39163. vector unsigned short vec_vminuh (vector unsigned short, vector bool short);
  39164. vector unsigned short vec_vminuh (vector unsigned short, vector unsigned short);
  39165. vector unsigned int vec_vminuw (vector bool int, vector unsigned int);
  39166. vector unsigned int vec_vminuw (vector unsigned int, vector bool int);
  39167. vector unsigned int vec_vminuw (vector unsigned int, vector unsigned int);
  39168. vector bool char vec_vmrghb (vector bool char, vector bool char);
  39169. vector signed char vec_vmrghb (vector signed char, vector signed char);
  39170. vector unsigned char vec_vmrghb (vector unsigned char, vector unsigned char);
  39171. vector bool short vec_vmrghh (vector bool short, vector bool short);
  39172. vector signed short vec_vmrghh (vector signed short, vector signed short);
  39173. vector unsigned short vec_vmrghh (vector unsigned short, vector unsigned short);
  39174. vector pixel vec_vmrghh (vector pixel, vector pixel);
  39175. vector float vec_vmrghw (vector float, vector float);
  39176. vector bool int vec_vmrghw (vector bool int, vector bool int);
  39177. vector signed int vec_vmrghw (vector signed int, vector signed int);
  39178. vector unsigned int vec_vmrghw (vector unsigned int, vector unsigned int);
  39179. vector bool char vec_vmrglb (vector bool char, vector bool char);
  39180. vector signed char vec_vmrglb (vector signed char, vector signed char);
  39181. vector unsigned char vec_vmrglb (vector unsigned char, vector unsigned char);
  39182. vector bool short vec_vmrglh (vector bool short, vector bool short);
  39183. vector signed short vec_vmrglh (vector signed short, vector signed short);
  39184. vector unsigned short vec_vmrglh (vector unsigned short, vector unsigned short);
  39185. vector pixel vec_vmrglh (vector pixel, vector pixel);
  39186. vector float vec_vmrglw (vector float, vector float);
  39187. vector signed int vec_vmrglw (vector signed int, vector signed int);
  39188. vector unsigned int vec_vmrglw (vector unsigned int, vector unsigned int);
  39189. vector bool int vec_vmrglw (vector bool int, vector bool int);
  39190. vector signed int vec_vmsummbm (vector signed char, vector unsigned char,
  39191. vector signed int);
  39192. vector signed int vec_vmsumshm (vector signed short, vector signed short,
  39193. vector signed int);
  39194. vector signed int vec_vmsumshs (vector signed short, vector signed short,
  39195. vector signed int);
  39196. vector unsigned int vec_vmsumubm (vector unsigned char, vector unsigned char,
  39197. vector unsigned int);
  39198. vector unsigned int vec_vmsumuhm (vector unsigned short, vector unsigned short,
  39199. vector unsigned int);
  39200. vector unsigned int vec_vmsumuhs (vector unsigned short, vector unsigned short,
  39201. vector unsigned int);
  39202. vector signed short vec_vmulesb (vector signed char, vector signed char);
  39203. vector signed int vec_vmulesh (vector signed short, vector signed short);
  39204. vector unsigned short vec_vmuleub (vector unsigned char, vector unsigned char);
  39205. vector unsigned int vec_vmuleuh (vector unsigned short, vector unsigned short);
  39206. vector signed short vec_vmulosb (vector signed char, vector signed char);
  39207. vector signed int vec_vmulosh (vector signed short, vector signed short);
  39208. vector unsigned short vec_vmuloub (vector unsigned char, vector unsigned char);
  39209. vector unsigned int vec_vmulouh (vector unsigned short, vector unsigned short);
  39210. vector signed char vec_vpkshss (vector signed short, vector signed short);
  39211. vector unsigned char vec_vpkshus (vector signed short, vector signed short);
  39212. vector signed short vec_vpkswss (vector signed int, vector signed int);
  39213. vector unsigned short vec_vpkswus (vector signed int, vector signed int);
  39214. vector bool char vec_vpkuhum (vector bool short, vector bool short);
  39215. vector signed char vec_vpkuhum (vector signed short, vector signed short);
  39216. vector unsigned char vec_vpkuhum (vector unsigned short, vector unsigned short);
  39217. vector unsigned char vec_vpkuhus (vector unsigned short, vector unsigned short);
  39218. vector bool short vec_vpkuwum (vector bool int, vector bool int);
  39219. vector signed short vec_vpkuwum (vector signed int, vector signed int);
  39220. vector unsigned short vec_vpkuwum (vector unsigned int, vector unsigned int);
  39221. vector unsigned short vec_vpkuwus (vector unsigned int, vector unsigned int);
  39222. vector signed char vec_vrlb (vector signed char, vector unsigned char);
  39223. vector unsigned char vec_vrlb (vector unsigned char, vector unsigned char);
  39224. vector signed short vec_vrlh (vector signed short, vector unsigned short);
  39225. vector unsigned short vec_vrlh (vector unsigned short, vector unsigned short);
  39226. vector signed int vec_vrlw (vector signed int, vector unsigned int);
  39227. vector unsigned int vec_vrlw (vector unsigned int, vector unsigned int);
  39228. vector signed char vec_vslb (vector signed char, vector unsigned char);
  39229. vector unsigned char vec_vslb (vector unsigned char, vector unsigned char);
  39230. vector signed short vec_vslh (vector signed short, vector unsigned short);
  39231. vector unsigned short vec_vslh (vector unsigned short, vector unsigned short);
  39232. vector signed int vec_vslw (vector signed int, vector unsigned int);
  39233. vector unsigned int vec_vslw (vector unsigned int, vector unsigned int);
  39234. vector signed char vec_vspltb (vector signed char, const int);
  39235. vector unsigned char vec_vspltb (vector unsigned char, const int);
  39236. vector bool char vec_vspltb (vector bool char, const int);
  39237. vector bool short vec_vsplth (vector bool short, const int);
  39238. vector signed short vec_vsplth (vector signed short, const int);
  39239. vector unsigned short vec_vsplth (vector unsigned short, const int);
  39240. vector pixel vec_vsplth (vector pixel, const int);
  39241. vector float vec_vspltw (vector float, const int);
  39242. vector signed int vec_vspltw (vector signed int, const int);
  39243. vector unsigned int vec_vspltw (vector unsigned int, const int);
  39244. vector bool int vec_vspltw (vector bool int, const int);
  39245. vector signed char vec_vsrab (vector signed char, vector unsigned char);
  39246. vector unsigned char vec_vsrab (vector unsigned char, vector unsigned char);
  39247. vector signed short vec_vsrah (vector signed short, vector unsigned short);
  39248. vector unsigned short vec_vsrah (vector unsigned short, vector unsigned short);
  39249. vector signed int vec_vsraw (vector signed int, vector unsigned int);
  39250. vector unsigned int vec_vsraw (vector unsigned int, vector unsigned int);
  39251. vector signed char vec_vsrb (vector signed char, vector unsigned char);
  39252. vector unsigned char vec_vsrb (vector unsigned char, vector unsigned char);
  39253. vector signed short vec_vsrh (vector signed short, vector unsigned short);
  39254. vector unsigned short vec_vsrh (vector unsigned short, vector unsigned short);
  39255. vector signed int vec_vsrw (vector signed int, vector unsigned int);
  39256. vector unsigned int vec_vsrw (vector unsigned int, vector unsigned int);
  39257. vector float vec_vsubfp (vector float, vector float);
  39258. vector signed char vec_vsubsbs (vector bool char, vector signed char);
  39259. vector signed char vec_vsubsbs (vector signed char, vector bool char);
  39260. vector signed char vec_vsubsbs (vector signed char, vector signed char);
  39261. vector signed short vec_vsubshs (vector bool short, vector signed short);
  39262. vector signed short vec_vsubshs (vector signed short, vector bool short);
  39263. vector signed short vec_vsubshs (vector signed short, vector signed short);
  39264. vector signed int vec_vsubsws (vector bool int, vector signed int);
  39265. vector signed int vec_vsubsws (vector signed int, vector bool int);
  39266. vector signed int vec_vsubsws (vector signed int, vector signed int);
  39267. vector signed char vec_vsububm (vector bool char, vector signed char);
  39268. vector signed char vec_vsububm (vector signed char, vector bool char);
  39269. vector signed char vec_vsububm (vector signed char, vector signed char);
  39270. vector unsigned char vec_vsububm (vector bool char, vector unsigned char);
  39271. vector unsigned char vec_vsububm (vector unsigned char, vector bool char);
  39272. vector unsigned char vec_vsububm (vector unsigned char, vector unsigned char);
  39273. vector unsigned char vec_vsububs (vector bool char, vector unsigned char);
  39274. vector unsigned char vec_vsububs (vector unsigned char, vector bool char);
  39275. vector unsigned char vec_vsububs (vector unsigned char, vector unsigned char);
  39276. vector signed short vec_vsubuhm (vector bool short, vector signed short);
  39277. vector signed short vec_vsubuhm (vector signed short, vector bool short);
  39278. vector signed short vec_vsubuhm (vector signed short, vector signed short);
  39279. vector unsigned short vec_vsubuhm (vector bool short, vector unsigned short);
  39280. vector unsigned short vec_vsubuhm (vector unsigned short, vector bool short);
  39281. vector unsigned short vec_vsubuhm (vector unsigned short, vector unsigned short);
  39282. vector unsigned short vec_vsubuhs (vector bool short, vector unsigned short);
  39283. vector unsigned short vec_vsubuhs (vector unsigned short, vector bool short);
  39284. vector unsigned short vec_vsubuhs (vector unsigned short, vector unsigned short);
  39285. vector signed int vec_vsubuwm (vector bool int, vector signed int);
  39286. vector signed int vec_vsubuwm (vector signed int, vector bool int);
  39287. vector signed int vec_vsubuwm (vector signed int, vector signed int);
  39288. vector unsigned int vec_vsubuwm (vector bool int, vector unsigned int);
  39289. vector unsigned int vec_vsubuwm (vector unsigned int, vector bool int);
  39290. vector unsigned int vec_vsubuwm (vector unsigned int, vector unsigned int);
  39291. vector unsigned int vec_vsubuws (vector bool int, vector unsigned int);
  39292. vector unsigned int vec_vsubuws (vector unsigned int, vector bool int);
  39293. vector unsigned int vec_vsubuws (vector unsigned int, vector unsigned int);
  39294. vector signed int vec_vsum4sbs (vector signed char, vector signed int);
  39295. vector signed int vec_vsum4shs (vector signed short, vector signed int);
  39296. vector unsigned int vec_vsum4ubs (vector unsigned char, vector unsigned int);
  39297. vector unsigned int vec_vupkhpx (vector pixel);
  39298. vector bool short vec_vupkhsb (vector bool char);
  39299. vector signed short vec_vupkhsb (vector signed char);
  39300. vector bool int vec_vupkhsh (vector bool short);
  39301. vector signed int vec_vupkhsh (vector signed short);
  39302. vector unsigned int vec_vupklpx (vector pixel);
  39303. vector bool short vec_vupklsb (vector bool char);
  39304. vector signed short vec_vupklsb (vector signed char);
  39305. vector bool int vec_vupklsh (vector bool short);
  39306. vector signed int vec_vupklsh (vector signed short);
  39307. vector float vec_xor (vector float, vector float);
  39308. vector float vec_xor (vector float, vector bool int);
  39309. vector float vec_xor (vector bool int, vector float);
  39310. vector bool int vec_xor (vector bool int, vector bool int);
  39311. vector signed int vec_xor (vector bool int, vector signed int);
  39312. vector signed int vec_xor (vector signed int, vector bool int);
  39313. vector signed int vec_xor (vector signed int, vector signed int);
  39314. vector unsigned int vec_xor (vector bool int, vector unsigned int);
  39315. vector unsigned int vec_xor (vector unsigned int, vector bool int);
  39316. vector unsigned int vec_xor (vector unsigned int, vector unsigned int);
  39317. vector bool short vec_xor (vector bool short, vector bool short);
  39318. vector signed short vec_xor (vector bool short, vector signed short);
  39319. vector signed short vec_xor (vector signed short, vector bool short);
  39320. vector signed short vec_xor (vector signed short, vector signed short);
  39321. vector unsigned short vec_xor (vector bool short, vector unsigned short);
  39322. vector unsigned short vec_xor (vector unsigned short, vector bool short);
  39323. vector unsigned short vec_xor (vector unsigned short, vector unsigned short);
  39324. vector signed char vec_xor (vector bool char, vector signed char);
  39325. vector bool char vec_xor (vector bool char, vector bool char);
  39326. vector signed char vec_xor (vector signed char, vector bool char);
  39327. vector signed char vec_xor (vector signed char, vector signed char);
  39328. vector unsigned char vec_xor (vector bool char, vector unsigned char);
  39329. vector unsigned char vec_xor (vector unsigned char, vector bool char);
  39330. vector unsigned char vec_xor (vector unsigned char, vector unsigned char);
  39331. 
  39332. File: gcc.info, Node: PowerPC AltiVec Built-in Functions Available on ISA 2.06, Next: PowerPC AltiVec Built-in Functions Available on ISA 2.07, Prev: PowerPC AltiVec Built-in Functions on ISA 2.05, Up: PowerPC AltiVec/VSX Built-in Functions
  39333. 6.60.23.2 PowerPC AltiVec Built-in Functions Available on ISA 2.06
  39334. ..................................................................
  39335. The AltiVec built-in functions described in this section are available
  39336. on the PowerPC family of processors starting with ISA 2.06 or later.
  39337. These are normally enabled by adding '-mvsx' to the command line.
  39338. When '-mvsx' is used, the following additional vector types are
  39339. implemented.
  39340. vector unsigned __int128
  39341. vector signed __int128
  39342. vector unsigned long long int
  39343. vector signed long long int
  39344. vector double
  39345. The long long types are only implemented for 64-bit code generation.
  39346. vector bool long long vec_and (vector bool long long int, vector bool long long);
  39347. vector double vec_ctf (vector unsigned long, const int);
  39348. vector double vec_ctf (vector signed long, const int);
  39349. vector signed long vec_cts (vector double, const int);
  39350. vector unsigned long vec_ctu (vector double, const int);
  39351. void vec_dst (const unsigned long *, int, const int);
  39352. void vec_dst (const long *, int, const int);
  39353. void vec_dststt (const unsigned long *, int, const int);
  39354. void vec_dststt (const long *, int, const int);
  39355. void vec_dstt (const unsigned long *, int, const int);
  39356. void vec_dstt (const long *, int, const int);
  39357. vector unsigned char vec_lvsl (int, const unsigned long *);
  39358. vector unsigned char vec_lvsl (int, const long *);
  39359. vector unsigned char vec_lvsr (int, const unsigned long *);
  39360. vector unsigned char vec_lvsr (int, const long *);
  39361. vector double vec_mul (vector double, vector double);
  39362. vector long vec_mul (vector long, vector long);
  39363. vector unsigned long vec_mul (vector unsigned long, vector unsigned long);
  39364. vector unsigned long long vec_mule (vector unsigned int, vector unsigned int);
  39365. vector signed long long vec_mule (vector signed int, vector signed int);
  39366. vector unsigned long long vec_mulo (vector unsigned int, vector unsigned int);
  39367. vector signed long long vec_mulo (vector signed int, vector signed int);
  39368. vector double vec_nabs (vector double);
  39369. vector bool long long vec_reve (vector bool long long);
  39370. vector signed long long vec_reve (vector signed long long);
  39371. vector unsigned long long vec_reve (vector unsigned long long);
  39372. vector double vec_sld (vector double, vector double, const int);
  39373. vector bool long long int vec_sld (vector bool long long int,
  39374. vector bool long long int, const int);
  39375. vector long long int vec_sld (vector long long int, vector long long int, const int);
  39376. vector unsigned long long int vec_sld (vector unsigned long long int,
  39377. vector unsigned long long int, const int);
  39378. vector long long int vec_sll (vector long long int, vector unsigned char);
  39379. vector unsigned long long int vec_sll (vector unsigned long long int,
  39380. vector unsigned char);
  39381. vector signed long long vec_slo (vector signed long long, vector signed char);
  39382. vector signed long long vec_slo (vector signed long long, vector unsigned char);
  39383. vector unsigned long long vec_slo (vector unsigned long long, vector signed char);
  39384. vector unsigned long long vec_slo (vector unsigned long long, vector unsigned char);
  39385. vector signed long vec_splat (vector signed long, const int);
  39386. vector unsigned long vec_splat (vector unsigned long, const int);
  39387. vector long long int vec_srl (vector long long int, vector unsigned char);
  39388. vector unsigned long long int vec_srl (vector unsigned long long int,
  39389. vector unsigned char);
  39390. vector long long int vec_sro (vector long long int, vector char);
  39391. vector long long int vec_sro (vector long long int, vector unsigned char);
  39392. vector unsigned long long int vec_sro (vector unsigned long long int, vector char);
  39393. vector unsigned long long int vec_sro (vector unsigned long long int,
  39394. vector unsigned char);
  39395. vector signed __int128 vec_subc (vector signed __int128, vector signed __int128);
  39396. vector unsigned __int128 vec_subc (vector unsigned __int128, vector unsigned __int128);
  39397. vector signed __int128 vec_sube (vector signed __int128, vector signed __int128,
  39398. vector signed __int128);
  39399. vector unsigned __int128 vec_sube (vector unsigned __int128, vector unsigned __int128,
  39400. vector unsigned __int128);
  39401. vector signed __int128 vec_subec (vector signed __int128, vector signed __int128,
  39402. vector signed __int128);
  39403. vector unsigned __int128 vec_subec (vector unsigned __int128, vector unsigned __int128,
  39404. vector unsigned __int128);
  39405. vector double vec_unpackh (vector float);
  39406. vector double vec_unpackl (vector float);
  39407. vector double vec_doublee (vector float);
  39408. vector double vec_doublee (vector signed int);
  39409. vector double vec_doublee (vector unsigned int);
  39410. vector double vec_doubleo (vector float);
  39411. vector double vec_doubleo (vector signed int);
  39412. vector double vec_doubleo (vector unsigned int);
  39413. vector double vec_doubleh (vector float);
  39414. vector double vec_doubleh (vector signed int);
  39415. vector double vec_doubleh (vector unsigned int);
  39416. vector double vec_doublel (vector float);
  39417. vector double vec_doublel (vector signed int);
  39418. vector double vec_doublel (vector unsigned int);
  39419. vector float vec_float (vector signed int);
  39420. vector float vec_float (vector unsigned int);
  39421. vector float vec_float2 (vector signed long long, vector signed long long);
  39422. vector float vec_float2 (vector unsigned long long, vector signed long long);
  39423. vector float vec_floate (vector double);
  39424. vector float vec_floate (vector signed long long);
  39425. vector float vec_floate (vector unsigned long long);
  39426. vector float vec_floato (vector double);
  39427. vector float vec_floato (vector signed long long);
  39428. vector float vec_floato (vector unsigned long long);
  39429. vector signed long long vec_signed (vector double);
  39430. vector signed int vec_signed (vector float);
  39431. vector signed int vec_signede (vector double);
  39432. vector signed int vec_signedo (vector double);
  39433. vector signed char vec_sldw (vector signed char, vector signed char, const int);
  39434. vector unsigned char vec_sldw (vector unsigned char, vector unsigned char, const int);
  39435. vector signed short vec_sldw (vector signed short, vector signed short, const int);
  39436. vector unsigned short vec_sldw (vector unsigned short,
  39437. vector unsigned short, const int);
  39438. vector signed int vec_sldw (vector signed int, vector signed int, const int);
  39439. vector unsigned int vec_sldw (vector unsigned int, vector unsigned int, const int);
  39440. vector signed long long vec_sldw (vector signed long long,
  39441. vector signed long long, const int);
  39442. vector unsigned long long vec_sldw (vector unsigned long long,
  39443. vector unsigned long long, const int);
  39444. vector signed long long vec_unsigned (vector double);
  39445. vector signed int vec_unsigned (vector float);
  39446. vector signed int vec_unsignede (vector double);
  39447. vector signed int vec_unsignedo (vector double);
  39448. vector double vec_abs (vector double);
  39449. vector double vec_add (vector double, vector double);
  39450. vector double vec_and (vector double, vector double);
  39451. vector double vec_and (vector double, vector bool long);
  39452. vector double vec_and (vector bool long, vector double);
  39453. vector long vec_and (vector long, vector long);
  39454. vector long vec_and (vector long, vector bool long);
  39455. vector long vec_and (vector bool long, vector long);
  39456. vector unsigned long vec_and (vector unsigned long, vector unsigned long);
  39457. vector unsigned long vec_and (vector unsigned long, vector bool long);
  39458. vector unsigned long vec_and (vector bool long, vector unsigned long);
  39459. vector double vec_andc (vector double, vector double);
  39460. vector double vec_andc (vector double, vector bool long);
  39461. vector double vec_andc (vector bool long, vector double);
  39462. vector long vec_andc (vector long, vector long);
  39463. vector long vec_andc (vector long, vector bool long);
  39464. vector long vec_andc (vector bool long, vector long);
  39465. vector unsigned long vec_andc (vector unsigned long, vector unsigned long);
  39466. vector unsigned long vec_andc (vector unsigned long, vector bool long);
  39467. vector unsigned long vec_andc (vector bool long, vector unsigned long);
  39468. vector double vec_ceil (vector double);
  39469. vector bool long vec_cmpeq (vector double, vector double);
  39470. vector bool long vec_cmpge (vector double, vector double);
  39471. vector bool long vec_cmpgt (vector double, vector double);
  39472. vector bool long vec_cmple (vector double, vector double);
  39473. vector bool long vec_cmplt (vector double, vector double);
  39474. vector double vec_cpsgn (vector double, vector double);
  39475. vector float vec_div (vector float, vector float);
  39476. vector double vec_div (vector double, vector double);
  39477. vector long vec_div (vector long, vector long);
  39478. vector unsigned long vec_div (vector unsigned long, vector unsigned long);
  39479. vector double vec_floor (vector double);
  39480. vector signed long long vec_ld (int, const vector signed long long *);
  39481. vector signed long long vec_ld (int, const signed long long *);
  39482. vector unsigned long long vec_ld (int, const vector unsigned long long *);
  39483. vector unsigned long long vec_ld (int, const unsigned long long *);
  39484. vector __int128 vec_ld (int, const vector __int128 *);
  39485. vector unsigned __int128 vec_ld (int, const vector unsigned __int128 *);
  39486. vector __int128 vec_ld (int, const __int128 *);
  39487. vector unsigned __int128 vec_ld (int, const unsigned __int128 *);
  39488. vector double vec_ld (int, const vector double *);
  39489. vector double vec_ld (int, const double *);
  39490. vector double vec_ldl (int, const vector double *);
  39491. vector double vec_ldl (int, const double *);
  39492. vector unsigned char vec_lvsl (int, const double *);
  39493. vector unsigned char vec_lvsr (int, const double *);
  39494. vector double vec_madd (vector double, vector double, vector double);
  39495. vector double vec_max (vector double, vector double);
  39496. vector signed long vec_mergeh (vector signed long, vector signed long);
  39497. vector signed long vec_mergeh (vector signed long, vector bool long);
  39498. vector signed long vec_mergeh (vector bool long, vector signed long);
  39499. vector unsigned long vec_mergeh (vector unsigned long, vector unsigned long);
  39500. vector unsigned long vec_mergeh (vector unsigned long, vector bool long);
  39501. vector unsigned long vec_mergeh (vector bool long, vector unsigned long);
  39502. vector signed long vec_mergel (vector signed long, vector signed long);
  39503. vector signed long vec_mergel (vector signed long, vector bool long);
  39504. vector signed long vec_mergel (vector bool long, vector signed long);
  39505. vector unsigned long vec_mergel (vector unsigned long, vector unsigned long);
  39506. vector unsigned long vec_mergel (vector unsigned long, vector bool long);
  39507. vector unsigned long vec_mergel (vector bool long, vector unsigned long);
  39508. vector double vec_min (vector double, vector double);
  39509. vector float vec_msub (vector float, vector float, vector float);
  39510. vector double vec_msub (vector double, vector double, vector double);
  39511. vector float vec_nearbyint (vector float);
  39512. vector double vec_nearbyint (vector double);
  39513. vector float vec_nmadd (vector float, vector float, vector float);
  39514. vector double vec_nmadd (vector double, vector double, vector double);
  39515. vector double vec_nmsub (vector double, vector double, vector double);
  39516. vector double vec_nor (vector double, vector double);
  39517. vector long vec_nor (vector long, vector long);
  39518. vector long vec_nor (vector long, vector bool long);
  39519. vector long vec_nor (vector bool long, vector long);
  39520. vector unsigned long vec_nor (vector unsigned long, vector unsigned long);
  39521. vector unsigned long vec_nor (vector unsigned long, vector bool long);
  39522. vector unsigned long vec_nor (vector bool long, vector unsigned long);
  39523. vector double vec_or (vector double, vector double);
  39524. vector double vec_or (vector double, vector bool long);
  39525. vector double vec_or (vector bool long, vector double);
  39526. vector long vec_or (vector long, vector long);
  39527. vector long vec_or (vector long, vector bool long);
  39528. vector long vec_or (vector bool long, vector long);
  39529. vector unsigned long vec_or (vector unsigned long, vector unsigned long);
  39530. vector unsigned long vec_or (vector unsigned long, vector bool long);
  39531. vector unsigned long vec_or (vector bool long, vector unsigned long);
  39532. vector double vec_perm (vector double, vector double, vector unsigned char);
  39533. vector long vec_perm (vector long, vector long, vector unsigned char);
  39534. vector unsigned long vec_perm (vector unsigned long, vector unsigned long,
  39535. vector unsigned char);
  39536. vector bool char vec_permxor (vector bool char, vector bool char,
  39537. vector bool char);
  39538. vector unsigned char vec_permxor (vector signed char, vector signed char,
  39539. vector signed char);
  39540. vector unsigned char vec_permxor (vector unsigned char, vector unsigned char,
  39541. vector unsigned char);
  39542. vector double vec_rint (vector double);
  39543. vector double vec_recip (vector double, vector double);
  39544. vector double vec_rsqrt (vector double);
  39545. vector double vec_rsqrte (vector double);
  39546. vector double vec_sel (vector double, vector double, vector bool long);
  39547. vector double vec_sel (vector double, vector double, vector unsigned long);
  39548. vector long vec_sel (vector long, vector long, vector long);
  39549. vector long vec_sel (vector long, vector long, vector unsigned long);
  39550. vector long vec_sel (vector long, vector long, vector bool long);
  39551. vector unsigned long vec_sel (vector unsigned long, vector unsigned long,
  39552. vector long);
  39553. vector unsigned long vec_sel (vector unsigned long, vector unsigned long,
  39554. vector unsigned long);
  39555. vector unsigned long vec_sel (vector unsigned long, vector unsigned long,
  39556. vector bool long);
  39557. vector double vec_splats (double);
  39558. vector signed long vec_splats (signed long);
  39559. vector unsigned long vec_splats (unsigned long);
  39560. vector float vec_sqrt (vector float);
  39561. vector double vec_sqrt (vector double);
  39562. void vec_st (vector signed long long, int, vector signed long long *);
  39563. void vec_st (vector signed long long, int, signed long long *);
  39564. void vec_st (vector unsigned long long, int, vector unsigned long long *);
  39565. void vec_st (vector unsigned long long, int, unsigned long long *);
  39566. void vec_st (vector bool long long, int, vector bool long long *);
  39567. void vec_st (vector bool long long, int, signed long long *);
  39568. void vec_st (vector bool long long, int, unsigned long long *);
  39569. void vec_st (vector double, int, vector double *);
  39570. void vec_st (vector double, int, double *);
  39571. vector double vec_sub (vector double, vector double);
  39572. vector double vec_trunc (vector double);
  39573. vector double vec_xl (int, vector double *);
  39574. vector double vec_xl (int, double *);
  39575. vector long long vec_xl (int, vector long long *);
  39576. vector long long vec_xl (int, long long *);
  39577. vector unsigned long long vec_xl (int, vector unsigned long long *);
  39578. vector unsigned long long vec_xl (int, unsigned long long *);
  39579. vector float vec_xl (int, vector float *);
  39580. vector float vec_xl (int, float *);
  39581. vector int vec_xl (int, vector int *);
  39582. vector int vec_xl (int, int *);
  39583. vector unsigned int vec_xl (int, vector unsigned int *);
  39584. vector unsigned int vec_xl (int, unsigned int *);
  39585. vector double vec_xor (vector double, vector double);
  39586. vector double vec_xor (vector double, vector bool long);
  39587. vector double vec_xor (vector bool long, vector double);
  39588. vector long vec_xor (vector long, vector long);
  39589. vector long vec_xor (vector long, vector bool long);
  39590. vector long vec_xor (vector bool long, vector long);
  39591. vector unsigned long vec_xor (vector unsigned long, vector unsigned long);
  39592. vector unsigned long vec_xor (vector unsigned long, vector bool long);
  39593. vector unsigned long vec_xor (vector bool long, vector unsigned long);
  39594. void vec_xst (vector double, int, vector double *);
  39595. void vec_xst (vector double, int, double *);
  39596. void vec_xst (vector long long, int, vector long long *);
  39597. void vec_xst (vector long long, int, long long *);
  39598. void vec_xst (vector unsigned long long, int, vector unsigned long long *);
  39599. void vec_xst (vector unsigned long long, int, unsigned long long *);
  39600. void vec_xst (vector float, int, vector float *);
  39601. void vec_xst (vector float, int, float *);
  39602. void vec_xst (vector int, int, vector int *);
  39603. void vec_xst (vector int, int, int *);
  39604. void vec_xst (vector unsigned int, int, vector unsigned int *);
  39605. void vec_xst (vector unsigned int, int, unsigned int *);
  39606. int vec_all_eq (vector double, vector double);
  39607. int vec_all_ge (vector double, vector double);
  39608. int vec_all_gt (vector double, vector double);
  39609. int vec_all_le (vector double, vector double);
  39610. int vec_all_lt (vector double, vector double);
  39611. int vec_all_nan (vector double);
  39612. int vec_all_ne (vector double, vector double);
  39613. int vec_all_nge (vector double, vector double);
  39614. int vec_all_ngt (vector double, vector double);
  39615. int vec_all_nle (vector double, vector double);
  39616. int vec_all_nlt (vector double, vector double);
  39617. int vec_all_numeric (vector double);
  39618. int vec_any_eq (vector double, vector double);
  39619. int vec_any_ge (vector double, vector double);
  39620. int vec_any_gt (vector double, vector double);
  39621. int vec_any_le (vector double, vector double);
  39622. int vec_any_lt (vector double, vector double);
  39623. int vec_any_nan (vector double);
  39624. int vec_any_ne (vector double, vector double);
  39625. int vec_any_nge (vector double, vector double);
  39626. int vec_any_ngt (vector double, vector double);
  39627. int vec_any_nle (vector double, vector double);
  39628. int vec_any_nlt (vector double, vector double);
  39629. int vec_any_numeric (vector double);
  39630. vector double vec_vsx_ld (int, const vector double *);
  39631. vector double vec_vsx_ld (int, const double *);
  39632. vector float vec_vsx_ld (int, const vector float *);
  39633. vector float vec_vsx_ld (int, const float *);
  39634. vector bool int vec_vsx_ld (int, const vector bool int *);
  39635. vector signed int vec_vsx_ld (int, const vector signed int *);
  39636. vector signed int vec_vsx_ld (int, const int *);
  39637. vector signed int vec_vsx_ld (int, const long *);
  39638. vector unsigned int vec_vsx_ld (int, const vector unsigned int *);
  39639. vector unsigned int vec_vsx_ld (int, const unsigned int *);
  39640. vector unsigned int vec_vsx_ld (int, const unsigned long *);
  39641. vector bool short vec_vsx_ld (int, const vector bool short *);
  39642. vector pixel vec_vsx_ld (int, const vector pixel *);
  39643. vector signed short vec_vsx_ld (int, const vector signed short *);
  39644. vector signed short vec_vsx_ld (int, const short *);
  39645. vector unsigned short vec_vsx_ld (int, const vector unsigned short *);
  39646. vector unsigned short vec_vsx_ld (int, const unsigned short *);
  39647. vector bool char vec_vsx_ld (int, const vector bool char *);
  39648. vector signed char vec_vsx_ld (int, const vector signed char *);
  39649. vector signed char vec_vsx_ld (int, const signed char *);
  39650. vector unsigned char vec_vsx_ld (int, const vector unsigned char *);
  39651. vector unsigned char vec_vsx_ld (int, const unsigned char *);
  39652. void vec_vsx_st (vector double, int, vector double *);
  39653. void vec_vsx_st (vector double, int, double *);
  39654. void vec_vsx_st (vector float, int, vector float *);
  39655. void vec_vsx_st (vector float, int, float *);
  39656. void vec_vsx_st (vector signed int, int, vector signed int *);
  39657. void vec_vsx_st (vector signed int, int, int *);
  39658. void vec_vsx_st (vector unsigned int, int, vector unsigned int *);
  39659. void vec_vsx_st (vector unsigned int, int, unsigned int *);
  39660. void vec_vsx_st (vector bool int, int, vector bool int *);
  39661. void vec_vsx_st (vector bool int, int, unsigned int *);
  39662. void vec_vsx_st (vector bool int, int, int *);
  39663. void vec_vsx_st (vector signed short, int, vector signed short *);
  39664. void vec_vsx_st (vector signed short, int, short *);
  39665. void vec_vsx_st (vector unsigned short, int, vector unsigned short *);
  39666. void vec_vsx_st (vector unsigned short, int, unsigned short *);
  39667. void vec_vsx_st (vector bool short, int, vector bool short *);
  39668. void vec_vsx_st (vector bool short, int, unsigned short *);
  39669. void vec_vsx_st (vector pixel, int, vector pixel *);
  39670. void vec_vsx_st (vector pixel, int, unsigned short *);
  39671. void vec_vsx_st (vector pixel, int, short *);
  39672. void vec_vsx_st (vector bool short, int, short *);
  39673. void vec_vsx_st (vector signed char, int, vector signed char *);
  39674. void vec_vsx_st (vector signed char, int, signed char *);
  39675. void vec_vsx_st (vector unsigned char, int, vector unsigned char *);
  39676. void vec_vsx_st (vector unsigned char, int, unsigned char *);
  39677. void vec_vsx_st (vector bool char, int, vector bool char *);
  39678. void vec_vsx_st (vector bool char, int, unsigned char *);
  39679. void vec_vsx_st (vector bool char, int, signed char *);
  39680. vector double vec_xxpermdi (vector double, vector double, const int);
  39681. vector float vec_xxpermdi (vector float, vector float, const int);
  39682. vector long long vec_xxpermdi (vector long long, vector long long, const int);
  39683. vector unsigned long long vec_xxpermdi (vector unsigned long long,
  39684. vector unsigned long long, const int);
  39685. vector int vec_xxpermdi (vector int, vector int, const int);
  39686. vector unsigned int vec_xxpermdi (vector unsigned int,
  39687. vector unsigned int, const int);
  39688. vector short vec_xxpermdi (vector short, vector short, const int);
  39689. vector unsigned short vec_xxpermdi (vector unsigned short,
  39690. vector unsigned short, const int);
  39691. vector signed char vec_xxpermdi (vector signed char, vector signed char,
  39692. const int);
  39693. vector unsigned char vec_xxpermdi (vector unsigned char,
  39694. vector unsigned char, const int);
  39695. vector double vec_xxsldi (vector double, vector double, int);
  39696. vector float vec_xxsldi (vector float, vector float, int);
  39697. vector long long vec_xxsldi (vector long long, vector long long, int);
  39698. vector unsigned long long vec_xxsldi (vector unsigned long long,
  39699. vector unsigned long long, int);
  39700. vector int vec_xxsldi (vector int, vector int, int);
  39701. vector unsigned int vec_xxsldi (vector unsigned int, vector unsigned int, int);
  39702. vector short vec_xxsldi (vector short, vector short, int);
  39703. vector unsigned short vec_xxsldi (vector unsigned short,
  39704. vector unsigned short, int);
  39705. vector signed char vec_xxsldi (vector signed char, vector signed char, int);
  39706. vector unsigned char vec_xxsldi (vector unsigned char,
  39707. vector unsigned char, int);
  39708. Note that the 'vec_ld' and 'vec_st' built-in functions always generate
  39709. the AltiVec 'LVX' and 'STVX' instructions even if the VSX instruction
  39710. set is available. The 'vec_vsx_ld' and 'vec_vsx_st' built-in functions
  39711. always generate the VSX 'LXVD2X', 'LXVW4X', 'STXVD2X', and 'STXVW4X'
  39712. instructions.
  39713. 
  39714. File: gcc.info, Node: PowerPC AltiVec Built-in Functions Available on ISA 2.07, Next: PowerPC AltiVec Built-in Functions Available on ISA 3.0, Prev: PowerPC AltiVec Built-in Functions Available on ISA 2.06, Up: PowerPC AltiVec/VSX Built-in Functions
  39715. 6.60.23.3 PowerPC AltiVec Built-in Functions Available on ISA 2.07
  39716. ..................................................................
  39717. If the ISA 2.07 additions to the vector/scalar (power8-vector)
  39718. instruction set are available, the following additional functions are
  39719. available for both 32-bit and 64-bit targets. For 64-bit targets, you
  39720. can use VECTOR LONG instead of VECTOR LONG LONG, VECTOR BOOL LONG
  39721. instead of VECTOR BOOL LONG LONG, and VECTOR UNSIGNED LONG instead of
  39722. VECTOR UNSIGNED LONG LONG.
  39723. vector signed char vec_neg (vector signed char);
  39724. vector signed short vec_neg (vector signed short);
  39725. vector signed int vec_neg (vector signed int);
  39726. vector signed long long vec_neg (vector signed long long);
  39727. vector float char vec_neg (vector float);
  39728. vector double vec_neg (vector double);
  39729. vector signed int vec_signed2 (vector double, vector double);
  39730. vector signed int vec_unsigned2 (vector double, vector double);
  39731. vector long long vec_abs (vector long long);
  39732. vector long long vec_add (vector long long, vector long long);
  39733. vector unsigned long long vec_add (vector unsigned long long,
  39734. vector unsigned long long);
  39735. int vec_all_eq (vector long long, vector long long);
  39736. int vec_all_eq (vector unsigned long long, vector unsigned long long);
  39737. int vec_all_ge (vector long long, vector long long);
  39738. int vec_all_ge (vector unsigned long long, vector unsigned long long);
  39739. int vec_all_gt (vector long long, vector long long);
  39740. int vec_all_gt (vector unsigned long long, vector unsigned long long);
  39741. int vec_all_le (vector long long, vector long long);
  39742. int vec_all_le (vector unsigned long long, vector unsigned long long);
  39743. int vec_all_lt (vector long long, vector long long);
  39744. int vec_all_lt (vector unsigned long long, vector unsigned long long);
  39745. int vec_all_ne (vector long long, vector long long);
  39746. int vec_all_ne (vector unsigned long long, vector unsigned long long);
  39747. int vec_any_eq (vector long long, vector long long);
  39748. int vec_any_eq (vector unsigned long long, vector unsigned long long);
  39749. int vec_any_ge (vector long long, vector long long);
  39750. int vec_any_ge (vector unsigned long long, vector unsigned long long);
  39751. int vec_any_gt (vector long long, vector long long);
  39752. int vec_any_gt (vector unsigned long long, vector unsigned long long);
  39753. int vec_any_le (vector long long, vector long long);
  39754. int vec_any_le (vector unsigned long long, vector unsigned long long);
  39755. int vec_any_lt (vector long long, vector long long);
  39756. int vec_any_lt (vector unsigned long long, vector unsigned long long);
  39757. int vec_any_ne (vector long long, vector long long);
  39758. int vec_any_ne (vector unsigned long long, vector unsigned long long);
  39759. vector bool long long vec_cmpeq (vector bool long long, vector bool long long);
  39760. vector long long vec_eqv (vector long long, vector long long);
  39761. vector long long vec_eqv (vector bool long long, vector long long);
  39762. vector long long vec_eqv (vector long long, vector bool long long);
  39763. vector unsigned long long vec_eqv (vector unsigned long long, vector unsigned long long);
  39764. vector unsigned long long vec_eqv (vector bool long long, vector unsigned long long);
  39765. vector unsigned long long vec_eqv (vector unsigned long long,
  39766. vector bool long long);
  39767. vector int vec_eqv (vector int, vector int);
  39768. vector int vec_eqv (vector bool int, vector int);
  39769. vector int vec_eqv (vector int, vector bool int);
  39770. vector unsigned int vec_eqv (vector unsigned int, vector unsigned int);
  39771. vector unsigned int vec_eqv (vector bool unsigned int, vector unsigned int);
  39772. vector unsigned int vec_eqv (vector unsigned int, vector bool unsigned int);
  39773. vector short vec_eqv (vector short, vector short);
  39774. vector short vec_eqv (vector bool short, vector short);
  39775. vector short vec_eqv (vector short, vector bool short);
  39776. vector unsigned short vec_eqv (vector unsigned short, vector unsigned short);
  39777. vector unsigned short vec_eqv (vector bool unsigned short, vector unsigned short);
  39778. vector unsigned short vec_eqv (vector unsigned short, vector bool unsigned short);
  39779. vector signed char vec_eqv (vector signed char, vector signed char);
  39780. vector signed char vec_eqv (vector bool signed char, vector signed char);
  39781. vector signed char vec_eqv (vector signed char, vector bool signed char);
  39782. vector unsigned char vec_eqv (vector unsigned char, vector unsigned char);
  39783. vector unsigned char vec_eqv (vector bool unsigned char, vector unsigned char);
  39784. vector unsigned char vec_eqv (vector unsigned char, vector bool unsigned char);
  39785. vector long long vec_max (vector long long, vector long long);
  39786. vector unsigned long long vec_max (vector unsigned long long,
  39787. vector unsigned long long);
  39788. vector signed int vec_mergee (vector signed int, vector signed int);
  39789. vector unsigned int vec_mergee (vector unsigned int, vector unsigned int);
  39790. vector bool int vec_mergee (vector bool int, vector bool int);
  39791. vector signed int vec_mergeo (vector signed int, vector signed int);
  39792. vector unsigned int vec_mergeo (vector unsigned int, vector unsigned int);
  39793. vector bool int vec_mergeo (vector bool int, vector bool int);
  39794. vector long long vec_min (vector long long, vector long long);
  39795. vector unsigned long long vec_min (vector unsigned long long,
  39796. vector unsigned long long);
  39797. vector signed long long vec_nabs (vector signed long long);
  39798. vector long long vec_nand (vector long long, vector long long);
  39799. vector long long vec_nand (vector bool long long, vector long long);
  39800. vector long long vec_nand (vector long long, vector bool long long);
  39801. vector unsigned long long vec_nand (vector unsigned long long,
  39802. vector unsigned long long);
  39803. vector unsigned long long vec_nand (vector bool long long, vector unsigned long long);
  39804. vector unsigned long long vec_nand (vector unsigned long long, vector bool long long);
  39805. vector int vec_nand (vector int, vector int);
  39806. vector int vec_nand (vector bool int, vector int);
  39807. vector int vec_nand (vector int, vector bool int);
  39808. vector unsigned int vec_nand (vector unsigned int, vector unsigned int);
  39809. vector unsigned int vec_nand (vector bool unsigned int, vector unsigned int);
  39810. vector unsigned int vec_nand (vector unsigned int, vector bool unsigned int);
  39811. vector short vec_nand (vector short, vector short);
  39812. vector short vec_nand (vector bool short, vector short);
  39813. vector short vec_nand (vector short, vector bool short);
  39814. vector unsigned short vec_nand (vector unsigned short, vector unsigned short);
  39815. vector unsigned short vec_nand (vector bool unsigned short, vector unsigned short);
  39816. vector unsigned short vec_nand (vector unsigned short, vector bool unsigned short);
  39817. vector signed char vec_nand (vector signed char, vector signed char);
  39818. vector signed char vec_nand (vector bool signed char, vector signed char);
  39819. vector signed char vec_nand (vector signed char, vector bool signed char);
  39820. vector unsigned char vec_nand (vector unsigned char, vector unsigned char);
  39821. vector unsigned char vec_nand (vector bool unsigned char, vector unsigned char);
  39822. vector unsigned char vec_nand (vector unsigned char, vector bool unsigned char);
  39823. vector long long vec_orc (vector long long, vector long long);
  39824. vector long long vec_orc (vector bool long long, vector long long);
  39825. vector long long vec_orc (vector long long, vector bool long long);
  39826. vector unsigned long long vec_orc (vector unsigned long long,
  39827. vector unsigned long long);
  39828. vector unsigned long long vec_orc (vector bool long long, vector unsigned long long);
  39829. vector unsigned long long vec_orc (vector unsigned long long, vector bool long long);
  39830. vector int vec_orc (vector int, vector int);
  39831. vector int vec_orc (vector bool int, vector int);
  39832. vector int vec_orc (vector int, vector bool int);
  39833. vector unsigned int vec_orc (vector unsigned int, vector unsigned int);
  39834. vector unsigned int vec_orc (vector bool unsigned int, vector unsigned int);
  39835. vector unsigned int vec_orc (vector unsigned int, vector bool unsigned int);
  39836. vector short vec_orc (vector short, vector short);
  39837. vector short vec_orc (vector bool short, vector short);
  39838. vector short vec_orc (vector short, vector bool short);
  39839. vector unsigned short vec_orc (vector unsigned short, vector unsigned short);
  39840. vector unsigned short vec_orc (vector bool unsigned short, vector unsigned short);
  39841. vector unsigned short vec_orc (vector unsigned short, vector bool unsigned short);
  39842. vector signed char vec_orc (vector signed char, vector signed char);
  39843. vector signed char vec_orc (vector bool signed char, vector signed char);
  39844. vector signed char vec_orc (vector signed char, vector bool signed char);
  39845. vector unsigned char vec_orc (vector unsigned char, vector unsigned char);
  39846. vector unsigned char vec_orc (vector bool unsigned char, vector unsigned char);
  39847. vector unsigned char vec_orc (vector unsigned char, vector bool unsigned char);
  39848. vector int vec_pack (vector long long, vector long long);
  39849. vector unsigned int vec_pack (vector unsigned long long, vector unsigned long long);
  39850. vector bool int vec_pack (vector bool long long, vector bool long long);
  39851. vector float vec_pack (vector double, vector double);
  39852. vector int vec_packs (vector long long, vector long long);
  39853. vector unsigned int vec_packs (vector unsigned long long, vector unsigned long long);
  39854. vector unsigned char vec_packsu (vector signed short, vector signed short)
  39855. vector unsigned char vec_packsu (vector unsigned short, vector unsigned short)
  39856. vector unsigned short int vec_packsu (vector signed int, vector signed int);
  39857. vector unsigned short int vec_packsu (vector unsigned int, vector unsigned int);
  39858. vector unsigned int vec_packsu (vector long long, vector long long);
  39859. vector unsigned int vec_packsu (vector unsigned long long, vector unsigned long long);
  39860. vector unsigned int vec_packsu (vector signed long long, vector signed long long);
  39861. vector unsigned char vec_popcnt (vector signed char);
  39862. vector unsigned char vec_popcnt (vector unsigned char);
  39863. vector unsigned short vec_popcnt (vector signed short);
  39864. vector unsigned short vec_popcnt (vector unsigned short);
  39865. vector unsigned int vec_popcnt (vector signed int);
  39866. vector unsigned int vec_popcnt (vector unsigned int);
  39867. vector unsigned long long vec_popcnt (vector signed long long);
  39868. vector unsigned long long vec_popcnt (vector unsigned long long);
  39869. vector long long vec_rl (vector long long, vector unsigned long long);
  39870. vector long long vec_rl (vector unsigned long long, vector unsigned long long);
  39871. vector long long vec_sl (vector long long, vector unsigned long long);
  39872. vector long long vec_sl (vector unsigned long long, vector unsigned long long);
  39873. vector long long vec_sr (vector long long, vector unsigned long long);
  39874. vector unsigned long long char vec_sr (vector unsigned long long,
  39875. vector unsigned long long);
  39876. vector long long vec_sra (vector long long, vector unsigned long long);
  39877. vector unsigned long long vec_sra (vector unsigned long long,
  39878. vector unsigned long long);
  39879. vector long long vec_sub (vector long long, vector long long);
  39880. vector unsigned long long vec_sub (vector unsigned long long,
  39881. vector unsigned long long);
  39882. vector long long vec_unpackh (vector int);
  39883. vector unsigned long long vec_unpackh (vector unsigned int);
  39884. vector long long vec_unpackl (vector int);
  39885. vector unsigned long long vec_unpackl (vector unsigned int);
  39886. vector long long vec_vaddudm (vector long long, vector long long);
  39887. vector long long vec_vaddudm (vector bool long long, vector long long);
  39888. vector long long vec_vaddudm (vector long long, vector bool long long);
  39889. vector unsigned long long vec_vaddudm (vector unsigned long long,
  39890. vector unsigned long long);
  39891. vector unsigned long long vec_vaddudm (vector bool unsigned long long,
  39892. vector unsigned long long);
  39893. vector unsigned long long vec_vaddudm (vector unsigned long long,
  39894. vector bool unsigned long long);
  39895. vector long long vec_vbpermq (vector signed char, vector signed char);
  39896. vector long long vec_vbpermq (vector unsigned char, vector unsigned char);
  39897. vector unsigned char vec_bperm (vector unsigned char, vector unsigned char);
  39898. vector unsigned char vec_bperm (vector unsigned long long, vector unsigned char);
  39899. vector unsigned long long vec_bperm (vector unsigned __int128, vector unsigned char);
  39900. vector long long vec_cntlz (vector long long);
  39901. vector unsigned long long vec_cntlz (vector unsigned long long);
  39902. vector int vec_cntlz (vector int);
  39903. vector unsigned int vec_cntlz (vector int);
  39904. vector short vec_cntlz (vector short);
  39905. vector unsigned short vec_cntlz (vector unsigned short);
  39906. vector signed char vec_cntlz (vector signed char);
  39907. vector unsigned char vec_cntlz (vector unsigned char);
  39908. vector long long vec_vclz (vector long long);
  39909. vector unsigned long long vec_vclz (vector unsigned long long);
  39910. vector int vec_vclz (vector int);
  39911. vector unsigned int vec_vclz (vector int);
  39912. vector short vec_vclz (vector short);
  39913. vector unsigned short vec_vclz (vector unsigned short);
  39914. vector signed char vec_vclz (vector signed char);
  39915. vector unsigned char vec_vclz (vector unsigned char);
  39916. vector signed char vec_vclzb (vector signed char);
  39917. vector unsigned char vec_vclzb (vector unsigned char);
  39918. vector long long vec_vclzd (vector long long);
  39919. vector unsigned long long vec_vclzd (vector unsigned long long);
  39920. vector short vec_vclzh (vector short);
  39921. vector unsigned short vec_vclzh (vector unsigned short);
  39922. vector int vec_vclzw (vector int);
  39923. vector unsigned int vec_vclzw (vector int);
  39924. vector signed char vec_vgbbd (vector signed char);
  39925. vector unsigned char vec_vgbbd (vector unsigned char);
  39926. vector long long vec_vmaxsd (vector long long, vector long long);
  39927. vector unsigned long long vec_vmaxud (vector unsigned long long,
  39928. unsigned vector long long);
  39929. vector long long vec_vminsd (vector long long, vector long long);
  39930. vector unsigned long long vec_vminud (vector long long, vector long long);
  39931. vector int vec_vpksdss (vector long long, vector long long);
  39932. vector unsigned int vec_vpksdss (vector long long, vector long long);
  39933. vector unsigned int vec_vpkudus (vector unsigned long long,
  39934. vector unsigned long long);
  39935. vector int vec_vpkudum (vector long long, vector long long);
  39936. vector unsigned int vec_vpkudum (vector unsigned long long,
  39937. vector unsigned long long);
  39938. vector bool int vec_vpkudum (vector bool long long, vector bool long long);
  39939. vector long long vec_vpopcnt (vector long long);
  39940. vector unsigned long long vec_vpopcnt (vector unsigned long long);
  39941. vector int vec_vpopcnt (vector int);
  39942. vector unsigned int vec_vpopcnt (vector int);
  39943. vector short vec_vpopcnt (vector short);
  39944. vector unsigned short vec_vpopcnt (vector unsigned short);
  39945. vector signed char vec_vpopcnt (vector signed char);
  39946. vector unsigned char vec_vpopcnt (vector unsigned char);
  39947. vector signed char vec_vpopcntb (vector signed char);
  39948. vector unsigned char vec_vpopcntb (vector unsigned char);
  39949. vector long long vec_vpopcntd (vector long long);
  39950. vector unsigned long long vec_vpopcntd (vector unsigned long long);
  39951. vector short vec_vpopcnth (vector short);
  39952. vector unsigned short vec_vpopcnth (vector unsigned short);
  39953. vector int vec_vpopcntw (vector int);
  39954. vector unsigned int vec_vpopcntw (vector int);
  39955. vector long long vec_vrld (vector long long, vector unsigned long long);
  39956. vector unsigned long long vec_vrld (vector unsigned long long,
  39957. vector unsigned long long);
  39958. vector long long vec_vsld (vector long long, vector unsigned long long);
  39959. vector long long vec_vsld (vector unsigned long long,
  39960. vector unsigned long long);
  39961. vector long long vec_vsrad (vector long long, vector unsigned long long);
  39962. vector unsigned long long vec_vsrad (vector unsigned long long,
  39963. vector unsigned long long);
  39964. vector long long vec_vsrd (vector long long, vector unsigned long long);
  39965. vector unsigned long long char vec_vsrd (vector unsigned long long,
  39966. vector unsigned long long);
  39967. vector long long vec_vsubudm (vector long long, vector long long);
  39968. vector long long vec_vsubudm (vector bool long long, vector long long);
  39969. vector long long vec_vsubudm (vector long long, vector bool long long);
  39970. vector unsigned long long vec_vsubudm (vector unsigned long long,
  39971. vector unsigned long long);
  39972. vector unsigned long long vec_vsubudm (vector bool long long,
  39973. vector unsigned long long);
  39974. vector unsigned long long vec_vsubudm (vector unsigned long long,
  39975. vector bool long long);
  39976. vector long long vec_vupkhsw (vector int);
  39977. vector unsigned long long vec_vupkhsw (vector unsigned int);
  39978. vector long long vec_vupklsw (vector int);
  39979. vector unsigned long long vec_vupklsw (vector int);
  39980. If the ISA 2.07 additions to the vector/scalar (power8-vector)
  39981. instruction set are available, the following additional functions are
  39982. available for 64-bit targets. New vector types (VECTOR __INT128 and
  39983. VECTOR __UINT128) are available to hold the __INT128 and __UINT128 types
  39984. to use these builtins.
  39985. The normal vector extract, and set operations work on VECTOR __INT128
  39986. and VECTOR __UINT128 types, but the index value must be 0.
  39987. vector __int128 vec_vaddcuq (vector __int128, vector __int128);
  39988. vector __uint128 vec_vaddcuq (vector __uint128, vector __uint128);
  39989. vector __int128 vec_vadduqm (vector __int128, vector __int128);
  39990. vector __uint128 vec_vadduqm (vector __uint128, vector __uint128);
  39991. vector __int128 vec_vaddecuq (vector __int128, vector __int128,
  39992. vector __int128);
  39993. vector __uint128 vec_vaddecuq (vector __uint128, vector __uint128,
  39994. vector __uint128);
  39995. vector __int128 vec_vaddeuqm (vector __int128, vector __int128,
  39996. vector __int128);
  39997. vector __uint128 vec_vaddeuqm (vector __uint128, vector __uint128,
  39998. vector __uint128);
  39999. vector __int128 vec_vsubecuq (vector __int128, vector __int128,
  40000. vector __int128);
  40001. vector __uint128 vec_vsubecuq (vector __uint128, vector __uint128,
  40002. vector __uint128);
  40003. vector __int128 vec_vsubeuqm (vector __int128, vector __int128,
  40004. vector __int128);
  40005. vector __uint128 vec_vsubeuqm (vector __uint128, vector __uint128,
  40006. vector __uint128);
  40007. vector __int128 vec_vsubcuq (vector __int128, vector __int128);
  40008. vector __uint128 vec_vsubcuq (vector __uint128, vector __uint128);
  40009. __int128 vec_vsubuqm (__int128, __int128);
  40010. __uint128 vec_vsubuqm (__uint128, __uint128);
  40011. vector __int128 __builtin_bcdadd (vector __int128, vector __int128, const int);
  40012. int __builtin_bcdadd_lt (vector __int128, vector __int128, const int);
  40013. int __builtin_bcdadd_eq (vector __int128, vector __int128, const int);
  40014. int __builtin_bcdadd_gt (vector __int128, vector __int128, const int);
  40015. int __builtin_bcdadd_ov (vector __int128, vector __int128, const int);
  40016. vector __int128 __builtin_bcdsub (vector __int128, vector __int128, const int);
  40017. int __builtin_bcdsub_lt (vector __int128, vector __int128, const int);
  40018. int __builtin_bcdsub_eq (vector __int128, vector __int128, const int);
  40019. int __builtin_bcdsub_gt (vector __int128, vector __int128, const int);
  40020. int __builtin_bcdsub_ov (vector __int128, vector __int128, const int);
  40021. 
  40022. File: gcc.info, Node: PowerPC AltiVec Built-in Functions Available on ISA 3.0, Prev: PowerPC AltiVec Built-in Functions Available on ISA 2.07, Up: PowerPC AltiVec/VSX Built-in Functions
  40023. 6.60.23.4 PowerPC AltiVec Built-in Functions Available on ISA 3.0
  40024. .................................................................
  40025. The following additional built-in functions are also available for the
  40026. PowerPC family of processors, starting with ISA 3.0 ('-mcpu=power9') or
  40027. later:
  40028. unsigned int scalar_extract_exp (double source);
  40029. unsigned long long int scalar_extract_exp (__ieee128 source);
  40030. unsigned long long int scalar_extract_sig (double source);
  40031. unsigned __int128 scalar_extract_sig (__ieee128 source);
  40032. double scalar_insert_exp (unsigned long long int significand,
  40033. unsigned long long int exponent);
  40034. double scalar_insert_exp (double significand, unsigned long long int exponent);
  40035. ieee_128 scalar_insert_exp (unsigned __int128 significand,
  40036. unsigned long long int exponent);
  40037. ieee_128 scalar_insert_exp (ieee_128 significand, unsigned long long int exponent);
  40038. int scalar_cmp_exp_gt (double arg1, double arg2);
  40039. int scalar_cmp_exp_lt (double arg1, double arg2);
  40040. int scalar_cmp_exp_eq (double arg1, double arg2);
  40041. int scalar_cmp_exp_unordered (double arg1, double arg2);
  40042. bool scalar_test_data_class (float source, const int condition);
  40043. bool scalar_test_data_class (double source, const int condition);
  40044. bool scalar_test_data_class (__ieee128 source, const int condition);
  40045. bool scalar_test_neg (float source);
  40046. bool scalar_test_neg (double source);
  40047. bool scalar_test_neg (__ieee128 source);
  40048. vector _uint128_t vec_msum (vector unsigned long long,
  40049. vector unsigned long long,
  40050. vector _uint128_t);
  40051. vector _int128_t vec_msum (vector signed long long,
  40052. vector signed long long,
  40053. vector _int128_t);
  40054. The 'scalar_extract_exp' and 'scalar_extract_sig' functions require a
  40055. 64-bit environment supporting ISA 3.0 or later. The
  40056. 'scalar_extract_exp' and 'scalar_extract_sig' built-in functions return
  40057. the significand and the biased exponent value respectively of their
  40058. 'source' arguments. When supplied with a 64-bit 'source' argument, the
  40059. result returned by 'scalar_extract_sig' has the '0x0010000000000000' bit
  40060. set if the function's 'source' argument is in normalized form.
  40061. Otherwise, this bit is set to 0. When supplied with a 128-bit 'source'
  40062. argument, the '0x00010000000000000000000000000000' bit of the result is
  40063. treated similarly. Note that the sign of the significand is not
  40064. represented in the result returned from the 'scalar_extract_sig'
  40065. function. Use the 'scalar_test_neg' function to test the sign of its
  40066. 'double' argument. The 'vec_msum' functions perform a vector
  40067. multiply-sum, returning the result of arg1*arg2+arg3. ISA 3.0 adds
  40068. support for vec_msum returning a vector int128 result.
  40069. The 'scalar_insert_exp' functions require a 64-bit environment
  40070. supporting ISA 3.0 or later. When supplied with a 64-bit first
  40071. argument, the 'scalar_insert_exp' built-in function returns a
  40072. double-precision floating point value that is constructed by assembling
  40073. the values of its 'significand' and 'exponent' arguments. The sign of
  40074. the result is copied from the most significant bit of the 'significand'
  40075. argument. The significand and exponent components of the result are
  40076. composed of the least significant 11 bits of the 'exponent' argument and
  40077. the least significant 52 bits of the 'significand' argument
  40078. respectively.
  40079. When supplied with a 128-bit first argument, the 'scalar_insert_exp'
  40080. built-in function returns a quad-precision ieee floating point value.
  40081. The sign bit of the result is copied from the most significant bit of
  40082. the 'significand' argument. The significand and exponent components of
  40083. the result are composed of the least significant 15 bits of the
  40084. 'exponent' argument and the least significant 112 bits of the
  40085. 'significand' argument respectively.
  40086. The 'scalar_cmp_exp_gt', 'scalar_cmp_exp_lt', 'scalar_cmp_exp_eq', and
  40087. 'scalar_cmp_exp_unordered' built-in functions return a non-zero value if
  40088. 'arg1' is greater than, less than, equal to, or not comparable to 'arg2'
  40089. respectively. The arguments are not comparable if one or the other
  40090. equals NaN (not a number).
  40091. The 'scalar_test_data_class' built-in function returns 1 if any of the
  40092. condition tests enabled by the value of the 'condition' variable are
  40093. true, and 0 otherwise. The 'condition' argument must be a compile-time
  40094. constant integer with value not exceeding 127. The 'condition' argument
  40095. is encoded as a bitmask with each bit enabling the testing of a
  40096. different condition, as characterized by the following:
  40097. 0x40 Test for NaN
  40098. 0x20 Test for +Infinity
  40099. 0x10 Test for -Infinity
  40100. 0x08 Test for +Zero
  40101. 0x04 Test for -Zero
  40102. 0x02 Test for +Denormal
  40103. 0x01 Test for -Denormal
  40104. The 'scalar_test_neg' built-in function returns 1 if its 'source'
  40105. argument holds a negative value, 0 otherwise.
  40106. The following built-in functions are also available for the PowerPC
  40107. family of processors, starting with ISA 3.0 or later ('-mcpu=power9').
  40108. These string functions are described separately in order to group the
  40109. descriptions closer to the function prototypes:
  40110. int vec_all_nez (vector signed char, vector signed char);
  40111. int vec_all_nez (vector unsigned char, vector unsigned char);
  40112. int vec_all_nez (vector signed short, vector signed short);
  40113. int vec_all_nez (vector unsigned short, vector unsigned short);
  40114. int vec_all_nez (vector signed int, vector signed int);
  40115. int vec_all_nez (vector unsigned int, vector unsigned int);
  40116. int vec_any_eqz (vector signed char, vector signed char);
  40117. int vec_any_eqz (vector unsigned char, vector unsigned char);
  40118. int vec_any_eqz (vector signed short, vector signed short);
  40119. int vec_any_eqz (vector unsigned short, vector unsigned short);
  40120. int vec_any_eqz (vector signed int, vector signed int);
  40121. int vec_any_eqz (vector unsigned int, vector unsigned int);
  40122. vector bool char vec_cmpnez (vector signed char arg1, vector signed char arg2);
  40123. vector bool char vec_cmpnez (vector unsigned char arg1, vector unsigned char arg2);
  40124. vector bool short vec_cmpnez (vector signed short arg1, vector signed short arg2);
  40125. vector bool short vec_cmpnez (vector unsigned short arg1, vector unsigned short arg2);
  40126. vector bool int vec_cmpnez (vector signed int arg1, vector signed int arg2);
  40127. vector bool int vec_cmpnez (vector unsigned int, vector unsigned int);
  40128. vector signed char vec_cnttz (vector signed char);
  40129. vector unsigned char vec_cnttz (vector unsigned char);
  40130. vector signed short vec_cnttz (vector signed short);
  40131. vector unsigned short vec_cnttz (vector unsigned short);
  40132. vector signed int vec_cnttz (vector signed int);
  40133. vector unsigned int vec_cnttz (vector unsigned int);
  40134. vector signed long long vec_cnttz (vector signed long long);
  40135. vector unsigned long long vec_cnttz (vector unsigned long long);
  40136. signed int vec_cntlz_lsbb (vector signed char);
  40137. signed int vec_cntlz_lsbb (vector unsigned char);
  40138. signed int vec_cnttz_lsbb (vector signed char);
  40139. signed int vec_cnttz_lsbb (vector unsigned char);
  40140. unsigned int vec_first_match_index (vector signed char, vector signed char);
  40141. unsigned int vec_first_match_index (vector unsigned char, vector unsigned char);
  40142. unsigned int vec_first_match_index (vector signed int, vector signed int);
  40143. unsigned int vec_first_match_index (vector unsigned int, vector unsigned int);
  40144. unsigned int vec_first_match_index (vector signed short, vector signed short);
  40145. unsigned int vec_first_match_index (vector unsigned short, vector unsigned short);
  40146. unsigned int vec_first_match_or_eos_index (vector signed char, vector signed char);
  40147. unsigned int vec_first_match_or_eos_index (vector unsigned char, vector unsigned char);
  40148. unsigned int vec_first_match_or_eos_index (vector signed int, vector signed int);
  40149. unsigned int vec_first_match_or_eos_index (vector unsigned int, vector unsigned int);
  40150. unsigned int vec_first_match_or_eos_index (vector signed short, vector signed short);
  40151. unsigned int vec_first_match_or_eos_index (vector unsigned short,
  40152. vector unsigned short);
  40153. unsigned int vec_first_mismatch_index (vector signed char, vector signed char);
  40154. unsigned int vec_first_mismatch_index (vector unsigned char, vector unsigned char);
  40155. unsigned int vec_first_mismatch_index (vector signed int, vector signed int);
  40156. unsigned int vec_first_mismatch_index (vector unsigned int, vector unsigned int);
  40157. unsigned int vec_first_mismatch_index (vector signed short, vector signed short);
  40158. unsigned int vec_first_mismatch_index (vector unsigned short, vector unsigned short);
  40159. unsigned int vec_first_mismatch_or_eos_index (vector signed char, vector signed char);
  40160. unsigned int vec_first_mismatch_or_eos_index (vector unsigned char,
  40161. vector unsigned char);
  40162. unsigned int vec_first_mismatch_or_eos_index (vector signed int, vector signed int);
  40163. unsigned int vec_first_mismatch_or_eos_index (vector unsigned int, vector unsigned int);
  40164. unsigned int vec_first_mismatch_or_eos_index (vector signed short, vector signed short);
  40165. unsigned int vec_first_mismatch_or_eos_index (vector unsigned short,
  40166. vector unsigned short);
  40167. vector unsigned short vec_pack_to_short_fp32 (vector float, vector float);
  40168. vector signed char vec_xl_be (signed long long, signed char *);
  40169. vector unsigned char vec_xl_be (signed long long, unsigned char *);
  40170. vector signed int vec_xl_be (signed long long, signed int *);
  40171. vector unsigned int vec_xl_be (signed long long, unsigned int *);
  40172. vector signed __int128 vec_xl_be (signed long long, signed __int128 *);
  40173. vector unsigned __int128 vec_xl_be (signed long long, unsigned __int128 *);
  40174. vector signed long long vec_xl_be (signed long long, signed long long *);
  40175. vector unsigned long long vec_xl_be (signed long long, unsigned long long *);
  40176. vector signed short vec_xl_be (signed long long, signed short *);
  40177. vector unsigned short vec_xl_be (signed long long, unsigned short *);
  40178. vector double vec_xl_be (signed long long, double *);
  40179. vector float vec_xl_be (signed long long, float *);
  40180. vector signed char vec_xl_len (signed char *addr, size_t len);
  40181. vector unsigned char vec_xl_len (unsigned char *addr, size_t len);
  40182. vector signed int vec_xl_len (signed int *addr, size_t len);
  40183. vector unsigned int vec_xl_len (unsigned int *addr, size_t len);
  40184. vector signed __int128 vec_xl_len (signed __int128 *addr, size_t len);
  40185. vector unsigned __int128 vec_xl_len (unsigned __int128 *addr, size_t len);
  40186. vector signed long long vec_xl_len (signed long long *addr, size_t len);
  40187. vector unsigned long long vec_xl_len (unsigned long long *addr, size_t len);
  40188. vector signed short vec_xl_len (signed short *addr, size_t len);
  40189. vector unsigned short vec_xl_len (unsigned short *addr, size_t len);
  40190. vector double vec_xl_len (double *addr, size_t len);
  40191. vector float vec_xl_len (float *addr, size_t len);
  40192. vector unsigned char vec_xl_len_r (unsigned char *addr, size_t len);
  40193. void vec_xst_len (vector signed char data, signed char *addr, size_t len);
  40194. void vec_xst_len (vector unsigned char data, unsigned char *addr, size_t len);
  40195. void vec_xst_len (vector signed int data, signed int *addr, size_t len);
  40196. void vec_xst_len (vector unsigned int data, unsigned int *addr, size_t len);
  40197. void vec_xst_len (vector unsigned __int128 data, unsigned __int128 *addr, size_t len);
  40198. void vec_xst_len (vector signed long long data, signed long long *addr, size_t len);
  40199. void vec_xst_len (vector unsigned long long data, unsigned long long *addr, size_t len);
  40200. void vec_xst_len (vector signed short data, signed short *addr, size_t len);
  40201. void vec_xst_len (vector unsigned short data, unsigned short *addr, size_t len);
  40202. void vec_xst_len (vector signed __int128 data, signed __int128 *addr, size_t len);
  40203. void vec_xst_len (vector double data, double *addr, size_t len);
  40204. void vec_xst_len (vector float data, float *addr, size_t len);
  40205. void vec_xst_len_r (vector unsigned char data, unsigned char *addr, size_t len);
  40206. signed char vec_xlx (unsigned int index, vector signed char data);
  40207. unsigned char vec_xlx (unsigned int index, vector unsigned char data);
  40208. signed short vec_xlx (unsigned int index, vector signed short data);
  40209. unsigned short vec_xlx (unsigned int index, vector unsigned short data);
  40210. signed int vec_xlx (unsigned int index, vector signed int data);
  40211. unsigned int vec_xlx (unsigned int index, vector unsigned int data);
  40212. float vec_xlx (unsigned int index, vector float data);
  40213. signed char vec_xrx (unsigned int index, vector signed char data);
  40214. unsigned char vec_xrx (unsigned int index, vector unsigned char data);
  40215. signed short vec_xrx (unsigned int index, vector signed short data);
  40216. unsigned short vec_xrx (unsigned int index, vector unsigned short data);
  40217. signed int vec_xrx (unsigned int index, vector signed int data);
  40218. unsigned int vec_xrx (unsigned int index, vector unsigned int data);
  40219. float vec_xrx (unsigned int index, vector float data);
  40220. The 'vec_all_nez', 'vec_any_eqz', and 'vec_cmpnez' perform pairwise
  40221. comparisons between the elements at the same positions within their two
  40222. vector arguments. The 'vec_all_nez' function returns a non-zero value
  40223. if and only if all pairwise comparisons are not equal and no element of
  40224. either vector argument contains a zero. The 'vec_any_eqz' function
  40225. returns a non-zero value if and only if at least one pairwise comparison
  40226. is equal or if at least one element of either vector argument contains a
  40227. zero. The 'vec_cmpnez' function returns a vector of the same type as
  40228. its two arguments, within which each element consists of all ones to
  40229. denote that either the corresponding elements of the incoming arguments
  40230. are not equal or that at least one of the corresponding elements
  40231. contains zero. Otherwise, the element of the returned vector contains
  40232. all zeros.
  40233. The 'vec_cntlz_lsbb' function returns the count of the number of
  40234. consecutive leading byte elements (starting from position 0 within the
  40235. supplied vector argument) for which the least-significant bit equals
  40236. zero. The 'vec_cnttz_lsbb' function returns the count of the number of
  40237. consecutive trailing byte elements (starting from position 15 and
  40238. counting backwards within the supplied vector argument) for which the
  40239. least-significant bit equals zero.
  40240. The 'vec_xl_len' and 'vec_xst_len' functions require a 64-bit
  40241. environment supporting ISA 3.0 or later. The 'vec_xl_len' function
  40242. loads a variable length vector from memory. The 'vec_xst_len' function
  40243. stores a variable length vector to memory. With both the 'vec_xl_len'
  40244. and 'vec_xst_len' functions, the 'addr' argument represents the memory
  40245. address to or from which data will be transferred, and the 'len'
  40246. argument represents the number of bytes to be transferred, as computed
  40247. by the C expression 'min((len & 0xff), 16)'. If this expression's value
  40248. is not a multiple of the vector element's size, the behavior of this
  40249. function is undefined. In the case that the underlying computer is
  40250. configured to run in big-endian mode, the data transfer moves bytes 0 to
  40251. '(len - 1)' of the corresponding vector. In little-endian mode, the
  40252. data transfer moves bytes '(16 - len)' to '15' of the corresponding
  40253. vector. For the load function, any bytes of the result vector that are
  40254. not loaded from memory are set to zero. The value of the 'addr'
  40255. argument need not be aligned on a multiple of the vector's element size.
  40256. The 'vec_xlx' and 'vec_xrx' functions extract the single element
  40257. selected by the 'index' argument from the vector represented by the
  40258. 'data' argument. The 'index' argument always specifies a byte offset,
  40259. regardless of the size of the vector element. With 'vec_xlx', 'index'
  40260. is the offset of the first byte of the element to be extracted. With
  40261. 'vec_xrx', 'index' represents the last byte of the element to be
  40262. extracted, measured from the right end of the vector. In other words,
  40263. the last byte of the element to be extracted is found at position '(15 -
  40264. index)'. There is no requirement that 'index' be a multiple of the
  40265. vector element size. However, if the size of the vector element added
  40266. to 'index' is greater than 15, the content of the returned value is
  40267. undefined.
  40268. If the ISA 3.0 instruction set additions ('-mcpu=power9') are
  40269. available:
  40270. vector unsigned long long vec_bperm (vector unsigned long long, vector unsigned char);
  40271. vector bool char vec_cmpne (vector bool char, vector bool char);
  40272. vector bool char vec_cmpne (vector signed char, vector signed char);
  40273. vector bool char vec_cmpne (vector unsigned char, vector unsigned char);
  40274. vector bool int vec_cmpne (vector bool int, vector bool int);
  40275. vector bool int vec_cmpne (vector signed int, vector signed int);
  40276. vector bool int vec_cmpne (vector unsigned int, vector unsigned int);
  40277. vector bool long long vec_cmpne (vector bool long long, vector bool long long);
  40278. vector bool long long vec_cmpne (vector signed long long, vector signed long long);
  40279. vector bool long long vec_cmpne (vector unsigned long long, vector unsigned long long);
  40280. vector bool short vec_cmpne (vector bool short, vector bool short);
  40281. vector bool short vec_cmpne (vector signed short, vector signed short);
  40282. vector bool short vec_cmpne (vector unsigned short, vector unsigned short);
  40283. vector bool long long vec_cmpne (vector double, vector double);
  40284. vector bool int vec_cmpne (vector float, vector float);
  40285. vector float vec_extract_fp32_from_shorth (vector unsigned short);
  40286. vector float vec_extract_fp32_from_shortl (vector unsigned short);
  40287. vector long long vec_vctz (vector long long);
  40288. vector unsigned long long vec_vctz (vector unsigned long long);
  40289. vector int vec_vctz (vector int);
  40290. vector unsigned int vec_vctz (vector int);
  40291. vector short vec_vctz (vector short);
  40292. vector unsigned short vec_vctz (vector unsigned short);
  40293. vector signed char vec_vctz (vector signed char);
  40294. vector unsigned char vec_vctz (vector unsigned char);
  40295. vector signed char vec_vctzb (vector signed char);
  40296. vector unsigned char vec_vctzb (vector unsigned char);
  40297. vector long long vec_vctzd (vector long long);
  40298. vector unsigned long long vec_vctzd (vector unsigned long long);
  40299. vector short vec_vctzh (vector short);
  40300. vector unsigned short vec_vctzh (vector unsigned short);
  40301. vector int vec_vctzw (vector int);
  40302. vector unsigned int vec_vctzw (vector int);
  40303. vector unsigned long long vec_extract4b (vector unsigned char, const int);
  40304. vector unsigned char vec_insert4b (vector signed int, vector unsigned char,
  40305. const int);
  40306. vector unsigned char vec_insert4b (vector unsigned int, vector unsigned char,
  40307. const int);
  40308. vector unsigned int vec_parity_lsbb (vector signed int);
  40309. vector unsigned int vec_parity_lsbb (vector unsigned int);
  40310. vector unsigned __int128 vec_parity_lsbb (vector signed __int128);
  40311. vector unsigned __int128 vec_parity_lsbb (vector unsigned __int128);
  40312. vector unsigned long long vec_parity_lsbb (vector signed long long);
  40313. vector unsigned long long vec_parity_lsbb (vector unsigned long long);
  40314. vector int vec_vprtyb (vector int);
  40315. vector unsigned int vec_vprtyb (vector unsigned int);
  40316. vector long long vec_vprtyb (vector long long);
  40317. vector unsigned long long vec_vprtyb (vector unsigned long long);
  40318. vector int vec_vprtybw (vector int);
  40319. vector unsigned int vec_vprtybw (vector unsigned int);
  40320. vector long long vec_vprtybd (vector long long);
  40321. vector unsigned long long vec_vprtybd (vector unsigned long long);
  40322. On 64-bit targets, if the ISA 3.0 additions ('-mcpu=power9') are
  40323. available:
  40324. vector long vec_vprtyb (vector long);
  40325. vector unsigned long vec_vprtyb (vector unsigned long);
  40326. vector __int128 vec_vprtyb (vector __int128);
  40327. vector __uint128 vec_vprtyb (vector __uint128);
  40328. vector long vec_vprtybd (vector long);
  40329. vector unsigned long vec_vprtybd (vector unsigned long);
  40330. vector __int128 vec_vprtybq (vector __int128);
  40331. vector __uint128 vec_vprtybd (vector __uint128);
  40332. The following built-in vector functions are available for the PowerPC
  40333. family of processors, starting with ISA 3.0 or later ('-mcpu=power9'):
  40334. __vector unsigned char
  40335. vec_slv (__vector unsigned char src, __vector unsigned char shift_distance);
  40336. __vector unsigned char
  40337. vec_srv (__vector unsigned char src, __vector unsigned char shift_distance);
  40338. The 'vec_slv' and 'vec_srv' functions operate on all of the bytes of
  40339. their 'src' and 'shift_distance' arguments in parallel. The behavior of
  40340. the 'vec_slv' is as if there existed a temporary array of 17 unsigned
  40341. characters 'slv_array' within which elements 0 through 15 are the same
  40342. as the entries in the 'src' array and element 16 equals 0. The result
  40343. returned from the 'vec_slv' function is a '__vector' of 16 unsigned
  40344. characters within which element 'i' is computed using the C expression
  40345. '0xff & (*((unsigned short *)(slv_array + i)) << (0x07 &
  40346. shift_distance[i]))', with this resulting value coerced to the 'unsigned
  40347. char' type. The behavior of the 'vec_srv' is as if there existed a
  40348. temporary array of 17 unsigned characters 'srv_array' within which
  40349. element 0 equals zero and elements 1 through 16 equal the elements 0
  40350. through 15 of the 'src' array. The result returned from the 'vec_srv'
  40351. function is a '__vector' of 16 unsigned characters within which element
  40352. 'i' is computed using the C expression '0xff & (*((unsigned short
  40353. *)(srv_array + i)) >> (0x07 & shift_distance[i]))', with this resulting
  40354. value coerced to the 'unsigned char' type.
  40355. The following built-in functions are available for the PowerPC family
  40356. of processors, starting with ISA 3.0 or later ('-mcpu=power9'):
  40357. __vector unsigned char
  40358. vec_absd (__vector unsigned char arg1, __vector unsigned char arg2);
  40359. __vector unsigned short
  40360. vec_absd (__vector unsigned short arg1, __vector unsigned short arg2);
  40361. __vector unsigned int
  40362. vec_absd (__vector unsigned int arg1, __vector unsigned int arg2);
  40363. __vector unsigned char
  40364. vec_absdb (__vector unsigned char arg1, __vector unsigned char arg2);
  40365. __vector unsigned short
  40366. vec_absdh (__vector unsigned short arg1, __vector unsigned short arg2);
  40367. __vector unsigned int
  40368. vec_absdw (__vector unsigned int arg1, __vector unsigned int arg2);
  40369. The 'vec_absd', 'vec_absdb', 'vec_absdh', and 'vec_absdw' built-in
  40370. functions each computes the absolute differences of the pairs of vector
  40371. elements supplied in its two vector arguments, placing the absolute
  40372. differences into the corresponding elements of the vector result.
  40373. The following built-in functions are available for the PowerPC family
  40374. of processors, starting with ISA 3.0 or later ('-mcpu=power9'):
  40375. __vector unsigned int vec_extract_exp (__vector float source);
  40376. __vector unsigned long long int vec_extract_exp (__vector double source);
  40377. __vector unsigned int vec_extract_sig (__vector float source);
  40378. __vector unsigned long long int vec_extract_sig (__vector double source);
  40379. __vector float vec_insert_exp (__vector unsigned int significands,
  40380. __vector unsigned int exponents);
  40381. __vector float vec_insert_exp (__vector unsigned float significands,
  40382. __vector unsigned int exponents);
  40383. __vector double vec_insert_exp (__vector unsigned long long int significands,
  40384. __vector unsigned long long int exponents);
  40385. __vector double vec_insert_exp (__vector unsigned double significands,
  40386. __vector unsigned long long int exponents);
  40387. __vector bool int vec_test_data_class (__vector float source, const int condition);
  40388. __vector bool long long int vec_test_data_class (__vector double source,
  40389. const int condition);
  40390. The 'vec_extract_sig' and 'vec_extract_exp' built-in functions return
  40391. vectors representing the significands and biased exponent values of
  40392. their 'source' arguments respectively. Within the result vector
  40393. returned by 'vec_extract_sig', the '0x800000' bit of each vector element
  40394. returned when the function's 'source' argument is of type 'float' is set
  40395. to 1 if the corresponding floating point value is in normalized form.
  40396. Otherwise, this bit is set to 0. When the 'source' argument is of type
  40397. 'double', the '0x10000000000000' bit within each of the result vector's
  40398. elements is set according to the same rules. Note that the sign of the
  40399. significand is not represented in the result returned from the
  40400. 'vec_extract_sig' function. To extract the sign bits, use the
  40401. 'vec_cpsgn' function, which returns a new vector within which all of the
  40402. sign bits of its second argument vector are overwritten with the sign
  40403. bits copied from the coresponding elements of its first argument vector,
  40404. and all other (non-sign) bits of the second argument vector are copied
  40405. unchanged into the result vector.
  40406. The 'vec_insert_exp' built-in functions return a vector of single- or
  40407. double-precision floating point values constructed by assembling the
  40408. values of their 'significands' and 'exponents' arguments into the
  40409. corresponding elements of the returned vector. The sign of each element
  40410. of the result is copied from the most significant bit of the
  40411. corresponding entry within the 'significands' argument. Note that the
  40412. relevant bits of the 'significands' argument are the same, for both
  40413. integer and floating point types. The significand and exponent
  40414. components of each element of the result are composed of the least
  40415. significant bits of the corresponding 'significands' element and the
  40416. least significant bits of the corresponding 'exponents' element.
  40417. The 'vec_test_data_class' built-in function returns a vector
  40418. representing the results of testing the 'source' vector for the
  40419. condition selected by the 'condition' argument. The 'condition'
  40420. argument must be a compile-time constant integer with value not
  40421. exceeding 127. The 'condition' argument is encoded as a bitmask with
  40422. each bit enabling the testing of a different condition, as characterized
  40423. by the following:
  40424. 0x40 Test for NaN
  40425. 0x20 Test for +Infinity
  40426. 0x10 Test for -Infinity
  40427. 0x08 Test for +Zero
  40428. 0x04 Test for -Zero
  40429. 0x02 Test for +Denormal
  40430. 0x01 Test for -Denormal
  40431. If any of the enabled test conditions is true, the corresponding entry
  40432. in the result vector is -1. Otherwise (all of the enabled test
  40433. conditions are false), the corresponding entry of the result vector is
  40434. 0.
  40435. The following built-in functions are available for the PowerPC family
  40436. of processors, starting with ISA 3.0 or later ('-mcpu=power9'):
  40437. vector unsigned int vec_rlmi (vector unsigned int, vector unsigned int,
  40438. vector unsigned int);
  40439. vector unsigned long long vec_rlmi (vector unsigned long long,
  40440. vector unsigned long long,
  40441. vector unsigned long long);
  40442. vector unsigned int vec_rlnm (vector unsigned int, vector unsigned int,
  40443. vector unsigned int);
  40444. vector unsigned long long vec_rlnm (vector unsigned long long,
  40445. vector unsigned long long,
  40446. vector unsigned long long);
  40447. vector unsigned int vec_vrlnm (vector unsigned int, vector unsigned int);
  40448. vector unsigned long long vec_vrlnm (vector unsigned long long,
  40449. vector unsigned long long);
  40450. The result of 'vec_rlmi' is obtained by rotating each element of the
  40451. first argument vector left and inserting it under mask into the second
  40452. argument vector. The third argument vector contains the mask beginning
  40453. in bits 11:15, the mask end in bits 19:23, and the shift count in bits
  40454. 27:31, of each element.
  40455. The result of 'vec_rlnm' is obtained by rotating each element of the
  40456. first argument vector left and ANDing it with a mask specified by the
  40457. second and third argument vectors. The second argument vector contains
  40458. the shift count for each element in the low-order byte. The third
  40459. argument vector contains the mask end for each element in the low-order
  40460. byte, with the mask begin in the next higher byte.
  40461. The result of 'vec_vrlnm' is obtained by rotating each element of the
  40462. first argument vector left and ANDing it with a mask. The second
  40463. argument vector contains the mask beginning in bits 11:15, the mask end
  40464. in bits 19:23, and the shift count in bits 27:31, of each element.
  40465. If the ISA 3.0 instruction set additions ('-mcpu=power9') are
  40466. available:
  40467. vector signed bool char vec_revb (vector signed char);
  40468. vector signed char vec_revb (vector signed char);
  40469. vector unsigned char vec_revb (vector unsigned char);
  40470. vector bool short vec_revb (vector bool short);
  40471. vector short vec_revb (vector short);
  40472. vector unsigned short vec_revb (vector unsigned short);
  40473. vector bool int vec_revb (vector bool int);
  40474. vector int vec_revb (vector int);
  40475. vector unsigned int vec_revb (vector unsigned int);
  40476. vector float vec_revb (vector float);
  40477. vector bool long long vec_revb (vector bool long long);
  40478. vector long long vec_revb (vector long long);
  40479. vector unsigned long long vec_revb (vector unsigned long long);
  40480. vector double vec_revb (vector double);
  40481. On 64-bit targets, if the ISA 3.0 additions ('-mcpu=power9') are
  40482. available:
  40483. vector long vec_revb (vector long);
  40484. vector unsigned long vec_revb (vector unsigned long);
  40485. vector __int128 vec_revb (vector __int128);
  40486. vector __uint128 vec_revb (vector __uint128);
  40487. The 'vec_revb' built-in function reverses the bytes on an element by
  40488. element basis. A vector of 'vector unsigned char' or 'vector signed
  40489. char' reverses the bytes in the whole word.
  40490. If the cryptographic instructions are enabled ('-mcrypto' or
  40491. '-mcpu=power8'), the following builtins are enabled.
  40492. vector unsigned long long __builtin_crypto_vsbox (vector unsigned long long);
  40493. vector unsigned char vec_sbox_be (vector unsigned char);
  40494. vector unsigned long long __builtin_crypto_vcipher (vector unsigned long long,
  40495. vector unsigned long long);
  40496. vector unsigned char vec_cipher_be (vector unsigned char, vector unsigned char);
  40497. vector unsigned long long __builtin_crypto_vcipherlast
  40498. (vector unsigned long long,
  40499. vector unsigned long long);
  40500. vector unsigned char vec_cipherlast_be (vector unsigned char,
  40501. vector unsigned char);
  40502. vector unsigned long long __builtin_crypto_vncipher (vector unsigned long long,
  40503. vector unsigned long long);
  40504. vector unsigned char vec_ncipher_be (vector unsigned char,
  40505. vector unsigned char);
  40506. vector unsigned long long __builtin_crypto_vncipherlast (vector unsigned long long,
  40507. vector unsigned long long);
  40508. vector unsigned char vec_ncipherlast_be (vector unsigned char,
  40509. vector unsigned char);
  40510. vector unsigned char __builtin_crypto_vpermxor (vector unsigned char,
  40511. vector unsigned char,
  40512. vector unsigned char);
  40513. vector unsigned short __builtin_crypto_vpermxor (vector unsigned short,
  40514. vector unsigned short,
  40515. vector unsigned short);
  40516. vector unsigned int __builtin_crypto_vpermxor (vector unsigned int,
  40517. vector unsigned int,
  40518. vector unsigned int);
  40519. vector unsigned long long __builtin_crypto_vpermxor (vector unsigned long long,
  40520. vector unsigned long long,
  40521. vector unsigned long long);
  40522. vector unsigned char __builtin_crypto_vpmsumb (vector unsigned char,
  40523. vector unsigned char);
  40524. vector unsigned short __builtin_crypto_vpmsumh (vector unsigned short,
  40525. vector unsigned short);
  40526. vector unsigned int __builtin_crypto_vpmsumw (vector unsigned int,
  40527. vector unsigned int);
  40528. vector unsigned long long __builtin_crypto_vpmsumd (vector unsigned long long,
  40529. vector unsigned long long);
  40530. vector unsigned long long __builtin_crypto_vshasigmad (vector unsigned long long,
  40531. int, int);
  40532. vector unsigned int __builtin_crypto_vshasigmaw (vector unsigned int, int, int);
  40533. The second argument to __BUILTIN_CRYPTO_VSHASIGMAD and
  40534. __BUILTIN_CRYPTO_VSHASIGMAW must be a constant integer that is 0 or 1.
  40535. The third argument to these built-in functions must be a constant
  40536. integer in the range of 0 to 15.
  40537. If the ISA 3.0 instruction set additions are enabled ('-mcpu=power9'),
  40538. the following additional functions are available for both 32-bit and
  40539. 64-bit targets.
  40540. vector short vec_xl (int, vector short *);
  40541. vector short vec_xl (int, short *);
  40542. vector unsigned short vec_xl (int, vector unsigned short *);
  40543. vector unsigned short vec_xl (int, unsigned short *);
  40544. vector char vec_xl (int, vector char *);
  40545. vector char vec_xl (int, char *);
  40546. vector unsigned char vec_xl (int, vector unsigned char *);
  40547. vector unsigned char vec_xl (int, unsigned char *);
  40548. void vec_xst (vector short, int, vector short *);
  40549. void vec_xst (vector short, int, short *);
  40550. void vec_xst (vector unsigned short, int, vector unsigned short *);
  40551. void vec_xst (vector unsigned short, int, unsigned short *);
  40552. void vec_xst (vector char, int, vector char *);
  40553. void vec_xst (vector char, int, char *);
  40554. void vec_xst (vector unsigned char, int, vector unsigned char *);
  40555. void vec_xst (vector unsigned char, int, unsigned char *);
  40556. 
  40557. File: gcc.info, Node: PowerPC Hardware Transactional Memory Built-in Functions, Next: PowerPC Atomic Memory Operation Functions, Prev: PowerPC AltiVec/VSX Built-in Functions, Up: Target Builtins
  40558. 6.60.24 PowerPC Hardware Transactional Memory Built-in Functions
  40559. ----------------------------------------------------------------
  40560. GCC provides two interfaces for accessing the Hardware Transactional
  40561. Memory (HTM) instructions available on some of the PowerPC family of
  40562. processors (eg, POWER8). The two interfaces come in a low level
  40563. interface, consisting of built-in functions specific to PowerPC and a
  40564. higher level interface consisting of inline functions that are common
  40565. between PowerPC and S/390.
  40566. 6.60.24.1 PowerPC HTM Low Level Built-in Functions
  40567. ..................................................
  40568. The following low level built-in functions are available with '-mhtm' or
  40569. '-mcpu=CPU' where CPU is 'power8' or later. They all generate the
  40570. machine instruction that is part of the name.
  40571. The HTM builtins (with the exception of '__builtin_tbegin') return the
  40572. full 4-bit condition register value set by their associated hardware
  40573. instruction. The header file 'htmintrin.h' defines some macros that can
  40574. be used to decipher the return value. The '__builtin_tbegin' builtin
  40575. returns a simple 'true' or 'false' value depending on whether a
  40576. transaction was successfully started or not. The arguments of the
  40577. builtins match exactly the type and order of the associated hardware
  40578. instruction's operands, except for the '__builtin_tcheck' builtin, which
  40579. does not take any input arguments. Refer to the ISA manual for a
  40580. description of each instruction's operands.
  40581. unsigned int __builtin_tbegin (unsigned int)
  40582. unsigned int __builtin_tend (unsigned int)
  40583. unsigned int __builtin_tabort (unsigned int)
  40584. unsigned int __builtin_tabortdc (unsigned int, unsigned int, unsigned int)
  40585. unsigned int __builtin_tabortdci (unsigned int, unsigned int, int)
  40586. unsigned int __builtin_tabortwc (unsigned int, unsigned int, unsigned int)
  40587. unsigned int __builtin_tabortwci (unsigned int, unsigned int, int)
  40588. unsigned int __builtin_tcheck (void)
  40589. unsigned int __builtin_treclaim (unsigned int)
  40590. unsigned int __builtin_trechkpt (void)
  40591. unsigned int __builtin_tsr (unsigned int)
  40592. In addition to the above HTM built-ins, we have added built-ins for
  40593. some common extended mnemonics of the HTM instructions:
  40594. unsigned int __builtin_tendall (void)
  40595. unsigned int __builtin_tresume (void)
  40596. unsigned int __builtin_tsuspend (void)
  40597. Note that the semantics of the above HTM builtins are required to mimic
  40598. the locking semantics used for critical sections. Builtins that are
  40599. used to create a new transaction or restart a suspended transaction must
  40600. have lock acquisition like semantics while those builtins that end or
  40601. suspend a transaction must have lock release like semantics.
  40602. Specifically, this must mimic lock semantics as specified by C++11, for
  40603. example: Lock acquisition is as-if an execution of
  40604. __atomic_exchange_n(&globallock,1,__ATOMIC_ACQUIRE) that returns 0, and
  40605. lock release is as-if an execution of
  40606. __atomic_store(&globallock,0,__ATOMIC_RELEASE), with globallock being an
  40607. implicit implementation-defined lock used for all transactions. The HTM
  40608. instructions associated with with the builtins inherently provide the
  40609. correct acquisition and release hardware barriers required. However,
  40610. the compiler must also be prohibited from moving loads and stores across
  40611. the builtins in a way that would violate their semantics. This has been
  40612. accomplished by adding memory barriers to the associated HTM
  40613. instructions (which is a conservative approach to provide acquire and
  40614. release semantics). Earlier versions of the compiler did not treat the
  40615. HTM instructions as memory barriers. A '__TM_FENCE__' macro has been
  40616. added, which can be used to determine whether the current compiler
  40617. treats HTM instructions as memory barriers or not. This allows the user
  40618. to explicitly add memory barriers to their code when using an older
  40619. version of the compiler.
  40620. The following set of built-in functions are available to gain access to
  40621. the HTM specific special purpose registers.
  40622. unsigned long __builtin_get_texasr (void)
  40623. unsigned long __builtin_get_texasru (void)
  40624. unsigned long __builtin_get_tfhar (void)
  40625. unsigned long __builtin_get_tfiar (void)
  40626. void __builtin_set_texasr (unsigned long);
  40627. void __builtin_set_texasru (unsigned long);
  40628. void __builtin_set_tfhar (unsigned long);
  40629. void __builtin_set_tfiar (unsigned long);
  40630. Example usage of these low level built-in functions may look like:
  40631. #include <htmintrin.h>
  40632. int num_retries = 10;
  40633. while (1)
  40634. {
  40635. if (__builtin_tbegin (0))
  40636. {
  40637. /* Transaction State Initiated. */
  40638. if (is_locked (lock))
  40639. __builtin_tabort (0);
  40640. ... transaction code...
  40641. __builtin_tend (0);
  40642. break;
  40643. }
  40644. else
  40645. {
  40646. /* Transaction State Failed. Use locks if the transaction
  40647. failure is "persistent" or we've tried too many times. */
  40648. if (num_retries-- <= 0
  40649. || _TEXASRU_FAILURE_PERSISTENT (__builtin_get_texasru ()))
  40650. {
  40651. acquire_lock (lock);
  40652. ... non transactional fallback path...
  40653. release_lock (lock);
  40654. break;
  40655. }
  40656. }
  40657. }
  40658. One final built-in function has been added that returns the value of
  40659. the 2-bit Transaction State field of the Machine Status Register (MSR)
  40660. as stored in 'CR0'.
  40661. unsigned long __builtin_ttest (void)
  40662. This built-in can be used to determine the current transaction state
  40663. using the following code example:
  40664. #include <htmintrin.h>
  40665. unsigned char tx_state = _HTM_STATE (__builtin_ttest ());
  40666. if (tx_state == _HTM_TRANSACTIONAL)
  40667. {
  40668. /* Code to use in transactional state. */
  40669. }
  40670. else if (tx_state == _HTM_NONTRANSACTIONAL)
  40671. {
  40672. /* Code to use in non-transactional state. */
  40673. }
  40674. else if (tx_state == _HTM_SUSPENDED)
  40675. {
  40676. /* Code to use in transaction suspended state. */
  40677. }
  40678. 6.60.24.2 PowerPC HTM High Level Inline Functions
  40679. .................................................
  40680. The following high level HTM interface is made available by including
  40681. '<htmxlintrin.h>' and using '-mhtm' or '-mcpu=CPU' where CPU is 'power8'
  40682. or later. This interface is common between PowerPC and S/390, allowing
  40683. users to write one HTM source implementation that can be compiled and
  40684. executed on either system.
  40685. long __TM_simple_begin (void)
  40686. long __TM_begin (void* const TM_buff)
  40687. long __TM_end (void)
  40688. void __TM_abort (void)
  40689. void __TM_named_abort (unsigned char const code)
  40690. void __TM_resume (void)
  40691. void __TM_suspend (void)
  40692. long __TM_is_user_abort (void* const TM_buff)
  40693. long __TM_is_named_user_abort (void* const TM_buff, unsigned char *code)
  40694. long __TM_is_illegal (void* const TM_buff)
  40695. long __TM_is_footprint_exceeded (void* const TM_buff)
  40696. long __TM_nesting_depth (void* const TM_buff)
  40697. long __TM_is_nested_too_deep(void* const TM_buff)
  40698. long __TM_is_conflict(void* const TM_buff)
  40699. long __TM_is_failure_persistent(void* const TM_buff)
  40700. long __TM_failure_address(void* const TM_buff)
  40701. long long __TM_failure_code(void* const TM_buff)
  40702. Using these common set of HTM inline functions, we can create a more
  40703. portable version of the HTM example in the previous section that will
  40704. work on either PowerPC or S/390:
  40705. #include <htmxlintrin.h>
  40706. int num_retries = 10;
  40707. TM_buff_type TM_buff;
  40708. while (1)
  40709. {
  40710. if (__TM_begin (TM_buff) == _HTM_TBEGIN_STARTED)
  40711. {
  40712. /* Transaction State Initiated. */
  40713. if (is_locked (lock))
  40714. __TM_abort ();
  40715. ... transaction code...
  40716. __TM_end ();
  40717. break;
  40718. }
  40719. else
  40720. {
  40721. /* Transaction State Failed. Use locks if the transaction
  40722. failure is "persistent" or we've tried too many times. */
  40723. if (num_retries-- <= 0
  40724. || __TM_is_failure_persistent (TM_buff))
  40725. {
  40726. acquire_lock (lock);
  40727. ... non transactional fallback path...
  40728. release_lock (lock);
  40729. break;
  40730. }
  40731. }
  40732. }
  40733. 
  40734. File: gcc.info, Node: PowerPC Atomic Memory Operation Functions, Next: PowerPC Matrix-Multiply Assist Built-in Functions, Prev: PowerPC Hardware Transactional Memory Built-in Functions, Up: Target Builtins
  40735. 6.60.25 PowerPC Atomic Memory Operation Functions
  40736. -------------------------------------------------
  40737. ISA 3.0 of the PowerPC added new atomic memory operation (amo)
  40738. instructions. GCC provides support for these instructions in 64-bit
  40739. environments. All of the functions are declared in the include file
  40740. 'amo.h'.
  40741. The functions supported are:
  40742. #include <amo.h>
  40743. uint32_t amo_lwat_add (uint32_t *, uint32_t);
  40744. uint32_t amo_lwat_xor (uint32_t *, uint32_t);
  40745. uint32_t amo_lwat_ior (uint32_t *, uint32_t);
  40746. uint32_t amo_lwat_and (uint32_t *, uint32_t);
  40747. uint32_t amo_lwat_umax (uint32_t *, uint32_t);
  40748. uint32_t amo_lwat_umin (uint32_t *, uint32_t);
  40749. uint32_t amo_lwat_swap (uint32_t *, uint32_t);
  40750. int32_t amo_lwat_sadd (int32_t *, int32_t);
  40751. int32_t amo_lwat_smax (int32_t *, int32_t);
  40752. int32_t amo_lwat_smin (int32_t *, int32_t);
  40753. int32_t amo_lwat_sswap (int32_t *, int32_t);
  40754. uint64_t amo_ldat_add (uint64_t *, uint64_t);
  40755. uint64_t amo_ldat_xor (uint64_t *, uint64_t);
  40756. uint64_t amo_ldat_ior (uint64_t *, uint64_t);
  40757. uint64_t amo_ldat_and (uint64_t *, uint64_t);
  40758. uint64_t amo_ldat_umax (uint64_t *, uint64_t);
  40759. uint64_t amo_ldat_umin (uint64_t *, uint64_t);
  40760. uint64_t amo_ldat_swap (uint64_t *, uint64_t);
  40761. int64_t amo_ldat_sadd (int64_t *, int64_t);
  40762. int64_t amo_ldat_smax (int64_t *, int64_t);
  40763. int64_t amo_ldat_smin (int64_t *, int64_t);
  40764. int64_t amo_ldat_sswap (int64_t *, int64_t);
  40765. void amo_stwat_add (uint32_t *, uint32_t);
  40766. void amo_stwat_xor (uint32_t *, uint32_t);
  40767. void amo_stwat_ior (uint32_t *, uint32_t);
  40768. void amo_stwat_and (uint32_t *, uint32_t);
  40769. void amo_stwat_umax (uint32_t *, uint32_t);
  40770. void amo_stwat_umin (uint32_t *, uint32_t);
  40771. void amo_stwat_sadd (int32_t *, int32_t);
  40772. void amo_stwat_smax (int32_t *, int32_t);
  40773. void amo_stwat_smin (int32_t *, int32_t);
  40774. void amo_stdat_add (uint64_t *, uint64_t);
  40775. void amo_stdat_xor (uint64_t *, uint64_t);
  40776. void amo_stdat_ior (uint64_t *, uint64_t);
  40777. void amo_stdat_and (uint64_t *, uint64_t);
  40778. void amo_stdat_umax (uint64_t *, uint64_t);
  40779. void amo_stdat_umin (uint64_t *, uint64_t);
  40780. void amo_stdat_sadd (int64_t *, int64_t);
  40781. void amo_stdat_smax (int64_t *, int64_t);
  40782. void amo_stdat_smin (int64_t *, int64_t);
  40783. 
  40784. File: gcc.info, Node: PowerPC Matrix-Multiply Assist Built-in Functions, Next: RX Built-in Functions, Prev: PowerPC Atomic Memory Operation Functions, Up: Target Builtins
  40785. 6.60.26 PowerPC Matrix-Multiply Assist Built-in Functions
  40786. ---------------------------------------------------------
  40787. ISA 3.1 of the PowerPC added new Matrix-Multiply Assist (MMA)
  40788. instructions. GCC provides support for these instructions through the
  40789. following built-in functions which are enabled with the '-mmma' option.
  40790. The vec_t type below is defined to be a normal vector unsigned char
  40791. type.  The uint2, uint4 and uint8 parameters are 2-bit, 4-bit and 8-bit
  40792. unsigned integer constants respectively.  The compiler will verify that
  40793. they are constants and that their values are within range. 
  40794. The built-in functions supported are:
  40795. void __builtin_mma_xvi4ger8 (__vector_quad *, vec_t, vec_t);
  40796. void __builtin_mma_xvi8ger4 (__vector_quad *, vec_t, vec_t);
  40797. void __builtin_mma_xvi16ger2 (__vector_quad *, vec_t, vec_t);
  40798. void __builtin_mma_xvi16ger2s (__vector_quad *, vec_t, vec_t);
  40799. void __builtin_mma_xvf16ger2 (__vector_quad *, vec_t, vec_t);
  40800. void __builtin_mma_xvbf16ger2 (__vector_quad *, vec_t, vec_t);
  40801. void __builtin_mma_xvf32ger (__vector_quad *, vec_t, vec_t);
  40802. void __builtin_mma_xvi4ger8pp (__vector_quad *, vec_t, vec_t);
  40803. void __builtin_mma_xvi8ger4pp (__vector_quad *, vec_t, vec_t);
  40804. void __builtin_mma_xvi8ger4spp(__vector_quad *, vec_t, vec_t);
  40805. void __builtin_mma_xvi16ger2pp (__vector_quad *, vec_t, vec_t);
  40806. void __builtin_mma_xvi16ger2spp (__vector_quad *, vec_t, vec_t);
  40807. void __builtin_mma_xvf16ger2pp (__vector_quad *, vec_t, vec_t);
  40808. void __builtin_mma_xvf16ger2pn (__vector_quad *, vec_t, vec_t);
  40809. void __builtin_mma_xvf16ger2np (__vector_quad *, vec_t, vec_t);
  40810. void __builtin_mma_xvf16ger2nn (__vector_quad *, vec_t, vec_t);
  40811. void __builtin_mma_xvbf16ger2pp (__vector_quad *, vec_t, vec_t);
  40812. void __builtin_mma_xvbf16ger2pn (__vector_quad *, vec_t, vec_t);
  40813. void __builtin_mma_xvbf16ger2np (__vector_quad *, vec_t, vec_t);
  40814. void __builtin_mma_xvbf16ger2nn (__vector_quad *, vec_t, vec_t);
  40815. void __builtin_mma_xvf32gerpp (__vector_quad *, vec_t, vec_t);
  40816. void __builtin_mma_xvf32gerpn (__vector_quad *, vec_t, vec_t);
  40817. void __builtin_mma_xvf32gernp (__vector_quad *, vec_t, vec_t);
  40818. void __builtin_mma_xvf32gernn (__vector_quad *, vec_t, vec_t);
  40819. void __builtin_mma_pmxvi4ger8 (__vector_quad *, vec_t, vec_t, uint4, uint4, uint8);
  40820. void __builtin_mma_pmxvi4ger8pp (__vector_quad *, vec_t, vec_t, uint4, uint4, uint8);
  40821. void __builtin_mma_pmxvi8ger4 (__vector_quad *, vec_t, vec_t, uint4, uint4, uint4);
  40822. void __builtin_mma_pmxvi8ger4pp (__vector_quad *, vec_t, vec_t, uint4, uint4, uint4);
  40823. void __builtin_mma_pmxvi8ger4spp(__vector_quad *, vec_t, vec_t, uint4, uint4, uint4);
  40824. void __builtin_mma_pmxvi16ger2 (__vector_quad *, vec_t, vec_t, uint4, uint4, uint2);
  40825. void __builtin_mma_pmxvi16ger2s (__vector_quad *, vec_t, vec_t, uint4, uint4, uint2);
  40826. void __builtin_mma_pmxvf16ger2 (__vector_quad *, vec_t, vec_t, uint4, uint4, uint2);
  40827. void __builtin_mma_pmxvbf16ger2 (__vector_quad *, vec_t, vec_t, uint4, uint4, uint2);
  40828. void __builtin_mma_pmxvi16ger2pp (__vector_quad *, vec_t, vec_t, uint4, uint4, uint2);
  40829. void __builtin_mma_pmxvi16ger2spp (__vector_quad *, vec_t, vec_t, uint4, uint4, uint2);
  40830. void __builtin_mma_pmxvf16ger2pp (__vector_quad *, vec_t, vec_t, uint4, uint4, uint2);
  40831. void __builtin_mma_pmxvf16ger2pn (__vector_quad *, vec_t, vec_t, uint4, uint4, uint2);
  40832. void __builtin_mma_pmxvf16ger2np (__vector_quad *, vec_t, vec_t, uint4, uint4, uint2);
  40833. void __builtin_mma_pmxvf16ger2nn (__vector_quad *, vec_t, vec_t, uint4, uint4, uint2);
  40834. void __builtin_mma_pmxvbf16ger2pp (__vector_quad *, vec_t, vec_t, uint4, uint4, uint2);
  40835. void __builtin_mma_pmxvbf16ger2pn (__vector_quad *, vec_t, vec_t, uint4, uint4, uint2);
  40836. void __builtin_mma_pmxvbf16ger2np (__vector_quad *, vec_t, vec_t, uint4, uint4, uint2);
  40837. void __builtin_mma_pmxvbf16ger2nn (__vector_quad *, vec_t, vec_t, uint4, uint4, uint2);
  40838. void __builtin_mma_pmxvf32ger (__vector_quad *, vec_t, vec_t, uint4, uint4);
  40839. void __builtin_mma_pmxvf32gerpp (__vector_quad *, vec_t, vec_t, uint4, uint4);
  40840. void __builtin_mma_pmxvf32gerpn (__vector_quad *, vec_t, vec_t, uint4, uint4);
  40841. void __builtin_mma_pmxvf32gernp (__vector_quad *, vec_t, vec_t, uint4, uint4);
  40842. void __builtin_mma_pmxvf32gernn (__vector_quad *, vec_t, vec_t, uint4, uint4);
  40843. void __builtin_mma_xvf64ger (__vector_quad *, __vector_pair, vec_t);
  40844. void __builtin_mma_xvf64gerpp (__vector_quad *, __vector_pair, vec_t);
  40845. void __builtin_mma_xvf64gerpn (__vector_quad *, __vector_pair, vec_t);
  40846. void __builtin_mma_xvf64gernp (__vector_quad *, __vector_pair, vec_t);
  40847. void __builtin_mma_xvf64gernn (__vector_quad *, __vector_pair, vec_t);
  40848. void __builtin_mma_pmxvf64ger (__vector_quad *, __vector_pair, vec_t, uint4, uint2);
  40849. void __builtin_mma_pmxvf64gerpp (__vector_quad *, __vector_pair, vec_t, uint4, uint2);
  40850. void __builtin_mma_pmxvf64gerpn (__vector_quad *, __vector_pair, vec_t, uint4, uint2);
  40851. void __builtin_mma_pmxvf64gernp (__vector_quad *, __vector_pair, vec_t, uint4, uint2);
  40852. void __builtin_mma_pmxvf64gernn (__vector_quad *, __vector_pair, vec_t, uint4, uint2);
  40853. void __builtin_mma_xxmtacc (__vector_quad *);
  40854. void __builtin_mma_xxmfacc (__vector_quad *);
  40855. void __builtin_mma_xxsetaccz (__vector_quad *);
  40856. void __builtin_mma_assemble_acc (__vector_quad *, vec_t, vec_t, vec_t, vec_t);
  40857. void __builtin_mma_disassemble_acc (void *, __vector_quad *);
  40858. void __builtin_mma_assemble_pair (__vector_pair *, vec_t, vec_t);
  40859. void __builtin_mma_disassemble_pair (void *, __vector_pair *);
  40860. vec_t __builtin_vsx_xvcvspbf16 (vec_t);
  40861. vec_t __builtin_vsx_xvcvbf16spn (vec_t);
  40862. 
  40863. File: gcc.info, Node: RX Built-in Functions, Next: S/390 System z Built-in Functions, Prev: PowerPC Matrix-Multiply Assist Built-in Functions, Up: Target Builtins
  40864. 6.60.27 RX Built-in Functions
  40865. -----------------------------
  40866. GCC supports some of the RX instructions which cannot be expressed in
  40867. the C programming language via the use of built-in functions. The
  40868. following functions are supported:
  40869. -- Built-in Function: void __builtin_rx_brk (void)
  40870. Generates the 'brk' machine instruction.
  40871. -- Built-in Function: void __builtin_rx_clrpsw (int)
  40872. Generates the 'clrpsw' machine instruction to clear the specified
  40873. bit in the processor status word.
  40874. -- Built-in Function: void __builtin_rx_int (int)
  40875. Generates the 'int' machine instruction to generate an interrupt
  40876. with the specified value.
  40877. -- Built-in Function: void __builtin_rx_machi (int, int)
  40878. Generates the 'machi' machine instruction to add the result of
  40879. multiplying the top 16 bits of the two arguments into the
  40880. accumulator.
  40881. -- Built-in Function: void __builtin_rx_maclo (int, int)
  40882. Generates the 'maclo' machine instruction to add the result of
  40883. multiplying the bottom 16 bits of the two arguments into the
  40884. accumulator.
  40885. -- Built-in Function: void __builtin_rx_mulhi (int, int)
  40886. Generates the 'mulhi' machine instruction to place the result of
  40887. multiplying the top 16 bits of the two arguments into the
  40888. accumulator.
  40889. -- Built-in Function: void __builtin_rx_mullo (int, int)
  40890. Generates the 'mullo' machine instruction to place the result of
  40891. multiplying the bottom 16 bits of the two arguments into the
  40892. accumulator.
  40893. -- Built-in Function: int __builtin_rx_mvfachi (void)
  40894. Generates the 'mvfachi' machine instruction to read the top 32 bits
  40895. of the accumulator.
  40896. -- Built-in Function: int __builtin_rx_mvfacmi (void)
  40897. Generates the 'mvfacmi' machine instruction to read the middle 32
  40898. bits of the accumulator.
  40899. -- Built-in Function: int __builtin_rx_mvfc (int)
  40900. Generates the 'mvfc' machine instruction which reads the control
  40901. register specified in its argument and returns its value.
  40902. -- Built-in Function: void __builtin_rx_mvtachi (int)
  40903. Generates the 'mvtachi' machine instruction to set the top 32 bits
  40904. of the accumulator.
  40905. -- Built-in Function: void __builtin_rx_mvtaclo (int)
  40906. Generates the 'mvtaclo' machine instruction to set the bottom 32
  40907. bits of the accumulator.
  40908. -- Built-in Function: void __builtin_rx_mvtc (int reg, int val)
  40909. Generates the 'mvtc' machine instruction which sets control
  40910. register number 'reg' to 'val'.
  40911. -- Built-in Function: void __builtin_rx_mvtipl (int)
  40912. Generates the 'mvtipl' machine instruction set the interrupt
  40913. priority level.
  40914. -- Built-in Function: void __builtin_rx_racw (int)
  40915. Generates the 'racw' machine instruction to round the accumulator
  40916. according to the specified mode.
  40917. -- Built-in Function: int __builtin_rx_revw (int)
  40918. Generates the 'revw' machine instruction which swaps the bytes in
  40919. the argument so that bits 0-7 now occupy bits 8-15 and vice versa,
  40920. and also bits 16-23 occupy bits 24-31 and vice versa.
  40921. -- Built-in Function: void __builtin_rx_rmpa (void)
  40922. Generates the 'rmpa' machine instruction which initiates a repeated
  40923. multiply and accumulate sequence.
  40924. -- Built-in Function: void __builtin_rx_round (float)
  40925. Generates the 'round' machine instruction which returns the
  40926. floating-point argument rounded according to the current rounding
  40927. mode set in the floating-point status word register.
  40928. -- Built-in Function: int __builtin_rx_sat (int)
  40929. Generates the 'sat' machine instruction which returns the saturated
  40930. value of the argument.
  40931. -- Built-in Function: void __builtin_rx_setpsw (int)
  40932. Generates the 'setpsw' machine instruction to set the specified bit
  40933. in the processor status word.
  40934. -- Built-in Function: void __builtin_rx_wait (void)
  40935. Generates the 'wait' machine instruction.
  40936. 
  40937. File: gcc.info, Node: S/390 System z Built-in Functions, Next: SH Built-in Functions, Prev: RX Built-in Functions, Up: Target Builtins
  40938. 6.60.28 S/390 System z Built-in Functions
  40939. -----------------------------------------
  40940. -- Built-in Function: int __builtin_tbegin (void*)
  40941. Generates the 'tbegin' machine instruction starting a
  40942. non-constrained hardware transaction. If the parameter is non-NULL
  40943. the memory area is used to store the transaction diagnostic buffer
  40944. and will be passed as first operand to 'tbegin'. This buffer can
  40945. be defined using the 'struct __htm_tdb' C struct defined in
  40946. 'htmintrin.h' and must reside on a double-word boundary. The
  40947. second tbegin operand is set to '0xff0c'. This enables
  40948. save/restore of all GPRs and disables aborts for FPR and AR
  40949. manipulations inside the transaction body. The condition code set
  40950. by the tbegin instruction is returned as integer value. The tbegin
  40951. instruction by definition overwrites the content of all FPRs. The
  40952. compiler will generate code which saves and restores the FPRs. For
  40953. soft-float code it is recommended to used the '*_nofloat' variant.
  40954. In order to prevent a TDB from being written it is required to pass
  40955. a constant zero value as parameter. Passing a zero value through a
  40956. variable is not sufficient. Although modifications of access
  40957. registers inside the transaction will not trigger an transaction
  40958. abort it is not supported to actually modify them. Access
  40959. registers do not get saved when entering a transaction. They will
  40960. have undefined state when reaching the abort code.
  40961. Macros for the possible return codes of tbegin are defined in the
  40962. 'htmintrin.h' header file:
  40963. '_HTM_TBEGIN_STARTED'
  40964. 'tbegin' has been executed as part of normal processing. The
  40965. transaction body is supposed to be executed.
  40966. '_HTM_TBEGIN_INDETERMINATE'
  40967. The transaction was aborted due to an indeterminate condition which
  40968. might be persistent.
  40969. '_HTM_TBEGIN_TRANSIENT'
  40970. The transaction aborted due to a transient failure. The
  40971. transaction should be re-executed in that case.
  40972. '_HTM_TBEGIN_PERSISTENT'
  40973. The transaction aborted due to a persistent failure. Re-execution
  40974. under same circumstances will not be productive.
  40975. -- Macro: _HTM_FIRST_USER_ABORT_CODE
  40976. The '_HTM_FIRST_USER_ABORT_CODE' defined in 'htmintrin.h' specifies
  40977. the first abort code which can be used for '__builtin_tabort'.
  40978. Values below this threshold are reserved for machine use.
  40979. -- Data type: struct __htm_tdb
  40980. The 'struct __htm_tdb' defined in 'htmintrin.h' describes the
  40981. structure of the transaction diagnostic block as specified in the
  40982. Principles of Operation manual chapter 5-91.
  40983. -- Built-in Function: int __builtin_tbegin_nofloat (void*)
  40984. Same as '__builtin_tbegin' but without FPR saves and restores.
  40985. Using this variant in code making use of FPRs will leave the FPRs
  40986. in undefined state when entering the transaction abort handler
  40987. code.
  40988. -- Built-in Function: int __builtin_tbegin_retry (void*, int)
  40989. In addition to '__builtin_tbegin' a loop for transient failures is
  40990. generated. If tbegin returns a condition code of 2 the transaction
  40991. will be retried as often as specified in the second argument. The
  40992. perform processor assist instruction is used to tell the CPU about
  40993. the number of fails so far.
  40994. -- Built-in Function: int __builtin_tbegin_retry_nofloat (void*, int)
  40995. Same as '__builtin_tbegin_retry' but without FPR saves and
  40996. restores. Using this variant in code making use of FPRs will leave
  40997. the FPRs in undefined state when entering the transaction abort
  40998. handler code.
  40999. -- Built-in Function: void __builtin_tbeginc (void)
  41000. Generates the 'tbeginc' machine instruction starting a constrained
  41001. hardware transaction. The second operand is set to '0xff08'.
  41002. -- Built-in Function: int __builtin_tend (void)
  41003. Generates the 'tend' machine instruction finishing a transaction
  41004. and making the changes visible to other threads. The condition
  41005. code generated by tend is returned as integer value.
  41006. -- Built-in Function: void __builtin_tabort (int)
  41007. Generates the 'tabort' machine instruction with the specified abort
  41008. code. Abort codes from 0 through 255 are reserved and will result
  41009. in an error message.
  41010. -- Built-in Function: void __builtin_tx_assist (int)
  41011. Generates the 'ppa rX,rY,1' machine instruction. Where the integer
  41012. parameter is loaded into rX and a value of zero is loaded into rY.
  41013. The integer parameter specifies the number of times the transaction
  41014. repeatedly aborted.
  41015. -- Built-in Function: int __builtin_tx_nesting_depth (void)
  41016. Generates the 'etnd' machine instruction. The current nesting
  41017. depth is returned as integer value. For a nesting depth of 0 the
  41018. code is not executed as part of an transaction.
  41019. -- Built-in Function: void __builtin_non_tx_store (uint64_t *,
  41020. uint64_t)
  41021. Generates the 'ntstg' machine instruction. The second argument is
  41022. written to the first arguments location. The store operation will
  41023. not be rolled-back in case of an transaction abort.
  41024. 
  41025. File: gcc.info, Node: SH Built-in Functions, Next: SPARC VIS Built-in Functions, Prev: S/390 System z Built-in Functions, Up: Target Builtins
  41026. 6.60.29 SH Built-in Functions
  41027. -----------------------------
  41028. The following built-in functions are supported on the SH1, SH2, SH3 and
  41029. SH4 families of processors:
  41030. -- Built-in Function: void __builtin_set_thread_pointer (void *PTR)
  41031. Sets the 'GBR' register to the specified value PTR. This is
  41032. usually used by system code that manages threads and execution
  41033. contexts. The compiler normally does not generate code that
  41034. modifies the contents of 'GBR' and thus the value is preserved
  41035. across function calls. Changing the 'GBR' value in user code must
  41036. be done with caution, since the compiler might use 'GBR' in order
  41037. to access thread local variables.
  41038. -- Built-in Function: void * __builtin_thread_pointer (void)
  41039. Returns the value that is currently set in the 'GBR' register.
  41040. Memory loads and stores that use the thread pointer as a base
  41041. address are turned into 'GBR' based displacement loads and stores,
  41042. if possible. For example:
  41043. struct my_tcb
  41044. {
  41045. int a, b, c, d, e;
  41046. };
  41047. int get_tcb_value (void)
  41048. {
  41049. // Generate 'mov.l @(8,gbr),r0' instruction
  41050. return ((my_tcb*)__builtin_thread_pointer ())->c;
  41051. }
  41052. -- Built-in Function: unsigned int __builtin_sh_get_fpscr (void)
  41053. Returns the value that is currently set in the 'FPSCR' register.
  41054. -- Built-in Function: void __builtin_sh_set_fpscr (unsigned int VAL)
  41055. Sets the 'FPSCR' register to the specified value VAL, while
  41056. preserving the current values of the FR, SZ and PR bits.
  41057. 
  41058. File: gcc.info, Node: SPARC VIS Built-in Functions, Next: TI C6X Built-in Functions, Prev: SH Built-in Functions, Up: Target Builtins
  41059. 6.60.30 SPARC VIS Built-in Functions
  41060. ------------------------------------
  41061. GCC supports SIMD operations on the SPARC using both the generic vector
  41062. extensions (*note Vector Extensions::) as well as built-in functions for
  41063. the SPARC Visual Instruction Set (VIS). When you use the '-mvis' switch,
  41064. the VIS extension is exposed as the following built-in functions:
  41065. typedef int v1si __attribute__ ((vector_size (4)));
  41066. typedef int v2si __attribute__ ((vector_size (8)));
  41067. typedef short v4hi __attribute__ ((vector_size (8)));
  41068. typedef short v2hi __attribute__ ((vector_size (4)));
  41069. typedef unsigned char v8qi __attribute__ ((vector_size (8)));
  41070. typedef unsigned char v4qi __attribute__ ((vector_size (4)));
  41071. void __builtin_vis_write_gsr (int64_t);
  41072. int64_t __builtin_vis_read_gsr (void);
  41073. void * __builtin_vis_alignaddr (void *, long);
  41074. void * __builtin_vis_alignaddrl (void *, long);
  41075. int64_t __builtin_vis_faligndatadi (int64_t, int64_t);
  41076. v2si __builtin_vis_faligndatav2si (v2si, v2si);
  41077. v4hi __builtin_vis_faligndatav4hi (v4si, v4si);
  41078. v8qi __builtin_vis_faligndatav8qi (v8qi, v8qi);
  41079. v4hi __builtin_vis_fexpand (v4qi);
  41080. v4hi __builtin_vis_fmul8x16 (v4qi, v4hi);
  41081. v4hi __builtin_vis_fmul8x16au (v4qi, v2hi);
  41082. v4hi __builtin_vis_fmul8x16al (v4qi, v2hi);
  41083. v4hi __builtin_vis_fmul8sux16 (v8qi, v4hi);
  41084. v4hi __builtin_vis_fmul8ulx16 (v8qi, v4hi);
  41085. v2si __builtin_vis_fmuld8sux16 (v4qi, v2hi);
  41086. v2si __builtin_vis_fmuld8ulx16 (v4qi, v2hi);
  41087. v4qi __builtin_vis_fpack16 (v4hi);
  41088. v8qi __builtin_vis_fpack32 (v2si, v8qi);
  41089. v2hi __builtin_vis_fpackfix (v2si);
  41090. v8qi __builtin_vis_fpmerge (v4qi, v4qi);
  41091. int64_t __builtin_vis_pdist (v8qi, v8qi, int64_t);
  41092. long __builtin_vis_edge8 (void *, void *);
  41093. long __builtin_vis_edge8l (void *, void *);
  41094. long __builtin_vis_edge16 (void *, void *);
  41095. long __builtin_vis_edge16l (void *, void *);
  41096. long __builtin_vis_edge32 (void *, void *);
  41097. long __builtin_vis_edge32l (void *, void *);
  41098. long __builtin_vis_fcmple16 (v4hi, v4hi);
  41099. long __builtin_vis_fcmple32 (v2si, v2si);
  41100. long __builtin_vis_fcmpne16 (v4hi, v4hi);
  41101. long __builtin_vis_fcmpne32 (v2si, v2si);
  41102. long __builtin_vis_fcmpgt16 (v4hi, v4hi);
  41103. long __builtin_vis_fcmpgt32 (v2si, v2si);
  41104. long __builtin_vis_fcmpeq16 (v4hi, v4hi);
  41105. long __builtin_vis_fcmpeq32 (v2si, v2si);
  41106. v4hi __builtin_vis_fpadd16 (v4hi, v4hi);
  41107. v2hi __builtin_vis_fpadd16s (v2hi, v2hi);
  41108. v2si __builtin_vis_fpadd32 (v2si, v2si);
  41109. v1si __builtin_vis_fpadd32s (v1si, v1si);
  41110. v4hi __builtin_vis_fpsub16 (v4hi, v4hi);
  41111. v2hi __builtin_vis_fpsub16s (v2hi, v2hi);
  41112. v2si __builtin_vis_fpsub32 (v2si, v2si);
  41113. v1si __builtin_vis_fpsub32s (v1si, v1si);
  41114. long __builtin_vis_array8 (long, long);
  41115. long __builtin_vis_array16 (long, long);
  41116. long __builtin_vis_array32 (long, long);
  41117. When you use the '-mvis2' switch, the VIS version 2.0 built-in
  41118. functions also become available:
  41119. long __builtin_vis_bmask (long, long);
  41120. int64_t __builtin_vis_bshuffledi (int64_t, int64_t);
  41121. v2si __builtin_vis_bshufflev2si (v2si, v2si);
  41122. v4hi __builtin_vis_bshufflev2si (v4hi, v4hi);
  41123. v8qi __builtin_vis_bshufflev2si (v8qi, v8qi);
  41124. long __builtin_vis_edge8n (void *, void *);
  41125. long __builtin_vis_edge8ln (void *, void *);
  41126. long __builtin_vis_edge16n (void *, void *);
  41127. long __builtin_vis_edge16ln (void *, void *);
  41128. long __builtin_vis_edge32n (void *, void *);
  41129. long __builtin_vis_edge32ln (void *, void *);
  41130. When you use the '-mvis3' switch, the VIS version 3.0 built-in
  41131. functions also become available:
  41132. void __builtin_vis_cmask8 (long);
  41133. void __builtin_vis_cmask16 (long);
  41134. void __builtin_vis_cmask32 (long);
  41135. v4hi __builtin_vis_fchksm16 (v4hi, v4hi);
  41136. v4hi __builtin_vis_fsll16 (v4hi, v4hi);
  41137. v4hi __builtin_vis_fslas16 (v4hi, v4hi);
  41138. v4hi __builtin_vis_fsrl16 (v4hi, v4hi);
  41139. v4hi __builtin_vis_fsra16 (v4hi, v4hi);
  41140. v2si __builtin_vis_fsll16 (v2si, v2si);
  41141. v2si __builtin_vis_fslas16 (v2si, v2si);
  41142. v2si __builtin_vis_fsrl16 (v2si, v2si);
  41143. v2si __builtin_vis_fsra16 (v2si, v2si);
  41144. long __builtin_vis_pdistn (v8qi, v8qi);
  41145. v4hi __builtin_vis_fmean16 (v4hi, v4hi);
  41146. int64_t __builtin_vis_fpadd64 (int64_t, int64_t);
  41147. int64_t __builtin_vis_fpsub64 (int64_t, int64_t);
  41148. v4hi __builtin_vis_fpadds16 (v4hi, v4hi);
  41149. v2hi __builtin_vis_fpadds16s (v2hi, v2hi);
  41150. v4hi __builtin_vis_fpsubs16 (v4hi, v4hi);
  41151. v2hi __builtin_vis_fpsubs16s (v2hi, v2hi);
  41152. v2si __builtin_vis_fpadds32 (v2si, v2si);
  41153. v1si __builtin_vis_fpadds32s (v1si, v1si);
  41154. v2si __builtin_vis_fpsubs32 (v2si, v2si);
  41155. v1si __builtin_vis_fpsubs32s (v1si, v1si);
  41156. long __builtin_vis_fucmple8 (v8qi, v8qi);
  41157. long __builtin_vis_fucmpne8 (v8qi, v8qi);
  41158. long __builtin_vis_fucmpgt8 (v8qi, v8qi);
  41159. long __builtin_vis_fucmpeq8 (v8qi, v8qi);
  41160. float __builtin_vis_fhadds (float, float);
  41161. double __builtin_vis_fhaddd (double, double);
  41162. float __builtin_vis_fhsubs (float, float);
  41163. double __builtin_vis_fhsubd (double, double);
  41164. float __builtin_vis_fnhadds (float, float);
  41165. double __builtin_vis_fnhaddd (double, double);
  41166. int64_t __builtin_vis_umulxhi (int64_t, int64_t);
  41167. int64_t __builtin_vis_xmulx (int64_t, int64_t);
  41168. int64_t __builtin_vis_xmulxhi (int64_t, int64_t);
  41169. When you use the '-mvis4' switch, the VIS version 4.0 built-in
  41170. functions also become available:
  41171. v8qi __builtin_vis_fpadd8 (v8qi, v8qi);
  41172. v8qi __builtin_vis_fpadds8 (v8qi, v8qi);
  41173. v8qi __builtin_vis_fpaddus8 (v8qi, v8qi);
  41174. v4hi __builtin_vis_fpaddus16 (v4hi, v4hi);
  41175. v8qi __builtin_vis_fpsub8 (v8qi, v8qi);
  41176. v8qi __builtin_vis_fpsubs8 (v8qi, v8qi);
  41177. v8qi __builtin_vis_fpsubus8 (v8qi, v8qi);
  41178. v4hi __builtin_vis_fpsubus16 (v4hi, v4hi);
  41179. long __builtin_vis_fpcmple8 (v8qi, v8qi);
  41180. long __builtin_vis_fpcmpgt8 (v8qi, v8qi);
  41181. long __builtin_vis_fpcmpule16 (v4hi, v4hi);
  41182. long __builtin_vis_fpcmpugt16 (v4hi, v4hi);
  41183. long __builtin_vis_fpcmpule32 (v2si, v2si);
  41184. long __builtin_vis_fpcmpugt32 (v2si, v2si);
  41185. v8qi __builtin_vis_fpmax8 (v8qi, v8qi);
  41186. v4hi __builtin_vis_fpmax16 (v4hi, v4hi);
  41187. v2si __builtin_vis_fpmax32 (v2si, v2si);
  41188. v8qi __builtin_vis_fpmaxu8 (v8qi, v8qi);
  41189. v4hi __builtin_vis_fpmaxu16 (v4hi, v4hi);
  41190. v2si __builtin_vis_fpmaxu32 (v2si, v2si);
  41191. v8qi __builtin_vis_fpmin8 (v8qi, v8qi);
  41192. v4hi __builtin_vis_fpmin16 (v4hi, v4hi);
  41193. v2si __builtin_vis_fpmin32 (v2si, v2si);
  41194. v8qi __builtin_vis_fpminu8 (v8qi, v8qi);
  41195. v4hi __builtin_vis_fpminu16 (v4hi, v4hi);
  41196. v2si __builtin_vis_fpminu32 (v2si, v2si);
  41197. When you use the '-mvis4b' switch, the VIS version 4.0B built-in
  41198. functions also become available:
  41199. v8qi __builtin_vis_dictunpack8 (double, int);
  41200. v4hi __builtin_vis_dictunpack16 (double, int);
  41201. v2si __builtin_vis_dictunpack32 (double, int);
  41202. long __builtin_vis_fpcmple8shl (v8qi, v8qi, int);
  41203. long __builtin_vis_fpcmpgt8shl (v8qi, v8qi, int);
  41204. long __builtin_vis_fpcmpeq8shl (v8qi, v8qi, int);
  41205. long __builtin_vis_fpcmpne8shl (v8qi, v8qi, int);
  41206. long __builtin_vis_fpcmple16shl (v4hi, v4hi, int);
  41207. long __builtin_vis_fpcmpgt16shl (v4hi, v4hi, int);
  41208. long __builtin_vis_fpcmpeq16shl (v4hi, v4hi, int);
  41209. long __builtin_vis_fpcmpne16shl (v4hi, v4hi, int);
  41210. long __builtin_vis_fpcmple32shl (v2si, v2si, int);
  41211. long __builtin_vis_fpcmpgt32shl (v2si, v2si, int);
  41212. long __builtin_vis_fpcmpeq32shl (v2si, v2si, int);
  41213. long __builtin_vis_fpcmpne32shl (v2si, v2si, int);
  41214. long __builtin_vis_fpcmpule8shl (v8qi, v8qi, int);
  41215. long __builtin_vis_fpcmpugt8shl (v8qi, v8qi, int);
  41216. long __builtin_vis_fpcmpule16shl (v4hi, v4hi, int);
  41217. long __builtin_vis_fpcmpugt16shl (v4hi, v4hi, int);
  41218. long __builtin_vis_fpcmpule32shl (v2si, v2si, int);
  41219. long __builtin_vis_fpcmpugt32shl (v2si, v2si, int);
  41220. long __builtin_vis_fpcmpde8shl (v8qi, v8qi, int);
  41221. long __builtin_vis_fpcmpde16shl (v4hi, v4hi, int);
  41222. long __builtin_vis_fpcmpde32shl (v2si, v2si, int);
  41223. long __builtin_vis_fpcmpur8shl (v8qi, v8qi, int);
  41224. long __builtin_vis_fpcmpur16shl (v4hi, v4hi, int);
  41225. long __builtin_vis_fpcmpur32shl (v2si, v2si, int);
  41226. 
  41227. File: gcc.info, Node: TI C6X Built-in Functions, Next: TILE-Gx Built-in Functions, Prev: SPARC VIS Built-in Functions, Up: Target Builtins
  41228. 6.60.31 TI C6X Built-in Functions
  41229. ---------------------------------
  41230. GCC provides intrinsics to access certain instructions of the TI C6X
  41231. processors. These intrinsics, listed below, are available after
  41232. inclusion of the 'c6x_intrinsics.h' header file. They map directly to
  41233. C6X instructions.
  41234. int _sadd (int, int)
  41235. int _ssub (int, int)
  41236. int _sadd2 (int, int)
  41237. int _ssub2 (int, int)
  41238. long long _mpy2 (int, int)
  41239. long long _smpy2 (int, int)
  41240. int _add4 (int, int)
  41241. int _sub4 (int, int)
  41242. int _saddu4 (int, int)
  41243. int _smpy (int, int)
  41244. int _smpyh (int, int)
  41245. int _smpyhl (int, int)
  41246. int _smpylh (int, int)
  41247. int _sshl (int, int)
  41248. int _subc (int, int)
  41249. int _avg2 (int, int)
  41250. int _avgu4 (int, int)
  41251. int _clrr (int, int)
  41252. int _extr (int, int)
  41253. int _extru (int, int)
  41254. int _abs (int)
  41255. int _abs2 (int)
  41256. 
  41257. File: gcc.info, Node: TILE-Gx Built-in Functions, Next: TILEPro Built-in Functions, Prev: TI C6X Built-in Functions, Up: Target Builtins
  41258. 6.60.32 TILE-Gx Built-in Functions
  41259. ----------------------------------
  41260. GCC provides intrinsics to access every instruction of the TILE-Gx
  41261. processor. The intrinsics are of the form:
  41262. unsigned long long __insn_OP (...)
  41263. Where OP is the name of the instruction. Refer to the ISA manual for
  41264. the complete list of instructions.
  41265. GCC also provides intrinsics to directly access the network registers.
  41266. The intrinsics are:
  41267. unsigned long long __tile_idn0_receive (void)
  41268. unsigned long long __tile_idn1_receive (void)
  41269. unsigned long long __tile_udn0_receive (void)
  41270. unsigned long long __tile_udn1_receive (void)
  41271. unsigned long long __tile_udn2_receive (void)
  41272. unsigned long long __tile_udn3_receive (void)
  41273. void __tile_idn_send (unsigned long long)
  41274. void __tile_udn_send (unsigned long long)
  41275. The intrinsic 'void __tile_network_barrier (void)' is used to guarantee
  41276. that no network operations before it are reordered with those after it.
  41277. 
  41278. File: gcc.info, Node: TILEPro Built-in Functions, Next: x86 Built-in Functions, Prev: TILE-Gx Built-in Functions, Up: Target Builtins
  41279. 6.60.33 TILEPro Built-in Functions
  41280. ----------------------------------
  41281. GCC provides intrinsics to access every instruction of the TILEPro
  41282. processor. The intrinsics are of the form:
  41283. unsigned __insn_OP (...)
  41284. where OP is the name of the instruction. Refer to the ISA manual for
  41285. the complete list of instructions.
  41286. GCC also provides intrinsics to directly access the network registers.
  41287. The intrinsics are:
  41288. unsigned __tile_idn0_receive (void)
  41289. unsigned __tile_idn1_receive (void)
  41290. unsigned __tile_sn_receive (void)
  41291. unsigned __tile_udn0_receive (void)
  41292. unsigned __tile_udn1_receive (void)
  41293. unsigned __tile_udn2_receive (void)
  41294. unsigned __tile_udn3_receive (void)
  41295. void __tile_idn_send (unsigned)
  41296. void __tile_sn_send (unsigned)
  41297. void __tile_udn_send (unsigned)
  41298. The intrinsic 'void __tile_network_barrier (void)' is used to guarantee
  41299. that no network operations before it are reordered with those after it.
  41300. 
  41301. File: gcc.info, Node: x86 Built-in Functions, Next: x86 transactional memory intrinsics, Prev: TILEPro Built-in Functions, Up: Target Builtins
  41302. 6.60.34 x86 Built-in Functions
  41303. ------------------------------
  41304. These built-in functions are available for the x86-32 and x86-64 family
  41305. of computers, depending on the command-line switches used.
  41306. If you specify command-line switches such as '-msse', the compiler
  41307. could use the extended instruction sets even if the built-ins are not
  41308. used explicitly in the program. For this reason, applications that
  41309. perform run-time CPU detection must compile separate files for each
  41310. supported architecture, using the appropriate flags. In particular, the
  41311. file containing the CPU detection code should be compiled without these
  41312. options.
  41313. The following machine modes are available for use with MMX built-in
  41314. functions (*note Vector Extensions::): 'V2SI' for a vector of two 32-bit
  41315. integers, 'V4HI' for a vector of four 16-bit integers, and 'V8QI' for a
  41316. vector of eight 8-bit integers. Some of the built-in functions operate
  41317. on MMX registers as a whole 64-bit entity, these use 'V1DI' as their
  41318. mode.
  41319. If 3DNow! extensions are enabled, 'V2SF' is used as a mode for a vector
  41320. of two 32-bit floating-point values.
  41321. If SSE extensions are enabled, 'V4SF' is used for a vector of four
  41322. 32-bit floating-point values. Some instructions use a vector of four
  41323. 32-bit integers, these use 'V4SI'. Finally, some instructions operate
  41324. on an entire vector register, interpreting it as a 128-bit integer,
  41325. these use mode 'TI'.
  41326. The x86-32 and x86-64 family of processors use additional built-in
  41327. functions for efficient use of 'TF' ('__float128') 128-bit floating
  41328. point and 'TC' 128-bit complex floating-point values.
  41329. The following floating-point built-in functions are always available.
  41330. All of them implement the function that is part of the name.
  41331. __float128 __builtin_fabsq (__float128)
  41332. __float128 __builtin_copysignq (__float128, __float128)
  41333. The following built-in functions are always available.
  41334. '__float128 __builtin_infq (void)'
  41335. Similar to '__builtin_inf', except the return type is '__float128'.
  41336. '__float128 __builtin_huge_valq (void)'
  41337. Similar to '__builtin_huge_val', except the return type is
  41338. '__float128'.
  41339. '__float128 __builtin_nanq (void)'
  41340. Similar to '__builtin_nan', except the return type is '__float128'.
  41341. '__float128 __builtin_nansq (void)'
  41342. Similar to '__builtin_nans', except the return type is
  41343. '__float128'.
  41344. The following built-in function is always available.
  41345. 'void __builtin_ia32_pause (void)'
  41346. Generates the 'pause' machine instruction with a compiler memory
  41347. barrier.
  41348. The following built-in functions are always available and can be used
  41349. to check the target platform type.
  41350. -- Built-in Function: void __builtin_cpu_init (void)
  41351. This function runs the CPU detection code to check the type of CPU
  41352. and the features supported. This built-in function needs to be
  41353. invoked along with the built-in functions to check CPU type and
  41354. features, '__builtin_cpu_is' and '__builtin_cpu_supports', only
  41355. when used in a function that is executed before any constructors
  41356. are called. The CPU detection code is automatically executed in a
  41357. very high priority constructor.
  41358. For example, this function has to be used in 'ifunc' resolvers that
  41359. check for CPU type using the built-in functions '__builtin_cpu_is'
  41360. and '__builtin_cpu_supports', or in constructors on targets that
  41361. don't support constructor priority.
  41362. static void (*resolve_memcpy (void)) (void)
  41363. {
  41364. // ifunc resolvers fire before constructors, explicitly call the init
  41365. // function.
  41366. __builtin_cpu_init ();
  41367. if (__builtin_cpu_supports ("ssse3"))
  41368. return ssse3_memcpy; // super fast memcpy with ssse3 instructions.
  41369. else
  41370. return default_memcpy;
  41371. }
  41372. void *memcpy (void *, const void *, size_t)
  41373. __attribute__ ((ifunc ("resolve_memcpy")));
  41374. -- Built-in Function: int __builtin_cpu_is (const char *CPUNAME)
  41375. This function returns a positive integer if the run-time CPU is of
  41376. type CPUNAME and returns '0' otherwise. The following CPU names
  41377. can be detected:
  41378. 'amd'
  41379. AMD CPU.
  41380. 'intel'
  41381. Intel CPU.
  41382. 'atom'
  41383. Intel Atom CPU.
  41384. 'slm'
  41385. Intel Silvermont CPU.
  41386. 'core2'
  41387. Intel Core 2 CPU.
  41388. 'corei7'
  41389. Intel Core i7 CPU.
  41390. 'nehalem'
  41391. Intel Core i7 Nehalem CPU.
  41392. 'westmere'
  41393. Intel Core i7 Westmere CPU.
  41394. 'sandybridge'
  41395. Intel Core i7 Sandy Bridge CPU.
  41396. 'ivybridge'
  41397. Intel Core i7 Ivy Bridge CPU.
  41398. 'haswell'
  41399. Intel Core i7 Haswell CPU.
  41400. 'broadwell'
  41401. Intel Core i7 Broadwell CPU.
  41402. 'skylake'
  41403. Intel Core i7 Skylake CPU.
  41404. 'skylake-avx512'
  41405. Intel Core i7 Skylake AVX512 CPU.
  41406. 'cannonlake'
  41407. Intel Core i7 Cannon Lake CPU.
  41408. 'icelake-client'
  41409. Intel Core i7 Ice Lake Client CPU.
  41410. 'icelake-server'
  41411. Intel Core i7 Ice Lake Server CPU.
  41412. 'cascadelake'
  41413. Intel Core i7 Cascadelake CPU.
  41414. 'tigerlake'
  41415. Intel Core i7 Tigerlake CPU.
  41416. 'cooperlake'
  41417. Intel Core i7 Cooperlake CPU.
  41418. 'bonnell'
  41419. Intel Atom Bonnell CPU.
  41420. 'silvermont'
  41421. Intel Atom Silvermont CPU.
  41422. 'goldmont'
  41423. Intel Atom Goldmont CPU.
  41424. 'goldmont-plus'
  41425. Intel Atom Goldmont Plus CPU.
  41426. 'tremont'
  41427. Intel Atom Tremont CPU.
  41428. 'knl'
  41429. Intel Knights Landing CPU.
  41430. 'knm'
  41431. Intel Knights Mill CPU.
  41432. 'amdfam10h'
  41433. AMD Family 10h CPU.
  41434. 'barcelona'
  41435. AMD Family 10h Barcelona CPU.
  41436. 'shanghai'
  41437. AMD Family 10h Shanghai CPU.
  41438. 'istanbul'
  41439. AMD Family 10h Istanbul CPU.
  41440. 'btver1'
  41441. AMD Family 14h CPU.
  41442. 'amdfam15h'
  41443. AMD Family 15h CPU.
  41444. 'bdver1'
  41445. AMD Family 15h Bulldozer version 1.
  41446. 'bdver2'
  41447. AMD Family 15h Bulldozer version 2.
  41448. 'bdver3'
  41449. AMD Family 15h Bulldozer version 3.
  41450. 'bdver4'
  41451. AMD Family 15h Bulldozer version 4.
  41452. 'btver2'
  41453. AMD Family 16h CPU.
  41454. 'amdfam17h'
  41455. AMD Family 17h CPU.
  41456. 'znver1'
  41457. AMD Family 17h Zen version 1.
  41458. 'znver2'
  41459. AMD Family 17h Zen version 2.
  41460. Here is an example:
  41461. if (__builtin_cpu_is ("corei7"))
  41462. {
  41463. do_corei7 (); // Core i7 specific implementation.
  41464. }
  41465. else
  41466. {
  41467. do_generic (); // Generic implementation.
  41468. }
  41469. -- Built-in Function: int __builtin_cpu_supports (const char *FEATURE)
  41470. This function returns a positive integer if the run-time CPU
  41471. supports FEATURE and returns '0' otherwise. The following features
  41472. can be detected:
  41473. 'cmov'
  41474. CMOV instruction.
  41475. 'mmx'
  41476. MMX instructions.
  41477. 'popcnt'
  41478. POPCNT instruction.
  41479. 'sse'
  41480. SSE instructions.
  41481. 'sse2'
  41482. SSE2 instructions.
  41483. 'sse3'
  41484. SSE3 instructions.
  41485. 'ssse3'
  41486. SSSE3 instructions.
  41487. 'sse4.1'
  41488. SSE4.1 instructions.
  41489. 'sse4.2'
  41490. SSE4.2 instructions.
  41491. 'avx'
  41492. AVX instructions.
  41493. 'avx2'
  41494. AVX2 instructions.
  41495. 'sse4a'
  41496. SSE4A instructions.
  41497. 'fma4'
  41498. FMA4 instructions.
  41499. 'xop'
  41500. XOP instructions.
  41501. 'fma'
  41502. FMA instructions.
  41503. 'avx512f'
  41504. AVX512F instructions.
  41505. 'bmi'
  41506. BMI instructions.
  41507. 'bmi2'
  41508. BMI2 instructions.
  41509. 'aes'
  41510. AES instructions.
  41511. 'pclmul'
  41512. PCLMUL instructions.
  41513. 'avx512vl'
  41514. AVX512VL instructions.
  41515. 'avx512bw'
  41516. AVX512BW instructions.
  41517. 'avx512dq'
  41518. AVX512DQ instructions.
  41519. 'avx512cd'
  41520. AVX512CD instructions.
  41521. 'avx512er'
  41522. AVX512ER instructions.
  41523. 'avx512pf'
  41524. AVX512PF instructions.
  41525. 'avx512vbmi'
  41526. AVX512VBMI instructions.
  41527. 'avx512ifma'
  41528. AVX512IFMA instructions.
  41529. 'avx5124vnniw'
  41530. AVX5124VNNIW instructions.
  41531. 'avx5124fmaps'
  41532. AVX5124FMAPS instructions.
  41533. 'avx512vpopcntdq'
  41534. AVX512VPOPCNTDQ instructions.
  41535. 'avx512vbmi2'
  41536. AVX512VBMI2 instructions.
  41537. 'gfni'
  41538. GFNI instructions.
  41539. 'vpclmulqdq'
  41540. VPCLMULQDQ instructions.
  41541. 'avx512vnni'
  41542. AVX512VNNI instructions.
  41543. 'avx512bitalg'
  41544. AVX512BITALG instructions.
  41545. Here is an example:
  41546. if (__builtin_cpu_supports ("popcnt"))
  41547. {
  41548. asm("popcnt %1,%0" : "=r"(count) : "rm"(n) : "cc");
  41549. }
  41550. else
  41551. {
  41552. count = generic_countbits (n); //generic implementation.
  41553. }
  41554. The following built-in functions are made available by '-mmmx'. All of
  41555. them generate the machine instruction that is part of the name.
  41556. v8qi __builtin_ia32_paddb (v8qi, v8qi)
  41557. v4hi __builtin_ia32_paddw (v4hi, v4hi)
  41558. v2si __builtin_ia32_paddd (v2si, v2si)
  41559. v8qi __builtin_ia32_psubb (v8qi, v8qi)
  41560. v4hi __builtin_ia32_psubw (v4hi, v4hi)
  41561. v2si __builtin_ia32_psubd (v2si, v2si)
  41562. v8qi __builtin_ia32_paddsb (v8qi, v8qi)
  41563. v4hi __builtin_ia32_paddsw (v4hi, v4hi)
  41564. v8qi __builtin_ia32_psubsb (v8qi, v8qi)
  41565. v4hi __builtin_ia32_psubsw (v4hi, v4hi)
  41566. v8qi __builtin_ia32_paddusb (v8qi, v8qi)
  41567. v4hi __builtin_ia32_paddusw (v4hi, v4hi)
  41568. v8qi __builtin_ia32_psubusb (v8qi, v8qi)
  41569. v4hi __builtin_ia32_psubusw (v4hi, v4hi)
  41570. v4hi __builtin_ia32_pmullw (v4hi, v4hi)
  41571. v4hi __builtin_ia32_pmulhw (v4hi, v4hi)
  41572. di __builtin_ia32_pand (di, di)
  41573. di __builtin_ia32_pandn (di,di)
  41574. di __builtin_ia32_por (di, di)
  41575. di __builtin_ia32_pxor (di, di)
  41576. v8qi __builtin_ia32_pcmpeqb (v8qi, v8qi)
  41577. v4hi __builtin_ia32_pcmpeqw (v4hi, v4hi)
  41578. v2si __builtin_ia32_pcmpeqd (v2si, v2si)
  41579. v8qi __builtin_ia32_pcmpgtb (v8qi, v8qi)
  41580. v4hi __builtin_ia32_pcmpgtw (v4hi, v4hi)
  41581. v2si __builtin_ia32_pcmpgtd (v2si, v2si)
  41582. v8qi __builtin_ia32_punpckhbw (v8qi, v8qi)
  41583. v4hi __builtin_ia32_punpckhwd (v4hi, v4hi)
  41584. v2si __builtin_ia32_punpckhdq (v2si, v2si)
  41585. v8qi __builtin_ia32_punpcklbw (v8qi, v8qi)
  41586. v4hi __builtin_ia32_punpcklwd (v4hi, v4hi)
  41587. v2si __builtin_ia32_punpckldq (v2si, v2si)
  41588. v8qi __builtin_ia32_packsswb (v4hi, v4hi)
  41589. v4hi __builtin_ia32_packssdw (v2si, v2si)
  41590. v8qi __builtin_ia32_packuswb (v4hi, v4hi)
  41591. v4hi __builtin_ia32_psllw (v4hi, v4hi)
  41592. v2si __builtin_ia32_pslld (v2si, v2si)
  41593. v1di __builtin_ia32_psllq (v1di, v1di)
  41594. v4hi __builtin_ia32_psrlw (v4hi, v4hi)
  41595. v2si __builtin_ia32_psrld (v2si, v2si)
  41596. v1di __builtin_ia32_psrlq (v1di, v1di)
  41597. v4hi __builtin_ia32_psraw (v4hi, v4hi)
  41598. v2si __builtin_ia32_psrad (v2si, v2si)
  41599. v4hi __builtin_ia32_psllwi (v4hi, int)
  41600. v2si __builtin_ia32_pslldi (v2si, int)
  41601. v1di __builtin_ia32_psllqi (v1di, int)
  41602. v4hi __builtin_ia32_psrlwi (v4hi, int)
  41603. v2si __builtin_ia32_psrldi (v2si, int)
  41604. v1di __builtin_ia32_psrlqi (v1di, int)
  41605. v4hi __builtin_ia32_psrawi (v4hi, int)
  41606. v2si __builtin_ia32_psradi (v2si, int)
  41607. The following built-in functions are made available either with
  41608. '-msse', or with '-m3dnowa'. All of them generate the machine
  41609. instruction that is part of the name.
  41610. v4hi __builtin_ia32_pmulhuw (v4hi, v4hi)
  41611. v8qi __builtin_ia32_pavgb (v8qi, v8qi)
  41612. v4hi __builtin_ia32_pavgw (v4hi, v4hi)
  41613. v1di __builtin_ia32_psadbw (v8qi, v8qi)
  41614. v8qi __builtin_ia32_pmaxub (v8qi, v8qi)
  41615. v4hi __builtin_ia32_pmaxsw (v4hi, v4hi)
  41616. v8qi __builtin_ia32_pminub (v8qi, v8qi)
  41617. v4hi __builtin_ia32_pminsw (v4hi, v4hi)
  41618. int __builtin_ia32_pmovmskb (v8qi)
  41619. void __builtin_ia32_maskmovq (v8qi, v8qi, char *)
  41620. void __builtin_ia32_movntq (di *, di)
  41621. void __builtin_ia32_sfence (void)
  41622. The following built-in functions are available when '-msse' is used.
  41623. All of them generate the machine instruction that is part of the name.
  41624. int __builtin_ia32_comieq (v4sf, v4sf)
  41625. int __builtin_ia32_comineq (v4sf, v4sf)
  41626. int __builtin_ia32_comilt (v4sf, v4sf)
  41627. int __builtin_ia32_comile (v4sf, v4sf)
  41628. int __builtin_ia32_comigt (v4sf, v4sf)
  41629. int __builtin_ia32_comige (v4sf, v4sf)
  41630. int __builtin_ia32_ucomieq (v4sf, v4sf)
  41631. int __builtin_ia32_ucomineq (v4sf, v4sf)
  41632. int __builtin_ia32_ucomilt (v4sf, v4sf)
  41633. int __builtin_ia32_ucomile (v4sf, v4sf)
  41634. int __builtin_ia32_ucomigt (v4sf, v4sf)
  41635. int __builtin_ia32_ucomige (v4sf, v4sf)
  41636. v4sf __builtin_ia32_addps (v4sf, v4sf)
  41637. v4sf __builtin_ia32_subps (v4sf, v4sf)
  41638. v4sf __builtin_ia32_mulps (v4sf, v4sf)
  41639. v4sf __builtin_ia32_divps (v4sf, v4sf)
  41640. v4sf __builtin_ia32_addss (v4sf, v4sf)
  41641. v4sf __builtin_ia32_subss (v4sf, v4sf)
  41642. v4sf __builtin_ia32_mulss (v4sf, v4sf)
  41643. v4sf __builtin_ia32_divss (v4sf, v4sf)
  41644. v4sf __builtin_ia32_cmpeqps (v4sf, v4sf)
  41645. v4sf __builtin_ia32_cmpltps (v4sf, v4sf)
  41646. v4sf __builtin_ia32_cmpleps (v4sf, v4sf)
  41647. v4sf __builtin_ia32_cmpgtps (v4sf, v4sf)
  41648. v4sf __builtin_ia32_cmpgeps (v4sf, v4sf)
  41649. v4sf __builtin_ia32_cmpunordps (v4sf, v4sf)
  41650. v4sf __builtin_ia32_cmpneqps (v4sf, v4sf)
  41651. v4sf __builtin_ia32_cmpnltps (v4sf, v4sf)
  41652. v4sf __builtin_ia32_cmpnleps (v4sf, v4sf)
  41653. v4sf __builtin_ia32_cmpngtps (v4sf, v4sf)
  41654. v4sf __builtin_ia32_cmpngeps (v4sf, v4sf)
  41655. v4sf __builtin_ia32_cmpordps (v4sf, v4sf)
  41656. v4sf __builtin_ia32_cmpeqss (v4sf, v4sf)
  41657. v4sf __builtin_ia32_cmpltss (v4sf, v4sf)
  41658. v4sf __builtin_ia32_cmpless (v4sf, v4sf)
  41659. v4sf __builtin_ia32_cmpunordss (v4sf, v4sf)
  41660. v4sf __builtin_ia32_cmpneqss (v4sf, v4sf)
  41661. v4sf __builtin_ia32_cmpnltss (v4sf, v4sf)
  41662. v4sf __builtin_ia32_cmpnless (v4sf, v4sf)
  41663. v4sf __builtin_ia32_cmpordss (v4sf, v4sf)
  41664. v4sf __builtin_ia32_maxps (v4sf, v4sf)
  41665. v4sf __builtin_ia32_maxss (v4sf, v4sf)
  41666. v4sf __builtin_ia32_minps (v4sf, v4sf)
  41667. v4sf __builtin_ia32_minss (v4sf, v4sf)
  41668. v4sf __builtin_ia32_andps (v4sf, v4sf)
  41669. v4sf __builtin_ia32_andnps (v4sf, v4sf)
  41670. v4sf __builtin_ia32_orps (v4sf, v4sf)
  41671. v4sf __builtin_ia32_xorps (v4sf, v4sf)
  41672. v4sf __builtin_ia32_movss (v4sf, v4sf)
  41673. v4sf __builtin_ia32_movhlps (v4sf, v4sf)
  41674. v4sf __builtin_ia32_movlhps (v4sf, v4sf)
  41675. v4sf __builtin_ia32_unpckhps (v4sf, v4sf)
  41676. v4sf __builtin_ia32_unpcklps (v4sf, v4sf)
  41677. v4sf __builtin_ia32_cvtpi2ps (v4sf, v2si)
  41678. v4sf __builtin_ia32_cvtsi2ss (v4sf, int)
  41679. v2si __builtin_ia32_cvtps2pi (v4sf)
  41680. int __builtin_ia32_cvtss2si (v4sf)
  41681. v2si __builtin_ia32_cvttps2pi (v4sf)
  41682. int __builtin_ia32_cvttss2si (v4sf)
  41683. v4sf __builtin_ia32_rcpps (v4sf)
  41684. v4sf __builtin_ia32_rsqrtps (v4sf)
  41685. v4sf __builtin_ia32_sqrtps (v4sf)
  41686. v4sf __builtin_ia32_rcpss (v4sf)
  41687. v4sf __builtin_ia32_rsqrtss (v4sf)
  41688. v4sf __builtin_ia32_sqrtss (v4sf)
  41689. v4sf __builtin_ia32_shufps (v4sf, v4sf, int)
  41690. void __builtin_ia32_movntps (float *, v4sf)
  41691. int __builtin_ia32_movmskps (v4sf)
  41692. The following built-in functions are available when '-msse' is used.
  41693. 'v4sf __builtin_ia32_loadups (float *)'
  41694. Generates the 'movups' machine instruction as a load from memory.
  41695. 'void __builtin_ia32_storeups (float *, v4sf)'
  41696. Generates the 'movups' machine instruction as a store to memory.
  41697. 'v4sf __builtin_ia32_loadss (float *)'
  41698. Generates the 'movss' machine instruction as a load from memory.
  41699. 'v4sf __builtin_ia32_loadhps (v4sf, const v2sf *)'
  41700. Generates the 'movhps' machine instruction as a load from memory.
  41701. 'v4sf __builtin_ia32_loadlps (v4sf, const v2sf *)'
  41702. Generates the 'movlps' machine instruction as a load from memory
  41703. 'void __builtin_ia32_storehps (v2sf *, v4sf)'
  41704. Generates the 'movhps' machine instruction as a store to memory.
  41705. 'void __builtin_ia32_storelps (v2sf *, v4sf)'
  41706. Generates the 'movlps' machine instruction as a store to memory.
  41707. The following built-in functions are available when '-msse2' is used.
  41708. All of them generate the machine instruction that is part of the name.
  41709. int __builtin_ia32_comisdeq (v2df, v2df)
  41710. int __builtin_ia32_comisdlt (v2df, v2df)
  41711. int __builtin_ia32_comisdle (v2df, v2df)
  41712. int __builtin_ia32_comisdgt (v2df, v2df)
  41713. int __builtin_ia32_comisdge (v2df, v2df)
  41714. int __builtin_ia32_comisdneq (v2df, v2df)
  41715. int __builtin_ia32_ucomisdeq (v2df, v2df)
  41716. int __builtin_ia32_ucomisdlt (v2df, v2df)
  41717. int __builtin_ia32_ucomisdle (v2df, v2df)
  41718. int __builtin_ia32_ucomisdgt (v2df, v2df)
  41719. int __builtin_ia32_ucomisdge (v2df, v2df)
  41720. int __builtin_ia32_ucomisdneq (v2df, v2df)
  41721. v2df __builtin_ia32_cmpeqpd (v2df, v2df)
  41722. v2df __builtin_ia32_cmpltpd (v2df, v2df)
  41723. v2df __builtin_ia32_cmplepd (v2df, v2df)
  41724. v2df __builtin_ia32_cmpgtpd (v2df, v2df)
  41725. v2df __builtin_ia32_cmpgepd (v2df, v2df)
  41726. v2df __builtin_ia32_cmpunordpd (v2df, v2df)
  41727. v2df __builtin_ia32_cmpneqpd (v2df, v2df)
  41728. v2df __builtin_ia32_cmpnltpd (v2df, v2df)
  41729. v2df __builtin_ia32_cmpnlepd (v2df, v2df)
  41730. v2df __builtin_ia32_cmpngtpd (v2df, v2df)
  41731. v2df __builtin_ia32_cmpngepd (v2df, v2df)
  41732. v2df __builtin_ia32_cmpordpd (v2df, v2df)
  41733. v2df __builtin_ia32_cmpeqsd (v2df, v2df)
  41734. v2df __builtin_ia32_cmpltsd (v2df, v2df)
  41735. v2df __builtin_ia32_cmplesd (v2df, v2df)
  41736. v2df __builtin_ia32_cmpunordsd (v2df, v2df)
  41737. v2df __builtin_ia32_cmpneqsd (v2df, v2df)
  41738. v2df __builtin_ia32_cmpnltsd (v2df, v2df)
  41739. v2df __builtin_ia32_cmpnlesd (v2df, v2df)
  41740. v2df __builtin_ia32_cmpordsd (v2df, v2df)
  41741. v2di __builtin_ia32_paddq (v2di, v2di)
  41742. v2di __builtin_ia32_psubq (v2di, v2di)
  41743. v2df __builtin_ia32_addpd (v2df, v2df)
  41744. v2df __builtin_ia32_subpd (v2df, v2df)
  41745. v2df __builtin_ia32_mulpd (v2df, v2df)
  41746. v2df __builtin_ia32_divpd (v2df, v2df)
  41747. v2df __builtin_ia32_addsd (v2df, v2df)
  41748. v2df __builtin_ia32_subsd (v2df, v2df)
  41749. v2df __builtin_ia32_mulsd (v2df, v2df)
  41750. v2df __builtin_ia32_divsd (v2df, v2df)
  41751. v2df __builtin_ia32_minpd (v2df, v2df)
  41752. v2df __builtin_ia32_maxpd (v2df, v2df)
  41753. v2df __builtin_ia32_minsd (v2df, v2df)
  41754. v2df __builtin_ia32_maxsd (v2df, v2df)
  41755. v2df __builtin_ia32_andpd (v2df, v2df)
  41756. v2df __builtin_ia32_andnpd (v2df, v2df)
  41757. v2df __builtin_ia32_orpd (v2df, v2df)
  41758. v2df __builtin_ia32_xorpd (v2df, v2df)
  41759. v2df __builtin_ia32_movsd (v2df, v2df)
  41760. v2df __builtin_ia32_unpckhpd (v2df, v2df)
  41761. v2df __builtin_ia32_unpcklpd (v2df, v2df)
  41762. v16qi __builtin_ia32_paddb128 (v16qi, v16qi)
  41763. v8hi __builtin_ia32_paddw128 (v8hi, v8hi)
  41764. v4si __builtin_ia32_paddd128 (v4si, v4si)
  41765. v2di __builtin_ia32_paddq128 (v2di, v2di)
  41766. v16qi __builtin_ia32_psubb128 (v16qi, v16qi)
  41767. v8hi __builtin_ia32_psubw128 (v8hi, v8hi)
  41768. v4si __builtin_ia32_psubd128 (v4si, v4si)
  41769. v2di __builtin_ia32_psubq128 (v2di, v2di)
  41770. v8hi __builtin_ia32_pmullw128 (v8hi, v8hi)
  41771. v8hi __builtin_ia32_pmulhw128 (v8hi, v8hi)
  41772. v2di __builtin_ia32_pand128 (v2di, v2di)
  41773. v2di __builtin_ia32_pandn128 (v2di, v2di)
  41774. v2di __builtin_ia32_por128 (v2di, v2di)
  41775. v2di __builtin_ia32_pxor128 (v2di, v2di)
  41776. v16qi __builtin_ia32_pavgb128 (v16qi, v16qi)
  41777. v8hi __builtin_ia32_pavgw128 (v8hi, v8hi)
  41778. v16qi __builtin_ia32_pcmpeqb128 (v16qi, v16qi)
  41779. v8hi __builtin_ia32_pcmpeqw128 (v8hi, v8hi)
  41780. v4si __builtin_ia32_pcmpeqd128 (v4si, v4si)
  41781. v16qi __builtin_ia32_pcmpgtb128 (v16qi, v16qi)
  41782. v8hi __builtin_ia32_pcmpgtw128 (v8hi, v8hi)
  41783. v4si __builtin_ia32_pcmpgtd128 (v4si, v4si)
  41784. v16qi __builtin_ia32_pmaxub128 (v16qi, v16qi)
  41785. v8hi __builtin_ia32_pmaxsw128 (v8hi, v8hi)
  41786. v16qi __builtin_ia32_pminub128 (v16qi, v16qi)
  41787. v8hi __builtin_ia32_pminsw128 (v8hi, v8hi)
  41788. v16qi __builtin_ia32_punpckhbw128 (v16qi, v16qi)
  41789. v8hi __builtin_ia32_punpckhwd128 (v8hi, v8hi)
  41790. v4si __builtin_ia32_punpckhdq128 (v4si, v4si)
  41791. v2di __builtin_ia32_punpckhqdq128 (v2di, v2di)
  41792. v16qi __builtin_ia32_punpcklbw128 (v16qi, v16qi)
  41793. v8hi __builtin_ia32_punpcklwd128 (v8hi, v8hi)
  41794. v4si __builtin_ia32_punpckldq128 (v4si, v4si)
  41795. v2di __builtin_ia32_punpcklqdq128 (v2di, v2di)
  41796. v16qi __builtin_ia32_packsswb128 (v8hi, v8hi)
  41797. v8hi __builtin_ia32_packssdw128 (v4si, v4si)
  41798. v16qi __builtin_ia32_packuswb128 (v8hi, v8hi)
  41799. v8hi __builtin_ia32_pmulhuw128 (v8hi, v8hi)
  41800. void __builtin_ia32_maskmovdqu (v16qi, v16qi)
  41801. v2df __builtin_ia32_loadupd (double *)
  41802. void __builtin_ia32_storeupd (double *, v2df)
  41803. v2df __builtin_ia32_loadhpd (v2df, double const *)
  41804. v2df __builtin_ia32_loadlpd (v2df, double const *)
  41805. int __builtin_ia32_movmskpd (v2df)
  41806. int __builtin_ia32_pmovmskb128 (v16qi)
  41807. void __builtin_ia32_movnti (int *, int)
  41808. void __builtin_ia32_movnti64 (long long int *, long long int)
  41809. void __builtin_ia32_movntpd (double *, v2df)
  41810. void __builtin_ia32_movntdq (v2df *, v2df)
  41811. v4si __builtin_ia32_pshufd (v4si, int)
  41812. v8hi __builtin_ia32_pshuflw (v8hi, int)
  41813. v8hi __builtin_ia32_pshufhw (v8hi, int)
  41814. v2di __builtin_ia32_psadbw128 (v16qi, v16qi)
  41815. v2df __builtin_ia32_sqrtpd (v2df)
  41816. v2df __builtin_ia32_sqrtsd (v2df)
  41817. v2df __builtin_ia32_shufpd (v2df, v2df, int)
  41818. v2df __builtin_ia32_cvtdq2pd (v4si)
  41819. v4sf __builtin_ia32_cvtdq2ps (v4si)
  41820. v4si __builtin_ia32_cvtpd2dq (v2df)
  41821. v2si __builtin_ia32_cvtpd2pi (v2df)
  41822. v4sf __builtin_ia32_cvtpd2ps (v2df)
  41823. v4si __builtin_ia32_cvttpd2dq (v2df)
  41824. v2si __builtin_ia32_cvttpd2pi (v2df)
  41825. v2df __builtin_ia32_cvtpi2pd (v2si)
  41826. int __builtin_ia32_cvtsd2si (v2df)
  41827. int __builtin_ia32_cvttsd2si (v2df)
  41828. long long __builtin_ia32_cvtsd2si64 (v2df)
  41829. long long __builtin_ia32_cvttsd2si64 (v2df)
  41830. v4si __builtin_ia32_cvtps2dq (v4sf)
  41831. v2df __builtin_ia32_cvtps2pd (v4sf)
  41832. v4si __builtin_ia32_cvttps2dq (v4sf)
  41833. v2df __builtin_ia32_cvtsi2sd (v2df, int)
  41834. v2df __builtin_ia32_cvtsi642sd (v2df, long long)
  41835. v4sf __builtin_ia32_cvtsd2ss (v4sf, v2df)
  41836. v2df __builtin_ia32_cvtss2sd (v2df, v4sf)
  41837. void __builtin_ia32_clflush (const void *)
  41838. void __builtin_ia32_lfence (void)
  41839. void __builtin_ia32_mfence (void)
  41840. v16qi __builtin_ia32_loaddqu (const char *)
  41841. void __builtin_ia32_storedqu (char *, v16qi)
  41842. v1di __builtin_ia32_pmuludq (v2si, v2si)
  41843. v2di __builtin_ia32_pmuludq128 (v4si, v4si)
  41844. v8hi __builtin_ia32_psllw128 (v8hi, v8hi)
  41845. v4si __builtin_ia32_pslld128 (v4si, v4si)
  41846. v2di __builtin_ia32_psllq128 (v2di, v2di)
  41847. v8hi __builtin_ia32_psrlw128 (v8hi, v8hi)
  41848. v4si __builtin_ia32_psrld128 (v4si, v4si)
  41849. v2di __builtin_ia32_psrlq128 (v2di, v2di)
  41850. v8hi __builtin_ia32_psraw128 (v8hi, v8hi)
  41851. v4si __builtin_ia32_psrad128 (v4si, v4si)
  41852. v2di __builtin_ia32_pslldqi128 (v2di, int)
  41853. v8hi __builtin_ia32_psllwi128 (v8hi, int)
  41854. v4si __builtin_ia32_pslldi128 (v4si, int)
  41855. v2di __builtin_ia32_psllqi128 (v2di, int)
  41856. v2di __builtin_ia32_psrldqi128 (v2di, int)
  41857. v8hi __builtin_ia32_psrlwi128 (v8hi, int)
  41858. v4si __builtin_ia32_psrldi128 (v4si, int)
  41859. v2di __builtin_ia32_psrlqi128 (v2di, int)
  41860. v8hi __builtin_ia32_psrawi128 (v8hi, int)
  41861. v4si __builtin_ia32_psradi128 (v4si, int)
  41862. v4si __builtin_ia32_pmaddwd128 (v8hi, v8hi)
  41863. v2di __builtin_ia32_movq128 (v2di)
  41864. The following built-in functions are available when '-msse3' is used.
  41865. All of them generate the machine instruction that is part of the name.
  41866. v2df __builtin_ia32_addsubpd (v2df, v2df)
  41867. v4sf __builtin_ia32_addsubps (v4sf, v4sf)
  41868. v2df __builtin_ia32_haddpd (v2df, v2df)
  41869. v4sf __builtin_ia32_haddps (v4sf, v4sf)
  41870. v2df __builtin_ia32_hsubpd (v2df, v2df)
  41871. v4sf __builtin_ia32_hsubps (v4sf, v4sf)
  41872. v16qi __builtin_ia32_lddqu (char const *)
  41873. void __builtin_ia32_monitor (void *, unsigned int, unsigned int)
  41874. v4sf __builtin_ia32_movshdup (v4sf)
  41875. v4sf __builtin_ia32_movsldup (v4sf)
  41876. void __builtin_ia32_mwait (unsigned int, unsigned int)
  41877. The following built-in functions are available when '-mssse3' is used.
  41878. All of them generate the machine instruction that is part of the name.
  41879. v2si __builtin_ia32_phaddd (v2si, v2si)
  41880. v4hi __builtin_ia32_phaddw (v4hi, v4hi)
  41881. v4hi __builtin_ia32_phaddsw (v4hi, v4hi)
  41882. v2si __builtin_ia32_phsubd (v2si, v2si)
  41883. v4hi __builtin_ia32_phsubw (v4hi, v4hi)
  41884. v4hi __builtin_ia32_phsubsw (v4hi, v4hi)
  41885. v4hi __builtin_ia32_pmaddubsw (v8qi, v8qi)
  41886. v4hi __builtin_ia32_pmulhrsw (v4hi, v4hi)
  41887. v8qi __builtin_ia32_pshufb (v8qi, v8qi)
  41888. v8qi __builtin_ia32_psignb (v8qi, v8qi)
  41889. v2si __builtin_ia32_psignd (v2si, v2si)
  41890. v4hi __builtin_ia32_psignw (v4hi, v4hi)
  41891. v1di __builtin_ia32_palignr (v1di, v1di, int)
  41892. v8qi __builtin_ia32_pabsb (v8qi)
  41893. v2si __builtin_ia32_pabsd (v2si)
  41894. v4hi __builtin_ia32_pabsw (v4hi)
  41895. The following built-in functions are available when '-mssse3' is used.
  41896. All of them generate the machine instruction that is part of the name.
  41897. v4si __builtin_ia32_phaddd128 (v4si, v4si)
  41898. v8hi __builtin_ia32_phaddw128 (v8hi, v8hi)
  41899. v8hi __builtin_ia32_phaddsw128 (v8hi, v8hi)
  41900. v4si __builtin_ia32_phsubd128 (v4si, v4si)
  41901. v8hi __builtin_ia32_phsubw128 (v8hi, v8hi)
  41902. v8hi __builtin_ia32_phsubsw128 (v8hi, v8hi)
  41903. v8hi __builtin_ia32_pmaddubsw128 (v16qi, v16qi)
  41904. v8hi __builtin_ia32_pmulhrsw128 (v8hi, v8hi)
  41905. v16qi __builtin_ia32_pshufb128 (v16qi, v16qi)
  41906. v16qi __builtin_ia32_psignb128 (v16qi, v16qi)
  41907. v4si __builtin_ia32_psignd128 (v4si, v4si)
  41908. v8hi __builtin_ia32_psignw128 (v8hi, v8hi)
  41909. v2di __builtin_ia32_palignr128 (v2di, v2di, int)
  41910. v16qi __builtin_ia32_pabsb128 (v16qi)
  41911. v4si __builtin_ia32_pabsd128 (v4si)
  41912. v8hi __builtin_ia32_pabsw128 (v8hi)
  41913. The following built-in functions are available when '-msse4.1' is used.
  41914. All of them generate the machine instruction that is part of the name.
  41915. v2df __builtin_ia32_blendpd (v2df, v2df, const int)
  41916. v4sf __builtin_ia32_blendps (v4sf, v4sf, const int)
  41917. v2df __builtin_ia32_blendvpd (v2df, v2df, v2df)
  41918. v4sf __builtin_ia32_blendvps (v4sf, v4sf, v4sf)
  41919. v2df __builtin_ia32_dppd (v2df, v2df, const int)
  41920. v4sf __builtin_ia32_dpps (v4sf, v4sf, const int)
  41921. v4sf __builtin_ia32_insertps128 (v4sf, v4sf, const int)
  41922. v2di __builtin_ia32_movntdqa (v2di *);
  41923. v16qi __builtin_ia32_mpsadbw128 (v16qi, v16qi, const int)
  41924. v8hi __builtin_ia32_packusdw128 (v4si, v4si)
  41925. v16qi __builtin_ia32_pblendvb128 (v16qi, v16qi, v16qi)
  41926. v8hi __builtin_ia32_pblendw128 (v8hi, v8hi, const int)
  41927. v2di __builtin_ia32_pcmpeqq (v2di, v2di)
  41928. v8hi __builtin_ia32_phminposuw128 (v8hi)
  41929. v16qi __builtin_ia32_pmaxsb128 (v16qi, v16qi)
  41930. v4si __builtin_ia32_pmaxsd128 (v4si, v4si)
  41931. v4si __builtin_ia32_pmaxud128 (v4si, v4si)
  41932. v8hi __builtin_ia32_pmaxuw128 (v8hi, v8hi)
  41933. v16qi __builtin_ia32_pminsb128 (v16qi, v16qi)
  41934. v4si __builtin_ia32_pminsd128 (v4si, v4si)
  41935. v4si __builtin_ia32_pminud128 (v4si, v4si)
  41936. v8hi __builtin_ia32_pminuw128 (v8hi, v8hi)
  41937. v4si __builtin_ia32_pmovsxbd128 (v16qi)
  41938. v2di __builtin_ia32_pmovsxbq128 (v16qi)
  41939. v8hi __builtin_ia32_pmovsxbw128 (v16qi)
  41940. v2di __builtin_ia32_pmovsxdq128 (v4si)
  41941. v4si __builtin_ia32_pmovsxwd128 (v8hi)
  41942. v2di __builtin_ia32_pmovsxwq128 (v8hi)
  41943. v4si __builtin_ia32_pmovzxbd128 (v16qi)
  41944. v2di __builtin_ia32_pmovzxbq128 (v16qi)
  41945. v8hi __builtin_ia32_pmovzxbw128 (v16qi)
  41946. v2di __builtin_ia32_pmovzxdq128 (v4si)
  41947. v4si __builtin_ia32_pmovzxwd128 (v8hi)
  41948. v2di __builtin_ia32_pmovzxwq128 (v8hi)
  41949. v2di __builtin_ia32_pmuldq128 (v4si, v4si)
  41950. v4si __builtin_ia32_pmulld128 (v4si, v4si)
  41951. int __builtin_ia32_ptestc128 (v2di, v2di)
  41952. int __builtin_ia32_ptestnzc128 (v2di, v2di)
  41953. int __builtin_ia32_ptestz128 (v2di, v2di)
  41954. v2df __builtin_ia32_roundpd (v2df, const int)
  41955. v4sf __builtin_ia32_roundps (v4sf, const int)
  41956. v2df __builtin_ia32_roundsd (v2df, v2df, const int)
  41957. v4sf __builtin_ia32_roundss (v4sf, v4sf, const int)
  41958. The following built-in functions are available when '-msse4.1' is used.
  41959. 'v4sf __builtin_ia32_vec_set_v4sf (v4sf, float, const int)'
  41960. Generates the 'insertps' machine instruction.
  41961. 'int __builtin_ia32_vec_ext_v16qi (v16qi, const int)'
  41962. Generates the 'pextrb' machine instruction.
  41963. 'v16qi __builtin_ia32_vec_set_v16qi (v16qi, int, const int)'
  41964. Generates the 'pinsrb' machine instruction.
  41965. 'v4si __builtin_ia32_vec_set_v4si (v4si, int, const int)'
  41966. Generates the 'pinsrd' machine instruction.
  41967. 'v2di __builtin_ia32_vec_set_v2di (v2di, long long, const int)'
  41968. Generates the 'pinsrq' machine instruction in 64bit mode.
  41969. The following built-in functions are changed to generate new SSE4.1
  41970. instructions when '-msse4.1' is used.
  41971. 'float __builtin_ia32_vec_ext_v4sf (v4sf, const int)'
  41972. Generates the 'extractps' machine instruction.
  41973. 'int __builtin_ia32_vec_ext_v4si (v4si, const int)'
  41974. Generates the 'pextrd' machine instruction.
  41975. 'long long __builtin_ia32_vec_ext_v2di (v2di, const int)'
  41976. Generates the 'pextrq' machine instruction in 64bit mode.
  41977. The following built-in functions are available when '-msse4.2' is used.
  41978. All of them generate the machine instruction that is part of the name.
  41979. v16qi __builtin_ia32_pcmpestrm128 (v16qi, int, v16qi, int, const int)
  41980. int __builtin_ia32_pcmpestri128 (v16qi, int, v16qi, int, const int)
  41981. int __builtin_ia32_pcmpestria128 (v16qi, int, v16qi, int, const int)
  41982. int __builtin_ia32_pcmpestric128 (v16qi, int, v16qi, int, const int)
  41983. int __builtin_ia32_pcmpestrio128 (v16qi, int, v16qi, int, const int)
  41984. int __builtin_ia32_pcmpestris128 (v16qi, int, v16qi, int, const int)
  41985. int __builtin_ia32_pcmpestriz128 (v16qi, int, v16qi, int, const int)
  41986. v16qi __builtin_ia32_pcmpistrm128 (v16qi, v16qi, const int)
  41987. int __builtin_ia32_pcmpistri128 (v16qi, v16qi, const int)
  41988. int __builtin_ia32_pcmpistria128 (v16qi, v16qi, const int)
  41989. int __builtin_ia32_pcmpistric128 (v16qi, v16qi, const int)
  41990. int __builtin_ia32_pcmpistrio128 (v16qi, v16qi, const int)
  41991. int __builtin_ia32_pcmpistris128 (v16qi, v16qi, const int)
  41992. int __builtin_ia32_pcmpistriz128 (v16qi, v16qi, const int)
  41993. v2di __builtin_ia32_pcmpgtq (v2di, v2di)
  41994. The following built-in functions are available when '-msse4.2' is used.
  41995. 'unsigned int __builtin_ia32_crc32qi (unsigned int, unsigned char)'
  41996. Generates the 'crc32b' machine instruction.
  41997. 'unsigned int __builtin_ia32_crc32hi (unsigned int, unsigned short)'
  41998. Generates the 'crc32w' machine instruction.
  41999. 'unsigned int __builtin_ia32_crc32si (unsigned int, unsigned int)'
  42000. Generates the 'crc32l' machine instruction.
  42001. 'unsigned long long __builtin_ia32_crc32di (unsigned long long, unsigned long long)'
  42002. Generates the 'crc32q' machine instruction.
  42003. The following built-in functions are changed to generate new SSE4.2
  42004. instructions when '-msse4.2' is used.
  42005. 'int __builtin_popcount (unsigned int)'
  42006. Generates the 'popcntl' machine instruction.
  42007. 'int __builtin_popcountl (unsigned long)'
  42008. Generates the 'popcntl' or 'popcntq' machine instruction, depending
  42009. on the size of 'unsigned long'.
  42010. 'int __builtin_popcountll (unsigned long long)'
  42011. Generates the 'popcntq' machine instruction.
  42012. The following built-in functions are available when '-mavx' is used.
  42013. All of them generate the machine instruction that is part of the name.
  42014. v4df __builtin_ia32_addpd256 (v4df,v4df)
  42015. v8sf __builtin_ia32_addps256 (v8sf,v8sf)
  42016. v4df __builtin_ia32_addsubpd256 (v4df,v4df)
  42017. v8sf __builtin_ia32_addsubps256 (v8sf,v8sf)
  42018. v4df __builtin_ia32_andnpd256 (v4df,v4df)
  42019. v8sf __builtin_ia32_andnps256 (v8sf,v8sf)
  42020. v4df __builtin_ia32_andpd256 (v4df,v4df)
  42021. v8sf __builtin_ia32_andps256 (v8sf,v8sf)
  42022. v4df __builtin_ia32_blendpd256 (v4df,v4df,int)
  42023. v8sf __builtin_ia32_blendps256 (v8sf,v8sf,int)
  42024. v4df __builtin_ia32_blendvpd256 (v4df,v4df,v4df)
  42025. v8sf __builtin_ia32_blendvps256 (v8sf,v8sf,v8sf)
  42026. v2df __builtin_ia32_cmppd (v2df,v2df,int)
  42027. v4df __builtin_ia32_cmppd256 (v4df,v4df,int)
  42028. v4sf __builtin_ia32_cmpps (v4sf,v4sf,int)
  42029. v8sf __builtin_ia32_cmpps256 (v8sf,v8sf,int)
  42030. v2df __builtin_ia32_cmpsd (v2df,v2df,int)
  42031. v4sf __builtin_ia32_cmpss (v4sf,v4sf,int)
  42032. v4df __builtin_ia32_cvtdq2pd256 (v4si)
  42033. v8sf __builtin_ia32_cvtdq2ps256 (v8si)
  42034. v4si __builtin_ia32_cvtpd2dq256 (v4df)
  42035. v4sf __builtin_ia32_cvtpd2ps256 (v4df)
  42036. v8si __builtin_ia32_cvtps2dq256 (v8sf)
  42037. v4df __builtin_ia32_cvtps2pd256 (v4sf)
  42038. v4si __builtin_ia32_cvttpd2dq256 (v4df)
  42039. v8si __builtin_ia32_cvttps2dq256 (v8sf)
  42040. v4df __builtin_ia32_divpd256 (v4df,v4df)
  42041. v8sf __builtin_ia32_divps256 (v8sf,v8sf)
  42042. v8sf __builtin_ia32_dpps256 (v8sf,v8sf,int)
  42043. v4df __builtin_ia32_haddpd256 (v4df,v4df)
  42044. v8sf __builtin_ia32_haddps256 (v8sf,v8sf)
  42045. v4df __builtin_ia32_hsubpd256 (v4df,v4df)
  42046. v8sf __builtin_ia32_hsubps256 (v8sf,v8sf)
  42047. v32qi __builtin_ia32_lddqu256 (pcchar)
  42048. v32qi __builtin_ia32_loaddqu256 (pcchar)
  42049. v4df __builtin_ia32_loadupd256 (pcdouble)
  42050. v8sf __builtin_ia32_loadups256 (pcfloat)
  42051. v2df __builtin_ia32_maskloadpd (pcv2df,v2df)
  42052. v4df __builtin_ia32_maskloadpd256 (pcv4df,v4df)
  42053. v4sf __builtin_ia32_maskloadps (pcv4sf,v4sf)
  42054. v8sf __builtin_ia32_maskloadps256 (pcv8sf,v8sf)
  42055. void __builtin_ia32_maskstorepd (pv2df,v2df,v2df)
  42056. void __builtin_ia32_maskstorepd256 (pv4df,v4df,v4df)
  42057. void __builtin_ia32_maskstoreps (pv4sf,v4sf,v4sf)
  42058. void __builtin_ia32_maskstoreps256 (pv8sf,v8sf,v8sf)
  42059. v4df __builtin_ia32_maxpd256 (v4df,v4df)
  42060. v8sf __builtin_ia32_maxps256 (v8sf,v8sf)
  42061. v4df __builtin_ia32_minpd256 (v4df,v4df)
  42062. v8sf __builtin_ia32_minps256 (v8sf,v8sf)
  42063. v4df __builtin_ia32_movddup256 (v4df)
  42064. int __builtin_ia32_movmskpd256 (v4df)
  42065. int __builtin_ia32_movmskps256 (v8sf)
  42066. v8sf __builtin_ia32_movshdup256 (v8sf)
  42067. v8sf __builtin_ia32_movsldup256 (v8sf)
  42068. v4df __builtin_ia32_mulpd256 (v4df,v4df)
  42069. v8sf __builtin_ia32_mulps256 (v8sf,v8sf)
  42070. v4df __builtin_ia32_orpd256 (v4df,v4df)
  42071. v8sf __builtin_ia32_orps256 (v8sf,v8sf)
  42072. v2df __builtin_ia32_pd_pd256 (v4df)
  42073. v4df __builtin_ia32_pd256_pd (v2df)
  42074. v4sf __builtin_ia32_ps_ps256 (v8sf)
  42075. v8sf __builtin_ia32_ps256_ps (v4sf)
  42076. int __builtin_ia32_ptestc256 (v4di,v4di,ptest)
  42077. int __builtin_ia32_ptestnzc256 (v4di,v4di,ptest)
  42078. int __builtin_ia32_ptestz256 (v4di,v4di,ptest)
  42079. v8sf __builtin_ia32_rcpps256 (v8sf)
  42080. v4df __builtin_ia32_roundpd256 (v4df,int)
  42081. v8sf __builtin_ia32_roundps256 (v8sf,int)
  42082. v8sf __builtin_ia32_rsqrtps_nr256 (v8sf)
  42083. v8sf __builtin_ia32_rsqrtps256 (v8sf)
  42084. v4df __builtin_ia32_shufpd256 (v4df,v4df,int)
  42085. v8sf __builtin_ia32_shufps256 (v8sf,v8sf,int)
  42086. v4si __builtin_ia32_si_si256 (v8si)
  42087. v8si __builtin_ia32_si256_si (v4si)
  42088. v4df __builtin_ia32_sqrtpd256 (v4df)
  42089. v8sf __builtin_ia32_sqrtps_nr256 (v8sf)
  42090. v8sf __builtin_ia32_sqrtps256 (v8sf)
  42091. void __builtin_ia32_storedqu256 (pchar,v32qi)
  42092. void __builtin_ia32_storeupd256 (pdouble,v4df)
  42093. void __builtin_ia32_storeups256 (pfloat,v8sf)
  42094. v4df __builtin_ia32_subpd256 (v4df,v4df)
  42095. v8sf __builtin_ia32_subps256 (v8sf,v8sf)
  42096. v4df __builtin_ia32_unpckhpd256 (v4df,v4df)
  42097. v8sf __builtin_ia32_unpckhps256 (v8sf,v8sf)
  42098. v4df __builtin_ia32_unpcklpd256 (v4df,v4df)
  42099. v8sf __builtin_ia32_unpcklps256 (v8sf,v8sf)
  42100. v4df __builtin_ia32_vbroadcastf128_pd256 (pcv2df)
  42101. v8sf __builtin_ia32_vbroadcastf128_ps256 (pcv4sf)
  42102. v4df __builtin_ia32_vbroadcastsd256 (pcdouble)
  42103. v4sf __builtin_ia32_vbroadcastss (pcfloat)
  42104. v8sf __builtin_ia32_vbroadcastss256 (pcfloat)
  42105. v2df __builtin_ia32_vextractf128_pd256 (v4df,int)
  42106. v4sf __builtin_ia32_vextractf128_ps256 (v8sf,int)
  42107. v4si __builtin_ia32_vextractf128_si256 (v8si,int)
  42108. v4df __builtin_ia32_vinsertf128_pd256 (v4df,v2df,int)
  42109. v8sf __builtin_ia32_vinsertf128_ps256 (v8sf,v4sf,int)
  42110. v8si __builtin_ia32_vinsertf128_si256 (v8si,v4si,int)
  42111. v4df __builtin_ia32_vperm2f128_pd256 (v4df,v4df,int)
  42112. v8sf __builtin_ia32_vperm2f128_ps256 (v8sf,v8sf,int)
  42113. v8si __builtin_ia32_vperm2f128_si256 (v8si,v8si,int)
  42114. v2df __builtin_ia32_vpermil2pd (v2df,v2df,v2di,int)
  42115. v4df __builtin_ia32_vpermil2pd256 (v4df,v4df,v4di,int)
  42116. v4sf __builtin_ia32_vpermil2ps (v4sf,v4sf,v4si,int)
  42117. v8sf __builtin_ia32_vpermil2ps256 (v8sf,v8sf,v8si,int)
  42118. v2df __builtin_ia32_vpermilpd (v2df,int)
  42119. v4df __builtin_ia32_vpermilpd256 (v4df,int)
  42120. v4sf __builtin_ia32_vpermilps (v4sf,int)
  42121. v8sf __builtin_ia32_vpermilps256 (v8sf,int)
  42122. v2df __builtin_ia32_vpermilvarpd (v2df,v2di)
  42123. v4df __builtin_ia32_vpermilvarpd256 (v4df,v4di)
  42124. v4sf __builtin_ia32_vpermilvarps (v4sf,v4si)
  42125. v8sf __builtin_ia32_vpermilvarps256 (v8sf,v8si)
  42126. int __builtin_ia32_vtestcpd (v2df,v2df,ptest)
  42127. int __builtin_ia32_vtestcpd256 (v4df,v4df,ptest)
  42128. int __builtin_ia32_vtestcps (v4sf,v4sf,ptest)
  42129. int __builtin_ia32_vtestcps256 (v8sf,v8sf,ptest)
  42130. int __builtin_ia32_vtestnzcpd (v2df,v2df,ptest)
  42131. int __builtin_ia32_vtestnzcpd256 (v4df,v4df,ptest)
  42132. int __builtin_ia32_vtestnzcps (v4sf,v4sf,ptest)
  42133. int __builtin_ia32_vtestnzcps256 (v8sf,v8sf,ptest)
  42134. int __builtin_ia32_vtestzpd (v2df,v2df,ptest)
  42135. int __builtin_ia32_vtestzpd256 (v4df,v4df,ptest)
  42136. int __builtin_ia32_vtestzps (v4sf,v4sf,ptest)
  42137. int __builtin_ia32_vtestzps256 (v8sf,v8sf,ptest)
  42138. void __builtin_ia32_vzeroall (void)
  42139. void __builtin_ia32_vzeroupper (void)
  42140. v4df __builtin_ia32_xorpd256 (v4df,v4df)
  42141. v8sf __builtin_ia32_xorps256 (v8sf,v8sf)
  42142. The following built-in functions are available when '-mavx2' is used.
  42143. All of them generate the machine instruction that is part of the name.
  42144. v32qi __builtin_ia32_mpsadbw256 (v32qi,v32qi,int)
  42145. v32qi __builtin_ia32_pabsb256 (v32qi)
  42146. v16hi __builtin_ia32_pabsw256 (v16hi)
  42147. v8si __builtin_ia32_pabsd256 (v8si)
  42148. v16hi __builtin_ia32_packssdw256 (v8si,v8si)
  42149. v32qi __builtin_ia32_packsswb256 (v16hi,v16hi)
  42150. v16hi __builtin_ia32_packusdw256 (v8si,v8si)
  42151. v32qi __builtin_ia32_packuswb256 (v16hi,v16hi)
  42152. v32qi __builtin_ia32_paddb256 (v32qi,v32qi)
  42153. v16hi __builtin_ia32_paddw256 (v16hi,v16hi)
  42154. v8si __builtin_ia32_paddd256 (v8si,v8si)
  42155. v4di __builtin_ia32_paddq256 (v4di,v4di)
  42156. v32qi __builtin_ia32_paddsb256 (v32qi,v32qi)
  42157. v16hi __builtin_ia32_paddsw256 (v16hi,v16hi)
  42158. v32qi __builtin_ia32_paddusb256 (v32qi,v32qi)
  42159. v16hi __builtin_ia32_paddusw256 (v16hi,v16hi)
  42160. v4di __builtin_ia32_palignr256 (v4di,v4di,int)
  42161. v4di __builtin_ia32_andsi256 (v4di,v4di)
  42162. v4di __builtin_ia32_andnotsi256 (v4di,v4di)
  42163. v32qi __builtin_ia32_pavgb256 (v32qi,v32qi)
  42164. v16hi __builtin_ia32_pavgw256 (v16hi,v16hi)
  42165. v32qi __builtin_ia32_pblendvb256 (v32qi,v32qi,v32qi)
  42166. v16hi __builtin_ia32_pblendw256 (v16hi,v16hi,int)
  42167. v32qi __builtin_ia32_pcmpeqb256 (v32qi,v32qi)
  42168. v16hi __builtin_ia32_pcmpeqw256 (v16hi,v16hi)
  42169. v8si __builtin_ia32_pcmpeqd256 (c8si,v8si)
  42170. v4di __builtin_ia32_pcmpeqq256 (v4di,v4di)
  42171. v32qi __builtin_ia32_pcmpgtb256 (v32qi,v32qi)
  42172. v16hi __builtin_ia32_pcmpgtw256 (16hi,v16hi)
  42173. v8si __builtin_ia32_pcmpgtd256 (v8si,v8si)
  42174. v4di __builtin_ia32_pcmpgtq256 (v4di,v4di)
  42175. v16hi __builtin_ia32_phaddw256 (v16hi,v16hi)
  42176. v8si __builtin_ia32_phaddd256 (v8si,v8si)
  42177. v16hi __builtin_ia32_phaddsw256 (v16hi,v16hi)
  42178. v16hi __builtin_ia32_phsubw256 (v16hi,v16hi)
  42179. v8si __builtin_ia32_phsubd256 (v8si,v8si)
  42180. v16hi __builtin_ia32_phsubsw256 (v16hi,v16hi)
  42181. v32qi __builtin_ia32_pmaddubsw256 (v32qi,v32qi)
  42182. v16hi __builtin_ia32_pmaddwd256 (v16hi,v16hi)
  42183. v32qi __builtin_ia32_pmaxsb256 (v32qi,v32qi)
  42184. v16hi __builtin_ia32_pmaxsw256 (v16hi,v16hi)
  42185. v8si __builtin_ia32_pmaxsd256 (v8si,v8si)
  42186. v32qi __builtin_ia32_pmaxub256 (v32qi,v32qi)
  42187. v16hi __builtin_ia32_pmaxuw256 (v16hi,v16hi)
  42188. v8si __builtin_ia32_pmaxud256 (v8si,v8si)
  42189. v32qi __builtin_ia32_pminsb256 (v32qi,v32qi)
  42190. v16hi __builtin_ia32_pminsw256 (v16hi,v16hi)
  42191. v8si __builtin_ia32_pminsd256 (v8si,v8si)
  42192. v32qi __builtin_ia32_pminub256 (v32qi,v32qi)
  42193. v16hi __builtin_ia32_pminuw256 (v16hi,v16hi)
  42194. v8si __builtin_ia32_pminud256 (v8si,v8si)
  42195. int __builtin_ia32_pmovmskb256 (v32qi)
  42196. v16hi __builtin_ia32_pmovsxbw256 (v16qi)
  42197. v8si __builtin_ia32_pmovsxbd256 (v16qi)
  42198. v4di __builtin_ia32_pmovsxbq256 (v16qi)
  42199. v8si __builtin_ia32_pmovsxwd256 (v8hi)
  42200. v4di __builtin_ia32_pmovsxwq256 (v8hi)
  42201. v4di __builtin_ia32_pmovsxdq256 (v4si)
  42202. v16hi __builtin_ia32_pmovzxbw256 (v16qi)
  42203. v8si __builtin_ia32_pmovzxbd256 (v16qi)
  42204. v4di __builtin_ia32_pmovzxbq256 (v16qi)
  42205. v8si __builtin_ia32_pmovzxwd256 (v8hi)
  42206. v4di __builtin_ia32_pmovzxwq256 (v8hi)
  42207. v4di __builtin_ia32_pmovzxdq256 (v4si)
  42208. v4di __builtin_ia32_pmuldq256 (v8si,v8si)
  42209. v16hi __builtin_ia32_pmulhrsw256 (v16hi, v16hi)
  42210. v16hi __builtin_ia32_pmulhuw256 (v16hi,v16hi)
  42211. v16hi __builtin_ia32_pmulhw256 (v16hi,v16hi)
  42212. v16hi __builtin_ia32_pmullw256 (v16hi,v16hi)
  42213. v8si __builtin_ia32_pmulld256 (v8si,v8si)
  42214. v4di __builtin_ia32_pmuludq256 (v8si,v8si)
  42215. v4di __builtin_ia32_por256 (v4di,v4di)
  42216. v16hi __builtin_ia32_psadbw256 (v32qi,v32qi)
  42217. v32qi __builtin_ia32_pshufb256 (v32qi,v32qi)
  42218. v8si __builtin_ia32_pshufd256 (v8si,int)
  42219. v16hi __builtin_ia32_pshufhw256 (v16hi,int)
  42220. v16hi __builtin_ia32_pshuflw256 (v16hi,int)
  42221. v32qi __builtin_ia32_psignb256 (v32qi,v32qi)
  42222. v16hi __builtin_ia32_psignw256 (v16hi,v16hi)
  42223. v8si __builtin_ia32_psignd256 (v8si,v8si)
  42224. v4di __builtin_ia32_pslldqi256 (v4di,int)
  42225. v16hi __builtin_ia32_psllwi256 (16hi,int)
  42226. v16hi __builtin_ia32_psllw256(v16hi,v8hi)
  42227. v8si __builtin_ia32_pslldi256 (v8si,int)
  42228. v8si __builtin_ia32_pslld256(v8si,v4si)
  42229. v4di __builtin_ia32_psllqi256 (v4di,int)
  42230. v4di __builtin_ia32_psllq256(v4di,v2di)
  42231. v16hi __builtin_ia32_psrawi256 (v16hi,int)
  42232. v16hi __builtin_ia32_psraw256 (v16hi,v8hi)
  42233. v8si __builtin_ia32_psradi256 (v8si,int)
  42234. v8si __builtin_ia32_psrad256 (v8si,v4si)
  42235. v4di __builtin_ia32_psrldqi256 (v4di, int)
  42236. v16hi __builtin_ia32_psrlwi256 (v16hi,int)
  42237. v16hi __builtin_ia32_psrlw256 (v16hi,v8hi)
  42238. v8si __builtin_ia32_psrldi256 (v8si,int)
  42239. v8si __builtin_ia32_psrld256 (v8si,v4si)
  42240. v4di __builtin_ia32_psrlqi256 (v4di,int)
  42241. v4di __builtin_ia32_psrlq256(v4di,v2di)
  42242. v32qi __builtin_ia32_psubb256 (v32qi,v32qi)
  42243. v32hi __builtin_ia32_psubw256 (v16hi,v16hi)
  42244. v8si __builtin_ia32_psubd256 (v8si,v8si)
  42245. v4di __builtin_ia32_psubq256 (v4di,v4di)
  42246. v32qi __builtin_ia32_psubsb256 (v32qi,v32qi)
  42247. v16hi __builtin_ia32_psubsw256 (v16hi,v16hi)
  42248. v32qi __builtin_ia32_psubusb256 (v32qi,v32qi)
  42249. v16hi __builtin_ia32_psubusw256 (v16hi,v16hi)
  42250. v32qi __builtin_ia32_punpckhbw256 (v32qi,v32qi)
  42251. v16hi __builtin_ia32_punpckhwd256 (v16hi,v16hi)
  42252. v8si __builtin_ia32_punpckhdq256 (v8si,v8si)
  42253. v4di __builtin_ia32_punpckhqdq256 (v4di,v4di)
  42254. v32qi __builtin_ia32_punpcklbw256 (v32qi,v32qi)
  42255. v16hi __builtin_ia32_punpcklwd256 (v16hi,v16hi)
  42256. v8si __builtin_ia32_punpckldq256 (v8si,v8si)
  42257. v4di __builtin_ia32_punpcklqdq256 (v4di,v4di)
  42258. v4di __builtin_ia32_pxor256 (v4di,v4di)
  42259. v4di __builtin_ia32_movntdqa256 (pv4di)
  42260. v4sf __builtin_ia32_vbroadcastss_ps (v4sf)
  42261. v8sf __builtin_ia32_vbroadcastss_ps256 (v4sf)
  42262. v4df __builtin_ia32_vbroadcastsd_pd256 (v2df)
  42263. v4di __builtin_ia32_vbroadcastsi256 (v2di)
  42264. v4si __builtin_ia32_pblendd128 (v4si,v4si)
  42265. v8si __builtin_ia32_pblendd256 (v8si,v8si)
  42266. v32qi __builtin_ia32_pbroadcastb256 (v16qi)
  42267. v16hi __builtin_ia32_pbroadcastw256 (v8hi)
  42268. v8si __builtin_ia32_pbroadcastd256 (v4si)
  42269. v4di __builtin_ia32_pbroadcastq256 (v2di)
  42270. v16qi __builtin_ia32_pbroadcastb128 (v16qi)
  42271. v8hi __builtin_ia32_pbroadcastw128 (v8hi)
  42272. v4si __builtin_ia32_pbroadcastd128 (v4si)
  42273. v2di __builtin_ia32_pbroadcastq128 (v2di)
  42274. v8si __builtin_ia32_permvarsi256 (v8si,v8si)
  42275. v4df __builtin_ia32_permdf256 (v4df,int)
  42276. v8sf __builtin_ia32_permvarsf256 (v8sf,v8sf)
  42277. v4di __builtin_ia32_permdi256 (v4di,int)
  42278. v4di __builtin_ia32_permti256 (v4di,v4di,int)
  42279. v4di __builtin_ia32_extract128i256 (v4di,int)
  42280. v4di __builtin_ia32_insert128i256 (v4di,v2di,int)
  42281. v8si __builtin_ia32_maskloadd256 (pcv8si,v8si)
  42282. v4di __builtin_ia32_maskloadq256 (pcv4di,v4di)
  42283. v4si __builtin_ia32_maskloadd (pcv4si,v4si)
  42284. v2di __builtin_ia32_maskloadq (pcv2di,v2di)
  42285. void __builtin_ia32_maskstored256 (pv8si,v8si,v8si)
  42286. void __builtin_ia32_maskstoreq256 (pv4di,v4di,v4di)
  42287. void __builtin_ia32_maskstored (pv4si,v4si,v4si)
  42288. void __builtin_ia32_maskstoreq (pv2di,v2di,v2di)
  42289. v8si __builtin_ia32_psllv8si (v8si,v8si)
  42290. v4si __builtin_ia32_psllv4si (v4si,v4si)
  42291. v4di __builtin_ia32_psllv4di (v4di,v4di)
  42292. v2di __builtin_ia32_psllv2di (v2di,v2di)
  42293. v8si __builtin_ia32_psrav8si (v8si,v8si)
  42294. v4si __builtin_ia32_psrav4si (v4si,v4si)
  42295. v8si __builtin_ia32_psrlv8si (v8si,v8si)
  42296. v4si __builtin_ia32_psrlv4si (v4si,v4si)
  42297. v4di __builtin_ia32_psrlv4di (v4di,v4di)
  42298. v2di __builtin_ia32_psrlv2di (v2di,v2di)
  42299. v2df __builtin_ia32_gathersiv2df (v2df, pcdouble,v4si,v2df,int)
  42300. v4df __builtin_ia32_gathersiv4df (v4df, pcdouble,v4si,v4df,int)
  42301. v2df __builtin_ia32_gatherdiv2df (v2df, pcdouble,v2di,v2df,int)
  42302. v4df __builtin_ia32_gatherdiv4df (v4df, pcdouble,v4di,v4df,int)
  42303. v4sf __builtin_ia32_gathersiv4sf (v4sf, pcfloat,v4si,v4sf,int)
  42304. v8sf __builtin_ia32_gathersiv8sf (v8sf, pcfloat,v8si,v8sf,int)
  42305. v4sf __builtin_ia32_gatherdiv4sf (v4sf, pcfloat,v2di,v4sf,int)
  42306. v4sf __builtin_ia32_gatherdiv4sf256 (v4sf, pcfloat,v4di,v4sf,int)
  42307. v2di __builtin_ia32_gathersiv2di (v2di, pcint64,v4si,v2di,int)
  42308. v4di __builtin_ia32_gathersiv4di (v4di, pcint64,v4si,v4di,int)
  42309. v2di __builtin_ia32_gatherdiv2di (v2di, pcint64,v2di,v2di,int)
  42310. v4di __builtin_ia32_gatherdiv4di (v4di, pcint64,v4di,v4di,int)
  42311. v4si __builtin_ia32_gathersiv4si (v4si, pcint,v4si,v4si,int)
  42312. v8si __builtin_ia32_gathersiv8si (v8si, pcint,v8si,v8si,int)
  42313. v4si __builtin_ia32_gatherdiv4si (v4si, pcint,v2di,v4si,int)
  42314. v4si __builtin_ia32_gatherdiv4si256 (v4si, pcint,v4di,v4si,int)
  42315. The following built-in functions are available when '-maes' is used.
  42316. All of them generate the machine instruction that is part of the name.
  42317. v2di __builtin_ia32_aesenc128 (v2di, v2di)
  42318. v2di __builtin_ia32_aesenclast128 (v2di, v2di)
  42319. v2di __builtin_ia32_aesdec128 (v2di, v2di)
  42320. v2di __builtin_ia32_aesdeclast128 (v2di, v2di)
  42321. v2di __builtin_ia32_aeskeygenassist128 (v2di, const int)
  42322. v2di __builtin_ia32_aesimc128 (v2di)
  42323. The following built-in function is available when '-mpclmul' is used.
  42324. 'v2di __builtin_ia32_pclmulqdq128 (v2di, v2di, const int)'
  42325. Generates the 'pclmulqdq' machine instruction.
  42326. The following built-in function is available when '-mfsgsbase' is used.
  42327. All of them generate the machine instruction that is part of the name.
  42328. unsigned int __builtin_ia32_rdfsbase32 (void)
  42329. unsigned long long __builtin_ia32_rdfsbase64 (void)
  42330. unsigned int __builtin_ia32_rdgsbase32 (void)
  42331. unsigned long long __builtin_ia32_rdgsbase64 (void)
  42332. void _writefsbase_u32 (unsigned int)
  42333. void _writefsbase_u64 (unsigned long long)
  42334. void _writegsbase_u32 (unsigned int)
  42335. void _writegsbase_u64 (unsigned long long)
  42336. The following built-in function is available when '-mrdrnd' is used.
  42337. All of them generate the machine instruction that is part of the name.
  42338. unsigned int __builtin_ia32_rdrand16_step (unsigned short *)
  42339. unsigned int __builtin_ia32_rdrand32_step (unsigned int *)
  42340. unsigned int __builtin_ia32_rdrand64_step (unsigned long long *)
  42341. The following built-in function is available when '-mptwrite' is used.
  42342. All of them generate the machine instruction that is part of the name.
  42343. void __builtin_ia32_ptwrite32 (unsigned)
  42344. void __builtin_ia32_ptwrite64 (unsigned long long)
  42345. The following built-in functions are available when '-msse4a' is used.
  42346. All of them generate the machine instruction that is part of the name.
  42347. void __builtin_ia32_movntsd (double *, v2df)
  42348. void __builtin_ia32_movntss (float *, v4sf)
  42349. v2di __builtin_ia32_extrq (v2di, v16qi)
  42350. v2di __builtin_ia32_extrqi (v2di, const unsigned int, const unsigned int)
  42351. v2di __builtin_ia32_insertq (v2di, v2di)
  42352. v2di __builtin_ia32_insertqi (v2di, v2di, const unsigned int, const unsigned int)
  42353. The following built-in functions are available when '-mxop' is used.
  42354. v2df __builtin_ia32_vfrczpd (v2df)
  42355. v4sf __builtin_ia32_vfrczps (v4sf)
  42356. v2df __builtin_ia32_vfrczsd (v2df)
  42357. v4sf __builtin_ia32_vfrczss (v4sf)
  42358. v4df __builtin_ia32_vfrczpd256 (v4df)
  42359. v8sf __builtin_ia32_vfrczps256 (v8sf)
  42360. v2di __builtin_ia32_vpcmov (v2di, v2di, v2di)
  42361. v2di __builtin_ia32_vpcmov_v2di (v2di, v2di, v2di)
  42362. v4si __builtin_ia32_vpcmov_v4si (v4si, v4si, v4si)
  42363. v8hi __builtin_ia32_vpcmov_v8hi (v8hi, v8hi, v8hi)
  42364. v16qi __builtin_ia32_vpcmov_v16qi (v16qi, v16qi, v16qi)
  42365. v2df __builtin_ia32_vpcmov_v2df (v2df, v2df, v2df)
  42366. v4sf __builtin_ia32_vpcmov_v4sf (v4sf, v4sf, v4sf)
  42367. v4di __builtin_ia32_vpcmov_v4di256 (v4di, v4di, v4di)
  42368. v8si __builtin_ia32_vpcmov_v8si256 (v8si, v8si, v8si)
  42369. v16hi __builtin_ia32_vpcmov_v16hi256 (v16hi, v16hi, v16hi)
  42370. v32qi __builtin_ia32_vpcmov_v32qi256 (v32qi, v32qi, v32qi)
  42371. v4df __builtin_ia32_vpcmov_v4df256 (v4df, v4df, v4df)
  42372. v8sf __builtin_ia32_vpcmov_v8sf256 (v8sf, v8sf, v8sf)
  42373. v16qi __builtin_ia32_vpcomeqb (v16qi, v16qi)
  42374. v8hi __builtin_ia32_vpcomeqw (v8hi, v8hi)
  42375. v4si __builtin_ia32_vpcomeqd (v4si, v4si)
  42376. v2di __builtin_ia32_vpcomeqq (v2di, v2di)
  42377. v16qi __builtin_ia32_vpcomequb (v16qi, v16qi)
  42378. v4si __builtin_ia32_vpcomequd (v4si, v4si)
  42379. v2di __builtin_ia32_vpcomequq (v2di, v2di)
  42380. v8hi __builtin_ia32_vpcomequw (v8hi, v8hi)
  42381. v8hi __builtin_ia32_vpcomeqw (v8hi, v8hi)
  42382. v16qi __builtin_ia32_vpcomfalseb (v16qi, v16qi)
  42383. v4si __builtin_ia32_vpcomfalsed (v4si, v4si)
  42384. v2di __builtin_ia32_vpcomfalseq (v2di, v2di)
  42385. v16qi __builtin_ia32_vpcomfalseub (v16qi, v16qi)
  42386. v4si __builtin_ia32_vpcomfalseud (v4si, v4si)
  42387. v2di __builtin_ia32_vpcomfalseuq (v2di, v2di)
  42388. v8hi __builtin_ia32_vpcomfalseuw (v8hi, v8hi)
  42389. v8hi __builtin_ia32_vpcomfalsew (v8hi, v8hi)
  42390. v16qi __builtin_ia32_vpcomgeb (v16qi, v16qi)
  42391. v4si __builtin_ia32_vpcomged (v4si, v4si)
  42392. v2di __builtin_ia32_vpcomgeq (v2di, v2di)
  42393. v16qi __builtin_ia32_vpcomgeub (v16qi, v16qi)
  42394. v4si __builtin_ia32_vpcomgeud (v4si, v4si)
  42395. v2di __builtin_ia32_vpcomgeuq (v2di, v2di)
  42396. v8hi __builtin_ia32_vpcomgeuw (v8hi, v8hi)
  42397. v8hi __builtin_ia32_vpcomgew (v8hi, v8hi)
  42398. v16qi __builtin_ia32_vpcomgtb (v16qi, v16qi)
  42399. v4si __builtin_ia32_vpcomgtd (v4si, v4si)
  42400. v2di __builtin_ia32_vpcomgtq (v2di, v2di)
  42401. v16qi __builtin_ia32_vpcomgtub (v16qi, v16qi)
  42402. v4si __builtin_ia32_vpcomgtud (v4si, v4si)
  42403. v2di __builtin_ia32_vpcomgtuq (v2di, v2di)
  42404. v8hi __builtin_ia32_vpcomgtuw (v8hi, v8hi)
  42405. v8hi __builtin_ia32_vpcomgtw (v8hi, v8hi)
  42406. v16qi __builtin_ia32_vpcomleb (v16qi, v16qi)
  42407. v4si __builtin_ia32_vpcomled (v4si, v4si)
  42408. v2di __builtin_ia32_vpcomleq (v2di, v2di)
  42409. v16qi __builtin_ia32_vpcomleub (v16qi, v16qi)
  42410. v4si __builtin_ia32_vpcomleud (v4si, v4si)
  42411. v2di __builtin_ia32_vpcomleuq (v2di, v2di)
  42412. v8hi __builtin_ia32_vpcomleuw (v8hi, v8hi)
  42413. v8hi __builtin_ia32_vpcomlew (v8hi, v8hi)
  42414. v16qi __builtin_ia32_vpcomltb (v16qi, v16qi)
  42415. v4si __builtin_ia32_vpcomltd (v4si, v4si)
  42416. v2di __builtin_ia32_vpcomltq (v2di, v2di)
  42417. v16qi __builtin_ia32_vpcomltub (v16qi, v16qi)
  42418. v4si __builtin_ia32_vpcomltud (v4si, v4si)
  42419. v2di __builtin_ia32_vpcomltuq (v2di, v2di)
  42420. v8hi __builtin_ia32_vpcomltuw (v8hi, v8hi)
  42421. v8hi __builtin_ia32_vpcomltw (v8hi, v8hi)
  42422. v16qi __builtin_ia32_vpcomneb (v16qi, v16qi)
  42423. v4si __builtin_ia32_vpcomned (v4si, v4si)
  42424. v2di __builtin_ia32_vpcomneq (v2di, v2di)
  42425. v16qi __builtin_ia32_vpcomneub (v16qi, v16qi)
  42426. v4si __builtin_ia32_vpcomneud (v4si, v4si)
  42427. v2di __builtin_ia32_vpcomneuq (v2di, v2di)
  42428. v8hi __builtin_ia32_vpcomneuw (v8hi, v8hi)
  42429. v8hi __builtin_ia32_vpcomnew (v8hi, v8hi)
  42430. v16qi __builtin_ia32_vpcomtrueb (v16qi, v16qi)
  42431. v4si __builtin_ia32_vpcomtrued (v4si, v4si)
  42432. v2di __builtin_ia32_vpcomtrueq (v2di, v2di)
  42433. v16qi __builtin_ia32_vpcomtrueub (v16qi, v16qi)
  42434. v4si __builtin_ia32_vpcomtrueud (v4si, v4si)
  42435. v2di __builtin_ia32_vpcomtrueuq (v2di, v2di)
  42436. v8hi __builtin_ia32_vpcomtrueuw (v8hi, v8hi)
  42437. v8hi __builtin_ia32_vpcomtruew (v8hi, v8hi)
  42438. v4si __builtin_ia32_vphaddbd (v16qi)
  42439. v2di __builtin_ia32_vphaddbq (v16qi)
  42440. v8hi __builtin_ia32_vphaddbw (v16qi)
  42441. v2di __builtin_ia32_vphadddq (v4si)
  42442. v4si __builtin_ia32_vphaddubd (v16qi)
  42443. v2di __builtin_ia32_vphaddubq (v16qi)
  42444. v8hi __builtin_ia32_vphaddubw (v16qi)
  42445. v2di __builtin_ia32_vphaddudq (v4si)
  42446. v4si __builtin_ia32_vphadduwd (v8hi)
  42447. v2di __builtin_ia32_vphadduwq (v8hi)
  42448. v4si __builtin_ia32_vphaddwd (v8hi)
  42449. v2di __builtin_ia32_vphaddwq (v8hi)
  42450. v8hi __builtin_ia32_vphsubbw (v16qi)
  42451. v2di __builtin_ia32_vphsubdq (v4si)
  42452. v4si __builtin_ia32_vphsubwd (v8hi)
  42453. v4si __builtin_ia32_vpmacsdd (v4si, v4si, v4si)
  42454. v2di __builtin_ia32_vpmacsdqh (v4si, v4si, v2di)
  42455. v2di __builtin_ia32_vpmacsdql (v4si, v4si, v2di)
  42456. v4si __builtin_ia32_vpmacssdd (v4si, v4si, v4si)
  42457. v2di __builtin_ia32_vpmacssdqh (v4si, v4si, v2di)
  42458. v2di __builtin_ia32_vpmacssdql (v4si, v4si, v2di)
  42459. v4si __builtin_ia32_vpmacsswd (v8hi, v8hi, v4si)
  42460. v8hi __builtin_ia32_vpmacssww (v8hi, v8hi, v8hi)
  42461. v4si __builtin_ia32_vpmacswd (v8hi, v8hi, v4si)
  42462. v8hi __builtin_ia32_vpmacsww (v8hi, v8hi, v8hi)
  42463. v4si __builtin_ia32_vpmadcsswd (v8hi, v8hi, v4si)
  42464. v4si __builtin_ia32_vpmadcswd (v8hi, v8hi, v4si)
  42465. v16qi __builtin_ia32_vpperm (v16qi, v16qi, v16qi)
  42466. v16qi __builtin_ia32_vprotb (v16qi, v16qi)
  42467. v4si __builtin_ia32_vprotd (v4si, v4si)
  42468. v2di __builtin_ia32_vprotq (v2di, v2di)
  42469. v8hi __builtin_ia32_vprotw (v8hi, v8hi)
  42470. v16qi __builtin_ia32_vpshab (v16qi, v16qi)
  42471. v4si __builtin_ia32_vpshad (v4si, v4si)
  42472. v2di __builtin_ia32_vpshaq (v2di, v2di)
  42473. v8hi __builtin_ia32_vpshaw (v8hi, v8hi)
  42474. v16qi __builtin_ia32_vpshlb (v16qi, v16qi)
  42475. v4si __builtin_ia32_vpshld (v4si, v4si)
  42476. v2di __builtin_ia32_vpshlq (v2di, v2di)
  42477. v8hi __builtin_ia32_vpshlw (v8hi, v8hi)
  42478. The following built-in functions are available when '-mfma4' is used.
  42479. All of them generate the machine instruction that is part of the name.
  42480. v2df __builtin_ia32_vfmaddpd (v2df, v2df, v2df)
  42481. v4sf __builtin_ia32_vfmaddps (v4sf, v4sf, v4sf)
  42482. v2df __builtin_ia32_vfmaddsd (v2df, v2df, v2df)
  42483. v4sf __builtin_ia32_vfmaddss (v4sf, v4sf, v4sf)
  42484. v2df __builtin_ia32_vfmsubpd (v2df, v2df, v2df)
  42485. v4sf __builtin_ia32_vfmsubps (v4sf, v4sf, v4sf)
  42486. v2df __builtin_ia32_vfmsubsd (v2df, v2df, v2df)
  42487. v4sf __builtin_ia32_vfmsubss (v4sf, v4sf, v4sf)
  42488. v2df __builtin_ia32_vfnmaddpd (v2df, v2df, v2df)
  42489. v4sf __builtin_ia32_vfnmaddps (v4sf, v4sf, v4sf)
  42490. v2df __builtin_ia32_vfnmaddsd (v2df, v2df, v2df)
  42491. v4sf __builtin_ia32_vfnmaddss (v4sf, v4sf, v4sf)
  42492. v2df __builtin_ia32_vfnmsubpd (v2df, v2df, v2df)
  42493. v4sf __builtin_ia32_vfnmsubps (v4sf, v4sf, v4sf)
  42494. v2df __builtin_ia32_vfnmsubsd (v2df, v2df, v2df)
  42495. v4sf __builtin_ia32_vfnmsubss (v4sf, v4sf, v4sf)
  42496. v2df __builtin_ia32_vfmaddsubpd (v2df, v2df, v2df)
  42497. v4sf __builtin_ia32_vfmaddsubps (v4sf, v4sf, v4sf)
  42498. v2df __builtin_ia32_vfmsubaddpd (v2df, v2df, v2df)
  42499. v4sf __builtin_ia32_vfmsubaddps (v4sf, v4sf, v4sf)
  42500. v4df __builtin_ia32_vfmaddpd256 (v4df, v4df, v4df)
  42501. v8sf __builtin_ia32_vfmaddps256 (v8sf, v8sf, v8sf)
  42502. v4df __builtin_ia32_vfmsubpd256 (v4df, v4df, v4df)
  42503. v8sf __builtin_ia32_vfmsubps256 (v8sf, v8sf, v8sf)
  42504. v4df __builtin_ia32_vfnmaddpd256 (v4df, v4df, v4df)
  42505. v8sf __builtin_ia32_vfnmaddps256 (v8sf, v8sf, v8sf)
  42506. v4df __builtin_ia32_vfnmsubpd256 (v4df, v4df, v4df)
  42507. v8sf __builtin_ia32_vfnmsubps256 (v8sf, v8sf, v8sf)
  42508. v4df __builtin_ia32_vfmaddsubpd256 (v4df, v4df, v4df)
  42509. v8sf __builtin_ia32_vfmaddsubps256 (v8sf, v8sf, v8sf)
  42510. v4df __builtin_ia32_vfmsubaddpd256 (v4df, v4df, v4df)
  42511. v8sf __builtin_ia32_vfmsubaddps256 (v8sf, v8sf, v8sf)
  42512. The following built-in functions are available when '-mlwp' is used.
  42513. void __builtin_ia32_llwpcb16 (void *);
  42514. void __builtin_ia32_llwpcb32 (void *);
  42515. void __builtin_ia32_llwpcb64 (void *);
  42516. void * __builtin_ia32_llwpcb16 (void);
  42517. void * __builtin_ia32_llwpcb32 (void);
  42518. void * __builtin_ia32_llwpcb64 (void);
  42519. void __builtin_ia32_lwpval16 (unsigned short, unsigned int, unsigned short)
  42520. void __builtin_ia32_lwpval32 (unsigned int, unsigned int, unsigned int)
  42521. void __builtin_ia32_lwpval64 (unsigned __int64, unsigned int, unsigned int)
  42522. unsigned char __builtin_ia32_lwpins16 (unsigned short, unsigned int, unsigned short)
  42523. unsigned char __builtin_ia32_lwpins32 (unsigned int, unsigned int, unsigned int)
  42524. unsigned char __builtin_ia32_lwpins64 (unsigned __int64, unsigned int, unsigned int)
  42525. The following built-in functions are available when '-mbmi' is used.
  42526. All of them generate the machine instruction that is part of the name.
  42527. unsigned int __builtin_ia32_bextr_u32(unsigned int, unsigned int);
  42528. unsigned long long __builtin_ia32_bextr_u64 (unsigned long long, unsigned long long);
  42529. The following built-in functions are available when '-mbmi2' is used.
  42530. All of them generate the machine instruction that is part of the name.
  42531. unsigned int _bzhi_u32 (unsigned int, unsigned int)
  42532. unsigned int _pdep_u32 (unsigned int, unsigned int)
  42533. unsigned int _pext_u32 (unsigned int, unsigned int)
  42534. unsigned long long _bzhi_u64 (unsigned long long, unsigned long long)
  42535. unsigned long long _pdep_u64 (unsigned long long, unsigned long long)
  42536. unsigned long long _pext_u64 (unsigned long long, unsigned long long)
  42537. The following built-in functions are available when '-mlzcnt' is used.
  42538. All of them generate the machine instruction that is part of the name.
  42539. unsigned short __builtin_ia32_lzcnt_u16(unsigned short);
  42540. unsigned int __builtin_ia32_lzcnt_u32(unsigned int);
  42541. unsigned long long __builtin_ia32_lzcnt_u64 (unsigned long long);
  42542. The following built-in functions are available when '-mfxsr' is used.
  42543. All of them generate the machine instruction that is part of the name.
  42544. void __builtin_ia32_fxsave (void *)
  42545. void __builtin_ia32_fxrstor (void *)
  42546. void __builtin_ia32_fxsave64 (void *)
  42547. void __builtin_ia32_fxrstor64 (void *)
  42548. The following built-in functions are available when '-mxsave' is used.
  42549. All of them generate the machine instruction that is part of the name.
  42550. void __builtin_ia32_xsave (void *, long long)
  42551. void __builtin_ia32_xrstor (void *, long long)
  42552. void __builtin_ia32_xsave64 (void *, long long)
  42553. void __builtin_ia32_xrstor64 (void *, long long)
  42554. The following built-in functions are available when '-mxsaveopt' is
  42555. used. All of them generate the machine instruction that is part of the
  42556. name.
  42557. void __builtin_ia32_xsaveopt (void *, long long)
  42558. void __builtin_ia32_xsaveopt64 (void *, long long)
  42559. The following built-in functions are available when '-mtbm' is used.
  42560. Both of them generate the immediate form of the bextr machine
  42561. instruction.
  42562. unsigned int __builtin_ia32_bextri_u32 (unsigned int,
  42563. const unsigned int);
  42564. unsigned long long __builtin_ia32_bextri_u64 (unsigned long long,
  42565. const unsigned long long);
  42566. The following built-in functions are available when '-m3dnow' is used.
  42567. All of them generate the machine instruction that is part of the name.
  42568. void __builtin_ia32_femms (void)
  42569. v8qi __builtin_ia32_pavgusb (v8qi, v8qi)
  42570. v2si __builtin_ia32_pf2id (v2sf)
  42571. v2sf __builtin_ia32_pfacc (v2sf, v2sf)
  42572. v2sf __builtin_ia32_pfadd (v2sf, v2sf)
  42573. v2si __builtin_ia32_pfcmpeq (v2sf, v2sf)
  42574. v2si __builtin_ia32_pfcmpge (v2sf, v2sf)
  42575. v2si __builtin_ia32_pfcmpgt (v2sf, v2sf)
  42576. v2sf __builtin_ia32_pfmax (v2sf, v2sf)
  42577. v2sf __builtin_ia32_pfmin (v2sf, v2sf)
  42578. v2sf __builtin_ia32_pfmul (v2sf, v2sf)
  42579. v2sf __builtin_ia32_pfrcp (v2sf)
  42580. v2sf __builtin_ia32_pfrcpit1 (v2sf, v2sf)
  42581. v2sf __builtin_ia32_pfrcpit2 (v2sf, v2sf)
  42582. v2sf __builtin_ia32_pfrsqrt (v2sf)
  42583. v2sf __builtin_ia32_pfsub (v2sf, v2sf)
  42584. v2sf __builtin_ia32_pfsubr (v2sf, v2sf)
  42585. v2sf __builtin_ia32_pi2fd (v2si)
  42586. v4hi __builtin_ia32_pmulhrw (v4hi, v4hi)
  42587. The following built-in functions are available when '-m3dnowa' is used.
  42588. All of them generate the machine instruction that is part of the name.
  42589. v2si __builtin_ia32_pf2iw (v2sf)
  42590. v2sf __builtin_ia32_pfnacc (v2sf, v2sf)
  42591. v2sf __builtin_ia32_pfpnacc (v2sf, v2sf)
  42592. v2sf __builtin_ia32_pi2fw (v2si)
  42593. v2sf __builtin_ia32_pswapdsf (v2sf)
  42594. v2si __builtin_ia32_pswapdsi (v2si)
  42595. The following built-in functions are available when '-mrtm' is used
  42596. They are used for restricted transactional memory. These are the
  42597. internal low level functions. Normally the functions in *note x86
  42598. transactional memory intrinsics:: should be used instead.
  42599. int __builtin_ia32_xbegin ()
  42600. void __builtin_ia32_xend ()
  42601. void __builtin_ia32_xabort (status)
  42602. int __builtin_ia32_xtest ()
  42603. The following built-in functions are available when '-mmwaitx' is used.
  42604. All of them generate the machine instruction that is part of the name.
  42605. void __builtin_ia32_monitorx (void *, unsigned int, unsigned int)
  42606. void __builtin_ia32_mwaitx (unsigned int, unsigned int, unsigned int)
  42607. The following built-in functions are available when '-mclzero' is used.
  42608. All of them generate the machine instruction that is part of the name.
  42609. void __builtin_i32_clzero (void *)
  42610. The following built-in functions are available when '-mpku' is used.
  42611. They generate reads and writes to PKRU.
  42612. void __builtin_ia32_wrpkru (unsigned int)
  42613. unsigned int __builtin_ia32_rdpkru ()
  42614. The following built-in functions are available when '-mcet' or
  42615. '-mshstk' option is used. They support shadow stack machine
  42616. instructions from Intel Control-flow Enforcement Technology (CET). Each
  42617. built-in function generates the machine instruction that is part of the
  42618. function's name. These are the internal low-level functions. Normally
  42619. the functions in *note x86 control-flow protection intrinsics:: should
  42620. be used instead.
  42621. unsigned int __builtin_ia32_rdsspd (void)
  42622. unsigned long long __builtin_ia32_rdsspq (void)
  42623. void __builtin_ia32_incsspd (unsigned int)
  42624. void __builtin_ia32_incsspq (unsigned long long)
  42625. void __builtin_ia32_saveprevssp(void);
  42626. void __builtin_ia32_rstorssp(void *);
  42627. void __builtin_ia32_wrssd(unsigned int, void *);
  42628. void __builtin_ia32_wrssq(unsigned long long, void *);
  42629. void __builtin_ia32_wrussd(unsigned int, void *);
  42630. void __builtin_ia32_wrussq(unsigned long long, void *);
  42631. void __builtin_ia32_setssbsy(void);
  42632. void __builtin_ia32_clrssbsy(void *);
  42633. 
  42634. File: gcc.info, Node: x86 transactional memory intrinsics, Next: x86 control-flow protection intrinsics, Prev: x86 Built-in Functions, Up: Target Builtins
  42635. 6.60.35 x86 Transactional Memory Intrinsics
  42636. -------------------------------------------
  42637. These hardware transactional memory intrinsics for x86 allow you to use
  42638. memory transactions with RTM (Restricted Transactional Memory). This
  42639. support is enabled with the '-mrtm' option. For using HLE (Hardware
  42640. Lock Elision) see *note x86 specific memory model extensions for
  42641. transactional memory:: instead.
  42642. A memory transaction commits all changes to memory in an atomic way, as
  42643. visible to other threads. If the transaction fails it is rolled back
  42644. and all side effects discarded.
  42645. Generally there is no guarantee that a memory transaction ever succeeds
  42646. and suitable fallback code always needs to be supplied.
  42647. -- RTM Function: unsigned _xbegin ()
  42648. Start a RTM (Restricted Transactional Memory) transaction. Returns
  42649. '_XBEGIN_STARTED' when the transaction started successfully (note
  42650. this is not 0, so the constant has to be explicitly tested).
  42651. If the transaction aborts, all side effects are undone and an abort
  42652. code encoded as a bit mask is returned. The following macros are
  42653. defined:
  42654. '_XABORT_EXPLICIT'
  42655. Transaction was explicitly aborted with '_xabort'. The
  42656. parameter passed to '_xabort' is available with
  42657. '_XABORT_CODE(status)'.
  42658. '_XABORT_RETRY'
  42659. Transaction retry is possible.
  42660. '_XABORT_CONFLICT'
  42661. Transaction abort due to a memory conflict with another
  42662. thread.
  42663. '_XABORT_CAPACITY'
  42664. Transaction abort due to the transaction using too much
  42665. memory.
  42666. '_XABORT_DEBUG'
  42667. Transaction abort due to a debug trap.
  42668. '_XABORT_NESTED'
  42669. Transaction abort in an inner nested transaction.
  42670. There is no guarantee any transaction ever succeeds, so there
  42671. always needs to be a valid fallback path.
  42672. -- RTM Function: void _xend ()
  42673. Commit the current transaction. When no transaction is active this
  42674. faults. All memory side effects of the transaction become visible
  42675. to other threads in an atomic manner.
  42676. -- RTM Function: int _xtest ()
  42677. Return a nonzero value if a transaction is currently active,
  42678. otherwise 0.
  42679. -- RTM Function: void _xabort (status)
  42680. Abort the current transaction. When no transaction is active this
  42681. is a no-op. The STATUS is an 8-bit constant; its value is encoded
  42682. in the return value from '_xbegin'.
  42683. Here is an example showing handling for '_XABORT_RETRY' and a fallback
  42684. path for other failures:
  42685. #include <immintrin.h>
  42686. int n_tries, max_tries;
  42687. unsigned status = _XABORT_EXPLICIT;
  42688. ...
  42689. for (n_tries = 0; n_tries < max_tries; n_tries++)
  42690. {
  42691. status = _xbegin ();
  42692. if (status == _XBEGIN_STARTED || !(status & _XABORT_RETRY))
  42693. break;
  42694. }
  42695. if (status == _XBEGIN_STARTED)
  42696. {
  42697. ... transaction code...
  42698. _xend ();
  42699. }
  42700. else
  42701. {
  42702. ... non-transactional fallback path...
  42703. }
  42704. Note that, in most cases, the transactional and non-transactional code
  42705. must synchronize together to ensure consistency.
  42706. 
  42707. File: gcc.info, Node: x86 control-flow protection intrinsics, Prev: x86 transactional memory intrinsics, Up: Target Builtins
  42708. 6.60.36 x86 Control-Flow Protection Intrinsics
  42709. ----------------------------------------------
  42710. -- CET Function: ret_type _get_ssp (void)
  42711. Get the current value of shadow stack pointer if shadow stack
  42712. support from Intel CET is enabled in the hardware or '0' otherwise.
  42713. The 'ret_type' is 'unsigned long long' for 64-bit targets and
  42714. 'unsigned int' for 32-bit targets.
  42715. -- CET Function: void _inc_ssp (unsigned int)
  42716. Increment the current shadow stack pointer by the size specified by
  42717. the function argument. The argument is masked to a byte value for
  42718. security reasons, so to increment by more than 255 bytes you must
  42719. call the function multiple times.
  42720. The shadow stack unwind code looks like:
  42721. #include <immintrin.h>
  42722. /* Unwind the shadow stack for EH. */
  42723. #define _Unwind_Frames_Extra(x) \
  42724. do \
  42725. { \
  42726. _Unwind_Word ssp = _get_ssp (); \
  42727. if (ssp != 0) \
  42728. { \
  42729. _Unwind_Word tmp = (x); \
  42730. while (tmp > 255) \
  42731. { \
  42732. _inc_ssp (tmp); \
  42733. tmp -= 255; \
  42734. } \
  42735. _inc_ssp (tmp); \
  42736. } \
  42737. } \
  42738. while (0)
  42739. This code runs unconditionally on all 64-bit processors. For 32-bit
  42740. processors the code runs on those that support multi-byte NOP
  42741. instructions.
  42742. 
  42743. File: gcc.info, Node: Target Format Checks, Next: Pragmas, Prev: Target Builtins, Up: C Extensions
  42744. 6.61 Format Checks Specific to Particular Target Machines
  42745. =========================================================
  42746. For some target machines, GCC supports additional options to the format
  42747. attribute (*note Declaring Attributes of Functions: Function
  42748. Attributes.).
  42749. * Menu:
  42750. * Solaris Format Checks::
  42751. * Darwin Format Checks::
  42752. 
  42753. File: gcc.info, Node: Solaris Format Checks, Next: Darwin Format Checks, Up: Target Format Checks
  42754. 6.61.1 Solaris Format Checks
  42755. ----------------------------
  42756. Solaris targets support the 'cmn_err' (or '__cmn_err__') format check.
  42757. 'cmn_err' accepts a subset of the standard 'printf' conversions, and the
  42758. two-argument '%b' conversion for displaying bit-fields. See the Solaris
  42759. man page for 'cmn_err' for more information.
  42760. 
  42761. File: gcc.info, Node: Darwin Format Checks, Prev: Solaris Format Checks, Up: Target Format Checks
  42762. 6.61.2 Darwin Format Checks
  42763. ---------------------------
  42764. In addition to the full set of format archetypes (attribute format style
  42765. arguments such as 'printf', 'scanf', 'strftime', and 'strfmon'), Darwin
  42766. targets also support the 'CFString' (or '__CFString__') archetype in the
  42767. 'format' attribute. Declarations with this archetype are parsed for
  42768. correct syntax and argument types. However, parsing of the format
  42769. string itself and validating arguments against it in calls to such
  42770. functions is currently not performed.
  42771. Additionally, 'CFStringRefs' (defined by the 'CoreFoundation' headers)
  42772. may also be used as format arguments. Note that the relevant headers
  42773. are only likely to be available on Darwin (OSX) installations. On such
  42774. installations, the XCode and system documentation provide descriptions
  42775. of 'CFString', 'CFStringRefs' and associated functions.
  42776. 
  42777. File: gcc.info, Node: Pragmas, Next: Unnamed Fields, Prev: Target Format Checks, Up: C Extensions
  42778. 6.62 Pragmas Accepted by GCC
  42779. ============================
  42780. GCC supports several types of pragmas, primarily in order to compile
  42781. code originally written for other compilers. Note that in general we do
  42782. not recommend the use of pragmas; *Note Function Attributes::, for
  42783. further explanation.
  42784. The GNU C preprocessor recognizes several pragmas in addition to the
  42785. compiler pragmas documented here. Refer to the CPP manual for more
  42786. information.
  42787. * Menu:
  42788. * AArch64 Pragmas::
  42789. * ARM Pragmas::
  42790. * M32C Pragmas::
  42791. * MeP Pragmas::
  42792. * PRU Pragmas::
  42793. * RS/6000 and PowerPC Pragmas::
  42794. * S/390 Pragmas::
  42795. * Darwin Pragmas::
  42796. * Solaris Pragmas::
  42797. * Symbol-Renaming Pragmas::
  42798. * Structure-Layout Pragmas::
  42799. * Weak Pragmas::
  42800. * Diagnostic Pragmas::
  42801. * Visibility Pragmas::
  42802. * Push/Pop Macro Pragmas::
  42803. * Function Specific Option Pragmas::
  42804. * Loop-Specific Pragmas::
  42805. 
  42806. File: gcc.info, Node: AArch64 Pragmas, Next: ARM Pragmas, Up: Pragmas
  42807. 6.62.1 AArch64 Pragmas
  42808. ----------------------
  42809. The pragmas defined by the AArch64 target correspond to the AArch64
  42810. target function attributes. They can be specified as below:
  42811. #pragma GCC target("string")
  42812. where 'STRING' can be any string accepted as an AArch64 target
  42813. attribute. *Note AArch64 Function Attributes::, for more details on the
  42814. permissible values of 'string'.
  42815. 
  42816. File: gcc.info, Node: ARM Pragmas, Next: M32C Pragmas, Prev: AArch64 Pragmas, Up: Pragmas
  42817. 6.62.2 ARM Pragmas
  42818. ------------------
  42819. The ARM target defines pragmas for controlling the default addition of
  42820. 'long_call' and 'short_call' attributes to functions. *Note Function
  42821. Attributes::, for information about the effects of these attributes.
  42822. 'long_calls'
  42823. Set all subsequent functions to have the 'long_call' attribute.
  42824. 'no_long_calls'
  42825. Set all subsequent functions to have the 'short_call' attribute.
  42826. 'long_calls_off'
  42827. Do not affect the 'long_call' or 'short_call' attributes of
  42828. subsequent functions.
  42829. 
  42830. File: gcc.info, Node: M32C Pragmas, Next: MeP Pragmas, Prev: ARM Pragmas, Up: Pragmas
  42831. 6.62.3 M32C Pragmas
  42832. -------------------
  42833. 'GCC memregs NUMBER'
  42834. Overrides the command-line option '-memregs=' for the current file.
  42835. Use with care! This pragma must be before any function in the
  42836. file, and mixing different memregs values in different objects may
  42837. make them incompatible. This pragma is useful when a
  42838. performance-critical function uses a memreg for temporary values,
  42839. as it may allow you to reduce the number of memregs used.
  42840. 'ADDRESS NAME ADDRESS'
  42841. For any declared symbols matching NAME, this does three things to
  42842. that symbol: it forces the symbol to be located at the given
  42843. address (a number), it forces the symbol to be volatile, and it
  42844. changes the symbol's scope to be static. This pragma exists for
  42845. compatibility with other compilers, but note that the common
  42846. '1234H' numeric syntax is not supported (use '0x1234' instead).
  42847. Example:
  42848. #pragma ADDRESS port3 0x103
  42849. char port3;
  42850. 
  42851. File: gcc.info, Node: MeP Pragmas, Next: PRU Pragmas, Prev: M32C Pragmas, Up: Pragmas
  42852. 6.62.4 MeP Pragmas
  42853. ------------------
  42854. 'custom io_volatile (on|off)'
  42855. Overrides the command-line option '-mio-volatile' for the current
  42856. file. Note that for compatibility with future GCC releases, this
  42857. option should only be used once before any 'io' variables in each
  42858. file.
  42859. 'GCC coprocessor available REGISTERS'
  42860. Specifies which coprocessor registers are available to the register
  42861. allocator. REGISTERS may be a single register, register range
  42862. separated by ellipses, or comma-separated list of those. Example:
  42863. #pragma GCC coprocessor available $c0...$c10, $c28
  42864. 'GCC coprocessor call_saved REGISTERS'
  42865. Specifies which coprocessor registers are to be saved and restored
  42866. by any function using them. REGISTERS may be a single register,
  42867. register range separated by ellipses, or comma-separated list of
  42868. those. Example:
  42869. #pragma GCC coprocessor call_saved $c4...$c6, $c31
  42870. 'GCC coprocessor subclass '(A|B|C|D)' = REGISTERS'
  42871. Creates and defines a register class. These register classes can
  42872. be used by inline 'asm' constructs. REGISTERS may be a single
  42873. register, register range separated by ellipses, or comma-separated
  42874. list of those. Example:
  42875. #pragma GCC coprocessor subclass 'B' = $c2, $c4, $c6
  42876. asm ("cpfoo %0" : "=B" (x));
  42877. 'GCC disinterrupt NAME , NAME ...'
  42878. For the named functions, the compiler adds code to disable
  42879. interrupts for the duration of those functions. If any functions
  42880. so named are not encountered in the source, a warning is emitted
  42881. that the pragma is not used. Examples:
  42882. #pragma disinterrupt foo
  42883. #pragma disinterrupt bar, grill
  42884. int foo () { ... }
  42885. 'GCC call NAME , NAME ...'
  42886. For the named functions, the compiler always uses a
  42887. register-indirect call model when calling the named functions.
  42888. Examples:
  42889. extern int foo ();
  42890. #pragma call foo
  42891. 
  42892. File: gcc.info, Node: PRU Pragmas, Next: RS/6000 and PowerPC Pragmas, Prev: MeP Pragmas, Up: Pragmas
  42893. 6.62.5 PRU Pragmas
  42894. ------------------
  42895. 'ctable_entry INDEX CONSTANT_ADDRESS'
  42896. Specifies that the PRU CTABLE entry given by INDEX has the value
  42897. CONSTANT_ADDRESS. This enables GCC to emit LBCO/SBCO instructions
  42898. when the load/store address is known and can be addressed with some
  42899. CTABLE entry. For example:
  42900. /* will compile to "sbco Rx, 2, 0x10, 4" */
  42901. #pragma ctable_entry 2 0x4802a000
  42902. *(unsigned int *)0x4802a010 = val;
  42903. 
  42904. File: gcc.info, Node: RS/6000 and PowerPC Pragmas, Next: S/390 Pragmas, Prev: PRU Pragmas, Up: Pragmas
  42905. 6.62.6 RS/6000 and PowerPC Pragmas
  42906. ----------------------------------
  42907. The RS/6000 and PowerPC targets define one pragma for controlling
  42908. whether or not the 'longcall' attribute is added to function
  42909. declarations by default. This pragma overrides the '-mlongcall' option,
  42910. but not the 'longcall' and 'shortcall' attributes. *Note RS/6000 and
  42911. PowerPC Options::, for more information about when long calls are and
  42912. are not necessary.
  42913. 'longcall (1)'
  42914. Apply the 'longcall' attribute to all subsequent function
  42915. declarations.
  42916. 'longcall (0)'
  42917. Do not apply the 'longcall' attribute to subsequent function
  42918. declarations.
  42919. 
  42920. File: gcc.info, Node: S/390 Pragmas, Next: Darwin Pragmas, Prev: RS/6000 and PowerPC Pragmas, Up: Pragmas
  42921. 6.62.7 S/390 Pragmas
  42922. --------------------
  42923. The pragmas defined by the S/390 target correspond to the S/390 target
  42924. function attributes and some the additional options:
  42925. 'zvector'
  42926. 'no-zvector'
  42927. Note that options of the pragma, unlike options of the target
  42928. attribute, do change the value of preprocessor macros like '__VEC__'.
  42929. They can be specified as below:
  42930. #pragma GCC target("string[,string]...")
  42931. #pragma GCC target("string"[,"string"]...)
  42932. 
  42933. File: gcc.info, Node: Darwin Pragmas, Next: Solaris Pragmas, Prev: S/390 Pragmas, Up: Pragmas
  42934. 6.62.8 Darwin Pragmas
  42935. ---------------------
  42936. The following pragmas are available for all architectures running the
  42937. Darwin operating system. These are useful for compatibility with other
  42938. Mac OS compilers.
  42939. 'mark TOKENS...'
  42940. This pragma is accepted, but has no effect.
  42941. 'options align=ALIGNMENT'
  42942. This pragma sets the alignment of fields in structures. The values
  42943. of ALIGNMENT may be 'mac68k', to emulate m68k alignment, or
  42944. 'power', to emulate PowerPC alignment. Uses of this pragma nest
  42945. properly; to restore the previous setting, use 'reset' for the
  42946. ALIGNMENT.
  42947. 'segment TOKENS...'
  42948. This pragma is accepted, but has no effect.
  42949. 'unused (VAR [, VAR]...)'
  42950. This pragma declares variables to be possibly unused. GCC does not
  42951. produce warnings for the listed variables. The effect is similar
  42952. to that of the 'unused' attribute, except that this pragma may
  42953. appear anywhere within the variables' scopes.
  42954. 
  42955. File: gcc.info, Node: Solaris Pragmas, Next: Symbol-Renaming Pragmas, Prev: Darwin Pragmas, Up: Pragmas
  42956. 6.62.9 Solaris Pragmas
  42957. ----------------------
  42958. The Solaris target supports '#pragma redefine_extname' (*note
  42959. Symbol-Renaming Pragmas::). It also supports additional '#pragma'
  42960. directives for compatibility with the system compiler.
  42961. 'align ALIGNMENT (VARIABLE [, VARIABLE]...)'
  42962. Increase the minimum alignment of each VARIABLE to ALIGNMENT. This
  42963. is the same as GCC's 'aligned' attribute *note Variable
  42964. Attributes::). Macro expansion occurs on the arguments to this
  42965. pragma when compiling C and Objective-C. It does not currently
  42966. occur when compiling C++, but this is a bug which may be fixed in a
  42967. future release.
  42968. 'fini (FUNCTION [, FUNCTION]...)'
  42969. This pragma causes each listed FUNCTION to be called after main, or
  42970. during shared module unloading, by adding a call to the '.fini'
  42971. section.
  42972. 'init (FUNCTION [, FUNCTION]...)'
  42973. This pragma causes each listed FUNCTION to be called during
  42974. initialization (before 'main') or during shared module loading, by
  42975. adding a call to the '.init' section.
  42976. 
  42977. File: gcc.info, Node: Symbol-Renaming Pragmas, Next: Structure-Layout Pragmas, Prev: Solaris Pragmas, Up: Pragmas
  42978. 6.62.10 Symbol-Renaming Pragmas
  42979. -------------------------------
  42980. GCC supports a '#pragma' directive that changes the name used in
  42981. assembly for a given declaration. While this pragma is supported on all
  42982. platforms, it is intended primarily to provide compatibility with the
  42983. Solaris system headers. This effect can also be achieved using the asm
  42984. labels extension (*note Asm Labels::).
  42985. 'redefine_extname OLDNAME NEWNAME'
  42986. This pragma gives the C function OLDNAME the assembly symbol
  42987. NEWNAME. The preprocessor macro '__PRAGMA_REDEFINE_EXTNAME' is
  42988. defined if this pragma is available (currently on all platforms).
  42989. This pragma and the 'asm' labels extension interact in a complicated
  42990. manner. Here are some corner cases you may want to be aware of:
  42991. 1. This pragma silently applies only to declarations with external
  42992. linkage. The 'asm' label feature does not have this restriction.
  42993. 2. In C++, this pragma silently applies only to declarations with "C"
  42994. linkage. Again, 'asm' labels do not have this restriction.
  42995. 3. If either of the ways of changing the assembly name of a
  42996. declaration are applied to a declaration whose assembly name has
  42997. already been determined (either by a previous use of one of these
  42998. features, or because the compiler needed the assembly name in order
  42999. to generate code), and the new name is different, a warning issues
  43000. and the name does not change.
  43001. 4. The OLDNAME used by '#pragma redefine_extname' is always the
  43002. C-language name.
  43003. 
  43004. File: gcc.info, Node: Structure-Layout Pragmas, Next: Weak Pragmas, Prev: Symbol-Renaming Pragmas, Up: Pragmas
  43005. 6.62.11 Structure-Layout Pragmas
  43006. --------------------------------
  43007. For compatibility with Microsoft Windows compilers, GCC supports a set
  43008. of '#pragma' directives that change the maximum alignment of members of
  43009. structures (other than zero-width bit-fields), unions, and classes
  43010. subsequently defined. The N value below always is required to be a
  43011. small power of two and specifies the new alignment in bytes.
  43012. 1. '#pragma pack(N)' simply sets the new alignment.
  43013. 2. '#pragma pack()' sets the alignment to the one that was in effect
  43014. when compilation started (see also command-line option
  43015. '-fpack-struct[=N]' *note Code Gen Options::).
  43016. 3. '#pragma pack(push[,N])' pushes the current alignment setting on an
  43017. internal stack and then optionally sets the new alignment.
  43018. 4. '#pragma pack(pop)' restores the alignment setting to the one saved
  43019. at the top of the internal stack (and removes that stack entry).
  43020. Note that '#pragma pack([N])' does not influence this internal
  43021. stack; thus it is possible to have '#pragma pack(push)' followed by
  43022. multiple '#pragma pack(N)' instances and finalized by a single
  43023. '#pragma pack(pop)'.
  43024. Some targets, e.g. x86 and PowerPC, support the '#pragma ms_struct'
  43025. directive which lays out structures and unions subsequently defined as
  43026. the documented '__attribute__ ((ms_struct))'.
  43027. 1. '#pragma ms_struct on' turns on the Microsoft layout.
  43028. 2. '#pragma ms_struct off' turns off the Microsoft layout.
  43029. 3. '#pragma ms_struct reset' goes back to the default layout.
  43030. Most targets also support the '#pragma scalar_storage_order' directive
  43031. which lays out structures and unions subsequently defined as the
  43032. documented '__attribute__ ((scalar_storage_order))'.
  43033. 1. '#pragma scalar_storage_order big-endian' sets the storage order of
  43034. the scalar fields to big-endian.
  43035. 2. '#pragma scalar_storage_order little-endian' sets the storage order
  43036. of the scalar fields to little-endian.
  43037. 3. '#pragma scalar_storage_order default' goes back to the endianness
  43038. that was in effect when compilation started (see also command-line
  43039. option '-fsso-struct=ENDIANNESS' *note C Dialect Options::).
  43040. 
  43041. File: gcc.info, Node: Weak Pragmas, Next: Diagnostic Pragmas, Prev: Structure-Layout Pragmas, Up: Pragmas
  43042. 6.62.12 Weak Pragmas
  43043. --------------------
  43044. For compatibility with SVR4, GCC supports a set of '#pragma' directives
  43045. for declaring symbols to be weak, and defining weak aliases.
  43046. '#pragma weak SYMBOL'
  43047. This pragma declares SYMBOL to be weak, as if the declaration had
  43048. the attribute of the same name. The pragma may appear before or
  43049. after the declaration of SYMBOL. It is not an error for SYMBOL to
  43050. never be defined at all.
  43051. '#pragma weak SYMBOL1 = SYMBOL2'
  43052. This pragma declares SYMBOL1 to be a weak alias of SYMBOL2. It is
  43053. an error if SYMBOL2 is not defined in the current translation unit.
  43054. 
  43055. File: gcc.info, Node: Diagnostic Pragmas, Next: Visibility Pragmas, Prev: Weak Pragmas, Up: Pragmas
  43056. 6.62.13 Diagnostic Pragmas
  43057. --------------------------
  43058. GCC allows the user to selectively enable or disable certain types of
  43059. diagnostics, and change the kind of the diagnostic. For example, a
  43060. project's policy might require that all sources compile with '-Werror'
  43061. but certain files might have exceptions allowing specific types of
  43062. warnings. Or, a project might selectively enable diagnostics and treat
  43063. them as errors depending on which preprocessor macros are defined.
  43064. '#pragma GCC diagnostic KIND OPTION'
  43065. Modifies the disposition of a diagnostic. Note that not all
  43066. diagnostics are modifiable; at the moment only warnings (normally
  43067. controlled by '-W...') can be controlled, and not all of them. Use
  43068. '-fdiagnostics-show-option' to determine which diagnostics are
  43069. controllable and which option controls them.
  43070. KIND is 'error' to treat this diagnostic as an error, 'warning' to
  43071. treat it like a warning (even if '-Werror' is in effect), or
  43072. 'ignored' if the diagnostic is to be ignored. OPTION is a double
  43073. quoted string that matches the command-line option.
  43074. #pragma GCC diagnostic warning "-Wformat"
  43075. #pragma GCC diagnostic error "-Wformat"
  43076. #pragma GCC diagnostic ignored "-Wformat"
  43077. Note that these pragmas override any command-line options. GCC
  43078. keeps track of the location of each pragma, and issues diagnostics
  43079. according to the state as of that point in the source file. Thus,
  43080. pragmas occurring after a line do not affect diagnostics caused by
  43081. that line.
  43082. '#pragma GCC diagnostic push'
  43083. '#pragma GCC diagnostic pop'
  43084. Causes GCC to remember the state of the diagnostics as of each
  43085. 'push', and restore to that point at each 'pop'. If a 'pop' has no
  43086. matching 'push', the command-line options are restored.
  43087. #pragma GCC diagnostic error "-Wuninitialized"
  43088. foo(a); /* error is given for this one */
  43089. #pragma GCC diagnostic push
  43090. #pragma GCC diagnostic ignored "-Wuninitialized"
  43091. foo(b); /* no diagnostic for this one */
  43092. #pragma GCC diagnostic pop
  43093. foo(c); /* error is given for this one */
  43094. #pragma GCC diagnostic pop
  43095. foo(d); /* depends on command-line options */
  43096. GCC also offers a simple mechanism for printing messages during
  43097. compilation.
  43098. '#pragma message STRING'
  43099. Prints STRING as a compiler message on compilation. The message is
  43100. informational only, and is neither a compilation warning nor an
  43101. error. Newlines can be included in the string by using the '\n'
  43102. escape sequence.
  43103. #pragma message "Compiling " __FILE__ "..."
  43104. STRING may be parenthesized, and is printed with location
  43105. information. For example,
  43106. #define DO_PRAGMA(x) _Pragma (#x)
  43107. #define TODO(x) DO_PRAGMA(message ("TODO - " #x))
  43108. TODO(Remember to fix this)
  43109. prints '/tmp/file.c:4: note: #pragma message: TODO - Remember to
  43110. fix this'.
  43111. '#pragma GCC error MESSAGE'
  43112. Generates an error message. This pragma _is_ considered to
  43113. indicate an error in the compilation, and it will be treated as
  43114. such.
  43115. Newlines can be included in the string by using the '\n' escape
  43116. sequence. They will be displayed as newlines even if the
  43117. '-fmessage-length' option is set to zero.
  43118. The error is only generated if the pragma is present in the code
  43119. after pre-processing has been completed. It does not matter
  43120. however if the code containing the pragma is unreachable:
  43121. #if 0
  43122. #pragma GCC error "this error is not seen"
  43123. #endif
  43124. void foo (void)
  43125. {
  43126. return;
  43127. #pragma GCC error "this error is seen"
  43128. }
  43129. '#pragma GCC warning MESSAGE'
  43130. This is just like 'pragma GCC error' except that a warning message
  43131. is issued instead of an error message. Unless '-Werror' is in
  43132. effect, in which case this pragma will generate an error as well.
  43133. 
  43134. File: gcc.info, Node: Visibility Pragmas, Next: Push/Pop Macro Pragmas, Prev: Diagnostic Pragmas, Up: Pragmas
  43135. 6.62.14 Visibility Pragmas
  43136. --------------------------
  43137. '#pragma GCC visibility push(VISIBILITY)'
  43138. '#pragma GCC visibility pop'
  43139. This pragma allows the user to set the visibility for multiple
  43140. declarations without having to give each a visibility attribute
  43141. (*note Function Attributes::).
  43142. In C++, '#pragma GCC visibility' affects only namespace-scope
  43143. declarations. Class members and template specializations are not
  43144. affected; if you want to override the visibility for a particular
  43145. member or instantiation, you must use an attribute.
  43146. 
  43147. File: gcc.info, Node: Push/Pop Macro Pragmas, Next: Function Specific Option Pragmas, Prev: Visibility Pragmas, Up: Pragmas
  43148. 6.62.15 Push/Pop Macro Pragmas
  43149. ------------------------------
  43150. For compatibility with Microsoft Windows compilers, GCC supports
  43151. '#pragma push_macro("MACRO_NAME")' and '#pragma
  43152. pop_macro("MACRO_NAME")'.
  43153. '#pragma push_macro("MACRO_NAME")'
  43154. This pragma saves the value of the macro named as MACRO_NAME to the
  43155. top of the stack for this macro.
  43156. '#pragma pop_macro("MACRO_NAME")'
  43157. This pragma sets the value of the macro named as MACRO_NAME to the
  43158. value on top of the stack for this macro. If the stack for
  43159. MACRO_NAME is empty, the value of the macro remains unchanged.
  43160. For example:
  43161. #define X 1
  43162. #pragma push_macro("X")
  43163. #undef X
  43164. #define X -1
  43165. #pragma pop_macro("X")
  43166. int x [X];
  43167. In this example, the definition of X as 1 is saved by '#pragma
  43168. push_macro' and restored by '#pragma pop_macro'.
  43169. 
  43170. File: gcc.info, Node: Function Specific Option Pragmas, Next: Loop-Specific Pragmas, Prev: Push/Pop Macro Pragmas, Up: Pragmas
  43171. 6.62.16 Function Specific Option Pragmas
  43172. ----------------------------------------
  43173. '#pragma GCC target (STRING, ...)'
  43174. This pragma allows you to set target-specific options for functions
  43175. defined later in the source file. One or more strings can be
  43176. specified. Each function that is defined after this point is
  43177. treated as if it had been declared with one 'target('STRING')'
  43178. attribute for each STRING argument. The parentheses around the
  43179. strings in the pragma are optional. *Note Function Attributes::,
  43180. for more information about the 'target' attribute and the attribute
  43181. syntax.
  43182. The '#pragma GCC target' pragma is presently implemented for x86,
  43183. ARM, AArch64, PowerPC, S/390, and Nios II targets only.
  43184. '#pragma GCC optimize (STRING, ...)'
  43185. This pragma allows you to set global optimization options for
  43186. functions defined later in the source file. One or more strings
  43187. can be specified. Each function that is defined after this point
  43188. is treated as if it had been declared with one 'optimize('STRING')'
  43189. attribute for each STRING argument. The parentheses around the
  43190. strings in the pragma are optional. *Note Function Attributes::,
  43191. for more information about the 'optimize' attribute and the
  43192. attribute syntax.
  43193. '#pragma GCC push_options'
  43194. '#pragma GCC pop_options'
  43195. These pragmas maintain a stack of the current target and
  43196. optimization options. It is intended for include files where you
  43197. temporarily want to switch to using a different '#pragma GCC
  43198. target' or '#pragma GCC optimize' and then to pop back to the
  43199. previous options.
  43200. '#pragma GCC reset_options'
  43201. This pragma clears the current '#pragma GCC target' and '#pragma
  43202. GCC optimize' to use the default switches as specified on the
  43203. command line.
  43204. 
  43205. File: gcc.info, Node: Loop-Specific Pragmas, Prev: Function Specific Option Pragmas, Up: Pragmas
  43206. 6.62.17 Loop-Specific Pragmas
  43207. -----------------------------
  43208. '#pragma GCC ivdep'
  43209. With this pragma, the programmer asserts that there are no
  43210. loop-carried dependencies which would prevent consecutive
  43211. iterations of the following loop from executing concurrently with
  43212. SIMD (single instruction multiple data) instructions.
  43213. For example, the compiler can only unconditionally vectorize the
  43214. following loop with the pragma:
  43215. void foo (int n, int *a, int *b, int *c)
  43216. {
  43217. int i, j;
  43218. #pragma GCC ivdep
  43219. for (i = 0; i < n; ++i)
  43220. a[i] = b[i] + c[i];
  43221. }
  43222. In this example, using the 'restrict' qualifier had the same
  43223. effect. In the following example, that would not be possible.
  43224. Assume k < -m or k >= m. Only with the pragma, the compiler knows
  43225. that it can unconditionally vectorize the following loop:
  43226. void ignore_vec_dep (int *a, int k, int c, int m)
  43227. {
  43228. #pragma GCC ivdep
  43229. for (int i = 0; i < m; i++)
  43230. a[i] = a[i + k] * c;
  43231. }
  43232. '#pragma GCC unroll N'
  43233. You can use this pragma to control how many times a loop should be
  43234. unrolled. It must be placed immediately before a 'for', 'while' or
  43235. 'do' loop or a '#pragma GCC ivdep', and applies only to the loop
  43236. that follows. N is an integer constant expression specifying the
  43237. unrolling factor. The values of 0 and 1 block any unrolling of the
  43238. loop.
  43239. 
  43240. File: gcc.info, Node: Unnamed Fields, Next: Thread-Local, Prev: Pragmas, Up: C Extensions
  43241. 6.63 Unnamed Structure and Union Fields
  43242. =======================================
  43243. As permitted by ISO C11 and for compatibility with other compilers, GCC
  43244. allows you to define a structure or union that contains, as fields,
  43245. structures and unions without names. For example:
  43246. struct {
  43247. int a;
  43248. union {
  43249. int b;
  43250. float c;
  43251. };
  43252. int d;
  43253. } foo;
  43254. In this example, you are able to access members of the unnamed union
  43255. with code like 'foo.b'. Note that only unnamed structs and unions are
  43256. allowed, you may not have, for example, an unnamed 'int'.
  43257. You must never create such structures that cause ambiguous field
  43258. definitions. For example, in this structure:
  43259. struct {
  43260. int a;
  43261. struct {
  43262. int a;
  43263. };
  43264. } foo;
  43265. it is ambiguous which 'a' is being referred to with 'foo.a'. The
  43266. compiler gives errors for such constructs.
  43267. Unless '-fms-extensions' is used, the unnamed field must be a structure
  43268. or union definition without a tag (for example, 'struct { int a; };').
  43269. If '-fms-extensions' is used, the field may also be a definition with a
  43270. tag such as 'struct foo { int a; };', a reference to a previously
  43271. defined structure or union such as 'struct foo;', or a reference to a
  43272. 'typedef' name for a previously defined structure or union type.
  43273. The option '-fplan9-extensions' enables '-fms-extensions' as well as
  43274. two other extensions. First, a pointer to a structure is automatically
  43275. converted to a pointer to an anonymous field for assignments and
  43276. function calls. For example:
  43277. struct s1 { int a; };
  43278. struct s2 { struct s1; };
  43279. extern void f1 (struct s1 *);
  43280. void f2 (struct s2 *p) { f1 (p); }
  43281. In the call to 'f1' inside 'f2', the pointer 'p' is converted into a
  43282. pointer to the anonymous field.
  43283. Second, when the type of an anonymous field is a 'typedef' for a
  43284. 'struct' or 'union', code may refer to the field using the name of the
  43285. 'typedef'.
  43286. typedef struct { int a; } s1;
  43287. struct s2 { s1; };
  43288. s1 f1 (struct s2 *p) { return p->s1; }
  43289. These usages are only permitted when they are not ambiguous.
  43290. 
  43291. File: gcc.info, Node: Thread-Local, Next: Binary constants, Prev: Unnamed Fields, Up: C Extensions
  43292. 6.64 Thread-Local Storage
  43293. =========================
  43294. Thread-local storage (TLS) is a mechanism by which variables are
  43295. allocated such that there is one instance of the variable per extant
  43296. thread. The runtime model GCC uses to implement this originates in the
  43297. IA-64 processor-specific ABI, but has since been migrated to other
  43298. processors as well. It requires significant support from the linker
  43299. ('ld'), dynamic linker ('ld.so'), and system libraries ('libc.so' and
  43300. 'libpthread.so'), so it is not available everywhere.
  43301. At the user level, the extension is visible with a new storage class
  43302. keyword: '__thread'. For example:
  43303. __thread int i;
  43304. extern __thread struct state s;
  43305. static __thread char *p;
  43306. The '__thread' specifier may be used alone, with the 'extern' or
  43307. 'static' specifiers, but with no other storage class specifier. When
  43308. used with 'extern' or 'static', '__thread' must appear immediately after
  43309. the other storage class specifier.
  43310. The '__thread' specifier may be applied to any global, file-scoped
  43311. static, function-scoped static, or static data member of a class. It
  43312. may not be applied to block-scoped automatic or non-static data member.
  43313. When the address-of operator is applied to a thread-local variable, it
  43314. is evaluated at run time and returns the address of the current thread's
  43315. instance of that variable. An address so obtained may be used by any
  43316. thread. When a thread terminates, any pointers to thread-local
  43317. variables in that thread become invalid.
  43318. No static initialization may refer to the address of a thread-local
  43319. variable.
  43320. In C++, if an initializer is present for a thread-local variable, it
  43321. must be a CONSTANT-EXPRESSION, as defined in 5.19.2 of the ANSI/ISO C++
  43322. standard.
  43323. See ELF Handling For Thread-Local Storage
  43324. (https://www.akkadia.org/drepper/tls.pdf) for a detailed explanation of
  43325. the four thread-local storage addressing models, and how the runtime is
  43326. expected to function.
  43327. * Menu:
  43328. * C99 Thread-Local Edits::
  43329. * C++98 Thread-Local Edits::
  43330. 
  43331. File: gcc.info, Node: C99 Thread-Local Edits, Next: C++98 Thread-Local Edits, Up: Thread-Local
  43332. 6.64.1 ISO/IEC 9899:1999 Edits for Thread-Local Storage
  43333. -------------------------------------------------------
  43334. The following are a set of changes to ISO/IEC 9899:1999 (aka C99) that
  43335. document the exact semantics of the language extension.
  43336. * '5.1.2 Execution environments'
  43337. Add new text after paragraph 1
  43338. Within either execution environment, a "thread" is a flow of
  43339. control within a program. It is implementation defined
  43340. whether or not there may be more than one thread associated
  43341. with a program. It is implementation defined how threads
  43342. beyond the first are created, the name and type of the
  43343. function called at thread startup, and how threads may be
  43344. terminated. However, objects with thread storage duration
  43345. shall be initialized before thread startup.
  43346. * '6.2.4 Storage durations of objects'
  43347. Add new text before paragraph 3
  43348. An object whose identifier is declared with the storage-class
  43349. specifier '__thread' has "thread storage duration". Its
  43350. lifetime is the entire execution of the thread, and its stored
  43351. value is initialized only once, prior to thread startup.
  43352. * '6.4.1 Keywords'
  43353. Add '__thread'.
  43354. * '6.7.1 Storage-class specifiers'
  43355. Add '__thread' to the list of storage class specifiers in paragraph
  43356. 1.
  43357. Change paragraph 2 to
  43358. With the exception of '__thread', at most one storage-class
  43359. specifier may be given [...]. The '__thread' specifier may be
  43360. used alone, or immediately following 'extern' or 'static'.
  43361. Add new text after paragraph 6
  43362. The declaration of an identifier for a variable that has block
  43363. scope that specifies '__thread' shall also specify either
  43364. 'extern' or 'static'.
  43365. The '__thread' specifier shall be used only with variables.
  43366. 
  43367. File: gcc.info, Node: C++98 Thread-Local Edits, Prev: C99 Thread-Local Edits, Up: Thread-Local
  43368. 6.64.2 ISO/IEC 14882:1998 Edits for Thread-Local Storage
  43369. --------------------------------------------------------
  43370. The following are a set of changes to ISO/IEC 14882:1998 (aka C++98)
  43371. that document the exact semantics of the language extension.
  43372. * [intro.execution]
  43373. New text after paragraph 4
  43374. A "thread" is a flow of control within the abstract machine.
  43375. It is implementation defined whether or not there may be more
  43376. than one thread.
  43377. New text after paragraph 7
  43378. It is unspecified whether additional action must be taken to
  43379. ensure when and whether side effects are visible to other
  43380. threads.
  43381. * [lex.key]
  43382. Add '__thread'.
  43383. * [basic.start.main]
  43384. Add after paragraph 5
  43385. The thread that begins execution at the 'main' function is
  43386. called the "main thread". It is implementation defined how
  43387. functions beginning threads other than the main thread are
  43388. designated or typed. A function so designated, as well as the
  43389. 'main' function, is called a "thread startup function". It is
  43390. implementation defined what happens if a thread startup
  43391. function returns. It is implementation defined what happens
  43392. to other threads when any thread calls 'exit'.
  43393. * [basic.start.init]
  43394. Add after paragraph 4
  43395. The storage for an object of thread storage duration shall be
  43396. statically initialized before the first statement of the
  43397. thread startup function. An object of thread storage duration
  43398. shall not require dynamic initialization.
  43399. * [basic.start.term]
  43400. Add after paragraph 3
  43401. The type of an object with thread storage duration shall not
  43402. have a non-trivial destructor, nor shall it be an array type
  43403. whose elements (directly or indirectly) have non-trivial
  43404. destructors.
  43405. * [basic.stc]
  43406. Add "thread storage duration" to the list in paragraph 1.
  43407. Change paragraph 2
  43408. Thread, static, and automatic storage durations are associated
  43409. with objects introduced by declarations [...].
  43410. Add '__thread' to the list of specifiers in paragraph 3.
  43411. * [basic.stc.thread]
  43412. New section before [basic.stc.static]
  43413. The keyword '__thread' applied to a non-local object gives the
  43414. object thread storage duration.
  43415. A local variable or class data member declared both 'static'
  43416. and '__thread' gives the variable or member thread storage
  43417. duration.
  43418. * [basic.stc.static]
  43419. Change paragraph 1
  43420. All objects that have neither thread storage duration, dynamic
  43421. storage duration nor are local [...].
  43422. * [dcl.stc]
  43423. Add '__thread' to the list in paragraph 1.
  43424. Change paragraph 1
  43425. With the exception of '__thread', at most one
  43426. STORAGE-CLASS-SPECIFIER shall appear in a given
  43427. DECL-SPECIFIER-SEQ. The '__thread' specifier may be used
  43428. alone, or immediately following the 'extern' or 'static'
  43429. specifiers. [...]
  43430. Add after paragraph 5
  43431. The '__thread' specifier can be applied only to the names of
  43432. objects and to anonymous unions.
  43433. * [class.mem]
  43434. Add after paragraph 6
  43435. Non-'static' members shall not be '__thread'.
  43436. 
  43437. File: gcc.info, Node: Binary constants, Prev: Thread-Local, Up: C Extensions
  43438. 6.65 Binary Constants using the '0b' Prefix
  43439. ===========================================
  43440. Integer constants can be written as binary constants, consisting of a
  43441. sequence of '0' and '1' digits, prefixed by '0b' or '0B'. This is
  43442. particularly useful in environments that operate a lot on the bit level
  43443. (like microcontrollers).
  43444. The following statements are identical:
  43445. i = 42;
  43446. i = 0x2a;
  43447. i = 052;
  43448. i = 0b101010;
  43449. The type of these constants follows the same rules as for octal or
  43450. hexadecimal integer constants, so suffixes like 'L' or 'UL' can be
  43451. applied.
  43452. 
  43453. File: gcc.info, Node: C++ Extensions, Next: Objective-C, Prev: C Extensions, Up: Top
  43454. 7 Extensions to the C++ Language
  43455. ********************************
  43456. The GNU compiler provides these extensions to the C++ language (and you
  43457. can also use most of the C language extensions in your C++ programs).
  43458. If you want to write code that checks whether these features are
  43459. available, you can test for the GNU compiler the same way as for C
  43460. programs: check for a predefined macro '__GNUC__'. You can also use
  43461. '__GNUG__' to test specifically for GNU C++ (*note Predefined Macros:
  43462. (cpp)Common Predefined Macros.).
  43463. * Menu:
  43464. * C++ Volatiles:: What constitutes an access to a volatile object.
  43465. * Restricted Pointers:: C99 restricted pointers and references.
  43466. * Vague Linkage:: Where G++ puts inlines, vtables and such.
  43467. * C++ Interface:: You can use a single C++ header file for both
  43468. declarations and definitions.
  43469. * Template Instantiation:: Methods for ensuring that exactly one copy of
  43470. each needed template instantiation is emitted.
  43471. * Bound member functions:: You can extract a function pointer to the
  43472. method denoted by a '->*' or '.*' expression.
  43473. * C++ Attributes:: Variable, function, and type attributes for C++ only.
  43474. * Function Multiversioning:: Declaring multiple function versions.
  43475. * Type Traits:: Compiler support for type traits.
  43476. * C++ Concepts:: Improved support for generic programming.
  43477. * Deprecated Features:: Things will disappear from G++.
  43478. * Backwards Compatibility:: Compatibilities with earlier definitions of C++.
  43479. 
  43480. File: gcc.info, Node: C++ Volatiles, Next: Restricted Pointers, Up: C++ Extensions
  43481. 7.1 When is a Volatile C++ Object Accessed?
  43482. ===========================================
  43483. The C++ standard differs from the C standard in its treatment of
  43484. volatile objects. It fails to specify what constitutes a volatile
  43485. access, except to say that C++ should behave in a similar manner to C
  43486. with respect to volatiles, where possible. However, the different
  43487. lvalueness of expressions between C and C++ complicate the behavior.
  43488. G++ behaves the same as GCC for volatile access, *Note Volatiles: C
  43489. Extensions, for a description of GCC's behavior.
  43490. The C and C++ language specifications differ when an object is accessed
  43491. in a void context:
  43492. volatile int *src = SOMEVALUE;
  43493. *src;
  43494. The C++ standard specifies that such expressions do not undergo lvalue
  43495. to rvalue conversion, and that the type of the dereferenced object may
  43496. be incomplete. The C++ standard does not specify explicitly that it is
  43497. lvalue to rvalue conversion that is responsible for causing an access.
  43498. There is reason to believe that it is, because otherwise certain simple
  43499. expressions become undefined. However, because it would surprise most
  43500. programmers, G++ treats dereferencing a pointer to volatile object of
  43501. complete type as GCC would do for an equivalent type in C. When the
  43502. object has incomplete type, G++ issues a warning; if you wish to force
  43503. an error, you must force a conversion to rvalue with, for instance, a
  43504. static cast.
  43505. When using a reference to volatile, G++ does not treat equivalent
  43506. expressions as accesses to volatiles, but instead issues a warning that
  43507. no volatile is accessed. The rationale for this is that otherwise it
  43508. becomes difficult to determine where volatile access occur, and not
  43509. possible to ignore the return value from functions returning volatile
  43510. references. Again, if you wish to force a read, cast the reference to
  43511. an rvalue.
  43512. G++ implements the same behavior as GCC does when assigning to a
  43513. volatile object--there is no reread of the assigned-to object, the
  43514. assigned rvalue is reused. Note that in C++ assignment expressions are
  43515. lvalues, and if used as an lvalue, the volatile object is referred to.
  43516. For instance, VREF refers to VOBJ, as expected, in the following
  43517. example:
  43518. volatile int vobj;
  43519. volatile int &vref = vobj = SOMETHING;
  43520. 
  43521. File: gcc.info, Node: Restricted Pointers, Next: Vague Linkage, Prev: C++ Volatiles, Up: C++ Extensions
  43522. 7.2 Restricting Pointer Aliasing
  43523. ================================
  43524. As with the C front end, G++ understands the C99 feature of restricted
  43525. pointers, specified with the '__restrict__', or '__restrict' type
  43526. qualifier. Because you cannot compile C++ by specifying the '-std=c99'
  43527. language flag, 'restrict' is not a keyword in C++.
  43528. In addition to allowing restricted pointers, you can specify restricted
  43529. references, which indicate that the reference is not aliased in the
  43530. local context.
  43531. void fn (int *__restrict__ rptr, int &__restrict__ rref)
  43532. {
  43533. /* ... */
  43534. }
  43535. In the body of 'fn', RPTR points to an unaliased integer and RREF refers
  43536. to a (different) unaliased integer.
  43537. You may also specify whether a member function's THIS pointer is
  43538. unaliased by using '__restrict__' as a member function qualifier.
  43539. void T::fn () __restrict__
  43540. {
  43541. /* ... */
  43542. }
  43543. Within the body of 'T::fn', THIS has the effective definition 'T
  43544. *__restrict__ const this'. Notice that the interpretation of a
  43545. '__restrict__' member function qualifier is different to that of 'const'
  43546. or 'volatile' qualifier, in that it is applied to the pointer rather
  43547. than the object. This is consistent with other compilers that implement
  43548. restricted pointers.
  43549. As with all outermost parameter qualifiers, '__restrict__' is ignored
  43550. in function definition matching. This means you only need to specify
  43551. '__restrict__' in a function definition, rather than in a function
  43552. prototype as well.
  43553. 
  43554. File: gcc.info, Node: Vague Linkage, Next: C++ Interface, Prev: Restricted Pointers, Up: C++ Extensions
  43555. 7.3 Vague Linkage
  43556. =================
  43557. There are several constructs in C++ that require space in the object
  43558. file but are not clearly tied to a single translation unit. We say that
  43559. these constructs have "vague linkage". Typically such constructs are
  43560. emitted wherever they are needed, though sometimes we can be more
  43561. clever.
  43562. Inline Functions
  43563. Inline functions are typically defined in a header file which can
  43564. be included in many different compilations. Hopefully they can
  43565. usually be inlined, but sometimes an out-of-line copy is necessary,
  43566. if the address of the function is taken or if inlining fails. In
  43567. general, we emit an out-of-line copy in all translation units where
  43568. one is needed. As an exception, we only emit inline virtual
  43569. functions with the vtable, since it always requires a copy.
  43570. Local static variables and string constants used in an inline
  43571. function are also considered to have vague linkage, since they must
  43572. be shared between all inlined and out-of-line instances of the
  43573. function.
  43574. VTables
  43575. C++ virtual functions are implemented in most compilers using a
  43576. lookup table, known as a vtable. The vtable contains pointers to
  43577. the virtual functions provided by a class, and each object of the
  43578. class contains a pointer to its vtable (or vtables, in some
  43579. multiple-inheritance situations). If the class declares any
  43580. non-inline, non-pure virtual functions, the first one is chosen as
  43581. the "key method" for the class, and the vtable is only emitted in
  43582. the translation unit where the key method is defined.
  43583. _Note:_ If the chosen key method is later defined as inline, the
  43584. vtable is still emitted in every translation unit that defines it.
  43585. Make sure that any inline virtuals are declared inline in the class
  43586. body, even if they are not defined there.
  43587. 'type_info' objects
  43588. C++ requires information about types to be written out in order to
  43589. implement 'dynamic_cast', 'typeid' and exception handling. For
  43590. polymorphic classes (classes with virtual functions), the
  43591. 'type_info' object is written out along with the vtable so that
  43592. 'dynamic_cast' can determine the dynamic type of a class object at
  43593. run time. For all other types, we write out the 'type_info' object
  43594. when it is used: when applying 'typeid' to an expression, throwing
  43595. an object, or referring to a type in a catch clause or exception
  43596. specification.
  43597. Template Instantiations
  43598. Most everything in this section also applies to template
  43599. instantiations, but there are other options as well. *Note Where's
  43600. the Template?: Template Instantiation.
  43601. When used with GNU ld version 2.8 or later on an ELF system such as
  43602. GNU/Linux or Solaris 2, or on Microsoft Windows, duplicate copies of
  43603. these constructs will be discarded at link time. This is known as
  43604. COMDAT support.
  43605. On targets that don't support COMDAT, but do support weak symbols, GCC
  43606. uses them. This way one copy overrides all the others, but the unused
  43607. copies still take up space in the executable.
  43608. For targets that do not support either COMDAT or weak symbols, most
  43609. entities with vague linkage are emitted as local symbols to avoid
  43610. duplicate definition errors from the linker. This does not happen for
  43611. local statics in inlines, however, as having multiple copies almost
  43612. certainly breaks things.
  43613. *Note Declarations and Definitions in One Header: C++ Interface, for
  43614. another way to control placement of these constructs.
  43615. 
  43616. File: gcc.info, Node: C++ Interface, Next: Template Instantiation, Prev: Vague Linkage, Up: C++ Extensions
  43617. 7.4 C++ Interface and Implementation Pragmas
  43618. ============================================
  43619. '#pragma interface' and '#pragma implementation' provide the user with a
  43620. way of explicitly directing the compiler to emit entities with vague
  43621. linkage (and debugging information) in a particular translation unit.
  43622. _Note:_ These '#pragma's have been superceded as of GCC 2.7.2 by COMDAT
  43623. support and the "key method" heuristic mentioned in *note Vague
  43624. Linkage::. Using them can actually cause your program to grow due to
  43625. unnecessary out-of-line copies of inline functions.
  43626. '#pragma interface'
  43627. '#pragma interface "SUBDIR/OBJECTS.h"'
  43628. Use this directive in _header files_ that define object classes, to
  43629. save space in most of the object files that use those classes.
  43630. Normally, local copies of certain information (backup copies of
  43631. inline member functions, debugging information, and the internal
  43632. tables that implement virtual functions) must be kept in each
  43633. object file that includes class definitions. You can use this
  43634. pragma to avoid such duplication. When a header file containing
  43635. '#pragma interface' is included in a compilation, this auxiliary
  43636. information is not generated (unless the main input source file
  43637. itself uses '#pragma implementation'). Instead, the object files
  43638. contain references to be resolved at link time.
  43639. The second form of this directive is useful for the case where you
  43640. have multiple headers with the same name in different directories.
  43641. If you use this form, you must specify the same string to '#pragma
  43642. implementation'.
  43643. '#pragma implementation'
  43644. '#pragma implementation "OBJECTS.h"'
  43645. Use this pragma in a _main input file_, when you want full output
  43646. from included header files to be generated (and made globally
  43647. visible). The included header file, in turn, should use '#pragma
  43648. interface'. Backup copies of inline member functions, debugging
  43649. information, and the internal tables used to implement virtual
  43650. functions are all generated in implementation files.
  43651. If you use '#pragma implementation' with no argument, it applies to
  43652. an include file with the same basename(1) as your source file. For
  43653. example, in 'allclass.cc', giving just '#pragma implementation' by
  43654. itself is equivalent to '#pragma implementation "allclass.h"'.
  43655. Use the string argument if you want a single implementation file to
  43656. include code from multiple header files. (You must also use
  43657. '#include' to include the header file; '#pragma implementation'
  43658. only specifies how to use the file--it doesn't actually include
  43659. it.)
  43660. There is no way to split up the contents of a single header file
  43661. into multiple implementation files.
  43662. '#pragma implementation' and '#pragma interface' also have an effect on
  43663. function inlining.
  43664. If you define a class in a header file marked with '#pragma interface',
  43665. the effect on an inline function defined in that class is similar to an
  43666. explicit 'extern' declaration--the compiler emits no code at all to
  43667. define an independent version of the function. Its definition is used
  43668. only for inlining with its callers.
  43669. Conversely, when you include the same header file in a main source file
  43670. that declares it as '#pragma implementation', the compiler emits code
  43671. for the function itself; this defines a version of the function that can
  43672. be found via pointers (or by callers compiled without inlining). If all
  43673. calls to the function can be inlined, you can avoid emitting the
  43674. function by compiling with '-fno-implement-inlines'. If any calls are
  43675. not inlined, you will get linker errors.
  43676. ---------- Footnotes ----------
  43677. (1) A file's "basename" is the name stripped of all leading path
  43678. information and of trailing suffixes, such as '.h' or '.C' or '.cc'.
  43679. 
  43680. File: gcc.info, Node: Template Instantiation, Next: Bound member functions, Prev: C++ Interface, Up: C++ Extensions
  43681. 7.5 Where's the Template?
  43682. =========================
  43683. C++ templates were the first language feature to require more
  43684. intelligence from the environment than was traditionally found on a UNIX
  43685. system. Somehow the compiler and linker have to make sure that each
  43686. template instance occurs exactly once in the executable if it is needed,
  43687. and not at all otherwise. There are two basic approaches to this
  43688. problem, which are referred to as the Borland model and the Cfront
  43689. model.
  43690. Borland model
  43691. Borland C++ solved the template instantiation problem by adding the
  43692. code equivalent of common blocks to their linker; the compiler
  43693. emits template instances in each translation unit that uses them,
  43694. and the linker collapses them together. The advantage of this
  43695. model is that the linker only has to consider the object files
  43696. themselves; there is no external complexity to worry about. The
  43697. disadvantage is that compilation time is increased because the
  43698. template code is being compiled repeatedly. Code written for this
  43699. model tends to include definitions of all templates in the header
  43700. file, since they must be seen to be instantiated.
  43701. Cfront model
  43702. The AT&T C++ translator, Cfront, solved the template instantiation
  43703. problem by creating the notion of a template repository, an
  43704. automatically maintained place where template instances are stored.
  43705. A more modern version of the repository works as follows: As
  43706. individual object files are built, the compiler places any template
  43707. definitions and instantiations encountered in the repository. At
  43708. link time, the link wrapper adds in the objects in the repository
  43709. and compiles any needed instances that were not previously emitted.
  43710. The advantages of this model are more optimal compilation speed and
  43711. the ability to use the system linker; to implement the Borland
  43712. model a compiler vendor also needs to replace the linker. The
  43713. disadvantages are vastly increased complexity, and thus potential
  43714. for error; for some code this can be just as transparent, but in
  43715. practice it can been very difficult to build multiple programs in
  43716. one directory and one program in multiple directories. Code
  43717. written for this model tends to separate definitions of non-inline
  43718. member templates into a separate file, which should be compiled
  43719. separately.
  43720. G++ implements the Borland model on targets where the linker supports
  43721. it, including ELF targets (such as GNU/Linux), Mac OS X and Microsoft
  43722. Windows. Otherwise G++ implements neither automatic model.
  43723. You have the following options for dealing with template
  43724. instantiations:
  43725. 1. Do nothing. Code written for the Borland model works fine, but
  43726. each translation unit contains instances of each of the templates
  43727. it uses. The duplicate instances will be discarded by the linker,
  43728. but in a large program, this can lead to an unacceptable amount of
  43729. code duplication in object files or shared libraries.
  43730. Duplicate instances of a template can be avoided by defining an
  43731. explicit instantiation in one object file, and preventing the
  43732. compiler from doing implicit instantiations in any other object
  43733. files by using an explicit instantiation declaration, using the
  43734. 'extern template' syntax:
  43735. extern template int max (int, int);
  43736. This syntax is defined in the C++ 2011 standard, but has been
  43737. supported by G++ and other compilers since well before 2011.
  43738. Explicit instantiations can be used for the largest or most
  43739. frequently duplicated instances, without having to know exactly
  43740. which other instances are used in the rest of the program. You can
  43741. scatter the explicit instantiations throughout your program,
  43742. perhaps putting them in the translation units where the instances
  43743. are used or the translation units that define the templates
  43744. themselves; you can put all of the explicit instantiations you need
  43745. into one big file; or you can create small files like
  43746. #include "Foo.h"
  43747. #include "Foo.cc"
  43748. template class Foo<int>;
  43749. template ostream& operator <<
  43750. (ostream&, const Foo<int>&);
  43751. for each of the instances you need, and create a template
  43752. instantiation library from those.
  43753. This is the simplest option, but also offers flexibility and
  43754. fine-grained control when necessary. It is also the most portable
  43755. alternative and programs using this approach will work with most
  43756. modern compilers.
  43757. 2. Compile your code with '-fno-implicit-templates' to disable the
  43758. implicit generation of template instances, and explicitly
  43759. instantiate all the ones you use. This approach requires more
  43760. knowledge of exactly which instances you need than do the others,
  43761. but it's less mysterious and allows greater control if you want to
  43762. ensure that only the intended instances are used.
  43763. If you are using Cfront-model code, you can probably get away with
  43764. not using '-fno-implicit-templates' when compiling files that don't
  43765. '#include' the member template definitions.
  43766. If you use one big file to do the instantiations, you may want to
  43767. compile it without '-fno-implicit-templates' so you get all of the
  43768. instances required by your explicit instantiations (but not by any
  43769. other files) without having to specify them as well.
  43770. In addition to forward declaration of explicit instantiations (with
  43771. 'extern'), G++ has extended the template instantiation syntax to
  43772. support instantiation of the compiler support data for a template
  43773. class (i.e. the vtable) without instantiating any of its members
  43774. (with 'inline'), and instantiation of only the static data members
  43775. of a template class, without the support data or member functions
  43776. (with 'static'):
  43777. inline template class Foo<int>;
  43778. static template class Foo<int>;
  43779. 
  43780. File: gcc.info, Node: Bound member functions, Next: C++ Attributes, Prev: Template Instantiation, Up: C++ Extensions
  43781. 7.6 Extracting the Function Pointer from a Bound Pointer to Member Function
  43782. ===========================================================================
  43783. In C++, pointer to member functions (PMFs) are implemented using a wide
  43784. pointer of sorts to handle all the possible call mechanisms; the PMF
  43785. needs to store information about how to adjust the 'this' pointer, and
  43786. if the function pointed to is virtual, where to find the vtable, and
  43787. where in the vtable to look for the member function. If you are using
  43788. PMFs in an inner loop, you should really reconsider that decision. If
  43789. that is not an option, you can extract the pointer to the function that
  43790. would be called for a given object/PMF pair and call it directly inside
  43791. the inner loop, to save a bit of time.
  43792. Note that you still pay the penalty for the call through a function
  43793. pointer; on most modern architectures, such a call defeats the branch
  43794. prediction features of the CPU. This is also true of normal virtual
  43795. function calls.
  43796. The syntax for this extension is
  43797. extern A a;
  43798. extern int (A::*fp)();
  43799. typedef int (*fptr)(A *);
  43800. fptr p = (fptr)(a.*fp);
  43801. For PMF constants (i.e. expressions of the form '&Klasse::Member'), no
  43802. object is needed to obtain the address of the function. They can be
  43803. converted to function pointers directly:
  43804. fptr p1 = (fptr)(&A::foo);
  43805. You must specify '-Wno-pmf-conversions' to use this extension.
  43806. 
  43807. File: gcc.info, Node: C++ Attributes, Next: Function Multiversioning, Prev: Bound member functions, Up: C++ Extensions
  43808. 7.7 C++-Specific Variable, Function, and Type Attributes
  43809. ========================================================
  43810. Some attributes only make sense for C++ programs.
  43811. 'abi_tag ("TAG", ...)'
  43812. The 'abi_tag' attribute can be applied to a function, variable, or
  43813. class declaration. It modifies the mangled name of the entity to
  43814. incorporate the tag name, in order to distinguish the function or
  43815. class from an earlier version with a different ABI; perhaps the
  43816. class has changed size, or the function has a different return type
  43817. that is not encoded in the mangled name.
  43818. The attribute can also be applied to an inline namespace, but does
  43819. not affect the mangled name of the namespace; in this case it is
  43820. only used for '-Wabi-tag' warnings and automatic tagging of
  43821. functions and variables. Tagging inline namespaces is generally
  43822. preferable to tagging individual declarations, but the latter is
  43823. sometimes necessary, such as when only certain members of a class
  43824. need to be tagged.
  43825. The argument can be a list of strings of arbitrary length. The
  43826. strings are sorted on output, so the order of the list is
  43827. unimportant.
  43828. A redeclaration of an entity must not add new ABI tags, since doing
  43829. so would change the mangled name.
  43830. The ABI tags apply to a name, so all instantiations and
  43831. specializations of a template have the same tags. The attribute
  43832. will be ignored if applied to an explicit specialization or
  43833. instantiation.
  43834. The '-Wabi-tag' flag enables a warning about a class which does not
  43835. have all the ABI tags used by its subobjects and virtual functions;
  43836. for users with code that needs to coexist with an earlier ABI,
  43837. using this option can help to find all affected types that need to
  43838. be tagged.
  43839. When a type involving an ABI tag is used as the type of a variable
  43840. or return type of a function where that tag is not already present
  43841. in the signature of the function, the tag is automatically applied
  43842. to the variable or function. '-Wabi-tag' also warns about this
  43843. situation; this warning can be avoided by explicitly tagging the
  43844. variable or function or moving it into a tagged inline namespace.
  43845. 'init_priority (PRIORITY)'
  43846. In Standard C++, objects defined at namespace scope are guaranteed
  43847. to be initialized in an order in strict accordance with that of
  43848. their definitions _in a given translation unit_. No guarantee is
  43849. made for initializations across translation units. However, GNU
  43850. C++ allows users to control the order of initialization of objects
  43851. defined at namespace scope with the 'init_priority' attribute by
  43852. specifying a relative PRIORITY, a constant integral expression
  43853. currently bounded between 101 and 65535 inclusive. Lower numbers
  43854. indicate a higher priority.
  43855. In the following example, 'A' would normally be created before 'B',
  43856. but the 'init_priority' attribute reverses that order:
  43857. Some_Class A __attribute__ ((init_priority (2000)));
  43858. Some_Class B __attribute__ ((init_priority (543)));
  43859. Note that the particular values of PRIORITY do not matter; only
  43860. their relative ordering.
  43861. 'warn_unused'
  43862. For C++ types with non-trivial constructors and/or destructors it
  43863. is impossible for the compiler to determine whether a variable of
  43864. this type is truly unused if it is not referenced. This type
  43865. attribute informs the compiler that variables of this type should
  43866. be warned about if they appear to be unused, just like variables of
  43867. fundamental types.
  43868. This attribute is appropriate for types which just represent a
  43869. value, such as 'std::string'; it is not appropriate for types which
  43870. control a resource, such as 'std::lock_guard'.
  43871. This attribute is also accepted in C, but it is unnecessary because
  43872. C does not have constructors or destructors.
  43873. 
  43874. File: gcc.info, Node: Function Multiversioning, Next: Type Traits, Prev: C++ Attributes, Up: C++ Extensions
  43875. 7.8 Function Multiversioning
  43876. ============================
  43877. With the GNU C++ front end, for x86 targets, you may specify multiple
  43878. versions of a function, where each function is specialized for a
  43879. specific target feature. At runtime, the appropriate version of the
  43880. function is automatically executed depending on the characteristics of
  43881. the execution platform. Here is an example.
  43882. __attribute__ ((target ("default")))
  43883. int foo ()
  43884. {
  43885. // The default version of foo.
  43886. return 0;
  43887. }
  43888. __attribute__ ((target ("sse4.2")))
  43889. int foo ()
  43890. {
  43891. // foo version for SSE4.2
  43892. return 1;
  43893. }
  43894. __attribute__ ((target ("arch=atom")))
  43895. int foo ()
  43896. {
  43897. // foo version for the Intel ATOM processor
  43898. return 2;
  43899. }
  43900. __attribute__ ((target ("arch=amdfam10")))
  43901. int foo ()
  43902. {
  43903. // foo version for the AMD Family 0x10 processors.
  43904. return 3;
  43905. }
  43906. int main ()
  43907. {
  43908. int (*p)() = &foo;
  43909. assert ((*p) () == foo ());
  43910. return 0;
  43911. }
  43912. In the above example, four versions of function foo are created. The
  43913. first version of foo with the target attribute "default" is the default
  43914. version. This version gets executed when no other target specific
  43915. version qualifies for execution on a particular platform. A new version
  43916. of foo is created by using the same function signature but with a
  43917. different target string. Function foo is called or a pointer to it is
  43918. taken just like a regular function. GCC takes care of doing the
  43919. dispatching to call the right version at runtime. Refer to the GCC wiki
  43920. on Function Multiversioning
  43921. (http://gcc.gnu.org/wiki/FunctionMultiVersioning) for more details.
  43922. 
  43923. File: gcc.info, Node: Type Traits, Next: C++ Concepts, Prev: Function Multiversioning, Up: C++ Extensions
  43924. 7.9 Type Traits
  43925. ===============
  43926. The C++ front end implements syntactic extensions that allow
  43927. compile-time determination of various characteristics of a type (or of a
  43928. pair of types).
  43929. '__has_nothrow_assign (type)'
  43930. If 'type' is 'const'-qualified or is a reference type then the
  43931. trait is 'false'. Otherwise if '__has_trivial_assign (type)' is
  43932. 'true' then the trait is 'true', else if 'type' is a cv-qualified
  43933. class or union type with copy assignment operators that are known
  43934. not to throw an exception then the trait is 'true', else it is
  43935. 'false'. Requires: 'type' shall be a complete type, (possibly
  43936. cv-qualified) 'void', or an array of unknown bound.
  43937. '__has_nothrow_copy (type)'
  43938. If '__has_trivial_copy (type)' is 'true' then the trait is 'true',
  43939. else if 'type' is a cv-qualified class or union type with copy
  43940. constructors that are known not to throw an exception then the
  43941. trait is 'true', else it is 'false'. Requires: 'type' shall be a
  43942. complete type, (possibly cv-qualified) 'void', or an array of
  43943. unknown bound.
  43944. '__has_nothrow_constructor (type)'
  43945. If '__has_trivial_constructor (type)' is 'true' then the trait is
  43946. 'true', else if 'type' is a cv class or union type (or array
  43947. thereof) with a default constructor that is known not to throw an
  43948. exception then the trait is 'true', else it is 'false'. Requires:
  43949. 'type' shall be a complete type, (possibly cv-qualified) 'void', or
  43950. an array of unknown bound.
  43951. '__has_trivial_assign (type)'
  43952. If 'type' is 'const'- qualified or is a reference type then the
  43953. trait is 'false'. Otherwise if '__is_pod (type)' is 'true' then
  43954. the trait is 'true', else if 'type' is a cv-qualified class or
  43955. union type with a trivial copy assignment ([class.copy]) then the
  43956. trait is 'true', else it is 'false'. Requires: 'type' shall be a
  43957. complete type, (possibly cv-qualified) 'void', or an array of
  43958. unknown bound.
  43959. '__has_trivial_copy (type)'
  43960. If '__is_pod (type)' is 'true' or 'type' is a reference type then
  43961. the trait is 'true', else if 'type' is a cv class or union type
  43962. with a trivial copy constructor ([class.copy]) then the trait is
  43963. 'true', else it is 'false'. Requires: 'type' shall be a complete
  43964. type, (possibly cv-qualified) 'void', or an array of unknown bound.
  43965. '__has_trivial_constructor (type)'
  43966. If '__is_pod (type)' is 'true' then the trait is 'true', else if
  43967. 'type' is a cv-qualified class or union type (or array thereof)
  43968. with a trivial default constructor ([class.ctor]) then the trait is
  43969. 'true', else it is 'false'. Requires: 'type' shall be a complete
  43970. type, (possibly cv-qualified) 'void', or an array of unknown bound.
  43971. '__has_trivial_destructor (type)'
  43972. If '__is_pod (type)' is 'true' or 'type' is a reference type then
  43973. the trait is 'true', else if 'type' is a cv class or union type (or
  43974. array thereof) with a trivial destructor ([class.dtor]) then the
  43975. trait is 'true', else it is 'false'. Requires: 'type' shall be a
  43976. complete type, (possibly cv-qualified) 'void', or an array of
  43977. unknown bound.
  43978. '__has_virtual_destructor (type)'
  43979. If 'type' is a class type with a virtual destructor ([class.dtor])
  43980. then the trait is 'true', else it is 'false'. Requires: 'type'
  43981. shall be a complete type, (possibly cv-qualified) 'void', or an
  43982. array of unknown bound.
  43983. '__is_abstract (type)'
  43984. If 'type' is an abstract class ([class.abstract]) then the trait is
  43985. 'true', else it is 'false'. Requires: 'type' shall be a complete
  43986. type, (possibly cv-qualified) 'void', or an array of unknown bound.
  43987. '__is_base_of (base_type, derived_type)'
  43988. If 'base_type' is a base class of 'derived_type' ([class.derived])
  43989. then the trait is 'true', otherwise it is 'false'. Top-level
  43990. cv-qualifications of 'base_type' and 'derived_type' are ignored.
  43991. For the purposes of this trait, a class type is considered is own
  43992. base. Requires: if '__is_class (base_type)' and '__is_class
  43993. (derived_type)' are 'true' and 'base_type' and 'derived_type' are
  43994. not the same type (disregarding cv-qualifiers), 'derived_type'
  43995. shall be a complete type. A diagnostic is produced if this
  43996. requirement is not met.
  43997. '__is_class (type)'
  43998. If 'type' is a cv-qualified class type, and not a union type
  43999. ([basic.compound]) the trait is 'true', else it is 'false'.
  44000. '__is_empty (type)'
  44001. If '__is_class (type)' is 'false' then the trait is 'false'.
  44002. Otherwise 'type' is considered empty if and only if: 'type' has no
  44003. non-static data members, or all non-static data members, if any,
  44004. are bit-fields of length 0, and 'type' has no virtual members, and
  44005. 'type' has no virtual base classes, and 'type' has no base classes
  44006. 'base_type' for which '__is_empty (base_type)' is 'false'.
  44007. Requires: 'type' shall be a complete type, (possibly cv-qualified)
  44008. 'void', or an array of unknown bound.
  44009. '__is_enum (type)'
  44010. If 'type' is a cv enumeration type ([basic.compound]) the trait is
  44011. 'true', else it is 'false'.
  44012. '__is_literal_type (type)'
  44013. If 'type' is a literal type ([basic.types]) the trait is 'true',
  44014. else it is 'false'. Requires: 'type' shall be a complete type,
  44015. (possibly cv-qualified) 'void', or an array of unknown bound.
  44016. '__is_pod (type)'
  44017. If 'type' is a cv POD type ([basic.types]) then the trait is
  44018. 'true', else it is 'false'. Requires: 'type' shall be a complete
  44019. type, (possibly cv-qualified) 'void', or an array of unknown bound.
  44020. '__is_polymorphic (type)'
  44021. If 'type' is a polymorphic class ([class.virtual]) then the trait
  44022. is 'true', else it is 'false'. Requires: 'type' shall be a
  44023. complete type, (possibly cv-qualified) 'void', or an array of
  44024. unknown bound.
  44025. '__is_standard_layout (type)'
  44026. If 'type' is a standard-layout type ([basic.types]) the trait is
  44027. 'true', else it is 'false'. Requires: 'type' shall be a complete
  44028. type, (possibly cv-qualified) 'void', or an array of unknown bound.
  44029. '__is_trivial (type)'
  44030. If 'type' is a trivial type ([basic.types]) the trait is 'true',
  44031. else it is 'false'. Requires: 'type' shall be a complete type,
  44032. (possibly cv-qualified) 'void', or an array of unknown bound.
  44033. '__is_union (type)'
  44034. If 'type' is a cv union type ([basic.compound]) the trait is
  44035. 'true', else it is 'false'.
  44036. '__underlying_type (type)'
  44037. The underlying type of 'type'. Requires: 'type' shall be an
  44038. enumeration type ([dcl.enum]).
  44039. '__integer_pack (length)'
  44040. When used as the pattern of a pack expansion within a template
  44041. definition, expands to a template argument pack containing integers
  44042. from '0' to 'length-1'. This is provided for efficient
  44043. implementation of 'std::make_integer_sequence'.
  44044. 
  44045. File: gcc.info, Node: C++ Concepts, Next: Deprecated Features, Prev: Type Traits, Up: C++ Extensions
  44046. 7.10 C++ Concepts
  44047. =================
  44048. C++ concepts provide much-improved support for generic programming. In
  44049. particular, they allow the specification of constraints on template
  44050. arguments. The constraints are used to extend the usual overloading and
  44051. partial specialization capabilities of the language, allowing generic
  44052. data structures and algorithms to be "refined" based on their properties
  44053. rather than their type names.
  44054. The following keywords are reserved for concepts.
  44055. 'assumes'
  44056. States an expression as an assumption, and if possible, verifies
  44057. that the assumption is valid. For example, 'assume(n > 0)'.
  44058. 'axiom'
  44059. Introduces an axiom definition. Axioms introduce requirements on
  44060. values.
  44061. 'forall'
  44062. Introduces a universally quantified object in an axiom. For
  44063. example, 'forall (int n) n + 0 == n').
  44064. 'concept'
  44065. Introduces a concept definition. Concepts are sets of syntactic
  44066. and semantic requirements on types and their values.
  44067. 'requires'
  44068. Introduces constraints on template arguments or requirements for a
  44069. member function of a class template.
  44070. The front end also exposes a number of internal mechanism that can be
  44071. used to simplify the writing of type traits. Note that some of these
  44072. traits are likely to be removed in the future.
  44073. '__is_same (type1, type2)'
  44074. A binary type trait: 'true' whenever the type arguments are the
  44075. same.
  44076. 
  44077. File: gcc.info, Node: Deprecated Features, Next: Backwards Compatibility, Prev: C++ Concepts, Up: C++ Extensions
  44078. 7.11 Deprecated Features
  44079. ========================
  44080. In the past, the GNU C++ compiler was extended to experiment with new
  44081. features, at a time when the C++ language was still evolving. Now that
  44082. the C++ standard is complete, some of those features are superseded by
  44083. superior alternatives. Using the old features might cause a warning in
  44084. some cases that the feature will be dropped in the future. In other
  44085. cases, the feature might be gone already.
  44086. G++ allows a virtual function returning 'void *' to be overridden by
  44087. one returning a different pointer type. This extension to the covariant
  44088. return type rules is now deprecated and will be removed from a future
  44089. version.
  44090. The use of default arguments in function pointers, function typedefs
  44091. and other places where they are not permitted by the standard is
  44092. deprecated and will be removed from a future version of G++.
  44093. G++ allows floating-point literals to appear in integral constant
  44094. expressions, e.g. ' enum E { e = int(2.2 * 3.7) } ' This extension is
  44095. deprecated and will be removed from a future version.
  44096. G++ allows static data members of const floating-point type to be
  44097. declared with an initializer in a class definition. The standard only
  44098. allows initializers for static members of const integral types and const
  44099. enumeration types so this extension has been deprecated and will be
  44100. removed from a future version.
  44101. G++ allows attributes to follow a parenthesized direct initializer,
  44102. e.g. ' int f (0) __attribute__ ((something)); ' This extension has been
  44103. ignored since G++ 3.3 and is deprecated.
  44104. G++ allows anonymous structs and unions to have members that are not
  44105. public non-static data members (i.e. fields). These extensions are
  44106. deprecated.
  44107. 
  44108. File: gcc.info, Node: Backwards Compatibility, Prev: Deprecated Features, Up: C++ Extensions
  44109. 7.12 Backwards Compatibility
  44110. ============================
  44111. Now that there is a definitive ISO standard C++, G++ has a specification
  44112. to adhere to. The C++ language evolved over time, and features that
  44113. used to be acceptable in previous drafts of the standard, such as the
  44114. ARM [Annotated C++ Reference Manual], are no longer accepted. In order
  44115. to allow compilation of C++ written to such drafts, G++ contains some
  44116. backwards compatibilities. _All such backwards compatibility features
  44117. are liable to disappear in future versions of G++._ They should be
  44118. considered deprecated. *Note Deprecated Features::.
  44119. 'Implicit C language'
  44120. Old C system header files did not contain an 'extern "C" {...}'
  44121. scope to set the language. On such systems, all system header
  44122. files are implicitly scoped inside a C language scope. Such
  44123. headers must correctly prototype function argument types, there is
  44124. no leeway for '()' to indicate an unspecified set of arguments.
  44125. 
  44126. File: gcc.info, Node: Objective-C, Next: Compatibility, Prev: C++ Extensions, Up: Top
  44127. 8 GNU Objective-C Features
  44128. **************************
  44129. This document is meant to describe some of the GNU Objective-C features.
  44130. It is not intended to teach you Objective-C. There are several resources
  44131. on the Internet that present the language.
  44132. * Menu:
  44133. * GNU Objective-C runtime API::
  44134. * Executing code before main::
  44135. * Type encoding::
  44136. * Garbage Collection::
  44137. * Constant string objects::
  44138. * compatibility_alias::
  44139. * Exceptions::
  44140. * Synchronization::
  44141. * Fast enumeration::
  44142. * Messaging with the GNU Objective-C runtime::
  44143. 
  44144. File: gcc.info, Node: GNU Objective-C runtime API, Next: Executing code before main, Up: Objective-C
  44145. 8.1 GNU Objective-C Runtime API
  44146. ===============================
  44147. This section is specific for the GNU Objective-C runtime. If you are
  44148. using a different runtime, you can skip it.
  44149. The GNU Objective-C runtime provides an API that allows you to interact
  44150. with the Objective-C runtime system, querying the live runtime
  44151. structures and even manipulating them. This allows you for example to
  44152. inspect and navigate classes, methods and protocols; to define new
  44153. classes or new methods, and even to modify existing classes or
  44154. protocols.
  44155. If you are using a "Foundation" library such as GNUstep-Base, this
  44156. library will provide you with a rich set of functionality to do most of
  44157. the inspection tasks, and you probably will only need direct access to
  44158. the GNU Objective-C runtime API to define new classes or methods.
  44159. * Menu:
  44160. * Modern GNU Objective-C runtime API::
  44161. * Traditional GNU Objective-C runtime API::
  44162. 
  44163. File: gcc.info, Node: Modern GNU Objective-C runtime API, Next: Traditional GNU Objective-C runtime API, Up: GNU Objective-C runtime API
  44164. 8.1.1 Modern GNU Objective-C Runtime API
  44165. ----------------------------------------
  44166. The GNU Objective-C runtime provides an API which is similar to the one
  44167. provided by the "Objective-C 2.0" Apple/NeXT Objective-C runtime. The
  44168. API is documented in the public header files of the GNU Objective-C
  44169. runtime:
  44170. * 'objc/objc.h': this is the basic Objective-C header file, defining
  44171. the basic Objective-C types such as 'id', 'Class' and 'BOOL'. You
  44172. have to include this header to do almost anything with Objective-C.
  44173. * 'objc/runtime.h': this header declares most of the public runtime
  44174. API functions allowing you to inspect and manipulate the
  44175. Objective-C runtime data structures. These functions are fairly
  44176. standardized across Objective-C runtimes and are almost identical
  44177. to the Apple/NeXT Objective-C runtime ones. It does not declare
  44178. functions in some specialized areas (constructing and forwarding
  44179. message invocations, threading) which are in the other headers
  44180. below. You have to include 'objc/objc.h' and 'objc/runtime.h' to
  44181. use any of the functions, such as 'class_getName()', declared in
  44182. 'objc/runtime.h'.
  44183. * 'objc/message.h': this header declares public functions used to
  44184. construct, deconstruct and forward message invocations. Because
  44185. messaging is done in quite a different way on different runtimes,
  44186. functions in this header are specific to the GNU Objective-C
  44187. runtime implementation.
  44188. * 'objc/objc-exception.h': this header declares some public functions
  44189. related to Objective-C exceptions. For example functions in this
  44190. header allow you to throw an Objective-C exception from plain C/C++
  44191. code.
  44192. * 'objc/objc-sync.h': this header declares some public functions
  44193. related to the Objective-C '@synchronized()' syntax, allowing you
  44194. to emulate an Objective-C '@synchronized()' block in plain C/C++
  44195. code.
  44196. * 'objc/thr.h': this header declares a public runtime API threading
  44197. layer that is only provided by the GNU Objective-C runtime. It
  44198. declares functions such as 'objc_mutex_lock()', which provide a
  44199. platform-independent set of threading functions.
  44200. The header files contain detailed documentation for each function in
  44201. the GNU Objective-C runtime API.
  44202. 
  44203. File: gcc.info, Node: Traditional GNU Objective-C runtime API, Prev: Modern GNU Objective-C runtime API, Up: GNU Objective-C runtime API
  44204. 8.1.2 Traditional GNU Objective-C Runtime API
  44205. ---------------------------------------------
  44206. The GNU Objective-C runtime used to provide a different API, which we
  44207. call the "traditional" GNU Objective-C runtime API. Functions belonging
  44208. to this API are easy to recognize because they use a different naming
  44209. convention, such as 'class_get_super_class()' (traditional API) instead
  44210. of 'class_getSuperclass()' (modern API). Software using this API
  44211. includes the file 'objc/objc-api.h' where it is declared.
  44212. Starting with GCC 4.7.0, the traditional GNU runtime API is no longer
  44213. available.
  44214. 
  44215. File: gcc.info, Node: Executing code before main, Next: Type encoding, Prev: GNU Objective-C runtime API, Up: Objective-C
  44216. 8.2 '+load': Executing Code before 'main'
  44217. =========================================
  44218. This section is specific for the GNU Objective-C runtime. If you are
  44219. using a different runtime, you can skip it.
  44220. The GNU Objective-C runtime provides a way that allows you to execute
  44221. code before the execution of the program enters the 'main' function.
  44222. The code is executed on a per-class and a per-category basis, through a
  44223. special class method '+load'.
  44224. This facility is very useful if you want to initialize global variables
  44225. which can be accessed by the program directly, without sending a message
  44226. to the class first. The usual way to initialize global variables, in
  44227. the '+initialize' method, might not be useful because '+initialize' is
  44228. only called when the first message is sent to a class object, which in
  44229. some cases could be too late.
  44230. Suppose for example you have a 'FileStream' class that declares
  44231. 'Stdin', 'Stdout' and 'Stderr' as global variables, like below:
  44232. FileStream *Stdin = nil;
  44233. FileStream *Stdout = nil;
  44234. FileStream *Stderr = nil;
  44235. @implementation FileStream
  44236. + (void)initialize
  44237. {
  44238. Stdin = [[FileStream new] initWithFd:0];
  44239. Stdout = [[FileStream new] initWithFd:1];
  44240. Stderr = [[FileStream new] initWithFd:2];
  44241. }
  44242. /* Other methods here */
  44243. @end
  44244. In this example, the initialization of 'Stdin', 'Stdout' and 'Stderr'
  44245. in '+initialize' occurs too late. The programmer can send a message to
  44246. one of these objects before the variables are actually initialized, thus
  44247. sending messages to the 'nil' object. The '+initialize' method which
  44248. actually initializes the global variables is not invoked until the first
  44249. message is sent to the class object. The solution would require these
  44250. variables to be initialized just before entering 'main'.
  44251. The correct solution of the above problem is to use the '+load' method
  44252. instead of '+initialize':
  44253. @implementation FileStream
  44254. + (void)load
  44255. {
  44256. Stdin = [[FileStream new] initWithFd:0];
  44257. Stdout = [[FileStream new] initWithFd:1];
  44258. Stderr = [[FileStream new] initWithFd:2];
  44259. }
  44260. /* Other methods here */
  44261. @end
  44262. The '+load' is a method that is not overridden by categories. If a
  44263. class and a category of it both implement '+load', both methods are
  44264. invoked. This allows some additional initializations to be performed in
  44265. a category.
  44266. This mechanism is not intended to be a replacement for '+initialize'.
  44267. You should be aware of its limitations when you decide to use it instead
  44268. of '+initialize'.
  44269. * Menu:
  44270. * What you can and what you cannot do in +load::
  44271. 
  44272. File: gcc.info, Node: What you can and what you cannot do in +load, Up: Executing code before main
  44273. 8.2.1 What You Can and Cannot Do in '+load'
  44274. -------------------------------------------
  44275. '+load' is to be used only as a last resort. Because it is executed
  44276. very early, most of the Objective-C runtime machinery will not be ready
  44277. when '+load' is executed; hence '+load' works best for executing C code
  44278. that is independent on the Objective-C runtime.
  44279. The '+load' implementation in the GNU runtime guarantees you the
  44280. following things:
  44281. * you can write whatever C code you like;
  44282. * you can allocate and send messages to objects whose class is
  44283. implemented in the same file;
  44284. * the '+load' implementation of all super classes of a class are
  44285. executed before the '+load' of that class is executed;
  44286. * the '+load' implementation of a class is executed before the
  44287. '+load' implementation of any category.
  44288. In particular, the following things, even if they can work in a
  44289. particular case, are not guaranteed:
  44290. * allocation of or sending messages to arbitrary objects;
  44291. * allocation of or sending messages to objects whose classes have a
  44292. category implemented in the same file;
  44293. * sending messages to Objective-C constant strings ('@"this is a
  44294. constant string"');
  44295. You should make no assumptions about receiving '+load' in sibling
  44296. classes when you write '+load' of a class. The order in which sibling
  44297. classes receive '+load' is not guaranteed.
  44298. The order in which '+load' and '+initialize' are called could be
  44299. problematic if this matters. If you don't allocate objects inside
  44300. '+load', it is guaranteed that '+load' is called before '+initialize'.
  44301. If you create an object inside '+load' the '+initialize' method of
  44302. object's class is invoked even if '+load' was not invoked. Note if you
  44303. explicitly call '+load' on a class, '+initialize' will be called first.
  44304. To avoid possible problems try to implement only one of these methods.
  44305. The '+load' method is also invoked when a bundle is dynamically loaded
  44306. into your running program. This happens automatically without any
  44307. intervening operation from you. When you write bundles and you need to
  44308. write '+load' you can safely create and send messages to objects whose
  44309. classes already exist in the running program. The same restrictions as
  44310. above apply to classes defined in bundle.
  44311. 
  44312. File: gcc.info, Node: Type encoding, Next: Garbage Collection, Prev: Executing code before main, Up: Objective-C
  44313. 8.3 Type Encoding
  44314. =================
  44315. This is an advanced section. Type encodings are used extensively by the
  44316. compiler and by the runtime, but you generally do not need to know about
  44317. them to use Objective-C.
  44318. The Objective-C compiler generates type encodings for all the types.
  44319. These type encodings are used at runtime to find out information about
  44320. selectors and methods and about objects and classes.
  44321. The types are encoded in the following way:
  44322. '_Bool' 'B'
  44323. 'char' 'c'
  44324. 'unsigned char' 'C'
  44325. 'short' 's'
  44326. 'unsigned short' 'S'
  44327. 'int' 'i'
  44328. 'unsigned int' 'I'
  44329. 'long' 'l'
  44330. 'unsigned long' 'L'
  44331. 'long long' 'q'
  44332. 'unsigned long 'Q'
  44333. long'
  44334. 'float' 'f'
  44335. 'double' 'd'
  44336. 'long double' 'D'
  44337. 'void' 'v'
  44338. 'id' '@'
  44339. 'Class' '#'
  44340. 'SEL' ':'
  44341. 'char*' '*'
  44342. 'enum' an 'enum' is encoded exactly as the integer type
  44343. that the compiler uses for it, which depends on the
  44344. enumeration values. Often the compiler users
  44345. 'unsigned int', which is then encoded as 'I'.
  44346. unknown type '?'
  44347. Complex types 'j' followed by the inner type. For example
  44348. '_Complex double' is encoded as "jd".
  44349. bit-fields 'b' followed by the starting position of the
  44350. bit-field, the type of the bit-field and the size of
  44351. the bit-field (the bit-fields encoding was changed
  44352. from the NeXT's compiler encoding, see below)
  44353. The encoding of bit-fields has changed to allow bit-fields to be
  44354. properly handled by the runtime functions that compute sizes and
  44355. alignments of types that contain bit-fields. The previous encoding
  44356. contained only the size of the bit-field. Using only this information
  44357. it is not possible to reliably compute the size occupied by the
  44358. bit-field. This is very important in the presence of the Boehm's
  44359. garbage collector because the objects are allocated using the typed
  44360. memory facility available in this collector. The typed memory
  44361. allocation requires information about where the pointers are located
  44362. inside the object.
  44363. The position in the bit-field is the position, counting in bits, of the
  44364. bit closest to the beginning of the structure.
  44365. The non-atomic types are encoded as follows:
  44366. pointers '^' followed by the pointed type.
  44367. arrays '[' followed by the number of elements in the array
  44368. followed by the type of the elements followed by ']'
  44369. structures '{' followed by the name of the structure (or '?' if the
  44370. structure is unnamed), the '=' sign, the type of the
  44371. members and by '}'
  44372. unions '(' followed by the name of the structure (or '?' if the
  44373. union is unnamed), the '=' sign, the type of the members
  44374. followed by ')'
  44375. vectors '![' followed by the vector_size (the number of bytes
  44376. composing the vector) followed by a comma, followed by
  44377. the alignment (in bytes) of the vector, followed by the
  44378. type of the elements followed by ']'
  44379. Here are some types and their encodings, as they are generated by the
  44380. compiler on an i386 machine:
  44381. Objective-C type Compiler encoding
  44382. int a[10]; '[10i]'
  44383. struct { '{?=i[3f]b128i3b131i2c}'
  44384. int i;
  44385. float f[3];
  44386. int a:3;
  44387. int b:2;
  44388. char c;
  44389. }
  44390. int a __attribute__ ((vector_size (16)));'![16,16i]' (alignment
  44391. depends on the machine)
  44392. In addition to the types the compiler also encodes the type specifiers.
  44393. The table below describes the encoding of the current Objective-C type
  44394. specifiers:
  44395. Specifier Encoding
  44396. 'const' 'r'
  44397. 'in' 'n'
  44398. 'inout' 'N'
  44399. 'out' 'o'
  44400. 'bycopy' 'O'
  44401. 'byref' 'R'
  44402. 'oneway' 'V'
  44403. The type specifiers are encoded just before the type. Unlike types
  44404. however, the type specifiers are only encoded when they appear in method
  44405. argument types.
  44406. Note how 'const' interacts with pointers:
  44407. Objective-C type Compiler encoding
  44408. const int 'ri'
  44409. const int* '^ri'
  44410. int *const 'r^i'
  44411. 'const int*' is a pointer to a 'const int', and so is encoded as '^ri'.
  44412. 'int* const', instead, is a 'const' pointer to an 'int', and so is
  44413. encoded as 'r^i'.
  44414. Finally, there is a complication when encoding 'const char *' versus
  44415. 'char * const'. Because 'char *' is encoded as '*' and not as '^c',
  44416. there is no way to express the fact that 'r' applies to the pointer or
  44417. to the pointee.
  44418. Hence, it is assumed as a convention that 'r*' means 'const char *'
  44419. (since it is what is most often meant), and there is no way to encode
  44420. 'char *const'. 'char *const' would simply be encoded as '*', and the
  44421. 'const' is lost.
  44422. * Menu:
  44423. * Legacy type encoding::
  44424. * @encode::
  44425. * Method signatures::
  44426. 
  44427. File: gcc.info, Node: Legacy type encoding, Next: @encode, Up: Type encoding
  44428. 8.3.1 Legacy Type Encoding
  44429. --------------------------
  44430. Unfortunately, historically GCC used to have a number of bugs in its
  44431. encoding code. The NeXT runtime expects GCC to emit type encodings in
  44432. this historical format (compatible with GCC-3.3), so when using the NeXT
  44433. runtime, GCC will introduce on purpose a number of incorrect encodings:
  44434. * the read-only qualifier of the pointee gets emitted before the '^'.
  44435. The read-only qualifier of the pointer itself gets ignored, unless
  44436. it is a typedef. Also, the 'r' is only emitted for the outermost
  44437. type.
  44438. * 32-bit longs are encoded as 'l' or 'L', but not always. For
  44439. typedefs, the compiler uses 'i' or 'I' instead if encoding a struct
  44440. field or a pointer.
  44441. * 'enum's are always encoded as 'i' (int) even if they are actually
  44442. unsigned or long.
  44443. In addition to that, the NeXT runtime uses a different encoding for
  44444. bitfields. It encodes them as 'b' followed by the size, without a bit
  44445. offset or the underlying field type.
  44446. 
  44447. File: gcc.info, Node: @encode, Next: Method signatures, Prev: Legacy type encoding, Up: Type encoding
  44448. 8.3.2 '@encode'
  44449. ---------------
  44450. GNU Objective-C supports the '@encode' syntax that allows you to create
  44451. a type encoding from a C/Objective-C type. For example, '@encode(int)'
  44452. is compiled by the compiler into '"i"'.
  44453. '@encode' does not support type qualifiers other than 'const'. For
  44454. example, '@encode(const char*)' is valid and is compiled into '"r*"',
  44455. while '@encode(bycopy char *)' is invalid and will cause a compilation
  44456. error.
  44457. 
  44458. File: gcc.info, Node: Method signatures, Prev: @encode, Up: Type encoding
  44459. 8.3.3 Method Signatures
  44460. -----------------------
  44461. This section documents the encoding of method types, which is rarely
  44462. needed to use Objective-C. You should skip it at a first reading; the
  44463. runtime provides functions that will work on methods and can walk
  44464. through the list of parameters and interpret them for you. These
  44465. functions are part of the public "API" and are the preferred way to
  44466. interact with method signatures from user code.
  44467. But if you need to debug a problem with method signatures and need to
  44468. know how they are implemented (i.e., the "ABI"), read on.
  44469. Methods have their "signature" encoded and made available to the
  44470. runtime. The "signature" encodes all the information required to
  44471. dynamically build invocations of the method at runtime: return type and
  44472. arguments.
  44473. The "signature" is a null-terminated string, composed of the following:
  44474. * The return type, including type qualifiers. For example, a method
  44475. returning 'int' would have 'i' here.
  44476. * The total size (in bytes) required to pass all the parameters.
  44477. This includes the two hidden parameters (the object 'self' and the
  44478. method selector '_cmd').
  44479. * Each argument, with the type encoding, followed by the offset (in
  44480. bytes) of the argument in the list of parameters.
  44481. For example, a method with no arguments and returning 'int' would have
  44482. the signature 'i8@0:4' if the size of a pointer is 4. The signature is
  44483. interpreted as follows: the 'i' is the return type (an 'int'), the '8'
  44484. is the total size of the parameters in bytes (two pointers each of size
  44485. 4), the '@0' is the first parameter (an object at byte offset '0') and
  44486. ':4' is the second parameter (a 'SEL' at byte offset '4').
  44487. You can easily find more examples by running the "strings" program on
  44488. an Objective-C object file compiled by GCC. You'll see a lot of strings
  44489. that look very much like 'i8@0:4'. They are signatures of Objective-C
  44490. methods.
  44491. 
  44492. File: gcc.info, Node: Garbage Collection, Next: Constant string objects, Prev: Type encoding, Up: Objective-C
  44493. 8.4 Garbage Collection
  44494. ======================
  44495. This section is specific for the GNU Objective-C runtime. If you are
  44496. using a different runtime, you can skip it.
  44497. Support for garbage collection with the GNU runtime has been added by
  44498. using a powerful conservative garbage collector, known as the
  44499. Boehm-Demers-Weiser conservative garbage collector.
  44500. To enable the support for it you have to configure the compiler using
  44501. an additional argument, '--enable-objc-gc'. This will build the
  44502. boehm-gc library, and build an additional runtime library which has
  44503. several enhancements to support the garbage collector. The new library
  44504. has a new name, 'libobjc_gc.a' to not conflict with the
  44505. non-garbage-collected library.
  44506. When the garbage collector is used, the objects are allocated using the
  44507. so-called typed memory allocation mechanism available in the
  44508. Boehm-Demers-Weiser collector. This mode requires precise information
  44509. on where pointers are located inside objects. This information is
  44510. computed once per class, immediately after the class has been
  44511. initialized.
  44512. There is a new runtime function 'class_ivar_set_gcinvisible()' which
  44513. can be used to declare a so-called "weak pointer" reference. Such a
  44514. pointer is basically hidden for the garbage collector; this can be
  44515. useful in certain situations, especially when you want to keep track of
  44516. the allocated objects, yet allow them to be collected. This kind of
  44517. pointers can only be members of objects, you cannot declare a global
  44518. pointer as a weak reference. Every type which is a pointer type can be
  44519. declared a weak pointer, including 'id', 'Class' and 'SEL'.
  44520. Here is an example of how to use this feature. Suppose you want to
  44521. implement a class whose instances hold a weak pointer reference; the
  44522. following class does this:
  44523. @interface WeakPointer : Object
  44524. {
  44525. const void* weakPointer;
  44526. }
  44527. - initWithPointer:(const void*)p;
  44528. - (const void*)weakPointer;
  44529. @end
  44530. @implementation WeakPointer
  44531. + (void)initialize
  44532. {
  44533. if (self == objc_lookUpClass ("WeakPointer"))
  44534. class_ivar_set_gcinvisible (self, "weakPointer", YES);
  44535. }
  44536. - initWithPointer:(const void*)p
  44537. {
  44538. weakPointer = p;
  44539. return self;
  44540. }
  44541. - (const void*)weakPointer
  44542. {
  44543. return weakPointer;
  44544. }
  44545. @end
  44546. Weak pointers are supported through a new type character specifier
  44547. represented by the '!' character. The 'class_ivar_set_gcinvisible()'
  44548. function adds or removes this specifier to the string type description
  44549. of the instance variable named as argument.
  44550. 
  44551. File: gcc.info, Node: Constant string objects, Next: compatibility_alias, Prev: Garbage Collection, Up: Objective-C
  44552. 8.5 Constant String Objects
  44553. ===========================
  44554. GNU Objective-C provides constant string objects that are generated
  44555. directly by the compiler. You declare a constant string object by
  44556. prefixing a C constant string with the character '@':
  44557. id myString = @"this is a constant string object";
  44558. The constant string objects are by default instances of the
  44559. 'NXConstantString' class which is provided by the GNU Objective-C
  44560. runtime. To get the definition of this class you must include the
  44561. 'objc/NXConstStr.h' header file.
  44562. User defined libraries may want to implement their own constant string
  44563. class. To be able to support them, the GNU Objective-C compiler
  44564. provides a new command line options
  44565. '-fconstant-string-class=CLASS-NAME'. The provided class should adhere
  44566. to a strict structure, the same as 'NXConstantString''s structure:
  44567. @interface MyConstantStringClass
  44568. {
  44569. Class isa;
  44570. char *c_string;
  44571. unsigned int len;
  44572. }
  44573. @end
  44574. 'NXConstantString' inherits from 'Object'; user class libraries may
  44575. choose to inherit the customized constant string class from a different
  44576. class than 'Object'. There is no requirement in the methods the
  44577. constant string class has to implement, but the final ivar layout of the
  44578. class must be the compatible with the given structure.
  44579. When the compiler creates the statically allocated constant string
  44580. object, the 'c_string' field will be filled by the compiler with the
  44581. string; the 'length' field will be filled by the compiler with the
  44582. string length; the 'isa' pointer will be filled with 'NULL' by the
  44583. compiler, and it will later be fixed up automatically at runtime by the
  44584. GNU Objective-C runtime library to point to the class which was set by
  44585. the '-fconstant-string-class' option when the object file is loaded (if
  44586. you wonder how it works behind the scenes, the name of the class to use,
  44587. and the list of static objects to fixup, are stored by the compiler in
  44588. the object file in a place where the GNU runtime library will find them
  44589. at runtime).
  44590. As a result, when a file is compiled with the '-fconstant-string-class'
  44591. option, all the constant string objects will be instances of the class
  44592. specified as argument to this option. It is possible to have multiple
  44593. compilation units referring to different constant string classes,
  44594. neither the compiler nor the linker impose any restrictions in doing
  44595. this.
  44596. 
  44597. File: gcc.info, Node: compatibility_alias, Next: Exceptions, Prev: Constant string objects, Up: Objective-C
  44598. 8.6 'compatibility_alias'
  44599. =========================
  44600. The keyword '@compatibility_alias' allows you to define a class name as
  44601. equivalent to another class name. For example:
  44602. @compatibility_alias WOApplication GSWApplication;
  44603. tells the compiler that each time it encounters 'WOApplication' as a
  44604. class name, it should replace it with 'GSWApplication' (that is,
  44605. 'WOApplication' is just an alias for 'GSWApplication').
  44606. There are some constraints on how this can be used--
  44607. * 'WOApplication' (the alias) must not be an existing class;
  44608. * 'GSWApplication' (the real class) must be an existing class.
  44609. 
  44610. File: gcc.info, Node: Exceptions, Next: Synchronization, Prev: compatibility_alias, Up: Objective-C
  44611. 8.7 Exceptions
  44612. ==============
  44613. GNU Objective-C provides exception support built into the language, as
  44614. in the following example:
  44615. @try {
  44616. ...
  44617. @throw expr;
  44618. ...
  44619. }
  44620. @catch (AnObjCClass *exc) {
  44621. ...
  44622. @throw expr;
  44623. ...
  44624. @throw;
  44625. ...
  44626. }
  44627. @catch (AnotherClass *exc) {
  44628. ...
  44629. }
  44630. @catch (id allOthers) {
  44631. ...
  44632. }
  44633. @finally {
  44634. ...
  44635. @throw expr;
  44636. ...
  44637. }
  44638. The '@throw' statement may appear anywhere in an Objective-C or
  44639. Objective-C++ program; when used inside of a '@catch' block, the
  44640. '@throw' may appear without an argument (as shown above), in which case
  44641. the object caught by the '@catch' will be rethrown.
  44642. Note that only (pointers to) Objective-C objects may be thrown and
  44643. caught using this scheme. When an object is thrown, it will be caught
  44644. by the nearest '@catch' clause capable of handling objects of that type,
  44645. analogously to how 'catch' blocks work in C++ and Java. A '@catch(id
  44646. ...)' clause (as shown above) may also be provided to catch any and all
  44647. Objective-C exceptions not caught by previous '@catch' clauses (if any).
  44648. The '@finally' clause, if present, will be executed upon exit from the
  44649. immediately preceding '@try ... @catch' section. This will happen
  44650. regardless of whether any exceptions are thrown, caught or rethrown
  44651. inside the '@try ... @catch' section, analogously to the behavior of the
  44652. 'finally' clause in Java.
  44653. There are several caveats to using the new exception mechanism:
  44654. * The '-fobjc-exceptions' command line option must be used when
  44655. compiling Objective-C files that use exceptions.
  44656. * With the GNU runtime, exceptions are always implemented as "native"
  44657. exceptions and it is recommended that the '-fexceptions' and
  44658. '-shared-libgcc' options are used when linking.
  44659. * With the NeXT runtime, although currently designed to be binary
  44660. compatible with 'NS_HANDLER'-style idioms provided by the
  44661. 'NSException' class, the new exceptions can only be used on Mac OS
  44662. X 10.3 (Panther) and later systems, due to additional functionality
  44663. needed in the NeXT Objective-C runtime.
  44664. * As mentioned above, the new exceptions do not support handling
  44665. types other than Objective-C objects. Furthermore, when used from
  44666. Objective-C++, the Objective-C exception model does not
  44667. interoperate with C++ exceptions at this time. This means you
  44668. cannot '@throw' an exception from Objective-C and 'catch' it in
  44669. C++, or vice versa (i.e., 'throw ... @catch').
  44670. 
  44671. File: gcc.info, Node: Synchronization, Next: Fast enumeration, Prev: Exceptions, Up: Objective-C
  44672. 8.8 Synchronization
  44673. ===================
  44674. GNU Objective-C provides support for synchronized blocks:
  44675. @synchronized (ObjCClass *guard) {
  44676. ...
  44677. }
  44678. Upon entering the '@synchronized' block, a thread of execution shall
  44679. first check whether a lock has been placed on the corresponding 'guard'
  44680. object by another thread. If it has, the current thread shall wait
  44681. until the other thread relinquishes its lock. Once 'guard' becomes
  44682. available, the current thread will place its own lock on it, execute the
  44683. code contained in the '@synchronized' block, and finally relinquish the
  44684. lock (thereby making 'guard' available to other threads).
  44685. Unlike Java, Objective-C does not allow for entire methods to be marked
  44686. '@synchronized'. Note that throwing exceptions out of '@synchronized'
  44687. blocks is allowed, and will cause the guarding object to be unlocked
  44688. properly.
  44689. Because of the interactions between synchronization and exception
  44690. handling, you can only use '@synchronized' when compiling with
  44691. exceptions enabled, that is with the command line option
  44692. '-fobjc-exceptions'.
  44693. 
  44694. File: gcc.info, Node: Fast enumeration, Next: Messaging with the GNU Objective-C runtime, Prev: Synchronization, Up: Objective-C
  44695. 8.9 Fast Enumeration
  44696. ====================
  44697. * Menu:
  44698. * Using fast enumeration::
  44699. * c99-like fast enumeration syntax::
  44700. * Fast enumeration details::
  44701. * Fast enumeration protocol::
  44702. 
  44703. File: gcc.info, Node: Using fast enumeration, Next: c99-like fast enumeration syntax, Up: Fast enumeration
  44704. 8.9.1 Using Fast Enumeration
  44705. ----------------------------
  44706. GNU Objective-C provides support for the fast enumeration syntax:
  44707. id array = ...;
  44708. id object;
  44709. for (object in array)
  44710. {
  44711. /* Do something with 'object' */
  44712. }
  44713. 'array' needs to be an Objective-C object (usually a collection object,
  44714. for example an array, a dictionary or a set) which implements the "Fast
  44715. Enumeration Protocol" (see below). If you are using a Foundation
  44716. library such as GNUstep Base or Apple Cocoa Foundation, all collection
  44717. objects in the library implement this protocol and can be used in this
  44718. way.
  44719. The code above would iterate over all objects in 'array'. For each of
  44720. them, it assigns it to 'object', then executes the 'Do something with
  44721. 'object'' statements.
  44722. Here is a fully worked-out example using a Foundation library (which
  44723. provides the implementation of 'NSArray', 'NSString' and 'NSLog'):
  44724. NSArray *array = [NSArray arrayWithObjects: @"1", @"2", @"3", nil];
  44725. NSString *object;
  44726. for (object in array)
  44727. NSLog (@"Iterating over %@", object);
  44728. 
  44729. File: gcc.info, Node: c99-like fast enumeration syntax, Next: Fast enumeration details, Prev: Using fast enumeration, Up: Fast enumeration
  44730. 8.9.2 C99-Like Fast Enumeration Syntax
  44731. --------------------------------------
  44732. A c99-like declaration syntax is also allowed:
  44733. id array = ...;
  44734. for (id object in array)
  44735. {
  44736. /* Do something with 'object' */
  44737. }
  44738. this is completely equivalent to:
  44739. id array = ...;
  44740. {
  44741. id object;
  44742. for (object in array)
  44743. {
  44744. /* Do something with 'object' */
  44745. }
  44746. }
  44747. but can save some typing.
  44748. Note that the option '-std=c99' is not required to allow this syntax in
  44749. Objective-C.
  44750. 
  44751. File: gcc.info, Node: Fast enumeration details, Next: Fast enumeration protocol, Prev: c99-like fast enumeration syntax, Up: Fast enumeration
  44752. 8.9.3 Fast Enumeration Details
  44753. ------------------------------
  44754. Here is a more technical description with the gory details. Consider
  44755. the code
  44756. for (OBJECT EXPRESSION in COLLECTION EXPRESSION)
  44757. {
  44758. STATEMENTS
  44759. }
  44760. here is what happens when you run it:
  44761. * 'COLLECTION EXPRESSION' is evaluated exactly once and the result is
  44762. used as the collection object to iterate over. This means it is
  44763. safe to write code such as 'for (object in [NSDictionary
  44764. keyEnumerator]) ...'.
  44765. * the iteration is implemented by the compiler by repeatedly getting
  44766. batches of objects from the collection object using the fast
  44767. enumeration protocol (see below), then iterating over all objects
  44768. in the batch. This is faster than a normal enumeration where
  44769. objects are retrieved one by one (hence the name "fast
  44770. enumeration").
  44771. * if there are no objects in the collection, then 'OBJECT EXPRESSION'
  44772. is set to 'nil' and the loop immediately terminates.
  44773. * if there are objects in the collection, then for each object in the
  44774. collection (in the order they are returned) 'OBJECT EXPRESSION' is
  44775. set to the object, then 'STATEMENTS' are executed.
  44776. * 'STATEMENTS' can contain 'break' and 'continue' commands, which
  44777. will abort the iteration or skip to the next loop iteration as
  44778. expected.
  44779. * when the iteration ends because there are no more objects to
  44780. iterate over, 'OBJECT EXPRESSION' is set to 'nil'. This allows you
  44781. to determine whether the iteration finished because a 'break'
  44782. command was used (in which case 'OBJECT EXPRESSION' will remain set
  44783. to the last object that was iterated over) or because it iterated
  44784. over all the objects (in which case 'OBJECT EXPRESSION' will be set
  44785. to 'nil').
  44786. * 'STATEMENTS' must not make any changes to the collection object; if
  44787. they do, it is a hard error and the fast enumeration terminates by
  44788. invoking 'objc_enumerationMutation', a runtime function that
  44789. normally aborts the program but which can be customized by
  44790. Foundation libraries via 'objc_set_mutation_handler' to do
  44791. something different, such as raising an exception.
  44792. 
  44793. File: gcc.info, Node: Fast enumeration protocol, Prev: Fast enumeration details, Up: Fast enumeration
  44794. 8.9.4 Fast Enumeration Protocol
  44795. -------------------------------
  44796. If you want your own collection object to be usable with fast
  44797. enumeration, you need to have it implement the method
  44798. - (unsigned long) countByEnumeratingWithState: (NSFastEnumerationState *)state
  44799. objects: (id *)objects
  44800. count: (unsigned long)len;
  44801. where 'NSFastEnumerationState' must be defined in your code as follows:
  44802. typedef struct
  44803. {
  44804. unsigned long state;
  44805. id *itemsPtr;
  44806. unsigned long *mutationsPtr;
  44807. unsigned long extra[5];
  44808. } NSFastEnumerationState;
  44809. If no 'NSFastEnumerationState' is defined in your code, the compiler
  44810. will automatically replace 'NSFastEnumerationState *' with 'struct
  44811. __objcFastEnumerationState *', where that type is silently defined by
  44812. the compiler in an identical way. This can be confusing and we
  44813. recommend that you define 'NSFastEnumerationState' (as shown above)
  44814. instead.
  44815. The method is called repeatedly during a fast enumeration to retrieve
  44816. batches of objects. Each invocation of the method should retrieve the
  44817. next batch of objects.
  44818. The return value of the method is the number of objects in the current
  44819. batch; this should not exceed 'len', which is the maximum size of a
  44820. batch as requested by the caller. The batch itself is returned in the
  44821. 'itemsPtr' field of the 'NSFastEnumerationState' struct.
  44822. To help with returning the objects, the 'objects' array is a C array
  44823. preallocated by the caller (on the stack) of size 'len'. In many cases
  44824. you can put the objects you want to return in that 'objects' array, then
  44825. do 'itemsPtr = objects'. But you don't have to; if your collection
  44826. already has the objects to return in some form of C array, it could
  44827. return them from there instead.
  44828. The 'state' and 'extra' fields of the 'NSFastEnumerationState'
  44829. structure allows your collection object to keep track of the state of
  44830. the enumeration. In a simple array implementation, 'state' may keep
  44831. track of the index of the last object that was returned, and 'extra' may
  44832. be unused.
  44833. The 'mutationsPtr' field of the 'NSFastEnumerationState' is used to
  44834. keep track of mutations. It should point to a number; before working on
  44835. each object, the fast enumeration loop will check that this number has
  44836. not changed. If it has, a mutation has happened and the fast
  44837. enumeration will abort. So, 'mutationsPtr' could be set to point to
  44838. some sort of version number of your collection, which is increased by
  44839. one every time there is a change (for example when an object is added or
  44840. removed). Or, if you are content with less strict mutation checks, it
  44841. could point to the number of objects in your collection or some other
  44842. value that can be checked to perform an approximate check that the
  44843. collection has not been mutated.
  44844. Finally, note how we declared the 'len' argument and the return value
  44845. to be of type 'unsigned long'. They could also be declared to be of
  44846. type 'unsigned int' and everything would still work.
  44847. 
  44848. File: gcc.info, Node: Messaging with the GNU Objective-C runtime, Prev: Fast enumeration, Up: Objective-C
  44849. 8.10 Messaging with the GNU Objective-C Runtime
  44850. ===============================================
  44851. This section is specific for the GNU Objective-C runtime. If you are
  44852. using a different runtime, you can skip it.
  44853. The implementation of messaging in the GNU Objective-C runtime is
  44854. designed to be portable, and so is based on standard C.
  44855. Sending a message in the GNU Objective-C runtime is composed of two
  44856. separate steps. First, there is a call to the lookup function,
  44857. 'objc_msg_lookup ()' (or, in the case of messages to super,
  44858. 'objc_msg_lookup_super ()'). This runtime function takes as argument
  44859. the receiver and the selector of the method to be called; it returns the
  44860. 'IMP', that is a pointer to the function implementing the method. The
  44861. second step of method invocation consists of casting this pointer
  44862. function to the appropriate function pointer type, and calling the
  44863. function pointed to it with the right arguments.
  44864. For example, when the compiler encounters a method invocation such as
  44865. '[object init]', it compiles it into a call to 'objc_msg_lookup (object,
  44866. @selector(init))' followed by a cast of the returned value to the
  44867. appropriate function pointer type, and then it calls it.
  44868. * Menu:
  44869. * Dynamically registering methods::
  44870. * Forwarding hook::
  44871. 
  44872. File: gcc.info, Node: Dynamically registering methods, Next: Forwarding hook, Up: Messaging with the GNU Objective-C runtime
  44873. 8.10.1 Dynamically Registering Methods
  44874. --------------------------------------
  44875. If 'objc_msg_lookup()' does not find a suitable method implementation,
  44876. because the receiver does not implement the required method, it tries to
  44877. see if the class can dynamically register the method.
  44878. To do so, the runtime checks if the class of the receiver implements
  44879. the method
  44880. + (BOOL) resolveInstanceMethod: (SEL)selector;
  44881. in the case of an instance method, or
  44882. + (BOOL) resolveClassMethod: (SEL)selector;
  44883. in the case of a class method. If the class implements it, the runtime
  44884. invokes it, passing as argument the selector of the original method, and
  44885. if it returns 'YES', the runtime tries the lookup again, which could now
  44886. succeed if a matching method was added dynamically by
  44887. '+resolveInstanceMethod:' or '+resolveClassMethod:'.
  44888. This allows classes to dynamically register methods (by adding them to
  44889. the class using 'class_addMethod') when they are first called. To do
  44890. so, a class should implement '+resolveInstanceMethod:' (or, depending on
  44891. the case, '+resolveClassMethod:') and have it recognize the selectors of
  44892. methods that can be registered dynamically at runtime, register them,
  44893. and return 'YES'. It should return 'NO' for methods that it does not
  44894. dynamically registered at runtime.
  44895. If '+resolveInstanceMethod:' (or '+resolveClassMethod:') is not
  44896. implemented or returns 'NO', the runtime then tries the forwarding hook.
  44897. Support for '+resolveInstanceMethod:' and 'resolveClassMethod:' was
  44898. added to the GNU Objective-C runtime in GCC version 4.6.
  44899. 
  44900. File: gcc.info, Node: Forwarding hook, Prev: Dynamically registering methods, Up: Messaging with the GNU Objective-C runtime
  44901. 8.10.2 Forwarding Hook
  44902. ----------------------
  44903. The GNU Objective-C runtime provides a hook, called
  44904. '__objc_msg_forward2', which is called by 'objc_msg_lookup()' when it
  44905. cannot find a method implementation in the runtime tables and after
  44906. calling '+resolveInstanceMethod:' and '+resolveClassMethod:' has been
  44907. attempted and did not succeed in dynamically registering the method.
  44908. To configure the hook, you set the global variable
  44909. '__objc_msg_forward2' to a function with the same argument and return
  44910. types of 'objc_msg_lookup()'. When 'objc_msg_lookup()' cannot find a
  44911. method implementation, it invokes the hook function you provided to get
  44912. a method implementation to return. So, in practice
  44913. '__objc_msg_forward2' allows you to extend 'objc_msg_lookup()' by adding
  44914. some custom code that is called to do a further lookup when no standard
  44915. method implementation can be found using the normal lookup.
  44916. This hook is generally reserved for "Foundation" libraries such as
  44917. GNUstep Base, which use it to implement their high-level method
  44918. forwarding API, typically based around the 'forwardInvocation:' method.
  44919. So, unless you are implementing your own "Foundation" library, you
  44920. should not set this hook.
  44921. In a typical forwarding implementation, the '__objc_msg_forward2' hook
  44922. function determines the argument and return type of the method that is
  44923. being looked up, and then creates a function that takes these arguments
  44924. and has that return type, and returns it to the caller. Creating this
  44925. function is non-trivial and is typically performed using a dedicated
  44926. library such as 'libffi'.
  44927. The forwarding method implementation thus created is returned by
  44928. 'objc_msg_lookup()' and is executed as if it was a normal method
  44929. implementation. When the forwarding method implementation is called, it
  44930. is usually expected to pack all arguments into some sort of object
  44931. (typically, an 'NSInvocation' in a "Foundation" library), and hand it
  44932. over to the programmer ('forwardInvocation:') who is then allowed to
  44933. manipulate the method invocation using a high-level API provided by the
  44934. "Foundation" library. For example, the programmer may want to examine
  44935. the method invocation arguments and name and potentially change them
  44936. before forwarding the method invocation to one or more local objects
  44937. ('performInvocation:') or even to remote objects (by using Distributed
  44938. Objects or some other mechanism). When all this completes, the return
  44939. value is passed back and must be returned correctly to the original
  44940. caller.
  44941. Note that the GNU Objective-C runtime currently provides no support for
  44942. method forwarding or method invocations other than the
  44943. '__objc_msg_forward2' hook.
  44944. If the forwarding hook does not exist or returns 'NULL', the runtime
  44945. currently attempts forwarding using an older, deprecated API, and if
  44946. that fails, it aborts the program. In future versions of the GNU
  44947. Objective-C runtime, the runtime will immediately abort.
  44948. 
  44949. File: gcc.info, Node: Compatibility, Next: Gcov, Prev: Objective-C, Up: Top
  44950. 9 Binary Compatibility
  44951. **********************
  44952. Binary compatibility encompasses several related concepts:
  44953. "application binary interface (ABI)"
  44954. The set of runtime conventions followed by all of the tools that
  44955. deal with binary representations of a program, including compilers,
  44956. assemblers, linkers, and language runtime support. Some ABIs are
  44957. formal with a written specification, possibly designed by multiple
  44958. interested parties. Others are simply the way things are actually
  44959. done by a particular set of tools.
  44960. "ABI conformance"
  44961. A compiler conforms to an ABI if it generates code that follows all
  44962. of the specifications enumerated by that ABI. A library conforms
  44963. to an ABI if it is implemented according to that ABI. An
  44964. application conforms to an ABI if it is built using tools that
  44965. conform to that ABI and does not contain source code that
  44966. specifically changes behavior specified by the ABI.
  44967. "calling conventions"
  44968. Calling conventions are a subset of an ABI that specify of how
  44969. arguments are passed and function results are returned.
  44970. "interoperability"
  44971. Different sets of tools are interoperable if they generate files
  44972. that can be used in the same program. The set of tools includes
  44973. compilers, assemblers, linkers, libraries, header files, startup
  44974. files, and debuggers. Binaries produced by different sets of tools
  44975. are not interoperable unless they implement the same ABI. This
  44976. applies to different versions of the same tools as well as tools
  44977. from different vendors.
  44978. "intercallability"
  44979. Whether a function in a binary built by one set of tools can call a
  44980. function in a binary built by a different set of tools is a subset
  44981. of interoperability.
  44982. "implementation-defined features"
  44983. Language standards include lists of implementation-defined features
  44984. whose behavior can vary from one implementation to another. Some
  44985. of these features are normally covered by a platform's ABI and
  44986. others are not. The features that are not covered by an ABI
  44987. generally affect how a program behaves, but not intercallability.
  44988. "compatibility"
  44989. Conformance to the same ABI and the same behavior of
  44990. implementation-defined features are both relevant for
  44991. compatibility.
  44992. The application binary interface implemented by a C or C++ compiler
  44993. affects code generation and runtime support for:
  44994. * size and alignment of data types
  44995. * layout of structured types
  44996. * calling conventions
  44997. * register usage conventions
  44998. * interfaces for runtime arithmetic support
  44999. * object file formats
  45000. In addition, the application binary interface implemented by a C++
  45001. compiler affects code generation and runtime support for:
  45002. * name mangling
  45003. * exception handling
  45004. * invoking constructors and destructors
  45005. * layout, alignment, and padding of classes
  45006. * layout and alignment of virtual tables
  45007. Some GCC compilation options cause the compiler to generate code that
  45008. does not conform to the platform's default ABI. Other options cause
  45009. different program behavior for implementation-defined features that are
  45010. not covered by an ABI. These options are provided for consistency with
  45011. other compilers that do not follow the platform's default ABI or the
  45012. usual behavior of implementation-defined features for the platform. Be
  45013. very careful about using such options.
  45014. Most platforms have a well-defined ABI that covers C code, but ABIs
  45015. that cover C++ functionality are not yet common.
  45016. Starting with GCC 3.2, GCC binary conventions for C++ are based on a
  45017. written, vendor-neutral C++ ABI that was designed to be specific to
  45018. 64-bit Itanium but also includes generic specifications that apply to
  45019. any platform. This C++ ABI is also implemented by other compiler
  45020. vendors on some platforms, notably GNU/Linux and BSD systems. We have
  45021. tried hard to provide a stable ABI that will be compatible with future
  45022. GCC releases, but it is possible that we will encounter problems that
  45023. make this difficult. Such problems could include different
  45024. interpretations of the C++ ABI by different vendors, bugs in the ABI, or
  45025. bugs in the implementation of the ABI in different compilers. GCC's
  45026. '-Wabi' switch warns when G++ generates code that is probably not
  45027. compatible with the C++ ABI.
  45028. The C++ library used with a C++ compiler includes the Standard C++
  45029. Library, with functionality defined in the C++ Standard, plus language
  45030. runtime support. The runtime support is included in a C++ ABI, but
  45031. there is no formal ABI for the Standard C++ Library. Two
  45032. implementations of that library are interoperable if one follows the
  45033. de-facto ABI of the other and if they are both built with the same
  45034. compiler, or with compilers that conform to the same ABI for C++
  45035. compiler and runtime support.
  45036. When G++ and another C++ compiler conform to the same C++ ABI, but the
  45037. implementations of the Standard C++ Library that they normally use do
  45038. not follow the same ABI for the Standard C++ Library, object files built
  45039. with those compilers can be used in the same program only if they use
  45040. the same C++ library. This requires specifying the location of the C++
  45041. library header files when invoking the compiler whose usual library is
  45042. not being used. The location of GCC's C++ header files depends on how
  45043. the GCC build was configured, but can be seen by using the G++ '-v'
  45044. option. With default configuration options for G++ 3.3 the compile line
  45045. for a different C++ compiler needs to include
  45046. -IGCC_INSTALL_DIRECTORY/include/c++/3.3
  45047. Similarly, compiling code with G++ that must use a C++ library other
  45048. than the GNU C++ library requires specifying the location of the header
  45049. files for that other library.
  45050. The most straightforward way to link a program to use a particular C++
  45051. library is to use a C++ driver that specifies that C++ library by
  45052. default. The 'g++' driver, for example, tells the linker where to find
  45053. GCC's C++ library ('libstdc++') plus the other libraries and startup
  45054. files it needs, in the proper order.
  45055. If a program must use a different C++ library and it's not possible to
  45056. do the final link using a C++ driver that uses that library by default,
  45057. it is necessary to tell 'g++' the location and name of that library. It
  45058. might also be necessary to specify different startup files and other
  45059. runtime support libraries, and to suppress the use of GCC's support
  45060. libraries with one or more of the options '-nostdlib', '-nostartfiles',
  45061. and '-nodefaultlibs'.
  45062. 
  45063. File: gcc.info, Node: Gcov, Next: Gcov-tool, Prev: Compatibility, Up: Top
  45064. 10 'gcov'--a Test Coverage Program
  45065. **********************************
  45066. 'gcov' is a tool you can use in conjunction with GCC to test code
  45067. coverage in your programs.
  45068. * Menu:
  45069. * Gcov Intro:: Introduction to gcov.
  45070. * Invoking Gcov:: How to use gcov.
  45071. * Gcov and Optimization:: Using gcov with GCC optimization.
  45072. * Gcov Data Files:: The files used by gcov.
  45073. * Cross-profiling:: Data file relocation.
  45074. 
  45075. File: gcc.info, Node: Gcov Intro, Next: Invoking Gcov, Up: Gcov
  45076. 10.1 Introduction to 'gcov'
  45077. ===========================
  45078. 'gcov' is a test coverage program. Use it in concert with GCC to
  45079. analyze your programs to help create more efficient, faster running code
  45080. and to discover untested parts of your program. You can use 'gcov' as a
  45081. profiling tool to help discover where your optimization efforts will
  45082. best affect your code. You can also use 'gcov' along with the other
  45083. profiling tool, 'gprof', to assess which parts of your code use the
  45084. greatest amount of computing time.
  45085. Profiling tools help you analyze your code's performance. Using a
  45086. profiler such as 'gcov' or 'gprof', you can find out some basic
  45087. performance statistics, such as:
  45088. * how often each line of code executes
  45089. * what lines of code are actually executed
  45090. * how much computing time each section of code uses
  45091. Once you know these things about how your code works when compiled, you
  45092. can look at each module to see which modules should be optimized.
  45093. 'gcov' helps you determine where to work on optimization.
  45094. Software developers also use coverage testing in concert with
  45095. testsuites, to make sure software is actually good enough for a release.
  45096. Testsuites can verify that a program works as expected; a coverage
  45097. program tests to see how much of the program is exercised by the
  45098. testsuite. Developers can then determine what kinds of test cases need
  45099. to be added to the testsuites to create both better testing and a better
  45100. final product.
  45101. You should compile your code without optimization if you plan to use
  45102. 'gcov' because the optimization, by combining some lines of code into
  45103. one function, may not give you as much information as you need to look
  45104. for 'hot spots' where the code is using a great deal of computer time.
  45105. Likewise, because 'gcov' accumulates statistics by line (at the lowest
  45106. resolution), it works best with a programming style that places only one
  45107. statement on each line. If you use complicated macros that expand to
  45108. loops or to other control structures, the statistics are less
  45109. helpful--they only report on the line where the macro call appears. If
  45110. your complex macros behave like functions, you can replace them with
  45111. inline functions to solve this problem.
  45112. 'gcov' creates a logfile called 'SOURCEFILE.gcov' which indicates how
  45113. many times each line of a source file 'SOURCEFILE.c' has executed. You
  45114. can use these logfiles along with 'gprof' to aid in fine-tuning the
  45115. performance of your programs. 'gprof' gives timing information you can
  45116. use along with the information you get from 'gcov'.
  45117. 'gcov' works only on code compiled with GCC. It is not compatible with
  45118. any other profiling or test coverage mechanism.
  45119. 
  45120. File: gcc.info, Node: Invoking Gcov, Next: Gcov and Optimization, Prev: Gcov Intro, Up: Gcov
  45121. 10.2 Invoking 'gcov'
  45122. ====================
  45123. gcov [OPTIONS] FILES
  45124. 'gcov' accepts the following options:
  45125. '-a'
  45126. '--all-blocks'
  45127. Write individual execution counts for every basic block. Normally
  45128. gcov outputs execution counts only for the main blocks of a line.
  45129. With this option you can determine if blocks within a single line
  45130. are not being executed.
  45131. '-b'
  45132. '--branch-probabilities'
  45133. Write branch frequencies to the output file, and write branch
  45134. summary info to the standard output. This option allows you to see
  45135. how often each branch in your program was taken. Unconditional
  45136. branches will not be shown, unless the '-u' option is given.
  45137. '-c'
  45138. '--branch-counts'
  45139. Write branch frequencies as the number of branches taken, rather
  45140. than the percentage of branches taken.
  45141. '-d'
  45142. '--display-progress'
  45143. Display the progress on the standard output.
  45144. '-f'
  45145. '--function-summaries'
  45146. Output summaries for each function in addition to the file level
  45147. summary.
  45148. '-h'
  45149. '--help'
  45150. Display help about using 'gcov' (on the standard output), and exit
  45151. without doing any further processing.
  45152. '-i'
  45153. '--json-format'
  45154. Output gcov file in an easy-to-parse JSON intermediate format which
  45155. does not require source code for generation. The JSON file is
  45156. compressed with gzip compression algorithm and the files have
  45157. '.gcov.json.gz' extension.
  45158. Structure of the JSON is following:
  45159. {
  45160. "current_working_directory": CURRENT_WORKING_DIRECTORY,
  45161. "data_file": DATA_FILE,
  45162. "format_version": FORMAT_VERSION,
  45163. "gcc_version": GCC_VERSION
  45164. "files": [FILE]
  45165. }
  45166. Fields of the root element have following semantics:
  45167. * CURRENT_WORKING_DIRECTORY: working directory where a
  45168. compilation unit was compiled
  45169. * DATA_FILE: name of the data file (GCDA)
  45170. * FORMAT_VERSION: semantic version of the format
  45171. * GCC_VERSION: version of the GCC compiler
  45172. Each FILE has the following form:
  45173. {
  45174. "file": FILE_NAME,
  45175. "functions": [FUNCTION],
  45176. "lines": [LINE]
  45177. }
  45178. Fields of the FILE element have following semantics:
  45179. * FILE_NAME: name of the source file
  45180. Each FUNCTION has the following form:
  45181. {
  45182. "blocks": BLOCKS,
  45183. "blocks_executed": BLOCKS_EXECUTED,
  45184. "demangled_name": "DEMANGLED_NAME,
  45185. "end_column": END_COLUMN,
  45186. "end_line": END_LINE,
  45187. "execution_count": EXECUTION_COUNT,
  45188. "name": NAME,
  45189. "start_column": START_COLUMN
  45190. "start_line": START_LINE
  45191. }
  45192. Fields of the FUNCTION element have following semantics:
  45193. * BLOCKS: number of blocks that are in the function
  45194. * BLOCKS_EXECUTED: number of executed blocks of the function
  45195. * DEMANGLED_NAME: demangled name of the function
  45196. * END_COLUMN: column in the source file where the function ends
  45197. * END_LINE: line in the source file where the function ends
  45198. * EXECUTION_COUNT: number of executions of the function
  45199. * NAME: name of the function
  45200. * START_COLUMN: column in the source file where the function
  45201. begins
  45202. * START_LINE: line in the source file where the function begins
  45203. Note that line numbers and column numbers number from 1. In the
  45204. current implementation, START_LINE and START_COLUMN do not include
  45205. any template parameters and the leading return type but that this
  45206. is likely to be fixed in the future.
  45207. Each LINE has the following form:
  45208. {
  45209. "branches": [BRANCH],
  45210. "count": COUNT,
  45211. "line_number": LINE_NUMBER,
  45212. "unexecuted_block": UNEXECUTED_BLOCK
  45213. "function_name": FUNCTION_NAME,
  45214. }
  45215. Branches are present only with -B option. Fields of the LINE
  45216. element have following semantics:
  45217. * COUNT: number of executions of the line
  45218. * LINE_NUMBER: line number
  45219. * UNEXECUTED_BLOCK: flag whether the line contains an unexecuted
  45220. block (not all statements on the line are executed)
  45221. * FUNCTION_NAME: a name of a function this LINE belongs to (for
  45222. a line with an inlined statements can be not set)
  45223. Each BRANCH has the following form:
  45224. {
  45225. "count": COUNT,
  45226. "fallthrough": FALLTHROUGH,
  45227. "throw": THROW
  45228. }
  45229. Fields of the BRANCH element have following semantics:
  45230. * COUNT: number of executions of the branch
  45231. * FALLTHROUGH: true when the branch is a fall through branch
  45232. * THROW: true when the branch is an exceptional branch
  45233. '-j'
  45234. '--human-readable'
  45235. Write counts in human readable format (like 24.6k).
  45236. '-k'
  45237. '--use-colors'
  45238. Use colors for lines of code that have zero coverage. We use red
  45239. color for non-exceptional lines and cyan for exceptional. Same
  45240. colors are used for basic blocks with '-a' option.
  45241. '-l'
  45242. '--long-file-names'
  45243. Create long file names for included source files. For example, if
  45244. the header file 'x.h' contains code, and was included in the file
  45245. 'a.c', then running 'gcov' on the file 'a.c' will produce an output
  45246. file called 'a.c##x.h.gcov' instead of 'x.h.gcov'. This can be
  45247. useful if 'x.h' is included in multiple source files and you want
  45248. to see the individual contributions. If you use the '-p' option,
  45249. both the including and included file names will be complete path
  45250. names.
  45251. '-m'
  45252. '--demangled-names'
  45253. Display demangled function names in output. The default is to show
  45254. mangled function names.
  45255. '-n'
  45256. '--no-output'
  45257. Do not create the 'gcov' output file.
  45258. '-o DIRECTORY|FILE'
  45259. '--object-directory DIRECTORY'
  45260. '--object-file FILE'
  45261. Specify either the directory containing the gcov data files, or the
  45262. object path name. The '.gcno', and '.gcda' data files are searched
  45263. for using this option. If a directory is specified, the data files
  45264. are in that directory and named after the input file name, without
  45265. its extension. If a file is specified here, the data files are
  45266. named after that file, without its extension.
  45267. '-p'
  45268. '--preserve-paths'
  45269. Preserve complete path information in the names of generated
  45270. '.gcov' files. Without this option, just the filename component is
  45271. used. With this option, all directories are used, with '/'
  45272. characters translated to '#' characters, '.' directory components
  45273. removed and unremoveable '..' components renamed to '^'. This is
  45274. useful if sourcefiles are in several different directories.
  45275. '-q'
  45276. '--use-hotness-colors'
  45277. Emit perf-like colored output for hot lines. Legend of the color
  45278. scale is printed at the very beginning of the output file.
  45279. '-r'
  45280. '--relative-only'
  45281. Only output information about source files with a relative pathname
  45282. (after source prefix elision). Absolute paths are usually system
  45283. header files and coverage of any inline functions therein is
  45284. normally uninteresting.
  45285. '-s DIRECTORY'
  45286. '--source-prefix DIRECTORY'
  45287. A prefix for source file names to remove when generating the output
  45288. coverage files. This option is useful when building in a separate
  45289. directory, and the pathname to the source directory is not wanted
  45290. when determining the output file names. Note that this prefix
  45291. detection is applied before determining whether the source file is
  45292. absolute.
  45293. '-t'
  45294. '--stdout'
  45295. Output to standard output instead of output files.
  45296. '-u'
  45297. '--unconditional-branches'
  45298. When branch probabilities are given, include those of unconditional
  45299. branches. Unconditional branches are normally not interesting.
  45300. '-v'
  45301. '--version'
  45302. Display the 'gcov' version number (on the standard output), and
  45303. exit without doing any further processing.
  45304. '-w'
  45305. '--verbose'
  45306. Print verbose informations related to basic blocks and arcs.
  45307. '-x'
  45308. '--hash-filenames'
  45309. When using -PRESERVE-PATHS, gcov uses the full pathname of the
  45310. source files to create an output filename. This can lead to long
  45311. filenames that can overflow filesystem limits. This option creates
  45312. names of the form 'SOURCE-FILE##MD5.gcov', where the SOURCE-FILE
  45313. component is the final filename part and the MD5 component is
  45314. calculated from the full mangled name that would have been used
  45315. otherwise. The option is an alternative to the -PRESERVE-PATHS on
  45316. systems which have a filesystem limit.
  45317. 'gcov' should be run with the current directory the same as that when
  45318. you invoked the compiler. Otherwise it will not be able to locate the
  45319. source files. 'gcov' produces files called 'MANGLEDNAME.gcov' in the
  45320. current directory. These contain the coverage information of the source
  45321. file they correspond to. One '.gcov' file is produced for each source
  45322. (or header) file containing code, which was compiled to produce the data
  45323. files. The MANGLEDNAME part of the output file name is usually simply
  45324. the source file name, but can be something more complicated if the '-l'
  45325. or '-p' options are given. Refer to those options for details.
  45326. If you invoke 'gcov' with multiple input files, the contributions from
  45327. each input file are summed. Typically you would invoke it with the same
  45328. list of files as the final link of your executable.
  45329. The '.gcov' files contain the ':' separated fields along with program
  45330. source code. The format is
  45331. EXECUTION_COUNT:LINE_NUMBER:SOURCE LINE TEXT
  45332. Additional block information may succeed each line, when requested by
  45333. command line option. The EXECUTION_COUNT is '-' for lines containing no
  45334. code. Unexecuted lines are marked '#####' or '=====', depending on
  45335. whether they are reachable by non-exceptional paths or only exceptional
  45336. paths such as C++ exception handlers, respectively. Given the '-a'
  45337. option, unexecuted blocks are marked '$$$$$' or '%%%%%', depending on
  45338. whether a basic block is reachable via non-exceptional or exceptional
  45339. paths. Executed basic blocks having a statement with zero
  45340. EXECUTION_COUNT end with '*' character and are colored with magenta
  45341. color with the '-k' option. This functionality is not supported in Ada.
  45342. Note that GCC can completely remove the bodies of functions that are
  45343. not needed - for instance if they are inlined everywhere. Such
  45344. functions are marked with '-', which can be confusing. Use the
  45345. '-fkeep-inline-functions' and '-fkeep-static-functions' options to
  45346. retain these functions and allow gcov to properly show their
  45347. EXECUTION_COUNT.
  45348. Some lines of information at the start have LINE_NUMBER of zero. These
  45349. preamble lines are of the form
  45350. -:0:TAG:VALUE
  45351. The ordering and number of these preamble lines will be augmented as
  45352. 'gcov' development progresses -- do not rely on them remaining
  45353. unchanged. Use TAG to locate a particular preamble line.
  45354. The additional block information is of the form
  45355. TAG INFORMATION
  45356. The INFORMATION is human readable, but designed to be simple enough for
  45357. machine parsing too.
  45358. When printing percentages, 0% and 100% are only printed when the values
  45359. are _exactly_ 0% and 100% respectively. Other values which would
  45360. conventionally be rounded to 0% or 100% are instead printed as the
  45361. nearest non-boundary value.
  45362. When using 'gcov', you must first compile your program with a special
  45363. GCC option '--coverage'. This tells the compiler to generate additional
  45364. information needed by gcov (basically a flow graph of the program) and
  45365. also includes additional code in the object files for generating the
  45366. extra profiling information needed by gcov. These additional files are
  45367. placed in the directory where the object file is located.
  45368. Running the program will cause profile output to be generated. For
  45369. each source file compiled with '-fprofile-arcs', an accompanying '.gcda'
  45370. file will be placed in the object file directory.
  45371. Running 'gcov' with your program's source file names as arguments will
  45372. now produce a listing of the code along with frequency of execution for
  45373. each line. For example, if your program is called 'tmp.cpp', this is
  45374. what you see when you use the basic 'gcov' facility:
  45375. $ g++ --coverage tmp.cpp
  45376. $ a.out
  45377. $ gcov tmp.cpp -m
  45378. File 'tmp.cpp'
  45379. Lines executed:92.86% of 14
  45380. Creating 'tmp.cpp.gcov'
  45381. The file 'tmp.cpp.gcov' contains output from 'gcov'. Here is a sample:
  45382. -: 0:Source:tmp.cpp
  45383. -: 0:Working directory:/home/gcc/testcase
  45384. -: 0:Graph:tmp.gcno
  45385. -: 0:Data:tmp.gcda
  45386. -: 0:Runs:1
  45387. -: 0:Programs:1
  45388. -: 1:#include <stdio.h>
  45389. -: 2:
  45390. -: 3:template<class T>
  45391. -: 4:class Foo
  45392. -: 5:{
  45393. -: 6: public:
  45394. 1*: 7: Foo(): b (1000) {}
  45395. ------------------
  45396. Foo<char>::Foo():
  45397. #####: 7: Foo(): b (1000) {}
  45398. ------------------
  45399. Foo<int>::Foo():
  45400. 1: 7: Foo(): b (1000) {}
  45401. ------------------
  45402. 2*: 8: void inc () { b++; }
  45403. ------------------
  45404. Foo<char>::inc():
  45405. #####: 8: void inc () { b++; }
  45406. ------------------
  45407. Foo<int>::inc():
  45408. 2: 8: void inc () { b++; }
  45409. ------------------
  45410. -: 9:
  45411. -: 10: private:
  45412. -: 11: int b;
  45413. -: 12:};
  45414. -: 13:
  45415. -: 14:template class Foo<int>;
  45416. -: 15:template class Foo<char>;
  45417. -: 16:
  45418. -: 17:int
  45419. 1: 18:main (void)
  45420. -: 19:{
  45421. -: 20: int i, total;
  45422. 1: 21: Foo<int> counter;
  45423. -: 22:
  45424. 1: 23: counter.inc();
  45425. 1: 24: counter.inc();
  45426. 1: 25: total = 0;
  45427. -: 26:
  45428. 11: 27: for (i = 0; i < 10; i++)
  45429. 10: 28: total += i;
  45430. -: 29:
  45431. 1*: 30: int v = total > 100 ? 1 : 2;
  45432. -: 31:
  45433. 1: 32: if (total != 45)
  45434. #####: 33: printf ("Failure\n");
  45435. -: 34: else
  45436. 1: 35: printf ("Success\n");
  45437. 1: 36: return 0;
  45438. -: 37:}
  45439. Note that line 7 is shown in the report multiple times. First
  45440. occurrence presents total number of execution of the line and the next
  45441. two belong to instances of class Foo constructors. As you can also see,
  45442. line 30 contains some unexecuted basic blocks and thus execution count
  45443. has asterisk symbol.
  45444. When you use the '-a' option, you will get individual block counts, and
  45445. the output looks like this:
  45446. -: 0:Source:tmp.cpp
  45447. -: 0:Working directory:/home/gcc/testcase
  45448. -: 0:Graph:tmp.gcno
  45449. -: 0:Data:tmp.gcda
  45450. -: 0:Runs:1
  45451. -: 0:Programs:1
  45452. -: 1:#include <stdio.h>
  45453. -: 2:
  45454. -: 3:template<class T>
  45455. -: 4:class Foo
  45456. -: 5:{
  45457. -: 6: public:
  45458. 1*: 7: Foo(): b (1000) {}
  45459. ------------------
  45460. Foo<char>::Foo():
  45461. #####: 7: Foo(): b (1000) {}
  45462. ------------------
  45463. Foo<int>::Foo():
  45464. 1: 7: Foo(): b (1000) {}
  45465. ------------------
  45466. 2*: 8: void inc () { b++; }
  45467. ------------------
  45468. Foo<char>::inc():
  45469. #####: 8: void inc () { b++; }
  45470. ------------------
  45471. Foo<int>::inc():
  45472. 2: 8: void inc () { b++; }
  45473. ------------------
  45474. -: 9:
  45475. -: 10: private:
  45476. -: 11: int b;
  45477. -: 12:};
  45478. -: 13:
  45479. -: 14:template class Foo<int>;
  45480. -: 15:template class Foo<char>;
  45481. -: 16:
  45482. -: 17:int
  45483. 1: 18:main (void)
  45484. -: 19:{
  45485. -: 20: int i, total;
  45486. 1: 21: Foo<int> counter;
  45487. 1: 21-block 0
  45488. -: 22:
  45489. 1: 23: counter.inc();
  45490. 1: 23-block 0
  45491. 1: 24: counter.inc();
  45492. 1: 24-block 0
  45493. 1: 25: total = 0;
  45494. -: 26:
  45495. 11: 27: for (i = 0; i < 10; i++)
  45496. 1: 27-block 0
  45497. 11: 27-block 1
  45498. 10: 28: total += i;
  45499. 10: 28-block 0
  45500. -: 29:
  45501. 1*: 30: int v = total > 100 ? 1 : 2;
  45502. 1: 30-block 0
  45503. %%%%%: 30-block 1
  45504. 1: 30-block 2
  45505. -: 31:
  45506. 1: 32: if (total != 45)
  45507. 1: 32-block 0
  45508. #####: 33: printf ("Failure\n");
  45509. %%%%%: 33-block 0
  45510. -: 34: else
  45511. 1: 35: printf ("Success\n");
  45512. 1: 35-block 0
  45513. 1: 36: return 0;
  45514. 1: 36-block 0
  45515. -: 37:}
  45516. In this mode, each basic block is only shown on one line - the last
  45517. line of the block. A multi-line block will only contribute to the
  45518. execution count of that last line, and other lines will not be shown to
  45519. contain code, unless previous blocks end on those lines. The total
  45520. execution count of a line is shown and subsequent lines show the
  45521. execution counts for individual blocks that end on that line. After
  45522. each block, the branch and call counts of the block will be shown, if
  45523. the '-b' option is given.
  45524. Because of the way GCC instruments calls, a call count can be shown
  45525. after a line with no individual blocks. As you can see, line 33
  45526. contains a basic block that was not executed.
  45527. When you use the '-b' option, your output looks like this:
  45528. -: 0:Source:tmp.cpp
  45529. -: 0:Working directory:/home/gcc/testcase
  45530. -: 0:Graph:tmp.gcno
  45531. -: 0:Data:tmp.gcda
  45532. -: 0:Runs:1
  45533. -: 0:Programs:1
  45534. -: 1:#include <stdio.h>
  45535. -: 2:
  45536. -: 3:template<class T>
  45537. -: 4:class Foo
  45538. -: 5:{
  45539. -: 6: public:
  45540. 1*: 7: Foo(): b (1000) {}
  45541. ------------------
  45542. Foo<char>::Foo():
  45543. function Foo<char>::Foo() called 0 returned 0% blocks executed 0%
  45544. #####: 7: Foo(): b (1000) {}
  45545. ------------------
  45546. Foo<int>::Foo():
  45547. function Foo<int>::Foo() called 1 returned 100% blocks executed 100%
  45548. 1: 7: Foo(): b (1000) {}
  45549. ------------------
  45550. 2*: 8: void inc () { b++; }
  45551. ------------------
  45552. Foo<char>::inc():
  45553. function Foo<char>::inc() called 0 returned 0% blocks executed 0%
  45554. #####: 8: void inc () { b++; }
  45555. ------------------
  45556. Foo<int>::inc():
  45557. function Foo<int>::inc() called 2 returned 100% blocks executed 100%
  45558. 2: 8: void inc () { b++; }
  45559. ------------------
  45560. -: 9:
  45561. -: 10: private:
  45562. -: 11: int b;
  45563. -: 12:};
  45564. -: 13:
  45565. -: 14:template class Foo<int>;
  45566. -: 15:template class Foo<char>;
  45567. -: 16:
  45568. -: 17:int
  45569. function main called 1 returned 100% blocks executed 81%
  45570. 1: 18:main (void)
  45571. -: 19:{
  45572. -: 20: int i, total;
  45573. 1: 21: Foo<int> counter;
  45574. call 0 returned 100%
  45575. branch 1 taken 100% (fallthrough)
  45576. branch 2 taken 0% (throw)
  45577. -: 22:
  45578. 1: 23: counter.inc();
  45579. call 0 returned 100%
  45580. branch 1 taken 100% (fallthrough)
  45581. branch 2 taken 0% (throw)
  45582. 1: 24: counter.inc();
  45583. call 0 returned 100%
  45584. branch 1 taken 100% (fallthrough)
  45585. branch 2 taken 0% (throw)
  45586. 1: 25: total = 0;
  45587. -: 26:
  45588. 11: 27: for (i = 0; i < 10; i++)
  45589. branch 0 taken 91% (fallthrough)
  45590. branch 1 taken 9%
  45591. 10: 28: total += i;
  45592. -: 29:
  45593. 1*: 30: int v = total > 100 ? 1 : 2;
  45594. branch 0 taken 0% (fallthrough)
  45595. branch 1 taken 100%
  45596. -: 31:
  45597. 1: 32: if (total != 45)
  45598. branch 0 taken 0% (fallthrough)
  45599. branch 1 taken 100%
  45600. #####: 33: printf ("Failure\n");
  45601. call 0 never executed
  45602. branch 1 never executed
  45603. branch 2 never executed
  45604. -: 34: else
  45605. 1: 35: printf ("Success\n");
  45606. call 0 returned 100%
  45607. branch 1 taken 100% (fallthrough)
  45608. branch 2 taken 0% (throw)
  45609. 1: 36: return 0;
  45610. -: 37:}
  45611. For each function, a line is printed showing how many times the
  45612. function is called, how many times it returns and what percentage of the
  45613. function's blocks were executed.
  45614. For each basic block, a line is printed after the last line of the
  45615. basic block describing the branch or call that ends the basic block.
  45616. There can be multiple branches and calls listed for a single source line
  45617. if there are multiple basic blocks that end on that line. In this case,
  45618. the branches and calls are each given a number. There is no simple way
  45619. to map these branches and calls back to source constructs. In general,
  45620. though, the lowest numbered branch or call will correspond to the
  45621. leftmost construct on the source line.
  45622. For a branch, if it was executed at least once, then a percentage
  45623. indicating the number of times the branch was taken divided by the
  45624. number of times the branch was executed will be printed. Otherwise, the
  45625. message "never executed" is printed.
  45626. For a call, if it was executed at least once, then a percentage
  45627. indicating the number of times the call returned divided by the number
  45628. of times the call was executed will be printed. This will usually be
  45629. 100%, but may be less for functions that call 'exit' or 'longjmp', and
  45630. thus may not return every time they are called.
  45631. The execution counts are cumulative. If the example program were
  45632. executed again without removing the '.gcda' file, the count for the
  45633. number of times each line in the source was executed would be added to
  45634. the results of the previous run(s). This is potentially useful in
  45635. several ways. For example, it could be used to accumulate data over a
  45636. number of program runs as part of a test verification suite, or to
  45637. provide more accurate long-term information over a large number of
  45638. program runs.
  45639. The data in the '.gcda' files is saved immediately before the program
  45640. exits. For each source file compiled with '-fprofile-arcs', the
  45641. profiling code first attempts to read in an existing '.gcda' file; if
  45642. the file doesn't match the executable (differing number of basic block
  45643. counts) it will ignore the contents of the file. It then adds in the
  45644. new execution counts and finally writes the data to the file.
  45645. 
  45646. File: gcc.info, Node: Gcov and Optimization, Next: Gcov Data Files, Prev: Invoking Gcov, Up: Gcov
  45647. 10.3 Using 'gcov' with GCC Optimization
  45648. =======================================
  45649. If you plan to use 'gcov' to help optimize your code, you must first
  45650. compile your program with a special GCC option '--coverage'. Aside from
  45651. that, you can use any other GCC options; but if you want to prove that
  45652. every single line in your program was executed, you should not compile
  45653. with optimization at the same time. On some machines the optimizer can
  45654. eliminate some simple code lines by combining them with other lines.
  45655. For example, code like this:
  45656. if (a != b)
  45657. c = 1;
  45658. else
  45659. c = 0;
  45660. can be compiled into one instruction on some machines. In this case,
  45661. there is no way for 'gcov' to calculate separate execution counts for
  45662. each line because there isn't separate code for each line. Hence the
  45663. 'gcov' output looks like this if you compiled the program with
  45664. optimization:
  45665. 100: 12:if (a != b)
  45666. 100: 13: c = 1;
  45667. 100: 14:else
  45668. 100: 15: c = 0;
  45669. The output shows that this block of code, combined by optimization,
  45670. executed 100 times. In one sense this result is correct, because there
  45671. was only one instruction representing all four of these lines. However,
  45672. the output does not indicate how many times the result was 0 and how
  45673. many times the result was 1.
  45674. Inlineable functions can create unexpected line counts. Line counts
  45675. are shown for the source code of the inlineable function, but what is
  45676. shown depends on where the function is inlined, or if it is not inlined
  45677. at all.
  45678. If the function is not inlined, the compiler must emit an out of line
  45679. copy of the function, in any object file that needs it. If 'fileA.o'
  45680. and 'fileB.o' both contain out of line bodies of a particular inlineable
  45681. function, they will also both contain coverage counts for that function.
  45682. When 'fileA.o' and 'fileB.o' are linked together, the linker will, on
  45683. many systems, select one of those out of line bodies for all calls to
  45684. that function, and remove or ignore the other. Unfortunately, it will
  45685. not remove the coverage counters for the unused function body. Hence
  45686. when instrumented, all but one use of that function will show zero
  45687. counts.
  45688. If the function is inlined in several places, the block structure in
  45689. each location might not be the same. For instance, a condition might
  45690. now be calculable at compile time in some instances. Because the
  45691. coverage of all the uses of the inline function will be shown for the
  45692. same source lines, the line counts themselves might seem inconsistent.
  45693. Long-running applications can use the '__gcov_reset' and '__gcov_dump'
  45694. facilities to restrict profile collection to the program region of
  45695. interest. Calling '__gcov_reset(void)' will clear all profile counters
  45696. to zero, and calling '__gcov_dump(void)' will cause the profile
  45697. information collected at that point to be dumped to '.gcda' output
  45698. files. Instrumented applications use a static destructor with priority
  45699. 99 to invoke the '__gcov_dump' function. Thus '__gcov_dump' is executed
  45700. after all user defined static destructors, as well as handlers
  45701. registered with 'atexit'. If an executable loads a dynamic shared
  45702. object via dlopen functionality, '-Wl,--dynamic-list-data' is needed to
  45703. dump all profile data.
  45704. Profiling run-time library reports various errors related to profile
  45705. manipulation and profile saving. Errors are printed into standard error
  45706. output or 'GCOV_ERROR_FILE' file, if environment variable is used. In
  45707. order to terminate immediately after an errors occurs set
  45708. 'GCOV_EXIT_AT_ERROR' environment variable. That can help users to find
  45709. profile clashing which leads to a misleading profile.
  45710. 
  45711. File: gcc.info, Node: Gcov Data Files, Next: Cross-profiling, Prev: Gcov and Optimization, Up: Gcov
  45712. 10.4 Brief Description of 'gcov' Data Files
  45713. ===========================================
  45714. 'gcov' uses two files for profiling. The names of these files are
  45715. derived from the original _object_ file by substituting the file suffix
  45716. with either '.gcno', or '.gcda'. The files contain coverage and profile
  45717. data stored in a platform-independent format. The '.gcno' files are
  45718. placed in the same directory as the object file. By default, the
  45719. '.gcda' files are also stored in the same directory as the object file,
  45720. but the GCC '-fprofile-dir' option may be used to store the '.gcda'
  45721. files in a separate directory.
  45722. The '.gcno' notes file is generated when the source file is compiled
  45723. with the GCC '-ftest-coverage' option. It contains information to
  45724. reconstruct the basic block graphs and assign source line numbers to
  45725. blocks.
  45726. The '.gcda' count data file is generated when a program containing
  45727. object files built with the GCC '-fprofile-arcs' option is executed. A
  45728. separate '.gcda' file is created for each object file compiled with this
  45729. option. It contains arc transition counts, value profile counts, and
  45730. some summary information.
  45731. It is not recommended to access the coverage files directly. Consumers
  45732. should use the intermediate format that is provided by 'gcov' tool via
  45733. '--json-format' option.
  45734. 
  45735. File: gcc.info, Node: Cross-profiling, Prev: Gcov Data Files, Up: Gcov
  45736. 10.5 Data File Relocation to Support Cross-Profiling
  45737. ====================================================
  45738. Running the program will cause profile output to be generated. For each
  45739. source file compiled with '-fprofile-arcs', an accompanying '.gcda' file
  45740. will be placed in the object file directory. That implicitly requires
  45741. running the program on the same system as it was built or having the
  45742. same absolute directory structure on the target system. The program
  45743. will try to create the needed directory structure, if it is not already
  45744. present.
  45745. To support cross-profiling, a program compiled with '-fprofile-arcs'
  45746. can relocate the data files based on two environment variables:
  45747. * GCOV_PREFIX contains the prefix to add to the absolute paths in the
  45748. object file. Prefix can be absolute, or relative. The default is
  45749. no prefix.
  45750. * GCOV_PREFIX_STRIP indicates the how many initial directory names to
  45751. strip off the hardwired absolute paths. Default value is 0.
  45752. _Note:_ If GCOV_PREFIX_STRIP is set without GCOV_PREFIX is
  45753. undefined, then a relative path is made out of the hardwired
  45754. absolute paths.
  45755. For example, if the object file '/user/build/foo.o' was built with
  45756. '-fprofile-arcs', the final executable will try to create the data file
  45757. '/user/build/foo.gcda' when running on the target system. This will
  45758. fail if the corresponding directory does not exist and it is unable to
  45759. create it. This can be overcome by, for example, setting the
  45760. environment as 'GCOV_PREFIX=/target/run' and 'GCOV_PREFIX_STRIP=1'.
  45761. Such a setting will name the data file '/target/run/build/foo.gcda'.
  45762. You must move the data files to the expected directory tree in order to
  45763. use them for profile directed optimizations ('-fprofile-use'), or to use
  45764. the 'gcov' tool.
  45765. 
  45766. File: gcc.info, Node: Gcov-tool, Next: Gcov-dump, Prev: Gcov, Up: Top
  45767. 11 'gcov-tool'--an Offline Gcda Profile Processing Tool
  45768. *******************************************************
  45769. 'gcov-tool' is a tool you can use in conjunction with GCC to manipulate
  45770. or process gcda profile files offline.
  45771. * Menu:
  45772. * Gcov-tool Intro:: Introduction to gcov-tool.
  45773. * Invoking Gcov-tool:: How to use gcov-tool.
  45774. 
  45775. File: gcc.info, Node: Gcov-tool Intro, Next: Invoking Gcov-tool, Up: Gcov-tool
  45776. 11.1 Introduction to 'gcov-tool'
  45777. ================================
  45778. 'gcov-tool' is an offline tool to process gcc's gcda profile files.
  45779. Current gcov-tool supports the following functionalities:
  45780. * merge two sets of profiles with weights.
  45781. * read one set of profile and rewrite profile contents. One can
  45782. scale or normalize the count values.
  45783. Examples of the use cases for this tool are:
  45784. * Collect the profiles for different set of inputs, and use this tool
  45785. to merge them. One can specify the weight to factor in the
  45786. relative importance of each input.
  45787. * Rewrite the profile after removing a subset of the gcda files,
  45788. while maintaining the consistency of the summary and the histogram.
  45789. * It can also be used to debug or libgcov code as the tools shares
  45790. the majority code as the runtime library.
  45791. Note that for the merging operation, this profile generated offline may
  45792. contain slight different values from the online merged profile. Here
  45793. are a list of typical differences:
  45794. * histogram difference: This offline tool recomputes the histogram
  45795. after merging the counters. The resulting histogram, therefore, is
  45796. precise. The online merging does not have this capability - the
  45797. histogram is merged from two histograms and the result is an
  45798. approximation.
  45799. * summary checksum difference: Summary checksum uses a CRC32
  45800. operation. The value depends on the link list order of gcov-info
  45801. objects. This order is different in gcov-tool from that in the
  45802. online merge. It's expected to have different summary checksums.
  45803. It does not really matter as the compiler does not use this
  45804. checksum anywhere.
  45805. * value profile counter values difference: Some counter values for
  45806. value profile are runtime dependent, like heap addresses. It's
  45807. normal to see some difference in these kind of counters.
  45808. 
  45809. File: gcc.info, Node: Invoking Gcov-tool, Prev: Gcov-tool Intro, Up: Gcov-tool
  45810. 11.2 Invoking 'gcov-tool'
  45811. =========================
  45812. gcov-tool [GLOBAL-OPTIONS] SUB_COMMAND [SUB_COMMAND-OPTIONS] PROFILE_DIR
  45813. 'gcov-tool' accepts the following options:
  45814. '-h'
  45815. '--help'
  45816. Display help about using 'gcov-tool' (on the standard output), and
  45817. exit without doing any further processing.
  45818. '-v'
  45819. '--version'
  45820. Display the 'gcov-tool' version number (on the standard output),
  45821. and exit without doing any further processing.
  45822. 'merge'
  45823. Merge two profile directories.
  45824. '-o DIRECTORY'
  45825. '--output DIRECTORY'
  45826. Set the output profile directory. Default output directory
  45827. name is MERGED_PROFILE.
  45828. '-v'
  45829. '--verbose'
  45830. Set the verbose mode.
  45831. '-w W1,W2'
  45832. '--weight W1,W2'
  45833. Set the merge weights of the DIRECTORY1 and DIRECTORY2,
  45834. respectively. The default weights are 1 for both.
  45835. 'rewrite'
  45836. Read the specified profile directory and rewrite to a new
  45837. directory.
  45838. '-n LONG_LONG_VALUE'
  45839. '--normalize <long_long_value>'
  45840. Normalize the profile. The specified value is the max counter
  45841. value in the new profile.
  45842. '-o DIRECTORY'
  45843. '--output DIRECTORY'
  45844. Set the output profile directory. Default output name is
  45845. REWRITE_PROFILE.
  45846. '-s FLOAT_OR_SIMPLE-FRAC_VALUE'
  45847. '--scale FLOAT_OR_SIMPLE-FRAC_VALUE'
  45848. Scale the profile counters. The specified value can be in
  45849. floating point value, or simple fraction value form, such 1,
  45850. 2, 2/3, and 5/3.
  45851. '-v'
  45852. '--verbose'
  45853. Set the verbose mode.
  45854. 'overlap'
  45855. Compute the overlap score between the two specified profile
  45856. directories. The overlap score is computed based on the arc
  45857. profiles. It is defined as the sum of min (p1_counter[i] /
  45858. p1_sum_all, p2_counter[i] / p2_sum_all), for all arc counter i,
  45859. where p1_counter[i] and p2_counter[i] are two matched counters and
  45860. p1_sum_all and p2_sum_all are the sum of counter values in profile
  45861. 1 and profile 2, respectively.
  45862. '-f'
  45863. '--function'
  45864. Print function level overlap score.
  45865. '-F'
  45866. '--fullname'
  45867. Print full gcda filename.
  45868. '-h'
  45869. '--hotonly'
  45870. Only print info for hot objects/functions.
  45871. '-o'
  45872. '--object'
  45873. Print object level overlap score.
  45874. '-t FLOAT'
  45875. '--hot_threshold <float>'
  45876. Set the threshold for hot counter value.
  45877. '-v'
  45878. '--verbose'
  45879. Set the verbose mode.
  45880. 
  45881. File: gcc.info, Node: Gcov-dump, Next: lto-dump, Prev: Gcov-tool, Up: Top
  45882. 12 'gcov-dump'--an Offline Gcda and Gcno Profile Dump Tool
  45883. **********************************************************
  45884. * Menu:
  45885. * Gcov-dump Intro:: Introduction to gcov-dump.
  45886. * Invoking Gcov-dump:: How to use gcov-dump.
  45887. 
  45888. File: gcc.info, Node: Gcov-dump Intro, Next: Invoking Gcov-dump, Up: Gcov-dump
  45889. 12.1 Introduction to 'gcov-dump'
  45890. ================================
  45891. 'gcov-dump' is a tool you can use in conjunction with GCC to dump
  45892. content of gcda and gcno profile files offline.
  45893. 
  45894. File: gcc.info, Node: Invoking Gcov-dump, Prev: Gcov-dump Intro, Up: Gcov-dump
  45895. 12.2 Invoking 'gcov-dump'
  45896. =========================
  45897. Usage: gcov-dump [OPTION] ... GCOVFILES
  45898. 'gcov-dump' accepts the following options:
  45899. '-h'
  45900. '--help'
  45901. Display help about using 'gcov-dump' (on the standard output), and
  45902. exit without doing any further processing.
  45903. '-l'
  45904. '--long'
  45905. Dump content of records.
  45906. '-p'
  45907. '--positions'
  45908. Dump positions of records.
  45909. '-v'
  45910. '--version'
  45911. Display the 'gcov-dump' version number (on the standard output),
  45912. and exit without doing any further processing.
  45913. 
  45914. File: gcc.info, Node: lto-dump, Next: Trouble, Prev: Gcov-dump, Up: Top
  45915. 13 'lto-dump'--Tool for dumping LTO object files.
  45916. *************************************************
  45917. * Menu:
  45918. * lto-dump Intro:: Introduction to lto-dump.
  45919. * Invoking lto-dump:: How to use lto-dump.
  45920. 
  45921. File: gcc.info, Node: lto-dump Intro, Next: Invoking lto-dump, Up: lto-dump
  45922. 13.1 Introduction to 'lto-dump'
  45923. ===============================
  45924. 'lto-dump' is a tool you can use in conjunction with GCC to dump link
  45925. time optimization object files.
  45926. 
  45927. File: gcc.info, Node: Invoking lto-dump, Prev: lto-dump Intro, Up: lto-dump
  45928. 13.2 Invoking 'lto-dump'
  45929. ========================
  45930. Usage: lto-dump [OPTION] ... OBJFILES
  45931. 'lto-dump' accepts the following options:
  45932. '-list'
  45933. Dumps list of details of functions and variables.
  45934. '-demangle'
  45935. Dump the demangled output.
  45936. '-defined-only'
  45937. Dump only the defined symbols.
  45938. '-print-value'
  45939. Dump initial values of the variables.
  45940. '-name-sort'
  45941. Sort the symbols alphabetically.
  45942. '-size-sort'
  45943. Sort the symbols according to size.
  45944. '-reverse-sort'
  45945. Dump the symbols in reverse order.
  45946. '-no-sort'
  45947. Dump the symbols in order of occurrence.
  45948. '-symbol='
  45949. Dump the details of specific symbol.
  45950. '-objects'
  45951. Dump the details of LTO objects.
  45952. '-type-stats'
  45953. Dump the statistics of tree types.
  45954. '-tree-stats'
  45955. Dump the statistics of trees.
  45956. '-gimple-stats'
  45957. Dump the statistics of gimple statements.
  45958. '-dump-level='
  45959. For deciding the optimization level of body.
  45960. '-dump-body='
  45961. Dump the specific gimple body.
  45962. '-help'
  45963. Display the dump tool help.
  45964. 
  45965. File: gcc.info, Node: Trouble, Next: Bugs, Prev: lto-dump, Up: Top
  45966. 14 Known Causes of Trouble with GCC
  45967. ***********************************
  45968. This section describes known problems that affect users of GCC. Most of
  45969. these are not GCC bugs per se--if they were, we would fix them. But the
  45970. result for a user may be like the result of a bug.
  45971. Some of these problems are due to bugs in other software, some are
  45972. missing features that are too much work to add, and some are places
  45973. where people's opinions differ as to what is best.
  45974. * Menu:
  45975. * Actual Bugs:: Bugs we will fix later.
  45976. * Interoperation:: Problems using GCC with other compilers,
  45977. and with certain linkers, assemblers and debuggers.
  45978. * Incompatibilities:: GCC is incompatible with traditional C.
  45979. * Fixed Headers:: GCC uses corrected versions of system header files.
  45980. This is necessary, but doesn't always work smoothly.
  45981. * Standard Libraries:: GCC uses the system C library, which might not be
  45982. compliant with the ISO C standard.
  45983. * Disappointments:: Regrettable things we cannot change, but not quite bugs.
  45984. * C++ Misunderstandings:: Common misunderstandings with GNU C++.
  45985. * Non-bugs:: Things we think are right, but some others disagree.
  45986. * Warnings and Errors:: Which problems in your code get warnings,
  45987. and which get errors.
  45988. 
  45989. File: gcc.info, Node: Actual Bugs, Next: Interoperation, Up: Trouble
  45990. 14.1 Actual Bugs We Haven't Fixed Yet
  45991. =====================================
  45992. * The 'fixincludes' script interacts badly with automounters; if the
  45993. directory of system header files is automounted, it tends to be
  45994. unmounted while 'fixincludes' is running. This would seem to be a
  45995. bug in the automounter. We don't know any good way to work around
  45996. it.
  45997. 
  45998. File: gcc.info, Node: Interoperation, Next: Incompatibilities, Prev: Actual Bugs, Up: Trouble
  45999. 14.2 Interoperation
  46000. ===================
  46001. This section lists various difficulties encountered in using GCC
  46002. together with other compilers or with the assemblers, linkers, libraries
  46003. and debuggers on certain systems.
  46004. * On many platforms, GCC supports a different ABI for C++ than do
  46005. other compilers, so the object files compiled by GCC cannot be used
  46006. with object files generated by another C++ compiler.
  46007. An area where the difference is most apparent is name mangling.
  46008. The use of different name mangling is intentional, to protect you
  46009. from more subtle problems. Compilers differ as to many internal
  46010. details of C++ implementation, including: how class instances are
  46011. laid out, how multiple inheritance is implemented, and how virtual
  46012. function calls are handled. If the name encoding were made the
  46013. same, your programs would link against libraries provided from
  46014. other compilers--but the programs would then crash when run.
  46015. Incompatible libraries are then detected at link time, rather than
  46016. at run time.
  46017. * On some BSD systems, including some versions of Ultrix, use of
  46018. profiling causes static variable destructors (currently used only
  46019. in C++) not to be run.
  46020. * On a SPARC, GCC aligns all values of type 'double' on an 8-byte
  46021. boundary, and it expects every 'double' to be so aligned. The Sun
  46022. compiler usually gives 'double' values 8-byte alignment, with one
  46023. exception: function arguments of type 'double' may not be aligned.
  46024. As a result, if a function compiled with Sun CC takes the address
  46025. of an argument of type 'double' and passes this pointer of type
  46026. 'double *' to a function compiled with GCC, dereferencing the
  46027. pointer may cause a fatal signal.
  46028. One way to solve this problem is to compile your entire program
  46029. with GCC. Another solution is to modify the function that is
  46030. compiled with Sun CC to copy the argument into a local variable;
  46031. local variables are always properly aligned. A third solution is
  46032. to modify the function that uses the pointer to dereference it via
  46033. the following function 'access_double' instead of directly with
  46034. '*':
  46035. inline double
  46036. access_double (double *unaligned_ptr)
  46037. {
  46038. union d2i { double d; int i[2]; };
  46039. union d2i *p = (union d2i *) unaligned_ptr;
  46040. union d2i u;
  46041. u.i[0] = p->i[0];
  46042. u.i[1] = p->i[1];
  46043. return u.d;
  46044. }
  46045. Storing into the pointer can be done likewise with the same union.
  46046. * On Solaris, the 'malloc' function in the 'libmalloc.a' library may
  46047. allocate memory that is only 4 byte aligned. Since GCC on the
  46048. SPARC assumes that doubles are 8 byte aligned, this may result in a
  46049. fatal signal if doubles are stored in memory allocated by the
  46050. 'libmalloc.a' library.
  46051. The solution is to not use the 'libmalloc.a' library. Use instead
  46052. 'malloc' and related functions from 'libc.a'; they do not have this
  46053. problem.
  46054. * On the HP PA machine, ADB sometimes fails to work on functions
  46055. compiled with GCC. Specifically, it fails to work on functions
  46056. that use 'alloca' or variable-size arrays. This is because GCC
  46057. doesn't generate HP-UX unwind descriptors for such functions. It
  46058. may even be impossible to generate them.
  46059. * Debugging ('-g') is not supported on the HP PA machine, unless you
  46060. use the preliminary GNU tools.
  46061. * Taking the address of a label may generate errors from the HP-UX PA
  46062. assembler. GAS for the PA does not have this problem.
  46063. * Using floating point parameters for indirect calls to static
  46064. functions will not work when using the HP assembler. There simply
  46065. is no way for GCC to specify what registers hold arguments for
  46066. static functions when using the HP assembler. GAS for the PA does
  46067. not have this problem.
  46068. * In extremely rare cases involving some very large functions you may
  46069. receive errors from the HP linker complaining about an out of
  46070. bounds unconditional branch offset. This used to occur more often
  46071. in previous versions of GCC, but is now exceptionally rare. If you
  46072. should run into it, you can work around by making your function
  46073. smaller.
  46074. * GCC compiled code sometimes emits warnings from the HP-UX assembler
  46075. of the form:
  46076. (warning) Use of GR3 when
  46077. frame >= 8192 may cause conflict.
  46078. These warnings are harmless and can be safely ignored.
  46079. * In extremely rare cases involving some very large functions you may
  46080. receive errors from the AIX Assembler complaining about a
  46081. displacement that is too large. If you should run into it, you can
  46082. work around by making your function smaller.
  46083. * The 'libstdc++.a' library in GCC relies on the SVR4 dynamic linker
  46084. semantics which merges global symbols between libraries and
  46085. applications, especially necessary for C++ streams functionality.
  46086. This is not the default behavior of AIX shared libraries and
  46087. dynamic linking. 'libstdc++.a' is built on AIX with
  46088. "runtime-linking" enabled so that symbol merging can occur. To
  46089. utilize this feature, the application linked with 'libstdc++.a'
  46090. must include the '-Wl,-brtl' flag on the link line. G++ cannot
  46091. impose this because this option may interfere with the semantics of
  46092. the user program and users may not always use 'g++' to link his or
  46093. her application. Applications are not required to use the
  46094. '-Wl,-brtl' flag on the link line--the rest of the 'libstdc++.a'
  46095. library which is not dependent on the symbol merging semantics will
  46096. continue to function correctly.
  46097. * An application can interpose its own definition of functions for
  46098. functions invoked by 'libstdc++.a' with "runtime-linking" enabled
  46099. on AIX. To accomplish this the application must be linked with
  46100. "runtime-linking" option and the functions explicitly must be
  46101. exported by the application ('-Wl,-brtl,-bE:exportfile').
  46102. * AIX on the RS/6000 provides support (NLS) for environments outside
  46103. of the United States. Compilers and assemblers use NLS to support
  46104. locale-specific representations of various objects including
  46105. floating-point numbers ('.' vs ',' for separating decimal
  46106. fractions). There have been problems reported where the library
  46107. linked with GCC does not produce the same floating-point formats
  46108. that the assembler accepts. If you have this problem, set the
  46109. 'LANG' environment variable to 'C' or 'En_US'.
  46110. * Even if you specify '-fdollars-in-identifiers', you cannot
  46111. successfully use '$' in identifiers on the RS/6000 due to a
  46112. restriction in the IBM assembler. GAS supports these identifiers.
  46113. 
  46114. File: gcc.info, Node: Incompatibilities, Next: Fixed Headers, Prev: Interoperation, Up: Trouble
  46115. 14.3 Incompatibilities of GCC
  46116. =============================
  46117. There are several noteworthy incompatibilities between GNU C and K&R
  46118. (non-ISO) versions of C.
  46119. * GCC normally makes string constants read-only. If several
  46120. identical-looking string constants are used, GCC stores only one
  46121. copy of the string.
  46122. One consequence is that you cannot call 'mktemp' with a string
  46123. constant argument. The function 'mktemp' always alters the string
  46124. its argument points to.
  46125. Another consequence is that 'sscanf' does not work on some very old
  46126. systems when passed a string constant as its format control string
  46127. or input. This is because 'sscanf' incorrectly tries to write into
  46128. the string constant. Likewise 'fscanf' and 'scanf'.
  46129. The solution to these problems is to change the program to use
  46130. 'char'-array variables with initialization strings for these
  46131. purposes instead of string constants.
  46132. * '-2147483648' is positive.
  46133. This is because 2147483648 cannot fit in the type 'int', so
  46134. (following the ISO C rules) its data type is 'unsigned long int'.
  46135. Negating this value yields 2147483648 again.
  46136. * GCC does not substitute macro arguments when they appear inside of
  46137. string constants. For example, the following macro in GCC
  46138. #define foo(a) "a"
  46139. will produce output '"a"' regardless of what the argument A is.
  46140. * When you use 'setjmp' and 'longjmp', the only automatic variables
  46141. guaranteed to remain valid are those declared 'volatile'. This is
  46142. a consequence of automatic register allocation. Consider this
  46143. function:
  46144. jmp_buf j;
  46145. foo ()
  46146. {
  46147. int a, b;
  46148. a = fun1 ();
  46149. if (setjmp (j))
  46150. return a;
  46151. a = fun2 ();
  46152. /* 'longjmp (j)' may occur in 'fun3'. */
  46153. return a + fun3 ();
  46154. }
  46155. Here 'a' may or may not be restored to its first value when the
  46156. 'longjmp' occurs. If 'a' is allocated in a register, then its
  46157. first value is restored; otherwise, it keeps the last value stored
  46158. in it.
  46159. If you use the '-W' option with the '-O' option, you will get a
  46160. warning when GCC thinks such a problem might be possible.
  46161. * Programs that use preprocessing directives in the middle of macro
  46162. arguments do not work with GCC. For example, a program like this
  46163. will not work:
  46164. foobar (
  46165. #define luser
  46166. hack)
  46167. ISO C does not permit such a construct.
  46168. * K&R compilers allow comments to cross over an inclusion boundary
  46169. (i.e. started in an include file and ended in the including file).
  46170. * Declarations of external variables and functions within a block
  46171. apply only to the block containing the declaration. In other
  46172. words, they have the same scope as any other declaration in the
  46173. same place.
  46174. In some other C compilers, an 'extern' declaration affects all the
  46175. rest of the file even if it happens within a block.
  46176. * In traditional C, you can combine 'long', etc., with a typedef
  46177. name, as shown here:
  46178. typedef int foo;
  46179. typedef long foo bar;
  46180. In ISO C, this is not allowed: 'long' and other type modifiers
  46181. require an explicit 'int'.
  46182. * PCC allows typedef names to be used as function parameters.
  46183. * Traditional C allows the following erroneous pair of declarations
  46184. to appear together in a given scope:
  46185. typedef int foo;
  46186. typedef foo foo;
  46187. * GCC treats all characters of identifiers as significant. According
  46188. to K&R-1 (2.2), "No more than the first eight characters are
  46189. significant, although more may be used.". Also according to K&R-1
  46190. (2.2), "An identifier is a sequence of letters and digits; the
  46191. first character must be a letter. The underscore _ counts as a
  46192. letter.", but GCC also allows dollar signs in identifiers.
  46193. * PCC allows whitespace in the middle of compound assignment
  46194. operators such as '+='. GCC, following the ISO standard, does not
  46195. allow this.
  46196. * GCC complains about unterminated character constants inside of
  46197. preprocessing conditionals that fail. Some programs have English
  46198. comments enclosed in conditionals that are guaranteed to fail; if
  46199. these comments contain apostrophes, GCC will probably report an
  46200. error. For example, this code would produce an error:
  46201. #if 0
  46202. You can't expect this to work.
  46203. #endif
  46204. The best solution to such a problem is to put the text into an
  46205. actual C comment delimited by '/*...*/'.
  46206. * Many user programs contain the declaration 'long time ();'. In the
  46207. past, the system header files on many systems did not actually
  46208. declare 'time', so it did not matter what type your program
  46209. declared it to return. But in systems with ISO C headers, 'time'
  46210. is declared to return 'time_t', and if that is not the same as
  46211. 'long', then 'long time ();' is erroneous.
  46212. The solution is to change your program to use appropriate system
  46213. headers ('<time.h>' on systems with ISO C headers) and not to
  46214. declare 'time' if the system header files declare it, or failing
  46215. that to use 'time_t' as the return type of 'time'.
  46216. * When compiling functions that return 'float', PCC converts it to a
  46217. double. GCC actually returns a 'float'. If you are concerned with
  46218. PCC compatibility, you should declare your functions to return
  46219. 'double'; you might as well say what you mean.
  46220. * When compiling functions that return structures or unions, GCC
  46221. output code normally uses a method different from that used on most
  46222. versions of Unix. As a result, code compiled with GCC cannot call
  46223. a structure-returning function compiled with PCC, and vice versa.
  46224. The method used by GCC is as follows: a structure or union which is
  46225. 1, 2, 4 or 8 bytes long is returned like a scalar. A structure or
  46226. union with any other size is stored into an address supplied by the
  46227. caller (usually in a special, fixed register, but on some machines
  46228. it is passed on the stack). The target hook
  46229. 'TARGET_STRUCT_VALUE_RTX' tells GCC where to pass this address.
  46230. By contrast, PCC on most target machines returns structures and
  46231. unions of any size by copying the data into an area of static
  46232. storage, and then returning the address of that storage as if it
  46233. were a pointer value. The caller must copy the data from that
  46234. memory area to the place where the value is wanted. GCC does not
  46235. use this method because it is slower and nonreentrant.
  46236. On some newer machines, PCC uses a reentrant convention for all
  46237. structure and union returning. GCC on most of these machines uses
  46238. a compatible convention when returning structures and unions in
  46239. memory, but still returns small structures and unions in registers.
  46240. You can tell GCC to use a compatible convention for all structure
  46241. and union returning with the option '-fpcc-struct-return'.
  46242. * GCC complains about program fragments such as '0x74ae-0x4000' which
  46243. appear to be two hexadecimal constants separated by the minus
  46244. operator. Actually, this string is a single "preprocessing token".
  46245. Each such token must correspond to one token in C. Since this does
  46246. not, GCC prints an error message. Although it may appear obvious
  46247. that what is meant is an operator and two values, the ISO C
  46248. standard specifically requires that this be treated as erroneous.
  46249. A "preprocessing token" is a "preprocessing number" if it begins
  46250. with a digit and is followed by letters, underscores, digits,
  46251. periods and 'e+', 'e-', 'E+', 'E-', 'p+', 'p-', 'P+', or 'P-'
  46252. character sequences. (In strict C90 mode, the sequences 'p+',
  46253. 'p-', 'P+' and 'P-' cannot appear in preprocessing numbers.)
  46254. To make the above program fragment valid, place whitespace in front
  46255. of the minus sign. This whitespace will end the preprocessing
  46256. number.
  46257. 
  46258. File: gcc.info, Node: Fixed Headers, Next: Standard Libraries, Prev: Incompatibilities, Up: Trouble
  46259. 14.4 Fixed Header Files
  46260. =======================
  46261. GCC needs to install corrected versions of some system header files.
  46262. This is because most target systems have some header files that won't
  46263. work with GCC unless they are changed. Some have bugs, some are
  46264. incompatible with ISO C, and some depend on special features of other
  46265. compilers.
  46266. Installing GCC automatically creates and installs the fixed header
  46267. files, by running a program called 'fixincludes'. Normally, you don't
  46268. need to pay attention to this. But there are cases where it doesn't do
  46269. the right thing automatically.
  46270. * If you update the system's header files, such as by installing a
  46271. new system version, the fixed header files of GCC are not
  46272. automatically updated. They can be updated using the 'mkheaders'
  46273. script installed in 'LIBEXECDIR/gcc/TARGET/VERSION/install-tools/'.
  46274. * On some systems, header file directories contain machine-specific
  46275. symbolic links in certain places. This makes it possible to share
  46276. most of the header files among hosts running the same version of
  46277. the system on different machine models.
  46278. The programs that fix the header files do not understand this
  46279. special way of using symbolic links; therefore, the directory of
  46280. fixed header files is good only for the machine model used to build
  46281. it.
  46282. It is possible to make separate sets of fixed header files for the
  46283. different machine models, and arrange a structure of symbolic links
  46284. so as to use the proper set, but you'll have to do this by hand.
  46285. 
  46286. File: gcc.info, Node: Standard Libraries, Next: Disappointments, Prev: Fixed Headers, Up: Trouble
  46287. 14.5 Standard Libraries
  46288. =======================
  46289. GCC by itself attempts to be a conforming freestanding implementation.
  46290. *Note Language Standards Supported by GCC: Standards, for details of
  46291. what this means. Beyond the library facilities required of such an
  46292. implementation, the rest of the C library is supplied by the vendor of
  46293. the operating system. If that C library doesn't conform to the C
  46294. standards, then your programs might get warnings (especially when using
  46295. '-Wall') that you don't expect.
  46296. For example, the 'sprintf' function on SunOS 4.1.3 returns 'char *'
  46297. while the C standard says that 'sprintf' returns an 'int'. The
  46298. 'fixincludes' program could make the prototype for this function match
  46299. the Standard, but that would be wrong, since the function will still
  46300. return 'char *'.
  46301. If you need a Standard compliant library, then you need to find one, as
  46302. GCC does not provide one. The GNU C library (called 'glibc') provides
  46303. ISO C, POSIX, BSD, SystemV and X/Open compatibility for GNU/Linux and
  46304. HURD-based GNU systems; no recent version of it supports other systems,
  46305. though some very old versions did. Version 2.2 of the GNU C library
  46306. includes nearly complete C99 support. You could also ask your operating
  46307. system vendor if newer libraries are available.
  46308. 
  46309. File: gcc.info, Node: Disappointments, Next: C++ Misunderstandings, Prev: Standard Libraries, Up: Trouble
  46310. 14.6 Disappointments and Misunderstandings
  46311. ==========================================
  46312. These problems are perhaps regrettable, but we don't know any practical
  46313. way around them.
  46314. * Certain local variables aren't recognized by debuggers when you
  46315. compile with optimization.
  46316. This occurs because sometimes GCC optimizes the variable out of
  46317. existence. There is no way to tell the debugger how to compute the
  46318. value such a variable "would have had", and it is not clear that
  46319. would be desirable anyway. So GCC simply does not mention the
  46320. eliminated variable when it writes debugging information.
  46321. You have to expect a certain amount of disagreement between the
  46322. executable and your source code, when you use optimization.
  46323. * Users often think it is a bug when GCC reports an error for code
  46324. like this:
  46325. int foo (struct mumble *);
  46326. struct mumble { ... };
  46327. int foo (struct mumble *x)
  46328. { ... }
  46329. This code really is erroneous, because the scope of 'struct mumble'
  46330. in the prototype is limited to the argument list containing it. It
  46331. does not refer to the 'struct mumble' defined with file scope
  46332. immediately below--they are two unrelated types with similar names
  46333. in different scopes.
  46334. But in the definition of 'foo', the file-scope type is used because
  46335. that is available to be inherited. Thus, the definition and the
  46336. prototype do not match, and you get an error.
  46337. This behavior may seem silly, but it's what the ISO standard
  46338. specifies. It is easy enough for you to make your code work by
  46339. moving the definition of 'struct mumble' above the prototype. It's
  46340. not worth being incompatible with ISO C just to avoid an error for
  46341. the example shown above.
  46342. * Accesses to bit-fields even in volatile objects works by accessing
  46343. larger objects, such as a byte or a word. You cannot rely on what
  46344. size of object is accessed in order to read or write the bit-field;
  46345. it may even vary for a given bit-field according to the precise
  46346. usage.
  46347. If you care about controlling the amount of memory that is
  46348. accessed, use volatile but do not use bit-fields.
  46349. * GCC comes with shell scripts to fix certain known problems in
  46350. system header files. They install corrected copies of various
  46351. header files in a special directory where only GCC will normally
  46352. look for them. The scripts adapt to various systems by searching
  46353. all the system header files for the problem cases that we know
  46354. about.
  46355. If new system header files are installed, nothing automatically
  46356. arranges to update the corrected header files. They can be updated
  46357. using the 'mkheaders' script installed in
  46358. 'LIBEXECDIR/gcc/TARGET/VERSION/install-tools/'.
  46359. * On 68000 and x86 systems, for instance, you can get paradoxical
  46360. results if you test the precise values of floating point numbers.
  46361. For example, you can find that a floating point value which is not
  46362. a NaN is not equal to itself. This results from the fact that the
  46363. floating point registers hold a few more bits of precision than fit
  46364. in a 'double' in memory. Compiled code moves values between memory
  46365. and floating point registers at its convenience, and moving them
  46366. into memory truncates them.
  46367. You can partially avoid this problem by using the '-ffloat-store'
  46368. option (*note Optimize Options::).
  46369. * On AIX and other platforms without weak symbol support, templates
  46370. need to be instantiated explicitly and symbols for static members
  46371. of templates will not be generated.
  46372. * On AIX, GCC scans object files and library archives for static
  46373. constructors and destructors when linking an application before the
  46374. linker prunes unreferenced symbols. This is necessary to prevent
  46375. the AIX linker from mistakenly assuming that static constructor or
  46376. destructor are unused and removing them before the scanning can
  46377. occur. All static constructors and destructors found will be
  46378. referenced even though the modules in which they occur may not be
  46379. used by the program. This may lead to both increased executable
  46380. size and unexpected symbol references.
  46381. 
  46382. File: gcc.info, Node: C++ Misunderstandings, Next: Non-bugs, Prev: Disappointments, Up: Trouble
  46383. 14.7 Common Misunderstandings with GNU C++
  46384. ==========================================
  46385. C++ is a complex language and an evolving one, and its standard
  46386. definition (the ISO C++ standard) was only recently completed. As a
  46387. result, your C++ compiler may occasionally surprise you, even when its
  46388. behavior is correct. This section discusses some areas that frequently
  46389. give rise to questions of this sort.
  46390. * Menu:
  46391. * Static Definitions:: Static member declarations are not definitions
  46392. * Name lookup:: Name lookup, templates, and accessing members of base classes
  46393. * Temporaries:: Temporaries may vanish before you expect
  46394. * Copy Assignment:: Copy Assignment operators copy virtual bases twice
  46395. 
  46396. File: gcc.info, Node: Static Definitions, Next: Name lookup, Up: C++ Misunderstandings
  46397. 14.7.1 Declare _and_ Define Static Members
  46398. ------------------------------------------
  46399. When a class has static data members, it is not enough to _declare_ the
  46400. static member; you must also _define_ it. For example:
  46401. class Foo
  46402. {
  46403. ...
  46404. void method();
  46405. static int bar;
  46406. };
  46407. This declaration only establishes that the class 'Foo' has an 'int'
  46408. named 'Foo::bar', and a member function named 'Foo::method'. But you
  46409. still need to define _both_ 'method' and 'bar' elsewhere. According to
  46410. the ISO standard, you must supply an initializer in one (and only one)
  46411. source file, such as:
  46412. int Foo::bar = 0;
  46413. Other C++ compilers may not correctly implement the standard behavior.
  46414. As a result, when you switch to 'g++' from one of these compilers, you
  46415. may discover that a program that appeared to work correctly in fact does
  46416. not conform to the standard: 'g++' reports as undefined symbols any
  46417. static data members that lack definitions.
  46418. 
  46419. File: gcc.info, Node: Name lookup, Next: Temporaries, Prev: Static Definitions, Up: C++ Misunderstandings
  46420. 14.7.2 Name Lookup, Templates, and Accessing Members of Base Classes
  46421. --------------------------------------------------------------------
  46422. The C++ standard prescribes that all names that are not dependent on
  46423. template parameters are bound to their present definitions when parsing
  46424. a template function or class.(1) Only names that are dependent are
  46425. looked up at the point of instantiation. For example, consider
  46426. void foo(double);
  46427. struct A {
  46428. template <typename T>
  46429. void f () {
  46430. foo (1); // 1
  46431. int i = N; // 2
  46432. T t;
  46433. t.bar(); // 3
  46434. foo (t); // 4
  46435. }
  46436. static const int N;
  46437. };
  46438. Here, the names 'foo' and 'N' appear in a context that does not depend
  46439. on the type of 'T'. The compiler will thus require that they are
  46440. defined in the context of use in the template, not only before the point
  46441. of instantiation, and will here use '::foo(double)' and 'A::N',
  46442. respectively. In particular, it will convert the integer value to a
  46443. 'double' when passing it to '::foo(double)'.
  46444. Conversely, 'bar' and the call to 'foo' in the fourth marked line are
  46445. used in contexts that do depend on the type of 'T', so they are only
  46446. looked up at the point of instantiation, and you can provide
  46447. declarations for them after declaring the template, but before
  46448. instantiating it. In particular, if you instantiate 'A::f<int>', the
  46449. last line will call an overloaded '::foo(int)' if one was provided, even
  46450. if after the declaration of 'struct A'.
  46451. This distinction between lookup of dependent and non-dependent names is
  46452. called two-stage (or dependent) name lookup. G++ implements it since
  46453. version 3.4.
  46454. Two-stage name lookup sometimes leads to situations with behavior
  46455. different from non-template codes. The most common is probably this:
  46456. template <typename T> struct Base {
  46457. int i;
  46458. };
  46459. template <typename T> struct Derived : public Base<T> {
  46460. int get_i() { return i; }
  46461. };
  46462. In 'get_i()', 'i' is not used in a dependent context, so the compiler
  46463. will look for a name declared at the enclosing namespace scope (which is
  46464. the global scope here). It will not look into the base class, since
  46465. that is dependent and you may declare specializations of 'Base' even
  46466. after declaring 'Derived', so the compiler cannot really know what 'i'
  46467. would refer to. If there is no global variable 'i', then you will get
  46468. an error message.
  46469. In order to make it clear that you want the member of the base class,
  46470. you need to defer lookup until instantiation time, at which the base
  46471. class is known. For this, you need to access 'i' in a dependent
  46472. context, by either using 'this->i' (remember that 'this' is of type
  46473. 'Derived<T>*', so is obviously dependent), or using 'Base<T>::i'.
  46474. Alternatively, 'Base<T>::i' might be brought into scope by a
  46475. 'using'-declaration.
  46476. Another, similar example involves calling member functions of a base
  46477. class:
  46478. template <typename T> struct Base {
  46479. int f();
  46480. };
  46481. template <typename T> struct Derived : Base<T> {
  46482. int g() { return f(); };
  46483. };
  46484. Again, the call to 'f()' is not dependent on template arguments (there
  46485. are no arguments that depend on the type 'T', and it is also not
  46486. otherwise specified that the call should be in a dependent context).
  46487. Thus a global declaration of such a function must be available, since
  46488. the one in the base class is not visible until instantiation time. The
  46489. compiler will consequently produce the following error message:
  46490. x.cc: In member function `int Derived<T>::g()':
  46491. x.cc:6: error: there are no arguments to `f' that depend on a template
  46492. parameter, so a declaration of `f' must be available
  46493. x.cc:6: error: (if you use `-fpermissive', G++ will accept your code, but
  46494. allowing the use of an undeclared name is deprecated)
  46495. To make the code valid either use 'this->f()', or 'Base<T>::f()'.
  46496. Using the '-fpermissive' flag will also let the compiler accept the
  46497. code, by marking all function calls for which no declaration is visible
  46498. at the time of definition of the template for later lookup at
  46499. instantiation time, as if it were a dependent call. We do not recommend
  46500. using '-fpermissive' to work around invalid code, and it will also only
  46501. catch cases where functions in base classes are called, not where
  46502. variables in base classes are used (as in the example above).
  46503. Note that some compilers (including G++ versions prior to 3.4) get
  46504. these examples wrong and accept above code without an error. Those
  46505. compilers do not implement two-stage name lookup correctly.
  46506. ---------- Footnotes ----------
  46507. (1) The C++ standard just uses the term "dependent" for names that
  46508. depend on the type or value of template parameters. This shorter term
  46509. will also be used in the rest of this section.
  46510. 
  46511. File: gcc.info, Node: Temporaries, Next: Copy Assignment, Prev: Name lookup, Up: C++ Misunderstandings
  46512. 14.7.3 Temporaries May Vanish Before You Expect
  46513. -----------------------------------------------
  46514. It is dangerous to use pointers or references to _portions_ of a
  46515. temporary object. The compiler may very well delete the object before
  46516. you expect it to, leaving a pointer to garbage. The most common place
  46517. where this problem crops up is in classes like string classes,
  46518. especially ones that define a conversion function to type 'char *' or
  46519. 'const char *'--which is one reason why the standard 'string' class
  46520. requires you to call the 'c_str' member function. However, any class
  46521. that returns a pointer to some internal structure is potentially subject
  46522. to this problem.
  46523. For example, a program may use a function 'strfunc' that returns
  46524. 'string' objects, and another function 'charfunc' that operates on
  46525. pointers to 'char':
  46526. string strfunc ();
  46527. void charfunc (const char *);
  46528. void
  46529. f ()
  46530. {
  46531. const char *p = strfunc().c_str();
  46532. ...
  46533. charfunc (p);
  46534. ...
  46535. charfunc (p);
  46536. }
  46537. In this situation, it may seem reasonable to save a pointer to the C
  46538. string returned by the 'c_str' member function and use that rather than
  46539. call 'c_str' repeatedly. However, the temporary string created by the
  46540. call to 'strfunc' is destroyed after 'p' is initialized, at which point
  46541. 'p' is left pointing to freed memory.
  46542. Code like this may run successfully under some other compilers,
  46543. particularly obsolete cfront-based compilers that delete temporaries
  46544. along with normal local variables. However, the GNU C++ behavior is
  46545. standard-conforming, so if your program depends on late destruction of
  46546. temporaries it is not portable.
  46547. The safe way to write such code is to give the temporary a name, which
  46548. forces it to remain until the end of the scope of the name. For
  46549. example:
  46550. const string& tmp = strfunc ();
  46551. charfunc (tmp.c_str ());
  46552. 
  46553. File: gcc.info, Node: Copy Assignment, Prev: Temporaries, Up: C++ Misunderstandings
  46554. 14.7.4 Implicit Copy-Assignment for Virtual Bases
  46555. -------------------------------------------------
  46556. When a base class is virtual, only one subobject of the base class
  46557. belongs to each full object. Also, the constructors and destructors are
  46558. invoked only once, and called from the most-derived class. However,
  46559. such objects behave unspecified when being assigned. For example:
  46560. struct Base{
  46561. char *name;
  46562. Base(char *n) : name(strdup(n)){}
  46563. Base& operator= (const Base& other){
  46564. free (name);
  46565. name = strdup (other.name);
  46566. }
  46567. };
  46568. struct A:virtual Base{
  46569. int val;
  46570. A():Base("A"){}
  46571. };
  46572. struct B:virtual Base{
  46573. int bval;
  46574. B():Base("B"){}
  46575. };
  46576. struct Derived:public A, public B{
  46577. Derived():Base("Derived"){}
  46578. };
  46579. void func(Derived &d1, Derived &d2)
  46580. {
  46581. d1 = d2;
  46582. }
  46583. The C++ standard specifies that 'Base::Base' is only called once when
  46584. constructing or copy-constructing a Derived object. It is unspecified
  46585. whether 'Base::operator=' is called more than once when the implicit
  46586. copy-assignment for Derived objects is invoked (as it is inside 'func'
  46587. in the example).
  46588. G++ implements the "intuitive" algorithm for copy-assignment: assign
  46589. all direct bases, then assign all members. In that algorithm, the
  46590. virtual base subobject can be encountered more than once. In the
  46591. example, copying proceeds in the following order: 'val', 'name' (via
  46592. 'strdup'), 'bval', and 'name' again.
  46593. If application code relies on copy-assignment, a user-defined
  46594. copy-assignment operator removes any uncertainties. With such an
  46595. operator, the application can define whether and how the virtual base
  46596. subobject is assigned.
  46597. 
  46598. File: gcc.info, Node: Non-bugs, Next: Warnings and Errors, Prev: C++ Misunderstandings, Up: Trouble
  46599. 14.8 Certain Changes We Don't Want to Make
  46600. ==========================================
  46601. This section lists changes that people frequently request, but which we
  46602. do not make because we think GCC is better without them.
  46603. * Checking the number and type of arguments to a function which has
  46604. an old-fashioned definition and no prototype.
  46605. Such a feature would work only occasionally--only for calls that
  46606. appear in the same file as the called function, following the
  46607. definition. The only way to check all calls reliably is to add a
  46608. prototype for the function. But adding a prototype eliminates the
  46609. motivation for this feature. So the feature is not worthwhile.
  46610. * Warning about using an expression whose type is signed as a shift
  46611. count.
  46612. Shift count operands are probably signed more often than unsigned.
  46613. Warning about this would cause far more annoyance than good.
  46614. * Warning about assigning a signed value to an unsigned variable.
  46615. Such assignments must be very common; warning about them would
  46616. cause more annoyance than good.
  46617. * Warning when a non-void function value is ignored.
  46618. C contains many standard functions that return a value that most
  46619. programs choose to ignore. One obvious example is 'printf'.
  46620. Warning about this practice only leads the defensive programmer to
  46621. clutter programs with dozens of casts to 'void'. Such casts are
  46622. required so frequently that they become visual noise. Writing
  46623. those casts becomes so automatic that they no longer convey useful
  46624. information about the intentions of the programmer. For functions
  46625. where the return value should never be ignored, use the
  46626. 'warn_unused_result' function attribute (*note Function
  46627. Attributes::).
  46628. * Making '-fshort-enums' the default.
  46629. This would cause storage layout to be incompatible with most other
  46630. C compilers. And it doesn't seem very important, given that you
  46631. can get the same result in other ways. The case where it matters
  46632. most is when the enumeration-valued object is inside a structure,
  46633. and in that case you can specify a field width explicitly.
  46634. * Making bit-fields unsigned by default on particular machines where
  46635. "the ABI standard" says to do so.
  46636. The ISO C standard leaves it up to the implementation whether a
  46637. bit-field declared plain 'int' is signed or not. This in effect
  46638. creates two alternative dialects of C.
  46639. The GNU C compiler supports both dialects; you can specify the
  46640. signed dialect with '-fsigned-bitfields' and the unsigned dialect
  46641. with '-funsigned-bitfields'. However, this leaves open the
  46642. question of which dialect to use by default.
  46643. Currently, the preferred dialect makes plain bit-fields signed,
  46644. because this is simplest. Since 'int' is the same as 'signed int'
  46645. in every other context, it is cleanest for them to be the same in
  46646. bit-fields as well.
  46647. Some computer manufacturers have published Application Binary
  46648. Interface standards which specify that plain bit-fields should be
  46649. unsigned. It is a mistake, however, to say anything about this
  46650. issue in an ABI. This is because the handling of plain bit-fields
  46651. distinguishes two dialects of C. Both dialects are meaningful on
  46652. every type of machine. Whether a particular object file was
  46653. compiled using signed bit-fields or unsigned is of no concern to
  46654. other object files, even if they access the same bit-fields in the
  46655. same data structures.
  46656. A given program is written in one or the other of these two
  46657. dialects. The program stands a chance to work on most any machine
  46658. if it is compiled with the proper dialect. It is unlikely to work
  46659. at all if compiled with the wrong dialect.
  46660. Many users appreciate the GNU C compiler because it provides an
  46661. environment that is uniform across machines. These users would be
  46662. inconvenienced if the compiler treated plain bit-fields differently
  46663. on certain machines.
  46664. Occasionally users write programs intended only for a particular
  46665. machine type. On these occasions, the users would benefit if the
  46666. GNU C compiler were to support by default the same dialect as the
  46667. other compilers on that machine. But such applications are rare.
  46668. And users writing a program to run on more than one type of machine
  46669. cannot possibly benefit from this kind of compatibility.
  46670. This is why GCC does and will treat plain bit-fields in the same
  46671. fashion on all types of machines (by default).
  46672. There are some arguments for making bit-fields unsigned by default
  46673. on all machines. If, for example, this becomes a universal de
  46674. facto standard, it would make sense for GCC to go along with it.
  46675. This is something to be considered in the future.
  46676. (Of course, users strongly concerned about portability should
  46677. indicate explicitly in each bit-field whether it is signed or not.
  46678. In this way, they write programs which have the same meaning in
  46679. both C dialects.)
  46680. * Undefining '__STDC__' when '-ansi' is not used.
  46681. Currently, GCC defines '__STDC__' unconditionally. This provides
  46682. good results in practice.
  46683. Programmers normally use conditionals on '__STDC__' to ask whether
  46684. it is safe to use certain features of ISO C, such as function
  46685. prototypes or ISO token concatenation. Since plain 'gcc' supports
  46686. all the features of ISO C, the correct answer to these questions is
  46687. "yes".
  46688. Some users try to use '__STDC__' to check for the availability of
  46689. certain library facilities. This is actually incorrect usage in an
  46690. ISO C program, because the ISO C standard says that a conforming
  46691. freestanding implementation should define '__STDC__' even though it
  46692. does not have the library facilities. 'gcc -ansi -pedantic' is a
  46693. conforming freestanding implementation, and it is therefore
  46694. required to define '__STDC__', even though it does not come with an
  46695. ISO C library.
  46696. Sometimes people say that defining '__STDC__' in a compiler that
  46697. does not completely conform to the ISO C standard somehow violates
  46698. the standard. This is illogical. The standard is a standard for
  46699. compilers that claim to support ISO C, such as 'gcc -ansi'--not for
  46700. other compilers such as plain 'gcc'. Whatever the ISO C standard
  46701. says is relevant to the design of plain 'gcc' without '-ansi' only
  46702. for pragmatic reasons, not as a requirement.
  46703. GCC normally defines '__STDC__' to be 1, and in addition defines
  46704. '__STRICT_ANSI__' if you specify the '-ansi' option, or a '-std'
  46705. option for strict conformance to some version of ISO C. On some
  46706. hosts, system include files use a different convention, where
  46707. '__STDC__' is normally 0, but is 1 if the user specifies strict
  46708. conformance to the C Standard. GCC follows the host convention
  46709. when processing system include files, but when processing user
  46710. files it follows the usual GNU C convention.
  46711. * Undefining '__STDC__' in C++.
  46712. Programs written to compile with C++-to-C translators get the value
  46713. of '__STDC__' that goes with the C compiler that is subsequently
  46714. used. These programs must test '__STDC__' to determine what kind
  46715. of C preprocessor that compiler uses: whether they should
  46716. concatenate tokens in the ISO C fashion or in the traditional
  46717. fashion.
  46718. These programs work properly with GNU C++ if '__STDC__' is defined.
  46719. They would not work otherwise.
  46720. In addition, many header files are written to provide prototypes in
  46721. ISO C but not in traditional C. Many of these header files can
  46722. work without change in C++ provided '__STDC__' is defined. If
  46723. '__STDC__' is not defined, they will all fail, and will all need to
  46724. be changed to test explicitly for C++ as well.
  46725. * Deleting "empty" loops.
  46726. Historically, GCC has not deleted "empty" loops under the
  46727. assumption that the most likely reason you would put one in a
  46728. program is to have a delay, so deleting them will not make real
  46729. programs run any faster.
  46730. However, the rationale here is that optimization of a nonempty loop
  46731. cannot produce an empty one. This held for carefully written C
  46732. compiled with less powerful optimizers but is not always the case
  46733. for carefully written C++ or with more powerful optimizers. Thus
  46734. GCC will remove operations from loops whenever it can determine
  46735. those operations are not externally visible (apart from the time
  46736. taken to execute them, of course). In case the loop can be proved
  46737. to be finite, GCC will also remove the loop itself.
  46738. Be aware of this when performing timing tests, for instance the
  46739. following loop can be completely removed, provided
  46740. 'some_expression' can provably not change any global state.
  46741. {
  46742. int sum = 0;
  46743. int ix;
  46744. for (ix = 0; ix != 10000; ix++)
  46745. sum += some_expression;
  46746. }
  46747. Even though 'sum' is accumulated in the loop, no use is made of
  46748. that summation, so the accumulation can be removed.
  46749. * Making side effects happen in the same order as in some other
  46750. compiler.
  46751. It is never safe to depend on the order of evaluation of side
  46752. effects. For example, a function call like this may very well
  46753. behave differently from one compiler to another:
  46754. void func (int, int);
  46755. int i = 2;
  46756. func (i++, i++);
  46757. There is no guarantee (in either the C or the C++ standard language
  46758. definitions) that the increments will be evaluated in any
  46759. particular order. Either increment might happen first. 'func'
  46760. might get the arguments '2, 3', or it might get '3, 2', or even '2,
  46761. 2'.
  46762. * Making certain warnings into errors by default.
  46763. Some ISO C testsuites report failure when the compiler does not
  46764. produce an error message for a certain program.
  46765. ISO C requires a "diagnostic" message for certain kinds of invalid
  46766. programs, but a warning is defined by GCC to count as a diagnostic.
  46767. If GCC produces a warning but not an error, that is correct ISO C
  46768. support. If testsuites call this "failure", they should be run
  46769. with the GCC option '-pedantic-errors', which will turn these
  46770. warnings into errors.
  46771. 
  46772. File: gcc.info, Node: Warnings and Errors, Prev: Non-bugs, Up: Trouble
  46773. 14.9 Warning Messages and Error Messages
  46774. ========================================
  46775. The GNU compiler can produce two kinds of diagnostics: errors and
  46776. warnings. Each kind has a different purpose:
  46777. "Errors" report problems that make it impossible to compile your
  46778. program. GCC reports errors with the source file name and line
  46779. number where the problem is apparent.
  46780. "Warnings" report other unusual conditions in your code that _may_
  46781. indicate a problem, although compilation can (and does) proceed.
  46782. Warning messages also report the source file name and line number,
  46783. but include the text 'warning:' to distinguish them from error
  46784. messages.
  46785. Warnings may indicate danger points where you should check to make sure
  46786. that your program really does what you intend; or the use of obsolete
  46787. features; or the use of nonstandard features of GNU C or C++. Many
  46788. warnings are issued only if you ask for them, with one of the '-W'
  46789. options (for instance, '-Wall' requests a variety of useful warnings).
  46790. GCC always tries to compile your program if possible; it never
  46791. gratuitously rejects a program whose meaning is clear merely because
  46792. (for instance) it fails to conform to a standard. In some cases,
  46793. however, the C and C++ standards specify that certain extensions are
  46794. forbidden, and a diagnostic _must_ be issued by a conforming compiler.
  46795. The '-pedantic' option tells GCC to issue warnings in such cases;
  46796. '-pedantic-errors' says to make them errors instead. This does not mean
  46797. that _all_ non-ISO constructs get warnings or errors.
  46798. *Note Options to Request or Suppress Warnings: Warning Options, for
  46799. more detail on these and related command-line options.
  46800. 
  46801. File: gcc.info, Node: Bugs, Next: Service, Prev: Trouble, Up: Top
  46802. 15 Reporting Bugs
  46803. *****************
  46804. Your bug reports play an essential role in making GCC reliable.
  46805. When you encounter a problem, the first thing to do is to see if it is
  46806. already known. *Note Trouble::. If it isn't known, then you should
  46807. report the problem.
  46808. * Menu:
  46809. * Criteria: Bug Criteria. Have you really found a bug?
  46810. * Reporting: Bug Reporting. How to report a bug effectively.
  46811. 
  46812. File: gcc.info, Node: Bug Criteria, Next: Bug Reporting, Up: Bugs
  46813. 15.1 Have You Found a Bug?
  46814. ==========================
  46815. If you are not sure whether you have found a bug, here are some
  46816. guidelines:
  46817. * If the compiler gets a fatal signal, for any input whatever, that
  46818. is a compiler bug. Reliable compilers never crash.
  46819. * If the compiler produces invalid assembly code, for any input
  46820. whatever (except an 'asm' statement), that is a compiler bug,
  46821. unless the compiler reports errors (not just warnings) which would
  46822. ordinarily prevent the assembler from being run.
  46823. * If the compiler produces valid assembly code that does not
  46824. correctly execute the input source code, that is a compiler bug.
  46825. However, you must double-check to make sure, because you may have a
  46826. program whose behavior is undefined, which happened by chance to
  46827. give the desired results with another C or C++ compiler.
  46828. For example, in many nonoptimizing compilers, you can write 'x;' at
  46829. the end of a function instead of 'return x;', with the same
  46830. results. But the value of the function is undefined if 'return' is
  46831. omitted; it is not a bug when GCC produces different results.
  46832. Problems often result from expressions with two increment
  46833. operators, as in 'f (*p++, *p++)'. Your previous compiler might
  46834. have interpreted that expression the way you intended; GCC might
  46835. interpret it another way. Neither compiler is wrong. The bug is
  46836. in your code.
  46837. After you have localized the error to a single source line, it
  46838. should be easy to check for these things. If your program is
  46839. correct and well defined, you have found a compiler bug.
  46840. * If the compiler produces an error message for valid input, that is
  46841. a compiler bug.
  46842. * If the compiler does not produce an error message for invalid
  46843. input, that is a compiler bug. However, you should note that your
  46844. idea of "invalid input" might be someone else's idea of "an
  46845. extension" or "support for traditional practice".
  46846. * If you are an experienced user of one of the languages GCC
  46847. supports, your suggestions for improvement of GCC are welcome in
  46848. any case.
  46849. 
  46850. File: gcc.info, Node: Bug Reporting, Prev: Bug Criteria, Up: Bugs
  46851. 15.2 How and Where to Report Bugs
  46852. =================================
  46853. Bugs should be reported to the bug database at
  46854. <https://gcc.gnu.org/bugs/>.
  46855. 
  46856. File: gcc.info, Node: Service, Next: Contributing, Prev: Bugs, Up: Top
  46857. 16 How To Get Help with GCC
  46858. ***************************
  46859. If you need help installing, using or changing GCC, there are two ways
  46860. to find it:
  46861. * Send a message to a suitable network mailing list. First try
  46862. <gcc-help@gcc.gnu.org> (for help installing or using GCC), and if
  46863. that brings no response, try <gcc@gcc.gnu.org>. For help changing
  46864. GCC, ask <gcc@gcc.gnu.org>. If you think you have found a bug in
  46865. GCC, please report it following the instructions at *note Bug
  46866. Reporting::.
  46867. * Look in the service directory for someone who might help you for a
  46868. fee. The service directory is found at
  46869. <https://www.fsf.org/resources/service>.
  46870. For further information, see <http://gcc.gnu.org/faq.html#support>.
  46871. 
  46872. File: gcc.info, Node: Contributing, Next: Funding, Prev: Service, Up: Top
  46873. 17 Contributing to GCC Development
  46874. **********************************
  46875. If you would like to help pretest GCC releases to assure they work well,
  46876. current development sources are available via Git (see
  46877. <http://gcc.gnu.org/git.html>). Source and binary snapshots are also
  46878. available for FTP; see <http://gcc.gnu.org/snapshots.html>.
  46879. If you would like to work on improvements to GCC, please read the
  46880. advice at these URLs:
  46881. <http://gcc.gnu.org/contribute.html>
  46882. <http://gcc.gnu.org/contributewhy.html>
  46883. for information on how to make useful contributions and avoid
  46884. duplication of effort. Suggested projects are listed at
  46885. <http://gcc.gnu.org/projects/>.
  46886. 
  46887. File: gcc.info, Node: Funding, Next: GNU Project, Prev: Contributing, Up: Top
  46888. Funding Free Software
  46889. *********************
  46890. If you want to have more free software a few years from now, it makes
  46891. sense for you to help encourage people to contribute funds for its
  46892. development. The most effective approach known is to encourage
  46893. commercial redistributors to donate.
  46894. Users of free software systems can boost the pace of development by
  46895. encouraging for-a-fee distributors to donate part of their selling price
  46896. to free software developers--the Free Software Foundation, and others.
  46897. The way to convince distributors to do this is to demand it and expect
  46898. it from them. So when you compare distributors, judge them partly by
  46899. how much they give to free software development. Show distributors they
  46900. must compete to be the one who gives the most.
  46901. To make this approach work, you must insist on numbers that you can
  46902. compare, such as, "We will donate ten dollars to the Frobnitz project
  46903. for each disk sold." Don't be satisfied with a vague promise, such as
  46904. "A portion of the profits are donated," since it doesn't give a basis
  46905. for comparison.
  46906. Even a precise fraction "of the profits from this disk" is not very
  46907. meaningful, since creative accounting and unrelated business decisions
  46908. can greatly alter what fraction of the sales price counts as profit. If
  46909. the price you pay is $50, ten percent of the profit is probably less
  46910. than a dollar; it might be a few cents, or nothing at all.
  46911. Some redistributors do development work themselves. This is useful
  46912. too; but to keep everyone honest, you need to inquire how much they do,
  46913. and what kind. Some kinds of development make much more long-term
  46914. difference than others. For example, maintaining a separate version of
  46915. a program contributes very little; maintaining the standard version of a
  46916. program for the whole community contributes much. Easy new ports
  46917. contribute little, since someone else would surely do them; difficult
  46918. ports such as adding a new CPU to the GNU Compiler Collection contribute
  46919. more; major new features or packages contribute the most.
  46920. By establishing the idea that supporting further development is "the
  46921. proper thing to do" when distributing free software for a fee, we can
  46922. assure a steady flow of resources into making more free software.
  46923. Copyright (C) 1994 Free Software Foundation, Inc.
  46924. Verbatim copying and redistribution of this section is permitted
  46925. without royalty; alteration is not permitted.
  46926. 
  46927. File: gcc.info, Node: GNU Project, Next: Copying, Prev: Funding, Up: Top
  46928. The GNU Project and GNU/Linux
  46929. *****************************
  46930. The GNU Project was launched in 1984 to develop a complete Unix-like
  46931. operating system which is free software: the GNU system. (GNU is a
  46932. recursive acronym for "GNU's Not Unix"; it is pronounced "guh-NEW".)
  46933. Variants of the GNU operating system, which use the kernel Linux, are
  46934. now widely used; though these systems are often referred to as "Linux",
  46935. they are more accurately called GNU/Linux systems.
  46936. For more information, see:
  46937. <http://www.gnu.org/>
  46938. <http://www.gnu.org/gnu/linux-and-gnu.html>
  46939. 
  46940. File: gcc.info, Node: Copying, Next: GNU Free Documentation License, Prev: GNU Project, Up: Top
  46941. GNU General Public License
  46942. **************************
  46943. Version 3, 29 June 2007
  46944. Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
  46945. Everyone is permitted to copy and distribute verbatim copies of this
  46946. license document, but changing it is not allowed.
  46947. Preamble
  46948. ========
  46949. The GNU General Public License is a free, copyleft license for software
  46950. and other kinds of works.
  46951. The licenses for most software and other practical works are designed
  46952. to take away your freedom to share and change the works. By contrast,
  46953. the GNU General Public License is intended to guarantee your freedom to
  46954. share and change all versions of a program-to make sure it remains free
  46955. software for all its users. We, the Free Software Foundation, use the
  46956. GNU General Public License for most of our software; it applies also to
  46957. any other work released this way by its authors. You can apply it to
  46958. your programs, too.
  46959. When we speak of free software, we are referring to freedom, not price.
  46960. Our General Public Licenses are designed to make sure that you have the
  46961. freedom to distribute copies of free software (and charge for them if
  46962. you wish), that you receive source code or can get it if you want it,
  46963. that you can change the software or use pieces of it in new free
  46964. programs, and that you know you can do these things.
  46965. To protect your rights, we need to prevent others from denying you
  46966. these rights or asking you to surrender the rights. Therefore, you have
  46967. certain responsibilities if you distribute copies of the software, or if
  46968. you modify it: responsibilities to respect the freedom of others.
  46969. For example, if you distribute copies of such a program, whether gratis
  46970. or for a fee, you must pass on to the recipients the same freedoms that
  46971. you received. You must make sure that they, too, receive or can get the
  46972. source code. And you must show them these terms so they know their
  46973. rights.
  46974. Developers that use the GNU GPL protect your rights with two steps: (1)
  46975. assert copyright on the software, and (2) offer you this License giving
  46976. you legal permission to copy, distribute and/or modify it.
  46977. For the developers' and authors' protection, the GPL clearly explains
  46978. that there is no warranty for this free software. For both users' and
  46979. authors' sake, the GPL requires that modified versions be marked as
  46980. changed, so that their problems will not be attributed erroneously to
  46981. authors of previous versions.
  46982. Some devices are designed to deny users access to install or run
  46983. modified versions of the software inside them, although the manufacturer
  46984. can do so. This is fundamentally incompatible with the aim of
  46985. protecting users' freedom to change the software. The systematic
  46986. pattern of such abuse occurs in the area of products for individuals to
  46987. use, which is precisely where it is most unacceptable. Therefore, we
  46988. have designed this version of the GPL to prohibit the practice for those
  46989. products. If such problems arise substantially in other domains, we
  46990. stand ready to extend this provision to those domains in future versions
  46991. of the GPL, as needed to protect the freedom of users.
  46992. Finally, every program is threatened constantly by software patents.
  46993. States should not allow patents to restrict development and use of
  46994. software on general-purpose computers, but in those that do, we wish to
  46995. avoid the special danger that patents applied to a free program could
  46996. make it effectively proprietary. To prevent this, the GPL assures that
  46997. patents cannot be used to render the program non-free.
  46998. The precise terms and conditions for copying, distribution and
  46999. modification follow.
  47000. TERMS AND CONDITIONS
  47001. ====================
  47002. 0. Definitions.
  47003. "This License" refers to version 3 of the GNU General Public
  47004. License.
  47005. "Copyright" also means copyright-like laws that apply to other
  47006. kinds of works, such as semiconductor masks.
  47007. "The Program" refers to any copyrightable work licensed under this
  47008. License. Each licensee is addressed as "you". "Licensees" and
  47009. "recipients" may be individuals or organizations.
  47010. To "modify" a work means to copy from or adapt all or part of the
  47011. work in a fashion requiring copyright permission, other than the
  47012. making of an exact copy. The resulting work is called a "modified
  47013. version" of the earlier work or a work "based on" the earlier work.
  47014. A "covered work" means either the unmodified Program or a work
  47015. based on the Program.
  47016. To "propagate" a work means to do anything with it that, without
  47017. permission, would make you directly or secondarily liable for
  47018. infringement under applicable copyright law, except executing it on
  47019. a computer or modifying a private copy. Propagation includes
  47020. copying, distribution (with or without modification), making
  47021. available to the public, and in some countries other activities as
  47022. well.
  47023. To "convey" a work means any kind of propagation that enables other
  47024. parties to make or receive copies. Mere interaction with a user
  47025. through a computer network, with no transfer of a copy, is not
  47026. conveying.
  47027. An interactive user interface displays "Appropriate Legal Notices"
  47028. to the extent that it includes a convenient and prominently visible
  47029. feature that (1) displays an appropriate copyright notice, and (2)
  47030. tells the user that there is no warranty for the work (except to
  47031. the extent that warranties are provided), that licensees may convey
  47032. the work under this License, and how to view a copy of this
  47033. License. If the interface presents a list of user commands or
  47034. options, such as a menu, a prominent item in the list meets this
  47035. criterion.
  47036. 1. Source Code.
  47037. The "source code" for a work means the preferred form of the work
  47038. for making modifications to it. "Object code" means any non-source
  47039. form of a work.
  47040. A "Standard Interface" means an interface that either is an
  47041. official standard defined by a recognized standards body, or, in
  47042. the case of interfaces specified for a particular programming
  47043. language, one that is widely used among developers working in that
  47044. language.
  47045. The "System Libraries" of an executable work include anything,
  47046. other than the work as a whole, that (a) is included in the normal
  47047. form of packaging a Major Component, but which is not part of that
  47048. Major Component, and (b) serves only to enable use of the work with
  47049. that Major Component, or to implement a Standard Interface for
  47050. which an implementation is available to the public in source code
  47051. form. A "Major Component", in this context, means a major
  47052. essential component (kernel, window system, and so on) of the
  47053. specific operating system (if any) on which the executable work
  47054. runs, or a compiler used to produce the work, or an object code
  47055. interpreter used to run it.
  47056. The "Corresponding Source" for a work in object code form means all
  47057. the source code needed to generate, install, and (for an executable
  47058. work) run the object code and to modify the work, including scripts
  47059. to control those activities. However, it does not include the
  47060. work's System Libraries, or general-purpose tools or generally
  47061. available free programs which are used unmodified in performing
  47062. those activities but which are not part of the work. For example,
  47063. Corresponding Source includes interface definition files associated
  47064. with source files for the work, and the source code for shared
  47065. libraries and dynamically linked subprograms that the work is
  47066. specifically designed to require, such as by intimate data
  47067. communication or control flow between those subprograms and other
  47068. parts of the work.
  47069. The Corresponding Source need not include anything that users can
  47070. regenerate automatically from other parts of the Corresponding
  47071. Source.
  47072. The Corresponding Source for a work in source code form is that
  47073. same work.
  47074. 2. Basic Permissions.
  47075. All rights granted under this License are granted for the term of
  47076. copyright on the Program, and are irrevocable provided the stated
  47077. conditions are met. This License explicitly affirms your unlimited
  47078. permission to run the unmodified Program. The output from running
  47079. a covered work is covered by this License only if the output, given
  47080. its content, constitutes a covered work. This License acknowledges
  47081. your rights of fair use or other equivalent, as provided by
  47082. copyright law.
  47083. You may make, run and propagate covered works that you do not
  47084. convey, without conditions so long as your license otherwise
  47085. remains in force. You may convey covered works to others for the
  47086. sole purpose of having them make modifications exclusively for you,
  47087. or provide you with facilities for running those works, provided
  47088. that you comply with the terms of this License in conveying all
  47089. material for which you do not control copyright. Those thus making
  47090. or running the covered works for you must do so exclusively on your
  47091. behalf, under your direction and control, on terms that prohibit
  47092. them from making any copies of your copyrighted material outside
  47093. their relationship with you.
  47094. Conveying under any other circumstances is permitted solely under
  47095. the conditions stated below. Sublicensing is not allowed; section
  47096. 10 makes it unnecessary.
  47097. 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
  47098. No covered work shall be deemed part of an effective technological
  47099. measure under any applicable law fulfilling obligations under
  47100. article 11 of the WIPO copyright treaty adopted on 20 December
  47101. 1996, or similar laws prohibiting or restricting circumvention of
  47102. such measures.
  47103. When you convey a covered work, you waive any legal power to forbid
  47104. circumvention of technological measures to the extent such
  47105. circumvention is effected by exercising rights under this License
  47106. with respect to the covered work, and you disclaim any intention to
  47107. limit operation or modification of the work as a means of
  47108. enforcing, against the work's users, your or third parties' legal
  47109. rights to forbid circumvention of technological measures.
  47110. 4. Conveying Verbatim Copies.
  47111. You may convey verbatim copies of the Program's source code as you
  47112. receive it, in any medium, provided that you conspicuously and
  47113. appropriately publish on each copy an appropriate copyright notice;
  47114. keep intact all notices stating that this License and any
  47115. non-permissive terms added in accord with section 7 apply to the
  47116. code; keep intact all notices of the absence of any warranty; and
  47117. give all recipients a copy of this License along with the Program.
  47118. You may charge any price or no price for each copy that you convey,
  47119. and you may offer support or warranty protection for a fee.
  47120. 5. Conveying Modified Source Versions.
  47121. You may convey a work based on the Program, or the modifications to
  47122. produce it from the Program, in the form of source code under the
  47123. terms of section 4, provided that you also meet all of these
  47124. conditions:
  47125. a. The work must carry prominent notices stating that you
  47126. modified it, and giving a relevant date.
  47127. b. The work must carry prominent notices stating that it is
  47128. released under this License and any conditions added under
  47129. section 7. This requirement modifies the requirement in
  47130. section 4 to "keep intact all notices".
  47131. c. You must license the entire work, as a whole, under this
  47132. License to anyone who comes into possession of a copy. This
  47133. License will therefore apply, along with any applicable
  47134. section 7 additional terms, to the whole of the work, and all
  47135. its parts, regardless of how they are packaged. This License
  47136. gives no permission to license the work in any other way, but
  47137. it does not invalidate such permission if you have separately
  47138. received it.
  47139. d. If the work has interactive user interfaces, each must display
  47140. Appropriate Legal Notices; however, if the Program has
  47141. interactive interfaces that do not display Appropriate Legal
  47142. Notices, your work need not make them do so.
  47143. A compilation of a covered work with other separate and independent
  47144. works, which are not by their nature extensions of the covered
  47145. work, and which are not combined with it such as to form a larger
  47146. program, in or on a volume of a storage or distribution medium, is
  47147. called an "aggregate" if the compilation and its resulting
  47148. copyright are not used to limit the access or legal rights of the
  47149. compilation's users beyond what the individual works permit.
  47150. Inclusion of a covered work in an aggregate does not cause this
  47151. License to apply to the other parts of the aggregate.
  47152. 6. Conveying Non-Source Forms.
  47153. You may convey a covered work in object code form under the terms
  47154. of sections 4 and 5, provided that you also convey the
  47155. machine-readable Corresponding Source under the terms of this
  47156. License, in one of these ways:
  47157. a. Convey the object code in, or embodied in, a physical product
  47158. (including a physical distribution medium), accompanied by the
  47159. Corresponding Source fixed on a durable physical medium
  47160. customarily used for software interchange.
  47161. b. Convey the object code in, or embodied in, a physical product
  47162. (including a physical distribution medium), accompanied by a
  47163. written offer, valid for at least three years and valid for as
  47164. long as you offer spare parts or customer support for that
  47165. product model, to give anyone who possesses the object code
  47166. either (1) a copy of the Corresponding Source for all the
  47167. software in the product that is covered by this License, on a
  47168. durable physical medium customarily used for software
  47169. interchange, for a price no more than your reasonable cost of
  47170. physically performing this conveying of source, or (2) access
  47171. to copy the Corresponding Source from a network server at no
  47172. charge.
  47173. c. Convey individual copies of the object code with a copy of the
  47174. written offer to provide the Corresponding Source. This
  47175. alternative is allowed only occasionally and noncommercially,
  47176. and only if you received the object code with such an offer,
  47177. in accord with subsection 6b.
  47178. d. Convey the object code by offering access from a designated
  47179. place (gratis or for a charge), and offer equivalent access to
  47180. the Corresponding Source in the same way through the same
  47181. place at no further charge. You need not require recipients
  47182. to copy the Corresponding Source along with the object code.
  47183. If the place to copy the object code is a network server, the
  47184. Corresponding Source may be on a different server (operated by
  47185. you or a third party) that supports equivalent copying
  47186. facilities, provided you maintain clear directions next to the
  47187. object code saying where to find the Corresponding Source.
  47188. Regardless of what server hosts the Corresponding Source, you
  47189. remain obligated to ensure that it is available for as long as
  47190. needed to satisfy these requirements.
  47191. e. Convey the object code using peer-to-peer transmission,
  47192. provided you inform other peers where the object code and
  47193. Corresponding Source of the work are being offered to the
  47194. general public at no charge under subsection 6d.
  47195. A separable portion of the object code, whose source code is
  47196. excluded from the Corresponding Source as a System Library, need
  47197. not be included in conveying the object code work.
  47198. A "User Product" is either (1) a "consumer product", which means
  47199. any tangible personal property which is normally used for personal,
  47200. family, or household purposes, or (2) anything designed or sold for
  47201. incorporation into a dwelling. In determining whether a product is
  47202. a consumer product, doubtful cases shall be resolved in favor of
  47203. coverage. For a particular product received by a particular user,
  47204. "normally used" refers to a typical or common use of that class of
  47205. product, regardless of the status of the particular user or of the
  47206. way in which the particular user actually uses, or expects or is
  47207. expected to use, the product. A product is a consumer product
  47208. regardless of whether the product has substantial commercial,
  47209. industrial or non-consumer uses, unless such uses represent the
  47210. only significant mode of use of the product.
  47211. "Installation Information" for a User Product means any methods,
  47212. procedures, authorization keys, or other information required to
  47213. install and execute modified versions of a covered work in that
  47214. User Product from a modified version of its Corresponding Source.
  47215. The information must suffice to ensure that the continued
  47216. functioning of the modified object code is in no case prevented or
  47217. interfered with solely because modification has been made.
  47218. If you convey an object code work under this section in, or with,
  47219. or specifically for use in, a User Product, and the conveying
  47220. occurs as part of a transaction in which the right of possession
  47221. and use of the User Product is transferred to the recipient in
  47222. perpetuity or for a fixed term (regardless of how the transaction
  47223. is characterized), the Corresponding Source conveyed under this
  47224. section must be accompanied by the Installation Information. But
  47225. this requirement does not apply if neither you nor any third party
  47226. retains the ability to install modified object code on the User
  47227. Product (for example, the work has been installed in ROM).
  47228. The requirement to provide Installation Information does not
  47229. include a requirement to continue to provide support service,
  47230. warranty, or updates for a work that has been modified or installed
  47231. by the recipient, or for the User Product in which it has been
  47232. modified or installed. Access to a network may be denied when the
  47233. modification itself materially and adversely affects the operation
  47234. of the network or violates the rules and protocols for
  47235. communication across the network.
  47236. Corresponding Source conveyed, and Installation Information
  47237. provided, in accord with this section must be in a format that is
  47238. publicly documented (and with an implementation available to the
  47239. public in source code form), and must require no special password
  47240. or key for unpacking, reading or copying.
  47241. 7. Additional Terms.
  47242. "Additional permissions" are terms that supplement the terms of
  47243. this License by making exceptions from one or more of its
  47244. conditions. Additional permissions that are applicable to the
  47245. entire Program shall be treated as though they were included in
  47246. this License, to the extent that they are valid under applicable
  47247. law. If additional permissions apply only to part of the Program,
  47248. that part may be used separately under those permissions, but the
  47249. entire Program remains governed by this License without regard to
  47250. the additional permissions.
  47251. When you convey a copy of a covered work, you may at your option
  47252. remove any additional permissions from that copy, or from any part
  47253. of it. (Additional permissions may be written to require their own
  47254. removal in certain cases when you modify the work.) You may place
  47255. additional permissions on material, added by you to a covered work,
  47256. for which you have or can give appropriate copyright permission.
  47257. Notwithstanding any other provision of this License, for material
  47258. you add to a covered work, you may (if authorized by the copyright
  47259. holders of that material) supplement the terms of this License with
  47260. terms:
  47261. a. Disclaiming warranty or limiting liability differently from
  47262. the terms of sections 15 and 16 of this License; or
  47263. b. Requiring preservation of specified reasonable legal notices
  47264. or author attributions in that material or in the Appropriate
  47265. Legal Notices displayed by works containing it; or
  47266. c. Prohibiting misrepresentation of the origin of that material,
  47267. or requiring that modified versions of such material be marked
  47268. in reasonable ways as different from the original version; or
  47269. d. Limiting the use for publicity purposes of names of licensors
  47270. or authors of the material; or
  47271. e. Declining to grant rights under trademark law for use of some
  47272. trade names, trademarks, or service marks; or
  47273. f. Requiring indemnification of licensors and authors of that
  47274. material by anyone who conveys the material (or modified
  47275. versions of it) with contractual assumptions of liability to
  47276. the recipient, for any liability that these contractual
  47277. assumptions directly impose on those licensors and authors.
  47278. All other non-permissive additional terms are considered "further
  47279. restrictions" within the meaning of section 10. If the Program as
  47280. you received it, or any part of it, contains a notice stating that
  47281. it is governed by this License along with a term that is a further
  47282. restriction, you may remove that term. If a license document
  47283. contains a further restriction but permits relicensing or conveying
  47284. under this License, you may add to a covered work material governed
  47285. by the terms of that license document, provided that the further
  47286. restriction does not survive such relicensing or conveying.
  47287. If you add terms to a covered work in accord with this section, you
  47288. must place, in the relevant source files, a statement of the
  47289. additional terms that apply to those files, or a notice indicating
  47290. where to find the applicable terms.
  47291. Additional terms, permissive or non-permissive, may be stated in
  47292. the form of a separately written license, or stated as exceptions;
  47293. the above requirements apply either way.
  47294. 8. Termination.
  47295. You may not propagate or modify a covered work except as expressly
  47296. provided under this License. Any attempt otherwise to propagate or
  47297. modify it is void, and will automatically terminate your rights
  47298. under this License (including any patent licenses granted under the
  47299. third paragraph of section 11).
  47300. However, if you cease all violation of this License, then your
  47301. license from a particular copyright holder is reinstated (a)
  47302. provisionally, unless and until the copyright holder explicitly and
  47303. finally terminates your license, and (b) permanently, if the
  47304. copyright holder fails to notify you of the violation by some
  47305. reasonable means prior to 60 days after the cessation.
  47306. Moreover, your license from a particular copyright holder is
  47307. reinstated permanently if the copyright holder notifies you of the
  47308. violation by some reasonable means, this is the first time you have
  47309. received notice of violation of this License (for any work) from
  47310. that copyright holder, and you cure the violation prior to 30 days
  47311. after your receipt of the notice.
  47312. Termination of your rights under this section does not terminate
  47313. the licenses of parties who have received copies or rights from you
  47314. under this License. If your rights have been terminated and not
  47315. permanently reinstated, you do not qualify to receive new licenses
  47316. for the same material under section 10.
  47317. 9. Acceptance Not Required for Having Copies.
  47318. You are not required to accept this License in order to receive or
  47319. run a copy of the Program. Ancillary propagation of a covered work
  47320. occurring solely as a consequence of using peer-to-peer
  47321. transmission to receive a copy likewise does not require
  47322. acceptance. However, nothing other than this License grants you
  47323. permission to propagate or modify any covered work. These actions
  47324. infringe copyright if you do not accept this License. Therefore,
  47325. by modifying or propagating a covered work, you indicate your
  47326. acceptance of this License to do so.
  47327. 10. Automatic Licensing of Downstream Recipients.
  47328. Each time you convey a covered work, the recipient automatically
  47329. receives a license from the original licensors, to run, modify and
  47330. propagate that work, subject to this License. You are not
  47331. responsible for enforcing compliance by third parties with this
  47332. License.
  47333. An "entity transaction" is a transaction transferring control of an
  47334. organization, or substantially all assets of one, or subdividing an
  47335. organization, or merging organizations. If propagation of a
  47336. covered work results from an entity transaction, each party to that
  47337. transaction who receives a copy of the work also receives whatever
  47338. licenses to the work the party's predecessor in interest had or
  47339. could give under the previous paragraph, plus a right to possession
  47340. of the Corresponding Source of the work from the predecessor in
  47341. interest, if the predecessor has it or can get it with reasonable
  47342. efforts.
  47343. You may not impose any further restrictions on the exercise of the
  47344. rights granted or affirmed under this License. For example, you
  47345. may not impose a license fee, royalty, or other charge for exercise
  47346. of rights granted under this License, and you may not initiate
  47347. litigation (including a cross-claim or counterclaim in a lawsuit)
  47348. alleging that any patent claim is infringed by making, using,
  47349. selling, offering for sale, or importing the Program or any portion
  47350. of it.
  47351. 11. Patents.
  47352. A "contributor" is a copyright holder who authorizes use under this
  47353. License of the Program or a work on which the Program is based.
  47354. The work thus licensed is called the contributor's "contributor
  47355. version".
  47356. A contributor's "essential patent claims" are all patent claims
  47357. owned or controlled by the contributor, whether already acquired or
  47358. hereafter acquired, that would be infringed by some manner,
  47359. permitted by this License, of making, using, or selling its
  47360. contributor version, but do not include claims that would be
  47361. infringed only as a consequence of further modification of the
  47362. contributor version. For purposes of this definition, "control"
  47363. includes the right to grant patent sublicenses in a manner
  47364. consistent with the requirements of this License.
  47365. Each contributor grants you a non-exclusive, worldwide,
  47366. royalty-free patent license under the contributor's essential
  47367. patent claims, to make, use, sell, offer for sale, import and
  47368. otherwise run, modify and propagate the contents of its contributor
  47369. version.
  47370. In the following three paragraphs, a "patent license" is any
  47371. express agreement or commitment, however denominated, not to
  47372. enforce a patent (such as an express permission to practice a
  47373. patent or covenant not to sue for patent infringement). To "grant"
  47374. such a patent license to a party means to make such an agreement or
  47375. commitment not to enforce a patent against the party.
  47376. If you convey a covered work, knowingly relying on a patent
  47377. license, and the Corresponding Source of the work is not available
  47378. for anyone to copy, free of charge and under the terms of this
  47379. License, through a publicly available network server or other
  47380. readily accessible means, then you must either (1) cause the
  47381. Corresponding Source to be so available, or (2) arrange to deprive
  47382. yourself of the benefit of the patent license for this particular
  47383. work, or (3) arrange, in a manner consistent with the requirements
  47384. of this License, to extend the patent license to downstream
  47385. recipients. "Knowingly relying" means you have actual knowledge
  47386. that, but for the patent license, your conveying the covered work
  47387. in a country, or your recipient's use of the covered work in a
  47388. country, would infringe one or more identifiable patents in that
  47389. country that you have reason to believe are valid.
  47390. If, pursuant to or in connection with a single transaction or
  47391. arrangement, you convey, or propagate by procuring conveyance of, a
  47392. covered work, and grant a patent license to some of the parties
  47393. receiving the covered work authorizing them to use, propagate,
  47394. modify or convey a specific copy of the covered work, then the
  47395. patent license you grant is automatically extended to all
  47396. recipients of the covered work and works based on it.
  47397. A patent license is "discriminatory" if it does not include within
  47398. the scope of its coverage, prohibits the exercise of, or is
  47399. conditioned on the non-exercise of one or more of the rights that
  47400. are specifically granted under this License. You may not convey a
  47401. covered work if you are a party to an arrangement with a third
  47402. party that is in the business of distributing software, under which
  47403. you make payment to the third party based on the extent of your
  47404. activity of conveying the work, and under which the third party
  47405. grants, to any of the parties who would receive the covered work
  47406. from you, a discriminatory patent license (a) in connection with
  47407. copies of the covered work conveyed by you (or copies made from
  47408. those copies), or (b) primarily for and in connection with specific
  47409. products or compilations that contain the covered work, unless you
  47410. entered into that arrangement, or that patent license was granted,
  47411. prior to 28 March 2007.
  47412. Nothing in this License shall be construed as excluding or limiting
  47413. any implied license or other defenses to infringement that may
  47414. otherwise be available to you under applicable patent law.
  47415. 12. No Surrender of Others' Freedom.
  47416. If conditions are imposed on you (whether by court order, agreement
  47417. or otherwise) that contradict the conditions of this License, they
  47418. do not excuse you from the conditions of this License. If you
  47419. cannot convey a covered work so as to satisfy simultaneously your
  47420. obligations under this License and any other pertinent obligations,
  47421. then as a consequence you may not convey it at all. For example,
  47422. if you agree to terms that obligate you to collect a royalty for
  47423. further conveying from those to whom you convey the Program, the
  47424. only way you could satisfy both those terms and this License would
  47425. be to refrain entirely from conveying the Program.
  47426. 13. Use with the GNU Affero General Public License.
  47427. Notwithstanding any other provision of this License, you have
  47428. permission to link or combine any covered work with a work licensed
  47429. under version 3 of the GNU Affero General Public License into a
  47430. single combined work, and to convey the resulting work. The terms
  47431. of this License will continue to apply to the part which is the
  47432. covered work, but the special requirements of the GNU Affero
  47433. General Public License, section 13, concerning interaction through
  47434. a network will apply to the combination as such.
  47435. 14. Revised Versions of this License.
  47436. The Free Software Foundation may publish revised and/or new
  47437. versions of the GNU General Public License from time to time. Such
  47438. new versions will be similar in spirit to the present version, but
  47439. may differ in detail to address new problems or concerns.
  47440. Each version is given a distinguishing version number. If the
  47441. Program specifies that a certain numbered version of the GNU
  47442. General Public License "or any later version" applies to it, you
  47443. have the option of following the terms and conditions either of
  47444. that numbered version or of any later version published by the Free
  47445. Software Foundation. If the Program does not specify a version
  47446. number of the GNU General Public License, you may choose any
  47447. version ever published by the Free Software Foundation.
  47448. If the Program specifies that a proxy can decide which future
  47449. versions of the GNU General Public License can be used, that
  47450. proxy's public statement of acceptance of a version permanently
  47451. authorizes you to choose that version for the Program.
  47452. Later license versions may give you additional or different
  47453. permissions. However, no additional obligations are imposed on any
  47454. author or copyright holder as a result of your choosing to follow a
  47455. later version.
  47456. 15. Disclaimer of Warranty.
  47457. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
  47458. APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE
  47459. COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS"
  47460. WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
  47461. INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  47462. MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE
  47463. RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.
  47464. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
  47465. NECESSARY SERVICING, REPAIR OR CORRECTION.
  47466. 16. Limitation of Liability.
  47467. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
  47468. WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES
  47469. AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR
  47470. DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
  47471. CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE
  47472. THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA
  47473. BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
  47474. PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
  47475. PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF
  47476. THE POSSIBILITY OF SUCH DAMAGES.
  47477. 17. Interpretation of Sections 15 and 16.
  47478. If the disclaimer of warranty and limitation of liability provided
  47479. above cannot be given local legal effect according to their terms,
  47480. reviewing courts shall apply local law that most closely
  47481. approximates an absolute waiver of all civil liability in
  47482. connection with the Program, unless a warranty or assumption of
  47483. liability accompanies a copy of the Program in return for a fee.
  47484. END OF TERMS AND CONDITIONS
  47485. ===========================
  47486. How to Apply These Terms to Your New Programs
  47487. =============================================
  47488. If you develop a new program, and you want it to be of the greatest
  47489. possible use to the public, the best way to achieve this is to make it
  47490. free software which everyone can redistribute and change under these
  47491. terms.
  47492. To do so, attach the following notices to the program. It is safest to
  47493. attach them to the start of each source file to most effectively state
  47494. the exclusion of warranty; and each file should have at least the
  47495. "copyright" line and a pointer to where the full notice is found.
  47496. ONE LINE TO GIVE THE PROGRAM'S NAME AND A BRIEF IDEA OF WHAT IT DOES.
  47497. Copyright (C) YEAR NAME OF AUTHOR
  47498. This program is free software: you can redistribute it and/or modify
  47499. it under the terms of the GNU General Public License as published by
  47500. the Free Software Foundation, either version 3 of the License, or (at
  47501. your option) any later version.
  47502. This program is distributed in the hope that it will be useful, but
  47503. WITHOUT ANY WARRANTY; without even the implied warranty of
  47504. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  47505. General Public License for more details.
  47506. You should have received a copy of the GNU General Public License
  47507. along with this program. If not, see <http://www.gnu.org/licenses/>.
  47508. Also add information on how to contact you by electronic and paper
  47509. mail.
  47510. If the program does terminal interaction, make it output a short notice
  47511. like this when it starts in an interactive mode:
  47512. PROGRAM Copyright (C) YEAR NAME OF AUTHOR
  47513. This program comes with ABSOLUTELY NO WARRANTY; for details type 'show w'.
  47514. This is free software, and you are welcome to redistribute it
  47515. under certain conditions; type 'show c' for details.
  47516. The hypothetical commands 'show w' and 'show c' should show the
  47517. appropriate parts of the General Public License. Of course, your
  47518. program's commands might be different; for a GUI interface, you would
  47519. use an "about box".
  47520. You should also get your employer (if you work as a programmer) or
  47521. school, if any, to sign a "copyright disclaimer" for the program, if
  47522. necessary. For more information on this, and how to apply and follow
  47523. the GNU GPL, see <http://www.gnu.org/licenses/>.
  47524. The GNU General Public License does not permit incorporating your
  47525. program into proprietary programs. If your program is a subroutine
  47526. library, you may consider it more useful to permit linking proprietary
  47527. applications with the library. If this is what you want to do, use the
  47528. GNU Lesser General Public License instead of this License. But first,
  47529. please read <https://www.gnu.org/licenses/why-not-lgpl.html>.
  47530. 
  47531. File: gcc.info, Node: GNU Free Documentation License, Next: Contributors, Prev: Copying, Up: Top
  47532. GNU Free Documentation License
  47533. ******************************
  47534. Version 1.3, 3 November 2008
  47535. Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
  47536. <http://fsf.org/>
  47537. Everyone is permitted to copy and distribute verbatim copies
  47538. of this license document, but changing it is not allowed.
  47539. 0. PREAMBLE
  47540. The purpose of this License is to make a manual, textbook, or other
  47541. functional and useful document "free" in the sense of freedom: to
  47542. assure everyone the effective freedom to copy and redistribute it,
  47543. with or without modifying it, either commercially or
  47544. noncommercially. Secondarily, this License preserves for the
  47545. author and publisher a way to get credit for their work, while not
  47546. being considered responsible for modifications made by others.
  47547. This License is a kind of "copyleft", which means that derivative
  47548. works of the document must themselves be free in the same sense.
  47549. It complements the GNU General Public License, which is a copyleft
  47550. license designed for free software.
  47551. We have designed this License in order to use it for manuals for
  47552. free software, because free software needs free documentation: a
  47553. free program should come with manuals providing the same freedoms
  47554. that the software does. But this License is not limited to
  47555. software manuals; it can be used for any textual work, regardless
  47556. of subject matter or whether it is published as a printed book. We
  47557. recommend this License principally for works whose purpose is
  47558. instruction or reference.
  47559. 1. APPLICABILITY AND DEFINITIONS
  47560. This License applies to any manual or other work, in any medium,
  47561. that contains a notice placed by the copyright holder saying it can
  47562. be distributed under the terms of this License. Such a notice
  47563. grants a world-wide, royalty-free license, unlimited in duration,
  47564. to use that work under the conditions stated herein. The
  47565. "Document", below, refers to any such manual or work. Any member
  47566. of the public is a licensee, and is addressed as "you". You accept
  47567. the license if you copy, modify or distribute the work in a way
  47568. requiring permission under copyright law.
  47569. A "Modified Version" of the Document means any work containing the
  47570. Document or a portion of it, either copied verbatim, or with
  47571. modifications and/or translated into another language.
  47572. A "Secondary Section" is a named appendix or a front-matter section
  47573. of the Document that deals exclusively with the relationship of the
  47574. publishers or authors of the Document to the Document's overall
  47575. subject (or to related matters) and contains nothing that could
  47576. fall directly within that overall subject. (Thus, if the Document
  47577. is in part a textbook of mathematics, a Secondary Section may not
  47578. explain any mathematics.) The relationship could be a matter of
  47579. historical connection with the subject or with related matters, or
  47580. of legal, commercial, philosophical, ethical or political position
  47581. regarding them.
  47582. The "Invariant Sections" are certain Secondary Sections whose
  47583. titles are designated, as being those of Invariant Sections, in the
  47584. notice that says that the Document is released under this License.
  47585. If a section does not fit the above definition of Secondary then it
  47586. is not allowed to be designated as Invariant. The Document may
  47587. contain zero Invariant Sections. If the Document does not identify
  47588. any Invariant Sections then there are none.
  47589. The "Cover Texts" are certain short passages of text that are
  47590. listed, as Front-Cover Texts or Back-Cover Texts, in the notice
  47591. that says that the Document is released under this License. A
  47592. Front-Cover Text may be at most 5 words, and a Back-Cover Text may
  47593. be at most 25 words.
  47594. A "Transparent" copy of the Document means a machine-readable copy,
  47595. represented in a format whose specification is available to the
  47596. general public, that is suitable for revising the document
  47597. straightforwardly with generic text editors or (for images composed
  47598. of pixels) generic paint programs or (for drawings) some widely
  47599. available drawing editor, and that is suitable for input to text
  47600. formatters or for automatic translation to a variety of formats
  47601. suitable for input to text formatters. A copy made in an otherwise
  47602. Transparent file format whose markup, or absence of markup, has
  47603. been arranged to thwart or discourage subsequent modification by
  47604. readers is not Transparent. An image format is not Transparent if
  47605. used for any substantial amount of text. A copy that is not
  47606. "Transparent" is called "Opaque".
  47607. Examples of suitable formats for Transparent copies include plain
  47608. ASCII without markup, Texinfo input format, LaTeX input format,
  47609. SGML or XML using a publicly available DTD, and standard-conforming
  47610. simple HTML, PostScript or PDF designed for human modification.
  47611. Examples of transparent image formats include PNG, XCF and JPG.
  47612. Opaque formats include proprietary formats that can be read and
  47613. edited only by proprietary word processors, SGML or XML for which
  47614. the DTD and/or processing tools are not generally available, and
  47615. the machine-generated HTML, PostScript or PDF produced by some word
  47616. processors for output purposes only.
  47617. The "Title Page" means, for a printed book, the title page itself,
  47618. plus such following pages as are needed to hold, legibly, the
  47619. material this License requires to appear in the title page. For
  47620. works in formats which do not have any title page as such, "Title
  47621. Page" means the text near the most prominent appearance of the
  47622. work's title, preceding the beginning of the body of the text.
  47623. The "publisher" means any person or entity that distributes copies
  47624. of the Document to the public.
  47625. A section "Entitled XYZ" means a named subunit of the Document
  47626. whose title either is precisely XYZ or contains XYZ in parentheses
  47627. following text that translates XYZ in another language. (Here XYZ
  47628. stands for a specific section name mentioned below, such as
  47629. "Acknowledgements", "Dedications", "Endorsements", or "History".)
  47630. To "Preserve the Title" of such a section when you modify the
  47631. Document means that it remains a section "Entitled XYZ" according
  47632. to this definition.
  47633. The Document may include Warranty Disclaimers next to the notice
  47634. which states that this License applies to the Document. These
  47635. Warranty Disclaimers are considered to be included by reference in
  47636. this License, but only as regards disclaiming warranties: any other
  47637. implication that these Warranty Disclaimers may have is void and
  47638. has no effect on the meaning of this License.
  47639. 2. VERBATIM COPYING
  47640. You may copy and distribute the Document in any medium, either
  47641. commercially or noncommercially, provided that this License, the
  47642. copyright notices, and the license notice saying this License
  47643. applies to the Document are reproduced in all copies, and that you
  47644. add no other conditions whatsoever to those of this License. You
  47645. may not use technical measures to obstruct or control the reading
  47646. or further copying of the copies you make or distribute. However,
  47647. you may accept compensation in exchange for copies. If you
  47648. distribute a large enough number of copies you must also follow the
  47649. conditions in section 3.
  47650. You may also lend copies, under the same conditions stated above,
  47651. and you may publicly display copies.
  47652. 3. COPYING IN QUANTITY
  47653. If you publish printed copies (or copies in media that commonly
  47654. have printed covers) of the Document, numbering more than 100, and
  47655. the Document's license notice requires Cover Texts, you must
  47656. enclose the copies in covers that carry, clearly and legibly, all
  47657. these Cover Texts: Front-Cover Texts on the front cover, and
  47658. Back-Cover Texts on the back cover. Both covers must also clearly
  47659. and legibly identify you as the publisher of these copies. The
  47660. front cover must present the full title with all words of the title
  47661. equally prominent and visible. You may add other material on the
  47662. covers in addition. Copying with changes limited to the covers, as
  47663. long as they preserve the title of the Document and satisfy these
  47664. conditions, can be treated as verbatim copying in other respects.
  47665. If the required texts for either cover are too voluminous to fit
  47666. legibly, you should put the first ones listed (as many as fit
  47667. reasonably) on the actual cover, and continue the rest onto
  47668. adjacent pages.
  47669. If you publish or distribute Opaque copies of the Document
  47670. numbering more than 100, you must either include a machine-readable
  47671. Transparent copy along with each Opaque copy, or state in or with
  47672. each Opaque copy a computer-network location from which the general
  47673. network-using public has access to download using public-standard
  47674. network protocols a complete Transparent copy of the Document, free
  47675. of added material. If you use the latter option, you must take
  47676. reasonably prudent steps, when you begin distribution of Opaque
  47677. copies in quantity, to ensure that this Transparent copy will
  47678. remain thus accessible at the stated location until at least one
  47679. year after the last time you distribute an Opaque copy (directly or
  47680. through your agents or retailers) of that edition to the public.
  47681. It is requested, but not required, that you contact the authors of
  47682. the Document well before redistributing any large number of copies,
  47683. to give them a chance to provide you with an updated version of the
  47684. Document.
  47685. 4. MODIFICATIONS
  47686. You may copy and distribute a Modified Version of the Document
  47687. under the conditions of sections 2 and 3 above, provided that you
  47688. release the Modified Version under precisely this License, with the
  47689. Modified Version filling the role of the Document, thus licensing
  47690. distribution and modification of the Modified Version to whoever
  47691. possesses a copy of it. In addition, you must do these things in
  47692. the Modified Version:
  47693. A. Use in the Title Page (and on the covers, if any) a title
  47694. distinct from that of the Document, and from those of previous
  47695. versions (which should, if there were any, be listed in the
  47696. History section of the Document). You may use the same title
  47697. as a previous version if the original publisher of that
  47698. version gives permission.
  47699. B. List on the Title Page, as authors, one or more persons or
  47700. entities responsible for authorship of the modifications in
  47701. the Modified Version, together with at least five of the
  47702. principal authors of the Document (all of its principal
  47703. authors, if it has fewer than five), unless they release you
  47704. from this requirement.
  47705. C. State on the Title page the name of the publisher of the
  47706. Modified Version, as the publisher.
  47707. D. Preserve all the copyright notices of the Document.
  47708. E. Add an appropriate copyright notice for your modifications
  47709. adjacent to the other copyright notices.
  47710. F. Include, immediately after the copyright notices, a license
  47711. notice giving the public permission to use the Modified
  47712. Version under the terms of this License, in the form shown in
  47713. the Addendum below.
  47714. G. Preserve in that license notice the full lists of Invariant
  47715. Sections and required Cover Texts given in the Document's
  47716. license notice.
  47717. H. Include an unaltered copy of this License.
  47718. I. Preserve the section Entitled "History", Preserve its Title,
  47719. and add to it an item stating at least the title, year, new
  47720. authors, and publisher of the Modified Version as given on the
  47721. Title Page. If there is no section Entitled "History" in the
  47722. Document, create one stating the title, year, authors, and
  47723. publisher of the Document as given on its Title Page, then add
  47724. an item describing the Modified Version as stated in the
  47725. previous sentence.
  47726. J. Preserve the network location, if any, given in the Document
  47727. for public access to a Transparent copy of the Document, and
  47728. likewise the network locations given in the Document for
  47729. previous versions it was based on. These may be placed in the
  47730. "History" section. You may omit a network location for a work
  47731. that was published at least four years before the Document
  47732. itself, or if the original publisher of the version it refers
  47733. to gives permission.
  47734. K. For any section Entitled "Acknowledgements" or "Dedications",
  47735. Preserve the Title of the section, and preserve in the section
  47736. all the substance and tone of each of the contributor
  47737. acknowledgements and/or dedications given therein.
  47738. L. Preserve all the Invariant Sections of the Document, unaltered
  47739. in their text and in their titles. Section numbers or the
  47740. equivalent are not considered part of the section titles.
  47741. M. Delete any section Entitled "Endorsements". Such a section
  47742. may not be included in the Modified Version.
  47743. N. Do not retitle any existing section to be Entitled
  47744. "Endorsements" or to conflict in title with any Invariant
  47745. Section.
  47746. O. Preserve any Warranty Disclaimers.
  47747. If the Modified Version includes new front-matter sections or
  47748. appendices that qualify as Secondary Sections and contain no
  47749. material copied from the Document, you may at your option designate
  47750. some or all of these sections as invariant. To do this, add their
  47751. titles to the list of Invariant Sections in the Modified Version's
  47752. license notice. These titles must be distinct from any other
  47753. section titles.
  47754. You may add a section Entitled "Endorsements", provided it contains
  47755. nothing but endorsements of your Modified Version by various
  47756. parties--for example, statements of peer review or that the text
  47757. has been approved by an organization as the authoritative
  47758. definition of a standard.
  47759. You may add a passage of up to five words as a Front-Cover Text,
  47760. and a passage of up to 25 words as a Back-Cover Text, to the end of
  47761. the list of Cover Texts in the Modified Version. Only one passage
  47762. of Front-Cover Text and one of Back-Cover Text may be added by (or
  47763. through arrangements made by) any one entity. If the Document
  47764. already includes a cover text for the same cover, previously added
  47765. by you or by arrangement made by the same entity you are acting on
  47766. behalf of, you may not add another; but you may replace the old
  47767. one, on explicit permission from the previous publisher that added
  47768. the old one.
  47769. The author(s) and publisher(s) of the Document do not by this
  47770. License give permission to use their names for publicity for or to
  47771. assert or imply endorsement of any Modified Version.
  47772. 5. COMBINING DOCUMENTS
  47773. You may combine the Document with other documents released under
  47774. this License, under the terms defined in section 4 above for
  47775. modified versions, provided that you include in the combination all
  47776. of the Invariant Sections of all of the original documents,
  47777. unmodified, and list them all as Invariant Sections of your
  47778. combined work in its license notice, and that you preserve all
  47779. their Warranty Disclaimers.
  47780. The combined work need only contain one copy of this License, and
  47781. multiple identical Invariant Sections may be replaced with a single
  47782. copy. If there are multiple Invariant Sections with the same name
  47783. but different contents, make the title of each such section unique
  47784. by adding at the end of it, in parentheses, the name of the
  47785. original author or publisher of that section if known, or else a
  47786. unique number. Make the same adjustment to the section titles in
  47787. the list of Invariant Sections in the license notice of the
  47788. combined work.
  47789. In the combination, you must combine any sections Entitled
  47790. "History" in the various original documents, forming one section
  47791. Entitled "History"; likewise combine any sections Entitled
  47792. "Acknowledgements", and any sections Entitled "Dedications". You
  47793. must delete all sections Entitled "Endorsements."
  47794. 6. COLLECTIONS OF DOCUMENTS
  47795. You may make a collection consisting of the Document and other
  47796. documents released under this License, and replace the individual
  47797. copies of this License in the various documents with a single copy
  47798. that is included in the collection, provided that you follow the
  47799. rules of this License for verbatim copying of each of the documents
  47800. in all other respects.
  47801. You may extract a single document from such a collection, and
  47802. distribute it individually under this License, provided you insert
  47803. a copy of this License into the extracted document, and follow this
  47804. License in all other respects regarding verbatim copying of that
  47805. document.
  47806. 7. AGGREGATION WITH INDEPENDENT WORKS
  47807. A compilation of the Document or its derivatives with other
  47808. separate and independent documents or works, in or on a volume of a
  47809. storage or distribution medium, is called an "aggregate" if the
  47810. copyright resulting from the compilation is not used to limit the
  47811. legal rights of the compilation's users beyond what the individual
  47812. works permit. When the Document is included in an aggregate, this
  47813. License does not apply to the other works in the aggregate which
  47814. are not themselves derivative works of the Document.
  47815. If the Cover Text requirement of section 3 is applicable to these
  47816. copies of the Document, then if the Document is less than one half
  47817. of the entire aggregate, the Document's Cover Texts may be placed
  47818. on covers that bracket the Document within the aggregate, or the
  47819. electronic equivalent of covers if the Document is in electronic
  47820. form. Otherwise they must appear on printed covers that bracket
  47821. the whole aggregate.
  47822. 8. TRANSLATION
  47823. Translation is considered a kind of modification, so you may
  47824. distribute translations of the Document under the terms of section
  47825. 4. Replacing Invariant Sections with translations requires special
  47826. permission from their copyright holders, but you may include
  47827. translations of some or all Invariant Sections in addition to the
  47828. original versions of these Invariant Sections. You may include a
  47829. translation of this License, and all the license notices in the
  47830. Document, and any Warranty Disclaimers, provided that you also
  47831. include the original English version of this License and the
  47832. original versions of those notices and disclaimers. In case of a
  47833. disagreement between the translation and the original version of
  47834. this License or a notice or disclaimer, the original version will
  47835. prevail.
  47836. If a section in the Document is Entitled "Acknowledgements",
  47837. "Dedications", or "History", the requirement (section 4) to
  47838. Preserve its Title (section 1) will typically require changing the
  47839. actual title.
  47840. 9. TERMINATION
  47841. You may not copy, modify, sublicense, or distribute the Document
  47842. except as expressly provided under this License. Any attempt
  47843. otherwise to copy, modify, sublicense, or distribute it is void,
  47844. and will automatically terminate your rights under this License.
  47845. However, if you cease all violation of this License, then your
  47846. license from a particular copyright holder is reinstated (a)
  47847. provisionally, unless and until the copyright holder explicitly and
  47848. finally terminates your license, and (b) permanently, if the
  47849. copyright holder fails to notify you of the violation by some
  47850. reasonable means prior to 60 days after the cessation.
  47851. Moreover, your license from a particular copyright holder is
  47852. reinstated permanently if the copyright holder notifies you of the
  47853. violation by some reasonable means, this is the first time you have
  47854. received notice of violation of this License (for any work) from
  47855. that copyright holder, and you cure the violation prior to 30 days
  47856. after your receipt of the notice.
  47857. Termination of your rights under this section does not terminate
  47858. the licenses of parties who have received copies or rights from you
  47859. under this License. If your rights have been terminated and not
  47860. permanently reinstated, receipt of a copy of some or all of the
  47861. same material does not give you any rights to use it.
  47862. 10. FUTURE REVISIONS OF THIS LICENSE
  47863. The Free Software Foundation may publish new, revised versions of
  47864. the GNU Free Documentation License from time to time. Such new
  47865. versions will be similar in spirit to the present version, but may
  47866. differ in detail to address new problems or concerns. See
  47867. <http://www.gnu.org/copyleft/>.
  47868. Each version of the License is given a distinguishing version
  47869. number. If the Document specifies that a particular numbered
  47870. version of this License "or any later version" applies to it, you
  47871. have the option of following the terms and conditions either of
  47872. that specified version or of any later version that has been
  47873. published (not as a draft) by the Free Software Foundation. If the
  47874. Document does not specify a version number of this License, you may
  47875. choose any version ever published (not as a draft) by the Free
  47876. Software Foundation. If the Document specifies that a proxy can
  47877. decide which future versions of this License can be used, that
  47878. proxy's public statement of acceptance of a version permanently
  47879. authorizes you to choose that version for the Document.
  47880. 11. RELICENSING
  47881. "Massive Multiauthor Collaboration Site" (or "MMC Site") means any
  47882. World Wide Web server that publishes copyrightable works and also
  47883. provides prominent facilities for anybody to edit those works. A
  47884. public wiki that anybody can edit is an example of such a server.
  47885. A "Massive Multiauthor Collaboration" (or "MMC") contained in the
  47886. site means any set of copyrightable works thus published on the MMC
  47887. site.
  47888. "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0
  47889. license published by Creative Commons Corporation, a not-for-profit
  47890. corporation with a principal place of business in San Francisco,
  47891. California, as well as future copyleft versions of that license
  47892. published by that same organization.
  47893. "Incorporate" means to publish or republish a Document, in whole or
  47894. in part, as part of another Document.
  47895. An MMC is "eligible for relicensing" if it is licensed under this
  47896. License, and if all works that were first published under this
  47897. License somewhere other than this MMC, and subsequently
  47898. incorporated in whole or in part into the MMC, (1) had no cover
  47899. texts or invariant sections, and (2) were thus incorporated prior
  47900. to November 1, 2008.
  47901. The operator of an MMC Site may republish an MMC contained in the
  47902. site under CC-BY-SA on the same site at any time before August 1,
  47903. 2009, provided the MMC is eligible for relicensing.
  47904. ADDENDUM: How to use this License for your documents
  47905. ====================================================
  47906. To use this License in a document you have written, include a copy of
  47907. the License in the document and put the following copyright and license
  47908. notices just after the title page:
  47909. Copyright (C) YEAR YOUR NAME.
  47910. Permission is granted to copy, distribute and/or modify this document
  47911. under the terms of the GNU Free Documentation License, Version 1.3
  47912. or any later version published by the Free Software Foundation;
  47913. with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
  47914. Texts. A copy of the license is included in the section entitled ``GNU
  47915. Free Documentation License''.
  47916. If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts,
  47917. replace the "with...Texts." line with this:
  47918. with the Invariant Sections being LIST THEIR TITLES, with
  47919. the Front-Cover Texts being LIST, and with the Back-Cover Texts
  47920. being LIST.
  47921. If you have Invariant Sections without Cover Texts, or some other
  47922. combination of the three, merge those two alternatives to suit the
  47923. situation.
  47924. If your document contains nontrivial examples of program code, we
  47925. recommend releasing these examples in parallel under your choice of free
  47926. software license, such as the GNU General Public License, to permit
  47927. their use in free software.
  47928. 
  47929. File: gcc.info, Node: Contributors, Next: Option Index, Prev: GNU Free Documentation License, Up: Top
  47930. Contributors to GCC
  47931. *******************
  47932. The GCC project would like to thank its many contributors. Without them
  47933. the project would not have been nearly as successful as it has been.
  47934. Any omissions in this list are accidental. Feel free to contact
  47935. <law@redhat.com> or <gerald@pfeifer.com> if you have been left out or
  47936. some of your contributions are not listed. Please keep this list in
  47937. alphabetical order.
  47938. * Analog Devices helped implement the support for complex data types
  47939. and iterators.
  47940. * John David Anglin for threading-related fixes and improvements to
  47941. libstdc++-v3, and the HP-UX port.
  47942. * James van Artsdalen wrote the code that makes efficient use of the
  47943. Intel 80387 register stack.
  47944. * Abramo and Roberto Bagnara for the SysV68 Motorola 3300 Delta
  47945. Series port.
  47946. * Alasdair Baird for various bug fixes.
  47947. * Giovanni Bajo for analyzing lots of complicated C++ problem
  47948. reports.
  47949. * Peter Barada for his work to improve code generation for new
  47950. ColdFire cores.
  47951. * Gerald Baumgartner added the signature extension to the C++ front
  47952. end.
  47953. * Godmar Back for his Java improvements and encouragement.
  47954. * Scott Bambrough for help porting the Java compiler.
  47955. * Wolfgang Bangerth for processing tons of bug reports.
  47956. * Jon Beniston for his Microsoft Windows port of Java and port to
  47957. Lattice Mico32.
  47958. * Daniel Berlin for better DWARF 2 support, faster/better
  47959. optimizations, improved alias analysis, plus migrating GCC to
  47960. Bugzilla.
  47961. * Geoff Berry for his Java object serialization work and various
  47962. patches.
  47963. * David Binderman tests weekly snapshots of GCC trunk against Fedora
  47964. Rawhide for several architectures.
  47965. * Laurynas Biveinis for memory management work and DJGPP port fixes.
  47966. * Uros Bizjak for the implementation of x87 math built-in functions
  47967. and for various middle end and i386 back end improvements and bug
  47968. fixes.
  47969. * Eric Blake for helping to make GCJ and libgcj conform to the
  47970. specifications.
  47971. * Janne Blomqvist for contributions to GNU Fortran.
  47972. * Hans-J. Boehm for his garbage collector, IA-64 libffi port, and
  47973. other Java work.
  47974. * Segher Boessenkool for helping maintain the PowerPC port and the
  47975. instruction combiner plus various contributions to the middle end.
  47976. * Neil Booth for work on cpplib, lang hooks, debug hooks and other
  47977. miscellaneous clean-ups.
  47978. * Steven Bosscher for integrating the GNU Fortran front end into GCC
  47979. and for contributing to the tree-ssa branch.
  47980. * Eric Botcazou for fixing middle- and backend bugs left and right.
  47981. * Per Bothner for his direction via the steering committee and
  47982. various improvements to the infrastructure for supporting new
  47983. languages. Chill front end implementation. Initial
  47984. implementations of cpplib, fix-header, config.guess, libio, and
  47985. past C++ library (libg++) maintainer. Dreaming up, designing and
  47986. implementing much of GCJ.
  47987. * Devon Bowen helped port GCC to the Tahoe.
  47988. * Don Bowman for mips-vxworks contributions.
  47989. * James Bowman for the FT32 port.
  47990. * Dave Brolley for work on cpplib and Chill.
  47991. * Paul Brook for work on the ARM architecture and maintaining GNU
  47992. Fortran.
  47993. * Robert Brown implemented the support for Encore 32000 systems.
  47994. * Christian Bruel for improvements to local store elimination.
  47995. * Herman A.J. ten Brugge for various fixes.
  47996. * Joerg Brunsmann for Java compiler hacking and help with the GCJ
  47997. FAQ.
  47998. * Joe Buck for his direction via the steering committee from its
  47999. creation to 2013.
  48000. * Iain Buclaw for the D frontend.
  48001. * Craig Burley for leadership of the G77 Fortran effort.
  48002. * Tobias Burnus for contributions to GNU Fortran.
  48003. * Stephan Buys for contributing Doxygen notes for libstdc++.
  48004. * Paolo Carlini for libstdc++ work: lots of efficiency improvements
  48005. to the C++ strings, streambufs and formatted I/O, hard detective
  48006. work on the frustrating localization issues, and keeping up with
  48007. the problem reports.
  48008. * John Carr for his alias work, SPARC hacking, infrastructure
  48009. improvements, previous contributions to the steering committee,
  48010. loop optimizations, etc.
  48011. * Stephane Carrez for 68HC11 and 68HC12 ports.
  48012. * Steve Chamberlain for support for the Renesas SH and H8 processors
  48013. and the PicoJava processor, and for GCJ config fixes.
  48014. * Glenn Chambers for help with the GCJ FAQ.
  48015. * John-Marc Chandonia for various libgcj patches.
  48016. * Denis Chertykov for contributing and maintaining the AVR port, the
  48017. first GCC port for an 8-bit architecture.
  48018. * Kito Cheng for his work on the RISC-V port, including bringing up
  48019. the test suite and maintenance.
  48020. * Scott Christley for his Objective-C contributions.
  48021. * Eric Christopher for his Java porting help and clean-ups.
  48022. * Branko Cibej for more warning contributions.
  48023. * The GNU Classpath project for all of their merged runtime code.
  48024. * Nick Clifton for arm, mcore, fr30, v850, m32r, msp430 rx work,
  48025. '--help', and other random hacking.
  48026. * Michael Cook for libstdc++ cleanup patches to reduce warnings.
  48027. * R. Kelley Cook for making GCC buildable from a read-only directory
  48028. as well as other miscellaneous build process and documentation
  48029. clean-ups.
  48030. * Ralf Corsepius for SH testing and minor bug fixing.
  48031. * Franc,ois-Xavier Coudert for contributions to GNU Fortran.
  48032. * Stan Cox for care and feeding of the x86 port and lots of behind
  48033. the scenes hacking.
  48034. * Alex Crain provided changes for the 3b1.
  48035. * Ian Dall for major improvements to the NS32k port.
  48036. * Paul Dale for his work to add uClinux platform support to the m68k
  48037. backend.
  48038. * Palmer Dabbelt for his work maintaining the RISC-V port.
  48039. * Dario Dariol contributed the four varieties of sample programs that
  48040. print a copy of their source.
  48041. * Russell Davidson for fstream and stringstream fixes in libstdc++.
  48042. * Bud Davis for work on the G77 and GNU Fortran compilers.
  48043. * Mo DeJong for GCJ and libgcj bug fixes.
  48044. * Jerry DeLisle for contributions to GNU Fortran.
  48045. * DJ Delorie for the DJGPP port, build and libiberty maintenance,
  48046. various bug fixes, and the M32C, MeP, MSP430, and RL78 ports.
  48047. * Arnaud Desitter for helping to debug GNU Fortran.
  48048. * Gabriel Dos Reis for contributions to G++, contributions and
  48049. maintenance of GCC diagnostics infrastructure, libstdc++-v3,
  48050. including 'valarray<>', 'complex<>', maintaining the numerics
  48051. library (including that pesky '<limits>' :-) and keeping up-to-date
  48052. anything to do with numbers.
  48053. * Ulrich Drepper for his work on glibc, testing of GCC using glibc,
  48054. ISO C99 support, CFG dumping support, etc., plus support of the C++
  48055. runtime libraries including for all kinds of C interface issues,
  48056. contributing and maintaining 'complex<>', sanity checking and
  48057. disbursement, configuration architecture, libio maintenance, and
  48058. early math work.
  48059. * Franc,ois Dumont for his work on libstdc++-v3, especially
  48060. maintaining and improving 'debug-mode' and associative and
  48061. unordered containers.
  48062. * Zdenek Dvorak for a new loop unroller and various fixes.
  48063. * Michael Eager for his work on the Xilinx MicroBlaze port.
  48064. * Richard Earnshaw for his ongoing work with the ARM.
  48065. * David Edelsohn for his direction via the steering committee,
  48066. ongoing work with the RS6000/PowerPC port, help cleaning up Haifa
  48067. loop changes, doing the entire AIX port of libstdc++ with his bare
  48068. hands, and for ensuring GCC properly keeps working on AIX.
  48069. * Kevin Ediger for the floating point formatting of num_put::do_put
  48070. in libstdc++.
  48071. * Phil Edwards for libstdc++ work including configuration hackery,
  48072. documentation maintainer, chief breaker of the web pages, the
  48073. occasional iostream bug fix, and work on shared library symbol
  48074. versioning.
  48075. * Paul Eggert for random hacking all over GCC.
  48076. * Mark Elbrecht for various DJGPP improvements, and for libstdc++
  48077. configuration support for locales and fstream-related fixes.
  48078. * Vadim Egorov for libstdc++ fixes in strings, streambufs, and
  48079. iostreams.
  48080. * Christian Ehrhardt for dealing with bug reports.
  48081. * Ben Elliston for his work to move the Objective-C runtime into its
  48082. own subdirectory and for his work on autoconf.
  48083. * Revital Eres for work on the PowerPC 750CL port.
  48084. * Marc Espie for OpenBSD support.
  48085. * Doug Evans for much of the global optimization framework, arc,
  48086. m32r, and SPARC work.
  48087. * Christopher Faylor for his work on the Cygwin port and for caring
  48088. and feeding the gcc.gnu.org box and saving its users tons of spam.
  48089. * Fred Fish for BeOS support and Ada fixes.
  48090. * Ivan Fontes Garcia for the Portuguese translation of the GCJ FAQ.
  48091. * Peter Gerwinski for various bug fixes and the Pascal front end.
  48092. * Kaveh R. Ghazi for his direction via the steering committee,
  48093. amazing work to make '-W -Wall -W* -Werror' useful, and testing GCC
  48094. on a plethora of platforms. Kaveh extends his gratitude to the
  48095. CAIP Center at Rutgers University for providing him with computing
  48096. resources to work on Free Software from the late 1980s to 2010.
  48097. * John Gilmore for a donation to the FSF earmarked improving GNU
  48098. Java.
  48099. * Judy Goldberg for c++ contributions.
  48100. * Torbjorn Granlund for various fixes and the c-torture testsuite,
  48101. multiply- and divide-by-constant optimization, improved long long
  48102. support, improved leaf function register allocation, and his
  48103. direction via the steering committee.
  48104. * Jonny Grant for improvements to 'collect2's' '--help'
  48105. documentation.
  48106. * Anthony Green for his '-Os' contributions, the moxie port, and Java
  48107. front end work.
  48108. * Stu Grossman for gdb hacking, allowing GCJ developers to debug Java
  48109. code.
  48110. * Michael K. Gschwind contributed the port to the PDP-11.
  48111. * Richard Biener for his ongoing middle-end contributions and bug
  48112. fixes and for release management.
  48113. * Ron Guilmette implemented the 'protoize' and 'unprotoize' tools,
  48114. the support for DWARF 1 symbolic debugging information, and much of
  48115. the support for System V Release 4. He has also worked heavily on
  48116. the Intel 386 and 860 support.
  48117. * Sumanth Gundapaneni for contributing the CR16 port.
  48118. * Mostafa Hagog for Swing Modulo Scheduling (SMS) and post reload
  48119. GCSE.
  48120. * Bruno Haible for improvements in the runtime overhead for EH, new
  48121. warnings and assorted bug fixes.
  48122. * Andrew Haley for his amazing Java compiler and library efforts.
  48123. * Chris Hanson assisted in making GCC work on HP-UX for the 9000
  48124. series 300.
  48125. * Michael Hayes for various thankless work he's done trying to get
  48126. the c30/c40 ports functional. Lots of loop and unroll improvements
  48127. and fixes.
  48128. * Dara Hazeghi for wading through myriads of target-specific bug
  48129. reports.
  48130. * Kate Hedstrom for staking the G77 folks with an initial testsuite.
  48131. * Richard Henderson for his ongoing SPARC, alpha, ia32, and ia64
  48132. work, loop opts, and generally fixing lots of old problems we've
  48133. ignored for years, flow rewrite and lots of further stuff,
  48134. including reviewing tons of patches.
  48135. * Aldy Hernandez for working on the PowerPC port, SIMD support, and
  48136. various fixes.
  48137. * Nobuyuki Hikichi of Software Research Associates, Tokyo,
  48138. contributed the support for the Sony NEWS machine.
  48139. * Kazu Hirata for caring and feeding the Renesas H8/300 port and
  48140. various fixes.
  48141. * Katherine Holcomb for work on GNU Fortran.
  48142. * Manfred Hollstein for his ongoing work to keep the m88k alive, lots
  48143. of testing and bug fixing, particularly of GCC configury code.
  48144. * Steve Holmgren for MachTen patches.
  48145. * Mat Hostetter for work on the TILE-Gx and TILEPro ports.
  48146. * Jan Hubicka for his x86 port improvements.
  48147. * Falk Hueffner for working on C and optimization bug reports.
  48148. * Bernardo Innocenti for his m68k work, including merging of ColdFire
  48149. improvements and uClinux support.
  48150. * Christian Iseli for various bug fixes.
  48151. * Kamil Iskra for general m68k hacking.
  48152. * Lee Iverson for random fixes and MIPS testing.
  48153. * Balaji V. Iyer for Cilk+ development and merging.
  48154. * Andreas Jaeger for testing and benchmarking of GCC and various bug
  48155. fixes.
  48156. * Martin Jambor for his work on inter-procedural optimizations, the
  48157. switch conversion pass, and scalar replacement of aggregates.
  48158. * Jakub Jelinek for his SPARC work and sibling call optimizations as
  48159. well as lots of bug fixes and test cases, and for improving the
  48160. Java build system.
  48161. * Janis Johnson for ia64 testing and fixes, her quality improvement
  48162. sidetracks, and web page maintenance.
  48163. * Kean Johnston for SCO OpenServer support and various fixes.
  48164. * Tim Josling for the sample language treelang based originally on
  48165. Richard Kenner's "toy" language.
  48166. * Nicolai Josuttis for additional libstdc++ documentation.
  48167. * Klaus Kaempf for his ongoing work to make alpha-vms a viable
  48168. target.
  48169. * Steven G. Kargl for work on GNU Fortran.
  48170. * David Kashtan of SRI adapted GCC to VMS.
  48171. * Ryszard Kabatek for many, many libstdc++ bug fixes and
  48172. optimizations of strings, especially member functions, and for
  48173. auto_ptr fixes.
  48174. * Geoffrey Keating for his ongoing work to make the PPC work for
  48175. GNU/Linux and his automatic regression tester.
  48176. * Brendan Kehoe for his ongoing work with G++ and for a lot of early
  48177. work in just about every part of libstdc++.
  48178. * Oliver M. Kellogg of Deutsche Aerospace contributed the port to the
  48179. MIL-STD-1750A.
  48180. * Richard Kenner of the New York University Ultracomputer Research
  48181. Laboratory wrote the machine descriptions for the AMD 29000, the
  48182. DEC Alpha, the IBM RT PC, and the IBM RS/6000 as well as the
  48183. support for instruction attributes. He also made changes to better
  48184. support RISC processors including changes to common subexpression
  48185. elimination, strength reduction, function calling sequence
  48186. handling, and condition code support, in addition to generalizing
  48187. the code for frame pointer elimination and delay slot scheduling.
  48188. Richard Kenner was also the head maintainer of GCC for several
  48189. years.
  48190. * Mumit Khan for various contributions to the Cygwin and Mingw32
  48191. ports and maintaining binary releases for Microsoft Windows hosts,
  48192. and for massive libstdc++ porting work to Cygwin/Mingw32.
  48193. * Robin Kirkham for cpu32 support.
  48194. * Mark Klein for PA improvements.
  48195. * Thomas Koenig for various bug fixes.
  48196. * Bruce Korb for the new and improved fixincludes code.
  48197. * Benjamin Kosnik for his G++ work and for leading the libstdc++-v3
  48198. effort.
  48199. * Maxim Kuvyrkov for contributions to the instruction scheduler, the
  48200. Android and m68k/Coldfire ports, and optimizations.
  48201. * Charles LaBrec contributed the support for the Integrated Solutions
  48202. 68020 system.
  48203. * Asher Langton and Mike Kumbera for contributing Cray pointer
  48204. support to GNU Fortran, and for other GNU Fortran improvements.
  48205. * Jeff Law for his direction via the steering committee, coordinating
  48206. the entire egcs project and GCC 2.95, rolling out snapshots and
  48207. releases, handling merges from GCC2, reviewing tons of patches that
  48208. might have fallen through the cracks else, and random but extensive
  48209. hacking.
  48210. * Walter Lee for work on the TILE-Gx and TILEPro ports.
  48211. * Marc Lehmann for his direction via the steering committee and
  48212. helping with analysis and improvements of x86 performance.
  48213. * Victor Leikehman for work on GNU Fortran.
  48214. * Ted Lemon wrote parts of the RTL reader and printer.
  48215. * Kriang Lerdsuwanakij for C++ improvements including template as
  48216. template parameter support, and many C++ fixes.
  48217. * Warren Levy for tremendous work on libgcj (Java Runtime Library)
  48218. and random work on the Java front end.
  48219. * Alain Lichnewsky ported GCC to the MIPS CPU.
  48220. * Oskar Liljeblad for hacking on AWT and his many Java bug reports
  48221. and patches.
  48222. * Robert Lipe for OpenServer support, new testsuites, testing, etc.
  48223. * Chen Liqin for various S+core related fixes/improvement, and for
  48224. maintaining the S+core port.
  48225. * Martin Liska for his work on identical code folding, the
  48226. sanitizers, HSA, general bug fixing and for running automated
  48227. regression testing of GCC and reporting numerous bugs.
  48228. * Weiwen Liu for testing and various bug fixes.
  48229. * Manuel Lo'pez-Iba'n~ez for improving '-Wconversion' and many other
  48230. diagnostics fixes and improvements.
  48231. * Dave Love for his ongoing work with the Fortran front end and
  48232. runtime libraries.
  48233. * Martin von Lo"wis for internal consistency checking infrastructure,
  48234. various C++ improvements including namespace support, and tons of
  48235. assistance with libstdc++/compiler merges.
  48236. * H.J. Lu for his previous contributions to the steering committee,
  48237. many x86 bug reports, prototype patches, and keeping the GNU/Linux
  48238. ports working.
  48239. * Greg McGary for random fixes and (someday) bounded pointers.
  48240. * Andrew MacLeod for his ongoing work in building a real EH system,
  48241. various code generation improvements, work on the global optimizer,
  48242. etc.
  48243. * Vladimir Makarov for hacking some ugly i960 problems, PowerPC
  48244. hacking improvements to compile-time performance, overall knowledge
  48245. and direction in the area of instruction scheduling, design and
  48246. implementation of the automaton based instruction scheduler and
  48247. design and implementation of the integrated and local register
  48248. allocators.
  48249. * David Malcolm for his work on improving GCC diagnostics, JIT,
  48250. self-tests and unit testing.
  48251. * Bob Manson for his behind the scenes work on dejagnu.
  48252. * John Marino for contributing the DragonFly BSD port.
  48253. * Philip Martin for lots of libstdc++ string and vector iterator
  48254. fixes and improvements, and string clean up and testsuites.
  48255. * Michael Matz for his work on dominance tree discovery, the x86-64
  48256. port, link-time optimization framework and general optimization
  48257. improvements.
  48258. * All of the Mauve project contributors for Java test code.
  48259. * Bryce McKinlay for numerous GCJ and libgcj fixes and improvements.
  48260. * Adam Megacz for his work on the Microsoft Windows port of GCJ.
  48261. * Michael Meissner for LRS framework, ia32, m32r, v850, m88k, MIPS,
  48262. powerpc, haifa, ECOFF debug support, and other assorted hacking.
  48263. * Jason Merrill for his direction via the steering committee and
  48264. leading the G++ effort.
  48265. * Martin Michlmayr for testing GCC on several architectures using the
  48266. entire Debian archive.
  48267. * David Miller for his direction via the steering committee, lots of
  48268. SPARC work, improvements in jump.c and interfacing with the Linux
  48269. kernel developers.
  48270. * Gary Miller ported GCC to Charles River Data Systems machines.
  48271. * Alfred Minarik for libstdc++ string and ios bug fixes, and turning
  48272. the entire libstdc++ testsuite namespace-compatible.
  48273. * Mark Mitchell for his direction via the steering committee,
  48274. mountains of C++ work, load/store hoisting out of loops, alias
  48275. analysis improvements, ISO C 'restrict' support, and serving as
  48276. release manager from 2000 to 2011.
  48277. * Alan Modra for various GNU/Linux bits and testing.
  48278. * Toon Moene for his direction via the steering committee, Fortran
  48279. maintenance, and his ongoing work to make us make Fortran run fast.
  48280. * Jason Molenda for major help in the care and feeding of all the
  48281. services on the gcc.gnu.org (formerly egcs.cygnus.com)
  48282. machine--mail, web services, ftp services, etc etc. Doing all this
  48283. work on scrap paper and the backs of envelopes would have been...
  48284. difficult.
  48285. * Catherine Moore for fixing various ugly problems we have sent her
  48286. way, including the haifa bug which was killing the Alpha & PowerPC
  48287. Linux kernels.
  48288. * Mike Moreton for his various Java patches.
  48289. * David Mosberger-Tang for various Alpha improvements, and for the
  48290. initial IA-64 port.
  48291. * Stephen Moshier contributed the floating point emulator that
  48292. assists in cross-compilation and permits support for floating point
  48293. numbers wider than 64 bits and for ISO C99 support.
  48294. * Bill Moyer for his behind the scenes work on various issues.
  48295. * Philippe De Muyter for his work on the m68k port.
  48296. * Joseph S. Myers for his work on the PDP-11 port, format checking
  48297. and ISO C99 support, and continuous emphasis on (and contributions
  48298. to) documentation.
  48299. * Nathan Myers for his work on libstdc++-v3: architecture and
  48300. authorship through the first three snapshots, including
  48301. implementation of locale infrastructure, string, shadow C headers,
  48302. and the initial project documentation (DESIGN, CHECKLIST, and so
  48303. forth). Later, more work on MT-safe string and shadow headers.
  48304. * Felix Natter for documentation on porting libstdc++.
  48305. * Nathanael Nerode for cleaning up the configuration/build process.
  48306. * NeXT, Inc. donated the front end that supports the Objective-C
  48307. language.
  48308. * Hans-Peter Nilsson for the CRIS and MMIX ports, improvements to the
  48309. search engine setup, various documentation fixes and other small
  48310. fixes.
  48311. * Geoff Noer for his work on getting cygwin native builds working.
  48312. * Vegard Nossum for running automated regression testing of GCC and
  48313. reporting numerous bugs.
  48314. * Diego Novillo for his work on Tree SSA, OpenMP, SPEC performance
  48315. tracking web pages, GIMPLE tuples, and assorted fixes.
  48316. * David O'Brien for the FreeBSD/alpha, FreeBSD/AMD x86-64,
  48317. FreeBSD/ARM, FreeBSD/PowerPC, and FreeBSD/SPARC64 ports and related
  48318. infrastructure improvements.
  48319. * Alexandre Oliva for various build infrastructure improvements,
  48320. scripts and amazing testing work, including keeping libtool issues
  48321. sane and happy.
  48322. * Stefan Olsson for work on mt_alloc.
  48323. * Melissa O'Neill for various NeXT fixes.
  48324. * Rainer Orth for random MIPS work, including improvements to GCC's
  48325. o32 ABI support, improvements to dejagnu's MIPS support, Java
  48326. configuration clean-ups and porting work, and maintaining the IRIX,
  48327. Solaris 2, and Tru64 UNIX ports.
  48328. * Steven Pemberton for his contribution of 'enquire' which allowed
  48329. GCC to determine various properties of the floating point unit and
  48330. generate 'float.h' in older versions of GCC.
  48331. * Hartmut Penner for work on the s390 port.
  48332. * Paul Petersen wrote the machine description for the Alliant FX/8.
  48333. * Alexandre Petit-Bianco for implementing much of the Java compiler
  48334. and continued Java maintainership.
  48335. * Matthias Pfaller for major improvements to the NS32k port.
  48336. * Gerald Pfeifer for his direction via the steering committee,
  48337. pointing out lots of problems we need to solve, maintenance of the
  48338. web pages, and taking care of documentation maintenance in general.
  48339. * Marek Polacek for his work on the C front end, the sanitizers and
  48340. general bug fixing.
  48341. * Andrew Pinski for processing bug reports by the dozen.
  48342. * Ovidiu Predescu for his work on the Objective-C front end and
  48343. runtime libraries.
  48344. * Jerry Quinn for major performance improvements in C++ formatted
  48345. I/O.
  48346. * Ken Raeburn for various improvements to checker, MIPS ports and
  48347. various cleanups in the compiler.
  48348. * Rolf W. Rasmussen for hacking on AWT.
  48349. * David Reese of Sun Microsystems contributed to the Solaris on
  48350. PowerPC port.
  48351. * John Regehr for running automated regression testing of GCC and
  48352. reporting numerous bugs.
  48353. * Volker Reichelt for running automated regression testing of GCC and
  48354. reporting numerous bugs and for keeping up with the problem
  48355. reports.
  48356. * Joern Rennecke for maintaining the sh port, loop, regmove & reload
  48357. hacking and developing and maintaining the Epiphany port.
  48358. * Loren J. Rittle for improvements to libstdc++-v3 including the
  48359. FreeBSD port, threading fixes, thread-related configury changes,
  48360. critical threading documentation, and solutions to really tricky
  48361. I/O problems, as well as keeping GCC properly working on FreeBSD
  48362. and continuous testing.
  48363. * Craig Rodrigues for processing tons of bug reports.
  48364. * Ola Ro"nnerup for work on mt_alloc.
  48365. * Gavin Romig-Koch for lots of behind the scenes MIPS work.
  48366. * David Ronis inspired and encouraged Craig to rewrite the G77
  48367. documentation in texinfo format by contributing a first pass at a
  48368. translation of the old 'g77-0.5.16/f/DOC' file.
  48369. * Ken Rose for fixes to GCC's delay slot filling code.
  48370. * Ira Rosen for her contributions to the auto-vectorizer.
  48371. * Paul Rubin wrote most of the preprocessor.
  48372. * Pe'tur Runo'lfsson for major performance improvements in C++
  48373. formatted I/O and large file support in C++ filebuf.
  48374. * Chip Salzenberg for libstdc++ patches and improvements to locales,
  48375. traits, Makefiles, libio, libtool hackery, and "long long" support.
  48376. * Juha Sarlin for improvements to the H8 code generator.
  48377. * Greg Satz assisted in making GCC work on HP-UX for the 9000 series
  48378. 300.
  48379. * Roger Sayle for improvements to constant folding and GCC's RTL
  48380. optimizers as well as for fixing numerous bugs.
  48381. * Bradley Schatz for his work on the GCJ FAQ.
  48382. * Peter Schauer wrote the code to allow debugging to work on the
  48383. Alpha.
  48384. * William Schelter did most of the work on the Intel 80386 support.
  48385. * Tobias Schlu"ter for work on GNU Fortran.
  48386. * Bernd Schmidt for various code generation improvements and major
  48387. work in the reload pass, serving as release manager for GCC 2.95.3,
  48388. and work on the Blackfin and C6X ports.
  48389. * Peter Schmid for constant testing of libstdc++--especially
  48390. application testing, going above and beyond what was requested for
  48391. the release criteria--and libstdc++ header file tweaks.
  48392. * Jason Schroeder for jcf-dump patches.
  48393. * Andreas Schwab for his work on the m68k port.
  48394. * Lars Segerlund for work on GNU Fortran.
  48395. * Dodji Seketeli for numerous C++ bug fixes and debug info
  48396. improvements.
  48397. * Tim Shen for major work on '<regex>'.
  48398. * Joel Sherrill for his direction via the steering committee, RTEMS
  48399. contributions and RTEMS testing.
  48400. * Nathan Sidwell for many C++ fixes/improvements.
  48401. * Jeffrey Siegal for helping RMS with the original design of GCC,
  48402. some code which handles the parse tree and RTL data structures,
  48403. constant folding and help with the original VAX & m68k ports.
  48404. * Kenny Simpson for prompting libstdc++ fixes due to defect reports
  48405. from the LWG (thereby keeping GCC in line with updates from the
  48406. ISO).
  48407. * Franz Sirl for his ongoing work with making the PPC port stable for
  48408. GNU/Linux.
  48409. * Andrey Slepuhin for assorted AIX hacking.
  48410. * Trevor Smigiel for contributing the SPU port.
  48411. * Christopher Smith did the port for Convex machines.
  48412. * Danny Smith for his major efforts on the Mingw (and Cygwin) ports.
  48413. Retired from GCC maintainership August 2010, having mentored two
  48414. new maintainers into the role.
  48415. * Randy Smith finished the Sun FPA support.
  48416. * Ed Smith-Rowland for his continuous work on libstdc++-v3, special
  48417. functions, '<random>', and various improvements to C++11 features.
  48418. * Scott Snyder for queue, iterator, istream, and string fixes and
  48419. libstdc++ testsuite entries. Also for providing the patch to G77
  48420. to add rudimentary support for 'INTEGER*1', 'INTEGER*2', and
  48421. 'LOGICAL*1'.
  48422. * Zdenek Sojka for running automated regression testing of GCC and
  48423. reporting numerous bugs.
  48424. * Arseny Solokha for running automated regression testing of GCC and
  48425. reporting numerous bugs.
  48426. * Jayant Sonar for contributing the CR16 port.
  48427. * Brad Spencer for contributions to the GLIBCPP_FORCE_NEW technique.
  48428. * Richard Stallman, for writing the original GCC and launching the
  48429. GNU project.
  48430. * Jan Stein of the Chalmers Computer Society provided support for
  48431. Genix, as well as part of the 32000 machine description.
  48432. * Gerhard Steinmetz for running automated regression testing of GCC
  48433. and reporting numerous bugs.
  48434. * Nigel Stephens for various mips16 related fixes/improvements.
  48435. * Jonathan Stone wrote the machine description for the Pyramid
  48436. computer.
  48437. * Graham Stott for various infrastructure improvements.
  48438. * John Stracke for his Java HTTP protocol fixes.
  48439. * Mike Stump for his Elxsi port, G++ contributions over the years and
  48440. more recently his vxworks contributions
  48441. * Jeff Sturm for Java porting help, bug fixes, and encouragement.
  48442. * Zhendong Su for running automated regression testing of GCC and
  48443. reporting numerous bugs.
  48444. * Chengnian Sun for running automated regression testing of GCC and
  48445. reporting numerous bugs.
  48446. * Shigeya Suzuki for this fixes for the bsdi platforms.
  48447. * Ian Lance Taylor for the Go frontend, the initial mips16 and mips64
  48448. support, general configury hacking, fixincludes, etc.
  48449. * Holger Teutsch provided the support for the Clipper CPU.
  48450. * Gary Thomas for his ongoing work to make the PPC work for
  48451. GNU/Linux.
  48452. * Paul Thomas for contributions to GNU Fortran.
  48453. * Philipp Thomas for random bug fixes throughout the compiler
  48454. * Jason Thorpe for thread support in libstdc++ on NetBSD.
  48455. * Kresten Krab Thorup wrote the run time support for the Objective-C
  48456. language and the fantastic Java bytecode interpreter.
  48457. * Michael Tiemann for random bug fixes, the first instruction
  48458. scheduler, initial C++ support, function integration, NS32k, SPARC
  48459. and M88k machine description work, delay slot scheduling.
  48460. * Andreas Tobler for his work porting libgcj to Darwin.
  48461. * Teemu Torma for thread safe exception handling support.
  48462. * Leonard Tower wrote parts of the parser, RTL generator, and RTL
  48463. definitions, and of the VAX machine description.
  48464. * Daniel Towner and Hariharan Sandanagobalane contributed and
  48465. maintain the picoChip port.
  48466. * Tom Tromey for internationalization support and for his many Java
  48467. contributions and libgcj maintainership.
  48468. * Lassi Tuura for improvements to config.guess to determine HP
  48469. processor types.
  48470. * Petter Urkedal for libstdc++ CXXFLAGS, math, and algorithms fixes.
  48471. * Andy Vaught for the design and initial implementation of the GNU
  48472. Fortran front end.
  48473. * Brent Verner for work with the libstdc++ cshadow files and their
  48474. associated configure steps.
  48475. * Todd Vierling for contributions for NetBSD ports.
  48476. * Andrew Waterman for contributing the RISC-V port, as well as
  48477. maintaining it.
  48478. * Jonathan Wakely for contributing libstdc++ Doxygen notes and XHTML
  48479. guidance and maintaining libstdc++.
  48480. * Dean Wakerley for converting the install documentation from HTML to
  48481. texinfo in time for GCC 3.0.
  48482. * Krister Walfridsson for random bug fixes.
  48483. * Feng Wang for contributions to GNU Fortran.
  48484. * Stephen M. Webb for time and effort on making libstdc++ shadow
  48485. files work with the tricky Solaris 8+ headers, and for pushing the
  48486. build-time header tree. Also, for starting and driving the
  48487. '<regex>' effort.
  48488. * John Wehle for various improvements for the x86 code generator,
  48489. related infrastructure improvements to help x86 code generation,
  48490. value range propagation and other work, WE32k port.
  48491. * Ulrich Weigand for work on the s390 port.
  48492. * Janus Weil for contributions to GNU Fortran.
  48493. * Zack Weinberg for major work on cpplib and various other bug fixes.
  48494. * Matt Welsh for help with Linux Threads support in GCJ.
  48495. * Urban Widmark for help fixing java.io.
  48496. * Mark Wielaard for new Java library code and his work integrating
  48497. with Classpath.
  48498. * Dale Wiles helped port GCC to the Tahoe.
  48499. * Bob Wilson from Tensilica, Inc. for the Xtensa port.
  48500. * Jim Wilson for his direction via the steering committee, tackling
  48501. hard problems in various places that nobody else wanted to work on,
  48502. strength reduction and other loop optimizations.
  48503. * Paul Woegerer and Tal Agmon for the CRX port.
  48504. * Carlo Wood for various fixes.
  48505. * Tom Wood for work on the m88k port.
  48506. * Chung-Ju Wu for his work on the Andes NDS32 port.
  48507. * Canqun Yang for work on GNU Fortran.
  48508. * Masanobu Yuhara of Fujitsu Laboratories implemented the machine
  48509. description for the Tron architecture (specifically, the Gmicro).
  48510. * Kevin Zachmann helped port GCC to the Tahoe.
  48511. * Ayal Zaks for Swing Modulo Scheduling (SMS).
  48512. * Qirun Zhang for running automated regression testing of GCC and
  48513. reporting numerous bugs.
  48514. * Xiaoqiang Zhang for work on GNU Fortran.
  48515. * Gilles Zunino for help porting Java to Irix.
  48516. The following people are recognized for their contributions to GNAT,
  48517. the Ada front end of GCC:
  48518. * Bernard Banner
  48519. * Romain Berrendonner
  48520. * Geert Bosch
  48521. * Emmanuel Briot
  48522. * Joel Brobecker
  48523. * Ben Brosgol
  48524. * Vincent Celier
  48525. * Arnaud Charlet
  48526. * Chien Chieng
  48527. * Cyrille Comar
  48528. * Cyrille Crozes
  48529. * Robert Dewar
  48530. * Gary Dismukes
  48531. * Robert Duff
  48532. * Ed Falis
  48533. * Ramon Fernandez
  48534. * Sam Figueroa
  48535. * Vasiliy Fofanov
  48536. * Michael Friess
  48537. * Franco Gasperoni
  48538. * Ted Giering
  48539. * Matthew Gingell
  48540. * Laurent Guerby
  48541. * Jerome Guitton
  48542. * Olivier Hainque
  48543. * Jerome Hugues
  48544. * Hristian Kirtchev
  48545. * Jerome Lambourg
  48546. * Bruno Leclerc
  48547. * Albert Lee
  48548. * Sean McNeil
  48549. * Javier Miranda
  48550. * Laurent Nana
  48551. * Pascal Obry
  48552. * Dong-Ik Oh
  48553. * Laurent Pautet
  48554. * Brett Porter
  48555. * Thomas Quinot
  48556. * Nicolas Roche
  48557. * Pat Rogers
  48558. * Jose Ruiz
  48559. * Douglas Rupp
  48560. * Sergey Rybin
  48561. * Gail Schenker
  48562. * Ed Schonberg
  48563. * Nicolas Setton
  48564. * Samuel Tardieu
  48565. The following people are recognized for their contributions of new
  48566. features, bug reports, testing and integration of classpath/libgcj for
  48567. GCC version 4.1:
  48568. * Lillian Angel for 'JTree' implementation and lots Free Swing
  48569. additions and bug fixes.
  48570. * Wolfgang Baer for 'GapContent' bug fixes.
  48571. * Anthony Balkissoon for 'JList', Free Swing 1.5 updates and mouse
  48572. event fixes, lots of Free Swing work including 'JTable' editing.
  48573. * Stuart Ballard for RMI constant fixes.
  48574. * Goffredo Baroncelli for 'HTTPURLConnection' fixes.
  48575. * Gary Benson for 'MessageFormat' fixes.
  48576. * Daniel Bonniot for 'Serialization' fixes.
  48577. * Chris Burdess for lots of gnu.xml and http protocol fixes, 'StAX'
  48578. and 'DOM xml:id' support.
  48579. * Ka-Hing Cheung for 'TreePath' and 'TreeSelection' fixes.
  48580. * Archie Cobbs for build fixes, VM interface updates,
  48581. 'URLClassLoader' updates.
  48582. * Kelley Cook for build fixes.
  48583. * Martin Cordova for Suggestions for better 'SocketTimeoutException'.
  48584. * David Daney for 'BitSet' bug fixes, 'HttpURLConnection' rewrite and
  48585. improvements.
  48586. * Thomas Fitzsimmons for lots of upgrades to the gtk+ AWT and Cairo
  48587. 2D support. Lots of imageio framework additions, lots of AWT and
  48588. Free Swing bug fixes.
  48589. * Jeroen Frijters for 'ClassLoader' and nio cleanups, serialization
  48590. fixes, better 'Proxy' support, bug fixes and IKVM integration.
  48591. * Santiago Gala for 'AccessControlContext' fixes.
  48592. * Nicolas Geoffray for 'VMClassLoader' and 'AccessController'
  48593. improvements.
  48594. * David Gilbert for 'basic' and 'metal' icon and plaf support and
  48595. lots of documenting, Lots of Free Swing and metal theme additions.
  48596. 'MetalIconFactory' implementation.
  48597. * Anthony Green for 'MIDI' framework, 'ALSA' and 'DSSI' providers.
  48598. * Andrew Haley for 'Serialization' and 'URLClassLoader' fixes, gcj
  48599. build speedups.
  48600. * Kim Ho for 'JFileChooser' implementation.
  48601. * Andrew John Hughes for 'Locale' and net fixes, URI RFC2986 updates,
  48602. 'Serialization' fixes, 'Properties' XML support and generic branch
  48603. work, VMIntegration guide update.
  48604. * Bastiaan Huisman for 'TimeZone' bug fixing.
  48605. * Andreas Jaeger for mprec updates.
  48606. * Paul Jenner for better '-Werror' support.
  48607. * Ito Kazumitsu for 'NetworkInterface' implementation and updates.
  48608. * Roman Kennke for 'BoxLayout', 'GrayFilter' and 'SplitPane', plus
  48609. bug fixes all over. Lots of Free Swing work including styled text.
  48610. * Simon Kitching for 'String' cleanups and optimization suggestions.
  48611. * Michael Koch for configuration fixes, 'Locale' updates, bug and
  48612. build fixes.
  48613. * Guilhem Lavaux for configuration, thread and channel fixes and
  48614. Kaffe integration. JCL native 'Pointer' updates. Logger bug
  48615. fixes.
  48616. * David Lichteblau for JCL support library global/local reference
  48617. cleanups.
  48618. * Aaron Luchko for JDWP updates and documentation fixes.
  48619. * Ziga Mahkovec for 'Graphics2D' upgraded to Cairo 0.5 and new regex
  48620. features.
  48621. * Sven de Marothy for BMP imageio support, CSS and 'TextLayout'
  48622. fixes. 'GtkImage' rewrite, 2D, awt, free swing and date/time fixes
  48623. and implementing the Qt4 peers.
  48624. * Casey Marshall for crypto algorithm fixes, 'FileChannel' lock,
  48625. 'SystemLogger' and 'FileHandler' rotate implementations, NIO
  48626. 'FileChannel.map' support, security and policy updates.
  48627. * Bryce McKinlay for RMI work.
  48628. * Audrius Meskauskas for lots of Free Corba, RMI and HTML work plus
  48629. testing and documenting.
  48630. * Kalle Olavi Niemitalo for build fixes.
  48631. * Rainer Orth for build fixes.
  48632. * Andrew Overholt for 'File' locking fixes.
  48633. * Ingo Proetel for 'Image', 'Logger' and 'URLClassLoader' updates.
  48634. * Olga Rodimina for 'MenuSelectionManager' implementation.
  48635. * Jan Roehrich for 'BasicTreeUI' and 'JTree' fixes.
  48636. * Julian Scheid for documentation updates and gjdoc support.
  48637. * Christian Schlichtherle for zip fixes and cleanups.
  48638. * Robert Schuster for documentation updates and beans fixes,
  48639. 'TreeNode' enumerations and 'ActionCommand' and various fixes, XML
  48640. and URL, AWT and Free Swing bug fixes.
  48641. * Keith Seitz for lots of JDWP work.
  48642. * Christian Thalinger for 64-bit cleanups, Configuration and VM
  48643. interface fixes and 'CACAO' integration, 'fdlibm' updates.
  48644. * Gael Thomas for 'VMClassLoader' boot packages support suggestions.
  48645. * Andreas Tobler for Darwin and Solaris testing and fixing, 'Qt4'
  48646. support for Darwin/OS X, 'Graphics2D' support, 'gtk+' updates.
  48647. * Dalibor Topic for better 'DEBUG' support, build cleanups and Kaffe
  48648. integration. 'Qt4' build infrastructure, 'SHA1PRNG' and
  48649. 'GdkPixbugDecoder' updates.
  48650. * Tom Tromey for Eclipse integration, generics work, lots of bug
  48651. fixes and gcj integration including coordinating The Big Merge.
  48652. * Mark Wielaard for bug fixes, packaging and release management,
  48653. 'Clipboard' implementation, system call interrupts and network
  48654. timeouts and 'GdkPixpufDecoder' fixes.
  48655. In addition to the above, all of which also contributed time and energy
  48656. in testing GCC, we would like to thank the following for their
  48657. contributions to testing:
  48658. * Michael Abd-El-Malek
  48659. * Thomas Arend
  48660. * Bonzo Armstrong
  48661. * Steven Ashe
  48662. * Chris Baldwin
  48663. * David Billinghurst
  48664. * Jim Blandy
  48665. * Stephane Bortzmeyer
  48666. * Horst von Brand
  48667. * Frank Braun
  48668. * Rodney Brown
  48669. * Sidney Cadot
  48670. * Bradford Castalia
  48671. * Robert Clark
  48672. * Jonathan Corbet
  48673. * Ralph Doncaster
  48674. * Richard Emberson
  48675. * Levente Farkas
  48676. * Graham Fawcett
  48677. * Mark Fernyhough
  48678. * Robert A. French
  48679. * Jo"rgen Freyh
  48680. * Mark K. Gardner
  48681. * Charles-Antoine Gauthier
  48682. * Yung Shing Gene
  48683. * David Gilbert
  48684. * Simon Gornall
  48685. * Fred Gray
  48686. * John Griffin
  48687. * Patrik Hagglund
  48688. * Phil Hargett
  48689. * Amancio Hasty
  48690. * Takafumi Hayashi
  48691. * Bryan W. Headley
  48692. * Kevin B. Hendricks
  48693. * Joep Jansen
  48694. * Christian Joensson
  48695. * Michel Kern
  48696. * David Kidd
  48697. * Tobias Kuipers
  48698. * Anand Krishnaswamy
  48699. * A. O. V. Le Blanc
  48700. * llewelly
  48701. * Damon Love
  48702. * Brad Lucier
  48703. * Matthias Klose
  48704. * Martin Knoblauch
  48705. * Rick Lutowski
  48706. * Jesse Macnish
  48707. * Stefan Morrell
  48708. * Anon A. Mous
  48709. * Matthias Mueller
  48710. * Pekka Nikander
  48711. * Rick Niles
  48712. * Jon Olson
  48713. * Magnus Persson
  48714. * Chris Pollard
  48715. * Richard Polton
  48716. * Derk Reefman
  48717. * David Rees
  48718. * Paul Reilly
  48719. * Tom Reilly
  48720. * Torsten Rueger
  48721. * Danny Sadinoff
  48722. * Marc Schifer
  48723. * Erik Schnetter
  48724. * Wayne K. Schroll
  48725. * David Schuler
  48726. * Vin Shelton
  48727. * Tim Souder
  48728. * Adam Sulmicki
  48729. * Bill Thorson
  48730. * George Talbot
  48731. * Pedro A. M. Vazquez
  48732. * Gregory Warnes
  48733. * Ian Watson
  48734. * David E. Young
  48735. * And many others
  48736. And finally we'd like to thank everyone who uses the compiler, provides
  48737. feedback and generally reminds us why we're doing this work in the first
  48738. place.
  48739. 
  48740. File: gcc.info, Node: Option Index, Next: Keyword Index, Prev: Contributors, Up: Top
  48741. Option Index
  48742. ************
  48743. GCC's command line options are indexed here without any initial '-' or
  48744. '--'. Where an option has both positive and negative forms (such as
  48745. '-fOPTION' and '-fno-OPTION'), relevant entries in the manual are
  48746. indexed under the most appropriate form; it may sometimes be useful to
  48747. look up both forms.
  48748. �[index�]
  48749. * Menu:
  48750. * ###: Overall Options. (line 214)
  48751. * 80387: x86 Options. (line 520)
  48752. * A: Preprocessor Options.
  48753. (line 332)
  48754. * allowable_client: Darwin Options. (line 196)
  48755. * all_load: Darwin Options. (line 110)
  48756. * analyzer: Static Analyzer Options.
  48757. (line 7)
  48758. * ansi: Standards. (line 13)
  48759. * ansi <1>: C Dialect Options. (line 11)
  48760. * ansi <2>: Other Builtins. (line 31)
  48761. * ansi <3>: Non-bugs. (line 107)
  48762. * arch_errors_fatal: Darwin Options. (line 114)
  48763. * aux-info: C Dialect Options. (line 229)
  48764. * B: Directory Options. (line 122)
  48765. * Bdynamic: VxWorks Options. (line 22)
  48766. * bind_at_load: Darwin Options. (line 118)
  48767. * Bstatic: VxWorks Options. (line 22)
  48768. * bundle: Darwin Options. (line 123)
  48769. * bundle_loader: Darwin Options. (line 127)
  48770. * c: Overall Options. (line 169)
  48771. * C: Preprocessor Options.
  48772. (line 341)
  48773. * c <1>: Link Options. (line 20)
  48774. * CC: Preprocessor Options.
  48775. (line 353)
  48776. * client_name: Darwin Options. (line 196)
  48777. * compatibility_version: Darwin Options. (line 196)
  48778. * coverage: Instrumentation Options.
  48779. (line 50)
  48780. * current_version: Darwin Options. (line 196)
  48781. * D: Preprocessor Options.
  48782. (line 19)
  48783. * d: Preprocessor Options.
  48784. (line 407)
  48785. * d <1>: Developer Options. (line 52)
  48786. * da: Developer Options. (line 246)
  48787. * dA: Developer Options. (line 249)
  48788. * dD: Preprocessor Options.
  48789. (line 431)
  48790. * dD <1>: Developer Options. (line 253)
  48791. * dead_strip: Darwin Options. (line 196)
  48792. * dependency-file: Darwin Options. (line 196)
  48793. * dH: Developer Options. (line 257)
  48794. * dI: Preprocessor Options.
  48795. (line 441)
  48796. * dM: Preprocessor Options.
  48797. (line 416)
  48798. * dN: Preprocessor Options.
  48799. (line 437)
  48800. * dp: Developer Options. (line 260)
  48801. * dP: Developer Options. (line 265)
  48802. * dU: Preprocessor Options.
  48803. (line 445)
  48804. * dump-analyzer-exploded-nodes: Static Analyzer Options.
  48805. (line 290)
  48806. * dump-analyzer-exploded-nodes-2: Static Analyzer Options.
  48807. (line 294)
  48808. * dump-analyzer-exploded-nodes-3: Static Analyzer Options.
  48809. (line 298)
  48810. * dumpfullversion: Developer Options. (line 1025)
  48811. * dumpmachine: Developer Options. (line 1013)
  48812. * dumpspecs: Developer Options. (line 1030)
  48813. * dumpversion: Developer Options. (line 1017)
  48814. * dx: Developer Options. (line 269)
  48815. * dylib_file: Darwin Options. (line 196)
  48816. * dylinker_install_name: Darwin Options. (line 196)
  48817. * dynamic: Darwin Options. (line 196)
  48818. * dynamiclib: Darwin Options. (line 131)
  48819. * E: Overall Options. (line 190)
  48820. * E <1>: Link Options. (line 20)
  48821. * e: Link Options. (line 169)
  48822. * EB: ARC Options. (line 597)
  48823. * EB <1>: C-SKY Options. (line 29)
  48824. * EB <2>: MIPS Options. (line 7)
  48825. * EL: ARC Options. (line 606)
  48826. * EL <1>: C-SKY Options. (line 31)
  48827. * EL <2>: MIPS Options. (line 10)
  48828. * entry: Link Options. (line 169)
  48829. * exported_symbols_list: Darwin Options. (line 196)
  48830. * F: Darwin Options. (line 31)
  48831. * fabi-compat-version: C++ Dialect Options.
  48832. (line 88)
  48833. * fabi-version: C++ Dialect Options.
  48834. (line 24)
  48835. * faccess-control: C++ Dialect Options.
  48836. (line 104)
  48837. * fada-spec-parent: Overall Options. (line 397)
  48838. * faggressive-loop-optimizations: Optimize Options. (line 546)
  48839. * falign-functions: Optimize Options. (line 1668)
  48840. * falign-jumps: Optimize Options. (line 1750)
  48841. * falign-labels: Optimize Options. (line 1709)
  48842. * falign-loops: Optimize Options. (line 1729)
  48843. * faligned-new: C++ Dialect Options.
  48844. (line 108)
  48845. * fallow-parameterless-variadic-functions: C Dialect Options.
  48846. (line 245)
  48847. * fallow-store-data-races: Optimize Options. (line 1770)
  48848. * fanalyzer: Static Analyzer Options.
  48849. (line 7)
  48850. * fanalyzer-call-summaries: Static Analyzer Options.
  48851. (line 174)
  48852. * fanalyzer-checker: Static Analyzer Options.
  48853. (line 183)
  48854. * fanalyzer-fine-grained: Static Analyzer Options.
  48855. (line 191)
  48856. * fanalyzer-show-duplicate-count: Static Analyzer Options.
  48857. (line 201)
  48858. * fanalyzer-state-merge: Static Analyzer Options.
  48859. (line 208)
  48860. * fanalyzer-state-purge: Static Analyzer Options.
  48861. (line 216)
  48862. * fanalyzer-transitivity: Static Analyzer Options.
  48863. (line 227)
  48864. * fasan-shadow-offset: Instrumentation Options.
  48865. (line 453)
  48866. * fasm: C Dialect Options. (line 252)
  48867. * fassociative-math: Optimize Options. (line 2283)
  48868. * fasynchronous-unwind-tables: Code Gen Options. (line 156)
  48869. * fauto-inc-dec: Optimize Options. (line 568)
  48870. * fauto-profile: Optimize Options. (line 2158)
  48871. * fbranch-count-reg: Optimize Options. (line 420)
  48872. * fbranch-probabilities: Optimize Options. (line 2429)
  48873. * fbuiltin: C Dialect Options. (line 266)
  48874. * fcall-saved: Code Gen Options. (line 448)
  48875. * fcall-used: Code Gen Options. (line 434)
  48876. * fcaller-saves: Optimize Options. (line 926)
  48877. * fcallgraph-info: Developer Options. (line 34)
  48878. * fcf-protection: Instrumentation Options.
  48879. (line 526)
  48880. * fchar8_t: C++ Dialect Options.
  48881. (line 118)
  48882. * fcheck-new: C++ Dialect Options.
  48883. (line 161)
  48884. * fchecking: Developer Options. (line 705)
  48885. * fcode-hoisting: Optimize Options. (line 967)
  48886. * fcombine-stack-adjustments: Optimize Options. (line 938)
  48887. * fcommon: Code Gen Options. (line 231)
  48888. * fcommon <1>: Common Variable Attributes.
  48889. (line 176)
  48890. * fcompare-debug: Developer Options. (line 799)
  48891. * fcompare-debug-second: Developer Options. (line 825)
  48892. * fcompare-elim: Optimize Options. (line 2088)
  48893. * fconcepts: C++ Dialect Options.
  48894. (line 172)
  48895. * fconcepts-ts: C++ Dialect Options.
  48896. (line 172)
  48897. * fcond-mismatch: C Dialect Options. (line 396)
  48898. * fconserve-stack: Optimize Options. (line 957)
  48899. * fconstant-string-class: Objective-C and Objective-C++ Dialect Options.
  48900. (line 30)
  48901. * fconstexpr-cache-depth: C++ Dialect Options.
  48902. (line 188)
  48903. * fconstexpr-depth: C++ Dialect Options.
  48904. (line 182)
  48905. * fconstexpr-loop-limit: C++ Dialect Options.
  48906. (line 198)
  48907. * fconstexpr-ops-limit: C++ Dialect Options.
  48908. (line 203)
  48909. * fcoroutines: C++ Dialect Options.
  48910. (line 212)
  48911. * fcprop-registers: Optimize Options. (line 2100)
  48912. * fcrossjumping: Optimize Options. (line 561)
  48913. * fcse-follow-jumps: Optimize Options. (line 480)
  48914. * fcse-skip-blocks: Optimize Options. (line 489)
  48915. * fcx-fortran-rules: Optimize Options. (line 2416)
  48916. * fcx-limited-range: Optimize Options. (line 2404)
  48917. * fdata-sections: Optimize Options. (line 2567)
  48918. * fdbg-cnt: Developer Options. (line 935)
  48919. * fdbg-cnt-list: Developer Options. (line 932)
  48920. * fdce: Optimize Options. (line 574)
  48921. * fdebug-cpp: Preprocessor Options.
  48922. (line 452)
  48923. * fdebug-prefix-map: Debugging Options. (line 141)
  48924. * fdebug-types-section: Debugging Options. (line 192)
  48925. * fdeclone-ctor-dtor: Optimize Options. (line 597)
  48926. * fdefer-pop: Optimize Options. (line 221)
  48927. * fdelayed-branch: Optimize Options. (line 750)
  48928. * fdelete-dead-exceptions: Code Gen Options. (line 141)
  48929. * fdelete-null-pointer-checks: Optimize Options. (line 608)
  48930. * fdevirtualize: Optimize Options. (line 629)
  48931. * fdevirtualize-at-ltrans: Optimize Options. (line 646)
  48932. * fdevirtualize-speculatively: Optimize Options. (line 636)
  48933. * fdiagnostics-color: Diagnostic Message Formatting Options.
  48934. (line 40)
  48935. * fdiagnostics-format: Diagnostic Message Formatting Options.
  48936. (line 398)
  48937. * fdiagnostics-generate-patch: Diagnostic Message Formatting Options.
  48938. (line 240)
  48939. * fdiagnostics-minimum-margin-width: Diagnostic Message Formatting Options.
  48940. (line 209)
  48941. * fdiagnostics-parseable-fixits: Diagnostic Message Formatting Options.
  48942. (line 213)
  48943. * fdiagnostics-path-format: Diagnostic Message Formatting Options.
  48944. (line 290)
  48945. * fdiagnostics-show-caret: Diagnostic Message Formatting Options.
  48946. (line 173)
  48947. * fdiagnostics-show-cwe: Diagnostic Message Formatting Options.
  48948. (line 195)
  48949. * fdiagnostics-show-labels: Diagnostic Message Formatting Options.
  48950. (line 182)
  48951. * fdiagnostics-show-line-numbers: Diagnostic Message Formatting Options.
  48952. (line 204)
  48953. * fdiagnostics-show-location: Diagnostic Message Formatting Options.
  48954. (line 25)
  48955. * fdiagnostics-show-option: Diagnostic Message Formatting Options.
  48956. (line 167)
  48957. * fdiagnostics-show-path-depths: Diagnostic Message Formatting Options.
  48958. (line 381)
  48959. * fdiagnostics-show-template-tree: Diagnostic Message Formatting Options.
  48960. (line 258)
  48961. * fdiagnostics-urls: Diagnostic Message Formatting Options.
  48962. (line 129)
  48963. * fdirectives-only: Preprocessor Options.
  48964. (line 202)
  48965. * fdisable-: Developer Options. (line 636)
  48966. * fdollars-in-identifiers: Preprocessor Options.
  48967. (line 223)
  48968. * fdollars-in-identifiers <1>: Interoperation. (line 141)
  48969. * fdpic: SH Options. (line 388)
  48970. * fdse: Optimize Options. (line 578)
  48971. * fdump-ada-spec: Overall Options. (line 392)
  48972. * fdump-analyzer: Static Analyzer Options.
  48973. (line 272)
  48974. * fdump-analyzer-callgraph: Static Analyzer Options.
  48975. (line 281)
  48976. * fdump-analyzer-exploded-graph: Static Analyzer Options.
  48977. (line 285)
  48978. * fdump-analyzer-state-purge: Static Analyzer Options.
  48979. (line 303)
  48980. * fdump-analyzer-stderr: Static Analyzer Options.
  48981. (line 277)
  48982. * fdump-analyzer-supergraph: Static Analyzer Options.
  48983. (line 309)
  48984. * fdump-debug: Developer Options. (line 273)
  48985. * fdump-earlydebug: Developer Options. (line 277)
  48986. * fdump-final-insns: Developer Options. (line 793)
  48987. * fdump-go-spec: Overall Options. (line 401)
  48988. * fdump-ipa: Developer Options. (line 303)
  48989. * fdump-lang: Developer Options. (line 335)
  48990. * fdump-lang-all: Developer Options. (line 335)
  48991. * fdump-noaddr: Developer Options. (line 281)
  48992. * fdump-passes: Developer Options. (line 353)
  48993. * fdump-rtl-alignments: Developer Options. (line 65)
  48994. * fdump-rtl-all: Developer Options. (line 246)
  48995. * fdump-rtl-asmcons: Developer Options. (line 68)
  48996. * fdump-rtl-auto_inc_dec: Developer Options. (line 72)
  48997. * fdump-rtl-barriers: Developer Options. (line 76)
  48998. * fdump-rtl-bbpart: Developer Options. (line 79)
  48999. * fdump-rtl-bbro: Developer Options. (line 82)
  49000. * fdump-rtl-btl2: Developer Options. (line 86)
  49001. * fdump-rtl-btl2 <1>: Developer Options. (line 86)
  49002. * fdump-rtl-bypass: Developer Options. (line 90)
  49003. * fdump-rtl-ce1: Developer Options. (line 101)
  49004. * fdump-rtl-ce2: Developer Options. (line 101)
  49005. * fdump-rtl-ce3: Developer Options. (line 101)
  49006. * fdump-rtl-combine: Developer Options. (line 93)
  49007. * fdump-rtl-compgotos: Developer Options. (line 96)
  49008. * fdump-rtl-cprop_hardreg: Developer Options. (line 105)
  49009. * fdump-rtl-csa: Developer Options. (line 108)
  49010. * fdump-rtl-cse1: Developer Options. (line 112)
  49011. * fdump-rtl-cse2: Developer Options. (line 112)
  49012. * fdump-rtl-dbr: Developer Options. (line 119)
  49013. * fdump-rtl-dce: Developer Options. (line 116)
  49014. * fdump-rtl-dce1: Developer Options. (line 123)
  49015. * fdump-rtl-dce2: Developer Options. (line 123)
  49016. * fdump-rtl-dfinish: Developer Options. (line 242)
  49017. * fdump-rtl-dfinit: Developer Options. (line 242)
  49018. * fdump-rtl-eh: Developer Options. (line 127)
  49019. * fdump-rtl-eh_ranges: Developer Options. (line 130)
  49020. * fdump-rtl-expand: Developer Options. (line 133)
  49021. * fdump-rtl-fwprop1: Developer Options. (line 137)
  49022. * fdump-rtl-fwprop2: Developer Options. (line 137)
  49023. * fdump-rtl-gcse1: Developer Options. (line 142)
  49024. * fdump-rtl-gcse2: Developer Options. (line 142)
  49025. * fdump-rtl-init-regs: Developer Options. (line 146)
  49026. * fdump-rtl-initvals: Developer Options. (line 149)
  49027. * fdump-rtl-into_cfglayout: Developer Options. (line 152)
  49028. * fdump-rtl-ira: Developer Options. (line 155)
  49029. * fdump-rtl-jump: Developer Options. (line 158)
  49030. * fdump-rtl-loop2: Developer Options. (line 161)
  49031. * fdump-rtl-mach: Developer Options. (line 165)
  49032. * fdump-rtl-mode_sw: Developer Options. (line 169)
  49033. * fdump-rtl-outof_cfglayout: Developer Options. (line 175)
  49034. * fdump-rtl-PASS: Developer Options. (line 52)
  49035. * fdump-rtl-peephole2: Developer Options. (line 178)
  49036. * fdump-rtl-postreload: Developer Options. (line 181)
  49037. * fdump-rtl-pro_and_epilogue: Developer Options. (line 184)
  49038. * fdump-rtl-ree: Developer Options. (line 192)
  49039. * fdump-rtl-regclass: Developer Options. (line 242)
  49040. * fdump-rtl-rnreg: Developer Options. (line 172)
  49041. * fdump-rtl-sched1: Developer Options. (line 188)
  49042. * fdump-rtl-sched2: Developer Options. (line 188)
  49043. * fdump-rtl-seqabstr: Developer Options. (line 195)
  49044. * fdump-rtl-shorten: Developer Options. (line 198)
  49045. * fdump-rtl-sibling: Developer Options. (line 201)
  49046. * fdump-rtl-sms: Developer Options. (line 212)
  49047. * fdump-rtl-split1: Developer Options. (line 208)
  49048. * fdump-rtl-split2: Developer Options. (line 208)
  49049. * fdump-rtl-split3: Developer Options. (line 208)
  49050. * fdump-rtl-split4: Developer Options. (line 208)
  49051. * fdump-rtl-split5: Developer Options. (line 208)
  49052. * fdump-rtl-stack: Developer Options. (line 216)
  49053. * fdump-rtl-subreg1: Developer Options. (line 222)
  49054. * fdump-rtl-subreg2: Developer Options. (line 222)
  49055. * fdump-rtl-subregs_of_mode_finish: Developer Options. (line 242)
  49056. * fdump-rtl-subregs_of_mode_init: Developer Options. (line 242)
  49057. * fdump-rtl-unshare: Developer Options. (line 226)
  49058. * fdump-rtl-vartrack: Developer Options. (line 229)
  49059. * fdump-rtl-vregs: Developer Options. (line 232)
  49060. * fdump-rtl-web: Developer Options. (line 235)
  49061. * fdump-statistics: Developer Options. (line 357)
  49062. * fdump-tree: Developer Options. (line 370)
  49063. * fdump-tree-all: Developer Options. (line 370)
  49064. * fdump-unnumbered: Developer Options. (line 291)
  49065. * fdump-unnumbered-links: Developer Options. (line 297)
  49066. * fdwarf2-cfi-asm: Debugging Options. (line 397)
  49067. * fearly-inlining: Optimize Options. (line 320)
  49068. * felide-constructors: C++ Dialect Options.
  49069. (line 215)
  49070. * felide-type: Diagnostic Message Formatting Options.
  49071. (line 278)
  49072. * feliminate-unused-debug-symbols: Debugging Options. (line 121)
  49073. * feliminate-unused-debug-types: Debugging Options. (line 401)
  49074. * femit-class-debug-always: Debugging Options. (line 126)
  49075. * femit-struct-debug-baseonly: Debugging Options. (line 328)
  49076. * femit-struct-debug-detailed: Debugging Options. (line 355)
  49077. * femit-struct-debug-reduced: Debugging Options. (line 341)
  49078. * fenable-: Developer Options. (line 636)
  49079. * fenforce-eh-specs: C++ Dialect Options.
  49080. (line 226)
  49081. * fexceptions: Code Gen Options. (line 119)
  49082. * fexcess-precision: Optimize Options. (line 2209)
  49083. * fexec-charset: Preprocessor Options.
  49084. (line 270)
  49085. * fexpensive-optimizations: Optimize Options. (line 653)
  49086. * fext-numeric-literals: C++ Dialect Options.
  49087. (line 478)
  49088. * fextended-identifiers: Preprocessor Options.
  49089. (line 226)
  49090. * fextern-tls-init: C++ Dialect Options.
  49091. (line 236)
  49092. * ffast-math: Optimize Options. (line 2233)
  49093. * ffat-lto-objects: Optimize Options. (line 2065)
  49094. * ffile-prefix-map: Overall Options. (line 372)
  49095. * ffinite-loops: Optimize Options. (line 1207)
  49096. * ffinite-math-only: Optimize Options. (line 2310)
  49097. * ffix-and-continue: Darwin Options. (line 104)
  49098. * ffixed: Code Gen Options. (line 422)
  49099. * ffloat-store: Optimize Options. (line 2195)
  49100. * ffloat-store <1>: Disappointments. (line 77)
  49101. * fforward-propagate: Optimize Options. (line 228)
  49102. * ffp-contract: Optimize Options. (line 237)
  49103. * ffp-int-builtin-inexact: Optimize Options. (line 2382)
  49104. * ffreestanding: Standards. (line 99)
  49105. * ffreestanding <1>: C Dialect Options. (line 314)
  49106. * ffreestanding <2>: Warning Options. (line 412)
  49107. * ffreestanding <3>: Common Function Attributes.
  49108. (line 421)
  49109. * ffunction-cse: Optimize Options. (line 434)
  49110. * ffunction-sections: Optimize Options. (line 2567)
  49111. * fgcse: Optimize Options. (line 503)
  49112. * fgcse-after-reload: Optimize Options. (line 539)
  49113. * fgcse-las: Optimize Options. (line 532)
  49114. * fgcse-lm: Optimize Options. (line 514)
  49115. * fgcse-sm: Optimize Options. (line 523)
  49116. * fgimple: C Dialect Options. (line 300)
  49117. * fgnu-keywords: C++ Dialect Options.
  49118. (line 256)
  49119. * fgnu-runtime: Objective-C and Objective-C++ Dialect Options.
  49120. (line 39)
  49121. * fgnu-tm: C Dialect Options. (line 353)
  49122. * fgnu-unique: Code Gen Options. (line 162)
  49123. * fgnu89-inline: C Dialect Options. (line 190)
  49124. * fgraphite-identity: Optimize Options. (line 1249)
  49125. * fguess-branch-probability: Optimize Options. (line 1548)
  49126. * fhoist-adjacent-loads: Optimize Options. (line 997)
  49127. * fhosted: C Dialect Options. (line 306)
  49128. * fident: Code Gen Options. (line 252)
  49129. * fif-conversion: Optimize Options. (line 582)
  49130. * fif-conversion2: Optimize Options. (line 591)
  49131. * fiji: AMD GCN Options. (line 13)
  49132. * filelist: Darwin Options. (line 196)
  49133. * fimplement-inlines: C++ Dialect Options.
  49134. (line 276)
  49135. * fimplicit-inline-templates: C++ Dialect Options.
  49136. (line 270)
  49137. * fimplicit-templates: C++ Dialect Options.
  49138. (line 262)
  49139. * findirect-data: Darwin Options. (line 104)
  49140. * findirect-inlining: Optimize Options. (line 292)
  49141. * finhibit-size-directive: Code Gen Options. (line 255)
  49142. * finline: Optimize Options. (line 275)
  49143. * finline-functions: Optimize Options. (line 300)
  49144. * finline-functions-called-once: Optimize Options. (line 312)
  49145. * finline-limit: Optimize Options. (line 336)
  49146. * finline-small-functions: Optimize Options. (line 283)
  49147. * finput-charset: Preprocessor Options.
  49148. (line 283)
  49149. * finstrument-functions: Instrumentation Options.
  49150. (line 728)
  49151. * finstrument-functions <1>: Common Function Attributes.
  49152. (line 691)
  49153. * finstrument-functions-exclude-file-list: Instrumentation Options.
  49154. (line 764)
  49155. * finstrument-functions-exclude-function-list: Instrumentation Options.
  49156. (line 785)
  49157. * fipa-bit-cp: Optimize Options. (line 1057)
  49158. * fipa-cp: Optimize Options. (line 1038)
  49159. * fipa-cp-clone: Optimize Options. (line 1047)
  49160. * fipa-icf: Optimize Options. (line 1067)
  49161. * fipa-profile: Optimize Options. (line 1030)
  49162. * fipa-pta: Optimize Options. (line 1024)
  49163. * fipa-pure-const: Optimize Options. (line 1008)
  49164. * fipa-ra: Optimize Options. (line 944)
  49165. * fipa-reference: Optimize Options. (line 1012)
  49166. * fipa-reference-addressable: Optimize Options. (line 1016)
  49167. * fipa-sra: Optimize Options. (line 329)
  49168. * fipa-stack-alignment: Optimize Options. (line 1020)
  49169. * fipa-vrp: Optimize Options. (line 1062)
  49170. * fira-algorithm: Optimize Options. (line 687)
  49171. * fira-hoist-pressure: Optimize Options. (line 716)
  49172. * fira-loop-pressure: Optimize Options. (line 723)
  49173. * fira-region: Optimize Options. (line 695)
  49174. * fira-share-save-slots: Optimize Options. (line 731)
  49175. * fira-share-spill-slots: Optimize Options. (line 737)
  49176. * fira-verbose: Developer Options. (line 862)
  49177. * fisolate-erroneous-paths-attribute: Optimize Options. (line 1149)
  49178. * fisolate-erroneous-paths-dereference: Optimize Options. (line 1141)
  49179. * fivar-visibility: Objective-C and Objective-C++ Dialect Options.
  49180. (line 161)
  49181. * fivopts: Optimize Options. (line 1374)
  49182. * fjump-tables: Code Gen Options. (line 414)
  49183. * fkeep-inline-dllexport: Optimize Options. (line 361)
  49184. * fkeep-inline-functions: Optimize Options. (line 367)
  49185. * fkeep-inline-functions <1>: Inline. (line 51)
  49186. * fkeep-static-consts: Optimize Options. (line 378)
  49187. * fkeep-static-functions: Optimize Options. (line 374)
  49188. * flat_namespace: Darwin Options. (line 196)
  49189. * flax-vector-conversions: C Dialect Options. (line 401)
  49190. * fleading-underscore: Code Gen Options. (line 478)
  49191. * flifetime-dse: Optimize Options. (line 667)
  49192. * flinker-output: Link Options. (line 25)
  49193. * flive-patching: Optimize Options. (line 1081)
  49194. * flive-range-shrinkage: Optimize Options. (line 682)
  49195. * flocal-ivars: Objective-C and Objective-C++ Dialect Options.
  49196. (line 152)
  49197. * floop-block: Optimize Options. (line 1243)
  49198. * floop-interchange: Optimize Options. (line 1327)
  49199. * floop-nest-optimize: Optimize Options. (line 1257)
  49200. * floop-parallelize-all: Optimize Options. (line 1263)
  49201. * floop-strip-mine: Optimize Options. (line 1243)
  49202. * floop-unroll-and-jam: Optimize Options. (line 1344)
  49203. * flra-remat: Optimize Options. (line 743)
  49204. * flto: Optimize Options. (line 1817)
  49205. * flto-compression-level: Optimize Options. (line 2039)
  49206. * flto-partition: Optimize Options. (line 2025)
  49207. * flto-report: Developer Options. (line 868)
  49208. * flto-report-wpa: Developer Options. (line 876)
  49209. * fmacro-prefix-map: Preprocessor Options.
  49210. (line 261)
  49211. * fmath-errno: Optimize Options. (line 2247)
  49212. * fmax-errors: Warning Options. (line 18)
  49213. * fmax-include-depth: Preprocessor Options.
  49214. (line 235)
  49215. * fmem-report: Developer Options. (line 880)
  49216. * fmem-report-wpa: Developer Options. (line 884)
  49217. * fmerge-all-constants: Optimize Options. (line 397)
  49218. * fmerge-constants: Optimize Options. (line 387)
  49219. * fmerge-debug-strings: Debugging Options. (line 134)
  49220. * fmessage-length: Diagnostic Message Formatting Options.
  49221. (line 14)
  49222. * fmodulo-sched: Optimize Options. (line 408)
  49223. * fmodulo-sched-allow-regmoves: Optimize Options. (line 413)
  49224. * fmove-loop-invariants: Optimize Options. (line 2527)
  49225. * fms-extensions: C Dialect Options. (line 368)
  49226. * fms-extensions <1>: C++ Dialect Options.
  49227. (line 281)
  49228. * fms-extensions <2>: Unnamed Fields. (line 36)
  49229. * fnew-inheriting-ctors: C++ Dialect Options.
  49230. (line 286)
  49231. * fnew-ttp-matching: C++ Dialect Options.
  49232. (line 292)
  49233. * fnext-runtime: Objective-C and Objective-C++ Dialect Options.
  49234. (line 43)
  49235. * fnil-receivers: Objective-C and Objective-C++ Dialect Options.
  49236. (line 49)
  49237. * fno-access-control: C++ Dialect Options.
  49238. (line 104)
  49239. * fno-allocation-dce: Optimize Options. (line 1767)
  49240. * fno-analyzer: Static Analyzer Options.
  49241. (line 7)
  49242. * fno-analyzer-call-summaries: Static Analyzer Options.
  49243. (line 174)
  49244. * fno-analyzer-fine-grained: Static Analyzer Options.
  49245. (line 191)
  49246. * fno-analyzer-show-duplicate-count: Static Analyzer Options.
  49247. (line 201)
  49248. * fno-analyzer-state-merge: Static Analyzer Options.
  49249. (line 208)
  49250. * fno-analyzer-state-purge: Static Analyzer Options.
  49251. (line 216)
  49252. * fno-analyzer-transitivity: Static Analyzer Options.
  49253. (line 227)
  49254. * fno-asm: C Dialect Options. (line 252)
  49255. * fno-branch-count-reg: Optimize Options. (line 420)
  49256. * fno-builtin: C Dialect Options. (line 266)
  49257. * fno-builtin <1>: Warning Options. (line 412)
  49258. * fno-builtin <2>: Common Function Attributes.
  49259. (line 421)
  49260. * fno-builtin <3>: Other Builtins. (line 21)
  49261. * fno-canonical-system-headers: Preprocessor Options.
  49262. (line 231)
  49263. * fno-char8_t: C++ Dialect Options.
  49264. (line 118)
  49265. * fno-checking: Developer Options. (line 705)
  49266. * fno-common: Code Gen Options. (line 231)
  49267. * fno-common <1>: Common Variable Attributes.
  49268. (line 176)
  49269. * fno-compare-debug: Developer Options. (line 799)
  49270. * fno-debug-types-section: Debugging Options. (line 192)
  49271. * fno-default-inline: Inline. (line 68)
  49272. * fno-defer-pop: Optimize Options. (line 221)
  49273. * fno-diagnostics-show-caret: Diagnostic Message Formatting Options.
  49274. (line 173)
  49275. * fno-diagnostics-show-cwe: Diagnostic Message Formatting Options.
  49276. (line 195)
  49277. * fno-diagnostics-show-labels: Diagnostic Message Formatting Options.
  49278. (line 182)
  49279. * fno-diagnostics-show-line-numbers: Diagnostic Message Formatting Options.
  49280. (line 204)
  49281. * fno-diagnostics-show-option: Diagnostic Message Formatting Options.
  49282. (line 167)
  49283. * fno-dwarf2-cfi-asm: Debugging Options. (line 397)
  49284. * fno-elide-constructors: C++ Dialect Options.
  49285. (line 215)
  49286. * fno-elide-type: Diagnostic Message Formatting Options.
  49287. (line 278)
  49288. * fno-eliminate-unused-debug-symbols: Debugging Options. (line 121)
  49289. * fno-eliminate-unused-debug-types: Debugging Options. (line 401)
  49290. * fno-enforce-eh-specs: C++ Dialect Options.
  49291. (line 226)
  49292. * fno-ext-numeric-literals: C++ Dialect Options.
  49293. (line 478)
  49294. * fno-extern-tls-init: C++ Dialect Options.
  49295. (line 236)
  49296. * fno-finite-loops: Optimize Options. (line 1207)
  49297. * fno-fp-int-builtin-inexact: Optimize Options. (line 2382)
  49298. * fno-function-cse: Optimize Options. (line 434)
  49299. * fno-gnu-keywords: C++ Dialect Options.
  49300. (line 256)
  49301. * fno-gnu-unique: Code Gen Options. (line 162)
  49302. * fno-guess-branch-probability: Optimize Options. (line 1548)
  49303. * fno-ident: Code Gen Options. (line 252)
  49304. * fno-implement-inlines: C++ Dialect Options.
  49305. (line 276)
  49306. * fno-implement-inlines <1>: C++ Interface. (line 66)
  49307. * fno-implicit-inline-templates: C++ Dialect Options.
  49308. (line 270)
  49309. * fno-implicit-templates: C++ Dialect Options.
  49310. (line 262)
  49311. * fno-implicit-templates <1>: Template Instantiation.
  49312. (line 94)
  49313. * fno-inline: Optimize Options. (line 275)
  49314. * fno-ira-share-save-slots: Optimize Options. (line 731)
  49315. * fno-ira-share-spill-slots: Optimize Options. (line 737)
  49316. * fno-jump-tables: Code Gen Options. (line 414)
  49317. * fno-keep-inline-dllexport: Optimize Options. (line 361)
  49318. * fno-lifetime-dse: Optimize Options. (line 667)
  49319. * fno-local-ivars: Objective-C and Objective-C++ Dialect Options.
  49320. (line 152)
  49321. * fno-math-errno: Optimize Options. (line 2247)
  49322. * fno-merge-debug-strings: Debugging Options. (line 134)
  49323. * fno-nil-receivers: Objective-C and Objective-C++ Dialect Options.
  49324. (line 49)
  49325. * fno-nonansi-builtins: C++ Dialect Options.
  49326. (line 299)
  49327. * fno-operator-names: C++ Dialect Options.
  49328. (line 315)
  49329. * fno-optional-diags: C++ Dialect Options.
  49330. (line 319)
  49331. * fno-peephole: Optimize Options. (line 1539)
  49332. * fno-peephole2: Optimize Options. (line 1539)
  49333. * fno-plt: Code Gen Options. (line 396)
  49334. * fno-pretty-templates: C++ Dialect Options.
  49335. (line 329)
  49336. * fno-printf-return-value: Optimize Options. (line 1516)
  49337. * fno-rtti: C++ Dialect Options.
  49338. (line 341)
  49339. * fno-sanitize-recover: Instrumentation Options.
  49340. (line 462)
  49341. * fno-sanitize=all: Instrumentation Options.
  49342. (line 447)
  49343. * fno-sched-interblock: Optimize Options. (line 776)
  49344. * fno-sched-spec: Optimize Options. (line 781)
  49345. * fno-set-stack-executable: x86 Windows Options.
  49346. (line 46)
  49347. * fno-show-column: Diagnostic Message Formatting Options.
  49348. (line 393)
  49349. * fno-signed-bitfields: C Dialect Options. (line 434)
  49350. * fno-signed-zeros: Optimize Options. (line 2322)
  49351. * fno-stack-limit: Instrumentation Options.
  49352. (line 640)
  49353. * fno-threadsafe-statics: C++ Dialect Options.
  49354. (line 396)
  49355. * fno-toplevel-reorder: Optimize Options. (line 1782)
  49356. * fno-trapping-math: Optimize Options. (line 2332)
  49357. * fno-unsigned-bitfields: C Dialect Options. (line 434)
  49358. * fno-use-cxa-get-exception-ptr: C++ Dialect Options.
  49359. (line 409)
  49360. * fno-var-tracking-assignments: Debugging Options. (line 161)
  49361. * fno-var-tracking-assignments-toggle: Developer Options. (line 846)
  49362. * fno-weak: C++ Dialect Options.
  49363. (line 471)
  49364. * fno-working-directory: Preprocessor Options.
  49365. (line 318)
  49366. * fno-writable-relocated-rdata: x86 Windows Options.
  49367. (line 53)
  49368. * fno-zero-initialized-in-bss: Optimize Options. (line 445)
  49369. * fnon-call-exceptions: Code Gen Options. (line 133)
  49370. * fnonansi-builtins: C++ Dialect Options.
  49371. (line 299)
  49372. * fnothrow-opt: C++ Dialect Options.
  49373. (line 304)
  49374. * fobjc-abi-version: Objective-C and Objective-C++ Dialect Options.
  49375. (line 56)
  49376. * fobjc-call-cxx-cdtors: Objective-C and Objective-C++ Dialect Options.
  49377. (line 67)
  49378. * fobjc-direct-dispatch: Objective-C and Objective-C++ Dialect Options.
  49379. (line 92)
  49380. * fobjc-exceptions: Objective-C and Objective-C++ Dialect Options.
  49381. (line 96)
  49382. * fobjc-gc: Objective-C and Objective-C++ Dialect Options.
  49383. (line 104)
  49384. * fobjc-nilcheck: Objective-C and Objective-C++ Dialect Options.
  49385. (line 110)
  49386. * fobjc-std: Objective-C and Objective-C++ Dialect Options.
  49387. (line 119)
  49388. * fomit-frame-pointer: Optimize Options. (line 248)
  49389. * fopenacc: C Dialect Options. (line 325)
  49390. * fopenacc-dim: C Dialect Options. (line 334)
  49391. * fopenmp: C Dialect Options. (line 340)
  49392. * fopenmp-simd: C Dialect Options. (line 349)
  49393. * foperator-names: C++ Dialect Options.
  49394. (line 315)
  49395. * fopt-info: Developer Options. (line 476)
  49396. * foptimize-sibling-calls: Optimize Options. (line 263)
  49397. * foptimize-strlen: Optimize Options. (line 268)
  49398. * foptional-diags: C++ Dialect Options.
  49399. (line 319)
  49400. * force_cpusubtype_ALL: Darwin Options. (line 135)
  49401. * force_flat_namespace: Darwin Options. (line 196)
  49402. * fpack-struct: Code Gen Options. (line 465)
  49403. * fpartial-inlining: Optimize Options. (line 1491)
  49404. * fpatchable-function-entry: Instrumentation Options.
  49405. (line 797)
  49406. * fpcc-struct-return: Code Gen Options. (line 175)
  49407. * fpcc-struct-return <1>: Incompatibilities. (line 170)
  49408. * fpch-deps: Preprocessor Options.
  49409. (line 293)
  49410. * fpch-preprocess: Preprocessor Options.
  49411. (line 301)
  49412. * fpeel-loops: Optimize Options. (line 2519)
  49413. * fpeephole: Optimize Options. (line 1539)
  49414. * fpeephole2: Optimize Options. (line 1539)
  49415. * fpermissive: C++ Dialect Options.
  49416. (line 324)
  49417. * fpermitted-flt-eval-methods: C Dialect Options. (line 207)
  49418. * fpermitted-flt-eval-methods=c11: C Dialect Options. (line 207)
  49419. * fpermitted-flt-eval-methods=ts-18661-3: C Dialect Options. (line 207)
  49420. * fpic: Code Gen Options. (line 353)
  49421. * fPIC: Code Gen Options. (line 374)
  49422. * fpie: Code Gen Options. (line 387)
  49423. * fPIE: Code Gen Options. (line 387)
  49424. * fplan9-extensions: C Dialect Options. (line 386)
  49425. * fplan9-extensions <1>: Unnamed Fields. (line 43)
  49426. * fplt: Code Gen Options. (line 396)
  49427. * fplugin: Overall Options. (line 381)
  49428. * fplugin-arg: Overall Options. (line 388)
  49429. * fpost-ipa-mem-report: Developer Options. (line 889)
  49430. * fpre-ipa-mem-report: Developer Options. (line 888)
  49431. * fpredictive-commoning: Optimize Options. (line 1498)
  49432. * fprefetch-loop-arrays: Optimize Options. (line 1506)
  49433. * fpreprocessed: Preprocessor Options.
  49434. (line 189)
  49435. * fpretty-templates: C++ Dialect Options.
  49436. (line 329)
  49437. * fprintf-return-value: Optimize Options. (line 1516)
  49438. * fprofile-abs-path: Instrumentation Options.
  49439. (line 106)
  49440. * fprofile-arcs: Instrumentation Options.
  49441. (line 30)
  49442. * fprofile-arcs <1>: Other Builtins. (line 563)
  49443. * fprofile-correction: Optimize Options. (line 2107)
  49444. * fprofile-dir: Instrumentation Options.
  49445. (line 112)
  49446. * fprofile-exclude-files: Instrumentation Options.
  49447. (line 200)
  49448. * fprofile-filter-files: Instrumentation Options.
  49449. (line 192)
  49450. * fprofile-generate: Instrumentation Options.
  49451. (line 137)
  49452. * fprofile-note: Instrumentation Options.
  49453. (line 154)
  49454. * fprofile-partial-training: Optimize Options. (line 2116)
  49455. * fprofile-prefix-path: Instrumentation Options.
  49456. (line 160)
  49457. * fprofile-reorder-functions: Optimize Options. (line 2459)
  49458. * fprofile-report: Developer Options. (line 893)
  49459. * fprofile-reproducible: Instrumentation Options.
  49460. (line 208)
  49461. * fprofile-update: Instrumentation Options.
  49462. (line 175)
  49463. * fprofile-use: Optimize Options. (line 2130)
  49464. * fprofile-values: Optimize Options. (line 2449)
  49465. * fpu: RX Options. (line 17)
  49466. * frandom-seed: Developer Options. (line 710)
  49467. * freciprocal-math: Optimize Options. (line 2300)
  49468. * frecord-gcc-switches: Code Gen Options. (line 341)
  49469. * free: Optimize Options. (line 659)
  49470. * freg-struct-return: Code Gen Options. (line 193)
  49471. * frename-registers: Optimize Options. (line 2478)
  49472. * freorder-blocks: Optimize Options. (line 1569)
  49473. * freorder-blocks-algorithm: Optimize Options. (line 1575)
  49474. * freorder-blocks-and-partition: Optimize Options. (line 1586)
  49475. * freorder-functions: Optimize Options. (line 1603)
  49476. * freplace-objc-classes: Objective-C and Objective-C++ Dialect Options.
  49477. (line 130)
  49478. * freport-bug: Developer Options. (line 287)
  49479. * frerun-cse-after-loop: Optimize Options. (line 497)
  49480. * freschedule-modulo-scheduled-loops: Optimize Options. (line 875)
  49481. * frounding-math: Optimize Options. (line 2347)
  49482. * frtti: C++ Dialect Options.
  49483. (line 341)
  49484. * fsanitize-address-use-after-scope: Instrumentation Options.
  49485. (line 498)
  49486. * fsanitize-coverage=trace-cmp: Instrumentation Options.
  49487. (line 513)
  49488. * fsanitize-coverage=trace-pc: Instrumentation Options.
  49489. (line 509)
  49490. * fsanitize-recover: Instrumentation Options.
  49491. (line 462)
  49492. * fsanitize-sections: Instrumentation Options.
  49493. (line 458)
  49494. * fsanitize-undefined-trap-on-error: Instrumentation Options.
  49495. (line 502)
  49496. * fsanitize=address: Instrumentation Options.
  49497. (line 236)
  49498. * fsanitize=alignment: Instrumentation Options.
  49499. (line 373)
  49500. * fsanitize=bool: Instrumentation Options.
  49501. (line 411)
  49502. * fsanitize=bounds: Instrumentation Options.
  49503. (line 360)
  49504. * fsanitize=bounds-strict: Instrumentation Options.
  49505. (line 366)
  49506. * fsanitize=builtin: Instrumentation Options.
  49507. (line 435)
  49508. * fsanitize=enum: Instrumentation Options.
  49509. (line 416)
  49510. * fsanitize=float-cast-overflow: Instrumentation Options.
  49511. (line 391)
  49512. * fsanitize=float-divide-by-zero: Instrumentation Options.
  49513. (line 385)
  49514. * fsanitize=integer-divide-by-zero: Instrumentation Options.
  49515. (line 323)
  49516. * fsanitize=kernel-address: Instrumentation Options.
  49517. (line 250)
  49518. * fsanitize=leak: Instrumentation Options.
  49519. (line 288)
  49520. * fsanitize=nonnull-attribute: Instrumentation Options.
  49521. (line 399)
  49522. * fsanitize=null: Instrumentation Options.
  49523. (line 337)
  49524. * fsanitize=object-size: Instrumentation Options.
  49525. (line 380)
  49526. * fsanitize=pointer-compare: Instrumentation Options.
  49527. (line 254)
  49528. * fsanitize=pointer-overflow: Instrumentation Options.
  49529. (line 429)
  49530. * fsanitize=pointer-subtract: Instrumentation Options.
  49531. (line 264)
  49532. * fsanitize=return: Instrumentation Options.
  49533. (line 345)
  49534. * fsanitize=returns-nonnull-attribute: Instrumentation Options.
  49535. (line 405)
  49536. * fsanitize=shift: Instrumentation Options.
  49537. (line 303)
  49538. * fsanitize=shift-base: Instrumentation Options.
  49539. (line 316)
  49540. * fsanitize=shift-exponent: Instrumentation Options.
  49541. (line 311)
  49542. * fsanitize=signed-integer-overflow: Instrumentation Options.
  49543. (line 351)
  49544. * fsanitize=thread: Instrumentation Options.
  49545. (line 274)
  49546. * fsanitize=undefined: Instrumentation Options.
  49547. (line 298)
  49548. * fsanitize=unreachable: Instrumentation Options.
  49549. (line 327)
  49550. * fsanitize=vla-bound: Instrumentation Options.
  49551. (line 333)
  49552. * fsanitize=vptr: Instrumentation Options.
  49553. (line 422)
  49554. * fsave-optimization-record: Developer Options. (line 582)
  49555. * fsched-critical-path-heuristic: Optimize Options. (line 841)
  49556. * fsched-dep-count-heuristic: Optimize Options. (line 868)
  49557. * fsched-group-heuristic: Optimize Options. (line 835)
  49558. * fsched-interblock: Optimize Options. (line 776)
  49559. * fsched-last-insn-heuristic: Optimize Options. (line 861)
  49560. * fsched-pressure: Optimize Options. (line 786)
  49561. * fsched-rank-heuristic: Optimize Options. (line 854)
  49562. * fsched-spec: Optimize Options. (line 781)
  49563. * fsched-spec-insn-heuristic: Optimize Options. (line 847)
  49564. * fsched-spec-load: Optimize Options. (line 795)
  49565. * fsched-spec-load-dangerous: Optimize Options. (line 800)
  49566. * fsched-stalled-insns: Optimize Options. (line 806)
  49567. * fsched-stalled-insns-dep: Optimize Options. (line 816)
  49568. * fsched-verbose: Developer Options. (line 622)
  49569. * fsched2-use-superblocks: Optimize Options. (line 825)
  49570. * fschedule-fusion: Optimize Options. (line 2488)
  49571. * fschedule-insns: Optimize Options. (line 757)
  49572. * fschedule-insns2: Optimize Options. (line 767)
  49573. * fsection-anchors: Optimize Options. (line 2600)
  49574. * fsel-sched-pipelining: Optimize Options. (line 888)
  49575. * fsel-sched-pipelining-outer-loops: Optimize Options. (line 893)
  49576. * fselective-scheduling: Optimize Options. (line 880)
  49577. * fselective-scheduling2: Optimize Options. (line 884)
  49578. * fsemantic-interposition: Optimize Options. (line 898)
  49579. * fset-stack-executable: x86 Windows Options.
  49580. (line 46)
  49581. * fshort-enums: Code Gen Options. (line 211)
  49582. * fshort-enums <1>: Structures unions enumerations and bit-fields implementation.
  49583. (line 48)
  49584. * fshort-enums <2>: Common Type Attributes.
  49585. (line 288)
  49586. * fshort-enums <3>: Non-bugs. (line 42)
  49587. * fshort-wchar: Code Gen Options. (line 221)
  49588. * fshow-column: Diagnostic Message Formatting Options.
  49589. (line 393)
  49590. * fshrink-wrap: Optimize Options. (line 915)
  49591. * fshrink-wrap-separate: Optimize Options. (line 920)
  49592. * fsignaling-nans: Optimize Options. (line 2367)
  49593. * fsigned-bitfields: C Dialect Options. (line 434)
  49594. * fsigned-bitfields <1>: Non-bugs. (line 57)
  49595. * fsigned-char: C Dialect Options. (line 424)
  49596. * fsigned-char <1>: Characters implementation.
  49597. (line 31)
  49598. * fsigned-zeros: Optimize Options. (line 2322)
  49599. * fsimd-cost-model: Optimize Options. (line 1448)
  49600. * fsingle-precision-constant: Optimize Options. (line 2400)
  49601. * fsized-deallocation: C++ Dialect Options.
  49602. (line 356)
  49603. * fsplit-ivs-in-unroller: Optimize Options. (line 1469)
  49604. * fsplit-loops: Optimize Options. (line 2531)
  49605. * fsplit-paths: Optimize Options. (line 1464)
  49606. * fsplit-stack: Instrumentation Options.
  49607. (line 657)
  49608. * fsplit-stack <1>: Common Function Attributes.
  49609. (line 741)
  49610. * fsplit-wide-types: Optimize Options. (line 466)
  49611. * fsplit-wide-types-early: Optimize Options. (line 474)
  49612. * fssa-backprop: Optimize Options. (line 1173)
  49613. * fssa-phiopt: Optimize Options. (line 1179)
  49614. * fsso-struct: C Dialect Options. (line 440)
  49615. * fstack-check: Instrumentation Options.
  49616. (line 583)
  49617. * fstack-clash-protection: Instrumentation Options.
  49618. (line 625)
  49619. * fstack-limit-register: Instrumentation Options.
  49620. (line 640)
  49621. * fstack-limit-symbol: Instrumentation Options.
  49622. (line 640)
  49623. * fstack-protector: Instrumentation Options.
  49624. (line 558)
  49625. * fstack-protector-all: Instrumentation Options.
  49626. (line 569)
  49627. * fstack-protector-explicit: Instrumentation Options.
  49628. (line 579)
  49629. * fstack-protector-strong: Instrumentation Options.
  49630. (line 572)
  49631. * fstack-usage: Developer Options. (line 897)
  49632. * fstack_reuse: Code Gen Options. (line 15)
  49633. * fstats: Developer Options. (line 926)
  49634. * fstdarg-opt: Optimize Options. (line 2596)
  49635. * fstore-merging: Optimize Options. (line 1398)
  49636. * fstrict-aliasing: Optimize Options. (line 1618)
  49637. * fstrict-enums: C++ Dialect Options.
  49638. (line 366)
  49639. * fstrict-overflow: Code Gen Options. (line 115)
  49640. * fstrict-volatile-bitfields: Code Gen Options. (line 589)
  49641. * fstrong-eval-order: C++ Dialect Options.
  49642. (line 375)
  49643. * fsync-libcalls: Code Gen Options. (line 621)
  49644. * fsyntax-only: Warning Options. (line 14)
  49645. * ftabstop: Preprocessor Options.
  49646. (line 238)
  49647. * ftemplate-backtrace-limit: C++ Dialect Options.
  49648. (line 383)
  49649. * ftemplate-depth: C++ Dialect Options.
  49650. (line 387)
  49651. * ftest-coverage: Instrumentation Options.
  49652. (line 97)
  49653. * fthread-jumps: Optimize Options. (line 457)
  49654. * fthreadsafe-statics: C++ Dialect Options.
  49655. (line 396)
  49656. * ftime-report: Developer Options. (line 854)
  49657. * ftime-report-details: Developer Options. (line 858)
  49658. * ftls-model: Code Gen Options. (line 489)
  49659. * ftoplevel-reorder: Optimize Options. (line 1782)
  49660. * ftracer: Optimize Options. (line 2496)
  49661. * ftrack-macro-expansion: Preprocessor Options.
  49662. (line 244)
  49663. * ftrampolines: Code Gen Options. (line 500)
  49664. * ftrapping-math: Optimize Options. (line 2332)
  49665. * ftrapv: Code Gen Options. (line 91)
  49666. * ftree-bit-ccp: Optimize Options. (line 1161)
  49667. * ftree-builtin-call-dce: Optimize Options. (line 1201)
  49668. * ftree-ccp: Optimize Options. (line 1168)
  49669. * ftree-ch: Optimize Options. (line 1230)
  49670. * ftree-coalesce-vars: Optimize Options. (line 1269)
  49671. * ftree-copy-prop: Optimize Options. (line 1003)
  49672. * ftree-dce: Optimize Options. (line 1197)
  49673. * ftree-dominator-opts: Optimize Options. (line 1216)
  49674. * ftree-dse: Optimize Options. (line 1223)
  49675. * ftree-forwprop: Optimize Options. (line 982)
  49676. * ftree-fre: Optimize Options. (line 986)
  49677. * ftree-loop-distribute-patterns: Optimize Options. (line 1305)
  49678. * ftree-loop-distribution: Optimize Options. (line 1286)
  49679. * ftree-loop-if-convert: Optimize Options. (line 1279)
  49680. * ftree-loop-im: Optimize Options. (line 1350)
  49681. * ftree-loop-ivcanon: Optimize Options. (line 1359)
  49682. * ftree-loop-linear: Optimize Options. (line 1243)
  49683. * ftree-loop-optimize: Optimize Options. (line 1237)
  49684. * ftree-loop-vectorize: Optimize Options. (line 1424)
  49685. * ftree-parallelize-loops: Optimize Options. (line 1379)
  49686. * ftree-partial-pre: Optimize Options. (line 978)
  49687. * ftree-phiprop: Optimize Options. (line 993)
  49688. * ftree-pre: Optimize Options. (line 974)
  49689. * ftree-pta: Optimize Options. (line 1388)
  49690. * ftree-reassoc: Optimize Options. (line 963)
  49691. * ftree-scev-cprop: Optimize Options. (line 1365)
  49692. * ftree-sink: Optimize Options. (line 1157)
  49693. * ftree-slp-vectorize: Optimize Options. (line 1429)
  49694. * ftree-slsr: Optimize Options. (line 1413)
  49695. * ftree-sra: Optimize Options. (line 1392)
  49696. * ftree-switch-conversion: Optimize Options. (line 1184)
  49697. * ftree-tail-merge: Optimize Options. (line 1189)
  49698. * ftree-ter: Optimize Options. (line 1405)
  49699. * ftree-vectorize: Optimize Options. (line 1419)
  49700. * ftree-vrp: Optimize Options. (line 1455)
  49701. * funconstrained-commons: Optimize Options. (line 555)
  49702. * funit-at-a-time: Optimize Options. (line 1775)
  49703. * funroll-all-loops: Optimize Options. (line 2513)
  49704. * funroll-loops: Optimize Options. (line 2503)
  49705. * funsafe-math-optimizations: Optimize Options. (line 2265)
  49706. * funsigned-bitfields: C Dialect Options. (line 434)
  49707. * funsigned-bitfields <1>: Structures unions enumerations and bit-fields implementation.
  49708. (line 17)
  49709. * funsigned-bitfields <2>: Non-bugs. (line 57)
  49710. * funsigned-char: C Dialect Options. (line 406)
  49711. * funsigned-char <1>: Characters implementation.
  49712. (line 31)
  49713. * funswitch-loops: Optimize Options. (line 2537)
  49714. * funwind-tables: Code Gen Options. (line 149)
  49715. * fuse-cxa-atexit: C++ Dialect Options.
  49716. (line 402)
  49717. * fuse-cxa-get-exception-ptr: C++ Dialect Options.
  49718. (line 409)
  49719. * fuse-ld=bfd: Link Options. (line 74)
  49720. * fuse-ld=gold: Link Options. (line 77)
  49721. * fuse-ld=lld: Link Options. (line 80)
  49722. * fuse-linker-plugin: Optimize Options. (line 2047)
  49723. * fvar-tracking: Debugging Options. (line 151)
  49724. * fvar-tracking-assignments: Debugging Options. (line 161)
  49725. * fvar-tracking-assignments-toggle: Developer Options. (line 846)
  49726. * fvariable-expansion-in-unroller: Optimize Options. (line 1483)
  49727. * fvect-cost-model: Optimize Options. (line 1434)
  49728. * fverbose-asm: Code Gen Options. (line 262)
  49729. * fversion-loops-for-strides: Optimize Options. (line 2544)
  49730. * fvisibility: Code Gen Options. (line 524)
  49731. * fvisibility-inlines-hidden: C++ Dialect Options.
  49732. (line 414)
  49733. * fvisibility-ms-compat: C++ Dialect Options.
  49734. (line 442)
  49735. * fvpt: Optimize Options. (line 2466)
  49736. * fvtable-verify: Instrumentation Options.
  49737. (line 675)
  49738. * fvtv-counts: Instrumentation Options.
  49739. (line 711)
  49740. * fvtv-debug: Instrumentation Options.
  49741. (line 698)
  49742. * fweak: C++ Dialect Options.
  49743. (line 471)
  49744. * fweb: Optimize Options. (line 1795)
  49745. * fwhole-program: Optimize Options. (line 1806)
  49746. * fwide-exec-charset: Preprocessor Options.
  49747. (line 275)
  49748. * fworking-directory: Preprocessor Options.
  49749. (line 318)
  49750. * fwrapv: Code Gen Options. (line 99)
  49751. * fwrapv-pointer: Code Gen Options. (line 109)
  49752. * fwritable-relocated-rdata: x86 Windows Options.
  49753. (line 53)
  49754. * fzero-initialized-in-bss: Optimize Options. (line 445)
  49755. * fzero-link: Objective-C and Objective-C++ Dialect Options.
  49756. (line 140)
  49757. * g: Debugging Options. (line 25)
  49758. * G: ARC Options. (line 416)
  49759. * G <1>: M32R/D Options. (line 57)
  49760. * G <2>: MIPS Options. (line 460)
  49761. * G <3>: Nios II Options. (line 9)
  49762. * G <4>: RS/6000 and PowerPC Options.
  49763. (line 713)
  49764. * G <5>: System V Options. (line 10)
  49765. * gas-loc-support: Debugging Options. (line 221)
  49766. * gas-locview-support: Debugging Options. (line 237)
  49767. * gcolumn-info: Debugging Options. (line 249)
  49768. * gdescribe-dies: Debugging Options. (line 179)
  49769. * gdwarf: Debugging Options. (line 45)
  49770. * gen-decls: Objective-C and Objective-C++ Dialect Options.
  49771. (line 166)
  49772. * gfull: Darwin Options. (line 69)
  49773. * ggdb: Debugging Options. (line 38)
  49774. * ggnu-pubnames: Debugging Options. (line 187)
  49775. * ginline-points: Debugging Options. (line 308)
  49776. * ginternal-reset-location-views: Debugging Options. (line 297)
  49777. * gno-as-loc-support: Debugging Options. (line 233)
  49778. * gno-column-info: Debugging Options. (line 249)
  49779. * gno-inline-points: Debugging Options. (line 308)
  49780. * gno-internal-reset-location-views: Debugging Options. (line 297)
  49781. * gno-record-gcc-switches: Debugging Options. (line 202)
  49782. * gno-statement-frontiers: Debugging Options. (line 254)
  49783. * gno-strict-dwarf: Debugging Options. (line 217)
  49784. * gno-variable-location-views: Debugging Options. (line 265)
  49785. * gpubnames: Debugging Options. (line 184)
  49786. * grecord-gcc-switches: Debugging Options. (line 202)
  49787. * gsplit-dwarf: Debugging Options. (line 172)
  49788. * gstabs: Debugging Options. (line 63)
  49789. * gstabs+: Debugging Options. (line 71)
  49790. * gstatement-frontiers: Debugging Options. (line 254)
  49791. * gstrict-dwarf: Debugging Options. (line 211)
  49792. * gtoggle: Developer Options. (line 838)
  49793. * gused: Darwin Options. (line 64)
  49794. * gvariable-location-views: Debugging Options. (line 265)
  49795. * gvariable-location-views=incompat5: Debugging Options. (line 265)
  49796. * gvms: Debugging Options. (line 90)
  49797. * gxcoff: Debugging Options. (line 77)
  49798. * gxcoff+: Debugging Options. (line 82)
  49799. * gz: Debugging Options. (line 317)
  49800. * H: Preprocessor Options.
  49801. (line 400)
  49802. * headerpad_max_install_names: Darwin Options. (line 196)
  49803. * help: Overall Options. (line 220)
  49804. * I: Directory Options. (line 13)
  49805. * I-: Directory Options. (line 65)
  49806. * idirafter: Directory Options. (line 13)
  49807. * iframework: Darwin Options. (line 57)
  49808. * imacros: Preprocessor Options.
  49809. (line 57)
  49810. * image_base: Darwin Options. (line 196)
  49811. * imultilib: Directory Options. (line 98)
  49812. * include: Preprocessor Options.
  49813. (line 46)
  49814. * init: Darwin Options. (line 196)
  49815. * install_name: Darwin Options. (line 196)
  49816. * iplugindir=: Directory Options. (line 113)
  49817. * iprefix: Directory Options. (line 80)
  49818. * iquote: Directory Options. (line 13)
  49819. * isysroot: Directory Options. (line 92)
  49820. * isystem: Directory Options. (line 13)
  49821. * iwithprefix: Directory Options. (line 86)
  49822. * iwithprefixbefore: Directory Options. (line 86)
  49823. * keep_private_externs: Darwin Options. (line 196)
  49824. * l: Link Options. (line 84)
  49825. * L: Directory Options. (line 118)
  49826. * lobjc: Link Options. (line 110)
  49827. * M: Preprocessor Options.
  49828. (line 77)
  49829. * m: RS/6000 and PowerPC Options.
  49830. (line 521)
  49831. * m1: SH Options. (line 9)
  49832. * m10: PDP-11 Options. (line 29)
  49833. * m128bit-long-double: x86 Options. (line 572)
  49834. * m16: x86 Options. (line 1413)
  49835. * m16-bit: CRIS Options. (line 64)
  49836. * m16-bit <1>: NDS32 Options. (line 51)
  49837. * m1reg-: Adapteva Epiphany Options.
  49838. (line 131)
  49839. * m2: SH Options. (line 12)
  49840. * m210: MCore Options. (line 43)
  49841. * m2a: SH Options. (line 30)
  49842. * m2a-nofpu: SH Options. (line 18)
  49843. * m2a-single: SH Options. (line 26)
  49844. * m2a-single-only: SH Options. (line 22)
  49845. * m3: SH Options. (line 34)
  49846. * m31: S/390 and zSeries Options.
  49847. (line 86)
  49848. * m32: Nvidia PTX Options. (line 10)
  49849. * m32 <1>: RS/6000 and PowerPC Options.
  49850. (line 245)
  49851. * m32 <2>: SPARC Options. (line 315)
  49852. * m32 <3>: TILE-Gx Options. (line 23)
  49853. * m32 <4>: TILEPro Options. (line 13)
  49854. * m32 <5>: x86 Options. (line 1413)
  49855. * m32-bit: CRIS Options. (line 64)
  49856. * m32bit-doubles: RL78 Options. (line 73)
  49857. * m32bit-doubles <1>: RX Options. (line 10)
  49858. * m32r: M32R/D Options. (line 15)
  49859. * m32r2: M32R/D Options. (line 9)
  49860. * m32rx: M32R/D Options. (line 12)
  49861. * m340: MCore Options. (line 43)
  49862. * m3dnow: x86 Options. (line 795)
  49863. * m3dnowa: x86 Options. (line 796)
  49864. * m3e: SH Options. (line 37)
  49865. * m4: SH Options. (line 51)
  49866. * m4-100: SH Options. (line 54)
  49867. * m4-100-nofpu: SH Options. (line 57)
  49868. * m4-100-single: SH Options. (line 61)
  49869. * m4-100-single-only: SH Options. (line 65)
  49870. * m4-200: SH Options. (line 69)
  49871. * m4-200-nofpu: SH Options. (line 72)
  49872. * m4-200-single: SH Options. (line 76)
  49873. * m4-200-single-only: SH Options. (line 80)
  49874. * m4-300: SH Options. (line 84)
  49875. * m4-300-nofpu: SH Options. (line 87)
  49876. * m4-300-single: SH Options. (line 91)
  49877. * m4-300-single-only: SH Options. (line 95)
  49878. * m4-340: SH Options. (line 99)
  49879. * m4-500: SH Options. (line 102)
  49880. * m4-nofpu: SH Options. (line 40)
  49881. * m4-single: SH Options. (line 47)
  49882. * m4-single-only: SH Options. (line 43)
  49883. * m40: PDP-11 Options. (line 23)
  49884. * m45: PDP-11 Options. (line 26)
  49885. * m4a: SH Options. (line 118)
  49886. * m4a-nofpu: SH Options. (line 106)
  49887. * m4a-single: SH Options. (line 114)
  49888. * m4a-single-only: SH Options. (line 110)
  49889. * m4al: SH Options. (line 121)
  49890. * m4byte-functions: MCore Options. (line 27)
  49891. * m5200: M680x0 Options. (line 144)
  49892. * m5206e: M680x0 Options. (line 153)
  49893. * m528x: M680x0 Options. (line 157)
  49894. * m5307: M680x0 Options. (line 161)
  49895. * m5407: M680x0 Options. (line 165)
  49896. * m64: Nvidia PTX Options. (line 10)
  49897. * m64 <1>: RS/6000 and PowerPC Options.
  49898. (line 245)
  49899. * m64 <2>: S/390 and zSeries Options.
  49900. (line 86)
  49901. * m64 <3>: SPARC Options. (line 315)
  49902. * m64 <4>: TILE-Gx Options. (line 23)
  49903. * m64 <5>: x86 Options. (line 1413)
  49904. * m64bit-doubles: RL78 Options. (line 73)
  49905. * m64bit-doubles <1>: RX Options. (line 10)
  49906. * m68000: M680x0 Options. (line 93)
  49907. * m68010: M680x0 Options. (line 101)
  49908. * m68020: M680x0 Options. (line 107)
  49909. * m68020-40: M680x0 Options. (line 175)
  49910. * m68020-60: M680x0 Options. (line 184)
  49911. * m68030: M680x0 Options. (line 112)
  49912. * m68040: M680x0 Options. (line 117)
  49913. * m68060: M680x0 Options. (line 126)
  49914. * m68881: M680x0 Options. (line 194)
  49915. * m8-bit: CRIS Options. (line 64)
  49916. * m8bit-idiv: x86 Options. (line 1334)
  49917. * m8byte-align: V850 Options. (line 170)
  49918. * m96bit-long-double: x86 Options. (line 572)
  49919. * mA6: ARC Options. (line 23)
  49920. * mA7: ARC Options. (line 30)
  49921. * mabi: AArch64 Options. (line 9)
  49922. * mabi <1>: ARM Options. (line 9)
  49923. * mabi <2>: PRU Options. (line 28)
  49924. * mabi <3>: RISC-V Options. (line 17)
  49925. * mabi <4>: RS/6000 and PowerPC Options.
  49926. (line 552)
  49927. * mabi <5>: x86 Options. (line 1027)
  49928. * mabi=32: MIPS Options. (line 156)
  49929. * mabi=64: MIPS Options. (line 156)
  49930. * mabi=eabi: MIPS Options. (line 156)
  49931. * mabi=elfv1: RS/6000 and PowerPC Options.
  49932. (line 573)
  49933. * mabi=elfv2: RS/6000 and PowerPC Options.
  49934. (line 579)
  49935. * mabi=gnu: MMIX Options. (line 20)
  49936. * mabi=ibmlongdouble: RS/6000 and PowerPC Options.
  49937. (line 557)
  49938. * mabi=ieeelongdouble: RS/6000 and PowerPC Options.
  49939. (line 565)
  49940. * mabi=mmixware: MMIX Options. (line 20)
  49941. * mabi=n32: MIPS Options. (line 156)
  49942. * mabi=o64: MIPS Options. (line 156)
  49943. * mabicalls: MIPS Options. (line 192)
  49944. * mabm: x86 Options. (line 798)
  49945. * mabort-on-noreturn: ARM Options. (line 750)
  49946. * mabs=2008: MIPS Options. (line 300)
  49947. * mabs=legacy: MIPS Options. (line 300)
  49948. * mabsdata: AVR Options. (line 163)
  49949. * mabsdiff: MeP Options. (line 7)
  49950. * mac0: PDP-11 Options. (line 16)
  49951. * macc-4: FRV Options. (line 139)
  49952. * macc-8: FRV Options. (line 143)
  49953. * maccumulate-args: AVR Options. (line 170)
  49954. * maccumulate-outgoing-args: SH Options. (line 314)
  49955. * maccumulate-outgoing-args <1>: x86 Options. (line 1071)
  49956. * maddress-mode=long: x86 Options. (line 1463)
  49957. * maddress-mode=short: x86 Options. (line 1468)
  49958. * mads: RS/6000 and PowerPC Options.
  49959. (line 613)
  49960. * madx: x86 Options. (line 799)
  49961. * maes: x86 Options. (line 776)
  49962. * maix-struct-return: RS/6000 and PowerPC Options.
  49963. (line 545)
  49964. * maix32: RS/6000 and PowerPC Options.
  49965. (line 283)
  49966. * maix64: RS/6000 and PowerPC Options.
  49967. (line 283)
  49968. * malign-300: H8/300 Options. (line 41)
  49969. * malign-call: ARC Options. (line 435)
  49970. * malign-data: RISC-V Options. (line 127)
  49971. * malign-data <1>: x86 Options. (line 612)
  49972. * malign-double: x86 Options. (line 557)
  49973. * malign-int: M680x0 Options. (line 261)
  49974. * malign-labels: FRV Options. (line 128)
  49975. * malign-loops: M32R/D Options. (line 73)
  49976. * malign-natural: RS/6000 and PowerPC Options.
  49977. (line 321)
  49978. * malign-power: RS/6000 and PowerPC Options.
  49979. (line 321)
  49980. * malign-stringops: x86 Options. (line 1207)
  49981. * mall-opts: MeP Options. (line 11)
  49982. * malloc-cc: FRV Options. (line 31)
  49983. * mallow-string-insns: RX Options. (line 150)
  49984. * mallregs: RL78 Options. (line 66)
  49985. * maltivec: RS/6000 and PowerPC Options.
  49986. (line 136)
  49987. * mam33: MN10300 Options. (line 17)
  49988. * mam33-2: MN10300 Options. (line 24)
  49989. * mam34: MN10300 Options. (line 27)
  49990. * manchor: C-SKY Options. (line 110)
  49991. * mandroid: GNU/Linux Options. (line 26)
  49992. * mannotate-align: ARC Options. (line 382)
  49993. * mapcs: ARM Options. (line 21)
  49994. * mapcs-frame: ARM Options. (line 13)
  49995. * mapp-regs: SPARC Options. (line 10)
  49996. * mapp-regs <1>: V850 Options. (line 181)
  49997. * mARC600: ARC Options. (line 23)
  49998. * mARC601: ARC Options. (line 27)
  49999. * mARC700: ARC Options. (line 30)
  50000. * march: AArch64 Options. (line 165)
  50001. * march <1>: AMD GCN Options. (line 9)
  50002. * march <2>: ARM Options. (line 80)
  50003. * march <3>: C6X Options. (line 7)
  50004. * march <4>: CRIS Options. (line 10)
  50005. * march <5>: HPPA Options. (line 9)
  50006. * march <6>: HPPA Options. (line 162)
  50007. * march <7>: M680x0 Options. (line 12)
  50008. * march <8>: MIPS Options. (line 14)
  50009. * march <9>: NDS32 Options. (line 64)
  50010. * march <10>: Nios II Options. (line 94)
  50011. * march <11>: Nvidia PTX Options. (line 13)
  50012. * march <12>: RISC-V Options. (line 54)
  50013. * march <13>: S/390 and zSeries Options.
  50014. (line 148)
  50015. * march <14>: x86 Options. (line 9)
  50016. * march=: C-SKY Options. (line 9)
  50017. * marclinux: ARC Options. (line 388)
  50018. * marclinux_prof: ARC Options. (line 395)
  50019. * margonaut: ARC Options. (line 593)
  50020. * marm: ARM Options. (line 822)
  50021. * mas100-syntax: RX Options. (line 76)
  50022. * masm-hex: MSP430 Options. (line 9)
  50023. * masm-syntax-unified: ARM Options. (line 921)
  50024. * masm=DIALECT: x86 Options. (line 506)
  50025. * matomic: ARC Options. (line 155)
  50026. * matomic-model=MODEL: SH Options. (line 193)
  50027. * mauto-litpools: Xtensa Options. (line 60)
  50028. * mauto-modify-reg: ARC Options. (line 438)
  50029. * mauto-pic: IA-64 Options. (line 50)
  50030. * maverage: MeP Options. (line 16)
  50031. * mavoid-indexed-addresses: RS/6000 and PowerPC Options.
  50032. (line 360)
  50033. * mavx: x86 Options. (line 764)
  50034. * mavx2: x86 Options. (line 765)
  50035. * mavx256-split-unaligned-load: x86 Options. (line 1342)
  50036. * mavx256-split-unaligned-store: x86 Options. (line 1342)
  50037. * mavx5124fmaps: x86 Options. (line 826)
  50038. * mavx5124vnniw: x86 Options. (line 828)
  50039. * mavx512bf16: x86 Options. (line 815)
  50040. * mavx512bitalg: x86 Options. (line 820)
  50041. * mavx512bw: x86 Options. (line 771)
  50042. * mavx512cd: x86 Options. (line 769)
  50043. * mavx512dq: x86 Options. (line 772)
  50044. * mavx512er: x86 Options. (line 768)
  50045. * mavx512f: x86 Options. (line 766)
  50046. * mavx512ifma: x86 Options. (line 773)
  50047. * mavx512pf: x86 Options. (line 767)
  50048. * mavx512vbmi: x86 Options. (line 774)
  50049. * mavx512vbmi2: x86 Options. (line 814)
  50050. * mavx512vl: x86 Options. (line 770)
  50051. * mavx512vnni: x86 Options. (line 827)
  50052. * mavx512vp2intersect: x86 Options. (line 825)
  50053. * mavx512vpopcntdq: x86 Options. (line 824)
  50054. * max-vect-align: Adapteva Epiphany Options.
  50055. (line 119)
  50056. * mb: SH Options. (line 126)
  50057. * mbackchain: S/390 and zSeries Options.
  50058. (line 35)
  50059. * mbarrel-shift-enabled: LM32 Options. (line 9)
  50060. * mbarrel-shifter: ARC Options. (line 10)
  50061. * mbarrel_shifter: ARC Options. (line 613)
  50062. * mbase-addresses: MMIX Options. (line 53)
  50063. * mbased=: MeP Options. (line 20)
  50064. * mbbit-peephole: ARC Options. (line 441)
  50065. * mbe8: ARM Options. (line 72)
  50066. * mbig: RS/6000 and PowerPC Options.
  50067. (line 440)
  50068. * mbig-endian: AArch64 Options. (line 20)
  50069. * mbig-endian <1>: ARC Options. (line 596)
  50070. * mbig-endian <2>: ARM Options. (line 67)
  50071. * mbig-endian <3>: C6X Options. (line 13)
  50072. * mbig-endian <4>: C-SKY Options. (line 28)
  50073. * mbig-endian <5>: eBPF Options. (line 22)
  50074. * mbig-endian <6>: IA-64 Options. (line 9)
  50075. * mbig-endian <7>: MCore Options. (line 39)
  50076. * mbig-endian <8>: MicroBlaze Options. (line 56)
  50077. * mbig-endian <9>: NDS32 Options. (line 9)
  50078. * mbig-endian <10>: RS/6000 and PowerPC Options.
  50079. (line 440)
  50080. * mbig-endian <11>: TILE-Gx Options. (line 29)
  50081. * mbig-endian-data: RX Options. (line 42)
  50082. * mbig-switch: V850 Options. (line 176)
  50083. * mbigtable: SH Options. (line 141)
  50084. * mbionic: GNU/Linux Options. (line 22)
  50085. * mbit-align: RS/6000 and PowerPC Options.
  50086. (line 392)
  50087. * mbit-ops: CR16 Options. (line 25)
  50088. * mbitfield: M680x0 Options. (line 231)
  50089. * mbitops: MeP Options. (line 26)
  50090. * mbitops <1>: SH Options. (line 145)
  50091. * mblock-compare-inline-limit: RS/6000 and PowerPC Options.
  50092. (line 693)
  50093. * mblock-compare-inline-loop-limit: RS/6000 and PowerPC Options.
  50094. (line 699)
  50095. * mblock-move-inline-limit: RS/6000 and PowerPC Options.
  50096. (line 687)
  50097. * mbmi: x86 Options. (line 800)
  50098. * mbmi2: x86 Options. (line 801)
  50099. * mboard: OpenRISC Options. (line 9)
  50100. * mbranch-cost: Adapteva Epiphany Options.
  50101. (line 18)
  50102. * mbranch-cost <1>: AVR Options. (line 185)
  50103. * mbranch-cost <2>: MIPS Options. (line 785)
  50104. * mbranch-cost <3>: RISC-V Options. (line 9)
  50105. * mbranch-cost=: C-SKY Options. (line 143)
  50106. * mbranch-cost=NUM: SH Options. (line 334)
  50107. * mbranch-cost=NUMBER: M32R/D Options. (line 82)
  50108. * mbranch-index: ARC Options. (line 329)
  50109. * mbranch-likely: MIPS Options. (line 792)
  50110. * mbranch-predict: MMIX Options. (line 48)
  50111. * mbranch-protection: AArch64 Options. (line 276)
  50112. * mbss-plt: RS/6000 and PowerPC Options.
  50113. (line 160)
  50114. * mbuild-constants: DEC Alpha Options. (line 141)
  50115. * mbwx: DEC Alpha Options. (line 163)
  50116. * mbypass-cache: Nios II Options. (line 103)
  50117. * mc68000: M680x0 Options. (line 93)
  50118. * mc68020: M680x0 Options. (line 107)
  50119. * mc=: MeP Options. (line 31)
  50120. * mcache: C-SKY Options. (line 77)
  50121. * mcache-block-size: NDS32 Options. (line 60)
  50122. * mcache-volatile: Nios II Options. (line 109)
  50123. * mcall-eabi: RS/6000 and PowerPC Options.
  50124. (line 515)
  50125. * mcall-freebsd: RS/6000 and PowerPC Options.
  50126. (line 529)
  50127. * mcall-linux: RS/6000 and PowerPC Options.
  50128. (line 525)
  50129. * mcall-ms2sysv-xlogues: x86 Options. (line 1047)
  50130. * mcall-netbsd: RS/6000 and PowerPC Options.
  50131. (line 533)
  50132. * mcall-netbsd <1>: RS/6000 and PowerPC Options.
  50133. (line 537)
  50134. * mcall-prologues: AVR Options. (line 190)
  50135. * mcall-sysv: RS/6000 and PowerPC Options.
  50136. (line 507)
  50137. * mcall-sysv-eabi: RS/6000 and PowerPC Options.
  50138. (line 515)
  50139. * mcall-sysv-noeabi: RS/6000 and PowerPC Options.
  50140. (line 518)
  50141. * mcallee-super-interworking: ARM Options. (line 851)
  50142. * mcaller-copies: HPPA Options. (line 23)
  50143. * mcaller-super-interworking: ARM Options. (line 858)
  50144. * mcallgraph-data: MCore Options. (line 31)
  50145. * mcase-vector-pcrel: ARC Options. (line 450)
  50146. * mcbcond: SPARC Options. (line 260)
  50147. * mcbranch-force-delay-slot: SH Options. (line 349)
  50148. * mcc-init: CRIS Options. (line 42)
  50149. * mccrt: C-SKY Options. (line 139)
  50150. * mcfv4e: M680x0 Options. (line 169)
  50151. * mcheck-zero-division: MIPS Options. (line 570)
  50152. * mcix: DEC Alpha Options. (line 163)
  50153. * mcld: x86 Options. (line 880)
  50154. * mcldemote: x86 Options. (line 829)
  50155. * mclear-hwcap: Solaris 2 Options. (line 9)
  50156. * mclflushopt: x86 Options. (line 778)
  50157. * mclip: MeP Options. (line 35)
  50158. * mclwb: x86 Options. (line 779)
  50159. * mclzero: x86 Options. (line 812)
  50160. * mcmodel: NDS32 Options. (line 67)
  50161. * mcmodel <1>: SPARC Options. (line 320)
  50162. * mcmodel=kernel: x86 Options. (line 1447)
  50163. * mcmodel=large: AArch64 Options. (line 45)
  50164. * mcmodel=large <1>: RS/6000 and PowerPC Options.
  50165. (line 130)
  50166. * mcmodel=large <2>: TILE-Gx Options. (line 14)
  50167. * mcmodel=large <3>: x86 Options. (line 1459)
  50168. * mcmodel=medany: RISC-V Options. (line 105)
  50169. * mcmodel=medium: RS/6000 and PowerPC Options.
  50170. (line 125)
  50171. * mcmodel=medium <1>: x86 Options. (line 1452)
  50172. * mcmodel=medlow: RISC-V Options. (line 98)
  50173. * mcmodel=small: AArch64 Options. (line 39)
  50174. * mcmodel=small <1>: RS/6000 and PowerPC Options.
  50175. (line 121)
  50176. * mcmodel=small <2>: TILE-Gx Options. (line 9)
  50177. * mcmodel=small <3>: x86 Options. (line 1441)
  50178. * mcmodel=tiny: AArch64 Options. (line 34)
  50179. * mcmov: NDS32 Options. (line 21)
  50180. * mcmov <1>: OpenRISC Options. (line 45)
  50181. * mcmove: Adapteva Epiphany Options.
  50182. (line 23)
  50183. * mcmpb: RS/6000 and PowerPC Options.
  50184. (line 25)
  50185. * mcmse: ARM Options. (line 950)
  50186. * mcode-density: ARC Options. (line 163)
  50187. * mcode-density-frame: ARC Options. (line 511)
  50188. * mcode-readable: MIPS Options. (line 530)
  50189. * mcode-region: MSP430 Options. (line 135)
  50190. * mcompact-branches=always: MIPS Options. (line 804)
  50191. * mcompact-branches=never: MIPS Options. (line 804)
  50192. * mcompact-branches=optimal: MIPS Options. (line 804)
  50193. * mcompact-casesi: ARC Options. (line 454)
  50194. * mcompat-align-parm: RS/6000 and PowerPC Options.
  50195. (line 898)
  50196. * mcompress: FT32 Options. (line 26)
  50197. * mcond-exec: FRV Options. (line 187)
  50198. * mcond-move: FRV Options. (line 159)
  50199. * mconfig=: MeP Options. (line 39)
  50200. * mconsole: x86 Windows Options.
  50201. (line 9)
  50202. * mconst-align: CRIS Options. (line 55)
  50203. * mconst16: Xtensa Options. (line 10)
  50204. * mconstant-gp: IA-64 Options. (line 46)
  50205. * mconstpool: C-SKY Options. (line 127)
  50206. * mcop: MeP Options. (line 48)
  50207. * mcop32: MeP Options. (line 53)
  50208. * mcop64: MeP Options. (line 56)
  50209. * mcorea: Blackfin Options. (line 154)
  50210. * mcoreb: Blackfin Options. (line 161)
  50211. * mcp: C-SKY Options. (line 74)
  50212. * mcpu: AArch64 Options. (line 232)
  50213. * mcpu <1>: ARC Options. (line 18)
  50214. * mcpu <2>: ARM Options. (line 620)
  50215. * mcpu <3>: CRIS Options. (line 10)
  50216. * mcpu <4>: DEC Alpha Options. (line 215)
  50217. * mcpu <5>: FRV Options. (line 258)
  50218. * mcpu <6>: M680x0 Options. (line 28)
  50219. * mcpu <7>: picoChip Options. (line 9)
  50220. * mcpu <8>: RL78 Options. (line 32)
  50221. * mcpu <9>: RS/6000 and PowerPC Options.
  50222. (line 62)
  50223. * mcpu <10>: RX Options. (line 30)
  50224. * mcpu <11>: SPARC Options. (line 115)
  50225. * mcpu <12>: TILE-Gx Options. (line 18)
  50226. * mcpu <13>: TILEPro Options. (line 9)
  50227. * mcpu <14>: Visium Options. (line 33)
  50228. * mcpu <15>: x86 Options. (line 452)
  50229. * mcpu32: M680x0 Options. (line 135)
  50230. * mcpu=: Blackfin Options. (line 7)
  50231. * mcpu= <1>: C-SKY Options. (line 14)
  50232. * mcpu= <2>: M32C Options. (line 7)
  50233. * mcpu= <3>: MicroBlaze Options. (line 20)
  50234. * mcpu= <4>: MSP430 Options. (line 72)
  50235. * mcr16c: CR16 Options. (line 14)
  50236. * mcr16cplus: CR16 Options. (line 14)
  50237. * mcrc: MIPS Options. (line 416)
  50238. * mcrc32: x86 Options. (line 948)
  50239. * mcrypto: RS/6000 and PowerPC Options.
  50240. (line 177)
  50241. * mcsync-anomaly: Blackfin Options. (line 57)
  50242. * mcsync-anomaly <1>: Blackfin Options. (line 63)
  50243. * mctor-dtor: NDS32 Options. (line 81)
  50244. * mcustom-fpu-cfg: Nios II Options. (line 259)
  50245. * mcustom-INSN: Nios II Options. (line 139)
  50246. * mcx16: x86 Options. (line 921)
  50247. * MD: Preprocessor Options.
  50248. (line 169)
  50249. * mdalign: SH Options. (line 132)
  50250. * mdata-align: CRIS Options. (line 55)
  50251. * mdata-model: CR16 Options. (line 28)
  50252. * mdata-region: MSP430 Options. (line 135)
  50253. * mdc: MeP Options. (line 62)
  50254. * mdebug: M32R/D Options. (line 69)
  50255. * mdebug <1>: S/390 and zSeries Options.
  50256. (line 144)
  50257. * mdebug <2>: Visium Options. (line 7)
  50258. * mdebug-main=PREFIX: VMS Options. (line 13)
  50259. * mdec-asm: PDP-11 Options. (line 46)
  50260. * mdisable-callt: V850 Options. (line 92)
  50261. * mdisable-fpregs: HPPA Options. (line 34)
  50262. * mdisable-indexing: HPPA Options. (line 40)
  50263. * mdiv: C-SKY Options. (line 93)
  50264. * mdiv <1>: M680x0 Options. (line 206)
  50265. * mdiv <2>: MCore Options. (line 15)
  50266. * mdiv <3>: MeP Options. (line 65)
  50267. * mdiv <4>: RISC-V Options. (line 49)
  50268. * mdiv-rem: ARC Options. (line 160)
  50269. * mdiv=STRATEGY: SH Options. (line 284)
  50270. * mdivide-breaks: MIPS Options. (line 576)
  50271. * mdivide-enabled: LM32 Options. (line 12)
  50272. * mdivide-traps: MIPS Options. (line 576)
  50273. * mdivsi3_libfunc=NAME: SH Options. (line 320)
  50274. * mdll: x86 Windows Options.
  50275. (line 16)
  50276. * mdlmzb: RS/6000 and PowerPC Options.
  50277. (line 385)
  50278. * mdmx: MIPS Options. (line 376)
  50279. * mdouble: AVR Options. (line 195)
  50280. * mdouble <1>: FRV Options. (line 48)
  50281. * mdouble-float: C-SKY Options. (line 42)
  50282. * mdouble-float <1>: MIPS Options. (line 288)
  50283. * mdouble-float <2>: OpenRISC Options. (line 33)
  50284. * mdpfp: ARC Options. (line 99)
  50285. * mdpfp-compact: ARC Options. (line 100)
  50286. * mdpfp-fast: ARC Options. (line 104)
  50287. * mdpfp_compact: ARC Options. (line 616)
  50288. * mdpfp_fast: ARC Options. (line 619)
  50289. * mdsp: C-SKY Options. (line 86)
  50290. * mdsp <1>: MIPS Options. (line 353)
  50291. * mdsp-packa: ARC Options. (line 335)
  50292. * mdspr2: MIPS Options. (line 359)
  50293. * mdsp_packa: ARC Options. (line 622)
  50294. * mdump-tune-features: x86 Options. (line 862)
  50295. * mdvbf: ARC Options. (line 340)
  50296. * mdwarf2-asm: IA-64 Options. (line 94)
  50297. * mdword: FRV Options. (line 40)
  50298. * mdword <1>: FRV Options. (line 44)
  50299. * mdynamic-no-pic: RS/6000 and PowerPC Options.
  50300. (line 445)
  50301. * mea: ARC Options. (line 112)
  50302. * mEA: ARC Options. (line 625)
  50303. * meabi: RS/6000 and PowerPC Options.
  50304. (line 632)
  50305. * mearly-cbranchsi: ARC Options. (line 476)
  50306. * mearly-stop-bits: IA-64 Options. (line 100)
  50307. * meb: MeP Options. (line 68)
  50308. * meb <1>: Moxie Options. (line 7)
  50309. * meb <2>: Nios II Options. (line 90)
  50310. * meb <3>: Score Options. (line 9)
  50311. * medsp: C-SKY Options. (line 87)
  50312. * mel: MeP Options. (line 71)
  50313. * mel <1>: Moxie Options. (line 11)
  50314. * mel <2>: Nios II Options. (line 90)
  50315. * mel <3>: Score Options. (line 12)
  50316. * melf: CRIS Options. (line 87)
  50317. * melf <1>: MMIX Options. (line 43)
  50318. * melrw: C-SKY Options. (line 60)
  50319. * memb: RS/6000 and PowerPC Options.
  50320. (line 627)
  50321. * membedded-data: MIPS Options. (line 517)
  50322. * memregs=: M32C Options. (line 21)
  50323. * menqcmd: x86 Options. (line 823)
  50324. * mep: V850 Options. (line 16)
  50325. * mepsilon: MMIX Options. (line 15)
  50326. * mesa: S/390 and zSeries Options.
  50327. (line 94)
  50328. * metrax100: CRIS Options. (line 27)
  50329. * metrax4: CRIS Options. (line 27)
  50330. * meva: MIPS Options. (line 403)
  50331. * mexpand-adddi: ARC Options. (line 479)
  50332. * mexplicit-relocs: DEC Alpha Options. (line 176)
  50333. * mexplicit-relocs <1>: MIPS Options. (line 561)
  50334. * mexr: H8/300 Options. (line 28)
  50335. * mexr <1>: H8/300 Options. (line 33)
  50336. * mext-perf: NDS32 Options. (line 27)
  50337. * mext-perf2: NDS32 Options. (line 33)
  50338. * mext-string: NDS32 Options. (line 39)
  50339. * mextern-sdata: MIPS Options. (line 480)
  50340. * MF: Preprocessor Options.
  50341. (line 111)
  50342. * mf16c: x86 Options. (line 783)
  50343. * mfancy-math-387: x86 Options. (line 547)
  50344. * mfast-fp: Blackfin Options. (line 130)
  50345. * mfast-indirect-calls: HPPA Options. (line 52)
  50346. * mfast-sw-div: Nios II Options. (line 115)
  50347. * mfaster-structs: SPARC Options. (line 91)
  50348. * mfdiv: RISC-V Options. (line 42)
  50349. * mfdivdu: C-SKY Options. (line 48)
  50350. * mfdpic: ARM Options. (line 957)
  50351. * mfdpic <1>: FRV Options. (line 72)
  50352. * mfentry: x86 Options. (line 1281)
  50353. * mfentry-name: x86 Options. (line 1312)
  50354. * mfentry-section: x86 Options. (line 1316)
  50355. * mfix: DEC Alpha Options. (line 163)
  50356. * mfix-24k: MIPS Options. (line 641)
  50357. * mfix-and-continue: Darwin Options. (line 104)
  50358. * mfix-at697f: SPARC Options. (line 294)
  50359. * mfix-cortex-a53-835769: AArch64 Options. (line 105)
  50360. * mfix-cortex-a53-843419: AArch64 Options. (line 112)
  50361. * mfix-cortex-m3-ldrd: ARM Options. (line 892)
  50362. * mfix-gr712rc: SPARC Options. (line 307)
  50363. * mfix-r10000: MIPS Options. (line 663)
  50364. * mfix-r4000: MIPS Options. (line 647)
  50365. * mfix-r4400: MIPS Options. (line 657)
  50366. * mfix-r5900: MIPS Options. (line 674)
  50367. * mfix-rm7000: MIPS Options. (line 684)
  50368. * mfix-sb1: MIPS Options. (line 709)
  50369. * mfix-ut699: SPARC Options. (line 299)
  50370. * mfix-ut700: SPARC Options. (line 303)
  50371. * mfix-vr4120: MIPS Options. (line 689)
  50372. * mfix-vr4130: MIPS Options. (line 702)
  50373. * mfixed-cc: FRV Options. (line 35)
  50374. * mfixed-range: HPPA Options. (line 59)
  50375. * mfixed-range <1>: IA-64 Options. (line 105)
  50376. * mfixed-range <2>: SH Options. (line 327)
  50377. * mflat: SPARC Options. (line 22)
  50378. * mflip-mips16: MIPS Options. (line 128)
  50379. * mflip-thumb: ARM Options. (line 834)
  50380. * mfloat-abi: ARM Options. (line 41)
  50381. * mfloat-ieee: DEC Alpha Options. (line 171)
  50382. * mfloat-vax: DEC Alpha Options. (line 171)
  50383. * mfloat128: RS/6000 and PowerPC Options.
  50384. (line 214)
  50385. * mfloat128-hardware: RS/6000 and PowerPC Options.
  50386. (line 236)
  50387. * mflush-func: MIPS Options. (line 776)
  50388. * mflush-func=NAME: M32R/D Options. (line 93)
  50389. * mflush-trap=NUMBER: M32R/D Options. (line 86)
  50390. * mfma: x86 Options. (line 784)
  50391. * mfma4: x86 Options. (line 787)
  50392. * mfmaf: SPARC Options. (line 267)
  50393. * mfmovd: SH Options. (line 148)
  50394. * mforce-indirect-call: x86 Options. (line 1036)
  50395. * mforce-no-pic: Xtensa Options. (line 41)
  50396. * mfp-exceptions: MIPS Options. (line 824)
  50397. * mfp-mode: Adapteva Epiphany Options.
  50398. (line 71)
  50399. * mfp-reg: DEC Alpha Options. (line 25)
  50400. * mfp-ret-in-387: x86 Options. (line 537)
  50401. * mfp-rounding-mode: DEC Alpha Options. (line 85)
  50402. * mfp-trap-mode: DEC Alpha Options. (line 63)
  50403. * mfp16-format: ARM Options. (line 728)
  50404. * mfp32: MIPS Options. (line 258)
  50405. * mfp64: MIPS Options. (line 261)
  50406. * mfpmath: Optimize Options. (line 2226)
  50407. * mfpmath <1>: x86 Options. (line 455)
  50408. * mfpr-32: FRV Options. (line 15)
  50409. * mfpr-64: FRV Options. (line 19)
  50410. * mfprnd: RS/6000 and PowerPC Options.
  50411. (line 25)
  50412. * mfpu: ARC Options. (line 231)
  50413. * mfpu <1>: ARM Options. (line 700)
  50414. * mfpu <2>: PDP-11 Options. (line 9)
  50415. * mfpu <3>: SPARC Options. (line 34)
  50416. * mfpu <4>: Visium Options. (line 19)
  50417. * mfpu=: C-SKY Options. (line 53)
  50418. * mfpxx: MIPS Options. (line 264)
  50419. * mfract-convert-truncate: AVR Options. (line 286)
  50420. * mframe-header-opt: MIPS Options. (line 885)
  50421. * mfriz: RS/6000 and PowerPC Options.
  50422. (line 869)
  50423. * mfsca: SH Options. (line 365)
  50424. * mfsgsbase: x86 Options. (line 780)
  50425. * mfsmuld: SPARC Options. (line 274)
  50426. * mfsrra: SH Options. (line 374)
  50427. * mft32b: FT32 Options. (line 23)
  50428. * mfull-regs: NDS32 Options. (line 18)
  50429. * mfull-toc: RS/6000 and PowerPC Options.
  50430. (line 256)
  50431. * mfunction-return: x86 Options. (line 1384)
  50432. * mfused-madd: IA-64 Options. (line 88)
  50433. * mfused-madd <1>: MIPS Options. (line 624)
  50434. * mfused-madd <2>: RS/6000 and PowerPC Options.
  50435. (line 369)
  50436. * mfused-madd <3>: S/390 and zSeries Options.
  50437. (line 182)
  50438. * mfused-madd <4>: SH Options. (line 356)
  50439. * mfused-madd <5>: Xtensa Options. (line 19)
  50440. * mfxsr: x86 Options. (line 803)
  50441. * MG: Preprocessor Options.
  50442. (line 122)
  50443. * mg: VAX Options. (line 17)
  50444. * mg10: RL78 Options. (line 62)
  50445. * mg13: RL78 Options. (line 62)
  50446. * mg14: RL78 Options. (line 62)
  50447. * mgas: HPPA Options. (line 75)
  50448. * mgas-isr-prologues: AVR Options. (line 203)
  50449. * mgcc-abi: V850 Options. (line 148)
  50450. * mgeneral-regs-only: AArch64 Options. (line 24)
  50451. * mgeneral-regs-only <1>: ARM Options. (line 57)
  50452. * mgeneral-regs-only <2>: x86 Options. (line 1360)
  50453. * mgfni: x86 Options. (line 816)
  50454. * mghs: V850 Options. (line 127)
  50455. * mginv: MIPS Options. (line 421)
  50456. * mglibc: GNU/Linux Options. (line 9)
  50457. * mgnu: VAX Options. (line 13)
  50458. * mgnu-as: IA-64 Options. (line 18)
  50459. * mgnu-asm: PDP-11 Options. (line 49)
  50460. * mgnu-attribute: RS/6000 and PowerPC Options.
  50461. (line 586)
  50462. * mgnu-ld: HPPA Options. (line 111)
  50463. * mgnu-ld <1>: IA-64 Options. (line 23)
  50464. * mgomp: Nvidia PTX Options. (line 53)
  50465. * mgotplt: CRIS Options. (line 81)
  50466. * mgp32: MIPS Options. (line 252)
  50467. * mgp64: MIPS Options. (line 255)
  50468. * mgpopt: MIPS Options. (line 502)
  50469. * mgpopt <1>: Nios II Options. (line 16)
  50470. * mgpr-32: FRV Options. (line 7)
  50471. * mgpr-64: FRV Options. (line 11)
  50472. * mgprel-ro: FRV Options. (line 99)
  50473. * mgprel-sec: Nios II Options. (line 65)
  50474. * mh: H8/300 Options. (line 14)
  50475. * mhal: Nios II Options. (line 304)
  50476. * mhalf-reg-file: Adapteva Epiphany Options.
  50477. (line 9)
  50478. * mhard-dfp: RS/6000 and PowerPC Options.
  50479. (line 25)
  50480. * mhard-dfp <1>: S/390 and zSeries Options.
  50481. (line 20)
  50482. * mhard-div: OpenRISC Options. (line 19)
  50483. * mhard-float: C-SKY Options. (line 35)
  50484. * mhard-float <1>: FRV Options. (line 23)
  50485. * mhard-float <2>: M680x0 Options. (line 194)
  50486. * mhard-float <3>: MicroBlaze Options. (line 10)
  50487. * mhard-float <4>: MIPS Options. (line 267)
  50488. * mhard-float <5>: OpenRISC Options. (line 29)
  50489. * mhard-float <6>: RS/6000 and PowerPC Options.
  50490. (line 333)
  50491. * mhard-float <7>: S/390 and zSeries Options.
  50492. (line 11)
  50493. * mhard-float <8>: SPARC Options. (line 34)
  50494. * mhard-float <9>: V850 Options. (line 113)
  50495. * mhard-float <10>: Visium Options. (line 19)
  50496. * mhard-float <11>: x86 Options. (line 520)
  50497. * mhard-mul: OpenRISC Options. (line 24)
  50498. * mhard-quad-float: SPARC Options. (line 55)
  50499. * mharden-sls: AArch64 Options. (line 289)
  50500. * mhardlit: MCore Options. (line 10)
  50501. * mhigh-registers: C-SKY Options. (line 104)
  50502. * mhle: x86 Options. (line 809)
  50503. * mhotpatch: S/390 and zSeries Options.
  50504. (line 217)
  50505. * mhp-ld: HPPA Options. (line 123)
  50506. * mhtm: RS/6000 and PowerPC Options.
  50507. (line 183)
  50508. * mhtm <1>: S/390 and zSeries Options.
  50509. (line 104)
  50510. * mhw-div: Nios II Options. (line 124)
  50511. * mhw-mul: Nios II Options. (line 124)
  50512. * mhw-mulx: Nios II Options. (line 124)
  50513. * mhwmult=: MSP430 Options. (line 93)
  50514. * miamcu: x86 Options. (line 1413)
  50515. * micplb: Blackfin Options. (line 175)
  50516. * mid-shared-library: Blackfin Options. (line 78)
  50517. * mid-shared-library <1>: Blackfin Options. (line 85)
  50518. * mieee: DEC Alpha Options. (line 39)
  50519. * mieee <1>: SH Options. (line 165)
  50520. * mieee-conformant: DEC Alpha Options. (line 134)
  50521. * mieee-fp: x86 Options. (line 514)
  50522. * mieee-with-inexact: DEC Alpha Options. (line 52)
  50523. * milp32: IA-64 Options. (line 121)
  50524. * mimadd: MIPS Options. (line 617)
  50525. * mimpure-text: Solaris 2 Options. (line 15)
  50526. * mincoming-stack-boundary: x86 Options. (line 730)
  50527. * mindexed-loads: ARC Options. (line 483)
  50528. * mindirect-branch: x86 Options. (line 1365)
  50529. * mindirect-branch-register: x86 Options. (line 1403)
  50530. * minline-all-stringops: x86 Options. (line 1212)
  50531. * minline-float-divide-max-throughput: IA-64 Options. (line 58)
  50532. * minline-float-divide-min-latency: IA-64 Options. (line 54)
  50533. * minline-ic_invalidate: SH Options. (line 174)
  50534. * minline-int-divide: IA-64 Options. (line 73)
  50535. * minline-int-divide-max-throughput: IA-64 Options. (line 69)
  50536. * minline-int-divide-min-latency: IA-64 Options. (line 65)
  50537. * minline-plt: Blackfin Options. (line 135)
  50538. * minline-plt <1>: FRV Options. (line 81)
  50539. * minline-sqrt-max-throughput: IA-64 Options. (line 80)
  50540. * minline-sqrt-min-latency: IA-64 Options. (line 76)
  50541. * minline-stringops-dynamically: x86 Options. (line 1220)
  50542. * minrt: MSP430 Options. (line 115)
  50543. * minrt <1>: PRU Options. (line 9)
  50544. * minsert-sched-nops: RS/6000 and PowerPC Options.
  50545. (line 485)
  50546. * minstrument-return: x86 Options. (line 1300)
  50547. * mint-register: RX Options. (line 100)
  50548. * mint16: PDP-11 Options. (line 33)
  50549. * mint32: CR16 Options. (line 22)
  50550. * mint32 <1>: H8/300 Options. (line 38)
  50551. * mint32 <2>: PDP-11 Options. (line 37)
  50552. * mint8: AVR Options. (line 213)
  50553. * minterlink-compressed: MIPS Options. (line 135)
  50554. * minterlink-mips16: MIPS Options. (line 147)
  50555. * mio-volatile: MeP Options. (line 74)
  50556. * mips1: MIPS Options. (line 80)
  50557. * mips16: MIPS Options. (line 120)
  50558. * mips2: MIPS Options. (line 83)
  50559. * mips3: MIPS Options. (line 86)
  50560. * mips32: MIPS Options. (line 92)
  50561. * mips32r3: MIPS Options. (line 95)
  50562. * mips32r5: MIPS Options. (line 98)
  50563. * mips32r6: MIPS Options. (line 101)
  50564. * mips3d: MIPS Options. (line 382)
  50565. * mips4: MIPS Options. (line 89)
  50566. * mips64: MIPS Options. (line 104)
  50567. * mips64r2: MIPS Options. (line 107)
  50568. * mips64r3: MIPS Options. (line 110)
  50569. * mips64r5: MIPS Options. (line 113)
  50570. * mips64r6: MIPS Options. (line 116)
  50571. * mirq-ctrl-saved: ARC Options. (line 296)
  50572. * misel: RS/6000 and PowerPC Options.
  50573. (line 166)
  50574. * misize: ARC Options. (line 379)
  50575. * misize <1>: SH Options. (line 186)
  50576. * misr-vector-size: NDS32 Options. (line 57)
  50577. * missue-rate=NUMBER: M32R/D Options. (line 79)
  50578. * mistack: C-SKY Options. (line 65)
  50579. * mivc2: MeP Options. (line 59)
  50580. * mjli-alawys: ARC Options. (line 14)
  50581. * mjsr: RX Options. (line 169)
  50582. * mjump-in-delay: HPPA Options. (line 30)
  50583. * mkernel: Darwin Options. (line 82)
  50584. * mkernel <1>: eBPF Options. (line 13)
  50585. * mknuthdiv: MMIX Options. (line 32)
  50586. * ml: MeP Options. (line 78)
  50587. * ml <1>: SH Options. (line 129)
  50588. * mlarge: MSP430 Options. (line 82)
  50589. * mlarge-data: DEC Alpha Options. (line 187)
  50590. * mlarge-data-threshold: x86 Options. (line 619)
  50591. * mlarge-text: DEC Alpha Options. (line 205)
  50592. * mleadz: MeP Options. (line 81)
  50593. * mleaf-id-shared-library: Blackfin Options. (line 89)
  50594. * mleaf-id-shared-library <1>: Blackfin Options. (line 95)
  50595. * mlibfuncs: MMIX Options. (line 10)
  50596. * mlibrary-pic: FRV Options. (line 135)
  50597. * mlinked-fp: FRV Options. (line 116)
  50598. * mlinker-opt: HPPA Options. (line 85)
  50599. * mlinux: CRIS Options. (line 91)
  50600. * mlittle: RS/6000 and PowerPC Options.
  50601. (line 434)
  50602. * mlittle-endian: AArch64 Options. (line 30)
  50603. * mlittle-endian <1>: ARC Options. (line 605)
  50604. * mlittle-endian <2>: ARM Options. (line 63)
  50605. * mlittle-endian <3>: C6X Options. (line 16)
  50606. * mlittle-endian <4>: C-SKY Options. (line 30)
  50607. * mlittle-endian <5>: eBPF Options. (line 25)
  50608. * mlittle-endian <6>: IA-64 Options. (line 13)
  50609. * mlittle-endian <7>: MCore Options. (line 39)
  50610. * mlittle-endian <8>: MicroBlaze Options. (line 59)
  50611. * mlittle-endian <9>: NDS32 Options. (line 12)
  50612. * mlittle-endian <10>: RS/6000 and PowerPC Options.
  50613. (line 434)
  50614. * mlittle-endian <11>: TILE-Gx Options. (line 29)
  50615. * mlittle-endian-data: RX Options. (line 42)
  50616. * mliw: MN10300 Options. (line 54)
  50617. * mll64: ARC Options. (line 167)
  50618. * mllsc: MIPS Options. (line 339)
  50619. * mload-store-pairs: MIPS Options. (line 590)
  50620. * mlocal-sdata: MIPS Options. (line 468)
  50621. * mlock: ARC Options. (line 345)
  50622. * mlong-calls: Adapteva Epiphany Options.
  50623. (line 55)
  50624. * mlong-calls <1>: ARC Options. (line 404)
  50625. * mlong-calls <2>: ARM Options. (line 755)
  50626. * mlong-calls <3>: Blackfin Options. (line 118)
  50627. * mlong-calls <4>: FRV Options. (line 122)
  50628. * mlong-calls <5>: HPPA Options. (line 136)
  50629. * mlong-calls <6>: MIPS Options. (line 603)
  50630. * mlong-calls <7>: V850 Options. (line 10)
  50631. * mlong-double: AVR Options. (line 195)
  50632. * mlong-double-128: S/390 and zSeries Options.
  50633. (line 29)
  50634. * mlong-double-128 <1>: x86 Options. (line 598)
  50635. * mlong-double-64: S/390 and zSeries Options.
  50636. (line 29)
  50637. * mlong-double-64 <1>: x86 Options. (line 598)
  50638. * mlong-double-80: x86 Options. (line 598)
  50639. * mlong-jump-table-offsets: M680x0 Options. (line 339)
  50640. * mlong-jumps: V850 Options. (line 108)
  50641. * mlong-load-store: HPPA Options. (line 66)
  50642. * mlong32: MIPS Options. (line 443)
  50643. * mlong64: MIPS Options. (line 438)
  50644. * mlongcall: RS/6000 and PowerPC Options.
  50645. (line 727)
  50646. * mlongcalls: Xtensa Options. (line 87)
  50647. * mloongson-ext: MIPS Options. (line 430)
  50648. * mloongson-ext2: MIPS Options. (line 434)
  50649. * mloongson-mmi: MIPS Options. (line 425)
  50650. * mloop: PRU Options. (line 25)
  50651. * mloop <1>: V850 Options. (line 121)
  50652. * mlow-precision-div: AArch64 Options. (line 135)
  50653. * mlow-precision-recip-sqrt: AArch64 Options. (line 118)
  50654. * mlow-precision-sqrt: AArch64 Options. (line 126)
  50655. * mlow64k: Blackfin Options. (line 67)
  50656. * mlp64: IA-64 Options. (line 121)
  50657. * mlpc-width: ARC Options. (line 313)
  50658. * mlra: ARC Options. (line 488)
  50659. * mlra <1>: FT32 Options. (line 16)
  50660. * mlra <2>: PDP-11 Options. (line 52)
  50661. * mlra <3>: SPARC Options. (line 111)
  50662. * mlra-priority-compact: ARC Options. (line 496)
  50663. * mlra-priority-noncompact: ARC Options. (line 499)
  50664. * mlra-priority-none: ARC Options. (line 493)
  50665. * mlwp: x86 Options. (line 794)
  50666. * mlxc1-sxc1: MIPS Options. (line 895)
  50667. * mlzcnt: x86 Options. (line 802)
  50668. * MM: Preprocessor Options.
  50669. (line 102)
  50670. * mm: MeP Options. (line 84)
  50671. * mmac: CR16 Options. (line 9)
  50672. * mmac <1>: Score Options. (line 21)
  50673. * mmac-24: ARC Options. (line 354)
  50674. * mmac-d16: ARC Options. (line 350)
  50675. * mmac_24: ARC Options. (line 628)
  50676. * mmac_d16: ARC Options. (line 631)
  50677. * mmad: MIPS Options. (line 612)
  50678. * mmadd4: MIPS Options. (line 900)
  50679. * mmain-is-OS_task: AVR Options. (line 219)
  50680. * mmainkernel: Nvidia PTX Options. (line 18)
  50681. * mmalloc64: VMS Options. (line 17)
  50682. * mmanual-endbr: x86 Options. (line 1041)
  50683. * mmax: DEC Alpha Options. (line 163)
  50684. * mmax-constant-size: RX Options. (line 82)
  50685. * mmax-stack-frame: CRIS Options. (line 23)
  50686. * mmcount-ra-address: MIPS Options. (line 872)
  50687. * mmcu: AVR Options. (line 9)
  50688. * mmcu <1>: MIPS Options. (line 399)
  50689. * mmcu <2>: PRU Options. (line 17)
  50690. * mmcu=: MSP430 Options. (line 14)
  50691. * MMD: Preprocessor Options.
  50692. (line 185)
  50693. * mmedia: FRV Options. (line 56)
  50694. * mmedium-calls: ARC Options. (line 408)
  50695. * mmemcpy: MicroBlaze Options. (line 13)
  50696. * mmemcpy <1>: MIPS Options. (line 597)
  50697. * mmemcpy-strategy=STRATEGY: x86 Options. (line 1242)
  50698. * mmemory-latency: DEC Alpha Options. (line 268)
  50699. * mmemory-model: SPARC Options. (line 348)
  50700. * mmemset-strategy=STRATEGY: x86 Options. (line 1254)
  50701. * mmfcrf: RS/6000 and PowerPC Options.
  50702. (line 25)
  50703. * mmicromips: MIPS Options. (line 387)
  50704. * mmillicode: ARC Options. (line 502)
  50705. * mminimal-toc: RS/6000 and PowerPC Options.
  50706. (line 256)
  50707. * mminmax: MeP Options. (line 87)
  50708. * mmixed-code: ARC Options. (line 516)
  50709. * mmma: RS/6000 and PowerPC Options.
  50710. (line 943)
  50711. * mmmx: x86 Options. (line 755)
  50712. * mmodel=large: M32R/D Options. (line 33)
  50713. * mmodel=medium: M32R/D Options. (line 27)
  50714. * mmodel=small: M32R/D Options. (line 18)
  50715. * mmovbe: x86 Options. (line 940)
  50716. * mmovdir64b: x86 Options. (line 822)
  50717. * mmovdiri: x86 Options. (line 821)
  50718. * mmp: C-SKY Options. (line 71)
  50719. * mmpy: ARC Options. (line 117)
  50720. * mmpy-option: ARC Options. (line 173)
  50721. * mms-bitfields: x86 Options. (line 1087)
  50722. * mmt: MIPS Options. (line 395)
  50723. * mmul: RL78 Options. (line 15)
  50724. * mmul-bug-workaround: CRIS Options. (line 32)
  50725. * mmul.x: Moxie Options. (line 14)
  50726. * mmul32x16: ARC Options. (line 121)
  50727. * mmul64: ARC Options. (line 124)
  50728. * mmuladd: FRV Options. (line 64)
  50729. * mmulhw: RS/6000 and PowerPC Options.
  50730. (line 378)
  50731. * mmult: MeP Options. (line 90)
  50732. * mmult-bug: MN10300 Options. (line 9)
  50733. * mmultcost: ARC Options. (line 578)
  50734. * mmulti-cond-exec: FRV Options. (line 215)
  50735. * mmulticore: Blackfin Options. (line 139)
  50736. * mmultiple: RS/6000 and PowerPC Options.
  50737. (line 339)
  50738. * mmultiple-stld: C-SKY Options. (line 121)
  50739. * mmusl: GNU/Linux Options. (line 18)
  50740. * mmvcle: S/390 and zSeries Options.
  50741. (line 138)
  50742. * mmvme: RS/6000 and PowerPC Options.
  50743. (line 608)
  50744. * mmwaitx: x86 Options. (line 811)
  50745. * mn: H8/300 Options. (line 20)
  50746. * mn-flash: AVR Options. (line 224)
  50747. * mnan=2008: MIPS Options. (line 320)
  50748. * mnan=legacy: MIPS Options. (line 320)
  50749. * mneon-for-64bits: ARM Options. (line 912)
  50750. * mnested-cond-exec: FRV Options. (line 230)
  50751. * mnewlib: OpenRISC Options. (line 13)
  50752. * mnhwloop: Score Options. (line 15)
  50753. * mno-16-bit: NDS32 Options. (line 54)
  50754. * mno-4byte-functions: MCore Options. (line 27)
  50755. * mno-8byte-align: V850 Options. (line 170)
  50756. * mno-abicalls: MIPS Options. (line 192)
  50757. * mno-ac0: PDP-11 Options. (line 20)
  50758. * mno-align-double: x86 Options. (line 557)
  50759. * mno-align-int: M680x0 Options. (line 261)
  50760. * mno-align-loops: M32R/D Options. (line 76)
  50761. * mno-align-stringops: x86 Options. (line 1207)
  50762. * mno-allow-string-insns: RX Options. (line 150)
  50763. * mno-altivec: RS/6000 and PowerPC Options.
  50764. (line 136)
  50765. * mno-am33: MN10300 Options. (line 20)
  50766. * mno-app-regs: SPARC Options. (line 10)
  50767. * mno-app-regs <1>: V850 Options. (line 185)
  50768. * mno-as100-syntax: RX Options. (line 76)
  50769. * mno-auto-litpools: Xtensa Options. (line 60)
  50770. * mno-avoid-indexed-addresses: RS/6000 and PowerPC Options.
  50771. (line 360)
  50772. * mno-backchain: S/390 and zSeries Options.
  50773. (line 35)
  50774. * mno-base-addresses: MMIX Options. (line 53)
  50775. * mno-bit-align: RS/6000 and PowerPC Options.
  50776. (line 392)
  50777. * mno-bitfield: M680x0 Options. (line 227)
  50778. * mno-branch-likely: MIPS Options. (line 792)
  50779. * mno-branch-predict: MMIX Options. (line 48)
  50780. * mno-brcc: ARC Options. (line 444)
  50781. * mno-bwx: DEC Alpha Options. (line 163)
  50782. * mno-bypass-cache: Nios II Options. (line 103)
  50783. * mno-cache-volatile: Nios II Options. (line 109)
  50784. * mno-call-ms2sysv-xlogues: x86 Options. (line 1047)
  50785. * mno-callgraph-data: MCore Options. (line 31)
  50786. * mno-cbcond: SPARC Options. (line 260)
  50787. * mno-check-zero-division: MIPS Options. (line 570)
  50788. * mno-cix: DEC Alpha Options. (line 163)
  50789. * mno-clearbss: MicroBlaze Options. (line 16)
  50790. * mno-cmov: NDS32 Options. (line 24)
  50791. * mno-cmpb: RS/6000 and PowerPC Options.
  50792. (line 25)
  50793. * mno-cond-exec: ARC Options. (line 458)
  50794. * mno-cond-exec <1>: FRV Options. (line 194)
  50795. * mno-cond-move: FRV Options. (line 166)
  50796. * mno-const-align: CRIS Options. (line 55)
  50797. * mno-const16: Xtensa Options. (line 10)
  50798. * mno-crc: MIPS Options. (line 416)
  50799. * mno-crt0: MN10300 Options. (line 43)
  50800. * mno-crt0 <1>: Moxie Options. (line 18)
  50801. * mno-crypto: RS/6000 and PowerPC Options.
  50802. (line 177)
  50803. * mno-csync-anomaly: Blackfin Options. (line 63)
  50804. * mno-custom-INSN: Nios II Options. (line 139)
  50805. * mno-data-align: CRIS Options. (line 55)
  50806. * mno-debug: S/390 and zSeries Options.
  50807. (line 144)
  50808. * mno-default: x86 Options. (line 876)
  50809. * mno-disable-callt: V850 Options. (line 92)
  50810. * mno-div: M680x0 Options. (line 206)
  50811. * mno-div <1>: MCore Options. (line 15)
  50812. * mno-dlmzb: RS/6000 and PowerPC Options.
  50813. (line 385)
  50814. * mno-double: FRV Options. (line 52)
  50815. * mno-dpfp-lrsr: ARC Options. (line 108)
  50816. * mno-dsp: MIPS Options. (line 353)
  50817. * mno-dspr2: MIPS Options. (line 359)
  50818. * mno-dwarf2-asm: IA-64 Options. (line 94)
  50819. * mno-dword: FRV Options. (line 44)
  50820. * mno-eabi: RS/6000 and PowerPC Options.
  50821. (line 632)
  50822. * mno-early-stop-bits: IA-64 Options. (line 100)
  50823. * mno-eflags: FRV Options. (line 155)
  50824. * mno-embedded-data: MIPS Options. (line 517)
  50825. * mno-ep: V850 Options. (line 16)
  50826. * mno-epsilon: MMIX Options. (line 15)
  50827. * mno-eva: MIPS Options. (line 403)
  50828. * mno-explicit-relocs: DEC Alpha Options. (line 176)
  50829. * mno-explicit-relocs <1>: MIPS Options. (line 561)
  50830. * mno-exr: H8/300 Options. (line 33)
  50831. * mno-ext-perf: NDS32 Options. (line 30)
  50832. * mno-ext-perf2: NDS32 Options. (line 36)
  50833. * mno-ext-string: NDS32 Options. (line 42)
  50834. * mno-extern-sdata: MIPS Options. (line 480)
  50835. * mno-fancy-math-387: x86 Options. (line 547)
  50836. * mno-fast-sw-div: Nios II Options. (line 115)
  50837. * mno-faster-structs: SPARC Options. (line 91)
  50838. * mno-fdpic: ARM Options. (line 957)
  50839. * mno-fix: DEC Alpha Options. (line 163)
  50840. * mno-fix-24k: MIPS Options. (line 641)
  50841. * mno-fix-cortex-a53-835769: AArch64 Options. (line 105)
  50842. * mno-fix-cortex-a53-843419: AArch64 Options. (line 112)
  50843. * mno-fix-r10000: MIPS Options. (line 663)
  50844. * mno-fix-r4000: MIPS Options. (line 647)
  50845. * mno-fix-r4400: MIPS Options. (line 657)
  50846. * mno-flat: SPARC Options. (line 22)
  50847. * mno-float: MIPS Options. (line 274)
  50848. * mno-float128: RS/6000 and PowerPC Options.
  50849. (line 214)
  50850. * mno-float128-hardware: RS/6000 and PowerPC Options.
  50851. (line 236)
  50852. * mno-flush-func: M32R/D Options. (line 98)
  50853. * mno-flush-trap: M32R/D Options. (line 90)
  50854. * mno-fmaf: SPARC Options. (line 267)
  50855. * mno-fp-in-toc: RS/6000 and PowerPC Options.
  50856. (line 256)
  50857. * mno-fp-regs: DEC Alpha Options. (line 25)
  50858. * mno-fp-ret-in-387: x86 Options. (line 537)
  50859. * mno-fprnd: RS/6000 and PowerPC Options.
  50860. (line 25)
  50861. * mno-fpu: SPARC Options. (line 39)
  50862. * mno-fpu <1>: Visium Options. (line 24)
  50863. * mno-fsca: SH Options. (line 365)
  50864. * mno-fsmuld: SPARC Options. (line 274)
  50865. * mno-fsrra: SH Options. (line 374)
  50866. * mno-fused-madd: IA-64 Options. (line 88)
  50867. * mno-fused-madd <1>: MIPS Options. (line 624)
  50868. * mno-fused-madd <2>: RS/6000 and PowerPC Options.
  50869. (line 369)
  50870. * mno-fused-madd <3>: S/390 and zSeries Options.
  50871. (line 182)
  50872. * mno-fused-madd <4>: SH Options. (line 356)
  50873. * mno-fused-madd <5>: Xtensa Options. (line 19)
  50874. * mno-ginv: MIPS Options. (line 421)
  50875. * mno-gnu-as: IA-64 Options. (line 18)
  50876. * mno-gnu-attribute: RS/6000 and PowerPC Options.
  50877. (line 586)
  50878. * mno-gnu-ld: IA-64 Options. (line 23)
  50879. * mno-gotplt: CRIS Options. (line 81)
  50880. * mno-gpopt: MIPS Options. (line 502)
  50881. * mno-gpopt <1>: Nios II Options. (line 16)
  50882. * mno-hard-dfp: RS/6000 and PowerPC Options.
  50883. (line 25)
  50884. * mno-hard-dfp <1>: S/390 and zSeries Options.
  50885. (line 20)
  50886. * mno-hardlit: MCore Options. (line 10)
  50887. * mno-htm: RS/6000 and PowerPC Options.
  50888. (line 183)
  50889. * mno-htm <1>: S/390 and zSeries Options.
  50890. (line 104)
  50891. * mno-hw-div: Nios II Options. (line 124)
  50892. * mno-hw-mul: Nios II Options. (line 124)
  50893. * mno-hw-mulx: Nios II Options. (line 124)
  50894. * mno-id-shared-library: Blackfin Options. (line 85)
  50895. * mno-ieee: SH Options. (line 165)
  50896. * mno-ieee-fp: x86 Options. (line 514)
  50897. * mno-imadd: MIPS Options. (line 617)
  50898. * mno-inline-float-divide: IA-64 Options. (line 62)
  50899. * mno-inline-int-divide: IA-64 Options. (line 73)
  50900. * mno-inline-sqrt: IA-64 Options. (line 84)
  50901. * mno-int16: PDP-11 Options. (line 37)
  50902. * mno-int32: PDP-11 Options. (line 33)
  50903. * mno-interlink-compressed: MIPS Options. (line 135)
  50904. * mno-interlink-mips16: MIPS Options. (line 147)
  50905. * mno-interrupts: AVR Options. (line 227)
  50906. * mno-isel: RS/6000 and PowerPC Options.
  50907. (line 166)
  50908. * mno-jsr: RX Options. (line 169)
  50909. * mno-knuthdiv: MMIX Options. (line 32)
  50910. * mno-leaf-id-shared-library: Blackfin Options. (line 95)
  50911. * mno-libfuncs: MMIX Options. (line 10)
  50912. * mno-liw: MN10300 Options. (line 59)
  50913. * mno-llsc: MIPS Options. (line 339)
  50914. * mno-load-store-pairs: MIPS Options. (line 590)
  50915. * mno-local-sdata: MIPS Options. (line 468)
  50916. * mno-long-calls: ARM Options. (line 755)
  50917. * mno-long-calls <1>: Blackfin Options. (line 118)
  50918. * mno-long-calls <2>: HPPA Options. (line 136)
  50919. * mno-long-calls <3>: MIPS Options. (line 603)
  50920. * mno-long-calls <4>: V850 Options. (line 10)
  50921. * mno-long-jumps: V850 Options. (line 108)
  50922. * mno-longcall: RS/6000 and PowerPC Options.
  50923. (line 727)
  50924. * mno-longcalls: Xtensa Options. (line 87)
  50925. * mno-loongson-ext: MIPS Options. (line 430)
  50926. * mno-loongson-ext2: MIPS Options. (line 434)
  50927. * mno-loongson-mmi: MIPS Options. (line 425)
  50928. * mno-low-precision-div: AArch64 Options. (line 135)
  50929. * mno-low-precision-recip-sqrt: AArch64 Options. (line 118)
  50930. * mno-low-precision-sqrt: AArch64 Options. (line 126)
  50931. * mno-low64k: Blackfin Options. (line 71)
  50932. * mno-lra: SPARC Options. (line 111)
  50933. * mno-lsim: FR30 Options. (line 14)
  50934. * mno-lsim <1>: MCore Options. (line 46)
  50935. * mno-mad: MIPS Options. (line 612)
  50936. * mno-max: DEC Alpha Options. (line 163)
  50937. * mno-mcount-ra-address: MIPS Options. (line 872)
  50938. * mno-mcu: MIPS Options. (line 399)
  50939. * mno-mdmx: MIPS Options. (line 376)
  50940. * mno-media: FRV Options. (line 60)
  50941. * mno-memcpy: MIPS Options. (line 597)
  50942. * mno-mfcrf: RS/6000 and PowerPC Options.
  50943. (line 25)
  50944. * mno-mips16: MIPS Options. (line 120)
  50945. * mno-mips3d: MIPS Options. (line 382)
  50946. * mno-mma: RS/6000 and PowerPC Options.
  50947. (line 943)
  50948. * mno-mmicromips: MIPS Options. (line 387)
  50949. * mno-mpy: ARC Options. (line 117)
  50950. * mno-ms-bitfields: x86 Options. (line 1087)
  50951. * mno-mt: MIPS Options. (line 395)
  50952. * mno-mul-bug-workaround: CRIS Options. (line 32)
  50953. * mno-muladd: FRV Options. (line 68)
  50954. * mno-mulhw: RS/6000 and PowerPC Options.
  50955. (line 378)
  50956. * mno-mult-bug: MN10300 Options. (line 13)
  50957. * mno-multi-cond-exec: FRV Options. (line 223)
  50958. * mno-multiple: RS/6000 and PowerPC Options.
  50959. (line 339)
  50960. * mno-mvcle: S/390 and zSeries Options.
  50961. (line 138)
  50962. * mno-nested-cond-exec: FRV Options. (line 237)
  50963. * mno-odd-spreg: MIPS Options. (line 293)
  50964. * mno-omit-leaf-frame-pointer: AArch64 Options. (line 58)
  50965. * mno-optimize-membar: FRV Options. (line 249)
  50966. * mno-opts: MeP Options. (line 93)
  50967. * mno-pack: FRV Options. (line 151)
  50968. * mno-packed-stack: S/390 and zSeries Options.
  50969. (line 54)
  50970. * mno-paired-single: MIPS Options. (line 370)
  50971. * mno-pc-relative-literal-loads: AArch64 Options. (line 262)
  50972. * mno-pcrel: RS/6000 and PowerPC Options.
  50973. (line 931)
  50974. * mno-pic: IA-64 Options. (line 26)
  50975. * mno-pid: RX Options. (line 117)
  50976. * mno-plt: MIPS Options. (line 219)
  50977. * mno-pltseq: RS/6000 and PowerPC Options.
  50978. (line 764)
  50979. * mno-popc: SPARC Options. (line 281)
  50980. * mno-popcntb: RS/6000 and PowerPC Options.
  50981. (line 25)
  50982. * mno-popcntd: RS/6000 and PowerPC Options.
  50983. (line 25)
  50984. * mno-postinc: Adapteva Epiphany Options.
  50985. (line 109)
  50986. * mno-postmodify: Adapteva Epiphany Options.
  50987. (line 109)
  50988. * mno-power8-fusion: RS/6000 and PowerPC Options.
  50989. (line 189)
  50990. * mno-power8-vector: RS/6000 and PowerPC Options.
  50991. (line 195)
  50992. * mno-powerpc-gfxopt: RS/6000 and PowerPC Options.
  50993. (line 25)
  50994. * mno-powerpc-gpopt: RS/6000 and PowerPC Options.
  50995. (line 25)
  50996. * mno-powerpc64: RS/6000 and PowerPC Options.
  50997. (line 25)
  50998. * mno-prefixed: RS/6000 and PowerPC Options.
  50999. (line 938)
  51000. * mno-prolog-function: V850 Options. (line 23)
  51001. * mno-prologue-epilogue: CRIS Options. (line 71)
  51002. * mno-prototype: RS/6000 and PowerPC Options.
  51003. (line 592)
  51004. * mno-push-args: x86 Options. (line 1064)
  51005. * mno-quad-memory: RS/6000 and PowerPC Options.
  51006. (line 202)
  51007. * mno-quad-memory-atomic: RS/6000 and PowerPC Options.
  51008. (line 208)
  51009. * mno-readonly-in-sdata: RS/6000 and PowerPC Options.
  51010. (line 683)
  51011. * mno-red-zone: x86 Options. (line 1433)
  51012. * mno-register-names: IA-64 Options. (line 37)
  51013. * mno-regnames: RS/6000 and PowerPC Options.
  51014. (line 721)
  51015. * mno-relax: PRU Options. (line 21)
  51016. * mno-relax <1>: V850 Options. (line 103)
  51017. * mno-relax-immediate: MCore Options. (line 19)
  51018. * mno-relocatable: RS/6000 and PowerPC Options.
  51019. (line 408)
  51020. * mno-relocatable-lib: RS/6000 and PowerPC Options.
  51021. (line 419)
  51022. * mno-renesas: SH Options. (line 155)
  51023. * mno-round-nearest: Adapteva Epiphany Options.
  51024. (line 51)
  51025. * mno-save-mduc-in-interrupts: RL78 Options. (line 79)
  51026. * mno-scc: FRV Options. (line 180)
  51027. * mno-sched-ar-data-spec: IA-64 Options. (line 135)
  51028. * mno-sched-ar-in-data-spec: IA-64 Options. (line 157)
  51029. * mno-sched-br-data-spec: IA-64 Options. (line 128)
  51030. * mno-sched-br-in-data-spec: IA-64 Options. (line 150)
  51031. * mno-sched-control-spec: IA-64 Options. (line 142)
  51032. * mno-sched-count-spec-in-critical-path: IA-64 Options. (line 185)
  51033. * mno-sched-in-control-spec: IA-64 Options. (line 164)
  51034. * mno-sched-prefer-non-control-spec-insns: IA-64 Options. (line 178)
  51035. * mno-sched-prefer-non-data-spec-insns: IA-64 Options. (line 171)
  51036. * mno-sched-prolog: ARM Options. (line 32)
  51037. * mno-sdata: ARC Options. (line 422)
  51038. * mno-sdata <1>: IA-64 Options. (line 42)
  51039. * mno-sdata <2>: RS/6000 and PowerPC Options.
  51040. (line 678)
  51041. * mno-sep-data: Blackfin Options. (line 113)
  51042. * mno-serialize-volatile: Xtensa Options. (line 35)
  51043. * mno-setlb: MN10300 Options. (line 69)
  51044. * mno-short: M680x0 Options. (line 222)
  51045. * mno-side-effects: CRIS Options. (line 46)
  51046. * mno-sim: RX Options. (line 71)
  51047. * mno-single-exit: MMIX Options. (line 65)
  51048. * mno-slow-bytes: MCore Options. (line 35)
  51049. * mno-small-exec: S/390 and zSeries Options.
  51050. (line 79)
  51051. * mno-smartmips: MIPS Options. (line 366)
  51052. * mno-soft-cmpsf: Adapteva Epiphany Options.
  51053. (line 29)
  51054. * mno-soft-float: DEC Alpha Options. (line 10)
  51055. * mno-space-regs: HPPA Options. (line 45)
  51056. * mno-specld-anomaly: Blackfin Options. (line 53)
  51057. * mno-split-addresses: MIPS Options. (line 555)
  51058. * mno-split-lohi: Adapteva Epiphany Options.
  51059. (line 109)
  51060. * mno-stack-align: CRIS Options. (line 55)
  51061. * mno-stack-bias: SPARC Options. (line 372)
  51062. * mno-std-struct-return: SPARC Options. (line 102)
  51063. * mno-strict-align: AArch64 Options. (line 52)
  51064. * mno-strict-align <1>: M680x0 Options. (line 280)
  51065. * mno-strict-align <2>: RS/6000 and PowerPC Options.
  51066. (line 403)
  51067. * mno-subxc: SPARC Options. (line 288)
  51068. * mno-sum-in-toc: RS/6000 and PowerPC Options.
  51069. (line 256)
  51070. * mno-sym32: MIPS Options. (line 453)
  51071. * mno-target-align: Xtensa Options. (line 74)
  51072. * mno-text-section-literals: Xtensa Options. (line 47)
  51073. * mno-tls-markers: RS/6000 and PowerPC Options.
  51074. (line 776)
  51075. * mno-toc: RS/6000 and PowerPC Options.
  51076. (line 428)
  51077. * mno-toplevel-symbols: MMIX Options. (line 39)
  51078. * mno-tpf-trace: S/390 and zSeries Options.
  51079. (line 168)
  51080. * mno-tpf-trace-skip: S/390 and zSeries Options.
  51081. (line 174)
  51082. * mno-unaligned-access: ARM Options. (line 899)
  51083. * mno-unaligned-doubles: SPARC Options. (line 73)
  51084. * mno-uninit-const-in-rodata: MIPS Options. (line 525)
  51085. * mno-update: RS/6000 and PowerPC Options.
  51086. (line 350)
  51087. * mno-user-mode: SPARC Options. (line 85)
  51088. * mno-usermode: SH Options. (line 274)
  51089. * mno-v3push: NDS32 Options. (line 48)
  51090. * mno-v8plus: SPARC Options. (line 214)
  51091. * mno-vect-double: Adapteva Epiphany Options.
  51092. (line 115)
  51093. * mno-virt: MIPS Options. (line 407)
  51094. * mno-vis: SPARC Options. (line 221)
  51095. * mno-vis2: SPARC Options. (line 227)
  51096. * mno-vis3: SPARC Options. (line 235)
  51097. * mno-vis4: SPARC Options. (line 243)
  51098. * mno-vis4b: SPARC Options. (line 251)
  51099. * mno-vliw-branch: FRV Options. (line 208)
  51100. * mno-volatile-asm-stop: IA-64 Options. (line 32)
  51101. * mno-volatile-cache: ARC Options. (line 431)
  51102. * mno-vrsave: RS/6000 and PowerPC Options.
  51103. (line 152)
  51104. * mno-vsx: RS/6000 and PowerPC Options.
  51105. (line 171)
  51106. * mno-vx: S/390 and zSeries Options.
  51107. (line 112)
  51108. * mno-warn-devices-csv: MSP430 Options. (line 153)
  51109. * mno-warn-mcu: MSP430 Options. (line 65)
  51110. * mno-warn-multiple-fast-interrupts: RX Options. (line 143)
  51111. * mno-wide-bitfields: MCore Options. (line 23)
  51112. * mno-xgot: M680x0 Options. (line 312)
  51113. * mno-xgot <1>: MIPS Options. (line 229)
  51114. * mno-xl-compat: RS/6000 and PowerPC Options.
  51115. (line 291)
  51116. * mno-xpa: MIPS Options. (line 411)
  51117. * mno-zdcbranch: SH Options. (line 341)
  51118. * mno-zero-extend: MMIX Options. (line 26)
  51119. * mno-zvector: S/390 and zSeries Options.
  51120. (line 123)
  51121. * mnobitfield: M680x0 Options. (line 227)
  51122. * mnodiv: FT32 Options. (line 20)
  51123. * mnomacsave: SH Options. (line 160)
  51124. * mnop-fun-dllimport: x86 Windows Options.
  51125. (line 22)
  51126. * mnop-mcount: x86 Options. (line 1294)
  51127. * mnopm: FT32 Options. (line 29)
  51128. * mnops: Adapteva Epiphany Options.
  51129. (line 26)
  51130. * mnorm: ARC Options. (line 128)
  51131. * modd-spreg: MIPS Options. (line 293)
  51132. * momit-leaf-frame-pointer: AArch64 Options. (line 58)
  51133. * momit-leaf-frame-pointer <1>: Blackfin Options. (line 43)
  51134. * momit-leaf-frame-pointer <2>: x86 Options. (line 1258)
  51135. * mone-byte-bool: Darwin Options. (line 90)
  51136. * moptimize: Nvidia PTX Options. (line 22)
  51137. * moptimize-membar: FRV Options. (line 244)
  51138. * moptimize-membar <1>: FRV Options. (line 249)
  51139. * moverride: AArch64 Options. (line 249)
  51140. * MP: Preprocessor Options.
  51141. (line 132)
  51142. * mpa-risc-1-0: HPPA Options. (line 19)
  51143. * mpa-risc-1-1: HPPA Options. (line 19)
  51144. * mpa-risc-2-0: HPPA Options. (line 19)
  51145. * mpack: FRV Options. (line 147)
  51146. * mpacked-stack: S/390 and zSeries Options.
  51147. (line 54)
  51148. * mpadstruct: SH Options. (line 189)
  51149. * mpaired-single: MIPS Options. (line 370)
  51150. * mpc-relative-literal-loads: AArch64 Options. (line 262)
  51151. * mpc32: x86 Options. (line 679)
  51152. * mpc64: x86 Options. (line 679)
  51153. * mpc80: x86 Options. (line 679)
  51154. * mpclmul: x86 Options. (line 777)
  51155. * mpconfig: x86 Options. (line 785)
  51156. * mpcrel: M680x0 Options. (line 272)
  51157. * mpcrel <1>: RS/6000 and PowerPC Options.
  51158. (line 931)
  51159. * mpdebug: CRIS Options. (line 36)
  51160. * mpe: RS/6000 and PowerPC Options.
  51161. (line 310)
  51162. * mpe-aligned-commons: x86 Windows Options.
  51163. (line 59)
  51164. * mpic-data-is-text-relative: ARM Options. (line 792)
  51165. * mpic-data-is-text-relative <1>: MicroBlaze Options. (line 70)
  51166. * mpic-register: ARM Options. (line 785)
  51167. * mpid: RX Options. (line 117)
  51168. * mpku: x86 Options. (line 813)
  51169. * mplt: MIPS Options. (line 219)
  51170. * mpltseq: RS/6000 and PowerPC Options.
  51171. (line 764)
  51172. * mpointer-size=SIZE: VMS Options. (line 20)
  51173. * mpointers-to-nested-functions: RS/6000 and PowerPC Options.
  51174. (line 877)
  51175. * mpoke-function-name: ARM Options. (line 800)
  51176. * mpopc: SPARC Options. (line 281)
  51177. * mpopcnt: x86 Options. (line 797)
  51178. * mpopcntb: RS/6000 and PowerPC Options.
  51179. (line 25)
  51180. * mpopcntd: RS/6000 and PowerPC Options.
  51181. (line 25)
  51182. * mportable-runtime: HPPA Options. (line 71)
  51183. * mpostinc: Adapteva Epiphany Options.
  51184. (line 109)
  51185. * mpostmodify: Adapteva Epiphany Options.
  51186. (line 109)
  51187. * mpower8-fusion: RS/6000 and PowerPC Options.
  51188. (line 189)
  51189. * mpower8-vector: RS/6000 and PowerPC Options.
  51190. (line 195)
  51191. * mpowerpc-gfxopt: RS/6000 and PowerPC Options.
  51192. (line 25)
  51193. * mpowerpc-gpopt: RS/6000 and PowerPC Options.
  51194. (line 25)
  51195. * mpowerpc64: RS/6000 and PowerPC Options.
  51196. (line 25)
  51197. * mprefer-avx128: x86 Options. (line 900)
  51198. * mprefer-short-insn-regs: Adapteva Epiphany Options.
  51199. (line 13)
  51200. * mprefer-vector-width: x86 Options. (line 904)
  51201. * mprefergot: SH Options. (line 268)
  51202. * mpreferred-stack-boundary: RISC-V Options. (line 73)
  51203. * mpreferred-stack-boundary <1>: x86 Options. (line 709)
  51204. * mprefetchwt1: x86 Options. (line 790)
  51205. * mprefixed: RS/6000 and PowerPC Options.
  51206. (line 938)
  51207. * mpretend-cmove: SH Options. (line 383)
  51208. * mprfchw: x86 Options. (line 788)
  51209. * mprint-tune-info: ARM Options. (line 933)
  51210. * mprioritize-restricted-insns: RS/6000 and PowerPC Options.
  51211. (line 457)
  51212. * mprolog-function: V850 Options. (line 23)
  51213. * mprologue-epilogue: CRIS Options. (line 71)
  51214. * mprototype: RS/6000 and PowerPC Options.
  51215. (line 592)
  51216. * mptwrite: x86 Options. (line 781)
  51217. * mpure-code: ARM Options. (line 943)
  51218. * mpush-args: x86 Options. (line 1064)
  51219. * mpushpop: C-SKY Options. (line 114)
  51220. * MQ: Preprocessor Options.
  51221. (line 159)
  51222. * mq-class: ARC Options. (line 521)
  51223. * mquad-memory: RS/6000 and PowerPC Options.
  51224. (line 202)
  51225. * mquad-memory-atomic: RS/6000 and PowerPC Options.
  51226. (line 208)
  51227. * mr0rel-sec: Nios II Options. (line 76)
  51228. * mr10k-cache-barrier: MIPS Options. (line 714)
  51229. * mRcq: ARC Options. (line 525)
  51230. * mRcw: ARC Options. (line 529)
  51231. * mrdpid: x86 Options. (line 789)
  51232. * mrdrnd: x86 Options. (line 782)
  51233. * mrdseed: x86 Options. (line 791)
  51234. * mreadonly-in-sdata: RS/6000 and PowerPC Options.
  51235. (line 683)
  51236. * mrecip: RS/6000 and PowerPC Options.
  51237. (line 784)
  51238. * mrecip <1>: x86 Options. (line 954)
  51239. * mrecip-precision: RS/6000 and PowerPC Options.
  51240. (line 841)
  51241. * mrecip=opt: RS/6000 and PowerPC Options.
  51242. (line 797)
  51243. * mrecip=opt <1>: x86 Options. (line 976)
  51244. * mrecord-mcount: x86 Options. (line 1288)
  51245. * mrecord-return: x86 Options. (line 1308)
  51246. * mred-zone: x86 Options. (line 1433)
  51247. * mreduced-regs: NDS32 Options. (line 15)
  51248. * mregister-names: IA-64 Options. (line 37)
  51249. * mregnames: RS/6000 and PowerPC Options.
  51250. (line 721)
  51251. * mregparm: x86 Options. (line 649)
  51252. * mrelax: AVR Options. (line 231)
  51253. * mrelax <1>: H8/300 Options. (line 9)
  51254. * mrelax <2>: MN10300 Options. (line 46)
  51255. * mrelax <3>: MSP430 Options. (line 88)
  51256. * mrelax <4>: NDS32 Options. (line 84)
  51257. * mrelax <5>: RX Options. (line 95)
  51258. * mrelax <6>: SH Options. (line 137)
  51259. * mrelax <7>: V850 Options. (line 103)
  51260. * mrelax-immediate: MCore Options. (line 19)
  51261. * mrelax-pic-calls: MIPS Options. (line 859)
  51262. * mrelocatable: RS/6000 and PowerPC Options.
  51263. (line 408)
  51264. * mrelocatable-lib: RS/6000 and PowerPC Options.
  51265. (line 419)
  51266. * mrenesas: SH Options. (line 152)
  51267. * mrepeat: MeP Options. (line 96)
  51268. * mrestrict-it: ARM Options. (line 927)
  51269. * mreturn-pointer-on-d0: MN10300 Options. (line 36)
  51270. * mrf16: ARC Options. (line 324)
  51271. * mrgf-banked-regs: ARC Options. (line 304)
  51272. * mrh850-abi: V850 Options. (line 127)
  51273. * mrl78: RL78 Options. (line 62)
  51274. * mrmw: AVR Options. (line 245)
  51275. * mror: OpenRISC Options. (line 49)
  51276. * mrori: OpenRISC Options. (line 54)
  51277. * mround-nearest: Adapteva Epiphany Options.
  51278. (line 51)
  51279. * mrtd: M680x0 Options. (line 236)
  51280. * mrtd <1>: x86 Options. (line 625)
  51281. * mrtd <2>: x86 Function Attributes.
  51282. (line 9)
  51283. * mrtm: x86 Options. (line 808)
  51284. * mrtp: VxWorks Options. (line 11)
  51285. * mrtsc: ARC Options. (line 358)
  51286. * ms: H8/300 Options. (line 17)
  51287. * ms <1>: MeP Options. (line 100)
  51288. * ms2600: H8/300 Options. (line 24)
  51289. * msahf: x86 Options. (line 930)
  51290. * msatur: MeP Options. (line 105)
  51291. * msave-acc-in-interrupts: RX Options. (line 109)
  51292. * msave-mduc-in-interrupts: RL78 Options. (line 79)
  51293. * msave-restore: RISC-V Options. (line 87)
  51294. * msave-toc-indirect: RS/6000 and PowerPC Options.
  51295. (line 889)
  51296. * mscc: FRV Options. (line 173)
  51297. * msched-ar-data-spec: IA-64 Options. (line 135)
  51298. * msched-ar-in-data-spec: IA-64 Options. (line 157)
  51299. * msched-br-data-spec: IA-64 Options. (line 128)
  51300. * msched-br-in-data-spec: IA-64 Options. (line 150)
  51301. * msched-control-spec: IA-64 Options. (line 142)
  51302. * msched-costly-dep: RS/6000 and PowerPC Options.
  51303. (line 464)
  51304. * msched-count-spec-in-critical-path: IA-64 Options. (line 185)
  51305. * msched-fp-mem-deps-zero-cost: IA-64 Options. (line 202)
  51306. * msched-in-control-spec: IA-64 Options. (line 164)
  51307. * msched-max-memory-insns: IA-64 Options. (line 211)
  51308. * msched-max-memory-insns-hard-limit: IA-64 Options. (line 217)
  51309. * msched-prefer-non-control-spec-insns: IA-64 Options. (line 178)
  51310. * msched-prefer-non-data-spec-insns: IA-64 Options. (line 171)
  51311. * msched-prolog: ARM Options. (line 32)
  51312. * msched-prolog <1>: C-SKY Options. (line 148)
  51313. * msched-spec-ldc: IA-64 Options. (line 191)
  51314. * msched-spec-ldc <1>: IA-64 Options. (line 194)
  51315. * msched-stop-bits-after-every-cycle: IA-64 Options. (line 198)
  51316. * mschedule: HPPA Options. (line 78)
  51317. * mscore5: Score Options. (line 25)
  51318. * mscore5u: Score Options. (line 28)
  51319. * mscore7: Score Options. (line 31)
  51320. * mscore7d: Score Options. (line 35)
  51321. * msda: V850 Options. (line 40)
  51322. * msdata: ARC Options. (line 422)
  51323. * msdata <1>: IA-64 Options. (line 42)
  51324. * msdata <2>: RS/6000 and PowerPC Options.
  51325. (line 665)
  51326. * msdata=all: C6X Options. (line 30)
  51327. * msdata=data: RS/6000 and PowerPC Options.
  51328. (line 670)
  51329. * msdata=default: C6X Options. (line 22)
  51330. * msdata=default <1>: RS/6000 and PowerPC Options.
  51331. (line 665)
  51332. * msdata=eabi: RS/6000 and PowerPC Options.
  51333. (line 646)
  51334. * msdata=none: C6X Options. (line 35)
  51335. * msdata=none <1>: M32R/D Options. (line 40)
  51336. * msdata=none <2>: RS/6000 and PowerPC Options.
  51337. (line 678)
  51338. * msdata=sdata: M32R/D Options. (line 49)
  51339. * msdata=sysv: RS/6000 and PowerPC Options.
  51340. (line 656)
  51341. * msdata=use: M32R/D Options. (line 53)
  51342. * msdram: Blackfin Options. (line 169)
  51343. * msdram <1>: MeP Options. (line 110)
  51344. * msecure-plt: RS/6000 and PowerPC Options.
  51345. (line 155)
  51346. * msecurity: C-SKY Options. (line 80)
  51347. * msel-sched-dont-check-control-spec: IA-64 Options. (line 207)
  51348. * msep-data: Blackfin Options. (line 107)
  51349. * msep-data <1>: Blackfin Options. (line 113)
  51350. * mserialize-volatile: Xtensa Options. (line 35)
  51351. * msetlb: MN10300 Options. (line 64)
  51352. * msext: OpenRISC Options. (line 59)
  51353. * msfimm: OpenRISC Options. (line 63)
  51354. * msgx: x86 Options. (line 792)
  51355. * msha: x86 Options. (line 775)
  51356. * mshared-library-id: Blackfin Options. (line 100)
  51357. * mshftimm: OpenRISC Options. (line 68)
  51358. * mshort: M680x0 Options. (line 216)
  51359. * mshort-calls: AVR Options. (line 249)
  51360. * mshstk: x86 Options. (line 944)
  51361. * mside-effects: CRIS Options. (line 46)
  51362. * msign-extend-enabled: LM32 Options. (line 18)
  51363. * msign-return-address: AArch64 Options. (line 268)
  51364. * msilicon-errata: MSP430 Options. (line 144)
  51365. * msilicon-errata-warn: MSP430 Options. (line 148)
  51366. * msim: Blackfin Options. (line 36)
  51367. * msim <1>: C6X Options. (line 19)
  51368. * msim <2>: CR16 Options. (line 18)
  51369. * msim <3>: FT32 Options. (line 9)
  51370. * msim <4>: M32C Options. (line 13)
  51371. * msim <5>: MeP Options. (line 114)
  51372. * msim <6>: MSP430 Options. (line 77)
  51373. * msim <7>: RL78 Options. (line 7)
  51374. * msim <8>: RS/6000 and PowerPC Options.
  51375. (line 602)
  51376. * msim <9>: RX Options. (line 71)
  51377. * msim <10>: Visium Options. (line 13)
  51378. * msim <11>: Xstormy16 Options. (line 9)
  51379. * msimd: ARC Options. (line 141)
  51380. * msimnovec: MeP Options. (line 117)
  51381. * msingle-exit: MMIX Options. (line 65)
  51382. * msingle-float: MIPS Options. (line 284)
  51383. * msingle-pic-base: ARM Options. (line 779)
  51384. * msingle-pic-base <1>: RS/6000 and PowerPC Options.
  51385. (line 451)
  51386. * msio: HPPA Options. (line 105)
  51387. * msize-level: ARC Options. (line 533)
  51388. * mskip-rax-setup: x86 Options. (line 1321)
  51389. * mslow-bytes: MCore Options. (line 35)
  51390. * mslow-flash-data: ARM Options. (line 915)
  51391. * msmall: MSP430 Options. (line 85)
  51392. * msmall-data: DEC Alpha Options. (line 187)
  51393. * msmall-data-limit: RISC-V Options. (line 82)
  51394. * msmall-data-limit <1>: RX Options. (line 47)
  51395. * msmall-divides: MicroBlaze Options. (line 38)
  51396. * msmall-exec: S/390 and zSeries Options.
  51397. (line 79)
  51398. * msmall-model: FR30 Options. (line 9)
  51399. * msmall-text: DEC Alpha Options. (line 205)
  51400. * msmall16: Adapteva Epiphany Options.
  51401. (line 66)
  51402. * msmallc: Nios II Options. (line 310)
  51403. * msmart: C-SKY Options. (line 97)
  51404. * msmartmips: MIPS Options. (line 366)
  51405. * msoft-cmpsf: Adapteva Epiphany Options.
  51406. (line 29)
  51407. * msoft-div: OpenRISC Options. (line 19)
  51408. * msoft-float: ARC Options. (line 145)
  51409. * msoft-float <1>: C-SKY Options. (line 36)
  51410. * msoft-float <2>: DEC Alpha Options. (line 10)
  51411. * msoft-float <3>: FRV Options. (line 27)
  51412. * msoft-float <4>: HPPA Options. (line 91)
  51413. * msoft-float <5>: M680x0 Options. (line 200)
  51414. * msoft-float <6>: MicroBlaze Options. (line 7)
  51415. * msoft-float <7>: MIPS Options. (line 270)
  51416. * msoft-float <8>: OpenRISC Options. (line 29)
  51417. * msoft-float <9>: PDP-11 Options. (line 13)
  51418. * msoft-float <10>: RS/6000 and PowerPC Options.
  51419. (line 333)
  51420. * msoft-float <11>: S/390 and zSeries Options.
  51421. (line 11)
  51422. * msoft-float <12>: SPARC Options. (line 39)
  51423. * msoft-float <13>: V850 Options. (line 113)
  51424. * msoft-float <14>: Visium Options. (line 24)
  51425. * msoft-float <15>: x86 Options. (line 524)
  51426. * msoft-mul: OpenRISC Options. (line 24)
  51427. * msoft-quad-float: SPARC Options. (line 59)
  51428. * msoft-stack: Nvidia PTX Options. (line 26)
  51429. * msp8: AVR Options. (line 256)
  51430. * mspace: V850 Options. (line 30)
  51431. * mspace-regs: HPPA Options. (line 45)
  51432. * mspecld-anomaly: Blackfin Options. (line 48)
  51433. * mspecld-anomaly <1>: Blackfin Options. (line 53)
  51434. * mspfp: ARC Options. (line 132)
  51435. * mspfp-compact: ARC Options. (line 133)
  51436. * mspfp-fast: ARC Options. (line 137)
  51437. * mspfp_compact: ARC Options. (line 634)
  51438. * mspfp_fast: ARC Options. (line 637)
  51439. * msplit: PDP-11 Options. (line 40)
  51440. * msplit-addresses: MIPS Options. (line 555)
  51441. * msplit-lohi: Adapteva Epiphany Options.
  51442. (line 109)
  51443. * msplit-vecmove-early: Adapteva Epiphany Options.
  51444. (line 126)
  51445. * msse: x86 Options. (line 756)
  51446. * msse2: x86 Options. (line 757)
  51447. * msse2avx: x86 Options. (line 1276)
  51448. * msse3: x86 Options. (line 758)
  51449. * msse4: x86 Options. (line 760)
  51450. * msse4.1: x86 Options. (line 762)
  51451. * msse4.2: x86 Options. (line 763)
  51452. * msse4a: x86 Options. (line 761)
  51453. * msseregparm: x86 Options. (line 660)
  51454. * mssse3: x86 Options. (line 759)
  51455. * mstack-align: CRIS Options. (line 55)
  51456. * mstack-bias: SPARC Options. (line 372)
  51457. * mstack-check-l1: Blackfin Options. (line 74)
  51458. * mstack-guard: S/390 and zSeries Options.
  51459. (line 201)
  51460. * mstack-increment: MCore Options. (line 50)
  51461. * mstack-offset: Adapteva Epiphany Options.
  51462. (line 37)
  51463. * mstack-protector-guard: AArch64 Options. (line 64)
  51464. * mstack-protector-guard <1>: AArch64 Options. (line 79)
  51465. * mstack-protector-guard <2>: RS/6000 and PowerPC Options.
  51466. (line 915)
  51467. * mstack-protector-guard <3>: x86 Options. (line 1347)
  51468. * mstack-protector-guard-offset: AArch64 Options. (line 64)
  51469. * mstack-protector-guard-offset <1>: AArch64 Options. (line 79)
  51470. * mstack-protector-guard-offset <2>: RS/6000 and PowerPC Options.
  51471. (line 915)
  51472. * mstack-protector-guard-offset <3>: x86 Options. (line 1347)
  51473. * mstack-protector-guard-reg: AArch64 Options. (line 64)
  51474. * mstack-protector-guard-reg <1>: AArch64 Options. (line 79)
  51475. * mstack-protector-guard-reg <2>: RS/6000 and PowerPC Options.
  51476. (line 915)
  51477. * mstack-protector-guard-reg <3>: x86 Options. (line 1347)
  51478. * mstack-protector-guard-symbol: RS/6000 and PowerPC Options.
  51479. (line 915)
  51480. * mstack-size: AMD GCN Options. (line 23)
  51481. * mstack-size <1>: C-SKY Options. (line 134)
  51482. * mstack-size <2>: S/390 and zSeries Options.
  51483. (line 201)
  51484. * mstackrealign: x86 Options. (line 700)
  51485. * mstd-struct-return: SPARC Options. (line 102)
  51486. * mstrict-align: AArch64 Options. (line 52)
  51487. * mstrict-align <1>: M680x0 Options. (line 280)
  51488. * mstrict-align <2>: RISC-V Options. (line 93)
  51489. * mstrict-align <3>: RS/6000 and PowerPC Options.
  51490. (line 403)
  51491. * mstrict-X: AVR Options. (line 269)
  51492. * mstring-compare-inline-limit: RS/6000 and PowerPC Options.
  51493. (line 707)
  51494. * mstringop-strategy=ALG: x86 Options. (line 1224)
  51495. * mstructure-size-boundary: ARM Options. (line 734)
  51496. * msubxc: SPARC Options. (line 288)
  51497. * msv-mode: Visium Options. (line 52)
  51498. * msve-vector-bits: AArch64 Options. (line 297)
  51499. * msvr4-struct-return: RS/6000 and PowerPC Options.
  51500. (line 548)
  51501. * mswap: ARC Options. (line 152)
  51502. * mswape: ARC Options. (line 363)
  51503. * msym32: MIPS Options. (line 453)
  51504. * msynci: MIPS Options. (line 845)
  51505. * msys-crt0: Nios II Options. (line 314)
  51506. * msys-lib: Nios II Options. (line 318)
  51507. * MT: Preprocessor Options.
  51508. (line 144)
  51509. * mtarget-align: Xtensa Options. (line 74)
  51510. * mtas: SH Options. (line 259)
  51511. * mtbm: x86 Options. (line 810)
  51512. * mtda: V850 Options. (line 34)
  51513. * mtelephony: ARC Options. (line 368)
  51514. * mtext-section-literals: Xtensa Options. (line 47)
  51515. * mtf: MeP Options. (line 121)
  51516. * mthread: x86 Windows Options.
  51517. (line 26)
  51518. * mthreads: x86 Options. (line 1079)
  51519. * mthumb: ARM Options. (line 822)
  51520. * mthumb-interwork: ARM Options. (line 24)
  51521. * mtiny-printf: MSP430 Options. (line 122)
  51522. * mtiny-stack: AVR Options. (line 283)
  51523. * mtiny=: MeP Options. (line 125)
  51524. * mTLS: FRV Options. (line 90)
  51525. * mtls: FRV Options. (line 94)
  51526. * mtls-dialect: ARM Options. (line 874)
  51527. * mtls-dialect <1>: x86 Options. (line 1057)
  51528. * mtls-dialect=desc: AArch64 Options. (line 92)
  51529. * mtls-dialect=traditional: AArch64 Options. (line 96)
  51530. * mtls-direct-seg-refs: x86 Options. (line 1266)
  51531. * mtls-markers: RS/6000 and PowerPC Options.
  51532. (line 776)
  51533. * mtls-size: AArch64 Options. (line 100)
  51534. * mtls-size <1>: IA-64 Options. (line 112)
  51535. * mtoc: RS/6000 and PowerPC Options.
  51536. (line 428)
  51537. * mtomcat-stats: FRV Options. (line 254)
  51538. * mtoplevel-symbols: MMIX Options. (line 39)
  51539. * mtp: ARM Options. (line 866)
  51540. * mtp-regno: ARC Options. (line 170)
  51541. * mtpcs-frame: ARM Options. (line 839)
  51542. * mtpcs-leaf-frame: ARM Options. (line 845)
  51543. * mtpf-trace: S/390 and zSeries Options.
  51544. (line 168)
  51545. * mtpf-trace-skip: S/390 and zSeries Options.
  51546. (line 174)
  51547. * mtraceback: RS/6000 and PowerPC Options.
  51548. (line 541)
  51549. * mtrap-precision: DEC Alpha Options. (line 109)
  51550. * mtrust: C-SKY Options. (line 83)
  51551. * mtune: AArch64 Options. (line 199)
  51552. * mtune <1>: AMD GCN Options. (line 10)
  51553. * mtune <2>: ARC Options. (line 554)
  51554. * mtune <3>: ARC Options. (line 640)
  51555. * mtune <4>: ARM Options. (line 571)
  51556. * mtune <5>: CRIS Options. (line 17)
  51557. * mtune <6>: DEC Alpha Options. (line 259)
  51558. * mtune <7>: IA-64 Options. (line 116)
  51559. * mtune <8>: M680x0 Options. (line 68)
  51560. * mtune <9>: MIPS Options. (line 66)
  51561. * mtune <10>: MN10300 Options. (line 30)
  51562. * mtune <11>: RISC-V Options. (line 59)
  51563. * mtune <12>: RS/6000 and PowerPC Options.
  51564. (line 113)
  51565. * mtune <13>: S/390 and zSeries Options.
  51566. (line 161)
  51567. * mtune <14>: SPARC Options. (line 199)
  51568. * mtune <15>: Visium Options. (line 47)
  51569. * mtune <16>: x86 Options. (line 398)
  51570. * mtune-ctrl=FEATURE-LIST: x86 Options. (line 867)
  51571. * muclibc: GNU/Linux Options. (line 14)
  51572. * muls: Score Options. (line 18)
  51573. * multcost: ARC Options. (line 645)
  51574. * multcost=NUMBER: SH Options. (line 281)
  51575. * multilib-library-pic: FRV Options. (line 110)
  51576. * multiply-enabled: LM32 Options. (line 15)
  51577. * multiply_defined: Darwin Options. (line 196)
  51578. * multiply_defined_unused: Darwin Options. (line 196)
  51579. * multi_module: Darwin Options. (line 196)
  51580. * munalign-prob-threshold: ARC Options. (line 582)
  51581. * munaligned-access: ARM Options. (line 899)
  51582. * munaligned-doubles: SPARC Options. (line 73)
  51583. * municode: x86 Windows Options.
  51584. (line 30)
  51585. * muniform-simt: Nvidia PTX Options. (line 38)
  51586. * muninit-const-in-rodata: MIPS Options. (line 525)
  51587. * munix: VAX Options. (line 9)
  51588. * munix-asm: PDP-11 Options. (line 43)
  51589. * munordered-float: OpenRISC Options. (line 39)
  51590. * mupdate: RS/6000 and PowerPC Options.
  51591. (line 350)
  51592. * muser-enabled: LM32 Options. (line 21)
  51593. * muser-mode: SPARC Options. (line 85)
  51594. * muser-mode <1>: Visium Options. (line 57)
  51595. * musermode: SH Options. (line 274)
  51596. * mv3push: NDS32 Options. (line 45)
  51597. * mv850: V850 Options. (line 49)
  51598. * mv850e: V850 Options. (line 79)
  51599. * mv850e1: V850 Options. (line 70)
  51600. * mv850e2: V850 Options. (line 66)
  51601. * mv850e2v3: V850 Options. (line 61)
  51602. * mv850e2v4: V850 Options. (line 57)
  51603. * mv850e3v5: V850 Options. (line 52)
  51604. * mv850es: V850 Options. (line 75)
  51605. * mv8plus: SPARC Options. (line 214)
  51606. * mvaes: x86 Options. (line 817)
  51607. * mvdsp: C-SKY Options. (line 88)
  51608. * mveclibabi: RS/6000 and PowerPC Options.
  51609. (line 850)
  51610. * mveclibabi <1>: x86 Options. (line 1005)
  51611. * mvect-double: Adapteva Epiphany Options.
  51612. (line 115)
  51613. * mvect8-ret-in-mem: x86 Options. (line 670)
  51614. * mverbose-cost-dump: AArch64 Options. (line 257)
  51615. * mverbose-cost-dump <1>: ARM Options. (line 939)
  51616. * mvirt: MIPS Options. (line 407)
  51617. * mvis: SPARC Options. (line 221)
  51618. * mvis2: SPARC Options. (line 227)
  51619. * mvis3: SPARC Options. (line 235)
  51620. * mvis4: SPARC Options. (line 243)
  51621. * mvis4b: SPARC Options. (line 251)
  51622. * mvliw-branch: FRV Options. (line 201)
  51623. * mvms-return-codes: VMS Options. (line 9)
  51624. * mvolatile-asm-stop: IA-64 Options. (line 32)
  51625. * mvolatile-cache: ARC Options. (line 427)
  51626. * mvolatile-cache <1>: ARC Options. (line 431)
  51627. * mvpclmulqdq: x86 Options. (line 819)
  51628. * mvr4130-align: MIPS Options. (line 834)
  51629. * mvrsave: RS/6000 and PowerPC Options.
  51630. (line 152)
  51631. * mvsx: RS/6000 and PowerPC Options.
  51632. (line 171)
  51633. * mvx: S/390 and zSeries Options.
  51634. (line 112)
  51635. * mvxworks: RS/6000 and PowerPC Options.
  51636. (line 623)
  51637. * mvzeroupper: x86 Options. (line 894)
  51638. * mwaitpkg: x86 Options. (line 818)
  51639. * mwarn-devices-csv: MSP430 Options. (line 153)
  51640. * mwarn-dynamicstack: S/390 and zSeries Options.
  51641. (line 195)
  51642. * mwarn-framesize: S/390 and zSeries Options.
  51643. (line 187)
  51644. * mwarn-mcu: MSP430 Options. (line 65)
  51645. * mwarn-multiple-fast-interrupts: RX Options. (line 143)
  51646. * mwbnoinvd: x86 Options. (line 786)
  51647. * mwide-bitfields: MCore Options. (line 23)
  51648. * mwin32: x86 Windows Options.
  51649. (line 35)
  51650. * mwindows: x86 Windows Options.
  51651. (line 41)
  51652. * mword-relocations: ARM Options. (line 885)
  51653. * mx32: x86 Options. (line 1413)
  51654. * mxgot: M680x0 Options. (line 312)
  51655. * mxgot <1>: MIPS Options. (line 229)
  51656. * mxl-barrel-shift: MicroBlaze Options. (line 32)
  51657. * mxl-compat: RS/6000 and PowerPC Options.
  51658. (line 291)
  51659. * mxl-float-convert: MicroBlaze Options. (line 50)
  51660. * mxl-float-sqrt: MicroBlaze Options. (line 53)
  51661. * mxl-gp-opt: MicroBlaze Options. (line 44)
  51662. * mxl-multiply-high: MicroBlaze Options. (line 47)
  51663. * mxl-pattern-compare: MicroBlaze Options. (line 35)
  51664. * mxl-reorder: MicroBlaze Options. (line 62)
  51665. * mxl-soft-div: MicroBlaze Options. (line 29)
  51666. * mxl-soft-mul: MicroBlaze Options. (line 26)
  51667. * mxl-stack-check: MicroBlaze Options. (line 41)
  51668. * mxop: x86 Options. (line 793)
  51669. * mxpa: MIPS Options. (line 411)
  51670. * mxsave: x86 Options. (line 804)
  51671. * mxsavec: x86 Options. (line 806)
  51672. * mxsaveopt: x86 Options. (line 805)
  51673. * mxsaves: x86 Options. (line 807)
  51674. * mxy: ARC Options. (line 373)
  51675. * myellowknife: RS/6000 and PowerPC Options.
  51676. (line 618)
  51677. * mzarch: S/390 and zSeries Options.
  51678. (line 94)
  51679. * mzda: V850 Options. (line 45)
  51680. * mzdcbranch: SH Options. (line 341)
  51681. * mzero-extend: MMIX Options. (line 26)
  51682. * mzvector: S/390 and zSeries Options.
  51683. (line 123)
  51684. * no-80387: x86 Options. (line 524)
  51685. * no-canonical-prefixes: Directory Options. (line 164)
  51686. * no-integrated-cpp: Preprocessor Options.
  51687. (line 480)
  51688. * no-pie: Link Options. (line 181)
  51689. * no-sysroot-suffix: Directory Options. (line 183)
  51690. * noall_load: Darwin Options. (line 196)
  51691. * nocpp: MIPS Options. (line 636)
  51692. * nodefaultlibs: Link Options. (line 119)
  51693. * nodevicelib: AVR Options. (line 290)
  51694. * nodevicespecs: AVR Options. (line 293)
  51695. * nofixprebinding: Darwin Options. (line 196)
  51696. * nofpu: RX Options. (line 17)
  51697. * nolibc: Link Options. (line 131)
  51698. * nolibdld: HPPA Options. (line 188)
  51699. * nomultidefs: Darwin Options. (line 196)
  51700. * non-static: VxWorks Options. (line 16)
  51701. * noprebind: Darwin Options. (line 196)
  51702. * noseglinkedit: Darwin Options. (line 196)
  51703. * nostartfiles: Link Options. (line 114)
  51704. * nostdinc: Directory Options. (line 102)
  51705. * nostdinc++: C++ Dialect Options.
  51706. (line 487)
  51707. * nostdinc++ <1>: Directory Options. (line 108)
  51708. * nostdlib: Link Options. (line 143)
  51709. * no_dead_strip_inits_and_terms: Darwin Options. (line 196)
  51710. * o: Overall Options. (line 197)
  51711. * O: Optimize Options. (line 39)
  51712. * O0: Optimize Options. (line 164)
  51713. * O1: Optimize Options. (line 39)
  51714. * O2: Optimize Options. (line 95)
  51715. * O3: Optimize Options. (line 143)
  51716. * Ofast: Optimize Options. (line 180)
  51717. * Og: Optimize Options. (line 188)
  51718. * Os: Optimize Options. (line 168)
  51719. * p: Instrumentation Options.
  51720. (line 20)
  51721. * P: Preprocessor Options.
  51722. (line 365)
  51723. * p <1>: Common Function Attributes.
  51724. (line 691)
  51725. * pagezero_size: Darwin Options. (line 196)
  51726. * param: Optimize Options. (line 2624)
  51727. * pass-exit-codes: Overall Options. (line 339)
  51728. * pedantic: Standards. (line 13)
  51729. * pedantic <1>: Warning Options. (line 86)
  51730. * pedantic <2>: C Extensions. (line 6)
  51731. * pedantic <3>: Alternate Keywords. (line 30)
  51732. * pedantic <4>: Warnings and Errors.
  51733. (line 25)
  51734. * pedantic-errors: Standards. (line 13)
  51735. * pedantic-errors <1>: Warning Options. (line 129)
  51736. * pedantic-errors <2>: Non-bugs. (line 216)
  51737. * pedantic-errors <3>: Warnings and Errors.
  51738. (line 25)
  51739. * pg: Instrumentation Options.
  51740. (line 20)
  51741. * pg <1>: Common Function Attributes.
  51742. (line 691)
  51743. * pie: Link Options. (line 175)
  51744. * pipe: Overall Options. (line 347)
  51745. * plt: RISC-V Options. (line 13)
  51746. * prebind: Darwin Options. (line 196)
  51747. * prebind_all_twolevel_modules: Darwin Options. (line 196)
  51748. * print-file-name: Developer Options. (line 946)
  51749. * print-libgcc-file-name: Developer Options. (line 980)
  51750. * print-multi-directory: Developer Options. (line 952)
  51751. * print-multi-lib: Developer Options. (line 957)
  51752. * print-multi-os-directory: Developer Options. (line 964)
  51753. * print-multiarch: Developer Options. (line 973)
  51754. * print-objc-runtime-info: Objective-C and Objective-C++ Dialect Options.
  51755. (line 220)
  51756. * print-prog-name: Developer Options. (line 977)
  51757. * print-search-dirs: Developer Options. (line 988)
  51758. * print-sysroot: Developer Options. (line 1001)
  51759. * print-sysroot-headers-suffix: Developer Options. (line 1008)
  51760. * private_bundle: Darwin Options. (line 196)
  51761. * pthread: Preprocessor Options.
  51762. (line 70)
  51763. * pthread <1>: Link Options. (line 192)
  51764. * pthreads: Solaris 2 Options. (line 30)
  51765. * Q: Developer Options. (line 850)
  51766. * Qn: System V Options. (line 18)
  51767. * Qy: System V Options. (line 14)
  51768. * r: Link Options. (line 199)
  51769. * rdynamic: Link Options. (line 203)
  51770. * read_only_relocs: Darwin Options. (line 196)
  51771. * remap: Preprocessor Options.
  51772. (line 396)
  51773. * S: Overall Options. (line 180)
  51774. * S <1>: Link Options. (line 20)
  51775. * s: Link Options. (line 210)
  51776. * save-temps: Developer Options. (line 725)
  51777. * save-temps=obj: Developer Options. (line 751)
  51778. * sectalign: Darwin Options. (line 196)
  51779. * sectcreate: Darwin Options. (line 196)
  51780. * sectobjectsymbols: Darwin Options. (line 196)
  51781. * sectobjectsymbols <1>: Darwin Options. (line 196)
  51782. * sectorder: Darwin Options. (line 196)
  51783. * seg1addr: Darwin Options. (line 196)
  51784. * segaddr: Darwin Options. (line 196)
  51785. * seglinkedit: Darwin Options. (line 196)
  51786. * segprot: Darwin Options. (line 196)
  51787. * segs_read_only_addr: Darwin Options. (line 196)
  51788. * segs_read_only_addr <1>: Darwin Options. (line 196)
  51789. * segs_read_write_addr: Darwin Options. (line 196)
  51790. * segs_read_write_addr <1>: Darwin Options. (line 196)
  51791. * seg_addr_table: Darwin Options. (line 196)
  51792. * seg_addr_table_filename: Darwin Options. (line 196)
  51793. * shared: Link Options. (line 219)
  51794. * shared-libgcc: Link Options. (line 227)
  51795. * short-calls: Adapteva Epiphany Options.
  51796. (line 61)
  51797. * sim: CRIS Options. (line 95)
  51798. * sim2: CRIS Options. (line 101)
  51799. * single_module: Darwin Options. (line 196)
  51800. * specs: Overall Options. (line 353)
  51801. * static: Link Options. (line 214)
  51802. * static <1>: Darwin Options. (line 196)
  51803. * static <2>: HPPA Options. (line 192)
  51804. * static-libasan: Link Options. (line 261)
  51805. * static-libgcc: Link Options. (line 227)
  51806. * static-liblsan: Link Options. (line 277)
  51807. * static-libstdc++: Link Options. (line 294)
  51808. * static-libtsan: Link Options. (line 269)
  51809. * static-libubsan: Link Options. (line 285)
  51810. * static-pie: Link Options. (line 184)
  51811. * std: Standards. (line 13)
  51812. * std <1>: C Dialect Options. (line 46)
  51813. * std <2>: Other Builtins. (line 31)
  51814. * std <3>: Non-bugs. (line 107)
  51815. * sub_library: Darwin Options. (line 196)
  51816. * sub_umbrella: Darwin Options. (line 196)
  51817. * symbolic: Link Options. (line 305)
  51818. * sysroot: Directory Options. (line 168)
  51819. * T: Link Options. (line 311)
  51820. * target-help: Overall Options. (line 229)
  51821. * threads: HPPA Options. (line 205)
  51822. * time: Developer Options. (line 766)
  51823. * tno-android-cc: GNU/Linux Options. (line 36)
  51824. * tno-android-ld: GNU/Linux Options. (line 40)
  51825. * traditional: Preprocessor Options.
  51826. (line 372)
  51827. * traditional <1>: Incompatibilities. (line 6)
  51828. * traditional-cpp: Preprocessor Options.
  51829. (line 372)
  51830. * trigraphs: Preprocessor Options.
  51831. (line 382)
  51832. * twolevel_namespace: Darwin Options. (line 196)
  51833. * U: Preprocessor Options.
  51834. (line 42)
  51835. * u: Link Options. (line 343)
  51836. * umbrella: Darwin Options. (line 196)
  51837. * undef: Preprocessor Options.
  51838. (line 66)
  51839. * undefined: Darwin Options. (line 196)
  51840. * unexported_symbols_list: Darwin Options. (line 196)
  51841. * v: Overall Options. (line 208)
  51842. * version: Overall Options. (line 336)
  51843. * w: Warning Options. (line 25)
  51844. * W: Warning Options. (line 212)
  51845. * W <1>: Warning Options. (line 2618)
  51846. * W <2>: Warning Options. (line 2726)
  51847. * W <3>: Incompatibilities. (line 64)
  51848. * Wa: Assembler Options. (line 9)
  51849. * Wabi: Warning Options. (line 256)
  51850. * Wabi-tag: C++ Dialect Options.
  51851. (line 494)
  51852. * Wabi-tag <1>: C++ Dialect Options.
  51853. (line 494)
  51854. * Wabsolute-value: Warning Options. (line 2147)
  51855. * Waddr-space-convert: AVR Options. (line 308)
  51856. * Waddress: Warning Options. (line 2488)
  51857. * Waddress-of-packed-member: Warning Options. (line 2501)
  51858. * Waggregate-return: Warning Options. (line 2529)
  51859. * Waggressive-loop-optimizations: Warning Options. (line 2534)
  51860. * Waligned-new: C++ Dialect Options.
  51861. (line 934)
  51862. * Wall: Warning Options. (line 138)
  51863. * Wall <1>: Standard Libraries. (line 6)
  51864. * Walloc-size-larger-than=: Warning Options. (line 1616)
  51865. * Walloc-zero: Warning Options. (line 1606)
  51866. * Walloca: Warning Options. (line 1631)
  51867. * Walloca-larger-than=: Warning Options. (line 1634)
  51868. * Wanalyzer-double-fclose: Static Analyzer Options.
  51869. (line 47)
  51870. * Wanalyzer-double-free: Static Analyzer Options.
  51871. (line 54)
  51872. * Wanalyzer-exposure-through-output-file: Static Analyzer Options.
  51873. (line 61)
  51874. * Wanalyzer-file-leak: Static Analyzer Options.
  51875. (line 69)
  51876. * Wanalyzer-free-of-non-heap: Static Analyzer Options.
  51877. (line 76)
  51878. * Wanalyzer-malloc-leak: Static Analyzer Options.
  51879. (line 84)
  51880. * Wanalyzer-null-argument: Static Analyzer Options.
  51881. (line 106)
  51882. * Wanalyzer-null-dereference: Static Analyzer Options.
  51883. (line 114)
  51884. * Wanalyzer-possible-null-argument: Static Analyzer Options.
  51885. (line 91)
  51886. * Wanalyzer-possible-null-dereference: Static Analyzer Options.
  51887. (line 99)
  51888. * Wanalyzer-stale-setjmp-buffer: Static Analyzer Options.
  51889. (line 121)
  51890. * Wanalyzer-tainted-array-index: Static Analyzer Options.
  51891. (line 135)
  51892. * Wanalyzer-too-complex: Static Analyzer Options.
  51893. (line 37)
  51894. * Wanalyzer-unsafe-call-within-signal-handler: Static Analyzer Options.
  51895. (line 144)
  51896. * Wanalyzer-use-after-free: Static Analyzer Options.
  51897. (line 152)
  51898. * Wanalyzer-use-of-pointer-in-stale-stack-frame: Static Analyzer Options.
  51899. (line 159)
  51900. * Warith-conversion: Warning Options. (line 1699)
  51901. * Warray-bounds: Warning Options. (line 1712)
  51902. * Wassign-intercept: Objective-C and Objective-C++ Dialect Options.
  51903. (line 170)
  51904. * Wattribute-alias: Warning Options. (line 1729)
  51905. * Wattribute-warning: Warning Options. (line 2697)
  51906. * Wattributes: Warning Options. (line 2539)
  51907. * Wbad-function-cast: Warning Options. (line 2216)
  51908. * Wbool-compare: Warning Options. (line 1761)
  51909. * Wbool-operation: Warning Options. (line 1770)
  51910. * Wbuiltin-declaration-mismatch: Warning Options. (line 2545)
  51911. * Wbuiltin-macro-redefined: Warning Options. (line 2566)
  51912. * Wc++-compat: Warning Options. (line 2244)
  51913. * Wc++11-compat: Warning Options. (line 2249)
  51914. * Wc++14-compat: Warning Options. (line 2255)
  51915. * Wc++17-compat: Warning Options. (line 2259)
  51916. * Wc++20-compat: Warning Options. (line 2263)
  51917. * Wc11-c2x-compat: Warning Options. (line 2236)
  51918. * Wc90-c99-compat: Warning Options. (line 2221)
  51919. * Wc99-c11-compat: Warning Options. (line 2228)
  51920. * Wcast-align: Warning Options. (line 2283)
  51921. * Wcast-align=strict: Warning Options. (line 2289)
  51922. * Wcast-function-type: Warning Options. (line 2294)
  51923. * Wcast-qual: Warning Options. (line 2267)
  51924. * Wcatch-value: C++ Dialect Options.
  51925. (line 981)
  51926. * Wchar-subscripts: Warning Options. (line 366)
  51927. * Wclass-conversion: C++ Dialect Options.
  51928. (line 912)
  51929. * Wclass-memaccess: C++ Dialect Options.
  51930. (line 630)
  51931. * Wclobbered: Warning Options. (line 2320)
  51932. * Wcomma-subscript: C++ Dialect Options.
  51933. (line 499)
  51934. * Wcomment: Warning Options. (line 2158)
  51935. * Wcomments: Warning Options. (line 2158)
  51936. * Wconditionally-supported: C++ Dialect Options.
  51937. (line 989)
  51938. * Wconversion: Warning Options. (line 2324)
  51939. * Wconversion-null: C++ Dialect Options.
  51940. (line 1066)
  51941. * Wcoverage-mismatch: Warning Options. (line 371)
  51942. * Wcpp: Warning Options. (line 385)
  51943. * Wctor-dtor-privacy: C++ Dialect Options.
  51944. (line 511)
  51945. * Wdangling-else: Warning Options. (line 2345)
  51946. * Wdate-time: Warning Options. (line 2379)
  51947. * Wdeclaration-after-statement: Warning Options. (line 1990)
  51948. * Wdelete-incomplete: C++ Dialect Options.
  51949. (line 992)
  51950. * Wdelete-non-virtual-dtor: C++ Dialect Options.
  51951. (line 518)
  51952. * Wdeprecated: Warning Options. (line 2704)
  51953. * Wdeprecated-copy: C++ Dialect Options.
  51954. (line 525)
  51955. * Wdeprecated-declarations: Warning Options. (line 2708)
  51956. * Wdesignated-init: Warning Options. (line 2959)
  51957. * Wdisabled-optimization: Warning Options. (line 2910)
  51958. * Wdiscarded-array-qualifiers: Warning Options. (line 1809)
  51959. * Wdiscarded-qualifiers: Warning Options. (line 1803)
  51960. * Wdiv-by-zero: Warning Options. (line 1850)
  51961. * Wdouble-promotion: Warning Options. (line 389)
  51962. * Wduplicate-decl-specifier: Warning Options. (line 407)
  51963. * Wduplicated-branches: Warning Options. (line 1780)
  51964. * Wduplicated-cond: Warning Options. (line 1791)
  51965. * weak_reference_mismatches: Darwin Options. (line 196)
  51966. * Weffc++: C++ Dialect Options.
  51967. (line 767)
  51968. * Wempty-body: Warning Options. (line 2384)
  51969. * Wendif-labels: Warning Options. (line 2202)
  51970. * Wendif-labels <1>: Warning Options. (line 2388)
  51971. * Wenum-compare: Warning Options. (line 2391)
  51972. * Wenum-conversion: Warning Options. (line 2397)
  51973. * Werror: Warning Options. (line 28)
  51974. * Werror=: Warning Options. (line 31)
  51975. * Wexpansion-to-defined: Warning Options. (line 2177)
  51976. * Wextra: Warning Options. (line 212)
  51977. * Wextra <1>: Warning Options. (line 2618)
  51978. * Wextra <2>: Warning Options. (line 2726)
  51979. * Wextra-semi: C++ Dialect Options.
  51980. (line 997)
  51981. * Wfatal-errors: Warning Options. (line 48)
  51982. * Wfloat-conversion: Warning Options. (line 2424)
  51983. * Wfloat-equal: Warning Options. (line 1890)
  51984. * Wformat: Warning Options. (line 412)
  51985. * Wformat <1>: Warning Options. (line 437)
  51986. * Wformat <2>: Warning Options. (line 1577)
  51987. * Wformat <3>: Common Function Attributes.
  51988. (line 381)
  51989. * Wformat-contains-nul: Warning Options. (line 451)
  51990. * Wformat-extra-args: Warning Options. (line 455)
  51991. * Wformat-nonliteral: Warning Options. (line 548)
  51992. * Wformat-nonliteral <1>: Common Function Attributes.
  51993. (line 446)
  51994. * Wformat-overflow: Warning Options. (line 469)
  51995. * Wformat-overflow <1>: Warning Options. (line 480)
  51996. * Wformat-security: Warning Options. (line 553)
  51997. * Wformat-signedness: Warning Options. (line 564)
  51998. * Wformat-truncation: Warning Options. (line 569)
  51999. * Wformat-truncation <1>: Warning Options. (line 581)
  52000. * Wformat-y2k: Warning Options. (line 592)
  52001. * Wformat-zero-length: Warning Options. (line 544)
  52002. * Wformat=: Warning Options. (line 412)
  52003. * Wformat=1: Warning Options. (line 437)
  52004. * Wformat=2: Warning Options. (line 446)
  52005. * Wframe-address: Warning Options. (line 1797)
  52006. * Wframe-larger-than=: Warning Options. (line 2059)
  52007. * Wfree-nonheap-object: Warning Options. (line 2076)
  52008. * whatsloaded: Darwin Options. (line 196)
  52009. * Whsa: Warning Options. (line 2964)
  52010. * whyload: Darwin Options. (line 196)
  52011. * Wif-not-aligned: Warning Options. (line 765)
  52012. * Wignored-attributes: Warning Options. (line 780)
  52013. * Wignored-qualifiers: Warning Options. (line 769)
  52014. * Wimplicit: Warning Options. (line 643)
  52015. * Wimplicit-fallthrough: Warning Options. (line 647)
  52016. * Wimplicit-fallthrough=: Warning Options. (line 652)
  52017. * Wimplicit-function-declaration: Warning Options. (line 637)
  52018. * Wimplicit-int: Warning Options. (line 632)
  52019. * Winaccessible-base: C++ Dialect Options.
  52020. (line 1001)
  52021. * Wincompatible-pointer-types: Warning Options. (line 1815)
  52022. * Winherited-variadic-ctor: C++ Dialect Options.
  52023. (line 1012)
  52024. * Winit-list-lifetime: C++ Dialect Options.
  52025. (line 533)
  52026. * Winit-self: Warning Options. (line 617)
  52027. * Winline: Warning Options. (line 2819)
  52028. * Winline <1>: Inline. (line 60)
  52029. * Wint-conversion: Warning Options. (line 1821)
  52030. * Wint-in-bool-context: Warning Options. (line 2832)
  52031. * Wint-to-pointer-cast: Warning Options. (line 2840)
  52032. * Winvalid-memory-model: Warning Options. (line 1237)
  52033. * Winvalid-offsetof: C++ Dialect Options.
  52034. (line 1017)
  52035. * Winvalid-pch: Warning Options. (line 2849)
  52036. * Wjump-misses-init: Warning Options. (line 2401)
  52037. * Wl: Link Options. (line 335)
  52038. * Wlarger-than-BYTE-SIZE: Warning Options. (line 2049)
  52039. * Wlarger-than=: Warning Options. (line 2049)
  52040. * Wliteral-suffix: C++ Dialect Options.
  52041. (line 568)
  52042. * Wlogical-not-parentheses: Warning Options. (line 2514)
  52043. * Wlogical-op: Warning Options. (line 2506)
  52044. * Wlong-long: Warning Options. (line 2853)
  52045. * Wlto-type-mismatch: Warning Options. (line 2953)
  52046. * Wmain: Warning Options. (line 787)
  52047. * Wmaybe-uninitialized: Warning Options. (line 1254)
  52048. * Wmemset-elt-size: Warning Options. (line 2469)
  52049. * Wmemset-transposed-args: Warning Options. (line 2477)
  52050. * Wmisleading-indentation: Warning Options. (line 794)
  52051. * Wmismatched-tags: C++ Dialect Options.
  52052. (line 853)
  52053. * Wmissing-attributes: Warning Options. (line 828)
  52054. * Wmissing-braces: Warning Options. (line 872)
  52055. * Wmissing-declarations: Warning Options. (line 2608)
  52056. * Wmissing-field-initializers: Warning Options. (line 2618)
  52057. * Wmissing-format-attribute: Warning Options. (line 1577)
  52058. * Wmissing-include-dirs: Warning Options. (line 882)
  52059. * Wmissing-noreturn: Warning Options. (line 1563)
  52060. * Wmissing-parameter-type: Warning Options. (line 2590)
  52061. * Wmissing-profile: Warning Options. (line 885)
  52062. * Wmissing-prototypes: Warning Options. (line 2598)
  52063. * Wmisspelled-isr: AVR Options. (line 313)
  52064. * Wmultichar: Warning Options. (line 2648)
  52065. * Wmultiple-inheritance: C++ Dialect Options.
  52066. (line 878)
  52067. * Wmultistatement-macros: Warning Options. (line 901)
  52068. * Wnamespaces: C++ Dialect Options.
  52069. (line 901)
  52070. * Wnarrowing: C++ Dialect Options.
  52071. (line 594)
  52072. * Wnested-externs: Warning Options. (line 2816)
  52073. * Wno-abi: Warning Options. (line 256)
  52074. * Wno-absolute-value: Warning Options. (line 2147)
  52075. * Wno-addr-space-convert: AVR Options. (line 308)
  52076. * Wno-address: Warning Options. (line 2488)
  52077. * Wno-address-of-packed-member: Warning Options. (line 2501)
  52078. * Wno-aggregate-return: Warning Options. (line 2529)
  52079. * Wno-aggressive-loop-optimizations: Warning Options. (line 2534)
  52080. * Wno-aligned-new: C++ Dialect Options.
  52081. (line 934)
  52082. * Wno-all: Warning Options. (line 138)
  52083. * Wno-alloc-size-larger-than: Warning Options. (line 1616)
  52084. * Wno-alloc-size-larger-than <1>: Warning Options. (line 1627)
  52085. * Wno-alloc-zero: Warning Options. (line 1606)
  52086. * Wno-alloca: Warning Options. (line 1631)
  52087. * Wno-alloca-larger-than: Warning Options. (line 1634)
  52088. * Wno-alloca-larger-than <1>: Warning Options. (line 1695)
  52089. * Wno-analyzer-double-fclose: Static Analyzer Options.
  52090. (line 47)
  52091. * Wno-analyzer-double-free: Static Analyzer Options.
  52092. (line 54)
  52093. * Wno-analyzer-exposure-through-output-file: Static Analyzer Options.
  52094. (line 61)
  52095. * Wno-analyzer-file-leak: Static Analyzer Options.
  52096. (line 69)
  52097. * Wno-analyzer-free-of-non-heap: Static Analyzer Options.
  52098. (line 76)
  52099. * Wno-analyzer-malloc-leak: Static Analyzer Options.
  52100. (line 84)
  52101. * Wno-analyzer-null-argument: Static Analyzer Options.
  52102. (line 106)
  52103. * Wno-analyzer-null-dereference: Static Analyzer Options.
  52104. (line 114)
  52105. * Wno-analyzer-possible-null-argument: Static Analyzer Options.
  52106. (line 91)
  52107. * Wno-analyzer-possible-null-dereference: Static Analyzer Options.
  52108. (line 99)
  52109. * Wno-analyzer-stale-setjmp-buffer: Static Analyzer Options.
  52110. (line 121)
  52111. * Wno-analyzer-tainted-array-index: Static Analyzer Options.
  52112. (line 135)
  52113. * Wno-analyzer-too-complex: Static Analyzer Options.
  52114. (line 37)
  52115. * Wno-analyzer-unsafe-call-within-signal-handler: Static Analyzer Options.
  52116. (line 144)
  52117. * Wno-analyzer-use-after-free: Static Analyzer Options.
  52118. (line 152)
  52119. * Wno-analyzer-use-of-pointer-in-stale-stack-frame: Static Analyzer Options.
  52120. (line 159)
  52121. * Wno-arith-conversion: Warning Options. (line 1699)
  52122. * Wno-array-bounds: Warning Options. (line 1712)
  52123. * Wno-assign-intercept: Objective-C and Objective-C++ Dialect Options.
  52124. (line 170)
  52125. * Wno-attribute-alias: Warning Options. (line 1729)
  52126. * Wno-attribute-warning: Warning Options. (line 2697)
  52127. * Wno-attributes: Warning Options. (line 2539)
  52128. * Wno-bad-function-cast: Warning Options. (line 2216)
  52129. * Wno-bool-compare: Warning Options. (line 1761)
  52130. * Wno-bool-operation: Warning Options. (line 1770)
  52131. * Wno-builtin-declaration-mismatch: Warning Options. (line 2545)
  52132. * Wno-builtin-macro-redefined: Warning Options. (line 2566)
  52133. * Wno-c++-compat: Warning Options. (line 2244)
  52134. * Wno-c++11-compat: Warning Options. (line 2249)
  52135. * Wno-c++14-compat: Warning Options. (line 2255)
  52136. * Wno-c++17-compat: Warning Options. (line 2259)
  52137. * Wno-c++20-compat: Warning Options. (line 2263)
  52138. * Wno-c11-c2x-compat: Warning Options. (line 2236)
  52139. * Wno-c90-c99-compat: Warning Options. (line 2221)
  52140. * Wno-c99-c11-compat: Warning Options. (line 2228)
  52141. * Wno-cast-align: Warning Options. (line 2283)
  52142. * Wno-cast-function-type: Warning Options. (line 2294)
  52143. * Wno-cast-qual: Warning Options. (line 2267)
  52144. * Wno-catch-value: C++ Dialect Options.
  52145. (line 981)
  52146. * Wno-char-subscripts: Warning Options. (line 366)
  52147. * Wno-class-conversion: C++ Dialect Options.
  52148. (line 912)
  52149. * Wno-class-memaccess: C++ Dialect Options.
  52150. (line 630)
  52151. * Wno-clobbered: Warning Options. (line 2320)
  52152. * Wno-comma-subscript: C++ Dialect Options.
  52153. (line 499)
  52154. * Wno-conditionally-supported: C++ Dialect Options.
  52155. (line 989)
  52156. * Wno-conversion: Warning Options. (line 2324)
  52157. * Wno-conversion-null: C++ Dialect Options.
  52158. (line 1066)
  52159. * Wno-coverage-mismatch: Warning Options. (line 371)
  52160. * Wno-cpp: Warning Options. (line 385)
  52161. * Wno-ctor-dtor-privacy: C++ Dialect Options.
  52162. (line 511)
  52163. * Wno-dangling-else: Warning Options. (line 2345)
  52164. * Wno-date-time: Warning Options. (line 2379)
  52165. * Wno-declaration-after-statement: Warning Options. (line 1990)
  52166. * Wno-delete-incomplete: C++ Dialect Options.
  52167. (line 992)
  52168. * Wno-delete-non-virtual-dtor: C++ Dialect Options.
  52169. (line 518)
  52170. * Wno-deprecated: Warning Options. (line 2704)
  52171. * Wno-deprecated-copy: C++ Dialect Options.
  52172. (line 525)
  52173. * Wno-deprecated-declarations: Warning Options. (line 2708)
  52174. * Wno-designated-init: Warning Options. (line 2959)
  52175. * Wno-disabled-optimization: Warning Options. (line 2910)
  52176. * Wno-discarded-array-qualifiers: Warning Options. (line 1809)
  52177. * Wno-discarded-qualifiers: Warning Options. (line 1803)
  52178. * Wno-div-by-zero: Warning Options. (line 1850)
  52179. * Wno-double-promotion: Warning Options. (line 389)
  52180. * Wno-duplicate-decl-specifier: Warning Options. (line 407)
  52181. * Wno-duplicated-branches: Warning Options. (line 1780)
  52182. * Wno-duplicated-cond: Warning Options. (line 1791)
  52183. * Wno-effc++: C++ Dialect Options.
  52184. (line 767)
  52185. * Wno-empty-body: Warning Options. (line 2384)
  52186. * Wno-endif-labels: Warning Options. (line 2202)
  52187. * Wno-endif-labels <1>: Warning Options. (line 2388)
  52188. * Wno-enum-compare: Warning Options. (line 2391)
  52189. * Wno-enum-conversion: Warning Options. (line 2397)
  52190. * Wno-error: Warning Options. (line 28)
  52191. * Wno-error=: Warning Options. (line 31)
  52192. * Wno-extra: Warning Options. (line 212)
  52193. * Wno-extra <1>: Warning Options. (line 2618)
  52194. * Wno-extra <2>: Warning Options. (line 2726)
  52195. * Wno-extra-semi: C++ Dialect Options.
  52196. (line 997)
  52197. * Wno-fatal-errors: Warning Options. (line 48)
  52198. * Wno-float-conversion: Warning Options. (line 2424)
  52199. * Wno-float-equal: Warning Options. (line 1890)
  52200. * Wno-format: Warning Options. (line 412)
  52201. * Wno-format <1>: Warning Options. (line 1577)
  52202. * Wno-format-contains-nul: Warning Options. (line 451)
  52203. * Wno-format-extra-args: Warning Options. (line 455)
  52204. * Wno-format-nonliteral: Warning Options. (line 548)
  52205. * Wno-format-overflow: Warning Options. (line 469)
  52206. * Wno-format-overflow <1>: Warning Options. (line 480)
  52207. * Wno-format-security: Warning Options. (line 553)
  52208. * Wno-format-signedness: Warning Options. (line 564)
  52209. * Wno-format-truncation: Warning Options. (line 569)
  52210. * Wno-format-truncation <1>: Warning Options. (line 581)
  52211. * Wno-format-y2k: Warning Options. (line 592)
  52212. * Wno-format-zero-length: Warning Options. (line 544)
  52213. * Wno-frame-address: Warning Options. (line 1797)
  52214. * Wno-frame-larger-than: Warning Options. (line 2059)
  52215. * Wno-frame-larger-than <1>: Warning Options. (line 2072)
  52216. * Wno-free-nonheap-object: Warning Options. (line 2076)
  52217. * Wno-hsa: Warning Options. (line 2964)
  52218. * Wno-if-not-aligned: Warning Options. (line 765)
  52219. * Wno-ignored-attributes: Warning Options. (line 780)
  52220. * Wno-ignored-qualifiers: Warning Options. (line 769)
  52221. * Wno-implicit: Warning Options. (line 643)
  52222. * Wno-implicit-fallthrough: Warning Options. (line 647)
  52223. * Wno-implicit-function-declaration: Warning Options. (line 637)
  52224. * Wno-implicit-int: Warning Options. (line 632)
  52225. * Wno-inaccessible-base: C++ Dialect Options.
  52226. (line 1001)
  52227. * Wno-incompatible-pointer-types: Warning Options. (line 1815)
  52228. * Wno-inherited-variadic-ctor: C++ Dialect Options.
  52229. (line 1012)
  52230. * Wno-init-list-lifetime: C++ Dialect Options.
  52231. (line 533)
  52232. * Wno-init-self: Warning Options. (line 617)
  52233. * Wno-inline: Warning Options. (line 2819)
  52234. * Wno-int-conversion: Warning Options. (line 1821)
  52235. * Wno-int-in-bool-context: Warning Options. (line 2832)
  52236. * Wno-int-to-pointer-cast: Warning Options. (line 2840)
  52237. * Wno-invalid-memory-model: Warning Options. (line 1237)
  52238. * Wno-invalid-offsetof: C++ Dialect Options.
  52239. (line 1017)
  52240. * Wno-invalid-pch: Warning Options. (line 2849)
  52241. * Wno-jump-misses-init: Warning Options. (line 2401)
  52242. * Wno-larger-than: Warning Options. (line 2055)
  52243. * Wno-literal-suffix: C++ Dialect Options.
  52244. (line 568)
  52245. * Wno-logical-not-parentheses: Warning Options. (line 2514)
  52246. * Wno-logical-op: Warning Options. (line 2506)
  52247. * Wno-long-long: Warning Options. (line 2853)
  52248. * Wno-lto-type-mismatch: Warning Options. (line 2953)
  52249. * Wno-main: Warning Options. (line 787)
  52250. * Wno-maybe-uninitialized: Warning Options. (line 1254)
  52251. * Wno-memset-elt-size: Warning Options. (line 2469)
  52252. * Wno-memset-transposed-args: Warning Options. (line 2477)
  52253. * Wno-misleading-indentation: Warning Options. (line 794)
  52254. * Wno-mismatched-tags: C++ Dialect Options.
  52255. (line 853)
  52256. * Wno-missing-attributes: Warning Options. (line 828)
  52257. * Wno-missing-braces: Warning Options. (line 872)
  52258. * Wno-missing-declarations: Warning Options. (line 2608)
  52259. * Wno-missing-field-initializers: Warning Options. (line 2618)
  52260. * Wno-missing-format-attribute: Warning Options. (line 1577)
  52261. * Wno-missing-include-dirs: Warning Options. (line 882)
  52262. * Wno-missing-noreturn: Warning Options. (line 1563)
  52263. * Wno-missing-parameter-type: Warning Options. (line 2590)
  52264. * Wno-missing-profile: Warning Options. (line 885)
  52265. * Wno-missing-prototypes: Warning Options. (line 2598)
  52266. * Wno-misspelled-isr: AVR Options. (line 313)
  52267. * Wno-multichar: Warning Options. (line 2648)
  52268. * Wno-multiple-inheritance: C++ Dialect Options.
  52269. (line 878)
  52270. * Wno-multistatement-macros: Warning Options. (line 901)
  52271. * Wno-namespaces: C++ Dialect Options.
  52272. (line 901)
  52273. * Wno-narrowing: C++ Dialect Options.
  52274. (line 594)
  52275. * Wno-nested-externs: Warning Options. (line 2816)
  52276. * Wno-noexcept: C++ Dialect Options.
  52277. (line 610)
  52278. * Wno-noexcept-type: C++ Dialect Options.
  52279. (line 616)
  52280. * Wno-non-template-friend: C++ Dialect Options.
  52281. (line 802)
  52282. * Wno-non-virtual-dtor: C++ Dialect Options.
  52283. (line 650)
  52284. * Wno-nonnull: Warning Options. (line 596)
  52285. * Wno-nonnull-compare: Warning Options. (line 603)
  52286. * Wno-normalized: Warning Options. (line 2654)
  52287. * Wno-null-dereference: Warning Options. (line 610)
  52288. * Wno-odr: Warning Options. (line 2717)
  52289. * Wno-old-style-cast: C++ Dialect Options.
  52290. (line 811)
  52291. * Wno-old-style-declaration: Warning Options. (line 2577)
  52292. * Wno-old-style-definition: Warning Options. (line 2583)
  52293. * Wno-openmp-simd: Warning Options. (line 2721)
  52294. * Wno-overflow: Warning Options. (line 2714)
  52295. * Wno-overlength-strings: Warning Options. (line 2930)
  52296. * Wno-overloaded-virtual: C++ Dialect Options.
  52297. (line 817)
  52298. * Wno-override-init: Warning Options. (line 2726)
  52299. * Wno-override-init-side-effects: Warning Options. (line 2734)
  52300. * Wno-packed: Warning Options. (line 2739)
  52301. * Wno-packed-bitfield-compat: Warning Options. (line 2756)
  52302. * Wno-packed-not-aligned: Warning Options. (line 2773)
  52303. * Wno-padded: Warning Options. (line 2786)
  52304. * Wno-parentheses: Warning Options. (line 921)
  52305. * Wno-pedantic: Warning Options. (line 86)
  52306. * Wno-pedantic-ms-format: Warning Options. (line 2114)
  52307. * Wno-pessimizing-move: C++ Dialect Options.
  52308. (line 679)
  52309. * Wno-placement-new: C++ Dialect Options.
  52310. (line 945)
  52311. * Wno-pmf-conversions: C++ Dialect Options.
  52312. (line 836)
  52313. * Wno-pmf-conversions <1>: Bound member functions.
  52314. (line 35)
  52315. * Wno-pointer-arith: Warning Options. (line 2120)
  52316. * Wno-pointer-compare: Warning Options. (line 2127)
  52317. * Wno-pointer-sign: Warning Options. (line 2919)
  52318. * Wno-pointer-to-int-cast: Warning Options. (line 2845)
  52319. * Wno-pragmas: Warning Options. (line 1306)
  52320. * Wno-prio-ctor-dtor: Warning Options. (line 1311)
  52321. * Wno-property-assign-default: Objective-C and Objective-C++ Dialect Options.
  52322. (line 174)
  52323. * Wno-protocol: Objective-C and Objective-C++ Dialect Options.
  52324. (line 178)
  52325. * Wno-redundant-decls: Warning Options. (line 2793)
  52326. * Wno-redundant-move: C++ Dialect Options.
  52327. (line 701)
  52328. * Wno-redundant-tags: C++ Dialect Options.
  52329. (line 740)
  52330. * Wno-register: C++ Dialect Options.
  52331. (line 658)
  52332. * Wno-reorder: C++ Dialect Options.
  52333. (line 665)
  52334. * Wno-restrict: Warning Options. (line 2797)
  52335. * Wno-return-local-addr: Warning Options. (line 1001)
  52336. * Wno-return-type: Warning Options. (line 1005)
  52337. * Wno-scalar-storage-order: Warning Options. (line 2430)
  52338. * Wno-selector: Objective-C and Objective-C++ Dialect Options.
  52339. (line 188)
  52340. * Wno-sequence-point: Warning Options. (line 948)
  52341. * Wno-shadow: Warning Options. (line 1996)
  52342. * Wno-shadow-ivar: Warning Options. (line 2007)
  52343. * Wno-shift-count-negative: Warning Options. (line 1026)
  52344. * Wno-shift-count-overflow: Warning Options. (line 1030)
  52345. * Wno-shift-negative-value: Warning Options. (line 1034)
  52346. * Wno-shift-overflow: Warning Options. (line 1039)
  52347. * Wno-sign-compare: Warning Options. (line 2412)
  52348. * Wno-sign-conversion: Warning Options. (line 2418)
  52349. * Wno-sign-promo: C++ Dialect Options.
  52350. (line 840)
  52351. * Wno-sized-deallocation: C++ Dialect Options.
  52352. (line 1029)
  52353. * Wno-sizeof-array-argument: Warning Options. (line 2464)
  52354. * Wno-sizeof-pointer-div: Warning Options. (line 2434)
  52355. * Wno-sizeof-pointer-memaccess: Warning Options. (line 2442)
  52356. * Wno-stack-protector: Warning Options. (line 2925)
  52357. * Wno-stack-usage: Warning Options. (line 2080)
  52358. * Wno-stack-usage <1>: Warning Options. (line 2104)
  52359. * Wno-strict-aliasing: Warning Options. (line 1319)
  52360. * Wno-strict-null-sentinel: C++ Dialect Options.
  52361. (line 795)
  52362. * Wno-strict-overflow: Warning Options. (line 1358)
  52363. * Wno-strict-prototypes: Warning Options. (line 2571)
  52364. * Wno-strict-selector-match: Objective-C and Objective-C++ Dialect Options.
  52365. (line 200)
  52366. * Wno-string-compare: Warning Options. (line 1406)
  52367. * Wno-stringop-overflow: Warning Options. (line 1427)
  52368. * Wno-stringop-overflow <1>: Warning Options. (line 1466)
  52369. * Wno-stringop-truncation: Warning Options. (line 1504)
  52370. * Wno-subobject-linkage: C++ Dialect Options.
  52371. (line 754)
  52372. * Wno-suggest-attribute=: Warning Options. (line 1555)
  52373. * Wno-suggest-attribute=cold: Warning Options. (line 1598)
  52374. * Wno-suggest-attribute=const: Warning Options. (line 1563)
  52375. * Wno-suggest-attribute=format: Warning Options. (line 1577)
  52376. * Wno-suggest-attribute=malloc: Warning Options. (line 1563)
  52377. * Wno-suggest-attribute=noreturn: Warning Options. (line 1563)
  52378. * Wno-suggest-attribute=pure: Warning Options. (line 1563)
  52379. * Wno-suggest-final-methods: C++ Dialect Options.
  52380. (line 1049)
  52381. * Wno-suggest-final-types: C++ Dialect Options.
  52382. (line 1040)
  52383. * Wno-suggest-override: C++ Dialect Options.
  52384. (line 1059)
  52385. * Wno-switch: Warning Options. (line 1055)
  52386. * Wno-switch-bool: Warning Options. (line 1075)
  52387. * Wno-switch-default: Warning Options. (line 1063)
  52388. * Wno-switch-enum: Warning Options. (line 1066)
  52389. * Wno-switch-outside-range: Warning Options. (line 1086)
  52390. * Wno-switch-unreachable: Warning Options. (line 1091)
  52391. * Wno-sync-nand: Warning Options. (line 1115)
  52392. * Wno-system-headers: Warning Options. (line 1855)
  52393. * Wno-tautological-compare: Warning Options. (line 1866)
  52394. * Wno-templates: C++ Dialect Options.
  52395. (line 846)
  52396. * Wno-terminate: C++ Dialect Options.
  52397. (line 908)
  52398. * Wno-traditional: Warning Options. (line 1905)
  52399. * Wno-traditional-conversion: Warning Options. (line 1982)
  52400. * Wno-trampolines: Warning Options. (line 1880)
  52401. * Wno-type-limits: Warning Options. (line 2140)
  52402. * Wno-undeclared-selector: Objective-C and Objective-C++ Dialect Options.
  52403. (line 208)
  52404. * Wno-undef: Warning Options. (line 2173)
  52405. * Wno-uninitialized: Warning Options. (line 1216)
  52406. * Wno-unknown-pragmas: Warning Options. (line 1299)
  52407. * Wno-unsafe-loop-optimizations: Warning Options. (line 2108)
  52408. * Wno-unsuffixed-float-constants: Warning Options. (line 2945)
  52409. * Wno-unused: Warning Options. (line 1209)
  52410. * Wno-unused-but-set-parameter: Warning Options. (line 1120)
  52411. * Wno-unused-but-set-variable: Warning Options. (line 1129)
  52412. * Wno-unused-const-variable: Warning Options. (line 1176)
  52413. * Wno-unused-function: Warning Options. (line 1139)
  52414. * Wno-unused-label: Warning Options. (line 1144)
  52415. * Wno-unused-local-typedefs: Warning Options. (line 1151)
  52416. * Wno-unused-parameter: Warning Options. (line 1155)
  52417. * Wno-unused-result: Warning Options. (line 1162)
  52418. * Wno-unused-value: Warning Options. (line 1199)
  52419. * Wno-unused-variable: Warning Options. (line 1167)
  52420. * Wno-useless-cast: C++ Dialect Options.
  52421. (line 1063)
  52422. * Wno-varargs: Warning Options. (line 2864)
  52423. * Wno-variadic-macros: Warning Options. (line 2858)
  52424. * Wno-vector-operation-performance: Warning Options. (line 2869)
  52425. * Wno-virtual-inheritance: C++ Dialect Options.
  52426. (line 885)
  52427. * Wno-virtual-move-assign: C++ Dialect Options.
  52428. (line 892)
  52429. * Wno-vla: Warning Options. (line 2879)
  52430. * Wno-vla-larger-than: Warning Options. (line 2883)
  52431. * Wno-vla-larger-than <1>: Warning Options. (line 2900)
  52432. * Wno-volatile: C++ Dialect Options.
  52433. (line 917)
  52434. * Wno-volatile-register-var: Warning Options. (line 2904)
  52435. * Wno-write-strings: Warning Options. (line 2307)
  52436. * Wno-zero-as-null-pointer-constant: C++ Dialect Options.
  52437. (line 930)
  52438. * Wnoexcept: C++ Dialect Options.
  52439. (line 610)
  52440. * Wnoexcept-type: C++ Dialect Options.
  52441. (line 616)
  52442. * Wnon-template-friend: C++ Dialect Options.
  52443. (line 802)
  52444. * Wnon-virtual-dtor: C++ Dialect Options.
  52445. (line 650)
  52446. * Wnonnull: Warning Options. (line 596)
  52447. * Wnonnull-compare: Warning Options. (line 603)
  52448. * Wnormalized: Warning Options. (line 2654)
  52449. * Wnormalized=: Warning Options. (line 2654)
  52450. * Wnull-dereference: Warning Options. (line 610)
  52451. * Wodr: Warning Options. (line 2717)
  52452. * Wold-style-cast: C++ Dialect Options.
  52453. (line 811)
  52454. * Wold-style-declaration: Warning Options. (line 2577)
  52455. * Wold-style-definition: Warning Options. (line 2583)
  52456. * Wopenmp-simd: Warning Options. (line 2721)
  52457. * Woverflow: Warning Options. (line 2714)
  52458. * Woverlength-strings: Warning Options. (line 2930)
  52459. * Woverloaded-virtual: C++ Dialect Options.
  52460. (line 817)
  52461. * Woverride-init: Warning Options. (line 2726)
  52462. * Woverride-init-side-effects: Warning Options. (line 2734)
  52463. * Wp: Preprocessor Options.
  52464. (line 460)
  52465. * Wpacked: Warning Options. (line 2739)
  52466. * Wpacked-bitfield-compat: Warning Options. (line 2756)
  52467. * Wpacked-not-aligned: Warning Options. (line 2773)
  52468. * Wpadded: Warning Options. (line 2786)
  52469. * Wparentheses: Warning Options. (line 921)
  52470. * Wpedantic: Warning Options. (line 86)
  52471. * Wpedantic-ms-format: Warning Options. (line 2114)
  52472. * Wpessimizing-move: C++ Dialect Options.
  52473. (line 679)
  52474. * Wplacement-new: C++ Dialect Options.
  52475. (line 945)
  52476. * Wpmf-conversions: C++ Dialect Options.
  52477. (line 836)
  52478. * Wpointer-arith: Warning Options. (line 2120)
  52479. * Wpointer-arith <1>: Pointer Arith. (line 13)
  52480. * Wpointer-compare: Warning Options. (line 2127)
  52481. * Wpointer-sign: Warning Options. (line 2919)
  52482. * Wpointer-to-int-cast: Warning Options. (line 2845)
  52483. * Wpragmas: Warning Options. (line 1306)
  52484. * Wprio-ctor-dtor: Warning Options. (line 1311)
  52485. * Wproperty-assign-default: Objective-C and Objective-C++ Dialect Options.
  52486. (line 174)
  52487. * Wprotocol: Objective-C and Objective-C++ Dialect Options.
  52488. (line 178)
  52489. * wrapper: Overall Options. (line 362)
  52490. * Wredundant-decls: Warning Options. (line 2793)
  52491. * Wredundant-move: C++ Dialect Options.
  52492. (line 701)
  52493. * Wredundant-tags: C++ Dialect Options.
  52494. (line 740)
  52495. * Wregister: C++ Dialect Options.
  52496. (line 658)
  52497. * Wreorder: C++ Dialect Options.
  52498. (line 665)
  52499. * Wrestrict: Warning Options. (line 2797)
  52500. * Wreturn-local-addr: Warning Options. (line 1001)
  52501. * Wreturn-type: Warning Options. (line 1005)
  52502. * Wscalar-storage-order: Warning Options. (line 2430)
  52503. * Wselector: Objective-C and Objective-C++ Dialect Options.
  52504. (line 188)
  52505. * Wsequence-point: Warning Options. (line 948)
  52506. * Wshadow: Warning Options. (line 1996)
  52507. * Wshadow-ivar: Warning Options. (line 2007)
  52508. * Wshadow=compatible-local: Warning Options. (line 2018)
  52509. * Wshadow=global: Warning Options. (line 2011)
  52510. * Wshadow=local: Warning Options. (line 2014)
  52511. * Wshift-count-negative: Warning Options. (line 1026)
  52512. * Wshift-count-overflow: Warning Options. (line 1030)
  52513. * Wshift-negative-value: Warning Options. (line 1034)
  52514. * Wshift-overflow: Warning Options. (line 1039)
  52515. * Wsign-compare: Warning Options. (line 2412)
  52516. * Wsign-conversion: Warning Options. (line 2418)
  52517. * Wsign-promo: C++ Dialect Options.
  52518. (line 840)
  52519. * Wsized-deallocation: C++ Dialect Options.
  52520. (line 1029)
  52521. * Wsizeof-array-argument: Warning Options. (line 2464)
  52522. * Wsizeof-pointer-div: Warning Options. (line 2434)
  52523. * Wsizeof-pointer-memaccess: Warning Options. (line 2442)
  52524. * Wstack-protector: Warning Options. (line 2925)
  52525. * Wstack-usage: Warning Options. (line 2080)
  52526. * Wstrict-aliasing: Warning Options. (line 1319)
  52527. * Wstrict-aliasing=n: Warning Options. (line 1326)
  52528. * Wstrict-null-sentinel: C++ Dialect Options.
  52529. (line 795)
  52530. * Wstrict-overflow: Warning Options. (line 1358)
  52531. * Wstrict-prototypes: Warning Options. (line 2571)
  52532. * Wstrict-selector-match: Objective-C and Objective-C++ Dialect Options.
  52533. (line 200)
  52534. * Wstring-compare: Warning Options. (line 1406)
  52535. * Wstringop-overflow: Warning Options. (line 1427)
  52536. * Wstringop-overflow <1>: Warning Options. (line 1466)
  52537. * Wstringop-truncation: Warning Options. (line 1504)
  52538. * Wsubobject-linkage: C++ Dialect Options.
  52539. (line 754)
  52540. * Wsuggest-attribute=: Warning Options. (line 1555)
  52541. * Wsuggest-attribute=cold: Warning Options. (line 1598)
  52542. * Wsuggest-attribute=const: Warning Options. (line 1563)
  52543. * Wsuggest-attribute=format: Warning Options. (line 1577)
  52544. * Wsuggest-attribute=malloc: Warning Options. (line 1563)
  52545. * Wsuggest-attribute=noreturn: Warning Options. (line 1563)
  52546. * Wsuggest-attribute=pure: Warning Options. (line 1563)
  52547. * Wsuggest-final-methods: C++ Dialect Options.
  52548. (line 1049)
  52549. * Wsuggest-final-types: C++ Dialect Options.
  52550. (line 1040)
  52551. * Wsuggest-override: C++ Dialect Options.
  52552. (line 1059)
  52553. * Wswitch: Warning Options. (line 1055)
  52554. * Wswitch-bool: Warning Options. (line 1075)
  52555. * Wswitch-default: Warning Options. (line 1063)
  52556. * Wswitch-enum: Warning Options. (line 1066)
  52557. * Wswitch-outside-range: Warning Options. (line 1086)
  52558. * Wswitch-unreachable: Warning Options. (line 1091)
  52559. * Wsync-nand: Warning Options. (line 1115)
  52560. * Wsystem-headers: Warning Options. (line 1855)
  52561. * Wtautological-compare: Warning Options. (line 1866)
  52562. * Wtemplates: C++ Dialect Options.
  52563. (line 846)
  52564. * Wterminate: C++ Dialect Options.
  52565. (line 908)
  52566. * Wtraditional: Warning Options. (line 1905)
  52567. * Wtraditional-conversion: Warning Options. (line 1982)
  52568. * Wtrampolines: Warning Options. (line 1880)
  52569. * Wtrigraphs: Warning Options. (line 2163)
  52570. * Wtype-limits: Warning Options. (line 2140)
  52571. * Wundeclared-selector: Objective-C and Objective-C++ Dialect Options.
  52572. (line 208)
  52573. * Wundef: Warning Options. (line 2173)
  52574. * Wuninitialized: Warning Options. (line 1216)
  52575. * Wunknown-pragmas: Warning Options. (line 1299)
  52576. * Wunsafe-loop-optimizations: Warning Options. (line 2108)
  52577. * Wunsuffixed-float-constants: Warning Options. (line 2945)
  52578. * Wunused: Warning Options. (line 1209)
  52579. * Wunused-but-set-parameter: Warning Options. (line 1120)
  52580. * Wunused-but-set-variable: Warning Options. (line 1129)
  52581. * Wunused-const-variable: Warning Options. (line 1176)
  52582. * Wunused-function: Warning Options. (line 1139)
  52583. * Wunused-label: Warning Options. (line 1144)
  52584. * Wunused-local-typedefs: Warning Options. (line 1151)
  52585. * Wunused-macros: Warning Options. (line 2183)
  52586. * Wunused-parameter: Warning Options. (line 1155)
  52587. * Wunused-result: Warning Options. (line 1162)
  52588. * Wunused-value: Warning Options. (line 1199)
  52589. * Wunused-variable: Warning Options. (line 1167)
  52590. * Wuseless-cast: C++ Dialect Options.
  52591. (line 1063)
  52592. * Wvarargs: Warning Options. (line 2864)
  52593. * Wvariadic-macros: Warning Options. (line 2858)
  52594. * Wvector-operation-performance: Warning Options. (line 2869)
  52595. * Wvirtual-inheritance: C++ Dialect Options.
  52596. (line 885)
  52597. * Wvirtual-move-assign: C++ Dialect Options.
  52598. (line 892)
  52599. * Wvla: Warning Options. (line 2879)
  52600. * Wvla-larger-than=: Warning Options. (line 2883)
  52601. * Wvolatile: C++ Dialect Options.
  52602. (line 917)
  52603. * Wvolatile-register-var: Warning Options. (line 2904)
  52604. * Wwrite-strings: Warning Options. (line 2307)
  52605. * Wzero-as-null-pointer-constant: C++ Dialect Options.
  52606. (line 930)
  52607. * Wzero-length-bounds: Warning Options. (line 1827)
  52608. * Wzero-length-bounds <1>: Warning Options. (line 1827)
  52609. * x: Overall Options. (line 138)
  52610. * Xassembler: Assembler Options. (line 13)
  52611. * Xbind-lazy: VxWorks Options. (line 26)
  52612. * Xbind-now: VxWorks Options. (line 30)
  52613. * Xlinker: Link Options. (line 317)
  52614. * Xpreprocessor: Preprocessor Options.
  52615. (line 471)
  52616. * Ym: System V Options. (line 26)
  52617. * YP: System V Options. (line 22)
  52618. * z: Link Options. (line 348)
  52619. 
  52620. File: gcc.info, Node: Keyword Index, Prev: Option Index, Up: Top
  52621. Keyword Index
  52622. *************
  52623. �[index�]
  52624. * Menu:
  52625. * #pragma: Pragmas. (line 6)
  52626. * #pragma implementation: C++ Interface. (line 36)
  52627. * #pragma implementation, implied: C++ Interface. (line 43)
  52628. * #pragma interface: C++ Interface. (line 17)
  52629. * $: Dollar Signs. (line 6)
  52630. * % in constraint: Modifiers. (line 52)
  52631. * %include: Spec Files. (line 26)
  52632. * %include_noerr: Spec Files. (line 30)
  52633. * %rename: Spec Files. (line 34)
  52634. * & in constraint: Modifiers. (line 25)
  52635. * ': Incompatibilities. (line 116)
  52636. * *__builtin_alloca: Other Builtins. (line 129)
  52637. * *__builtin_alloca_with_align: Other Builtins. (line 166)
  52638. * *__builtin_alloca_with_align_and_max: Other Builtins. (line 211)
  52639. * + in constraint: Modifiers. (line 12)
  52640. * -lgcc, use with -nodefaultlibs: Link Options. (line 154)
  52641. * -lgcc, use with -nostdlib: Link Options. (line 154)
  52642. * -march feature modifiers: AArch64 Options. (line 319)
  52643. * -mcpu feature modifiers: AArch64 Options. (line 319)
  52644. * -nodefaultlibs and unresolved references: Link Options. (line 154)
  52645. * -nostdlib and unresolved references: Link Options. (line 154)
  52646. * .sdata/.sdata2 references (PowerPC): RS/6000 and PowerPC Options.
  52647. (line 713)
  52648. * //: C++ Comments. (line 6)
  52649. * 0 in constraint: Simple Constraints. (line 125)
  52650. * < in constraint: Simple Constraints. (line 47)
  52651. * = in constraint: Modifiers. (line 8)
  52652. * > in constraint: Simple Constraints. (line 59)
  52653. * ?: extensions: Conditionals. (line 6)
  52654. * ?: side effect: Conditionals. (line 20)
  52655. * _ in variables in macros: Typeof. (line 46)
  52656. * _Accum data type: Fixed-Point. (line 6)
  52657. * _Complex keyword: Complex. (line 6)
  52658. * _Decimal128 data type: Decimal Float. (line 6)
  52659. * _Decimal32 data type: Decimal Float. (line 6)
  52660. * _Decimal64 data type: Decimal Float. (line 6)
  52661. * _Exit: Other Builtins. (line 6)
  52662. * _exit: Other Builtins. (line 6)
  52663. * _FloatN data types: Floating Types. (line 6)
  52664. * _FloatNx data types: Floating Types. (line 6)
  52665. * _Fract data type: Fixed-Point. (line 6)
  52666. * _get_ssp: x86 control-flow protection intrinsics.
  52667. (line 6)
  52668. * _HTM_FIRST_USER_ABORT_CODE: S/390 System z Built-in Functions.
  52669. (line 44)
  52670. * _inc_ssp: x86 control-flow protection intrinsics.
  52671. (line 12)
  52672. * _Sat data type: Fixed-Point. (line 6)
  52673. * _xabort: x86 transactional memory intrinsics.
  52674. (line 57)
  52675. * _xbegin: x86 transactional memory intrinsics.
  52676. (line 19)
  52677. * _xend: x86 transactional memory intrinsics.
  52678. (line 48)
  52679. * _xtest: x86 transactional memory intrinsics.
  52680. (line 53)
  52681. * __atomic_add_fetch: __atomic Builtins. (line 179)
  52682. * __atomic_always_lock_free: __atomic Builtins. (line 267)
  52683. * __atomic_and_fetch: __atomic Builtins. (line 183)
  52684. * __atomic_clear: __atomic Builtins. (line 241)
  52685. * __atomic_compare_exchange: __atomic Builtins. (line 171)
  52686. * __atomic_compare_exchange_n: __atomic Builtins. (line 147)
  52687. * __atomic_exchange: __atomic Builtins. (line 141)
  52688. * __atomic_exchange_n: __atomic Builtins. (line 131)
  52689. * __atomic_fetch_add: __atomic Builtins. (line 204)
  52690. * __atomic_fetch_and: __atomic Builtins. (line 208)
  52691. * __atomic_fetch_nand: __atomic Builtins. (line 214)
  52692. * __atomic_fetch_or: __atomic Builtins. (line 212)
  52693. * __atomic_fetch_sub: __atomic Builtins. (line 206)
  52694. * __atomic_fetch_xor: __atomic Builtins. (line 210)
  52695. * __atomic_is_lock_free: __atomic Builtins. (line 281)
  52696. * __atomic_load: __atomic Builtins. (line 113)
  52697. * __atomic_load_n: __atomic Builtins. (line 106)
  52698. * __atomic_nand_fetch: __atomic Builtins. (line 189)
  52699. * __atomic_or_fetch: __atomic Builtins. (line 187)
  52700. * __atomic_signal_fence: __atomic Builtins. (line 260)
  52701. * __atomic_store: __atomic Builtins. (line 126)
  52702. * __atomic_store_n: __atomic Builtins. (line 118)
  52703. * __atomic_sub_fetch: __atomic Builtins. (line 181)
  52704. * __atomic_test_and_set: __atomic Builtins. (line 229)
  52705. * __atomic_thread_fence: __atomic Builtins. (line 253)
  52706. * __atomic_xor_fetch: __atomic Builtins. (line 185)
  52707. * __builtin_addf128_round_to_odd: Basic PowerPC Built-in Functions Available on ISA 3.0.
  52708. (line 17)
  52709. * __builtin_add_overflow: Integer Overflow Builtins.
  52710. (line 9)
  52711. * __builtin_add_overflow_p: Integer Overflow Builtins.
  52712. (line 86)
  52713. * __builtin_alloca: Other Builtins. (line 6)
  52714. * __builtin_alloca_with_align: Other Builtins. (line 6)
  52715. * __builtin_alloca_with_align_and_max: Other Builtins. (line 6)
  52716. * __builtin_apply: Constructing Calls. (line 29)
  52717. * __builtin_apply_args: Constructing Calls. (line 19)
  52718. * __builtin_arc_aligned: ARC Built-in Functions.
  52719. (line 18)
  52720. * __builtin_arc_brk: ARC Built-in Functions.
  52721. (line 28)
  52722. * __builtin_arc_core_read: ARC Built-in Functions.
  52723. (line 32)
  52724. * __builtin_arc_core_write: ARC Built-in Functions.
  52725. (line 39)
  52726. * __builtin_arc_divaw: ARC Built-in Functions.
  52727. (line 46)
  52728. * __builtin_arc_flag: ARC Built-in Functions.
  52729. (line 53)
  52730. * __builtin_arc_lr: ARC Built-in Functions.
  52731. (line 57)
  52732. * __builtin_arc_mul64: ARC Built-in Functions.
  52733. (line 64)
  52734. * __builtin_arc_mulu64: ARC Built-in Functions.
  52735. (line 68)
  52736. * __builtin_arc_nop: ARC Built-in Functions.
  52737. (line 73)
  52738. * __builtin_arc_norm: ARC Built-in Functions.
  52739. (line 77)
  52740. * __builtin_arc_normw: ARC Built-in Functions.
  52741. (line 84)
  52742. * __builtin_arc_rtie: ARC Built-in Functions.
  52743. (line 91)
  52744. * __builtin_arc_sleep: ARC Built-in Functions.
  52745. (line 95)
  52746. * __builtin_arc_sr: ARC Built-in Functions.
  52747. (line 99)
  52748. * __builtin_arc_swap: ARC Built-in Functions.
  52749. (line 106)
  52750. * __builtin_arc_swi: ARC Built-in Functions.
  52751. (line 112)
  52752. * __builtin_arc_sync: ARC Built-in Functions.
  52753. (line 116)
  52754. * __builtin_arc_trap_s: ARC Built-in Functions.
  52755. (line 120)
  52756. * __builtin_arc_unimp_s: ARC Built-in Functions.
  52757. (line 124)
  52758. * __builtin_assume_aligned: Other Builtins. (line 662)
  52759. * __builtin_bswap16: Other Builtins. (line 983)
  52760. * __builtin_bswap32: Other Builtins. (line 987)
  52761. * __builtin_bswap64: Other Builtins. (line 991)
  52762. * __builtin_call_with_static_chain: Other Builtins. (line 6)
  52763. * __builtin_call_with_static_chain <1>: Other Builtins. (line 385)
  52764. * __builtin_choose_expr: Other Builtins. (line 396)
  52765. * __builtin_clrsb: Other Builtins. (line 913)
  52766. * __builtin_clrsbl: Other Builtins. (line 935)
  52767. * __builtin_clrsbll: Other Builtins. (line 958)
  52768. * __builtin_clz: Other Builtins. (line 905)
  52769. * __builtin_clzl: Other Builtins. (line 927)
  52770. * __builtin_clzll: Other Builtins. (line 950)
  52771. * __builtin_complex: Other Builtins. (line 490)
  52772. * __builtin_constant_p: Other Builtins. (line 499)
  52773. * __builtin_convertvector: Vector Extensions. (line 165)
  52774. * __builtin_cpu_init: Basic PowerPC Built-in Functions Available on all Configurations.
  52775. (line 6)
  52776. * __builtin_cpu_init <1>: x86 Built-in Functions.
  52777. (line 68)
  52778. * __builtin_cpu_is: Basic PowerPC Built-in Functions Available on all Configurations.
  52779. (line 10)
  52780. * __builtin_cpu_is <1>: x86 Built-in Functions.
  52781. (line 96)
  52782. * __builtin_cpu_supports: Basic PowerPC Built-in Functions Available on all Configurations.
  52783. (line 70)
  52784. * __builtin_cpu_supports <1>: x86 Built-in Functions.
  52785. (line 234)
  52786. * __builtin_ctz: Other Builtins. (line 909)
  52787. * __builtin_ctzl: Other Builtins. (line 931)
  52788. * __builtin_ctzll: Other Builtins. (line 954)
  52789. * __builtin_divf128_round_to_odd: Basic PowerPC Built-in Functions Available on ISA 3.0.
  52790. (line 29)
  52791. * __builtin_expect: Other Builtins. (line 562)
  52792. * __builtin_expect_with_probability: Other Builtins. (line 597)
  52793. * __builtin_extend_pointer: Other Builtins. (line 6)
  52794. * __builtin_extend_pointer <1>: Other Builtins. (line 995)
  52795. * __builtin_extract_return_addr: Return Address. (line 50)
  52796. * __builtin_ffs: Other Builtins. (line 901)
  52797. * __builtin_ffsl: Other Builtins. (line 924)
  52798. * __builtin_ffsll: Other Builtins. (line 946)
  52799. * __builtin_FILE: Other Builtins. (line 695)
  52800. * __builtin_fmaf128_round_to_odd: Basic PowerPC Built-in Functions Available on ISA 3.0.
  52801. (line 37)
  52802. * __builtin_fpclassify: Other Builtins. (line 6)
  52803. * __builtin_fpclassify <1>: Other Builtins. (line 797)
  52804. * __builtin_frame_address: Return Address. (line 62)
  52805. * __builtin_frob_return_addr: Return Address. (line 59)
  52806. * __builtin_FUNCTION: Other Builtins. (line 687)
  52807. * __builtin_goacc_parlevel_id: Other Builtins. (line 1002)
  52808. * __builtin_goacc_parlevel_size: Other Builtins. (line 1006)
  52809. * __builtin_has_attribute: Other Builtins. (line 6)
  52810. * __builtin_has_attribute <1>: Other Builtins. (line 220)
  52811. * __builtin_huge_val: Other Builtins. (line 777)
  52812. * __builtin_huge_valf: Other Builtins. (line 782)
  52813. * __builtin_huge_valfN: Other Builtins. (line 789)
  52814. * __builtin_huge_valfNx: Other Builtins. (line 793)
  52815. * __builtin_huge_vall: Other Builtins. (line 785)
  52816. * __builtin_huge_valq: x86 Built-in Functions.
  52817. (line 50)
  52818. * __builtin_inf: Other Builtins. (line 808)
  52819. * __builtin_infd128: Other Builtins. (line 818)
  52820. * __builtin_infd32: Other Builtins. (line 812)
  52821. * __builtin_infd64: Other Builtins. (line 815)
  52822. * __builtin_inff: Other Builtins. (line 822)
  52823. * __builtin_inffN: Other Builtins. (line 831)
  52824. * __builtin_inffNx: Other Builtins. (line 834)
  52825. * __builtin_infl: Other Builtins. (line 827)
  52826. * __builtin_infq: x86 Built-in Functions.
  52827. (line 47)
  52828. * __builtin_isfinite: Other Builtins. (line 6)
  52829. * __builtin_isgreater: Other Builtins. (line 6)
  52830. * __builtin_isgreaterequal: Other Builtins. (line 6)
  52831. * __builtin_isinf_sign: Other Builtins. (line 6)
  52832. * __builtin_isinf_sign <1>: Other Builtins. (line 837)
  52833. * __builtin_isless: Other Builtins. (line 6)
  52834. * __builtin_islessequal: Other Builtins. (line 6)
  52835. * __builtin_islessgreater: Other Builtins. (line 6)
  52836. * __builtin_isnormal: Other Builtins. (line 6)
  52837. * __builtin_isunordered: Other Builtins. (line 6)
  52838. * __builtin_is_constant_evaluated: Other Builtins. (line 544)
  52839. * __builtin_LINE: Other Builtins. (line 680)
  52840. * __builtin_longjmp: Nonlocal Gotos. (line 37)
  52841. * __builtin_mulf128_round_to_odd: Basic PowerPC Built-in Functions Available on ISA 3.0.
  52842. (line 25)
  52843. * __builtin_mul_overflow: Integer Overflow Builtins.
  52844. (line 63)
  52845. * __builtin_mul_overflow_p: Integer Overflow Builtins.
  52846. (line 90)
  52847. * __builtin_nan: Other Builtins. (line 845)
  52848. * __builtin_nand128: Other Builtins. (line 867)
  52849. * __builtin_nand32: Other Builtins. (line 861)
  52850. * __builtin_nand64: Other Builtins. (line 864)
  52851. * __builtin_nanf: Other Builtins. (line 871)
  52852. * __builtin_nanfN: Other Builtins. (line 878)
  52853. * __builtin_nanfNx: Other Builtins. (line 881)
  52854. * __builtin_nanl: Other Builtins. (line 874)
  52855. * __builtin_nanq: x86 Built-in Functions.
  52856. (line 54)
  52857. * __builtin_nans: Other Builtins. (line 884)
  52858. * __builtin_nansf: Other Builtins. (line 888)
  52859. * __builtin_nansfN: Other Builtins. (line 895)
  52860. * __builtin_nansfNx: Other Builtins. (line 898)
  52861. * __builtin_nansl: Other Builtins. (line 891)
  52862. * __builtin_nansq: x86 Built-in Functions.
  52863. (line 57)
  52864. * __builtin_nds32_isb: NDS32 Built-in Functions.
  52865. (line 12)
  52866. * __builtin_nds32_isync: NDS32 Built-in Functions.
  52867. (line 8)
  52868. * __builtin_nds32_mfsr: NDS32 Built-in Functions.
  52869. (line 15)
  52870. * __builtin_nds32_mfusr: NDS32 Built-in Functions.
  52871. (line 18)
  52872. * __builtin_nds32_mtsr: NDS32 Built-in Functions.
  52873. (line 21)
  52874. * __builtin_nds32_mtusr: NDS32 Built-in Functions.
  52875. (line 24)
  52876. * __builtin_nds32_setgie_dis: NDS32 Built-in Functions.
  52877. (line 30)
  52878. * __builtin_nds32_setgie_en: NDS32 Built-in Functions.
  52879. (line 27)
  52880. * __builtin_non_tx_store: S/390 System z Built-in Functions.
  52881. (line 98)
  52882. * __builtin_object_size: Object Size Checking.
  52883. (line 6)
  52884. * __builtin_object_size <1>: Object Size Checking.
  52885. (line 16)
  52886. * __builtin_object_size <2>: Other Builtins. (line 6)
  52887. * __builtin_object_size <3>: Other Builtins. (line 772)
  52888. * __builtin_offsetof: Offsetof. (line 6)
  52889. * __builtin_parity: Other Builtins. (line 921)
  52890. * __builtin_parityl: Other Builtins. (line 942)
  52891. * __builtin_parityll: Other Builtins. (line 966)
  52892. * __builtin_popcount: Other Builtins. (line 918)
  52893. * __builtin_popcountl: Other Builtins. (line 938)
  52894. * __builtin_popcountll: Other Builtins. (line 962)
  52895. * __builtin_powi: Other Builtins. (line 6)
  52896. * __builtin_powi <1>: Other Builtins. (line 970)
  52897. * __builtin_powif: Other Builtins. (line 6)
  52898. * __builtin_powif <1>: Other Builtins. (line 975)
  52899. * __builtin_powil: Other Builtins. (line 6)
  52900. * __builtin_powil <1>: Other Builtins. (line 979)
  52901. * __builtin_prefetch: Other Builtins. (line 733)
  52902. * __builtin_return: Constructing Calls. (line 47)
  52903. * __builtin_return_address: Return Address. (line 9)
  52904. * __builtin_rx_brk: RX Built-in Functions.
  52905. (line 10)
  52906. * __builtin_rx_clrpsw: RX Built-in Functions.
  52907. (line 13)
  52908. * __builtin_rx_int: RX Built-in Functions.
  52909. (line 17)
  52910. * __builtin_rx_machi: RX Built-in Functions.
  52911. (line 21)
  52912. * __builtin_rx_maclo: RX Built-in Functions.
  52913. (line 26)
  52914. * __builtin_rx_mulhi: RX Built-in Functions.
  52915. (line 31)
  52916. * __builtin_rx_mullo: RX Built-in Functions.
  52917. (line 36)
  52918. * __builtin_rx_mvfachi: RX Built-in Functions.
  52919. (line 41)
  52920. * __builtin_rx_mvfacmi: RX Built-in Functions.
  52921. (line 45)
  52922. * __builtin_rx_mvfc: RX Built-in Functions.
  52923. (line 49)
  52924. * __builtin_rx_mvtachi: RX Built-in Functions.
  52925. (line 53)
  52926. * __builtin_rx_mvtaclo: RX Built-in Functions.
  52927. (line 57)
  52928. * __builtin_rx_mvtc: RX Built-in Functions.
  52929. (line 61)
  52930. * __builtin_rx_mvtipl: RX Built-in Functions.
  52931. (line 65)
  52932. * __builtin_rx_racw: RX Built-in Functions.
  52933. (line 69)
  52934. * __builtin_rx_revw: RX Built-in Functions.
  52935. (line 73)
  52936. * __builtin_rx_rmpa: RX Built-in Functions.
  52937. (line 78)
  52938. * __builtin_rx_round: RX Built-in Functions.
  52939. (line 82)
  52940. * __builtin_rx_sat: RX Built-in Functions.
  52941. (line 87)
  52942. * __builtin_rx_setpsw: RX Built-in Functions.
  52943. (line 91)
  52944. * __builtin_rx_wait: RX Built-in Functions.
  52945. (line 95)
  52946. * __builtin_saddll_overflow: Integer Overflow Builtins.
  52947. (line 15)
  52948. * __builtin_saddl_overflow: Integer Overflow Builtins.
  52949. (line 13)
  52950. * __builtin_sadd_overflow: Integer Overflow Builtins.
  52951. (line 11)
  52952. * __builtin_setjmp: Nonlocal Gotos. (line 32)
  52953. * __builtin_set_thread_pointer: SH Built-in Functions.
  52954. (line 9)
  52955. * __builtin_shuffle: Vector Extensions. (line 127)
  52956. * __builtin_sh_get_fpscr: SH Built-in Functions.
  52957. (line 35)
  52958. * __builtin_sh_set_fpscr: SH Built-in Functions.
  52959. (line 38)
  52960. * __builtin_smulll_overflow: Integer Overflow Builtins.
  52961. (line 69)
  52962. * __builtin_smull_overflow: Integer Overflow Builtins.
  52963. (line 67)
  52964. * __builtin_smul_overflow: Integer Overflow Builtins.
  52965. (line 65)
  52966. * __builtin_speculation_safe_value: Other Builtins. (line 6)
  52967. * __builtin_speculation_safe_value <1>: Other Builtins. (line 261)
  52968. * __builtin_sqrtf128_round_to_odd: Basic PowerPC Built-in Functions Available on ISA 3.0.
  52969. (line 33)
  52970. * __builtin_ssubll_overflow: Integer Overflow Builtins.
  52971. (line 49)
  52972. * __builtin_ssubl_overflow: Integer Overflow Builtins.
  52973. (line 47)
  52974. * __builtin_ssub_overflow: Integer Overflow Builtins.
  52975. (line 45)
  52976. * __builtin_subf128_round_to_odd: Basic PowerPC Built-in Functions Available on ISA 3.0.
  52977. (line 21)
  52978. * __builtin_sub_overflow: Integer Overflow Builtins.
  52979. (line 43)
  52980. * __builtin_sub_overflow_p: Integer Overflow Builtins.
  52981. (line 88)
  52982. * __builtin_tabort: S/390 System z Built-in Functions.
  52983. (line 82)
  52984. * __builtin_tbegin: S/390 System z Built-in Functions.
  52985. (line 6)
  52986. * __builtin_tbeginc: S/390 System z Built-in Functions.
  52987. (line 73)
  52988. * __builtin_tbegin_nofloat: S/390 System z Built-in Functions.
  52989. (line 54)
  52990. * __builtin_tbegin_retry: S/390 System z Built-in Functions.
  52991. (line 60)
  52992. * __builtin_tbegin_retry_nofloat: S/390 System z Built-in Functions.
  52993. (line 67)
  52994. * __builtin_tend: S/390 System z Built-in Functions.
  52995. (line 77)
  52996. * __builtin_tgmath: Other Builtins. (line 436)
  52997. * __builtin_thread_pointer: SH Built-in Functions.
  52998. (line 18)
  52999. * __builtin_trap: Other Builtins. (line 606)
  53000. * __builtin_truncf128_round_to_odd: Basic PowerPC Built-in Functions Available on ISA 3.0.
  53001. (line 41)
  53002. * __builtin_tx_assist: S/390 System z Built-in Functions.
  53003. (line 87)
  53004. * __builtin_tx_nesting_depth: S/390 System z Built-in Functions.
  53005. (line 93)
  53006. * __builtin_types_compatible_p: Other Builtins. (line 340)
  53007. * __builtin_uaddll_overflow: Integer Overflow Builtins.
  53008. (line 21)
  53009. * __builtin_uaddl_overflow: Integer Overflow Builtins.
  53010. (line 19)
  53011. * __builtin_uadd_overflow: Integer Overflow Builtins.
  53012. (line 17)
  53013. * __builtin_umulll_overflow: Integer Overflow Builtins.
  53014. (line 75)
  53015. * __builtin_umull_overflow: Integer Overflow Builtins.
  53016. (line 73)
  53017. * __builtin_umul_overflow: Integer Overflow Builtins.
  53018. (line 71)
  53019. * __builtin_unreachable: Other Builtins. (line 613)
  53020. * __builtin_usubll_overflow: Integer Overflow Builtins.
  53021. (line 55)
  53022. * __builtin_usubl_overflow: Integer Overflow Builtins.
  53023. (line 53)
  53024. * __builtin_usub_overflow: Integer Overflow Builtins.
  53025. (line 51)
  53026. * __builtin_va_arg_pack: Constructing Calls. (line 52)
  53027. * __builtin_va_arg_pack_len: Constructing Calls. (line 75)
  53028. * __builtin___clear_cache: Other Builtins. (line 720)
  53029. * __builtin___fprintf_chk: Object Size Checking.
  53030. (line 6)
  53031. * __builtin___memcpy_chk: Object Size Checking.
  53032. (line 6)
  53033. * __builtin___memmove_chk: Object Size Checking.
  53034. (line 6)
  53035. * __builtin___mempcpy_chk: Object Size Checking.
  53036. (line 6)
  53037. * __builtin___memset_chk: Object Size Checking.
  53038. (line 6)
  53039. * __builtin___printf_chk: Object Size Checking.
  53040. (line 6)
  53041. * __builtin___snprintf_chk: Object Size Checking.
  53042. (line 6)
  53043. * __builtin___sprintf_chk: Object Size Checking.
  53044. (line 6)
  53045. * __builtin___stpcpy_chk: Object Size Checking.
  53046. (line 6)
  53047. * __builtin___strcat_chk: Object Size Checking.
  53048. (line 6)
  53049. * __builtin___strcpy_chk: Object Size Checking.
  53050. (line 6)
  53051. * __builtin___strncat_chk: Object Size Checking.
  53052. (line 6)
  53053. * __builtin___strncpy_chk: Object Size Checking.
  53054. (line 6)
  53055. * __builtin___vfprintf_chk: Object Size Checking.
  53056. (line 6)
  53057. * __builtin___vprintf_chk: Object Size Checking.
  53058. (line 6)
  53059. * __builtin___vsnprintf_chk: Object Size Checking.
  53060. (line 6)
  53061. * __builtin___vsprintf_chk: Object Size Checking.
  53062. (line 6)
  53063. * __complex__ keyword: Complex. (line 6)
  53064. * __declspec(dllexport): Microsoft Windows Function Attributes.
  53065. (line 10)
  53066. * __declspec(dllimport): Microsoft Windows Function Attributes.
  53067. (line 42)
  53068. * __extension__: Alternate Keywords. (line 30)
  53069. * __far M32C Named Address Spaces: Named Address Spaces.
  53070. (line 153)
  53071. * __far RL78 Named Address Spaces: Named Address Spaces.
  53072. (line 162)
  53073. * __flash AVR Named Address Spaces: Named Address Spaces.
  53074. (line 44)
  53075. * __flash1 AVR Named Address Spaces: Named Address Spaces.
  53076. (line 53)
  53077. * __flash2 AVR Named Address Spaces: Named Address Spaces.
  53078. (line 53)
  53079. * __flash3 AVR Named Address Spaces: Named Address Spaces.
  53080. (line 53)
  53081. * __flash4 AVR Named Address Spaces: Named Address Spaces.
  53082. (line 53)
  53083. * __flash5 AVR Named Address Spaces: Named Address Spaces.
  53084. (line 53)
  53085. * __float128 data type: Floating Types. (line 6)
  53086. * __float80 data type: Floating Types. (line 6)
  53087. * __fp16 data type: Half-Precision. (line 6)
  53088. * __FUNCTION__ identifier: Function Names. (line 6)
  53089. * __func__ identifier: Function Names. (line 6)
  53090. * __ibm128 data type: Floating Types. (line 6)
  53091. * __imag__ keyword: Complex. (line 31)
  53092. * __int128 data types: __int128. (line 6)
  53093. * __memx AVR Named Address Spaces: Named Address Spaces.
  53094. (line 59)
  53095. * __PRETTY_FUNCTION__ identifier: Function Names. (line 6)
  53096. * __real__ keyword: Complex. (line 31)
  53097. * __seg_fs x86 named address space: Named Address Spaces.
  53098. (line 175)
  53099. * __seg_gs x86 named address space: Named Address Spaces.
  53100. (line 175)
  53101. * __STDC_HOSTED__: Standards. (line 13)
  53102. * __sync_add_and_fetch: __sync Builtins. (line 72)
  53103. * __sync_and_and_fetch: __sync Builtins. (line 72)
  53104. * __sync_bool_compare_and_swap: __sync Builtins. (line 88)
  53105. * __sync_fetch_and_add: __sync Builtins. (line 50)
  53106. * __sync_fetch_and_and: __sync Builtins. (line 50)
  53107. * __sync_fetch_and_nand: __sync Builtins. (line 50)
  53108. * __sync_fetch_and_or: __sync Builtins. (line 50)
  53109. * __sync_fetch_and_sub: __sync Builtins. (line 50)
  53110. * __sync_fetch_and_xor: __sync Builtins. (line 50)
  53111. * __sync_lock_release: __sync Builtins. (line 118)
  53112. * __sync_lock_test_and_set: __sync Builtins. (line 100)
  53113. * __sync_nand_and_fetch: __sync Builtins. (line 72)
  53114. * __sync_or_and_fetch: __sync Builtins. (line 72)
  53115. * __sync_sub_and_fetch: __sync Builtins. (line 72)
  53116. * __sync_synchronize: __sync Builtins. (line 97)
  53117. * __sync_val_compare_and_swap: __sync Builtins. (line 88)
  53118. * __sync_xor_and_fetch: __sync Builtins. (line 72)
  53119. * __thread: Thread-Local. (line 6)
  53120. * AArch64 Options: AArch64 Options. (line 6)
  53121. * ABI: Compatibility. (line 6)
  53122. * abi_tag function attribute: C++ Attributes. (line 9)
  53123. * abi_tag type attribute: C++ Attributes. (line 9)
  53124. * abi_tag variable attribute: C++ Attributes. (line 9)
  53125. * abort: Other Builtins. (line 6)
  53126. * abs: Other Builtins. (line 6)
  53127. * absdata variable attribute, AVR: AVR Variable Attributes.
  53128. (line 104)
  53129. * accessing volatiles: Volatiles. (line 6)
  53130. * accessing volatiles <1>: C++ Volatiles. (line 6)
  53131. * acos: Other Builtins. (line 6)
  53132. * acosf: Other Builtins. (line 6)
  53133. * acosh: Other Builtins. (line 6)
  53134. * acoshf: Other Builtins. (line 6)
  53135. * acoshl: Other Builtins. (line 6)
  53136. * acosl: Other Builtins. (line 6)
  53137. * Ada: G++ and GCC. (line 6)
  53138. * Ada <1>: G++ and GCC. (line 29)
  53139. * additional floating types: Floating Types. (line 6)
  53140. * address constraints: Simple Constraints. (line 152)
  53141. * address of a label: Labels as Values. (line 6)
  53142. * address variable attribute, AVR: AVR Variable Attributes.
  53143. (line 97)
  53144. * address_operand: Simple Constraints. (line 156)
  53145. * alias function attribute: Common Function Attributes.
  53146. (line 75)
  53147. * alias variable attribute: Common Variable Attributes.
  53148. (line 9)
  53149. * aligned function attribute: Common Function Attributes.
  53150. (line 94)
  53151. * aligned type attribute: Common Type Attributes.
  53152. (line 8)
  53153. * aligned variable attribute: Common Variable Attributes.
  53154. (line 31)
  53155. * alignment: Alignment. (line 6)
  53156. * alloca: Other Builtins. (line 6)
  53157. * alloca vs variable-length arrays: Variable Length. (line 35)
  53158. * alloc_align function attribute: Common Function Attributes.
  53159. (line 122)
  53160. * alloc_size function attribute: Common Function Attributes.
  53161. (line 142)
  53162. * alloc_size type attribute: Common Type Attributes.
  53163. (line 136)
  53164. * alloc_size variable attribute: Common Variable Attributes.
  53165. (line 137)
  53166. * Allow nesting in an interrupt handler on the Blackfin processor: Blackfin Function Attributes.
  53167. (line 45)
  53168. * Altera Nios II options: Nios II Options. (line 6)
  53169. * alternate keywords: Alternate Keywords. (line 6)
  53170. * altivec type attribute, PowerPC: PowerPC Type Attributes.
  53171. (line 12)
  53172. * altivec variable attribute, PowerPC: PowerPC Variable Attributes.
  53173. (line 12)
  53174. * always_inline function attribute: Common Function Attributes.
  53175. (line 168)
  53176. * AMD GCN Options: AMD GCN Options. (line 6)
  53177. * AMD1: Standards. (line 13)
  53178. * amdgpu_hsa_kernel function attribute, AMD GCN: AMD GCN Function Attributes.
  53179. (line 9)
  53180. * ANSI C: Standards. (line 13)
  53181. * ANSI C standard: Standards. (line 13)
  53182. * ANSI C89: Standards. (line 13)
  53183. * ANSI support: C Dialect Options. (line 10)
  53184. * ANSI X3.159-1989: Standards. (line 13)
  53185. * apostrophes: Incompatibilities. (line 116)
  53186. * application binary interface: Compatibility. (line 6)
  53187. * ARC options: ARC Options. (line 6)
  53188. * arch= function attribute, AArch64: AArch64 Function Attributes.
  53189. (line 53)
  53190. * arch= function attribute, ARM: ARM Function Attributes.
  53191. (line 98)
  53192. * ARM options: ARM Options. (line 6)
  53193. * ARM [Annotated C++ Reference Manual]: Backwards Compatibility.
  53194. (line 6)
  53195. * arrays of length zero: Zero Length. (line 6)
  53196. * arrays of variable length: Variable Length. (line 6)
  53197. * arrays, non-lvalue: Subscripting. (line 6)
  53198. * artificial function attribute: Common Function Attributes.
  53199. (line 178)
  53200. * asin: Other Builtins. (line 6)
  53201. * asinf: Other Builtins. (line 6)
  53202. * asinh: Other Builtins. (line 6)
  53203. * asinhf: Other Builtins. (line 6)
  53204. * asinhl: Other Builtins. (line 6)
  53205. * asinl: Other Builtins. (line 6)
  53206. * asm assembler template: Extended Asm. (line 226)
  53207. * asm clobbers: Extended Asm. (line 693)
  53208. * asm constraints: Constraints. (line 6)
  53209. * asm expressions: Extended Asm. (line 598)
  53210. * asm flag output operands: Extended Asm. (line 488)
  53211. * asm goto labels: Extended Asm. (line 880)
  53212. * asm inline: Size of an asm. (line 25)
  53213. * asm input operands: Extended Asm. (line 598)
  53214. * asm keyword: Using Assembly Language with C.
  53215. (line 6)
  53216. * asm output operands: Extended Asm. (line 329)
  53217. * asm scratch registers: Extended Asm. (line 693)
  53218. * asm volatile: Extended Asm. (line 116)
  53219. * assembler names for identifiers: Asm Labels. (line 6)
  53220. * assembly code, invalid: Bug Criteria. (line 12)
  53221. * assembly language in C: Using Assembly Language with C.
  53222. (line 6)
  53223. * assembly language in C, basic: Basic Asm. (line 6)
  53224. * assembly language in C, extended: Extended Asm. (line 6)
  53225. * assume_aligned function attribute: Common Function Attributes.
  53226. (line 186)
  53227. * atan: Other Builtins. (line 6)
  53228. * atan2: Other Builtins. (line 6)
  53229. * atan2f: Other Builtins. (line 6)
  53230. * atan2l: Other Builtins. (line 6)
  53231. * atanf: Other Builtins. (line 6)
  53232. * atanh: Other Builtins. (line 6)
  53233. * atanhf: Other Builtins. (line 6)
  53234. * atanhl: Other Builtins. (line 6)
  53235. * atanl: Other Builtins. (line 6)
  53236. * attribute of types: Type Attributes. (line 6)
  53237. * attribute of variables: Variable Attributes.
  53238. (line 6)
  53239. * attribute syntax: Attribute Syntax. (line 6)
  53240. * autoincrement/decrement addressing: Simple Constraints. (line 30)
  53241. * automatic inline for C++ member fns: Inline. (line 68)
  53242. * aux variable attribute, ARC: ARC Variable Attributes.
  53243. (line 7)
  53244. * AVR Options: AVR Options. (line 6)
  53245. * Backwards Compatibility: Backwards Compatibility.
  53246. (line 6)
  53247. * bank_switch function attribute, M32C: M32C Function Attributes.
  53248. (line 9)
  53249. * base class members: Name lookup. (line 6)
  53250. * based type attribute, MeP: MeP Type Attributes.
  53251. (line 6)
  53252. * based variable attribute, MeP: MeP Variable Attributes.
  53253. (line 16)
  53254. * basic asm: Basic Asm. (line 6)
  53255. * bcmp: Other Builtins. (line 6)
  53256. * below100 variable attribute, Xstormy16: Xstormy16 Variable Attributes.
  53257. (line 10)
  53258. * binary compatibility: Compatibility. (line 6)
  53259. * Binary constants using the 0b prefix: Binary constants. (line 6)
  53260. * Blackfin Options: Blackfin Options. (line 6)
  53261. * bound pointer to member function: Bound member functions.
  53262. (line 6)
  53263. * branch-protection function attribute, AArch64: AArch64 Function Attributes.
  53264. (line 76)
  53265. * break handler functions: MicroBlaze Function Attributes.
  53266. (line 17)
  53267. * break_handler function attribute, MicroBlaze: MicroBlaze Function Attributes.
  53268. (line 17)
  53269. * brk_interrupt function attribute, RL78: RL78 Function Attributes.
  53270. (line 10)
  53271. * bug criteria: Bug Criteria. (line 6)
  53272. * bugs: Bugs. (line 6)
  53273. * bugs, known: Trouble. (line 6)
  53274. * built-in functions: C Dialect Options. (line 266)
  53275. * built-in functions <1>: Other Builtins. (line 6)
  53276. * bzero: Other Builtins. (line 6)
  53277. * C compilation options: Invoking GCC. (line 18)
  53278. * C intermediate output, nonexistent: G++ and GCC. (line 34)
  53279. * C language extensions: C Extensions. (line 6)
  53280. * C language, traditional: Preprocessor Options.
  53281. (line 370)
  53282. * C standard: Standards. (line 13)
  53283. * C standards: Standards. (line 13)
  53284. * c++: Invoking G++. (line 14)
  53285. * C++: G++ and GCC. (line 29)
  53286. * C++ comments: C++ Comments. (line 6)
  53287. * C++ interface and implementation headers: C++ Interface. (line 6)
  53288. * C++ language extensions: C++ Extensions. (line 6)
  53289. * C++ member fns, automatically inline: Inline. (line 68)
  53290. * C++ misunderstandings: C++ Misunderstandings.
  53291. (line 6)
  53292. * C++ options, command-line: C++ Dialect Options.
  53293. (line 6)
  53294. * C++ pragmas, effect on inlining: C++ Interface. (line 57)
  53295. * C++ source file suffixes: Invoking G++. (line 6)
  53296. * C++ static data, declaring and defining: Static Definitions.
  53297. (line 6)
  53298. * C-SKY Options: C-SKY Options. (line 6)
  53299. * C11: Standards. (line 13)
  53300. * C17: Standards. (line 13)
  53301. * C1X: Standards. (line 13)
  53302. * C2X: Standards. (line 13)
  53303. * C6X Options: C6X Options. (line 6)
  53304. * C89: Standards. (line 13)
  53305. * C90: Standards. (line 13)
  53306. * C94: Standards. (line 13)
  53307. * C95: Standards. (line 13)
  53308. * C99: Standards. (line 13)
  53309. * C9X: Standards. (line 13)
  53310. * cabs: Other Builtins. (line 6)
  53311. * cabsf: Other Builtins. (line 6)
  53312. * cabsl: Other Builtins. (line 6)
  53313. * cacos: Other Builtins. (line 6)
  53314. * cacosf: Other Builtins. (line 6)
  53315. * cacosh: Other Builtins. (line 6)
  53316. * cacoshf: Other Builtins. (line 6)
  53317. * cacoshl: Other Builtins. (line 6)
  53318. * cacosl: Other Builtins. (line 6)
  53319. * callee_pop_aggregate_return function attribute, x86: x86 Function Attributes.
  53320. (line 47)
  53321. * calling functions through the function vector on SH2A: SH Function Attributes.
  53322. (line 9)
  53323. * calloc: Other Builtins. (line 6)
  53324. * carg: Other Builtins. (line 6)
  53325. * cargf: Other Builtins. (line 6)
  53326. * cargl: Other Builtins. (line 6)
  53327. * case labels in initializers: Designated Inits. (line 6)
  53328. * case ranges: Case Ranges. (line 6)
  53329. * casin: Other Builtins. (line 6)
  53330. * casinf: Other Builtins. (line 6)
  53331. * casinh: Other Builtins. (line 6)
  53332. * casinhf: Other Builtins. (line 6)
  53333. * casinhl: Other Builtins. (line 6)
  53334. * casinl: Other Builtins. (line 6)
  53335. * cast to a union: Cast to Union. (line 6)
  53336. * catan: Other Builtins. (line 6)
  53337. * catanf: Other Builtins. (line 6)
  53338. * catanh: Other Builtins. (line 6)
  53339. * catanhf: Other Builtins. (line 6)
  53340. * catanhl: Other Builtins. (line 6)
  53341. * catanl: Other Builtins. (line 6)
  53342. * cb variable attribute, MeP: MeP Variable Attributes.
  53343. (line 46)
  53344. * cbrt: Other Builtins. (line 6)
  53345. * cbrtf: Other Builtins. (line 6)
  53346. * cbrtl: Other Builtins. (line 6)
  53347. * ccos: Other Builtins. (line 6)
  53348. * ccosf: Other Builtins. (line 6)
  53349. * ccosh: Other Builtins. (line 6)
  53350. * ccoshf: Other Builtins. (line 6)
  53351. * ccoshl: Other Builtins. (line 6)
  53352. * ccosl: Other Builtins. (line 6)
  53353. * cdecl function attribute, x86-32: x86 Function Attributes.
  53354. (line 9)
  53355. * ceil: Other Builtins. (line 6)
  53356. * ceilf: Other Builtins. (line 6)
  53357. * ceill: Other Builtins. (line 6)
  53358. * cexp: Other Builtins. (line 6)
  53359. * cexpf: Other Builtins. (line 6)
  53360. * cexpl: Other Builtins. (line 6)
  53361. * cf_check function attribute, x86: x86 Function Attributes.
  53362. (line 625)
  53363. * character set, execution: Preprocessor Options.
  53364. (line 270)
  53365. * character set, input: Preprocessor Options.
  53366. (line 283)
  53367. * character set, input normalization: Warning Options. (line 2654)
  53368. * character set, wide execution: Preprocessor Options.
  53369. (line 275)
  53370. * cimag: Other Builtins. (line 6)
  53371. * cimagf: Other Builtins. (line 6)
  53372. * cimagl: Other Builtins. (line 6)
  53373. * cleanup variable attribute: Common Variable Attributes.
  53374. (line 161)
  53375. * clog: Other Builtins. (line 6)
  53376. * clog10: Other Builtins. (line 6)
  53377. * clog10f: Other Builtins. (line 6)
  53378. * clog10l: Other Builtins. (line 6)
  53379. * clogf: Other Builtins. (line 6)
  53380. * clogl: Other Builtins. (line 6)
  53381. * cmodel= function attribute, AArch64: AArch64 Function Attributes.
  53382. (line 27)
  53383. * COBOL: G++ and GCC. (line 23)
  53384. * code generation conventions: Code Gen Options. (line 6)
  53385. * code, mixed with declarations: Mixed Declarations. (line 6)
  53386. * cold function attribute: Common Function Attributes.
  53387. (line 202)
  53388. * cold label attribute: Label Attributes. (line 45)
  53389. * command options: Invoking GCC. (line 6)
  53390. * comments, C++ style: C++ Comments. (line 6)
  53391. * common variable attribute: Common Variable Attributes.
  53392. (line 176)
  53393. * comparison of signed and unsigned values, warning: Warning Options.
  53394. (line 2412)
  53395. * compilation statistics: Developer Options. (line 6)
  53396. * compiler bugs, reporting: Bug Reporting. (line 6)
  53397. * compiler compared to C++ preprocessor: G++ and GCC. (line 34)
  53398. * compiler options, C++: C++ Dialect Options.
  53399. (line 6)
  53400. * compiler options, Objective-C and Objective-C++: Objective-C and Objective-C++ Dialect Options.
  53401. (line 6)
  53402. * compiler version, specifying: Invoking GCC. (line 24)
  53403. * COMPILER_PATH: Environment Variables.
  53404. (line 91)
  53405. * complex conjugation: Complex. (line 38)
  53406. * complex numbers: Complex. (line 6)
  53407. * compound literals: Compound Literals. (line 6)
  53408. * computed gotos: Labels as Values. (line 6)
  53409. * conditional expressions, extensions: Conditionals. (line 6)
  53410. * conflicting types: Disappointments. (line 21)
  53411. * conj: Other Builtins. (line 6)
  53412. * conjf: Other Builtins. (line 6)
  53413. * conjl: Other Builtins. (line 6)
  53414. * const applied to function: Function Attributes.
  53415. (line 6)
  53416. * const function attribute: Common Function Attributes.
  53417. (line 218)
  53418. * const qualifier: Pointers to Arrays. (line 6)
  53419. * constants in constraints: Simple Constraints. (line 68)
  53420. * constraint modifier characters: Modifiers. (line 6)
  53421. * constraint, matching: Simple Constraints. (line 137)
  53422. * constraints, asm: Constraints. (line 6)
  53423. * constraints, machine specific: Machine Constraints.
  53424. (line 6)
  53425. * constructing calls: Constructing Calls. (line 6)
  53426. * constructor expressions: Compound Literals. (line 6)
  53427. * constructor function attribute: Common Function Attributes.
  53428. (line 259)
  53429. * contributors: Contributors. (line 6)
  53430. * copy function attribute: Common Function Attributes.
  53431. (line 287)
  53432. * copy type attribute: Common Type Attributes.
  53433. (line 161)
  53434. * copy variable attribute: Common Variable Attributes.
  53435. (line 185)
  53436. * copysign: Other Builtins. (line 6)
  53437. * copysignf: Other Builtins. (line 6)
  53438. * copysignl: Other Builtins. (line 6)
  53439. * core dump: Bug Criteria. (line 9)
  53440. * cos: Other Builtins. (line 6)
  53441. * cosf: Other Builtins. (line 6)
  53442. * cosh: Other Builtins. (line 6)
  53443. * coshf: Other Builtins. (line 6)
  53444. * coshl: Other Builtins. (line 6)
  53445. * cosl: Other Builtins. (line 6)
  53446. * CPATH: Environment Variables.
  53447. (line 127)
  53448. * CPLUS_INCLUDE_PATH: Environment Variables.
  53449. (line 129)
  53450. * cpow: Other Builtins. (line 6)
  53451. * cpowf: Other Builtins. (line 6)
  53452. * cpowl: Other Builtins. (line 6)
  53453. * cproj: Other Builtins. (line 6)
  53454. * cprojf: Other Builtins. (line 6)
  53455. * cprojl: Other Builtins. (line 6)
  53456. * cpu= function attribute, AArch64: AArch64 Function Attributes.
  53457. (line 63)
  53458. * CR16 Options: CR16 Options. (line 6)
  53459. * creal: Other Builtins. (line 6)
  53460. * crealf: Other Builtins. (line 6)
  53461. * creall: Other Builtins. (line 6)
  53462. * CRIS Options: CRIS Options. (line 6)
  53463. * critical function attribute, MSP430: MSP430 Function Attributes.
  53464. (line 9)
  53465. * cross compiling: Invoking GCC. (line 24)
  53466. * csin: Other Builtins. (line 6)
  53467. * csinf: Other Builtins. (line 6)
  53468. * csinh: Other Builtins. (line 6)
  53469. * csinhf: Other Builtins. (line 6)
  53470. * csinhl: Other Builtins. (line 6)
  53471. * csinl: Other Builtins. (line 6)
  53472. * csqrt: Other Builtins. (line 6)
  53473. * csqrtf: Other Builtins. (line 6)
  53474. * csqrtl: Other Builtins. (line 6)
  53475. * ctan: Other Builtins. (line 6)
  53476. * ctanf: Other Builtins. (line 6)
  53477. * ctanh: Other Builtins. (line 6)
  53478. * ctanhf: Other Builtins. (line 6)
  53479. * ctanhl: Other Builtins. (line 6)
  53480. * ctanl: Other Builtins. (line 6)
  53481. * C_INCLUDE_PATH: Environment Variables.
  53482. (line 128)
  53483. * D: G++ and GCC. (line 6)
  53484. * Darwin options: Darwin Options. (line 6)
  53485. * dcgettext: Other Builtins. (line 6)
  53486. * dd integer suffix: Decimal Float. (line 6)
  53487. * DD integer suffix: Decimal Float. (line 6)
  53488. * deallocating variable length arrays: Variable Length. (line 22)
  53489. * debug dump options: Developer Options. (line 6)
  53490. * debugging GCC: Developer Options. (line 6)
  53491. * debugging information options: Debugging Options. (line 6)
  53492. * decimal floating types: Decimal Float. (line 6)
  53493. * declaration scope: Incompatibilities. (line 80)
  53494. * declarations inside expressions: Statement Exprs. (line 6)
  53495. * declarations, mixed with code: Mixed Declarations. (line 6)
  53496. * declaring attributes of functions: Function Attributes.
  53497. (line 6)
  53498. * declaring static data in C++: Static Definitions. (line 6)
  53499. * defining static data in C++: Static Definitions. (line 6)
  53500. * dependencies for make as output: Environment Variables.
  53501. (line 156)
  53502. * dependencies for make as output <1>: Environment Variables.
  53503. (line 172)
  53504. * dependencies, make: Preprocessor Options.
  53505. (line 77)
  53506. * DEPENDENCIES_OUTPUT: Environment Variables.
  53507. (line 155)
  53508. * dependent name lookup: Name lookup. (line 6)
  53509. * deprecated enumerator attribute: Enumerator Attributes.
  53510. (line 28)
  53511. * deprecated function attribute: Common Function Attributes.
  53512. (line 319)
  53513. * deprecated type attribute: Common Type Attributes.
  53514. (line 189)
  53515. * deprecated variable attribute: Common Variable Attributes.
  53516. (line 201)
  53517. * designated initializers: Designated Inits. (line 6)
  53518. * designated_init type attribute: Common Type Attributes.
  53519. (line 223)
  53520. * designator lists: Designated Inits. (line 96)
  53521. * designators: Designated Inits. (line 64)
  53522. * destructor function attribute: Common Function Attributes.
  53523. (line 259)
  53524. * developer options: Developer Options. (line 6)
  53525. * df integer suffix: Decimal Float. (line 6)
  53526. * DF integer suffix: Decimal Float. (line 6)
  53527. * dgettext: Other Builtins. (line 6)
  53528. * diagnostic messages: Diagnostic Message Formatting Options.
  53529. (line 6)
  53530. * dialect options: C Dialect Options. (line 6)
  53531. * diff-delete GCC_COLORS capability: Diagnostic Message Formatting Options.
  53532. (line 119)
  53533. * diff-filename GCC_COLORS capability: Diagnostic Message Formatting Options.
  53534. (line 112)
  53535. * diff-hunk GCC_COLORS capability: Diagnostic Message Formatting Options.
  53536. (line 115)
  53537. * diff-insert GCC_COLORS capability: Diagnostic Message Formatting Options.
  53538. (line 122)
  53539. * digits in constraint: Simple Constraints. (line 125)
  53540. * directory options: Directory Options. (line 6)
  53541. * disinterrupt function attribute, Epiphany: Epiphany Function Attributes.
  53542. (line 9)
  53543. * disinterrupt function attribute, MeP: MeP Function Attributes.
  53544. (line 9)
  53545. * dl integer suffix: Decimal Float. (line 6)
  53546. * DL integer suffix: Decimal Float. (line 6)
  53547. * dllexport function attribute: Microsoft Windows Function Attributes.
  53548. (line 10)
  53549. * dllexport variable attribute: Microsoft Windows Variable Attributes.
  53550. (line 12)
  53551. * dllimport function attribute: Microsoft Windows Function Attributes.
  53552. (line 42)
  53553. * dllimport variable attribute: Microsoft Windows Variable Attributes.
  53554. (line 12)
  53555. * dollar signs in identifier names: Dollar Signs. (line 6)
  53556. * double-word arithmetic: Long Long. (line 6)
  53557. * downward funargs: Nested Functions. (line 6)
  53558. * drem: Other Builtins. (line 6)
  53559. * dremf: Other Builtins. (line 6)
  53560. * dreml: Other Builtins. (line 6)
  53561. * dump options: Developer Options. (line 6)
  53562. * E in constraint: Simple Constraints. (line 87)
  53563. * earlyclobber operand: Modifiers. (line 25)
  53564. * eBPF Options: eBPF Options. (line 6)
  53565. * eight-bit data on the H8/300, H8/300H, and H8S: H8/300 Variable Attributes.
  53566. (line 9)
  53567. * eightbit_data variable attribute, H8/300: H8/300 Variable Attributes.
  53568. (line 9)
  53569. * EIND: AVR Options. (line 319)
  53570. * either function attribute, MSP430: MSP430 Function Attributes.
  53571. (line 57)
  53572. * either variable attribute, MSP430: MSP430 Variable Attributes.
  53573. (line 23)
  53574. * empty structures: Empty Structures. (line 6)
  53575. * Enumerator Attributes: Enumerator Attributes.
  53576. (line 6)
  53577. * environment variables: Environment Variables.
  53578. (line 6)
  53579. * erf: Other Builtins. (line 6)
  53580. * erfc: Other Builtins. (line 6)
  53581. * erfcf: Other Builtins. (line 6)
  53582. * erfcl: Other Builtins. (line 6)
  53583. * erff: Other Builtins. (line 6)
  53584. * erfl: Other Builtins. (line 6)
  53585. * error function attribute: Common Function Attributes.
  53586. (line 343)
  53587. * error GCC_COLORS capability: Diagnostic Message Formatting Options.
  53588. (line 77)
  53589. * error messages: Warnings and Errors.
  53590. (line 6)
  53591. * escaped newlines: Escaped Newlines. (line 6)
  53592. * exception function attribute: NDS32 Function Attributes.
  53593. (line 9)
  53594. * exception handler functions, Blackfin: Blackfin Function Attributes.
  53595. (line 9)
  53596. * exception handler functions, NDS32: NDS32 Function Attributes.
  53597. (line 9)
  53598. * exception_handler function attribute: Blackfin Function Attributes.
  53599. (line 9)
  53600. * exit: Other Builtins. (line 6)
  53601. * exp: Other Builtins. (line 6)
  53602. * exp10: Other Builtins. (line 6)
  53603. * exp10f: Other Builtins. (line 6)
  53604. * exp10l: Other Builtins. (line 6)
  53605. * exp2: Other Builtins. (line 6)
  53606. * exp2f: Other Builtins. (line 6)
  53607. * exp2l: Other Builtins. (line 6)
  53608. * expf: Other Builtins. (line 6)
  53609. * expl: Other Builtins. (line 6)
  53610. * explicit register variables: Explicit Register Variables.
  53611. (line 6)
  53612. * expm1: Other Builtins. (line 6)
  53613. * expm1f: Other Builtins. (line 6)
  53614. * expm1l: Other Builtins. (line 6)
  53615. * expressions containing statements: Statement Exprs. (line 6)
  53616. * expressions, constructor: Compound Literals. (line 6)
  53617. * extended asm: Extended Asm. (line 6)
  53618. * extensible constraints: Simple Constraints. (line 161)
  53619. * extensions, ?:: Conditionals. (line 6)
  53620. * extensions, C language: C Extensions. (line 6)
  53621. * extensions, C++ language: C++ Extensions. (line 6)
  53622. * external declaration scope: Incompatibilities. (line 80)
  53623. * externally_visible function attribute: Common Function Attributes.
  53624. (line 360)
  53625. * extra NOP instructions at the function entry point: Common Function Attributes.
  53626. (line 905)
  53627. * F in constraint: Simple Constraints. (line 92)
  53628. * fabs: Other Builtins. (line 6)
  53629. * fabsf: Other Builtins. (line 6)
  53630. * fabsl: Other Builtins. (line 6)
  53631. * fallthrough statement attribute: Statement Attributes.
  53632. (line 26)
  53633. * far function attribute, MeP: MeP Function Attributes.
  53634. (line 25)
  53635. * far function attribute, MIPS: MIPS Function Attributes.
  53636. (line 63)
  53637. * far type attribute, MeP: MeP Type Attributes.
  53638. (line 6)
  53639. * far variable attribute, MeP: MeP Variable Attributes.
  53640. (line 30)
  53641. * fastcall function attribute, x86-32: x86 Function Attributes.
  53642. (line 15)
  53643. * fast_interrupt function attribute, M32C: M32C Function Attributes.
  53644. (line 14)
  53645. * fast_interrupt function attribute, MicroBlaze: MicroBlaze Function Attributes.
  53646. (line 27)
  53647. * fast_interrupt function attribute, RX: RX Function Attributes.
  53648. (line 9)
  53649. * fatal signal: Bug Criteria. (line 9)
  53650. * fdim: Other Builtins. (line 6)
  53651. * fdimf: Other Builtins. (line 6)
  53652. * fdiml: Other Builtins. (line 6)
  53653. * FDL, GNU Free Documentation License: GNU Free Documentation License.
  53654. (line 6)
  53655. * fentry_name function attribute, x86: x86 Function Attributes.
  53656. (line 637)
  53657. * fentry_section function attribute, x86: x86 Function Attributes.
  53658. (line 643)
  53659. * ffs: Other Builtins. (line 6)
  53660. * file name suffix: Overall Options. (line 14)
  53661. * file names: Link Options. (line 10)
  53662. * fix-cortex-a53-835769 function attribute, AArch64: AArch64 Function Attributes.
  53663. (line 19)
  53664. * fixed-point types: Fixed-Point. (line 6)
  53665. * fixit-delete GCC_COLORS capability: Diagnostic Message Formatting Options.
  53666. (line 109)
  53667. * fixit-insert GCC_COLORS capability: Diagnostic Message Formatting Options.
  53668. (line 105)
  53669. * flatten function attribute: Common Function Attributes.
  53670. (line 373)
  53671. * flexible array members: Zero Length. (line 6)
  53672. * float as function value type: Incompatibilities. (line 141)
  53673. * floating point precision: Disappointments. (line 68)
  53674. * floating-point precision: Optimize Options. (line 2199)
  53675. * floor: Other Builtins. (line 6)
  53676. * floorf: Other Builtins. (line 6)
  53677. * floorl: Other Builtins. (line 6)
  53678. * fma: Other Builtins. (line 6)
  53679. * fmaf: Other Builtins. (line 6)
  53680. * fmal: Other Builtins. (line 6)
  53681. * fmax: Other Builtins. (line 6)
  53682. * fmaxf: Other Builtins. (line 6)
  53683. * fmaxl: Other Builtins. (line 6)
  53684. * fmin: Other Builtins. (line 6)
  53685. * fminf: Other Builtins. (line 6)
  53686. * fminl: Other Builtins. (line 6)
  53687. * fmod: Other Builtins. (line 6)
  53688. * fmodf: Other Builtins. (line 6)
  53689. * fmodl: Other Builtins. (line 6)
  53690. * force_align_arg_pointer function attribute, x86: x86 Function Attributes.
  53691. (line 100)
  53692. * format function attribute: Common Function Attributes.
  53693. (line 381)
  53694. * format_arg function attribute: Common Function Attributes.
  53695. (line 446)
  53696. * Fortran: G++ and GCC. (line 6)
  53697. * forwarder_section function attribute, Epiphany: Epiphany Function Attributes.
  53698. (line 13)
  53699. * forwarding calls: Constructing Calls. (line 6)
  53700. * fprintf: Other Builtins. (line 6)
  53701. * fprintf_unlocked: Other Builtins. (line 6)
  53702. * fputs: Other Builtins. (line 6)
  53703. * fputs_unlocked: Other Builtins. (line 6)
  53704. * FR30 Options: FR30 Options. (line 6)
  53705. * free: Other Builtins. (line 6)
  53706. * freestanding environment: Standards. (line 13)
  53707. * freestanding implementation: Standards. (line 13)
  53708. * frexp: Other Builtins. (line 6)
  53709. * frexpf: Other Builtins. (line 6)
  53710. * frexpl: Other Builtins. (line 6)
  53711. * FRV Options: FRV Options. (line 6)
  53712. * fscanf: Other Builtins. (line 6)
  53713. * fscanf, and constant strings: Incompatibilities. (line 17)
  53714. * FT32 Options: FT32 Options. (line 6)
  53715. * function addressability on the M32R/D: M32R/D Function Attributes.
  53716. (line 15)
  53717. * function attributes: Function Attributes.
  53718. (line 6)
  53719. * function pointers, arithmetic: Pointer Arith. (line 6)
  53720. * function prototype declarations: Function Prototypes.
  53721. (line 6)
  53722. * function versions: Function Multiversioning.
  53723. (line 6)
  53724. * function, size of pointer to: Pointer Arith. (line 6)
  53725. * functions in arbitrary sections: Common Function Attributes.
  53726. (line 989)
  53727. * functions that are dynamically resolved: Common Function Attributes.
  53728. (line 547)
  53729. * functions that are passed arguments in registers on x86-32: x86 Function Attributes.
  53730. (line 76)
  53731. * functions that behave like malloc: Common Function Attributes.
  53732. (line 674)
  53733. * functions that have no side effects: Common Function Attributes.
  53734. (line 218)
  53735. * functions that have no side effects <1>: Common Function Attributes.
  53736. (line 923)
  53737. * functions that never return: Common Function Attributes.
  53738. (line 837)
  53739. * functions that pop the argument stack on x86-32: x86 Function Attributes.
  53740. (line 9)
  53741. * functions that pop the argument stack on x86-32 <1>: x86 Function Attributes.
  53742. (line 15)
  53743. * functions that pop the argument stack on x86-32 <2>: x86 Function Attributes.
  53744. (line 23)
  53745. * functions that pop the argument stack on x86-32 <3>: x86 Function Attributes.
  53746. (line 108)
  53747. * functions that return more than once: Common Function Attributes.
  53748. (line 980)
  53749. * functions with non-null pointer arguments: Common Function Attributes.
  53750. (line 783)
  53751. * functions with printf, scanf, strftime or strfmon style arguments: Common Function Attributes.
  53752. (line 381)
  53753. * function_return function attribute, x86: x86 Function Attributes.
  53754. (line 562)
  53755. * function_vector function attribute, H8/300: H8/300 Function Attributes.
  53756. (line 9)
  53757. * function_vector function attribute, M16C/M32C: M32C Function Attributes.
  53758. (line 20)
  53759. * function_vector function attribute, SH: SH Function Attributes.
  53760. (line 9)
  53761. * G in constraint: Simple Constraints. (line 96)
  53762. * g in constraint: Simple Constraints. (line 118)
  53763. * g++: Invoking G++. (line 14)
  53764. * G++: G++ and GCC. (line 29)
  53765. * gamma: Other Builtins. (line 6)
  53766. * gammaf: Other Builtins. (line 6)
  53767. * gammaf_r: Other Builtins. (line 6)
  53768. * gammal: Other Builtins. (line 6)
  53769. * gammal_r: Other Builtins. (line 6)
  53770. * gamma_r: Other Builtins. (line 6)
  53771. * GCC: G++ and GCC. (line 6)
  53772. * GCC command options: Invoking GCC. (line 6)
  53773. * GCC_COLORS environment variable: Diagnostic Message Formatting Options.
  53774. (line 40)
  53775. * GCC_COMPARE_DEBUG: Environment Variables.
  53776. (line 52)
  53777. * GCC_EXEC_PREFIX: Environment Variables.
  53778. (line 57)
  53779. * gcc_struct type attribute, PowerPC: PowerPC Type Attributes.
  53780. (line 9)
  53781. * gcc_struct type attribute, x86: x86 Type Attributes.
  53782. (line 11)
  53783. * gcc_struct variable attribute, PowerPC: PowerPC Variable Attributes.
  53784. (line 9)
  53785. * gcc_struct variable attribute, x86: x86 Variable Attributes.
  53786. (line 11)
  53787. * GCC_URLS environment variable: Diagnostic Message Formatting Options.
  53788. (line 129)
  53789. * gcov: Instrumentation Options.
  53790. (line 49)
  53791. * general-regs-only function attribute, AArch64: AArch64 Function Attributes.
  53792. (line 12)
  53793. * general-regs-only function attribute, ARM: ARM Function Attributes.
  53794. (line 9)
  53795. * gettext: Other Builtins. (line 6)
  53796. * global offset table: Code Gen Options. (line 353)
  53797. * global register after longjmp: Global Register Variables.
  53798. (line 92)
  53799. * global register variables: Global Register Variables.
  53800. (line 6)
  53801. * GNAT: G++ and GCC. (line 29)
  53802. * GNU C Compiler: G++ and GCC. (line 6)
  53803. * GNU Compiler Collection: G++ and GCC. (line 6)
  53804. * gnu_inline function attribute: Common Function Attributes.
  53805. (line 501)
  53806. * Go: G++ and GCC. (line 6)
  53807. * goto with computed label: Labels as Values. (line 6)
  53808. * gprof: Instrumentation Options.
  53809. (line 18)
  53810. * grouping options: Invoking GCC. (line 31)
  53811. * H in constraint: Simple Constraints. (line 96)
  53812. * half-precision floating point: Half-Precision. (line 6)
  53813. * hardware models and configurations, specifying: Submodel Options.
  53814. (line 6)
  53815. * hex floats: Hex Floats. (line 6)
  53816. * highlight, color: Diagnostic Message Formatting Options.
  53817. (line 40)
  53818. * hk fixed-suffix: Fixed-Point. (line 6)
  53819. * HK fixed-suffix: Fixed-Point. (line 6)
  53820. * hosted environment: Standards. (line 13)
  53821. * hosted environment <1>: C Dialect Options. (line 306)
  53822. * hosted environment <2>: C Dialect Options. (line 314)
  53823. * hosted implementation: Standards. (line 13)
  53824. * hot function attribute: Common Function Attributes.
  53825. (line 537)
  53826. * hot label attribute: Label Attributes. (line 38)
  53827. * hotpatch function attribute, S/390: S/390 Function Attributes.
  53828. (line 9)
  53829. * HPPA Options: HPPA Options. (line 6)
  53830. * hr fixed-suffix: Fixed-Point. (line 6)
  53831. * HR fixed-suffix: Fixed-Point. (line 6)
  53832. * hypot: Other Builtins. (line 6)
  53833. * hypotf: Other Builtins. (line 6)
  53834. * hypotl: Other Builtins. (line 6)
  53835. * i in constraint: Simple Constraints. (line 68)
  53836. * I in constraint: Simple Constraints. (line 79)
  53837. * IA-64 Options: IA-64 Options. (line 6)
  53838. * IBM RS/6000 and PowerPC Options: RS/6000 and PowerPC Options.
  53839. (line 6)
  53840. * identifier names, dollar signs in: Dollar Signs. (line 6)
  53841. * identifiers, names in assembler code: Asm Labels. (line 6)
  53842. * ifunc function attribute: Common Function Attributes.
  53843. (line 547)
  53844. * ilogb: Other Builtins. (line 6)
  53845. * ilogbf: Other Builtins. (line 6)
  53846. * ilogbl: Other Builtins. (line 6)
  53847. * imaxabs: Other Builtins. (line 6)
  53848. * implementation-defined behavior, C language: C Implementation.
  53849. (line 6)
  53850. * implementation-defined behavior, C++ language: C++ Implementation.
  53851. (line 6)
  53852. * implied #pragma implementation: C++ Interface. (line 43)
  53853. * incompatibilities of GCC: Incompatibilities. (line 6)
  53854. * increment operators: Bug Criteria. (line 17)
  53855. * index: Other Builtins. (line 6)
  53856. * indirect calls, ARC: ARC Function Attributes.
  53857. (line 27)
  53858. * indirect calls, ARM: ARM Function Attributes.
  53859. (line 38)
  53860. * indirect calls, Blackfin: Blackfin Function Attributes.
  53861. (line 38)
  53862. * indirect calls, Epiphany: Epiphany Function Attributes.
  53863. (line 57)
  53864. * indirect calls, MIPS: MIPS Function Attributes.
  53865. (line 63)
  53866. * indirect calls, PowerPC: PowerPC Function Attributes.
  53867. (line 10)
  53868. * indirect functions: Common Function Attributes.
  53869. (line 547)
  53870. * indirect_branch function attribute, x86: x86 Function Attributes.
  53871. (line 552)
  53872. * indirect_return function attribute, x86: x86 Function Attributes.
  53873. (line 631)
  53874. * initializations in expressions: Compound Literals. (line 6)
  53875. * initializers with labeled elements: Designated Inits. (line 6)
  53876. * initializers, non-constant: Initializers. (line 6)
  53877. * init_priority variable attribute: C++ Attributes. (line 50)
  53878. * inline assembly language: Using Assembly Language with C.
  53879. (line 6)
  53880. * inline automatic for C++ member fns: Inline. (line 68)
  53881. * inline functions: Inline. (line 6)
  53882. * inline functions, omission of: Inline. (line 51)
  53883. * inlining and C++ pragmas: C++ Interface. (line 57)
  53884. * installation trouble: Trouble. (line 6)
  53885. * instrumentation options: Instrumentation Options.
  53886. (line 6)
  53887. * integrating function code: Inline. (line 6)
  53888. * interface and implementation headers, C++: C++ Interface. (line 6)
  53889. * intermediate C version, nonexistent: G++ and GCC. (line 34)
  53890. * interrupt function attribute, ARC: ARC Function Attributes.
  53891. (line 9)
  53892. * interrupt function attribute, ARM: ARM Function Attributes.
  53893. (line 16)
  53894. * interrupt function attribute, AVR: AVR Function Attributes.
  53895. (line 9)
  53896. * interrupt function attribute, C-SKY: C-SKY Function Attributes.
  53897. (line 10)
  53898. * interrupt function attribute, CR16: CR16 Function Attributes.
  53899. (line 9)
  53900. * interrupt function attribute, Epiphany: Epiphany Function Attributes.
  53901. (line 20)
  53902. * interrupt function attribute, M32C: M32C Function Attributes.
  53903. (line 53)
  53904. * interrupt function attribute, M32R/D: M32R/D Function Attributes.
  53905. (line 9)
  53906. * interrupt function attribute, m68k: m68k Function Attributes.
  53907. (line 10)
  53908. * interrupt function attribute, MeP: MeP Function Attributes.
  53909. (line 14)
  53910. * interrupt function attribute, MIPS: MIPS Function Attributes.
  53911. (line 9)
  53912. * interrupt function attribute, MSP430: MSP430 Function Attributes.
  53913. (line 19)
  53914. * interrupt function attribute, NDS32: NDS32 Function Attributes.
  53915. (line 14)
  53916. * interrupt function attribute, RISC-V: RISC-V Function Attributes.
  53917. (line 19)
  53918. * interrupt function attribute, RL78: RL78 Function Attributes.
  53919. (line 10)
  53920. * interrupt function attribute, RX: RX Function Attributes.
  53921. (line 15)
  53922. * interrupt function attribute, V850: V850 Function Attributes.
  53923. (line 10)
  53924. * interrupt function attribute, Visium: Visium Function Attributes.
  53925. (line 9)
  53926. * interrupt function attribute, x86: x86 Function Attributes.
  53927. (line 124)
  53928. * interrupt function attribute, Xstormy16: Xstormy16 Function Attributes.
  53929. (line 9)
  53930. * interrupt_handler function attribute, Blackfin: Blackfin Function Attributes.
  53931. (line 15)
  53932. * interrupt_handler function attribute, H8/300: H8/300 Function Attributes.
  53933. (line 17)
  53934. * interrupt_handler function attribute, m68k: m68k Function Attributes.
  53935. (line 10)
  53936. * interrupt_handler function attribute, MicroBlaze: MicroBlaze Function Attributes.
  53937. (line 27)
  53938. * interrupt_handler function attribute, SH: SH Function Attributes.
  53939. (line 28)
  53940. * interrupt_handler function attribute, V850: V850 Function Attributes.
  53941. (line 10)
  53942. * interrupt_thread function attribute, fido: m68k Function Attributes.
  53943. (line 16)
  53944. * introduction: Top. (line 6)
  53945. * invalid assembly code: Bug Criteria. (line 12)
  53946. * invalid input: Bug Criteria. (line 42)
  53947. * invoking g++: Invoking G++. (line 22)
  53948. * io variable attribute, AVR: AVR Variable Attributes.
  53949. (line 73)
  53950. * io variable attribute, MeP: MeP Variable Attributes.
  53951. (line 36)
  53952. * io_low variable attribute, AVR: AVR Variable Attributes.
  53953. (line 91)
  53954. * isalnum: Other Builtins. (line 6)
  53955. * isalpha: Other Builtins. (line 6)
  53956. * isascii: Other Builtins. (line 6)
  53957. * isblank: Other Builtins. (line 6)
  53958. * iscntrl: Other Builtins. (line 6)
  53959. * isdigit: Other Builtins. (line 6)
  53960. * isgraph: Other Builtins. (line 6)
  53961. * islower: Other Builtins. (line 6)
  53962. * ISO 9899: Standards. (line 13)
  53963. * ISO C: Standards. (line 13)
  53964. * ISO C standard: Standards. (line 13)
  53965. * ISO C11: Standards. (line 13)
  53966. * ISO C17: Standards. (line 13)
  53967. * ISO C1X: Standards. (line 13)
  53968. * ISO C2X: Standards. (line 13)
  53969. * ISO C90: Standards. (line 13)
  53970. * ISO C94: Standards. (line 13)
  53971. * ISO C95: Standards. (line 13)
  53972. * ISO C99: Standards. (line 13)
  53973. * ISO C9X: Standards. (line 13)
  53974. * ISO support: C Dialect Options. (line 10)
  53975. * ISO/IEC 9899: Standards. (line 13)
  53976. * isprint: Other Builtins. (line 6)
  53977. * ispunct: Other Builtins. (line 6)
  53978. * isr function attribute, ARM: ARM Function Attributes.
  53979. (line 33)
  53980. * isr function attribute, C-SKY: C-SKY Function Attributes.
  53981. (line 10)
  53982. * isspace: Other Builtins. (line 6)
  53983. * isupper: Other Builtins. (line 6)
  53984. * iswalnum: Other Builtins. (line 6)
  53985. * iswalpha: Other Builtins. (line 6)
  53986. * iswblank: Other Builtins. (line 6)
  53987. * iswcntrl: Other Builtins. (line 6)
  53988. * iswdigit: Other Builtins. (line 6)
  53989. * iswgraph: Other Builtins. (line 6)
  53990. * iswlower: Other Builtins. (line 6)
  53991. * iswprint: Other Builtins. (line 6)
  53992. * iswpunct: Other Builtins. (line 6)
  53993. * iswspace: Other Builtins. (line 6)
  53994. * iswupper: Other Builtins. (line 6)
  53995. * iswxdigit: Other Builtins. (line 6)
  53996. * isxdigit: Other Builtins. (line 6)
  53997. * j0: Other Builtins. (line 6)
  53998. * j0f: Other Builtins. (line 6)
  53999. * j0l: Other Builtins. (line 6)
  54000. * j1: Other Builtins. (line 6)
  54001. * j1f: Other Builtins. (line 6)
  54002. * j1l: Other Builtins. (line 6)
  54003. * jli_always function attribute, ARC: ARC Function Attributes.
  54004. (line 44)
  54005. * jli_fixed function attribute, ARC: ARC Function Attributes.
  54006. (line 50)
  54007. * jn: Other Builtins. (line 6)
  54008. * jnf: Other Builtins. (line 6)
  54009. * jnl: Other Builtins. (line 6)
  54010. * k fixed-suffix: Fixed-Point. (line 6)
  54011. * K fixed-suffix: Fixed-Point. (line 6)
  54012. * keep_interrupts_masked function attribute, MIPS: MIPS Function Attributes.
  54013. (line 34)
  54014. * kernel attribute, Nvidia PTX: Nvidia PTX Function Attributes.
  54015. (line 9)
  54016. * kernel helper, function attribute, BPF: BPF Function Attributes.
  54017. (line 9)
  54018. * keywords, alternate: Alternate Keywords. (line 6)
  54019. * known causes of trouble: Trouble. (line 6)
  54020. * kspisusp function attribute, Blackfin: Blackfin Function Attributes.
  54021. (line 21)
  54022. * l1_data variable attribute, Blackfin: Blackfin Variable Attributes.
  54023. (line 11)
  54024. * l1_data_A variable attribute, Blackfin: Blackfin Variable Attributes.
  54025. (line 11)
  54026. * l1_data_B variable attribute, Blackfin: Blackfin Variable Attributes.
  54027. (line 11)
  54028. * l1_text function attribute, Blackfin: Blackfin Function Attributes.
  54029. (line 26)
  54030. * l2 function attribute, Blackfin: Blackfin Function Attributes.
  54031. (line 32)
  54032. * l2 variable attribute, Blackfin: Blackfin Variable Attributes.
  54033. (line 19)
  54034. * Label Attributes: Label Attributes. (line 6)
  54035. * labeled elements in initializers: Designated Inits. (line 6)
  54036. * labels as values: Labels as Values. (line 6)
  54037. * labs: Other Builtins. (line 6)
  54038. * LANG: Environment Variables.
  54039. (line 21)
  54040. * LANG <1>: Environment Variables.
  54041. (line 106)
  54042. * language dialect options: C Dialect Options. (line 6)
  54043. * LC_ALL: Environment Variables.
  54044. (line 21)
  54045. * LC_CTYPE: Environment Variables.
  54046. (line 21)
  54047. * LC_MESSAGES: Environment Variables.
  54048. (line 21)
  54049. * ldexp: Other Builtins. (line 6)
  54050. * ldexpf: Other Builtins. (line 6)
  54051. * ldexpl: Other Builtins. (line 6)
  54052. * leaf function attribute: Common Function Attributes.
  54053. (line 637)
  54054. * length-zero arrays: Zero Length. (line 6)
  54055. * lgamma: Other Builtins. (line 6)
  54056. * lgammaf: Other Builtins. (line 6)
  54057. * lgammaf_r: Other Builtins. (line 6)
  54058. * lgammal: Other Builtins. (line 6)
  54059. * lgammal_r: Other Builtins. (line 6)
  54060. * lgamma_r: Other Builtins. (line 6)
  54061. * Libraries: Link Options. (line 82)
  54062. * LIBRARY_PATH: Environment Variables.
  54063. (line 97)
  54064. * link options: Link Options. (line 6)
  54065. * linker script: Link Options. (line 311)
  54066. * lk fixed-suffix: Fixed-Point. (line 6)
  54067. * LK fixed-suffix: Fixed-Point. (line 6)
  54068. * LL integer suffix: Long Long. (line 6)
  54069. * llabs: Other Builtins. (line 6)
  54070. * llk fixed-suffix: Fixed-Point. (line 6)
  54071. * LLK fixed-suffix: Fixed-Point. (line 6)
  54072. * llr fixed-suffix: Fixed-Point. (line 6)
  54073. * LLR fixed-suffix: Fixed-Point. (line 6)
  54074. * llrint: Other Builtins. (line 6)
  54075. * llrintf: Other Builtins. (line 6)
  54076. * llrintl: Other Builtins. (line 6)
  54077. * llround: Other Builtins. (line 6)
  54078. * llroundf: Other Builtins. (line 6)
  54079. * llroundl: Other Builtins. (line 6)
  54080. * LM32 options: LM32 Options. (line 6)
  54081. * load address instruction: Simple Constraints. (line 152)
  54082. * local labels: Local Labels. (line 6)
  54083. * local variables in macros: Typeof. (line 46)
  54084. * local variables, specifying registers: Local Register Variables.
  54085. (line 6)
  54086. * locale: Environment Variables.
  54087. (line 21)
  54088. * locale definition: Environment Variables.
  54089. (line 106)
  54090. * locus GCC_COLORS capability: Diagnostic Message Formatting Options.
  54091. (line 98)
  54092. * log: Other Builtins. (line 6)
  54093. * log10: Other Builtins. (line 6)
  54094. * log10f: Other Builtins. (line 6)
  54095. * log10l: Other Builtins. (line 6)
  54096. * log1p: Other Builtins. (line 6)
  54097. * log1pf: Other Builtins. (line 6)
  54098. * log1pl: Other Builtins. (line 6)
  54099. * log2: Other Builtins. (line 6)
  54100. * log2f: Other Builtins. (line 6)
  54101. * log2l: Other Builtins. (line 6)
  54102. * logb: Other Builtins. (line 6)
  54103. * logbf: Other Builtins. (line 6)
  54104. * logbl: Other Builtins. (line 6)
  54105. * logf: Other Builtins. (line 6)
  54106. * logl: Other Builtins. (line 6)
  54107. * long: BPF Built-in Functions.
  54108. (line 8)
  54109. * long <1>: BPF Built-in Functions.
  54110. (line 13)
  54111. * long <2>: BPF Built-in Functions.
  54112. (line 18)
  54113. * long long data types: Long Long. (line 6)
  54114. * longcall function attribute, Blackfin: Blackfin Function Attributes.
  54115. (line 38)
  54116. * longcall function attribute, PowerPC: PowerPC Function Attributes.
  54117. (line 10)
  54118. * longjmp: Global Register Variables.
  54119. (line 92)
  54120. * longjmp incompatibilities: Incompatibilities. (line 39)
  54121. * longjmp warnings: Warning Options. (line 1284)
  54122. * long_call function attribute, ARC: ARC Function Attributes.
  54123. (line 27)
  54124. * long_call function attribute, ARM: ARM Function Attributes.
  54125. (line 38)
  54126. * long_call function attribute, Epiphany: Epiphany Function Attributes.
  54127. (line 57)
  54128. * long_call function attribute, MIPS: MIPS Function Attributes.
  54129. (line 63)
  54130. * lower function attribute, MSP430: MSP430 Function Attributes.
  54131. (line 57)
  54132. * lower variable attribute, MSP430: MSP430 Variable Attributes.
  54133. (line 27)
  54134. * lr fixed-suffix: Fixed-Point. (line 6)
  54135. * LR fixed-suffix: Fixed-Point. (line 6)
  54136. * lrint: Other Builtins. (line 6)
  54137. * lrintf: Other Builtins. (line 6)
  54138. * lrintl: Other Builtins. (line 6)
  54139. * lround: Other Builtins. (line 6)
  54140. * lroundf: Other Builtins. (line 6)
  54141. * lroundl: Other Builtins. (line 6)
  54142. * m in constraint: Simple Constraints. (line 17)
  54143. * M32C options: M32C Options. (line 6)
  54144. * M32R/D options: M32R/D Options. (line 6)
  54145. * M680x0 options: M680x0 Options. (line 6)
  54146. * machine specific constraints: Machine Constraints.
  54147. (line 6)
  54148. * machine-dependent options: Submodel Options. (line 6)
  54149. * macro with variable arguments: Variadic Macros. (line 6)
  54150. * macros, inline alternative: Inline. (line 6)
  54151. * macros, local labels: Local Labels. (line 6)
  54152. * macros, local variables in: Typeof. (line 46)
  54153. * macros, statements in expressions: Statement Exprs. (line 6)
  54154. * macros, types of arguments: Typeof. (line 6)
  54155. * make: Preprocessor Options.
  54156. (line 77)
  54157. * malloc: Other Builtins. (line 6)
  54158. * malloc function attribute: Common Function Attributes.
  54159. (line 674)
  54160. * matching constraint: Simple Constraints. (line 137)
  54161. * may_alias type attribute: Common Type Attributes.
  54162. (line 234)
  54163. * MCore options: MCore Options. (line 6)
  54164. * medium_call function attribute, ARC: ARC Function Attributes.
  54165. (line 27)
  54166. * member fns, automatically inline: Inline. (line 68)
  54167. * memchr: Other Builtins. (line 6)
  54168. * memcmp: Other Builtins. (line 6)
  54169. * memcpy: Other Builtins. (line 6)
  54170. * memory references in constraints: Simple Constraints. (line 17)
  54171. * mempcpy: Other Builtins. (line 6)
  54172. * memset: Other Builtins. (line 6)
  54173. * MeP options: MeP Options. (line 6)
  54174. * Mercury: G++ and GCC. (line 23)
  54175. * message formatting: Diagnostic Message Formatting Options.
  54176. (line 6)
  54177. * messages, warning: Warning Options. (line 6)
  54178. * messages, warning and error: Warnings and Errors.
  54179. (line 6)
  54180. * MicroBlaze Options: MicroBlaze Options. (line 6)
  54181. * micromips function attribute: MIPS Function Attributes.
  54182. (line 91)
  54183. * middle-operands, omitted: Conditionals. (line 6)
  54184. * MIPS options: MIPS Options. (line 6)
  54185. * mips16 function attribute, MIPS: MIPS Function Attributes.
  54186. (line 75)
  54187. * misunderstandings in C++: C++ Misunderstandings.
  54188. (line 6)
  54189. * mixed declarations and code: Mixed Declarations. (line 6)
  54190. * mixing assembly language and C: Using Assembly Language with C.
  54191. (line 6)
  54192. * mktemp, and constant strings: Incompatibilities. (line 13)
  54193. * MMIX Options: MMIX Options. (line 6)
  54194. * MN10300 options: MN10300 Options. (line 6)
  54195. * mode type attribute: Common Type Attributes.
  54196. (line 270)
  54197. * mode variable attribute: Common Variable Attributes.
  54198. (line 225)
  54199. * model function attribute, M32R/D: M32R/D Function Attributes.
  54200. (line 15)
  54201. * model variable attribute, IA-64: IA-64 Variable Attributes.
  54202. (line 9)
  54203. * model-name variable attribute, M32R/D: M32R/D Variable Attributes.
  54204. (line 9)
  54205. * modf: Other Builtins. (line 6)
  54206. * modff: Other Builtins. (line 6)
  54207. * modfl: Other Builtins. (line 6)
  54208. * modifiers in constraints: Modifiers. (line 6)
  54209. * Moxie Options: Moxie Options. (line 6)
  54210. * MSP430 Options: MSP430 Options. (line 6)
  54211. * ms_abi function attribute, x86: x86 Function Attributes.
  54212. (line 34)
  54213. * ms_hook_prologue function attribute, x86: x86 Function Attributes.
  54214. (line 59)
  54215. * ms_struct type attribute, PowerPC: PowerPC Type Attributes.
  54216. (line 9)
  54217. * ms_struct type attribute, x86: x86 Type Attributes.
  54218. (line 11)
  54219. * ms_struct variable attribute, PowerPC: PowerPC Variable Attributes.
  54220. (line 9)
  54221. * ms_struct variable attribute, x86: x86 Variable Attributes.
  54222. (line 11)
  54223. * multiple alternative constraints: Multi-Alternative. (line 6)
  54224. * multiprecision arithmetic: Long Long. (line 6)
  54225. * n in constraint: Simple Constraints. (line 73)
  54226. * naked function attribute, ARC: ARC Function Attributes.
  54227. (line 59)
  54228. * naked function attribute, ARM: ARM Function Attributes.
  54229. (line 48)
  54230. * naked function attribute, AVR: AVR Function Attributes.
  54231. (line 23)
  54232. * naked function attribute, C-SKY: C-SKY Function Attributes.
  54233. (line 20)
  54234. * naked function attribute, MCORE: MCORE Function Attributes.
  54235. (line 9)
  54236. * naked function attribute, MSP430: MSP430 Function Attributes.
  54237. (line 34)
  54238. * naked function attribute, NDS32: NDS32 Function Attributes.
  54239. (line 35)
  54240. * naked function attribute, RISC-V: RISC-V Function Attributes.
  54241. (line 9)
  54242. * naked function attribute, RL78: RL78 Function Attributes.
  54243. (line 20)
  54244. * naked function attribute, RX: RX Function Attributes.
  54245. (line 39)
  54246. * naked function attribute, x86: x86 Function Attributes.
  54247. (line 66)
  54248. * Named Address Spaces: Named Address Spaces.
  54249. (line 6)
  54250. * names used in assembler code: Asm Labels. (line 6)
  54251. * naming convention, implementation headers: C++ Interface. (line 43)
  54252. * NDS32 Options: NDS32 Options. (line 6)
  54253. * near function attribute, MeP: MeP Function Attributes.
  54254. (line 20)
  54255. * near function attribute, MIPS: MIPS Function Attributes.
  54256. (line 63)
  54257. * near type attribute, MeP: MeP Type Attributes.
  54258. (line 6)
  54259. * near variable attribute, MeP: MeP Variable Attributes.
  54260. (line 24)
  54261. * nearbyint: Other Builtins. (line 6)
  54262. * nearbyintf: Other Builtins. (line 6)
  54263. * nearbyintl: Other Builtins. (line 6)
  54264. * nested function attribute, NDS32: NDS32 Function Attributes.
  54265. (line 19)
  54266. * nested functions: Nested Functions. (line 6)
  54267. * nested_ready function attribute, NDS32: NDS32 Function Attributes.
  54268. (line 23)
  54269. * nesting function attribute, Blackfin: Blackfin Function Attributes.
  54270. (line 45)
  54271. * newlines (escaped): Escaped Newlines. (line 6)
  54272. * nextafter: Other Builtins. (line 6)
  54273. * nextafterf: Other Builtins. (line 6)
  54274. * nextafterl: Other Builtins. (line 6)
  54275. * nexttoward: Other Builtins. (line 6)
  54276. * nexttowardf: Other Builtins. (line 6)
  54277. * nexttowardl: Other Builtins. (line 6)
  54278. * NFC: Warning Options. (line 2654)
  54279. * NFKC: Warning Options. (line 2654)
  54280. * Nios II options: Nios II Options. (line 6)
  54281. * nmi function attribute, NDS32: NDS32 Function Attributes.
  54282. (line 50)
  54283. * NMI handler functions on the Blackfin processor: Blackfin Function Attributes.
  54284. (line 50)
  54285. * nmi_handler function attribute, Blackfin: Blackfin Function Attributes.
  54286. (line 50)
  54287. * nocf_check function attribute: x86 Function Attributes.
  54288. (line 571)
  54289. * noclone function attribute: Common Function Attributes.
  54290. (line 752)
  54291. * nocommon variable attribute: Common Variable Attributes.
  54292. (line 176)
  54293. * nocompression function attribute, MIPS: MIPS Function Attributes.
  54294. (line 108)
  54295. * noinit variable attribute: Common Variable Attributes.
  54296. (line 397)
  54297. * noinit variable attribute, MSP430: MSP430 Variable Attributes.
  54298. (line 7)
  54299. * noinline function attribute: Common Function Attributes.
  54300. (line 758)
  54301. * noipa function attribute: Common Function Attributes.
  54302. (line 769)
  54303. * nomicromips function attribute: MIPS Function Attributes.
  54304. (line 91)
  54305. * nomips16 function attribute, MIPS: MIPS Function Attributes.
  54306. (line 75)
  54307. * non-constant initializers: Initializers. (line 6)
  54308. * non-static inline function: Inline. (line 82)
  54309. * nonlocal gotos: Nonlocal Gotos. (line 6)
  54310. * nonnull function attribute: Common Function Attributes.
  54311. (line 783)
  54312. * nonstring variable attribute: Common Variable Attributes.
  54313. (line 237)
  54314. * noplt function attribute: Common Function Attributes.
  54315. (line 813)
  54316. * noreturn function attribute: Common Function Attributes.
  54317. (line 837)
  54318. * nosave_low_regs function attribute, SH: SH Function Attributes.
  54319. (line 34)
  54320. * note GCC_COLORS capability: Diagnostic Message Formatting Options.
  54321. (line 83)
  54322. * nothrow function attribute: Common Function Attributes.
  54323. (line 871)
  54324. * notshared type attribute, ARM: ARM Type Attributes.
  54325. (line 6)
  54326. * not_nested function attribute, NDS32: NDS32 Function Attributes.
  54327. (line 21)
  54328. * no_caller_saved_registers function attribute, x86: x86 Function Attributes.
  54329. (line 113)
  54330. * no_gccisr function attribute, AVR: AVR Function Attributes.
  54331. (line 33)
  54332. * no_icf function attribute: Common Function Attributes.
  54333. (line 687)
  54334. * no_instrument_function function attribute: Common Function Attributes.
  54335. (line 691)
  54336. * no_profile_instrument_function function attribute: Common Function Attributes.
  54337. (line 697)
  54338. * no_reorder function attribute: Common Function Attributes.
  54339. (line 702)
  54340. * no_sanitize function attribute: Common Function Attributes.
  54341. (line 710)
  54342. * no_sanitize_address function attribute: Common Function Attributes.
  54343. (line 722)
  54344. * no_sanitize_thread function attribute: Common Function Attributes.
  54345. (line 730)
  54346. * no_sanitize_undefined function attribute: Common Function Attributes.
  54347. (line 735)
  54348. * no_split_stack function attribute: Common Function Attributes.
  54349. (line 741)
  54350. * no_stack_limit function attribute: Common Function Attributes.
  54351. (line 747)
  54352. * Nvidia PTX options: Nvidia PTX Options. (line 6)
  54353. * nvptx options: Nvidia PTX Options. (line 6)
  54354. * o in constraint: Simple Constraints. (line 23)
  54355. * OBJC_INCLUDE_PATH: Environment Variables.
  54356. (line 130)
  54357. * Objective-C: G++ and GCC. (line 6)
  54358. * Objective-C <1>: Standards. (line 189)
  54359. * Objective-C and Objective-C++ options, command-line: Objective-C and Objective-C++ Dialect Options.
  54360. (line 6)
  54361. * Objective-C++: G++ and GCC. (line 6)
  54362. * Objective-C++ <1>: Standards. (line 189)
  54363. * offsettable address: Simple Constraints. (line 23)
  54364. * old-style function definitions: Function Prototypes.
  54365. (line 6)
  54366. * omit-leaf-frame-pointer function attribute, AArch64: AArch64 Function Attributes.
  54367. (line 41)
  54368. * omitted middle-operands: Conditionals. (line 6)
  54369. * open coding: Inline. (line 6)
  54370. * OpenACC accelerator programming: C Dialect Options. (line 325)
  54371. * OpenACC accelerator programming <1>: C Dialect Options. (line 334)
  54372. * OpenMP parallel: C Dialect Options. (line 340)
  54373. * OpenMP SIMD: C Dialect Options. (line 349)
  54374. * OpenRISC Options: OpenRISC Options. (line 6)
  54375. * operand constraints, asm: Constraints. (line 6)
  54376. * optimize function attribute: Common Function Attributes.
  54377. (line 879)
  54378. * optimize options: Optimize Options. (line 6)
  54379. * options to control diagnostics formatting: Diagnostic Message Formatting Options.
  54380. (line 6)
  54381. * options to control warnings: Warning Options. (line 6)
  54382. * options, C++: C++ Dialect Options.
  54383. (line 6)
  54384. * options, code generation: Code Gen Options. (line 6)
  54385. * options, debugging: Debugging Options. (line 6)
  54386. * options, dialect: C Dialect Options. (line 6)
  54387. * options, directory search: Directory Options. (line 6)
  54388. * options, GCC command: Invoking GCC. (line 6)
  54389. * options, grouping: Invoking GCC. (line 31)
  54390. * options, linking: Link Options. (line 6)
  54391. * options, Objective-C and Objective-C++: Objective-C and Objective-C++ Dialect Options.
  54392. (line 6)
  54393. * options, optimization: Optimize Options. (line 6)
  54394. * options, order: Invoking GCC. (line 35)
  54395. * options, preprocessor: Preprocessor Options.
  54396. (line 6)
  54397. * options, profiling: Instrumentation Options.
  54398. (line 6)
  54399. * options, program instrumentation: Instrumentation Options.
  54400. (line 6)
  54401. * options, run-time error checking: Instrumentation Options.
  54402. (line 6)
  54403. * order of evaluation, side effects: Non-bugs. (line 196)
  54404. * order of options: Invoking GCC. (line 35)
  54405. * OS_main function attribute, AVR: AVR Function Attributes.
  54406. (line 56)
  54407. * OS_task function attribute, AVR: AVR Function Attributes.
  54408. (line 56)
  54409. * other register constraints: Simple Constraints. (line 161)
  54410. * outline-atomics function attribute, AArch64: AArch64 Function Attributes.
  54411. (line 82)
  54412. * output file option: Overall Options. (line 196)
  54413. * overloaded virtual function, warning: C++ Dialect Options.
  54414. (line 817)
  54415. * p in constraint: Simple Constraints. (line 152)
  54416. * packed type attribute: Common Type Attributes.
  54417. (line 282)
  54418. * packed variable attribute: Common Variable Attributes.
  54419. (line 270)
  54420. * parameter forward declaration: Variable Length. (line 66)
  54421. * partial_save function attribute, NDS32: NDS32 Function Attributes.
  54422. (line 31)
  54423. * patchable_function_entry function attribute: Common Function Attributes.
  54424. (line 905)
  54425. * path GCC_COLORS capability: Diagnostic Message Formatting Options.
  54426. (line 86)
  54427. * pcs function attribute, ARM: ARM Function Attributes.
  54428. (line 58)
  54429. * PDP-11 Options: PDP-11 Options. (line 6)
  54430. * persistent variable attribute, MSP430: MSP430 Variable Attributes.
  54431. (line 12)
  54432. * PIC: Code Gen Options. (line 353)
  54433. * picoChip options: picoChip Options. (line 6)
  54434. * pmf: Bound member functions.
  54435. (line 6)
  54436. * pointer arguments: Common Function Attributes.
  54437. (line 247)
  54438. * pointer arguments in variadic functions: Variadic Pointer Args.
  54439. (line 6)
  54440. * pointer to member function: Bound member functions.
  54441. (line 6)
  54442. * pointers to arrays: Pointers to Arrays. (line 6)
  54443. * portions of temporary objects, pointers to: Temporaries. (line 6)
  54444. * pow: Other Builtins. (line 6)
  54445. * pow10: Other Builtins. (line 6)
  54446. * pow10f: Other Builtins. (line 6)
  54447. * pow10l: Other Builtins. (line 6)
  54448. * PowerPC options: PowerPC Options. (line 6)
  54449. * powf: Other Builtins. (line 6)
  54450. * powl: Other Builtins. (line 6)
  54451. * pragma GCC ivdep: Loop-Specific Pragmas.
  54452. (line 7)
  54453. * pragma GCC optimize: Function Specific Option Pragmas.
  54454. (line 21)
  54455. * pragma GCC pop_options: Function Specific Option Pragmas.
  54456. (line 33)
  54457. * pragma GCC push_options: Function Specific Option Pragmas.
  54458. (line 33)
  54459. * pragma GCC reset_options: Function Specific Option Pragmas.
  54460. (line 41)
  54461. * pragma GCC target: Function Specific Option Pragmas.
  54462. (line 7)
  54463. * pragma GCC unroll N: Loop-Specific Pragmas.
  54464. (line 37)
  54465. * pragma, address: M32C Pragmas. (line 15)
  54466. * pragma, align: Solaris Pragmas. (line 11)
  54467. * pragma, call: MeP Pragmas. (line 48)
  54468. * pragma, coprocessor available: MeP Pragmas. (line 13)
  54469. * pragma, coprocessor call_saved: MeP Pragmas. (line 20)
  54470. * pragma, coprocessor subclass: MeP Pragmas. (line 28)
  54471. * pragma, ctable_entry: PRU Pragmas. (line 7)
  54472. * pragma, custom io_volatile: MeP Pragmas. (line 7)
  54473. * pragma, diagnostic: Diagnostic Pragmas. (line 14)
  54474. * pragma, diagnostic <1>: Diagnostic Pragmas. (line 57)
  54475. * pragma, diagnostic <2>: Diagnostic Pragmas. (line 77)
  54476. * pragma, diagnostic <3>: Diagnostic Pragmas. (line 99)
  54477. * pragma, disinterrupt: MeP Pragmas. (line 38)
  54478. * pragma, fini: Solaris Pragmas. (line 20)
  54479. * pragma, init: Solaris Pragmas. (line 26)
  54480. * pragma, longcall: RS/6000 and PowerPC Pragmas.
  54481. (line 14)
  54482. * pragma, long_calls: ARM Pragmas. (line 11)
  54483. * pragma, long_calls_off: ARM Pragmas. (line 17)
  54484. * pragma, mark: Darwin Pragmas. (line 11)
  54485. * pragma, memregs: M32C Pragmas. (line 7)
  54486. * pragma, no_long_calls: ARM Pragmas. (line 14)
  54487. * pragma, options align: Darwin Pragmas. (line 14)
  54488. * pragma, pop_macro: Push/Pop Macro Pragmas.
  54489. (line 15)
  54490. * pragma, push_macro: Push/Pop Macro Pragmas.
  54491. (line 11)
  54492. * pragma, redefine_extname: Symbol-Renaming Pragmas.
  54493. (line 13)
  54494. * pragma, segment: Darwin Pragmas. (line 21)
  54495. * pragma, unused: Darwin Pragmas. (line 24)
  54496. * pragma, visibility: Visibility Pragmas. (line 8)
  54497. * pragma, weak: Weak Pragmas. (line 10)
  54498. * pragmas: Pragmas. (line 6)
  54499. * pragmas in C++, effect on inlining: C++ Interface. (line 57)
  54500. * pragmas, interface and implementation: C++ Interface. (line 6)
  54501. * pragmas, warning of unknown: Warning Options. (line 1299)
  54502. * precompiled headers: Precompiled Headers.
  54503. (line 6)
  54504. * preprocessing numbers: Incompatibilities. (line 173)
  54505. * preprocessing tokens: Incompatibilities. (line 173)
  54506. * preprocessor options: Preprocessor Options.
  54507. (line 6)
  54508. * printf: Other Builtins. (line 6)
  54509. * printf_unlocked: Other Builtins. (line 6)
  54510. * prof: Instrumentation Options.
  54511. (line 18)
  54512. * profiling options: Instrumentation Options.
  54513. (line 6)
  54514. * progmem variable attribute, AVR: AVR Variable Attributes.
  54515. (line 7)
  54516. * program instrumentation options: Instrumentation Options.
  54517. (line 6)
  54518. * promotion of formal parameters: Function Prototypes.
  54519. (line 6)
  54520. * PRU Options: PRU Options. (line 6)
  54521. * pure function attribute: Common Function Attributes.
  54522. (line 923)
  54523. * push address instruction: Simple Constraints. (line 152)
  54524. * putchar: Other Builtins. (line 6)
  54525. * puts: Other Builtins. (line 6)
  54526. * q floating point suffix: Floating Types. (line 6)
  54527. * Q floating point suffix: Floating Types. (line 6)
  54528. * qsort, and global register variables: Global Register Variables.
  54529. (line 75)
  54530. * quote GCC_COLORS capability: Diagnostic Message Formatting Options.
  54531. (line 102)
  54532. * r fixed-suffix: Fixed-Point. (line 6)
  54533. * R fixed-suffix: Fixed-Point. (line 6)
  54534. * r in constraint: Simple Constraints. (line 64)
  54535. * RAMPD: AVR Options. (line 430)
  54536. * RAMPX: AVR Options. (line 430)
  54537. * RAMPY: AVR Options. (line 430)
  54538. * RAMPZ: AVR Options. (line 430)
  54539. * range1 GCC_COLORS capability: Diagnostic Message Formatting Options.
  54540. (line 92)
  54541. * range2 GCC_COLORS capability: Diagnostic Message Formatting Options.
  54542. (line 95)
  54543. * ranges in case statements: Case Ranges. (line 6)
  54544. * read-only strings: Incompatibilities. (line 9)
  54545. * realloc: Other Builtins. (line 6)
  54546. * reentrant function attribute, MSP430: MSP430 Function Attributes.
  54547. (line 44)
  54548. * register variable after longjmp: Global Register Variables.
  54549. (line 92)
  54550. * registers for local variables: Local Register Variables.
  54551. (line 6)
  54552. * registers in constraints: Simple Constraints. (line 64)
  54553. * registers, global allocation: Global Register Variables.
  54554. (line 6)
  54555. * registers, global variables in: Global Register Variables.
  54556. (line 6)
  54557. * regparm function attribute, x86: x86 Function Attributes.
  54558. (line 76)
  54559. * relocation truncated to fit (ColdFire): M680x0 Options. (line 322)
  54560. * relocation truncated to fit (MIPS): MIPS Options. (line 237)
  54561. * remainder: Other Builtins. (line 6)
  54562. * remainderf: Other Builtins. (line 6)
  54563. * remainderl: Other Builtins. (line 6)
  54564. * remquo: Other Builtins. (line 6)
  54565. * remquof: Other Builtins. (line 6)
  54566. * remquol: Other Builtins. (line 6)
  54567. * renesas function attribute, SH: SH Function Attributes.
  54568. (line 40)
  54569. * reordering, warning: C++ Dialect Options.
  54570. (line 665)
  54571. * reporting bugs: Bugs. (line 6)
  54572. * resbank function attribute, SH: SH Function Attributes.
  54573. (line 44)
  54574. * reset function attribute, NDS32: NDS32 Function Attributes.
  54575. (line 45)
  54576. * reset handler functions: NDS32 Function Attributes.
  54577. (line 45)
  54578. * rest argument (in macro): Variadic Macros. (line 6)
  54579. * restricted pointers: Restricted Pointers.
  54580. (line 6)
  54581. * restricted references: Restricted Pointers.
  54582. (line 6)
  54583. * restricted this pointer: Restricted Pointers.
  54584. (line 6)
  54585. * returns_nonnull function attribute: Common Function Attributes.
  54586. (line 970)
  54587. * returns_twice function attribute: Common Function Attributes.
  54588. (line 980)
  54589. * rindex: Other Builtins. (line 6)
  54590. * rint: Other Builtins. (line 6)
  54591. * rintf: Other Builtins. (line 6)
  54592. * rintl: Other Builtins. (line 6)
  54593. * RISC-V Options: RISC-V Options. (line 6)
  54594. * RL78 Options: RL78 Options. (line 6)
  54595. * round: Other Builtins. (line 6)
  54596. * roundf: Other Builtins. (line 6)
  54597. * roundl: Other Builtins. (line 6)
  54598. * RS/6000 and PowerPC Options: RS/6000 and PowerPC Options.
  54599. (line 6)
  54600. * RTTI: Vague Linkage. (line 42)
  54601. * run-time error checking options: Instrumentation Options.
  54602. (line 6)
  54603. * run-time options: Code Gen Options. (line 6)
  54604. * RX Options: RX Options. (line 6)
  54605. * s in constraint: Simple Constraints. (line 100)
  54606. * S/390 and zSeries Options: S/390 and zSeries Options.
  54607. (line 6)
  54608. * saddr variable attribute, RL78: RL78 Variable Attributes.
  54609. (line 6)
  54610. * save all registers on the Blackfin: Blackfin Function Attributes.
  54611. (line 56)
  54612. * save all registers on the H8/300, H8/300H, and H8S: H8/300 Function Attributes.
  54613. (line 23)
  54614. * saveall function attribute, Blackfin: Blackfin Function Attributes.
  54615. (line 56)
  54616. * saveall function attribute, H8/300: H8/300 Function Attributes.
  54617. (line 23)
  54618. * save_all function attribute, NDS32: NDS32 Function Attributes.
  54619. (line 28)
  54620. * save_volatiles function attribute, MicroBlaze: MicroBlaze Function Attributes.
  54621. (line 9)
  54622. * scalar_storage_order type attribute: Common Type Attributes.
  54623. (line 317)
  54624. * scalb: Other Builtins. (line 6)
  54625. * scalbf: Other Builtins. (line 6)
  54626. * scalbl: Other Builtins. (line 6)
  54627. * scalbln: Other Builtins. (line 6)
  54628. * scalblnf: Other Builtins. (line 6)
  54629. * scalblnf <1>: Other Builtins. (line 6)
  54630. * scalbn: Other Builtins. (line 6)
  54631. * scalbnf: Other Builtins. (line 6)
  54632. * scanf, and constant strings: Incompatibilities. (line 17)
  54633. * scanfnl: Other Builtins. (line 6)
  54634. * scope of a variable length array: Variable Length. (line 22)
  54635. * scope of declaration: Disappointments. (line 21)
  54636. * scope of external declarations: Incompatibilities. (line 80)
  54637. * Score Options: Score Options. (line 6)
  54638. * sda variable attribute, V850: V850 Variable Attributes.
  54639. (line 9)
  54640. * search path: Directory Options. (line 6)
  54641. * section function attribute: Common Function Attributes.
  54642. (line 989)
  54643. * section variable attribute: Common Variable Attributes.
  54644. (line 292)
  54645. * secure_call function attribute, ARC: ARC Function Attributes.
  54646. (line 54)
  54647. * selectany variable attribute: Microsoft Windows Variable Attributes.
  54648. (line 16)
  54649. * sentinel function attribute: Common Function Attributes.
  54650. (line 1006)
  54651. * setjmp: Global Register Variables.
  54652. (line 92)
  54653. * setjmp incompatibilities: Incompatibilities. (line 39)
  54654. * shared attribute, Nvidia PTX: Nvidia PTX Variable Attributes.
  54655. (line 9)
  54656. * shared strings: Incompatibilities. (line 9)
  54657. * shared variable attribute: Microsoft Windows Variable Attributes.
  54658. (line 37)
  54659. * shortcall function attribute, Blackfin: Blackfin Function Attributes.
  54660. (line 38)
  54661. * shortcall function attribute, PowerPC: PowerPC Function Attributes.
  54662. (line 10)
  54663. * short_call function attribute, ARC: ARC Function Attributes.
  54664. (line 27)
  54665. * short_call function attribute, ARM: ARM Function Attributes.
  54666. (line 38)
  54667. * short_call function attribute, Epiphany: Epiphany Function Attributes.
  54668. (line 57)
  54669. * short_call function attribute, MIPS: MIPS Function Attributes.
  54670. (line 63)
  54671. * side effect in ?:: Conditionals. (line 20)
  54672. * side effects, macro argument: Statement Exprs. (line 35)
  54673. * side effects, order of evaluation: Non-bugs. (line 196)
  54674. * sign-return-address function attribute, AArch64: AArch64 Function Attributes.
  54675. (line 69)
  54676. * signal function attribute, AVR: AVR Function Attributes.
  54677. (line 80)
  54678. * signbit: Other Builtins. (line 6)
  54679. * signbitd128: Other Builtins. (line 6)
  54680. * signbitd32: Other Builtins. (line 6)
  54681. * signbitd64: Other Builtins. (line 6)
  54682. * signbitf: Other Builtins. (line 6)
  54683. * signbitl: Other Builtins. (line 6)
  54684. * signed and unsigned values, comparison warning: Warning Options.
  54685. (line 2412)
  54686. * significand: Other Builtins. (line 6)
  54687. * significandf: Other Builtins. (line 6)
  54688. * significandl: Other Builtins. (line 6)
  54689. * SIMD: C Dialect Options. (line 349)
  54690. * simd function attribute: Common Function Attributes.
  54691. (line 1033)
  54692. * simple constraints: Simple Constraints. (line 6)
  54693. * sin: Other Builtins. (line 6)
  54694. * sincos: Other Builtins. (line 6)
  54695. * sincosf: Other Builtins. (line 6)
  54696. * sincosl: Other Builtins. (line 6)
  54697. * sinf: Other Builtins. (line 6)
  54698. * sinh: Other Builtins. (line 6)
  54699. * sinhf: Other Builtins. (line 6)
  54700. * sinhl: Other Builtins. (line 6)
  54701. * sinl: Other Builtins. (line 6)
  54702. * sizeof: Typeof. (line 6)
  54703. * smaller data references: M32R/D Options. (line 57)
  54704. * smaller data references <1>: Nios II Options. (line 9)
  54705. * smaller data references (PowerPC): RS/6000 and PowerPC Options.
  54706. (line 713)
  54707. * snprintf: Other Builtins. (line 6)
  54708. * Solaris 2 options: Solaris 2 Options. (line 6)
  54709. * SOURCE_DATE_EPOCH: Environment Variables.
  54710. (line 177)
  54711. * SPARC options: SPARC Options. (line 6)
  54712. * Spec Files: Spec Files. (line 6)
  54713. * specified registers: Explicit Register Variables.
  54714. (line 6)
  54715. * specifying compiler version and target machine: Invoking GCC.
  54716. (line 24)
  54717. * specifying hardware config: Submodel Options. (line 6)
  54718. * specifying machine version: Invoking GCC. (line 24)
  54719. * specifying registers for local variables: Local Register Variables.
  54720. (line 6)
  54721. * speed of compilation: Precompiled Headers.
  54722. (line 6)
  54723. * sprintf: Other Builtins. (line 6)
  54724. * sp_switch function attribute, SH: SH Function Attributes.
  54725. (line 58)
  54726. * sqrt: Other Builtins. (line 6)
  54727. * sqrtf: Other Builtins. (line 6)
  54728. * sqrtl: Other Builtins. (line 6)
  54729. * sscanf: Other Builtins. (line 6)
  54730. * sscanf, and constant strings: Incompatibilities. (line 17)
  54731. * sseregparm function attribute, x86: x86 Function Attributes.
  54732. (line 93)
  54733. * stack_protect function attribute: Common Function Attributes.
  54734. (line 1052)
  54735. * Statement Attributes: Statement Attributes.
  54736. (line 6)
  54737. * statements inside expressions: Statement Exprs. (line 6)
  54738. * static data in C++, declaring and defining: Static Definitions.
  54739. (line 6)
  54740. * stdcall function attribute, x86-32: x86 Function Attributes.
  54741. (line 108)
  54742. * stpcpy: Other Builtins. (line 6)
  54743. * stpncpy: Other Builtins. (line 6)
  54744. * strcasecmp: Other Builtins. (line 6)
  54745. * strcat: Other Builtins. (line 6)
  54746. * strchr: Other Builtins. (line 6)
  54747. * strcmp: Other Builtins. (line 6)
  54748. * strcpy: Other Builtins. (line 6)
  54749. * strcspn: Other Builtins. (line 6)
  54750. * strdup: Other Builtins. (line 6)
  54751. * strfmon: Other Builtins. (line 6)
  54752. * strftime: Other Builtins. (line 6)
  54753. * strict-align function attribute, AArch64: AArch64 Function Attributes.
  54754. (line 33)
  54755. * string constants: Incompatibilities. (line 9)
  54756. * strlen: Other Builtins. (line 6)
  54757. * strncasecmp: Other Builtins. (line 6)
  54758. * strncat: Other Builtins. (line 6)
  54759. * strncmp: Other Builtins. (line 6)
  54760. * strncpy: Other Builtins. (line 6)
  54761. * strndup: Other Builtins. (line 6)
  54762. * strnlen: Other Builtins. (line 6)
  54763. * strpbrk: Other Builtins. (line 6)
  54764. * strrchr: Other Builtins. (line 6)
  54765. * strspn: Other Builtins. (line 6)
  54766. * strstr: Other Builtins. (line 6)
  54767. * struct: Unnamed Fields. (line 6)
  54768. * struct __htm_tdb: S/390 System z Built-in Functions.
  54769. (line 49)
  54770. * structures: Incompatibilities. (line 146)
  54771. * structures, constructor expression: Compound Literals. (line 6)
  54772. * submodel options: Submodel Options. (line 6)
  54773. * subscripting: Subscripting. (line 6)
  54774. * subscripting and function values: Subscripting. (line 6)
  54775. * suffixes for C++ source: Invoking G++. (line 6)
  54776. * SUNPRO_DEPENDENCIES: Environment Variables.
  54777. (line 171)
  54778. * suppressing warnings: Warning Options. (line 6)
  54779. * surprises in C++: C++ Misunderstandings.
  54780. (line 6)
  54781. * symver function attribute: Common Function Attributes.
  54782. (line 1096)
  54783. * syntax checking: Warning Options. (line 13)
  54784. * syscall_linkage function attribute, IA-64: IA-64 Function Attributes.
  54785. (line 9)
  54786. * system headers, warnings from: Warning Options. (line 1855)
  54787. * sysv_abi function attribute, x86: x86 Function Attributes.
  54788. (line 34)
  54789. * tan: Other Builtins. (line 6)
  54790. * tanf: Other Builtins. (line 6)
  54791. * tanh: Other Builtins. (line 6)
  54792. * tanhf: Other Builtins. (line 6)
  54793. * tanhl: Other Builtins. (line 6)
  54794. * tanl: Other Builtins. (line 6)
  54795. * target function attribute: Common Function Attributes.
  54796. (line 1057)
  54797. * target function attribute <1>: ARM Function Attributes.
  54798. (line 77)
  54799. * target function attribute <2>: Nios II Function Attributes.
  54800. (line 9)
  54801. * target function attribute <3>: PowerPC Function Attributes.
  54802. (line 21)
  54803. * target function attribute <4>: S/390 Function Attributes.
  54804. (line 22)
  54805. * target function attribute <5>: x86 Function Attributes.
  54806. (line 180)
  54807. * target machine, specifying: Invoking GCC. (line 24)
  54808. * target("3dnow") function attribute, x86: x86 Function Attributes.
  54809. (line 186)
  54810. * target("3dnowa") function attribute, x86: x86 Function Attributes.
  54811. (line 190)
  54812. * target("abm") function attribute, x86: x86 Function Attributes.
  54813. (line 195)
  54814. * target("adx") function attribute, x86: x86 Function Attributes.
  54815. (line 200)
  54816. * target("aes") function attribute, x86: x86 Function Attributes.
  54817. (line 204)
  54818. * target("align-stringops") function attribute, x86: x86 Function Attributes.
  54819. (line 529)
  54820. * target("altivec") function attribute, PowerPC: PowerPC Function Attributes.
  54821. (line 28)
  54822. * target("arch=ARCH") function attribute, x86: x86 Function Attributes.
  54823. (line 538)
  54824. * target("arm") function attribute, ARM: ARM Function Attributes.
  54825. (line 87)
  54826. * target("avoid-indexed-addresses") function attribute, PowerPC: PowerPC Function Attributes.
  54827. (line 142)
  54828. * target("avx") function attribute, x86: x86 Function Attributes.
  54829. (line 208)
  54830. * target("avx2") function attribute, x86: x86 Function Attributes.
  54831. (line 212)
  54832. * target("avx5124fmaps") function attribute, x86: x86 Function Attributes.
  54833. (line 216)
  54834. * target("avx5124vnniw") function attribute, x86: x86 Function Attributes.
  54835. (line 221)
  54836. * target("avx512bitalg") function attribute, x86: x86 Function Attributes.
  54837. (line 226)
  54838. * target("avx512bw") function attribute, x86: x86 Function Attributes.
  54839. (line 231)
  54840. * target("avx512cd") function attribute, x86: x86 Function Attributes.
  54841. (line 235)
  54842. * target("avx512dq") function attribute, x86: x86 Function Attributes.
  54843. (line 239)
  54844. * target("avx512er") function attribute, x86: x86 Function Attributes.
  54845. (line 243)
  54846. * target("avx512f") function attribute, x86: x86 Function Attributes.
  54847. (line 247)
  54848. * target("avx512ifma") function attribute, x86: x86 Function Attributes.
  54849. (line 251)
  54850. * target("avx512pf") function attribute, x86: x86 Function Attributes.
  54851. (line 255)
  54852. * target("avx512vbmi") function attribute, x86: x86 Function Attributes.
  54853. (line 259)
  54854. * target("avx512vbmi2") function attribute, x86: x86 Function Attributes.
  54855. (line 263)
  54856. * target("avx512vl") function attribute, x86: x86 Function Attributes.
  54857. (line 267)
  54858. * target("avx512vnni") function attribute, x86: x86 Function Attributes.
  54859. (line 271)
  54860. * target("avx512vpopcntdq") function attribute, x86: x86 Function Attributes.
  54861. (line 275)
  54862. * target("bmi") function attribute, x86: x86 Function Attributes.
  54863. (line 280)
  54864. * target("bmi2") function attribute, x86: x86 Function Attributes.
  54865. (line 284)
  54866. * target("cld") function attribute, x86: x86 Function Attributes.
  54867. (line 505)
  54868. * target("cldemote") function attribute, x86: x86 Function Attributes.
  54869. (line 288)
  54870. * target("clflushopt") function attribute, x86: x86 Function Attributes.
  54871. (line 292)
  54872. * target("clwb") function attribute, x86: x86 Function Attributes.
  54873. (line 296)
  54874. * target("clzero") function attribute, x86: x86 Function Attributes.
  54875. (line 300)
  54876. * target("cmpb") function attribute, PowerPC: PowerPC Function Attributes.
  54877. (line 34)
  54878. * target("cpu=CPU") function attribute, PowerPC: PowerPC Function Attributes.
  54879. (line 157)
  54880. * target("crc32") function attribute, x86: x86 Function Attributes.
  54881. (line 304)
  54882. * target("custom-fpu-cfg=NAME") function attribute, Nios II: Nios II Function Attributes.
  54883. (line 25)
  54884. * target("custom-INSN=N") function attribute, Nios II: Nios II Function Attributes.
  54885. (line 16)
  54886. * target("cx16") function attribute, x86: x86 Function Attributes.
  54887. (line 308)
  54888. * target("default") function attribute, x86: x86 Function Attributes.
  54889. (line 311)
  54890. * target("dlmzb") function attribute, PowerPC: PowerPC Function Attributes.
  54891. (line 40)
  54892. * target("f16c") function attribute, x86: x86 Function Attributes.
  54893. (line 316)
  54894. * target("fancy-math-387") function attribute, x86: x86 Function Attributes.
  54895. (line 509)
  54896. * target("fma") function attribute, x86: x86 Function Attributes.
  54897. (line 320)
  54898. * target("fma4") function attribute, x86: x86 Function Attributes.
  54899. (line 324)
  54900. * target("fpmath=FPMATH") function attribute, x86: x86 Function Attributes.
  54901. (line 546)
  54902. * target("fprnd") function attribute, PowerPC: PowerPC Function Attributes.
  54903. (line 47)
  54904. * target("fpu=") function attribute, ARM: ARM Function Attributes.
  54905. (line 93)
  54906. * target("friz") function attribute, PowerPC: PowerPC Function Attributes.
  54907. (line 133)
  54908. * target("fsgsbase") function attribute, x86: x86 Function Attributes.
  54909. (line 328)
  54910. * target("fxsr") function attribute, x86: x86 Function Attributes.
  54911. (line 332)
  54912. * target("gfni") function attribute, x86: x86 Function Attributes.
  54913. (line 336)
  54914. * target("hard-dfp") function attribute, PowerPC: PowerPC Function Attributes.
  54915. (line 53)
  54916. * target("hle") function attribute, x86: x86 Function Attributes.
  54917. (line 340)
  54918. * target("ieee-fp") function attribute, x86: x86 Function Attributes.
  54919. (line 514)
  54920. * target("inline-all-stringops") function attribute, x86: x86 Function Attributes.
  54921. (line 519)
  54922. * target("inline-stringops-dynamically") function attribute, x86: x86 Function Attributes.
  54923. (line 523)
  54924. * target("isel") function attribute, PowerPC: PowerPC Function Attributes.
  54925. (line 59)
  54926. * target("longcall") function attribute, PowerPC: PowerPC Function Attributes.
  54927. (line 152)
  54928. * target("lwp") function attribute, x86: x86 Function Attributes.
  54929. (line 344)
  54930. * target("lzcnt") function attribute, x86: x86 Function Attributes.
  54931. (line 348)
  54932. * target("mfcrf") function attribute, PowerPC: PowerPC Function Attributes.
  54933. (line 63)
  54934. * target("mmx") function attribute, x86: x86 Function Attributes.
  54935. (line 352)
  54936. * target("movbe") function attribute, x86: x86 Function Attributes.
  54937. (line 356)
  54938. * target("movdir64b") function attribute, x86: x86 Function Attributes.
  54939. (line 360)
  54940. * target("movdiri") function attribute, x86: x86 Function Attributes.
  54941. (line 364)
  54942. * target("mulhw") function attribute, PowerPC: PowerPC Function Attributes.
  54943. (line 70)
  54944. * target("multiple") function attribute, PowerPC: PowerPC Function Attributes.
  54945. (line 77)
  54946. * target("mwaitx") function attribute, x86: x86 Function Attributes.
  54947. (line 368)
  54948. * target("no-custom-INSN") function attribute, Nios II: Nios II Function Attributes.
  54949. (line 16)
  54950. * target("paired") function attribute, PowerPC: PowerPC Function Attributes.
  54951. (line 147)
  54952. * target("pclmul") function attribute, x86: x86 Function Attributes.
  54953. (line 372)
  54954. * target("pconfig") function attribute, x86: x86 Function Attributes.
  54955. (line 376)
  54956. * target("pku") function attribute, x86: x86 Function Attributes.
  54957. (line 380)
  54958. * target("popcnt") function attribute, x86: x86 Function Attributes.
  54959. (line 384)
  54960. * target("popcntb") function attribute, PowerPC: PowerPC Function Attributes.
  54961. (line 88)
  54962. * target("popcntd") function attribute, PowerPC: PowerPC Function Attributes.
  54963. (line 95)
  54964. * target("powerpc-gfxopt") function attribute, PowerPC: PowerPC Function Attributes.
  54965. (line 101)
  54966. * target("powerpc-gpopt") function attribute, PowerPC: PowerPC Function Attributes.
  54967. (line 107)
  54968. * target("prefetchwt1") function attribute, x86: x86 Function Attributes.
  54969. (line 388)
  54970. * target("prfchw") function attribute, x86: x86 Function Attributes.
  54971. (line 392)
  54972. * target("ptwrite") function attribute, x86: x86 Function Attributes.
  54973. (line 396)
  54974. * target("rdpid") function attribute, x86: x86 Function Attributes.
  54975. (line 400)
  54976. * target("rdrnd") function attribute, x86: x86 Function Attributes.
  54977. (line 404)
  54978. * target("rdseed") function attribute, x86: x86 Function Attributes.
  54979. (line 408)
  54980. * target("recip") function attribute, x86: x86 Function Attributes.
  54981. (line 533)
  54982. * target("recip-precision") function attribute, PowerPC: PowerPC Function Attributes.
  54983. (line 113)
  54984. * target("rtm") function attribute, x86: x86 Function Attributes.
  54985. (line 412)
  54986. * target("sahf") function attribute, x86: x86 Function Attributes.
  54987. (line 416)
  54988. * target("sgx") function attribute, x86: x86 Function Attributes.
  54989. (line 420)
  54990. * target("sha") function attribute, x86: x86 Function Attributes.
  54991. (line 424)
  54992. * target("shstk") function attribute, x86: x86 Function Attributes.
  54993. (line 428)
  54994. * target("sse") function attribute, x86: x86 Function Attributes.
  54995. (line 432)
  54996. * target("sse2") function attribute, x86: x86 Function Attributes.
  54997. (line 436)
  54998. * target("sse3") function attribute, x86: x86 Function Attributes.
  54999. (line 440)
  55000. * target("sse4") function attribute, x86: x86 Function Attributes.
  55001. (line 444)
  55002. * target("sse4.1") function attribute, x86: x86 Function Attributes.
  55003. (line 449)
  55004. * target("sse4.2") function attribute, x86: x86 Function Attributes.
  55005. (line 453)
  55006. * target("sse4a") function attribute, x86: x86 Function Attributes.
  55007. (line 457)
  55008. * target("ssse3") function attribute, x86: x86 Function Attributes.
  55009. (line 461)
  55010. * target("string") function attribute, PowerPC: PowerPC Function Attributes.
  55011. (line 119)
  55012. * target("tbm") function attribute, x86: x86 Function Attributes.
  55013. (line 465)
  55014. * target("thumb") function attribute, ARM: ARM Function Attributes.
  55015. (line 83)
  55016. * target("tune=TUNE") function attribute, PowerPC: PowerPC Function Attributes.
  55017. (line 164)
  55018. * target("tune=TUNE") function attribute, x86: x86 Function Attributes.
  55019. (line 542)
  55020. * target("update") function attribute, PowerPC: PowerPC Function Attributes.
  55021. (line 82)
  55022. * target("vaes") function attribute, x86: x86 Function Attributes.
  55023. (line 469)
  55024. * target("vpclmulqdq") function attribute, x86: x86 Function Attributes.
  55025. (line 473)
  55026. * target("vsx") function attribute, PowerPC: PowerPC Function Attributes.
  55027. (line 125)
  55028. * target("waitpkg") function attribute, x86: x86 Function Attributes.
  55029. (line 477)
  55030. * target("wbnoinvd") function attribute, x86: x86 Function Attributes.
  55031. (line 481)
  55032. * target("xop") function attribute, x86: x86 Function Attributes.
  55033. (line 485)
  55034. * target("xsave") function attribute, x86: x86 Function Attributes.
  55035. (line 489)
  55036. * target("xsavec") function attribute, x86: x86 Function Attributes.
  55037. (line 493)
  55038. * target("xsaveopt") function attribute, x86: x86 Function Attributes.
  55039. (line 497)
  55040. * target("xsaves") function attribute, x86: x86 Function Attributes.
  55041. (line 501)
  55042. * target-dependent options: Submodel Options. (line 6)
  55043. * target_clones function attribute: Common Function Attributes.
  55044. (line 1126)
  55045. * TC1: Standards. (line 13)
  55046. * TC2: Standards. (line 13)
  55047. * TC3: Standards. (line 13)
  55048. * tda variable attribute, V850: V850 Variable Attributes.
  55049. (line 13)
  55050. * Technical Corrigenda: Standards. (line 13)
  55051. * Technical Corrigendum 1: Standards. (line 13)
  55052. * Technical Corrigendum 2: Standards. (line 13)
  55053. * Technical Corrigendum 3: Standards. (line 13)
  55054. * template instantiation: Template Instantiation.
  55055. (line 6)
  55056. * temporaries, lifetime of: Temporaries. (line 6)
  55057. * tentative definitions: Code Gen Options. (line 231)
  55058. * TERM_URLS environment variable: Diagnostic Message Formatting Options.
  55059. (line 129)
  55060. * tgamma: Other Builtins. (line 6)
  55061. * tgammaf: Other Builtins. (line 6)
  55062. * tgammal: Other Builtins. (line 6)
  55063. * thiscall function attribute, x86-32: x86 Function Attributes.
  55064. (line 23)
  55065. * Thread-Local Storage: Thread-Local. (line 6)
  55066. * thunks: Nested Functions. (line 6)
  55067. * TILE-Gx options: TILE-Gx Options. (line 6)
  55068. * TILEPro options: TILEPro Options. (line 6)
  55069. * tiny data section on the H8/300H and H8S: H8/300 Variable Attributes.
  55070. (line 19)
  55071. * tiny type attribute, MeP: MeP Type Attributes.
  55072. (line 6)
  55073. * tiny variable attribute, MeP: MeP Variable Attributes.
  55074. (line 20)
  55075. * tiny_data variable attribute, H8/300: H8/300 Variable Attributes.
  55076. (line 19)
  55077. * TLS: Thread-Local. (line 6)
  55078. * tls-dialect= function attribute, AArch64: AArch64 Function Attributes.
  55079. (line 48)
  55080. * tls_model variable attribute: Common Variable Attributes.
  55081. (line 337)
  55082. * TMPDIR: Environment Variables.
  55083. (line 45)
  55084. * toascii: Other Builtins. (line 6)
  55085. * tolower: Other Builtins. (line 6)
  55086. * toupper: Other Builtins. (line 6)
  55087. * towlower: Other Builtins. (line 6)
  55088. * towupper: Other Builtins. (line 6)
  55089. * traditional C language: Preprocessor Options.
  55090. (line 370)
  55091. * transparent_union type attribute: Common Type Attributes.
  55092. (line 357)
  55093. * trapa_handler function attribute, SH: SH Function Attributes.
  55094. (line 73)
  55095. * trap_exit function attribute, SH: SH Function Attributes.
  55096. (line 68)
  55097. * trunc: Other Builtins. (line 6)
  55098. * truncf: Other Builtins. (line 6)
  55099. * truncl: Other Builtins. (line 6)
  55100. * tune= function attribute, AArch64: AArch64 Function Attributes.
  55101. (line 58)
  55102. * two-stage name lookup: Name lookup. (line 6)
  55103. * type alignment: Alignment. (line 6)
  55104. * type attributes: Type Attributes. (line 6)
  55105. * type-diff GCC_COLORS capability: Diagnostic Message Formatting Options.
  55106. (line 125)
  55107. * typedef names as function parameters: Incompatibilities. (line 97)
  55108. * typeof: Typeof. (line 6)
  55109. * type_info: Vague Linkage. (line 42)
  55110. * uhk fixed-suffix: Fixed-Point. (line 6)
  55111. * UHK fixed-suffix: Fixed-Point. (line 6)
  55112. * uhr fixed-suffix: Fixed-Point. (line 6)
  55113. * UHR fixed-suffix: Fixed-Point. (line 6)
  55114. * uk fixed-suffix: Fixed-Point. (line 6)
  55115. * UK fixed-suffix: Fixed-Point. (line 6)
  55116. * ulk fixed-suffix: Fixed-Point. (line 6)
  55117. * ULK fixed-suffix: Fixed-Point. (line 6)
  55118. * ULL integer suffix: Long Long. (line 6)
  55119. * ullk fixed-suffix: Fixed-Point. (line 6)
  55120. * ULLK fixed-suffix: Fixed-Point. (line 6)
  55121. * ullr fixed-suffix: Fixed-Point. (line 6)
  55122. * ULLR fixed-suffix: Fixed-Point. (line 6)
  55123. * ulr fixed-suffix: Fixed-Point. (line 6)
  55124. * ULR fixed-suffix: Fixed-Point. (line 6)
  55125. * uncached type attribute, ARC: ARC Type Attributes.
  55126. (line 6)
  55127. * undefined behavior: Bug Criteria. (line 17)
  55128. * undefined function value: Bug Criteria. (line 17)
  55129. * underscores in variables in macros: Typeof. (line 46)
  55130. * union: Unnamed Fields. (line 6)
  55131. * union, casting to a: Cast to Union. (line 6)
  55132. * unions: Incompatibilities. (line 146)
  55133. * unknown pragmas, warning: Warning Options. (line 1299)
  55134. * unresolved references and -nodefaultlibs: Link Options. (line 154)
  55135. * unresolved references and -nostdlib: Link Options. (line 154)
  55136. * unused function attribute: Common Function Attributes.
  55137. (line 1153)
  55138. * unused label attribute: Label Attributes. (line 31)
  55139. * unused type attribute: Common Type Attributes.
  55140. (line 410)
  55141. * unused variable attribute: Common Variable Attributes.
  55142. (line 346)
  55143. * upper function attribute, MSP430: MSP430 Function Attributes.
  55144. (line 57)
  55145. * upper variable attribute, MSP430: MSP430 Variable Attributes.
  55146. (line 23)
  55147. * ur fixed-suffix: Fixed-Point. (line 6)
  55148. * UR fixed-suffix: Fixed-Point. (line 6)
  55149. * urls: Diagnostic Message Formatting Options.
  55150. (line 129)
  55151. * used function attribute: Common Function Attributes.
  55152. (line 1158)
  55153. * used variable attribute: Common Variable Attributes.
  55154. (line 351)
  55155. * User stack pointer in interrupts on the Blackfin: Blackfin Function Attributes.
  55156. (line 21)
  55157. * use_debug_exception_return function attribute, MIPS: MIPS Function Attributes.
  55158. (line 39)
  55159. * use_shadow_register_set function attribute, MIPS: MIPS Function Attributes.
  55160. (line 28)
  55161. * V in constraint: Simple Constraints. (line 43)
  55162. * V850 Options: V850 Options. (line 6)
  55163. * vague linkage: Vague Linkage. (line 6)
  55164. * value after longjmp: Global Register Variables.
  55165. (line 92)
  55166. * variable addressability on the M32R/D: M32R/D Variable Attributes.
  55167. (line 9)
  55168. * variable alignment: Alignment. (line 6)
  55169. * variable attributes: Variable Attributes.
  55170. (line 6)
  55171. * variable number of arguments: Variadic Macros. (line 6)
  55172. * variable-length array in a structure: Variable Length. (line 26)
  55173. * variable-length array scope: Variable Length. (line 22)
  55174. * variable-length arrays: Variable Length. (line 6)
  55175. * variables in specified registers: Explicit Register Variables.
  55176. (line 6)
  55177. * variables, local, in macros: Typeof. (line 46)
  55178. * variadic functions, pointer arguments: Variadic Pointer Args.
  55179. (line 6)
  55180. * variadic macros: Variadic Macros. (line 6)
  55181. * VAX options: VAX Options. (line 6)
  55182. * vector function attribute, RX: RX Function Attributes.
  55183. (line 49)
  55184. * vector types, using with x86 intrinsics: Vector Extensions.
  55185. (line 188)
  55186. * vector_size type attribute: Common Type Attributes.
  55187. (line 419)
  55188. * vector_size variable attribute: Common Variable Attributes.
  55189. (line 360)
  55190. * version_id function attribute, IA-64: IA-64 Function Attributes.
  55191. (line 16)
  55192. * vfprintf: Other Builtins. (line 6)
  55193. * vfscanf: Other Builtins. (line 6)
  55194. * visibility function attribute: Common Function Attributes.
  55195. (line 1168)
  55196. * visibility type attribute: Common Type Attributes.
  55197. (line 446)
  55198. * visibility variable attribute: Common Variable Attributes.
  55199. (line 388)
  55200. * Visium options: Visium Options. (line 6)
  55201. * VLAs: Variable Length. (line 6)
  55202. * vliw function attribute, MeP: MeP Function Attributes.
  55203. (line 30)
  55204. * void pointers, arithmetic: Pointer Arith. (line 6)
  55205. * void, size of pointer to: Pointer Arith. (line 6)
  55206. * volatile access: Volatiles. (line 6)
  55207. * volatile access <1>: C++ Volatiles. (line 6)
  55208. * volatile applied to function: Function Attributes.
  55209. (line 6)
  55210. * volatile asm: Extended Asm. (line 116)
  55211. * volatile read: Volatiles. (line 6)
  55212. * volatile read <1>: C++ Volatiles. (line 6)
  55213. * volatile write: Volatiles. (line 6)
  55214. * volatile write <1>: C++ Volatiles. (line 6)
  55215. * vprintf: Other Builtins. (line 6)
  55216. * vscanf: Other Builtins. (line 6)
  55217. * vsnprintf: Other Builtins. (line 6)
  55218. * vsprintf: Other Builtins. (line 6)
  55219. * vsscanf: Other Builtins. (line 6)
  55220. * vtable: Vague Linkage. (line 27)
  55221. * VxWorks Options: VxWorks Options. (line 6)
  55222. * w floating point suffix: Floating Types. (line 6)
  55223. * W floating point suffix: Floating Types. (line 6)
  55224. * wakeup function attribute, MSP430: MSP430 Function Attributes.
  55225. (line 49)
  55226. * warm function attribute, NDS32: NDS32 Function Attributes.
  55227. (line 52)
  55228. * warning for comparison of signed and unsigned values: Warning Options.
  55229. (line 2412)
  55230. * warning for overloaded virtual function: C++ Dialect Options.
  55231. (line 817)
  55232. * warning for reordering of member initializers: C++ Dialect Options.
  55233. (line 665)
  55234. * warning for unknown pragmas: Warning Options. (line 1299)
  55235. * warning function attribute: Common Function Attributes.
  55236. (line 343)
  55237. * warning GCC_COLORS capability: Diagnostic Message Formatting Options.
  55238. (line 80)
  55239. * warning messages: Warning Options. (line 6)
  55240. * warnings from system headers: Warning Options. (line 1855)
  55241. * warnings vs errors: Warnings and Errors.
  55242. (line 6)
  55243. * warn_if_not_aligned type attribute: Common Type Attributes.
  55244. (line 91)
  55245. * warn_if_not_aligned variable attribute: Common Variable Attributes.
  55246. (line 106)
  55247. * warn_unused type attribute: C++ Attributes. (line 71)
  55248. * warn_unused_result function attribute: Common Function Attributes.
  55249. (line 1268)
  55250. * weak function attribute: Common Function Attributes.
  55251. (line 1285)
  55252. * weak variable attribute: Common Variable Attributes.
  55253. (line 393)
  55254. * weakref function attribute: Common Function Attributes.
  55255. (line 1297)
  55256. * whitespace: Incompatibilities. (line 112)
  55257. * Windows Options for x86: x86 Windows Options.
  55258. (line 6)
  55259. * X in constraint: Simple Constraints. (line 122)
  55260. * X3.159-1989: Standards. (line 13)
  55261. * x86 named address spaces: Named Address Spaces.
  55262. (line 170)
  55263. * x86 Options: x86 Options. (line 6)
  55264. * x86 Windows Options: x86 Windows Options.
  55265. (line 6)
  55266. * Xstormy16 Options: Xstormy16 Options. (line 6)
  55267. * Xtensa Options: Xtensa Options. (line 6)
  55268. * y0: Other Builtins. (line 6)
  55269. * y0f: Other Builtins. (line 6)
  55270. * y0l: Other Builtins. (line 6)
  55271. * y1: Other Builtins. (line 6)
  55272. * y1f: Other Builtins. (line 6)
  55273. * y1l: Other Builtins. (line 6)
  55274. * yn: Other Builtins. (line 6)
  55275. * ynf: Other Builtins. (line 6)
  55276. * ynl: Other Builtins. (line 6)
  55277. * zda variable attribute, V850: V850 Variable Attributes.
  55278. (line 17)
  55279. * zero-length arrays: Zero Length. (line 6)
  55280. * zero-size structures: Empty Structures. (line 6)
  55281. * zSeries options: zSeries Options. (line 6)
  55282. 
  55283. Tag Table:
  55284. Node: Top2135
  55285. Node: G++ and GCC4133
  55286. Node: Standards6193
  55287. Node: Invoking GCC19810
  55288. Node: Option Summary24986
  55289. Node: Overall Options80102
  55290. Node: Invoking G++95430
  55291. Node: C Dialect Options96953
  55292. Node: C++ Dialect Options116185
  55293. Node: Objective-C and Objective-C++ Dialect Options165327
  55294. Node: Diagnostic Message Formatting Options176723
  55295. Node: Warning Options202444
  55296. Ref: Wtrigraphs298504
  55297. Node: Static Analyzer Options334189
  55298. Node: Debugging Options346898
  55299. Node: Optimize Options366147
  55300. Ref: Type-punning435716
  55301. Node: Instrumentation Options542564
  55302. Node: Preprocessor Options582746
  55303. Ref: dashMF587593
  55304. Ref: fdollars-in-identifiers592172
  55305. Node: Assembler Options604552
  55306. Node: Link Options605243
  55307. Ref: Link Options-Footnote-1622119
  55308. Node: Directory Options622455
  55309. Node: Code Gen Options630858
  55310. Node: Developer Options659223
  55311. Node: Submodel Options701137
  55312. Node: AArch64 Options702947
  55313. Ref: aarch64-feature-modifiers717587
  55314. Node: Adapteva Epiphany Options722699
  55315. Node: AMD GCN Options728651
  55316. Node: ARC Options729545
  55317. Node: ARM Options750771
  55318. Node: AVR Options791501
  55319. Node: Blackfin Options818023
  55320. Node: C6X Options825915
  55321. Node: CRIS Options827458
  55322. Node: CR16 Options831197
  55323. Node: C-SKY Options832109
  55324. Node: Darwin Options836969
  55325. Node: DEC Alpha Options844410
  55326. Node: eBPF Options856026
  55327. Node: FR30 Options857308
  55328. Node: FT32 Options857868
  55329. Node: FRV Options858814
  55330. Node: GNU/Linux Options865578
  55331. Node: H8/300 Options866959
  55332. Node: HPPA Options868411
  55333. Node: IA-64 Options877943
  55334. Node: LM32 Options886071
  55335. Node: M32C Options886594
  55336. Node: M32R/D Options887867
  55337. Node: M680x0 Options891412
  55338. Node: MCore Options905487
  55339. Node: MeP Options906989
  55340. Node: MicroBlaze Options910949
  55341. Node: MIPS Options914039
  55342. Node: MMIX Options950578
  55343. Node: MN10300 Options953055
  55344. Node: Moxie Options955598
  55345. Node: MSP430 Options956085
  55346. Node: NDS32 Options963181
  55347. Node: Nios II Options965351
  55348. Node: Nvidia PTX Options977513
  55349. Node: OpenRISC Options979982
  55350. Node: PDP-11 Options982502
  55351. Node: picoChip Options983751
  55352. Node: PowerPC Options985889
  55353. Node: PRU Options986109
  55354. Node: RISC-V Options988318
  55355. Node: RL78 Options993822
  55356. Node: RS/6000 and PowerPC Options997597
  55357. Node: RX Options1038549
  55358. Node: S/390 and zSeries Options1047151
  55359. Node: Score Options1057930
  55360. Node: SH Options1058779
  55361. Node: Solaris 2 Options1073919
  55362. Node: SPARC Options1075157
  55363. Node: System V Options1090783
  55364. Node: TILE-Gx Options1091611
  55365. Node: TILEPro Options1092629
  55366. Node: V850 Options1093133
  55367. Node: VAX Options1099820
  55368. Node: Visium Options1100358
  55369. Node: VMS Options1102666
  55370. Node: VxWorks Options1103482
  55371. Node: x86 Options1104634
  55372. Node: x86 Windows Options1166744
  55373. Node: Xstormy16 Options1169549
  55374. Node: Xtensa Options1169843
  55375. Node: zSeries Options1174992
  55376. Node: Spec Files1175188
  55377. Node: Environment Variables1197356
  55378. Node: Precompiled Headers1206082
  55379. Node: C Implementation1212271
  55380. Node: Translation implementation1213961
  55381. Node: Environment implementation1214552
  55382. Node: Identifiers implementation1215106
  55383. Node: Characters implementation1216192
  55384. Node: Integers implementation1219842
  55385. Node: Floating point implementation1221891
  55386. Node: Arrays and pointers implementation1224954
  55387. Ref: Arrays and pointers implementation-Footnote-11226414
  55388. Node: Hints implementation1226540
  55389. Node: Structures unions enumerations and bit-fields implementation1228035
  55390. Node: Qualifiers implementation1230259
  55391. Node: Declarators implementation1232038
  55392. Node: Statements implementation1232379
  55393. Node: Preprocessing directives implementation1232705
  55394. Node: Library functions implementation1235026
  55395. Node: Architecture implementation1235675
  55396. Node: Locale-specific behavior implementation1237320
  55397. Node: C++ Implementation1237625
  55398. Node: Conditionally-supported behavior1238908
  55399. Node: Exception handling1239525
  55400. Node: C Extensions1239992
  55401. Node: Statement Exprs1245196
  55402. Node: Local Labels1250568
  55403. Node: Labels as Values1253541
  55404. Ref: Labels as Values-Footnote-11256068
  55405. Node: Nested Functions1256253
  55406. Node: Nonlocal Gotos1260207
  55407. Node: Constructing Calls1262473
  55408. Node: Typeof1267188
  55409. Node: Conditionals1271117
  55410. Node: __int1281272006
  55411. Node: Long Long1272531
  55412. Node: Complex1274022
  55413. Node: Floating Types1276790
  55414. Node: Half-Precision1280257
  55415. Node: Decimal Float1282668
  55416. Node: Hex Floats1284522
  55417. Node: Fixed-Point1285596
  55418. Node: Named Address Spaces1288854
  55419. Ref: AVR Named Address Spaces1289535
  55420. Node: Zero Length1296147
  55421. Node: Empty Structures1300328
  55422. Node: Variable Length1300734
  55423. Node: Variadic Macros1303452
  55424. Node: Escaped Newlines1305830
  55425. Node: Subscripting1306691
  55426. Node: Pointer Arith1307416
  55427. Node: Variadic Pointer Args1307993
  55428. Node: Pointers to Arrays1308718
  55429. Node: Initializers1309471
  55430. Node: Compound Literals1309972
  55431. Node: Designated Inits1313539
  55432. Node: Case Ranges1317463
  55433. Node: Cast to Union1318144
  55434. Node: Mixed Declarations1319867
  55435. Node: Function Attributes1320377
  55436. Node: Common Function Attributes1324833
  55437. Node: AArch64 Function Attributes1389674
  55438. Node: AMD GCN Function Attributes1395868
  55439. Node: ARC Function Attributes1398921
  55440. Node: ARM Function Attributes1401858
  55441. Node: AVR Function Attributes1406997
  55442. Node: Blackfin Function Attributes1411532
  55443. Node: BPF Function Attributes1414029
  55444. Node: CR16 Function Attributes1414617
  55445. Node: C-SKY Function Attributes1415136
  55446. Node: Epiphany Function Attributes1416435
  55447. Node: H8/300 Function Attributes1419190
  55448. Node: IA-64 Function Attributes1420388
  55449. Node: M32C Function Attributes1421430
  55450. Node: M32R/D Function Attributes1423768
  55451. Node: m68k Function Attributes1425242
  55452. Node: MCORE Function Attributes1426186
  55453. Node: MeP Function Attributes1426997
  55454. Node: MicroBlaze Function Attributes1428298
  55455. Node: Microsoft Windows Function Attributes1429805
  55456. Node: MIPS Function Attributes1434374
  55457. Node: MSP430 Function Attributes1439992
  55458. Node: NDS32 Function Attributes1444071
  55459. Node: Nios II Function Attributes1446495
  55460. Node: Nvidia PTX Function Attributes1447792
  55461. Node: PowerPC Function Attributes1448407
  55462. Node: RISC-V Function Attributes1455181
  55463. Node: RL78 Function Attributes1456597
  55464. Node: RX Function Attributes1457836
  55465. Node: S/390 Function Attributes1460383
  55466. Node: SH Function Attributes1462211
  55467. Node: Symbian OS Function Attributes1465639
  55468. Node: V850 Function Attributes1465975
  55469. Node: Visium Function Attributes1466520
  55470. Node: x86 Function Attributes1467048
  55471. Node: Xstormy16 Function Attributes1489537
  55472. Node: Variable Attributes1490044
  55473. Node: Common Variable Attributes1491577
  55474. Node: ARC Variable Attributes1509707
  55475. Node: AVR Variable Attributes1510089
  55476. Node: Blackfin Variable Attributes1515251
  55477. Node: H8/300 Variable Attributes1516109
  55478. Node: IA-64 Variable Attributes1517182
  55479. Node: M32R/D Variable Attributes1517933
  55480. Node: MeP Variable Attributes1518716
  55481. Node: Microsoft Windows Variable Attributes1520809
  55482. Node: MSP430 Variable Attributes1523262
  55483. Node: Nvidia PTX Variable Attributes1525216
  55484. Node: PowerPC Variable Attributes1525833
  55485. Node: RL78 Variable Attributes1526390
  55486. Node: V850 Variable Attributes1526809
  55487. Node: x86 Variable Attributes1527442
  55488. Node: Xstormy16 Variable Attributes1528498
  55489. Node: Type Attributes1529068
  55490. Node: Common Type Attributes1530732
  55491. Node: ARC Type Attributes1552225
  55492. Node: ARM Type Attributes1552697
  55493. Node: MeP Type Attributes1553479
  55494. Node: PowerPC Type Attributes1553881
  55495. Node: x86 Type Attributes1554870
  55496. Node: Label Attributes1555862
  55497. Node: Enumerator Attributes1557795
  55498. Node: Statement Attributes1559114
  55499. Node: Attribute Syntax1560597
  55500. Node: Function Prototypes1571855
  55501. Node: C++ Comments1573635
  55502. Node: Dollar Signs1574154
  55503. Node: Character Escapes1574619
  55504. Node: Alignment1574903
  55505. Node: Inline1576556
  55506. Node: Volatiles1581373
  55507. Node: Using Assembly Language with C1584272
  55508. Node: Basic Asm1585509
  55509. Node: Extended Asm1590959
  55510. Ref: Volatile1595058
  55511. Ref: AssemblerTemplate1599178
  55512. Ref: OutputOperands1603418
  55513. Ref: FlagOutputOperands1610381
  55514. Ref: InputOperands1613328
  55515. Ref: Clobbers and Scratch Registers1617596
  55516. Ref: GotoLabels1626237
  55517. Ref: x86Operandmodifiers1628372
  55518. Ref: x86floatingpointasmoperands1631529
  55519. Node: Constraints1634858
  55520. Node: Simple Constraints1635964
  55521. Node: Multi-Alternative1643278
  55522. Node: Modifiers1644953
  55523. Node: Machine Constraints1647751
  55524. Node: Asm Labels1703976
  55525. Node: Explicit Register Variables1705596
  55526. Ref: Explicit Reg Vars1705810
  55527. Node: Global Register Variables1706419
  55528. Ref: Global Reg Vars1706627
  55529. Node: Local Register Variables1711409
  55530. Ref: Local Reg Vars1711629
  55531. Node: Size of an asm1715257
  55532. Node: Alternate Keywords1716735
  55533. Node: Incomplete Enums1718240
  55534. Node: Function Names1718997
  55535. Node: Return Address1720901
  55536. Node: Vector Extensions1725488
  55537. Node: Offsetof1735253
  55538. Node: __sync Builtins1736086
  55539. Node: __atomic Builtins1742529
  55540. Node: Integer Overflow Builtins1756154
  55541. Node: x86 specific memory model extensions for transactional memory1762637
  55542. Node: Object Size Checking1763903
  55543. Node: Other Builtins1770159
  55544. Node: Target Builtins1819610
  55545. Node: AArch64 Built-in Functions1821328
  55546. Node: Alpha Built-in Functions1821783
  55547. Node: Altera Nios II Built-in Functions1824831
  55548. Node: ARC Built-in Functions1829200
  55549. Node: ARC SIMD Built-in Functions1834412
  55550. Node: ARM iWMMXt Built-in Functions1843308
  55551. Node: ARM C Language Extensions (ACLE)1850304
  55552. Node: ARM Floating Point Status and Control Intrinsics1851581
  55553. Node: ARM ARMv8-M Security Extensions1852066
  55554. Node: AVR Built-in Functions1853346
  55555. Node: Blackfin Built-in Functions1857107
  55556. Node: BPF Built-in Functions1857725
  55557. Node: FR-V Built-in Functions1858625
  55558. Node: Argument Types1859488
  55559. Node: Directly-mapped Integer Functions1861242
  55560. Node: Directly-mapped Media Functions1862326
  55561. Node: Raw read/write Functions1870532
  55562. Node: Other Built-in Functions1871440
  55563. Node: MIPS DSP Built-in Functions1872626
  55564. Node: MIPS Paired-Single Support1885123
  55565. Node: MIPS Loongson Built-in Functions1886622
  55566. Node: Paired-Single Arithmetic1893144
  55567. Node: Paired-Single Built-in Functions1894092
  55568. Node: MIPS-3D Built-in Functions1896759
  55569. Node: MIPS SIMD Architecture (MSA) Support1902153
  55570. Node: MIPS SIMD Architecture Built-in Functions1904993
  55571. Node: Other MIPS Built-in Functions1931847
  55572. Node: MSP430 Built-in Functions1932856
  55573. Node: NDS32 Built-in Functions1934257
  55574. Node: picoChip Built-in Functions1935550
  55575. Node: Basic PowerPC Built-in Functions1936899
  55576. Node: Basic PowerPC Built-in Functions Available on all Configurations1937699
  55577. Node: Basic PowerPC Built-in Functions Available on ISA 2.051946208
  55578. Node: Basic PowerPC Built-in Functions Available on ISA 2.061951043
  55579. Node: Basic PowerPC Built-in Functions Available on ISA 2.071953123
  55580. Node: Basic PowerPC Built-in Functions Available on ISA 3.01953977
  55581. Node: PowerPC AltiVec/VSX Built-in Functions1960893
  55582. Node: PowerPC AltiVec Built-in Functions on ISA 2.051964575
  55583. Node: PowerPC AltiVec Built-in Functions Available on ISA 2.062053813
  55584. Node: PowerPC AltiVec Built-in Functions Available on ISA 2.072078258
  55585. Node: PowerPC AltiVec Built-in Functions Available on ISA 3.02099462
  55586. Node: PowerPC Hardware Transactional Memory Built-in Functions2134598
  55587. Node: PowerPC Atomic Memory Operation Functions2143113
  55588. Node: PowerPC Matrix-Multiply Assist Built-in Functions2145676
  55589. Node: RX Built-in Functions2151672
  55590. Node: S/390 System z Built-in Functions2155698
  55591. Node: SH Built-in Functions2160928
  55592. Node: SPARC VIS Built-in Functions2162656
  55593. Node: TI C6X Built-in Functions2171188
  55594. Node: TILE-Gx Built-in Functions2172219
  55595. Node: TILEPro Built-in Functions2173338
  55596. Node: x86 Built-in Functions2174438
  55597. Node: x86 transactional memory intrinsics2238244
  55598. Node: x86 control-flow protection intrinsics2241511
  55599. Node: Target Format Checks2243282
  55600. Node: Solaris Format Checks2243714
  55601. Node: Darwin Format Checks2244140
  55602. Node: Pragmas2245103
  55603. Node: AArch64 Pragmas2246044
  55604. Node: ARM Pragmas2246501
  55605. Node: M32C Pragmas2247128
  55606. Node: MeP Pragmas2248200
  55607. Node: PRU Pragmas2250252
  55608. Node: RS/6000 and PowerPC Pragmas2250830
  55609. Node: S/390 Pragmas2251570
  55610. Node: Darwin Pragmas2252136
  55611. Node: Solaris Pragmas2253189
  55612. Node: Symbol-Renaming Pragmas2254353
  55613. Node: Structure-Layout Pragmas2255990
  55614. Node: Weak Pragmas2258270
  55615. Node: Diagnostic Pragmas2259005
  55616. Node: Visibility Pragmas2263196
  55617. Node: Push/Pop Macro Pragmas2263881
  55618. Node: Function Specific Option Pragmas2264854
  55619. Node: Loop-Specific Pragmas2266820
  55620. Node: Unnamed Fields2268420
  55621. Node: Thread-Local2270617
  55622. Node: C99 Thread-Local Edits2272723
  55623. Node: C++98 Thread-Local Edits2274721
  55624. Node: Binary constants2278166
  55625. Node: C++ Extensions2278837
  55626. Node: C++ Volatiles2280467
  55627. Node: Restricted Pointers2282815
  55628. Node: Vague Linkage2284406
  55629. Node: C++ Interface2288029
  55630. Ref: C++ Interface-Footnote-12291826
  55631. Node: Template Instantiation2291964
  55632. Node: Bound member functions2298055
  55633. Node: C++ Attributes2299587
  55634. Node: Function Multiversioning2303659
  55635. Node: Type Traits2305466
  55636. Node: C++ Concepts2312416
  55637. Node: Deprecated Features2313922
  55638. Node: Backwards Compatibility2315747
  55639. Node: Objective-C2316819
  55640. Node: GNU Objective-C runtime API2317426
  55641. Node: Modern GNU Objective-C runtime API2318433
  55642. Node: Traditional GNU Objective-C runtime API2320869
  55643. Node: Executing code before main2321596
  55644. Node: What you can and what you cannot do in +load2324340
  55645. Node: Type encoding2326710
  55646. Node: Legacy type encoding2331851
  55647. Node: @encode2332941
  55648. Node: Method signatures2333486
  55649. Node: Garbage Collection2335478
  55650. Node: Constant string objects2338168
  55651. Node: compatibility_alias2340677
  55652. Node: Exceptions2341402
  55653. Node: Synchronization2344112
  55654. Node: Fast enumeration2345296
  55655. Node: Using fast enumeration2345608
  55656. Node: c99-like fast enumeration syntax2346819
  55657. Node: Fast enumeration details2347522
  55658. Node: Fast enumeration protocol2349862
  55659. Node: Messaging with the GNU Objective-C runtime2353014
  55660. Node: Dynamically registering methods2354386
  55661. Node: Forwarding hook2356077
  55662. Node: Compatibility2359117
  55663. Node: Gcov2365673
  55664. Node: Gcov Intro2366208
  55665. Node: Invoking Gcov2368926
  55666. Node: Gcov and Optimization2391761
  55667. Node: Gcov Data Files2395504
  55668. Node: Cross-profiling2396913
  55669. Node: Gcov-tool2398767
  55670. Node: Gcov-tool Intro2399192
  55671. Node: Invoking Gcov-tool2401162
  55672. Node: Gcov-dump2403740
  55673. Node: Gcov-dump Intro2404063
  55674. Node: Invoking Gcov-dump2404330
  55675. Node: lto-dump2404931
  55676. Node: lto-dump Intro2405230
  55677. Node: Invoking lto-dump2405480
  55678. Node: Trouble2406576
  55679. Node: Actual Bugs2407993
  55680. Node: Interoperation2408440
  55681. Node: Incompatibilities2415331
  55682. Node: Fixed Headers2423483
  55683. Node: Standard Libraries2425141
  55684. Node: Disappointments2426513
  55685. Node: C++ Misunderstandings2430872
  55686. Node: Static Definitions2431683
  55687. Node: Name lookup2432736
  55688. Ref: Name lookup-Footnote-12437517
  55689. Node: Temporaries2437706
  55690. Node: Copy Assignment2439682
  55691. Node: Non-bugs2441489
  55692. Node: Warnings and Errors2451995
  55693. Node: Bugs2453757
  55694. Node: Bug Criteria2454224
  55695. Node: Bug Reporting2456434
  55696. Node: Service2456652
  55697. Node: Contributing2457472
  55698. Node: Funding2458213
  55699. Node: GNU Project2460703
  55700. Node: Copying2461349
  55701. Node: GNU Free Documentation License2498857
  55702. Node: Contributors2523975
  55703. Node: Option Index2564948
  55704. Node: Keyword Index2844354
  55705. 
  55706. End Tag Table