annotate gcc/go/lang.opt @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 1830386684a0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ; lang.opt -- Options for the gcc Go front end.
kono
parents:
diff changeset
2
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
3 ; Copyright (C) 2009-2020 Free Software Foundation, Inc.
111
kono
parents:
diff changeset
4 ;
kono
parents:
diff changeset
5 ; This file is part of GCC.
kono
parents:
diff changeset
6 ;
kono
parents:
diff changeset
7 ; GCC is free software; you can redistribute it and/or modify it under
kono
parents:
diff changeset
8 ; the terms of the GNU General Public License as published by the Free
kono
parents:
diff changeset
9 ; Software Foundation; either version 3, or (at your option) any later
kono
parents:
diff changeset
10 ; version.
kono
parents:
diff changeset
11 ;
kono
parents:
diff changeset
12 ; GCC is distributed in the hope that it will be useful, but WITHOUT ANY
kono
parents:
diff changeset
13 ; WARRANTY; without even the implied warranty of MERCHANTABILITY or
kono
parents:
diff changeset
14 ; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
kono
parents:
diff changeset
15 ; for more details.
kono
parents:
diff changeset
16 ;
kono
parents:
diff changeset
17 ; You should have received a copy of the GNU General Public License
kono
parents:
diff changeset
18 ; along with GCC; see the file COPYING3. If not see
kono
parents:
diff changeset
19 ; <http://www.gnu.org/licenses/>.
kono
parents:
diff changeset
20
kono
parents:
diff changeset
21 ; See the GCC internals manual for a description of this file's format.
kono
parents:
diff changeset
22
kono
parents:
diff changeset
23 ; Please try to keep this file in ASCII collating order.
kono
parents:
diff changeset
24
kono
parents:
diff changeset
25 Language
kono
parents:
diff changeset
26 Go
kono
parents:
diff changeset
27
kono
parents:
diff changeset
28 I
kono
parents:
diff changeset
29 Go Joined Separate
kono
parents:
diff changeset
30 ; Documented in c.opt
kono
parents:
diff changeset
31
kono
parents:
diff changeset
32 L
kono
parents:
diff changeset
33 Go Joined Separate
kono
parents:
diff changeset
34 ; Not documented
kono
parents:
diff changeset
35
kono
parents:
diff changeset
36 Wall
kono
parents:
diff changeset
37 Go
kono
parents:
diff changeset
38 ; Documented in c.opt
kono
parents:
diff changeset
39
kono
parents:
diff changeset
40 fgo-c-header=
kono
parents:
diff changeset
41 Go Joined RejectNegative
kono
parents:
diff changeset
42 -fgo-c-header=<file> Write Go struct definitions to file as C code.
kono
parents:
diff changeset
43
kono
parents:
diff changeset
44 fgo-check-divide-zero
kono
parents:
diff changeset
45 Go Var(go_check_divide_zero) Init(1)
kono
parents:
diff changeset
46 Add explicit checks for division by zero.
kono
parents:
diff changeset
47
kono
parents:
diff changeset
48 fgo-check-divide-overflow
kono
parents:
diff changeset
49 Go Var(go_check_divide_overflow) Init(1)
kono
parents:
diff changeset
50 Add explicit checks for division overflow in INT_MIN / -1.
kono
parents:
diff changeset
51
kono
parents:
diff changeset
52 fgo-compiling-runtime
kono
parents:
diff changeset
53 Go Var(go_compiling_runtime) Init(0)
kono
parents:
diff changeset
54 Apply special rules for compiling runtime package.
kono
parents:
diff changeset
55
kono
parents:
diff changeset
56 fgo-dump-
kono
parents:
diff changeset
57 Go Joined RejectNegative
kono
parents:
diff changeset
58 -fgo-dump-<type> Dump Go frontend internal information.
kono
parents:
diff changeset
59
kono
parents:
diff changeset
60 fgo-optimize-
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
61 Go Joined
111
kono
parents:
diff changeset
62 -fgo-optimize-<type> Turn on optimization passes in the frontend.
kono
parents:
diff changeset
63
kono
parents:
diff changeset
64 fgo-pkgpath=
kono
parents:
diff changeset
65 Go Joined RejectNegative
kono
parents:
diff changeset
66 -fgo-pkgpath=<string> Set Go package path.
kono
parents:
diff changeset
67
kono
parents:
diff changeset
68 fgo-prefix=
kono
parents:
diff changeset
69 Go Joined RejectNegative
kono
parents:
diff changeset
70 -fgo-prefix=<string> Set package-specific prefix for exported Go names.
kono
parents:
diff changeset
71
kono
parents:
diff changeset
72 fgo-relative-import-path=
kono
parents:
diff changeset
73 Go Joined RejectNegative
kono
parents:
diff changeset
74 -fgo-relative-import-path=<path> Treat a relative import as relative to path.
kono
parents:
diff changeset
75
kono
parents:
diff changeset
76 frequire-return-statement
kono
parents:
diff changeset
77 Go Var(go_require_return_statement) Init(1) Warning
kono
parents:
diff changeset
78 Functions which return values must end with return statements.
kono
parents:
diff changeset
79
kono
parents:
diff changeset
80 fgo-debug-escape
kono
parents:
diff changeset
81 Go Joined UInteger Var(go_debug_escape_level) Init(0)
kono
parents:
diff changeset
82 Emit debugging information related to the escape analysis pass when run with -fgo-optimize-allocs.
kono
parents:
diff changeset
83
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
84 fgo-debug-escape-hash=
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
85 Go Joined RejectNegative Var(go_debug_escape_hash) Init(0)
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
86 -fgo-debug-escape-hash=<string> Hash value to debug escape analysis.
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
87
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
88 fgo-debug-optimization
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
89 Go Var(go_debug_optimization) Init(0)
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
90 Emit optimization diagnostics.
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
91
111
kono
parents:
diff changeset
92 o
kono
parents:
diff changeset
93 Go Joined Separate
kono
parents:
diff changeset
94 ; Documented in common.opt
kono
parents:
diff changeset
95
kono
parents:
diff changeset
96 ; This comment is to ensure we retain the blank line above.