This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [lto] function to DECL associations for WPA repackaging
On Thu, Jun 12, 2008 at 4:39 PM, Diego Novillo <dnovillo@google.com> wrote:
> On 2008-06-12, Kenneth Zadeck <zadeck@naturalbridge.com> wrote:
>
>> I have no idea how to make sure, in whopr, that function x sees foobar if
>> you are going to cherry pick the globals also.
>
> I'm not sure I see the problem that you are pointing to. In this program:
>
> int N;
> int foobar;
> int *bar = &foobar;
> int **foo = &bar;
> x ()
> {
> int **x = foo;
> return **x;
> }
>
> All of 'foobar', 'bar' and 'foo' will be in the list of symbols
> referenced by x().
Why do you think foobar will be in the list?
(I'm just curious, i'm not saying you are wrong).