Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/modules/amdgpu amdgpu: don't set -mhard-float for clang



details:   https://anonhg.NetBSD.org/src/rev/ff25dd6bd28f
branches:  trunk
changeset: 368715:ff25dd6bd28f
user:      tnn <tnn%NetBSD.org@localhost>
date:      Sat Jul 30 03:12:00 2022 +0000

description:
amdgpu: don't set -mhard-float for clang

clang complains that the option has no effect and it generates hard
float instructions without the option. soft-float not really supported
on x86_64 with clang from what I can tell.

diffstat:

 sys/modules/amdgpu/Makefile |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r b5b9f7474f09 -r ff25dd6bd28f sys/modules/amdgpu/Makefile
--- a/sys/modules/amdgpu/Makefile       Sat Jul 30 00:55:38 2022 +0000
+++ b/sys/modules/amdgpu/Makefile       Sat Jul 30 03:12:00 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2022/07/24 20:05:00 riastradh Exp $
+# $NetBSD: Makefile,v 1.3 2022/07/30 03:12:00 tnn Exp $
 
 .include "../Makefile.inc"
 .include "../drmkms/Makefile.inc"
@@ -10,7 +10,7 @@
 WARNS= 3
 
 .if ${MACHINE_ARCH} == "x86_64"
-COPTS.amdgpu_float+=   -mhard-float -msse -msse2
+COPTS.amdgpu_float+=   ${${ACTIVE_CC} == "gcc" :? -mhard-float :} -msse -msse2
 .elif !empty(MACHINE_ARCH:Maarch64*)
 COPTS.amdgpu_float+=   -march=armv8-a
 .endif



Home | Main Index | Thread Index | Old Index