News for hackers. Stuff that matters.
Re:GCC celebrates its 25th anniversary with the release of 4... by winter_blue on Thursday March 22, 2012 @10:31AM (#3739822)
By the way, does anyone know of an easy way to install gcc47 on OS X?

I've tried brew, port & fink to no avail.

Re:GCC celebrates its 25th anniversary with the release of 4... by andrus on Thursday March 22, 2012 @11:09AM (#3740008)
The standard `./configure && make && make install` shouldn't be un-easy
Re:GCC celebrates its 25th anniversary with the release of 4... by 4ad on Thursday March 22, 2012 @11:39AM (#3740190)
GCC can't be compiled by the LLVM compiler shipped with Mac OS X.
Re:GCC celebrates its 25th anniversary with the release of 4... by ssmall on Thursday March 22, 2012 @12:15PM (#3740443)
I thought gcc built its own bootstrap compiler to do the heavy lifting of the build. Can LLVM not build the bootstrap compiler or was I mistaken in thinking this?
Re:GCC celebrates its 25th anniversary with the release of 4... by andrus on Thursday March 22, 2012 @01:01PM (#3740718)
The bootstrap process for gcc involves first building gcc with an existing C compiler, then rebuilding gcc from this first build [1].

I'm still waiting for my build to finish, but i686-apple-darwin11-llvm-gcc-4.2 seems to be handling the gcc 4.7 source fine.

[1] http://gcc.gnu.org/install/build.html

Re:GCC celebrates its 25th anniversary with the release of 4... by ssmall on Thursday March 22, 2012 @01:07PM (#3740755)
Ah for some reason I had in my head the bootstrap was a smaller, simpler compiler. Thanks for the link and clarification.
Re:GCC celebrates its 25th anniversary with the release of 4... by andrus on Thursday March 22, 2012 @02:27PM (#3741212)
Actually, I just confirmed that i686-apple-darwin11-llvm-gcc-4.2 compiles gcc 4.7

I don't know what other versions of llvm-gcc are shipped with Mac OS X

Re:GCC celebrates its 25th anniversary with the release of 4... by duaneb on Thursday March 22, 2012 @03:51PM (#3741592)
Mac OS X also ships with a non-compiler version of gcc, i.e. `gcc-4.2` on lion.
Re:GCC celebrates its 25th anniversary with the release of 4... by pdhborges on Thursday March 22, 2012 @11:45AM (#3740221)
I built GCC 4.6.3 with GCC 4.2 using the LLVM backend without any problem.