cherry-pick clang optimisation suppression patches

clang is very noisy with strict aliasing errors/warnings everywhere AND unrecognised flags. suppress the optimisations for clang to prevent the optimisations from breaking anything