diff options
Diffstat (limited to 'gcc/ipa.c')
-rw-r--r-- | gcc/ipa.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ipa.c b/gcc/ipa.c index e20e4953e8f..879d9c249cd 100644 --- a/gcc/ipa.c +++ b/gcc/ipa.c @@ -36,6 +36,7 @@ along with GCC; see the file COPYING3. If not see #include "ipa-prop.h" #include "ipa-inline.h" #include "dbgcnt.h" +#include "debug.h" /* Return true when NODE has ADDR reference. */ @@ -622,6 +623,12 @@ symbol_table::remove_unreachable_nodes (FILE *file) if (file) fprintf (file, " %s/%i", vnode->name (), vnode->order); vnext = next_variable (vnode); + /* Signal removal to the debug machinery. */ + if (! flag_wpa) + { + vnode->definition = false; + (*debug_hooks->late_global_decl) (vnode->decl); + } vnode->remove (); changed = true; } |