source: chapter06/gcc.xml@ 015473e7

10.0 10.0-rc1 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 9.0 9.1 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 015473e7 was 015473e7, checked in by Xi Ruoyao <xry111@…>, 5 years ago

Remove a command no more needed in gcc

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

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