Hi!
I've noticed that -g3 (both old .debug_macinfo and new .debug_macro) doesn't
work correctly when HAVE_AS_DWARF2_DEBUG_LINE isn't defined, because
the .debug_line section is emitted before .debug_mac{ro,info} and thus
if any DW_MACINFO_start_file/DW_MACRO_GNU_start_file ops need a file
that
On Tue, Jul 26, 2011 at 10:38:09PM +0200, Jakub Jelinek wrote:
With that I've discovered that lookup_filename assumes that the string
it is called in is kept around, as it stores just the pointer and not a copy
of that string. It seems all other places that call lookup_filename already
call
On 07/26/2011 01:38 PM, Jakub Jelinek wrote:
* dwarf2out.c (output_macinfo_op): Ensure fd-filename points
to GC allocated copy of the string.
(dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
before .debug_line, not after it.
Ok.
r~