Article View: news.software.nntp
Article #20086Re: Compile options for gcc with SNPRINTF_CFLAGS for Solaris
From: Casper H.S. Dik - Network Securi...
Date: Fri, 01 Aug 1997 00:00
Date: Fri, 01 Aug 1997 00:00
31 lines
2004 bytes
2004 bytes
eggert@twinsun.com (Paul Eggert) writes: >``Quibbling over'' isn't quite the right term. Sun's compiler, >which uses `#define __STDC__ 0' to mean ``I'm following the C Standard >except with some extensions'', is a little, er, unusual. I believe that "#define __STDC__ 1" as meaning "I'm standard conformant, but I really don't give a damn about reserved namespaces" is WRONG. I mean, what's the point of __STDC__ == 1 if you can't rely on standard conformance? >A better way of putting it is to say that Sun is out in left field here, >and that GCC needs some way of bringing the header files back to the way >that most other hosts do it. It would be better for gcc to adapt to the host in question and adapt the specs files to suit. Gcc fixincludes breaks in one way in Solaris 2.6, so to say that fixing the include files is the best way to do this is wrong; it's the way most prone to breakage. Casper -- Expressed in this posting are my opinions. They are in no way related to opinions held by my employer, Sun Microsystems. Statements on Sun products included here are not gospel and may be fiction rather than truth.
Technical Details
Message-ID:
<casper.870444026@uk-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.nntp.mbox.zip!not-for-mailReferences:
<5rnpbu$hgq@solaris.cna.tek.com> <5rold8$rrs@solaris.cna.tek.com> <5rprp1$rqi@lyra.csx.cam.ac.uk> <casper.870352835@uk-usenet.uk.sun.com> <5rr0bg$7g7$1@shade.twinsun.com>Show Full Headers
Complete Article Headers
Message-ID: <casper.870444026@uk-usenet.uk.sun.com> Subject: Re: Compile options for gcc with SNPRINTF_CFLAGS for Solaris Date: Fri, 01 Aug 1997 00:00:00 +0000 From: Casper.Dik@Holland.Sun.COM (Casper H.S. Dik - Network Security Engineer) References: <5rnpbu$hgq@solaris.cna.tek.com> <5rold8$rrs@solaris.cna.tek.com> <5rprp1$rqi@lyra.csx.cam.ac.uk> <casper.870352835@uk-usenet.uk.sun.com> <5rr0bg$7g7$1@shade.twinsun.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 261316997 Distribution: inet Supersedes: <cancel.casper.870444026@uk-usenet.uk.sun.com> Organization: Sun Microsystems, Netherlands Newsgroups: news.software.nntp