https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118761
Bug ID: 118761
Summary: gm2 driver doesn't behave as gcc for --help=BLA
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: modula2
Assignee: gaius at gcc dot gnu.org
Reporter: dkm at gcc dot gnu.org
Target Milestone: ---
$ gm2 -fsyntax-only --help=optimizers
gm2: fatal error: no input files
compilation terminated.
But gcc gives:
$ gcc -fsyntax-only --help=optimizers
The following options control optimizations:
-O<number> Set optimization level to <number>.
-Ofast Optimize for speed disregarding exact standards
compliance.
...
Other frontends (gccrs, gfortran, g++, gdc, gccgo) behaves all like gcc.
(ga68, the to-be-merged algol68 has the same issue).