From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 115616 invoked by alias); 26 Aug 2018 15:17:53 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 115607 invoked by uid 89); 26 Aug 2018 15:17:52 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=1.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SEM_URI,SEM_URIRED,SPF_PASS autolearn=no version=3.3.2 spammy=mingw, H*M:1c69fb81, debian, H*M:google X-HELO: mail-oi0-f44.google.com Received: from mail-oi0-f44.google.com (HELO mail-oi0-f44.google.com) (209.85.218.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 26 Aug 2018 15:17:50 +0000 Received: by mail-oi0-f44.google.com with SMTP id r69-v6so22537401oie.3 for ; Sun, 26 Aug 2018 08:17:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:to:subject:references:user-agent; bh=OUO0HOVoEUoa6qQ9meFFJ4/WqK/GLa8R5eCAoGhNbsY=; b=SECzAGi14HAtG3PD9dJxXC974JDLUpK+9275dcQOv7eHCbtXbJetmJN91wsHmZhjde JiOmwC0YqY4vnyCfdneN47+JMV7XKLXpHS0XMbZc+qQGGOObm0lbIpFUl5JeWLfI3p2N VgiSsWKnKI0iIrI0HOKiWxLWxbtroEjBqiDLZvfjV+px/I3TI7MDuKDbnWJT4LaTRzrk Xr6mCGS09QNeucqTN5lYaApurTGSOReSt+UbpR5s5IIgYawScmcLetE+f/yGJ+UG/YJM /d4VpG/wMm77VwH3lH31yXVXlyh1F9imRt3BOay94h7fJ8rIlSzMHADUY6z4aJpehiZy klDQ== Return-Path: Received: from HIL (cpe-76-182-193-237.tx.res.rr.com. [76.182.193.237]) by smtp.gmail.com with ESMTPSA id e143-v6sm27468821oic.56.2018.08.26.08.17.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Aug 2018 08:17:48 -0700 (PDT) Message-ID: <5b82c49c.1c69fb81.386aa.c401@mx.google.com> Date: Mon, 27 Aug 2018 03:32:00 -0000 From: Steven Penny To: cygwin@cygwin.com Subject: Re: [ANNOUNCEMENT] [Updated] mingw64-{i686,x86_64}-gcc-7.3.0-1 (Test) References: <58485808-126c-888c-a41a-2d211660dd10@gmail.com> Content-Type: text/plain; charset=utf8; format=flowed User-Agent: Tryst/2.8.0 (cup.github.io/tryst) X-SW-Source: 2018-08/txt/msg00334.txt.bz2 On Sun, 26 Aug 2018 12:51:40, JonY wrote: > Can you roll back to the previous x86_64-w64-binutils and find out if it > makes a difference? > > Other than that, I'm quite out of ideas. Using this file: $ cat stoi.cpp #include #include main() { std::cout << std::stoi("3.14159") << std::endl; } and these: mingw64-x86_64-gcc-g++ 7.3.0 mingw64-x86_64-gcc-core 7.3.0 and mingw64-x86_64-binutils 2.29.1: $ time x86_64-w64-mingw32-g++ -static stoi.cpp; wc -c a.exe real 0m2.337s 11577536 a.exe now with mingw64-x86_64-binutils 2.28.1: $ time x86_64-w64-mingw32-g++ -static stoi.cpp; wc -c a.exe real 0m2.300s 11577470 a.exe now with mingw64-x86_64-binutils 2.25.0: $ time x86_64-w64-mingw32-g++ -static stoi.cpp; wc -c a.exe real 0m2.350s 11577536 a.exe Going back to my original theory - it seems something is wrong with "libstdc++.a", and has been for some time. Here a summation of the Cygwin versions: Name: libstdc++.a Name: usr\lib\gcc\x86_64-w64-mingw32\7.3.0\ Size: 22 446 354 Name: libstdc++.a Name: usr\lib\gcc\x86_64-w64-mingw32\6.4.0\ Size: 22 066 330 Name: libstdc++.a Name: usr\lib\gcc\x86_64-w64-mingw32\6.3.0\ Size: 22 034 356 Name: libstdc++.a Name: usr\lib\gcc\x86_64-w64-mingw32\5.4.0\ Size: 20 719 186 Compare this with Msys2: Name: libstdc++.a Name: mingw64\lib\gcc\x86_64-w64-mingw32\7.3.0\ Size: 5 596 296 or with Debian: Name: .\usr\lib\gcc\x86_64-w64-mingw32\7.3-posix\ Name: libstdc++.a Size: 5 093 564 Or Ubuntu: Name: .\usr\lib\gcc\x86_64-w64-mingw32\7.3-posix\ Name: libstdc++.a Size: 5 085 236 References: - http://mirror.rit.edu/cygwin/x86_64/release/mingw64-x86_64-gcc/mingw64-x86_64-gcc-g%2b%2b - http://packages.debian.org/buster/g++-mingw-w64-x86-64 - http://packages.ubuntu.com/hu/bionic/g++-mingw-w64-x86-64 - http://repo.msys2.org/mingw/x86_64 -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple