]> git.ipfire.org Git - thirdparty/gcc.git/commit
Remove m2 front end linking support.
authorGaius Mulley <gaius.mulley@southwales.ac.uk>
Mon, 30 May 2022 20:05:35 +0000 (21:05 +0100)
committerGaius Mulley <gaius.mulley@southwales.ac.uk>
Mon, 30 May 2022 20:05:35 +0000 (21:05 +0100)
commit5eb238ce0b2dcbcb0737def243c9d18651270363
tree114a32353df6728632b0a1cc6fd403fd6807711d
parent622a723be0a71fdc2602882d07e8b00e37ad00fb
Remove m2 front end linking support.

2022-05-30  Gaius Mulley  <gaius.mulley@southwales.ac.uk>

All m2 linking assistance by the Modula-2 front end is disabled.
cc1gm2 handles the -c option but currently does nothing with the option.
New gcc/testsuite/gm2/link/externalscaffold added to check the compiler
can link trivial application against a hand built scaffold.

gcc/testsuite/gm2/ChangeLog:

* link/externalscaffold: (New regression test).  Manual linking
test using external scaffold.

gcc/m2/ChangeLog:

* gm2-compiler/M2Options.def (cflag): New boolean.
(Setc) New procedure.  (Getc) New procedure function.
* gm2-compiler/M2Options.mod (Setc): New procedure.
(Getc) New procedure function.  Initialize cflag to
FALSE.
* gm2-gcc/m2options.h (Setc): New external function.
(Getc) New external function.
* gm2-lang.cc: Handle OPT_c and call M2Options_Setc.
* lang-specs.h: Remove all link rules for m2.
* lang.opt: Allow m2 to process the -c option.

Signed-off-by: Gaius Mulley <gaius.mulley@southwales.ac.uk>
12 files changed:
gcc/m2/ChangeLog
gcc/m2/gm2-compiler/M2Options.def
gcc/m2/gm2-compiler/M2Options.mod
gcc/m2/gm2-gcc/m2options.h
gcc/m2/gm2-lang.cc
gcc/m2/lang-specs.h
gcc/m2/lang.opt
gcc/m2/m2-link-support.h
gcc/testsuite/gm2/ChangeLog
gcc/testsuite/gm2/link/externalscaffold/pass/hello.mod [new file with mode: 0644]
gcc/testsuite/gm2/link/externalscaffold/pass/link-externalscaffold-pass.exp [new file with mode: 0644]
gcc/testsuite/gm2/link/externalscaffold/pass/scaffold.c [new file with mode: 0644]