public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/87944] Wrong code with LRA pushing stack local variable
[not found] <bug-87944-4@http.gcc.gnu.org/bugzilla/>
@ 2023-07-14 12:40 ` mikpelinux at gmail dot com
2023-07-14 21:03 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 2+ messages in thread
From: mikpelinux at gmail dot com @ 2023-07-14 12:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87944
Mikael Pettersson <mikpelinux at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mikpelinux at gmail dot com
--- Comment #5 from Mikael Pettersson <mikpelinux at gmail dot com> ---
Appears to have been fixed for gcc-14.0 by
30038a207c10a2783fa2695b62c7c8458ef05e73 is the first new commit
commit 30038a207c10a2783fa2695b62c7c8458ef05e73
Author: Vladimir N. Makarov <vmakarov@redhat.com>
Date: Tue May 30 15:54:28 2023 -0400
LRA: Update insn sp offset if its input reload changes SP
which mentions a problem switching the h8300 to lra, but there's no PR
reference in either the commit message or the mailing-list post.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug middle-end/87944] Wrong code with LRA pushing stack local variable
[not found] <bug-87944-4@http.gcc.gnu.org/bugzilla/>
2023-07-14 12:40 ` [Bug middle-end/87944] Wrong code with LRA pushing stack local variable mikpelinux at gmail dot com
@ 2023-07-14 21:03 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-07-14 21:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87944
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |14.0
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Mikael Pettersson from comment #5)
> Appears to have been fixed for gcc-14.0 by
>
> 30038a207c10a2783fa2695b62c7c8458ef05e73 is the first new commit
> commit 30038a207c10a2783fa2695b62c7c8458ef05e73
> Author: Vladimir N. Makarov <vmakarov@redhat.com>
> Date: Tue May 30 15:54:28 2023 -0400
>
> LRA: Update insn sp offset if its input reload changes SP
>
> which mentions a problem switching the h8300 to lra, but there's no PR
> reference in either the commit message or the mailing-list post.
https://gcc.gnu.org/pipermail/gcc-patches/2023-May/620128.html
This is definitely the fix here.
In this case we had:
(insn 12 10 13 2 (set (mem/f:HI (pre_dec:HI (reg/f:HI 6 sp)) [1 S2 A16])
(reg/f:HI 24)) "../../testarg.c":9:12 25 {movhi}
(expr_list:REG_DEAD (reg/f:HI 24)
(expr_list:REG_ARGS_SIZE (const_int 2 [0x2])
(nil))))
Which then would turn into incorrectly what is described in both the bug report
here and in fact the same as what is described in the email.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-07-14 21:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-87944-4@http.gcc.gnu.org/bugzilla/>
2023-07-14 12:40 ` [Bug middle-end/87944] Wrong code with LRA pushing stack local variable mikpelinux at gmail dot com
2023-07-14 21:03 ` pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).