]> gcc.gnu.org Git - gcc.git/commit
Remove m2 front end linking support.
authorGaius Mulley <gaius.mulley@southwales.ac.uk>
Thu, 7 Jul 2022 14:57:13 +0000 (15:57 +0100)
committerGaius Mulley <gaius.mulley@southwales.ac.uk>
Thu, 7 Jul 2022 14:57:13 +0000 (15:57 +0100)
commitbd2f92560f47aae35041e9ec97093dc827197ab4
tree2fd97e450c652b5042bfd9baa5558783af747e96
parentd0e4bdcd7952930e9e542389fc19b5cbcf4b5ef2
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>
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
This page took 0.062065 seconds and 5 git commands to generate.