This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How can distinguish DECL in LTO mode?
- From: David fuqiang Fan <feqin1023 at gmail dot com>
- To: Richard Biener <richard dot guenther at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 13 Aug 2018 15:15:03 +0800
- Subject: Re: How can distinguish DECL in LTO mode?
- References: <CAOfAq_pAQU4w4QEdSRNKBXrzeZOir0=R-qGVN4tu3GBGHZ0QJA@mail.gmail.com> <107C7741-DA65-4E2C-A2E8-30FAC7EF42B1@gmail.com>
Thanks for the info.
On Sun, Aug 12, 2018, 23:30 Richard Biener <richard.guenther@gmail.com>
wrote:
> On August 12, 2018 12:30:26 PM GMT+02:00, zet <feqin1023@gmail.com> wrote:
> >Hello, everyone.
> >Sorry to disturb you, but this question confused me several days, I
> >have
> >searched the GCC source code cannot find the answers.
> >
> >I know we can distinguish the different DECL tree using DECL_UID in a
> >translation unit. But when in LTO mode, lto1 combine some input fat
> >object
> >files. How can I distinguish the different DECL tree may come from
> >two different object files?
>
> Decl_uid is re-assigned during LTO streaming and thus still unique.
>
> Richard.
>
> >
> >Thanks.
>
>