News for hackers. Stuff that matters.
Re:Orthodox C++ by gmueckl on Tuesday December 29, 2020 @01:27AM (#25567317)
There are instances where I can get current GCC to generate less instructions as part of the normal control flow when adding noexcept declarations. This is quite surprising given the common claim that exceptions shouldn't affect that. Unfortunately, I think I lost the example where I could reproduce it in the Compiler Explorer.
Re:Orthodox C++ by junon on Tuesday December 29, 2020 @02:46AM (#25567668)
How convenient
Re:Orthodox C++ by gmueckl on Tuesday December 29, 2020 @03:53AM (#25567980)
I reproduced it:

https://godbolt.org/z/nzof4s

test() with exceptions enabled is two instructions longer in the normal code path.