Home | History | Annotate | Download | only in info
      1 This is doc/gccinstall.info, produced by makeinfo version 4.13 from
      2 /tmp/android-15472/src/build/../gcc/gcc-4.6/gcc/doc/install.texi.
      3 
      4 Copyright (C) 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
      5 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
      6 Free Software Foundation, Inc.
      7 
      8    Permission is granted to copy, distribute and/or modify this document
      9 under the terms of the GNU Free Documentation License, Version 1.3 or
     10 any later version published by the Free Software Foundation; with no
     11 Invariant Sections, the Front-Cover texts being (a) (see below), and
     12 with the Back-Cover Texts being (b) (see below).  A copy of the license
     13 is included in the section entitled "GNU Free Documentation License".
     14 
     15    (a) The FSF's Front-Cover Text is:
     16 
     17    A GNU Manual
     18 
     19    (b) The FSF's Back-Cover Text is:
     20 
     21    You have freedom to copy and modify this GNU Manual, like GNU
     22 software.  Copies published by the Free Software Foundation raise
     23 funds for GNU development.
     24 
     25    Copyright (C) 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
     26 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
     27 Free Software Foundation, Inc.
     28 
     29    Permission is granted to copy, distribute and/or modify this document
     30 under the terms of the GNU Free Documentation License, Version 1.3 or
     31 any later version published by the Free Software Foundation; with no
     32 Invariant Sections, the Front-Cover texts being (a) (see below), and
     33 with the Back-Cover Texts being (b) (see below).  A copy of the license
     34 is included in the section entitled "GNU Free Documentation License".
     35 
     36    (a) The FSF's Front-Cover Text is:
     37 
     38    A GNU Manual
     39 
     40    (b) The FSF's Back-Cover Text is:
     41 
     42    You have freedom to copy and modify this GNU Manual, like GNU
     43 software.  Copies published by the Free Software Foundation raise
     44 funds for GNU development.
     45 
     46 INFO-DIR-SECTION Software development
     47 START-INFO-DIR-ENTRY
     48 * gccinstall: (gccinstall).    Installing the GNU Compiler Collection.
     49 END-INFO-DIR-ENTRY
     50 
     51 
     52 File: gccinstall.info,  Node: Top,  Up: (dir)
     53 
     54 * Menu:
     55 
     56 * Installing GCC::  This document describes the generic installation
     57                     procedure for GCC as well as detailing some target
     58                     specific installation instructions.
     59 
     60 * Specific::        Host/target specific installation notes for GCC.
     61 * Binaries::        Where to get pre-compiled binaries.
     62 
     63 * Old::             Old installation documentation.
     64 
     65 * GNU Free Documentation License:: How you can copy and share this manual.
     66 * Concept Index::   This index has two entries.
     67 
     68 
     69 File: gccinstall.info,  Node: Installing GCC,  Next: Binaries,  Up: Top
     70 
     71 1 Installing GCC
     72 ****************
     73 
     74    The latest version of this document is always available at
     75 http://gcc.gnu.org/install/.
     76 
     77    This document describes the generic installation procedure for GCC
     78 as well as detailing some target specific installation instructions.
     79 
     80    GCC includes several components that previously were separate
     81 distributions with their own installation instructions.  This document
     82 supersedes all package specific installation instructions.
     83 
     84    _Before_ starting the build/install procedure please check the *note
     85 host/target specific installation notes: Specific.  We recommend you
     86 browse the entire generic installation instructions before you proceed.
     87 
     88    Lists of successful builds for released versions of GCC are
     89 available at `http://gcc.gnu.org/buildstat.html'.  These lists are
     90 updated as new information becomes available.
     91 
     92    The installation procedure itself is broken into five steps.
     93 
     94 * Menu:
     95 
     96 * Prerequisites::
     97 * Downloading the source::
     98 * Configuration::
     99 * Building::
    100 * Testing:: (optional)
    101 * Final install::
    102 
    103    Please note that GCC does not support `make uninstall' and probably
    104 won't do so in the near future as this would open a can of worms.
    105 Instead, we suggest that you install GCC into a directory of its own
    106 and simply remove that directory when you do not need that specific
    107 version of GCC any longer, and, if shared libraries are installed there
    108 as well, no more binaries exist that use them.
    109 
    110 
    111 File: gccinstall.info,  Node: Prerequisites,  Next: Downloading the source,  Up: Installing GCC
    112 
    113 2 Prerequisites
    114 ***************
    115 
    116    GCC requires that various tools and packages be available for use in
    117 the build procedure.  Modifying GCC sources requires additional tools
    118 described below.
    119 
    120 Tools/packages necessary for building GCC
    121 =========================================
    122 
    123 ISO C90 compiler
    124      Necessary to bootstrap GCC, although versions of GCC prior to 3.4
    125      also allow bootstrapping with a traditional (K&R) C compiler.
    126 
    127      To build all languages in a cross-compiler or other configuration
    128      where 3-stage bootstrap is not performed, you need to start with
    129      an existing GCC binary (version 2.95 or later) because source code
    130      for language frontends other than C might use GCC extensions.
    131 
    132 GNAT
    133      In order to build the Ada compiler (GNAT) you must already have
    134      GNAT installed because portions of the Ada frontend are written in
    135      Ada (with GNAT extensions.)  Refer to the Ada installation
    136      instructions for more specific information.
    137 
    138 A "working" POSIX compatible shell, or GNU bash
    139      Necessary when running `configure' because some `/bin/sh' shells
    140      have bugs and may crash when configuring the target libraries.  In
    141      other cases, `/bin/sh' or `ksh' have disastrous corner-case
    142      performance problems.  This can cause target `configure' runs to
    143      literally take days to complete in some cases.
    144 
    145      So on some platforms `/bin/ksh' is sufficient, on others it isn't.
    146      See the host/target specific instructions for your platform, or
    147      use `bash' to be sure.  Then set `CONFIG_SHELL' in your
    148      environment to your "good" shell prior to running
    149      `configure'/`make'.
    150 
    151      `zsh' is not a fully compliant POSIX shell and will not work when
    152      configuring GCC.
    153 
    154 A POSIX or SVR4 awk
    155      Necessary for creating some of the generated source files for GCC.
    156      If in doubt, use a recent GNU awk version, as some of the older
    157      ones are broken.  GNU awk version 3.1.5 is known to work.
    158 
    159 GNU binutils
    160      Necessary in some circumstances, optional in others.  See the
    161      host/target specific instructions for your platform for the exact
    162      requirements.
    163 
    164 gzip version 1.2.4 (or later) or
    165 bzip2 version 1.0.2 (or later)
    166      Necessary to uncompress GCC `tar' files when source code is
    167      obtained via FTP mirror sites.
    168 
    169 GNU make version 3.80 (or later)
    170      You must have GNU make installed to build GCC.
    171 
    172 GNU tar version 1.14 (or later)
    173      Necessary (only on some platforms) to untar the source code.  Many
    174      systems' `tar' programs will also work, only try GNU `tar' if you
    175      have problems.
    176 
    177 Perl version 5.6.1 (or later)
    178      Necessary when targetting Darwin, building `libstdc++', and not
    179      using `--disable-symvers'.  Necessary when targetting Solaris 2
    180      with Sun `ld' and not using `--disable-symvers'.  A helper script
    181      needs `Glob.pm', which is missing from `perl' 5.005 included in
    182      Solaris 8.  The bundled `perl' in Solaris 9 and up works.
    183 
    184      Necessary when regenerating `Makefile' dependencies in libiberty.
    185      Necessary when regenerating `libiberty/functions.texi'.  Necessary
    186      when generating manpages from Texinfo manuals.  Used by various
    187      scripts to generate some files included in SVN (mainly
    188      Unicode-related and rarely changing) from source tables.
    189 
    190 `jar', or InfoZIP (`zip' and `unzip')
    191      Necessary to build libgcj, the GCJ runtime.
    192 
    193 
    194    Several support libraries are necessary to build GCC, some are
    195 required, others optional.  While any sufficiently new version of
    196 required tools usually work, library requirements are generally
    197 stricter.  Newer versions may work in some cases, but it's safer to use
    198 the exact versions documented.  We appreciate bug reports about
    199 problems with newer versions, though.
    200 
    201 GNU Multiple Precision Library (GMP) version 4.3.2 (or later)
    202      Necessary to build GCC.  If you do not have it installed in your
    203      library search path, you will have to configure with the
    204      `--with-gmp' configure option.  See also `--with-gmp-lib' and
    205      `--with-gmp-include'.  Alternatively, if a GMP source distribution
    206      is found in a subdirectory of your GCC sources named `gmp', it
    207      will be built together with GCC.
    208 
    209 MPFR Library version 2.4.2 (or later)
    210      Necessary to build GCC.  It can be downloaded from
    211      `http://www.mpfr.org/'.  The `--with-mpfr' configure option should
    212      be used if your MPFR Library is not installed in your default
    213      library search path.  See also `--with-mpfr-lib' and
    214      `--with-mpfr-include'.  Alternatively, if a MPFR source
    215      distribution is found in a subdirectory of your GCC sources named
    216      `mpfr', it will be built together with GCC.
    217 
    218 MPC Library version 0.8.1 (or later)
    219      Necessary to build GCC.  It can be downloaded from
    220      `http://www.multiprecision.org/'.  The `--with-mpc' configure
    221      option should be used if your MPC Library is not installed in your
    222      default library search path.  See also `--with-mpc-lib' and
    223      `--with-mpc-include'.  Alternatively, if an MPC source
    224      distribution is found in a subdirectory of your GCC sources named
    225      `mpc', it will be built together with GCC.
    226 
    227 Parma Polyhedra Library (PPL) version 0.11
    228      Necessary to build GCC with the Graphite loop optimizations.  It
    229      can be downloaded from `http://www.cs.unipr.it/ppl/Download/'.
    230 
    231      The `--with-ppl' configure option should be used if PPL is not
    232      installed in your default library search path.
    233 
    234 CLooG-PPL version 0.15 or CLooG 0.16
    235      Necessary to build GCC with the Graphite loop optimizations.  There
    236      are two versions available.  CLooG-PPL 0.15 as well as CLooG 0.16.
    237      The former is the default right now.  It can be downloaded from
    238      `ftp://gcc.gnu.org/pub/gcc/infrastructure/' as
    239      `cloog-ppl-0.15.tar.gz'.
    240 
    241      CLooG 0.16 support is still in testing stage, but will be the
    242      default in future GCC releases.  It is also available at
    243      `ftp://gcc.gnu.org/pub/gcc/infrastructure/' as
    244      `cloog-0.16.1.tar.gz'.  To use it add the additional configure
    245      option `--enable-cloog-backend=isl'.  Even if CLooG 0.16 does not
    246      use PPL, PPL is still required for Graphite.
    247 
    248      In both cases `--with-cloog' configure option should be used if
    249      CLooG is not installed in your default library search path.
    250 
    251 
    252 Tools/packages necessary for modifying GCC
    253 ==========================================
    254 
    255 autoconf version 2.64
    256 GNU m4 version 1.4.6 (or later)
    257      Necessary when modifying `configure.ac', `aclocal.m4', etc.  to
    258      regenerate `configure' and `config.in' files.
    259 
    260 automake version 1.11.1
    261      Necessary when modifying a `Makefile.am' file to regenerate its
    262      associated `Makefile.in'.
    263 
    264      Much of GCC does not use automake, so directly edit the
    265      `Makefile.in' file.  Specifically this applies to the `gcc',
    266      `intl', `libcpp', `libiberty', `libobjc' directories as well as
    267      any of their subdirectories.
    268 
    269      For directories that use automake, GCC requires the latest release
    270      in the 1.11 series, which is currently 1.11.1.  When regenerating
    271      a directory to a newer version, please update all the directories
    272      using an older 1.11 to the latest released version.
    273 
    274 gettext version 0.14.5 (or later)
    275      Needed to regenerate `gcc.pot'.
    276 
    277 gperf version 2.7.2 (or later)
    278      Necessary when modifying `gperf' input files, e.g.
    279      `gcc/cp/cfns.gperf' to regenerate its associated header file, e.g.
    280      `gcc/cp/cfns.h'.
    281 
    282 DejaGnu 1.4.4
    283 Expect
    284 Tcl
    285      Necessary to run the GCC testsuite; see the section on testing for
    286      details.
    287 
    288 autogen version 5.5.4 (or later) and
    289 guile version 1.4.1 (or later)
    290      Necessary to regenerate `fixinc/fixincl.x' from
    291      `fixinc/inclhack.def' and `fixinc/*.tpl'.
    292 
    293      Necessary to run `make check' for `fixinc'.
    294 
    295      Necessary to regenerate the top level `Makefile.in' file from
    296      `Makefile.tpl' and `Makefile.def'.
    297 
    298 Flex version 2.5.4 (or later)
    299      Necessary when modifying `*.l' files.
    300 
    301      Necessary to build GCC during development because the generated
    302      output files are not included in the SVN repository.  They are
    303      included in releases.
    304 
    305 Texinfo version 4.7 (or later)
    306      Necessary for running `makeinfo' when modifying `*.texi' files to
    307      test your changes.
    308 
    309      Necessary for running `make dvi' or `make pdf' to create printable
    310      documentation in DVI or PDF format.  Texinfo version 4.8 or later
    311      is required for `make pdf'.
    312 
    313      Necessary to build GCC documentation during development because the
    314      generated output files are not included in the SVN repository.
    315      They are included in releases.
    316 
    317 TeX (any working version)
    318      Necessary for running `texi2dvi' and `texi2pdf', which are used
    319      when running `make dvi' or `make pdf' to create DVI or PDF files,
    320      respectively.
    321 
    322 SVN (any version)
    323 SSH (any version)
    324      Necessary to access the SVN repository.  Public releases and weekly
    325      snapshots of the development sources are also available via FTP.
    326 
    327 GNU diffutils version 2.7 (or later)
    328      Useful when submitting patches for the GCC source code.
    329 
    330 patch version 2.5.4 (or later)
    331      Necessary when applying patches, created with `diff', to one's own
    332      sources.
    333 
    334 ecj1
    335 gjavah
    336      If you wish to modify `.java' files in libjava, you will need to
    337      configure with `--enable-java-maintainer-mode', and you will need
    338      to have executables named `ecj1' and `gjavah' in your path.  The
    339      `ecj1' executable should run the Eclipse Java compiler via the
    340      GCC-specific entry point.  You can download a suitable jar from
    341      `ftp://sourceware.org/pub/java/', or by running the script
    342      `contrib/download_ecj'.
    343 
    344 antlr.jar version 2.7.1 (or later)
    345 antlr binary
    346      If you wish to build the `gjdoc' binary in libjava, you will need
    347      to have an `antlr.jar' library available. The library is searched
    348      in system locations but can be configured with `--with-antlr-jar='
    349      instead.  When configuring with `--enable-java-maintainer-mode',
    350      you will need to have one of the executables named `cantlr',
    351      `runantlr' or `antlr' in your path.
    352 
    353 
    354 
    355 File: gccinstall.info,  Node: Downloading the source,  Next: Configuration,  Prev: Prerequisites,  Up: Installing GCC
    356 
    357 3 Downloading GCC
    358 *****************
    359 
    360    GCC is distributed via SVN and FTP tarballs compressed with `gzip' or
    361 `bzip2'.  It is possible to download a full distribution or specific
    362 components.
    363 
    364    Please refer to the releases web page for information on how to
    365 obtain GCC.
    366 
    367    The full distribution includes the C, C++, Objective-C, Fortran,
    368 Java, and Ada (in the case of GCC 3.1 and later) compilers.  The full
    369 distribution also includes runtime libraries for C++, Objective-C,
    370 Fortran, and Java.  In GCC 3.0 and later versions, the GNU compiler
    371 testsuites are also included in the full distribution.
    372 
    373    If you choose to download specific components, you must download the
    374 core GCC distribution plus any language specific distributions you wish
    375 to use.  The core distribution includes the C language front end as
    376 well as the shared components.  Each language has a tarball which
    377 includes the language front end as well as the language runtime (when
    378 appropriate).
    379 
    380    Unpack the core distribution as well as any language specific
    381 distributions in the same directory.
    382 
    383    If you also intend to build binutils (either to upgrade an existing
    384 installation or for use in place of the corresponding tools of your
    385 OS), unpack the binutils distribution either in the same directory or a
    386 separate one.  In the latter case, add symbolic links to any components
    387 of the binutils you intend to build alongside the compiler (`bfd',
    388 `binutils', `gas', `gprof', `ld', `opcodes', ...) to the directory
    389 containing the GCC sources.
    390 
    391    Likewise the GMP, MPFR and MPC libraries can be automatically built
    392 together with GCC.  Unpack the GMP, MPFR and/or MPC source
    393 distributions in the directory containing the GCC sources and rename
    394 their directories to `gmp', `mpfr' and `mpc', respectively (or use
    395 symbolic links with the same name).
    396 
    397 
    398 File: gccinstall.info,  Node: Configuration,  Next: Building,  Prev: Downloading the source,  Up: Installing GCC
    399 
    400 4 Installing GCC: Configuration
    401 *******************************
    402 
    403    Like most GNU software, GCC must be configured before it can be
    404 built.  This document describes the recommended configuration procedure
    405 for both native and cross targets.
    406 
    407    We use SRCDIR to refer to the toplevel source directory for GCC; we
    408 use OBJDIR to refer to the toplevel build/object directory.
    409 
    410    If you obtained the sources via SVN, SRCDIR must refer to the top
    411 `gcc' directory, the one where the `MAINTAINERS' file can be found, and
    412 not its `gcc' subdirectory, otherwise the build will fail.
    413 
    414    If either SRCDIR or OBJDIR is located on an automounted NFS file
    415 system, the shell's built-in `pwd' command will return temporary
    416 pathnames.  Using these can lead to various sorts of build problems.
    417 To avoid this issue, set the `PWDCMD' environment variable to an
    418 automounter-aware `pwd' command, e.g., `pawd' or `amq -w', during the
    419 configuration and build phases.
    420 
    421    First, we *highly* recommend that GCC be built into a separate
    422 directory from the sources which does *not* reside within the source
    423 tree.  This is how we generally build GCC; building where SRCDIR ==
    424 OBJDIR should still work, but doesn't get extensive testing; building
    425 where OBJDIR is a subdirectory of SRCDIR is unsupported.
    426 
    427    If you have previously built GCC in the same directory for a
    428 different target machine, do `make distclean' to delete all files that
    429 might be invalid.  One of the files this deletes is `Makefile'; if
    430 `make distclean' complains that `Makefile' does not exist or issues a
    431 message like "don't know how to make distclean" it probably means that
    432 the directory is already suitably clean.  However, with the recommended
    433 method of building in a separate OBJDIR, you should simply use a
    434 different OBJDIR for each target.
    435 
    436    Second, when configuring a native system, either `cc' or `gcc' must
    437 be in your path or you must set `CC' in your environment before running
    438 configure.  Otherwise the configuration scripts may fail.
    439 
    440    To configure GCC:
    441 
    442      % mkdir OBJDIR
    443      % cd OBJDIR
    444      % SRCDIR/configure [OPTIONS] [TARGET]
    445 
    446 Distributor options
    447 ===================
    448 
    449 If you will be distributing binary versions of GCC, with modifications
    450 to the source code, you should use the options described in this
    451 section to make clear that your version contains modifications.
    452 
    453 `--with-pkgversion=VERSION'
    454      Specify a string that identifies your package.  You may wish to
    455      include a build number or build date.  This version string will be
    456      included in the output of `gcc --version'.  This suffix does not
    457      replace the default version string, only the `GCC' part.
    458 
    459      The default value is `GCC'.
    460 
    461 `--with-bugurl=URL'
    462      Specify the URL that users should visit if they wish to report a
    463      bug.  You are of course welcome to forward bugs reported to you to
    464      the FSF, if you determine that they are not bugs in your
    465      modifications.
    466 
    467      The default value refers to the FSF's GCC bug tracker.
    468 
    469 
    470 Target specification
    471 ====================
    472 
    473    * GCC has code to correctly determine the correct value for TARGET
    474      for nearly all native systems.  Therefore, we highly recommend you
    475      do not provide a configure target when configuring a native
    476      compiler.
    477 
    478    * TARGET must be specified as `--target=TARGET' when configuring a
    479      cross compiler; examples of valid targets would be m68k-elf,
    480      sh-elf, etc.
    481 
    482    * Specifying just TARGET instead of `--target=TARGET' implies that
    483      the host defaults to TARGET.
    484 
    485 Options specification
    486 =====================
    487 
    488 Use OPTIONS to override several configure time options for GCC.  A list
    489 of supported OPTIONS follows; `configure --help' may list other
    490 options, but those not listed below may not work and should not
    491 normally be used.
    492 
    493    Note that each `--enable' option has a corresponding `--disable'
    494 option and that each `--with' option has a corresponding `--without'
    495 option.
    496 
    497 `--prefix=DIRNAME'
    498      Specify the toplevel installation directory.  This is the
    499      recommended way to install the tools into a directory other than
    500      the default.  The toplevel installation directory defaults to
    501      `/usr/local'.
    502 
    503      We *highly* recommend against DIRNAME being the same or a
    504      subdirectory of OBJDIR or vice versa.  If specifying a directory
    505      beneath a user's home directory tree, some shells will not expand
    506      DIRNAME correctly if it contains the `~' metacharacter; use
    507      `$HOME' instead.
    508 
    509      The following standard `autoconf' options are supported.  Normally
    510      you should not need to use these options.
    511     `--exec-prefix=DIRNAME'
    512           Specify the toplevel installation directory for
    513           architecture-dependent files.  The default is `PREFIX'.
    514 
    515     `--bindir=DIRNAME'
    516           Specify the installation directory for the executables called
    517           by users (such as `gcc' and `g++').  The default is
    518           `EXEC-PREFIX/bin'.
    519 
    520     `--libdir=DIRNAME'
    521           Specify the installation directory for object code libraries
    522           and internal data files of GCC.  The default is
    523           `EXEC-PREFIX/lib'.
    524 
    525     `--libexecdir=DIRNAME'
    526           Specify the installation directory for internal executables
    527           of GCC.  The default is `EXEC-PREFIX/libexec'.
    528 
    529     `--with-slibdir=DIRNAME'
    530           Specify the installation directory for the shared libgcc
    531           library.  The default is `LIBDIR'.
    532 
    533     `--datarootdir=DIRNAME'
    534           Specify the root of the directory tree for read-only
    535           architecture-independent data files referenced by GCC.  The
    536           default is `PREFIX/share'.
    537 
    538     `--infodir=DIRNAME'
    539           Specify the installation directory for documentation in info
    540           format.  The default is `DATAROOTDIR/info'.
    541 
    542     `--datadir=DIRNAME'
    543           Specify the installation directory for some
    544           architecture-independent data files referenced by GCC.  The
    545           default is `DATAROOTDIR'.
    546 
    547     `--docdir=DIRNAME'
    548           Specify the installation directory for documentation files
    549           (other than Info) for GCC.  The default is `DATAROOTDIR/doc'.
    550 
    551     `--htmldir=DIRNAME'
    552           Specify the installation directory for HTML documentation
    553           files.  The default is `DOCDIR'.
    554 
    555     `--pdfdir=DIRNAME'
    556           Specify the installation directory for PDF documentation
    557           files.  The default is `DOCDIR'.
    558 
    559     `--mandir=DIRNAME'
    560           Specify the installation directory for manual pages.  The
    561           default is `DATAROOTDIR/man'.  (Note that the manual pages
    562           are only extracts from the full GCC manuals, which are
    563           provided in Texinfo format.  The manpages are derived by an
    564           automatic conversion process from parts of the full manual.)
    565 
    566     `--with-gxx-include-dir=DIRNAME'
    567           Specify the installation directory for G++ header files.  The
    568           default depends on other configuration options, and differs
    569           between cross and native configurations.
    570 
    571 
    572 `--program-prefix=PREFIX'
    573      GCC supports some transformations of the names of its programs when
    574      installing them.  This option prepends PREFIX to the names of
    575      programs to install in BINDIR (see above).  For example, specifying
    576      `--program-prefix=foo-' would result in `gcc' being installed as
    577      `/usr/local/bin/foo-gcc'.
    578 
    579 `--program-suffix=SUFFIX'
    580      Appends SUFFIX to the names of programs to install in BINDIR (see
    581      above).  For example, specifying `--program-suffix=-3.1' would
    582      result in `gcc' being installed as `/usr/local/bin/gcc-3.1'.
    583 
    584 `--program-transform-name=PATTERN'
    585      Applies the `sed' script PATTERN to be applied to the names of
    586      programs to install in BINDIR (see above).  PATTERN has to consist
    587      of one or more basic `sed' editing commands, separated by
    588      semicolons.  For example, if you want the `gcc' program name to be
    589      transformed to the installed program `/usr/local/bin/myowngcc' and
    590      the `g++' program name to be transformed to
    591      `/usr/local/bin/gspecial++' without changing other program names,
    592      you could use the pattern
    593      `--program-transform-name='s/^gcc$/myowngcc/; s/^g++$/gspecial++/''
    594      to achieve this effect.
    595 
    596      All three options can be combined and used together, resulting in
    597      more complex conversion patterns.  As a basic rule, PREFIX (and
    598      SUFFIX) are prepended (appended) before further transformations
    599      can happen with a special transformation script PATTERN.
    600 
    601      As currently implemented, this option only takes effect for native
    602      builds; cross compiler binaries' names are not transformed even
    603      when a transformation is explicitly asked for by one of these
    604      options.
    605 
    606      For native builds, some of the installed programs are also
    607      installed with the target alias in front of their name, as in
    608      `i686-pc-linux-gnu-gcc'.  All of the above transformations happen
    609      before the target alias is prepended to the name--so, specifying
    610      `--program-prefix=foo-' and `program-suffix=-3.1', the resulting
    611      binary would be installed as
    612      `/usr/local/bin/i686-pc-linux-gnu-foo-gcc-3.1'.
    613 
    614      As a last shortcoming, none of the installed Ada programs are
    615      transformed yet, which will be fixed in some time.
    616 
    617 `--with-local-prefix=DIRNAME'
    618      Specify the installation directory for local include files.  The
    619      default is `/usr/local'.  Specify this option if you want the
    620      compiler to search directory `DIRNAME/include' for locally
    621      installed header files _instead_ of `/usr/local/include'.
    622 
    623      You should specify `--with-local-prefix' *only* if your site has a
    624      different convention (not `/usr/local') for where to put
    625      site-specific files.
    626 
    627      The default value for `--with-local-prefix' is `/usr/local'
    628      regardless of the value of `--prefix'.  Specifying `--prefix' has
    629      no effect on which directory GCC searches for local header files.
    630      This may seem counterintuitive, but actually it is logical.
    631 
    632      The purpose of `--prefix' is to specify where to _install GCC_.
    633      The local header files in `/usr/local/include'--if you put any in
    634      that directory--are not part of GCC.  They are part of other
    635      programs--perhaps many others.  (GCC installs its own header files
    636      in another directory which is based on the `--prefix' value.)
    637 
    638      Both the local-prefix include directory and the GCC-prefix include
    639      directory are part of GCC's "system include" directories.
    640      Although these two directories are not fixed, they need to be
    641      searched in the proper order for the correct processing of the
    642      include_next directive.  The local-prefix include directory is
    643      searched before the GCC-prefix include directory.  Another
    644      characteristic of system include directories is that pedantic
    645      warnings are turned off for headers in these directories.
    646 
    647      Some autoconf macros add `-I DIRECTORY' options to the compiler
    648      command line, to ensure that directories containing installed
    649      packages' headers are searched.  When DIRECTORY is one of GCC's
    650      system include directories, GCC will ignore the option so that
    651      system directories continue to be processed in the correct order.
    652      This may result in a search order different from what was
    653      specified but the directory will still be searched.
    654 
    655      GCC automatically searches for ordinary libraries using
    656      `GCC_EXEC_PREFIX'.  Thus, when the same installation prefix is
    657      used for both GCC and packages, GCC will automatically search for
    658      both headers and libraries.  This provides a configuration that is
    659      easy to use.  GCC behaves in a manner similar to that when it is
    660      installed as a system compiler in `/usr'.
    661 
    662      Sites that need to install multiple versions of GCC may not want to
    663      use the above simple configuration.  It is possible to use the
    664      `--program-prefix', `--program-suffix' and
    665      `--program-transform-name' options to install multiple versions
    666      into a single directory, but it may be simpler to use different
    667      prefixes and the `--with-local-prefix' option to specify the
    668      location of the site-specific files for each version.  It will
    669      then be necessary for users to specify explicitly the location of
    670      local site libraries (e.g., with `LIBRARY_PATH').
    671 
    672      The same value can be used for both `--with-local-prefix' and
    673      `--prefix' provided it is not `/usr'.  This can be used to avoid
    674      the default search of `/usr/local/include'.
    675 
    676      *Do not* specify `/usr' as the `--with-local-prefix'!  The
    677      directory you use for `--with-local-prefix' *must not* contain any
    678      of the system's standard header files.  If it did contain them,
    679      certain programs would be miscompiled (including GNU Emacs, on
    680      certain targets), because this would override and nullify the
    681      header file corrections made by the `fixincludes' script.
    682 
    683      Indications are that people who use this option use it based on
    684      mistaken ideas of what it is for.  People use it as if it
    685      specified where to install part of GCC.  Perhaps they make this
    686      assumption because installing GCC creates the directory.
    687 
    688 `--with-runtime-root-prefix=DIRNAME'
    689      Specifies that DIRNAME is to be used as a prefix before paths to
    690      files used at runtime, such as the path to the dynamic linker.
    691      For instance, if the dynamic linker is normally `/lib/ld.so' and
    692      this option is given as:
    693           --with-runtime-root-prefix=/other
    694      then the compiler will cause compiled executables to use
    695      `/other/lib/ld.so' as their dynamic linker at runtime.  This option
    696      is currently only supported by some targets, notably Linux.
    697 
    698 `--with-native-system-header-dir=DIRNAME'
    699      Specifies that DIRNAME is the directory that contains native system
    700      header files, rather than `/usr/include'. This option is most
    701      useful if you are creating a compiler that should be isolated from
    702      the system as much as possible.  It is most commonly used with the
    703      `--with-sysroot' option and will cause GCC to search DIRNAME
    704      inside the system root specified by that option.
    705 
    706      Please note that for certain targets, such as DJGPP, this value is
    707      ignored. If the target specifies a default value for native system
    708      header files then this option is ignored.
    709 
    710 `--enable-shared[=PACKAGE[,...]]'
    711      Build shared versions of libraries, if shared libraries are
    712      supported on the target platform.  Unlike GCC 2.95.x and earlier,
    713      shared libraries are enabled by default on all platforms that
    714      support shared libraries.
    715 
    716      If a list of packages is given as an argument, build shared
    717      libraries only for the listed packages.  For other packages, only
    718      static libraries will be built.  Package names currently
    719      recognized in the GCC tree are `libgcc' (also known as `gcc'),
    720      `libstdc++' (not `libstdc++-v3'), `libffi', `zlib', `boehm-gc',
    721      `ada', `libada', `libjava', `libgo', and `libobjc'.  Note
    722      `libiberty' does not support shared libraries at all.
    723 
    724      Use `--disable-shared' to build only static libraries.  Note that
    725      `--disable-shared' does not accept a list of package names as
    726      argument, only `--enable-shared' does.
    727 
    728 `--with-gnu-as'
    729      Specify that the compiler should assume that the assembler it
    730      finds is the GNU assembler.  However, this does not modify the
    731      rules to find an assembler and will result in confusion if the
    732      assembler found is not actually the GNU assembler.  (Confusion may
    733      also result if the compiler finds the GNU assembler but has not
    734      been configured with `--with-gnu-as'.)  If you have more than one
    735      assembler installed on your system, you may want to use this
    736      option in connection with `--with-as=PATHNAME' or
    737      `--with-build-time-tools=PATHNAME'.
    738 
    739      The following systems are the only ones where it makes a difference
    740      whether you use the GNU assembler.  On any other system,
    741      `--with-gnu-as' has no effect.
    742 
    743         * `hppa1.0-ANY-ANY'
    744 
    745         * `hppa1.1-ANY-ANY'
    746 
    747         * `sparc-sun-solaris2.ANY'
    748 
    749         * `sparc64-ANY-solaris2.ANY'
    750 
    751 `--with-as=PATHNAME'
    752      Specify that the compiler should use the assembler pointed to by
    753      PATHNAME, rather than the one found by the standard rules to find
    754      an assembler, which are:
    755         * Unless GCC is being built with a cross compiler, check the
    756           `LIBEXEC/gcc/TARGET/VERSION' directory.  LIBEXEC defaults to
    757           `EXEC-PREFIX/libexec'; EXEC-PREFIX defaults to PREFIX, which
    758           defaults to `/usr/local' unless overridden by the
    759           `--prefix=PATHNAME' switch described above.  TARGET is the
    760           target system triple, such as `sparc-sun-solaris2.7', and
    761           VERSION denotes the GCC version, such as 3.0.
    762 
    763         * If the target system is the same that you are building on,
    764           check operating system specific directories (e.g.
    765           `/usr/ccs/bin' on Sun Solaris 2).
    766 
    767         * Check in the `PATH' for a tool whose name is prefixed by the
    768           target system triple.
    769 
    770         * Check in the `PATH' for a tool whose name is not prefixed by
    771           the target system triple, if the host and target system
    772           triple are the same (in other words, we use a host tool if it
    773           can be used for the target as well).
    774 
    775      You may want to use `--with-as' if no assembler is installed in
    776      the directories listed above, or if you have multiple assemblers
    777      installed and want to choose one that is not found by the above
    778      rules.
    779 
    780 `--with-gnu-ld'
    781      Same as `--with-gnu-as' but for the linker.
    782 
    783 `--with-ld=PATHNAME'
    784      Same as `--with-as' but for the linker.
    785 
    786 `--with-stabs'
    787      Specify that stabs debugging information should be used instead of
    788      whatever format the host normally uses.  Normally GCC uses the
    789      same debug format as the host system.
    790 
    791      On MIPS based systems and on Alphas, you must specify whether you
    792      want GCC to create the normal ECOFF debugging format, or to use
    793      BSD-style stabs passed through the ECOFF symbol table.  The normal
    794      ECOFF debug format cannot fully handle languages other than C.
    795      BSD stabs format can handle other languages, but it only works
    796      with the GNU debugger GDB.
    797 
    798      Normally, GCC uses the ECOFF debugging format by default; if you
    799      prefer BSD stabs, specify `--with-stabs' when you configure GCC.
    800 
    801      No matter which default you choose when you configure GCC, the user
    802      can use the `-gcoff' and `-gstabs+' options to specify explicitly
    803      the debug format for a particular compilation.
    804 
    805      `--with-stabs' is meaningful on the ISC system on the 386, also, if
    806      `--with-gas' is used.  It selects use of stabs debugging
    807      information embedded in COFF output.  This kind of debugging
    808      information supports C++ well; ordinary COFF debugging information
    809      does not.
    810 
    811      `--with-stabs' is also meaningful on 386 systems running SVR4.  It
    812      selects use of stabs debugging information embedded in ELF output.
    813      The C++ compiler currently (2.6.0) does not support the DWARF
    814      debugging information normally used on 386 SVR4 platforms; stabs
    815      provide a workable alternative.  This requires gas and gdb, as the
    816      normal SVR4 tools can not generate or interpret stabs.
    817 
    818 `--disable-multilib'
    819      Specify that multiple target libraries to support different target
    820      variants, calling conventions, etc. should not be built.  The
    821      default is to build a predefined set of them.
    822 
    823      Some targets provide finer-grained control over which multilibs
    824      are built (e.g., `--disable-softfloat'):
    825     `arc-*-elf*'
    826           biendian.
    827 
    828     `arm-*-*'
    829           fpu, 26bit, underscore, interwork, biendian, nofmult.
    830 
    831     `m68*-*-*'
    832           softfloat, m68881, m68000, m68020.
    833 
    834     `mips*-*-*'
    835           single-float, biendian, softfloat.
    836 
    837     `powerpc*-*-*, rs6000*-*-*'
    838           aix64, pthread, softfloat, powercpu, powerpccpu, powerpcos,
    839           biendian, sysv, aix.
    840 
    841 
    842 `--with-multilib-list=LIST'
    843 `--without-multilib-list'
    844      Specify what multilibs to build.  Currently only implemented for
    845      sh*-*-*.
    846 
    847      LIST is a comma separated list of CPU names.  These must be of the
    848      form `sh*' or `m*' (in which case they match the compiler option
    849      for that processor).  The list should not contain any endian
    850      options - these are handled by `--with-endian'.
    851 
    852      If LIST is empty, then there will be no multilibs for extra
    853      processors.  The multilib for the secondary endian remains enabled.
    854 
    855      As a special case, if an entry in the list starts with a `!'
    856      (exclamation point), then it is added to the list of excluded
    857      multilibs.  Entries of this sort should be compatible with
    858      `MULTILIB_EXCLUDES' (once the leading `!' has been stripped).
    859 
    860      If `--with-multilib-list' is not given, then a default set of
    861      multilibs is selected based on the value of `--target'.  This is
    862      usually the complete set of libraries, but some targets imply a
    863      more specialized subset.
    864 
    865      Example 1: to configure a compiler for SH4A only, but supporting
    866      both endians, with little endian being the default:
    867           --with-cpu=sh4a --with-endian=little,big --with-multilib-list=
    868 
    869      Example 2: to configure a compiler for both SH4A and SH4AL-DSP,
    870      but with only little endian SH4AL:
    871           --with-cpu=sh4a --with-endian=little,big \
    872           --with-multilib-list=sh4al,!mb/m4al
    873 
    874 `--with-endian=ENDIANS'
    875      Specify what endians to use.  Currently only implemented for
    876      sh*-*-*.
    877 
    878      ENDIANS may be one of the following:
    879     `big'
    880           Use big endian exclusively.
    881 
    882     `little'
    883           Use little endian exclusively.
    884 
    885     `big,little'
    886           Use big endian by default.  Provide a multilib for little
    887           endian.
    888 
    889     `little,big'
    890           Use little endian by default.  Provide a multilib for big
    891           endian.
    892 
    893 `--enable-threads'
    894      Specify that the target supports threads.  This affects the
    895      Objective-C compiler and runtime library, and exception handling
    896      for other languages like C++ and Java.  On some systems, this is
    897      the default.
    898 
    899      In general, the best (and, in many cases, the only known) threading
    900      model available will be configured for use.  Beware that on some
    901      systems, GCC has not been taught what threading models are
    902      generally available for the system.  In this case,
    903      `--enable-threads' is an alias for `--enable-threads=single'.
    904 
    905 `--disable-threads'
    906      Specify that threading support should be disabled for the system.
    907      This is an alias for `--enable-threads=single'.
    908 
    909 `--enable-threads=LIB'
    910      Specify that LIB is the thread support library.  This affects the
    911      Objective-C compiler and runtime library, and exception handling
    912      for other languages like C++ and Java.  The possibilities for LIB
    913      are:
    914 
    915     `aix'
    916           AIX thread support.
    917 
    918     `dce'
    919           DCE thread support.
    920 
    921     `gnat'
    922           Ada tasking support.  For non-Ada programs, this setting is
    923           equivalent to `single'.  When used in conjunction with the
    924           Ada run time, it causes GCC to use the same thread primitives
    925           as Ada uses.  This option is necessary when using both Ada
    926           and the back end exception handling, which is the default for
    927           most Ada targets.
    928 
    929     `mach'
    930           Generic MACH thread support, known to work on NeXTSTEP.
    931           (Please note that the file needed to support this
    932           configuration, `gthr-mach.h', is missing and thus this
    933           setting will cause a known bootstrap failure.)
    934 
    935     `no'
    936           This is an alias for `single'.
    937 
    938     `posix'
    939           Generic POSIX/Unix98 thread support.
    940 
    941     `posix95'
    942           Generic POSIX/Unix95 thread support.
    943 
    944     `rtems'
    945           RTEMS thread support.
    946 
    947     `single'
    948           Disable thread support, should work for all platforms.
    949 
    950     `solaris'
    951           Sun Solaris 2/Unix International thread support.  Only use
    952           this if you really need to use this legacy API instead of the
    953           default, `posix'.
    954 
    955     `vxworks'
    956           VxWorks thread support.
    957 
    958     `win32'
    959           Microsoft Win32 API thread support.
    960 
    961     `nks'
    962           Novell Kernel Services thread support.
    963 
    964 `--enable-tls'
    965      Specify that the target supports TLS (Thread Local Storage).
    966      Usually configure can correctly determine if TLS is supported.  In
    967      cases where it guesses incorrectly, TLS can be explicitly enabled
    968      or disabled with `--enable-tls' or `--disable-tls'.  This can
    969      happen if the assembler supports TLS but the C library does not,
    970      or if the assumptions made by the configure test are incorrect.
    971 
    972 `--disable-tls'
    973      Specify that the target does not support TLS.  This is an alias
    974      for `--enable-tls=no'.
    975 
    976 `--with-cpu=CPU'
    977 `--with-cpu-32=CPU'
    978 `--with-cpu-64=CPU'
    979      Specify which cpu variant the compiler should generate code for by
    980      default.  CPU will be used as the default value of the `-mcpu='
    981      switch.  This option is only supported on some targets, including
    982      ARM, i386, M68k, PowerPC, and SPARC.  The `--with-cpu-32' and
    983      `--with-cpu-64' options specify separate default CPUs for 32-bit
    984      and 64-bit modes; these options are only supported for i386,
    985      x86-64 and PowerPC.
    986 
    987 `--with-schedule=CPU'
    988 `--with-arch=CPU'
    989 `--with-arch-32=CPU'
    990 `--with-arch-64=CPU'
    991 `--with-tune=CPU'
    992 `--with-tune-32=CPU'
    993 `--with-tune-64=CPU'
    994 `--with-abi=ABI'
    995 `--with-fpu=TYPE'
    996 `--with-float=TYPE'
    997      These configure options provide default values for the
    998      `-mschedule=', `-march=', `-mtune=', `-mabi=', and `-mfpu='
    999      options and for `-mhard-float' or `-msoft-float'.  As with
   1000      `--with-cpu', which switches will be accepted and acceptable values
   1001      of the arguments depend on the target.
   1002 
   1003 `--with-mode=MODE'
   1004      Specify if the compiler should default to `-marm' or `-mthumb'.
   1005      This option is only supported on ARM targets.
   1006 
   1007 `--with-fpmath=ISA'
   1008      This options sets `-mfpmath=sse' by default and specifies the
   1009      default ISA for floating-point arithmetics.  You can select either
   1010      `sse' which enables `-msse2' or `avx' which enables `-mavx' by
   1011      default.  This option is only supported on i386 and x86-64 targets.
   1012 
   1013 `--with-divide=TYPE'
   1014      Specify how the compiler should generate code for checking for
   1015      division by zero.  This option is only supported on the MIPS
   1016      target.  The possibilities for TYPE are:
   1017     `traps'
   1018           Division by zero checks use conditional traps (this is the
   1019           default on systems that support conditional traps).
   1020 
   1021     `breaks'
   1022           Division by zero checks use the break instruction.
   1023 
   1024 `--with-llsc'
   1025      On MIPS targets, make `-mllsc' the default when no `-mno-lsc'
   1026      option is passed.  This is the default for Linux-based targets, as
   1027      the kernel will emulate them if the ISA does not provide them.
   1028 
   1029 `--without-llsc'
   1030      On MIPS targets, make `-mno-llsc' the default when no `-mllsc'
   1031      option is passed.
   1032 
   1033 `--with-synci'
   1034      On MIPS targets, make `-msynci' the default when no `-mno-synci'
   1035      option is passed.
   1036 
   1037 `--without-synci'
   1038      On MIPS targets, make `-mno-synci' the default when no `-msynci'
   1039      option is passed.  This is the default.
   1040 
   1041 `--with-mips-plt'
   1042      On MIPS targets, make use of copy relocations and PLTs.  These
   1043      features are extensions to the traditional SVR4-based MIPS ABIs
   1044      and require support from GNU binutils and the runtime C library.
   1045 
   1046 `--enable-__cxa_atexit'
   1047      Define if you want to use __cxa_atexit, rather than atexit, to
   1048      register C++ destructors for local statics and global objects.
   1049      This is essential for fully standards-compliant handling of
   1050      destructors, but requires __cxa_atexit in libc.  This option is
   1051      currently only available on systems with GNU libc.  When enabled,
   1052      this will cause `-fuse-cxa-atexit' to be passed by default.
   1053 
   1054 `--enable-indirect-function'
   1055      Define if you want to enable the `ifunc' attribute.  This option is
   1056      currently only available on systems with GNU libc on certain
   1057      targets.
   1058 
   1059 `--enable-target-optspace'
   1060      Specify that target libraries should be optimized for code space
   1061      instead of code speed.  This is the default for the m32r platform.
   1062 
   1063 `--with-cpp-install-dir=DIRNAME'
   1064      Specify that the user visible `cpp' program should be installed in
   1065      `PREFIX/DIRNAME/cpp', in addition to BINDIR.
   1066 
   1067 `--enable-comdat'
   1068      Enable COMDAT group support.  This is primarily used to override
   1069      the automatically detected value.
   1070 
   1071 `--enable-initfini-array'
   1072      Force the use of sections `.init_array' and `.fini_array' (instead
   1073      of `.init' and `.fini') for constructors and destructors.  Option
   1074      `--disable-initfini-array' has the opposite effect.  If neither
   1075      option is specified, the configure script will try to guess
   1076      whether the `.init_array' and `.fini_array' sections are supported
   1077      and, if they are, use them.
   1078 
   1079 `--enable-build-with-cxx'
   1080      Build GCC using a C++ compiler rather than a C compiler.  This is
   1081      an experimental option which may become the default in a later
   1082      release.
   1083 
   1084 `--enable-maintainer-mode'
   1085      The build rules that regenerate the Autoconf and Automake output
   1086      files as well as the GCC master message catalog `gcc.pot' are
   1087      normally disabled.  This is because it can only be rebuilt if the
   1088      complete source tree is present.  If you have changed the sources
   1089      and want to rebuild the catalog, configuring with
   1090      `--enable-maintainer-mode' will enable this.  Note that you need a
   1091      recent version of the `gettext' tools to do so.
   1092 
   1093 `--disable-bootstrap'
   1094      For a native build, the default configuration is to perform a
   1095      3-stage bootstrap of the compiler when `make' is invoked, testing
   1096      that GCC can compile itself correctly.  If you want to disable
   1097      this process, you can configure with `--disable-bootstrap'.
   1098 
   1099 `--enable-bootstrap'
   1100      In special cases, you may want to perform a 3-stage build even if
   1101      the target and host triplets are different.  This is possible when
   1102      the host can run code compiled for the target (e.g. host is
   1103      i686-linux, target is i486-linux).  Starting from GCC 4.2, to do
   1104      this you have to configure explicitly with `--enable-bootstrap'.
   1105 
   1106 `--enable-generated-files-in-srcdir'
   1107      Neither the .c and .h files that are generated from Bison and flex
   1108      nor the info manuals and man pages that are built from the .texi
   1109      files are present in the SVN development tree.  When building GCC
   1110      from that development tree, or from one of our snapshots, those
   1111      generated files are placed in your build directory, which allows
   1112      for the source to be in a readonly directory.
   1113 
   1114      If you configure with `--enable-generated-files-in-srcdir' then
   1115      those generated files will go into the source directory.  This is
   1116      mainly intended for generating release or prerelease tarballs of
   1117      the GCC sources, since it is not a requirement that the users of
   1118      source releases to have flex, Bison, or makeinfo.
   1119 
   1120 `--enable-version-specific-runtime-libs'
   1121      Specify that runtime libraries should be installed in the compiler
   1122      specific subdirectory (`LIBDIR/gcc') rather than the usual places.
   1123      In addition, `libstdc++''s include files will be installed into
   1124      `LIBDIR' unless you overruled it by using
   1125      `--with-gxx-include-dir=DIRNAME'.  Using this option is
   1126      particularly useful if you intend to use several versions of GCC in
   1127      parallel.  This is currently supported by `libgfortran',
   1128      `libjava', `libmudflap', `libstdc++', and `libobjc'.
   1129 
   1130 `--enable-languages=LANG1,LANG2,...'
   1131      Specify that only a particular subset of compilers and their
   1132      runtime libraries should be built.  For a list of valid values for
   1133      LANGN you can issue the following command in the `gcc' directory
   1134      of your GCC source tree:
   1135           grep language= */config-lang.in
   1136      Currently, you can use any of the following: `all', `ada', `c',
   1137      `c++', `fortran', `go', `java', `objc', `obj-c++'.  Building the
   1138      Ada compiler has special requirements, see below.  If you do not
   1139      pass this flag, or specify the option `all', then all default
   1140      languages available in the `gcc' sub-tree will be configured.
   1141      Ada, Go and Objective-C++ are not default languages; the rest are.
   1142 
   1143 `--enable-stage1-languages=LANG1,LANG2,...'
   1144      Specify that a particular subset of compilers and their runtime
   1145      libraries should be built with the system C compiler during stage
   1146      1 of the bootstrap process, rather than only in later stages with
   1147      the bootstrapped C compiler.  The list of valid values is the same
   1148      as for `--enable-languages', and the option `all' will select all
   1149      of the languages enabled by `--enable-languages'.  This option is
   1150      primarily useful for GCC development; for instance, when a
   1151      development version of the compiler cannot bootstrap due to
   1152      compiler bugs, or when one is debugging front ends other than the
   1153      C front end.  When this option is used, one can then build the
   1154      target libraries for the specified languages with the stage-1
   1155      compiler by using `make stage1-bubble all-target', or run the
   1156      testsuite on the stage-1 compiler for the specified languages
   1157      using `make stage1-start check-gcc'.
   1158 
   1159 `--disable-libada'
   1160      Specify that the run-time libraries and tools used by GNAT should
   1161      not be built.  This can be useful for debugging, or for
   1162      compatibility with previous Ada build procedures, when it was
   1163      required to explicitly do a `make -C gcc gnatlib_and_tools'.
   1164 
   1165 `--disable-libssp'
   1166      Specify that the run-time libraries for stack smashing protection
   1167      should not be built.
   1168 
   1169 `--disable-libquadmath'
   1170      Specify that the GCC quad-precision math library should not be
   1171      built.  On some systems, the library is required to be linkable
   1172      when building the Fortran front end, unless
   1173      `--disable-libquadmath-support' is used.
   1174 
   1175 `--disable-libquadmath-support'
   1176      Specify that the Fortran front end and `libgfortran' do not add
   1177      support for `libquadmath' on systems supporting it.
   1178 
   1179 `--disable-libgomp'
   1180      Specify that the run-time libraries used by GOMP should not be
   1181      built.
   1182 
   1183 `--with-dwarf2'
   1184      Specify that the compiler should use DWARF 2 debugging information
   1185      as the default.
   1186 
   1187 `--enable-targets=all'
   1188 `--enable-targets=TARGET_LIST'
   1189      Some GCC targets, e.g. powerpc64-linux, build bi-arch compilers.
   1190      These are compilers that are able to generate either 64-bit or
   1191      32-bit code.  Typically, the corresponding 32-bit target, e.g.
   1192      powerpc-linux for powerpc64-linux, only generates 32-bit code.
   1193      This option enables the 32-bit target to be a bi-arch compiler,
   1194      which is useful when you want a bi-arch compiler that defaults to
   1195      32-bit, and you are building a bi-arch or multi-arch binutils in a
   1196      combined tree.  On mips-linux, this will build a tri-arch compiler
   1197      (ABI o32/n32/64), defaulted to o32.  Currently, this option only
   1198      affects sparc-linux, powerpc-linux, x86-linux and mips-linux.
   1199 
   1200 `--enable-secureplt'
   1201      This option enables `-msecure-plt' by default for powerpc-linux.
   1202      *Note RS/6000 and PowerPC Options: (gcc)RS/6000 and PowerPC
   1203      Options,
   1204 
   1205 `--enable-cld'
   1206      This option enables `-mcld' by default for 32-bit x86 targets.
   1207      *Note i386 and x86-64 Options: (gcc)i386 and x86-64 Options,
   1208 
   1209 `--enable-win32-registry'
   1210 `--enable-win32-registry=KEY'
   1211 `--disable-win32-registry'
   1212      The `--enable-win32-registry' option enables Microsoft
   1213      Windows-hosted GCC to look up installations paths in the registry
   1214      using the following key:
   1215 
   1216           `HKEY_LOCAL_MACHINE\SOFTWARE\Free Software Foundation\KEY'
   1217 
   1218      KEY defaults to GCC version number, and can be overridden by the
   1219      `--enable-win32-registry=KEY' option.  Vendors and distributors
   1220      who use custom installers are encouraged to provide a different
   1221      key, perhaps one comprised of vendor name and GCC version number,
   1222      to avoid conflict with existing installations.  This feature is
   1223      enabled by default, and can be disabled by
   1224      `--disable-win32-registry' option.  This option has no effect on
   1225      the other hosts.
   1226 
   1227 `--nfp'
   1228      Specify that the machine does not have a floating point unit.  This
   1229      option only applies to `m68k-sun-sunosN'.  On any other system,
   1230      `--nfp' has no effect.
   1231 
   1232 `--enable-werror'
   1233 `--disable-werror'
   1234 `--enable-werror=yes'
   1235 `--enable-werror=no'
   1236      When you specify this option, it controls whether certain files in
   1237      the compiler are built with `-Werror' in bootstrap stage2 and
   1238      later.  If you don't specify it, `-Werror' is turned on for the
   1239      main development trunk.  However it defaults to off for release
   1240      branches and final releases.  The specific files which get
   1241      `-Werror' are controlled by the Makefiles.
   1242 
   1243 `--enable-checking'
   1244 `--enable-checking=LIST'
   1245      When you specify this option, the compiler is built to perform
   1246      internal consistency checks of the requested complexity.  This
   1247      does not change the generated code, but adds error checking within
   1248      the compiler.  This will slow down the compiler and may only work
   1249      properly if you are building the compiler with GCC.  This is `yes'
   1250      by default when building from SVN or snapshots, but `release' for
   1251      releases.  The default for building the stage1 compiler is `yes'.
   1252      More control over the checks may be had by specifying LIST.  The
   1253      categories of checks available are `yes' (most common checks
   1254      `assert,misc,tree,gc,rtlflag,runtime'), `no' (no checks at all),
   1255      `all' (all but `valgrind'), `release' (cheapest checks
   1256      `assert,runtime') or `none' (same as `no').  Individual checks can
   1257      be enabled with these flags `assert', `df', `fold', `gc', `gcac'
   1258      `misc', `rtl', `rtlflag', `runtime', `tree', and `valgrind'.
   1259 
   1260      The `valgrind' check requires the external `valgrind' simulator,
   1261      available from `http://valgrind.org/'.  The `df', `rtl', `gcac'
   1262      and `valgrind' checks are very expensive.  To disable all
   1263      checking, `--disable-checking' or `--enable-checking=none' must be
   1264      explicitly requested.  Disabling assertions will make the compiler
   1265      and runtime slightly faster but increase the risk of undetected
   1266      internal errors causing wrong code to be generated.
   1267 
   1268 `--disable-stage1-checking'
   1269 `--enable-stage1-checking'
   1270 `--enable-stage1-checking=LIST'
   1271      If no `--enable-checking' option is specified the stage1 compiler
   1272      will be built with `yes' checking enabled, otherwise the stage1
   1273      checking flags are the same as specified by `--enable-checking'.
   1274      To build the stage1 compiler with different checking options use
   1275      `--enable-stage1-checking'.  The list of checking options is the
   1276      same as for `--enable-checking'.  If your system is too slow or
   1277      too small to bootstrap a released compiler with checking for
   1278      stage1 enabled, you can use `--disable-stage1-checking' to disable
   1279      checking for the stage1 compiler.
   1280 
   1281 `--enable-coverage'
   1282 `--enable-coverage=LEVEL'
   1283      With this option, the compiler is built to collect self coverage
   1284      information, every time it is run.  This is for internal
   1285      development purposes, and only works when the compiler is being
   1286      built with gcc.  The LEVEL argument controls whether the compiler
   1287      is built optimized or not, values are `opt' and `noopt'.  For
   1288      coverage analysis you want to disable optimization, for
   1289      performance analysis you want to enable optimization.  When
   1290      coverage is enabled, the default level is without optimization.
   1291 
   1292 `--enable-gather-detailed-mem-stats'
   1293      When this option is specified more detailed information on memory
   1294      allocation is gathered.  This information is printed when using
   1295      `-fmem-report'.
   1296 
   1297 `--with-gc'
   1298 `--with-gc=CHOICE'
   1299      With this option you can specify the garbage collector
   1300      implementation used during the compilation process.  CHOICE can be
   1301      one of `page' and `zone', where `page' is the default.
   1302 
   1303 `--enable-nls'
   1304 `--disable-nls'
   1305      The `--enable-nls' option enables Native Language Support (NLS),
   1306      which lets GCC output diagnostics in languages other than American
   1307      English.  Native Language Support is enabled by default if not
   1308      doing a canadian cross build.  The `--disable-nls' option disables
   1309      NLS.
   1310 
   1311 `--with-included-gettext'
   1312      If NLS is enabled, the `--with-included-gettext' option causes the
   1313      build procedure to prefer its copy of GNU `gettext'.
   1314 
   1315 `--with-catgets'
   1316      If NLS is enabled, and if the host lacks `gettext' but has the
   1317      inferior `catgets' interface, the GCC build procedure normally
   1318      ignores `catgets' and instead uses GCC's copy of the GNU `gettext'
   1319      library.  The `--with-catgets' option causes the build procedure
   1320      to use the host's `catgets' in this situation.
   1321 
   1322 `--with-libiconv-prefix=DIR'
   1323      Search for libiconv header files in `DIR/include' and libiconv
   1324      library files in `DIR/lib'.
   1325 
   1326 `--enable-obsolete'
   1327      Enable configuration for an obsoleted system.  If you attempt to
   1328      configure GCC for a system (build, host, or target) which has been
   1329      obsoleted, and you do not specify this flag, configure will halt
   1330      with an error message.
   1331 
   1332      All support for systems which have been obsoleted in one release
   1333      of GCC is removed entirely in the next major release, unless
   1334      someone steps forward to maintain the port.
   1335 
   1336 `--enable-decimal-float'
   1337 `--enable-decimal-float=yes'
   1338 `--enable-decimal-float=no'
   1339 `--enable-decimal-float=bid'
   1340 `--enable-decimal-float=dpd'
   1341 `--disable-decimal-float'
   1342      Enable (or disable) support for the C decimal floating point
   1343      extension that is in the IEEE 754-2008 standard.  This is enabled
   1344      by default only on PowerPC, i386, and x86_64 GNU/Linux systems.
   1345      Other systems may also support it, but require the user to
   1346      specifically enable it.  You can optionally control which decimal
   1347      floating point format is used (either `bid' or `dpd').  The `bid'
   1348      (binary integer decimal) format is default on i386 and x86_64
   1349      systems, and the `dpd' (densely packed decimal) format is default
   1350      on PowerPC systems.
   1351 
   1352 `--enable-fixed-point'
   1353 `--disable-fixed-point'
   1354      Enable (or disable) support for C fixed-point arithmetic.  This
   1355      option is enabled by default for some targets (such as MIPS) which
   1356      have hardware-support for fixed-point operations.  On other
   1357      targets, you may enable this option manually.
   1358 
   1359 `--with-long-double-128'
   1360      Specify if `long double' type should be 128-bit by default on
   1361      selected GNU/Linux architectures.  If using
   1362      `--without-long-double-128', `long double' will be by default
   1363      64-bit, the same as `double' type.  When neither of these
   1364      configure options are used, the default will be 128-bit `long
   1365      double' when built against GNU C Library 2.4 and later, 64-bit
   1366      `long double' otherwise.
   1367 
   1368 `--with-gmp=PATHNAME'
   1369 `--with-gmp-include=PATHNAME'
   1370 `--with-gmp-lib=PATHNAME'
   1371 `--with-mpfr=PATHNAME'
   1372 `--with-mpfr-include=PATHNAME'
   1373 `--with-mpfr-lib=PATHNAME'
   1374 `--with-mpc=PATHNAME'
   1375 `--with-mpc-include=PATHNAME'
   1376 `--with-mpc-lib=PATHNAME'
   1377      If you do not have GMP (the GNU Multiple Precision library), the
   1378      MPFR library and/or the MPC library installed in a standard
   1379      location and you want to build GCC, you can explicitly specify the
   1380      directory where they are installed (`--with-gmp=GMPINSTALLDIR',
   1381      `--with-mpfr=MPFRINSTALLDIR', `--with-mpc=MPCINSTALLDIR').  The
   1382      `--with-gmp=GMPINSTALLDIR' option is shorthand for
   1383      `--with-gmp-lib=GMPINSTALLDIR/lib' and
   1384      `--with-gmp-include=GMPINSTALLDIR/include'.  Likewise the
   1385      `--with-mpfr=MPFRINSTALLDIR' option is shorthand for
   1386      `--with-mpfr-lib=MPFRINSTALLDIR/lib' and
   1387      `--with-mpfr-include=MPFRINSTALLDIR/include', also the
   1388      `--with-mpc=MPCINSTALLDIR' option is shorthand for
   1389      `--with-mpc-lib=MPCINSTALLDIR/lib' and
   1390      `--with-mpc-include=MPCINSTALLDIR/include'.  If these shorthand
   1391      assumptions are not correct, you can use the explicit include and
   1392      lib options directly.  You might also need to ensure the shared
   1393      libraries can be found by the dynamic linker when building and
   1394      using GCC, for example by setting the runtime shared library path
   1395      variable (`LD_LIBRARY_PATH' on GNU/Linux and Solaris systems).
   1396 
   1397      These flags are applicable to the host platform only.  When
   1398      building a cross compiler, they will not be used to configure
   1399      target libraries.
   1400 
   1401 `--with-ppl=PATHNAME'
   1402 `--with-ppl-include=PATHNAME'
   1403 `--with-ppl-lib=PATHNAME'
   1404 `--with-cloog=PATHNAME'
   1405 `--with-cloog-include=PATHNAME'
   1406 `--with-cloog-lib=PATHNAME'
   1407      If you do not have PPL (the Parma Polyhedra Library) and the CLooG
   1408      libraries installed in a standard location and you want to build
   1409      GCC, you can explicitly specify the directory where they are
   1410      installed (`--with-ppl=PPLINSTALLDIR',
   1411      `--with-cloog=CLOOGINSTALLDIR'). The `--with-ppl=PPLINSTALLDIR'
   1412      option is shorthand for `--with-ppl-lib=PPLINSTALLDIR/lib' and
   1413      `--with-ppl-include=PPLINSTALLDIR/include'.  Likewise the
   1414      `--with-cloog=CLOOGINSTALLDIR' option is shorthand for
   1415      `--with-cloog-lib=CLOOGINSTALLDIR/lib' and
   1416      `--with-cloog-include=CLOOGINSTALLDIR/include'.  If these
   1417      shorthand assumptions are not correct, you can use the explicit
   1418      include and lib options directly.
   1419 
   1420      These flags are applicable to the host platform only.  When
   1421      building a cross compiler, they will not be used to configure
   1422      target libraries.
   1423 
   1424 `--with-host-libstdcxx=LINKER-ARGS'
   1425      If you are linking with a static copy of PPL, you can use this
   1426      option to specify how the linker should find the standard C++
   1427      library used internally by PPL.  Typical values of LINKER-ARGS
   1428      might be `-lstdc++' or `-Wl,-Bstatic,-lstdc++,-Bdynamic -lm'.  If
   1429      you are linking with a shared copy of PPL, you probably do not
   1430      need this option; shared library dependencies will cause the
   1431      linker to search for the standard C++ library automatically.
   1432 
   1433 `--with-stage1-ldflags=FLAGS'
   1434      This option may be used to set linker flags to be used when linking
   1435      stage 1 of GCC.  These are also used when linking GCC if
   1436      configured with `--disable-bootstrap'.  By default no special
   1437      flags are used.
   1438 
   1439 `--with-stage1-libs=LIBS'
   1440      This option may be used to set libraries to be used when linking
   1441      stage 1 of GCC.  These are also used when linking GCC if
   1442      configured with `--disable-bootstrap'.  The default is the
   1443      argument to `--with-host-libstdcxx', if specified.
   1444 
   1445 `--with-boot-ldflags=FLAGS'
   1446      This option may be used to set linker flags to be used when linking
   1447      stage 2 and later when bootstrapping GCC.  If neither
   1448      -with-boot-libs nor -with-host-libstdcxx is set to a value, then
   1449      the default is `-static-libstdc++ -static-libgcc'.
   1450 
   1451 `--with-boot-libs=LIBS'
   1452      This option may be used to set libraries to be used when linking
   1453      stage 2 and later when bootstrapping GCC.  The default is the
   1454      argument to `--with-host-libstdcxx', if specified.
   1455 
   1456 `--with-debug-prefix-map=MAP'
   1457      Convert source directory names using `-fdebug-prefix-map' when
   1458      building runtime libraries.  `MAP' is a space-separated list of
   1459      maps of the form `OLD=NEW'.
   1460 
   1461 `--enable-linker-build-id'
   1462      Tells GCC to pass `--build-id' option to the linker for all final
   1463      links (links performed without the `-r' or `--relocatable'
   1464      option), if the linker supports it.  If you specify
   1465      `--enable-linker-build-id', but your linker does not support
   1466      `--build-id' option, a warning is issued and the
   1467      `--enable-linker-build-id' option is ignored.  The default is off.
   1468 
   1469 `--enable-gnu-unique-object'
   1470 `--disable-gnu-unique-object'
   1471      Tells GCC to use the gnu_unique_object relocation for C++ template
   1472      static data members and inline function local statics.  Enabled by
   1473      default for a native toolchain with an assembler that accepts it
   1474      and GLIBC 2.11 or above, otherwise disabled.
   1475 
   1476 `--enable-lto'
   1477 `--disable-lto'
   1478      Enable support for link-time optimization (LTO).  This is enabled
   1479      by default, and may be disabled using `--disable-lto'.
   1480 
   1481 `--with-plugin-ld=PATHNAME'
   1482      Enable an alternate linker to be used at link-time optimization
   1483      (LTO) link time when `-fuse-linker-plugin' is enabled.  This
   1484      linker should have plugin support such as gold starting with
   1485      version 2.20 or GNU ld starting with version 2.21.  See
   1486      `-fuse-linker-plugin' for details.
   1487 
   1488 `--enable-canonical-prefixes'
   1489 `--disable-canonical-prefixes'
   1490      Enable prefix canonicalization for GCC files that the GCC driver
   1491      locates relative to its own path.  Canonicalized prefixes have any
   1492      `/x/../' elements removed and symbolic links expanded.  This is
   1493      enabled by default, and may be disabled using
   1494      `--disable-canonical-prefixes'.  See `-canonical-prefixes' or
   1495      `-no-canonical-prefixes' for more details, including how to
   1496      override this configuration option when compiling.
   1497 
   1498 `--with-warn-frame-larger-than-extra-text=TEXT'
   1499      Append `TEXT' to frame size warnings generated by the
   1500      `-Wframe-larger-than' warning flag.
   1501 
   1502 Cross-Compiler-Specific Options
   1503 -------------------------------
   1504 
   1505 The following options only apply to building cross compilers.
   1506 
   1507 `--with-sysroot'
   1508 `--with-sysroot=DIR'
   1509      Tells GCC to consider DIR as the root of a tree that contains (a
   1510      subset of) the root filesystem of the target operating system.
   1511      Target system headers, libraries and run-time object files will be
   1512      searched in there.  More specifically, this acts as if
   1513      `--sysroot=DIR' was added to the default options of the built
   1514      compiler.  The specified directory is not copied into the install
   1515      tree, unlike the options `--with-headers' and `--with-libs' that
   1516      this option obsoletes.  The default value, in case
   1517      `--with-sysroot' is not given an argument, is
   1518      `${gcc_tooldir}/sys-root'.  If the specified directory is a
   1519      subdirectory of `${exec_prefix}', then it will be found relative to
   1520      the GCC binaries if the installation tree is moved.
   1521 
   1522      This option affects the system root for the compiler used to build
   1523      target libraries (which runs on the build system) and the compiler
   1524      newly installed with `make install'; it does not affect the
   1525      compiler which is used to build GCC itself.
   1526 
   1527      If you specify the `--with-native-system-header-dir=DIRNAME'
   1528      option then the compiler will search that directory within DIRNAME
   1529      for native system headers rather than the default `/usr/include'.
   1530 
   1531 `--with-build-sysroot'
   1532 `--with-build-sysroot=DIR'
   1533      Tells GCC to consider DIR as the system root (see
   1534      `--with-sysroot') while building target libraries, instead of the
   1535      directory specified with `--with-sysroot'.  This option is only
   1536      useful when you are already using `--with-sysroot'.  You can use
   1537      `--with-build-sysroot' when you are configuring with `--prefix'
   1538      set to a directory that is different from the one in which you are
   1539      installing GCC and your target libraries.
   1540 
   1541      This option affects the system root for the compiler used to build
   1542      target libraries (which runs on the build system); it does not
   1543      affect the compiler which is used to build GCC itself.
   1544 
   1545      If you specify the `--with-native-system-header-dir=DIRNAME'
   1546      option then the compiler will search that directory within DIRNAME
   1547      for native system headers rather than the default `/usr/include'.
   1548 
   1549 `--with-headers'
   1550 `--with-headers=DIR'
   1551      Deprecated in favor of `--with-sysroot'.  Specifies that target
   1552      headers are available when building a cross compiler.  The DIR
   1553      argument specifies a directory which has the target include files.
   1554      These include files will be copied into the `gcc' install
   1555      directory.  _This option with the DIR argument is required_ when
   1556      building a cross compiler, if `PREFIX/TARGET/sys-include' doesn't
   1557      pre-exist.  If `PREFIX/TARGET/sys-include' does pre-exist, the DIR
   1558      argument may be omitted.  `fixincludes' will be run on these files
   1559      to make them compatible with GCC.
   1560 
   1561 `--without-headers'
   1562      Tells GCC not use any target headers from a libc when building a
   1563      cross compiler.  When crossing to GNU/Linux, you need the headers
   1564      so GCC can build the exception handling for libgcc.
   1565 
   1566 `--with-libs'
   1567 `--with-libs="DIR1 DIR2 ... DIRN"'
   1568      Deprecated in favor of `--with-sysroot'.  Specifies a list of
   1569      directories which contain the target runtime libraries.  These
   1570      libraries will be copied into the `gcc' install directory.  If the
   1571      directory list is omitted, this option has no effect.
   1572 
   1573 `--with-newlib'
   1574      Specifies that `newlib' is being used as the target C library.
   1575      This causes `__eprintf' to be omitted from `libgcc.a' on the
   1576      assumption that it will be provided by `newlib'.
   1577 
   1578 `--with-build-time-tools=DIR'
   1579      Specifies where to find the set of target tools (assembler,
   1580      linker, etc.)  that will be used while building GCC itself.  This
   1581      option can be useful if the directory layouts are different
   1582      between the system you are building GCC on, and the system where
   1583      you will deploy it.
   1584 
   1585      For example, on an `ia64-hp-hpux' system, you may have the GNU
   1586      assembler and linker in `/usr/bin', and the native tools in a
   1587      different path, and build a toolchain that expects to find the
   1588      native tools in `/usr/bin'.
   1589 
   1590      When you use this option, you should ensure that DIR includes
   1591      `ar', `as', `ld', `nm', `ranlib' and `strip' if necessary, and
   1592      possibly `objdump'.  Otherwise, GCC may use an inconsistent set of
   1593      tools.
   1594 
   1595 Java-Specific Options
   1596 ---------------------
   1597 
   1598 The following option applies to the build of the Java front end.
   1599 
   1600 `--disable-libgcj'
   1601      Specify that the run-time libraries used by GCJ should not be
   1602      built.  This is useful in case you intend to use GCJ with some
   1603      other run-time, or you're going to install it separately, or it
   1604      just happens not to build on your particular machine.  In general,
   1605      if the Java front end is enabled, the GCJ libraries will be
   1606      enabled too, unless they're known to not work on the target
   1607      platform.  If GCJ is enabled but `libgcj' isn't built, you may
   1608      need to port it; in this case, before modifying the top-level
   1609      `configure.in' so that `libgcj' is enabled by default on this
   1610      platform, you may use `--enable-libgcj' to override the default.
   1611 
   1612 
   1613    The following options apply to building `libgcj'.
   1614 
   1615 General Options
   1616 ...............
   1617 
   1618 `--enable-java-maintainer-mode'
   1619      By default the `libjava' build will not attempt to compile the
   1620      `.java' source files to `.class'.  Instead, it will use the
   1621      `.class' files from the source tree.  If you use this option you
   1622      must have executables named `ecj1' and `gjavah' in your path for
   1623      use by the build.  You must use this option if you intend to
   1624      modify any `.java' files in `libjava'.
   1625 
   1626 `--with-java-home=DIRNAME'
   1627      This `libjava' option overrides the default value of the
   1628      `java.home' system property.  It is also used to set
   1629      `sun.boot.class.path' to `DIRNAME/lib/rt.jar'.  By default
   1630      `java.home' is set to `PREFIX' and `sun.boot.class.path' to
   1631      `DATADIR/java/libgcj-VERSION.jar'.
   1632 
   1633 `--with-ecj-jar=FILENAME'
   1634      This option can be used to specify the location of an external jar
   1635      file containing the Eclipse Java compiler.  A specially modified
   1636      version of this compiler is used by `gcj' to parse `.java' source
   1637      files.  If this option is given, the `libjava' build will create
   1638      and install an `ecj1' executable which uses this jar file at
   1639      runtime.
   1640 
   1641      If this option is not given, but an `ecj.jar' file is found in the
   1642      topmost source tree at configure time, then the `libgcj' build
   1643      will create and install `ecj1', and will also install the
   1644      discovered `ecj.jar' into a suitable place in the install tree.
   1645 
   1646      If `ecj1' is not installed, then the user will have to supply one
   1647      on his path in order for `gcj' to properly parse `.java' source
   1648      files.  A suitable jar is available from
   1649      `ftp://sourceware.org/pub/java/'.
   1650 
   1651 `--disable-getenv-properties'
   1652      Don't set system properties from `GCJ_PROPERTIES'.
   1653 
   1654 `--enable-hash-synchronization'
   1655      Use a global hash table for monitor locks.  Ordinarily, `libgcj''s
   1656      `configure' script automatically makes the correct choice for this
   1657      option for your platform.  Only use this if you know you need the
   1658      library to be configured differently.
   1659 
   1660 `--enable-interpreter'
   1661      Enable the Java interpreter.  The interpreter is automatically
   1662      enabled by default on all platforms that support it.  This option
   1663      is really only useful if you want to disable the interpreter
   1664      (using `--disable-interpreter').
   1665 
   1666 `--disable-java-net'
   1667      Disable java.net.  This disables the native part of java.net only,
   1668      using non-functional stubs for native method implementations.
   1669 
   1670 `--disable-jvmpi'
   1671      Disable JVMPI support.
   1672 
   1673 `--disable-libgcj-bc'
   1674      Disable BC ABI compilation of certain parts of libgcj.  By default,
   1675      some portions of libgcj are compiled with `-findirect-dispatch'
   1676      and `-fno-indirect-classes', allowing them to be overridden at
   1677      run-time.
   1678 
   1679      If `--disable-libgcj-bc' is specified, libgcj is built without
   1680      these options.  This allows the compile-time linker to resolve
   1681      dependencies when statically linking to libgcj.  However it makes
   1682      it impossible to override the affected portions of libgcj at
   1683      run-time.
   1684 
   1685 `--enable-reduced-reflection'
   1686      Build most of libgcj with `-freduced-reflection'.  This reduces
   1687      the size of libgcj at the expense of not being able to do accurate
   1688      reflection on the classes it contains.  This option is safe if you
   1689      know that code using libgcj will never use reflection on the
   1690      standard runtime classes in libgcj (including using serialization,
   1691      RMI or CORBA).
   1692 
   1693 `--with-ecos'
   1694      Enable runtime eCos target support.
   1695 
   1696 `--without-libffi'
   1697      Don't use `libffi'.  This will disable the interpreter and JNI
   1698      support as well, as these require `libffi' to work.
   1699 
   1700 `--enable-libgcj-debug'
   1701      Enable runtime debugging code.
   1702 
   1703 `--enable-libgcj-multifile'
   1704      If specified, causes all `.java' source files to be compiled into
   1705      `.class' files in one invocation of `gcj'.  This can speed up
   1706      build time, but is more resource-intensive.  If this option is
   1707      unspecified or disabled, `gcj' is invoked once for each `.java'
   1708      file to compile into a `.class' file.
   1709 
   1710 `--with-libiconv-prefix=DIR'
   1711      Search for libiconv in `DIR/include' and `DIR/lib'.
   1712 
   1713 `--enable-sjlj-exceptions'
   1714      Force use of the `setjmp'/`longjmp'-based scheme for exceptions.
   1715      `configure' ordinarily picks the correct value based on the
   1716      platform.  Only use this option if you are sure you need a
   1717      different setting.
   1718 
   1719 `--with-system-zlib'
   1720      Use installed `zlib' rather than that included with GCC.
   1721 
   1722 `--with-win32-nlsapi=ansi, unicows or unicode'
   1723      Indicates how MinGW `libgcj' translates between UNICODE characters
   1724      and the Win32 API.
   1725 
   1726 `--enable-java-home'
   1727      If enabled, this creates a JPackage compatible SDK environment
   1728      during install.  Note that if -enable-java-home is used,
   1729      -with-arch-directory=ARCH must also be specified.
   1730 
   1731 `--with-arch-directory=ARCH'
   1732      Specifies the name to use for the `jre/lib/ARCH' directory in the
   1733      SDK environment created when -enable-java-home is passed. Typical
   1734      names for this directory include i386, amd64, ia64, etc.
   1735 
   1736 `--with-os-directory=DIR'
   1737      Specifies the OS directory for the SDK include directory. This is
   1738      set to auto detect, and is typically 'linux'.
   1739 
   1740 `--with-origin-name=NAME'
   1741      Specifies the JPackage origin name. This defaults to the 'gcj' in
   1742      java-1.5.0-gcj.
   1743 
   1744 `--with-arch-suffix=SUFFIX'
   1745      Specifies the suffix for the sdk directory. Defaults to the empty
   1746      string.  Examples include '.x86_64' in
   1747      'java-1.5.0-gcj-1.5.0.0.x86_64'.
   1748 
   1749 `--with-jvm-root-dir=DIR'
   1750      Specifies where to install the SDK. Default is $(prefix)/lib/jvm.
   1751 
   1752 `--with-jvm-jar-dir=DIR'
   1753      Specifies where to install jars. Default is
   1754      $(prefix)/lib/jvm-exports.
   1755 
   1756 `--with-python-dir=DIR'
   1757      Specifies where to install the Python modules used for
   1758      aot-compile. DIR should not include the prefix used in
   1759      installation. For example, if the Python modules are to be
   1760      installed in /usr/lib/python2.5/site-packages, then
   1761      -with-python-dir=/lib/python2.5/site-packages should be passed. If
   1762      this is not specified, then the Python modules are installed in
   1763      $(prefix)/share/python.
   1764 
   1765 `--enable-aot-compile-rpm'
   1766      Adds aot-compile-rpm to the list of installed scripts.
   1767 
   1768 `--enable-browser-plugin'
   1769      Build the gcjwebplugin web browser plugin.
   1770 
   1771     `ansi'
   1772           Use the single-byte `char' and the Win32 A functions natively,
   1773           translating to and from UNICODE when using these functions.
   1774           If unspecified, this is the default.
   1775 
   1776     `unicows'
   1777           Use the `WCHAR' and Win32 W functions natively.  Adds
   1778           `-lunicows' to `libgcj.spec' to link with `libunicows'.
   1779           `unicows.dll' needs to be deployed on Microsoft Windows 9X
   1780           machines running built executables.  `libunicows.a', an
   1781           open-source import library around Microsoft's `unicows.dll',
   1782           is obtained from `http://libunicows.sourceforge.net/', which
   1783           also gives details on getting `unicows.dll' from Microsoft.
   1784 
   1785     `unicode'
   1786           Use the `WCHAR' and Win32 W functions natively.  Does _not_
   1787           add `-lunicows' to `libgcj.spec'.  The built executables will
   1788           only run on Microsoft Windows NT and above.
   1789 
   1790 AWT-Specific Options
   1791 ....................
   1792 
   1793 `--with-x'
   1794      Use the X Window System.
   1795 
   1796 `--enable-java-awt=PEER(S)'
   1797      Specifies the AWT peer library or libraries to build alongside
   1798      `libgcj'.  If this option is unspecified or disabled, AWT will be
   1799      non-functional.  Current valid values are `gtk' and `xlib'.
   1800      Multiple libraries should be separated by a comma (i.e.
   1801      `--enable-java-awt=gtk,xlib').
   1802 
   1803 `--enable-gtk-cairo'
   1804      Build the cairo Graphics2D implementation on GTK.
   1805 
   1806 `--enable-java-gc=TYPE'
   1807      Choose garbage collector.  Defaults to `boehm' if unspecified.
   1808 
   1809 `--disable-gtktest'
   1810      Do not try to compile and run a test GTK+ program.
   1811 
   1812 `--disable-glibtest'
   1813      Do not try to compile and run a test GLIB program.
   1814 
   1815 `--with-libart-prefix=PFX'
   1816      Prefix where libart is installed (optional).
   1817 
   1818 `--with-libart-exec-prefix=PFX'
   1819      Exec prefix where libart is installed (optional).
   1820 
   1821 `--disable-libarttest'
   1822      Do not try to compile and run a test libart program.
   1823 
   1824 
   1825 Overriding `configure' test results
   1826 ...................................
   1827 
   1828 Sometimes, it might be necessary to override the result of some
   1829 `configure' test, for example in order to ease porting to a new system
   1830 or work around a bug in a test.  The toplevel `configure' script
   1831 provides three variables for this:
   1832 
   1833 `build_configargs'
   1834      The contents of this variable is passed to all build `configure'
   1835      scripts.
   1836 
   1837 `host_configargs'
   1838      The contents of this variable is passed to all host `configure'
   1839      scripts.
   1840 
   1841 `target_configargs'
   1842      The contents of this variable is passed to all target `configure'
   1843      scripts.
   1844 
   1845 
   1846    In order to avoid shell and `make' quoting issues for complex
   1847 overrides, you can pass a setting for `CONFIG_SITE' and set variables
   1848 in the site file.
   1849 
   1850 
   1851 File: gccinstall.info,  Node: Building,  Next: Testing,  Prev: Configuration,  Up: Installing GCC
   1852 
   1853 5 Building
   1854 **********
   1855 
   1856    Now that GCC is configured, you are ready to build the compiler and
   1857 runtime libraries.
   1858 
   1859    Some commands executed when making the compiler may fail (return a
   1860 nonzero status) and be ignored by `make'.  These failures, which are
   1861 often due to files that were not found, are expected, and can safely be
   1862 ignored.
   1863 
   1864    It is normal to have compiler warnings when compiling certain files.
   1865 Unless you are a GCC developer, you can generally ignore these warnings
   1866 unless they cause compilation to fail.  Developers should attempt to fix
   1867 any warnings encountered, however they can temporarily continue past
   1868 warnings-as-errors by specifying the configure flag `--disable-werror'.
   1869 
   1870    On certain old systems, defining certain environment variables such
   1871 as `CC' can interfere with the functioning of `make'.
   1872 
   1873    If you encounter seemingly strange errors when trying to build the
   1874 compiler in a directory other than the source directory, it could be
   1875 because you have previously configured the compiler in the source
   1876 directory.  Make sure you have done all the necessary preparations.
   1877 
   1878    If you build GCC on a BSD system using a directory stored in an old
   1879 System V file system, problems may occur in running `fixincludes' if the
   1880 System V file system doesn't support symbolic links.  These problems
   1881 result in a failure to fix the declaration of `size_t' in
   1882 `sys/types.h'.  If you find that `size_t' is a signed type and that
   1883 type mismatches occur, this could be the cause.
   1884 
   1885    The solution is not to use such a directory for building GCC.
   1886 
   1887    Similarly, when building from SVN or snapshots, or if you modify
   1888 `*.l' files, you need the Flex lexical analyzer generator installed.
   1889 If you do not modify `*.l' files, releases contain the Flex-generated
   1890 files and you do not need Flex installed to build them.  There is still
   1891 one Flex-based lexical analyzer (part of the build machinery, not of
   1892 GCC itself) that is used even if you only build the C front end.
   1893 
   1894    When building from SVN or snapshots, or if you modify Texinfo
   1895 documentation, you need version 4.7 or later of Texinfo installed if you
   1896 want Info documentation to be regenerated.  Releases contain Info
   1897 documentation pre-built for the unmodified documentation in the release.
   1898 
   1899 5.1 Building a native compiler
   1900 ==============================
   1901 
   1902 For a native build, the default configuration is to perform a 3-stage
   1903 bootstrap of the compiler when `make' is invoked.  This will build the
   1904 entire GCC system and ensure that it compiles itself correctly.  It can
   1905 be disabled with the `--disable-bootstrap' parameter to `configure',
   1906 but bootstrapping is suggested because the compiler will be tested more
   1907 completely and could also have better performance.
   1908 
   1909    The bootstrapping process will complete the following steps:
   1910 
   1911    * Build tools necessary to build the compiler.
   1912 
   1913    * Perform a 3-stage bootstrap of the compiler.  This includes
   1914      building three times the target tools for use by the compiler such
   1915      as binutils (bfd, binutils, gas, gprof, ld, and opcodes) if they
   1916      have been individually linked or moved into the top level GCC
   1917      source tree before configuring.
   1918 
   1919    * Perform a comparison test of the stage2 and stage3 compilers.
   1920 
   1921    * Build runtime libraries using the stage3 compiler from the
   1922      previous step.
   1923 
   1924 
   1925    If you are short on disk space you might consider `make
   1926 bootstrap-lean' instead.  The sequence of compilation is the same
   1927 described above, but object files from the stage1 and stage2 of the
   1928 3-stage bootstrap of the compiler are deleted as soon as they are no
   1929 longer needed.
   1930 
   1931    If you wish to use non-default GCC flags when compiling the stage2
   1932 and stage3 compilers, set `BOOT_CFLAGS' on the command line when doing
   1933 `make'.  For example, if you want to save additional space during the
   1934 bootstrap and in the final installation as well, you can build the
   1935 compiler binaries without debugging information as in the following
   1936 example.  This will save roughly 40% of disk space both for the
   1937 bootstrap and the final installation.  (Libraries will still contain
   1938 debugging information.)
   1939 
   1940      make BOOT_CFLAGS='-O' bootstrap
   1941 
   1942    You can place non-default optimization flags into `BOOT_CFLAGS'; they
   1943 are less well tested here than the default of `-g -O2', but should
   1944 still work.  In a few cases, you may find that you need to specify
   1945 special flags such as `-msoft-float' here to complete the bootstrap; or,
   1946 if the native compiler miscompiles the stage1 compiler, you may need to
   1947 work around this, by choosing `BOOT_CFLAGS' to avoid the parts of the
   1948 stage1 compiler that were miscompiled, or by using `make bootstrap4' to
   1949 increase the number of stages of bootstrap.
   1950 
   1951    `BOOT_CFLAGS' does not apply to bootstrapped target libraries.
   1952 Since these are always compiled with the compiler currently being
   1953 bootstrapped, you can use `CFLAGS_FOR_TARGET' to modify their
   1954 compilation flags, as for non-bootstrapped target libraries.  Again, if
   1955 the native compiler miscompiles the stage1 compiler, you may need to
   1956 work around this by avoiding non-working parts of the stage1 compiler.
   1957 Use `STAGE1_TFLAGS' to this end.
   1958 
   1959    If you used the flag `--enable-languages=...' to restrict the
   1960 compilers to be built, only those you've actually enabled will be
   1961 built.  This will of course only build those runtime libraries, for
   1962 which the particular compiler has been built.  Please note, that
   1963 re-defining `LANGUAGES' when calling `make' *does not* work anymore!
   1964 
   1965    If the comparison of stage2 and stage3 fails, this normally indicates
   1966 that the stage2 compiler has compiled GCC incorrectly, and is therefore
   1967 a potentially serious bug which you should investigate and report.  (On
   1968 a few systems, meaningful comparison of object files is impossible; they
   1969 always appear "different".  If you encounter this problem, you will
   1970 need to disable comparison in the `Makefile'.)
   1971 
   1972    If you do not want to bootstrap your compiler, you can configure with
   1973 `--disable-bootstrap'.  In particular cases, you may want to bootstrap
   1974 your compiler even if the target system is not the same as the one you
   1975 are building on: for example, you could build a
   1976 `powerpc-unknown-linux-gnu' toolchain on a
   1977 `powerpc64-unknown-linux-gnu' host.  In this case, pass
   1978 `--enable-bootstrap' to the configure script.
   1979 
   1980    `BUILD_CONFIG' can be used to bring in additional customization to
   1981 the build.  It can be set to a whitespace-separated list of names.  For
   1982 each such `NAME', top-level `config/`NAME'.mk' will be included by the
   1983 top-level `Makefile', bringing in any settings it contains.  The
   1984 default `BUILD_CONFIG' can be set using the configure option
   1985 `--with-build-config=`NAME'...'.  Some examples of supported build
   1986 configurations are:
   1987 
   1988 `bootstrap-O1'
   1989      Removes any `-O'-started option from `BOOT_CFLAGS', and adds `-O1'
   1990      to it.  `BUILD_CONFIG=bootstrap-O1' is equivalent to
   1991      `BOOT_CFLAGS='-g -O1''.
   1992 
   1993 `bootstrap-O3'
   1994      Analogous to `bootstrap-O1'.
   1995 
   1996 `bootstrap-lto'
   1997      Enables Link-Time Optimization for host tools during bootstrapping.
   1998      `BUILD_CONFIG=bootstrap-lto' is equivalent to adding `-flto' to
   1999      `BOOT_CFLAGS'.
   2000 
   2001 `bootstrap-debug'
   2002      Verifies that the compiler generates the same executable code,
   2003      whether or not it is asked to emit debug information.  To this
   2004      end, this option builds stage2 host programs without debug
   2005      information, and uses `contrib/compare-debug' to compare them with
   2006      the stripped stage3 object files.  If `BOOT_CFLAGS' is overridden
   2007      so as to not enable debug information, stage2 will have it, and
   2008      stage3 won't.  This option is enabled by default when GCC
   2009      bootstrapping is enabled, if `strip' can turn object files
   2010      compiled with and without debug info into identical object files.
   2011      In addition to better test coverage, this option makes default
   2012      bootstraps faster and leaner.
   2013 
   2014 `bootstrap-debug-big'
   2015      Rather than comparing stripped object files, as in
   2016      `bootstrap-debug', this option saves internal compiler dumps
   2017      during stage2 and stage3 and compares them as well, which helps
   2018      catch additional potential problems, but at a great cost in terms
   2019      of disk space.  It can be specified in addition to
   2020      `bootstrap-debug'.
   2021 
   2022 `bootstrap-debug-lean'
   2023      This option saves disk space compared with `bootstrap-debug-big',
   2024      but at the expense of some recompilation.  Instead of saving the
   2025      dumps of stage2 and stage3 until the final compare, it uses
   2026      `-fcompare-debug' to generate, compare and remove the dumps during
   2027      stage3, repeating the compilation that already took place in
   2028      stage2, whose dumps were not saved.
   2029 
   2030 `bootstrap-debug-lib'
   2031      This option tests executable code invariance over debug information
   2032      generation on target libraries, just like `bootstrap-debug-lean'
   2033      tests it on host programs.  It builds stage3 libraries with
   2034      `-fcompare-debug', and it can be used along with any of the
   2035      `bootstrap-debug' options above.
   2036 
   2037      There aren't `-lean' or `-big' counterparts to this option because
   2038      most libraries are only build in stage3, so bootstrap compares
   2039      would not get significant coverage.  Moreover, the few libraries
   2040      built in stage2 are used in stage3 host programs, so we wouldn't
   2041      want to compile stage2 libraries with different options for
   2042      comparison purposes.
   2043 
   2044 `bootstrap-debug-ckovw'
   2045      Arranges for error messages to be issued if the compiler built on
   2046      any stage is run without the option `-fcompare-debug'.  This is
   2047      useful to verify the full `-fcompare-debug' testing coverage.  It
   2048      must be used along with `bootstrap-debug-lean' and
   2049      `bootstrap-debug-lib'.
   2050 
   2051 `bootstrap-time'
   2052      Arranges for the run time of each program started by the GCC
   2053      driver, built in any stage, to be logged to `time.log', in the top
   2054      level of the build tree.
   2055 
   2056 
   2057 5.2 Building a cross compiler
   2058 =============================
   2059 
   2060 When building a cross compiler, it is not generally possible to do a
   2061 3-stage bootstrap of the compiler.  This makes for an interesting
   2062 problem as parts of GCC can only be built with GCC.
   2063 
   2064    To build a cross compiler, we recommend first building and
   2065 installing a native compiler.  You can then use the native GCC compiler
   2066 to build the cross compiler.  The installed native compiler needs to be
   2067 GCC version 2.95 or later.
   2068 
   2069    If the cross compiler is to be built with support for the Java
   2070 programming language and the ability to compile .java source files is
   2071 desired, the installed native compiler used to build the cross compiler
   2072 needs to be the same GCC version as the cross compiler.  In addition
   2073 the cross compiler needs to be configured with `--with-ecj-jar=...'.
   2074 
   2075    Assuming you have already installed a native copy of GCC and
   2076 configured your cross compiler, issue the command `make', which
   2077 performs the following steps:
   2078 
   2079    * Build host tools necessary to build the compiler.
   2080 
   2081    * Build target tools for use by the compiler such as binutils (bfd,
   2082      binutils, gas, gprof, ld, and opcodes) if they have been
   2083      individually linked or moved into the top level GCC source tree
   2084      before configuring.
   2085 
   2086    * Build the compiler (single stage only).
   2087 
   2088    * Build runtime libraries using the compiler from the previous step.
   2089 
   2090    Note that if an error occurs in any step the make process will exit.
   2091 
   2092    If you are not building GNU binutils in the same source tree as GCC,
   2093 you will need a cross-assembler and cross-linker installed before
   2094 configuring GCC.  Put them in the directory `PREFIX/TARGET/bin'.  Here
   2095 is a table of the tools you should put in this directory:
   2096 
   2097 `as'
   2098      This should be the cross-assembler.
   2099 
   2100 `ld'
   2101      This should be the cross-linker.
   2102 
   2103 `ar'
   2104      This should be the cross-archiver: a program which can manipulate
   2105      archive files (linker libraries) in the target machine's format.
   2106 
   2107 `ranlib'
   2108      This should be a program to construct a symbol table in an archive
   2109      file.
   2110 
   2111    The installation of GCC will find these programs in that directory,
   2112 and copy or link them to the proper place to for the cross-compiler to
   2113 find them when run later.
   2114 
   2115    The easiest way to provide these files is to build the Binutils
   2116 package.  Configure it with the same `--host' and `--target' options
   2117 that you use for configuring GCC, then build and install them.  They
   2118 install their executables automatically into the proper directory.
   2119 Alas, they do not support all the targets that GCC supports.
   2120 
   2121    If you are not building a C library in the same source tree as GCC,
   2122 you should also provide the target libraries and headers before
   2123 configuring GCC, specifying the directories with `--with-sysroot' or
   2124 `--with-headers' and `--with-libs'.  Many targets also require "start
   2125 files" such as `crt0.o' and `crtn.o' which are linked into each
   2126 executable.  There may be several alternatives for `crt0.o', for use
   2127 with profiling or other compilation options.  Check your target's
   2128 definition of `STARTFILE_SPEC' to find out what start files it uses.
   2129 
   2130 5.3 Building in parallel
   2131 ========================
   2132 
   2133 GNU Make 3.80 and above, which is necessary to build GCC, support
   2134 building in parallel.  To activate this, you can use `make -j 2'
   2135 instead of `make'.  You can also specify a bigger number, and in most
   2136 cases using a value greater than the number of processors in your
   2137 machine will result in fewer and shorter I/O latency hits, thus
   2138 improving overall throughput; this is especially true for slow drives
   2139 and network filesystems.
   2140 
   2141 5.4 Building the Ada compiler
   2142 =============================
   2143 
   2144 In order to build GNAT, the Ada compiler, you need a working GNAT
   2145 compiler (GCC version 4.0 or later).  This includes GNAT tools such as
   2146 `gnatmake' and `gnatlink', since the Ada front end is written in Ada and
   2147 uses some GNAT-specific extensions.
   2148 
   2149    In order to build a cross compiler, it is suggested to install the
   2150 new compiler as native first, and then use it to build the cross
   2151 compiler.
   2152 
   2153    `configure' does not test whether the GNAT installation works and
   2154 has a sufficiently recent version; if too old a GNAT version is
   2155 installed, the build will fail unless `--enable-languages' is used to
   2156 disable building the Ada front end.
   2157 
   2158    `ADA_INCLUDE_PATH' and `ADA_OBJECT_PATH' environment variables must
   2159 not be set when building the Ada compiler, the Ada tools, or the Ada
   2160 runtime libraries. You can check that your build environment is clean
   2161 by verifying that `gnatls -v' lists only one explicit path in each
   2162 section.
   2163 
   2164 5.5 Building with profile feedback
   2165 ==================================
   2166 
   2167 It is possible to use profile feedback to optimize the compiler itself.
   2168 This should result in a faster compiler binary.  Experiments done on
   2169 x86 using gcc 3.3 showed approximately 7 percent speedup on compiling C
   2170 programs.  To bootstrap the compiler with profile feedback, use `make
   2171 profiledbootstrap'.
   2172 
   2173    When `make profiledbootstrap' is run, it will first build a `stage1'
   2174 compiler.  This compiler is used to build a `stageprofile' compiler
   2175 instrumented to collect execution counts of instruction and branch
   2176 probabilities.  Then runtime libraries are compiled with profile
   2177 collected.  Finally a `stagefeedback' compiler is built using the
   2178 information collected.
   2179 
   2180    Unlike standard bootstrap, several additional restrictions apply.
   2181 The compiler used to build `stage1' needs to support a 64-bit integral
   2182 type.  It is recommended to only use GCC for this.  Also parallel make
   2183 is currently not supported since collisions in profile collecting may
   2184 occur.
   2185 
   2186 
   2187 File: gccinstall.info,  Node: Testing,  Next: Final install,  Prev: Building,  Up: Installing GCC
   2188 
   2189 6 Installing GCC: Testing
   2190 *************************
   2191 
   2192    Before you install GCC, we encourage you to run the testsuites and to
   2193 compare your results with results from a similar configuration that have
   2194 been submitted to the gcc-testresults mailing list.  Some of these
   2195 archived results are linked from the build status lists at
   2196 `http://gcc.gnu.org/buildstat.html', although not everyone who reports
   2197 a successful build runs the testsuites and submits the results.  This
   2198 step is optional and may require you to download additional software,
   2199 but it can give you confidence in your new GCC installation or point out
   2200 problems before you install and start using your new GCC.
   2201 
   2202    First, you must have downloaded the testsuites.  These are part of
   2203 the full distribution, but if you downloaded the "core" compiler plus
   2204 any front ends, you must download the testsuites separately.
   2205 
   2206    Second, you must have the testing tools installed.  This includes
   2207 DejaGnu, Tcl, and Expect; the DejaGnu site has links to these.
   2208 
   2209    If the directories where `runtest' and `expect' were installed are
   2210 not in the `PATH', you may need to set the following environment
   2211 variables appropriately, as in the following example (which assumes
   2212 that DejaGnu has been installed under `/usr/local'):
   2213 
   2214      TCL_LIBRARY = /usr/local/share/tcl8.0
   2215      DEJAGNULIBS = /usr/local/share/dejagnu
   2216 
   2217    (On systems such as Cygwin, these paths are required to be actual
   2218 paths, not mounts or links; presumably this is due to some lack of
   2219 portability in the DejaGnu code.)
   2220 
   2221    Finally, you can run the testsuite (which may take a long time):
   2222      cd OBJDIR; make -k check
   2223 
   2224    This will test various components of GCC, such as compiler front
   2225 ends and runtime libraries.  While running the testsuite, DejaGnu might
   2226 emit some harmless messages resembling `WARNING: Couldn't find the
   2227 global config file.' or `WARNING: Couldn't find tool init file' that
   2228 can be ignored.
   2229 
   2230    If you are testing a cross-compiler, you may want to run the
   2231 testsuite on a simulator as described at
   2232 `http://gcc.gnu.org/simtest-howto.html'.
   2233 
   2234 6.1 How can you run the testsuite on selected tests?
   2235 ====================================================
   2236 
   2237 In order to run sets of tests selectively, there are targets `make
   2238 check-gcc' and `make check-g++' in the `gcc' subdirectory of the object
   2239 directory.  You can also just run `make check' in a subdirectory of the
   2240 object directory.
   2241 
   2242    A more selective way to just run all `gcc' execute tests in the
   2243 testsuite is to use
   2244 
   2245      make check-gcc RUNTESTFLAGS="execute.exp OTHER-OPTIONS"
   2246 
   2247    Likewise, in order to run only the `g++' "old-deja" tests in the
   2248 testsuite with filenames matching `9805*', you would use
   2249 
   2250      make check-g++ RUNTESTFLAGS="old-deja.exp=9805* OTHER-OPTIONS"
   2251 
   2252    The `*.exp' files are located in the testsuite directories of the GCC
   2253 source, the most important ones being `compile.exp', `execute.exp',
   2254 `dg.exp' and `old-deja.exp'.  To get a list of the possible `*.exp'
   2255 files, pipe the output of `make check' into a file and look at the
   2256 `Running ...  .exp' lines.
   2257 
   2258 6.2 Passing options and running multiple testsuites
   2259 ===================================================
   2260 
   2261 You can pass multiple options to the testsuite using the
   2262 `--target_board' option of DejaGNU, either passed as part of
   2263 `RUNTESTFLAGS', or directly to `runtest' if you prefer to work outside
   2264 the makefiles.  For example,
   2265 
   2266      make check-g++ RUNTESTFLAGS="--target_board=unix/-O3/-fmerge-constants"
   2267 
   2268    will run the standard `g++' testsuites ("unix" is the target name
   2269 for a standard native testsuite situation), passing `-O3
   2270 -fmerge-constants' to the compiler on every test, i.e., slashes
   2271 separate options.
   2272 
   2273    You can run the testsuites multiple times using combinations of
   2274 options with a syntax similar to the brace expansion of popular shells:
   2275 
   2276      ..."--target_board=arm-sim\{-mhard-float,-msoft-float\}\{-O1,-O2,-O3,\}"
   2277 
   2278    (Note the empty option caused by the trailing comma in the final
   2279 group.)  The following will run each testsuite eight times using the
   2280 `arm-sim' target, as if you had specified all possible combinations
   2281 yourself:
   2282 
   2283      --target_board=arm-sim/-mhard-float/-O1
   2284      --target_board=arm-sim/-mhard-float/-O2
   2285      --target_board=arm-sim/-mhard-float/-O3
   2286      --target_board=arm-sim/-mhard-float
   2287      --target_board=arm-sim/-msoft-float/-O1
   2288      --target_board=arm-sim/-msoft-float/-O2
   2289      --target_board=arm-sim/-msoft-float/-O3
   2290      --target_board=arm-sim/-msoft-float
   2291 
   2292    They can be combined as many times as you wish, in arbitrary ways.
   2293 This list:
   2294 
   2295      ..."--target_board=unix/-Wextra\{-O3,-fno-strength\}\{-fomit-frame,\}"
   2296 
   2297    will generate four combinations, all involving `-Wextra'.
   2298 
   2299    The disadvantage to this method is that the testsuites are run in
   2300 serial, which is a waste on multiprocessor systems.  For users with GNU
   2301 Make and a shell which performs brace expansion, you can run the
   2302 testsuites in parallel by having the shell perform the combinations and
   2303 `make' do the parallel runs.  Instead of using `--target_board', use a
   2304 special makefile target:
   2305 
   2306      make -jN check-TESTSUITE//TEST-TARGET/OPTION1/OPTION2/...
   2307 
   2308    For example,
   2309 
   2310      make -j3 check-gcc//sh-hms-sim/{-m1,-m2,-m3,-m3e,-m4}/{,-nofpu}
   2311 
   2312    will run three concurrent "make-gcc" testsuites, eventually testing
   2313 all ten combinations as described above.  Note that this is currently
   2314 only supported in the `gcc' subdirectory.  (To see how this works, try
   2315 typing `echo' before the example given here.)
   2316 
   2317 6.3 Additional testing for Java Class Libraries
   2318 ===============================================
   2319 
   2320 The Java runtime tests can be executed via `make check' in the
   2321 `TARGET/libjava/testsuite' directory in the build tree.
   2322 
   2323    The Mauve Project provides a suite of tests for the Java Class
   2324 Libraries.  This suite can be run as part of libgcj testing by placing
   2325 the Mauve tree within the libjava testsuite at
   2326 `libjava/testsuite/libjava.mauve/mauve', or by specifying the location
   2327 of that tree when invoking `make', as in `make MAUVEDIR=~/mauve check'.
   2328 
   2329 6.4 How to interpret test results
   2330 =================================
   2331 
   2332 The result of running the testsuite are various `*.sum' and `*.log'
   2333 files in the testsuite subdirectories.  The `*.log' files contain a
   2334 detailed log of the compiler invocations and the corresponding results,
   2335 the `*.sum' files summarize the results.  These summaries contain
   2336 status codes for all tests:
   2337 
   2338    * PASS: the test passed as expected
   2339 
   2340    * XPASS: the test unexpectedly passed
   2341 
   2342    * FAIL: the test unexpectedly failed
   2343 
   2344    * XFAIL: the test failed as expected
   2345 
   2346    * UNSUPPORTED: the test is not supported on this platform
   2347 
   2348    * ERROR: the testsuite detected an error
   2349 
   2350    * WARNING: the testsuite detected a possible problem
   2351 
   2352    It is normal for some tests to report unexpected failures.  At the
   2353 current time the testing harness does not allow fine grained control
   2354 over whether or not a test is expected to fail.  This problem should be
   2355 fixed in future releases.
   2356 
   2357 6.5 Submitting test results
   2358 ===========================
   2359 
   2360 If you want to report the results to the GCC project, use the
   2361 `contrib/test_summary' shell script.  Start it in the OBJDIR with
   2362 
   2363      SRCDIR/contrib/test_summary -p your_commentary.txt \
   2364          -m gcc-testresults (a] gcc.gnu.org |sh
   2365 
   2366    This script uses the `Mail' program to send the results, so make
   2367 sure it is in your `PATH'.  The file `your_commentary.txt' is prepended
   2368 to the testsuite summary and should contain any special remarks you
   2369 have on your results or your build environment.  Please do not edit the
   2370 testsuite result block or the subject line, as these messages may be
   2371 automatically processed.
   2372 
   2373 
   2374 File: gccinstall.info,  Node: Final install,  Prev: Testing,  Up: Installing GCC
   2375 
   2376 7 Installing GCC: Final installation
   2377 ************************************
   2378 
   2379    Now that GCC has been built (and optionally tested), you can install
   2380 it with
   2381      cd OBJDIR && make install
   2382 
   2383    We strongly recommend to install into a target directory where there
   2384 is no previous version of GCC present.  Also, the GNAT runtime should
   2385 not be stripped, as this would break certain features of the debugger
   2386 that depend on this debugging information (catching Ada exceptions for
   2387 instance).
   2388 
   2389    That step completes the installation of GCC; user level binaries can
   2390 be found in `PREFIX/bin' where PREFIX is the value you specified with
   2391 the `--prefix' to configure (or `/usr/local' by default).  (If you
   2392 specified `--bindir', that directory will be used instead; otherwise,
   2393 if you specified `--exec-prefix', `EXEC-PREFIX/bin' will be used.)
   2394 Headers for the C++ and Java libraries are installed in
   2395 `PREFIX/include'; libraries in `LIBDIR' (normally `PREFIX/lib');
   2396 internal parts of the compiler in `LIBDIR/gcc' and `LIBEXECDIR/gcc';
   2397 documentation in info format in `INFODIR' (normally `PREFIX/info').
   2398 
   2399    When installing cross-compilers, GCC's executables are not only
   2400 installed into `BINDIR', that is, `EXEC-PREFIX/bin', but additionally
   2401 into `EXEC-PREFIX/TARGET-ALIAS/bin', if that directory exists.
   2402 Typically, such "tooldirs" hold target-specific binutils, including
   2403 assembler and linker.
   2404 
   2405    Installation into a temporary staging area or into a `chroot' jail
   2406 can be achieved with the command
   2407 
   2408      make DESTDIR=PATH-TO-ROOTDIR install
   2409 
   2410 where PATH-TO-ROOTDIR is the absolute path of a directory relative to
   2411 which all installation paths will be interpreted.  Note that the
   2412 directory specified by `DESTDIR' need not exist yet; it will be created
   2413 if necessary.
   2414 
   2415    There is a subtle point with tooldirs and `DESTDIR': If you relocate
   2416 a cross-compiler installation with e.g. `DESTDIR=ROOTDIR', then the
   2417 directory `ROOTDIR/EXEC-PREFIX/TARGET-ALIAS/bin' will be filled with
   2418 duplicated GCC executables only if it already exists, it will not be
   2419 created otherwise.  This is regarded as a feature, not as a bug,
   2420 because it gives slightly more control to the packagers using the
   2421 `DESTDIR' feature.
   2422 
   2423    You can install stripped programs and libraries with
   2424 
   2425      make install-strip
   2426 
   2427    If you are bootstrapping a released version of GCC then please
   2428 quickly review the build status page for your release, available from
   2429 `http://gcc.gnu.org/buildstat.html'.  If your system is not listed for
   2430 the version of GCC that you built, send a note to <gcc (a] gcc.gnu.org>
   2431 indicating that you successfully built and installed GCC.  Include the
   2432 following information:
   2433 
   2434    * Output from running `SRCDIR/config.guess'.  Do not send that file
   2435      itself, just the one-line output from running it.
   2436 
   2437    * The output of `gcc -v' for your newly installed `gcc'.  This tells
   2438      us which version of GCC you built and the options you passed to
   2439      configure.
   2440 
   2441    * Whether you enabled all languages or a subset of them.  If you
   2442      used a full distribution then this information is part of the
   2443      configure options in the output of `gcc -v', but if you downloaded
   2444      the "core" compiler plus additional front ends then it isn't
   2445      apparent which ones you built unless you tell us about it.
   2446 
   2447    * If the build was for GNU/Linux, also include:
   2448         * The distribution name and version (e.g., Red Hat 7.1 or
   2449           Debian 2.2.3); this information should be available from
   2450           `/etc/issue'.
   2451 
   2452         * The version of the Linux kernel, available from `uname
   2453           --version' or `uname -a'.
   2454 
   2455         * The version of glibc you used; for RPM-based systems like Red
   2456           Hat, Mandrake, and SuSE type `rpm -q glibc' to get the glibc
   2457           version, and on systems like Debian and Progeny use `dpkg -l
   2458           libc6'.
   2459      For other systems, you can include similar information if you
   2460      think it is relevant.
   2461 
   2462    * Any other information that you think would be useful to people
   2463      building GCC on the same configuration.  The new entry in the
   2464      build status list will include a link to the archived copy of your
   2465      message.
   2466 
   2467    We'd also like to know if the *note host/target specific
   2468 installation notes: Specific.  didn't include your host/target
   2469 information or if that information is incomplete or out of date.  Send
   2470 a note to <gcc (a] gcc.gnu.org> detailing how the information should be
   2471 changed.
   2472 
   2473    If you find a bug, please report it following the bug reporting
   2474 guidelines.
   2475 
   2476    If you want to print the GCC manuals, do `cd OBJDIR; make dvi'.  You
   2477 will need to have `texi2dvi' (version at least 4.7) and TeX installed.
   2478 This creates a number of `.dvi' files in subdirectories of `OBJDIR';
   2479 these may be converted for printing with programs such as `dvips'.
   2480 Alternately, by using `make pdf' in place of `make dvi', you can create
   2481 documentation in the form of `.pdf' files; this requires `texi2pdf',
   2482 which is included with Texinfo version 4.8 and later.  You can also buy
   2483 printed manuals from the Free Software Foundation, though such manuals
   2484 may not be for the most recent version of GCC.
   2485 
   2486    If you would like to generate online HTML documentation, do `cd
   2487 OBJDIR; make html' and HTML will be generated for the gcc manuals in
   2488 `OBJDIR/gcc/HTML'.
   2489 
   2490 
   2491 File: gccinstall.info,  Node: Binaries,  Next: Specific,  Prev: Installing GCC,  Up: Top
   2492 
   2493 8 Installing GCC: Binaries
   2494 **************************
   2495 
   2496    We are often asked about pre-compiled versions of GCC.  While we
   2497 cannot provide these for all platforms, below you'll find links to
   2498 binaries for various platforms where creating them by yourself is not
   2499 easy due to various reasons.
   2500 
   2501    Please note that we did not create these binaries, nor do we support
   2502 them.  If you have any problems installing them, please contact their
   2503 makers.
   2504 
   2505    * AIX:
   2506         * Bull's Freeware and Shareware Archive for AIX;
   2507 
   2508         * Hudson Valley Community College Open Source Software for IBM
   2509           System p;
   2510 
   2511         * AIX 5L and 6 Open Source Packages.
   2512 
   2513    * DOS--DJGPP.
   2514 
   2515    * Renesas H8/300[HS]--GNU Development Tools for the Renesas
   2516      H8/300[HS] Series.
   2517 
   2518    * HP-UX:
   2519         * HP-UX Porting Center;
   2520 
   2521         * Binaries for HP-UX 11.00 at Aachen University of Technology.
   2522 
   2523    * SCO OpenServer/Unixware.
   2524 
   2525    * Solaris 2 (SPARC, Intel):
   2526         * Sunfreeware
   2527 
   2528         * Blastwave
   2529 
   2530         * OpenCSW
   2531 
   2532         * TGCware
   2533 
   2534    * SGI IRIX:
   2535         * Nekoware
   2536 
   2537         * TGCware
   2538 
   2539    * Microsoft Windows:
   2540         * The Cygwin project;
   2541 
   2542         * The MinGW project.
   2543 
   2544    * The Written Word offers binaries for AIX 4.3.3, 5.1 and 5.2, IRIX
   2545      6.5, Tru64 UNIX 4.0D and 5.1, GNU/Linux (i386), HP-UX 10.20,
   2546      11.00, and 11.11, and Solaris/SPARC 2.5.1, 2.6, 7, 8, 9 and 10.
   2547 
   2548    * OpenPKG offers binaries for quite a number of platforms.
   2549 
   2550    * The GFortran Wiki has links to GNU Fortran binaries for several
   2551      platforms.
   2552 
   2553 
   2554 File: gccinstall.info,  Node: Specific,  Next: Old,  Prev: Binaries,  Up: Top
   2555 
   2556 9 Host/target specific installation notes for GCC
   2557 *************************************************
   2558 
   2559    Please read this document carefully _before_ installing the GNU
   2560 Compiler Collection on your machine.
   2561 
   2562    Note that this list of install notes is _not_ a list of supported
   2563 hosts or targets.  Not all supported hosts and targets are listed here,
   2564 only the ones that require host-specific or target-specific information
   2565 are.
   2566 
   2567 alpha*-*-*
   2568 ==========
   2569 
   2570 This section contains general configuration information for all
   2571 alpha-based platforms using ELF (in particular, ignore this section for
   2572 DEC OSF/1, Digital UNIX and Tru64 UNIX).  In addition to reading this
   2573 section, please read all other sections that match your target.
   2574 
   2575    We require binutils 2.11.2 or newer.  Previous binutils releases had
   2576 a number of problems with DWARF 2 debugging information, not the least
   2577 of which is incorrect linking of shared libraries.
   2578 
   2579 alpha*-dec-osf5.1
   2580 =================
   2581 
   2582 Systems using processors that implement the DEC Alpha architecture and
   2583 are running the DEC/Compaq/HP Unix (DEC OSF/1, Digital UNIX, or
   2584 Compaq/HP Tru64 UNIX) operating system, for example the DEC Alpha AXP
   2585 systems.
   2586 
   2587    As of GCC 3.2, versions before `alpha*-dec-osf4' are no longer
   2588 supported.  (These are the versions which identify themselves as DEC
   2589 OSF/1.)  As of GCC 4.6, support for Tru64 UNIX V4.0 and V5.0 has been
   2590 removed.
   2591 
   2592    On Tru64 UNIX, virtual memory exhausted bootstrap failures may be
   2593 fixed by reconfiguring Kernel Virtual Memory and Swap parameters per
   2594 the `/usr/sbin/sys_check' Tuning Suggestions, or applying the patch in
   2595 `http://gcc.gnu.org/ml/gcc/2002-08/msg00822.html'.  Depending on the OS
   2596 version used, you need a data segment size between 512 MB and 1 GB, so
   2597 simply use `ulimit -Sd unlimited'.
   2598 
   2599    As of GNU binutils 2.21, neither GNU `as' nor GNU `ld' are supported
   2600 on Tru64 UNIX, so you must not configure GCC with `--with-gnu-as' or
   2601 `--with-gnu-ld'.
   2602 
   2603    GCC writes a `.verstamp' directive to the assembler output file
   2604 unless it is built as a cross-compiler.  It gets the version to use from
   2605 the system header file `/usr/include/stamp.h'.  If you install a new
   2606 version of Tru64 UNIX, you should rebuild GCC to pick up the new version
   2607 stamp.
   2608 
   2609    GCC now supports both the native (ECOFF) debugging format used by DBX
   2610 and GDB and an encapsulated STABS format for use only with GDB.  See the
   2611 discussion of the `--with-stabs' option of `configure' above for more
   2612 information on these formats and how to select them.
   2613 
   2614    There is a bug in DEC's assembler that produces incorrect line
   2615 numbers for ECOFF format when the `.align' directive is used.  To work
   2616 around this problem, GCC will not emit such alignment directives while
   2617 writing ECOFF format debugging information even if optimization is
   2618 being performed.  Unfortunately, this has the very undesirable
   2619 side-effect that code addresses when `-O' is specified are different
   2620 depending on whether or not `-g' is also specified.
   2621 
   2622    To avoid this behavior, specify `-gstabs+' and use GDB instead of
   2623 DBX.  DEC is now aware of this problem with the assembler and hopes to
   2624 provide a fix shortly.
   2625 
   2626 arc-*-elf
   2627 =========
   2628 
   2629 Argonaut ARC processor.  This configuration is intended for embedded
   2630 systems.
   2631 
   2632 arm-*-elf
   2633 =========
   2634 
   2635 ARM-family processors.  Subtargets that use the ELF object format
   2636 require GNU binutils 2.13 or newer.  Such subtargets include:
   2637 `arm-*-freebsd', `arm-*-netbsdelf', `arm-*-*linux' and `arm-*-rtems'.
   2638 
   2639 avr
   2640 ===
   2641 
   2642 ATMEL AVR-family micro controllers.  These are used in embedded
   2643 applications.  There are no standard Unix configurations.  *Note AVR
   2644 Options: (gcc)AVR Options, for the list of supported MCU types.
   2645 
   2646    Use `configure --target=avr --enable-languages="c"' to configure GCC.
   2647 
   2648    Further installation notes and other useful information about AVR
   2649 tools can also be obtained from:
   2650 
   2651    * http://www.nongnu.org/avr/
   2652 
   2653    * http://www.amelek.gda.pl/avr/
   2654 
   2655    We _strongly_ recommend using binutils 2.13 or newer.
   2656 
   2657    The following error:
   2658      Error: register required
   2659 
   2660    indicates that you should upgrade to a newer version of the binutils.
   2661 
   2662 Blackfin
   2663 ========
   2664 
   2665 The Blackfin processor, an Analog Devices DSP.  *Note Blackfin Options:
   2666 (gcc)Blackfin Options,
   2667 
   2668    More information, and a version of binutils with support for this
   2669 processor, is available at `http://blackfin.uclinux.org'
   2670 
   2671 CRIS
   2672 ====
   2673 
   2674 CRIS is the CPU architecture in Axis Communications ETRAX
   2675 system-on-a-chip series.  These are used in embedded applications.
   2676 
   2677    *Note CRIS Options: (gcc)CRIS Options, for a list of CRIS-specific
   2678 options.
   2679 
   2680    There are a few different CRIS targets:
   2681 `cris-axis-elf'
   2682      Mainly for monolithic embedded systems.  Includes a multilib for
   2683      the `v10' core used in `ETRAX 100 LX'.
   2684 
   2685 `cris-axis-linux-gnu'
   2686      A GNU/Linux port for the CRIS architecture, currently targeting
   2687      `ETRAX 100 LX' by default.
   2688 
   2689    For `cris-axis-elf' you need binutils 2.11 or newer.  For
   2690 `cris-axis-linux-gnu' you need binutils 2.12 or newer.
   2691 
   2692    Pre-packaged tools can be obtained from
   2693 `ftp://ftp.axis.com/pub/axis/tools/cris/compiler-kit/'.  More
   2694 information about this platform is available at
   2695 `http://developer.axis.com/'.
   2696 
   2697 CRX
   2698 ===
   2699 
   2700 The CRX CompactRISC architecture is a low-power 32-bit architecture with
   2701 fast context switching and architectural extensibility features.
   2702 
   2703    *Note CRX Options: (gcc)CRX Options,
   2704 
   2705    Use `configure --target=crx-elf --enable-languages=c,c++' to
   2706 configure GCC for building a CRX cross-compiler. The option
   2707 `--target=crx-elf' is also used to build the `newlib' C library for CRX.
   2708 
   2709    It is also possible to build libstdc++-v3 for the CRX architecture.
   2710 This needs to be done in a separate step with the following configure
   2711 settings:
   2712 
   2713      gcc/libstdc++-v3/configure --host=crx-elf --with-newlib \
   2714          --enable-sjlj-exceptions --enable-cxx-flags='-fexceptions -frtti'
   2715 
   2716 DOS
   2717 ===
   2718 
   2719 Please have a look at the binaries page.
   2720 
   2721    You cannot install GCC by itself on MSDOS; it will not compile under
   2722 any MSDOS compiler except itself.  You need to get the complete
   2723 compilation package DJGPP, which includes binaries as well as sources,
   2724 and includes all the necessary compilation tools and libraries.
   2725 
   2726 *-*-freebsd*
   2727 ============
   2728 
   2729 Support for FreeBSD 1 was discontinued in GCC 3.2.  Support for FreeBSD
   2730 2 (and any mutant a.out variants of FreeBSD 3) was discontinued in GCC
   2731 4.0.
   2732 
   2733    In order to better utilize FreeBSD base system functionality and
   2734 match the configuration of the system compiler, GCC 4.5 and above as
   2735 well as GCC 4.4 past 2010-06-20 leverage SSP support in libc (which is
   2736 present on FreeBSD 7 or later) and the use of `__cxa_atexit' by default
   2737 (on FreeBSD 6 or later).  The use of `dl_iterate_phdr' inside
   2738 `libgcc_s.so.1' and boehm-gc (on FreeBSD 7 or later) is enabled by GCC
   2739 4.5 and above.
   2740 
   2741    We support FreeBSD using the ELF file format with DWARF 2 debugging
   2742 for all CPU architectures.  You may use `-gstabs' instead of `-g', if
   2743 you really want the old debugging format.  There are no known issues
   2744 with mixing object files and libraries with different debugging
   2745 formats.  Otherwise, this release of GCC should now match more of the
   2746 configuration used in the stock FreeBSD configuration of GCC.  In
   2747 particular, `--enable-threads' is now configured by default.  However,
   2748 as a general user, do not attempt to replace the system compiler with
   2749 this release.  Known to bootstrap and check with good results on
   2750 FreeBSD 7.2-STABLE.  In the past, known to bootstrap and check with
   2751 good results on FreeBSD 3.0, 3.4, 4.0, 4.2, 4.3, 4.4, 4.5, 4.8, 4.9 and
   2752 5-CURRENT.
   2753 
   2754    The version of binutils installed in `/usr/bin' probably works with
   2755 this release of GCC.  Bootstrapping against the latest GNU binutils
   2756 and/or the version found in `/usr/ports/devel/binutils' has been known
   2757 to enable additional features and improve overall testsuite results.
   2758 However, it is currently known that boehm-gc (which itself is required
   2759 for java) may not configure properly on FreeBSD prior to the FreeBSD
   2760 7.0 release with GNU binutils after 2.16.1.
   2761 
   2762 h8300-hms
   2763 =========
   2764 
   2765 Renesas H8/300 series of processors.
   2766 
   2767    Please have a look at the binaries page.
   2768 
   2769    The calling convention and structure layout has changed in release
   2770 2.6.  All code must be recompiled.  The calling convention now passes
   2771 the first three arguments in function calls in registers.  Structures
   2772 are no longer a multiple of 2 bytes.
   2773 
   2774 hppa*-hp-hpux*
   2775 ==============
   2776 
   2777 Support for HP-UX version 9 and older was discontinued in GCC 3.4.
   2778 
   2779    We require using gas/binutils on all hppa platforms.  Version 2.19 or
   2780 later is recommended.
   2781 
   2782    It may be helpful to configure GCC with the `--with-gnu-as' and
   2783 `--with-as=...' options to ensure that GCC can find GAS.
   2784 
   2785    The HP assembler should not be used with GCC.  It is rarely tested
   2786 and may not work.  It shouldn't be used with any languages other than C
   2787 due to its many limitations.
   2788 
   2789    Specifically, `-g' does not work (HP-UX uses a peculiar debugging
   2790 format which GCC does not know about).  It also inserts timestamps into
   2791 each object file it creates, causing the 3-stage comparison test to
   2792 fail during a bootstrap.  You should be able to continue by saying
   2793 `make all-host all-target' after getting the failure from `make'.
   2794 
   2795    Various GCC features are not supported.  For example, it does not
   2796 support weak symbols or alias definitions.  As a result, explicit
   2797 template instantiations are required when using C++.  This makes it
   2798 difficult if not impossible to build many C++ applications.
   2799 
   2800    There are two default scheduling models for instructions.  These are
   2801 PROCESSOR_7100LC and PROCESSOR_8000.  They are selected from the pa-risc
   2802 architecture specified for the target machine when configuring.
   2803 PROCESSOR_8000 is the default.  PROCESSOR_7100LC is selected when the
   2804 target is a `hppa1*' machine.
   2805 
   2806    The PROCESSOR_8000 model is not well suited to older processors.
   2807 Thus, it is important to completely specify the machine architecture
   2808 when configuring if you want a model other than PROCESSOR_8000.  The
   2809 macro TARGET_SCHED_DEFAULT can be defined in BOOT_CFLAGS if a different
   2810 default scheduling model is desired.
   2811 
   2812    As of GCC 4.0, GCC uses the UNIX 95 namespace for HP-UX 10.10
   2813 through 11.00, and the UNIX 98 namespace for HP-UX 11.11 and later.
   2814 This namespace change might cause problems when bootstrapping with an
   2815 earlier version of GCC or the HP compiler as essentially the same
   2816 namespace is required for an entire build.  This problem can be avoided
   2817 in a number of ways.  With HP cc, `UNIX_STD' can be set to `95' or
   2818 `98'.  Another way is to add an appropriate set of predefines to `CC'.
   2819 The description for the `munix=' option contains a list of the
   2820 predefines used with each standard.
   2821 
   2822    More specific information to `hppa*-hp-hpux*' targets follows.
   2823 
   2824 hppa*-hp-hpux10
   2825 ===============
   2826 
   2827 For hpux10.20, we _highly_ recommend you pick up the latest sed patch
   2828 `PHCO_19798' from HP.
   2829 
   2830    The C++ ABI has changed incompatibly in GCC 4.0.  COMDAT subspaces
   2831 are used for one-only code and data.  This resolves many of the previous
   2832 problems in using C++ on this target.  However, the ABI is not
   2833 compatible with the one implemented under HP-UX 11 using secondary
   2834 definitions.
   2835 
   2836 hppa*-hp-hpux11
   2837 ===============
   2838 
   2839 GCC 3.0 and up support HP-UX 11.  GCC 2.95.x is not supported and cannot
   2840 be used to compile GCC 3.0 and up.
   2841 
   2842    The libffi and libjava libraries haven't been ported to 64-bit HP-UX
   2843 and don't build.
   2844 
   2845    Refer to binaries for information about obtaining precompiled GCC
   2846 binaries for HP-UX.  Precompiled binaries must be obtained to build the
   2847 Ada language as it can't be bootstrapped using C.  Ada is only
   2848 available for the 32-bit PA-RISC runtime.
   2849 
   2850    Starting with GCC 3.4 an ISO C compiler is required to bootstrap.
   2851 The bundled compiler supports only traditional C; you will need either
   2852 HP's unbundled compiler, or a binary distribution of GCC.
   2853 
   2854    It is possible to build GCC 3.3 starting with the bundled HP
   2855 compiler, but the process requires several steps.  GCC 3.3 can then be
   2856 used to build later versions.  The fastjar program contains ISO C code
   2857 and can't be built with the HP bundled compiler.  This problem can be
   2858 avoided by not building the Java language.  For example, use the
   2859 `--enable-languages="c,c++,f77,objc"' option in your configure command.
   2860 
   2861    There are several possible approaches to building the distribution.
   2862 Binutils can be built first using the HP tools.  Then, the GCC
   2863 distribution can be built.  The second approach is to build GCC first
   2864 using the HP tools, then build binutils, then rebuild GCC.  There have
   2865 been problems with various binary distributions, so it is best not to
   2866 start from a binary distribution.
   2867 
   2868    On 64-bit capable systems, there are two distinct targets.  Different
   2869 installation prefixes must be used if both are to be installed on the
   2870 same system.  The `hppa[1-2]*-hp-hpux11*' target generates code for the
   2871 32-bit PA-RISC runtime architecture and uses the HP linker.  The
   2872 `hppa64-hp-hpux11*' target generates 64-bit code for the PA-RISC 2.0
   2873 architecture.
   2874 
   2875    The script config.guess now selects the target type based on the
   2876 compiler detected during configuration.  You must define `PATH' or `CC'
   2877 so that configure finds an appropriate compiler for the initial
   2878 bootstrap.  When `CC' is used, the definition should contain the
   2879 options that are needed whenever `CC' is used.
   2880 
   2881    Specifically, options that determine the runtime architecture must be
   2882 in `CC' to correctly select the target for the build.  It is also
   2883 convenient to place many other compiler options in `CC'.  For example,
   2884 `CC="cc -Ac +DA2.0W -Wp,-H16376 -D_CLASSIC_TYPES -D_HPUX_SOURCE"' can
   2885 be used to bootstrap the GCC 3.3 branch with the HP compiler in 64-bit
   2886 K&R/bundled mode.  The `+DA2.0W' option will result in the automatic
   2887 selection of the `hppa64-hp-hpux11*' target.  The macro definition
   2888 table of cpp needs to be increased for a successful build with the HP
   2889 compiler.  _CLASSIC_TYPES and _HPUX_SOURCE need to be defined when
   2890 building with the bundled compiler, or when using the `-Ac' option.
   2891 These defines aren't necessary with `-Ae'.
   2892 
   2893    It is best to explicitly configure the `hppa64-hp-hpux11*' target
   2894 with the `--with-ld=...' option.  This overrides the standard search
   2895 for ld.  The two linkers supported on this target require different
   2896 commands.  The default linker is determined during configuration.  As a
   2897 result, it's not possible to switch linkers in the middle of a GCC
   2898 build.  This has been reported to sometimes occur in unified builds of
   2899 binutils and GCC.
   2900 
   2901    A recent linker patch must be installed for the correct operation of
   2902 GCC 3.3 and later.  `PHSS_26559' and `PHSS_24304' are the oldest linker
   2903 patches that are known to work.  They are for HP-UX 11.00 and 11.11,
   2904 respectively.  `PHSS_24303', the companion to `PHSS_24304', might be
   2905 usable but it hasn't been tested.  These patches have been superseded.
   2906 Consult the HP patch database to obtain the currently recommended
   2907 linker patch for your system.
   2908 
   2909    The patches are necessary for the support of weak symbols on the
   2910 32-bit port, and for the running of initializers and finalizers.  Weak
   2911 symbols are implemented using SOM secondary definition symbols.  Prior
   2912 to HP-UX 11, there are bugs in the linker support for secondary symbols.
   2913 The patches correct a problem of linker core dumps creating shared
   2914 libraries containing secondary symbols, as well as various other
   2915 linking issues involving secondary symbols.
   2916 
   2917    GCC 3.3 uses the ELF DT_INIT_ARRAY and DT_FINI_ARRAY capabilities to
   2918 run initializers and finalizers on the 64-bit port.  The 32-bit port
   2919 uses the linker `+init' and `+fini' options for the same purpose.  The
   2920 patches correct various problems with the +init/+fini options,
   2921 including program core dumps.  Binutils 2.14 corrects a problem on the
   2922 64-bit port resulting from HP's non-standard use of the .init and .fini
   2923 sections for array initializers and finalizers.
   2924 
   2925    Although the HP and GNU linkers are both supported for the
   2926 `hppa64-hp-hpux11*' target, it is strongly recommended that the HP
   2927 linker be used for link editing on this target.
   2928 
   2929    At this time, the GNU linker does not support the creation of long
   2930 branch stubs.  As a result, it can't successfully link binaries
   2931 containing branch offsets larger than 8 megabytes.  In addition, there
   2932 are problems linking shared libraries, linking executables with
   2933 `-static', and with dwarf2 unwind and exception support.  It also
   2934 doesn't provide stubs for internal calls to global functions in shared
   2935 libraries, so these calls can't be overloaded.
   2936 
   2937    The HP dynamic loader does not support GNU symbol versioning, so
   2938 symbol versioning is not supported.  It may be necessary to disable
   2939 symbol versioning with `--disable-symvers' when using GNU ld.
   2940 
   2941    POSIX threads are the default.  The optional DCE thread library is
   2942 not supported, so `--enable-threads=dce' does not work.
   2943 
   2944 *-*-linux-gnu
   2945 =============
   2946 
   2947 Versions of libstdc++-v3 starting with 3.2.1 require bug fixes present
   2948 in glibc 2.2.5 and later.  More information is available in the
   2949 libstdc++-v3 documentation.
   2950 
   2951 i?86-*-linux*
   2952 =============
   2953 
   2954 As of GCC 3.3, binutils 2.13.1 or later is required for this platform.
   2955 See bug 10877 for more information.
   2956 
   2957    If you receive Signal 11 errors when building on GNU/Linux, then it
   2958 is possible you have a hardware problem.  Further information on this
   2959 can be found on www.bitwizard.nl.
   2960 
   2961 i?86-*-solaris2.[89]
   2962 ====================
   2963 
   2964 The Sun assembler in Solaris 8 and 9 has several bugs and limitations.
   2965 While GCC works around them, several features are missing, so it is
   2966 recommended to use the GNU assembler instead.  There is no bundled
   2967 version, but the current version, from GNU binutils 2.21, is known to
   2968 work.
   2969 
   2970    Solaris 2/x86 doesn't support the execution of SSE/SSE2 instructions
   2971 before Solaris 9 4/04, even if the CPU supports them.  Programs will
   2972 receive `SIGILL' if they try.  The fix is available both in Solaris 9
   2973 Update 6 and kernel patch 112234-12 or newer.  There is no
   2974 corresponding patch for Solaris 8.  To avoid this problem, `-march'
   2975 defaults to `pentiumpro' on Solaris 8 and 9.  If you have the patch
   2976 installed, you can configure GCC with an appropriate `--with-arch'
   2977 option, but need GNU `as' for SSE2 support.
   2978 
   2979 i?86-*-solaris2.10
   2980 ==================
   2981 
   2982 Use this for Solaris 10 or later on x86 and x86-64 systems.  This
   2983 configuration is supported by GCC 4.0 and later versions only.  Unlike
   2984 `sparcv9-sun-solaris2*', there is no corresponding 64-bit configuration
   2985 like `amd64-*-solaris2*' or `x86_64-*-solaris2*'.
   2986 
   2987    It is recommended that you configure GCC to use the GNU assembler, in
   2988 `/usr/sfw/bin/gas'.  The versions included in Solaris 10, from GNU
   2989 binutils 2.15, and Solaris 11, from GNU binutils 2.19, work fine,
   2990 although the current version, from GNU binutils 2.21, is known to work,
   2991 too.  Recent versions of the Sun assembler in `/usr/ccs/bin/as' work
   2992 almost as well, though.
   2993 
   2994    For linking, the Sun linker, is preferred.  If you want to use the
   2995 GNU linker instead, which is available in `/usr/sfw/bin/gld', note that
   2996 due to a packaging bug the version in Solaris 10, from GNU binutils
   2997 2.15, cannot be used, while the version in Solaris 11, from GNU binutils
   2998 2.19, works, as does the latest version, from GNU binutils 2.21.
   2999 
   3000    To use GNU `as', configure with the options `--with-gnu-as
   3001 --with-as=/usr/sfw/bin/gas'.  It may be necessary to configure with
   3002 `--without-gnu-ld --with-ld=/usr/ccs/bin/ld' to guarantee use of Sun
   3003 `ld'.
   3004 
   3005 ia64-*-linux
   3006 ============
   3007 
   3008 IA-64 processor (also known as IPF, or Itanium Processor Family)
   3009 running GNU/Linux.
   3010 
   3011    If you are using the installed system libunwind library with
   3012 `--with-system-libunwind', then you must use libunwind 0.98 or later.
   3013 
   3014    None of the following versions of GCC has an ABI that is compatible
   3015 with any of the other versions in this list, with the exception that
   3016 Red Hat 2.96 and Trillian 000171 are compatible with each other: 3.1,
   3017 3.0.2, 3.0.1, 3.0, Red Hat 2.96, and Trillian 000717.  This primarily
   3018 affects C++ programs and programs that create shared libraries.  GCC
   3019 3.1 or later is recommended for compiling linux, the kernel.  As of
   3020 version 3.1 GCC is believed to be fully ABI compliant, and hence no
   3021 more major ABI changes are expected.
   3022 
   3023 ia64-*-hpux*
   3024 ============
   3025 
   3026 Building GCC on this target requires the GNU Assembler.  The bundled HP
   3027 assembler will not work.  To prevent GCC from using the wrong assembler,
   3028 the option `--with-gnu-as' may be necessary.
   3029 
   3030    The GCC libunwind library has not been ported to HPUX.  This means
   3031 that for GCC versions 3.2.3 and earlier, `--enable-libunwind-exceptions'
   3032 is required to build GCC.  For GCC 3.3 and later, this is the default.
   3033 For gcc 3.4.3 and later, `--enable-libunwind-exceptions' is removed and
   3034 the system libunwind library will always be used.
   3035 
   3036 *-ibm-aix*
   3037 ==========
   3038 
   3039 Support for AIX version 3 and older was discontinued in GCC 3.4.
   3040 Support for AIX version 4.2 and older was discontinued in GCC 4.5.
   3041 
   3042    "out of memory" bootstrap failures may indicate a problem with
   3043 process resource limits (ulimit).  Hard limits are configured in the
   3044 `/etc/security/limits' system configuration file.
   3045 
   3046    GCC can bootstrap with recent versions of IBM XLC, but bootstrapping
   3047 with an earlier release of GCC is recommended.  Bootstrapping with XLC
   3048 requires a larger data segment, which can be enabled through the
   3049 LDR_CNTRL environment variable, e.g.,
   3050 
   3051      % LDR_CNTRL=MAXDATA=0x50000000
   3052      % export LDR_CNTRL
   3053 
   3054    One can start with a pre-compiled version of GCC to build from
   3055 sources.  One may delete GCC's "fixed" header files when starting with
   3056 a version of GCC built for an earlier release of AIX.
   3057 
   3058    To speed up the configuration phases of bootstrapping and installing
   3059 GCC, one may use GNU Bash instead of AIX `/bin/sh', e.g.,
   3060 
   3061      % CONFIG_SHELL=/opt/freeware/bin/bash
   3062      % export CONFIG_SHELL
   3063 
   3064    and then proceed as described in the build instructions, where we
   3065 strongly recommend specifying an absolute path to invoke
   3066 SRCDIR/configure.
   3067 
   3068    Because GCC on AIX is built as a 32-bit executable by default,
   3069 (although it can generate 64-bit programs) the GMP and MPFR libraries
   3070 required by gfortran must be 32-bit libraries.  Building GMP and MPFR
   3071 as static archive libraries works better than shared libraries.
   3072 
   3073    Errors involving `alloca' when building GCC generally are due to an
   3074 incorrect definition of `CC' in the Makefile or mixing files compiled
   3075 with the native C compiler and GCC.  During the stage1 phase of the
   3076 build, the native AIX compiler *must* be invoked as `cc' (not `xlc').
   3077 Once `configure' has been informed of `xlc', one needs to use `make
   3078 distclean' to remove the configure cache files and ensure that `CC'
   3079 environment variable does not provide a definition that will confuse
   3080 `configure'.  If this error occurs during stage2 or later, then the
   3081 problem most likely is the version of Make (see above).
   3082 
   3083    The native `as' and `ld' are recommended for bootstrapping on AIX.
   3084 The GNU Assembler, GNU Linker, and GNU Binutils version 2.20 is
   3085 required to bootstrap on AIX 5.  The native AIX tools do interoperate
   3086 with GCC.
   3087 
   3088    Building `libstdc++.a' requires a fix for an AIX Assembler bug APAR
   3089 IY26685 (AIX 4.3) or APAR IY25528 (AIX 5.1).  It also requires a fix
   3090 for another AIX Assembler bug and a co-dependent AIX Archiver fix
   3091 referenced as APAR IY53606 (AIX 5.2) or as APAR IY54774 (AIX 5.1)
   3092 
   3093    `libstdc++' in GCC 3.4 increments the major version number of the
   3094 shared object and GCC installation places the `libstdc++.a' shared
   3095 library in a common location which will overwrite the and GCC 3.3
   3096 version of the shared library.  Applications either need to be
   3097 re-linked against the new shared library or the GCC 3.1 and GCC 3.3
   3098 versions of the `libstdc++' shared object needs to be available to the
   3099 AIX runtime loader.  The GCC 3.1 `libstdc++.so.4', if present, and GCC
   3100 3.3 `libstdc++.so.5' shared objects can be installed for runtime
   3101 dynamic loading using the following steps to set the `F_LOADONLY' flag
   3102 in the shared object for _each_ multilib `libstdc++.a' installed:
   3103 
   3104    Extract the shared objects from the currently installed
   3105 `libstdc++.a' archive:
   3106      % ar -x libstdc++.a libstdc++.so.4 libstdc++.so.5
   3107 
   3108    Enable the `F_LOADONLY' flag so that the shared object will be
   3109 available for runtime dynamic loading, but not linking:
   3110      % strip -e libstdc++.so.4 libstdc++.so.5
   3111 
   3112    Archive the runtime-only shared object in the GCC 3.4 `libstdc++.a'
   3113 archive:
   3114      % ar -q libstdc++.a libstdc++.so.4 libstdc++.so.5
   3115 
   3116    Linking executables and shared libraries may produce warnings of
   3117 duplicate symbols.  The assembly files generated by GCC for AIX always
   3118 have included multiple symbol definitions for certain global variable
   3119 and function declarations in the original program.  The warnings should
   3120 not prevent the linker from producing a correct library or runnable
   3121 executable.
   3122 
   3123    AIX 4.3 utilizes a "large format" archive to support both 32-bit and
   3124 64-bit object modules.  The routines provided in AIX 4.3.0 and AIX 4.3.1
   3125 to parse archive libraries did not handle the new format correctly.
   3126 These routines are used by GCC and result in error messages during
   3127 linking such as "not a COFF file".  The version of the routines shipped
   3128 with AIX 4.3.1 should work for a 32-bit environment.  The `-g' option
   3129 of the archive command may be used to create archives of 32-bit objects
   3130 using the original "small format".  A correct version of the routines
   3131 is shipped with AIX 4.3.2 and above.
   3132 
   3133    Some versions of the AIX binder (linker) can fail with a relocation
   3134 overflow severe error when the `-bbigtoc' option is used to link
   3135 GCC-produced object files into an executable that overflows the TOC.  A
   3136 fix for APAR IX75823 (OVERFLOW DURING LINK WHEN USING GCC AND -BBIGTOC)
   3137 is available from IBM Customer Support and from its
   3138 techsupport.services.ibm.com website as PTF U455193.
   3139 
   3140    The AIX 4.3.2.1 linker (bos.rte.bind_cmds Level 4.3.2.1) will dump
   3141 core with a segmentation fault when invoked by any version of GCC.  A
   3142 fix for APAR IX87327 is available from IBM Customer Support and from its
   3143 techsupport.services.ibm.com website as PTF U461879.  This fix is
   3144 incorporated in AIX 4.3.3 and above.
   3145 
   3146    The initial assembler shipped with AIX 4.3.0 generates incorrect
   3147 object files.  A fix for APAR IX74254 (64BIT DISASSEMBLED OUTPUT FROM
   3148 COMPILER FAILS TO ASSEMBLE/BIND) is available from IBM Customer Support
   3149 and from its techsupport.services.ibm.com website as PTF U453956.  This
   3150 fix is incorporated in AIX 4.3.1 and above.
   3151 
   3152    AIX provides National Language Support (NLS).  Compilers and
   3153 assemblers use NLS to support locale-specific representations of
   3154 various data formats including floating-point numbers (e.g., `.'  vs
   3155 `,' for separating decimal fractions).  There have been problems
   3156 reported where GCC does not produce the same floating-point formats
   3157 that the assembler expects.  If one encounters this problem, set the
   3158 `LANG' environment variable to `C' or `En_US'.
   3159 
   3160    A default can be specified with the `-mcpu=CPU_TYPE' switch and
   3161 using the configure option `--with-cpu-CPU_TYPE'.
   3162 
   3163 iq2000-*-elf
   3164 ============
   3165 
   3166 Vitesse IQ2000 processors.  These are used in embedded applications.
   3167 There are no standard Unix configurations.
   3168 
   3169 lm32-*-elf
   3170 ==========
   3171 
   3172 Lattice Mico32 processor.  This configuration is intended for embedded
   3173 systems.
   3174 
   3175 lm32-*-uclinux
   3176 ==============
   3177 
   3178 Lattice Mico32 processor.  This configuration is intended for embedded
   3179 systems running uClinux.
   3180 
   3181 m32c-*-elf
   3182 ==========
   3183 
   3184 Renesas M32C processor.  This configuration is intended for embedded
   3185 systems.
   3186 
   3187 m32r-*-elf
   3188 ==========
   3189 
   3190 Renesas M32R processor.  This configuration is intended for embedded
   3191 systems.
   3192 
   3193 m6811-elf
   3194 =========
   3195 
   3196 Motorola 68HC11 family micro controllers.  These are used in embedded
   3197 applications.  There are no standard Unix configurations.
   3198 
   3199 m6812-elf
   3200 =========
   3201 
   3202 Motorola 68HC12 family micro controllers.  These are used in embedded
   3203 applications.  There are no standard Unix configurations.
   3204 
   3205 m68k-*-*
   3206 ========
   3207 
   3208 By default, `m68k-*-elf*', `m68k-*-rtems',  `m68k-*-uclinux' and
   3209 `m68k-*-linux' build libraries for both M680x0 and ColdFire processors.
   3210 If you only need the M680x0 libraries, you can omit the ColdFire ones
   3211 by passing `--with-arch=m68k' to `configure'.  Alternatively, you can
   3212 omit the M680x0 libraries by passing `--with-arch=cf' to `configure'.
   3213 These targets default to 5206 or 5475 code as appropriate for the
   3214 target system when configured with `--with-arch=cf' and 68020 code
   3215 otherwise.
   3216 
   3217    The `m68k-*-netbsd' and `m68k-*-openbsd' targets also support the
   3218 `--with-arch' option.  They will generate ColdFire CFV4e code when
   3219 configured with `--with-arch=cf' and 68020 code otherwise.
   3220 
   3221    You can override the default processors listed above by configuring
   3222 with `--with-cpu=TARGET'.  This TARGET can either be a `-mcpu' argument
   3223 or one of the following values: `m68000', `m68010', `m68020', `m68030',
   3224 `m68040', `m68060', `m68020-40' and `m68020-60'.
   3225 
   3226 m68k-*-uclinux
   3227 ==============
   3228 
   3229 GCC 4.3 changed the uClinux configuration so that it uses the
   3230 `m68k-linux-gnu' ABI rather than the `m68k-elf' ABI.  It also added
   3231 improved support for C++ and flat shared libraries, both of which were
   3232 ABI changes.  However, you can still use the original ABI by
   3233 configuring for `m68k-uclinuxoldabi' or `m68k-VENDOR-uclinuxoldabi'.
   3234 
   3235 mep-*-elf
   3236 =========
   3237 
   3238 Toshiba Media embedded Processor.  This configuration is intended for
   3239 embedded systems.
   3240 
   3241 microblaze-*-elf
   3242 ================
   3243 
   3244 Xilinx MicroBlaze processor.  This configuration is intended for
   3245 embedded systems.
   3246 
   3247 mips-*-*
   3248 ========
   3249 
   3250 If on a MIPS system you get an error message saying "does not have gp
   3251 sections for all it's [sic] sectons [sic]", don't worry about it.  This
   3252 happens whenever you use GAS with the MIPS linker, but there is not
   3253 really anything wrong, and it is okay to use the output file.  You can
   3254 stop such warnings by installing the GNU linker.
   3255 
   3256    It would be nice to extend GAS to produce the gp tables, but they are
   3257 optional, and there should not be a warning about their absence.
   3258 
   3259    The libstdc++ atomic locking routines for MIPS targets requires MIPS
   3260 II and later.  A patch went in just after the GCC 3.3 release to make
   3261 `mips*-*-*' use the generic implementation instead.  You can also
   3262 configure for `mipsel-elf' as a workaround.  The `mips*-*-linux*'
   3263 target continues to use the MIPS II routines.  More work on this is
   3264 expected in future releases.
   3265 
   3266    The built-in `__sync_*' functions are available on MIPS II and later
   3267 systems and others that support the `ll', `sc' and `sync' instructions.
   3268 This can be overridden by passing `--with-llsc' or `--without-llsc'
   3269 when configuring GCC.  Since the Linux kernel emulates these
   3270 instructions if they are missing, the default for `mips*-*-linux*'
   3271 targets is `--with-llsc'.  The `--with-llsc' and `--without-llsc'
   3272 configure options may be overridden at compile time by passing the
   3273 `-mllsc' or `-mno-llsc' options to the compiler.
   3274 
   3275    MIPS systems check for division by zero (unless
   3276 `-mno-check-zero-division' is passed to the compiler) by generating
   3277 either a conditional trap or a break instruction.  Using trap results
   3278 in smaller code, but is only supported on MIPS II and later.  Also,
   3279 some versions of the Linux kernel have a bug that prevents trap from
   3280 generating the proper signal (`SIGFPE').  To enable the use of break,
   3281 use the `--with-divide=breaks' `configure' option when configuring GCC.
   3282 The default is to use traps on systems that support them.
   3283 
   3284    Cross-compilers for the MIPS as target using the MIPS assembler
   3285 currently do not work, because the auxiliary programs `mips-tdump.c'
   3286 and `mips-tfile.c' can't be compiled on anything but a MIPS.  It does
   3287 work to cross compile for a MIPS if you use the GNU assembler and
   3288 linker.
   3289 
   3290    The assembler from GNU binutils 2.17 and earlier has a bug in the way
   3291 it sorts relocations for REL targets (o32, o64, EABI).  This can cause
   3292 bad code to be generated for simple C++ programs.  Also the linker from
   3293 GNU binutils versions prior to 2.17 has a bug which causes the runtime
   3294 linker stubs in very large programs, like `libgcj.so', to be
   3295 incorrectly generated.  GNU Binutils 2.18 and later (and snapshots made
   3296 after Nov. 9, 2006) should be free from both of these problems.
   3297 
   3298 mips-sgi-irix5
   3299 ==============
   3300 
   3301 Support for IRIX 5 has been removed in GCC 4.6.
   3302 
   3303 mips-sgi-irix6
   3304 ==============
   3305 
   3306 Support for IRIX 6 releases before 6.5 has been removed in GCC 4.6, as
   3307 well as support for the O32 ABI.  It is _strongly_ recommended to
   3308 upgrade to at least IRIX 6.5.18.  This release introduced full ISO C99
   3309 support, though for the N32 and N64 ABIs only.
   3310 
   3311    To build and use GCC on IRIX 6.5, you need the IRIX Development
   3312 Foundation (IDF) and IRIX Development Libraries (IDL).  They are
   3313 included with the IRIX 6.5 media.
   3314 
   3315    If you are using SGI's MIPSpro `cc' as your bootstrap compiler, you
   3316 must ensure that the N32 ABI is in use.  To test this, compile a simple
   3317 C file with `cc' and then run `file' on the resulting object file.  The
   3318 output should look like:
   3319 
   3320      test.o: ELF N32 MSB ...
   3321 
   3322 If you see:
   3323 
   3324      test.o: ELF 32-bit MSB ...
   3325 
   3326 or
   3327 
   3328      test.o: ELF 64-bit MSB ...
   3329 
   3330 then your version of `cc' uses the O32 or N64 ABI by default.  You
   3331 should set the environment variable `CC' to `cc -n32' before
   3332 configuring GCC.
   3333 
   3334    If you want the resulting `gcc' to run on old 32-bit systems with
   3335 the MIPS R4400 CPU, you need to ensure that only code for the `mips3'
   3336 instruction set architecture (ISA) is generated.  While GCC 3.x does
   3337 this correctly, both GCC 2.95 and SGI's MIPSpro `cc' may change the ISA
   3338 depending on the machine where GCC is built.  Using one of them as the
   3339 bootstrap compiler may result in `mips4' code, which won't run at all
   3340 on `mips3'-only systems.  For the test program above, you should see:
   3341 
   3342      test.o: ELF N32 MSB mips-3 ...
   3343 
   3344 If you get:
   3345 
   3346      test.o: ELF N32 MSB mips-4 ...
   3347 
   3348 instead, you should set the environment variable `CC' to `cc -n32
   3349 -mips3' or `gcc -mips3' respectively before configuring GCC.
   3350 
   3351    MIPSpro C 7.4 may cause bootstrap failures, due to a bug when
   3352 inlining `memcmp'.  Either add `-U__INLINE_INTRINSICS' to the `CC'
   3353 environment variable as a workaround or upgrade to MIPSpro C 7.4.1m.
   3354 
   3355    GCC on IRIX 6.5 is usually built to support the N32 and N64 ABIs.  If
   3356 you build GCC on a system that doesn't have the N64 libraries installed
   3357 or cannot run 64-bit binaries, you need to configure with
   3358 `--disable-multilib' so GCC doesn't try to use them.  Look for
   3359 `/usr/lib64/libc.so.1' to see if you have the 64-bit libraries
   3360 installed.
   3361 
   3362    GCC must be configured with GNU `as'.  The latest version, from GNU
   3363 binutils 2.21, is known to work.  On the other hand, bootstrap fails
   3364 with GNU `ld' at least since GNU binutils 2.17.
   3365 
   3366    The `--enable-libgcj' option is disabled by default: IRIX 6 uses a
   3367 very low default limit (20480) for the command line length.  Although
   3368 `libtool' contains a workaround for this problem, at least the N64
   3369 `libgcj' is known not to build despite this, running into an internal
   3370 error of the native `ld'.  A sure fix is to increase this limit
   3371 (`ncargs') to its maximum of 262144 bytes.  If you have root access,
   3372 you can use the `systune' command to do this.
   3373 
   3374    `wchar_t' support in `libstdc++' is not available for old IRIX 6.5.x
   3375 releases, x < 19.  The problem cannot be autodetected and in order to
   3376 build GCC for such targets you need to configure with
   3377 `--disable-wchar_t'.
   3378 
   3379 moxie-*-elf
   3380 ===========
   3381 
   3382 The moxie processor.  See `http://moxielogic.org/' for more information
   3383 about this processor.
   3384 
   3385 powerpc-*-*
   3386 ===========
   3387 
   3388 You can specify a default version for the `-mcpu=CPU_TYPE' switch by
   3389 using the configure option `--with-cpu-CPU_TYPE'.
   3390 
   3391    You will need binutils 2.15 or newer for a working GCC.
   3392 
   3393 powerpc-*-darwin*
   3394 =================
   3395 
   3396 PowerPC running Darwin (Mac OS X kernel).
   3397 
   3398    Pre-installed versions of Mac OS X may not include any developer
   3399 tools, meaning that you will not be able to build GCC from source.  Tool
   3400 binaries are available at `http://opensource.apple.com/'.
   3401 
   3402    This version of GCC requires at least cctools-590.36.  The
   3403 cctools-590.36 package referenced from
   3404 `http://gcc.gnu.org/ml/gcc/2006-03/msg00507.html' will not work on
   3405 systems older than 10.3.9 (aka darwin7.9.0).
   3406 
   3407 powerpc-*-elf
   3408 =============
   3409 
   3410 PowerPC system in big endian mode, running System V.4.
   3411 
   3412 powerpc*-*-linux-gnu*
   3413 =====================
   3414 
   3415 PowerPC system in big endian mode running Linux.
   3416 
   3417 powerpc-*-netbsd*
   3418 =================
   3419 
   3420 PowerPC system in big endian mode running NetBSD.
   3421 
   3422 powerpc-*-eabisim
   3423 =================
   3424 
   3425 Embedded PowerPC system in big endian mode for use in running under the
   3426 PSIM simulator.
   3427 
   3428 powerpc-*-eabi
   3429 ==============
   3430 
   3431 Embedded PowerPC system in big endian mode.
   3432 
   3433 powerpcle-*-elf
   3434 ===============
   3435 
   3436 PowerPC system in little endian mode, running System V.4.
   3437 
   3438 powerpcle-*-eabisim
   3439 ===================
   3440 
   3441 Embedded PowerPC system in little endian mode for use in running under
   3442 the PSIM simulator.
   3443 
   3444 powerpcle-*-eabi
   3445 ================
   3446 
   3447 Embedded PowerPC system in little endian mode.
   3448 
   3449 rx-*-elf
   3450 ========
   3451 
   3452 The Renesas RX processor.  See
   3453 `http://eu.renesas.com/fmwk.jsp?cnt=rx600_series_landing.jsp&fp=/products/mpumcu/rx_family/rx600_series'
   3454 for more information about this processor.
   3455 
   3456 s390-*-linux*
   3457 =============
   3458 
   3459 S/390 system running GNU/Linux for S/390.
   3460 
   3461 s390x-*-linux*
   3462 ==============
   3463 
   3464 zSeries system (64-bit) running GNU/Linux for zSeries.
   3465 
   3466 s390x-ibm-tpf*
   3467 ==============
   3468 
   3469 zSeries system (64-bit) running TPF.  This platform is supported as
   3470 cross-compilation target only.
   3471 
   3472 *-*-solaris2*
   3473 =============
   3474 
   3475 Support for Solaris 7 has been removed in GCC 4.6.
   3476 
   3477    Sun does not ship a C compiler with Solaris 2, though you can
   3478 download the Sun Studio compilers for free.  Alternatively, you can
   3479 install a pre-built GCC to bootstrap and install GCC.  See the binaries
   3480 page for details.
   3481 
   3482    The Solaris 2 `/bin/sh' will often fail to configure `libstdc++-v3',
   3483 `boehm-gc' or `libjava'.  We therefore recommend using the following
   3484 initial sequence of commands
   3485 
   3486      % CONFIG_SHELL=/bin/ksh
   3487      % export CONFIG_SHELL
   3488 
   3489 and proceed as described in the configure instructions.  In addition we
   3490 strongly recommend specifying an absolute path to invoke
   3491 `SRCDIR/configure'.
   3492 
   3493    Solaris 2 comes with a number of optional OS packages.  Some of these
   3494 are needed to use GCC fully, namely `SUNWarc', `SUNWbtool', `SUNWesu',
   3495 `SUNWhea', `SUNWlibm', `SUNWsprot', and `SUNWtoo'.  If you did not
   3496 install all optional packages when installing Solaris 2, you will need
   3497 to verify that the packages that GCC needs are installed.
   3498 
   3499    To check whether an optional package is installed, use the `pkginfo'
   3500 command.  To add an optional package, use the `pkgadd' command.  For
   3501 further details, see the Solaris 2 documentation.
   3502 
   3503    Trying to use the linker and other tools in `/usr/ucb' to install
   3504 GCC has been observed to cause trouble.  For example, the linker may
   3505 hang indefinitely.  The fix is to remove `/usr/ucb' from your `PATH'.
   3506 
   3507    The build process works more smoothly with the legacy Sun tools so,
   3508 if you have `/usr/xpg4/bin' in your `PATH', we recommend that you place
   3509 `/usr/bin' before `/usr/xpg4/bin' for the duration of the build.
   3510 
   3511    We recommend the use of the Sun assembler or the GNU assembler, in
   3512 conjunction with the Sun linker.  The GNU `as' versions included in
   3513 Solaris 10, from GNU binutils 2.15, and Solaris 11, from GNU binutils
   3514 2.19, are known to work.  They can be found in `/usr/sfw/bin/gas'.
   3515 Current versions of GNU binutils (2.21) are known to work as well.
   3516 Note that your mileage may vary if you use a combination of the GNU
   3517 tools and the Sun tools: while the combination GNU `as' + Sun `ld'
   3518 should reasonably work, the reverse combination Sun `as' + GNU `ld' is
   3519 known to cause memory corruption at runtime in some cases for C++
   3520 programs.  GNU `ld' usually works as well, although the version
   3521 included in Solaris 10 cannot be used due to several bugs.  Again, the
   3522 current version (2.21) is known to work, but generally lacks platform
   3523 specific features, so better stay with Sun `ld'.
   3524 
   3525    To enable symbol versioning in `libstdc++' with Sun `ld', you need
   3526 to have any version of GNU `c++filt', which is part of GNU binutils.
   3527 `libstdc++' symbol versioning will be disabled if no appropriate
   3528 version is found.  Sun `c++filt' from the Sun Studio compilers does
   3529 _not_ work.
   3530 
   3531    Sun bug 4296832 turns up when compiling X11 headers with GCC 2.95 or
   3532 newer: `g++' will complain that types are missing.  These headers
   3533 assume that omitting the type means `int'; this assumption worked for
   3534 C90 but is wrong for C++, and is now wrong for C99 also.
   3535 
   3536    `g++' accepts such (invalid) constructs with the option
   3537 `-fpermissive'; it will assume that any missing type is `int' (as
   3538 defined by C90).
   3539 
   3540    There are patches for Solaris 8 (108652-24 or newer for SPARC,
   3541 108653-22 for Intel) that fix this bug.
   3542 
   3543    Sun bug 4927647 sometimes causes random spurious testsuite failures
   3544 related to missing diagnostic output.  This bug doesn't affect GCC
   3545 itself, rather it is a kernel bug triggered by the `expect' program
   3546 which is used only by the GCC testsuite driver.  When the bug causes
   3547 the `expect' program to miss anticipated output, extra testsuite
   3548 failures appear.
   3549 
   3550    There are patches for Solaris 8 (117350-12 or newer for SPARC,
   3551 117351-12 or newer for Intel) and Solaris 9 (117171-11 or newer for
   3552 SPARC, 117172-11 or newer for Intel) that address this problem.
   3553 
   3554    Solaris 8 provides an alternate implementation of the thread
   3555 libraries, `libpthread' and `libthread'.  They are required for TLS
   3556 support and have been made the default in Solaris 9, so they are always
   3557 used on Solaris 8.
   3558 
   3559    Thread-local storage (TLS) is supported in Solaris 8 and 9, but
   3560 requires some patches.  The `libthread' patches provide the
   3561 `__tls_get_addr' (SPARC, 64-bit x86) resp. `___tls_get_addr' (32-bit
   3562 x86) functions.  On Solaris 8, you need 108993-26 or newer on SPARC,
   3563 108994-26 or newer on Intel.  On Solaris 9, the necessary support on
   3564 SPARC is present since FCS, while 114432-05 or newer is required on
   3565 Intel.  Additionally, on Solaris 8, patch 109147-14 or newer on SPARC or
   3566 109148-22 or newer on Intel are required for the Sun `ld' and runtime
   3567 linker (`ld.so.1') support.  Again, Solaris 9/SPARC works since FCS,
   3568 while 113986-02 is required on Intel.  The linker patches must be
   3569 installed even if GNU `ld' is used. Sun `as' in Solaris 8 and 9 doesn't
   3570 support the necessary relocations, so GNU `as' must be used.  The
   3571 `configure' script checks for those prerequisites and automatically
   3572 enables TLS support if they are met.  Although those minimal patch
   3573 versions should work, it is recommended to use the latest patch
   3574 versions which include additional bug fixes.
   3575 
   3576 sparc*-*-*
   3577 ==========
   3578 
   3579 This section contains general configuration information for all
   3580 SPARC-based platforms.  In addition to reading this section, please
   3581 read all other sections that match your target.
   3582 
   3583    Newer versions of the GNU Multiple Precision Library (GMP), the MPFR
   3584 library and the MPC library are known to be miscompiled by earlier
   3585 versions of GCC on these platforms.  We therefore recommend the use of
   3586 the exact versions of these libraries listed as minimal versions in the
   3587 prerequisites.
   3588 
   3589 sparc-sun-solaris2*
   3590 ===================
   3591 
   3592 When GCC is configured to use GNU binutils 2.14 or later, the binaries
   3593 produced are smaller than the ones produced using Sun's native tools;
   3594 this difference is quite significant for binaries containing debugging
   3595 information.
   3596 
   3597    Starting with Solaris 7, the operating system is capable of executing
   3598 64-bit SPARC V9 binaries.  GCC 3.1 and later properly supports this;
   3599 the `-m64' option enables 64-bit code generation.  However, if all you
   3600 want is code tuned for the UltraSPARC CPU, you should try the
   3601 `-mtune=ultrasparc' option instead, which produces code that, unlike
   3602 full 64-bit code, can still run on non-UltraSPARC machines.
   3603 
   3604    When configuring on a Solaris 7 or later system that is running a
   3605 kernel that supports only 32-bit binaries, one must configure with
   3606 `--disable-multilib', since we will not be able to build the 64-bit
   3607 target libraries.
   3608 
   3609    GCC 3.3 and GCC 3.4 trigger code generation bugs in earlier versions
   3610 of the GNU compiler (especially GCC 3.0.x versions), which lead to the
   3611 miscompilation of the stage1 compiler and the subsequent failure of the
   3612 bootstrap process.  A workaround is to use GCC 3.2.3 as an intermediary
   3613 stage, i.e. to bootstrap that compiler with the base compiler and then
   3614 use it to bootstrap the final compiler.
   3615 
   3616    GCC 3.4 triggers a code generation bug in versions 5.4 (Sun ONE
   3617 Studio 7) and 5.5 (Sun ONE Studio 8) of the Sun compiler, which causes
   3618 a bootstrap failure in form of a miscompilation of the stage1 compiler
   3619 by the Sun compiler.  This is Sun bug 4974440.  This is fixed with
   3620 patch 112760-07.
   3621 
   3622    GCC 3.4 changed the default debugging format from Stabs to DWARF-2
   3623 for 32-bit code on Solaris 7 and later.  If you use the Sun assembler,
   3624 this change apparently runs afoul of Sun bug 4910101 (which is
   3625 referenced as an x86-only problem by Sun, probably because they do not
   3626 use DWARF-2).  A symptom of the problem is that you cannot compile C++
   3627 programs like `groff' 1.19.1 without getting messages similar to the
   3628 following:
   3629 
   3630      ld: warning: relocation error: R_SPARC_UA32: ...
   3631        external symbolic relocation against non-allocatable section
   3632        .debug_info cannot be processed at runtime: relocation ignored.
   3633 
   3634 To work around this problem, compile with `-gstabs+' instead of plain
   3635 `-g'.
   3636 
   3637    When configuring the GNU Multiple Precision Library (GMP), the MPFR
   3638 library or the MPC library on a Solaris 7 or later system, the canonical
   3639 target triplet must be specified as the `build' parameter on the
   3640 configure line.  This target triplet can be obtained by invoking
   3641 `./config.guess' in the toplevel source directory of GCC (and not that
   3642 of GMP or MPFR or MPC).  For example on a Solaris 9 system:
   3643 
   3644      % ./configure --build=sparc-sun-solaris2.9 --prefix=xxx
   3645 
   3646 sparc-sun-solaris2.10
   3647 =====================
   3648 
   3649 There is a bug in older versions of the Sun assembler which breaks
   3650 thread-local storage (TLS).  A typical error message is
   3651 
   3652      ld: fatal: relocation error: R_SPARC_TLS_LE_HIX22: file /var/tmp//ccamPA1v.o:
   3653        symbol <unknown>: bad symbol type SECT: symbol type must be TLS
   3654 
   3655 This bug is fixed in Sun patch 118683-03 or later.
   3656 
   3657 sparc-*-linux*
   3658 ==============
   3659 
   3660 GCC versions 3.0 and higher require binutils 2.11.2 and glibc 2.2.4 or
   3661 newer on this platform.  All earlier binutils and glibc releases
   3662 mishandled unaligned relocations on `sparc-*-*' targets.
   3663 
   3664 sparc64-*-solaris2*
   3665 ===================
   3666 
   3667 When configuring the GNU Multiple Precision Library (GMP) or the MPFR
   3668 library, the canonical target triplet must be specified as the `build'
   3669 parameter on the configure line.  For example on a Solaris 9 system:
   3670 
   3671      % ./configure --build=sparc64-sun-solaris2.9 --prefix=xxx
   3672 
   3673    The following compiler flags must be specified in the configure step
   3674 in order to bootstrap this target with the Sun compiler:
   3675 
   3676      % CC="cc -xarch=v9 -xildoff" SRCDIR/configure [OPTIONS] [TARGET]
   3677 
   3678 `-xarch=v9' specifies the SPARC-V9 architecture to the Sun toolchain
   3679 and `-xildoff' turns off the incremental linker.
   3680 
   3681 sparcv9-*-solaris2*
   3682 ===================
   3683 
   3684 This is a synonym for `sparc64-*-solaris2*'.
   3685 
   3686 *-*-vxworks*
   3687 ============
   3688 
   3689 Support for VxWorks is in flux.  At present GCC supports _only_ the
   3690 very recent VxWorks 5.5 (aka Tornado 2.2) release, and only on PowerPC.
   3691 We welcome patches for other architectures supported by VxWorks 5.5.
   3692 Support for VxWorks AE would also be welcome; we believe this is merely
   3693 a matter of writing an appropriate "configlette" (see below).  We are
   3694 not interested in supporting older, a.out or COFF-based, versions of
   3695 VxWorks in GCC 3.
   3696 
   3697    VxWorks comes with an older version of GCC installed in
   3698 `$WIND_BASE/host'; we recommend you do not overwrite it.  Choose an
   3699 installation PREFIX entirely outside $WIND_BASE.  Before running
   3700 `configure', create the directories `PREFIX' and `PREFIX/bin'.  Link or
   3701 copy the appropriate assembler, linker, etc. into `PREFIX/bin', and set
   3702 your PATH to include that directory while running both `configure' and
   3703 `make'.
   3704 
   3705    You must give `configure' the `--with-headers=$WIND_BASE/target/h'
   3706 switch so that it can find the VxWorks system headers.  Since VxWorks
   3707 is a cross compilation target only, you must also specify
   3708 `--target=TARGET'.  `configure' will attempt to create the directory
   3709 `PREFIX/TARGET/sys-include' and copy files into it; make sure the user
   3710 running `configure' has sufficient privilege to do so.
   3711 
   3712    GCC's exception handling runtime requires a special "configlette"
   3713 module, `contrib/gthr_supp_vxw_5x.c'.  Follow the instructions in that
   3714 file to add the module to your kernel build.  (Future versions of
   3715 VxWorks will incorporate this module.)
   3716 
   3717 x86_64-*-*, amd64-*-*
   3718 =====================
   3719 
   3720 GCC supports the x86-64 architecture implemented by the AMD64 processor
   3721 (amd64-*-* is an alias for x86_64-*-*) on GNU/Linux, FreeBSD and NetBSD.
   3722 On GNU/Linux the default is a bi-arch compiler which is able to generate
   3723 both 64-bit x86-64 and 32-bit x86 code (via the `-m32' switch).
   3724 
   3725 xtensa*-*-elf
   3726 =============
   3727 
   3728 This target is intended for embedded Xtensa systems using the `newlib'
   3729 C library.  It uses ELF but does not support shared objects.
   3730 Designed-defined instructions specified via the Tensilica Instruction
   3731 Extension (TIE) language are only supported through inline assembly.
   3732 
   3733    The Xtensa configuration information must be specified prior to
   3734 building GCC.  The `include/xtensa-config.h' header file contains the
   3735 configuration information.  If you created your own Xtensa
   3736 configuration with the Xtensa Processor Generator, the downloaded files
   3737 include a customized copy of this header file, which you can use to
   3738 replace the default header file.
   3739 
   3740 xtensa*-*-linux*
   3741 ================
   3742 
   3743 This target is for Xtensa systems running GNU/Linux.  It supports ELF
   3744 shared objects and the GNU C library (glibc).  It also generates
   3745 position-independent code (PIC) regardless of whether the `-fpic' or
   3746 `-fPIC' options are used.  In other respects, this target is the same
   3747 as the `xtensa*-*-elf' target.
   3748 
   3749 Microsoft Windows
   3750 =================
   3751 
   3752 Intel 16-bit versions
   3753 ---------------------
   3754 
   3755 The 16-bit versions of Microsoft Windows, such as Windows 3.1, are not
   3756 supported.
   3757 
   3758    However, the 32-bit port has limited support for Microsoft Windows
   3759 3.11 in the Win32s environment, as a target only.  See below.
   3760 
   3761 Intel 32-bit versions
   3762 ---------------------
   3763 
   3764 The 32-bit versions of Windows, including Windows 95, Windows NT,
   3765 Windows XP, and Windows Vista, are supported by several different target
   3766 platforms.  These targets differ in which Windows subsystem they target
   3767 and which C libraries are used.
   3768 
   3769    * Cygwin *-*-cygwin: Cygwin provides a user-space Linux API
   3770      emulation layer in the Win32 subsystem.
   3771 
   3772    * Interix *-*-interix: The Interix subsystem provides native support
   3773      for POSIX.
   3774 
   3775    * MinGW *-*-mingw32: MinGW is a native GCC port for the Win32
   3776      subsystem that provides a subset of POSIX.
   3777 
   3778    * MKS i386-pc-mks: NuTCracker from MKS.  See
   3779      `http://www.mkssoftware.com/' for more information.
   3780 
   3781 Intel 64-bit versions
   3782 ---------------------
   3783 
   3784 GCC contains support for x86-64 using the mingw-w64 runtime library,
   3785 available from `http://mingw-w64.sourceforge.net/'.  This library
   3786 should be used with the target triple x86_64-pc-mingw32.
   3787 
   3788    Presently Windows for Itanium is not supported.
   3789 
   3790 Windows CE
   3791 ----------
   3792 
   3793 Windows CE is supported as a target only on ARM (arm-wince-pe), Hitachi
   3794 SuperH (sh-wince-pe), and MIPS (mips-wince-pe).
   3795 
   3796 Other Windows Platforms
   3797 -----------------------
   3798 
   3799 GCC no longer supports Windows NT on the Alpha or PowerPC.
   3800 
   3801    GCC no longer supports the Windows POSIX subsystem.  However, it does
   3802 support the Interix subsystem.  See above.
   3803 
   3804    Old target names including *-*-winnt and *-*-windowsnt are no longer
   3805 used.
   3806 
   3807    PW32 (i386-pc-pw32) support was never completed, and the project
   3808 seems to be inactive.  See `http://pw32.sourceforge.net/' for more
   3809 information.
   3810 
   3811    UWIN support has been removed due to a lack of maintenance.
   3812 
   3813 *-*-cygwin
   3814 ==========
   3815 
   3816 Ports of GCC are included with the Cygwin environment.
   3817 
   3818    GCC will build under Cygwin without modification; it does not build
   3819 with Microsoft's C++ compiler and there are no plans to make it do so.
   3820 
   3821    The Cygwin native compiler can be configured to target any 32-bit x86
   3822 cpu architecture desired; the default is i686-pc-cygwin.  It should be
   3823 used with as up-to-date a version of binutils as possible; use either
   3824 the latest official GNU binutils release in the Cygwin distribution, or
   3825 version 2.20 or above if building your own.
   3826 
   3827 *-*-interix
   3828 ===========
   3829 
   3830 The Interix target is used by OpenNT, Interix, Services For UNIX (SFU),
   3831 and Subsystem for UNIX-based Applications (SUA).  Applications compiled
   3832 with this target run in the Interix subsystem, which is separate from
   3833 the Win32 subsystem.  This target was last known to work in GCC 3.3.
   3834 
   3835 *-*-mingw32
   3836 ===========
   3837 
   3838 GCC will build with and support only MinGW runtime 3.12 and later.
   3839 Earlier versions of headers are incompatible with the new default
   3840 semantics of `extern inline' in `-std=c99' and `-std=gnu99' modes.
   3841 
   3842 Older systems
   3843 =============
   3844 
   3845 GCC contains support files for many older (1980s and early 1990s) Unix
   3846 variants.  For the most part, support for these systems has not been
   3847 deliberately removed, but it has not been maintained for several years
   3848 and may suffer from bitrot.
   3849 
   3850    Starting with GCC 3.1, each release has a list of "obsoleted"
   3851 systems.  Support for these systems is still present in that release,
   3852 but `configure' will fail unless the `--enable-obsolete' option is
   3853 given.  Unless a maintainer steps forward, support for these systems
   3854 will be removed from the next release of GCC.
   3855 
   3856    Support for old systems as hosts for GCC can cause problems if the
   3857 workarounds for compiler, library and operating system bugs affect the
   3858 cleanliness or maintainability of the rest of GCC.  In some cases, to
   3859 bring GCC up on such a system, if still possible with current GCC, may
   3860 require first installing an old version of GCC which did work on that
   3861 system, and using it to compile a more recent GCC, to avoid bugs in the
   3862 vendor compiler.  Old releases of GCC 1 and GCC 2 are available in the
   3863 `old-releases' directory on the GCC mirror sites.  Header bugs may
   3864 generally be avoided using `fixincludes', but bugs or deficiencies in
   3865 libraries and the operating system may still cause problems.
   3866 
   3867    Support for older systems as targets for cross-compilation is less
   3868 problematic than support for them as hosts for GCC; if an enthusiast
   3869 wishes to make such a target work again (including resurrecting any of
   3870 the targets that never worked with GCC 2, starting from the last
   3871 version before they were removed), patches following the usual
   3872 requirements would be likely to be accepted, since they should not
   3873 affect the support for more modern targets.
   3874 
   3875    For some systems, old versions of GNU binutils may also be useful,
   3876 and are available from `pub/binutils/old-releases' on sourceware.org
   3877 mirror sites.
   3878 
   3879    Some of the information on specific systems above relates to such
   3880 older systems, but much of the information about GCC on such systems
   3881 (which may no longer be applicable to current GCC) is to be found in
   3882 the GCC texinfo manual.
   3883 
   3884 all ELF targets (SVR4, Solaris 2, etc.)
   3885 =======================================
   3886 
   3887 C++ support is significantly better on ELF targets if you use the GNU
   3888 linker; duplicate copies of inlines, vtables and template
   3889 instantiations will be discarded automatically.
   3890 
   3891 
   3892 File: gccinstall.info,  Node: Old,  Next: GNU Free Documentation License,  Prev: Specific,  Up: Top
   3893 
   3894 10 Old installation documentation
   3895 *********************************
   3896 
   3897    Note most of this information is out of date and superseded by the
   3898 previous chapters of this manual.  It is provided for historical
   3899 reference only, because of a lack of volunteers to merge it into the
   3900 main manual.
   3901 
   3902 * Menu:
   3903 
   3904 * Configurations::    Configurations Supported by GCC.
   3905 
   3906    Here is the procedure for installing GCC on a GNU or Unix system.
   3907 
   3908   1. If you have chosen a configuration for GCC which requires other GNU
   3909      tools (such as GAS or the GNU linker) instead of the standard
   3910      system tools, install the required tools in the build directory
   3911      under the names `as', `ld' or whatever is appropriate.
   3912 
   3913      Alternatively, you can do subsequent compilation using a value of
   3914      the `PATH' environment variable such that the necessary GNU tools
   3915      come before the standard system tools.
   3916 
   3917   2. Specify the host, build and target machine configurations.  You do
   3918      this when you run the `configure' script.
   3919 
   3920      The "build" machine is the system which you are using, the "host"
   3921      machine is the system where you want to run the resulting compiler
   3922      (normally the build machine), and the "target" machine is the
   3923      system for which you want the compiler to generate code.
   3924 
   3925      If you are building a compiler to produce code for the machine it
   3926      runs on (a native compiler), you normally do not need to specify
   3927      any operands to `configure'; it will try to guess the type of
   3928      machine you are on and use that as the build, host and target
   3929      machines.  So you don't need to specify a configuration when
   3930      building a native compiler unless `configure' cannot figure out
   3931      what your configuration is or guesses wrong.
   3932 
   3933      In those cases, specify the build machine's "configuration name"
   3934      with the `--host' option; the host and target will default to be
   3935      the same as the host machine.
   3936 
   3937      Here is an example:
   3938 
   3939           ./configure --host=sparc-sun-sunos4.1
   3940 
   3941      A configuration name may be canonical or it may be more or less
   3942      abbreviated.
   3943 
   3944      A canonical configuration name has three parts, separated by
   3945      dashes.  It looks like this: `CPU-COMPANY-SYSTEM'.  (The three
   3946      parts may themselves contain dashes; `configure' can figure out
   3947      which dashes serve which purpose.)  For example,
   3948      `m68k-sun-sunos4.1' specifies a Sun 3.
   3949 
   3950      You can also replace parts of the configuration by nicknames or
   3951      aliases.  For example, `sun3' stands for `m68k-sun', so
   3952      `sun3-sunos4.1' is another way to specify a Sun 3.
   3953 
   3954      You can specify a version number after any of the system types,
   3955      and some of the CPU types.  In most cases, the version is
   3956      irrelevant, and will be ignored.  So you might as well specify the
   3957      version if you know it.
   3958 
   3959      See *note Configurations::, for a list of supported configuration
   3960      names and notes on many of the configurations.  You should check
   3961      the notes in that section before proceeding any further with the
   3962      installation of GCC.
   3963 
   3964 
   3965 
   3966 File: gccinstall.info,  Node: Configurations,  Up: Old
   3967 
   3968 10.1 Configurations Supported by GCC
   3969 ====================================
   3970 
   3971    Here are the possible CPU types:
   3972 
   3973      1750a, a29k, alpha, arm, avr, cN, clipper, dsp16xx, elxsi, fr30,
   3974      h8300, hppa1.0, hppa1.1, i370, i386, i486, i586, i686, i786, i860,
   3975      i960, ip2k, m32r, m68000, m68k, m6811, m6812, m88k, mcore, mips,
   3976      mipsel, mips64, mips64el, mn10200, mn10300, ns32k, pdp11, powerpc,
   3977      powerpcle, romp, rs6000, sh, sparc, sparclite, sparc64, v850, vax,
   3978      we32k.
   3979 
   3980    Here are the recognized company names.  As you can see, customary
   3981 abbreviations are used rather than the longer official names.
   3982 
   3983      acorn, alliant, altos, apollo, apple, att, bull, cbm, convergent,
   3984      convex, crds, dec, dg, dolphin, elxsi, encore, harris, hitachi,
   3985      hp, ibm, intergraph, isi, mips, motorola, ncr, next, ns, omron,
   3986      plexus, sequent, sgi, sony, sun, tti, unicom, wrs.
   3987 
   3988    The company name is meaningful only to disambiguate when the rest of
   3989 the information supplied is insufficient.  You can omit it, writing
   3990 just `CPU-SYSTEM', if it is not needed.  For example, `vax-ultrix4.2'
   3991 is equivalent to `vax-dec-ultrix4.2'.
   3992 
   3993    Here is a list of system types:
   3994 
   3995      386bsd, aix, acis, amigaos, aos, aout, aux, bosx, bsd, clix, coff,
   3996      ctix, cxux, dgux, dynix, ebmon, ecoff, elf, esix, freebsd, hms,
   3997      genix, gnu, linux, linux-gnu, hiux, hpux, iris, irix, isc, luna,
   3998      lynxos, mach, minix, msdos, mvs, netbsd, newsos, nindy, ns, osf,
   3999      osfrose, ptx, riscix, riscos, rtu, sco, sim, solaris, sunos, sym,
   4000      sysv, udi, ultrix, unicos, uniplus, unos, vms, vsta, vxworks,
   4001      winnt, xenix.
   4002 
   4003 You can omit the system type; then `configure' guesses the operating
   4004 system from the CPU and company.
   4005 
   4006    You can add a version number to the system type; this may or may not
   4007 make a difference.  For example, you can write `bsd4.3' or `bsd4.4' to
   4008 distinguish versions of BSD.  In practice, the version number is most
   4009 needed for `sysv3' and `sysv4', which are often treated differently.
   4010 
   4011    `linux-gnu' is the canonical name for the GNU/Linux target; however
   4012 GCC will also accept `linux'.  The version of the kernel in use is not
   4013 relevant on these systems.  A suffix such as `libc1' or `aout'
   4014 distinguishes major versions of the C library; all of the suffixed
   4015 versions are obsolete.
   4016 
   4017    If you specify an impossible combination such as `i860-dg-vms', then
   4018 you may get an error message from `configure', or it may ignore part of
   4019 the information and do the best it can with the rest.  `configure'
   4020 always prints the canonical name for the alternative that it used.  GCC
   4021 does not support all possible alternatives.
   4022 
   4023    Often a particular model of machine has a name.  Many machine names
   4024 are recognized as aliases for CPU/company combinations.  Thus, the
   4025 machine name `sun3', mentioned above, is an alias for `m68k-sun'.
   4026 Sometimes we accept a company name as a machine name, when the name is
   4027 popularly used for a particular machine.  Here is a table of the known
   4028 machine names:
   4029 
   4030      3300, 3b1, 3bN, 7300, altos3068, altos, apollo68, att-7300,
   4031      balance, convex-cN, crds, decstation-3100, decstation, delta,
   4032      encore, fx2800, gmicro, hp7NN, hp8NN, hp9k2NN, hp9k3NN, hp9k7NN,
   4033      hp9k8NN, iris4d, iris, isi68, m3230, magnum, merlin, miniframe,
   4034      mmax, news-3600, news800, news, next, pbd, pc532, pmax, powerpc,
   4035      powerpcle, ps2, risc-news, rtpc, sun2, sun386i, sun386, sun3,
   4036      sun4, symmetry, tower-32, tower.
   4037 
   4038 Remember that a machine name specifies both the cpu type and the company
   4039 name.  If you want to install your own homemade configuration files,
   4040 you can use `local' as the company name to access them.  If you use
   4041 configuration `CPU-local', the configuration name without the cpu prefix
   4042 is used to form the configuration file names.
   4043 
   4044    Thus, if you specify `m68k-local', configuration uses files
   4045 `m68k.md', `local.h', `m68k.c', `xm-local.h', `t-local', and `x-local',
   4046 all in the directory `config/m68k'.
   4047 
   4048 
   4049 File: gccinstall.info,  Node: GNU Free Documentation License,  Next: Concept Index,  Prev: Old,  Up: Top
   4050 
   4051 GNU Free Documentation License
   4052 ******************************
   4053 
   4054                      Version 1.3, 3 November 2008
   4055 
   4056      Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
   4057      `http://fsf.org/'
   4058 
   4059      Everyone is permitted to copy and distribute verbatim copies
   4060      of this license document, but changing it is not allowed.
   4061 
   4062   0. PREAMBLE
   4063 
   4064      The purpose of this License is to make a manual, textbook, or other
   4065      functional and useful document "free" in the sense of freedom: to
   4066      assure everyone the effective freedom to copy and redistribute it,
   4067      with or without modifying it, either commercially or
   4068      noncommercially.  Secondarily, this License preserves for the
   4069      author and publisher a way to get credit for their work, while not
   4070      being considered responsible for modifications made by others.
   4071 
   4072      This License is a kind of "copyleft", which means that derivative
   4073      works of the document must themselves be free in the same sense.
   4074      It complements the GNU General Public License, which is a copyleft
   4075      license designed for free software.
   4076 
   4077      We have designed this License in order to use it for manuals for
   4078      free software, because free software needs free documentation: a
   4079      free program should come with manuals providing the same freedoms
   4080      that the software does.  But this License is not limited to
   4081      software manuals; it can be used for any textual work, regardless
   4082      of subject matter or whether it is published as a printed book.
   4083      We recommend this License principally for works whose purpose is
   4084      instruction or reference.
   4085 
   4086   1. APPLICABILITY AND DEFINITIONS
   4087 
   4088      This License applies to any manual or other work, in any medium,
   4089      that contains a notice placed by the copyright holder saying it
   4090      can be distributed under the terms of this License.  Such a notice
   4091      grants a world-wide, royalty-free license, unlimited in duration,
   4092      to use that work under the conditions stated herein.  The
   4093      "Document", below, refers to any such manual or work.  Any member
   4094      of the public is a licensee, and is addressed as "you".  You
   4095      accept the license if you copy, modify or distribute the work in a
   4096      way requiring permission under copyright law.
   4097 
   4098      A "Modified Version" of the Document means any work containing the
   4099      Document or a portion of it, either copied verbatim, or with
   4100      modifications and/or translated into another language.
   4101 
   4102      A "Secondary Section" is a named appendix or a front-matter section
   4103      of the Document that deals exclusively with the relationship of the
   4104      publishers or authors of the Document to the Document's overall
   4105      subject (or to related matters) and contains nothing that could
   4106      fall directly within that overall subject.  (Thus, if the Document
   4107      is in part a textbook of mathematics, a Secondary Section may not
   4108      explain any mathematics.)  The relationship could be a matter of
   4109      historical connection with the subject or with related matters, or
   4110      of legal, commercial, philosophical, ethical or political position
   4111      regarding them.
   4112 
   4113      The "Invariant Sections" are certain Secondary Sections whose
   4114      titles are designated, as being those of Invariant Sections, in
   4115      the notice that says that the Document is released under this
   4116      License.  If a section does not fit the above definition of
   4117      Secondary then it is not allowed to be designated as Invariant.
   4118      The Document may contain zero Invariant Sections.  If the Document
   4119      does not identify any Invariant Sections then there are none.
   4120 
   4121      The "Cover Texts" are certain short passages of text that are
   4122      listed, as Front-Cover Texts or Back-Cover Texts, in the notice
   4123      that says that the Document is released under this License.  A
   4124      Front-Cover Text may be at most 5 words, and a Back-Cover Text may
   4125      be at most 25 words.
   4126 
   4127      A "Transparent" copy of the Document means a machine-readable copy,
   4128      represented in a format whose specification is available to the
   4129      general public, that is suitable for revising the document
   4130      straightforwardly with generic text editors or (for images
   4131      composed of pixels) generic paint programs or (for drawings) some
   4132      widely available drawing editor, and that is suitable for input to
   4133      text formatters or for automatic translation to a variety of
   4134      formats suitable for input to text formatters.  A copy made in an
   4135      otherwise Transparent file format whose markup, or absence of
   4136      markup, has been arranged to thwart or discourage subsequent
   4137      modification by readers is not Transparent.  An image format is
   4138      not Transparent if used for any substantial amount of text.  A
   4139      copy that is not "Transparent" is called "Opaque".
   4140 
   4141      Examples of suitable formats for Transparent copies include plain
   4142      ASCII without markup, Texinfo input format, LaTeX input format,
   4143      SGML or XML using a publicly available DTD, and
   4144      standard-conforming simple HTML, PostScript or PDF designed for
   4145      human modification.  Examples of transparent image formats include
   4146      PNG, XCF and JPG.  Opaque formats include proprietary formats that
   4147      can be read and edited only by proprietary word processors, SGML or
   4148      XML for which the DTD and/or processing tools are not generally
   4149      available, and the machine-generated HTML, PostScript or PDF
   4150      produced by some word processors for output purposes only.
   4151 
   4152      The "Title Page" means, for a printed book, the title page itself,
   4153      plus such following pages as are needed to hold, legibly, the
   4154      material this License requires to appear in the title page.  For
   4155      works in formats which do not have any title page as such, "Title
   4156      Page" means the text near the most prominent appearance of the
   4157      work's title, preceding the beginning of the body of the text.
   4158 
   4159      The "publisher" means any person or entity that distributes copies
   4160      of the Document to the public.
   4161 
   4162      A section "Entitled XYZ" means a named subunit of the Document
   4163      whose title either is precisely XYZ or contains XYZ in parentheses
   4164      following text that translates XYZ in another language.  (Here XYZ
   4165      stands for a specific section name mentioned below, such as
   4166      "Acknowledgements", "Dedications", "Endorsements", or "History".)
   4167      To "Preserve the Title" of such a section when you modify the
   4168      Document means that it remains a section "Entitled XYZ" according
   4169      to this definition.
   4170 
   4171      The Document may include Warranty Disclaimers next to the notice
   4172      which states that this License applies to the Document.  These
   4173      Warranty Disclaimers are considered to be included by reference in
   4174      this License, but only as regards disclaiming warranties: any other
   4175      implication that these Warranty Disclaimers may have is void and
   4176      has no effect on the meaning of this License.
   4177 
   4178   2. VERBATIM COPYING
   4179 
   4180      You may copy and distribute the Document in any medium, either
   4181      commercially or noncommercially, provided that this License, the
   4182      copyright notices, and the license notice saying this License
   4183      applies to the Document are reproduced in all copies, and that you
   4184      add no other conditions whatsoever to those of this License.  You
   4185      may not use technical measures to obstruct or control the reading
   4186      or further copying of the copies you make or distribute.  However,
   4187      you may accept compensation in exchange for copies.  If you
   4188      distribute a large enough number of copies you must also follow
   4189      the conditions in section 3.
   4190 
   4191      You may also lend copies, under the same conditions stated above,
   4192      and you may publicly display copies.
   4193 
   4194   3. COPYING IN QUANTITY
   4195 
   4196      If you publish printed copies (or copies in media that commonly
   4197      have printed covers) of the Document, numbering more than 100, and
   4198      the Document's license notice requires Cover Texts, you must
   4199      enclose the copies in covers that carry, clearly and legibly, all
   4200      these Cover Texts: Front-Cover Texts on the front cover, and
   4201      Back-Cover Texts on the back cover.  Both covers must also clearly
   4202      and legibly identify you as the publisher of these copies.  The
   4203      front cover must present the full title with all words of the
   4204      title equally prominent and visible.  You may add other material
   4205      on the covers in addition.  Copying with changes limited to the
   4206      covers, as long as they preserve the title of the Document and
   4207      satisfy these conditions, can be treated as verbatim copying in
   4208      other respects.
   4209 
   4210      If the required texts for either cover are too voluminous to fit
   4211      legibly, you should put the first ones listed (as many as fit
   4212      reasonably) on the actual cover, and continue the rest onto
   4213      adjacent pages.
   4214 
   4215      If you publish or distribute Opaque copies of the Document
   4216      numbering more than 100, you must either include a
   4217      machine-readable Transparent copy along with each Opaque copy, or
   4218      state in or with each Opaque copy a computer-network location from
   4219      which the general network-using public has access to download
   4220      using public-standard network protocols a complete Transparent
   4221      copy of the Document, free of added material.  If you use the
   4222      latter option, you must take reasonably prudent steps, when you
   4223      begin distribution of Opaque copies in quantity, to ensure that
   4224      this Transparent copy will remain thus accessible at the stated
   4225      location until at least one year after the last time you
   4226      distribute an Opaque copy (directly or through your agents or
   4227      retailers) of that edition to the public.
   4228 
   4229      It is requested, but not required, that you contact the authors of
   4230      the Document well before redistributing any large number of
   4231      copies, to give them a chance to provide you with an updated
   4232      version of the Document.
   4233 
   4234   4. MODIFICATIONS
   4235 
   4236      You may copy and distribute a Modified Version of the Document
   4237      under the conditions of sections 2 and 3 above, provided that you
   4238      release the Modified Version under precisely this License, with
   4239      the Modified Version filling the role of the Document, thus
   4240      licensing distribution and modification of the Modified Version to
   4241      whoever possesses a copy of it.  In addition, you must do these
   4242      things in the Modified Version:
   4243 
   4244        A. Use in the Title Page (and on the covers, if any) a title
   4245           distinct from that of the Document, and from those of
   4246           previous versions (which should, if there were any, be listed
   4247           in the History section of the Document).  You may use the
   4248           same title as a previous version if the original publisher of
   4249           that version gives permission.
   4250 
   4251        B. List on the Title Page, as authors, one or more persons or
   4252           entities responsible for authorship of the modifications in
   4253           the Modified Version, together with at least five of the
   4254           principal authors of the Document (all of its principal
   4255           authors, if it has fewer than five), unless they release you
   4256           from this requirement.
   4257 
   4258        C. State on the Title page the name of the publisher of the
   4259           Modified Version, as the publisher.
   4260 
   4261        D. Preserve all the copyright notices of the Document.
   4262 
   4263        E. Add an appropriate copyright notice for your modifications
   4264           adjacent to the other copyright notices.
   4265 
   4266        F. Include, immediately after the copyright notices, a license
   4267           notice giving the public permission to use the Modified
   4268           Version under the terms of this License, in the form shown in
   4269           the Addendum below.
   4270 
   4271        G. Preserve in that license notice the full lists of Invariant
   4272           Sections and required Cover Texts given in the Document's
   4273           license notice.
   4274 
   4275        H. Include an unaltered copy of this License.
   4276 
   4277        I. Preserve the section Entitled "History", Preserve its Title,
   4278           and add to it an item stating at least the title, year, new
   4279           authors, and publisher of the Modified Version as given on
   4280           the Title Page.  If there is no section Entitled "History" in
   4281           the Document, create one stating the title, year, authors,
   4282           and publisher of the Document as given on its Title Page,
   4283           then add an item describing the Modified Version as stated in
   4284           the previous sentence.
   4285 
   4286        J. Preserve the network location, if any, given in the Document
   4287           for public access to a Transparent copy of the Document, and
   4288           likewise the network locations given in the Document for
   4289           previous versions it was based on.  These may be placed in
   4290           the "History" section.  You may omit a network location for a
   4291           work that was published at least four years before the
   4292           Document itself, or if the original publisher of the version
   4293           it refers to gives permission.
   4294 
   4295        K. For any section Entitled "Acknowledgements" or "Dedications",
   4296           Preserve the Title of the section, and preserve in the
   4297           section all the substance and tone of each of the contributor
   4298           acknowledgements and/or dedications given therein.
   4299 
   4300        L. Preserve all the Invariant Sections of the Document,
   4301           unaltered in their text and in their titles.  Section numbers
   4302           or the equivalent are not considered part of the section
   4303           titles.
   4304 
   4305        M. Delete any section Entitled "Endorsements".  Such a section
   4306           may not be included in the Modified Version.
   4307 
   4308        N. Do not retitle any existing section to be Entitled
   4309           "Endorsements" or to conflict in title with any Invariant
   4310           Section.
   4311 
   4312        O. Preserve any Warranty Disclaimers.
   4313 
   4314      If the Modified Version includes new front-matter sections or
   4315      appendices that qualify as Secondary Sections and contain no
   4316      material copied from the Document, you may at your option
   4317      designate some or all of these sections as invariant.  To do this,
   4318      add their titles to the list of Invariant Sections in the Modified
   4319      Version's license notice.  These titles must be distinct from any
   4320      other section titles.
   4321 
   4322      You may add a section Entitled "Endorsements", provided it contains
   4323      nothing but endorsements of your Modified Version by various
   4324      parties--for example, statements of peer review or that the text
   4325      has been approved by an organization as the authoritative
   4326      definition of a standard.
   4327 
   4328      You may add a passage of up to five words as a Front-Cover Text,
   4329      and a passage of up to 25 words as a Back-Cover Text, to the end
   4330      of the list of Cover Texts in the Modified Version.  Only one
   4331      passage of Front-Cover Text and one of Back-Cover Text may be
   4332      added by (or through arrangements made by) any one entity.  If the
   4333      Document already includes a cover text for the same cover,
   4334      previously added by you or by arrangement made by the same entity
   4335      you are acting on behalf of, you may not add another; but you may
   4336      replace the old one, on explicit permission from the previous
   4337      publisher that added the old one.
   4338 
   4339      The author(s) and publisher(s) of the Document do not by this
   4340      License give permission to use their names for publicity for or to
   4341      assert or imply endorsement of any Modified Version.
   4342 
   4343   5. COMBINING DOCUMENTS
   4344 
   4345      You may combine the Document with other documents released under
   4346      this License, under the terms defined in section 4 above for
   4347      modified versions, provided that you include in the combination
   4348      all of the Invariant Sections of all of the original documents,
   4349      unmodified, and list them all as Invariant Sections of your
   4350      combined work in its license notice, and that you preserve all
   4351      their Warranty Disclaimers.
   4352 
   4353      The combined work need only contain one copy of this License, and
   4354      multiple identical Invariant Sections may be replaced with a single
   4355      copy.  If there are multiple Invariant Sections with the same name
   4356      but different contents, make the title of each such section unique
   4357      by adding at the end of it, in parentheses, the name of the
   4358      original author or publisher of that section if known, or else a
   4359      unique number.  Make the same adjustment to the section titles in
   4360      the list of Invariant Sections in the license notice of the
   4361      combined work.
   4362 
   4363      In the combination, you must combine any sections Entitled
   4364      "History" in the various original documents, forming one section
   4365      Entitled "History"; likewise combine any sections Entitled
   4366      "Acknowledgements", and any sections Entitled "Dedications".  You
   4367      must delete all sections Entitled "Endorsements."
   4368 
   4369   6. COLLECTIONS OF DOCUMENTS
   4370 
   4371      You may make a collection consisting of the Document and other
   4372      documents released under this License, and replace the individual
   4373      copies of this License in the various documents with a single copy
   4374      that is included in the collection, provided that you follow the
   4375      rules of this License for verbatim copying of each of the
   4376      documents in all other respects.
   4377 
   4378      You may extract a single document from such a collection, and
   4379      distribute it individually under this License, provided you insert
   4380      a copy of this License into the extracted document, and follow
   4381      this License in all other respects regarding verbatim copying of
   4382      that document.
   4383 
   4384   7. AGGREGATION WITH INDEPENDENT WORKS
   4385 
   4386      A compilation of the Document or its derivatives with other
   4387      separate and independent documents or works, in or on a volume of
   4388      a storage or distribution medium, is called an "aggregate" if the
   4389      copyright resulting from the compilation is not used to limit the
   4390      legal rights of the compilation's users beyond what the individual
   4391      works permit.  When the Document is included in an aggregate, this
   4392      License does not apply to the other works in the aggregate which
   4393      are not themselves derivative works of the Document.
   4394 
   4395      If the Cover Text requirement of section 3 is applicable to these
   4396      copies of the Document, then if the Document is less than one half
   4397      of the entire aggregate, the Document's Cover Texts may be placed
   4398      on covers that bracket the Document within the aggregate, or the
   4399      electronic equivalent of covers if the Document is in electronic
   4400      form.  Otherwise they must appear on printed covers that bracket
   4401      the whole aggregate.
   4402 
   4403   8. TRANSLATION
   4404 
   4405      Translation is considered a kind of modification, so you may
   4406      distribute translations of the Document under the terms of section
   4407      4.  Replacing Invariant Sections with translations requires special
   4408      permission from their copyright holders, but you may include
   4409      translations of some or all Invariant Sections in addition to the
   4410      original versions of these Invariant Sections.  You may include a
   4411      translation of this License, and all the license notices in the
   4412      Document, and any Warranty Disclaimers, provided that you also
   4413      include the original English version of this License and the
   4414      original versions of those notices and disclaimers.  In case of a
   4415      disagreement between the translation and the original version of
   4416      this License or a notice or disclaimer, the original version will
   4417      prevail.
   4418 
   4419      If a section in the Document is Entitled "Acknowledgements",
   4420      "Dedications", or "History", the requirement (section 4) to
   4421      Preserve its Title (section 1) will typically require changing the
   4422      actual title.
   4423 
   4424   9. TERMINATION
   4425 
   4426      You may not copy, modify, sublicense, or distribute the Document
   4427      except as expressly provided under this License.  Any attempt
   4428      otherwise to copy, modify, sublicense, or distribute it is void,
   4429      and will automatically terminate your rights under this License.
   4430 
   4431      However, if you cease all violation of this License, then your
   4432      license from a particular copyright holder is reinstated (a)
   4433      provisionally, unless and until the copyright holder explicitly
   4434      and finally terminates your license, and (b) permanently, if the
   4435      copyright holder fails to notify you of the violation by some
   4436      reasonable means prior to 60 days after the cessation.
   4437 
   4438      Moreover, your license from a particular copyright holder is
   4439      reinstated permanently if the copyright holder notifies you of the
   4440      violation by some reasonable means, this is the first time you have
   4441      received notice of violation of this License (for any work) from
   4442      that copyright holder, and you cure the violation prior to 30 days
   4443      after your receipt of the notice.
   4444 
   4445      Termination of your rights under this section does not terminate
   4446      the licenses of parties who have received copies or rights from
   4447      you under this License.  If your rights have been terminated and
   4448      not permanently reinstated, receipt of a copy of some or all of
   4449      the same material does not give you any rights to use it.
   4450 
   4451  10. FUTURE REVISIONS OF THIS LICENSE
   4452 
   4453      The Free Software Foundation may publish new, revised versions of
   4454      the GNU Free Documentation License from time to time.  Such new
   4455      versions will be similar in spirit to the present version, but may
   4456      differ in detail to address new problems or concerns.  See
   4457      `http://www.gnu.org/copyleft/'.
   4458 
   4459      Each version of the License is given a distinguishing version
   4460      number.  If the Document specifies that a particular numbered
   4461      version of this License "or any later version" applies to it, you
   4462      have the option of following the terms and conditions either of
   4463      that specified version or of any later version that has been
   4464      published (not as a draft) by the Free Software Foundation.  If
   4465      the Document does not specify a version number of this License,
   4466      you may choose any version ever published (not as a draft) by the
   4467      Free Software Foundation.  If the Document specifies that a proxy
   4468      can decide which future versions of this License can be used, that
   4469      proxy's public statement of acceptance of a version permanently
   4470      authorizes you to choose that version for the Document.
   4471 
   4472  11. RELICENSING
   4473 
   4474      "Massive Multiauthor Collaboration Site" (or "MMC Site") means any
   4475      World Wide Web server that publishes copyrightable works and also
   4476      provides prominent facilities for anybody to edit those works.  A
   4477      public wiki that anybody can edit is an example of such a server.
   4478      A "Massive Multiauthor Collaboration" (or "MMC") contained in the
   4479      site means any set of copyrightable works thus published on the MMC
   4480      site.
   4481 
   4482      "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0
   4483      license published by Creative Commons Corporation, a not-for-profit
   4484      corporation with a principal place of business in San Francisco,
   4485      California, as well as future copyleft versions of that license
   4486      published by that same organization.
   4487 
   4488      "Incorporate" means to publish or republish a Document, in whole or
   4489      in part, as part of another Document.
   4490 
   4491      An MMC is "eligible for relicensing" if it is licensed under this
   4492      License, and if all works that were first published under this
   4493      License somewhere other than this MMC, and subsequently
   4494      incorporated in whole or in part into the MMC, (1) had no cover
   4495      texts or invariant sections, and (2) were thus incorporated prior
   4496      to November 1, 2008.
   4497 
   4498      The operator of an MMC Site may republish an MMC contained in the
   4499      site under CC-BY-SA on the same site at any time before August 1,
   4500      2009, provided the MMC is eligible for relicensing.
   4501 
   4502 
   4503 ADDENDUM: How to use this License for your documents
   4504 ====================================================
   4505 
   4506 To use this License in a document you have written, include a copy of
   4507 the License in the document and put the following copyright and license
   4508 notices just after the title page:
   4509 
   4510        Copyright (C)  YEAR  YOUR NAME.
   4511        Permission is granted to copy, distribute and/or modify this document
   4512        under the terms of the GNU Free Documentation License, Version 1.3
   4513        or any later version published by the Free Software Foundation;
   4514        with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
   4515        Texts.  A copy of the license is included in the section entitled ``GNU
   4516        Free Documentation License''.
   4517 
   4518    If you have Invariant Sections, Front-Cover Texts and Back-Cover
   4519 Texts, replace the "with...Texts." line with this:
   4520 
   4521          with the Invariant Sections being LIST THEIR TITLES, with
   4522          the Front-Cover Texts being LIST, and with the Back-Cover Texts
   4523          being LIST.
   4524 
   4525    If you have Invariant Sections without Cover Texts, or some other
   4526 combination of the three, merge those two alternatives to suit the
   4527 situation.
   4528 
   4529    If your document contains nontrivial examples of program code, we
   4530 recommend releasing these examples in parallel under your choice of
   4531 free software license, such as the GNU General Public License, to
   4532 permit their use in free software.
   4533 
   4534 
   4535 File: gccinstall.info,  Node: Concept Index,  Prev: GNU Free Documentation License,  Up: Top
   4536 
   4537 Concept Index
   4538 *************
   4539 
   4540 [index]
   4541 * Menu:
   4542 
   4543 * Binaries:                              Binaries.           (line    6)
   4544 * build_configargs:                      Configuration.      (line 1437)
   4545 * Configuration:                         Configuration.      (line    6)
   4546 * configurations supported by GCC:       Configurations.     (line    6)
   4547 * Downloading GCC:                       Downloading the source.
   4548                                                              (line    6)
   4549 * Downloading the Source:                Downloading the source.
   4550                                                              (line    6)
   4551 * FDL, GNU Free Documentation License:   GNU Free Documentation License.
   4552                                                              (line    6)
   4553 * Host specific installation:            Specific.           (line    6)
   4554 * host_configargs:                       Configuration.      (line 1441)
   4555 * Installing GCC: Binaries:              Binaries.           (line    6)
   4556 * Installing GCC: Building:              Building.           (line    6)
   4557 * Installing GCC: Configuration:         Configuration.      (line    6)
   4558 * Installing GCC: Testing:               Testing.            (line    6)
   4559 * Prerequisites:                         Prerequisites.      (line    6)
   4560 * Specific:                              Specific.           (line    6)
   4561 * Specific installation notes:           Specific.           (line    6)
   4562 * Target specific installation:          Specific.           (line    6)
   4563 * Target specific installation notes:    Specific.           (line    6)
   4564 * target_configargs:                     Configuration.      (line 1445)
   4565 * Testing:                               Testing.            (line    6)
   4566 * Testsuite:                             Testing.            (line    6)
   4567 
   4568 
   4569 
   4570 Tag Table:
   4571 Node: Top1984
   4572 Node: Installing GCC2542
   4573 Node: Prerequisites4057
   4574 Node: Downloading the source14213
   4575 Node: Configuration16150
   4576 Ref: with-gnu-as31452
   4577 Ref: with-as32350
   4578 Ref: with-gnu-ld33763
   4579 Node: Building79772
   4580 Node: Testing95257
   4581 Node: Final install102954
   4582 Node: Binaries108268
   4583 Node: Specific109869
   4584 Ref: alpha-x-x110375
   4585 Ref: alpha-dec-osf51110864
   4586 Ref: arc-x-elf113062
   4587 Ref: arm-x-elf113162
   4588 Ref: avr113382
   4589 Ref: bfin114022
   4590 Ref: cris114264
   4591 Ref: crx115080
   4592 Ref: dos115758
   4593 Ref: x-x-freebsd116081
   4594 Ref: h8300-hms117918
   4595 Ref: hppa-hp-hpux118270
   4596 Ref: hppa-hp-hpux10120641
   4597 Ref: hppa-hp-hpux11121054
   4598 Ref: x-x-linux-gnu126713
   4599 Ref: ix86-x-linux126906
   4600 Ref: ix86-x-solaris289127219
   4601 Ref: ix86-x-solaris210128063
   4602 Ref: ia64-x-linux129289
   4603 Ref: ia64-x-hpux130059
   4604 Ref: x-ibm-aix130614
   4605 Ref: iq2000-x-elf136852
   4606 Ref: lm32-x-elf136992
   4607 Ref: lm32-x-uclinux137096
   4608 Ref: m32c-x-elf137224
   4609 Ref: m32r-x-elf137326
   4610 Ref: m6811-elf137428
   4611 Ref: m6812-elf137578
   4612 Ref: m68k-x-x137728
   4613 Ref: m68k-x-uclinux138700
   4614 Ref: mep-x-elf139063
   4615 Ref: microblaze-x-elf139173
   4616 Ref: mips-x-x139292
   4617 Ref: mips-sgi-irix5141969
   4618 Ref: mips-sgi-irix6142049
   4619 Ref: moxie-x-elf145117
   4620 Ref: powerpc-x-x145237
   4621 Ref: powerpc-x-darwin145442
   4622 Ref: powerpc-x-elf145936
   4623 Ref: powerpc-x-linux-gnu146021
   4624 Ref: powerpc-x-netbsd146116
   4625 Ref: powerpc-x-eabisim146204
   4626 Ref: powerpc-x-eabi146330
   4627 Ref: powerpcle-x-elf146406
   4628 Ref: powerpcle-x-eabisim146498
   4629 Ref: powerpcle-x-eabi146631
   4630 Ref: rx-x-elf146714
   4631 Ref: s390-x-linux146913
   4632 Ref: s390x-x-linux146985
   4633 Ref: s390x-ibm-tpf147072
   4634 Ref: x-x-solaris2147203
   4635 Ref: sparc-x-x152351
   4636 Ref: sparc-sun-solaris2152853
   4637 Ref: sparc-sun-solaris210155607
   4638 Ref: sparc-x-linux155983
   4639 Ref: sparc64-x-solaris2156208
   4640 Ref: sparcv9-x-solaris2156844
   4641 Ref: x-x-vxworks156931
   4642 Ref: x86-64-x-x158453
   4643 Ref: xtensa-x-elf158781
   4644 Ref: xtensa-x-linux159452
   4645 Ref: windows159793
   4646 Ref: x-x-cygwin161750
   4647 Ref: x-x-interix162303
   4648 Ref: x-x-mingw32162612
   4649 Ref: older162838
   4650 Ref: elf164955
   4651 Node: Old165213
   4652 Node: Configurations168350
   4653 Node: GNU Free Documentation License172332
   4654 Node: Concept Index197479
   4655 
   4656 End Tag Table
   4657