What is the relationship between the OS release, the XCode release, and the default compiler?
Xcode version
With a recent release of Xcode, the default compiler was changed from GCC (like you said) to LLVM (clang) - a more modern compiler, with more error options.
It has nothing whatsoever to do with your OS X version.