Skip to content

Commit 16a5ea5

Browse files
authored
Merge pull request #5829 from martin-frbg/issue5825
Fix OpenMP reentrancy issues in LLVM compilations with gmake on ARM64
2 parents 7006a42 + 1145c75 commit 16a5ea5

3 files changed

Lines changed: 9 additions & 13 deletions

File tree

Makefile.arm64

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -310,12 +310,10 @@ endif
310310

311311
ifeq ($(CORE), VORTEXM4)
312312
ifneq ($(C_COMPILER), GCC)
313-
ifeq ($(APPLECLANG),1)
314313
CCOMMON_OPT += -march=armv8.4-a+sme
315-
else
316-
CCOMMON_OPT += -march=armv8.4-a+sme
317-
override LDFLAGS += -lclang_rt_builtins-aarch64
318-
endif
314+
#ifneq ($(APPLECLANG),1)
315+
#override LDFLAGS += -lclang_rt_builtins-aarch64
316+
#endif
319317
else
320318
CCOMMON_OPT += -march=armv8.4-a
321319
endif

c_check

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,8 @@ no_sme=0
342342
is_appleclang=0
343343
if [ "$architecture" = "arm64" ]; then
344344
if [ "$compiler" = "CLANG" ]; then
345-
data=`$compiler_name --version`
346-
case "$data" in Apple*)
345+
vdata=`$compiler_name --version`
346+
case "$vdata" in Apple*)
347347
is_appleclang=1
348348
esac
349349
fi

kernel/Makefile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,10 @@ ifeq ($(TARGET_CORE), VORTEXM4)
3838
ifeq ($(C_COMPILER), GCC)
3939
override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE) -UHAVE_SME -march=armv8.4-a
4040
else
41-
ifeq ($(APPLECLANG),1)
42-
override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE) -march=armv8.4-a+sme
43-
else
44-
override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE) -march=armv8.4-a+sme
45-
override LDFLAGS += -lclang_rt_builtins-aarch64
46-
endif
41+
override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE) -march=armv8.4-a+sme
42+
# ifneq ($(APPLECLANG),1)
43+
# override LDFLAGS += -lclang_rt_builtins-aarch64
44+
# endif
4745
ifdef OS_WINDOWS
4846
ifeq ($(C_COMPILER), CLANG)
4947
override CFLAGS += --aarch64-stack-hazard-size=0

0 commit comments

Comments
 (0)