www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2015/06/04/16:16:03

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
Message-ID: <5570B1F7.1070509@iki.fi>
Date: Thu, 04 Jun 2015 23:15:51 +0300
From: "Andris Pavenis (andris DOT pavenis AT iki DOT fi)" <djgpp AT delorie DOT com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
MIME-Version: 1.0
To: "DJGPP List (E-mail)" <djgpp AT delorie DOT com>
Subject: Re: DJGPP v2.05: some thoughts
References: <55673F0B DOT 1090103 AT iki DOT fi> <83twuwwshg DOT fsf AT gnu DOT org> <55675040 DOT 9030008 AT iki DOT fi> <556F6E49 DOT 8010006 AT gmx DOT de> <556FCCDF DOT 7080005 AT iki DOT fi> <83bngvr0ef DOT fsf AT gnu DOT org> <557078B1 DOT 9040004 AT iki DOT fi> <201506041613 DOT t54GDT8m014488 AT envy DOT delorie DOT com>
In-Reply-To: <201506041613.t54GDT8m014488@envy.delorie.com>
Reply-To: djgpp AT delorie DOT com

On 06/04/2015 07:13 PM, DJ Delorie wrote:
>> Yes, I suggested it and posted suggestion to get some feedback. I
>> took however Your notice that it would change building other
>> packages into account. I guess we need to get 2.05 out (2.03 is
>> simply already too ancient) and we do not need another eternal
>> beta. That's why I would prefer not to integrate changes into 2.05.
> And I added that a quick 2.05 followed by a 2.06 was OK (and better
> than a multi-year beta)
>
> It's a side-effect of Charles's Law.  If we ship an official 2.05,
> we'll actually hear about the bugs, and can fix them in 2.06.
>
>
Branch is created for v2.05.

Shortly after that found a showstopper bug:

Konsole output
echo '#include <iostream>' | i586-pc-msdosdjgpp-gcc -c -x c++ -std=c++11 - -o /dev/null

(hint: replace i586-pc-msdosdjgpp-gcc with simple gcc for native build)

Works OK with with -std=c++03, fails with -std=c++11 and -std=c++14

The problem is that our errno.h gets almost completely excluded

Andris

PS. following seems to workaround the problem:

Konsole output
--- errno.h.orig        2015-06-04 23:12:46.745892048 +0300
+++ errno.h     2015-06-04 23:13:13.382210708 +0300
@@ -25,7 +25,7 @@

#endif /* (__STDC_VERSION__ >= 199901L) || !__STRICT_ANSI__ */

-#ifndef __STRICT_ANSI__
+#if !defined(__STRICT_ANSI__) || defined(__cplusplus)

#define E2BIG          3
#define EACCES         4






- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019