------- Comment #3 from burnus at gcc dot gnu dot org 2009-05-12 21:10 -------
I have a patch for this. Note, however, that the compiler - even with default
options - (too) aggressively optimizes your program, i.e. the assignment is
optimized away even with -O0 and thus for your program the value is alway some
random value. (This is also the the case for the analogous C program - if you
think it should be fixed, please fill a middle-end bug.)
If you do:
subroutine test
save ! or actual argument or in common or ...
i = 1
! Breakpoint here ! a break point here becomes a b. in the next line
end subroutine test ! <<< the breakpoint can be set to this line
with my patch, it properly prints the value "1" for "i" after the assignment.
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |burnus at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2007-11-20 13:10:19 |2009-05-12 21:10:26
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34153