Re: Curious global variable bug? Bad assumptions on my part?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tynan Wilke wrote:
So, the -O0 is doing what I would expect, but the -O1 version IS
testing the global variable the first pass, but then never jumping
back to the 0x0804853a to retrieve the new global value and then
re-test. Is this right?

That sounds right. Because GCC thinks the value is never going to change, it doesn't ever bother to look at it again after the first check.

--
Tony Wetmore



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux