gcc.xml 24 KB

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