mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2026-05-07 22:53:17 +00:00
accel/tcg: Remove special case for GCC < 4.6
Since commit efc6c070aca ("configure: Add a test for the
minimum compiler version") the minimum compiler version
required for GCC is 4.8.
We can safely remove the special case for GCC 4.6 introduced
in commit 0448f5f8b81 ("cpu-exec: Fix compiler warning
(-Werror=clobbered)").
No change for Clang as we don't know.
Backports 19a84318c674c157f1b04c5c99595379f8ac8bb3
This commit is contained in:
parent
f526d4455c
commit
4a0f9846b2
|
|
@ -543,7 +543,7 @@ int cpu_exec(struct uc_struct *uc, CPUState *cpu)
|
|||
|
||||
/* prepare setjmp context for exception handling */
|
||||
if (sigsetjmp(cpu->jmp_env, 0) != 0) {
|
||||
#if defined(__clang__) || !QEMU_GNUC_PREREQ(4, 6)
|
||||
#if defined(__clang__)
|
||||
/* Some compilers wrongly smash all local variables after
|
||||
* siglongjmp. There were bug reports for gcc 4.5.0 and clang.
|
||||
* Reload essential local variables here for those compilers.
|
||||
|
|
|
|||
Loading…
Reference in a new issue