> - 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
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 >
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! :)
___
-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