On 07/17/2018 08:32 AM, Richard Biener wrote:
The following makes sure to generate early debug for globals that end up being pushed to the backend via the write_out_vars call in c_parse_final_cleanups. rest_of_decl_compilation is confused by seeing current_function_decl set and skips the debug-hook invocation because of that. So the easy fix is to flush out globals before starting the init function.
looks sensible, ok. nathan -- Nathan Sidwell