This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Emit DW_AT_inline for C++17 inline variables (take 2)
- From: Jason Merrill <jason at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 1 Nov 2016 13:20:23 -0400
- Subject: Re: [PATCH] Emit DW_AT_inline for C++17 inline variables (take 2)
- Authentication-results: sourceware.org; auth=none
- References: <20161014173321.GM7282@tucnak.redhat.com> <ba86eb84-0ca0-e46d-d92a-68af3f142338@redhat.com> <20161031142501.GE3541@tucnak.redhat.com> <CADzB+2n7srd9DuWHzUadpoNyE_2xAznHKJ+hw=nm6Sg=ZWA-gA@mail.gmail.com> <20161101161036.GW3541@tucnak.redhat.com>
On Tue, Nov 1, 2016 at 12:10 PM, Jakub Jelinek <jakub@redhat.com> wrote:
> + && !get_AT (var_die, DW_AT_inline)
> + && (origin_die == NULL || get_AT (origin_die, DW_AT_inline) == NULL)
Can we drop this repetition (here and for DW_AT_const_expr)? get_AT
should look through DW_AT_abstract_origin, and we should have added
that earlier in gen_variable_die.
OK with that change.
Jason