head	1.11;
access;
symbols
	netbsd-11-0-RC6:1.11
	netbsd-11-0-RC5:1.11
	netbsd-11-0-RC4:1.11
	netbsd-11-0-RC3:1.11
	netbsd-11-0-RC2:1.11
	netbsd-11-0-RC1:1.11
	perseant-exfatfs-base-20250801:1.11
	netbsd-11:1.11.0.2
	netbsd-11-base:1.11
	netbsd-10-1-RELEASE:1.8.6.1
	perseant-exfatfs-base-20240630:1.9
	perseant-exfatfs:1.9.0.2
	perseant-exfatfs-base:1.9
	netbsd-9-4-RELEASE:1.4
	netbsd-10-0-RELEASE:1.8.6.1
	netbsd-10-0-RC6:1.8.6.1
	netbsd-10-0-RC5:1.8.6.1
	netbsd-10-0-RC4:1.8.6.1
	netbsd-10-0-RC3:1.8.6.1
	netbsd-10-0-RC2:1.8.6.1
	netbsd-10-0-RC1:1.8.6.1
	netbsd-10:1.8.0.6
	netbsd-10-base:1.8
	netbsd-9-3-RELEASE:1.4
	cjep_sun2x-base1:1.8
	cjep_sun2x:1.8.0.4
	cjep_sun2x-base:1.8
	cjep_staticlib_x-base1:1.8
	netbsd-9-2-RELEASE:1.4
	cjep_staticlib_x:1.8.0.2
	cjep_staticlib_x-base:1.8
	netbsd-9-1-RELEASE:1.4
	phil-wifi-20200421:1.6
	phil-wifi-20200411:1.6
	is-mlppp:1.6.0.2
	is-mlppp-base:1.6
	phil-wifi-20200406:1.6
	netbsd-9-0-RELEASE:1.4
	netbsd-9-0-RC2:1.4
	netbsd-9-0-RC1:1.4
	phil-wifi-20191119:1.6
	netbsd-9:1.4.0.2
	netbsd-9-base:1.4
	phil-wifi-20190609:1.4
	pgoyette-compat-merge-20190127:1.3.2.2
	pgoyette-compat-20190127:1.3
	pgoyette-compat-20190118:1.3
	pgoyette-compat-1226:1.3
	pgoyette-compat-1126:1.3
	pgoyette-compat-1020:1.3
	pgoyette-compat-0930:1.3
	pgoyette-compat-0906:1.3
	pgoyette-compat:1.3.0.2
	pgoyette-compat-0728:1.3
	phil-wifi:1.2.0.2
	phil-wifi-base:1.2;
locks; strict;
comment	@# @;


1.11
date	2025.03.22.17.05.48;	author christos;	state Exp;
branches;
next	1.10;
commitid	UyvxRO8LQq4Rm5OF;

1.10
date	2024.09.30.00.32.12;	author kalvisd;	state Exp;
branches;
next	1.9;
commitid	KHYchqQd9RyrqLrF;

1.9
date	2023.08.03.01.36.55;	author mrg;	state Exp;
branches
	1.9.2.1;
next	1.8;
commitid	94ccj90Ss370qhzE;

1.8
date	2020.09.14.15.01.57;	author kamil;	state Exp;
branches
	1.8.6.1;
next	1.7;
commitid	ePmh6UzUlUlzI1oC;

1.7
date	2020.05.15.14.29.53;	author joerg;	state Exp;
branches;
next	1.6;
commitid	1Gi2MjcDRqK0tl8C;

1.6
date	2019.10.28.16.25.05;	author christos;	state Exp;
branches;
next	1.5;
commitid	6QfPWLEIfi1WwEIB;

1.5
date	2019.10.02.02.54.34;	author mrg;	state Exp;
branches;
next	1.4;
commitid	ptIYYuYSsziNSeFB;

1.4
date	2019.02.06.04.00.43;	author mrg;	state Exp;
branches;
next	1.3;
commitid	4asFUzbW8ImRTEaB;

1.3
date	2018.07.01.17.41.50;	author christos;	state Exp;
branches
	1.3.2.1;
next	1.2;
commitid	s8t4BUcM1wMWvsIA;

1.2
date	2018.06.26.21.06.45;	author christos;	state Exp;
branches
	1.2.2.1;
next	1.1;
commitid	eia2Zd4q6y3hOPHA;

1.1
date	2018.06.26.20.54.32;	author christos;	state Exp;
branches;
next	;
commitid	BinC7G5u09V4KPHA;

