]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR modula2/118761: gm2 driver doesnt behave as gcc for -fhelp=BLA
authorGaius Mulley <gaiusmod2@gmail.com>
Tue, 11 Feb 2025 01:26:43 +0000 (01:26 +0000)
committerGaius Mulley <gaiusmod2@gmail.com>
Tue, 11 Feb 2025 01:26:43 +0000 (01:26 +0000)
commit3c5422e719d1fbabccaa9b63605171ea8bdfe57e
tree4cb9730c1494333982b9bcd7abbd8c0c7f001e8c
parenta7ccad4a2e08651fbf3628a45cd1d06785192a79
PR modula2/118761: gm2 driver doesnt behave as gcc for -fhelp=BLA

This patch enables the gm2 driver to handle -fsyntax-only -fhelp=optimizers,
for example, correctly without terminating with gm2: fatal error:
no input files.

gcc/m2/ChangeLog:

PR modula2/118761
* gm2spec.cc (lang_specific_driver): Add case clauses for
OPT__help, OPT__help_ set in_added_libraries to 0 and early
return.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
gcc/m2/gm2spec.cc