X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2CB27383D012
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1623530823;
	bh=pMGo3TSdEm1bINwtaHVk6yRPIyMao+ioWAPf6FVbvpQ=;
	h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post:
	 List-Help:List-Subscribe:From:Reply-To:From;
	b=aXTUvdjY0oTgubNL9nAMwe0tNQtFFGJ36jqQ9AYgXcu5WrvM/dxqd4aDU3vIOfhzY
	 0Iw4EH4u9fXiJ3I9g9gU3OOuh6eUcNceLmwQns+YRB2m8FyR6c5lfZtC9Og6qsjvhi
	 UNzp/UHCmgAkz/OYrhETqpMtNlKhV1Ks3W3H8IRs=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D35663855031
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=zEGupiI6OJPthWHJ+CxudzJyeeGQxIrDvl/MBK+nlLo=;
 b=cSawFgjFzB/FKZelLqYPXTNL/VKSorI0cTuxguMnHOt9GrBe0fl9/aAWz9FBd43WVp
 aAlmlLDB5DjIW2Q++lltBqLpW37PtiZJwWVX/9TbmCs3bZtQOORzevUW6m1itVnf+OZT
 IoSC54OfuGnZaY3RLURIzj9u+hfuQ+wlLre31fzGF1py7E9UR68W2S8F1cJCu3Bdp5PO
 w8z5+2zOd8rLVfqswVFfv8SmUN+nIY8tRbXRt6TELfqLbFCi2mUOa4JP5i1Pspfzqau6
 sTCyHtJnxiJc8fXlRmDYFoNrVFEqePUPAe9oYU3OkLFAHrWg/eykj8vUw2kMtKfjdSwR
 YjOQ==
X-Gm-Message-State: AOAM532y9VoEpDC1AopFHK13ph/h1LSyWKhOk8MWNuYcUmpoOor6tLRz
 s52RUCfwxTu8I+cgcHSJk7aE8GchZb31ezKDGGjsXwy7k61C/A==
X-Google-Smtp-Source: ABdhPJxNYCiB82dnSekNIGslmLMBpR8d0aJQO8xwyS+7ElNBMTX2hXQte1MXZIx6rKqvxRTbCjOY7VNAx7ZXCThtQYk=
X-Received: by 2002:a25:5010:: with SMTP id e16mr2806267ybb.201.1623530790320; 
 Sat, 12 Jun 2021 13:46:30 -0700 (PDT)
MIME-Version: 1.0
Date: Sat, 12 Jun 2021 23:45:54 +0300
Message-ID: <CAL9Mx1uMOz2wfqbMpD_xfA=D9JkpFzVz6AR_DKHK34AvrGOP6w@mail.gmail.com>
Subject: gcc 11.1.0: printf("%.43f\n", 0x1.52f8a8e32e982p-140): printed value
 is incorrectly rounded
To: cygwin@cygwin.com
X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE,
 KAM_LOTSOFHASH, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
 TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Pavel M via Cygwin <cygwin@cygwin.com>
Reply-To: Pavel M <pavel.morozkin@gmail.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

Sample code (t903.c):
#include <stdio.h>
int main(void)
{
    printf("%.43f\n", 0x1.52f8a8e32e982p-140);
    return 0;
}

Invocations:
# gcc on Windows 10 (Cygwin)
$ gcc t903.c -Wall -Wextra -std=c11 -pedantic -Wfatal-errors && ./a.exe
0.0000000000000000000000000000000000000000010

$ gcc --version
gcc (GCC) 11.1.0

# gcc on Linux
$ gcc t903.c -Wall -Wextra -std=c11 -pedantic -Wfatal-errors && ./a.exe
0.0000000000000000000000000000000000000000009

# clang on Windows
$ clang t903.c -Wall -Wextra -std=c11 -ffp-model=strict -pedantic
-Wfatal-errors && ./a.exe
0.0000000000000000000000000000000000000000009

# cl on Windows
$ cl t903.c /std:c11 /Za /fp:strict && ./t903.exe
0.0000000000000000000000000000000000000000009

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
