X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:to:subject:references
	:content-type; q=dns; s=default; b=CDZaq1Tyn5zzu3COll0q223WIAqZt
	IlB8seNksvbj+DqqcupTYgbRGGkjxcTWc9O++/8tbI8IWjZN1WQVrCgI7QBtcUrX
	MBlBTajtyHrIK2lLxvqXO1cjaLIWncu7dxV4B1BlDmVzMktzXVE2nz7zK4rnvdP3
	tCtD9z2kC8ITzE=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:to:subject:references
	:content-type; s=default; bh=rHYSZsntssDPA8/rfIRNkI05aOE=; b=UTS
	I+kpbdf7X9kVTwLnUA2+JvgaHVHTn4Y0fBt0tMRUpBrDHyadW1BeJ2Oy+5XaX5Pc
	XqE0J7C8KdgvBiFKDHtJEsY1BuG7D/bdc84deXeXWARWDuId1o64pIm9bia3M8hd
	ggrOZKVQWaXS4hj32ciippmvgv2wivjaPQXruraM=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
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
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==
Message-ID: <5b82c49c.1c69fb81.386aa.c401@mx.google.com>
Date: Sun, 26 Aug 2018 08:17:48 -0700 (PDT)
From: Steven Penny <svnpenn@gmail.com>
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)

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 <iostream>
    #include <string>
    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

