diff mbox

[i386] : Couple of small cleanups

Message ID AANLkTimDHCVBZ8JsBv6UuNtpNvlS_u9juG_xJLyrmovO@mail.gmail.com
State New
Headers show

Commit Message

Uros Bizjak July 12, 2010, 7:37 a.m. UTC
Hello!

2010-07-12  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/i386.c (ix86_asm_output_function_label): Change format
	string placeholder from 0x%x to %#x.
	(ix86_code_end): Use putc to output '\n'.
	(ix86_print_operand) <case ';'>: Use putc to output ';'.

Tested on x86_64-pc-linux-gnu, committed to mainline SVN.

Uros.
diff mbox

Patch

Index: i386.c
===================================================================
--- i386.c	(revision 162066)
+++ i386.c	(working copy)
@@ -5145,7 +5146,7 @@  ix86_asm_output_function_label (FILE *as
       unsigned int filler_cc = 0xcccccccc;
 
       for (i = 0; i < filler_count; i += 4)
-        fprintf (asm_out_file, ASM_LONG " 0x%x\n", filler_cc);
+        fprintf (asm_out_file, ASM_LONG " %#x\n", filler_cc);
     }
 
   ASM_OUTPUT_LABEL (asm_out_file, fname);
@@ -7948,7 +7949,7 @@  ix86_code_end (void)
 	  assemble_name (asm_out_file, name);
 	  fputs ("\n\t.private_extern\t", asm_out_file);
 	  assemble_name (asm_out_file, name);
-	  fputs ("\n", asm_out_file);
+	  putc ('\n', asm_out_file);
 	  ASM_OUTPUT_LABEL (asm_out_file, name);
 	  DECL_WEAK (decl) = 1;
 	}
@@ -12652,7 +12653,7 @@  ix86_print_operand (FILE *file, rtx x, i
 
 	case ';':
 #ifndef HAVE_AS_IX86_REP_LOCK_PREFIX
-	  fputs (";", file);
+	  putc (';', file);
 #endif
 	  return;