summaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authormrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>2012-05-29 23:44:09 +0000
committermrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>2012-05-29 23:44:09 +0000
commiteffa044f391b804c076699ef249af660ff9e0f81 (patch)
treeaa5b999c7d1d082b0e5c439e18b126cac9ddb7dc /gcc/dwarf2out.c
parent41f5b5b0ccdf6908007a2f6b6ffae9a555b44b18 (diff)
downloadgcc-effa044f391b804c076699ef249af660ff9e0f81.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187994 138bc75d-0d04-0410-961f-82ee72b054a4
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 b233d30ce46..6085a947541 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)
{