summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authorrupp <rupp@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-29 05:02:10 +0000
committerrupp <rupp@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-29 05:02:10 +0000
commitf01ce60013517fe0e6391d048710f9494cf87d03 (patch)
tree383617cc8807598de43e0e3bfef4c74232ecfeac /gcc
parentc16d514f26c1b6a23f48155d5883ad22cf1f6447 (diff)
downloadppe42-gcc-f01ce60013517fe0e6391d048710f9494cf87d03.tar.gz
ppe42-gcc-f01ce60013517fe0e6391d048710f9494cf87d03.zip
* dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
New macro set for VMS_DEBUGGGING_INFO. (AT_string_form): Use it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150196 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/dwarf2out.c11
2 files changed, 15 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9c2de322fd0..b4911a6543a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2009-07-28 Douglas B Rupp <rupp@gnat.com>
+
+ * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
+ New macro set for VMS_DEBUGGGING_INFO.
+ (AT_string_form): Use it.
+
2009-07-28 DJ Delorie <dj@redhat.com>
* config/mep/mep.c (vtext_section): New.
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 168ca0cc6b4..488439fcfbe 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -100,8 +100,14 @@ static rtx last_var_location_insn;
/* Define this macro to be a nonzero value if the directory specifications
which are output in the debug info should end with a separator. */
#define DWARF2_DIR_SHOULD_END_WITH_SEPARATOR 1
+/* Define this macro to evaluate to a nonzero value if GCC should refrain
+ from generating indirect strings in DWARF2 debug information, for instance
+ if your target is stuck with an old version of GDB that is unable to
+ process them properly or uses VMS Debug. */
+#define DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET 1
#else
#define DWARF2_DIR_SHOULD_END_WITH_SEPARATOR 0
+#define DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET 0
#endif
#ifndef DWARF2_FRAME_INFO
@@ -6705,8 +6711,9 @@ AT_string_form (dw_attr_ref a)
/* If we cannot expect the linker to merge strings in .debug_str
section, only put it into .debug_str if it is worth even in this
single module. */
- if ((debug_str_section->common.flags & SECTION_MERGE) == 0
- && (len - DWARF_OFFSET_SIZE) * node->refcount <= len)
+ if (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET
+ || ((debug_str_section->common.flags & SECTION_MERGE) == 0
+ && (len - DWARF_OFFSET_SIZE) * node->refcount <= len))
return node->form = DW_FORM_string;
ASM_GENERATE_INTERNAL_LABEL (label, "LASF", dw2_string_counter);
OpenPOWER on IntegriCloud