From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D24BE3858C5F; Sun, 29 Jan 2023 18:20:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D24BE3858C5F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675016422; bh=nwuicr+yd74BZq6ki1MwvBI7yKScOUwifgoNO9ST1QE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=pntezS4IVuav5ry2rspetGFyCO7dkCpvrv8jmhjO4q1u0Yijk1atWeLvl20uxe05E ucG9GIafI2zu0GG8qD60MMug4EyrJ1rmsCJTIRYX+MuAV/NqSg6/BFTssZ0+Mpvkbm SakHrB+2GVTdQXY1y0fydFE2bJG7cPlHokUO1EYA= From: "alvinhochun 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: Sun, 29 Jan 2023 18:20:21 +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: alvinhochun 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: cc 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 Alvin Wong changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |alvinhochun at gmail dot c= om --- Comment #14 from Alvin Wong --- `strftime` is another case that's affected. UCRT supports C99 formats (e.g.= %F, %T) but GCC warns because of the hardcoded built-in ms_strftime format attribute, even though mingw-w64 has specified gnu_strftime.=