source: chapter06/gcc.xml@ d1fbbd0

ml-11.0 multilib xry111/multilib
Last change on this file since d1fbbd0 was c7e74d6, checked in by Xℹ Ruoyao <xry111@…>, 3 years ago

MultiLib: Merge changes from trunk

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11783 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 23.5 KB
RevLine 
[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>
[12836f5]43
[b3f1ebb3]44 <para arch="default">If building on x86_64, change the default directory
45 name for 64-bit libraries to <quote>lib</quote>:</para>
[be3d9f3]46
[b3f1ebb3]47<screen arch="default"><userinput remap="pre">case $(uname -m) in
[be3d9f3]48 x86_64)
49 sed -e '/m64=/s/lib64/lib/' \
50 -i.orig gcc/config/i386/t-linux64
51 ;;
52esac</userinput></screen>
53
[fd48baa]54 <para arch="ml_32,ml_x32,ml_all">Change the default directory name for 64-bit
[b3f1ebb3]55 libraries to <quote>lib</quote>:</para>
56
[9c0c3a0]57<screen arch="ml_32,ml_x32,ml_all"><userinput remap="pre">sed -e '/m64=/s/lib64/lib/' \
58 -e '/m32=/s/m32=.*/m32=..\/lib32$(call if_multiarch,:i386-linux-gnu)/' \
59 -i.orig gcc/config/i386/t-linux64</userinput></screen>
[b3f1ebb3]60
[f1dd547]61 <para>The GCC documentation recommends building GCC in a dedicated build directory:</para>
[73aedd1d]62
[f1dd547]63<screen><userinput remap="pre">mkdir -v build
64cd build</userinput></screen>
[73aedd1d]65
[6a82dd9]66 <para>Prepare GCC for compilation:</para>
[73aedd1d]67
[f5ae110a]68<screen><userinput arch="default" remap="configure">mloptions="--disable-multilib"</userinput>
69<userinput arch="ml_32,ml_x32,ml_all" remap="configure">mloptions="--enable-multilib --with-multilib-list=m64"</userinput>
70<userinput arch="ml_32,ml_all" remap="configure">mloptions="$mloptions,m32"</userinput>
71<userinput arch="ml_x32,ml_all" remap="configure">mloptions="$mloptions,mx32"</userinput>
72<userinput remap="configure">SED=sed \
[f1dd547]73../configure --prefix=/usr \
74 --enable-languages=c,c++ \
75 --disable-bootstrap \
[f5ae110a]76 --with-system-zlib \
77 $mloptions</userinput></screen>
[b3f1ebb3]78
[1cdaff9]79 <para>Note that for other languages, there are some prerequisites that
[93756f6]80 are not yet available. See the
[0ee07e5]81 <ulink url="&blfs-book;general/gcc.html">BLFS Book</ulink>
[93756f6]82 for instructions on how to build all of GCC's supported languages.</para>
[182d5d3]83
[ae4d45a]84 <variablelist>
[0cba512d]85 <title>The meaning of the new configure parameters:</title>
[cde2ae7]86
[ff0f063]87 <varlistentry>
[cde2ae7]88 <term><envar>SED=sed</envar></term>
[ff0f063]89 <listitem>
[cde2ae7]90 <para>Setting this environment variable prevents a hard-coded
91 path to /tools/bin/sed.</para>
[ff0f063]92 </listitem>
93 </varlistentry>
[cad96bf]94 <!--
[d4407c7]95 <varlistentry>
[cad96bf]96 <term><parameter>- -disable-libmpx</parameter></term>
[d4407c7]97 <listitem>
98 <para>This switch tells GCC to not build mpx (Memory Protection
99 Extensions) that can cause problems on some processors. It has
100 been removed from the next version of gcc.</para>
101 </listitem>
102 </varlistentry>
[cad96bf]103 -->
[ae4d45a]104 <varlistentry>
105 <term><parameter>--with-system-zlib</parameter></term>
106 <listitem>
107 <para>This switch tells GCC to link to the system installed copy of
[8dac2e2]108 the Zlib library, rather than its own internal copy.</para>
[ae4d45a]109 </listitem>
110 </varlistentry>
111 </variablelist>
112
[6a82dd9]113 <para>Compile the package:</para>
[73aedd1d]114
[0445a3d]115<screen><userinput remap="make">make</userinput></screen>
[73aedd1d]116
[6a82dd9]117 <important>
118 <para>In this section, the test suite for GCC is considered
119 critical. Do not skip it under any circumstance.</para>
120 </important>
[81fd230]121
[4e48f56e]122 <para>One set of tests in the GCC test suite is known to exhaust the stack,
123 so increase the stack size prior to running the tests:</para>
124
[2efa44a]125<screen><userinput remap="test">ulimit -s 32768</userinput></screen>
[4e48f56e]126
[76db8d6]127 <para>Test the results as a non-privileged user, but do not stop at errors:</para>
128
129<screen><userinput remap="test">chown -Rv nobody .
130su nobody -s /bin/bash -c "PATH=$PATH make -k check"</userinput></screen>
[73aedd1d]131
[9278974d]132 <para>To receive a summary of the test suite results, run:</para>
133
[f1dd547]134<screen><userinput remap="test">../contrib/test_summary</userinput></screen>
[9278974d]135
136 <para>For only the summaries, pipe the output through
137 <userinput>grep -A7 Summ</userinput>.</para>
138
139 <para>Results can be compared with those located at <ulink
[98e7ac4]140 url="&test-results;"/> and
[b30de8f]141 <ulink url="https://gcc.gnu.org/ml/gcc-testresults/"/>.</para>
[9278974d]142
[7433c5d]143 <para>Six tests related to get_time are known to fail. These are
[1daca67]144 apparently related to the en_HK locale.</para>
[7433c5d]145
[cad96bf]146 <para>Two tests named lookup.cc and reverse.cc in experimental/net
147 are known to fail in LFS chroot environment because they require
148 /etc/hosts and iana-etc.</para>
149
150 <para>Two tests named pr57193.c and pr90178.c are known to fail.</para>
151
[9278974d]152 <para>A few unexpected failures cannot always be avoided. The GCC developers
[0238d49]153 are usually aware of these issues, but have not resolved them yet.
[9278974d]154 Unless the test results are vastly different from those at the above URL,
155 it is safe to continue.</para>
[73aedd1d]156
[1803e9b]157 <!--note><para>
[e3e989a]158 On some combinations of kernel configuration and AMD processors
159 there may be more than 1100 failures in the gcc.target/i386/mpx
160 tests (which are designed to test the MPX option on recent
161 Intel processors). These can safely be ignored on AMD
[1c8cc71]162 processors. These tests will also fail on Intel processors if MPX support
163 is not enabled in the kernel even though it is present on the CPU.
[1803e9b]164 </para></note-->
[e3e989a]165
[bc375da6]166 <para>Install the package and remove an unneeded directory:</para>
[73aedd1d]167
[bc375da6]168<screen><userinput remap="install">make install
[1daca67]169rm -rf /usr/lib/gcc/$(gcc -dumpmachine)/&gcc-version;/include-fixed/bits/</userinput></screen>
170
171 <para>The GCC build directory is owned by <systemitem class="username">
172 nobody</systemitem> now and the ownership of the installed header
173 directory (and its content) will be incorrect. Change the ownership to
174 <systemitem class="username">root</systemitem> user and group:</para>
175
176<screen><userinput remap="install">chown -v -R root:root \
177 /usr/lib/gcc/*linux-gnu/&gcc-version;/include{,-fixed}</userinput></screen>
[73aedd1d]178
[60b23a6f]179 <para>Create a symlink required by the <ulink
[b30de8f]180 url="https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch03s09.html">FHS</ulink>
[60b23a6f]181 for "historical" reasons.</para>
[73aedd1d]182
[0445a3d]183<screen><userinput remap="install">ln -sv ../usr/bin/cpp /lib</userinput></screen>
[73aedd1d]184
[6a82dd9]185 <para>Many packages use the name <command>cc</command> to call the C
186 compiler. To satisfy those packages, create a symlink:</para>
[1ba726f]187
[0445a3d]188<screen><userinput remap="install">ln -sv gcc /usr/bin/cc</userinput></screen>
[1ba726f]189
[6206f72]190 <para>Add a compatibility symlink to enable building programs with
191 Link Time Optimization (LTO):</para>
192
[aa9bb6c]193<screen><userinput remap="install">install -v -dm755 /usr/lib/bfd-plugins
[040ecb6]194ln -sfv ../../libexec/gcc/$(gcc -dumpmachine)/&gcc-version;/liblto_plugin.so \
195 /usr/lib/bfd-plugins/</userinput></screen>
[6206f72]196
[09f1daf]197 <para>Now that our final toolchain is in place, it is important to again ensure
198 that compiling and linking will work as expected. We do this by performing
199 the same sanity checks as we did earlier in the chapter:</para>
200
[d9441360]201 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[1a3e6a3]202 href="adjusting.xml"
[09f1daf]203 xpointer="xpointer(//*[@os='a'])"/>
204
[d9441360]205 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[1a3e6a3]206 href="adjusting.xml"
[09f1daf]207 xpointer="xpointer(//*[@os='b'])"/>
208
[d9441360]209 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[1a3e6a3]210 href="adjusting.xml"
[09f1daf]211 xpointer="xpointer(//*[@os='c'])"/>
212
[d9441360]213 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[1a3e6a3]214 href="adjusting.xml"
[09f1daf]215 xpointer="xpointer(//*[@os='d'])"/>
216
[d9441360]217 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[1a3e6a3]218 href="adjusting.xml"
[09f1daf]219 xpointer="xpointer(//*[@os='e'])"/>
220
[d9441360]221 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[1a3e6a3]222 href="adjusting.xml"
[09f1daf]223 xpointer="xpointer(//*[@os='f'])"/>
224
[98e7ac4]225<screen><computeroutput>/usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/../../../../lib/crt1.o succeeded
226/usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/../../../../lib/crti.o succeeded
227/usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/../../../../lib/crtn.o succeeded</computeroutput></screen>
[09f1daf]228
[6e88633]229 <para>Depending on your machine architecture, the above may differ slightly,
230 the difference usually being the name of the directory
[be3d9f3]231 after <filename class="directory">/usr/lib/gcc</filename>. The important
232 thing to look for here is that <command>gcc</command> has found all three
[5f7456b]233 <filename>crt*.o</filename> files under the
234 <filename class="directory">/usr/lib</filename> directory.</para>
[6e88633]235
[d9441360]236 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[1a3e6a3]237 href="adjusting.xml"
[09f1daf]238 xpointer="xpointer(//*[@os='g'])"/>
239
[041c8f67]240<screen><userinput>grep -B4 '^ /usr/include' dummy.log</userinput></screen>
[e9a652b]241
[d9441360]242 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[1a3e6a3]243 href="adjusting.xml"
[09f1daf]244 xpointer="xpointer(//*[@os='h'])"/>
245
[e9a652b]246<screen><computeroutput>#include &lt;...&gt; search starts here:
[98e7ac4]247 /usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/include
[c528e3a]248 /usr/local/include
[98e7ac4]249 /usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/include-fixed
[e9a652b]250 /usr/include</computeroutput></screen>
251
[6e88633]252 <para>Again, note that the directory named after your target triplet may be
253 different than the above, depending on your architecture.</para>
254
[0d84af1]255<!-- This appears to be obsolete
256
[3f39abf3]257 <note><para>As of version 4.3.0, GCC now unconditionally installs the
258 <filename>limits.h</filename> file into the private
[041c8f67]259 <filename class="directory">include-fixed</filename> directory, and that
[3f39abf3]260 directory is required to be in place.</para></note>
[0d84af1]261-->
[3f39abf3]262
[d9441360]263 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[1a3e6a3]264 href="adjusting.xml"
[09f1daf]265 xpointer="xpointer(//*[@os='i'])"/>
266
[d9441360]267 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[1a3e6a3]268 href="adjusting.xml"
[09f1daf]269 xpointer="xpointer(//*[@os='j'])"/>
270
[d9441360]271 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[1a3e6a3]272 href="adjusting.xml"
[09f1daf]273 xpointer="xpointer(//*[@os='k'])"/>
274
[98e7ac4]275<screen><computeroutput>SEARCH_DIR("/usr/x86_64-pc-linux-gnu/lib64")
276SEARCH_DIR("/usr/local/lib64")
277SEARCH_DIR("/lib64")
278SEARCH_DIR("/usr/lib64")
279SEARCH_DIR("/usr/x86_64-pc-linux-gnu/lib")
[e9a652b]280SEARCH_DIR("/usr/local/lib")
281SEARCH_DIR("/lib")
[6e88633]282SEARCH_DIR("/usr/lib");</computeroutput></screen>
283
[b3f1ebb3]284 <para arch="default">A 32-bit system may see a few different directories.
285 For example, here is the output from an i686 machine:</para>
[6e88633]286
[b3f1ebb3]287<screen arch="default"><computeroutput>SEARCH_DIR("/usr/i686-pc-linux-gnu/lib32")
[98e7ac4]288SEARCH_DIR("/usr/local/lib32")
289SEARCH_DIR("/lib32")
290SEARCH_DIR("/usr/lib32")
291SEARCH_DIR("/usr/i686-pc-linux-gnu/lib")
[6e88633]292SEARCH_DIR("/usr/local/lib")
293SEARCH_DIR("/lib")
[e9a652b]294SEARCH_DIR("/usr/lib");</computeroutput></screen>
295
[d9441360]296 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[1a3e6a3]297 href="adjusting.xml"
[09f1daf]298 xpointer="xpointer(//*[@os='l'])"/>
299
[d9441360]300 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[1a3e6a3]301 href="adjusting.xml"
[09f1daf]302 xpointer="xpointer(//*[@os='m'])"/>
303
[d9441360]304 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[1a3e6a3]305 href="adjusting.xml"
[09f1daf]306 xpointer="xpointer(//*[@os='n'])"/>
307
[d9441360]308 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[1a3e6a3]309 href="adjusting.xml"
[09f1daf]310 xpointer="xpointer(//*[@os='o'])"/>
311
[d9441360]312 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[1a3e6a3]313 href="adjusting.xml"
[09f1daf]314 xpointer="xpointer(//*[@os='p'])"/>
315
[d9441360]316 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[1a3e6a3]317 href="adjusting.xml"
[09f1daf]318 xpointer="xpointer(//*[@os='q'])"/>
319
[d9441360]320 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[1a3e6a3]321 href="adjusting.xml"
[09f1daf]322 xpointer="xpointer(//*[@os='r'])"/>
323
[d9441360]324 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[1a3e6a3]325 href="adjusting.xml"
[09f1daf]326 xpointer="xpointer(//*[@os='s'])"/>
327
[d9441360]328 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[1a3e6a3]329 href="adjusting.xml"
[09f1daf]330 xpointer="xpointer(//*[@os='t'])"/>
[6a82dd9]331
[d9441360]332 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[1a3e6a3]333 href="adjusting.xml"
[e9a652b]334 xpointer="xpointer(//*[@os='u'])"/>
335
[d9441360]336 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[1a3e6a3]337 href="adjusting.xml"
[e9a652b]338 xpointer="xpointer(//*[@os='v'])"/>
339
[970a126]340 <para>Finally, move a misplaced file:</para>
[39ec01c]341
[970a126]342<screen><userinput remap="install">mkdir -pv /usr/share/gdb/auto-load/usr/lib
[b3f1ebb3]343mv -v /usr/lib/libstdc++*gdb.py /usr/share/gdb/auto-load/usr/lib</userinput></screen>
[39ec01c]344
[6a82dd9]345 </sect2>
346
347 <sect2 id="contents-gcc" role="content">
348 <title>Contents of GCC</title>
349
350 <segmentedlist>
351 <segtitle>Installed programs</segtitle>
352 <segtitle>Installed libraries</segtitle>
[fe05b08]353 <segtitle>Installed directories</segtitle>
[6a82dd9]354
355 <seglistitem>
[2ca8941]356 <seg>c++, cc (link to gcc), cpp, g++, gcc,
[78cc3be]357 gcc-ar, gcc-nm, gcc-ranlib, gcov, gcov-dump, and gcov-tool</seg>
[e0901b3]358
[78cc3be]359 <seg>libasan.{a,so}, libatomic.{a,so}, libcc1.so, libgcc.a, libgcc_eh.a,
360 libgcc_s.so, libgcov.a, libgomp.{a,so}, libitm.{a,so},
361 liblsan.{a,so}, liblto_plugin.so,
362 libquadmath.{a,so}, libssp.{a,so}, libssp_nonshared.a,
363 libstdc++.{a,so}, libstdc++fs.a, libsupc++.a, libtsan.{a,so},
364 and libubsan.{a,so}</seg>
[2ca8941]365
[7bb9fda]366 <seg>/usr/include/c++, /usr/lib/gcc, /usr/libexec/gcc, and
[4e8a532]367 /usr/share/gcc-&gcc-version;</seg>
[6a82dd9]368 </seglistitem>
369 </segmentedlist>
370
371 <variablelist>
372 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
373 <?dbfo list-presentation="list"?>
374 <?dbhtml list-presentation="table"?>
375
[75128571]376 <varlistentry id="c">
377 <term><command>c++</command></term>
378 <listitem>
379 <para>The C++ compiler</para>
380 <indexterm zone="ch-system-gcc c">
381 <primary sortas="b-c++">c++</primary>
382 </indexterm>
383 </listitem>
384 </varlistentry>
385
[6a82dd9]386 <varlistentry id="cc">
387 <term><command>cc</command></term>
388 <listitem>
389 <para>The C compiler</para>
390 <indexterm zone="ch-system-gcc cc">
391 <primary sortas="b-cc">cc</primary>
392 </indexterm>
393 </listitem>
394 </varlistentry>
395
396 <varlistentry id="cpp">
397 <term><command>cpp</command></term>
398 <listitem>
399 <para>The C preprocessor; it is used by the compiler to expand the
400 #include, #define, and similar statements in the source files</para>
401 <indexterm zone="ch-system-gcc cpp">
402 <primary sortas="b-cpp">cpp</primary>
403 </indexterm>
404 </listitem>
405 </varlistentry>
406
407 <varlistentry id="g">
408 <term><command>g++</command></term>
409 <listitem>
410 <para>The C++ compiler</para>
411 <indexterm zone="ch-system-gcc g">
412 <primary sortas="b-g++">g++</primary>
413 </indexterm>
414 </listitem>
415 </varlistentry>
416
417 <varlistentry id="gcc">
418 <term><command>gcc</command></term>
419 <listitem>
420 <para>The C compiler</para>
421 <indexterm zone="ch-system-gcc gcc">
422 <primary sortas="b-gcc">gcc</primary>
423 </indexterm>
424 </listitem>
425 </varlistentry>
426
[e0901b3]427 <varlistentry id="gcc-ar">
428 <term><command>gcc-ar</command></term>
429 <listitem>
430 <para>A wrapper around <command>ar</command> that adds a
[afba93b]431 plugin to the command line. This program is only used
[edbeeb5]432 to add "link time optimization" and is not useful with the
[afba93b]433 default build options</para>
[e0901b3]434 <indexterm zone="ch-system-gcc gcc-ar">
435 <primary sortas="b-gcc-ar">gc-ar</primary>
436 </indexterm>
437 </listitem>
438 </varlistentry>
439
440 <varlistentry id="gcc-nm">
441 <term><command>gcc-nm</command></term>
442 <listitem>
443 <para>A wrapper around <command>nm</command> that adds a
[afba93b]444 plugin to the command line. This program is only used
[a885478]445 to add "link time optimization" and is not useful with the
[afba93b]446 default build options</para>
[e0901b3]447 <indexterm zone="ch-system-gcc gcc-nm">
448 <primary sortas="b-gcc-nm">gc-nm</primary>
449 </indexterm>
450 </listitem>
451 </varlistentry>
452
453 <varlistentry id="gcc-ranlib">
454 <term><command>gcc-ranlib</command></term>
455 <listitem>
456 <para>A wrapper around <command>ranlib</command> that adds a
[afba93b]457 plugin to the command line. This program is only used
[a885478]458 to add "link time optimization" and is not useful with the
[afba93b]459 default build options</para>
[e0901b3]460 <indexterm zone="ch-system-gcc gcc-ranlib">
461 <primary sortas="b-gcc-ranlib">gc-ranlib</primary>
462 </indexterm>
463 </listitem>
464 </varlistentry>
[6a82dd9]465
466 <varlistentry id="gcov">
467 <term><command>gcov</command></term>
468 <listitem>
469 <para>A coverage testing tool; it is used to analyze programs to
470 determine where optimizations will have the most effect</para>
471 <indexterm zone="ch-system-gcc gcov">
472 <primary sortas="b-gcov">gcov</primary>
473 </indexterm>
[4783efe]474 </listitem>
475 </varlistentry>
476
[78cc3be]477 <varlistentry id="gcov-dump">
478 <term><command>gcov-dump</command></term>
479 <listitem>
480 <para>Offline gcda and gcno profile dump tool</para>
481 <indexterm zone="ch-system-gcc gcov-dump">
482 <primary sortas="b-gcov-dump">gcov-dump</primary>
483 </indexterm>
484 </listitem>
485 </varlistentry>
486
487 <varlistentry id="gcov-tool">
488 <term><command>gcov-tool</command></term>
489 <listitem>
490 <para>Offline gcda profile processing tool</para>
491 <indexterm zone="ch-system-gcc gcov-tool">
492 <primary sortas="b-gcov-tool">gcov-tool</primary>
493 </indexterm>
494 </listitem>
495 </varlistentry>
496
[4783efe]497 <varlistentry id="libasan">
[78cc3be]498 <term><filename class="libraryfile">libasan</filename></term>
[4783efe]499 <listitem>
500 <para>The Address Sanitizer runtime library</para>
501 <indexterm zone="ch-system-gcc libasan">
502 <primary sortas="b-libasan">libasan</primary>
503 </indexterm>
[6a82dd9]504 </listitem>
505 </varlistentry>
506
[78cc3be]507 <varlistentry id="libatomic">
508 <term><filename class="libraryfile">libatomic</filename></term>
509 <listitem>
510 <para>GCC atomic built-in runtime library</para>
511 <indexterm zone="ch-system-gcc libatomic">
512 <primary sortas="b-libatomic">libatomic</primary>
513 </indexterm>
514 </listitem>
515 </varlistentry>
516
517 <varlistentry id="libcc1">
518 <term><filename class="libraryfile">libcc1</filename></term>
519 <listitem>
520 <para>The C preprocessing library</para>
521 <indexterm zone="ch-system-gcc libcc1">
522 <primary sortas="b-libcc1">libcc1</primary>
523 </indexterm>
524 </listitem>
525 </varlistentry>
526
[6a82dd9]527 <varlistentry id="libgcc">
528 <term><filename class="libraryfile">libgcc</filename></term>
529 <listitem>
530 <para>Contains run-time support for <command>gcc</command></para>
531 <indexterm zone="ch-system-gcc libgcc">
[afba93b]532 <primary sortas="c-libgcc">libgcc</primary>
[6a82dd9]533 </indexterm>
534 </listitem>
535 </varlistentry>
536
[90aae6b]537 <varlistentry id="libgcov">
538 <term><filename class="libraryfile">libgcov</filename></term>
539 <listitem>
540 <para>This library is linked in to a program when GCC is instructed
541 to enable profiling</para>
542 <indexterm zone="ch-system-gcc libgcov">
543 <primary sortas="c-libgcov">libgcov</primary>
544 </indexterm>
545 </listitem>
546 </varlistentry>
547
548 <varlistentry id="libgomp">
549 <term><filename class="libraryfile">libgomp</filename></term>
550 <listitem>
551 <para>GNU implementation of the OpenMP API for multi-platform
552 shared-memory parallel programming in C/C++ and Fortran</para>
553 <indexterm zone="ch-system-gcc libgomp">
554 <primary sortas="c-libgomp">libgomp</primary>
555 </indexterm>
556 </listitem>
557 </varlistentry>
558
[78cc3be]559 <varlistentry id="liblsan">
560 <term><filename class="libraryfile">liblsan</filename></term>
[b755562]561 <listitem>
[78cc3be]562 <para>The Leak Sanitizer runtime library</para>
563 <indexterm zone="ch-system-gcc liblsan">
564 <primary sortas="c-liblsan">liblsan</primary>
[b755562]565 </indexterm>
566 </listitem>
567 </varlistentry>
568
[3119ddc]569 <varlistentry id="liblto_plugin">
570 <term><filename class="libraryfile">liblto_plugin</filename></term>
571 <listitem>
572 <para>GCC's Link Time Optimization (LTO) plugin allows GCC to perform
[afba93b]573 optimizations across compilation units</para>
[3119ddc]574 <indexterm zone="ch-system-gcc liblto_plugin">
[afba93b]575 <primary sortas="c-liblto_plugin">liblto_plugin</primary>
[3119ddc]576 </indexterm>
577 </listitem>
578 </varlistentry>
[7bb9fda]579
[3119ddc]580 <varlistentry id="libquadmath">
581 <term><filename class="libraryfile">libquadmath</filename></term>
582 <listitem>
583 <para>GCC Quad Precision Math Library API</para>
584 <indexterm zone="ch-system-gcc libquadmath">
[afba93b]585 <primary sortas="c-libquadmath">libquadmath</primary>
[3119ddc]586 </indexterm>
587 </listitem>
588 </varlistentry>
589
[2791a8e]590 <varlistentry id="libssp">
591 <term><filename class="libraryfile">libssp</filename></term>
592 <listitem>
593 <para>Contains routines supporting GCC's stack-smashing protection
594 functionality</para>
595 <indexterm zone="ch-system-gcc libssp">
[afba93b]596 <primary sortas="c-libssp">libssp</primary>
[2791a8e]597 </indexterm>
598 </listitem>
599 </varlistentry>
600
[6a82dd9]601 <varlistentry id="libstdc">
602 <term><filename class="libraryfile">libstdc++</filename></term>
603 <listitem>
604 <para>The standard C++ library</para>
605 <indexterm zone="ch-system-gcc libstdc">
606 <primary sortas="c-libstdc++">libstdc++</primary>
607 </indexterm>
608 </listitem>
609 </varlistentry>
610
[78cc3be]611 <varlistentry id="libstdcfs">
612 <term><filename class="libraryfile">libstdc++fs</filename></term>
613 <listitem>
614 <para>ISO/IEC TS 18822:2015 Filesystem library</para>
615 <indexterm zone="ch-system-gcc libstdcfs">
616 <primary sortas="c-libstdc++fs">libstdc++fs</primary>
617 </indexterm>
618 </listitem>
619 </varlistentry>
620
[6a82dd9]621 <varlistentry id="libsupc">
622 <term><filename class="libraryfile">libsupc++</filename></term>
623 <listitem>
624 <para>Provides supporting routines for the C++ programming
625 language</para>
626 <indexterm zone="ch-system-gcc libsupc">
627 <primary sortas="c-libsupc++">libsupc++</primary>
628 </indexterm>
629 </listitem>
630 </varlistentry>
631
[f6b1d91]632 <varlistentry id="libtsan">
633 <term><filename class="libraryfile">libtsan</filename></term>
634 <listitem>
635 <para>The Thread Sanitizer runtime library</para>
636 <indexterm zone="ch-system-gcc libtsan">
637 <primary sortas="c-libtsan">libtsan</primary>
638 </indexterm>
639 </listitem>
640 </varlistentry>
641
[78cc3be]642 <varlistentry id="libubsan">
643 <term><filename class="libraryfile">libubsan</filename></term>
644 <listitem>
645 <para>The Undefined Behavior Sanitizer runtime library</para>
646 <indexterm zone="ch-system-gcc libubsan">
647 <primary sortas="c-libubsan">libubsan</primary>
648 </indexterm>
649 </listitem>
650 </varlistentry>
651
[6a82dd9]652 </variablelist>
653
654 </sect2>
[673b0d8]655
656</sect1>
Note: See TracBrowser for help on using the repository browser.