apply workaround for clang bug more broadly

Xcode 26 distributes a clang version which identifies itself with
__clang_major__=17 and that is also affected by the bug for which the
workaround in commit 2fbdd292af was
added.

Closes #825.
This commit is contained in:
Marius Gerbershagen 2026-03-13 19:14:02 +01:00
parent 8efdd3757f
commit 109aa3d265

View file

@ -279,9 +279,9 @@ ecl_stack_frame_open(cl_env_ptr env, cl_object f, cl_index size)
return f;
}
/* clang 19 miscompiles the following function on x86_64. Temporarily
* turn off optimizations here. */
#if defined(__clang__) && __clang_major__ == 19 && defined(__x86_64__)
/* Some clang versions miscompile the following function on x86_64.
* Temporarily turn off optimizations here. */
#if defined(__clang__) && __clang_major__ >= 17 && __clang_major__ <= 19 && defined(__x86_64__)
[[clang::optnone]]
#endif
void
@ -339,9 +339,9 @@ ecl_stack_frame_push_values(cl_object f)
}
}
/* clang 19 miscompiles the following function on x86_64. Temporarily
* turn off optimizations here. */
#if defined(__clang__) && __clang_major__ == 19 && defined(__x86_64__)
/* Some clang versions miscompile the following function on x86_64.
* Temporarily turn off optimizations here. */
#if defined(__clang__) && __clang_major__ >= 17 && __clang_major__ <= 19 && defined(__x86_64__)
[[clang::optnone]]
#endif
cl_object