Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce compiler ability to optimise to statisfy gcc 9.5 (#1442)
gcc 9.5 has a bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189 that has not been backported. Essentially, the compiler will falsely reason that it's comparing a string and optimise out everything behind a null-character. Dropping static const removes optimisation options for the compiler. In my tests, gcc 9.5 now emits a direct memcmp instead of attempting any optimisations.
- Loading branch information