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

--- Comment #7 from Robin Dapp <rdapp at gcc dot gnu.org> ---
(In reply to Andreas Schwab from comment #0)
> $ ../gcc/configure --enable-languages=ada --target=riscv64-linux
> $ make
> $ cd gcc/ada/rts
> $ ../../xgcc -B ../../ -gnatpg -O2 -S a-textio.adb
> 
> $ diff -u a-textio.s.{good,bad}
> --- a-textio.s.good     2026-03-10 20:05:56.054768351 +0100
> +++ a-textio.s.bad      2026-03-10 20:08:36.158990215 +0100
> @@ -147,7 +147,7 @@
>         sub     a4,a4,a3
>         add     a0,a0,a4
>         beq     a5,zero,.L21
> -       addi    a4,sp,16
> +       ld      a4,8(sp)
>         subw    a5,a5,a4
>         addiw   a4,a5,1
>         mv      a2,a5

I ran check-ada with and without my patch and didn't see any difference.  How
did you see the problem in the first place?

Reply via email to