From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4624D3858D20; Tue, 29 Nov 2022 19:00:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4624D3858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669748440; bh=o0x9LE+IRPUvBPf69OeoTq8S1Q68ddJTQkD7KkybWFQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=b6d6niyxz7Qd4kRrU+uNQJxA97lY9xY7f0SVFkOdt0IC9sD/vqrP9pR+SammZN20U ikzptw3ZCWmBEAkrGguNgXbhb+IfjsO4+lrYmWS+HnBKByh7ZXirjuNuCdCETZlLB0 8BxAOUgLHwkU09YIlWrCtuZ/pE6gfuVIHAnK0G1E= From: "pinskia at gcc dot gnu.org" 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 19:00:40 +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: pinskia at gcc dot gnu.org 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 #9 from Andrew Pinski --- (In reply to James Hilliard from comment #7) > 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); > | ^~~~~~~~~~~ That warning is correct and is a bug in the test program ...=