[Bug middle-end/91948] [10 Regression] SEGV in reload with r276389
rsandifo at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Oct 1 12:55:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91948
--- Comment #2 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
Author: rsandifo
Date: Tue Oct 1 12:55:16 2019
New Revision: 276407
URL: https://gcc.gnu.org/viewcvs?rev=276407&root=gcc&view=rev
Log:
Fix reload after function-abi patches (PR91948)
The code was passing a pseudo rather than its allocated hard reg
to ira_need_caller_save_p. Running under valgrind to reproduce
the failure also showed that ALLOCNO_CROSSED_CALLS_ABIS wasn't
being explicitly initialised.
2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
gcc/
PR rtl-optimization/91948
* ira-build.c (ira_create_allocno): Initialize
ALLOCNO_CROSSED_CALLS_ABIS.
* ira-color.c (allocno_reload_assign): Pass hard_regno rather
than regno to ira_need_caller_save_p.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/ira-build.c
trunk/gcc/ira-color.c
More information about the Gcc-bugs
mailing list