Hi,

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.

With best regards,
KK

-- 
-- 
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.

Attachment: configure.in.patch
Description: Binary data

Raspunde prin e-mail lui