aarch64/sljit_machdep.h: Make this work in compat32 context.
Should fix clang build of compat32 eabi libsljit: dependall ===> compat/arm/eabi/../../../lib/../external/bsd/sljit/lib In file included from /home/source/ab/HEAD-llvm/src/sys/external/bsd/sljit/dist/sljit_src/sljitLir.c:1678: /home/source/ab/HEAD-llvm/src/sys/external/bsd/sljit/dist/sljit_src/sljitNativeARM_64.c:142:54: error: shift count >= width of type [-Werror,-Wshift-count-overflow] FAIL_IF(push_inst(compiler, MOVK | RD(dst) | (((imm >> 32) & 0xffff) << 5) | (2 << 21))); ^ ~~
This commit is contained in:
parent
17f9eb725b
commit
f0c134c7b7
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sljit_machdep.h,v 1.4 2024/04/02 22:37:34 riastradh Exp $ */
|
||||
/* $NetBSD: sljit_machdep.h,v 1.5 2024/05/05 15:18:10 riastradh Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2014 Alexander Nasonov.
|
||||
|
@ -29,6 +29,12 @@
|
|||
#ifndef _AARCH64_SLJITARCH_H
|
||||
#define _AARCH64_SLJITARCH_H
|
||||
|
||||
#ifndef __aarch64__ /* compat32 */
|
||||
|
||||
#include <arm/sljit_machdep.h>
|
||||
|
||||
#else /* __aarch64__ */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
#ifdef _KERNEL
|
||||
|
@ -56,4 +62,6 @@
|
|||
(void)__builtin___clear_cache((char *)(from), (char *)(to))
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif /* __aarch64__ (vs compat32) */
|
||||
|
||||
#endif /* _AARCH64_SLJITARCH_H */
|
||||
|
|
Loading…
Reference in New Issue