------- Comment #2 from sam at gcc dot gnu dot org 2008-09-21 12:23 ------- Well, in the second example I give (variable declared in the same compilation unit), the access is optimized. What I don't get is the difference between both cases, while the compiler does have the same information at its disposal.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37604