public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "burnus at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/42950] gfortran testsuite failures on mingw64 Date: Thu, 04 Mar 2010 17:56:00 -0000 [thread overview] Message-ID: <20100304175623.8358.qmail@sourceware.org> (raw) In-Reply-To: <bug-42950-13404@http.gcc.gnu.org/bugzilla/> ------- Comment #4 from burnus at gcc dot gnu dot org 2010-03-04 17:56 ------- Another patch - please try! Index: libgfortran.h =================================================================== --- libgfortran.h (revision 157215) +++ libgfortran.h (working copy) @@ -121,2 +121,9 @@ extern int __mingw_snprintf (char *, siz +/* MinGW needs to use the gnu_printf formatter. */ +#if __MINGW32__ +# define PRINTF_FORMAT gnu_printf +#else +# define PRINTF_FORMAT printf +#endif + @@ -705,3 +712,3 @@ internal_proto(show_locus); extern void runtime_error (const char *, ...) - __attribute__ ((noreturn, format (printf, 1, 2))); + __attribute__ ((noreturn, format (PRINTF_FORMAT, 1, 2))); iexport_proto(runtime_error); @@ -709,3 +716,3 @@ iexport_proto(runtime_error); extern void runtime_error_at (const char *, const char *, ...) - __attribute__ ((noreturn, format (printf, 2, 3))); + __attribute__ ((noreturn, format (PRINTF_FORMAT, 2, 3))); iexport_proto(runtime_error_at); @@ -713,3 +720,3 @@ iexport_proto(runtime_error_at); extern void runtime_warning_at (const char *, const char *, ...) - __attribute__ ((format (printf, 2, 3))); + __attribute__ ((format (PRINTF_FORMAT, 2, 3))); iexport_proto(runtime_warning_at); @@ -797,3 +804,3 @@ internal_proto(unit_to_fd); extern int st_printf (const char *, ...) - __attribute__ ((format (printf, 1, 2))); + __attribute__ ((format (PRINTF_FORMAT, 1, 2))); internal_proto(st_printf); -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42950
next prev parent reply other threads:[~2010-03-04 17:56 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-02-03 21:09 [Bug fortran/42950] New: " burnus at gcc dot gnu dot org 2010-02-04 4:10 ` [Bug fortran/42950] " nightstrike at gmail dot com 2010-02-04 12:32 ` burnus at gcc dot gnu dot org 2010-02-28 17:42 ` burnus at gcc dot gnu dot org 2010-03-04 17:56 ` burnus at gcc dot gnu dot org [this message] 2010-03-04 19:09 ` pinskia at gcc dot gnu dot org 2010-03-05 10:04 ` ktietz at gcc dot gnu dot org 2010-03-05 10:34 ` ktietz at gcc dot gnu dot org 2010-03-06 7:21 ` ktietz at gcc dot gnu dot org 2010-03-08 2:54 ` jvdelisle at gcc dot gnu dot org 2010-03-08 8:03 ` ktietz at gcc dot gnu dot org 2010-03-12 8:57 ` ktietz at gcc dot gnu dot org 2010-03-17 9:30 ` burnus at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20100304175623.8358.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).