home *** CD-ROM | disk | FTP | other *** search
/ RISCWORLD 7 / RISCWORLD_VOL7.iso / Software / Issue2 / SDL.ARC / !gcc / docs / gcc < prev    next >
Encoding:
Text File  |  2004-09-05  |  1.1 MB  |  26,756 lines

Text Truncated. Only the first 1MB is shown below. Download the file for the complete contents.
  1. This is /home/riscos/gcc33/!gcc/docs/gcc, produced by makeinfo version
  2. 4.7 from gcc.texi.
  3.  
  4.  Copyright (C) 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
  5. 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
  6.  
  7.  Permission is granted to copy, distribute and/or modify this document
  8. under the terms of the GNU Free Documentation License, Version 1.2 or
  9. any later version published by the Free Software Foundation; with the
  10. Invariant Sections being "GNU General Public License" and "Funding Free
  11. Software", the Front-Cover texts being (a) (see below), and with the
  12. Back-Cover Texts being (b) (see below).  A copy of the license is
  13. included in the section entitled "GNU Free Documentation License".
  14.  
  15.  (a) The FSF's Front-Cover Text is:
  16.  
  17.  A GNU Manual
  18.  
  19.  (b) The FSF's Back-Cover Text is:
  20.  
  21.  You have freedom to copy and modify this GNU Manual, like GNU
  22. software.  Copies published by the Free Software Foundation raise
  23. funds for GNU development.
  24.  
  25. INFO-DIR-SECTION Programming
  26. START-INFO-DIR-ENTRY
  27. * gcc: (gcc).                  The GNU Compiler Collection.
  28. END-INFO-DIR-ENTRY
  29.  This file documents the use of the GNU compilers.
  30.  
  31.  Copyright (C) 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
  32. 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
  33.  
  34.  Permission is granted to copy, distribute and/or modify this document
  35. under the terms of the GNU Free Documentation License, Version 1.2 or
  36. any later version published by the Free Software Foundation; with the
  37. Invariant Sections being "GNU General Public License" and "Funding Free
  38. Software", the Front-Cover texts being (a) (see below), and with the
  39. Back-Cover Texts being (b) (see below).  A copy of the license is
  40. included in the section entitled "GNU Free Documentation License".
  41.  
  42.  (a) The FSF's Front-Cover Text is:
  43.  
  44.  A GNU Manual
  45.  
  46.  (b) The FSF's Back-Cover Text is:
  47.  
  48.  You have freedom to copy and modify this GNU Manual, like GNU
  49. software.  Copies published by the Free Software Foundation raise
  50. funds for GNU development.
  51.  
  52.  
  53. 
  54. File: gcc,  Node: Top,  Next: G++ and GCC,  Up: (DIR)
  55.  
  56. Introduction
  57. ************
  58.  
  59. This manual documents how to use the GNU compilers, as well as their
  60. features and incompatibilities, and how to report bugs.  It corresponds
  61. to GCC version 3.4.1.  The internals of the GNU compilers, including
  62. how to port them to new targets and some information about how to write
  63. front ends for new languages, are documented in a separate manual.
  64. *Note Introduction: (gccint)Top.
  65.  
  66. * Menu:
  67.  
  68. * G++ and GCC::     You can compile C or C++ programs.
  69. * Standards::       Language standards supported by GCC.
  70. * Invoking GCC::    Command options supported by `gcc'.
  71. * C Implementation:: How GCC implements the ISO C specification.
  72. * C Extensions::    GNU extensions to the C language family.
  73. * C++ Extensions::  GNU extensions to the C++ language.
  74. * Objective-C::     GNU Objective-C runtime features.
  75. * Compatibility::   Binary Compatibility
  76. * Gcov::            `gcov'---a test coverage program.
  77. * Trouble::         If you have trouble using GCC.
  78. * Bugs::            How, why and where to report bugs.
  79. * Service::         How to find suppliers of support for GCC.
  80. * Contributing::    How to contribute to testing and developing GCC.
  81.  
  82. * Funding::         How to help assure funding for free software.
  83. * GNU Project::     The GNU Project and GNU/Linux.
  84.  
  85. * Copying::         GNU General Public License says
  86.                      how you can copy and share GCC.
  87. * GNU Free Documentation License:: How you can copy and share this manual.
  88. * Contributors::    People who have contributed to GCC.
  89.  
  90. * Option Index::    Index to command line options.
  91. * Keyword Index::    Index of concepts and symbol names.
  92.  
  93. 
  94. File: gcc,  Node: G++ and GCC,  Next: Standards,  Prev: Top,  Up: Top
  95.  
  96. 1 Programming Languages Supported by GCC
  97. ****************************************
  98.  
  99. GCC stands for "GNU Compiler Collection".  GCC is an integrated
  100. distribution of compilers for several major programming languages.
  101. These languages currently include C, C++, Objective-C, Java, Fortran,
  102. and Ada.
  103.  
  104.  The abbreviation "GCC" has multiple meanings in common use.  The
  105. current official meaning is "GNU Compiler Collection", which refers
  106. generically to the complete suite of tools.  The name historically stood
  107. for "GNU C Compiler", and this usage is still common when the emphasis
  108. is on compiling C programs.  Finally, the name is also used when
  109. speaking of the "language-independent" component of GCC: code shared
  110. among the compilers for all supported languages.
  111.  
  112.  The language-independent component of GCC includes the majority of the
  113. optimizers, as well as the "back ends" that generate machine code for
  114. various processors.
  115.  
  116.  The part of a compiler that is specific to a particular language is
  117. called the "front end".  In addition to the front ends that are
  118. integrated components of GCC, there are several other front ends that
  119. are maintained separately.  These support languages such as Pascal,
  120. Mercury, and COBOL.  To use these, they must be built together with GCC
  121. proper.
  122.  
  123.  Most of the compilers for languages other than C have their own names.
  124. The C++ compiler is G++, the Ada compiler is GNAT, and so on.  When we
  125. talk about compiling one of those languages, we might refer to that
  126. compiler by its own name, or as GCC.  Either is correct.
  127.  
  128.  Historically, compilers for many languages, including C++ and Fortran,
  129. have been implemented as "preprocessors" which emit another high level
  130. language such as C.  None of the compilers included in GCC are
  131. implemented this way; they all generate machine code directly.  This
  132. sort of preprocessor should not be confused with the "C preprocessor",
  133. which is an integral feature of the C, C++, and Objective-C languages.
  134.  
  135. 
  136. File: gcc,  Node: Standards,  Next: Invoking GCC,  Prev: G++ and GCC,  Up: Top
  137.  
  138. 2 Language Standards Supported by GCC
  139. *************************************
  140.  
  141. For each language compiled by GCC for which there is a standard, GCC
  142. attempts to follow one or more versions of that standard, possibly with
  143. some exceptions, and possibly with some extensions.
  144.  
  145.  GCC supports three versions of the C standard, although support for
  146. the most recent version is not yet complete.
  147.  
  148.  The original ANSI C standard (X3.159-1989) was ratified in 1989 and
  149. published in 1990.  This standard was ratified as an ISO standard
  150. (ISO/IEC 9899:1990) later in 1990.  There were no technical differences
  151. between these publications, although the sections of the ANSI standard
  152. were renumbered and became clauses in the ISO standard.  This standard,
  153. in both its forms, is commonly known as "C89", or occasionally as
  154. "C90", from the dates of ratification.  The ANSI standard, but not the
  155. ISO standard, also came with a Rationale document.  To select this
  156. standard in GCC, use one of the options `-ansi', `-std=c89' or
  157. `-std=iso9899:1990'; to obtain all the diagnostics required by the
  158. standard, you should also specify `-pedantic' (or `-pedantic-errors' if
  159. you want them to be errors rather than warnings).  *Note Options
  160. Controlling C Dialect: C Dialect Options.
  161.  
  162.  Errors in the 1990 ISO C standard were corrected in two Technical
  163. Corrigenda published in 1994 and 1996.  GCC does not support the
  164. uncorrected version.
  165.  
  166.  An amendment to the 1990 standard was published in 1995.  This
  167. amendment added digraphs and `__STDC_VERSION__' to the language, but
  168. otherwise concerned the library.  This amendment is commonly known as
  169. "AMD1"; the amended standard is sometimes known as "C94" or "C95".  To
  170. select this standard in GCC, use the option `-std=iso9899:199409'
  171. (with, as for other standard versions, `-pedantic' to receive all
  172. required diagnostics).
  173.  
  174.  A new edition of the ISO C standard was published in 1999 as ISO/IEC
  175. 9899:1999, and is commonly known as "C99".  GCC has incomplete support
  176. for this standard version; see
  177. `http://gcc.gnu.org/gcc-3.4/c99status.html' for details.  To select this
  178. standard, use `-std=c99' or `-std=iso9899:1999'.  (While in
  179. development, drafts of this standard version were referred to as "C9X".)
  180.  
  181.  Errors in the 1999 ISO C standard were corrected in a Technical
  182. Corrigendum published in 2001.  GCC does not support the uncorrected
  183. version.
  184.  
  185.  By default, GCC provides some extensions to the C language that on
  186. rare occasions conflict with the C standard.  *Note Extensions to the C
  187. Language Family: C Extensions.  Use of the `-std' options listed above
  188. will disable these extensions where they conflict with the C standard
  189. version selected.  You may also select an extended version of the C
  190. language explicitly with `-std=gnu89' (for C89 with GNU extensions) or
  191. `-std=gnu99' (for C99 with GNU extensions).  The default, if no C
  192. language dialect options are given, is `-std=gnu89'; this will change to
  193. `-std=gnu99' in some future release when the C99 support is complete.
  194. Some features that are part of the C99 standard are accepted as
  195. extensions in C89 mode.
  196.  
  197.  The ISO C standard defines (in clause 4) two classes of conforming
  198. implementation.  A "conforming hosted implementation" supports the
  199. whole standard including all the library facilities; a "conforming
  200. freestanding implementation" is only required to provide certain
  201. library facilities: those in `<float.h>', `<limits.h>', `<stdarg.h>',
  202. and `<stddef.h>'; since AMD1, also those in `<iso646.h>'; and in C99,
  203. also those in `<stdbool.h>' and `<stdint.h>'.  In addition, complex
  204. types, added in C99, are not required for freestanding implementations.
  205. The standard also defines two environments for programs, a
  206. "freestanding environment", required of all implementations and which
  207. may not have library facilities beyond those required of freestanding
  208. implementations, where the handling of program startup and termination
  209. are implementation-defined, and a "hosted environment", which is not
  210. required, in which all the library facilities are provided and startup
  211. is through a function `int main (void)' or `int main (int, char *[])'.
  212. An OS kernel would be a freestanding environment; a program using the
  213. facilities of an operating system would normally be in a hosted
  214. implementation.
  215.  
  216.  GCC aims towards being usable as a conforming freestanding
  217. implementation, or as the compiler for a conforming hosted
  218. implementation.  By default, it will act as the compiler for a hosted
  219. implementation, defining `__STDC_HOSTED__' as `1' and presuming that
  220. when the names of ISO C functions are used, they have the semantics
  221. defined in the standard.  To make it act as a conforming freestanding
  222. implementation for a freestanding environment, use the option
  223. `-ffreestanding'; it will then define `__STDC_HOSTED__' to `0' and not
  224. make assumptions about the meanings of function names from the standard
  225. library, with exceptions noted below.  To build an OS kernel, you may
  226. well still need to make your own arrangements for linking and startup.
  227. *Note Options Controlling C Dialect: C Dialect Options.
  228.  
  229.  GCC does not provide the library facilities required only of hosted
  230. implementations, nor yet all the facilities required by C99 of
  231. freestanding implementations; to use the facilities of a hosted
  232. environment, you will need to find them elsewhere (for example, in the
  233. GNU C library).  *Note Standard Libraries: Standard Libraries.
  234.  
  235.  Most of the compiler support routines used by GCC are present in
  236. `libgcc', but there are a few exceptions.  GCC requires the
  237. freestanding environment provide `memcpy', `memmove', `memset' and
  238. `memcmp'.  Some older ports of GCC are configured to use the BSD
  239. `bcopy', `bzero' and `bcmp' functions instead, but this is deprecated
  240. for new ports.  Finally, if `__builtin_trap' is used, and the target
  241. does not implement the `trap' pattern, then GCC will emit a call to
  242. `abort'.
  243.  
  244.  For references to Technical Corrigenda, Rationale documents and
  245. information concerning the history of C that is available online, see
  246. `http://gcc.gnu.org/readings.html'
  247.  
  248.  There is no formal written standard for Objective-C.  The most
  249. authoritative manual is "Object-Oriented Programming and the
  250. Objective-C Language", available at a number of web sites
  251.  
  252.    * `http://developer.apple.com/techpubs/macosx/Cocoa/ObjectiveC/' is
  253.      a recent version
  254.  
  255.    * `http://www.toodarkpark.org/computers/objc/' is an older example
  256.  
  257.    * `http://www.gnustep.org' has additional useful information
  258.  
  259.  There is no standard for treelang, which is a sample language front end
  260. for GCC. Its only purpose is as a sample for people wishing to write a
  261. new language for GCC. The language is documented in
  262. `gcc/treelang/treelang.texi' which can be turned into info or HTML
  263. format.
  264.  
  265.  *Note GNAT Reference Manual: (gnat_rm)Top, for information on standard
  266. conformance and compatibility of the Ada compiler.
  267.  
  268.  *Note The GNU Fortran Language: (g77)Language, for details of the
  269. Fortran language supported by GCC.
  270.  
  271.  *Note Compatibility with the Java Platform: (gcj)Compatibility, for
  272. details of compatibility between `gcj' and the Java Platform.
  273.  
  274. 
  275. File: gcc,  Node: Invoking GCC,  Next: C Implementation,  Prev: Standards,  Up: Top
  276.  
  277. 3 GCC Command Options
  278. *********************
  279.  
  280. When you invoke GCC, it normally does preprocessing, compilation,
  281. assembly and linking.  The "overall options" allow you to stop this
  282. process at an intermediate stage.  For example, the `-c' option says
  283. not to run the linker.  Then the output consists of object files output
  284. by the assembler.
  285.  
  286.  Other options are passed on to one stage of processing.  Some options
  287. control the preprocessor and others the compiler itself.  Yet other
  288. options control the assembler and linker; most of these are not
  289. documented here, since you rarely need to use any of them.
  290.  
  291.  Most of the command line options that you can use with GCC are useful
  292. for C programs; when an option is only useful with another language
  293. (usually C++), the explanation says so explicitly.  If the description
  294. for a particular option does not mention a source language, you can use
  295. that option with all supported languages.
  296.  
  297.  *Note Compiling C++ Programs: Invoking G++, for a summary of special
  298. options for compiling C++ programs.
  299.  
  300.  The `gcc' program accepts options and file names as operands.  Many
  301. options have multi-letter names; therefore multiple single-letter
  302. options may _not_ be grouped: `-dr' is very different from `-d -r'.
  303.  
  304.  You can mix options and other arguments.  For the most part, the order
  305. you use doesn't matter.  Order does matter when you use several options
  306. of the same kind; for example, if you specify `-L' more than once, the
  307. directories are searched in the order specified.
  308.  
  309.  Many options have long names starting with `-f' or with `-W'--for
  310. example, `-fforce-mem', `-fstrength-reduce', `-Wformat' and so on.
  311. Most of these have both positive and negative forms; the negative form
  312. of `-ffoo' would be `-fno-foo'.  This manual documents only one of
  313. these two forms, whichever one is not the default.
  314.  
  315.  *Note Option Index::, for an index to GCC's options.
  316.  
  317. * Menu:
  318.  
  319. * Option Summary::    Brief list of all options, without explanations.
  320. * Overall Options::     Controlling the kind of output:
  321.                         an executable, object files, assembler files,
  322.                         or preprocessed source.
  323. * Invoking G++::    Compiling C++ programs.
  324. * C Dialect Options::   Controlling the variant of C language compiled.
  325. * C++ Dialect Options:: Variations on C++.
  326. * Objective-C Dialect Options:: Variations on Objective-C.
  327. * Language Independent Options:: Controlling how diagnostics should be
  328.                         formatted.
  329. * Warning Options::     How picky should the compiler be?
  330. * Debugging Options::   Symbol tables, measurements, and debugging dumps.
  331. * Optimize Options::    How much optimization?
  332. * Preprocessor Options:: Controlling header files and macro definitions.
  333.                          Also, getting dependency information for Make.
  334. * Assembler Options::   Passing options to the assembler.
  335. * Link Options::        Specifying libraries and so on.
  336. * Directory Options::   Where to find header files and libraries.
  337.                         Where to find the compiler executable files.
  338. * Spec Files::          How to pass switches to sub-processes.
  339. * Target Options::      Running a cross-compiler, or an old version of GCC.
  340. * Submodel Options::    Specifying minor hardware or convention variations,
  341.                         such as 68010 vs 68020.
  342. * Code Gen Options::    Specifying conventions for function calls, data layout
  343.                         and register usage.
  344. * Environment Variables:: Env vars that affect GCC.
  345. * Precompiled Headers:: Compiling a header once, and using it many times.
  346. * Running Protoize::    Automatically adding or removing function prototypes.
  347.  
  348. 
  349. File: gcc,  Node: Option Summary,  Next: Overall Options,  Up: Invoking GCC
  350.  
  351. 3.1 Option Summary
  352. ==================
  353.  
  354. Here is a summary of all the options, grouped by type.  Explanations are
  355. in the following sections.
  356.  
  357. _Overall Options_
  358.      *Note Options Controlling the Kind of Output: Overall Options.
  359.           -c  -S  -E  -o FILE  -pipe  -pass-exit-codes
  360.           -x LANGUAGE  -v  -###  --help  --target-help  --version
  361.  
  362. _C Language Options_
  363.      *Note Options Controlling C Dialect: C Dialect Options.
  364.           -ansi  -std=STANDARD  -aux-info FILENAME
  365.           -fno-asm  -fno-builtin  -fno-builtin-FUNCTION
  366.           -fhosted  -ffreestanding  -fms-extensions
  367.           -trigraphs  -no-integrated-cpp  -traditional  -traditional-cpp
  368.           -fallow-single-precision  -fcond-mismatch
  369.           -fsigned-bitfields  -fsigned-char
  370.           -funsigned-bitfields  -funsigned-char
  371.           -fwritable-strings
  372.  
  373. _C++ Language Options_
  374.      *Note Options Controlling C++ Dialect: C++ Dialect Options.
  375.           -fabi-version=N  -fno-access-control  -fcheck-new
  376.           -fconserve-space  -fno-const-strings
  377.           -fno-elide-constructors
  378.           -fno-enforce-eh-specs
  379.           -ffor-scope  -fno-for-scope  -fno-gnu-keywords
  380.           -fno-implicit-templates
  381.           -fno-implicit-inline-templates
  382.           -fno-implement-inlines  -fms-extensions
  383.           -fno-nonansi-builtins  -fno-operator-names
  384.           -fno-optional-diags  -fpermissive
  385.           -frepo  -fno-rtti  -fstats  -ftemplate-depth-N
  386.           -fuse-cxa-atexit  -fno-weak  -nostdinc++
  387.           -fno-default-inline  -Wabi  -Wctor-dtor-privacy
  388.           -Wnon-virtual-dtor  -Wreorder
  389.           -Weffc++  -Wno-deprecated
  390.           -Wno-non-template-friend  -Wold-style-cast
  391.           -Woverloaded-virtual  -Wno-pmf-conversions
  392.           -Wsign-promo  -Wsynth
  393.  
  394. _Objective-C Language Options_
  395.      *Note Options Controlling Objective-C Dialect: Objective-C Dialect
  396.      Options.
  397.           -fconstant-string-class=CLASS-NAME
  398.           -fgnu-runtime  -fnext-runtime
  399.           -fno-nil-receivers
  400.           -fobjc-exceptions
  401.           -freplace-objc-classes
  402.           -fzero-link
  403.           -gen-decls
  404.           -Wno-protocol  -Wselector -Wundeclared-selector
  405.  
  406. _Language Independent Options_
  407.      *Note Options to Control Diagnostic Messages Formatting: Language
  408.      Independent Options.
  409.           -fmessage-length=N
  410.           -fdiagnostics-show-location=[once|every-line]
  411.  
  412. _Warning Options_
  413.      *Note Options to Request or Suppress Warnings: Warning Options.
  414.           -fsyntax-only  -pedantic  -pedantic-errors
  415.           -w  -Wextra  -Wall  -Waggregate-return
  416.           -Wcast-align  -Wcast-qual  -Wchar-subscripts  -Wcomment
  417.           -Wconversion  -Wno-deprecated-declarations
  418.           -Wdisabled-optimization  -Wno-div-by-zero  -Wendif-labels
  419.           -Werror  -Werror-implicit-function-declaration
  420.           -Wfloat-equal  -Wformat  -Wformat=2
  421.           -Wno-format-extra-args -Wformat-nonliteral
  422.           -Wformat-security  -Wformat-y2k
  423.           -Wimplicit  -Wimplicit-function-declaration  -Wimplicit-int
  424.           -Wimport  -Wno-import  -Winit-self  -Winline
  425.           -Wno-invalid-offsetof  -Winvalid-pch
  426.           -Wlarger-than-LEN  -Wlong-long
  427.           -Wmain  -Wmissing-braces
  428.           -Wmissing-format-attribute  -Wmissing-noreturn
  429.           -Wno-multichar  -Wnonnull  -Wpacked  -Wpadded
  430.           -Wparentheses  -Wpointer-arith  -Wredundant-decls
  431.           -Wreturn-type  -Wsequence-point  -Wshadow
  432.           -Wsign-compare  -Wstrict-aliasing
  433.           -Wswitch  -Wswitch-default  -Wswitch-enum
  434.           -Wsystem-headers  -Wtrigraphs  -Wundef  -Wuninitialized
  435.           -Wunknown-pragmas  -Wunreachable-code
  436.           -Wunused  -Wunused-function  -Wunused-label  -Wunused-parameter
  437.           -Wunused-value  -Wunused-variable  -Wwrite-strings
  438.  
  439. _C-only Warning Options_
  440.           -Wbad-function-cast  -Wmissing-declarations
  441.           -Wmissing-prototypes  -Wnested-externs  -Wold-style-definition
  442.           -Wstrict-prototypes  -Wtraditional
  443.           -Wdeclaration-after-statement
  444.  
  445. _Debugging Options_
  446.      *Note Options for Debugging Your Program or GCC: Debugging Options.
  447.           -dLETTERS  -dumpspecs  -dumpmachine  -dumpversion
  448.           -fdump-unnumbered  -fdump-translation-unit[-N]
  449.           -fdump-class-hierarchy[-N]
  450.           -fdump-tree-original[-N]
  451.           -fdump-tree-optimized[-N]
  452.           -fdump-tree-inlined[-N]
  453.           -feliminate-dwarf2-dups -feliminate-unused-debug-types
  454.           -feliminate-unused-debug-symbols -fmem-report -fprofile-arcs
  455.           -frandom-seed=STRING -fsched-verbose=N
  456.           -ftest-coverage  -ftime-report
  457.           -g  -gLEVEL  -gcoff -gdwarf-2
  458.           -ggdb  -gstabs  -gstabs+  -gvms  -gxcoff  -gxcoff+
  459.           -p  -pg  -print-file-name=LIBRARY  -print-libgcc-file-name
  460.           -print-multi-directory  -print-multi-lib
  461.           -print-prog-name=PROGRAM  -print-search-dirs  -Q
  462.           -save-temps  -time
  463.  
  464. _Optimization Options_
  465.      *Note Options that Control Optimization: Optimize Options.
  466.           -falign-functions=N  -falign-jumps=N
  467.           -falign-labels=N  -falign-loops=N
  468.           -fbranch-probabilities -fprofile-values -fvpt -fbranch-target-load-optimize
  469.           -fbranch-target-load-optimize2 -fcaller-saves  -fcprop-registers
  470.           -fcse-follow-jumps  -fcse-skip-blocks  -fdata-sections
  471.           -fdelayed-branch  -fdelete-null-pointer-checks
  472.           -fexpensive-optimizations  -ffast-math  -ffloat-store
  473.           -fforce-addr  -fforce-mem  -ffunction-sections
  474.           -fgcse  -fgcse-lm  -fgcse-sm  -fgcse-las  -floop-optimize
  475.           -fcrossjumping  -fif-conversion  -fif-conversion2
  476.           -finline-functions  -finline-limit=N  -fkeep-inline-functions
  477.           -fkeep-static-consts  -fmerge-constants  -fmerge-all-constants
  478.           -fmove-all-movables  -fnew-ra  -fno-branch-count-reg
  479.           -fno-default-inline  -fno-defer-pop
  480.           -fno-function-cse  -fno-guess-branch-probability
  481.           -fno-inline  -fno-math-errno  -fno-peephole  -fno-peephole2
  482.           -funsafe-math-optimizations  -ffinite-math-only
  483.           -fno-trapping-math  -fno-zero-initialized-in-bss
  484.           -fomit-frame-pointer  -foptimize-register-move
  485.           -foptimize-sibling-calls  -fprefetch-loop-arrays
  486.           -fprofile-generate -fprofile-use
  487.           -freduce-all-givs  -fregmove  -frename-registers
  488.           -freorder-blocks  -freorder-functions
  489.           -frerun-cse-after-loop  -frerun-loop-opt
  490.           -frounding-math -fschedule-insns  -fschedule-insns2
  491.           -fno-sched-interblock  -fno-sched-spec  -fsched-spec-load
  492.           -fsched-spec-load-dangerous
  493.           -fsched-stalled-insns=N -sched-stalled-insns-dep=N
  494.           -fsched2-use-superblocks
  495.           -fsched2-use-traces  -fsignaling-nans
  496.           -fsingle-precision-constant
  497.           -fstrength-reduce  -fstrict-aliasing  -ftracer  -fthread-jumps
  498.           -funroll-all-loops  -funroll-loops  -fpeel-loops
  499.           -funswitch-loops  -fold-unroll-loops  -fold-unroll-all-loops
  500.           --param NAME=VALUE
  501.           -O  -O0  -O1  -O2  -O3  -Os
  502.  
  503. _Preprocessor Options_
  504.      *Note Options Controlling the Preprocessor: Preprocessor Options.
  505.           -AQUESTION=ANSWER
  506.           -A-QUESTION[=ANSWER]
  507.           -C  -dD  -dI  -dM  -dN
  508.           -DMACRO[=DEFN]  -E  -H
  509.           -idirafter DIR
  510.           -include FILE  -imacros FILE
  511.           -iprefix FILE  -iwithprefix DIR
  512.           -iwithprefixbefore DIR  -isystem DIR
  513.           -M  -MM  -MF  -MG  -MP  -MQ  -MT  -nostdinc
  514.           -P  -fworking-directory  -remap
  515.           -trigraphs  -undef  -UMACRO  -Wp,OPTION
  516.           -Xpreprocessor OPTION
  517.  
  518. _Assembler Option_
  519.      *Note Passing Options to the Assembler: Assembler Options.
  520.           -Wa,OPTION  -Xassembler OPTION
  521.  
  522. _Linker Options_
  523.      *Note Options for Linking: Link Options.
  524.           OBJECT-FILE-NAME  -lLIBRARY
  525.           -nostartfiles  -nodefaultlibs  -nostdlib -pie
  526.           -s  -static  -static-libgcc  -shared  -shared-libgcc  -symbolic
  527.           -Wl,OPTION  -Xlinker OPTION
  528.           -u SYMBOL
  529.  
  530. _Directory Options_
  531.      *Note Options for Directory Search: Directory Options.
  532.           -BPREFIX  -IDIR  -I-  -LDIR  -specs=FILE
  533.  
  534. _Target Options_
  535.      *Note Target Options::.
  536.           -V VERSION  -b MACHINE
  537.  
  538. _Machine Dependent Options_
  539.      *Note Hardware Models and Configurations: Submodel Options.
  540.  
  541.      _M680x0 Options_
  542.           -m68000  -m68020  -m68020-40  -m68020-60  -m68030  -m68040
  543.           -m68060  -mcpu32  -m5200  -m68881  -mbitfield  -mc68000  -mc68020
  544.           -mnobitfield  -mrtd  -mshort  -msoft-float  -mpcrel
  545.           -malign-int  -mstrict-align  -msep-data  -mno-sep-data
  546.           -mshared-library-id=n  -mid-shared-library  -mno-id-shared-library
  547.  
  548.      _M68hc1x Options_
  549.           -m6811  -m6812  -m68hc11  -m68hc12   -m68hcs12
  550.           -mauto-incdec  -minmax  -mlong-calls  -mshort
  551.           -msoft-reg-count=COUNT
  552.  
  553.      _VAX Options_
  554.           -mg  -mgnu  -munix
  555.  
  556.      _SPARC Options_
  557.           -mcpu=CPU-TYPE
  558.           -mtune=CPU-TYPE
  559.           -mcmodel=CODE-MODEL
  560.           -m32  -m64  -mapp-regs  -mno-app-regs
  561.           -mfaster-structs  -mno-faster-structs
  562.           -mflat  -mno-flat  -mfpu  -mno-fpu
  563.           -mhard-float  -msoft-float
  564.           -mhard-quad-float  -msoft-quad-float
  565.           -mimpure-text  -mno-impure-text  -mlittle-endian
  566.           -mstack-bias  -mno-stack-bias
  567.           -munaligned-doubles  -mno-unaligned-doubles
  568.           -mv8plus  -mno-v8plus  -mvis  -mno-vis
  569.           -mcypress  -mf930  -mf934
  570.           -msparclite  -msupersparc  -mv8
  571.  
  572.      _ARM Options_
  573.           -mapcs-frame  -mno-apcs-frame
  574.           -mapcs-26  -mapcs-32
  575.           -mapcs-stack-check  -mno-apcs-stack-check
  576.           -mapcs-float  -mno-apcs-float
  577.           -mapcs-reentrant  -mno-apcs-reentrant
  578.           -msched-prolog  -mno-sched-prolog
  579.           -mlittle-endian  -mbig-endian  -mwords-little-endian
  580.           -malignment-traps  -mno-alignment-traps
  581.           -msoft-float  -mhard-float  -mfpe
  582.           -mthumb-interwork  -mno-thumb-interwork
  583.           -mcpu=NAME  -march=NAME  -mfpe=NAME
  584.           -mstructure-size-boundary=N
  585.           -mabort-on-noreturn
  586.           -mlong-calls  -mno-long-calls
  587.           -msingle-pic-base  -mno-single-pic-base
  588.           -mpic-register=REG
  589.           -mnop-fun-dllimport
  590.           -mcirrus-fix-invalid-insns -mno-cirrus-fix-invalid-insns
  591.           -mpoke-function-name
  592.           -mthumb  -marm
  593.           -mtpcs-frame  -mtpcs-leaf-frame
  594.           -mcaller-super-interworking  -mcallee-super-interworking
  595.  
  596.      _MN10300 Options_
  597.           -mmult-bug  -mno-mult-bug
  598.           -mam33  -mno-am33
  599.           -mam33-2  -mno-am33-2
  600.           -mno-crt0  -mrelax
  601.  
  602.      _M32R/D Options_
  603.           -m32r2 -m32rx -m32r
  604.           -mdebug
  605.           -malign-loops -mno-align-loops
  606.           -missue-rate=NUMBER
  607.           -mbranch-cost=NUMBER
  608.           -mmodel=CODE-SIZE-MODEL-TYPE
  609.           -msdata=SDATA-TYPE
  610.           -mno-flush-func -mflush-func=NAME
  611.           -mno-flush-trap -mflush-trap=NUMBER
  612.           -G NUM
  613.  
  614.      _RS/6000 and PowerPC Options_
  615.           -mcpu=CPU-TYPE
  616.           -mtune=CPU-TYPE
  617.           -mpower  -mno-power  -mpower2  -mno-power2
  618.           -mpowerpc  -mpowerpc64  -mno-powerpc
  619.           -maltivec  -mno-altivec
  620.           -mpowerpc-gpopt  -mno-powerpc-gpopt
  621.           -mpowerpc-gfxopt  -mno-powerpc-gfxopt
  622.           -mnew-mnemonics  -mold-mnemonics
  623.           -mfull-toc   -mminimal-toc  -mno-fp-in-toc  -mno-sum-in-toc
  624.           -m64  -m32  -mxl-call  -mno-xl-call  -mpe
  625.           -malign-power  -malign-natural
  626.           -msoft-float  -mhard-float  -mmultiple  -mno-multiple
  627.           -mstring  -mno-string  -mupdate  -mno-update
  628.           -mfused-madd  -mno-fused-madd  -mbit-align  -mno-bit-align
  629.           -mstrict-align  -mno-strict-align  -mrelocatable
  630.           -mno-relocatable  -mrelocatable-lib  -mno-relocatable-lib
  631.           -mtoc  -mno-toc  -mlittle  -mlittle-endian  -mbig  -mbig-endian
  632.           -mdynamic-no-pic
  633.           -mprioritize-restricted-insns=PRIORITY
  634.           -msched-costly-dep=DEPENDENCE_TYPE
  635.           -minsert-sched-nops=SCHEME
  636.           -mcall-sysv  -mcall-netbsd
  637.           -maix-struct-return  -msvr4-struct-return
  638.           -mabi=altivec  -mabi=no-altivec
  639.           -mabi=spe  -mabi=no-spe
  640.           -misel=yes  -misel=no
  641.           -mspe=yes  -mspe=no
  642.           -mfloat-gprs=yes  -mfloat-gprs=no
  643.           -mprototype  -mno-prototype
  644.           -msim  -mmvme  -mads  -myellowknife  -memb  -msdata
  645.           -msdata=OPT  -mvxworks  -mwindiss  -G NUM  -pthread
  646.  
  647.      _Darwin Options_
  648.           -all_load  -allowable_client  -arch  -arch_errors_fatal
  649.           -arch_only  -bind_at_load  -bundle  -bundle_loader
  650.           -client_name  -compatibility_version  -current_version
  651.           -dependency-file  -dylib_file  -dylinker_install_name
  652.           -dynamic  -dynamiclib  -exported_symbols_list
  653.           -filelist  -flat_namespace  -force_cpusubtype_ALL
  654.           -force_flat_namespace  -headerpad_max_install_names
  655.           -image_base  -init  -install_name  -keep_private_externs
  656.           -multi_module  -multiply_defined  -multiply_defined_unused
  657.           -noall_load  -nofixprebinding -nomultidefs  -noprebind  -noseglinkedit
  658.           -pagezero_size  -prebind  -prebind_all_twolevel_modules
  659.           -private_bundle  -read_only_relocs  -sectalign
  660.           -sectobjectsymbols  -whyload  -seg1addr
  661.           -sectcreate  -sectobjectsymbols  -sectorder
  662.           -seg_addr_table  -seg_addr_table_filename  -seglinkedit
  663.           -segprot  -segs_read_only_addr  -segs_read_write_addr
  664.           -single_module  -static  -sub_library  -sub_umbrella
  665.           -twolevel_namespace  -umbrella  -undefined
  666.           -unexported_symbols_list  -weak_reference_mismatches
  667.           -whatsloaded
  668.  
  669.      _MIPS Options_
  670.           -EL  -EB  -march=ARCH  -mtune=ARCH
  671.           -mips1  -mips2  -mips3  -mips4  -mips32  -mips32r2  -mips64
  672.           -mips16  -mno-mips16  -mabi=ABI  -mabicalls  -mno-abicalls
  673.           -mxgot  -mno-xgot  -membedded-pic  -mno-embedded-pic
  674.           -mgp32  -mgp64  -mfp32  -mfp64  -mhard-float  -msoft-float
  675.           -msingle-float  -mdouble-float  -mint64  -mlong64  -mlong32
  676.           -GNUM  -membedded-data  -mno-embedded-data
  677.           -muninit-const-in-rodata  -mno-uninit-const-in-rodata
  678.           -msplit-addresses  -mno-split-addresses
  679.           -mexplicit-relocs  -mno-explicit-relocs
  680.           -mrnames  -mno-rnames
  681.           -mcheck-zero-division  -mno-check-zero-division
  682.           -mmemcpy  -mno-memcpy  -mlong-calls  -mno-long-calls
  683.           -mmad  -mno-mad  -mfused-madd  -mno-fused-madd  -nocpp
  684.           -mfix-sb1  -mno-fix-sb1  -mflush-func=FUNC
  685.           -mno-flush-func  -mbranch-likely  -mno-branch-likely
  686.  
  687.      _i386 and x86-64 Options_
  688.           -mtune=CPU-TYPE  -march=CPU-TYPE
  689.           -mfpmath=UNIT
  690.           -masm=DIALECT  -mno-fancy-math-387
  691.           -mno-fp-ret-in-387  -msoft-float  -msvr3-shlib
  692.           -mno-wide-multiply  -mrtd  -malign-double
  693.           -mpreferred-stack-boundary=NUM
  694.           -mmmx  -msse  -msse2 -msse3 -m3dnow
  695.           -mthreads  -mno-align-stringops  -minline-all-stringops
  696.           -mpush-args  -maccumulate-outgoing-args  -m128bit-long-double
  697.           -m96bit-long-double  -mregparm=NUM  -momit-leaf-frame-pointer
  698.           -mno-red-zone -mno-tls-direct-seg-refs
  699.           -mcmodel=CODE-MODEL
  700.           -m32  -m64
  701.  
  702.      _HPPA Options_
  703.           -march=ARCHITECTURE-TYPE
  704.           -mbig-switch  -mdisable-fpregs  -mdisable-indexing
  705.           -mfast-indirect-calls  -mgas  -mgnu-ld   -mhp-ld
  706.           -mjump-in-delay -mlinker-opt -mlong-calls
  707.           -mlong-load-store  -mno-big-switch  -mno-disable-fpregs
  708.           -mno-disable-indexing  -mno-fast-indirect-calls  -mno-gas
  709.           -mno-jump-in-delay  -mno-long-load-store
  710.           -mno-portable-runtime  -mno-soft-float
  711.           -mno-space-regs  -msoft-float  -mpa-risc-1-0
  712.           -mpa-risc-1-1  -mpa-risc-2-0  -mportable-runtime
  713.           -mschedule=CPU-TYPE  -mspace-regs  -msio  -mwsio
  714.           -nolibdld  -static  -threads
  715.  
  716.      _Intel 960 Options_
  717.           -mCPU-TYPE  -masm-compat  -mclean-linkage
  718.           -mcode-align  -mcomplex-addr  -mleaf-procedures
  719.           -mic-compat  -mic2.0-compat  -mic3.0-compat
  720.           -mintel-asm  -mno-clean-linkage  -mno-code-align
  721.           -mno-complex-addr  -mno-leaf-procedures
  722.           -mno-old-align  -mno-strict-align  -mno-tail-call
  723.           -mnumerics  -mold-align  -msoft-float  -mstrict-align
  724.           -mtail-call
  725.  
  726.      _DEC Alpha Options_
  727.           -mno-fp-regs  -msoft-float  -malpha-as  -mgas
  728.           -mieee  -mieee-with-inexact  -mieee-conformant
  729.           -mfp-trap-mode=MODE  -mfp-rounding-mode=MODE
  730.           -mtrap-precision=MODE  -mbuild-constants
  731.           -mcpu=CPU-TYPE  -mtune=CPU-TYPE
  732.           -mbwx  -mmax  -mfix  -mcix
  733.           -mfloat-vax  -mfloat-ieee
  734.           -mexplicit-relocs  -msmall-data  -mlarge-data
  735.           -msmall-text  -mlarge-text
  736.           -mmemory-latency=TIME
  737.  
  738.      _DEC Alpha/VMS Options_
  739.           -mvms-return-codes
  740.  
  741.      _H8/300 Options_
  742.           -mrelax  -mh  -ms  -mn  -mint32  -malign-300
  743.  
  744.      _SH Options_
  745.           -m1  -m2  -m2e  -m3  -m3e
  746.           -m4-nofpu  -m4-single-only  -m4-single  -m4
  747.           -m5-64media  -m5-64media-nofpu
  748.           -m5-32media  -m5-32media-nofpu
  749.           -m5-compact  -m5-compact-nofpu
  750.           -mb  -ml  -mdalign  -mrelax
  751.           -mbigtable  -mfmovd  -mhitachi  -mnomacsave
  752.           -mieee  -misize  -mpadstruct  -mspace
  753.           -mprefergot  -musermode
  754.  
  755.      _System V Options_
  756.           -Qy  -Qn  -YP,PATHS  -Ym,DIR
  757.  
  758.      _ARC Options_
  759.           -EB  -EL
  760.           -mmangle-cpu  -mcpu=CPU  -mtext=TEXT-SECTION
  761.           -mdata=DATA-SECTION  -mrodata=READONLY-DATA-SECTION
  762.  
  763.      _TMS320C3x/C4x Options_
  764.           -mcpu=CPU  -mbig  -msmall  -mregparm  -mmemparm
  765.           -mfast-fix  -mmpyi  -mbk  -mti  -mdp-isr-reload
  766.           -mrpts=COUNT  -mrptb  -mdb  -mloop-unsigned
  767.           -mparallel-insns  -mparallel-mpy  -mpreserve-float
  768.  
  769.      _V850 Options_
  770.           -mlong-calls  -mno-long-calls  -mep  -mno-ep
  771.           -mprolog-function  -mno-prolog-function  -mspace
  772.           -mtda=N  -msda=N  -mzda=N
  773.           -mapp-regs  -mno-app-regs
  774.           -mdisable-callt  -mno-disable-callt
  775.           -mv850e1
  776.           -mv850e
  777.           -mv850  -mbig-switch
  778.  
  779.      _NS32K Options_
  780.           -m32032  -m32332  -m32532  -m32081  -m32381
  781.           -mmult-add  -mnomult-add  -msoft-float  -mrtd  -mnortd
  782.           -mregparam  -mnoregparam  -msb  -mnosb
  783.           -mbitfield  -mnobitfield  -mhimem  -mnohimem
  784.  
  785.      _AVR Options_
  786.           -mmcu=MCU  -msize  -minit-stack=N  -mno-interrupts
  787.           -mcall-prologues  -mno-tablejump  -mtiny-stack
  788.  
  789.      _MCore Options_
  790.           -mhardlit  -mno-hardlit  -mdiv  -mno-div  -mrelax-immediates
  791.           -mno-relax-immediates  -mwide-bitfields  -mno-wide-bitfields
  792.           -m4byte-functions  -mno-4byte-functions  -mcallgraph-data
  793.           -mno-callgraph-data  -mslow-bytes  -mno-slow-bytes  -mno-lsim
  794.           -mlittle-endian  -mbig-endian  -m210  -m340  -mstack-increment
  795.  
  796.      _MMIX Options_
  797.           -mlibfuncs  -mno-libfuncs  -mepsilon  -mno-epsilon  -mabi=gnu
  798.           -mabi=mmixware  -mzero-extend  -mknuthdiv  -mtoplevel-symbols
  799.           -melf  -mbranch-predict  -mno-branch-predict  -mbase-addresses
  800.           -mno-base-addresses  -msingle-exit  -mno-single-exit
  801.  
  802.      _IA-64 Options_
  803.           -mbig-endian  -mlittle-endian  -mgnu-as  -mgnu-ld  -mno-pic
  804.           -mvolatile-asm-stop  -mb-step  -mregister-names  -mno-sdata
  805.           -mconstant-gp  -mauto-pic  -minline-float-divide-min-latency
  806.           -minline-float-divide-max-throughput
  807.           -minline-int-divide-min-latency
  808.           -minline-int-divide-max-throughput  -mno-dwarf2-asm
  809.           -mfixed-range=REGISTER-RANGE
  810.  
  811.      _D30V Options_
  812.           -mextmem  -mextmemory  -monchip  -mno-asm-optimize
  813.           -masm-optimize  -mbranch-cost=N  -mcond-exec=N
  814.  
  815.      _S/390 and zSeries Options_
  816.           -mtune=CPU-TYPE  -march=CPU-TYPE
  817.           -mhard-float  -msoft-float  -mbackchain  -mno-backchain
  818.           -msmall-exec  -mno-small-exec  -mmvcle -mno-mvcle
  819.           -m64  -m31  -mdebug  -mno-debug  -mesa  -mzarch  -mfused-madd  -mno-fused-madd
  820.  
  821.      _CRIS Options_
  822.           -mcpu=CPU  -march=CPU  -mtune=CPU
  823.           -mmax-stack-frame=N  -melinux-stacksize=N
  824.           -metrax4  -metrax100  -mpdebug  -mcc-init  -mno-side-effects
  825.           -mstack-align  -mdata-align  -mconst-align
  826.           -m32-bit  -m16-bit  -m8-bit  -mno-prologue-epilogue  -mno-gotplt
  827.           -melf  -maout  -melinux  -mlinux  -sim  -sim2
  828.           -mmul-bug-workaround  -mno-mul-bug-workaround
  829.  
  830.      _PDP-11 Options_
  831.           -mfpu  -msoft-float  -mac0  -mno-ac0  -m40  -m45  -m10
  832.           -mbcopy  -mbcopy-builtin  -mint32  -mno-int16
  833.           -mint16  -mno-int32  -mfloat32  -mno-float64
  834.           -mfloat64  -mno-float32  -mabshi  -mno-abshi
  835.           -mbranch-expensive  -mbranch-cheap
  836.           -msplit  -mno-split  -munix-asm  -mdec-asm
  837.  
  838.      _Xstormy16 Options_
  839.           -msim
  840.  
  841.      _Xtensa Options_
  842.           -mconst16 -mno-const16
  843.           -mfused-madd  -mno-fused-madd
  844.           -mtext-section-literals  -mno-text-section-literals
  845.           -mtarget-align  -mno-target-align
  846.           -mlongcalls  -mno-longcalls
  847.  
  848.      _FRV Options_
  849.           -mgpr-32  -mgpr-64  -mfpr-32  -mfpr-64
  850.           -mhard-float  -msoft-float
  851.           -malloc-cc  -mfixed-cc  -mdword  -mno-dword
  852.           -mdouble  -mno-double
  853.           -mmedia  -mno-media  -mmuladd  -mno-muladd
  854.           -mlibrary-pic  -macc-4 -macc-8
  855.           -mpack  -mno-pack  -mno-eflags  -mcond-move  -mno-cond-move
  856.           -mscc  -mno-scc  -mcond-exec  -mno-cond-exec
  857.           -mvliw-branch  -mno-vliw-branch
  858.           -mmulti-cond-exec  -mno-multi-cond-exec  -mnested-cond-exec
  859.           -mno-nested-cond-exec  -mtomcat-stats
  860.           -mcpu=CPU
  861.  
  862. _Code Generation Options_
  863.      *Note Options for Code Generation Conventions: Code Gen Options.
  864.           -fcall-saved-REG  -fcall-used-REG
  865.           -ffixed-REG  -fexceptions
  866.           -fnon-call-exceptions  -funwind-tables
  867.           -fasynchronous-unwind-tables
  868.           -finhibit-size-directive  -finstrument-functions
  869.           -fno-common  -fno-ident
  870.           -fpcc-struct-return  -fpic  -fPIC -fpie -fPIE
  871.           -freg-struct-return  -fshared-data  -fshort-enums
  872.           -fshort-double  -fshort-wchar
  873.           -fverbose-asm  -fpack-struct  -fstack-check
  874.           -fstack-limit-register=REG  -fstack-limit-symbol=SYM
  875.           -fargument-alias  -fargument-noalias
  876.           -fargument-noalias-global  -fleading-underscore
  877.           -ftls-model=MODEL
  878.           -ftrapv  -fwrapv  -fbounds-check
  879.  
  880.  
  881. * Menu:
  882.  
  883. * Overall Options::     Controlling the kind of output:
  884.                         an executable, object files, assembler files,
  885.                         or preprocessed source.
  886. * C Dialect Options::   Controlling the variant of C language compiled.
  887. * C++ Dialect Options:: Variations on C++.
  888. * Objective-C Dialect Options:: Variations on Objective-C.
  889. * Language Independent Options:: Controlling how diagnostics should be
  890.                         formatted.
  891. * Warning Options::     How picky should the compiler be?
  892. * Debugging Options::   Symbol tables, measurements, and debugging dumps.
  893. * Optimize Options::    How much optimization?
  894. * Preprocessor Options:: Controlling header files and macro definitions.
  895.                          Also, getting dependency information for Make.
  896. * Assembler Options::   Passing options to the assembler.
  897. * Link Options::        Specifying libraries and so on.
  898. * Directory Options::   Where to find header files and libraries.
  899.                         Where to find the compiler executable files.
  900. * Spec Files::          How to pass switches to sub-processes.
  901. * Target Options::      Running a cross-compiler, or an old version of GCC.
  902.  
  903. 
  904. File: gcc,  Node: Overall Options,  Next: Invoking G++,  Prev: Option Summary,  Up: Invoking GCC
  905.  
  906. 3.2 Options Controlling the Kind of Output
  907. ==========================================
  908.  
  909. Compilation can involve up to four stages: preprocessing, compilation
  910. proper, assembly and linking, always in that order.  GCC is capable of
  911. preprocessing and compiling several files either into several assembler
  912. input files, or into one assembler input file; then each assembler
  913. input file produces an object file, and linking combines all the object
  914. files (those newly compiled, and those specified as input) into an
  915. executable file.
  916.  
  917.  For any given input file, the file name suffix determines what kind of
  918. compilation is done:
  919.  
  920. `FILE.c'
  921.      C source code which must be preprocessed.
  922.  
  923. `FILE.i'
  924.      C source code which should not be preprocessed.
  925.  
  926. `FILE.ii'
  927.      C++ source code which should not be preprocessed.
  928.  
  929. `FILE.m'
  930.      Objective-C source code.  Note that you must link with the library
  931.      `libobjc.a' to make an Objective-C program work.
  932.  
  933. `FILE.mi'
  934.      Objective-C source code which should not be preprocessed.
  935.  
  936. `FILE.h'
  937.      C or C++ header file to be turned into a precompiled header.
  938.  
  939. `FILE.cc'
  940. `FILE.cp'
  941. `FILE.cxx'
  942. `FILE.cpp'
  943. `FILE.CPP'
  944. `FILE.c++'
  945. `FILE.C'
  946.      C++ source code which must be preprocessed.  Note that in `.cxx',
  947.      the last two letters must both be literally `x'.  Likewise, `.C'
  948.      refers to a literal capital C.
  949.  
  950. `FILE.hh'
  951. `FILE.H'
  952.      C++ header file to be turned into a precompiled header.
  953.  
  954. `FILE.f'
  955. `FILE.for'
  956. `FILE.FOR'
  957.      Fortran source code which should not be preprocessed.
  958.  
  959. `FILE.F'
  960. `FILE.fpp'
  961. `FILE.FPP'
  962.      Fortran source code which must be preprocessed (with the
  963.      traditional preprocessor).
  964.  
  965. `FILE.r'
  966.      Fortran source code which must be preprocessed with a RATFOR
  967.      preprocessor (not included with GCC).
  968.  
  969.      *Note Options Controlling the Kind of Output: (g77)Overall
  970.      Options, for more details of the handling of Fortran input files.
  971.  
  972. `FILE.ads'
  973.      Ada source code file which contains a library unit declaration (a
  974.      declaration of a package, subprogram, or generic, or a generic
  975.      instantiation), or a library unit renaming declaration (a package,
  976.      generic, or subprogram renaming declaration).  Such files are also
  977.      called "specs".
  978.  
  979. `FILE.adb'
  980.      Ada source code file containing a library unit body (a subprogram
  981.      or package body).  Such files are also called "bodies".
  982.  
  983. `FILE.s'
  984.      Assembler code.
  985.  
  986. `FILE.S'
  987.      Assembler code which must be preprocessed.
  988.  
  989. `OTHER'
  990.      An object file to be fed straight into linking.  Any file name
  991.      with no recognized suffix is treated this way.
  992.  
  993.  You can specify the input language explicitly with the `-x' option:
  994.  
  995. `-x LANGUAGE'
  996.      Specify explicitly the LANGUAGE for the following input files
  997.      (rather than letting the compiler choose a default based on the
  998.      file name suffix).  This option applies to all following input
  999.      files until the next `-x' option.  Possible values for LANGUAGE
  1000.      are:
  1001.           c  c-header  cpp-output
  1002.           c++  c++-header  c++-cpp-output
  1003.           objective-c  objective-c-header  objc-cpp-output
  1004.           assembler  assembler-with-cpp
  1005.           ada
  1006.           f77  f77-cpp-input  ratfor
  1007.           java
  1008.           treelang
  1009.  
  1010. `-x none'
  1011.      Turn off any specification of a language, so that subsequent files
  1012.      are handled according to their file name suffixes (as they are if
  1013.      `-x' has not been used at all).
  1014.  
  1015. `-pass-exit-codes'
  1016.      Normally the `gcc' program will exit with the code of 1 if any
  1017.      phase of the compiler returns a non-success return code.  If you
  1018.      specify `-pass-exit-codes', the `gcc' program will instead return
  1019.      with numerically highest error produced by any phase that returned
  1020.      an error indication.
  1021.  
  1022.  If you only want some of the stages of compilation, you can use `-x'
  1023. (or filename suffixes) to tell `gcc' where to start, and one of the
  1024. options `-c', `-S', or `-E' to say where `gcc' is to stop.  Note that
  1025. some combinations (for example, `-x cpp-output -E') instruct `gcc' to
  1026. do nothing at all.
  1027.  
  1028. `-c'
  1029.      Compile or assemble the source files, but do not link.  The linking
  1030.      stage simply is not done.  The ultimate output is in the form of an
  1031.      object file for each source file.
  1032.  
  1033.      By default, the object file name for a source file is made by
  1034.      replacing the suffix `.c', `.i', `.s', etc., with `.o'.
  1035.  
  1036.      Unrecognized input files, not requiring compilation or assembly,
  1037.      are ignored.
  1038.  
  1039. `-S'
  1040.      Stop after the stage of compilation proper; do not assemble.  The
  1041.      output is in the form of an assembler code file for each
  1042.      non-assembler input file specified.
  1043.  
  1044.      By default, the assembler file name for a source file is made by
  1045.      replacing the suffix `.c', `.i', etc., with `.s'.
  1046.  
  1047.      Input files that don't require compilation are ignored.
  1048.  
  1049. `-E'
  1050.      Stop after the preprocessing stage; do not run the compiler
  1051.      proper.  The output is in the form of preprocessed source code,
  1052.      which is sent to the standard output.
  1053.  
  1054.      Input files which don't require preprocessing are ignored.
  1055.  
  1056. `-o FILE'
  1057.      Place output in file FILE.  This applies regardless to whatever
  1058.      sort of output is being produced, whether it be an executable file,
  1059.      an object file, an assembler file or preprocessed C code.
  1060.  
  1061.      If you specify `-o' when compiling more than one input file, or
  1062.      you are producing an executable file as output, all the source
  1063.      files on the command line will be compiled at once.
  1064.  
  1065.      If `-o' is not specified, the default is to put an executable file
  1066.      in `a.out', the object file for `SOURCE.SUFFIX' in `SOURCE.o', its
  1067.      assembler file in `SOURCE.s', and all preprocessed C source on
  1068.      standard output.
  1069.  
  1070. `-v'
  1071.      Print (on standard error output) the commands executed to run the
  1072.      stages of compilation.  Also print the version number of the
  1073.      compiler driver program and of the preprocessor and the compiler
  1074.      proper.
  1075.  
  1076. `-###'
  1077.      Like `-v' except the commands are not executed and all command
  1078.      arguments are quoted.  This is useful for shell scripts to capture
  1079.      the driver-generated command lines.
  1080.  
  1081. `-pipe'
  1082.      Use pipes rather than temporary files for communication between the
  1083.      various stages of compilation.  This fails to work on some systems
  1084.      where the assembler is unable to read from a pipe; but the GNU
  1085.      assembler has no trouble.
  1086.  
  1087. `--help'
  1088.      Print (on the standard output) a description of the command line
  1089.      options understood by `gcc'.  If the `-v' option is also specified
  1090.      then `--help' will also be passed on to the various processes
  1091.      invoked by `gcc', so that they can display the command line options
  1092.      they accept.  If the `-Wextra' option is also specified then
  1093.      command line options which have no documentation associated with
  1094.      them will also be displayed.
  1095.  
  1096. `--target-help'
  1097.      Print (on the standard output) a description of target specific
  1098.      command line options for each tool.
  1099.  
  1100. `--version'
  1101.      Display the version number and copyrights of the invoked GCC.
  1102.  
  1103. 
  1104. File: gcc,  Node: Invoking G++,  Next: C Dialect Options,  Prev: Overall Options,  Up: Invoking GCC
  1105.  
  1106. 3.3 Compiling C++ Programs
  1107. ==========================
  1108.  
  1109. C++ source files conventionally use one of the suffixes `.C', `.cc',
  1110. `.cpp', `.CPP', `.c++', `.cp', or `.cxx'; C++ header files often use
  1111. `.hh' or `.H'; and preprocessed C++ files use the suffix `.ii'.  GCC
  1112. recognizes files with these names and compiles them as C++ programs
  1113. even if you call the compiler the same way as for compiling C programs
  1114. (usually with the name `gcc').
  1115.  
  1116.  However, C++ programs often require class libraries as well as a
  1117. compiler that understands the C++ language--and under some
  1118. circumstances, you might want to compile programs or header files from
  1119. standard input, or otherwise without a suffix that flags them as C++
  1120. programs.  You might also like to precompile a C header file with a
  1121. `.h' extension to be used in C++ compilations.  `g++' is a program that
  1122. calls GCC with the default language set to C++, and automatically
  1123. specifies linking against the C++ library.  On many systems, `g++' is
  1124. also installed with the name `c++'.
  1125.  
  1126.  When you compile C++ programs, you may specify many of the same
  1127. command-line options that you use for compiling programs in any
  1128. language; or command-line options meaningful for C and related
  1129. languages; or options that are meaningful only for C++ programs.  *Note
  1130. Options Controlling C Dialect: C Dialect Options, for explanations of
  1131. options for languages related to C.  *Note Options Controlling C++
  1132. Dialect: C++ Dialect Options, for explanations of options that are
  1133. meaningful only for C++ programs.
  1134.  
  1135. 
  1136. File: gcc,  Node: C Dialect Options,  Next: C++ Dialect Options,  Prev: Invoking G++,  Up: Invoking GCC
  1137.  
  1138. 3.4 Options Controlling C Dialect
  1139. =================================
  1140.  
  1141. The following options control the dialect of C (or languages derived
  1142. from C, such as C++ and Objective-C) that the compiler accepts:
  1143.  
  1144. `-ansi'
  1145.      In C mode, support all ISO C90 programs.  In C++ mode, remove GNU
  1146.      extensions that conflict with ISO C++.
  1147.  
  1148.      This turns off certain features of GCC that are incompatible with
  1149.      ISO C90 (when compiling C code), or of standard C++ (when
  1150.      compiling C++ code), such as the `asm' and `typeof' keywords, and
  1151.      predefined macros such as `unix' and `vax' that identify the type
  1152.      of system you are using.  It also enables the undesirable and
  1153.      rarely used ISO trigraph feature.  For the C compiler, it disables
  1154.      recognition of C++ style `//' comments as well as the `inline'
  1155.      keyword.
  1156.  
  1157.      The alternate keywords `__asm__', `__extension__', `__inline__'
  1158.      and `__typeof__' continue to work despite `-ansi'.  You would not
  1159.      want to use them in an ISO C program, of course, but it is useful
  1160.      to put them in header files that might be included in compilations
  1161.      done with `-ansi'.  Alternate predefined macros such as `__unix__'
  1162.      and `__vax__' are also available, with or without `-ansi'.
  1163.  
  1164.      The `-ansi' option does not cause non-ISO programs to be rejected
  1165.      gratuitously.  For that, `-pedantic' is required in addition to
  1166.      `-ansi'.  *Note Warning Options::.
  1167.  
  1168.      The macro `__STRICT_ANSI__' is predefined when the `-ansi' option
  1169.      is used.  Some header files may notice this macro and refrain from
  1170.      declaring certain functions or defining certain macros that the
  1171.      ISO standard doesn't call for; this is to avoid interfering with
  1172.      any programs that might use these names for other things.
  1173.  
  1174.      Functions which would normally be built in but do not have
  1175.      semantics defined by ISO C (such as `alloca' and `ffs') are not
  1176.      built-in functions with `-ansi' is used.  *Note Other built-in
  1177.      functions provided by GCC: Other Builtins, for details of the
  1178.      functions affected.
  1179.  
  1180. `-std='
  1181.      Determine the language standard.  This option is currently only
  1182.      supported when compiling C or C++.  A value for this option must be
  1183.      provided; possible values are
  1184.  
  1185.     `c89'
  1186.     `iso9899:1990'
  1187.           ISO C90 (same as `-ansi').
  1188.  
  1189.     `iso9899:199409'
  1190.           ISO C90 as modified in amendment 1.
  1191.  
  1192.     `c99'
  1193.     `c9x'
  1194.     `iso9899:1999'
  1195.     `iso9899:199x'
  1196.           ISO C99.  Note that this standard is not yet fully supported;
  1197.           see `http://gcc.gnu.org/gcc-3.4/c99status.html' for more
  1198.           information.  The names `c9x' and `iso9899:199x' are
  1199.           deprecated.
  1200.  
  1201.     `gnu89'
  1202.           Default, ISO C90 plus GNU extensions (including some C99
  1203.           features).
  1204.  
  1205.     `gnu99'
  1206.     `gnu9x'
  1207.           ISO C99 plus GNU extensions.  When ISO C99 is fully
  1208.           implemented in GCC, this will become the default.  The name
  1209.           `gnu9x' is deprecated.
  1210.  
  1211.     `c++98'
  1212.           The 1998 ISO C++ standard plus amendments.
  1213.  
  1214.     `gnu++98'
  1215.           The same as `-std=c++98' plus GNU extensions.  This is the
  1216.           default for C++ code.
  1217.  
  1218.      Even when this option is not specified, you can still use some of
  1219.      the features of newer standards in so far as they do not conflict
  1220.      with previous C standards.  For example, you may use
  1221.      `__restrict__' even when `-std=c99' is not specified.
  1222.  
  1223.      The `-std' options specifying some version of ISO C have the same
  1224.      effects as `-ansi', except that features that were not in ISO C90
  1225.      but are in the specified version (for example, `//' comments and
  1226.      the `inline' keyword in ISO C99) are not disabled.
  1227.  
  1228.      *Note Language Standards Supported by GCC: Standards, for details
  1229.      of these standard versions.
  1230.  
  1231. `-aux-info FILENAME'
  1232.      Output to the given filename prototyped declarations for all
  1233.      functions declared and/or defined in a translation unit, including
  1234.      those in header files.  This option is silently ignored in any
  1235.      language other than C.
  1236.  
  1237.      Besides declarations, the file indicates, in comments, the origin
  1238.      of each declaration (source file and line), whether the
  1239.      declaration was implicit, prototyped or unprototyped (`I', `N' for
  1240.      new or `O' for old, respectively, in the first character after the
  1241.      line number and the colon), and whether it came from a declaration
  1242.      or a definition (`C' or `F', respectively, in the following
  1243.      character).  In the case of function definitions, a K&R-style list
  1244.      of arguments followed by their declarations is also provided,
  1245.      inside comments, after the declaration.
  1246.  
  1247. `-fno-asm'
  1248.      Do not recognize `asm', `inline' or `typeof' as a keyword, so that
  1249.      code can use these words as identifiers.  You can use the keywords
  1250.      `__asm__', `__inline__' and `__typeof__' instead.  `-ansi' implies
  1251.      `-fno-asm'.
  1252.  
  1253.      In C++, this switch only affects the `typeof' keyword, since `asm'
  1254.      and `inline' are standard keywords.  You may want to use the
  1255.      `-fno-gnu-keywords' flag instead, which has the same effect.  In
  1256.      C99 mode (`-std=c99' or `-std=gnu99'), this switch only affects
  1257.      the `asm' and `typeof' keywords, since `inline' is a standard
  1258.      keyword in ISO C99.
  1259.  
  1260. `-fno-builtin'
  1261. `-fno-builtin-FUNCTION'
  1262.      Don't recognize built-in functions that do not begin with
  1263.      `__builtin_' as prefix.  *Note Other built-in functions provided
  1264.      by GCC: Other Builtins, for details of the functions affected,
  1265.      including those which are not built-in functions when `-ansi' or
  1266.      `-std' options for strict ISO C conformance are used because they
  1267.      do not have an ISO standard meaning.
  1268.  
  1269.      GCC normally generates special code to handle certain built-in
  1270.      functions more efficiently; for instance, calls to `alloca' may
  1271.      become single instructions that adjust the stack directly, and
  1272.      calls to `memcpy' may become inline copy loops.  The resulting
  1273.      code is often both smaller and faster, but since the function
  1274.      calls no longer appear as such, you cannot set a breakpoint on
  1275.      those calls, nor can you change the behavior of the functions by
  1276.      linking with a different library.
  1277.  
  1278.      With the `-fno-builtin-FUNCTION' option only the built-in function
  1279.      FUNCTION is disabled.  FUNCTION must not begin with `__builtin_'.
  1280.      If a function is named this is not built-in in this version of
  1281.      GCC, this option is ignored.  There is no corresponding
  1282.      `-fbuiltin-FUNCTION' option; if you wish to enable built-in
  1283.      functions selectively when using `-fno-builtin' or
  1284.      `-ffreestanding', you may define macros such as:
  1285.  
  1286.           #define abs(n)          __builtin_abs ((n))
  1287.           #define strcpy(d, s)    __builtin_strcpy ((d), (s))
  1288.  
  1289. `-fhosted'
  1290.      Assert that compilation takes place in a hosted environment.  This
  1291.      implies `-fbuiltin'.  A hosted environment is one in which the
  1292.      entire standard library is available, and in which `main' has a
  1293.      return type of `int'.  Examples are nearly everything except a
  1294.      kernel.  This is equivalent to `-fno-freestanding'.
  1295.  
  1296. `-ffreestanding'
  1297.      Assert that compilation takes place in a freestanding environment.
  1298.      This implies `-fno-builtin'.  A freestanding environment is one
  1299.      in which the standard library may not exist, and program startup
  1300.      may not necessarily be at `main'.  The most obvious example is an
  1301.      OS kernel.  This is equivalent to `-fno-hosted'.
  1302.  
  1303.      *Note Language Standards Supported by GCC: Standards, for details
  1304.      of freestanding and hosted environments.
  1305.  
  1306. `-fms-extensions'
  1307.      Accept some non-standard constructs used in Microsoft header files.
  1308.  
  1309. `-trigraphs'
  1310.      Support ISO C trigraphs.  The `-ansi' option (and `-std' options
  1311.      for strict ISO C conformance) implies `-trigraphs'.
  1312.  
  1313. `-no-integrated-cpp'
  1314.      Performs a compilation in two passes: preprocessing and compiling.
  1315.      This option allows a user supplied "cc1", "cc1plus", or "cc1obj"
  1316.      via the `-B' option. The user supplied compilation step can then
  1317.      add in an additional preprocessing step after normal preprocessing
  1318.      but before compiling. The default is to use the integrated cpp
  1319.      (internal cpp)
  1320.  
  1321.      The semantics of this option will change if "cc1", "cc1plus", and
  1322.      "cc1obj" are merged.
  1323.  
  1324. `-traditional'
  1325. `-traditional-cpp'
  1326.      Formerly, these options caused GCC to attempt to emulate a
  1327.      pre-standard C compiler.  They are now only supported with the
  1328.      `-E' switch.  The preprocessor continues to support a pre-standard
  1329.      mode.  See the GNU CPP manual for details.
  1330.  
  1331. `-fcond-mismatch'
  1332.      Allow conditional expressions with mismatched types in the second
  1333.      and third arguments.  The value of such an expression is void.
  1334.      This option is not supported for C++.
  1335.  
  1336. `-funsigned-char'
  1337.      Let the type `char' be unsigned, like `unsigned char'.
  1338.  
  1339.      Each kind of machine has a default for what `char' should be.  It
  1340.      is either like `unsigned char' by default or like `signed char' by
  1341.      default.
  1342.  
  1343.      Ideally, a portable program should always use `signed char' or
  1344.      `unsigned char' when it depends on the signedness of an object.
  1345.      But many programs have been written to use plain `char' and expect
  1346.      it to be signed, or expect it to be unsigned, depending on the
  1347.      machines they were written for.  This option, and its inverse, let
  1348.      you make such a program work with the opposite default.
  1349.  
  1350.      The type `char' is always a distinct type from each of `signed
  1351.      char' or `unsigned char', even though its behavior is always just
  1352.      like one of those two.
  1353.  
  1354. `-fsigned-char'
  1355.      Let the type `char' be signed, like `signed char'.
  1356.  
  1357.      Note that this is equivalent to `-fno-unsigned-char', which is the
  1358.      negative form of `-funsigned-char'.  Likewise, the option
  1359.      `-fno-signed-char' is equivalent to `-funsigned-char'.
  1360.  
  1361. `-fsigned-bitfields'
  1362. `-funsigned-bitfields'
  1363. `-fno-signed-bitfields'
  1364. `-fno-unsigned-bitfields'
  1365.      These options control whether a bit-field is signed or unsigned,
  1366.      when the declaration does not use either `signed' or `unsigned'.
  1367.      By default, such a bit-field is signed, because this is
  1368.      consistent: the basic integer types such as `int' are signed types.
  1369.  
  1370. `-fwritable-strings'
  1371.      Store string constants in the writable data segment and don't
  1372.      uniquize them.  This is for compatibility with old programs which
  1373.      assume they can write into string constants.
  1374.  
  1375.      Writing into string constants is a very bad idea; "constants"
  1376.      should be constant.
  1377.  
  1378.      This option is deprecated.
  1379.  
  1380. 
  1381. File: gcc,  Node: C++ Dialect Options,  Next: Objective-C Dialect Options,  Prev: C Dialect Options,  Up: Invoking GCC
  1382.  
  1383. 3.5 Options Controlling C++ Dialect
  1384. ===================================
  1385.  
  1386. This section describes the command-line options that are only meaningful
  1387. for C++ programs; but you can also use most of the GNU compiler options
  1388. regardless of what language your program is in.  For example, you might
  1389. compile a file `firstClass.C' like this:
  1390.  
  1391.      g++ -g -frepo -O -c firstClass.C
  1392.  
  1393. In this example, only `-frepo' is an option meant only for C++
  1394. programs; you can use the other options with any language supported by
  1395. GCC.
  1396.  
  1397.  Here is a list of options that are _only_ for compiling C++ programs:
  1398.  
  1399. `-fabi-version=N'
  1400.      Use version N of the C++ ABI.  Version 2 is the version of the C++
  1401.      ABI that first appeared in G++ 3.4.  Version 1 is the version of
  1402.      the C++ ABI that first appeared in G++ 3.2.  Version 0 will always
  1403.      be the version that conforms most closely to the C++ ABI
  1404.      specification.  Therefore, the ABI obtained using version 0 will
  1405.      change as ABI bugs are fixed.
  1406.  
  1407.      The default is version 2.
  1408.  
  1409. `-fno-access-control'
  1410.      Turn off all access checking.  This switch is mainly useful for
  1411.      working around bugs in the access control code.
  1412.  
  1413. `-fcheck-new'
  1414.      Check that the pointer returned by `operator new' is non-null
  1415.      before attempting to modify the storage allocated.  This check is
  1416.      normally unnecessary because the C++ standard specifies that
  1417.      `operator new' will only return `0' if it is declared `throw()',
  1418.      in which case the compiler will always check the return value even
  1419.      without this option.  In all other cases, when `operator new' has
  1420.      a non-empty exception specification, memory exhaustion is
  1421.      signalled by throwing `std::bad_alloc'.  See also `new (nothrow)'.
  1422.  
  1423. `-fconserve-space'
  1424.      Put uninitialized or runtime-initialized global variables into the
  1425.      common segment, as C does.  This saves space in the executable at
  1426.      the cost of not diagnosing duplicate definitions.  If you compile
  1427.      with this flag and your program mysteriously crashes after
  1428.      `main()' has completed, you may have an object that is being
  1429.      destroyed twice because two definitions were merged.
  1430.  
  1431.      This option is no longer useful on most targets, now that support
  1432.      has been added for putting variables into BSS without making them
  1433.      common.
  1434.  
  1435. `-fno-const-strings'
  1436.      Give string constants type `char *' instead of type `const char
  1437.      *'.  By default, G++ uses type `const char *' as required by the
  1438.      standard.  Even if you use `-fno-const-strings', you cannot
  1439.      actually modify the value of a string constant, unless you also use
  1440.      `-fwritable-strings'.
  1441.  
  1442.      This option might be removed in a future release of G++.  For
  1443.      maximum portability, you should structure your code so that it
  1444.      works with string constants that have type `const char *'.
  1445.  
  1446. `-fno-elide-constructors'
  1447.      The C++ standard allows an implementation to omit creating a
  1448.      temporary which is only used to initialize another object of the
  1449.      same type.  Specifying this option disables that optimization, and
  1450.      forces G++ to call the copy constructor in all cases.
  1451.  
  1452. `-fno-enforce-eh-specs'
  1453.      Don't check for violation of exception specifications at runtime.
  1454.      This option violates the C++ standard, but may be useful for
  1455.      reducing code size in production builds, much like defining
  1456.      `NDEBUG'.  The compiler will still optimize based on the exception
  1457.      specifications.
  1458.  
  1459. `-ffor-scope'
  1460. `-fno-for-scope'
  1461.      If `-ffor-scope' is specified, the scope of variables declared in
  1462.      a for-init-statement is limited to the `for' loop itself, as
  1463.      specified by the C++ standard.  If `-fno-for-scope' is specified,
  1464.      the scope of variables declared in a for-init-statement extends to
  1465.      the end of the enclosing scope, as was the case in old versions of
  1466.      G++, and other (traditional) implementations of C++.
  1467.  
  1468.      The default if neither flag is given to follow the standard, but
  1469.      to allow and give a warning for old-style code that would
  1470.      otherwise be invalid, or have different behavior.
  1471.  
  1472. `-fno-gnu-keywords'
  1473.      Do not recognize `typeof' as a keyword, so that code can use this
  1474.      word as an identifier.  You can use the keyword `__typeof__'
  1475.      instead.  `-ansi' implies `-fno-gnu-keywords'.
  1476.  
  1477. `-fno-implicit-templates'
  1478.      Never emit code for non-inline templates which are instantiated
  1479.      implicitly (i.e. by use); only emit code for explicit
  1480.      instantiations.  *Note Template Instantiation::, for more
  1481.      information.
  1482.  
  1483. `-fno-implicit-inline-templates'
  1484.      Don't emit code for implicit instantiations of inline templates,
  1485.      either.  The default is to handle inlines differently so that
  1486.      compiles with and without optimization will need the same set of
  1487.      explicit instantiations.
  1488.  
  1489. `-fno-implement-inlines'
  1490.      To save space, do not emit out-of-line copies of inline functions
  1491.      controlled by `#pragma implementation'.  This will cause linker
  1492.      errors if these functions are not inlined everywhere they are
  1493.      called.
  1494.  
  1495. `-fms-extensions'
  1496.      Disable pedantic warnings about constructs used in MFC, such as
  1497.      implicit int and getting a pointer to member function via
  1498.      non-standard syntax.
  1499.  
  1500. `-fno-nonansi-builtins'
  1501.      Disable built-in declarations of functions that are not mandated by
  1502.      ANSI/ISO C.  These include `ffs', `alloca', `_exit', `index',
  1503.      `bzero', `conjf', and other related functions.
  1504.  
  1505. `-fno-operator-names'
  1506.      Do not treat the operator name keywords `and', `bitand', `bitor',
  1507.      `compl', `not', `or' and `xor' as synonyms as keywords.
  1508.  
  1509. `-fno-optional-diags'
  1510.      Disable diagnostics that the standard says a compiler does not
  1511.      need to issue.  Currently, the only such diagnostic issued by G++
  1512.      is the one for a name having multiple meanings within a class.
  1513.  
  1514. `-fpermissive'
  1515.      Downgrade some diagnostics about nonconformant code from errors to
  1516.      warnings.  Thus, using `-fpermissive' will allow some
  1517.      nonconforming code to compile.
  1518.  
  1519. `-frepo'
  1520.      Enable automatic template instantiation at link time.  This option
  1521.      also implies `-fno-implicit-templates'.  *Note Template
  1522.      Instantiation::, for more information.
  1523.  
  1524. `-fno-rtti'
  1525.      Disable generation of information about every class with virtual
  1526.      functions for use by the C++ runtime type identification features
  1527.      (`dynamic_cast' and `typeid').  If you don't use those parts of
  1528.      the language, you can save some space by using this flag.  Note
  1529.      that exception handling uses the same information, but it will
  1530.      generate it as needed.
  1531.  
  1532. `-fstats'
  1533.      Emit statistics about front-end processing at the end of the
  1534.      compilation.  This information is generally only useful to the G++
  1535.      development team.
  1536.  
  1537. `-ftemplate-depth-N'
  1538.      Set the maximum instantiation depth for template classes to N.  A
  1539.      limit on the template instantiation depth is needed to detect
  1540.      endless recursions during template class instantiation.  ANSI/ISO
  1541.      C++ conforming programs must not rely on a maximum depth greater
  1542.      than 17.
  1543.  
  1544. `-fuse-cxa-atexit'
  1545.      Register destructors for objects with static storage duration with
  1546.      the `__cxa_atexit' function rather than the `atexit' function.
  1547.      This option is required for fully standards-compliant handling of
  1548.      static destructors, but will only work if your C library supports
  1549.      `__cxa_atexit'.
  1550.  
  1551. `-fno-weak'
  1552.      Do not use weak symbol support, even if it is provided by the
  1553.      linker.  By default, G++ will use weak symbols if they are
  1554.      available.  This option exists only for testing, and should not be
  1555.      used by end-users; it will result in inferior code and has no
  1556.      benefits.  This option may be removed in a future release of G++.
  1557.  
  1558. `-nostdinc++'
  1559.      Do not search for header files in the standard directories
  1560.      specific to C++, but do still search the other standard
  1561.      directories.  (This option is used when building the C++ library.)
  1562.  
  1563.  In addition, these optimization, warning, and code generation options
  1564. have meanings only for C++ programs:
  1565.  
  1566. `-fno-default-inline'
  1567.      Do not assume `inline' for functions defined inside a class scope.
  1568.      *Note Options That Control Optimization: Optimize Options.  Note
  1569.      that these functions will have linkage like inline functions; they
  1570.      just won't be inlined by default.
  1571.  
  1572. `-Wabi (C++ only)'
  1573.      Warn when G++ generates code that is probably not compatible with
  1574.      the vendor-neutral C++ ABI.  Although an effort has been made to
  1575.      warn about all such cases, there are probably some cases that are
  1576.      not warned about, even though G++ is generating incompatible code.
  1577.      There may also be cases where warnings are emitted even though
  1578.      the code that is generated will be compatible.
  1579.  
  1580.      You should rewrite your code to avoid these warnings if you are
  1581.      concerned about the fact that code generated by G++ may not be
  1582.      binary compatible with code generated by other compilers.
  1583.  
  1584.      The known incompatibilities at this point include:
  1585.  
  1586.         * Incorrect handling of tail-padding for bit-fields.  G++ may
  1587.           attempt to pack data into the same byte as a base class.  For
  1588.           example:
  1589.  
  1590.                struct A { virtual void f(); int f1 : 1; };
  1591.                struct B : public A { int f2 : 1; };
  1592.  
  1593.           In this case, G++ will place `B::f2' into the same byte
  1594.           as`A::f1'; other compilers will not.  You can avoid this
  1595.           problem by explicitly padding `A' so that its size is a
  1596.           multiple of the byte size on your platform; that will cause
  1597.           G++ and other compilers to layout `B' identically.
  1598.  
  1599.         * Incorrect handling of tail-padding for virtual bases.  G++
  1600.           does not use tail padding when laying out virtual bases.  For
  1601.           example:
  1602.  
  1603.                struct A { virtual void f(); char c1; };
  1604.                struct B { B(); char c2; };
  1605.                struct C : public A, public virtual B {};
  1606.  
  1607.           In this case, G++ will not place `B' into the tail-padding for
  1608.           `A'; other compilers will.  You can avoid this problem by
  1609.           explicitly padding `A' so that its size is a multiple of its
  1610.           alignment (ignoring virtual base classes); that will cause
  1611.           G++ and other compilers to layout `C' identically.
  1612.  
  1613.         * Incorrect handling of bit-fields with declared widths greater
  1614.           than that of their underlying types, when the bit-fields
  1615.           appear in a union.  For example:
  1616.  
  1617.                union U { int i : 4096; };
  1618.  
  1619.           Assuming that an `int' does not have 4096 bits, G++ will make
  1620.           the union too small by the number of bits in an `int'.
  1621.  
  1622.         * Empty classes can be placed at incorrect offsets.  For
  1623.           example:
  1624.  
  1625.                struct A {};
  1626.  
  1627.                struct B {
  1628.                  A a;
  1629.                  virtual void f ();
  1630.                };
  1631.  
  1632.                struct C : public B, public A {};
  1633.  
  1634.           G++ will place the `A' base class of `C' at a nonzero offset;
  1635.           it should be placed at offset zero.  G++ mistakenly believes
  1636.           that the `A' data member of `B' is already at offset zero.
  1637.  
  1638.         * Names of template functions whose types involve `typename' or
  1639.           template template parameters can be mangled incorrectly.
  1640.  
  1641.                template <typename Q>
  1642.                void f(typename Q::X) {}
  1643.  
  1644.                template <template <typename> class Q>
  1645.                void f(typename Q<int>::X) {}
  1646.  
  1647.           Instantiations of these templates may be mangled incorrectly.
  1648.  
  1649.  
  1650. `-Wctor-dtor-privacy (C++ only)'
  1651.      Warn when a class seems unusable because all the constructors or
  1652.      destructors in that class are private, and it has neither friends
  1653.      nor public static member functions.
  1654.  
  1655. `-Wnon-virtual-dtor (C++ only)'
  1656.      Warn when a class appears to be polymorphic, thereby requiring a
  1657.      virtual destructor, yet it declares a non-virtual one.  This
  1658.      warning is enabled by `-Wall'.
  1659.  
  1660. `-Wreorder (C++ only)'
  1661.      Warn when the order of member initializers given in the code does
  1662.      not match the order in which they must be executed.  For instance:
  1663.  
  1664.           struct A {
  1665.             int i;
  1666.             int j;
  1667.             A(): j (0), i (1) { }
  1668.           };
  1669.  
  1670.      The compiler will rearrange the member initializers for `i' and
  1671.      `j' to match the declaration order of the members, emitting a
  1672.      warning to that effect.  This warning is enabled by `-Wall'.
  1673.  
  1674.  The following `-W...' options are not affected by `-Wall'.
  1675.  
  1676. `-Weffc++ (C++ only)'
  1677.      Warn about violations of the following style guidelines from Scott
  1678.      Meyers' `Effective C++' book:
  1679.  
  1680.         * Item 11:  Define a copy constructor and an assignment
  1681.           operator for classes with dynamically allocated memory.
  1682.  
  1683.         * Item 12:  Prefer initialization to assignment in constructors.
  1684.  
  1685.         * Item 14:  Make destructors virtual in base classes.
  1686.  
  1687.         * Item 15:  Have `operator=' return a reference to `*this'.
  1688.  
  1689.         * Item 23:  Don't try to return a reference when you must
  1690.           return an object.
  1691.  
  1692.  
  1693.      Also warn about violations of the following style guidelines from
  1694.      Scott Meyers' `More Effective C++' book:
  1695.  
  1696.         * Item 6:  Distinguish between prefix and postfix forms of
  1697.           increment and decrement operators.
  1698.  
  1699.         * Item 7:  Never overload `&&', `||', or `,'.
  1700.  
  1701.  
  1702.      When selecting this option, be aware that the standard library
  1703.      headers do not obey all of these guidelines; use `grep -v' to
  1704.      filter out those warnings.
  1705.  
  1706. `-Wno-deprecated (C++ only)'
  1707.      Do not warn about usage of deprecated features.  *Note Deprecated
  1708.      Features::.
  1709.  
  1710. `-Wno-non-template-friend (C++ only)'
  1711.      Disable warnings when non-templatized friend functions are declared
  1712.      within a template.  Since the advent of explicit template
  1713.      specification support in G++, if the name of the friend is an
  1714.      unqualified-id (i.e., `friend foo(int)'), the C++ language
  1715.      specification demands that the friend declare or define an
  1716.      ordinary, nontemplate function.  (Section 14.5.3).  Before G++
  1717.      implemented explicit specification, unqualified-ids could be
  1718.      interpreted as a particular specialization of a templatized
  1719.      function.  Because this non-conforming behavior is no longer the
  1720.      default behavior for G++, `-Wnon-template-friend' allows the
  1721.      compiler to check existing code for potential trouble spots and is
  1722.      on by default.  This new compiler behavior can be turned off with
  1723.      `-Wno-non-template-friend' which keeps the conformant compiler code
  1724.      but disables the helpful warning.
  1725.  
  1726. `-Wold-style-cast (C++ only)'
  1727.      Warn if an old-style (C-style) cast to a non-void type is used
  1728.      within a C++ program.  The new-style casts (`static_cast',
  1729.      `reinterpret_cast', and `const_cast') are less vulnerable to
  1730.      unintended effects and much easier to search for.
  1731.  
  1732. `-Woverloaded-virtual (C++ only)'
  1733.      Warn when a function declaration hides virtual functions from a
  1734.      base class.  For example, in:
  1735.  
  1736.           struct A {
  1737.             virtual void f();
  1738.           };
  1739.  
  1740.           struct B: public A {
  1741.             void f(int);
  1742.           };
  1743.  
  1744.      the `A' class version of `f' is hidden in `B', and code like:
  1745.  
  1746.           B* b;
  1747.           b->f();
  1748.  
  1749.      will fail to compile.
  1750.  
  1751. `-Wno-pmf-conversions (C++ only)'
  1752.      Disable the diagnostic for converting a bound pointer to member
  1753.      function to a plain pointer.
  1754.  
  1755. `-Wsign-promo (C++ only)'
  1756.      Warn when overload resolution chooses a promotion from unsigned or
  1757.      enumeral type to a signed type, over a conversion to an unsigned
  1758.      type of the same size.  Previous versions of G++ would try to
  1759.      preserve unsignedness, but the standard mandates the current
  1760.      behavior.
  1761.  
  1762. `-Wsynth (C++ only)'
  1763.      Warn when G++'s synthesis behavior does not match that of cfront.
  1764.      For instance:
  1765.  
  1766.           struct A {
  1767.             operator int ();
  1768.             A& operator = (int);
  1769.           };
  1770.  
  1771.           main ()
  1772.           {
  1773.             A a,b;
  1774.             a = b;
  1775.           }
  1776.  
  1777.      In this example, G++ will synthesize a default `A& operator =
  1778.      (const A&);', while cfront will use the user-defined `operator ='.
  1779.  
  1780. 
  1781. File: gcc,  Node: Objective-C Dialect Options,  Next: Language Independent Options,  Prev: C++ Dialect Options,  Up: Invoking GCC
  1782.  
  1783. 3.6 Options Controlling Objective-C Dialect
  1784. ===========================================
  1785.  
  1786. (NOTE: This manual does not describe the Objective-C language itself.
  1787. See `http://gcc.gnu.org/readings.html' for references.)
  1788.  
  1789.  This section describes the command-line options that are only
  1790. meaningful for Objective-C programs, but you can also use most of the
  1791. GNU compiler options regardless of what language your program is in.
  1792. For example, you might compile a file `some_class.m' like this:
  1793.  
  1794.      gcc -g -fgnu-runtime -O -c some_class.m
  1795.  
  1796. In this example, `-fgnu-runtime' is an option meant only for
  1797. Objective-C programs; you can use the other options with any language
  1798. supported by GCC.
  1799.  
  1800.  Here is a list of options that are _only_ for compiling Objective-C
  1801. programs:
  1802.  
  1803. `-fconstant-string-class=CLASS-NAME'
  1804.      Use CLASS-NAME as the name of the class to instantiate for each
  1805.      literal string specified with the syntax `@"..."'.  The default
  1806.      class name is `NXConstantString' if the GNU runtime is being used,
  1807.      and `NSConstantString' if the NeXT runtime is being used (see
  1808.      below).  The `-fconstant-cfstrings' option, if also present, will
  1809.      override the `-fconstant-string-class' setting and cause `@"..."'
  1810.      literals to be laid out as constant CoreFoundation strings.
  1811.  
  1812. `-fgnu-runtime'
  1813.      Generate object code compatible with the standard GNU Objective-C
  1814.      runtime.  This is the default for most types of systems.
  1815.  
  1816. `-fnext-runtime'
  1817.      Generate output compatible with the NeXT runtime.  This is the
  1818.      default for NeXT-based systems, including Darwin and Mac OS X.
  1819.      The macro `__NEXT_RUNTIME__' is predefined if (and only if) this
  1820.      option is used.
  1821.  
  1822. `-fno-nil-receivers'
  1823.      Assume that all Objective-C message dispatches (e.g., `[receiver
  1824.      message:arg]') in this translation unit ensure that the receiver
  1825.      is not `nil'.  This allows for more efficient entry points in the
  1826.      runtime to be used.  Currently, this option is only available in
  1827.      conjunction with the NeXT runtime on Mac OS X 10.3 and later.
  1828.  
  1829. `-fobjc-exceptions'
  1830.      Enable syntactic support for structured exception handling in
  1831.      Objective-C, similar to what is offered by C++ and Java.
  1832.      Currently, this option is only available in conjunction with the
  1833.      NeXT runtime on Mac OS X 10.3 and later.
  1834.  
  1835.             @try {
  1836.               ...
  1837.                  @throw expr;
  1838.               ...
  1839.             }
  1840.             @catch (AnObjCClass *exc) {
  1841.               ...
  1842.                 @throw expr;
  1843.               ...
  1844.                 @throw;
  1845.               ...
  1846.             }
  1847.             @catch (AnotherClass *exc) {
  1848.               ...
  1849.             }
  1850.             @catch (id allOthers) {
  1851.               ...
  1852.             }
  1853.             @finally {
  1854.               ...
  1855.                 @throw expr;
  1856.               ...
  1857.             }
  1858.  
  1859.      The `@throw' statement may appear anywhere in an Objective-C or
  1860.      Objective-C++ program; when used inside of a `@catch' block, the
  1861.      `@throw' may appear without an argument (as shown above), in which
  1862.      case the object caught by the `@catch' will be rethrown.
  1863.  
  1864.      Note that only (pointers to) Objective-C objects may be thrown and
  1865.      caught using this scheme.  When an object is thrown, it will be
  1866.      caught by the nearest `@catch' clause capable of handling objects
  1867.      of that type, analogously to how `catch' blocks work in C++ and
  1868.      Java.  A `@catch(id ...)' clause (as shown above) may also be
  1869.      provided to catch any and all Objective-C exceptions not caught by
  1870.      previous `@catch' clauses (if any).
  1871.  
  1872.      The `@finally' clause, if present, will be executed upon exit from
  1873.      the immediately preceding `@try ... @catch' section.  This will
  1874.      happen regardless of whether any exceptions are thrown, caught or
  1875.      rethrown inside the `@try ... @catch' section, analogously to the
  1876.      behavior of the `finally' clause in Java.
  1877.  
  1878.      There are several caveats to using the new exception mechanism:
  1879.  
  1880.         * Although currently designed to be binary compatible with
  1881.           `NS_HANDLER'-style idioms provided by the `NSException'
  1882.           class, the new exceptions can only be used on Mac OS X 10.3
  1883.           (Panther) and later systems, due to additional functionality
  1884.           needed in the (NeXT) Objective-C runtime.
  1885.  
  1886.         * As mentioned above, the new exceptions do not support handling
  1887.           types other than Objective-C objects.   Furthermore, when
  1888.           used from Objective-C++, the Objective-C exception model does
  1889.           not interoperate with C++ exceptions at this time.  This
  1890.           means you cannot `@throw' an exception from Objective-C and
  1891.           `catch' it in C++, or vice versa (i.e., `throw ... @catch').
  1892.  
  1893.      The `-fobjc-exceptions' switch also enables the use of
  1894.      synchronization blocks for thread-safe execution:
  1895.  
  1896.             @synchronized (ObjCClass *guard) {
  1897.               ...
  1898.             }
  1899.  
  1900.      Upon entering the `@synchronized' block, a thread of execution
  1901.      shall first check whether a lock has been placed on the
  1902.      corresponding `guard' object by another thread.  If it has, the
  1903.      current thread shall wait until the other thread relinquishes its
  1904.      lock.  Once `guard' becomes available, the current thread will
  1905.      place its own lock on it, execute the code contained in the
  1906.      `@synchronized' block, and finally relinquish the lock (thereby
  1907.      making `guard' available to other threads).
  1908.  
  1909.      Unlike Java, Objective-C does not allow for entire methods to be
  1910.      marked `@synchronized'.  Note that throwing exceptions out of
  1911.      `@synchronized' blocks is allowed, and will cause the guarding
  1912.      object to be unlocked properly.
  1913.  
  1914. `-freplace-objc-classes'
  1915.      Emit a special marker instructing `ld(1)' not to statically link in
  1916.      the resulting object file, and allow `dyld(1)' to load it in at
  1917.      run time instead.  This is used in conjunction with the
  1918.      Fix-and-Continue debugging mode, where the object file in question
  1919.      may be recompiled and dynamically reloaded in the course of
  1920.      program execution, without the need to restart the program itself.
  1921.      Currently, Fix-and-Continue functionality is only available in
  1922.      conjunction with the NeXT runtime on Mac OS X 10.3 and later.
  1923.  
  1924. `-fzero-link'
  1925.      When compiling for the NeXT runtime, the compiler ordinarily
  1926.      replaces calls to `objc_getClass("...")' (when the name of the
  1927.      class is known at compile time) with static class references that
  1928.      get initialized at load time, which improves run-time performance.
  1929.      Specifying the `-fzero-link' flag suppresses this behavior and
  1930.      causes calls to `objc_getClass("...")' to be retained.  This is
  1931.      useful in Zero-Link debugging mode, since it allows for individual
  1932.      class implementations to be modified during program execution.
  1933.  
  1934. `-gen-decls'
  1935.      Dump interface declarations for all classes seen in the source
  1936.      file to a file named `SOURCENAME.decl'.
  1937.  
  1938. `-Wno-protocol'
  1939.      If a class is declared to implement a protocol, a warning is
  1940.      issued for every method in the protocol that is not implemented by
  1941.      the class.  The default behavior is to issue a warning for every
  1942.      method not explicitly implemented in the class, even if a method
  1943.      implementation is inherited from the superclass.  If you use the
  1944.      `-Wno-protocol' option, then methods inherited from the superclass
  1945.      are considered to be implemented, and no warning is issued for
  1946.      them.
  1947.  
  1948. `-Wselector'
  1949.      Warn if multiple methods of different types for the same selector
  1950.      are found during compilation.  The check is performed on the list
  1951.      of methods in the final stage of compilation.  Additionally, a
  1952.      check is performed for each selector appearing in a
  1953.      `@selector(...)'  expression, and a corresponding method for that
  1954.      selector has been found during compilation.  Because these checks
  1955.      scan the method table only at the end of compilation, these
  1956.      warnings are not produced if the final stage of compilation is not
  1957.      reached, for example because an error is found during compilation,
  1958.      or because the `-fsyntax-only' option is being used.
  1959.  
  1960. `-Wundeclared-selector'
  1961.      Warn if a `@selector(...)' expression referring to an undeclared
  1962.      selector is found.  A selector is considered undeclared if no
  1963.      method with that name has been declared before the
  1964.      `@selector(...)' expression, either explicitly in an `@interface'
  1965.      or `@protocol' declaration, or implicitly in an `@implementation'
  1966.      section.  This option always performs its checks as soon as a
  1967.      `@selector(...)' expression is found, while `-Wselector' only
  1968.      performs its checks in the final stage of compilation.  This also
  1969.      enforces the coding style convention that methods and selectors
  1970.      must be declared before being used.
  1971.  
  1972. `-print-objc-runtime-info'
  1973.      Generate C header describing the largest structure that is passed
  1974.      by value, if any.
  1975.  
  1976.  
  1977. 
  1978. File: gcc,  Node: Language Independent Options,  Next: Warning Options,  Prev: Objective-C Dialect Options,  Up: Invoking GCC
  1979.  
  1980. 3.7 Options to Control Diagnostic Messages Formatting
  1981. =====================================================
  1982.  
  1983. Traditionally, diagnostic messages have been formatted irrespective of
  1984. the output device's aspect (e.g. its width, ...).  The options described
  1985. below can be used to control the diagnostic messages formatting
  1986. algorithm, e.g. how many characters per line, how often source location
  1987. information should be reported.  Right now, only the C++ front end can
  1988. honor these options.  However it is expected, in the near future, that
  1989. the remaining front ends would be able to digest them correctly.
  1990.  
  1991. `-fmessage-length=N'
  1992.      Try to format error messages so that they fit on lines of about N
  1993.      characters.  The default is 72 characters for `g++' and 0 for the
  1994.      rest of the front ends supported by GCC.  If N is zero, then no
  1995.      line-wrapping will be done; each error message will appear on a
  1996.      single line.
  1997.  
  1998. `-fdiagnostics-show-location=once'
  1999.      Only meaningful in line-wrapping mode.  Instructs the diagnostic
  2000.      messages reporter to emit _once_ source location information; that
  2001.      is, in case the message is too long to fit on a single physical
  2002.      line and has to be wrapped, the source location won't be emitted
  2003.      (as prefix) again, over and over, in subsequent continuation
  2004.      lines.  This is the default behavior.
  2005.  
  2006. `-fdiagnostics-show-location=every-line'
  2007.      Only meaningful in line-wrapping mode.  Instructs the diagnostic
  2008.      messages reporter to emit the same source location information (as
  2009.      prefix) for physical lines that result from the process of breaking
  2010.      a message which is too long to fit on a single line.
  2011.  
  2012.  
  2013. 
  2014. File: gcc,  Node: Warning Options,  Next: Debugging Options,  Prev: Language Independent Options,  Up: Invoking GCC
  2015.  
  2016. 3.8 Options to Request or Suppress Warnings
  2017. ===========================================
  2018.  
  2019. Warnings are diagnostic messages that report constructions which are
  2020. not inherently erroneous but which are risky or suggest there may have
  2021. been an error.
  2022.  
  2023.  You can request many specific warnings with options beginning `-W',
  2024. for example `-Wimplicit' to request warnings on implicit declarations.
  2025. Each of these specific warning options also has a negative form
  2026. beginning `-Wno-' to turn off warnings; for example, `-Wno-implicit'.
  2027. This manual lists only one of the two forms, whichever is not the
  2028. default.
  2029.  
  2030.  The following options control the amount and kinds of warnings produced
  2031. by GCC; for further, language-specific options also refer to *Note C++
  2032. Dialect Options:: and *Note Objective-C Dialect Options::.
  2033.  
  2034. `-fsyntax-only'
  2035.      Check the code for syntax errors, but don't do anything beyond
  2036.      that.
  2037.  
  2038. `-pedantic'
  2039.      Issue all the warnings demanded by strict ISO C and ISO C++;
  2040.      reject all programs that use forbidden extensions, and some other
  2041.      programs that do not follow ISO C and ISO C++.  For ISO C, follows
  2042.      the version of the ISO C standard specified by any `-std' option
  2043.      used.
  2044.  
  2045.      Valid ISO C and ISO C++ programs should compile properly with or
  2046.      without this option (though a rare few will require `-ansi' or a
  2047.      `-std' option specifying the required version of ISO C).  However,
  2048.      without this option, certain GNU extensions and traditional C and
  2049.      C++ features are supported as well.  With this option, they are
  2050.      rejected.
  2051.  
  2052.      `-pedantic' does not cause warning messages for use of the
  2053.      alternate keywords whose names begin and end with `__'.  Pedantic
  2054.      warnings are also disabled in the expression that follows
  2055.      `__extension__'.  However, only system header files should use
  2056.      these escape routes; application programs should avoid them.
  2057.      *Note Alternate Keywords::.
  2058.  
  2059.      Some users try to use `-pedantic' to check programs for strict ISO
  2060.      C conformance.  They soon find that it does not do quite what they
  2061.      want: it finds some non-ISO practices, but not all--only those for
  2062.      which ISO C _requires_ a diagnostic, and some others for which
  2063.      diagnostics have been added.
  2064.  
  2065.      A feature to report any failure to conform to ISO C might be
  2066.      useful in some instances, but would require considerable
  2067.      additional work and would be quite different from `-pedantic'.  We
  2068.      don't have plans to support such a feature in the near future.
  2069.  
  2070.      Where the standard specified with `-std' represents a GNU extended
  2071.      dialect of C, such as `gnu89' or `gnu99', there is a corresponding
  2072.      "base standard", the version of ISO C on which the GNU extended
  2073.      dialect is based.  Warnings from `-pedantic' are given where they
  2074.      are required by the base standard.  (It would not make sense for
  2075.      such warnings to be given only for features not in the specified
  2076.      GNU C dialect, since by definition the GNU dialects of C include
  2077.      all features the compiler supports with the given option, and
  2078.      there would be nothing to warn about.)
  2079.  
  2080. `-pedantic-errors'
  2081.      Like `-pedantic', except that errors are produced rather than
  2082.      warnings.
  2083.  
  2084. `-w'
  2085.      Inhibit all warning messages.
  2086.  
  2087. `-Wno-import'
  2088.      Inhibit warning messages about the use of `#import'.
  2089.  
  2090. `-Wchar-subscripts'
  2091.      Warn if an array subscript has type `char'.  This is a common cause
  2092.      of error, as programmers often forget that this type is signed on
  2093.      some machines.
  2094.  
  2095. `-Wcomment'
  2096.      Warn whenever a comment-start sequence `/*' appears in a `/*'
  2097.      comment, or whenever a Backslash-Newline appears in a `//' comment.
  2098.  
  2099. `-Wformat'
  2100.      Check calls to `printf' and `scanf', etc., to make sure that the
  2101.      arguments supplied have types appropriate to the format string
  2102.      specified, and that the conversions specified in the format string
  2103.      make sense.  This includes standard functions, and others
  2104.      specified by format attributes (*note Function Attributes::), in
  2105.      the `printf', `scanf', `strftime' and `strfmon' (an X/Open
  2106.      extension, not in the C standard) families.
  2107.  
  2108.      The formats are checked against the format features supported by
  2109.      GNU libc version 2.2.  These include all ISO C90 and C99 features,
  2110.      as well as features from the Single Unix Specification and some
  2111.      BSD and GNU extensions.  Other library implementations may not
  2112.      support all these features; GCC does not support warning about
  2113.      features that go beyond a particular library's limitations.
  2114.      However, if `-pedantic' is used with `-Wformat', warnings will be
  2115.      given about format features not in the selected standard version
  2116.      (but not for `strfmon' formats, since those are not in any version
  2117.      of the C standard).  *Note Options Controlling C Dialect: C
  2118.      Dialect Options.
  2119.  
  2120.      Since `-Wformat' also checks for null format arguments for several
  2121.      functions, `-Wformat' also implies `-Wnonnull'.
  2122.  
  2123.      `-Wformat' is included in `-Wall'.  For more control over some
  2124.      aspects of format checking, the options `-Wformat-y2k',
  2125.      `-Wno-format-extra-args', `-Wno-format-zero-length',
  2126.      `-Wformat-nonliteral', `-Wformat-security', and `-Wformat=2' are
  2127.      available, but are not included in `-Wall'.
  2128.  
  2129. `-Wformat-y2k'
  2130.      If `-Wformat' is specified, also warn about `strftime' formats
  2131.      which may yield only a two-digit year.
  2132.  
  2133. `-Wno-format-extra-args'
  2134.      If `-Wformat' is specified, do not warn about excess arguments to a
  2135.      `printf' or `scanf' format function.  The C standard specifies
  2136.      that such arguments are ignored.
  2137.  
  2138.      Where the unused arguments lie between used arguments that are
  2139.      specified with `$' operand number specifications, normally
  2140.      warnings are still given, since the implementation could not know
  2141.      what type to pass to `va_arg' to skip the unused arguments.
  2142.      However, in the case of `scanf' formats, this option will suppress
  2143.      the warning if the unused arguments are all pointers, since the
  2144.      Single Unix Specification says that such unused arguments are
  2145.      allowed.
  2146.  
  2147. `-Wno-format-zero-length'
  2148.      If `-Wformat' is specified, do not warn about zero-length formats.
  2149.      The C standard specifies that zero-length formats are allowed.
  2150.  
  2151. `-Wformat-nonliteral'
  2152.      If `-Wformat' is specified, also warn if the format string is not a
  2153.      string literal and so cannot be checked, unless the format function
  2154.      takes its format arguments as a `va_list'.
  2155.  
  2156. `-Wformat-security'
  2157.      If `-Wformat' is specified, also warn about uses of format
  2158.      functions that represent possible security problems.  At present,
  2159.      this warns about calls to `printf' and `scanf' functions where the
  2160.      format string is not a string literal and there are no format
  2161.      arguments, as in `printf (foo);'.  This may be a security hole if
  2162.      the format string came from untrusted input and contains `%n'.
  2163.      (This is currently a subset of what `-Wformat-nonliteral' warns
  2164.      about, but in future warnings may be added to `-Wformat-security'
  2165.      that are not included in `-Wformat-nonliteral'.)
  2166.  
  2167. `-Wformat=2'
  2168.      Enable `-Wformat' plus format checks not included in `-Wformat'.
  2169.      Currently equivalent to `-Wformat -Wformat-nonliteral
  2170.      -Wformat-security -Wformat-y2k'.
  2171.  
  2172. `-Wnonnull'
  2173.      Warn about passing a null pointer for arguments marked as
  2174.      requiring a non-null value by the `nonnull' function attribute.
  2175.  
  2176.      `-Wnonnull' is included in `-Wall' and `-Wformat'.  It can be
  2177.      disabled with the `-Wno-nonnull' option.
  2178.  
  2179. `-Winit-self (C, C++, and Objective-C only)'
  2180.      Warn about uninitialized variables which are initialized with
  2181.      themselves.  Note this option can only be used with the
  2182.      `-Wuninitialized' option, which in turn only works with `-O1' and
  2183.      above.
  2184.  
  2185.      For example, GCC will warn about `i' being uninitialized in the
  2186.      following snippet only when `-Winit-self' has been specified:
  2187.           int f()
  2188.           {
  2189.             int i = i;
  2190.             return i;
  2191.           }
  2192.  
  2193. `-Wimplicit-int'
  2194.      Warn when a declaration does not specify a type.
  2195.  
  2196. `-Wimplicit-function-declaration'
  2197. `-Werror-implicit-function-declaration'
  2198.      Give a warning (or error) whenever a function is used before being
  2199.      declared.
  2200.  
  2201. `-Wimplicit'
  2202.      Same as `-Wimplicit-int' and `-Wimplicit-function-declaration'.
  2203.  
  2204. `-Wmain'
  2205.      Warn if the type of `main' is suspicious.  `main' should be a
  2206.      function with external linkage, returning int, taking either zero
  2207.      arguments, two, or three arguments of appropriate types.
  2208.  
  2209. `-Wmissing-braces'
  2210.      Warn if an aggregate or union initializer is not fully bracketed.
  2211.      In the following example, the initializer for `a' is not fully
  2212.      bracketed, but that for `b' is fully bracketed.
  2213.  
  2214.           int a[2][2] = { 0, 1, 2, 3 };
  2215.           int b[2][2] = { { 0, 1 }, { 2, 3 } };
  2216.  
  2217. `-Wparentheses'
  2218.      Warn if parentheses are omitted in certain contexts, such as when
  2219.      there is an assignment in a context where a truth value is
  2220.      expected, or when operators are nested whose precedence people
  2221.      often get confused about.
  2222.  
  2223.      Also warn about constructions where there may be confusion to which
  2224.      `if' statement an `else' branch belongs.  Here is an example of
  2225.      such a case:
  2226.  
  2227.           {
  2228.             if (a)
  2229.               if (b)
  2230.                 foo ();
  2231.             else
  2232.               bar ();
  2233.           }
  2234.  
  2235.      In C, every `else' branch belongs to the innermost possible `if'
  2236.      statement, which in this example is `if (b)'.  This is often not
  2237.      what the programmer expected, as illustrated in the above example
  2238.      by indentation the programmer chose.  When there is the potential
  2239.      for this confusion, GCC will issue a warning when this flag is
  2240.      specified.  To eliminate the warning, add explicit braces around
  2241.      the innermost `if' statement so there is no way the `else' could
  2242.      belong to the enclosing `if'.  The resulting code would look like
  2243.      this:
  2244.  
  2245.           {
  2246.             if (a)
  2247.               {
  2248.                 if (b)
  2249.                   foo ();
  2250.                 else
  2251.                   bar ();
  2252.               }
  2253.           }
  2254.  
  2255. `-Wsequence-point'
  2256.      Warn about code that may have undefined semantics because of
  2257.      violations of sequence point rules in the C standard.
  2258.  
  2259.      The C standard defines the order in which expressions in a C
  2260.      program are evaluated in terms of "sequence points", which
  2261.      represent a partial ordering between the execution of parts of the
  2262.      program: those executed before the sequence point, and those
  2263.      executed after it.  These occur after the evaluation of a full
  2264.      expression (one which is not part of a larger expression), after
  2265.      the evaluation of the first operand of a `&&', `||', `? :' or `,'
  2266.      (comma) operator, before a function is called (but after the
  2267.      evaluation of its arguments and the expression denoting the called
  2268.      function), and in certain other places.  Other than as expressed
  2269.      by the sequence point rules, the order of evaluation of
  2270.      subexpressions of an expression is not specified.  All these rules
  2271.      describe only a partial order rather than a total order, since,
  2272.      for example, if two functions are called within one expression
  2273.      with no sequence point between them, the order in which the
  2274.      functions are called is not specified.  However, the standards
  2275.      committee have ruled that function calls do not overlap.
  2276.  
  2277.      It is not specified when between sequence points modifications to
  2278.      the values of objects take effect.  Programs whose behavior
  2279.      depends on this have undefined behavior; the C standard specifies
  2280.      that "Between the previous and next sequence point an object shall
  2281.      have its stored value modified at most once by the evaluation of
  2282.      an expression.  Furthermore, the prior value shall be read only to
  2283.      determine the value to be stored.".  If a program breaks these
  2284.      rules, the results on any particular implementation are entirely
  2285.      unpredictable.
  2286.  
  2287.      Examples of code with undefined behavior are `a = a++;', `a[n] =
  2288.      b[n++]' and `a[i++] = i;'.  Some more complicated cases are not
  2289.      diagnosed by this option, and it may give an occasional false
  2290.      positive result, but in general it has been found fairly effective
  2291.      at detecting this sort of problem in programs.
  2292.  
  2293.      The present implementation of this option only works for C
  2294.      programs.  A future implementation may also work for C++ programs.
  2295.  
  2296.      The C standard is worded confusingly, therefore there is some
  2297.      debate over the precise meaning of the sequence point rules in
  2298.      subtle cases.  Links to discussions of the problem, including
  2299.      proposed formal definitions, may be found on our readings page, at
  2300.      `http://gcc.gnu.org/readings.html'.
  2301.  
  2302. `-Wreturn-type'
  2303.      Warn whenever a function is defined with a return-type that
  2304.      defaults to `int'.  Also warn about any `return' statement with no
  2305.      return-value in a function whose return-type is not `void'.
  2306.  
  2307.      For C++, a function without return type always produces a
  2308.      diagnostic message, even when `-Wno-return-type' is specified.
  2309.      The only exceptions are `main' and functions defined in system
  2310.      headers.
  2311.  
  2312. `-Wswitch'
  2313.      Warn whenever a `switch' statement has an index of enumeral type
  2314.      and lacks a `case' for one or more of the named codes of that
  2315.      enumeration.  (The presence of a `default' label prevents this
  2316.      warning.)  `case' labels outside the enumeration range also
  2317.      provoke warnings when this option is used.
  2318.  
  2319. `-Wswitch-default'
  2320.      Warn whenever a `switch' statement does not have a `default' case.
  2321.  
  2322. `-Wswitch-enum'
  2323.      Warn whenever a `switch' statement has an index of enumeral type
  2324.      and lacks a `case' for one or more of the named codes of that
  2325.      enumeration.  `case' labels outside the enumeration range also
  2326.      provoke warnings when this option is used.
  2327.  
  2328. `-Wtrigraphs'
  2329.      Warn if any trigraphs are encountered that might change the
  2330.      meaning of the program (trigraphs within comments are not warned
  2331.      about).
  2332.  
  2333. `-Wunused-function'
  2334.      Warn whenever a static function is declared but not defined or a
  2335.      non\-inline static function is unused.
  2336.  
  2337. `-Wunused-label'
  2338.      Warn whenever a label is declared but not used.
  2339.  
  2340.      To suppress this warning use the `unused' attribute (*note
  2341.      Variable Attributes::).
  2342.  
  2343. `-Wunused-parameter'
  2344.      Warn whenever a function parameter is unused aside from its
  2345.      declaration.
  2346.  
  2347.      To suppress this warning use the `unused' attribute (*note
  2348.      Variable Attributes::).
  2349.  
  2350. `-Wunused-variable'
  2351.      Warn whenever a local variable or non-constant static variable is
  2352.      unused aside from its declaration
  2353.  
  2354.      To suppress this warning use the `unused' attribute (*note
  2355.      Variable Attributes::).
  2356.  
  2357. `-Wunused-value'
  2358.      Warn whenever a statement computes a result that is explicitly not
  2359.      used.
  2360.  
  2361.      To suppress this warning cast the expression to `void'.
  2362.  
  2363. `-Wunused'
  2364.      All the above `-Wunused' options combined.
  2365.  
  2366.      In order to get a warning about an unused function parameter, you
  2367.      must either specify `-Wextra -Wunused' (note that `-Wall' implies
  2368.      `-Wunused'), or separately specify `-Wunused-parameter'.
  2369.  
  2370. `-Wuninitialized'
  2371.      Warn if an automatic variable is used without first being
  2372.      initialized or if a variable may be clobbered by a `setjmp' call.
  2373.  
  2374.      These warnings are possible only in optimizing compilation,
  2375.      because they require data flow information that is computed only
  2376.      when optimizing.  If you don't specify `-O', you simply won't get
  2377.      these warnings.
  2378.  
  2379.      If you want to warn about code which uses the uninitialized value
  2380.      of the variable in its own initializer, use the `-Winit-self'
  2381.      option.
  2382.  
  2383.      These warnings occur only for variables that are candidates for
  2384.      register allocation.  Therefore, they do not occur for a variable
  2385.      that is declared `volatile', or whose address is taken, or whose
  2386.      size is other than 1, 2, 4 or 8 bytes.  Also, they do not occur for
  2387.      structures, unions or arrays, even when they are in registers.
  2388.  
  2389.      Note that there may be no warning about a variable that is used
  2390.      only to compute a value that itself is never used, because such
  2391.      computations may be deleted by data flow analysis before the
  2392.      warnings are printed.
  2393.  
  2394.      These warnings are made optional because GCC is not smart enough
  2395.      to see all the reasons why the code might be correct despite
  2396.      appearing to have an error.  Here is one example of how this can
  2397.      happen:
  2398.  
  2399.           {
  2400.             int x;
  2401.             switch (y)
  2402.               {
  2403.               case 1: x = 1;
  2404.                 break;
  2405.               case 2: x = 4;
  2406.                 break;
  2407.               case 3: x = 5;
  2408.               }
  2409.             foo (x);
  2410.           }
  2411.  
  2412.      If the value of `y' is always 1, 2 or 3, then `x' is always
  2413.      initialized, but GCC doesn't know this.  Here is another common
  2414.      case:
  2415.  
  2416.           {
  2417.             int save_y;
  2418.             if (change_y) save_y = y, y = new_y;
  2419.             ...
  2420.             if (change_y) y = save_y;
  2421.           }
  2422.  
  2423.      This has no bug because `save_y' is used only if it is set.
  2424.  
  2425.      This option also warns when a non-volatile automatic variable
  2426.      might be changed by a call to `longjmp'.  These warnings as well
  2427.      are possible only in optimizing compilation.
  2428.  
  2429.      The compiler sees only the calls to `setjmp'.  It cannot know
  2430.      where `longjmp' will be called; in fact, a signal handler could
  2431.      call it at any point in the code.  As a result, you may get a
  2432.      warning even when there is in fact no problem because `longjmp'
  2433.      cannot in fact be called at the place which would cause a problem.
  2434.  
  2435.      Some spurious warnings can be avoided if you declare all the
  2436.      functions you use that never return as `noreturn'.  *Note Function
  2437.      Attributes::.
  2438.  
  2439. `-Wunknown-pragmas'
  2440.      Warn when a #pragma directive is encountered which is not
  2441.      understood by GCC.  If this command line option is used, warnings
  2442.      will even be issued for unknown pragmas in system header files.
  2443.      This is not the case if the warnings were only enabled by the
  2444.      `-Wall' command line option.
  2445.  
  2446. `-Wstrict-aliasing'
  2447.      This option is only active when `-fstrict-aliasing' is active.  It
  2448.      warns about code which might break the strict aliasing rules that
  2449.      the compiler is using for optimization. The warning does not catch
  2450.      all cases, but does attempt to catch the more common pitfalls. It
  2451.      is included in `-Wall'.
  2452.  
  2453. `-Wall'
  2454.      All of the above `-W' options combined.  This enables all the
  2455.      warnings about constructions that some users consider
  2456.      questionable, and that are easy to avoid (or modify to prevent the
  2457.      warning), even in conjunction with macros.  This also enables some
  2458.      language-specific warnings described in *Note C++ Dialect
  2459.      Options:: and *Note Objective-C Dialect Options::.
  2460.  
  2461.  The following `-W...' options are not implied by `-Wall'.  Some of
  2462. them warn about constructions that users generally do not consider
  2463. questionable, but which occasionally you might wish to check for;
  2464. others warn about constructions that are necessary or hard to avoid in
  2465. some cases, and there is no simple way to modify the code to suppress
  2466. the warning.
  2467.  
  2468. `-Wextra'
  2469.      (This option used to be called `-W'.  The older name is still
  2470.      supported, but the newer name is more descriptive.)  Print extra
  2471.      warning messages for these events:
  2472.  
  2473.         * A function can return either with or without a value.
  2474.           (Falling off the end of the function body is considered
  2475.           returning without a value.)  For example, this function would
  2476.           evoke such a warning:
  2477.  
  2478.                foo (a)
  2479.                {
  2480.                  if (a > 0)
  2481.                    return a;
  2482.                }
  2483.  
  2484.         * An expression-statement or the left-hand side of a comma
  2485.           expression contains no side effects.  To suppress the
  2486.           warning, cast the unused expression to void.  For example, an
  2487.           expression such as `x[i,j]' will cause a warning, but
  2488.           `x[(void)i,j]' will not.
  2489.  
  2490.         * An unsigned value is compared against zero with `<' or `>='.
  2491.  
  2492.         * A comparison like `x<=y<=z' appears; this is equivalent to
  2493.           `(x<=y ? 1 : 0) <= z', which is a different interpretation
  2494.           from that of ordinary mathematical notation.
  2495.  
  2496.         * Storage-class specifiers like `static' are not the first
  2497.           things in a declaration.  According to the C Standard, this
  2498.           usage is obsolescent.
  2499.  
  2500.         * The return type of a function has a type qualifier such as
  2501.           `const'.  Such a type qualifier has no effect, since the
  2502.           value returned by a function is not an lvalue.  (But don't
  2503.           warn about the GNU extension of `volatile void' return types.
  2504.           That extension will be warned about if `-pedantic' is
  2505.           specified.)
  2506.  
  2507.         * If `-Wall' or `-Wunused' is also specified, warn about unused
  2508.           arguments.
  2509.  
  2510.         * A comparison between signed and unsigned values could produce
  2511.           an incorrect result when the signed value is converted to
  2512.           unsigned.  (But don't warn if `-Wno-sign-compare' is also
  2513.           specified.)
  2514.  
  2515.         * An aggregate has an initializer which does not initialize all
  2516.           members.  For example, the following code would cause such a
  2517.           warning, because `x.h' would be implicitly initialized to
  2518.           zero:
  2519.  
  2520.                struct s { int f, g, h; };
  2521.                struct s x = { 3, 4 };
  2522.  
  2523.         * A function parameter is declared without a type specifier in
  2524.           K&R-style functions:
  2525.  
  2526.                void foo(bar) { }
  2527.  
  2528.         * An empty body occurs in an `if' or `else' statement.
  2529.  
  2530.         * A pointer is compared against integer zero with `<', `<=',
  2531.           `>', or `>='.
  2532.  
  2533.         * A variable might be changed by `longjmp' or `vfork'.
  2534.  
  2535.         * Any of several floating-point events that often indicate
  2536.           errors, such as overflow, underflow, loss of precision, etc.
  2537.  
  2538.         * (C++ only) An enumerator and a non-enumerator both appear in
  2539.           a conditional expression.
  2540.  
  2541.         * (C++ only) A non-static reference or non-static `const'
  2542.           member appears in a class without constructors.
  2543.  
  2544.         * (C++ only) Ambiguous virtual bases.
  2545.  
  2546.         * (C++ only) Subscripting an array which has been declared
  2547.           `register'.
  2548.  
  2549.         * (C++ only) Taking the address of a variable which has been
  2550.           declared `register'.
  2551.  
  2552.         * (C++ only) A base class is not initialized in a derived
  2553.           class' copy constructor.
  2554.  
  2555. `-Wno-div-by-zero'
  2556.      Do not warn about compile-time integer division by zero.  Floating
  2557.      point division by zero is not warned about, as it can be a
  2558.      legitimate way of obtaining infinities and NaNs.
  2559.  
  2560. `-Wsystem-headers'
  2561.      Print warning messages for constructs found in system header files.
  2562.      Warnings from system headers are normally suppressed, on the
  2563.      assumption that they usually do not indicate real problems and
  2564.      would only make the compiler output harder to read.  Using this
  2565.      command line option tells GCC to emit warnings from system headers
  2566.      as if they occurred in user code.  However, note that using
  2567.      `-Wall' in conjunction with this option will _not_ warn about
  2568.      unknown pragmas in system headers--for that, `-Wunknown-pragmas'
  2569.      must also be used.
  2570.  
  2571. `-Wfloat-equal'
  2572.      Warn if floating point values are used in equality comparisons.
  2573.  
  2574.      The idea behind this is that sometimes it is convenient (for the
  2575.      programmer) to consider floating-point values as approximations to
  2576.      infinitely precise real numbers.  If you are doing this, then you
  2577.      need to compute (by analyzing the code, or in some other way) the
  2578.      maximum or likely maximum error that the computation introduces,
  2579.      and allow for it when performing comparisons (and when producing
  2580.      output, but that's a different problem).  In particular, instead
  2581.      of testing for equality, you would check to see whether the two
  2582.      values have ranges that overlap; and this is done with the
  2583.      relational operators, so equality comparisons are probably
  2584.      mistaken.
  2585.  
  2586. `-Wtraditional (C only)'
  2587.      Warn about certain constructs that behave differently in
  2588.      traditional and ISO C.  Also warn about ISO C constructs that have
  2589.      no traditional C equivalent, and/or problematic constructs which
  2590.      should be avoided.
  2591.  
  2592.         * Macro parameters that appear within string literals in the
  2593.           macro body.  In traditional C macro replacement takes place
  2594.           within string literals, but does not in ISO C.
  2595.  
  2596.         * In traditional C, some preprocessor directives did not exist.
  2597.           Traditional preprocessors would only consider a line to be a
  2598.           directive if the `#' appeared in column 1 on the line.
  2599.           Therefore `-Wtraditional' warns about directives that
  2600.           traditional C understands but would ignore because the `#'
  2601.           does not appear as the first character on the line.  It also
  2602.           suggests you hide directives like `#pragma' not understood by
  2603.           traditional C by indenting them.  Some traditional
  2604.           implementations would not recognize `#elif', so it suggests
  2605.           avoiding it altogether.
  2606.  
  2607.         * A function-like macro that appears without arguments.
  2608.  
  2609.         * The unary plus operator.
  2610.  
  2611.         * The `U' integer constant suffix, or the `F' or `L' floating
  2612.           point constant suffixes.  (Traditional C does support the `L'
  2613.           suffix on integer constants.)  Note, these suffixes appear in
  2614.           macros defined in the system headers of most modern systems,
  2615.           e.g. the `_MIN'/`_MAX' macros in `<limits.h>'.  Use of these
  2616.           macros in user code might normally lead to spurious warnings,
  2617.           however GCC's integrated preprocessor has enough context to
  2618.           avoid warning in these cases.
  2619.  
  2620.         * A function declared external in one block and then used after
  2621.           the end of the block.
  2622.  
  2623.         * A `switch' statement has an operand of type `long'.
  2624.  
  2625.         * A non-`static' function declaration follows a `static' one.
  2626.           This construct is not accepted by some traditional C
  2627.           compilers.
  2628.  
  2629.         * The ISO type of an integer constant has a different width or
  2630.           signedness from its traditional type.  This warning is only
  2631.           issued if the base of the constant is ten.  I.e. hexadecimal
  2632.           or octal values, which typically represent bit patterns, are
  2633.           not warned about.
  2634.  
  2635.         * Usage of ISO string concatenation is detected.
  2636.  
  2637.         * Initialization of automatic aggregates.
  2638.  
  2639.         * Identifier conflicts with labels.  Traditional C lacks a
  2640.           separate namespace for labels.
  2641.  
  2642.         * Initialization of unions.  If the initializer is zero, the
  2643.           warning is omitted.  This is done under the assumption that
  2644.           the zero initializer in user code appears conditioned on e.g.
  2645.           `__STDC__' to avoid missing initializer warnings and relies
  2646.           on default initialization to zero in the traditional C case.
  2647.  
  2648.         * Conversions by prototypes between fixed/floating point values
  2649.           and vice versa.  The absence of these prototypes when
  2650.           compiling with traditional C would cause serious problems.
  2651.           This is a subset of the possible conversion warnings, for the
  2652.           full set use `-Wconversion'.
  2653.  
  2654.         * Use of ISO C style function definitions.  This warning
  2655.           intentionally is _not_ issued for prototype declarations or
  2656.           variadic functions because these ISO C features will appear
  2657.           in your code when using libiberty's traditional C
  2658.           compatibility macros, `PARAMS' and `VPARAMS'.  This warning
  2659.           is also bypassed for nested functions because that feature is
  2660.           already a GCC extension and thus not relevant to traditional
  2661.           C compatibility.
  2662.  
  2663. `-Wdeclaration-after-statement (C only)'
  2664.      Warn when a declaration is found after a statement in a block.
  2665.      This construct, known from C++, was introduced with ISO C99 and is
  2666.      by default allowed in GCC.  It is not supported by ISO C90 and was
  2667.      not supported by GCC versions before GCC 3.0.  *Note Mixed
  2668.      Declarations::.
  2669.  
  2670. `-Wundef'
  2671.      Warn if an undefined identifier is evaluated in an `#if' directive.
  2672.  
  2673. `-Wendif-labels'
  2674.      Warn whenever an `#else' or an `#endif' are followed by text.
  2675.  
  2676. `-Wshadow'
  2677.      Warn whenever a local variable shadows another local variable,
  2678.      parameter or global variable or whenever a built-in function is
  2679.      shadowed.
  2680.  
  2681. `-Wlarger-than-LEN'
  2682.      Warn whenever an object of larger than LEN bytes is defined.
  2683.  
  2684. `-Wpointer-arith'
  2685.      Warn about anything that depends on the "size of" a function type
  2686.      or of `void'.  GNU C assigns these types a size of 1, for
  2687.      convenience in calculations with `void *' pointers and pointers to
  2688.      functions.
  2689.  
  2690. `-Wbad-function-cast (C only)'
  2691.      Warn whenever a function call is cast to a non-matching type.  For
  2692.      example, warn if `int malloc()' is cast to `anything *'.
  2693.  
  2694. `-Wcast-qual'
  2695.      Warn whenever a pointer is cast so as to remove a type qualifier
  2696.      from the target type.  For example, warn if a `const char *' is
  2697.      cast to an ordinary `char *'.
  2698.  
  2699. `-Wcast-align'
  2700.      Warn whenever a pointer is cast such that the required alignment
  2701.      of the target is increased.  For example, warn if a `char *' is
  2702.      cast to an `int *' on machines where integers can only be accessed
  2703.      at two- or four-byte boundaries.
  2704.  
  2705. `-Wwrite-strings'
  2706.      When compiling C, give string constants the type `const
  2707.      char[LENGTH]' so that copying the address of one into a
  2708.      non-`const' `char *' pointer will get a warning; when compiling
  2709.      C++, warn about the deprecated conversion from string constants to
  2710.      `char *'.  These warnings will help you find at compile time code
  2711.      that can try to write into a string constant, but only if you have
  2712.      been very careful about using `const' in declarations and
  2713.      prototypes.  Otherwise, it will just be a nuisance; this is why we
  2714.      did not make `-Wall' request these warnings.
  2715.  
  2716. `-Wconversion'
  2717.      Warn if a prototype causes a type conversion that is different
  2718.      from what would happen to the same argument in the absence of a
  2719.      prototype.  This includes conversions of fixed point to floating
  2720.      and vice versa, and conversions changing the width or signedness
  2721.      of a fixed point argument except when the same as the default
  2722.      promotion.
  2723.  
  2724.      Also, warn if a negative integer constant expression is implicitly
  2725.      converted to an unsigned type.  For example, warn about the
  2726.      assignment `x = -1' if `x' is unsigned.  But do not warn about
  2727.      explicit casts like `(unsigned) -1'.
  2728.  
  2729. `-Wsign-compare'
  2730.      Warn when a comparison between signed and unsigned values could
  2731.      produce an incorrect result when the signed value is converted to
  2732.      unsigned.  This warning is also enabled by `-Wextra'; to get the
  2733.      other warnings of `-Wextra' without this warning, use `-Wextra
  2734.      -Wno-sign-compare'.
  2735.  
  2736. `-Waggregate-return'
  2737.      Warn if any functions that return structures or unions are defined
  2738.      or called.  (In languages where you can return an array, this also
  2739.      elicits a warning.)
  2740.  
  2741. `-Wstrict-prototypes (C only)'
  2742.      Warn if a function is declared or defined without specifying the
  2743.      argument types.  (An old-style function definition is permitted
  2744.      without a warning if preceded by a declaration which specifies the
  2745.      argument types.)
  2746.  
  2747. `-Wold-style-definition (C only)'
  2748.      Warn if an old-style function definition is used.  A warning is
  2749.      given even if there is a previous prototype.
  2750.  
  2751. `-Wmissing-prototypes (C only)'
  2752.      Warn if a global function is defined without a previous prototype
  2753.      declaration.  This warning is issued even if the definition itself
  2754.      provides a prototype.  The aim is to detect global functions that
  2755.      fail to be declared in header files.
  2756.  
  2757. `-Wmissing-declarations (C only)'
  2758.      Warn if a global function is defined without a previous
  2759.      declaration.  Do so even if the definition itself provides a
  2760.      prototype.  Use this option to detect global functions that are
  2761.      not declared in header files.
  2762.  
  2763. `-Wmissing-noreturn'
  2764.      Warn about functions which might be candidates for attribute
  2765.      `noreturn'.  Note these are only possible candidates, not absolute
  2766.      ones.  Care should be taken to manually verify functions actually
  2767.      do not ever return before adding the `noreturn' attribute,
  2768.      otherwise subtle code generation bugs could be introduced.  You
  2769.      will not get a warning for `main' in hosted C environments.
  2770.  
  2771. `-Wmissing-format-attribute'
  2772.      If `-Wformat' is enabled, also warn about functions which might be
  2773.      candidates for `format' attributes.  Note these are only possible
  2774.      candidates, not absolute ones.  GCC will guess that `format'
  2775.      attributes might be appropriate for any function that calls a
  2776.      function like `vprintf' or `vscanf', but this might not always be
  2777.      the case, and some functions for which `format' attributes are
  2778.      appropriate may not be detected.  This option has no effect unless
  2779.      `-Wformat' is enabled (possibly by `-Wall').
  2780.  
  2781. `-Wno-multichar'
  2782.      Do not warn if a multicharacter constant (`'FOOF'') is used.
  2783.      Usually they indicate a typo in the user's code, as they have
  2784.      implementation-defined values, and should not be used in portable
  2785.      code.
  2786.  
  2787. `-Wno-deprecated-declarations'
  2788.      Do not warn about uses of functions, variables, and types marked as
  2789.      deprecated by using the `deprecated' attribute.  (*note Function
  2790.      Attributes::, *note Variable Attributes::, *note Type
  2791.      Attributes::.)
  2792.  
  2793. `-Wpacked'
  2794.      Warn if a structure is given the packed attribute, but the packed
  2795.      attribute has no effect on the layout or size of the structure.
  2796.      Such structures may be mis-aligned for little benefit.  For
  2797.      instance, in this code, the variable `f.x' in `struct bar' will be
  2798.      misaligned even though `struct bar' does not itself have the
  2799.      packed attribute:
  2800.  
  2801.           struct foo {
  2802.             int x;
  2803.             char a, b, c, d;
  2804.           } __attribute__((packed));
  2805.           struct bar {
  2806.             char z;
  2807.             struct foo f;
  2808.           };
  2809.  
  2810. `-Wpadded'
  2811.      Warn if padding is included in a structure, either to align an
  2812.      element of the structure or to align the whole structure.
  2813.      Sometimes when this happens it is possible to rearrange the fields
  2814.      of the structure to reduce the padding and so make the structure
  2815.      smaller.
  2816.  
  2817. `-Wredundant-decls'
  2818.      Warn if anything is declared more than once in the same scope,
  2819.      even in cases where multiple declaration is valid and changes
  2820.      nothing.
  2821.  
  2822. `-Wnested-externs (C only)'
  2823.      Warn if an `extern' declaration is encountered within a function.
  2824.  
  2825. `-Wunreachable-code'
  2826.      Warn if the compiler detects that code will never be executed.
  2827.  
  2828.      This option is intended to warn when the compiler detects that at
  2829.      least a whole line of source code will never be executed, because
  2830.      some condition is never satisfied or because it is after a
  2831.      procedure that never returns.
  2832.  
  2833.      It is possible for this option to produce a warning even though
  2834.      there are circumstances under which part of the affected line can
  2835.      be executed, so care should be taken when removing
  2836.      apparently-unreachable code.
  2837.  
  2838.      For instance, when a function is inlined, a warning may mean that
  2839.      the line is unreachable in only one inlined copy of the function.
  2840.  
  2841.      This option is not made part of `-Wall' because in a debugging
  2842.      version of a program there is often substantial code which checks
  2843.      correct functioning of the program and is, hopefully, unreachable
  2844.      because the program does work.  Another common use of unreachable
  2845.      code is to provide behavior which is selectable at compile-time.
  2846.  
  2847. `-Winline'
  2848.      Warn if a function can not be inlined and it was declared as
  2849.      inline.  Even with this option, the compiler will not warn about
  2850.      failures to inline functions declared in system headers.
  2851.  
  2852.      The compiler uses a variety of heuristics to determine whether or
  2853.      not to inline a function.  For example, the compiler takes into
  2854.      account the size of the function being inlined and the the amount
  2855.      of inlining that has already been done in the current function.
  2856.      Therefore, seemingly insignificant changes in the source program
  2857.      can cause the warnings produced by `-Winline' to appear or
  2858.      disappear.
  2859.  
  2860. `-Wno-invalid-offsetof (C++ only)'
  2861.      Suppress warnings from applying the `offsetof' macro to a non-POD
  2862.      type.  According to the 1998 ISO C++ standard, applying `offsetof'
  2863.      to a non-POD type is undefined.  In existing C++ implementations,
  2864.      however, `offsetof' typically gives meaningful results even when
  2865.      applied to certain kinds of non-POD types. (Such as a simple
  2866.      `struct' that fails to be a POD type only by virtue of having a
  2867.      constructor.)  This flag is for users who are aware that they are
  2868.      writing nonportable code and who have deliberately chosen to
  2869.      ignore the warning about it.
  2870.  
  2871.      The restrictions on `offsetof' may be relaxed in a future version
  2872.      of the C++ standard.
  2873.  
  2874. `-Winvalid-pch'
  2875.      Warn if a precompiled header (*note Precompiled Headers::) is
  2876.      found in the search path but can't be used.
  2877.  
  2878. `-Wlong-long'
  2879.      Warn if `long long' type is used.  This is default.  To inhibit
  2880.      the warning messages, use `-Wno-long-long'.  Flags `-Wlong-long'
  2881.      and `-Wno-long-long' are taken into account only when `-pedantic'
  2882.      flag is used.
  2883.  
  2884. `-Wdisabled-optimization'
  2885.      Warn if a requested optimization pass is disabled.  This warning
  2886.      does not generally indicate that there is anything wrong with your
  2887.      code; it merely indicates that GCC's optimizers were unable to
  2888.      handle the code effectively.  Often, the problem is that your code
  2889.      is too big or too complex; GCC will refuse to optimize programs
  2890.      when the optimization itself is likely to take inordinate amounts
  2891.      of time.
  2892.  
  2893. `-Werror'
  2894.      Make all warnings into errors.
  2895.  
  2896. 
  2897. File: gcc,  Node: Debugging Options,  Next: Optimize Options,  Prev: Warning Options,  Up: Invoking GCC
  2898.  
  2899. 3.9 Options for Debugging Your Program or GCC
  2900. =============================================
  2901.  
  2902. GCC has various special options that are used for debugging either your
  2903. program or GCC:
  2904.  
  2905. `-g'
  2906.      Produce debugging information in the operating system's native
  2907.      format (stabs, COFF, XCOFF, or DWARF).  GDB can work with this
  2908.      debugging information.
  2909.  
  2910.      On most systems that use stabs format, `-g' enables use of extra
  2911.      debugging information that only GDB can use; this extra information
  2912.      makes debugging work better in GDB but will probably make other
  2913.      debuggers crash or refuse to read the program.  If you want to
  2914.      control for certain whether to generate the extra information, use
  2915.      `-gstabs+', `-gstabs', `-gxcoff+', `-gxcoff', or `-gvms' (see
  2916.      below).
  2917.  
  2918.      Unlike most other C compilers, GCC allows you to use `-g' with
  2919.      `-O'.  The shortcuts taken by optimized code may occasionally
  2920.      produce surprising results: some variables you declared may not
  2921.      exist at all; flow of control may briefly move where you did not
  2922.      expect it; some statements may not be executed because they
  2923.      compute constant results or their values were already at hand;
  2924.      some statements may execute in different places because they were
  2925.      moved out of loops.
  2926.  
  2927.      Nevertheless it proves possible to debug optimized output.  This
  2928.      makes it reasonable to use the optimizer for programs that might
  2929.      have bugs.
  2930.  
  2931.      The following options are useful when GCC is generated with the
  2932.      capability for more than one debugging format.
  2933.  
  2934. `-ggdb'
  2935.      Produce debugging information for use by GDB.  This means to use
  2936.      the most expressive format available (DWARF 2, stabs, or the
  2937.      native format if neither of those are supported), including GDB
  2938.      extensions if at all possible.
  2939.  
  2940. `-gstabs'
  2941.      Produce debugging information in stabs format (if that is
  2942.      supported), without GDB extensions.  This is the format used by
  2943.      DBX on most BSD systems.  On MIPS, Alpha and System V Release 4
  2944.      systems this option produces stabs debugging output which is not
  2945.      understood by DBX or SDB.  On System V Release 4 systems this
  2946.      option requires the GNU assembler.
  2947.  
  2948. `-feliminate-unused-debug-symbols'
  2949.      Produce debugging information in stabs format (if that is
  2950.      supported), for only symbols that are actually used.
  2951.  
  2952. `-gstabs+'
  2953.      Produce debugging information in stabs format (if that is
  2954.      supported), using GNU extensions understood only by the GNU
  2955.      debugger (GDB).  The use of these extensions is likely to make
  2956.      other debuggers crash or refuse to read the program.
  2957.  
  2958. `-gcoff'
  2959.      Produce debugging information in COFF format (if that is
  2960.      supported).  This is the format used by SDB on most System V
  2961.      systems prior to System V Release 4.
  2962.  
  2963. `-gxcoff'
  2964.      Produce debugging information in XCOFF format (if that is
  2965.      supported).  This is the format used by the DBX debugger on IBM
  2966.      RS/6000 systems.
  2967.  
  2968. `-gxcoff+'
  2969.      Produce debugging information in XCOFF format (if that is
  2970.      supported), using GNU extensions understood only by the GNU
  2971.      debugger (GDB).  The use of these extensions is likely to make
  2972.      other debuggers crash or refuse to read the program, and may cause
  2973.      assemblers other than the GNU assembler (GAS) to fail with an
  2974.      error.
  2975.  
  2976. `-gdwarf-2'
  2977.      Produce debugging information in DWARF version 2 format (if that is
  2978.      supported).  This is the format used by DBX on IRIX 6.
  2979.  
  2980. `-gvms'
  2981.      Produce debugging information in VMS debug format (if that is
  2982.      supported).  This is the format used by DEBUG on VMS systems.
  2983.  
  2984. `-gLEVEL'
  2985. `-ggdbLEVEL'
  2986. `-gstabsLEVEL'
  2987. `-gcoffLEVEL'
  2988. `-gxcoffLEVEL'
  2989. `-gvmsLEVEL'
  2990.      Request debugging information and also use LEVEL to specify how
  2991.      much information.  The default level is 2.
  2992.  
  2993.      Level 1 produces minimal information, enough for making backtraces
  2994.      in parts of the program that you don't plan to debug.  This
  2995.      includes descriptions of functions and external variables, but no
  2996.      information about local variables and no line numbers.
  2997.  
  2998.      Level 3 includes extra information, such as all the macro
  2999.      definitions present in the program.  Some debuggers support macro
  3000.      expansion when you use `-g3'.
  3001.  
  3002.      Note that in order to avoid confusion between DWARF1 debug level 2,
  3003.      and DWARF2 `-gdwarf-2' does not accept a concatenated debug level.
  3004.      Instead use an additional `-gLEVEL' option to change the debug
  3005.      level for DWARF2.
  3006.  
  3007. `-feliminate-dwarf2-dups'
  3008.      Compress DWARF2 debugging information by eliminating duplicated
  3009.      information about each symbol.  This option only makes sense when
  3010.      generating DWARF2 debugging information with `-gdwarf-2'.
  3011.  
  3012. `-p'
  3013.      Generate extra code to write profile information suitable for the
  3014.      analysis program `prof'.  You must use this option when compiling
  3015.      the source files you want data about, and you must also use it when
  3016.      linking.
  3017.  
  3018. `-pg'
  3019.      Generate extra code to write profile information suitable for the
  3020.      analysis program `gprof'.  You must use this option when compiling
  3021.      the source files you want data about, and you must also use it when
  3022.      linking.
  3023.  
  3024. `-Q'
  3025.      Makes the compiler print out each function name as it is compiled,
  3026.      and print some statistics about each pass when it finishes.
  3027.  
  3028. `-ftime-report'
  3029.      Makes the compiler print some statistics about the time consumed
  3030.      by each pass when it finishes.
  3031.  
  3032. `-fmem-report'
  3033.      Makes the compiler print some statistics about permanent memory
  3034.      allocation when it finishes.
  3035.  
  3036. `-fprofile-arcs'
  3037.      Add code so that program flow "arcs" are instrumented.  During
  3038.      execution the program records how many times each branch and call
  3039.      is executed and how many times it is taken or returns.  When the
  3040.      compiled program exits it saves this data to a file called
  3041.      `AUXNAME.gcda' for each source file. The data may be used for
  3042.      profile-directed optimizations (`-fbranch-probabilities'), or for
  3043.      test coverage analysis (`-ftest-coverage'). Each object file's
  3044.      AUXNAME is generated from the name of the output file, if
  3045.      explicitly specified and it is not the final executable, otherwise
  3046.      it is the basename of the source file. In both cases any suffix is
  3047.      removed (e.g.  `foo.gcda' for input file `dir/foo.c', or
  3048.      `dir/foo.gcda' for output file specified as `-o dir/foo.o').
  3049.  
  3050.         * Compile the source files with `-fprofile-arcs' plus
  3051.           optimization and code generation options. For test coverage
  3052.           analysis, use the additional `-ftest-coverage' option. You do
  3053.           not need to profile every source file in a program.
  3054.  
  3055.         * Link your object files with `-lgcov' or `-fprofile-arcs' (the
  3056.           latter implies the former).
  3057.  
  3058.         * Run the program on a representative workload to generate the
  3059.           arc profile information. This may be repeated any number of
  3060.           times. You can run concurrent instances of your program, and
  3061.           provided that the file system supports locking, the data
  3062.           files will be correctly updated. Also `fork' calls are
  3063.           detected and correctly handled (double counting will not
  3064.           happen).
  3065.  
  3066.         * For profile-directed optimizations, compile the source files
  3067.           again with the same optimization and code generation options
  3068.           plus `-fbranch-probabilities' (*note Options that Control
  3069.           Optimization: Optimize Options.).
  3070.  
  3071.         * For test coverage analysis, use `gcov' to produce human
  3072.           readable information from the `.gcno' and `.gcda' files.
  3073.           Refer to the `gcov' documentation for further information.
  3074.  
  3075.  
  3076.      With `-fprofile-arcs', for each function of your program GCC
  3077.      creates a program flow graph, then finds a spanning tree for the
  3078.      graph.  Only arcs that are not on the spanning tree have to be
  3079.      instrumented: the compiler adds code to count the number of times
  3080.      that these arcs are executed.  When an arc is the only exit or
  3081.      only entrance to a block, the instrumentation code can be added to
  3082.      the block; otherwise, a new basic block must be created to hold
  3083.      the instrumentation code.
  3084.  
  3085. `-ftest-coverage'
  3086.      Produce a notes file that the `gcov' code-coverage utility (*note
  3087.      `gcov'--a Test Coverage Program: Gcov.) can use to show program
  3088.      coverage. Each source file's note file is called `AUXNAME.gcno'.
  3089.      Refer to the `-fprofile-arcs' option above for a description of
  3090.      AUXNAME and instructions on how to generate test coverage data.
  3091.      Coverage data will match the source files more closely, if you do
  3092.      not optimize.
  3093.  
  3094. `-dLETTERS'
  3095.      Says to make debugging dumps during compilation at times specified
  3096.      by LETTERS.  This is used for debugging the compiler.  The file
  3097.      names for most of the dumps are made by appending a pass number
  3098.      and a word to the DUMPNAME. DUMPNAME is generated from the name of
  3099.      the output file, if explicitly specified and it is not an
  3100.      executable, otherwise it is the basename of the source file. In
  3101.      both cases any suffix is removed (e.g.  `foo.01.rtl' or
  3102.      `foo.02.sibling').  Here are the possible letters for use in
  3103.      LETTERS, and their meanings:
  3104.  
  3105.     `A'
  3106.           Annotate the assembler output with miscellaneous debugging
  3107.           information.
  3108.  
  3109.     `b'
  3110.           Dump after computing branch probabilities, to `FILE.12.bp'.
  3111.  
  3112.     `B'
  3113.           Dump after block reordering, to `FILE.31.bbro'.
  3114.  
  3115.     `c'
  3116.           Dump after instruction combination, to the file
  3117.           `FILE.20.combine'.
  3118.  
  3119.     `C'
  3120.           Dump after the first if conversion, to the file `FILE.14.ce1'.
  3121.           Also dump after the second if conversion, to the file
  3122.           `FILE.21.ce2'.
  3123.  
  3124.     `d'
  3125.           Dump after branch target load optimization, to to
  3126.           `FILE.32.btl'.  Also dump after delayed branch scheduling, to
  3127.           `FILE.36.dbr'.
  3128.  
  3129.     `D'
  3130.           Dump all macro definitions, at the end of preprocessing, in
  3131.           addition to normal output.
  3132.  
  3133.     `E'
  3134.           Dump after the third if conversion, to `FILE.30.ce3'.
  3135.  
  3136.     `f'
  3137.           Dump after control and data flow analysis, to `FILE.11.cfg'.
  3138.           Also dump after life analysis, to `FILE.19.life'.
  3139.  
  3140.     `F'
  3141.           Dump after purging `ADDRESSOF' codes, to `FILE.07.addressof'.
  3142.  
  3143.     `g'
  3144.           Dump after global register allocation, to `FILE.25.greg'.
  3145.  
  3146.     `G'
  3147.           Dump after GCSE, to `FILE.08.gcse'.  Also dump after jump
  3148.           bypassing and control flow optimizations, to `FILE.10.bypass'.
  3149.  
  3150.     `h'
  3151.           Dump after finalization of EH handling code, to `FILE.03.eh'.
  3152.  
  3153.     `i'
  3154.           Dump after sibling call optimizations, to `FILE.02.sibling'.
  3155.  
  3156.     `j'
  3157.           Dump after the first jump optimization, to `FILE.04.jump'.
  3158.  
  3159.     `k'
  3160.           Dump after conversion from registers to stack, to
  3161.           `FILE.34.stack'.
  3162.  
  3163.     `l'
  3164.           Dump after local register allocation, to `FILE.24.lreg'.
  3165.  
  3166.     `L'
  3167.           Dump after loop optimization passes, to `FILE.09.loop' and
  3168.           `FILE.16.loop2'.
  3169.  
  3170.     `M'
  3171.           Dump after performing the machine dependent reorganization
  3172.           pass, to `FILE.35.mach'.
  3173.  
  3174.     `n'
  3175.           Dump after register renumbering, to `FILE.29.rnreg'.
  3176.  
  3177.     `N'
  3178.           Dump after the register move pass, to `FILE.22.regmove'.
  3179.  
  3180.     `o'
  3181.           Dump after post-reload optimizations, to `FILE.26.postreload'.
  3182.  
  3183.     `r'
  3184.           Dump after RTL generation, to `FILE.01.rtl'.
  3185.  
  3186.     `R'
  3187.           Dump after the second scheduling pass, to `FILE.33.sched2'.
  3188.  
  3189.     `s'
  3190.           Dump after CSE (including the jump optimization that
  3191.           sometimes follows CSE), to `FILE.06.cse'.
  3192.  
  3193.     `S'
  3194.           Dump after the first scheduling pass, to `FILE.23.sched'.
  3195.  
  3196.     `t'
  3197.           Dump after the second CSE pass (including the jump
  3198.           optimization that sometimes follows CSE), to `FILE.18.cse2'.
  3199.  
  3200.     `T'
  3201.           Dump after running tracer, to `FILE.15.tracer'.
  3202.  
  3203.     `u'
  3204.           Dump after null pointer elimination pass to `FILE.05.null'.
  3205.  
  3206.     `U'
  3207.           Dump callgraph and unit-at-a-time optimization `FILE.00.unit'.
  3208.  
  3209.     `V'
  3210.           Dump after the value profile transformations, to
  3211.           `FILE.13.vpt'.
  3212.  
  3213.     `w'
  3214.           Dump after the second flow pass, to `FILE.27.flow2'.
  3215.  
  3216.     `z'
  3217.           Dump after the peephole pass, to `FILE.28.peephole2'.
  3218.  
  3219.     `Z'
  3220.           Dump after constructing the web, to `FILE.17.web'.
  3221.  
  3222.     `a'
  3223.           Produce all the dumps listed above.
  3224.  
  3225.     `H'
  3226.           Produce a core dump whenever an error occurs.
  3227.  
  3228.     `m'
  3229.           Print statistics on memory usage, at the end of the run, to
  3230.           standard error.
  3231.  
  3232.     `p'
  3233.           Annotate the assembler output with a comment indicating which
  3234.           pattern and alternative was used.  The length of each
  3235.           instruction is also printed.
  3236.  
  3237.     `P'
  3238.           Dump the RTL in the assembler output as a comment before each
  3239.           instruction.  Also turns on `-dp' annotation.
  3240.  
  3241.     `v'
  3242.           For each of the other indicated dump files (except for
  3243.           `FILE.01.rtl'), dump a representation of the control flow
  3244.           graph suitable for viewing with VCG to `FILE.PASS.vcg'.
  3245.  
  3246.     `x'
  3247.           Just generate RTL for a function instead of compiling it.
  3248.           Usually used with `r'.
  3249.  
  3250.     `y'
  3251.           Dump debugging information during parsing, to standard error.
  3252.  
  3253. `-fdump-unnumbered'
  3254.      When doing debugging dumps (see `-d' option above), suppress
  3255.      instruction numbers and line number note output.  This makes it
  3256.      more feasible to use diff on debugging dumps for compiler
  3257.      invocations with different options, in particular with and without
  3258.      `-g'.
  3259.  
  3260. `-fdump-translation-unit (C and C++ only)'
  3261. `-fdump-translation-unit-OPTIONS (C and C++ only)'
  3262.      Dump a representation of the tree structure for the entire
  3263.      translation unit to a file.  The file name is made by appending
  3264.      `.tu' to the source file name.  If the `-OPTIONS' form is used,
  3265.      OPTIONS controls the details of the dump as described for the
  3266.      `-fdump-tree' options.
  3267.  
  3268. `-fdump-class-hierarchy (C++ only)'
  3269. `-fdump-class-hierarchy-OPTIONS (C++ only)'
  3270.      Dump a representation of each class's hierarchy and virtual
  3271.      function table layout to a file.  The file name is made by
  3272.      appending `.class' to the source file name.  If the `-OPTIONS'
  3273.      form is used, OPTIONS controls the details of the dump as
  3274.      described for the `-fdump-tree' options.
  3275.  
  3276. `-fdump-tree-SWITCH (C++ only)'
  3277. `-fdump-tree-SWITCH-OPTIONS (C++ only)'
  3278.      Control the dumping at various stages of processing the
  3279.      intermediate language tree to a file.  The file name is generated
  3280.      by appending a switch specific suffix to the source file name.  If
  3281.      the `-OPTIONS' form is used, OPTIONS is a list of `-' separated
  3282.      options that control the details of the dump. Not all options are
  3283.      applicable to all dumps, those which are not meaningful will be
  3284.      ignored. The following options are available
  3285.  
  3286.     `address'
  3287.           Print the address of each node.  Usually this is not
  3288.           meaningful as it changes according to the environment and
  3289.           source file. Its primary use is for tying up a dump file with
  3290.           a debug environment.
  3291.  
  3292.     `slim'
  3293.           Inhibit dumping of members of a scope or body of a function
  3294.           merely because that scope has been reached. Only dump such
  3295.           items when they are directly reachable by some other path.
  3296.  
  3297.     `all'
  3298.           Turn on all options.
  3299.  
  3300.      The following tree dumps are possible:
  3301.     `original'
  3302.           Dump before any tree based optimization, to `FILE.original'.
  3303.  
  3304.     `optimized'
  3305.           Dump after all tree based optimization, to `FILE.optimized'.
  3306.  
  3307.     `inlined'
  3308.           Dump after function inlining, to `FILE.inlined'.
  3309.  
  3310. `-frandom-seed=STRING'
  3311.      This option provides a seed that GCC uses when it would otherwise
  3312.      use random numbers.  It is used to generate certain symbol names
  3313.      that have to be different in every compiled file. It is also used
  3314.      to place unique stamps in coverage data files and the object files
  3315.      that produce them. You can use the `-frandom-seed' option to
  3316.      produce reproducibly identical object files.
  3317.  
  3318.      The STRING should be different for every file you compile.
  3319.  
  3320. `-fsched-verbose=N'
  3321.      On targets that use instruction scheduling, this option controls
  3322.      the amount of debugging output the scheduler prints.  This
  3323.      information is written to standard error, unless `-dS' or `-dR' is
  3324.      specified, in which case it is output to the usual dump listing
  3325.      file, `.sched' or `.sched2' respectively.  However for N greater
  3326.      than nine, the output is always printed to standard error.
  3327.  
  3328.      For N greater than zero, `-fsched-verbose' outputs the same
  3329.      information as `-dRS'.  For N greater than one, it also output
  3330.      basic block probabilities, detailed ready list information and
  3331.      unit/insn info.  For N greater than two, it includes RTL at abort
  3332.      point, control-flow and regions info.  And for N over four,
  3333.      `-fsched-verbose' also includes dependence info.
  3334.  
  3335. `-save-temps'
  3336.      Store the usual "temporary" intermediate files permanently; place
  3337.      them in the current directory and name them based on the source
  3338.      file.  Thus, compiling `foo.c' with `-c -save-temps' would produce
  3339.      files `foo.i' and `foo.s', as well as `foo.o'.  This creates a
  3340.      preprocessed `foo.i' output file even though the compiler now
  3341.      normally uses an integrated preprocessor.
  3342.  
  3343. `-time'
  3344.      Report the CPU time taken by each subprocess in the compilation
  3345.      sequence.  For C source files, this is the compiler proper and
  3346.      assembler (plus the linker if linking is done).  The output looks
  3347.      like this:
  3348.  
  3349.           # cc1 0.12 0.01
  3350.           # as 0.00 0.01
  3351.  
  3352.      The first number on each line is the "user time," that is time
  3353.      spent executing the program itself.  The second number is "system
  3354.      time," time spent executing operating system routines on behalf of
  3355.      the program.  Both numbers are in seconds.
  3356.  
  3357. `-print-file-name=LIBRARY'
  3358.      Print the full absolute name of the library file LIBRARY that
  3359.      would be used when linking--and don't do anything else.  With this
  3360.      option, GCC does not compile or link anything; it just prints the
  3361.      file name.
  3362.  
  3363. `-print-multi-directory'
  3364.      Print the directory name corresponding to the multilib selected by
  3365.      any other switches present in the command line.  This directory is
  3366.      supposed to exist in `GCC_EXEC_PREFIX'.
  3367.  
  3368. `-print-multi-lib'
  3369.      Print the mapping from multilib directory names to compiler
  3370.      switches that enable them.  The directory name is separated from
  3371.      the switches by `;', and each switch starts with an `@' instead of
  3372.      the `-', without spaces between multiple switches.  This is
  3373.      supposed to ease shell-processing.
  3374.  
  3375. `-print-prog-name=PROGRAM'
  3376.      Like `-print-file-name', but searches for a program such as `cpp'.
  3377.  
  3378. `-print-libgcc-file-name'
  3379.      Same as `-print-file-name=libgcc.a'.
  3380.  
  3381.      This is useful when you use `-nostdlib' or `-nodefaultlibs' but
  3382.      you do want to link with `libgcc.a'.  You can do
  3383.  
  3384.           gcc -nostdlib FILES... `gcc -print-libgcc-file-name`
  3385.  
  3386. `-print-search-dirs'
  3387.      Print the name of the configured installation directory and a list
  3388.      of program and library directories `gcc' will search--and don't do
  3389.      anything else.
  3390.  
  3391.      This is useful when `gcc' prints the error message `installation
  3392.      problem, cannot exec cpp0: No such file or directory'.  To resolve
  3393.      this you either need to put `cpp0' and the other compiler
  3394.      components where `gcc' expects to find them, or you can set the
  3395.      environment variable `GCC_EXEC_PREFIX' to the directory where you
  3396.      installed them.  Don't forget the trailing '/'.  *Note Environment
  3397.      Variables::.
  3398.  
  3399. `-dumpmachine'
  3400.      Print the compiler's target machine (for example,
  3401.      `i686-pc-linux-gnu')--and don't do anything else.
  3402.  
  3403. `-dumpversion'
  3404.      Print the compiler version (for example, `3.0')--and don't do
  3405.      anything else.
  3406.  
  3407. `-dumpspecs'
  3408.      Print the compiler's built-in specs--and don't do anything else.
  3409.      (This is used when GCC itself is being built.)  *Note Spec Files::.
  3410.  
  3411. `-feliminate-unused-debug-types'
  3412.      Normally, when producing DWARF2 output, GCC will emit debugging
  3413.      information for all types declared in a compilation unit,
  3414.      regardless of whether or not they are actually used in that
  3415.      compilation unit.  Sometimes this is useful, such as if, in the
  3416.      debugger, you want to cast a value to a type that is not actually
  3417.      used in your program (but is declared).  More often, however, this
  3418.      results in a significant amount of wasted space.  With this
  3419.      option, GCC will avoid producing debug symbol output for types
  3420.      that are nowhere used in the source file being compiled.
  3421.  
  3422. 
  3423. File: gcc,  Node: Optimize Options,  Next: Preprocessor Options,  Prev: Debugging Options,  Up: Invoking GCC
  3424.  
  3425. 3.10 Options That Control Optimization
  3426. ======================================
  3427.  
  3428. These options control various sorts of optimizations.
  3429.  
  3430.  Without any optimization option, the compiler's goal is to reduce the
  3431. cost of compilation and to make debugging produce the expected results.
  3432. Statements are independent: if you stop the program with a breakpoint
  3433. between statements, you can then assign a new value to any variable or
  3434. change the program counter to any other statement in the function and
  3435. get exactly the results you would expect from the source code.
  3436.  
  3437.  Turning on optimization flags makes the compiler attempt to improve
  3438. the performance and/or code size at the expense of compilation time and
  3439. possibly the ability to debug the program.
  3440.  
  3441.  The compiler performs optimization based on the knowledge it has of
  3442. the program.  Using the `-funit-at-a-time' flag will allow the compiler
  3443. to consider information gained from later functions in the file when
  3444. compiling a function.  Compiling multiple files at once to a single
  3445. output file (and using `-funit-at-a-time') will allow the compiler to
  3446. use information gained from all of the files when compiling each of
  3447. them.
  3448.  
  3449.  Not all optimizations are controlled directly by a flag.  Only
  3450. optimizations that have a flag are listed.
  3451.  
  3452. `-O'
  3453. `-O1'
  3454.      Optimize.  Optimizing compilation takes somewhat more time, and a
  3455.      lot more memory for a large function.
  3456.  
  3457.      With `-O', the compiler tries to reduce code size and execution
  3458.      time, without performing any optimizations that take a great deal
  3459.      of compilation time.
  3460.  
  3461.      `-O' turns on the following optimization flags:
  3462.           -fdefer-pop
  3463.           -fmerge-constants
  3464.           -fthread-jumps
  3465.           -floop-optimize
  3466.           -fif-conversion
  3467.           -fif-conversion2
  3468.           -fdelayed-branch
  3469.           -fguess-branch-probability
  3470.           -fcprop-registers
  3471.  
  3472.      `-O' also turns on `-fomit-frame-pointer' on machines where doing
  3473.      so does not interfere with debugging.
  3474.  
  3475. `-O2'
  3476.      Optimize even more.  GCC performs nearly all supported
  3477.      optimizations that do not involve a space-speed tradeoff.  The
  3478.      compiler does not perform loop unrolling or function inlining when
  3479.      you specify `-O2'.  As compared to `-O', this option increases
  3480.      both compilation time and the performance of the generated code.
  3481.  
  3482.      `-O2' turns on all optimization flags specified by `-O'.  It also
  3483.      turns on the following optimization flags:
  3484.           -fforce-mem
  3485.           -foptimize-sibling-calls
  3486.           -fstrength-reduce
  3487.           -fcse-follow-jumps  -fcse-skip-blocks
  3488.           -frerun-cse-after-loop  -frerun-loop-opt
  3489.           -fgcse  -fgcse-lm  -fgcse-sm  -fgcse-las
  3490.           -fdelete-null-pointer-checks
  3491.           -fexpensive-optimizations
  3492.           -fregmove
  3493.           -fschedule-insns  -fschedule-insns2
  3494.           -fsched-interblock  -fsched-spec
  3495.           -fcaller-saves
  3496.           -fpeephole2
  3497.           -freorder-blocks  -freorder-functions
  3498.           -fstrict-aliasing
  3499.           -funit-at-a-time
  3500.           -falign-functions  -falign-jumps
  3501.           -falign-loops  -falign-labels
  3502.           -fcrossjumping
  3503.  
  3504.      Please note the warning under `-fgcse' about invoking `-O2' on
  3505.      programs that use computed gotos.
  3506.  
  3507. `-O3'
  3508.      Optimize yet more.  `-O3' turns on all optimizations specified by
  3509.      `-O2' and also turns on the `-finline-functions', `-fweb' and
  3510.      `-frename-registers' options.
  3511.  
  3512. `-O0'
  3513.      Do not optimize.  This is the default.
  3514.  
  3515. `-Os'
  3516.      Optimize for size.  `-Os' enables all `-O2' optimizations that do
  3517.      not typically increase code size.  It also performs further
  3518.      optimizations designed to reduce code size.
  3519.  
  3520.      `-Os' disables the following optimization flags:
  3521.           -falign-functions  -falign-jumps  -falign-loops
  3522.           -falign-labels  -freorder-blocks  -fprefetch-loop-arrays
  3523.  
  3524.      If you use multiple `-O' options, with or without level numbers,
  3525.      the last such option is the one that is effective.
  3526.  
  3527.  Options of the form `-fFLAG' specify machine-independent flags.  Most
  3528. flags have both positive and negative forms; the negative form of
  3529. `-ffoo' would be `-fno-foo'.  In the table below, only one of the forms
  3530. is listed--the one you typically will use.  You can figure out the
  3531. other form by either removing `no-' or adding it.
  3532.  
  3533.  The following options control specific optimizations.  They are either
  3534. activated by `-O' options or are related to ones that are.  You can use
  3535. the following flags in the rare cases when "fine-tuning" of
  3536. optimizations to be performed is desired.
  3537.  
  3538. `-fno-default-inline'
  3539.      Do not make member functions inline by default merely because they
  3540.      are defined inside the class scope (C++ only).  Otherwise, when
  3541.      you specify `-O', member functions defined inside class scope are
  3542.      compiled inline by default; i.e., you don't need to add `inline'
  3543.      in front of the member function name.
  3544.  
  3545. `-fno-defer-pop'
  3546.      Always pop the arguments to each function call as soon as that
  3547.      function returns.  For machines which must pop arguments after a
  3548.      function call, the compiler normally lets arguments accumulate on
  3549.      the stack for several function calls and pops them all at once.
  3550.  
  3551.      Disabled at levels `-O', `-O2', `-O3', `-Os'.
  3552.  
  3553. `-fforce-mem'
  3554.      Force memory operands to be copied into registers before doing
  3555.      arithmetic on them.  This produces better code by making all memory
  3556.      references potential common subexpressions.  When they are not
  3557.      common subexpressions, instruction combination should eliminate
  3558.      the separate register-load.
  3559.  
  3560.      Enabled at levels `-O2', `-O3', `-Os'.
  3561.  
  3562. `-fforce-addr'
  3563.      Force memory address constants to be copied into registers before
  3564.      doing arithmetic on them.  This may produce better code just as
  3565.      `-fforce-mem' may.
  3566.  
  3567. `-fomit-frame-pointer'
  3568.      Don't keep the frame pointer in a register for functions that
  3569.      don't need one.  This avoids the instructions to save, set up and
  3570.      restore frame pointers; it also makes an extra register available
  3571.      in many functions.  *It also makes debugging impossible on some
  3572.      machines.*
  3573.  
  3574.      On some machines, such as the VAX, this flag has no effect, because
  3575.      the standard calling sequence automatically handles the frame
  3576.      pointer and nothing is saved by pretending it doesn't exist.  The
  3577.      machine-description macro `FRAME_POINTER_REQUIRED' controls
  3578.      whether a target machine supports this flag.  *Note Register
  3579.      Usage: (gccint)Registers.
  3580.  
  3581.      Enabled at levels `-O', `-O2', `-O3', `-Os'.
  3582.  
  3583. `-foptimize-sibling-calls'
  3584.      Optimize sibling and tail recursive calls.
  3585.  
  3586.      Enabled at levels `-O2', `-O3', `-Os'.
  3587.  
  3588. `-fno-inline'
  3589.      Don't pay attention to the `inline' keyword.  Normally this option
  3590.      is used to keep the compiler from expanding any functions inline.
  3591.      Note that if you are not optimizing, no functions can be expanded
  3592.      inline.
  3593.  
  3594. `-finline-functions'
  3595.      Integrate all simple functions into their callers.  The compiler
  3596.      heuristically decides which functions are simple enough to be worth
  3597.      integrating in this way.
  3598.  
  3599.      If all calls to a given function are integrated, and the function
  3600.      is declared `static', then the function is normally not output as
  3601.      assembler code in its own right.
  3602.  
  3603.      Enabled at level `-O3'.
  3604.  
  3605. `-finline-limit=N'
  3606.      By default, GCC limits the size of functions that can be inlined.
  3607.      This flag allows the control of this limit for functions that are
  3608.      explicitly marked as inline (i.e., marked with the inline keyword
  3609.      or defined within the class definition in c++).  N is the size of
  3610.      functions that can be inlined in number of pseudo instructions
  3611.      (not counting parameter handling).  The default value of N is 600.
  3612.      Increasing this value can result in more inlined code at the cost
  3613.      of compilation time and memory consumption.  Decreasing usually
  3614.      makes the compilation faster and less code will be inlined (which
  3615.      presumably means slower programs).  This option is particularly
  3616.      useful for programs that use inlining heavily such as those based
  3617.      on recursive templates with C++.
  3618.  
  3619.      Inlining is actually controlled by a number of parameters, which
  3620.      may be specified individually by using `--param NAME=VALUE'.  The
  3621.      `-finline-limit=N' option sets some of these parameters as follows:
  3622.  
  3623.     `max-inline-insns-single'
  3624.           is set to N/2.
  3625.  
  3626.     `max-inline-insns-auto'
  3627.           is set to N/2.
  3628.  
  3629.     `min-inline-insns'
  3630.           is set to 130 or N/4, whichever is smaller.
  3631.  
  3632.     `max-inline-insns-rtl'
  3633.           is set to N.
  3634.  
  3635.      See below for a documentation of the individual parameters
  3636.      controlling inlining.
  3637.  
  3638.      _Note:_ pseudo instruction represents, in this particular context,
  3639.      an abstract measurement of function's size.  In no way, it
  3640.      represents a count of assembly instructions and as such its exact
  3641.      meaning might change from one release to an another.
  3642.  
  3643. `-fkeep-inline-functions'
  3644.      Even if all calls to a given function are integrated, and the
  3645.      function is declared `static', nevertheless output a separate
  3646.      run-time callable version of the function.  This switch does not
  3647.      affect `extern inline' functions.
  3648.  
  3649. `-fkeep-static-consts'
  3650.      Emit variables declared `static const' when optimization isn't
  3651.      turned on, even if the variables aren't referenced.
  3652.  
  3653.      GCC enables this option by default.  If you want to force the
  3654.      compiler to check if the variable was referenced, regardless of
  3655.      whether or not optimization is turned on, use the
  3656.      `-fno-keep-static-consts' option.
  3657.  
  3658. `-fmerge-constants'
  3659.      Attempt to merge identical constants (string constants and
  3660.      floating point constants) across compilation units.
  3661.  
  3662.      This option is the default for optimized compilation if the
  3663.      assembler and linker support it.  Use `-fno-merge-constants' to
  3664.      inhibit this behavior.
  3665.  
  3666.      Enabled at levels `-O', `-O2', `-O3', `-Os'.
  3667.  
  3668. `-fmerge-all-constants'
  3669.      Attempt to merge identical constants and identical variables.
  3670.  
  3671.      This option implies `-fmerge-constants'.  In addition to
  3672.      `-fmerge-constants' this considers e.g. even constant initialized
  3673.      arrays or initialized constant variables with integral or floating
  3674.      point types.  Languages like C or C++ require each non-automatic
  3675.      variable to have distinct location, so using this option will
  3676.      result in non-conforming behavior.
  3677.  
  3678. `-fnew-ra'
  3679.      Use a graph coloring register allocator.  Currently this option is
  3680.      meant only for testing.  Users should not specify this option,
  3681.      since it is not yet ready for production use.
  3682.  
  3683. `-fno-branch-count-reg'
  3684.      Do not use "decrement and branch" instructions on a count register,
  3685.      but instead generate a sequence of instructions that decrement a
  3686.      register, compare it against zero, then branch based upon the
  3687.      result.  This option is only meaningful on architectures that
  3688.      support such instructions, which include x86, PowerPC, IA-64 and
  3689.      S/390.
  3690.  
  3691.      The default is `-fbranch-count-reg', enabled when
  3692.      `-fstrength-reduce' is enabled.
  3693.  
  3694. `-fno-function-cse'
  3695.      Do not put function addresses in registers; make each instruction
  3696.      that calls a constant function contain the function's address
  3697.      explicitly.
  3698.  
  3699.      This option results in less efficient code, but some strange hacks
  3700.      that alter the assembler output may be confused by the
  3701.      optimizations performed when this option is not used.
  3702.  
  3703.      The default is `-ffunction-cse'
  3704.  
  3705. `-fno-zero-initialized-in-bss'
  3706.      If the target supports a BSS section, GCC by default puts
  3707.      variables that are initialized to zero into BSS.  This can save
  3708.      space in the resulting code.
  3709.  
  3710.      This option turns off this behavior because some programs
  3711.      explicitly rely on variables going to the data section.  E.g., so
  3712.      that the resulting executable can find the beginning of that
  3713.      section and/or make assumptions based on that.
  3714.  
  3715.      The default is `-fzero-initialized-in-bss'.
  3716.  
  3717. `-fstrength-reduce'
  3718.      Perform the optimizations of loop strength reduction and
  3719.      elimination of iteration variables.
  3720.  
  3721.      Enabled at levels `-O2', `-O3', `-Os'.
  3722.  
  3723. `-fthread-jumps'
  3724.      Perform optimizations where we check to see if a jump branches to a
  3725.      location where another comparison subsumed by the first is found.
  3726.      If so, the first branch is redirected to either the destination of
  3727.      the second branch or a point immediately following it, depending
  3728.      on whether the condition is known to be true or false.
  3729.  
  3730.      Enabled at levels `-O', `-O2', `-O3', `-Os'.
  3731.  
  3732. `-fcse-follow-jumps'
  3733.      In common subexpression elimination, scan through jump instructions
  3734.      when the target of the jump is not reached by any other path.  For
  3735.      example, when CSE encounters an `if' statement with an `else'
  3736.      clause, CSE will follow the jump when the condition tested is
  3737.      false.
  3738.  
  3739.      Enabled at levels `-O2', `-O3', `-Os'.
  3740.  
  3741. `-fcse-skip-blocks'
  3742.      This is similar to `-fcse-follow-jumps', but causes CSE to follow
  3743.      jumps which conditionally skip over blocks.  When CSE encounters a
  3744.      simple `if' statement with no else clause, `-fcse-skip-blocks'
  3745.      causes CSE to follow the jump around the body of the `if'.
  3746.  
  3747.      Enabled at levels `-O2', `-O3', `-Os'.
  3748.  
  3749. `-frerun-cse-after-loop'
  3750.      Re-run common subexpression elimination after loop optimizations
  3751.      has been performed.
  3752.  
  3753.      Enabled at levels `-O2', `-O3', `-Os'.
  3754.  
  3755. `-frerun-loop-opt'
  3756.      Run the loop optimizer twice.
  3757.  
  3758.      Enabled at levels `-O2', `-O3', `-Os'.
  3759.  
  3760. `-fgcse'
  3761.      Perform a global common subexpression elimination pass.  This pass
  3762.      also performs global constant and copy propagation.
  3763.  
  3764.      _Note:_ When compiling a program using computed gotos, a GCC
  3765.      extension, you may get better runtime performance if you disable
  3766.      the global common subexpression elimination pass by adding
  3767.      `-fno-gcse' to the command line.
  3768.  
  3769.      Enabled at levels `-O2', `-O3', `-Os'.
  3770.  
  3771. `-fgcse-lm'
  3772.      When `-fgcse-lm' is enabled, global common subexpression
  3773.      elimination will attempt to move loads which are only killed by
  3774.      stores into themselves.  This allows a loop containing a
  3775.      load/store sequence to be changed to a load outside the loop, and
  3776.      a copy/store within the loop.
  3777.  
  3778.      Enabled by default when gcse is enabled.
  3779.  
  3780. `-fgcse-sm'
  3781.      When `-fgcse-sm' is enabled, a store motion pass is run after
  3782.      global common subexpression elimination.  This pass will attempt
  3783.      to move stores out of loops.  When used in conjunction with
  3784.      `-fgcse-lm', loops containing a load/store sequence can be changed
  3785.      to a load before the loop and a store after the loop.
  3786.  
  3787.      Enabled by default when gcse is enabled.
  3788.  
  3789. `-fgcse-las'
  3790.      When `-fgcse-las' is enabled, the global common subexpression
  3791.      elimination pass eliminates redundant loads that come after stores
  3792.      to the same memory location (both partial and full redundancies).
  3793.  
  3794.      Enabled by default when gcse is enabled.
  3795.  
  3796. `-floop-optimize'
  3797.      Perform loop optimizations: move constant expressions out of
  3798.      loops, simplify exit test conditions and optionally do
  3799.      strength-reduction and loop unrolling as well.
  3800.  
  3801.      Enabled at levels `-O', `-O2', `-O3', `-Os'.
  3802.  
  3803. `-fcrossjumping'
  3804.      Perform cross-jumping transformation. This transformation unifies
  3805.      equivalent code and save code size. The resulting code may or may
  3806.      not perform better than without cross-jumping.
  3807.  
  3808.      Enabled at levels `-O', `-O2', `-O3', `-Os'.
  3809.  
  3810. `-fif-conversion'
  3811.      Attempt to transform conditional jumps into branch-less
  3812.      equivalents.  This include use of conditional moves, min, max, set
  3813.      flags and abs instructions, and some tricks doable by standard
  3814.      arithmetics.  The use of conditional execution on chips where it
  3815.      is available is controlled by `if-conversion2'.
  3816.  
  3817.      Enabled at levels `-O', `-O2', `-O3', `-Os'.
  3818.  
  3819. `-fif-conversion2'
  3820.      Use conditional execution (where available) to transform
  3821.      conditional jumps into branch-less equivalents.
  3822.  
  3823.      Enabled at levels `-O', `-O2', `-O3', `-Os'.
  3824.  
  3825. `-fdelete-null-pointer-checks'
  3826.      Use global dataflow analysis to identify and eliminate useless
  3827.      checks for null pointers.  The compiler assumes that dereferencing
  3828.      a null pointer would have halted the program.  If a pointer is
  3829.      checked after it has already been dereferenced, it cannot be null.
  3830.  
  3831.      In some environments, this assumption is not true, and programs can
  3832.      safely dereference null pointers.  Use
  3833.      `-fno-delete-null-pointer-checks' to disable this optimization for
  3834.      programs which depend on that behavior.
  3835.  
  3836.      Enabled at levels `-O2', `-O3', `-Os'.
  3837.  
  3838. `-fexpensive-optimizations'
  3839.      Perform a number of minor optimizations that are relatively
  3840.      expensive.
  3841.  
  3842.      Enabled at levels `-O2', `-O3', `-Os'.
  3843.  
  3844. `-foptimize-register-move'
  3845. `-fregmove'
  3846.      Attempt to reassign register numbers in move instructions and as
  3847.      operands of other simple instructions in order to maximize the
  3848.      amount of register tying.  This is especially helpful on machines
  3849.      with two-operand instructions.
  3850.  
  3851.      Note `-fregmove' and `-foptimize-register-move' are the same
  3852.      optimization.
  3853.  
  3854.      Enabled at levels `-O2', `-O3', `-Os'.
  3855.  
  3856. `-fdelayed-branch'
  3857.      If supported for the target machine, attempt to reorder
  3858.      instructions to exploit instruction slots available after delayed
  3859.      branch instructions.
  3860.  
  3861.      Enabled at levels `-O', `-O2', `-O3', `-Os'.
  3862.  
  3863. `-fschedule-insns'
  3864.      If supported for the target machine, attempt to reorder
  3865.      instructions to eliminate execution stalls due to required data
  3866.      being unavailable.  This helps machines that have slow floating
  3867.      point or memory load instructions by allowing other instructions
  3868.      to be issued until the result of the load or floating point
  3869.      instruction is required.
  3870.  
  3871.      Enabled at levels `-O2', `-O3', `-Os'.
  3872.  
  3873. `-fschedule-insns2'
  3874.      Similar to `-fschedule-insns', but requests an additional pass of
  3875.      instruction scheduling after register allocation has been done.
  3876.      This is especially useful on machines with a relatively small
  3877.      number of registers and where memory load instructions take more
  3878.      than one cycle.
  3879.  
  3880.      Enabled at levels `-O2', `-O3', `-Os'.
  3881.  
  3882. `-fno-sched-interblock'
  3883.      Don't schedule instructions across basic blocks.  This is normally
  3884.      enabled by default when scheduling before register allocation, i.e.
  3885.      with `-fschedule-insns' or at `-O2' or higher.
  3886.  
  3887. `-fno-sched-spec'
  3888.      Don't allow speculative motion of non-load instructions.  This is
  3889.      normally enabled by default when scheduling before register
  3890.      allocation, i.e.  with `-fschedule-insns' or at `-O2' or higher.
  3891.  
  3892. `-fsched-spec-load'
  3893.      Allow speculative motion of some load instructions.  This only
  3894.      makes sense when scheduling before register allocation, i.e. with
  3895.      `-fschedule-insns' or at `-O2' or higher.
  3896.  
  3897. `-fsched-spec-load-dangerous'
  3898.      Allow speculative motion of more load instructions.  This only
  3899.      makes sense when scheduling before register allocation, i.e. with
  3900.      `-fschedule-insns' or at `-O2' or higher.
  3901.  
  3902. `-fsched-stalled-insns=N'
  3903.      Define how many insns (if any) can be moved prematurely from the
  3904.      queue of stalled insns into the ready list, during the second
  3905.      scheduling pass.
  3906.  
  3907. `-fsched-stalled-insns-dep=N'
  3908.      Define how many insn groups (cycles) will be examined for a
  3909.      dependency on a stalled insn that is candidate for premature
  3910.      removal from the queue of stalled insns.  Has an effect only
  3911.      during the second scheduling pass, and only if
  3912.      `-fsched-stalled-insns' is used and its value is not zero.
  3913.  
  3914. `-fsched2-use-superblocks'
  3915.      When scheduling after register allocation, do use superblock
  3916.      scheduling algorithm.  Superblock scheduling allows motion across
  3917.      basic block boundaries resulting on faster schedules.  This option
  3918.      is experimental, as not all machine descriptions used by GCC model
  3919.      the CPU closely enough to avoid unreliable results from the
  3920.      algorithm.
  3921.  
  3922.      This only makes sense when scheduling after register allocation,
  3923.      i.e. with `-fschedule-insns2' or at `-O2' or higher.
  3924.  
  3925. `-fsched2-use-traces'
  3926.      Use `-fsched2-use-superblocks' algorithm when scheduling after
  3927.      register allocation and additionally perform code duplication in
  3928.      order to increase the size of superblocks using tracer pass.  See
  3929.      `-ftracer' for details on trace formation.
  3930.  
  3931.      This mode should produce faster but significantly longer programs.
  3932.      Also without `-fbranch-probabilities' the traces constructed may
  3933.      not match the reality and hurt the performance.  This only makes
  3934.      sense when scheduling after register allocation, i.e. with
  3935.      `-fschedule-insns2' or at `-O2' or higher.
  3936.  
  3937. `-fcaller-saves'
  3938.      Enable values to be allocated in registers that will be clobbered
  3939.      by function calls, by emitting extra instructions to save and
  3940.      restore the registers around such calls.  Such allocation is done
  3941.      only when it seems to result in better code than would otherwise
  3942.      be produced.
  3943.  
  3944.      This option is always enabled by default on certain machines,
  3945.      usually those which have no call-preserved registers to use
  3946.      instead.
  3947.  
  3948.      Enabled at levels `-O2', `-O3', `-Os'.
  3949.  
  3950. `-fmove-all-movables'
  3951.      Forces all invariant computations in loops to be moved outside the
  3952.      loop.
  3953.  
  3954. `-freduce-all-givs'
  3955.      Forces all general-induction variables in loops to be
  3956.      strength-reduced.
  3957.  
  3958.      _Note:_ When compiling programs written in Fortran,
  3959.      `-fmove-all-movables' and `-freduce-all-givs' are enabled by
  3960.      default when you use the optimizer.
  3961.  
  3962.      These options may generate better or worse code; results are highly
  3963.      dependent on the structure of loops within the source code.
  3964.  
  3965.      These two options are intended to be removed someday, once they
  3966.      have helped determine the efficacy of various approaches to
  3967.      improving loop optimizations.
  3968.  
  3969.      Please let us (<gcc@gcc.gnu.org> and <fortran@gnu.org>) know how
  3970.      use of these options affects the performance of your production
  3971.      code.  We're very interested in code that runs _slower_ when these
  3972.      options are _enabled_.
  3973.  
  3974. `-fno-peephole'
  3975. `-fno-peephole2'
  3976.      Disable any machine-specific peephole optimizations.  The
  3977.      difference between `-fno-peephole' and `-fno-peephole2' is in how
  3978.      they are implemented in the compiler; some targets use one, some
  3979.      use the other, a few use both.
  3980.  
  3981.      `-fpeephole' is enabled by default.  `-fpeephole2' enabled at
  3982.      levels `-O2', `-O3', `-Os'.
  3983.  
  3984. `-fno-guess-branch-probability'
  3985.      Do not guess branch probabilities using a randomized model.
  3986.  
  3987.      Sometimes GCC will opt to use a randomized model to guess branch
  3988.      probabilities, when none are available from either profiling
  3989.      feedback (`-fprofile-arcs') or `__builtin_expect'.  This means that
  3990.      different runs of the compiler on the same program may produce
  3991.      different object code.
  3992.  
  3993.      In a hard real-time system, people don't want different runs of the
  3994.      compiler to produce code that has different behavior; minimizing
  3995.      non-determinism is of paramount import.  This switch allows users
  3996.      to reduce non-determinism, possibly at the expense of inferior
  3997.      optimization.
  3998.  
  3999.      The default is `-fguess-branch-probability' at levels `-O', `-O2',
  4000.      `-O3', `-Os'.
  4001.  
  4002. `-freorder-blocks'
  4003.      Reorder basic blocks in the compiled function in order to reduce
  4004.      number of taken branches and improve code locality.
  4005.  
  4006.      Enabled at levels `-O2', `-O3'.
  4007.  
  4008. `-freorder-functions'
  4009.      Reorder basic blocks in the compiled function in order to reduce
  4010.      number of taken branches and improve code locality. This is
  4011.      implemented by using special subsections `text.hot' for most
  4012.      frequently executed functions and `text.unlikely' for unlikely
  4013.      executed functions.  Reordering is done by the linker so object
  4014.      file format must support named sections and linker must place them
  4015.      in a reasonable way.
  4016.  
  4017.      Also profile feedback must be available in to make this option
  4018.      effective.  See `-fprofile-arcs' for details.
  4019.  
  4020.      Enabled at levels `-O2', `-O3', `-Os'.
  4021.  
  4022. `-fstrict-aliasing'
  4023.      Allows the compiler to assume the strictest aliasing rules
  4024.      applicable to the language being compiled.  For C (and C++), this
  4025.      activates optimizations based on the type of expressions.  In
  4026.      particular, an object of one type is assumed never to reside at
  4027.      the same address as an object of a different type, unless the
  4028.      types are almost the same.  For example, an `unsigned int' can
  4029.      alias an `int', but not a `void*' or a `double'.  A character type
  4030.      may alias any other type.
  4031.  
  4032.      Pay special attention to code like this:
  4033.           union a_union {
  4034.             int i;
  4035.             double d;
  4036.           };
  4037.  
  4038.           int f() {
  4039.             a_union t;
  4040.             t.d = 3.0;
  4041.             return t.i;
  4042.           }
  4043.      The practice of reading from a different union member than the one
  4044.      most recently written to (called "type-punning") is common.  Even
  4045.      with `-fstrict-aliasing', type-punning is allowed, provided the
  4046.      memory is accessed through the union type.  So, the code above
  4047.      will work as expected.  However, this code might not:
  4048.           int f() {
  4049.             a_union t;
  4050.             int* ip;
  4051.             t.d = 3.0;
  4052.             ip = &t.i;
  4053.             return *ip;
  4054.           }
  4055.  
  4056.      Every language that wishes to perform language-specific alias
  4057.      analysis should define a function that computes, given an `tree'
  4058.      node, an alias set for the node.  Nodes in different alias sets
  4059.      are not allowed to alias.  For an example, see the C front-end
  4060.      function `c_get_alias_set'.
  4061.  
  4062.      Enabled at levels `-O2', `-O3', `-Os'.
  4063.  
  4064. `-falign-functions'
  4065. `-falign-functions=N'
  4066.      Align the start of functions to the next power-of-two greater than
  4067.      N, skipping up to N bytes.  For instance, `-falign-functions=32'
  4068.      aligns functions to the next 32-byte boundary, but
  4069.      `-falign-functions=24' would align to the next 32-byte boundary
  4070.      only if this can be done by skipping 23 bytes or less.
  4071.  
  4072.      `-fno-align-functions' and `-falign-functions=1' are equivalent
  4073.      and mean that functions will not be aligned.
  4074.  
  4075.      Some assemblers only support this flag when N is a power of two;
  4076.      in that case, it is rounded up.
  4077.  
  4078.      If N is not specified or is zero, use a machine-dependent default.
  4079.  
  4080.      Enabled at levels `-O2', `-O3'.
  4081.  
  4082. `-falign-labels'
  4083. `-falign-labels=N'
  4084.      Align all branch targets to a power-of-two boundary, skipping up to
  4085.      N bytes like `-falign-functions'.  This option can easily make
  4086.      code slower, because it must insert dummy operations for when the
  4087.      branch target is reached in the usual flow of the code.
  4088.  
  4089.      `-fno-align-labels' and `-falign-labels=1' are equivalent and mean
  4090.      that labels will not be aligned.
  4091.  
  4092.      If `-falign-loops' or `-falign-jumps' are applicable and are
  4093.      greater than this value, then their values are used instead.
  4094.  
  4095.      If N is not specified or is zero, use a machine-dependent default
  4096.      which is very likely to be `1', meaning no alignment.
  4097.  
  4098.      Enabled at levels `-O2', `-O3'.
  4099.  
  4100. `-falign-loops'
  4101. `-falign-loops=N'
  4102.      Align loops to a power-of-two boundary, skipping up to N bytes
  4103.      like `-falign-functions'.  The hope is that the loop will be
  4104.      executed many times, which will make up for any execution of the
  4105.      dummy operations.
  4106.  
  4107.      `-fno-align-loops' and `-falign-loops=1' are equivalent and mean
  4108.      that loops will not be aligned.
  4109.  
  4110.      If N is not specified or is zero, use a machine-dependent default.
  4111.  
  4112.      Enabled at levels `-O2', `-O3'.
  4113.  
  4114. `-falign-jumps'
  4115. `-falign-jumps=N'
  4116.      Align branch targets to a power-of-two boundary, for branch targets
  4117.      where the targets can only be reached by jumping, skipping up to N
  4118.      bytes like `-falign-functions'.  In this case, no dummy operations
  4119.      need be executed.
  4120.  
  4121.      `-fno-align-jumps' and `-falign-jumps=1' are equivalent and mean
  4122.      that loops will not be aligned.
  4123.  
  4124.      If N is not specified or is zero, use a machine-dependent default.
  4125.  
  4126.      Enabled at levels `-O2', `-O3'.
  4127.  
  4128. `-frename-registers'
  4129.      Attempt to avoid false dependencies in scheduled code by making use
  4130.      of registers left over after register allocation.  This
  4131.      optimization will most benefit processors with lots of registers.
  4132.      It can, however, make debugging impossible, since variables will
  4133.      no longer stay in a "home register".
  4134.  
  4135. `-fweb'
  4136.      Constructs webs as commonly used for register allocation purposes
  4137.      and assign each web individual pseudo register.  This allows our
  4138.      register allocation pass to operate on pseudos directly, but also
  4139.      strengthens several other optimization passes, such as CSE, loop
  4140.      optimizer and trivial dead code remover.  It can, however, make
  4141.      debugging impossible, since variables will no longer stay in a
  4142.      "home register".
  4143.  
  4144.      Enabled at levels `-O3'.
  4145.  
  4146. `-fno-cprop-registers'
  4147.      After register allocation and post-register allocation instruction
  4148.      splitting, we perform a copy-propagation pass to try to reduce
  4149.      scheduling dependencies and occasionally eliminate the copy.
  4150.  
  4151.      Disabled at levels `-O', `-O2', `-O3', `-Os'.
  4152.  
  4153. `-fprofile-generate'
  4154.      Enable options usually used for instrumenting application to
  4155.      produce profile useful for later recompilation with profile
  4156.      feedback based optimization.  You must use `-fprofile-generate'
  4157.      both when compiling and when linking your program.
  4158.  
  4159.      The following options are enabled: `-fprofile-arcs',
  4160.      `-fprofile-values', `-fvpt'.
  4161.  
  4162. `-fprofile-use'
  4163.      Enable profile feedback directed optimizations, and optimizations
  4164.      generally profitable only with profile feedback available.
  4165.  
  4166.      The following options are enabled: `-fbranch-probabilities',
  4167.      `-fvpt', `-funroll-loops', `-fpeel-loops', `-ftracer'.
  4168.  
  4169.  
  4170.  The following options control compiler behavior regarding floating
  4171. point arithmetic.  These options trade off between speed and
  4172. correctness.  All must be specifically enabled.
  4173.  
  4174. `-ffloat-store'
  4175.      Do not store floating point variables in registers, and inhibit
  4176.      other options that might change whether a floating point value is
  4177.      taken from a register or memory.
  4178.  
  4179.      This option prevents undesirable excess precision on machines such
  4180.      as the 68000 where the floating registers (of the 68881) keep more
  4181.      precision than a `double' is supposed to have.  Similarly for the
  4182.      x86 architecture.  For most programs, the excess precision does
  4183.      only good, but a few programs rely on the precise definition of
  4184.      IEEE floating point.  Use `-ffloat-store' for such programs, after
  4185.      modifying them to store all pertinent intermediate computations
  4186.      into variables.
  4187.  
  4188. `-ffast-math'
  4189.      Sets `-fno-math-errno', `-funsafe-math-optimizations',
  4190.      `-fno-trapping-math', `-ffinite-math-only', `-fno-rounding-math'
  4191.      and `-fno-signaling-nans'.
  4192.  
  4193.      This option causes the preprocessor macro `__FAST_MATH__' to be
  4194.      defined.
  4195.  
  4196.      This option should never be turned on by any `-O' option since it
  4197.      can result in incorrect output for programs which depend on an
  4198.      exact implementation of IEEE or ISO rules/specifications for math
  4199.      functions.
  4200.  
  4201. `-fno-math-errno'
  4202.      Do not set ERRNO after calling math functions that are executed
  4203.      with a single instruction, e.g., sqrt.  A program that relies on
  4204.      IEEE exceptions for math error handling may want to use this flag
  4205.      for speed while maintaining IEEE arithmetic compatibility.
  4206.  
  4207.      This option should never be turned on by any `-O' option since it
  4208.      can result in incorrect output for programs which depend on an
  4209.      exact implementation of IEEE or ISO rules/specifications for math
  4210.      functions.
  4211.  
  4212.      The default is `-fmath-errno'.
  4213.  
  4214. `-funsafe-math-optimizations'
  4215.      Allow optimizations for floating-point arithmetic that (a) assume
  4216.      that arguments and results are valid and (b) may violate IEEE or
  4217.      ANSI standards.  When used at link-time, it may include libraries
  4218.      or startup files that change the default FPU control word or other
  4219.      similar optimizations.
  4220.  
  4221.      This option should never be turned on by any `-O' option since it
  4222.      can result in incorrect output for programs which depend on an
  4223.      exact implementation of IEEE or ISO rules/specifications for math
  4224.      functions.
  4225.  
  4226.      The default is `-fno-unsafe-math-optimizations'.
  4227.  
  4228. `-ffinite-math-only'
  4229.      Allow optimizations for floating-point arithmetic that assume that
  4230.      arguments and results are not NaNs or +-Infs.
  4231.  
  4232.      This option should never be turned on by any `-O' option since it
  4233.      can result in incorrect output for programs which depend on an
  4234.      exact implementation of IEEE or ISO rules/specifications.
  4235.  
  4236.      The default is `-fno-finite-math-only'.
  4237.  
  4238. `-fno-trapping-math'
  4239.      Compile code assuming that floating-point operations cannot
  4240.      generate user-visible traps.  These traps include division by
  4241.      zero, overflow, underflow, inexact result and invalid operation.
  4242.      This option implies `-fno-signaling-nans'.  Setting this option
  4243.      may allow faster code if one relies on "non-stop" IEEE arithmetic,
  4244.      for example.
  4245.  
  4246.      This option should never be turned on by any `-O' option since it
  4247.      can result in incorrect output for programs which depend on an
  4248.      exact implementation of IEEE or ISO rules/specifications for math
  4249.      functions.
  4250.  
  4251.      The default is `-ftrapping-math'.
  4252.  
  4253. `-frounding-math'
  4254.      Disable transformations and optimizations that assume default
  4255.      floating point rounding behavior.  This is round-to-zero for all
  4256.      floating point to integer conversions, and round-to-nearest for
  4257.      all other arithmetic truncations.  This option should be specified
  4258.      for programs that change the FP rounding mode dynamically, or that
  4259.      may be executed with a non-default rounding mode.  This option
  4260.      disables constant folding of floating point expressions at
  4261.      compile-time (which may be affected by rounding mode) and
  4262.      arithmetic transformations that are unsafe in the presence of
  4263.      sign-dependent rounding modes.
  4264.  
  4265.      The default is `-fno-rounding-math'.
  4266.  
  4267.      This option is experimental and does not currently guarantee to
  4268.      disable all GCC optimizations that are affected by rounding mode.
  4269.      Future versions of GCC may provide finer control of this setting
  4270.      using C99's `FENV_ACCESS' pragma.  This command line option will
  4271.      be used to specify the default state for `FENV_ACCESS'.
  4272.  
  4273. `-fsignaling-nans'
  4274.      Compile code assuming that IEEE signaling NaNs may generate
  4275.      user-visible traps during floating-point operations.  Setting this
  4276.      option disables optimizations that may change the number of
  4277.      exceptions visible with signaling NaNs.  This option implies
  4278.      `-ftrapping-math'.
  4279.  
  4280.      This option causes the preprocessor macro `__SUPPORT_SNAN__' to be
  4281.      defined.
  4282.  
  4283.      The default is `-fno-signaling-nans'.
  4284.  
  4285.      This option is experimental and does not currently guarantee to
  4286.      disable all GCC optimizations that affect signaling NaN behavior.
  4287.  
  4288. `-fsingle-precision-constant'
  4289.      Treat floating point constant as single precision constant instead
  4290.      of implicitly converting it to double precision constant.
  4291.  
  4292.  
  4293.  The following options control optimizations that may improve
  4294. performance, but are not enabled by any `-O' options.  This section
  4295. includes experimental options that may produce broken code.
  4296.  
  4297. `-fbranch-probabilities'
  4298.      After running a program compiled with `-fprofile-arcs' (*note
  4299.      Options for Debugging Your Program or `gcc': Debugging Options.),
  4300.      you can compile it a second time using `-fbranch-probabilities',
  4301.      to improve optimizations based on the number of times each branch
  4302.      was taken.  When the program compiled with `-fprofile-arcs' exits
  4303.      it saves arc execution counts to a file called `SOURCENAME.gcda'
  4304.      for each source file  The information in this data file is very
  4305.      dependent on the structure of the generated code, so you must use
  4306.      the same source code and the same optimization options for both
  4307.      compilations.
  4308.  
  4309.      With `-fbranch-probabilities', GCC puts a `REG_BR_PROB' note on
  4310.      each `JUMP_INSN' and `CALL_INSN'.  These can be used to improve
  4311.      optimization.  Currently, they are only used in one place: in
  4312.      `reorg.c', instead of guessing which path a branch is mostly to
  4313.      take, the `REG_BR_PROB' values are used to exactly determine which
  4314.      path is taken more often.
  4315.  
  4316. `-fprofile-values'
  4317.      If combined with `-fprofile-arcs', it adds code so that some data
  4318.      about values of expressions in the program is gathered.
  4319.  
  4320.      With `-fbranch-probabilities', it reads back the data gathered
  4321.      from profiling values of expressions and adds `REG_VALUE_PROFILE'
  4322.      notes to instructions for their later usage in optimizations.
  4323.  
  4324. `-fvpt'
  4325.      If combined with `-fprofile-arcs', it instructs the compiler to add
  4326.      a code to gather information about values of expressions.
  4327.  
  4328.      With `-fbranch-probabilities', it reads back the data gathered and
  4329.      actually performs the optimizations based on them.  Currently the
  4330.      optimizations include specialization of division operation using
  4331.      the knowledge about the value of the denominator.
  4332.  
  4333. `-fnew-ra'
  4334.      Use a graph coloring register allocator.  Currently this option is
  4335.      meant for testing, so we are interested to hear about
  4336.      miscompilations with `-fnew-ra'.
  4337.  
  4338. `-ftracer'
  4339.      Perform tail duplication to enlarge superblock size. This
  4340.      transformation simplifies the control flow of the function
  4341.      allowing other optimizations to do better job.
  4342.  
  4343. `-funit-at-a-time'
  4344.      Parse the whole compilation unit before starting to produce code.
  4345.      This allows some extra optimizations to take place but consumes
  4346.      more memory.
  4347.  
  4348. `-funroll-loops'
  4349.      Unroll loops whose number of iterations can be determined at
  4350.      compile time or upon entry to the loop.  `-funroll-loops' implies
  4351.      `-frerun-cse-after-loop'.  It also turns on complete loop peeling
  4352.      (i.e. complete removal of loops with small constant number of
  4353.      iterations).  This option makes code larger, and may or may not
  4354.      make it run faster.
  4355.  
  4356. `-funroll-all-loops'
  4357.      Unroll all loops, even if their number of iterations is uncertain
  4358.      when the loop is entered.  This usually makes programs run more
  4359.      slowly.  `-funroll-all-loops' implies the same options as
  4360.      `-funroll-loops'.
  4361.  
  4362. `-fpeel-loops'
  4363.      Peels the loops for that there is enough information that they do
  4364.      not roll much (from profile feedback).  It also turns on complete
  4365.      loop peeling (i.e. complete removal of loops with small constant
  4366.      number of iterations).
  4367.  
  4368. `-funswitch-loops'
  4369.      Move branches with loop invariant conditions out of the loop, with
  4370.      duplicates of the loop on both branches (modified according to
  4371.      result of the condition).
  4372.  
  4373. `-fold-unroll-loops'
  4374.      Unroll loops whose number of iterations can be determined at
  4375.      compile time or upon entry to the loop, using the old loop
  4376.      unroller whose loop recognition is based on notes from frontend.
  4377.      `-fold-unroll-loops' implies both `-fstrength-reduce' and
  4378.      `-frerun-cse-after-loop'.  This option makes code larger, and may
  4379.      or may not make it run faster.
  4380.  
  4381. `-fold-unroll-all-loops'
  4382.      Unroll all loops, even if their number of iterations is uncertain
  4383.      when the loop is entered. This is done using the old loop unroller
  4384.      whose loop recognition is based on notes from frontend.  This
  4385.      usually makes programs run more slowly.  `-fold-unroll-all-loops'
  4386.      implies the same options as `-fold-unroll-loops'.
  4387.  
  4388. `-funswitch-loops'
  4389.      Move branches with loop invariant conditions out of the loop, with
  4390.      duplicates of the loop on both branches (modified according to
  4391.      result of the condition).
  4392.  
  4393. `-funswitch-loops'
  4394.      Move branches with loop invariant conditions out of the loop, with
  4395.      duplicates of the loop on both branches (modified according to
  4396.      result of the condition).
  4397.  
  4398. `-fprefetch-loop-arrays'
  4399.      If supported by the target machine, generate instructions to
  4400.      prefetch memory to improve the performance of loops that access
  4401.      large arrays.
  4402.  
  4403.      Disabled at level `-Os'.
  4404.  
  4405. `-ffunction-sections'
  4406. `-fdata-sections'
  4407.      Place each function or data item into its own section in the output
  4408.      file if the target supports arbitrary sections.  The name of the
  4409.      function or the name of the data item determines the section's name
  4410.      in the output file.
  4411.  
  4412.      Use these options on systems where the linker can perform
  4413.      optimizations to improve locality of reference in the instruction
  4414.      space.  Most systems using the ELF object format and SPARC
  4415.      processors running Solaris 2 have linkers with such optimizations.
  4416.      AIX may have these optimizations in the future.
  4417.  
  4418.      Only use these options when there are significant benefits from
  4419.      doing so.  When you specify these options, the assembler and
  4420.      linker will create larger object and executable files and will
  4421.      also be slower.  You will not be able to use `gprof' on all
  4422.      systems if you specify this option and you may have problems with
  4423.      debugging if you specify both this option and `-g'.
  4424.  
  4425. `-fbranch-target-load-optimize'
  4426.      Perform branch target register load optimization before prologue /
  4427.      epilogue threading.  The use of target registers can typically be
  4428.      exposed only during reload, thus hoisting loads out of loops and
  4429.      doing inter-block scheduling needs a separate optimization pass.
  4430.  
  4431. `-fbranch-target-load-optimize2'
  4432.      Perform branch target register load optimization after prologue /
  4433.      epilogue threading.
  4434.  
  4435. `--param NAME=VALUE'
  4436.      In some places, GCC uses various constants to control the amount of
  4437.      optimization that is done.  For example, GCC will not inline
  4438.      functions that contain more that a certain number of instructions.
  4439.      You can control some of these constants on the command-line using
  4440.      the `--param' option.
  4441.  
  4442.      The names of specific parameters, and the meaning of the values,
  4443.      are tied to the internals of the compiler, and are subject to
  4444.      change without notice in future releases.
  4445.  
  4446.      In each case, the VALUE is an integer.  The allowable choices for
  4447.      NAME are given in the following table:
  4448.  
  4449.     `max-crossjump-edges'
  4450.           The maximum number of incoming edges to consider for
  4451.           crossjumping.  The algorithm used by `-fcrossjumping' is
  4452.           O(N^2) in the number of edges incoming to each block.
  4453.           Increasing values mean more aggressive optimization, making
  4454.           the compile time increase with probably small improvement in
  4455.           executable size.
  4456.  
  4457.     `max-delay-slot-insn-search'
  4458.           The maximum number of instructions to consider when looking
  4459.           for an instruction to fill a delay slot.  If more than this
  4460.           arbitrary number of instructions is searched, the time
  4461.           savings from filling the delay slot will be minimal so stop
  4462.           searching.  Increasing values mean more aggressive
  4463.           optimization, making the compile time increase with probably
  4464.           small improvement in executable run time.
  4465.  
  4466.     `max-delay-slot-live-search'
  4467.           When trying to fill delay slots, the maximum number of
  4468.           instructions to consider when searching for a block with
  4469.           valid live register information.  Increasing this arbitrarily
  4470.           chosen value means more aggressive optimization, increasing
  4471.           the compile time.  This parameter should be removed when the
  4472.           delay slot code is rewritten to maintain the control-flow
  4473.           graph.
  4474.  
  4475.     `max-gcse-memory'
  4476.           The approximate maximum amount of memory that will be
  4477.           allocated in order to perform the global common subexpression
  4478.           elimination optimization.  If more memory than specified is
  4479.           required, the optimization will not be done.
  4480.  
  4481.     `max-gcse-passes'
  4482.           The maximum number of passes of GCSE to run.
  4483.  
  4484.     `max-pending-list-length'
  4485.           The maximum number of pending dependencies scheduling will
  4486.           allow before flushing the current state and starting over.
  4487.           Large functions with few branches or calls can create
  4488.           excessively large lists which needlessly consume memory and
  4489.           resources.
  4490.  
  4491.     `max-inline-insns-single'
  4492.           Several parameters control the tree inliner used in gcc.
  4493.           This number sets the maximum number of instructions (counted
  4494.           in GCC's internal representation) in a single function that
  4495.           the tree inliner will consider for inlining.  This only
  4496.           affects functions declared inline and methods implemented in
  4497.           a class declaration (C++).  The default value is 500.
  4498.  
  4499.     `max-inline-insns-auto'
  4500.           When you use `-finline-functions' (included in `-O3'), a lot
  4501.           of functions that would otherwise not be considered for
  4502.           inlining by the compiler will be investigated.  To those
  4503.           functions, a different (more restrictive) limit compared to
  4504.           functions declared inline can be applied.  The default value
  4505.           is 100.
  4506.  
  4507.     `large-function-insns'
  4508.           The limit specifying really large functions.  For functions
  4509.           greater than this limit inlining is constrained by `--param
  4510.           large-function-growth'.  This parameter is useful primarily
  4511.           to avoid extreme compilation time caused by non-linear
  4512.           algorithms used by the backend.  This parameter is ignored
  4513.           when `-funit-at-a-time' is not used.  The default value is
  4514.           3000.
  4515.  
  4516.     `large-function-growth'
  4517.           Specifies maximal growth of large function caused by inlining
  4518.           in percents.  This parameter is ignored when
  4519.           `-funit-at-a-time' is not used.  The default value is 200.
  4520.  
  4521.     `inline-unit-growth'
  4522.           Specifies maximal overall growth of the compilation unit
  4523.           caused by inlining.  This parameter is ignored when
  4524.           `-funit-at-a-time' is not used.  The default value is 150.
  4525.  
  4526.     `max-inline-insns-rtl'
  4527.           For languages that use the RTL inliner (this happens at a
  4528.           later stage than tree inlining), you can set the maximum
  4529.           allowable size (counted in RTL instructions) for the RTL
  4530.           inliner with this parameter.  The default value is 600.
  4531.  
  4532.     `max-unrolled-insns'
  4533.           The maximum number of instructions that a loop should have if
  4534.           that loop is unrolled, and if the loop is unrolled, it
  4535.           determines how many times the loop code is unrolled.
  4536.  
  4537.     `max-average-unrolled-insns'
  4538.           The maximum number of instructions biased by probabilities of
  4539.           their execution that a loop should have if that loop is
  4540.           unrolled, and if the loop is unrolled, it determines how many
  4541.           times the loop code is unrolled.
  4542.  
  4543.     `max-unroll-times'
  4544.           The maximum number of unrollings of a single loop.
  4545.  
  4546.     `max-peeled-insns'
  4547.           The maximum number of instructions that a loop should have if
  4548.           that loop is peeled, and if the loop is peeled, it determines
  4549.           how many times the loop code is peeled.
  4550.  
  4551.     `max-peel-times'
  4552.           The maximum number of peelings of a single loop.
  4553.  
  4554.     `max-completely-peeled-insns'
  4555.           The maximum number of insns of a completely peeled loop.
  4556.  
  4557.     `max-completely-peel-times'
  4558.           The maximum number of iterations of a loop to be suitable for
  4559.           complete peeling.
  4560.  
  4561.     `max-unswitch-insns'
  4562.           The maximum number of insns of an unswitched loop.
  4563.  
  4564.     `max-unswitch-level'
  4565.           The maximum number of branches unswitched in a single loop.
  4566.  
  4567.     `hot-bb-count-fraction'
  4568.           Select fraction of the maximal count of repetitions of basic
  4569.           block in program given basic block needs to have to be
  4570.           considered hot.
  4571.  
  4572.     `hot-bb-frequency-fraction'
  4573.           Select fraction of the maximal frequency of executions of
  4574.           basic block in function given basic block needs to have to be
  4575.           considered hot
  4576.  
  4577.     `tracer-dynamic-coverage'
  4578.     `tracer-dynamic-coverage-feedback'
  4579.           This value is used to limit superblock formation once the
  4580.           given percentage of executed instructions is covered.  This
  4581.           limits unnecessary code size expansion.
  4582.  
  4583.           The `tracer-dynamic-coverage-feedback' is used only when
  4584.           profile feedback is available.  The real profiles (as opposed
  4585.           to statically estimated ones) are much less balanced allowing
  4586.           the threshold to be larger value.
  4587.  
  4588.     `tracer-max-code-growth'
  4589.           Stop tail duplication once code growth has reached given
  4590.           percentage.  This is rather hokey argument, as most of the
  4591.           duplicates will be eliminated later in cross jumping, so it
  4592.           may be set to much higher values than is the desired code
  4593.           growth.
  4594.  
  4595.     `tracer-min-branch-ratio'
  4596.           Stop reverse growth when the reverse probability of best edge
  4597.           is less than this threshold (in percent).
  4598.  
  4599.     `tracer-min-branch-ratio'
  4600.     `tracer-min-branch-ratio-feedback'
  4601.           Stop forward growth if the best edge do have probability
  4602.           lower than this threshold.
  4603.  
  4604.           Similarly to `tracer-dynamic-coverage' two values are
  4605.           present, one for compilation for profile feedback and one for
  4606.           compilation without.  The value for compilation with profile
  4607.           feedback needs to be more conservative (higher) in order to
  4608.           make tracer effective.
  4609.  
  4610.     `max-cse-path-length'
  4611.           Maximum number of basic blocks on path that cse considers.
  4612.  
  4613.     `ggc-min-expand'
  4614.           GCC uses a garbage collector to manage its own memory
  4615.           allocation.  This parameter specifies the minimum percentage
  4616.           by which the garbage collector's heap should be allowed to
  4617.           expand between collections.  Tuning this may improve
  4618.           compilation speed; it has no effect on code generation.
  4619.  
  4620.           The default is 30% + 70% * (RAM/1GB) with an upper bound of
  4621.           100% when RAM >= 1GB.  If `getrlimit' is available, the
  4622.           notion of "RAM" is the smallest of actual RAM, RLIMIT_RSS,
  4623.           RLIMIT_DATA and RLIMIT_AS.  If GCC is not able to calculate
  4624.           RAM on a particular platform, the lower bound of 30% is used.
  4625.           Setting this parameter and `ggc-min-heapsize' to zero causes
  4626.           a full collection to occur at every opportunity.  This is
  4627.           extremely slow, but can be useful for debugging.
  4628.  
  4629.     `ggc-min-heapsize'
  4630.           Minimum size of the garbage collector's heap before it begins
  4631.           bothering to collect garbage.  The first collection occurs
  4632.           after the heap expands by `ggc-min-expand'% beyond
  4633.           `ggc-min-heapsize'.  Again, tuning this may improve
  4634.           compilation speed, and has no effect on code generation.
  4635.  
  4636.           The default is RAM/8, with a lower bound of 4096 (four
  4637.           megabytes) and an upper bound of 131072 (128 megabytes).  If
  4638.           `getrlimit' is available, the notion of "RAM" is the smallest
  4639.           of actual RAM, RLIMIT_RSS, RLIMIT_DATA and RLIMIT_AS.  If GCC
  4640.           is not able to calculate RAM on a particular platform, the
  4641.           lower bound is used.  Setting this parameter very large
  4642.           effectively disables garbage collection.  Setting this
  4643.           parameter and `ggc-min-expand' to zero causes a full
  4644.           collection to occur at every opportunity.
  4645.  
  4646.     `max-reload-search-insns'
  4647.           The maximum number of instruction reload should look backward
  4648.           for equivalent register.  Increasing values mean more
  4649.           aggressive optimization, making the compile time increase
  4650.           with probably slightly better performance.  The default value
  4651.           is 100.
  4652.  
  4653.     `max-cselib-memory-location'
  4654.           The maximum number of memory locations cselib should take
  4655.           into acount.  Increasing values mean more aggressive
  4656.           optimization, making the compile time increase with probably
  4657.           slightly better performance.  The default value is 500.
  4658.  
  4659.     `reorder-blocks-duplicate'
  4660.     `reorder-blocks-duplicate-feedback'
  4661.           Used by basic block reordering pass to decide whether to use
  4662.           unconditional branch or duplicate the code on its
  4663.           destination.  Code is duplicated when its estimated size is
  4664.           smaller than this value multiplied by the estimated size of
  4665.           unconditional jump in the hot spots of the program.
  4666.  
  4667.           The `reorder-block-duplicate-feedback' is used only when
  4668.           profile feedback is available and may be set to higher values
  4669.           than `reorder-block-duplicate' since information about the
  4670.           hot spots is more accurate.
  4671.  
  4672. 
  4673. File: gcc,  Node: Preprocessor Options,  Next: Assembler Options,  Prev: Optimize Options,  Up: Invoking GCC
  4674.  
  4675. 3.11 Options Controlling the Preprocessor
  4676. =========================================
  4677.  
  4678. These options control the C preprocessor, which is run on each C source
  4679. file before actual compilation.
  4680.  
  4681.  If you use the `-E' option, nothing is done except preprocessing.
  4682. Some of these options make sense only together with `-E' because they
  4683. cause the preprocessor output to be unsuitable for actual compilation.
  4684.  
  4685.      You can use `-Wp,OPTION' to bypass the compiler driver and pass
  4686.      OPTION directly through to the preprocessor.  If OPTION contains
  4687.      commas, it is split into multiple options at the commas.  However,
  4688.      many options are modified, translated or interpreted by the
  4689.      compiler driver before being passed to the preprocessor, and `-Wp'
  4690.      forcibly bypasses this phase.  The preprocessor's direct interface
  4691.      is undocumented and subject to change, so whenever possible you
  4692.      should avoid using `-Wp' and let the driver handle the options
  4693.      instead.
  4694.  
  4695. `-Xpreprocessor OPTION'
  4696.      Pass OPTION as an option to the preprocessor.  You can use this to
  4697.      supply system-specific preprocessor options which GCC does not
  4698.      know how to recognize.
  4699.  
  4700.      If you want to pass an option that takes an argument, you must use
  4701.      `-Xpreprocessor' twice, once for the option and once for the
  4702.      argument.
  4703.  
  4704. `-D NAME'
  4705.      Predefine NAME as a macro, with definition `1'.
  4706.  
  4707. `-D NAME=DEFINITION'
  4708.      Predefine NAME as a macro, with definition DEFINITION.  The
  4709.      contents of DEFINITION are tokenized and processed as if they
  4710.      appeared during translation phase three in a `#define' directive.
  4711.      In particular, the definition will be truncated by embedded
  4712.      newline characters.
  4713.  
  4714.      If you are invoking the preprocessor from a shell or shell-like
  4715.      program you may need to use the shell's quoting syntax to protect
  4716.      characters such as spaces that have a meaning in the shell syntax.
  4717.  
  4718.      If you wish to define a function-like macro on the command line,
  4719.      write its argument list with surrounding parentheses before the
  4720.      equals sign (if any).  Parentheses are meaningful to most shells,
  4721.      so you will need to quote the option.  With `sh' and `csh',
  4722.      `-D'NAME(ARGS...)=DEFINITION'' works.
  4723.  
  4724.      `-D' and `-U' options are processed in the order they are given on
  4725.      the command line.  All `-imacros FILE' and `-include FILE' options
  4726.      are processed after all `-D' and `-U' options.
  4727.  
  4728. `-U NAME'
  4729.      Cancel any previous definition of NAME, either built in or
  4730.      provided with a `-D' option.
  4731.  
  4732. `-undef'
  4733.      Do not predefine any system-specific or GCC-specific macros.  The
  4734.      standard predefined macros remain defined.
  4735.  
  4736. `-I DIR'
  4737.      Add the directory DIR to the list of directories to be searched
  4738.      for header files.  Directories named by `-I' are searched before
  4739.      the standard system include directories.  If the directory DIR is
  4740.      a standard system include directory, the option is ignored to
  4741.      ensure that the default search order for system directories and
  4742.      the special treatment of system headers are not defeated .
  4743.  
  4744. `-o FILE'
  4745.      Write output to FILE.  This is the same as specifying FILE as the
  4746.      second non-option argument to `cpp'.  `gcc' has a different
  4747.      interpretation of a second non-option argument, so you must use
  4748.      `-o' to specify the output file.
  4749.  
  4750. `-Wall'
  4751.      Turns on all optional warnings which are desirable for normal code.
  4752.      At present this is `-Wcomment', `-Wtrigraphs', `-Wmultichar' and a
  4753.      warning about integer promotion causing a change of sign in `#if'
  4754.      expressions.  Note that many of the preprocessor's warnings are on
  4755.      by default and have no options to control them.
  4756.  
  4757. `-Wcomment'
  4758. `-Wcomments'
  4759.      Warn whenever a comment-start sequence `/*' appears in a `/*'
  4760.      comment, or whenever a backslash-newline appears in a `//' comment.
  4761.      (Both forms have the same effect.)
  4762.  
  4763. `-Wtrigraphs'
  4764.      Most trigraphs in comments cannot affect the meaning of the
  4765.      program.  However, a trigraph that would form an escaped newline
  4766.      (`??/' at the end of a line) can, by changing where the comment
  4767.      begins or ends.  Therefore, only trigraphs that would form escaped
  4768.      newlines produce warnings inside a comment.
  4769.  
  4770.      This option is implied by `-Wall'.  If `-Wall' is not given, this
  4771.      option is still enabled unless trigraphs are enabled.  To get
  4772.      trigraph conversion without warnings, but get the other `-Wall'
  4773.      warnings, use `-trigraphs -Wall -Wno-trigraphs'.
  4774.  
  4775. `-Wtraditional'
  4776.      Warn about certain constructs that behave differently in
  4777.      traditional and ISO C.  Also warn about ISO C constructs that have
  4778.      no traditional C equivalent, and problematic constructs which
  4779.      should be avoided.
  4780.  
  4781. `-Wimport'
  4782.      Warn the first time `#import' is used.
  4783.  
  4784. `-Wundef'
  4785.      Warn whenever an identifier which is not a macro is encountered in
  4786.      an `#if' directive, outside of `defined'.  Such identifiers are
  4787.      replaced with zero.
  4788.  
  4789. `-Wunused-macros'
  4790.      Warn about macros defined in the main file that are unused.  A
  4791.      macro is "used" if it is expanded or tested for existence at least
  4792.      once.  The preprocessor will also warn if the macro has not been
  4793.      used at the time it is redefined or undefined.
  4794.  
  4795.      Built-in macros, macros defined on the command line, and macros
  4796.      defined in include files are not warned about.
  4797.  
  4798.      *Note:* If a macro is actually used, but only used in skipped
  4799.      conditional blocks, then CPP will report it as unused.  To avoid
  4800.      the warning in such a case, you might improve the scope of the
  4801.      macro's definition by, for example, moving it into the first
  4802.      skipped block.  Alternatively, you could provide a dummy use with
  4803.      something like:
  4804.  
  4805.           #if defined the_macro_causing_the_warning
  4806.           #endif
  4807.  
  4808. `-Wendif-labels'
  4809.      Warn whenever an `#else' or an `#endif' are followed by text.
  4810.      This usually happens in code of the form
  4811.  
  4812.           #if FOO
  4813.           ...
  4814.           #else FOO
  4815.           ...
  4816.           #endif FOO
  4817.  
  4818.      The second and third `FOO' should be in comments, but often are not
  4819.      in older programs.  This warning is on by default.
  4820.  
  4821. `-Werror'
  4822.      Make all warnings into hard errors.  Source code which triggers
  4823.      warnings will be rejected.
  4824.  
  4825. `-Wsystem-headers'
  4826.      Issue warnings for code in system headers.  These are normally
  4827.      unhelpful in finding bugs in your own code, therefore suppressed.
  4828.      If you are responsible for the system library, you may want to see
  4829.      them.
  4830.  
  4831. `-w'
  4832.      Suppress all warnings, including those which GNU CPP issues by
  4833.      default.
  4834.  
  4835. `-pedantic'
  4836.      Issue all the mandatory diagnostics listed in the C standard.
  4837.      Some of them are left out by default, since they trigger
  4838.      frequently on harmless code.
  4839.  
  4840. `-pedantic-errors'
  4841.      Issue all the mandatory diagnostics, and make all mandatory
  4842.      diagnostics into errors.  This includes mandatory diagnostics that
  4843.      GCC issues without `-pedantic' but treats as warnings.
  4844.  
  4845. `-M'
  4846.      Instead of outputting the result of preprocessing, output a rule
  4847.      suitable for `make' describing the dependencies of the main source
  4848.      file.  The preprocessor outputs one `make' rule containing the
  4849.      object file name for that source file, a colon, and the names of
  4850.      all the included files, including those coming from `-include' or
  4851.      `-imacros' command line options.
  4852.  
  4853.      Unless specified explicitly (with `-MT' or `-MQ'), the object file
  4854.      name consists of the basename of the source file with any suffix
  4855.      replaced with object file suffix.  If there are many included
  4856.      files then the rule is split into several lines using `\'-newline.
  4857.      The rule has no commands.
  4858.  
  4859.      This option does not suppress the preprocessor's debug output,
  4860.      such as `-dM'.  To avoid mixing such debug output with the
  4861.      dependency rules you should explicitly specify the dependency
  4862.      output file with `-MF', or use an environment variable like
  4863.      `DEPENDENCIES_OUTPUT' (*note Environment Variables::).  Debug
  4864.      output will still be sent to the regular output stream as normal.
  4865.  
  4866.      Passing `-M' to the driver implies `-E', and suppresses warnings
  4867.      with an implicit `-w'.
  4868.  
  4869. `-MM'
  4870.      Like `-M' but do not mention header files that are found in system
  4871.      header directories, nor header files that are included, directly
  4872.      or indirectly, from such a header.
  4873.  
  4874.      This implies that the choice of angle brackets or double quotes in
  4875.      an `#include' directive does not in itself determine whether that
  4876.      header will appear in `-MM' dependency output.  This is a slight
  4877.      change in semantics from GCC versions 3.0 and earlier.
  4878.  
  4879. `-MF FILE'
  4880.      When used with `-M' or `-MM', specifies a file to write the
  4881.      dependencies to.  If no `-MF' switch is given the preprocessor
  4882.      sends the rules to the same place it would have sent preprocessed
  4883.      output.
  4884.  
  4885.      When used with the driver options `-MD' or `-MMD', `-MF' overrides
  4886.      the default dependency output file.
  4887.  
  4888. `-MG'
  4889.      In conjunction with an option such as `-M' requesting dependency
  4890.      generation, `-MG' assumes missing header files are generated files
  4891.      and adds them to the dependency list without raising an error.
  4892.      The dependency filename is taken directly from the `#include'
  4893.      directive without prepending any path.  `-MG' also suppresses
  4894.      preprocessed output, as a missing header file renders this useless.
  4895.  
  4896.      This feature is used in automatic updating of makefiles.
  4897.  
  4898. `-MP'
  4899.      This option instructs CPP to add a phony target for each dependency
  4900.      other than the main file, causing each to depend on nothing.  These
  4901.      dummy rules work around errors `make' gives if you remove header
  4902.      files without updating the `Makefile' to match.
  4903.  
  4904.      This is typical output:
  4905.  
  4906.           test.o: test.c test.h
  4907.  
  4908.           test.h:
  4909.  
  4910. `-MT TARGET'
  4911.      Change the target of the rule emitted by dependency generation.  By
  4912.      default CPP takes the name of the main input file, including any
  4913.      path, deletes any file suffix such as `.c', and appends the
  4914.      platform's usual object suffix.  The result is the target.
  4915.  
  4916.      An `-MT' option will set the target to be exactly the string you
  4917.      specify.  If you want multiple targets, you can specify them as a
  4918.      single argument to `-MT', or use multiple `-MT' options.
  4919.  
  4920.      For example, `-MT '$(objpfx)foo.o'' might give
  4921.  
  4922.           $(objpfx)foo.o: foo.c
  4923.  
  4924. `-MQ TARGET'
  4925.      Same as `-MT', but it quotes any characters which are special to
  4926.      Make.  `-MQ '$(objpfx)foo.o'' gives
  4927.  
  4928.           $$(objpfx)foo.o: foo.c
  4929.  
  4930.      The default target is automatically quoted, as if it were given
  4931.      with `-MQ'.
  4932.  
  4933. `-MD'
  4934.      `-MD' is equivalent to `-M -MF FILE', except that `-E' is not
  4935.      implied.  The driver determines FILE based on whether an `-o'
  4936.      option is given.  If it is, the driver uses its argument but with
  4937.      a suffix of `.d', otherwise it take the basename of the input file
  4938.      and applies a `.d' suffix.
  4939.  
  4940.      If `-MD' is used in conjunction with `-E', any `-o' switch is
  4941.      understood to specify the dependency output file (but *note -MF:
  4942.      dashMF.), but if used without `-E', each `-o' is understood to
  4943.      specify a target object file.
  4944.  
  4945.      Since `-E' is not implied, `-MD' can be used to generate a
  4946.      dependency output file as a side-effect of the compilation process.
  4947.  
  4948. `-MMD'
  4949.      Like `-MD' except mention only user header files, not system
  4950.      -header files.
  4951.  
  4952. `-fpch-deps'
  4953.      When using precompiled headers (*note Precompiled Headers::), this
  4954.      flag will cause the dependency-output flags to also list the files
  4955.      from the precompiled header's dependencies.  If not specified only
  4956.      the precompiled header would be listed and not the files that were
  4957.      used to create it because those files are not consulted when a
  4958.      precompiled header is used.
  4959.  
  4960. `-x c'
  4961. `-x c++'
  4962. `-x objective-c'
  4963. `-x assembler-with-cpp'
  4964.      Specify the source language: C, C++, Objective-C, or assembly.
  4965.      This has nothing to do with standards conformance or extensions;
  4966.      it merely selects which base syntax to expect.  If you give none
  4967.      of these options, cpp will deduce the language from the extension
  4968.      of the source file: `.c', `.cc', `.m', or `.S'.  Some other common
  4969.      extensions for C++ and assembly are also recognized.  If cpp does
  4970.      not recognize the extension, it will treat the file as C; this is
  4971.      the most generic mode.
  4972.  
  4973.      *Note:* Previous versions of cpp accepted a `-lang' option which
  4974.      selected both the language and the standards conformance level.
  4975.      This option has been removed, because it conflicts with the `-l'
  4976.      option.
  4977.  
  4978. `-std=STANDARD'
  4979. `-ansi'
  4980.      Specify the standard to which the code should conform.  Currently
  4981.      CPP knows about C and C++ standards; others may be added in the
  4982.      future.
  4983.  
  4984.      STANDARD may be one of:
  4985.     `iso9899:1990'
  4986.     `c89'
  4987.           The ISO C standard from 1990.  `c89' is the customary
  4988.           shorthand for this version of the standard.
  4989.  
  4990.           The `-ansi' option is equivalent to `-std=c89'.
  4991.  
  4992.     `iso9899:199409'
  4993.           The 1990 C standard, as amended in 1994.
  4994.  
  4995.     `iso9899:1999'
  4996.     `c99'
  4997.     `iso9899:199x'
  4998.     `c9x'
  4999.           The revised ISO C standard, published in December 1999.
  5000.           Before publication, this was known as C9X.
  5001.  
  5002.     `gnu89'
  5003.           The 1990 C standard plus GNU extensions.  This is the default.
  5004.  
  5005.     `gnu99'
  5006.     `gnu9x'
  5007.           The 1999 C standard plus GNU extensions.
  5008.  
  5009.     `c++98'
  5010.           The 1998 ISO C++ standard plus amendments.
  5011.  
  5012.     `gnu++98'
  5013.           The same as `-std=c++98' plus GNU extensions.  This is the
  5014.           default for C++ code.
  5015.  
  5016. `-I-'
  5017.      Split the include path.  Any directories specified with `-I'
  5018.      options before `-I-' are searched only for headers requested with
  5019.      `#include "FILE"'; they are not searched for `#include <FILE>'.
  5020.      If additional directories are specified with `-I' options after
  5021.      the `-I-', those directories are searched for all `#include'
  5022.      directives.
  5023.  
  5024.      In addition, `-I-' inhibits the use of the directory of the current
  5025.      file directory as the first search directory for `#include "FILE"'.
  5026.  
  5027. `-nostdinc'
  5028.      Do not search the standard system directories for header files.
  5029.      Only the directories you have specified with `-I' options (and the
  5030.      directory of the current file, if appropriate) are searched.
  5031.  
  5032. `-nostdinc++'
  5033.      Do not search for header files in the C++-specific standard
  5034.      directories, but do still search the other standard directories.
  5035.      (This option is used when building the C++ library.)
  5036.  
  5037. `-include FILE'
  5038.      Process FILE as if `#include "file"' appeared as the first line of
  5039.      the primary source file.  However, the first directory searched
  5040.      for FILE is the preprocessor's working directory _instead of_ the
  5041.      directory containing the main source file.  If not found there, it
  5042.      is searched for in the remainder of the `#include "..."' search
  5043.      chain as normal.
  5044.  
  5045.      If multiple `-include' options are given, the files are included
  5046.      in the order they appear on the command line.
  5047.  
  5048. `-imacros FILE'
  5049.      Exactly like `-include', except that any output produced by
  5050.      scanning FILE is thrown away.  Macros it defines remain defined.
  5051.      This allows you to acquire all the macros from a header without
  5052.      also processing its declarations.
  5053.  
  5054.      All files specified by `-imacros' are processed before all files
  5055.      specified by `-include'.
  5056.  
  5057. `-idirafter DIR'
  5058.      Search DIR for header files, but do it _after_ all directories
  5059.      specified with `-I' and the standard system directories have been
  5060.      exhausted.  DIR is treated as a system include directory.
  5061.  
  5062. `-iprefix PREFIX'
  5063.      Specify PREFIX as the prefix for subsequent `-iwithprefix'
  5064.      options.  If the prefix represents a directory, you should include
  5065.      the final `/'.
  5066.  
  5067. `-iwithprefix DIR'
  5068. `-iwithprefixbefore DIR'
  5069.      Append DIR to the prefix specified previously with `-iprefix', and
  5070.      add the resulting directory to the include search path.
  5071.      `-iwithprefixbefore' puts it in the same place `-I' would;
  5072.      `-iwithprefix' puts it where `-idirafter' would.
  5073.  
  5074. `-isystem DIR'
  5075.      Search DIR for header files, after all directories specified by
  5076.      `-I' but before the standard system directories.  Mark it as a
  5077.      system directory, so that it gets the same special treatment as is
  5078.      applied to the standard system directories.
  5079.  
  5080. `-fdollars-in-identifiers'
  5081.      Accept `$' in identifiers.
  5082.  
  5083. `-fpreprocessed'
  5084.      Indicate to the preprocessor that the input file has already been
  5085.      preprocessed.  This suppresses things like macro expansion,
  5086.      trigraph conversion, escaped newline splicing, and processing of
  5087.      most directives.  The preprocessor still recognizes and removes
  5088.      comments, so that you can pass a file preprocessed with `-C' to
  5089.      the compiler without problems.  In this mode the integrated
  5090.      preprocessor is little more than a tokenizer for the front ends.
  5091.  
  5092.      `-fpreprocessed' is implicit if the input file has one of the
  5093.      extensions `.i', `.ii' or `.mi'.  These are the extensions that
  5094.      GCC uses for preprocessed files created by `-save-temps'.
  5095.  
  5096. `-ftabstop=WIDTH'
  5097.      Set the distance between tab stops.  This helps the preprocessor
  5098.      report correct column numbers in warnings or errors, even if tabs
  5099.      appear on the line.  If the value is less than 1 or greater than
  5100.      100, the option is ignored.  The default is 8.
  5101.  
  5102. `-fexec-charset=CHARSET'
  5103.      Set the execution character set, used for string and character
  5104.      constants.  The default is UTF-8.  CHARSET can be any encoding
  5105.      supported by the system's `iconv' library routine.
  5106.  
  5107. `-fwide-exec-charset=CHARSET'
  5108.      Set the wide execution character set, used for wide string and
  5109.      character constants.  The default is UTF-32 or UTF-16, whichever
  5110.      corresponds to the width of `wchar_t'.  As with
  5111.      `-ftarget-charset', CHARSET can be any encoding supported by the
  5112.      system's `iconv' library routine; however, you will have problems
  5113.      with encodings that do not fit exactly in `wchar_t'.
  5114.  
  5115. `-finput-charset=CHARSET'
  5116.      Set the input character set, used for translation from the
  5117.      character set of the input file to the source character set used
  5118.      by GCC. If the locale does not specify, or GCC cannot get this
  5119.      information from the locale, the default is UTF-8. This can be
  5120.      overridden by either the locale or this command line option.
  5121.      Currently the command line option takes precedence if there's a
  5122.      conflict. CHARSET can be any encoding supported by the system's
  5123.      `iconv' library routine.
  5124.  
  5125. `-fworking-directory'
  5126.      Enable generation of linemarkers in the preprocessor output that
  5127.      will let the compiler know the current working directory at the
  5128.      time of preprocessing.  When this option is enabled, the
  5129.      preprocessor will emit, after the initial linemarker, a second
  5130.      linemarker with the current working directory followed by two
  5131.      slashes.  GCC will use this directory, when it's present in the
  5132.      preprocessed input, as the directory emitted as the current
  5133.      working directory in some debugging information formats.  This
  5134.      option is implicitly enabled if debugging information is enabled,
  5135.      but this can be inhibited with the negated form
  5136.      `-fno-working-directory'.  If the `-P' flag is present in the
  5137.      command line, this option has no effect, since no `#line'
  5138.      directives are emitted whatsoever.
  5139.  
  5140. `-fno-show-column'
  5141.      Do not print column numbers in diagnostics.  This may be necessary
  5142.      if diagnostics are being scanned by a program that does not
  5143.      understand the column numbers, such as `dejagnu'.
  5144.  
  5145. `-A PREDICATE=ANSWER'
  5146.      Make an assertion with the predicate PREDICATE and answer ANSWER.
  5147.      This form is preferred to the older form `-A PREDICATE(ANSWER)',
  5148.      which is still supported, because it does not use shell special
  5149.      characters.
  5150.  
  5151. `-A -PREDICATE=ANSWER'
  5152.      Cancel an assertion with the predicate PREDICATE and answer ANSWER.
  5153.  
  5154. `-dCHARS'
  5155.      CHARS is a sequence of one or more of the following characters,
  5156.      and must not be preceded by a space.  Other characters are
  5157.      interpreted by the compiler proper, or reserved for future
  5158.      versions of GCC, and so are silently ignored.  If you specify
  5159.      characters whose behavior conflicts, the result is undefined.
  5160.  
  5161.     `M'
  5162.           Instead of the normal output, generate a list of `#define'
  5163.           directives for all the macros defined during the execution of
  5164.           the preprocessor, including predefined macros.  This gives
  5165.           you a way of finding out what is predefined in your version
  5166.           of the preprocessor.  Assuming you have no file `foo.h', the
  5167.           command
  5168.  
  5169.                touch foo.h; cpp -dM foo.h
  5170.  
  5171.           will show all the predefined macros.
  5172.  
  5173.     `D'
  5174.           Like `M' except in two respects: it does _not_ include the
  5175.           predefined macros, and it outputs _both_ the `#define'
  5176.           directives and the result of preprocessing.  Both kinds of
  5177.           output go to the standard output file.
  5178.  
  5179.     `N'
  5180.           Like `D', but emit only the macro names, not their expansions.
  5181.  
  5182.     `I'
  5183.           Output `#include' directives in addition to the result of
  5184.           preprocessing.
  5185.  
  5186. `-P'
  5187.      Inhibit generation of linemarkers in the output from the
  5188.      preprocessor.  This might be useful when running the preprocessor
  5189.      on something that is not C code, and will be sent to a program
  5190.      which might be confused by the linemarkers.
  5191.  
  5192. `-C'
  5193.      Do not discard comments.  All comments are passed through to the
  5194.      output file, except for comments in processed directives, which
  5195.      are deleted along with the directive.
  5196.  
  5197.      You should be prepared for side effects when using `-C'; it causes
  5198.      the preprocessor to treat comments as tokens in their own right.
  5199.      For example, comments appearing at the start of what would be a
  5200.      directive line have the effect of turning that line into an
  5201.      ordinary source line, since the first token on the line is no
  5202.      longer a `#'.
  5203.  
  5204. `-CC'
  5205.      Do not discard comments, including during macro expansion.  This is
  5206.      like `-C', except that comments contained within macros are also
  5207.      passed through to the output file where the macro is expanded.
  5208.  
  5209.      In addition to the side-effects of the `-C' option, the `-CC'
  5210.      option causes all C++-style comments inside a macro to be
  5211.      converted to C-style comments.  This is to prevent later use of
  5212.      that macro from inadvertently commenting out the remainder of the
  5213.      source line.
  5214.  
  5215.      The `-CC' option is generally used to support lint comments.
  5216.  
  5217. `-traditional-cpp'
  5218.      Try to imitate the behavior of old-fashioned C preprocessors, as
  5219.      opposed to ISO C preprocessors.
  5220.  
  5221. `-trigraphs'
  5222.      Process trigraph sequences.  These are three-character sequences,
  5223.      all starting with `??', that are defined by ISO C to stand for
  5224.      single characters.  For example, `??/' stands for `\', so `'??/n''
  5225.      is a character constant for a newline.  By default, GCC ignores
  5226.      trigraphs, but in standard-conforming modes it converts them.  See
  5227.      the `-std' and `-ansi' options.
  5228.  
  5229.      The nine trigraphs and their replacements are
  5230.  
  5231.           Trigraph:       ??(  ??)  ??<  ??>  ??=  ??/  ??'  ??!  ??-
  5232.           Replacement:      [    ]    {    }    #    \    ^    |    ~
  5233.  
  5234. `-remap'
  5235.      Enable special code to work around file systems which only permit
  5236.      very short file names, such as MS-DOS.
  5237.  
  5238. `--help'
  5239. `--target-help'
  5240.      Print text describing all the command line options instead of
  5241.      preprocessing anything.
  5242.  
  5243. `-v'
  5244.      Verbose mode.  Print out GNU CPP's version number at the beginning
  5245.      of execution, and report the final form of the include path.
  5246.  
  5247. `-H'
  5248.      Print the name of each header file used, in addition to other
  5249.      normal activities.  Each name is indented to show how deep in the
  5250.      `#include' stack it is.  Precompiled header files are also
  5251.      printed, even if they are found to be invalid; an invalid
  5252.      precompiled header file is printed with `...x' and a valid one
  5253.      with `...!' .
  5254.  
  5255. `-version'
  5256. `--version'
  5257.      Print out GNU CPP's version number.  With one dash, proceed to
  5258.      preprocess as normal.  With two dashes, exit immediately.
  5259.  
  5260. 
  5261. File: gcc,  Node: Assembler Options,  Next: Link Options,  Prev: Preprocessor Options,  Up: Invoking GCC
  5262.  
  5263. 3.12 Passing Options to the Assembler
  5264. =====================================
  5265.  
  5266. You can pass options to the assembler.
  5267.  
  5268. `-Wa,OPTION'
  5269.      Pass OPTION as an option to the assembler.  If OPTION contains
  5270.      commas, it is split into multiple options at the commas.
  5271.  
  5272. `-Xassembler OPTION'
  5273.      Pass OPTION as an option to the assembler.  You can use this to
  5274.      supply system-specific assembler options which GCC does not know
  5275.      how to recognize.
  5276.  
  5277.      If you want to pass an option that takes an argument, you must use
  5278.      `-Xassembler' twice, once for the option and once for the argument.
  5279.  
  5280.  
  5281. 
  5282. File: gcc,  Node: Link Options,  Next: Directory Options,  Prev: Assembler Options,  Up: Invoking GCC
  5283.  
  5284. 3.13 Options for Linking
  5285. ========================
  5286.  
  5287. These options come into play when the compiler links object files into
  5288. an executable output file.  They are meaningless if the compiler is not
  5289. doing a link step.
  5290.  
  5291. `OBJECT-FILE-NAME'
  5292.      A file name that does not end in a special recognized suffix is
  5293.      considered to name an object file or library.  (Object files are
  5294.      distinguished from libraries by the linker according to the file
  5295.      contents.)  If linking is done, these object files are used as
  5296.      input to the linker.
  5297.  
  5298. `-c'
  5299. `-S'
  5300. `-E'
  5301.      If any of these options is used, then the linker is not run, and
  5302.      object file names should not be used as arguments.  *Note Overall
  5303.      Options::.
  5304.  
  5305. `-lLIBRARY'
  5306. `-l LIBRARY'
  5307.      Search the library named LIBRARY when linking.  (The second
  5308.      alternative with the library as a separate argument is only for
  5309.      POSIX compliance and is not recommended.)
  5310.  
  5311.      It makes a difference where in the command you write this option;
  5312.      the linker searches and processes libraries and object files in
  5313.      the order they are specified.  Thus, `foo.o -lz bar.o' searches
  5314.      library `z' after file `foo.o' but before `bar.o'.  If `bar.o'
  5315.      refers to functions in `z', those functions may not be loaded.
  5316.  
  5317.      The linker searches a standard list of directories for the library,
  5318.      which is actually a file named `libLIBRARY.a'.  The linker then
  5319.      uses this file as if it had been specified precisely by name.
  5320.  
  5321.      The directories searched include several standard system
  5322.      directories plus any that you specify with `-L'.
  5323.  
  5324.      Normally the files found this way are library files--archive files
  5325.      whose members are object files.  The linker handles an archive
  5326.      file by scanning through it for members which define symbols that
  5327.      have so far been referenced but not defined.  But if the file that
  5328.      is found is an ordinary object file, it is linked in the usual
  5329.      fashion.  The only difference between using an `-l' option and
  5330.      specifying a file name is that `-l' surrounds LIBRARY with `lib'
  5331.      and `.a' and searches several directories.
  5332.  
  5333. `-lobjc'
  5334.      You need this special case of the `-l' option in order to link an
  5335.      Objective-C program.
  5336.  
  5337. `-nostartfiles'
  5338.      Do not use the standard system startup files when linking.  The
  5339.      standard system libraries are used normally, unless `-nostdlib' or
  5340.      `-nodefaultlibs' is used.
  5341.  
  5342. `-nodefaultlibs'
  5343.      Do not use the standard system libraries when linking.  Only the
  5344.      libraries you specify will be passed to the linker.  The standard
  5345.      startup files are used normally, unless `-nostartfiles' is used.
  5346.      The compiler may generate calls to memcmp, memset, and memcpy for
  5347.      System V (and ISO C) environments or to bcopy and bzero for BSD
  5348.      environments.  These entries are usually resolved by entries in
  5349.      libc.  These entry points should be supplied through some other
  5350.      mechanism when this option is specified.
  5351.  
  5352. `-nostdlib'
  5353.      Do not use the standard system startup files or libraries when
  5354.      linking.  No startup files and only the libraries you specify will
  5355.      be passed to the linker.  The compiler may generate calls to
  5356.      memcmp, memset, and memcpy for System V (and ISO C) environments
  5357.      or to bcopy and bzero for BSD environments.  These entries are
  5358.      usually resolved by entries in libc.  These entry points should be
  5359.      supplied through some other mechanism when this option is
  5360.      specified.
  5361.  
  5362.      One of the standard libraries bypassed by `-nostdlib' and
  5363.      `-nodefaultlibs' is `libgcc.a', a library of internal subroutines
  5364.      that GCC uses to overcome shortcomings of particular machines, or
  5365.      special needs for some languages.  (*Note Interfacing to GCC
  5366.      Output: (gccint)Interface, for more discussion of `libgcc.a'.)  In
  5367.      most cases, you need `libgcc.a' even when you want to avoid other
  5368.      standard libraries.  In other words, when you specify `-nostdlib'
  5369.      or `-nodefaultlibs' you should usually specify `-lgcc' as well.
  5370.      This ensures that you have no unresolved references to internal GCC
  5371.      library subroutines.  (For example, `__main', used to ensure C++
  5372.      constructors will be called; *note `collect2': (gccint)Collect2.)
  5373.  
  5374. `-pie'
  5375.      Produce a position independent executable on targets which support
  5376.      it.  For predictable results, you must also specify the same set
  5377.      of options that were used to generate code (`-fpie', `-fPIE', or
  5378.      model suboptions) when you specify this option.
  5379.  
  5380. `-s'
  5381.      Remove all symbol table and relocation information from the
  5382.      executable.
  5383.  
  5384. `-static'
  5385.      On systems that support dynamic linking, this prevents linking
  5386.      with the shared libraries.  On other systems, this option has no
  5387.      effect.
  5388.  
  5389. `-shared'
  5390.      Produce a shared object which can then be linked with other
  5391.      objects to form an executable.  Not all systems support this
  5392.      option.  For predictable results, you must also specify the same
  5393.      set of options that were used to generate code (`-fpic', `-fPIC',
  5394.      or model suboptions) when you specify this option.(1)
  5395.  
  5396. `-shared-libgcc'
  5397. `-static-libgcc'
  5398.      On systems that provide `libgcc' as a shared library, these options
  5399.      force the use of either the shared or static version respectively.
  5400.      If no shared version of `libgcc' was built when the compiler was
  5401.      configured, these options have no effect.
  5402.  
  5403.      There are several situations in which an application should use the
  5404.      shared `libgcc' instead of the static version.  The most common of
  5405.      these is when the application wishes to throw and catch exceptions
  5406.      across different shared libraries.  In that case, each of the
  5407.      libraries as well as the application itself should use the shared
  5408.      `libgcc'.
  5409.  
  5410.      Therefore, the G++ and GCJ drivers automatically add
  5411.      `-shared-libgcc' whenever you build a shared library or a main
  5412.      executable, because C++ and Java programs typically use
  5413.      exceptions, so this is the right thing to do.
  5414.  
  5415.      If, instead, you use the GCC driver to create shared libraries,
  5416.      you may find that they will not always be linked with the shared
  5417.      `libgcc'.  If GCC finds, at its configuration time, that you have
  5418.      a non-GNU linker or a GNU linker that does not support option
  5419.      `--eh-frame-hdr', it will link the shared version of `libgcc' into
  5420.      shared libraries by default.  Otherwise, it will take advantage of
  5421.      the linker and optimize away the linking with the shared version
  5422.      of `libgcc', linking with the static version of libgcc by default.
  5423.      This allows exceptions to propagate through such shared
  5424.      libraries, without incurring relocation costs at library load time.
  5425.  
  5426.      However, if a library or main executable is supposed to throw or
  5427.      catch exceptions, you must link it using the G++ or GCJ driver, as
  5428.      appropriate for the languages used in the program, or using the
  5429.      option `-shared-libgcc', such that it is linked with the shared
  5430.      `libgcc'.
  5431.  
  5432. `-symbolic'
  5433.      Bind references to global symbols when building a shared object.
  5434.      Warn about any unresolved references (unless overridden by the
  5435.      link editor option `-Xlinker -z -Xlinker defs').  Only a few
  5436.      systems support this option.
  5437.  
  5438. `-Xlinker OPTION'
  5439.      Pass OPTION as an option to the linker.  You can use this to
  5440.      supply system-specific linker options which GCC does not know how
  5441.      to recognize.
  5442.  
  5443.      If you want to pass an option that takes an argument, you must use
  5444.      `-Xlinker' twice, once for the option and once for the argument.
  5445.      For example, to pass `-assert definitions', you must write
  5446.      `-Xlinker -assert -Xlinker definitions'.  It does not work to write
  5447.      `-Xlinker "-assert definitions"', because this passes the entire
  5448.      string as a single argument, which is not what the linker expects.
  5449.  
  5450. `-Wl,OPTION'
  5451.      Pass OPTION as an option to the linker.  If OPTION contains
  5452.      commas, it is split into multiple options at the commas.
  5453.  
  5454. `-u SYMBOL'
  5455.      Pretend the symbol SYMBOL is undefined, to force linking of
  5456.      library modules to define it.  You can use `-u' multiple times with
  5457.      different symbols to force loading of additional library modules.
  5458.  
  5459.  ---------- Footnotes ----------
  5460.  
  5461.  (1) On some systems, `gcc -shared' needs to build supplementary stub
  5462. code for constructors to work.  On multi-libbed systems, `gcc -shared'
  5463. must select the correct support libraries to link against.  Failing to
  5464. supply the correct flags may lead to subtle defects.  Supplying them in
  5465. cases where they are not necessary is innocuous.
  5466.  
  5467. 
  5468. File: gcc,  Node: Directory Options,  Next: Spec Files,  Prev: Link Options,  Up: Invoking GCC
  5469.  
  5470. 3.14 Options for Directory Search
  5471. =================================
  5472.  
  5473. These options specify directories to search for header files, for
  5474. libraries and for parts of the compiler:
  5475.  
  5476. `-IDIR'
  5477.      Add the directory DIR to the head of the list of directories to be
  5478.      searched for header files.  This can be used to override a system
  5479.      header file, substituting your own version, since these
  5480.      directories are searched before the system header file
  5481.      directories.  However, you should not use this option to add
  5482.      directories that contain vendor-supplied system header files (use
  5483.      `-isystem' for that).  If you use more than one `-I' option, the
  5484.      directories are scanned in left-to-right order; the standard
  5485.      system directories come after.
  5486.  
  5487.      If a standard system include directory, or a directory specified
  5488.      with `-isystem', is also specified with `-I', the `-I' option will
  5489.      be ignored.  The directory will still be searched but as a system
  5490.      directory at its normal position in the system include chain.
  5491.      This is to ensure that GCC's procedure to fix buggy system headers
  5492.      and the ordering for the include_next directive are not
  5493.      inadvertently changed.  If you really need to change the search
  5494.      order for system directories, use the `-nostdinc' and/or
  5495.      `-isystem' options.
  5496.  
  5497. `-I-'
  5498.      Any directories you specify with `-I' options before the `-I-'
  5499.      option are searched only for the case of `#include "FILE"'; they
  5500.      are not searched for `#include <FILE>'.
  5501.  
  5502.      If additional directories are specified with `-I' options after
  5503.      the `-I-', these directories are searched for all `#include'
  5504.      directives.  (Ordinarily _all_ `-I' directories are used this way.)
  5505.  
  5506.      In addition, the `-I-' option inhibits the use of the current
  5507.      directory (where the current input file came from) as the first
  5508.      search directory for `#include "FILE"'.  There is no way to
  5509.      override this effect of `-I-'.  With `-I.' you can specify
  5510.      searching the directory which was current when the compiler was
  5511.      invoked.  That is not exactly the same as what the preprocessor
  5512.      does by default, but it is often satisfactory.
  5513.  
  5514.      `-I-' does not inhibit the use of the standard system directories
  5515.      for header files.  Thus, `-I-' and `-nostdinc' are independent.
  5516.  
  5517. `-LDIR'
  5518.      Add directory DIR to the list of directories to be searched for
  5519.      `-l'.
  5520.  
  5521. `-BPREFIX'
  5522.      This option specifies where to find the executables, libraries,
  5523.      include files, and data files of the compiler itself.
  5524.  
  5525.      The compiler driver program runs one or more of the subprograms
  5526.      `cpp', `cc1', `as' and `ld'.  It tries PREFIX as a prefix for each
  5527.      program it tries to run, both with and without `MACHINE/VERSION/'
  5528.      (*note Target Options::).
  5529.  
  5530.      For each subprogram to be run, the compiler driver first tries the
  5531.      `-B' prefix, if any.  If that name is not found, or if `-B' was
  5532.      not specified, the driver tries two standard prefixes, which are
  5533.      `/usr/lib/gcc/' and `/usr/local/lib/gcc/'.  If neither of those
  5534.      results in a file name that is found, the unmodified program name
  5535.      is searched for using the directories specified in your `PATH'
  5536.      environment variable.
  5537.  
  5538.      The compiler will check to see if the path provided by the `-B'
  5539.      refers to a directory, and if necessary it will add a directory
  5540.      separator character at the end of the path.
  5541.  
  5542.      `-B' prefixes that effectively specify directory names also apply
  5543.      to libraries in the linker, because the compiler translates these
  5544.      options into `-L' options for the linker.  They also apply to
  5545.      includes files in the preprocessor, because the compiler
  5546.      translates these options into `-isystem' options for the
  5547.      preprocessor.  In this case, the compiler appends `include' to the
  5548.      prefix.
  5549.  
  5550.      The run-time support file `libgcc.a' can also be searched for using
  5551.      the `-B' prefix, if needed.  If it is not found there, the two
  5552.      standard prefixes above are tried, and that is all.  The file is
  5553.      left out of the link if it is not found by those means.
  5554.  
  5555.      Another way to specify a prefix much like the `-B' prefix is to use
  5556.      the environment variable `GCC_EXEC_PREFIX'.  *Note Environment
  5557.      Variables::.
  5558.  
  5559.      As a special kludge, if the path provided by `-B' is
  5560.      `[dir/]stageN/', where N is a number in the range 0 to 9, then it
  5561.      will be replaced by `[dir/]include'.  This is to help with
  5562.      boot-strapping the compiler.
  5563.  
  5564. `-specs=FILE'
  5565.      Process FILE after the compiler reads in the standard `specs'
  5566.      file, in order to override the defaults that the `gcc' driver
  5567.      program uses when determining what switches to pass to `cc1',
  5568.      `cc1plus', `as', `ld', etc.  More than one `-specs=FILE' can be
  5569.      specified on the command line, and they are processed in order,
  5570.      from left to right.
  5571.  
  5572. 
  5573. File: gcc,  Node: Spec Files,  Next: Target Options,  Prev: Directory Options,  Up: Invoking GCC
  5574.  
  5575. 3.15 Specifying subprocesses and the switches to pass to them
  5576. =============================================================
  5577.  
  5578. `gcc' is a driver program.  It performs its job by invoking a sequence
  5579. of other programs to do the work of compiling, assembling and linking.
  5580. GCC interprets its command-line parameters and uses these to deduce
  5581. which programs it should invoke, and which command-line options it
  5582. ought to place on their command lines.  This behavior is controlled by
  5583. "spec strings".  In most cases there is one spec string for each
  5584. program that GCC can invoke, but a few programs have multiple spec
  5585. strings to control their behavior.  The spec strings built into GCC can
  5586. be overridden by using the `-specs=' command-line switch to specify a
  5587. spec file.
  5588.  
  5589.  "Spec files" are plaintext files that are used to construct spec
  5590. strings.  They consist of a sequence of directives separated by blank
  5591. lines.  The type of directive is determined by the first non-whitespace
  5592. character on the line and it can be one of the following:
  5593.  
  5594. `%COMMAND'
  5595.      Issues a COMMAND to the spec file processor.  The commands that can
  5596.      appear here are:
  5597.  
  5598.     `%include <FILE>'
  5599.           Search for FILE and insert its text at the current point in
  5600.           the specs file.
  5601.  
  5602.     `%include_noerr <FILE>'
  5603.           Just like `%include', but do not generate an error message if
  5604.           the include file cannot be found.
  5605.  
  5606.     `%rename OLD_NAME NEW_NAME'
  5607.           Rename the spec string OLD_NAME to NEW_NAME.
  5608.  
  5609.  
  5610. `*[SPEC_NAME]:'
  5611.      This tells the compiler to create, override or delete the named
  5612.      spec string.  All lines after this directive up to the next
  5613.      directive or blank line are considered to be the text for the spec
  5614.      string.  If this results in an empty string then the spec will be
  5615.      deleted.  (Or, if the spec did not exist, then nothing will
  5616.      happened.)  Otherwise, if the spec does not currently exist a new
  5617.      spec will be created.  If the spec does exist then its contents
  5618.      will be overridden by the text of this directive, unless the first
  5619.      character of that text is the `+' character, in which case the
  5620.      text will be appended to the spec.
  5621.  
  5622. `[SUFFIX]:'
  5623.      Creates a new `[SUFFIX] spec' pair.  All lines after this directive
  5624.      and up to the next directive or blank line are considered to make
  5625.      up the spec string for the indicated suffix.  When the compiler
  5626.      encounters an input file with the named suffix, it will processes
  5627.      the spec string in order to work out how to compile that file.
  5628.      For example:
  5629.  
  5630.           .ZZ:
  5631.           z-compile -input %i
  5632.  
  5633.      This says that any input file whose name ends in `.ZZ' should be
  5634.      passed to the program `z-compile', which should be invoked with the
  5635.      command-line switch `-input' and with the result of performing the
  5636.      `%i' substitution.  (See below.)
  5637.  
  5638.      As an alternative to providing a spec string, the text that
  5639.      follows a suffix directive can be one of the following:
  5640.  
  5641.     `@LANGUAGE'
  5642.           This says that the suffix is an alias for a known LANGUAGE.
  5643.           This is similar to using the `-x' command-line switch to GCC
  5644.           to specify a language explicitly.  For example:
  5645.  
  5646.                .ZZ:
  5647.                @c++
  5648.  
  5649.           Says that .ZZ files are, in fact, C++ source files.
  5650.  
  5651.     `#NAME'
  5652.           This causes an error messages saying:
  5653.  
  5654.                NAME compiler not installed on this system.
  5655.  
  5656.      GCC already has an extensive list of suffixes built into it.  This
  5657.      directive will add an entry to the end of the list of suffixes, but
  5658.      since the list is searched from the end backwards, it is
  5659.      effectively possible to override earlier entries using this
  5660.      technique.
  5661.  
  5662.  
  5663.  GCC has the following spec strings built into it.  Spec files can
  5664. override these strings or create their own.  Note that individual
  5665. targets can also add their own spec strings to this list.
  5666.  
  5667.      asm          Options to pass to the assembler
  5668.      asm_final    Options to pass to the assembler post-processor
  5669.      cpp          Options to pass to the C preprocessor
  5670.      cc1          Options to pass to the C compiler
  5671.      cc1plus      Options to pass to the C++ compiler
  5672.      endfile      Object files to include at the end of the link
  5673.      link         Options to pass to the linker
  5674.      lib          Libraries to include on the command line to the linker
  5675.      libgcc       Decides which GCC support library to pass to the linker
  5676.      linker       Sets the name of the linker
  5677.      predefines   Defines to be passed to the C preprocessor
  5678.      signed_char  Defines to pass to CPP to say whether `char' is signed
  5679.                   by default
  5680.      startfile    Object files to include at the start of the link
  5681.  
  5682.  Here is a small example of a spec file:
  5683.  
  5684.      %rename lib                 old_lib
  5685.  
  5686.      *lib:
  5687.      --start-group -lgcc -lc -leval1 --end-group %(old_lib)
  5688.  
  5689.  This example renames the spec called `lib' to `old_lib' and then
  5690. overrides the previous definition of `lib' with a new one.  The new
  5691. definition adds in some extra command-line options before including the
  5692. text of the old definition.
  5693.  
  5694.  "Spec strings" are a list of command-line options to be passed to their
  5695. corresponding program.  In addition, the spec strings can contain
  5696. `%'-prefixed sequences to substitute variable text or to conditionally
  5697. insert text into the command line.  Using these constructs it is
  5698. possible to generate quite complex command lines.
  5699.  
  5700.  Here is a table of all defined `%'-sequences for spec strings.  Note
  5701. that spaces are not generated automatically around the results of
  5702. expanding these sequences.  Therefore you can concatenate them together
  5703. or combine them with constant text in a single argument.
  5704.  
  5705. `%%'
  5706.      Substitute one `%' into the program name or argument.
  5707.  
  5708. `%i'
  5709.      Substitute the name of the input file being processed.
  5710.  
  5711. `%b'
  5712.      Substitute the basename of the input file being processed.  This
  5713.      is the substring up to (and not including) the last period and not
  5714.      including the directory.
  5715.  
  5716. `%B'
  5717.      This is the same as `%b', but include the file suffix (text after
  5718.      the last period).
  5719.  
  5720. `%d'
  5721.      Marks the argument containing or following the `%d' as a temporary
  5722.      file name, so that that file will be deleted if GCC exits
  5723.      successfully.  Unlike `%g', this contributes no text to the
  5724.      argument.
  5725.  
  5726. `%gSUFFIX'
  5727.      Substitute a file name that has suffix SUFFIX and is chosen once
  5728.      per compilation, and mark the argument in the same way as `%d'.
  5729.      To reduce exposure to denial-of-service attacks, the file name is
  5730.      now chosen in a way that is hard to predict even when previously
  5731.      chosen file names are known.  For example, `%g.s ... %g.o ... %g.s'
  5732.      might turn into `ccUVUUAU.s ccXYAXZ12.o ccUVUUAU.s'.  SUFFIX
  5733.      matches the regexp `[.A-Za-z]*' or the special string `%O', which
  5734.      is treated exactly as if `%O' had been preprocessed.  Previously,
  5735.      `%g' was simply substituted with a file name chosen once per
  5736.      compilation, without regard to any appended suffix (which was
  5737.      therefore treated just like ordinary text), making such attacks
  5738.      more likely to succeed.
  5739.  
  5740. `%uSUFFIX'
  5741.      Like `%g', but generates a new temporary file name even if
  5742.      `%uSUFFIX' was already seen.
  5743.  
  5744. `%USUFFIX'
  5745.      Substitutes the last file name generated with `%uSUFFIX',
  5746.      generating a new one if there is no such last file name.  In the
  5747.      absence of any `%uSUFFIX', this is just like `%gSUFFIX', except
  5748.      they don't share the same suffix _space_, so `%g.s ... %U.s ...
  5749.      %g.s ... %U.s' would involve the generation of two distinct file
  5750.      names, one for each `%g.s' and another for each `%U.s'.
  5751.      Previously, `%U' was simply substituted with a file name chosen
  5752.      for the previous `%u', without regard to any appended suffix.
  5753.  
  5754. `%jSUFFIX'
  5755.      Substitutes the name of the `HOST_BIT_BUCKET', if any, and if it is
  5756.      writable, and if save-temps is off; otherwise, substitute the name
  5757.      of a temporary file, just like `%u'.  This temporary file is not
  5758.      meant for communication between processes, but rather as a junk
  5759.      disposal mechanism.
  5760.  
  5761. `%|SUFFIX'
  5762. `%mSUFFIX'
  5763.      Like `%g', except if `-pipe' is in effect.  In that case `%|'
  5764.      substitutes a single dash and `%m' substitutes nothing at all.
  5765.      These are the two most common ways to instruct a program that it
  5766.      should read from standard input or write to standard output.  If
  5767.      you need something more elaborate you can use an `%{pipe:`X'}'
  5768.      construct: see for example `f/lang-specs.h'.
  5769.  
  5770. `%.SUFFIX'
  5771.      Substitutes .SUFFIX for the suffixes of a matched switch's args
  5772.      when it is subsequently output with `%*'.  SUFFIX is terminated by
  5773.      the next space or %.
  5774.  
  5775. `%w'
  5776.      Marks the argument containing or following the `%w' as the
  5777.      designated output file of this compilation.  This puts the argument
  5778.      into the sequence of arguments that `%o' will substitute later.
  5779.  
  5780. `%o'
  5781.      Substitutes the names of all the output files, with spaces
  5782.      automatically placed around them.  You should write spaces around
  5783.      the `%o' as well or the results are undefined.  `%o' is for use in
  5784.      the specs for running the linker.  Input files whose names have no
  5785.      recognized suffix are not compiled at all, but they are included
  5786.      among the output files, so they will be linked.
  5787.  
  5788. `%O'
  5789.      Substitutes the suffix for object files.  Note that this is
  5790.      handled specially when it immediately follows `%g, %u, or %U',
  5791.      because of the need for those to form complete file names.  The
  5792.      handling is such that `%O' is treated exactly as if it had already
  5793.      been substituted, except that `%g, %u, and %U' do not currently
  5794.      support additional SUFFIX characters following `%O' as they would
  5795.      following, for example, `.o'.
  5796.  
  5797. `%p'
  5798.      Substitutes the standard macro predefinitions for the current
  5799.      target machine.  Use this when running `cpp'.
  5800.  
  5801. `%P'
  5802.      Like `%p', but puts `__' before and after the name of each
  5803.      predefined macro, except for macros that start with `__' or with
  5804.      `_L', where L is an uppercase letter.  This is for ISO C.
  5805.  
  5806. `%I'
  5807.      Substitute any of `-iprefix' (made from `GCC_EXEC_PREFIX'),
  5808.      `-isysroot' (made from `TARGET_SYSTEM_ROOT'), and `-isystem' (made
  5809.      from `COMPILER_PATH' and `-B' options) as necessary.
  5810.  
  5811. `%s'
  5812.      Current argument is the name of a library or startup file of some
  5813.      sort.  Search for that file in a standard list of directories and
  5814.      substitute the full name found.
  5815.  
  5816. `%eSTR'
  5817.      Print STR as an error message.  STR is terminated by a newline.
  5818.      Use this when inconsistent options are detected.
  5819.  
  5820. `%(NAME)'
  5821.      Substitute the contents of spec string NAME at this point.
  5822.  
  5823. `%[NAME]'
  5824.      Like `%(...)' but put `__' around `-D' arguments.
  5825.  
  5826. `%x{OPTION}'
  5827.      Accumulate an option for `%X'.
  5828.  
  5829. `%X'
  5830.      Output the accumulated linker options specified by `-Wl' or a `%x'
  5831.      spec string.
  5832.  
  5833. `%Y'
  5834.      Output the accumulated assembler options specified by `-Wa'.
  5835.  
  5836. `%Z'
  5837.      Output the accumulated preprocessor options specified by `-Wp'.
  5838.  
  5839. `%a'
  5840.      Process the `asm' spec.  This is used to compute the switches to
  5841.      be passed to the assembler.
  5842.  
  5843. `%A'
  5844.      Process the `asm_final' spec.  This is a spec string for passing
  5845.      switches to an assembler post-processor, if such a program is
  5846.      needed.
  5847.  
  5848. `%l'
  5849.      Process the `link' spec.  This is the spec for computing the
  5850.      command line passed to the linker.  Typically it will make use of
  5851.      the `%L %G %S %D and %E' sequences.
  5852.  
  5853. `%D'
  5854.      Dump out a `-L' option for each directory that GCC believes might
  5855.      contain startup files.  If the target supports multilibs then the
  5856.      current multilib directory will be prepended to each of these
  5857.      paths.
  5858.  
  5859. `%M'
  5860.      Output the multilib directory with directory separators replaced
  5861.      with `_'.  If multilib directories are not set, or the multilib
  5862.      directory is `.' then this option emits nothing.
  5863.  
  5864. `%L'
  5865.      Process the `lib' spec.  This is a spec string for deciding which
  5866.      libraries should be included on the command line to the linker.
  5867.  
  5868. `%G'
  5869.      Process the `libgcc' spec.  This is a spec string for deciding
  5870.      which GCC support library should be included on the command line
  5871.      to the linker.
  5872.  
  5873. `%S'
  5874.      Process the `startfile' spec.  This is a spec for deciding which
  5875.      object files should be the first ones passed to the linker.
  5876.      Typically this might be a file named `crt0.o'.
  5877.  
  5878. `%E'
  5879.      Process the `endfile' spec.  This is a spec string that specifies
  5880.      the last object files that will be passed to the linker.
  5881.  
  5882. `%C'
  5883.      Process the `cpp' spec.  This is used to construct the arguments
  5884.      to be passed to the C preprocessor.
  5885.  
  5886. `%c'
  5887.      Process the `signed_char' spec.  This is intended to be used to
  5888.      tell cpp whether a char is signed.  It typically has the
  5889.      definition:
  5890.           %{funsigned-char:-D__CHAR_UNSIGNED__}
  5891.  
  5892. `%1'
  5893.      Process the `cc1' spec.  This is used to construct the options to
  5894.      be passed to the actual C compiler (`cc1').
  5895.  
  5896. `%2'
  5897.      Process the `cc1plus' spec.  This is used to construct the options
  5898.      to be passed to the actual C++ compiler (`cc1plus').
  5899.  
  5900. `%*'
  5901.      Substitute the variable part of a matched option.  See below.
  5902.      Note that each comma in the substituted string is replaced by a
  5903.      single space.
  5904.  
  5905. `%<`S''
  5906.      Remove all occurrences of `-S' from the command line.  Note--this
  5907.      command is position dependent.  `%' commands in the spec string
  5908.      before this one will see `-S', `%' commands in the spec string
  5909.      after this one will not.
  5910.  
  5911. `%:FUNCTION(ARGS)'
  5912.      Call the named function FUNCTION, passing it ARGS.  ARGS is first
  5913.      processed as a nested spec string, then split into an argument
  5914.      vector in the usual fashion.  The function returns a string which
  5915.      is processed as if it had appeared literally as part of the
  5916.      current spec.
  5917.  
  5918.      The following built-in spec functions are provided:
  5919.  
  5920.     ``if-exists''
  5921.           The `if-exists' spec function takes one argument, an absolute
  5922.           pathname to a file.  If the file exists, `if-exists' returns
  5923.           the pathname.  Here is a small example of its usage:
  5924.  
  5925.                *startfile:
  5926.                crt0%O%s %:if-exists(crti%O%s) crtbegin%O%s
  5927.  
  5928.     ``if-exists-else''
  5929.           The `if-exists-else' spec function is similar to the
  5930.           `if-exists' spec function, except that it takes two
  5931.           arguments.  The first argument is an absolute pathname to a
  5932.           file.  If the file exists, `if-exists-else' returns the
  5933.           pathname.  If it does not exist, it returns the second
  5934.           argument.  This way, `if-exists-else' can be used to select
  5935.           one file or another, based on the existence of the first.
  5936.           Here is a small example of its usage:
  5937.  
  5938.                *startfile:
  5939.                crt0%O%s %:if-exists(crti%O%s) \
  5940.                %:if-exists-else(crtbeginT%O%s crtbegin%O%s)
  5941.  
  5942. `%{`S'}'
  5943.      Substitutes the `-S' switch, if that switch was given to GCC.  If
  5944.      that switch was not specified, this substitutes nothing.  Note that
  5945.      the leading dash is omitted when specifying this option, and it is
  5946.      automatically inserted if the substitution is performed.  Thus the
  5947.      spec string `%{foo}' would match the command-line option `-foo'
  5948.      and would output the command line option `-foo'.
  5949.  
  5950. `%W{`S'}'
  5951.      Like %{`S'} but mark last argument supplied within as a file to be
  5952.      deleted on failure.
  5953.  
  5954. `%{`S'*}'
  5955.      Substitutes all the switches specified to GCC whose names start
  5956.      with `-S', but which also take an argument.  This is used for
  5957.      switches like `-o', `-D', `-I', etc.  GCC considers `-o foo' as
  5958.      being one switch whose names starts with `o'.  %{o*} would
  5959.      substitute this text, including the space.  Thus two arguments
  5960.      would be generated.
  5961.  
  5962. `%{`S'*&`T'*}'
  5963.      Like %{`S'*}, but preserve order of `S' and `T' options (the order
  5964.      of `S' and `T' in the spec is not significant).  There can be any
  5965.      number of ampersand-separated variables; for each the wild card is
  5966.      optional.  Useful for CPP as `%{D*&U*&A*}'.
  5967.  
  5968. `%{`S':`X'}'
  5969.      Substitutes `X', if the `-S' switch was given to GCC.
  5970.  
  5971. `%{!`S':`X'}'
  5972.      Substitutes `X', if the `-S' switch was _not_ given to GCC.
  5973.  
  5974. `%{`S'*:`X'}'
  5975.      Substitutes `X' if one or more switches whose names start with
  5976.      `-S' are specified to GCC.  Normally `X' is substituted only once,
  5977.      no matter how many such switches appeared.  However, if `%*'
  5978.      appears somewhere in `X', then `X' will be substituted once for
  5979.      each matching switch, with the `%*' replaced by the part of that
  5980.      switch that matched the `*'.
  5981.  
  5982. `%{.`S':`X'}'
  5983.      Substitutes `X', if processing a file with suffix `S'.
  5984.  
  5985. `%{!.`S':`X'}'
  5986.      Substitutes `X', if _not_ processing a file with suffix `S'.
  5987.  
  5988. `%{`S'|`P':`X'}'
  5989.      Substitutes `X' if either `-S' or `-P' was given to GCC.  This may
  5990.      be combined with `!', `.', and `*' sequences as well, although
  5991.      they have a stronger binding than the `|'.  If `%*' appears in
  5992.      `X', all of the alternatives must be starred, and only the first
  5993.      matching alternative is substituted.
  5994.  
  5995.      For example, a spec string like this:
  5996.  
  5997.           %{.c:-foo} %{!.c:-bar} %{.c|d:-baz} %{!.c|d:-boggle}
  5998.  
  5999.      will output the following command-line options from the following
  6000.      input command-line options:
  6001.  
  6002.           fred.c        -foo -baz
  6003.           jim.d         -bar -boggle
  6004.           -d fred.c     -foo -baz -boggle
  6005.           -d jim.d      -bar -baz -boggle
  6006.  
  6007. `%{S:X; T:Y; :D}'
  6008.      If `S' was given to GCC, substitutes `X'; else if `T' was given to
  6009.      GCC, substitutes `Y'; else substitutes `D'.  There can be as many
  6010.      clauses as you need.  This may be combined with `.', `!', `|', and
  6011.      `*' as needed.
  6012.  
  6013.  
  6014.  The conditional text `X' in a %{`S':`X'} or similar construct may
  6015. contain other nested `%' constructs or spaces, or even newlines.  They
  6016. are processed as usual, as described above.  Trailing white space in
  6017. `X' is ignored.  White space may also appear anywhere on the left side
  6018. of the colon in these constructs, except between `.' or `*' and the
  6019. corresponding word.
  6020.  
  6021.  The `-O', `-f', `-m', and `-W' switches are handled specifically in
  6022. these constructs.  If another value of `-O' or the negated form of a
  6023. `-f', `-m', or `-W' switch is found later in the command line, the
  6024. earlier switch value is ignored, except with {`S'*} where `S' is just
  6025. one letter, which passes all matching options.
  6026.  
  6027.  The character `|' at the beginning of the predicate text is used to
  6028. indicate that a command should be piped to the following command, but
  6029. only if `-pipe' is specified.
  6030.  
  6031.  It is built into GCC which switches take arguments and which do not.
  6032. (You might think it would be useful to generalize this to allow each
  6033. compiler's spec to say which switches take arguments.  But this cannot
  6034. be done in a consistent fashion.  GCC cannot even decide which input
  6035. files have been specified without knowing which switches take arguments,
  6036. and it must know which input files to compile in order to tell which
  6037. compilers to run).
  6038.  
  6039.  GCC also knows implicitly that arguments starting in `-l' are to be
  6040. treated as compiler output files, and passed to the linker in their
  6041. proper position among the other output files.
  6042.  
  6043. 
  6044. File: gcc,  Node: Target Options,  Next: Submodel Options,  Prev: Spec Files,  Up: Invoking GCC
  6045.  
  6046. 3.16 Specifying Target Machine and Compiler Version
  6047. ===================================================
  6048.  
  6049. The usual way to run GCC is to run the executable called `gcc', or
  6050. `<machine>-gcc' when cross-compiling, or `<machine>-gcc-<version>' to
  6051. run a version other than the one that was installed last.  Sometimes
  6052. this is inconvenient, so GCC provides options that will switch to
  6053. another cross-compiler or version.
  6054.  
  6055. `-b MACHINE'
  6056.      The argument MACHINE specifies the target machine for compilation.
  6057.  
  6058.      The value to use for MACHINE is the same as was specified as the
  6059.      machine type when configuring GCC as a cross-compiler.  For
  6060.      example, if a cross-compiler was configured with `configure
  6061.      i386v', meaning to compile for an 80386 running System V, then you
  6062.      would specify `-b i386v' to run that cross compiler.
  6063.  
  6064. `-V VERSION'
  6065.      The argument VERSION specifies which version of GCC to run.  This
  6066.      is useful when multiple versions are installed.  For example,
  6067.      VERSION might be `2.0', meaning to run GCC version 2.0.
  6068.  
  6069.  The `-V' and `-b' options work by running the
  6070. `<machine>-gcc-<version>' executable, so there's no real reason to use
  6071. them if you can just run that directly.
  6072.  
  6073. 
  6074. File: gcc,  Node: Submodel Options,  Next: Code Gen Options,  Prev: Target Options,  Up: Invoking GCC
  6075.  
  6076. 3.17 Hardware Models and Configurations
  6077. =======================================
  6078.  
  6079. Earlier we discussed the standard option `-b' which chooses among
  6080. different installed compilers for completely different target machines,
  6081. such as VAX vs. 68000 vs. 80386.
  6082.  
  6083.  In addition, each of these target machine types can have its own
  6084. special options, starting with `-m', to choose among various hardware
  6085. models or configurations--for example, 68010 vs 68020, floating
  6086. coprocessor or none.  A single installed version of the compiler can
  6087. compile for any model or configuration, according to the options
  6088. specified.
  6089.  
  6090.  Some configurations of the compiler also support additional special
  6091. options, usually for compatibility with other compilers on the same
  6092. platform.
  6093.  
  6094.  These options are defined by the macro `TARGET_SWITCHES' in the
  6095. machine description.  The default for the options is also defined by
  6096. that macro, which enables you to change the defaults.
  6097.  
  6098. * Menu:
  6099.  
  6100. * M680x0 Options::
  6101. * M68hc1x Options::
  6102. * VAX Options::
  6103. * SPARC Options::
  6104. * ARM Options::
  6105. * MN10300 Options::
  6106. * M32R/D Options::
  6107. * RS/6000 and PowerPC Options::
  6108. * Darwin Options::
  6109. * MIPS Options::
  6110. * i386 and x86-64 Options::
  6111. * HPPA Options::
  6112. * Intel 960 Options::
  6113. * DEC Alpha Options::
  6114. * DEC Alpha/VMS Options::
  6115. * H8/300 Options::
  6116. * SH Options::
  6117. * System V Options::
  6118. * TMS320C3x/C4x Options::
  6119. * V850 Options::
  6120. * ARC Options::
  6121. * NS32K Options::
  6122. * AVR Options::
  6123. * MCore Options::
  6124. * IA-64 Options::
  6125. * D30V Options::
  6126. * S/390 and zSeries Options::
  6127. * CRIS Options::
  6128. * MMIX Options::
  6129. * PDP-11 Options::
  6130. * Xstormy16 Options::
  6131. * Xtensa Options::
  6132. * FRV Options::
  6133.  
  6134. 
  6135. File: gcc,  Node: M680x0 Options,  Next: M68hc1x Options,  Up: Submodel Options
  6136.  
  6137. 3.17.1 M680x0 Options
  6138. ---------------------
  6139.  
  6140. These are the `-m' options defined for the 68000 series.  The default
  6141. values for these options depends on which style of 68000 was selected
  6142. when the compiler was configured; the defaults for the most common
  6143. choices are given below.
  6144.  
  6145. `-m68000'
  6146. `-mc68000'
  6147.      Generate output for a 68000.  This is the default when the
  6148.      compiler is configured for 68000-based systems.
  6149.  
  6150.      Use this option for microcontrollers with a 68000 or EC000 core,
  6151.      including the 68008, 68302, 68306, 68307, 68322, 68328 and 68356.
  6152.  
  6153. `-m68020'
  6154. `-mc68020'
  6155.      Generate output for a 68020.  This is the default when the
  6156.      compiler is configured for 68020-based systems.
  6157.  
  6158. `-m68881'
  6159.      Generate output containing 68881 instructions for floating point.
  6160.      This is the default for most 68020 systems unless `--nfp' was
  6161.      specified when the compiler was configured.
  6162.  
  6163. `-m68030'
  6164.      Generate output for a 68030.  This is the default when the
  6165.      compiler is configured for 68030-based systems.
  6166.  
  6167. `-m68040'
  6168.      Generate output for a 68040.  This is the default when the
  6169.      compiler is configured for 68040-based systems.
  6170.  
  6171.      This option inhibits the use of 68881/68882 instructions that have
  6172.      to be emulated by software on the 68040.  Use this option if your
  6173.      68040 does not have code to emulate those instructions.
  6174.  
  6175. `-m68060'
  6176.      Generate output for a 68060.  This is the default when the
  6177.      compiler is configured for 68060-based systems.
  6178.  
  6179.      This option inhibits the use of 68020 and 68881/68882 instructions
  6180.      that have to be emulated by software on the 68060.  Use this
  6181.      option if your 68060 does not have code to emulate those
  6182.      instructions.
  6183.  
  6184. `-mcpu32'
  6185.      Generate output for a CPU32.  This is the default when the
  6186.      compiler is configured for CPU32-based systems.
  6187.  
  6188.      Use this option for microcontrollers with a CPU32 or CPU32+ core,
  6189.      including the 68330, 68331, 68332, 68333, 68334, 68336, 68340,
  6190.      68341, 68349 and 68360.
  6191.  
  6192. `-m5200'
  6193.      Generate output for a 520X "coldfire" family cpu.  This is the
  6194.      default when the compiler is configured for 520X-based systems.
  6195.  
  6196.      Use this option for microcontroller with a 5200 core, including
  6197.      the MCF5202, MCF5203, MCF5204 and MCF5202.
  6198.  
  6199. `-m68020-40'
  6200.      Generate output for a 68040, without using any of the new
  6201.      instructions.  This results in code which can run relatively
  6202.      efficiently on either a 68020/68881 or a 68030 or a 68040.  The
  6203.      generated code does use the 68881 instructions that are emulated
  6204.      on the 68040.
  6205.  
  6206. `-m68020-60'
  6207.      Generate output for a 68060, without using any of the new
  6208.      instructions.  This results in code which can run relatively
  6209.      efficiently on either a 68020/68881 or a 68030 or a 68040.  The
  6210.      generated code does use the 68881 instructions that are emulated
  6211.      on the 68060.
  6212.  
  6213. `-msoft-float'
  6214.      Generate output containing library calls for floating point.
  6215.      *Warning:* the requisite libraries are not available for all m68k
  6216.      targets.  Normally the facilities of the machine's usual C
  6217.      compiler are used, but this can't be done directly in
  6218.      cross-compilation.  You must make your own arrangements to provide
  6219.      suitable library functions for cross-compilation.  The embedded
  6220.      targets `m68k-*-aout' and `m68k-*-coff' do provide software
  6221.      floating point support.
  6222.  
  6223. `-mshort'
  6224.      Consider type `int' to be 16 bits wide, like `short int'.
  6225.  
  6226. `-mnobitfield'
  6227.      Do not use the bit-field instructions.  The `-m68000', `-mcpu32'
  6228.      and `-m5200' options imply `-mnobitfield'.
  6229.  
  6230. `-mbitfield'
  6231.      Do use the bit-field instructions.  The `-m68020' option implies
  6232.      `-mbitfield'.  This is the default if you use a configuration
  6233.      designed for a 68020.
  6234.  
  6235. `-mrtd'
  6236.      Use a different function-calling convention, in which functions
  6237.      that take a fixed number of arguments return with the `rtd'
  6238.      instruction, which pops their arguments while returning.  This
  6239.      saves one instruction in the caller since there is no need to pop
  6240.      the arguments there.
  6241.  
  6242.      This calling convention is incompatible with the one normally used
  6243.      on Unix, so you cannot use it if you need to call libraries
  6244.      compiled with the Unix compiler.
  6245.  
  6246.      Also, you must provide function prototypes for all functions that
  6247.      take variable numbers of arguments (including `printf'); otherwise
  6248.      incorrect code will be generated for calls to those functions.
  6249.  
  6250.      In addition, seriously incorrect code will result if you call a
  6251.      function with too many arguments.  (Normally, extra arguments are
  6252.      harmlessly ignored.)
  6253.  
  6254.      The `rtd' instruction is supported by the 68010, 68020, 68030,
  6255.      68040, 68060 and CPU32 processors, but not by the 68000 or 5200.
  6256.  
  6257. `-malign-int'
  6258. `-mno-align-int'
  6259.      Control whether GCC aligns `int', `long', `long long', `float',
  6260.      `double', and `long double' variables on a 32-bit boundary
  6261.      (`-malign-int') or a 16-bit boundary (`-mno-align-int').  Aligning
  6262.      variables on 32-bit boundaries produces code that runs somewhat
  6263.      faster on processors with 32-bit busses at the expense of more
  6264.      memory.
  6265.  
  6266.      *Warning:* if you use the `-malign-int' switch, GCC will align
  6267.      structures containing the above types  differently than most
  6268.      published application binary interface specifications for the m68k.
  6269.  
  6270. `-mpcrel'
  6271.      Use the pc-relative addressing mode of the 68000 directly, instead
  6272.      of using a global offset table.  At present, this option implies
  6273.      `-fpic', allowing at most a 16-bit offset for pc-relative
  6274.      addressing.  `-fPIC' is not presently supported with `-mpcrel',
  6275.      though this could be supported for 68020 and higher processors.
  6276.  
  6277. `-mno-strict-align'
  6278. `-mstrict-align'
  6279.      Do not (do) assume that unaligned memory references will be
  6280.      handled by the system.
  6281.  
  6282. `-msep-data'
  6283.      Generate code that allows the data segment to be located in a
  6284.      different area of memory from the text segment.  This allows for
  6285.      execute in place in an environment without virtual memory
  6286.      management.  This option implies -fPIC.
  6287.  
  6288. `-mno-sep-data'
  6289.      Generate code that assumes that the data segment follows the text
  6290.      segment.  This is the default.
  6291.  
  6292. `-mid-shared-library'
  6293.      Generate code that supports shared libraries via the library ID
  6294.      method.  This allows for execute in place and shared libraries in
  6295.      an environment without virtual memory management.  This option
  6296.      implies -fPIC.
  6297.  
  6298. `-mno-id-shared-library'
  6299.      Generate code that doesn't assume ID based shared libraries are
  6300.      being used.  This is the default.
  6301.  
  6302. `-mshared-library-id=n'
  6303.      Specified the identification number of the ID based shared library
  6304.      being compiled.  Specifying a value of 0 will generate more
  6305.      compact code, specifying other values will force the allocation of
  6306.      that number to the current library but is no more space or time
  6307.      efficient than omitting this option.
  6308.  
  6309.  
  6310. 
  6311. File: gcc,  Node: M68hc1x Options,  Next: VAX Options,  Prev: M680x0 Options,  Up: Submodel Options
  6312.  
  6313. 3.17.2 M68hc1x Options
  6314. ----------------------
  6315.  
  6316. These are the `-m' options defined for the 68hc11 and 68hc12
  6317. microcontrollers.  The default values for these options depends on
  6318. which style of microcontroller was selected when the compiler was
  6319. configured; the defaults for the most common choices are given below.
  6320.  
  6321. `-m6811'
  6322. `-m68hc11'
  6323.      Generate output for a 68HC11.  This is the default when the
  6324.      compiler is configured for 68HC11-based systems.
  6325.  
  6326. `-m6812'
  6327. `-m68hc12'
  6328.      Generate output for a 68HC12.  This is the default when the
  6329.      compiler is configured for 68HC12-based systems.
  6330.  
  6331. `-m68S12'
  6332. `-m68hcs12'
  6333.      Generate output for a 68HCS12.
  6334.  
  6335. `-mauto-incdec'
  6336.      Enable the use of 68HC12 pre and post auto-increment and
  6337.      auto-decrement addressing modes.
  6338.  
  6339. `-minmax'
  6340. `-nominmax'
  6341.      Enable the use of 68HC12 min and max instructions.
  6342.  
  6343. `-mlong-calls'
  6344. `-mno-long-calls'
  6345.      Treat all calls as being far away (near).  If calls are assumed to
  6346.      be far away, the compiler will use the `call' instruction to call
  6347.      a function and the `rtc' instruction for returning.
  6348.  
  6349. `-mshort'
  6350.      Consider type `int' to be 16 bits wide, like `short int'.
  6351.  
  6352. `-msoft-reg-count=COUNT'
  6353.      Specify the number of pseudo-soft registers which are used for the
  6354.      code generation.  The maximum number is 32.  Using more pseudo-soft
  6355.      register may or may not result in better code depending on the
  6356.      program.  The default is 4 for 68HC11 and 2 for 68HC12.
  6357.  
  6358.  
  6359. 
  6360. File: gcc,  Node: VAX Options,  Next: SPARC Options,  Prev: M68hc1x Options,  Up: Submodel Options
  6361.  
  6362. 3.17.3 VAX Options
  6363. ------------------
  6364.  
  6365. These `-m' options are defined for the VAX:
  6366.  
  6367. `-munix'
  6368.      Do not output certain jump instructions (`aobleq' and so on) that
  6369.      the Unix assembler for the VAX cannot handle across long ranges.
  6370.  
  6371. `-mgnu'
  6372.      Do output those jump instructions, on the assumption that you will
  6373.      assemble with the GNU assembler.
  6374.  
  6375. `-mg'
  6376.      Output code for g-format floating point numbers instead of
  6377.      d-format.
  6378.  
  6379. 
  6380. File: gcc,  Node: SPARC Options,  Next: ARM Options,  Prev: VAX Options,  Up: Submodel Options
  6381.  
  6382. 3.17.4 SPARC Options
  6383. --------------------
  6384.  
  6385. These `-m' options are supported on the SPARC:
  6386.  
  6387. `-mno-app-regs'
  6388. `-mapp-regs'
  6389.      Specify `-mapp-regs' to generate output using the global registers
  6390.      2 through 4, which the SPARC SVR4 ABI reserves for applications.
  6391.      This is the default.
  6392.  
  6393.      To be fully SVR4 ABI compliant at the cost of some performance
  6394.      loss, specify `-mno-app-regs'.  You should compile libraries and
  6395.      system software with this option.
  6396.  
  6397. `-mfpu'
  6398. `-mhard-float'
  6399.      Generate output containing floating point instructions.  This is
  6400.      the default.
  6401.  
  6402. `-mno-fpu'
  6403. `-msoft-float'
  6404.      Generate output containing library calls for floating point.
  6405.      *Warning:* the requisite libraries are not available for all SPARC
  6406.      targets.  Normally the facilities of the machine's usual C
  6407.      compiler are used, but this cannot be done directly in
  6408.      cross-compilation.  You must make your own arrangements to provide
  6409.      suitable library functions for cross-compilation.  The embedded
  6410.      targets `sparc-*-aout' and `sparclite-*-*' do provide software
  6411.      floating point support.
  6412.  
  6413.      `-msoft-float' changes the calling convention in the output file;
  6414.      therefore, it is only useful if you compile _all_ of a program with
  6415.      this option.  In particular, you need to compile `libgcc.a', the
  6416.      library that comes with GCC, with `-msoft-float' in order for this
  6417.      to work.
  6418.  
  6419. `-mhard-quad-float'
  6420.      Generate output containing quad-word (long double) floating point
  6421.      instructions.
  6422.  
  6423. `-msoft-quad-float'
  6424.      Generate output containing library calls for quad-word (long
  6425.      double) floating point instructions.  The functions called are
  6426.      those specified in the SPARC ABI.  This is the default.
  6427.  
  6428.      As of this writing, there are no SPARC implementations that have
  6429.      hardware support for the quad-word floating point instructions.
  6430.      They all invoke a trap handler for one of these instructions, and
  6431.      then the trap handler emulates the effect of the instruction.
  6432.      Because of the trap handler overhead, this is much slower than
  6433.      calling the ABI library routines.  Thus the `-msoft-quad-float'
  6434.      option is the default.
  6435.  
  6436. `-mno-flat'
  6437. `-mflat'
  6438.      With `-mflat', the compiler does not generate save/restore
  6439.      instructions and will use a "flat" or single register window
  6440.      calling convention.  This model uses %i7 as the frame pointer and
  6441.      is compatible with the normal register window model.  Code from
  6442.      either may be intermixed.  The local registers and the input
  6443.      registers (0-5) are still treated as "call saved" registers and
  6444.      will be saved on the stack as necessary.
  6445.  
  6446.      With `-mno-flat' (the default), the compiler emits save/restore
  6447.      instructions (except for leaf functions) and is the normal mode of
  6448.      operation.
  6449.  
  6450.      These options are deprecated and will be deleted in a future GCC
  6451.      release.
  6452.  
  6453. `-mno-unaligned-doubles'
  6454. `-munaligned-doubles'
  6455.      Assume that doubles have 8 byte alignment.  This is the default.
  6456.  
  6457.      With `-munaligned-doubles', GCC assumes that doubles have 8 byte
  6458.      alignment only if they are contained in another type, or if they
  6459.      have an absolute address.  Otherwise, it assumes they have 4 byte
  6460.      alignment.  Specifying this option avoids some rare compatibility
  6461.      problems with code generated by other compilers.  It is not the
  6462.      default because it results in a performance loss, especially for
  6463.      floating point code.
  6464.  
  6465. `-mno-faster-structs'
  6466. `-mfaster-structs'
  6467.      With `-mfaster-structs', the compiler assumes that structures
  6468.      should have 8 byte alignment.  This enables the use of pairs of
  6469.      `ldd' and `std' instructions for copies in structure assignment,
  6470.      in place of twice as many `ld' and `st' pairs.  However, the use
  6471.      of this changed alignment directly violates the SPARC ABI.  Thus,
  6472.      it's intended only for use on targets where the developer
  6473.      acknowledges that their resulting code will not be directly in
  6474.      line with the rules of the ABI.
  6475.  
  6476. `-mimpure-text'
  6477.      `-mimpure-text', used in addition to `-shared', tells the compiler
  6478.      to not pass `-z text' to the linker when linking a shared object.
  6479.      Using this option, you can link position-dependent code into a
  6480.      shared object.
  6481.  
  6482.      `-mimpure-text' suppresses the "relocations remain against
  6483.      allocatable but non-writable sections" linker error message.
  6484.      However, the necessary relocations will trigger copy-on-write, and
  6485.      the shared object is not actually shared across processes.
  6486.      Instead of using `-mimpure-text', you should compile all source
  6487.      code with `-fpic' or `-fPIC'.
  6488.  
  6489.      This option is only available on SunOS and Solaris.
  6490.  
  6491. `-mv8'
  6492. `-msparclite'
  6493.      These two options select variations on the SPARC architecture.
  6494.      These options are deprecated and will be deleted in a future GCC
  6495.      release.  They have been replaced with `-mcpu=xxx'.
  6496.  
  6497. `-mcypress'
  6498. `-msupersparc'
  6499. `-mf930'
  6500. `-mf934'
  6501.      These four options select the processor for which the code is
  6502.      optimized.  These options are deprecated and will be deleted in a
  6503.      future GCC release.  They have been replaced with `-mcpu=xxx'.
  6504.  
  6505. `-mcpu=CPU_TYPE'
  6506.      Set the instruction set, register set, and instruction scheduling
  6507.      parameters for machine type CPU_TYPE.  Supported values for
  6508.      CPU_TYPE are `v7', `cypress', `v8', `supersparc', `sparclite',
  6509.      `f930', `f934', `hypersparc', `sparclite86x', `sparclet',
  6510.      `tsc701', `v9', `ultrasparc', and `ultrasparc3'.
  6511.  
  6512.      Default instruction scheduling parameters are used for values that
  6513.      select an architecture and not an implementation.  These are `v7',
  6514.      `v8', `sparclite', `sparclet', `v9'.
  6515.  
  6516.      Here is a list of each supported architecture and their supported
  6517.      implementations.
  6518.  
  6519.               v7:             cypress
  6520.               v8:             supersparc, hypersparc
  6521.               sparclite:      f930, f934, sparclite86x
  6522.               sparclet:       tsc701
  6523.               v9:             ultrasparc, ultrasparc3
  6524.  
  6525.      By default (unless configured otherwise), GCC generates code for
  6526.      the V7 variant of the SPARC architecture.  With `-mcpu=cypress',
  6527.      the compiler additionally optimizes it for the Cypress CY7C602
  6528.      chip, as used in the SPARCStation/SPARCServer 3xx series.  This is
  6529.      also appropriate for the older SPARCStation 1, 2, IPX etc.
  6530.  
  6531.      With `-mcpu=v8', GCC generates code for the V8 variant of the SPARC
  6532.      architecture.  The only difference from V7 code is that the
  6533.      compiler emits the integer multiply and integer divide
  6534.      instructions which exist in SPARC-V8 but not in SPARC-V7.  With
  6535.      `-mcpu=supersparc', the compiler additionally optimizes it for the
  6536.      SuperSPARC chip, as used in the SPARCStation 10, 1000 and 2000
  6537.      series.
  6538.  
  6539.      With `-mcpu=sparclite', GCC generates code for the SPARClite
  6540.      variant of the SPARC architecture.  This adds the integer
  6541.      multiply, integer divide step and scan (`ffs') instructions which
  6542.      exist in SPARClite but not in SPARC-V7.  With `-mcpu=f930', the
  6543.      compiler additionally optimizes it for the Fujitsu MB86930 chip,
  6544.      which is the original SPARClite, with no FPU.  With `-mcpu=f934',
  6545.      the compiler additionally optimizes it for the Fujitsu MB86934
  6546.      chip, which is the more recent SPARClite with FPU.
  6547.  
  6548.      With `-mcpu=sparclet', GCC generates code for the SPARClet variant
  6549.      of the SPARC architecture.  This adds the integer multiply,
  6550.      multiply/accumulate, integer divide step and scan (`ffs')
  6551.      instructions which exist in SPARClet but not in SPARC-V7.  With
  6552.      `-mcpu=tsc701', the compiler additionally optimizes it for the
  6553.      TEMIC SPARClet chip.
  6554.  
  6555.      With `-mcpu=v9', GCC generates code for the V9 variant of the SPARC
  6556.      architecture.  This adds 64-bit integer and floating-point move
  6557.      instructions, 3 additional floating-point condition code registers
  6558.      and conditional move instructions.  With `-mcpu=ultrasparc', the
  6559.      compiler additionally optimizes it for the Sun UltraSPARC I/II
  6560.      chips.  With `-mcpu=ultrasparc3', the compiler additionally
  6561.      optimizes it for the Sun UltraSPARC III chip.
  6562.  
  6563. `-mtune=CPU_TYPE'
  6564.      Set the instruction scheduling parameters for machine type
  6565.      CPU_TYPE, but do not set the instruction set or register set that
  6566.      the option `-mcpu=CPU_TYPE' would.
  6567.  
  6568.      The same values for `-mcpu=CPU_TYPE' can be used for
  6569.      `-mtune=CPU_TYPE', but the only useful values are those that
  6570.      select a particular cpu implementation.  Those are `cypress',
  6571.      `supersparc', `hypersparc', `f930', `f934', `sparclite86x',
  6572.      `tsc701', `ultrasparc', and `ultrasparc3'.
  6573.  
  6574. `-mv8plus'
  6575. `-mno-v8plus'
  6576.      With `-mv8plus', GCC generates code for the SPARC-V8+ ABI.  The
  6577.      difference from the V8 ABI is that the global and out registers are
  6578.      considered 64-bit wide.  This is enabled by default on Solaris in
  6579.      32-bit mode for all SPARC-V9 processors.
  6580.  
  6581. `-mvis'
  6582. `-mno-vis'
  6583.      With `-mvis', GCC generates code that takes advantage of the
  6584.      UltraSPARC Visual Instruction Set extensions.  The default is
  6585.      `-mno-vis'.
  6586.  
  6587.  These `-m' options are supported in addition to the above on SPARC-V9
  6588. processors in 64-bit environments:
  6589.  
  6590. `-mlittle-endian'
  6591.      Generate code for a processor running in little-endian mode. It is
  6592.      only available for a few configurations and most notably not on
  6593.      Solaris.
  6594.  
  6595. `-m32'
  6596. `-m64'
  6597.      Generate code for a 32-bit or 64-bit environment.  The 32-bit
  6598.      environment sets int, long and pointer to 32 bits.  The 64-bit
  6599.      environment sets int to 32 bits and long and pointer to 64 bits.
  6600.  
  6601. `-mcmodel=medlow'
  6602.      Generate code for the Medium/Low code model: 64-bit addresses,
  6603.      programs must be linked in the low 32 bits of memory.  Programs
  6604.      can be statically or dynamically linked.
  6605.  
  6606. `-mcmodel=medmid'
  6607.      Generate code for the Medium/Middle code model: 64-bit addresses,
  6608.      programs must be linked in the low 44 bits of memory, the text and
  6609.      data segments must be less than 2GB in size and the data segment
  6610.      must be located within 2GB of the text segment.
  6611.  
  6612. `-mcmodel=medany'
  6613.      Generate code for the Medium/Anywhere code model: 64-bit
  6614.      addresses, programs may be linked anywhere in memory, the text and
  6615.      data segments must be less than 2GB in size and the data segment
  6616.      must be located within 2GB of the text segment.
  6617.  
  6618. `-mcmodel=embmedany'
  6619.      Generate code for the Medium/Anywhere code model for embedded
  6620.      systems: 64-bit addresses, the text and data segments must be less
  6621.      than 2GB in size, both starting anywhere in memory (determined at
  6622.      link time).  The global register %g4 points to the base of the
  6623.      data segment.  Programs are statically linked and PIC is not
  6624.      supported.
  6625.  
  6626. `-mstack-bias'
  6627. `-mno-stack-bias'
  6628.      With `-mstack-bias', GCC assumes that the stack pointer, and frame
  6629.      pointer if present, are offset by -2047 which must be added back
  6630.      when making stack frame references.  This is the default in 64-bit
  6631.      mode.  Otherwise, assume no such offset is present.
  6632.  
  6633. 
  6634. File: gcc,  Node: ARM Options,  Next: MN10300 Options,  Prev: SPARC Options,  Up: Submodel Options
  6635.  
  6636. 3.17.5 ARM Options
  6637. ------------------
  6638.  
  6639. These `-m' options are defined for Advanced RISC Machines (ARM)
  6640. architectures:
  6641.  
  6642. `-mapcs-frame'
  6643.      Generate a stack frame that is compliant with the ARM Procedure
  6644.      Call Standard for all functions, even if this is not strictly
  6645.      necessary for correct execution of the code.  Specifying
  6646.      `-fomit-frame-pointer' with this option will cause the stack
  6647.      frames not to be generated for leaf functions.  The default is
  6648.      `-mno-apcs-frame'.
  6649.  
  6650. `-mapcs'
  6651.      This is a synonym for `-mapcs-frame'.
  6652.  
  6653. `-mapcs-26'
  6654.      Generate code for a processor running with a 26-bit program
  6655.      counter, and conforming to the function calling standards for the
  6656.      APCS 26-bit option.
  6657.  
  6658.      This option is deprecated.  Future releases of the GCC will only
  6659.      support generating code that runs in apcs-32 mode.
  6660.  
  6661. `-mapcs-32'
  6662.      Generate code for a processor running with a 32-bit program
  6663.      counter, and conforming to the function calling standards for the
  6664.      APCS 32-bit option.
  6665.  
  6666.      This flag is deprecated.  Future releases of GCC will make this
  6667.      flag unconditional.
  6668.  
  6669. `-mthumb-interwork'
  6670.      Generate code which supports calling between the ARM and Thumb
  6671.      instruction sets.  Without this option the two instruction sets
  6672.      cannot be reliably used inside one program.  The default is
  6673.      `-mno-thumb-interwork', since slightly larger code is generated
  6674.      when `-mthumb-interwork' is specified.
  6675.  
  6676. `-mno-sched-prolog'
  6677.      Prevent the reordering of instructions in the function prolog, or
  6678.      the merging of those instruction with the instructions in the
  6679.      function's body.  This means that all functions will start with a
  6680.      recognizable set of instructions (or in fact one of a choice from
  6681.      a small set of different function prologues), and this information
  6682.      can be used to locate the start if functions inside an executable
  6683.      piece of code.  The default is `-msched-prolog'.
  6684.  
  6685. `-mhard-float'
  6686.      Generate output containing floating point instructions.  This is
  6687.      the default.
  6688.  
  6689. `-msoft-float'
  6690.      Generate output containing library calls for floating point.
  6691.      *Warning:* the requisite libraries are not available for all ARM
  6692.      targets.  Normally the facilities of the machine's usual C
  6693.      compiler are used, but this cannot be done directly in
  6694.      cross-compilation.  You must make your own arrangements to provide
  6695.      suitable library functions for cross-compilation.
  6696.  
  6697.      `-msoft-float' changes the calling convention in the output file;
  6698.      therefore, it is only useful if you compile _all_ of a program with
  6699.      this option.  In particular, you need to compile `libgcc.a', the
  6700.      library that comes with GCC, with `-msoft-float' in order for this
  6701.      to work.
  6702.  
  6703. `-mlittle-endian'
  6704.      Generate code for a processor running in little-endian mode.  This
  6705.      is the default for all standard configurations.
  6706.  
  6707. `-mbig-endian'
  6708.      Generate code for a processor running in big-endian mode; the
  6709.      default is to compile code for a little-endian processor.
  6710.  
  6711. `-mwords-little-endian'
  6712.      This option only applies when generating code for big-endian
  6713.      processors.  Generate code for a little-endian word order but a
  6714.      big-endian byte order.  That is, a byte order of the form
  6715.      `32107654'.  Note: this option should only be used if you require
  6716.      compatibility with code for big-endian ARM processors generated by
  6717.      versions of the compiler prior to 2.8.
  6718.  
  6719. `-malignment-traps'
  6720.      Generate code that will not trap if the MMU has alignment traps
  6721.      enabled.  On ARM architectures prior to ARMv4, there were no
  6722.      instructions to access half-word objects stored in memory.
  6723.      However, when reading from memory a feature of the ARM
  6724.      architecture allows a word load to be used, even if the address is
  6725.      unaligned, and the processor core will rotate the data as it is
  6726.      being loaded.  This option tells the compiler that such misaligned
  6727.      accesses will cause a MMU trap and that it should instead
  6728.      synthesize the access as a series of byte accesses.  The compiler
  6729.      can still use word accesses to load half-word data if it knows
  6730.      that the address is aligned to a word boundary.
  6731.  
  6732.      This option has no effect when compiling for ARM architecture 4 or
  6733.      later, since these processors have instructions to directly access
  6734.      half-word objects in memory.
  6735.  
  6736. `-mno-alignment-traps'
  6737.      Generate code that assumes that the MMU will not trap unaligned
  6738.      accesses.  This produces better code when the target instruction
  6739.      set does not have half-word memory operations (i.e.
  6740.      implementations prior to ARMv4).
  6741.  
  6742.      Note that you cannot use this option to access unaligned word
  6743.      objects, since the processor will only fetch one 32-bit aligned
  6744.      object from memory.
  6745.  
  6746.      The default setting is `-malignment-traps', since this produces
  6747.      code that will also run on processors implementing ARM architecture
  6748.      version 6 or later.
  6749.  
  6750.      This option is deprecated and will be removed in the next release
  6751.      of GCC.
  6752.  
  6753. `-mcpu=NAME'
  6754.      This specifies the name of the target ARM processor.  GCC uses
  6755.      this name to determine what kind of instructions it can emit when
  6756.      generating assembly code.  Permissible names are: `arm2', `arm250',
  6757.      `arm3', `arm6', `arm60', `arm600', `arm610', `arm620', `arm7',
  6758.      `arm7m', `arm7d', `arm7dm', `arm7di', `arm7dmi', `arm70', `arm700',
  6759.      `arm700i', `arm710', `arm710c', `arm7100', `arm7500', `arm7500fe',
  6760.      `arm7tdmi', `arm8', `strongarm', `strongarm110', `strongarm1100',
  6761.      `arm8', `arm810', `arm9', `arm9e', `arm920', `arm920t',
  6762.      `arm926ejs', `arm940t', `arm9tdmi', `arm10tdmi', `arm1020t',
  6763.      `arm1026ejs', `arm1136js', `arm1136jfs' ,`xscale', `iwmmxt',
  6764.      `ep9312'.
  6765.  
  6766. `-mtune=NAME'
  6767.      This option is very similar to the `-mcpu=' option, except that
  6768.      instead of specifying the actual target processor type, and hence
  6769.      restricting which instructions can be used, it specifies that GCC
  6770.      should tune the performance of the code as if the target were of
  6771.      the type specified in this option, but still choosing the
  6772.      instructions that it will generate based on the cpu specified by a
  6773.      `-mcpu=' option.  For some ARM implementations better performance
  6774.      can be obtained by using this option.
  6775.  
  6776. `-march=NAME'
  6777.      This specifies the name of the target ARM architecture.  GCC uses
  6778.      this name to determine what kind of instructions it can emit when
  6779.      generating assembly code.  This option can be used in conjunction
  6780.      with or instead of the `-mcpu=' option.  Permissible names are:
  6781.      `armv2', `armv2a', `armv3', `armv3m', `armv4', `armv4t', `armv5',
  6782.      `armv5t', `armv5te', `armv6j', `iwmmxt', `ep9312'.
  6783.  
  6784. `-mfpe=NUMBER'
  6785. `-mfp=NUMBER'
  6786.      This specifies the version of the floating point emulation
  6787.      available on the target.  Permissible values are 2 and 3.  `-mfp='
  6788.      is a synonym for `-mfpe=', for compatibility with older versions
  6789.      of GCC.
  6790.  
  6791. `-mstructure-size-boundary=N'
  6792.      The size of all structures and unions will be rounded up to a
  6793.      multiple of the number of bits set by this option.  Permissible
  6794.      values are 8 and 32.  The default value varies for different
  6795.      toolchains.  For the COFF targeted toolchain the default value is
  6796.      8.  Specifying the larger number can produce faster, more
  6797.      efficient code, but can also increase the size of the program.
  6798.      The two values are potentially incompatible.  Code compiled with
  6799.      one value cannot necessarily expect to work with code or libraries
  6800.      compiled with the other value, if they exchange information using
  6801.      structures or unions.
  6802.  
  6803. `-mabort-on-noreturn'
  6804.      Generate a call to the function `abort' at the end of a `noreturn'
  6805.      function.  It will be executed if the function tries to return.
  6806.  
  6807. `-mlong-calls'
  6808. `-mno-long-calls'
  6809.      Tells the compiler to perform function calls by first loading the
  6810.      address of the function into a register and then performing a
  6811.      subroutine call on this register.  This switch is needed if the
  6812.      target function will lie outside of the 64 megabyte addressing
  6813.      range of the offset based version of subroutine call instruction.
  6814.  
  6815.      Even if this switch is enabled, not all function calls will be
  6816.      turned into long calls.  The heuristic is that static functions,
  6817.      functions which have the `short-call' attribute, functions that
  6818.      are inside the scope of a `#pragma no_long_calls' directive and
  6819.      functions whose definitions have already been compiled within the
  6820.      current compilation unit, will not be turned into long calls.  The
  6821.      exception to this rule is that weak function definitions,
  6822.      functions with the `long-call' attribute or the `section'
  6823.      attribute, and functions that are within the scope of a `#pragma
  6824.      long_calls' directive, will always be turned into long calls.
  6825.  
  6826.      This feature is not enabled by default.  Specifying
  6827.      `-mno-long-calls' will restore the default behavior, as will
  6828.      placing the function calls within the scope of a `#pragma
  6829.      long_calls_off' directive.  Note these switches have no effect on
  6830.      how the compiler generates code to handle function calls via
  6831.      function pointers.
  6832.  
  6833. `-mnop-fun-dllimport'
  6834.      Disable support for the `dllimport' attribute.
  6835.  
  6836. `-msingle-pic-base'
  6837.      Treat the register used for PIC addressing as read-only, rather
  6838.      than loading it in the prologue for each function.  The run-time
  6839.      system is responsible for initializing this register with an
  6840.      appropriate value before execution begins.
  6841.  
  6842. `-mpic-register=REG'
  6843.      Specify the register to be used for PIC addressing.  The default
  6844.      is R10 unless stack-checking is enabled, when R9 is used.
  6845.  
  6846. `-mcirrus-fix-invalid-insns'
  6847.      Insert NOPs into the instruction stream to in order to work around
  6848.      problems with invalid Maverick instruction combinations.  This
  6849.      option is only valid if the `-mcpu=ep9312' option has been used to
  6850.      enable generation of instructions for the Cirrus Maverick floating
  6851.      point co-processor.  This option is not enabled by default, since
  6852.      the problem is only present in older Maverick implementations.
  6853.      The default can be re-enabled by use of the
  6854.      `-mno-cirrus-fix-invalid-insns' switch.
  6855.  
  6856. `-mpoke-function-name'
  6857.      Write the name of each function into the text section, directly
  6858.      preceding the function prologue.  The generated code is similar to
  6859.      this:
  6860.  
  6861.                t0
  6862.                    .ascii "arm_poke_function_name", 0
  6863.                    .align
  6864.                t1
  6865.                    .word 0xff000000 + (t1 - t0)
  6866.                arm_poke_function_name
  6867.                    mov     ip, sp
  6868.                    stmfd   sp!, {fp, ip, lr, pc}
  6869.                    sub     fp, ip, #4
  6870.  
  6871.      When performing a stack backtrace, code can inspect the value of
  6872.      `pc' stored at `fp + 0'.  If the trace function then looks at
  6873.      location `pc - 12' and the top 8 bits are set, then we know that
  6874.      there is a function name embedded immediately preceding this
  6875.      location and has length `((pc[-3]) & 0xff000000)'.
  6876.  
  6877. `-mthumb'
  6878.      Generate code for the 16-bit Thumb instruction set.  The default
  6879.      is to use the 32-bit ARM instruction set.
  6880.  
  6881. `-mtpcs-frame'
  6882.      Generate a stack frame that is compliant with the Thumb Procedure
  6883.      Call Standard for all non-leaf functions.  (A leaf function is one
  6884.      that does not call any other functions.)  The default is
  6885.      `-mno-tpcs-frame'.
  6886.  
  6887. `-mtpcs-leaf-frame'
  6888.      Generate a stack frame that is compliant with the Thumb Procedure
  6889.      Call Standard for all leaf functions.  (A leaf function is one
  6890.      that does not call any other functions.)  The default is
  6891.      `-mno-apcs-leaf-frame'.
  6892.  
  6893. `-mcallee-super-interworking'
  6894.      Gives all externally visible functions in the file being compiled
  6895.      an ARM instruction set header which switches to Thumb mode before
  6896.      executing the rest of the function.  This allows these functions
  6897.      to be called from non-interworking code.
  6898.  
  6899. `-mcaller-super-interworking'
  6900.      Allows calls via function pointers (including virtual functions) to
  6901.      execute correctly regardless of whether the target code has been
  6902.      compiled for interworking or not.  There is a small overhead in
  6903.      the cost of executing a function pointer if this option is enabled.
  6904.  
  6905.  
  6906. 
  6907. File: gcc,  Node: MN10300 Options,  Next: M32R/D Options,  Prev: ARM Options,  Up: Submodel Options
  6908.  
  6909. 3.17.6 MN10300 Options
  6910. ----------------------
  6911.  
  6912. These `-m' options are defined for Matsushita MN10300 architectures:
  6913.  
  6914. `-mmult-bug'
  6915.      Generate code to avoid bugs in the multiply instructions for the
  6916.      MN10300 processors.  This is the default.
  6917.  
  6918. `-mno-mult-bug'
  6919.      Do not generate code to avoid bugs in the multiply instructions
  6920.      for the MN10300 processors.
  6921.  
  6922. `-mam33'
  6923.      Generate code which uses features specific to the AM33 processor.
  6924.  
  6925. `-mno-am33'
  6926.      Do not generate code which uses features specific to the AM33
  6927.      processor.  This is the default.
  6928.  
  6929. `-mno-crt0'
  6930.      Do not link in the C run-time initialization object file.
  6931.  
  6932. `-mrelax'
  6933.      Indicate to the linker that it should perform a relaxation
  6934.      optimization pass to shorten branches, calls and absolute memory
  6935.      addresses.  This option only has an effect when used on the
  6936.      command line for the final link step.
  6937.  
  6938.      This option makes symbolic debugging impossible.
  6939.  
  6940. 
  6941. File: gcc,  Node: M32R/D Options,  Next: RS/6000 and PowerPC Options,  Prev: MN10300 Options,  Up: Submodel Options
  6942.  
  6943. 3.17.7 M32R/D Options
  6944. ---------------------
  6945.  
  6946. These `-m' options are defined for Renesas M32R/D architectures:
  6947.  
  6948. `-m32r2'
  6949.      Generate code for the M32R/2.
  6950.  
  6951. `-m32rx'
  6952.      Generate code for the M32R/X.
  6953.  
  6954. `-m32r'
  6955.      Generate code for the M32R.  This is the default.
  6956.  
  6957. `-mmodel=small'
  6958.      Assume all objects live in the lower 16MB of memory (so that their
  6959.      addresses can be loaded with the `ld24' instruction), and assume
  6960.      all subroutines are reachable with the `bl' instruction.  This is
  6961.      the default.
  6962.  
  6963.      The addressability of a particular object can be set with the
  6964.      `model' attribute.
  6965.  
  6966. `-mmodel=medium'
  6967.      Assume objects may be anywhere in the 32-bit address space (the
  6968.      compiler will generate `seth/add3' instructions to load their
  6969.      addresses), and assume all subroutines are reachable with the `bl'
  6970.      instruction.
  6971.  
  6972. `-mmodel=large'
  6973.      Assume objects may be anywhere in the 32-bit address space (the
  6974.      compiler will generate `seth/add3' instructions to load their
  6975.      addresses), and assume subroutines may not be reachable with the
  6976.      `bl' instruction (the compiler will generate the much slower
  6977.      `seth/add3/jl' instruction sequence).
  6978.  
  6979. `-msdata=none'
  6980.      Disable use of the small data area.  Variables will be put into
  6981.      one of `.data', `bss', or `.rodata' (unless the `section'
  6982.      attribute has been specified).  This is the default.
  6983.  
  6984.      The small data area consists of sections `.sdata' and `.sbss'.
  6985.      Objects may be explicitly put in the small data area with the
  6986.      `section' attribute using one of these sections.
  6987.  
  6988. `-msdata=sdata'
  6989.      Put small global and static data in the small data area, but do not
  6990.      generate special code to reference them.
  6991.  
  6992. `-msdata=use'
  6993.      Put small global and static data in the small data area, and
  6994.      generate special instructions to reference them.
  6995.  
  6996. `-G NUM'
  6997.      Put global and static objects less than or equal to NUM bytes into
  6998.      the small data or bss sections instead of the normal data or bss
  6999.      sections.  The default value of NUM is 8.  The `-msdata' option
  7000.      must be set to one of `sdata' or `use' for this option to have any
  7001.      effect.
  7002.  
  7003.      All modules should be compiled with the same `-G NUM' value.
  7004.      Compiling with different values of NUM may or may not work; if it
  7005.      doesn't the linker will give an error message--incorrect code will
  7006.      not be generated.
  7007.  
  7008. `-mdebug'
  7009.      Makes the M32R specific code in the compiler display some
  7010.      statistics that might help in debugging programs.
  7011.  
  7012. `-malign-loops'
  7013.      Align all loops to a 32-byte boundary.
  7014.  
  7015. `-mno-align-loops'
  7016.      Do not enforce a 32-byte alignment for loops.  This is the default.
  7017.  
  7018. `-missue-rate=NUMBER'
  7019.      Issue NUMBER instructions per cycle.  NUMBER can only be 1 or 2.
  7020.  
  7021. `-mbranch-cost=NUMBER'
  7022.      NUMBER can only be 1 or 2.  If it is 1 then branches will be
  7023.      preferred over conditional code, if it is 2, then the opposite will
  7024.      apply.
  7025.  
  7026. `-mflush-trap=NUMBER'
  7027.      Specifies the trap number to use to flush the cache.  The default
  7028.      is 12.  Valid numbers are between 0 and 15 inclusive.
  7029.  
  7030. `-mno-flush-trap'
  7031.      Specifies that the cache cannot be flushed by using a trap.
  7032.  
  7033. `-mflush-func=NAME'
  7034.      Specifies the name of the operating system function to call to
  7035.      flush the cache.  The default is __flush_cache_, but a function
  7036.      call will only be used if a trap is not available.
  7037.  
  7038. `-mno-flush-func'
  7039.      Indicates that there is no OS function for flushing the cache.
  7040.  
  7041.  
  7042. 
  7043. File: gcc,  Node: RS/6000 and PowerPC Options,  Next: Darwin Options,  Prev: M32R/D Options,  Up: Submodel Options
  7044.  
  7045. 3.17.8 IBM RS/6000 and PowerPC Options
  7046. --------------------------------------
  7047.  
  7048. These `-m' options are defined for the IBM RS/6000 and PowerPC:
  7049. `-mpower'
  7050. `-mno-power'
  7051. `-mpower2'
  7052. `-mno-power2'
  7053. `-mpowerpc'
  7054. `-mno-powerpc'
  7055. `-mpowerpc-gpopt'
  7056. `-mno-powerpc-gpopt'
  7057. `-mpowerpc-gfxopt'
  7058. `-mno-powerpc-gfxopt'
  7059. `-mpowerpc64'
  7060. `-mno-powerpc64'
  7061.      GCC supports two related instruction set architectures for the
  7062.      RS/6000 and PowerPC.  The "POWER" instruction set are those
  7063.      instructions supported by the `rios' chip set used in the original
  7064.      RS/6000 systems and the "PowerPC" instruction set is the
  7065.      architecture of the Motorola MPC5xx, MPC6xx, MPC8xx
  7066.      microprocessors, and the IBM 4xx microprocessors.
  7067.  
  7068.      Neither architecture is a subset of the other.  However there is a
  7069.      large common subset of instructions supported by both.  An MQ
  7070.      register is included in processors supporting the POWER
  7071.      architecture.
  7072.  
  7073.      You use these options to specify which instructions are available
  7074.      on the processor you are using.  The default value of these
  7075.      options is determined when configuring GCC.  Specifying the
  7076.      `-mcpu=CPU_TYPE' overrides the specification of these options.  We
  7077.      recommend you use the `-mcpu=CPU_TYPE' option rather than the
  7078.      options listed above.
  7079.  
  7080.      The `-mpower' option allows GCC to generate instructions that are
  7081.      found only in the POWER architecture and to use the MQ register.
  7082.      Specifying `-mpower2' implies `-power' and also allows GCC to
  7083.      generate instructions that are present in the POWER2 architecture
  7084.      but not the original POWER architecture.
  7085.  
  7086.      The `-mpowerpc' option allows GCC to generate instructions that
  7087.      are found only in the 32-bit subset of the PowerPC architecture.
  7088.      Specifying `-mpowerpc-gpopt' implies `-mpowerpc' and also allows
  7089.      GCC to use the optional PowerPC architecture instructions in the
  7090.      General Purpose group, including floating-point square root.
  7091.      Specifying `-mpowerpc-gfxopt' implies `-mpowerpc' and also allows
  7092.      GCC to use the optional PowerPC architecture instructions in the
  7093.      Graphics group, including floating-point select.
  7094.  
  7095.      The `-mpowerpc64' option allows GCC to generate the additional
  7096.      64-bit instructions that are found in the full PowerPC64
  7097.      architecture and to treat GPRs as 64-bit, doubleword quantities.
  7098.      GCC defaults to `-mno-powerpc64'.
  7099.  
  7100.      If you specify both `-mno-power' and `-mno-powerpc', GCC will use
  7101.      only the instructions in the common subset of both architectures
  7102.      plus some special AIX common-mode calls, and will not use the MQ
  7103.      register.  Specifying both `-mpower' and `-mpowerpc' permits GCC
  7104.      to use any instruction from either architecture and to allow use
  7105.      of the MQ register; specify this for the Motorola MPC601.
  7106.  
  7107. `-mnew-mnemonics'
  7108. `-mold-mnemonics'
  7109.      Select which mnemonics to use in the generated assembler code.
  7110.      With `-mnew-mnemonics', GCC uses the assembler mnemonics defined
  7111.      for the PowerPC architecture.  With `-mold-mnemonics' it uses the
  7112.      assembler mnemonics defined for the POWER architecture.
  7113.      Instructions defined in only one architecture have only one
  7114.      mnemonic; GCC uses that mnemonic irrespective of which of these
  7115.      options is specified.
  7116.  
  7117.      GCC defaults to the mnemonics appropriate for the architecture in
  7118.      use.  Specifying `-mcpu=CPU_TYPE' sometimes overrides the value of
  7119.      these option.  Unless you are building a cross-compiler, you
  7120.      should normally not specify either `-mnew-mnemonics' or
  7121.      `-mold-mnemonics', but should instead accept the default.
  7122.  
  7123. `-mcpu=CPU_TYPE'
  7124.      Set architecture type, register usage, choice of mnemonics, and
  7125.      instruction scheduling parameters for machine type CPU_TYPE.
  7126.      Supported values for CPU_TYPE are `401', `403', `405', `405fp',
  7127.      `440', `440fp', `505', `601', `602', `603', `603e', `604', `604e',
  7128.      `620', `630', `740', `7400', `7450', `750', `801', `821', `823',
  7129.      `860', `970', `common', `ec603e', `G3', `G4', `G5', `power',
  7130.      `power2', `power3', `power4', `power5', `powerpc', `powerpc64',
  7131.      `rios', `rios1', `rios2', `rsc', and `rs64a'.
  7132.  
  7133.      `-mcpu=common' selects a completely generic processor.  Code
  7134.      generated under this option will run on any POWER or PowerPC
  7135.      processor.  GCC will use only the instructions in the common
  7136.      subset of both architectures, and will not use the MQ register.
  7137.      GCC assumes a generic processor model for scheduling purposes.
  7138.  
  7139.      `-mcpu=power', `-mcpu=power2', `-mcpu=powerpc', and
  7140.      `-mcpu=powerpc64' specify generic POWER, POWER2, pure 32-bit
  7141.      PowerPC (i.e., not MPC601), and 64-bit PowerPC architecture machine
  7142.      types, with an appropriate, generic processor model assumed for
  7143.      scheduling purposes.
  7144.  
  7145.      The other options specify a specific processor.  Code generated
  7146.      under those options will run best on that processor, and may not
  7147.      run at all on others.
  7148.  
  7149.      The `-mcpu' options automatically enable or disable the following
  7150.      options: `-maltivec', `-mhard-float', `-mmfcrf', `-mmultiple',
  7151.      `-mnew-mnemonics', `-mpower', `-mpower2', `-mpowerpc64',
  7152.      `-mpowerpc-gpopt', `-mpowerpc-gfxopt', `-mstring'.  The particular
  7153.      options set for any particular CPU will vary between compiler
  7154.      versions, depending on what setting seems to produce optimal code
  7155.      for that CPU; it doesn't necessarily reflect the actual hardware's
  7156.      capabilities.  If you wish to set an individual option to a
  7157.      particular value, you may specify it after the `-mcpu' option,
  7158.      like `-mcpu=970 -mno-altivec'.
  7159.  
  7160.      On AIX, the `-maltivec' and `-mpowerpc64' options are not enabled
  7161.      or disabled by the `-mcpu' option at present, since AIX does not
  7162.      have full support for these options.  You may still enable or
  7163.      disable them individually if you're sure it'll work in your
  7164.      environment.
  7165.  
  7166. `-mtune=CPU_TYPE'
  7167.      Set the instruction scheduling parameters for machine type
  7168.      CPU_TYPE, but do not set the architecture type, register usage, or
  7169.      choice of mnemonics, as `-mcpu=CPU_TYPE' would.  The same values
  7170.      for CPU_TYPE are used for `-mtune' as for `-mcpu'.  If both are
  7171.      specified, the code generated will use the architecture,
  7172.      registers, and mnemonics set by `-mcpu', but the scheduling
  7173.      parameters set by `-mtune'.
  7174.  
  7175. `-maltivec'
  7176. `-mno-altivec'
  7177.      These switches enable or disable the use of built-in functions that
  7178.      allow access to the AltiVec instruction set.  You may also need to
  7179.      set `-mabi=altivec' to adjust the current ABI with AltiVec ABI
  7180.      enhancements.
  7181.  
  7182. `-mabi=spe'
  7183.      Extend the current ABI with SPE ABI extensions.  This does not
  7184.      change the default ABI, instead it adds the SPE ABI extensions to
  7185.      the current ABI.
  7186.  
  7187. `-mabi=no-spe'
  7188.      Disable Booke SPE ABI extensions for the current ABI.
  7189.  
  7190. `-misel=YES/NO'
  7191. `-misel'
  7192.      This switch enables or disables the generation of ISEL
  7193.      instructions.
  7194.  
  7195. `-mspe=YES/NO'
  7196. `-mspe'
  7197.      This switch enables or disables the generation of SPE simd
  7198.      instructions.
  7199.  
  7200. `-mfloat-gprs=YES/NO'
  7201. `-mfloat-gprs'
  7202.      This switch enables or disables the generation of floating point
  7203.      operations on the general purpose registers for architectures that
  7204.      support it.  This option is currently only available on the
  7205.      MPC8540.
  7206.  
  7207. `-mfull-toc'
  7208. `-mno-fp-in-toc'
  7209. `-mno-sum-in-toc'
  7210. `-mminimal-toc'
  7211.      Modify generation of the TOC (Table Of Contents), which is created
  7212.      for every executable file.  The `-mfull-toc' option is selected by
  7213.      default.  In that case, GCC will allocate at least one TOC entry
  7214.      for each unique non-automatic variable reference in your program.
  7215.      GCC will also place floating-point constants in the TOC.  However,
  7216.      only 16,384 entries are available in the TOC.
  7217.  
  7218.      If you receive a linker error message that saying you have
  7219.      overflowed the available TOC space, you can reduce the amount of
  7220.      TOC space used with the `-mno-fp-in-toc' and `-mno-sum-in-toc'
  7221.      options.  `-mno-fp-in-toc' prevents GCC from putting floating-point
  7222.      constants in the TOC and `-mno-sum-in-toc' forces GCC to generate
  7223.      code to calculate the sum of an address and a constant at run-time
  7224.      instead of putting that sum into the TOC.  You may specify one or
  7225.      both of these options.  Each causes GCC to produce very slightly
  7226.      slower and larger code at the expense of conserving TOC space.
  7227.  
  7228.      If you still run out of space in the TOC even when you specify
  7229.      both of these options, specify `-mminimal-toc' instead.  This
  7230.      option causes GCC to make only one TOC entry for every file.  When
  7231.      you specify this option, GCC will produce code that is slower and
  7232.      larger but which uses extremely little TOC space.  You may wish to
  7233.      use this option only on files that contain less frequently
  7234.      executed code.
  7235.  
  7236. `-maix64'
  7237. `-maix32'
  7238.      Enable 64-bit AIX ABI and calling convention: 64-bit pointers,
  7239.      64-bit `long' type, and the infrastructure needed to support them.
  7240.      Specifying `-maix64' implies `-mpowerpc64' and `-mpowerpc', while
  7241.      `-maix32' disables the 64-bit ABI and implies `-mno-powerpc64'.
  7242.      GCC defaults to `-maix32'.
  7243.  
  7244. `-mxl-call'
  7245. `-mno-xl-call'
  7246.      On AIX, pass floating-point arguments to prototyped functions
  7247.      beyond the register save area (RSA) on the stack in addition to
  7248.      argument FPRs.  The AIX calling convention was extended but not
  7249.      initially documented to handle an obscure K&R C case of calling a
  7250.      function that takes the address of its arguments with fewer
  7251.      arguments than declared.  AIX XL compilers access floating point
  7252.      arguments which do not fit in the RSA from the stack when a
  7253.      subroutine is compiled without optimization.  Because always
  7254.      storing floating-point arguments on the stack is inefficient and
  7255.      rarely needed, this option is not enabled by default and only is
  7256.      necessary when calling subroutines compiled by AIX XL compilers
  7257.      without optimization.
  7258.  
  7259. `-mpe'
  7260.      Support "IBM RS/6000 SP" "Parallel Environment" (PE).  Link an
  7261.      application written to use message passing with special startup
  7262.      code to enable the application to run.  The system must have PE
  7263.      installed in the standard location (`/usr/lpp/ppe.poe/'), or the
  7264.      `specs' file must be overridden with the `-specs=' option to
  7265.      specify the appropriate directory location.  The Parallel
  7266.      Environment does not support threads, so the `-mpe' option and the
  7267.      `-pthread' option are incompatible.
  7268.  
  7269. `-malign-natural'
  7270. `-malign-power'
  7271.      On AIX, Darwin, and 64-bit PowerPC GNU/Linux, the option
  7272.      `-malign-natural' overrides the ABI-defined alignment of larger
  7273.      types, such as floating-point doubles, on their natural size-based
  7274.      boundary.  The option `-malign-power' instructs GCC to follow the
  7275.      ABI-specified alignment rules.  GCC defaults to the standard
  7276.      alignment defined in the ABI.
  7277.  
  7278. `-msoft-float'
  7279. `-mhard-float'
  7280.      Generate code that does not use (uses) the floating-point register
  7281.      set.  Software floating point emulation is provided if you use the
  7282.      `-msoft-float' option, and pass the option to GCC when linking.
  7283.  
  7284. `-mmultiple'
  7285. `-mno-multiple'
  7286.      Generate code that uses (does not use) the load multiple word
  7287.      instructions and the store multiple word instructions.  These
  7288.      instructions are generated by default on POWER systems, and not
  7289.      generated on PowerPC systems.  Do not use `-mmultiple' on little
  7290.      endian PowerPC systems, since those instructions do not work when
  7291.      the processor is in little endian mode.  The exceptions are PPC740
  7292.      and PPC750 which permit the instructions usage in little endian
  7293.      mode.
  7294.  
  7295. `-mstring'
  7296. `-mno-string'
  7297.      Generate code that uses (does not use) the load string instructions
  7298.      and the store string word instructions to save multiple registers
  7299.      and do small block moves.  These instructions are generated by
  7300.      default on POWER systems, and not generated on PowerPC systems.
  7301.      Do not use `-mstring' on little endian PowerPC systems, since those
  7302.      instructions do not work when the processor is in little endian
  7303.      mode.  The exceptions are PPC740 and PPC750 which permit the
  7304.      instructions usage in little endian mode.
  7305.  
  7306. `-mupdate'
  7307. `-mno-update'
  7308.      Generate code that uses (does not use) the load or store
  7309.      instructions that update the base register to the address of the
  7310.      calculated memory location.  These instructions are generated by
  7311.      default.  If you use `-mno-update', there is a small window
  7312.      between the time that the stack pointer is updated and the address
  7313.      of the previous frame is stored, which means code that walks the
  7314.      stack frame across interrupts or signals may get corrupted data.
  7315.  
  7316. `-mfused-madd'
  7317. `-mno-fused-madd'
  7318.      Generate code that uses (does not use) the floating point multiply
  7319.      and accumulate instructions.  These instructions are generated by
  7320.      default if hardware floating is used.
  7321.  
  7322. `-mno-bit-align'
  7323. `-mbit-align'
  7324.      On System V.4 and embedded PowerPC systems do not (do) force
  7325.      structures and unions that contain bit-fields to be aligned to the
  7326.      base type of the bit-field.
  7327.  
  7328.      For example, by default a structure containing nothing but 8
  7329.      `unsigned' bit-fields of length 1 would be aligned to a 4 byte
  7330.      boundary and have a size of 4 bytes.  By using `-mno-bit-align',
  7331.      the structure would be aligned to a 1 byte boundary and be one
  7332.      byte in size.
  7333.  
  7334. `-mno-strict-align'
  7335. `-mstrict-align'
  7336.      On System V.4 and embedded PowerPC systems do not (do) assume that
  7337.      unaligned memory references will be handled by the system.
  7338.  
  7339. `-mrelocatable'
  7340. `-mno-relocatable'
  7341.      On embedded PowerPC systems generate code that allows (does not
  7342.      allow) the program to be relocated to a different address at
  7343.      runtime.  If you use `-mrelocatable' on any module, all objects
  7344.      linked together must be compiled with `-mrelocatable' or
  7345.      `-mrelocatable-lib'.
  7346.  
  7347. `-mrelocatable-lib'
  7348. `-mno-relocatable-lib'
  7349.      On embedded PowerPC systems generate code that allows (does not
  7350.      allow) the program to be relocated to a different address at
  7351.      runtime.  Modules compiled with `-mrelocatable-lib' can be linked
  7352.      with either modules compiled without `-mrelocatable' and
  7353.      `-mrelocatable-lib' or with modules compiled with the
  7354.      `-mrelocatable' options.
  7355.  
  7356. `-mno-toc'
  7357. `-mtoc'
  7358.      On System V.4 and embedded PowerPC systems do not (do) assume that
  7359.      register 2 contains a pointer to a global area pointing to the
  7360.      addresses used in the program.
  7361.  
  7362. `-mlittle'
  7363. `-mlittle-endian'
  7364.      On System V.4 and embedded PowerPC systems compile code for the
  7365.      processor in little endian mode.  The `-mlittle-endian' option is
  7366.      the same as `-mlittle'.
  7367.  
  7368. `-mbig'
  7369. `-mbig-endian'
  7370.      On System V.4 and embedded PowerPC systems compile code for the
  7371.      processor in big endian mode.  The `-mbig-endian' option is the
  7372.      same as `-mbig'.
  7373.  
  7374. `-mdynamic-no-pic'
  7375.      On Darwin and Mac OS X systems, compile code so that it is not
  7376.      relocatable, but that its external references are relocatable.  The
  7377.      resulting code is suitable for applications, but not shared
  7378.      libraries.
  7379.  
  7380. `-mprioritize-restricted-insns=PRIORITY'
  7381.      This option controls the priority that is assigned to
  7382.      dispatch-slot restricted instructions during the second scheduling
  7383.      pass.  The argument PRIORITY takes the value 0/1/2 to assign
  7384.      NO/HIGHEST/SECOND-HIGHEST priority to dispatch slot restricted
  7385.      instructions.
  7386.  
  7387. `-msched-costly-dep=DEPENDENCE_TYPE'
  7388.      This option controls which dependences are considered costly by
  7389.      the target during instruction scheduling.  The argument
  7390.      DEPENDENCE_TYPE takes one of the following values: NO: no
  7391.      dependence is costly, ALL: all dependences are costly,
  7392.      TRUE_STORE_TO_LOAD: a true dependence from store to load is costly,
  7393.      STORE_TO_LOAD: any dependence from store to load is costly,
  7394.      NUMBER: any dependence which latency >= NUMBER is costly.
  7395.  
  7396. `-minsert-sched-nops=SCHEME'
  7397.      This option controls which nop insertion scheme will be used during
  7398.      the second scheduling pass. The argument SCHEME takes one of the
  7399.      following values: NO: Don't insert nops.  PAD: Pad with nops any
  7400.      dispatch group which has vacant issue slots, according to the
  7401.      scheduler's grouping.  REGROUP_EXACT: Insert nops to force costly
  7402.      dependent insns into separate groups.  Insert exactly as many nops
  7403.      as needed to force an insn to a new group, according to the
  7404.      estimated processor grouping.  NUMBER: Insert nops to force costly
  7405.      dependent insns into separate groups.  Insert NUMBER nops to force
  7406.      an insn to a new group.
  7407.  
  7408. `-mcall-sysv'
  7409.      On System V.4 and embedded PowerPC systems compile code using
  7410.      calling conventions that adheres to the March 1995 draft of the
  7411.      System V Application Binary Interface, PowerPC processor
  7412.      supplement.  This is the default unless you configured GCC using
  7413.      `powerpc-*-eabiaix'.
  7414.  
  7415. `-mcall-sysv-eabi'
  7416.      Specify both `-mcall-sysv' and `-meabi' options.
  7417.  
  7418. `-mcall-sysv-noeabi'
  7419.      Specify both `-mcall-sysv' and `-mno-eabi' options.
  7420.  
  7421. `-mcall-solaris'
  7422.      On System V.4 and embedded PowerPC systems compile code for the
  7423.      Solaris operating system.
  7424.  
  7425. `-mcall-linux'
  7426.      On System V.4 and embedded PowerPC systems compile code for the
  7427.      Linux-based GNU system.
  7428.  
  7429. `-mcall-gnu'
  7430.      On System V.4 and embedded PowerPC systems compile code for the
  7431.      Hurd-based GNU system.
  7432.  
  7433. `-mcall-netbsd'
  7434.      On System V.4 and embedded PowerPC systems compile code for the
  7435.      NetBSD operating system.
  7436.  
  7437. `-maix-struct-return'
  7438.      Return all structures in memory (as specified by the AIX ABI).
  7439.  
  7440. `-msvr4-struct-return'
  7441.      Return structures smaller than 8 bytes in registers (as specified
  7442.      by the SVR4 ABI).
  7443.  
  7444. `-mabi=altivec'
  7445.      Extend the current ABI with AltiVec ABI extensions.  This does not
  7446.      change the default ABI, instead it adds the AltiVec ABI extensions
  7447.      to the current ABI.
  7448.  
  7449. `-mabi=no-altivec'
  7450.      Disable AltiVec ABI extensions for the current ABI.
  7451.  
  7452. `-mprototype'
  7453. `-mno-prototype'
  7454.      On System V.4 and embedded PowerPC systems assume that all calls to
  7455.      variable argument functions are properly prototyped.  Otherwise,
  7456.      the compiler must insert an instruction before every non
  7457.      prototyped call to set or clear bit 6 of the condition code
  7458.      register (CR) to indicate whether floating point values were
  7459.      passed in the floating point registers in case the function takes
  7460.      a variable arguments.  With `-mprototype', only calls to
  7461.      prototyped variable argument functions will set or clear the bit.
  7462.  
  7463. `-msim'
  7464.      On embedded PowerPC systems, assume that the startup module is
  7465.      called `sim-crt0.o' and that the standard C libraries are
  7466.      `libsim.a' and `libc.a'.  This is the default for
  7467.      `powerpc-*-eabisim'.  configurations.
  7468.  
  7469. `-mmvme'
  7470.      On embedded PowerPC systems, assume that the startup module is
  7471.      called `crt0.o' and the standard C libraries are `libmvme.a' and
  7472.      `libc.a'.
  7473.  
  7474. `-mads'
  7475.      On embedded PowerPC systems, assume that the startup module is
  7476.      called `crt0.o' and the standard C libraries are `libads.a' and
  7477.      `libc.a'.
  7478.  
  7479. `-myellowknife'
  7480.      On embedded PowerPC systems, assume that the startup module is
  7481.      called `crt0.o' and the standard C libraries are `libyk.a' and
  7482.      `libc.a'.
  7483.  
  7484. `-mvxworks'
  7485.      On System V.4 and embedded PowerPC systems, specify that you are
  7486.      compiling for a VxWorks system.
  7487.  
  7488. `-mwindiss'
  7489.      Specify that you are compiling for the WindISS simulation
  7490.      environment.
  7491.  
  7492. `-memb'
  7493.      On embedded PowerPC systems, set the PPC_EMB bit in the ELF flags
  7494.      header to indicate that `eabi' extended relocations are used.
  7495.  
  7496. `-meabi'
  7497. `-mno-eabi'
  7498.      On System V.4 and embedded PowerPC systems do (do not) adhere to
  7499.      the Embedded Applications Binary Interface (eabi) which is a set of
  7500.      modifications to the System V.4 specifications.  Selecting `-meabi'
  7501.      means that the stack is aligned to an 8 byte boundary, a function
  7502.      `__eabi' is called to from `main' to set up the eabi environment,
  7503.      and the `-msdata' option can use both `r2' and `r13' to point to
  7504.      two separate small data areas.  Selecting `-mno-eabi' means that
  7505.      the stack is aligned to a 16 byte boundary, do not call an
  7506.      initialization function from `main', and the `-msdata' option will
  7507.      only use `r13' to point to a single small data area.  The `-meabi'
  7508.      option is on by default if you configured GCC using one of the
  7509.      `powerpc*-*-eabi*' options.
  7510.  
  7511. `-msdata=eabi'
  7512.      On System V.4 and embedded PowerPC systems, put small initialized
  7513.      `const' global and static data in the `.sdata2' section, which is
  7514.      pointed to by register `r2'.  Put small initialized non-`const'
  7515.      global and static data in the `.sdata' section, which is pointed
  7516.      to by register `r13'.  Put small uninitialized global and static
  7517.      data in the `.sbss' section, which is adjacent to the `.sdata'
  7518.      section.  The `-msdata=eabi' option is incompatible with the
  7519.      `-mrelocatable' option.  The `-msdata=eabi' option also sets the
  7520.      `-memb' option.
  7521.  
  7522. `-msdata=sysv'
  7523.      On System V.4 and embedded PowerPC systems, put small global and
  7524.      static data in the `.sdata' section, which is pointed to by
  7525.      register `r13'.  Put small uninitialized global and static data in
  7526.      the `.sbss' section, which is adjacent to the `.sdata' section.
  7527.      The `-msdata=sysv' option is incompatible with the `-mrelocatable'
  7528.      option.
  7529.  
  7530. `-msdata=default'
  7531. `-msdata'
  7532.      On System V.4 and embedded PowerPC systems, if `-meabi' is used,
  7533.      compile code the same as `-msdata=eabi', otherwise compile code the
  7534.      same as `-msdata=sysv'.
  7535.  
  7536. `-msdata-data'
  7537.      On System V.4 and embedded PowerPC systems, put small global and
  7538.      static data in the `.sdata' section.  Put small uninitialized
  7539.      global and static data in the `.sbss' section.  Do not use
  7540.      register `r13' to address small data however.  This is the default
  7541.      behavior unless other `-msdata' options are used.
  7542.  
  7543. `-msdata=none'
  7544. `-mno-sdata'
  7545.      On embedded PowerPC systems, put all initialized global and static
  7546.      data in the `.data' section, and all uninitialized data in the
  7547.      `.bss' section.
  7548.  
  7549. `-G NUM'
  7550.      On embedded PowerPC systems, put global and static items less than
  7551.      or equal to NUM bytes into the small data or bss sections instead
  7552.      of the normal data or bss section.  By default, NUM is 8.  The `-G
  7553.      NUM' switch is also passed to the linker.  All modules should be
  7554.      compiled with the same `-G NUM' value.
  7555.  
  7556. `-mregnames'
  7557. `-mno-regnames'
  7558.      On System V.4 and embedded PowerPC systems do (do not) emit
  7559.      register names in the assembly language output using symbolic
  7560.      forms.
  7561.  
  7562. `-mlongcall'
  7563. `-mno-longcall'
  7564.      Default to making all function calls via pointers, so that
  7565.      functions which reside further than 64 megabytes (67,108,864
  7566.      bytes) from the current location can be called.  This setting can
  7567.      be overridden by the `shortcall' function attribute, or by
  7568.      `#pragma longcall(0)'.
  7569.  
  7570.      Some linkers are capable of detecting out-of-range calls and
  7571.      generating glue code on the fly.  On these systems, long calls are
  7572.      unnecessary and generate slower code.  As of this writing, the AIX
  7573.      linker can do this, as can the GNU linker for PowerPC/64.  It is
  7574.      planned to add this feature to the GNU linker for 32-bit PowerPC
  7575.      systems as well.
  7576.  
  7577.      On Mach-O (Darwin) systems, this option directs the compiler emit
  7578.      to the glue for every direct call, and the Darwin linker decides
  7579.      whether to use or discard it.
  7580.  
  7581.      In the future, we may cause GCC to ignore all longcall
  7582.      specifications when the linker is known to generate glue.
  7583.  
  7584. `-pthread'
  7585.      Adds support for multithreading with the "pthreads" library.  This
  7586.      option sets flags for both the preprocessor and linker.
  7587.  
  7588.  
  7589. 
  7590. File: gcc,  Node: Darwin Options,  Next: MIPS Options,  Prev: RS/6000 and PowerPC Options,  Up: Submodel Options
  7591.  
  7592. 3.17.9 Darwin Options
  7593. ---------------------
  7594.  
  7595. These options are defined for all architectures running the Darwin
  7596. operating system.  They are useful for compatibility with other Mac OS
  7597. compilers.
  7598.  
  7599. `-all_load'
  7600.      Loads all members of static archive libraries.  See man ld(1) for
  7601.      more information.
  7602.  
  7603. `-arch_errors_fatal'
  7604.      Cause the errors having to do with files that have the wrong
  7605.      architecture to be fatal.
  7606.  
  7607. `-bind_at_load'
  7608.      Causes the output file to be marked such that the dynamic linker
  7609.      will bind all undefined references when the file is loaded or
  7610.      launched.
  7611.  
  7612. `-bundle'
  7613.      Produce a Mach-o bundle format file.  See man ld(1) for more
  7614.      information.
  7615.  
  7616. `-bundle_loader EXECUTABLE'
  7617.      This specifies the EXECUTABLE that will be loading the build
  7618.      output file being linked. See man ld(1) for more information.
  7619.  
  7620. `-allowable_client  CLIENT_NAME'
  7621. `-arch_only'
  7622. `-client_name'
  7623. `-compatibility_version'
  7624. `-current_version'
  7625. `-dependency-file'
  7626. `-dylib_file'
  7627. `-dylinker_install_name'
  7628. `-dynamic'
  7629. `-dynamiclib'
  7630. `-exported_symbols_list'
  7631. `-filelist'
  7632. `-flat_namespace'
  7633. `-force_cpusubtype_ALL'
  7634. `-force_flat_namespace'
  7635. `-headerpad_max_install_names'
  7636. `-image_base'
  7637. `-init'
  7638. `-install_name'
  7639. `-keep_private_externs'
  7640. `-multi_module'
  7641. `-multiply_defined'
  7642. `-multiply_defined_unused'
  7643. `-noall_load'
  7644. `-nofixprebinding'
  7645. `-nomultidefs'
  7646. `-noprebind'
  7647. `-noseglinkedit'
  7648. `-pagezero_size'
  7649. `-prebind'
  7650. `-prebind_all_twolevel_modules'
  7651. `-private_bundle'
  7652. `-read_only_relocs'
  7653. `-sectalign'
  7654. `-sectobjectsymbols'
  7655. `-whyload'
  7656. `-seg1addr'
  7657. `-sectcreate'
  7658. `-sectobjectsymbols'
  7659. `-sectorder'
  7660. `-seg_addr_table'
  7661. `-seg_addr_table_filename'
  7662. `-seglinkedit'
  7663. `-segprot'
  7664. `-segs_read_only_addr'
  7665. `-segs_read_write_addr'
  7666. `-single_module'
  7667. `-static'
  7668. `-sub_library'
  7669. `-sub_umbrella'
  7670. `-twolevel_namespace'
  7671. `-umbrella'
  7672. `-undefined'
  7673. `-unexported_symbols_list'
  7674. `-weak_reference_mismatches'
  7675. `-whatsloaded'
  7676.      These options are available for Darwin linker. Darwin linker man
  7677.      page describes them in detail.
  7678.  
  7679. 
  7680. File: gcc,  Node: MIPS Options,  Next: i386 and x86-64 Options,  Prev: Darwin Options,  Up: Submodel Options
  7681.  
  7682. 3.17.10 MIPS Options
  7683. --------------------
  7684.  
  7685. `-EB'
  7686.      Generate big-endian code.
  7687.  
  7688. `-EL'
  7689.      Generate little-endian code.  This is the default for `mips*el-*-*'
  7690.      configurations.
  7691.  
  7692. `-march=ARCH'
  7693.      Generate code that will run on ARCH, which can be the name of a
  7694.      generic MIPS ISA, or the name of a particular processor.  The ISA
  7695.      names are: `mips1', `mips2', `mips3', `mips4', `mips32',
  7696.      `mips32r2', and `mips64'.  The processor names are: `4kc', `4kp',
  7697.      `5kc', `20kc', `m4k', `r2000', `r3000', `r3900', `r4000', `r4400',
  7698.      `r4600', `r4650', `r6000', `r8000', `rm7000', `rm9000', `orion',
  7699.      `sb1', `vr4100', `vr4111', `vr4120', `vr4300', `vr5000', `vr5400'
  7700.      and `vr5500'.  The special value `from-abi' selects the most
  7701.      compatible architecture for the selected ABI (that is, `mips1' for
  7702.      32-bit ABIs and `mips3' for 64-bit ABIs).
  7703.  
  7704.      In processor names, a final `000' can be abbreviated as `k' (for
  7705.      example, `-march=r2k').  Prefixes are optional, and `vr' may be
  7706.      written `r'.
  7707.  
  7708.      GCC defines two macros based on the value of this option.  The
  7709.      first is `_MIPS_ARCH', which gives the name of target
  7710.      architecture, as a string.  The second has the form
  7711.      `_MIPS_ARCH_FOO', where FOO is the capitalized value of
  7712.      `_MIPS_ARCH'.  For example, `-march=r2000' will set `_MIPS_ARCH'
  7713.      to `"r2000"' and define the macro `_MIPS_ARCH_R2000'.
  7714.  
  7715.      Note that the `_MIPS_ARCH' macro uses the processor names given
  7716.      above.  In other words, it will have the full prefix and will not
  7717.      abbreviate `000' as `k'.  In the case of `from-abi', the macro
  7718.      names the resolved architecture (either `"mips1"' or `"mips3"').
  7719.      It names the default architecture when no `-march' option is given.
  7720.  
  7721. `-mtune=ARCH'
  7722.      Optimize for ARCH.  Among other things, this option controls the
  7723.      way instructions are scheduled, and the perceived cost of
  7724.      arithmetic operations.  The list of ARCH values is the same as for
  7725.      `-march'.
  7726.  
  7727.      When this option is not used, GCC will optimize for the processor
  7728.      specified by `-march'.  By using `-march' and `-mtune' together,
  7729.      it is possible to generate code that will run on a family of
  7730.      processors, but optimize the code for one particular member of
  7731.      that family.
  7732.  
  7733.      `-mtune' defines the macros `_MIPS_TUNE' and `_MIPS_TUNE_FOO',
  7734.      which work in the same way as the `-march' ones described above.
  7735.  
  7736. `-mips1'
  7737.      Equivalent to `-march=mips1'.
  7738.  
  7739. `-mips2'
  7740.      Equivalent to `-march=mips2'.
  7741.  
  7742. `-mips3'
  7743.      Equivalent to `-march=mips3'.
  7744.  
  7745. `-mips4'
  7746.      Equivalent to `-march=mips4'.
  7747.  
  7748. `-mips32'
  7749.      Equivalent to `-march=mips32'.
  7750.  
  7751. `-mips32r2'
  7752.      Equivalent to `-march=mips32r2'.
  7753.  
  7754. `-mips64'
  7755.      Equivalent to `-march=mips64'.
  7756.  
  7757. `-mips16'
  7758. `-mno-mips16'
  7759.      Use (do not use) the MIPS16 ISA.
  7760.  
  7761. `-mabi=32'
  7762. `-mabi=o64'
  7763. `-mabi=n32'
  7764. `-mabi=64'
  7765. `-mabi=eabi'
  7766.      Generate code for the given ABI.
  7767.  
  7768.      Note that the EABI has a 32-bit and a 64-bit variant.  GCC normally
  7769.      generates 64-bit code when you select a 64-bit architecture, but
  7770.      you can use `-mgp32' to get 32-bit code instead.
  7771.  
  7772. `-mabicalls'
  7773. `-mno-abicalls'
  7774.      Generate (do not generate) SVR4-style position-independent code.
  7775.      `-mabicalls' is the default for SVR4-based systems.
  7776.  
  7777. `-mxgot'
  7778. `-mno-xgot'
  7779.      Lift (do not lift) the usual restrictions on the size of the global
  7780.      offset table.
  7781.  
  7782.      GCC normally uses a single instruction to load values from the GOT.
  7783.      While this is relatively efficient, it will only work if the GOT
  7784.      is smaller than about 64k.  Anything larger will cause the linker
  7785.      to report an error such as:
  7786.  
  7787.           relocation truncated to fit: R_MIPS_GOT16 foobar
  7788.  
  7789.      If this happens, you should recompile your code with `-mxgot'.  It
  7790.      should then work with very large GOTs, although it will also be
  7791.      less efficient, since it will take three instructions to fetch the
  7792.      value of a global symbol.
  7793.  
  7794.      Note that some linkers can create multiple GOTs.  If you have such
  7795.      a linker, you should only need to use `-mxgot' when a single object
  7796.      file accesses more than 64k's worth of GOT entries.  Very few do.
  7797.  
  7798.      These options have no effect unless GCC is generating position
  7799.      independent code.
  7800.  
  7801. `-membedded-pic'
  7802. `-mno-embedded-pic'
  7803.      Generate (do not generate) position-independent code suitable for
  7804.      some embedded systems.  All calls are made using PC relative
  7805.      addresses, and all data is addressed using the $gp register.  No
  7806.      more than 65536 bytes of global data may be used.  This requires
  7807.      GNU as and GNU ld, which do most of the work.
  7808.  
  7809. `-mgp32'
  7810.      Assume that general-purpose registers are 32 bits wide.
  7811.  
  7812. `-mgp64'
  7813.      Assume that general-purpose registers are 64 bits wide.
  7814.  
  7815. `-mfp32'
  7816.      Assume that floating-point registers are 32 bits wide.
  7817.  
  7818. `-mfp64'
  7819.      Assume that floating-point registers are 64 bits wide.
  7820.  
  7821. `-mhard-float'
  7822.      Use floating-point coprocessor instructions.
  7823.  
  7824. `-msoft-float'
  7825.      Do not use floating-point coprocessor instructions.  Implement
  7826.      floating-point calculations using library calls instead.
  7827.  
  7828. `-msingle-float'
  7829.      Assume that the floating-point coprocessor only supports
  7830.      single-precision operations.
  7831.  
  7832. `-mdouble-float'
  7833.      Assume that the floating-point coprocessor supports
  7834.      double-precision operations.  This is the default.
  7835.  
  7836. `-mint64'
  7837.      Force `int' and `long' types to be 64 bits wide.  See `-mlong32'
  7838.      for an explanation of the default and the way that the pointer
  7839.      size is determined.
  7840.  
  7841. `-mlong64'
  7842.      Force `long' types to be 64 bits wide.  See `-mlong32' for an
  7843.      explanation of the default and the way that the pointer size is
  7844.      determined.
  7845.  
  7846. `-mlong32'
  7847.      Force `long', `int', and pointer types to be 32 bits wide.
  7848.  
  7849.      The default size of `int's, `long's and pointers depends on the
  7850.      ABI.  All the supported ABIs use 32-bit `int's.  The n64 ABI uses
  7851.      64-bit `long's, as does the 64-bit EABI; the others use 32-bit
  7852.      `long's.  Pointers are the same size as `long's, or the same size
  7853.      as integer registers, whichever is smaller.
  7854.  
  7855. `-G NUM'
  7856.      Put global and static items less than or equal to NUM bytes into
  7857.      the small data or bss section instead of the normal data or bss
  7858.      section.  This allows the data to be accessed using a single
  7859.      instruction.
  7860.  
  7861.      All modules should be compiled with the same `-G NUM' value.
  7862.  
  7863. `-membedded-data'
  7864. `-mno-embedded-data'
  7865.      Allocate variables to the read-only data section first if
  7866.      possible, then next in the small data section if possible,
  7867.      otherwise in data.  This gives slightly slower code than the
  7868.      default, but reduces the amount of RAM required when executing,
  7869.      and thus may be preferred for some embedded systems.
  7870.  
  7871. `-muninit-const-in-rodata'
  7872. `-mno-uninit-const-in-rodata'
  7873.      Put uninitialized `const' variables in the read-only data section.
  7874.      This option is only meaningful in conjunction with
  7875.      `-membedded-data'.
  7876.  
  7877. `-msplit-addresses'
  7878. `-mno-split-addresses'
  7879.      Enable (disable) use of the `%hi()' and `%lo()' assembler
  7880.      relocation operators.  This option has been superceded by
  7881.      `-mexplicit-relocs' but is retained for backwards compatibility.
  7882.  
  7883. `-mexplicit-relocs'
  7884. `-mno-explicit-relocs'
  7885.      Use (do not use) assembler relocation operators when dealing with
  7886.      symbolic addresses.  The alternative, selected by
  7887.      `-mno-explicit-relocs', is to use assembler macros instead.
  7888.  
  7889.      `-mexplicit-relocs' is usually the default if GCC was configured
  7890.      to use an assembler that supports relocation operators.  However,
  7891.      there are two exceptions:
  7892.  
  7893.         * GCC is not yet able to generate explicit relocations for the
  7894.           combination of `-mabi=64' and `-mno-abicalls'.  This will be
  7895.           addressed in a future release.
  7896.  
  7897.         * The combination of `-mabicalls' and `-fno-unit-at-a-time'
  7898.           implies `-mno-explicit-relocs' unless explicitly overridden.
  7899.           This is because, when generating abicalls, the choice of
  7900.           relocation depends on whether a symbol is local or global.
  7901.           In some rare cases, GCC will not be able to decide this until
  7902.           the whole compilation unit has been read.
  7903.  
  7904. `-mrnames'
  7905. `-mno-rnames'
  7906.      Generate (do not generate) code that refers to registers using
  7907.      their software names.  The default is `-mno-rnames', which tells
  7908.      GCC to use hardware names like `$4' instead of software names like
  7909.      `a0'.  The only assembler known to support `-rnames' is the
  7910.      Algorithmics assembler.
  7911.  
  7912. `-mcheck-zero-division'
  7913. `-mno-check-zero-division'
  7914.      Trap (do not trap) on integer division by zero.  The default is
  7915.      `-mcheck-zero-division'.
  7916.  
  7917. `-mmemcpy'
  7918. `-mno-memcpy'
  7919.      Force (do not force) the use of `memcpy()' for non-trivial block
  7920.      moves.  The default is `-mno-memcpy', which allows GCC to inline
  7921.      most constant-sized copies.
  7922.  
  7923. `-mlong-calls'
  7924. `-mno-long-calls'
  7925.      Disable (do not disable) use of the `jal' instruction.  Calling
  7926.      functions using `jal' is more efficient but requires the caller
  7927.      and callee to be in the same 256 megabyte segment.
  7928.  
  7929.      This option has no effect on abicalls code.  The default is
  7930.      `-mno-long-calls'.
  7931.  
  7932. `-mmad'
  7933. `-mno-mad'
  7934.      Enable (disable) use of the `mad', `madu' and `mul' instructions,
  7935.      as provided by the R4650 ISA.
  7936.  
  7937. `-mfused-madd'
  7938. `-mno-fused-madd'
  7939.      Enable (disable) use of the floating point multiply-accumulate
  7940.      instructions, when they are available.  The default is
  7941.      `-mfused-madd'.
  7942.  
  7943.      When multiply-accumulate instructions are used, the intermediate
  7944.      product is calculated to infinite precision and is not subject to
  7945.      the FCSR Flush to Zero bit.  This may be undesirable in some
  7946.      circumstances.
  7947.  
  7948. `-nocpp'
  7949.      Tell the MIPS assembler to not run its preprocessor over user
  7950.      assembler files (with a `.s' suffix) when assembling them.
  7951.  
  7952. `-mfix-sb1'
  7953. `-mno-fix-sb1'
  7954.      Work around certain SB-1 CPU core errata.  (This flag currently
  7955.      works around the SB-1 revision 2 "F1" and "F2" floating point
  7956.      errata.)
  7957.  
  7958. `-mflush-func=FUNC'
  7959. `-mno-flush-func'
  7960.      Specifies the function to call to flush the I and D caches, or to
  7961.      not call any such function.  If called, the function must take the
  7962.      same arguments as the common `_flush_func()', that is, the address
  7963.      of the memory range for which the cache is being flushed, the size
  7964.      of the memory range, and the number 3 (to flush both caches).  The
  7965.      default depends on the target GCC was configured for, but commonly
  7966.      is either `_flush_func' or `__cpu_flush'.
  7967.  
  7968. `-mbranch-likely'
  7969. `-mno-branch-likely'
  7970.      Enable or disable use of Branch Likely instructions, regardless of
  7971.      the default for the selected architecture.  By default, Branch
  7972.      Likely instructions may be generated if they are supported by the
  7973.      selected architecture.  An exception is for the MIPS32 and MIPS64
  7974.      architectures and processors which implement those architectures;
  7975.      for those, Branch Likely instructions will not be generated by
  7976.      default because the MIPS32 and MIPS64 architectures specifically
  7977.      deprecate their use.
  7978.  
  7979. 
  7980. File: gcc,  Node: i386 and x86-64 Options,  Next: HPPA Options,  Prev: MIPS Options,  Up: Submodel Options
  7981.  
  7982. 3.17.11 Intel 386 and AMD x86-64 Options
  7983. ----------------------------------------
  7984.  
  7985. These `-m' options are defined for the i386 and x86-64 family of
  7986. computers:
  7987.  
  7988. `-mtune=CPU-TYPE'
  7989.      Tune to CPU-TYPE everything applicable about the generated code,
  7990.      except for the ABI and the set of available instructions.  The
  7991.      choices for CPU-TYPE are:
  7992.     _i386_
  7993.           Original Intel's i386 CPU.
  7994.  
  7995.     _i486_
  7996.           Intel's i486 CPU.  (No scheduling is implemented for this
  7997.           chip.)
  7998.  
  7999.     _i586, pentium_
  8000.           Intel Pentium CPU with no MMX support.
  8001.  
  8002.     _pentium-mmx_
  8003.           Intel PentiumMMX CPU based on Pentium core with MMX
  8004.           instruction set support.
  8005.  
  8006.     _i686, pentiumpro_
  8007.           Intel PentiumPro CPU.
  8008.  
  8009.     _pentium2_
  8010.           Intel Pentium2 CPU based on PentiumPro core with MMX
  8011.           instruction set support.
  8012.  
  8013.     _pentium3, pentium3m_
  8014.           Intel Pentium3 CPU based on PentiumPro core with MMX and SSE
  8015.           instruction set support.
  8016.  
  8017.     _pentium-m_
  8018.           Low power version of Intel Pentium3 CPU with MMX, SSE and
  8019.           SSE2 instruction set support.  Used by Centrino notebooks.
  8020.  
  8021.     _pentium4, pentium4m_
  8022.           Intel Pentium4 CPU with MMX, SSE and SSE2 instruction set
  8023.           support.
  8024.  
  8025.     _prescott_
  8026.           Improved version of Intel Pentium4 CPU with MMX, SSE, SSE2
  8027.           and SSE3 instruction set support.
  8028.  
  8029.     _nocona_
  8030.           Improved version of Intel Pentium4 CPU with 64-bit
  8031.           extensions, MMX, SSE, SSE2 and SSE3 instruction set support.
  8032.  
  8033.     _k6_
  8034.           AMD K6 CPU with MMX instruction set support.
  8035.  
  8036.     _k6-2, k6-3_
  8037.           Improved versions of AMD K6 CPU with MMX and 3dNOW!
  8038.           instruction set support.
  8039.  
  8040.     _athlon, athlon-tbird_
  8041.           AMD Athlon CPU with MMX, 3dNOW!, enhanced 3dNOW! and SSE
  8042.           prefetch instructions support.
  8043.  
  8044.     _athlon-4, athlon-xp, athlon-mp_
  8045.           Improved AMD Athlon CPU with MMX, 3dNOW!, enhanced 3dNOW! and
  8046.           full SSE instruction set support.
  8047.  
  8048.     _k8, opteron, athlon64, athlon-fx_
  8049.           AMD K8 core based CPUs with x86-64 instruction set support.
  8050.           (This supersets MMX, SSE, SSE2, 3dNOW!, enhanced 3dNOW! and
  8051.           64-bit instruction set extensions.)
  8052.  
  8053.     _winchip-c6_
  8054.           IDT Winchip C6 CPU, dealt in same way as i486 with additional
  8055.           MMX instruction set support.
  8056.  
  8057.     _winchip2_
  8058.           IDT Winchip2 CPU, dealt in same way as i486 with additional
  8059.           MMX and 3dNOW!  instruction set support.
  8060.  
  8061.     _c3_
  8062.           Via C3 CPU with MMX and 3dNOW!  instruction set support.  (No
  8063.           scheduling is implemented for this chip.)
  8064.  
  8065.     _c3-2_
  8066.           Via C3-2 CPU with MMX and SSE instruction set support.  (No
  8067.           scheduling is implemented for this chip.)
  8068.  
  8069.      While picking a specific CPU-TYPE will schedule things
  8070.      appropriately for that particular chip, the compiler will not
  8071.      generate any code that does not run on the i386 without the
  8072.      `-march=CPU-TYPE' option being used.
  8073.  
  8074. `-march=CPU-TYPE'
  8075.      Generate instructions for the machine type CPU-TYPE.  The choices
  8076.      for CPU-TYPE are the same as for `-mtune'.  Moreover, specifying
  8077.      `-march=CPU-TYPE' implies `-mtune=CPU-TYPE'.
  8078.  
  8079. `-mcpu=CPU-TYPE'
  8080.      A deprecated synonym for `-mtune'.
  8081.  
  8082. `-m386'
  8083. `-m486'
  8084. `-mpentium'
  8085. `-mpentiumpro'
  8086.      These options are synonyms for `-mtune=i386', `-mtune=i486',
  8087.      `-mtune=pentium', and `-mtune=pentiumpro' respectively.  These
  8088.      synonyms are deprecated.
  8089.  
  8090. `-mfpmath=UNIT'
  8091.      Generate floating point arithmetics for selected unit UNIT.  The
  8092.      choices for UNIT are:
  8093.  
  8094.     `387'
  8095.           Use the standard 387 floating point coprocessor present
  8096.           majority of chips and emulated otherwise.  Code compiled with
  8097.           this option will run almost everywhere.  The temporary
  8098.           results are computed in 80bit precision instead of precision
  8099.           specified by the type resulting in slightly different results
  8100.           compared to most of other chips. See `-ffloat-store' for more
  8101.           detailed description.
  8102.  
  8103.           This is the default choice for i386 compiler.
  8104.  
  8105.     `sse'
  8106.           Use scalar floating point instructions present in the SSE
  8107.           instruction set.  This instruction set is supported by
  8108.           Pentium3 and newer chips, in the AMD line by Athlon-4,
  8109.           Athlon-xp and Athlon-mp chips.  The earlier version of SSE
  8110.           instruction set supports only single precision arithmetics,
  8111.           thus the double and extended precision arithmetics is still
  8112.           done using 387.  Later version, present only in Pentium4 and
  8113.           the future AMD x86-64 chips supports double precision
  8114.           arithmetics too.
  8115.  
  8116.           For i387 you need to use `-march=CPU-TYPE', `-msse' or
  8117.           `-msse2' switches to enable SSE extensions and make this
  8118.           option effective.  For x86-64 compiler, these extensions are
  8119.           enabled by default.
  8120.  
  8121.           The resulting code should be considerably faster in the
  8122.           majority of cases and avoid the numerical instability
  8123.           problems of 387 code, but may break some existing code that
  8124.           expects temporaries to be 80bit.
  8125.  
  8126.           This is the default choice for the x86-64 compiler.
  8127.  
  8128.     `sse,387'
  8129.           Attempt to utilize both instruction sets at once.  This
  8130.           effectively double the amount of available registers and on
  8131.           chips with separate execution units for 387 and SSE the
  8132.           execution resources too.  Use this option with care, as it is
  8133.           still experimental, because the GCC register allocator does
  8134.           not model separate functional units well resulting in
  8135.           instable performance.
  8136.  
  8137. `-masm=DIALECT'
  8138.      Output asm instructions using selected DIALECT. Supported choices
  8139.      are `intel' or `att' (the default one).
  8140.  
  8141. `-mieee-fp'
  8142. `-mno-ieee-fp'
  8143.      Control whether or not the compiler uses IEEE floating point
  8144.      comparisons.  These handle correctly the case where the result of a
  8145.      comparison is unordered.
  8146.  
  8147. `-msoft-float'
  8148.      Generate output containing library calls for floating point.
  8149.      *Warning:* the requisite libraries are not part of GCC.  Normally
  8150.      the facilities of the machine's usual C compiler are used, but
  8151.      this can't be done directly in cross-compilation.  You must make
  8152.      your own arrangements to provide suitable library functions for
  8153.      cross-compilation.
  8154.  
  8155.      On machines where a function returns floating point results in the
  8156.      80387 register stack, some floating point opcodes may be emitted
  8157.      even if `-msoft-float' is used.
  8158.  
  8159. `-mno-fp-ret-in-387'
  8160.      Do not use the FPU registers for return values of functions.
  8161.  
  8162.      The usual calling convention has functions return values of types
  8163.      `float' and `double' in an FPU register, even if there is no FPU.
  8164.      The idea is that the operating system should emulate an FPU.
  8165.  
  8166.      The option `-mno-fp-ret-in-387' causes such values to be returned
  8167.      in ordinary CPU registers instead.
  8168.  
  8169. `-mno-fancy-math-387'
  8170.      Some 387 emulators do not support the `sin', `cos' and `sqrt'
  8171.      instructions for the 387.  Specify this option to avoid generating
  8172.      those instructions.  This option is the default on FreeBSD,
  8173.      OpenBSD and NetBSD.  This option is overridden when `-march'
  8174.      indicates that the target cpu will always have an FPU and so the
  8175.      instruction will not need emulation.  As of revision 2.6.1, these
  8176.      instructions are not generated unless you also use the
  8177.      `-funsafe-math-optimizations' switch.
  8178.  
  8179. `-malign-double'
  8180. `-mno-align-double'
  8181.      Control whether GCC aligns `double', `long double', and `long
  8182.      long' variables on a two word boundary or a one word boundary.
  8183.      Aligning `double' variables on a two word boundary will produce
  8184.      code that runs somewhat faster on a `Pentium' at the expense of
  8185.      more memory.
  8186.  
  8187.      *Warning:* if you use the `-malign-double' switch, structures
  8188.      containing the above types will be aligned differently than the
  8189.      published application binary interface specifications for the 386
  8190.      and will not be binary compatible with structures in code compiled
  8191.      without that switch.
  8192.  
  8193. `-m96bit-long-double'
  8194. `-m128bit-long-double'
  8195.      These switches control the size of `long double' type. The i386
  8196.      application binary interface specifies the size to be 96 bits, so
  8197.      `-m96bit-long-double' is the default in 32 bit mode.
  8198.  
  8199.      Modern architectures (Pentium and newer) would prefer `long double'
  8200.      to be aligned to an 8 or 16 byte boundary.  In arrays or structures
  8201.      conforming to the ABI, this would not be possible.  So specifying a
  8202.      `-m128bit-long-double' will align `long double' to a 16 byte
  8203.      boundary by padding the `long double' with an additional 32 bit
  8204.      zero.
  8205.  
  8206.      In the x86-64 compiler, `-m128bit-long-double' is the default
  8207.      choice as its ABI specifies that `long double' is to be aligned on
  8208.      16 byte boundary.
  8209.  
  8210.      Notice that neither of these options enable any extra precision
  8211.      over the x87 standard of 80 bits for a `long double'.
  8212.  
  8213.      *Warning:* if you override the default value for your target ABI,
  8214.      the structures and arrays containing `long double' variables will
  8215.      change their size as well as function calling convention for
  8216.      function taking `long double' will be modified.  Hence they will
  8217.      not be binary compatible with arrays or structures in code
  8218.      compiled without that switch.
  8219.  
  8220. `-msvr3-shlib'
  8221. `-mno-svr3-shlib'
  8222.      Control whether GCC places uninitialized local variables into the
  8223.      `bss' or `data' segments.  `-msvr3-shlib' places them into `bss'.
  8224.      These options are meaningful only on System V Release 3.
  8225.  
  8226. `-mrtd'
  8227.      Use a different function-calling convention, in which functions
  8228.      that take a fixed number of arguments return with the `ret' NUM
  8229.      instruction, which pops their arguments while returning.  This
  8230.      saves one instruction in the caller since there is no need to pop
  8231.      the arguments there.
  8232.  
  8233.      You can specify that an individual function is called with this
  8234.      calling sequence with the function attribute `stdcall'.  You can
  8235.      also override the `-mrtd' option by using the function attribute
  8236.      `cdecl'.  *Note Function Attributes::.
  8237.  
  8238.      *Warning:* this calling convention is incompatible with the one
  8239.      normally used on Unix, so you cannot use it if you need to call
  8240.      libraries compiled with the Unix compiler.
  8241.  
  8242.      Also, you must provide function prototypes for all functions that
  8243.      take variable numbers of arguments (including `printf'); otherwise
  8244.      incorrect code will be generated for calls to those functions.
  8245.  
  8246.      In addition, seriously incorrect code will result if you call a
  8247.      function with too many arguments.  (Normally, extra arguments are
  8248.      harmlessly ignored.)
  8249.  
  8250. `-mregparm=NUM'
  8251.      Control how many registers are used to pass integer arguments.  By
  8252.      default, no registers are used to pass arguments, and at most 3
  8253.      registers can be used.  You can control this behavior for a
  8254.      specific function by using the function attribute `regparm'.
  8255.      *Note Function Attributes::.
  8256.  
  8257.      *Warning:* if you use this switch, and NUM is nonzero, then you
  8258.      must build all modules with the same value, including any
  8259.      libraries.  This includes the system libraries and startup modules.
  8260.  
  8261. `-mpreferred-stack-boundary=NUM'
  8262.      Attempt to keep the stack boundary aligned to a 2 raised to NUM
  8263.      byte boundary.  If `-mpreferred-stack-boundary' is not specified,
  8264.      the default is 4 (16 bytes or 128 bits), except when optimizing
  8265.      for code size (`-Os'), in which case the default is the minimum
  8266.      correct alignment (4 bytes for x86, and 8 bytes for x86-64).
  8267.  
  8268.      On Pentium and PentiumPro, `double' and `long double' values
  8269.      should be aligned to an 8 byte boundary (see `-malign-double') or
  8270.      suffer significant run time performance penalties.  On Pentium
  8271.      III, the Streaming SIMD Extension (SSE) data type `__m128' suffers
  8272.      similar penalties if it is not 16 byte aligned.
  8273.  
  8274.      To ensure proper alignment of this values on the stack, the stack
  8275.      boundary must be as aligned as that required by any value stored
  8276.      on the stack.  Further, every function must be generated such that
  8277.      it keeps the stack aligned.  Thus calling a function compiled with
  8278.      a higher preferred stack boundary from a function compiled with a
  8279.      lower preferred stack boundary will most likely misalign the
  8280.      stack.  It is recommended that libraries that use callbacks always
  8281.      use the default setting.
  8282.  
  8283.      This extra alignment does consume extra stack space, and generally
  8284.      increases code size.  Code that is sensitive to stack space usage,
  8285.      such as embedded systems and operating system kernels, may want to
  8286.      reduce the preferred alignment to `-mpreferred-stack-boundary=2'.
  8287.  
  8288. `-mmmx'
  8289. `-mno-mmx'
  8290.  
  8291. `-msse'
  8292. `-mno-sse'
  8293.  
  8294. `-msse2'
  8295. `-mno-sse2'
  8296.  
  8297. `-msse3'
  8298. `-mno-sse3'
  8299.  
  8300. `-m3dnow'
  8301. `-mno-3dnow'
  8302.      These switches enable or disable the use of built-in functions
  8303.      that allow direct access to the MMX, SSE, SSE2, SSE3 and 3Dnow
  8304.      extensions of the instruction set.
  8305.  
  8306.      *Note X86 Built-in Functions::, for details of the functions
  8307.      enabled and disabled by these switches.
  8308.  
  8309.      To have SSE/SSE2 instructions generated automatically from
  8310.      floating-point code, see `-mfpmath=sse'.
  8311.  
  8312. `-mpush-args'
  8313. `-mno-push-args'
  8314.      Use PUSH operations to store outgoing parameters.  This method is
  8315.      shorter and usually equally fast as method using SUB/MOV
  8316.      operations and is enabled by default.  In some cases disabling it
  8317.      may improve performance because of improved scheduling and reduced
  8318.      dependencies.
  8319.  
  8320. `-maccumulate-outgoing-args'
  8321.      If enabled, the maximum amount of space required for outgoing
  8322.      arguments will be computed in the function prologue.  This is
  8323.      faster on most modern CPUs because of reduced dependencies,
  8324.      improved scheduling and reduced stack usage when preferred stack
  8325.      boundary is not equal to 2.  The drawback is a notable increase in
  8326.      code size.  This switch implies `-mno-push-args'.
  8327.  
  8328. `-mthreads'
  8329.      Support thread-safe exception handling on `Mingw32'.  Code that
  8330.      relies on thread-safe exception handling must compile and link all
  8331.      code with the `-mthreads' option.  When compiling, `-mthreads'
  8332.      defines `-D_MT'; when linking, it links in a special thread helper
  8333.      library `-lmingwthrd' which cleans up per thread exception
  8334.      handling data.
  8335.  
  8336. `-mno-align-stringops'
  8337.      Do not align destination of inlined string operations.  This
  8338.      switch reduces code size and improves performance in case the
  8339.      destination is already aligned, but GCC doesn't know about it.
  8340.  
  8341. `-minline-all-stringops'
  8342.      By default GCC inlines string operations only when destination is
  8343.      known to be aligned at least to 4 byte boundary.  This enables
  8344.      more inlining, increase code size, but may improve performance of
  8345.      code that depends on fast memcpy, strlen and memset for short
  8346.      lengths.
  8347.  
  8348. `-momit-leaf-frame-pointer'
  8349.      Don't keep the frame pointer in a register for leaf functions.
  8350.      This avoids the instructions to save, set up and restore frame
  8351.      pointers and makes an extra register available in leaf functions.
  8352.      The option `-fomit-frame-pointer' removes the frame pointer for
  8353.      all functions which might make debugging harder.
  8354.  
  8355. `-mtls-direct-seg-refs'
  8356. `-mno-tls-direct-seg-refs'
  8357.      Controls whether TLS variables may be accessed with offsets from
  8358.      the TLS segment register (`%gs' for 32-bit, `%fs' for 64-bit), or
  8359.      whether the thread base pointer must be added.  Whether or not this
  8360.      is legal depends on the operating system, and whether it maps the
  8361.      segment to cover the entire TLS area.
  8362.  
  8363.      For systems that use GNU libc, the default is on.
  8364.  
  8365.  These `-m' switches are supported in addition to the above on AMD
  8366. x86-64 processors in 64-bit environments.
  8367.  
  8368. `-m32'
  8369. `-m64'
  8370.      Generate code for a 32-bit or 64-bit environment.  The 32-bit
  8371.      environment sets int, long and pointer to 32 bits and generates
  8372.      code that runs on any i386 system.  The 64-bit environment sets
  8373.      int to 32 bits and long and pointer to 64 bits and generates code
  8374.      for AMD's x86-64 architecture.
  8375.  
  8376. `-mno-red-zone'
  8377.      Do not use a so called red zone for x86-64 code.  The red zone is
  8378.      mandated by the x86-64 ABI, it is a 128-byte area beyond the
  8379.      location of the stack pointer that will not be modified by signal
  8380.      or interrupt handlers and therefore can be used for temporary data
  8381.      without adjusting the stack pointer.  The flag `-mno-red-zone'
  8382.      disables this red zone.
  8383.  
  8384. `-mcmodel=small'
  8385.      Generate code for the small code model: the program and its
  8386.      symbols must be linked in the lower 2 GB of the address space.
  8387.      Pointers are 64 bits.  Programs can be statically or dynamically
  8388.      linked.  This is the default code model.
  8389.  
  8390. `-mcmodel=kernel'
  8391.      Generate code for the kernel code model.  The kernel runs in the
  8392.      negative 2 GB of the address space.  This model has to be used for
  8393.      Linux kernel code.
  8394.  
  8395. `-mcmodel=medium'
  8396.      Generate code for the medium model: The program is linked in the
  8397.      lower 2 GB of the address space but symbols can be located
  8398.      anywhere in the address space.  Programs can be statically or
  8399.      dynamically linked, but building of shared libraries are not
  8400.      supported with the medium model.
  8401.  
  8402. `-mcmodel=large'
  8403.      Generate code for the large model: This model makes no assumptions
  8404.      about addresses and sizes of sections.  Currently GCC does not
  8405.      implement this model.
  8406.  
  8407. 
  8408. File: gcc,  Node: HPPA Options,  Next: Intel 960 Options,  Prev: i386 and x86-64 Options,  Up: Submodel Options
  8409.  
  8410. 3.17.12 HPPA Options
  8411. --------------------
  8412.  
  8413. These `-m' options are defined for the HPPA family of computers:
  8414.  
  8415. `-march=ARCHITECTURE-TYPE'
  8416.      Generate code for the specified architecture.  The choices for
  8417.      ARCHITECTURE-TYPE are `1.0' for PA 1.0, `1.1' for PA 1.1, and
  8418.      `2.0' for PA 2.0 processors.  Refer to `/usr/lib/sched.models' on
  8419.      an HP-UX system to determine the proper architecture option for
  8420.      your machine.  Code compiled for lower numbered architectures will
  8421.      run on higher numbered architectures, but not the other way around.
  8422.  
  8423.      PA 2.0 support currently requires gas snapshot 19990413 or later.
  8424.      The next release of binutils (current is 2.9.1) will probably
  8425.      contain PA 2.0 support.
  8426.  
  8427. `-mpa-risc-1-0'
  8428. `-mpa-risc-1-1'
  8429. `-mpa-risc-2-0'
  8430.      Synonyms for `-march=1.0', `-march=1.1', and `-march=2.0'
  8431.      respectively.
  8432.  
  8433. `-mbig-switch'
  8434.      Generate code suitable for big switch tables.  Use this option
  8435.      only if the assembler/linker complain about out of range branches
  8436.      within a switch table.
  8437.  
  8438. `-mjump-in-delay'
  8439.      Fill delay slots of function calls with unconditional jump
  8440.      instructions by modifying the return pointer for the function call
  8441.      to be the target of the conditional jump.
  8442.  
  8443. `-mdisable-fpregs'
  8444.      Prevent floating point registers from being used in any manner.
  8445.      This is necessary for compiling kernels which perform lazy context
  8446.      switching of floating point registers.  If you use this option and
  8447.      attempt to perform floating point operations, the compiler will
  8448.      abort.
  8449.  
  8450. `-mdisable-indexing'
  8451.      Prevent the compiler from using indexing address modes.  This
  8452.      avoids some rather obscure problems when compiling MIG generated
  8453.      code under MACH.
  8454.  
  8455. `-mno-space-regs'
  8456.      Generate code that assumes the target has no space registers.
  8457.      This allows GCC to generate faster indirect calls and use unscaled
  8458.      index address modes.
  8459.  
  8460.      Such code is suitable for level 0 PA systems and kernels.
  8461.  
  8462. `-mfast-indirect-calls'
  8463.      Generate code that assumes calls never cross space boundaries.
  8464.      This allows GCC to emit code which performs faster indirect calls.
  8465.  
  8466.      This option will not work in the presence of shared libraries or
  8467.      nested functions.
  8468.  
  8469. `-mlong-load-store'
  8470.      Generate 3-instruction load and store sequences as sometimes
  8471.      required by the HP-UX 10 linker.  This is equivalent to the `+k'
  8472.      option to the HP compilers.
  8473.  
  8474. `-mportable-runtime'
  8475.      Use the portable calling conventions proposed by HP for ELF
  8476.      systems.
  8477.  
  8478. `-mgas'
  8479.      Enable the use of assembler directives only GAS understands.
  8480.  
  8481. `-mschedule=CPU-TYPE'
  8482.      Schedule code according to the constraints for the machine type
  8483.      CPU-TYPE.  The choices for CPU-TYPE are `700' `7100', `7100LC',
  8484.      `7200', `7300' and `8000'.  Refer to `/usr/lib/sched.models' on an
  8485.      HP-UX system to determine the proper scheduling option for your
  8486.      machine.  The default scheduling is `8000'.
  8487.  
  8488. `-mlinker-opt'
  8489.      Enable the optimization pass in the HP-UX linker.  Note this makes
  8490.      symbolic debugging impossible.  It also triggers a bug in the
  8491.      HP-UX 8 and HP-UX 9 linkers in which they give bogus error
  8492.      messages when linking some programs.
  8493.  
  8494. `-msoft-float'
  8495.      Generate output containing library calls for floating point.
  8496.      *Warning:* the requisite libraries are not available for all HPPA
  8497.      targets.  Normally the facilities of the machine's usual C
  8498.      compiler are used, but this cannot be done directly in
  8499.      cross-compilation.  You must make your own arrangements to provide
  8500.      suitable library functions for cross-compilation.  The embedded
  8501.      target `hppa1.1-*-pro' does provide software floating point
  8502.      support.
  8503.  
  8504.      `-msoft-float' changes the calling convention in the output file;
  8505.      therefore, it is only useful if you compile _all_ of a program with
  8506.      this option.  In particular, you need to compile `libgcc.a', the
  8507.      library that comes with GCC, with `-msoft-float' in order for this
  8508.      to work.
  8509.  
  8510. `-msio'
  8511.      Generate the predefine, `_SIO', for server IO.  The default is
  8512.      `-mwsio'.  This generates the predefines, `__hp9000s700',
  8513.      `__hp9000s700__' and `_WSIO', for workstation IO.  These options
  8514.      are available under HP-UX and HI-UX.
  8515.  
  8516. `-mgnu-ld'
  8517.      Use GNU ld specific options.  This passes `-shared' to ld when
  8518.      building a shared library.  It is the default when GCC is
  8519.      configured, explicitly or implicitly, with the GNU linker.  This
  8520.      option does not have any affect on which ld is called, it only
  8521.      changes what parameters are passed to that ld.  The ld that is
  8522.      called is determined by the `--with-ld' configure option, GCC's
  8523.      program search path, and finally by the user's `PATH'.  The linker
  8524.      used by GCC can be printed using `which `gcc -print-prog-name=ld`'.
  8525.  
  8526. `-mhp-ld'
  8527.      Use HP ld specific options.  This passes `-b' to ld when building
  8528.      a shared library and passes `+Accept TypeMismatch' to ld on all
  8529.      links.  It is the default when GCC is configured, explicitly or
  8530.      implicitly, with the HP linker.  This option does not have any
  8531.      affect on which ld is called, it only changes what parameters are
  8532.      passed to that ld.  The ld that is called is determined by the
  8533.      `--with-ld' configure option, GCC's program search path, and
  8534.      finally by the user's `PATH'.  The linker used by GCC can be
  8535.      printed using `which `gcc -print-prog-name=ld`'.
  8536.  
  8537. `-mlong-calls'
  8538.      Generate code that uses long call sequences.  This ensures that a
  8539.      call is always able to reach linker generated stubs.  The default
  8540.      is to generate long calls only when the distance from the call
  8541.      site to the beginning of the function or translation unit, as the
  8542.      case may be, exceeds a predefined limit set by the branch type
  8543.      being used.  The limits for normal calls are 7,600,000 and 240,000
  8544.      bytes, respectively for the PA 2.0 and PA 1.X architectures.
  8545.      Sibcalls are always limited at 240,000 bytes.
  8546.  
  8547.      Distances are measured from the beginning of functions when using
  8548.      the `-ffunction-sections' option, or when using the `-mgas' and
  8549.      `-mno-portable-runtime' options together under HP-UX with the SOM
  8550.      linker.
  8551.  
  8552.      It is normally not desirable to use this option as it will degrade
  8553.      performance.  However, it may be useful in large applications,
  8554.      particularly when partial linking is used to build the application.
  8555.  
  8556.      The types of long calls used depends on the capabilities of the
  8557.      assembler and linker, and the type of code being generated.  The
  8558.      impact on systems that support long absolute calls, and long pic
  8559.      symbol-difference or pc-relative calls should be relatively small.
  8560.      However, an indirect call is used on 32-bit ELF systems in pic code
  8561.      and it is quite long.
  8562.  
  8563. `-nolibdld'
  8564.      Suppress the generation of link options to search libdld.sl when
  8565.      the `-static' option is specified on HP-UX 10 and later.
  8566.  
  8567. `-static'
  8568.      The HP-UX implementation of setlocale in libc has a dependency on
  8569.      libdld.sl.  There isn't an archive version of libdld.sl.  Thus,
  8570.      when the `-static' option is specified, special link options are
  8571.      needed to resolve this dependency.
  8572.  
  8573.      On HP-UX 10 and later, the GCC driver adds the necessary options to
  8574.      link with libdld.sl when the `-static' option is specified.  This
  8575.      causes the resulting binary to be dynamic.  On the 64-bit port,
  8576.      the linkers generate dynamic binaries by default in any case.  The
  8577.      `-nolibdld' option can be used to prevent the GCC driver from
  8578.      adding these link options.
  8579.  
  8580. `-threads'
  8581.      Add support for multithreading with the "dce thread" library under
  8582.      HP-UX.  This option sets flags for both the preprocessor and
  8583.      linker.
  8584.  
  8585. 
  8586. File: gcc,  Node: Intel 960 Options,  Next: DEC Alpha Options,  Prev: HPPA Options,  Up: Submodel Options
  8587.  
  8588. 3.17.13 Intel 960 Options
  8589. -------------------------
  8590.  
  8591. These `-m' options are defined for the Intel 960 implementations:
  8592.  
  8593. `-mCPU-TYPE'
  8594.      Assume the defaults for the machine type CPU-TYPE for some of the
  8595.      other options, including instruction scheduling, floating point
  8596.      support, and addressing modes.  The choices for CPU-TYPE are `ka',
  8597.      `kb', `mc', `ca', `cf', `sa', and `sb'.  The default is `kb'.
  8598.  
  8599. `-mnumerics'
  8600. `-msoft-float'
  8601.      The `-mnumerics' option indicates that the processor does support
  8602.      floating-point instructions.  The `-msoft-float' option indicates
  8603.      that floating-point support should not be assumed.
  8604.  
  8605. `-mleaf-procedures'
  8606. `-mno-leaf-procedures'
  8607.      Do (or do not) attempt to alter leaf procedures to be callable
  8608.      with the `bal' instruction as well as `call'.  This will result in
  8609.      more efficient code for explicit calls when the `bal' instruction
  8610.      can be substituted by the assembler or linker, but less efficient
  8611.      code in other cases, such as calls via function pointers, or using
  8612.      a linker that doesn't support this optimization.
  8613.  
  8614. `-mtail-call'
  8615. `-mno-tail-call'
  8616.      Do (or do not) make additional attempts (beyond those of the
  8617.      machine-independent portions of the compiler) to optimize
  8618.      tail-recursive calls into branches.  You may not want to do this
  8619.      because the detection of cases where this is not valid is not
  8620.      totally complete.  The default is `-mno-tail-call'.
  8621.  
  8622. `-mcomplex-addr'
  8623. `-mno-complex-addr'
  8624.      Assume (or do not assume) that the use of a complex addressing
  8625.      mode is a win on this implementation of the i960.  Complex
  8626.      addressing modes may not be worthwhile on the K-series, but they
  8627.      definitely are on the C-series.  The default is currently
  8628.      `-mcomplex-addr' for all processors except the CB and CC.
  8629.  
  8630. `-mcode-align'
  8631. `-mno-code-align'
  8632.      Align code to 8-byte boundaries for faster fetching (or don't
  8633.      bother).  Currently turned on by default for C-series
  8634.      implementations only.
  8635.  
  8636. `-mic-compat'
  8637. `-mic2.0-compat'
  8638. `-mic3.0-compat'
  8639.      Enable compatibility with iC960 v2.0 or v3.0.
  8640.  
  8641. `-masm-compat'
  8642. `-mintel-asm'
  8643.      Enable compatibility with the iC960 assembler.
  8644.  
  8645. `-mstrict-align'
  8646. `-mno-strict-align'
  8647.      Do not permit (do permit) unaligned accesses.
  8648.  
  8649. `-mold-align'
  8650.      Enable structure-alignment compatibility with Intel's gcc release
  8651.      version 1.3 (based on gcc 1.37).  This option implies
  8652.      `-mstrict-align'.
  8653.  
  8654. `-mlong-double-64'
  8655.      Implement type `long double' as 64-bit floating point numbers.
  8656.      Without the option `long double' is implemented by 80-bit floating
  8657.      point numbers.  The only reason we have it because there is no
  8658.      128-bit `long double' support in `fp-bit.c' yet.  So it is only
  8659.      useful for people using soft-float targets.  Otherwise, we should
  8660.      recommend against use of it.
  8661.  
  8662.  
  8663. 
  8664. File: gcc,  Node: DEC Alpha Options,  Next: DEC Alpha/VMS Options,  Prev: Intel 960 Options,  Up: Submodel Options
  8665.  
  8666. 3.17.14 DEC Alpha Options
  8667. -------------------------
  8668.  
  8669. These `-m' options are defined for the DEC Alpha implementations:
  8670.  
  8671. `-mno-soft-float'
  8672. `-msoft-float'
  8673.      Use (do not use) the hardware floating-point instructions for
  8674.      floating-point operations.  When `-msoft-float' is specified,
  8675.      functions in `libgcc.a' will be used to perform floating-point
  8676.      operations.  Unless they are replaced by routines that emulate the
  8677.      floating-point operations, or compiled in such a way as to call
  8678.      such emulations routines, these routines will issue floating-point
  8679.      operations.   If you are compiling for an Alpha without
  8680.      floating-point operations, you must ensure that the library is
  8681.      built so as not to call them.
  8682.  
  8683.      Note that Alpha implementations without floating-point operations
  8684.      are required to have floating-point registers.
  8685.  
  8686. `-mfp-reg'
  8687. `-mno-fp-regs'
  8688.      Generate code that uses (does not use) the floating-point register
  8689.      set.  `-mno-fp-regs' implies `-msoft-float'.  If the floating-point
  8690.      register set is not used, floating point operands are passed in
  8691.      integer registers as if they were integers and floating-point
  8692.      results are passed in `$0' instead of `$f0'.  This is a
  8693.      non-standard calling sequence, so any function with a
  8694.      floating-point argument or return value called by code compiled
  8695.      with `-mno-fp-regs' must also be compiled with that option.
  8696.  
  8697.      A typical use of this option is building a kernel that does not
  8698.      use, and hence need not save and restore, any floating-point
  8699.      registers.
  8700.  
  8701. `-mieee'
  8702.      The Alpha architecture implements floating-point hardware
  8703.      optimized for maximum performance.  It is mostly compliant with
  8704.      the IEEE floating point standard.  However, for full compliance,
  8705.      software assistance is required.  This option generates code fully
  8706.      IEEE compliant code _except_ that the INEXACT-FLAG is not
  8707.      maintained (see below).  If this option is turned on, the
  8708.      preprocessor macro `_IEEE_FP' is defined during compilation.  The
  8709.      resulting code is less efficient but is able to correctly support
  8710.      denormalized numbers and exceptional IEEE values such as
  8711.      not-a-number and plus/minus infinity.  Other Alpha compilers call
  8712.      this option `-ieee_with_no_inexact'.
  8713.  
  8714. `-mieee-with-inexact'
  8715.      This is like `-mieee' except the generated code also maintains the
  8716.      IEEE INEXACT-FLAG.  Turning on this option causes the generated
  8717.      code to implement fully-compliant IEEE math.  In addition to
  8718.      `_IEEE_FP', `_IEEE_FP_EXACT' is defined as a preprocessor macro.
  8719.      On some Alpha implementations the resulting code may execute
  8720.      significantly slower than the code generated by default.  Since
  8721.      there is very little code that depends on the INEXACT-FLAG, you
  8722.      should normally not specify this option.  Other Alpha compilers
  8723.      call this option `-ieee_with_inexact'.
  8724.  
  8725. `-mfp-trap-mode=TRAP-MODE'
  8726.      This option controls what floating-point related traps are enabled.
  8727.      Other Alpha compilers call this option `-fptm TRAP-MODE'.  The
  8728.      trap mode can be set to one of four values:
  8729.  
  8730.     `n'
  8731.           This is the default (normal) setting.  The only traps that
  8732.           are enabled are the ones that cannot be disabled in software
  8733.           (e.g., division by zero trap).
  8734.  
  8735.     `u'
  8736.           In addition to the traps enabled by `n', underflow traps are
  8737.           enabled as well.
  8738.  
  8739.     `su'
  8740.           Like `su', but the instructions are marked to be safe for
  8741.           software completion (see Alpha architecture manual for
  8742.           details).
  8743.  
  8744.     `sui'
  8745.           Like `su', but inexact traps are enabled as well.
  8746.  
  8747. `-mfp-rounding-mode=ROUNDING-MODE'
  8748.      Selects the IEEE rounding mode.  Other Alpha compilers call this
  8749.      option `-fprm ROUNDING-MODE'.  The ROUNDING-MODE can be one of:
  8750.  
  8751.     `n'
  8752.           Normal IEEE rounding mode.  Floating point numbers are
  8753.           rounded towards the nearest machine number or towards the
  8754.           even machine number in case of a tie.
  8755.  
  8756.     `m'
  8757.           Round towards minus infinity.
  8758.  
  8759.     `c'
  8760.           Chopped rounding mode.  Floating point numbers are rounded
  8761.           towards zero.
  8762.  
  8763.     `d'
  8764.           Dynamic rounding mode.  A field in the floating point control
  8765.           register (FPCR, see Alpha architecture reference manual)
  8766.           controls the rounding mode in effect.  The C library
  8767.           initializes this register for rounding towards plus infinity.
  8768.           Thus, unless your program modifies the FPCR, `d' corresponds
  8769.           to round towards plus infinity.
  8770.  
  8771. `-mtrap-precision=TRAP-PRECISION'
  8772.      In the Alpha architecture, floating point traps are imprecise.
  8773.      This means without software assistance it is impossible to recover
  8774.      from a floating trap and program execution normally needs to be
  8775.      terminated.  GCC can generate code that can assist operating
  8776.      system trap handlers in determining the exact location that caused
  8777.      a floating point trap.  Depending on the requirements of an
  8778.      application, different levels of precisions can be selected:
  8779.  
  8780.     `p'
  8781.           Program precision.  This option is the default and means a
  8782.           trap handler can only identify which program caused a
  8783.           floating point exception.
  8784.  
  8785.     `f'
  8786.           Function precision.  The trap handler can determine the
  8787.           function that caused a floating point exception.
  8788.  
  8789.     `i'
  8790.           Instruction precision.  The trap handler can determine the
  8791.           exact instruction that caused a floating point exception.
  8792.  
  8793.      Other Alpha compilers provide the equivalent options called
  8794.      `-scope_safe' and `-resumption_safe'.
  8795.  
  8796. `-mieee-conformant'
  8797.      This option marks the generated code as IEEE conformant.  You must
  8798.      not use this option unless you also specify `-mtrap-precision=i'
  8799.      and either `-mfp-trap-mode=su' or `-mfp-trap-mode=sui'.  Its only
  8800.      effect is to emit the line `.eflag 48' in the function prologue of
  8801.      the generated assembly file.  Under DEC Unix, this has the effect
  8802.      that IEEE-conformant math library routines will be linked in.
  8803.  
  8804. `-mbuild-constants'
  8805.      Normally GCC examines a 32- or 64-bit integer constant to see if
  8806.      it can construct it from smaller constants in two or three
  8807.      instructions.  If it cannot, it will output the constant as a
  8808.      literal and generate code to load it from the data segment at
  8809.      runtime.
  8810.  
  8811.      Use this option to require GCC to construct _all_ integer constants
  8812.      using code, even if it takes more instructions (the maximum is
  8813.      six).
  8814.  
  8815.      You would typically use this option to build a shared library
  8816.      dynamic loader.  Itself a shared library, it must relocate itself
  8817.      in memory before it can find the variables and constants in its
  8818.      own data segment.
  8819.  
  8820. `-malpha-as'
  8821. `-mgas'
  8822.      Select whether to generate code to be assembled by the
  8823.      vendor-supplied assembler (`-malpha-as') or by the GNU assembler
  8824.      `-mgas'.
  8825.  
  8826. `-mbwx'
  8827. `-mno-bwx'
  8828. `-mcix'
  8829. `-mno-cix'
  8830. `-mfix'
  8831. `-mno-fix'
  8832. `-mmax'
  8833. `-mno-max'
  8834.      Indicate whether GCC should generate code to use the optional BWX,
  8835.      CIX, FIX and MAX instruction sets.  The default is to use the
  8836.      instruction sets supported by the CPU type specified via `-mcpu='
  8837.      option or that of the CPU on which GCC was built if none was
  8838.      specified.
  8839.  
  8840. `-mfloat-vax'
  8841. `-mfloat-ieee'
  8842.      Generate code that uses (does not use) VAX F and G floating point
  8843.      arithmetic instead of IEEE single and double precision.
  8844.  
  8845. `-mexplicit-relocs'
  8846. `-mno-explicit-relocs'
  8847.      Older Alpha assemblers provided no way to generate symbol
  8848.      relocations except via assembler macros.  Use of these macros does
  8849.      not allow optimal instruction scheduling.  GNU binutils as of
  8850.      version 2.12 supports a new syntax that allows the compiler to
  8851.      explicitly mark which relocations should apply to which
  8852.      instructions.  This option is mostly useful for debugging, as GCC
  8853.      detects the capabilities of the assembler when it is built and
  8854.      sets the default accordingly.
  8855.  
  8856. `-msmall-data'
  8857. `-mlarge-data'
  8858.      When `-mexplicit-relocs' is in effect, static data is accessed via
  8859.      "gp-relative" relocations.  When `-msmall-data' is used, objects 8
  8860.      bytes long or smaller are placed in a "small data area" (the
  8861.      `.sdata' and `.sbss' sections) and are accessed via 16-bit
  8862.      relocations off of the `$gp' register.  This limits the size of
  8863.      the small data area to 64KB, but allows the variables to be
  8864.      directly accessed via a single instruction.
  8865.  
  8866.      The default is `-mlarge-data'.  With this option the data area is
  8867.      limited to just below 2GB.  Programs that require more than 2GB of
  8868.      data must use `malloc' or `mmap' to allocate the data in the heap
  8869.      instead of in the program's data segment.
  8870.  
  8871.      When generating code for shared libraries, `-fpic' implies
  8872.      `-msmall-data' and `-fPIC' implies `-mlarge-data'.
  8873.  
  8874. `-msmall-text'
  8875. `-mlarge-text'
  8876.      When `-msmall-text' is used, the compiler assumes that the code of
  8877.      the entire program (or shared library) fits in 4MB, and is thus
  8878.      reachable with a branch instruction.  When `-msmall-data' is used,
  8879.      the compiler can assume that all local symbols share the same
  8880.      `$gp' value, and thus reduce the number of instructions required
  8881.      for a function call from 4 to 1.
  8882.  
  8883.      The default is `-mlarge-text'.
  8884.  
  8885. `-mcpu=CPU_TYPE'
  8886.      Set the instruction set and instruction scheduling parameters for
  8887.      machine type CPU_TYPE.  You can specify either the `EV' style name
  8888.      or the corresponding chip number.  GCC supports scheduling
  8889.      parameters for the EV4, EV5 and EV6 family of processors and will
  8890.      choose the default values for the instruction set from the
  8891.      processor you specify.  If you do not specify a processor type,
  8892.      GCC will default to the processor on which the compiler was built.
  8893.  
  8894.      Supported values for CPU_TYPE are
  8895.  
  8896.     `ev4'
  8897.     `ev45'
  8898.     `21064'
  8899.           Schedules as an EV4 and has no instruction set extensions.
  8900.  
  8901.     `ev5'
  8902.     `21164'
  8903.           Schedules as an EV5 and has no instruction set extensions.
  8904.  
  8905.     `ev56'
  8906.     `21164a'
  8907.           Schedules as an EV5 and supports the BWX extension.
  8908.  
  8909.     `pca56'
  8910.     `21164pc'
  8911.     `21164PC'
  8912.           Schedules as an EV5 and supports the BWX and MAX extensions.
  8913.  
  8914.     `ev6'
  8915.     `21264'
  8916.           Schedules as an EV6 and supports the BWX, FIX, and MAX
  8917.           extensions.
  8918.  
  8919.     `ev67'
  8920.     `21264a'
  8921.           Schedules as an EV6 and supports the BWX, CIX, FIX, and MAX
  8922.           extensions.
  8923.  
  8924. `-mtune=CPU_TYPE'
  8925.      Set only the instruction scheduling parameters for machine type
  8926.      CPU_TYPE.  The instruction set is not changed.
  8927.  
  8928. `-mmemory-latency=TIME'
  8929.      Sets the latency the scheduler should assume for typical memory
  8930.      references as seen by the application.  This number is highly
  8931.      dependent on the memory access patterns used by the application
  8932.      and the size of the external cache on the machine.
  8933.  
  8934.      Valid options for TIME are
  8935.  
  8936.     `NUMBER'
  8937.           A decimal number representing clock cycles.
  8938.  
  8939.     `L1'
  8940.     `L2'
  8941.     `L3'
  8942.     `main'
  8943.           The compiler contains estimates of the number of clock cycles
  8944.           for "typical" EV4 & EV5 hardware for the Level 1, 2 & 3 caches
  8945.           (also called Dcache, Scache, and Bcache), as well as to main
  8946.           memory.  Note that L3 is only valid for EV5.
  8947.  
  8948.  
  8949. 
  8950. File: gcc,  Node: DEC Alpha/VMS Options,  Next: H8/300 Options,  Prev: DEC Alpha Options,  Up: Submodel Options
  8951.  
  8952. 3.17.15 DEC Alpha/VMS Options
  8953. -----------------------------
  8954.  
  8955. These `-m' options are defined for the DEC Alpha/VMS implementations:
  8956.  
  8957. `-mvms-return-codes'
  8958.      Return VMS condition codes from main.  The default is to return
  8959.      POSIX style condition (e.g. error) codes.
  8960.  
  8961. 
  8962. File: gcc,  Node: H8/300 Options,  Next: SH Options,  Prev: DEC Alpha/VMS Options,  Up: Submodel Options
  8963.  
  8964. 3.17.16 H8/300 Options
  8965. ----------------------
  8966.  
  8967. These `-m' options are defined for the H8/300 implementations:
  8968.  
  8969. `-mrelax'
  8970.      Shorten some address references at link time, when possible; uses
  8971.      the linker option `-relax'.  *Note `ld' and the H8/300:
  8972.      (ld)H8/300, for a fuller description.
  8973.  
  8974. `-mh'
  8975.      Generate code for the H8/300H.
  8976.  
  8977. `-ms'
  8978.      Generate code for the H8S.
  8979.  
  8980. `-mn'
  8981.      Generate code for the H8S and H8/300H in the normal mode.  This
  8982.      switch must be used either with -mh or -ms.
  8983.  
  8984. `-ms2600'
  8985.      Generate code for the H8S/2600.  This switch must be used with
  8986.      `-ms'.
  8987.  
  8988. `-mint32'
  8989.      Make `int' data 32 bits by default.
  8990.  
  8991. `-malign-300'
  8992.      On the H8/300H and H8S, use the same alignment rules as for the
  8993.      H8/300.  The default for the H8/300H and H8S is to align longs and
  8994.      floats on 4 byte boundaries.  `-malign-300' causes them to be
  8995.      aligned on 2 byte boundaries.  This option has no effect on the
  8996.      H8/300.
  8997.  
  8998. 
  8999. File: gcc,  Node: SH Options,  Next: System V Options,  Prev: H8/300 Options,  Up: Submodel Options
  9000.  
  9001. 3.17.17 SH Options
  9002. ------------------
  9003.  
  9004. These `-m' options are defined for the SH implementations:
  9005.  
  9006. `-m1'
  9007.      Generate code for the SH1.
  9008.  
  9009. `-m2'
  9010.      Generate code for the SH2.
  9011.  
  9012. `-m2e'
  9013.      Generate code for the SH2e.
  9014.  
  9015. `-m3'
  9016.      Generate code for the SH3.
  9017.  
  9018. `-m3e'
  9019.      Generate code for the SH3e.
  9020.  
  9021. `-m4-nofpu'
  9022.      Generate code for the SH4 without a floating-point unit.
  9023.  
  9024. `-m4-single-only'
  9025.      Generate code for the SH4 with a floating-point unit that only
  9026.      supports single-precision arithmetic.
  9027.  
  9028. `-m4-single'
  9029.      Generate code for the SH4 assuming the floating-point unit is in
  9030.      single-precision mode by default.
  9031.  
  9032. `-m4'
  9033.      Generate code for the SH4.
  9034.  
  9035. `-mb'
  9036.      Compile code for the processor in big endian mode.
  9037.  
  9038. `-ml'
  9039.      Compile code for the processor in little endian mode.
  9040.  
  9041. `-mdalign'
  9042.      Align doubles at 64-bit boundaries.  Note that this changes the
  9043.      calling conventions, and thus some functions from the standard C
  9044.      library will not work unless you recompile it first with
  9045.      `-mdalign'.
  9046.  
  9047. `-mrelax'
  9048.      Shorten some address references at link time, when possible; uses
  9049.      the linker option `-relax'.
  9050.  
  9051. `-mbigtable'
  9052.      Use 32-bit offsets in `switch' tables.  The default is to use
  9053.      16-bit offsets.
  9054.  
  9055. `-mfmovd'
  9056.      Enable the use of the instruction `fmovd'.
  9057.  
  9058. `-mhitachi'
  9059.      Comply with the calling conventions defined by Renesas.
  9060.  
  9061. `-mnomacsave'
  9062.      Mark the `MAC' register as call-clobbered, even if `-mhitachi' is
  9063.      given.
  9064.  
  9065. `-mieee'
  9066.      Increase IEEE-compliance of floating-point code.
  9067.  
  9068. `-misize'
  9069.      Dump instruction size and location in the assembly code.
  9070.  
  9071. `-mpadstruct'
  9072.      This option is deprecated.  It pads structures to multiple of 4
  9073.      bytes, which is incompatible with the SH ABI.
  9074.  
  9075. `-mspace'
  9076.      Optimize for space instead of speed.  Implied by `-Os'.
  9077.  
  9078. `-mprefergot'
  9079.      When generating position-independent code, emit function calls
  9080.      using the Global Offset Table instead of the Procedure Linkage
  9081.      Table.
  9082.  
  9083. `-musermode'
  9084.      Generate a library function call to invalidate instruction cache
  9085.      entries, after fixing up a trampoline.  This library function call
  9086.      doesn't assume it can write to the whole memory address space.
  9087.      This is the default when the target is `sh-*-linux*'.
  9088.  
  9089. 
  9090. File: gcc,  Node: System V Options,  Next: TMS320C3x/C4x Options,  Prev: SH Options,  Up: Submodel Options
  9091.  
  9092. 3.17.18 Options for System V
  9093. ----------------------------
  9094.  
  9095. These additional options are available on System V Release 4 for
  9096. compatibility with other compilers on those systems:
  9097.  
  9098. `-G'
  9099.      Create a shared object.  It is recommended that `-symbolic' or
  9100.      `-shared' be used instead.
  9101.  
  9102. `-Qy'
  9103.      Identify the versions of each tool used by the compiler, in a
  9104.      `.ident' assembler directive in the output.
  9105.  
  9106. `-Qn'
  9107.      Refrain from adding `.ident' directives to the output file (this is
  9108.      the default).
  9109.  
  9110. `-YP,DIRS'
  9111.      Search the directories DIRS, and no others, for libraries
  9112.      specified with `-l'.
  9113.  
  9114. `-Ym,DIR'
  9115.      Look in the directory DIR to find the M4 preprocessor.  The
  9116.      assembler uses this option.
  9117.  
  9118. 
  9119. File: gcc,  Node: TMS320C3x/C4x Options,  Next: V850 Options,  Prev: System V Options,  Up: Submodel Options
  9120.  
  9121. 3.17.19 TMS320C3x/C4x Options
  9122. -----------------------------
  9123.  
  9124. These `-m' options are defined for TMS320C3x/C4x implementations:
  9125.  
  9126. `-mcpu=CPU_TYPE'
  9127.      Set the instruction set, register set, and instruction scheduling
  9128.      parameters for machine type CPU_TYPE.  Supported values for
  9129.      CPU_TYPE are `c30', `c31', `c32', `c40', and `c44'.  The default
  9130.      is `c40' to generate code for the TMS320C40.
  9131.  
  9132. `-mbig-memory'
  9133. `-mbig'
  9134. `-msmall-memory'
  9135. `-msmall'
  9136.      Generates code for the big or small memory model.  The small memory
  9137.      model assumed that all data fits into one 64K word page.  At
  9138.      run-time the data page (DP) register must be set to point to the
  9139.      64K page containing the .bss and .data program sections.  The big
  9140.      memory model is the default and requires reloading of the DP
  9141.      register for every direct memory access.
  9142.  
  9143. `-mbk'
  9144. `-mno-bk'
  9145.      Allow (disallow) allocation of general integer operands into the
  9146.      block count register BK.
  9147.  
  9148. `-mdb'
  9149. `-mno-db'
  9150.      Enable (disable) generation of code using decrement and branch,
  9151.      DBcond(D), instructions.  This is enabled by default for the C4x.
  9152.      To be on the safe side, this is disabled for the C3x, since the
  9153.      maximum iteration count on the C3x is 2^23 + 1 (but who iterates
  9154.      loops more than 2^23 times on the C3x?).  Note that GCC will try
  9155.      to reverse a loop so that it can utilize the decrement and branch
  9156.      instruction, but will give up if there is more than one memory
  9157.      reference in the loop.  Thus a loop where the loop counter is
  9158.      decremented can generate slightly more efficient code, in cases
  9159.      where the RPTB instruction cannot be utilized.
  9160.  
  9161. `-mdp-isr-reload'
  9162. `-mparanoid'
  9163.      Force the DP register to be saved on entry to an interrupt service
  9164.      routine (ISR), reloaded to point to the data section, and restored
  9165.      on exit from the ISR.  This should not be required unless someone
  9166.      has violated the small memory model by modifying the DP register,
  9167.      say within an object library.
  9168.  
  9169. `-mmpyi'
  9170. `-mno-mpyi'
  9171.      For the C3x use the 24-bit MPYI instruction for integer multiplies
  9172.      instead of a library call to guarantee 32-bit results.  Note that
  9173.      if one of the operands is a constant, then the multiplication will
  9174.      be performed using shifts and adds.  If the `-mmpyi' option is not
  9175.      specified for the C3x, then squaring operations are performed
  9176.      inline instead of a library call.
  9177.  
  9178. `-mfast-fix'
  9179. `-mno-fast-fix'
  9180.      The C3x/C4x FIX instruction to convert a floating point value to an
  9181.      integer value chooses the nearest integer less than or equal to the
  9182.      floating point value rather than to the nearest integer.  Thus if
  9183.      the floating point number is negative, the result will be
  9184.      incorrectly truncated an additional code is necessary to detect
  9185.      and correct this case.  This option can be used to disable
  9186.      generation of the additional code required to correct the result.
  9187.  
  9188. `-mrptb'
  9189. `-mno-rptb'
  9190.      Enable (disable) generation of repeat block sequences using the
  9191.      RPTB instruction for zero overhead looping.  The RPTB construct is
  9192.      only used for innermost loops that do not call functions or jump
  9193.      across the loop boundaries.  There is no advantage having nested
  9194.      RPTB loops due to the overhead required to save and restore the
  9195.      RC, RS, and RE registers.  This is enabled by default with `-O2'.
  9196.  
  9197. `-mrpts=COUNT'
  9198. `-mno-rpts'
  9199.      Enable (disable) the use of the single instruction repeat
  9200.      instruction RPTS.  If a repeat block contains a single
  9201.      instruction, and the loop count can be guaranteed to be less than
  9202.      the value COUNT, GCC will emit a RPTS instruction instead of a
  9203.      RPTB.  If no value is specified, then a RPTS will be emitted even
  9204.      if the loop count cannot be determined at compile time.  Note that
  9205.      the repeated instruction following RPTS does not have to be
  9206.      reloaded from memory each iteration, thus freeing up the CPU buses
  9207.      for operands.  However, since interrupts are blocked by this
  9208.      instruction, it is disabled by default.
  9209.  
  9210. `-mloop-unsigned'
  9211. `-mno-loop-unsigned'
  9212.      The maximum iteration count when using RPTS and RPTB (and DB on
  9213.      the C40) is 2^31 + 1 since these instructions test if the
  9214.      iteration count is negative to terminate the loop.  If the
  9215.      iteration count is unsigned there is a possibility than the 2^31 +
  9216.      1 maximum iteration count may be exceeded.  This switch allows an
  9217.      unsigned iteration count.
  9218.  
  9219. `-mti'
  9220.      Try to emit an assembler syntax that the TI assembler (asm30) is
  9221.      happy with.  This also enforces compatibility with the API
  9222.      employed by the TI C3x C compiler.  For example, long doubles are
  9223.      passed as structures rather than in floating point registers.
  9224.  
  9225. `-mregparm'
  9226. `-mmemparm'
  9227.      Generate code that uses registers (stack) for passing arguments to
  9228.      functions.  By default, arguments are passed in registers where
  9229.      possible rather than by pushing arguments on to the stack.
  9230.  
  9231. `-mparallel-insns'
  9232. `-mno-parallel-insns'
  9233.      Allow the generation of parallel instructions.  This is enabled by
  9234.      default with `-O2'.
  9235.  
  9236. `-mparallel-mpy'
  9237. `-mno-parallel-mpy'
  9238.      Allow the generation of MPY||ADD and MPY||SUB parallel
  9239.      instructions, provided `-mparallel-insns' is also specified.
  9240.      These instructions have tight register constraints which can
  9241.      pessimize the code generation of large functions.
  9242.  
  9243.  
  9244. 
  9245. File: gcc,  Node: V850 Options,  Next: ARC Options,  Prev: TMS320C3x/C4x Options,  Up: Submodel Options
  9246.  
  9247. 3.17.20 V850 Options
  9248. --------------------
  9249.  
  9250. These `-m' options are defined for V850 implementations:
  9251.  
  9252. `-mlong-calls'
  9253. `-mno-long-calls'
  9254.      Treat all calls as being far away (near).  If calls are assumed to
  9255.      be far away, the compiler will always load the functions address
  9256.      up into a register, and call indirect through the pointer.
  9257.  
  9258. `-mno-ep'
  9259. `-mep'
  9260.      Do not optimize (do optimize) basic blocks that use the same index
  9261.      pointer 4 or more times to copy pointer into the `ep' register, and
  9262.      use the shorter `sld' and `sst' instructions.  The `-mep' option
  9263.      is on by default if you optimize.
  9264.  
  9265. `-mno-prolog-function'
  9266. `-mprolog-function'
  9267.      Do not use (do use) external functions to save and restore
  9268.      registers at the prologue and epilogue of a function.  The
  9269.      external functions are slower, but use less code space if more
  9270.      than one function saves the same number of registers.  The
  9271.      `-mprolog-function' option is on by default if you optimize.
  9272.  
  9273. `-mspace'
  9274.      Try to make the code as small as possible.  At present, this just
  9275.      turns on the `-mep' and `-mprolog-function' options.
  9276.  
  9277. `-mtda=N'
  9278.      Put static or global variables whose size is N bytes or less into
  9279.      the tiny data area that register `ep' points to.  The tiny data
  9280.      area can hold up to 256 bytes in total (128 bytes for byte
  9281.      references).
  9282.  
  9283. `-msda=N'
  9284.      Put static or global variables whose size is N bytes or less into
  9285.      the small data area that register `gp' points to.  The small data
  9286.      area can hold up to 64 kilobytes.
  9287.  
  9288. `-mzda=N'
  9289.      Put static or global variables whose size is N bytes or less into
  9290.      the first 32 kilobytes of memory.
  9291.  
  9292. `-mv850'
  9293.      Specify that the target processor is the V850.
  9294.  
  9295. `-mbig-switch'
  9296.      Generate code suitable for big switch tables.  Use this option
  9297.      only if the assembler/linker complain about out of range branches
  9298.      within a switch table.
  9299.  
  9300. `-mapp-regs'
  9301.      This option will cause r2 and r5 to be used in the code generated
  9302.      by the compiler.  This setting is the default.
  9303.  
  9304. `-mno-app-regs'
  9305.      This option will cause r2 and r5 to be treated as fixed registers.
  9306.  
  9307. `-mv850e1'
  9308.      Specify that the target processor is the V850E1.  The preprocessor
  9309.      constants `__v850e1__' and `__v850e__' will be defined if this
  9310.      option is used.
  9311.  
  9312. `-mv850e'
  9313.      Specify that the target processor is the V850E.  The preprocessor
  9314.      constant `__v850e__' will be defined if this option is used.
  9315.  
  9316.      If neither `-mv850' nor `-mv850e' nor `-mv850e1' are defined then
  9317.      a default target processor will be chosen and the relevant
  9318.      `__v850*__' preprocessor constant will be defined.
  9319.  
  9320.      The preprocessor constants `__v850' and `__v851__' are always
  9321.      defined, regardless of which processor variant is the target.
  9322.  
  9323. `-mdisable-callt'
  9324.      This option will suppress generation of the CALLT instruction for
  9325.      the v850e and v850e1 flavors of the v850 architecture.  The
  9326.      default is `-mno-disable-callt' which allows the CALLT instruction
  9327.      to be used.
  9328.  
  9329.  
  9330. 
  9331. File: gcc,  Node: ARC Options,  Next: NS32K Options,  Prev: V850 Options,  Up: Submodel Options
  9332.  
  9333. 3.17.21 ARC Options
  9334. -------------------
  9335.  
  9336. These options are defined for ARC implementations:
  9337.  
  9338. `-EL'
  9339.      Compile code for little endian mode.  This is the default.
  9340.  
  9341. `-EB'
  9342.      Compile code for big endian mode.
  9343.  
  9344. `-mmangle-cpu'
  9345.      Prepend the name of the cpu to all public symbol names.  In
  9346.      multiple-processor systems, there are many ARC variants with
  9347.      different instruction and register set characteristics.  This flag
  9348.      prevents code compiled for one cpu to be linked with code compiled
  9349.      for another.  No facility exists for handling variants that are
  9350.      "almost identical".  This is an all or nothing option.
  9351.  
  9352. `-mcpu=CPU'
  9353.      Compile code for ARC variant CPU.  Which variants are supported
  9354.      depend on the configuration.  All variants support `-mcpu=base',
  9355.      this is the default.
  9356.  
  9357. `-mtext=TEXT-SECTION'
  9358. `-mdata=DATA-SECTION'
  9359. `-mrodata=READONLY-DATA-SECTION'
  9360.      Put functions, data, and readonly data in TEXT-SECTION,
  9361.      DATA-SECTION, and READONLY-DATA-SECTION respectively by default.
  9362.      This can be overridden with the `section' attribute.  *Note
  9363.      Variable Attributes::.
  9364.  
  9365.  
  9366. 
  9367. File: gcc,  Node: NS32K Options,  Next: AVR Options,  Prev: ARC Options,  Up: Submodel Options
  9368.  
  9369. 3.17.22 NS32K Options
  9370. ---------------------
  9371.  
  9372. These are the `-m' options defined for the 32000 series.  The default
  9373. values for these options depends on which style of 32000 was selected
  9374. when the compiler was configured; the defaults for the most common
  9375. choices are given below.
  9376.  
  9377. `-m32032'
  9378. `-m32032'
  9379.      Generate output for a 32032.  This is the default when the
  9380.      compiler is configured for 32032 and 32016 based systems.
  9381.  
  9382. `-m32332'
  9383. `-m32332'
  9384.      Generate output for a 32332.  This is the default when the
  9385.      compiler is configured for 32332-based systems.
  9386.  
  9387. `-m32532'
  9388. `-m32532'
  9389.      Generate output for a 32532.  This is the default when the
  9390.      compiler is configured for 32532-based systems.
  9391.  
  9392. `-m32081'
  9393.      Generate output containing 32081 instructions for floating point.
  9394.      This is the default for all systems.
  9395.  
  9396. `-m32381'
  9397.      Generate output containing 32381 instructions for floating point.
  9398.      This also implies `-m32081'.  The 32381 is only compatible with
  9399.      the 32332 and 32532 cpus.  This is the default for the
  9400.      pc532-netbsd configuration.
  9401.  
  9402. `-mmulti-add'
  9403.      Try and generate multiply-add floating point instructions `polyF'
  9404.      and `dotF'.  This option is only available if the `-m32381' option
  9405.      is in effect.  Using these instructions requires changes to
  9406.      register allocation which generally has a negative impact on
  9407.      performance.  This option should only be enabled when compiling
  9408.      code particularly likely to make heavy use of multiply-add
  9409.      instructions.
  9410.  
  9411. `-mnomulti-add'
  9412.      Do not try and generate multiply-add floating point instructions
  9413.      `polyF' and `dotF'.  This is the default on all platforms.
  9414.  
  9415. `-msoft-float'
  9416.      Generate output containing library calls for floating point.
  9417.      *Warning:* the requisite libraries may not be available.
  9418.  
  9419. `-mieee-compare'
  9420. `-mno-ieee-compare'
  9421.      Control whether or not the compiler uses IEEE floating point
  9422.      comparisons.  These handle correctly the case where the result of a
  9423.      comparison is unordered.  *Warning:* the requisite kernel support
  9424.      may not be available.
  9425.  
  9426. `-mnobitfield'
  9427.      Do not use the bit-field instructions.  On some machines it is
  9428.      faster to use shifting and masking operations.  This is the
  9429.      default for the pc532.
  9430.  
  9431. `-mbitfield'
  9432.      Do use the bit-field instructions.  This is the default for all
  9433.      platforms except the pc532.
  9434.  
  9435. `-mrtd'
  9436.      Use a different function-calling convention, in which functions
  9437.      that take a fixed number of arguments return pop their arguments
  9438.      on return with the `ret' instruction.
  9439.  
  9440.      This calling convention is incompatible with the one normally used
  9441.      on Unix, so you cannot use it if you need to call libraries
  9442.      compiled with the Unix compiler.
  9443.  
  9444.      Also, you must provide function prototypes for all functions that
  9445.      take variable numbers of arguments (including `printf'); otherwise
  9446.      incorrect code will be generated for calls to those functions.
  9447.  
  9448.      In addition, seriously incorrect code will result if you call a
  9449.      function with too many arguments.  (Normally, extra arguments are
  9450.      harmlessly ignored.)
  9451.  
  9452.      This option takes its name from the 680x0 `rtd' instruction.
  9453.  
  9454. `-mregparam'
  9455.      Use a different function-calling convention where the first two
  9456.      arguments are passed in registers.
  9457.  
  9458.      This calling convention is incompatible with the one normally used
  9459.      on Unix, so you cannot use it if you need to call libraries
  9460.      compiled with the Unix compiler.
  9461.  
  9462. `-mnoregparam'
  9463.      Do not pass any arguments in registers.  This is the default for
  9464.      all targets.
  9465.  
  9466. `-msb'
  9467.      It is OK to use the sb as an index register which is always loaded
  9468.      with zero.  This is the default for the pc532-netbsd target.
  9469.  
  9470. `-mnosb'
  9471.      The sb register is not available for use or has not been
  9472.      initialized to zero by the run time system.  This is the default
  9473.      for all targets except the pc532-netbsd.  It is also implied
  9474.      whenever `-mhimem' or `-fpic' is set.
  9475.  
  9476. `-mhimem'
  9477.      Many ns32000 series addressing modes use displacements of up to
  9478.      512MB.  If an address is above 512MB then displacements from zero
  9479.      can not be used.  This option causes code to be generated which
  9480.      can be loaded above 512MB.  This may be useful for operating
  9481.      systems or ROM code.
  9482.  
  9483. `-mnohimem'
  9484.      Assume code will be loaded in the first 512MB of virtual address
  9485.      space.  This is the default for all platforms.
  9486.  
  9487.  
  9488. 
  9489. File: gcc,  Node: AVR Options,  Next: MCore Options,  Prev: NS32K Options,  Up: Submodel Options
  9490.  
  9491. 3.17.23 AVR Options
  9492. -------------------
  9493.  
  9494. These options are defined for AVR implementations:
  9495.  
  9496. `-mmcu=MCU'
  9497.      Specify ATMEL AVR instruction set or MCU type.
  9498.  
  9499.      Instruction set avr1 is for the minimal AVR core, not supported by
  9500.      the C compiler, only for assembler programs (MCU types: at90s1200,
  9501.      attiny10, attiny11, attiny12, attiny15, attiny28).
  9502.  
  9503.      Instruction set avr2 (default) is for the classic AVR core with up
  9504.      to 8K program memory space (MCU types: at90s2313, at90s2323,
  9505.      attiny22, at90s2333, at90s2343, at90s4414, at90s4433, at90s4434,
  9506.      at90s8515, at90c8534, at90s8535).
  9507.  
  9508.      Instruction set avr3 is for the classic AVR core with up to 128K
  9509.      program memory space (MCU types: atmega103, atmega603, at43usb320,
  9510.      at76c711).
  9511.  
  9512.      Instruction set avr4 is for the enhanced AVR core with up to 8K
  9513.      program memory space (MCU types: atmega8, atmega83, atmega85).
  9514.  
  9515.      Instruction set avr5 is for the enhanced AVR core with up to 128K
  9516.      program memory space (MCU types: atmega16, atmega161, atmega163,
  9517.      atmega32, atmega323, atmega64, atmega128, at43usb355, at94k).
  9518.  
  9519. `-msize'
  9520.      Output instruction sizes to the asm file.
  9521.  
  9522. `-minit-stack=N'
  9523.      Specify the initial stack address, which may be a symbol or
  9524.      numeric value, `__stack' is the default.
  9525.  
  9526. `-mno-interrupts'
  9527.      Generated code is not compatible with hardware interrupts.  Code
  9528.      size will be smaller.
  9529.  
  9530. `-mcall-prologues'
  9531.      Functions prologues/epilogues expanded as call to appropriate
  9532.      subroutines.  Code size will be smaller.
  9533.  
  9534. `-mno-tablejump'
  9535.      Do not generate tablejump insns which sometimes increase code size.
  9536.  
  9537. `-mtiny-stack'
  9538.      Change only the low 8 bits of the stack pointer.
  9539.  
  9540. 
  9541. File: gcc,  Node: MCore Options,  Next: IA-64 Options,  Prev: AVR Options,  Up: Submodel Options
  9542.  
  9543. 3.17.24 MCore Options
  9544. ---------------------
  9545.  
  9546. These are the `-m' options defined for the Motorola M*Core processors.
  9547.  
  9548. `-mhardlit'
  9549. `-mno-hardlit'
  9550.      Inline constants into the code stream if it can be done in two
  9551.      instructions or less.
  9552.  
  9553. `-mdiv'
  9554. `-mno-div'
  9555.      Use the divide instruction.  (Enabled by default).
  9556.  
  9557. `-mrelax-immediate'
  9558. `-mno-relax-immediate'
  9559.      Allow arbitrary sized immediates in bit operations.
  9560.  
  9561. `-mwide-bitfields'
  9562. `-mno-wide-bitfields'
  9563.      Always treat bit-fields as int-sized.
  9564.  
  9565. `-m4byte-functions'
  9566. `-mno-4byte-functions'
  9567.      Force all functions to be aligned to a four byte boundary.
  9568.  
  9569. `-mcallgraph-data'
  9570. `-mno-callgraph-data'
  9571.      Emit callgraph information.
  9572.  
  9573. `-mslow-bytes'
  9574. `-mno-slow-bytes'
  9575.      Prefer word access when reading byte quantities.
  9576.  
  9577. `-mlittle-endian'
  9578. `-mbig-endian'
  9579.      Generate code for a little endian target.
  9580.  
  9581. `-m210'
  9582. `-m340'
  9583.      Generate code for the 210 processor.
  9584.  
  9585. 
  9586. File: gcc,  Node: IA-64 Options,  Next: D30V Options,  Prev: MCore Options,  Up: Submodel Options
  9587.  
  9588. 3.17.25 IA-64 Options
  9589. ---------------------
  9590.  
  9591. These are the `-m' options defined for the Intel IA-64 architecture.
  9592.  
  9593. `-mbig-endian'
  9594.      Generate code for a big endian target.  This is the default for
  9595.      HP-UX.
  9596.  
  9597. `-mlittle-endian'
  9598.      Generate code for a little endian target.  This is the default for
  9599.      AIX5 and GNU/Linux.
  9600.  
  9601. `-mgnu-as'
  9602. `-mno-gnu-as'
  9603.      Generate (or don't) code for the GNU assembler.  This is the
  9604.      default.
  9605.  
  9606. `-mgnu-ld'
  9607. `-mno-gnu-ld'
  9608.      Generate (or don't) code for the GNU linker.  This is the default.
  9609.  
  9610. `-mno-pic'
  9611.      Generate code that does not use a global pointer register.  The
  9612.      result is not position independent code, and violates the IA-64
  9613.      ABI.
  9614.  
  9615. `-mvolatile-asm-stop'
  9616. `-mno-volatile-asm-stop'
  9617.      Generate (or don't) a stop bit immediately before and after
  9618.      volatile asm statements.
  9619.  
  9620. `-mb-step'
  9621.      Generate code that works around Itanium B step errata.
  9622.  
  9623. `-mregister-names'
  9624. `-mno-register-names'
  9625.      Generate (or don't) `in', `loc', and `out' register names for the
  9626.      stacked registers.  This may make assembler output more readable.
  9627.  
  9628. `-mno-sdata'
  9629. `-msdata'
  9630.      Disable (or enable) optimizations that use the small data section.
  9631.      This may be useful for working around optimizer bugs.
  9632.  
  9633. `-mconstant-gp'
  9634.      Generate code that uses a single constant global pointer value.
  9635.      This is useful when compiling kernel code.
  9636.  
  9637. `-mauto-pic'
  9638.      Generate code that is self-relocatable.  This implies
  9639.      `-mconstant-gp'.  This is useful when compiling firmware code.
  9640.  
  9641. `-minline-float-divide-min-latency'
  9642.      Generate code for inline divides of floating point values using
  9643.      the minimum latency algorithm.
  9644.  
  9645. `-minline-float-divide-max-throughput'
  9646.      Generate code for inline divides of floating point values using
  9647.      the maximum throughput algorithm.
  9648.  
  9649. `-minline-int-divide-min-latency'
  9650.      Generate code for inline divides of integer values using the
  9651.      minimum latency algorithm.
  9652.  
  9653. `-minline-int-divide-max-throughput'
  9654.      Generate code for inline divides of integer values using the
  9655.      maximum throughput algorithm.
  9656.  
  9657. `-mno-dwarf2-asm'
  9658. `-mdwarf2-asm'
  9659.      Don't (or do) generate assembler code for the DWARF2 line number
  9660.      debugging info.  This may be useful when not using the GNU
  9661.      assembler.
  9662.  
  9663. `-mfixed-range=REGISTER-RANGE'
  9664.      Generate code treating the given register range as fixed registers.
  9665.      A fixed register is one that the register allocator can not use.
  9666.      This is useful when compiling kernel code.  A register range is
  9667.      specified as two registers separated by a dash.  Multiple register
  9668.      ranges can be specified separated by a comma.
  9669.  
  9670. `-mearly-stop-bits'
  9671. `-mno-early-stop-bits'
  9672.      Allow stop bits to be placed earlier than immediately preceding the
  9673.      instruction that triggered the stop bit.  This can improve
  9674.      instruction scheduling, but does not always do so.
  9675.  
  9676. 
  9677. File: gcc,  Node: D30V Options,  Next: S/390 and zSeries Options,  Prev: IA-64 Options,  Up: Submodel Options
  9678.  
  9679. 3.17.26 D30V Options
  9680. --------------------
  9681.  
  9682. These `-m' options are defined for D30V implementations:
  9683.  
  9684. `-mextmem'
  9685.      Link the `.text', `.data', `.bss', `.strings', `.rodata',
  9686.      `.rodata1', `.data1' sections into external memory, which starts
  9687.      at location `0x80000000'.
  9688.  
  9689. `-mextmemory'
  9690.      Same as the `-mextmem' switch.
  9691.  
  9692. `-monchip'
  9693.      Link the `.text' section into onchip text memory, which starts at
  9694.      location `0x0'.  Also link `.data', `.bss', `.strings', `.rodata',
  9695.      `.rodata1', `.data1' sections into onchip data memory, which
  9696.      starts at location `0x20000000'.
  9697.  
  9698. `-mno-asm-optimize'
  9699. `-masm-optimize'
  9700.      Disable (enable) passing `-O' to the assembler when optimizing.
  9701.      The assembler uses the `-O' option to automatically parallelize
  9702.      adjacent short instructions where possible.
  9703.  
  9704. `-mbranch-cost=N'
  9705.      Increase the internal costs of branches to N.  Higher costs means
  9706.      that the compiler will issue more instructions to avoid doing a
  9707.      branch.  The default is 2.
  9708.  
  9709. `-mcond-exec=N'
  9710.      Specify the maximum number of conditionally executed instructions
  9711.      that replace a branch.  The default is 4.
  9712.  
  9713. 
  9714. File: gcc,  Node: S/390 and zSeries Options,  Next: CRIS Options,  Prev: D30V Options,  Up: Submodel Options
  9715.  
  9716. 3.17.27 S/390 and zSeries Options
  9717. ---------------------------------
  9718.  
  9719. These are the `-m' options defined for the S/390 and zSeries
  9720. architecture.
  9721.  
  9722. `-mhard-float'
  9723. `-msoft-float'
  9724.      Use (do not use) the hardware floating-point instructions and
  9725.      registers for floating-point operations.  When `-msoft-float' is
  9726.      specified, functions in `libgcc.a' will be used to perform
  9727.      floating-point operations.  When `-mhard-float' is specified, the
  9728.      compiler generates IEEE floating-point instructions.  This is the
  9729.      default.
  9730.  
  9731. `-mbackchain'
  9732. `-mno-backchain'
  9733.      Generate (or do not generate) code which maintains an explicit
  9734.      backchain within the stack frame that points to the caller's frame.
  9735.      This may be needed to allow debugging using tools that do not
  9736.      understand DWARF-2 call frame information.  The default is not to
  9737.      generate the backchain.
  9738.  
  9739. `-msmall-exec'
  9740. `-mno-small-exec'
  9741.      Generate (or do not generate) code using the `bras' instruction to
  9742.      do subroutine calls.  This only works reliably if the total
  9743.      executable size does not exceed 64k.  The default is to use the
  9744.      `basr' instruction instead, which does not have this limitation.
  9745.  
  9746. `-m64'
  9747. `-m31'
  9748.      When `-m31' is specified, generate code compliant to the GNU/Linux
  9749.      for S/390 ABI.  When `-m64' is specified, generate code compliant
  9750.      to the GNU/Linux for zSeries ABI.  This allows GCC in particular
  9751.      to generate 64-bit instructions.  For the `s390' targets, the
  9752.      default is `-m31', while the `s390x' targets default to `-m64'.
  9753.  
  9754. `-mzarch'
  9755. `-mesa'
  9756.      When `-mzarch' is specified, generate code using the instructions
  9757.      available on z/Architecture.  When `-mesa' is specified, generate
  9758.      code using the instructions available on ESA/390. Note that
  9759.      `-mesa' is not possible with `-m64'.  When generating code
  9760.      compliant to the GNU/Linux for S/390 ABI, the default is `-mesa'.
  9761.      When generating code compliant to the GNU/Linux for zSeries ABI,
  9762.      the default is `-mzarch'.
  9763.  
  9764. `-mmvcle'
  9765. `-mno-mvcle'
  9766.      Generate (or do not generate) code using the `mvcle' instruction
  9767.      to perform block moves.  When `-mno-mvcle' is specified, use a
  9768.      `mvc' loop instead.  This is the default.
  9769.  
  9770. `-mdebug'
  9771. `-mno-debug'
  9772.      Print (or do not print) additional debug information when
  9773.      compiling.  The default is to not print debug information.
  9774.  
  9775. `-march=CPU-TYPE'
  9776.      Generate code that will run on CPU-TYPE, which is the name of a
  9777.      system representing a certain processor type. Possible values for
  9778.      CPU-TYPE are `g5', `g6', `z900', and `z990'.  When generating code
  9779.      using the instructions available on z/Architecture, the default is
  9780.      `-march=z900'.  Otherwise, the default is `-march=g5'.
  9781.  
  9782. `-mtune=CPU-TYPE'
  9783.      Tune to CPU-TYPE everything applicable about the generated code,
  9784.      except for the ABI and the set of available instructions.  The
  9785.      list of CPU-TYPE values is the same as for `-march'.  The default
  9786.      is the value used for `-march'.
  9787.  
  9788. `-mfused-madd'
  9789. `-mno-fused-madd'
  9790.      Generate code that uses (does not use) the floating point multiply
  9791.      and accumulate instructions.  These instructions are generated by
  9792.      default if hardware floating point is used.
  9793.  
  9794. 
  9795. File: gcc,  Node: CRIS Options,  Next: MMIX Options,  Prev: S/390 and zSeries Options,  Up: Submodel Options
  9796.  
  9797. 3.17.28 CRIS Options
  9798. --------------------
  9799.  
  9800. These options are defined specifically for the CRIS ports.
  9801.  
  9802. `-march=ARCHITECTURE-TYPE'
  9803. `-mcpu=ARCHITECTURE-TYPE'
  9804.      Generate code for the specified architecture.  The choices for
  9805.      ARCHITECTURE-TYPE are `v3', `v8' and `v10' for respectively
  9806.      ETRAX 4, ETRAX 100, and ETRAX 100 LX.  Default is `v0' except for
  9807.      cris-axis-linux-gnu, where the default is `v10'.
  9808.  
  9809. `-mtune=ARCHITECTURE-TYPE'
  9810.      Tune to ARCHITECTURE-TYPE everything applicable about the generated
  9811.      code, except for the ABI and the set of available instructions.
  9812.      The choices for ARCHITECTURE-TYPE are the same as for
  9813.      `-march=ARCHITECTURE-TYPE'.
  9814.  
  9815. `-mmax-stack-frame=N'
  9816.      Warn when the stack frame of a function exceeds N bytes.
  9817.  
  9818. `-melinux-stacksize=N'
  9819.      Only available with the `cris-axis-aout' target.  Arranges for
  9820.      indications in the program to the kernel loader that the stack of
  9821.      the program should be set to N bytes.
  9822.  
  9823. `-metrax4'
  9824. `-metrax100'
  9825.      The options `-metrax4' and `-metrax100' are synonyms for
  9826.      `-march=v3' and `-march=v8' respectively.
  9827.  
  9828. `-mmul-bug-workaround'
  9829. `-mno-mul-bug-workaround'
  9830.      Work around a bug in the `muls' and `mulu' instructions for CPU
  9831.      models where it applies.  This option is active by default.
  9832.  
  9833. `-mpdebug'
  9834.      Enable CRIS-specific verbose debug-related information in the
  9835.      assembly code.  This option also has the effect to turn off the
  9836.      `#NO_APP' formatted-code indicator to the assembler at the
  9837.      beginning of the assembly file.
  9838.  
  9839. `-mcc-init'
  9840.      Do not use condition-code results from previous instruction;
  9841.      always emit compare and test instructions before use of condition
  9842.      codes.
  9843.  
  9844. `-mno-side-effects'
  9845.      Do not emit instructions with side-effects in addressing modes
  9846.      other than post-increment.
  9847.  
  9848. `-mstack-align'
  9849. `-mno-stack-align'
  9850. `-mdata-align'
  9851. `-mno-data-align'
  9852. `-mconst-align'
  9853. `-mno-const-align'
  9854.      These options (no-options) arranges (eliminate arrangements) for
  9855.      the stack-frame, individual data and constants to be aligned for
  9856.      the maximum single data access size for the chosen CPU model.  The
  9857.      default is to arrange for 32-bit alignment.  ABI details such as
  9858.      structure layout are not affected by these options.
  9859.  
  9860. `-m32-bit'
  9861. `-m16-bit'
  9862. `-m8-bit'
  9863.      Similar to the stack- data- and const-align options above, these
  9864.      options arrange for stack-frame, writable data and constants to
  9865.      all be 32-bit, 16-bit or 8-bit aligned.  The default is 32-bit
  9866.      alignment.
  9867.  
  9868. `-mno-prologue-epilogue'
  9869. `-mprologue-epilogue'
  9870.      With `-mno-prologue-epilogue', the normal function prologue and
  9871.      epilogue that sets up the stack-frame are omitted and no return
  9872.      instructions or return sequences are generated in the code.  Use
  9873.      this option only together with visual inspection of the compiled
  9874.      code: no warnings or errors are generated when call-saved
  9875.      registers must be saved, or storage for local variable needs to be
  9876.      allocated.
  9877.  
  9878. `-mno-gotplt'
  9879. `-mgotplt'
  9880.      With `-fpic' and `-fPIC', don't generate (do generate) instruction
  9881.      sequences that load addresses for functions from the PLT part of
  9882.      the GOT rather than (traditional on other architectures) calls to
  9883.      the PLT.  The default is `-mgotplt'.
  9884.  
  9885. `-maout'
  9886.      Legacy no-op option only recognized with the cris-axis-aout target.
  9887.  
  9888. `-melf'
  9889.      Legacy no-op option only recognized with the cris-axis-elf and
  9890.      cris-axis-linux-gnu targets.
  9891.  
  9892. `-melinux'
  9893.      Only recognized with the cris-axis-aout target, where it selects a
  9894.      GNU/linux-like multilib, include files and instruction set for
  9895.      `-march=v8'.
  9896.  
  9897. `-mlinux'
  9898.      Legacy no-op option only recognized with the cris-axis-linux-gnu
  9899.      target.
  9900.  
  9901. `-sim'
  9902.      This option, recognized for the cris-axis-aout and cris-axis-elf
  9903.      arranges to link with input-output functions from a simulator
  9904.      library.  Code, initialized data and zero-initialized data are
  9905.      allocated consecutively.
  9906.  
  9907. `-sim2'
  9908.      Like `-sim', but pass linker options to locate initialized data at
  9909.      0x40000000 and zero-initialized data at 0x80000000.
  9910.  
  9911. 
  9912. File: gcc,  Node: MMIX Options,  Next: PDP-11 Options,  Prev: CRIS Options,  Up: Submodel Options
  9913.  
  9914. 3.17.29 MMIX Options
  9915. --------------------
  9916.  
  9917. These options are defined for the MMIX:
  9918.  
  9919. `-mlibfuncs'
  9920. `-mno-libfuncs'
  9921.      Specify that intrinsic library functions are being compiled,
  9922.      passing all values in registers, no matter the size.
  9923.  
  9924. `-mepsilon'
  9925. `-mno-epsilon'
  9926.      Generate floating-point comparison instructions that compare with
  9927.      respect to the `rE' epsilon register.
  9928.  
  9929. `-mabi=mmixware'
  9930. `-mabi=gnu'
  9931.      Generate code that passes function parameters and return values
  9932.      that (in the called function) are seen as registers `$0' and up,
  9933.      as opposed to the GNU ABI which uses global registers `$231' and
  9934.      up.
  9935.  
  9936. `-mzero-extend'
  9937. `-mno-zero-extend'
  9938.      When reading data from memory in sizes shorter than 64 bits, use
  9939.      (do not use) zero-extending load instructions by default, rather
  9940.      than sign-extending ones.
  9941.  
  9942. `-mknuthdiv'
  9943. `-mno-knuthdiv'
  9944.      Make the result of a division yielding a remainder have the same
  9945.      sign as the divisor.  With the default, `-mno-knuthdiv', the sign
  9946.      of the remainder follows the sign of the dividend.  Both methods
  9947.      are arithmetically valid, the latter being almost exclusively used.
  9948.  
  9949. `-mtoplevel-symbols'
  9950. `-mno-toplevel-symbols'
  9951.      Prepend (do not prepend) a `:' to all global symbols, so the
  9952.      assembly code can be used with the `PREFIX' assembly directive.
  9953.  
  9954. `-melf'
  9955.      Generate an executable in the ELF format, rather than the default
  9956.      `mmo' format used by the `mmix' simulator.
  9957.  
  9958. `-mbranch-predict'
  9959. `-mno-branch-predict'
  9960.      Use (do not use) the probable-branch instructions, when static
  9961.      branch prediction indicates a probable branch.
  9962.  
  9963. `-mbase-addresses'
  9964. `-mno-base-addresses'
  9965.      Generate (do not generate) code that uses _base addresses_.  Using
  9966.      a base address automatically generates a request (handled by the
  9967.      assembler and the linker) for a constant to be set up in a global
  9968.      register.  The register is used for one or more base address
  9969.      requests within the range 0 to 255 from the value held in the
  9970.      register.  The generally leads to short and fast code, but the
  9971.      number of different data items that can be addressed is limited.
  9972.      This means that a program that uses lots of static data may
  9973.      require `-mno-base-addresses'.
  9974.  
  9975. `-msingle-exit'
  9976. `-mno-single-exit'
  9977.      Force (do not force) generated code to have a single exit point in
  9978.      each function.
  9979.  
  9980. 
  9981. File: gcc,  Node: PDP-11 Options,  Next: Xstormy16 Options,  Prev: MMIX Options,  Up: Submodel Options
  9982.  
  9983. 3.17.30 PDP-11 Options
  9984. ----------------------
  9985.  
  9986. These options are defined for the PDP-11:
  9987.  
  9988. `-mfpu'
  9989.      Use hardware FPP floating point.  This is the default.  (FIS
  9990.      floating point on the PDP-11/40 is not supported.)
  9991.  
  9992. `-msoft-float'
  9993.      Do not use hardware floating point.
  9994.  
  9995. `-mac0'
  9996.      Return floating-point results in ac0 (fr0 in Unix assembler
  9997.      syntax).
  9998.  
  9999. `-mno-ac0'
  10000.      Return floating-point results in memory.  This is the default.
  10001.  
  10002. `-m40'
  10003.      Generate code for a PDP-11/40.
  10004.  
  10005. `-m45'
  10006.      Generate code for a PDP-11/45.  This is the default.
  10007.  
  10008. `-m10'
  10009.      Generate code for a PDP-11/10.
  10010.  
  10011. `-mbcopy-builtin'
  10012.      Use inline `movstrhi' patterns for copying memory.  This is the
  10013.      default.
  10014.  
  10015. `-mbcopy'
  10016.      Do not use inline `movstrhi' patterns for copying memory.
  10017.  
  10018. `-mint16'
  10019. `-mno-int32'
  10020.      Use 16-bit `int'.  This is the default.
  10021.  
  10022. `-mint32'
  10023. `-mno-int16'
  10024.      Use 32-bit `int'.
  10025.  
  10026. `-mfloat64'
  10027. `-mno-float32'
  10028.      Use 64-bit `float'.  This is the default.
  10029.  
  10030. `-mfloat32'
  10031. `-mno-float64'
  10032.      Use 32-bit `float'.
  10033.  
  10034. `-mabshi'
  10035.      Use `abshi2' pattern.  This is the default.
  10036.  
  10037. `-mno-abshi'
  10038.      Do not use `abshi2' pattern.
  10039.  
  10040. `-mbranch-expensive'
  10041.      Pretend that branches are expensive.  This is for experimenting
  10042.      with code generation only.
  10043.  
  10044. `-mbranch-cheap'
  10045.      Do not pretend that branches are expensive.  This is the default.
  10046.  
  10047. `-msplit'
  10048.      Generate code for a system with split I&D.
  10049.  
  10050. `-mno-split'
  10051.      Generate code for a system without split I&D.  This is the default.
  10052.  
  10053. `-munix-asm'
  10054.      Use Unix assembler syntax.  This is the default when configured for
  10055.      `pdp11-*-bsd'.
  10056.  
  10057. `-mdec-asm'
  10058.      Use DEC assembler syntax.  This is the default when configured for
  10059.      any PDP-11 target other than `pdp11-*-bsd'.
  10060.  
  10061. 
  10062. File: gcc,  Node: Xstormy16 Options,  Next: Xtensa Options,  Prev: PDP-11 Options,  Up: Submodel Options
  10063.  
  10064. 3.17.31 Xstormy16 Options
  10065. -------------------------
  10066.  
  10067. These options are defined for Xstormy16:
  10068.  
  10069. `-msim'
  10070.      Choose startup files and linker script suitable for the simulator.
  10071.  
  10072. 
  10073. File: gcc,  Node: FRV Options,  Prev: Xtensa Options,  Up: Submodel Options
  10074.  
  10075. 3.17.32 FRV Options
  10076. -------------------
  10077.  
  10078. `-mgpr-32'
  10079.      Only use the first 32 general purpose registers.
  10080.  
  10081. `-mgpr-64'
  10082.      Use all 64 general purpose registers.
  10083.  
  10084. `-mfpr-32'
  10085.      Use only the first 32 floating point registers.
  10086.  
  10087. `-mfpr-64'
  10088.      Use all 64 floating point registers
  10089.  
  10090. `-mhard-float'
  10091.      Use hardware instructions for floating point operations.
  10092.  
  10093. `-msoft-float'
  10094.      Use library routines for floating point operations.
  10095.  
  10096. `-malloc-cc'
  10097.      Dynamically allocate condition code registers.
  10098.  
  10099. `-mfixed-cc'
  10100.      Do not try to dynamically allocate condition code registers, only
  10101.      use `icc0' and `fcc0'.
  10102.  
  10103. `-mdword'
  10104.      Change ABI to use double word insns.
  10105.  
  10106. `-mno-dword'
  10107.      Do not use double word instructions.
  10108.  
  10109. `-mdouble'
  10110.      Use floating point double instructions.
  10111.  
  10112. `-mno-double'
  10113.      Do not use floating point double instructions.
  10114.  
  10115. `-mmedia'
  10116.      Use media instructions.
  10117.  
  10118. `-mno-media'
  10119.      Do not use media instructions.
  10120.  
  10121. `-mmuladd'
  10122.      Use multiply and add/subtract instructions.
  10123.  
  10124. `-mno-muladd'
  10125.      Do not use multiply and add/subtract instructions.
  10126.  
  10127. `-mlibrary-pic'
  10128.      Enable PIC support for building libraries
  10129.  
  10130. `-macc-4'
  10131.      Use only the first four media accumulator registers.
  10132.  
  10133. `-macc-8'
  10134.      Use all eight media accumulator registers.
  10135.  
  10136. `-mpack'
  10137.      Pack VLIW instructions.
  10138.  
  10139. `-mno-pack'
  10140.      Do not pack VLIW instructions.
  10141.  
  10142. `-mno-eflags'
  10143.      Do not mark ABI switches in e_flags.
  10144.  
  10145. `-mcond-move'
  10146.      Enable the use of conditional-move instructions (default).
  10147.  
  10148.      This switch is mainly for debugging the compiler and will likely
  10149.      be removed in a future version.
  10150.  
  10151. `-mno-cond-move'
  10152.      Disable the use of conditional-move instructions.
  10153.  
  10154.      This switch is mainly for debugging the compiler and will likely
  10155.      be removed in a future version.
  10156.  
  10157. `-mscc'
  10158.      Enable the use of conditional set instructions (default).
  10159.  
  10160.      This switch is mainly for debugging the compiler and will likely
  10161.      be removed in a future version.
  10162.  
  10163. `-mno-scc'
  10164.      Disable the use of conditional set instructions.
  10165.  
  10166.      This switch is mainly for debugging the compiler and will likely
  10167.      be removed in a future version.
  10168.  
  10169. `-mcond-exec'
  10170.      Enable the use of conditional execution (default).
  10171.  
  10172.      This switch is mainly for debugging the compiler and will likely
  10173.      be removed in a future version.
  10174.  
  10175. `-mno-cond-exec'
  10176.      Disable the use of conditional execution.
  10177.  
  10178.      This switch is mainly for debugging the compiler and will likely
  10179.      be removed in a future version.
  10180.  
  10181. `-mvliw-branch'
  10182.      Run a pass to pack branches into VLIW instructions (default).
  10183.  
  10184.      This switch is mainly for debugging the compiler and will likely
  10185.      be removed in a future version.
  10186.  
  10187. `-mno-vliw-branch'
  10188.      Do not run a pass to pack branches into VLIW instructions.
  10189.  
  10190.      This switch is mainly for debugging the compiler and will likely
  10191.      be removed in a future version.
  10192.  
  10193. `-mmulti-cond-exec'
  10194.      Enable optimization of `&&' and `||' in conditional execution
  10195.      (default).
  10196.  
  10197.      This switch is mainly for debugging the compiler and will likely
  10198.      be removed in a future version.
  10199.  
  10200. `-mno-multi-cond-exec'
  10201.      Disable optimization of `&&' and `||' in conditional execution.
  10202.  
  10203.      This switch is mainly for debugging the compiler and will likely
  10204.      be removed in a future version.
  10205.  
  10206. `-mnested-cond-exec'
  10207.      Enable nested conditional execution optimizations (default).
  10208.  
  10209.      This switch is mainly for debugging the compiler and will likely
  10210.      be removed in a future version.
  10211.  
  10212. `-mno-nested-cond-exec'
  10213.      Disable nested conditional execution optimizations.
  10214.  
  10215.      This switch is mainly for debugging the compiler and will likely
  10216.      be removed in a future version.
  10217.  
  10218. `-mtomcat-stats'
  10219.      Cause gas to print out tomcat statistics.
  10220.  
  10221. `-mcpu=CPU'
  10222.      Select the processor type for which to generate code.  Possible
  10223.      values are `simple', `tomcat', `fr500', `fr400', `fr300', `frv'.
  10224.  
  10225.  
  10226. 
  10227. File: gcc,  Node: Xtensa Options,  Next: FRV Options,  Prev: Xstormy16 Options,  Up: Submodel Options
  10228.  
  10229. 3.17.33 Xtensa Options
  10230. ----------------------
  10231.  
  10232. These options are supported for Xtensa targets:
  10233.  
  10234. `-mconst16'
  10235. `-mno-const16'
  10236.      Enable or disable use of `CONST16' instructions for loading
  10237.      constant values.  The `CONST16' instruction is currently not a
  10238.      standard option from Tensilica.  When enabled, `CONST16'
  10239.      instructions are always used in place of the standard `L32R'
  10240.      instructions.  The use of `CONST16' is enabled by default only if
  10241.      the `L32R' instruction is not available.
  10242.  
  10243. `-mfused-madd'
  10244. `-mno-fused-madd'
  10245.      Enable or disable use of fused multiply/add and multiply/subtract
  10246.      instructions in the floating-point option.  This has no effect if
  10247.      the floating-point option is not also enabled.  Disabling fused
  10248.      multiply/add and multiply/subtract instructions forces the
  10249.      compiler to use separate instructions for the multiply and
  10250.      add/subtract operations.  This may be desirable in some cases
  10251.      where strict IEEE 754-compliant results are required: the fused
  10252.      multiply add/subtract instructions do not round the intermediate
  10253.      result, thereby producing results with _more_ bits of precision
  10254.      than specified by the IEEE standard.  Disabling fused multiply
  10255.      add/subtract instructions also ensures that the program output is
  10256.      not sensitive to the compiler's ability to combine multiply and
  10257.      add/subtract operations.
  10258.  
  10259. `-mtext-section-literals'
  10260. `-mno-text-section-literals'
  10261.      Control the treatment of literal pools.  The default is
  10262.      `-mno-text-section-literals', which places literals in a separate
  10263.      section in the output file.  This allows the literal pool to be
  10264.      placed in a data RAM/ROM, and it also allows the linker to combine
  10265.      literal pools from separate object files to remove redundant
  10266.      literals and improve code size.  With `-mtext-section-literals',
  10267.      the literals are interspersed in the text section in order to keep
  10268.      them as close as possible to their references.  This may be
  10269.      necessary for large assembly files.
  10270.  
  10271. `-mtarget-align'
  10272. `-mno-target-align'
  10273.      When this option is enabled, GCC instructs the assembler to
  10274.      automatically align instructions to reduce branch penalties at the
  10275.      expense of some code density.  The assembler attempts to widen
  10276.      density instructions to align branch targets and the instructions
  10277.      following call instructions.  If there are not enough preceding
  10278.      safe density instructions to align a target, no widening will be
  10279.      performed.  The default is `-mtarget-align'.  These options do not
  10280.      affect the treatment of auto-aligned instructions like `LOOP',
  10281.      which the assembler will always align, either by widening density
  10282.      instructions or by inserting no-op instructions.
  10283.  
  10284. `-mlongcalls'
  10285. `-mno-longcalls'
  10286.      When this option is enabled, GCC instructs the assembler to
  10287.      translate direct calls to indirect calls unless it can determine
  10288.      that the target of a direct call is in the range allowed by the
  10289.      call instruction.  This translation typically occurs for calls to
  10290.      functions in other source files.  Specifically, the assembler
  10291.      translates a direct `CALL' instruction into an `L32R' followed by
  10292.      a `CALLX' instruction.  The default is `-mno-longcalls'.  This
  10293.      option should be used in programs where the call target can
  10294.      potentially be out of range.  This option is implemented in the
  10295.      assembler, not the compiler, so the assembly code generated by GCC
  10296.      will still show direct call instructions--look at the disassembled
  10297.      object code to see the actual instructions.  Note that the
  10298.      assembler will use an indirect call for every cross-file call, not
  10299.      just those that really will be out of range.
  10300.  
  10301. 
  10302. File: gcc,  Node: Code Gen Options,  Next: Environment Variables,  Prev: Submodel Options,  Up: Invoking GCC
  10303.  
  10304. 3.18 Options for Code Generation Conventions
  10305. ============================================
  10306.  
  10307. These machine-independent options control the interface conventions
  10308. used in code generation.
  10309.  
  10310.  Most of them have both positive and negative forms; the negative form
  10311. of `-ffoo' would be `-fno-foo'.  In the table below, only one of the
  10312. forms is listed--the one which is not the default.  You can figure out
  10313. the other form by either removing `no-' or adding it.
  10314.  
  10315. `-fbounds-check'
  10316.      For front-ends that support it, generate additional code to check
  10317.      that indices used to access arrays are within the declared range.
  10318.      This is currently only supported by the Java and Fortran 77
  10319.      front-ends, where this option defaults to true and false
  10320.      respectively.
  10321.  
  10322. `-ftrapv'
  10323.      This option generates traps for signed overflow on addition,
  10324.      subtraction, multiplication operations.
  10325.  
  10326. `-fwrapv'
  10327.      This option instructs the compiler to assume that signed arithmetic
  10328.      overflow of addition, subtraction and multiplication wraps around
  10329.      using twos-complement representation.  This flag enables some
  10330.      optimizations and disables other.  This option is enabled by
  10331.      default for the Java front-end, as required by the Java language
  10332.      specification.
  10333.  
  10334. `-fexceptions'
  10335.      Enable exception handling.  Generates extra code needed to
  10336.      propagate exceptions.  For some targets, this implies GCC will
  10337.      generate frame unwind information for all functions, which can
  10338.      produce significant data size overhead, although it does not
  10339.      affect execution.  If you do not specify this option, GCC will
  10340.      enable it by default for languages like C++ which normally require
  10341.      exception handling, and disable it for languages like C that do
  10342.      not normally require it.  However, you may need to enable this
  10343.      option when compiling C code that needs to interoperate properly
  10344.      with exception handlers written in C++.  You may also wish to
  10345.      disable this option if you are compiling older C++ programs that
  10346.      don't use exception handling.
  10347.  
  10348. `-fnon-call-exceptions'
  10349.      Generate code that allows trapping instructions to throw
  10350.      exceptions.  Note that this requires platform-specific runtime
  10351.      support that does not exist everywhere.  Moreover, it only allows
  10352.      _trapping_ instructions to throw exceptions, i.e. memory
  10353.      references or floating point instructions.  It does not allow
  10354.      exceptions to be thrown from arbitrary signal handlers such as
  10355.      `SIGALRM'.
  10356.  
  10357. `-funwind-tables'
  10358.      Similar to `-fexceptions', except that it will just generate any
  10359.      needed static data, but will not affect the generated code in any
  10360.      other way.  You will normally not enable this option; instead, a
  10361.      language processor that needs this handling would enable it on
  10362.      your behalf.
  10363.  
  10364. `-fasynchronous-unwind-tables'
  10365.      Generate unwind table in dwarf2 format, if supported by target
  10366.      machine.  The table is exact at each instruction boundary, so it
  10367.      can be used for stack unwinding from asynchronous events (such as
  10368.      debugger or garbage collector).
  10369.  
  10370. `-fpcc-struct-return'
  10371.      Return "short" `struct' and `union' values in memory like longer
  10372.      ones, rather than in registers.  This convention is less
  10373.      efficient, but it has the advantage of allowing intercallability
  10374.      between GCC-compiled files and files compiled with other
  10375.      compilers, particularly the Portable C Compiler (pcc).
  10376.  
  10377.      The precise convention for returning structures in memory depends
  10378.      on the target configuration macros.
  10379.  
  10380.      Short structures and unions are those whose size and alignment
  10381.      match that of some integer type.
  10382.  
  10383.      *Warning:* code compiled with the `-fpcc-struct-return' switch is
  10384.      not binary compatible with code compiled with the
  10385.      `-freg-struct-return' switch.  Use it to conform to a non-default
  10386.      application binary interface.
  10387.  
  10388. `-freg-struct-return'
  10389.      Return `struct' and `union' values in registers when possible.
  10390.      This is more efficient for small structures than
  10391.      `-fpcc-struct-return'.
  10392.  
  10393.      If you specify neither `-fpcc-struct-return' nor
  10394.      `-freg-struct-return', GCC defaults to whichever convention is
  10395.      standard for the target.  If there is no standard convention, GCC
  10396.      defaults to `-fpcc-struct-return', except on targets where GCC is
  10397.      the principal compiler.  In those cases, we can choose the
  10398.      standard, and we chose the more efficient register return
  10399.      alternative.
  10400.  
  10401.      *Warning:* code compiled with the `-freg-struct-return' switch is
  10402.      not binary compatible with code compiled with the
  10403.      `-fpcc-struct-return' switch.  Use it to conform to a non-default
  10404.      application binary interface.
  10405.  
  10406. `-fshort-enums'
  10407.      Allocate to an `enum' type only as many bytes as it needs for the
  10408.      declared range of possible values.  Specifically, the `enum' type
  10409.      will be equivalent to the smallest integer type which has enough
  10410.      room.
  10411.  
  10412.      *Warning:* the `-fshort-enums' switch causes GCC to generate code
  10413.      that is not binary compatible with code generated without that
  10414.      switch.  Use it to conform to a non-default application binary
  10415.      interface.
  10416.  
  10417. `-fshort-double'
  10418.      Use the same size for `double' as for `float'.
  10419.  
  10420.      *Warning:* the `-fshort-double' switch causes GCC to generate code
  10421.      that is not binary compatible with code generated without that
  10422.      switch.  Use it to conform to a non-default application binary
  10423.      interface.
  10424.  
  10425. `-fshort-wchar'
  10426.      Override the underlying type for `wchar_t' to be `short unsigned
  10427.      int' instead of the default for the target.  This option is useful
  10428.      for building programs to run under WINE.
  10429.  
  10430.      *Warning:* the `-fshort-wchar' switch causes GCC to generate code
  10431.      that is not binary compatible with code generated without that
  10432.      switch.  Use it to conform to a non-default application binary
  10433.      interface.
  10434.  
  10435. `-fshared-data'
  10436.      Requests that the data and non-`const' variables of this
  10437.      compilation be shared data rather than private data.  The
  10438.      distinction makes sense only on certain operating systems, where
  10439.      shared data is shared between processes running the same program,
  10440.      while private data exists in one copy per process.
  10441.  
  10442. `-fno-common'
  10443.      In C, allocate even uninitialized global variables in the data
  10444.      section of the object file, rather than generating them as common
  10445.      blocks.  This has the effect that if the same variable is declared
  10446.      (without `extern') in two different compilations, you will get an
  10447.      error when you link them.  The only reason this might be useful is
  10448.      if you wish to verify that the program will work on other systems
  10449.      which always work this way.
  10450.  
  10451. `-fno-ident'
  10452.      Ignore the `#ident' directive.
  10453.  
  10454. `-finhibit-size-directive'
  10455.      Don't output a `.size' assembler directive, or anything else that
  10456.      would cause trouble if the function is split in the middle, and the
  10457.      two halves are placed at locations far apart in memory.  This
  10458.      option is used when compiling `crtstuff.c'; you should not need to
  10459.      use it for anything else.
  10460.  
  10461. `-fverbose-asm'
  10462.      Put extra commentary information in the generated assembly code to
  10463.      make it more readable.  This option is generally only of use to
  10464.      those who actually need to read the generated assembly code
  10465.      (perhaps while debugging the compiler itself).
  10466.  
  10467.      `-fno-verbose-asm', the default, causes the extra information to
  10468.      be omitted and is useful when comparing two assembler files.
  10469.  
  10470. `-fpic'
  10471.      Generate position-independent code (PIC) suitable for use in a
  10472.      shared library, if supported for the target machine.  Such code
  10473.      accesses all constant addresses through a global offset table
  10474.      (GOT).  The dynamic loader resolves the GOT entries when the
  10475.      program starts (the dynamic loader is not part of GCC; it is part
  10476.      of the operating system).  If the GOT size for the linked
  10477.      executable exceeds a machine-specific maximum size, you get an
  10478.      error message from the linker indicating that `-fpic' does not
  10479.      work; in that case, recompile with `-fPIC' instead.  (These
  10480.      maximums are 8k on the SPARC and 32k on the m68k and RS/6000.  The
  10481.      386 has no such limit.)
  10482.  
  10483.      Position-independent code requires special support, and therefore
  10484.      works only on certain machines.  For the 386, GCC supports PIC for
  10485.      System V but not for the Sun 386i.  Code generated for the IBM
  10486.      RS/6000 is always position-independent.
  10487.  
  10488. `-fPIC'
  10489.      If supported for the target machine, emit position-independent
  10490.      code, suitable for dynamic linking and avoiding any limit on the
  10491.      size of the global offset table.  This option makes a difference
  10492.      on the m68k and the SPARC.
  10493.  
  10494.      Position-independent code requires special support, and therefore
  10495.      works only on certain machines.
  10496.  
  10497. `-fpie'
  10498. `-fPIE'
  10499.      These options are similar to `-fpic' and `-fPIC', but generated
  10500.      position independent code can be only linked into executables.
  10501.      Usually these options are used when `-pie' GCC option will be used
  10502.      during linking.
  10503.  
  10504. `-ffixed-REG'
  10505.      Treat the register named REG as a fixed register; generated code
  10506.      should never refer to it (except perhaps as a stack pointer, frame
  10507.      pointer or in some other fixed role).
  10508.  
  10509.      REG must be the name of a register.  The register names accepted
  10510.      are machine-specific and are defined in the `REGISTER_NAMES' macro
  10511.      in the machine description macro file.
  10512.  
  10513.      This flag does not have a negative form, because it specifies a
  10514.      three-way choice.
  10515.  
  10516. `-fcall-used-REG'
  10517.      Treat the register named REG as an allocable register that is
  10518.      clobbered by function calls.  It may be allocated for temporaries
  10519.      or variables that do not live across a call.  Functions compiled
  10520.      this way will not save and restore the register REG.
  10521.  
  10522.      It is an error to used this flag with the frame pointer or stack
  10523.      pointer.  Use of this flag for other registers that have fixed
  10524.      pervasive roles in the machine's execution model will produce
  10525.      disastrous results.
  10526.  
  10527.      This flag does not have a negative form, because it specifies a
  10528.      three-way choice.
  10529.  
  10530. `-fcall-saved-REG'
  10531.      Treat the register named REG as an allocable register saved by
  10532.      functions.  It may be allocated even for temporaries or variables
  10533.      that live across a call.  Functions compiled this way will save
  10534.      and restore the register REG if they use it.
  10535.  
  10536.      It is an error to used this flag with the frame pointer or stack
  10537.      pointer.  Use of this flag for other registers that have fixed
  10538.      pervasive roles in the machine's execution model will produce
  10539.      disastrous results.
  10540.  
  10541.      A different sort of disaster will result from the use of this flag
  10542.      for a register in which function values may be returned.
  10543.  
  10544.      This flag does not have a negative form, because it specifies a
  10545.      three-way choice.
  10546.  
  10547. `-fpack-struct'
  10548.      Pack all structure members together without holes.
  10549.  
  10550.      *Warning:* the `-fpack-struct' switch causes GCC to generate code
  10551.      that is not binary compatible with code generated without that
  10552.      switch.  Additionally, it makes the code suboptimal.  Use it to
  10553.      conform to a non-default application binary interface.
  10554.  
  10555. `-finstrument-functions'
  10556.      Generate instrumentation calls for entry and exit to functions.
  10557.      Just after function entry and just before function exit, the
  10558.      following profiling functions will be called with the address of
  10559.      the current function and its call site.  (On some platforms,
  10560.      `__builtin_return_address' does not work beyond the current
  10561.      function, so the call site information may not be available to the
  10562.      profiling functions otherwise.)
  10563.  
  10564.           void __cyg_profile_func_enter (void *this_fn,
  10565.                                          void *call_site);
  10566.           void __cyg_profile_func_exit  (void *this_fn,
  10567.                                          void *call_site);
  10568.  
  10569.      The first argument is the address of the start of the current
  10570.      function, which may be looked up exactly in the symbol table.
  10571.  
  10572.      This currently disables function inlining.  This restriction is
  10573.      expected to be removed in future releases.
  10574.  
  10575.      A function may be given the attribute `no_instrument_function', in
  10576.      which case this instrumentation will not be done.  This can be
  10577.      used, for example, for the profiling functions listed above,
  10578.      high-priority interrupt routines, and any functions from which the
  10579.      profiling functions cannot safely be called (perhaps signal
  10580.      handlers, if the profiling routines generate output or allocate
  10581.      memory).
  10582.  
  10583. `-fstack-check'
  10584.      Generate code to verify that you do not go beyond the boundary of
  10585.      the stack.  You should specify this flag if you are running in an
  10586.      environment with multiple threads, but only rarely need to specify
  10587.      it in a single-threaded environment since stack overflow is
  10588.      automatically detected on nearly all systems if there is only one
  10589.      stack.
  10590.  
  10591.      Note that this switch does not actually cause checking to be done;
  10592.      the operating system must do that.  The switch causes generation
  10593.      of code to ensure that the operating system sees the stack being
  10594.      extended.
  10595.  
  10596. `-fstack-limit-register=REG'
  10597. `-fstack-limit-symbol=SYM'
  10598. `-fno-stack-limit'
  10599.      Generate code to ensure that the stack does not grow beyond a
  10600.      certain value, either the value of a register or the address of a
  10601.      symbol.  If the stack would grow beyond the value, a signal is
  10602.      raised.  For most targets, the signal is raised before the stack
  10603.      overruns the boundary, so it is possible to catch the signal
  10604.      without taking special precautions.
  10605.  
  10606.      For instance, if the stack starts at absolute address `0x80000000'
  10607.      and grows downwards, you can use the flags
  10608.      `-fstack-limit-symbol=__stack_limit' and
  10609.      `-Wl,--defsym,__stack_limit=0x7ffe0000' to enforce a stack limit
  10610.      of 128KB.  Note that this may only work with the GNU linker.
  10611.  
  10612. `-fargument-alias'
  10613. `-fargument-noalias'
  10614. `-fargument-noalias-global'
  10615.      Specify the possible relationships among parameters and between
  10616.      parameters and global data.
  10617.  
  10618.      `-fargument-alias' specifies that arguments (parameters) may alias
  10619.      each other and may alias global storage.
  10620.      `-fargument-noalias' specifies that arguments do not alias each
  10621.      other, but may alias global storage.
  10622.      `-fargument-noalias-global' specifies that arguments do not alias
  10623.      each other and do not alias global storage.
  10624.  
  10625.      Each language will automatically use whatever option is required by
  10626.      the language standard.  You should not need to use these options
  10627.      yourself.
  10628.  
  10629. `-fleading-underscore'
  10630.      This option and its counterpart, `-fno-leading-underscore',
  10631.      forcibly change the way C symbols are represented in the object
  10632.      file.  One use is to help link with legacy assembly code.
  10633.  
  10634.      *Warning:* the `-fleading-underscore' switch causes GCC to
  10635.      generate code that is not binary compatible with code generated
  10636.      without that switch.  Use it to conform to a non-default
  10637.      application binary interface.  Not all targets provide complete
  10638.      support for this switch.
  10639.  
  10640. `-ftls-model=MODEL'
  10641.      Alter the thread-local storage model to be used (*note
  10642.      Thread-Local::).  The MODEL argument should be one of
  10643.      `global-dynamic', `local-dynamic', `initial-exec' or `local-exec'.
  10644.  
  10645.      The default without `-fpic' is `initial-exec'; with `-fpic' the
  10646.      default is `global-dynamic'.
  10647.  
  10648. 
  10649. File: gcc,  Node: Environment Variables,  Next: Precompiled Headers,  Prev: Code Gen Options,  Up: Invoking GCC
  10650.  
  10651. 3.19 Environment Variables Affecting GCC
  10652. ========================================
  10653.  
  10654. This section describes several environment variables that affect how GCC
  10655. operates.  Some of them work by specifying directories or prefixes to
  10656. use when searching for various kinds of files.  Some are used to
  10657. specify other aspects of the compilation environment.
  10658.  
  10659.  Note that you can also specify places to search using options such as
  10660. `-B', `-I' and `-L' (*note Directory Options::).  These take precedence
  10661. over places specified using environment variables, which in turn take
  10662. precedence over those specified by the configuration of GCC.  *Note
  10663. Controlling the Compilation Driver `gcc': (gccint)Driver.
  10664.  
  10665. `LANG'
  10666. `LC_CTYPE'
  10667. `LC_MESSAGES'
  10668. `LC_ALL'
  10669.      These environment variables control the way that GCC uses
  10670.      localization information that allow GCC to work with different
  10671.      national conventions.  GCC inspects the locale categories
  10672.      `LC_CTYPE' and `LC_MESSAGES' if it has been configured to do so.
  10673.      These locale categories can be set to any value supported by your
  10674.      installation.  A typical value is `en_UK' for English in the United
  10675.      Kingdom.
  10676.  
  10677.      The `LC_CTYPE' environment variable specifies character
  10678.      classification.  GCC uses it to determine the character boundaries
  10679.      in a string; this is needed for some multibyte encodings that
  10680.      contain quote and escape characters that would otherwise be
  10681.      interpreted as a string end or escape.
  10682.  
  10683.      The `LC_MESSAGES' environment variable specifies the language to
  10684.      use in diagnostic messages.
  10685.  
  10686.      If the `LC_ALL' environment variable is set, it overrides the value
  10687.      of `LC_CTYPE' and `LC_MESSAGES'; otherwise, `LC_CTYPE' and
  10688.      `LC_MESSAGES' default to the value of the `LANG' environment
  10689.      variable.  If none of these variables are set, GCC defaults to
  10690.      traditional C English behavior.
  10691.  
  10692. `TMPDIR'
  10693.      If `TMPDIR' is set, it specifies the directory to use for temporary
  10694.      files.  GCC uses temporary files to hold the output of one stage of
  10695.      compilation which is to be used as input to the next stage: for
  10696.      example, the output of the preprocessor, which is the input to the
  10697.      compiler proper.
  10698.  
  10699. `GCC_EXEC_PREFIX'
  10700.      If `GCC_EXEC_PREFIX' is set, it specifies a prefix to use in the
  10701.      names of the subprograms executed by the compiler.  No slash is
  10702.      added when this prefix is combined with the name of a subprogram,
  10703.      but you can specify a prefix that ends with a slash if you wish.
  10704.  
  10705.      If `GCC_EXEC_PREFIX' is not set, GCC will attempt to figure out an
  10706.      appropriate prefix to use based on the pathname it was invoked
  10707.      with.
  10708.  
  10709.      If GCC cannot find the subprogram using the specified prefix, it
  10710.      tries looking in the usual places for the subprogram.
  10711.  
  10712.      The default value of `GCC_EXEC_PREFIX' is `PREFIX/lib/gcc/' where
  10713.      PREFIX is the value of `prefix' when you ran the `configure'
  10714.      script.
  10715.  
  10716.      Other prefixes specified with `-B' take precedence over this
  10717.      prefix.
  10718.  
  10719.      This prefix is also used for finding files such as `crt0.o' that
  10720.      are used for linking.
  10721.  
  10722.      In addition, the prefix is used in an unusual way in finding the
  10723.      directories to search for header files.  For each of the standard
  10724.      directories whose name normally begins with `/usr/local/lib/gcc'
  10725.      (more precisely, with the value of `GCC_INCLUDE_DIR'), GCC tries
  10726.      replacing that beginning with the specified prefix to produce an
  10727.      alternate directory name.  Thus, with `-Bfoo/', GCC will search
  10728.      `foo/bar' where it would normally search `/usr/local/lib/bar'.
  10729.      These alternate directories are searched first; the standard
  10730.      directories come next.
  10731.  
  10732. `COMPILER_PATH'
  10733.      The value of `COMPILER_PATH' is a colon-separated list of
  10734.      directories, much like `PATH'.  GCC tries the directories thus
  10735.      specified when searching for subprograms, if it can't find the
  10736.      subprograms using `GCC_EXEC_PREFIX'.
  10737.  
  10738. `LIBRARY_PATH'
  10739.      The value of `LIBRARY_PATH' is a colon-separated list of
  10740.      directories, much like `PATH'.  When configured as a native
  10741.      compiler, GCC tries the directories thus specified when searching
  10742.      for special linker files, if it can't find them using
  10743.      `GCC_EXEC_PREFIX'.  Linking using GCC also uses these directories
  10744.      when searching for ordinary libraries for the `-l' option (but
  10745.      directories specified with `-L' come first).
  10746.  
  10747. `LANG'
  10748.      This variable is used to pass locale information to the compiler.
  10749.      One way in which this information is used is to determine the
  10750.      character set to be used when character literals, string literals
  10751.      and comments are parsed in C and C++.  When the compiler is
  10752.      configured to allow multibyte characters, the following values for
  10753.      `LANG' are recognized:
  10754.  
  10755.     `C-JIS'
  10756.           Recognize JIS characters.
  10757.  
  10758.     `C-SJIS'
  10759.           Recognize SJIS characters.
  10760.  
  10761.     `C-EUCJP'
  10762.           Recognize EUCJP characters.
  10763.  
  10764.      If `LANG' is not defined, or if it has some other value, then the
  10765.      compiler will use mblen and mbtowc as defined by the default
  10766.      locale to recognize and translate multibyte characters.
  10767.  
  10768. Some additional environments variables affect the behavior of the
  10769. preprocessor.
  10770.  
  10771. `CPATH'
  10772. `C_INCLUDE_PATH'
  10773. `CPLUS_INCLUDE_PATH'
  10774. `OBJC_INCLUDE_PATH'
  10775.      Each variable's value is a list of directories separated by a
  10776.      special character, much like `PATH', in which to look for header
  10777.      files.  The special character, `PATH_SEPARATOR', is
  10778.      target-dependent and determined at GCC build time.  For Microsoft
  10779.      Windows-based targets it is a semicolon, and for almost all other
  10780.      targets it is a colon.
  10781.  
  10782.      `CPATH' specifies a list of directories to be searched as if
  10783.      specified with `-I', but after any paths given with `-I' options
  10784.      on the command line.  This environment variable is used regardless
  10785.      of which language is being preprocessed.
  10786.  
  10787.      The remaining environment variables apply only when preprocessing
  10788.      the particular language indicated.  Each specifies a list of
  10789.      directories to be searched as if specified with `-isystem', but
  10790.      after any paths given with `-isystem' options on the command line.
  10791.  
  10792.      In all these variables, an empty element instructs the compiler to
  10793.      search its current working directory.  Empty elements can appear
  10794.      at the beginning or end of a path.  For instance, if the value of
  10795.      `CPATH' is `:/special/include', that has the same effect as
  10796.      `-I. -I/special/include'.
  10797.  
  10798. `DEPENDENCIES_OUTPUT'
  10799.      If this variable is set, its value specifies how to output
  10800.      dependencies for Make based on the non-system header files
  10801.      processed by the compiler.  System header files are ignored in the
  10802.      dependency output.
  10803.  
  10804.      The value of `DEPENDENCIES_OUTPUT' can be just a file name, in
  10805.      which case the Make rules are written to that file, guessing the
  10806.      target name from the source file name.  Or the value can have the
  10807.      form `FILE TARGET', in which case the rules are written to file
  10808.      FILE using TARGET as the target name.
  10809.  
  10810.      In other words, this environment variable is equivalent to
  10811.      combining the options `-MM' and `-MF' (*note Preprocessor
  10812.      Options::), with an optional `-MT' switch too.
  10813.  
  10814. `SUNPRO_DEPENDENCIES'
  10815.      This variable is the same as `DEPENDENCIES_OUTPUT' (see above),
  10816.      except that system header files are not ignored, so it implies
  10817.      `-M' rather than `-MM'.  However, the dependence on the main input
  10818.      file is omitted.  *Note Preprocessor Options::.
  10819.  
  10820. 
  10821. File: gcc,  Node: Precompiled Headers,  Next: Running Protoize,  Prev: Environment Variables,  Up: Invoking GCC
  10822.  
  10823. 3.20 Using Precompiled Headers
  10824. ==============================
  10825.  
  10826. Often large projects have many header files that are included in every
  10827. source file.  The time the compiler takes to process these header files
  10828. over and over again can account for nearly all of the time required to
  10829. build the project.  To make builds faster, GCC allows users to
  10830. `precompile' a header file; then, if builds can use the precompiled
  10831. header file they will be much faster.
  10832.  
  10833.  *Caution:* There are a few known situations where GCC will crash when
  10834. trying to use a precompiled header.  If you have trouble with a
  10835. precompiled header, you should remove the precompiled header and
  10836. compile without it.  In addition, please use GCC's on-line
  10837. defect-tracking system to report any problems you encounter with
  10838. precompiled headers.  *Note Bugs::.
  10839.  
  10840.  To create a precompiled header file, simply compile it as you would any
  10841. other file, if necessary using the `-x' option to make the driver treat
  10842. it as a C or C++ header file.  You will probably want to use a tool
  10843. like `make' to keep the precompiled header up-to-date when the headers
  10844. it contains change.
  10845.  
  10846.  A precompiled header file will be searched for when `#include' is seen
  10847. in the compilation.  As it searches for the included file (*note Search
  10848. Path: (cpp)Search Path.) the compiler looks for a precompiled header in
  10849. each directory just before it looks for the include file in that
  10850. directory.  The name searched for is the name specified in the
  10851. `#include' with `.gch' appended.  If the precompiled header file can't
  10852. be used, it is ignored.
  10853.  
  10854.  For instance, if you have `#include "all.h"', and you have `all.h.gch'
  10855. in the same directory as `all.h', then the precompiled header file will
  10856. be used if possible, and the original header will be used otherwise.
  10857.  
  10858.  Alternatively, you might decide to put the precompiled header file in a
  10859. directory and use `-I' to ensure that directory is searched before (or
  10860. instead of) the directory containing the original header.  Then, if you
  10861. want to check that the precompiled header file is always used, you can
  10862. put a file of the same name as the original header in this directory
  10863. containing an `#error' command.
  10864.  
  10865.  This also works with `-include'.  So yet another way to use
  10866. precompiled headers, good for projects not designed with precompiled
  10867. header files in mind, is to simply take most of the header files used by
  10868. a project, include them from another header file, precompile that header
  10869. file, and `-include' the precompiled header.  If the header files have
  10870. guards against multiple inclusion, they will be skipped because they've
  10871. already been included (in the precompiled header).
  10872.  
  10873.  If you need to precompile the same header file for different
  10874. languages, targets, or compiler options, you can instead make a
  10875. _directory_ named like `all.h.gch', and put each precompiled header in
  10876. the directory.  (It doesn't matter what you call the files in the
  10877. directory, every precompiled header in the directory will be
  10878. considered.)  The first precompiled header encountered in the directory
  10879. that is valid for this compilation will be used; they're searched in no
  10880. particular order.
  10881.  
  10882.  There are many other possibilities, limited only by your imagination,
  10883. good sense, and the constraints of your build system.
  10884.  
  10885.  A precompiled header file can be used only when these conditions apply:
  10886.  
  10887.    * Only one precompiled header can be used in a particular
  10888.      compilation.
  10889.  
  10890.    * A precompiled header can't be used once the first C token is seen.
  10891.      You can have preprocessor directives before a precompiled header;
  10892.      you can even include a precompiled header from inside another
  10893.      header, so long as there are no C tokens before the `#include'.
  10894.  
  10895.    * The precompiled header file must be produced for the same language
  10896.      as the current compilation.  You can't use a C precompiled header
  10897.      for a C++ compilation.
  10898.  
  10899.    * The precompiled header file must be produced by the same compiler
  10900.      version and configuration as the current compilation is using.
  10901.      The easiest way to guarantee this is to use the same compiler
  10902.      binary for creating and using precompiled headers.
  10903.  
  10904.    * Any macros defined before the precompiled header (including with
  10905.      `-D') must either be defined in the same way as when the
  10906.      precompiled header was generated, or must not affect the
  10907.      precompiled header, which usually means that the they don't appear
  10908.      in the precompiled header at all.
  10909.  
  10910.    * Certain command-line options must be defined in the same way as
  10911.      when the precompiled header was generated.  At present, it's not
  10912.      clear which options are safe to change and which are not; the
  10913.      safest choice is to use exactly the same options when generating
  10914.      and using the precompiled header.
  10915.  
  10916.  For all of these but the last, the compiler will automatically ignore
  10917. the precompiled header if the conditions aren't met.  For the last item,
  10918. some option changes will cause the precompiled header to be rejected,
  10919. but not all incompatible option combinations have yet been found.  If
  10920. you find a new incompatible combination, please consider filing a bug
  10921. report, see *Note Bugs::.
  10922.  
  10923. 
  10924. File: gcc,  Node: Running Protoize,  Prev: Precompiled Headers,  Up: Invoking GCC
  10925.  
  10926. 3.21 Running Protoize
  10927. =====================
  10928.  
  10929. The program `protoize' is an optional part of GCC.  You can use it to
  10930. add prototypes to a program, thus converting the program to ISO C in
  10931. one respect.  The companion program `unprotoize' does the reverse: it
  10932. removes argument types from any prototypes that are found.
  10933.  
  10934.  When you run these programs, you must specify a set of source files as
  10935. command line arguments.  The conversion programs start out by compiling
  10936. these files to see what functions they define.  The information gathered
  10937. about a file FOO is saved in a file named `FOO.X'.
  10938.  
  10939.  After scanning comes actual conversion.  The specified files are all
  10940. eligible to be converted; any files they include (whether sources or
  10941. just headers) are eligible as well.
  10942.  
  10943.  But not all the eligible files are converted.  By default, `protoize'
  10944. and `unprotoize' convert only source and header files in the current
  10945. directory.  You can specify additional directories whose files should
  10946. be converted with the `-d DIRECTORY' option.  You can also specify
  10947. particular files to exclude with the `-x FILE' option.  A file is
  10948. converted if it is eligible, its directory name matches one of the
  10949. specified directory names, and its name within the directory has not
  10950. been excluded.
  10951.  
  10952.  Basic conversion with `protoize' consists of rewriting most function
  10953. definitions and function declarations to specify the types of the
  10954. arguments.  The only ones not rewritten are those for varargs functions.
  10955.  
  10956.  `protoize' optionally inserts prototype declarations at the beginning
  10957. of the source file, to make them available for any calls that precede
  10958. the function's definition.  Or it can insert prototype declarations
  10959. with block scope in the blocks where undeclared functions are called.
  10960.  
  10961.  Basic conversion with `unprotoize' consists of rewriting most function
  10962. declarations to remove any argument types, and rewriting function
  10963. definitions to the old-style pre-ISO form.
  10964.  
  10965.  Both conversion programs print a warning for any function declaration
  10966. or definition that they can't convert.  You can suppress these warnings
  10967. with `-q'.
  10968.  
  10969.  The output from `protoize' or `unprotoize' replaces the original
  10970. source file.  The original file is renamed to a name ending with
  10971. `.save' (for DOS, the saved filename ends in `.sav' without the
  10972. original `.c' suffix).  If the `.save' (`.sav' for DOS) file already
  10973. exists, then the source file is simply discarded.
  10974.  
  10975.  `protoize' and `unprotoize' both depend on GCC itself to scan the
  10976. program and collect information about the functions it uses.  So
  10977. neither of these programs will work until GCC is installed.
  10978.  
  10979.  Here is a table of the options you can use with `protoize' and
  10980. `unprotoize'.  Each option works with both programs unless otherwise
  10981. stated.
  10982.  
  10983. `-B DIRECTORY'
  10984.      Look for the file `SYSCALLS.c.X' in DIRECTORY, instead of the
  10985.      usual directory (normally `/usr/local/lib').  This file contains
  10986.      prototype information about standard system functions.  This option
  10987.      applies only to `protoize'.
  10988.  
  10989. `-c COMPILATION-OPTIONS'
  10990.      Use COMPILATION-OPTIONS as the options when running `gcc' to
  10991.      produce the `.X' files.  The special option `-aux-info' is always
  10992.      passed in addition, to tell `gcc' to write a `.X' file.
  10993.  
  10994.      Note that the compilation options must be given as a single
  10995.      argument to `protoize' or `unprotoize'.  If you want to specify
  10996.      several `gcc' options, you must quote the entire set of
  10997.      compilation options to make them a single word in the shell.
  10998.  
  10999.      There are certain `gcc' arguments that you cannot use, because they
  11000.      would produce the wrong kind of output.  These include `-g', `-O',
  11001.      `-c', `-S', and `-o' If you include these in the
  11002.      COMPILATION-OPTIONS, they are ignored.
  11003.  
  11004. `-C'
  11005.      Rename files to end in `.C' (`.cc' for DOS-based file systems)
  11006.      instead of `.c'.  This is convenient if you are converting a C
  11007.      program to C++.  This option applies only to `protoize'.
  11008.  
  11009. `-g'
  11010.      Add explicit global declarations.  This means inserting explicit
  11011.      declarations at the beginning of each source file for each function
  11012.      that is called in the file and was not declared.  These
  11013.      declarations precede the first function definition that contains a
  11014.      call to an undeclared function.  This option applies only to
  11015.      `protoize'.
  11016.  
  11017. `-i STRING'
  11018.      Indent old-style parameter declarations with the string STRING.
  11019.      This option applies only to `protoize'.
  11020.  
  11021.      `unprotoize' converts prototyped function definitions to old-style
  11022.      function definitions, where the arguments are declared between the
  11023.      argument list and the initial `{'.  By default, `unprotoize' uses
  11024.      five spaces as the indentation.  If you want to indent with just
  11025.      one space instead, use `-i " "'.
  11026.  
  11027. `-k'
  11028.      Keep the `.X' files.  Normally, they are deleted after conversion
  11029.      is finished.
  11030.  
  11031. `-l'
  11032.      Add explicit local declarations.  `protoize' with `-l' inserts a
  11033.      prototype declaration for each function in each block which calls
  11034.      the function without any declaration.  This option applies only to
  11035.      `protoize'.
  11036.  
  11037. `-n'
  11038.      Make no real changes.  This mode just prints information about the
  11039.      conversions that would have been done without `-n'.
  11040.  
  11041. `-N'
  11042.      Make no `.save' files.  The original files are simply deleted.
  11043.      Use this option with caution.
  11044.  
  11045. `-p PROGRAM'
  11046.      Use the program PROGRAM as the compiler.  Normally, the name `gcc'
  11047.      is used.
  11048.  
  11049. `-q'
  11050.      Work quietly.  Most warnings are suppressed.
  11051.  
  11052. `-v'
  11053.      Print the version number, just like `-v' for `gcc'.
  11054.  
  11055.  If you need special compiler options to compile one of your program's
  11056. source files, then you should generate that file's `.X' file specially,
  11057. by running `gcc' on that source file with the appropriate options and
  11058. the option `-aux-info'.  Then run `protoize' on the entire set of
  11059. files.  `protoize' will use the existing `.X' file because it is newer
  11060. than the source file.  For example:
  11061.  
  11062.      gcc -Dfoo=bar file1.c -aux-info file1.X
  11063.      protoize *.c
  11064.  
  11065. You need to include the special files along with the rest in the
  11066. `protoize' command, even though their `.X' files already exist, because
  11067. otherwise they won't get converted.
  11068.  
  11069.  *Note Protoize Caveats::, for more information on how to use
  11070. `protoize' successfully.
  11071.  
  11072. 
  11073. File: gcc,  Node: C Implementation,  Next: C Extensions,  Prev: Invoking GCC,  Up: Top
  11074.  
  11075. 4 C Implementation-defined behavior
  11076. ***********************************
  11077.  
  11078. A conforming implementation of ISO C is required to document its choice
  11079. of behavior in each of the areas that are designated "implementation
  11080. defined."  The following lists all such areas, along with the section
  11081. number from the ISO/IEC 9899:1999 standard.
  11082.  
  11083. * Menu:
  11084.  
  11085. * Translation implementation::
  11086. * Environment implementation::
  11087. * Identifiers implementation::
  11088. * Characters implementation::
  11089. * Integers implementation::
  11090. * Floating point implementation::
  11091. * Arrays and pointers implementation::
  11092. * Hints implementation::
  11093. * Structures unions enumerations and bit-fields implementation::
  11094. * Qualifiers implementation::
  11095. * Preprocessing directives implementation::
  11096. * Library functions implementation::
  11097. * Architecture implementation::
  11098. * Locale-specific behavior implementation::
  11099.  
  11100. 
  11101. File: gcc,  Node: Translation implementation,  Next: Environment implementation,  Up: C Implementation
  11102.  
  11103. 4.1 Translation
  11104. ===============
  11105.  
  11106.    * `How a diagnostic is identified (3.10, 5.1.1.3).'
  11107.  
  11108.      Diagnostics consist of all the output sent to stderr by GCC.
  11109.  
  11110.    * `Whether each nonempty sequence of white-space characters other
  11111.      than new-line is retained or replaced by one space character in
  11112.      translation phase 3 (5.1.1.2).'
  11113.  
  11114. 
  11115. File: gcc,  Node: Environment implementation,  Next: Identifiers implementation,  Prev: Translation implementation,  Up: C Implementation
  11116.  
  11117. 4.2 Environment
  11118. ===============
  11119.  
  11120. The behavior of these points are dependent on the implementation of the
  11121. C library, and are not defined by GCC itself.
  11122.  
  11123. 
  11124. File: gcc,  Node: Identifiers implementation,  Next: Characters implementation,  Prev: Environment implementation,  Up: C Implementation
  11125.  
  11126. 4.3 Identifiers
  11127. ===============
  11128.  
  11129.    * `Which additional multibyte characters may appear in identifiers
  11130.      and their correspondence to universal character names (6.4.2).'
  11131.  
  11132.    * `The number of significant initial characters in an identifier
  11133.      (5.2.4.1, 6.4.2).'
  11134.  
  11135.      For internal names, all characters are significant.  For external
  11136.      names, the number of significant characters are defined by the
  11137.      linker; for almost all targets, all characters are significant.
  11138.  
  11139.  
  11140. 
  11141. File: gcc,  Node: Characters implementation,  Next: Integers implementation,  Prev: Identifiers implementation,  Up: C Implementation
  11142.  
  11143. 4.4 Characters
  11144. ==============
  11145.  
  11146.    * `The number of bits in a byte (3.6).'
  11147.  
  11148.    * `The values of the members of the execution character set (5.2.1).'
  11149.  
  11150.    * `The unique value of the member of the execution character set
  11151.      produced for each of the standard alphabetic escape sequences
  11152.      (5.2.2).'
  11153.  
  11154.    * `The value of a `char' object into which has been stored any
  11155.      character other than a member of the basic execution character set
  11156.      (6.2.5).'
  11157.  
  11158.    * `Which of `signed char' or `unsigned char' has the same range,
  11159.      representation, and behavior as "plain" `char' (6.2.5, 6.3.1.1).'
  11160.  
  11161.    * `The mapping of members of the source character set (in character
  11162.      constants and string literals) to members of the execution
  11163.      character set (6.4.4.4, 5.1.1.2).'
  11164.  
  11165.    * `The value of an integer character constant containing more than
  11166.      one character or containing a character or escape sequence that
  11167.      does not map to a single-byte execution character (6.4.4.4).'
  11168.  
  11169.    * `The value of a wide character constant containing more than one
  11170.      multibyte character, or containing a multibyte character or escape
  11171.      sequence not represented in the extended execution character set
  11172.      (6.4.4.4).'
  11173.  
  11174.    * `The current locale used to convert a wide character constant
  11175.      consisting of a single multibyte character that maps to a member
  11176.      of the extended execution character set into a corresponding wide
  11177.      character code (6.4.4.4).'
  11178.  
  11179.    * `The current locale used to convert a wide string literal into
  11180.      corresponding wide character codes (6.4.5).'
  11181.  
  11182.    * `The value of a string literal containing a multibyte character or
  11183.      escape sequence not represented in the execution character set
  11184.      (6.4.5).'
  11185.  
  11186. 
  11187. File: gcc,  Node: Integers implementation,  Next: Floating point implementation,  Prev: Characters implementation,  Up: C Implementation
  11188.  
  11189. 4.5 Integers
  11190. ============
  11191.  
  11192.    * `Any extended integer types that exist in the implementation
  11193.      (6.2.5).'
  11194.  
  11195.    * `Whether signed integer types are represented using sign and
  11196.      magnitude, two's complement, or one's complement, and whether the
  11197.      extraordinary value is a trap representation or an ordinary value
  11198.      (6.2.6.2).'
  11199.  
  11200.      GCC supports only two's complement integer types, and all bit
  11201.      patterns are ordinary values.
  11202.  
  11203.    * `The rank of any extended integer type relative to another extended
  11204.      integer type with the same precision (6.3.1.1).'
  11205.  
  11206.    * `The result of, or the signal raised by, converting an integer to a
  11207.      signed integer type when the value cannot be represented in an
  11208.      object of that type (6.3.1.3).'
  11209.  
  11210.    * `The results of some bitwise operations on signed integers (6.5).'
  11211.  
  11212. 
  11213. File: gcc,  Node: Floating point implementation,  Next: Arrays and pointers implementation,  Prev: Integers implementation,  Up: C Implementation
  11214.  
  11215. 4.6 Floating point
  11216. ==================
  11217.  
  11218.    * `The accuracy of the floating-point operations and of the library
  11219.      functions in `<math.h>' and `<complex.h>' that return
  11220.      floating-point results (5.2.4.2.2).'
  11221.  
  11222.    * `The rounding behaviors characterized by non-standard values of
  11223.      `FLT_ROUNDS'  (5.2.4.2.2).'
  11224.  
  11225.    * `The evaluation methods characterized by non-standard negative
  11226.      values of `FLT_EVAL_METHOD' (5.2.4.2.2).'
  11227.  
  11228.    * `The direction of rounding when an integer is converted to a
  11229.      floating-point number that cannot exactly represent the original
  11230.      value (6.3.1.4).'
  11231.  
  11232.    * `The direction of rounding when a floating-point number is
  11233.      converted to a narrower floating-point number (6.3.1.5).'
  11234.  
  11235.    * `How the nearest representable value or the larger or smaller
  11236.      representable value immediately adjacent to the nearest
  11237.      representable value is chosen for certain floating constants
  11238.      (6.4.4.2).'
  11239.  
  11240.    * `Whether and how floating expressions are contracted when not
  11241.      disallowed by the `FP_CONTRACT' pragma (6.5).'
  11242.  
  11243.    * `The default state for the `FENV_ACCESS' pragma (7.6.1).'
  11244.  
  11245.    * `Additional floating-point exceptions, rounding modes,
  11246.      environments, and classifications, and their macro names (7.6,
  11247.      7.12).'
  11248.  
  11249.    * `The default state for the `FP_CONTRACT' pragma (7.12.2).'
  11250.  
  11251.    * `Whether the "inexact" floating-point exception can be raised when
  11252.      the rounded result actually does equal the mathematical result in
  11253.      an IEC 60559 conformant implementation (F.9).'
  11254.  
  11255.    * `Whether the "underflow" (and "inexact") floating-point exception
  11256.      can be raised when a result is tiny but not inexact in an IEC
  11257.      60559 conformant implementation (F.9).'
  11258.  
  11259.  
  11260. 
  11261. File: gcc,  Node: Arrays and pointers implementation,  Next: Hints implementation,  Prev: Floating point implementation,  Up: C Implementation
  11262.  
  11263. 4.7 Arrays and pointers
  11264. =======================
  11265.  
  11266.    * `The result of converting a pointer to an integer or vice versa
  11267.      (6.3.2.3).'
  11268.  
  11269.      A cast from pointer to integer discards most-significant bits if
  11270.      the pointer representation is larger than the integer type,
  11271.      sign-extends(1) if the pointer representation is smaller than the
  11272.      integer type, otherwise the bits are unchanged.
  11273.  
  11274.      A cast from integer to pointer discards most-significant bits if
  11275.      the pointer representation is smaller than the integer type,
  11276.      extends according to the signedness of the integer type if the
  11277.      pointer representation is larger than the integer type, otherwise
  11278.      the bits are unchanged.
  11279.  
  11280.      When casting from pointer to integer and back again, the resulting
  11281.      pointer must reference the same object as the original pointer,
  11282.      otherwise the behavior is undefined.  That is, one may not use
  11283.      integer arithmetic to avoid the undefined behavior of pointer
  11284.      arithmetic as proscribed in 6.5.6/8.
  11285.  
  11286.    * `The size of the result of subtracting two pointers to elements of
  11287.      the same array (6.5.6).'
  11288.  
  11289.  
  11290.  ---------- Footnotes ----------
  11291.  
  11292.  (1) Future versions of GCC may zero-extend, or use a target-defined
  11293. `ptr_extend' pattern.  Do not rely on sign extension.
  11294.  
  11295. 
  11296. File: gcc,  Node: Hints implementation,  Next: Structures unions enumerations and bit-fields implementation,  Prev: Arrays and pointers implementation,  Up: C Implementation
  11297.  
  11298. 4.8 Hints
  11299. =========
  11300.  
  11301.    * `The extent to which suggestions made by using the `register'
  11302.      storage-class specifier are effective (6.7.1).'
  11303.  
  11304.      The `register' specifier affects code generation only in these
  11305.      ways:
  11306.  
  11307.         * When used as part of the register variable extension, see
  11308.           *Note Explicit Reg Vars::.
  11309.  
  11310.         * When `-O0' is in use, the compiler allocates distinct stack
  11311.           memory for all variables that do not have the `register'
  11312.           storage-class specifier; if `register' is specified, the
  11313.           variable may have a shorter lifespan than the code would
  11314.           indicate and may never be placed in memory.
  11315.  
  11316.         * On some rare x86 targets, `setjmp' doesn't save the registers
  11317.           in all circumstances.  In those cases, GCC doesn't allocate
  11318.           any variables in registers unless they are marked `register'.
  11319.  
  11320.  
  11321.    * `The extent to which suggestions made by using the inline function
  11322.      specifier are effective (6.7.4).'
  11323.  
  11324.      GCC will not inline any functions if the `-fno-inline' option is
  11325.      used or if `-O0' is used.  Otherwise, GCC may still be unable to
  11326.      inline a function for many reasons; the `-Winline' option may be
  11327.      used to determine if a function has not been inlined and why not.
  11328.  
  11329.  
  11330. 
  11331. File: gcc,  Node: Structures unions enumerations and bit-fields implementation,  Next: Qualifiers implementation,  Prev: Hints implementation,  Up: C Implementation
  11332.  
  11333. 4.9 Structures, unions, enumerations, and bit-fields
  11334. ====================================================
  11335.  
  11336.    * `Whether a "plain" int bit-field is treated as a `signed int'
  11337.      bit-field or as an `unsigned int' bit-field (6.7.2, 6.7.2.1).'
  11338.  
  11339.    * `Allowable bit-field types other than `_Bool', `signed int', and
  11340.      `unsigned int' (6.7.2.1).'
  11341.  
  11342.    * `Whether a bit-field can straddle a storage-unit boundary
  11343.      (6.7.2.1).'
  11344.  
  11345.    * `The order of allocation of bit-fields within a unit (6.7.2.1).'
  11346.  
  11347.    * `The alignment of non-bit-field members of structures (6.7.2.1).'
  11348.  
  11349.    * `The integer type compatible with each enumerated type (6.7.2.2).'
  11350.  
  11351.  
  11352. 
  11353. File: gcc,  Node: Qualifiers implementation,  Next: Preprocessing directives implementation,  Prev: Structures unions enumerations and bit-fields implementation,  Up: C Implementation
  11354.  
  11355. 4.10 Qualifiers
  11356. ===============
  11357.  
  11358.    * `What constitutes an access to an object that has
  11359.      volatile-qualified type (6.7.3).'
  11360.  
  11361.  
  11362. 
  11363. File: gcc,  Node: Preprocessing directives implementation,  Next: Library functions implementation,  Prev: Qualifiers implementation,  Up: C Implementation
  11364.  
  11365. 4.11 Preprocessing directives
  11366. =============================
  11367.  
  11368.    * `How sequences in both forms of header names are mapped to headers
  11369.      or external source file names (6.4.7).'
  11370.  
  11371.    * `Whether the value of a character constant in a constant expression
  11372.      that controls conditional inclusion matches the value of the same
  11373.      character constant in the execution character set (6.10.1).'
  11374.  
  11375.    * `Whether the value of a single-character character constant in a
  11376.      constant expression that controls conditional inclusion may have a
  11377.      negative value (6.10.1).'
  11378.  
  11379.    * `The places that are searched for an included `<>' delimited
  11380.      header, and how the places are specified or the header is
  11381.      identified (6.10.2).'
  11382.  
  11383.    * `How the named source file is searched for in an included `""'
  11384.      delimited header (6.10.2).'
  11385.  
  11386.    * `The method by which preprocessing tokens (possibly resulting from
  11387.      macro expansion) in a `#include' directive are combined into a
  11388.      header name (6.10.2).'
  11389.  
  11390.    * `The nesting limit for `#include' processing (6.10.2).'
  11391.  
  11392.      GCC imposes a limit of 200 nested `#include's.
  11393.  
  11394.    * `Whether the `#' operator inserts a `\' character before the `\'
  11395.      character that begins a universal character name in a character
  11396.      constant or string literal (6.10.3.2).'
  11397.  
  11398.    * `The behavior on each recognized non-`STDC #pragma' directive
  11399.      (6.10.6).'
  11400.  
  11401.    * `The definitions for `__DATE__' and `__TIME__' when respectively,
  11402.      the date and time of translation are not available (6.10.8).'
  11403.  
  11404.      If the date and time are not available, `__DATE__' expands to
  11405.      `"??? ?? ????"' and `__TIME__' expands to `"??:??:??"'.
  11406.  
  11407.  
  11408. 
  11409. File: gcc,  Node: Library functions implementation,  Next: Architecture implementation,  Prev: Preprocessing directives implementation,  Up: C Implementation
  11410.  
  11411. 4.12 Library functions
  11412. ======================
  11413.  
  11414. The behavior of these points are dependent on the implementation of the
  11415. C library, and are not defined by GCC itself.
  11416.  
  11417. 
  11418. File: gcc,  Node: Architecture implementation,  Next: Locale-specific behavior implementation,  Prev: Library functions implementation,  Up: C Implementation
  11419.  
  11420. 4.13 Architecture
  11421. =================
  11422.  
  11423.    * `The values or expressions assigned to the macros specified in the
  11424.      headers `<float.h>', `<limits.h>', and `<stdint.h>' (5.2.4.2,
  11425.      7.18.2, 7.18.3).'
  11426.  
  11427.    * `The number, order, and encoding of bytes in any object (when not
  11428.      explicitly specified in this International Standard) (6.2.6.1).'
  11429.  
  11430.    * `The value of the result of the sizeof operator (6.5.3.4).'
  11431.  
  11432.  
  11433. 
  11434. File: gcc,  Node: Locale-specific behavior implementation,  Prev: Architecture implementation,  Up: C Implementation
  11435.  
  11436. 4.14 Locale-specific behavior
  11437. =============================
  11438.  
  11439. The behavior of these points are dependent on the implementation of the
  11440. C library, and are not defined by GCC itself.
  11441.  
  11442. 
  11443. File: gcc,  Node: C Extensions,  Next: C++ Extensions,  Prev: C Implementation,  Up: Top
  11444.  
  11445. 5 Extensions to the C Language Family
  11446. *************************************
  11447.  
  11448. GNU C provides several language features not found in ISO standard C.
  11449. (The `-pedantic' option directs GCC to print a warning message if any
  11450. of these features is used.)  To test for the availability of these
  11451. features in conditional compilation, check for a predefined macro
  11452. `__GNUC__', which is always defined under GCC.
  11453.  
  11454.  These extensions are available in C and Objective-C.  Most of them are
  11455. also available in C++.  *Note Extensions to the C++ Language: C++
  11456. Extensions, for extensions that apply _only_ to C++.
  11457.  
  11458.  Some features that are in ISO C99 but not C89 or C++ are also, as
  11459. extensions, accepted by GCC in C89 mode and in C++.
  11460.  
  11461. * Menu:
  11462.  
  11463. * Statement Exprs::     Putting statements and declarations inside expressions.
  11464. * Local Labels::        Labels local to a block.
  11465. * Labels as Values::    Getting pointers to labels, and computed gotos.
  11466. * Nested Functions::    As in Algol and Pascal, lexical scoping of functions.
  11467. * Constructing Calls::    Dispatching a call to another function.
  11468. * Typeof::              `typeof': referring to the type of an expression.
  11469. * Lvalues::             Using `?:', `,' and casts in lvalues.
  11470. * Conditionals::        Omitting the middle operand of a `?:' expression.
  11471. * Long Long::        Double-word integers---`long long int'.
  11472. * Complex::             Data types for complex numbers.
  11473. * Hex Floats::          Hexadecimal floating-point constants.
  11474. * Zero Length::         Zero-length arrays.
  11475. * Variable Length::     Arrays whose length is computed at run time.
  11476. * Empty Structures::    Structures with no members.
  11477. * Variadic Macros::    Macros with a variable number of arguments.
  11478. * Escaped Newlines::    Slightly looser rules for escaped newlines.
  11479. * Subscripting::        Any array can be subscripted, even if not an lvalue.
  11480. * Pointer Arith::       Arithmetic on `void'-pointers and function pointers.
  11481. * Initializers::        Non-constant initializers.
  11482. * Compound Literals::   Compound literals give structures, unions
  11483.                          or arrays as values.
  11484. * Designated Inits::    Labeling elements of initializers.
  11485. * Cast to Union::       Casting to union type from any member of the union.
  11486. * Case Ranges::        `case 1 ... 9' and such.
  11487. * Mixed Declarations::    Mixing declarations and code.
  11488. * Function Attributes:: Declaring that functions have no side effects,
  11489.                          or that they can never return.
  11490. * Attribute Syntax::    Formal syntax for attributes.
  11491. * Function Prototypes:: Prototype declarations and old-style definitions.
  11492. * C++ Comments::        C++ comments are recognized.
  11493. * Dollar Signs::        Dollar sign is allowed in identifiers.
  11494. * Character Escapes::   `\e' stands for the character <ESC>.
  11495. * Variable Attributes::    Specifying attributes of variables.
  11496. * Type Attributes::    Specifying attributes of types.
  11497. * Alignment::           Inquiring about the alignment of a type or variable.
  11498. * Inline::              Defining inline functions (as fast as macros).
  11499. * Extended Asm::        Assembler instructions with C expressions as operands.
  11500.                          (With them you can define ``built-in'' functions.)
  11501. * Constraints::         Constraints for asm operands
  11502. * Asm Labels::          Specifying the assembler name to use for a C symbol.
  11503. * Explicit Reg Vars::   Defining variables residing in specified registers.
  11504. * Alternate Keywords::  `__const__', `__asm__', etc., for header files.
  11505. * Incomplete Enums::    `enum foo;', with details to follow.
  11506. * Function Names::    Printable strings which are the name of the current
  11507.              function.
  11508. * Return Address::      Getting the return or frame address of a function.
  11509. * Vector Extensions::   Using vector instructions through built-in functions.
  11510. * Other Builtins::      Other built-in functions.
  11511. * Target Builtins::     Built-in functions specific to particular targets.
  11512. * Pragmas::             Pragmas accepted by GCC.
  11513. * Unnamed Fields::      Unnamed struct/union fields within structs/unions.
  11514. * Thread-Local::        Per-thread variables.
  11515.  
  11516. 
  11517. File: gcc,  Node: Statement Exprs,  Next: Local Labels,  Up: C Extensions
  11518.  
  11519. 5.1 Statements and Declarations in Expressions
  11520. ==============================================
  11521.  
  11522. A compound statement enclosed in parentheses may appear as an expression
  11523. in GNU C.  This allows you to use loops, switches, and local variables
  11524. within an expression.
  11525.  
  11526.  Recall that a compound statement is a sequence of statements surrounded
  11527. by braces; in this construct, parentheses go around the braces.  For
  11528. example:
  11529.  
  11530.      ({ int y = foo (); int z;
  11531.         if (y > 0) z = y;
  11532.         else z = - y;
  11533.         z; })
  11534.  
  11535. is a valid (though slightly more complex than necessary) expression for
  11536. the absolute value of `foo ()'.
  11537.  
  11538.  The last thing in the compound statement should be an expression
  11539. followed by a semicolon; the value of this subexpression serves as the
  11540. value of the entire construct.  (If you use some other kind of statement
  11541. last within the braces, the construct has type `void', and thus
  11542. effectively no value.)
  11543.  
  11544.  This feature is especially useful in making macro definitions "safe"
  11545. (so that they evaluate each operand exactly once).  For example, the
  11546. "maximum" function is commonly defined as a macro in standard C as
  11547. follows:
  11548.  
  11549.      #define max(a,b) ((a) > (b) ? (a) : (b))
  11550.  
  11551. But this definition computes either A or B twice, with bad results if
  11552. the operand has side effects.  In GNU C, if you know the type of the
  11553. operands (here let's assume `int'), you can define the macro safely as
  11554. follows:
  11555.  
  11556.      #define maxint(a,b) \
  11557.        ({int _a = (a), _b = (b); _a > _b ? _a : _b; })
  11558.  
  11559.  Embedded statements are not allowed in constant expressions, such as
  11560. the value of an enumeration constant, the width of a bit-field, or the
  11561. initial value of a static variable.
  11562.  
  11563.  If you don't know the type of the operand, you can still do this, but
  11564. you must use `typeof' (*note Typeof::).
  11565.  
  11566.  In G++, the result value of a statement expression undergoes array and
  11567. function pointer decay, and is returned by value to the enclosing
  11568. expression. For instance, if `A' is a class, then
  11569.  
  11570.              A a;
  11571.  
  11572.              ({a;}).Foo ()
  11573.  
  11574. will construct a temporary `A' object to hold the result of the
  11575. statement expression, and that will be used to invoke `Foo'.  Therefore
  11576. the `this' pointer observed by `Foo' will not be the address of `a'.
  11577.  
  11578.  Any temporaries created within a statement within a statement
  11579. expression will be destroyed at the statement's end.  This makes
  11580. statement expressions inside macros slightly different from function
  11581. calls.  In the latter case temporaries introduced during argument
  11582. evaluation will be destroyed at the end of the statement that includes
  11583. the function call.  In the statement expression case they will be
  11584. destroyed during the statement expression.  For instance,
  11585.  
  11586.      #define macro(a)  ({__typeof__(a) b = (a); b + 3; })
  11587.      template<typename T> T function(T a) { T b = a; return b + 3; }
  11588.  
  11589.      void foo ()
  11590.      {
  11591.        macro (X ());
  11592.        function (X ());
  11593.      }
  11594.  
  11595. will have different places where temporaries are destroyed.  For the
  11596. `macro' case, the temporary `X' will be destroyed just after the
  11597. initialization of `b'.  In the `function' case that temporary will be
  11598. destroyed when the function returns.
  11599.  
  11600.  These considerations mean that it is probably a bad idea to use
  11601. statement-expressions of this form in header files that are designed to
  11602. work with C++.  (Note that some versions of the GNU C Library contained
  11603. header files using statement-expression that lead to precisely this
  11604. bug.)
  11605.  
  11606. 
  11607. File: gcc,  Node: Local Labels,  Next: Labels as Values,  Prev: Statement Exprs,  Up: C Extensions
  11608.  
  11609. 5.2 Locally Declared Labels
  11610. ===========================
  11611.  
  11612. GCC allows you to declare "local labels" in any nested block scope. A
  11613. local label is just like an ordinary label, but you can only reference
  11614. it (with a `goto' statement, or by taking its address) within the block
  11615. in which it was declared.
  11616.  
  11617.  A local label declaration looks like this:
  11618.  
  11619.      __label__ LABEL;
  11620.  
  11621. or
  11622.  
  11623.      __label__ LABEL1, LABEL2, /* ... */;
  11624.  
  11625.  Local label declarations must come at the beginning of the block,
  11626. before any ordinary declarations or statements.
  11627.  
  11628.  The label declaration defines the label _name_, but does not define
  11629. the label itself.  You must do this in the usual way, with `LABEL:',
  11630. within the statements of the statement expression.
  11631.  
  11632.  The local label feature is useful for complex macros.  If a macro
  11633. contains nested loops, a `goto' can be useful for breaking out of them.
  11634. However, an ordinary label whose scope is the whole function cannot be
  11635. used: if the macro can be expanded several times in one function, the
  11636. label will be multiply defined in that function.  A local label avoids
  11637. this problem.  For example:
  11638.  
  11639.      #define SEARCH(value, array, target)              \
  11640.      do {                                              \
  11641.        __label__ found;                                \
  11642.        typeof (target) _SEARCH_target = (target);      \
  11643.        typeof (*(array)) *_SEARCH_array = (array);     \
  11644.        int i, j;                                       \
  11645.        int value;                                      \
  11646.        for (i = 0; i < max; i++)                       \
  11647.          for (j = 0; j < max; j++)                     \
  11648.            if (_SEARCH_array[i][j] == _SEARCH_target)  \
  11649.              { (value) = i; goto found; }              \
  11650.        (value) = -1;                                   \
  11651.       found:;                                          \
  11652.      } while (0)
  11653.  
  11654.  This could also be written using a statement-expression:
  11655.  
  11656.      #define SEARCH(array, target)                     \
  11657.      ({                                                \
  11658.        __label__ found;                                \
  11659.        typeof (target) _SEARCH_target = (target);      \
  11660.        typeof (*(array)) *_SEARCH_array = (array);     \
  11661.        int i, j;                                       \
  11662.        int value;                                      \
  11663.        for (i = 0; i < max; i++)                       \
  11664.          for (j = 0; j < max; j++)                     \
  11665.            if (_SEARCH_array[i][j] == _SEARCH_target)  \
  11666.              { value = i; goto found; }                \
  11667.        value = -1;                                     \
  11668.       found:                                           \
  11669.        value;                                          \
  11670.      })
  11671.  
  11672.  Local label declarations also make the labels they declare visible to
  11673. nested functions, if there are any.  *Note Nested Functions::, for
  11674. details.
  11675.  
  11676. 
  11677. File: gcc,  Node: Labels as Values,  Next: Nested Functions,  Prev: Local Labels,  Up: C Extensions
  11678.  
  11679. 5.3 Labels as Values
  11680. ====================
  11681.  
  11682. You can get the address of a label defined in the current function (or
  11683. a containing function) with the unary operator `&&'.  The value has
  11684. type `void *'.  This value is a constant and can be used wherever a
  11685. constant of that type is valid.  For example:
  11686.  
  11687.      void *ptr;
  11688.      /* ... */
  11689.      ptr = &&foo;
  11690.  
  11691.  To use these values, you need to be able to jump to one.  This is done
  11692. with the computed goto statement(1), `goto *EXP;'.  For example,
  11693.  
  11694.      goto *ptr;
  11695.  
  11696. Any expression of type `void *' is allowed.
  11697.  
  11698.  One way of using these constants is in initializing a static array that
  11699. will serve as a jump table:
  11700.  
  11701.      static void *array[] = { &&foo, &&bar, &&hack };
  11702.  
  11703.  Then you can select a label with indexing, like this:
  11704.  
  11705.      goto *array[i];
  11706.  
  11707. Note that this does not check whether the subscript is in bounds--array
  11708. indexing in C never does that.
  11709.  
  11710.  Such an array of label values serves a purpose much like that of the
  11711. `switch' statement.  The `switch' statement is cleaner, so use that
  11712. rather than an array unless the problem does not fit a `switch'
  11713. statement very well.
  11714.  
  11715.  Another use of label values is in an interpreter for threaded code.
  11716. The labels within the interpreter function can be stored in the
  11717. threaded code for super-fast dispatching.
  11718.  
  11719.  You may not use this mechanism to jump to code in a different function.
  11720. If you do that, totally unpredictable things will happen.  The best way
  11721. to avoid this is to store the label address only in automatic variables
  11722. and never pass it as an argument.
  11723.  
  11724.  An alternate way to write the above example is
  11725.  
  11726.      static const int array[] = { &&foo - &&foo, &&bar - &&foo,
  11727.                                   &&hack - &&foo };
  11728.      goto *(&&foo + array[i]);
  11729.  
  11730. This is more friendly to code living in shared libraries, as it reduces
  11731. the number of dynamic relocations that are needed, and by consequence,
  11732. allows the data to be read-only.
  11733.  
  11734.  ---------- Footnotes ----------
  11735.  
  11736.  (1) The analogous feature in Fortran is called an assigned goto, but
  11737. that name seems inappropriate in C, where one can do more than simply
  11738. store label addresses in label variables.
  11739.  
  11740. 
  11741. File: gcc,  Node: Nested Functions,  Next: Constructing Calls,  Prev: Labels as Values,  Up: C Extensions
  11742.  
  11743. 5.4 Nested Functions
  11744. ====================
  11745.  
  11746. A "nested function" is a function defined inside another function.
  11747. (Nested functions are not supported for GNU C++.)  The nested function's
  11748. name is local to the block where it is defined.  For example, here we
  11749. define a nested function named `square', and call it twice:
  11750.  
  11751.      foo (double a, double b)
  11752.      {
  11753.        double square (double z) { return z * z; }
  11754.  
  11755.        return square (a) + square (b);
  11756.      }
  11757.  
  11758.  The nested function can access all the variables of the containing
  11759. function that are visible at the point of its definition.  This is
  11760. called "lexical scoping".  For example, here we show a nested function
  11761. which uses an inherited variable named `offset':
  11762.  
  11763.      bar (int *array, int offset, int size)
  11764.      {
  11765.        int access (int *array, int index)
  11766.          { return array[index + offset]; }
  11767.        int i;
  11768.        /* ... */
  11769.        for (i = 0; i < size; i++)
  11770.          /* ... */ access (array, i) /* ... */
  11771.      }
  11772.  
  11773.  Nested function definitions are permitted within functions in the
  11774. places where variable definitions are allowed; that is, in any block,
  11775. before the first statement in the block.
  11776.  
  11777.  It is possible to call the nested function from outside the scope of
  11778. its name by storing its address or passing the address to another
  11779. function:
  11780.  
  11781.      hack (int *array, int size)
  11782.      {
  11783.        void store (int index, int value)
  11784.          { array[index] = value; }
  11785.  
  11786.        intermediate (store, size);
  11787.      }
  11788.  
  11789.  Here, the function `intermediate' receives the address of `store' as
  11790. an argument.  If `intermediate' calls `store', the arguments given to
  11791. `store' are used to store into `array'.  But this technique works only
  11792. so long as the containing function (`hack', in this example) does not
  11793. exit.
  11794.  
  11795.  If you try to call the nested function through its address after the
  11796. containing function has exited, all hell will break loose.  If you try
  11797. to call it after a containing scope level has exited, and if it refers
  11798. to some of the variables that are no longer in scope, you may be lucky,
  11799. but it's not wise to take the risk.  If, however, the nested function
  11800. does not refer to anything that has gone out of scope, you should be
  11801. safe.
  11802.  
  11803.  GCC implements taking the address of a nested function using a
  11804. technique called "trampolines".  A paper describing them is available as
  11805.  
  11806. `http://people.debian.org/~aaronl/Usenix88-lexic.pdf'.
  11807.  
  11808.  A nested function can jump to a label inherited from a containing
  11809. function, provided the label was explicitly declared in the containing
  11810. function (*note Local Labels::).  Such a jump returns instantly to the
  11811. containing function, exiting the nested function which did the `goto'
  11812. and any intermediate functions as well.  Here is an example:
  11813.  
  11814.      bar (int *array, int offset, int size)
  11815.      {
  11816.        __label__ failure;
  11817.        int access (int *array, int index)
  11818.          {
  11819.            if (index > size)
  11820.              goto failure;
  11821.            return array[index + offset];
  11822.          }
  11823.        int i;
  11824.        /* ... */
  11825.        for (i = 0; i < size; i++)
  11826.          /* ... */ access (array, i) /* ... */
  11827.        /* ... */
  11828.        return 0;
  11829.  
  11830.       /* Control comes here from `access'
  11831.          if it detects an error.  */
  11832.       failure:
  11833.        return -1;
  11834.      }
  11835.  
  11836.  A nested function always has internal linkage.  Declaring one with
  11837. `extern' is erroneous.  If you need to declare the nested function
  11838. before its definition, use `auto' (which is otherwise meaningless for
  11839. function declarations).
  11840.  
  11841.      bar (int *array, int offset, int size)
  11842.      {
  11843.        __label__ failure;
  11844.        auto int access (int *, int);
  11845.        /* ... */
  11846.        int access (int *array, int index)
  11847.          {
  11848.            if (index > size)
  11849.              goto failure;
  11850.            return array[index + offset];
  11851.          }
  11852.        /* ... */
  11853.      }
  11854.  
  11855. 
  11856. File: gcc,  Node: Constructing Calls,  Next: Typeof,  Prev: Nested Functions,  Up: C Extensions
  11857.  
  11858. 5.5 Constructing Function Calls
  11859. ===============================
  11860.  
  11861. Using the built-in functions described below, you can record the
  11862. arguments a function received, and call another function with the same
  11863. arguments, without knowing the number or types of the arguments.
  11864.  
  11865.  You can also record the return value of that function call, and later
  11866. return that value, without knowing what data type the function tried to
  11867. return (as long as your caller expects that data type).
  11868.  
  11869.  However, these built-in functions may interact badly with some
  11870. sophisticated features or other extensions of the language.  It is,
  11871. therefore, not recommended to use them outside very simple functions
  11872. acting as mere forwarders for their arguments.
  11873.  
  11874.  -- Built-in Function: void * __builtin_apply_args ()
  11875.      This built-in function returns a pointer to data describing how to
  11876.      perform a call with the same arguments as were passed to the
  11877.      current function.
  11878.  
  11879.      The function saves the arg pointer register, structure value
  11880.      address, and all registers that might be used to pass arguments to
  11881.      a function into a block of memory allocated on the stack.  Then it
  11882.      returns the address of that block.
  11883.  
  11884.  -- Built-in Function: void * __builtin_apply (void (*FUNCTION)(), void
  11885.           *ARGUMENTS, size_t SIZE)
  11886.      This built-in function invokes FUNCTION with a copy of the
  11887.      parameters described by ARGUMENTS and SIZE.
  11888.  
  11889.      The value of ARGUMENTS should be the value returned by
  11890.      `__builtin_apply_args'.  The argument SIZE specifies the size of
  11891.      the stack argument data, in bytes.
  11892.  
  11893.      This function returns a pointer to data describing how to return
  11894.      whatever value was returned by FUNCTION.  The data is saved in a
  11895.      block of memory allocated on the stack.
  11896.  
  11897.      It is not always simple to compute the proper value for SIZE.  The
  11898.      value is used by `__builtin_apply' to compute the amount of data
  11899.      that should be pushed on the stack and copied from the incoming
  11900.      argument area.
  11901.  
  11902.  -- Built-in Function: void __builtin_return (void *RESULT)
  11903.      This built-in function returns the value described by RESULT from
  11904.      the containing function.  You should specify, for RESULT, a value
  11905.      returned by `__builtin_apply'.
  11906.  
  11907. 
  11908. File: gcc,  Node: Typeof,  Next: Lvalues,  Prev: Constructing Calls,  Up: C Extensions
  11909.  
  11910. 5.6 Referring to a Type with `typeof'
  11911. =====================================
  11912.  
  11913. Another way to refer to the type of an expression is with `typeof'.
  11914. The syntax of using of this keyword looks like `sizeof', but the
  11915. construct acts semantically like a type name defined with `typedef'.
  11916.  
  11917.  There are two ways of writing the argument to `typeof': with an
  11918. expression or with a type.  Here is an example with an expression:
  11919.  
  11920.      typeof (x[0](1))
  11921.  
  11922. This assumes that `x' is an array of pointers to functions; the type
  11923. described is that of the values of the functions.
  11924.  
  11925.  Here is an example with a typename as the argument:
  11926.  
  11927.      typeof (int *)
  11928.  
  11929. Here the type described is that of pointers to `int'.
  11930.  
  11931.  If you are writing a header file that must work when included in ISO C
  11932. programs, write `__typeof__' instead of `typeof'.  *Note Alternate
  11933. Keywords::.
  11934.  
  11935.  A `typeof'-construct can be used anywhere a typedef name could be
  11936. used.  For example, you can use it in a declaration, in a cast, or
  11937. inside of `sizeof' or `typeof'.
  11938.  
  11939.  `typeof' is often useful in conjunction with the
  11940. statements-within-expressions feature.  Here is how the two together can
  11941. be used to define a safe "maximum" macro that operates on any
  11942. arithmetic type and evaluates each of its arguments exactly once:
  11943.  
  11944.      #define max(a,b) \
  11945.        ({ typeof (a) _a = (a); \
  11946.            typeof (b) _b = (b); \
  11947.          _a > _b ? _a : _b; })
  11948.  
  11949.  The reason for using names that start with underscores for the local
  11950. variables is to avoid conflicts with variable names that occur within
  11951. the expressions that are substituted for `a' and `b'.  Eventually we
  11952. hope to design a new form of declaration syntax that allows you to
  11953. declare variables whose scopes start only after their initializers;
  11954. this will be a more reliable way to prevent such conflicts.
  11955.  
  11956. Some more examples of the use of `typeof':
  11957.  
  11958.    * This declares `y' with the type of what `x' points to.
  11959.  
  11960.           typeof (*x) y;
  11961.  
  11962.    * This declares `y' as an array of such values.
  11963.  
  11964.           typeof (*x) y[4];
  11965.  
  11966.    * This declares `y' as an array of pointers to characters:
  11967.  
  11968.           typeof (typeof (char *)[4]) y;
  11969.  
  11970.      It is equivalent to the following traditional C declaration:
  11971.  
  11972.           char *y[4];
  11973.  
  11974.      To see the meaning of the declaration using `typeof', and why it
  11975.      might be a useful way to write, let's rewrite it with these macros:
  11976.  
  11977.           #define pointer(T)  typeof(T *)
  11978.           #define array(T, N) typeof(T [N])
  11979.  
  11980.      Now the declaration can be rewritten this way:
  11981.  
  11982.           array (pointer (char), 4) y;
  11983.  
  11984.      Thus, `array (pointer (char), 4)' is the type of arrays of 4
  11985.      pointers to `char'.
  11986.  
  11987.  _Compatibility Note:_ In addition to `typeof', GCC 2 supported a more
  11988. limited extension which permitted one to write
  11989.  
  11990.      typedef T = EXPR;
  11991.  
  11992. with the effect of declaring T to have the type of the expression EXPR.
  11993. This extension does not work with GCC 3 (versions between 3.0 and 3.2
  11994. will crash; 3.2.1 and later give an error).  Code which relies on it
  11995. should be rewritten to use `typeof':
  11996.  
  11997.      typedef typeof(EXPR) T;
  11998.  
  11999. This will work with all versions of GCC.
  12000.  
  12001. 
  12002. File: gcc,  Node: Lvalues,  Next: Conditionals,  Prev: Typeof,  Up: C Extensions
  12003.  
  12004. 5.7 Generalized Lvalues
  12005. =======================
  12006.  
  12007. Compound expressions, conditional expressions and casts are allowed as
  12008. lvalues provided their operands are lvalues.  This means that you can
  12009. take their addresses or store values into them.  All these extensions
  12010. are deprecated.
  12011.  
  12012.  Standard C++ allows compound expressions and conditional expressions
  12013. as lvalues, and permits casts to reference type, so use of this
  12014. extension is not supported for C++ code.
  12015.  
  12016.  For example, a compound expression can be assigned, provided the last
  12017. expression in the sequence is an lvalue.  These two expressions are
  12018. equivalent:
  12019.  
  12020.      (a, b) += 5
  12021.      a, (b += 5)
  12022.  
  12023.  Similarly, the address of the compound expression can be taken.  These
  12024. two expressions are equivalent:
  12025.  
  12026.      &(a, b)
  12027.      a, &b
  12028.  
  12029.  A conditional expression is a valid lvalue if its type is not void and
  12030. the true and false branches are both valid lvalues.  For example, these
  12031. two expressions are equivalent:
  12032.  
  12033.      (a ? b : c) = 5
  12034.      (a ? b = 5 : (c = 5))
  12035.  
  12036.  A cast is a valid lvalue if its operand is an lvalue.  This extension
  12037. is deprecated.  A simple assignment whose left-hand side is a cast
  12038. works by converting the right-hand side first to the specified type,
  12039. then to the type of the inner left-hand side expression.  After this is
  12040. stored, the value is converted back to the specified type to become the
  12041. value of the assignment.  Thus, if `a' has type `char *', the following
  12042. two expressions are equivalent:
  12043.  
  12044.      (int)a = 5
  12045.      (int)(a = (char *)(int)5)
  12046.  
  12047.  An assignment-with-arithmetic operation such as `+=' applied to a cast
  12048. performs the arithmetic using the type resulting from the cast, and then
  12049. continues as in the previous case.  Therefore, these two expressions are
  12050. equivalent:
  12051.  
  12052.      (int)a += 5
  12053.      (int)(a = (char *)(int) ((int)a + 5))
  12054.  
  12055.  You cannot take the address of an lvalue cast, because the use of its
  12056. address would not work out coherently.  Suppose that `&(int)f' were
  12057. permitted, where `f' has type `float'.  Then the following statement
  12058. would try to store an integer bit-pattern where a floating point number
  12059. belongs:
  12060.  
  12061.      *&(int)f = 1;
  12062.  
  12063.  This is quite different from what `(int)f = 1' would do--that would
  12064. convert 1 to floating point and store it.  Rather than cause this
  12065. inconsistency, we think it is better to prohibit use of `&' on a cast.
  12066.  
  12067.  If you really do want an `int *' pointer with the address of `f', you
  12068. can simply write `(int *)&f'.
  12069.  
  12070. 
  12071. File: gcc,  Node: Conditionals,  Next: Long Long,  Prev: Lvalues,  Up: C Extensions
  12072.  
  12073. 5.8 Conditionals with Omitted Operands
  12074. ======================================
  12075.  
  12076. The middle operand in a conditional expression may be omitted.  Then if
  12077. the first operand is nonzero, its value is the value of the conditional
  12078. expression.
  12079.  
  12080.  Therefore, the expression
  12081.  
  12082.      x ? : y
  12083.  
  12084. has the value of `x' if that is nonzero; otherwise, the value of `y'.
  12085.  
  12086.  This example is perfectly equivalent to
  12087.  
  12088.      x ? x : y
  12089.  
  12090. In this simple case, the ability to omit the middle operand is not
  12091. especially useful.  When it becomes useful is when the first operand
  12092. does, or may (if it is a macro argument), contain a side effect.  Then
  12093. repeating the operand in the middle would perform the side effect
  12094. twice.  Omitting the middle operand uses the value already computed
  12095. without the undesirable effects of recomputing it.
  12096.  
  12097. 
  12098. File: gcc,  Node: Long Long,  Next: Complex,  Prev: Conditionals,  Up: C Extensions
  12099.  
  12100. 5.9 Double-Word Integers
  12101. ========================
  12102.  
  12103. ISO C99 supports data types for integers that are at least 64 bits wide,
  12104. and as an extension GCC supports them in C89 mode and in C++.  Simply
  12105. write `long long int' for a signed integer, or `unsigned long long int'
  12106. for an unsigned integer.  To make an integer constant of type `long
  12107. long int', add the suffix `LL' to the integer.  To make an integer
  12108. constant of type `unsigned long long int', add the suffix `ULL' to the
  12109. integer.
  12110.  
  12111.  You can use these types in arithmetic like any other integer types.
  12112. Addition, subtraction, and bitwise boolean operations on these types
  12113. are open-coded on all types of machines.  Multiplication is open-coded
  12114. if the machine supports fullword-to-doubleword a widening multiply
  12115. instruction.  Division and shifts are open-coded only on machines that
  12116. provide special support.  The operations that are not open-coded use
  12117. special library routines that come with GCC.
  12118.  
  12119.  There may be pitfalls when you use `long long' types for function
  12120. arguments, unless you declare function prototypes.  If a function
  12121. expects type `int' for its argument, and you pass a value of type `long
  12122. long int', confusion will result because the caller and the subroutine
  12123. will disagree about the number of bytes for the argument.  Likewise, if
  12124. the function expects `long long int' and you pass `int'.  The best way
  12125. to avoid such problems is to use prototypes.
  12126.  
  12127. 
  12128. File: gcc,  Node: Complex,  Next: Hex Floats,  Prev: Long Long,  Up: C Extensions
  12129.  
  12130. 5.10 Complex Numbers
  12131. ====================
  12132.  
  12133. ISO C99 supports complex floating data types, and as an extension GCC
  12134. supports them in C89 mode and in C++, and supports complex integer data
  12135. types which are not part of ISO C99.  You can declare complex types
  12136. using the keyword `_Complex'.  As an extension, the older GNU keyword
  12137. `__complex__' is also supported.
  12138.  
  12139.  For example, `_Complex double x;' declares `x' as a variable whose
  12140. real part and imaginary part are both of type `double'.  `_Complex
  12141. short int y;' declares `y' to have real and imaginary parts of type
  12142. `short int'; this is not likely to be useful, but it shows that the set
  12143. of complex types is complete.
  12144.  
  12145.  To write a constant with a complex data type, use the suffix `i' or
  12146. `j' (either one; they are equivalent).  For example, `2.5fi' has type
  12147. `_Complex float' and `3i' has type `_Complex int'.  Such a constant
  12148. always has a pure imaginary value, but you can form any complex value
  12149. you like by adding one to a real constant.  This is a GNU extension; if
  12150. you have an ISO C99 conforming C library (such as GNU libc), and want
  12151. to construct complex constants of floating type, you should include
  12152. `<complex.h>' and use the macros `I' or `_Complex_I' instead.
  12153.  
  12154.  To extract the real part of a complex-valued expression EXP, write
  12155. `__real__ EXP'.  Likewise, use `__imag__' to extract the imaginary
  12156. part.  This is a GNU extension; for values of floating type, you should
  12157. use the ISO C99 functions `crealf', `creal', `creall', `cimagf',
  12158. `cimag' and `cimagl', declared in `<complex.h>' and also provided as
  12159. built-in functions by GCC.
  12160.  
  12161.  The operator `~' performs complex conjugation when used on a value
  12162. with a complex type.  This is a GNU extension; for values of floating
  12163. type, you should use the ISO C99 functions `conjf', `conj' and `conjl',
  12164. declared in `<complex.h>' and also provided as built-in functions by
  12165. GCC.
  12166.  
  12167.  GCC can allocate complex automatic variables in a noncontiguous
  12168. fashion; it's even possible for the real part to be in a register while
  12169. the imaginary part is on the stack (or vice-versa).  Only the DWARF2
  12170. debug info format can represent this, so use of DWARF2 is recommended.
  12171. If you are using the stabs debug info format, GCC describes a
  12172. noncontiguous complex variable as if it were two separate variables of
  12173. noncomplex type.  If the variable's actual name is `foo', the two
  12174. fictitious variables are named `foo$real' and `foo$imag'.  You can
  12175. examine and set these two fictitious variables with your debugger.
  12176.  
  12177. 
  12178. File: gcc,  Node: Hex Floats,  Next: Zero Length,  Prev: Complex,  Up: C Extensions
  12179.  
  12180. 5.11 Hex Floats
  12181. ===============
  12182.  
  12183. ISO C99 supports floating-point numbers written not only in the usual
  12184. decimal notation, such as `1.55e1', but also numbers such as `0x1.fp3'
  12185. written in hexadecimal format.  As a GNU extension, GCC supports this
  12186. in C89 mode (except in some cases when strictly conforming) and in C++.
  12187. In that format the `0x' hex introducer and the `p' or `P' exponent
  12188. field are mandatory.  The exponent is a decimal number that indicates
  12189. the power of 2 by which the significant part will be multiplied.  Thus
  12190. `0x1.f' is 1 15/16, `p3' multiplies it by 8, and the value of `0x1.fp3'
  12191. is the same as `1.55e1'.
  12192.  
  12193.  Unlike for floating-point numbers in the decimal notation the exponent
  12194. is always required in the hexadecimal notation.  Otherwise the compiler
  12195. would not be able to resolve the ambiguity of, e.g., `0x1.f'.  This
  12196. could mean `1.0f' or `1.9375' since `f' is also the extension for
  12197. floating-point constants of type `float'.
  12198.  
  12199. 
  12200. File: gcc,  Node: Zero Length,  Next: Variable Length,  Prev: Hex Floats,  Up: C Extensions
  12201.  
  12202. 5.12 Arrays of Length Zero
  12203. ==========================
  12204.  
  12205. Zero-length arrays are allowed in GNU C.  They are very useful as the
  12206. last element of a structure which is really a header for a
  12207. variable-length object:
  12208.  
  12209.      struct line {
  12210.        int length;
  12211.        char contents[0];
  12212.      };
  12213.  
  12214.      struct line *thisline = (struct line *)
  12215.        malloc (sizeof (struct line) + this_length);
  12216.      thisline->length = this_length;
  12217.  
  12218.  In ISO C90, you would have to give `contents' a length of 1, which
  12219. means either you waste space or complicate the argument to `malloc'.
  12220.  
  12221.  In ISO C99, you would use a "flexible array member", which is slightly
  12222. different in syntax and semantics:
  12223.  
  12224.    * Flexible array members are written as `contents[]' without the `0'.
  12225.  
  12226.    * Flexible array members have incomplete type, and so the `sizeof'
  12227.      operator may not be applied.  As a quirk of the original
  12228.      implementation of zero-length arrays, `sizeof' evaluates to zero.
  12229.  
  12230.    * Flexible array members may only appear as the last member of a
  12231.      `struct' that is otherwise non-empty.
  12232.  
  12233.    * A structure containing a flexible array member, or a union
  12234.      containing such a structure (possibly recursively), may not be a
  12235.      member of a structure or an element of an array.  (However, these
  12236.      uses are permitted by GCC as extensions.)
  12237.  
  12238.  GCC versions before 3.0 allowed zero-length arrays to be statically
  12239. initialized, as if they were flexible arrays.  In addition to those
  12240. cases that were useful, it also allowed initializations in situations
  12241. that would corrupt later data.  Non-empty initialization of zero-length
  12242. arrays is now treated like any case where there are more initializer
  12243. elements than the array holds, in that a suitable warning about "excess
  12244. elements in array" is given, and the excess elements (all of them, in
  12245. this case) are ignored.
  12246.  
  12247.  Instead GCC allows static initialization of flexible array members.
  12248. This is equivalent to defining a new structure containing the original
  12249. structure followed by an array of sufficient size to contain the data.
  12250. I.e. in the following, `f1' is constructed as if it were declared like
  12251. `f2'.
  12252.  
  12253.      struct f1 {
  12254.        int x; int y[];
  12255.      } f1 = { 1, { 2, 3, 4 } };
  12256.  
  12257.      struct f2 {
  12258.        struct f1 f1; int data[3];
  12259.      } f2 = { { 1 }, { 2, 3, 4 } };
  12260.  
  12261. The convenience of this extension is that `f1' has the desired type,
  12262. eliminating the need to consistently refer to `f2.f1'.
  12263.  
  12264.  This has symmetry with normal static arrays, in that an array of
  12265. unknown size is also written with `[]'.
  12266.  
  12267.  Of course, this extension only makes sense if the extra data comes at
  12268. the end of a top-level object, as otherwise we would be overwriting
  12269. data at subsequent offsets.  To avoid undue complication and confusion
  12270. with initialization of deeply nested arrays, we simply disallow any
  12271. non-empty initialization except when the structure is the top-level
  12272. object.  For example:
  12273.  
  12274.      struct foo { int x; int y[]; };
  12275.      struct bar { struct foo z; };
  12276.  
  12277.      struct foo a = { 1, { 2, 3, 4 } };        // Valid.
  12278.      struct bar b = { { 1, { 2, 3, 4 } } };    // Invalid.
  12279.      struct bar c = { { 1, { } } };            // Valid.
  12280.      struct foo d[1] = { { 1 { 2, 3, 4 } } };  // Invalid.
  12281.  
  12282. 
  12283. File: gcc,  Node: Empty Structures,  Next: Variadic Macros,  Prev: Variable Length,  Up: C Extensions
  12284.  
  12285. 5.13 Structures With No Members
  12286. ===============================
  12287.  
  12288. GCC permits a C structure to have no members:
  12289.  
  12290.      struct empty {
  12291.      };
  12292.  
  12293.  The structure will have size zero.  In C++, empty structures are part
  12294. of the language.  G++ treats empty structures as if they had a single
  12295. member of type `char'.
  12296.  
  12297. 
  12298. File: gcc,  Node: Variable Length,  Next: Empty Structures,  Prev: Zero Length,  Up: C Extensions
  12299.  
  12300. 5.14 Arrays of Variable Length
  12301. ==============================
  12302.  
  12303. Variable-length automatic arrays are allowed in ISO C99, and as an
  12304. extension GCC accepts them in C89 mode and in C++.  (However, GCC's
  12305. implementation of variable-length arrays does not yet conform in detail
  12306. to the ISO C99 standard.)  These arrays are declared like any other
  12307. automatic arrays, but with a length that is not a constant expression.
  12308. The storage is allocated at the point of declaration and deallocated
  12309. when the brace-level is exited.  For example:
  12310.  
  12311.      FILE *
  12312.      concat_fopen (char *s1, char *s2, char *mode)
  12313.      {
  12314.        char str[strlen (s1) + strlen (s2) + 1];
  12315.        strcpy (str, s1);
  12316.        strcat (str, s2);
  12317.        return fopen (str, mode);
  12318.      }
  12319.  
  12320.  Jumping or breaking out of the scope of the array name deallocates the
  12321. storage.  Jumping into the scope is not allowed; you get an error
  12322. message for it.
  12323.  
  12324.  You can use the function `alloca' to get an effect much like
  12325. variable-length arrays.  The function `alloca' is available in many
  12326. other C implementations (but not in all).  On the other hand,
  12327. variable-length arrays are more elegant.
  12328.  
  12329.  There are other differences between these two methods.  Space allocated
  12330. with `alloca' exists until the containing _function_ returns.  The
  12331. space for a variable-length array is deallocated as soon as the array
  12332. name's scope ends.  (If you use both variable-length arrays and
  12333. `alloca' in the same function, deallocation of a variable-length array
  12334. will also deallocate anything more recently allocated with `alloca'.)
  12335.  
  12336.  You can also use variable-length arrays as arguments to functions:
  12337.  
  12338.      struct entry
  12339.      tester (int len, char data[len][len])
  12340.      {
  12341.        /* ... */
  12342.      }
  12343.  
  12344.  The length of an array is computed once when the storage is allocated
  12345. and is remembered for the scope of the array in case you access it with
  12346. `sizeof'.
  12347.  
  12348.  If you want to pass the array first and the length afterward, you can
  12349. use a forward declaration in the parameter list--another GNU extension.
  12350.  
  12351.      struct entry
  12352.      tester (int len; char data[len][len], int len)
  12353.      {
  12354.        /* ... */
  12355.      }
  12356.  
  12357.  The `int len' before the semicolon is a "parameter forward
  12358. declaration", and it serves the purpose of making the name `len' known
  12359. when the declaration of `data' is parsed.
  12360.  
  12361.  You can write any number of such parameter forward declarations in the
  12362. parameter list.  They can be separated by commas or semicolons, but the
  12363. last one must end with a semicolon, which is followed by the "real"
  12364. parameter declarations.  Each forward declaration must match a "real"
  12365. declaration in parameter name and data type.  ISO C99 does not support
  12366. parameter forward declarations.
  12367.  
  12368. 
  12369. File: gcc,  Node: Variadic Macros,  Next: Escaped Newlines,  Prev: Empty Structures,  Up: C Extensions
  12370.  
  12371. 5.15 Macros with a Variable Number of Arguments.
  12372. ================================================
  12373.  
  12374. In the ISO C standard of 1999, a macro can be declared to accept a
  12375. variable number of arguments much as a function can.  The syntax for
  12376. defining the macro is similar to that of a function.  Here is an
  12377. example:
  12378.  
  12379.      #define debug(format, ...) fprintf (stderr, format, __VA_ARGS__)
  12380.  
  12381.  Here `...' is a "variable argument".  In the invocation of such a
  12382. macro, it represents the zero or more tokens until the closing
  12383. parenthesis that ends the invocation, including any commas.  This set of
  12384. tokens replaces the identifier `__VA_ARGS__' in the macro body wherever
  12385. it appears.  See the CPP manual for more information.
  12386.  
  12387.  GCC has long supported variadic macros, and used a different syntax
  12388. that allowed you to give a name to the variable arguments just like any
  12389. other argument.  Here is an example:
  12390.  
  12391.      #define debug(format, args...) fprintf (stderr, format, args)
  12392.  
  12393.  This is in all ways equivalent to the ISO C example above, but arguably
  12394. more readable and descriptive.
  12395.  
  12396.  GNU CPP has two further variadic macro extensions, and permits them to
  12397. be used with either of the above forms of macro definition.
  12398.  
  12399.  In standard C, you are not allowed to leave the variable argument out
  12400. entirely; but you are allowed to pass an empty argument.  For example,
  12401. this invocation is invalid in ISO C, because there is no comma after
  12402. the string:
  12403.  
  12404.      debug ("A message")
  12405.  
  12406.  GNU CPP permits you to completely omit the variable arguments in this
  12407. way.  In the above examples, the compiler would complain, though since
  12408. the expansion of the macro still has the extra comma after the format
  12409. string.
  12410.  
  12411.  To help solve this problem, CPP behaves specially for variable
  12412. arguments used with the token paste operator, `##'.  If instead you
  12413. write
  12414.  
  12415.      #define debug(format, ...) fprintf (stderr, format, ## __VA_ARGS__)
  12416.  
  12417.  and if the variable arguments are omitted or empty, the `##' operator
  12418. causes the preprocessor to remove the comma before it.  If you do
  12419. provide some variable arguments in your macro invocation, GNU CPP does
  12420. not complain about the paste operation and instead places the variable
  12421. arguments after the comma.  Just like any other pasted macro argument,
  12422. these arguments are not macro expanded.
  12423.  
  12424. 
  12425. File: gcc,  Node: Escaped Newlines,  Next: Subscripting,  Prev: Variadic Macros,  Up: C Extensions
  12426.  
  12427. 5.16 Slightly Looser Rules for Escaped Newlines
  12428. ===============================================
  12429.  
  12430. Recently, the preprocessor has relaxed its treatment of escaped
  12431. newlines.  Previously, the newline had to immediately follow a
  12432. backslash.  The current implementation allows whitespace in the form of
  12433. spaces, horizontal and vertical tabs, and form feeds between the
  12434. backslash and the subsequent newline.  The preprocessor issues a
  12435. warning, but treats it as a valid escaped newline and combines the two
  12436. lines to form a single logical line.  This works within comments and
  12437. tokens, as well as between tokens.  Comments are _not_ treated as
  12438. whitespace for the purposes of this relaxation, since they have not yet
  12439. been replaced with spaces.
  12440.  
  12441. 
  12442. File: gcc,  Node: Subscripting,  Next: Pointer Arith,  Prev: Escaped Newlines,  Up: C Extensions
  12443.  
  12444. 5.17 Non-Lvalue Arrays May Have Subscripts
  12445. ==========================================
  12446.  
  12447. In ISO C99, arrays that are not lvalues still decay to pointers, and
  12448. may be subscripted, although they may not be modified or used after the
  12449. next sequence point and the unary `&' operator may not be applied to
  12450. them.  As an extension, GCC allows such arrays to be subscripted in C89
  12451. mode, though otherwise they do not decay to pointers outside C99 mode.
  12452. For example, this is valid in GNU C though not valid in C89:
  12453.  
  12454.      struct foo {int a[4];};
  12455.  
  12456.      struct foo f();
  12457.  
  12458.      bar (int index)
  12459.      {
  12460.        return f().a[index];
  12461.      }
  12462.  
  12463. 
  12464. File: gcc,  Node: Pointer Arith,  Next: Initializers,  Prev: Subscripting,  Up: C Extensions
  12465.  
  12466. 5.18 Arithmetic on `void'- and Function-Pointers
  12467. ================================================
  12468.  
  12469. In GNU C, addition and subtraction operations are supported on pointers
  12470. to `void' and on pointers to functions.  This is done by treating the
  12471. size of a `void' or of a function as 1.
  12472.  
  12473.  A consequence of this is that `sizeof' is also allowed on `void' and
  12474. on function types, and returns 1.
  12475.  
  12476.  The option `-Wpointer-arith' requests a warning if these extensions
  12477. are used.
  12478.  
  12479. 
  12480. File: gcc,  Node: Initializers,  Next: Compound Literals,  Prev: Pointer Arith,  Up: C Extensions
  12481.  
  12482. 5.19 Non-Constant Initializers
  12483. ==============================
  12484.  
  12485. As in standard C++ and ISO C99, the elements of an aggregate
  12486. initializer for an automatic variable are not required to be constant
  12487. expressions in GNU C.  Here is an example of an initializer with
  12488. run-time varying elements:
  12489.  
  12490.      foo (float f, float g)
  12491.      {
  12492.        float beat_freqs[2] = { f-g, f+g };
  12493.        /* ... */
  12494.      }
  12495.  
  12496. 
  12497. File: gcc,  Node: Compound Literals,  Next: Designated Inits,  Prev: Initializers,  Up: C Extensions
  12498.  
  12499. 5.20 Compound Literals
  12500. ======================
  12501.  
  12502. ISO C99 supports compound literals.  A compound literal looks like a
  12503. cast containing an initializer.  Its value is an object of the type
  12504. specified in the cast, containing the elements specified in the
  12505. initializer; it is an lvalue.  As an extension, GCC supports compound
  12506. literals in C89 mode and in C++.
  12507.  
  12508.  Usually, the specified type is a structure.  Assume that `struct foo'
  12509. and `structure' are declared as shown:
  12510.  
  12511.      struct foo {int a; char b[2];} structure;
  12512.  
  12513. Here is an example of constructing a `struct foo' with a compound
  12514. literal:
  12515.  
  12516.      structure = ((struct foo) {x + y, 'a', 0});
  12517.  
  12518. This is equivalent to writing the following:
  12519.  
  12520.      {
  12521.        struct foo temp = {x + y, 'a', 0};
  12522.        structure = temp;
  12523.      }
  12524.  
  12525.  You can also construct an array.  If all the elements of the compound
  12526. literal are (made up of) simple constant expressions, suitable for use
  12527. in initializers of objects of static storage duration, then the compound
  12528. literal can be coerced to a pointer to its first element and used in
  12529. such an initializer, as shown here:
  12530.  
  12531.      char **foo = (char *[]) { "x", "y", "z" };
  12532.  
  12533.  Compound literals for scalar types and union types are is also
  12534. allowed, but then the compound literal is equivalent to a cast.
  12535.  
  12536.  As a GNU extension, GCC allows initialization of objects with static
  12537. storage duration by compound literals (which is not possible in ISO
  12538. C99, because the initializer is not a constant).  It is handled as if
  12539. the object was initialized only with the bracket enclosed list if
  12540. compound literal's and object types match.  The initializer list of the
  12541. compound literal must be constant.  If the object being initialized has
  12542. array type of unknown size, the size is determined by compound literal
  12543. size.
  12544.  
  12545.      static struct foo x = (struct foo) {1, 'a', 'b'};
  12546.      static int y[] = (int []) {1, 2, 3};
  12547.      static int z[] = (int [3]) {1};
  12548.  
  12549. The above lines are equivalent to the following:
  12550.      static struct foo x = {1, 'a', 'b'};
  12551.      static int y[] = {1, 2, 3};
  12552.      static int z[] = {1, 0, 0};
  12553.  
  12554. 
  12555. File: gcc,  Node: Designated Inits,  Next: Cast to Union,  Prev: Compound Literals,  Up: C Extensions
  12556.  
  12557. 5.21 Designated Initializers
  12558. ============================
  12559.  
  12560. Standard C89 requires the elements of an initializer to appear in a
  12561. fixed order, the same as the order of the elements in the array or
  12562. structure being initialized.
  12563.  
  12564.  In ISO C99 you can give the elements in any order, specifying the array
  12565. indices or structure field names they apply to, and GNU C allows this as
  12566. an extension in C89 mode as well.  This extension is not implemented in
  12567. GNU C++.
  12568.  
  12569.  To specify an array index, write `[INDEX] =' before the element value.
  12570. For example,
  12571.  
  12572.      int a[6] = { [4] = 29, [2] = 15 };
  12573.  
  12574. is equivalent to
  12575.  
  12576.      int a[6] = { 0, 0, 15, 0, 29, 0 };
  12577.  
  12578. The index values must be constant expressions, even if the array being
  12579. initialized is automatic.
  12580.  
  12581.  An alternative syntax for this which has been obsolete since GCC 2.5
  12582. but GCC still accepts is to write `[INDEX]' before the element value,
  12583. with no `='.
  12584.  
  12585.  To initialize a range of elements to the same value, write `[FIRST ...
  12586. LAST] = VALUE'.  This is a GNU extension.  For example,
  12587.  
  12588.      int widths[] = { [0 ... 9] = 1, [10 ... 99] = 2, [100] = 3 };
  12589.  
  12590. If the value in it has side-effects, the side-effects will happen only
  12591. once, not for each initialized field by the range initializer.
  12592.  
  12593. Note that the length of the array is the highest value specified plus
  12594. one.
  12595.  
  12596.  In a structure initializer, specify the name of a field to initialize
  12597. with `.FIELDNAME =' before the element value.  For example, given the
  12598. following structure,
  12599.  
  12600.      struct point { int x, y; };
  12601.  
  12602. the following initialization
  12603.  
  12604.      struct point p = { .y = yvalue, .x = xvalue };
  12605.  
  12606. is equivalent to
  12607.  
  12608.      struct point p = { xvalue, yvalue };
  12609.  
  12610.  Another syntax which has the same meaning, obsolete since GCC 2.5, is
  12611. `FIELDNAME:', as shown here:
  12612.  
  12613.      struct point p = { y: yvalue, x: xvalue };
  12614.  
  12615.  The `[INDEX]' or `.FIELDNAME' is known as a "designator".  You can
  12616. also use a designator (or the obsolete colon syntax) when initializing
  12617. a union, to specify which element of the union should be used.  For
  12618. example,
  12619.  
  12620.      union foo { int i; double d; };
  12621.  
  12622.      union foo f = { .d = 4 };
  12623.  
  12624. will convert 4 to a `double' to store it in the union using the second
  12625. element.  By contrast, casting 4 to type `union foo' would store it
  12626. into the union as the integer `i', since it is an integer.  (*Note Cast
  12627. to Union::.)
  12628.  
  12629.  You can combine this technique of naming elements with ordinary C
  12630. initialization of successive elements.  Each initializer element that
  12631. does not have a designator applies to the next consecutive element of
  12632. the array or structure.  For example,
  12633.  
  12634.      int a[6] = { [1] = v1, v2, [4] = v4 };
  12635.  
  12636. is equivalent to
  12637.  
  12638.      int a[6] = { 0, v1, v2, 0, v4, 0 };
  12639.  
  12640.  Labeling the elements of an array initializer is especially useful
  12641. when the indices are characters or belong to an `enum' type.  For
  12642. example:
  12643.  
  12644.      int whitespace[256]
  12645.        = { [' '] = 1, ['\t'] = 1, ['\h'] = 1,
  12646.            ['\f'] = 1, ['\n'] = 1, ['\r'] = 1 };
  12647.  
  12648.  You can also write a series of `.FIELDNAME' and `[INDEX]' designators
  12649. before an `=' to specify a nested subobject to initialize; the list is
  12650. taken relative to the subobject corresponding to the closest
  12651. surrounding brace pair.  For example, with the `struct point'
  12652. declaration above:
  12653.  
  12654.      struct point ptarray[10] = { [2].y = yv2, [2].x = xv2, [0].x = xv0 };
  12655.  
  12656. If the same field is initialized multiple times, it will have value from
  12657. the last initialization.  If any such overridden initialization has
  12658. side-effect, it is unspecified whether the side-effect happens or not.
  12659. Currently, GCC will discard them and issue a warning.
  12660.  
  12661. 
  12662. File: gcc,  Node: Case Ranges,  Next: Mixed Declarations,  Prev: Cast to Union,  Up: C Extensions
  12663.  
  12664. 5.22 Case Ranges
  12665. ================
  12666.  
  12667. You can specify a range of consecutive values in a single `case' label,
  12668. like this:
  12669.  
  12670.      case LOW ... HIGH:
  12671.  
  12672. This has the same effect as the proper number of individual `case'
  12673. labels, one for each integer value from LOW to HIGH, inclusive.
  12674.  
  12675.  This feature is especially useful for ranges of ASCII character codes:
  12676.  
  12677.      case 'A' ... 'Z':
  12678.  
  12679.  *Be careful:* Write spaces around the `...', for otherwise it may be
  12680. parsed wrong when you use it with integer values.  For example, write
  12681. this:
  12682.  
  12683.      case 1 ... 5:
  12684.  
  12685. rather than this:
  12686.  
  12687.      case 1...5:
  12688.  
  12689. 
  12690. File: gcc,  Node: Cast to Union,  Next: Case Ranges,  Prev: Designated Inits,  Up: C Extensions
  12691.  
  12692. 5.23 Cast to a Union Type
  12693. =========================
  12694.  
  12695. A cast to union type is similar to other casts, except that the type
  12696. specified is a union type.  You can specify the type either with `union
  12697. TAG' or with a typedef name.  A cast to union is actually a constructor
  12698. though, not a cast, and hence does not yield an lvalue like normal
  12699. casts.  (*Note Compound Literals::.)
  12700.  
  12701.  The types that may be cast to the union type are those of the members
  12702. of the union.  Thus, given the following union and variables:
  12703.  
  12704.      union foo { int i; double d; };
  12705.      int x;
  12706.      double y;
  12707.  
  12708. both `x' and `y' can be cast to type `union foo'.
  12709.  
  12710.  Using the cast as the right-hand side of an assignment to a variable of
  12711. union type is equivalent to storing in a member of the union:
  12712.  
  12713.      union foo u;
  12714.      /* ... */
  12715.      u = (union foo) x  ==  u.i = x
  12716.      u = (union foo) y  ==  u.d = y
  12717.  
  12718.  You can also use the union cast as a function argument:
  12719.  
  12720.      void hack (union foo);
  12721.      /* ... */
  12722.      hack ((union foo) x);
  12723.  
  12724. 
  12725. File: gcc,  Node: Mixed Declarations,  Next: Function Attributes,  Prev: Case Ranges,  Up: C Extensions
  12726.  
  12727. 5.24 Mixed Declarations and Code
  12728. ================================
  12729.  
  12730. ISO C99 and ISO C++ allow declarations and code to be freely mixed
  12731. within compound statements.  As an extension, GCC also allows this in
  12732. C89 mode.  For example, you could do:
  12733.  
  12734.      int i;
  12735.      /* ... */
  12736.      i++;
  12737.      int j = i + 2;
  12738.  
  12739.  Each identifier is visible from where it is declared until the end of
  12740. the enclosing block.
  12741.  
  12742. 
  12743. File: gcc,  Node: Function Attributes,  Next: Attribute Syntax,  Prev: Mixed Declarations,  Up: C Extensions
  12744.  
  12745. 5.25 Declaring Attributes of Functions
  12746. ======================================
  12747.  
  12748. In GNU C, you declare certain things about functions called in your
  12749. program which help the compiler optimize function calls and check your
  12750. code more carefully.
  12751.  
  12752.  The keyword `__attribute__' allows you to specify special attributes
  12753. when making a declaration.  This keyword is followed by an attribute
  12754. specification inside double parentheses.  The following attributes are
  12755. currently defined for functions on all targets: `noreturn', `noinline',
  12756. `always_inline', `pure', `const', `nothrow', `format', `format_arg',
  12757. `no_instrument_function', `section', `constructor', `destructor',
  12758. `used', `unused', `deprecated', `weak', `malloc', `alias',
  12759. `warn_unused_result' and `nonnull'.  Several other attributes are
  12760. defined for functions on particular target systems.  Other attributes,
  12761. including `section' are supported for variables declarations (*note
  12762. Variable Attributes::) and for types (*note Type Attributes::).
  12763.  
  12764.  You may also specify attributes with `__' preceding and following each
  12765. keyword.  This allows you to use them in header files without being
  12766. concerned about a possible macro of the same name.  For example, you
  12767. may use `__noreturn__' instead of `noreturn'.
  12768.  
  12769.  *Note Attribute Syntax::, for details of the exact syntax for using
  12770. attributes.
  12771.  
  12772. `noreturn'
  12773.      A few standard library functions, such as `abort' and `exit',
  12774.      cannot return.  GCC knows this automatically.  Some programs define
  12775.      their own functions that never return.  You can declare them
  12776.      `noreturn' to tell the compiler this fact.  For example,
  12777.  
  12778.           void fatal () __attribute__ ((noreturn));
  12779.  
  12780.           void
  12781.           fatal (/* ... */)
  12782.           {
  12783.             /* ... */ /* Print error message. */ /* ... */
  12784.             exit (1);
  12785.           }
  12786.  
  12787.      The `noreturn' keyword tells the compiler to assume that `fatal'
  12788.      cannot return.  It can then optimize without regard to what would
  12789.      happen if `fatal' ever did return.  This makes slightly better
  12790.      code.  More importantly, it helps avoid spurious warnings of
  12791.      uninitialized variables.
  12792.  
  12793.      The `noreturn' keyword does not affect the exceptional path when
  12794.      that applies: a `noreturn'-marked function may still return to the
  12795.      caller by throwing an exception.
  12796.  
  12797.      Do not assume that registers saved by the calling function are
  12798.      restored before calling the `noreturn' function.
  12799.  
  12800.      It does not make sense for a `noreturn' function to have a return
  12801.      type other than `void'.
  12802.  
  12803.      The attribute `noreturn' is not implemented in GCC versions
  12804.      earlier than 2.5.  An alternative way to declare that a function
  12805.      does not return, which works in the current version and in some
  12806.      older versions, is as follows:
  12807.  
  12808.           typedef void voidfn ();
  12809.  
  12810.           volatile voidfn fatal;
  12811.  
  12812. `noinline'
  12813.      This function attribute prevents a function from being considered
  12814.      for inlining.
  12815.  
  12816. `always_inline'
  12817.      Generally, functions are not inlined unless optimization is
  12818.      specified.  For functions declared inline, this attribute inlines
  12819.      the function even if no optimization level was specified.
  12820.  
  12821. `pure'
  12822.      Many functions have no effects except the return value and their
  12823.      return value depends only on the parameters and/or global
  12824.      variables.  Such a function can be subject to common subexpression
  12825.      elimination and loop optimization just as an arithmetic operator
  12826.      would be.  These functions should be declared with the attribute
  12827.      `pure'.  For example,
  12828.  
  12829.           int square (int) __attribute__ ((pure));
  12830.  
  12831.      says that the hypothetical function `square' is safe to call fewer
  12832.      times than the program says.
  12833.  
  12834.      Some of common examples of pure functions are `strlen' or `memcmp'.
  12835.      Interesting non-pure functions are functions with infinite loops
  12836.      or those depending on volatile memory or other system resource,
  12837.      that may change between two consecutive calls (such as `feof' in a
  12838.      multithreading environment).
  12839.  
  12840.      The attribute `pure' is not implemented in GCC versions earlier
  12841.      than 2.96.  
  12842.  
  12843. `const'
  12844.      Many functions do not examine any values except their arguments,
  12845.      and have no effects except the return value.  Basically this is
  12846.      just slightly more strict class than the `pure' attribute above,
  12847.      since function is not allowed to read global memory.
  12848.  
  12849.      Note that a function that has pointer arguments and examines the
  12850.      data pointed to must _not_ be declared `const'.  Likewise, a
  12851.      function that calls a non-`const' function usually must not be
  12852.      `const'.  It does not make sense for a `const' function to return
  12853.      `void'.
  12854.  
  12855.      The attribute `const' is not implemented in GCC versions earlier
  12856.      than 2.5.  An alternative way to declare that a function has no
  12857.      side effects, which works in the current version and in some older
  12858.      versions, is as follows:
  12859.  
  12860.           typedef int intfn ();
  12861.  
  12862.           extern const intfn square;
  12863.  
  12864.      This approach does not work in GNU C++ from 2.6.0 on, since the
  12865.      language specifies that the `const' must be attached to the return
  12866.      value.
  12867.  
  12868. `nothrow'
  12869.      The `nothrow' attribute is used to inform the compiler that a
  12870.      function cannot throw an exception.  For example, most functions in
  12871.      the standard C library can be guaranteed not to throw an exception
  12872.      with the notable exceptions of `qsort' and `bsearch' that take
  12873.      function pointer arguments.  The `nothrow' attribute is not
  12874.      implemented in GCC versions earlier than 3.2.
  12875.  
  12876. `format (ARCHETYPE, STRING-INDEX, FIRST-TO-CHECK)'
  12877.      The `format' attribute specifies that a function takes `printf',
  12878.      `scanf', `strftime' or `strfmon' style arguments which should be
  12879.      type-checked against a format string.  For example, the
  12880.      declaration:
  12881.  
  12882.           extern int
  12883.           my_printf (void *my_object, const char *my_format, ...)
  12884.                 __attribute__ ((format (printf, 2, 3)));
  12885.  
  12886.      causes the compiler to check the arguments in calls to `my_printf'
  12887.      for consistency with the `printf' style format string argument
  12888.      `my_format'.
  12889.  
  12890.      The parameter ARCHETYPE determines how the format string is
  12891.      interpreted, and should be `printf', `scanf', `strftime' or
  12892.      `strfmon'.  (You can also use `__printf__', `__scanf__',
  12893.      `__strftime__' or `__strfmon__'.)  The parameter STRING-INDEX
  12894.      specifies which argument is the format string argument (starting
  12895.      from 1), while FIRST-TO-CHECK is the number of the first argument
  12896.      to check against the format string.  For functions where the
  12897.      arguments are not available to be checked (such as `vprintf'),
  12898.      specify the third parameter as zero.  In this case the compiler
  12899.      only checks the format string for consistency.  For `strftime'
  12900.      formats, the third parameter is required to be zero.  Since
  12901.      non-static C++ methods have an implicit `this' argument, the
  12902.      arguments of such methods should be counted from two, not one, when
  12903.      giving values for STRING-INDEX and FIRST-TO-CHECK.
  12904.  
  12905.      In the example above, the format string (`my_format') is the second
  12906.      argument of the function `my_print', and the arguments to check
  12907.      start with the third argument, so the correct parameters for the
  12908.      format attribute are 2 and 3.
  12909.  
  12910.      The `format' attribute allows you to identify your own functions
  12911.      which take format strings as arguments, so that GCC can check the
  12912.      calls to these functions for errors.  The compiler always (unless
  12913.      `-ffreestanding' is used) checks formats for the standard library
  12914.      functions `printf', `fprintf', `sprintf', `scanf', `fscanf',
  12915.      `sscanf', `strftime', `vprintf', `vfprintf' and `vsprintf'
  12916.      whenever such warnings are requested (using `-Wformat'), so there
  12917.      is no need to modify the header file `stdio.h'.  In C99 mode, the
  12918.      functions `snprintf', `vsnprintf', `vscanf', `vfscanf' and
  12919.      `vsscanf' are also checked.  Except in strictly conforming C
  12920.      standard modes, the X/Open function `strfmon' is also checked as
  12921.      are `printf_unlocked' and `fprintf_unlocked'.  *Note Options
  12922.      Controlling C Dialect: C Dialect Options.
  12923.  
  12924. `format_arg (STRING-INDEX)'
  12925.      The `format_arg' attribute specifies that a function takes a format
  12926.      string for a `printf', `scanf', `strftime' or `strfmon' style
  12927.      function and modifies it (for example, to translate it into
  12928.      another language), so the result can be passed to a `printf',
  12929.      `scanf', `strftime' or `strfmon' style function (with the
  12930.      remaining arguments to the format function the same as they would
  12931.      have been for the unmodified string).  For example, the
  12932.      declaration:
  12933.  
  12934.           extern char *
  12935.           my_dgettext (char *my_domain, const char *my_format)
  12936.                 __attribute__ ((format_arg (2)));
  12937.  
  12938.      causes the compiler to check the arguments in calls to a `printf',
  12939.      `scanf', `strftime' or `strfmon' type function, whose format
  12940.      string argument is a call to the `my_dgettext' function, for
  12941.      consistency with the format string argument `my_format'.  If the
  12942.      `format_arg' attribute had not been specified, all the compiler
  12943.      could tell in such calls to format functions would be that the
  12944.      format string argument is not constant; this would generate a
  12945.      warning when `-Wformat-nonliteral' is used, but the calls could
  12946.      not be checked without the attribute.
  12947.  
  12948.      The parameter STRING-INDEX specifies which argument is the format
  12949.      string argument (starting from one).  Since non-static C++ methods
  12950.      have an implicit `this' argument, the arguments of such methods
  12951.      should be counted from two.
  12952.  
  12953.      The `format-arg' attribute allows you to identify your own
  12954.      functions which modify format strings, so that GCC can check the
  12955.      calls to `printf', `scanf', `strftime' or `strfmon' type function
  12956.      whose operands are a call to one of your own function.  The
  12957.      compiler always treats `gettext', `dgettext', and `dcgettext' in
  12958.      this manner except when strict ISO C support is requested by
  12959.      `-ansi' or an appropriate `-std' option, or `-ffreestanding' is
  12960.      used.  *Note Options Controlling C Dialect: C Dialect Options.
  12961.  
  12962. `nonnull (ARG-INDEX, ...)'
  12963.      The `nonnull' attribute specifies that some function parameters
  12964.      should be non-null pointers.  For instance, the declaration:
  12965.  
  12966.           extern void *
  12967.           my_memcpy (void *dest, const void *src, size_t len)
  12968.               __attribute__((nonnull (1, 2)));
  12969.  
  12970.      causes the compiler to check that, in calls to `my_memcpy',
  12971.      arguments DEST and SRC are non-null.  If the compiler determines
  12972.      that a null pointer is passed in an argument slot marked as
  12973.      non-null, and the `-Wnonnull' option is enabled, a warning is
  12974.      issued.  The compiler may also choose to make optimizations based
  12975.      on the knowledge that certain function arguments will not be null.
  12976.  
  12977.      If no argument index list is given to the `nonnull' attribute, all
  12978.      pointer arguments are marked as non-null.  To illustrate, the
  12979.      following declaration is equivalent to the previous example:
  12980.  
  12981.           extern void *
  12982.           my_memcpy (void *dest, const void *src, size_t len)
  12983.               __attribute__((nonnull));
  12984.  
  12985. `no_instrument_function'
  12986.      If `-finstrument-functions' is given, profiling function calls will
  12987.      be generated at entry and exit of most user-compiled functions.
  12988.      Functions with this attribute will not be so instrumented.
  12989.  
  12990. `section ("SECTION-NAME")'
  12991.      Normally, the compiler places the code it generates in the `text'
  12992.      section.  Sometimes, however, you need additional sections, or you
  12993.      need certain particular functions to appear in special sections.
  12994.      The `section' attribute specifies that a function lives in a
  12995.      particular section.  For example, the declaration:
  12996.  
  12997.           extern void foobar (void) __attribute__ ((section ("bar")));
  12998.  
  12999.      puts the function `foobar' in the `bar' section.
  13000.  
  13001.      Some file formats do not support arbitrary sections so the
  13002.      `section' attribute is not available on all platforms.  If you
  13003.      need to map the entire contents of a module to a particular
  13004.      section, consider using the facilities of the linker instead.
  13005.  
  13006. `constructor'
  13007. `destructor'
  13008.      The `constructor' attribute causes the function to be called
  13009.      automatically before execution enters `main ()'.  Similarly, the
  13010.      `destructor' attribute causes the function to be called
  13011.      automatically after `main ()' has completed or `exit ()' has been
  13012.      called.  Functions with these attributes are useful for
  13013.      initializing data that will be used implicitly during the
  13014.      execution of the program.
  13015.  
  13016.      These attributes are not currently implemented for Objective-C.
  13017.  
  13018. `unused'
  13019.      This attribute, attached to a function, means that the function is
  13020.      meant to be possibly unused.  GCC will not produce a warning for
  13021.      this function.
  13022.  
  13023. `used'
  13024.      This attribute, attached to a function, means that code must be
  13025.      emitted for the function even if it appears that the function is
  13026.      not referenced.  This is useful, for example, when the function is
  13027.      referenced only in inline assembly.
  13028.  
  13029. `deprecated'
  13030.      The `deprecated' attribute results in a warning if the function is
  13031.      used anywhere in the source file.  This is useful when identifying
  13032.      functions that are expected to be removed in a future version of a
  13033.      program.  The warning also includes the location of the declaration
  13034.      of the deprecated function, to enable users to easily find further
  13035.      information about why the function is deprecated, or what they
  13036.      should do instead.  Note that the warnings only occurs for uses:
  13037.  
  13038.           int old_fn () __attribute__ ((deprecated));
  13039.           int old_fn ();
  13040.           int (*fn_ptr)() = old_fn;
  13041.  
  13042.      results in a warning on line 3 but not line 2.
  13043.  
  13044.      The `deprecated' attribute can also be used for variables and
  13045.      types (*note Variable Attributes::, *note Type Attributes::.)
  13046.  
  13047. `warn_unused_result'
  13048.      The `warn_unused_result' attribute causes a warning to be emitted
  13049.      if a caller of the function with this attribute does not use its
  13050.      return value.  This is useful for functions where not checking the
  13051.      result is either a security problem or always a bug, such as
  13052.      `realloc'.
  13053.  
  13054.           int fn () __attribute__ ((warn_unused_result));
  13055.           int foo ()
  13056.           {
  13057.             if (fn () < 0) return -1;
  13058.             fn ();
  13059.             return 0;
  13060.           }
  13061.  
  13062.      results in warning on line 5.
  13063.  
  13064. `weak'
  13065.      The `weak' attribute causes the declaration to be emitted as a weak
  13066.      symbol rather than a global.  This is primarily useful in defining
  13067.      library functions which can be overridden in user code, though it
  13068.      can also be used with non-function declarations.  Weak symbols are
  13069.      supported for ELF targets, and also for a.out targets when using
  13070.      the GNU assembler and linker.
  13071.  
  13072. `malloc'
  13073.      The `malloc' attribute is used to tell the compiler that a function
  13074.      may be treated as if any non-`NULL' pointer it returns cannot
  13075.      alias any other pointer valid when the function returns.  This
  13076.      will often improve optimization.  Standard functions with this
  13077.      property include `malloc' and `calloc'.  `realloc'-like functions
  13078.      have this property as long as the old pointer is never referred to
  13079.      (including comparing it to the new pointer) after the function
  13080.      returns a non-`NULL' value.
  13081.  
  13082. `alias ("TARGET")'
  13083.      The `alias' attribute causes the declaration to be emitted as an
  13084.      alias for another symbol, which must be specified.  For instance,
  13085.  
  13086.           void __f () { /* Do something. */; }
  13087.           void f () __attribute__ ((weak, alias ("__f")));
  13088.  
  13089.      declares `f' to be a weak alias for `__f'.  In C++, the mangled
  13090.      name for the target must be used.
  13091.  
  13092.      Not all target machines support this attribute.
  13093.  
  13094. `visibility ("VISIBILITY_TYPE")'
  13095.      The `visibility' attribute on ELF targets causes the declaration
  13096.      to be emitted with default, hidden, protected or internal
  13097.      visibility.
  13098.  
  13099.           void __attribute__ ((visibility ("protected")))
  13100.           f () { /* Do something. */; }
  13101.           int i __attribute__ ((visibility ("hidden")));
  13102.  
  13103.      See the ELF gABI for complete details, but the short story is:
  13104.  
  13105.     "default"
  13106.           Default visibility is the normal case for ELF.  This value is
  13107.           available for the visibility attribute to override other
  13108.           options that may change the assumed visibility of symbols.
  13109.  
  13110.     "hidden"
  13111.           Hidden visibility indicates that the symbol will not be
  13112.           placed into the dynamic symbol table, so no other "module"
  13113.           (executable or shared library) can reference it directly.
  13114.  
  13115.     "protected"
  13116.           Protected visibility indicates that the symbol will be placed
  13117.           in the dynamic symbol table, but that references within the
  13118.           defining module will bind to the local symbol.  That is, the
  13119.           symbol cannot be overridden by another module.
  13120.  
  13121.     "internal"
  13122.           Internal visibility is like hidden visibility, but with
  13123.           additional processor specific semantics.  Unless otherwise
  13124.           specified by the psABI, GCC defines internal visibility to
  13125.           mean that the function is _never_ called from another module.
  13126.           Note that hidden symbols, while they cannot be referenced
  13127.           directly by other modules, can be referenced indirectly via
  13128.           function pointers.  By indicating that a symbol cannot be
  13129.           called from outside the module, GCC may for instance omit the
  13130.           load of a PIC register since it is known that the calling
  13131.           function loaded the correct value.
  13132.  
  13133.      Not all ELF targets support this attribute.
  13134.  
  13135. `regparm (NUMBER)'
  13136.      On the Intel 386, the `regparm' attribute causes the compiler to
  13137.      pass up to NUMBER integer arguments in registers EAX, EDX, and ECX
  13138.      instead of on the stack.  Functions that take a variable number of
  13139.      arguments will continue to be passed all of their arguments on the
  13140.      stack.
  13141.  
  13142.      Beware that on some ELF systems this attribute is unsuitable for
  13143.      global functions in shared libraries with lazy binding (which is
  13144.      the default).  Lazy binding will send the first call via resolving
  13145.      code in the loader, which might assume EAX, EDX and ECX can be
  13146.      clobbered, as per the standard calling conventions.  Solaris 8 is
  13147.      affected by this.  GNU systems with GLIBC 2.1 or higher, and
  13148.      FreeBSD, are believed to be safe since the loaders there save all
  13149.      registers.  (Lazy binding can be disabled with the linker or the
  13150.      loader if desired, to avoid the problem.)
  13151.  
  13152. `stdcall'
  13153.      On the Intel 386, the `stdcall' attribute causes the compiler to
  13154.      assume that the called function will pop off the stack space used
  13155.      to pass arguments, unless it takes a variable number of arguments.
  13156.  
  13157. `fastcall'
  13158.      On the Intel 386, the `fastcall' attribute causes the compiler to
  13159.      pass the first two arguments in the registers ECX and EDX.
  13160.      Subsequent arguments are passed on the stack. The called function
  13161.      will pop the arguments off the stack. If the number of arguments
  13162.      is variable all arguments are pushed on the stack.
  13163.  
  13164. `cdecl'
  13165.      On the Intel 386, the `cdecl' attribute causes the compiler to
  13166.      assume that the calling function will pop off the stack space used
  13167.      to pass arguments.  This is useful to override the effects of the
  13168.      `-mrtd' switch.
  13169.  
  13170. `longcall/shortcall'
  13171.      On the RS/6000 and PowerPC, the `longcall' attribute causes the
  13172.      compiler to always call this function via a pointer, just as it
  13173.      would if the `-mlongcall' option had been specified.  The
  13174.      `shortcall' attribute causes the compiler not to do this.  These
  13175.      attributes override both the `-mlongcall' switch and the `#pragma
  13176.      longcall' setting.
  13177.  
  13178.      *Note RS/6000 and PowerPC Options::, for more information on
  13179.      whether long calls are necessary.
  13180.  
  13181. `long_call/short_call'
  13182.      This attribute specifies how a particular function is called on
  13183.      ARM.  Both attributes override the `-mlong-calls' (*note ARM
  13184.      Options::) command line switch and `#pragma long_calls' settings.
  13185.      The `long_call' attribute causes the compiler to always call the
  13186.      function by first loading its address into a register and then
  13187.      using the contents of that register.   The `short_call' attribute
  13188.      always places the offset to the function from the call site into
  13189.      the `BL' instruction directly.
  13190.  
  13191. `function_vector'
  13192.      Use this attribute on the H8/300, H8/300H, and H8S to indicate
  13193.      that the specified function should be called through the function
  13194.      vector.  Calling a function through the function vector will
  13195.      reduce code size, however; the function vector has a limited size
  13196.      (maximum 128 entries on the H8/300 and 64 entries on the H8/300H
  13197.      and H8S) and shares space with the interrupt vector.
  13198.  
  13199.      You must use GAS and GLD from GNU binutils version 2.7 or later for
  13200.      this attribute to work correctly.
  13201.  
  13202. `interrupt'
  13203.      Use this attribute on the ARM, AVR, C4x, M32R/D and Xstormy16
  13204.      ports to indicate that the specified function is an interrupt
  13205.      handler.  The compiler will generate function entry and exit
  13206.      sequences suitable for use in an interrupt handler when this
  13207.      attribute is present.
  13208.  
  13209.      Note, interrupt handlers for the m68k, H8/300, H8/300H, H8S, and
  13210.      SH processors can be specified via the `interrupt_handler'
  13211.      attribute.
  13212.  
  13213.      Note, on the AVR, interrupts will be enabled inside the function.
  13214.  
  13215.      Note, for the ARM, you can specify the kind of interrupt to be
  13216.      handled by adding an optional parameter to the interrupt attribute
  13217.      like this:
  13218.  
  13219.           void f () __attribute__ ((interrupt ("IRQ")));
  13220.  
  13221.      Permissible values for this parameter are: IRQ, FIQ, SWI, ABORT
  13222.      and UNDEF.
  13223.  
  13224. `interrupt_handler'
  13225.      Use this attribute on the m68k, H8/300, H8/300H, H8S, and SH to
  13226.      indicate that the specified function is an interrupt handler.  The
  13227.      compiler will generate function entry and exit sequences suitable
  13228.      for use in an interrupt handler when this attribute is present.
  13229.  
  13230. `sp_switch'
  13231.      Use this attribute on the SH to indicate an `interrupt_handler'
  13232.      function should switch to an alternate stack.  It expects a string
  13233.      argument that names a global variable holding the address of the
  13234.      alternate stack.
  13235.  
  13236.           void *alt_stack;
  13237.           void f () __attribute__ ((interrupt_handler,
  13238.                                     sp_switch ("alt_stack")));
  13239.  
  13240. `trap_exit'
  13241.      Use this attribute on the SH for an `interrupt_handler' to return
  13242.      using `trapa' instead of `rte'.  This attribute expects an integer
  13243.      argument specifying the trap number to be used.
  13244.  
  13245. `eightbit_data'
  13246.      Use this attribute on the H8/300, H8/300H, and H8S to indicate
  13247.      that the specified variable should be placed into the eight bit
  13248.      data section.  The compiler will generate more efficient code for
  13249.      certain operations on data in the eight bit data area.  Note the
  13250.      eight bit data area is limited to 256 bytes of data.
  13251.  
  13252.      You must use GAS and GLD from GNU binutils version 2.7 or later for
  13253.      this attribute to work correctly.
  13254.  
  13255. `tiny_data'
  13256.      Use this attribute on the H8/300H and H8S to indicate that the
  13257.      specified variable should be placed into the tiny data section.
  13258.      The compiler will generate more efficient code for loads and stores
  13259.      on data in the tiny data section.  Note the tiny data area is
  13260.      limited to slightly under 32kbytes of data.
  13261.  
  13262. `saveall'
  13263.      Use this attribute on the H8/300, H8/300H, and H8S to indicate that
  13264.      all registers except the stack pointer should be saved in the
  13265.      prologue regardless of whether they are used or not.
  13266.  
  13267. `signal'
  13268.      Use this attribute on the AVR to indicate that the specified
  13269.      function is a signal handler.  The compiler will generate function
  13270.      entry and exit sequences suitable for use in a signal handler when
  13271.      this attribute is present.  Interrupts will be disabled inside the
  13272.      function.
  13273.  
  13274. `naked'
  13275.      Use this attribute on the ARM, AVR, C4x and IP2K ports to indicate
  13276.      that the specified function does not need prologue/epilogue
  13277.      sequences generated by the compiler.  It is up to the programmer
  13278.      to provide these sequences.
  13279.  
  13280. `model (MODEL-NAME)'
  13281.      On the M32R/D, use this attribute to set the addressability of an
  13282.      object, and of the code generated for a function.  The identifier
  13283.      MODEL-NAME is one of `small', `medium', or `large', representing
  13284.      each of the code models.
  13285.  
  13286.      Small model objects live in the lower 16MB of memory (so that their
  13287.      addresses can be loaded with the `ld24' instruction), and are
  13288.      callable with the `bl' instruction.
  13289.  
  13290.      Medium model objects may live anywhere in the 32-bit address space
  13291.      (the compiler will generate `seth/add3' instructions to load their
  13292.      addresses), and are callable with the `bl' instruction.
  13293.  
  13294.      Large model objects may live anywhere in the 32-bit address space
  13295.      (the compiler will generate `seth/add3' instructions to load their
  13296.      addresses), and may not be reachable with the `bl' instruction
  13297.      (the compiler will generate the much slower `seth/add3/jl'
  13298.      instruction sequence).
  13299.  
  13300.      On IA-64, use this attribute to set the addressability of an
  13301.      object.  At present, the only supported identifier for MODEL-NAME
  13302.      is `small', indicating addressability via "small" (22-bit)
  13303.      addresses (so that their addresses can be loaded with the `addl'
  13304.      instruction).  Caveat: such addressing is by definition not
  13305.      position independent and hence this attribute must not be used for
  13306.      objects defined by shared libraries.
  13307.  
  13308. `far'
  13309.      On 68HC11 and 68HC12 the `far' attribute causes the compiler to
  13310.      use a calling convention that takes care of switching memory banks
  13311.      when entering and leaving a function.  This calling convention is
  13312.      also the default when using the `-mlong-calls' option.
  13313.  
  13314.      On 68HC12 the compiler will use the `call' and `rtc' instructions
  13315.      to call and return from a function.
  13316.  
  13317.      On 68HC11 the compiler will generate a sequence of instructions to
  13318.      invoke a board-specific routine to switch the memory bank and call
  13319.      the real function. The board-specific routine simulates a `call'.
  13320.      At the end of a function, it will jump to a board-specific routine
  13321.      instead of using `rts'. The board-specific return routine simulates
  13322.      the `rtc'.
  13323.  
  13324. `near'
  13325.      On 68HC11 and 68HC12 the `near' attribute causes the compiler to
  13326.      use the normal calling convention based on `jsr' and `rts'.  This
  13327.      attribute can be used to cancel the effect of the `-mlong-calls'
  13328.      option.
  13329.  
  13330. `dllimport'
  13331.      On Microsoft Windows targets, the `dllimport' attribute causes the
  13332.      compiler to reference a function or variable via a global pointer
  13333.      to a pointer that is set up by the Microsoft Windows dll library.
  13334.      The pointer name is formed by combining `_imp__' and the function
  13335.      or variable name. The attribute implies `extern' storage.
  13336.  
  13337.      Currently, the attribute is ignored for inlined functions. If the
  13338.      attribute is applied to a symbol _definition_, an error is
  13339.      reported.  If a symbol previously declared `dllimport' is later
  13340.      defined, the attribute is ignored in subsequent references, and a
  13341.      warning is emitted.  The attribute is also overridden by a
  13342.      subsequent declaration as `dllexport'.
  13343.  
  13344.      When applied to C++ classes, the attribute marks non-inlined
  13345.      member functions and static data members as imports.  However, the
  13346.      attribute is ignored for virtual methods to allow creation of
  13347.      vtables using thunks.
  13348.  
  13349.      On cygwin, mingw and arm-pe targets, `__declspec(dllimport)' is
  13350.      recognized as a synonym for `__attribute__ ((dllimport))' for
  13351.      compatibility with other Microsoft Windows compilers.
  13352.  
  13353.      The use of the `dllimport' attribute on functions is not necessary,
  13354.      but provides a small performance benefit by eliminating a thunk in
  13355.      the dll. The use of the `dllimport' attribute on imported
  13356.      variables was required on older versions of GNU ld, but can now be
  13357.      avoided by passing the `--enable-auto-import' switch to ld. As
  13358.      with functions, using the attribute for a variable eliminates a
  13359.      thunk in the dll.
  13360.  
  13361.      One drawback to using this attribute is that a pointer to a
  13362.      function or variable marked as dllimport cannot be used as a
  13363.      constant address. The attribute can be disabled for functions by
  13364.      setting the `-mnop-fun-dllimport' flag.
  13365.  
  13366. `dllexport'
  13367.      On Microsoft Windows targets the `dllexport' attribute causes the
  13368.      compiler to provide a global pointer to a pointer in a dll, so
  13369.      that it can be referenced with the `dllimport' attribute. The
  13370.      pointer name is formed by combining `_imp__' and the function or
  13371.      variable name.
  13372.  
  13373.      Currently, the `dllexport'attribute is ignored for inlined
  13374.      functions, but export can be forced by using the
  13375.      `-fkeep-inline-functions' flag. The attribute is also ignored for
  13376.      undefined symbols.
  13377.  
  13378.      When applied to C++ classes. the attribute marks defined
  13379.      non-inlined member functions and static data members as exports.
  13380.      Static consts initialized in-class are not marked unless they are
  13381.      also defined out-of-class.
  13382.  
  13383.      On cygwin, mingw and arm-pe targets, `__declspec(dllexport)' is
  13384.      recognized as a synonym for `__attribute__ ((dllexport))' for
  13385.      compatibility with other Microsoft Windows compilers.
  13386.  
  13387.      Alternative methods for including the symbol in the dll's export
  13388.      table are to use a .def file with an `EXPORTS' section or, with
  13389.      GNU ld, using the `--export-all' linker flag.
  13390.  
  13391.  
  13392.  You can specify multiple attributes in a declaration by separating them
  13393. by commas within the double parentheses or by immediately following an
  13394. attribute declaration with another attribute declaration.
  13395.  
  13396.  Some people object to the `__attribute__' feature, suggesting that ISO
  13397. C's `#pragma' should be used instead.  At the time `__attribute__' was
  13398. designed, there were two reasons for not doing this.
  13399.  
  13400.   1. It is impossible to generate `#pragma' commands from a macro.
  13401.  
  13402.   2. There is no telling what the same `#pragma' might mean in another
  13403.      compiler.
  13404.  
  13405.  These two reasons applied to almost any application that might have
  13406. been proposed for `#pragma'.  It was basically a mistake to use
  13407. `#pragma' for _anything_.
  13408.  
  13409.  The ISO C99 standard includes `_Pragma', which now allows pragmas to
  13410. be generated from macros.  In addition, a `#pragma GCC' namespace is
  13411. now in use for GCC-specific pragmas.  However, it has been found
  13412. convenient to use `__attribute__' to achieve a natural attachment of
  13413. attributes to their corresponding declarations, whereas `#pragma GCC'
  13414. is of use for constructs that do not naturally form part of the
  13415. grammar.  *Note Miscellaneous Preprocessing Directives: (cpp)Other
  13416. Directives.
  13417.  
  13418. 
  13419. File: gcc,  Node: Attribute Syntax,  Next: Function Prototypes,  Prev: Function Attributes,  Up: C Extensions
  13420.  
  13421. 5.26 Attribute Syntax
  13422. =====================
  13423.  
  13424. This section describes the syntax with which `__attribute__' may be
  13425. used, and the constructs to which attribute specifiers bind, for the C
  13426. language.  Some details may vary for C++ and Objective-C.  Because of
  13427. infelicities in the grammar for attributes, some forms described here
  13428. may not be successfully parsed in all cases.
  13429.  
  13430.  There are some problems with the semantics of attributes in C++.  For
  13431. example, there are no manglings for attributes, although they may affect
  13432. code generation, so problems may arise when attributed types are used in
  13433. conjunction with templates or overloading.  Similarly, `typeid' does
  13434. not distinguish between types with different attributes.  Support for
  13435. attributes in C++ may be restricted in future to attributes on
  13436. declarations only, but not on nested declarators.
  13437.  
  13438.  *Note Function Attributes::, for details of the semantics of attributes
  13439. applying to functions.  *Note Variable Attributes::, for details of the
  13440. semantics of attributes applying to variables.  *Note Type Attributes::,
  13441. for details of the semantics of attributes applying to structure, union
  13442. and enumerated types.
  13443.  
  13444.  An "attribute specifier" is of the form `__attribute__
  13445. ((ATTRIBUTE-LIST))'.  An "attribute list" is a possibly empty
  13446. comma-separated sequence of "attributes", where each attribute is one
  13447. of the following:
  13448.  
  13449.    * Empty.  Empty attributes are ignored.
  13450.  
  13451.    * A word (which may be an identifier such as `unused', or a reserved
  13452.      word such as `const').
  13453.  
  13454.    * A word, followed by, in parentheses, parameters for the attribute.
  13455.      These parameters take one of the following forms:
  13456.  
  13457.         * An identifier.  For example, `mode' attributes use this form.
  13458.  
  13459.         * An identifier followed by a comma and a non-empty
  13460.           comma-separated list of expressions.  For example, `format'
  13461.           attributes use this form.
  13462.  
  13463.         * A possibly empty comma-separated list of expressions.  For
  13464.           example, `format_arg' attributes use this form with the list
  13465.           being a single integer constant expression, and `alias'
  13466.           attributes use this form with the list being a single string
  13467.           constant.
  13468.  
  13469.  An "attribute specifier list" is a sequence of one or more attribute
  13470. specifiers, not separated by any other tokens.
  13471.  
  13472.  In GNU C, an attribute specifier list may appear after the colon
  13473. following a label, other than a `case' or `default' label.  The only
  13474. attribute it makes sense to use after a label is `unused'.  This
  13475. feature is intended for code generated by programs which contains labels
  13476. that may be unused but which is compiled with `-Wall'.  It would not
  13477. normally be appropriate to use in it human-written code, though it
  13478. could be useful in cases where the code that jumps to the label is
  13479. contained within an `#ifdef' conditional. GNU C++ does not permit such
  13480. placement of attribute lists, as it is permissible for a declaration,
  13481. which could begin with an attribute list, to be labelled in C++.
  13482. Declarations cannot be labelled in C90 or C99, so the ambiguity does
  13483. not arise there.
  13484.  
  13485.  An attribute specifier list may appear as part of a `struct', `union'
  13486. or `enum' specifier.  It may go either immediately after the `struct',
  13487. `union' or `enum' keyword, or after the closing brace.  It is ignored
  13488. if the content of the structure, union or enumerated type is not
  13489. defined in the specifier in which the attribute specifier list is
  13490. used--that is, in usages such as `struct __attribute__((foo)) bar' with
  13491. no following opening brace.  Where attribute specifiers follow the
  13492. closing brace, they are considered to relate to the structure, union or
  13493. enumerated type defined, not to any enclosing declaration the type
  13494. specifier appears in, and the type defined is not complete until after
  13495. the attribute specifiers.
  13496.  
  13497.  Otherwise, an attribute specifier appears as part of a declaration,
  13498. counting declarations of unnamed parameters and type names, and relates
  13499. to that declaration (which may be nested in another declaration, for
  13500. example in the case of a parameter declaration), or to a particular
  13501. declarator within a declaration.  Where an attribute specifier is
  13502. applied to a parameter declared as a function or an array, it should
  13503. apply to the function or array rather than the pointer to which the
  13504. parameter is implicitly converted, but this is not yet correctly
  13505. implemented.
  13506.  
  13507.  Any list of specifiers and qualifiers at the start of a declaration may
  13508. contain attribute specifiers, whether or not such a list may in that
  13509. context contain storage class specifiers.  (Some attributes, however,
  13510. are essentially in the nature of storage class specifiers, and only make
  13511. sense where storage class specifiers may be used; for example,
  13512. `section'.)  There is one necessary limitation to this syntax: the
  13513. first old-style parameter declaration in a function definition cannot
  13514. begin with an attribute specifier, because such an attribute applies to
  13515. the function instead by syntax described below (which, however, is not
  13516. yet implemented in this case).  In some other cases, attribute
  13517. specifiers are permitted by this grammar but not yet supported by the
  13518. compiler.  All attribute specifiers in this place relate to the
  13519. declaration as a whole.  In the obsolescent usage where a type of `int'
  13520. is implied by the absence of type specifiers, such a list of specifiers
  13521. and qualifiers may be an attribute specifier list with no other
  13522. specifiers or qualifiers.
  13523.  
  13524.  An attribute specifier list may appear immediately before a declarator
  13525. (other than the first) in a comma-separated list of declarators in a
  13526. declaration of more than one identifier using a single list of
  13527. specifiers and qualifiers.  Such attribute specifiers apply only to the
  13528. identifier before whose declarator they appear.  For example, in
  13529.  
  13530.      __attribute__((noreturn)) void d0 (void),
  13531.          __attribute__((format(printf, 1, 2))) d1 (const char *, ...),
  13532.           d2 (void)
  13533.  
  13534. the `noreturn' attribute applies to all the functions declared; the
  13535. `format' attribute only applies to `d1'.
  13536.  
  13537.  An attribute specifier list may appear immediately before the comma,
  13538. `=' or semicolon terminating the declaration of an identifier other
  13539. than a function definition.  At present, such attribute specifiers apply
  13540. to the declared object or function, but in future they may attach to the
  13541. outermost adjacent declarator.  In simple cases there is no difference,
  13542. but, for example, in
  13543.  
  13544.      void (****f)(void) __attribute__((noreturn));
  13545.  
  13546. at present the `noreturn' attribute applies to `f', which causes a
  13547. warning since `f' is not a function, but in future it may apply to the
  13548. function `****f'.  The precise semantics of what attributes in such
  13549. cases will apply to are not yet specified.  Where an assembler name for
  13550. an object or function is specified (*note Asm Labels::), at present the
  13551. attribute must follow the `asm' specification; in future, attributes
  13552. before the `asm' specification may apply to the adjacent declarator,
  13553. and those after it to the declared object or function.
  13554.  
  13555.  An attribute specifier list may, in future, be permitted to appear
  13556. after the declarator in a function definition (before any old-style
  13557. parameter declarations or the function body).
  13558.  
  13559.  Attribute specifiers may be mixed with type qualifiers appearing inside
  13560. the `[]' of a parameter array declarator, in the C99 construct by which
  13561. such qualifiers are applied to the pointer to which the array is
  13562. implicitly converted.  Such attribute specifiers apply to the pointer,
  13563. not to the array, but at present this is not implemented and they are
  13564. ignored.
  13565.  
  13566.  An attribute specifier list may appear at the start of a nested
  13567. declarator.  At present, there are some limitations in this usage: the
  13568. attributes correctly apply to the declarator, but for most individual
  13569. attributes the semantics this implies are not implemented.  When
  13570. attribute specifiers follow the `*' of a pointer declarator, they may
  13571. be mixed with any type qualifiers present.  The following describes the
  13572. formal semantics of this syntax.  It will make the most sense if you
  13573. are familiar with the formal specification of declarators in the ISO C
  13574. standard.
  13575.  
  13576.  Consider (as in C99 subclause 6.7.5 paragraph 4) a declaration `T D1',
  13577. where `T' contains declaration specifiers that specify a type TYPE
  13578. (such as `int') and `D1' is a declarator that contains an identifier
  13579. IDENT.  The type specified for IDENT for derived declarators whose type
  13580. does not include an attribute specifier is as in the ISO C standard.
  13581.  
  13582.  If `D1' has the form `( ATTRIBUTE-SPECIFIER-LIST D )', and the
  13583. declaration `T D' specifies the type "DERIVED-DECLARATOR-TYPE-LIST
  13584. TYPE" for IDENT, then `T D1' specifies the type
  13585. "DERIVED-DECLARATOR-TYPE-LIST ATTRIBUTE-SPECIFIER-LIST TYPE" for IDENT.
  13586.  
  13587.  If `D1' has the form `* TYPE-QUALIFIER-AND-ATTRIBUTE-SPECIFIER-LIST
  13588. D', and the declaration `T D' specifies the type
  13589. "DERIVED-DECLARATOR-TYPE-LIST TYPE" for IDENT, then `T D1' specifies
  13590. the type "DERIVED-DECLARATOR-TYPE-LIST
  13591. TYPE-QUALIFIER-AND-ATTRIBUTE-SPECIFIER-LIST TYPE" for IDENT.
  13592.  
  13593.  For example,
  13594.  
  13595.      void (__attribute__((noreturn)) ****f) (void);
  13596.  
  13597. specifies the type "pointer to pointer to pointer to pointer to
  13598. non-returning function returning `void'".  As another example,
  13599.  
  13600.      char *__attribute__((aligned(8))) *f;
  13601.  
  13602. specifies the type "pointer to 8-byte-aligned pointer to `char'".  Note
  13603. again that this does not work with most attributes; for example, the
  13604. usage of `aligned' and `noreturn' attributes given above is not yet
  13605. supported.
  13606.  
  13607.  For compatibility with existing code written for compiler versions that
  13608. did not implement attributes on nested declarators, some laxity is
  13609. allowed in the placing of attributes.  If an attribute that only applies
  13610. to types is applied to a declaration, it will be treated as applying to
  13611. the type of that declaration.  If an attribute that only applies to
  13612. declarations is applied to the type of a declaration, it will be treated
  13613. as applying to that declaration; and, for compatibility with code
  13614. placing the attributes immediately before the identifier declared, such
  13615. an attribute applied to a function return type will be treated as
  13616. applying to the function type, and such an attribute applied to an array
  13617. element type will be treated as applying to the array type.  If an
  13618. attribute that only applies to function types is applied to a
  13619. pointer-to-function type, it will be treated as applying to the pointer
  13620. target type; if such an attribute is applied to a function return type
  13621. that is not a pointer-to-function type, it will be treated as applying
  13622. to the function type.
  13623.  
  13624. 
  13625. File: gcc,  Node: Function Prototypes,  Next: C++ Comments,  Prev: Attribute Syntax,  Up: C Extensions
  13626.  
  13627. 5.27 Prototypes and Old-Style Function Definitions
  13628. ==================================================
  13629.  
  13630. GNU C extends ISO C to allow a function prototype to override a later
  13631. old-style non-prototype definition.  Consider the following example:
  13632.  
  13633.      /* Use prototypes unless the compiler is old-fashioned.  */
  13634.      #ifdef __STDC__
  13635.      #define P(x) x
  13636.      #else
  13637.      #define P(x) ()
  13638.      #endif
  13639.  
  13640.      /* Prototype function declaration.  */
  13641.      int isroot P((uid_t));
  13642.  
  13643.      /* Old-style function definition.  */
  13644.      int
  13645.      isroot (x)   /* ??? lossage here ??? */
  13646.           uid_t x;
  13647.      {
  13648.        return x == 0;
  13649.      }
  13650.  
  13651.  Suppose the type `uid_t' happens to be `short'.  ISO C does not allow
  13652. this example, because subword arguments in old-style non-prototype
  13653. definitions are promoted.  Therefore in this example the function
  13654. definition's argument is really an `int', which does not match the
  13655. prototype argument type of `short'.
  13656.  
  13657.  This restriction of ISO C makes it hard to write code that is portable
  13658. to traditional C compilers, because the programmer does not know
  13659. whether the `uid_t' type is `short', `int', or `long'.  Therefore, in
  13660. cases like these GNU C allows a prototype to override a later old-style
  13661. definition.  More precisely, in GNU C, a function prototype argument
  13662. type overrides the argument type specified by a later old-style
  13663. definition if the former type is the same as the latter type before
  13664. promotion.  Thus in GNU C the above example is equivalent to the
  13665. following:
  13666.  
  13667.      int isroot (uid_t);
  13668.  
  13669.      int
  13670.      isroot (uid_t x)
  13671.      {
  13672.        return x == 0;
  13673.      }
  13674.  
  13675. GNU C++ does not support old-style function definitions, so this
  13676. extension is irrelevant.
  13677.  
  13678. 
  13679. File: gcc,  Node: C++ Comments,  Next: Dollar Signs,  Prev: Function Prototypes,  Up: C Extensions
  13680.  
  13681. 5.28 C++ Style Comments
  13682. =======================
  13683.  
  13684. In GNU C, you may use C++ style comments, which start with `//' and
  13685. continue until the end of the line.  Many other C implementations allow
  13686. such comments, and they are included in the 1999 C standard.  However,
  13687. C++ style comments are not recognized if you specify an `-std' option
  13688. specifying a version of ISO C before C99, or `-ansi' (equivalent to
  13689. `-std=c89').
  13690.  
  13691. 
  13692. File: gcc,  Node: Dollar Signs,  Next: Character Escapes,  Prev: C++ Comments,  Up: C Extensions
  13693.  
  13694. 5.29 Dollar Signs in Identifier Names
  13695. =====================================
  13696.  
  13697. In GNU C, you may normally use dollar signs in identifier names.  This
  13698. is because many traditional C implementations allow such identifiers.
  13699. However, dollar signs in identifiers are not supported on a few target
  13700. machines, typically because the target assembler does not allow them.
  13701.  
  13702. 
  13703. File: gcc,  Node: Character Escapes,  Next: Variable Attributes,  Prev: Dollar Signs,  Up: C Extensions
  13704.  
  13705. 5.30 The Character <ESC> in Constants
  13706. =====================================
  13707.  
  13708. You can use the sequence `\e' in a string or character constant to
  13709. stand for the ASCII character <ESC>.
  13710.  
  13711. 
  13712. File: gcc,  Node: Alignment,  Next: Inline,  Prev: Type Attributes,  Up: C Extensions
  13713.  
  13714. 5.31 Inquiring on Alignment of Types or Variables
  13715. =================================================
  13716.  
  13717. The keyword `__alignof__' allows you to inquire about how an object is
  13718. aligned, or the minimum alignment usually required by a type.  Its
  13719. syntax is just like `sizeof'.
  13720.  
  13721.  For example, if the target machine requires a `double' value to be
  13722. aligned on an 8-byte boundary, then `__alignof__ (double)' is 8.  This
  13723. is true on many RISC machines.  On more traditional machine designs,
  13724. `__alignof__ (double)' is 4 or even 2.
  13725.  
  13726.  Some machines never actually require alignment; they allow reference
  13727. to any data type even at an odd address.  For these machines,
  13728. `__alignof__' reports the _recommended_ alignment of a type.
  13729.  
  13730.  If the operand of `__alignof__' is an lvalue rather than a type, its
  13731. value is the required alignment for its type, taking into account any
  13732. minimum alignment specified with GCC's `__attribute__' extension (*note
  13733. Variable Attributes::).  For example, after this declaration:
  13734.  
  13735.      struct foo { int x; char y; } foo1;
  13736.  
  13737. the value of `__alignof__ (foo1.y)' is 1, even though its actual
  13738. alignment is probably 2 or 4, the same as `__alignof__ (int)'.
  13739.  
  13740.  It is an error to ask for the alignment of an incomplete type.
  13741.  
  13742. 
  13743. File: gcc,  Node: Variable Attributes,  Next: Type Attributes,  Prev: Character Escapes,  Up: C Extensions
  13744.  
  13745. 5.32 Specifying Attributes of Variables
  13746. =======================================
  13747.  
  13748. The keyword `__attribute__' allows you to specify special attributes of
  13749. variables or structure fields.  This keyword is followed by an
  13750. attribute specification inside double parentheses.  Some attributes are
  13751. currently defined generically for variables.  Other attributes are
  13752. defined for variables on particular target systems.  Other attributes
  13753. are available for functions (*note Function Attributes::) and for types
  13754. (*note Type Attributes::).  Other front ends might define more
  13755. attributes (*note Extensions to the C++ Language: C++ Extensions.).
  13756.  
  13757.  You may also specify attributes with `__' preceding and following each
  13758. keyword.  This allows you to use them in header files without being
  13759. concerned about a possible macro of the same name.  For example, you
  13760. may use `__aligned__' instead of `aligned'.
  13761.  
  13762.  *Note Attribute Syntax::, for details of the exact syntax for using
  13763. attributes.
  13764.  
  13765. `aligned (ALIGNMENT)'
  13766.      This attribute specifies a minimum alignment for the variable or
  13767.      structure field, measured in bytes.  For example, the declaration:
  13768.  
  13769.           int x __attribute__ ((aligned (16))) = 0;
  13770.  
  13771.      causes the compiler to allocate the global variable `x' on a
  13772.      16-byte boundary.  On a 68040, this could be used in conjunction
  13773.      with an `asm' expression to access the `move16' instruction which
  13774.      requires 16-byte aligned operands.
  13775.  
  13776.      You can also specify the alignment of structure fields.  For
  13777.      example, to create a double-word aligned `int' pair, you could
  13778.      write:
  13779.  
  13780.           struct foo { int x[2] __attribute__ ((aligned (8))); };
  13781.  
  13782.      This is an alternative to creating a union with a `double' member
  13783.      that forces the union to be double-word aligned.
  13784.  
  13785.      As in the preceding examples, you can explicitly specify the
  13786.      alignment (in bytes) that you wish the compiler to use for a given
  13787.      variable or structure field.  Alternatively, you can leave out the
  13788.      alignment factor and just ask the compiler to align a variable or
  13789.      field to the maximum useful alignment for the target machine you
  13790.      are compiling for.  For example, you could write:
  13791.  
  13792.           short array[3] __attribute__ ((aligned));
  13793.  
  13794.      Whenever you leave out the alignment factor in an `aligned'
  13795.      attribute specification, the compiler automatically sets the
  13796.      alignment for the declared variable or field to the largest
  13797.      alignment which is ever used for any data type on the target
  13798.      machine you are compiling for.  Doing this can often make copy
  13799.      operations more efficient, because the compiler can use whatever
  13800.      instructions copy the biggest chunks of memory when performing
  13801.      copies to or from the variables or fields that you have aligned
  13802.      this way.
  13803.  
  13804.      The `aligned' attribute can only increase the alignment; but you
  13805.      can decrease it by specifying `packed' as well.  See below.
  13806.  
  13807.      Note that the effectiveness of `aligned' attributes may be limited
  13808.      by inherent limitations in your linker.  On many systems, the
  13809.      linker is only able to arrange for variables to be aligned up to a
  13810.      certain maximum alignment.  (For some linkers, the maximum
  13811.      supported alignment may be very very small.)  If your linker is
  13812.      only able to align variables up to a maximum of 8 byte alignment,
  13813.      then specifying `aligned(16)' in an `__attribute__' will still
  13814.      only provide you with 8 byte alignment.  See your linker
  13815.      documentation for further information.
  13816.  
  13817. `cleanup (CLEANUP_FUNCTION)'
  13818.      The `cleanup' attribute runs a function when the variable goes out
  13819.      of scope.  This attribute can only be applied to auto function
  13820.      scope variables; it may not be applied to parameters or variables
  13821.      with static storage duration.  The function must take one
  13822.      parameter, a pointer to a type compatible with the variable.  The
  13823.      return value of the function (if any) is ignored.
  13824.  
  13825.      If `-fexceptions' is enabled, then CLEANUP_FUNCTION will be run
  13826.      during the stack unwinding that happens during the processing of
  13827.      the exception.  Note that the `cleanup' attribute does not allow
  13828.      the exception to be caught, only to perform an action.  It is
  13829.      undefined what happens if CLEANUP_FUNCTION does not return
  13830.      normally.
  13831.  
  13832. `common'
  13833. `nocommon'
  13834.      The `common' attribute requests GCC to place a variable in
  13835.      "common" storage.  The `nocommon' attribute requests the opposite
  13836.      - to allocate space for it directly.
  13837.  
  13838.      These attributes override the default chosen by the `-fno-common'
  13839.      and `-fcommon' flags respectively.
  13840.  
  13841. `deprecated'
  13842.      The `deprecated' attribute results in a warning if the variable is
  13843.      used anywhere in the source file.  This is useful when identifying
  13844.      variables that are expected to be removed in a future version of a
  13845.      program.  The warning also includes the location of the declaration
  13846.      of the deprecated variable, to enable users to easily find further
  13847.      information about why the variable is deprecated, or what they
  13848.      should do instead.  Note that the warning only occurs for uses:
  13849.  
  13850.           extern int old_var __attribute__ ((deprecated));
  13851.           extern int old_var;
  13852.           int new_fn () { return old_var; }
  13853.  
  13854.      results in a warning on line 3 but not line 2.
  13855.  
  13856.      The `deprecated' attribute can also be used for functions and
  13857.      types (*note Function Attributes::, *note Type Attributes::.)
  13858.  
  13859. `mode (MODE)'
  13860.      This attribute specifies the data type for the
  13861.      declaration--whichever type corresponds to the mode MODE.  This in
  13862.      effect lets you request an integer or floating point type
  13863.      according to its width.
  13864.  
  13865.      You may also specify a mode of `byte' or `__byte__' to indicate
  13866.      the mode corresponding to a one-byte integer, `word' or `__word__'
  13867.      for the mode of a one-word integer, and `pointer' or `__pointer__'
  13868.      for the mode used to represent pointers.
  13869.  
  13870. `packed'
  13871.      The `packed' attribute specifies that a variable or structure field
  13872.      should have the smallest possible alignment--one byte for a
  13873.      variable, and one bit for a field, unless you specify a larger
  13874.      value with the `aligned' attribute.
  13875.  
  13876.      Here is a structure in which the field `x' is packed, so that it
  13877.      immediately follows `a':
  13878.  
  13879.           struct foo
  13880.           {
  13881.             char a;
  13882.             int x[2] __attribute__ ((packed));
  13883.           };
  13884.  
  13885. `section ("SECTION-NAME")'
  13886.      Normally, the compiler places the objects it generates in sections
  13887.      like `data' and `bss'.  Sometimes, however, you need additional
  13888.      sections, or you need certain particular variables to appear in
  13889.      special sections, for example to map to special hardware.  The
  13890.      `section' attribute specifies that a variable (or function) lives
  13891.      in a particular section.  For example, this small program uses
  13892.      several specific section names:
  13893.  
  13894.           struct duart a __attribute__ ((section ("DUART_A"))) = { 0 };
  13895.           struct duart b __attribute__ ((section ("DUART_B"))) = { 0 };
  13896.           char stack[10000] __attribute__ ((section ("STACK"))) = { 0 };
  13897.           int init_data __attribute__ ((section ("INITDATA"))) = 0;
  13898.  
  13899.           main()
  13900.           {
  13901.             /* Initialize stack pointer */
  13902.             init_sp (stack + sizeof (stack));
  13903.  
  13904.             /* Initialize initialized data */
  13905.             memcpy (&init_data, &data, &edata - &data);
  13906.  
  13907.             /* Turn on the serial ports */
  13908.             init_duart (&a);
  13909.             init_duart (&b);
  13910.           }
  13911.  
  13912.      Use the `section' attribute with an _initialized_ definition of a
  13913.      _global_ variable, as shown in the example.  GCC issues a warning
  13914.      and otherwise ignores the `section' attribute in uninitialized
  13915.      variable declarations.
  13916.  
  13917.      You may only use the `section' attribute with a fully initialized
  13918.      global definition because of the way linkers work.  The linker
  13919.      requires each object be defined once, with the exception that
  13920.      uninitialized variables tentatively go in the `common' (or `bss')
  13921.      section and can be multiply "defined".  You can force a variable
  13922.      to be initialized with the `-fno-common' flag or the `nocommon'
  13923.      attribute.
  13924.  
  13925.      Some file formats do not support arbitrary sections so the
  13926.      `section' attribute is not available on all platforms.  If you
  13927.      need to map the entire contents of a module to a particular
  13928.      section, consider using the facilities of the linker instead.
  13929.  
  13930. `shared'
  13931.      On Microsoft Windows, in addition to putting variable definitions
  13932.      in a named section, the section can also be shared among all
  13933.      running copies of an executable or DLL.  For example, this small
  13934.      program defines shared data by putting it in a named section
  13935.      `shared' and marking the section shareable:
  13936.  
  13937.           int foo __attribute__((section ("shared"), shared)) = 0;
  13938.  
  13939.           int
  13940.           main()
  13941.           {
  13942.             /* Read and write foo.  All running
  13943.                copies see the same value.  */
  13944.             return 0;
  13945.           }
  13946.  
  13947.      You may only use the `shared' attribute along with `section'
  13948.      attribute with a fully initialized global definition because of
  13949.      the way linkers work.  See `section' attribute for more
  13950.      information.
  13951.  
  13952.      The `shared' attribute is only available on Microsoft Windows.
  13953.  
  13954. `tls_model ("TLS_MODEL")'
  13955.      The `tls_model' attribute sets thread-local storage model (*note
  13956.      Thread-Local::) of a particular `__thread' variable, overriding
  13957.      `-ftls-model=' command line switch on a per-variable basis.  The
  13958.      TLS_MODEL argument should be one of `global-dynamic',
  13959.      `local-dynamic', `initial-exec' or `local-exec'.
  13960.  
  13961.      Not all targets support this attribute.
  13962.  
  13963. `transparent_union'
  13964.      This attribute, attached to a function parameter which is a union,
  13965.      means that the corresponding argument may have the type of any
  13966.      union member, but the argument is passed as if its type were that
  13967.      of the first union member.  For more details see *Note Type
  13968.      Attributes::.  You can also use this attribute on a `typedef' for
  13969.      a union data type; then it applies to all function parameters with
  13970.      that type.
  13971.  
  13972. `unused'
  13973.      This attribute, attached to a variable, means that the variable is
  13974.      meant to be possibly unused.  GCC will not produce a warning for
  13975.      this variable.
  13976.  
  13977. `vector_size (BYTES)'
  13978.      This attribute specifies the vector size for the variable,
  13979.      measured in bytes.  For example, the declaration:
  13980.  
  13981.           int foo __attribute__ ((vector_size (16)));
  13982.  
  13983.      causes the compiler to set the mode for `foo', to be 16 bytes,
  13984.      divided into `int' sized units.  Assuming a 32-bit int (a vector of
  13985.      4 units of 4 bytes), the corresponding mode of `foo' will be V4SI.
  13986.  
  13987.      This attribute is only applicable to integral and float scalars,
  13988.      although arrays, pointers, and function return values are allowed
  13989.      in conjunction with this construct.
  13990.  
  13991.      Aggregates with this attribute are invalid, even if they are of
  13992.      the same size as a corresponding scalar.  For example, the
  13993.      declaration:
  13994.  
  13995.           struct S { int a; };
  13996.           struct S  __attribute__ ((vector_size (16))) foo;
  13997.  
  13998.      is invalid even if the size of the structure is the same as the
  13999.      size of the `int'.
  14000.  
  14001. `weak'
  14002.      The `weak' attribute is described in *Note Function Attributes::.
  14003.  
  14004. `dllimport'
  14005.      The `dllimport' attribute is described in *Note Function
  14006.      Attributes::.
  14007.  
  14008. `dlexport'
  14009.      The `dllexport' attribute is described in *Note Function
  14010.      Attributes::.
  14011.  
  14012.  
  14013. 5.32.1 M32R/D Variable Attributes
  14014. ---------------------------------
  14015.  
  14016. One attribute is currently defined for the M32R/D.
  14017.  
  14018. `model (MODEL-NAME)'
  14019.      Use this attribute on the M32R/D to set the addressability of an
  14020.      object.  The identifier MODEL-NAME is one of `small', `medium', or
  14021.      `large', representing each of the code models.
  14022.  
  14023.      Small model objects live in the lower 16MB of memory (so that their
  14024.      addresses can be loaded with the `ld24' instruction).
  14025.  
  14026.      Medium and large model objects may live anywhere in the 32-bit
  14027.      address space (the compiler will generate `seth/add3' instructions
  14028.      to load their addresses).
  14029.  
  14030. 5.32.2 i386 Variable Attributes
  14031. -------------------------------
  14032.  
  14033. Two attributes are currently defined for i386 configurations:
  14034. `ms_struct' and `gcc_struct'
  14035.  
  14036. `ms_struct'
  14037. `gcc_struct'
  14038.      If `packed' is used on a structure, or if bit-fields are used it
  14039.      may be that the Microsoft ABI packs them differently than GCC
  14040.      would normally pack them.  Particularly when moving packed data
  14041.      between functions compiled with GCC and the native Microsoft
  14042.      compiler (either via function call or as data in a file), it may
  14043.      be necessary to access either format.
  14044.  
  14045.      Currently `-m[no-]ms-bitfields' is provided for the Microsoft
  14046.      Windows X86 compilers to match the native Microsoft compiler.
  14047.  
  14048. 
  14049. File: gcc,  Node: Type Attributes,  Next: Alignment,  Prev: Variable Attributes,  Up: C Extensions
  14050.  
  14051. 5.33 Specifying Attributes of Types
  14052. ===================================
  14053.  
  14054. The keyword `__attribute__' allows you to specify special attributes of
  14055. `struct' and `union' types when you define such types.  This keyword is
  14056. followed by an attribute specification inside double parentheses.  Six
  14057. attributes are currently defined for types: `aligned', `packed',
  14058. `transparent_union', `unused', `deprecated' and `may_alias'.  Other
  14059. attributes are defined for functions (*note Function Attributes::) and
  14060. for variables (*note Variable Attributes::).
  14061.  
  14062.  You may also specify any one of these attributes with `__' preceding
  14063. and following its keyword.  This allows you to use these attributes in
  14064. header files without being concerned about a possible macro of the same
  14065. name.  For example, you may use `__aligned__' instead of `aligned'.
  14066.  
  14067.  You may specify the `aligned' and `transparent_union' attributes
  14068. either in a `typedef' declaration or just past the closing curly brace
  14069. of a complete enum, struct or union type _definition_ and the `packed'
  14070. attribute only past the closing brace of a definition.
  14071.  
  14072.  You may also specify attributes between the enum, struct or union tag
  14073. and the name of the type rather than after the closing brace.
  14074.  
  14075.  *Note Attribute Syntax::, for details of the exact syntax for using
  14076. attributes.
  14077.  
  14078. `aligned (ALIGNMENT)'
  14079.      This attribute specifies a minimum alignment (in bytes) for
  14080.      variables of the specified type.  For example, the declarations:
  14081.  
  14082.           struct S { short f[3]; } __attribute__ ((aligned (8)));
  14083.           typedef int more_aligned_int __attribute__ ((aligned (8)));
  14084.  
  14085.      force the compiler to insure (as far as it can) that each variable
  14086.      whose type is `struct S' or `more_aligned_int' will be allocated
  14087.      and aligned _at least_ on a 8-byte boundary.  On a SPARC, having
  14088.      all variables of type `struct S' aligned to 8-byte boundaries
  14089.      allows the compiler to use the `ldd' and `std' (doubleword load and
  14090.      store) instructions when copying one variable of type `struct S' to
  14091.      another, thus improving run-time efficiency.
  14092.  
  14093.      Note that the alignment of any given `struct' or `union' type is
  14094.      required by the ISO C standard to be at least a perfect multiple of
  14095.      the lowest common multiple of the alignments of all of the members
  14096.      of the `struct' or `union' in question.  This means that you _can_
  14097.      effectively adjust the alignment of a `struct' or `union' type by
  14098.      attaching an `aligned' attribute to any one of the members of such
  14099.      a type, but the notation illustrated in the example above is a
  14100.      more obvious, intuitive, and readable way to request the compiler
  14101.      to adjust the alignment of an entire `struct' or `union' type.
  14102.  
  14103.      As in the preceding example, you can explicitly specify the
  14104.      alignment (in bytes) that you wish the compiler to use for a given
  14105.      `struct' or `union' type.  Alternatively, you can leave out the
  14106.      alignment factor and just ask the compiler to align a type to the
  14107.      maximum useful alignment for the target machine you are compiling
  14108.      for.  For example, you could write:
  14109.  
  14110.           struct S { short f[3]; } __attribute__ ((aligned));
  14111.  
  14112.      Whenever you leave out the alignment factor in an `aligned'
  14113.      attribute specification, the compiler automatically sets the
  14114.      alignment for the type to the largest alignment which is ever used
  14115.      for any data type on the target machine you are compiling for.
  14116.      Doing this can often make copy operations more efficient, because
  14117.      the compiler can use whatever instructions copy the biggest chunks
  14118.      of memory when performing copies to or from the variables which
  14119.      have types that you have aligned this way.
  14120.  
  14121.      In the example above, if the size of each `short' is 2 bytes, then
  14122.      the size of the entire `struct S' type is 6 bytes.  The smallest
  14123.      power of two which is greater than or equal to that is 8, so the
  14124.      compiler sets the alignment for the entire `struct S' type to 8
  14125.      bytes.
  14126.  
  14127.      Note that although you can ask the compiler to select a
  14128.      time-efficient alignment for a given type and then declare only
  14129.      individual stand-alone objects of that type, the compiler's
  14130.      ability to select a time-efficient alignment is primarily useful
  14131.      only when you plan to create arrays of variables having the
  14132.      relevant (efficiently aligned) type.  If you declare or use arrays
  14133.      of variables of an efficiently-aligned type, then it is likely
  14134.      that your program will also be doing pointer arithmetic (or
  14135.      subscripting, which amounts to the same thing) on pointers to the
  14136.      relevant type, and the code that the compiler generates for these
  14137.      pointer arithmetic operations will often be more efficient for
  14138.      efficiently-aligned types than for other types.
  14139.  
  14140.      The `aligned' attribute can only increase the alignment; but you
  14141.      can decrease it by specifying `packed' as well.  See below.
  14142.  
  14143.      Note that the effectiveness of `aligned' attributes may be limited
  14144.      by inherent limitations in your linker.  On many systems, the
  14145.      linker is only able to arrange for variables to be aligned up to a
  14146.      certain maximum alignment.  (For some linkers, the maximum
  14147.      supported alignment may be very very small.)  If your linker is
  14148.      only able to align variables up to a maximum of 8 byte alignment,
  14149.      then specifying `aligned(16)' in an `__attribute__' will still
  14150.      only provide you with 8 byte alignment.  See your linker
  14151.      documentation for further information.
  14152.  
  14153. `packed'
  14154.      This attribute, attached to `struct' or `union' type definition,
  14155.      specifies that each member of the structure or union is placed to
  14156.      minimize the memory required. When attached to an `enum'
  14157.      definition, it indicates that the smallest integral type should be
  14158.      used.
  14159.  
  14160.      Specifying this attribute for `struct' and `union' types is
  14161.      equivalent to specifying the `packed' attribute on each of the
  14162.      structure or union members.  Specifying the `-fshort-enums' flag
  14163.      on the line is equivalent to specifying the `packed' attribute on
  14164.      all `enum' definitions.
  14165.  
  14166.      In the following example `struct my_packed_struct''s members are
  14167.      packed closely together, but the internal layout of its `s' member
  14168.      is not packed - to do that, `struct my_unpacked_struct' would need
  14169.      to be packed too.
  14170.  
  14171.           struct my_unpacked_struct
  14172.            {
  14173.               char c;
  14174.               int i;
  14175.            };
  14176.  
  14177.           struct my_packed_struct __attribute__ ((__packed__))
  14178.             {
  14179.                char c;
  14180.                int  i;
  14181.                struct my_unpacked_struct s;
  14182.             };
  14183.  
  14184.      You may only specify this attribute on the definition of a `enum',
  14185.      `struct' or `union', not on a `typedef' which does not also define
  14186.      the enumerated type, structure or union.
  14187.  
  14188. `transparent_union'
  14189.      This attribute, attached to a `union' type definition, indicates
  14190.      that any function parameter having that union type causes calls to
  14191.      that function to be treated in a special way.
  14192.  
  14193.      First, the argument corresponding to a transparent union type can
  14194.      be of any type in the union; no cast is required.  Also, if the
  14195.      union contains a pointer type, the corresponding argument can be a
  14196.      null pointer constant or a void pointer expression; and if the
  14197.      union contains a void pointer type, the corresponding argument can
  14198.      be any pointer expression.  If the union member type is a pointer,
  14199.      qualifiers like `const' on the referenced type must be respected,
  14200.      just as with normal pointer conversions.
  14201.  
  14202.      Second, the argument is passed to the function using the calling
  14203.      conventions of the first member of the transparent union, not the
  14204.      calling conventions of the union itself.  All members of the union
  14205.      must have the same machine representation; this is necessary for
  14206.      this argument passing to work properly.
  14207.  
  14208.      Transparent unions are designed for library functions that have
  14209.      multiple interfaces for compatibility reasons.  For example,
  14210.      suppose the `wait' function must accept either a value of type
  14211.      `int *' to comply with Posix, or a value of type `union wait *' to
  14212.      comply with the 4.1BSD interface.  If `wait''s parameter were
  14213.      `void *', `wait' would accept both kinds of arguments, but it
  14214.      would also accept any other pointer type and this would make
  14215.      argument type checking less useful.  Instead, `<sys/wait.h>' might
  14216.      define the interface as follows:
  14217.  
  14218.           typedef union
  14219.             {
  14220.               int *__ip;
  14221.               union wait *__up;
  14222.             } wait_status_ptr_t __attribute__ ((__transparent_union__));
  14223.  
  14224.           pid_t wait (wait_status_ptr_t);
  14225.  
  14226.      This interface allows either `int *' or `union wait *' arguments
  14227.      to be passed, using the `int *' calling convention.  The program
  14228.      can call `wait' with arguments of either type:
  14229.  
  14230.           int w1 () { int w; return wait (&w); }
  14231.           int w2 () { union wait w; return wait (&w); }
  14232.  
  14233.      With this interface, `wait''s implementation might look like this:
  14234.  
  14235.           pid_t wait (wait_status_ptr_t p)
  14236.           {
  14237.             return waitpid (-1, p.__ip, 0);
  14238.           }
  14239.  
  14240. `unused'
  14241.      When attached to a type (including a `union' or a `struct'), this
  14242.      attribute means that variables of that type are meant to appear
  14243.      possibly unused.  GCC will not produce a warning for any variables
  14244.      of that type, even if the variable appears to do nothing.  This is
  14245.      often the case with lock or thread classes, which are usually
  14246.      defined and then not referenced, but contain constructors and
  14247.      destructors that have nontrivial bookkeeping functions.
  14248.  
  14249. `deprecated'
  14250.      The `deprecated' attribute results in a warning if the type is
  14251.      used anywhere in the source file.  This is useful when identifying
  14252.      types that are expected to be removed in a future version of a
  14253.      program.  If possible, the warning also includes the location of
  14254.      the declaration of the deprecated type, to enable users to easily
  14255.      find further information about why the type is deprecated, or what
  14256.      they should do instead.  Note that the warnings only occur for
  14257.      uses and then only if the type is being applied to an identifier
  14258.      that itself is not being declared as deprecated.
  14259.  
  14260.           typedef int T1 __attribute__ ((deprecated));
  14261.           T1 x;
  14262.           typedef T1 T2;
  14263.           T2 y;
  14264.           typedef T1 T3 __attribute__ ((deprecated));
  14265.           T3 z __attribute__ ((deprecated));
  14266.  
  14267.      results in a warning on line 2 and 3 but not lines 4, 5, or 6.  No
  14268.      warning is issued for line 4 because T2 is not explicitly
  14269.      deprecated.  Line 5 has no warning because T3 is explicitly
  14270.      deprecated.  Similarly for line 6.
  14271.  
  14272.      The `deprecated' attribute can also be used for functions and
  14273.      variables (*note Function Attributes::, *note Variable
  14274.      Attributes::.)
  14275.  
  14276. `may_alias'
  14277.      Accesses to objects with types with this attribute are not
  14278.      subjected to type-based alias analysis, but are instead assumed to
  14279.      be able to alias any other type of objects, just like the `char'
  14280.      type.  See `-fstrict-aliasing' for more information on aliasing
  14281.      issues.
  14282.  
  14283.      Example of use:
  14284.  
  14285.           typedef short __attribute__((__may_alias__)) short_a;
  14286.  
  14287.           int
  14288.           main (void)
  14289.           {
  14290.             int a = 0x12345678;
  14291.             short_a *b = (short_a *) &a;
  14292.  
  14293.             b[1] = 0;
  14294.  
  14295.             if (a == 0x12345678)
  14296.               abort();
  14297.  
  14298.             exit(0);
  14299.           }
  14300.  
  14301.      If you replaced `short_a' with `short' in the variable
  14302.      declaration, the above program would abort when compiled with
  14303.      `-fstrict-aliasing', which is on by default at `-O2' or above in
  14304.      recent GCC versions.
  14305.  
  14306. 5.33.1 i386 Type Attributes
  14307. ---------------------------
  14308.  
  14309.      Two attributes are currently defined for i386 configurations:
  14310. `ms_struct' and `gcc_struct'
  14311.  
  14312. `ms_struct'
  14313. `gcc_struct'
  14314.      If `packed' is used on a structure, or if bit-fields are used it
  14315.      may be that the Microsoft ABI packs them differently than GCC
  14316.      would normally pack them.  Particularly when moving packed data
  14317.      between functions compiled with GCC and the native Microsoft
  14318.      compiler (either via function call or as data in a file), it may
  14319.      be necessary to access either format.
  14320.  
  14321.      Currently `-m[no-]ms-bitfields' is provided for the Microsoft
  14322.      Windows X86 compilers to match the native Microsoft compiler.
  14323.  
  14324.  To specify multiple attributes, separate them by commas within the
  14325. double parentheses: for example, `__attribute__ ((aligned (16),
  14326. packed))'.
  14327.  
  14328. 
  14329. File: gcc,  Node: Inline,  Next: Extended Asm,  Prev: Alignment,  Up: C Extensions
  14330.  
  14331. 5.34 An Inline Function is As Fast As a Macro
  14332. =============================================
  14333.  
  14334. By declaring a function `inline', you can direct GCC to integrate that
  14335. function's code into the code for its callers.  This makes execution
  14336. faster by eliminating the function-call overhead; in addition, if any
  14337. of the actual argument values are constant, their known values may
  14338. permit simplifications at compile time so that not all of the inline
  14339. function's code needs to be included.  The effect on code size is less
  14340. predictable; object code may be larger or smaller with function
  14341. inlining, depending on the particular case.  Inlining of functions is an
  14342. optimization and it really "works" only in optimizing compilation.  If
  14343. you don't use `-O', no function is really inline.
  14344.  
  14345.  Inline functions are included in the ISO C99 standard, but there are
  14346. currently substantial differences between what GCC implements and what
  14347. the ISO C99 standard requires.
  14348.  
  14349.  To declare a function inline, use the `inline' keyword in its
  14350. declaration, like this:
  14351.  
  14352.      inline int
  14353.      inc (int *a)
  14354.      {
  14355.        (*a)++;
  14356.      }
  14357.  
  14358.  (If you are writing a header file to be included in ISO C programs,
  14359. write `__inline__' instead of `inline'.  *Note Alternate Keywords::.)
  14360. You can also make all "simple enough" functions inline with the option
  14361. `-finline-functions'.
  14362.  
  14363.  Note that certain usages in a function definition can make it
  14364. unsuitable for inline substitution.  Among these usages are: use of
  14365. varargs, use of alloca, use of variable sized data types (*note
  14366. Variable Length::), use of computed goto (*note Labels as Values::),
  14367. use of nonlocal goto, and nested functions (*note Nested Functions::).
  14368. Using `-Winline' will warn when a function marked `inline' could not be
  14369. substituted, and will give the reason for the failure.
  14370.  
  14371.  Note that in C and Objective-C, unlike C++, the `inline' keyword does
  14372. not affect the linkage of the function.
  14373.  
  14374.  GCC automatically inlines member functions defined within the class
  14375. body of C++ programs even if they are not explicitly declared `inline'.
  14376. (You can override this with `-fno-default-inline'; *note Options
  14377. Controlling C++ Dialect: C++ Dialect Options.)
  14378.  
  14379.  When a function is both inline and `static', if all calls to the
  14380. function are integrated into the caller, and the function's address is
  14381. never used, then the function's own assembler code is never referenced.
  14382. In this case, GCC does not actually output assembler code for the
  14383. function, unless you specify the option `-fkeep-inline-functions'.
  14384. Some calls cannot be integrated for various reasons (in particular,
  14385. calls that precede the function's definition cannot be integrated, and
  14386. neither can recursive calls within the definition).  If there is a
  14387. nonintegrated call, then the function is compiled to assembler code as
  14388. usual.  The function must also be compiled as usual if the program
  14389. refers to its address, because that can't be inlined.
  14390.  
  14391.  When an inline function is not `static', then the compiler must assume
  14392. that there may be calls from other source files; since a global symbol
  14393. can be defined only once in any program, the function must not be
  14394. defined in the other source files, so the calls therein cannot be
  14395. integrated.  Therefore, a non-`static' inline function is always
  14396. compiled on its own in the usual fashion.
  14397.  
  14398.  If you specify both `inline' and `extern' in the function definition,
  14399. then the definition is used only for inlining.  In no case is the
  14400. function compiled on its own, not even if you refer to its address
  14401. explicitly.  Such an address becomes an external reference, as if you
  14402. had only declared the function, and had not defined it.
  14403.  
  14404.  This combination of `inline' and `extern' has almost the effect of a
  14405. macro.  The way to use it is to put a function definition in a header
  14406. file with these keywords, and put another copy of the definition
  14407. (lacking `inline' and `extern') in a library file.  The definition in
  14408. the header file will cause most calls to the function to be inlined.
  14409. If any uses of the function remain, they will refer to the single copy
  14410. in the library.
  14411.  
  14412.  Since GCC eventually will implement ISO C99 semantics for inline
  14413. functions, it is best to use `static inline' only to guarantee
  14414. compatibility.  (The existing semantics will remain available when
  14415. `-std=gnu89' is specified, but eventually the default will be
  14416. `-std=gnu99' and that will implement the C99 semantics, though it does
  14417. not do so yet.)
  14418.  
  14419.  GCC does not inline any functions when not optimizing unless you
  14420. specify the `always_inline' attribute for the function, like this:
  14421.  
  14422.      /* Prototype.  */
  14423.      inline void foo (const char) __attribute__((always_inline));
  14424.  
  14425. 
  14426. File: gcc,  Node: Extended Asm,  Next: Constraints,  Prev: Inline,  Up: C Extensions
  14427.  
  14428. 5.35 Assembler Instructions with C Expression Operands
  14429. ======================================================
  14430.  
  14431. In an assembler instruction using `asm', you can specify the operands
  14432. of the instruction using C expressions.  This means you need not guess
  14433. which registers or memory locations will contain the data you want to
  14434. use.
  14435.  
  14436.  You must specify an assembler instruction template much like what
  14437. appears in a machine description, plus an operand constraint string for
  14438. each operand.
  14439.  
  14440.  For example, here is how to use the 68881's `fsinx' instruction:
  14441.  
  14442.      asm ("fsinx %1,%0" : "=f" (result) : "f" (angle));
  14443.  
  14444. Here `angle' is the C expression for the input operand while `result'
  14445. is that of the output operand.  Each has `"f"' as its operand
  14446. constraint, saying that a floating point register is required.  The `='
  14447. in `=f' indicates that the operand is an output; all output operands'
  14448. constraints must use `='.  The constraints use the same language used
  14449. in the machine description (*note Constraints::).
  14450.  
  14451.  Each operand is described by an operand-constraint string followed by
  14452. the C expression in parentheses.  A colon separates the assembler
  14453. template from the first output operand and another separates the last
  14454. output operand from the first input, if any.  Commas separate the
  14455. operands within each group.  The total number of operands is currently
  14456. limited to 30; this limitation may be lifted in some future version of
  14457. GCC.
  14458.  
  14459.  If there are no output operands but there are input operands, you must
  14460. place two consecutive colons surrounding the place where the output
  14461. operands would go.
  14462.  
  14463.  As of GCC version 3.1, it is also possible to specify input and output
  14464. operands using symbolic names which can be referenced within the
  14465. assembler code.  These names are specified inside square brackets
  14466. preceding the constraint string, and can be referenced inside the
  14467. assembler code using `%[NAME]' instead of a percentage sign followed by
  14468. the operand number.  Using named operands the above example could look
  14469. like:
  14470.  
  14471.      asm ("fsinx %[angle],%[output]"
  14472.           : [output] "=f" (result)
  14473.           : [angle] "f" (angle));
  14474.  
  14475. Note that the symbolic operand names have no relation whatsoever to
  14476. other C identifiers.  You may use any name you like, even those of
  14477. existing C symbols, but you must ensure that no two operands within the
  14478. same assembler construct use the same symbolic name.
  14479.  
  14480.  Output operand expressions must be lvalues; the compiler can check
  14481. this.  The input operands need not be lvalues.  The compiler cannot
  14482. check whether the operands have data types that are reasonable for the
  14483. instruction being executed.  It does not parse the assembler instruction
  14484. template and does not know what it means or even whether it is valid
  14485. assembler input.  The extended `asm' feature is most often used for
  14486. machine instructions the compiler itself does not know exist.  If the
  14487. output expression cannot be directly addressed (for example, it is a
  14488. bit-field), your constraint must allow a register.  In that case, GCC
  14489. will use the register as the output of the `asm', and then store that
  14490. register into the output.
  14491.  
  14492.  The ordinary output operands must be write-only; GCC will assume that
  14493. the values in these operands before the instruction are dead and need
  14494. not be generated.  Extended asm supports input-output or read-write
  14495. operands.  Use the constraint character `+' to indicate such an operand
  14496. and list it with the output operands.  You should only use read-write
  14497. operands when the constraints for the operand (or the operand in which
  14498. only some of the bits are to be changed) allow a register.
  14499.  
  14500.  You may, as an alternative, logically split its function into two
  14501. separate operands, one input operand and one write-only output operand.
  14502. The connection between them is expressed by constraints which say they
  14503. need to be in the same location when the instruction executes.  You can
  14504. use the same C expression for both operands, or different expressions.
  14505. For example, here we write the (fictitious) `combine' instruction with
  14506. `bar' as its read-only source operand and `foo' as its read-write
  14507. destination:
  14508.  
  14509.      asm ("combine %2,%0" : "=r" (foo) : "0" (foo), "g" (bar));
  14510.  
  14511. The constraint `"0"' for operand 1 says that it must occupy the same
  14512. location as operand 0.  A number in constraint is allowed only in an
  14513. input operand and it must refer to an output operand.
  14514.  
  14515.  Only a number in the constraint can guarantee that one operand will be
  14516. in the same place as another.  The mere fact that `foo' is the value of
  14517. both operands is not enough to guarantee that they will be in the same
  14518. place in the generated assembler code.  The following would not work
  14519. reliably:
  14520.  
  14521.      asm ("combine %2,%0" : "=r" (foo) : "r" (foo), "g" (bar));
  14522.  
  14523.  Various optimizations or reloading could cause operands 0 and 1 to be
  14524. in different registers; GCC knows no reason not to do so.  For example,
  14525. the compiler might find a copy of the value of `foo' in one register and
  14526. use it for operand 1, but generate the output operand 0 in a different
  14527. register (copying it afterward to `foo''s own address).  Of course,
  14528. since the register for operand 1 is not even mentioned in the assembler
  14529. code, the result will not work, but GCC can't tell that.
  14530.  
  14531.  As of GCC version 3.1, one may write `[NAME]' instead of the operand
  14532. number for a matching constraint.  For example:
  14533.  
  14534.      asm ("cmoveq %1,%2,%[result]"
  14535.           : [result] "=r"(result)
  14536.           : "r" (test), "r"(new), "[result]"(old));
  14537.  
  14538.  Some instructions clobber specific hard registers.  To describe this,
  14539. write a third colon after the input operands, followed by the names of
  14540. the clobbered hard registers (given as strings).  Here is a realistic
  14541. example for the VAX:
  14542.  
  14543.      asm volatile ("movc3 %0,%1,%2"
  14544.                    : /* no outputs */
  14545.                    : "g" (from), "g" (to), "g" (count)
  14546.                    : "r0", "r1", "r2", "r3", "r4", "r5");
  14547.  
  14548.  You may not write a clobber description in a way that overlaps with an
  14549. input or output operand.  For example, you may not have an operand
  14550. describing a register class with one member if you mention that register
  14551. in the clobber list.  Variables declared to live in specific registers
  14552. (*note Explicit Reg Vars::), and used as asm input or output operands
  14553. must have no part mentioned in the clobber description.  There is no
  14554. way for you to specify that an input operand is modified without also
  14555. specifying it as an output operand.  Note that if all the output
  14556. operands you specify are for this purpose (and hence unused), you will
  14557. then also need to specify `volatile' for the `asm' construct, as
  14558. described below, to prevent GCC from deleting the `asm' statement as
  14559. unused.
  14560.  
  14561.  If you refer to a particular hardware register from the assembler code,
  14562. you will probably have to list the register after the third colon to
  14563. tell the compiler the register's value is modified.  In some assemblers,
  14564. the register names begin with `%'; to produce one `%' in the assembler
  14565. code, you must write `%%' in the input.
  14566.  
  14567.  If your assembler instruction can alter the condition code register,
  14568. add `cc' to the list of clobbered registers.  GCC on some machines
  14569. represents the condition codes as a specific hardware register; `cc'
  14570. serves to name this register.  On other machines, the condition code is
  14571. handled differently, and specifying `cc' has no effect.  But it is
  14572. valid no matter what the machine.
  14573.  
  14574.  If your assembler instructions access memory in an unpredictable
  14575. fashion, add `memory' to the list of clobbered registers.  This will
  14576. cause GCC to not keep memory values cached in registers across the
  14577. assembler instruction and not optimize stores or loads to that memory.
  14578. You will also want to add the `volatile' keyword if the memory affected
  14579. is not listed in the inputs or outputs of the `asm', as the `memory'
  14580. clobber does not count as a side-effect of the `asm'.  If you know how
  14581. large the accessed memory is, you can add it as input or output but if
  14582. this is not known, you should add `memory'.  As an example, if you
  14583. access ten bytes of a string, you can use a memory input like:
  14584.  
  14585.      {"m"( ({ struct { char x[10]; } *p = (void *)ptr ; *p; }) )}.
  14586.  
  14587.  Note that in the following example the memory input is necessary,
  14588. otherwise GCC might optimize the store to `x' away:
  14589.      int foo ()
  14590.      {
  14591.        int x = 42;
  14592.        int *y = &x;
  14593.        int result;
  14594.        asm ("magic stuff accessing an 'int' pointed to by '%1'"
  14595.              "=&d" (r) : "a" (y), "m" (*y));
  14596.        return result;
  14597.      }
  14598.  
  14599.  You can put multiple assembler instructions together in a single `asm'
  14600. template, separated by the characters normally used in assembly code
  14601. for the system.  A combination that works in most places is a newline
  14602. to break the line, plus a tab character to move to the instruction field
  14603. (written as `\n\t').  Sometimes semicolons can be used, if the
  14604. assembler allows semicolons as a line-breaking character.  Note that
  14605. some assembler dialects use semicolons to start a comment.  The input
  14606. operands are guaranteed not to use any of the clobbered registers, and
  14607. neither will the output operands' addresses, so you can read and write
  14608. the clobbered registers as many times as you like.  Here is an example
  14609. of multiple instructions in a template; it assumes the subroutine
  14610. `_foo' accepts arguments in registers 9 and 10:
  14611.  
  14612.      asm ("movl %0,r9\n\tmovl %1,r10\n\tcall _foo"
  14613.           : /* no outputs */
  14614.           : "g" (from), "g" (to)
  14615.           : "r9", "r10");
  14616.  
  14617.  Unless an output operand has the `&' constraint modifier, GCC may
  14618. allocate it in the same register as an unrelated input operand, on the
  14619. assumption the inputs are consumed before the outputs are produced.
  14620. This assumption may be false if the assembler code actually consists of
  14621. more than one instruction.  In such a case, use `&' for each output
  14622. operand that may not overlap an input.  *Note Modifiers::.
  14623.  
  14624.  If you want to test the condition code produced by an assembler
  14625. instruction, you must include a branch and a label in the `asm'
  14626. construct, as follows:
  14627.  
  14628.      asm ("clr %0\n\tfrob %1\n\tbeq 0f\n\tmov #1,%0\n0:"
  14629.           : "g" (result)
  14630.           : "g" (input));
  14631.  
  14632. This assumes your assembler supports local labels, as the GNU assembler
  14633. and most Unix assemblers do.
  14634.  
  14635.  Speaking of labels, jumps from one `asm' to another are not supported.
  14636. The compiler's optimizers do not know about these jumps, and therefore
  14637. they cannot take account of them when deciding how to optimize.
  14638.  
  14639.  Usually the most convenient way to use these `asm' instructions is to
  14640. encapsulate them in macros that look like functions.  For example,
  14641.  
  14642.      #define sin(x)       \
  14643.      ({ double __value, __arg = (x);   \
  14644.         asm ("fsinx %1,%0": "=f" (__value): "f" (__arg));  \
  14645.         __value; })
  14646.  
  14647. Here the variable `__arg' is used to make sure that the instruction
  14648. operates on a proper `double' value, and to accept only those arguments
  14649. `x' which can convert automatically to a `double'.
  14650.  
  14651.  Another way to make sure the instruction operates on the correct data
  14652. type is to use a cast in the `asm'.  This is different from using a
  14653. variable `__arg' in that it converts more different types.  For
  14654. example, if the desired type were `int', casting the argument to `int'
  14655. would accept a pointer with no complaint, while assigning the argument
  14656. to an `int' variable named `__arg' would warn about using a pointer
  14657. unless the caller explicitly casts it.
  14658.  
  14659.  If an `asm' has output operands, GCC assumes for optimization purposes
  14660. the instruction has no side effects except to change the output
  14661. operands.  This does not mean instructions with a side effect cannot be
  14662. used, but you must be careful, because the compiler may eliminate them
  14663. if the output operands aren't used, or move them out of loops, or
  14664. replace two with one if they constitute a common subexpression.  Also,
  14665. if your instruction does have a side effect on a variable that otherwise
  14666. appears not to change, the old value of the variable may be reused later
  14667. if it happens to be found in a register.
  14668.  
  14669.  You can prevent an `asm' instruction from being deleted, moved
  14670. significantly, or combined, by writing the keyword `volatile' after the
  14671. `asm'.  For example:
  14672.  
  14673.      #define get_and_set_priority(new)              \
  14674.      ({ int __old;                                  \
  14675.         asm volatile ("get_and_set_priority %0, %1" \
  14676.                       : "=g" (__old) : "g" (new));  \
  14677.         __old; })
  14678.  
  14679. If you write an `asm' instruction with no outputs, GCC will know the
  14680. instruction has side-effects and will not delete the instruction or
  14681. move it outside of loops.
  14682.  
  14683.  The `volatile' keyword indicates that the instruction has important
  14684. side-effects.  GCC will not delete a volatile `asm' if it is reachable.
  14685. (The instruction can still be deleted if GCC can prove that
  14686. control-flow will never reach the location of the instruction.)  In
  14687. addition, GCC will not reschedule instructions across a volatile `asm'
  14688. instruction.  For example:
  14689.  
  14690.      *(volatile int *)addr = foo;
  14691.      asm volatile ("eieio" : : );
  14692.  
  14693. Assume `addr' contains the address of a memory mapped device register.
  14694. The PowerPC `eieio' instruction (Enforce In-order Execution of I/O)
  14695. tells the CPU to make sure that the store to that device register
  14696. happens before it issues any other I/O.
  14697.  
  14698.  Note that even a volatile `asm' instruction can be moved in ways that
  14699. appear insignificant to the compiler, such as across jump instructions.
  14700. You can't expect a sequence of volatile `asm' instructions to remain
  14701. perfectly consecutive.  If you want consecutive output, use a single
  14702. `asm'.  Also, GCC will perform some optimizations across a volatile
  14703. `asm' instruction; GCC does not "forget everything" when it encounters
  14704. a volatile `asm' instruction the way some other compilers do.
  14705.  
  14706.  An `asm' instruction without any operands or clobbers (an "old style"
  14707. `asm') will be treated identically to a volatile `asm' instruction.
  14708.  
  14709.  It is a natural idea to look for a way to give access to the condition
  14710. code left by the assembler instruction.  However, when we attempted to
  14711. implement this, we found no way to make it work reliably.  The problem
  14712. is that output operands might need reloading, which would result in
  14713. additional following "store" instructions.  On most machines, these
  14714. instructions would alter the condition code before there was time to
  14715. test it.  This problem doesn't arise for ordinary "test" and "compare"
  14716. instructions because they don't have any output operands.
  14717.  
  14718.  For reasons similar to those described above, it is not possible to
  14719. give an assembler instruction access to the condition code left by
  14720. previous instructions.
  14721.  
  14722.  If you are writing a header file that should be includable in ISO C
  14723. programs, write `__asm__' instead of `asm'.  *Note Alternate Keywords::.
  14724.  
  14725. 5.35.1 Size of an `asm'
  14726. -----------------------
  14727.  
  14728. Some targets require that GCC track the size of each instruction used in
  14729. order to generate correct code.  Because the final length of an `asm'
  14730. is only known by the assembler, GCC must make an estimate as to how big
  14731. it will be.  The estimate is formed by counting the number of
  14732. statements in the pattern of the `asm' and multiplying that by the
  14733. length of the longest instruction on that processor.  Statements in the
  14734. `asm' are identified by newline characters and whatever statement
  14735. separator characters are supported by the assembler; on most processors
  14736. this is the ``;'' character.
  14737.  
  14738.  Normally, GCC's estimate is perfectly adequate to ensure that correct
  14739. code is generated, but it is possible to confuse the compiler if you use
  14740. pseudo instructions or assembler macros that expand into multiple real
  14741. instructions or if you use assembler directives that expand to more
  14742. space in the object file than would be needed for a single instruction.
  14743. If this happens then the assembler will produce a diagnostic saying that
  14744. a label is unreachable.
  14745.  
  14746. 5.35.2 i386 floating point asm operands
  14747. ---------------------------------------
  14748.  
  14749. There are several rules on the usage of stack-like regs in asm_operands
  14750. insns.  These rules apply only to the operands that are stack-like regs:
  14751.  
  14752.   1. Given a set of input regs that die in an asm_operands, it is
  14753.      necessary to know which are implicitly popped by the asm, and
  14754.      which must be explicitly popped by gcc.
  14755.  
  14756.      An input reg that is implicitly popped by the asm must be
  14757.      explicitly clobbered, unless it is constrained to match an output
  14758.      operand.
  14759.  
  14760.   2. For any input reg that is implicitly popped by an asm, it is
  14761.      necessary to know how to adjust the stack to compensate for the
  14762.      pop.  If any non-popped input is closer to the top of the
  14763.      reg-stack than the implicitly popped reg, it would not be possible
  14764.      to know what the stack looked like--it's not clear how the rest of
  14765.      the stack "slides up".
  14766.  
  14767.      All implicitly popped input regs must be closer to the top of the
  14768.      reg-stack than any input that is not implicitly popped.
  14769.  
  14770.      It is possible that if an input dies in an insn, reload might use
  14771.      the input reg for an output reload.  Consider this example:
  14772.  
  14773.           asm ("foo" : "=t" (a) : "f" (b));
  14774.  
  14775.      This asm says that input B is not popped by the asm, and that the
  14776.      asm pushes a result onto the reg-stack, i.e., the stack is one
  14777.      deeper after the asm than it was before.  But, it is possible that
  14778.      reload will think that it can use the same reg for both the input
  14779.      and the output, if input B dies in this insn.
  14780.  
  14781.      If any input operand uses the `f' constraint, all output reg
  14782.      constraints must use the `&' earlyclobber.
  14783.  
  14784.      The asm above would be written as
  14785.  
  14786.           asm ("foo" : "=&t" (a) : "f" (b));
  14787.  
  14788.   3. Some operands need to be in particular places on the stack.  All
  14789.      output operands fall in this category--there is no other way to
  14790.      know which regs the outputs appear in unless the user indicates
  14791.      this in the constraints.
  14792.  
  14793.      Output operands must specifically indicate which reg an output
  14794.      appears in after an asm.  `=f' is not allowed: the operand
  14795.      constraints must select a class with a single reg.
  14796.  
  14797.   4. Output operands may not be "inserted" between existing stack regs.
  14798.      Since no 387 opcode uses a read/write operand, all output operands
  14799.      are dead before the asm_operands, and are pushed by the
  14800.      asm_operands.  It makes no sense to push anywhere but the top of
  14801.      the reg-stack.
  14802.  
  14803.      Output operands must start at the top of the reg-stack: output
  14804.      operands may not "skip" a reg.
  14805.  
  14806.   5. Some asm statements may need extra stack space for internal
  14807.      calculations.  This can be guaranteed by clobbering stack registers
  14808.      unrelated to the inputs and outputs.
  14809.  
  14810.  
  14811.  Here are a couple of reasonable asms to want to write.  This asm takes
  14812. one input, which is internally popped, and produces two outputs.
  14813.  
  14814.      asm ("fsincos" : "=t" (cos), "=u" (sin) : "0" (inp));
  14815.  
  14816.  This asm takes two inputs, which are popped by the `fyl2xp1' opcode,
  14817. and replaces them with one output.  The user must code the `st(1)'
  14818. clobber for reg-stack.c to know that `fyl2xp1' pops both inputs.
  14819.  
  14820.      asm ("fyl2xp1" : "=t" (result) : "0" (x), "u" (y) : "st(1)");
  14821.  
  14822. 
  14823. File: gcc,  Node: Constraints,  Next: Asm Labels,  Prev: Extended Asm,  Up: C Extensions
  14824.  
  14825. 5.36 Constraints for `asm' Operands
  14826. ===================================
  14827.  
  14828. Here are specific details on what constraint letters you can use with
  14829. `asm' operands.  Constraints can say whether an operand may be in a
  14830. register, and which kinds of register; whether the operand can be a
  14831. memory reference, and which kinds of address; whether the operand may
  14832. be an immediate constant, and which possible values it may have.
  14833. Constraints can also require two operands to match.
  14834.  
  14835. * Menu:
  14836.  
  14837. * Simple Constraints::  Basic use of constraints.
  14838. * Multi-Alternative::   When an insn has two alternative constraint-patterns.
  14839. * Modifiers::           More precise control over effects of constraints.
  14840. * Machine Constraints:: Special constraints for some particular machines.
  14841.  
  14842. 
  14843. File: gcc,  Node: Simple Constraints,  Next: Multi-Alternative,  Up: Constraints
  14844.  
  14845. 5.36.1 Simple Constraints
  14846. -------------------------
  14847.  
  14848. The simplest kind of constraint is a string full of letters, each of
  14849. which describes one kind of operand that is permitted.  Here are the
  14850. letters that are allowed:
  14851.  
  14852. whitespace
  14853.      Whitespace characters are ignored and can be inserted at any
  14854.      position except the first.  This enables each alternative for
  14855.      different operands to be visually aligned in the machine
  14856.      description even if they have different number of constraints and
  14857.      modifiers.
  14858.  
  14859. `m'
  14860.      A memory operand is allowed, with any kind of address that the
  14861.      machine supports in general.
  14862.  
  14863. `o'
  14864.      A memory operand is allowed, but only if the address is
  14865.      "offsettable".  This means that adding a small integer (actually,
  14866.      the width in bytes of the operand, as determined by its machine
  14867.      mode) may be added to the address and the result is also a valid
  14868.      memory address.
  14869.  
  14870.      For example, an address which is constant is offsettable; so is an
  14871.      address that is the sum of a register and a constant (as long as a
  14872.      slightly larger constant is also within the range of
  14873.      address-offsets supported by the machine); but an autoincrement or
  14874.      autodecrement address is not offsettable.  More complicated
  14875.      indirect/indexed addresses may or may not be offsettable depending
  14876.      on the other addressing modes that the machine supports.
  14877.  
  14878.      Note that in an output operand which can be matched by another
  14879.      operand, the constraint letter `o' is valid only when accompanied
  14880.      by both `<' (if the target machine has predecrement addressing)
  14881.      and `>' (if the target machine has preincrement addressing).
  14882.  
  14883. `V'
  14884.      A memory operand that is not offsettable.  In other words,
  14885.      anything that would fit the `m' constraint but not the `o'
  14886.      constraint.
  14887.  
  14888. `<'
  14889.      A memory operand with autodecrement addressing (either
  14890.      predecrement or postdecrement) is allowed.
  14891.  
  14892. `>'
  14893.      A memory operand with autoincrement addressing (either
  14894.      preincrement or postincrement) is allowed.
  14895.  
  14896. `r'
  14897.      A register operand is allowed provided that it is in a general
  14898.      register.
  14899.  
  14900. `i'
  14901.      An immediate integer operand (one with constant value) is allowed.
  14902.      This includes symbolic constants whose values will be known only at
  14903.      assembly time.
  14904.  
  14905. `n'
  14906.      An immediate integer operand with a known numeric value is allowed.
  14907.      Many systems cannot support assembly-time constants for operands
  14908.      less than a word wide.  Constraints for these operands should use
  14909.      `n' rather than `i'.
  14910.  
  14911. `I', `J', `K', ... `P'
  14912.      Other letters in the range `I' through `P' may be defined in a
  14913.      machine-dependent fashion to permit immediate integer operands with
  14914.      explicit integer values in specified ranges.  For example, on the
  14915.      68000, `I' is defined to stand for the range of values 1 to 8.
  14916.      This is the range permitted as a shift count in the shift
  14917.      instructions.
  14918.  
  14919. `E'
  14920.      An immediate floating operand (expression code `const_double') is
  14921.      allowed, but only if the target floating point format is the same
  14922.      as that of the host machine (on which the compiler is running).
  14923.  
  14924. `F'
  14925.      An immediate floating operand (expression code `const_double' or
  14926.      `const_vector') is allowed.
  14927.  
  14928. `G', `H'
  14929.      `G' and `H' may be defined in a machine-dependent fashion to
  14930.      permit immediate floating operands in particular ranges of values.
  14931.  
  14932. `s'
  14933.      An immediate integer operand whose value is not an explicit
  14934.      integer is allowed.
  14935.  
  14936.      This might appear strange; if an insn allows a constant operand
  14937.      with a value not known at compile time, it certainly must allow
  14938.      any known value.  So why use `s' instead of `i'?  Sometimes it
  14939.      allows better code to be generated.
  14940.  
  14941.      For example, on the 68000 in a fullword instruction it is possible
  14942.      to use an immediate operand; but if the immediate value is between
  14943.      -128 and 127, better code results from loading the value into a
  14944.      register and using the register.  This is because the load into
  14945.      the register can be done with a `moveq' instruction.  We arrange
  14946.      for this to happen by defining the letter `K' to mean "any integer
  14947.      outside the range -128 to 127", and then specifying `Ks' in the
  14948.      operand constraints.
  14949.  
  14950. `g'
  14951.      Any register, memory or immediate integer operand is allowed,
  14952.      except for registers that are not general registers.
  14953.  
  14954. `X'
  14955.      Any operand whatsoever is allowed.
  14956.  
  14957. `0', `1', `2', ... `9'
  14958.      An operand that matches the specified operand number is allowed.
  14959.      If a digit is used together with letters within the same
  14960.      alternative, the digit should come last.
  14961.  
  14962.      This number is allowed to be more than a single digit.  If multiple
  14963.      digits are encountered consecutively, they are interpreted as a
  14964.      single decimal integer.  There is scant chance for ambiguity,
  14965.      since to-date it has never been desirable that `10' be interpreted
  14966.      as matching either operand 1 _or_ operand 0.  Should this be
  14967.      desired, one can use multiple alternatives instead.
  14968.  
  14969.      This is called a "matching constraint" and what it really means is
  14970.      that the assembler has only a single operand that fills two roles
  14971.      which `asm' distinguishes.  For example, an add instruction uses
  14972.      two input operands and an output operand, but on most CISC
  14973.      machines an add instruction really has only two operands, one of
  14974.      them an input-output operand:
  14975.  
  14976.           addl #35,r12
  14977.  
  14978.      Matching constraints are used in these circumstances.  More
  14979.      precisely, the two operands that match must include one input-only
  14980.      operand and one output-only operand.  Moreover, the digit must be a
  14981.      smaller number than the number of the operand that uses it in the
  14982.      constraint.
  14983.  
  14984. `p'
  14985.      An operand that is a valid memory address is allowed.  This is for
  14986.      "load address" and "push address" instructions.
  14987.  
  14988.      `p' in the constraint must be accompanied by `address_operand' as
  14989.      the predicate in the `match_operand'.  This predicate interprets
  14990.      the mode specified in the `match_operand' as the mode of the memory
  14991.      reference for which the address would be valid.
  14992.  
  14993. OTHER-LETTERS
  14994.      Other letters can be defined in machine-dependent fashion to stand
  14995.      for particular classes of registers or other arbitrary operand
  14996.      types.  `d', `a' and `f' are defined on the 68000/68020 to stand
  14997.      for data, address and floating point registers.
  14998.  
  14999.  
  15000. 
  15001. File: gcc,  Node: Multi-Alternative,  Next: Modifiers,  Prev: Simple Constraints,  Up: Constraints
  15002.  
  15003. 5.36.2 Multiple Alternative Constraints
  15004. ---------------------------------------
  15005.  
  15006. Sometimes a single instruction has multiple alternative sets of possible
  15007. operands.  For example, on the 68000, a logical-or instruction can
  15008. combine register or an immediate value into memory, or it can combine
  15009. any kind of operand into a register; but it cannot combine one memory
  15010. location into another.
  15011.  
  15012.  These constraints are represented as multiple alternatives.  An
  15013. alternative can be described by a series of letters for each operand.
  15014. The overall constraint for an operand is made from the letters for this
  15015. operand from the first alternative, a comma, the letters for this
  15016. operand from the second alternative, a comma, and so on until the last
  15017. alternative.
  15018.  
  15019.  If all the operands fit any one alternative, the instruction is valid.
  15020. Otherwise, for each alternative, the compiler counts how many
  15021. instructions must be added to copy the operands so that that
  15022. alternative applies.  The alternative requiring the least copying is
  15023. chosen.  If two alternatives need the same amount of copying, the one
  15024. that comes first is chosen.  These choices can be altered with the `?'
  15025. and `!' characters:
  15026.  
  15027. `?'
  15028.      Disparage slightly the alternative that the `?' appears in, as a
  15029.      choice when no alternative applies exactly.  The compiler regards
  15030.      this alternative as one unit more costly for each `?' that appears
  15031.      in it.
  15032.  
  15033. `!'
  15034.      Disparage severely the alternative that the `!' appears in.  This
  15035.      alternative can still be used if it fits without reloading, but if
  15036.      reloading is needed, some other alternative will be used.
  15037.  
  15038. 
  15039. File: gcc,  Node: Modifiers,  Next: Machine Constraints,  Prev: Multi-Alternative,  Up: Constraints
  15040.  
  15041. 5.36.3 Constraint Modifier Characters
  15042. -------------------------------------
  15043.  
  15044. Here are constraint modifier characters.
  15045.  
  15046. `='
  15047.      Means that this operand is write-only for this instruction: the
  15048.      previous value is discarded and replaced by output data.
  15049.  
  15050. `+'
  15051.      Means that this operand is both read and written by the
  15052.      instruction.
  15053.  
  15054.      When the compiler fixes up the operands to satisfy the constraints,
  15055.      it needs to know which operands are inputs to the instruction and
  15056.      which are outputs from it.  `=' identifies an output; `+'
  15057.      identifies an operand that is both input and output; all other
  15058.      operands are assumed to be input only.
  15059.  
  15060.      If you specify `=' or `+' in a constraint, you put it in the first
  15061.      character of the constraint string.
  15062.  
  15063. `&'
  15064.      Means (in a particular alternative) that this operand is an
  15065.      "earlyclobber" operand, which is modified before the instruction is
  15066.      finished using the input operands.  Therefore, this operand may
  15067.      not lie in a register that is used as an input operand or as part
  15068.      of any memory address.
  15069.  
  15070.      `&' applies only to the alternative in which it is written.  In
  15071.      constraints with multiple alternatives, sometimes one alternative
  15072.      requires `&' while others do not.  See, for example, the `movdf'
  15073.      insn of the 68000.
  15074.  
  15075.      An input operand can be tied to an earlyclobber operand if its only
  15076.      use as an input occurs before the early result is written.  Adding
  15077.      alternatives of this form often allows GCC to produce better code
  15078.      when only some of the inputs can be affected by the earlyclobber.
  15079.      See, for example, the `mulsi3' insn of the ARM.
  15080.  
  15081.      `&' does not obviate the need to write `='.
  15082.  
  15083. `%'
  15084.      Declares the instruction to be commutative for this operand and the
  15085.      following operand.  This means that the compiler may interchange
  15086.      the two operands if that is the cheapest way to make all operands
  15087.      fit the constraints.  GCC can only handle one commutative pair in
  15088.      an asm; if you use more, the compiler may fail.
  15089.  
  15090. `#'
  15091.      Says that all following characters, up to the next comma, are to be
  15092.      ignored as a constraint.  They are significant only for choosing
  15093.      register preferences.
  15094.  
  15095. `*'
  15096.      Says that the following character should be ignored when choosing
  15097.      register preferences.  `*' has no effect on the meaning of the
  15098.      constraint as a constraint, and no effect on reloading.
  15099.  
  15100.  
  15101. 
  15102. File: gcc,  Node: Machine Constraints,  Prev: Modifiers,  Up: Constraints
  15103.  
  15104. 5.36.4 Constraints for Particular Machines
  15105. ------------------------------------------
  15106.  
  15107. Whenever possible, you should use the general-purpose constraint letters
  15108. in `asm' arguments, since they will convey meaning more readily to
  15109. people reading your code.  Failing that, use the constraint letters
  15110. that usually have very similar meanings across architectures.  The most
  15111. commonly used constraints are `m' and `r' (for memory and
  15112. general-purpose registers respectively; *note Simple Constraints::), and
  15113. `I', usually the letter indicating the most common immediate-constant
  15114. format.
  15115.  
  15116.  For each machine architecture, the `config/MACHINE/MACHINE.h' file
  15117. defines additional constraints.  These constraints are used by the
  15118. compiler itself for instruction generation, as well as for `asm'
  15119. statements; therefore, some of the constraints are not particularly
  15120. interesting for `asm'.  The constraints are defined through these
  15121. macros:
  15122.  
  15123. `REG_CLASS_FROM_LETTER'
  15124.      Register class constraints (usually lowercase).
  15125.  
  15126. `CONST_OK_FOR_LETTER_P'
  15127.      Immediate constant constraints, for non-floating point constants of
  15128.      word size or smaller precision (usually uppercase).
  15129.  
  15130. `CONST_DOUBLE_OK_FOR_LETTER_P'
  15131.      Immediate constant constraints, for all floating point constants
  15132.      and for constants of greater than word size precision (usually
  15133.      uppercase).
  15134.  
  15135. `EXTRA_CONSTRAINT'
  15136.      Special cases of registers or memory.  This macro is not required,
  15137.      and is only defined for some machines.
  15138.  
  15139.  Inspecting these macro definitions in the compiler source for your
  15140. machine is the best way to be certain you have the right constraints.
  15141. However, here is a summary of the machine-dependent constraints
  15142. available on some particular machines.
  15143.  
  15144. _ARM family--`arm.h'_
  15145.  
  15146.     `f'
  15147.           Floating-point register
  15148.  
  15149.     `F'
  15150.           One of the floating-point constants 0.0, 0.5, 1.0, 2.0, 3.0,
  15151.           4.0, 5.0 or 10.0
  15152.  
  15153.     `G'
  15154.           Floating-point constant that would satisfy the constraint `F'
  15155.           if it were negated
  15156.  
  15157.     `I'
  15158.           Integer that is valid as an immediate operand in a data
  15159.           processing instruction.  That is, an integer in the range 0
  15160.           to 255 rotated by a multiple of 2
  15161.  
  15162.     `J'
  15163.           Integer in the range -4095 to 4095
  15164.  
  15165.     `K'
  15166.           Integer that satisfies constraint `I' when inverted (ones
  15167.           complement)
  15168.  
  15169.     `L'
  15170.           Integer that satisfies constraint `I' when negated (twos
  15171.           complement)
  15172.  
  15173.     `M'
  15174.           Integer in the range 0 to 32
  15175.  
  15176.     `Q'
  15177.           A memory reference where the exact address is in a single
  15178.           register (``m'' is preferable for `asm' statements)
  15179.  
  15180.     `R'
  15181.           An item in the constant pool
  15182.  
  15183.     `S'
  15184.           A symbol in the text segment of the current file
  15185.  
  15186. _AVR family--`avr.h'_
  15187.  
  15188.     `l'
  15189.           Registers from r0 to r15
  15190.  
  15191.     `a'
  15192.           Registers from r16 to r23
  15193.  
  15194.     `d'
  15195.           Registers from r16 to r31
  15196.  
  15197.     `w'
  15198.           Registers from r24 to r31.  These registers can be used in
  15199.           `adiw' command
  15200.  
  15201.     `e'
  15202.           Pointer register (r26-r31)
  15203.  
  15204.     `b'
  15205.           Base pointer register (r28-r31)
  15206.  
  15207.     `q'
  15208.           Stack pointer register (SPH:SPL)
  15209.  
  15210.     `t'
  15211.           Temporary register r0
  15212.  
  15213.     `x'
  15214.           Register pair X (r27:r26)
  15215.  
  15216.     `y'
  15217.           Register pair Y (r29:r28)
  15218.  
  15219.     `z'
  15220.           Register pair Z (r31:r30)
  15221.  
  15222.     `I'
  15223.           Constant greater than -1, less than 64
  15224.  
  15225.     `J'
  15226.           Constant greater than -64, less than 1
  15227.  
  15228.     `K'
  15229.           Constant integer 2
  15230.  
  15231.     `L'
  15232.           Constant integer 0
  15233.  
  15234.     `M'
  15235.           Constant that fits in 8 bits
  15236.  
  15237.     `N'
  15238.           Constant integer -1
  15239.  
  15240.     `O'
  15241.           Constant integer 8, 16, or 24
  15242.  
  15243.     `P'
  15244.           Constant integer 1
  15245.  
  15246.     `G'
  15247.           A floating point constant 0.0
  15248.  
  15249. _PowerPC and IBM RS6000--`rs6000.h'_
  15250.  
  15251.     `b'
  15252.           Address base register
  15253.  
  15254.     `f'
  15255.           Floating point register
  15256.  
  15257.     `v'
  15258.           Vector register
  15259.  
  15260.     `h'
  15261.           `MQ', `CTR', or `LINK' register
  15262.  
  15263.     `q'
  15264.           `MQ' register
  15265.  
  15266.     `c'
  15267.           `CTR' register
  15268.  
  15269.     `l'
  15270.           `LINK' register
  15271.  
  15272.     `x'
  15273.           `CR' register (condition register) number 0
  15274.  
  15275.     `y'
  15276.           `CR' register (condition register)
  15277.  
  15278.     `z'
  15279.           `FPMEM' stack memory for FPR-GPR transfers
  15280.  
  15281.     `I'
  15282.           Signed 16-bit constant
  15283.  
  15284.     `J'
  15285.           Unsigned 16-bit constant shifted left 16 bits (use `L'
  15286.           instead for `SImode' constants)
  15287.  
  15288.     `K'
  15289.           Unsigned 16-bit constant
  15290.  
  15291.     `L'
  15292.           Signed 16-bit constant shifted left 16 bits
  15293.  
  15294.     `M'
  15295.           Constant larger than 31
  15296.  
  15297.     `N'
  15298.           Exact power of 2
  15299.  
  15300.     `O'
  15301.           Zero
  15302.  
  15303.     `P'
  15304.           Constant whose negation is a signed 16-bit constant
  15305.  
  15306.     `G'
  15307.           Floating point constant that can be loaded into a register
  15308.           with one instruction per word
  15309.  
  15310.     `Q'
  15311.           Memory operand that is an offset from a register (`m' is
  15312.           preferable for `asm' statements)
  15313.  
  15314.     `R'
  15315.           AIX TOC entry
  15316.  
  15317.     `S'
  15318.           Constant suitable as a 64-bit mask operand
  15319.  
  15320.     `T'
  15321.           Constant suitable as a 32-bit mask operand
  15322.  
  15323.     `U'
  15324.           System V Release 4 small data area reference
  15325.  
  15326. _Intel 386--`i386.h'_
  15327.  
  15328.     `q'
  15329.           `a', `b', `c', or `d' register for the i386.  For x86-64 it
  15330.           is equivalent to `r' class. (for 8-bit instructions that do
  15331.           not use upper halves)
  15332.  
  15333.     `Q'
  15334.           `a', `b', `c', or `d' register. (for 8-bit instructions, that
  15335.           do use upper halves)
  15336.  
  15337.     `R'
  15338.           Legacy register--equivalent to `r' class in i386 mode.  (for
  15339.           non-8-bit registers used together with 8-bit upper halves in
  15340.           a single instruction)
  15341.  
  15342.     `A'
  15343.           Specifies the `a' or `d' registers.  This is primarily useful
  15344.           for 64-bit integer values (when in 32-bit mode) intended to
  15345.           be returned with the `d' register holding the most
  15346.           significant bits and the `a' register holding the least
  15347.           significant bits.
  15348.  
  15349.     `f'
  15350.           Floating point register
  15351.  
  15352.     `t'
  15353.           First (top of stack) floating point register
  15354.  
  15355.     `u'
  15356.           Second floating point register
  15357.  
  15358.     `a'
  15359.           `a' register
  15360.  
  15361.     `b'
  15362.           `b' register
  15363.  
  15364.     `c'
  15365.           `c' register
  15366.  
  15367.     `C'
  15368.           Specifies constant that can be easily constructed in SSE
  15369.           register without loading it from memory.
  15370.  
  15371.     `d'
  15372.           `d' register
  15373.  
  15374.     `D'
  15375.           `di' register
  15376.  
  15377.     `S'
  15378.           `si' register
  15379.  
  15380.     `x'
  15381.           `xmm' SSE register
  15382.  
  15383.     `y'
  15384.           MMX register
  15385.  
  15386.     `I'
  15387.           Constant in range 0 to 31 (for 32-bit shifts)
  15388.  
  15389.     `J'
  15390.           Constant in range 0 to 63 (for 64-bit shifts)
  15391.  
  15392.     `K'
  15393.           `0xff'
  15394.  
  15395.     `L'
  15396.           `0xffff'
  15397.  
  15398.     `M'
  15399.           0, 1, 2, or 3 (shifts for `lea' instruction)
  15400.  
  15401.     `N'
  15402.           Constant in range 0 to 255 (for `out' instruction)
  15403.  
  15404.     `Z'
  15405.           Constant in range 0 to `0xffffffff' or symbolic reference
  15406.           known to fit specified range.  (for using immediates in zero
  15407.           extending 32-bit to 64-bit x86-64 instructions)
  15408.  
  15409.     `e'
  15410.           Constant in range -2147483648 to 2147483647 or symbolic
  15411.           reference known to fit specified range.  (for using
  15412.           immediates in 64-bit x86-64 instructions)
  15413.  
  15414.     `G'
  15415.           Standard 80387 floating point constant
  15416.  
  15417. _Intel 960--`i960.h'_
  15418.  
  15419.     `f'
  15420.           Floating point register (`fp0' to `fp3')
  15421.  
  15422.     `l'
  15423.           Local register (`r0' to `r15')
  15424.  
  15425.     `b'
  15426.           Global register (`g0' to `g15')
  15427.  
  15428.     `d'
  15429.           Any local or global register
  15430.  
  15431.     `I'
  15432.           Integers from 0 to 31
  15433.  
  15434.     `J'
  15435.           0
  15436.  
  15437.     `K'
  15438.           Integers from -31 to 0
  15439.  
  15440.     `G'
  15441.           Floating point 0
  15442.  
  15443.     `H'
  15444.           Floating point 1
  15445.  
  15446. _Intel IA-64--`ia64.h'_
  15447.  
  15448.     `a'
  15449.           General register `r0' to `r3' for `addl' instruction
  15450.  
  15451.     `b'
  15452.           Branch register
  15453.  
  15454.     `c'
  15455.           Predicate register (`c' as in "conditional")
  15456.  
  15457.     `d'
  15458.           Application register residing in M-unit
  15459.  
  15460.     `e'
  15461.           Application register residing in I-unit
  15462.  
  15463.     `f'
  15464.           Floating-point register
  15465.  
  15466.     `m'
  15467.           Memory operand.  Remember that `m' allows postincrement and
  15468.           postdecrement which require printing with `%Pn' on IA-64.
  15469.           Use `S' to disallow postincrement and postdecrement.
  15470.  
  15471.     `G'
  15472.           Floating-point constant 0.0 or 1.0
  15473.  
  15474.     `I'
  15475.           14-bit signed integer constant
  15476.  
  15477.     `J'
  15478.           22-bit signed integer constant
  15479.  
  15480.     `K'
  15481.           8-bit signed integer constant for logical instructions
  15482.  
  15483.     `L'
  15484.           8-bit adjusted signed integer constant for compare pseudo-ops
  15485.  
  15486.     `M'
  15487.           6-bit unsigned integer constant for shift counts
  15488.  
  15489.     `N'
  15490.           9-bit signed integer constant for load and store
  15491.           postincrements
  15492.  
  15493.     `O'
  15494.           The constant zero
  15495.  
  15496.     `P'
  15497.           0 or -1 for `dep' instruction
  15498.  
  15499.     `Q'
  15500.           Non-volatile memory for floating-point loads and stores
  15501.  
  15502.     `R'
  15503.           Integer constant in the range 1 to 4 for `shladd' instruction
  15504.  
  15505.     `S'
  15506.           Memory operand except postincrement and postdecrement
  15507.  
  15508. _FRV--`frv.h'_
  15509.  
  15510.     `a'
  15511.           Register in the class `ACC_REGS' (`acc0' to `acc7').
  15512.  
  15513.     `b'
  15514.           Register in the class `EVEN_ACC_REGS' (`acc0' to `acc7').
  15515.  
  15516.     `c'
  15517.           Register in the class `CC_REGS' (`fcc0' to `fcc3' and `icc0'
  15518.           to `icc3').
  15519.  
  15520.     `d'
  15521.           Register in the class `GPR_REGS' (`gr0' to `gr63').
  15522.  
  15523.     `e'
  15524.           Register in the class `EVEN_REGS' (`gr0' to `gr63').  Odd
  15525.           registers are excluded not in the class but through the use
  15526.           of a machine mode larger than 4 bytes.
  15527.  
  15528.     `f'
  15529.           Register in the class `FPR_REGS' (`fr0' to `fr63').
  15530.  
  15531.     `h'
  15532.           Register in the class `FEVEN_REGS' (`fr0' to `fr63').  Odd
  15533.           registers are excluded not in the class but through the use
  15534.           of a machine mode larger than 4 bytes.
  15535.  
  15536.     `l'
  15537.           Register in the class `LR_REG' (the `lr' register).
  15538.  
  15539.     `q'
  15540.           Register in the class `QUAD_REGS' (`gr2' to `gr63').
  15541.           Register numbers not divisible by 4 are excluded not in the
  15542.           class but through the use of a machine mode larger than 8
  15543.           bytes.
  15544.  
  15545.     `t'
  15546.           Register in the class `ICC_REGS' (`icc0' to `icc3').
  15547.  
  15548.     `u'
  15549.           Register in the class `FCC_REGS' (`fcc0' to `fcc3').
  15550.  
  15551.     `v'
  15552.           Register in the class `ICR_REGS' (`cc4' to `cc7').
  15553.  
  15554.     `w'
  15555.           Register in the class `FCR_REGS' (`cc0' to `cc3').
  15556.  
  15557.     `x'
  15558.           Register in the class `QUAD_FPR_REGS' (`fr0' to `fr63').
  15559.           Register numbers not divisible by 4 are excluded not in the
  15560.           class but through the use of a machine mode larger than 8
  15561.           bytes.
  15562.  
  15563.     `z'
  15564.           Register in the class `SPR_REGS' (`lcr' and `lr').
  15565.  
  15566.     `A'
  15567.           Register in the class `QUAD_ACC_REGS' (`acc0' to `acc7').
  15568.  
  15569.     `B'
  15570.           Register in the class `ACCG_REGS' (`accg0' to `accg7').
  15571.  
  15572.     `C'
  15573.           Register in the class `CR_REGS' (`cc0' to `cc7').
  15574.  
  15575.     `G'
  15576.           Floating point constant zero
  15577.  
  15578.     `I'
  15579.           6-bit signed integer constant
  15580.  
  15581.     `J'
  15582.           10-bit signed integer constant
  15583.  
  15584.     `L'
  15585.           16-bit signed integer constant
  15586.  
  15587.     `M'
  15588.           16-bit unsigned integer constant
  15589.  
  15590.     `N'
  15591.           12-bit signed integer constant that is negative--i.e. in the
  15592.           range of -2048 to -1
  15593.  
  15594.     `O'
  15595.           Constant zero
  15596.  
  15597.     `P'
  15598.           12-bit signed integer constant that is greater than
  15599.           zero--i.e. in the range of 1 to 2047.
  15600.  
  15601.  
  15602. _IP2K--`ip2k.h'_
  15603.  
  15604.     `a'
  15605.           `DP' or `IP' registers (general address)
  15606.  
  15607.     `f'
  15608.           `IP' register
  15609.  
  15610.     `j'
  15611.           `IPL' register
  15612.  
  15613.     `k'
  15614.           `IPH' register
  15615.  
  15616.     `b'
  15617.           `DP' register
  15618.  
  15619.     `y'
  15620.           `DPH' register
  15621.  
  15622.     `z'
  15623.           `DPL' register
  15624.  
  15625.     `q'
  15626.           `SP' register
  15627.  
  15628.     `c'
  15629.           `DP' or `SP' registers (offsettable address)
  15630.  
  15631.     `d'
  15632.           Non-pointer registers (not `SP', `DP', `IP')
  15633.  
  15634.     `u'
  15635.           Non-SP registers (everything except `SP')
  15636.  
  15637.     `R'
  15638.           Indirect through `IP' - Avoid this except for `QImode', since
  15639.           we can't access extra bytes
  15640.  
  15641.     `S'
  15642.           Indirect through `SP' or `DP' with short displacement (0..127)
  15643.  
  15644.     `T'
  15645.           Data-section immediate value
  15646.  
  15647.     `I'
  15648.           Integers from -255 to -1
  15649.  
  15650.     `J'
  15651.           Integers from 0 to 7--valid bit number in a register
  15652.  
  15653.     `K'
  15654.           Integers from 0 to 127--valid displacement for addressing mode
  15655.  
  15656.     `L'
  15657.           Integers from 1 to 127
  15658.  
  15659.     `M'
  15660.           Integer -1
  15661.  
  15662.     `N'
  15663.           Integer 1
  15664.  
  15665.     `O'
  15666.           Zero
  15667.  
  15668.     `P'
  15669.           Integers from 0 to 255
  15670.  
  15671. _MIPS--`mips.h'_
  15672.  
  15673.     `d'
  15674.           General-purpose integer register
  15675.  
  15676.     `f'
  15677.           Floating-point register (if available)
  15678.  
  15679.     `h'
  15680.           `Hi' register
  15681.  
  15682.     `l'
  15683.           `Lo' register
  15684.  
  15685.     `x'
  15686.           `Hi' or `Lo' register
  15687.  
  15688.     `y'
  15689.           General-purpose integer register
  15690.  
  15691.     `z'
  15692.           Floating-point status register
  15693.  
  15694.     `I'
  15695.           Signed 16-bit constant (for arithmetic instructions)
  15696.  
  15697.     `J'
  15698.           Zero
  15699.  
  15700.     `K'
  15701.           Zero-extended 16-bit constant (for logic instructions)
  15702.  
  15703.     `L'
  15704.           Constant with low 16 bits zero (can be loaded with `lui')
  15705.  
  15706.     `M'
  15707.           32-bit constant which requires two instructions to load (a
  15708.           constant which is not `I', `K', or `L')
  15709.  
  15710.     `N'
  15711.           Negative 16-bit constant
  15712.  
  15713.     `O'
  15714.           Exact power of two
  15715.  
  15716.     `P'
  15717.           Positive 16-bit constant
  15718.  
  15719.     `G'
  15720.           Floating point zero
  15721.  
  15722.     `Q'
  15723.           Memory reference that can be loaded with more than one
  15724.           instruction (`m' is preferable for `asm' statements)
  15725.  
  15726.     `R'
  15727.           Memory reference that can be loaded with one instruction (`m'
  15728.           is preferable for `asm' statements)
  15729.  
  15730.     `S'
  15731.           Memory reference in external OSF/rose PIC format (`m' is
  15732.           preferable for `asm' statements)
  15733.  
  15734. _Motorola 680x0--`m68k.h'_
  15735.  
  15736.     `a'
  15737.           Address register
  15738.  
  15739.     `d'
  15740.           Data register
  15741.  
  15742.     `f'
  15743.           68881 floating-point register, if available
  15744.  
  15745.     `I'
  15746.           Integer in the range 1 to 8
  15747.  
  15748.     `J'
  15749.           16-bit signed number
  15750.  
  15751.     `K'
  15752.           Signed number whose magnitude is greater than 0x80
  15753.  
  15754.     `L'
  15755.           Integer in the range -8 to -1
  15756.  
  15757.     `M'
  15758.           Signed number whose magnitude is greater than 0x100
  15759.  
  15760.     `G'
  15761.           Floating point constant that is not a 68881 constant
  15762.  
  15763. _Motorola 68HC11 & 68HC12 families--`m68hc11.h'_
  15764.  
  15765.     `a'
  15766.           Register 'a'
  15767.  
  15768.     `b'
  15769.           Register 'b'
  15770.  
  15771.     `d'
  15772.           Register 'd'
  15773.  
  15774.     `q'
  15775.           An 8-bit register
  15776.  
  15777.     `t'
  15778.           Temporary soft register _.tmp
  15779.  
  15780.     `u'
  15781.           A soft register _.d1 to _.d31
  15782.  
  15783.     `w'
  15784.           Stack pointer register
  15785.  
  15786.     `x'
  15787.           Register 'x'
  15788.  
  15789.     `y'
  15790.           Register 'y'
  15791.  
  15792.     `z'
  15793.           Pseudo register 'z' (replaced by 'x' or 'y' at the end)
  15794.  
  15795.     `A'
  15796.           An address register: x, y or z
  15797.  
  15798.     `B'
  15799.           An address register: x or y
  15800.  
  15801.     `D'
  15802.           Register pair (x:d) to form a 32-bit value
  15803.  
  15804.     `L'
  15805.           Constants in the range -65536 to 65535
  15806.  
  15807.     `M'
  15808.           Constants whose 16-bit low part is zero
  15809.  
  15810.     `N'
  15811.           Constant integer 1 or -1
  15812.  
  15813.     `O'
  15814.           Constant integer 16
  15815.  
  15816.     `P'
  15817.           Constants in the range -8 to 2
  15818.  
  15819.  
  15820. _SPARC--`sparc.h'_
  15821.  
  15822.     `f'
  15823.           Floating-point register on the SPARC-V8 architecture and
  15824.           lower floating-point register on the SPARC-V9 architecture.
  15825.  
  15826.     `e'
  15827.           Floating-point register. It is equivalent to `f' on the
  15828.           SPARC-V8 architecture and contains both lower and upper
  15829.           floating-point registers on the SPARC-V9 architecture.
  15830.  
  15831.     `c'
  15832.           Floating-point condition code register.
  15833.  
  15834.     `d'
  15835.           Lower floating-point register. It is only valid on the
  15836.           SPARC-V9 architecture when the Visual Instruction Set is
  15837.           available.
  15838.  
  15839.     `b'
  15840.           Floating-point register. It is only valid on the SPARC-V9
  15841.           architecture when the Visual Instruction Set is available.
  15842.  
  15843.     `h'
  15844.           64-bit global or out register for the SPARC-V8+ architecture.
  15845.  
  15846.     `I'
  15847.           Signed 13-bit constant
  15848.  
  15849.     `J'
  15850.           Zero
  15851.  
  15852.     `K'
  15853.           32-bit constant with the low 12 bits clear (a constant that
  15854.           can be loaded with the `sethi' instruction)
  15855.  
  15856.     `L'
  15857.           A constant in the range supported by `movcc' instructions
  15858.  
  15859.     `M'
  15860.           A constant in the range supported by `movrcc' instructions
  15861.  
  15862.     `N'
  15863.           Same as `K', except that it verifies that bits that are not
  15864.           in the lower 32-bit range are all zero.  Must be used instead
  15865.           of `K' for modes wider than `SImode'
  15866.  
  15867.     `O'
  15868.           The constant 4096
  15869.  
  15870.     `G'
  15871.           Floating-point zero
  15872.  
  15873.     `H'
  15874.           Signed 13-bit constant, sign-extended to 32 or 64 bits
  15875.  
  15876.     `Q'
  15877.           Floating-point constant whose integral representation can be
  15878.           moved into an integer register using a single sethi
  15879.           instruction
  15880.  
  15881.     `R'
  15882.           Floating-point constant whose integral representation can be
  15883.           moved into an integer register using a single mov instruction
  15884.  
  15885.     `S'
  15886.           Floating-point constant whose integral representation can be
  15887.           moved into an integer register using a high/lo_sum
  15888.           instruction sequence
  15889.  
  15890.     `T'
  15891.           Memory address aligned to an 8-byte boundary
  15892.  
  15893.     `U'
  15894.           Even register
  15895.  
  15896.     `W'
  15897.           Memory address for `e' constraint registers.
  15898.  
  15899.  
  15900. _TMS320C3x/C4x--`c4x.h'_
  15901.  
  15902.     `a'
  15903.           Auxiliary (address) register (ar0-ar7)
  15904.  
  15905.     `b'
  15906.           Stack pointer register (sp)
  15907.  
  15908.     `c'
  15909.           Standard (32-bit) precision integer register
  15910.  
  15911.     `f'
  15912.           Extended (40-bit) precision register (r0-r11)
  15913.  
  15914.     `k'
  15915.           Block count register (bk)
  15916.  
  15917.     `q'
  15918.           Extended (40-bit) precision low register (r0-r7)
  15919.  
  15920.     `t'
  15921.           Extended (40-bit) precision register (r0-r1)
  15922.  
  15923.     `u'
  15924.           Extended (40-bit) precision register (r2-r3)
  15925.  
  15926.     `v'
  15927.           Repeat count register (rc)
  15928.  
  15929.     `x'
  15930.           Index register (ir0-ir1)
  15931.  
  15932.     `y'
  15933.           Status (condition code) register (st)
  15934.  
  15935.     `z'
  15936.           Data page register (dp)
  15937.  
  15938.     `G'
  15939.           Floating-point zero
  15940.  
  15941.     `H'
  15942.           Immediate 16-bit floating-point constant
  15943.  
  15944.     `I'
  15945.           Signed 16-bit constant
  15946.  
  15947.     `J'
  15948.           Signed 8-bit constant
  15949.  
  15950.     `K'
  15951.           Signed 5-bit constant
  15952.  
  15953.     `L'
  15954.           Unsigned 16-bit constant
  15955.  
  15956.     `M'
  15957.           Unsigned 8-bit constant
  15958.  
  15959.     `N'
  15960.           Ones complement of unsigned 16-bit constant
  15961.  
  15962.     `O'
  15963.           High 16-bit constant (32-bit constant with 16 LSBs zero)
  15964.  
  15965.     `Q'
  15966.           Indirect memory reference with signed 8-bit or index register
  15967.           displacement
  15968.  
  15969.     `R'
  15970.           Indirect memory reference with unsigned 5-bit displacement
  15971.  
  15972.     `S'
  15973.           Indirect memory reference with 1 bit or index register
  15974.           displacement
  15975.  
  15976.     `T'
  15977.           Direct memory reference
  15978.  
  15979.     `U'
  15980.           Symbolic address
  15981.  
  15982.  
  15983. _S/390 and zSeries--`s390.h'_
  15984.  
  15985.     `a'
  15986.           Address register (general purpose register except r0)
  15987.  
  15988.     `d'
  15989.           Data register (arbitrary general purpose register)
  15990.  
  15991.     `f'
  15992.           Floating-point register
  15993.  
  15994.     `I'
  15995.           Unsigned 8-bit constant (0-255)
  15996.  
  15997.     `J'
  15998.           Unsigned 12-bit constant (0-4095)
  15999.  
  16000.     `K'
  16001.           Signed 16-bit constant (-32768-32767)
  16002.  
  16003.     `L'
  16004.           Value appropriate as displacement.
  16005.          `(0..4095)'
  16006.                for short displacement
  16007.  
  16008.          `(-524288..524287)'
  16009.                for long displacement
  16010.  
  16011.     `M'
  16012.           Constant integer with a value of 0x7fffffff.
  16013.  
  16014.     `N'
  16015.           Multiple letter constraint followed by 4 parameter letters.
  16016.          `0..9:'
  16017.                number of the part counting from most to least
  16018.                significant
  16019.  
  16020.          `H,Q:'
  16021.                mode of the part
  16022.  
  16023.          `D,S,H:'
  16024.                mode of the containing operand
  16025.  
  16026.          `0,F:'
  16027.                value of the other parts (F - all bits set)
  16028.           The constraint matches if the specified part of a constant
  16029.           has a value different from it's other parts.
  16030.  
  16031.     `Q'
  16032.           Memory reference without index register and with short
  16033.           displacement.
  16034.  
  16035.     `R'
  16036.           Memory reference with index register and short displacement.
  16037.  
  16038.     `S'
  16039.           Memory reference without index register but with long
  16040.           displacement.
  16041.  
  16042.     `T'
  16043.           Memory reference with index register and long displacement.
  16044.  
  16045.     `U'
  16046.           Pointer with short displacement.
  16047.  
  16048.     `W'
  16049.           Pointer with long displacement.
  16050.  
  16051.     `Y'
  16052.           Shift count operand.
  16053.  
  16054.  
  16055. _Xstormy16--`stormy16.h'_
  16056.  
  16057.     `a'
  16058.           Register r0.
  16059.  
  16060.     `b'
  16061.           Register r1.
  16062.  
  16063.     `c'
  16064.           Register r2.
  16065.  
  16066.     `d'
  16067.           Register r8.
  16068.  
  16069.     `e'
  16070.           Registers r0 through r7.
  16071.  
  16072.     `t'
  16073.           Registers r0 and r1.
  16074.  
  16075.     `y'
  16076.           The carry register.
  16077.  
  16078.     `z'
  16079.           Registers r8 and r9.
  16080.  
  16081.     `I'
  16082.           A constant between 0 and 3 inclusive.
  16083.  
  16084.     `J'
  16085.           A constant that has exactly one bit set.
  16086.  
  16087.     `K'
  16088.           A constant that has exactly one bit clear.
  16089.  
  16090.     `L'
  16091.           A constant between 0 and 255 inclusive.
  16092.  
  16093.     `M'
  16094.           A constant between -255 and 0 inclusive.
  16095.  
  16096.     `N'
  16097.           A constant between -3 and 0 inclusive.
  16098.  
  16099.     `O'
  16100.           A constant between 1 and 4 inclusive.
  16101.  
  16102.     `P'
  16103.           A constant between -4 and -1 inclusive.
  16104.  
  16105.     `Q'
  16106.           A memory reference that is a stack push.
  16107.  
  16108.     `R'
  16109.           A memory reference that is a stack pop.
  16110.  
  16111.     `S'
  16112.           A memory reference that refers to a constant address of known
  16113.           value.
  16114.  
  16115.     `T'
  16116.           The register indicated by Rx (not implemented yet).
  16117.  
  16118.     `U'
  16119.           A constant that is not between 2 and 15 inclusive.
  16120.  
  16121.     `Z'
  16122.           The constant 0.
  16123.  
  16124.  
  16125. _Xtensa--`xtensa.h'_
  16126.  
  16127.     `a'
  16128.           General-purpose 32-bit register
  16129.  
  16130.     `b'
  16131.           One-bit boolean register
  16132.  
  16133.     `A'
  16134.           MAC16 40-bit accumulator register
  16135.  
  16136.     `I'
  16137.           Signed 12-bit integer constant, for use in MOVI instructions
  16138.  
  16139.     `J'
  16140.           Signed 8-bit integer constant, for use in ADDI instructions
  16141.  
  16142.     `K'
  16143.           Integer constant valid for BccI instructions
  16144.  
  16145.     `L'
  16146.           Unsigned constant valid for BccUI instructions
  16147.  
  16148.  
  16149.  
  16150. 
  16151. File: gcc,  Node: Asm Labels,  Next: Explicit Reg Vars,  Prev: Constraints,  Up: C Extensions
  16152.  
  16153. 5.37 Controlling Names Used in Assembler Code
  16154. =============================================
  16155.  
  16156. You can specify the name to be used in the assembler code for a C
  16157. function or variable by writing the `asm' (or `__asm__') keyword after
  16158. the declarator as follows:
  16159.  
  16160.      int foo asm ("myfoo") = 2;
  16161.  
  16162. This specifies that the name to be used for the variable `foo' in the
  16163. assembler code should be `myfoo' rather than the usual `_foo'.
  16164.  
  16165.  On systems where an underscore is normally prepended to the name of a C
  16166. function or variable, this feature allows you to define names for the
  16167. linker that do not start with an underscore.
  16168.  
  16169.  It does not make sense to use this feature with a non-static local
  16170. variable since such variables do not have assembler names.  If you are
  16171. trying to put the variable in a particular register, see *Note Explicit
  16172. Reg Vars::.  GCC presently accepts such code with a warning, but will
  16173. probably be changed to issue an error, rather than a warning, in the
  16174. future.
  16175.  
  16176.  You cannot use `asm' in this way in a function _definition_; but you
  16177. can get the same effect by writing a declaration for the function
  16178. before its definition and putting `asm' there, like this:
  16179.  
  16180.      extern func () asm ("FUNC");
  16181.  
  16182.      func (x, y)
  16183.           int x, y;
  16184.      /* ... */
  16185.  
  16186.  It is up to you to make sure that the assembler names you choose do not
  16187. conflict with any other assembler symbols.  Also, you must not use a
  16188. register name; that would produce completely invalid assembler code.
  16189. GCC does not as yet have the ability to store static variables in
  16190. registers.  Perhaps that will be added.
  16191.  
  16192. 
  16193. File: gcc,  Node: Explicit Reg Vars,  Next: Alternate Keywords,  Prev: Asm Labels,  Up: C Extensions
  16194.  
  16195. 5.38 Variables in Specified Registers
  16196. =====================================
  16197.  
  16198. GNU C allows you to put a few global variables into specified hardware
  16199. registers.  You can also specify the register in which an ordinary
  16200. register variable should be allocated.
  16201.  
  16202.    * Global register variables reserve registers throughout the program.
  16203.      This may be useful in programs such as programming language
  16204.      interpreters which have a couple of global variables that are
  16205.      accessed very often.
  16206.  
  16207.    * Local register variables in specific registers do not reserve the
  16208.      registers.  The compiler's data flow analysis is capable of
  16209.      determining where the specified registers contain live values, and
  16210.      where they are available for other uses.  Stores into local
  16211.      register variables may be deleted when they appear to be dead
  16212.      according to dataflow analysis.  References to local register
  16213.      variables may be deleted or moved or simplified.
  16214.  
  16215.      These local variables are sometimes convenient for use with the
  16216.      extended `asm' feature (*note Extended Asm::), if you want to
  16217.      write one output of the assembler instruction directly into a
  16218.      particular register.  (This will work provided the register you
  16219.      specify fits the constraints specified for that operand in the
  16220.      `asm'.)
  16221.  
  16222. * Menu:
  16223.  
  16224. * Global Reg Vars::
  16225. * Local Reg Vars::
  16226.  
  16227. 
  16228. File: gcc,  Node: Global Reg Vars,  Next: Local Reg Vars,  Up: Explicit Reg Vars
  16229.  
  16230. 5.38.1 Defining Global Register Variables
  16231. -----------------------------------------
  16232.  
  16233. You can define a global register variable in GNU C like this:
  16234.  
  16235.      register int *foo asm ("a5");
  16236.  
  16237. Here `a5' is the name of the register which should be used.  Choose a
  16238. register which is normally saved and restored by function calls on your
  16239. machine, so that library routines will not clobber it.
  16240.  
  16241.  Naturally the register name is cpu-dependent, so you would need to
  16242. conditionalize your program according to cpu type.  The register `a5'
  16243. would be a good choice on a 68000 for a variable of pointer type.  On
  16244. machines with register windows, be sure to choose a "global" register
  16245. that is not affected magically by the function call mechanism.
  16246.  
  16247.  In addition, operating systems on one type of cpu may differ in how
  16248. they name the registers; then you would need additional conditionals.
  16249. For example, some 68000 operating systems call this register `%a5'.
  16250.  
  16251.  Eventually there may be a way of asking the compiler to choose a
  16252. register automatically, but first we need to figure out how it should
  16253. choose and how to enable you to guide the choice.  No solution is
  16254. evident.
  16255.  
  16256.  Defining a global register variable in a certain register reserves that
  16257. register entirely for this use, at least within the current compilation.
  16258. The register will not be allocated for any other purpose in the
  16259. functions in the current compilation.  The register will not be saved
  16260. and restored by these functions.  Stores into this register are never
  16261. deleted even if they would appear to be dead, but references may be
  16262. deleted or moved or simplified.
  16263.  
  16264.  It is not safe to access the global register variables from signal
  16265. handlers, or from more than one thread of control, because the system
  16266. library routines may temporarily use the register for other things
  16267. (unless you recompile them specially for the task at hand).
  16268.  
  16269.  It is not safe for one function that uses a global register variable to
  16270. call another such function `foo' by way of a third function `lose' that
  16271. was compiled without knowledge of this variable (i.e. in a different
  16272. source file in which the variable wasn't declared).  This is because
  16273. `lose' might save the register and put some other value there.  For
  16274. example, you can't expect a global register variable to be available in
  16275. the comparison-function that you pass to `qsort', since `qsort' might
  16276. have put something else in that register.  (If you are prepared to
  16277. recompile `qsort' with the same global register variable, you can solve
  16278. this problem.)
  16279.  
  16280.  If you want to recompile `qsort' or other source files which do not
  16281. actually use your global register variable, so that they will not use
  16282. that register for any other purpose, then it suffices to specify the
  16283. compiler option `-ffixed-REG'.  You need not actually add a global
  16284. register declaration to their source code.
  16285.  
  16286.  A function which can alter the value of a global register variable
  16287. cannot safely be called from a function compiled without this variable,
  16288. because it could clobber the value the caller expects to find there on
  16289. return.  Therefore, the function which is the entry point into the part
  16290. of the program that uses the global register variable must explicitly
  16291. save and restore the value which belongs to its caller.
  16292.  
  16293.  On most machines, `longjmp' will restore to each global register
  16294. variable the value it had at the time of the `setjmp'.  On some
  16295. machines, however, `longjmp' will not change the value of global
  16296. register variables.  To be portable, the function that called `setjmp'
  16297. should make other arrangements to save the values of the global register
  16298. variables, and to restore them in a `longjmp'.  This way, the same
  16299. thing will happen regardless of what `longjmp' does.
  16300.  
  16301.  All global register variable declarations must precede all function
  16302. definitions.  If such a declaration could appear after function
  16303. definitions, the declaration would be too late to prevent the register
  16304. from being used for other purposes in the preceding functions.
  16305.  
  16306.  Global register variables may not have initial values, because an
  16307. executable file has no means to supply initial contents for a register.
  16308.  
  16309.  On the SPARC, there are reports that g3 ... g7 are suitable registers,
  16310. but certain library functions, such as `getwd', as well as the
  16311. subroutines for division and remainder, modify g3 and g4.  g1 and g2
  16312. are local temporaries.
  16313.  
  16314.  On the 68000, a2 ... a5 should be suitable, as should d2 ... d7.  Of
  16315. course, it will not do to use more than a few of those.
  16316.  
  16317. 
  16318. File: gcc,  Node: Local Reg Vars,  Prev: Global Reg Vars,  Up: Explicit Reg Vars
  16319.  
  16320. 5.38.2 Specifying Registers for Local Variables
  16321. -----------------------------------------------
  16322.  
  16323. You can define a local register variable with a specified register like
  16324. this:
  16325.  
  16326.      register int *foo asm ("a5");
  16327.  
  16328. Here `a5' is the name of the register which should be used.  Note that
  16329. this is the same syntax used for defining global register variables,
  16330. but for a local variable it would appear within a function.
  16331.  
  16332.  Naturally the register name is cpu-dependent, but this is not a
  16333. problem, since specific registers are most often useful with explicit
  16334. assembler instructions (*note Extended Asm::).  Both of these things
  16335. generally require that you conditionalize your program according to cpu
  16336. type.
  16337.  
  16338.  In addition, operating systems on one type of cpu may differ in how
  16339. they name the registers; then you would need additional conditionals.
  16340. For example, some 68000 operating systems call this register `%a5'.
  16341.  
  16342.  Defining such a register variable does not reserve the register; it
  16343. remains available for other uses in places where flow control determines
  16344. the variable's value is not live.  However, these registers are made
  16345. unavailable for use in the reload pass; excessive use of this feature
  16346. leaves the compiler too few available registers to compile certain
  16347. functions.
  16348.  
  16349.  This option does not guarantee that GCC will generate code that has
  16350. this variable in the register you specify at all times.  You may not
  16351. code an explicit reference to this register in an `asm' statement and
  16352. assume it will always refer to this variable.
  16353.  
  16354.  Stores into local register variables may be deleted when they appear
  16355. to be dead according to dataflow analysis.  References to local
  16356. register variables may be deleted or moved or simplified.
  16357.  
  16358. 
  16359. File: gcc,  Node: Alternate Keywords,  Next: Incomplete Enums,  Prev: Explicit Reg Vars,  Up: C Extensions
  16360.  
  16361. 5.39 Alternate Keywords
  16362. =======================
  16363.  
  16364. `-ansi' and the various `-std' options disable certain keywords.  This
  16365. causes trouble when you want to use GNU C extensions, or a
  16366. general-purpose header file that should be usable by all programs,
  16367. including ISO C programs.  The keywords `asm', `typeof' and `inline'
  16368. are not available in programs compiled with `-ansi' or `-std' (although
  16369. `inline' can be used in a program compiled with `-std=c99').  The ISO
  16370. C99 keyword `restrict' is only available when `-std=gnu99' (which will
  16371. eventually be the default) or `-std=c99' (or the equivalent
  16372. `-std=iso9899:1999') is used.
  16373.  
  16374.  The way to solve these problems is to put `__' at the beginning and
  16375. end of each problematical keyword.  For example, use `__asm__' instead
  16376. of `asm', and `__inline__' instead of `inline'.
  16377.  
  16378.  Other C compilers won't accept these alternative keywords; if you want
  16379. to compile with another compiler, you can define the alternate keywords
  16380. as macros to replace them with the customary keywords.  It looks like
  16381. this:
  16382.  
  16383.      #ifndef __GNUC__
  16384.      #define __asm__ asm
  16385.      #endif
  16386.  
  16387.  `-pedantic' and other options cause warnings for many GNU C extensions.
  16388. You can prevent such warnings within one expression by writing
  16389. `__extension__' before the expression.  `__extension__' has no effect
  16390. aside from this.
  16391.  
  16392. 
  16393. File: gcc,  Node: Incomplete Enums,  Next: Function Names,  Prev: Alternate Keywords,  Up: C Extensions
  16394.  
  16395. 5.40 Incomplete `enum' Types
  16396. ============================
  16397.  
  16398. You can define an `enum' tag without specifying its possible values.
  16399. This results in an incomplete type, much like what you get if you write
  16400. `struct foo' without describing the elements.  A later declaration
  16401. which does specify the possible values completes the type.
  16402.  
  16403.  You can't allocate variables or storage using the type while it is
  16404. incomplete.  However, you can work with pointers to that type.
  16405.  
  16406.  This extension may not be very useful, but it makes the handling of
  16407. `enum' more consistent with the way `struct' and `union' are handled.
  16408.  
  16409.  This extension is not supported by GNU C++.
  16410.  
  16411. 
  16412. File: gcc,  Node: Function Names,  Next: Return Address,  Prev: Incomplete Enums,  Up: C Extensions
  16413.  
  16414. 5.41 Function Names as Strings
  16415. ==============================
  16416.  
  16417. GCC provides three magic variables which hold the name of the current
  16418. function, as a string.  The first of these is `__func__', which is part
  16419. of the C99 standard:
  16420.  
  16421.      The identifier `__func__' is implicitly declared by the translator
  16422.      as if, immediately following the opening brace of each function
  16423.      definition, the declaration
  16424.           static const char __func__[] = "function-name";
  16425.  
  16426.      appeared, where function-name is the name of the lexically-enclosing
  16427.      function.  This name is the unadorned name of the function.
  16428.  
  16429.  `__FUNCTION__' is another name for `__func__'.  Older versions of GCC
  16430. recognize only this name.  However, it is not standardized.  For
  16431. maximum portability, we recommend you use `__func__', but provide a
  16432. fallback definition with the preprocessor:
  16433.  
  16434.      #if __STDC_VERSION__ < 199901L
  16435.      # if __GNUC__ >= 2
  16436.      #  define __func__ __FUNCTION__
  16437.      # else
  16438.      #  define __func__ "<unknown>"
  16439.      # endif
  16440.      #endif
  16441.  
  16442.  In C, `__PRETTY_FUNCTION__' is yet another name for `__func__'.
  16443. However, in C++, `__PRETTY_FUNCTION__' contains the type signature of
  16444. the function as well as its bare name.  For example, this program:
  16445.  
  16446.      extern "C" {
  16447.      extern int printf (char *, ...);
  16448.      }
  16449.  
  16450.      class a {
  16451.       public:
  16452.        void sub (int i)
  16453.          {
  16454.            printf ("__FUNCTION__ = %s\n", __FUNCTION__);
  16455.            printf ("__PRETTY_FUNCTION__ = %s\n", __PRETTY_FUNCTION__);
  16456.          }
  16457.      };
  16458.  
  16459.      int
  16460.      main (void)
  16461.      {
  16462.        a ax;
  16463.        ax.sub (0);
  16464.        return 0;
  16465.      }
  16466.  
  16467. gives this output:
  16468.  
  16469.      __FUNCTION__ = sub
  16470.      __PRETTY_FUNCTION__ = void a::sub(int)
  16471.  
  16472.  These identifiers are not preprocessor macros.  In GCC 3.3 and
  16473. earlier, in C only, `__FUNCTION__' and `__PRETTY_FUNCTION__' were
  16474. treated as string literals; they could be used to initialize `char'
  16475. arrays, and they could be concatenated with other string literals.  GCC
  16476. 3.4 and later treat them as variables, like `__func__'.  In C++,
  16477. `__FUNCTION__' and `__PRETTY_FUNCTION__' have always been variables.
  16478.  
  16479. 
  16480. File: gcc,  Node: Return Address,  Next: Vector Extensions,  Prev: Function Names,  Up: C Extensions
  16481.  
  16482. 5.42 Getting the Return or Frame Address of a Function
  16483. ======================================================
  16484.  
  16485. These functions may be used to get information about the callers of a
  16486. function.
  16487.  
  16488.  -- Built-in Function: void * __builtin_return_address (unsigned int
  16489.           LEVEL)
  16490.      This function returns the return address of the current function,
  16491.      or of one of its callers.  The LEVEL argument is number of frames
  16492.      to scan up the call stack.  A value of `0' yields the return
  16493.      address of the current function, a value of `1' yields the return
  16494.      address of the caller of the current function, and so forth. When
  16495.      inlining the expected behavior is that the function will return
  16496.      the address of the function that will be returned to.  To work
  16497.      around this behavior use the `noinline' function attribute.
  16498.  
  16499.      The LEVEL argument must be a constant integer.
  16500.  
  16501.      On some machines it may be impossible to determine the return
  16502.      address of any function other than the current one; in such cases,
  16503.      or when the top of the stack has been reached, this function will
  16504.      return `0' or a random value. In addition,
  16505.      `__builtin_frame_address' may be used to determine if the top of
  16506.      the stack has been reached.
  16507.  
  16508.      This function should only be used with a nonzero argument for
  16509.      debugging purposes.
  16510.  
  16511.  -- Built-in Function: void * __builtin_frame_address (unsigned int
  16512.           LEVEL)
  16513.      This function is similar to `__builtin_return_address', but it
  16514.      returns the address of the function frame rather than the return
  16515.      address of the function.  Calling `__builtin_frame_address' with a
  16516.      value of `0' yields the frame address of the current function, a
  16517.      value of `1' yields the frame address of the caller of the current
  16518.      function, and so forth.
  16519.  
  16520.      The frame is the area on the stack which holds local variables and
  16521.      saved registers.  The frame address is normally the address of the
  16522.      first word pushed on to the stack by the function.  However, the
  16523.      exact definition depends upon the processor and the calling
  16524.      convention.  If the processor has a dedicated frame pointer
  16525.      register, and the function has a frame, then
  16526.      `__builtin_frame_address' will return the value of the frame
  16527.      pointer register.
  16528.  
  16529.      On some machines it may be impossible to determine the frame
  16530.      address of any function other than the current one; in such cases,
  16531.      or when the top of the stack has been reached, this function will
  16532.      return `0' if the first frame pointer is properly initialized by
  16533.      the startup code.
  16534.  
  16535.      This function should only be used with a nonzero argument for
  16536.      debugging purposes.
  16537.  
  16538. 
  16539. File: gcc,  Node: Vector Extensions,  Next: Other Builtins,  Prev: Return Address,  Up: C Extensions
  16540.  
  16541. 5.43 Using vector instructions through built-in functions
  16542. =========================================================
  16543.  
  16544. On some targets, the instruction set contains SIMD vector instructions
  16545. that operate on multiple values contained in one large register at the
  16546. same time.  For example, on the i386 the MMX, 3Dnow! and SSE extensions
  16547. can be used this way.
  16548.  
  16549.  The first step in using these extensions is to provide the necessary
  16550. data types.  This should be done using an appropriate `typedef':
  16551.  
  16552.      typedef int v4si __attribute__ ((mode(V4SI)));
  16553.  
  16554.  The base type `int' is effectively ignored by the compiler, the actual
  16555. properties of the new type `v4si' are defined by the `__attribute__'.
  16556. It defines the machine mode to be used; for vector types these have the
  16557. form `VNB'; N should be the number of elements in the vector, and B
  16558. should be the base mode of the individual elements.  The following can
  16559. be used as base modes:
  16560.  
  16561. `QI'
  16562.      An integer that is as wide as the smallest addressable unit,
  16563.      usually 8 bits.
  16564.  
  16565. `HI'
  16566.      An integer, twice as wide as a QI mode integer, usually 16 bits.
  16567.  
  16568. `SI'
  16569.      An integer, four times as wide as a QI mode integer, usually 32
  16570.      bits.
  16571.  
  16572. `DI'
  16573.      An integer, eight times as wide as a QI mode integer, usually 64
  16574.      bits.
  16575.  
  16576. `SF'
  16577.      A floating point value, as wide as a SI mode integer, usually 32
  16578.      bits.
  16579.  
  16580. `DF'
  16581.      A floating point value, as wide as a DI mode integer, usually 64
  16582.      bits.
  16583.  
  16584.  Specifying a combination that is not valid for the current architecture
  16585. will cause GCC to synthesize the instructions using a narrower mode.
  16586. For example, if you specify a variable of type `V4SI' and your
  16587. architecture does not allow for this specific SIMD type, GCC will
  16588. produce code that uses 4 `SIs'.
  16589.  
  16590.  The types defined in this manner can be used with a subset of normal C
  16591. operations.  Currently, GCC will allow using the following operators on
  16592. these types: `+, -, *, /, unary minus, ^, |, &, ~'.
  16593.  
  16594.  The operations behave like C++ `valarrays'.  Addition is defined as
  16595. the addition of the corresponding elements of the operands.  For
  16596. example, in the code below, each of the 4 elements in A will be added
  16597. to the corresponding 4 elements in B and the resulting vector will be
  16598. stored in C.
  16599.  
  16600.      typedef int v4si __attribute__ ((mode(V4SI)));
  16601.  
  16602.      v4si a, b, c;
  16603.  
  16604.      c = a + b;
  16605.  
  16606.  Subtraction, multiplication, division, and the logical operations
  16607. operate in a similar manner.  Likewise, the result of using the unary
  16608. minus or complement operators on a vector type is a vector whose
  16609. elements are the negative or complemented values of the corresponding
  16610. elements in the operand.
  16611.  
  16612.  You can declare variables and use them in function calls and returns,
  16613. as well as in assignments and some casts.  You can specify a vector
  16614. type as a return type for a function.  Vector types can also be used as
  16615. function arguments.  It is possible to cast from one vector type to
  16616. another, provided they are of the same size (in fact, you can also cast
  16617. vectors to and from other datatypes of the same size).
  16618.  
  16619.  You cannot operate between vectors of different lengths or different
  16620. signedness without a cast.
  16621.  
  16622.  A port that supports hardware vector operations, usually provides a set
  16623. of built-in functions that can be used to operate on vectors.  For
  16624. example, a function to add two vectors and multiply the result by a
  16625. third could look like this:
  16626.  
  16627.      v4si f (v4si a, v4si b, v4si c)
  16628.      {
  16629.        v4si tmp = __builtin_addv4si (a, b);
  16630.        return __builtin_mulv4si (tmp, c);
  16631.      }
  16632.  
  16633. 
  16634. File: gcc,  Node: Other Builtins,  Next: Target Builtins,  Prev: Vector Extensions,  Up: C Extensions
  16635.  
  16636. 5.44 Other built-in functions provided by GCC
  16637. =============================================
  16638.  
  16639. GCC provides a large number of built-in functions other than the ones
  16640. mentioned above.  Some of these are for internal use in the processing
  16641. of exceptions or variable-length argument lists and will not be
  16642. documented here because they may change from time to time; we do not
  16643. recommend general use of these functions.
  16644.  
  16645.  The remaining functions are provided for optimization purposes.
  16646.  
  16647.  GCC includes built-in versions of many of the functions in the standard
  16648. C library.  The versions prefixed with `__builtin_' will always be
  16649. treated as having the same meaning as the C library function even if you
  16650. specify the `-fno-builtin' option. (*note C Dialect Options::) Many of
  16651. these functions are only optimized in certain cases; if they are not
  16652. optimized in a particular case, a call to the library function will be
  16653. emitted.
  16654.  
  16655.  Outside strict ISO C mode (`-ansi', `-std=c89' or `-std=c99'), the
  16656. functions `_exit', `alloca', `bcmp', `bzero', `dcgettext', `dgettext',
  16657. `dremf', `dreml', `drem', `exp10f', `exp10l', `exp10', `ffsll', `ffsl',
  16658. `ffs', `fprintf_unlocked', `fputs_unlocked', `gammaf', `gammal',
  16659. `gamma', `gettext', `index', `j0f', `j0l', `j0', `j1f', `j1l', `j1',
  16660. `jnf', `jnl', `jn', `mempcpy', `pow10f', `pow10l', `pow10',
  16661. `printf_unlocked', `rindex', `scalbf', `scalbl', `scalb',
  16662. `significandf', `significandl', `significand', `sincosf', `sincosl',
  16663. `sincos', `stpcpy', `strdup', `strfmon', `y0f', `y0l', `y0', `y1f',
  16664. `y1l', `y1', `ynf', `ynl' and `yn' may be handled as built-in functions.
  16665. All these functions have corresponding versions prefixed with
  16666. `__builtin_', which may be used even in strict C89 mode.
  16667.  
  16668.  The ISO C99 functions `_Exit', `acoshf', `acoshl', `acosh', `asinhf',
  16669. `asinhl', `asinh', `atanhf', `atanhl', `atanh', `cabsf', `cabsl',
  16670. `cabs', `cacosf', `cacoshf', `cacoshl', `cacosh', `cacosl', `cacos',
  16671. `cargf', `cargl', `carg', `casinf', `casinhf', `casinhl', `casinh',
  16672. `casinl', `casin', `catanf', `catanhf', `catanhl', `catanh', `catanl',
  16673. `catan', `cbrtf', `cbrtl', `cbrt', `ccosf', `ccoshf', `ccoshl',
  16674. `ccosh', `ccosl', `ccos', `cexpf', `cexpl', `cexp', `cimagf', `cimagl',
  16675. `cimag', `conjf', `conjl', `conj', `copysignf', `copysignl',
  16676. `copysign', `cpowf', `cpowl', `cpow', `cprojf', `cprojl', `cproj',
  16677. `crealf', `creall', `creal', `csinf', `csinhf', `csinhl', `csinh',
  16678. `csinl', `csin', `csqrtf', `csqrtl', `csqrt', `ctanf', `ctanhf',
  16679. `ctanhl', `ctanh', `ctanl', `ctan', `erfcf', `erfcl', `erfc', `erff',
  16680. `erfl', `erf', `exp2f', `exp2l', `exp2', `expm1f', `expm1l', `expm1',
  16681. `fdimf', `fdiml', `fdim', `fmaf', `fmal', `fmaxf', `fmaxl', `fmax',
  16682. `fma', `fminf', `fminl', `fmin', `hypotf', `hypotl', `hypot', `ilogbf',
  16683. `ilogbl', `ilogb', `imaxabs', `lgammaf', `lgammal', `lgamma', `llabs',
  16684. `llrintf', `llrintl', `llrint', `llroundf', `llroundl', `llround',
  16685. `log1pf', `log1pl', `log1p', `log2f', `log2l', `log2', `logbf', `logbl',
  16686. `logb', `lrintf', `lrintl', `lrint', `lroundf', `lroundl', `lround',
  16687. `nearbyintf', `nearbyintl', `nearbyint', `nextafterf', `nextafterl',
  16688. `nextafter', `nexttowardf', `nexttowardl', `nexttoward', `remainderf',
  16689. `remainderl', `remainder', `remquof', `remquol', `remquo', `rintf',
  16690. `rintl', `rint', `roundf', `roundl', `round', `scalblnf', `scalblnl',
  16691. `scalbln', `scalbnf', `scalbnl', `scalbn', `snprintf', `tgammaf',
  16692. `tgammal', `tgamma', `truncf', `truncl', `trunc', `vfscanf', `vscanf',
  16693. `vsnprintf' and `vsscanf' are handled as built-in functions except in
  16694. strict ISO C90 mode (`-ansi' or `-std=c89').
  16695.  
  16696.  There are also built-in versions of the ISO C99 functions `acosf',
  16697. `acosl', `asinf', `asinl', `atan2f', `atan2l', `atanf', `atanl',
  16698. `ceilf', `ceill', `cosf', `coshf', `coshl', `cosl', `expf', `expl',
  16699. `fabsf', `fabsl', `floorf', `floorl', `fmodf', `fmodl', `frexpf',
  16700. `frexpl', `ldexpf', `ldexpl', `log10f', `log10l', `logf', `logl',
  16701. `modfl', `modf', `powf', `powl', `sinf', `sinhf', `sinhl', `sinl',
  16702. `sqrtf', `sqrtl', `tanf', `tanhf', `tanhl' and `tanl' that are
  16703. recognized in any mode since ISO C90 reserves these names for the
  16704. purpose to which ISO C99 puts them.  All these functions have
  16705. corresponding versions prefixed with `__builtin_'.
  16706.  
  16707.  The ISO C90 functions `abort', `abs', `acos', `asin', `atan2', `atan',
  16708. `calloc', `ceil', `cosh', `cos', `exit', `exp', `fabs', `floor', `fmod',
  16709. `fprintf', `fputs', `frexp', `fscanf', `labs', `ldexp', `log10', `log',
  16710. `malloc', `memcmp', `memcpy', `memset', `modf', `pow', `printf',
  16711. `putchar', `puts', `scanf', `sinh', `sin', `snprintf', `sprintf',
  16712. `sqrt', `sscanf', `strcat', `strchr', `strcmp', `strcpy', `strcspn',
  16713. `strlen', `strncat', `strncmp', `strncpy', `strpbrk', `strrchr',
  16714. `strspn', `strstr', `tanh', `tan', `vfprintf', `vprintf' and `vsprintf'
  16715. are all recognized as built-in functions unless `-fno-builtin' is
  16716. specified (or `-fno-builtin-FUNCTION' is specified for an individual
  16717. function).  All of these functions have corresponding versions prefixed
  16718. with `__builtin_'.
  16719.  
  16720.  GCC provides built-in versions of the ISO C99 floating point comparison
  16721. macros that avoid raising exceptions for unordered operands.  They have
  16722. the same names as the standard macros ( `isgreater', `isgreaterequal',
  16723. `isless', `islessequal', `islessgreater', and `isunordered') , with
  16724. `__builtin_' prefixed.  We intend for a library implementor to be able
  16725. to simply `#define' each standard macro to its built-in equivalent.
  16726.  
  16727.  -- Built-in Function: int __builtin_types_compatible_p (TYPE1, TYPE2)
  16728.      You can use the built-in function `__builtin_types_compatible_p' to
  16729.      determine whether two types are the same.
  16730.  
  16731.      This built-in function returns 1 if the unqualified versions of the
  16732.      types TYPE1 and TYPE2 (which are types, not expressions) are
  16733.      compatible, 0 otherwise.  The result of this built-in function can
  16734.      be used in integer constant expressions.
  16735.  
  16736.      This built-in function ignores top level qualifiers (e.g., `const',
  16737.      `volatile').  For example, `int' is equivalent to `const int'.
  16738.  
  16739.      The type `int[]' and `int[5]' are compatible.  On the other hand,
  16740.      `int' and `char *' are not compatible, even if the size of their
  16741.      types, on the particular architecture are the same.  Also, the
  16742.      amount of pointer indirection is taken into account when
  16743.      determining similarity.  Consequently, `short *' is not similar to
  16744.      `short **'.  Furthermore, two types that are typedefed are
  16745.      considered compatible if their underlying types are compatible.
  16746.  
  16747.      An `enum' type is not considered to be compatible with another
  16748.      `enum' type even if both are compatible with the same integer
  16749.      type; this is what the C standard specifies.  For example, `enum
  16750.      {foo, bar}' is not similar to `enum {hot, dog}'.
  16751.  
  16752.      You would typically use this function in code whose execution
  16753.      varies depending on the arguments' types.  For example:
  16754.  
  16755.           #define foo(x)                                                  \
  16756.             ({                                                           \
  16757.               typeof (x) tmp;                                             \
  16758.               if (__builtin_types_compatible_p (typeof (x), long double)) \
  16759.                 tmp = foo_long_double (tmp);                              \
  16760.               else if (__builtin_types_compatible_p (typeof (x), double)) \
  16761.                 tmp = foo_double (tmp);                                   \
  16762.               else if (__builtin_types_compatible_p (typeof (x), float))  \
  16763.                 tmp = foo_float (tmp);                                    \
  16764.               else                                                        \
  16765.                 abort ();                                                 \
  16766.               tmp;                                                        \
  16767.             })
  16768.  
  16769.      _Note:_ This construct is only available for C.
  16770.  
  16771.  
  16772.  -- Built-in Function: TYPE __builtin_choose_expr (CONST_EXP, EXP1,
  16773.           EXP2)
  16774.      You can use the built-in function `__builtin_choose_expr' to
  16775.      evaluate code depending on the value of a constant expression.
  16776.      This built-in function returns EXP1 if CONST_EXP, which is a
  16777.      constant expression that must be able to be determined at compile
  16778.      time, is nonzero.  Otherwise it returns 0.
  16779.  
  16780.      This built-in function is analogous to the `? :' operator in C,
  16781.      except that the expression returned has its type unaltered by
  16782.      promotion rules.  Also, the built-in function does not evaluate
  16783.      the expression that was not chosen.  For example, if CONST_EXP
  16784.      evaluates to true, EXP2 is not evaluated even if it has
  16785.      side-effects.
  16786.  
  16787.      This built-in function can return an lvalue if the chosen argument
  16788.      is an lvalue.
  16789.  
  16790.      If EXP1 is returned, the return type is the same as EXP1's type.
  16791.      Similarly, if EXP2 is returned, its return type is the same as
  16792.      EXP2.
  16793.  
  16794.      Example:
  16795.  
  16796.           #define foo(x)                                                    \
  16797.             __builtin_choose_expr (                                         \
  16798.               __builtin_types_compatible_p (typeof (x), double),            \
  16799.               foo_double (x),                                               \
  16800.               __builtin_choose_expr (                                       \
  16801.                 __builtin_types_compatible_p (typeof (x), float),           \
  16802.                 foo_float (x),                                              \
  16803.                 /* The void expression results in a compile-time error  \
  16804.                    when assigning the result to something.  */          \
  16805.                 (void)0))
  16806.  
  16807.      _Note:_ This construct is only available for C.  Furthermore, the
  16808.      unused expression (EXP1 or EXP2 depending on the value of
  16809.      CONST_EXP) may still generate syntax errors.  This may change in
  16810.      future revisions.
  16811.  
  16812.  
  16813.  -- Built-in Function: int __builtin_constant_p (EXP)
  16814.      You can use the built-in function `__builtin_constant_p' to
  16815.      determine if a value is known to be constant at compile-time and
  16816.      hence that GCC can perform constant-folding on expressions
  16817.      involving that value.  The argument of the function is the value
  16818.      to test.  The function returns the integer 1 if the argument is
  16819.      known to be a compile-time constant and 0 if it is not known to be
  16820.      a compile-time constant.  A return of 0 does not indicate that the
  16821.      value is _not_ a constant, but merely that GCC cannot prove it is
  16822.      a constant with the specified value of the `-O' option.
  16823.  
  16824.      You would typically use this function in an embedded application
  16825.      where memory was a critical resource.  If you have some complex
  16826.      calculation, you may want it to be folded if it involves
  16827.      constants, but need to call a function if it does not.  For
  16828.      example:
  16829.  
  16830.           #define Scale_Value(X)      \
  16831.             (__builtin_constant_p (X) \
  16832.             ? ((X) * SCALE + OFFSET) : Scale (X))
  16833.  
  16834.      You may use this built-in function in either a macro or an inline
  16835.      function.  However, if you use it in an inlined function and pass
  16836.      an argument of the function as the argument to the built-in, GCC
  16837.      will never return 1 when you call the inline function with a
  16838.      string constant or compound literal (*note Compound Literals::)
  16839.      and will not return 1 when you pass a constant numeric value to
  16840.      the inline function unless you specify the `-O' option.
  16841.  
  16842.      You may also use `__builtin_constant_p' in initializers for static
  16843.      data.  For instance, you can write
  16844.  
  16845.           static const int table[] = {
  16846.              __builtin_constant_p (EXPRESSION) ? (EXPRESSION) : -1,
  16847.              /* ... */
  16848.           };
  16849.  
  16850.      This is an acceptable initializer even if EXPRESSION is not a
  16851.      constant expression.  GCC must be more conservative about
  16852.      evaluating the built-in in this case, because it has no
  16853.      opportunity to perform optimization.
  16854.  
  16855.      Previous versions of GCC did not accept this built-in in data
  16856.      initializers.  The earliest version where it is completely safe is
  16857.      3.0.1.
  16858.  
  16859.  -- Built-in Function: long __builtin_expect (long EXP, long C)
  16860.      You may use `__builtin_expect' to provide the compiler with branch
  16861.      prediction information.  In general, you should prefer to use
  16862.      actual profile feedback for this (`-fprofile-arcs'), as
  16863.      programmers are notoriously bad at predicting how their programs
  16864.      actually perform.  However, there are applications in which this
  16865.      data is hard to collect.
  16866.  
  16867.      The return value is the value of EXP, which should be an integral
  16868.      expression.  The value of C must be a compile-time constant.  The
  16869.      semantics of the built-in are that it is expected that EXP == C.
  16870.      For example:
  16871.  
  16872.           if (__builtin_expect (x, 0))
  16873.             foo ();
  16874.  
  16875.      would indicate that we do not expect to call `foo', since we
  16876.      expect `x' to be zero.  Since you are limited to integral
  16877.      expressions for EXP, you should use constructions such as
  16878.  
  16879.           if (__builtin_expect (ptr != NULL, 1))
  16880.             error ();
  16881.  
  16882.      when testing pointer or floating-point values.
  16883.  
  16884.  -- Built-in Function: void __builtin_prefetch (const void *ADDR, ...)
  16885.      This function is used to minimize cache-miss latency by moving
  16886.      data into a cache before it is accessed.  You can insert calls to
  16887.      `__builtin_prefetch' into code for which you know addresses of
  16888.      data in memory that is likely to be accessed soon.  If the target
  16889.      supports them, data prefetch instructions will be generated.  If
  16890.      the prefetch is done early enough before the access then the data
  16891.      will be in the cache by the time it is accessed.
  16892.  
  16893.      The value of ADDR is the address of the memory to prefetch.  There
  16894.      are two optional arguments, RW and LOCALITY.  The value of RW is a
  16895.      compile-time constant one or zero; one means that the prefetch is
  16896.      preparing for a write to the memory address and zero, the default,
  16897.      means that the prefetch is preparing for a read.  The value
  16898.      LOCALITY must be a compile-time constant integer between zero and
  16899.      three.  A value of zero means that the data has no temporal
  16900.      locality, so it need not be left in the cache after the access.  A
  16901.      value of three means that the data has a high degree of temporal
  16902.      locality and should be left in all levels of cache possible.
  16903.      Values of one and two mean, respectively, a low or moderate degree
  16904.      of temporal locality.  The default is three.
  16905.  
  16906.           for (i = 0; i < n; i++)
  16907.             {
  16908.               a[i] = a[i] + b[i];
  16909.               __builtin_prefetch (&a[i+j], 1, 1);
  16910.               __builtin_prefetch (&b[i+j], 0, 1);
  16911.               /* ... */
  16912.             }
  16913.  
  16914.      Data prefetch does not generate faults if ADDR is invalid, but the
  16915.      address expression itself must be valid.  For example, a prefetch
  16916.      of `p->next' will not fault if `p->next' is not a valid address,
  16917.      but evaluation will fault if `p' is not a valid address.
  16918.  
  16919.      If the target does not support data prefetch, the address
  16920.      expression is evaluated if it includes side effects but no other
  16921.      code is generated and GCC does not issue a warning.
  16922.  
  16923.  -- Built-in Function: double __builtin_huge_val (void)
  16924.      Returns a positive infinity, if supported by the floating-point
  16925.      format, else `DBL_MAX'.  This function is suitable for
  16926.      implementing the ISO C macro `HUGE_VAL'.
  16927.  
  16928.  -- Built-in Function: float __builtin_huge_valf (void)
  16929.      Similar to `__builtin_huge_val', except the return type is `float'.
  16930.  
  16931.  -- Built-in Function: long double __builtin_huge_vall (void)
  16932.      Similar to `__builtin_huge_val', except the return type is `long
  16933.      double'.
  16934.  
  16935.  -- Built-in Function: double __builtin_inf (void)
  16936.      Similar to `__builtin_huge_val', except a warning is generated if
  16937.      the target floating-point format does not support infinities.
  16938.      This function is suitable for implementing the ISO C99 macro
  16939.      `INFINITY'.
  16940.  
  16941.  -- Built-in Function: float __builtin_inff (void)
  16942.      Similar to `__builtin_inf', except the return type is `float'.
  16943.  
  16944.  -- Built-in Function: long double __builtin_infl (void)
  16945.      Similar to `__builtin_inf', except the return type is `long
  16946.      double'.
  16947.  
  16948.  -- Built-in Function: double __builtin_nan (const char *str)
  16949.      This is an implementation of the ISO C99 function `nan'.
  16950.  
  16951.      Since ISO C99 defines this function in terms of `strtod', which we
  16952.      do not implement, a description of the parsing is in order.  The
  16953.      string is parsed as by `strtol'; that is, the base is recognized by
  16954.      leading `0' or `0x' prefixes.  The number parsed is placed in the
  16955.      significand such that the least significant bit of the number is
  16956.      at the least significant bit of the significand.  The number is
  16957.      truncated to fit the significand field provided.  The significand
  16958.      is forced to be a quiet NaN.
  16959.  
  16960.      This function, if given a string literal, is evaluated early enough
  16961.      that it is considered a compile-time constant.
  16962.  
  16963.  -- Built-in Function: float __builtin_nanf (const char *str)
  16964.      Similar to `__builtin_nan', except the return type is `float'.
  16965.  
  16966.  -- Built-in Function: long double __builtin_nanl (const char *str)
  16967.      Similar to `__builtin_nan', except the return type is `long
  16968.      double'.
  16969.  
  16970.  -- Built-in Function: double __builtin_nans (const char *str)
  16971.      Similar to `__builtin_nan', except the significand is forced to be
  16972.      a signaling NaN.  The `nans' function is proposed by WG14 N965.
  16973.  
  16974.  -- Built-in Function: float __builtin_nansf (const char *str)
  16975.      Similar to `__builtin_nans', except the return type is `float'.
  16976.  
  16977.  -- Built-in Function: long double __builtin_nansl (const char *str)
  16978.      Similar to `__builtin_nans', except the return type is `long
  16979.      double'.
  16980.  
  16981.  -- Built-in Function: int __builtin_ffs (unsigned int x)
  16982.      Returns one plus the index of the least significant 1-bit of X, or
  16983.      if X is zero, returns zero.
  16984.  
  16985.  -- Built-in Function: int __builtin_clz (unsigned int x)
  16986.      Returns the number of leading 0-bits in X, starting at the most
  16987.      significant bit position.  If X is 0, the result is undefined.
  16988.  
  16989.  -- Built-in Function: int __builtin_ctz (unsigned int x)
  16990.      Returns the number of trailing 0-bits in X, starting at the least
  16991.      significant bit position.  If X is 0, the result is undefined.
  16992.  
  16993.  -- Built-in Function: int __builtin_popcount (unsigned int x)
  16994.      Returns the number of 1-bits in X.
  16995.  
  16996.  -- Built-in Function: int __builtin_parity (unsigned int x)
  16997.      Returns the parity of X, i.e. the number of 1-bits in X modulo 2.
  16998.  
  16999.  -- Built-in Function: int __builtin_ffsl (unsigned long)
  17000.      Similar to `__builtin_ffs', except the argument type is `unsigned
  17001.      long'.
  17002.  
  17003.  -- Built-in Function: int __builtin_clzl (unsigned long)
  17004.      Similar to `__builtin_clz', except the argument type is `unsigned
  17005.      long'.
  17006.  
  17007.  -- Built-in Function: int __builtin_ctzl (unsigned long)
  17008.      Similar to `__builtin_ctz', except the argument type is `unsigned
  17009.      long'.
  17010.  
  17011.  -- Built-in Function: int __builtin_popcountl (unsigned long)
  17012.      Similar to `__builtin_popcount', except the argument type is
  17013.      `unsigned long'.
  17014.  
  17015.  -- Built-in Function: int __builtin_parityl (unsigned long)
  17016.      Similar to `__builtin_parity', except the argument type is
  17017.      `unsigned long'.
  17018.  
  17019.  -- Built-in Function: int __builtin_ffsll (unsigned long long)
  17020.      Similar to `__builtin_ffs', except the argument type is `unsigned
  17021.      long long'.
  17022.  
  17023.  -- Built-in Function: int __builtin_clzll (unsigned long long)
  17024.      Similar to `__builtin_clz', except the argument type is `unsigned
  17025.      long long'.
  17026.  
  17027.  -- Built-in Function: int __builtin_ctzll (unsigned long long)
  17028.      Similar to `__builtin_ctz', except the argument type is `unsigned
  17029.      long long'.
  17030.  
  17031.  -- Built-in Function: int __builtin_popcountll (unsigned long long)
  17032.      Similar to `__builtin_popcount', except the argument type is
  17033.      `unsigned long long'.
  17034.  
  17035.  -- Built-in Function: int __builtin_parityll (unsigned long long)
  17036.      Similar to `__builtin_parity', except the argument type is
  17037.      `unsigned long long'.
  17038.  
  17039. 
  17040. File: gcc,  Node: Target Builtins,  Next: Pragmas,  Prev: Other Builtins,  Up: C Extensions
  17041.  
  17042. 5.45 Built-in Functions Specific to Particular Target Machines
  17043. ==============================================================
  17044.  
  17045. On some target machines, GCC supports many built-in functions specific
  17046. to those machines.  Generally these generate calls to specific machine
  17047. instructions, but allow the compiler to schedule those calls.
  17048.  
  17049. * Menu:
  17050.  
  17051. * Alpha Built-in Functions::
  17052. * ARM Built-in Functions::
  17053. * X86 Built-in Functions::
  17054. * PowerPC AltiVec Built-in Functions::
  17055.  
  17056. 
  17057. File: gcc,  Node: Alpha Built-in Functions,  Next: ARM Built-in Functions,  Up: Target Builtins
  17058.  
  17059. 5.45.1 Alpha Built-in Functions
  17060. -------------------------------
  17061.  
  17062. These built-in functions are available for the Alpha family of
  17063. processors, depending on the command-line switches used.
  17064.  
  17065.  The following built-in functions are always available.  They all
  17066. generate the machine instruction that is part of the name.
  17067.  
  17068.      long __builtin_alpha_implver (void)
  17069.      long __builtin_alpha_rpcc (void)
  17070.      long __builtin_alpha_amask (long)
  17071.      long __builtin_alpha_cmpbge (long, long)
  17072.      long __builtin_alpha_extbl (long, long)
  17073.      long __builtin_alpha_extwl (long, long)
  17074.      long __builtin_alpha_extll (long, long)
  17075.      long __builtin_alpha_extql (long, long)
  17076.      long __builtin_alpha_extwh (long, long)
  17077.      long __builtin_alpha_extlh (long, long)
  17078.      long __builtin_alpha_extqh (long, long)
  17079.      long __builtin_alpha_insbl (long, long)
  17080.      long __builtin_alpha_inswl (long, long)
  17081.      long __builtin_alpha_insll (long, long)
  17082.      long __builtin_alpha_insql (long, long)
  17083.      long __builtin_alpha_inswh (long, long)
  17084.      long __builtin_alpha_inslh (long, long)
  17085.      long __builtin_alpha_insqh (long, long)
  17086.      long __builtin_alpha_mskbl (long, long)
  17087.      long __builtin_alpha_mskwl (long, long)
  17088.      long __builtin_alpha_mskll (long, long)
  17089.      long __builtin_alpha_mskql (long, long)
  17090.      long __builtin_alpha_mskwh (long, long)
  17091.      long __builtin_alpha_msklh (long, long)
  17092.      long __builtin_alpha_mskqh (long, long)
  17093.      long __builtin_alpha_umulh (long, long)
  17094.      long __builtin_alpha_zap (long, long)
  17095.      long __builtin_alpha_zapnot (long, long)
  17096.  
  17097.  The following built-in functions are always with `-mmax' or
  17098. `-mcpu=CPU' where CPU is `pca56' or later.  They all generate the
  17099. machine instruction that is part of the name.
  17100.  
  17101.      long __builtin_alpha_pklb (long)
  17102.      long __builtin_alpha_pkwb (long)
  17103.      long __builtin_alpha_unpkbl (long)
  17104.      long __builtin_alpha_unpkbw (long)
  17105.      long __builtin_alpha_minub8 (long, long)
  17106.      long __builtin_alpha_minsb8 (long, long)
  17107.      long __builtin_alpha_minuw4 (long, long)
  17108.      long __builtin_alpha_minsw4 (long, long)
  17109.      long __builtin_alpha_maxub8 (long, long)
  17110.      long __builtin_alpha_maxsb8 (long, long)
  17111.      long __builtin_alpha_maxuw4 (long, long)
  17112.      long __builtin_alpha_maxsw4 (long, long)
  17113.      long __builtin_alpha_perr (long, long)
  17114.  
  17115.  The following built-in functions are always with `-mcix' or
  17116. `-mcpu=CPU' where CPU is `ev67' or later.  They all generate the
  17117. machine instruction that is part of the name.
  17118.  
  17119.      long __builtin_alpha_cttz (long)
  17120.      long __builtin_alpha_ctlz (long)
  17121.      long __builtin_alpha_ctpop (long)
  17122.  
  17123.  The following builtins are available on systems that use the OSF/1
  17124. PALcode.  Normally they invoke the `rduniq' and `wruniq' PAL calls, but
  17125. when invoked with `-mtls-kernel', they invoke `rdval' and `wrval'.
  17126.  
  17127.      void *__builtin_thread_pointer (void)
  17128.      void __builtin_set_thread_pointer (void *)
  17129.  
  17130. 
  17131. File: gcc,  Node: ARM Built-in Functions,  Next: X86 Built-in Functions,  Prev: Alpha Built-in Functions,  Up: Target Builtins
  17132.  
  17133. 5.45.2 ARM Built-in Functions
  17134. -----------------------------
  17135.  
  17136. These built-in functions are available for the ARM family of
  17137. processors, when the `-mcpu=iwmmxt' switch is used:
  17138.  
  17139.      typedef int v2si __attribute__ ((vector_size (8)));
  17140.      typedef short v4hi __attribute__ ((vector_size (8)));
  17141.      typedef char v8qi __attribute__ ((vector_size (8)));
  17142.  
  17143.      int __builtin_arm_getwcx (int)
  17144.      void __builtin_arm_setwcx (int, int)
  17145.      int __builtin_arm_textrmsb (v8qi, int)
  17146.      int __builtin_arm_textrmsh (v4hi, int)
  17147.      int __builtin_arm_textrmsw (v2si, int)
  17148.      int __builtin_arm_textrmub (v8qi, int)
  17149.      int __builtin_arm_textrmuh (v4hi, int)
  17150.      int __builtin_arm_textrmuw (v2si, int)
  17151.      v8qi __builtin_arm_tinsrb (v8qi, int)
  17152.      v4hi __builtin_arm_tinsrh (v4hi, int)
  17153.      v2si __builtin_arm_tinsrw (v2si, int)
  17154.      long long __builtin_arm_tmia (long long, int, int)
  17155.      long long __builtin_arm_tmiabb (long long, int, int)
  17156.      long long __builtin_arm_tmiabt (long long, int, int)
  17157.      long long __builtin_arm_tmiaph (long long, int, int)
  17158.      long long __builtin_arm_tmiatb (long long, int, int)
  17159.      long long __builtin_arm_tmiatt (long long, int, int)
  17160.      int __builtin_arm_tmovmskb (v8qi)
  17161.      int __builtin_arm_tmovmskh (v4hi)
  17162.      int __builtin_arm_tmovmskw (v2si)
  17163.      long long __builtin_arm_waccb (v8qi)
  17164.      long long __builtin_arm_wacch (v4hi)
  17165.      long long __builtin_arm_waccw (v2si)
  17166.      v8qi __builtin_arm_waddb (v8qi, v8qi)
  17167.      v8qi __builtin_arm_waddbss (v8qi, v8qi)
  17168.      v8qi __builtin_arm_waddbus (v8qi, v8qi)
  17169.      v4hi __builtin_arm_waddh (v4hi, v4hi)
  17170.      v4hi __builtin_arm_waddhss (v4hi, v4hi)
  17171.      v4hi __builtin_arm_waddhus (v4hi, v4hi)
  17172.      v2si __builtin_arm_waddw (v2si, v2si)
  17173.      v2si __builtin_arm_waddwss (v2si, v2si)
  17174.      v2si __builtin_arm_waddwus (v2si, v2si)
  17175.      v8qi __builtin_arm_walign (v8qi, v8qi, int)
  17176.      long long __builtin_arm_wand(long long, long long)
  17177.      long long __builtin_arm_wandn (long long, long long)
  17178.      v8qi __builtin_arm_wavg2b (v8qi, v8qi)
  17179.      v8qi __builtin_arm_wavg2br (v8qi, v8qi)
  17180.      v4hi __builtin_arm_wavg2h (v4hi, v4hi)
  17181.      v4hi __builtin_arm_wavg2hr (v4hi, v4hi)
  17182.      v8qi __builtin_arm_wcmpeqb (v8qi, v8qi)
  17183.      v4hi __builtin_arm_wcmpeqh (v4hi, v4hi)
  17184.      v2si __builtin_arm_wcmpeqw (v2si, v2si)
  17185.      v8qi __builtin_arm_wcmpgtsb (v8qi, v8qi)
  17186.      v4hi __builtin_arm_wcmpgtsh (v4hi, v4hi)
  17187.      v2si __builtin_arm_wcmpgtsw (v2si, v2si)
  17188.      v8qi __builtin_arm_wcmpgtub (v8qi, v8qi)
  17189.      v4hi __builtin_arm_wcmpgtuh (v4hi, v4hi)
  17190.      v2si __builtin_arm_wcmpgtuw (v2si, v2si)
  17191.      long long __builtin_arm_wmacs (long long, v4hi, v4hi)
  17192.      long long __builtin_arm_wmacsz (v4hi, v4hi)
  17193.      long long __builtin_arm_wmacu (long long, v4hi, v4hi)
  17194.      long long __builtin_arm_wmacuz (v4hi, v4hi)
  17195.      v4hi __builtin_arm_wmadds (v4hi, v4hi)
  17196.      v4hi __builtin_arm_wmaddu (v4hi, v4hi)
  17197.      v8qi __builtin_arm_wmaxsb (v8qi, v8qi)
  17198.      v4hi __builtin_arm_wmaxsh (v4hi, v4hi)
  17199.      v2si __builtin_arm_wmaxsw (v2si, v2si)
  17200.      v8qi __builtin_arm_wmaxub (v8qi, v8qi)
  17201.      v4hi __builtin_arm_wmaxuh (v4hi, v4hi)
  17202.      v2si __builtin_arm_wmaxuw (v2si, v2si)
  17203.      v8qi __builtin_arm_wminsb (v8qi, v8qi)
  17204.      v4hi __builtin_arm_wminsh (v4hi, v4hi)
  17205.      v2si __builtin_arm_wminsw (v2si, v2si)
  17206.      v8qi __builtin_arm_wminub (v8qi, v8qi)
  17207.      v4hi __builtin_arm_wminuh (v4hi, v4hi)
  17208.      v2si __builtin_arm_wminuw (v2si, v2si)
  17209.      v4hi __builtin_arm_wmulsm (v4hi, v4hi)
  17210.      v4hi __builtin_arm_wmulul (v4hi, v4hi)
  17211.      v4hi __builtin_arm_wmulum (v4hi, v4hi)
  17212.      long long __builtin_arm_wor (long long, long long)
  17213.      v2si __builtin_arm_wpackdss (long long, long long)
  17214.      v2si __builtin_arm_wpackdus (long long, long long)
  17215.      v8qi __builtin_arm_wpackhss (v4hi, v4hi)
  17216.      v8qi __builtin_arm_wpackhus (v4hi, v4hi)
  17217.      v4hi __builtin_arm_wpackwss (v2si, v2si)
  17218.      v4hi __builtin_arm_wpackwus (v2si, v2si)
  17219.      long long __builtin_arm_wrord (long long, long long)
  17220.      long long __builtin_arm_wrordi (long long, int)
  17221.      v4hi __builtin_arm_wrorh (v4hi, long long)
  17222.      v4hi __builtin_arm_wrorhi (v4hi, int)
  17223.      v2si __builtin_arm_wrorw (v2si, long long)
  17224.      v2si __builtin_arm_wrorwi (v2si, int)
  17225.      v2si __builtin_arm_wsadb (v8qi, v8qi)
  17226.      v2si __builtin_arm_wsadbz (v8qi, v8qi)
  17227.      v2si __builtin_arm_wsadh (v4hi, v4hi)
  17228.      v2si __builtin_arm_wsadhz (v4hi, v4hi)
  17229.      v4hi __builtin_arm_wshufh (v4hi, int)
  17230.      long long __builtin_arm_wslld (long long, long long)
  17231.      long long __builtin_arm_wslldi (long long, int)
  17232.      v4hi __builtin_arm_wsllh (v4hi, long long)
  17233.      v4hi __builtin_arm_wsllhi (v4hi, int)
  17234.      v2si __builtin_arm_wsllw (v2si, long long)
  17235.      v2si __builtin_arm_wsllwi (v2si, int)
  17236.      long long __builtin_arm_wsrad (long long, long long)
  17237.      long long __builtin_arm_wsradi (long long, int)
  17238.      v4hi __builtin_arm_wsrah (v4hi, long long)
  17239.      v4hi __builtin_arm_wsrahi (v4hi, int)
  17240.      v2si __builtin_arm_wsraw (v2si, long long)
  17241.      v2si __builtin_arm_wsrawi (v2si, int)
  17242.      long long __builtin_arm_wsrld (long long, long long)
  17243.      long long __builtin_arm_wsrldi (long long, int)
  17244.      v4hi __builtin_arm_wsrlh (v4hi, long long)
  17245.      v4hi __builtin_arm_wsrlhi (v4hi, int)
  17246.      v2si __builtin_arm_wsrlw (v2si, long long)
  17247.      v2si __builtin_arm_wsrlwi (v2si, int)
  17248.      v8qi __builtin_arm_wsubb (v8qi, v8qi)
  17249.      v8qi __builtin_arm_wsubbss (v8qi, v8qi)
  17250.      v8qi __builtin_arm_wsubbus (v8qi, v8qi)
  17251.      v4hi __builtin_arm_wsubh (v4hi, v4hi)
  17252.      v4hi __builtin_arm_wsubhss (v4hi, v4hi)
  17253.      v4hi __builtin_arm_wsubhus (v4hi, v4hi)
  17254.      v2si __builtin_arm_wsubw (v2si, v2si)
  17255.      v2si __builtin_arm_wsubwss (v2si, v2si)
  17256.      v2si __builtin_arm_wsubwus (v2si, v2si)
  17257.      v4hi __builtin_arm_wunpckehsb (v8qi)
  17258.      v2si __builtin_arm_wunpckehsh (v4hi)
  17259.      long long __builtin_arm_wunpckehsw (v2si)
  17260.      v4hi __builtin_arm_wunpckehub (v8qi)
  17261.      v2si __builtin_arm_wunpckehuh (v4hi)
  17262.      long long __builtin_arm_wunpckehuw (v2si)
  17263.      v4hi __builtin_arm_wunpckelsb (v8qi)
  17264.      v2si __builtin_arm_wunpckelsh (v4hi)
  17265.      long long __builtin_arm_wunpckelsw (v2si)
  17266.      v4hi __builtin_arm_wunpckelub (v8qi)
  17267.      v2si __builtin_arm_wunpckeluh (v4hi)
  17268.      long long __builtin_arm_wunpckeluw (v2si)
  17269.      v8qi __builtin_arm_wunpckihb (v8qi, v8qi)
  17270.      v4hi __builtin_arm_wunpckihh (v4hi, v4hi)
  17271.      v2si __builtin_arm_wunpckihw (v2si, v2si)
  17272.      v8qi __builtin_arm_wunpckilb (v8qi, v8qi)
  17273.      v4hi __builtin_arm_wunpckilh (v4hi, v4hi)
  17274.      v2si __builtin_arm_wunpckilw (v2si, v2si)
  17275.      long long __builtin_arm_wxor (long long, long long)
  17276.      long long __builtin_arm_wzero ()
  17277.  
  17278. 
  17279. File: gcc,  Node: X86 Built-in Functions,  Next: PowerPC AltiVec Built-in Functions,  Prev: ARM Built-in Functions,  Up: Target Builtins
  17280.  
  17281. 5.45.3 X86 Built-in Functions
  17282. -----------------------------
  17283.  
  17284. These built-in functions are available for the i386 and x86-64 family
  17285. of computers, depending on the command-line switches used.
  17286.  
  17287.  The following machine modes are available for use with MMX built-in
  17288. functions (*note Vector Extensions::): `V2SI' for a vector of two
  17289. 32-bit integers, `V4HI' for a vector of four 16-bit integers, and
  17290. `V8QI' for a vector of eight 8-bit integers.  Some of the built-in
  17291. functions operate on MMX registers as a whole 64-bit entity, these use
  17292. `DI' as their mode.
  17293.  
  17294.  If 3Dnow extensions are enabled, `V2SF' is used as a mode for a vector
  17295. of two 32-bit floating point values.
  17296.  
  17297.  If SSE extensions are enabled, `V4SF' is used for a vector of four
  17298. 32-bit floating point values.  Some instructions use a vector of four
  17299. 32-bit integers, these use `V4SI'.  Finally, some instructions operate
  17300. on an entire vector register, interpreting it as a 128-bit integer,
  17301. these use mode `TI'.
  17302.  
  17303.  The following built-in functions are made available by `-mmmx'.  All
  17304. of them generate the machine instruction that is part of the name.
  17305.  
  17306.      v8qi __builtin_ia32_paddb (v8qi, v8qi)
  17307.      v4hi __builtin_ia32_paddw (v4hi, v4hi)
  17308.      v2si __builtin_ia32_paddd (v2si, v2si)
  17309.      v8qi __builtin_ia32_psubb (v8qi, v8qi)
  17310.      v4hi __builtin_ia32_psubw (v4hi, v4hi)
  17311.      v2si __builtin_ia32_psubd (v2si, v2si)
  17312.      v8qi __builtin_ia32_paddsb (v8qi, v8qi)
  17313.      v4hi __builtin_ia32_paddsw (v4hi, v4hi)
  17314.      v8qi __builtin_ia32_psubsb (v8qi, v8qi)
  17315.      v4hi __builtin_ia32_psubsw (v4hi, v4hi)
  17316.      v8qi __builtin_ia32_paddusb (v8qi, v8qi)
  17317.      v4hi __builtin_ia32_paddusw (v4hi, v4hi)
  17318.      v8qi __builtin_ia32_psubusb (v8qi, v8qi)
  17319.      v4hi __builtin_ia32_psubusw (v4hi, v4hi)
  17320.      v4hi __builtin_ia32_pmullw (v4hi, v4hi)
  17321.      v4hi __builtin_ia32_pmulhw (v4hi, v4hi)
  17322.      di __builtin_ia32_pand (di, di)
  17323.      di __builtin_ia32_pandn (di,di)
  17324.      di __builtin_ia32_por (di, di)
  17325.      di __builtin_ia32_pxor (di, di)
  17326.      v8qi __builtin_ia32_pcmpeqb (v8qi, v8qi)
  17327.      v4hi __builtin_ia32_pcmpeqw (v4hi, v4hi)
  17328.      v2si __builtin_ia32_pcmpeqd (v2si, v2si)
  17329.      v8qi __builtin_ia32_pcmpgtb (v8qi, v8qi)
  17330.      v4hi __builtin_ia32_pcmpgtw (v4hi, v4hi)
  17331.      v2si __builtin_ia32_pcmpgtd (v2si, v2si)
  17332.      v8qi __builtin_ia32_punpckhbw (v8qi, v8qi)
  17333.      v4hi __builtin_ia32_punpckhwd (v4hi, v4hi)
  17334.      v2si __builtin_ia32_punpckhdq (v2si, v2si)
  17335.      v8qi __builtin_ia32_punpcklbw (v8qi, v8qi)
  17336.      v4hi __builtin_ia32_punpcklwd (v4hi, v4hi)
  17337.      v2si __builtin_ia32_punpckldq (v2si, v2si)
  17338.      v8qi __builtin_ia32_packsswb (v4hi, v4hi)
  17339.      v4hi __builtin_ia32_packssdw (v2si, v2si)
  17340.      v8qi __builtin_ia32_packuswb (v4hi, v4hi)
  17341.  
  17342.  The following built-in functions are made available either with
  17343. `-msse', or with a combination of `-m3dnow' and `-march=athlon'.  All
  17344. of them generate the machine instruction that is part of the name.
  17345.  
  17346.      v4hi __builtin_ia32_pmulhuw (v4hi, v4hi)
  17347.      v8qi __builtin_ia32_pavgb (v8qi, v8qi)
  17348.      v4hi __builtin_ia32_pavgw (v4hi, v4hi)
  17349.      v4hi __builtin_ia32_psadbw (v8qi, v8qi)
  17350.      v8qi __builtin_ia32_pmaxub (v8qi, v8qi)
  17351.      v4hi __builtin_ia32_pmaxsw (v4hi, v4hi)
  17352.      v8qi __builtin_ia32_pminub (v8qi, v8qi)
  17353.      v4hi __builtin_ia32_pminsw (v4hi, v4hi)
  17354.      int __builtin_ia32_pextrw (v4hi, int)
  17355.      v4hi __builtin_ia32_pinsrw (v4hi, int, int)
  17356.      int __builtin_ia32_pmovmskb (v8qi)
  17357.      void __builtin_ia32_maskmovq (v8qi, v8qi, char *)
  17358.      void __builtin_ia32_movntq (di *, di)
  17359.      void __builtin_ia32_sfence (void)
  17360.  
  17361.  The following built-in functions are available when `-msse' is used.
  17362. All of them generate the machine instruction that is part of the name.
  17363.  
  17364.      int __builtin_ia32_comieq (v4sf, v4sf)
  17365.      int __builtin_ia32_comineq (v4sf, v4sf)
  17366.      int __builtin_ia32_comilt (v4sf, v4sf)
  17367.      int __builtin_ia32_comile (v4sf, v4sf)
  17368.      int __builtin_ia32_comigt (v4sf, v4sf)
  17369.      int __builtin_ia32_comige (v4sf, v4sf)
  17370.      int __builtin_ia32_ucomieq (v4sf, v4sf)
  17371.      int __builtin_ia32_ucomineq (v4sf, v4sf)
  17372.      int __builtin_ia32_ucomilt (v4sf, v4sf)
  17373.      int __builtin_ia32_ucomile (v4sf, v4sf)
  17374.      int __builtin_ia32_ucomigt (v4sf, v4sf)
  17375.      int __builtin_ia32_ucomige (v4sf, v4sf)
  17376.      v4sf __builtin_ia32_addps (v4sf, v4sf)
  17377.      v4sf __builtin_ia32_subps (v4sf, v4sf)
  17378.      v4sf __builtin_ia32_mulps (v4sf, v4sf)
  17379.      v4sf __builtin_ia32_divps (v4sf, v4sf)
  17380.      v4sf __builtin_ia32_addss (v4sf, v4sf)
  17381.      v4sf __builtin_ia32_subss (v4sf, v4sf)
  17382.      v4sf __builtin_ia32_mulss (v4sf, v4sf)
  17383.      v4sf __builtin_ia32_divss (v4sf, v4sf)
  17384.      v4si __builtin_ia32_cmpeqps (v4sf, v4sf)
  17385.      v4si __builtin_ia32_cmpltps (v4sf, v4sf)
  17386.      v4si __builtin_ia32_cmpleps (v4sf, v4sf)
  17387.      v4si __builtin_ia32_cmpgtps (v4sf, v4sf)
  17388.      v4si __builtin_ia32_cmpgeps (v4sf, v4sf)
  17389.      v4si __builtin_ia32_cmpunordps (v4sf, v4sf)
  17390.      v4si __builtin_ia32_cmpneqps (v4sf, v4sf)
  17391.      v4si __builtin_ia32_cmpnltps (v4sf, v4sf)
  17392.      v4si __builtin_ia32_cmpnleps (v4sf, v4sf)
  17393.      v4si __builtin_ia32_cmpngtps (v4sf, v4sf)
  17394.      v4si __builtin_ia32_cmpngeps (v4sf, v4sf)
  17395.      v4si __builtin_ia32_cmpordps (v4sf, v4sf)
  17396.      v4si __builtin_ia32_cmpeqss (v4sf, v4sf)
  17397.      v4si __builtin_ia32_cmpltss (v4sf, v4sf)
  17398.      v4si __builtin_ia32_cmpless (v4sf, v4sf)
  17399.      v4si __builtin_ia32_cmpunordss (v4sf, v4sf)
  17400.      v4si __builtin_ia32_cmpneqss (v4sf, v4sf)
  17401.      v4si __builtin_ia32_cmpnlts (v4sf, v4sf)
  17402.      v4si __builtin_ia32_cmpnless (v4sf, v4sf)
  17403.      v4si __builtin_ia32_cmpordss (v4sf, v4sf)
  17404.      v4sf __builtin_ia32_maxps (v4sf, v4sf)
  17405.      v4sf __builtin_ia32_maxss (v4sf, v4sf)
  17406.      v4sf __builtin_ia32_minps (v4sf, v4sf)
  17407.      v4sf __builtin_ia32_minss (v4sf, v4sf)
  17408.      v4sf __builtin_ia32_andps (v4sf, v4sf)
  17409.      v4sf __builtin_ia32_andnps (v4sf, v4sf)
  17410.      v4sf __builtin_ia32_orps (v4sf, v4sf)
  17411.      v4sf __builtin_ia32_xorps (v4sf, v4sf)
  17412.      v4sf __builtin_ia32_movss (v4sf, v4sf)
  17413.      v4sf __builtin_ia32_movhlps (v4sf, v4sf)
  17414.      v4sf __builtin_ia32_movlhps (v4sf, v4sf)
  17415.      v4sf __builtin_ia32_unpckhps (v4sf, v4sf)
  17416.      v4sf __builtin_ia32_unpcklps (v4sf, v4sf)
  17417.      v4sf __builtin_ia32_cvtpi2ps (v4sf, v2si)
  17418.      v4sf __builtin_ia32_cvtsi2ss (v4sf, int)
  17419.      v2si __builtin_ia32_cvtps2pi (v4sf)
  17420.      int __builtin_ia32_cvtss2si (v4sf)
  17421.      v2si __builtin_ia32_cvttps2pi (v4sf)
  17422.      int __builtin_ia32_cvttss2si (v4sf)
  17423.      v4sf __builtin_ia32_rcpps (v4sf)
  17424.      v4sf __builtin_ia32_rsqrtps (v4sf)
  17425.      v4sf __builtin_ia32_sqrtps (v4sf)
  17426.      v4sf __builtin_ia32_rcpss (v4sf)
  17427.      v4sf __builtin_ia32_rsqrtss (v4sf)
  17428.      v4sf __builtin_ia32_sqrtss (v4sf)
  17429.      v4sf __builtin_ia32_shufps (v4sf, v4sf, int)
  17430.      void __builtin_ia32_movntps (float *, v4sf)
  17431.      int __builtin_ia32_movmskps (v4sf)
  17432.  
  17433.  The following built-in functions are available when `-msse' is used.
  17434.  
  17435. `v4sf __builtin_ia32_loadaps (float *)'
  17436.      Generates the `movaps' machine instruction as a load from memory.
  17437.  
  17438. `void __builtin_ia32_storeaps (float *, v4sf)'
  17439.      Generates the `movaps' machine instruction as a store to memory.
  17440.  
  17441. `v4sf __builtin_ia32_loadups (float *)'
  17442.      Generates the `movups' machine instruction as a load from memory.
  17443.  
  17444. `void __builtin_ia32_storeups (float *, v4sf)'
  17445.      Generates the `movups' machine instruction as a store to memory.
  17446.  
  17447. `v4sf __builtin_ia32_loadsss (float *)'
  17448.      Generates the `movss' machine instruction as a load from memory.
  17449.  
  17450. `void __builtin_ia32_storess (float *, v4sf)'
  17451.      Generates the `movss' machine instruction as a store to memory.
  17452.  
  17453. `v4sf __builtin_ia32_loadhps (v4sf, v2si *)'
  17454.      Generates the `movhps' machine instruction as a load from memory.
  17455.  
  17456. `v4sf __builtin_ia32_loadlps (v4sf, v2si *)'
  17457.      Generates the `movlps' machine instruction as a load from memory
  17458.  
  17459. `void __builtin_ia32_storehps (v4sf, v2si *)'
  17460.      Generates the `movhps' machine instruction as a store to memory.
  17461.  
  17462. `void __builtin_ia32_storelps (v4sf, v2si *)'
  17463.      Generates the `movlps' machine instruction as a store to memory.
  17464.  
  17465.  The following built-in functions are available when `-msse3' is used.
  17466. All of them generate the machine instruction that is part of the name.
  17467.  
  17468.      v2df __builtin_ia32_addsubpd (v2df, v2df)
  17469.      v2df __builtin_ia32_addsubps (v2df, v2df)
  17470.      v2df __builtin_ia32_haddpd (v2df, v2df)
  17471.      v2df __builtin_ia32_haddps (v2df, v2df)
  17472.      v2df __builtin_ia32_hsubpd (v2df, v2df)
  17473.      v2df __builtin_ia32_hsubps (v2df, v2df)
  17474.      v16qi __builtin_ia32_lddqu (char const *)
  17475.      void __builtin_ia32_monitor (void *, unsigned int, unsigned int)
  17476.      v2df __builtin_ia32_movddup (v2df)
  17477.      v4sf __builtin_ia32_movshdup (v4sf)
  17478.      v4sf __builtin_ia32_movsldup (v4sf)
  17479.      void __builtin_ia32_mwait (unsigned int, unsigned int)
  17480.  
  17481.  The following built-in functions are available when `-msse3' is used.
  17482.  
  17483. `v2df __builtin_ia32_loadddup (double const *)'
  17484.      Generates the `movddup' machine instruction as a load from memory.
  17485.  
  17486.  The following built-in functions are available when `-m3dnow' is used.
  17487. All of them generate the machine instruction that is part of the name.
  17488.  
  17489.      void __builtin_ia32_femms (void)
  17490.      v8qi __builtin_ia32_pavgusb (v8qi, v8qi)
  17491.      v2si __builtin_ia32_pf2id (v2sf)
  17492.      v2sf __builtin_ia32_pfacc (v2sf, v2sf)
  17493.      v2sf __builtin_ia32_pfadd (v2sf, v2sf)
  17494.      v2si __builtin_ia32_pfcmpeq (v2sf, v2sf)
  17495.      v2si __builtin_ia32_pfcmpge (v2sf, v2sf)
  17496.      v2si __builtin_ia32_pfcmpgt (v2sf, v2sf)
  17497.      v2sf __builtin_ia32_pfmax (v2sf, v2sf)
  17498.      v2sf __builtin_ia32_pfmin (v2sf, v2sf)
  17499.      v2sf __builtin_ia32_pfmul (v2sf, v2sf)
  17500.      v2sf __builtin_ia32_pfrcp (v2sf)
  17501.      v2sf __builtin_ia32_pfrcpit1 (v2sf, v2sf)
  17502.      v2sf __builtin_ia32_pfrcpit2 (v2sf, v2sf)
  17503.      v2sf __builtin_ia32_pfrsqrt (v2sf)
  17504.      v2sf __builtin_ia32_pfrsqrtit1 (v2sf, v2sf)
  17505.      v2sf __builtin_ia32_pfsub (v2sf, v2sf)
  17506.      v2sf __builtin_ia32_pfsubr (v2sf, v2sf)
  17507.      v2sf __builtin_ia32_pi2fd (v2si)
  17508.      v4hi __builtin_ia32_pmulhrw (v4hi, v4hi)
  17509.  
  17510.  The following built-in functions are available when both `-m3dnow' and
  17511. `-march=athlon' are used.  All of them generate the machine instruction
  17512. that is part of the name.
  17513.  
  17514.      v2si __builtin_ia32_pf2iw (v2sf)
  17515.      v2sf __builtin_ia32_pfnacc (v2sf, v2sf)
  17516.      v2sf __builtin_ia32_pfpnacc (v2sf, v2sf)
  17517.      v2sf __builtin_ia32_pi2fw (v2si)
  17518.      v2sf __builtin_ia32_pswapdsf (v2sf)
  17519.      v2si __builtin_ia32_pswapdsi (v2si)
  17520.  
  17521. 
  17522. File: gcc,  Node: PowerPC AltiVec Built-in Functions,  Prev: X86 Built-in Functions,  Up: Target Builtins
  17523.  
  17524. 5.45.4 PowerPC AltiVec Built-in Functions
  17525. -----------------------------------------
  17526.  
  17527. These built-in functions are available for the PowerPC family of
  17528. computers, depending on the command-line switches used.
  17529.  
  17530.  The following machine modes are available for use with AltiVec built-in
  17531. functions (*note Vector Extensions::): `V4SI' for a vector of four
  17532. 32-bit integers, `V4SF' for a vector of four 32-bit floating point
  17533. numbers, `V8HI' for a vector of eight 16-bit integers, and `V16QI' for
  17534. a vector of sixteen 8-bit integers.
  17535.  
  17536.  The following functions are made available by including `<altivec.h>'
  17537. and using `-maltivec' and `-mabi=altivec'.  The functions implement the
  17538. functionality described in Motorola's AltiVec Programming Interface
  17539. Manual.
  17540.  
  17541.  There are a few differences from Motorola's documentation and GCC's
  17542. implementation.  Vector constants are done with curly braces (not
  17543. parentheses).  Vector initializers require no casts if the vector
  17544. constant is of the same type as the variable it is initializing.  The
  17545. `vector bool' type is deprecated and will be discontinued in further
  17546. revisions.  Use `vector signed' instead.  If `signed' or `unsigned' is
  17547. omitted, the vector type will default to `signed'.  Lastly, all
  17548. overloaded functions are implemented with macros for the C
  17549. implementation.  So code the following example will not work:
  17550.  
  17551.        vec_add ((vector signed int){1, 2, 3, 4}, foo);
  17552.  
  17553.  Since vec_add is a macro, the vector constant in the above example will
  17554. be treated as four different arguments.  Wrap the entire argument in
  17555. parentheses for this to work.  The C++ implementation does not use
  17556. macros.
  17557.  
  17558.  _Note:_ Only the `<altivec.h>' interface is supported.  Internally,
  17559. GCC uses built-in functions to achieve the functionality in the
  17560. aforementioned header file, but they are not supported and are subject
  17561. to change without notice.
  17562.  
  17563.      vector signed char vec_abs (vector signed char, vector signed char);
  17564.      vector signed short vec_abs (vector signed short, vector signed short);
  17565.      vector signed int vec_abs (vector signed int, vector signed int);
  17566.      vector signed float vec_abs (vector signed float, vector signed float);
  17567.  
  17568.      vector signed char vec_abss (vector signed char, vector signed char);
  17569.      vector signed short vec_abss (vector signed short, vector signed short);
  17570.  
  17571.      vector signed char vec_add (vector signed char, vector signed char);
  17572.      vector unsigned char vec_add (vector signed char, vector unsigned char);
  17573.  
  17574.      vector unsigned char vec_add (vector unsigned char, vector signed char);
  17575.  
  17576.      vector unsigned char vec_add (vector unsigned char,
  17577.                                    vector unsigned char);
  17578.      vector signed short vec_add (vector signed short, vector signed short);
  17579.      vector unsigned short vec_add (vector signed short,
  17580.                                     vector unsigned short);
  17581.      vector unsigned short vec_add (vector unsigned short,
  17582.                                     vector signed short);
  17583.      vector unsigned short vec_add (vector unsigned short,
  17584.                                     vector unsigned short);
  17585.      vector signed int vec_add (vector signed int, vector signed int);
  17586.      vector unsigned int vec_add (vector signed int, vector unsigned int);
  17587.      vector unsigned int vec_add (vector unsigned int, vector signed int);
  17588.      vector unsigned int vec_add (vector unsigned int, vector unsigned int);
  17589.      vector float vec_add (vector float, vector float);
  17590.  
  17591.      vector unsigned int vec_addc (vector unsigned int, vector unsigned int);
  17592.  
  17593.      vector unsigned char vec_adds (vector signed char,
  17594.                                     vector unsigned char);
  17595.      vector unsigned char vec_adds (vector unsigned char,
  17596.                                     vector signed char);
  17597.      vector unsigned char vec_adds (vector unsigned char,
  17598.                                     vector unsigned char);
  17599.      vector signed char vec_adds (vector signed char, vector signed char);
  17600.      vector unsigned short vec_adds (vector signed short,
  17601.                                      vector unsigned short);
  17602.      vector unsigned short vec_adds (vector unsigned short,
  17603.                                      vector signed short);
  17604.      vector unsigned short vec_adds (vector unsigned short,
  17605.                                      vector unsigned short);
  17606.      vector signed short vec_adds (vector signed short, vector signed short);
  17607.  
  17608.      vector unsigned int vec_adds (vector signed int, vector unsigned int);
  17609.      vector unsigned int vec_adds (vector unsigned int, vector signed int);
  17610.      vector unsigned int vec_adds (vector unsigned int, vector unsigned int);
  17611.  
  17612.      vector signed int vec_adds (vector signed int, vector signed int);
  17613.  
  17614.      vector float vec_and (vector float, vector float);
  17615.      vector float vec_and (vector float, vector signed int);
  17616.      vector float vec_and (vector signed int, vector float);
  17617.      vector signed int vec_and (vector signed int, vector signed int);
  17618.      vector unsigned int vec_and (vector signed int, vector unsigned int);
  17619.      vector unsigned int vec_and (vector unsigned int, vector signed int);
  17620.      vector unsigned int vec_and (vector unsigned int, vector unsigned int);
  17621.      vector signed short vec_and (vector signed short, vector signed short);
  17622.      vector unsigned short vec_and (vector signed short,
  17623.                                     vector unsigned short);
  17624.      vector unsigned short vec_and (vector unsigned short,
  17625.                                     vector signed short);
  17626.      vector unsigned short vec_and (vector unsigned short,
  17627.                                     vector unsigned short);
  17628.      vector signed char vec_and (vector signed char, vector signed char);
  17629.      vector unsigned char vec_and (vector signed char, vector unsigned char);
  17630.  
  17631.      vector unsigned char vec_and (vector unsigned char, vector signed char);
  17632.  
  17633.      vector unsigned char vec_and (vector unsigned char,
  17634.                                    vector unsigned char);
  17635.  
  17636.      vector float vec_andc (vector float, vector float);
  17637.      vector float vec_andc (vector float, vector signed int);
  17638.      vector float vec_andc (vector signed int, vector float);
  17639.      vector signed int vec_andc (vector signed int, vector signed int);
  17640.      vector unsigned int vec_andc (vector signed int, vector unsigned int);
  17641.      vector unsigned int vec_andc (vector unsigned int, vector signed int);
  17642.      vector unsigned int vec_andc (vector unsigned int, vector unsigned int);
  17643.  
  17644.      vector signed short vec_andc (vector signed short, vector signed short);
  17645.  
  17646.      vector unsigned short vec_andc (vector signed short,
  17647.                                      vector unsigned short);
  17648.      vector unsigned short vec_andc (vector unsigned short,
  17649.                                      vector signed short);
  17650.      vector unsigned short vec_andc (vector unsigned short,
  17651.                                      vector unsigned short);
  17652.      vector signed char vec_andc (vector signed char, vector signed char);
  17653.      vector unsigned char vec_andc (vector signed char,
  17654.                                     vector unsigned char);
  17655.      vector unsigned char vec_andc (vector unsigned char,
  17656.                                     vector signed char);
  17657.      vector unsigned char vec_andc (vector unsigned char,
  17658.                                     vector unsigned char);
  17659.  
  17660.      vector unsigned char vec_avg (vector unsigned char,
  17661.                                    vector unsigned char);
  17662.      vector signed char vec_avg (vector signed char, vector signed char);
  17663.      vector unsigned short vec_avg (vector unsigned short,
  17664.                                     vector unsigned short);
  17665.      vector signed short vec_avg (vector signed short, vector signed short);
  17666.      vector unsigned int vec_avg (vector unsigned int, vector unsigned int);
  17667.      vector signed int vec_avg (vector signed int, vector signed int);
  17668.  
  17669.      vector float vec_ceil (vector float);
  17670.  
  17671.      vector signed int vec_cmpb (vector float, vector float);
  17672.  
  17673.      vector signed char vec_cmpeq (vector signed char, vector signed char);
  17674.      vector signed char vec_cmpeq (vector unsigned char,
  17675.                                    vector unsigned char);
  17676.      vector signed short vec_cmpeq (vector signed short,
  17677.                                     vector signed short);
  17678.      vector signed short vec_cmpeq (vector unsigned short,
  17679.                                     vector unsigned short);
  17680.      vector signed int vec_cmpeq (vector signed int, vector signed int);
  17681.      vector signed int vec_cmpeq (vector unsigned int, vector unsigned int);
  17682.      vector signed int vec_cmpeq (vector float, vector float);
  17683.  
  17684.      vector signed int vec_cmpge (vector float, vector float);
  17685.  
  17686.      vector signed char vec_cmpgt (vector unsigned char,
  17687.                                    vector unsigned char);
  17688.      vector signed char vec_cmpgt (vector signed char, vector signed char);
  17689.      vector signed short vec_cmpgt (vector unsigned short,
  17690.                                     vector unsigned short);
  17691.      vector signed short vec_cmpgt (vector signed short,
  17692.                                     vector signed short);
  17693.      vector signed int vec_cmpgt (vector unsigned int, vector unsigned int);
  17694.      vector signed int vec_cmpgt (vector signed int, vector signed int);
  17695.      vector signed int vec_cmpgt (vector float, vector float);
  17696.  
  17697.      vector signed int vec_cmple (vector float, vector float);
  17698.  
  17699.      vector signed char vec_cmplt (vector unsigned char,
  17700.                                    vector unsigned char);
  17701.      vector signed char vec_cmplt (vector signed char, vector signed char);
  17702.      vector signed short vec_cmplt (vector unsigned short,
  17703.                                     vector unsigned short);
  17704.      vector signed short vec_cmplt (vector signed short,
  17705.                                     vector signed short);
  17706.      vector signed int vec_cmplt (vector unsigned int, vector unsigned int);
  17707.      vector signed int vec_cmplt (vector signed int, vector signed int);
  17708.      vector signed int vec_cmplt (vector float, vector float);
  17709.  
  17710.      vector float vec_ctf (vector unsigned int, const char);
  17711.      vector float vec_ctf (vector signed int, const char);
  17712.  
  17713.      vector signed int vec_cts (vector float, const char);
  17714.  
  17715.      vector unsigned int vec_ctu (vector float, const char);
  17716.  
  17717.      void vec_dss (const char);
  17718.  
  17719.      void vec_dssall (void);
  17720.  
  17721.      void vec_dst (void *, int, const char);
  17722.  
  17723.      void vec_dstst (void *, int, const char);
  17724.  
  17725.      void vec_dststt (void *, int, const char);
  17726.  
  17727.      void vec_dstt (void *, int, const char);
  17728.  
  17729.      vector float vec_expte (vector float, vector float);
  17730.  
  17731.      vector float vec_floor (vector float, vector float);
  17732.  
  17733.      vector float vec_ld (int, vector float *);
  17734.      vector float vec_ld (int, float *):
  17735.      vector signed int vec_ld (int, int *);
  17736.      vector signed int vec_ld (int, vector signed int *);
  17737.      vector unsigned int vec_ld (int, vector unsigned int *);
  17738.      vector unsigned int vec_ld (int, unsigned int *);
  17739.      vector signed short vec_ld (int, short *, vector signed short *);
  17740.      vector unsigned short vec_ld (int, unsigned short *,
  17741.                                    vector unsigned short *);
  17742.      vector signed char vec_ld (int, signed char *);
  17743.      vector signed char vec_ld (int, vector signed char *);
  17744.      vector unsigned char vec_ld (int, unsigned char *);
  17745.      vector unsigned char vec_ld (int, vector unsigned char *);
  17746.  
  17747.      vector signed char vec_lde (int, signed char *);
  17748.      vector unsigned char vec_lde (int, unsigned char *);
  17749.      vector signed short vec_lde (int, short *);
  17750.      vector unsigned short vec_lde (int, unsigned short *);
  17751.      vector float vec_lde (int, float *);
  17752.      vector signed int vec_lde (int, int *);
  17753.      vector unsigned int vec_lde (int, unsigned int *);
  17754.  
  17755.      void float vec_ldl (int, float *);
  17756.      void float vec_ldl (int, vector float *);
  17757.      void signed int vec_ldl (int, vector signed int *);
  17758.      void signed int vec_ldl (int, int *);
  17759.      void unsigned int vec_ldl (int, unsigned int *);
  17760.      void unsigned int vec_ldl (int, vector unsigned int *);
  17761.      void signed short vec_ldl (int, vector signed short *);
  17762.      void signed short vec_ldl (int, short *);
  17763.      void unsigned short vec_ldl (int, vector unsigned short *);
  17764.      void unsigned short vec_ldl (int, unsigned short *);
  17765.      void signed char vec_ldl (int, vector signed char *);
  17766.      void signed char vec_ldl (int, signed char *);
  17767.      void unsigned char vec_ldl (int, vector unsigned char *);
  17768.      void unsigned char vec_ldl (int, unsigned char *);
  17769.  
  17770.      vector float vec_loge (vector float);
  17771.  
  17772.      vector unsigned char vec_lvsl (int, void *, int *);
  17773.  
  17774.      vector unsigned char vec_lvsr (int, void *, int *);
  17775.  
  17776.      vector float vec_madd (vector float, vector float, vector float);
  17777.  
  17778.      vector signed short vec_madds (vector signed short, vector signed short,
  17779.                                     vector signed short);
  17780.  
  17781.      vector unsigned char vec_max (vector signed char, vector unsigned char);
  17782.  
  17783.      vector unsigned char vec_max (vector unsigned char, vector signed char);
  17784.  
  17785.      vector unsigned char vec_max (vector unsigned char,
  17786.                                    vector unsigned char);
  17787.      vector signed char vec_max (vector signed char, vector signed char);
  17788.      vector unsigned short vec_max (vector signed short,
  17789.                                     vector unsigned short);
  17790.      vector unsigned short vec_max (vector unsigned short,
  17791.                                     vector signed short);
  17792.      vector unsigned short vec_max (vector unsigned short,
  17793.                                     vector unsigned short);
  17794.      vector signed short vec_max (vector signed short, vector signed short);
  17795.      vector unsigned int vec_max (vector signed int, vector unsigned int);
  17796.      vector unsigned int vec_max (vector unsigned int, vector signed int);
  17797.      vector unsigned int vec_max (vector unsigned int, vector unsigned int);
  17798.      vector signed int vec_max (vector signed int, vector signed int);
  17799.      vector float vec_max (vector float, vector float);
  17800.  
  17801.      vector signed char vec_mergeh (vector signed char, vector signed char);
  17802.      vector unsigned char vec_mergeh (vector unsigned char,
  17803.                                       vector unsigned char);
  17804.      vector signed short vec_mergeh (vector signed short,
  17805.                                      vector signed short);
  17806.      vector unsigned short vec_mergeh (vector unsigned short,
  17807.                                        vector unsigned short);
  17808.      vector float vec_mergeh (vector float, vector float);
  17809.      vector signed int vec_mergeh (vector signed int, vector signed int);
  17810.      vector unsigned int vec_mergeh (vector unsigned int,
  17811.                                      vector unsigned int);
  17812.  
  17813.      vector signed char vec_mergel (vector signed char, vector signed char);
  17814.      vector unsigned char vec_mergel (vector unsigned char,
  17815.                                       vector unsigned char);
  17816.      vector signed short vec_mergel (vector signed short,
  17817.                                      vector signed short);
  17818.      vector unsigned short vec_mergel (vector unsigned short,
  17819.                                        vector unsigned short);
  17820.      vector float vec_mergel (vector float, vector float);
  17821.      vector signed int vec_mergel (vector signed int, vector signed int);
  17822.      vector unsigned int vec_mergel (vector unsigned int,
  17823.                                      vector unsigned int);
  17824.  
  17825.      vector unsigned short vec_mfvscr (void);
  17826.  
  17827.      vector unsigned char vec_min (vector signed char, vector unsigned char);
  17828.  
  17829.      vector unsigned char vec_min (vector unsigned char, vector signed char);
  17830.  
  17831.      vector unsigned char vec_min (vector unsigned char,
  17832.                                    vector unsigned char);
  17833.      vector signed char vec_min (vector signed char, vector signed char);
  17834.      vector unsigned short vec_min (vector signed short,
  17835.                                     vector unsigned short);
  17836.      vector unsigned short vec_min (vector unsigned short,
  17837.                                     vector signed short);
  17838.      vector unsigned short vec_min (vector unsigned short,
  17839.                                     vector unsigned short);
  17840.      vector signed short vec_min (vector signed short, vector signed short);
  17841.      vector unsigned int vec_min (vector signed int, vector unsigned int);
  17842.      vector unsigned int vec_min (vector unsigned int, vector signed int);
  17843.      vector unsigned int vec_min (vector unsigned int, vector unsigned int);
  17844.      vector signed int vec_min (vector signed int, vector signed int);
  17845.      vector float vec_min (vector float, vector float);
  17846.  
  17847.      vector signed short vec_mladd (vector signed short, vector signed short,
  17848.                                     vector signed short);
  17849.      vector signed short vec_mladd (vector signed short,
  17850.                                     vector unsigned short,
  17851.                                     vector unsigned short);
  17852.      vector signed short vec_mladd (vector unsigned short,
  17853.                                     vector signed short,
  17854.                                     vector signed short);
  17855.      vector unsigned short vec_mladd (vector unsigned short,
  17856.                                       vector unsigned short,
  17857.                                       vector unsigned short);
  17858.  
  17859.      vector signed short vec_mradds (vector signed short,
  17860.                                      vector signed short,
  17861.                                      vector signed short);
  17862.  
  17863.      vector unsigned int vec_msum (vector unsigned char,
  17864.                                    vector unsigned char,
  17865.                                    vector unsigned int);
  17866.      vector signed int vec_msum (vector signed char, vector unsigned char,
  17867.                                  vector signed int);
  17868.      vector unsigned int vec_msum (vector unsigned short,
  17869.                                    vector unsigned short,
  17870.                                    vector unsigned int);
  17871.      vector signed int vec_msum (vector signed short, vector signed short,
  17872.                                  vector signed int);
  17873.  
  17874.      vector unsigned int vec_msums (vector unsigned short,
  17875.                                     vector unsigned short,
  17876.                                     vector unsigned int);
  17877.      vector signed int vec_msums (vector signed short, vector signed short,
  17878.                                   vector signed int);
  17879.  
  17880.      void vec_mtvscr (vector signed int);
  17881.      void vec_mtvscr (vector unsigned int);
  17882.      void vec_mtvscr (vector signed short);
  17883.      void vec_mtvscr (vector unsigned short);
  17884.      void vec_mtvscr (vector signed char);
  17885.      void vec_mtvscr (vector unsigned char);
  17886.  
  17887.      vector unsigned short vec_mule (vector unsigned char,
  17888.                                      vector unsigned char);
  17889.      vector signed short vec_mule (vector signed char, vector signed char);
  17890.      vector unsigned int vec_mule (vector unsigned short,
  17891.                                    vector unsigned short);
  17892.      vector signed int vec_mule (vector signed short, vector signed short);
  17893.  
  17894.      vector unsigned short vec_mulo (vector unsigned char,
  17895.                                      vector unsigned char);
  17896.      vector signed short vec_mulo (vector signed char, vector signed char);
  17897.      vector unsigned int vec_mulo (vector unsigned short,
  17898.                                    vector unsigned short);
  17899.      vector signed int vec_mulo (vector signed short, vector signed short);
  17900.  
  17901.      vector float vec_nmsub (vector float, vector float, vector float);
  17902.  
  17903.      vector float vec_nor (vector float, vector float);
  17904.      vector signed int vec_nor (vector signed int, vector signed int);
  17905.      vector unsigned int vec_nor (vector unsigned int, vector unsigned int);
  17906.      vector signed short vec_nor (vector signed short, vector signed short);
  17907.      vector unsigned short vec_nor (vector unsigned short,
  17908.                                     vector unsigned short);
  17909.      vector signed char vec_nor (vector signed char, vector signed char);
  17910.      vector unsigned char vec_nor (vector unsigned char,
  17911.                                    vector unsigned char);
  17912.  
  17913.      vector float vec_or (vector float, vector float);
  17914.      vector float vec_or (vector float, vector signed int);
  17915.      vector float vec_or (vector signed int, vector float);
  17916.      vector signed int vec_or (vector signed int, vector signed int);
  17917.      vector unsigned int vec_or (vector signed int, vector unsigned int);
  17918.      vector unsigned int vec_or (vector unsigned int, vector signed int);
  17919.      vector unsigned int vec_or (vector unsigned int, vector unsigned int);
  17920.      vector signed short vec_or (vector signed short, vector signed short);
  17921.      vector unsigned short vec_or (vector signed short,
  17922.                                    vector unsigned short);
  17923.      vector unsigned short vec_or (vector unsigned short,
  17924.                                    vector signed short);
  17925.      vector unsigned short vec_or (vector unsigned short,
  17926.                                    vector unsigned short);
  17927.      vector signed char vec_or (vector signed char, vector signed char);
  17928.      vector unsigned char vec_or (vector signed char, vector unsigned char);
  17929.      vector unsigned char vec_or (vector unsigned char, vector signed char);
  17930.      vector unsigned char vec_or (vector unsigned char,
  17931.                                   vector unsigned char);
  17932.  
  17933.      vector signed char vec_pack (vector signed short, vector signed short);
  17934.      vector unsigned char vec_pack (vector unsigned short,
  17935.                                     vector unsigned short);
  17936.      vector signed short vec_pack (vector signed int, vector signed int);
  17937.      vector unsigned short vec_pack (vector unsigned int,
  17938.                                      vector unsigned int);
  17939.  
  17940.      vector signed short vec_packpx (vector unsigned int,
  17941.                                      vector unsigned int);
  17942.  
  17943.      vector unsigned char vec_packs (vector unsigned short,
  17944.                                      vector unsigned short);
  17945.      vector signed char vec_packs (vector signed short, vector signed short);
  17946.  
  17947.      vector unsigned short vec_packs (vector unsigned int,
  17948.                                       vector unsigned int);
  17949.      vector signed short vec_packs (vector signed int, vector signed int);
  17950.  
  17951.      vector unsigned char vec_packsu (vector unsigned short,
  17952.                                       vector unsigned short);
  17953.      vector unsigned char vec_packsu (vector signed short,
  17954.                                       vector signed short);
  17955.      vector unsigned short vec_packsu (vector unsigned int,
  17956.                                        vector unsigned int);
  17957.      vector unsigned short vec_packsu (vector signed int, vector signed int);
  17958.  
  17959.      vector float vec_perm (vector float, vector float,
  17960.                             vector unsigned char);
  17961.      vector signed int vec_perm (vector signed int, vector signed int,
  17962.                                  vector unsigned char);
  17963.      vector unsigned int vec_perm (vector unsigned int, vector unsigned int,
  17964.                                    vector unsigned char);
  17965.      vector signed short vec_perm (vector signed short, vector signed short,
  17966.                                    vector unsigned char);
  17967.      vector unsigned short vec_perm (vector unsigned short,
  17968.                                      vector unsigned short,
  17969.                                      vector unsigned char);
  17970.      vector signed char vec_perm (vector signed char, vector signed char,
  17971.                                   vector unsigned char);
  17972.      vector unsigned char vec_perm (vector unsigned char,
  17973.                                     vector unsigned char,
  17974.                                     vector unsigned char);
  17975.  
  17976.      vector float vec_re (vector float);
  17977.  
  17978.      vector signed char vec_rl (vector signed char, vector unsigned char);
  17979.      vector unsigned char vec_rl (vector unsigned char,
  17980.                                   vector unsigned char);
  17981.      vector signed short vec_rl (vector signed short, vector unsigned short);
  17982.  
  17983.      vector unsigned short vec_rl (vector unsigned short,
  17984.                                    vector unsigned short);
  17985.      vector signed int vec_rl (vector signed int, vector unsigned int);
  17986.      vector unsigned int vec_rl (vector unsigned int, vector unsigned int);
  17987.  
  17988.      vector float vec_round (vector float);
  17989.  
  17990.      vector float vec_rsqrte (vector float);
  17991.  
  17992.      vector float vec_sel (vector float, vector float, vector signed int);
  17993.      vector float vec_sel (vector float, vector float, vector unsigned int);
  17994.      vector signed int vec_sel (vector signed int, vector signed int,
  17995.                                 vector signed int);
  17996.      vector signed int vec_sel (vector signed int, vector signed int,
  17997.                                 vector unsigned int);
  17998.      vector unsigned int vec_sel (vector unsigned int, vector unsigned int,
  17999.                                   vector signed int);
  18000.      vector unsigned int vec_sel (vector unsigned int, vector unsigned int,
  18001.                                   vector unsigned int);
  18002.      vector signed short vec_sel (vector signed short, vector signed short,
  18003.                                   vector signed short);
  18004.      vector signed short vec_sel (vector signed short, vector signed short,
  18005.                                   vector unsigned short);
  18006.      vector unsigned short vec_sel (vector unsigned short,
  18007.                                     vector unsigned short,
  18008.                                     vector signed short);
  18009.      vector unsigned short vec_sel (vector unsigned short,
  18010.                                     vector unsigned short,
  18011.                                     vector unsigned short);
  18012.      vector signed char vec_sel (vector signed char, vector signed char,
  18013.                                  vector signed char);
  18014.      vector signed char vec_sel (vector signed char, vector signed char,
  18015.                                  vector unsigned char);
  18016.      vector unsigned char vec_sel (vector unsigned char,
  18017.                                    vector unsigned char,
  18018.                                    vector signed char);
  18019.      vector unsigned char vec_sel (vector unsigned char,
  18020.                                    vector unsigned char,
  18021.                                    vector unsigned char);
  18022.  
  18023.      vector signed char vec_sl (vector signed char, vector unsigned char);
  18024.      vector unsigned char vec_sl (vector unsigned char,
  18025.                                   vector unsigned char);
  18026.      vector signed short vec_sl (vector signed short, vector unsigned short);
  18027.  
  18028.      vector unsigned short vec_sl (vector unsigned short,
  18029.                                    vector unsigned short);
  18030.      vector signed int vec_sl (vector signed int, vector unsigned int);
  18031.      vector unsigned int vec_sl (vector unsigned int, vector unsigned int);
  18032.  
  18033.      vector float vec_sld (vector float, vector float, const char);
  18034.      vector signed int vec_sld (vector signed int, vector signed int,
  18035.                                 const char);
  18036.      vector unsigned int vec_sld (vector unsigned int, vector unsigned int,
  18037.                                   const char);
  18038.      vector signed short vec_sld (vector signed short, vector signed short,
  18039.                                   const char);
  18040.      vector unsigned short vec_sld (vector unsigned short,
  18041.                                     vector unsigned short, const char);
  18042.      vector signed char vec_sld (vector signed char, vector signed char,
  18043.                                  const char);
  18044.      vector unsigned char vec_sld (vector unsigned char,
  18045.                                    vector unsigned char,
  18046.                                    const char);
  18047.  
  18048.      vector signed int vec_sll (vector signed int, vector unsigned int);
  18049.      vector signed int vec_sll (vector signed int, vector unsigned short);
  18050.      vector signed int vec_sll (vector signed int, vector unsigned char);
  18051.      vector unsigned int vec_sll (vector unsigned int, vector unsigned int);
  18052.      vector unsigned int vec_sll (vector unsigned int,
  18053.                                   vector unsigned short);
  18054.      vector unsigned int vec_sll (vector unsigned int, vector unsigned char);
  18055.  
  18056.      vector signed short vec_sll (vector signed short, vector unsigned int);
  18057.      vector signed short vec_sll (vector signed short,
  18058.                                   vector unsigned short);
  18059.      vector signed short vec_sll (vector signed short, vector unsigned char);
  18060.  
  18061.      vector unsigned short vec_sll (vector unsigned short,
  18062.                                     vector unsigned int);
  18063.      vector unsigned short vec_sll (vector unsigned short,
  18064.                                     vector unsigned short);
  18065.      vector unsigned short vec_sll (vector unsigned short,
  18066.                                     vector unsigned char);
  18067.      vector signed char vec_sll (vector signed char, vector unsigned int);
  18068.      vector signed char vec_sll (vector signed char, vector unsigned short);
  18069.      vector signed char vec_sll (vector signed char, vector unsigned char);
  18070.      vector unsigned char vec_sll (vector unsigned char,
  18071.                                    vector unsigned int);
  18072.      vector unsigned char vec_sll (vector unsigned char,
  18073.                                    vector unsigned short);
  18074.      vector unsigned char vec_sll (vector unsigned char,
  18075.                                    vector unsigned char);
  18076.  
  18077.      vector float vec_slo (vector float, vector signed char);
  18078.      vector float vec_slo (vector float, vector unsigned char);
  18079.      vector signed int vec_slo (vector signed int, vector signed char);
  18080.      vector signed int vec_slo (vector signed int, vector unsigned char);
  18081.      vector unsigned int vec_slo (vector unsigned int, vector signed char);
  18082.      vector unsigned int vec_slo (vector unsigned int, vector unsigned char);
  18083.  
  18084.      vector signed short vec_slo (vector signed short, vector signed char);
  18085.      vector signed short vec_slo (vector signed short, vector unsigned char);
  18086.  
  18087.      vector unsigned short vec_slo (vector unsigned short,
  18088.                                     vector signed char);
  18089.      vector unsigned short vec_slo (vector unsigned short,
  18090.                                     vector unsigned char);
  18091.      vector signed char vec_slo (vector signed char, vector signed char);
  18092.      vector signed char vec_slo (vector signed char, vector unsigned char);
  18093.      vector unsigned char vec_slo (vector unsigned char, vector signed char);
  18094.  
  18095.      vector unsigned char vec_slo (vector unsigned char,
  18096.                                    vector unsigned char);
  18097.  
  18098.      vector signed char vec_splat (vector signed char, const char);
  18099.      vector unsigned char vec_splat (vector unsigned char, const char);
  18100.      vector signed short vec_splat (vector signed short, const char);
  18101.      vector unsigned short vec_splat (vector unsigned short, const char);
  18102.      vector float vec_splat (vector float, const char);
  18103.      vector signed int vec_splat (vector signed int, const char);
  18104.      vector unsigned int vec_splat (vector unsigned int, const char);
  18105.  
  18106.      vector signed char vec_splat_s8 (const char);
  18107.  
  18108.      vector signed short vec_splat_s16 (const char);
  18109.  
  18110.      vector signed int vec_splat_s32 (const char);
  18111.  
  18112.      vector unsigned char vec_splat_u8 (const char);
  18113.  
  18114.      vector unsigned short vec_splat_u16 (const char);
  18115.  
  18116.      vector unsigned int vec_splat_u32 (const char);
  18117.  
  18118.      vector signed char vec_sr (vector signed char, vector unsigned char);
  18119.      vector unsigned char vec_sr (vector unsigned char,
  18120.                                   vector unsigned char);
  18121.      vector signed short vec_sr (vector signed short, vector unsigned short);
  18122.  
  18123.      vector unsigned short vec_sr (vector unsigned short,
  18124.                                    vector unsigned short);
  18125.      vector signed int vec_sr (vector signed int, vector unsigned int);
  18126.      vector unsigned int vec_sr (vector unsigned int, vector unsigned int);
  18127.  
  18128.      vector signed char vec_sra (vector signed char, vector unsigned char);
  18129.      vector unsigned char vec_sra (vector unsigned char,
  18130.                                    vector unsigned char);
  18131.      vector signed short vec_sra (vector signed short,
  18132.                                   vector unsigned short);
  18133.      vector unsigned short vec_sra (vector unsigned short,
  18134.                                     vector unsigned short);
  18135.      vector signed int vec_sra (vector signed int, vector unsigned int);
  18136.      vector unsigned int vec_sra (vector unsigned int, vector unsigned int);
  18137.  
  18138.      vector signed int vec_srl (vector signed int, vector unsigned int);
  18139.      vector signed int vec_srl (vector signed int, vector unsigned short);
  18140.      vector signed int vec_srl (vector signed int, vector unsigned char);
  18141.      vector unsigned int vec_srl (vector unsigned int, vector unsigned int);
  18142.      vector unsigned int vec_srl (vector unsigned int,
  18143.                                   vector unsigned short);
  18144.      vector unsigned int vec_srl (vector unsigned int, vector unsigned char);
  18145.  
  18146.      vector signed short vec_srl (vector signed short, vector unsigned int);
  18147.      vector signed short vec_srl (vector signed short,
  18148.                                   vector unsigned short);
  18149.      vector signed short vec_srl (vector signed short, vector unsigned char);
  18150.  
  18151.      vector unsigned short vec_srl (vector unsigned short,
  18152.                                     vector unsigned int);
  18153.      vector unsigned short vec_srl (vector unsigned short,
  18154.                                     vector unsigned short);
  18155.      vector unsigned short vec_srl (vector unsigned short,
  18156.                                     vector unsigned char);
  18157.      vector signed char vec_srl (vector signed char, vector unsigned int);
  18158.      vector signed char vec_srl (vector signed char, vector unsigned short);
  18159.      vector signed char vec_srl (vector signed char, vector unsigned char);
  18160.      vector unsigned char vec_srl (vector unsigned char,
  18161.                                    vector unsigned int);
  18162.      vector unsigned char vec_srl (vector unsigned char,
  18163.                                    vector unsigned short);
  18164.      vector unsigned char vec_srl (vector unsigned char,
  18165.                                    vector unsigned char);
  18166.  
  18167.      vector float vec_sro (vector float, vector signed char);
  18168.      vector float vec_sro (vector float, vector unsigned char);
  18169.      vector signed int vec_sro (vector signed int, vector signed char);
  18170.      vector signed int vec_sro (vector signed int, vector unsigned char);
  18171.      vector unsigned int vec_sro (vector unsigned int, vector signed char);
  18172.      vector unsigned int vec_sro (vector unsigned int, vector unsigned char);
  18173.  
  18174.      vector signed short vec_sro (vector signed short, vector signed char);
  18175.      vector signed short vec_sro (vector signed short, vector unsigned char);
  18176.  
  18177.      vector unsigned short vec_sro (vector unsigned short,
  18178.                                     vector signed char);
  18179.      vector unsigned short vec_sro (vector unsigned short,
  18180.                                     vector unsigned char);
  18181.      vector signed char vec_sro (vector signed char, vector signed char);
  18182.      vector signed char vec_sro (vector signed char, vector unsigned char);
  18183.      vector unsigned char vec_sro (vector unsigned char, vector signed char);
  18184.  
  18185.      vector unsigned char vec_sro (vector unsigned char,
  18186.                                    vector unsigned char);
  18187.  
  18188.      void vec_st (vector float, int, float *);
  18189.      void vec_st (vector float, int, vector float *);
  18190.      void vec_st (vector signed int, int, int *);
  18191.      void vec_st (vector signed int, int, unsigned int *);
  18192.      void vec_st (vector unsigned int, int, unsigned int *);
  18193.      void vec_st (vector unsigned int, int, vector unsigned int *);
  18194.      void vec_st (vector signed short, int, short *);
  18195.      void vec_st (vector signed short, int, vector unsigned short *);
  18196.      void vec_st (vector signed short, int, vector signed short *);
  18197.      void vec_st (vector unsigned short, int, unsigned short *);
  18198.      void vec_st (vector unsigned short, int, vector unsigned short *);
  18199.      void vec_st (vector signed char, int, signed char *);
  18200.      void vec_st (vector signed char, int, unsigned char *);
  18201.      void vec_st (vector signed char, int, vector signed char *);
  18202.      void vec_st (vector unsigned char, int, unsigned char *);
  18203.      void vec_st (vector unsigned char, int, vector unsigned char *);
  18204.  
  18205.      void vec_ste (vector signed char, int, unsigned char *);
  18206.      void vec_ste (vector signed char, int, signed char *);
  18207.      void vec_ste (vector unsigned char, int, unsigned char *);
  18208.      void vec_ste (vector signed short, int, short *);
  18209.      void vec_ste (vector signed short, int, unsigned short *);
  18210.      void vec_ste (vector unsigned short, int, void *);
  18211.      void vec_ste (vector signed int, int, unsigned int *);
  18212.      void vec_ste (vector signed int, int, int *);
  18213.      void vec_ste (vector unsigned int, int, unsigned int *);
  18214.      void vec_ste (vector float, int, float *);
  18215.  
  18216.      void vec_stl (vector float, int, vector float *);
  18217.      void vec_stl (vector float, int, float *);
  18218.      void vec_stl (vector signed int, int, vector signed int *);
  18219.      void vec_stl (vector signed int, int, int *);
  18220.      void vec_stl (vector signed int, int, unsigned int *);
  18221.      void vec_stl (vector unsigned int, int, vector unsigned int *);
  18222.      void vec_stl (vector unsigned int, int, unsigned int *);
  18223.      void vec_stl (vector signed short, int, short *);
  18224.      void vec_stl (vector signed short, int, unsigned short *);
  18225.      void vec_stl (vector signed short, int, vector signed short *);
  18226.      void vec_stl (vector unsigned short, int, unsigned short *);
  18227.      void vec_stl (vector unsigned short, int, vector signed short *);
  18228.      void vec_stl (vector signed char, int, signed char *);
  18229.      void vec_stl (vector signed char, int, unsigned char *);
  18230.      void vec_stl (vector signed char, int, vector signed char *);
  18231.      void vec_stl (vector unsigned char, int, unsigned char *);
  18232.      void vec_stl (vector unsigned char, int, vector unsigned char *);
  18233.  
  18234.      vector signed char vec_sub (vector signed char, vector signed char);
  18235.      vector unsigned char vec_sub (vector signed char, vector unsigned char);
  18236.  
  18237.      vector unsigned char vec_sub (vector unsigned char, vector signed char);
  18238.  
  18239.      vector unsigned char vec_sub (vector unsigned char,
  18240.                                    vector unsigned char);
  18241.      vector signed short vec_sub (vector signed short, vector signed short);
  18242.      vector unsigned short vec_sub (vector signed short,
  18243.                                     vector unsigned short);
  18244.      vector unsigned short vec_sub (vector unsigned short,
  18245.                                     vector signed short);
  18246.      vector unsigned short vec_sub (vector unsigned short,
  18247.                                     vector unsigned short);
  18248.      vector signed int vec_sub (vector signed int, vector signed int);
  18249.      vector unsigned int vec_sub (vector signed int, vector unsigned int);
  18250.      vector unsigned int vec_sub (vector unsigned int, vector signed int);
  18251.      vector unsigned int vec_sub (vector unsigned int, vector unsigned int);
  18252.      vector float vec_sub (vector float, vector float);
  18253.  
  18254.      vector unsigned int vec_subc (vector unsigned int, vector unsigned int);
  18255.  
  18256.      vector unsigned char vec_subs (vector signed char,
  18257.                                     vector unsigned char);
  18258.      vector unsigned char vec_subs (vector unsigned char,
  18259.                                     vector signed char);
  18260.      vector unsigned char vec_subs (vector unsigned char,
  18261.                                     vector unsigned char);
  18262.      vector signed char vec_subs (vector signed char, vector signed char);
  18263.      vector unsigned short vec_subs (vector signed short,
  18264.                                      vector unsigned short);
  18265.      vector unsigned short vec_subs (vector unsigned short,
  18266.                                      vector signed short);
  18267.      vector unsigned short vec_subs (vector unsigned short,
  18268.                                      vector unsigned short);
  18269.      vector signed short vec_subs (vector signed short, vector signed short);
  18270.  
  18271.      vector unsigned int vec_subs (vector signed int, vector unsigned int);
  18272.      vector unsigned int vec_subs (vector unsigned int, vector signed int);
  18273.      vector unsigned int vec_subs (vector unsigned int, vector unsigned int);
  18274.  
  18275.      vector signed int vec_subs (vector signed int, vector signed int);
  18276.  
  18277.      vector unsigned int vec_sum4s (vector unsigned char,
  18278.                                     vector unsigned int);
  18279.      vector signed int vec_sum4s (vector signed char, vector signed int);
  18280.      vector signed int vec_sum4s (vector signed short, vector signed int);
  18281.  
  18282.      vector signed int vec_sum2s (vector signed int, vector signed int);
  18283.  
  18284.      vector signed int vec_sums (vector signed int, vector signed int);
  18285.  
  18286.      vector float vec_trunc (vector float);
  18287.  
  18288.      vector signed short vec_unpackh (vector signed char);
  18289.      vector unsigned int vec_unpackh (vector signed short);
  18290.      vector signed int vec_unpackh (vector signed short);
  18291.  
  18292.      vector signed short vec_unpackl (vector signed char);
  18293.      vector unsigned int vec_unpackl (vector signed short);
  18294.      vector signed int vec_unpackl (vector signed short);
  18295.  
  18296.      vector float vec_xor (vector float, vector float);
  18297.      vector float vec_xor (vector float, vector signed int);
  18298.      vector float vec_xor (vector signed int, vector float);
  18299.      vector signed int vec_xor (vector signed int, vector signed int);
  18300.      vector unsigned int vec_xor (vector signed int, vector unsigned int);
  18301.      vector unsigned int vec_xor (vector unsigned int, vector signed int);
  18302.      vector unsigned int vec_xor (vector unsigned int, vector unsigned int);
  18303.      vector signed short vec_xor (vector signed short, vector signed short);
  18304.      vector unsigned short vec_xor (vector signed short,
  18305.                                     vector unsigned short);
  18306.      vector unsigned short vec_xor (vector unsigned short,
  18307.                                     vector signed short);
  18308.      vector unsigned short vec_xor (vector unsigned short,
  18309.                                     vector unsigned short);
  18310.      vector signed char vec_xor (vector signed char, vector signed char);
  18311.      vector unsigned char vec_xor (vector signed char, vector unsigned char);
  18312.  
  18313.      vector unsigned char vec_xor (vector unsigned char, vector signed char);
  18314.  
  18315.      vector unsigned char vec_xor (vector unsigned char,
  18316.                                    vector unsigned char);
  18317.  
  18318.      vector signed int vec_all_eq (vector signed char, vector unsigned char);
  18319.  
  18320.      vector signed int vec_all_eq (vector signed char, vector signed char);
  18321.      vector signed int vec_all_eq (vector unsigned char, vector signed char);
  18322.  
  18323.      vector signed int vec_all_eq (vector unsigned char,
  18324.                                    vector unsigned char);
  18325.      vector signed int vec_all_eq (vector signed short,
  18326.                                    vector unsigned short);
  18327.      vector signed int vec_all_eq (vector signed short, vector signed short);
  18328.  
  18329.      vector signed int vec_all_eq (vector unsigned short,
  18330.                                    vector signed short);
  18331.      vector signed int vec_all_eq (vector unsigned short,
  18332.                                    vector unsigned short);
  18333.      vector signed int vec_all_eq (vector signed int, vector unsigned int);
  18334.      vector signed int vec_all_eq (vector signed int, vector signed int);
  18335.      vector signed int vec_all_eq (vector unsigned int, vector signed int);
  18336.      vector signed int vec_all_eq (vector unsigned int, vector unsigned int);
  18337.  
  18338.      vector signed int vec_all_eq (vector float, vector float);
  18339.  
  18340.      vector signed int vec_all_ge (vector signed char, vector unsigned char);
  18341.  
  18342.      vector signed int vec_all_ge (vector unsigned char, vector signed char);
  18343.  
  18344.      vector signed int vec_all_ge (vector unsigned char,
  18345.                                    vector unsigned char);
  18346.      vector signed int vec_all_ge (vector signed char, vector signed char);
  18347.      vector signed int vec_all_ge (vector signed short,
  18348.                                    vector unsigned short);
  18349.      vector signed int vec_all_ge (vector unsigned short,
  18350.                                    vector signed short);
  18351.      vector signed int vec_all_ge (vector unsigned short,
  18352.                                    vector unsigned short);
  18353.      vector signed int vec_all_ge (vector signed short, vector signed short);
  18354.  
  18355.      vector signed int vec_all_ge (vector signed int, vector unsigned int);
  18356.      vector signed int vec_all_ge (vector unsigned int, vector signed int);
  18357.      vector signed int vec_all_ge (vector unsigned int, vector unsigned int);
  18358.  
  18359.      vector signed int vec_all_ge (vector signed int, vector signed int);
  18360.      vector signed int vec_all_ge (vector float, vector float);
  18361.  
  18362.      vector signed int vec_all_gt (vector signed char, vector unsigned char);
  18363.  
  18364.      vector signed int vec_all_gt (vector unsigned char, vector signed char);
  18365.  
  18366.      vector signed int vec_all_gt (vector unsigned char,
  18367.                                    vector unsigned char);
  18368.      vector signed int vec_all_gt (vector signed char, vector signed char);
  18369.      vector signed int vec_all_gt (vector signed short,
  18370.                                    vector unsigned short);
  18371.      vector signed int vec_all_gt (vector unsigned short,
  18372.                                    vector signed short);
  18373.      vector signed int vec_all_gt (vector unsigned short,
  18374.                                    vector unsigned short);
  18375.      vector signed int vec_all_gt (vector signed short, vector signed short);
  18376.  
  18377.      vector signed int vec_all_gt (vector signed int, vector unsigned int);
  18378.      vector signed int vec_all_gt (vector unsigned int, vector signed int);
  18379.      vector signed int vec_all_gt (vector unsigned int, vector unsigned int);
  18380.  
  18381.      vector signed int vec_all_gt (vector signed int, vector signed int);
  18382.      vector signed int vec_all_gt (vector float, vector float);
  18383.  
  18384.      vector signed int vec_all_in (vector float, vector float);
  18385.  
  18386.      vector signed int vec_all_le (vector signed char, vector unsigned char);
  18387.  
  18388.      vector signed int vec_all_le (vector unsigned char, vector signed char);
  18389.  
  18390.      vector signed int vec_all_le (vector unsigned char,
  18391.                                    vector unsigned char);
  18392.      vector signed int vec_all_le (vector signed char, vector signed char);
  18393.      vector signed int vec_all_le (vector signed short,
  18394.                                    vector unsigned short);
  18395.      vector signed int vec_all_le (vector unsigned short,
  18396.                                    vector signed short);
  18397.      vector signed int vec_all_le (vector unsigned short,
  18398.                                    vector unsigned short);
  18399.      vector signed int vec_all_le (vector signed short, vector signed short);
  18400.  
  18401.      vector signed int vec_all_le (vector signed int, vector unsigned int);
  18402.      vector signed int vec_all_le (vector unsigned int, vector signed int);
  18403.      vector signed int vec_all_le (vector unsigned int, vector unsigned int);
  18404.  
  18405.      vector signed int vec_all_le (vector signed int, vector signed int);
  18406.      vector signed int vec_all_le (vector float, vector float);
  18407.  
  18408.      vector signed int vec_all_lt (vector signed char, vector unsigned char);
  18409.  
  18410.      vector signed int vec_all_lt (vector unsigned char, vector signed char);
  18411.  
  18412.      vector signed int vec_all_lt (vector unsigned char,
  18413.                                    vector unsigned char);
  18414.      vector signed int vec_all_lt (vector signed char, vector signed char);
  18415.      vector signed int vec_all_lt (vector signed short,
  18416.                                    vector unsigned short);
  18417.      vector signed int vec_all_lt (vector unsigned short,
  18418.                                    vector signed short);
  18419.      vector signed int vec_all_lt (vector unsigned short,
  18420.                                    vector unsigned short);
  18421.      vector signed int vec_all_lt (vector signed short, vector signed short);
  18422.  
  18423.      vector signed int vec_all_lt (vector signed int, vector unsigned int);
  18424.      vector signed int vec_all_lt (vector unsigned int, vector signed int);
  18425.      vector signed int vec_all_lt (vector unsigned int, vector unsigned int);
  18426.  
  18427.      vector signed int vec_all_lt (vector signed int, vector signed int);
  18428.      vector signed int vec_all_lt (vector float, vector float);
  18429.  
  18430.      vector signed int vec_all_nan (vector float);
  18431.  
  18432.      vector signed int vec_all_ne (vector signed char, vector unsigned char);
  18433.  
  18434.      vector signed int vec_all_ne (vector signed char, vector signed char);
  18435.      vector signed int vec_all_ne (vector unsigned char, vector signed char);
  18436.  
  18437.      vector signed int vec_all_ne (vector unsigned char,
  18438.                                    vector unsigned char);
  18439.      vector signed int vec_all_ne (vector signed short,
  18440.                                    vector unsigned short);
  18441.      vector signed int vec_all_ne (vector signed short, vector signed short);
  18442.  
  18443.      vector signed int vec_all_ne (vector unsigned short,
  18444.                                    vector signed short);
  18445.      vector signed int vec_all_ne (vector unsigned short,
  18446.                                    vector unsigned short);
  18447.      vector signed int vec_all_ne (vector signed int, vector unsigned int);
  18448.      vector signed int vec_all_ne (vector signed int, vector signed int);
  18449.      vector signed int vec_all_ne (vector unsigned int, vector signed int);
  18450.      vector signed int vec_all_ne (vector unsigned int, vector unsigned int);
  18451.  
  18452.      vector signed int vec_all_ne (vector float, vector float);
  18453.  
  18454.      vector signed int vec_all_nge (vector float, vector float);
  18455.  
  18456.      vector signed int vec_all_ngt (vector float, vector float);
  18457.  
  18458.      vector signed int vec_all_nle (vector float, vector float);
  18459.  
  18460.      vector signed int vec_all_nlt (vector float, vector float);
  18461.  
  18462.      vector signed int vec_all_numeric (vector float);
  18463.  
  18464.      vector signed int vec_any_eq (vector signed char, vector unsigned char);
  18465.  
  18466.      vector signed int vec_any_eq (vector signed char, vector signed char);
  18467.      vector signed int vec_any_eq (vector unsigned char, vector signed char);
  18468.  
  18469.      vector signed int vec_any_eq (vector unsigned char,
  18470.                                    vector unsigned char);
  18471.      vector signed int vec_any_eq (vector signed short,
  18472.                                    vector unsigned short);
  18473.      vector signed int vec_any_eq (vector signed short, vector signed short);
  18474.  
  18475.      vector signed int vec_any_eq (vector unsigned short,
  18476.                                    vector signed short);
  18477.      vector signed int vec_any_eq (vector unsigned short,
  18478.                                    vector unsigned short);
  18479.      vector signed int vec_any_eq (vector signed int, vector unsigned int);
  18480.      vector signed int vec_any_eq (vector signed int, vector signed int);
  18481.      vector signed int vec_any_eq (vector unsigned int, vector signed int);
  18482.      vector signed int vec_any_eq (vector unsigned int, vector unsigned int);
  18483.  
  18484.      vector signed int vec_any_eq (vector float, vector float);
  18485.  
  18486.      vector signed int vec_any_ge (vector signed char, vector unsigned char);
  18487.  
  18488.      vector signed int vec_any_ge (vector unsigned char, vector signed char);
  18489.  
  18490.      vector signed int vec_any_ge (vector unsigned char,
  18491.                                    vector unsigned char);
  18492.      vector signed int vec_any_ge (vector signed char, vector signed char);
  18493.      vector signed int vec_any_ge (vector signed short,
  18494.                                    vector unsigned short);
  18495.      vector signed int vec_any_ge (vector unsigned short,
  18496.                                    vector signed short);
  18497.      vector signed int vec_any_ge (vector unsigned short,
  18498.                                    vector unsigned short);
  18499.      vector signed int vec_any_ge (vector signed short, vector signed short);
  18500.  
  18501.      vector signed int vec_any_ge (vector signed int, vector unsigned int);
  18502.      vector signed int vec_any_ge (vector unsigned int, vector signed int);
  18503.      vector signed int vec_any_ge (vector unsigned int, vector unsigned int);
  18504.  
  18505.      vector signed int vec_any_ge (vector signed int, vector signed int);
  18506.      vector signed int vec_any_ge (vector float, vector float);
  18507.  
  18508.      vector signed int vec_any_gt (vector signed char, vector unsigned char);
  18509.  
  18510.      vector signed int vec_any_gt (vector unsigned char, vector signed char);
  18511.  
  18512.      vector signed int vec_any_gt (vector unsigned char,
  18513.                                    vector unsigned char);
  18514.      vector signed int vec_any_gt (vector signed char, vector signed char);
  18515.      vector signed int vec_any_gt (vector signed short,
  18516.                                    vector unsigned short);
  18517.      vector signed int vec_any_gt (vector unsigned short,
  18518.                                    vector signed short);
  18519.      vector signed int vec_any_gt (vector unsigned short,
  18520.                                    vector unsigned short);
  18521.      vector signed int vec_any_gt (vector signed short, vector signed short);
  18522.  
  18523.      vector signed int vec_any_gt (vector signed int, vector unsigned int);
  18524.      vector signed int vec_any_gt (vector unsigned int, vector signed int);
  18525.      vector signed int vec_any_gt (vector unsigned int, vector unsigned int);
  18526.  
  18527.      vector signed int vec_any_gt (vector signed int, vector signed int);
  18528.      vector signed int vec_any_gt (vector float, vector float);
  18529.  
  18530.      vector signed int vec_any_le (vector signed char, vector unsigned char);
  18531.  
  18532.      vector signed int vec_any_le (vector unsigned char, vector signed char);
  18533.  
  18534.      vector signed int vec_any_le (vector unsigned char,
  18535.                                    vector unsigned char);
  18536.      vector signed int vec_any_le (vector signed char, vector signed char);
  18537.      vector signed int vec_any_le (vector signed short,
  18538.                                    vector unsigned short);
  18539.      vector signed int vec_any_le (vector unsigned short,
  18540.                                    vector signed short);
  18541.      vector signed int vec_any_le (vector unsigned short,
  18542.                                    vector unsigned short);
  18543.      vector signed int vec_any_le (vector signed short, vector signed short);
  18544.  
  18545.      vector signed int vec_any_le (vector signed int, vector unsigned int);
  18546.      vector signed int vec_any_le (vector unsigned int, vector signed int);
  18547.      vector signed int vec_any_le (vector unsigned int, vector unsigned int);
  18548.  
  18549.      vector signed int vec_any_le (vector signed int, vector signed int);
  18550.      vector signed int vec_any_le (vector float, vector float);
  18551.  
  18552.      vector signed int vec_any_lt (vector signed char, vector unsigned char);
  18553.  
  18554.      vector signed int vec_any_lt (vector unsigned char, vector signed char);
  18555.  
  18556.      vector signed int vec_any_lt (vector unsigned char,
  18557.                                    vector unsigned char);
  18558.      vector signed int vec_any_lt (vector signed char, vector signed char);
  18559.      vector signed int vec_any_lt (vector signed short,
  18560.                                    vector unsigned short);
  18561.      vector signed int vec_any_lt (vector unsigned short,
  18562.                                    vector signed short);
  18563.      vector signed int vec_any_lt (vector unsigned short,
  18564.                                    vector unsigned short);
  18565.      vector signed int vec_any_lt (vector signed short, vector signed short);
  18566.  
  18567.      vector signed int vec_any_lt (vector signed int, vector unsigned int);
  18568.      vector signed int vec_any_lt (vector unsigned int, vector signed int);
  18569.      vector signed int vec_any_lt (vector unsigned int, vector unsigned int);
  18570.  
  18571.      vector signed int vec_any_lt (vector signed int, vector signed int);
  18572.      vector signed int vec_any_lt (vector float, vector float);
  18573.  
  18574.      vector signed int vec_any_nan (vector float);
  18575.  
  18576.      vector signed int vec_any_ne (vector signed char, vector unsigned char);
  18577.  
  18578.      vector signed int vec_any_ne (vector signed char, vector signed char);
  18579.      vector signed int vec_any_ne (vector unsigned char, vector signed char);
  18580.  
  18581.      vector signed int vec_any_ne (vector unsigned char,
  18582.                                    vector unsigned char);
  18583.      vector signed int vec_any_ne (vector signed short,
  18584.                                    vector unsigned short);
  18585.      vector signed int vec_any_ne (vector signed short, vector signed short);
  18586.  
  18587.      vector signed int vec_any_ne (vector unsigned short,
  18588.                                    vector signed short);
  18589.      vector signed int vec_any_ne (vector unsigned short,
  18590.                                    vector unsigned short);
  18591.      vector signed int vec_any_ne (vector signed int, vector unsigned int);
  18592.      vector signed int vec_any_ne (vector signed int, vector signed int);
  18593.      vector signed int vec_any_ne (vector unsigned int, vector signed int);
  18594.      vector signed int vec_any_ne (vector unsigned int, vector unsigned int);
  18595.  
  18596.      vector signed int vec_any_ne (vector float, vector float);
  18597.  
  18598.      vector signed int vec_any_nge (vector float, vector float);
  18599.  
  18600.      vector signed int vec_any_ngt (vector float, vector float);
  18601.  
  18602.      vector signed int vec_any_nle (vector float, vector float);
  18603.  
  18604.      vector signed int vec_any_nlt (vector float, vector float);
  18605.  
  18606.      vector signed int vec_any_numeric (vector float);
  18607.  
  18608.      vector signed int vec_any_out (vector float, vector float);
  18609.  
  18610. 
  18611. File: gcc,  Node: Pragmas,  Next: Unnamed Fields,  Prev: Target Builtins,  Up: C Extensions
  18612.  
  18613. 5.46 Pragmas Accepted by GCC
  18614. ============================
  18615.  
  18616. GCC supports several types of pragmas, primarily in order to compile
  18617. code originally written for other compilers.  Note that in general we
  18618. do not recommend the use of pragmas; *Note Function Attributes::, for
  18619. further explanation.
  18620.  
  18621. * Menu:
  18622.  
  18623. * ARM Pragmas::
  18624. * RS/6000 and PowerPC Pragmas::
  18625. * Darwin Pragmas::
  18626. * Solaris Pragmas::
  18627. * Tru64 Pragmas::
  18628.  
  18629. 
  18630. File: gcc,  Node: ARM Pragmas,  Next: RS/6000 and PowerPC Pragmas,  Up: Pragmas
  18631.  
  18632. 5.46.1 ARM Pragmas
  18633. ------------------
  18634.  
  18635. The ARM target defines pragmas for controlling the default addition of
  18636. `long_call' and `short_call' attributes to functions.  *Note Function
  18637. Attributes::, for information about the effects of these attributes.
  18638.  
  18639. `long_calls'
  18640.      Set all subsequent functions to have the `long_call' attribute.
  18641.  
  18642. `no_long_calls'
  18643.      Set all subsequent functions to have the `short_call' attribute.
  18644.  
  18645. `long_calls_off'
  18646.      Do not affect the `long_call' or `short_call' attributes of
  18647.      subsequent functions.
  18648.  
  18649. 
  18650. File: gcc,  Node: RS/6000 and PowerPC Pragmas,  Next: Darwin Pragmas,  Prev: ARM Pragmas,  Up: Pragmas
  18651.  
  18652. 5.46.2 RS/6000 and PowerPC Pragmas
  18653. ----------------------------------
  18654.  
  18655. The RS/6000 and PowerPC targets define one pragma for controlling
  18656. whether or not the `longcall' attribute is added to function
  18657. declarations by default.  This pragma overrides the `-mlongcall'
  18658. option, but not the `longcall' and `shortcall' attributes.  *Note
  18659. RS/6000 and PowerPC Options::, for more information about when long
  18660. calls are and are not necessary.
  18661.  
  18662. `longcall (1)'
  18663.      Apply the `longcall' attribute to all subsequent function
  18664.      declarations.
  18665.  
  18666. `longcall (0)'
  18667.      Do not apply the `longcall' attribute to subsequent function
  18668.      declarations.
  18669.  
  18670. 
  18671. File: gcc,  Node: Darwin Pragmas,  Next: Solaris Pragmas,  Prev: RS/6000 and PowerPC Pragmas,  Up: Pragmas
  18672.  
  18673. 5.46.3 Darwin Pragmas
  18674. ---------------------
  18675.  
  18676. The following pragmas are available for all architectures running the
  18677. Darwin operating system.  These are useful for compatibility with other
  18678. Mac OS compilers.
  18679.  
  18680. `mark TOKENS...'
  18681.      This pragma is accepted, but has no effect.
  18682.  
  18683. `options align=ALIGNMENT'
  18684.      This pragma sets the alignment of fields in structures.  The
  18685.      values of ALIGNMENT may be `mac68k', to emulate m68k alignment, or
  18686.      `power', to emulate PowerPC alignment.  Uses of this pragma nest
  18687.      properly; to restore the previous setting, use `reset' for the
  18688.      ALIGNMENT.
  18689.  
  18690. `segment TOKENS...'
  18691.      This pragma is accepted, but has no effect.
  18692.  
  18693. `unused (VAR [, VAR]...)'
  18694.      This pragma declares variables to be possibly unused.  GCC will not
  18695.      produce warnings for the listed variables.  The effect is similar
  18696.      to that of the `unused' attribute, except that this pragma may
  18697.      appear anywhere within the variables' scopes.
  18698.  
  18699. 
  18700. File: gcc,  Node: Solaris Pragmas,  Next: Tru64 Pragmas,  Prev: Darwin Pragmas,  Up: Pragmas
  18701.  
  18702. 5.46.4 Solaris Pragmas
  18703. ----------------------
  18704.  
  18705. For compatibility with the SunPRO compiler, the following pragma is
  18706. supported.
  18707.  
  18708. `redefine_extname OLDNAME NEWNAME'
  18709.      This pragma gives the C function OLDNAME the assembler label
  18710.      NEWNAME.  The pragma must appear before the function declaration.
  18711.      This pragma is equivalent to the asm labels extension (*note Asm
  18712.      Labels::).  The preprocessor defines `__PRAGMA_REDEFINE_EXTNAME'
  18713.      if the pragma is available.
  18714.  
  18715. 
  18716. File: gcc,  Node: Tru64 Pragmas,  Prev: Solaris Pragmas,  Up: Pragmas
  18717.  
  18718. 5.46.5 Tru64 Pragmas
  18719. --------------------
  18720.  
  18721. For compatibility with the Compaq C compiler, the following pragma is
  18722. supported.
  18723.  
  18724. `extern_prefix STRING'
  18725.      This pragma renames all subsequent function and variable
  18726.      declarations such that STRING is prepended to the name.  This
  18727.      effect may be terminated by using another `extern_prefix' pragma
  18728.      with the empty string.
  18729.  
  18730.      This pragma is similar in intent to to the asm labels extension
  18731.      (*note Asm Labels::) in that the system programmer wants to change
  18732.      the assembly-level ABI without changing the source-level API.  The
  18733.      preprocessor defines `__PRAGMA_EXTERN_PREFIX' if the pragma is
  18734.      available.
  18735.  
  18736. 
  18737. File: gcc,  Node: Unnamed Fields,  Next: Thread-Local,  Prev: Pragmas,  Up: C Extensions
  18738.  
  18739. 5.47 Unnamed struct/union fields within structs/unions.
  18740. =======================================================
  18741.  
  18742. For compatibility with other compilers, GCC allows you to define a
  18743. structure or union that contains, as fields, structures and unions
  18744. without names.  For example:
  18745.  
  18746.      struct {
  18747.        int a;
  18748.        union {
  18749.          int b;
  18750.          float c;
  18751.        };
  18752.        int d;
  18753.      } foo;
  18754.  
  18755.  In this example, the user would be able to access members of the
  18756. unnamed union with code like `foo.b'.  Note that only unnamed structs
  18757. and unions are allowed, you may not have, for example, an unnamed `int'.
  18758.  
  18759.  You must never create such structures that cause ambiguous field
  18760. definitions.  For example, this structure:
  18761.  
  18762.      struct {
  18763.        int a;
  18764.        struct {
  18765.          int a;
  18766.        };
  18767.      } foo;
  18768.  
  18769.  It is ambiguous which `a' is being referred to with `foo.a'.  Such
  18770. constructs are not supported and must be avoided.  In the future, such
  18771. constructs may be detected and treated as compilation errors.
  18772.  
  18773. 
  18774. File: gcc,  Node: Thread-Local,  Prev: Unnamed Fields,  Up: C Extensions
  18775.  
  18776. 5.48 Thread-Local Storage
  18777. =========================
  18778.  
  18779. Thread-local storage (TLS) is a mechanism by which variables are
  18780. allocated such that there is one instance of the variable per extant
  18781. thread.  The run-time model GCC uses to implement this originates in
  18782. the IA-64 processor-specific ABI, but has since been migrated to other
  18783. processors as well.  It requires significant support from the linker
  18784. (`ld'), dynamic linker (`ld.so'), and system libraries (`libc.so' and
  18785. `libpthread.so'), so it is not available everywhere.
  18786.  
  18787.  At the user level, the extension is visible with a new storage class
  18788. keyword: `__thread'.  For example:
  18789.  
  18790.      __thread int i;
  18791.      extern __thread struct state s;
  18792.      static __thread char *p;
  18793.  
  18794.  The `__thread' specifier may be used alone, with the `extern' or
  18795. `static' specifiers, but with no other storage class specifier.  When
  18796. used with `extern' or `static', `__thread' must appear immediately
  18797. after the other storage class specifier.
  18798.  
  18799.  The `__thread' specifier may be applied to any global, file-scoped
  18800. static, function-scoped static, or static data member of a class.  It
  18801. may not be applied to block-scoped automatic or non-static data member.
  18802.  
  18803.  When the address-of operator is applied to a thread-local variable, it
  18804. is evaluated at run-time and returns the address of the current thread's
  18805. instance of that variable.  An address so obtained may be used by any
  18806. thread.  When a thread terminates, any pointers to thread-local
  18807. variables in that thread become invalid.
  18808.  
  18809.  No static initialization may refer to the address of a thread-local
  18810. variable.
  18811.  
  18812.  In C++, if an initializer is present for a thread-local variable, it
  18813. must be a CONSTANT-EXPRESSION, as defined in 5.19.2 of the ANSI/ISO C++
  18814. standard.
  18815.  
  18816.  See ELF Handling For Thread-Local Storage
  18817. (http://people.redhat.com/drepper/tls.pdf) for a detailed explanation of
  18818. the four thread-local storage addressing models, and how the run-time
  18819. is expected to function.
  18820.  
  18821. * Menu:
  18822.  
  18823. * C99 Thread-Local Edits::
  18824. * C++98 Thread-Local Edits::
  18825.  
  18826. 
  18827. File: gcc,  Node: C99 Thread-Local Edits,  Next: C++98 Thread-Local Edits,  Up: Thread-Local
  18828.  
  18829. 5.48.1 ISO/IEC 9899:1999 Edits for Thread-Local Storage
  18830. -------------------------------------------------------
  18831.  
  18832. The following are a set of changes to ISO/IEC 9899:1999 (aka C99) that
  18833. document the exact semantics of the language extension.
  18834.  
  18835.    * `5.1.2  Execution environments'
  18836.  
  18837.      Add new text after paragraph 1
  18838.  
  18839.           Within either execution environment, a "thread" is a flow of
  18840.           control within a program.  It is implementation defined
  18841.           whether or not there may be more than one thread associated
  18842.           with a program.  It is implementation defined how threads
  18843.           beyond the first are created, the name and type of the
  18844.           function called at thread startup, and how threads may be
  18845.           terminated.  However, objects with thread storage duration
  18846.           shall be initialized before thread startup.
  18847.  
  18848.    * `6.2.4  Storage durations of objects'
  18849.  
  18850.      Add new text before paragraph 3
  18851.  
  18852.           An object whose identifier is declared with the storage-class
  18853.           specifier `__thread' has "thread storage duration".  Its
  18854.           lifetime is the entire execution of the thread, and its
  18855.           stored value is initialized only once, prior to thread
  18856.           startup.
  18857.  
  18858.    * `6.4.1  Keywords'
  18859.  
  18860.      Add `__thread'.
  18861.  
  18862.    * `6.7.1  Storage-class specifiers'
  18863.  
  18864.      Add `__thread' to the list of storage class specifiers in
  18865.      paragraph 1.
  18866.  
  18867.      Change paragraph 2 to
  18868.  
  18869.           With the exception of `__thread', at most one storage-class
  18870.           specifier may be given [...].  The `__thread' specifier may
  18871.           be used alone, or immediately following `extern' or `static'.
  18872.  
  18873.      Add new text after paragraph 6
  18874.  
  18875.           The declaration of an identifier for a variable that has
  18876.           block scope that specifies `__thread' shall also specify
  18877.           either `extern' or `static'.
  18878.  
  18879.           The `__thread' specifier shall be used only with variables.
  18880.  
  18881. 
  18882. File: gcc,  Node: C++98 Thread-Local Edits,  Prev: C99 Thread-Local Edits,  Up: Thread-Local
  18883.  
  18884. 5.48.2 ISO/IEC 14882:1998 Edits for Thread-Local Storage
  18885. --------------------------------------------------------
  18886.  
  18887. The following are a set of changes to ISO/IEC 14882:1998 (aka C++98)
  18888. that document the exact semantics of the language extension.
  18889.  
  18890.    * [intro.execution]
  18891.  
  18892.      New text after paragraph 4
  18893.  
  18894.           A "thread" is a flow of control within the abstract machine.
  18895.           It is implementation defined whether or not there may be more
  18896.           than one thread.
  18897.  
  18898.      New text after paragraph 7
  18899.  
  18900.           It is unspecified whether additional action must be taken to
  18901.           ensure when and whether side effects are visible to other
  18902.           threads.
  18903.  
  18904.    * [lex.key]
  18905.  
  18906.      Add `__thread'.
  18907.  
  18908.    * [basic.start.main]
  18909.  
  18910.      Add after paragraph 5
  18911.  
  18912.           The thread that begins execution at the `main' function is
  18913.           called the "main thread".  It is implementation defined how
  18914.           functions beginning threads other than the main thread are
  18915.           designated or typed.  A function so designated, as well as
  18916.           the `main' function, is called a "thread startup function".
  18917.           It is implementation defined what happens if a thread startup
  18918.           function returns.  It is implementation defined what happens
  18919.           to other threads when any thread calls `exit'.
  18920.  
  18921.    * [basic.start.init]
  18922.  
  18923.      Add after paragraph 4
  18924.  
  18925.           The storage for an object of thread storage duration shall be
  18926.           statically initialized before the first statement of the
  18927.           thread startup function.  An object of thread storage
  18928.           duration shall not require dynamic initialization.
  18929.  
  18930.    * [basic.start.term]
  18931.  
  18932.      Add after paragraph 3
  18933.  
  18934.           The type of an object with thread storage duration shall not
  18935.           have a non-trivial destructor, nor shall it be an array type
  18936.           whose elements (directly or indirectly) have non-trivial
  18937.           destructors.
  18938.  
  18939.    * [basic.stc]
  18940.  
  18941.      Add "thread storage duration" to the list in paragraph 1.
  18942.  
  18943.      Change paragraph 2
  18944.  
  18945.           Thread, static, and automatic storage durations are
  18946.           associated with objects introduced by declarations [...].
  18947.  
  18948.      Add `__thread' to the list of specifiers in paragraph 3.
  18949.  
  18950.    * [basic.stc.thread]
  18951.  
  18952.      New section before [basic.stc.static]
  18953.  
  18954.           The keyword `__thread' applied to a non-local object gives the
  18955.           object thread storage duration.
  18956.  
  18957.           A local variable or class data member declared both `static'
  18958.           and `__thread' gives the variable or member thread storage
  18959.           duration.
  18960.  
  18961.    * [basic.stc.static]
  18962.  
  18963.      Change paragraph 1
  18964.  
  18965.           All objects which have neither thread storage duration,
  18966.           dynamic storage duration nor are local [...].
  18967.  
  18968.    * [dcl.stc]
  18969.  
  18970.      Add `__thread' to the list in paragraph 1.
  18971.  
  18972.      Change paragraph 1
  18973.  
  18974.           With the exception of `__thread', at most one
  18975.           STORAGE-CLASS-SPECIFIER shall appear in a given
  18976.           DECL-SPECIFIER-SEQ.  The `__thread' specifier may be used
  18977.           alone, or immediately following the `extern' or `static'
  18978.           specifiers.  [...]
  18979.  
  18980.      Add after paragraph 5
  18981.  
  18982.           The `__thread' specifier can be applied only to the names of
  18983.           objects and to anonymous unions.
  18984.  
  18985.    * [class.mem]
  18986.  
  18987.      Add after paragraph 6
  18988.  
  18989.           Non-`static' members shall not be `__thread'.
  18990.  
  18991. 
  18992. File: gcc,  Node: C++ Extensions,  Next: Objective-C,  Prev: C Extensions,  Up: Top
  18993.  
  18994. 6 Extensions to the C++ Language
  18995. ********************************
  18996.  
  18997. The GNU compiler provides these extensions to the C++ language (and you
  18998. can also use most of the C language extensions in your C++ programs).
  18999. If you want to write code that checks whether these features are
  19000. available, you can test for the GNU compiler the same way as for C
  19001. programs: check for a predefined macro `__GNUC__'.  You can also use
  19002. `__GNUG__' to test specifically for GNU C++ (*note Predefined Macros:
  19003. (cpp)Common Predefined Macros.).
  19004.  
  19005. * Menu:
  19006.  
  19007. * Min and Max::        C++ Minimum and maximum operators.
  19008. * Volatiles::        What constitutes an access to a volatile object.
  19009. * Restricted Pointers:: C99 restricted pointers and references.
  19010. * Vague Linkage::       Where G++ puts inlines, vtables and such.
  19011. * C++ Interface::       You can use a single C++ header file for both
  19012.                         declarations and definitions.
  19013. * Template Instantiation:: Methods for ensuring that exactly one copy of
  19014.                         each needed template instantiation is emitted.
  19015. * Bound member functions:: You can extract a function pointer to the
  19016.                         method denoted by a `->*' or `.*' expression.
  19017. * C++ Attributes::      Variable, function, and type attributes for C++ only.
  19018. * Strong Using::      Strong using-directives for namespace composition.
  19019. * Offsetof::            Special syntax for implementing `offsetof'.
  19020. * Java Exceptions::     Tweaking exception handling to work with Java.
  19021. * Deprecated Features:: Things will disappear from g++.
  19022. * Backwards Compatibility:: Compatibilities with earlier definitions of C++.
  19023.  
  19024. 
  19025. File: gcc,  Node: Min and Max,  Next: Volatiles,  Up: C++ Extensions
  19026.  
  19027. 6.1 Minimum and Maximum Operators in C++
  19028. ========================================
  19029.  
  19030. It is very convenient to have operators which return the "minimum" or
  19031. the "maximum" of two arguments.  In GNU C++ (but not in GNU C),
  19032.  
  19033. `A <? B'
  19034.      is the "minimum", returning the smaller of the numeric values A
  19035.      and B;
  19036.  
  19037. `A >? B'
  19038.      is the "maximum", returning the larger of the numeric values A and
  19039.      B.
  19040.  
  19041.  These operations are not primitive in ordinary C++, since you can use
  19042. a macro to return the minimum of two things in C++, as in the following
  19043. example.
  19044.  
  19045.      #define MIN(X,Y) ((X) < (Y) ? : (X) : (Y))
  19046.  
  19047. You might then use `int min = MIN (i, j);' to set MIN to the minimum
  19048. value of variables I and J.
  19049.  
  19050.  However, side effects in `X' or `Y' may cause unintended behavior.
  19051. For example, `MIN (i++, j++)' will fail, incrementing the smaller
  19052. counter twice.  The GNU C `typeof' extension allows you to write safe
  19053. macros that avoid this kind of problem (*note Typeof::).  However,
  19054. writing `MIN' and `MAX' as macros also forces you to use function-call
  19055. notation for a fundamental arithmetic operation.  Using GNU C++
  19056. extensions, you can write `int min = i <? j;' instead.
  19057.  
  19058.  Since `<?' and `>?' are built into the compiler, they properly handle
  19059. expressions with side-effects;  `int min = i++ <? j++;' works correctly.
  19060.  
  19061. 
  19062. File: gcc,  Node: Volatiles,  Next: Restricted Pointers,  Prev: Min and Max,  Up: C++ Extensions
  19063.  
  19064. 6.2 When is a Volatile Object Accessed?
  19065. =======================================
  19066.  
  19067. Both the C and C++ standard have the concept of volatile objects.  These
  19068. are normally accessed by pointers and used for accessing hardware.  The
  19069. standards encourage compilers to refrain from optimizations concerning
  19070. accesses to volatile objects that it might perform on non-volatile
  19071. objects.  The C standard leaves it implementation defined as to what
  19072. constitutes a volatile access.  The C++ standard omits to specify this,
  19073. except to say that C++ should behave in a similar manner to C with
  19074. respect to volatiles, where possible.  The minimum either standard
  19075. specifies is that at a sequence point all previous accesses to volatile
  19076. objects have stabilized and no subsequent accesses have occurred.  Thus
  19077. an implementation is free to reorder and combine volatile accesses
  19078. which occur between sequence points, but cannot do so for accesses
  19079. across a sequence point.  The use of volatiles does not allow you to
  19080. violate the restriction on updating objects multiple times within a
  19081. sequence point.
  19082.  
  19083.  In most expressions, it is intuitively obvious what is a read and what
  19084. is a write.  For instance
  19085.  
  19086.      volatile int *dst = SOMEVALUE;
  19087.      volatile int *src = SOMEOTHERVALUE;
  19088.      *dst = *src;
  19089.  
  19090. will cause a read of the volatile object pointed to by SRC and stores
  19091. the value into the volatile object pointed to by DST.  There is no
  19092. guarantee that these reads and writes are atomic, especially for objects
  19093. larger than `int'.
  19094.  
  19095.  Less obvious expressions are where something which looks like an access
  19096. is used in a void context.  An example would be,
  19097.  
  19098.      volatile int *src = SOMEVALUE;
  19099.      *src;
  19100.  
  19101.  With C, such expressions are rvalues, and as rvalues cause a read of
  19102. the object, GCC interprets this as a read of the volatile being pointed
  19103. to.  The C++ standard specifies that such expressions do not undergo
  19104. lvalue to rvalue conversion, and that the type of the dereferenced
  19105. object may be incomplete.  The C++ standard does not specify explicitly
  19106. that it is this lvalue to rvalue conversion which is responsible for
  19107. causing an access.  However, there is reason to believe that it is,
  19108. because otherwise certain simple expressions become undefined.  However,
  19109. because it would surprise most programmers, G++ treats dereferencing a
  19110. pointer to volatile object of complete type in a void context as a read
  19111. of the object.  When the object has incomplete type, G++ issues a
  19112. warning.
  19113.  
  19114.      struct S;
  19115.      struct T {int m;};
  19116.      volatile S *ptr1 = SOMEVALUE;
  19117.      volatile T *ptr2 = SOMEVALUE;
  19118.      *ptr1;
  19119.      *ptr2;
  19120.  
  19121.  In this example, a warning is issued for `*ptr1', and `*ptr2' causes a
  19122. read of the object pointed to.  If you wish to force an error on the
  19123. first case, you must force a conversion to rvalue with, for instance a
  19124. static cast, `static_cast<S>(*ptr1)'.
  19125.  
  19126.  When using a reference to volatile, G++ does not treat equivalent
  19127. expressions as accesses to volatiles, but instead issues a warning that
  19128. no volatile is accessed.  The rationale for this is that otherwise it
  19129. becomes difficult to determine where volatile access occur, and not
  19130. possible to ignore the return value from functions returning volatile
  19131. references.  Again, if you wish to force a read, cast the reference to
  19132. an rvalue.
  19133.  
  19134. 
  19135. File: gcc,  Node: Restricted Pointers,  Next: Vague Linkage,  Prev: Volatiles,  Up: C++ Extensions
  19136.  
  19137. 6.3 Restricting Pointer Aliasing
  19138. ================================
  19139.  
  19140. As with the C front end, G++ understands the C99 feature of restricted
  19141. pointers, specified with the `__restrict__', or `__restrict' type
  19142. qualifier.  Because you cannot compile C++ by specifying the `-std=c99'
  19143. language flag, `restrict' is not a keyword in C++.
  19144.  
  19145.  In addition to allowing restricted pointers, you can specify restricted
  19146. references, which indicate that the reference is not aliased in the
  19147. local context.
  19148.  
  19149.      void fn (int *__restrict__ rptr, int &__restrict__ rref)
  19150.      {
  19151.        /* ... */
  19152.      }
  19153.  
  19154. In the body of `fn', RPTR points to an unaliased integer and RREF
  19155. refers to a (different) unaliased integer.
  19156.  
  19157.  You may also specify whether a member function's THIS pointer is
  19158. unaliased by using `__restrict__' as a member function qualifier.
  19159.  
  19160.      void T::fn () __restrict__
  19161.      {
  19162.        /* ... */
  19163.      }
  19164.  
  19165. Within the body of `T::fn', THIS will have the effective definition `T
  19166. *__restrict__ const this'.  Notice that the interpretation of a
  19167. `__restrict__' member function qualifier is different to that of
  19168. `const' or `volatile' qualifier, in that it is applied to the pointer
  19169. rather than the object.  This is consistent with other compilers which
  19170. implement restricted pointers.
  19171.  
  19172.  As with all outermost parameter qualifiers, `__restrict__' is ignored
  19173. in function definition matching.  This means you only need to specify
  19174. `__restrict__' in a function definition, rather than in a function
  19175. prototype as well.
  19176.  
  19177. 
  19178. File: gcc,  Node: Vague Linkage,  Next: C++ Interface,  Prev: Restricted Pointers,  Up: C++ Extensions
  19179.  
  19180. 6.4 Vague Linkage
  19181. =================
  19182.  
  19183. There are several constructs in C++ which require space in the object
  19184. file but are not clearly tied to a single translation unit.  We say that
  19185. these constructs have "vague linkage".  Typically such constructs are
  19186. emitted wherever they are needed, though sometimes we can be more
  19187. clever.
  19188.  
  19189. Inline Functions
  19190.      Inline functions are typically defined in a header file which can
  19191.      be included in many different compilations.  Hopefully they can
  19192.      usually be inlined, but sometimes an out-of-line copy is
  19193.      necessary, if the address of the function is taken or if inlining
  19194.      fails.  In general, we emit an out-of-line copy in all translation
  19195.      units where one is needed.  As an exception, we only emit inline
  19196.      virtual functions with the vtable, since it will always require a
  19197.      copy.
  19198.  
  19199.      Local static variables and string constants used in an inline
  19200.      function are also considered to have vague linkage, since they
  19201.      must be shared between all inlined and out-of-line instances of
  19202.      the function.
  19203.  
  19204. VTables
  19205.      C++ virtual functions are implemented in most compilers using a
  19206.      lookup table, known as a vtable.  The vtable contains pointers to
  19207.      the virtual functions provided by a class, and each object of the
  19208.      class contains a pointer to its vtable (or vtables, in some
  19209.      multiple-inheritance situations).  If the class declares any
  19210.      non-inline, non-pure virtual functions, the first one is chosen as
  19211.      the "key method" for the class, and the vtable is only emitted in
  19212.      the translation unit where the key method is defined.
  19213.  
  19214.      _Note:_ If the chosen key method is later defined as inline, the
  19215.      vtable will still be emitted in every translation unit which
  19216.      defines it.  Make sure that any inline virtuals are declared
  19217.      inline in the class body, even if they are not defined there.
  19218.  
  19219. type_info objects
  19220.      C++ requires information about types to be written out in order to
  19221.      implement `dynamic_cast', `typeid' and exception handling.  For
  19222.      polymorphic classes (classes with virtual functions), the type_info
  19223.      object is written out along with the vtable so that `dynamic_cast'
  19224.      can determine the dynamic type of a class object at runtime.  For
  19225.      all other types, we write out the type_info object when it is
  19226.      used: when applying `typeid' to an expression, throwing an object,
  19227.      or referring to a type in a catch clause or exception
  19228.      specification.
  19229.  
  19230. Template Instantiations
  19231.      Most everything in this section also applies to template
  19232.      instantiations, but there are other options as well.  *Note
  19233.      Where's the Template?: Template Instantiation.
  19234.  
  19235.  
  19236.  When used with GNU ld version 2.8 or later on an ELF system such as
  19237. GNU/Linux or Solaris 2, or on Microsoft Windows, duplicate copies of
  19238. these constructs will be discarded at link time.  This is known as
  19239. COMDAT support.
  19240.  
  19241.  On targets that don't support COMDAT, but do support weak symbols, GCC
  19242. will use them.  This way one copy will override all the others, but the
  19243. unused copies will still take up space in the executable.
  19244.  
  19245.  For targets which do not support either COMDAT or weak symbols, most
  19246. entities with vague linkage will be emitted as local symbols to avoid
  19247. duplicate definition errors from the linker.  This will not happen for
  19248. local statics in inlines, however, as having multiple copies will
  19249. almost certainly break things.
  19250.  
  19251.  *Note Declarations and Definitions in One Header: C++ Interface, for
  19252. another way to control placement of these constructs.
  19253.  
  19254. 
  19255. File: gcc,  Node: C++ Interface,  Next: Template Instantiation,  Prev: Vague Linkage,  Up: C++ Extensions
  19256.  
  19257. 6.5 Declarations and Definitions in One Header
  19258. ==============================================
  19259.  
  19260. C++ object definitions can be quite complex.  In principle, your source
  19261. code will need two kinds of things for each object that you use across
  19262. more than one source file.  First, you need an "interface"
  19263. specification, describing its structure with type declarations and
  19264. function prototypes.  Second, you need the "implementation" itself.  It
  19265. can be tedious to maintain a separate interface description in a header
  19266. file, in parallel to the actual implementation.  It is also dangerous,
  19267. since separate interface and implementation definitions may not remain
  19268. parallel.
  19269.  
  19270.  With GNU C++, you can use a single header file for both purposes.
  19271.  
  19272.      _Warning:_ The mechanism to specify this is in transition.  For the
  19273.      nonce, you must use one of two `#pragma' commands; in a future
  19274.      release of GNU C++, an alternative mechanism will make these
  19275.      `#pragma' commands unnecessary.
  19276.  
  19277.  The header file contains the full definitions, but is marked with
  19278. `#pragma interface' in the source code.  This allows the compiler to
  19279. use the header file only as an interface specification when ordinary
  19280. source files incorporate it with `#include'.  In the single source file
  19281. where the full implementation belongs, you can use either a naming
  19282. convention or `#pragma implementation' to indicate this alternate use
  19283. of the header file.
  19284.  
  19285. `#pragma interface'
  19286. `#pragma interface "SUBDIR/OBJECTS.h"'
  19287.      Use this directive in _header files_ that define object classes,
  19288.      to save space in most of the object files that use those classes.
  19289.      Normally, local copies of certain information (backup copies of
  19290.      inline member functions, debugging information, and the internal
  19291.      tables that implement virtual functions) must be kept in each
  19292.      object file that includes class definitions.  You can use this
  19293.      pragma to avoid such duplication.  When a header file containing
  19294.      `#pragma interface' is included in a compilation, this auxiliary
  19295.      information will not be generated (unless the main input source
  19296.      file itself uses `#pragma implementation').  Instead, the object
  19297.      files will contain references to be resolved at link time.
  19298.  
  19299.      The second form of this directive is useful for the case where you
  19300.      have multiple headers with the same name in different directories.
  19301.      If you use this form, you must specify the same string to `#pragma
  19302.      implementation'.
  19303.  
  19304. `#pragma implementation'
  19305. `#pragma implementation "OBJECTS.h"'
  19306.      Use this pragma in a _main input file_, when you want full output
  19307.      from included header files to be generated (and made globally
  19308.      visible).  The included header file, in turn, should use `#pragma
  19309.      interface'.  Backup copies of inline member functions, debugging
  19310.      information, and the internal tables used to implement virtual
  19311.      functions are all generated in implementation files.
  19312.  
  19313.      If you use `#pragma implementation' with no argument, it applies to
  19314.      an include file with the same basename(1) as your source file.
  19315.      For example, in `allclass.cc', giving just `#pragma implementation'
  19316.      by itself is equivalent to `#pragma implementation "allclass.h"'.
  19317.  
  19318.      In versions of GNU C++ prior to 2.6.0 `allclass.h' was treated as
  19319.      an implementation file whenever you would include it from
  19320.      `allclass.cc' even if you never specified `#pragma
  19321.      implementation'.  This was deemed to be more trouble than it was
  19322.      worth, however, and disabled.
  19323.  
  19324.      If you use an explicit `#pragma implementation', it must appear in
  19325.      your source file _before_ you include the affected header files.
  19326.  
  19327.      Use the string argument if you want a single implementation file to
  19328.      include code from multiple header files.  (You must also use
  19329.      `#include' to include the header file; `#pragma implementation'
  19330.      only specifies how to use the file--it doesn't actually include
  19331.      it.)
  19332.  
  19333.      There is no way to split up the contents of a single header file
  19334.      into multiple implementation files.
  19335.  
  19336.  `#pragma implementation' and `#pragma interface' also have an effect
  19337. on function inlining.
  19338.  
  19339.  If you define a class in a header file marked with `#pragma
  19340. interface', the effect on a function defined in that class is similar to
  19341. an explicit `extern' declaration--the compiler emits no code at all to
  19342. define an independent version of the function.  Its definition is used
  19343. only for inlining with its callers.
  19344.  
  19345.  Conversely, when you include the same header file in a main source file
  19346. that declares it as `#pragma implementation', the compiler emits code
  19347. for the function itself; this defines a version of the function that
  19348. can be found via pointers (or by callers compiled without inlining).
  19349. If all calls to the function can be inlined, you can avoid emitting the
  19350. function by compiling with `-fno-implement-inlines'.  If any calls were
  19351. not inlined, you will get linker errors.
  19352.  
  19353.  ---------- Footnotes ----------
  19354.  
  19355.  (1) A file's "basename" was the name stripped of all leading path
  19356. information and of trailing suffixes, such as `.h' or `.C' or `.cc'.
  19357.  
  19358. 
  19359. File: gcc,  Node: Template Instantiation,  Next: Bound member functions,  Prev: C++ Interface,  Up: C++ Extensions
  19360.  
  19361. 6.6 Where's the Template?
  19362. =========================
  19363.  
  19364. C++ templates are the first language feature to require more
  19365. intelligence from the environment than one usually finds on a UNIX
  19366. system.  Somehow the compiler and linker have to make sure that each
  19367. template instance occurs exactly once in the executable if it is needed,
  19368. and not at all otherwise.  There are two basic approaches to this
  19369. problem, which I will refer to as the Borland model and the Cfront
  19370. model.
  19371.  
  19372. Borland model
  19373.      Borland C++ solved the template instantiation problem by adding
  19374.      the code equivalent of common blocks to their linker; the compiler
  19375.      emits template instances in each translation unit that uses them,
  19376.      and the linker collapses them together.  The advantage of this
  19377.      model is that the linker only has to consider the object files
  19378.      themselves; there is no external complexity to worry about.  This
  19379.      disadvantage is that compilation time is increased because the
  19380.      template code is being compiled repeatedly.  Code written for this
  19381.      model tends to include definitions of all templates in the header
  19382.      file, since they must be seen to be instantiated.
  19383.  
  19384. Cfront model
  19385.      The AT&T C++ translator, Cfront, solved the template instantiation
  19386.      problem by creating the notion of a template repository, an
  19387.      automatically maintained place where template instances are
  19388.      stored.  A more modern version of the repository works as follows:
  19389.      As individual object files are built, the compiler places any
  19390.      template definitions and instantiations encountered in the
  19391.      repository.  At link time, the link wrapper adds in the objects in
  19392.      the repository and compiles any needed instances that were not
  19393.      previously emitted.  The advantages of this model are more optimal
  19394.      compilation speed and the ability to use the system linker; to
  19395.      implement the Borland model a compiler vendor also needs to
  19396.      replace the linker.  The disadvantages are vastly increased
  19397.      complexity, and thus potential for error; for some code this can be
  19398.      just as transparent, but in practice it can been very difficult to
  19399.      build multiple programs in one directory and one program in
  19400.      multiple directories.  Code written for this model tends to
  19401.      separate definitions of non-inline member templates into a
  19402.      separate file, which should be compiled separately.
  19403.  
  19404.  When used with GNU ld version 2.8 or later on an ELF system such as
  19405. GNU/Linux or Solaris 2, or on Microsoft Windows, G++ supports the
  19406. Borland model.  On other systems, G++ implements neither automatic
  19407. model.
  19408.  
  19409.  A future version of G++ will support a hybrid model whereby the
  19410. compiler will emit any instantiations for which the template definition
  19411. is included in the compile, and store template definitions and
  19412. instantiation context information into the object file for the rest.
  19413. The link wrapper will extract that information as necessary and invoke
  19414. the compiler to produce the remaining instantiations.  The linker will
  19415. then combine duplicate instantiations.
  19416.  
  19417.  In the mean time, you have the following options for dealing with
  19418. template instantiations:
  19419.  
  19420.   1. Compile your template-using code with `-frepo'.  The compiler will
  19421.      generate files with the extension `.rpo' listing all of the
  19422.      template instantiations used in the corresponding object files
  19423.      which could be instantiated there; the link wrapper, `collect2',
  19424.      will then update the `.rpo' files to tell the compiler where to
  19425.      place those instantiations and rebuild any affected object files.
  19426.      The link-time overhead is negligible after the first pass, as the
  19427.      compiler will continue to place the instantiations in the same
  19428.      files.
  19429.  
  19430.      This is your best option for application code written for the
  19431.      Borland model, as it will just work.  Code written for the Cfront
  19432.      model will need to be modified so that the template definitions
  19433.      are available at one or more points of instantiation; usually this
  19434.      is as simple as adding `#include <tmethods.cc>' to the end of each
  19435.      template header.
  19436.  
  19437.      For library code, if you want the library to provide all of the
  19438.      template instantiations it needs, just try to link all of its
  19439.      object files together; the link will fail, but cause the
  19440.      instantiations to be generated as a side effect.  Be warned,
  19441.      however, that this may cause conflicts if multiple libraries try
  19442.      to provide the same instantiations.  For greater control, use
  19443.      explicit instantiation as described in the next option.
  19444.  
  19445.   2. Compile your code with `-fno-implicit-templates' to disable the
  19446.      implicit generation of template instances, and explicitly
  19447.      instantiate all the ones you use.  This approach requires more
  19448.      knowledge of exactly which instances you need than do the others,
  19449.      but it's less mysterious and allows greater control.  You can
  19450.      scatter the explicit instantiations throughout your program,
  19451.      perhaps putting them in the translation units where the instances
  19452.      are used or the translation units that define the templates
  19453.      themselves; you can put all of the explicit instantiations you
  19454.      need into one big file; or you can create small files like
  19455.  
  19456.           #include "Foo.h"
  19457.           #include "Foo.cc"
  19458.  
  19459.           template class Foo<int>;
  19460.           template ostream& operator <<
  19461.                           (ostream&, const Foo<int>&);
  19462.  
  19463.      for each of the instances you need, and create a template
  19464.      instantiation library from those.
  19465.  
  19466.      If you are using Cfront-model code, you can probably get away with
  19467.      not using `-fno-implicit-templates' when compiling files that don't
  19468.      `#include' the member template definitions.
  19469.  
  19470.      If you use one big file to do the instantiations, you may want to
  19471.      compile it without `-fno-implicit-templates' so you get all of the
  19472.      instances required by your explicit instantiations (but not by any
  19473.      other files) without having to specify them as well.
  19474.  
  19475.      G++ has extended the template instantiation syntax given in the ISO
  19476.      standard to allow forward declaration of explicit instantiations
  19477.      (with `extern'), instantiation of the compiler support data for a
  19478.      template class (i.e. the vtable) without instantiating any of its
  19479.      members (with `inline'), and instantiation of only the static data
  19480.      members of a template class, without the support data or member
  19481.      functions (with (`static'):
  19482.  
  19483.           extern template int max (int, int);
  19484.           inline template class Foo<int>;
  19485.           static template class Foo<int>;
  19486.  
  19487.   3. Do nothing.  Pretend G++ does implement automatic instantiation
  19488.      management.  Code written for the Borland model will work fine, but
  19489.      each translation unit will contain instances of each of the
  19490.      templates it uses.  In a large program, this can lead to an
  19491.      unacceptable amount of code duplication.
  19492.  
  19493.      *Note Declarations and Definitions in One Header: C++ Interface,
  19494.      for more discussion of these pragmas.
  19495.  
  19496. 
  19497. File: gcc,  Node: Bound member functions,  Next: C++ Attributes,  Prev: Template Instantiation,  Up: C++ Extensions
  19498.  
  19499. 6.7 Extracting the function pointer from a bound pointer to member function
  19500. ===========================================================================
  19501.  
  19502. In C++, pointer to member functions (PMFs) are implemented using a wide
  19503. pointer of sorts to handle all the possible call mechanisms; the PMF
  19504. needs to store information about how to adjust the `this' pointer, and
  19505. if the function pointed to is virtual, where to find the vtable, and
  19506. where in the vtable to look for the member function.  If you are using
  19507. PMFs in an inner loop, you should really reconsider that decision.  If
  19508. that is not an option, you can extract the pointer to the function that
  19509. would be called for a given object/PMF pair and call it directly inside
  19510. the inner loop, to save a bit of time.
  19511.  
  19512.  Note that you will still be paying the penalty for the call through a
  19513. function pointer; on most modern architectures, such a call defeats the
  19514. branch prediction features of the CPU.  This is also true of normal
  19515. virtual function calls.
  19516.  
  19517.  The syntax for this extension is
  19518.  
  19519.      extern A a;
  19520.      extern int (A::*fp)();
  19521.      typedef int (*fptr)(A *);
  19522.  
  19523.      fptr p = (fptr)(a.*fp);
  19524.  
  19525.  For PMF constants (i.e. expressions of the form `&Klasse::Member'), no
  19526. object is needed to obtain the address of the function.  They can be
  19527. converted to function pointers directly:
  19528.  
  19529.      fptr p1 = (fptr)(&A::foo);
  19530.  
  19531.  You must specify `-Wno-pmf-conversions' to use this extension.
  19532.  
  19533. 
  19534. File: gcc,  Node: C++ Attributes,  Next: Strong Using,  Prev: Bound member functions,  Up: C++ Extensions
  19535.  
  19536. 6.8 C++-Specific Variable, Function, and Type Attributes
  19537. ========================================================
  19538.  
  19539. Some attributes only make sense for C++ programs.
  19540.  
  19541. `init_priority (PRIORITY)'
  19542.      In Standard C++, objects defined at namespace scope are guaranteed
  19543.      to be initialized in an order in strict accordance with that of
  19544.      their definitions _in a given translation unit_.  No guarantee is
  19545.      made for initializations across translation units.  However, GNU
  19546.      C++ allows users to control the order of initialization of objects
  19547.      defined at namespace scope with the `init_priority' attribute by
  19548.      specifying a relative PRIORITY, a constant integral expression
  19549.      currently bounded between 101 and 65535 inclusive.  Lower numbers
  19550.      indicate a higher priority.
  19551.  
  19552.      In the following example, `A' would normally be created before
  19553.      `B', but the `init_priority' attribute has reversed that order:
  19554.  
  19555.           Some_Class  A  __attribute__ ((init_priority (2000)));
  19556.           Some_Class  B  __attribute__ ((init_priority (543)));
  19557.  
  19558.      Note that the particular values of PRIORITY do not matter; only
  19559.      their relative ordering.
  19560.  
  19561. `java_interface'
  19562.      This type attribute informs C++ that the class is a Java
  19563.      interface.  It may only be applied to classes declared within an
  19564.      `extern "Java"' block.  Calls to methods declared in this
  19565.      interface will be dispatched using GCJ's interface table
  19566.      mechanism, instead of regular virtual table dispatch.
  19567.  
  19568.  
  19569.  See also *Note Strong Using::.
  19570.  
  19571. 
  19572. File: gcc,  Node: Strong Using,  Next: Offsetof,  Prev: C++ Attributes,  Up: C++ Extensions
  19573.  
  19574. 6.9 Strong Using
  19575. ================
  19576.  
  19577. *Caution:* The semantics of this extension are not fully defined.
  19578. Users should refrain from using this extension as its semantics may
  19579. change subtly over time.  It is possible that this extension wil be
  19580. removed in future versions of G++.
  19581.  
  19582.  A using-directive with `__attribute ((strong))' is stronger than a
  19583. normal using-directive in two ways:
  19584.  
  19585.    * Templates from the used namespace can be specialized as though
  19586.      they were members of the using namespace.
  19587.  
  19588.    * The using namespace is considered an associated namespace of all
  19589.      templates in the used namespace for purposes of argument-dependent
  19590.      name lookup.
  19591.  
  19592.  This is useful for composing a namespace transparently from
  19593. implementation namespaces.  For example:
  19594.  
  19595.      namespace std {
  19596.        namespace debug {
  19597.          template <class T> struct A { };
  19598.        }
  19599.        using namespace debug __attribute ((__strong__));
  19600.        template <> struct A<int> { };   // ok to specialize
  19601.  
  19602.        template <class T> void f (A<T>);
  19603.      }
  19604.  
  19605.      int main()
  19606.      {
  19607.        f (std::A<float>());             // lookup finds std::f
  19608.        f (std::A<int>());
  19609.      }
  19610.  
  19611. 
  19612. File: gcc,  Node: Offsetof,  Next: Java Exceptions,  Prev: Strong Using,  Up: C++ Extensions
  19613.  
  19614. 6.10 Offsetof
  19615. =============
  19616.  
  19617. G++ uses a syntactic extension to implement the `offsetof' macro.
  19618.  
  19619.  In particular:
  19620.  
  19621.        __offsetof__ (expression)
  19622.  
  19623.  is equivalent to the parenthesized expression, except that the
  19624. expression is considered an integral constant expression even if it
  19625. contains certain operators that are not normally permitted in an
  19626. integral constant expression.  Users should never use `__offsetof__'
  19627. directly; the only valid use of `__offsetof__' is to implement the
  19628. `offsetof' macro in `<stddef.h>'.
  19629.  
  19630. 
  19631. File: gcc,  Node: Java Exceptions,  Next: Deprecated Features,  Prev: Offsetof,  Up: C++ Extensions
  19632.  
  19633. 6.11 Java Exceptions
  19634. ====================
  19635.  
  19636. The Java language uses a slightly different exception handling model
  19637. from C++.  Normally, GNU C++ will automatically detect when you are
  19638. writing C++ code that uses Java exceptions, and handle them
  19639. appropriately.  However, if C++ code only needs to execute destructors
  19640. when Java exceptions are thrown through it, GCC will guess incorrectly.
  19641. Sample problematic code is:
  19642.  
  19643.        struct S { ~S(); };
  19644.        extern void bar();    // is written in Java, and may throw exceptions
  19645.        void foo()
  19646.        {
  19647.          S s;
  19648.          bar();
  19649.        }
  19650.  
  19651. The usual effect of an incorrect guess is a link failure, complaining of
  19652. a missing routine called `__gxx_personality_v0'.
  19653.  
  19654.  You can inform the compiler that Java exceptions are to be used in a
  19655. translation unit, irrespective of what it might think, by writing
  19656. `#pragma GCC java_exceptions' at the head of the file.  This `#pragma'
  19657. must appear before any functions that throw or catch exceptions, or run
  19658. destructors when exceptions are thrown through them.
  19659.  
  19660.  You cannot mix Java and C++ exceptions in the same translation unit.
  19661. It is believed to be safe to throw a C++ exception from one file through
  19662. another file compiled for the Java exception model, or vice versa, but
  19663. there may be bugs in this area.
  19664.  
  19665. 
  19666. File: gcc,  Node: Deprecated Features,  Next: Backwards Compatibility,  Prev: Java Exceptions,  Up: C++ Extensions
  19667.  
  19668. 6.12 Deprecated Features
  19669. ========================
  19670.  
  19671. In the past, the GNU C++ compiler was extended to experiment with new
  19672. features, at a time when the C++ language was still evolving.  Now that
  19673. the C++ standard is complete, some of those features are superseded by
  19674. superior alternatives.  Using the old features might cause a warning in
  19675. some cases that the feature will be dropped in the future.  In other
  19676. cases, the feature might be gone already.
  19677.  
  19678.  While the list below is not exhaustive, it documents some of the
  19679. options that are now deprecated:
  19680.  
  19681. `-fexternal-templates'
  19682. `-falt-external-templates'
  19683.      These are two of the many ways for G++ to implement template
  19684.      instantiation.  *Note Template Instantiation::.  The C++ standard
  19685.      clearly defines how template definitions have to be organized
  19686.      across implementation units.  G++ has an implicit instantiation
  19687.      mechanism that should work just fine for standard-conforming code.
  19688.  
  19689. `-fstrict-prototype'
  19690. `-fno-strict-prototype'
  19691.      Previously it was possible to use an empty prototype parameter
  19692.      list to indicate an unspecified number of parameters (like C),
  19693.      rather than no parameters, as C++ demands.  This feature has been
  19694.      removed, except where it is required for backwards compatibility
  19695.      *Note Backwards Compatibility::.
  19696.  
  19697.  The named return value extension has been deprecated, and is now
  19698. removed from G++.
  19699.  
  19700.  The use of initializer lists with new expressions has been deprecated,
  19701. and is now removed from G++.
  19702.  
  19703.  Floating and complex non-type template parameters have been deprecated,
  19704. and are now removed from G++.
  19705.  
  19706.  The implicit typename extension has been deprecated and is now removed
  19707. from G++.
  19708.  
  19709.  The use of default arguments in function pointers, function typedefs
  19710. and and other places where they are not permitted by the standard is
  19711. deprecated and will be removed from a future version of G++.
  19712.  
  19713. 
  19714. File: gcc,  Node: Backwards Compatibility,  Prev: Deprecated Features,  Up: C++ Extensions
  19715.  
  19716. 6.13 Backwards Compatibility
  19717. ============================
  19718.  
  19719. Now that there is a definitive ISO standard C++, G++ has a specification
  19720. to adhere to.  The C++ language evolved over time, and features that
  19721. used to be acceptable in previous drafts of the standard, such as the
  19722. ARM [Annotated C++ Reference Manual], are no longer accepted.  In order
  19723. to allow compilation of C++ written to such drafts, G++ contains some
  19724. backwards compatibilities.  _All such backwards compatibility features
  19725. are liable to disappear in future versions of G++._ They should be
  19726. considered deprecated *Note Deprecated Features::.
  19727.  
  19728. `For scope'
  19729.      If a variable is declared at for scope, it used to remain in scope
  19730.      until the end of the scope which contained the for statement
  19731.      (rather than just within the for scope).  G++ retains this, but
  19732.      issues a warning, if such a variable is accessed outside the for
  19733.      scope.
  19734.  
  19735. `Implicit C language'
  19736.      Old C system header files did not contain an `extern "C" {...}'
  19737.      scope to set the language.  On such systems, all header files are
  19738.      implicitly scoped inside a C language scope.  Also, an empty
  19739.      prototype `()' will be treated as an unspecified number of
  19740.      arguments, rather than no arguments, as C++ demands.
  19741.  
  19742. 
  19743. File: gcc,  Node: Objective-C,  Next: Compatibility,  Prev: C++ Extensions,  Up: Top
  19744.  
  19745. 7 GNU Objective-C runtime features
  19746. **********************************
  19747.  
  19748. This document is meant to describe some of the GNU Objective-C runtime
  19749. features.  It is not intended to teach you Objective-C, there are
  19750. several resources on the Internet that present the language.  Questions
  19751. and comments about this document to Ovidiu Predescu <ovidiu@cup.hp.com>.
  19752.  
  19753. * Menu:
  19754.  
  19755. * Executing code before main::
  19756. * Type encoding::
  19757. * Garbage Collection::
  19758. * Constant string objects::
  19759. * compatibility_alias::
  19760.  
  19761. 
  19762. File: gcc,  Node: Executing code before main,  Next: Type encoding,  Prev: Objective-C,  Up: Objective-C
  19763.  
  19764. 7.1 `+load': Executing code before main
  19765. =======================================
  19766.  
  19767. The GNU Objective-C runtime provides a way that allows you to execute
  19768. code before the execution of the program enters the `main' function.
  19769. The code is executed on a per-class and a per-category basis, through a
  19770. special class method `+load'.
  19771.  
  19772.  This facility is very useful if you want to initialize global variables
  19773. which can be accessed by the program directly, without sending a message
  19774. to the class first.  The usual way to initialize global variables, in
  19775. the `+initialize' method, might not be useful because `+initialize' is
  19776. only called when the first message is sent to a class object, which in
  19777. some cases could be too late.
  19778.  
  19779.  Suppose for example you have a `FileStream' class that declares
  19780. `Stdin', `Stdout' and `Stderr' as global variables, like below:
  19781.  
  19782.  
  19783.      FileStream *Stdin = nil;
  19784.      FileStream *Stdout = nil;
  19785.      FileStream *Stderr = nil;
  19786.  
  19787.      @implementation FileStream
  19788.  
  19789.      + (void)initialize
  19790.      {
  19791.          Stdin = [[FileStream new] initWithFd:0];
  19792.          Stdout = [[FileStream new] initWithFd:1];
  19793.          Stderr = [[FileStream new] initWithFd:2];
  19794.      }
  19795.  
  19796.      /* Other methods here */
  19797.      @end
  19798.  
  19799.  In this example, the initialization of `Stdin', `Stdout' and `Stderr'
  19800. in `+initialize' occurs too late.  The programmer can send a message to
  19801. one of these objects before the variables are actually initialized,
  19802. thus sending messages to the `nil' object.  The `+initialize' method
  19803. which actually initializes the global variables is not invoked until
  19804. the first message is sent to the class object.  The solution would
  19805. require these variables to be initialized just before entering `main'.
  19806.  
  19807.  The correct solution of the above problem is to use the `+load' method
  19808. instead of `+initialize':
  19809.  
  19810.  
  19811.      @implementation FileStream
  19812.  
  19813.      + (void)load
  19814.      {
  19815.          Stdin = [[FileStream new] initWithFd:0];
  19816.          Stdout = [[FileStream new] initWithFd:1];
  19817.          Stderr = [[FileStream new] initWithFd:2];
  19818.      }
  19819.  
  19820.      /* Other methods here */
  19821.      @end
  19822.  
  19823.  The `+load' is a method that is not overridden by categories.  If a
  19824. class and a category of it both implement `+load', both methods are
  19825. invoked.  This allows some additional initializations to be performed in
  19826. a category.
  19827.  
  19828.  This mechanism is not intended to be a replacement for `+initialize'.
  19829. You should be aware of its limitations when you decide to use it
  19830. instead of `+initialize'.
  19831.  
  19832. * Menu:
  19833.  
  19834. * What you can and what you cannot do in +load::
  19835.  
  19836. 
  19837. File: gcc,  Node: What you can and what you cannot do in +load,  Prev: Executing code before main,  Up: Executing code before main
  19838.  
  19839. 7.1.1 What you can and what you cannot do in `+load'
  19840. ----------------------------------------------------
  19841.  
  19842. The `+load' implementation in the GNU runtime guarantees you the
  19843. following things:
  19844.  
  19845.    * you can write whatever C code you like;
  19846.  
  19847.    * you can send messages to Objective-C constant strings (`@"this is a
  19848.      constant string"');
  19849.  
  19850.    * you can allocate and send messages to objects whose class is
  19851.      implemented in the same file;
  19852.  
  19853.    * the `+load' implementation of all super classes of a class are
  19854.      executed before the `+load' of that class is executed;
  19855.  
  19856.    * the `+load' implementation of a class is executed before the
  19857.      `+load' implementation of any category.
  19858.  
  19859.  
  19860.  In particular, the following things, even if they can work in a
  19861. particular case, are not guaranteed:
  19862.  
  19863.    * allocation of or sending messages to arbitrary objects;
  19864.  
  19865.    * allocation of or sending messages to objects whose classes have a
  19866.      category implemented in the same file;
  19867.  
  19868.  
  19869.  You should make no assumptions about receiving `+load' in sibling
  19870. classes when you write `+load' of a class.  The order in which sibling
  19871. classes receive `+load' is not guaranteed.
  19872.  
  19873.  The order in which `+load' and `+initialize' are called could be
  19874. problematic if this matters.  If you don't allocate objects inside
  19875. `+load', it is guaranteed that `+load' is called before `+initialize'.
  19876. If you create an object inside `+load' the `+initialize' method of
  19877. object's class is invoked even if `+load' was not invoked.  Note if you
  19878. explicitly call `+load' on a class, `+initialize' will be called first.
  19879. To avoid possible problems try to implement only one of these methods.
  19880.  
  19881.  The `+load' method is also invoked when a bundle is dynamically loaded
  19882. into your running program.  This happens automatically without any
  19883. intervening operation from you.  When you write bundles and you need to
  19884. write `+load' you can safely create and send messages to objects whose
  19885. classes already exist in the running program.  The same restrictions as
  19886. above apply to classes defined in bundle.
  19887.  
  19888. 
  19889. File: gcc,  Node: Type encoding,  Next: Garbage Collection,  Prev: Executing code before main,  Up: Objective-C
  19890.  
  19891. 7.2 Type encoding
  19892. =================
  19893.  
  19894. The Objective-C compiler generates type encodings for all the types.
  19895. These type encodings are used at runtime to find out information about
  19896. selectors and methods and about objects and classes.
  19897.  
  19898.  The types are encoded in the following way:
  19899.  
  19900. `char'             `c'
  19901. `unsigned char'    `C'
  19902. `short'            `s'
  19903. `unsigned short'   `S'
  19904. `int'              `i'
  19905. `unsigned int'     `I'
  19906. `long'             `l'
  19907. `unsigned long'    `L'
  19908. `long long'        `q'
  19909. `unsigned long     `Q'
  19910. long'              
  19911. `float'            `f'
  19912. `double'           `d'
  19913. `void'             `v'
  19914. `id'               `@'
  19915. `Class'            `#'
  19916. `SEL'              `:'
  19917. `char*'            `*'
  19918. unknown type       `?'
  19919. bit-fields         `b' followed by the starting position of the
  19920.                    bit-field, the type of the bit-field and the size of
  19921.                    the bit-field (the bit-fields encoding was changed
  19922.                    from the NeXT's compiler encoding, see below)
  19923.  
  19924.  The encoding of bit-fields has changed to allow bit-fields to be
  19925. properly handled by the runtime functions that compute sizes and
  19926. alignments of types that contain bit-fields.  The previous encoding
  19927. contained only the size of the bit-field.  Using only this information
  19928. it is not possible to reliably compute the size occupied by the
  19929. bit-field.  This is very important in the presence of the Boehm's
  19930. garbage collector because the objects are allocated using the typed
  19931. memory facility available in this collector.  The typed memory
  19932. allocation requires information about where the pointers are located
  19933. inside the object.
  19934.  
  19935.  The position in the bit-field is the position, counting in bits, of the
  19936. bit closest to the beginning of the structure.
  19937.  
  19938.  The non-atomic types are encoded as follows:
  19939.  
  19940. pointers       `^' followed by the pointed type.
  19941. arrays         `[' followed by the number of elements in the array
  19942.                followed by the type of the elements followed by `]'
  19943. structures     `{' followed by the name of the structure (or `?' if the
  19944.                structure is unnamed), the `=' sign, the type of the
  19945.                members and by `}'
  19946. unions         `(' followed by the name of the structure (or `?' if the
  19947.                union is unnamed), the `=' sign, the type of the members
  19948.                followed by `)'
  19949.  
  19950.  Here are some types and their encodings, as they are generated by the
  19951. compiler on an i386 machine:
  19952.  
  19953.  
  19954. Objective-C type   Compiler encoding
  19955.      int a[10];    `[10i]'
  19956.      struct {      `{?=i[3f]b128i3b131i2c}'
  19957.        int i;      
  19958.        float f[3]; 
  19959.        int a:3;    
  19960.        int b:2;    
  19961.        char c;     
  19962.      }             
  19963.  
  19964.  
  19965.  In addition to the types the compiler also encodes the type
  19966. specifiers.  The table below describes the encoding of the current
  19967. Objective-C type specifiers:
  19968.  
  19969.  
  19970. Specifier          Encoding
  19971. `const'            `r'
  19972. `in'               `n'
  19973. `inout'            `N'
  19974. `out'              `o'
  19975. `bycopy'           `O'
  19976. `oneway'           `V'
  19977.  
  19978.  
  19979.  The type specifiers are encoded just before the type.  Unlike types
  19980. however, the type specifiers are only encoded when they appear in method
  19981. argument types.
  19982.  
  19983. 
  19984. File: gcc,  Node: Garbage Collection,  Next: Constant string objects,  Prev: Type encoding,  Up: Objective-C
  19985.  
  19986. 7.3 Garbage Collection
  19987. ======================
  19988.  
  19989. Support for a new memory management policy has been added by using a
  19990. powerful conservative garbage collector, known as the
  19991. Boehm-Demers-Weiser conservative garbage collector.  It is available
  19992. from `http://www.hpl.hp.com/personal/Hans_Boehm/gc/'.
  19993.  
  19994.  To enable the support for it you have to configure the compiler using
  19995. an additional argument, `--enable-objc-gc'.  You need to have garbage
  19996. collector installed before building the compiler.  This will build an
  19997. additional runtime library which has several enhancements to support
  19998. the garbage collector.  The new library has a new name, `libobjc_gc.a'
  19999. to not conflict with the non-garbage-collected library.
  20000.  
  20001.  When the garbage collector is used, the objects are allocated using the
  20002. so-called typed memory allocation mechanism available in the
  20003. Boehm-Demers-Weiser collector.  This mode requires precise information
  20004. on where pointers are located inside objects.  This information is
  20005. computed once per class, immediately after the class has been
  20006. initialized.
  20007.  
  20008.  There is a new runtime function `class_ivar_set_gcinvisible()' which
  20009. can be used to declare a so-called "weak pointer" reference.  Such a
  20010. pointer is basically hidden for the garbage collector; this can be
  20011. useful in certain situations, especially when you want to keep track of
  20012. the allocated objects, yet allow them to be collected.  This kind of
  20013. pointers can only be members of objects, you cannot declare a global
  20014. pointer as a weak reference.  Every type which is a pointer type can be
  20015. declared a weak pointer, including `id', `Class' and `SEL'.
  20016.  
  20017.  Here is an example of how to use this feature.  Suppose you want to
  20018. implement a class whose instances hold a weak pointer reference; the
  20019. following class does this:
  20020.  
  20021.  
  20022.      @interface WeakPointer : Object
  20023.      {
  20024.          const void* weakPointer;
  20025.      }
  20026.  
  20027.      - initWithPointer:(const void*)p;
  20028.      - (const void*)weakPointer;
  20029.      @end
  20030.  
  20031.  
  20032.      @implementation WeakPointer
  20033.  
  20034.      + (void)initialize
  20035.      {
  20036.        class_ivar_set_gcinvisible (self, "weakPointer", YES);
  20037.      }
  20038.  
  20039.      - initWithPointer:(const void*)p
  20040.      {
  20041.        weakPointer = p;
  20042.        return self;
  20043.      }
  20044.  
  20045.      - (const void*)weakPointer
  20046.      {
  20047.        return weakPointer;
  20048.      }
  20049.  
  20050.      @end
  20051.  
  20052.  Weak pointers are supported through a new type character specifier
  20053. represented by the `!' character.  The `class_ivar_set_gcinvisible()'
  20054. function adds or removes this specifier to the string type description
  20055. of the instance variable named as argument.
  20056.  
  20057. 
  20058. File: gcc,  Node: Constant string objects,  Next: compatibility_alias,  Prev: Garbage Collection,  Up: Objective-C
  20059.  
  20060. 7.4 Constant string objects
  20061. ===========================
  20062.  
  20063. GNU Objective-C provides constant string objects that are generated
  20064. directly by the compiler.  You declare a constant string object by
  20065. prefixing a C constant string with the character `@':
  20066.  
  20067.        id myString = @"this is a constant string object";
  20068.  
  20069.  The constant string objects are by default instances of the
  20070. `NXConstantString' class which is provided by the GNU Objective-C
  20071. runtime.  To get the definition of this class you must include the
  20072. `objc/NXConstStr.h' header file.
  20073.  
  20074.  User defined libraries may want to implement their own constant string
  20075. class.  To be able to support them, the GNU Objective-C compiler
  20076. provides a new command line options
  20077. `-fconstant-string-class=CLASS-NAME'.  The provided class should adhere
  20078. to a strict structure, the same as `NXConstantString''s structure:
  20079.  
  20080.  
  20081.      @interface MyConstantStringClass
  20082.      {
  20083.        Class isa;
  20084.        char *c_string;
  20085.        unsigned int len;
  20086.      }
  20087.      @end
  20088.  
  20089.  `NXConstantString' inherits from `Object'; user class libraries may
  20090. choose to inherit the customized constant string class from a different
  20091. class than `Object'.  There is no requirement in the methods the
  20092. constant string class has to implement, but the final ivar layout of
  20093. the class must be the compatible with the given structure.
  20094.  
  20095.  When the compiler creates the statically allocated constant string
  20096. object, the `c_string' field will be filled by the compiler with the
  20097. string; the `length' field will be filled by the compiler with the
  20098. string length; the `isa' pointer will be filled with `NULL' by the
  20099. compiler, and it will later be fixed up automatically at runtime by the
  20100. GNU Objective-C runtime library to point to the class which was set by
  20101. the `-fconstant-string-class' option when the object file is loaded (if
  20102. you wonder how it works behind the scenes, the name of the class to
  20103. use, and the list of static objects to fixup, are stored by the
  20104. compiler in the object file in a place where the GNU runtime library
  20105. will find them at runtime).
  20106.  
  20107.  As a result, when a file is compiled with the
  20108. `-fconstant-string-class' option, all the constant string objects will
  20109. be instances of the class specified as argument to this option.  It is
  20110. possible to have multiple compilation units referring to different
  20111. constant string classes, neither the compiler nor the linker impose any
  20112. restrictions in doing this.
  20113.  
  20114. 
  20115. File: gcc,  Node: compatibility_alias,  Prev: Constant string objects,  Up: Objective-C
  20116.  
  20117. 7.5 compatibility_alias
  20118. =======================
  20119.  
  20120. This is a feature of the Objective-C compiler rather than of the
  20121. runtime, anyway since it is documented nowhere and its existence was
  20122. forgotten, we are documenting it here.
  20123.  
  20124.  The keyword `@compatibility_alias' allows you to define a class name
  20125. as equivalent to another class name.  For example:
  20126.  
  20127.      @compatibility_alias WOApplication GSWApplication;
  20128.  
  20129.  tells the compiler that each time it encounters `WOApplication' as a
  20130. class name, it should replace it with `GSWApplication' (that is,
  20131. `WOApplication' is just an alias for `GSWApplication').
  20132.  
  20133.  There are some constraints on how this can be used--
  20134.  
  20135.    * `WOApplication' (the alias) must not be an existing class;
  20136.  
  20137.    * `GSWApplication' (the real class) must be an existing class.
  20138.  
  20139.  
  20140. 
  20141. File: gcc,  Node: Compatibility,  Next: Gcov,  Prev: Objective-C,  Up: Top
  20142.  
  20143. 8 Binary Compatibility
  20144. **********************
  20145.  
  20146. Binary compatibility encompasses several related concepts:
  20147.  
  20148. "application binary interface (ABI)"
  20149.      The set of runtime conventions followed by all of the tools that
  20150.      deal with binary representations of a program, including
  20151.      compilers, assemblers, linkers, and language runtime support.
  20152.      Some ABIs are formal with a written specification, possibly
  20153.      designed by multiple interested parties.  Others are simply the
  20154.      way things are actually done by a particular set of tools.
  20155.  
  20156. "ABI conformance"
  20157.      A compiler conforms to an ABI if it generates code that follows
  20158.      all of the specifications enumerated by that ABI.  A library
  20159.      conforms to an ABI if it is implemented according to that ABI.  An
  20160.      application conforms to an ABI if it is built using tools that
  20161.      conform to that ABI and does not contain source code that
  20162.      specifically changes behavior specified by the ABI.
  20163.  
  20164. "calling conventions"
  20165.      Calling conventions are a subset of an ABI that specify of how
  20166.      arguments are passed and function results are returned.
  20167.  
  20168. "interoperability"
  20169.      Different sets of tools are interoperable if they generate files
  20170.      that can be used in the same program.  The set of tools includes
  20171.      compilers, assemblers, linkers, libraries, header files, startup
  20172.      files, and debuggers.  Binaries produced by different sets of
  20173.      tools are not interoperable unless they implement the same ABI.
  20174.      This applies to different versions of the same tools as well as
  20175.      tools from different vendors.
  20176.  
  20177. "intercallability"
  20178.      Whether a function in a binary built by one set of tools can call a
  20179.      function in a binary built by a different set of tools is a subset
  20180.      of interoperability.
  20181.  
  20182. "implementation-defined features"
  20183.      Language standards include lists of implementation-defined
  20184.      features whose behavior can vary from one implementation to
  20185.      another.  Some of these features are normally covered by a
  20186.      platform's ABI and others are not.  The features that are not
  20187.      covered by an ABI generally affect how a program behaves, but not
  20188.      intercallability.
  20189.  
  20190. "compatibility"
  20191.      Conformance to the same ABI and the same behavior of
  20192.      implementation-defined features are both relevant for
  20193.      compatibility.
  20194.  
  20195.  The application binary interface implemented by a C or C++ compiler
  20196. affects code generation and runtime support for:
  20197.  
  20198.    * size and alignment of data types
  20199.  
  20200.    * layout of structured types
  20201.  
  20202.    * calling conventions
  20203.  
  20204.    * register usage conventions
  20205.  
  20206.    * interfaces for runtime arithmetic support
  20207.  
  20208.    * object file formats
  20209.  
  20210.  In addition, the application binary interface implemented by a C++
  20211. compiler affects code generation and runtime support for:
  20212.    * name mangling
  20213.  
  20214.    * exception handling
  20215.  
  20216.    * invoking constructors and destructors
  20217.  
  20218.    * layout, alignment, and padding of classes
  20219.  
  20220.    * layout and alignment of virtual tables
  20221.  
  20222.  Some GCC compilation options cause the compiler to generate code that
  20223. does not conform to the platform's default ABI.  Other options cause
  20224. different program behavior for implementation-defined features that are
  20225. not covered by an ABI.  These options are provided for consistency with
  20226. other compilers that do not follow the platform's default ABI or the
  20227. usual behavior of implementation-defined features for the platform.  Be
  20228. very careful about using such options.
  20229.  
  20230.  Most platforms have a well-defined ABI that covers C code, but ABIs
  20231. that cover C++ functionality are not yet common.
  20232.  
  20233.  Starting with GCC 3.2, GCC binary conventions for C++ are based on a
  20234. written, vendor-neutral C++ ABI that was designed to be specific to
  20235. 64-bit Itanium but also includes generic specifications that apply to
  20236. any platform.  This C++ ABI is also implemented by other compiler
  20237. vendors on some platforms, notably GNU/Linux and BSD systems.  We have
  20238. tried hard to provide a stable ABI that will be compatible with future
  20239. GCC releases, but it is possible that we will encounter problems that
  20240. make this difficult.  Such problems could include different
  20241. interpretations of the C++ ABI by different vendors, bugs in the ABI, or
  20242. bugs in the implementation of the ABI in different compilers.  GCC's
  20243. `-Wabi' switch warns when G++ generates code that is probably not
  20244. compatible with the C++ ABI.
  20245.  
  20246.  The C++ library used with a C++ compiler includes the Standard C++
  20247. Library, with functionality defined in the C++ Standard, plus language
  20248. runtime support.  The runtime support is included in a C++ ABI, but
  20249. there is no formal ABI for the Standard C++ Library.  Two
  20250. implementations of that library are interoperable if one follows the
  20251. de-facto ABI of the other and if they are both built with the same
  20252. compiler, or with compilers that conform to the same ABI for C++
  20253. compiler and runtime support.
  20254.  
  20255.  When G++ and another C++ compiler conform to the same C++ ABI, but the
  20256. implementations of the Standard C++ Library that they normally use do
  20257. not follow the same ABI for the Standard C++ Library, object files
  20258. built with those compilers can be used in the same program only if they
  20259. use the same C++ library.  This requires specifying the location of the
  20260. C++ library header files when invoking the compiler whose usual library
  20261. is not being used.  The location of GCC's C++ header files depends on
  20262. how the GCC build was configured, but can be seen by using the G++ `-v'
  20263. option.  With default configuration options for G++ 3.3 the compile
  20264. line for a different C++ compiler needs to include
  20265.  
  20266.          -IGCC_INSTALL_DIRECTORY/include/c++/3.3
  20267.  
  20268.  Similarly, compiling code with G++ that must use a C++ library other
  20269. than the GNU C++ library requires specifying the location of the header
  20270. files for that other library.
  20271.  
  20272.  The most straightforward way to link a program to use a particular C++
  20273. library is to use a C++ driver that specifies that C++ library by
  20274. default.  The `g++' driver, for example, tells the linker where to find
  20275. GCC's C++ library (`libstdc++') plus the other libraries and startup
  20276. files it needs, in the proper order.
  20277.  
  20278.  If a program must use a different C++ library and it's not possible to
  20279. do the final link using a C++ driver that uses that library by default,
  20280. it is necessary to tell `g++' the location and name of that library.
  20281. It might also be necessary to specify different startup files and other
  20282. runtime support libraries, and to suppress the use of GCC's support
  20283. libraries with one or more of the options `-nostdlib', `-nostartfiles',
  20284. and `-nodefaultlibs'.
  20285.  
  20286. 
  20287. File: gcc,  Node: Gcov,  Next: Trouble,  Prev: Compatibility,  Up: Top
  20288.  
  20289. 9 `gcov'--a Test Coverage Program
  20290. *********************************
  20291.  
  20292. `gcov' is a tool you can use in conjunction with GCC to test code
  20293. coverage in your programs.
  20294.  
  20295. * Menu:
  20296.  
  20297. * Gcov Intro::                     Introduction to gcov.
  20298. * Invoking Gcov::           How to use gcov.
  20299. * Gcov and Optimization::       Using gcov with GCC optimization.
  20300. * Gcov Data Files::             The files used by gcov.
  20301.  
  20302. 
  20303. File: gcc,  Node: Gcov Intro,  Next: Invoking Gcov,  Up: Gcov
  20304.  
  20305. 9.1 Introduction to `gcov'
  20306. ==========================
  20307.  
  20308. `gcov' is a test coverage program.  Use it in concert with GCC to
  20309. analyze your programs to help create more efficient, faster running
  20310. code and to discover untested parts of your program.  You can use
  20311. `gcov' as a profiling tool to help discover where your optimization
  20312. efforts will best affect your code.  You can also use `gcov' along with
  20313. the other profiling tool, `gprof', to assess which parts of your code
  20314. use the greatest amount of computing time.
  20315.  
  20316.  Profiling tools help you analyze your code's performance.  Using a
  20317. profiler such as `gcov' or `gprof', you can find out some basic
  20318. performance statistics, such as:
  20319.  
  20320.    * how often each line of code executes
  20321.  
  20322.    * what lines of code are actually executed
  20323.  
  20324.    * how much computing time each section of code uses
  20325.  
  20326.  Once you know these things about how your code works when compiled, you
  20327. can look at each module to see which modules should be optimized.
  20328. `gcov' helps you determine where to work on optimization.
  20329.  
  20330.  Software developers also use coverage testing in concert with
  20331. testsuites, to make sure software is actually good enough for a release.
  20332. Testsuites can verify that a program works as expected; a coverage
  20333. program tests to see how much of the program is exercised by the
  20334. testsuite.  Developers can then determine what kinds of test cases need
  20335. to be added to the testsuites to create both better testing and a better
  20336. final product.
  20337.  
  20338.  You should compile your code without optimization if you plan to use
  20339. `gcov' because the optimization, by combining some lines of code into
  20340. one function, may not give you as much information as you need to look
  20341. for `hot spots' where the code is using a great deal of computer time.
  20342. Likewise, because `gcov' accumulates statistics by line (at the lowest
  20343. resolution), it works best with a programming style that places only
  20344. one statement on each line.  If you use complicated macros that expand
  20345. to loops or to other control structures, the statistics are less
  20346. helpful--they only report on the line where the macro call appears.  If
  20347. your complex macros behave like functions, you can replace them with
  20348. inline functions to solve this problem.
  20349.  
  20350.  `gcov' creates a logfile called `SOURCEFILE.gcov' which indicates how
  20351. many times each line of a source file `SOURCEFILE.c' has executed.  You
  20352. can use these logfiles along with `gprof' to aid in fine-tuning the
  20353. performance of your programs.  `gprof' gives timing information you can
  20354. use along with the information you get from `gcov'.
  20355.  
  20356.  `gcov' works only on code compiled with GCC.  It is not compatible
  20357. with any other profiling or test coverage mechanism.
  20358.  
  20359. 
  20360. File: gcc,  Node: Invoking Gcov,  Next: Gcov and Optimization,  Prev: Gcov Intro,  Up: Gcov
  20361.  
  20362. 9.2 Invoking gcov
  20363. =================
  20364.  
  20365.      gcov [OPTIONS] SOURCEFILE
  20366.  
  20367.  `gcov' accepts the following options:
  20368.  
  20369. `-h'
  20370. `--help'
  20371.      Display help about using `gcov' (on the standard output), and exit
  20372.      without doing any further processing.
  20373.  
  20374. `-v'
  20375. `--version'
  20376.      Display the `gcov' version number (on the standard output), and
  20377.      exit without doing any further processing.
  20378.  
  20379. `-a'
  20380. `--all-blocks'
  20381.      Write individual execution counts for every basic block. Normally
  20382.      gcov outputs execution counts only for the main blocks of a line.
  20383.      With this option you can determine if blocks within a single line
  20384.      are not being executed.
  20385.  
  20386. `-b'
  20387. `--branch-probabilities'
  20388.      Write branch frequencies to the output file, and write branch
  20389.      summary info to the standard output.  This option allows you to
  20390.      see how often each branch in your program was taken. Unconditional
  20391.      branches will not be shown, unless the `-u' option is given.
  20392.  
  20393. `-c'
  20394. `--branch-counts'
  20395.      Write branch frequencies as the number of branches taken, rather
  20396.      than the percentage of branches taken.
  20397.  
  20398. `-n'
  20399. `--no-output'
  20400.      Do not create the `gcov' output file.
  20401.  
  20402. `-l'
  20403. `--long-file-names'
  20404.      Create long file names for included source files.  For example, if
  20405.      the header file `x.h' contains code, and was included in the file
  20406.      `a.c', then running `gcov' on the file `a.c' will produce an
  20407.      output file called `a.c##x.h.gcov' instead of `x.h.gcov'.  This
  20408.      can be useful if `x.h' is included in multiple source files. If
  20409.      you uses the `-p' option, both the including and included file
  20410.      names will be complete path names.
  20411.  
  20412. `-p'
  20413. `--preserve-paths'
  20414.      Preserve complete path information in the names of generated
  20415.      `.gcov' files. Without this option, just the filename component is
  20416.      used. With this option, all directories are used, with '/'
  20417.      characters translated to '#' characters, '.' directory components
  20418.      removed and '..'  components renamed to '^'. This is useful if
  20419.      sourcefiles are in several different directories. It also affects
  20420.      the `-l' option.
  20421.  
  20422. `-f'
  20423. `--function-summaries'
  20424.      Output summaries for each function in addition to the file level
  20425.      summary.
  20426.  
  20427. `-o DIRECTORY|FILE'
  20428. `--object-directory DIRECTORY'
  20429. `--object-file FILE'
  20430.      Specify either the directory containing the gcov data files, or the
  20431.      object path name. The `.gcno', and `.gcda' data files are searched
  20432.      for using this option. If a directory is specified, the data files
  20433.      are in that directory and named after the source file name,
  20434.      without its extension. If a file is specified here, the data files
  20435.      are named after that file, without its extension. If this option
  20436.      is not supplied, it defaults to the current directory.
  20437.  
  20438. `-u'
  20439. `--unconditional-branches'
  20440.      When branch counts are given, include those of unconditional
  20441.      branches.  Unconditional branches are normally not interesting.
  20442.  
  20443.  
  20444.  `gcov' should be run with the current directory the same as that when
  20445. you invoked the compiler. Otherwise it will not be able to locate the
  20446. source files. `gcov' produces files called `MANGLEDNAME.gcov' in the
  20447. current directory. These contain the coverage information of the source
  20448. file they correspond to.  One `.gcov' file is produced for each source
  20449. file containing code, which was compiled to produce the data files. The
  20450. MANGLEDNAME part of the output file name is usually simply the source
  20451. file name, but can be something more complicated if the `-l' or `-p'
  20452. options are given. Refer to those options for details.
  20453.  
  20454.  The `.gcov' files contain the ':' separated fields along with program
  20455. source code. The format is
  20456.  
  20457.      EXECUTION_COUNT:LINE_NUMBER:SOURCE LINE TEXT
  20458.  
  20459.  Additional block information may succeed each line, when requested by
  20460. command line option. The EXECUTION_COUNT is `-' for lines containing no
  20461. code and `#####' for lines which were never executed. Some lines of
  20462. information at the start have LINE_NUMBER of zero.
  20463.  
  20464.  When printing percentages, 0% and 100% are only printed when the values
  20465. are _exactly_ 0% and 100% respectively. Other values which would
  20466. conventionally be rounded to 0% or 100% are instead printed as the
  20467. nearest non-boundary value.
  20468.  
  20469.  When using `gcov', you must first compile your program with two
  20470. special GCC options: `-fprofile-arcs -ftest-coverage'.  This tells the
  20471. compiler to generate additional information needed by gcov (basically a
  20472. flow graph of the program) and also includes additional code in the
  20473. object files for generating the extra profiling information needed by
  20474. gcov.  These additional files are placed in the directory where the
  20475. object file is located.
  20476.  
  20477.  Running the program will cause profile output to be generated.  For
  20478. each source file compiled with `-fprofile-arcs', an accompanying
  20479. `.gcda' file will be placed in the object file directory.
  20480.  
  20481.  Running `gcov' with your program's source file names as arguments will
  20482. now produce a listing of the code along with frequency of execution for
  20483. each line.  For example, if your program is called `tmp.c', this is
  20484. what you see when you use the basic `gcov' facility:
  20485.  
  20486.      $ gcc -fprofile-arcs -ftest-coverage tmp.c
  20487.      $ a.out
  20488.      $ gcov tmp.c
  20489.      90.00% of 10 source lines executed in file tmp.c
  20490.      Creating tmp.c.gcov.
  20491.  
  20492.  The file `tmp.c.gcov' contains output from `gcov'.  Here is a sample:
  20493.  
  20494.              -:    0:Source:tmp.c
  20495.              -:    0:Graph:tmp.gcno
  20496.              -:    0:Data:tmp.gcda
  20497.              -:    0:Runs:1
  20498.              -:    0:Programs:1
  20499.              -:    1:#include <stdio.h>
  20500.              -:    2:
  20501.              -:    3:int main (void)
  20502.      function main called 1 returned 1 blocks executed 75%
  20503.              1:    4:{
  20504.              1:    5:  int i, total;
  20505.              -:    6:
  20506.              1:    7:  total = 0;
  20507.              -:    8:
  20508.             11:    9:  for (i = 0; i < 10; i++)
  20509.             10:   10:    total += i;
  20510.              -:   11:
  20511.              1:   12:  if (total != 45)
  20512.          #####:   13:    printf ("Failure\n");
  20513.              -:   14:  else
  20514.              1:   15:    printf ("Success\n");
  20515.              1:   16:  return 0;
  20516.              -:   17:}
  20517.  
  20518.  When you use the `-a' option, you will get individual block counts,
  20519. and the output looks like this:
  20520.  
  20521.              -:    0:Source:tmp.c
  20522.              -:    0:Graph:tmp.gcno
  20523.              -:    0:Data:tmp.gcda
  20524.              -:    0:Runs:1
  20525.              -:    0:Programs:1
  20526.              -:    1:#include <stdio.h>
  20527.              -:    2:
  20528.              -:    3:int main (void)
  20529.      function main called 1 returned 1 blocks executed 75%
  20530.              1:    4:{
  20531.              1:    4-block  0
  20532.              1:    5:  int i, total;
  20533.              -:    6:
  20534.              1:    7:  total = 0;
  20535.              -:    8:
  20536.             11:    9:  for (i = 0; i < 10; i++)
  20537.             11:    9-block  0
  20538.             10:   10:    total += i;
  20539.             10:   10-block  0
  20540.              -:   11:
  20541.              1:   12:  if (total != 45)
  20542.              1:   12-block  0
  20543.          #####:   13:    printf ("Failure\n");
  20544.          $$$$$:   13-block  0
  20545.              -:   14:  else
  20546.              1:   15:    printf ("Success\n");
  20547.              1:   15-block  0
  20548.              1:   16:  return 0;
  20549.              1:   16-block  0
  20550.              -:   17:}
  20551.  
  20552.  In this mode, each basic block is only shown on one line - the last
  20553. line of the block. A multi-line block will only contribute to the
  20554. execution count of that last line, and other lines will not be shown to
  20555. contain code, unless previous blocks end on those lines.  The total
  20556. execution count of a line is shown and subsequent lines show the
  20557. execution counts for individual blocks that end on that line. After each
  20558. block, the branch and call counts of the block will be shown, if the
  20559. `-b' option is given.
  20560.  
  20561.  Because of the way GCC instruments calls, a call count can be shown
  20562. after a line with no individual blocks.  As you can see, line 13
  20563. contains a basic block that was not executed.
  20564.  
  20565.  When you use the `-b' option, your output looks like this:
  20566.  
  20567.      $ gcov -b tmp.c
  20568.      90.00% of 10 source lines executed in file tmp.c
  20569.      80.00% of 5 branches executed in file tmp.c
  20570.      80.00% of 5 branches taken at least once in file tmp.c
  20571.      50.00% of 2 calls executed in file tmp.c
  20572.      Creating tmp.c.gcov.
  20573.  
  20574.  Here is a sample of a resulting `tmp.c.gcov' file:
  20575.  
  20576.              -:    0:Source:tmp.c
  20577.              -:    0:Graph:tmp.gcno
  20578.              -:    0:Data:tmp.gcda
  20579.              -:    0:Runs:1
  20580.              -:    0:Programs:1
  20581.              -:    1:#include <stdio.h>
  20582.              -:    2:
  20583.              -:    3:int main (void)
  20584.      function main called 1 returned 1 blocks executed 75%
  20585.              1:    4:{
  20586.              1:    5:  int i, total;
  20587.              -:    6:
  20588.              1:    7:  total = 0;
  20589.              -:    8:
  20590.             11:    9:  for (i = 0; i < 10; i++)
  20591.      branch  0 taken 91% (fallthrough)
  20592.      branch  1 taken 9%
  20593.             10:   10:    total += i;
  20594.              -:   11:
  20595.              1:   12:  if (total != 45)
  20596.      branch  0 taken 0% (fallthrough)
  20597.      branch  1 taken 100%
  20598.          #####:   13:    printf ("Failure\n");
  20599.      call    0 never executed
  20600.              -:   14:  else
  20601.              1:   15:    printf ("Success\n");
  20602.      call    0 called 1 returned 100%
  20603.              1:   16:  return 0;
  20604.              -:   17:}
  20605.  
  20606.  For each basic block, a line is printed after the last line of the
  20607. basic block describing the branch or call that ends the basic block.
  20608. There can be multiple branches and calls listed for a single source
  20609. line if there are multiple basic blocks that end on that line.  In this
  20610. case, the branches and calls are each given a number.  There is no
  20611. simple way to map these branches and calls back to source constructs.
  20612. In general, though, the lowest numbered branch or call will correspond
  20613. to the leftmost construct on the source line.
  20614.  
  20615.  For a branch, if it was executed at least once, then a percentage
  20616. indicating the number of times the branch was taken divided by the
  20617. number of times the branch was executed will be printed.  Otherwise, the
  20618. message "never executed" is printed.
  20619.  
  20620.  For a call, if it was executed at least once, then a percentage
  20621. indicating the number of times the call returned divided by the number
  20622. of times the call was executed will be printed.  This will usually be
  20623. 100%, but may be less for functions call `exit' or `longjmp', and thus
  20624. may not return every time they are called.
  20625.  
  20626.  The execution counts are cumulative.  If the example program were
  20627. executed again without removing the `.gcda' file, the count for the
  20628. number of times each line in the source was executed would be added to
  20629. the results of the previous run(s).  This is potentially useful in
  20630. several ways.  For example, it could be used to accumulate data over a
  20631. number of program runs as part of a test verification suite, or to
  20632. provide more accurate long-term information over a large number of
  20633. program runs.
  20634.  
  20635.  The data in the `.gcda' files is saved immediately before the program
  20636. exits.  For each source file compiled with `-fprofile-arcs', the
  20637. profiling code first attempts to read in an existing `.gcda' file; if
  20638. the file doesn't match the executable (differing number of basic block
  20639. counts) it will ignore the contents of the file.  It then adds in the
  20640. new execution counts and finally writes the data to the file.
  20641.  
  20642. 
  20643. File: gcc,  Node: Gcov and Optimization,  Next: Gcov Data Files,  Prev: Invoking Gcov,  Up: Gcov
  20644.  
  20645. 9.3 Using `gcov' with GCC Optimization
  20646. ======================================
  20647.  
  20648. If you plan to use `gcov' to help optimize your code, you must first
  20649. compile your program with two special GCC options: `-fprofile-arcs
  20650. -ftest-coverage'.  Aside from that, you can use any other GCC options;
  20651. but if you want to prove that every single line in your program was
  20652. executed, you should not compile with optimization at the same time.
  20653. On some machines the optimizer can eliminate some simple code lines by
  20654. combining them with other lines.  For example, code like this:
  20655.  
  20656.      if (a != b)
  20657.        c = 1;
  20658.      else
  20659.        c = 0;
  20660.  
  20661. can be compiled into one instruction on some machines.  In this case,
  20662. there is no way for `gcov' to calculate separate execution counts for
  20663. each line because there isn't separate code for each line.  Hence the
  20664. `gcov' output looks like this if you compiled the program with
  20665. optimization:
  20666.  
  20667.            100:   12:if (a != b)
  20668.            100:   13:  c = 1;
  20669.            100:   14:else
  20670.            100:   15:  c = 0;
  20671.  
  20672.  The output shows that this block of code, combined by optimization,
  20673. executed 100 times.  In one sense this result is correct, because there
  20674. was only one instruction representing all four of these lines.  However,
  20675. the output does not indicate how many times the result was 0 and how
  20676. many times the result was 1.
  20677.  
  20678.  Inlineable functions can create unexpected line counts.  Line counts
  20679. are shown for the source code of the inlineable function, but what is
  20680. shown depends on where the function is inlined, or if it is not inlined
  20681. at all.
  20682.  
  20683.  If the function is not inlined, the compiler must emit an out of line
  20684. copy of the function, in any object file that needs it.  If `fileA.o'
  20685. and `fileB.o' both contain out of line bodies of a particular
  20686. inlineable function, they will also both contain coverage counts for
  20687. that function.  When `fileA.o' and `fileB.o' are linked together, the
  20688. linker will, on many systems, select one of those out of line bodies
  20689. for all calls to that function, and remove or ignore the other.
  20690. Unfortunately, it will not remove the coverage counters for the unused
  20691. function body.  Hence when instrumented, all but one use of that
  20692. function will show zero counts.
  20693.  
  20694.  If the function is inlined in several places, the block structure in
  20695. each location might not be the same.  For instance, a condition might
  20696. now be calculable at compile time in some instances.  Because the
  20697. coverage of all the uses of the inline function will be shown for the
  20698. same source lines, the line counts themselves might seem inconsistent.
  20699.  
  20700. 
  20701. File: gcc,  Node: Gcov Data Files,  Prev: Gcov and Optimization,  Up: Gcov
  20702.  
  20703. 9.4 Brief description of `gcov' data files
  20704. ==========================================
  20705.  
  20706. `gcov' uses two files for profiling.  The names of these files are
  20707. derived from the original _object_ file by substituting the file suffix
  20708. with either `.gcno', or `.gcda'.  All of these files are placed in the
  20709. same directory as the object file, and contain data stored in a
  20710. platform-independent format.
  20711.  
  20712.  The `.gcno' file is generated when the source file is compiled with
  20713. the GCC `-ftest-coverage' option.  It contains information to
  20714. reconstruct the basic block graphs and assign source line numbers to
  20715. blocks.
  20716.  
  20717.  The `.gcda' file is generated when a program containing object files
  20718. built with the GCC `-fprofile-arcs' option is executed.  A separate
  20719. `.gcda' file is created for each object file compiled with this option.
  20720. It contains arc transition counts, and some summary information.
  20721.  
  20722.  The full details of the file format is specified in `gcov-io.h', and
  20723. functions provided in that header file should be used to access the
  20724. coverage files.
  20725.  
  20726. 
  20727. File: gcc,  Node: Trouble,  Next: Bugs,  Prev: Gcov,  Up: Top
  20728.  
  20729. 10 Known Causes of Trouble with GCC
  20730. ***********************************
  20731.  
  20732. This section describes known problems that affect users of GCC.  Most
  20733. of these are not GCC bugs per se--if they were, we would fix them.  But
  20734. the result for a user may be like the result of a bug.
  20735.  
  20736.  Some of these problems are due to bugs in other software, some are
  20737. missing features that are too much work to add, and some are places
  20738. where people's opinions differ as to what is best.
  20739.  
  20740. * Menu:
  20741.  
  20742. * Actual Bugs::              Bugs we will fix later.
  20743. * Cross-Compiler Problems::   Common problems of cross compiling with GCC.
  20744. * Interoperation::      Problems using GCC with other compilers,
  20745.                and with certain linkers, assemblers and debuggers.
  20746. * External Bugs::    Problems compiling certain programs.
  20747. * Incompatibilities::   GCC is incompatible with traditional C.
  20748. * Fixed Headers::       GCC uses corrected versions of system header files.
  20749.                            This is necessary, but doesn't always work smoothly.
  20750. * Standard Libraries::  GCC uses the system C library, which might not be
  20751.                            compliant with the ISO C standard.
  20752. * Disappointments::     Regrettable things we can't change, but not quite bugs.
  20753. * C++ Misunderstandings::     Common misunderstandings with GNU C++.
  20754. * Protoize Caveats::    Things to watch out for when using `protoize'.
  20755. * Non-bugs::        Things we think are right, but some others disagree.
  20756. * Warnings and Errors:: Which problems in your code get warnings,
  20757.                          and which get errors.
  20758.  
  20759. 
  20760. File: gcc,  Node: Actual Bugs,  Next: Cross-Compiler Problems,  Up: Trouble
  20761.  
  20762. 10.1 Actual Bugs We Haven't Fixed Yet
  20763. =====================================
  20764.  
  20765.    * The `fixincludes' script interacts badly with automounters; if the
  20766.      directory of system header files is automounted, it tends to be
  20767.      unmounted while `fixincludes' is running.  This would seem to be a
  20768.      bug in the automounter.  We don't know any good way to work around
  20769.      it.
  20770.  
  20771.    * The `fixproto' script will sometimes add prototypes for the
  20772.      `sigsetjmp' and `siglongjmp' functions that reference the
  20773.      `jmp_buf' type before that type is defined.  To work around this,
  20774.      edit the offending file and place the typedef in front of the
  20775.      prototypes.
  20776.  
  20777.    * When `-pedantic-errors' is specified, GCC will incorrectly give an
  20778.      error message when a function name is specified in an expression
  20779.      involving the comma operator.
  20780.  
  20781. 
  20782. File: gcc,  Node: Cross-Compiler Problems,  Next: Interoperation,  Prev: Actual Bugs,  Up: Trouble
  20783.  
  20784. 10.2 Cross-Compiler Problems
  20785. ============================
  20786.  
  20787. You may run into problems with cross compilation on certain machines,
  20788. for several reasons.
  20789.  
  20790.    * Cross compilation can run into trouble for certain machines because
  20791.      some target machines' assemblers require floating point numbers to
  20792.      be written as _integer_ constants in certain contexts.
  20793.  
  20794.      The compiler writes these integer constants by examining the
  20795.      floating point value as an integer and printing that integer,
  20796.      because this is simple to write and independent of the details of
  20797.      the floating point representation.  But this does not work if the
  20798.      compiler is running on a different machine with an incompatible
  20799.      floating point format, or even a different byte-ordering.
  20800.  
  20801.      In addition, correct constant folding of floating point values
  20802.      requires representing them in the target machine's format.  (The C
  20803.      standard does not quite require this, but in practice it is the
  20804.      only way to win.)
  20805.  
  20806.      It is now possible to overcome these problems by defining macros
  20807.      such as `REAL_VALUE_TYPE'.  But doing so is a substantial amount of
  20808.      work for each target machine.  *Note Cross Compilation and
  20809.      Floating Point: (gccint)Cross-compilation.
  20810.  
  20811.    * At present, the program `mips-tfile' which adds debug support to
  20812.      object files on MIPS systems does not work in a cross compile
  20813.      environment.
  20814.  
  20815. 
  20816. File: gcc,  Node: Interoperation,  Next: External Bugs,  Prev: Cross-Compiler Problems,  Up: Trouble
  20817.  
  20818. 10.3 Interoperation
  20819. ===================
  20820.  
  20821. This section lists various difficulties encountered in using GCC
  20822. together with other compilers or with the assemblers, linkers,
  20823. libraries and debuggers on certain systems.
  20824.  
  20825.    * On many platforms, GCC supports a different ABI for C++ than do
  20826.      other compilers, so the object files compiled by GCC cannot be
  20827.      used with object files generated by another C++ compiler.
  20828.  
  20829.      An area where the difference is most apparent is name mangling.
  20830.      The use of different name mangling is intentional, to protect you
  20831.      from more subtle problems.  Compilers differ as to many internal
  20832.      details of C++ implementation, including: how class instances are
  20833.      laid out, how multiple inheritance is implemented, and how virtual
  20834.      function calls are handled.  If the name encoding were made the
  20835.      same, your programs would link against libraries provided from
  20836.      other compilers--but the programs would then crash when run.
  20837.      Incompatible libraries are then detected at link time, rather than
  20838.      at run time.
  20839.  
  20840.    * Older GDB versions sometimes fail to read the output of GCC version
  20841.      2.  If you have trouble, get GDB version 4.4 or later.
  20842.  
  20843.    * DBX rejects some files produced by GCC, though it accepts similar
  20844.      constructs in output from PCC.  Until someone can supply a coherent
  20845.      description of what is valid DBX input and what is not, there is
  20846.      nothing I can do about these problems.  You are on your own.
  20847.  
  20848.    * The GNU assembler (GAS) does not support PIC.  To generate PIC
  20849.      code, you must use some other assembler, such as `/bin/as'.
  20850.  
  20851.    * On some BSD systems, including some versions of Ultrix, use of
  20852.      profiling causes static variable destructors (currently used only
  20853.      in C++) not to be run.
  20854.  
  20855.    * On some SGI systems, when you use `-lgl_s' as an option, it gets
  20856.      translated magically to `-lgl_s -lX11_s -lc_s'.  Naturally, this
  20857.      does not happen when you use GCC.  You must specify all three
  20858.      options explicitly.
  20859.  
  20860.    * On a SPARC, GCC aligns all values of type `double' on an 8-byte
  20861.      boundary, and it expects every `double' to be so aligned.  The Sun
  20862.      compiler usually gives `double' values 8-byte alignment, with one
  20863.      exception: function arguments of type `double' may not be aligned.
  20864.  
  20865.      As a result, if a function compiled with Sun CC takes the address
  20866.      of an argument of type `double' and passes this pointer of type
  20867.      `double *' to a function compiled with GCC, dereferencing the
  20868.      pointer may cause a fatal signal.
  20869.  
  20870.      One way to solve this problem is to compile your entire program
  20871.      with GCC.  Another solution is to modify the function that is
  20872.      compiled with Sun CC to copy the argument into a local variable;
  20873.      local variables are always properly aligned.  A third solution is
  20874.      to modify the function that uses the pointer to dereference it via
  20875.      the following function `access_double' instead of directly with
  20876.      `*':
  20877.  
  20878.           inline double
  20879.           access_double (double *unaligned_ptr)
  20880.           {
  20881.             union d2i { double d; int i[2]; };
  20882.  
  20883.             union d2i *p = (union d2i *) unaligned_ptr;
  20884.             union d2i u;
  20885.  
  20886.             u.i[0] = p->i[0];
  20887.             u.i[1] = p->i[1];
  20888.  
  20889.             return u.d;
  20890.           }
  20891.  
  20892.      Storing into the pointer can be done likewise with the same union.
  20893.  
  20894.    * On Solaris, the `malloc' function in the `libmalloc.a' library may
  20895.      allocate memory that is only 4 byte aligned.  Since GCC on the
  20896.      SPARC assumes that doubles are 8 byte aligned, this may result in a
  20897.      fatal signal if doubles are stored in memory allocated by the
  20898.      `libmalloc.a' library.
  20899.  
  20900.      The solution is to not use the `libmalloc.a' library.  Use instead
  20901.      `malloc' and related functions from `libc.a'; they do not have
  20902.      this problem.
  20903.  
  20904.    * Sun forgot to include a static version of `libdl.a' with some
  20905.      versions of SunOS (mainly 4.1).  This results in undefined symbols
  20906.      when linking static binaries (that is, if you use `-static').  If
  20907.      you see undefined symbols `_dlclose', `_dlsym' or `_dlopen' when
  20908.      linking, compile and link against the file `mit/util/misc/dlsym.c'
  20909.      from the MIT version of X windows.
  20910.  
  20911.    * The 128-bit long double format that the SPARC port supports
  20912.      currently works by using the architecturally defined quad-word
  20913.      floating point instructions.  Since there is no hardware that
  20914.      supports these instructions they must be emulated by the operating
  20915.      system.  Long doubles do not work in Sun OS versions 4.0.3 and
  20916.      earlier, because the kernel emulator uses an obsolete and
  20917.      incompatible format.  Long doubles do not work in Sun OS version
  20918.      4.1.1 due to a problem in a Sun library.  Long doubles do work on
  20919.      Sun OS versions 4.1.2 and higher, but GCC does not enable them by
  20920.      default.  Long doubles appear to work in Sun OS 5.x (Solaris 2.x).
  20921.  
  20922.    * On HP-UX version 9.01 on the HP PA, the HP compiler `cc' does not
  20923.      compile GCC correctly.  We do not yet know why.  However, GCC
  20924.      compiled on earlier HP-UX versions works properly on HP-UX 9.01
  20925.      and can compile itself properly on 9.01.
  20926.  
  20927.    * On the HP PA machine, ADB sometimes fails to work on functions
  20928.      compiled with GCC.  Specifically, it fails to work on functions
  20929.      that use `alloca' or variable-size arrays.  This is because GCC
  20930.      doesn't generate HP-UX unwind descriptors for such functions.  It
  20931.      may even be impossible to generate them.
  20932.  
  20933.    * Debugging (`-g') is not supported on the HP PA machine, unless you
  20934.      use the preliminary GNU tools.
  20935.  
  20936.    * Taking the address of a label may generate errors from the HP-UX
  20937.      PA assembler.  GAS for the PA does not have this problem.
  20938.  
  20939.    * Using floating point parameters for indirect calls to static
  20940.      functions will not work when using the HP assembler.  There simply
  20941.      is no way for GCC to specify what registers hold arguments for
  20942.      static functions when using the HP assembler.  GAS for the PA does
  20943.      not have this problem.
  20944.  
  20945.    * In extremely rare cases involving some very large functions you may
  20946.      receive errors from the HP linker complaining about an out of
  20947.      bounds unconditional branch offset.  This used to occur more often
  20948.      in previous versions of GCC, but is now exceptionally rare.  If
  20949.      you should run into it, you can work around by making your
  20950.      function smaller.
  20951.  
  20952.    * GCC compiled code sometimes emits warnings from the HP-UX
  20953.      assembler of the form:
  20954.  
  20955.           (warning) Use of GR3 when
  20956.             frame >= 8192 may cause conflict.
  20957.  
  20958.      These warnings are harmless and can be safely ignored.
  20959.  
  20960.    * On the IBM RS/6000, compiling code of the form
  20961.  
  20962.           extern int foo;
  20963.  
  20964.           ... foo ...
  20965.  
  20966.           static int foo;
  20967.  
  20968.      will cause the linker to report an undefined symbol `foo'.
  20969.      Although this behavior differs from most other systems, it is not a
  20970.      bug because redefining an `extern' variable as `static' is
  20971.      undefined in ISO C.
  20972.  
  20973.    * In extremely rare cases involving some very large functions you may
  20974.      receive errors from the AIX Assembler complaining about a
  20975.      displacement that is too large.  If you should run into it, you
  20976.      can work around by making your function smaller.
  20977.  
  20978.    * The `libstdc++.a' library in GCC relies on the SVR4 dynamic linker
  20979.      semantics which merges global symbols between libraries and
  20980.      applications, especially necessary for C++ streams functionality.
  20981.      This is not the default behavior of AIX shared libraries and
  20982.      dynamic linking.  `libstdc++.a' is built on AIX with
  20983.      "runtime-linking" enabled so that symbol merging can occur.  To
  20984.      utilize this feature, the application linked with `libstdc++.a'
  20985.      must include the `-Wl,-brtl' flag on the link line.  G++ cannot
  20986.      impose this because this option may interfere with the semantics
  20987.      of the user program and users may not always use `g++' to link his
  20988.      or her application. Applications are not required to use the
  20989.      `-Wl,-brtl' flag on the link line--the rest of the `libstdc++.a'
  20990.      library which is not dependent on the symbol merging semantics
  20991.      will continue to function correctly.
  20992.  
  20993.    * An application can interpose its own definition of functions for
  20994.      functions invoked by `libstdc++.a' with "runtime-linking" enabled
  20995.      on AIX.  To accomplish this the application must be linked with
  20996.      "runtime-linking" option and the functions explicitly must be
  20997.      exported by the application (`-Wl,-brtl,-bE:exportfile').
  20998.  
  20999.    * AIX on the RS/6000 provides support (NLS) for environments outside
  21000.      of the United States.  Compilers and assemblers use NLS to support
  21001.      locale-specific representations of various objects including
  21002.      floating-point numbers (`.' vs `,' for separating decimal
  21003.      fractions). There have been problems reported where the library
  21004.      linked with GCC does not produce the same floating-point formats
  21005.      that the assembler accepts. If you have this problem, set the
  21006.      `LANG' environment variable to `C' or `En_US'.
  21007.  
  21008.    * Even if you specify `-fdollars-in-identifiers', you cannot
  21009.      successfully use `$' in identifiers on the RS/6000 due to a
  21010.      restriction in the IBM assembler.  GAS supports these identifiers.
  21011.  
  21012.    * On Ultrix, the Fortran compiler expects registers 2 through 5 to
  21013.      be saved by function calls.  However, the C compiler uses
  21014.      conventions compatible with BSD Unix: registers 2 through 5 may be
  21015.      clobbered by function calls.
  21016.  
  21017.      GCC uses the same convention as the Ultrix C compiler.  You can use
  21018.      these options to produce code compatible with the Fortran compiler:
  21019.  
  21020.           -fcall-saved-r2 -fcall-saved-r3 -fcall-saved-r4 -fcall-saved-r5
  21021.  
  21022.    * On the Alpha, you may get assembler errors about invalid syntax as
  21023.      a result of floating point constants.  This is due to a bug in the
  21024.      C library functions `ecvt', `fcvt' and `gcvt'.  Given valid
  21025.      floating point numbers, they sometimes print `NaN'.
  21026.  
  21027. 
  21028. File: gcc,  Node: External Bugs,  Next: Incompatibilities,  Prev: Interoperation,  Up: Trouble
  21029.  
  21030. 10.4 Problems Compiling Certain Programs
  21031. ========================================
  21032.  
  21033. Certain programs have problems compiling.
  21034.  
  21035.    * Parse errors may occur compiling X11 on a Decstation running
  21036.      Ultrix 4.2 because of problems in DEC's versions of the X11 header
  21037.      files `X11/Xlib.h' and `X11/Xutil.h'.  People recommend adding
  21038.      `-I/usr/include/mit' to use the MIT versions of the header files,
  21039.      or fixing the header files by adding this:
  21040.  
  21041.           #ifdef __STDC__
  21042.           #define NeedFunctionPrototypes 0
  21043.           #endif
  21044.  
  21045.    * On various 386 Unix systems derived from System V, including SCO,
  21046.      ISC, and ESIX, you may get error messages about running out of
  21047.      virtual memory while compiling certain programs.
  21048.  
  21049.      You can prevent this problem by linking GCC with the GNU malloc
  21050.      (which thus replaces the malloc that comes with the system).  GNU
  21051.      malloc is available as a separate package, and also in the file
  21052.      `src/gmalloc.c' in the GNU Emacs 19 distribution.
  21053.  
  21054.      If you have installed GNU malloc as a separate library package,
  21055.      use this option when you relink GCC:
  21056.  
  21057.           MALLOC=/usr/local/lib/libgmalloc.a
  21058.  
  21059.      Alternatively, if you have compiled `gmalloc.c' from Emacs 19, copy
  21060.      the object file to `gmalloc.o' and use this option when you relink
  21061.      GCC:
  21062.  
  21063.           MALLOC=gmalloc.o
  21064.  
  21065. 
  21066. File: gcc,  Node: Incompatibilities,  Next: Fixed Headers,  Prev: External Bugs,  Up: Trouble
  21067.  
  21068. 10.5 Incompatibilities of GCC
  21069. =============================
  21070.  
  21071. There are several noteworthy incompatibilities between GNU C and K&R
  21072. (non-ISO) versions of C.
  21073.  
  21074.    * GCC normally makes string constants read-only.  If several
  21075.      identical-looking string constants are used, GCC stores only one
  21076.      copy of the string.
  21077.  
  21078.      One consequence is that you cannot call `mktemp' with a string
  21079.      constant argument.  The function `mktemp' always alters the string
  21080.      its argument points to.
  21081.  
  21082.      Another consequence is that `sscanf' does not work on some systems
  21083.      when passed a string constant as its format control string or
  21084.      input.  This is because `sscanf' incorrectly tries to write into
  21085.      the string constant.  Likewise `fscanf' and `scanf'.
  21086.  
  21087.      The best solution to these problems is to change the program to use
  21088.      `char'-array variables with initialization strings for these
  21089.      purposes instead of string constants.  But if this is not possible,
  21090.      you can use the `-fwritable-strings' flag, which directs GCC to
  21091.      handle string constants the same way most C compilers do.
  21092.  
  21093.    * `-2147483648' is positive.
  21094.  
  21095.      This is because 2147483648 cannot fit in the type `int', so
  21096.      (following the ISO C rules) its data type is `unsigned long int'.
  21097.      Negating this value yields 2147483648 again.
  21098.  
  21099.    * GCC does not substitute macro arguments when they appear inside of
  21100.      string constants.  For example, the following macro in GCC
  21101.  
  21102.           #define foo(a) "a"
  21103.  
  21104.      will produce output `"a"' regardless of what the argument A is.
  21105.  
  21106.    * When you use `setjmp' and `longjmp', the only automatic variables
  21107.      guaranteed to remain valid are those declared `volatile'.  This is
  21108.      a consequence of automatic register allocation.  Consider this
  21109.      function:
  21110.  
  21111.           jmp_buf j;
  21112.  
  21113.           foo ()
  21114.           {
  21115.             int a, b;
  21116.  
  21117.             a = fun1 ();
  21118.             if (setjmp (j))
  21119.               return a;
  21120.  
  21121.             a = fun2 ();
  21122.             /* `longjmp (j)' may occur in `fun3'. */
  21123.             return a + fun3 ();
  21124.           }
  21125.  
  21126.      Here `a' may or may not be restored to its first value when the
  21127.      `longjmp' occurs.  If `a' is allocated in a register, then its
  21128.      first value is restored; otherwise, it keeps the last value stored
  21129.      in it.
  21130.  
  21131.      If you use the `-W' option with the `-O' option, you will get a
  21132.      warning when GCC thinks such a problem might be possible.
  21133.  
  21134.    * Programs that use preprocessing directives in the middle of macro
  21135.      arguments do not work with GCC.  For example, a program like this
  21136.      will not work:
  21137.  
  21138.           foobar (
  21139.           #define luser
  21140.                   hack)
  21141.  
  21142.      ISO C does not permit such a construct.
  21143.  
  21144.    * K&R compilers allow comments to cross over an inclusion boundary
  21145.      (i.e. started in an include file and ended in the including file).
  21146.      I think this would be quite ugly and can't imagine it could be
  21147.      needed.
  21148.  
  21149.    * Declarations of external variables and functions within a block
  21150.      apply only to the block containing the declaration.  In other
  21151.      words, they have the same scope as any other declaration in the
  21152.      same place.
  21153.  
  21154.      In some other C compilers, a `extern' declaration affects all the
  21155.      rest of the file even if it happens within a block.
  21156.  
  21157.    * In traditional C, you can combine `long', etc., with a typedef
  21158.      name, as shown here:
  21159.  
  21160.           typedef int foo;
  21161.           typedef long foo bar;
  21162.  
  21163.      In ISO C, this is not allowed: `long' and other type modifiers
  21164.      require an explicit `int'.
  21165.  
  21166.    * PCC allows typedef names to be used as function parameters.
  21167.  
  21168.    * Traditional C allows the following erroneous pair of declarations
  21169.      to appear together in a given scope:
  21170.  
  21171.           typedef int foo;
  21172.           typedef foo foo;
  21173.  
  21174.    * GCC treats all characters of identifiers as significant.
  21175.      According to K&R-1 (2.2), "No more than the first eight characters
  21176.      are significant, although more may be used.".  Also according to
  21177.      K&R-1 (2.2), "An identifier is a sequence of letters and digits;
  21178.      the first character must be a letter.  The underscore _ counts as
  21179.      a letter.", but GCC also allows dollar signs in identifiers.
  21180.  
  21181.    * PCC allows whitespace in the middle of compound assignment
  21182.      operators such as `+='.  GCC, following the ISO standard, does not
  21183.      allow this.
  21184.  
  21185.    * GCC complains about unterminated character constants inside of
  21186.      preprocessing conditionals that fail.  Some programs have English
  21187.      comments enclosed in conditionals that are guaranteed to fail; if
  21188.      these comments contain apostrophes, GCC will probably report an
  21189.      error.  For example, this code would produce an error:
  21190.  
  21191.           #if 0
  21192.           You can't expect this to work.
  21193.           #endif
  21194.  
  21195.      The best solution to such a problem is to put the text into an
  21196.      actual C comment delimited by `/*...*/'.
  21197.  
  21198.    * Many user programs contain the declaration `long time ();'.  In the
  21199.      past, the system header files on many systems did not actually
  21200.      declare `time', so it did not matter what type your program
  21201.      declared it to return.  But in systems with ISO C headers, `time'
  21202.      is declared to return `time_t', and if that is not the same as
  21203.      `long', then `long time ();' is erroneous.
  21204.  
  21205.      The solution is to change your program to use appropriate system
  21206.      headers (`<time.h>' on systems with ISO C headers) and not to
  21207.      declare `time' if the system header files declare it, or failing
  21208.      that to use `time_t' as the return type of `time'.
  21209.  
  21210.    * When compiling functions that return `float', PCC converts it to a
  21211.      double.  GCC actually returns a `float'.  If you are concerned
  21212.      with PCC compatibility, you should declare your functions to return
  21213.      `double'; you might as well say what you mean.
  21214.  
  21215.    * When compiling functions that return structures or unions, GCC
  21216.      output code normally uses a method different from that used on most
  21217.      versions of Unix.  As a result, code compiled with GCC cannot call
  21218.      a structure-returning function compiled with PCC, and vice versa.
  21219.  
  21220.      The method used by GCC is as follows: a structure or union which is
  21221.      1, 2, 4 or 8 bytes long is returned like a scalar.  A structure or
  21222.      union with any other size is stored into an address supplied by
  21223.      the caller (usually in a special, fixed register, but on some
  21224.      machines it is passed on the stack).  The target hook
  21225.      `TARGET_STRUCT_VALUE_RTX' tells GCC where to pass this address.
  21226.  
  21227.      By contrast, PCC on most target machines returns structures and
  21228.      unions of any size by copying the data into an area of static
  21229.      storage, and then returning the address of that storage as if it
  21230.      were a pointer value.  The caller must copy the data from that
  21231.      memory area to the place where the value is wanted.  GCC does not
  21232.      use this method because it is slower and nonreentrant.
  21233.  
  21234.      On some newer machines, PCC uses a reentrant convention for all
  21235.      structure and union returning.  GCC on most of these machines uses
  21236.      a compatible convention when returning structures and unions in
  21237.      memory, but still returns small structures and unions in registers.
  21238.  
  21239.      You can tell GCC to use a compatible convention for all structure
  21240.      and union returning with the option `-fpcc-struct-return'.
  21241.  
  21242.    * GCC complains about program fragments such as `0x74ae-0x4000'
  21243.      which appear to be two hexadecimal constants separated by the minus
  21244.      operator.  Actually, this string is a single "preprocessing token".
  21245.      Each such token must correspond to one token in C.  Since this
  21246.      does not, GCC prints an error message.  Although it may appear
  21247.      obvious that what is meant is an operator and two values, the ISO
  21248.      C standard specifically requires that this be treated as erroneous.
  21249.  
  21250.      A "preprocessing token" is a "preprocessing number" if it begins
  21251.      with a digit and is followed by letters, underscores, digits,
  21252.      periods and `e+', `e-', `E+', `E-', `p+', `p-', `P+', or `P-'
  21253.      character sequences.  (In strict C89 mode, the sequences `p+',
  21254.      `p-', `P+' and `P-' cannot appear in preprocessing numbers.)
  21255.  
  21256.      To make the above program fragment valid, place whitespace in
  21257.      front of the minus sign.  This whitespace will end the
  21258.      preprocessing number.
  21259.  
  21260. 
  21261. File: gcc,  Node: Fixed Headers,  Next: Standard Libraries,  Prev: Incompatibilities,  Up: Trouble
  21262.  
  21263. 10.6 Fixed Header Files
  21264. =======================
  21265.  
  21266. GCC needs to install corrected versions of some system header files.
  21267. This is because most target systems have some header files that won't
  21268. work with GCC unless they are changed.  Some have bugs, some are
  21269. incompatible with ISO C, and some depend on special features of other
  21270. compilers.
  21271.  
  21272.  Installing GCC automatically creates and installs the fixed header
  21273. files, by running a program called `fixincludes' (or for certain
  21274. targets an alternative such as `fixinc.svr4').  Normally, you don't
  21275. need to pay attention to this.  But there are cases where it doesn't do
  21276. the right thing automatically.
  21277.  
  21278.    * If you update the system's header files, such as by installing a
  21279.      new system version, the fixed header files of GCC are not
  21280.      automatically updated.  The easiest way to update them is to
  21281.      reinstall GCC.  (If you want to be clever, look in the makefile
  21282.      and you can find a shortcut.)
  21283.  
  21284.    * On some systems, in particular SunOS 4, header file directories
  21285.      contain machine-specific symbolic links in certain places.  This
  21286.      makes it possible to share most of the header files among hosts
  21287.      running the same version of SunOS 4 on different machine models.
  21288.  
  21289.      The programs that fix the header files do not understand this
  21290.      special way of using symbolic links; therefore, the directory of
  21291.      fixed header files is good only for the machine model used to
  21292.      build it.
  21293.  
  21294.      In SunOS 4, only programs that look inside the kernel will notice
  21295.      the difference between machine models.  Therefore, for most
  21296.      purposes, you need not be concerned about this.
  21297.  
  21298.      It is possible to make separate sets of fixed header files for the
  21299.      different machine models, and arrange a structure of symbolic
  21300.      links so as to use the proper set, but you'll have to do this by
  21301.      hand.
  21302.  
  21303.    * On Lynxos, GCC by default does not fix the header files.  This is
  21304.      because bugs in the shell cause the `fixincludes' script to fail.
  21305.  
  21306.      This means you will encounter problems due to bugs in the system
  21307.      header files.  It may be no comfort that they aren't GCC's fault,
  21308.      but it does mean that there's nothing for us to do about them.
  21309.  
  21310. 
  21311. File: gcc,  Node: Standard Libraries,  Next: Disappointments,  Prev: Fixed Headers,  Up: Trouble
  21312.  
  21313. 10.7 Standard Libraries
  21314. =======================
  21315.  
  21316. GCC by itself attempts to be a conforming freestanding implementation.
  21317. *Note Language Standards Supported by GCC: Standards, for details of
  21318. what this means.  Beyond the library facilities required of such an
  21319. implementation, the rest of the C library is supplied by the vendor of
  21320. the operating system.  If that C library doesn't conform to the C
  21321. standards, then your programs might get warnings (especially when using
  21322. `-Wall') that you don't expect.
  21323.  
  21324.  For example, the `sprintf' function on SunOS 4.1.3 returns `char *'
  21325. while the C standard says that `sprintf' returns an `int'.  The
  21326. `fixincludes' program could make the prototype for this function match
  21327. the Standard, but that would be wrong, since the function will still
  21328. return `char *'.
  21329.  
  21330.  If you need a Standard compliant library, then you need to find one, as
  21331. GCC does not provide one.  The GNU C library (called `glibc') provides
  21332. ISO C, POSIX, BSD, SystemV and X/Open compatibility for GNU/Linux and
  21333. HURD-based GNU systems; no recent version of it supports other systems,
  21334. though some very old versions did.  Version 2.2 of the GNU C library
  21335. includes nearly complete C99 support.  You could also ask your
  21336. operating system vendor if newer libraries are available.
  21337.  
  21338. 
  21339. File: gcc,  Node: Disappointments,  Next: C++ Misunderstandings,  Prev: Standard Libraries,  Up: Trouble
  21340.  
  21341. 10.8 Disappointments and Misunderstandings
  21342. ==========================================
  21343.  
  21344. These problems are perhaps regrettable, but we don't know any practical
  21345. way around them.
  21346.  
  21347.    * Certain local variables aren't recognized by debuggers when you
  21348.      compile with optimization.
  21349.  
  21350.      This occurs because sometimes GCC optimizes the variable out of
  21351.      existence.  There is no way to tell the debugger how to compute the
  21352.      value such a variable "would have had", and it is not clear that
  21353.      would be desirable anyway.  So GCC simply does not mention the
  21354.      eliminated variable when it writes debugging information.
  21355.  
  21356.      You have to expect a certain amount of disagreement between the
  21357.      executable and your source code, when you use optimization.
  21358.  
  21359.    * Users often think it is a bug when GCC reports an error for code
  21360.      like this:
  21361.  
  21362.           int foo (struct mumble *);
  21363.  
  21364.           struct mumble { ... };
  21365.  
  21366.           int foo (struct mumble *x)
  21367.           { ... }
  21368.  
  21369.      This code really is erroneous, because the scope of `struct
  21370.      mumble' in the prototype is limited to the argument list
  21371.      containing it.  It does not refer to the `struct mumble' defined
  21372.      with file scope immediately below--they are two unrelated types
  21373.      with similar names in different scopes.
  21374.  
  21375.      But in the definition of `foo', the file-scope type is used
  21376.      because that is available to be inherited.  Thus, the definition
  21377.      and the prototype do not match, and you get an error.
  21378.  
  21379.      This behavior may seem silly, but it's what the ISO standard
  21380.      specifies.  It is easy enough for you to make your code work by
  21381.      moving the definition of `struct mumble' above the prototype.
  21382.      It's not worth being incompatible with ISO C just to avoid an
  21383.      error for the example shown above.
  21384.  
  21385.    * Accesses to bit-fields even in volatile objects works by accessing
  21386.      larger objects, such as a byte or a word.  You cannot rely on what
  21387.      size of object is accessed in order to read or write the
  21388.      bit-field; it may even vary for a given bit-field according to the
  21389.      precise usage.
  21390.  
  21391.      If you care about controlling the amount of memory that is
  21392.      accessed, use volatile but do not use bit-fields.
  21393.  
  21394.    * GCC comes with shell scripts to fix certain known problems in
  21395.      system header files.  They install corrected copies of various
  21396.      header files in a special directory where only GCC will normally
  21397.      look for them.  The scripts adapt to various systems by searching
  21398.      all the system header files for the problem cases that we know
  21399.      about.
  21400.  
  21401.      If new system header files are installed, nothing automatically
  21402.      arranges to update the corrected header files.  You will have to
  21403.      reinstall GCC to fix the new header files.  More specifically, go
  21404.      to the build directory and delete the files `stmp-fixinc' and
  21405.      `stmp-headers', and the subdirectory `include'; then do `make
  21406.      install' again.
  21407.  
  21408.    * On 68000 and x86 systems, for instance, you can get paradoxical
  21409.      results if you test the precise values of floating point numbers.
  21410.      For example, you can find that a floating point value which is not
  21411.      a NaN is not equal to itself.  This results from the fact that the
  21412.      floating point registers hold a few more bits of precision than
  21413.      fit in a `double' in memory.  Compiled code moves values between
  21414.      memory and floating point registers at its convenience, and moving
  21415.      them into memory truncates them.
  21416.  
  21417.      You can partially avoid this problem by using the `-ffloat-store'
  21418.      option (*note Optimize Options::).
  21419.  
  21420.    * On AIX and other platforms without weak symbol support, templates
  21421.      need to be instantiated explicitly and symbols for static members
  21422.      of templates will not be generated.
  21423.  
  21424.    * On AIX, GCC scans object files and library archives for static
  21425.      constructors and destructors when linking an application before the
  21426.      linker prunes unreferenced symbols.  This is necessary to prevent
  21427.      the AIX linker from mistakenly assuming that static constructor or
  21428.      destructor are unused and removing them before the scanning can
  21429.      occur.  All static constructors and destructors found will be
  21430.      referenced even though the modules in which they occur may not be
  21431.      used by the program.  This may lead to both increased executable
  21432.      size and unexpected symbol references.
  21433.  
  21434. 
  21435. File: gcc,  Node: C++ Misunderstandings,  Next: Protoize Caveats,  Prev: Disappointments,  Up: Trouble
  21436.  
  21437. 10.9 Common Misunderstandings with GNU C++
  21438. ==========================================
  21439.  
  21440. C++ is a complex language and an evolving one, and its standard
  21441. definition (the ISO C++ standard) was only recently completed.  As a
  21442. result, your C++ compiler may occasionally surprise you, even when its
  21443. behavior is correct.  This section discusses some areas that frequently
  21444. give rise to questions of this sort.
  21445.  
  21446. * Menu:
  21447.  
  21448. * Static Definitions::  Static member declarations are not definitions
  21449. * Name lookup::         Name lookup, templates, and accessing members of base classes
  21450. * Temporaries::         Temporaries may vanish before you expect
  21451. * Copy Assignment::     Copy Assignment operators copy virtual bases twice
  21452.  
  21453. 
  21454. File: gcc,  Node: Static Definitions,  Next: Name lookup,  Up: C++ Misunderstandings
  21455.  
  21456. 10.9.1 Declare _and_ Define Static Members
  21457. ------------------------------------------
  21458.  
  21459. When a class has static data members, it is not enough to _declare_ the
  21460. static member; you must also _define_ it.  For example:
  21461.  
  21462.      class Foo
  21463.      {
  21464.        ...
  21465.        void method();
  21466.        static int bar;
  21467.      };
  21468.  
  21469.  This declaration only establishes that the class `Foo' has an `int'
  21470. named `Foo::bar', and a member function named `Foo::method'.  But you
  21471. still need to define _both_ `method' and `bar' elsewhere.  According to
  21472. the ISO standard, you must supply an initializer in one (and only one)
  21473. source file, such as:
  21474.  
  21475.      int Foo::bar = 0;
  21476.  
  21477.  Other C++ compilers may not correctly implement the standard behavior.
  21478. As a result, when you switch to `g++' from one of these compilers, you
  21479. may discover that a program that appeared to work correctly in fact
  21480. does not conform to the standard: `g++' reports as undefined symbols
  21481. any static data members that lack definitions.
  21482.  
  21483. 
  21484. File: gcc,  Node: Name lookup,  Next: Temporaries,  Prev: Static Definitions,  Up: C++ Misunderstandings
  21485.  
  21486. 10.9.2 Name lookup, templates, and accessing members of base classes
  21487. --------------------------------------------------------------------
  21488.  
  21489. The C++ standard prescribes that all names that are not dependent on
  21490. template parameters are bound to their present definitions when parsing
  21491. a template function or class.(1)  Only names that are dependent are
  21492. looked up at the point of instantiation.  For example, consider
  21493.  
  21494.        void foo(double);
  21495.  
  21496.        struct A {
  21497.          template <typename T>
  21498.          void f () {
  21499.            foo (1);        // 1
  21500.            int i = N;      // 2
  21501.            T t;
  21502.            t.bar();        // 3
  21503.            foo (t);        // 4
  21504.          }
  21505.  
  21506.          static const int N;
  21507.        };
  21508.  
  21509.  Here, the names `foo' and `N' appear in a context that does not depend
  21510. on the type of `T'.  The compiler will thus require that they are
  21511. defined in the context of use in the template, not only before the
  21512. point of instantiation, and will here use `::foo(double)' and `A::N',
  21513. respectively.  In particular, it will convert the integer value to a
  21514. `double' when passing it to `::foo(double)'.
  21515.  
  21516.  Conversely, `bar' and the call to `foo' in the fourth marked line are
  21517. used in contexts that do depend on the type of `T', so they are only
  21518. looked up at the point of instantiation, and you can provide
  21519. declarations for them after declaring the template, but before
  21520. instantiating it.  In particular, if you instantiate `A::f<int>', the
  21521. last line will call an overloaded `::foo(int)' if one was provided,
  21522. even if after the declaration of `struct A'.
  21523.  
  21524.  This distinction between lookup of dependent and non-dependent names is
  21525. called two-stage (or dependent) name lookup.  G++ implements it since
  21526. version 3.4.
  21527.  
  21528.  Two-stage name lookup sometimes leads to situations with behavior
  21529. different from non-template codes. The most common is probably this:
  21530.  
  21531.        template <typename T> struct Base {
  21532.          int i;
  21533.        };
  21534.  
  21535.        template <typename T> struct Derived : public Base<T> {
  21536.          int get_i() { return i; }
  21537.        };
  21538.  
  21539.  In `get_i()', `i' is not used in a dependent context, so the compiler
  21540. will look for a name declared at the enclosing namespace scope (which
  21541. is the global scope here).  It will not look into the base class, since
  21542. that is dependent and you may declare specializations of `Base' even
  21543. after declaring `Derived', so the compiler can't really know what `i'
  21544. would refer to.  If there is no global variable `i', then you will get
  21545. an error message.
  21546.  
  21547.  In order to make it clear that you want the member of the base class,
  21548. you need to defer lookup until instantiation time, at which the base
  21549. class is known.  For this, you need to access `i' in a dependent
  21550. context, by either using `this->i' (remember that `this' is of type
  21551. `Derived<T>*', so is obviously dependent), or using `Base<T>::i'.
  21552. Alternatively, `Base<T>::i' might be brought into scope by a
  21553. `using'-declaration.
  21554.  
  21555.  Another, similar example involves calling member functions of a base
  21556. class:
  21557.  
  21558.        template <typename T> struct Base {
  21559.            int f();
  21560.        };
  21561.  
  21562.        template <typename T> struct Derived : Base<T> {
  21563.            int g() { return f(); };
  21564.        };
  21565.  
  21566.  Again, the call to `f()' is not dependent on template arguments (there
  21567. are no arguments that depend on the type `T', and it is also not
  21568. otherwise specified that the call should be in a dependent context).
  21569. Thus a global declaration of such a function must be available, since
  21570. the one in the base class is not visible until instantiation time.  The
  21571. compiler will consequently produce the following error message:
  21572.  
  21573.        x.cc: In member function `int Derived<T>::g()':
  21574.        x.cc:6: error: there are no arguments to `f' that depend on a template
  21575.           parameter, so a declaration of `f' must be available
  21576.        x.cc:6: error: (if you use `-fpermissive', G++ will accept your code, but
  21577.           allowing the use of an undeclared name is deprecated)
  21578.  
  21579.  To make the code valid either use `this->f()', or `Base<T>::f()'.
  21580. Using the `-fpermissive' flag will also let the compiler accept the
  21581. code, by marking all function calls for which no declaration is visible
  21582. at the time of definition of the template for later lookup at
  21583. instantiation time, as if it were a dependent call.  We do not
  21584. recommend using `-fpermissive' to work around invalid code, and it will
  21585. also only catch cases where functions in base classes are called, not
  21586. where variables in base classes are used (as in the example above).
  21587.  
  21588.  Note that some compilers (including G++ versions prior to 3.4) get
  21589. these examples wrong and accept above code without an error.  Those
  21590. compilers do not implement two-stage name lookup correctly.
  21591.  
  21592.  ---------- Footnotes ----------
  21593.  
  21594.  (1) The C++ standard just uses the term "dependent" for names that
  21595. depend on the type or value of template parameters.  This shorter term
  21596. will also be used in the rest of this section.
  21597.  
  21598. 
  21599. File: gcc,  Node: Temporaries,  Next: Copy Assignment,  Prev: Name lookup,  Up: C++ Misunderstandings
  21600.  
  21601. 10.9.3 Temporaries May Vanish Before You Expect
  21602. -----------------------------------------------
  21603.  
  21604. It is dangerous to use pointers or references to _portions_ of a
  21605. temporary object.  The compiler may very well delete the object before
  21606. you expect it to, leaving a pointer to garbage.  The most common place
  21607. where this problem crops up is in classes like string classes,
  21608. especially ones that define a conversion function to type `char *' or
  21609. `const char *'--which is one reason why the standard `string' class
  21610. requires you to call the `c_str' member function.  However, any class
  21611. that returns a pointer to some internal structure is potentially
  21612. subject to this problem.
  21613.  
  21614.  For example, a program may use a function `strfunc' that returns
  21615. `string' objects, and another function `charfunc' that operates on
  21616. pointers to `char':
  21617.  
  21618.      string strfunc ();
  21619.      void charfunc (const char *);
  21620.  
  21621.      void
  21622.      f ()
  21623.      {
  21624.        const char *p = strfunc().c_str();
  21625.        ...
  21626.        charfunc (p);
  21627.        ...
  21628.        charfunc (p);
  21629.      }
  21630.  
  21631. In this situation, it may seem reasonable to save a pointer to the C
  21632. string returned by the `c_str' member function and use that rather than
  21633. call `c_str' repeatedly.  However, the temporary string created by the
  21634. call to `strfunc' is destroyed after `p' is initialized, at which point
  21635. `p' is left pointing to freed memory.
  21636.  
  21637.  Code like this may run successfully under some other compilers,
  21638. particularly obsolete cfront-based compilers that delete temporaries
  21639. along with normal local variables.  However, the GNU C++ behavior is
  21640. standard-conforming, so if your program depends on late destruction of
  21641. temporaries it is not portable.
  21642.  
  21643.  The safe way to write such code is to give the temporary a name, which
  21644. forces it to remain until the end of the scope of the name.  For
  21645. example:
  21646.  
  21647.      string& tmp = strfunc ();
  21648.      charfunc (tmp.c_str ());
  21649.  
  21650. 
  21651. File: gcc,  Node: Copy Assignment,  Prev: Temporaries,  Up: C++ Misunderstandings
  21652.  
  21653. 10.9.4 Implicit Copy-Assignment for Virtual Bases
  21654. -------------------------------------------------
  21655.  
  21656. When a base class is virtual, only one subobject of the base class
  21657. belongs to each full object.  Also, the constructors and destructors are
  21658. invoked only once, and called from the most-derived class.  However,
  21659. such objects behave unspecified when being assigned.  For example:
  21660.  
  21661.      struct Base{
  21662.        char *name;
  21663.        Base(char *n) : name(strdup(n)){}
  21664.        Base& operator= (const Base& other){
  21665.         free (name);
  21666.         name = strdup (other.name);
  21667.        }
  21668.      };
  21669.  
  21670.      struct A:virtual Base{
  21671.        int val;
  21672.        A():Base("A"){}
  21673.      };
  21674.  
  21675.      struct B:virtual Base{
  21676.        int bval;
  21677.        B():Base("B"){}
  21678.      };
  21679.  
  21680.      struct Derived:public A, public B{
  21681.        Derived():Base("Derived"){}
  21682.      };
  21683.  
  21684.      void func(Derived &d1, Derived &d2)
  21685.      {
  21686.        d1 = d2;
  21687.      }
  21688.  
  21689.  The C++ standard specifies that `Base::Base' is only called once when
  21690. constructing or copy-constructing a Derived object.  It is unspecified
  21691. whether `Base::operator=' is called more than once when the implicit
  21692. copy-assignment for Derived objects is invoked (as it is inside `func'
  21693. in the example).
  21694.  
  21695.  G++ implements the "intuitive" algorithm for copy-assignment: assign
  21696. all direct bases, then assign all members.  In that algorithm, the
  21697. virtual base subobject can be encountered more than once.  In the
  21698. example, copying proceeds in the following order: `val', `name' (via
  21699. `strdup'), `bval', and `name' again.
  21700.  
  21701.  If application code relies on copy-assignment, a user-defined
  21702. copy-assignment operator removes any uncertainties.  With such an
  21703. operator, the application can define whether and how the virtual base
  21704. subobject is assigned.
  21705.  
  21706. 
  21707. File: gcc,  Node: Protoize Caveats,  Next: Non-bugs,  Prev: C++ Misunderstandings,  Up: Trouble
  21708.  
  21709. 10.10 Caveats of using `protoize'
  21710. =================================
  21711.  
  21712. The conversion programs `protoize' and `unprotoize' can sometimes
  21713. change a source file in a way that won't work unless you rearrange it.
  21714.  
  21715.    * `protoize' can insert references to a type name or type tag before
  21716.      the definition, or in a file where they are not defined.
  21717.  
  21718.      If this happens, compiler error messages should show you where the
  21719.      new references are, so fixing the file by hand is straightforward.
  21720.  
  21721.    * There are some C constructs which `protoize' cannot figure out.
  21722.      For example, it can't determine argument types for declaring a
  21723.      pointer-to-function variable; this you must do by hand.  `protoize'
  21724.      inserts a comment containing `???' each time it finds such a
  21725.      variable; so you can find all such variables by searching for this
  21726.      string.  ISO C does not require declaring the argument types of
  21727.      pointer-to-function types.
  21728.  
  21729.    * Using `unprotoize' can easily introduce bugs.  If the program
  21730.      relied on prototypes to bring about conversion of arguments, these
  21731.      conversions will not take place in the program without prototypes.
  21732.      One case in which you can be sure `unprotoize' is safe is when you
  21733.      are removing prototypes that were made with `protoize'; if the
  21734.      program worked before without any prototypes, it will work again
  21735.      without them.
  21736.  
  21737.      You can find all the places where this problem might occur by
  21738.      compiling the program with the `-Wconversion' option.  It prints a
  21739.      warning whenever an argument is converted.
  21740.  
  21741.    * Both conversion programs can be confused if there are macro calls
  21742.      in and around the text to be converted.  In other words, the
  21743.      standard syntax for a declaration or definition must not result
  21744.      from expanding a macro.  This problem is inherent in the design of
  21745.      C and cannot be fixed.  If only a few functions have confusing
  21746.      macro calls, you can easily convert them manually.
  21747.  
  21748.    * `protoize' cannot get the argument types for a function whose
  21749.      definition was not actually compiled due to preprocessing
  21750.      conditionals.  When this happens, `protoize' changes nothing in
  21751.      regard to such a function.  `protoize' tries to detect such
  21752.      instances and warn about them.
  21753.  
  21754.      You can generally work around this problem by using `protoize' step
  21755.      by step, each time specifying a different set of `-D' options for
  21756.      compilation, until all of the functions have been converted.
  21757.      There is no automatic way to verify that you have got them all,
  21758.      however.
  21759.  
  21760.    * Confusion may result if there is an occasion to convert a function
  21761.      declaration or definition in a region of source code where there
  21762.      is more than one formal parameter list present.  Thus, attempts to
  21763.      convert code containing multiple (conditionally compiled) versions
  21764.      of a single function header (in the same vicinity) may not produce
  21765.      the desired (or expected) results.
  21766.  
  21767.      If you plan on converting source files which contain such code, it
  21768.      is recommended that you first make sure that each conditionally
  21769.      compiled region of source code which contains an alternative
  21770.      function header also contains at least one additional follower
  21771.      token (past the final right parenthesis of the function header).
  21772.      This should circumvent the problem.
  21773.  
  21774.    * `unprotoize' can become confused when trying to convert a function
  21775.      definition or declaration which contains a declaration for a
  21776.      pointer-to-function formal argument which has the same name as the
  21777.      function being defined or declared.  We recommend you avoid such
  21778.      choices of formal parameter names.
  21779.  
  21780.    * You might also want to correct some of the indentation by hand and
  21781.      break long lines.  (The conversion programs don't write lines
  21782.      longer than eighty characters in any case.)
  21783.  
  21784. 
  21785. File: gcc,  Node: Non-bugs,  Next: Warnings and Errors,  Prev: Protoize Caveats,  Up: Trouble
  21786.  
  21787. 10.11 Certain Changes We Don't Want to Make
  21788. ===========================================
  21789.  
  21790. This section lists changes that people frequently request, but which we
  21791. do not make because we think GCC is better without them.
  21792.  
  21793.    * Checking the number and type of arguments to a function which has
  21794.      an old-fashioned definition and no prototype.
  21795.  
  21796.      Such a feature would work only occasionally--only for calls that
  21797.      appear in the same file as the called function, following the
  21798.      definition.  The only way to check all calls reliably is to add a
  21799.      prototype for the function.  But adding a prototype eliminates the
  21800.      motivation for this feature.  So the feature is not worthwhile.
  21801.  
  21802.    * Warning about using an expression whose type is signed as a shift
  21803.      count.
  21804.  
  21805.      Shift count operands are probably signed more often than unsigned.
  21806.      Warning about this would cause far more annoyance than good.
  21807.  
  21808.    * Warning about assigning a signed value to an unsigned variable.
  21809.  
  21810.      Such assignments must be very common; warning about them would
  21811.      cause more annoyance than good.
  21812.  
  21813.    * Warning when a non-void function value is ignored.
  21814.  
  21815.      Coming as I do from a Lisp background, I balk at the idea that
  21816.      there is something dangerous about discarding a value.  There are
  21817.      functions that return values which some callers may find useful;
  21818.      it makes no sense to clutter the program with a cast to `void'
  21819.      whenever the value isn't useful.
  21820.  
  21821.    * Making `-fshort-enums' the default.
  21822.  
  21823.      This would cause storage layout to be incompatible with most other
  21824.      C compilers.  And it doesn't seem very important, given that you
  21825.      can get the same result in other ways.  The case where it matters
  21826.      most is when the enumeration-valued object is inside a structure,
  21827.      and in that case you can specify a field width explicitly.
  21828.  
  21829.    * Making bit-fields unsigned by default on particular machines where
  21830.      "the ABI standard" says to do so.
  21831.  
  21832.      The ISO C standard leaves it up to the implementation whether a
  21833.      bit-field declared plain `int' is signed or not.  This in effect
  21834.      creates two alternative dialects of C.
  21835.  
  21836.      The GNU C compiler supports both dialects; you can specify the
  21837.      signed dialect with `-fsigned-bitfields' and the unsigned dialect
  21838.      with `-funsigned-bitfields'.  However, this leaves open the
  21839.      question of which dialect to use by default.
  21840.  
  21841.      Currently, the preferred dialect makes plain bit-fields signed,
  21842.      because this is simplest.  Since `int' is the same as `signed int'
  21843.      in every other context, it is cleanest for them to be the same in
  21844.      bit-fields as well.
  21845.  
  21846.      Some computer manufacturers have published Application Binary
  21847.      Interface standards which specify that plain bit-fields should be
  21848.      unsigned.  It is a mistake, however, to say anything about this
  21849.      issue in an ABI.  This is because the handling of plain bit-fields
  21850.      distinguishes two dialects of C.  Both dialects are meaningful on
  21851.      every type of machine.  Whether a particular object file was
  21852.      compiled using signed bit-fields or unsigned is of no concern to
  21853.      other object files, even if they access the same bit-fields in the
  21854.      same data structures.
  21855.  
  21856.      A given program is written in one or the other of these two
  21857.      dialects.  The program stands a chance to work on most any machine
  21858.      if it is compiled with the proper dialect.  It is unlikely to work
  21859.      at all if compiled with the wrong dialect.
  21860.  
  21861.      Many users appreciate the GNU C compiler because it provides an
  21862.      environment that is uniform across machines.  These users would be
  21863.      inconvenienced if the compiler treated plain bit-fields
  21864.      differently on certain machines.
  21865.  
  21866.      Occasionally users write programs intended only for a particular
  21867.      machine type.  On these occasions, the users would benefit if the
  21868.      GNU C compiler were to support by default the same dialect as the
  21869.      other compilers on that machine.  But such applications are rare.
  21870.      And users writing a program to run on more than one type of
  21871.      machine cannot possibly benefit from this kind of compatibility.
  21872.  
  21873.      This is why GCC does and will treat plain bit-fields in the same
  21874.      fashion on all types of machines (by default).
  21875.  
  21876.      There are some arguments for making bit-fields unsigned by default
  21877.      on all machines.  If, for example, this becomes a universal de
  21878.      facto standard, it would make sense for GCC to go along with it.
  21879.      This is something to be considered in the future.
  21880.  
  21881.      (Of course, users strongly concerned about portability should
  21882.      indicate explicitly in each bit-field whether it is signed or not.
  21883.      In this way, they write programs which have the same meaning in
  21884.      both C dialects.)
  21885.  
  21886.    * Undefining `__STDC__' when `-ansi' is not used.
  21887.  
  21888.      Currently, GCC defines `__STDC__' unconditionally.  This provides
  21889.      good results in practice.
  21890.  
  21891.      Programmers normally use conditionals on `__STDC__' to ask whether
  21892.      it is safe to use certain features of ISO C, such as function
  21893.      prototypes or ISO token concatenation.  Since plain `gcc' supports
  21894.      all the features of ISO C, the correct answer to these questions is
  21895.      "yes".
  21896.  
  21897.      Some users try to use `__STDC__' to check for the availability of
  21898.      certain library facilities.  This is actually incorrect usage in
  21899.      an ISO C program, because the ISO C standard says that a conforming
  21900.      freestanding implementation should define `__STDC__' even though it
  21901.      does not have the library facilities.  `gcc -ansi -pedantic' is a
  21902.      conforming freestanding implementation, and it is therefore
  21903.      required to define `__STDC__', even though it does not come with
  21904.      an ISO C library.
  21905.  
  21906.      Sometimes people say that defining `__STDC__' in a compiler that
  21907.      does not completely conform to the ISO C standard somehow violates
  21908.      the standard.  This is illogical.  The standard is a standard for
  21909.      compilers that claim to support ISO C, such as `gcc -ansi'--not
  21910.      for other compilers such as plain `gcc'.  Whatever the ISO C
  21911.      standard says is relevant to the design of plain `gcc' without
  21912.      `-ansi' only for pragmatic reasons, not as a requirement.
  21913.  
  21914.      GCC normally defines `__STDC__' to be 1, and in addition defines
  21915.      `__STRICT_ANSI__' if you specify the `-ansi' option, or a `-std'
  21916.      option for strict conformance to some version of ISO C.  On some
  21917.      hosts, system include files use a different convention, where
  21918.      `__STDC__' is normally 0, but is 1 if the user specifies strict
  21919.      conformance to the C Standard.  GCC follows the host convention
  21920.      when processing system include files, but when processing user
  21921.      files it follows the usual GNU C convention.
  21922.  
  21923.    * Undefining `__STDC__' in C++.
  21924.  
  21925.      Programs written to compile with C++-to-C translators get the
  21926.      value of `__STDC__' that goes with the C compiler that is
  21927.      subsequently used.  These programs must test `__STDC__' to
  21928.      determine what kind of C preprocessor that compiler uses: whether
  21929.      they should concatenate tokens in the ISO C fashion or in the
  21930.      traditional fashion.
  21931.  
  21932.      These programs work properly with GNU C++ if `__STDC__' is defined.
  21933.      They would not work otherwise.
  21934.  
  21935.      In addition, many header files are written to provide prototypes
  21936.      in ISO C but not in traditional C.  Many of these header files can
  21937.      work without change in C++ provided `__STDC__' is defined.  If
  21938.      `__STDC__' is not defined, they will all fail, and will all need
  21939.      to be changed to test explicitly for C++ as well.
  21940.  
  21941.    * Deleting "empty" loops.
  21942.  
  21943.      Historically, GCC has not deleted "empty" loops under the
  21944.      assumption that the most likely reason you would put one in a
  21945.      program is to have a delay, so deleting them will not make real
  21946.      programs run any faster.
  21947.  
  21948.      However, the rationale here is that optimization of a nonempty loop
  21949.      cannot produce an empty one, which holds for C but is not always
  21950.      the case for C++.
  21951.  
  21952.      Moreover, with `-funroll-loops' small "empty" loops are already
  21953.      removed, so the current behavior is both sub-optimal and
  21954.      inconsistent and will change in the future.
  21955.  
  21956.    * Making side effects happen in the same order as in some other
  21957.      compiler.
  21958.  
  21959.      It is never safe to depend on the order of evaluation of side
  21960.      effects.  For example, a function call like this may very well
  21961.      behave differently from one compiler to another:
  21962.  
  21963.           void func (int, int);
  21964.  
  21965.           int i = 2;
  21966.           func (i++, i++);
  21967.  
  21968.      There is no guarantee (in either the C or the C++ standard language
  21969.      definitions) that the increments will be evaluated in any
  21970.      particular order.  Either increment might happen first.  `func'
  21971.      might get the arguments `2, 3', or it might get `3, 2', or even
  21972.      `2, 2'.
  21973.  
  21974.    * Not allowing structures with volatile fields in registers.
  21975.  
  21976.      Strictly speaking, there is no prohibition in the ISO C standard
  21977.      against allowing structures with volatile fields in registers, but
  21978.      it does not seem to make any sense and is probably not what you
  21979.      wanted to do.  So the compiler will give an error message in this
  21980.      case.
  21981.  
  21982.    * Making certain warnings into errors by default.
  21983.  
  21984.      Some ISO C testsuites report failure when the compiler does not
  21985.      produce an error message for a certain program.
  21986.  
  21987.      ISO C requires a "diagnostic" message for certain kinds of invalid
  21988.      programs, but a warning is defined by GCC to count as a
  21989.      diagnostic.  If GCC produces a warning but not an error, that is
  21990.      correct ISO C support.  If test suites call this "failure", they
  21991.      should be run with the GCC option `-pedantic-errors', which will
  21992.      turn these warnings into errors.
  21993.  
  21994.  
  21995. 
  21996. File: gcc,  Node: Warnings and Errors,  Prev: Non-bugs,  Up: Trouble
  21997.  
  21998. 10.12 Warning Messages and Error Messages
  21999. =========================================
  22000.  
  22001. The GNU compiler can produce two kinds of diagnostics: errors and
  22002. warnings.  Each kind has a different purpose:
  22003.  
  22004.      "Errors" report problems that make it impossible to compile your
  22005.      program.  GCC reports errors with the source file name and line
  22006.      number where the problem is apparent.
  22007.  
  22008.      "Warnings" report other unusual conditions in your code that _may_
  22009.      indicate a problem, although compilation can (and does) proceed.
  22010.      Warning messages also report the source file name and line number,
  22011.      but include the text `warning:' to distinguish them from error
  22012.      messages.
  22013.  
  22014.  Warnings may indicate danger points where you should check to make sure
  22015. that your program really does what you intend; or the use of obsolete
  22016. features; or the use of nonstandard features of GNU C or C++.  Many
  22017. warnings are issued only if you ask for them, with one of the `-W'
  22018. options (for instance, `-Wall' requests a variety of useful warnings).
  22019.  
  22020.  GCC always tries to compile your program if possible; it never
  22021. gratuitously rejects a program whose meaning is clear merely because
  22022. (for instance) it fails to conform to a standard.  In some cases,
  22023. however, the C and C++ standards specify that certain extensions are
  22024. forbidden, and a diagnostic _must_ be issued by a conforming compiler.
  22025. The `-pedantic' option tells GCC to issue warnings in such cases;
  22026. `-pedantic-errors' says to make them errors instead.  This does not
  22027. mean that _all_ non-ISO constructs get warnings or errors.
  22028.  
  22029.  *Note Options to Request or Suppress Warnings: Warning Options, for
  22030. more detail on these and related command-line options.
  22031.  
  22032. 
  22033. File: gcc,  Node: Bugs,  Next: Service,  Prev: Trouble,  Up: Top
  22034.  
  22035. 11 Reporting Bugs
  22036. *****************
  22037.  
  22038. Your bug reports play an essential role in making GCC reliable.
  22039.  
  22040.  When you encounter a problem, the first thing to do is to see if it is
  22041. already known.  *Note Trouble::.  If it isn't known, then you should
  22042. report the problem.
  22043.  
  22044. * Menu:
  22045.  
  22046. * Criteria:  Bug Criteria.   Have you really found a bug?
  22047. * Reporting: Bug Reporting.  How to report a bug effectively.
  22048. * Known: Trouble.            Known problems.
  22049. * Help: Service.             Where to ask for help.
  22050.  
  22051. 
  22052. File: gcc,  Node: Bug Criteria,  Next: Bug Reporting,  Up: Bugs
  22053.  
  22054. 11.1 Have You Found a Bug?
  22055. ==========================
  22056.  
  22057. If you are not sure whether you have found a bug, here are some
  22058. guidelines:
  22059.  
  22060.    * If the compiler gets a fatal signal, for any input whatever, that
  22061.      is a compiler bug.  Reliable compilers never crash.
  22062.  
  22063.    * If the compiler produces invalid assembly code, for any input
  22064.      whatever (except an `asm' statement), that is a compiler bug,
  22065.      unless the compiler reports errors (not just warnings) which would
  22066.      ordinarily prevent the assembler from being run.
  22067.  
  22068.    * If the compiler produces valid assembly code that does not
  22069.      correctly execute the input source code, that is a compiler bug.
  22070.  
  22071.      However, you must double-check to make sure, because you may have a
  22072.      program whose behavior is undefined, which happened by chance to
  22073.      give the desired results with another C or C++ compiler.
  22074.  
  22075.      For example, in many nonoptimizing compilers, you can write `x;'
  22076.      at the end of a function instead of `return x;', with the same
  22077.      results.  But the value of the function is undefined if `return'
  22078.      is omitted; it is not a bug when GCC produces different results.
  22079.  
  22080.      Problems often result from expressions with two increment
  22081.      operators, as in `f (*p++, *p++)'.  Your previous compiler might
  22082.      have interpreted that expression the way you intended; GCC might
  22083.      interpret it another way.  Neither compiler is wrong.  The bug is
  22084.      in your code.
  22085.  
  22086.      After you have localized the error to a single source line, it
  22087.      should be easy to check for these things.  If your program is
  22088.      correct and well defined, you have found a compiler bug.
  22089.  
  22090.    * If the compiler produces an error message for valid input, that is
  22091.      a compiler bug.
  22092.  
  22093.    * If the compiler does not produce an error message for invalid
  22094.      input, that is a compiler bug.  However, you should note that your
  22095.      idea of "invalid input" might be my idea of "an extension" or
  22096.      "support for traditional practice".
  22097.  
  22098.    * If you are an experienced user of one of the languages GCC
  22099.      supports, your suggestions for improvement of GCC are welcome in
  22100.      any case.
  22101.  
  22102. 
  22103. File: gcc,  Node: Bug Reporting,  Prev: Bug Criteria,  Up: Bugs
  22104.  
  22105. 11.2 How and where to Report Bugs
  22106. =================================
  22107.  
  22108. Bugs should be reported to our bug database.  Please refer to
  22109. `http://gcc.gnu.org/bugs.html' for up-to-date instructions how to
  22110. submit bug reports.  Copies of this file in HTML (`bugs.html') and
  22111. plain text (`BUGS') are also part of GCC releases.
  22112.  
  22113. 
  22114. File: gcc,  Node: Service,  Next: Contributing,  Prev: Bugs,  Up: Top
  22115.  
  22116. 12 How To Get Help with GCC
  22117. ***************************
  22118.  
  22119. If you need help installing, using or changing GCC, there are two ways
  22120. to find it:
  22121.  
  22122.    * Send a message to a suitable network mailing list.  First try
  22123.      <gcc-help@gcc.gnu.org> (for help installing or using GCC), and if
  22124.      that brings no response, try <gcc@gcc.gnu.org>.  For help changing
  22125.      GCC, ask <gcc@gcc.gnu.org>.  If you think you have found a bug in
  22126.      GCC, please report it following the instructions at *note Bug
  22127.      Reporting::.
  22128.  
  22129.    * Look in the service directory for someone who might help you for a
  22130.      fee.  The service directory is found at
  22131.      `http://www.gnu.org/prep/service.html'.
  22132.  
  22133.  For further information, see `http://gcc.gnu.org/faq.html#support'.
  22134.  
  22135. 
  22136. File: gcc,  Node: Contributing,  Next: Funding,  Prev: Service,  Up: Top
  22137.  
  22138. 13 Contributing to GCC Development
  22139. **********************************
  22140.  
  22141. If you would like to help pretest GCC releases to assure they work well,
  22142. our current development sources are available by CVS (see
  22143. `http://gcc.gnu.org/cvs.html').  Source and binary snapshots are also
  22144. available for FTP; see `http://gcc.gnu.org/snapshots.html'.
  22145.  
  22146.  If you would like to work on improvements to GCC, please read the
  22147. advice at these URLs:
  22148.  
  22149.      `http://gcc.gnu.org/contribute.html'
  22150.      `http://gcc.gnu.org/contributewhy.html'
  22151.  
  22152. for information on how to make useful contributions and avoid
  22153. duplication of effort.  Suggested projects are listed at
  22154. `http://gcc.gnu.org/projects/'.
  22155.  
  22156. 
  22157. File: gcc,  Node: Funding,  Next: GNU Project,  Prev: Contributing,  Up: Top
  22158.  
  22159. Funding Free Software
  22160. *********************
  22161.  
  22162. If you want to have more free software a few years from now, it makes
  22163. sense for you to help encourage people to contribute funds for its
  22164. development.  The most effective approach known is to encourage
  22165. commercial redistributors to donate.
  22166.  
  22167.  Users of free software systems can boost the pace of development by
  22168. encouraging for-a-fee distributors to donate part of their selling price
  22169. to free software developers--the Free Software Foundation, and others.
  22170.  
  22171.  The way to convince distributors to do this is to demand it and expect
  22172. it from them.  So when you compare distributors, judge them partly by
  22173. how much they give to free software development.  Show distributors
  22174. they must compete to be the one who gives the most.
  22175.  
  22176.  To make this approach work, you must insist on numbers that you can
  22177. compare, such as, "We will donate ten dollars to the Frobnitz project
  22178. for each disk sold."  Don't be satisfied with a vague promise, such as
  22179. "A portion of the profits are donated," since it doesn't give a basis
  22180. for comparison.
  22181.  
  22182.  Even a precise fraction "of the profits from this disk" is not very
  22183. meaningful, since creative accounting and unrelated business decisions
  22184. can greatly alter what fraction of the sales price counts as profit.
  22185. If the price you pay is $50, ten percent of the profit is probably less
  22186. than a dollar; it might be a few cents, or nothing at all.
  22187.  
  22188.  Some redistributors do development work themselves.  This is useful
  22189. too; but to keep everyone honest, you need to inquire how much they do,
  22190. and what kind.  Some kinds of development make much more long-term
  22191. difference than others.  For example, maintaining a separate version of
  22192. a program contributes very little; maintaining the standard version of a
  22193. program for the whole community contributes much.  Easy new ports
  22194. contribute little, since someone else would surely do them; difficult
  22195. ports such as adding a new CPU to the GNU Compiler Collection
  22196. contribute more; major new features or packages contribute the most.
  22197.  
  22198.  By establishing the idea that supporting further development is "the
  22199. proper thing to do" when distributing free software for a fee, we can
  22200. assure a steady flow of resources into making more free software.
  22201.  
  22202.      Copyright (C) 1994 Free Software Foundation, Inc.
  22203.      Verbatim copying and redistribution of this section is permitted
  22204.      without royalty; alteration is not permitted.
  22205.  
  22206. 
  22207. File: gcc,  Node: GNU Project,  Next: Copying,  Prev: Funding,  Up: Top
  22208.  
  22209. The GNU Project and GNU/Linux
  22210. *****************************
  22211.  
  22212. The GNU Project was launched in 1984 to develop a complete Unix-like
  22213. operating system which is free software: the GNU system.  (GNU is a
  22214. recursive acronym for "GNU's Not Unix"; it is pronounced "guh-NEW".)
  22215. Variants of the GNU operating system, which use the kernel Linux, are
  22216. now widely used; though these systems are often referred to as "Linux",
  22217. they are more accurately called GNU/Linux systems.
  22218.  
  22219.  For more information, see:
  22220.      `http://www.gnu.org/'
  22221.      `http://www.gnu.org/gnu/linux-and-gnu.html'
  22222.  
  22223. 
  22224. File: gcc,  Node: Copying,  Next: GNU Free Documentation License,  Prev: GNU Project,  Up: Top
  22225.  
  22226. GNU GENERAL PUBLIC LICENSE
  22227. **************************
  22228.  
  22229.                          Version 2, June 1991
  22230.  
  22231.      Copyright (C) 1989, 1991 Free Software Foundation, Inc.
  22232.      59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
  22233.  
  22234.      Everyone is permitted to copy and distribute verbatim copies
  22235.      of this license document, but changing it is not allowed.
  22236.  
  22237. Preamble
  22238. ========
  22239.  
  22240. The licenses for most software are designed to take away your freedom
  22241. to share and change it.  By contrast, the GNU General Public License is
  22242. intended to guarantee your freedom to share and change free
  22243. software--to make sure the software is free for all its users.  This
  22244. General Public License applies to most of the Free Software
  22245. Foundation's software and to any other program whose authors commit to
  22246. using it.  (Some other Free Software Foundation software is covered by
  22247. the GNU Library General Public License instead.)  You can apply it to
  22248. your programs, too.
  22249.  
  22250.  When we speak of free software, we are referring to freedom, not
  22251. price.  Our General Public Licenses are designed to make sure that you
  22252. have the freedom to distribute copies of free software (and charge for
  22253. this service if you wish), that you receive source code or can get it
  22254. if you want it, that you can change the software or use pieces of it in
  22255. new free programs; and that you know you can do these things.
  22256.  
  22257.  To protect your rights, we need to make restrictions that forbid
  22258. anyone to deny you these rights or to ask you to surrender the rights.
  22259. These restrictions translate to certain responsibilities for you if you
  22260. distribute copies of the software, or if you modify it.
  22261.  
  22262.  For example, if you distribute copies of such a program, whether
  22263. gratis or for a fee, you must give the recipients all the rights that
  22264. you have.  You must make sure that they, too, receive or can get the
  22265. source code.  And you must show them these terms so they know their
  22266. rights.
  22267.  
  22268.  We protect your rights with two steps: (1) copyright the software, and
  22269. (2) offer you this license which gives you legal permission to copy,
  22270. distribute and/or modify the software.
  22271.  
  22272.  Also, for each author's protection and ours, we want to make certain
  22273. that everyone understands that there is no warranty for this free
  22274. software.  If the software is modified by someone else and passed on, we
  22275. want its recipients to know that what they have is not the original, so
  22276. that any problems introduced by others will not reflect on the original
  22277. authors' reputations.
  22278.  
  22279.  Finally, any free program is threatened constantly by software
  22280. patents.  We wish to avoid the danger that redistributors of a free
  22281. program will individually obtain patent licenses, in effect making the
  22282. program proprietary.  To prevent this, we have made it clear that any
  22283. patent must be licensed for everyone's free use or not licensed at all.
  22284.  
  22285.  The precise terms and conditions for copying, distribution and
  22286. modification follow.
  22287.  
  22288.     TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
  22289.   0. This License applies to any program or other work which contains a
  22290.      notice placed by the copyright holder saying it may be distributed
  22291.      under the terms of this General Public License.  The "Program",
  22292.      below, refers to any such program or work, and a "work based on
  22293.      the Program" means either the Program or any derivative work under
  22294.      copyright law: that is to say, a work containing the Program or a
  22295.      portion of it, either verbatim or with modifications and/or
  22296.      translated into another language.  (Hereinafter, translation is
  22297.      included without limitation in the term "modification".)  Each
  22298.      licensee is addressed as "you".
  22299.  
  22300.      Activities other than copying, distribution and modification are
  22301.      not covered by this License; they are outside its scope.  The act
  22302.      of running the Program is not restricted, and the output from the
  22303.      Program is covered only if its contents constitute a work based on
  22304.      the Program (independent of having been made by running the
  22305.      Program).  Whether that is true depends on what the Program does.
  22306.  
  22307.   1. You may copy and distribute verbatim copies of the Program's
  22308.      source code as you receive it, in any medium, provided that you
  22309.      conspicuously and appropriately publish on each copy an appropriate
  22310.      copyright notice and disclaimer of warranty; keep intact all the
  22311.      notices that refer to this License and to the absence of any
  22312.      warranty; and give any other recipients of the Program a copy of
  22313.      this License along with the Program.
  22314.  
  22315.      You may charge a fee for the physical act of transferring a copy,
  22316.      and you may at your option offer warranty protection in exchange
  22317.      for a fee.
  22318.  
  22319.   2. You may modify your copy or copies of the Program or any portion
  22320.      of it, thus forming a work based on the Program, and copy and
  22321.      distribute such modifications or work under the terms of Section 1
  22322.      above, provided that you also meet all of these conditions:
  22323.  
  22324.        a. You must cause the modified files to carry prominent notices
  22325.           stating that you changed the files and the date of any change.
  22326.  
  22327.        b. You must cause any work that you distribute or publish, that
  22328.           in whole or in part contains or is derived from the Program
  22329.           or any part thereof, to be licensed as a whole at no charge
  22330.           to all third parties under the terms of this License.
  22331.  
  22332.        c. If the modified program normally reads commands interactively
  22333.           when run, you must cause it, when started running for such
  22334.           interactive use in the most ordinary way, to print or display
  22335.           an announcement including an appropriate copyright notice and
  22336.           a notice that there is no warranty (or else, saying that you
  22337.           provide a warranty) and that users may redistribute the
  22338.           program under these conditions, and telling the user how to
  22339.           view a copy of this License.  (Exception: if the Program
  22340.           itself is interactive but does not normally print such an
  22341.           announcement, your work based on the Program is not required
  22342.           to print an announcement.)
  22343.  
  22344.      These requirements apply to the modified work as a whole.  If
  22345.      identifiable sections of that work are not derived from the
  22346.      Program, and can be reasonably considered independent and separate
  22347.      works in themselves, then this License, and its terms, do not
  22348.      apply to those sections when you distribute them as separate
  22349.      works.  But when you distribute the same sections as part of a
  22350.      whole which is a work based on the Program, the distribution of
  22351.      the whole must be on the terms of this License, whose permissions
  22352.      for other licensees extend to the entire whole, and thus to each
  22353.      and every part regardless of who wrote it.
  22354.  
  22355.      Thus, it is not the intent of this section to claim rights or
  22356.      contest your rights to work written entirely by you; rather, the
  22357.      intent is to exercise the right to control the distribution of
  22358.      derivative or collective works based on the Program.
  22359.  
  22360.      In addition, mere aggregation of another work not based on the
  22361.      Program with the Program (or with a work based on the Program) on
  22362.      a volume of a storage or distribution medium does not bring the
  22363.      other work under the scope of this License.
  22364.  
  22365.   3. You may copy and distribute the Program (or a work based on it,
  22366.      under Section 2) in object code or executable form under the terms
  22367.      of Sections 1 and 2 above provided that you also do one of the
  22368.      following:
  22369.  
  22370.        a. Accompany it with the complete corresponding machine-readable
  22371.           source code, which must be distributed under the terms of
  22372.           Sections 1 and 2 above on a medium customarily used for
  22373.           software interchange; or,
  22374.  
  22375.        b. Accompany it with a written offer, valid for at least three
  22376.           years, to give any third party, for a charge no more than your
  22377.           cost of physically performing source distribution, a complete
  22378.           machine-readable copy of the corresponding source code, to be
  22379.           distributed under the terms of Sections 1 and 2 above on a
  22380.           medium customarily used for software interchange; or,
  22381.  
  22382.        c. Accompany it with the information you received as to the offer
  22383.           to distribute corresponding source code.  (This alternative is
  22384.           allowed only for noncommercial distribution and only if you
  22385.           received the program in object code or executable form with
  22386.           such an offer, in accord with Subsection b above.)
  22387.  
  22388.      The source code for a work means the preferred form of the work for
  22389.      making modifications to it.  For an executable work, complete
  22390.      source code means all the source code for all modules it contains,
  22391.      plus any associated interface definition files, plus the scripts
  22392.      used to control compilation and installation of the executable.
  22393.      However, as a special exception, the source code distributed need
  22394.      not include anything that is normally distributed (in either
  22395.      source or binary form) with the major components (compiler,
  22396.      kernel, and so on) of the operating system on which the executable
  22397.      runs, unless that component itself accompanies the executable.
  22398.  
  22399.      If distribution of executable or object code is made by offering
  22400.      access to copy from a designated place, then offering equivalent
  22401.      access to copy the source code from the same place counts as
  22402.      distribution of the source code, even though third parties are not
  22403.      compelled to copy the source along with the object code.
  22404.  
  22405.   4. You may not copy, modify, sublicense, or distribute the Program
  22406.      except as expressly provided under this License.  Any attempt
  22407.      otherwise to copy, modify, sublicense or distribute the Program is
  22408.      void, and will automatically terminate your rights under this
  22409.      License.  However, parties who have received copies, or rights,
  22410.      from you under this License will not have their licenses
  22411.      terminated so long as such parties remain in full compliance.
  22412.  
  22413.   5. You are not required to accept this License, since you have not
  22414.      signed it.  However, nothing else grants you permission to modify
  22415.      or distribute the Program or its derivative works.  These actions
  22416.      are prohibited by law if you do not accept this License.
  22417.      Therefore, by modifying or distributing the Program (or any work
  22418.      based on the Program), you indicate your acceptance of this
  22419.      License to do so, and all its terms and conditions for copying,
  22420.      distributing or modifying the Program or works based on it.
  22421.  
  22422.   6. Each time you redistribute the Program (or any work based on the
  22423.      Program), the recipient automatically receives a license from the
  22424.      original licensor to copy, distribute or modify the Program
  22425.      subject to these terms and conditions.  You may not impose any
  22426.      further restrictions on the recipients' exercise of the rights
  22427.      granted herein.  You are not responsible for enforcing compliance
  22428.      by third parties to this License.
  22429.  
  22430.   7. If, as a consequence of a court judgment or allegation of patent
  22431.      infringement or for any other reason (not limited to patent
  22432.      issues), conditions are imposed on you (whether by court order,
  22433.      agreement or otherwise) that contradict the conditions of this
  22434.      License, they do not excuse you from the conditions of this
  22435.      License.  If you cannot distribute so as to satisfy simultaneously
  22436.      your obligations under this License and any other pertinent
  22437.      obligations, then as a consequence you may not distribute the
  22438.      Program at all.  For example, if a patent license would not permit
  22439.      royalty-free redistribution of the Program by all those who
  22440.      receive copies directly or indirectly through you, then the only
  22441.      way you could satisfy both it and this License would be to refrain
  22442.      entirely from distribution of the Program.
  22443.  
  22444.      If any portion of this section is held invalid or unenforceable
  22445.      under any particular circumstance, the balance of the section is
  22446.      intended to apply and the section as a whole is intended to apply
  22447.      in other circumstances.
  22448.  
  22449.      It is not the purpose of this section to induce you to infringe any
  22450.      patents or other property right claims or to contest validity of
  22451.      any such claims; this section has the sole purpose of protecting
  22452.      the integrity of the free software distribution system, which is
  22453.      implemented by public license practices.  Many people have made
  22454.      generous contributions to the wide range of software distributed
  22455.      through that system in reliance on consistent application of that
  22456.      system; it is up to the author/donor to decide if he or she is
  22457.      willing to distribute software through any other system and a
  22458.      licensee cannot impose that choice.
  22459.  
  22460.      This section is intended to make thoroughly clear what is believed
  22461.      to be a consequence of the rest of this License.
  22462.  
  22463.   8. If the distribution and/or use of the Program is restricted in
  22464.      certain countries either by patents or by copyrighted interfaces,
  22465.      the original copyright holder who places the Program under this
  22466.      License may add an explicit geographical distribution limitation
  22467.      excluding those countries, so that distribution is permitted only
  22468.      in or among countries not thus excluded.  In such case, this
  22469.      License incorporates the limitation as if written in the body of
  22470.      this License.
  22471.  
  22472.   9. The Free Software Foundation may publish revised and/or new
  22473.      versions of the General Public License from time to time.  Such
  22474.      new versions will be similar in spirit to the present version, but
  22475.      may differ in detail to address new problems or concerns.
  22476.  
  22477.      Each version is given a distinguishing version number.  If the
  22478.      Program specifies a version number of this License which applies
  22479.      to it and "any later version", you have the option of following
  22480.      the terms and conditions either of that version or of any later
  22481.      version published by the Free Software Foundation.  If the Program
  22482.      does not specify a version number of this License, you may choose
  22483.      any version ever published by the Free Software Foundation.
  22484.  
  22485.  10. If you wish to incorporate parts of the Program into other free
  22486.      programs whose distribution conditions are different, write to the
  22487.      author to ask for permission.  For software which is copyrighted
  22488.      by the Free Software Foundation, write to the Free Software
  22489.      Foundation; we sometimes make exceptions for this.  Our decision
  22490.      will be guided by the two goals of preserving the free status of
  22491.      all derivatives of our free software and of promoting the sharing
  22492.      and reuse of software generally.
  22493.  
  22494.                                 NO WARRANTY
  22495.  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO
  22496.      WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE
  22497.      LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
  22498.      HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT
  22499.      WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT
  22500.      NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  22501.      FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS TO THE
  22502.      QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
  22503.      PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY
  22504.      SERVICING, REPAIR OR CORRECTION.
  22505.  
  22506.  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
  22507.      WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY
  22508.      MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE
  22509.      LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL,
  22510.      INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR
  22511.      INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
  22512.      DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU
  22513.      OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY
  22514.      OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN
  22515.      ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
  22516.  
  22517.                       END OF TERMS AND CONDITIONS
  22518. How to Apply These Terms to Your New Programs
  22519. =============================================
  22520.  
  22521. If you develop a new program, and you want it to be of the greatest
  22522. possible use to the public, the best way to achieve this is to make it
  22523. free software which everyone can redistribute and change under these
  22524. terms.
  22525.  
  22526.  To do so, attach the following notices to the program.  It is safest
  22527. to attach them to the start of each source file to most effectively
  22528. convey the exclusion of warranty; and each file should have at least
  22529. the "copyright" line and a pointer to where the full notice is found.
  22530.  
  22531.      ONE LINE TO GIVE THE PROGRAM'S NAME AND A BRIEF IDEA OF WHAT IT DOES.
  22532.      Copyright (C) YEAR  NAME OF AUTHOR
  22533.  
  22534.      This program is free software; you can redistribute it and/or modify
  22535.      it under the terms of the GNU General Public License as published by
  22536.      the Free Software Foundation; either version 2 of the License, or
  22537.      (at your option) any later version.
  22538.  
  22539.      This program is distributed in the hope that it will be useful,
  22540.      but WITHOUT ANY WARRANTY; without even the implied warranty of
  22541.      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  22542.      GNU General Public License for more details.
  22543.  
  22544.      You should have received a copy of the GNU General Public License
  22545.      along with this program; if not, write to the Free Software Foundation,
  22546.      Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  22547.  
  22548.  Also add information on how to contact you by electronic and paper
  22549. mail.
  22550.  
  22551.  If the program is interactive, make it output a short notice like this
  22552. when it starts in an interactive mode:
  22553.  
  22554.      Gnomovision version 69, Copyright (C) YEAR NAME OF AUTHOR
  22555.      Gnomovision comes with ABSOLUTELY NO WARRANTY; for details
  22556.      type `show w'.
  22557.      This is free software, and you are welcome to redistribute it
  22558.      under certain conditions; type `show c' for details.
  22559.  
  22560.  The hypothetical commands `show w' and `show c' should show the
  22561. appropriate parts of the General Public License.  Of course, the
  22562. commands you use may be called something other than `show w' and `show
  22563. c'; they could even be mouse-clicks or menu items--whatever suits your
  22564. program.
  22565.  
  22566.  You should also get your employer (if you work as a programmer) or your
  22567. school, if any, to sign a "copyright disclaimer" for the program, if
  22568. necessary.  Here is a sample; alter the names:
  22569.  
  22570.      Yoyodyne, Inc., hereby disclaims all copyright interest in the program
  22571.      `Gnomovision' (which makes passes at compilers) written by James Hacker.
  22572.  
  22573.      SIGNATURE OF TY COON, 1 April 1989
  22574.      Ty Coon, President of Vice
  22575.  
  22576.  This General Public License does not permit incorporating your program
  22577. into proprietary programs.  If your program is a subroutine library,
  22578. you may consider it more useful to permit linking proprietary
  22579. applications with the library.  If this is what you want to do, use the
  22580. GNU Library General Public License instead of this License.
  22581.  
  22582. 
  22583. File: gcc,  Node: GNU Free Documentation License,  Next: Contributors,  Prev: Copying,  Up: Top
  22584.  
  22585. GNU Free Documentation License
  22586. ******************************
  22587.  
  22588.                       Version 1.2, November 2002
  22589.  
  22590.      Copyright (C) 2000,2001,2002 Free Software Foundation, Inc.
  22591.      59 Temple Place, Suite 330, Boston, MA  02111-1307, USA
  22592.  
  22593.      Everyone is permitted to copy and distribute verbatim copies
  22594.      of this license document, but changing it is not allowed.
  22595.  
  22596.   0. PREAMBLE
  22597.  
  22598.      The purpose of this License is to make a manual, textbook, or other
  22599.      functional and useful document "free" in the sense of freedom: to
  22600.      assure everyone the effective freedom to copy and redistribute it,
  22601.      with or without modifying it, either commercially or
  22602.      noncommercially.  Secondarily, this License preserves for the
  22603.      author and publisher a way to get credit for their work, while not
  22604.      being considered responsible for modifications made by others.
  22605.  
  22606.      This License is a kind of "copyleft", which means that derivative
  22607.      works of the document must themselves be free in the same sense.
  22608.      It complements the GNU General Public License, which is a copyleft
  22609.      license designed for free software.
  22610.  
  22611.      We have designed this License in order to use it for manuals for
  22612.      free software, because free software needs free documentation: a
  22613.      free program should come with manuals providing the same freedoms
  22614.      that the software does.  But this License is not limited to
  22615.      software manuals; it can be used for any textual work, regardless
  22616.      of subject matter or whether it is published as a printed book.
  22617.      We recommend this License principally for works whose purpose is
  22618.      instruction or reference.
  22619.  
  22620.   1. APPLICABILITY AND DEFINITIONS
  22621.  
  22622.      This License applies to any manual or other work, in any medium,
  22623.      that contains a notice placed by the copyright holder saying it
  22624.      can be distributed under the terms of this License.  Such a notice
  22625.      grants a world-wide, royalty-free license, unlimited in duration,
  22626.      to use that work under the conditions stated herein.  The
  22627.      "Document", below, refers to any such manual or work.  Any member
  22628.      of the public is a licensee, and is addressed as "you".  You
  22629.      accept the license if you copy, modify or distribute the work in a
  22630.      way requiring permission under copyright law.
  22631.  
  22632.      A "Modified Version" of the Document means any work containing the
  22633.      Document or a portion of it, either copied verbatim, or with
  22634.      modifications and/or translated into another language.
  22635.  
  22636.      A "Secondary Section" is a named appendix or a front-matter section
  22637.      of the Document that deals exclusively with the relationship of the
  22638.      publishers or authors of the Document to the Document's overall
  22639.      subject (or to related matters) and contains nothing that could
  22640.      fall directly within that overall subject.  (Thus, if the Document
  22641.      is in part a textbook of mathematics, a Secondary Section may not
  22642.      explain any mathematics.)  The relationship could be a matter of
  22643.      historical connection with the subject or with related matters, or
  22644.      of legal, commercial, philosophical, ethical or political position
  22645.      regarding them.
  22646.  
  22647.      The "Invariant Sections" are certain Secondary Sections whose
  22648.      titles are designated, as being those of Invariant Sections, in
  22649.      the notice that says that the Document is released under this
  22650.      License.  If a section does not fit the above definition of
  22651.      Secondary then it is not allowed to be designated as Invariant.
  22652.      The Document may contain zero Invariant Sections.  If the Document
  22653.      does not identify any Invariant Sections then there are none.
  22654.  
  22655.      The "Cover Texts" are certain short passages of text that are
  22656.      listed, as Front-Cover Texts or Back-Cover Texts, in the notice
  22657.      that says that the Document is released under this License.  A
  22658.      Front-Cover Text may be at most 5 words, and a Back-Cover Text may
  22659.      be at most 25 words.
  22660.  
  22661.      A "Transparent" copy of the Document means a machine-readable copy,
  22662.      represented in a format whose specification is available to the
  22663.      general public, that is suitable for revising the document
  22664.      straightforwardly with generic text editors or (for images
  22665.      composed of pixels) generic paint programs or (for drawings) some
  22666.      widely available drawing editor, and that is suitable for input to
  22667.      text formatters or for automatic translation to a variety of
  22668.      formats suitable for input to text formatters.  A copy made in an
  22669.      otherwise Transparent file format whose markup, or absence of
  22670.      markup, has been arranged to thwart or discourage subsequent
  22671.      modification by readers is not Transparent.  An image format is
  22672.      not Transparent if used for any substantial amount of text.  A
  22673.      copy that is not "Transparent" is called "Opaque".
  22674.  
  22675.      Examples of suitable formats for Transparent copies include plain
  22676.      ASCII without markup, Texinfo input format, LaTeX input format,
  22677.      SGML or XML using a publicly available DTD, and
  22678.      standard-conforming simple HTML, PostScript or PDF designed for
  22679.      human modification.  Examples of transparent image formats include
  22680.      PNG, XCF and JPG.  Opaque formats include proprietary formats that
  22681.      can be read and edited only by proprietary word processors, SGML or
  22682.      XML for which the DTD and/or processing tools are not generally
  22683.      available, and the machine-generated HTML, PostScript or PDF
  22684.      produced by some word processors for output purposes only.
  22685.  
  22686.      The "Title Page" means, for a printed book, the title page itself,
  22687.      plus such following pages as are needed to hold, legibly, the
  22688.      material this License requires to appear in the title page.  For
  22689.      works in formats which do not have any title page as such, "Title
  22690.      Page" means the text near the most prominent appearance of the
  22691.      work's title, preceding the beginning of the body of the text.
  22692.  
  22693.      A section "Entitled XYZ" means a named subunit of the Document
  22694.      whose title either is precisely XYZ or contains XYZ in parentheses
  22695.      following text that translates XYZ in another language.  (Here XYZ
  22696.      stands for a specific section name mentioned below, such as
  22697.      "Acknowledgements", "Dedications", "Endorsements", or "History".)
  22698.      To "Preserve the Title" of such a section when you modify the
  22699.      Document means that it remains a section "Entitled XYZ" according
  22700.      to this definition.
  22701.  
  22702.      The Document may include Warranty Disclaimers next to the notice
  22703.      which states that this License applies to the Document.  These
  22704.      Warranty Disclaimers are considered to be included by reference in
  22705.      this License, but only as regards disclaiming warranties: any other
  22706.      implication that these Warranty Disclaimers may have is void and
  22707.      has no effect on the meaning of this License.
  22708.  
  22709.   2. VERBATIM COPYING
  22710.  
  22711.      You may copy and distribute the Document in any medium, either
  22712.      commercially or noncommercially, provided that this License, the
  22713.      copyright notices, and the license notice saying this License
  22714.      applies to the Document are reproduced in all copies, and that you
  22715.      add no other conditions whatsoever to those of this License.  You
  22716.      may not use technical measures to obstruct or control the reading
  22717.      or further copying of the copies you make or distribute.  However,
  22718.      you may accept compensation in exchange for copies.  If you
  22719.      distribute a large enough number of copies you must also follow
  22720.      the conditions in section 3.
  22721.  
  22722.      You may also lend copies, under the same conditions stated above,
  22723.      and you may publicly display copies.
  22724.  
  22725.   3. COPYING IN QUANTITY
  22726.  
  22727.      If you publish printed copies (or copies in media that commonly
  22728.      have printed covers) of the Document, numbering more than 100, and
  22729.      the Document's license notice requires Cover Texts, you must
  22730.      enclose the copies in covers that carry, clearly and legibly, all
  22731.      these Cover Texts: Front-Cover Texts on the front cover, and
  22732.      Back-Cover Texts on the back cover.  Both covers must also clearly
  22733.      and legibly identify you as the publisher of these copies.  The
  22734.      front cover must present the full title with all words of the
  22735.      title equally prominent and visible.  You may add other material
  22736.      on the covers in addition.  Copying with changes limited to the
  22737.      covers, as long as they preserve the title of the Document and
  22738.      satisfy these conditions, can be treated as verbatim copying in
  22739.      other respects.
  22740.  
  22741.      If the required texts for either cover are too voluminous to fit
  22742.      legibly, you should put the first ones listed (as many as fit
  22743.      reasonably) on the actual cover, and continue the rest onto
  22744.      adjacent pages.
  22745.  
  22746.      If you publish or distribute Opaque copies of the Document
  22747.      numbering more than 100, you must either include a
  22748.      machine-readable Transparent copy along with each Opaque copy, or
  22749.      state in or with each Opaque copy a computer-network location from
  22750.      which the general network-using public has access to download
  22751.      using public-standard network protocols a complete Transparent
  22752.      copy of the Document, free of added material.  If you use the
  22753.      latter option, you must take reasonably prudent steps, when you
  22754.      begin distribution of Opaque copies in quantity, to ensure that
  22755.      this Transparent copy will remain thus accessible at the stated
  22756.      location until at least one year after the last time you
  22757.      distribute an Opaque copy (directly or through your agents or
  22758.      retailers) of that edition to the public.
  22759.  
  22760.      It is requested, but not required, that you contact the authors of
  22761.      the Document well before redistributing any large number of
  22762.      copies, to give them a chance to provide you with an updated
  22763.      version of the Document.
  22764.  
  22765.   4. MODIFICATIONS
  22766.  
  22767.      You may copy and distribute a Modified Version of the Document
  22768.      under the conditions of sections 2 and 3 above, provided that you
  22769.      release the Modified Version under precisely this License, with
  22770.      the Modified Version filling the role of the Document, thus
  22771.      licensing distribution and modification of the Modified Version to
  22772.      whoever possesses a copy of it.  In addition, you must do these
  22773.      things in the Modified Version:
  22774.  
  22775.        A. Use in the Title Page (and on the covers, if any) a title
  22776.           distinct from that of the Document, and from those of
  22777.           previous versions (which should, if there were any, be listed
  22778.           in the History section of the Document).  You may use the
  22779.           same title as a previous version if the original publisher of
  22780.           that version gives permission.
  22781.  
  22782.        B. List on the Title Page, as authors, one or more persons or
  22783.           entities responsible for authorship of the modifications in
  22784.           the Modified Version, together with at least five of the
  22785.           principal authors of the Document (all of its principal
  22786.           authors, if it has fewer than five), unless they release you
  22787.           from this requirement.
  22788.  
  22789.        C. State on the Title page the name of the publisher of the
  22790.           Modified Version, as the publisher.
  22791.  
  22792.        D. Preserve all the copyright notices of the Document.
  22793.  
  22794.        E. Add an appropriate copyright notice for your modifications
  22795.           adjacent to the other copyright notices.
  22796.  
  22797.        F. Include, immediately after the copyright notices, a license
  22798.           notice giving the public permission to use the Modified
  22799.           Version under the terms of this License, in the form shown in
  22800.           the Addendum below.
  22801.  
  22802.        G. Preserve in that license notice the full lists of Invariant
  22803.           Sections and required Cover Texts given in the Document's
  22804.           license notice.
  22805.  
  22806.        H. Include an unaltered copy of this License.
  22807.  
  22808.        I. Preserve the section Entitled "History", Preserve its Title,
  22809.           and add to it an item stating at least the title, year, new
  22810.           authors, and publisher of the Modified Version as given on
  22811.           the Title Page.  If there is no section Entitled "History" in
  22812.           the Document, create one stating the title, year, authors,
  22813.           and publisher of the Document as given on its Title Page,
  22814.           then add an item describing the Modified Version as stated in
  22815.           the previous sentence.
  22816.  
  22817.        J. Preserve the network location, if any, given in the Document
  22818.           for public access to a Transparent copy of the Document, and
  22819.           likewise the network locations given in the Document for
  22820.           previous versions it was based on.  These may be placed in
  22821.           the "History" section.  You may omit a network location for a
  22822.           work that was published at least four years before the
  22823.           Document itself, or if the original publisher of the version
  22824.           it refers to gives permission.
  22825.  
  22826.        K. For any section Entitled "Acknowledgements" or "Dedications",
  22827.           Preserve the Title of the section, and preserve in the
  22828.           section all the substance and tone of each of the contributor
  22829.           acknowledgements and/or dedications given therein.
  22830.  
  22831.        L. Preserve all the Invariant Sections of the Document,
  22832.           unaltered in their text and in their titles.  Section numbers
  22833.           or the equivalent are not considered part of the section
  22834.           titles.
  22835.  
  22836.        M. Delete any section Entitled "Endorsements".  Such a section
  22837.           may not be included in the Modified Version.
  22838.  
  22839.        N. Do not retitle any existing section to be Entitled
  22840.           "Endorsements" or to conflict in title with any Invariant
  22841.           Section.
  22842.  
  22843.        O. Preserve any Warranty Disclaimers.
  22844.  
  22845.      If the Modified Version includes new front-matter sections or
  22846.      appendices that qualify as Secondary Sections and contain no
  22847.      material copied from the Document, you may at your option
  22848.      designate some or all of these sections as invariant.  To do this,
  22849.      add their titles to the list of Invariant Sections in the Modified
  22850.      Version's license notice.  These titles must be distinct from any
  22851.      other section titles.
  22852.  
  22853.      You may add a section Entitled "Endorsements", provided it contains
  22854.      nothing but endorsements of your Modified Version by various
  22855.      parties--for example, statements of peer review or that the text
  22856.      has been approved by an organization as the authoritative
  22857.      definition of a standard.
  22858.  
  22859.      You may add a passage of up to five words as a Front-Cover Text,
  22860.      and a passage of up to 25 words as a Back-Cover Text, to the end
  22861.      of the list of Cover Texts in the Modified Version.  Only one
  22862.      passage of Front-Cover Text and one of Back-Cover Text may be
  22863.      added by (or through arrangements made by) any one entity.  If the
  22864.      Document already includes a cover text for the same cover,
  22865.      previously added by you or by arrangement made by the same entity
  22866.      you are acting on behalf of, you may not add another; but you may
  22867.      replace the old one, on explicit permission from the previous
  22868.      publisher that added the old one.
  22869.  
  22870.      The author(s) and publisher(s) of the Document do not by this
  22871.      License give permission to use their names for publicity for or to
  22872.      assert or imply endorsement of any Modified Version.
  22873.  
  22874.   5. COMBINING DOCUMENTS
  22875.  
  22876.      You may combine the Document with other documents released under
  22877.      this License, under the terms defined in section 4 above for
  22878.      modified versions, provided that you include in the combination
  22879.      all of the Invariant Sections of all of the original documents,
  22880.      unmodified, and list them all as Invariant Sections of your
  22881.      combined work in its license notice, and that you preserve all
  22882.      their Warranty Disclaimers.
  22883.  
  22884.      The combined work need only contain one copy of this License, and
  22885.      multiple identical Invariant Sections may be replaced with a single
  22886.      copy.  If there are multiple Invariant Sections with the same name
  22887.      but different contents, make the title of each such section unique
  22888.      by adding at the end of it, in parentheses, the name of the
  22889.      original author or publisher of that section if known, or else a
  22890.      unique number.  Make the same adjustment to the section titles in
  22891.      the list of Invariant Sections in the license notice of the
  22892.      combined work.
  22893.  
  22894.      In the combination, you must combine any sections Entitled
  22895.      "History" in the various original documents, forming one section
  22896.      Entitled "History"; likewise combine any sections Entitled
  22897.      "Acknowledgements", and any sections Entitled "Dedications".  You
  22898.      must delete all sections Entitled "Endorsements."
  22899.  
  22900.   6. COLLECTIONS OF DOCUMENTS
  22901.  
  22902.      You may make a collection consisting of the Document and other
  22903.      documents released under this License, and replace the individual
  22904.      copies of this License in the various documents with a single copy
  22905.      that is included in the collection, provided that you follow the
  22906.      rules of this License for verbatim copying of each of the
  22907.      documents in all other respects.
  22908.  
  22909.      You may extract a single document from such a collection, and
  22910.      distribute it individually under this License, provided you insert
  22911.      a copy of this License into the extracted document, and follow
  22912.      this License in all other respects regarding verbatim copying of
  22913.      that document.
  22914.  
  22915.   7. AGGREGATION WITH INDEPENDENT WORKS
  22916.  
  22917.      A compilation of the Document or its derivatives with other
  22918.      separate and independent documents or works, in or on a volume of
  22919.      a storage or distribution medium, is called an "aggregate" if the
  22920.      copyright resulting from the compilation is not used to limit the
  22921.      legal rights of the compilation's users beyond what the individual
  22922.      works permit.  When the Document is included an aggregate, this
  22923.      License does not apply to the other works in the aggregate which
  22924.      are not themselves derivative works of the Document.
  22925.  
  22926.      If the Cover Text requirement of section 3 is applicable to these
  22927.      copies of the Document, then if the Document is less than one half
  22928.      of the entire aggregate, the Document's Cover Texts may be placed
  22929.      on covers that bracket the Document within the aggregate, or the
  22930.      electronic equivalent of covers if the Document is in electronic
  22931.      form.  Otherwise they must appear on printed covers that bracket
  22932.      the whole aggregate.
  22933.  
  22934.   8. TRANSLATION
  22935.  
  22936.      Translation is considered a kind of modification, so you may
  22937.      distribute translations of the Document under the terms of section
  22938.      4.  Replacing Invariant Sections with translations requires special
  22939.      permission from their copyright holders, but you may include
  22940.      translations of some or all Invariant Sections in addition to the
  22941.      original versions of these Invariant Sections.  You may include a
  22942.      translation of this License, and all the license notices in the
  22943.      Document, and any Warrany Disclaimers, provided that you also
  22944.      include the original English version of this License and the
  22945.      original versions of those notices and disclaimers.  In case of a
  22946.      disagreement between the translation and the original version of
  22947.      this License or a notice or disclaimer, the original version will
  22948.      prevail.
  22949.  
  22950.      If a section in the Document is Entitled "Acknowledgements",
  22951.      "Dedications", or "History", the requirement (section 4) to
  22952.      Preserve its Title (section 1) will typically require changing the
  22953.      actual title.
  22954.  
  22955.   9. TERMINATION
  22956.  
  22957.      You may not copy, modify, sublicense, or distribute the Document
  22958.      except as expressly provided for under this License.  Any other
  22959.      attempt to copy, modify, sublicense or distribute the Document is
  22960.      void, and will automatically terminate your rights under this
  22961.      License.  However, parties who have received copies, or rights,
  22962.      from you under this License will not have their licenses
  22963.      terminated so long as such parties remain in full compliance.
  22964.  
  22965.  10. FUTURE REVISIONS OF THIS LICENSE
  22966.  
  22967.      The Free Software Foundation may publish new, revised versions of
  22968.      the GNU Free Documentation License from time to time.  Such new
  22969.      versions will be similar in spirit to the present version, but may
  22970.      differ in detail to address new problems or concerns.  See
  22971.      `http://www.gnu.org/copyleft/'.
  22972.  
  22973.      Each version of the License is given a distinguishing version
  22974.      number.  If the Document specifies that a particular numbered
  22975.      version of this License "or any later version" applies to it, you
  22976.      have the option of following the terms and conditions either of
  22977.      that specified version or of any later version that has been
  22978.      published (not as a draft) by the Free Software Foundation.  If
  22979.      the Document does not specify a version number of this License,
  22980.      you may choose any version ever published (not as a draft) by the
  22981.      Free Software Foundation.
  22982.  
  22983. ADDENDUM: How to use this License for your documents
  22984. ====================================================
  22985.  
  22986. To use this License in a document you have written, include a copy of
  22987. the License in the document and put the following copyright and license
  22988. notices just after the title page:
  22989.  
  22990.        Copyright (C)  YEAR  YOUR NAME.
  22991.        Permission is granted to copy, distribute and/or modify this document
  22992.        under the terms of the GNU Free Documentation License, Version 1.2
  22993.        or any later version published by the Free Software Foundation;
  22994.        with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
  22995.        A copy of the license is included in the section entitled ``GNU
  22996.        Free Documentation License''.
  22997.  
  22998.  If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts,
  22999. replace the "with...Texts." line with this:
  23000.  
  23001.          with the Invariant Sections being LIST THEIR TITLES, with
  23002.          the Front-Cover Texts being LIST, and with the Back-Cover Texts
  23003.          being LIST.
  23004.  
  23005.  If you have Invariant Sections without Cover Texts, or some other
  23006. combination of the three, merge those two alternatives to suit the
  23007. situation.
  23008.  
  23009.  If your document contains nontrivial examples of program code, we
  23010. recommend releasing these examples in parallel under your choice of
  23011. free software license, such as the GNU General Public License, to
  23012. permit their use in free software.
  23013.  
  23014. 
  23015. File: gcc,  Node: Contributors,  Next: Option Index,  Prev: GNU Free Documentation License,  Up: Top
  23016.  
  23017. Contributors to GCC
  23018. *******************
  23019.  
  23020. The GCC project would like to thank its many contributors.  Without
  23021. them the project would not have been nearly as successful as it has
  23022. been.  Any omissions in this list are accidental.  Feel free to contact
  23023. <law@redhat.com> or <gerald@pfeifer.com> if you have been left out or
  23024. some of your contributions are not listed.  Please keep this list in
  23025. alphabetical order.
  23026.  
  23027.    * Analog Devices helped implement the support for complex data types
  23028.      and iterators.
  23029.  
  23030.    * John David Anglin for threading-related fixes and improvements to
  23031.      libstdc++-v3, and the HP-UX port.
  23032.  
  23033.    * James van Artsdalen wrote the code that makes efficient use of the
  23034.      Intel 80387 register stack.
  23035.  
  23036.    * Abramo and Roberto Bagnara for the SysV68 Motorola 3300 Delta
  23037.      Series port.
  23038.  
  23039.    * Alasdair Baird for various bug fixes.
  23040.  
  23041.    * Giovanni Bajo for analyzing lots of complicated C++ problem
  23042.      reports.
  23043.  
  23044.    * Peter Barada for his work to improve code generation for new
  23045.      ColdFire cores.
  23046.  
  23047.    * Gerald Baumgartner added the signature extension to the C++ front
  23048.      end.
  23049.  
  23050.    * Godmar Back for his Java improvements and encouragement.
  23051.  
  23052.    * Scott Bambrough for help porting the Java compiler.
  23053.  
  23054.    * Wolfgang Bangerth for processing tons of bug reports.
  23055.  
  23056.    * Jon Beniston for his Microsoft Windows port of Java.
  23057.  
  23058.    * Daniel Berlin for better DWARF2 support, faster/better
  23059.      optimizations, improved alias analysis, plus migrating us to
  23060.      Bugzilla.
  23061.  
  23062.    * Geoff Berry for his Java object serialization work and various
  23063.      patches.
  23064.  
  23065.    * Eric Blake for helping to make GCJ and libgcj conform to the
  23066.      specifications.
  23067.  
  23068.    * Segher Boessenkool for various fixes.
  23069.  
  23070.    * Hans-J. Boehm for his garbage collector, IA-64 libffi port, and
  23071.      other Java work.
  23072.  
  23073.    * Neil Booth for work on cpplib, lang hooks, debug hooks and other
  23074.      miscellaneous clean-ups.
  23075.  
  23076.    * Eric Botcazou for fixing middle- and backend bugs left and right.
  23077.  
  23078.    * Per Bothner for his direction via the steering committee and
  23079.      various improvements to our infrastructure for supporting new
  23080.      languages.  Chill front end implementation.  Initial
  23081.      implementations of cpplib, fix-header, config.guess, libio, and
  23082.      past C++ library (libg++) maintainer.  Dreaming up, designing and
  23083.      implementing much of GCJ.
  23084.  
  23085.    * Devon Bowen helped port GCC to the Tahoe.
  23086.  
  23087.    * Don Bowman for mips-vxworks contributions.
  23088.  
  23089.    * Dave Brolley for work on cpplib and Chill.
  23090.  
  23091.    * Robert Brown implemented the support for Encore 32000 systems.
  23092.  
  23093.    * Christian Bruel for improvements to local store elimination.
  23094.  
  23095.    * Herman A.J. ten Brugge for various fixes.
  23096.  
  23097.    * Joerg Brunsmann for Java compiler hacking and help with the GCJ
  23098.      FAQ.
  23099.  
  23100.    * Joe Buck for his direction via the steering committee.
  23101.  
  23102.    * Craig Burley for leadership of the Fortran effort.
  23103.  
  23104.    * Stephan Buys for contributing Doxygen notes for libstdc++.
  23105.  
  23106.    * Paolo Carlini for libstdc++ work: lots of efficiency improvements
  23107.      to the C++ strings, streambufs and formatted I/O, hard detective
  23108.      work on the frustrating localization issues, and keeping up with
  23109.      the problem reports.
  23110.  
  23111.    * John Carr for his alias work, SPARC hacking, infrastructure
  23112.      improvements, previous contributions to the steering committee,
  23113.      loop optimizations, etc.
  23114.  
  23115.    * Stephane Carrez for 68HC11 and 68HC12 ports.
  23116.  
  23117.    * Steve Chamberlain for support for the Renesas SH and H8 processors
  23118.      and the PicoJava processor, and for GCJ config fixes.
  23119.  
  23120.    * Glenn Chambers for help with the GCJ FAQ.
  23121.  
  23122.    * John-Marc Chandonia for various libgcj patches.
  23123.  
  23124.    * Scott Christley for his Objective-C contributions.
  23125.  
  23126.    * Eric Christopher for his Java porting help and clean-ups.
  23127.  
  23128.    * Branko Cibej for more warning contributions.
  23129.  
  23130.    * The GNU Classpath project for all of their merged runtime code.
  23131.  
  23132.    * Nick Clifton for arm, mcore, fr30, v850, m32r work, `--help', and
  23133.      other random hacking.
  23134.  
  23135.    * Michael Cook for libstdc++ cleanup patches to reduce warnings.
  23136.  
  23137.    * R. Kelley Cook for making GCC buildable from a read-only directory
  23138.      as well as other miscellaneous build process and documentation
  23139.      clean-ups.
  23140.  
  23141.    * Ralf Corsepius for SH testing and minor bugfixing.
  23142.  
  23143.    * Stan Cox for care and feeding of the x86 port and lots of behind
  23144.      the scenes hacking.
  23145.  
  23146.    * Alex Crain provided changes for the 3b1.
  23147.  
  23148.    * Ian Dall for major improvements to the NS32k port.
  23149.  
  23150.    * Paul Dale for his work to add uClinux platform support to the m68k
  23151.      backend.
  23152.  
  23153.    * Dario Dariol contributed the four varieties of sample programs
  23154.      that print a copy of their source.
  23155.  
  23156.    * Russell Davidson for fstream and stringstream fixes in libstdc++.
  23157.  
  23158.    * Mo DeJong for GCJ and libgcj bug fixes.
  23159.  
  23160.    * DJ Delorie for the DJGPP port, build and libiberty maintenance, and
  23161.      various bug fixes.
  23162.  
  23163.    * Gabriel Dos Reis for contributions to G++, contributions and
  23164.      maintenance of GCC diagnostics infrastructure, libstdc++-v3,
  23165.      including valarray<>, complex<>, maintaining the numerics library
  23166.      (including that pesky <limits> :-) and keeping up-to-date anything
  23167.      to do with numbers.
  23168.  
  23169.    * Ulrich Drepper for his work on glibc, testing of GCC using glibc,
  23170.      ISO C99 support, CFG dumping support, etc., plus support of the
  23171.      C++ runtime libraries including for all kinds of C interface
  23172.      issues, contributing and maintaining complex<>, sanity checking
  23173.      and disbursement, configuration architecture, libio maintenance,
  23174.      and early math work.
  23175.  
  23176.    * Zdenek Dvorak for a new loop unroller and various fixes.
  23177.  
  23178.    * Richard Earnshaw for his ongoing work with the ARM.
  23179.  
  23180.    * David Edelsohn for his direction via the steering committee,
  23181.      ongoing work with the RS6000/PowerPC port, help cleaning up Haifa
  23182.      loop changes, doing the entire AIX port of libstdc++ with his bare
  23183.      hands, and for ensuring GCC properly keeps working on AIX.
  23184.  
  23185.    * Kevin Ediger for the floating point formatting of num_put::do_put
  23186.      in libstdc++.
  23187.  
  23188.    * Phil Edwards for libstdc++ work including configuration hackery,
  23189.      documentation maintainer, chief breaker of the web pages, the
  23190.      occasional iostream bug fix, and work on shared library symbol
  23191.      versioning.
  23192.  
  23193.    * Paul Eggert for random hacking all over GCC.
  23194.  
  23195.    * Mark Elbrecht for various DJGPP improvements, and for libstdc++
  23196.      configuration support for locales and fstream-related fixes.
  23197.  
  23198.    * Vadim Egorov for libstdc++ fixes in strings, streambufs, and
  23199.      iostreams.
  23200.  
  23201.    * Christian Ehrhardt for dealing with bug reports.
  23202.  
  23203.    * Ben Elliston for his work to move the Objective-C runtime into its
  23204.      own subdirectory and for his work on autoconf.
  23205.  
  23206.    * Marc Espie for OpenBSD support.
  23207.  
  23208.    * Doug Evans for much of the global optimization framework, arc,
  23209.      m32r, and SPARC work.
  23210.  
  23211.    * Christopher Faylor for his work on the Cygwin port and for caring
  23212.      and feeding the gcc.gnu.org box and saving its users tons of spam.
  23213.  
  23214.    * Fred Fish for BeOS support and Ada fixes.
  23215.  
  23216.    * Ivan Fontes Garcia for the Portugese translation of the GCJ FAQ.
  23217.  
  23218.    * Peter Gerwinski for various bug fixes and the Pascal front end.
  23219.  
  23220.    * Kaveh Ghazi for his direction via the steering committee, amazing
  23221.      work to make `-W -Wall' useful, and continuously testing GCC on a
  23222.      plethora of platforms.
  23223.  
  23224.    * John Gilmore for a donation to the FSF earmarked improving GNU
  23225.      Java.
  23226.  
  23227.    * Judy Goldberg for c++ contributions.
  23228.  
  23229.    * Torbjorn Granlund for various fixes and the c-torture testsuite,
  23230.      multiply- and divide-by-constant optimization, improved long long
  23231.      support, improved leaf function register allocation, and his
  23232.      direction via the steering committee.
  23233.  
  23234.    * Anthony Green for his `-Os' contributions and Java front end work.
  23235.  
  23236.    * Stu Grossman for gdb hacking, allowing GCJ developers to debug our
  23237.      code.
  23238.  
  23239.    * Michael K. Gschwind contributed the port to the PDP-11.
  23240.  
  23241.    * Ron Guilmette implemented the `protoize' and `unprotoize' tools,
  23242.      the support for Dwarf symbolic debugging information, and much of
  23243.      the support for System V Release 4.  He has also worked heavily on
  23244.      the Intel 386 and 860 support.
  23245.  
  23246.    * Bruno Haible for improvements in the runtime overhead for EH, new
  23247.      warnings and assorted bug fixes.
  23248.  
  23249.    * Andrew Haley for his amazing Java compiler and library efforts.
  23250.  
  23251.    * Chris Hanson assisted in making GCC work on HP-UX for the 9000
  23252.      series 300.
  23253.  
  23254.    * Michael Hayes for various thankless work he's done trying to get
  23255.      the c30/c40 ports functional.  Lots of loop and unroll
  23256.      improvements and fixes.
  23257.  
  23258.    * Dara Hazeghi for wading through myriads of target-specific bug
  23259.      reports.
  23260.  
  23261.    * Kate Hedstrom for staking the G77 folks with an initial testsuite.
  23262.  
  23263.    * Richard Henderson for his ongoing SPARC, alpha, ia32, and ia64
  23264.      work, loop opts, and generally fixing lots of old problems we've
  23265.      ignored for years, flow rewrite and lots of further stuff,
  23266.      including reviewing tons of patches.
  23267.  
  23268.    * Aldy Hernandez for working on the PowerPC port, SIMD support, and
  23269.      various fixes.
  23270.  
  23271.    * Nobuyuki Hikichi of Software Research Associates, Tokyo,
  23272.      contributed the support for the Sony NEWS machine.
  23273.  
  23274.    * Kazu Hirata for caring and feeding the Renesas H8/300 port and
  23275.      various fixes.
  23276.  
  23277.    * Manfred Hollstein for his ongoing work to keep the m88k alive, lots
  23278.      of testing and bug fixing, particularly of our configury code.
  23279.  
  23280.    * Steve Holmgren for MachTen patches.
  23281.  
  23282.    * Jan Hubicka for his x86 port improvements.
  23283.  
  23284.    * Falk Hueffner for working on C and optimization bug reports.
  23285.  
  23286.    * Bernardo Innocenti for his m68k work, including merging of
  23287.      ColdFire improvements and uClinux support.
  23288.  
  23289.    * Christian Iseli for various bug fixes.
  23290.  
  23291.    * Kamil Iskra for general m68k hacking.
  23292.  
  23293.    * Lee Iverson for random fixes and MIPS testing.
  23294.  
  23295.    * Andreas Jaeger for testing and benchmarking of GCC and various bug
  23296.      fixes.
  23297.  
  23298.    * Jakub Jelinek for his SPARC work and sibling call optimizations as
  23299.      well as lots of bug fixes and test cases, and for improving the
  23300.      Java build system.
  23301.  
  23302.    * Janis Johnson for ia64 testing and fixes, her quality improvement
  23303.      sidetracks, and web page maintenance.
  23304.  
  23305.    * Kean Johnston for SCO OpenServer support and various fixes.
  23306.  
  23307.    * Tim Josling for the sample language treelang based originally on
  23308.      Richard Kenner's ""toy" language".
  23309.  
  23310.    * Nicolai Josuttis for additional libstdc++ documentation.
  23311.  
  23312.    * Klaus Kaempf for his ongoing work to make alpha-vms a viable
  23313.      target.
  23314.  
  23315.    * David Kashtan of SRI adapted GCC to VMS.
  23316.  
  23317.    * Ryszard Kabatek for many, many libstdc++ bug fixes and
  23318.      optimizations of strings, especially member functions, and for
  23319.      auto_ptr fixes.
  23320.  
  23321.    * Geoffrey Keating for his ongoing work to make the PPC work for
  23322.      GNU/Linux and his automatic regression tester.
  23323.  
  23324.    * Brendan Kehoe for his ongoing work with G++ and for a lot of early
  23325.      work in just about every part of libstdc++.
  23326.  
  23327.    * Oliver M. Kellogg of Deutsche Aerospace contributed the port to the
  23328.      MIL-STD-1750A.
  23329.  
  23330.    * Richard Kenner of the New York University Ultracomputer Research
  23331.      Laboratory wrote the machine descriptions for the AMD 29000, the
  23332.      DEC Alpha, the IBM RT PC, and the IBM RS/6000 as well as the
  23333.      support for instruction attributes.  He also made changes to
  23334.      better support RISC processors including changes to common
  23335.      subexpression elimination, strength reduction, function calling
  23336.      sequence handling, and condition code support, in addition to
  23337.      generalizing the code for frame pointer elimination and delay slot
  23338.      scheduling.  Richard Kenner was also the head maintainer of GCC
  23339.      for several years.
  23340.  
  23341.    * Mumit Khan for various contributions to the Cygwin and Mingw32
  23342.      ports and maintaining binary releases for Microsoft Windows hosts,
  23343.      and for massive libstdc++ porting work to Cygwin/Mingw32.
  23344.  
  23345.    * Robin Kirkham for cpu32 support.
  23346.  
  23347.    * Mark Klein for PA improvements.
  23348.  
  23349.    * Thomas Koenig for various bug fixes.
  23350.  
  23351.    * Bruce Korb for the new and improved fixincludes code.
  23352.  
  23353.    * Benjamin Kosnik for his G++ work and for leading the libstdc++-v3
  23354.      effort.
  23355.  
  23356.    * Charles LaBrec contributed the support for the Integrated Solutions
  23357.      68020 system.
  23358.  
  23359.    * Jeff Law for his direction via the steering committee,
  23360.      coordinating the entire egcs project and GCC 2.95, rolling out
  23361.      snapshots and releases, handling merges from GCC2, reviewing tons
  23362.      of patches that might have fallen through the cracks else, and
  23363.      random but extensive hacking.
  23364.  
  23365.    * Marc Lehmann for his direction via the steering committee and
  23366.      helping with analysis and improvements of x86 performance.
  23367.  
  23368.    * Ted Lemon wrote parts of the RTL reader and printer.
  23369.  
  23370.    * Kriang Lerdsuwanakij for C++ improvements including template as
  23371.      template parameter support, and many C++ fixes.
  23372.  
  23373.    * Warren Levy for tremendous work on libgcj (Java Runtime Library)
  23374.      and random work on the Java front end.
  23375.  
  23376.    * Alain Lichnewsky ported GCC to the MIPS CPU.
  23377.  
  23378.    * Oskar Liljeblad for hacking on AWT and his many Java bug reports
  23379.      and patches.
  23380.  
  23381.    * Robert Lipe for OpenServer support, new testsuites, testing, etc.
  23382.  
  23383.    * Weiwen Liu for testing and various bug fixes.
  23384.  
  23385.    * Dave Love for his ongoing work with the Fortran front end and
  23386.      runtime libraries.
  23387.  
  23388.    * Martin von Lo"wis for internal consistency checking infrastructure,
  23389.      various C++ improvements including namespace support, and tons of
  23390.      assistance with libstdc++/compiler merges.
  23391.  
  23392.    * H.J. Lu for his previous contributions to the steering committee,
  23393.      many x86 bug reports, prototype patches, and keeping the GNU/Linux
  23394.      ports working.
  23395.  
  23396.    * Greg McGary for random fixes and (someday) bounded pointers.
  23397.  
  23398.    * Andrew MacLeod for his ongoing work in building a real EH system,
  23399.      various code generation improvements, work on the global
  23400.      optimizer, etc.
  23401.  
  23402.    * Vladimir Makarov for hacking some ugly i960 problems, PowerPC
  23403.      hacking improvements to compile-time performance, overall
  23404.      knowledge and direction in the area of instruction scheduling, and
  23405.      design and implementation of the automaton based instruction
  23406.      scheduler.
  23407.  
  23408.    * Bob Manson for his behind the scenes work on dejagnu.
  23409.  
  23410.    * Philip Martin for lots of libstdc++ string and vector iterator
  23411.      fixes and improvements, and string clean up and testsuites.
  23412.  
  23413.    * All of the Mauve project contributors, for Java test code.
  23414.  
  23415.    * Bryce McKinlay for numerous GCJ and libgcj fixes and improvements.
  23416.  
  23417.    * Adam Megacz for his work on the Microsoft Windows port of GCJ.
  23418.  
  23419.    * Michael Meissner for LRS framework, ia32, m32r, v850, m88k, MIPS,
  23420.      powerpc, haifa, ECOFF debug support, and other assorted hacking.
  23421.  
  23422.    * Jason Merrill for his direction via the steering committee and
  23423.      leading the G++ effort.
  23424.  
  23425.    * David Miller for his direction via the steering committee, lots of
  23426.      SPARC work, improvements in jump.c and interfacing with the Linux
  23427.      kernel developers.
  23428.  
  23429.    * Gary Miller ported GCC to Charles River Data Systems machines.
  23430.  
  23431.    * Alfred Minarik for libstdc++ string and ios bug fixes, and turning
  23432.      the entire libstdc++ testsuite namespace-compatible.
  23433.  
  23434.    * Mark Mitchell for his direction via the steering committee,
  23435.      mountains of C++ work, load/store hoisting out of loops, alias
  23436.      analysis improvements, ISO C `restrict' support, and serving as
  23437.      release manager for GCC 3.x.
  23438.  
  23439.    * Alan Modra for various GNU/Linux bits and testing.
  23440.  
  23441.    * Toon Moene for his direction via the steering committee, Fortran
  23442.      maintenance, and his ongoing work to make us make Fortran run fast.
  23443.  
  23444.    * Jason Molenda for major help in the care and feeding of all the
  23445.      services on the gcc.gnu.org (formerly egcs.cygnus.com)
  23446.      machine--mail, web services, ftp services, etc etc.  Doing all
  23447.      this work on scrap paper and the backs of envelopes would have
  23448.      been... difficult.
  23449.  
  23450.    * Catherine Moore for fixing various ugly problems we have sent her
  23451.      way, including the haifa bug which was killing the Alpha & PowerPC
  23452.      Linux kernels.
  23453.  
  23454.    * Mike Moreton for his various Java patches.
  23455.  
  23456.    * David Mosberger-Tang for various Alpha improvements, and for the
  23457.      initial IA-64 port.
  23458.  
  23459.    * Stephen Moshier contributed the floating point emulator that
  23460.      assists in cross-compilation and permits support for floating
  23461.      point numbers wider than 64 bits and for ISO C99 support.
  23462.  
  23463.    * Bill Moyer for his behind the scenes work on various issues.
  23464.  
  23465.    * Philippe De Muyter for his work on the m68k port.
  23466.  
  23467.    * Joseph S. Myers for his work on the PDP-11 port, format checking
  23468.      and ISO C99 support, and continuous emphasis on (and contributions
  23469.      to) documentation.
  23470.  
  23471.    * Nathan Myers for his work on libstdc++-v3: architecture and
  23472.      authorship through the first three snapshots, including
  23473.      implementation of locale infrastructure, string, shadow C headers,
  23474.      and the initial project documentation (DESIGN, CHECKLIST, and so
  23475.      forth).  Later, more work on MT-safe string and shadow headers.
  23476.  
  23477.    * Felix Natter for documentation on porting libstdc++.
  23478.  
  23479.    * Nathanael Nerode for cleaning up the configuration/build process.
  23480.  
  23481.    * NeXT, Inc. donated the front end that supports the Objective-C
  23482.      language.
  23483.  
  23484.    * Hans-Peter Nilsson for the CRIS and MMIX ports, improvements to
  23485.      the search engine setup, various documentation fixes and other
  23486.      small fixes.
  23487.  
  23488.    * Geoff Noer for this work on getting cygwin native builds working.
  23489.  
  23490.    * Diego Novillo for his SPEC performance tracking web pages and
  23491.      assorted fixes in the middle end and various back ends.
  23492.  
  23493.    * David O'Brien for the FreeBSD/alpha, FreeBSD/AMD x86-64,
  23494.      FreeBSD/ARM, FreeBSD/PowerPC, and FreeBSD/SPARC64 ports and
  23495.      related infrastructure improvements.
  23496.  
  23497.    * Alexandre Oliva for various build infrastructure improvements,
  23498.      scripts and amazing testing work, including keeping libtool issues
  23499.      sane and happy.
  23500.  
  23501.    * Melissa O'Neill for various NeXT fixes.
  23502.  
  23503.    * Rainer Orth for random MIPS work, including improvements to our o32
  23504.      ABI support, improvements to dejagnu's MIPS support, Java
  23505.      configuration clean-ups and porting work, etc.
  23506.  
  23507.    * Hartmut Penner for work on the s390 port.
  23508.  
  23509.    * Paul Petersen wrote the machine description for the Alliant FX/8.
  23510.  
  23511.    * Alexandre Petit-Bianco for implementing much of the Java compiler
  23512.      and continued Java maintainership.
  23513.  
  23514.    * Matthias Pfaller for major improvements to the NS32k port.
  23515.  
  23516.    * Gerald Pfeifer for his direction via the steering committee,
  23517.      pointing out lots of problems we need to solve, maintenance of the
  23518.      web pages, and taking care of documentation maintenance in general.
  23519.  
  23520.    * Andrew Pinski for processing bug reports by the dozen.
  23521.  
  23522.    * Ovidiu Predescu for his work on the Objective-C front end and
  23523.      runtime libraries.
  23524.  
  23525.    * Jerry Quinn for major performance improvements in C++ formatted
  23526.      I/O.
  23527.  
  23528.    * Ken Raeburn for various improvements to checker, MIPS ports and
  23529.      various cleanups in the compiler.
  23530.  
  23531.    * Rolf W. Rasmussen for hacking on AWT.
  23532.  
  23533.    * David Reese of Sun Microsystems contributed to the Solaris on
  23534.      PowerPC port.
  23535.  
  23536.    * Volker Reichelt for keeping up with the problem reports.
  23537.  
  23538.    * Joern Rennecke for maintaining the sh port, loop, regmove & reload
  23539.      hacking.
  23540.  
  23541.    * Loren J. Rittle for improvements to libstdc++-v3 including the
  23542.      FreeBSD port, threading fixes, thread-related configury changes,
  23543.      critical threading documentation, and solutions to really tricky
  23544.      I/O problems, as well as keeping GCC properly working on FreeBSD
  23545.      and continuous testing.
  23546.  
  23547.    * Craig Rodrigues for processing tons of bug reports.
  23548.  
  23549.    * Gavin Romig-Koch for lots of behind the scenes MIPS work.
  23550.  
  23551.    * Ken Rose for fixes to our delay slot filling code.
  23552.  
  23553.    * Paul Rubin wrote most of the preprocessor.
  23554.  
  23555.    * Pe'tur Runo'lfsson for major performance improvements in C++
  23556.      formatted I/O and large file support in C++ filebuf.
  23557.  
  23558.    * Chip Salzenberg for libstdc++ patches and improvements to locales,
  23559.      traits, Makefiles, libio, libtool hackery, and "long long" support.
  23560.  
  23561.    * Juha Sarlin for improvements to the H8 code generator.
  23562.  
  23563.    * Greg Satz assisted in making GCC work on HP-UX for the 9000 series
  23564.      300.
  23565.  
  23566.    * Roger Sayle for improvements to constant folding and GCC's RTL
  23567.      optimizers as well as for fixing numerous bugs.
  23568.  
  23569.    * Bradley Schatz for his work on the GCJ FAQ.
  23570.  
  23571.    * Peter Schauer wrote the code to allow debugging to work on the
  23572.      Alpha.
  23573.  
  23574.    * William Schelter did most of the work on the Intel 80386 support.
  23575.  
  23576.    * Bernd Schmidt for various code generation improvements and major
  23577.      work in the reload pass as well a serving as release manager for
  23578.      GCC 2.95.3.
  23579.  
  23580.    * Peter Schmid for constant testing of libstdc++ - especially
  23581.      application testing, going above and beyond what was requested for
  23582.      the release criteria - and libstdc++ header file tweaks.
  23583.  
  23584.    * Jason Schroeder for jcf-dump patches.
  23585.  
  23586.    * Andreas Schwab for his work on the m68k port.
  23587.  
  23588.    * Joel Sherrill for his direction via the steering committee, RTEMS
  23589.      contributions and RTEMS testing.
  23590.  
  23591.    * Nathan Sidwell for many C++ fixes/improvements.
  23592.  
  23593.    * Jeffrey Siegal for helping RMS with the original design of GCC,
  23594.      some code which handles the parse tree and RTL data structures,
  23595.      constant folding and help with the original VAX & m68k ports.
  23596.  
  23597.    * Kenny Simpson for prompting libstdc++ fixes due to defect reports
  23598.      from the LWG (thereby keeping us in line with updates from the
  23599.      ISO).
  23600.  
  23601.    * Franz Sirl for his ongoing work with making the PPC port stable
  23602.      for GNU/Linux.
  23603.  
  23604.    * Andrey Slepuhin for assorted AIX hacking.
  23605.  
  23606.    * Christopher Smith did the port for Convex machines.
  23607.  
  23608.    * Danny Smith for his major efforts on the Mingw (and Cygwin) ports.
  23609.  
  23610.    * Randy Smith finished the Sun FPA support.
  23611.  
  23612.    * Scott Snyder for queue, iterator, istream, and string fixes and
  23613.      libstdc++ testsuite entries.
  23614.  
  23615.    * Brad Spencer for contributions to the GLIBCPP_FORCE_NEW technique.
  23616.  
  23617.    * Richard Stallman, for writing the original GCC and launching the
  23618.      GNU project.
  23619.  
  23620.    * Jan Stein of the Chalmers Computer Society provided support for
  23621.      Genix, as well as part of the 32000 machine description.
  23622.  
  23623.    * Nigel Stephens for various mips16 related fixes/improvements.
  23624.  
  23625.    * Jonathan Stone wrote the machine description for the Pyramid
  23626.      computer.
  23627.  
  23628.    * Graham Stott for various infrastructure improvements.
  23629.  
  23630.    * John Stracke for his Java HTTP protocol fixes.
  23631.  
  23632.    * Mike Stump for his Elxsi port, G++ contributions over the years
  23633.      and more recently his vxworks contributions
  23634.  
  23635.    * Jeff Sturm for Java porting help, bug fixes, and encouragement.
  23636.  
  23637.    * Shigeya Suzuki for this fixes for the bsdi platforms.
  23638.  
  23639.    * Ian Lance Taylor for his mips16 work, general configury hacking,
  23640.      fixincludes, etc.
  23641.  
  23642.    * Holger Teutsch provided the support for the Clipper CPU.
  23643.  
  23644.    * Gary Thomas for his ongoing work to make the PPC work for
  23645.      GNU/Linux.
  23646.  
  23647.    * Philipp Thomas for random bug fixes throughout the compiler
  23648.  
  23649.    * Jason Thorpe for thread support in libstdc++ on NetBSD.
  23650.  
  23651.    * Kresten Krab Thorup wrote the run time support for the Objective-C
  23652.      language and the fantastic Java bytecode interpreter.
  23653.  
  23654.    * Michael Tiemann for random bug fixes, the first instruction
  23655.      scheduler, initial C++ support, function integration, NS32k, SPARC
  23656.      and M88k machine description work, delay slot scheduling.
  23657.  
  23658.    * Andreas Tobler for his work porting libgcj to Darwin.
  23659.  
  23660.    * Teemu Torma for thread safe exception handling support.
  23661.  
  23662.    * Leonard Tower wrote parts of the parser, RTL generator, and RTL
  23663.      definitions, and of the VAX machine description.
  23664.  
  23665.    * Tom Tromey for internationalization support and for his many Java
  23666.      contributions and libgcj maintainership.
  23667.  
  23668.    * Lassi Tuura for improvements to config.guess to determine HP
  23669.      processor types.
  23670.  
  23671.    * Petter Urkedal for libstdc++ CXXFLAGS, math, and algorithms fixes.
  23672.  
  23673.    * Brent Verner for work with the libstdc++ cshadow files and their
  23674.      associated configure steps.
  23675.  
  23676.    * Todd Vierling for contributions for NetBSD ports.
  23677.  
  23678.    * Jonathan Wakely for contributing libstdc++ Doxygen notes and XHTML
  23679.      guidance.
  23680.  
  23681.    * Dean Wakerley for converting the install documentation from HTML
  23682.      to texinfo in time for GCC 3.0.
  23683.  
  23684.    * Krister Walfridsson for random bug fixes.
  23685.  
  23686.    * Stephen M. Webb for time and effort on making libstdc++ shadow
  23687.      files work with the tricky Solaris 8+ headers, and for pushing the
  23688.      build-time header tree.
  23689.  
  23690.    * John Wehle for various improvements for the x86 code generator,
  23691.      related infrastructure improvements to help x86 code generation,
  23692.      value range propagation and other work, WE32k port.
  23693.  
  23694.    * Ulrich Weigand for work on the s390 port.
  23695.  
  23696.    * Zack Weinberg for major work on cpplib and various other bug fixes.
  23697.  
  23698.    * Matt Welsh for help with Linux Threads support in GCJ.
  23699.  
  23700.    * Urban Widmark for help fixing java.io.
  23701.  
  23702.    * Mark Wielaard for new Java library code and his work integrating
  23703.      with Classpath.
  23704.  
  23705.    * Dale Wiles helped port GCC to the Tahoe.
  23706.  
  23707.    * Bob Wilson from Tensilica, Inc. for the Xtensa port.
  23708.  
  23709.    * Jim Wilson for his direction via the steering committee, tackling
  23710.      hard problems in various places that nobody else wanted to work
  23711.      on, strength reduction and other loop optimizations.
  23712.  
  23713.    * Carlo Wood for various fixes.
  23714.  
  23715.    * Tom Wood for work on the m88k port.
  23716.  
  23717.    * Masanobu Yuhara of Fujitsu Laboratories implemented the machine
  23718.      description for the Tron architecture (specifically, the Gmicro).
  23719.  
  23720.    * Kevin Zachmann helped ported GCC to the Tahoe.
  23721.  
  23722.    * Gilles Zunino for help porting Java to Irix.
  23723.  
  23724.  
  23725.  In addition to the above, all of which also contributed time and
  23726. energy in testing GCC, we would like to thank the following for their
  23727. contributions to testing:
  23728.  
  23729.    * Michael Abd-El-Malek
  23730.  
  23731.    * Thomas Arend
  23732.  
  23733.    * Bonzo Armstrong
  23734.  
  23735.    * Steven Ashe
  23736.  
  23737.    * Chris Baldwin
  23738.  
  23739.    * David Billinghurst
  23740.  
  23741.    * Jim Blandy
  23742.  
  23743.    * Stephane Bortzmeyer
  23744.  
  23745.    * Horst von Brand
  23746.  
  23747.    * Frank Braun
  23748.  
  23749.    * Rodney Brown
  23750.  
  23751.    * Sidney Cadot
  23752.  
  23753.    * Bradford Castalia
  23754.  
  23755.    * Ralph Doncaster
  23756.  
  23757.    * Richard Emberson
  23758.  
  23759.    * Levente Farkas
  23760.  
  23761.    * Graham Fawcett
  23762.  
  23763.    * Robert A. French
  23764.  
  23765.    * Jo"rgen Freyh
  23766.  
  23767.    * Mark K. Gardner
  23768.  
  23769.    * Charles-Antoine Gauthier
  23770.  
  23771.    * Yung Shing Gene
  23772.  
  23773.    * David Gilbert
  23774.  
  23775.    * Simon Gornall
  23776.  
  23777.    * Fred Gray
  23778.  
  23779.    * John Griffin
  23780.  
  23781.    * Patrik Hagglund
  23782.  
  23783.    * Phil Hargett
  23784.  
  23785.    * Amancio Hasty
  23786.  
  23787.    * Bryan W. Headley
  23788.  
  23789.    * Kevin B. Hendricks
  23790.  
  23791.    * Joep Jansen
  23792.  
  23793.    * Christian Joensson
  23794.  
  23795.    * David Kidd
  23796.  
  23797.    * Tobias Kuipers
  23798.  
  23799.    * Anand Krishnaswamy
  23800.  
  23801.    * llewelly
  23802.  
  23803.    * Damon Love
  23804.  
  23805.    * Brad Lucier
  23806.  
  23807.    * Matthias Klose
  23808.  
  23809.    * Martin Knoblauch
  23810.  
  23811.    * Jesse Macnish
  23812.  
  23813.    * Stefan Morrell
  23814.  
  23815.    * Anon A. Mous
  23816.  
  23817.    * Matthias Mueller
  23818.  
  23819.    * Pekka Nikander
  23820.  
  23821.    * Jon Olson
  23822.  
  23823.    * Magnus Persson
  23824.  
  23825.    * Chris Pollard
  23826.  
  23827.    * Richard Polton
  23828.  
  23829.    * David Rees
  23830.  
  23831.    * Paul Reilly
  23832.  
  23833.    * Tom Reilly
  23834.  
  23835.    * Torsten Rueger
  23836.  
  23837.    * Danny Sadinoff
  23838.  
  23839.    * Marc Schifer
  23840.  
  23841.    * David Schuler
  23842.  
  23843.    * Vin Shelton
  23844.  
  23845.    * Tim Souder
  23846.  
  23847.    * Adam Sulmicki
  23848.  
  23849.    * George Talbot
  23850.  
  23851.    * Gregory Warnes
  23852.  
  23853.    * David E. Young
  23854.  
  23855.    * And many others
  23856.  
  23857.  And finally we'd like to thank everyone who uses the compiler, submits
  23858. bug reports and generally reminds us why we're doing this work in the
  23859. first place.
  23860.  
  23861. 
  23862. File: gcc,  Node: Option Index,  Next: Keyword Index,  Prev: Contributors,  Up: Top
  23863.  
  23864. Option Index
  23865. ************
  23866.  
  23867. GCC's command line options are indexed here without any initial `-' or
  23868. `--'.  Where an option has both positive and negative forms (such as
  23869. `-fOPTION' and `-fno-OPTION'), relevant entries in the manual are
  23870. indexed under the most appropriate form; it may sometimes be useful to
  23871. look up both forms.
  23872.  
  23873. [index]
  23874. * Menu:
  23875.  
  23876. * ###:                                   Overall Options.    (line  174)
  23877. * -mf930:                                SPARC Options.      (line  122)
  23878. * -mf934:                                SPARC Options.      (line  122)
  23879. * A:                                     Preprocessor Options.
  23880.                                                              (line  474)
  23881. * all_load:                              Darwin Options.     (line   11)
  23882. * allowable_client:                      Darwin Options.     (line   87)
  23883. * ansi <1>:                              Non-bugs.           (line  102)
  23884. * ansi <2>:                              Other Builtins.     (line   22)
  23885. * ansi <3>:                              Preprocessor Options.
  23886.                                                              (line  308)
  23887. * ansi <4>:                              C Dialect Options.  (line   10)
  23888. * ansi:                                  Standards.          (line   13)
  23889. * arch_errors_fatal:                     Darwin Options.     (line   15)
  23890. * arch_only:                             Darwin Options.     (line   87)
  23891. * aux-info:                              C Dialect Options.  (line   97)
  23892. * b:                                     Target Options.     (line   13)
  23893. * B:                                     Directory Options.  (line   55)
  23894. * bcopy-builtin:                         PDP-11 Options.     (line   32)
  23895. * bind_at_load:                          Darwin Options.     (line   19)
  23896. * bundle:                                Darwin Options.     (line   24)
  23897. * bundle_loader:                         Darwin Options.     (line   28)
  23898. * c:                                     Link Options.       (line   20)
  23899. * C:                                     Preprocessor Options.
  23900.                                                              (line  521)
  23901. * c:                                     Overall Options.    (line  126)
  23902. * client_name:                           Darwin Options.     (line   87)
  23903. * compatibility_version:                 Darwin Options.     (line   87)
  23904. * crossjumping:                          Optimize Options.   (line  382)
  23905. * current_version:                       Darwin Options.     (line   87)
  23906. * D:                                     Preprocessor Options.
  23907.                                                              (line   33)
  23908. * d:                                     Debugging Options.  (line  199)
  23909. * da:                                    Debugging Options.  (line  327)
  23910. * dA:                                    Debugging Options.  (line  210)
  23911. * dB:                                    Debugging Options.  (line  217)
  23912. * db:                                    Debugging Options.  (line  214)
  23913. * dC:                                    Debugging Options.  (line  224)
  23914. * dc:                                    Debugging Options.  (line  220)
  23915. * dD <1>:                                Preprocessor Options.
  23916.                                                              (line  502)
  23917. * dD:                                    Debugging Options.  (line  234)
  23918. * dd:                                    Debugging Options.  (line  229)
  23919. * dE:                                    Debugging Options.  (line  238)
  23920. * dependency-file:                       Darwin Options.     (line   87)
  23921. * dF:                                    Debugging Options.  (line  245)
  23922. * df:                                    Debugging Options.  (line  241)
  23923. * dG:                                    Debugging Options.  (line  251)
  23924. * dg:                                    Debugging Options.  (line  248)
  23925. * dH:                                    Debugging Options.  (line  330)
  23926. * dh:                                    Debugging Options.  (line  255)
  23927. * dI:                                    Preprocessor Options.
  23928.                                                              (line  511)
  23929. * di:                                    Debugging Options.  (line  258)
  23930. * dj:                                    Debugging Options.  (line  261)
  23931. * dk:                                    Debugging Options.  (line  264)
  23932. * dL:                                    Debugging Options.  (line  271)
  23933. * dl:                                    Debugging Options.  (line  268)
  23934. * dM:                                    Preprocessor Options.
  23935.                                                              (line  490)
  23936. * dm:                                    Debugging Options.  (line  333)
  23937. * dM:                                    Debugging Options.  (line  275)
  23938. * dN <1>:                                Preprocessor Options.
  23939.                                                              (line  508)
  23940. * dN:                                    Debugging Options.  (line  282)
  23941. * dn:                                    Debugging Options.  (line  279)
  23942. * do:                                    Debugging Options.  (line  285)
  23943. * dP:                                    Debugging Options.  (line  342)
  23944. * dp:                                    Debugging Options.  (line  337)
  23945. * dR:                                    Debugging Options.  (line  291)
  23946. * dr:                                    Debugging Options.  (line  288)
  23947. * dS:                                    Debugging Options.  (line  298)
  23948. * ds:                                    Debugging Options.  (line  294)
  23949. * dT:                                    Debugging Options.  (line  305)
  23950. * dt:                                    Debugging Options.  (line  301)
  23951. * dU:                                    Debugging Options.  (line  311)
  23952. * du:                                    Debugging Options.  (line  308)
  23953. * dumpmachine:                           Debugging Options.  (line  504)
  23954. * dumpspecs:                             Debugging Options.  (line  512)
  23955. * dumpversion:                           Debugging Options.  (line  508)
  23956. * dv:                                    Debugging Options.  (line  346)
  23957. * dV:                                    Debugging Options.  (line  314)
  23958. * dw:                                    Debugging Options.  (line  318)
  23959. * dx:                                    Debugging Options.  (line  351)
  23960. * dy:                                    Debugging Options.  (line  355)
  23961. * dylib_file:                            Darwin Options.     (line   87)
  23962. * dylinker_install_name:                 Darwin Options.     (line   87)
  23963. * dynamic:                               Darwin Options.     (line   87)
  23964. * dynamiclib:                            Darwin Options.     (line   87)
  23965. * dZ:                                    Debugging Options.  (line  324)
  23966. * dz:                                    Debugging Options.  (line  321)
  23967. * E <1>:                                 Link Options.       (line   20)
  23968. * E:                                     Overall Options.    (line  147)
  23969. * EB <1>:                                ARC Options.        (line   12)
  23970. * EB:                                    MIPS Options.       (line    7)
  23971. * EL <1>:                                ARC Options.        (line    9)
  23972. * EL:                                    MIPS Options.       (line   10)
  23973. * exported_symbols_list:                 Darwin Options.     (line   87)
  23974. * fabi-version:                          C++ Dialect Options.
  23975.                                                              (line   20)
  23976. * falign-functions:                      Optimize Options.   (line  644)
  23977. * falign-jumps:                          Optimize Options.   (line  694)
  23978. * falign-labels:                         Optimize Options.   (line  662)
  23979. * falign-loops:                          Optimize Options.   (line  680)
  23980. * fargument-alias:                       Code Gen Options.   (line  314)
  23981. * fargument-noalias:                     Code Gen Options.   (line  314)
  23982. * fargument-noalias-global:              Code Gen Options.   (line  314)
  23983. * fbounds-check:                         Code Gen Options.   (line   15)
  23984. * fbranch-probabilities:                 Optimize Options.   (line  876)
  23985. * fbranch-target-load-optimize:          Optimize Options.   (line 1004)
  23986. * fbranch-target-load-optimize2:         Optimize Options.   (line 1010)
  23987. * fcall-saved <1>:                       Interoperation.     (line  197)
  23988. * fcall-saved:                           Code Gen Options.   (line  230)
  23989. * fcall-used:                            Code Gen Options.   (line  216)
  23990. * fcaller-saves:                         Optimize Options.   (line  516)
  23991. * fcheck-new:                            C++ Dialect Options.
  23992.                                                              (line   34)
  23993. * fcommon:                               Variable Attributes.
  23994.                                                              (line   92)
  23995. * fcond-mismatch:                        C Dialect Options.  (line  197)
  23996. * fconserve-space:                       C++ Dialect Options.
  23997.                                                              (line   44)
  23998. * fconstant-string-class:                Objective-C Dialect Options.
  23999.                                                              (line   24)
  24000. * fcse-follow-jumps:                     Optimize Options.   (line  311)
  24001. * fcse-skip-blocks:                      Optimize Options.   (line  320)
  24002. * fdata-sections:                        Optimize Options.   (line  985)
  24003. * fdelayed-branch:                       Optimize Options.   (line  435)
  24004. * fdelete-null-pointer-checks:           Optimize Options.   (line  404)
  24005. * fdiagnostics-show-location:            Language Independent Options.
  24006.                                                              (line   21)
  24007. * fdollars-in-identifiers <1>:           Interoperation.     (line  193)
  24008. * fdollars-in-identifiers:               Preprocessor Options.
  24009.                                                              (line  409)
  24010. * fdump-class-hierarchy:                 Debugging Options.  (line  374)
  24011. * fdump-translation-unit:                Debugging Options.  (line  366)
  24012. * fdump-tree:                            Debugging Options.  (line  382)
  24013. * fdump-unnumbered:                      Debugging Options.  (line  358)
  24014. * feliminate-dwarf2-dups:                Debugging Options.  (line  112)
  24015. * feliminate-unused-debug-symbols:       Debugging Options.  (line   53)
  24016. * feliminate-unused-debug-types:         Debugging Options.  (line  516)
  24017. * fexceptions:                           Code Gen Options.   (line   34)
  24018. * fexec-charset:                         Preprocessor Options.
  24019.                                                              (line  431)
  24020. * fexpensive-optimizations:              Optimize Options.   (line  417)
  24021. * ffast-math:                            Optimize Options.   (line  767)
  24022. * ffinite-math-only:                     Optimize Options.   (line  807)
  24023. * ffixed:                                Code Gen Options.   (line  204)
  24024. * ffloat-store <1>:                      Disappointments.    (line   79)
  24025. * ffloat-store:                          Optimize Options.   (line  753)
  24026. * ffor-scope:                            C++ Dialect Options.
  24027.                                                              (line   81)
  24028. * fforce-addr:                           Optimize Options.   (line  141)
  24029. * fforce-mem:                            Optimize Options.   (line  132)
  24030. * ffreestanding <1>:                     Function Attributes.
  24031.                                                              (line  168)
  24032. * ffreestanding <2>:                     C Dialect Options.  (line  162)
  24033. * ffreestanding:                         Standards.          (line   81)
  24034. * ffunction-sections:                    Optimize Options.   (line  985)
  24035. * fgcse:                                 Optimize Options.   (line  339)
  24036. * fgcse-las:                             Optimize Options.   (line  368)
  24037. * fgcse-lm:                              Optimize Options.   (line  350)
  24038. * fgcse-sm:                              Optimize Options.   (line  359)
  24039. * fgnu-runtime:                          Objective-C Dialect Options.
  24040.                                                              (line   33)
  24041. * fhosted:                               C Dialect Options.  (line  155)
  24042. * filelist:                              Darwin Options.     (line   87)
  24043. * finhibit-size-directive:               Code Gen Options.   (line  154)
  24044. * finline-functions:                     Optimize Options.   (line  173)
  24045. * finline-limit:                         Optimize Options.   (line  184)
  24046. * finput-charset:                        Preprocessor Options.
  24047.                                                              (line  444)
  24048. * finstrument-functions <1>:             Function Attributes.
  24049.                                                              (line  244)
  24050. * finstrument-functions:                 Code Gen Options.   (line  255)
  24051. * fkeep-inline-functions <1>:            Inline.             (line   51)
  24052. * fkeep-inline-functions:                Optimize Options.   (line  222)
  24053. * fkeep-static-consts:                   Optimize Options.   (line  228)
  24054. * flat_namespace:                        Darwin Options.     (line   87)
  24055. * fleading-underscore:                   Code Gen Options.   (line  329)
  24056. * floop-optimize:                        Optimize Options.   (line  375)
  24057. * fmem-report:                           Debugging Options.  (line  137)
  24058. * fmessage-length:                       Language Independent Options.
  24059.                                                              (line   15)
  24060. * fmove-all-movables:                    Optimize Options.   (line  529)
  24061. * fms-extensions <1>:                    C++ Dialect Options.
  24062.                                                              (line  116)
  24063. * fms-extensions:                        C Dialect Options.  (line  172)
  24064. * fnew-ra:                               Optimize Options.   (line  257)
  24065. * fnext-runtime:                         Objective-C Dialect Options.
  24066.                                                              (line   37)
  24067. * fno-access-control:                    C++ Dialect Options.
  24068.                                                              (line   30)
  24069. * fno-asm:                               C Dialect Options.  (line  113)
  24070. * fno-branch-count-reg:                  Optimize Options.   (line  262)
  24071. * fno-builtin <1>:                       Other Builtins.     (line   14)
  24072. * fno-builtin:                           C Dialect Options.  (line  127)
  24073. * fno-common <1>:                        Variable Attributes.
  24074.                                                              (line   92)
  24075. * fno-common:                            Code Gen Options.   (line  142)
  24076. * fno-const-strings:                     C++ Dialect Options.
  24077.                                                              (line   56)
  24078. * fno-cprop-registers:                   Optimize Options.   (line  725)
  24079. * fno-default-inline <1>:                Inline.             (line   46)
  24080. * fno-default-inline <2>:                Optimize Options.   (line  117)
  24081. * fno-default-inline:                    C++ Dialect Options.
  24082.                                                              (line  187)
  24083. * fno-defer-pop:                         Optimize Options.   (line  124)
  24084. * fno-elide-constructors:                C++ Dialect Options.
  24085.                                                              (line   67)
  24086. * fno-enforce-eh-specs:                  C++ Dialect Options.
  24087.                                                              (line   73)
  24088. * fno-for-scope:                         C++ Dialect Options.
  24089.                                                              (line   81)
  24090. * fno-function-cse:                      Optimize Options.   (line  273)
  24091. * fno-gnu-keywords:                      C++ Dialect Options.
  24092.                                                              (line   93)
  24093. * fno-guess-branch-probability:          Optimize Options.   (line  563)
  24094. * fno-ident:                             Code Gen Options.   (line  151)
  24095. * fno-implement-inlines <1>:             C++ Interface.      (line   91)
  24096. * fno-implement-inlines:                 C++ Dialect Options.
  24097.                                                              (line  110)
  24098. * fno-implicit-inline-templates:         C++ Dialect Options.
  24099.                                                              (line  104)
  24100. * fno-implicit-templates <1>:            Template Instantiation.
  24101.                                                              (line   87)
  24102. * fno-implicit-templates:                C++ Dialect Options.
  24103.                                                              (line   98)
  24104. * fno-inline:                            Optimize Options.   (line  167)
  24105. * fno-math-errno:                        Optimize Options.   (line  780)
  24106. * fno-nil-receivers:                     Objective-C Dialect Options.
  24107.                                                              (line   43)
  24108. * fno-nonansi-builtins:                  C++ Dialect Options.
  24109.                                                              (line  121)
  24110. * fno-operator-names:                    C++ Dialect Options.
  24111.                                                              (line  126)
  24112. * fno-optional-diags:                    C++ Dialect Options.
  24113.                                                              (line  130)
  24114. * fno-peephole:                          Optimize Options.   (line  554)
  24115. * fno-peephole2:                         Optimize Options.   (line  554)
  24116. * fno-rtti:                              C++ Dialect Options.
  24117.                                                              (line  145)
  24118. * fno-sched-interblock:                  Optimize Options.   (line  461)
  24119. * fno-sched-spec:                        Optimize Options.   (line  466)
  24120. * fno-show-column:                       Preprocessor Options.
  24121.                                                              (line  469)
  24122. * fno-signed-bitfields:                  C Dialect Options.  (line  230)
  24123. * fno-stack-limit:                       Code Gen Options.   (line  298)
  24124. * fno-trapping-math:                     Optimize Options.   (line  817)
  24125. * fno-unsigned-bitfields:                C Dialect Options.  (line  230)
  24126. * fno-weak:                              C++ Dialect Options.
  24127.                                                              (line  172)
  24128. * fno-working-directory:                 Preprocessor Options.
  24129.                                                              (line  454)
  24130. * fno-zero-initialized-in-bss:           Optimize Options.   (line  284)
  24131. * fnon-call-exceptions:                  Code Gen Options.   (line   48)
  24132. * fobjc-exceptions:                      Objective-C Dialect Options.
  24133.                                                              (line   50)
  24134. * fold-unroll-all-loops:                 Optimize Options.   (line  960)
  24135. * fold-unroll-loops:                     Optimize Options.   (line  952)
  24136. * fomit-frame-pointer:                   Optimize Options.   (line  146)
  24137. * foptimize-register-move:               Optimize Options.   (line  424)
  24138. * foptimize-sibling-calls:               Optimize Options.   (line  162)
  24139. * force_cpusubtype_ALL:                  Darwin Options.     (line   87)
  24140. * force_flat_namespace:                  Darwin Options.     (line   87)
  24141. * fpack-struct:                          Code Gen Options.   (line  247)
  24142. * fpcc-struct-return <1>:                Incompatibilities.  (line  174)
  24143. * fpcc-struct-return:                    Code Gen Options.   (line   70)
  24144. * fpch-deps:                             Preprocessor Options.
  24145.                                                              (line  281)
  24146. * fpeel-loops:                           Optimize Options.   (line  941)
  24147. * fpermissive:                           C++ Dialect Options.
  24148.                                                              (line  135)
  24149. * fPIC:                                  Code Gen Options.   (line  188)
  24150. * fpic:                                  Code Gen Options.   (line  170)
  24151. * fPIE:                                  Code Gen Options.   (line  198)
  24152. * fpie:                                  Code Gen Options.   (line  198)
  24153. * fprefetch-loop-arrays:                 Optimize Options.   (line  977)
  24154. * fpreprocessed:                         Preprocessor Options.
  24155.                                                              (line  412)
  24156. * fprofile-arcs <1>:                     Other Builtins.     (line  227)
  24157. * fprofile-arcs:                         Debugging Options.  (line  141)
  24158. * fprofile-generate:                     Optimize Options.   (line  732)
  24159. * fprofile-use:                          Optimize Options.   (line  741)
  24160. * fprofile-values:                       Optimize Options.   (line  895)
  24161. * frandom-string:                        Debugging Options.  (line  415)
  24162. * freduce-all-givs:                      Optimize Options.   (line  533)
  24163. * freg-struct-return:                    Code Gen Options.   (line   88)
  24164. * fregmove:                              Optimize Options.   (line  424)
  24165. * frename-registers:                     Optimize Options.   (line  707)
  24166. * freorder-blocks:                       Optimize Options.   (line  581)
  24167. * freorder-functions:                    Optimize Options.   (line  587)
  24168. * freplace-objc-classes:                 Objective-C Dialect Options.
  24169.                                                              (line  135)
  24170. * frepo <1>:                             Template Instantiation.
  24171.                                                              (line   62)
  24172. * frepo:                                 C++ Dialect Options.
  24173.                                                              (line  140)
  24174. * frerun-cse-after-loop:                 Optimize Options.   (line  328)
  24175. * frerun-loop-opt:                       Optimize Options.   (line  334)
  24176. * frounding-math:                        Optimize Options.   (line  832)
  24177. * fsched-spec-load:                      Optimize Options.   (line  471)
  24178. * fsched-spec-load-dangerous:            Optimize Options.   (line  476)
  24179. * fsched-stalled-insns:                  Optimize Options.   (line  481)
  24180. * fsched-stalled-insns-dep:              Optimize Options.   (line  486)
  24181. * fsched-verbose:                        Debugging Options.  (line  425)
  24182. * fsched2-use-superblocks:               Optimize Options.   (line  493)
  24183. * fsched2-use-traces:                    Optimize Options.   (line  504)
  24184. * fschedule-insns:                       Optimize Options.   (line  442)
  24185. * fschedule-insns2:                      Optimize Options.   (line  452)
  24186. * fshared-data:                          Code Gen Options.   (line  135)
  24187. * fshort-double:                         Code Gen Options.   (line  117)
  24188. * fshort-enums <1>:                      Non-bugs.           (line   37)
  24189. * fshort-enums <2>:                      Type Attributes.    (line  112)
  24190. * fshort-enums:                          Code Gen Options.   (line  106)
  24191. * fshort-wchar:                          Code Gen Options.   (line  125)
  24192. * fsignaling-nans:                       Optimize Options.   (line  852)
  24193. * fsigned-bitfields <1>:                 Non-bugs.           (line   52)
  24194. * fsigned-bitfields:                     C Dialect Options.  (line  230)
  24195. * fsigned-char:                          C Dialect Options.  (line  220)
  24196. * fsingle-precision-constant:            Optimize Options.   (line  867)
  24197. * fstack-check:                          Code Gen Options.   (line  283)
  24198. * fstack-limit-register:                 Code Gen Options.   (line  298)
  24199. * fstack-limit-symbol:                   Code Gen Options.   (line  298)
  24200. * fstats:                                C++ Dialect Options.
  24201.                                                              (line  153)
  24202. * fstrength-reduce:                      Optimize Options.   (line  296)
  24203. * fstrict-aliasing:                      Optimize Options.   (line  601)
  24204. * fsyntax-only:                          Warning Options.    (line   22)
  24205. * ftabstop:                              Preprocessor Options.
  24206.                                                              (line  425)
  24207. * ftemplate-depth:                       C++ Dialect Options.
  24208.                                                              (line  158)
  24209. * ftest-coverage:                        Debugging Options.  (line  190)
  24210. * fthread-jumps:                         Optimize Options.   (line  302)
  24211. * ftime-report:                          Debugging Options.  (line  133)
  24212. * ftracer:                               Optimize Options.   (line  917)
  24213. * ftrapv:                                Code Gen Options.   (line   22)
  24214. * funit-at-a-time:                       Optimize Options.   (line  922)
  24215. * funroll-all-loops:                     Optimize Options.   (line  935)
  24216. * funroll-loops <1>:                     Non-bugs.           (line  168)
  24217. * funroll-loops:                         Optimize Options.   (line  927)
  24218. * funsafe-math-optimizations:            Optimize Options.   (line  793)
  24219. * funsigned-bitfields <1>:               Non-bugs.           (line   52)
  24220. * funsigned-bitfields:                   C Dialect Options.  (line  230)
  24221. * funsigned-char:                        C Dialect Options.  (line  202)
  24222. * funswitch-loops:                       Optimize Options.   (line  947)
  24223. * funwind-tables:                        Code Gen Options.   (line   57)
  24224. * fuse-cxa-atexit:                       C++ Dialect Options.
  24225.                                                              (line  165)
  24226. * fverbose-asm:                          Code Gen Options.   (line  161)
  24227. * fvpt:                                  Optimize Options.   (line  903)
  24228. * fweb:                                  Optimize Options.   (line  714)
  24229. * fwide-exec-charset:                    Preprocessor Options.
  24230.                                                              (line  436)
  24231. * fworking-directory:                    Preprocessor Options.
  24232.                                                              (line  454)
  24233. * fwrapv:                                Code Gen Options.   (line   26)
  24234. * fwritable-strings <1>:                 Incompatibilities.  (line   22)
  24235. * fwritable-strings:                     C Dialect Options.  (line  236)
  24236. * fzero-link:                            Objective-C Dialect Options.
  24237.                                                              (line  145)
  24238. * G <1>:                                 System V Options.   (line   10)
  24239. * G <2>:                                 MIPS Options.       (line  177)
  24240. * G <3>:                                 RS/6000 and PowerPC Options.
  24241.                                                              (line  508)
  24242. * G:                                     M32R/D Options.     (line   57)
  24243. * g:                                     Debugging Options.  (line   10)
  24244. * gcoff:                                 Debugging Options.  (line   63)
  24245. * gdwarf-2:                              Debugging Options.  (line   81)
  24246. * gen-decls:                             Objective-C Dialect Options.
  24247.                                                              (line  155)
  24248. * ggdb:                                  Debugging Options.  (line   39)
  24249. * gnu-ld:                                HPPA Options.       (line  110)
  24250. * gstabs:                                Debugging Options.  (line   45)
  24251. * gstabs+:                               Debugging Options.  (line   57)
  24252. * gvms:                                  Debugging Options.  (line   85)
  24253. * gxcoff:                                Debugging Options.  (line   68)
  24254. * gxcoff+:                               Debugging Options.  (line   73)
  24255. * H:                                     Preprocessor Options.
  24256.                                                              (line  576)
  24257. * headerpad_max_install_names:           Darwin Options.     (line   87)
  24258. * help <1>:                              Preprocessor Options.
  24259.                                                              (line  568)
  24260. * help:                                  Overall Options.    (line  185)
  24261. * hp-ld:                                 HPPA Options.       (line  120)
  24262. * I <1>:                                 Directory Options.  (line   10)
  24263. * I:                                     Preprocessor Options.
  24264.                                                              (line   65)
  24265. * I- <1>:                                Directory Options.  (line   31)
  24266. * I-:                                    Preprocessor Options.
  24267.                                                              (line  345)
  24268. * idirafter:                             Preprocessor Options.
  24269.                                                              (line  386)
  24270. * if-conversion:                         Optimize Options.   (line  389)
  24271. * if-conversion2:                        Optimize Options.   (line  398)
  24272. * imacros:                               Preprocessor Options.
  24273.                                                              (line  377)
  24274. * image_base:                            Darwin Options.     (line   87)
  24275. * include:                               Preprocessor Options.
  24276.                                                              (line  366)
  24277. * init:                                  Darwin Options.     (line   87)
  24278. * install_name:                          Darwin Options.     (line   87)
  24279. * iprefix:                               Preprocessor Options.
  24280.                                                              (line  391)
  24281. * isystem:                               Preprocessor Options.
  24282.                                                              (line  403)
  24283. * iwithprefix:                           Preprocessor Options.
  24284.                                                              (line  397)
  24285. * iwithprefixbefore:                     Preprocessor Options.
  24286.                                                              (line  397)
  24287. * keep_private_externs:                  Darwin Options.     (line   87)
  24288. * L:                                     Directory Options.  (line   51)
  24289. * l:                                     Link Options.       (line   26)
  24290. * lobjc:                                 Link Options.       (line   53)
  24291. * M:                                     Preprocessor Options.
  24292.                                                              (line  174)
  24293. * m1:                                    SH Options.         (line    9)
  24294. * m10:                                   PDP-11 Options.     (line   29)
  24295. * m128bit-long-double:                   i386 and x86-64 Options.
  24296.                                                              (line  216)
  24297. * m16-bit:                               CRIS Options.       (line   69)
  24298. * m2:                                    SH Options.         (line   12)
  24299. * m210:                                  MCore Options.      (line   43)
  24300. * m3:                                    SH Options.         (line   18)
  24301. * m31:                                   S/390 and zSeries Options.
  24302.                                                              (line   35)
  24303. * m32 <1>:                               i386 and x86-64 Options.
  24304.                                                              (line  391)
  24305. * m32:                                   SPARC Options.      (line  218)
  24306. * m32-bit:                               CRIS Options.       (line   69)
  24307. * m32032:                                NS32K Options.      (line   13)
  24308. * m32081:                                NS32K Options.      (line   27)
  24309. * m32332:                                NS32K Options.      (line   18)
  24310. * m32381:                                NS32K Options.      (line   31)
  24311. * m32532:                                NS32K Options.      (line   23)
  24312. * m32r:                                  M32R/D Options.     (line   15)
  24313. * m32r2:                                 M32R/D Options.     (line    9)
  24314. * m32rx:                                 M32R/D Options.     (line   12)
  24315. * m340:                                  MCore Options.      (line   43)
  24316. * m386:                                  i386 and x86-64 Options.
  24317.                                                              (line  107)
  24318. * m3dnow:                                i386 and x86-64 Options.
  24319.                                                              (line  323)
  24320. * m3e:                                   SH Options.         (line   21)
  24321. * m4:                                    SH Options.         (line   35)
  24322. * m4-nofpu:                              SH Options.         (line   24)
  24323. * m4-single:                             SH Options.         (line   31)
  24324. * m4-single-only:                        SH Options.         (line   27)
  24325. * m40:                                   PDP-11 Options.     (line   23)
  24326. * m45:                                   PDP-11 Options.     (line   26)
  24327. * m486:                                  i386 and x86-64 Options.
  24328.                                                              (line  107)
  24329. * m4byte-functions:                      MCore Options.      (line   27)
  24330. * m5200:                                 M680x0 Options.     (line   59)
  24331. * m64 <1>:                               S/390 and zSeries Options.
  24332.                                                              (line   35)
  24333. * m64 <2>:                               i386 and x86-64 Options.
  24334.                                                              (line  391)
  24335. * m64:                                   SPARC Options.      (line  218)
  24336. * m68000:                                M680x0 Options.     (line   13)
  24337. * m68020:                                M680x0 Options.     (line   21)
  24338. * m68020-40:                             M680x0 Options.     (line   66)
  24339. * m68020-60:                             M680x0 Options.     (line   73)
  24340. * m68030:                                M680x0 Options.     (line   30)
  24341. * m68040:                                M680x0 Options.     (line   34)
  24342. * m68060:                                M680x0 Options.     (line   42)
  24343. * m6811:                                 M68hc1x Options.    (line   13)
  24344. * m6812:                                 M68hc1x Options.    (line   18)
  24345. * m68881:                                M680x0 Options.     (line   25)
  24346. * m68hc11:                               M68hc1x Options.    (line   13)
  24347. * m68hc12:                               M68hc1x Options.    (line   18)
  24348. * m68hcs12:                              M68hc1x Options.    (line   23)
  24349. * m68S12:                                M68hc1x Options.    (line   23)
  24350. * m8-bit:                                CRIS Options.       (line   69)
  24351. * m96bit-long-double:                    i386 and x86-64 Options.
  24352.                                                              (line  216)
  24353. * mabi-mmixware:                         MMIX Options.       (line   20)
  24354. * mabi=32:                               MIPS Options.       (line   87)
  24355. * mabi=64:                               MIPS Options.       (line   87)
  24356. * mabi=altivec:                          RS/6000 and PowerPC Options.
  24357.                                                              (line  403)
  24358. * mabi=eabi:                             MIPS Options.       (line   87)
  24359. * mabi=gnu:                              MMIX Options.       (line   20)
  24360. * mabi=n32:                              MIPS Options.       (line   87)
  24361. * mabi=no-altivec:                       RS/6000 and PowerPC Options.
  24362.                                                              (line  408)
  24363. * mabi=no-spe:                           RS/6000 and PowerPC Options.
  24364.                                                              (line  146)
  24365. * mabi=o64:                              MIPS Options.       (line   87)
  24366. * mabi=spe:                              RS/6000 and PowerPC Options.
  24367.                                                              (line  141)
  24368. * mabicalls:                             MIPS Options.       (line   95)
  24369. * mabort-on-noreturn:                    ARM Options.        (line  171)
  24370. * mabshi:                                PDP-11 Options.     (line   55)
  24371. * mac0:                                  PDP-11 Options.     (line   16)
  24372. * macc-4:                                FRV Options.        (line   59)
  24373. * macc-8:                                FRV Options.        (line   62)
  24374. * maccumulate-outgoing-args:             i386 and x86-64 Options.
  24375.                                                              (line  342)
  24376. * mads:                                  RS/6000 and PowerPC Options.
  24377.                                                              (line  433)
  24378. * maix-struct-return:                    RS/6000 and PowerPC Options.
  24379.                                                              (line  396)
  24380. * maix32:                                RS/6000 and PowerPC Options.
  24381.                                                              (line  196)
  24382. * maix64:                                RS/6000 and PowerPC Options.
  24383.                                                              (line  196)
  24384. * malign-300:                            H8/300 Options.     (line   31)
  24385. * malign-double:                         i386 and x86-64 Options.
  24386.                                                              (line  202)
  24387. * malign-int:                            M680x0 Options.     (line  125)
  24388. * malign-loops:                          M32R/D Options.     (line   73)
  24389. * malign-natural:                        RS/6000 and PowerPC Options.
  24390.                                                              (line  229)
  24391. * malign-power:                          RS/6000 and PowerPC Options.
  24392.                                                              (line  229)
  24393. * malignment-traps:                      ARM Options.        (line   87)
  24394. * malloc-cc:                             FRV Options.        (line   25)
  24395. * malpha-as:                             DEC Alpha Options.  (line  159)
  24396. * maltivec:                              RS/6000 and PowerPC Options.
  24397.                                                              (line  135)
  24398. * mam33:                                 MN10300 Options.    (line   17)
  24399. * maout:                                 CRIS Options.       (line   92)
  24400. * mapcs:                                 ARM Options.        (line   18)
  24401. * mapcs-26:                              ARM Options.        (line   21)
  24402. * mapcs-32:                              ARM Options.        (line   29)
  24403. * mapcs-frame:                           ARM Options.        (line   10)
  24404. * mapp-regs <1>:                         V850 Options.       (line   57)
  24405. * mapp-regs:                             SPARC Options.      (line   10)
  24406. * march <1>:                             CRIS Options.       (line   10)
  24407. * march <2>:                             S/390 and zSeries Options.
  24408.                                                              (line   63)
  24409. * march <3>:                             HPPA Options.       (line    9)
  24410. * march <4>:                             i386 and x86-64 Options.
  24411.                                                              (line   96)
  24412. * march <5>:                             MIPS Options.       (line   14)
  24413. * march:                                 ARM Options.        (line  144)
  24414. * masm-compat:                           Intel 960 Options.  (line   58)
  24415. * masm-optimize:                         D30V Options.       (line   24)
  24416. * masm=DIALECT:                          i386 and x86-64 Options.
  24417.                                                              (line  159)
  24418. * mauto-incdec:                          M68hc1x Options.    (line   26)
  24419. * mauto-pic:                             IA-64 Options.      (line   53)
  24420. * mb:                                    SH Options.         (line   38)
  24421. * mb-step:                               IA-64 Options.      (line   36)
  24422. * mbackchain:                            S/390 and zSeries Options.
  24423.                                                              (line   20)
  24424. * mbase-addresses:                       MMIX Options.       (line   54)
  24425. * mbcopy:                                PDP-11 Options.     (line   36)
  24426. * mbig <1>:                              TMS320C3x/C4x Options.
  24427.                                                              (line   18)
  24428. * mbig:                                  RS/6000 and PowerPC Options.
  24429.                                                              (line  328)
  24430. * mbig-endian <1>:                       IA-64 Options.      (line    9)
  24431. * mbig-endian <2>:                       MCore Options.      (line   39)
  24432. * mbig-endian <3>:                       RS/6000 and PowerPC Options.
  24433.                                                              (line  328)
  24434. * mbig-endian:                           ARM Options.        (line   75)
  24435. * mbig-memory:                           TMS320C3x/C4x Options.
  24436.                                                              (line   18)
  24437. * mbig-switch <1>:                       V850 Options.       (line   52)
  24438. * mbig-switch:                           HPPA Options.       (line   27)
  24439. * mbigtable:                             SH Options.         (line   54)
  24440. * mbit-align:                            RS/6000 and PowerPC Options.
  24441.                                                              (line  282)
  24442. * mbitfield <1>:                         NS32K Options.      (line   66)
  24443. * mbitfield:                             M680x0 Options.     (line   97)
  24444. * mbk:                                   TMS320C3x/C4x Options.
  24445.                                                              (line   27)
  24446. * mbranch-cheap:                         PDP-11 Options.     (line   65)
  24447. * mbranch-cost:                          D30V Options.       (line   29)
  24448. * mbranch-cost=NUMBER:                   M32R/D Options.     (line   82)
  24449. * mbranch-expensive:                     PDP-11 Options.     (line   61)
  24450. * mbranch-likely:                        MIPS Options.       (line  291)
  24451. * mbranch-predict:                       MMIX Options.       (line   49)
  24452. * mbuild-constants:                      DEC Alpha Options.  (line  142)
  24453. * mbwx:                                  DEC Alpha Options.  (line  171)
  24454. * mc68000:                               M680x0 Options.     (line   13)
  24455. * mc68020:                               M680x0 Options.     (line   21)
  24456. * mca:                                   Intel 960 Options.  (line    9)
  24457. * mcall-gnu:                             RS/6000 and PowerPC Options.
  24458.                                                              (line  388)
  24459. * mcall-linux:                           RS/6000 and PowerPC Options.
  24460.                                                              (line  384)
  24461. * mcall-netbsd:                          RS/6000 and PowerPC Options.
  24462.                                                              (line  392)
  24463. * mcall-prologues:                       AVR Options.        (line   43)
  24464. * mcall-solaris:                         RS/6000 and PowerPC Options.
  24465.                                                              (line  380)
  24466. * mcall-sysv:                            RS/6000 and PowerPC Options.
  24467.                                                              (line  367)
  24468. * mcall-sysv-eabi:                       RS/6000 and PowerPC Options.
  24469.                                                              (line  374)
  24470. * mcall-sysv-noeabi:                     RS/6000 and PowerPC Options.
  24471.                                                              (line  377)
  24472. * mcallee-super-interworking:            ARM Options.        (line  261)
  24473. * mcaller-super-interworking:            ARM Options.        (line  267)
  24474. * mcallgraph-data:                       MCore Options.      (line   31)
  24475. * mcc-init:                              CRIS Options.       (line   46)
  24476. * mcf:                                   Intel 960 Options.  (line    9)
  24477. * mcheck-zero-division:                  MIPS Options.       (line  235)
  24478. * mcirrus-fix-invalid-insns:             ARM Options.        (line  214)
  24479. * mcix:                                  DEC Alpha Options.  (line  171)
  24480. * mcmodel=embmedany:                     SPARC Options.      (line  240)
  24481. * mcmodel=kernel:                        i386 and x86-64 Options.
  24482.                                                              (line  412)
  24483. * mcmodel=large:                         i386 and x86-64 Options.
  24484.                                                              (line  424)
  24485. * mcmodel=medany:                        SPARC Options.      (line  234)
  24486. * mcmodel=medium:                        i386 and x86-64 Options.
  24487.                                                              (line  417)
  24488. * mcmodel=medlow:                        SPARC Options.      (line  223)
  24489. * mcmodel=medmid:                        SPARC Options.      (line  228)
  24490. * mcmodel=small:                         i386 and x86-64 Options.
  24491.                                                              (line  406)
  24492. * mcode-align:                           Intel 960 Options.  (line   47)
  24493. * mcomplex-addr:                         Intel 960 Options.  (line   39)
  24494. * mcond-exec <1>:                        FRV Options.        (line   98)
  24495. * mcond-exec:                            D30V Options.       (line   34)
  24496. * mcond-move:                            FRV Options.        (line   74)
  24497. * mconst-align:                          CRIS Options.       (line   60)
  24498. * mconst16:                              Xtensa Options.     (line   10)
  24499. * mconstant-gp:                          IA-64 Options.      (line   49)
  24500. * mcpu <1>:                              FRV Options.        (line  150)
  24501. * mcpu <2>:                              CRIS Options.       (line   10)
  24502. * mcpu <3>:                              ARC Options.        (line   23)
  24503. * mcpu <4>:                              TMS320C3x/C4x Options.
  24504.                                                              (line    9)
  24505. * mcpu <5>:                              DEC Alpha Options.  (line  223)
  24506. * mcpu <6>:                              i386 and x86-64 Options.
  24507.                                                              (line  101)
  24508. * mcpu <7>:                              RS/6000 and PowerPC Options.
  24509.                                                              (line   82)
  24510. * mcpu <8>:                              ARM Options.        (line  121)
  24511. * mcpu:                                  SPARC Options.      (line  127)
  24512. * mcpu32:                                M680x0 Options.     (line   51)
  24513. * mcypress:                              SPARC Options.      (line  122)
  24514. * MD:                                    Preprocessor Options.
  24515.                                                              (line  262)
  24516. * mdalign:                               SH Options.         (line   44)
  24517. * mdata:                                 ARC Options.        (line   30)
  24518. * mdata-align:                           CRIS Options.       (line   60)
  24519. * mdb:                                   TMS320C3x/C4x Options.
  24520.                                                              (line   32)
  24521. * mdebug <1>:                            S/390 and zSeries Options.
  24522.                                                              (line   59)
  24523. * mdebug:                                M32R/D Options.     (line   69)
  24524. * mdec-asm:                              PDP-11 Options.     (line   78)
  24525. * mdisable-callt:                        V850 Options.       (line   80)
  24526. * mdisable-fpregs:                       HPPA Options.       (line   37)
  24527. * mdisable-indexing:                     HPPA Options.       (line   44)
  24528. * mdiv:                                  MCore Options.      (line   15)
  24529. * mdouble:                               FRV Options.        (line   38)
  24530. * mdouble-float:                         MIPS Options.       (line  154)
  24531. * mdp-isr-reload:                        TMS320C3x/C4x Options.
  24532.                                                              (line   45)
  24533. * mdwarf2-asm:                           IA-64 Options.      (line   74)
  24534. * mdword:                                FRV Options.        (line   32)
  24535. * mdynamic-no-pic:                       RS/6000 and PowerPC Options.
  24536.                                                              (line  333)
  24537. * meabi:                                 RS/6000 and PowerPC Options.
  24538.                                                              (line  456)
  24539. * mearly-stop-bits:                      IA-64 Options.      (line   87)
  24540. * melf <1>:                              MMIX Options.       (line   44)
  24541. * melf:                                  CRIS Options.       (line   95)
  24542. * melinux:                               CRIS Options.       (line   99)
  24543. * melinux-stacksize:                     CRIS Options.       (line   25)
  24544. * memb:                                  RS/6000 and PowerPC Options.
  24545.                                                              (line  451)
  24546. * membedded-data:                        MIPS Options.       (line  186)
  24547. * membedded-pic:                         MIPS Options.       (line  124)
  24548. * mep:                                   V850 Options.       (line   16)
  24549. * mepsilon:                              MMIX Options.       (line   15)
  24550. * mesa:                                  S/390 and zSeries Options.
  24551.                                                              (line   43)
  24552. * metrax100:                             CRIS Options.       (line   31)
  24553. * metrax4:                               CRIS Options.       (line   31)
  24554. * mexplicit-relocs <1>:                  DEC Alpha Options.  (line  184)
  24555. * mexplicit-relocs:                      MIPS Options.       (line  206)
  24556. * mextmem:                               D30V Options.       (line    9)
  24557. * mextmemory:                            D30V Options.       (line   14)
  24558. * MF:                                    Preprocessor Options.
  24559.                                                              (line  208)
  24560. * mfast-fix:                             TMS320C3x/C4x Options.
  24561.                                                              (line   62)
  24562. * mfast-indirect-calls:                  HPPA Options.       (line   56)
  24563. * mfaster-structs:                       SPARC Options.      (line   88)
  24564. * mfix:                                  DEC Alpha Options.  (line  171)
  24565. * mfix-sb1:                              MIPS Options.       (line  275)
  24566. * mfixed-cc:                             FRV Options.        (line   28)
  24567. * mfixed-range:                          IA-64 Options.      (line   79)
  24568. * mflat:                                 SPARC Options.      (line   59)
  24569. * mfloat-gprs:                           RS/6000 and PowerPC Options.
  24570.                                                              (line  160)
  24571. * mfloat-ieee:                           DEC Alpha Options.  (line  179)
  24572. * mfloat-vax:                            DEC Alpha Options.  (line  179)
  24573. * mfloat32:                              PDP-11 Options.     (line   52)
  24574. * mfloat64:                              PDP-11 Options.     (line   48)
  24575. * mflush-func:                           MIPS Options.       (line  281)
  24576. * mflush-func=NAME:                      M32R/D Options.     (line   94)
  24577. * mflush-trap=NUMBER:                    M32R/D Options.     (line   87)
  24578. * mfmovd:                                SH Options.         (line   58)
  24579. * mfp:                                   ARM Options.        (line  153)
  24580. * mfp-reg:                               DEC Alpha Options.  (line   25)
  24581. * mfp-rounding-mode:                     DEC Alpha Options.  (line   85)
  24582. * mfp-trap-mode:                         DEC Alpha Options.  (line   63)
  24583. * mfp32:                                 MIPS Options.       (line  137)
  24584. * mfp64:                                 MIPS Options.       (line  140)
  24585. * mfpe:                                  ARM Options.        (line  153)
  24586. * mfpr-32:                               FRV Options.        (line   13)
  24587. * mfpr-64:                               FRV Options.        (line   16)
  24588. * mfpu <1>:                              PDP-11 Options.     (line    9)
  24589. * mfpu:                                  SPARC Options.      (line   20)
  24590. * mfull-toc:                             RS/6000 and PowerPC Options.
  24591.                                                              (line  169)
  24592. * mfused-madd <1>:                       Xtensa Options.     (line   19)
  24593. * mfused-madd <2>:                       S/390 and zSeries Options.
  24594.                                                              (line   77)
  24595. * mfused-madd <3>:                       MIPS Options.       (line  260)
  24596. * mfused-madd:                           RS/6000 and PowerPC Options.
  24597.                                                              (line  276)
  24598. * mg:                                    VAX Options.        (line   17)
  24599. * MG:                                    Preprocessor Options.
  24600.                                                              (line  217)
  24601. * mgas <1>:                              DEC Alpha Options.  (line  159)
  24602. * mgas:                                  HPPA Options.       (line   72)
  24603. * mgnu:                                  VAX Options.        (line   13)
  24604. * mgnu-as:                               IA-64 Options.      (line   18)
  24605. * mgnu-ld:                               IA-64 Options.      (line   23)
  24606. * mgotplt:                               CRIS Options.       (line   86)
  24607. * mgp32:                                 MIPS Options.       (line  131)
  24608. * mgp64:                                 MIPS Options.       (line  134)
  24609. * mgpr-32:                               FRV Options.        (line    7)
  24610. * mgpr-64:                               FRV Options.        (line   10)
  24611. * mh:                                    H8/300 Options.     (line   14)
  24612. * mhard-float <1>:                       FRV Options.        (line   19)
  24613. * mhard-float <2>:                       S/390 and zSeries Options.
  24614.                                                              (line   11)
  24615. * mhard-float <3>:                       MIPS Options.       (line  143)
  24616. * mhard-float <4>:                       RS/6000 and PowerPC Options.
  24617.                                                              (line  238)
  24618. * mhard-float <5>:                       ARM Options.        (line   53)
  24619. * mhard-float:                           SPARC Options.      (line   20)
  24620. * mhard-quad-float:                      SPARC Options.      (line   41)
  24621. * mhardlit:                              MCore Options.      (line   10)
  24622. * mhimem:                                NS32K Options.      (line  111)
  24623. * mhitachi:                              SH Options.         (line   61)
  24624. * mic-compat:                            Intel 960 Options.  (line   54)
  24625. * mic2.0-compat:                         Intel 960 Options.  (line   54)
  24626. * mic3.0-compat:                         Intel 960 Options.  (line   54)
  24627. * mieee <1>:                             SH Options.         (line   68)
  24628. * mieee:                                 DEC Alpha Options.  (line   39)
  24629. * mieee-compare:                         NS32K Options.      (line   55)
  24630. * mieee-conformant:                      DEC Alpha Options.  (line  134)
  24631. * mieee-fp:                              i386 and x86-64 Options.
  24632.                                                              (line  164)
  24633. * mieee-with-inexact:                    DEC Alpha Options.  (line   52)
  24634. * mimpure-text:                          SPARC Options.      (line   98)
  24635. * minit-stack:                           AVR Options.        (line   35)
  24636. * minline-all-stringops:                 i386 and x86-64 Options.
  24637.                                                              (line  363)
  24638. * minline-float-divide-max-throughput:   IA-64 Options.      (line   61)
  24639. * minline-float-divide-min-latency:      IA-64 Options.      (line   57)
  24640. * minline-int-divide-max-throughput:     IA-64 Options.      (line   69)
  24641. * minline-int-divide-min-latency:        IA-64 Options.      (line   65)
  24642. * minmax:                                M68hc1x Options.    (line   31)
  24643. * minsert-sched-nops:                    RS/6000 and PowerPC Options.
  24644.                                                              (line  355)
  24645. * mint16:                                PDP-11 Options.     (line   40)
  24646. * mint32 <1>:                            PDP-11 Options.     (line   44)
  24647. * mint32:                                H8/300 Options.     (line   28)
  24648. * mint64:                                MIPS Options.       (line  158)
  24649. * mintel-asm:                            Intel 960 Options.  (line   58)
  24650. * mips1:                                 MIPS Options.       (line   58)
  24651. * mips16:                                MIPS Options.       (line   80)
  24652. * mips2:                                 MIPS Options.       (line   61)
  24653. * mips3:                                 MIPS Options.       (line   64)
  24654. * mips32:                                MIPS Options.       (line   70)
  24655. * mips32r2:                              MIPS Options.       (line   73)
  24656. * mips4:                                 MIPS Options.       (line   67)
  24657. * mips64:                                MIPS Options.       (line   76)
  24658. * misel:                                 RS/6000 and PowerPC Options.
  24659.                                                              (line  150)
  24660. * misize:                                SH Options.         (line   71)
  24661. * missue-rate=NUMBER:                    M32R/D Options.     (line   79)
  24662. * mjump-in-delay:                        HPPA Options.       (line   32)
  24663. * mka:                                   Intel 960 Options.  (line    9)
  24664. * mkb:                                   Intel 960 Options.  (line    9)
  24665. * mknuthdiv:                             MMIX Options.       (line   33)
  24666. * ml:                                    SH Options.         (line   41)
  24667. * mlarge-data:                           DEC Alpha Options.  (line  195)
  24668. * mlarge-text:                           DEC Alpha Options.  (line  213)
  24669. * mleaf-procedures:                      Intel 960 Options.  (line   22)
  24670. * mlibfuncs:                             MMIX Options.       (line   10)
  24671. * mlibrary-pic:                          FRV Options.        (line   56)
  24672. * mlinker-opt:                           HPPA Options.       (line   82)
  24673. * mlinux:                                CRIS Options.       (line  104)
  24674. * mlittle:                               RS/6000 and PowerPC Options.
  24675.                                                              (line  322)
  24676. * mlittle-endian <1>:                    IA-64 Options.      (line   13)
  24677. * mlittle-endian <2>:                    MCore Options.      (line   39)
  24678. * mlittle-endian <3>:                    RS/6000 and PowerPC Options.
  24679.                                                              (line  322)
  24680. * mlittle-endian <4>:                    ARM Options.        (line   71)
  24681. * mlittle-endian:                        SPARC Options.      (line  212)
  24682. * mlong-calls <1>:                       V850 Options.       (line   10)
  24683. * mlong-calls <2>:                       MIPS Options.       (line  246)
  24684. * mlong-calls <3>:                       ARM Options.        (line  176)
  24685. * mlong-calls:                           M68hc1x Options.    (line   35)
  24686. * mlong-double-64:                       Intel 960 Options.  (line   70)
  24687. * mlong-load-store:                      HPPA Options.       (line   63)
  24688. * mlong32:                               MIPS Options.       (line  168)
  24689. * mlong64:                               MIPS Options.       (line  163)
  24690. * mlongcall:                             RS/6000 and PowerPC Options.
  24691.                                                              (line  522)
  24692. * mlongcalls:                            Xtensa Options.     (line   60)
  24693. * mloop-unsigned:                        TMS320C3x/C4x Options.
  24694.                                                              (line   94)
  24695. * MM:                                    Preprocessor Options.
  24696.                                                              (line  198)
  24697. * mmad:                                  MIPS Options.       (line  255)
  24698. * mmangle-cpu:                           ARC Options.        (line   15)
  24699. * mmax:                                  DEC Alpha Options.  (line  171)
  24700. * mmax-stack-frame:                      CRIS Options.       (line   22)
  24701. * mmc:                                   Intel 960 Options.  (line    9)
  24702. * mmcu:                                  AVR Options.        (line    9)
  24703. * MMD:                                   Preprocessor Options.
  24704.                                                              (line  277)
  24705. * mmedia: