[Bug middle-end/64242] Longjmp expansion incorrect
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Aug 25 07:40:43 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64242
--- Comment #41 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Chenghua Xu <paulhua@gcc.gnu.org>:
https://gcc.gnu.org/g:68e605c93d57c17f07edd50f7e1c80f9216befd2
commit r11-2835-g68e605c93d57c17f07edd50f7e1c80f9216befd2
Author: Andrew Pinski <apinski@marvell.com>
Date: Tue Aug 25 14:17:52 2020 +0800
MIPS: Fix __builtin_longjmp (PR 64242)
The problem here is mips has its own builtin_longjmp
pattern and it was not fixed when expand_builtin_longjmp
was fixed. We need to read the new fp and gp before
restoring the stack as the buffer might be a local
variable.
2020-08-25 Andrew Pinski <apinski@marvell.com>
gcc/ChangeLog:
PR middle-end/64242
* config/mips/mips.md (builtin_longjmp): Restore the frame
pointer and stack pointer and gp.
More information about the Gcc-bugs
mailing list