Hacker News new | ask | show | jobs
by gpderetta 170 days ago
gcc has had restrict for 25 years I think. I would hope most bugs have been squashed by now.
1 comments

Possibly? LLVM had been around for a while as well but Rust still ended up running into aliasing-related optimizer bugs.

Now that I think about it some more, perhaps gfortran might be a differentiating factor? Not familiar enough with Fortran to guess as to how much it would exercise aliasing-related optimizations, though.

I think Fortran function arguments are assumed not to alias. I'm not sure if it matches C restrict semantics though.
Yeah, that's why I was wondering whether GCC might have shaken out its aliasing bugs. Sibling seems to recall otherwise, though.