diff options
author | Richard Biener <rguenther@suse.de> | 2023-04-11 15:06:59 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2023-04-12 08:48:23 +0200 |
commit | 6e3e708dbadaae7b504af7fc4410015624793f02 (patch) | |
tree | 00784ed72f08b3dcd2d7c080239706c3ff8d741d /gcc/fortran/interface.cc | |
parent | 5582ad0afb051a76231b2959487f4ef1746df283 (diff) | |
download | gcc-6e3e708dbadaae7b504af7fc4410015624793f02.zip gcc-6e3e708dbadaae7b504af7fc4410015624793f02.tar.gz gcc-6e3e708dbadaae7b504af7fc4410015624793f02.tar.bz2 |
tree-optimization/109434 - bogus DSE of throwing call LHS
The byte tracking of call LHS didn't properly handle possibly
throwing calls correctly which cases bogus DSE and in turn, for the
testcase a bogus uninit diagnostic and (unreliable) wrong-code.
PR tree-optimization/109434
* tree-ssa-dse.cc (initialize_ao_ref_for_dse): Properly
handle possibly throwing calls when processing the LHS
and may-defs are not OK.
* g++.dg/opt/pr109434.C: New testcase.
Diffstat (limited to 'gcc/fortran/interface.cc')
0 files changed, 0 insertions, 0 deletions