From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E01E73858D28; Tue, 29 Nov 2022 18:57:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E01E73858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669748232; bh=Zdy7Vo/sHHLu56HqOaFwPM6ADlx/HOkyln1tNdGqp0w=; h=From:To:Subject:Date:In-Reply-To:References:From; b=B8HRifQHWIdQVMuAHs5cfYMufxArK0TfGqUAqAryL9FFM8iLCL2NWL0Er5g8FlqTb 1dMmcvtXhqes3H2JS287Q4ZlA0th6EaXrWR2KmoHMovGEZVfN423xicUIblW+8Vx5y G3mqmKWrKjeHLGvQ3TiviQLuMkBpb0hTPc8fAprw= From: "james.hilliard1 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/107846] [13 Regression] error: result of '8000 << 8' requires 22 bits to represent, but 'short int' only has 16 bits Date: Tue, 29 Nov 2022 18:57:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: james.hilliard1 at gmail dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 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=3D107846 --- Comment #7 from James Hilliard --- (In reply to Jakub Jelinek from comment #6) > Created attachment 53984 [details] > gcc13-pr107846.patch >=20 > Untested fix. This appears to fix error, the warning is still present: progs/test_tc_tunnel.c: In function '__encap_ipv4': progs/test_tc_tunnel.c:228:31: warning: taking address of packed member of 'struct v4hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] 228 | set_ipv4_csum((void *)&h_outer.ip); | ^~~~~~~~~~~=