Does USE_GCC= 4.5+ also set C++ and Fortran to g++45/46 and gfortran45/46?

b. f. bf1783 at
Thu Apr 14 06:32:36 UTC 2011

On 4/14/11, O. Hartmann <ohartman at> wrote:
> On 04/13/11 20:59, b. f. wrote:

> I looked into ports/Mk/ and found that only gcc45 is set in
> case of using USE_FORTRAN, not gcc46. It would be nice also having gcc46
> set, since we try to optimise for AVX in the new Intel Sandy-Bridge CPUs
> and gcc46 is supoorting new facilities like that.

I think that the gcc maintainer will probably switch the default
Fortran compiler to gcc46 after gcc46 has been tested a bit longer,
and some of the remaining bugs fixed.  You could of course switch the
default on your own machines.  AVX support requires more than just a
new compiler and the proper hardware: at the moment, FreeBSD doesn't
support AVX, although some outside developers expressed an interest in
adding support for it:

but this will probably take some time.


More information about the freebsd-ports mailing list