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: [lto] function to DECL associations for WPA repackaging


On 6/12/08 6:49 PM, Daniel Berlin wrote:
On Thu, Jun 12, 2008 at 4:39 PM, Diego Novillo <dnovillo@google.com> wrote:

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?

It's reachable from DECL_INITIAL of another referenced variable which we go through in find_referenced_vars.



Diego.



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