From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A313E3858D38; Thu, 26 Jan 2023 12:47:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A313E3858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674737255; bh=bNR/rBvDzyY6gCCzORR5U+M+TuyFjyswcrumzx0zGs4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=N0/DJilBf0DeSmY47cMiqp/K9jdG4XthlzMh2sEpLDCcsyP5Aqs71i3n6yFjUqBa5 f1uemQxFiFTeELo543vd+pZqvBNadQYEWQn6jSIxTKSLSnLwhMwguA6BpRu21lj+mD IyY0C0EHqP/7Fp6oXcyhSX6aFdzAavllc6ehjpkc= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug modula2/108553] GM2 ICEs on mistyped command line options Date: Thu, 26 Jan 2023 12:47:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: modula2 X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: iains at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108553 --- Comment #4 from Richard Biener --- (In reply to Iain Sandoe from comment #3) > I'm trying to reproduce this - in the meantime does the obvious fix solve > the problem for you? >=20 > diff --cc gcc/m2/gm2-lang.cc > index 4d9cae205a7,4d9cae205a7..a30e626620c > --- a/gcc/m2/gm2-lang.cc > +++ b/gcc/m2/gm2-lang.cc > @@@ -290,12 -290,12 +290,9 @@@ gm2_langhook_init_options (unsigned in > M2Options_SetVerbose (value); > /* FALLTHROUGH */ > default: > ++ /* We handled input files above. */ > if (code >=3D N_OPTS) > -- { > -- // FIXME remove debug. > -- fprintf(stderr, "%s : %s\n", opt, (arg ? arg : "")); > -- break; > -- } > ++ break; > /* Do not pass Modula-2 args to the preprocessor, any that we c= are > about here should already have been handled above. */ > if (option->flags & CL_ModulaX2) Yes, that fixes the ICE and produces cc1gm2: error: unrecognized command-line option '-Wereturn-type' btw, the 'opt' variable is unused after the removal=