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 |
|
---|
8 | <sect1 id="ch-system-gcc" role="wrap">
|
---|
9 | <?dbhtml filename="gcc.html"?>
|
---|
10 |
|
---|
11 | <sect1info condition="script">
|
---|
12 | <productname>gcc</productname>
|
---|
13 | <productnumber>&gcc-version;</productnumber>
|
---|
14 | <address>&gcc-url;</address>
|
---|
15 | </sect1info>
|
---|
16 |
|
---|
17 | <title>GCC-&gcc-version;</title>
|
---|
18 |
|
---|
19 | <indexterm zone="ch-system-gcc">
|
---|
20 | <primary sortas="a-GCC">GCC</primary>
|
---|
21 | </indexterm>
|
---|
22 |
|
---|
23 | <sect2 role="package">
|
---|
24 | <title/>
|
---|
25 |
|
---|
26 | <para>The GCC package contains the GNU compiler collection, which includes
|
---|
27 | the C and C++ compilers.</para>
|
---|
28 |
|
---|
29 | <segmentedlist>
|
---|
30 | <segtitle>&buildtime;</segtitle>
|
---|
31 | <segtitle>&diskspace;</segtitle>
|
---|
32 |
|
---|
33 | <seglistitem>
|
---|
34 | <seg>&gcc-fin-sbu;</seg>
|
---|
35 | <seg>&gcc-fin-du;</seg>
|
---|
36 | </seglistitem>
|
---|
37 | </segmentedlist>
|
---|
38 |
|
---|
39 | </sect2>
|
---|
40 |
|
---|
41 | <sect2 role="installation">
|
---|
42 | <title>Installation of GCC</title>
|
---|
43 | <!--
|
---|
44 | <para>At first, fix an issue breaking
|
---|
45 | <filename class="libraryfile">libasan.a</filename> building this package
|
---|
46 | with Glibc-2.34 or later:</para>
|
---|
47 |
|
---|
48 | <screen><userinput remap="pre">sed -e '/static.*SIGSTKSZ/d' \
|
---|
49 | -e 's/return kAltStackSize/return SIGSTKSZ * 4/' \
|
---|
50 | -i libsanitizer/sanitizer_common/sanitizer_posix_libcdep.cpp</userinput></screen>
|
---|
51 | -->
|
---|
52 | <!--
|
---|
53 | <para>First fix a problem with the latest version of glibc:</para>
|
---|
54 |
|
---|
55 | <screen><userinput remap="pre">patch -Np1 -i ../&gcc-upstream-fixes-patch;</userinput></screen>
|
---|
56 | -->
|
---|
57 |
|
---|
58 | <para>For x86_64 target, set the default directory name for
|
---|
59 | 64-bit libraries to <quote>lib</quote>. The command is unnecessary,
|
---|
60 | but harmless for 32-bit x86. If you are building for another target,
|
---|
61 | you may need to adjust the command for your target.</para>
|
---|
62 |
|
---|
63 | <screen><userinput remap="pre">sed -e '/m64=/s/lib64/lib/' \
|
---|
64 | -i.orig gcc/config/i386/t-linux64</userinput></screen>
|
---|
65 |
|
---|
66 | <para>The GCC documentation recommends building GCC in a dedicated build directory:</para>
|
---|
67 |
|
---|
68 | <screen><userinput remap="pre">mkdir -v build
|
---|
69 | cd build</userinput></screen>
|
---|
70 |
|
---|
71 | <para>Prepare GCC for compilation:</para>
|
---|
72 |
|
---|
73 | <screen><userinput remap="configure">../configure --prefix=/usr \
|
---|
74 | LD=ld \
|
---|
75 | --enable-languages=c,c++ \
|
---|
76 | --disable-multilib \
|
---|
77 | --disable-bootstrap \
|
---|
78 | --with-system-zlib</userinput></screen>
|
---|
79 |
|
---|
80 | <para>Note that for other programming languages there are some prerequisites that
|
---|
81 | are not yet available. See the
|
---|
82 | <ulink url="&blfs-book;general/gcc.html">BLFS Book GCC page</ulink>
|
---|
83 | for instructions on how to build all of GCC's supported languages.</para>
|
---|
84 |
|
---|
85 | <variablelist>
|
---|
86 | <title>The meaning of the new configure parameters:</title>
|
---|
87 |
|
---|
88 | <varlistentry>
|
---|
89 | <term><parameter>LD=ld</parameter></term>
|
---|
90 | <listitem>
|
---|
91 | <para>This parameter makes the configure script use the ld installed
|
---|
92 | by the binutils built earlier in this chapter, rather than
|
---|
93 | the cross-built version which would otherwise be used.</para>
|
---|
94 | </listitem>
|
---|
95 | </varlistentry>
|
---|
96 |
|
---|
97 | <varlistentry>
|
---|
98 | <term><parameter>--with-system-zlib</parameter></term>
|
---|
99 | <listitem>
|
---|
100 | <para>This switch tells GCC to link to the system installed copy of
|
---|
101 | the zlib library, rather than its own internal copy.</para>
|
---|
102 | </listitem>
|
---|
103 | </varlistentry>
|
---|
104 | </variablelist>
|
---|
105 |
|
---|
106 | <para>Compile the package:</para>
|
---|
107 |
|
---|
108 | <screen><userinput remap="make">make</userinput></screen>
|
---|
109 |
|
---|
110 | <important>
|
---|
111 | <para>In this section, the test suite for GCC is considered
|
---|
112 | important, but it takes a long time. First time builders are
|
---|
113 | encouraged to not skip it. The time to run the tests can be
|
---|
114 | reduced significantly by adding -jx to the make command below
|
---|
115 | where x is the number of cores on your system.</para>
|
---|
116 | </important>
|
---|
117 |
|
---|
118 | <para>One set of tests in the GCC test suite is known to exhaust the default
|
---|
119 | stack, so increase the stack size prior to running the tests:</para>
|
---|
120 |
|
---|
121 | <screen><userinput remap="test">ulimit -s 32768</userinput></screen>
|
---|
122 |
|
---|
123 | <para>Test the results as a non-privileged user, but do not stop at errors:</para>
|
---|
124 |
|
---|
125 | <screen><userinput remap="test">chown -Rv tester .
|
---|
126 | su tester -c "PATH=$PATH make -k check"</userinput></screen>
|
---|
127 |
|
---|
128 | <para>To receive a summary of the test suite results, run:</para>
|
---|
129 |
|
---|
130 | <screen><userinput remap="test">../contrib/test_summary</userinput></screen>
|
---|
131 |
|
---|
132 | <para>For only the summaries, pipe the output through
|
---|
133 | <userinput>grep -A7 Summ</userinput>.</para>
|
---|
134 |
|
---|
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 |
|
---|
139 | <para>In g++, four tests related to PR100400 are known to be reported
|
---|
140 | as both XPASS and FAIL. It's because the test file for this known issue
|
---|
141 | is not well written.</para>
|
---|
142 |
|
---|
143 | <para>A few unexpected failures cannot always be avoided. The GCC developers
|
---|
144 | are usually aware of these issues, but have not resolved them yet.
|
---|
145 | Unless the test results are vastly different from those at the above URL,
|
---|
146 | it is safe to continue.</para>
|
---|
147 |
|
---|
148 | <!--note><para>
|
---|
149 | On some combinations of kernel configuration and AMD processors
|
---|
150 | there may be more than 1100 failures in the gcc.target/i386/mpx
|
---|
151 | tests (which are designed to test the MPX option on recent
|
---|
152 | Intel processors). These can safely be ignored on AMD
|
---|
153 | processors. These tests will also fail on Intel processors if MPX support
|
---|
154 | is not enabled in the kernel even though it is present on the CPU.
|
---|
155 | </para></note-->
|
---|
156 |
|
---|
157 | <para>Install the package:</para>
|
---|
158 |
|
---|
159 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
160 |
|
---|
161 | <para>The GCC build directory is owned by <systemitem class="username">
|
---|
162 | tester</systemitem> now and the ownership of the installed header
|
---|
163 | directory (and its content) will be incorrect. Change the ownership to
|
---|
164 | <systemitem class="username">root</systemitem> user and group:</para>
|
---|
165 |
|
---|
166 | <screen><userinput remap="install">chown -v -R root:root \
|
---|
167 | /usr/lib/gcc/$(gcc -dumpmachine)/&gcc-version;/include{,-fixed}</userinput></screen>
|
---|
168 |
|
---|
169 | <para>Create a symlink required by the <ulink
|
---|
170 | url="https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch03s09.html">FHS</ulink>
|
---|
171 | for "historical" reasons.</para>
|
---|
172 |
|
---|
173 | <screen><userinput remap="install">ln -svr /usr/bin/cpp /usr/lib</userinput></screen>
|
---|
174 | <!-- already done earlier
|
---|
175 | <para>Many packages use the name <command>cc</command> to call the C
|
---|
176 | compiler. To satisfy those packages, create a symlink:</para>
|
---|
177 |
|
---|
178 | <screen><userinput remap="install">ln -sv gcc /usr/bin/cc</userinput></screen>
|
---|
179 | -->
|
---|
180 | <para>Add a compatibility symlink to enable building programs with
|
---|
181 | Link Time Optimization (LTO):</para>
|
---|
182 |
|
---|
183 | <screen><userinput remap="install">ln -sfv ../../libexec/gcc/$(gcc -dumpmachine)/&gcc-version;/liblto_plugin.so \
|
---|
184 | /usr/lib/bfd-plugins/</userinput></screen>
|
---|
185 |
|
---|
186 | <para>Now that our final toolchain is in place, it is important to again ensure
|
---|
187 | that compiling and linking will work as expected. We do this by performing
|
---|
188 | some sanity checks:</para>
|
---|
189 |
|
---|
190 | <screen><userinput>echo 'int main(){}' > dummy.c
|
---|
191 | cc dummy.c -v -Wl,--verbose &> dummy.log
|
---|
192 | readelf -l a.out | grep ': /lib'</userinput></screen>
|
---|
193 |
|
---|
194 | <para>There should be no errors,
|
---|
195 | and the output of the last command will be (allowing for
|
---|
196 | platform-specific differences in the dynamic linker name):</para>
|
---|
197 |
|
---|
198 | <screen><computeroutput>[Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]</computeroutput></screen>
|
---|
199 |
|
---|
200 | <para>Now make sure that we're setup to use the correct start files:</para>
|
---|
201 |
|
---|
202 | <screen><userinput>grep -o '/usr/lib.*/crt[1in].*succeeded' dummy.log</userinput></screen>
|
---|
203 |
|
---|
204 | <para>The output of the last command should be:</para>
|
---|
205 |
|
---|
206 | <screen><computeroutput>/usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/../../../../lib/crt1.o succeeded
|
---|
207 | /usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/../../../../lib/crti.o succeeded
|
---|
208 | /usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/../../../../lib/crtn.o succeeded</computeroutput></screen>
|
---|
209 |
|
---|
210 | <para>Depending on your machine architecture, the above may differ slightly.
|
---|
211 | The difference will be the name of the directory
|
---|
212 | after <filename class="directory">/usr/lib/gcc</filename>. The important
|
---|
213 | thing to look for here is that <command>gcc</command> has found all three
|
---|
214 | <filename>crt*.o</filename> files under the
|
---|
215 | <filename class="directory">/usr/lib</filename> directory.</para>
|
---|
216 |
|
---|
217 | <para>Verify that the compiler is searching for the correct header
|
---|
218 | files:</para>
|
---|
219 |
|
---|
220 | <screen><userinput>grep -B4 '^ /usr/include' dummy.log</userinput></screen>
|
---|
221 |
|
---|
222 | <para>This command should return the following output:</para>
|
---|
223 |
|
---|
224 | <screen><computeroutput>#include <...> search starts here:
|
---|
225 | /usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/include
|
---|
226 | /usr/local/include
|
---|
227 | /usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/include-fixed
|
---|
228 | /usr/include</computeroutput></screen>
|
---|
229 |
|
---|
230 | <para>Again, the directory named after your target triplet may be
|
---|
231 | different than the above, depending on your system architecture.</para>
|
---|
232 |
|
---|
233 | <para>Next, verify that the new linker is being used with the correct search paths:</para>
|
---|
234 |
|
---|
235 | <screen><userinput>grep 'SEARCH.*/usr/lib' dummy.log |sed 's|; |\n|g'</userinput></screen>
|
---|
236 |
|
---|
237 | <para>References to paths that have components with '-linux-gnu' should
|
---|
238 | be ignored, but otherwise the output of the last command should be:</para>
|
---|
239 |
|
---|
240 | <screen><computeroutput>SEARCH_DIR("/usr/x86_64-pc-linux-gnu/lib64")
|
---|
241 | SEARCH_DIR("/usr/local/lib64")
|
---|
242 | SEARCH_DIR("/lib64")
|
---|
243 | SEARCH_DIR("/usr/lib64")
|
---|
244 | SEARCH_DIR("/usr/x86_64-pc-linux-gnu/lib")
|
---|
245 | SEARCH_DIR("/usr/local/lib")
|
---|
246 | SEARCH_DIR("/lib")
|
---|
247 | SEARCH_DIR("/usr/lib");</computeroutput></screen>
|
---|
248 |
|
---|
249 | <para>A 32-bit system may see a few different directories. For example, here
|
---|
250 | is the output from an i686 machine:</para>
|
---|
251 |
|
---|
252 | <screen><computeroutput>SEARCH_DIR("/usr/i686-pc-linux-gnu/lib32")
|
---|
253 | SEARCH_DIR("/usr/local/lib32")
|
---|
254 | SEARCH_DIR("/lib32")
|
---|
255 | SEARCH_DIR("/usr/lib32")
|
---|
256 | SEARCH_DIR("/usr/i686-pc-linux-gnu/lib")
|
---|
257 | SEARCH_DIR("/usr/local/lib")
|
---|
258 | SEARCH_DIR("/lib")
|
---|
259 | SEARCH_DIR("/usr/lib");</computeroutput></screen>
|
---|
260 |
|
---|
261 | <para>Next make sure that we're using the correct libc:</para>
|
---|
262 |
|
---|
263 | <screen><userinput>grep "/lib.*/libc.so.6 " dummy.log</userinput></screen>
|
---|
264 |
|
---|
265 | <para>The output of the last command should be:</para>
|
---|
266 |
|
---|
267 | <screen><computeroutput>attempt to open /usr/lib/libc.so.6 succeeded</computeroutput></screen>
|
---|
268 |
|
---|
269 | <para>Make sure GCC is using the correct dynamic linker:</para>
|
---|
270 |
|
---|
271 | <screen><userinput>grep found dummy.log</userinput></screen>
|
---|
272 |
|
---|
273 | <para>The output of the last command should be (allowing for
|
---|
274 | platform-specific differences in dynamic linker name):</para>
|
---|
275 |
|
---|
276 | <screen><computeroutput>found ld-linux-x86-64.so.2 at /usr/lib/ld-linux-x86-64.so.2</computeroutput></screen>
|
---|
277 |
|
---|
278 | <para>If the output does not appear as shown above or is not received
|
---|
279 | at all, then something is seriously wrong. Investigate and retrace the
|
---|
280 | steps to find out where the problem is and correct it. <!--The most likely
|
---|
281 | reason is that something went wrong with the specs file adjustment.--> Any
|
---|
282 | issues will need to be resolved before continuing with the process.</para>
|
---|
283 |
|
---|
284 | <para>Once everything is working correctly, clean up the test files:</para>
|
---|
285 |
|
---|
286 | <screen><userinput>rm -v dummy.c a.out dummy.log</userinput></screen>
|
---|
287 |
|
---|
288 | <para>Finally, move a misplaced file:</para>
|
---|
289 |
|
---|
290 | <screen><userinput remap="install">mkdir -pv /usr/share/gdb/auto-load/usr/lib
|
---|
291 | mv -v /usr/lib/*gdb.py /usr/share/gdb/auto-load/usr/lib</userinput></screen>
|
---|
292 |
|
---|
293 | </sect2>
|
---|
294 |
|
---|
295 | <sect2 id="contents-gcc" role="content">
|
---|
296 | <title>Contents of GCC</title>
|
---|
297 |
|
---|
298 | <segmentedlist>
|
---|
299 | <segtitle>Installed programs</segtitle>
|
---|
300 | <segtitle>Installed libraries</segtitle>
|
---|
301 | <segtitle>Installed directories</segtitle>
|
---|
302 |
|
---|
303 | <seglistitem>
|
---|
304 | <seg>c++, cc (link to gcc), cpp, g++, gcc,
|
---|
305 | gcc-ar, gcc-nm, gcc-ranlib, gcov, gcov-dump, gcov-tool,
|
---|
306 | and lto-dump</seg>
|
---|
307 |
|
---|
308 | <seg>libasan.{a,so}, libatomic.{a,so}, libcc1.so, libgcc.a, libgcc_eh.a,
|
---|
309 | libgcc_s.so, libgcov.a, libgomp.{a,so}, libitm.{a,so},
|
---|
310 | liblsan.{a,so}, liblto_plugin.so,
|
---|
311 | libquadmath.{a,so}, libssp.{a,so}, libssp_nonshared.a,
|
---|
312 | libstdc++.{a,so}, libstdc++fs.a, libsupc++.a, libtsan.{a,so},
|
---|
313 | and libubsan.{a,so}</seg>
|
---|
314 |
|
---|
315 | <seg>/usr/include/c++, /usr/lib/gcc, /usr/libexec/gcc, and
|
---|
316 | /usr/share/gcc-&gcc-version;</seg>
|
---|
317 | </seglistitem>
|
---|
318 | </segmentedlist>
|
---|
319 |
|
---|
320 | <variablelist>
|
---|
321 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
322 | <?dbfo list-presentation="list"?>
|
---|
323 | <?dbhtml list-presentation="table"?>
|
---|
324 |
|
---|
325 | <varlistentry id="c">
|
---|
326 | <term><command>c++</command></term>
|
---|
327 | <listitem>
|
---|
328 | <para>The C++ compiler</para>
|
---|
329 | <indexterm zone="ch-system-gcc c">
|
---|
330 | <primary sortas="b-c++">c++</primary>
|
---|
331 | </indexterm>
|
---|
332 | </listitem>
|
---|
333 | </varlistentry>
|
---|
334 |
|
---|
335 | <varlistentry id="cc">
|
---|
336 | <term><command>cc</command></term>
|
---|
337 | <listitem>
|
---|
338 | <para>The C compiler</para>
|
---|
339 | <indexterm zone="ch-system-gcc cc">
|
---|
340 | <primary sortas="b-cc">cc</primary>
|
---|
341 | </indexterm>
|
---|
342 | </listitem>
|
---|
343 | </varlistentry>
|
---|
344 |
|
---|
345 | <varlistentry id="cpp">
|
---|
346 | <term><command>cpp</command></term>
|
---|
347 | <listitem>
|
---|
348 | <para>The C preprocessor; it is used by the compiler to expand the
|
---|
349 | #include, #define, and similar statements in the source files</para>
|
---|
350 | <indexterm zone="ch-system-gcc cpp">
|
---|
351 | <primary sortas="b-cpp">cpp</primary>
|
---|
352 | </indexterm>
|
---|
353 | </listitem>
|
---|
354 | </varlistentry>
|
---|
355 |
|
---|
356 | <varlistentry id="g">
|
---|
357 | <term><command>g++</command></term>
|
---|
358 | <listitem>
|
---|
359 | <para>The C++ compiler</para>
|
---|
360 | <indexterm zone="ch-system-gcc g">
|
---|
361 | <primary sortas="b-g++">g++</primary>
|
---|
362 | </indexterm>
|
---|
363 | </listitem>
|
---|
364 | </varlistentry>
|
---|
365 |
|
---|
366 | <varlistentry id="gcc">
|
---|
367 | <term><command>gcc</command></term>
|
---|
368 | <listitem>
|
---|
369 | <para>The C compiler</para>
|
---|
370 | <indexterm zone="ch-system-gcc gcc">
|
---|
371 | <primary sortas="b-gcc">gcc</primary>
|
---|
372 | </indexterm>
|
---|
373 | </listitem>
|
---|
374 | </varlistentry>
|
---|
375 |
|
---|
376 | <varlistentry id="gcc-ar">
|
---|
377 | <term><command>gcc-ar</command></term>
|
---|
378 | <listitem>
|
---|
379 | <para>A wrapper around <command>ar</command> that adds a
|
---|
380 | plugin to the command line. This program is only used
|
---|
381 | to add "link time optimization" and is not useful with the
|
---|
382 | default build options</para>
|
---|
383 | <indexterm zone="ch-system-gcc gcc-ar">
|
---|
384 | <primary sortas="b-gcc-ar">gc-ar</primary>
|
---|
385 | </indexterm>
|
---|
386 | </listitem>
|
---|
387 | </varlistentry>
|
---|
388 |
|
---|
389 | <varlistentry id="gcc-nm">
|
---|
390 | <term><command>gcc-nm</command></term>
|
---|
391 | <listitem>
|
---|
392 | <para>A wrapper around <command>nm</command> that adds a
|
---|
393 | plugin to the command line. This program is only used
|
---|
394 | to add "link time optimization" and is not useful with the
|
---|
395 | default build options</para>
|
---|
396 | <indexterm zone="ch-system-gcc gcc-nm">
|
---|
397 | <primary sortas="b-gcc-nm">gc-nm</primary>
|
---|
398 | </indexterm>
|
---|
399 | </listitem>
|
---|
400 | </varlistentry>
|
---|
401 |
|
---|
402 | <varlistentry id="gcc-ranlib">
|
---|
403 | <term><command>gcc-ranlib</command></term>
|
---|
404 | <listitem>
|
---|
405 | <para>A wrapper around <command>ranlib</command> that adds a
|
---|
406 | plugin to the command line. This program is only used
|
---|
407 | to add "link time optimization" and is not useful with the
|
---|
408 | default build options</para>
|
---|
409 | <indexterm zone="ch-system-gcc gcc-ranlib">
|
---|
410 | <primary sortas="b-gcc-ranlib">gc-ranlib</primary>
|
---|
411 | </indexterm>
|
---|
412 | </listitem>
|
---|
413 | </varlistentry>
|
---|
414 |
|
---|
415 | <varlistentry id="gcov">
|
---|
416 | <term><command>gcov</command></term>
|
---|
417 | <listitem>
|
---|
418 | <para>A coverage testing tool; it is used to analyze programs to
|
---|
419 | determine where optimizations will have the most effect</para>
|
---|
420 | <indexterm zone="ch-system-gcc gcov">
|
---|
421 | <primary sortas="b-gcov">gcov</primary>
|
---|
422 | </indexterm>
|
---|
423 | </listitem>
|
---|
424 | </varlistentry>
|
---|
425 |
|
---|
426 | <varlistentry id="gcov-dump">
|
---|
427 | <term><command>gcov-dump</command></term>
|
---|
428 | <listitem>
|
---|
429 | <para>Offline gcda and gcno profile dump tool</para>
|
---|
430 | <indexterm zone="ch-system-gcc gcov-dump">
|
---|
431 | <primary sortas="b-gcov-dump">gcov-dump</primary>
|
---|
432 | </indexterm>
|
---|
433 | </listitem>
|
---|
434 | </varlistentry>
|
---|
435 |
|
---|
436 | <varlistentry id="gcov-tool">
|
---|
437 | <term><command>gcov-tool</command></term>
|
---|
438 | <listitem>
|
---|
439 | <para>Offline gcda profile processing tool</para>
|
---|
440 | <indexterm zone="ch-system-gcc gcov-tool">
|
---|
441 | <primary sortas="b-gcov-tool">gcov-tool</primary>
|
---|
442 | </indexterm>
|
---|
443 | </listitem>
|
---|
444 | </varlistentry>
|
---|
445 |
|
---|
446 | <varlistentry id="lto-dump">
|
---|
447 | <term><command>lto-dump</command></term>
|
---|
448 | <listitem>
|
---|
449 | <para>Tool for dumping object files produced by GCC with LTO
|
---|
450 | enabled</para>
|
---|
451 | <indexterm zone="ch-system-gcc lto-dump">
|
---|
452 | <primary sortas="b-lto-dump">lto-dump</primary>
|
---|
453 | </indexterm>
|
---|
454 | </listitem>
|
---|
455 | </varlistentry>
|
---|
456 |
|
---|
457 | <varlistentry id="libasan">
|
---|
458 | <term><filename class="libraryfile">libasan</filename></term>
|
---|
459 | <listitem>
|
---|
460 | <para>The Address Sanitizer runtime library</para>
|
---|
461 | <indexterm zone="ch-system-gcc libasan">
|
---|
462 | <primary sortas="b-libasan">libasan</primary>
|
---|
463 | </indexterm>
|
---|
464 | </listitem>
|
---|
465 | </varlistentry>
|
---|
466 |
|
---|
467 | <varlistentry id="libatomic">
|
---|
468 | <term><filename class="libraryfile">libatomic</filename></term>
|
---|
469 | <listitem>
|
---|
470 | <para>GCC atomic built-in runtime library</para>
|
---|
471 | <indexterm zone="ch-system-gcc libatomic">
|
---|
472 | <primary sortas="b-libatomic">libatomic</primary>
|
---|
473 | </indexterm>
|
---|
474 | </listitem>
|
---|
475 | </varlistentry>
|
---|
476 |
|
---|
477 | <varlistentry id="libcc1">
|
---|
478 | <term><filename class="libraryfile">libcc1</filename></term>
|
---|
479 | <listitem>
|
---|
480 | <para>The C preprocessing library</para>
|
---|
481 | <indexterm zone="ch-system-gcc libcc1">
|
---|
482 | <primary sortas="b-libcc1">libcc1</primary>
|
---|
483 | </indexterm>
|
---|
484 | </listitem>
|
---|
485 | </varlistentry>
|
---|
486 |
|
---|
487 | <varlistentry id="libgcc">
|
---|
488 | <term><filename class="libraryfile">libgcc</filename></term>
|
---|
489 | <listitem>
|
---|
490 | <para>Contains run-time support for <command>gcc</command></para>
|
---|
491 | <indexterm zone="ch-system-gcc libgcc">
|
---|
492 | <primary sortas="c-libgcc">libgcc</primary>
|
---|
493 | </indexterm>
|
---|
494 | </listitem>
|
---|
495 | </varlistentry>
|
---|
496 |
|
---|
497 | <varlistentry id="libgcov">
|
---|
498 | <term><filename class="libraryfile">libgcov</filename></term>
|
---|
499 | <listitem>
|
---|
500 | <para>This library is linked in to a program when GCC is instructed
|
---|
501 | to enable profiling</para>
|
---|
502 | <indexterm zone="ch-system-gcc libgcov">
|
---|
503 | <primary sortas="c-libgcov">libgcov</primary>
|
---|
504 | </indexterm>
|
---|
505 | </listitem>
|
---|
506 | </varlistentry>
|
---|
507 |
|
---|
508 | <varlistentry id="libgomp">
|
---|
509 | <term><filename class="libraryfile">libgomp</filename></term>
|
---|
510 | <listitem>
|
---|
511 | <para>GNU implementation of the OpenMP API for multi-platform
|
---|
512 | shared-memory parallel programming in C/C++ and Fortran</para>
|
---|
513 | <indexterm zone="ch-system-gcc libgomp">
|
---|
514 | <primary sortas="c-libgomp">libgomp</primary>
|
---|
515 | </indexterm>
|
---|
516 | </listitem>
|
---|
517 | </varlistentry>
|
---|
518 |
|
---|
519 | <varlistentry id="libitm">
|
---|
520 | <term><filename class="libraryfile">libitm</filename></term>
|
---|
521 | <listitem>
|
---|
522 | <para>The GNU transactional memory library</para>
|
---|
523 | <indexterm zone="ch-system-gcc libitm">
|
---|
524 | <primary sortas="c-libitm">libitm</primary>
|
---|
525 | </indexterm>
|
---|
526 | </listitem>
|
---|
527 | </varlistentry>
|
---|
528 |
|
---|
529 | <varlistentry id="liblsan">
|
---|
530 | <term><filename class="libraryfile">liblsan</filename></term>
|
---|
531 | <listitem>
|
---|
532 | <para>The Leak Sanitizer runtime library</para>
|
---|
533 | <indexterm zone="ch-system-gcc liblsan">
|
---|
534 | <primary sortas="c-liblsan">liblsan</primary>
|
---|
535 | </indexterm>
|
---|
536 | </listitem>
|
---|
537 | </varlistentry>
|
---|
538 |
|
---|
539 | <varlistentry id="liblto_plugin">
|
---|
540 | <term><filename class="libraryfile">liblto_plugin</filename></term>
|
---|
541 | <listitem>
|
---|
542 | <para>GCC's LTO plugin allows binutils to process object files
|
---|
543 | produced by GCC with LTO enabled</para>
|
---|
544 | <indexterm zone="ch-system-gcc liblto_plugin">
|
---|
545 | <primary sortas="c-liblto_plugin">liblto_plugin</primary>
|
---|
546 | </indexterm>
|
---|
547 | </listitem>
|
---|
548 | </varlistentry>
|
---|
549 |
|
---|
550 | <varlistentry id="libquadmath">
|
---|
551 | <term><filename class="libraryfile">libquadmath</filename></term>
|
---|
552 | <listitem>
|
---|
553 | <para>GCC Quad Precision Math Library API</para>
|
---|
554 | <indexterm zone="ch-system-gcc libquadmath">
|
---|
555 | <primary sortas="c-libquadmath">libquadmath</primary>
|
---|
556 | </indexterm>
|
---|
557 | </listitem>
|
---|
558 | </varlistentry>
|
---|
559 |
|
---|
560 | <varlistentry id="libssp">
|
---|
561 | <term><filename class="libraryfile">libssp</filename></term>
|
---|
562 | <listitem>
|
---|
563 | <para>Contains routines supporting GCC's stack-smashing protection
|
---|
564 | functionality</para>
|
---|
565 | <indexterm zone="ch-system-gcc libssp">
|
---|
566 | <primary sortas="c-libssp">libssp</primary>
|
---|
567 | </indexterm>
|
---|
568 | </listitem>
|
---|
569 | </varlistentry>
|
---|
570 |
|
---|
571 | <varlistentry id="libstdc">
|
---|
572 | <term><filename class="libraryfile">libstdc++</filename></term>
|
---|
573 | <listitem>
|
---|
574 | <para>The standard C++ library</para>
|
---|
575 | <indexterm zone="ch-system-gcc libstdc">
|
---|
576 | <primary sortas="c-libstdc++">libstdc++</primary>
|
---|
577 | </indexterm>
|
---|
578 | </listitem>
|
---|
579 | </varlistentry>
|
---|
580 |
|
---|
581 | <varlistentry id="libstdcfs">
|
---|
582 | <term><filename class="libraryfile">libstdc++fs</filename></term>
|
---|
583 | <listitem>
|
---|
584 | <para>ISO/IEC TS 18822:2015 Filesystem library</para>
|
---|
585 | <indexterm zone="ch-system-gcc libstdcfs">
|
---|
586 | <primary sortas="c-libstdc++fs">libstdc++fs</primary>
|
---|
587 | </indexterm>
|
---|
588 | </listitem>
|
---|
589 | </varlistentry>
|
---|
590 |
|
---|
591 | <varlistentry id="libsupc">
|
---|
592 | <term><filename class="libraryfile">libsupc++</filename></term>
|
---|
593 | <listitem>
|
---|
594 | <para>Provides supporting routines for the C++ programming
|
---|
595 | language</para>
|
---|
596 | <indexterm zone="ch-system-gcc libsupc">
|
---|
597 | <primary sortas="c-libsupc++">libsupc++</primary>
|
---|
598 | </indexterm>
|
---|
599 | </listitem>
|
---|
600 | </varlistentry>
|
---|
601 |
|
---|
602 | <varlistentry id="libtsan">
|
---|
603 | <term><filename class="libraryfile">libtsan</filename></term>
|
---|
604 | <listitem>
|
---|
605 | <para>The Thread Sanitizer runtime library</para>
|
---|
606 | <indexterm zone="ch-system-gcc libtsan">
|
---|
607 | <primary sortas="c-libtsan">libtsan</primary>
|
---|
608 | </indexterm>
|
---|
609 | </listitem>
|
---|
610 | </varlistentry>
|
---|
611 |
|
---|
612 | <varlistentry id="libubsan">
|
---|
613 | <term><filename class="libraryfile">libubsan</filename></term>
|
---|
614 | <listitem>
|
---|
615 | <para>The Undefined Behavior Sanitizer runtime library</para>
|
---|
616 | <indexterm zone="ch-system-gcc libubsan">
|
---|
617 | <primary sortas="c-libubsan">libubsan</primary>
|
---|
618 | </indexterm>
|
---|
619 | </listitem>
|
---|
620 | </varlistentry>
|
---|
621 |
|
---|
622 | </variablelist>
|
---|
623 |
|
---|
624 | </sect2>
|
---|
625 |
|
---|
626 | </sect1>
|
---|