This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] For static data member declarations emit DW_TAG_member instead of DW_TAG_variable
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Jason Merrill <jason at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Mon, 06 Apr 2009 09:44:32 -0700
- Subject: Re: [PATCH] For static data member declarations emit DW_TAG_member instead of DW_TAG_variable
- References: <20090401104308.GQ3160@tyan-ft48-01.lab.bos.redhat.com>
Jakub Jelinek wrote:
> Bootstrapped/regtested on x86_64-linux, ok for trunk?
>
> 2009-04-01 Jakub Jelinek <jakub@redhat.com>
>
> * dwarf2out.c (class_scope_p): New static inline.
> (class_or_namespace_scope_p): Use it.
> (gen_variable_die): Use DW_TAG_member tag for static data member
> declarations instead of DW_TAG_variable.
Does GDB support this OK? Does it require a very new GDB?
This patch should have a GCC test-case, verifying that the correct tag
is emitted.
Thanks,
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713