On Fri, Mar 21, 2014 at 11:28:14AM +0100, Richard Biener wrote: > > This fixes a missed optimization regarding to coverage counters. > In the past we failed to apply proper may-alias analysis and > disregarded those counters as being possibly aliased by pointers > by accident. The following patch adds a flag so we can mark > VAR_DECLs as to be not considered as aliased by pointers so we > can make that an informed decision in this case (even though > strictly wrong - the address to those counters escapes into > the gcov info struct we build and pass to __gcov_init). > > Profiledbootstrapped and tested on x86_64-unknown-linux-gnu, ok for trunk?
Ok. > Do we eventually want sth like this for the branch(es)? I'd say no, or at least not immediately. Jakub