This is the mail archive of the gcc@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: How to check if two symbols are from same source unit during WPA ?


On April 12, 2016 3:47:19 PM GMT+02:00, Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> wrote:
>Hi,
>How to check if two symbols are from same source file during WPA ?
>Is symbol1->lto_file_data == symbol2->lto_file_data true if symbol1
>and symbol2 are from same
>source files ? Would that be a sufficient condition or do I need to
>check for something more ?

Why would you want to know?  The proposed check would verify it comes from the same TU.

Richard.

>Thanks,
>Prathamesh



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