[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[b06ca36] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[673b0d8] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
[6a82dd9] | 7 |
|
---|
[81fd230] | 8 | <sect1 id="ch-system-gcc" role="wrap">
|
---|
[6a82dd9] | 9 | <?dbhtml filename="gcc.html"?>
|
---|
| 10 |
|
---|
[e747759] | 11 | <sect1info condition="script">
|
---|
| 12 | <productname>gcc</productname>
|
---|
| 13 | <productnumber>&gcc-version;</productnumber>
|
---|
| 14 | <address>&gcc-url;</address>
|
---|
| 15 | </sect1info>
|
---|
| 16 |
|
---|
[6a82dd9] | 17 | <title>GCC-&gcc-version;</title>
|
---|
| 18 |
|
---|
| 19 | <indexterm zone="ch-system-gcc">
|
---|
| 20 | <primary sortas="a-GCC">GCC</primary>
|
---|
| 21 | </indexterm>
|
---|
| 22 |
|
---|
| 23 | <sect2 role="package">
|
---|
| 24 | <title/>
|
---|
[6370fa6] | 25 |
|
---|
[6a82dd9] | 26 | <para>The GCC package contains the GNU compiler collection, which includes
|
---|
| 27 | the C and C++ compilers.</para>
|
---|
[673b0d8] | 28 |
|
---|
[6a82dd9] | 29 | <segmentedlist>
|
---|
| 30 | <segtitle>&buildtime;</segtitle>
|
---|
| 31 | <segtitle>&diskspace;</segtitle>
|
---|
[5888299] | 32 |
|
---|
[6a82dd9] | 33 | <seglistitem>
|
---|
[e4a5635] | 34 | <seg>&gcc-ch6-sbu;</seg>
|
---|
| 35 | <seg>&gcc-ch6-du;</seg>
|
---|
[6a82dd9] | 36 | </seglistitem>
|
---|
| 37 | </segmentedlist>
|
---|
[3554fa3a] | 38 |
|
---|
[6a82dd9] | 39 | </sect2>
|
---|
| 40 |
|
---|
| 41 | <sect2 role="installation">
|
---|
| 42 | <title>Installation of GCC</title>
|
---|
[bff5fef] | 43 |
|
---|
| 44 | <para>As in Chapter 5, fix a problem identified upstream:</para>
|
---|
| 45 |
|
---|
| 46 | <screen><userinput remap="pre">sed -i 's/if \((code.*))\)/if (\1 \&\& \!DEBUG_INSN_P (insn))/' gcc/sched-deps.c</userinput></screen>
|
---|
| 47 |
|
---|
[46ded2b] | 48 |
|
---|
[2ba4e30] | 49 | <para>Now fix another problem identified upstream that causes some
|
---|
[61ce0b1] | 50 | programs to fail:</para>
|
---|
| 51 |
|
---|
| 52 | <screen><userinput remap="pre">patch -Np1 -i ../&gcc-upstream-patch;</userinput></screen>
|
---|
[46ded2b] | 53 |
|
---|
[6a82dd9] | 54 | <para>The GCC documentation recommends building GCC outside of the source
|
---|
| 55 | directory in a dedicated build directory:</para>
|
---|
[73aedd1d] | 56 |
|
---|
[0445a3d] | 57 | <screen><userinput remap="pre">mkdir -v ../gcc-build
|
---|
[73aedd1d] | 58 | cd ../gcc-build</userinput></screen>
|
---|
| 59 |
|
---|
[6a82dd9] | 60 | <para>Prepare GCC for compilation:</para>
|
---|
[73aedd1d] | 61 |
|
---|
[329e12a] | 62 | <screen><userinput remap="configure">SED=sed \
|
---|
| 63 | ../gcc-&gcc-version;/configure \
|
---|
| 64 | --prefix=/usr \
|
---|
| 65 | --enable-languages=c,c++ \
|
---|
| 66 | --disable-multilib \
|
---|
| 67 | --disable-bootstrap \
|
---|
[e2c4848] | 68 | --with-system-zlib</userinput></screen>
|
---|
[73aedd1d] | 69 |
|
---|
[1cdaff9] | 70 | <para>Note that for other languages, there are some prerequisites that
|
---|
[bff5fef] | 71 | are not yet available. See the
|
---|
| 72 | <ulink url="&blfs-root;view/&short-version;/general/gcc.html">BLFS Book</ulink>
|
---|
| 73 | for instructions on how to build all of GCC's supported languages.</para>
|
---|
[182d5d3] | 74 |
|
---|
[ae4d45a] | 75 | <variablelist>
|
---|
| 76 | <title>The meaning of the new configure option:</title>
|
---|
[848907c] | 77 |
|
---|
[50420218] | 78 | <varlistentry>
|
---|
[848907c] | 79 | <term><envar>SED=sed</envar></term>
|
---|
[50420218] | 80 | <listitem>
|
---|
[848907c] | 81 | <para>Setting this environment variable prevents a hard-coded
|
---|
| 82 | path to /tools/bin/sed.</para>
|
---|
[50420218] | 83 | </listitem>
|
---|
| 84 | </varlistentry>
|
---|
[848907c] | 85 |
|
---|
[ae4d45a] | 86 | <varlistentry>
|
---|
| 87 | <term><parameter>--with-system-zlib</parameter></term>
|
---|
| 88 | <listitem>
|
---|
| 89 | <para>This switch tells GCC to link to the system installed copy of
|
---|
[8dac2e2] | 90 | the Zlib library, rather than its own internal copy.</para>
|
---|
[ae4d45a] | 91 | </listitem>
|
---|
| 92 | </varlistentry>
|
---|
| 93 | </variablelist>
|
---|
| 94 |
|
---|
[6a82dd9] | 95 | <para>Compile the package:</para>
|
---|
[73aedd1d] | 96 |
|
---|
[0445a3d] | 97 | <screen><userinput remap="make">make</userinput></screen>
|
---|
[73aedd1d] | 98 |
|
---|
[6a82dd9] | 99 | <important>
|
---|
| 100 | <para>In this section, the test suite for GCC is considered
|
---|
| 101 | critical. Do not skip it under any circumstance.</para>
|
---|
| 102 | </important>
|
---|
[81fd230] | 103 |
|
---|
[4e48f56e] | 104 | <para>One set of tests in the GCC test suite is known to exhaust the stack,
|
---|
| 105 | so increase the stack size prior to running the tests:</para>
|
---|
| 106 |
|
---|
[2efa44a] | 107 | <screen><userinput remap="test">ulimit -s 32768</userinput></screen>
|
---|
[4e48f56e] | 108 |
|
---|
[6a82dd9] | 109 | <para>Test the results, but do not stop at errors:</para>
|
---|
[73aedd1d] | 110 |
|
---|
[0445a3d] | 111 | <screen><userinput remap="test">make -k check</userinput></screen>
|
---|
[73aedd1d] | 112 |
|
---|
[9278974d] | 113 | <para>To receive a summary of the test suite results, run:</para>
|
---|
| 114 |
|
---|
[0445a3d] | 115 | <screen><userinput remap="test">../gcc-&gcc-version;/contrib/test_summary</userinput></screen>
|
---|
[9278974d] | 116 |
|
---|
| 117 | <para>For only the summaries, pipe the output through
|
---|
| 118 | <userinput>grep -A7 Summ</userinput>.</para>
|
---|
| 119 |
|
---|
| 120 | <para>Results can be compared with those located at <ulink
|
---|
[536ce32] | 121 | url="&test-results;"/> and <ulink url="http://gcc.gnu.org/ml/gcc-testresults/"/>.</para>
|
---|
[9278974d] | 122 |
|
---|
| 123 | <para>A few unexpected failures cannot always be avoided. The GCC developers
|
---|
[bff5fef] | 124 | are usually aware of these issues, but have not resolved them yet. <!-- In
|
---|
[9278974d] | 125 | particular, the <filename class="libraryfile">libmudflap</filename> tests
|
---|
[16a59d0d] | 126 | are known to be particularly problematic as a result of a bug in GCC
|
---|
[bff5fef] | 127 | (<ulink url="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20003"/>). -->
|
---|
[9278974d] | 128 | Unless the test results are vastly different from those at the above URL,
|
---|
| 129 | it is safe to continue.</para>
|
---|
[73aedd1d] | 130 |
|
---|
[6a82dd9] | 131 | <para>Install the package:</para>
|
---|
[73aedd1d] | 132 |
|
---|
[0445a3d] | 133 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
[73aedd1d] | 134 |
|
---|
[6a82dd9] | 135 | <para>Some packages expect the C preprocessor to be installed in the
|
---|
| 136 | <filename class="directory">/lib</filename> directory.
|
---|
| 137 | To support those packages, create this symlink:</para>
|
---|
[73aedd1d] | 138 |
|
---|
[0445a3d] | 139 | <screen><userinput remap="install">ln -sv ../usr/bin/cpp /lib</userinput></screen>
|
---|
[73aedd1d] | 140 |
|
---|
[6a82dd9] | 141 | <para>Many packages use the name <command>cc</command> to call the C
|
---|
| 142 | compiler. To satisfy those packages, create a symlink:</para>
|
---|
[1ba726f] | 143 |
|
---|
[0445a3d] | 144 | <screen><userinput remap="install">ln -sv gcc /usr/bin/cc</userinput></screen>
|
---|
[1ba726f] | 145 |
|
---|
[61ce0b1] | 146 | <para>Add a compatibility symlink to enable building programs with
|
---|
| 147 | Link Time Optimization (LTO):</para>
|
---|
| 148 |
|
---|
[ef61d078] | 149 | <screen><userinput remap="install">install -v -dm755 /usr/lib/bfd-plugins
|
---|
[63e8d0a] | 150 | ln -sfv ../../libexec/gcc/$(gcc -dumpmachine)/&gcc-version;/liblto_plugin.so /usr/lib/bfd-plugins/</userinput></screen>
|
---|
[61ce0b1] | 151 |
|
---|
[09f1daf] | 152 | <para>Now that our final toolchain is in place, it is important to again ensure
|
---|
| 153 | that compiling and linking will work as expected. We do this by performing
|
---|
| 154 | the same sanity checks as we did earlier in the chapter:</para>
|
---|
| 155 |
|
---|
[d9441360] | 156 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 157 | href="adjusting.xml"
|
---|
[09f1daf] | 158 | xpointer="xpointer(//*[@os='a'])"/>
|
---|
| 159 |
|
---|
[d9441360] | 160 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 161 | href="adjusting.xml"
|
---|
[09f1daf] | 162 | xpointer="xpointer(//*[@os='b'])"/>
|
---|
| 163 |
|
---|
[d9441360] | 164 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 165 | href="adjusting.xml"
|
---|
[09f1daf] | 166 | xpointer="xpointer(//*[@os='c'])"/>
|
---|
| 167 |
|
---|
[d9441360] | 168 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 169 | href="adjusting.xml"
|
---|
[09f1daf] | 170 | xpointer="xpointer(//*[@os='d'])"/>
|
---|
| 171 |
|
---|
[d9441360] | 172 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 173 | href="adjusting.xml"
|
---|
[09f1daf] | 174 | xpointer="xpointer(//*[@os='e'])"/>
|
---|
| 175 |
|
---|
[d9441360] | 176 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 177 | href="adjusting.xml"
|
---|
[09f1daf] | 178 | xpointer="xpointer(//*[@os='f'])"/>
|
---|
| 179 |
|
---|
| 180 | <screen><computeroutput>/usr/lib/gcc/i686-pc-linux-gnu/&gcc-version;/../../../crt1.o succeeded
|
---|
| 181 | /usr/lib/gcc/i686-pc-linux-gnu/&gcc-version;/../../../crti.o succeeded
|
---|
| 182 | /usr/lib/gcc/i686-pc-linux-gnu/&gcc-version;/../../../crtn.o succeeded</computeroutput></screen>
|
---|
| 183 |
|
---|
[6e88633] | 184 | <para>Depending on your machine architecture, the above may differ slightly,
|
---|
| 185 | the difference usually being the name of the directory
|
---|
| 186 | after <filename class="directory">/usr/lib/gcc</filename>. If your machine is
|
---|
| 187 | a 64-bit system, you may also see a directory named <filename class="directory">lib64</filename>
|
---|
| 188 | towards the end of the string. The important thing to
|
---|
[5f7456b] | 189 | look for here is that <command>gcc</command> has found all three
|
---|
| 190 | <filename>crt*.o</filename> files under the
|
---|
| 191 | <filename class="directory">/usr/lib</filename> directory.</para>
|
---|
[6e88633] | 192 |
|
---|
[d9441360] | 193 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 194 | href="adjusting.xml"
|
---|
[09f1daf] | 195 | xpointer="xpointer(//*[@os='g'])"/>
|
---|
| 196 |
|
---|
[041c8f67] | 197 | <screen><userinput>grep -B4 '^ /usr/include' dummy.log</userinput></screen>
|
---|
[e9a652b] | 198 |
|
---|
[d9441360] | 199 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 200 | href="adjusting.xml"
|
---|
[09f1daf] | 201 | xpointer="xpointer(//*[@os='h'])"/>
|
---|
| 202 |
|
---|
[e9a652b] | 203 | <screen><computeroutput>#include <...> search starts here:
|
---|
[865fe24] | 204 | /usr/lib/gcc/i686-pc-linux-gnu/&gcc-version;/include
|
---|
[4818ca8] | 205 | /usr/local/include
|
---|
[3f39abf3] | 206 | /usr/lib/gcc/i686-pc-linux-gnu/&gcc-version;/include-fixed
|
---|
[e9a652b] | 207 | /usr/include</computeroutput></screen>
|
---|
| 208 |
|
---|
[6e88633] | 209 | <para>Again, note that the directory named after your target triplet may be
|
---|
| 210 | different than the above, depending on your architecture.</para>
|
---|
| 211 |
|
---|
[3f39abf3] | 212 | <note><para>As of version 4.3.0, GCC now unconditionally installs the
|
---|
| 213 | <filename>limits.h</filename> file into the private
|
---|
[041c8f67] | 214 | <filename class="directory">include-fixed</filename> directory, and that
|
---|
[3f39abf3] | 215 | directory is required to be in place.</para></note>
|
---|
| 216 |
|
---|
[d9441360] | 217 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 218 | href="adjusting.xml"
|
---|
[09f1daf] | 219 | xpointer="xpointer(//*[@os='i'])"/>
|
---|
| 220 |
|
---|
[d9441360] | 221 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 222 | href="adjusting.xml"
|
---|
[09f1daf] | 223 | xpointer="xpointer(//*[@os='j'])"/>
|
---|
| 224 |
|
---|
[d9441360] | 225 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 226 | href="adjusting.xml"
|
---|
[09f1daf] | 227 | xpointer="xpointer(//*[@os='k'])"/>
|
---|
| 228 |
|
---|
[6f34f43] | 229 | <screen><computeroutput>SEARCH_DIR("/usr/i686-pc-linux-gnu/lib32")
|
---|
| 230 | SEARCH_DIR("/usr/local/lib32")
|
---|
| 231 | SEARCH_DIR("/lib32")
|
---|
| 232 | SEARCH_DIR("/usr/lib32")
|
---|
| 233 | SEARCH_DIR("/usr/i686-pc-linux-gnu/lib")
|
---|
[e9a652b] | 234 | SEARCH_DIR("/usr/local/lib")
|
---|
| 235 | SEARCH_DIR("/lib")
|
---|
[6e88633] | 236 | SEARCH_DIR("/usr/lib");</computeroutput></screen>
|
---|
| 237 |
|
---|
[6f34f43] | 238 | <para>A 64-bit system may see a few different directories. For example, here
|
---|
[f1994dc] | 239 | is the output from an x86_64 machine:</para>
|
---|
[6e88633] | 240 |
|
---|
| 241 | <screen><computeroutput>SEARCH_DIR("/usr/x86_64-unknown-linux-gnu/lib64")
|
---|
| 242 | SEARCH_DIR("/usr/local/lib64")
|
---|
| 243 | SEARCH_DIR("/lib64")
|
---|
| 244 | SEARCH_DIR("/usr/lib64")
|
---|
| 245 | SEARCH_DIR("/usr/x86_64-unknown-linux-gnu/lib")
|
---|
| 246 | SEARCH_DIR("/usr/local/lib")
|
---|
| 247 | SEARCH_DIR("/lib")
|
---|
[e9a652b] | 248 | SEARCH_DIR("/usr/lib");</computeroutput></screen>
|
---|
| 249 |
|
---|
[d9441360] | 250 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 251 | href="adjusting.xml"
|
---|
[09f1daf] | 252 | xpointer="xpointer(//*[@os='l'])"/>
|
---|
| 253 |
|
---|
[d9441360] | 254 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 255 | href="adjusting.xml"
|
---|
[09f1daf] | 256 | xpointer="xpointer(//*[@os='m'])"/>
|
---|
| 257 |
|
---|
[d9441360] | 258 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 259 | href="adjusting.xml"
|
---|
[09f1daf] | 260 | xpointer="xpointer(//*[@os='n'])"/>
|
---|
| 261 |
|
---|
[d9441360] | 262 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 263 | href="adjusting.xml"
|
---|
[09f1daf] | 264 | xpointer="xpointer(//*[@os='o'])"/>
|
---|
| 265 |
|
---|
[d9441360] | 266 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 267 | href="adjusting.xml"
|
---|
[09f1daf] | 268 | xpointer="xpointer(//*[@os='p'])"/>
|
---|
| 269 |
|
---|
[d9441360] | 270 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 271 | href="adjusting.xml"
|
---|
[09f1daf] | 272 | xpointer="xpointer(//*[@os='q'])"/>
|
---|
| 273 |
|
---|
[d9441360] | 274 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 275 | href="adjusting.xml"
|
---|
[09f1daf] | 276 | xpointer="xpointer(//*[@os='r'])"/>
|
---|
| 277 |
|
---|
[d9441360] | 278 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 279 | href="adjusting.xml"
|
---|
[09f1daf] | 280 | xpointer="xpointer(//*[@os='s'])"/>
|
---|
| 281 |
|
---|
[d9441360] | 282 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 283 | href="adjusting.xml"
|
---|
[09f1daf] | 284 | xpointer="xpointer(//*[@os='t'])"/>
|
---|
[6a82dd9] | 285 |
|
---|
[d9441360] | 286 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 287 | href="adjusting.xml"
|
---|
[e9a652b] | 288 | xpointer="xpointer(//*[@os='u'])"/>
|
---|
| 289 |
|
---|
[d9441360] | 290 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 291 | href="adjusting.xml"
|
---|
[e9a652b] | 292 | xpointer="xpointer(//*[@os='v'])"/>
|
---|
| 293 |
|
---|
[970a126] | 294 | <para>Finally, move a misplaced file:</para>
|
---|
[39ec01c] | 295 |
|
---|
[970a126] | 296 | <screen><userinput remap="install">mkdir -pv /usr/share/gdb/auto-load/usr/lib
|
---|
| 297 | mv -v /usr/lib/*gdb.py /usr/share/gdb/auto-load/usr/lib</userinput></screen>
|
---|
[39ec01c] | 298 |
|
---|
[6a82dd9] | 299 | </sect2>
|
---|
| 300 |
|
---|
| 301 | <sect2 id="contents-gcc" role="content">
|
---|
| 302 | <title>Contents of GCC</title>
|
---|
| 303 |
|
---|
| 304 | <segmentedlist>
|
---|
| 305 | <segtitle>Installed programs</segtitle>
|
---|
| 306 | <segtitle>Installed libraries</segtitle>
|
---|
[fe05b08] | 307 | <segtitle>Installed directories</segtitle>
|
---|
[6a82dd9] | 308 |
|
---|
| 309 | <seglistitem>
|
---|
[ce5ebe1] | 310 | <seg>c++, cc (link to gcc), cpp, g++, gcc,
|
---|
[a3af16f] | 311 | gcc-ar, gcc-nm, gcc-ranlib, and gcov</seg>
|
---|
[e0901b3] | 312 |
|
---|
[a3af16f] | 313 | <seg>libasan.{a,so}, libatomic.{a,so}, libgcc.a, libgcc_eh.a,
|
---|
[94c0cb3] | 314 | libgcc_s.so, libgcov.a, libgomp.{a,so}, libiberty.a, libitm.{a,so},
|
---|
[bff5fef] | 315 | liblto_plugin.so,
|
---|
[3119ddc] | 316 | libquadmath.{a,so}, libssp.{a,so},
|
---|
[b1a51ac1] | 317 | libssp_nonshared.a, libstdc++.{a,so}, libsupc++.a and libtsan.{a,so}</seg>
|
---|
[ce5ebe1] | 318 |
|
---|
[2925b3c] | 319 | <seg>/usr/include/c++, /usr/lib/gcc, /usr/libexec/gcc,
|
---|
| 320 | /usr/share/gcc-&gcc-version;</seg>
|
---|
[6a82dd9] | 321 | </seglistitem>
|
---|
| 322 | </segmentedlist>
|
---|
| 323 |
|
---|
| 324 | <variablelist>
|
---|
| 325 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 326 | <?dbfo list-presentation="list"?>
|
---|
| 327 | <?dbhtml list-presentation="table"?>
|
---|
| 328 |
|
---|
[75128571] | 329 | <varlistentry id="c">
|
---|
| 330 | <term><command>c++</command></term>
|
---|
| 331 | <listitem>
|
---|
| 332 | <para>The C++ compiler</para>
|
---|
| 333 | <indexterm zone="ch-system-gcc c">
|
---|
| 334 | <primary sortas="b-c++">c++</primary>
|
---|
| 335 | </indexterm>
|
---|
| 336 | </listitem>
|
---|
| 337 | </varlistentry>
|
---|
| 338 |
|
---|
[6a82dd9] | 339 | <varlistentry id="cc">
|
---|
| 340 | <term><command>cc</command></term>
|
---|
| 341 | <listitem>
|
---|
| 342 | <para>The C compiler</para>
|
---|
| 343 | <indexterm zone="ch-system-gcc cc">
|
---|
| 344 | <primary sortas="b-cc">cc</primary>
|
---|
| 345 | </indexterm>
|
---|
| 346 | </listitem>
|
---|
| 347 | </varlistentry>
|
---|
| 348 |
|
---|
| 349 | <varlistentry id="cpp">
|
---|
| 350 | <term><command>cpp</command></term>
|
---|
| 351 | <listitem>
|
---|
| 352 | <para>The C preprocessor; it is used by the compiler to expand the
|
---|
| 353 | #include, #define, and similar statements in the source files</para>
|
---|
| 354 | <indexterm zone="ch-system-gcc cpp">
|
---|
| 355 | <primary sortas="b-cpp">cpp</primary>
|
---|
| 356 | </indexterm>
|
---|
| 357 | </listitem>
|
---|
| 358 | </varlistentry>
|
---|
| 359 |
|
---|
| 360 | <varlistentry id="g">
|
---|
| 361 | <term><command>g++</command></term>
|
---|
| 362 | <listitem>
|
---|
| 363 | <para>The C++ compiler</para>
|
---|
| 364 | <indexterm zone="ch-system-gcc g">
|
---|
| 365 | <primary sortas="b-g++">g++</primary>
|
---|
| 366 | </indexterm>
|
---|
| 367 | </listitem>
|
---|
| 368 | </varlistentry>
|
---|
| 369 |
|
---|
| 370 | <varlistentry id="gcc">
|
---|
| 371 | <term><command>gcc</command></term>
|
---|
| 372 | <listitem>
|
---|
| 373 | <para>The C compiler</para>
|
---|
| 374 | <indexterm zone="ch-system-gcc gcc">
|
---|
| 375 | <primary sortas="b-gcc">gcc</primary>
|
---|
| 376 | </indexterm>
|
---|
| 377 | </listitem>
|
---|
| 378 | </varlistentry>
|
---|
| 379 |
|
---|
[e0901b3] | 380 | <varlistentry id="gcc-ar">
|
---|
| 381 | <term><command>gcc-ar</command></term>
|
---|
| 382 | <listitem>
|
---|
| 383 | <para>A wrapper around <command>ar</command> that adds a
|
---|
| 384 | plugin to the command line. This program is only used
|
---|
| 385 | to add "link time optization" and is not useful with the
|
---|
| 386 | default build options.</para>
|
---|
| 387 | <indexterm zone="ch-system-gcc gcc-ar">
|
---|
| 388 | <primary sortas="b-gcc-ar">gc-ar</primary>
|
---|
| 389 | </indexterm>
|
---|
| 390 | </listitem>
|
---|
| 391 | </varlistentry>
|
---|
| 392 |
|
---|
| 393 | <varlistentry id="gcc-nm">
|
---|
| 394 | <term><command>gcc-nm</command></term>
|
---|
| 395 | <listitem>
|
---|
| 396 | <para>A wrapper around <command>nm</command> that adds a
|
---|
| 397 | plugin to the command line. This program is only used
|
---|
| 398 | to add "link time optization" and is not useful with the
|
---|
| 399 | default build options.</para>
|
---|
| 400 | <indexterm zone="ch-system-gcc gcc-nm">
|
---|
| 401 | <primary sortas="b-gcc-nm">gc-nm</primary>
|
---|
| 402 | </indexterm>
|
---|
| 403 | </listitem>
|
---|
| 404 | </varlistentry>
|
---|
| 405 |
|
---|
| 406 | <varlistentry id="gcc-ranlib">
|
---|
| 407 | <term><command>gcc-ranlib</command></term>
|
---|
| 408 | <listitem>
|
---|
| 409 | <para>A wrapper around <command>ranlib</command> that adds a
|
---|
| 410 | plugin to the command line. This program is only used
|
---|
| 411 | to add "link time optization" and is not useful with the
|
---|
| 412 | default build options.</para>
|
---|
| 413 | <indexterm zone="ch-system-gcc gcc-ranlib">
|
---|
| 414 | <primary sortas="b-gcc-ranlib">gc-ranlib</primary>
|
---|
| 415 | </indexterm>
|
---|
| 416 | </listitem>
|
---|
| 417 | </varlistentry>
|
---|
[6a82dd9] | 418 |
|
---|
| 419 | <varlistentry id="gcov">
|
---|
| 420 | <term><command>gcov</command></term>
|
---|
| 421 | <listitem>
|
---|
| 422 | <para>A coverage testing tool; it is used to analyze programs to
|
---|
| 423 | determine where optimizations will have the most effect</para>
|
---|
| 424 | <indexterm zone="ch-system-gcc gcov">
|
---|
| 425 | <primary sortas="b-gcov">gcov</primary>
|
---|
| 426 | </indexterm>
|
---|
| 427 | </listitem>
|
---|
| 428 | </varlistentry>
|
---|
| 429 |
|
---|
[b1a51ac1] | 430 | <varlistentry id="libasan">
|
---|
| 431 | <term><command>libasan</command></term>
|
---|
| 432 | <listitem>
|
---|
| 433 | <para>The Address Sanitizer runtime library</para>
|
---|
| 434 | <indexterm zone="ch-system-gcc libasan">
|
---|
| 435 | <primary sortas="b-libasan">libasan</primary>
|
---|
| 436 | </indexterm>
|
---|
| 437 | </listitem>
|
---|
| 438 | </varlistentry>
|
---|
| 439 |
|
---|
[6a82dd9] | 440 | <varlistentry id="libgcc">
|
---|
| 441 | <term><filename class="libraryfile">libgcc</filename></term>
|
---|
| 442 | <listitem>
|
---|
| 443 | <para>Contains run-time support for <command>gcc</command></para>
|
---|
| 444 | <indexterm zone="ch-system-gcc libgcc">
|
---|
| 445 | <primary sortas="c-libgcc*">libgcc*</primary>
|
---|
| 446 | </indexterm>
|
---|
| 447 | </listitem>
|
---|
| 448 | </varlistentry>
|
---|
| 449 |
|
---|
[90aae6b] | 450 | <varlistentry id="libgcov">
|
---|
| 451 | <term><filename class="libraryfile">libgcov</filename></term>
|
---|
| 452 | <listitem>
|
---|
| 453 | <para>This library is linked in to a program when GCC is instructed
|
---|
| 454 | to enable profiling</para>
|
---|
| 455 | <indexterm zone="ch-system-gcc libgcov">
|
---|
| 456 | <primary sortas="c-libgcov">libgcov</primary>
|
---|
| 457 | </indexterm>
|
---|
| 458 | </listitem>
|
---|
| 459 | </varlistentry>
|
---|
| 460 |
|
---|
| 461 | <varlistentry id="libgomp">
|
---|
| 462 | <term><filename class="libraryfile">libgomp</filename></term>
|
---|
| 463 | <listitem>
|
---|
| 464 | <para>GNU implementation of the OpenMP API for multi-platform
|
---|
| 465 | shared-memory parallel programming in C/C++ and Fortran</para>
|
---|
| 466 | <indexterm zone="ch-system-gcc libgomp">
|
---|
| 467 | <primary sortas="c-libgomp">libgomp</primary>
|
---|
| 468 | </indexterm>
|
---|
| 469 | </listitem>
|
---|
| 470 | </varlistentry>
|
---|
| 471 |
|
---|
[94c0cb3] | 472 | <varlistentry id="libiberty">
|
---|
| 473 | <term><filename class="libraryfile">libiberty</filename></term>
|
---|
| 474 | <listitem>
|
---|
| 475 | <para>Contains routines used by various GNU programs, including
|
---|
| 476 | <command>getopt</command>, <command>obstack</command>,
|
---|
| 477 | <command>strerror</command>, <command>strtol</command>, and
|
---|
| 478 | <command>strtoul</command></para>
|
---|
| 479 | <indexterm zone="ch-system-gcc libiberty">
|
---|
| 480 | <primary sortas="c-libiberty">libiberty</primary>
|
---|
| 481 | </indexterm>
|
---|
| 482 | </listitem>
|
---|
| 483 | </varlistentry>
|
---|
| 484 |
|
---|
[3119ddc] | 485 | <varlistentry id="liblto_plugin">
|
---|
| 486 | <term><filename class="libraryfile">liblto_plugin</filename></term>
|
---|
| 487 | <listitem>
|
---|
| 488 | <para>GCC's Link Time Optimization (LTO) plugin allows GCC to perform
|
---|
| 489 | optimizations across compilation units.</para>
|
---|
| 490 | <indexterm zone="ch-system-gcc liblto_plugin">
|
---|
| 491 | <primary sortas="c-liblto_plugin*">liblto_plugin*</primary>
|
---|
| 492 | </indexterm>
|
---|
| 493 | </listitem>
|
---|
| 494 | </varlistentry>
|
---|
[bff5fef] | 495 | <!--
|
---|
[2791a8e] | 496 | <varlistentry id="libmudflap">
|
---|
| 497 | <term><filename class="libraryfile">libmudflap</filename></term>
|
---|
| 498 | <listitem>
|
---|
| 499 | <para>Contains routines that support GCC's bounds checking
|
---|
| 500 | functionality</para>
|
---|
| 501 | <indexterm zone="ch-system-gcc libmudflap">
|
---|
| 502 | <primary sortas="c-libmudflap*">libmudflap*</primary>
|
---|
| 503 | </indexterm>
|
---|
| 504 | </listitem>
|
---|
| 505 | </varlistentry>
|
---|
[bff5fef] | 506 | -->
|
---|
[3119ddc] | 507 | <varlistentry id="libquadmath">
|
---|
| 508 | <term><filename class="libraryfile">libquadmath</filename></term>
|
---|
| 509 | <listitem>
|
---|
| 510 | <para>GCC Quad Precision Math Library API</para>
|
---|
| 511 | <indexterm zone="ch-system-gcc libquadmath">
|
---|
| 512 | <primary sortas="c-libquadmath*">libquadmath*</primary>
|
---|
| 513 | </indexterm>
|
---|
| 514 | </listitem>
|
---|
| 515 | </varlistentry>
|
---|
| 516 |
|
---|
[2791a8e] | 517 | <varlistentry id="libssp">
|
---|
| 518 | <term><filename class="libraryfile">libssp</filename></term>
|
---|
| 519 | <listitem>
|
---|
| 520 | <para>Contains routines supporting GCC's stack-smashing protection
|
---|
| 521 | functionality</para>
|
---|
| 522 | <indexterm zone="ch-system-gcc libssp">
|
---|
| 523 | <primary sortas="c-libssp*">libssp*</primary>
|
---|
| 524 | </indexterm>
|
---|
| 525 | </listitem>
|
---|
| 526 | </varlistentry>
|
---|
| 527 |
|
---|
[6a82dd9] | 528 | <varlistentry id="libstdc">
|
---|
| 529 | <term><filename class="libraryfile">libstdc++</filename></term>
|
---|
| 530 | <listitem>
|
---|
| 531 | <para>The standard C++ library</para>
|
---|
| 532 | <indexterm zone="ch-system-gcc libstdc">
|
---|
| 533 | <primary sortas="c-libstdc++">libstdc++</primary>
|
---|
| 534 | </indexterm>
|
---|
| 535 | </listitem>
|
---|
| 536 | </varlistentry>
|
---|
| 537 |
|
---|
| 538 | <varlistentry id="libsupc">
|
---|
| 539 | <term><filename class="libraryfile">libsupc++</filename></term>
|
---|
| 540 | <listitem>
|
---|
| 541 | <para>Provides supporting routines for the C++ programming
|
---|
| 542 | language</para>
|
---|
| 543 | <indexterm zone="ch-system-gcc libsupc">
|
---|
| 544 | <primary sortas="c-libsupc++">libsupc++</primary>
|
---|
| 545 | </indexterm>
|
---|
| 546 | </listitem>
|
---|
| 547 | </varlistentry>
|
---|
| 548 |
|
---|
[b1a51ac1] | 549 | <varlistentry id="libtsan">
|
---|
| 550 | <term><filename class="libraryfile">libtsan</filename></term>
|
---|
| 551 | <listitem>
|
---|
| 552 | <para>The Thread Sanitizer runtime library</para>
|
---|
| 553 | <indexterm zone="ch-system-gcc libtsan">
|
---|
| 554 | <primary sortas="c-libtsan">libtsan</primary>
|
---|
| 555 | </indexterm>
|
---|
| 556 | </listitem>
|
---|
| 557 | </varlistentry>
|
---|
| 558 |
|
---|
[6a82dd9] | 559 | </variablelist>
|
---|
| 560 |
|
---|
| 561 | </sect2>
|
---|
[673b0d8] | 562 |
|
---|
| 563 | </sect1>
|
---|