Re: [PATCH] Fix -grecord-dwarf-switches with PCH (PR debug/53145)

2012-11-08 Thread Richard Henderson
On 2012-11-08 11:49, Jakub Jelinek wrote: > 2012-11-07 Jakub Jelinek > > PR debug/53145 > * dwarf2out.c (gen_compile_unit_die): Don't call gen_producer_string > here, instead add "" if producer_string is NULL. > (dwarf2out_finish): Call gen_producer_string here, uncondit

[PATCH] Fix -grecord-dwarf-switches with PCH (PR debug/53145)

2012-11-08 Thread Jakub Jelinek
Hi! This PR reports a problem on some PCH tests due to -grecord-dwarf-switches, sometimes .debug_str section is emitted in different order with PCH than without. I can't reproduce the issue unless -fno-eliminate-unused-debug-types, but anyway, I hope this patch should cure it. The problem is tha