How to see labels in common block
Toon Moene
toon@moene.indiv.nluug.nl
Sun Feb 13 07:11:00 GMT 2000
Andy Vaught wrote:
> I thought I had posted the patch allowing g77 to emit debug info for
> common variables a year ago, but I can't find it anywhere, so here it is.
> Its against 0.5.24, but the context should allow you to apply it to any
> version. The patch is simple, adding a single line of code and removing
> lots of #ifdefs...
Well, I haven't seen your patch before (otherwise I'd certainly have
given it a try - support of debug information for COMMON block items is
on the top-3 list of desirable improvements of g77 ...)
I bootstrapped the CVS trunk with your patch (which applied with a lot
of "offset" whining) and passed the testsuite with no regressions.
However, the g77 testsuite doesn't seem to use the -g option (according
to the g77.log file) so I also compiled all source files with -g -c
-O[3] without adverse effects.
Richard Henderson tried another approach at this problem, after a
discussion we had during the g77 BoF session at Linux Expo in Raleigh,
last May.
His patch is at
http://gcc.gnu.org/ml/gcc-bugs/1999-08/msg00318.html
Craig's comments are at
http://gcc.gnu.org/ml/gcc-bugs/1999-09/msg00130.html
which made me try to compile the following with debug enabled:
subroutine aap(a)
dimension a(n)
common /commie/ n
print *,a
end
It passed OK.
The above looks promising enough to apply your patch to the trunk - do
you already have write access ? I.e. has the FSF received your
paperwork ?
Cheers,
--
Toon Moene (toon@moene.indiv.nluug.nl)
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Phone: +31 346 214290; Fax: +31 346 214286
GNU Fortran: http://gcc.gnu.org/onlinedocs/g77_news.html
More information about the Gcc-patches
mailing list