https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117942
--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by Marek Polacek <mpola...@gcc.gnu.org>: https://gcc.gnu.org/g:3454cca24a92a535a46fe4ec9d5d41585002fc4b commit r14-11087-g3454cca24a92a535a46fe4ec9d5d41585002fc4b Author: Marek Polacek <pola...@redhat.com> Date: Mon Dec 9 08:19:35 2024 -0500 driver: fix crash with --diagnostics-plain-output [PR117942] We are crashing here because decode_cmdline_options_to_array has: if (!strcmp (opt, "-fdiagnostics-plain-output")) ... but that doesn't handle the '--FLAG' variant. PR driver/117942 gcc/ChangeLog: * opts-common.cc (decode_cmdline_options_to_array): Also detect --diagnostics-plain-output. Reviewed-by: Joseph Myers <josmy...@redhat.com> (cherry picked from commit be2062be9a629ae18a0c87c6b9cbe1885978417e)