Skip to content

Commit ed1e470

Browse files
authored
Merge pull request #5217 from haampie/hs/fix/darwin-gcc
test_potrs.c: do not use GCC pragma on darwin-aarch64
2 parents de2380e + 3d6d026 commit ed1e470

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Makefile.system

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -436,10 +436,6 @@ CCOMMON_OPT += -Wl,-ld_classic
436436
FCOMMON_OPT += -Wl,-ld_classic
437437
endif
438438
ifeq (x$(XCVER), x 16)
439-
ifeq ($(C_COMPILER), GCC)
440-
CCOMMON_OPT += -Wl,-ld_classic
441-
FCOMMON_OPT += -Wl,-ld_classic
442-
endif
443439
ifeq ($(F_COMPILER), GFORTRAN)
444440
override CEXTRALIB := $(filter-out(-lto_library, $(CEXTRALIB)))
445441
endif

utest/test_potrs.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3232
**********************************************************************************/
3333

3434
#include "openblas_utest.h"
35+
#if defined(ARCH_LOONGARCH64)
3536
#pragma GCC optimize("no-gcse")
37+
#endif
3638
/*
3739
void BLASFUNC(cpotrf)(char*, BLASINT*, complex float*, BLASINT*, BLASINT*);
3840
void BLASFUNC(zpotrs_(char*, BLASINT*, BLASINT*, complex double*,

0 commit comments

Comments
 (0)