This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

dwarf2asm tweeks


Beautify the output a tad.


r~

        * dwarf2asm.c (dw2_asm_output_data): Mask data to the output size.
        (dw2_asm_output_data_uleb128): Use space not tab after .uleb128.
        (dw2_asm_output_delta_uleb128): Likewise.
        (dw2_asm_output_delta_sleb128): Similarly.
        (dw2_asm_output_data_sleb128): Similarly.  Print number in decimal.

Index: dwarf2asm.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/dwarf2asm.c,v
retrieving revision 1.3
diff -c -p -d -r1.3 dwarf2asm.c
*** dwarf2asm.c	2001/03/16 01:14:47	1.3
--- dwarf2asm.c	2001/03/16 19:30:50
*************** dw2_asm_output_data VPARAMS ((int size, 
*** 112,117 ****
--- 112,120 ----
    comment = va_arg (ap, const char *);
  #endif
  
+   if (size * 8 < HOST_BITS_PER_WIDE_INT)
+     value &= ~(~(unsigned HOST_WIDE_INT)0 << (size * 8));
+ 
  #ifdef UNALIGNED_INT_ASM_OP
    fputs (unaligned_integer_asm_op (size), asm_out_file);
    fprintf (asm_out_file, HOST_WIDE_INT_PRINT_HEX, value);
*************** dw2_asm_output_data_uleb128 VPARAMS ((un
*** 458,464 ****
  #endif
  
  #ifdef HAVE_AS_LEB128
!   fputs ("\t.uleb128\t", asm_out_file);
    fprintf (asm_out_file, HOST_WIDE_INT_PRINT_HEX, value);
  
    if (flag_debug_asm && comment)
--- 461,467 ----
  #endif
  
  #ifdef HAVE_AS_LEB128
!   fputs ("\t.uleb128 ", asm_out_file);
    fprintf (asm_out_file, HOST_WIDE_INT_PRINT_HEX, value);
  
    if (flag_debug_asm && comment)
*************** dw2_asm_output_data_sleb128 VPARAMS ((HO
*** 522,529 ****
  #endif
  
  #ifdef HAVE_AS_LEB128
!   fputs ("\t.sleb128\t", asm_out_file);
!   fprintf (asm_out_file, HOST_WIDE_INT_PRINT_HEX, value);
  
    if (flag_debug_asm && comment)
      {
--- 525,532 ----
  #endif
  
  #ifdef HAVE_AS_LEB128
!   fputs ("\t.sleb128 ", asm_out_file);
!   fprintf (asm_out_file, HOST_WIDE_INT_PRINT_DEC, value);
  
    if (flag_debug_asm && comment)
      {
*************** dw2_asm_output_delta_uleb128 VPARAMS ((c
*** 589,595 ****
  #endif
  
  #ifdef HAVE_AS_LEB128
!   fputs ("\t.uleb128\t", asm_out_file);
    assemble_name (asm_out_file, lab1);
    fputc ('-', asm_out_file);
    assemble_name (asm_out_file, lab2);
--- 592,598 ----
  #endif
  
  #ifdef HAVE_AS_LEB128
!   fputs ("\t.uleb128 ", asm_out_file);
    assemble_name (asm_out_file, lab1);
    fputc ('-', asm_out_file);
    assemble_name (asm_out_file, lab2);
*************** dw2_asm_output_delta_sleb128 VPARAMS ((c
*** 627,633 ****
  #endif
  
  #ifdef HAVE_AS_LEB128
!   fputs ("\t.sleb128\t", asm_out_file);
    assemble_name (asm_out_file, lab1);
    fputc ('-', asm_out_file);
    assemble_name (asm_out_file, lab2);
--- 630,636 ----
  #endif
  
  #ifdef HAVE_AS_LEB128
!   fputs ("\t.sleb128 ", asm_out_file);
    assemble_name (asm_out_file, lab1);
    fputc ('-', asm_out_file);
    assemble_name (asm_out_file, lab2);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]