Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any practical difference between Clang versions 2.8 and 3.1 for a C developer?

I will be working exclusively in C. Ubunutu 10.10 will retrieve version 2.8 of Clang from it's repositories and fully install it. I have compiled Clang v 3.1 from source and have added it to the path (after uninstalling Clang 2.8), but do not have access to it's man pages this way, and have an occasional nagging feeling about not having fully "installed it", though it appears to be fully functional on some testing.

Is there any practical difference between versions 2.8 and 3.1 from a C developer's (student actually) point of view? I am working exclusively in C and will not tap into it's C++ or objective C capabilities. I believe most of the development in Clang recently has been in extending it's C++ abilities.

like image 641
haziz Avatar asked Nov 04 '22 09:11

haziz


1 Answers

The noticeable difference I found is that for 2.8 VLA function parameters make the compiler dump core. In 2.9 (and thus in 3.1 I suppose) this bug seems to be fixed.

Also this newer version of clang already implements part of C11, in particular _Generic.

like image 100
Jens Gustedt Avatar answered Nov 11 '22 12:11

Jens Gustedt