gcc.xml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-system-gcc" role="wrap">
  8. <?dbhtml filename="gcc.html"?>
  9. <sect1info condition="script">
  10. <productname>gcc</productname>
  11. <productnumber>&gcc-version;</productnumber>
  12. <address>&gcc-url;</address>
  13. </sect1info>
  14. <title>GCC-&gcc-version;</title>
  15. <indexterm zone="ch-system-gcc">
  16. <primary sortas="a-GCC">GCC</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The GCC package contains the GNU compiler collection, which includes
  21. the C and C++ compilers.</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&gcc-ch6-sbu;</seg>
  27. <seg>&gcc-ch6-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of GCC</title>
  33. <para>If building on x86_64, change the default directory name for 64-bit
  34. libraries to <quote>lib</quote>:</para>
  35. <screen><userinput remap="pre">case $(uname -m) in
  36. x86_64)
  37. sed -e '/m64=/s/lib64/lib/' \
  38. -i.orig gcc/config/i386/t-linux64
  39. ;;
  40. esac</userinput></screen>
  41. <para>
  42. As in gcc-pass2, fix a problem introduced by aother package after this version
  43. of gcc was released:
  44. </para>
  45. <screen><userinput remap="pre">sed -e '1161 s|^|//|' \
  46. -i libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc</userinput></screen>
  47. <para>The GCC documentation recommends building GCC in a dedicated build directory:</para>
  48. <screen><userinput remap="pre">mkdir -v build
  49. cd build</userinput></screen>
  50. <para>Prepare GCC for compilation:</para>
  51. <screen><userinput remap="configure">SED=sed \
  52. ../configure --prefix=/usr \
  53. --enable-languages=c,c++ \
  54. --disable-multilib \
  55. --disable-bootstrap \
  56. --with-system-zlib</userinput></screen>
  57. <para>Note that for other languages, there are some prerequisites that
  58. are not yet available. See the
  59. <ulink url="&blfs-book;general/gcc.html">BLFS Book</ulink>
  60. for instructions on how to build all of GCC's supported languages.</para>
  61. <variablelist>
  62. <title>The meaning of the new configure parameters:</title>
  63. <varlistentry>
  64. <term><envar>SED=sed</envar></term>
  65. <listitem>
  66. <para>Setting this environment variable prevents a hard-coded
  67. path to /tools/bin/sed.</para>
  68. </listitem>
  69. </varlistentry>
  70. <!--
  71. <varlistentry>
  72. <term><parameter>- -disable-libmpx</parameter></term>
  73. <listitem>
  74. <para>This switch tells GCC to not build mpx (Memory Protection
  75. Extensions) that can cause problems on some processors. It has
  76. been removed from the next version of gcc.</para>
  77. </listitem>
  78. </varlistentry>
  79. -->
  80. <varlistentry>
  81. <term><parameter>--with-system-zlib</parameter></term>
  82. <listitem>
  83. <para>This switch tells GCC to link to the system installed copy of
  84. the Zlib library, rather than its own internal copy.</para>
  85. </listitem>
  86. </varlistentry>
  87. </variablelist>
  88. <para>Compile the package:</para>
  89. <screen><userinput remap="make">make</userinput></screen>
  90. <important>
  91. <para>In this section, the test suite for GCC is considered
  92. critical. Do not skip it under any circumstance.</para>
  93. </important>
  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. <screen><userinput remap="test">ulimit -s 32768</userinput></screen>
  97. <para>Test the results as a non-privileged user, but do not stop at errors:</para>
  98. <screen><userinput remap="test">chown -Rv nobody .
  99. su nobody -s /bin/bash -c "PATH=$PATH make -k check"</userinput></screen>
  100. <para>To receive a summary of the test suite results, run:</para>
  101. <screen><userinput remap="test">../contrib/test_summary</userinput></screen>
  102. <para>For only the summaries, pipe the output through
  103. <userinput>grep -A7 Summ</userinput>.</para>
  104. <para>Results can be compared with those located at <ulink
  105. url="&test-results;"/> and
  106. <ulink url="https://gcc.gnu.org/ml/gcc-testresults/"/>.</para>
  107. <para>Six tests related to get_time are known to fail. These are
  108. apparently related to the en_HK locale.</para>
  109. <para>Two tests named lookup.cc and reverse.cc in experimental/net
  110. are known to fail in LFS chroot environment because they require
  111. /etc/hosts and iana-etc.</para>
  112. <para>Two tests named pr57193.c and pr90178.c are known to fail.</para>
  113. <para>A few unexpected failures cannot always be avoided. The GCC developers
  114. are usually aware of these issues, but have not resolved them yet.
  115. Unless the test results are vastly different from those at the above URL,
  116. it is safe to continue.</para>
  117. <!--note><para>
  118. On some combinations of kernel configuration and AMD processors
  119. there may be more than 1100 failures in the gcc.target/i386/mpx
  120. tests (which are designed to test the MPX option on recent
  121. Intel processors). These can safely be ignored on AMD
  122. processors. These tests will also fail on Intel processors if MPX support
  123. is not enabled in the kernel even though it is present on the CPU.
  124. </para></note-->
  125. <para>Install the package and remove an unneeded directory:</para>
  126. <screen><userinput remap="install">make install
  127. rm -rf /usr/lib/gcc/$(gcc -dumpmachine)/&gcc-version;/include-fixed/bits/</userinput></screen>
  128. <para>The GCC build directory is owned by <systemitem class="username">
  129. nobody</systemitem> now and the ownership of the installed header
  130. directory (and its content) will be incorrect. Change the ownership to
  131. <systemitem class="username">root</systemitem> user and group:</para>
  132. <screen><userinput remap="install">chown -v -R root:root \
  133. /usr/lib/gcc/*linux-gnu/&gcc-version;/include{,-fixed}</userinput></screen>
  134. <para>Create a symlink required by the <ulink
  135. url="https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch03s09.html">FHS</ulink>
  136. for "historical" reasons.</para>
  137. <screen><userinput remap="install">ln -sv ../usr/bin/cpp /lib</userinput></screen>
  138. <para>Many packages use the name <command>cc</command> to call the C
  139. compiler. To satisfy those packages, create a symlink:</para>
  140. <screen><userinput remap="install">ln -sv gcc /usr/bin/cc</userinput></screen>
  141. <para>Add a compatibility symlink to enable building programs with
  142. Link Time Optimization (LTO):</para>
  143. <screen><userinput remap="install">install -v -dm755 /usr/lib/bfd-plugins
  144. ln -sfv ../../libexec/gcc/$(gcc -dumpmachine)/&gcc-version;/liblto_plugin.so \
  145. /usr/lib/bfd-plugins/</userinput></screen>
  146. <para>Now that our final toolchain is in place, it is important to again ensure
  147. that compiling and linking will work as expected. We do this by performing
  148. the same sanity checks as we did earlier in the chapter:</para>
  149. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  150. href="adjusting.xml"
  151. xpointer="xpointer(//*[@os='a'])"/>
  152. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  153. href="adjusting.xml"
  154. xpointer="xpointer(//*[@os='b'])"/>
  155. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  156. href="adjusting.xml"
  157. xpointer="xpointer(//*[@os='c'])"/>
  158. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  159. href="adjusting.xml"
  160. xpointer="xpointer(//*[@os='d'])"/>
  161. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  162. href="adjusting.xml"
  163. xpointer="xpointer(//*[@os='e'])"/>
  164. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  165. href="adjusting.xml"
  166. xpointer="xpointer(//*[@os='f'])"/>
  167. <screen><computeroutput>/usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/../../../../lib/crt1.o succeeded
  168. /usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/../../../../lib/crti.o succeeded
  169. /usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/../../../../lib/crtn.o succeeded</computeroutput></screen>
  170. <para>Depending on your machine architecture, the above may differ slightly,
  171. the difference usually being the name of the directory
  172. after <filename class="directory">/usr/lib/gcc</filename>. The important
  173. thing to look for here is that <command>gcc</command> has found all three
  174. <filename>crt*.o</filename> files under the
  175. <filename class="directory">/usr/lib</filename> directory.</para>
  176. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  177. href="adjusting.xml"
  178. xpointer="xpointer(//*[@os='g'])"/>
  179. <screen><userinput>grep -B4 '^ /usr/include' dummy.log</userinput></screen>
  180. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  181. href="adjusting.xml"
  182. xpointer="xpointer(//*[@os='h'])"/>
  183. <screen><computeroutput>#include &lt;...&gt; search starts here:
  184. /usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/include
  185. /usr/local/include
  186. /usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/include-fixed
  187. /usr/include</computeroutput></screen>
  188. <para>Again, note that the directory named after your target triplet may be
  189. different than the above, depending on your architecture.</para>
  190. <!-- This appears to be obsolete
  191. <note><para>As of version 4.3.0, GCC now unconditionally installs the
  192. <filename>limits.h</filename> file into the private
  193. <filename class="directory">include-fixed</filename> directory, and that
  194. directory is required to be in place.</para></note>
  195. -->
  196. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  197. href="adjusting.xml"
  198. xpointer="xpointer(//*[@os='i'])"/>
  199. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  200. href="adjusting.xml"
  201. xpointer="xpointer(//*[@os='j'])"/>
  202. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  203. href="adjusting.xml"
  204. xpointer="xpointer(//*[@os='k'])"/>
  205. <screen><computeroutput>SEARCH_DIR("/usr/x86_64-pc-linux-gnu/lib64")
  206. SEARCH_DIR("/usr/local/lib64")
  207. SEARCH_DIR("/lib64")
  208. SEARCH_DIR("/usr/lib64")
  209. SEARCH_DIR("/usr/x86_64-pc-linux-gnu/lib")
  210. SEARCH_DIR("/usr/local/lib")
  211. SEARCH_DIR("/lib")
  212. SEARCH_DIR("/usr/lib");</computeroutput></screen>
  213. <para>A 32-bit system may see a few different directories. For example, here
  214. is the output from an i686 machine:</para>
  215. <screen><computeroutput>SEARCH_DIR("/usr/i686-pc-linux-gnu/lib32")
  216. SEARCH_DIR("/usr/local/lib32")
  217. SEARCH_DIR("/lib32")
  218. SEARCH_DIR("/usr/lib32")
  219. SEARCH_DIR("/usr/i686-pc-linux-gnu/lib")
  220. SEARCH_DIR("/usr/local/lib")
  221. SEARCH_DIR("/lib")
  222. SEARCH_DIR("/usr/lib");</computeroutput></screen>
  223. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  224. href="adjusting.xml"
  225. xpointer="xpointer(//*[@os='l'])"/>
  226. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  227. href="adjusting.xml"
  228. xpointer="xpointer(//*[@os='m'])"/>
  229. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  230. href="adjusting.xml"
  231. xpointer="xpointer(//*[@os='n'])"/>
  232. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  233. href="adjusting.xml"
  234. xpointer="xpointer(//*[@os='o'])"/>
  235. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  236. href="adjusting.xml"
  237. xpointer="xpointer(//*[@os='p'])"/>
  238. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  239. href="adjusting.xml"
  240. xpointer="xpointer(//*[@os='q'])"/>
  241. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  242. href="adjusting.xml"
  243. xpointer="xpointer(//*[@os='r'])"/>
  244. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  245. href="adjusting.xml"
  246. xpointer="xpointer(//*[@os='s'])"/>
  247. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  248. href="adjusting.xml"
  249. xpointer="xpointer(//*[@os='t'])"/>
  250. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  251. href="adjusting.xml"
  252. xpointer="xpointer(//*[@os='u'])"/>
  253. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  254. href="adjusting.xml"
  255. xpointer="xpointer(//*[@os='v'])"/>
  256. <para>Finally, move a misplaced file:</para>
  257. <screen><userinput remap="install">mkdir -pv /usr/share/gdb/auto-load/usr/lib
  258. mv -v /usr/lib/*gdb.py /usr/share/gdb/auto-load/usr/lib</userinput></screen>
  259. </sect2>
  260. <sect2 id="contents-gcc" role="content">
  261. <title>Contents of GCC</title>
  262. <segmentedlist>
  263. <segtitle>Installed programs</segtitle>
  264. <segtitle>Installed libraries</segtitle>
  265. <segtitle>Installed directories</segtitle>
  266. <seglistitem>
  267. <seg>c++, cc (link to gcc), cpp, g++, gcc,
  268. gcc-ar, gcc-nm, gcc-ranlib, gcov, gcov-dump, and gcov-tool</seg>
  269. <seg>libasan.{a,so}, libatomic.{a,so}, libcc1.so, libgcc.a, libgcc_eh.a,
  270. libgcc_s.so, libgcov.a, libgomp.{a,so}, libitm.{a,so},
  271. liblsan.{a,so}, liblto_plugin.so,
  272. libquadmath.{a,so}, libssp.{a,so}, libssp_nonshared.a,
  273. libstdc++.{a,so}, libstdc++fs.a, libsupc++.a, libtsan.{a,so},
  274. and libubsan.{a,so}</seg>
  275. <seg>/usr/include/c++, /usr/lib/gcc, /usr/libexec/gcc, and
  276. /usr/share/gcc-&gcc-version;</seg>
  277. </seglistitem>
  278. </segmentedlist>
  279. <variablelist>
  280. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  281. <?dbfo list-presentation="list"?>
  282. <?dbhtml list-presentation="table"?>
  283. <varlistentry id="c">
  284. <term><command>c++</command></term>
  285. <listitem>
  286. <para>The C++ compiler</para>
  287. <indexterm zone="ch-system-gcc c">
  288. <primary sortas="b-c++">c++</primary>
  289. </indexterm>
  290. </listitem>
  291. </varlistentry>
  292. <varlistentry id="cc">
  293. <term><command>cc</command></term>
  294. <listitem>
  295. <para>The C compiler</para>
  296. <indexterm zone="ch-system-gcc cc">
  297. <primary sortas="b-cc">cc</primary>
  298. </indexterm>
  299. </listitem>
  300. </varlistentry>
  301. <varlistentry id="cpp">
  302. <term><command>cpp</command></term>
  303. <listitem>
  304. <para>The C preprocessor; it is used by the compiler to expand the
  305. #include, #define, and similar statements in the source files</para>
  306. <indexterm zone="ch-system-gcc cpp">
  307. <primary sortas="b-cpp">cpp</primary>
  308. </indexterm>
  309. </listitem>
  310. </varlistentry>
  311. <varlistentry id="g">
  312. <term><command>g++</command></term>
  313. <listitem>
  314. <para>The C++ compiler</para>
  315. <indexterm zone="ch-system-gcc g">
  316. <primary sortas="b-g++">g++</primary>
  317. </indexterm>
  318. </listitem>
  319. </varlistentry>
  320. <varlistentry id="gcc">
  321. <term><command>gcc</command></term>
  322. <listitem>
  323. <para>The C compiler</para>
  324. <indexterm zone="ch-system-gcc gcc">
  325. <primary sortas="b-gcc">gcc</primary>
  326. </indexterm>
  327. </listitem>
  328. </varlistentry>
  329. <varlistentry id="gcc-ar">
  330. <term><command>gcc-ar</command></term>
  331. <listitem>
  332. <para>A wrapper around <command>ar</command> that adds a
  333. plugin to the command line. This program is only used
  334. to add "link time optimization" and is not useful with the
  335. default build options</para>
  336. <indexterm zone="ch-system-gcc gcc-ar">
  337. <primary sortas="b-gcc-ar">gc-ar</primary>
  338. </indexterm>
  339. </listitem>
  340. </varlistentry>
  341. <varlistentry id="gcc-nm">
  342. <term><command>gcc-nm</command></term>
  343. <listitem>
  344. <para>A wrapper around <command>nm</command> that adds a
  345. plugin to the command line. This program is only used
  346. to add "link time optimization" and is not useful with the
  347. default build options</para>
  348. <indexterm zone="ch-system-gcc gcc-nm">
  349. <primary sortas="b-gcc-nm">gc-nm</primary>
  350. </indexterm>
  351. </listitem>
  352. </varlistentry>
  353. <varlistentry id="gcc-ranlib">
  354. <term><command>gcc-ranlib</command></term>
  355. <listitem>
  356. <para>A wrapper around <command>ranlib</command> that adds a
  357. plugin to the command line. This program is only used
  358. to add "link time optimization" and is not useful with the
  359. default build options</para>
  360. <indexterm zone="ch-system-gcc gcc-ranlib">
  361. <primary sortas="b-gcc-ranlib">gc-ranlib</primary>
  362. </indexterm>
  363. </listitem>
  364. </varlistentry>
  365. <varlistentry id="gcov">
  366. <term><command>gcov</command></term>
  367. <listitem>
  368. <para>A coverage testing tool; it is used to analyze programs to
  369. determine where optimizations will have the most effect</para>
  370. <indexterm zone="ch-system-gcc gcov">
  371. <primary sortas="b-gcov">gcov</primary>
  372. </indexterm>
  373. </listitem>
  374. </varlistentry>
  375. <varlistentry id="gcov-dump">
  376. <term><command>gcov-dump</command></term>
  377. <listitem>
  378. <para>Offline gcda and gcno profile dump tool</para>
  379. <indexterm zone="ch-system-gcc gcov-dump">
  380. <primary sortas="b-gcov-dump">gcov-dump</primary>
  381. </indexterm>
  382. </listitem>
  383. </varlistentry>
  384. <varlistentry id="gcov-tool">
  385. <term><command>gcov-tool</command></term>
  386. <listitem>
  387. <para>Offline gcda profile processing tool</para>
  388. <indexterm zone="ch-system-gcc gcov-tool">
  389. <primary sortas="b-gcov-tool">gcov-tool</primary>
  390. </indexterm>
  391. </listitem>
  392. </varlistentry>
  393. <varlistentry id="libasan">
  394. <term><filename class="libraryfile">libasan</filename></term>
  395. <listitem>
  396. <para>The Address Sanitizer runtime library</para>
  397. <indexterm zone="ch-system-gcc libasan">
  398. <primary sortas="b-libasan">libasan</primary>
  399. </indexterm>
  400. </listitem>
  401. </varlistentry>
  402. <varlistentry id="libatomic">
  403. <term><filename class="libraryfile">libatomic</filename></term>
  404. <listitem>
  405. <para>GCC atomic built-in runtime library</para>
  406. <indexterm zone="ch-system-gcc libatomic">
  407. <primary sortas="b-libatomic">libatomic</primary>
  408. </indexterm>
  409. </listitem>
  410. </varlistentry>
  411. <varlistentry id="libcc1">
  412. <term><filename class="libraryfile">libcc1</filename></term>
  413. <listitem>
  414. <para>The C preprocessing library</para>
  415. <indexterm zone="ch-system-gcc libcc1">
  416. <primary sortas="b-libcc1">libcc1</primary>
  417. </indexterm>
  418. </listitem>
  419. </varlistentry>
  420. <varlistentry id="libgcc">
  421. <term><filename class="libraryfile">libgcc</filename></term>
  422. <listitem>
  423. <para>Contains run-time support for <command>gcc</command></para>
  424. <indexterm zone="ch-system-gcc libgcc">
  425. <primary sortas="c-libgcc">libgcc</primary>
  426. </indexterm>
  427. </listitem>
  428. </varlistentry>
  429. <varlistentry id="libgcov">
  430. <term><filename class="libraryfile">libgcov</filename></term>
  431. <listitem>
  432. <para>This library is linked in to a program when GCC is instructed
  433. to enable profiling</para>
  434. <indexterm zone="ch-system-gcc libgcov">
  435. <primary sortas="c-libgcov">libgcov</primary>
  436. </indexterm>
  437. </listitem>
  438. </varlistentry>
  439. <varlistentry id="libgomp">
  440. <term><filename class="libraryfile">libgomp</filename></term>
  441. <listitem>
  442. <para>GNU implementation of the OpenMP API for multi-platform
  443. shared-memory parallel programming in C/C++ and Fortran</para>
  444. <indexterm zone="ch-system-gcc libgomp">
  445. <primary sortas="c-libgomp">libgomp</primary>
  446. </indexterm>
  447. </listitem>
  448. </varlistentry>
  449. <varlistentry id="liblsan">
  450. <term><filename class="libraryfile">liblsan</filename></term>
  451. <listitem>
  452. <para>The Leak Sanitizer runtime library</para>
  453. <indexterm zone="ch-system-gcc liblsan">
  454. <primary sortas="c-liblsan">liblsan</primary>
  455. </indexterm>
  456. </listitem>
  457. </varlistentry>
  458. <varlistentry id="liblto_plugin">
  459. <term><filename class="libraryfile">liblto_plugin</filename></term>
  460. <listitem>
  461. <para>GCC's Link Time Optimization (LTO) plugin allows GCC to perform
  462. optimizations across compilation units</para>
  463. <indexterm zone="ch-system-gcc liblto_plugin">
  464. <primary sortas="c-liblto_plugin">liblto_plugin</primary>
  465. </indexterm>
  466. </listitem>
  467. </varlistentry>
  468. <varlistentry id="libquadmath">
  469. <term><filename class="libraryfile">libquadmath</filename></term>
  470. <listitem>
  471. <para>GCC Quad Precision Math Library API</para>
  472. <indexterm zone="ch-system-gcc libquadmath">
  473. <primary sortas="c-libquadmath">libquadmath</primary>
  474. </indexterm>
  475. </listitem>
  476. </varlistentry>
  477. <varlistentry id="libssp">
  478. <term><filename class="libraryfile">libssp</filename></term>
  479. <listitem>
  480. <para>Contains routines supporting GCC's stack-smashing protection
  481. functionality</para>
  482. <indexterm zone="ch-system-gcc libssp">
  483. <primary sortas="c-libssp">libssp</primary>
  484. </indexterm>
  485. </listitem>
  486. </varlistentry>
  487. <varlistentry id="libstdc">
  488. <term><filename class="libraryfile">libstdc++</filename></term>
  489. <listitem>
  490. <para>The standard C++ library</para>
  491. <indexterm zone="ch-system-gcc libstdc">
  492. <primary sortas="c-libstdc++">libstdc++</primary>
  493. </indexterm>
  494. </listitem>
  495. </varlistentry>
  496. <varlistentry id="libstdcfs">
  497. <term><filename class="libraryfile">libstdc++fs</filename></term>
  498. <listitem>
  499. <para>ISO/IEC TS 18822:2015 Filesystem library</para>
  500. <indexterm zone="ch-system-gcc libstdcfs">
  501. <primary sortas="c-libstdc++fs">libstdc++fs</primary>
  502. </indexterm>
  503. </listitem>
  504. </varlistentry>
  505. <varlistentry id="libsupc">
  506. <term><filename class="libraryfile">libsupc++</filename></term>
  507. <listitem>
  508. <para>Provides supporting routines for the C++ programming
  509. language</para>
  510. <indexterm zone="ch-system-gcc libsupc">
  511. <primary sortas="c-libsupc++">libsupc++</primary>
  512. </indexterm>
  513. </listitem>
  514. </varlistentry>
  515. <varlistentry id="libtsan">
  516. <term><filename class="libraryfile">libtsan</filename></term>
  517. <listitem>
  518. <para>The Thread Sanitizer runtime library</para>
  519. <indexterm zone="ch-system-gcc libtsan">
  520. <primary sortas="c-libtsan">libtsan</primary>
  521. </indexterm>
  522. </listitem>
  523. </varlistentry>
  524. <varlistentry id="libubsan">
  525. <term><filename class="libraryfile">libubsan</filename></term>
  526. <listitem>
  527. <para>The Undefined Behavior Sanitizer runtime library</para>
  528. <indexterm zone="ch-system-gcc libubsan">
  529. <primary sortas="c-libubsan">libubsan</primary>
  530. </indexterm>
  531. </listitem>
  532. </varlistentry>
  533. </variablelist>
  534. </sect2>
  535. </sect1>