Mail Archives: djgpp/2015/06/04/16:16:03
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 -