From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 97912384F02F; Sat, 12 Nov 2022 08:50:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 97912384F02F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668243021; bh=2MNWLmWVMxWriG413jXQrs7IpL4Wt/bx76BUg9m7UOo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=plC+IPqWNngMHpCXIQp4mgPD3z27ZmIuU+P9kptQWlbjOtuvf5apjwCO1fTxlyFDO ti00GEWKiNryo8WY332Vgb2ed1raYzrwYmwDY8QfVSW9B3SvjcNJm3NG86pV2ISvYA Oyt06Ja8yfu89+e49zV3h6zwy90cOxTlgYLfzzG8= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgomp/107641] [13 Regression] libgomp/env.c:286:20: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] Date: Sat, 12 Nov 2022 08:50:21 +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: build X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub 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=3D107641 --- Comment #3 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:2a193e9df82917eaf440a20f99a3febe91dcb5fe commit r13-3927-g2a193e9df82917eaf440a20f99a3febe91dcb5fe Author: Jakub Jelinek Date: Sat Nov 12 09:47:50 2022 +0100 libgomp: Fix up build on mingw [PR107641] Pointers should be first casted to intptr_t/uintptr_t before casting them to another integral type to avoid warnings. Furthermore, the function has code like else if (upper <=3D UINT_MAX) something; else something_else; so it seems using unsigned type for upper where upper <=3D UINT_MAX is = always true is not intended. 2022-11-12 Jakub Jelinek PR libgomp/107641 * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rath= er than unsigned long. Change type of upper from unsigned to unsigned long.=