From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4F860384AB5C; Fri, 19 Apr 2024 03:28:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4F860384AB5C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713497287; bh=Ffk8Sh8GwD9sU98DjBNPPvu1b+2eTyJmHfmmhTmZF6k=; h=From:To:Subject:Date:In-Reply-To:References:From; b=EeGrXp0fNoEfw+oBiB84wPErolPK3kNWnRikbSca5pmCAB8tEY9MbQHnLQ4gEWvG2 6zHYSiLZbfX3a3j7+b6OBI91JTmwuEi/RoYTkaNwftvSVpGv8yDn9UprIbkG8bYUjt h+FSuKIlvP59aZbGaPsrCnMB05G7Eh2Jhc1rMtb8= From: "lh_mouse at 126 dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/95130] GCC ignoring attribute(format(gnu_printf)) on printf in mingw Date: Fri, 19 Apr 2024 03:28:06 +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: lh_mouse at 126 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 #24 from LIU Hao --- (In reply to Andrew Pinski from comment #23) > Note since MSVC 2015 runtime, printf has support %ll so ms_printf should = be > fixed to incldue that. >=20 > https://learn.microsoft.com/en-us/cpp/c-runtime-library/format-specificat= ion- > syntax-printf-and-wprintf-functions?view=3Dmsvc-140 >=20 > I think for GCC 15, we should just update ms_printf to the 2015 version of > what is supported ... `%ll` has been supported since c51f1e7427e6a5ae2a6d82b5a790df77a3adc99a. `%L` (for floating-point specifiers) is not compatible between `ms_printf` = and `gnu_printf`.=