Article View: news.software.nn
Article #9877Re: nn-6.6.0 now available
From: Michael T Pins
Date: Tue, 25 Sep 2001 05:50
Date: Tue, 25 Sep 2001 05:50
51 lines
2947 bytes
2947 bytes
Casper.Dik@Holland.Sun.Com (Casper H.S. Dik - Network Security Engineer) writes: >[[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]] >Michael T Pins <mtpins@nndev.org> writes: >>>Yep, that's right. Apparently the gcc-3.01 preprocessor is expanding >>>tabs into spaces, and that breaks your method of generating >>>ymakefile. >>Bug in gcc. Complain to the gcc maintainers. >No, it isn't. "cpp" tokenizes and is allowed to add/convert whatever >whitespace, regardless of the original source code, provided its output >is tokenized correctly by the next pass. (Sun's compiler got similar >complains years ago because it didn't allow old-style token pasting in >the default mode; fact is, old-style token pasting isn't allowed in ANSI C. >"cpp/gcc -E" is a "C" pre-processor, it's fitness for other purposes is >not guaranteed. True, however - This is known to work in the following compilers: the compiler shipped with SunOS 3.x the compiler shipped with SunOS 4.x Sun WorkShop Compiler (at least through 5.0, I haven't tested any later) the compiler that ships with HP-UX the compiler HP sells the compiler that ships with OSF/1 the compiler DEC sells for DEC Unix the compiler that shipped with Ultrix the compiler IBM sells for AIX the compiler that shipped with UMAX43 the compiler that Apollo sold for Domain/OS every version of gcc through at least 2.8.1 It breaks under: gcc 3.x In other words, it works under all the score+ of compilers I've used over the years, from back before ANSI C, through today. The *only* compiler I've ever heard of that breaks this is gcc 3.x. It's a gcc bug. -- ************************************************************************** * Michael T Pins | mtpins@nndev.org * * keeper of the nn sources | mtpins@visi.com * * ftp://ftp.nndev.org/pub | #include <std.disclaimer> *
Technical Details
Message-ID:
<UWUr7.27679$x84.7737727@ruti.visi.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!nntp.abs.net!news-out.visi.com!hermes.visi.com!ruti.visi.com!mtpinsReferences:
<9oiahf$pb$2@husk.cso.niu.edu> <FV2r7.2201$7g6.947933@newssrv26.news.prodigy.com> <Rozr7.27153$x84.7582723@ruti.visi.com> <9ommth$jsi$1@new-usenet.uk.sun.com>Show Full Headers
Complete Article Headers
Message-ID: <UWUr7.27679$x84.7737727@ruti.visi.com> Subject: Re: nn-6.6.0 now available Date: Tue, 25 Sep 2001 05:50:44 GMT From: Michael T Pins <mtpins@nndev.org> References: <9oiahf$pb$2@husk.cso.niu.edu> <FV2r7.2201$7g6.947933@newssrv26.news.prodigy.com> <Rozr7.27153$x84.7582723@ruti.visi.com> <9ommth$jsi$1@new-usenet.uk.sun.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!nntp.abs.net!news-out.visi.com!hermes.visi.com!ruti.visi.com!mtpins Newsgroups: news.software.nn User-Agent: nn/6.6.1 Lines: 50 NNTP-Posting-Host: 207.174.152.234 X-Complaints-To: abuse@visi.com X-Trace: ruti.visi.com 1001397044 207.174.152.234 (Tue, 25 Sep 2001 00:50:44 CDT) NNTP-Posting-Date: Tue, 25 Sep 2001 00:50:44 CDT