diff options
author | Martin Jambor <mjambor@suse.cz> | 2019-02-18 09:59:04 +0100 |
---|---|---|
committer | Martin Jambor <jamborm@gcc.gnu.org> | 2019-02-18 09:59:04 +0100 |
commit | 469b4adb4fec2b61caee16ed982f5fab333e784b (patch) | |
tree | 5d0bbafdf437cf662f2be34721a7245a03b1733c /libcpp/line-map.c | |
parent | db30281f0b2ff6dfc0c4146291baf020a27e4065 (diff) | |
download | gcc-469b4adb4fec2b61caee16ed982f5fab333e784b.zip gcc-469b4adb4fec2b61caee16ed982f5fab333e784b.tar.gz gcc-469b4adb4fec2b61caee16ed982f5fab333e784b.tar.bz2 |
[PR 89209] Avoid segfault in a peculiar corner case in SRA
2019-02-18 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/89209
* tree-sra.c (create_access_replacement): New optional parameter
reg_tree. Use it as a type if non-NULL and access type is not of
a register type.
(get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
to create_access_replacement.
(sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
Check lacc is non-NULL before attempting to re-create it on the RHS.
testsuite/
* gcc.dg/tree-ssa/pr89209.c: New test.
From-SVN: r268980
Diffstat (limited to 'libcpp/line-map.c')
0 files changed, 0 insertions, 0 deletions