From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 44E673858D39; Wed, 8 Feb 2023 15:18:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 44E673858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675869510; bh=o+XXzxIdNGKKgCy4C4nbFqJMlP3yaw1hdhIdiIQRm4k=; h=From:To:Subject:Date:In-Reply-To:References:From; b=PXYK5Oa7K2VkwfEY5gcz7P8YYqtjxm/8rkFIYuh18u9Sez0Q/mH/2NYslfWw+M+lf agu9RP7OKGKRVJCXqkjo2f/6T0BtY/w7d1jJ5BqwEKMtF8gwqc77eOUdSr+sE65xDW t/SGnMRqMGZH9aeVC0oQdWQfot4h5JYOLlV2TfUk= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/108695] [13 Regression] Wrong code since r13-5215-gb1f30bf42d8d47 for dd_rescue package Date: Wed, 08 Feb 2023 15:18:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: lto, needs-reduction, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status 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=3D108695 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|WAITING |RESOLVED --- Comment #10 from Martin Li=C5=A1ka --- > where the XOR16 is implemented as: >=20 > #define XORN(in1,in2,out,len) \ > do { \ > uint _i; \ > for (_i =3D 0; _i < len/sizeof(ulong); ++_i) \ > *((ulong*)(out)+_i) =3D *((ulong*)(in1)+_i) ^ *((ulong*)(in2)+_i); \ > } while(0) I can confirm that changing that to: #define XORN(in1, in2, out, len) \ do \ { \ uint _i; \ for (_i =3D 0; _i < len; ++_i) \ *(out + _i) =3D *(in1 + _i) ^ *(in2 + _i); \ } while (0) fixes the problem. It seems very close to what I saw here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83201#c13=