From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 868C63858D38; Thu, 26 Jan 2023 09:46:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 868C63858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674726390; bh=fcEEM98YpENaTvbyBUuB+tGPjmGcy3wuREObEQTtQf0=; h=From:To:Subject:Date:From; b=EWjb8QWdkQ92CTVR7mHWISSo0VfrpnGwOd/qgBnytSmTCpxPTxaX5uSL84rZsEGuM 7kdYel0/kzTUpJvruwRb/z9k42kyCZAFlqxvCunmv6cdbLyBi3m9pUizMBD+kBSHLc WiT8R2b22IcZVN3ibxGL1ZERrE3L/pSDRsg4N6Ok= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug modula2/108555] New: gm2_langhook_option_lang_mask causes all (unappropriate) C language options to be recognized Date: Thu, 26 Jan 2023 09:46:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: gaius at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D108555 Bug ID: 108555 Summary: gm2_langhook_option_lang_mask causes all (unappropriate) C language options to be recognized Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: modula2 Assignee: gaius at gcc dot gnu.org Reporter: rguenth at gcc dot gnu.org Target Milestone: --- 137 static unsigned int 138 gm2_langhook_option_lang_mask (void) 139 { 140 /* We need to process some driver options and pass through some C 141 ones to build our preprocessing lines. */ 142 return CL_ModulaX2 | CL_C | CL_DRIVER; 143 } we shouldn't add CL_C here but instead replicate the needed ones in m2/lang.opt like other frontends do. This for example causes -Wreturn-type to be accepted and in the end causes PR108551 See fortran/lang.opt which for example has I=20 Fortran Joined Separate ; Documented in C=