<html lang="en"> <head> <title>Configuration Files - GNU Compiler Collection (GCC) Internals</title> <meta http-equiv="Content-Type" content="text/html"> <meta name="description" content="GNU Compiler Collection (GCC) Internals"> <meta name="generator" content="makeinfo 4.13"> <link title="Top" rel="start" href="index.html#Top"> <link rel="up" href="Configuration.html#Configuration" title="Configuration"> <link rel="prev" href="System-Config.html#System-Config" title="System Config"> <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> <!-- Copyright (C) 1988-2015 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with the Invariant Sections being ``Funding Free Software'', the Front-Cover Texts being (a) (see below), and with the Back-Cover Texts being (b) (see below). A copy of the license is included in the section entitled ``GNU Free Documentation License''. (a) The FSF's Front-Cover Text is: A GNU Manual (b) The FSF's Back-Cover Text is: You have freedom to copy and modify this GNU Manual, like GNU software. Copies published by the Free Software Foundation raise funds for GNU development.--> <meta http-equiv="Content-Style-Type" content="text/css"> <style type="text/css"><!-- pre.display { font-family:inherit } pre.format { font-family:inherit } pre.smalldisplay { font-family:inherit; font-size:smaller } pre.smallformat { font-family:inherit; font-size:smaller } pre.smallexample { font-size:smaller } pre.smalllisp { font-size:smaller } span.sc { font-variant:small-caps } span.roman { font-family:serif; font-weight:normal; } span.sansserif { font-family:sans-serif; font-weight:normal; } --></style> </head> <body> <div class="node"> <a name="Configuration-Files"></a> <p> Previous: <a rel="previous" accesskey="p" href="System-Config.html#System-Config">System Config</a>, Up: <a rel="up" accesskey="u" href="Configuration.html#Configuration">Configuration</a> <hr> </div> <h5 class="subsubsection">6.3.2.3 Files Created by <code>configure</code></h5> <p>Here we spell out what files will be set up by <samp><span class="file">configure</span></samp> in the <samp><span class="file">gcc</span></samp> directory. Some other files are created as temporary files in the configuration process, and are not used in the subsequent build; these are not documented. <ul> <li><samp><span class="file">Makefile</span></samp> is constructed from <samp><span class="file">Makefile.in</span></samp>, together with the host and target fragments (see <a href="Fragments.html#Fragments">Makefile Fragments</a>) <samp><span class="file">t-</span><var>target</var></samp> and <samp><span class="file">x-</span><var>host</var></samp> from <samp><span class="file">config</span></samp>, if any, and language Makefile fragments <samp><var>language</var><span class="file">/Make-lang.in</span></samp>. <li><samp><span class="file">auto-host.h</span></samp> contains information about the host machine determined by <samp><span class="file">configure</span></samp>. If the host machine is different from the build machine, then <samp><span class="file">auto-build.h</span></samp> is also created, containing such information about the build machine. <li><samp><span class="file">config.status</span></samp> is a script that may be run to recreate the current configuration. <li><samp><span class="file">configargs.h</span></samp> is a header containing details of the arguments passed to <samp><span class="file">configure</span></samp> to configure GCC, and of the thread model used. <li><samp><span class="file">cstamp-h</span></samp> is used as a timestamp. <li>If a language <samp><span class="file">config-lang.in</span></samp> file (see <a href="Front-End-Config.html#Front-End-Config">The Front End <samp><span class="file">config-lang.in</span></samp> File</a>) sets <code>outputs</code>, then the files listed in <code>outputs</code> there are also generated. </ul> <p>The following configuration headers are created from the Makefile, using <samp><span class="file">mkconfig.sh</span></samp>, rather than directly by <samp><span class="file">configure</span></samp>. <samp><span class="file">config.h</span></samp>, <samp><span class="file">bconfig.h</span></samp> and <samp><span class="file">tconfig.h</span></samp> all contain the <samp><span class="file">xm-</span><var>machine</var><span class="file">.h</span></samp> header, if any, appropriate to the host, build and target machines respectively, the configuration headers for the target, and some definitions; for the host and build machines, these include the autoconfigured headers generated by <samp><span class="file">configure</span></samp>. The other configuration headers are determined by <samp><span class="file">config.gcc</span></samp>. They also contain the typedefs for <code>rtx</code>, <code>rtvec</code> and <code>tree</code>. <ul> <li><samp><span class="file">config.h</span></samp>, for use in programs that run on the host machine. <li><samp><span class="file">bconfig.h</span></samp>, for use in programs that run on the build machine. <li><samp><span class="file">tconfig.h</span></samp>, for use in programs and libraries for the target machine. <li><samp><span class="file">tm_p.h</span></samp>, which includes the header <samp><var>machine</var><span class="file">-protos.h</span></samp> that contains prototypes for functions in the target <samp><var>machine</var><span class="file">.c</span></samp> file. The header <samp><var>machine</var><span class="file">-protos.h</span></samp> can include prototypes of functions that use rtl and tree data structures inside appropriate <code>#ifdef RTX_CODE</code> and <code>#ifdef TREE_CODE</code> conditional code segements. The <samp><var>machine</var><span class="file">-protos.h</span></samp> is included after the <samp><span class="file">rtl.h</span></samp> and/or <samp><span class="file">tree.h</span></samp> would have been included. The <samp><span class="file">tm_p.h</span></samp> also includes the header <samp><span class="file">tm-preds.h</span></samp> which is generated by <samp><span class="file">genpreds</span></samp> program during the build to define the declarations and inline functions for the predicate functions. </ul> </body></html>