gcc.xml 22 KB

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