Commit 87da3843 by Uros Bizjak

linux.c: Use fputs or putc instead of fprintf where appropriate.

	* 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.

From-SVN: r150062
parent fcbaa582
2009-07-24 Uros Bizjak <ubizjak@gmail.com>
* 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 <Andreas.Krebbel@de.ibm.com> 2009-07-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* expmed.c (emit_store_flag): Use a recursive call to optimize the * expmed.c (emit_store_flag): Use a recursive call to optimize the
...@@ -83,7 +91,8 @@ ...@@ -83,7 +91,8 @@
* config/rs6000/rs6000.c (rs6000_vector_reload): New static global * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
for vector secondary reload support. 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_vsx_reg_class): Ditto.
(rs6000_constraints): New array to hold the register classes of (rs6000_constraints): New array to hold the register classes of
each of the register constraints that can vary at runtime. each of the register constraints that can vary at runtime.
......
...@@ -42,11 +42,11 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see ...@@ -42,11 +42,11 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
do \ do \
{ size_t i = 0, limit = (SIZE); \ { size_t i = 0, limit = (SIZE); \
while (i < limit) \ 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)); } \ fputs ("\t.byte\t", (FILE)); } \
else fprintf ((FILE), ","); \ else putc (',', (FILE)); \
fprintf ((FILE), "0x%x", ((PTR)[i++] & 0377)) ;} \ fprintf ((FILE), "0x%x", ((PTR)[i++] & 0377)) ;} \
fprintf ((FILE), "\n"); \ putc ('\n', (FILE)); \
} while (0) } while (0)
/* Output at beginning of assembler file. */ /* Output at beginning of assembler file. */
...@@ -83,7 +83,7 @@ do \ ...@@ -83,7 +83,7 @@ do \
#undef ASM_GENERATE_INTERNAL_LABEL #undef ASM_GENERATE_INTERNAL_LABEL
#define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER) \ #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. */ /* The prefix to add to user-visible assembler symbols. */
......
...@@ -95,12 +95,12 @@ along with GCC; see the file COPYING3. If not see ...@@ -95,12 +95,12 @@ along with GCC; see the file COPYING3. If not see
{ \ { \
if ((PTR)[3] == 'z') \ if ((PTR)[3] == 'z') \
{ \ { \
fprintf (STREAM, "repe"); \ fputs ("repe", (STREAM)); \
(PTR) += 4; \ (PTR) += 4; \
} \ } \
else if ((PTR)[3] == 'n' && (PTR)[4] == 'z') \ else if ((PTR)[3] == 'n' && (PTR)[4] == 'z') \
{ \ { \
fprintf (STREAM, "repne"); \ fputs ("repne", (STREAM)); \
(PTR) += 5; \ (PTR) += 5; \
} \ } \
} \ } \
......
...@@ -4201,7 +4201,7 @@ x86_elf_aligned_common (FILE *file, ...@@ -4201,7 +4201,7 @@ x86_elf_aligned_common (FILE *file,
else else
fputs (COMMON_ASM_OP, file); fputs (COMMON_ASM_OP, file);
assemble_name (file, name); 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); size, align / BITS_PER_UNIT);
} }
#endif #endif
...@@ -11818,7 +11818,7 @@ print_operand (FILE *file, rtx x, int code) ...@@ -11818,7 +11818,7 @@ print_operand (FILE *file, rtx x, int code)
char dstr[30]; char dstr[30];
real_to_decimal (dstr, CONST_DOUBLE_REAL_VALUE (x), sizeof (dstr), 0, 1); real_to_decimal (dstr, CONST_DOUBLE_REAL_VALUE (x), sizeof (dstr), 0, 1);
fprintf (file, "%s", dstr); fputs (dstr, file);
} }
else else
......
...@@ -156,7 +156,7 @@ along with GCC; see the file COPYING3. If not see ...@@ -156,7 +156,7 @@ along with GCC; see the file COPYING3. If not see
if ((LOG) > 3 \ if ((LOG) > 3 \
&& (1 << (LOG)) > ((MAX_SKIP) + 1) \ && (1 << (LOG)) > ((MAX_SKIP) + 1) \
&& (MAX_SKIP) >= 7) \ && (MAX_SKIP) >= 7) \
fprintf ((FILE), "\t.p2align 3\n"); \ fputs ("\t.p2align 3\n", (FILE)); \
} \ } \
} \ } \
} while (0) } while (0)
......
...@@ -77,7 +77,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see ...@@ -77,7 +77,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
if ((LOG) > 3 \ if ((LOG) > 3 \
&& (1 << (LOG)) > ((MAX_SKIP) + 1) \ && (1 << (LOG)) > ((MAX_SKIP) + 1) \
&& (MAX_SKIP) >= 7) \ && (MAX_SKIP) >= 7) \
fprintf ((FILE), "\t.p2align 3\n"); \ fputs ("\t.p2align 3\n", (FILE)); \
} \ } \
} \ } \
} while (0) } while (0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment