Source-Changes-HG archive

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

[src/trunk]: src/sys/modules build the drmkms modules with -fwrapv too



details:   https://anonhg.NetBSD.org/src/rev/9b11669113cf
branches:  trunk
changeset: 379505:9b11669113cf
user:      nia <nia%NetBSD.org@localhost>
date:      Thu Jun 03 15:59:04 2021 +0000

description:
build the drmkms modules with -fwrapv too

diffstat:

 sys/modules/drmkms/Makefile     |  5 ++++-
 sys/modules/i915drmkms/Makefile |  5 ++++-
 sys/modules/radeondrm/Makefile  |  5 ++++-
 3 files changed, 12 insertions(+), 3 deletions(-)

diffs (57 lines):

diff -r 5cbcee40963e -r 9b11669113cf sys/modules/drmkms/Makefile
--- a/sys/modules/drmkms/Makefile       Thu Jun 03 15:40:27 2021 +0000
+++ b/sys/modules/drmkms/Makefile       Thu Jun 03 15:59:04 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2020/02/14 09:35:52 riastradh Exp $
+# $NetBSD: Makefile,v 1.14 2021/06/03 15:59:04 nia Exp $
 
 .include "../Makefile.inc"
 .include "Makefile.inc"
@@ -25,6 +25,9 @@ SRCS+=        drmfb.c
 
 # XXX ttm
 
+# Code imported from Linux - expects signed overflow to be OK.
+COPTS+=        -fwrapv
+
 CPPFLAGS+=     -I.
 
 # XXX CWARNFLAGS.foo.c doesn't work.
diff -r 5cbcee40963e -r 9b11669113cf sys/modules/i915drmkms/Makefile
--- a/sys/modules/i915drmkms/Makefile   Thu Jun 03 15:40:27 2021 +0000
+++ b/sys/modules/i915drmkms/Makefile   Thu Jun 03 15:59:04 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2021/04/13 04:59:00 mrg Exp $
+# $NetBSD: Makefile,v 1.18 2021/06/03 15:59:04 nia Exp $
 
 .include "../Makefile.inc"
 .include "../drmkms/Makefile.inc"
@@ -27,6 +27,9 @@ CPPFLAGS+=    -DNVGA=1
 CWARNFLAGS+=   -Wno-shadow
 CWARNFLAGS+=   -Wno-pointer-arith
 
+# Code imported from Linux - expects signed overflow to be OK.
+COPTS+=                -fwrapv
+
 COPTS.i915_drv.c+=     ${${ACTIVE_CC} == "gcc":? -Wno-override-init :}
 COPTS.i915_drv.c+=     ${${ACTIVE_CC} == "clang":? -Wno-initializer-overrides :}
 
diff -r 5cbcee40963e -r 9b11669113cf sys/modules/radeondrm/Makefile
--- a/sys/modules/radeondrm/Makefile    Thu Jun 03 15:40:27 2021 +0000
+++ b/sys/modules/radeondrm/Makefile    Thu Jun 03 15:59:04 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2019/11/11 22:45:27 joerg Exp $
+# $NetBSD: Makefile,v 1.15 2021/06/03 15:59:04 nia Exp $
 
 .include "../Makefile.inc"
 
@@ -18,6 +18,9 @@ SRCS+=        radeon_irq.c
 SRCS+= radeon_mem.c
 SRCS+= radeon_state.c
 
+# Code imported from Linux - expects signed overflow to be OK.
+COPTS+=        -fwrapv
+
 CPPFLAGS+=     -I${S}/external/bsd/drm/dist/bsd-core \
                -I${S}/external/bsd/drm/dist/shared-core
 



Home | Main Index | Thread Index | Old Index