I happened to have a reason to run our build system under strace, and I noticed that we pass -fno-strict-aliasing to clang.
How committed are we to -fno-strict-aliasing? If we have no intention of getting rid of -fno-strict-aliasing, it would make sense to document this at https://developer.mozilla.org/en-US/docs/Mozilla/Using_CXX_in_Mozilla_code and make it explicitly OK for Gecko developers not to worry about type-based alias analysis UB--just like we don't worry about writing exception-safe code. Debating in design/review or making an effort to avoid type-based alias analysis UB is not a good use of time if we're committed to not having type-based alias analysis. -- Henri Sivonen hsivo...@mozilla.com _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform