Fix print_rtl
Richard Guenther
richard.guenther@gmail.com
Thu May 24 11:14:00 GMT 2007
On 5/24/07, Jan Hubicka <jh@suse.cz> wrote:
> Hi,
> my line number change mistakely turned print_rtl to almost noop. This
> was result of misreading the code which I tought is just looking for
> nearest line number note to attach the info.
> Enabling it causes segfault in cfgexpand that prints freshly emit block
> note before initializing it's BB argument. It turns out that the old
> code to clear line number info in new note also cleared out the BB
> pointer making that code to work, so I just added a memset call there
> same as emit_note does.
>
> Bootstrapped/regtested i686-linux, OK?
Ok, thanks.
Richard.
> * doc/invoke.texi (-fdump-unnumbered): Update docs when line number
> notes are gone.
> * print-rtl.c (flag_dump_unnumbered): Update comments.
> (print_rtl): Fix my previous change.
> * emit-rtl.c (emit_note_before, emit_note_after): Clear out note
> specific data.
More information about the Gcc-patches
mailing list