OSDN Git Service

* config/i386/linux.c: Use fputs or putc instead of fprintf
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Jul 2009 19:33:14 +0000 (19:33 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Jul 2009 19:33:14 +0000 (19:33 +0000)
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
gcc/config/i386/att.h
gcc/config/i386/gas.h
gcc/config/i386/i386.c
gcc/config/i386/linux.h
gcc/config/i386/x86-64.h

index 2d1c447..5fc84c6 100644 (file)
@@ -1,3 +1,11 @@
+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>
 
        * 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.
index 5f93925..6586ddd 100644 (file)
@@ -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.  */
 
index c4dafc6..4c7c9d1 100644 (file)
@@ -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;                                                   \
        }                                                               \
     }                                                                  \
index 35c169a..042ff44 100644 (file)
@@ -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
index 9742b9b..9b51496 100644 (file)
@@ -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)
index 5d6958c..1b64813 100644 (file)
@@ -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)