Line number handling in RTL reorganization

Jan Hubicka jh@suse.cz
Sun Jul 13 12:57:00 GMT 2003


> 	This patch breaks debugging on AIX -- no line number debugging
> information is generated.  A lot of other debugging information is
> missing, but other macros use the line number to determine if GCC
> currently is within a function, so the broken line numbers may be causing
> the other problems.
> 
> 	One major problem is:
> 
>         (final_start_function): Set initial source file and line.
> 
> *************** final_start_function (first, file, optim
> *** 1359,1366 ****
>       }
>   #endif
>   
> !   if (NOTE_LINE_NUMBER (first) != NOTE_INSN_DELETED)
> !     notice_source_line (first);
>     high_block_linenum = high_function_linenum = last_linenum;
>   
>     (*debug_hooks->begin_prologue) (last_linenum, last_filename);
> --- 1359,1366 ----
>       }
>   #endif
>   
> !   last_linenum = 0;
> !   last_filename = 0;
>     high_block_linenum = high_function_linenum = last_linenum;
>   
>     (*debug_hooks->begin_prologue) (last_linenum, last_filename);
> 
> Setting last_linenum to 0 conflicts with xcoffout.c:
I do have the prologue/epilogue locators stored, so I will send patch to
get the line numbers right soon.

Honza



More information about the Gcc-patches mailing list