gcc.xml 23 KB

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