diff options
author | Vladimir Makarov <vmakarov@redhat.com> | 2017-10-16 20:34:53 +0000 |
---|---|---|
committer | Vladimir Makarov <vmakarov@gcc.gnu.org> | 2017-10-16 20:34:53 +0000 |
commit | 2de3d3c6a62ac4299e9f5a310e4bf8ff28dbd47f (patch) | |
tree | d2982e904ae5477184e730c0645f8001df5fdce5 /gcc/lra.c | |
parent | 55015c109a09c6f5f1fa76bef388628ee895eedb (diff) | |
download | gcc-2de3d3c6a62ac4299e9f5a310e4bf8ff28dbd47f.zip gcc-2de3d3c6a62ac4299e9f5a310e4bf8ff28dbd47f.tar.gz gcc-2de3d3c6a62ac4299e9f5a310e4bf8ff28dbd47f.tar.bz2 |
re PR sanitizer/82353 (runtime ubsan crash)
2017-10-16 Vladimir Makarov <vmakarov@redhat.com>
PR sanitizer/82353
* lra.c (collect_non_operand_hard_regs): Don't ignore operator
locations.
* lra-lives.c (bb_killed_pseudos, bb_gen_pseudos): Move up.
(make_hard_regno_born, make_hard_regno_dead): Update
bb_killed_pseudos and bb_gen_pseudos for fixed regs.
From-SVN: r253796
Diffstat (limited to 'gcc/lra.c')
-rw-r--r-- | gcc/lra.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -820,7 +820,8 @@ collect_non_operand_hard_regs (rtx *x, lra_insn_recog_data_t data, const char *fmt = GET_RTX_FORMAT (code); for (i = 0; i < data->insn_static_data->n_operands; i++) - if (x == data->operand_loc[i]) + if (! data->insn_static_data->operand[i].is_operator + && x == data->operand_loc[i]) /* It is an operand loc. Stop here. */ return list; for (i = 0; i < data->insn_static_data->n_dups; i++) |