This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH,dwarf,gfortran] Change DWARF-2 output for Fortran COMMON symbols


Dear List -

(the mailer garbled the code in the patch - here is a resubmission of the code as an attachment)

This patch changes the way that Fortran COMMON symbols are represented in DWARF output
to use the DW_TAG_common_block tag. This fixes problems that arise, on some systems (e.g. Darwin) with relocating symbols in .comm. The patch has no effect on non-Fortran
.comm symbols.


The patch is against the 4.3-20070810 snapshot (reason: builds a working gfortran).

Tested with gdb on powerpc-apple-darwin8.8.0, i386-apple-darwin8.10.1, sparc64-unknown-freebsd6.0.
(n.b. Darwin systems require a patched gdb, sigh -- see Radar 5579453 for the GDB patch)


Passes gcc/testsuite/gcc.dg/debug/dwarf2/dwarf2.exp (... and others)

George Helffrich

Attachment: dwarf2-common.ChangeLog
Description: Binary data


Attachment: dwarf2-common.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]