Skip to content

Commit c98a609

Browse files
committed
Merge branch '3.3' into 3.4
2 parents f3a122a + 2425ab5 commit c98a609

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- uses: actions/checkout@v4
3030
- id: set-matrix
3131
name: build matrix
32-
uses: rusher/mariadb-test-build-matrix@main
32+
uses: mariadb-corporation/connector-ci-build-matrix@main
3333
with:
3434
additional-matrix: '[{"name": "MariaDB 11.4 (local) - windows 2025", "os": "windows-2025", "db-type": "community", "db-tag": "11.4"}]'
3535

@@ -128,7 +128,7 @@ jobs:
128128

129129
- name: Setup Test Environment
130130
id: setup-env
131-
uses: rusher/mariadb-test-setup@master
131+
uses: mariadb-corporation/connector-ci-setup@master
132132
with:
133133
node-version: ${{ matrix.node }}
134134
db-type: ${{ matrix.db-type }}

libmariadb/ma_context.c

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -638,11 +638,19 @@ my_context_destroy(struct my_context *c)
638638

639639
#ifdef MY_CONTEXT_USE_AARCH64_GCC_ASM
640640

641-
#if (defined(__clang__) && (__clang_major__ >= 9)) || \
642-
(defined(__GNUC__) && (__GNUC__ > 9 || (__GNUC__ == 9 && __GNUC_MINOR__ >= 1)))
643-
#define BTI_J_STR "bti j"
641+
/* According to ARM, the instruction BTI [J][C] is a NOP in ARMv8
642+
implementations that do not support it. However, the built-in assembler
643+
in clang 9 through 11 would refuse to emit the instruction unless a
644+
late enough ARMv8.x-A is specified.
645+
646+
On GCC, we cannot easily detect which assembler is going to be invoked
647+
to translate the symbolic assembler code to binary. Hence, we will always
648+
use the numeric encoding in order to be compatible with old assemblers. */
649+
650+
#if defined __clang_major__ && __clang_major__ >= 12
651+
# define BTI_J_STR "bti j"
644652
#else
645-
#define BTI_J_STR ".inst 0xd503241f"
653+
# define BTI_J_STR ".inst 0xd503249f"
646654
#endif
647655
/*
648656
GCC-aarch64 (arm64) implementation of my_context.

0 commit comments

Comments
 (0)