Re: [debug-early] call debug_hooks->late_global_decl for optimized away symbols

2015-05-07 Thread Aldy Hernandez
And now for my next trick, I will revert all changes I had made to the non-dwarf backends. No special kludges will be needed for stabs et al, with my previous patch in place. Tested on: x86_64-unknown-linux-gnu powerpc-ibm-aix7.1.2.0 powerpc64-unknown-linux-gnu aarch64-unknow

[debug-early] call debug_hooks->late_global_decl for optimized away symbols

2015-05-06 Thread Aldy Hernandez
This is a problem I found while bootstrapping on ppc64-linux, but is a problem we will run into sooner or later. As I've mentioned before, the fact that we call debug_hooks->late_global_decl() on symbols from the symbol table means that we miss out on symbols that were removed from the symbol