This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Another fix for debug output with #line in the middle of a function


Zack Weinberg wrote:-

> ===================================================================
> Index: c-decl.c
> --- c-decl.c	2002/01/31 01:00:58	1.292
> +++ c-decl.c	2002/01/31 07:21:31
> @@ -7014,6 +7014,7 @@ c_expand_body (fndecl, nested_p, can_def
>  
>    /* Initialize the RTL code for the function.  */
>    current_function_decl = fndecl;
> +  input_filename = DECL_SOURCE_FILE (fndecl);
>    init_function_start (fndecl, input_filename, DECL_SOURCE_LINE (fndecl));
>  
>    /* This function is being processed in whole-function mode.  */

Ugh; it would be really nice to be rid of these random assignments to
input_filename.  Is it needed for anything other than the following
line?  We really want to move to having all code other than c-parse.in
and its immediate subroutines getting position information from the
tree / rtl structures it is dealing with.

Neil.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]