I know in the handbook there's a whole page devoted to using a newer version of lang/gcc (https://www.freebsd.org/doc/en/articles/custom-gcc/article.html) but I'm interested in using a clang newer than 3.3 (3.3 is pretty old now). Am I correct that clang/34 is the latest "stable" clang available in the ports tree? README.hmtl shows:
The r2 in lang/clang35 makes me think it stands for release candidate 2? There's also lang/clang-devel which is Clang 3.6. I have the newest binutils, but I don't know if that's even necessary with LLVM. Anyways, is there any editing of libmap.conf required as is needed for gcc? Should I jump to 3.4, 3.5, or 3.6? I would like to move forward and gain any new features or performance benefits, if stable. I suppose I could just use lang/gcc48 but I'm interested in Clang, partially because it seems like its better at automatically using the best features for your processor than GCC, where you often have to pass instruction set features. Also, in the Handbook, for using a newer GCC, it states a "minimum" of files that should be put into libmap.conf. Is it better to map all other .so files in respective directory, as well? Also, as time goes on, using GCC is going to break more ports as most people are now running Clang with the current ports tree, correct? I know Clang tries to be aware of GCCisms, but I don't think the opposite is true. Am I wrong?
Code:
clang32-3.2_3: C, Objective-C, and C++ compiler
clang33-3.3_7: C, Objective-C, and C++ compiler
clang34-3.4.2: C, Objective-C, and C++ compiler
clang35-3.5.0.r2: C, Objective-C, and C++ compiler