Re: svn commit: r242715 - head/sys/conf

2012-11-08 Thread Roman Divacky
> - clang fails to optimize division by (integer) 2 into multiplication >by (floating point with the correct type) 0.5 in the case of long >doubles on one supported arch (i386 IIRC). Both compilers optimize >all other cases, including floats and doubles on all arches. clang >with

Re: svn commit: r242715 - head/sys/conf

2012-11-07 Thread Bruce Evans
On Wed, 7 Nov 2012, Jung-uk Kim wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2012-11-07 17:15:28 -0500, Dimitry Andric wrote: Author: dim Date: Wed Nov 7 22:15:28 2012 New Revision: 242715 URL: http://svnweb.freebsd.org/changeset/base/242715 Log: For kernel builds with PROFLEVEL >

Re: svn commit: r242715 - head/sys/conf

2012-11-07 Thread Dimitry Andric
On 2012-11-07 23:37, Jung-uk Kim wrote: ... FYI, PROF needs a similar work-around: % clang -c -pg -mprofiler-epilogue test.c clang: warning: argument unused during compilation: '-mprofiler-epilogue' Yeah, I was just going to commit that. Thanks! :) ___

Re: svn commit: r242715 - head/sys/conf

2012-11-07 Thread Jung-uk Kim
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2012-11-07 17:15:28 -0500, Dimitry Andric wrote: > Author: dim Date: Wed Nov 7 22:15:28 2012 New Revision: 242715 > URL: http://svnweb.freebsd.org/changeset/base/242715 > > Log: For kernel builds with PROFLEVEL >= 1, such as LINT, don't > attempt

svn commit: r242715 - head/sys/conf

2012-11-07 Thread Dimitry Andric
Author: dim Date: Wed Nov 7 22:15:28 2012 New Revision: 242715 URL: http://svnweb.freebsd.org/changeset/base/242715 Log: For kernel builds with PROFLEVEL >= 1, such as LINT, don't attempt to use the -falign-functions option if the compiler is clang, as the flag is not supported. MFC af