OSDN Git Service

* config/i386/gmon-sol2.c (_mcleanup): Change format string
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 25 Apr 2010 08:11:46 +0000 (08:11 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 04:48:25 +0000 (13:48 +0900)
placeholder from 0x%x to %#x.
* config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
* config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
* config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
* config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
* config/i386/i386.c (ix86_target_string): Ditto.
(output_pic_addr_const): Ditto.
(print_operand): Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158699 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/att.h
gcc/config/i386/i386-interix.h
gcc/config/i386/i386.c
gcc/config/i386/i386elf.h
gcc/config/i386/sysv4.h

index f1389d8..8ee8c20 100644 (file)
@@ -1,3 +1,15 @@
+2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
+
+       * config/i386/gmon-sol2.c (_mcleanup): Change format string
+       placeholder from 0x%x to %#x.
+       * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
+       * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
+       * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
+       * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
+       * config/i386/i386.c (ix86_target_string): Ditto.
+       (output_pic_addr_const): Ditto.
+       (print_operand): Ditto.
+
 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
 
        * combine.c (find_split_point): Add third argument.  Use it
 
 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
 
-       * toplev.c (general_init): Set default for
-       fdiagnostics-show-option.
+       * toplev.c (general_init): Set default for fdiagnostics-show-option.
        * opts.c (common_handle_option): Allow disabling it.
-       * common.opt (fdiagnostics-show-option): Add Var. Enabled by
-       default.
-       
+       * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
+
 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
 
        * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
        * tree-ssa-math-opts.c (execute_optimize_widening_mul,
        gate_optimize_widening_mul): New static functions.
        (pass_optimize_widening_mul): New.
-       * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New
-       case.
+       * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
        <case MULT_EXPR>: Remove support for widening multiplies.
        * tree.def (WIDEN_MULT_EXPR): Tweak comment.
        * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
index 2790778..5299e78 100644 (file)
@@ -46,7 +46,7 @@ do                                                            \
     { if (i%10 == 0) { if (i!=0) putc ('\n', (FILE));          \
                       fputs (ASM_BYTE, (FILE)); }              \
       else putc (',', (FILE));                                 \
-      fprintf ((FILE), "0x%x", ((PTR)[i++] & 0377)) ;}         \
+      fprintf ((FILE), "%#x", ((PTR)[i++] & 0377)) ;}          \
       putc ('\n', (FILE));                                     \
 } while (0)
 
index 060b82c..5d7bfac 100644 (file)
@@ -212,7 +212,7 @@ along with GCC; see the file COPYING3.  If not see
                fputs (ASM_BYTE, (FILE));                               \
              else                                                      \
                fputc (',', (FILE));                                    \
-             fprintf ((FILE), "0x%02x", *_ascii_bytes);                \
+             fprintf ((FILE), "%#02x", *_ascii_bytes);                 \
              bytes_in_chunk += 5;                                      \
            }                                                           \
        }                                                               \
index f91410a..3e887f8 100644 (file)
@@ -2512,7 +2512,7 @@ ix86_target_string (int isa, int flags, const char *arch, const char *tune,
   if (isa && add_nl_p)
     {
       opts[num++][0] = isa_other;
-      sprintf (isa_other, "(other isa: 0x%x)", isa);
+      sprintf (isa_other, "(other isa: %#x)", isa);
     }
 
   /* Add flag options.  */
@@ -2528,7 +2528,7 @@ ix86_target_string (int isa, int flags, const char *arch, const char *tune,
   if (flags && add_nl_p)
     {
       opts[num++][0] = target_other;
-      sprintf (target_other, "(other flags: 0x%x)", isa);
+      sprintf (target_other, "(other flags: %#x)", isa);
     }
 
   /* Add -fpmath= option.  */
@@ -10841,7 +10841,7 @@ output_pic_addr_const (FILE *file, rtx x, int code)
        {
          /* We can use %d if the number is <32 bits and positive.  */
          if (CONST_DOUBLE_HIGH (x) || CONST_DOUBLE_LOW (x) < 0)
-           fprintf (file, "0x%lx%08lx",
+           fprintf (file, "%#lx%08lx",
                     (unsigned long) CONST_DOUBLE_HIGH (x),
                     (unsigned long) CONST_DOUBLE_LOW (x));
          else
@@ -12005,7 +12005,7 @@ print_operand (FILE *file, rtx x, int code)
 
       if (ASSEMBLER_DIALECT == ASM_ATT)
        putc ('$', file);
-      fprintf (file, "0x%08lx", (long unsigned int) l);
+      fprintf (file, "%#08lx", (long unsigned int) l);
     }
 
   /* These float cases don't actually occur as immediate operands.  */
index c3f930a..a550243 100644 (file)
@@ -88,7 +88,7 @@ along with GCC; see the file COPYING3.  If not see
                fputs (ASM_BYTE, (FILE));                               \
              else                                                      \
                fputc (',', (FILE));                                    \
-             fprintf ((FILE), "0x%02x", *_ascii_bytes);                        \
+             fprintf ((FILE), "%#02x", *_ascii_bytes);                 \
              bytes_in_chunk += 5;                                      \
            }                                                           \
        }                                                               \
index 63c0cbc..1dc0a36 100644 (file)
@@ -80,7 +80,7 @@ along with GCC; see the file COPYING3.  If not see
                fputs (ASM_BYTE, (FILE));                               \
              else                                                      \
                fputc (',', (FILE));                                    \
-             fprintf ((FILE), "0x%02x", *_ascii_bytes);                \
+             fprintf ((FILE), "%#02x", *_ascii_bytes);                 \
              bytes_in_chunk += 5;                                      \
            }                                                           \
        }                                                               \