gcc.xml 23 KB

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