Re: avoid early reference to debug-only symbol

2021-07-14 Thread Alexandre Oliva
On Jul 14, 2021, Richard Biener via Gcc-patches wrote: > Can you put the above (and maybe your patch) into a PR so it doesn't > get lost? https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101454 -- Alexandre Oliva, happy hackerhttps://FSFLA.org/blogs/lxo/ Free Software Activist

Re: avoid early reference to debug-only symbol

2021-07-14 Thread Richard Biener via Gcc-patches
On Wed, Jul 14, 2021 at 7:10 AM Alexandre Oliva wrote: > > On Jul 13, 2021, Richard Biener wrote: > > > Hmm, elsewhere in this function we're not anticipating future removal but > > instead use ->global_info_ready which IIRC is when the unit was > > initially analyzed. So don't the other uses ha

Re: avoid early reference to debug-only symbol

2021-07-13 Thread Alexandre Oliva
On Jul 13, 2021, Richard Biener wrote: > Hmm, elsewhere in this function we're not anticipating future removal but > instead use ->global_info_ready which IIRC is when the unit was > initially analyzed. So don't the other uses have the same issue? Possibly. The call to debug_hooks->late_global

Re: avoid early reference to debug-only symbol

2021-07-13 Thread Richard Biener via Gcc-patches
On Tue, Jul 13, 2021 at 5:13 AM Alexandre Oliva wrote: > > > If some IPA pass replaces the only reference to a constant non-public > non-automatic variable with its initializer, namely the address of > another such variable, the former becomes unreferenced and it's > discarded by symbol_table::rem