> I'm porting software to Apple's Clang 7.0, as released in Xcode 7.0. I'm not 
> clear how that
> version number relates to the Clang 3.x version numbers.

clang -v reveals that Apple LLVM 7.0.0 is based on LLVM 3.7.0svn.

> So I think -fstack-protector is what I need to use, but I can't find any 
> Clang documentation about it. Any suggestions?

Experimenting with clang -v and the various -stack-protector options reveals 
that Clang as far back LLVM3.1 has used -fstack-protector by default, and has 
-fstack-protector-all. Clang from LLVM 3.7 implements -fstack-protector-strong, 
which seems like the sensible thing to try as an upgrade from the basic 
-fstack-protector.

--
John Dallman

-----------------
Siemens Industry Software Limited is a limited company registered in England 
and Wales.
Registered number: 3476850.
Registered office: Faraday House, Sir William Siemens Square, Frimley, Surrey, 
GU16 8QD.
_______________________________________________
cfe-users mailing list
cfe-users@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users

Reply via email to