From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E020A385DC07; Fri, 14 Jan 2022 15:05:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E020A385DC07 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/104030] [12 Regression] -Wbidi-chars should not warn about UCNs Date: Fri, 14 Jan 2022 15:05:53 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: preprocessor X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.0 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jan 2022 15:05:54 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104030 --- Comment #4 from Marek Polacek --- (In reply to Jakub Jelinek from comment #2) > Either we drop the UCN support altogether, or make -Wbidi-chars a 2 level > warning, -Wbidi-chars mapping to -Wbidi-chars=3D1 which doesn't warn about > UCNs and > -Wbidi-chars=3D2 that does. Exactly. Except I'm not sure how well that will play with the rest of the -Wbidi-chars=3D suboptions. :/ Like, -Wbidi-chars=3Dany -Wbidi-chars=3D2 should probably warn about any bidi chars, including UCNs, but the latter option might cause it to be just -Wbidi-chars=3Dunpaired, but warn about UC= Ns.=