aboutsummaryrefslogtreecommitdiff
path: root/gcc/cobol/lang.opt
blob: 59278a147e991d29d4c4c04933df1eed9d416be2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
; lang.opt -- Options for the gcc Cobol front end.

; Copyright (C) 2021-2025 Free Software Foundation, Inc.
;
; This file is part of GCC.
;
; GCC is free software; you can redistribute it and/or modify it under
; the terms of the GNU General Public License as published by the Free
; Software Foundation; either version 3, or (at your option) any later
; version.
;
; GCC is distributed in the hope that it will be useful, but WITHOUT ANY
; WARRANTY; without even the implied warranty of MERCHANTABILITY or
; FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
; for more details.
;
; You should have received a copy of the GNU General Public License
; along with GCC; see the file COPYING3.  If not see
; <http://www.gnu.org/licenses/>.

; See the GCC internals manual for a description of this file's format.

; Please try to keep this file in ASCII collating order.

Language
Cobol

D
Cobol Joined Separate
; Documented in c.opt

E
Cobol
; Documented in c.opt

I
Cobol Joined Separate
;;  -I <dir>	Add copybook search directory
; Documented in c.opt

dialect
Cobol Joined Separate Enum(dialect_type) EnumBitSet Var(cobol_dialect)
Accept COBOL constructs used by non-ISO compilers

Enum
Name(dialect_type) Type(int) UnknownError(Unrecognized COBOL dialect name: %qs)

EnumValue
Enum(dialect_type) String(gcc) Value(0x04) Canonical

EnumValue
Enum(dialect_type) String(ibm) Value(0x01)

EnumValue
Enum(dialect_type) String(mf)  Value(0x02)

EnumValue
Enum(dialect_type) String(gnu) Value(0x04)

fcobol-exceptions
Cobol Joined Separate Var(cobol_exceptions)
-fcobol-exceptions=<n>	Enable some exceptions by default

copyext
Cobol Joined Separate Var(cobol_copyext) Init(0)
Define alternative implicit copybook filename extension

fdefaultbyte
Cobol RejectNegative Joined Separate UInteger Var(cobol_default_byte)
Set Working-Storage data items to the supplied value

fflex-debug
Cobol Var(yy_flex_debug, 1) Init(0)
Enable Cobol lex debugging

ffixed-form
Cobol RejectNegative
Assume that the source file is fixed form.

ffree-form
Cobol RejectNegative
Assume that the source file is free form.

findicator-column
Cobol RejectNegative Joined Separate UInteger Var(indicator_column) Init(0) IntegerRange(0, 8)
-findicator-column=<n>	Column after which Region A begins

finternal-ebcdic
Cobol Var(cobol_ebcdic, 1) Init(0)
-finternal-ebcdic	Internal processing is in EBCDIC Code Page 1140

fstatic-call
Cobol Var(cobol_static_call, 1) Init(1)
Enable/disable static linkage for CALL literals

ftrace-debug
Cobol Var(cobol_trace_debug, 1) Init(0)
Enable Cobol parser debugging

fyacc-debug
Cobol Var(yy_debug, 1) Init(0)
Enable Cobol yacc debugging

preprocess
Cobol Joined Separate Var(cobol_preprocess)
preprocess <source_filter> before compiling

iprefix
Cobol Joined Separate
; Documented in C

include
Cobol Joined Separate
; Documented in C

isysroot
Cobol Joined Separate
; Documented in C

isystem
Cobol Joined Separate
; Documented in C

main
Cobol
-main	The first program-id in the next source file is called by a generated main() entry point

main=
Cobol Joined Var(cobol_main_string)
-main=<source_file> source_file/PROGRAM-ID is called by the generated main()

nomain
Cobol
-nomain	No main() function is created from COBOL source files

; This comment is to ensure we retain the blank line above.