This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Use ASM_COMMENT_START
- From: Xinliang David Li <davidxl at google dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Diego Novillo <dnovillo at google dot com>
- Date: Fri, 15 Apr 2011 11:11:51 -0700
- Subject: Use ASM_COMMENT_START
The following is a trivial patch to remove hard coded '#' usage.
Ok for trunk?
Thanks,
David
2011-04-15 Xinliang David Li <davidxl@google.com>
* final.c (dump_basic_block_info): Use ASM_COMMENT_START.
Index: final.c
===================================================================
--- final.c (revision 172212)
+++ final.c (working copy)
@@ -1691,14 +1691,14 @@ dump_basic_block_info (FILE *file, rtx i
edge e;
edge_iterator ei;
- fprintf (file, "# BLOCK %d", bb->index);
+ fprintf (file, "%s BLOCK %d", ASM_COMMENT_START, bb->index);
if (bb->frequency)
fprintf (file, " freq:%d", bb->frequency);
if (bb->count)
fprintf (file, " count:" HOST_WIDEST_INT_PRINT_DEC,
bb->count);
fprintf (file, " seq:%d", (*bb_seqn)++);
- fprintf (file, "\n# PRED:");
+ fprintf (file, "\n%s PRED:", ASM_COMMENT_START);
FOR_EACH_EDGE (e, ei, bb->preds)
{
dump_edge_info (file, e, 0);
@@ -1711,7 +1711,7 @@ dump_basic_block_info (FILE *file, rtx i
edge e;
edge_iterator ei;
- fprintf (asm_out_file, "# SUCC:");
+ fprintf (asm_out_file, "%s SUCC:", ASM_COMMENT_START);
FOR_EACH_EDGE (e, ei, bb->succs)
{
dump_edge_info (asm_out_file, e, 1);