xref: /dflybsd-src/contrib/gcc-8.0/gcc/go/lang.opt (revision 38fd149817dfbff97799f62fcb70be98c4e32523)
1*38fd1498Szrj; lang.opt -- Options for the gcc Go front end.
2*38fd1498Szrj
3*38fd1498Szrj; Copyright (C) 2009-2018 Free Software Foundation, Inc.
4*38fd1498Szrj;
5*38fd1498Szrj; This file is part of GCC.
6*38fd1498Szrj;
7*38fd1498Szrj; GCC is free software; you can redistribute it and/or modify it under
8*38fd1498Szrj; the terms of the GNU General Public License as published by the Free
9*38fd1498Szrj; Software Foundation; either version 3, or (at your option) any later
10*38fd1498Szrj; version.
11*38fd1498Szrj;
12*38fd1498Szrj; GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13*38fd1498Szrj; WARRANTY; without even the implied warranty of MERCHANTABILITY or
14*38fd1498Szrj; FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15*38fd1498Szrj; for more details.
16*38fd1498Szrj;
17*38fd1498Szrj; You should have received a copy of the GNU General Public License
18*38fd1498Szrj; along with GCC; see the file COPYING3.  If not see
19*38fd1498Szrj; <http://www.gnu.org/licenses/>.
20*38fd1498Szrj
21*38fd1498Szrj; See the GCC internals manual for a description of this file's format.
22*38fd1498Szrj
23*38fd1498Szrj; Please try to keep this file in ASCII collating order.
24*38fd1498Szrj
25*38fd1498SzrjLanguage
26*38fd1498SzrjGo
27*38fd1498Szrj
28*38fd1498SzrjI
29*38fd1498SzrjGo Joined Separate
30*38fd1498Szrj; Documented in c.opt
31*38fd1498Szrj
32*38fd1498SzrjL
33*38fd1498SzrjGo Joined Separate
34*38fd1498Szrj; Not documented
35*38fd1498Szrj
36*38fd1498SzrjWall
37*38fd1498SzrjGo
38*38fd1498Szrj; Documented in c.opt
39*38fd1498Szrj
40*38fd1498Szrjfgo-c-header=
41*38fd1498SzrjGo Joined RejectNegative
42*38fd1498Szrj-fgo-c-header=<file>	Write Go struct definitions to file as C code.
43*38fd1498Szrj
44*38fd1498Szrjfgo-check-divide-zero
45*38fd1498SzrjGo Var(go_check_divide_zero) Init(1)
46*38fd1498SzrjAdd explicit checks for division by zero.
47*38fd1498Szrj
48*38fd1498Szrjfgo-check-divide-overflow
49*38fd1498SzrjGo Var(go_check_divide_overflow) Init(1)
50*38fd1498SzrjAdd explicit checks for division overflow in INT_MIN / -1.
51*38fd1498Szrj
52*38fd1498Szrjfgo-compiling-runtime
53*38fd1498SzrjGo Var(go_compiling_runtime) Init(0)
54*38fd1498SzrjApply special rules for compiling runtime package.
55*38fd1498Szrj
56*38fd1498Szrjfgo-dump-
57*38fd1498SzrjGo Joined RejectNegative
58*38fd1498Szrj-fgo-dump-<type>	Dump Go frontend internal information.
59*38fd1498Szrj
60*38fd1498Szrjfgo-optimize-
61*38fd1498SzrjGo Joined
62*38fd1498Szrj-fgo-optimize-<type>	Turn on optimization passes in the frontend.
63*38fd1498Szrj
64*38fd1498Szrjfgo-pkgpath=
65*38fd1498SzrjGo Joined RejectNegative
66*38fd1498Szrj-fgo-pkgpath=<string>	Set Go package path.
67*38fd1498Szrj
68*38fd1498Szrjfgo-prefix=
69*38fd1498SzrjGo Joined RejectNegative
70*38fd1498Szrj-fgo-prefix=<string>	Set package-specific prefix for exported Go names.
71*38fd1498Szrj
72*38fd1498Szrjfgo-relative-import-path=
73*38fd1498SzrjGo Joined RejectNegative
74*38fd1498Szrj-fgo-relative-import-path=<path>	Treat a relative import as relative to path.
75*38fd1498Szrj
76*38fd1498Szrjfrequire-return-statement
77*38fd1498SzrjGo Var(go_require_return_statement) Init(1) Warning
78*38fd1498SzrjFunctions which return values must end with return statements.
79*38fd1498Szrj
80*38fd1498Szrjfgo-debug-escape
81*38fd1498SzrjGo Joined UInteger Var(go_debug_escape_level) Init(0)
82*38fd1498SzrjEmit debugging information related to the escape analysis pass when run with -fgo-optimize-allocs.
83*38fd1498Szrj
84*38fd1498Szrjfgo-debug-escape-hash=
85*38fd1498SzrjGo Joined RejectNegative Var(go_debug_escape_hash) Init(0)
86*38fd1498Szrj-fgo-debug-escape-hash=<string>	Hash value to debug escape analysis.
87*38fd1498Szrj
88*38fd1498Szrjo
89*38fd1498SzrjGo Joined Separate
90*38fd1498Szrj; Documented in common.opt
91*38fd1498Szrj
92*38fd1498Szrj; This comment is to ensure we retain the blank line above.
93