1 ; lang.opt -- Options for the gcc Go front end.
3 ; Copyright (C) 2009-2022 Free Software Foundation, Inc.
5 ; This file is part of GCC.
7 ; GCC is free software; you can redistribute it and/or modify it under
8 ; the terms of the GNU General Public License as published by the Free
9 ; Software Foundation; either version 3, or (at your option) any later
12 ; GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13 ; WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 ; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 ; You should have received a copy of the GNU General Public License
18 ; along with GCC; see the file COPYING3. If not see
19 ; <http://www.gnu.org/licenses/>.
21 ; See the GCC internals manual for a description of this file's format.
23 ; Please try to keep this file in ASCII collating order.
41 Go Joined RejectNegative
42 -fgo-c-header=<file> Write Go struct definitions to file as C code.
45 Go Var(go_check_divide_zero) Init(1)
46 Add explicit checks for division by zero.
48 fgo-check-divide-overflow
49 Go Var(go_check_divide_overflow) Init(1)
50 Add explicit checks for division overflow in INT_MIN / -1.
53 Go Var(go_compiling_runtime) Init(0)
54 Apply special rules for compiling runtime package.
57 Go Joined RejectNegative
58 -fgo-dump-<type> Dump Go frontend internal information.
61 Go Joined RejectNegative
62 -fgo-embedcfg=<file> List embedded files via go:embed.
66 -fgo-optimize-<type> Turn on optimization passes in the frontend.
69 Go Joined RejectNegative
70 -fgo-pkgpath=<string> Set Go package path.
73 Go Joined RejectNegative
74 -fgo-prefix=<string> Set package-specific prefix for exported Go names.
76 fgo-relative-import-path=
77 Go Joined RejectNegative
78 -fgo-relative-import-path=<path> Treat a relative import as relative to path.
80 frequire-return-statement
81 Go Var(go_require_return_statement) Init(1) Warning
82 Functions which return values must end with return statements.
85 Go Joined UInteger Var(go_debug_escape_level) Init(0)
86 Emit debugging information related to the escape analysis pass when run with -fgo-optimize-allocs.
88 fgo-debug-escape-hash=
89 Go Joined RejectNegative Var(go_debug_escape_hash) Init(0)
90 -fgo-debug-escape-hash=<string> Hash value to debug escape analysis.
92 fgo-debug-optimization
93 Go Var(go_debug_optimization) Init(0)
94 Emit optimization diagnostics.
98 ; Documented in common.opt
100 ; This comment is to ensure we retain the blank line above.