aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1997-10-31 16:30:48 +0000
committerJeff Law <law@gcc.gnu.org>1997-10-31 09:30:48 -0700
commit8d4e65a635cdcc5b5f2539feec9963f826b8b538 (patch)
treea2edff1049a249ba060e69600c7bc28aa13826b3
parentec907dd81e8cc1b3eafae5f8c53a13af541c7e5d (diff)
downloadgcc-8d4e65a635cdcc5b5f2539feec9963f826b8b538.zip
gcc-8d4e65a635cdcc5b5f2539feec9963f826b8b538.tar.gz
gcc-8d4e65a635cdcc5b5f2539feec9963f826b8b538.tar.bz2
dwarf2out.c (output_call_frame_info): Use ASM_OUTPUT_ASCII to output ASCII by default.
* dwarf2out.c (output_call_frame_info): Use ASM_OUTPUT_ASCII to output ASCII by default. Only use ASM_OUTPUT_DWARF_STRING if flag_debug_asm is on. (output_die, output_pubnames, output_line_info): Likewise. From-SVN: r16251
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/dwarf2out.c41
2 files changed, 38 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index be80490..8c1104c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
Fri Oct 31 07:10:09 1997 Jeffrey A Law (law@cygnus.com)
+ * dwarf2out.c (output_call_frame_info): Use ASM_OUTPUT_ASCII to
+ output ASCII by default. Only use ASM_OUTPUT_DWARF_STRING if
+ flag_debug_asm is on.
+ (output_die, output_pubnames, output_line_info): Likewise.
+
* alias.c (init_alias_analysis): Add struct_value_incoming_rtx
and static_chain_rtx into the potential base values array if
they are registers.
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 196fd76..dbc4366 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -1560,9 +1560,15 @@ output_call_frame_info (for_eh)
frame. Make the augmentation string three bytes (including the
trailing null) so the pointer is 4-byte aligned. The Solaris ld
can't handle unaligned relocs. */
- ASM_OUTPUT_DWARF_STRING (asm_out_file, "eh");
if (flag_debug_asm)
- fprintf (asm_out_file, "\t%s CIE Augmentation", ASM_COMMENT_START);
+ {
+ ASM_OUTPUT_DWARF_STRING (asm_out_file, "eh");
+ fprintf (asm_out_file, "\t%s CIE Augmentation", ASM_COMMENT_START);
+ }
+ else
+ {
+ ASM_OUTPUT_ASCII (asm_out_file, "eh", 2);
+ }
fputc ('\n', asm_out_file);
ASM_OUTPUT_DWARF_ADDR (asm_out_file, "__EXCEPTION_TABLE__");
@@ -5147,7 +5153,12 @@ output_die (die)
break;
case dw_val_class_str:
- ASM_OUTPUT_DWARF_STRING (asm_out_file, a->dw_attr_val.v.val_str);
+ if (flag_debug_asm)
+ ASM_OUTPUT_DWARF_STRING (asm_out_file, a->dw_attr_val.v.val_str);
+ else
+ ASM_OUTPUT_ASCII (asm_out_file,
+ a->dw_attr_val.v.val_str,
+ strlen (a->dw_attr_val.v.val_str));
break;
default:
@@ -5292,9 +5303,15 @@ output_pubnames ()
fputc ('\n', asm_out_file);
- ASM_OUTPUT_DWARF_STRING (asm_out_file, pub->name);
if (flag_debug_asm)
- fprintf (asm_out_file, "%s external name", ASM_COMMENT_START);
+ {
+ ASM_OUTPUT_DWARF_STRING (asm_out_file, pub->name);
+ fprintf (asm_out_file, "%s external name", ASM_COMMENT_START);
+ }
+ else
+ {
+ ASM_OUTPUT_ASCII (asm_out_file, pub->name, strlen (pub->name));
+ }
fputc ('\n', asm_out_file);
}
@@ -5519,10 +5536,18 @@ output_line_info ()
for (ft_index = 1; ft_index < file_table_in_use; ++ft_index)
{
- ASM_OUTPUT_DWARF_STRING (asm_out_file, file_table[ft_index]);
if (flag_debug_asm)
- fprintf (asm_out_file, "%s File Entry: 0x%x",
- ASM_COMMENT_START, ft_index);
+ {
+ ASM_OUTPUT_DWARF_STRING (asm_out_file, file_table[ft_index]);
+ fprintf (asm_out_file, "%s File Entry: 0x%x",
+ ASM_COMMENT_START, ft_index);
+ }
+ else
+ {
+ ASM_OUTPUT_ASCII (asm_out_file,
+ file_table[ft_index],
+ strlen (file_table[ft_index]));
+ }
fputc ('\n', asm_out_file);