source: chapter08/gcc.xml@ c0c616a

10.0 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since c0c616a was 1d527ce, checked in by Xi Ruoyao <xry111@…>, 4 years ago

chapter08/gcc: typo

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12015 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

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