dolphin/Source
Léo Lam 118b2a3580
Core/DSP: Fix improper uses of offsetof
According to the C standard, an offsetof expression must evaluate to an
address constant, otherwise it's undefined behavior.

Fixes https://bugs.dolphin-emu.org/issues/12409

See also https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95942

There are still improper uses of offsetof (mostly in JitArm64) but
fixing that will take more effort since there's a PPCSTATE_OFF wrapper
macro that is sometimes used with non-array members and sometimes used
with arrays and variable indices... Let's keep that for another PR.
2021-02-10 02:03:16 +01:00
..
Android msbuild: bundle all dolphin "core" code into single library 2021-01-27 14:29:49 -08:00
Core Core/DSP: Fix improper uses of offsetof 2021-02-10 02:03:16 +01:00
DSPSpy DSPSpy: sync Makefile with current devkitPro template 2020-06-08 04:21:41 +01:00
DSPTool msbuild: bundle all dolphin "core" code into single library 2021-01-27 14:29:49 -08:00
PCH msvc: bump _MSC_FULL_VER check to 192829335 2021-01-09 19:21:03 -08:00
UnitTests msbuild: bundle all dolphin "core" code into single library 2021-01-27 14:29:49 -08:00
VSProps msbuild: re-enable HAS_OPENGL and HAS_VULKAN 2021-01-27 19:10:53 -08:00
.clang-format
CMakeLists.txt Turn format string issues into compile-time errors 2020-12-04 18:06:02 +01:00
dolphin-emu.sln msbuild: bundle all dolphin "core" code into single library 2021-01-27 14:29:49 -08:00