From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 21BA8398E43D; Wed, 10 Feb 2021 12:32:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 21BA8398E43D From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug objc++/99056] NIOS GCC optimizaton issue with memset Date: Wed, 10 Feb 2021 12:32:24 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: objc++ X-Bugzilla-Version: 5.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: WAITING 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_status cf_gcctarget everconfirmed cf_reconfirmed_on 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 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: Wed, 10 Feb 2021 12:32:24 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99056 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Target| |nios2 Ever confirmed|0 |1 Last reconfirmed| |2021-02-10 --- Comment #1 from Richard Biener --- Note GCC 5 is no longer maintained, you should go and report the issue to Altera who provided the compiler. When I use current trunk and a simple cc1 cross to nios2-elf I get with -O2 ServiceCallingMemset: addi sp, sp, -8 mov r6, r5 mov r5, r4 addi r4, sp, 3 stw ra, 4(sp) stb zero, 3(sp) call memset ldbu r2, 3(sp) cmpeqi r2, r2, 1 ldw ra, 4(sp) addi sp, sp, 8 ret which I'd say shows the issue is fixed?=