This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Another fix for debug output with #line in the middle of a function
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- To: Zack Weinberg <zack at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 31 Jan 2002 21:41:53 +0000
- Subject: Re: Another fix for debug output with #line in the middle of a function
- References: <20020131072317.GU754@codesourcery.com>
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.