gcc.xml 23 KB

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