public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Denis Excoffier <cygwin@Denis-Excoffier.org>
To: The Cygwin Mailing List <cygwin@cygwin.com>
Subject: Re: [ANNOUNCEMENT] Updated: gcc-9.2.0-2 (x86/x86_64)
Date: Wed, 26 Feb 2020 12:53:00 -0000	[thread overview]
Message-ID: <75E7B82B-0952-4CD6-B2B8-E0B8B8EEBFAC@Denis-Excoffier.org> (raw)
In-Reply-To: <91caa2b6-1ad8-1032-ebeb-634a7bbc1673@dronecode.org.uk>


> On 2020-02-25 01:18, Jon Turney wrote :
> 
> On 24/02/2020 23:35, JonY wrote:
>> On 2/24/20 8:21 PM, Achim Gratz wrote:
>>> JonY writes:
>>>> gcc-9.2.0-2 has been uploaded for Cygwin. This version is the same as
>>>> -1, just repackaged and marked as stable.
>>> 
>>> This version of gcc requires a newer binutils than defined as current in
>>> the Cygwin repo, so until this gets corrected one needs to manually
>>> switch to the test version binutils-2.31.1-1.
> 
> binutils-2.31.1-1 has been promoted from test to current.
> 

In order to compile cleanly the last snapshot with gcc 9.2.0, i had to apply the following patch (see below).
Otherwise one get an uninitialized variable together with a missing __attribute__.

Regards,

Denis Excoffier.

diff -cNr cygwin-snapshot-20200221-1o/winsup/cygwin/exec.cc cygwin-snapshot-20200221-1p/winsup/cygwin/exec.cc
*** cygwin-snapshot-20200221-1o/winsup/cygwin/exec.cc	Mon Jun 27 13:27:22 2016
--- cygwin-snapshot-20200221-1p/winsup/cygwin/exec.cc	Wed Feb 26 08:42:33 2020
***************
*** 85,91 ****
  {
    return spawnve (_P_OVERLAY, path, argv, envp);
  }
! EXPORT_ALIAS (execve, _execve)	/* For newlib */
  
  extern "C" int
  execvp (const char *file, char * const *argv)
--- 85,92 ----
  {
    return spawnve (_P_OVERLAY, path, argv, envp);
  }
! //EXPORT_ALIAS (execve, _execve)	/* For newlib */
! extern "C" __typeof (execve) _execve __attribute__ ((alias("execve"), nothrow));
  
  extern "C" int
  execvp (const char *file, char * const *argv)
diff -cNr cygwin-snapshot-20200221-1o/winsup/cygwin/posix_timer.cc cygwin-snapshot-20200221-1p/winsup/cygwin/posix_timer.cc
*** cygwin-snapshot-20200221-1o/winsup/cygwin/posix_timer.cc	Fri Mar  8 12:58:25 2019
--- cygwin-snapshot-20200221-1p/winsup/cygwin/posix_timer.cc	Wed Feb 26 08:41:33 2020
***************
*** 81,87 ****
  LONG
  timer_tracker::disarm_overrun_event ()
  {
!   LONG ret;
  
    AcquireSRWLockExclusive (&srwlock);
    if (overrun_count != OVR_DISARMED)
--- 81,87 ----
  LONG
  timer_tracker::disarm_overrun_event ()
  {
!   LONG ret = 0;
  
    AcquireSRWLockExclusive (&srwlock);
    if (overrun_count != OVR_DISARMED)




--
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:[~2020-02-26 12:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-24 12:39 JonY
2020-02-24 20:21 ` Achim Gratz
2020-02-24 23:35   ` JonY
2020-02-25  0:18     ` Jon Turney
2020-02-26 12:53       ` Denis Excoffier [this message]
2020-02-26 16:09         ` Corinna Vinschen
2020-02-25 12:51 ` 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=75E7B82B-0952-4CD6-B2B8-E0B8B8EEBFAC@Denis-Excoffier.org \
    --to=cygwin@denis-excoffier.org \
    --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).