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/libc/i386/Makefile.com
          +++ new/usr/src/lib/libc/i386/Makefile.com
↓ open down ↓ 1076 lines elided ↑ open up ↑
1077 1077  CERRWARN += -_gcc=-Wno-uninitialized
1078 1078  CERRWARN += -_gcc=-Wno-unused-value
1079 1079  CERRWARN += -_gcc=-Wno-unused-label
1080 1080  CERRWARN += -_gcc=-Wno-unused-variable
1081 1081  CERRWARN += -_gcc=-Wno-type-limits
1082 1082  CERRWARN += -_gcc=-Wno-char-subscripts
1083 1083  CERRWARN += -_gcc=-Wno-clobbered
1084 1084  CERRWARN += -_gcc=-Wno-unused-function
1085 1085  CERRWARN += -_gcc=-Wno-address
1086 1086  
     1087 +# not linted
     1088 +SMATCH=off
     1089 +
1087 1090  # Setting THREAD_DEBUG = -DTHREAD_DEBUG (make THREAD_DEBUG=-DTHREAD_DEBUG ...)
1088 1091  # enables ASSERT() checking in the threads portion of the library.
1089 1092  # This is automatically enabled for DEBUG builds, not for non-debug builds.
1090 1093  THREAD_DEBUG =
1091 1094  $(NOT_RELEASE_BUILD)THREAD_DEBUG = -DTHREAD_DEBUG
1092 1095  
1093 1096  # Make string literals read-only to save memory.
1094 1097  CFLAGS += $(XSTRCONST)
1095 1098  
1096 1099  ALTPICS= $(TRACEOBJS:%=pics/%)
↓ open down ↓ 211 lines elided ↑ open up ↑
1308 1311  # We need to strip out all CTF and DOF data from the static library
1309 1312  $(LIB_PIC) := DIR = pics
1310 1313  $(LIB_PIC): pics $$(PICS)
1311 1314          $(BUILD.AR)
1312 1315          $(MCS) -d -n .SUNW_ctf $@ > /dev/null 2>&1
1313 1316          $(MCS) -d -n .SUNW_dof $@ > /dev/null 2>&1
1314 1317          $(AR) -ts $@ > /dev/null
1315 1318          $(POST_PROCESS_A)
1316 1319  
1317 1320  $(LIBCBASE)/crt/_rtbootld.s: $(LIBCBASE)/crt/_rtboot.s $(LIBCBASE)/crt/_rtld.c
1318      -        $(CC) $(CPPFLAGS) $(CTF_FLAGS) -O -S $(C_PICFLAGS) \
     1321 +        $(CC) $(CPPFLAGS) -_smatch=off $(CTF_FLAGS) -O -S $(C_PICFLAGS) \
1319 1322              $(LIBCBASE)/crt/_rtld.c -o $(LIBCBASE)/crt/_rtld.s
1320 1323          $(CAT) $(LIBCBASE)/crt/_rtboot.s $(LIBCBASE)/crt/_rtld.s > $@
1321 1324          $(RM) $(LIBCBASE)/crt/_rtld.s
1322 1325  
1323 1326  # partially built from C source
1324 1327  pics/_rtbootld.o: $(LIBCBASE)/crt/_rtbootld.s
1325 1328          $(AS) $(ASFLAGS) $(LIBCBASE)/crt/_rtbootld.s -o $@
1326 1329          $(CTFCONVERT_O)
1327 1330  
1328 1331  ASSYMDEP_OBJS=                  \
↓ open down ↓ 33 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX