Kazunobu Kuriyama wrote:

> Attached is a patch which was made to suppress some compiler warning
> put out by a recent version of clang.
> 
> I'm on Mac OS X 10.8.5 and upgraded Xcode from 4.6.x to 5.0 a few days
> ago.  With that IDE, a new version of clang came and, when I had it
> compile vim, it was complaining: 
> 
> clang: warning: argument unused during compilation: '-fno-strength-reduce'
> 
> Hmm, it looks like the day is coming when the widely known '-O2
> -fno-strength-reduce' used over a decade finally comes to an end...
> (No?)
> 
> Anyway, the patch modifies src/configure.in in such a way that the
> resulting configure script checks the version number of clang in use,
> if it is actually used in the process of configuration, and then
> adjusts CFLAGS accordingly; if the version number is higher enough,
> the optimization flag -fno-strength-reduce is excluded from CFLAGS;
> otherwise, it is left as it was.
> 
> After applying the patch, please do 'make autoconf' for yourself.  I
> think it would be safer than offering a patch against 'configure'
> itself.

Did clang really support -fno-strength-reduce at some point?
Also, older clang versions are buggy anyway.  So perhaps we can just
drop that argument whenever clang is used?


-- 
   GALAHAD turns back.  We see from his POV the lovely ZOOT standing by him
   smiling enchantingly and a number of equally delectable GIRLIES draped
   around in the seductively poulticed room.  They look at him smilingly and
   wave.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui