From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 02847385842B; Thu, 3 Aug 2023 16:33:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 02847385842B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1691080385; bh=4m/CEUS0k3gQwgkl1nIhYnutAcB9AawDejptVJxuhF4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=r4Y86C0pS6SzRqr9/z4xVkAq/spdlMrDbezddffWSH/FULM7L2Bn87MdL3h6dxMab NYCSh4tOwXxtuOI0aI5LvyVWasWJZ17kFQ5/fpi4fVzjgcbQdVA45YXstEN+kbc1HM qkQ+dAR5PFgKhAU1/2sbvs0KsoSwAT7fngwLS1t0= 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: Thu, 03 Aug 2023 16:33:02 +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 #17 from Tomas Kalibera --- (In reply to Tomas Kalibera from comment #16) > (In reply to Julian Waters from comment #15) > > It seems like the patch also doesn't fix the strftime case too, strange= ly > > enough. gcc with that patch applied still causes a compilation failure = in > > the Windows JDK when encountering strftime with the %T specifier >=20 > > 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. The older version of the patch I use with gcc 12 doesn't seem to be helping with %T, but the newer one (patch_master.diff) helps with %T on the current= gcc master (gcc 14) and the current gcc 13 branch (gcc 13.2). Tested with MinGW= -W64 11.0.1.=