[patch]: Fix bootstrap/PR 25502: I64d format Werror problem in build
Kai Tietz
Kai.Tietz@onevision.com
Fri Sep 5 11:21:00 GMT 2008
Hello,
this patch fixes PR/25502 by introducing an optional custom initialization
routine to c-format.c. I named it TARGET_OVERRIDES_FORMAT_INIT,
accordingly to the other target macros there. I introduced for mingw
targets an new warning named -Wpedantic-ms-format. By default it is on for
32-bit, for 64-bit by default off.
ChangeLog
2008-09-05 Kai Tietz <kai.tietz@onevision.com>
Fix PR/25502
* c-format.c (convert_format_name_to_system_name): Use
TARGET_OVERRIDES_FORMAT_INIT.
* config.gcc (extra_options): Add for mingw targets mingw.opt.
* config/i386/mingw.opt: New.
* config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_INIT): New.
* config/i386/msformat-c.c (TARGET_OVERRIDES_FORMAT_INIT): New.
(ms_printf_length_specs): Removed const specifier.
* doc/tm.texi (TARGET_OVERRIDES_FORMAT_INIT): New.
I tested this patch for x86_64-pc-mingw32. Is this patch ok for apply?
Cheers,
Kai
| (\_/) This is Bunny. Copy and paste Bunny
| (='.'=) into your signature to help him gain
| (")_(") world domination.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mingw-ped-warning.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080905/ae6fa0b7/attachment.txt>
More information about the Gcc-patches
mailing list