Mon Apr 10 19:23:02 2023 UTC ()
libm: suppress lint warning about '>>' on signed integer

GCC has implementation-defined behavior for that case.


(rillig)
diff -r1.218 -r1.219 src/lib/libm/Makefile

cvs diff -r1.218 -r1.219 src/lib/libm/Makefile (expand / switch to unified diff)

--- src/lib/libm/Makefile 2022/08/27 09:56:21 1.218
+++ src/lib/libm/Makefile 2023/04/10 19:23:02 1.219
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.218 2022/08/27 09:56:21 christos Exp $ 1# $NetBSD: Makefile,v 1.219 2023/04/10 19:23:02 rillig Exp $
2# 2#
3# @(#)Makefile 5.1beta 93/09/24 3# @(#)Makefile 5.1beta 93/09/24
4# 4#
5# ==================================================== 5# ====================================================
6# Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 6# Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
7# 7#
8# Developed at SunPro, a Sun Microsystems, Inc. business. 8# Developed at SunPro, a Sun Microsystems, Inc. business.
9# Permission to use, copy, modify, and distribute this 9# Permission to use, copy, modify, and distribute this
10# software is freely granted, provided that this notice 10# software is freely granted, provided that this notice
11# is preserved. 11# is preserved.
12# ==================================================== 12# ====================================================
13# 13#
14# 14#
@@ -43,28 +43,28 @@ COPTS+= ${${ACTIVE_CC} == "gcc":? -fro @@ -43,28 +43,28 @@ COPTS+= ${${ACTIVE_CC} == "gcc":? -fro
43# CPPFLAGS = ... Multi-standard supported 43# CPPFLAGS = ... Multi-standard supported
44# libm with IEEE as the 44# libm with IEEE as the
45# default standard 45# default standard
46# 46#
47 47
48USE_SHLIBDIR= yes 48USE_SHLIBDIR= yes
49 49
50# require this for the value of I387_LIBM from mk.conf, if set. 50# require this for the value of I387_LIBM from mk.conf, if set.
51.include <bsd.own.mk> 51.include <bsd.own.mk>
52 52
53LIBC_MACHINE_ARCH?= ${MACHINE_ARCH} 53LIBC_MACHINE_ARCH?= ${MACHINE_ARCH}
54LIBC_MACHINE_CPU?= ${MACHINE_CPU} 54LIBC_MACHINE_CPU?= ${MACHINE_CPU}
55 55
56# compiler_rt uses typeof() and __extension__ 56LINTFLAGS+= -g # compiler_rt uses typeof() and __extension__
57LINTFLAGS += -g 57LINTFLAGS+= -X 117 # GCC sign-extends '>>' on signed int
58 58
59.if (${LIBC_MACHINE_CPU} == "aarch64") 59.if (${LIBC_MACHINE_CPU} == "aarch64")
60.PATH: ${.CURDIR}/arch/aarch64 60.PATH: ${.CURDIR}/arch/aarch64
61ARCH_SRCS = e_sqrt.S e_sqrtf.S s_fabsf.S 61ARCH_SRCS = e_sqrt.S e_sqrtf.S s_fabsf.S
62ARCH_SRCS+= s_fma.S s_fmaf.S s_fmax.S s_fmaxf.S s_fmin.S s_fminf.S 62ARCH_SRCS+= s_fma.S s_fmaf.S s_fmax.S s_fmaxf.S s_fmin.S s_fminf.S
63.if ${MKSOFTFLOAT} == "no" 63.if ${MKSOFTFLOAT} == "no"
64COMMON_SRCS+= fenv.c 64COMMON_SRCS+= fenv.c
65.endif 65.endif
66COMMON_SRCS+= s_nexttoward.c s_rintl.c 66COMMON_SRCS+= s_nexttoward.c s_rintl.c
67COMMON_SRCS+= e_sqrtl.c 67COMMON_SRCS+= e_sqrtl.c
68COMMON_SRCS+= s_fma.c s_fmaf.c s_fmal.c 68COMMON_SRCS+= s_fma.c s_fmaf.c s_fmal.c
69 69
70.elif (${LIBC_MACHINE_ARCH} == "alpha") 70.elif (${LIBC_MACHINE_ARCH} == "alpha")