[Bug objc++/99056] NIOS GCC optimizaton issue with memset

2021-02-14 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99056

Richard Biener  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|WAITING |RESOLVED

--- Comment #3 from Richard Biener  ---
Fixed.

[Bug objc++/99056] NIOS GCC optimizaton issue with memset

2021-02-10 Thread lpacheco at ael dot com.br via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99056

--- Comment #2 from Leonardo Pacheco  ---
Yes, your result shows that the issue is already fixed.

Thanks, will try to open bug report to Altera.

Thanks.

[Bug objc++/99056] NIOS GCC optimizaton issue with memset

2021-02-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99056

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:
addisp, sp, -8
mov r6, r5
mov r5, r4
addir4, sp, 3
stw ra, 4(sp)
stb zero, 3(sp)
callmemset
ldbur2, 3(sp)
cmpeqi  r2, r2, 1
ldw ra, 4(sp)
addisp, sp, 8
ret

which I'd say shows the issue is fixed?