gccstill available on FreeBSD under ports. To install the latest version (starting with this entry, 4.9) as a port, follow these steps:
cd /usr/ports/lang/gcc49/ && make install clean
If you want to install it as a package, follow these steps:
pkg install lang/gcc49
This will set the front ends of the C, C ++, Fortran and Java like gcc49, g++49,
gfortran49and gcj49respectively.
source
share