How to check if two symbols are from same source unit during WPA ?

Richard Biener rguenther@suse.de
Tue Apr 12 17:12:00 GMT 2016


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




More information about the Gcc mailing list