This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH]: Change format strings for padded hex values from %#02x to 0x%02x


Hello!

This patch fixes padded hex values format strings from %#0nx to 0x%0nx.
Please note, that #%02x will output 00 and 0x1 for input values of 0 and
1, where 0x%02x will output 0x00 and 0x01, as was probably intended.

I have also forgot how alternative output is handled, so I included a
partial revert of my previous patches (sorry for the troubles).

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  Uros Bizjak  <ubizjak@gmail.com>

	Revert:
	* config/i386/i386elf.h (ASM_OUTPUT_ASCII): Change format string
	placeholder from 0x%x to %#x.
	* 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.
	* gcov-dump.c (tag_function): Ditto.
	(tag_summary): Ditto.

Patch was bootstrapped and regression tested on x86_64-pc-linux-gnu,
will be committed to mainline.

Uros.

Attachment: p.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]