diff options
author | Richard Biener <rguenther@suse.de> | 2023-03-15 09:47:18 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2023-03-15 10:29:27 +0100 |
commit | 0fc541efc340535d212cd685176bd9592905de8a (patch) | |
tree | 619b7831dc0b4a08f9e65167b956210964c44786 /gcc/fortran | |
parent | 45641f3a99281bb0a429649741a29c2aace4c63e (diff) | |
download | gcc-0fc541efc340535d212cd685176bd9592905de8a.zip gcc-0fc541efc340535d212cd685176bd9592905de8a.tar.gz gcc-0fc541efc340535d212cd685176bd9592905de8a.tar.bz2 |
tree-optimization/109139 - fix .DEFERRED_INIT removal
The following make sure to strip MEMs when looking for unused
decls on the LHS of .DEFERRED_INIT.
PR tree-optimization/109139
* tree-ssa-live.cc (remove_unused_locals): Look at the
base address for unused decls on the LHS of .DEFERRED_INIT.
* gcc.dg/torture/pr109139.c: New testcase.
Diffstat (limited to 'gcc/fortran')
0 files changed, 0 insertions, 0 deletions