Source-Changes-HG archive

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

[src/trunk]: src/lib/libm libm: suppress lint warning about '>>' on signed in...



details:   https://anonhg.NetBSD.org/src/rev/474d98907f01
branches:  trunk
changeset: 374203:474d98907f01
user:      rillig <rillig%NetBSD.org@localhost>
date:      Mon Apr 10 19:23:02 2023 +0000

description:
libm: suppress lint warning about '>>' on signed integer

GCC has implementation-defined behavior for that case.

diffstat:

 lib/libm/Makefile |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r d7069e7544c6 -r 474d98907f01 lib/libm/Makefile
--- a/lib/libm/Makefile Mon Apr 10 15:27:51 2023 +0000
+++ b/lib/libm/Makefile Mon Apr 10 19:23:02 2023 +0000
@@ -1,4 +1,4 @@
-#  $NetBSD: Makefile,v 1.218 2022/08/27 09:56:21 christos Exp $
+#  $NetBSD: Makefile,v 1.219 2023/04/10 19:23:02 rillig Exp $
 #
 #  @(#)Makefile 5.1beta 93/09/24
 #
@@ -53,8 +53,8 @@ USE_SHLIBDIR= yes
 LIBC_MACHINE_ARCH?=    ${MACHINE_ARCH}
 LIBC_MACHINE_CPU?=     ${MACHINE_CPU}
 
-# compiler_rt uses typeof() and __extension__
-LINTFLAGS += -g
+LINTFLAGS+=    -g              # compiler_rt uses typeof() and __extension__
+LINTFLAGS+=    -X 117          # GCC sign-extends '>>' on signed int
 
 .if (${LIBC_MACHINE_CPU} == "aarch64")
 .PATH: ${.CURDIR}/arch/aarch64



Home | Main Index | Thread Index | Old Index