OSDN Git Service

* dwarf2out.c (output_call_frame_info): Fix length argument
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 1 Nov 1997 20:43:02 +0000 (20:43 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 1 Nov 1997 20:43:02 +0000 (20:43 +0000)
        to ASM_OUTPUT_ASCII.
        (output_die, output_pubnames, output_line_info): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@16262 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/dwarf2out.c

index d4b12a7..74a56ef 100644 (file)
@@ -1,3 +1,9 @@
+Sat Nov  1 13:42:19 1997  Jeffrey A Law  (law@cygnus.com)
+
+       * dwarf2out.c (output_call_frame_info): Fix length argument
+       to ASM_OUTPUT_ASCII.
+       (output_die, output_pubnames, output_line_info): Likewise.
+
 Fri Oct 31 07:10:09 1997  Jeffrey A Law  (law@cygnus.com)
 
        * version.c: Bump for snapshot.
index dbc4366..95dd005 100644 (file)
@@ -1567,7 +1567,7 @@ output_call_frame_info (for_eh)
        }
       else
        {
-         ASM_OUTPUT_ASCII (asm_out_file, "eh", 2);
+         ASM_OUTPUT_ASCII (asm_out_file, "eh", 3);
        }
       fputc ('\n', asm_out_file);
 
@@ -5158,7 +5158,7 @@ output_die (die)
          else
            ASM_OUTPUT_ASCII (asm_out_file,
                              a->dw_attr_val.v.val_str,
-                             strlen (a->dw_attr_val.v.val_str));
+                             strlen (a->dw_attr_val.v.val_str) + 1);
          break;
 
        default:
@@ -5310,7 +5310,7 @@ output_pubnames ()
        }
       else
        {
-         ASM_OUTPUT_ASCII (asm_out_file, pub->name, strlen (pub->name));
+         ASM_OUTPUT_ASCII (asm_out_file, pub->name, strlen (pub->name) + 1);
        }
 
       fputc ('\n', asm_out_file);
@@ -5546,7 +5546,7 @@ output_line_info ()
        {
          ASM_OUTPUT_ASCII (asm_out_file,
                            file_table[ft_index],
-                           strlen (file_table[ft_index]));
+                           strlen (file_table[ft_index]) + 1);
        }
 
       fputc ('\n', asm_out_file);