https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102343

--- Comment #2 from Iain Sandoe <iains at gcc dot gnu.org> ---
Created attachment 54289
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54289&action=edit
Patch for discussion

This applies on top of the patch for PR108182 (and will most likely not work
without those changes).

 * -save-temps* should be fixed
 * we no longer try to write those files into the install directories
 * we should now support " gm2 -E .... "
 * renamed the pre-processed file extension to ".m2i" we cannot use ".i" or GCC
will try to process it with cc1.
 * We now have default handers for .mod and .m2i (maybe we should add .def is
that something used stand-alone?) So trying to use them with a compiler without
modula-2 should give a more sensible diagnostic.
 * we should handle " gm2 foo.mod.m2i "
 * last, but most important, we now collect the command line options needed to
set the target state into the preprocessor command line.  This then provides
the correct pre-defines and the test case then does the right thing on a 32b
multilib on a 64b host.

If there are no comments in the next week or so I'll post this to the list.

Reply via email to