From bcfcac73131def5d921bb4c405e674b20761b651 Mon Sep 17 00:00:00 2001 From: uros Date: Fri, 24 Jul 2009 19:33:14 +0000 Subject: [PATCH] * config/i386/linux.c: Use fputs or putc instead of fprintf where appropriate. * config/i386/gas.h: Ditto. * config/i386/x86-64.h: Ditto. * config/i386/att.h: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150062 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 11 ++++++++++- gcc/config/i386/att.h | 8 ++++---- gcc/config/i386/gas.h | 4 ++-- gcc/config/i386/i386.c | 4 ++-- gcc/config/i386/linux.h | 2 +- gcc/config/i386/x86-64.h | 2 +- 6 files changed, 20 insertions(+), 11 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2d1c447a6d9..5fc84c68ec6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2009-07-24 Uros Bizjak + + * config/i386/linux.c: Use fputs or putc instead of fprintf + where appropriate. + * config/i386/gas.h: Ditto. + * config/i386/x86-64.h: Ditto. + * config/i386/att.h: Ditto. + 2009-07-24 Andreas Krebbel * expmed.c (emit_store_flag): Use a recursive call to optimize the @@ -83,7 +91,8 @@ * config/rs6000/rs6000.c (rs6000_vector_reload): New static global for vector secondary reload support. - (rs6000_vector_reg_class): Delete, replacing it with rs6000_constraints. + (rs6000_vector_reg_class): Delete, replacing it with + rs6000_constraints. (rs6000_vsx_reg_class): Ditto. (rs6000_constraints): New array to hold the register classes of each of the register constraints that can vary at runtime. diff --git a/gcc/config/i386/att.h b/gcc/config/i386/att.h index 5f939258cd1..6586ddd3d87 100644 --- a/gcc/config/i386/att.h +++ b/gcc/config/i386/att.h @@ -42,11 +42,11 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see do \ { size_t i = 0, limit = (SIZE); \ while (i < limit) \ - { if (i%10 == 0) { if (i!=0) fprintf ((FILE), "\n"); \ + { if (i%10 == 0) { if (i!=0) putc ('\n', (FILE)); \ fputs ("\t.byte\t", (FILE)); } \ - else fprintf ((FILE), ","); \ + else putc (',', (FILE)); \ fprintf ((FILE), "0x%x", ((PTR)[i++] & 0377)) ;} \ - fprintf ((FILE), "\n"); \ + putc ('\n', (FILE)); \ } while (0) /* Output at beginning of assembler file. */ @@ -83,7 +83,7 @@ do \ #undef ASM_GENERATE_INTERNAL_LABEL #define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER) \ - sprintf ((BUF), "%s%s%ld", LOCAL_LABEL_PREFIX, (PREFIX), (long)(NUMBER)) + sprintf ((BUF), LOCAL_LABEL_PREFIX "%s%ld", (PREFIX), (long)(NUMBER)) /* The prefix to add to user-visible assembler symbols. */ diff --git a/gcc/config/i386/gas.h b/gcc/config/i386/gas.h index c4dafc64d18..4c7c9d1ac62 100644 --- a/gcc/config/i386/gas.h +++ b/gcc/config/i386/gas.h @@ -95,12 +95,12 @@ along with GCC; see the file COPYING3. If not see { \ if ((PTR)[3] == 'z') \ { \ - fprintf (STREAM, "repe"); \ + fputs ("repe", (STREAM)); \ (PTR) += 4; \ } \ else if ((PTR)[3] == 'n' && (PTR)[4] == 'z') \ { \ - fprintf (STREAM, "repne"); \ + fputs ("repne", (STREAM)); \ (PTR) += 5; \ } \ } \ diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 35c169a6ea3..042ff4419f6 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -4201,7 +4201,7 @@ x86_elf_aligned_common (FILE *file, else fputs (COMMON_ASM_OP, file); assemble_name (file, name); - fprintf (file, ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n", + fprintf (file, "," HOST_WIDE_INT_PRINT_UNSIGNED ",%u\n", size, align / BITS_PER_UNIT); } #endif @@ -11818,7 +11818,7 @@ print_operand (FILE *file, rtx x, int code) char dstr[30]; real_to_decimal (dstr, CONST_DOUBLE_REAL_VALUE (x), sizeof (dstr), 0, 1); - fprintf (file, "%s", dstr); + fputs (dstr, file); } else diff --git a/gcc/config/i386/linux.h b/gcc/config/i386/linux.h index 9742b9b5ccf..9b51496a864 100644 --- a/gcc/config/i386/linux.h +++ b/gcc/config/i386/linux.h @@ -156,7 +156,7 @@ along with GCC; see the file COPYING3. If not see if ((LOG) > 3 \ && (1 << (LOG)) > ((MAX_SKIP) + 1) \ && (MAX_SKIP) >= 7) \ - fprintf ((FILE), "\t.p2align 3\n"); \ + fputs ("\t.p2align 3\n", (FILE)); \ } \ } \ } while (0) diff --git a/gcc/config/i386/x86-64.h b/gcc/config/i386/x86-64.h index 5d6958cc4ad..1b648138ca0 100644 --- a/gcc/config/i386/x86-64.h +++ b/gcc/config/i386/x86-64.h @@ -77,7 +77,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see if ((LOG) > 3 \ && (1 << (LOG)) > ((MAX_SKIP) + 1) \ && (MAX_SKIP) >= 7) \ - fprintf ((FILE), "\t.p2align 3\n"); \ + fputs ("\t.p2align 3\n", (FILE)); \ } \ } \ } while (0) -- 2.11.0