source: chapter06/gcc.xml@ ae7f075

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 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 ae7f075 was ae7f075, checked in by Pierre Labastie <pieere@…>, 4 years ago

Update to trunk r11877

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