Linked by Thom Holwerda on Tue 6th Mar 2018 20:08 UTC

As of Chrome 64, Chrome for Windows is compiled with Clang. We now use Clang to build Chrome for all platforms it runs on: macOS, iOS, Linux, Chrome OS, Android, and Windows. Windows is the platform with the second most Chrome users after Android according to statcounter, which made this switch particularly exciting.

Permalink for comment 654351
To read all comments associated with this story, please click here.
RE[3]: slow decline of GCC ?
by jessesmith on Wed 7th Mar 2018 15:11 UTC in reply to "RE[2]: slow decline of GCC ?"
Member since:

The optimization thing is definitely true. I have tested code using GCC and Clang with various optimizations turned on. Code compiled with Clang would always run smoothly. Code compiled without optimizations on GCC would also run. But if I turned on optimizations under GCC, the program would crash. Some logic or checks were getting optimized out, but only under GCC, and causing instability.

Warnings and errors are more sane under Clang. The messages are much clearer with references to where things went wrong in Clang. GCC's errors are pretty cryptic in comparison.

I have also noticed GCC throwing incorrect warnings. Like "This variable is declared but unused." But looking through the code shows the variable is, in fact, used and cannot be removed. I still test code under GCC to see if it finds potential problems Clang doesn't, but I do almost all my work with Clang because it is so much more pleasant to use.

Reply Parent Score: 4