]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/doc/gcc/gcc-command-options.rst
sphinx: copy files from texi2rst-generated repository
[thirdparty/gcc.git] / gcc / doc / gcc / gcc-command-options.rst
1 ..
2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
5
6 .. index:: GCC command options, command options, options, GCC command
7
8 .. _invoking-gcc:
9
10 GCC Command Options
11 --------------------
12
13 .. only:: man
14
15 Synopsis
16 ^^^^^^^^
17
18 gcc [ :option:`-c` | :option:`-S` | :option:`-E` ] [ :option:`-std`:samp:`={standard}` ]
19 [ :option:`-g` ] [ :option:`-pg` ] [ :option:`-O`:samp:`{level}` ]
20 [ :option:`-W`:samp:`{warn}`...] [ :option:`-Wpedantic` ]
21 [ :option:`-I`:samp:`{dir}`...] [ :option:`-L`:samp:`{dir}`...]
22 [ :option:`-D`:samp:`{macro}` [= :samp:`{defn}` ]...] [ :option:`-U`:samp:`{macro}` ]
23 [ :option:`-f`:samp:`{option}`...] [ :option:`-m`:samp:`{machine-option}`...]
24 [ :option:`-o` :samp:`{outfile}` ] [@ :samp:`{file}` ] :samp:`{infile}`...
25
26 Only the most useful options are listed here; see below for the
27 remainder. :command:`g++` accepts mostly the same options as :command:`gcc`.
28
29 For instructions on reporting bugs, see
30 |bugurl|.
31
32 See the Info entry for :command:`gcc`, or
33 https://gcc.gnu.org/onlinedocs/gcc/Contributors.html,
34 for contributors to GCC.
35
36
37 .. toctree::
38 :maxdepth: 2
39
40 gcc-command-options/description
41 gcc-command-options/option-summary
42 gcc-command-options/options-controlling-the-kind-of-output
43 gcc-command-options/compiling-c++-programs
44 gcc-command-options/options-controlling-c-dialect
45 gcc-command-options/options-controlling-c++-dialect
46 gcc-command-options/options-controlling-objective-c-and-objective-c++-dialects
47 gcc-command-options/options-to-control-diagnostic-messages-formatting
48 gcc-command-options/options-to-request-or-suppress-warnings
49 gcc-command-options/options-that-control-static-analysis
50 gcc-command-options/options-for-debugging-your-program
51 gcc-command-options/options-that-control-optimization
52 gcc-command-options/program-instrumentation-options
53 gcc-command-options/options-controlling-the-preprocessor
54 gcc-command-options/passing-options-to-the-assembler
55 gcc-command-options/options-for-linking
56 gcc-command-options/options-for-directory-search
57 gcc-command-options/options-for-code-generation-conventions
58 gcc-command-options/gcc-developer-options
59 gcc-command-options/machine-dependent-options
60 gcc-command-options/specifying-subprocesses-and-the-switches-to-pass-to-them
61 gcc-command-options/environment-variables-affecting-gcc
62 gcc-command-options/using-precompiled-headers
63 gcc-command-options/c++-modules
64
65 .. only:: man
66
67 .. include:: copyright.rst