aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-item.h
diff options
context:
space:
mode:
authorThomas Young <wenzhang5800@gmail.com>2021-04-08 10:06:22 +0800
committerThomas Young <wenzhang5800@gmail.com>2021-04-09 18:10:41 +0800
commitacb0062081056340722e01447d1e266d357e6a17 (patch)
tree8c3dacc4990ce66d657debdb0a71410c341e911d /gcc/rust/backend/rust-compile-item.h
parent4937562f7ca354dc80369cc2e049c391838537f1 (diff)
downloadgcc-acb0062081056340722e01447d1e266d357e6a17.zip
gcc-acb0062081056340722e01447d1e266d357e6a17.tar.gz
gcc-acb0062081056340722e01447d1e266d357e6a17.tar.bz2
Add unused code pass
In order to find more examples of dead code we must create liveness variables and scan after type resolution. In this case, if a function is unused and it calls another function the 2nd function is now unused since the caller is not used etc. This is a WIP but demonstrates the pattern we can follow to add more dead code analysis warnings like rustc does. Addresses #330
Diffstat (limited to 'gcc/rust/backend/rust-compile-item.h')
0 files changed, 0 insertions, 0 deletions