| 1 |
; lang.opt -- Options for the gcc Cobol front end. |
| 2 |
|
| 3 |
; Copyright (C) 2021-2025 Free Software Foundation, Inc. |
| 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 |
Cobol |
| 27 |
|
| 28 |
D |
| 29 |
Cobol Joined Separate |
| 30 |
; Documented in c.opt |
| 31 |
|
| 32 |
E |
| 33 |
Cobol |
| 34 |
; Documented in c.opt |
| 35 |
|
| 36 |
I |
| 37 |
Cobol Joined Separate |
| 38 |
;; -I <dir> Add copybook search directory |
| 39 |
; Documented in c.opt |
| 40 |
|
| 41 |
M |
| 42 |
Cobol |
| 43 |
; Documented in c.opt |
| 44 |
|
| 45 |
|
| 46 |
dialect |
| 47 |
Cobol Joined Separate Enum(dialect_type) EnumBitSet Var(cobol_dialect) |
| 48 |
Accept COBOL constructs used by non-ISO compilers |
| 49 |
|
| 50 |
Enum |
| 51 |
Name(dialect_type) Type(int) UnknownError(Unrecognized COBOL dialect name: %qs) |
| 52 |
|
| 53 |
EnumValue |
| 54 |
Enum(dialect_type) String(gcc) Value(0x04) Canonical |
| 55 |
|
| 56 |
EnumValue |
| 57 |
Enum(dialect_type) String(ibm) Value(0x01) |
| 58 |
|
| 59 |
EnumValue |
| 60 |
Enum(dialect_type) String(mf) Value(0x02) |
| 61 |
|
| 62 |
EnumValue |
| 63 |
Enum(dialect_type) String(gnu) Value(0x04) |
| 64 |
|
| 65 |
fcobol-exceptions |
| 66 |
Cobol Joined Separate Var(cobol_exceptions) |
| 67 |
-fcobol-exceptions=<n> Enable some exceptions by default |
| 68 |
|
| 69 |
copyext |
| 70 |
Cobol Joined Separate Var(cobol_copyext) Init(0) |
| 71 |
Define alternative implicit copybook filename extension |
| 72 |
|
| 73 |
fdefaultbyte |
| 74 |
Cobol RejectNegative Joined Separate UInteger Var(cobol_default_byte) |
| 75 |
Set Working-Storage data items to the supplied value |
| 76 |
|
| 77 |
fflex-debug |
| 78 |
Cobol Var(yy_flex_debug, 1) Init(0) |
| 79 |
Enable Cobol lex debugging |
| 80 |
|
| 81 |
ffixed-form |
| 82 |
Cobol RejectNegative |
| 83 |
Assume that the source file is fixed form. |
| 84 |
|
| 85 |
ffree-form |
| 86 |
Cobol RejectNegative |
| 87 |
Assume that the source file is free form. |
| 88 |
|
| 89 |
findicator-column |
| 90 |
Cobol RejectNegative Joined Separate UInteger Var(indicator_column) Init(0) IntegerRange(0, 8) |
| 91 |
-findicator-column=<n> Column after which Region A begins |
| 92 |
|
| 93 |
finternal-ebcdic |
| 94 |
Cobol Var(cobol_ebcdic, 1) Init(0) |
| 95 |
-finternal-ebcdic Internal processing is in EBCDIC Code Page 1140 |
| 96 |
|
| 97 |
fstatic-call |
| 98 |
Cobol Var(cobol_static_call, 1) Init(1) |
| 99 |
Enable/disable static linkage for CALL literals |
| 100 |
|
| 101 |
ftrace-debug |
| 102 |
Cobol Var(cobol_trace_debug, 1) Init(0) |
| 103 |
Enable Cobol parser debugging |
| 104 |
|
| 105 |
fyacc-debug |
| 106 |
Cobol Var(yy_debug, 1) Init(0) |
| 107 |
Enable Cobol yacc debugging |
| 108 |
|
| 109 |
preprocess |
| 110 |
Cobol Joined Separate Var(cobol_preprocess) |
| 111 |
preprocess <source_filter> before compiling |
| 112 |
|
| 113 |
iprefix |
| 114 |
Cobol Joined Separate |
| 115 |
; Documented in C |
| 116 |
|
| 117 |
include |
| 118 |
Cobol Joined Separate |
| 119 |
; Documented in C |
| 120 |
|
| 121 |
isysroot |
| 122 |
Cobol Joined Separate |
| 123 |
; Documented in C |
| 124 |
|
| 125 |
isystem |
| 126 |
Cobol Joined Separate |
| 127 |
; Documented in C |
| 128 |
|
| 129 |
main |
| 130 |
Cobol |
| 131 |
-main The first program-id in the next source file is called by a generated main() entry point |
| 132 |
|
| 133 |
main= |
| 134 |
Cobol Joined Var(cobol_main_string) |
| 135 |
-main=<source_file> source_file/PROGRAM-ID is called by the generated main() |
| 136 |
|
| 137 |
nomain |
| 138 |
Cobol |
| 139 |
-nomain No main() function is created from COBOL source files |
| 140 |
|
| 141 |
; This comment is to ensure we retain the blank line above. |