gcc

Eduardo nec556 at retena.com
Thu Mar 31 15:29:25 UTC 2011


At 16:49 31/03/2011, you wrote:
>On Thu, Mar 31, 2011 at 09:37:53AM -0400, Jerry McAllister wrote:
> > On Wed, Mar 30, 2011 at 10:10:44PM -0500, Adam Vande More wrote:
> >
> > > On Wed, Mar 30, 2011 at 9:06 PM, Gary Dunn <knowtree at aloha.com> wrote:
> > >
> > > > When will we bump the version of gcc? On my fresh 8.2 build 
> it is 4.2.1.
> > > > The ports tree has newer, up to 4.7.0 dated 19 Mar 2011.
> > > >
> > >
> > > Probably never, as GPL 3 code isn't allowed in the base 
> system.  There have
> > > been some optimizations backported to gcc in CURRENT that add 
> in stuff like
> > > newer instruction sets I believe.
> >
> > eg.  If you want a newer gcc, such as the one in ports, then go
> > ahead and install it.   The system uses a FreeBSD c compiler, not gcc.
>
>What is FreeBSD c compiler?
>Isn't it GCC?

Now yes, but FreeBSD needs an iso c'99 compiler and source code is 
iso oriented, not gcc, afaik gcc hacks and code that only compiles on 
gcc can't be commited, there's a mailing list for iso99 compatibility 
checks. gcc is one of them, but there are others. 9.0-CURRENT uses 
llvm but in theory you can use anyone, even tcc.

>% cc --version
>cc (GCC) 4.2.1 20070719  [FreeBSD]
>
>As far back as I know (starting from 4.9)
>it's always been GCC
>
>Perhaps I misunderstood you..




More information about the freebsd-questions mailing list