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