From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0487D3851C09; Sun, 28 Jun 2020 15:01:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0487D3851C09 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1593356513; bh=AZYdUi3l6Xc3KWFtI9akD7rgg1egJc56JjM529A+DnM=; h=From:To:Subject:Date:From; b=dyosjvP4zuUFezM0rXTnPBRf3JFwsSLRJ6jPrkROaylvnhfYTp1GP6IYMcb6sbQyO Fnb2y4FkxEBhIHUzCyDpYN0x2WbsdTA/ucK2zbLnQiE5b0+td/VO4EDOzJf58/fPbE 2evpW6+t6eEsy5jUK+fZMbn1OOPOI34l9ZSBpKhQ= From: "Khram at mail dot ru" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/95948] New: memmove error Date: Sun, 28 Jun 2020 15:01:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Khram at mail dot ru 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Jun 2020 15:01:53 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95948 Bug ID: 95948 Summary: memmove error Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: Khram at mail dot ru Target Milestone: --- Memmove has a mistake. Need like this: char* memmove( char *A, char *B, int L ) //! =D1=81=D1=82=D1=80=D0=B0=D0= =BD=D0=BD=D0=BE=D1=81=D1=82=D0=B8 =D0=B8=D0=B7 GCC-10.1 { char *res=3DA; if( A>B )while( L-->0 )*A++=3D*B++; else { A+=3DL; B+=3DL; while( L-->0 )*--A=3D*--B; } return res; }=