diff options
author | Vladimir N. Makarov <vmakarov@redhat.com> | 2023-02-13 16:05:04 -0500 |
---|---|---|
committer | Vladimir N. Makarov <vmakarov@redhat.com> | 2023-02-13 16:09:12 -0500 |
commit | a33e3dcbd15e73603796e30b5eeec11a0c8bacec (patch) | |
tree | 40cb5595c5aa328ac6e3409ab809e247d1413281 /libphobos/libdruntime | |
parent | 2ce7e2a83e18a27fe9c659f8667fc24f0df4ea9a (diff) | |
download | gcc-a33e3dcbd15e73603796e30b5eeec11a0c8bacec.zip gcc-a33e3dcbd15e73603796e30b5eeec11a0c8bacec.tar.gz gcc-a33e3dcbd15e73603796e30b5eeec11a0c8bacec.tar.bz2 |
RA: Clear reg equiv caller_save_p flag when clearing defined_p flag
IRA can invalidate initially setup equivalence in setup_reg_equiv.
Flag caller_saved was not cleared during invalidation although
init_insns were cleared. It resulted in segmentation fault in
get_equiv. Clearing the flag solves the problem. For more
precaution I added clearing the flag in other places too although it
might be not necessary.
PR rtl-optimization/108774
gcc/ChangeLog:
* ira.cc (ira_update_equiv_info_by_shuffle_insn): Clear equiv
caller_save_p flag when clearing defined_p flag.
(setup_reg_equiv): Ditto.
* lra-constraints.cc (lra_constraints): Ditto.
gcc/testsuite/ChangeLog:
* gcc.target/i386/pr108774.c: New.
Diffstat (limited to 'libphobos/libdruntime')
0 files changed, 0 insertions, 0 deletions