fix aarch64+clang compilation errors (#84947)
authorlexi-nadia <me@lexibromfield.com>
Mon, 17 Apr 2023 23:24:04 +0000 (19:24 -0400)
committerGitHub <noreply@github.com>
Mon, 17 Apr 2023 23:24:04 +0000 (19:24 -0400)
commit4dc6603ace319209e944cc3d0bf7cac549de150c
tree696c2c3e827648b593d61f8b677acf75a9438a4c
parent80ce3b666823f2855b678307850e719a5f7366af
fix aarch64+clang compilation errors (#84947)

* don't use the gcc workaround on clang

clang doesn't need it, and clang also doesn't support the `optimize`
attribute.

* cast _zzq_default to a 64-bit type

Otherwise, clang complains that "value-size does not match register size",
since the 32-bit value (generally a literal 0) doesn't match the 64-bit
x3 register.
src/mono/mono/mini/mini-exceptions.c
src/mono/mono/utils/valgrind.h