Skip to content

Commit 3ddc64b

Browse files
authored
Merge pull request #234 from struct/clang-18
test toolchain upgrade to clang 18
2 parents b6a0e2e + 87c7479 commit 3ddc64b

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

.cirrus.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ env:
33
ARCH: amd64
44

55
freebsd_instance:
6-
image_family: freebsd-13-2
6+
image_family: freebsd-14-3
77

88
task:
99
name: testsuite-freebsd-amd64

.github/workflows/testsuite.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
version: [12, 13, 14, 15]
14+
version: [15, 16, 17, 18]
1515
steps:
1616
- uses: actions/checkout@v4
1717
- run: |
@@ -20,17 +20,17 @@ jobs:
2020
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${{ matrix.version }} 100
2121
- run: make tests
2222
- run: make cpp_tests
23-
testsuite-clang12-perf:
23+
testsuite-clang18-perf:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- uses: actions/checkout@v4
27-
- run: sudo apt install clang-12
27+
- run: sudo apt install clang-18
2828
- run: make malloc_cmp_test
2929
testsuite-clang-format:
3030
runs-on: ubuntu-latest
3131
steps:
3232
- uses: actions/checkout@v4
33-
- run: sudo apt install clang clang-format-12
33+
- run: sudo apt install clang clang-format-18
3434
- run: make format-ci
3535
testsuite-gcc:
3636
runs-on: ubuntu-latest

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,8 @@ ifneq ($(MEMORY_TAGGING), -DMEMORY_TAGGING=0)
301301
$(error "Disable software tagging before continuing")
302302
endif
303303

304-
CC = clang-12
305-
CXX = clang++-12
304+
CC = clang-18
305+
CXX = clang++-18
306306
endif
307307

308308
HOOKS = $(MALLOC_HOOK)
@@ -487,10 +487,10 @@ install:
487487
cp -pR build/$(LIBNAME) /usr/lib/
488488

489489
format:
490-
clang-format-12 $(SRC_DIR)/*.* tests/*.* include/*.h -i
490+
clang-format-18 $(SRC_DIR)/*.* tests/*.* include/*.h -i
491491

492492
format-ci:
493-
clang-format-12 --Werror --dry-run $(SRC_DIR)/*.* tests/*.* include/*.h -i
493+
clang-format-18 --Werror --dry-run $(SRC_DIR)/*.* tests/*.* include/*.h -i
494494

495495
clean:
496496
rm -rf build/* tests_perf_analysis.txt big_tests_perf_analysis.txt gmon.out \

include/iso_alloc_ds.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ typedef struct {
130130
* that holds a specific size in O(1) time */
131131
zone_lookup_table_t zone_lookup_table[ZONE_LOOKUP_TABLE_SZ];
132132
/* For chunk sizes >= 1024 our bitmap size is smaller
133-
* than a page. This optimization preallocates pages to
134-
* hold multiple bitmaps for these zones */
133+
* than a page. This optimization preallocates pages to
134+
* hold multiple bitmaps for these zones */
135135
iso_alloc_bitmap_t bitmaps[sizeof(small_bitmap_sizes) / sizeof(int)];
136136
uint64_t zone_handle_mask;
137137
uint64_t big_zone_next_mask;

src/iso_alloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ INTERNAL_HIDDEN iso_alloc_zone_t *is_zone_usable(iso_alloc_zone_t *zone, size_t
813813
* chunks smaller than ZONE_1024 */
814814
if(size > ZONE_1024 && zone->chunk_size >= (size << WASTED_SZ_MULTIPLIER_SHIFT)) {
815815
return NULL;
816-
}
816+
}
817817
if(size <= ZONE_1024 && zone->chunk_size > ZONE_1024) {
818818
return NULL;
819819
}

src/iso_alloc_mte.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
/* The majority of this code is adapted from Scudos implementation
77
* of ARM MTE support. That code can be found here:
8-
* https://android.googlesource.com/platform/external/scudo/+/refs/tags/android-14.0.0_r1/standalone/
8+
* https://android.googlesource.com/platform/external/scudo/+/refs/tags/android-14.0.0_r1/standalone/
99
* Its license (The LLVM Project is under the Apache License v2.0 with LLVM Exceptions) can be found here
1010
* https://android.googlesource.com/platform/external/scudo/+/refs/tags/android-14.0.0_r1/LICENSE.TXT */
1111

0 commit comments

Comments
 (0)