Hi, This patch implements basic top level thread affinity support for freebsd. It doesn't yet implement thread affinity support for core/socket grouping yet; I'm working on a library to extract that out to userland and plan on teaching libgomp about it at a later stage.
https://people.freebsd.org/~adrian/gcc/20150506-gcc-trunk-libgomp-1.diff I'd appreciate feedback/review. Thanks! -adrian