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

            Bug ID: 108182
           Summary: gm2 driver mishandles target and multilib options
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: modula2
          Assignee: gaius at gcc dot gnu.org
          Reporter: iains at gcc dot gnu.org
  Target Milestone: ---

The language_specific_driver for modula 2 is treating every command-line option
beginning with '-m' as a multilib specifier, also expecting that the following
characters are the name of the multilib_os_dir.

This is not correct:
 1. there are many other target options beginning with '-m' (e.g. -march=)

 2. the characters following -m are not usually the multilib_os_dir.

The language_specific_driver code needs to translate the command line options
appropriately to determine the multilib_os_dir (there is code that does this in
gcc/gcc.cc)

Reply via email to