aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorJack Howarth <howarth@bromo.med.uc.edu>2012-05-29 23:44:09 +0000
committerMike Stump <mrs@gcc.gnu.org>2012-05-29 23:44:09 +0000
commit638c962f0a007ff2f59dc07b211a8c2579294e20 (patch)
treeaa5b999c7d1d082b0e5c439e18b126cac9ddb7dc /gcc/dwarf2out.c
parenta8b4175ce40f6fd96d2b7ed3868f34b7a4a8a1cc (diff)
downloadgcc-638c962f0a007ff2f59dc07b211a8c2579294e20.zip
gcc-638c962f0a007ff2f59dc07b211a8c2579294e20.tar.gz
gcc-638c962f0a007ff2f59dc07b211a8c2579294e20.tar.bz2
re PR debug/53453 (darwin linker expects both AT_name and AT_comp_dir debug notes)
2012-05-29 Jack Howarth <howarth@bromo.med.uc.edu> PR debug/53453 * doc/tm.texi: Update. * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Add @hook. * target.def (force_at_comp_dir): New hook. * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Define. * dwarf2out.c (dwarf2out_finish): Check targetm.force_at_comp_dir. From-SVN: r187994
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index b233d30..6085a94 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -22078,7 +22078,7 @@ dwarf2out_finish (const char *filename)
/* Add the name for the main input file now. We delayed this from
dwarf2out_init to avoid complications with PCH. */
add_name_attribute (comp_unit_die (), remap_debug_filename (filename));
- if (!IS_ABSOLUTE_PATH (filename))
+ if (!IS_ABSOLUTE_PATH (filename) || targetm.force_at_comp_dir)
add_comp_dir_attribute (comp_unit_die ());
else if (get_AT (comp_unit_die (), DW_AT_comp_dir) == NULL)
{