delorie.com/archives/browse.cgi | search |
From: | pavenis AT lanet DOT lv |
To: | djgpp-workers AT delorie DOT com |
Date: | Thu, 15 Nov 2001 17:04:18 +0200 |
MIME-Version: | 1.0 |
Subject: | gcc-3.0.X and DJGPP headers |
Message-ID: | <3BF3F592.27710.CE88AC@localhost> |
X-mailer: | Pegasus Mail for Windows (v4.01) |
Reply-To: | djgpp-workers AT delorie DOT com |
Did some tests with current versions of both 3.0 branch and mainline for DJGPP Due to some latest changes in gcc $DJDIR/include got scanned before gcc specific header directory and as result I got DJGPP stddef.h included instead of gcc one. The result were compiler errors about undefined size_t. (NOTE: gcc-3.0.2 binaries in v2gnu are Ok and there is no similar problem). We can undefine PREFIX_INCLUDE_DIR in gcc/config/i386/djgpp.h so this directory will not be searched before GCC own header dir I think that this behaviour is bug as it eliminates anything fixincludes is doing when fixing non GCC headers to be compatible. So it should be fixed in GCC Of course we could additionally safeguard us by protecting our stddef.h. stdarg.h from gcc-3.X: #if __GNUC__>=3 #include_next <stddef.h> #else old contents of stddef.h #endif /* __GNUC__>=3 Andris
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |