http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50317
--- Comment #4 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2011-10-27 13:57:22 UTC --- (In reply to comment #3) > not sure if that is a gdb bug though ('p' is optimized out - does the > debug info say that 'p' is zero?). Jan, can you investigate that at > the gdb side? GDB in general considers <optimized out> values as zero, as it misses changes for optimized out values. Maybe there should be implemented partially optimized out values first before fixing all the operations on top of it.