Live data from Hacker News

GCC 5.2 released

gcc.gnu.org

11–20 of 38 posts

Re: GCC 5.2 released

#13
post #11
post #7

> Write-only variables are now detected and optimized out. That's probably something one should keep in mind when writing micro-benchmarks.

[deleted]

Those pointers always need to be defined as volatile anyway

Re: GCC 5.2 released

#14
It's worth noting that, due to GCC's new and esoteric version numbering scheme[1], this is a bugfix-only release on the 5.x branch. The bigger news was when GCC 5.1 (a major stable release) was released in April. That said, GCC 5.2 fixes a pretty serious bug that I was hitting so I'm happy to hear about it!

[1] https://gcc.gnu.org/develop.html#num_scheme

Re: GCC 5.2 released

#19
post #7

> Write-only variables are now detected and optimized out. That's probably something one should keep in mind when writing micro-benchmarks.

I'm appalled that this wasn't taken care of 20 years ago. It seems like such low-hanging fruit.

Re: GCC 5.2 released

#20
post #15
post #13

Earlier quoted context omitted.

Those pointers always need to be defined as volatile anyway

[deleted]

The point of using volatile is to make sure not to put the variable in a register or use a cached value; it hits the memory.
Post reply on HN