1.9.2.1
date	2025.08.02.05.25.55;	author perseant;	state Exp;
branches;
next	;
commitid	23j6GFaDws3O875G;

1.8.6.1
date	2023.10.08.14.35.24;	author martin;	state Exp;
branches;
next	;
commitid	u2OxnQINGCBFBPHE;

1.3.2.1
date	2018.07.01.17.41.50;	author pgoyette;	state dead;
branches;
next	1.3.2.2;
commitid	1UP1xAIUxv1ZgRLA;

1.3.2.2
date	2018.07.28.04.37.18;	author pgoyette;	state Exp;
branches;
next	;
commitid	1UP1xAIUxv1ZgRLA;

1.2.2.1
date	2019.06.10.21.55.24;	author christos;	state Exp;
branches;
next	1.2.2.2;
commitid	jtc8rnCzWiEEHGqB;

1.2.2.2
date	2020.04.13.07.59.12;	author martin;	state Exp;
branches;
next	;
commitid	X01YhRUPVUDaec4C;


desc
@@


1.11
log
@PR/59189: RVP: Like Linux and FreeBSD use .preinit_array to initialize the
sanitizers.
@
text
@# $NetBSD: Makefile,v 1.10 2024/09/30 00:32:12 kalvisd Exp $

.include <bsd.own.mk>

.include "../Makefile.inc"
.include "../Makefile.sanitizer"

.PATH: ${SANITIZER}/lsan ${SANITIZER}/asan

LSAN_SRCS+= \
	lsan_common.cpp \
	lsan_common_linux.cpp \
	lsan_common_mac.cpp \
	lsan.cpp \
	lsan_linux.cpp \
	lsan_mac.cpp \
	lsan_malloc_mac.cpp \
	lsan_allocator.cpp \
	lsan_interceptors.cpp \
	lsan_thread.cpp \
	lsan_posix.cpp

LIB=	lsan
SRCS+=	${LSAN_SRCS}
LIBDPLIBS+= m ${NETBSDSRCDIR}/lib/libm
LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt
LIBDPLIBS+= pthread ${NETBSDSRCDIR}/lib/libpthread

CWARNFLAGS.clang+=	-Wno-error=unused-private-field

.include "../preinit.mk"

.include <bsd.lib.mk>
@


1.10
log
@gcc: vax: liblsan and libasan: remove special cases for vax from Makefiles

    OK rin@@
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2023/08/03 01:36:55 mrg Exp $
d31 2
@


1.9
log
@many fixes for native GCC 12 builds

- default to dwarf4 since out ctf tools fail with dwarf5.  i tried to
  do this via subtarget options as other ports do, but this would
  require adjusting several of the targets non-netbsd code, and ideally
  we'll fix our tools sooner than later, so just hack it here for now.
- catch up config/rs6000/netbsd64.h (mostly delete things)
- remove some more upstream diffs in config/vax, though it does not work
  currently - libc.so link fails due to weird relocations.
- include some headers to ensure types are available
- add missing sanitizer netbsd files to the 'dist' tree
- remove no longer present TIOCRCVFRAME and TIOCXMTFRAME interceptors
- expanding the sanitizer OS/cpu defs to cover more netbsd platforms
- copy across a few minor changes from gcc.old's sanitizer's (eg,
  disabling linux-specific code, adding netbsd specific code.)
- add (untested, but building) tsan support for arm64
- re-enable the sanitzers, at least simple -fsanitize=address builds a
  working application on amd64 now
- fix the source lists (mostly .cc -> .cpp rename here)
- add some missing new defines, -f*, and -W*
- bump sanitizer shlib version
- apply -fno-jump-tables in some more places on m68k
- update the list in README.gcc12 to note many things now work or a few
  things to do not work (although there are many uncommited changes at
  this point across the rest of 'src' and 'xsrc'.)  main points are that
  vax, hppa, ppc, and sh3 don't build yet, but most other things are
  either testing and working or at least building.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2020/09/14 15:01:57 kamil Exp $
a22 5
.if ${MACHINE_ARCH} == "vax"
#COPTS.lsan_allocator.cpp += -O1
#COPTS.sanitizer_file.cpp += -O1
.endif

@


1.9.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2025/03/22 17:05:48 christos Exp $
d23 5
a35 2
.include "../preinit.mk"

@


1.8
log
@Consistently, always link sanitizer runtime with libm and libpthread

This reflects the behavior from LLVM and avoids issues with dlsym(3) APIs.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2020/05/15 14:29:53 joerg Exp $
d11 11
a21 7
	lsan.cc \
	lsan_allocator.cc \
	lsan_common.cc \
	lsan_common_linux.cc \
	lsan_interceptors.cc \
	lsan_linux.cc \
	lsan_thread.cc
