]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fixes to allow -fcpp and regression test link changes.
authorGaius Mulley <gaius.mulley@southwales.ac.uk>
Sun, 26 Jun 2022 12:50:27 +0000 (13:50 +0100)
committerGaius Mulley <gaius.mulley@southwales.ac.uk>
Sun, 26 Jun 2022 12:50:27 +0000 (13:50 +0100)
commit60bd34a45bfed0da9605606a5596b96d8f13e5cb
treef3e35cfecd6dbfef351b56a16b07243a8a0d1756
parent6c02f7ca5c93f4ea57fb7701b5daebc9e5cd3e94
Fixes to allow -fcpp and regression test link changes.

This patch fixes (re-introduces) the -fcpp option and it
migrates more testsuite tcl files to use the new linking mechanism.

2022-06-26  Gaius Mulley  <gaius.mulley@southwales.ac.uk>

gcc/m2/ChangeLog:

* bnf/gm2l.bnf (ScanArgs): -fcppbegin changed to -fcpp-begin.
* gm2-compiler/M2DriverOptions.mod (ScanCppArgs):
-fcppbegin changed to -fcpp-begin, -fcppend changed to
-fcpp-end.
* gm2-compiler/M2GenGCC.mod (CodeFinallyEnd): Check
we are compiling the main module before generating
the scaffold.
* gm2-compiler/M2Options.mod (CppRemember): -fcppbegin
changed to -fcpp-begin.  (CppArg) -fcppbegin
changed to -fcpp-begin, -fcppend changed to -fcpp-end.
-fcppprog changed to -fcpp-prog.
* gm2-compiler/P2SymBuild.mod (BlockEnd): Added assert.
(PopBlock) bug fix, curModuleSym is popped in
correct sequence.
* gm2-lang.cc (gm2_langhook_init_options):
-fcppbegin changed to -fcpp-begin.  -fcppend changed to
-fcpp-end.  -fcppprog changed to -fcpp-prog.
* gm2spec.cc (get_libexec):  New function.
(gen_gm2_libexec) New function.  (add_exec_dir) New function.
(lang_register_spec_functions) add exec_prefix.
* lang-specs.h: -fcppbegin changed to -fcpp-begin.
-fcppend changed to -fcpp-end.
* lang.opt: Uniform internal switch statement used
where necessary.  -fcppbegin changed to -fcpp-begin.
-fcppend changed to -fcpp-end.  -fcppprog= changed to -fcpp-prog=.

libgm2/Changelog:

* libm2iso/m2rts.h: (New file).

Signed-off-by: Gaius Mulley <gaius.mulley@southwales.ac.uk>
28 files changed:
gcc/m2/bnf/gm2l.bnf
gcc/m2/gm2-compiler/M2DriverOptions.mod
gcc/m2/gm2-compiler/M2GenGCC.mod
gcc/m2/gm2-compiler/M2Options.mod
gcc/m2/gm2-compiler/P2SymBuild.mod
gcc/m2/gm2-lang.cc
gcc/m2/gm2spec.cc
gcc/m2/lang-specs.h
gcc/m2/lang.opt
gcc/testsuite/gm2/coroutines/pim/run/pass/coroutines-pim-run-pass.exp
gcc/testsuite/gm2/exceptions/run/pass/exceptions-run-pass.exp
gcc/testsuite/gm2/extensions/run/fail/extensions-run-fail.exp
gcc/testsuite/gm2/extensions/run/pass/extensions-run-pass.exp
gcc/testsuite/gm2/iso/run/pass/iso-run-pass.exp
gcc/testsuite/gm2/pim/options/optimize/run/pass/pim-options-optimize-run-pass.exp
gcc/testsuite/gm2/pimcoroutines/run/pass/pimcoroutines-run-pass.exp
gcc/testsuite/gm2/pimlib/base/run/pass/pimlib-base-run-pass.exp
gcc/testsuite/gm2/pimlib/logitech/run/pass/pimlib-logitech-run-pass.exp
gcc/testsuite/gm2/pimlib/run/pass/pimlib-run-pass.exp
gcc/testsuite/gm2/quads/run/pass/quads-run-pass.exp
gcc/testsuite/gm2/sets/run/pass/sets-run-pass.exp
gcc/testsuite/gm2/switches/check-all/run/fail/switches-check-all-run-fail.exp
gcc/testsuite/gm2/switches/check-all/run/pass/switches-check-all-run-pass.exp
gcc/testsuite/gm2/switches/iso/run/pass/switches-iso-run-pass.exp
gcc/testsuite/gm2/switches/makeall/pass/switches-makeall-pass.exp
gcc/testsuite/gm2/switches/pim2/run/pass/switches-pim2-run-pass.exp
gcc/testsuite/gm2/types/run/pass/types-run-pass.exp
libgm2/libm2iso/m2rts.h [new file with mode: 0644]