| 1 |
(* M2Options.def initializes the user options. |
| 2 |
|
| 3 |
Copyright (C) 2001-2025 Free Software Foundation, Inc. |
| 4 |
Contributed by Gaius Mulley <[email protected]>. |
| 5 |
|
| 6 |
This file is part of GNU Modula-2. |
| 7 |
|
| 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) |
| 11 |
any later version. |
| 12 |
|
| 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. |
| 17 |
|
| 18 |
You should have received a copy of the GNU General Public License |
| 19 |
along with GNU Modula-2; see the file COPYING3. If not see |
| 20 |
<http://www.gnu.org/licenses/>. *) |
| 21 |
|
| 22 |
DEFINITION MODULE M2Options ; |
| 23 |
|
| 24 |
(* |
| 25 |
Author : Gaius Mulley |
| 26 |
Title : M2Options |
| 27 |
Date : 27/5/87 [$Date: 2013/08/14 20:39:40 $] |
| 28 |
SYSTEM : UNIX (GNU Modula-2) |
| 29 |
Description: Initializes the user options in the Modula-2 compiler. |
| 30 |
Version : $Revision: 1.31 $ |
| 31 |
*) |
| 32 |
|
| 33 |
FROM SYSTEM IMPORT ADDRESS ; |
| 34 |
FROM DynamicStrings IMPORT String ; |
| 35 |
FROM gcctypes IMPORT location_t ; |
| 36 |
|
| 37 |
|
| 38 |
VAR |
| 39 |
PPonly, (* -E/M/MM present? - preprocessing only *) |
| 40 |
cflag, (* -c flag present? *) |
| 41 |
Iso, (* -fiso use ISO SYSTEM.def *) |
| 42 |
Pim, (* -fpim use PIM [234] SYSTEM.def *) |
| 43 |
Pim2, (* -fpim2 use strict rules. *) |
| 44 |
Pim3, (* -fpim3 use strict rules. *) |
| 45 |
Pim4, (* -fpim4 use strict rules. *) |
| 46 |
PositiveModFloorDiv, (* Force PIM4 behaviour for DIV and MOD *) |
| 47 |
CompilerDebugging, (* -fd internal debugging messages *) |
| 48 |
GenerateDebugging, (* -g option to generate info for gdb/dbx *) |
| 49 |
GenerateLineDebug, (* -gline to generate line debugging. *) |
| 50 |
Verbose, (* -verbose produce verbose error messages. *) |
| 51 |
Pedantic, (* -pedantic be pedantic on error checking. *) |
| 52 |
PedanticParamNames, (* -Wpedantic-param-names *) |
| 53 |
PedanticCast, (* -Wpedantic-cast warns if sizes differ. *) |
| 54 |
Statistics, (* -fstatistics information about code *) |
| 55 |
StyleChecking, (* -Wstudents checks for common student errs*) |
| 56 |
UnboundedByReference, (* -funbounded-by-reference *) |
| 57 |
VerboseUnbounded, (* -Wverbose-unbounded *) |
| 58 |
OptimizeUncalledProcedures, (* -Ouncalled removes uncalled procedures *) |
| 59 |
OptimizeBasicBlock, (* -Obb create basic blocks and optimize. *) |
| 60 |
OptimizeCommonSubExpressions, (* -Ocse optimize common subexpressions *) |
| 61 |
WholeProgram, (* -fwhole-program optimization. *) |
| 62 |
NilChecking, (* -fnil makes compiler test for pointer *) |
| 63 |
(* NIL. *) |
| 64 |
WholeDivChecking, (* -fwholediv produces code to raise an *) |
| 65 |
(* exception if a whole number divide by *) |
| 66 |
(* zero occurs. *) |
| 67 |
WholeValueChecking, (* -fwholevalue produces code to raise an *) |
| 68 |
(* exception if a whole value variable is *) |
| 69 |
(* about to exceed the type limits. *) |
| 70 |
FloatValueChecking, (* -ffloatvalue produces code to raise an *) |
| 71 |
(* exception if a floating point variable *) |
| 72 |
(* is about to exceed the type limits. *) |
| 73 |
IndexChecking, (* -findex array bounds checking. *) |
| 74 |
RangeChecking, (* -frange assignment, set values, *) |
| 75 |
(* constructor values in range. *) |
| 76 |
ReturnChecking, (* -freturn checks that functions always *) |
| 77 |
(* exit with a RETURN statement. *) |
| 78 |
CaseElseChecking, (* -fcase checks program does not need an *) |
| 79 |
(* else statement within an case statement *) |
| 80 |
(* when the user omits one *) |
| 81 |
VariantValueChecking, (* Should we check all values are present *) |
| 82 |
(* in a variant record? True for ISO and *) |
| 83 |
(* false for PIM. *) |
| 84 |
CaseEnumChecking, (* Should the compiler check for missing *) |
| 85 |
(* enumeration labels in a case statement? *) |
| 86 |
Quiet, (* -fquiet option specified. *) |
| 87 |
LineDirectives, (* Should compiler understand preprocessor *) |
| 88 |
(* # linenumber "filename" markers? *) |
| 89 |
StrictTypeChecking, (* -fm2-strict-type experimental checker. *) |
| 90 |
StrictTypeAssignment, (* -fm2-strict-assignment. *) |
| 91 |
StrictTypeReason, (* -fm2-strict-reason. *) |
| 92 |
CPreProcessor, (* Must we run the cpp on the source? *) |
| 93 |
Xcode, (* Should errors follow Xcode format? *) |
| 94 |
ExtendedOpaque, (* Do we allow non pointer opaque types? *) |
| 95 |
DumpSystemExports, (* Print all inbuilt system items? *) |
| 96 |
GenerateSwig, (* Should we generate a swig interface file?*) |
| 97 |
Exceptions, (* Should we generate exception code? *) |
| 98 |
UnusedVariableChecking, (* Should we warn about unused variables? *) |
| 99 |
UnusedParameterChecking, (* Should we warn about unused parameters? *) |
| 100 |
UninitVariableChecking, (* Should we warn about accessing *) |
| 101 |
(* uninitialized variables in the first bb? *) |
| 102 |
UninitVariableConditionalChecking, |
| 103 |
(* Should we warn about accessing *) |
| 104 |
(* uninitialized variables in subsequent *) |
| 105 |
(* basic blocks? *) |
| 106 |
LowerCaseKeywords, (* Should keywords in errors be in lower? *) |
| 107 |
DebugBuiltins, (* Should we always call a real function? *) |
| 108 |
AutoInit, (* -fauto-init assigns pointers to NIL. *) |
| 109 |
SaveTemps, (* -save-temps save all temporary files. *) |
| 110 |
ScaffoldDynamic, (* Should we generate a dynamic scaffold? *) |
| 111 |
ScaffoldStatic, (* Should we generate a static scaffold? *) |
| 112 |
ScaffoldMain, (* Should we generate a main function? *) |
| 113 |
GenModuleList, (* Should the compiler generate a list of *) |
| 114 |
(* all modules used? *) |
| 115 |
SharedFlag, (* -fshared indicating this module needs *) |
| 116 |
(* the shared library version of the *) |
| 117 |
(* scaffold. *) |
| 118 |
ForcedLocation, |
| 119 |
GenerateStatementNote, |
| 120 |
Optimizing, |
| 121 |
Coding, |
| 122 |
Profiling : BOOLEAN ; |
| 123 |
|
| 124 |
|
| 125 |
(* |
| 126 |
SetM - set the MFlag. |
| 127 |
*) |
| 128 |
|
| 129 |
PROCEDURE SetM (value: BOOLEAN) ; |
| 130 |
|
| 131 |
|
| 132 |
(* |
| 133 |
GetM - set the MFlag. |
| 134 |
*) |
| 135 |
|
| 136 |
PROCEDURE GetM () : BOOLEAN ; |
| 137 |
|
| 138 |
|
| 139 |
(* |
| 140 |
SetMM - set the MMFlag. |
| 141 |
*) |
| 142 |
|
| 143 |
PROCEDURE SetMM (value: BOOLEAN) ; |
| 144 |
|
| 145 |
|
| 146 |
(* |
| 147 |
GetMM - set the MMFlag. |
| 148 |
*) |
| 149 |
|
| 150 |
PROCEDURE GetMM () : BOOLEAN ; |
| 151 |
|
| 152 |
|
| 153 |
(* |
| 154 |
SetMF - assigns MFarg to the filename from arg. |
| 155 |
*) |
| 156 |
|
| 157 |
PROCEDURE SetMF (arg: ADDRESS) ; |
| 158 |
|
| 159 |
|
| 160 |
(* |
| 161 |
GetMF - returns MFarg or NIL if never set. |
| 162 |
*) |
| 163 |
|
| 164 |
PROCEDURE GetMF () : ADDRESS ; |
| 165 |
|
| 166 |
|
| 167 |
(* |
| 168 |
SetM2Prefix - assign arg to M2Prefix. |
| 169 |
*) |
| 170 |
|
| 171 |
PROCEDURE SetM2Prefix (arg: ADDRESS) ; |
| 172 |
|
| 173 |
|
| 174 |
(* |
| 175 |
GetM2Prefix - return M2Prefix as a C string. |
| 176 |
*) |
| 177 |
|
| 178 |
PROCEDURE GetM2Prefix () : ADDRESS ; |
| 179 |
|
| 180 |
|
| 181 |
(* |
| 182 |
SetM2PathName - assign arg to M2PathName. |
| 183 |
*) |
| 184 |
|
| 185 |
PROCEDURE SetM2PathName (arg: ADDRESS) ; |
| 186 |
|
| 187 |
|
| 188 |
(* |
| 189 |
GetM2PathName - return M2PathName as a C string. |
| 190 |
*) |
| 191 |
|
| 192 |
PROCEDURE GetM2PathName () : ADDRESS ; |
| 193 |
|
| 194 |
|
| 195 |
(* |
| 196 |
SetPPOnly - set the PPonly to value (on E, M, MM). |
| 197 |
*) |
| 198 |
|
| 199 |
PROCEDURE SetPPOnly (value: BOOLEAN) ; |
| 200 |
|
| 201 |
|
| 202 |
(* |
| 203 |
GetPPOnly - get the PPonly (Preprocess only). |
| 204 |
*) |
| 205 |
|
| 206 |
PROCEDURE GetPPOnly () : BOOLEAN ; |
| 207 |
|
| 208 |
|
| 209 |
(* |
| 210 |
Setc - set the cflag (compile only flag -c) to value. |
| 211 |
*) |
| 212 |
|
| 213 |
PROCEDURE Setc (value: BOOLEAN) ; |
| 214 |
|
| 215 |
|
| 216 |
(* |
| 217 |
Getc - get the cflag (compile only flag -c). |
| 218 |
*) |
| 219 |
|
| 220 |
PROCEDURE Getc () : BOOLEAN ; |
| 221 |
|
| 222 |
|
| 223 |
(* |
| 224 |
SetB - assigns Barg to arg. |
| 225 |
*) |
| 226 |
|
| 227 |
PROCEDURE SetB (arg: ADDRESS) ; |
| 228 |
|
| 229 |
|
| 230 |
(* |
| 231 |
GetB - returns argument to the -B option as a string or NIL if it were never set. |
| 232 |
*) |
| 233 |
|
| 234 |
PROCEDURE GetB () : ADDRESS ; |
| 235 |
|
| 236 |
|
| 237 |
(* |
| 238 |
SetMD - set the MDFlag to value. |
| 239 |
*) |
| 240 |
|
| 241 |
PROCEDURE SetMD (value: BOOLEAN) ; |
| 242 |
|
| 243 |
|
| 244 |
(* |
| 245 |
GetMD - return the MDFlag. |
| 246 |
*) |
| 247 |
|
| 248 |
PROCEDURE GetMD () : BOOLEAN ; |
| 249 |
|
| 250 |
|
| 251 |
(* |
| 252 |
SetMMD - set the MMDFlag to value. |
| 253 |
*) |
| 254 |
|
| 255 |
PROCEDURE SetMMD (value: BOOLEAN) ; |
| 256 |
|
| 257 |
|
| 258 |
(* |
| 259 |
GetMMD - return the MMDFlag. |
| 260 |
*) |
| 261 |
|
| 262 |
PROCEDURE GetMMD () : BOOLEAN ; |
| 263 |
|
| 264 |
|
| 265 |
(* |
| 266 |
SetMQ - adds a quoted target arg to the DepTarget sentence. |
| 267 |
*) |
| 268 |
|
| 269 |
PROCEDURE SetMQ (arg: ADDRESS) ; |
| 270 |
|
| 271 |
|
| 272 |
(* |
| 273 |
GetMQ - returns a C string containing all the -MQ arg values. |
| 274 |
*) |
| 275 |
|
| 276 |
PROCEDURE GetMQ () : ADDRESS ; |
| 277 |
|
| 278 |
|
| 279 |
(* |
| 280 |
SetMT - adds a target arg to the DepTarget sentence. |
| 281 |
*) |
| 282 |
|
| 283 |
PROCEDURE SetMT (arg: ADDRESS) ; |
| 284 |
|
| 285 |
|
| 286 |
(* |
| 287 |
GetMT - returns a C string containing all the -MT arg values. |
| 288 |
*) |
| 289 |
|
| 290 |
PROCEDURE GetMT () : ADDRESS ; |
| 291 |
|
| 292 |
|
| 293 |
(* |
| 294 |
GetDepTarget - returns the DepTarget as a C string. |
| 295 |
*) |
| 296 |
|
| 297 |
PROCEDURE GetDepTarget () : ADDRESS ; |
| 298 |
|
| 299 |
|
| 300 |
(* |
| 301 |
SetMP - set the MPflag to value. |
| 302 |
*) |
| 303 |
|
| 304 |
PROCEDURE SetMP (value: BOOLEAN) ; |
| 305 |
|
| 306 |
|
| 307 |
(* |
| 308 |
GetMP - get the MPflag. |
| 309 |
*) |
| 310 |
|
| 311 |
PROCEDURE GetMP () : BOOLEAN ; |
| 312 |
|
| 313 |
|
| 314 |
(* |
| 315 |
SetObj - assigns given object file to arg. |
| 316 |
*) |
| 317 |
|
| 318 |
PROCEDURE SetObj (arg: ADDRESS) ; |
| 319 |
|
| 320 |
(* |
| 321 |
GetObj - returns the filename set for Object or NIL if it was never set. |
| 322 |
*) |
| 323 |
|
| 324 |
PROCEDURE GetObj () : ADDRESS ; |
| 325 |
|
| 326 |
|
| 327 |
(* |
| 328 |
SetCpp - enables the source to be preprocessed and enables the |
| 329 |
recognition of C preprocessor line directives. |
| 330 |
*) |
| 331 |
|
| 332 |
PROCEDURE SetCpp (value: BOOLEAN) : BOOLEAN ; |
| 333 |
|
| 334 |
|
| 335 |
(* |
| 336 |
GetCpp - returns TRUE if the C preprocessor was used. |
| 337 |
*) |
| 338 |
|
| 339 |
PROCEDURE GetCpp () : BOOLEAN ; |
| 340 |
|
| 341 |
|
| 342 |
(* |
| 343 |
GetLineDirectives - returns TRUE if line directives are allowed. |
| 344 |
*) |
| 345 |
|
| 346 |
PROCEDURE GetLineDirectives () : BOOLEAN ; |
| 347 |
|
| 348 |
|
| 349 |
(* |
| 350 |
SetScaffoldDynamic - set the -fscaffold-dynamic flag. |
| 351 |
*) |
| 352 |
|
| 353 |
PROCEDURE SetScaffoldDynamic (value: BOOLEAN) ; |
| 354 |
|
| 355 |
|
| 356 |
(* |
| 357 |
SetScaffoldStatic - set the -fscaffold-static flag. |
| 358 |
*) |
| 359 |
|
| 360 |
PROCEDURE SetScaffoldStatic (value: BOOLEAN) ; |
| 361 |
|
| 362 |
|
| 363 |
(* |
| 364 |
GetScaffoldDynamic - get the -fscaffold-dynamic flag. |
| 365 |
*) |
| 366 |
|
| 367 |
PROCEDURE GetScaffoldDynamic () : BOOLEAN ; |
| 368 |
|
| 369 |
|
| 370 |
(* |
| 371 |
GetScaffoldStatic - get the -fscaffold-static flag. |
| 372 |
*) |
| 373 |
|
| 374 |
PROCEDURE GetScaffoldStatic () : BOOLEAN ; |
| 375 |
|
| 376 |
|
| 377 |
(* |
| 378 |
SetScaffoldMain - set the -fscaffold-main flag. |
| 379 |
*) |
| 380 |
|
| 381 |
PROCEDURE SetScaffoldMain (value: BOOLEAN) ; |
| 382 |
|
| 383 |
|
| 384 |
(* |
| 385 |
SetRuntimeModuleOverride - set the override sequence used for module |
| 386 |
initialization and finialization. |
| 387 |
*) |
| 388 |
|
| 389 |
PROCEDURE SetRuntimeModuleOverride (override: ADDRESS) ; |
| 390 |
|
| 391 |
|
| 392 |
(* |
| 393 |
GetRuntimeModuleOverride - return a string containing any user override |
| 394 |
or the default module initialization override |
| 395 |
sequence. |
| 396 |
*) |
| 397 |
|
| 398 |
PROCEDURE GetRuntimeModuleOverride () : ADDRESS ; |
| 399 |
|
| 400 |
|
| 401 |
(* |
| 402 |
SetUselist - set the uselist flag to value and remember the filename. |
| 403 |
*) |
| 404 |
|
| 405 |
PROCEDURE SetUselist (value: BOOLEAN; filename: ADDRESS) ; |
| 406 |
|
| 407 |
|
| 408 |
(* |
| 409 |
GetUselist - return the uselist flag. |
| 410 |
*) |
| 411 |
|
| 412 |
PROCEDURE GetUselist () : BOOLEAN ; |
| 413 |
|
| 414 |
|
| 415 |
(* |
| 416 |
GetUselistFilename - return the uselist filename as a String. |
| 417 |
*) |
| 418 |
|
| 419 |
PROCEDURE GetUselistFilename () : String ; |
| 420 |
|
| 421 |
|
| 422 |
(* |
| 423 |
SetWholeProgram - sets the WholeProgram flag (-fwhole-program). |
| 424 |
*) |
| 425 |
|
| 426 |
PROCEDURE SetWholeProgram (value: BOOLEAN) ; |
| 427 |
|
| 428 |
|
| 429 |
(* |
| 430 |
SetAutoInit - set the auto initialization flag to value. If the value |
| 431 |
is true then all pointers are automatically |
| 432 |
initialized to NIL. TRUE is returned. |
| 433 |
*) |
| 434 |
|
| 435 |
PROCEDURE SetAutoInit (value: BOOLEAN) : BOOLEAN ; |
| 436 |
|
| 437 |
|
| 438 |
(* |
| 439 |
SetReturnCheck - set return statement checking in procedure functions |
| 440 |
to value. TRUE is returned. |
| 441 |
*) |
| 442 |
|
| 443 |
PROCEDURE SetReturnCheck (value: BOOLEAN) : BOOLEAN ; |
| 444 |
|
| 445 |
|
| 446 |
(* |
| 447 |
SetNilCheck - set access through NIL violation runtime checking to value. |
| 448 |
*) |
| 449 |
|
| 450 |
PROCEDURE SetNilCheck (value: BOOLEAN) : BOOLEAN ; |
| 451 |
|
| 452 |
|
| 453 |
(* |
| 454 |
SetCaseCheck - set else case checking to, value. |
| 455 |
*) |
| 456 |
|
| 457 |
PROCEDURE SetCaseCheck (value: BOOLEAN) : BOOLEAN ; |
| 458 |
|
| 459 |
|
| 460 |
(* |
| 461 |
SetCheckAll - set all runtime checking to, value. |
| 462 |
*) |
| 463 |
|
| 464 |
PROCEDURE SetCheckAll (value: BOOLEAN) : BOOLEAN ; |
| 465 |
|
| 466 |
|
| 467 |
(* |
| 468 |
SetVerboseUnbounded - sets the VerboseUnbounded flag to, value. |
| 469 |
*) |
| 470 |
|
| 471 |
PROCEDURE SetVerboseUnbounded (value: BOOLEAN) : BOOLEAN ; |
| 472 |
|
| 473 |
|
| 474 |
(* |
| 475 |
SetQuiet - sets the quiet flag to, value. |
| 476 |
*) |
| 477 |
|
| 478 |
PROCEDURE SetQuiet (value: BOOLEAN) : BOOLEAN ; |
| 479 |
|
| 480 |
|
| 481 |
(* |
| 482 |
SetCC1Quiet - sets the cc1quiet flag to, value. |
| 483 |
*) |
| 484 |
|
| 485 |
PROCEDURE SetCC1Quiet (value: BOOLEAN) ; |
| 486 |
|
| 487 |
|
| 488 |
(* |
| 489 |
SetM2g - set the -fm2-g flag. |
| 490 |
*) |
| 491 |
|
| 492 |
PROCEDURE SetM2g (value: BOOLEAN) : BOOLEAN ; |
| 493 |
|
| 494 |
|
| 495 |
(* |
| 496 |
GetM2g - returns TRUE if the -fm2-g flags was used. |
| 497 |
*) |
| 498 |
|
| 499 |
PROCEDURE GetM2g () : BOOLEAN ; |
| 500 |
|
| 501 |
|
| 502 |
(* |
| 503 |
SetLowerCaseKeywords - set the lower case keyword flag and return the result. |
| 504 |
*) |
| 505 |
|
| 506 |
PROCEDURE SetLowerCaseKeywords (value: BOOLEAN) : BOOLEAN ; |
| 507 |
|
| 508 |
|
| 509 |
(* |
| 510 |
SetMakeall - |
| 511 |
|
| 512 |
PROCEDURE SetMakeall (value: BOOLEAN) : BOOLEAN ; |
| 513 |
*) |
| 514 |
|
| 515 |
|
| 516 |
(* |
| 517 |
SetMakeall0 - |
| 518 |
|
| 519 |
PROCEDURE SetMakeall0 (value: BOOLEAN) : BOOLEAN ; |
| 520 |
*) |
| 521 |
|
| 522 |
|
| 523 |
(* |
| 524 |
SetIncludePath - |
| 525 |
|
| 526 |
PROCEDURE SetIncludePath (arg: ADDRESS) : BOOLEAN ; |
| 527 |
*) |
| 528 |
|
| 529 |
|
| 530 |
(* |
| 531 |
SetUnboundedByReference - |
| 532 |
*) |
| 533 |
|
| 534 |
PROCEDURE SetUnboundedByReference (value: BOOLEAN) : BOOLEAN ; |
| 535 |
|
| 536 |
|
| 537 |
(* |
| 538 |
SetSearchPath - |
| 539 |
*) |
| 540 |
|
| 541 |
PROCEDURE SetSearchPath (arg: ADDRESS) ; |
| 542 |
|
| 543 |
|
| 544 |
(* |
| 545 |
SetISO - |
| 546 |
*) |
| 547 |
|
| 548 |
PROCEDURE SetISO (value: BOOLEAN) ; |
| 549 |
|
| 550 |
|
| 551 |
(* |
| 552 |
SetPIM - |
| 553 |
*) |
| 554 |
|
| 555 |
PROCEDURE SetPIM (value: BOOLEAN) ; |
| 556 |
|
| 557 |
|
| 558 |
(* |
| 559 |
SetPIM2 - |
| 560 |
*) |
| 561 |
|
| 562 |
PROCEDURE SetPIM2 (value: BOOLEAN) ; |
| 563 |
|
| 564 |
|
| 565 |
(* |
| 566 |
SetPIM3 - |
| 567 |
*) |
| 568 |
|
| 569 |
PROCEDURE SetPIM3 (value: BOOLEAN) ; |
| 570 |
|
| 571 |
|
| 572 |
(* |
| 573 |
SetPIM4 - |
| 574 |
*) |
| 575 |
|
| 576 |
PROCEDURE SetPIM4 (value: BOOLEAN) ; |
| 577 |
|
| 578 |
|
| 579 |
(* |
| 580 |
SetPositiveModFloor - |
| 581 |
*) |
| 582 |
|
| 583 |
PROCEDURE SetPositiveModFloor (value: BOOLEAN) ; |
| 584 |
|
| 585 |
|
| 586 |
(* |
| 587 |
SetWholeDiv - sets the whole division flag. |
| 588 |
*) |
| 589 |
|
| 590 |
PROCEDURE SetWholeDiv (value: BOOLEAN) ; |
| 591 |
|
| 592 |
|
| 593 |
(* |
| 594 |
SetIndex - sets the runtime array index checking flag. |
| 595 |
*) |
| 596 |
|
| 597 |
PROCEDURE SetIndex (value: BOOLEAN) ; |
| 598 |
|
| 599 |
|
| 600 |
(* |
| 601 |
SetRange - sets the runtime range checking flag. |
| 602 |
*) |
| 603 |
|
| 604 |
PROCEDURE SetRange (value: BOOLEAN) ; |
| 605 |
|
| 606 |
|
| 607 |
(* |
| 608 |
SetExceptions - |
| 609 |
*) |
| 610 |
|
| 611 |
PROCEDURE SetExceptions (value: BOOLEAN) ; |
| 612 |
|
| 613 |
|
| 614 |
(* |
| 615 |
SetStyle - |
| 616 |
*) |
| 617 |
|
| 618 |
PROCEDURE SetStyle (value: BOOLEAN) ; |
| 619 |
|
| 620 |
|
| 621 |
(* |
| 622 |
SetPedantic - |
| 623 |
*) |
| 624 |
|
| 625 |
PROCEDURE SetPedantic (value: BOOLEAN) ; |
| 626 |
|
| 627 |
|
| 628 |
(* |
| 629 |
SetPedanticParamNames - |
| 630 |
*) |
| 631 |
|
| 632 |
PROCEDURE SetPedanticParamNames (value: BOOLEAN) ; |
| 633 |
|
| 634 |
|
| 635 |
(* |
| 636 |
SetPedanticCast - |
| 637 |
*) |
| 638 |
|
| 639 |
PROCEDURE SetPedanticCast (value: BOOLEAN) ; |
| 640 |
|
| 641 |
|
| 642 |
(* |
| 643 |
SetExtendedOpaque - |
| 644 |
*) |
| 645 |
|
| 646 |
PROCEDURE SetExtendedOpaque (value: BOOLEAN) ; |
| 647 |
|
| 648 |
|
| 649 |
(* |
| 650 |
SetXCode - |
| 651 |
*) |
| 652 |
|
| 653 |
PROCEDURE SetXCode (value: BOOLEAN) ; |
| 654 |
|
| 655 |
|
| 656 |
(* |
| 657 |
SetCompilerDebugging - turn on internal compiler debugging. |
| 658 |
Enabled via the command line option -fd. |
| 659 |
*) |
| 660 |
|
| 661 |
PROCEDURE SetCompilerDebugging (value: BOOLEAN) ; |
| 662 |
|
| 663 |
|
| 664 |
(* |
| 665 |
SetQuadDebugging - display the quadruples (internal debugging). |
| 666 |
*) |
| 667 |
|
| 668 |
PROCEDURE SetQuadDebugging (value: BOOLEAN) ; |
| 669 |
|
| 670 |
|
| 671 |
(* |
| 672 |
SetM2DebugTraceFilter - set internal debug flags. The flags should be |
| 673 |
specified as a comma separated list. The full |
| 674 |
list allowed is quad,line,token,tree. |
| 675 |
*) |
| 676 |
|
| 677 |
PROCEDURE SetM2DebugTraceFilter (value: BOOLEAN; filter: ADDRESS) ; |
| 678 |
|
| 679 |
|
| 680 |
(* |
| 681 |
SetDebugFunctionLineNumbers - set DebugFunctionLineNumbers. |
| 682 |
*) |
| 683 |
|
| 684 |
PROCEDURE SetDebugFunctionLineNumbers (value: BOOLEAN) ; |
| 685 |
|
| 686 |
|
| 687 |
(* |
| 688 |
SetGenerateStatementNote - turn on generation of nops if necessary |
| 689 |
to generate pedalogical single stepping. |
| 690 |
*) |
| 691 |
|
| 692 |
PROCEDURE SetGenerateStatementNote (value: BOOLEAN) ; |
| 693 |
|
| 694 |
|
| 695 |
(* |
| 696 |
SetSources - |
| 697 |
*) |
| 698 |
|
| 699 |
PROCEDURE SetSources (value: BOOLEAN) ; |
| 700 |
|
| 701 |
|
| 702 |
(* |
| 703 |
SetDumpSystemExports - |
| 704 |
*) |
| 705 |
|
| 706 |
PROCEDURE SetDumpSystemExports (value: BOOLEAN) ; |
| 707 |
|
| 708 |
|
| 709 |
(* |
| 710 |
SetSwig - |
| 711 |
*) |
| 712 |
|
| 713 |
PROCEDURE SetSwig (value: BOOLEAN) ; |
| 714 |
|
| 715 |
|
| 716 |
(* |
| 717 |
SetOptimizing - |
| 718 |
*) |
| 719 |
|
| 720 |
PROCEDURE SetOptimizing (value: CARDINAL) ; |
| 721 |
|
| 722 |
|
| 723 |
(* |
| 724 |
OverrideLocation - possibly override the location value, depending upon |
| 725 |
whether the -flocation= option was used. |
| 726 |
*) |
| 727 |
|
| 728 |
PROCEDURE OverrideLocation (location: location_t) : location_t ; |
| 729 |
|
| 730 |
|
| 731 |
(* |
| 732 |
SetForcedLocation - sets the location for the lifetime of this compile to, location. |
| 733 |
This is primarily an internal debugging switch. |
| 734 |
*) |
| 735 |
|
| 736 |
PROCEDURE SetForcedLocation (location: location_t) ; |
| 737 |
|
| 738 |
|
| 739 |
(* |
| 740 |
SetUnusedVariableChecking - assigns the UnusedVariableChecking to value. |
| 741 |
*) |
| 742 |
|
| 743 |
PROCEDURE SetUnusedVariableChecking (value: BOOLEAN) ; |
| 744 |
|
| 745 |
|
| 746 |
(* |
| 747 |
SetUnusedParameterChecking - assigns the UnusedParameterChecking to value. |
| 748 |
*) |
| 749 |
|
| 750 |
PROCEDURE SetUnusedParameterChecking (value: BOOLEAN) ; |
| 751 |
|
| 752 |
|
| 753 |
(* |
| 754 |
SetStrictTypeChecking - assigns the StrictTypeChecking flag to value. |
| 755 |
*) |
| 756 |
|
| 757 |
PROCEDURE SetStrictTypeChecking (value: BOOLEAN) ; |
| 758 |
|
| 759 |
|
| 760 |
(* |
| 761 |
SetStrictTypeAssignment - assigns the StrictTypeAssignment flag to value. |
| 762 |
*) |
| 763 |
|
| 764 |
PROCEDURE SetStrictTypeAssignment (value: BOOLEAN) ; |
| 765 |
|
| 766 |
|
| 767 |
(* |
| 768 |
SetStrictTypeReason - assigns the StrictTypeReason flag to value. |
| 769 |
*) |
| 770 |
|
| 771 |
PROCEDURE SetStrictTypeReason (value: BOOLEAN) ; |
| 772 |
|
| 773 |
|
| 774 |
(* |
| 775 |
setdefextension - set the source file definition module extension to arg. |
| 776 |
This should include the . and by default it is set to .def. |
| 777 |
*) |
| 778 |
|
| 779 |
PROCEDURE setdefextension (arg: ADDRESS) ; |
| 780 |
|
| 781 |
|
| 782 |
(* |
| 783 |
setmodextension - set the source file module extension to arg. |
| 784 |
This should include the . and by default it is set to .mod. |
| 785 |
*) |
| 786 |
|
| 787 |
PROCEDURE setmodextension (arg: ADDRESS) ; |
| 788 |
|
| 789 |
|
| 790 |
(* |
| 791 |
SetStatistics - turn on/off generate of compile time statistics. |
| 792 |
*) |
| 793 |
|
| 794 |
PROCEDURE SetStatistics (on: BOOLEAN) ; |
| 795 |
|
| 796 |
|
| 797 |
(* |
| 798 |
SetVerbose - set the Verbose flag to, value. It returns TRUE. |
| 799 |
*) |
| 800 |
|
| 801 |
PROCEDURE SetVerbose (value: BOOLEAN) : BOOLEAN ; |
| 802 |
|
| 803 |
|
| 804 |
(* |
| 805 |
CppArg - sets the option and arg in the cpp command line. |
| 806 |
*) |
| 807 |
|
| 808 |
PROCEDURE CppArg (opt, arg: ADDRESS; joined: BOOLEAN) ; |
| 809 |
|
| 810 |
|
| 811 |
(* |
| 812 |
CppCommandLine - returns the Cpp command line and all arguments. |
| 813 |
*) |
| 814 |
|
| 815 |
PROCEDURE CppCommandLine () : String ; |
| 816 |
|
| 817 |
|
| 818 |
(* |
| 819 |
CppRemember - remember a string, s, as a cpp related argument. |
| 820 |
The string, s, is not garbage collected. |
| 821 |
*) |
| 822 |
|
| 823 |
PROCEDURE CppRemember (s: String) ; |
| 824 |
|
| 825 |
|
| 826 |
(* |
| 827 |
GetISO - return TRUE if -fiso was present on the command line. |
| 828 |
*) |
| 829 |
|
| 830 |
PROCEDURE GetISO () : BOOLEAN ; |
| 831 |
|
| 832 |
|
| 833 |
(* |
| 834 |
GetPIM - return TRUE if -fpim was present on the command line. |
| 835 |
*) |
| 836 |
|
| 837 |
PROCEDURE GetPIM () : BOOLEAN ; |
| 838 |
|
| 839 |
|
| 840 |
(* |
| 841 |
GetPIM2 - return TRUE if -fpim2 was present on the command line. |
| 842 |
*) |
| 843 |
|
| 844 |
PROCEDURE GetPIM2 () : BOOLEAN ; |
| 845 |
|
| 846 |
|
| 847 |
(* |
| 848 |
GetPIM3 - return TRUE if -fpim3 was present on the command line. |
| 849 |
*) |
| 850 |
|
| 851 |
PROCEDURE GetPIM3 () : BOOLEAN ; |
| 852 |
|
| 853 |
|
| 854 |
(* |
| 855 |
GetPIM4 - return TRUE if -fpim4 was present on the command line. |
| 856 |
*) |
| 857 |
|
| 858 |
PROCEDURE GetPIM4 () : BOOLEAN ; |
| 859 |
|
| 860 |
|
| 861 |
(* |
| 862 |
GetPositiveModFloor - return TRUE if -fpositive-mod-floor was present |
| 863 |
on the command line. |
| 864 |
*) |
| 865 |
|
| 866 |
PROCEDURE GetPositiveModFloor () : BOOLEAN ; |
| 867 |
|
| 868 |
|
| 869 |
(* |
| 870 |
GetFloatValueCheck - return TRUE if -ffloatvalue was present on the |
| 871 |
command line. |
| 872 |
*) |
| 873 |
|
| 874 |
PROCEDURE GetFloatValueCheck () : BOOLEAN ; |
| 875 |
|
| 876 |
|
| 877 |
(* |
| 878 |
SetFloatValueCheck - set depending upon the -ffloatvalue. |
| 879 |
*) |
| 880 |
|
| 881 |
PROCEDURE SetFloatValueCheck (value: BOOLEAN) ; |
| 882 |
|
| 883 |
|
| 884 |
(* |
| 885 |
GetWholeValueCheck - return TRUE if -fwholevalue was present on the |
| 886 |
command line. |
| 887 |
*) |
| 888 |
|
| 889 |
PROCEDURE GetWholeValueCheck () : BOOLEAN ; |
| 890 |
|
| 891 |
|
| 892 |
(* |
| 893 |
SetWholeValueCheck - set depending upon the -fwholevalue. |
| 894 |
*) |
| 895 |
|
| 896 |
PROCEDURE SetWholeValueCheck (value: BOOLEAN) ; |
| 897 |
|
| 898 |
|
| 899 |
(* |
| 900 |
SetWall - set all warnings to, value. |
| 901 |
*) |
| 902 |
|
| 903 |
PROCEDURE SetWall (value: BOOLEAN) ; |
| 904 |
|
| 905 |
|
| 906 |
(* |
| 907 |
SetSaveTemps - turn on/off -save-temps. |
| 908 |
*) |
| 909 |
|
| 910 |
PROCEDURE SetSaveTemps (value: BOOLEAN) ; |
| 911 |
|
| 912 |
|
| 913 |
(* |
| 914 |
SetSaveTempsDir - turn on/off -save-temps specifying the |
| 915 |
directory. |
| 916 |
*) |
| 917 |
|
| 918 |
PROCEDURE SetSaveTempsDir (arg: ADDRESS) ; |
| 919 |
|
| 920 |
|
| 921 |
(* |
| 922 |
GetSaveTempsDir - return SaveTempsDir or NIL if -save-temps was not used. |
| 923 |
*) |
| 924 |
|
| 925 |
PROCEDURE GetSaveTempsDir () : String ; |
| 926 |
|
| 927 |
|
| 928 |
(* |
| 929 |
SetDumpDir - Specify dump dir. |
| 930 |
*) |
| 931 |
|
| 932 |
PROCEDURE SetDumpDir (arg: ADDRESS) ; |
| 933 |
|
| 934 |
|
| 935 |
(* |
| 936 |
GetDumpDir - return DumpDir or NIL. |
| 937 |
*) |
| 938 |
|
| 939 |
PROCEDURE GetDumpDir () : String ; |
| 940 |
|
| 941 |
|
| 942 |
(* |
| 943 |
SetGenModuleList - set the GenModuleList flag to value and pass |
| 944 |
set GenModuleListFilename to filename. |
| 945 |
*) |
| 946 |
|
| 947 |
PROCEDURE SetGenModuleList (value: BOOLEAN; filename: ADDRESS) ; |
| 948 |
|
| 949 |
|
| 950 |
(* |
| 951 |
GetGenModuleFilename - returns the filename set by SetGenModuleList. |
| 952 |
*) |
| 953 |
|
| 954 |
PROCEDURE GetGenModuleFilename () : String ; |
| 955 |
|
| 956 |
|
| 957 |
(* |
| 958 |
SetShared - sets the SharedFlag to value. |
| 959 |
*) |
| 960 |
|
| 961 |
PROCEDURE SetShared (value: BOOLEAN) ; |
| 962 |
|
| 963 |
|
| 964 |
(* |
| 965 |
SetUninitVariableChecking - sets the UninitVariableChecking flag to value |
| 966 |
or UninitVariableConditionalChecking to value. |
| 967 |
Arg can be "known", "known,cond", "cond,known" |
| 968 |
or "all". |
| 969 |
*) |
| 970 |
|
| 971 |
PROCEDURE SetUninitVariableChecking (value: BOOLEAN; arg: ADDRESS) : INTEGER ; |
| 972 |
|
| 973 |
|
| 974 |
(* |
| 975 |
SetCaseEnumChecking - sets the CaseEnumChecking to value. |
| 976 |
*) |
| 977 |
|
| 978 |
PROCEDURE SetCaseEnumChecking (value: BOOLEAN) ; |
| 979 |
|
| 980 |
|
| 981 |
(* |
| 982 |
SetDebugBuiltins - sets the DebugBuiltins to value. |
| 983 |
*) |
| 984 |
|
| 985 |
PROCEDURE SetDebugBuiltins (value: BOOLEAN) ; |
| 986 |
|
| 987 |
|
| 988 |
(* |
| 989 |
SetIBMLongDouble - enable/disable LONGREAL to map onto the |
| 990 |
IBM long double 128 bit data type. |
| 991 |
(Only available on the ppc). |
| 992 |
*) |
| 993 |
|
| 994 |
PROCEDURE SetIBMLongDouble (value: BOOLEAN) ; |
| 995 |
|
| 996 |
|
| 997 |
(* |
| 998 |
GetIBMLongDouble - return the value of IBMLongDouble. |
| 999 |
*) |
| 1000 |
|
| 1001 |
PROCEDURE GetIBMLongDouble () : BOOLEAN ; |
| 1002 |
|
| 1003 |
|
| 1004 |
(* |
| 1005 |
SetIEEELongDouble - enable/disable LONGREAL to map onto the |
| 1006 |
IEEE long double 128 bit data type. |
| 1007 |
(Only available on the ppc). |
| 1008 |
*) |
| 1009 |
|
| 1010 |
PROCEDURE SetIEEELongDouble (value: BOOLEAN) ; |
| 1011 |
|
| 1012 |
|
| 1013 |
(* |
| 1014 |
GetIEEELongDouble - return the value of IEEELongDouble. |
| 1015 |
*) |
| 1016 |
|
| 1017 |
PROCEDURE GetIEEELongDouble () : BOOLEAN ; |
| 1018 |
|
| 1019 |
|
| 1020 |
(* |
| 1021 |
GetDumpDeclFilename - returns the DumpLangDeclFilename. |
| 1022 |
*) |
| 1023 |
|
| 1024 |
PROCEDURE GetDumpDeclFilename () : String ; |
| 1025 |
|
| 1026 |
|
| 1027 |
(* |
| 1028 |
SetDumpDeclFilename - set DumpDeclFilename to filename. |
| 1029 |
*) |
| 1030 |
|
| 1031 |
PROCEDURE SetDumpDeclFilename (value: BOOLEAN; filename: ADDRESS) ; |
| 1032 |
|
| 1033 |
|
| 1034 |
(* |
| 1035 |
GetDumpQuadFilename - returns the DumpQuadFilename. |
| 1036 |
*) |
| 1037 |
|
| 1038 |
PROCEDURE GetDumpQuadFilename () : String ; |
| 1039 |
|
| 1040 |
|
| 1041 |
(* |
| 1042 |
SetDumpQuadFilename - set DumpQuadFilename to filename. |
| 1043 |
*) |
| 1044 |
|
| 1045 |
PROCEDURE SetDumpQuadFilename (value: BOOLEAN; filename: ADDRESS) ; |
| 1046 |
|
| 1047 |
|
| 1048 |
(* |
| 1049 |
GetDumpGimpleFilename - returns the DumpGimpleFilename. |
| 1050 |
*) |
| 1051 |
|
| 1052 |
PROCEDURE GetDumpGimpleFilename () : String ; |
| 1053 |
|
| 1054 |
|
| 1055 |
(* |
| 1056 |
SetDumpGimpleFilename - set DumpGimpleFilename to filename. |
| 1057 |
*) |
| 1058 |
|
| 1059 |
PROCEDURE SetDumpGimpleFilename (value: BOOLEAN; filename: ADDRESS) ; |
| 1060 |
|
| 1061 |
|
| 1062 |
(* |
| 1063 |
SetM2DumpFilter - sets the filter to a comma separated list of procedures |
| 1064 |
and modules. |
| 1065 |
*) |
| 1066 |
|
| 1067 |
PROCEDURE SetM2DumpFilter (value: BOOLEAN; filter: ADDRESS) ; |
| 1068 |
|
| 1069 |
|
| 1070 |
(* |
| 1071 |
GetM2DumpFilter - returns the dump filter. |
| 1072 |
*) |
| 1073 |
|
| 1074 |
PROCEDURE GetM2DumpFilter () : ADDRESS ; |
| 1075 |
|
| 1076 |
|
| 1077 |
(* |
| 1078 |
SetM2Dump - sets the dump via a comma separated list: quad,decl,gimple,all. |
| 1079 |
*) |
| 1080 |
|
| 1081 |
PROCEDURE SetM2Dump (value: BOOLEAN; filter: ADDRESS) : BOOLEAN ; |
| 1082 |
|
| 1083 |
|
| 1084 |
(* |
| 1085 |
GetDumpGimple - return TRUE if the dump gimple flag is set from SetM2Dump. |
| 1086 |
*) |
| 1087 |
|
| 1088 |
PROCEDURE GetDumpGimple () : BOOLEAN ; |
| 1089 |
|
| 1090 |
|
| 1091 |
(* |
| 1092 |
GetDumpQuad - return TRUE if the dump quad flag is set from SetM2Dump. |
| 1093 |
*) |
| 1094 |
|
| 1095 |
PROCEDURE GetDumpQuad () : BOOLEAN ; |
| 1096 |
|
| 1097 |
|
| 1098 |
(* |
| 1099 |
GetDumpDecl - return TRUE if the dump quad flag is set from SetM2Dump. |
| 1100 |
*) |
| 1101 |
|
| 1102 |
PROCEDURE GetDumpDecl () : BOOLEAN ; |
| 1103 |
|
| 1104 |
|
| 1105 |
(* |
| 1106 |
GetDebugTraceQuad - return DebugTraceQuad. |
| 1107 |
*) |
| 1108 |
|
| 1109 |
PROCEDURE GetDebugTraceQuad () : BOOLEAN ; |
| 1110 |
|
| 1111 |
|
| 1112 |
(* |
| 1113 |
GetDebugTraceTree - return DebugTraceTree. |
| 1114 |
*) |
| 1115 |
|
| 1116 |
PROCEDURE GetDebugTraceTree () : BOOLEAN ; |
| 1117 |
|
| 1118 |
|
| 1119 |
(* |
| 1120 |
GetDebugTraceToken - return DebugTraceToken. |
| 1121 |
*) |
| 1122 |
|
| 1123 |
PROCEDURE GetDebugTraceToken () : BOOLEAN ; |
| 1124 |
|
| 1125 |
|
| 1126 |
(* |
| 1127 |
GetDebugTraceLine - return DebugTraceLine. |
| 1128 |
*) |
| 1129 |
|
| 1130 |
PROCEDURE GetDebugTraceLine () : BOOLEAN ; |
| 1131 |
|
| 1132 |
|
| 1133 |
(* |
| 1134 |
GetDebugFunctionLineNumbers - return DebugFunctionLineNumbers. |
| 1135 |
*) |
| 1136 |
|
| 1137 |
PROCEDURE GetDebugFunctionLineNumbers () : BOOLEAN ; |
| 1138 |
|
| 1139 |
|
| 1140 |
(* |
| 1141 |
GetEnableForward - return EnableForward. |
| 1142 |
*) |
| 1143 |
|
| 1144 |
PROCEDURE GetEnableForward () : BOOLEAN ; |
| 1145 |
|
| 1146 |
|
| 1147 |
(* |
| 1148 |
SetEnableForward - set EnableForward to value. |
| 1149 |
*) |
| 1150 |
|
| 1151 |
PROCEDURE SetEnableForward (value: BOOLEAN) ; |
| 1152 |
|
| 1153 |
|
| 1154 |
(* |
| 1155 |
SetFileOffsetBits - set the number of bits used by SYSTEM.COFF_T to bits. |
| 1156 |
*) |
| 1157 |
|
| 1158 |
PROCEDURE SetFileOffsetBits (value: BOOLEAN; bits: CARDINAL) : BOOLEAN ; |
| 1159 |
|
| 1160 |
|
| 1161 |
(* |
| 1162 |
GetFileOffsetBits - return the number of bits used by SYSTEM.COFF_T. |
| 1163 |
*) |
| 1164 |
|
| 1165 |
PROCEDURE GetFileOffsetBits () : CARDINAL ; |
| 1166 |
|
| 1167 |
|
| 1168 |
(* |
| 1169 |
FinaliseOptions - once all options have been parsed we set any inferred |
| 1170 |
values. |
| 1171 |
*) |
| 1172 |
|
| 1173 |
PROCEDURE FinaliseOptions ; |
| 1174 |
|
| 1175 |
|
| 1176 |
END M2Options. |