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: [PATCH] Fix dwarf2out for DECL_BY_REFERENCE (PR debug/33537)


On 10/31/07, Jakub Jelinek <jakub@redhat.com> wrote:
> Hi!
>
> If a PARM_DECL or RESULT_DECL has DECL_BY_REFERENCE set by cp-gimplify.c,
> then its type is a REFERENCE_TYPE of the real type as present in the
> original sources.  But for debuginfo we need to undo that and tell the
> debugger the right type of the parameters or result.
>
> Bootstrapped/regtested on x86_64-linux, tested on the testcase from bugzilla
> using gdb.  Ok for trunk?

Ok if you test this against the gdb testsuite (maybe add a testcase to it
for this case?)

Thanks,
Richard.

> 2007-10-31  Jakub Jelinek  <jakub@redhat.com>
>
>         PR debug/33537
>         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
>         gen_decl_die): Use TREE_TYPE (TREE_TYPE (decl)) as type
>         rather than TREE_TYPE (decl) if DECL_BY_REFERENCE (decl).


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