3 ms·
Perhaps you could set flags to disable all optimisations except the ones you specifically enable. Unless the compiler promises to handle the various forms of u
by MaxBarraclough 7y ago
Perhaps you could set flags to disable all optimisations except the ones you specifically enable.
Unless the compiler promises to handle the various forms of undefined behaviour in specific 'safe' ways, this approach isn't going to be robust. GCC doesn't offer a way to safely handle all instances of UB. That would be a significant undertaking.