https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99056

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
             Target|                            |nios2
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2021-02-10

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
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?

Reply via email to