]>
Commit | Line | Data |
---|---|---|
7a938933 ILT |
1 | ; lang.opt -- Options for the gcc Go front end. |
2 | ||
a5544970 | 3 | ; Copyright (C) 2009-2019 Free Software Foundation, Inc. |
7a938933 ILT |
4 | ; |
5 | ; This file is part of GCC. | |
6 | ; | |
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 | |
10 | ; version. | |
11 | ; | |
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 | |
15 | ; for more details. | |
16 | ; | |
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/>. | |
20 | ||
21 | ; See the GCC internals manual for a description of this file's format. | |
22 | ||
23 | ; Please try to keep this file in ASCII collating order. | |
24 | ||
25 | Language | |
26 | Go | |
27 | ||
28 | I | |
29 | Go Joined Separate | |
30 | ; Documented in c.opt | |
31 | ||
32 | L | |
33 | Go Joined Separate | |
34 | ; Not documented | |
35 | ||
36 | Wall | |
37 | Go | |
38 | ; Documented in c.opt | |
39 | ||
2adb671d ILT |
40 | fgo-c-header= |
41 | Go Joined RejectNegative | |
42 | -fgo-c-header=<file> Write Go struct definitions to file as C code. | |
43 | ||
63d1e46d ILT |
44 | fgo-check-divide-zero |
45 | Go Var(go_check_divide_zero) Init(1) | |
a7b2e184 | 46 | Add explicit checks for division by zero. |
63d1e46d ILT |
47 | |
48 | fgo-check-divide-overflow | |
49 | Go Var(go_check_divide_overflow) Init(1) | |
a7b2e184 | 50 | Add explicit checks for division overflow in INT_MIN / -1. |
63d1e46d | 51 | |
2adb671d ILT |
52 | fgo-compiling-runtime |
53 | Go Var(go_compiling_runtime) Init(0) | |
54 | Apply special rules for compiling runtime package. | |
55 | ||
7a938933 ILT |
56 | fgo-dump- |
57 | Go Joined RejectNegative | |
a7b2e184 | 58 | -fgo-dump-<type> Dump Go frontend internal information. |
7a938933 | 59 | |
706cd57f | 60 | fgo-optimize- |
2794baab | 61 | Go Joined |
a7b2e184 | 62 | -fgo-optimize-<type> Turn on optimization passes in the frontend. |
706cd57f | 63 | |
097b12fb ILT |
64 | fgo-pkgpath= |
65 | Go Joined RejectNegative | |
a7b2e184 | 66 | -fgo-pkgpath=<string> Set Go package path. |
097b12fb | 67 | |
7a938933 ILT |
68 | fgo-prefix= |
69 | Go Joined RejectNegative | |
a7b2e184 | 70 | -fgo-prefix=<string> Set package-specific prefix for exported Go names. |
7a938933 | 71 | |
4e1866fe ILT |
72 | fgo-relative-import-path= |
73 | Go Joined RejectNegative | |
db03bf50 | 74 | -fgo-relative-import-path=<path> Treat a relative import as relative to path. |
4e1866fe | 75 | |
7a938933 ILT |
76 | frequire-return-statement |
77 | Go Var(go_require_return_statement) Init(1) Warning | |
a7b2e184 | 78 | Functions which return values must end with return statements. |
7a938933 | 79 | |
7295570d CM |
80 | fgo-debug-escape |
81 | Go Joined UInteger Var(go_debug_escape_level) Init(0) | |
82 | Emit debugging information related to the escape analysis pass when run with -fgo-optimize-allocs. | |
83 | ||
594d0e51 CZ |
84 | fgo-debug-escape-hash= |
85 | Go Joined RejectNegative Var(go_debug_escape_hash) Init(0) | |
86 | -fgo-debug-escape-hash=<string> Hash value to debug escape analysis. | |
87 | ||
7a938933 ILT |
88 | o |
89 | Go Joined Separate | |
90 | ; Documented in common.opt | |
91 | ||
92 | ; This comment is to ensure we retain the blank line above. |