From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9091F3858C2A; Wed, 2 Aug 2023 13:15:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9091F3858C2A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1690982153; bh=NbYueH9U4XY6L9i37kn8kaHRYpF0flKyzT8Lp0YEEek=; h=From:To:Subject:Date:In-Reply-To:References:From; b=UB0md/leMB2WloQma1fV6C4w3dU/+Jhr7iVcRLAfMbCUzikLQ+rAfKRxs2U2Qs8M5 LX3L6pHAejmlo5q1+r0/dVAabkxO71PwuvDYFg/PWFMssTxlrtexIMiqTBmza564nF G6Las6vwZZYYPe374+P9b6fpe0RrBrpcqYV9niTY= From: "tomas.kalibera at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/95130] GCC ignoring attribute(format(gnu_printf)) on printf in mingw Date: Wed, 02 Aug 2023 13:15:53 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 9.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tomas.kalibera at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95130 --- Comment #16 from Tomas Kalibera --- (In reply to Julian Waters from comment #15) > It seems like the patch also doesn't fix the strftime case too, strangely > enough. gcc with that patch applied still causes a compilation failure in > the Windows JDK when encountering strftime with the %T specifier Given that this bug hasn't attracted enough attention to get fixed, perhaps= you could try reporting this as a wish for improvement of the ms_strftime format (msformat-c.c, ms_time_char_table): probably it should support %T. I don't easily see why the patch doesn't help with %T in strftime. In MinGW= -W64 10, strftime doesn't seem to have a format attribute at all, so the patch couldn't help. But in MinGW-W64 11, the gnu_strftime format attribute is present.=