🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #51367

Re: Selecting the default version of gcc?

#51367
From: Joe Buck
Date: Tue, 25 May 1993 22:48
27 lines
1801 bytes
In article <1tu3c7$38q@sun.Panix.Com> jhawk@panix.com (John Hawkinson) writes:
>I loked around in the documentation (well, only the INSTALL part
>as well as the Makefile and couldn't seem to find:
>
>How do I specify which version of the compiler driver the gcc
>driver program will use (i.e. default value for -V).
>
>This is gcc-2.4.0 on Sparc running SunOS4.1.3, if that makes any difference.

Yes, it makes a difference.  In that case, the default version is 2.4.0
(e.g. the same as if you'd typed "-V 2.4.0").

If you wish to install a new version but have the default remain the old
version, you could save your old "gcc" frontend somewhere, install the new
compiler, and put the old "gcc" back.  Or you could hack the sources.  I
don't recommend this unless you really know what you're doing though.

For example, in going from 2.3.3 to 2.4.0 on Suns, the type of size_t
has changed (Sun claims it is "int", which violates ANSI C; as of 2.4.0,
it is "unsigned long" with fixincludes fixing the Sun headers to match).
For C++ users, mixing the versions is likely to be painful; similarly
for C users who use prototypes everywhere.



--
Joe Buck	jbuck@ohm.EECS.Berkeley.EDU
Technical Details
Message-ID: <1tu7om$53k@agate.berkeley.edu>
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!agate!forney.eecs.berkeley.edu!jbuck
References: <1tu3c7$38q@sun.Panix.Com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,9579cccdef18ec16
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-05-25 15:52:08 PST
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!agate!forney.eecs.berkeley.edu!jbuck
From: jbuck@forney.eecs.berkeley.edu (Joe Buck)
Newsgroups: gnu.gcc.help
Subject: Re: Selecting the default version of gcc?
Date: 25 May 1993 22:48:54 GMT
Organization: U. C. Berkeley
Lines: 27
Message-ID: <1tu7om$53k@agate.berkeley.edu>
References: <1tu3c7$38q@sun.Panix.Com>
NNTP-Posting-Host: forney.eecs.berkeley.edu