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 654362
To read all comments associated with this story, please click here.
RE[4]: slow decline of GCC ?
by viton on Thu 8th Mar 2018 11:06 UTC in reply to "RE[3]: slow decline of GCC ?"
Member since:

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.

That means your code is incorrect and suffering from undefined behaviour.
GCC generate more aggressive, faster code than C-lang.
There are a lot of articles on C++ undefined behaviour.

When some parts of your code are optimised-out it means these parts are redundant or not used.

I have also noticed GCC throwing incorrect warnings. Like "This variable is declared but unused."

Check twice. It is pretty safe to assume error is on your side.
Try with different GCC versions. Its is highly unlikely that you found some untested path.

Edited 2018-03-08 11:15 UTC

Reply Parent Score: 4