diff options
-rw-r--r-- | gcc/ChangeLog | 18 | ||||
-rw-r--r-- | gcc/config/i386/att.h | 2 | ||||
-rw-r--r-- | gcc/config/i386/i386-interix.h | 2 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 2 | ||||
-rw-r--r-- | gcc/config/i386/i386elf.h | 2 | ||||
-rw-r--r-- | gcc/config/i386/sysv4.h | 2 | ||||
-rw-r--r-- | gcc/gcov-dump.c | 4 | ||||
-rw-r--r-- | gcc/gcov-iov.c | 2 | ||||
-rw-r--r-- | gcc/genchecksum.c | 2 |
9 files changed, 23 insertions, 13 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 88aa4b0..bfce823 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,8 +1,14 @@ +2010-05-02 Uros Bizjak <ubizjak@gmail.com> + + * gcov-iov.c (main): Change format string placeholder + from %#08x to 0x%08x. + * genchecksum.c (dosum): Change format string placeholder + from %#02x to 0x%02x. + 2010-05-02 Richard Guenther <rguenther@suse.de> PR tree-optimization/43879 - * tree-tailcall.c (find_tail_calls): Clobbers also prevent - tail calls. + * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls. 2010-05-02 Bruno Haible <bruno@clisp.org> @@ -14,7 +20,13 @@ * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string placeholder from 0x%x to %#x. (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto. + * 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. * config/i386/i386.c (output_pic_addr_const): Ditto. + (print_operand): Ditto. 2010-05-02 Uros Bizjak <ubizjak@gmail.com> @@ -30,8 +42,6 @@ (HOST_WIDE_INT_PRINT_HEX): Ditto. (HOST_WIDEST_INT_PRINT_HEX): Ditto. (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto. - * gcov-dump.c (tag_function): Ditto. - (tag_summary): Ditto. 2010-05-01 Anatoly Sokolov <aesok@post.ru> diff --git a/gcc/config/i386/att.h b/gcc/config/i386/att.h index 5299e78..2790778 100644 --- a/gcc/config/i386/att.h +++ b/gcc/config/i386/att.h @@ -46,7 +46,7 @@ do \ { if (i%10 == 0) { if (i!=0) putc ('\n', (FILE)); \ fputs (ASM_BYTE, (FILE)); } \ else putc (',', (FILE)); \ - fprintf ((FILE), "%#x", ((PTR)[i++] & 0377)) ;} \ + fprintf ((FILE), "0x%x", ((PTR)[i++] & 0377)) ;} \ putc ('\n', (FILE)); \ } while (0) diff --git a/gcc/config/i386/i386-interix.h b/gcc/config/i386/i386-interix.h index 5d7bfac..060b82c 100644 --- a/gcc/config/i386/i386-interix.h +++ b/gcc/config/i386/i386-interix.h @@ -212,7 +212,7 @@ along with GCC; see the file COPYING3. If not see fputs (ASM_BYTE, (FILE)); \ else \ fputc (',', (FILE)); \ - fprintf ((FILE), "%#02x", *_ascii_bytes); \ + fprintf ((FILE), "0x%02x", *_ascii_bytes); \ bytes_in_chunk += 5; \ } \ } \ diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index b722c4d..8cec42f 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -12007,7 +12007,7 @@ print_operand (FILE *file, rtx x, int code) if (ASSEMBLER_DIALECT == ASM_ATT) putc ('$', file); - fprintf (file, "%#08lx", (long unsigned int) l); + fprintf (file, "0x%08lx", (long unsigned int) l); } /* These float cases don't actually occur as immediate operands. */ diff --git a/gcc/config/i386/i386elf.h b/gcc/config/i386/i386elf.h index a550243..c3f930a 100644 --- a/gcc/config/i386/i386elf.h +++ b/gcc/config/i386/i386elf.h @@ -88,7 +88,7 @@ along with GCC; see the file COPYING3. If not see fputs (ASM_BYTE, (FILE)); \ else \ fputc (',', (FILE)); \ - fprintf ((FILE), "%#02x", *_ascii_bytes); \ + fprintf ((FILE), "0x%02x", *_ascii_bytes); \ bytes_in_chunk += 5; \ } \ } \ diff --git a/gcc/config/i386/sysv4.h b/gcc/config/i386/sysv4.h index 1dc0a36..63c0cbc 100644 --- a/gcc/config/i386/sysv4.h +++ b/gcc/config/i386/sysv4.h @@ -80,7 +80,7 @@ along with GCC; see the file COPYING3. If not see fputs (ASM_BYTE, (FILE)); \ else \ fputc (',', (FILE)); \ - fprintf ((FILE), "%#02x", *_ascii_bytes); \ + fprintf ((FILE), "0x%02x", *_ascii_bytes); \ bytes_in_chunk += 5; \ } \ } \ diff --git a/gcc/gcov-dump.c b/gcc/gcov-dump.c index 8aa6368..6b06d95 100644 --- a/gcc/gcov-dump.c +++ b/gcc/gcov-dump.c @@ -267,7 +267,7 @@ tag_function (const char *filename ATTRIBUTE_UNUSED, unsigned long pos = gcov_position (); printf (" ident=%u", gcov_read_unsigned ()); - printf (", checksum=%#08x", gcov_read_unsigned ()); + printf (", checksum=0x%08x", gcov_read_unsigned ()); if (gcov_position () - pos < length) { @@ -418,7 +418,7 @@ tag_summary (const char *filename ATTRIBUTE_UNUSED, unsigned ix; gcov_read_summary (&summary); - printf (" checksum=%#08x", summary.checksum); + printf (" checksum=0x%08x", summary.checksum); for (ix = 0; ix != GCOV_COUNTERS_SUMMABLE; ix++) { diff --git a/gcc/gcov-iov.c b/gcc/gcov-iov.c index de2c322..19de059 100644 --- a/gcc/gcov-iov.c +++ b/gcc/gcov-iov.c @@ -64,7 +64,7 @@ main (int argc, char **argv) printf (" from `%s (%lu %lu) and %s (%c)'. */\n", argv[1], major, minor, argv[2], phase); printf ("\n"); - printf ("#define GCOV_VERSION ((gcov_unsigned_t)%#08x) /* %.4s */\n", + printf ("#define GCOV_VERSION ((gcov_unsigned_t)0x%08x) /* %.4s */\n", version, v); return 0; diff --git a/gcc/genchecksum.c b/gcc/genchecksum.c index 38487a0..235d4fe 100644 --- a/gcc/genchecksum.c +++ b/gcc/genchecksum.c @@ -60,7 +60,7 @@ dosum (const char *file) puts ("#include \"system.h\""); fputs ("EXPORTED_CONST unsigned char executable_checksum[16] = { ", stdout); for (i = 0; i < 16; i++) - printf ("%#02x%s", result[i], i == 15 ? " };\n" : ", "); + printf ("0x%02x%s", result[i], i == 15 ? " };\n" : ", "); } int |