------- 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

Reply via email to