[PATCH] FreeBSD compiler extensions

"C. Bergström" cbergstrom at pathscale.com
Tue Jul 5 09:04:20 UTC 2011


  On 07/ 5/11 03:27 PM, Robert Millan wrote:
> This patch conditionalizes a pair of FreeBSD compiler extensions so
> that its CFLAGS are only used on FreeBSD.
Were I work we don't spend much time on compiling any kernel, but I'm 
superficially curious about the actual code which necessitates you 
needing these different flags.  Is this for performance, correctness or 
both?

(If you have any sort of reduced code example you can share that would 
be great)

 From a biased vendor perspective - less lock-in to a single compiler is 
usually a good thing.  (The linux kernel may be the best example of what 
not to do.)  Sorry I can't comment on the correctness of the patch.

./C


More information about the freebsd-hackers mailing list