]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR modula2/114648 cc1gm2 by default does not handle C pre-processor file and line...
authorGaius Mulley <gaiusmod2@gmail.com>
Tue, 9 Apr 2024 01:35:11 +0000 (02:35 +0100)
committerGaius Mulley <gaiusmod2@gmail.com>
Tue, 9 Apr 2024 01:35:11 +0000 (02:35 +0100)
commit600bf396799a022e65938de572ad1a79a951b95a
treed6a993ca3e967e7a046c295bf7caf469921a5d16
parent45532e3a929d2893b3efd26beefb1162e50cb51b
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>
gcc/m2/gm2-compiler/M2Options.mod
gcc/testsuite/gm2/cpp/default/pass/AdvParse.def [new file with mode: 0644]
gcc/testsuite/gm2/cpp/default/pass/AdvParse.mod [new file with mode: 0644]
gcc/testsuite/gm2/cpp/default/pass/cpp-default-pass.exp [new file with mode: 0644]