From patchwork Mon Jul 12 07:37:04 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [i386] : Couple of small cleanups Date: Sun, 11 Jul 2010 21:37:04 -0000 From: Uros Bizjak X-Patchwork-Id: 58578 Message-Id: To: gcc-patches@gcc.gnu.org Hello! 2010-07-12 Uros Bizjak * 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) : Use putc to output ';'. Tested on x86_64-pc-linux-gnu, committed to mainline SVN. Uros. 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;