Commit 3d416346 by Uros Bizjak

gmon-sol2.c (_mcleanup): Change format string placeholder from 0x%x to %#x.

	* 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
parent 910ed7dc
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> 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
* combine.c (find_split_point): Add third argument. Use it * combine.c (find_split_point): Add third argument. Use it
...@@ -16,12 +28,10 @@ ...@@ -16,12 +28,10 @@
2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org> 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
* toplev.c (general_init): Set default for * toplev.c (general_init): Set default for fdiagnostics-show-option.
fdiagnostics-show-option.
* opts.c (common_handle_option): Allow disabling it. * opts.c (common_handle_option): Allow disabling it.
* common.opt (fdiagnostics-show-option): Add Var. Enabled by * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
default.
2010-04-23 Eric Botcazou <ebotcazou@adacore.com> 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
* expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
...@@ -208,8 +218,7 @@ ...@@ -208,8 +218,7 @@
* tree-ssa-math-opts.c (execute_optimize_widening_mul, * tree-ssa-math-opts.c (execute_optimize_widening_mul,
gate_optimize_widening_mul): New static functions. gate_optimize_widening_mul): New static functions.
(pass_optimize_widening_mul): New. (pass_optimize_widening_mul): New.
* expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
case.
<case MULT_EXPR>: Remove support for widening multiplies. <case MULT_EXPR>: Remove support for widening multiplies.
* tree.def (WIDEN_MULT_EXPR): Tweak comment. * tree.def (WIDEN_MULT_EXPR): Tweak comment.
* cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
......
...@@ -46,7 +46,7 @@ do \ ...@@ -46,7 +46,7 @@ do \
{ if (i%10 == 0) { if (i!=0) putc ('\n', (FILE)); \ { if (i%10 == 0) { if (i!=0) putc ('\n', (FILE)); \
fputs (ASM_BYTE, (FILE)); } \ fputs (ASM_BYTE, (FILE)); } \
else putc (',', (FILE)); \ else putc (',', (FILE)); \
fprintf ((FILE), "0x%x", ((PTR)[i++] & 0377)) ;} \ fprintf ((FILE), "%#x", ((PTR)[i++] & 0377)) ;} \
putc ('\n', (FILE)); \ putc ('\n', (FILE)); \
} while (0) } while (0)
......
...@@ -223,7 +223,7 @@ _mcleanup (void) ...@@ -223,7 +223,7 @@ _mcleanup (void)
return; return;
} }
# ifdef DEBUG # 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 */ # endif /* DEBUG */
write( fd , sbuf , ssiz ); write( fd , sbuf , ssiz );
......
...@@ -212,7 +212,7 @@ along with GCC; see the file COPYING3. If not see ...@@ -212,7 +212,7 @@ along with GCC; see the file COPYING3. If not see
fputs (ASM_BYTE, (FILE)); \ fputs (ASM_BYTE, (FILE)); \
else \ else \
fputc (',', (FILE)); \ fputc (',', (FILE)); \
fprintf ((FILE), "0x%02x", *_ascii_bytes); \ fprintf ((FILE), "%#02x", *_ascii_bytes); \
bytes_in_chunk += 5; \ bytes_in_chunk += 5; \
} \ } \
} \ } \
......
...@@ -2512,7 +2512,7 @@ ix86_target_string (int isa, int flags, const char *arch, const char *tune, ...@@ -2512,7 +2512,7 @@ ix86_target_string (int isa, int flags, const char *arch, const char *tune,
if (isa && add_nl_p) if (isa && add_nl_p)
{ {
opts[num++][0] = isa_other; opts[num++][0] = isa_other;
sprintf (isa_other, "(other isa: 0x%x)", isa); sprintf (isa_other, "(other isa: %#x)", isa);
} }
/* Add flag options. */ /* Add flag options. */
...@@ -2528,7 +2528,7 @@ ix86_target_string (int isa, int flags, const char *arch, const char *tune, ...@@ -2528,7 +2528,7 @@ ix86_target_string (int isa, int flags, const char *arch, const char *tune,
if (flags && add_nl_p) if (flags && add_nl_p)
{ {
opts[num++][0] = target_other; opts[num++][0] = target_other;
sprintf (target_other, "(other flags: 0x%x)", isa); sprintf (target_other, "(other flags: %#x)", isa);
} }
/* Add -fpmath= option. */ /* Add -fpmath= option. */
...@@ -10841,7 +10841,7 @@ output_pic_addr_const (FILE *file, rtx x, int code) ...@@ -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. */ /* We can use %d if the number is <32 bits and positive. */
if (CONST_DOUBLE_HIGH (x) || CONST_DOUBLE_LOW (x) < 0) 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_HIGH (x),
(unsigned long) CONST_DOUBLE_LOW (x)); (unsigned long) CONST_DOUBLE_LOW (x));
else else
...@@ -12005,7 +12005,7 @@ print_operand (FILE *file, rtx x, int code) ...@@ -12005,7 +12005,7 @@ print_operand (FILE *file, rtx x, int code)
if (ASSEMBLER_DIALECT == ASM_ATT) if (ASSEMBLER_DIALECT == ASM_ATT)
putc ('$', file); 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. */ /* These float cases don't actually occur as immediate operands. */
......
...@@ -88,7 +88,7 @@ along with GCC; see the file COPYING3. If not see ...@@ -88,7 +88,7 @@ along with GCC; see the file COPYING3. If not see
fputs (ASM_BYTE, (FILE)); \ fputs (ASM_BYTE, (FILE)); \
else \ else \
fputc (',', (FILE)); \ fputc (',', (FILE)); \
fprintf ((FILE), "0x%02x", *_ascii_bytes); \ fprintf ((FILE), "%#02x", *_ascii_bytes); \
bytes_in_chunk += 5; \ bytes_in_chunk += 5; \
} \ } \
} \ } \
......
...@@ -80,7 +80,7 @@ along with GCC; see the file COPYING3. If not see ...@@ -80,7 +80,7 @@ along with GCC; see the file COPYING3. If not see
fputs (ASM_BYTE, (FILE)); \ fputs (ASM_BYTE, (FILE)); \
else \ else \
fputc (',', (FILE)); \ fputc (',', (FILE)); \
fprintf ((FILE), "0x%02x", *_ascii_bytes); \ fprintf ((FILE), "%#02x", *_ascii_bytes); \
bytes_in_chunk += 5; \ bytes_in_chunk += 5; \
} \ } \
} \ } \
......
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