This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C PATCH] Emit debug info for block local externs from C (PR debug/39563)
- From: Tom Tromey <tromey at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Joseph Myers <jsm at polyomino dot org dot uk>, gcc-patches at gcc dot gnu dot org
- Date: Sun, 29 Mar 2009 10:09:02 -0600
- Subject: Re: [C PATCH] Emit debug info for block local externs from C (PR debug/39563)
- References: <20090329091235.GD4831@tyan-ft48-01.lab.bos.redhat.com>
- Reply-to: tromey at redhat dot com
>>>>> "Jakub" == Jakub Jelinek <jakub@redhat.com> writes:
Jakub> @@ -824,6 +827,26 @@ pop_scope (void)
Jakub> TREE_CHAIN (p) = BLOCK_VARS (block);
Jakub> BLOCK_VARS (block) = p;
Jakub> }
Jakub> + else if (VAR_OR_FUNCTION_DECL_P (p))
Jakub> + {
Jakub> + tree extp = copy_node (p);
Jakub> +
Jakub> + DECL_EXTERNAL (extp) = 1;
Jakub> + TREE_STATIC (extp) = 0;
[...]
I think this bit of code could use a comment explaining what it is
for. It isn't clear from the context that this is used solely for
debug info generation.
Tom