Improve -dp output by using tabs and including instruciton lengths
authorNick Clifton <nickc@cygnus.com>
Mon, 7 Dec 1998 11:45:49 +0000 (11:45 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Mon, 7 Dec 1998 11:45:49 +0000 (11:45 +0000)
From-SVN: r24149

gcc/ChangeLog
gcc/final.c

index 542b5043f7af0b183ead804082195b5097ae98b5..d637a4ed30fae3ebf7565ef76d708eb8ed86e401 100644 (file)
@@ -1,3 +1,10 @@
+Mon Dec  7 11:30:49 1998  Nick Clifton  <nickc@cygnus.com>
+
+       * final.c (output_asm_name): Use tabs to seperate comments from
+       assembly text.
+       
+       Include instruction lengths (if defined) in output.
+
 Mon Dec  7 10:53:38 1998  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
 
        * loop.c (check_dbra_loop): Fix initial_value and initial_equiv_value
index 32ed6fbf9f24dffba0bcced46029ba8bc24bda55..066b621e9a823ddf5b636645cfda970705fe2646 100644 (file)
@@ -3337,11 +3337,13 @@ output_asm_name ()
       if (debug_insn)
        {
          register int num = INSN_CODE (debug_insn);
-         fprintf (asm_out_file, " %s %d %s", 
+         fprintf (asm_out_file, "\t%s %d\t%s", 
                   ASM_COMMENT_START, INSN_UID (debug_insn), insn_name[num]);
          if (insn_n_alternatives[num] > 1)
            fprintf (asm_out_file, "/%d", which_alternative + 1);
-
+#ifdef HAVE_ATTR_length
+         fprintf (asm_out_file, "\t[length = %d]", get_attr_length (debug_insn));
+#endif
          /* Clear this so only the first assembler insn
             of any rtl insn will get the special comment for -dp.  */
          debug_insn = 0;