source: chapter08/gcc.xml@ a3f7b43

arm
Last change on this file since a3f7b43 was a3f7b43, checked in by William Harrington <kb0iic@…>, 2 years ago

remove adjusting.xml

Now adjusting.xml only serves as a historical reference, and a "snip
library" for gcc.xml. Put all relevant content into gcc.xml directly
and remove adjusting.xml. If someone needs a historical reference, he
can always get adjusting.xml in Git history.

  • Property mode set to 100644
File size: 23.3 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
[a04b3d39]44 <para>At first, fix an issue breaking
45 <filename class="libraryfile">libasan.a</filename> building this package
[51e4ab2]46 with Glibc-2.34 or later:</para>
[a04b3d39]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
[460f575]52 <para>If building on aarch64, change the default directory name for 64-bit
[be3d9f3]53 libraries to <quote>lib</quote>:</para>
54
55<screen><userinput remap="pre">case $(uname -m) in
[460f575]56 aarch64)
57 sed -e '/mabi.lp64=/s/lib64/lib/' \
58 -i.orig gcc/config/aarch64/t-aarch64-linux
[be3d9f3]59 ;;
60esac</userinput></screen>
61
[f1dd547]62 <para>The GCC documentation recommends building GCC in a dedicated build directory:</para>
[73aedd1d]63
[f1dd547]64<screen><userinput remap="pre">mkdir -v build
65cd build</userinput></screen>
[73aedd1d]66
[6a82dd9]67 <para>Prepare GCC for compilation:</para>
[73aedd1d]68
[efcb393]69<screen><userinput remap="configure">../configure --prefix=/usr \
70 LD=ld \
[f1dd547]71 --enable-languages=c,c++ \
72 --disable-multilib \
73 --disable-bootstrap \
74 --with-system-zlib</userinput></screen>
[73aedd1d]75
[6a156bab]76 <para>Note that for other programming languages there are some prerequisites that
[93756f6]77 are not yet available. See the
[6a156bab]78 <ulink url="&blfs-book;general/gcc.html">BLFS Book GCC page</ulink>
[93756f6]79 for instructions on how to build all of GCC's supported languages.</para>
[182d5d3]80
[ae4d45a]81 <variablelist>
[a89ab79]82 <title>The meaning of the new configure parameters:</title>
83
84 <varlistentry>
85 <term><parameter>LD=ld</parameter></term>
86 <listitem>
87 <para>This parameter makes the configure script use the ld installed
[6a156bab]88 by the binutils built earlier in this chapter, rather than
[a89ab79]89 the cross-built version which would otherwise be used.</para>
90 </listitem>
91 </varlistentry>
[cde2ae7]92
[ae4d45a]93 <varlistentry>
94 <term><parameter>--with-system-zlib</parameter></term>
95 <listitem>
96 <para>This switch tells GCC to link to the system installed copy of
[6a156bab]97 the zlib library, rather than its own internal copy.</para>
[ae4d45a]98 </listitem>
99 </varlistentry>
100 </variablelist>
101
[6a82dd9]102 <para>Compile the package:</para>
[73aedd1d]103
[0445a3d]104<screen><userinput remap="make">make</userinput></screen>
[73aedd1d]105
[6a82dd9]106 <important>
107 <para>In this section, the test suite for GCC is considered
[1f201845]108 important, but it takes a long time. First time builders are
109 encouraged to not skip it. The time to run the tests can be
110 reduced significantly by adding -jx to the make command below
111 where x is the number of cores on your system.</para>
[6a82dd9]112 </important>
[81fd230]113
[6a156bab]114 <para>One set of tests in the GCC test suite is known to exhaust the default
115 stack, so increase the stack size prior to running the tests:</para>
[4e48f56e]116
[2efa44a]117<screen><userinput remap="test">ulimit -s 32768</userinput></screen>
[4e48f56e]118
[76db8d6]119 <para>Test the results as a non-privileged user, but do not stop at errors:</para>
120
[d672ab7]121<screen><userinput remap="test">chown -Rv tester .
[ae7f075]122su tester -c "PATH=$PATH make -k check"</userinput></screen>
[73aedd1d]123
[9278974d]124 <para>To receive a summary of the test suite results, run:</para>
125
[f1dd547]126<screen><userinput remap="test">../contrib/test_summary</userinput></screen>
[9278974d]127
128 <para>For only the summaries, pipe the output through
129 <userinput>grep -A7 Summ</userinput>.</para>
130
131 <para>Results can be compared with those located at <ulink
[98e7ac4]132 url="&test-results;"/> and
[b30de8f]133 <ulink url="https://gcc.gnu.org/ml/gcc-testresults/"/>.</para>
[9278974d]134
[2cc15c3]135 <!-- https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101081 -->
136 <para>Eight tests related to analyzer are known to fail.</para>
137
138 <!-- https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101751 -->
139 <para>One test named <filename>asan_test.C</filename> is known to
140 fail.</para>
141
142 <!-- https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100117 -->
143 <para>In libstdc++, one test named <filename>49745.cc</filename> is
[89250241]144 known to fail because the header dependencies in glibc have
[2cc15c3]145 changed.</para>
[c2d2342]146
[cefe505]147 <para>In libstdc++, one numpunct test and six tests related to get_time are
148 known to fail. These are all because the locale definitions in glibc have
[e3d0e26]149 changed but libstdc++ does not currently support those changes.</para>
[d7a9421]150
[9278974d]151 <para>A few unexpected failures cannot always be avoided. The GCC developers
[0238d49]152 are usually aware of these issues, but have not resolved them yet.
[9278974d]153 Unless the test results are vastly different from those at the above URL,
154 it is safe to continue.</para>
[73aedd1d]155
[ac95fdb]156 <!--note><para>
[e3e989a]157 On some combinations of kernel configuration and AMD processors
158 there may be more than 1100 failures in the gcc.target/i386/mpx
159 tests (which are designed to test the MPX option on recent
160 Intel processors). These can safely be ignored on AMD
[1c8cc71]161 processors. These tests will also fail on Intel processors if MPX support
162 is not enabled in the kernel even though it is present on the CPU.
[ac95fdb]163 </para></note-->
[e3e989a]164
[3d086532]165 <!-- PR 91085, will be fixed in GCC 12. -->
[dacb13d]166 <para>Install the package and remove an unneeded directory:</para>
[73aedd1d]167
[3f01429]168<screen><userinput remap="install">make install
[d4c8cfe3]169rm -rf /usr/lib/gcc/$(gcc -dumpmachine)/&gcc-version;/include-fixed/bits/</userinput></screen>
[73aedd1d]170
[e6db175]171 <para>The GCC build directory is owned by <systemitem class="username">
[ae7f075]172 tester</systemitem> now and the ownership of the installed header
[bf0ad1a]173 directory (and its content) will be incorrect. Change the ownership to
[e6db175]174 <systemitem class="username">root</systemitem> user and group:</para>
175
176<screen><userinput remap="install">chown -v -R root:root \
177 /usr/lib/gcc/*linux-gnu/&gcc-version;/include{,-fixed}</userinput></screen>
178
[60b23a6f]179 <para>Create a symlink required by the <ulink
[b30de8f]180 url="https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch03s09.html">FHS</ulink>
[60b23a6f]181 for "historical" reasons.</para>
[73aedd1d]182
[9c3ce2a]183<screen><userinput remap="install">ln -svr /usr/bin/cpp /usr/lib</userinput></screen>
[efcb393]184 <!-- already done earlier
[6a82dd9]185 <para>Many packages use the name <command>cc</command> to call the C
186 compiler. To satisfy those packages, create a symlink:</para>
[1ba726f]187
[0445a3d]188<screen><userinput remap="install">ln -sv gcc /usr/bin/cc</userinput></screen>
[efcb393]189 -->
[6206f72]190 <para>Add a compatibility symlink to enable building programs with
[d672ab7]191 Link Time Optimization (LTO):</para>
[6206f72]192
[f36db31]193<screen><userinput remap="install">ln -sfv ../../libexec/gcc/$(gcc -dumpmachine)/&gcc-version;/liblto_plugin.so \
[040ecb6]194 /usr/lib/bfd-plugins/</userinput></screen>
[6206f72]195
[09f1daf]196 <para>Now that our final toolchain is in place, it is important to again ensure
197 that compiling and linking will work as expected. We do this by performing
[6a156bab]198 some sanity checks:</para>
[09f1daf]199
[a3f7b43]200<screen><userinput>echo 'int main(){}' &gt; dummy.c
201cc dummy.c -v -Wl,--verbose &amp;&gt; dummy.log
202readelf -l a.out | grep ': /lib'</userinput></screen>
[09f1daf]203
[a3f7b43]204 <para>There should be no errors,
205 and the output of the last command will be (allowing for
206 platform-specific differences in the dynamic linker name):</para>
[09f1daf]207
[a3f7b43]208<screen><computeroutput>[Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]</computeroutput></screen>
[09f1daf]209
[a3f7b43]210 <para>Now make sure that we're setup to use the correct start files:</para>
[09f1daf]211
[a3f7b43]212<screen><userinput>grep -o '/usr/lib.*/crt[1in].*succeeded' dummy.log</userinput></screen>
[09f1daf]213
[a3f7b43]214 <para>The output of the last command should be:</para>
[09f1daf]215
[460f575]216<screen><computeroutput>/usr/lib/gcc/aarch64-unknown-linux-gnu/&gcc-version;/../../../../lib/crt1.o succeeded
217/usr/lib/gcc/aarch64-unknown-linux-gnu/&gcc-version;/../../../../lib/crti.o succeeded
218/usr/lib/gcc/aarch64-unknown-linux-gnu/&gcc-version;/../../../../lib/crtn.o succeeded</computeroutput></screen>
[09f1daf]219
[6a156bab]220 <para>Depending on your machine architecture, the above may differ slightly.
221 The difference will be the name of the directory
[be3d9f3]222 after <filename class="directory">/usr/lib/gcc</filename>. The important
223 thing to look for here is that <command>gcc</command> has found all three
[5f7456b]224 <filename>crt*.o</filename> files under the
225 <filename class="directory">/usr/lib</filename> directory.</para>
[6e88633]226
[a3f7b43]227 <para>Verify that the compiler is searching for the correct header
228 files:</para>
[09f1daf]229
[041c8f67]230<screen><userinput>grep -B4 '^ /usr/include' dummy.log</userinput></screen>
[e9a652b]231
[a3f7b43]232 <para>This command should return the following output:</para>
[09f1daf]233
[e9a652b]234<screen><computeroutput>#include &lt;...&gt; search starts here:
[460f575]235 /usr/lib/gcc/aarch-64-unknown-linux-gnu/&gcc-version;/include
[c528e3a]236 /usr/local/include
[460f575]237 /usr/lib/gcc/aarch64-unknown-linux-gnu/&gcc-version;/include-fixed
[e9a652b]238 /usr/include</computeroutput></screen>
239
[6a156bab]240 <para>Again, the directory named after your target triplet may be
241 different than the above, depending on your system architecture.</para>
[3f39abf3]242
[a3f7b43]243 <para>Next, verify that the new linker is being used with the correct search paths:</para>
[09f1daf]244
[a3f7b43]245<screen><userinput>grep 'SEARCH.*/usr/lib' dummy.log |sed 's|; |\n|g'</userinput></screen>
[09f1daf]246
[a3f7b43]247 <para>References to paths that have components with '-linux-gnu' should
248 be ignored, but otherwise the output of the last command should be:</para>
[09f1daf]249
[460f575]250<screen><computeroutput>SEARCH_DIR("/usr/aarch64-unknown-linux-gnu/lib64")
[98e7ac4]251SEARCH_DIR("/usr/local/lib64")
252SEARCH_DIR("/lib64")
253SEARCH_DIR("/usr/lib64")
[460f575]254SEARCH_DIR("/usr/aarch64-unknown-linux-gnu/lib")
[e9a652b]255SEARCH_DIR("/usr/local/lib")
256SEARCH_DIR("/lib")
[6e88633]257SEARCH_DIR("/usr/lib");</computeroutput></screen>
258
[98e7ac4]259 <para>A 32-bit system may see a few different directories. For example, here
[460f575]260 is the output from a 32bit ARM machine:</para>
[6e88633]261
[460f575]262<screen><computeroutput>SEARCH_DIR("/usr/armv6l-unknown-linux-gnueabihf/lib")
[6e88633]263SEARCH_DIR("/usr/local/lib")
264SEARCH_DIR("/lib")
[e9a652b]265SEARCH_DIR("/usr/lib");</computeroutput></screen>
266
[a3f7b43]267 <para>Next make sure that we're using the correct libc:</para>
[09f1daf]268
[a3f7b43]269<screen><userinput>grep "/lib.*/libc.so.6 " dummy.log</userinput></screen>
[09f1daf]270
[a3f7b43]271 <para>The output of the last command should be:</para>
[09f1daf]272
[a3f7b43]273<screen><computeroutput>attempt to open /usr/lib/libc.so.6 succeeded</computeroutput></screen>
[09f1daf]274
[a3f7b43]275 <para>Make sure GCC is using the correct dynamic linker:</para>
[09f1daf]276
[a3f7b43]277<screen><userinput>grep found dummy.log</userinput></screen>
[09f1daf]278
[a3f7b43]279 <para>The output of the last command should be (allowing for
280 platform-specific differences in dynamic linker name):</para>
[09f1daf]281
[a3f7b43]282<screen><computeroutput>found ld-linux-x86-64.so.2 at /usr/lib/ld-linux-x86-64.so.2</computeroutput></screen>
[09f1daf]283
[a3f7b43]284 <para>If the output does not appear as shown above or is not received
285 at all, then something is seriously wrong. Investigate and retrace the
286 steps to find out where the problem is and correct it. <!--The most likely
287 reason is that something went wrong with the specs file adjustment.--> Any
288 issues will need to be resolved before continuing with the process.</para>
[6a82dd9]289
[a3f7b43]290 <para>Once everything is working correctly, clean up the test files:</para>
[e9a652b]291
[a3f7b43]292<screen><userinput>rm -v dummy.c a.out dummy.log</userinput></screen>
[e9a652b]293
[970a126]294 <para>Finally, move a misplaced file:</para>
[39ec01c]295
[970a126]296<screen><userinput remap="install">mkdir -pv /usr/share/gdb/auto-load/usr/lib
297mv -v /usr/lib/*gdb.py /usr/share/gdb/auto-load/usr/lib</userinput></screen>
[39ec01c]298
[6a82dd9]299 </sect2>
300
301 <sect2 id="contents-gcc" role="content">
302 <title>Contents of GCC</title>
303
304 <segmentedlist>
305 <segtitle>Installed programs</segtitle>
306 <segtitle>Installed libraries</segtitle>
[fe05b08]307 <segtitle>Installed directories</segtitle>
[6a82dd9]308
309 <seglistitem>
[2ca8941]310 <seg>c++, cc (link to gcc), cpp, g++, gcc,
[e5b4b3f]311 gcc-ar, gcc-nm, gcc-ranlib, gcov, gcov-dump, gcov-tool,
312 and lto-dump</seg>
[e0901b3]313
[78cc3be]314 <seg>libasan.{a,so}, libatomic.{a,so}, libcc1.so, libgcc.a, libgcc_eh.a,
315 libgcc_s.so, libgcov.a, libgomp.{a,so}, libitm.{a,so},
316 liblsan.{a,so}, liblto_plugin.so,
[460f575]317 libssp.{a,so}, libssp_nonshared.a,
[78cc3be]318 libstdc++.{a,so}, libstdc++fs.a, libsupc++.a, libtsan.{a,so},
319 and libubsan.{a,so}</seg>
[2ca8941]320
[d672ab7]321 <seg>/usr/include/c++, /usr/lib/gcc, /usr/libexec/gcc, and
[4e8a532]322 /usr/share/gcc-&gcc-version;</seg>
[6a82dd9]323 </seglistitem>
324 </segmentedlist>
325
326 <variablelist>
327 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
328 <?dbfo list-presentation="list"?>
329 <?dbhtml list-presentation="table"?>
330
[75128571]331 <varlistentry id="c">
332 <term><command>c++</command></term>
333 <listitem>
334 <para>The C++ compiler</para>
335 <indexterm zone="ch-system-gcc c">
336 <primary sortas="b-c++">c++</primary>
337 </indexterm>
338 </listitem>
339 </varlistentry>
340
[6a82dd9]341 <varlistentry id="cc">
342 <term><command>cc</command></term>
343 <listitem>
344 <para>The C compiler</para>
345 <indexterm zone="ch-system-gcc cc">
346 <primary sortas="b-cc">cc</primary>
347 </indexterm>
348 </listitem>
349 </varlistentry>
350
351 <varlistentry id="cpp">
352 <term><command>cpp</command></term>
353 <listitem>
354 <para>The C preprocessor; it is used by the compiler to expand the
355 #include, #define, and similar statements in the source files</para>
356 <indexterm zone="ch-system-gcc cpp">
357 <primary sortas="b-cpp">cpp</primary>
358 </indexterm>
359 </listitem>
360 </varlistentry>
361
362 <varlistentry id="g">
363 <term><command>g++</command></term>
364 <listitem>
365 <para>The C++ compiler</para>
366 <indexterm zone="ch-system-gcc g">
367 <primary sortas="b-g++">g++</primary>
368 </indexterm>
369 </listitem>
370 </varlistentry>
371
372 <varlistentry id="gcc">
373 <term><command>gcc</command></term>
374 <listitem>
375 <para>The C compiler</para>
376 <indexterm zone="ch-system-gcc gcc">
377 <primary sortas="b-gcc">gcc</primary>
378 </indexterm>
379 </listitem>
380 </varlistentry>
381
[e0901b3]382 <varlistentry id="gcc-ar">
383 <term><command>gcc-ar</command></term>
384 <listitem>
385 <para>A wrapper around <command>ar</command> that adds a
[afba93b]386 plugin to the command line. This program is only used
[edbeeb5]387 to add "link time optimization" and is not useful with the
[afba93b]388 default build options</para>
[e0901b3]389 <indexterm zone="ch-system-gcc gcc-ar">
390 <primary sortas="b-gcc-ar">gc-ar</primary>
391 </indexterm>
392 </listitem>
393 </varlistentry>
394
395 <varlistentry id="gcc-nm">
396 <term><command>gcc-nm</command></term>
397 <listitem>
398 <para>A wrapper around <command>nm</command> that adds a
[afba93b]399 plugin to the command line. This program is only used
[a885478]400 to add "link time optimization" and is not useful with the
[afba93b]401 default build options</para>
[e0901b3]402 <indexterm zone="ch-system-gcc gcc-nm">
403 <primary sortas="b-gcc-nm">gc-nm</primary>
404 </indexterm>
405 </listitem>
406 </varlistentry>
407
408 <varlistentry id="gcc-ranlib">
409 <term><command>gcc-ranlib</command></term>
410 <listitem>
411 <para>A wrapper around <command>ranlib</command> that adds a
[afba93b]412 plugin to the command line. This program is only used
[a885478]413 to add "link time optimization" and is not useful with the
[afba93b]414 default build options</para>
[e0901b3]415 <indexterm zone="ch-system-gcc gcc-ranlib">
416 <primary sortas="b-gcc-ranlib">gc-ranlib</primary>
417 </indexterm>
418 </listitem>
419 </varlistentry>
[6a82dd9]420
421 <varlistentry id="gcov">
422 <term><command>gcov</command></term>
423 <listitem>
424 <para>A coverage testing tool; it is used to analyze programs to
425 determine where optimizations will have the most effect</para>
426 <indexterm zone="ch-system-gcc gcov">
427 <primary sortas="b-gcov">gcov</primary>
428 </indexterm>
[4783efe]429 </listitem>
430 </varlistentry>
431
[78cc3be]432 <varlistentry id="gcov-dump">
433 <term><command>gcov-dump</command></term>
434 <listitem>
435 <para>Offline gcda and gcno profile dump tool</para>
436 <indexterm zone="ch-system-gcc gcov-dump">
437 <primary sortas="b-gcov-dump">gcov-dump</primary>
438 </indexterm>
439 </listitem>
440 </varlistentry>
441
442 <varlistentry id="gcov-tool">
443 <term><command>gcov-tool</command></term>
444 <listitem>
445 <para>Offline gcda profile processing tool</para>
446 <indexterm zone="ch-system-gcc gcov-tool">
447 <primary sortas="b-gcov-tool">gcov-tool</primary>
448 </indexterm>
449 </listitem>
450 </varlistentry>
451
[e5b4b3f]452 <varlistentry id="lto-dump">
453 <term><command>lto-dump</command></term>
454 <listitem>
455 <para>Tool for dumping object files produced by GCC with LTO
456 enabled</para>
457 <indexterm zone="ch-system-gcc lto-dump">
458 <primary sortas="b-lto-dump">lto-dump</primary>
459 </indexterm>
460 </listitem>
461 </varlistentry>
462
[4783efe]463 <varlistentry id="libasan">
[78cc3be]464 <term><filename class="libraryfile">libasan</filename></term>
[4783efe]465 <listitem>
466 <para>The Address Sanitizer runtime library</para>
467 <indexterm zone="ch-system-gcc libasan">
468 <primary sortas="b-libasan">libasan</primary>
469 </indexterm>
[6a82dd9]470 </listitem>
471 </varlistentry>
472
[78cc3be]473 <varlistentry id="libatomic">
474 <term><filename class="libraryfile">libatomic</filename></term>
475 <listitem>
476 <para>GCC atomic built-in runtime library</para>
477 <indexterm zone="ch-system-gcc libatomic">
478 <primary sortas="b-libatomic">libatomic</primary>
479 </indexterm>
480 </listitem>
481 </varlistentry>
482
483 <varlistentry id="libcc1">
484 <term><filename class="libraryfile">libcc1</filename></term>
485 <listitem>
486 <para>The C preprocessing library</para>
487 <indexterm zone="ch-system-gcc libcc1">
488 <primary sortas="b-libcc1">libcc1</primary>
489 </indexterm>
490 </listitem>
491 </varlistentry>
492
[6a82dd9]493 <varlistentry id="libgcc">
494 <term><filename class="libraryfile">libgcc</filename></term>
495 <listitem>
496 <para>Contains run-time support for <command>gcc</command></para>
497 <indexterm zone="ch-system-gcc libgcc">
[afba93b]498 <primary sortas="c-libgcc">libgcc</primary>
[6a82dd9]499 </indexterm>
500 </listitem>
501 </varlistentry>
502
[90aae6b]503 <varlistentry id="libgcov">
504 <term><filename class="libraryfile">libgcov</filename></term>
505 <listitem>
506 <para>This library is linked in to a program when GCC is instructed
507 to enable profiling</para>
508 <indexterm zone="ch-system-gcc libgcov">
509 <primary sortas="c-libgcov">libgcov</primary>
510 </indexterm>
511 </listitem>
512 </varlistentry>
513
514 <varlistentry id="libgomp">
515 <term><filename class="libraryfile">libgomp</filename></term>
516 <listitem>
517 <para>GNU implementation of the OpenMP API for multi-platform
518 shared-memory parallel programming in C/C++ and Fortran</para>
519 <indexterm zone="ch-system-gcc libgomp">
520 <primary sortas="c-libgomp">libgomp</primary>
521 </indexterm>
522 </listitem>
523 </varlistentry>
524
[e5b4b3f]525 <varlistentry id="libitm">
526 <term><filename class="libraryfile">libitm</filename></term>
527 <listitem>
528 <para>The GNU transactional memory library</para>
529 <indexterm zone="ch-system-gcc libitm">
530 <primary sortas="c-libitm">libitm</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>
[e5b4b3f]548 <para>GCC's LTO plugin allows binutils to process object files
549 produced by GCC with LTO enabled</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.