🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #50184

Re: getting ANSI prototypes for gcc 2.4.5

#50184
From: Joe Buck
Date: Thu, 11 Nov 1993 18:01
25 lines
1681 bytes
From mark@mark.mvision.com (Mark Evenson)
>>when I compile with:
>>gcc -g -ansi -Wall foo.c 
>>under sparc-sun-sunos4.1.3, I get warnings about implicit definitions of
>>functions....
>>Wasn't the 'fixincludes' pass in installing the compiler supposed to fix
>>this?

slharris@rdxsun38.aud.alcatel.com (Steve Harris) writes:
>Fixincludes apparently only makes your include files ANSI
>compatible (you don't have to have prototypes to be ANSI
>compatible).

As of 2.5.0, fixincludes (or rather, a script called fixproto) adds
prototypes to the "fixed" headers as well.  It adds prototypes for
those functions in the ANSI C standard.  It can't generate a prototype
for every function your vendor has provided, of course.

So the solution is to upgrade your compiler.

-- 
-- Joe Buck	jbuck@synopsys.com
Posting from but not speaking for Synopsys, Inc.
Formerly jbuck@<various-hosts>.eecs.berkeley.edu
Technical Details
Message-ID: <1993Nov11.180119.626@Synopsys.Com>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!rz.uni-karlsruhe.de!news.uni-stuttgart.de!news.belwue.de!news.dfn.de!zib-berlin.de!zrz.TU-Berlin.DE!netmbx.de!Germany.EU.net!mcsun!uunet!chronos.synopsys.com!news.synopsys.com!jbuck
References: <9311111426.AA02702@rdxsun38.aud.alcatel.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,3cd95749e36de244
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-11-11 23:05:05 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!rz.uni-karlsruhe.de!news.uni-stuttgart.de!news.belwue.de!news.dfn.de!zib-berlin.de!zrz.TU-Berlin.DE!netmbx.de!Germany.EU.net!mcsun!uunet!chronos.synopsys.com!news.synopsys.com!jbuck
From: jbuck@synopsys.com (Joe Buck)
Subject: Re: getting ANSI prototypes for gcc 2.4.5
Message-ID: <1993Nov11.180119.626@Synopsys.Com>
Summary: fixed (partially) in 2.5.0
Keywords: n
Sender: usenet@Synopsys.Com
Organization: Synopsys, Inc.
References: <9311111426.AA02702@rdxsun38.aud.alcatel.com>
Date: Thu, 11 Nov 1993 18:01:19 GMT
Lines: 25