source: chapter08/gcc.xml@ 8024387

ml-11.0 multilib
Last change on this file since 8024387 was 81f8f6e, checked in by Thomas Trepl (Moody) <thomas@…>, 3 years ago

Automatic merge of trunk into multilib

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