[Bug fortran/37826] gfortran compiled with -gstabs+ on OSX emits incorrect debug information if compiled with -finit-local-zero
burnus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Oct 14 21:05:00 GMT 2008
------- Comment #1 from burnus at gcc dot gnu dot org 2008-10-14 21:03 -------
> I can't test other -g options as they don't generate
> usuable debug information on OSX.
To my knowledge OS X also supports DWARF debugging symbols, cf.
http://gcc.gnu.org/ml/gcc-patches/2007-02/msg00745.html
However, with DWARF the result is the same.
> The line numbers don't match the source code as shown below:
I might miss something, but the line numbers look OK.
> The compiler is apparently adding extra code to initizilize
> the variables but not accounting for it in the line numbers.
It does and seemingly the debug location used for this is the line of the last
variable declaration.
It is actually not quite clear how gfortran should handle this - simply not
allowing a break point in line 6? Or ... ?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37826
More information about the Gcc-bugs
mailing list