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?