From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 37C1A3858402; Fri, 1 Mar 2024 15:52:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 37C1A3858402 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709308374; bh=hdJ8QuVJZUePxYgZ2ahNnZgY5CS88A0hR75jyUQQeJs=; h=From:To:Subject:Date:From; b=iZc1mSLpdPzF2xp62xQBwgdSW4tNf+7eTbxTYufKmE0iW9rpbcF6xWmT7qLu1FnZI YvVyGn95mupkNvdMMTKWYRKMgNk6GzF64rLglOOkzRDKMfKSSEdOrit7FLYH5qabRl 9m7RKsQm5vWG1GReU141CynoDP5EgqDHHpZx1vzA= From: "gjl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/114191] New: Flags "Warning" and "Target" don't mix well in target.opt files Date: Fri, 01 Mar 2024 15:52:53 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 13.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gjl at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned 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=3D114191 Bug ID: 114191 Summary: Flags "Warning" and "Target" don't mix well in target.opt files Product: gcc Version: 13.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: gjl at gcc dot gnu.org Target Milestone: --- In an .opt file, a backend can define target-specific diagnostic options, f= or example gcc/config/avr/avr.opt has: Wmisspelled-isr Warning C C++ Var(avr_warn_misspelled_isr) Init(1) Warn if the ISR is misspelled, ... This is a "Target" option however (so it should be listed with --help=3Dtar= get, which it currently is not). However, specifying the "Target" flag in avr.opt makes the option no more recognizable: $ avr-gcc main.c -c -Wall -Wmisspelled-isr cc1: error: unrecognized command-line option '-Wmisspelled-isr' I can reproduce this for target avr, but it likely affects all other target= s as well. Set the component to "other". As it appears, there is no bugzilla component= for such internal problems.=