public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Steven Penny <svnpenn@gmail.com>
To: cygwin@cygwin.com
Subject: Re: [ANNOUNCEMENT] [Updated] mingw64-{i686,x86_64}-gcc-7.3.0-1 (Test)
Date: Mon, 27 Aug 2018 03:32:00 -0000	[thread overview]
Message-ID: <5b82c49c.1c69fb81.386aa.c401@mx.google.com> (raw)
In-Reply-To: <58485808-126c-888c-a41a-2d211660dd10@gmail.com>

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

  reply	other threads:[~2018-08-26 15:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-18 23:52 JonY
2018-08-21 15:16 ` Steven Penny
2018-08-24 19:06   ` JonY
2018-08-25  4:55     ` Steven Penny
2018-08-26 14:04       ` JonY
2018-08-27  3:32         ` Steven Penny [this message]
2018-08-26 15:17       ` Hans-Bernhard Bröker
2018-08-26 21:41         ` Steven Penny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5b82c49c.1c69fb81.386aa.c401@mx.google.com \
    --to=svnpenn@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).