Home | History | Annotate | Line # | Download | only in INSTALL
configure.html revision 1.1.1.15
      1  1.1.1.14    mrg <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
      2  1.1.1.14    mrg <html>
      3  1.1.1.15    mrg <!-- Copyright (C) 1988-2019 Free Software Foundation, Inc.
      4       1.1    mrg 
      5  1.1.1.14    mrg Permission is granted to copy, distribute and/or modify this document
      6   1.1.1.3  skrll under the terms of the GNU Free Documentation License, Version 1.3 or
      7       1.1    mrg any later version published by the Free Software Foundation; with no
      8       1.1    mrg Invariant Sections, the Front-Cover texts being (a) (see below), and
      9       1.1    mrg with the Back-Cover Texts being (b) (see below).  A copy of the
     10  1.1.1.14    mrg license is included in the section entitled "GNU
     11  1.1.1.14    mrg Free Documentation License".
     12       1.1    mrg 
     13       1.1    mrg (a) The FSF's Front-Cover Text is:
     14       1.1    mrg 
     15  1.1.1.14    mrg A GNU Manual
     16       1.1    mrg 
     17       1.1    mrg (b) The FSF's Back-Cover Text is:
     18       1.1    mrg 
     19  1.1.1.14    mrg You have freedom to copy and modify this GNU Manual, like GNU
     20       1.1    mrg      software.  Copies published by the Free Software Foundation raise
     21  1.1.1.14    mrg      funds for GNU development. -->
     22  1.1.1.14    mrg <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
     23  1.1.1.14    mrg <head>
     24  1.1.1.14    mrg <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
     25  1.1.1.14    mrg <title>Installing GCC</title>
     26  1.1.1.14    mrg 
     27  1.1.1.14    mrg <meta name="description" content="Installing GCC">
     28  1.1.1.14    mrg <meta name="keywords" content="Installing GCC">
     29  1.1.1.14    mrg <meta name="resource-type" content="document">
     30  1.1.1.14    mrg <meta name="distribution" content="global">
     31  1.1.1.14    mrg <meta name="Generator" content="makeinfo">
     32  1.1.1.14    mrg <style type="text/css">
     33  1.1.1.14    mrg <!--
     34  1.1.1.14    mrg a.summary-letter {text-decoration: none}
     35  1.1.1.14    mrg blockquote.indentedblock {margin-right: 0em}
     36  1.1.1.14    mrg blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
     37  1.1.1.14    mrg blockquote.smallquotation {font-size: smaller}
     38  1.1.1.14    mrg div.display {margin-left: 3.2em}
     39  1.1.1.14    mrg div.example {margin-left: 3.2em}
     40  1.1.1.14    mrg div.lisp {margin-left: 3.2em}
     41  1.1.1.14    mrg div.smalldisplay {margin-left: 3.2em}
     42  1.1.1.14    mrg div.smallexample {margin-left: 3.2em}
     43  1.1.1.14    mrg div.smalllisp {margin-left: 3.2em}
     44  1.1.1.14    mrg kbd {font-style: oblique}
     45  1.1.1.14    mrg pre.display {font-family: inherit}
     46  1.1.1.14    mrg pre.format {font-family: inherit}
     47  1.1.1.14    mrg pre.menu-comment {font-family: serif}
     48  1.1.1.14    mrg pre.menu-preformatted {font-family: serif}
     49  1.1.1.14    mrg pre.smalldisplay {font-family: inherit; font-size: smaller}
     50  1.1.1.14    mrg pre.smallexample {font-size: smaller}
     51  1.1.1.14    mrg pre.smallformat {font-family: inherit; font-size: smaller}
     52  1.1.1.14    mrg pre.smalllisp {font-size: smaller}
     53  1.1.1.14    mrg span.nolinebreak {white-space: nowrap}
     54  1.1.1.14    mrg span.roman {font-family: initial; font-weight: normal}
     55  1.1.1.14    mrg span.sansserif {font-family: sans-serif; font-weight: normal}
     56  1.1.1.14    mrg ul.no-bullet {list-style: none}
     57  1.1.1.14    mrg -->
     58  1.1.1.14    mrg </style>
     59  1.1.1.14    mrg 
     60  1.1.1.14    mrg 
     61       1.1    mrg </head>
     62  1.1.1.13    mrg 
     63  1.1.1.14    mrg <body lang="en">
     64  1.1.1.14    mrg <h1 class="settitle" align="center">Installing GCC</h1>
     65  1.1.1.14    mrg 
     66  1.1.1.14    mrg 
     67  1.1.1.14    mrg 
     68  1.1.1.14    mrg 
     69  1.1.1.14    mrg 
     70  1.1.1.14    mrg 
     71  1.1.1.13    mrg 
     72  1.1.1.13    mrg 
     73  1.1.1.14    mrg 
     74  1.1.1.14    mrg 
     75  1.1.1.14    mrg 
     76  1.1.1.14    mrg 
     77  1.1.1.14    mrg 
     78  1.1.1.14    mrg 
     79  1.1.1.14    mrg 
     80  1.1.1.14    mrg 
     81  1.1.1.14    mrg 
     82  1.1.1.14    mrg 
     83  1.1.1.14    mrg 
     84  1.1.1.14    mrg <a name="index-Configuration"></a>
     85  1.1.1.14    mrg <a name="index-Installing-GCC_003a-Configuration"></a>
     86  1.1.1.14    mrg 
     87  1.1.1.14    mrg <p>Like most GNU software, GCC must be configured before it can be built.
     88  1.1.1.14    mrg This document describes the recommended configuration procedure
     89  1.1.1.14    mrg for both native and cross targets.
     90  1.1.1.14    mrg </p>
     91  1.1.1.14    mrg <p>We use <var>srcdir</var> to refer to the toplevel source directory for
     92  1.1.1.14    mrg GCC; we use <var>objdir</var> to refer to the toplevel build/object directory.
     93  1.1.1.14    mrg </p>
     94  1.1.1.14    mrg <p>If you obtained the sources by cloning the repository, <var>srcdir</var>
     95  1.1.1.14    mrg must refer to the top <samp>gcc</samp> directory, the one where the
     96  1.1.1.14    mrg <samp>MAINTAINERS</samp> file can be found, and not its <samp>gcc</samp>
     97  1.1.1.14    mrg subdirectory, otherwise the build will fail.
     98  1.1.1.14    mrg </p>
     99  1.1.1.14    mrg <p>If either <var>srcdir</var> or <var>objdir</var> is located on an automounted NFS
    100  1.1.1.14    mrg file system, the shell&rsquo;s built-in <code>pwd</code> command will return
    101       1.1    mrg temporary pathnames.  Using these can lead to various sorts of build
    102  1.1.1.14    mrg problems.  To avoid this issue, set the <code>PWDCMD</code> environment
    103  1.1.1.14    mrg variable to an automounter-aware <code>pwd</code> command, e.g.,
    104  1.1.1.14    mrg <code>pawd</code> or &lsquo;<samp>amq -w</samp>&rsquo;, during the configuration and build
    105       1.1    mrg phases.
    106  1.1.1.14    mrg </p>
    107  1.1.1.14    mrg <p>First, we <strong>highly</strong> recommend that GCC be built into a
    108       1.1    mrg separate directory from the sources which does <strong>not</strong> reside
    109       1.1    mrg within the source tree.  This is how we generally build GCC; building
    110  1.1.1.14    mrg where <var>srcdir</var> == <var>objdir</var> should still work, but doesn&rsquo;t
    111       1.1    mrg get extensive testing; building where <var>objdir</var> is a subdirectory
    112       1.1    mrg of <var>srcdir</var> is unsupported.
    113  1.1.1.14    mrg </p>
    114  1.1.1.14    mrg <p>If you have previously built GCC in the same directory for a
    115  1.1.1.14    mrg different target machine, do &lsquo;<samp>make distclean</samp>&rsquo; to delete all files
    116  1.1.1.14    mrg that might be invalid.  One of the files this deletes is <samp>Makefile</samp>;
    117  1.1.1.14    mrg if &lsquo;<samp>make distclean</samp>&rsquo; complains that <samp>Makefile</samp> does not exist
    118  1.1.1.14    mrg or issues a message like &ldquo;don&rsquo;t know how to make distclean&rdquo; it probably
    119       1.1    mrg means that the directory is already suitably clean.  However, with the
    120       1.1    mrg recommended method of building in a separate <var>objdir</var>, you should
    121       1.1    mrg simply use a different <var>objdir</var> for each target.
    122  1.1.1.14    mrg </p>
    123  1.1.1.14    mrg <p>Second, when configuring a native system, either <code>cc</code> or
    124  1.1.1.14    mrg <code>gcc</code> must be in your path or you must set <code>CC</code> in
    125       1.1    mrg your environment before running configure.  Otherwise the configuration
    126       1.1    mrg scripts may fail.
    127  1.1.1.14    mrg </p>
    128       1.1    mrg 
    129  1.1.1.14    mrg <p>To configure GCC:
    130  1.1.1.14    mrg </p>
    131  1.1.1.14    mrg <div class="smallexample">
    132  1.1.1.14    mrg <pre class="smallexample">% mkdir <var>objdir</var>
    133  1.1.1.14    mrg % cd <var>objdir</var>
    134  1.1.1.14    mrg % <var>srcdir</var>/configure [<var>options</var>] [<var>target</var>]
    135  1.1.1.14    mrg </pre></div>
    136       1.1    mrg 
    137  1.1.1.14    mrg <a name="Distributor-options"></a>
    138  1.1.1.14    mrg <h3 class="heading">Distributor options</h3>
    139       1.1    mrg 
    140       1.1    mrg <p>If you will be distributing binary versions of GCC, with modifications
    141       1.1    mrg to the source code, you should use the options described in this
    142       1.1    mrg section to make clear that your version contains modifications.
    143  1.1.1.14    mrg </p>
    144  1.1.1.14    mrg <dl compact="compact">
    145  1.1.1.14    mrg <dt><code>--with-pkgversion=<var>version</var></code></dt>
    146  1.1.1.14    mrg <dd><p>Specify a string that identifies your package.  You may wish
    147       1.1    mrg to include a build number or build date.  This version string will be
    148  1.1.1.14    mrg included in the output of <code>gcc --version</code>.  This suffix does
    149  1.1.1.14    mrg not replace the default version string, only the &lsquo;<samp>GCC</samp>&rsquo; part.
    150  1.1.1.14    mrg </p>
    151  1.1.1.14    mrg <p>The default value is &lsquo;<samp>GCC</samp>&rsquo;.
    152  1.1.1.14    mrg </p>
    153  1.1.1.14    mrg </dd>
    154  1.1.1.14    mrg <dt><code>--with-bugurl=<var>url</var></code></dt>
    155  1.1.1.14    mrg <dd><p>Specify the URL that users should visit if they wish to report a bug.
    156       1.1    mrg You are of course welcome to forward bugs reported to you to the FSF,
    157       1.1    mrg if you determine that they are not bugs in your modifications.
    158  1.1.1.14    mrg </p>
    159  1.1.1.14    mrg <p>The default value refers to the FSF&rsquo;s GCC bug tracker.
    160  1.1.1.14    mrg </p>
    161  1.1.1.14    mrg </dd>
    162  1.1.1.14    mrg </dl>
    163       1.1    mrg 
    164  1.1.1.14    mrg <a name="Target-specification"></a>
    165  1.1.1.14    mrg <h3 class="heading">Target specification</h3>
    166  1.1.1.14    mrg <ul>
    167  1.1.1.14    mrg <li> GCC has code to correctly determine the correct value for <var>target</var>
    168       1.1    mrg for nearly all native systems.  Therefore, we highly recommend you do
    169       1.1    mrg not provide a configure target when configuring a native compiler.
    170       1.1    mrg 
    171  1.1.1.14    mrg </li><li> <var>target</var> must be specified as <samp>--target=<var>target</var></samp>
    172       1.1    mrg when configuring a cross compiler; examples of valid targets would be
    173       1.1    mrg m68k-elf, sh-elf, etc.
    174       1.1    mrg 
    175  1.1.1.14    mrg </li><li> Specifying just <var>target</var> instead of <samp>--target=<var>target</var></samp>
    176  1.1.1.14    mrg implies that the host defaults to <var>target</var>.
    177  1.1.1.14    mrg </li></ul>
    178  1.1.1.11    mrg 
    179  1.1.1.14    mrg 
    180  1.1.1.14    mrg <a name="Options-specification"></a>
    181  1.1.1.14    mrg <h3 class="heading">Options specification</h3>
    182       1.1    mrg 
    183       1.1    mrg <p>Use <var>options</var> to override several configure time options for
    184  1.1.1.14    mrg GCC.  A list of supported <var>options</var> follows; &lsquo;<samp>configure
    185  1.1.1.14    mrg --help</samp>&rsquo; may list other options, but those not listed below may not
    186       1.1    mrg work and should not normally be used.
    187  1.1.1.14    mrg </p>
    188  1.1.1.14    mrg <p>Note that each <samp>--enable</samp> option has a corresponding
    189  1.1.1.14    mrg <samp>--disable</samp> option and that each <samp>--with</samp> option has a
    190  1.1.1.14    mrg corresponding <samp>--without</samp> option.
    191  1.1.1.14    mrg </p>
    192  1.1.1.14    mrg <dl compact="compact">
    193  1.1.1.14    mrg <dt><code>--prefix=<var>dirname</var></code></dt>
    194  1.1.1.14    mrg <dd><p>Specify the toplevel installation
    195       1.1    mrg directory.  This is the recommended way to install the tools into a directory
    196       1.1    mrg other than the default.  The toplevel installation directory defaults to
    197  1.1.1.14    mrg <samp>/usr/local</samp>.
    198  1.1.1.14    mrg </p>
    199  1.1.1.14    mrg <p>We <strong>highly</strong> recommend against <var>dirname</var> being the same or a
    200       1.1    mrg subdirectory of <var>objdir</var> or vice versa.  If specifying a directory
    201  1.1.1.14    mrg beneath a user&rsquo;s home directory tree, some shells will not expand
    202  1.1.1.14    mrg <var>dirname</var> correctly if it contains the &lsquo;<samp>~</samp>&rsquo; metacharacter; use
    203  1.1.1.14    mrg <code>$HOME</code> instead.
    204  1.1.1.14    mrg </p>
    205  1.1.1.14    mrg <p>The following standard <code>autoconf</code> options are supported.  Normally you
    206       1.1    mrg should not need to use these options.
    207  1.1.1.14    mrg </p><dl compact="compact">
    208  1.1.1.14    mrg <dt><code>--exec-prefix=<var>dirname</var></code></dt>
    209  1.1.1.14    mrg <dd><p>Specify the toplevel installation directory for architecture-dependent
    210       1.1    mrg files.  The default is <samp><var>prefix</var></samp>.
    211  1.1.1.14    mrg </p>
    212  1.1.1.14    mrg </dd>
    213  1.1.1.14    mrg <dt><code>--bindir=<var>dirname</var></code></dt>
    214  1.1.1.14    mrg <dd><p>Specify the installation directory for the executables called by users
    215  1.1.1.14    mrg (such as <code>gcc</code> and <code>g++</code>).  The default is
    216  1.1.1.14    mrg <samp><var>exec-prefix</var>/bin</samp>.
    217  1.1.1.14    mrg </p>
    218  1.1.1.14    mrg </dd>
    219  1.1.1.14    mrg <dt><code>--libdir=<var>dirname</var></code></dt>
    220  1.1.1.14    mrg <dd><p>Specify the installation directory for object code libraries and
    221  1.1.1.14    mrg internal data files of GCC.  The default is <samp><var>exec-prefix</var>/lib</samp>.
    222  1.1.1.14    mrg </p>
    223  1.1.1.14    mrg </dd>
    224  1.1.1.14    mrg <dt><code>--libexecdir=<var>dirname</var></code></dt>
    225  1.1.1.14    mrg <dd><p>Specify the installation directory for internal executables of GCC.
    226  1.1.1.14    mrg The default is <samp><var>exec-prefix</var>/libexec</samp>.
    227  1.1.1.14    mrg </p>
    228  1.1.1.14    mrg </dd>
    229  1.1.1.14    mrg <dt><code>--with-slibdir=<var>dirname</var></code></dt>
    230  1.1.1.14    mrg <dd><p>Specify the installation directory for the shared libgcc library.  The
    231       1.1    mrg default is <samp><var>libdir</var></samp>.
    232  1.1.1.14    mrg </p>
    233  1.1.1.14    mrg </dd>
    234  1.1.1.14    mrg <dt><code>--datarootdir=<var>dirname</var></code></dt>
    235  1.1.1.14    mrg <dd><p>Specify the root of the directory tree for read-only architecture-independent
    236  1.1.1.14    mrg data files referenced by GCC.  The default is <samp><var>prefix</var>/share</samp>.
    237  1.1.1.14    mrg </p>
    238  1.1.1.14    mrg </dd>
    239  1.1.1.14    mrg <dt><code>--infodir=<var>dirname</var></code></dt>
    240  1.1.1.14    mrg <dd><p>Specify the installation directory for documentation in info format.
    241  1.1.1.14    mrg The default is <samp><var>datarootdir</var>/info</samp>.
    242  1.1.1.14    mrg </p>
    243  1.1.1.14    mrg </dd>
    244  1.1.1.14    mrg <dt><code>--datadir=<var>dirname</var></code></dt>
    245  1.1.1.14    mrg <dd><p>Specify the installation directory for some architecture-independent
    246       1.1    mrg data files referenced by GCC.  The default is <samp><var>datarootdir</var></samp>.
    247  1.1.1.14    mrg </p>
    248  1.1.1.14    mrg </dd>
    249  1.1.1.14    mrg <dt><code>--docdir=<var>dirname</var></code></dt>
    250  1.1.1.14    mrg <dd><p>Specify the installation directory for documentation files (other
    251  1.1.1.14    mrg than Info) for GCC.  The default is <samp><var>datarootdir</var>/doc</samp>.
    252  1.1.1.14    mrg </p>
    253  1.1.1.14    mrg </dd>
    254  1.1.1.14    mrg <dt><code>--htmldir=<var>dirname</var></code></dt>
    255  1.1.1.14    mrg <dd><p>Specify the installation directory for HTML documentation files.
    256       1.1    mrg The default is <samp><var>docdir</var></samp>.
    257  1.1.1.14    mrg </p>
    258  1.1.1.14    mrg </dd>
    259  1.1.1.14    mrg <dt><code>--pdfdir=<var>dirname</var></code></dt>
    260  1.1.1.14    mrg <dd><p>Specify the installation directory for PDF documentation files.
    261       1.1    mrg The default is <samp><var>docdir</var></samp>.
    262  1.1.1.14    mrg </p>
    263  1.1.1.14    mrg </dd>
    264  1.1.1.14    mrg <dt><code>--mandir=<var>dirname</var></code></dt>
    265  1.1.1.14    mrg <dd><p>Specify the installation directory for manual pages.  The default is
    266  1.1.1.14    mrg <samp><var>datarootdir</var>/man</samp>.  (Note that the manual pages are only extracts
    267       1.1    mrg from the full GCC manuals, which are provided in Texinfo format.  The manpages
    268       1.1    mrg are derived by an automatic conversion process from parts of the full
    269       1.1    mrg manual.)
    270  1.1.1.14    mrg </p>
    271  1.1.1.14    mrg </dd>
    272  1.1.1.14    mrg <dt><code>--with-gxx-include-dir=<var>dirname</var></code></dt>
    273  1.1.1.14    mrg <dd><p>Specify
    274       1.1    mrg the installation directory for G++ header files.  The default depends
    275       1.1    mrg on other configuration options, and differs between cross and native
    276       1.1    mrg configurations.
    277  1.1.1.14    mrg </p>
    278  1.1.1.14    mrg </dd>
    279  1.1.1.14    mrg <dt><code>--with-specs=<var>specs</var></code></dt>
    280  1.1.1.14    mrg <dd><p>Specify additional command line driver SPECS.
    281   1.1.1.3  skrll This can be useful if you need to turn on a non-standard feature by
    282  1.1.1.14    mrg default without modifying the compiler&rsquo;s source code, for instance
    283  1.1.1.14    mrg <samp>--with-specs=%{!fcommon:%{!fno-common:-fno-common}}</samp>.
    284   1.1.1.3  skrll See &ldquo;Spec Files&rdquo; in the main manual
    285  1.1.1.14    mrg </p>
    286  1.1.1.14    mrg </dd>
    287  1.1.1.14    mrg </dl>
    288   1.1.1.3  skrll 
    289  1.1.1.14    mrg </dd>
    290  1.1.1.14    mrg <dt><code>--program-prefix=<var>prefix</var></code></dt>
    291  1.1.1.14    mrg <dd><p>GCC supports some transformations of the names of its programs when
    292       1.1    mrg installing them.  This option prepends <var>prefix</var> to the names of
    293       1.1    mrg programs to install in <var>bindir</var> (see above).  For example, specifying
    294  1.1.1.14    mrg <samp>--program-prefix=foo-</samp> would result in &lsquo;<samp>gcc</samp>&rsquo;
    295  1.1.1.14    mrg being installed as <samp>/usr/local/bin/foo-gcc</samp>.
    296  1.1.1.14    mrg </p>
    297  1.1.1.14    mrg </dd>
    298  1.1.1.14    mrg <dt><code>--program-suffix=<var>suffix</var></code></dt>
    299  1.1.1.14    mrg <dd><p>Appends <var>suffix</var> to the names of programs to install in <var>bindir</var>
    300  1.1.1.14    mrg (see above).  For example, specifying <samp>--program-suffix=-3.1</samp>
    301  1.1.1.14    mrg would result in &lsquo;<samp>gcc</samp>&rsquo; being installed as
    302  1.1.1.14    mrg <samp>/usr/local/bin/gcc-3.1</samp>.
    303  1.1.1.14    mrg </p>
    304  1.1.1.14    mrg </dd>
    305  1.1.1.14    mrg <dt><code>--program-transform-name=<var>pattern</var></code></dt>
    306  1.1.1.14    mrg <dd><p>Applies the &lsquo;<samp>sed</samp>&rsquo; script <var>pattern</var> to be applied to the names
    307       1.1    mrg of programs to install in <var>bindir</var> (see above).  <var>pattern</var> has to
    308  1.1.1.14    mrg consist of one or more basic &lsquo;<samp>sed</samp>&rsquo; editing commands, separated by
    309  1.1.1.14    mrg semicolons.  For example, if you want the &lsquo;<samp>gcc</samp>&rsquo; program name to be
    310  1.1.1.14    mrg transformed to the installed program <samp>/usr/local/bin/myowngcc</samp> and
    311  1.1.1.14    mrg the &lsquo;<samp>g++</samp>&rsquo; program name to be transformed to
    312  1.1.1.14    mrg <samp>/usr/local/bin/gspecial++</samp> without changing other program names,
    313       1.1    mrg you could use the pattern
    314  1.1.1.14    mrg <samp>--program-transform-name='s/^gcc$/myowngcc/; s/^g++$/gspecial++/'</samp>
    315       1.1    mrg to achieve this effect.
    316  1.1.1.14    mrg </p>
    317  1.1.1.14    mrg <p>All three options can be combined and used together, resulting in more
    318       1.1    mrg complex conversion patterns.  As a basic rule, <var>prefix</var> (and
    319       1.1    mrg <var>suffix</var>) are prepended (appended) before further transformations
    320       1.1    mrg can happen with a special transformation script <var>pattern</var>.
    321  1.1.1.14    mrg </p>
    322  1.1.1.14    mrg <p>As currently implemented, this option only takes effect for native
    323  1.1.1.14    mrg builds; cross compiler binaries&rsquo; names are not transformed even when a
    324       1.1    mrg transformation is explicitly asked for by one of these options.
    325  1.1.1.14    mrg </p>
    326  1.1.1.14    mrg <p>For native builds, some of the installed programs are also installed
    327       1.1    mrg with the target alias in front of their name, as in
    328  1.1.1.14    mrg &lsquo;<samp>i686-pc-linux-gnu-gcc</samp>&rsquo;.  All of the above transformations happen
    329       1.1    mrg before the target alias is prepended to the name&mdash;so, specifying
    330  1.1.1.14    mrg <samp>--program-prefix=foo-</samp> and <samp>program-suffix=-3.1</samp>, the
    331       1.1    mrg resulting binary would be installed as
    332  1.1.1.14    mrg <samp>/usr/local/bin/i686-pc-linux-gnu-foo-gcc-3.1</samp>.
    333  1.1.1.14    mrg </p>
    334  1.1.1.14    mrg <p>As a last shortcoming, none of the installed Ada programs are
    335       1.1    mrg transformed yet, which will be fixed in some time.
    336  1.1.1.14    mrg </p>
    337  1.1.1.14    mrg </dd>
    338  1.1.1.14    mrg <dt><code>--with-local-prefix=<var>dirname</var></code></dt>
    339  1.1.1.14    mrg <dd><p>Specify the
    340       1.1    mrg installation directory for local include files.  The default is
    341  1.1.1.14    mrg <samp>/usr/local</samp>.  Specify this option if you want the compiler to
    342  1.1.1.14    mrg search directory <samp><var>dirname</var>/include</samp> for locally installed
    343  1.1.1.14    mrg header files <em>instead</em> of <samp>/usr/local/include</samp>.
    344  1.1.1.14    mrg </p>
    345  1.1.1.14    mrg <p>You should specify <samp>--with-local-prefix</samp> <strong>only</strong> if your
    346  1.1.1.14    mrg site has a different convention (not <samp>/usr/local</samp>) for where to put
    347       1.1    mrg site-specific files.
    348  1.1.1.14    mrg </p>
    349  1.1.1.14    mrg <p>The default value for <samp>--with-local-prefix</samp> is <samp>/usr/local</samp>
    350  1.1.1.14    mrg regardless of the value of <samp>--prefix</samp>.  Specifying
    351  1.1.1.14    mrg <samp>--prefix</samp> has no effect on which directory GCC searches for
    352       1.1    mrg local header files.  This may seem counterintuitive, but actually it is
    353       1.1    mrg logical.
    354  1.1.1.14    mrg </p>
    355  1.1.1.14    mrg <p>The purpose of <samp>--prefix</samp> is to specify where to <em>install
    356  1.1.1.14    mrg GCC</em>.  The local header files in <samp>/usr/local/include</samp>&mdash;if you put
    357       1.1    mrg any in that directory&mdash;are not part of GCC.  They are part of other
    358       1.1    mrg programs&mdash;perhaps many others.  (GCC installs its own header files in
    359  1.1.1.14    mrg another directory which is based on the <samp>--prefix</samp> value.)
    360  1.1.1.14    mrg </p>
    361  1.1.1.14    mrg <p>Both the local-prefix include directory and the GCC-prefix include
    362  1.1.1.14    mrg directory are part of GCC&rsquo;s &ldquo;system include&rdquo; directories.  Although these
    363       1.1    mrg two directories are not fixed, they need to be searched in the proper
    364       1.1    mrg order for the correct processing of the include_next directive.  The
    365       1.1    mrg local-prefix include directory is searched before the GCC-prefix
    366       1.1    mrg include directory.  Another characteristic of system include directories
    367       1.1    mrg is that pedantic warnings are turned off for headers in these directories.
    368  1.1.1.14    mrg </p>
    369  1.1.1.14    mrg <p>Some autoconf macros add <samp>-I <var>directory</var></samp> options to the
    370       1.1    mrg compiler command line, to ensure that directories containing installed
    371  1.1.1.14    mrg packages&rsquo; headers are searched.  When <var>directory</var> is one of GCC&rsquo;s
    372       1.1    mrg system include directories, GCC will ignore the option so that system
    373       1.1    mrg directories continue to be processed in the correct order.  This
    374       1.1    mrg may result in a search order different from what was specified but the
    375       1.1    mrg directory will still be searched.
    376  1.1.1.14    mrg </p>
    377  1.1.1.14    mrg <p>GCC automatically searches for ordinary libraries using
    378  1.1.1.14    mrg <code>GCC_EXEC_PREFIX</code>.  Thus, when the same installation prefix is
    379       1.1    mrg used for both GCC and packages, GCC will automatically search for
    380       1.1    mrg both headers and libraries.  This provides a configuration that is
    381       1.1    mrg easy to use.  GCC behaves in a manner similar to that when it is
    382  1.1.1.14    mrg installed as a system compiler in <samp>/usr</samp>.
    383  1.1.1.14    mrg </p>
    384  1.1.1.14    mrg <p>Sites that need to install multiple versions of GCC may not want to
    385       1.1    mrg use the above simple configuration.  It is possible to use the
    386  1.1.1.14    mrg <samp>--program-prefix</samp>, <samp>--program-suffix</samp> and
    387  1.1.1.14    mrg <samp>--program-transform-name</samp> options to install multiple versions
    388       1.1    mrg into a single directory, but it may be simpler to use different prefixes
    389  1.1.1.14    mrg and the <samp>--with-local-prefix</samp> option to specify the location of the
    390       1.1    mrg site-specific files for each version.  It will then be necessary for
    391       1.1    mrg users to specify explicitly the location of local site libraries
    392  1.1.1.14    mrg (e.g., with <code>LIBRARY_PATH</code>).
    393  1.1.1.14    mrg </p>
    394  1.1.1.14    mrg <p>The same value can be used for both <samp>--with-local-prefix</samp> and
    395  1.1.1.14    mrg <samp>--prefix</samp> provided it is not <samp>/usr</samp>.  This can be used
    396  1.1.1.14    mrg to avoid the default search of <samp>/usr/local/include</samp>.
    397  1.1.1.14    mrg </p>
    398  1.1.1.14    mrg <p><strong>Do not</strong> specify <samp>/usr</samp> as the <samp>--with-local-prefix</samp>!
    399  1.1.1.14    mrg The directory you use for <samp>--with-local-prefix</samp> <strong>must not</strong>
    400  1.1.1.14    mrg contain any of the system&rsquo;s standard header files.  If it did contain
    401       1.1    mrg them, certain programs would be miscompiled (including GNU Emacs, on
    402       1.1    mrg certain targets), because this would override and nullify the header
    403  1.1.1.14    mrg file corrections made by the <code>fixincludes</code> script.
    404  1.1.1.14    mrg </p>
    405  1.1.1.14    mrg <p>Indications are that people who use this option use it based on mistaken
    406       1.1    mrg ideas of what it is for.  People use it as if it specified where to
    407       1.1    mrg install part of GCC.  Perhaps they make this assumption because
    408       1.1    mrg installing GCC creates the directory.
    409  1.1.1.14    mrg </p>
    410  1.1.1.14    mrg </dd>
    411  1.1.1.14    mrg <dt><code>--with-gcc-major-version-only</code></dt>
    412  1.1.1.14    mrg <dd><p>Specifies that GCC should use only the major number rather than
    413  1.1.1.10    mrg <var>major</var>.<var>minor</var>.<var>patchlevel</var> in filesystem paths.
    414  1.1.1.14    mrg </p>
    415  1.1.1.14    mrg </dd>
    416  1.1.1.14    mrg <dt><code>--with-native-system-header-dir=<var>dirname</var></code></dt>
    417  1.1.1.14    mrg <dd><p>Specifies that <var>dirname</var> is the directory that contains native system
    418  1.1.1.14    mrg header files, rather than <samp>/usr/include</samp>.  This option is most useful
    419   1.1.1.3  skrll if you are creating a compiler that should be isolated from the system
    420   1.1.1.3  skrll as much as possible.  It is most commonly used with the
    421  1.1.1.14    mrg <samp>--with-sysroot</samp> option and will cause GCC to search
    422   1.1.1.3  skrll <var>dirname</var> inside the system root specified by that option.
    423  1.1.1.14    mrg </p>
    424  1.1.1.14    mrg </dd>
    425  1.1.1.14    mrg <dt><code>--enable-shared[=<var>package</var>[,&hellip;]]</code></dt>
    426  1.1.1.14    mrg <dd><p>Build shared versions of libraries, if shared libraries are supported on
    427       1.1    mrg the target platform.  Unlike GCC 2.95.x and earlier, shared libraries
    428       1.1    mrg are enabled by default on all platforms that support shared libraries.
    429  1.1.1.14    mrg </p>
    430  1.1.1.14    mrg <p>If a list of packages is given as an argument, build shared libraries
    431       1.1    mrg only for the listed packages.  For other packages, only static libraries
    432       1.1    mrg will be built.  Package names currently recognized in the GCC tree are
    433  1.1.1.14    mrg &lsquo;<samp>libgcc</samp>&rsquo; (also known as &lsquo;<samp>gcc</samp>&rsquo;), &lsquo;<samp>libstdc++</samp>&rsquo; (not
    434  1.1.1.14    mrg &lsquo;<samp>libstdc++-v3</samp>&rsquo;), &lsquo;<samp>libffi</samp>&rsquo;, &lsquo;<samp>zlib</samp>&rsquo;, &lsquo;<samp>boehm-gc</samp>&rsquo;,
    435  1.1.1.15    mrg &lsquo;<samp>ada</samp>&rsquo;, &lsquo;<samp>libada</samp>&rsquo;, &lsquo;<samp>libgo</samp>&rsquo;, &lsquo;<samp>libobjc</samp>&rsquo;, and &lsquo;<samp>libphobos</samp>&rsquo;.
    436  1.1.1.14    mrg Note &lsquo;<samp>libiberty</samp>&rsquo; does not support shared libraries at all.
    437  1.1.1.14    mrg </p>
    438  1.1.1.14    mrg <p>Use <samp>--disable-shared</samp> to build only static libraries.  Note that
    439  1.1.1.14    mrg <samp>--disable-shared</samp> does not accept a list of package names as
    440  1.1.1.14    mrg argument, only <samp>--enable-shared</samp> does.
    441  1.1.1.14    mrg </p>
    442  1.1.1.14    mrg <p>Contrast with <samp>--enable-host-shared</samp>, which affects <em>host</em>
    443   1.1.1.6    mrg code.
    444  1.1.1.14    mrg </p>
    445  1.1.1.14    mrg </dd>
    446  1.1.1.14    mrg <dt><code>--enable-host-shared</code></dt>
    447  1.1.1.14    mrg <dd><p>Specify that the <em>host</em> code should be built into position-independent
    448   1.1.1.6    mrg machine code (with -fPIC), allowing it to be used within shared libraries,
    449   1.1.1.6    mrg but yielding a slightly slower compiler.
    450  1.1.1.14    mrg </p>
    451  1.1.1.14    mrg <p>This option is required when building the libgccjit.so library.
    452  1.1.1.14    mrg </p>
    453  1.1.1.14    mrg <p>Contrast with <samp>--enable-shared</samp>, which affects <em>target</em>
    454   1.1.1.6    mrg libraries.
    455  1.1.1.14    mrg </p>
    456  1.1.1.14    mrg </dd>
    457  1.1.1.14    mrg <dt><code><a name="with-gnu-as"></a>--with-gnu-as</code></dt>
    458  1.1.1.14    mrg <dd><p>Specify that the compiler should assume that the
    459       1.1    mrg assembler it finds is the GNU assembler.  However, this does not modify
    460       1.1    mrg the rules to find an assembler and will result in confusion if the
    461       1.1    mrg assembler found is not actually the GNU assembler.  (Confusion may also
    462       1.1    mrg result if the compiler finds the GNU assembler but has not been
    463  1.1.1.14    mrg configured with <samp>--with-gnu-as</samp>.)  If you have more than one
    464       1.1    mrg assembler installed on your system, you may want to use this option in
    465  1.1.1.14    mrg connection with <samp>--with-as=<var>pathname</var></samp> or
    466  1.1.1.14    mrg <samp>--with-build-time-tools=<var>pathname</var></samp>.
    467  1.1.1.14    mrg </p>
    468  1.1.1.14    mrg <p>The following systems are the only ones where it makes a difference
    469       1.1    mrg whether you use the GNU assembler.  On any other system,
    470  1.1.1.14    mrg <samp>--with-gnu-as</samp> has no effect.
    471  1.1.1.14    mrg </p>
    472  1.1.1.14    mrg <ul>
    473  1.1.1.14    mrg <li> &lsquo;<samp>hppa1.0-<var>any</var>-<var>any</var></samp>&rsquo;
    474  1.1.1.14    mrg </li><li> &lsquo;<samp>hppa1.1-<var>any</var>-<var>any</var></samp>&rsquo;
    475  1.1.1.14    mrg </li><li> &lsquo;<samp>sparc-sun-solaris2.<var>any</var></samp>&rsquo;
    476  1.1.1.14    mrg </li><li> &lsquo;<samp>sparc64-<var>any</var>-solaris2.<var>any</var></samp>&rsquo;
    477  1.1.1.14    mrg </li></ul>
    478  1.1.1.14    mrg 
    479  1.1.1.14    mrg </dd>
    480  1.1.1.14    mrg <dt><code><a name="with-as"></a>--with-as=<var>pathname</var></code></dt>
    481  1.1.1.14    mrg <dd><p>Specify that the compiler should use the assembler pointed to by
    482       1.1    mrg <var>pathname</var>, rather than the one found by the standard rules to find
    483       1.1    mrg an assembler, which are:
    484  1.1.1.14    mrg </p><ul>
    485  1.1.1.14    mrg <li> Unless GCC is being built with a cross compiler, check the
    486  1.1.1.14    mrg <samp><var>libexec</var>/gcc/<var>target</var>/<var>version</var></samp> directory.
    487  1.1.1.14    mrg <var>libexec</var> defaults to <samp><var>exec-prefix</var>/libexec</samp>;
    488       1.1    mrg <var>exec-prefix</var> defaults to <var>prefix</var>, which
    489  1.1.1.14    mrg defaults to <samp>/usr/local</samp> unless overridden by the
    490  1.1.1.14    mrg <samp>--prefix=<var>pathname</var></samp> switch described above.  <var>target</var>
    491  1.1.1.14    mrg is the target system triple, such as &lsquo;<samp>sparc-sun-solaris2.7</samp>&rsquo;, and
    492       1.1    mrg <var>version</var> denotes the GCC version, such as 3.0.
    493       1.1    mrg 
    494  1.1.1.14    mrg </li><li> If the target system is the same that you are building on, check
    495  1.1.1.14    mrg operating system specific directories (e.g. <samp>/usr/ccs/bin</samp> on
    496       1.1    mrg Sun Solaris 2).
    497       1.1    mrg 
    498  1.1.1.14    mrg </li><li> Check in the <code>PATH</code> for a tool whose name is prefixed by the
    499       1.1    mrg target system triple.
    500       1.1    mrg 
    501  1.1.1.14    mrg </li><li> Check in the <code>PATH</code> for a tool whose name is not prefixed by the
    502       1.1    mrg target system triple, if the host and target system triple are
    503       1.1    mrg the same (in other words, we use a host tool if it can be used for
    504  1.1.1.14    mrg the target as well).
    505  1.1.1.14    mrg </li></ul>
    506       1.1    mrg 
    507  1.1.1.14    mrg <p>You may want to use <samp>--with-as</samp> if no assembler
    508       1.1    mrg is installed in the directories listed above, or if you have multiple
    509       1.1    mrg assemblers installed and want to choose one that is not found by the
    510       1.1    mrg above rules.
    511  1.1.1.14    mrg </p>
    512  1.1.1.14    mrg </dd>
    513  1.1.1.14    mrg <dt><code><a name="with-gnu-ld"></a>--with-gnu-ld</code></dt>
    514  1.1.1.14    mrg <dd><p>Same as <a href="#with-gnu-as"><samp>--with-gnu-as</samp></a>
    515       1.1    mrg but for the linker.
    516  1.1.1.14    mrg </p>
    517  1.1.1.14    mrg </dd>
    518  1.1.1.14    mrg <dt><code>--with-ld=<var>pathname</var></code></dt>
    519  1.1.1.14    mrg <dd><p>Same as <a href="#with-as"><samp>--with-as</samp></a>
    520       1.1    mrg but for the linker.
    521  1.1.1.14    mrg </p>
    522  1.1.1.14    mrg </dd>
    523  1.1.1.14    mrg <dt><code>--with-stabs</code></dt>
    524  1.1.1.14    mrg <dd><p>Specify that stabs debugging
    525       1.1    mrg information should be used instead of whatever format the host normally
    526       1.1    mrg uses.  Normally GCC uses the same debug format as the host system.
    527  1.1.1.14    mrg </p>
    528  1.1.1.14    mrg </dd>
    529  1.1.1.14    mrg <dt><code>--with-tls=<var>dialect</var></code></dt>
    530  1.1.1.14    mrg <dd><p>Specify the default TLS dialect, for systems were there is a choice.
    531   1.1.1.3  skrll For ARM targets, possible values for <var>dialect</var> are <code>gnu</code> or
    532   1.1.1.3  skrll <code>gnu2</code>, which select between the original GNU dialect and the GNU TLS
    533   1.1.1.3  skrll descriptor-based dialect.
    534  1.1.1.14    mrg </p>
    535  1.1.1.14    mrg </dd>
    536  1.1.1.14    mrg <dt><code>--enable-multiarch</code></dt>
    537  1.1.1.14    mrg <dd><p>Specify whether to enable or disable multiarch support.  The default is
    538   1.1.1.3  skrll to check for glibc start files in a multiarch location, and enable it
    539   1.1.1.3  skrll if the files are found.  The auto detection is enabled for native builds,
    540  1.1.1.14    mrg and for cross builds configured with <samp>--with-sysroot</samp>, and without
    541  1.1.1.14    mrg <samp>--with-native-system-header-dir</samp>.
    542   1.1.1.3  skrll More documentation about multiarch can be found at
    543   1.1.1.8    mrg <a href="https://wiki.debian.org/Multiarch">https://wiki.debian.org/Multiarch</a>.
    544  1.1.1.14    mrg </p>
    545  1.1.1.14    mrg </dd>
    546  1.1.1.14    mrg <dt><code>--enable-sjlj-exceptions</code></dt>
    547  1.1.1.14    mrg <dd><p>Force use of the <code>setjmp</code>/<code>longjmp</code>-based scheme for exceptions.
    548  1.1.1.14    mrg &lsquo;<samp>configure</samp>&rsquo; ordinarily picks the correct value based on the platform.
    549   1.1.1.7    mrg Only use this option if you are sure you need a different setting.
    550  1.1.1.14    mrg </p>
    551  1.1.1.14    mrg </dd>
    552  1.1.1.14    mrg <dt><code>--enable-vtable-verify</code></dt>
    553  1.1.1.14    mrg <dd><p>Specify whether to enable or disable the vtable verification feature.
    554   1.1.1.6    mrg Enabling this feature causes libstdc++ to be built with its virtual calls
    555   1.1.1.6    mrg in verifiable mode.  This means that, when linked with libvtv, every
    556   1.1.1.6    mrg virtual call in libstdc++ will verify the vtable pointer through which the
    557   1.1.1.6    mrg call will be made before actually making the call.  If not linked with libvtv,
    558  1.1.1.14    mrg the verifier will call stub functions (in libstdc++ itself) and do nothing.
    559   1.1.1.6    mrg If vtable verification is disabled, then libstdc++ is not built with its
    560   1.1.1.6    mrg virtual calls in verifiable mode at all.  However the libvtv library will
    561  1.1.1.14    mrg still be built (see <samp>--disable-libvtv</samp> to turn off building libvtv).
    562  1.1.1.14    mrg <samp>--disable-vtable-verify</samp> is the default.
    563  1.1.1.14    mrg </p>
    564  1.1.1.14    mrg </dd>
    565  1.1.1.15    mrg <dt><code>--disable-gcov</code></dt>
    566  1.1.1.15    mrg <dd><p>Specify that the run-time library used for coverage analysis
    567  1.1.1.15    mrg and associated host tools should not be built.
    568  1.1.1.15    mrg </p>
    569  1.1.1.15    mrg </dd>
    570  1.1.1.14    mrg <dt><code>--disable-multilib</code></dt>
    571  1.1.1.14    mrg <dd><p>Specify that multiple target
    572       1.1    mrg libraries to support different target variants, calling
    573       1.1    mrg conventions, etc. should not be built.  The default is to build a
    574       1.1    mrg predefined set of them.
    575  1.1.1.14    mrg </p>
    576  1.1.1.14    mrg <p>Some targets provide finer-grained control over which multilibs are built
    577  1.1.1.14    mrg (e.g., <samp>--disable-softfloat</samp>):
    578  1.1.1.14    mrg </p><dl compact="compact">
    579  1.1.1.14    mrg <dt><code>arm-*-*</code></dt>
    580  1.1.1.14    mrg <dd><p>fpu, 26bit, underscore, interwork, biendian, nofmult.
    581  1.1.1.14    mrg </p>
    582  1.1.1.14    mrg </dd>
    583  1.1.1.14    mrg <dt><code>m68*-*-*</code></dt>
    584  1.1.1.14    mrg <dd><p>softfloat, m68881, m68000, m68020.
    585  1.1.1.14    mrg </p>
    586  1.1.1.14    mrg </dd>
    587  1.1.1.14    mrg <dt><code>mips*-*-*</code></dt>
    588  1.1.1.14    mrg <dd><p>single-float, biendian, softfloat.
    589  1.1.1.14    mrg </p>
    590  1.1.1.14    mrg </dd>
    591  1.1.1.14    mrg <dt><code>powerpc*-*-*, rs6000*-*-*</code></dt>
    592  1.1.1.14    mrg <dd><p>aix64, pthread, softfloat, powercpu, powerpccpu, powerpcos, biendian,
    593       1.1    mrg sysv, aix.
    594  1.1.1.14    mrg </p>
    595  1.1.1.14    mrg </dd>
    596  1.1.1.14    mrg </dl>
    597       1.1    mrg 
    598  1.1.1.14    mrg </dd>
    599  1.1.1.14    mrg <dt><code>--with-multilib-list=<var>list</var></code></dt>
    600  1.1.1.14    mrg <dt><code>--without-multilib-list</code></dt>
    601  1.1.1.14    mrg <dd><p>Specify what multilibs to build.  <var>list</var> is a comma separated list of
    602  1.1.1.10    mrg values, possibly consisting of a single value.  Currently only implemented
    603  1.1.1.15    mrg for aarch64*-*-*, arm*-*-*, riscv*-*-*, sh*-*-* and x86-64-*-linux*.  The
    604  1.1.1.15    mrg accepted values and meaning for each target is given below.
    605  1.1.1.14    mrg </p>
    606  1.1.1.14    mrg <dl compact="compact">
    607  1.1.1.14    mrg <dt><code>aarch64*-*-*</code></dt>
    608  1.1.1.14    mrg <dd><p><var>list</var> is a comma separated list of <code>ilp32</code>, and <code>lp64</code>
    609  1.1.1.14    mrg to enable ILP32 and LP64 run-time libraries, respectively.  If
    610  1.1.1.14    mrg <var>list</var> is empty, then there will be no multilibs and only the
    611  1.1.1.14    mrg default run-time library will be built.  If <var>list</var> is
    612  1.1.1.14    mrg <code>default</code> or &ndash;with-multilib-list= is not specified, then the
    613  1.1.1.14    mrg default set of libraries is selected based on the value of
    614  1.1.1.14    mrg <samp>--target</samp>.
    615  1.1.1.14    mrg </p>
    616  1.1.1.14    mrg </dd>
    617  1.1.1.14    mrg <dt><code>arm*-*-*</code></dt>
    618  1.1.1.15    mrg <dd><p><var>list</var> is a comma separated list of <code>aprofile</code> and
    619  1.1.1.15    mrg <code>rmprofile</code> to build multilibs for A or R and M architecture
    620  1.1.1.15    mrg profiles respectively.  Note that, due to some limitation of the current
    621  1.1.1.15    mrg multilib framework, using the combined <code>aprofile,rmprofile</code>
    622  1.1.1.15    mrg multilibs selects in some cases a less optimal multilib than when using
    623  1.1.1.15    mrg the multilib profile for the architecture targetted.  The special value
    624  1.1.1.15    mrg <code>default</code> is also accepted and is equivalent to omitting the
    625  1.1.1.15    mrg option, i.e., only the default run-time library will be enabled.
    626  1.1.1.15    mrg </p>
    627  1.1.1.15    mrg <p><var>list</var> may instead contain <code>@name</code>, to use the multilib
    628  1.1.1.15    mrg configuration Makefile fragment <samp>name</samp> in <samp>gcc/config/arm</samp> in
    629  1.1.1.15    mrg the source tree (it is part of the corresponding sources, after all).
    630  1.1.1.15    mrg It is recommended, but not required, that files used for this purpose to
    631  1.1.1.15    mrg be named starting with <samp>t-ml-</samp>, to make their intended purpose
    632  1.1.1.15    mrg self-evident, in line with GCC conventions.  Such files enable custom,
    633  1.1.1.15    mrg user-chosen multilib lists to be configured.  Whether multiple such
    634  1.1.1.15    mrg files can be used together depends on the contents of the supplied
    635  1.1.1.15    mrg files.  See <samp>gcc/config/arm/t-multilib</samp> and its supplementary
    636  1.1.1.15    mrg <samp>gcc/config/arm/t-*profile</samp> files for an example of what such
    637  1.1.1.15    mrg Makefile fragments might look like for this version of GCC.  The macros
    638  1.1.1.15    mrg expected to be defined in these fragments are not stable across GCC
    639  1.1.1.15    mrg releases, so make sure they define the <code>MULTILIB</code>-related macros
    640  1.1.1.15    mrg expected by the version of GCC you are building.
    641  1.1.1.15    mrg See &ldquo;Target Makefile Fragments&rdquo; in the internals manual.
    642  1.1.1.14    mrg </p>
    643  1.1.1.14    mrg <p>The table below gives the combination of ISAs, architectures, FPUs and
    644  1.1.1.15    mrg floating-point ABIs for which multilibs are built for each predefined
    645  1.1.1.15    mrg profile.  The union of these options is considered when specifying both
    646  1.1.1.15    mrg <code>aprofile</code> and <code>rmprofile</code>.
    647  1.1.1.14    mrg </p>
    648  1.1.1.14    mrg <table>
    649  1.1.1.14    mrg <tr><td width="15%">Option</td><td width="28%">aprofile</td><td width="30%">rmprofile</td></tr>
    650  1.1.1.14    mrg <tr><td width="15%">ISAs</td><td width="28%"><code>-marm</code> and <code>-mthumb</code></td><td width="30%"><code>-mthumb</code></td></tr>
    651  1.1.1.14    mrg <tr><td width="15%">Architectures<br><br><br><br><br><br></td><td width="28%">default architecture<br>
    652  1.1.1.10    mrg <code>-march=armv7-a</code><br>
    653  1.1.1.10    mrg <code>-march=armv7ve</code><br>
    654  1.1.1.14    mrg <code>-march=armv8-a</code><br><br><br></td><td width="30%">default architecture<br>
    655  1.1.1.10    mrg <code>-march=armv6s-m</code><br>
    656  1.1.1.10    mrg <code>-march=armv7-m</code><br>
    657  1.1.1.10    mrg <code>-march=armv7e-m</code><br>
    658  1.1.1.10    mrg <code>-march=armv8-m.base</code><br>
    659  1.1.1.10    mrg <code>-march=armv8-m.main</code><br>
    660  1.1.1.14    mrg <code>-march=armv7</code></td></tr>
    661  1.1.1.14    mrg <tr><td width="15%">FPUs<br><br><br><br><br></td><td width="28%">none<br>
    662  1.1.1.10    mrg <code>-mfpu=vfpv3-d16</code><br>
    663  1.1.1.10    mrg <code>-mfpu=neon</code><br>
    664  1.1.1.10    mrg <code>-mfpu=vfpv4-d16</code><br>
    665  1.1.1.10    mrg <code>-mfpu=neon-vfpv4</code><br>
    666  1.1.1.14    mrg <code>-mfpu=neon-fp-armv8</code></td><td width="30%">none<br>
    667  1.1.1.10    mrg <code>-mfpu=vfpv3-d16</code><br>
    668  1.1.1.10    mrg <code>-mfpu=fpv4-sp-d16</code><br>
    669  1.1.1.10    mrg <code>-mfpu=fpv5-sp-d16</code><br>
    670  1.1.1.14    mrg <code>-mfpu=fpv5-d16</code><br></td></tr>
    671  1.1.1.14    mrg <tr><td width="15%">floating-point ABIs<br><br></td><td width="28%"><code>-mfloat-abi=soft</code><br>
    672  1.1.1.10    mrg <code>-mfloat-abi=softfp</code><br>
    673  1.1.1.14    mrg <code>-mfloat-abi=hard</code></td><td width="30%"><code>-mfloat-abi=soft</code><br>
    674  1.1.1.10    mrg <code>-mfloat-abi=softfp</code><br>
    675  1.1.1.14    mrg <code>-mfloat-abi=hard</code></td></tr>
    676  1.1.1.14    mrg </table>
    677  1.1.1.10    mrg 
    678  1.1.1.14    mrg </dd>
    679  1.1.1.15    mrg <dt><code>riscv*-*-*</code></dt>
    680  1.1.1.15    mrg <dd><p><var>list</var> is a single ABI name.  The target architecture must be either
    681  1.1.1.15    mrg <code>rv32gc</code> or <code>rv64gc</code>.  This will build a single multilib for the
    682  1.1.1.15    mrg specified architecture and ABI pair.  If <code>--with-multilib-list</code> is not
    683  1.1.1.15    mrg given, then a default set of multilibs is selected based on the value of
    684  1.1.1.15    mrg <samp>--target</samp>.  This is usually a large set of multilibs.
    685  1.1.1.15    mrg </p>
    686  1.1.1.15    mrg </dd>
    687  1.1.1.14    mrg <dt><code>sh*-*-*</code></dt>
    688  1.1.1.14    mrg <dd><p><var>list</var> is a comma separated list of CPU names.  These must be of the
    689       1.1    mrg form <code>sh*</code> or <code>m*</code> (in which case they match the compiler option
    690       1.1    mrg for that processor).  The list should not contain any endian options -
    691  1.1.1.14    mrg these are handled by <samp>--with-endian</samp>.
    692  1.1.1.14    mrg </p>
    693  1.1.1.14    mrg <p>If <var>list</var> is empty, then there will be no multilibs for extra
    694       1.1    mrg processors.  The multilib for the secondary endian remains enabled.
    695  1.1.1.14    mrg </p>
    696  1.1.1.14    mrg <p>As a special case, if an entry in the list starts with a <code>!</code>
    697  1.1.1.14    mrg (exclamation point), then it is added to the list of excluded multilibs.
    698  1.1.1.14    mrg Entries of this sort should be compatible with &lsquo;<samp>MULTILIB_EXCLUDES</samp>&rsquo;
    699       1.1    mrg (once the leading <code>!</code> has been stripped).
    700  1.1.1.14    mrg </p>
    701  1.1.1.14    mrg <p>If <samp>--with-multilib-list</samp> is not given, then a default set of
    702  1.1.1.14    mrg multilibs is selected based on the value of <samp>--target</samp>.  This is
    703       1.1    mrg usually the complete set of libraries, but some targets imply a more
    704       1.1    mrg specialized subset.
    705  1.1.1.14    mrg </p>
    706  1.1.1.14    mrg <p>Example 1: to configure a compiler for SH4A only, but supporting both
    707  1.1.1.13    mrg endians, with little endian being the default:
    708  1.1.1.14    mrg </p><div class="smallexample">
    709  1.1.1.14    mrg <pre class="smallexample">--with-cpu=sh4a --with-endian=little,big --with-multilib-list=
    710  1.1.1.14    mrg </pre></div>
    711  1.1.1.14    mrg 
    712  1.1.1.14    mrg <p>Example 2: to configure a compiler for both SH4A and SH4AL-DSP, but with
    713       1.1    mrg only little endian SH4AL:
    714  1.1.1.14    mrg </p><div class="smallexample">
    715  1.1.1.14    mrg <pre class="smallexample">--with-cpu=sh4a --with-endian=little,big \
    716  1.1.1.14    mrg --with-multilib-list=sh4al,!mb/m4al
    717  1.1.1.14    mrg </pre></div>
    718  1.1.1.14    mrg 
    719  1.1.1.14    mrg </dd>
    720  1.1.1.14    mrg <dt><code>x86-64-*-linux*</code></dt>
    721  1.1.1.14    mrg <dd><p><var>list</var> is a comma separated list of <code>m32</code>, <code>m64</code> and
    722   1.1.1.3  skrll <code>mx32</code> to enable 32-bit, 64-bit and x32 run-time libraries,
    723   1.1.1.3  skrll respectively.  If <var>list</var> is empty, then there will be no multilibs
    724   1.1.1.3  skrll and only the default run-time library will be enabled.
    725  1.1.1.14    mrg </p>
    726  1.1.1.14    mrg <p>If <samp>--with-multilib-list</samp> is not given, then only 32-bit and
    727  1.1.1.14    mrg 64-bit run-time libraries will be enabled.
    728  1.1.1.14    mrg </p></dd>
    729   1.1.1.3  skrll </dl>
    730   1.1.1.3  skrll 
    731  1.1.1.14    mrg </dd>
    732  1.1.1.14    mrg <dt><code>--with-endian=<var>endians</var></code></dt>
    733  1.1.1.14    mrg <dd><p>Specify what endians to use.
    734       1.1    mrg Currently only implemented for sh*-*-*.
    735  1.1.1.14    mrg </p>
    736  1.1.1.14    mrg <p><var>endians</var> may be one of the following:
    737  1.1.1.14    mrg </p><dl compact="compact">
    738  1.1.1.14    mrg <dt><code>big</code></dt>
    739  1.1.1.14    mrg <dd><p>Use big endian exclusively.
    740  1.1.1.14    mrg </p></dd>
    741  1.1.1.14    mrg <dt><code>little</code></dt>
    742  1.1.1.14    mrg <dd><p>Use little endian exclusively.
    743  1.1.1.14    mrg </p></dd>
    744  1.1.1.14    mrg <dt><code>big,little</code></dt>
    745  1.1.1.14    mrg <dd><p>Use big endian by default.  Provide a multilib for little endian.
    746  1.1.1.14    mrg </p></dd>
    747  1.1.1.14    mrg <dt><code>little,big</code></dt>
    748  1.1.1.14    mrg <dd><p>Use little endian by default.  Provide a multilib for big endian.
    749  1.1.1.14    mrg </p></dd>
    750       1.1    mrg </dl>
    751       1.1    mrg 
    752  1.1.1.14    mrg </dd>
    753  1.1.1.14    mrg <dt><code>--enable-threads</code></dt>
    754  1.1.1.14    mrg <dd><p>Specify that the target
    755       1.1    mrg supports threads.  This affects the Objective-C compiler and runtime
    756  1.1.1.14    mrg library, and exception handling for other languages like C++.
    757       1.1    mrg On some systems, this is the default.
    758  1.1.1.14    mrg </p>
    759  1.1.1.14    mrg <p>In general, the best (and, in many cases, the only known) threading
    760       1.1    mrg model available will be configured for use.  Beware that on some
    761       1.1    mrg systems, GCC has not been taught what threading models are generally
    762  1.1.1.14    mrg available for the system.  In this case, <samp>--enable-threads</samp> is an
    763  1.1.1.14    mrg alias for <samp>--enable-threads=single</samp>.
    764  1.1.1.14    mrg </p>
    765  1.1.1.14    mrg </dd>
    766  1.1.1.14    mrg <dt><code>--disable-threads</code></dt>
    767  1.1.1.14    mrg <dd><p>Specify that threading support should be disabled for the system.
    768  1.1.1.14    mrg This is an alias for <samp>--enable-threads=single</samp>.
    769  1.1.1.14    mrg </p>
    770  1.1.1.14    mrg </dd>
    771  1.1.1.14    mrg <dt><code>--enable-threads=<var>lib</var></code></dt>
    772  1.1.1.14    mrg <dd><p>Specify that
    773       1.1    mrg <var>lib</var> is the thread support library.  This affects the Objective-C
    774       1.1    mrg compiler and runtime library, and exception handling for other languages
    775  1.1.1.10    mrg like C++.  The possibilities for <var>lib</var> are:
    776  1.1.1.14    mrg </p>
    777  1.1.1.14    mrg <dl compact="compact">
    778  1.1.1.14    mrg <dt><code>aix</code></dt>
    779  1.1.1.14    mrg <dd><p>AIX thread support.
    780  1.1.1.14    mrg </p></dd>
    781  1.1.1.14    mrg <dt><code>dce</code></dt>
    782  1.1.1.14    mrg <dd><p>DCE thread support.
    783  1.1.1.14    mrg </p></dd>
    784  1.1.1.14    mrg <dt><code>lynx</code></dt>
    785  1.1.1.14    mrg <dd><p>LynxOS thread support.
    786  1.1.1.14    mrg </p></dd>
    787  1.1.1.14    mrg <dt><code>mipssde</code></dt>
    788  1.1.1.14    mrg <dd><p>MIPS SDE thread support.
    789  1.1.1.14    mrg </p></dd>
    790  1.1.1.14    mrg <dt><code>no</code></dt>
    791  1.1.1.14    mrg <dd><p>This is an alias for &lsquo;<samp>single</samp>&rsquo;.
    792  1.1.1.14    mrg </p></dd>
    793  1.1.1.14    mrg <dt><code>posix</code></dt>
    794  1.1.1.14    mrg <dd><p>Generic POSIX/Unix98 thread support.
    795  1.1.1.14    mrg </p></dd>
    796  1.1.1.14    mrg <dt><code>rtems</code></dt>
    797  1.1.1.14    mrg <dd><p>RTEMS thread support.
    798  1.1.1.14    mrg </p></dd>
    799  1.1.1.14    mrg <dt><code>single</code></dt>
    800  1.1.1.14    mrg <dd><p>Disable thread support, should work for all platforms.
    801  1.1.1.14    mrg </p></dd>
    802  1.1.1.14    mrg <dt><code>tpf</code></dt>
    803  1.1.1.14    mrg <dd><p>TPF thread support.
    804  1.1.1.14    mrg </p></dd>
    805  1.1.1.14    mrg <dt><code>vxworks</code></dt>
    806  1.1.1.14    mrg <dd><p>VxWorks thread support.
    807  1.1.1.14    mrg </p></dd>
    808  1.1.1.14    mrg <dt><code>win32</code></dt>
    809  1.1.1.14    mrg <dd><p>Microsoft Win32 API thread support.
    810  1.1.1.14    mrg </p></dd>
    811       1.1    mrg </dl>
    812       1.1    mrg 
    813  1.1.1.14    mrg </dd>
    814  1.1.1.14    mrg <dt><code>--enable-tls</code></dt>
    815  1.1.1.14    mrg <dd><p>Specify that the target supports TLS (Thread Local Storage).  Usually
    816       1.1    mrg configure can correctly determine if TLS is supported.  In cases where
    817       1.1    mrg it guesses incorrectly, TLS can be explicitly enabled or disabled with
    818  1.1.1.14    mrg <samp>--enable-tls</samp> or <samp>--disable-tls</samp>.  This can happen if
    819       1.1    mrg the assembler supports TLS but the C library does not, or if the
    820       1.1    mrg assumptions made by the configure test are incorrect.
    821  1.1.1.14    mrg </p>
    822  1.1.1.14    mrg </dd>
    823  1.1.1.14    mrg <dt><code>--disable-tls</code></dt>
    824  1.1.1.14    mrg <dd><p>Specify that the target does not support TLS.
    825  1.1.1.14    mrg This is an alias for <samp>--enable-tls=no</samp>.
    826  1.1.1.14    mrg </p>
    827  1.1.1.14    mrg </dd>
    828  1.1.1.14    mrg <dt><code>--with-cpu=<var>cpu</var></code></dt>
    829  1.1.1.14    mrg <dt><code>--with-cpu-32=<var>cpu</var></code></dt>
    830  1.1.1.14    mrg <dt><code>--with-cpu-64=<var>cpu</var></code></dt>
    831  1.1.1.14    mrg <dd><p>Specify which cpu variant the compiler should generate code for by default.
    832  1.1.1.14    mrg <var>cpu</var> will be used as the default value of the <samp>-mcpu=</samp> switch.
    833   1.1.1.6    mrg This option is only supported on some targets, including ARC, ARM, i386, M68k,
    834  1.1.1.14    mrg PowerPC, and SPARC.  It is mandatory for ARC.  The <samp>--with-cpu-32</samp> and
    835  1.1.1.14    mrg <samp>--with-cpu-64</samp> options specify separate default CPUs for
    836       1.1    mrg 32-bit and 64-bit modes; these options are only supported for i386,
    837   1.1.1.8    mrg x86-64, PowerPC, and SPARC.
    838  1.1.1.14    mrg </p>
    839  1.1.1.14    mrg </dd>
    840  1.1.1.14    mrg <dt><code>--with-schedule=<var>cpu</var></code></dt>
    841  1.1.1.14    mrg <dt><code>--with-arch=<var>cpu</var></code></dt>
    842  1.1.1.14    mrg <dt><code>--with-arch-32=<var>cpu</var></code></dt>
    843  1.1.1.14    mrg <dt><code>--with-arch-64=<var>cpu</var></code></dt>
    844  1.1.1.14    mrg <dt><code>--with-tune=<var>cpu</var></code></dt>
    845  1.1.1.14    mrg <dt><code>--with-tune-32=<var>cpu</var></code></dt>
    846  1.1.1.14    mrg <dt><code>--with-tune-64=<var>cpu</var></code></dt>
    847  1.1.1.14    mrg <dt><code>--with-abi=<var>abi</var></code></dt>
    848  1.1.1.14    mrg <dt><code>--with-fpu=<var>type</var></code></dt>
    849  1.1.1.14    mrg <dt><code>--with-float=<var>type</var></code></dt>
    850  1.1.1.14    mrg <dd><p>These configure options provide default values for the <samp>-mschedule=</samp>,
    851  1.1.1.14    mrg <samp>-march=</samp>, <samp>-mtune=</samp>, <samp>-mabi=</samp>, and <samp>-mfpu=</samp>
    852  1.1.1.14    mrg options and for <samp>-mhard-float</samp> or <samp>-msoft-float</samp>.  As with
    853  1.1.1.14    mrg <samp>--with-cpu</samp>, which switches will be accepted and acceptable values
    854       1.1    mrg of the arguments depend on the target.
    855  1.1.1.14    mrg </p>
    856  1.1.1.14    mrg </dd>
    857  1.1.1.14    mrg <dt><code>--with-mode=<var>mode</var></code></dt>
    858  1.1.1.14    mrg <dd><p>Specify if the compiler should default to <samp>-marm</samp> or <samp>-mthumb</samp>.
    859       1.1    mrg This option is only supported on ARM targets.
    860  1.1.1.14    mrg </p>
    861  1.1.1.14    mrg </dd>
    862  1.1.1.14    mrg <dt><code>--with-stack-offset=<var>num</var></code></dt>
    863  1.1.1.14    mrg <dd><p>This option sets the default for the -mstack-offset=<var>num</var> option,
    864   1.1.1.3  skrll and will thus generally also control the setting of this option for
    865   1.1.1.3  skrll libraries.  This option is only supported on Epiphany targets.
    866  1.1.1.14    mrg </p>
    867  1.1.1.14    mrg </dd>
    868  1.1.1.14    mrg <dt><code>--with-fpmath=<var>isa</var></code></dt>
    869  1.1.1.14    mrg <dd><p>This options sets <samp>-mfpmath=sse</samp> by default and specifies the default
    870  1.1.1.14    mrg ISA for floating-point arithmetics.  You can select either &lsquo;<samp>sse</samp>&rsquo; which
    871  1.1.1.14    mrg enables <samp>-msse2</samp> or &lsquo;<samp>avx</samp>&rsquo; which enables <samp>-mavx</samp> by default.
    872   1.1.1.3  skrll This option is only supported on i386 and x86-64 targets.
    873  1.1.1.14    mrg </p>
    874  1.1.1.14    mrg </dd>
    875  1.1.1.14    mrg <dt><code>--with-fp-32=<var>mode</var></code></dt>
    876  1.1.1.14    mrg <dd><p>On MIPS targets, set the default value for the <samp>-mfp</samp> option when using
    877   1.1.1.6    mrg the o32 ABI.  The possibilities for <var>mode</var> are:
    878  1.1.1.14    mrg </p><dl compact="compact">
    879  1.1.1.14    mrg <dt><code>32</code></dt>
    880  1.1.1.14    mrg <dd><p>Use the o32 FP32 ABI extension, as with the <samp>-mfp32</samp> command-line
    881  1.1.1.14    mrg option.
    882  1.1.1.14    mrg </p></dd>
    883  1.1.1.14    mrg <dt><code>xx</code></dt>
    884  1.1.1.14    mrg <dd><p>Use the o32 FPXX ABI extension, as with the <samp>-mfpxx</samp> command-line
    885  1.1.1.14    mrg option.
    886  1.1.1.14    mrg </p></dd>
    887  1.1.1.14    mrg <dt><code>64</code></dt>
    888  1.1.1.14    mrg <dd><p>Use the o32 FP64 ABI extension, as with the <samp>-mfp64</samp> command-line
    889  1.1.1.14    mrg option.
    890  1.1.1.14    mrg </p></dd>
    891   1.1.1.6    mrg </dl>
    892  1.1.1.14    mrg <p>In the absence of this configuration option the default is to use the o32
    893   1.1.1.6    mrg FP32 ABI extension.
    894  1.1.1.14    mrg </p>
    895  1.1.1.14    mrg </dd>
    896  1.1.1.14    mrg <dt><code>--with-odd-spreg-32</code></dt>
    897  1.1.1.14    mrg <dd><p>On MIPS targets, set the <samp>-modd-spreg</samp> option by default when using
    898   1.1.1.6    mrg the o32 ABI.
    899  1.1.1.14    mrg </p>
    900  1.1.1.14    mrg </dd>
    901  1.1.1.14    mrg <dt><code>--without-odd-spreg-32</code></dt>
    902  1.1.1.14    mrg <dd><p>On MIPS targets, set the <samp>-mno-odd-spreg</samp> option by default when using
    903   1.1.1.6    mrg the o32 ABI.  This is normally used in conjunction with
    904  1.1.1.14    mrg <samp>--with-fp-32=64</samp> in order to target the o32 FP64A ABI extension.
    905  1.1.1.14    mrg </p>
    906  1.1.1.14    mrg </dd>
    907  1.1.1.14    mrg <dt><code>--with-nan=<var>encoding</var></code></dt>
    908  1.1.1.14    mrg <dd><p>On MIPS targets, set the default encoding convention to use for the
    909   1.1.1.6    mrg special not-a-number (NaN) IEEE 754 floating-point data.  The
    910   1.1.1.6    mrg possibilities for <var>encoding</var> are:
    911  1.1.1.14    mrg </p><dl compact="compact">
    912  1.1.1.14    mrg <dt><code>legacy</code></dt>
    913  1.1.1.14    mrg <dd><p>Use the legacy encoding, as with the <samp>-mnan=legacy</samp> command-line
    914  1.1.1.14    mrg option.
    915  1.1.1.14    mrg </p></dd>
    916  1.1.1.14    mrg <dt><code>2008</code></dt>
    917  1.1.1.14    mrg <dd><p>Use the 754-2008 encoding, as with the <samp>-mnan=2008</samp> command-line
    918  1.1.1.14    mrg option.
    919  1.1.1.14    mrg </p></dd>
    920   1.1.1.6    mrg </dl>
    921  1.1.1.14    mrg <p>To use this configuration option you must have an assembler version
    922  1.1.1.14    mrg installed that supports the <samp>-mnan=</samp> command-line option too.
    923   1.1.1.6    mrg In the absence of this configuration option the default convention is
    924  1.1.1.14    mrg the legacy encoding, as when neither of the <samp>-mnan=2008</samp> and
    925  1.1.1.14    mrg <samp>-mnan=legacy</samp> command-line options has been used.
    926  1.1.1.14    mrg </p>
    927  1.1.1.14    mrg </dd>
    928  1.1.1.14    mrg <dt><code>--with-divide=<var>type</var></code></dt>
    929  1.1.1.14    mrg <dd><p>Specify how the compiler should generate code for checking for
    930  1.1.1.14    mrg division by zero.  This option is only supported on the MIPS target.
    931       1.1    mrg The possibilities for <var>type</var> are:
    932  1.1.1.14    mrg </p><dl compact="compact">
    933  1.1.1.14    mrg <dt><code>traps</code></dt>
    934  1.1.1.14    mrg <dd><p>Division by zero checks use conditional traps (this is the default on
    935  1.1.1.14    mrg systems that support conditional traps).
    936  1.1.1.14    mrg </p></dd>
    937  1.1.1.14    mrg <dt><code>breaks</code></dt>
    938  1.1.1.14    mrg <dd><p>Division by zero checks use the break instruction.
    939  1.1.1.14    mrg </p></dd>
    940       1.1    mrg </dl>
    941       1.1    mrg 
    942  1.1.1.14    mrg 
    943  1.1.1.14    mrg </dd>
    944  1.1.1.14    mrg <dt><code>--with-llsc</code></dt>
    945  1.1.1.14    mrg <dd><p>On MIPS targets, make <samp>-mllsc</samp> the default when no
    946  1.1.1.14    mrg <samp>-mno-llsc</samp> option is passed.  This is the default for
    947       1.1    mrg Linux-based targets, as the kernel will emulate them if the ISA does
    948       1.1    mrg not provide them.
    949  1.1.1.14    mrg </p>
    950  1.1.1.14    mrg </dd>
    951  1.1.1.14    mrg <dt><code>--without-llsc</code></dt>
    952  1.1.1.14    mrg <dd><p>On MIPS targets, make <samp>-mno-llsc</samp> the default when no
    953  1.1.1.14    mrg <samp>-mllsc</samp> option is passed.
    954  1.1.1.14    mrg </p>
    955  1.1.1.14    mrg </dd>
    956  1.1.1.14    mrg <dt><code>--with-synci</code></dt>
    957  1.1.1.14    mrg <dd><p>On MIPS targets, make <samp>-msynci</samp> the default when no
    958  1.1.1.14    mrg <samp>-mno-synci</samp> option is passed.
    959  1.1.1.14    mrg </p>
    960  1.1.1.14    mrg </dd>
    961  1.1.1.14    mrg <dt><code>--without-synci</code></dt>
    962  1.1.1.14    mrg <dd><p>On MIPS targets, make <samp>-mno-synci</samp> the default when no
    963  1.1.1.14    mrg <samp>-msynci</samp> option is passed.  This is the default.
    964  1.1.1.14    mrg </p>
    965  1.1.1.14    mrg </dd>
    966  1.1.1.14    mrg <dt><code>--with-lxc1-sxc1</code></dt>
    967  1.1.1.14    mrg <dd><p>On MIPS targets, make <samp>-mlxc1-sxc1</samp> the default when no
    968  1.1.1.14    mrg <samp>-mno-lxc1-sxc1</samp> option is passed.  This is the default.
    969  1.1.1.14    mrg </p>
    970  1.1.1.14    mrg </dd>
    971  1.1.1.14    mrg <dt><code>--without-lxc1-sxc1</code></dt>
    972  1.1.1.14    mrg <dd><p>On MIPS targets, make <samp>-mno-lxc1-sxc1</samp> the default when no
    973  1.1.1.14    mrg <samp>-mlxc1-sxc1</samp> option is passed.  The indexed load/store
    974  1.1.1.10    mrg instructions are not directly a problem but can lead to unexpected
    975  1.1.1.10    mrg behaviour when deployed in an application intended for a 32-bit address
    976  1.1.1.10    mrg space but run on a 64-bit processor.  The issue is seen because all
    977  1.1.1.10    mrg known MIPS 64-bit Linux kernels execute o32 and n32 applications
    978  1.1.1.10    mrg with 64-bit addressing enabled which affects the overflow behaviour
    979  1.1.1.10    mrg of the indexed addressing mode.  GCC will assume that ordinary
    980  1.1.1.10    mrg 32-bit arithmetic overflow behaviour is the same whether performed
    981  1.1.1.10    mrg as an <code>addu</code> instruction or as part of the address calculation
    982  1.1.1.10    mrg in <code>lwxc1</code> type instructions.  This assumption holds true in a
    983  1.1.1.10    mrg pure 32-bit environment and can hold true in a 64-bit environment if
    984  1.1.1.10    mrg the address space is accurately set to be 32-bit for o32 and n32.
    985  1.1.1.14    mrg </p>
    986  1.1.1.14    mrg </dd>
    987  1.1.1.14    mrg <dt><code>--with-madd4</code></dt>
    988  1.1.1.14    mrg <dd><p>On MIPS targets, make <samp>-mmadd4</samp> the default when no
    989  1.1.1.14    mrg <samp>-mno-madd4</samp> option is passed.  This is the default.
    990  1.1.1.14    mrg </p>
    991  1.1.1.14    mrg </dd>
    992  1.1.1.14    mrg <dt><code>--without-madd4</code></dt>
    993  1.1.1.14    mrg <dd><p>On MIPS targets, make <samp>-mno-madd4</samp> the default when no
    994  1.1.1.14    mrg <samp>-mmadd4</samp> option is passed.  The <code>madd4</code> instruction
    995  1.1.1.10    mrg family can be problematic when targeting a combination of cores that
    996  1.1.1.10    mrg implement these instructions differently.  There are two known cores
    997  1.1.1.10    mrg that implement these as fused operations instead of unfused (where
    998  1.1.1.10    mrg unfused is normally expected).  Disabling these instructions is the
    999  1.1.1.10    mrg only way to ensure compatible code is generated; this will incur
   1000  1.1.1.10    mrg a performance penalty.
   1001  1.1.1.14    mrg </p>
   1002  1.1.1.14    mrg </dd>
   1003  1.1.1.14    mrg <dt><code>--with-mips-plt</code></dt>
   1004  1.1.1.14    mrg <dd><p>On MIPS targets, make use of copy relocations and PLTs.
   1005       1.1    mrg These features are extensions to the traditional
   1006       1.1    mrg SVR4-based MIPS ABIs and require support from GNU binutils
   1007       1.1    mrg and the runtime C library.
   1008  1.1.1.14    mrg </p>
   1009  1.1.1.14    mrg </dd>
   1010  1.1.1.15    mrg <dt><code>--with-stack-clash-protection-guard-size=<var>size</var></code></dt>
   1011  1.1.1.15    mrg <dd><p>On certain targets this option sets the default stack clash protection guard
   1012  1.1.1.15    mrg size as a power of two in bytes.  On AArch64 <var>size</var> is required to be either
   1013  1.1.1.15    mrg 12 (4KB) or 16 (64KB).
   1014  1.1.1.15    mrg </p>
   1015  1.1.1.15    mrg </dd>
   1016  1.1.1.14    mrg <dt><code>--enable-__cxa_atexit</code></dt>
   1017  1.1.1.14    mrg <dd><p>Define if you want to use __cxa_atexit, rather than atexit, to
   1018  1.1.1.14    mrg register C++ destructors for local statics and global objects.
   1019       1.1    mrg This is essential for fully standards-compliant handling of
   1020       1.1    mrg destructors, but requires __cxa_atexit in libc.  This option is currently
   1021       1.1    mrg only available on systems with GNU libc.  When enabled, this will cause
   1022  1.1.1.14    mrg <samp>-fuse-cxa-atexit</samp> to be passed by default.
   1023  1.1.1.14    mrg </p>
   1024  1.1.1.14    mrg </dd>
   1025  1.1.1.14    mrg <dt><code>--enable-gnu-indirect-function</code></dt>
   1026  1.1.1.14    mrg <dd><p>Define if you want to enable the <code>ifunc</code> attribute.  This option is
   1027   1.1.1.3  skrll currently only available on systems with GNU libc on certain targets.
   1028  1.1.1.14    mrg </p>
   1029  1.1.1.14    mrg </dd>
   1030  1.1.1.14    mrg <dt><code>--enable-target-optspace</code></dt>
   1031  1.1.1.14    mrg <dd><p>Specify that target
   1032  1.1.1.14    mrg libraries should be optimized for code space instead of code speed.
   1033       1.1    mrg This is the default for the m32r platform.
   1034  1.1.1.14    mrg </p>
   1035  1.1.1.14    mrg </dd>
   1036  1.1.1.14    mrg <dt><code>--with-cpp-install-dir=<var>dirname</var></code></dt>
   1037  1.1.1.14    mrg <dd><p>Specify that the user visible <code>cpp</code> program should be installed
   1038  1.1.1.14    mrg in <samp><var>prefix</var>/<var>dirname</var>/cpp</samp>, in addition to <var>bindir</var>.
   1039  1.1.1.14    mrg </p>
   1040  1.1.1.14    mrg </dd>
   1041  1.1.1.14    mrg <dt><code>--enable-comdat</code></dt>
   1042  1.1.1.14    mrg <dd><p>Enable COMDAT group support.  This is primarily used to override the
   1043       1.1    mrg automatically detected value.
   1044  1.1.1.14    mrg </p>
   1045  1.1.1.14    mrg </dd>
   1046  1.1.1.14    mrg <dt><code>--enable-initfini-array</code></dt>
   1047  1.1.1.14    mrg <dd><p>Force the use of sections <code>.init_array</code> and <code>.fini_array</code>
   1048       1.1    mrg (instead of <code>.init</code> and <code>.fini</code>) for constructors and
   1049  1.1.1.14    mrg destructors.  Option <samp>--disable-initfini-array</samp> has the
   1050       1.1    mrg opposite effect.  If neither option is specified, the configure script
   1051       1.1    mrg will try to guess whether the <code>.init_array</code> and
   1052       1.1    mrg <code>.fini_array</code> sections are supported and, if they are, use them.
   1053  1.1.1.14    mrg </p>
   1054  1.1.1.14    mrg </dd>
   1055  1.1.1.14    mrg <dt><code>--enable-link-mutex</code></dt>
   1056  1.1.1.14    mrg <dd><p>When building GCC, use a mutex to avoid linking the compilers for
   1057   1.1.1.6    mrg multiple languages at the same time, to avoid thrashing on build
   1058   1.1.1.6    mrg systems with limited free memory.  The default is not to use such a mutex.
   1059  1.1.1.14    mrg </p>
   1060  1.1.1.14    mrg </dd>
   1061  1.1.1.14    mrg <dt><code>--enable-maintainer-mode</code></dt>
   1062  1.1.1.14    mrg <dd><p>The build rules that regenerate the Autoconf and Automake output files as
   1063  1.1.1.14    mrg well as the GCC master message catalog <samp>gcc.pot</samp> are normally
   1064       1.1    mrg disabled.  This is because it can only be rebuilt if the complete source
   1065       1.1    mrg tree is present.  If you have changed the sources and want to rebuild the
   1066  1.1.1.14    mrg catalog, configuring with <samp>--enable-maintainer-mode</samp> will enable
   1067       1.1    mrg this.  Note that you need a recent version of the <code>gettext</code> tools
   1068       1.1    mrg to do so.
   1069  1.1.1.14    mrg </p>
   1070  1.1.1.14    mrg </dd>
   1071  1.1.1.14    mrg <dt><code>--disable-bootstrap</code></dt>
   1072  1.1.1.14    mrg <dd><p>For a native build, the default configuration is to perform
   1073  1.1.1.14    mrg a 3-stage bootstrap of the compiler when &lsquo;<samp>make</samp>&rsquo; is invoked,
   1074       1.1    mrg testing that GCC can compile itself correctly.  If you want to disable
   1075  1.1.1.14    mrg this process, you can configure with <samp>--disable-bootstrap</samp>.
   1076  1.1.1.14    mrg </p>
   1077  1.1.1.14    mrg </dd>
   1078  1.1.1.14    mrg <dt><code>--enable-bootstrap</code></dt>
   1079  1.1.1.14    mrg <dd><p>In special cases, you may want to perform a 3-stage build
   1080  1.1.1.14    mrg even if the target and host triplets are different.
   1081       1.1    mrg This is possible when the host can run code compiled for
   1082  1.1.1.14    mrg the target (e.g. host is i686-linux, target is i486-linux).
   1083       1.1    mrg Starting from GCC 4.2, to do this you have to configure explicitly
   1084  1.1.1.14    mrg with <samp>--enable-bootstrap</samp>.
   1085  1.1.1.14    mrg </p>
   1086  1.1.1.14    mrg </dd>
   1087  1.1.1.14    mrg <dt><code>--enable-generated-files-in-srcdir</code></dt>
   1088  1.1.1.14    mrg <dd><p>Neither the .c and .h files that are generated from Bison and flex nor the
   1089       1.1    mrg info manuals and man pages that are built from the .texi files are present
   1090  1.1.1.14    mrg in the repository development tree.  When building GCC from that development tree,
   1091       1.1    mrg or from one of our snapshots, those generated files are placed in your
   1092       1.1    mrg build directory, which allows for the source to be in a readonly
   1093       1.1    mrg directory.
   1094  1.1.1.14    mrg </p>
   1095  1.1.1.14    mrg <p>If you configure with <samp>--enable-generated-files-in-srcdir</samp> then those
   1096       1.1    mrg generated files will go into the source directory.  This is mainly intended
   1097       1.1    mrg for generating release or prerelease tarballs of the GCC sources, since it
   1098       1.1    mrg is not a requirement that the users of source releases to have flex, Bison,
   1099       1.1    mrg or makeinfo.
   1100  1.1.1.14    mrg </p>
   1101  1.1.1.14    mrg </dd>
   1102  1.1.1.14    mrg <dt><code>--enable-version-specific-runtime-libs</code></dt>
   1103  1.1.1.14    mrg <dd><p>Specify
   1104       1.1    mrg that runtime libraries should be installed in the compiler specific
   1105  1.1.1.14    mrg subdirectory (<samp><var>libdir</var>/gcc</samp>) rather than the usual places.  In
   1106  1.1.1.14    mrg addition, &lsquo;<samp>libstdc++</samp>&rsquo;&rsquo;s include files will be installed into
   1107       1.1    mrg <samp><var>libdir</var></samp> unless you overruled it by using
   1108  1.1.1.14    mrg <samp>--with-gxx-include-dir=<var>dirname</var></samp>.  Using this option is
   1109       1.1    mrg particularly useful if you intend to use several versions of GCC in
   1110  1.1.1.14    mrg parallel.  This is currently supported by &lsquo;<samp>libgfortran</samp>&rsquo;,
   1111  1.1.1.14    mrg &lsquo;<samp>libstdc++</samp>&rsquo;, and &lsquo;<samp>libobjc</samp>&rsquo;.
   1112  1.1.1.14    mrg </p>
   1113  1.1.1.14    mrg </dd>
   1114  1.1.1.14    mrg <dt><code><a name="WithAixSoname"></a>--with-aix-soname=&lsquo;<samp>aix</samp>&rsquo;, &lsquo;<samp>svr4</samp>&rsquo; or &lsquo;<samp>both</samp>&rsquo;</code></dt>
   1115  1.1.1.14    mrg <dd><p>Traditional AIX shared library versioning (versioned <code>Shared Object</code>
   1116   1.1.1.6    mrg files as members of unversioned <code>Archive Library</code> files named
   1117  1.1.1.14    mrg &lsquo;<samp>lib.a</samp>&rsquo;) causes numerous headaches for package managers. However,
   1118   1.1.1.6    mrg <code>Import Files</code> as members of <code>Archive Library</code> files allow for
   1119   1.1.1.6    mrg <strong>filename-based versioning</strong> of shared libraries as seen on Linux/SVR4,
   1120  1.1.1.14    mrg where this is called the &quot;SONAME&quot;. But as they prevent static linking,
   1121   1.1.1.6    mrg <code>Import Files</code> may be used with <code>Runtime Linking</code> only, where the
   1122  1.1.1.14    mrg linker does search for &lsquo;<samp>libNAME.so</samp>&rsquo; before &lsquo;<samp>libNAME.a</samp>&rsquo; library
   1123  1.1.1.14    mrg filenames with the &lsquo;<samp>-lNAME</samp>&rsquo; linker flag.
   1124  1.1.1.14    mrg </p>
   1125  1.1.1.14    mrg <a name="AixLdCommand"></a><p>For detailed information please refer to the AIX
   1126  1.1.1.14    mrg <a href="https://www.ibm.com/support/knowledgecenter/search/%22the%20ld%20command%2C%20also%20called%20the%20linkage%20editor%20or%20binder%22">ld
   1127  1.1.1.14    mrg Command</a> reference.
   1128  1.1.1.14    mrg </p>
   1129  1.1.1.14    mrg <p>As long as shared library creation is enabled, upon:
   1130  1.1.1.14    mrg </p><dl compact="compact">
   1131  1.1.1.14    mrg <dt><code>--with-aix-soname=aix</code></dt>
   1132  1.1.1.14    mrg <dt><code>--with-aix-soname=both</code></dt>
   1133  1.1.1.14    mrg <dd><p>A (traditional AIX) <code>Shared Archive Library</code> file is created:
   1134  1.1.1.14    mrg  </p><ul>
   1135  1.1.1.14    mrg <li> using the &lsquo;<samp>libNAME.a</samp>&rsquo; filename scheme
   1136  1.1.1.14    mrg   </li><li> with the <code>Shared Object</code> file as archive member named
   1137  1.1.1.14    mrg   &lsquo;<samp>libNAME.so.V</samp>&rsquo; (except for &lsquo;<samp>libgcc_s</samp>&rsquo;, where the <code>Shared
   1138  1.1.1.14    mrg   Object</code> file is named &lsquo;<samp>shr.o</samp>&rsquo; for backwards compatibility), which
   1139  1.1.1.14    mrg   <ul class="no-bullet">
   1140  1.1.1.14    mrg <li>- is used for runtime loading from inside the &lsquo;<samp>libNAME.a</samp>&rsquo; file
   1141  1.1.1.14    mrg    </li><li>- is used for dynamic loading via
   1142  1.1.1.14    mrg    <code>dlopen(&quot;libNAME.a(libNAME.so.V)&quot;, RTLD_MEMBER)</code>
   1143  1.1.1.14    mrg    </li><li>- is used for shared linking
   1144  1.1.1.14    mrg    </li><li>- is used for static linking, so no separate <code>Static Archive
   1145   1.1.1.6    mrg    Library</code> file is needed
   1146  1.1.1.14    mrg   </li></ul>
   1147  1.1.1.14    mrg </li></ul>
   1148  1.1.1.14    mrg </dd>
   1149  1.1.1.14    mrg <dt><code>--with-aix-soname=both</code></dt>
   1150  1.1.1.14    mrg <dt><code>--with-aix-soname=svr4</code></dt>
   1151  1.1.1.14    mrg <dd><p>A (second) <code>Shared Archive Library</code> file is created:
   1152  1.1.1.14    mrg  </p><ul>
   1153  1.1.1.14    mrg <li> using the &lsquo;<samp>libNAME.so.V</samp>&rsquo; filename scheme
   1154  1.1.1.14    mrg  </li><li> with the <code>Shared Object</code> file as archive member named
   1155  1.1.1.14    mrg  &lsquo;<samp>shr.o</samp>&rsquo;, which
   1156  1.1.1.14    mrg   <ul class="no-bullet">
   1157  1.1.1.14    mrg <li>- is created with the <code>-G linker flag</code>
   1158  1.1.1.14    mrg    </li><li>- has the <code>F_LOADONLY</code> flag set
   1159  1.1.1.14    mrg    </li><li>- is used for runtime loading from inside the &lsquo;<samp>libNAME.so.V</samp>&rsquo; file
   1160  1.1.1.14    mrg    </li><li>- is used for dynamic loading via <code>dlopen(&quot;libNAME.so.V(shr.o)&quot;,
   1161   1.1.1.6    mrg    RTLD_MEMBER)</code>
   1162  1.1.1.14    mrg   </li></ul>
   1163  1.1.1.14    mrg </li><li> with the <code>Import File</code> as archive member named &lsquo;<samp>shr.imp</samp>&rsquo;,
   1164   1.1.1.6    mrg  which
   1165  1.1.1.14    mrg   <ul class="no-bullet">
   1166  1.1.1.14    mrg <li>- refers to &lsquo;<samp>libNAME.so.V(shr.o)</samp>&rsquo; as the &quot;SONAME&quot;, to be recorded
   1167   1.1.1.6    mrg    in the <code>Loader Section</code> of subsequent binaries
   1168  1.1.1.14    mrg    </li><li>- indicates whether &lsquo;<samp>libNAME.so.V(shr.o)</samp>&rsquo; is 32 or 64 bit
   1169  1.1.1.14    mrg    </li><li>- lists all the public symbols exported by &lsquo;<samp>lib.so.V(shr.o)</samp>&rsquo;,
   1170  1.1.1.14    mrg    eventually decorated with the <code>&lsquo;<samp>weak</samp>&rsquo; Keyword</code>
   1171  1.1.1.14    mrg    </li><li>- is necessary for shared linking against &lsquo;<samp>lib.so.V(shr.o)</samp>&rsquo;
   1172  1.1.1.14    mrg    </li></ul>
   1173  1.1.1.14    mrg </li></ul>
   1174  1.1.1.14    mrg <p>A symbolic link using the &lsquo;<samp>libNAME.so</samp>&rsquo; filename scheme is created:
   1175  1.1.1.14    mrg   </p><ul>
   1176  1.1.1.14    mrg <li> pointing to the &lsquo;<samp>libNAME.so.V</samp>&rsquo; <code>Shared Archive Library</code> file
   1177  1.1.1.14    mrg   </li><li> to permit the <code>ld Command</code> to find &lsquo;<samp>lib.so.V(shr.imp)</samp>&rsquo; via
   1178  1.1.1.14    mrg   the &lsquo;<samp>-lNAME</samp>&rsquo; argument (requires <code>Runtime Linking</code> to be enabled)
   1179  1.1.1.14    mrg   </li><li> to permit dynamic loading of &lsquo;<samp>lib.so.V(shr.o)</samp>&rsquo; without the need
   1180  1.1.1.14    mrg   to specify the version number via <code>dlopen(&quot;libNAME.so(shr.o)&quot;,
   1181   1.1.1.6    mrg   RTLD_MEMBER)</code>
   1182  1.1.1.14    mrg   </li></ul>
   1183  1.1.1.14    mrg </dd>
   1184  1.1.1.14    mrg </dl>
   1185   1.1.1.6    mrg 
   1186  1.1.1.14    mrg <p>As long as static library creation is enabled, upon:
   1187  1.1.1.14    mrg </p><dl compact="compact">
   1188  1.1.1.14    mrg <dt><code>--with-aix-soname=svr4</code></dt>
   1189  1.1.1.14    mrg <dd><p>A <code>Static Archive Library</code> is created:
   1190  1.1.1.14    mrg  </p><ul>
   1191  1.1.1.14    mrg <li> using the &lsquo;<samp>libNAME.a</samp>&rsquo; filename scheme
   1192  1.1.1.14    mrg  </li><li> with all the <code>Static Object</code> files as archive members, which
   1193  1.1.1.14    mrg   <ul class="no-bullet">
   1194  1.1.1.14    mrg <li>- are used for static linking
   1195  1.1.1.14    mrg   </li></ul>
   1196  1.1.1.14    mrg </li></ul>
   1197  1.1.1.14    mrg </dd>
   1198  1.1.1.14    mrg </dl>
   1199   1.1.1.6    mrg 
   1200  1.1.1.14    mrg <p>While the aix-soname=&lsquo;<samp>svr4</samp>&rsquo; option does not create <code>Shared Object</code>
   1201   1.1.1.6    mrg files as members of unversioned <code>Archive Library</code> files any more, package
   1202   1.1.1.6    mrg managers still are responsible to
   1203   1.1.1.6    mrg <a href="./specific.html#TransferAixShobj">transfer</a> <code>Shared Object</code> files
   1204   1.1.1.6    mrg found as member of a previously installed unversioned <code>Archive Library</code>
   1205   1.1.1.6    mrg file into the newly installed <code>Archive Library</code> file with the same
   1206   1.1.1.6    mrg filename.
   1207  1.1.1.14    mrg </p>
   1208  1.1.1.14    mrg <p><em>WARNING:</em> Creating <code>Shared Object</code> files with <code>Runtime Linking</code>
   1209   1.1.1.6    mrg enabled may bloat the TOC, eventually leading to <code>TOC overflow</code> errors,
   1210  1.1.1.14    mrg requiring the use of either the <samp>-Wl,-bbigtoc</samp> linker flag (seen to
   1211   1.1.1.6    mrg break with the <code>GDB</code> debugger) or some of the TOC-related compiler flags,
   1212   1.1.1.6    mrg see &ldquo;RS/6000 and PowerPC Options&rdquo; in the main manual.
   1213  1.1.1.14    mrg </p>
   1214  1.1.1.14    mrg <p><samp>--with-aix-soname</samp> is currently supported by &lsquo;<samp>libgcc_s</samp>&rsquo; only, so
   1215   1.1.1.6    mrg this option is still experimental and not for normal use yet.
   1216  1.1.1.14    mrg </p>
   1217  1.1.1.14    mrg <p>Default is the traditional behavior <samp>--with-aix-soname=&lsquo;<samp>aix</samp>&rsquo;</samp>.
   1218  1.1.1.14    mrg </p>
   1219  1.1.1.14    mrg </dd>
   1220  1.1.1.14    mrg <dt><code>--enable-languages=<var>lang1</var>,<var>lang2</var>,&hellip;</code></dt>
   1221  1.1.1.14    mrg <dd><p>Specify that only a particular subset of compilers and
   1222       1.1    mrg their runtime libraries should be built.  For a list of valid values for
   1223       1.1    mrg <var>langN</var> you can issue the following command in the
   1224  1.1.1.14    mrg <samp>gcc</samp> directory of your GCC source tree:<br>
   1225  1.1.1.14    mrg </p><div class="smallexample">
   1226  1.1.1.14    mrg <pre class="smallexample">grep ^language= */config-lang.in
   1227  1.1.1.14    mrg </pre></div>
   1228  1.1.1.14    mrg <p>Currently, you can use any of the following:
   1229  1.1.1.15    mrg <code>all</code>, <code>default</code>, <code>ada</code>, <code>c</code>, <code>c++</code>, <code>d</code>,
   1230  1.1.1.15    mrg <code>fortran</code>, <code>go</code>, <code>jit</code>, <code>lto</code>, <code>objc</code>, <code>obj-c++</code>.
   1231  1.1.1.14    mrg Building the Ada compiler has special requirements, see below.
   1232  1.1.1.14    mrg If you do not pass this flag, or specify the option <code>default</code>, then the
   1233  1.1.1.14    mrg default languages available in the <samp>gcc</samp> sub-tree will be configured.
   1234  1.1.1.15    mrg Ada, D, Go, Jit, and Objective-C++ are not default languages.  LTO is not a
   1235  1.1.1.14    mrg default language, but is built by default because <samp>--enable-lto</samp> is
   1236  1.1.1.14    mrg enabled by default.  The other languages are default languages.  If
   1237  1.1.1.14    mrg <code>all</code> is specified, then all available languages are built.  An
   1238  1.1.1.14    mrg exception is <code>jit</code> language, which requires
   1239  1.1.1.14    mrg <samp>--enable-host-shared</samp> to be included with <code>all</code>.
   1240  1.1.1.14    mrg </p>
   1241  1.1.1.14    mrg </dd>
   1242  1.1.1.14    mrg <dt><code>--enable-stage1-languages=<var>lang1</var>,<var>lang2</var>,&hellip;</code></dt>
   1243  1.1.1.14    mrg <dd><p>Specify that a particular subset of compilers and their runtime
   1244       1.1    mrg libraries should be built with the system C compiler during stage 1 of
   1245       1.1    mrg the bootstrap process, rather than only in later stages with the
   1246       1.1    mrg bootstrapped C compiler.  The list of valid values is the same as for
   1247  1.1.1.14    mrg <samp>--enable-languages</samp>, and the option <code>all</code> will select all
   1248  1.1.1.14    mrg of the languages enabled by <samp>--enable-languages</samp>.  This option is
   1249       1.1    mrg primarily useful for GCC development; for instance, when a development
   1250       1.1    mrg version of the compiler cannot bootstrap due to compiler bugs, or when
   1251       1.1    mrg one is debugging front ends other than the C front end.  When this
   1252       1.1    mrg option is used, one can then build the target libraries for the
   1253  1.1.1.14    mrg specified languages with the stage-1 compiler by using <code>make
   1254  1.1.1.14    mrg stage1-bubble all-target</code>, or run the testsuite on the stage-1 compiler
   1255  1.1.1.14    mrg for the specified languages using <code>make stage1-start check-gcc</code>.
   1256  1.1.1.14    mrg </p>
   1257  1.1.1.14    mrg </dd>
   1258  1.1.1.14    mrg <dt><code>--disable-libada</code></dt>
   1259  1.1.1.14    mrg <dd><p>Specify that the run-time libraries and tools used by GNAT should not
   1260       1.1    mrg be built.  This can be useful for debugging, or for compatibility with
   1261       1.1    mrg previous Ada build procedures, when it was required to explicitly
   1262  1.1.1.14    mrg do a &lsquo;<samp>make -C gcc gnatlib_and_tools</samp>&rsquo;.
   1263  1.1.1.14    mrg </p>
   1264  1.1.1.14    mrg </dd>
   1265  1.1.1.14    mrg <dt><code>--disable-libsanitizer</code></dt>
   1266  1.1.1.14    mrg <dd><p>Specify that the run-time libraries for the various sanitizers should
   1267   1.1.1.6    mrg not be built.
   1268  1.1.1.14    mrg </p>
   1269  1.1.1.14    mrg </dd>
   1270  1.1.1.14    mrg <dt><code>--disable-libssp</code></dt>
   1271  1.1.1.14    mrg <dd><p>Specify that the run-time libraries for stack smashing protection
   1272  1.1.1.14    mrg should not be built or linked against.  On many targets library support
   1273  1.1.1.14    mrg is provided by the C library instead.
   1274  1.1.1.14    mrg </p>
   1275  1.1.1.14    mrg </dd>
   1276  1.1.1.14    mrg <dt><code>--disable-libquadmath</code></dt>
   1277  1.1.1.14    mrg <dd><p>Specify that the GCC quad-precision math library should not be built.
   1278   1.1.1.3  skrll On some systems, the library is required to be linkable when building
   1279  1.1.1.14    mrg the Fortran front end, unless <samp>--disable-libquadmath-support</samp>
   1280   1.1.1.3  skrll is used.
   1281  1.1.1.14    mrg </p>
   1282  1.1.1.14    mrg </dd>
   1283  1.1.1.14    mrg <dt><code>--disable-libquadmath-support</code></dt>
   1284  1.1.1.14    mrg <dd><p>Specify that the Fortran front end and <code>libgfortran</code> do not add
   1285   1.1.1.3  skrll support for <code>libquadmath</code> on systems supporting it.
   1286  1.1.1.14    mrg </p>
   1287  1.1.1.14    mrg </dd>
   1288  1.1.1.14    mrg <dt><code>--disable-libgomp</code></dt>
   1289  1.1.1.14    mrg <dd><p>Specify that the GNU Offloading and Multi Processing Runtime Library
   1290   1.1.1.6    mrg should not be built.
   1291  1.1.1.14    mrg </p>
   1292  1.1.1.14    mrg </dd>
   1293  1.1.1.14    mrg <dt><code>--disable-libvtv</code></dt>
   1294  1.1.1.14    mrg <dd><p>Specify that the run-time libraries used by vtable verification
   1295   1.1.1.6    mrg should not be built.
   1296  1.1.1.14    mrg </p>
   1297  1.1.1.14    mrg </dd>
   1298  1.1.1.14    mrg <dt><code>--with-dwarf2</code></dt>
   1299  1.1.1.14    mrg <dd><p>Specify that the compiler should
   1300       1.1    mrg use DWARF 2 debugging information as the default.
   1301  1.1.1.14    mrg </p>
   1302  1.1.1.14    mrg </dd>
   1303  1.1.1.14    mrg <dt><code>--with-advance-toolchain=<var>at</var></code></dt>
   1304  1.1.1.14    mrg <dd><p>On 64-bit PowerPC Linux systems, configure the compiler to use the
   1305   1.1.1.8    mrg header files, library files, and the dynamic linker from the Advance
   1306   1.1.1.8    mrg Toolchain release <var>at</var> instead of the default versions that are
   1307   1.1.1.8    mrg provided by the Linux distribution.  In general, this option is
   1308   1.1.1.8    mrg intended for the developers of GCC, and it is not intended for general
   1309   1.1.1.8    mrg use.
   1310  1.1.1.14    mrg </p>
   1311  1.1.1.14    mrg </dd>
   1312  1.1.1.14    mrg <dt><code>--enable-targets=all</code></dt>
   1313  1.1.1.14    mrg <dt><code>--enable-targets=<var>target_list</var></code></dt>
   1314  1.1.1.14    mrg <dd><p>Some GCC targets, e.g. powerpc64-linux, build bi-arch compilers.
   1315       1.1    mrg These are compilers that are able to generate either 64-bit or 32-bit
   1316  1.1.1.14    mrg code.  Typically, the corresponding 32-bit target, e.g.
   1317       1.1    mrg powerpc-linux for powerpc64-linux, only generates 32-bit code.  This
   1318       1.1    mrg option enables the 32-bit target to be a bi-arch compiler, which is
   1319       1.1    mrg useful when you want a bi-arch compiler that defaults to 32-bit, and
   1320  1.1.1.14    mrg you are building a bi-arch or multi-arch binutils in a combined tree.
   1321       1.1    mrg On mips-linux, this will build a tri-arch compiler (ABI o32/n32/64),
   1322  1.1.1.14    mrg defaulted to o32.
   1323   1.1.1.3  skrll Currently, this option only affects sparc-linux, powerpc-linux, x86-linux,
   1324   1.1.1.3  skrll mips-linux and s390-linux.
   1325  1.1.1.14    mrg </p>
   1326  1.1.1.14    mrg </dd>
   1327  1.1.1.14    mrg <dt><code>--enable-default-pie</code></dt>
   1328  1.1.1.14    mrg <dd><p>Turn on <samp>-fPIE</samp> and <samp>-pie</samp> by default.
   1329  1.1.1.14    mrg </p>
   1330  1.1.1.14    mrg </dd>
   1331  1.1.1.14    mrg <dt><code>--enable-secureplt</code></dt>
   1332  1.1.1.14    mrg <dd><p>This option enables <samp>-msecure-plt</samp> by default for powerpc-linux.
   1333       1.1    mrg See &ldquo;RS/6000 and PowerPC Options&rdquo; in the main manual
   1334  1.1.1.14    mrg </p>
   1335  1.1.1.14    mrg </dd>
   1336  1.1.1.14    mrg <dt><code>--enable-default-ssp</code></dt>
   1337  1.1.1.14    mrg <dd><p>Turn on <samp>-fstack-protector-strong</samp> by default.
   1338  1.1.1.14    mrg </p>
   1339  1.1.1.14    mrg </dd>
   1340  1.1.1.14    mrg <dt><code>--enable-cld</code></dt>
   1341  1.1.1.14    mrg <dd><p>This option enables <samp>-mcld</samp> by default for 32-bit x86 targets.
   1342       1.1    mrg See &ldquo;i386 and x86-64 Options&rdquo; in the main manual
   1343  1.1.1.14    mrg </p>
   1344  1.1.1.14    mrg </dd>
   1345  1.1.1.15    mrg <dt><code>--enable-large-address-aware</code></dt>
   1346  1.1.1.15    mrg <dd><p>The <samp>--enable-large-address-aware</samp> option arranges for MinGW
   1347  1.1.1.15    mrg executables to be linked using the <samp>--large-address-aware</samp>
   1348  1.1.1.15    mrg option, that enables the use of more than 2GB of memory.  If GCC is
   1349  1.1.1.15    mrg configured with this option, its effects can be reversed by passing the
   1350  1.1.1.15    mrg <samp>-Wl,--disable-large-address-aware</samp> option to the so-configured
   1351  1.1.1.15    mrg compiler driver.
   1352  1.1.1.15    mrg </p>
   1353  1.1.1.15    mrg </dd>
   1354  1.1.1.14    mrg <dt><code>--enable-win32-registry</code></dt>
   1355  1.1.1.14    mrg <dt><code>--enable-win32-registry=<var>key</var></code></dt>
   1356  1.1.1.14    mrg <dt><code>--disable-win32-registry</code></dt>
   1357  1.1.1.14    mrg <dd><p>The <samp>--enable-win32-registry</samp> option enables Microsoft Windows-hosted GCC
   1358       1.1    mrg to look up installations paths in the registry using the following key:
   1359  1.1.1.14    mrg </p>
   1360  1.1.1.14    mrg <div class="smallexample">
   1361  1.1.1.14    mrg <pre class="smallexample"><code>HKEY_LOCAL_MACHINE\SOFTWARE\Free Software Foundation\<var>key</var></code>
   1362  1.1.1.14    mrg </pre></div>
   1363       1.1    mrg 
   1364  1.1.1.14    mrg <p><var>key</var> defaults to GCC version number, and can be overridden by the
   1365  1.1.1.14    mrg <samp>--enable-win32-registry=<var>key</var></samp> option.  Vendors and distributors
   1366       1.1    mrg who use custom installers are encouraged to provide a different key,
   1367       1.1    mrg perhaps one comprised of vendor name and GCC version number, to
   1368       1.1    mrg avoid conflict with existing installations.  This feature is enabled
   1369  1.1.1.14    mrg by default, and can be disabled by <samp>--disable-win32-registry</samp>
   1370       1.1    mrg option.  This option has no effect on the other hosts.
   1371  1.1.1.14    mrg </p>
   1372  1.1.1.14    mrg </dd>
   1373  1.1.1.14    mrg <dt><code>--nfp</code></dt>
   1374  1.1.1.14    mrg <dd><p>Specify that the machine does not have a floating point unit.  This
   1375  1.1.1.14    mrg option only applies to &lsquo;<samp>m68k-sun-sunos<var>n</var></samp>&rsquo;.  On any other
   1376  1.1.1.14    mrg system, <samp>--nfp</samp> has no effect.
   1377  1.1.1.14    mrg </p>
   1378  1.1.1.14    mrg </dd>
   1379  1.1.1.14    mrg <dt><code>--enable-werror</code></dt>
   1380  1.1.1.14    mrg <dt><code>--disable-werror</code></dt>
   1381  1.1.1.14    mrg <dt><code>--enable-werror=yes</code></dt>
   1382  1.1.1.14    mrg <dt><code>--enable-werror=no</code></dt>
   1383  1.1.1.14    mrg <dd><p>When you specify this option, it controls whether certain files in the
   1384  1.1.1.14    mrg compiler are built with <samp>-Werror</samp> in bootstrap stage2 and later.
   1385  1.1.1.14    mrg If you don&rsquo;t specify it, <samp>-Werror</samp> is turned on for the main
   1386       1.1    mrg development trunk.  However it defaults to off for release branches and
   1387  1.1.1.14    mrg final releases.  The specific files which get <samp>-Werror</samp> are
   1388       1.1    mrg controlled by the Makefiles.
   1389  1.1.1.14    mrg </p>
   1390  1.1.1.14    mrg </dd>
   1391  1.1.1.14    mrg <dt><code>--enable-checking</code></dt>
   1392  1.1.1.14    mrg <dt><code>--disable-checking</code></dt>
   1393  1.1.1.14    mrg <dt><code>--enable-checking=<var>list</var></code></dt>
   1394  1.1.1.14    mrg <dd><p>This option controls performing internal consistency checks in the compiler.
   1395  1.1.1.14    mrg It does not change the generated code, but adds error checking of the
   1396  1.1.1.14    mrg requested complexity.  This slows down the compiler and may only work
   1397  1.1.1.14    mrg properly if you are building the compiler with GCC.
   1398  1.1.1.14    mrg </p>
   1399  1.1.1.14    mrg <p>When the option is not specified, the active set of checks depends on context.
   1400  1.1.1.14    mrg Namely, bootstrap stage 1 defaults to &lsquo;<samp>--enable-checking=yes</samp>&rsquo;, builds
   1401  1.1.1.14    mrg from release branches or release archives default to
   1402  1.1.1.14    mrg &lsquo;<samp>--enable-checking=release</samp>&rsquo;, and otherwise
   1403  1.1.1.14    mrg &lsquo;<samp>--enable-checking=yes,extra</samp>&rsquo; is used.  When the option is
   1404  1.1.1.14    mrg specified without a <var>list</var>, the result is the same as
   1405  1.1.1.14    mrg &lsquo;<samp>--enable-checking=yes</samp>&rsquo;.  Likewise, &lsquo;<samp>--disable-checking</samp>&rsquo; is
   1406  1.1.1.14    mrg equivalent to &lsquo;<samp>--enable-checking=no</samp>&rsquo;.
   1407  1.1.1.14    mrg </p>
   1408  1.1.1.14    mrg <p>The categories of checks available in <var>list</var> are &lsquo;<samp>yes</samp>&rsquo; (most common
   1409  1.1.1.14    mrg checks &lsquo;<samp>assert,misc,gc,gimple,rtlflag,runtime,tree,types</samp>&rsquo;), &lsquo;<samp>no</samp>&rsquo;
   1410  1.1.1.14    mrg (no checks at all), &lsquo;<samp>all</samp>&rsquo; (all but &lsquo;<samp>valgrind</samp>&rsquo;), &lsquo;<samp>release</samp>&rsquo;
   1411  1.1.1.14    mrg (cheapest checks &lsquo;<samp>assert,runtime</samp>&rsquo;) or &lsquo;<samp>none</samp>&rsquo; (same as &lsquo;<samp>no</samp>&rsquo;).
   1412  1.1.1.14    mrg &lsquo;<samp>release</samp>&rsquo; checks are always on and to disable them
   1413  1.1.1.14    mrg &lsquo;<samp>--disable-checking</samp>&rsquo; or &lsquo;<samp>--enable-checking=no[,&lt;other checks&gt;]</samp>&rsquo;
   1414  1.1.1.14    mrg must be explicitly requested.  Disabling assertions makes the compiler and
   1415  1.1.1.14    mrg runtime slightly faster but increases the risk of undetected internal errors
   1416  1.1.1.14    mrg causing wrong code to be generated.
   1417  1.1.1.14    mrg </p>
   1418  1.1.1.14    mrg <p>Individual checks can be enabled with these flags: &lsquo;<samp>assert</samp>&rsquo;, &lsquo;<samp>df</samp>&rsquo;,
   1419  1.1.1.14    mrg &lsquo;<samp>extra</samp>&rsquo;, &lsquo;<samp>fold</samp>&rsquo;, &lsquo;<samp>gc</samp>&rsquo;, &lsquo;<samp>gcac</samp>&rsquo;, &lsquo;<samp>gimple</samp>&rsquo;,
   1420  1.1.1.14    mrg &lsquo;<samp>misc</samp>&rsquo;, &lsquo;<samp>rtl</samp>&rsquo;, &lsquo;<samp>rtlflag</samp>&rsquo;, &lsquo;<samp>runtime</samp>&rsquo;, &lsquo;<samp>tree</samp>&rsquo;,
   1421  1.1.1.14    mrg &lsquo;<samp>types</samp>&rsquo; and &lsquo;<samp>valgrind</samp>&rsquo;.  &lsquo;<samp>extra</samp>&rsquo; extends &lsquo;<samp>misc</samp>&rsquo;
   1422  1.1.1.14    mrg checking with extra checks that might affect code generation and should
   1423  1.1.1.14    mrg therefore not differ between stage1 and later stages in bootstrap.
   1424  1.1.1.14    mrg </p>
   1425  1.1.1.14    mrg <p>The &lsquo;<samp>valgrind</samp>&rsquo; check requires the external <code>valgrind</code> simulator,
   1426  1.1.1.14    mrg available from <a href="http://valgrind.org/">http://valgrind.org/</a>.  The &lsquo;<samp>rtl</samp>&rsquo; checks are
   1427  1.1.1.14    mrg expensive and the &lsquo;<samp>df</samp>&rsquo;, &lsquo;<samp>gcac</samp>&rsquo; and &lsquo;<samp>valgrind</samp>&rsquo; checks are very
   1428  1.1.1.14    mrg expensive.
   1429  1.1.1.14    mrg </p>
   1430  1.1.1.14    mrg </dd>
   1431  1.1.1.14    mrg <dt><code>--disable-stage1-checking</code></dt>
   1432  1.1.1.14    mrg <dt><code>--enable-stage1-checking</code></dt>
   1433  1.1.1.14    mrg <dt><code>--enable-stage1-checking=<var>list</var></code></dt>
   1434  1.1.1.14    mrg <dd><p>This option affects only bootstrap build.  If no <samp>--enable-checking</samp>
   1435  1.1.1.14    mrg option is specified the stage1 compiler is built with &lsquo;<samp>yes</samp>&rsquo; checking
   1436  1.1.1.14    mrg enabled, otherwise the stage1 checking flags are the same as specified by
   1437  1.1.1.14    mrg <samp>--enable-checking</samp>.  To build the stage1 compiler with
   1438  1.1.1.14    mrg different checking options use <samp>--enable-stage1-checking</samp>.
   1439  1.1.1.14    mrg The list of checking options is the same as for <samp>--enable-checking</samp>.
   1440       1.1    mrg If your system is too slow or too small to bootstrap a released compiler
   1441  1.1.1.14    mrg with checking for stage1 enabled, you can use &lsquo;<samp>--disable-stage1-checking</samp>&rsquo;
   1442       1.1    mrg to disable checking for the stage1 compiler.
   1443  1.1.1.14    mrg </p>
   1444  1.1.1.14    mrg </dd>
   1445  1.1.1.14    mrg <dt><code>--enable-coverage</code></dt>
   1446  1.1.1.14    mrg <dt><code>--enable-coverage=<var>level</var></code></dt>
   1447  1.1.1.14    mrg <dd><p>With this option, the compiler is built to collect self coverage
   1448       1.1    mrg information, every time it is run.  This is for internal development
   1449       1.1    mrg purposes, and only works when the compiler is being built with gcc.  The
   1450       1.1    mrg <var>level</var> argument controls whether the compiler is built optimized or
   1451  1.1.1.14    mrg not, values are &lsquo;<samp>opt</samp>&rsquo; and &lsquo;<samp>noopt</samp>&rsquo;.  For coverage analysis you
   1452       1.1    mrg want to disable optimization, for performance analysis you want to
   1453       1.1    mrg enable optimization.  When coverage is enabled, the default level is
   1454       1.1    mrg without optimization.
   1455  1.1.1.14    mrg </p>
   1456  1.1.1.14    mrg </dd>
   1457  1.1.1.14    mrg <dt><code>--enable-gather-detailed-mem-stats</code></dt>
   1458  1.1.1.14    mrg <dd><p>When this option is specified more detailed information on memory
   1459       1.1    mrg allocation is gathered.  This information is printed when using
   1460  1.1.1.14    mrg <samp>-fmem-report</samp>.
   1461  1.1.1.14    mrg </p>
   1462  1.1.1.14    mrg </dd>
   1463  1.1.1.14    mrg <dt><code>--enable-valgrind-annotations</code></dt>
   1464  1.1.1.14    mrg <dd><p>Mark selected memory related operations in the compiler when run under
   1465   1.1.1.8    mrg valgrind to suppress false positives.
   1466  1.1.1.14    mrg </p>
   1467  1.1.1.14    mrg </dd>
   1468  1.1.1.14    mrg <dt><code>--enable-nls</code></dt>
   1469  1.1.1.14    mrg <dt><code>--disable-nls</code></dt>
   1470  1.1.1.14    mrg <dd><p>The <samp>--enable-nls</samp> option enables Native Language Support (NLS),
   1471       1.1    mrg which lets GCC output diagnostics in languages other than American
   1472       1.1    mrg English.  Native Language Support is enabled by default if not doing a
   1473  1.1.1.14    mrg canadian cross build.  The <samp>--disable-nls</samp> option disables NLS.
   1474  1.1.1.14    mrg </p>
   1475  1.1.1.14    mrg </dd>
   1476  1.1.1.14    mrg <dt><code>--with-included-gettext</code></dt>
   1477  1.1.1.14    mrg <dd><p>If NLS is enabled, the <samp>--with-included-gettext</samp> option causes the build
   1478  1.1.1.14    mrg procedure to prefer its copy of GNU <code>gettext</code>.
   1479  1.1.1.14    mrg </p>
   1480  1.1.1.14    mrg </dd>
   1481  1.1.1.14    mrg <dt><code>--with-catgets</code></dt>
   1482  1.1.1.14    mrg <dd><p>If NLS is enabled, and if the host lacks <code>gettext</code> but has the
   1483       1.1    mrg inferior <code>catgets</code> interface, the GCC build procedure normally
   1484  1.1.1.14    mrg ignores <code>catgets</code> and instead uses GCC&rsquo;s copy of the GNU
   1485  1.1.1.14    mrg <code>gettext</code> library.  The <samp>--with-catgets</samp> option causes the
   1486  1.1.1.14    mrg build procedure to use the host&rsquo;s <code>catgets</code> in this situation.
   1487  1.1.1.14    mrg </p>
   1488  1.1.1.14    mrg </dd>
   1489  1.1.1.14    mrg <dt><code>--with-libiconv-prefix=<var>dir</var></code></dt>
   1490  1.1.1.14    mrg <dd><p>Search for libiconv header files in <samp><var>dir</var>/include</samp> and
   1491  1.1.1.14    mrg libiconv library files in <samp><var>dir</var>/lib</samp>.
   1492  1.1.1.14    mrg </p>
   1493  1.1.1.14    mrg </dd>
   1494  1.1.1.14    mrg <dt><code>--enable-obsolete</code></dt>
   1495  1.1.1.14    mrg <dd><p>Enable configuration for an obsoleted system.  If you attempt to
   1496       1.1    mrg configure GCC for a system (build, host, or target) which has been
   1497       1.1    mrg obsoleted, and you do not specify this flag, configure will halt with an
   1498       1.1    mrg error message.
   1499  1.1.1.14    mrg </p>
   1500  1.1.1.14    mrg <p>All support for systems which have been obsoleted in one release of GCC
   1501       1.1    mrg is removed entirely in the next major release, unless someone steps
   1502       1.1    mrg forward to maintain the port.
   1503  1.1.1.14    mrg </p>
   1504  1.1.1.14    mrg </dd>
   1505  1.1.1.14    mrg <dt><code>--enable-decimal-float</code></dt>
   1506  1.1.1.14    mrg <dt><code>--enable-decimal-float=yes</code></dt>
   1507  1.1.1.14    mrg <dt><code>--enable-decimal-float=no</code></dt>
   1508  1.1.1.14    mrg <dt><code>--enable-decimal-float=bid</code></dt>
   1509  1.1.1.14    mrg <dt><code>--enable-decimal-float=dpd</code></dt>
   1510  1.1.1.14    mrg <dt><code>--disable-decimal-float</code></dt>
   1511  1.1.1.14    mrg <dd><p>Enable (or disable) support for the C decimal floating point extension
   1512       1.1    mrg that is in the IEEE 754-2008 standard.  This is enabled by default only
   1513       1.1    mrg on PowerPC, i386, and x86_64 GNU/Linux systems.  Other systems may also
   1514       1.1    mrg support it, but require the user to specifically enable it.  You can
   1515       1.1    mrg optionally control which decimal floating point format is used (either
   1516  1.1.1.14    mrg &lsquo;<samp>bid</samp>&rsquo; or &lsquo;<samp>dpd</samp>&rsquo;).  The &lsquo;<samp>bid</samp>&rsquo; (binary integer decimal)
   1517  1.1.1.14    mrg format is default on i386 and x86_64 systems, and the &lsquo;<samp>dpd</samp>&rsquo;
   1518       1.1    mrg (densely packed decimal) format is default on PowerPC systems.
   1519  1.1.1.14    mrg </p>
   1520  1.1.1.14    mrg </dd>
   1521  1.1.1.14    mrg <dt><code>--enable-fixed-point</code></dt>
   1522  1.1.1.14    mrg <dt><code>--disable-fixed-point</code></dt>
   1523  1.1.1.14    mrg <dd><p>Enable (or disable) support for C fixed-point arithmetic.
   1524       1.1    mrg This option is enabled by default for some targets (such as MIPS) which
   1525       1.1    mrg have hardware-support for fixed-point operations.  On other targets, you
   1526       1.1    mrg may enable this option manually.
   1527  1.1.1.14    mrg </p>
   1528  1.1.1.14    mrg </dd>
   1529  1.1.1.14    mrg <dt><code>--with-long-double-128</code></dt>
   1530  1.1.1.14    mrg <dd><p>Specify if <code>long double</code> type should be 128-bit by default on selected
   1531       1.1    mrg GNU/Linux architectures.  If using <code>--without-long-double-128</code>,
   1532  1.1.1.14    mrg <code>long double</code> will be by default 64-bit, the same as <code>double</code> type.
   1533       1.1    mrg When neither of these configure options are used, the default will be
   1534       1.1    mrg 128-bit <code>long double</code> when built against GNU C Library 2.4 and later,
   1535       1.1    mrg 64-bit <code>long double</code> otherwise.
   1536  1.1.1.14    mrg </p>
   1537  1.1.1.14    mrg </dd>
   1538  1.1.1.14    mrg <dt><code>--with-long-double-format=ibm</code></dt>
   1539  1.1.1.14    mrg <dt><code>--with-long-double-format=ieee</code></dt>
   1540  1.1.1.14    mrg <dd><p>Specify whether <code>long double</code> uses the IBM extended double format
   1541  1.1.1.14    mrg or the IEEE 128-bit floating point format on PowerPC Linux systems.
   1542  1.1.1.14    mrg This configuration switch will only work on little endian PowerPC
   1543  1.1.1.14    mrg Linux systems and on big endian 64-bit systems where the default cpu
   1544  1.1.1.14    mrg is at least power7 (i.e. <samp>--with-cpu=power7</samp>,
   1545  1.1.1.14    mrg <samp>--with-cpu=power8</samp>, or <samp>--with-cpu=power9</samp> is used).
   1546  1.1.1.14    mrg </p>
   1547  1.1.1.14    mrg <p>If you use the <samp>--with-long-double-64</samp> configuration option,
   1548  1.1.1.14    mrg the <samp>--with-long-double-format=ibm</samp> and
   1549  1.1.1.14    mrg <samp>--with-long-double-format=ieee</samp> options are ignored.
   1550  1.1.1.14    mrg </p>
   1551  1.1.1.14    mrg <p>The default <code>long double</code> format is to use IBM extended double.
   1552  1.1.1.14    mrg Until all of the libraries are converted to use IEEE 128-bit floating
   1553  1.1.1.14    mrg point, it is not recommended to use
   1554  1.1.1.14    mrg <samp>--with-long-double-format=ieee</samp>.
   1555  1.1.1.14    mrg </p>
   1556  1.1.1.14    mrg <p>On little endian PowerPC Linux systems, if you explicitly set the
   1557  1.1.1.14    mrg <code>long double</code> type, it will build multilibs to allow you to
   1558  1.1.1.14    mrg select either <code>long double</code> format, unless you disable multilibs
   1559  1.1.1.14    mrg with the <code>--disable-multilib</code> option.  At present,
   1560  1.1.1.14    mrg <code>long double</code> multilibs are not built on big endian PowerPC Linux
   1561  1.1.1.14    mrg systems.  If you are building multilibs, you will need to configure
   1562  1.1.1.14    mrg the compiler using the <samp>--with-system-zlib</samp> option.
   1563  1.1.1.14    mrg </p>
   1564  1.1.1.14    mrg <p>If you do not set the <code>long double</code> type explicitly, no multilibs
   1565  1.1.1.14    mrg will be generated.
   1566  1.1.1.14    mrg </p>
   1567  1.1.1.14    mrg </dd>
   1568  1.1.1.14    mrg <dt><code>--enable-fdpic</code></dt>
   1569  1.1.1.14    mrg <dd><p>On SH Linux systems, generate ELF FDPIC code.
   1570  1.1.1.14    mrg </p>
   1571  1.1.1.14    mrg </dd>
   1572  1.1.1.14    mrg <dt><code>--with-gmp=<var>pathname</var></code></dt>
   1573  1.1.1.14    mrg <dt><code>--with-gmp-include=<var>pathname</var></code></dt>
   1574  1.1.1.14    mrg <dt><code>--with-gmp-lib=<var>pathname</var></code></dt>
   1575  1.1.1.14    mrg <dt><code>--with-mpfr=<var>pathname</var></code></dt>
   1576  1.1.1.14    mrg <dt><code>--with-mpfr-include=<var>pathname</var></code></dt>
   1577  1.1.1.14    mrg <dt><code>--with-mpfr-lib=<var>pathname</var></code></dt>
   1578  1.1.1.14    mrg <dt><code>--with-mpc=<var>pathname</var></code></dt>
   1579  1.1.1.14    mrg <dt><code>--with-mpc-include=<var>pathname</var></code></dt>
   1580  1.1.1.14    mrg <dt><code>--with-mpc-lib=<var>pathname</var></code></dt>
   1581  1.1.1.14    mrg <dd><p>If you want to build GCC but do not have the GMP library, the MPFR
   1582       1.1    mrg library and/or the MPC library installed in a standard location and
   1583   1.1.1.3  skrll do not have their sources present in the GCC source tree then you
   1584   1.1.1.3  skrll can explicitly specify the directory where they are installed
   1585  1.1.1.14    mrg (&lsquo;<samp>--with-gmp=<var>gmpinstalldir</var></samp>&rsquo;,
   1586  1.1.1.14    mrg &lsquo;<samp>--with-mpfr=<var>mpfrinstalldir</var></samp>&rsquo;,
   1587  1.1.1.14    mrg &lsquo;<samp>--with-mpc=<var>mpcinstalldir</var></samp>&rsquo;).  The
   1588  1.1.1.14    mrg <samp>--with-gmp=<var>gmpinstalldir</var></samp> option is shorthand for
   1589  1.1.1.14    mrg <samp>--with-gmp-lib=<var>gmpinstalldir</var>/lib</samp> and
   1590  1.1.1.14    mrg <samp>--with-gmp-include=<var>gmpinstalldir</var>/include</samp>.  Likewise the
   1591  1.1.1.14    mrg <samp>--with-mpfr=<var>mpfrinstalldir</var></samp> option is shorthand for
   1592  1.1.1.14    mrg <samp>--with-mpfr-lib=<var>mpfrinstalldir</var>/lib</samp> and
   1593  1.1.1.14    mrg <samp>--with-mpfr-include=<var>mpfrinstalldir</var>/include</samp>, also the
   1594  1.1.1.14    mrg <samp>--with-mpc=<var>mpcinstalldir</var></samp> option is shorthand for
   1595  1.1.1.14    mrg <samp>--with-mpc-lib=<var>mpcinstalldir</var>/lib</samp> and
   1596  1.1.1.14    mrg <samp>--with-mpc-include=<var>mpcinstalldir</var>/include</samp>.  If these
   1597       1.1    mrg shorthand assumptions are not correct, you can use the explicit
   1598   1.1.1.3  skrll include and lib options directly.  You might also need to ensure the
   1599   1.1.1.3  skrll shared libraries can be found by the dynamic linker when building and
   1600   1.1.1.3  skrll using GCC, for example by setting the runtime shared library path
   1601  1.1.1.14    mrg variable (<code>LD_LIBRARY_PATH</code> on GNU/Linux and Solaris systems).
   1602  1.1.1.14    mrg </p>
   1603  1.1.1.14    mrg <p>These flags are applicable to the host platform only.  When building
   1604   1.1.1.3  skrll a cross compiler, they will not be used to configure target libraries.
   1605  1.1.1.14    mrg </p>
   1606  1.1.1.14    mrg </dd>
   1607  1.1.1.14    mrg <dt><code>--with-isl=<var>pathname</var></code></dt>
   1608  1.1.1.14    mrg <dt><code>--with-isl-include=<var>pathname</var></code></dt>
   1609  1.1.1.14    mrg <dt><code>--with-isl-lib=<var>pathname</var></code></dt>
   1610  1.1.1.14    mrg <dd><p>If you do not have the isl library installed in a standard location and you
   1611   1.1.1.6    mrg want to build GCC, you can explicitly specify the directory where it is
   1612  1.1.1.14    mrg installed (&lsquo;<samp>--with-isl=<var>islinstalldir</var></samp>&rsquo;). The
   1613  1.1.1.14    mrg <samp>--with-isl=<var>islinstalldir</var></samp> option is shorthand for
   1614  1.1.1.14    mrg <samp>--with-isl-lib=<var>islinstalldir</var>/lib</samp> and
   1615  1.1.1.14    mrg <samp>--with-isl-include=<var>islinstalldir</var>/include</samp>. If this
   1616   1.1.1.6    mrg shorthand assumption is not correct, you can use the explicit
   1617       1.1    mrg include and lib options directly.
   1618  1.1.1.14    mrg </p>
   1619  1.1.1.14    mrg <p>These flags are applicable to the host platform only.  When building
   1620   1.1.1.3  skrll a cross compiler, they will not be used to configure target libraries.
   1621  1.1.1.14    mrg </p>
   1622  1.1.1.14    mrg </dd>
   1623  1.1.1.14    mrg <dt><code>--with-stage1-ldflags=<var>flags</var></code></dt>
   1624  1.1.1.14    mrg <dd><p>This option may be used to set linker flags to be used when linking
   1625       1.1    mrg stage 1 of GCC.  These are also used when linking GCC if configured with
   1626  1.1.1.14    mrg <samp>--disable-bootstrap</samp>.  If <samp>--with-stage1-libs</samp> is not set to a
   1627  1.1.1.14    mrg value, then the default is &lsquo;<samp>-static-libstdc++ -static-libgcc</samp>&rsquo;, if
   1628   1.1.1.8    mrg supported.
   1629  1.1.1.14    mrg </p>
   1630  1.1.1.14    mrg </dd>
   1631  1.1.1.14    mrg <dt><code>--with-stage1-libs=<var>libs</var></code></dt>
   1632  1.1.1.14    mrg <dd><p>This option may be used to set libraries to be used when linking stage 1
   1633       1.1    mrg of GCC.  These are also used when linking GCC if configured with
   1634  1.1.1.14    mrg <samp>--disable-bootstrap</samp>.
   1635  1.1.1.14    mrg </p>
   1636  1.1.1.14    mrg </dd>
   1637  1.1.1.14    mrg <dt><code>--with-boot-ldflags=<var>flags</var></code></dt>
   1638  1.1.1.14    mrg <dd><p>This option may be used to set linker flags to be used when linking
   1639   1.1.1.8    mrg stage 2 and later when bootstrapping GCC.  If &ndash;with-boot-libs
   1640   1.1.1.8    mrg is not is set to a value, then the default is
   1641  1.1.1.14    mrg &lsquo;<samp>-static-libstdc++ -static-libgcc</samp>&rsquo;.
   1642  1.1.1.14    mrg </p>
   1643  1.1.1.14    mrg </dd>
   1644  1.1.1.14    mrg <dt><code>--with-boot-libs=<var>libs</var></code></dt>
   1645  1.1.1.14    mrg <dd><p>This option may be used to set libraries to be used when linking stage 2
   1646   1.1.1.8    mrg and later when bootstrapping GCC.
   1647  1.1.1.14    mrg </p>
   1648  1.1.1.14    mrg </dd>
   1649  1.1.1.14    mrg <dt><code>--with-debug-prefix-map=<var>map</var></code></dt>
   1650  1.1.1.14    mrg <dd><p>Convert source directory names using <samp>-fdebug-prefix-map</samp> when
   1651       1.1    mrg building runtime libraries.  &lsquo;<samp><var>map</var></samp>&rsquo; is a space-separated
   1652  1.1.1.14    mrg list of maps of the form &lsquo;<samp><var>old</var>=<var>new</var></samp>&rsquo;.
   1653  1.1.1.14    mrg </p>
   1654  1.1.1.14    mrg </dd>
   1655  1.1.1.14    mrg <dt><code>--enable-linker-build-id</code></dt>
   1656  1.1.1.14    mrg <dd><p>Tells GCC to pass <samp>--build-id</samp> option to the linker for all final
   1657  1.1.1.14    mrg links (links performed without the <samp>-r</samp> or <samp>--relocatable</samp>
   1658       1.1    mrg option), if the linker supports it.  If you specify
   1659  1.1.1.14    mrg <samp>--enable-linker-build-id</samp>, but your linker does not
   1660  1.1.1.14    mrg support <samp>--build-id</samp> option, a warning is issued and the
   1661  1.1.1.14    mrg <samp>--enable-linker-build-id</samp> option is ignored.  The default is off.
   1662  1.1.1.14    mrg </p>
   1663  1.1.1.14    mrg </dd>
   1664  1.1.1.14    mrg <dt><code>--with-linker-hash-style=<var>choice</var></code></dt>
   1665  1.1.1.14    mrg <dd><p>Tells GCC to pass <samp>--hash-style=<var>choice</var></samp> option to the
   1666   1.1.1.3  skrll linker for all final links. <var>choice</var> can be one of
   1667  1.1.1.14    mrg &lsquo;<samp>sysv</samp>&rsquo;, &lsquo;<samp>gnu</samp>&rsquo;, and &lsquo;<samp>both</samp>&rsquo; where &lsquo;<samp>sysv</samp>&rsquo; is the default.
   1668  1.1.1.14    mrg </p>
   1669  1.1.1.14    mrg </dd>
   1670  1.1.1.14    mrg <dt><code>--enable-gnu-unique-object</code></dt>
   1671  1.1.1.14    mrg <dt><code>--disable-gnu-unique-object</code></dt>
   1672  1.1.1.14    mrg <dd><p>Tells GCC to use the gnu_unique_object relocation for C++ template
   1673       1.1    mrg static data members and inline function local statics.  Enabled by
   1674   1.1.1.6    mrg default for a toolchain with an assembler that accepts it and
   1675       1.1    mrg GLIBC 2.11 or above, otherwise disabled.
   1676  1.1.1.14    mrg </p>
   1677  1.1.1.14    mrg </dd>
   1678  1.1.1.14    mrg <dt><code>--with-diagnostics-color=<var>choice</var></code></dt>
   1679  1.1.1.14    mrg <dd><p>Tells GCC to use <var>choice</var> as the default for <samp>-fdiagnostics-color=</samp>
   1680   1.1.1.6    mrg option (if not used explicitly on the command line).  <var>choice</var>
   1681  1.1.1.14    mrg can be one of &lsquo;<samp>never</samp>&rsquo;, &lsquo;<samp>auto</samp>&rsquo;, &lsquo;<samp>always</samp>&rsquo;, and &lsquo;<samp>auto-if-env</samp>&rsquo;
   1682  1.1.1.14    mrg where &lsquo;<samp>auto</samp>&rsquo; is the default.  &lsquo;<samp>auto-if-env</samp>&rsquo; means that
   1683  1.1.1.14    mrg <samp>-fdiagnostics-color=auto</samp> will be the default if <code>GCC_COLORS</code>
   1684   1.1.1.6    mrg is present and non-empty in the environment, and
   1685  1.1.1.14    mrg <samp>-fdiagnostics-color=never</samp> otherwise.
   1686  1.1.1.14    mrg </p>
   1687  1.1.1.14    mrg </dd>
   1688  1.1.1.14    mrg <dt><code>--enable-lto</code></dt>
   1689  1.1.1.14    mrg <dt><code>--disable-lto</code></dt>
   1690  1.1.1.14    mrg <dd><p>Enable support for link-time optimization (LTO).  This is enabled by
   1691  1.1.1.14    mrg default, and may be disabled using <samp>--disable-lto</samp>.
   1692  1.1.1.14    mrg </p>
   1693  1.1.1.14    mrg </dd>
   1694  1.1.1.14    mrg <dt><code>--enable-linker-plugin-configure-flags=FLAGS</code></dt>
   1695  1.1.1.14    mrg <dt><code>--enable-linker-plugin-flags=FLAGS</code></dt>
   1696  1.1.1.14    mrg <dd><p>By default, linker plugins (such as the LTO plugin) are built for the
   1697   1.1.1.6    mrg host system architecture.  For the case that the linker has a
   1698   1.1.1.6    mrg different (but run-time compatible) architecture, these flags can be
   1699   1.1.1.6    mrg specified to build plugins that are compatible to the linker.  For
   1700   1.1.1.6    mrg example, if you are building GCC for a 64-bit x86_64
   1701  1.1.1.15    mrg (&lsquo;<samp>x86_64-pc-linux-gnu</samp>&rsquo;) host system, but have a 32-bit x86
   1702  1.1.1.14    mrg GNU/Linux (&lsquo;<samp>i686-pc-linux-gnu</samp>&rsquo;) linker executable (which is
   1703   1.1.1.6    mrg executable on the former system), you can configure GCC as follows for
   1704   1.1.1.6    mrg getting compatible linker plugins:
   1705  1.1.1.14    mrg </p>
   1706  1.1.1.14    mrg <div class="smallexample">
   1707  1.1.1.14    mrg <pre class="smallexample">% <var>srcdir</var>/configure \
   1708  1.1.1.15    mrg     --host=x86_64-pc-linux-gnu \
   1709  1.1.1.14    mrg     --enable-linker-plugin-configure-flags=--host=i686-pc-linux-gnu \
   1710  1.1.1.14    mrg     --enable-linker-plugin-flags='CC=gcc\ -m32\ -Wl,-rpath,[...]/i686-pc-linux-gnu/lib'
   1711  1.1.1.14    mrg </pre></div>
   1712  1.1.1.14    mrg 
   1713  1.1.1.14    mrg </dd>
   1714  1.1.1.14    mrg <dt><code>--with-plugin-ld=<var>pathname</var></code></dt>
   1715  1.1.1.14    mrg <dd><p>Enable an alternate linker to be used at link-time optimization (LTO)
   1716  1.1.1.14    mrg link time when <samp>-fuse-linker-plugin</samp> is enabled.
   1717   1.1.1.3  skrll This linker should have plugin support such as gold starting with
   1718  1.1.1.14    mrg version 2.20 or GNU ld starting with version 2.21.
   1719  1.1.1.14    mrg See <samp>-fuse-linker-plugin</samp> for details.
   1720  1.1.1.14    mrg </p>
   1721  1.1.1.14    mrg </dd>
   1722  1.1.1.14    mrg <dt><code>--enable-canonical-system-headers</code></dt>
   1723  1.1.1.14    mrg <dt><code>--disable-canonical-system-headers</code></dt>
   1724  1.1.1.14    mrg <dd><p>Enable system header path canonicalization for <samp>libcpp</samp>.  This can
   1725   1.1.1.3  skrll produce shorter header file paths in diagnostics and dependency output
   1726   1.1.1.3  skrll files, but these changed header paths may conflict with some compilation
   1727   1.1.1.3  skrll environments.  Enabled by default, and may be disabled using
   1728  1.1.1.14    mrg <samp>--disable-canonical-system-headers</samp>.
   1729  1.1.1.14    mrg </p>
   1730  1.1.1.14    mrg </dd>
   1731  1.1.1.14    mrg <dt><code>--with-glibc-version=<var>major</var>.<var>minor</var></code></dt>
   1732  1.1.1.14    mrg <dd><p>Tell GCC that when the GNU C Library (glibc) is used on the target it
   1733   1.1.1.6    mrg will be version <var>major</var>.<var>minor</var> or later.  Normally this can
   1734  1.1.1.14    mrg be detected from the C library&rsquo;s header files, but this option may be
   1735   1.1.1.6    mrg needed when bootstrapping a cross toolchain without the header files
   1736   1.1.1.6    mrg available for building the initial bootstrap compiler.
   1737  1.1.1.14    mrg </p>
   1738  1.1.1.14    mrg <p>If GCC is configured with some multilibs that use glibc and some that
   1739  1.1.1.14    mrg do not, this option applies only to the multilibs that use glibc.
   1740   1.1.1.6    mrg However, such configurations may not work well as not all the relevant
   1741   1.1.1.6    mrg configuration in GCC is on a per-multilib basis.
   1742  1.1.1.14    mrg </p>
   1743  1.1.1.14    mrg </dd>
   1744  1.1.1.14    mrg <dt><code>--enable-as-accelerator-for=<var>target</var></code></dt>
   1745  1.1.1.14    mrg <dd><p>Build as offload target compiler. Specify offload host triple by <var>target</var>.
   1746  1.1.1.14    mrg </p>
   1747  1.1.1.14    mrg </dd>
   1748  1.1.1.14    mrg <dt><code>--enable-offload-targets=<var>target1</var>[=<var>path1</var>],&hellip;,<var>targetN</var>[=<var>pathN</var>]</code></dt>
   1749  1.1.1.14    mrg <dd><p>Enable offloading to targets <var>target1</var>, &hellip;, <var>targetN</var>.
   1750   1.1.1.6    mrg Offload compilers are expected to be already installed.  Default search
   1751   1.1.1.6    mrg path for them is <samp><var>exec-prefix</var></samp>, but it can be changed by
   1752  1.1.1.14    mrg specifying paths <var>path1</var>, &hellip;, <var>pathN</var>.
   1753  1.1.1.14    mrg </p>
   1754  1.1.1.14    mrg <div class="smallexample">
   1755  1.1.1.14    mrg <pre class="smallexample">% <var>srcdir</var>/configure \
   1756  1.1.1.15    mrg     --enable-offload-targets=x86_64-intelmicemul-linux-gnu=/path/to/x86_64/compiler,nvptx-none,hsa
   1757  1.1.1.14    mrg </pre></div>
   1758   1.1.1.8    mrg 
   1759  1.1.1.14    mrg <p>If &lsquo;<samp>hsa</samp>&rsquo; is specified as one of the targets, the compiler will be
   1760   1.1.1.8    mrg built with support for HSA GPU accelerators.  Because the same
   1761   1.1.1.8    mrg compiler will emit the accelerator code, no path should be specified.
   1762  1.1.1.14    mrg </p>
   1763  1.1.1.14    mrg </dd>
   1764  1.1.1.14    mrg <dt><code>--with-hsa-runtime=<var>pathname</var></code></dt>
   1765  1.1.1.14    mrg <dt><code>--with-hsa-runtime-include=<var>pathname</var></code></dt>
   1766  1.1.1.14    mrg <dt><code>--with-hsa-runtime-lib=<var>pathname</var></code></dt>
   1767  1.1.1.14    mrg <dd>
   1768  1.1.1.14    mrg <p>If you configure GCC with HSA offloading but do not have the HSA
   1769   1.1.1.8    mrg run-time library installed in a standard location then you can
   1770   1.1.1.8    mrg explicitly specify the directory where they are installed.  The
   1771  1.1.1.14    mrg <samp>--with-hsa-runtime=<var>hsainstalldir</var></samp> option is a
   1772   1.1.1.8    mrg shorthand for
   1773  1.1.1.14    mrg <samp>--with-hsa-runtime-lib=<var>hsainstalldir</var>/lib</samp> and
   1774  1.1.1.14    mrg <samp>--with-hsa-runtime-include=<var>hsainstalldir</var>/include</samp>.
   1775  1.1.1.14    mrg </p>
   1776  1.1.1.14    mrg </dd>
   1777  1.1.1.14    mrg <dt><code>--enable-cet</code></dt>
   1778  1.1.1.14    mrg <dt><code>--disable-cet</code></dt>
   1779  1.1.1.14    mrg <dd><p>Enable building target run-time libraries with control-flow
   1780  1.1.1.14    mrg instrumentation, see <samp>-fcf-protection</samp> option.  When
   1781  1.1.1.14    mrg <code>--enable-cet</code> is specified target libraries are configured
   1782  1.1.1.14    mrg to add <samp>-fcf-protection</samp> and, if needed, other target
   1783  1.1.1.14    mrg specific options to a set of building options.
   1784  1.1.1.14    mrg </p>
   1785  1.1.1.14    mrg <p>The option is disabled by default.  When <code>--enable-cet=auto</code>
   1786  1.1.1.14    mrg is used, it is enabled on Linux/x86 if target binutils
   1787  1.1.1.14    mrg supports <code>Intel CET</code> instructions and disabled otherwise.
   1788  1.1.1.14    mrg In this case the target libraries are configured to get additional
   1789  1.1.1.14    mrg <samp>-fcf-protection</samp> option.
   1790  1.1.1.15    mrg </p>
   1791  1.1.1.15    mrg </dd>
   1792  1.1.1.15    mrg <dt><code>--with-riscv-attribute=&lsquo;<samp>yes</samp>&rsquo;, &lsquo;<samp>no</samp>&rsquo; or &lsquo;<samp>default</samp>&rsquo;</code></dt>
   1793  1.1.1.15    mrg <dd><p>Generate RISC-V attribute by default, in order to record extra build
   1794  1.1.1.15    mrg information in object.
   1795  1.1.1.15    mrg </p>
   1796  1.1.1.15    mrg <p>The option is disabled by default. It is enabled on RISC-V/ELF (bare-metal)
   1797  1.1.1.15    mrg target if target binutils supported.
   1798  1.1.1.14    mrg </p></dd>
   1799   1.1.1.7    mrg </dl>
   1800   1.1.1.5    mrg 
   1801  1.1.1.14    mrg <a name="Cross-Compiler-Specific-Options"></a>
   1802  1.1.1.14    mrg <h4 class="subheading">Cross-Compiler-Specific Options</h4>
   1803       1.1    mrg <p>The following options only apply to building cross compilers.
   1804  1.1.1.14    mrg </p>
   1805  1.1.1.14    mrg <dl compact="compact">
   1806  1.1.1.14    mrg <dt><code>--with-sysroot</code></dt>
   1807  1.1.1.14    mrg <dt><code>--with-sysroot=<var>dir</var></code></dt>
   1808  1.1.1.14    mrg <dd><p>Tells GCC to consider <var>dir</var> as the root of a tree that contains
   1809  1.1.1.14    mrg (a subset of) the root filesystem of the target operating system.
   1810       1.1    mrg Target system headers, libraries and run-time object files will be
   1811   1.1.1.3  skrll searched for in there.  More specifically, this acts as if
   1812  1.1.1.14    mrg <samp>--sysroot=<var>dir</var></samp> was added to the default options of the built
   1813       1.1    mrg compiler.  The specified directory is not copied into the
   1814  1.1.1.14    mrg install tree, unlike the options <samp>--with-headers</samp> and
   1815  1.1.1.14    mrg <samp>--with-libs</samp> that this option obsoletes.  The default value,
   1816  1.1.1.14    mrg in case <samp>--with-sysroot</samp> is not given an argument, is
   1817  1.1.1.14    mrg <samp>${gcc_tooldir}/sys-root</samp>.  If the specified directory is a
   1818  1.1.1.14    mrg subdirectory of <samp>${exec_prefix}</samp>, then it will be found relative to
   1819       1.1    mrg the GCC binaries if the installation tree is moved.
   1820  1.1.1.14    mrg </p>
   1821  1.1.1.14    mrg <p>This option affects the system root for the compiler used to build
   1822       1.1    mrg target libraries (which runs on the build system) and the compiler newly
   1823       1.1    mrg installed with <code>make install</code>; it does not affect the compiler which is
   1824       1.1    mrg used to build GCC itself.
   1825  1.1.1.14    mrg </p>
   1826  1.1.1.14    mrg <p>If you specify the <samp>--with-native-system-header-dir=<var>dirname</var></samp>
   1827   1.1.1.3  skrll option then the compiler will search that directory within <var>dirname</var> for
   1828  1.1.1.14    mrg native system headers rather than the default <samp>/usr/include</samp>.
   1829  1.1.1.14    mrg </p>
   1830  1.1.1.14    mrg </dd>
   1831  1.1.1.14    mrg <dt><code>--with-build-sysroot</code></dt>
   1832  1.1.1.14    mrg <dt><code>--with-build-sysroot=<var>dir</var></code></dt>
   1833  1.1.1.14    mrg <dd><p>Tells GCC to consider <var>dir</var> as the system root (see
   1834  1.1.1.14    mrg <samp>--with-sysroot</samp>) while building target libraries, instead of
   1835  1.1.1.14    mrg the directory specified with <samp>--with-sysroot</samp>.  This option is
   1836  1.1.1.14    mrg only useful when you are already using <samp>--with-sysroot</samp>.  You
   1837  1.1.1.14    mrg can use <samp>--with-build-sysroot</samp> when you are configuring with
   1838  1.1.1.14    mrg <samp>--prefix</samp> set to a directory that is different from the one in
   1839       1.1    mrg which you are installing GCC and your target libraries.
   1840  1.1.1.14    mrg </p>
   1841  1.1.1.14    mrg <p>This option affects the system root for the compiler used to build
   1842       1.1    mrg target libraries (which runs on the build system); it does not affect
   1843       1.1    mrg the compiler which is used to build GCC itself.
   1844  1.1.1.14    mrg </p>
   1845  1.1.1.14    mrg <p>If you specify the <samp>--with-native-system-header-dir=<var>dirname</var></samp>
   1846   1.1.1.3  skrll option then the compiler will search that directory within <var>dirname</var> for
   1847  1.1.1.14    mrg native system headers rather than the default <samp>/usr/include</samp>.
   1848  1.1.1.14    mrg </p>
   1849  1.1.1.14    mrg </dd>
   1850  1.1.1.14    mrg <dt><code>--with-headers</code></dt>
   1851  1.1.1.14    mrg <dt><code>--with-headers=<var>dir</var></code></dt>
   1852  1.1.1.14    mrg <dd><p>Deprecated in favor of <samp>--with-sysroot</samp>.
   1853  1.1.1.14    mrg Specifies that target headers are available when building a cross compiler.
   1854       1.1    mrg The <var>dir</var> argument specifies a directory which has the target include
   1855  1.1.1.14    mrg files.  These include files will be copied into the <samp>gcc</samp> install
   1856  1.1.1.14    mrg directory.  <em>This option with the <var>dir</var> argument is required</em> when
   1857  1.1.1.14    mrg building a cross compiler, if <samp><var>prefix</var>/<var>target</var>/sys-include</samp>
   1858  1.1.1.14    mrg doesn&rsquo;t pre-exist.  If <samp><var>prefix</var>/<var>target</var>/sys-include</samp> does
   1859  1.1.1.14    mrg pre-exist, the <var>dir</var> argument may be omitted.  <code>fixincludes</code>
   1860       1.1    mrg will be run on these files to make them compatible with GCC.
   1861  1.1.1.14    mrg </p>
   1862  1.1.1.14    mrg </dd>
   1863  1.1.1.14    mrg <dt><code>--without-headers</code></dt>
   1864  1.1.1.14    mrg <dd><p>Tells GCC not use any target headers from a libc when building a cross
   1865       1.1    mrg compiler.  When crossing to GNU/Linux, you need the headers so GCC
   1866       1.1    mrg can build the exception handling for libgcc.
   1867  1.1.1.14    mrg </p>
   1868  1.1.1.14    mrg </dd>
   1869  1.1.1.14    mrg <dt><code>--with-libs</code></dt>
   1870  1.1.1.14    mrg <dt><code>--with-libs=&quot;<var>dir1</var> <var>dir2</var> &hellip; <var>dirN</var>&quot;</code></dt>
   1871  1.1.1.14    mrg <dd><p>Deprecated in favor of <samp>--with-sysroot</samp>.
   1872       1.1    mrg Specifies a list of directories which contain the target runtime
   1873  1.1.1.14    mrg libraries.  These libraries will be copied into the <samp>gcc</samp> install
   1874       1.1    mrg directory.  If the directory list is omitted, this option has no
   1875       1.1    mrg effect.
   1876  1.1.1.14    mrg </p>
   1877  1.1.1.14    mrg </dd>
   1878  1.1.1.14    mrg <dt><code>--with-newlib</code></dt>
   1879  1.1.1.14    mrg <dd><p>Specifies that &lsquo;<samp>newlib</samp>&rsquo; is
   1880       1.1    mrg being used as the target C library.  This causes <code>__eprintf</code> to be
   1881  1.1.1.14    mrg omitted from <samp>libgcc.a</samp> on the assumption that it will be provided by
   1882  1.1.1.14    mrg &lsquo;<samp>newlib</samp>&rsquo;.
   1883  1.1.1.14    mrg </p>
   1884  1.1.1.14    mrg </dd>
   1885  1.1.1.14    mrg <dt><code>--with-avrlibc</code></dt>
   1886  1.1.1.14    mrg <dd><p>Specifies that &lsquo;<samp>AVR-Libc</samp>&rsquo; is
   1887   1.1.1.3  skrll being used as the target C library.  This causes float support
   1888  1.1.1.14    mrg functions like <code>__addsf3</code> to be omitted from <samp>libgcc.a</samp> on
   1889  1.1.1.14    mrg the assumption that it will be provided by <samp>libm.a</samp>.  For more
   1890  1.1.1.14    mrg technical details, cf. <a href="http://gcc.gnu.org/PR54461">PR54461</a>.
   1891   1.1.1.3  skrll This option is only supported for the AVR target.  It is not supported for
   1892   1.1.1.3  skrll RTEMS configurations, which currently use newlib.  The option is
   1893   1.1.1.3  skrll supported since version 4.7.2 and is the default in 4.8.0 and newer.
   1894  1.1.1.14    mrg </p>
   1895  1.1.1.14    mrg </dd>
   1896  1.1.1.14    mrg <dt><code>--with-nds32-lib=<var>library</var></code></dt>
   1897  1.1.1.14    mrg <dd><p>Specifies that <var>library</var> setting is used for building <samp>libgcc.a</samp>.
   1898  1.1.1.14    mrg Currently, the valid <var>library</var> is &lsquo;<samp>newlib</samp>&rsquo; or &lsquo;<samp>mculib</samp>&rsquo;.
   1899   1.1.1.6    mrg This option is only supported for the NDS32 target.
   1900  1.1.1.14    mrg </p>
   1901  1.1.1.14    mrg </dd>
   1902  1.1.1.14    mrg <dt><code>--with-build-time-tools=<var>dir</var></code></dt>
   1903  1.1.1.14    mrg <dd><p>Specifies where to find the set of target tools (assembler, linker, etc.)
   1904       1.1    mrg that will be used while building GCC itself.  This option can be useful
   1905       1.1    mrg if the directory layouts are different between the system you are building
   1906       1.1    mrg GCC on, and the system where you will deploy it.
   1907  1.1.1.14    mrg </p>
   1908  1.1.1.14    mrg <p>For example, on an &lsquo;<samp>ia64-hp-hpux</samp>&rsquo; system, you may have the GNU
   1909  1.1.1.14    mrg assembler and linker in <samp>/usr/bin</samp>, and the native tools in a
   1910       1.1    mrg different path, and build a toolchain that expects to find the
   1911  1.1.1.14    mrg native tools in <samp>/usr/bin</samp>.
   1912  1.1.1.14    mrg </p>
   1913  1.1.1.14    mrg <p>When you use this option, you should ensure that <var>dir</var> includes
   1914  1.1.1.14    mrg <code>ar</code>, <code>as</code>, <code>ld</code>, <code>nm</code>,
   1915  1.1.1.14    mrg <code>ranlib</code> and <code>strip</code> if necessary, and possibly
   1916  1.1.1.14    mrg <code>objdump</code>.  Otherwise, GCC may use an inconsistent set of
   1917  1.1.1.14    mrg tools.
   1918  1.1.1.14    mrg </p></dd>
   1919   1.1.1.7    mrg </dl>
   1920   1.1.1.7    mrg 
   1921  1.1.1.14    mrg <a name="Overriding-configure-test-results"></a>
   1922  1.1.1.14    mrg <h4 class="subsubheading">Overriding <code>configure</code> test results</h4>
   1923   1.1.1.5    mrg 
   1924   1.1.1.7    mrg <p>Sometimes, it might be necessary to override the result of some
   1925  1.1.1.14    mrg <code>configure</code> test, for example in order to ease porting to a new
   1926  1.1.1.14    mrg system or work around a bug in a test.  The toplevel <code>configure</code>
   1927   1.1.1.7    mrg script provides three variables for this:
   1928  1.1.1.14    mrg </p>
   1929  1.1.1.14    mrg <dl compact="compact">
   1930  1.1.1.14    mrg <dt><code>build_configargs</code></dt>
   1931  1.1.1.14    mrg <dd><a name="index-build_005fconfigargs"></a>
   1932  1.1.1.14    mrg <p>The contents of this variable is passed to all build <code>configure</code>
   1933   1.1.1.7    mrg scripts.
   1934  1.1.1.14    mrg </p>
   1935  1.1.1.14    mrg </dd>
   1936  1.1.1.14    mrg <dt><code>host_configargs</code></dt>
   1937  1.1.1.14    mrg <dd><a name="index-host_005fconfigargs"></a>
   1938  1.1.1.14    mrg <p>The contents of this variable is passed to all host <code>configure</code>
   1939   1.1.1.7    mrg scripts.
   1940  1.1.1.14    mrg </p>
   1941  1.1.1.14    mrg </dd>
   1942  1.1.1.14    mrg <dt><code>target_configargs</code></dt>
   1943  1.1.1.14    mrg <dd><a name="index-target_005fconfigargs"></a>
   1944  1.1.1.14    mrg <p>The contents of this variable is passed to all target <code>configure</code>
   1945   1.1.1.7    mrg scripts.
   1946  1.1.1.14    mrg </p>
   1947  1.1.1.14    mrg </dd>
   1948  1.1.1.14    mrg </dl>
   1949       1.1    mrg 
   1950  1.1.1.14    mrg <p>In order to avoid shell and <code>make</code> quoting issues for complex
   1951  1.1.1.14    mrg overrides, you can pass a setting for <code>CONFIG_SITE</code> and set
   1952   1.1.1.7    mrg variables in the site file.
   1953  1.1.1.14    mrg </p>
   1954  1.1.1.14    mrg <a name="Objective-C-Specific-Options"></a>
   1955  1.1.1.14    mrg <h4 class="subheading">Objective-C-Specific Options</h4>
   1956   1.1.1.9    mrg 
   1957  1.1.1.10    mrg <p>The following options apply to the build of the Objective-C runtime library.
   1958  1.1.1.14    mrg </p>
   1959  1.1.1.14    mrg <dl compact="compact">
   1960  1.1.1.14    mrg <dt><code>--enable-objc-gc</code></dt>
   1961  1.1.1.14    mrg <dd><p>Specify that an additional variant of the GNU Objective-C runtime library
   1962  1.1.1.10    mrg is built, using an external build of the Boehm-Demers-Weiser garbage
   1963  1.1.1.10    mrg collector (<a href="http://www.hboehm.info/gc/">http://www.hboehm.info/gc/</a>).  This library needs to be
   1964  1.1.1.10    mrg available for each multilib variant, unless configured with
   1965  1.1.1.14    mrg <samp>--enable-objc-gc=&lsquo;<samp>auto</samp>&rsquo;</samp> in which case the build of the
   1966  1.1.1.10    mrg additional runtime library is skipped when not available and the build
   1967  1.1.1.10    mrg continues.
   1968  1.1.1.14    mrg </p>
   1969  1.1.1.14    mrg </dd>
   1970  1.1.1.14    mrg <dt><code>--with-target-bdw-gc=<var>list</var></code></dt>
   1971  1.1.1.14    mrg <dt><code>--with-target-bdw-gc-include=<var>list</var></code></dt>
   1972  1.1.1.14    mrg <dt><code>--with-target-bdw-gc-lib=<var>list</var></code></dt>
   1973  1.1.1.14    mrg <dd><p>Specify search directories for the garbage collector header files and
   1974  1.1.1.10    mrg libraries. <var>list</var> is a comma separated list of key value pairs of the
   1975  1.1.1.14    mrg form &lsquo;<samp><var>multilibdir</var>=<var>path</var></samp>&rsquo;, where the default multilib key
   1976  1.1.1.14    mrg is named as &lsquo;<samp>.</samp>&rsquo; (dot), or is omitted (e.g.
   1977  1.1.1.14    mrg &lsquo;<samp>--with-target-bdw-gc=/opt/bdw-gc,32=/opt-bdw-gc32</samp>&rsquo;).
   1978  1.1.1.14    mrg </p>
   1979  1.1.1.14    mrg <p>The options <samp>--with-target-bdw-gc-include</samp> and
   1980  1.1.1.14    mrg <samp>--with-target-bdw-gc-lib</samp> must always be specified together
   1981  1.1.1.10    mrg for each multilib variant and they take precedence over
   1982  1.1.1.14    mrg <samp>--with-target-bdw-gc</samp>.  If <samp>--with-target-bdw-gc-include</samp>
   1983  1.1.1.10    mrg is missing values for a multilib, then the value for the default
   1984  1.1.1.14    mrg multilib is used (e.g. &lsquo;<samp>--with-target-bdw-gc-include=/opt/bdw-gc/include</samp>&rsquo;
   1985  1.1.1.14    mrg &lsquo;<samp>--with-target-bdw-gc-lib=/opt/bdw-gc/lib64,32=/opt-bdw-gc/lib32</samp>&rsquo;).
   1986  1.1.1.10    mrg If none of these options are specified, the library is assumed in
   1987  1.1.1.14    mrg default locations.
   1988  1.1.1.14    mrg </p></dd>
   1989   1.1.1.9    mrg </dl>
   1990   1.1.1.3  skrll 
   1991  1.1.1.15    mrg <a name="D-Specific-Options"></a>
   1992  1.1.1.15    mrg <h4 class="subheading">D-Specific Options</h4>
   1993  1.1.1.15    mrg 
   1994  1.1.1.15    mrg <p>The following options apply to the build of the D runtime library.
   1995  1.1.1.15    mrg </p>
   1996  1.1.1.15    mrg <dl compact="compact">
   1997  1.1.1.15    mrg <dt><code>--with-target-system-zlib</code></dt>
   1998  1.1.1.15    mrg <dd><p>Use installed &lsquo;<samp>zlib</samp>&rsquo; rather than that included with GCC.  This needs
   1999  1.1.1.15    mrg to be available for each multilib variant, unless configured with
   2000  1.1.1.15    mrg <samp>--with-target-system-zlib=&lsquo;<samp>auto</samp>&rsquo;</samp> in which case the GCC&nbsp;included
   2001  1.1.1.15    mrg &lsquo;<samp>zlib</samp>&rsquo; is only used when the system installed library is not available.
   2002  1.1.1.15    mrg </p></dd>
   2003  1.1.1.15    mrg </dl>
   2004  1.1.1.15    mrg 
   2005  1.1.1.14    mrg <hr />
   2006  1.1.1.14    mrg <p>
   2007   1.1.1.9    mrg <p><a href="./index.html">Return to the GCC Installation page</a>
   2008  1.1.1.14    mrg </p>
   2009  1.1.1.14    mrg 
   2010  1.1.1.14    mrg 
   2011  1.1.1.14    mrg 
   2012  1.1.1.14    mrg 
   2013  1.1.1.14    mrg 
   2014  1.1.1.14    mrg 
   2015  1.1.1.14    mrg 
   2016  1.1.1.14    mrg 
   2017  1.1.1.14    mrg 
   2018       1.1    mrg 
   2019       1.1    mrg 
   2020  1.1.1.14    mrg </body>
   2021  1.1.1.14    mrg </html>
   2022