diff options
author | Gaius Mulley <gaiusmod2@gmail.com> | 2024-04-09 02:35:11 +0100 |
---|---|---|
committer | Gaius Mulley <gaiusmod2@gmail.com> | 2024-04-09 02:35:11 +0100 |
commit | 600bf396799a022e65938de572ad1a79a951b95a (patch) | |
tree | d6a993ca3e967e7a046c295bf7caf469921a5d16 /gcc/m2 | |
parent | 45532e3a929d2893b3efd26beefb1162e50cb51b (diff) | |
download | gcc-600bf396799a022e65938de572ad1a79a951b95a.zip gcc-600bf396799a022e65938de572ad1a79a951b95a.tar.gz gcc-600bf396799a022e65938de572ad1a79a951b95a.tar.bz2 |
PR modula2/114648 cc1gm2 by default does not handle C pre-processor file and line directives
This patch fixes the default behavior of cc1gm2 to the description in
the documentation. By default cc1gm2 will allow C preprocessor
directives (they can be turned off via -fno-cpp).
gcc/m2/ChangeLog:
PR modula2/114648
* gm2-compiler/M2Options.mod (LineDirectives): Initially
set to true.
gcc/testsuite/ChangeLog:
PR modula2/114648
* gm2/cpp/default/pass/AdvParse.def: New test.
* gm2/cpp/default/pass/AdvParse.mod: New test.
* gm2/cpp/default/pass/cpp-default-pass.exp: New test.
Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
Diffstat (limited to 'gcc/m2')
-rw-r--r-- | gcc/m2/gm2-compiler/M2Options.mod | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/m2/gm2-compiler/M2Options.mod b/gcc/m2/gm2-compiler/M2Options.mod index 09d62cb..d04cded 100644 --- a/gcc/m2/gm2-compiler/M2Options.mod +++ b/gcc/m2/gm2-compiler/M2Options.mod @@ -1944,7 +1944,7 @@ BEGIN ReturnChecking := FALSE ; CaseElseChecking := FALSE ; CPreProcessor := FALSE ; - LineDirectives := FALSE ; + LineDirectives := TRUE ; ExtendedOpaque := FALSE ; UnboundedByReference := FALSE ; VerboseUnbounded := FALSE ; |