From: "Andris Pavenis (andris.pavenis@iki.fi) [via djgpp@delorie.com]" <djgpp@delorie.com>
Date: Mon, 30 Nov 2020 19:40:50 +0200
Noticed that I'm failing to build recent GIT version of GCC for DJGPP due to different
interpretation of presence of macro __STRICT_ANSI__=1 in Linux and DJGPP
Best thing to do is to file a bug with gcc and let them language-lawyer
it out.
From: "Andris Pavenis (andris.pavenis@iki.fi) [via djgpp@delorie.com]" <djgpp@delorie.com>
Date: Mon, 30 Nov 2020 20:25:13 +0200
On 11/30/20 7:52 PM, DJ Delorie wrote:
Best thing to do is to file a bug with gcc and let them language-lawyer
it out.
I mentioned as example the behavior in Linux. In this case its glibc implementation stuff not even
gcc one:
- gcc or clang only defines __STRICT_ANSI__
- glibc headers causes definitions of pid_t and ino_t and other stuff not to be excluded
Another question whether specifying for example -std=c++11 (which implies __STRICT_ANSI__) also
implies ANSI C for used C headers.
From: "Andris Pavenis (andris.pavenis@iki.fi) [via djgpp@delorie.com]" <djgpp@delorie.com>IME, no useful program can be compiled with strict ANSI, so using
Date: Mon, 30 Nov 2020 20:25:13 +0200
On 11/30/20 7:52 PM, DJ Delorie wrote:
Best thing to do is to file a bug with gcc and let them language-lawyerI mentioned as example the behavior in Linux. In this case its glibc implementation stuff not even
it out.
gcc one:
- gcc or clang only defines __STRICT_ANSI__
- glibc headers causes definitions of pid_t and ino_t and other stuff not to be excluded
Another question whether specifying for example -std=c++11 (which implies __STRICT_ANSI__) also
implies ANSI C for used C headers.
-std=c++11 when building a compiler is counter-productive. I'd
suggest to try -std=gnu++11 instead.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 339 |
Nodes: | 16 (0 / 16) |
Uptime: | 06:42:42 |
Calls: | 7,467 |
Calls today: | 3 |
Files: | 12,691 |
Messages: | 5,626,255 |