Print this page
10063 basic support for smatch
10153 checkpaths shouldn't check packaging exceptions

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libm/Makefile.libm.com
          +++ new/usr/src/lib/libm/Makefile.libm.com
↓ open down ↓ 3 lines elided ↑ open up ↑
   4    4  # You may only use this file in accordance with the terms of version
   5    5  # 1.0 of the CDDL.
   6    6  #
   7    7  # A full copy of the text of the CDDL should have accompanied this
   8    8  # source.  A copy of the CDDL is also available via the Internet at
   9    9  # http://www.illumos.org/license/CDDL.
  10   10  #
  11   11  
  12   12  #
  13   13  # Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
       14 +# Copyright (c) 2018, Joyent, Inc.
  14   15  #
  15   16  
  16   17  LIBMDIR         = $(SRC)/lib/libm
  17   18  
  18   19  LIBMSRC         = $(LIBMDIR)/common
  19   20  
  20   21  CPP_CMD         = $(CC) -E -Xs
  21   22  
  22   23  ASSUFFIX_sparc  = S
  23   24  ASSUFFIX_i386   = s
↓ open down ↓ 32 lines elided ↑ open up ↑
  56   57  # isgreaterequal, islessequal, etc, exist.  This is basically equivalent to
  57   58  # providing no -xc99 to Studio, in that it gets us the C99 language features,
  58   59  # but not values-xpg6, the reason for which is outlined with CSTD.
  59   60  CFLAGS          += -_gcc=-D__C99FEATURES__
  60   61  CFLAGS64        += -_gcc=-D__C99FEATURES__
  61   62  
  62   63  # libm depends on integer overflow characteristics
  63   64  CFLAGS          += -_gcc=-fno-strict-overflow
  64   65  CFLAGS64        += -_gcc=-fno-strict-overflow
  65   66  
       67 +# sparse currently has no _Complex support
       68 +CFLAGS          += -_smatch=off
       69 +CFLAGS64        += -_smatch=off
       70 +
  66   71  $(DYNLIB)       := LDLIBS += -lc
  67   72  
  68   73  $(LINTLIB)      := SRCS = $(LIBMSRC)/$(LINTSRC)
  69   74  
  70   75  CLEANFILES      += pics/*.s pics/*.S
  71   76  
  72   77  FPDEF_amd64     = -DARCH_amd64
  73   78  FPDEF_sparc     = -DCG89 -DARCH_v8plus -DFPADD_TRAPS_INCOMPLETE_ON_NAN
  74   79  FPDEF_sparcv9   = -DARCH_v9 -DFPADD_TRAPS_INCOMPLETE_ON_NAN
  75   80  FPDEF           = $(FPDEF_$(TARGET_ARCH))
↓ open down ↓ 22 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX