]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gmon-sol2.c (_mcleanup): Change format string placeholder from 0x%x to %#x.
authorUros Bizjak <uros@gcc.gnu.org>
Sun, 25 Apr 2010 08:11:46 +0000 (10:11 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Sun, 25 Apr 2010 08:11:46 +0000 (10:11 +0200)
* 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.

From-SVN: r158699

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

index f1389d84f9449e50d40dceb048c1856e840cf59f..8ee8c20897632d4e67781931873f6a8ca3493177 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 30616904fe2cfc8140e1929b08268d393b47eee3..5299e787438ad115f9e8b8d949fa37031056c2cd 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 fb813a12d25aa99e6b224f12599eb73a0079d020..dd87d5f72773755ee97d6e8676eb046fa7cc3303 100644 (file)
@@ -223,7 +223,7 @@ _mcleanup (void)
        return;
     }
 #   ifdef DEBUG
-       fprintf( stderr , "[mcleanup] sbuf 0x%x ssiz %d\n" , sbuf , ssiz );
+       fprintf( stderr , "[mcleanup] sbuf %#x ssiz %d\n" , sbuf , ssiz );
 #   endif /* DEBUG */
 
     write( fd , sbuf , ssiz );
index 060b82ca245e4b397c49cb199c2e978ff06d464f..5d7bfac995bad8d86d60cd3d2d69b606c3b6c6dd 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 f91410a2d6623532759f0b30ee3fd2ccf0562d29..3e887f81612be1fdb556fac023436b5099a80413 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 44cf6818f7c5fe1e935bcca2f4a2309275adeb76..a550243111490a6cb0d37ddb46c7ffc073898d9a 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 63c0cbc85a78b1bfacb4eb923e121fb131b4ddc0..1dc0a36fb544360dabb16b224868083259903b32 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;                                      \
            }                                                           \
        }                                                               \