Article View: gnu.gcc.help
Article #49942[2.5.5: sparc-sun-sunos4.1.3] missing prototypes for ANSI C
From: Mark Evenson
Date: Mon, 29 Nov 1993 21:44
Date: Mon, 29 Nov 1993 21:44
40 lines
1901 bytes
1901 bytes
As has been noted by a posting in gnu.gcc.bugs, the ANSI C prototypes for
(at least) the standard C library functions no longer work under 2.5.5,
whereas they worked fine under 2.5.4.
The behavior comes from lines like this ( in
${prefix}/lib/gcc-lib/sparc-sun-sunos4.1.3/2.5.5/include/stdio.h ):
---gcc-2.5.4------------------
#if defined(__STDC__) || defined(__cplusplus)
extern int fclose (FILE *);
[other prototypes . . .]
#endif
------------------------------
changed to:
---gcc-2.5.5------------------
#ifdef __cplusplus
extern int fclose (FILE *);
[other prototypes . . .]
#endif
------------------------------
I.e. instead of checking for the cpp tokens "__cplusplus" OR "__STDC__",
the include file directs the compiler to parse prototypes if only
"__cplusplus" is defined.
Simply defining "__cplusplus" to include the prototypes does not work, as
(naturally) it includes C++ code from the include files.
This prevents anyone from using the 2.5.5 compiler with ANSI C prototypes
on a system without ANSI C /usr/include headers.
Why was this removed from the 2.5.5 release?
Since 2.5.5 is billed as "the last major release of gcc until 2.6 sometime
in the spring", how do I go about changing this back?
thanks fer yer support,
Technical Details
Message-ID:
<MARK.93Nov29164421@mark.mvision.com>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!psinntp!netnews.eng.mvision.com!netnews!markShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,390a18d90fbff38b,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-11-29 16:14:14 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!psinntp!netnews.eng.mvision.com!netnews!mark From: mark@mvision.com (Mark Evenson) Subject: [2.5.5: sparc-sun-sunos4.1.3] missing prototypes for ANSI C Message-ID: <MARK.93Nov29164421@mark.mvision.com> Sender: news@mvision.com Organization: Market Vision Inc. Distribution: inet Date: Mon, 29 Nov 1993 21:44:21 GMT Lines: 42