From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5BF3A3858C2F; Mon, 17 Apr 2023 15:23:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5BF3A3858C2F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681744988; bh=JI/bZgP7j+OgcRu3Wx6OYE/vagZ6IHmRbh8kSrkV0Xk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qquNZt3J0WnKVAPT92NjwzKVf0+JggZqTRFtb5J2YC8P1Bl3g9iNzn//9/69QWwem cvmJFt8dpPGZHu3izcU+pa5DCojEU97hN6t54bBL/ZhJWhbSsUU+uj26FEcNrCfmEk 3hnYKn4yhMR6azk7ncR1KUbIfqCeY1yef9TA/7I8= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgomp/107041] [13/14 Regression] C '-Wenum-int-mismatch' diagnostic for OpenACC 'acc_on_device' Date: Mon, 17 Apr 2023 15:23:07 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgomp X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: diagnostic, openacc X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub 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: 13.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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107041 --- Comment #3 from Jakub Jelinek --- If this is really just because it is a builtin, I think another possibility would be make it BT_FN_INT_VAR instead of BT_FN_INT_INT and verify it has just one argument which is either int or the particularly named enum say in builtins.cc folding or = so.=