d24 2
a25 2
COPTS.lsan_allocator.cc += -O1
COPTS.sanitizer_file.cc += -O1
@


1.8.6.1
log
@Pull up following revision(s) (requested by rin in ticket #394):

	external/gpl3/binutils/dist/gas/config/tc-vax.h: revision 1.10
	tools/gcc/Makefile: revision 1.109
	external/gpl3/binutils/dist/gas/config/tc-vax.c: revision 1.16
	external/gpl3/binutils/dist/gas/config/tc-vax.c: revision 1.17
	external/gpl3/binutils/dist/gas/config/tc-vax.c: revision 1.18
	external/gpl3/gcc.old/dist/gcc/recog.c: revision 1.12
	external/gpl3/gcc.old/dist/gcc/function.c: revision 1.16
	external/gpl3/gcc.old/dist/gcc/dse.c: revision 1.14 - 1.16
	external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.13
	external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.14
	external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.15
	external/gpl3/gcc.old/dist/gcc/doc/tm.texi.in: revision 1.10
	external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.16
	external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.17
	external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.18
	external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.19
	external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.12
	external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.13
	external/gpl3/gcc.old/usr.bin/backend/Makefile: revision 1.20
	external/gpl3/gcc.old/dist/gcc/targhooks.c: revision 1.12
	external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.14
	external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.15
	external/gpl3/gcc.old/dist/gcc/config/vax/builtins.md: revision 1.12
	external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.16
	external/gpl3/gcc.old/dist/gcc/config/vax/builtins.md: revision 1.13
	external/gpl3/gcc.old/dist/gcc/doc/tm.texi: revision 1.12
	external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.17
	external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.18
	external/gpl3/gcc.old/dist/gcc/config/vax/elf.h: revision 1.12
	external/gpl3/gcc.old/dist/gcc/config/vax/elf.h: revision 1.13
	external/gpl3/gcc.old/dist/gcc/targhooks.h: revision 1.12
	external/gpl3/gcc.old/dist/gcc/target.def: revision 1.10
	external/gpl3/gcc.old/dist/gcc/rtlanal.c: revision 1.14
	external/gpl3/gcc.old/dist/gcc/reload.c: revision 1.12
	external/gpl3/gcc.old/usr.bin/gcc/Makefile: revision 1.11
	external/gpl3/gcc.old/usr.bin/lto-dump/Makefile: revision 1.3
	external/gpl3/gcc.old/lib/Makefile.sanitizer: revision 1.7
	external/gpl3/binutils.old/lib/libbfd/Makefile: revision 1.10
	distrib/utils/x_ping/Makefile: revision 1.9
	games/phantasia/Makefile: revision 1.38
	external/apache2/argon2/lib/libargon2/Makefile.inc: revision 1.2
	external/gpl3/gcc.old/lib/libubsan/Makefile: revision 1.8
	external/bsd/mdocml/lib/libmandoc/Makefile: revision 1.13
	sbin/ping/Makefile: revision 1.18
	sbin/newfs_ext2fs/Makefile: revision 1.7
	sys/lib/libz/Makefile: revision 1.24
	sys/lib/libsa/Makefile: revision 1.97
	external/gpl3/gcc.old/usr.bin/cc1objplus/Makefile: revision 1.3
	external/gpl3/gdb/lib/libgdb/Makefile: revision 1.36
	sys/modules/lfs/Makefile: revision 1.11
	external/mit/xorg/lib/gallium/Makefile: revision 1.51
	external/gpl3/gdb.old/lib/libdecnumber/Makefile: revision 1.10
	external/mit/xorg/lib/libX11/Makefile.libx11: revision 1.26
	libexec/ld.elf_so/Makefile: revision 1.148
	external/bsd/jemalloc/lib/Makefile.inc: revision 1.16
	external/gpl3/gcc.old/usr.bin/libdecnumber/Makefile: revision 1.14
	crypto/external/bsd/openssh/lib/Makefile: revision 1.38
	external/gpl3/gcc.old/usr.bin/backend/Makefile: revision 1.21
	external/gpl3/gcc.old/usr.bin/cc1/Makefile: revision 1.12
	external/gpl3/gcc.old/lib/libasan/Makefile: revision 1.11
	external/gpl3/gcc.old/usr.bin/cc1plus/Makefile: revision 1.13
	lib/libcrypt/Makefile: revision 1.36
	external/gpl3/gdb/lib/libdecnumber/Makefile: revision 1.5
	lib/libc/gdtoa/Makefile.inc: revision 1.13
	games/gomoku/Makefile: revision 1.13
	sbin/fsdb/Makefile: revision 1.43
	external/gpl3/gcc.old/usr.bin/lto1/Makefile: revision 1.9
	external/mit/xorg/lib/gallium.old/Makefile: revision 1.8
	lib/libbz2/Makefile: revision 1.22
	external/gpl3/gcc.old/usr.bin/cc1obj/Makefile: revision 1.12
	usr.sbin/mtrace/Makefile: revision 1.14
	external/gpl3/gcc.old/usr.bin/cc1obj/Makefile: revision 1.13
	sys/arch/vax/conf/Makefile.vax: revision 1.86
	sys/rump/fs/lib/liblfs/Makefile: revision 1.18
	sbin/fsck_ffs/Makefile.common: revision 1.3
	external/gpl3/binutils/lib/libbfd/Makefile: revision 1.27
	lib/i18n_module/UTF7/Makefile: revision 1.5
	external/gpl3/gcc.old/lib/liblsan/Makefile: revision 1.7
	doc/CHANGES (apply patch)
	(all external/gpl3/gcc.old/ changes applied to external/gpl3/gcc/)

PR 57646: Import major vax toolchain fix.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2020/09/14 15:01:57 kamil Exp $
d19 5
@


1.7
log
@Ignore unused private fields when building with clang
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2019/10/28 16:25:05 christos Exp $
d26 1
d28 1
@


1.6
log
@vaxinate sanitizer_file.cc against the optimizer virus.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2019/10/02 02:54:34 mrg Exp $
d28 2
@


1.5
log
@- use /usr/include/gcc-8
- update sanitizer makefiles

also, reduce diffs to upstream:
- remove or1k support
- re-order various lines to match upstream
- move regex map code into file-prefix-map.[ch]
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2019/02/06 04:00:43 mrg Exp $
d21 1
@


1.4
log
@update the sanitizer source lists for gcc 7.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2018/07/01 17:41:50 christos Exp $
d11 2
a14 2
	lsan.cc \
	lsan_allocator.cc \
d16 1
@


1.3
log
@vaxinate the sanitizer build.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2018/06/26 21:06:45 christos Exp $
d11 6
a16 7
lsan.cc \
lsan_allocator.cc \
lsan_common.cc \
lsan_common_linux.cc \
lsan_interceptors.cc \
lsan_preinit.cc \
lsan_thread.cc
@


1.3.2.1
log
@file Makefile was added on branch pgoyette-compat on 2018-07-28 04:37:18 +0000
@
text
@d1 27
@


1.3.2.2
log
@Sync with HEAD
@
text
@a0 27
# $NetBSD: Makefile,v 1.3 2018/07/01 17:41:50 christos Exp $

.include <bsd.own.mk>

.include "../Makefile.inc"
.include "../Makefile.sanitizer"

.PATH: ${SANITIZER}/lsan ${SANITIZER}/asan

LSAN_SRCS+= \
lsan.cc \
lsan_allocator.cc \
lsan_common.cc \
lsan_common_linux.cc \
lsan_interceptors.cc \
lsan_preinit.cc \
lsan_thread.cc

.if ${MACHINE_ARCH} == "vax"
COPTS.lsan_allocator.cc += -O1
.endif

LIB=	lsan
SRCS+=	${LSAN_SRCS}
LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt

.include <bsd.lib.mk>
@


1.2
log
@remove temp hack.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2018/06/26 20:54:32 christos Exp $
d19 3
@


1.2.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2019/02/06 04:00:43 mrg Exp $
d11 8
a18 10
	lsan_common.cc \
	lsan_common_linux.cc \
	lsan.cc \
	lsan_allocator.cc \
	lsan_interceptors.cc \
	lsan_thread.cc

.if ${MACHINE_ARCH} == "vax"
COPTS.lsan_allocator.cc += -O1
.endif
@


1.2.2.2
log
@Mostly merge changes from HEAD upto 20200411
@
text
@d1 1
a1 1
# $NetBSD$
d11 2
a14 2
	lsan_common.cc \
	lsan_common_linux.cc \
a15 1
	lsan_linux.cc \
a19 1
COPTS.sanitizer_file.cc += -O1
@


1.1
log
@Add lsan support.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2018/02/04 01:16:33 mrg Exp $
a10 1
sanitizer_stoptheworld_linux_libcdep.cc \
@

