]>
gcc.gnu.org Git - gcc.git/blob - gcc/m2/lang-options.h
b5edb65372e794996b5f41d9e682770447aee605
1 /* Definitions for switches for Modula-2.
3 Copyright (C) 2001-2021 Free Software Foundation, Inc.
4 Contributed by Gaius Mulley <gaius@glam.ac.uk>.
6 This file is part of GNU Modula-2.
8 GNU Modula-2 is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3, or (at your option)
13 GNU Modula-2 is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GNU Modula-2; see the file COPYING. If not,
20 see <https://www.gnu.org/licenses/>. */
22 #define LINK_COMMAND_SPEC ""
24 /* This is the contribution to the `documented_lang_options' array in
27 DEFINE_LANG_NAME ("Modula-2")
30 N_("specifies a library path (C syntax)") },
32 N_("use ISO dialect of Modula-2") },
34 N_("use PIM [234] dialect of Modula-2") },
36 N_("use PIM 2 dialect of Modula-2") },
38 N_("use PIM 3 dialect of Modula-2") },
40 N_("use PIM 4 dialect of Modula-2") },
41 { "-fpositive-mod-floor-div",
42 N_("force positive result from MOD and DIV result floor") },
44 N_("use the University of Ulm libraries and PIM dialect of Modula-2") },
46 N_("use a minimal SYSTEM, M2RTS and libc and no other system libraries") },
48 N_("use the Logitech compatible (PIM dialect) set of libraries") },
49 { "-flibs=pim-coroutine",
50 N_("use the PIM dialect libraries which include coroutine support") },
52 N_("turns on runtime checking to detect accessing data through a NIL value pointer") },
54 N_("turns off runtime checking to detect accessing data through a NIL value pointer") },
56 N_("generate code to detect whole number division by zero or modulus by zero") },
58 N_("do not generate code to detect whole number division by zero or modulus by zero") },
60 N_("generate code to check whether array index values are out of bounds") },
62 N_("do not generate code to check whether array index values are out of bounds") },
64 N_("generate code to check the assignment range, return value range, set range and constructor range") },
66 N_("do not generate code to check the assignment range, return value range, set range and constructor range") },
68 N_("turns on runtime checking for functions which finish without executing a RETURN statement") },
70 N_("turns off runtime checking for functions which finish without executing a RETURN statement") },
72 N_("turns on runtime checking to check whether a CASE statement requires an ELSE clause when on was not specified") },
74 N_("turns off runtime checking to check whether a CASE statement requires an ELSE clause when on was not specified") },
76 N_("turns on all runtime checking (an abbreviation for -fnil -frange -findex -fwholediv -fcase -freturn-ffloatvalue)") },
77 { "-fno-soft-check-all",
78 N_("turns off all runtime checking (an abbreviation for -fno-nil -fno-range -fno-index -fno-wholediv -fno-case -fno-return -fno-floatvalue)") },
80 N_("turns on all exception generating code (this is on by default)") },
82 N_("turns off all exception generating code, this flag should be used with -flibs=min") },
84 N_("automatically initializes all pointers to NIL") },
86 N_("extra compile time semantic checking, typically tries to catch bad style") },
88 N_("compiler checks nested WITH statements (referencing same type) and multiple identical imports") },
89 { "-Wpedantic-param-names",
90 N_("compiler checks to force definition module procedure parameter names with their implementation module counterpart") },
92 N_("compiler warns if a cast is being used on types of differing sizes") },
93 { "-fextended-opaque",
94 N_("allows opaque types to be implemented as any type (a GNU Modula-2 extension)") },
95 { "-Wverbose-unbounded",
96 N_("inform user which parameters will be passed by reference") },
97 { "-Wunused-variable",
98 N_("compiler warns if a variable is declared and not used") },
99 { "-Wno-unused-variable",
100 N_("turns off compiler warning if a variable is declared and not used") },
101 { "-Wunused-parameter",
102 N_("compiler warns if a parameter is declared and not used") },
103 { "-Wno-unused-parameter",
104 N_("turns off compiler warning if a parameter is declared and not used") },
106 N_("issue all errors and warnings in the Xcode format") },
108 N_("use ordered list of modules when linking") },
110 N_("created ordered list of modules") },
111 { "-fm2-whole-program",
112 N_("compile all implementation and program modules as a single unit") },
114 N_("display statistics about the amount of source lines compiled and symbols used") },
116 N_("generate extra nops to improve debugging, producing an instruction for every code related keyword") },
118 N_("generate error messages which render keywords in lower case") },
120 N_("display list of modules and location") },
122 N_("do not link against -lpthread") },
123 { "-fruntime-modules=",
124 N_("specify the list of runtime modules and their initialization order") },
126 N_("cleans all the project objects in the current directory using make") },
128 N_("build a project using make") },
130 N_("do not build a project using make (internal)") },
132 N_("build project path (internal)") },
134 N_("full path to target archiver") },
135 { "-ftarget-ranlib=",
136 N_("full path to target ranlib") },
138 N_("use cpp to preprocess the module") },
140 N_("debugging information - dump the list of quadruples") },
142 N_("display the location of module source files as they are compiled") },
143 { "-funbounded-by-reference",
144 N_("optimize non var unbounded parameters by passing it by reference, providing it is not written to within the callee procedure.") },
146 N_("recognise the specified suffix as a definition module filename") },
148 N_("recognise the specified suffix as implementation and module filenames") },
149 { "-fdump-system-exports",
150 N_("display all inbuilt system items") },
152 N_("generate a swig interface file") },
154 N_("generate a shared library from the module") },
156 N_("generate the start up C code for the module, a file _m2_modulename.c is created") },
158 N_("set the object path") },
160 N_("only link the module and do not compile module (internal)"),
162 N_("display the GNU Modula-2 version") },
164 N_("display the GNU Modula-2 version") },
166 N_("display the GNU Modula-2 version") },
168 N_("optimize code") },
170 N_("set all location values to unknown,builtin,integer value (internal debugging)") },
172 N_("specify the language") },
173 { "-fdebug-function-line-numbers",
174 N_("turn on the Modula-2 function line number generation (internal switch)") },
176 N_("generate code to detect floating point overflow and underflow") },
178 N_("do not generate code to detect floating point overflow and underflow") },
180 N_("generate code to detect whole number overflow and underflow") },
182 N_("do not generate code to detect whole number overflow and underflow") },
184 N_("insert semantic plugin to detect runtime errors at compile time") },
186 N_("do not insert semantic plugin to detect runtime errors at compile time") },
188 N_("save temporary files after the preprocessor phase") },
190 N_("save temporary files and place them in the directory specified") },
This page took 0.046193 seconds and 4 git commands to generate.