From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D1DE83858C50; Tue, 13 Feb 2024 15:19:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D1DE83858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707837542; bh=N8t1nP9B1lXHficZd+7an89ERrJ3e8ZFNpJExuFKTso=; h=From:To:Subject:Date:In-Reply-To:References:From; b=mmCIBKCMW6t3+cpnNdO33bqtztORsR4Ne1uUOiK9BJIG9AfAU5VxbDyMD/r8ZEgla Us+FCPAaw+er/AkDhP9z3ILrgU1XXjNOI7/7HWrJB1a7ob1uYXi8cJPy6HeptTQmEq PCBCeJvdhmXaKS8NDMeT2pWrRfQqHj6tp7s8XleM= From: "sjames at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/113907] [14 regression] ICU miscompiled since on x86 since r14-5109-ga291237b628f41 Date: Tue, 13 Feb 2024 15:19:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sjames 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: 14.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=3D113907 --- Comment #16 from Sam James --- (In reply to Jakub Jelinek from comment #14 > So it certainly doesn't surprise me some length < 8 check is optimized aw= ay > given the above range info. The question is if it is correct and what > values the length actually get at runtime if you e.g. compile with -O0. (gdb) b uprv_copyArray16 Breakpoint 1 at 0xf770e71b: file udataswp.cpp, line 147. (gdb) b uprv_copyArray64 Breakpoint 2 at 0xf770e7ba: file udataswp.cpp, line 164. (gdb) r Breakpoint 1, uprv_copyArray16 (ds=3D0x5655e4f0, inData=3D0xf32a4010, lengt= h=3D2, outData=3D0xf7f24094, pErrorCode=3D0xffffc47c) at udataswp.cpp:147 147 if(pErrorCode=3D=3Dnullptr || U_FAILURE(*pErrorCode)) { (gdb) c Continuing. Breakpoint 1, uprv_copyArray16 (ds=3D0x5655e4f0, inData=3D0xf32a4014, lengt= h=3D4, outData=3D0xf7f24098, pErrorCode=3D0xffffc47c) at udataswp.cpp:147 147 if(pErrorCode=3D=3Dnullptr || U_FAILURE(*pErrorCode)) { (gdb) c Continuing. [Inferior 1 (process 2861598) exited normally] (gdb) Oops.=