aboutsummaryrefslogtreecommitdiff
path: root/gcc/system.h
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2023-03-14 09:42:45 +0100
committerRichard Biener <rguenther@suse.de>2023-03-14 13:46:30 +0100
commitbd6e566e9dc543cf4f6df69dcefb40bb8b4100f1 (patch)
treecf763b71e176fddae80cf7af4d80c2f8704e20f2 /gcc/system.h
parent67839c562779081936cb79ebca156ef43d70f65f (diff)
downloadgcc-bd6e566e9dc543cf4f6df69dcefb40bb8b4100f1.zip
gcc-bd6e566e9dc543cf4f6df69dcefb40bb8b4100f1.tar.gz
gcc-bd6e566e9dc543cf4f6df69dcefb40bb8b4100f1.tar.bz2
Remove variables only used with .DEFERRED_INIT
In PR109087 it was noticed that we rely on DSE to remove .DEFERRED_INIT when it is the only remaining use of a variable. Since DSE is imperfect and even if it were not would be limited by the amount of statements to walk the following enhances the unused var removal pass to handle .DEFERRED_INIT like CLOBBERs, thus we do not keep local variables just because they are deferred initialized. * tree-ssa-live.cc (remove_unused_locals): Do not treat the .DEFERRED_INIT of a variable as use, instead remove that if it is the only use. * gcc.dg/auto-init-unused-1.c: New testcase.
Diffstat (limited to 'gcc/system.h')
0 files changed, 0 insertions, 0 deletions