Home | History | Annotate | Download | only in misc
History log of /src/tests/lib/libc/misc/Makefile
RevisionDateAuthorComments
 1.13  21-Nov-2025  nia not all of these tests are ubsan-related any more
 1.12  21-Nov-2025  nia hack around:

(a) clang not enabling ultrasparc mode on netbsd (seems like a bug)
(b) the version of clang in-tree not having -mvis
 1.11  21-Nov-2025  nia only use -mvis for gcc, the clang in-tree does not know it yet

(plus it's optional)
 1.10  13-Nov-2025  nia Add an implementation of the VIS C API for sparc64.

VIS is an extension of the SPARCv9 instruction set that adds packed
integer vector instructions that operate on 64-bit floating point
registers. It is primarily intended for accelerating common 2D
graphics and multimedia operations.

While GCC includes limited support for VIS via builtins, the builtins
are incomplete and incompatible with the C API described in
"VIS(tm) Instruction Set User's Manual" published by Sun Microsystems
in May 2001. This implementation intends to be 100% compatible with
the one described in the manual.

All sparc64 processors except the HAL SPARC64 (apparently not supported
by NetBSD) support the VIS instruction set. The paper documents
functions up to VIS 2. Post-Oracle CPUs support VIS 3 and VIS 4, but
I don't have access to C API documentation for those (presumably
the code is proprietary to SunPro on Solaris 11), and we can worry
about that when sun4v support is more mature.

The implementation includes some basic tests for packed arithmetic.
 1.9  10-Aug-2023  mrg make this build with GCC 12.

there are some odd constructs here to trigger sanitizers.
 1.8  29-May-2022  andvar fix various typos in comments and log messages.
 1.7  07-Sep-2020  mrg avoid new GCC 9 warnings.
 1.6  30-Jan-2020  christos hack for clang/powerpc
 1.5  29-Sep-2019  mrg convert HAVE_GCC == 7 to HAVE_GCC >= 7.
 1.4  15-Aug-2019  kamil Fix build of t_ubsan/t_ubsanxx under MKSANITIZER

Do not link micro-ubsan runtime for disabled tests.

This avoids double symbols linked into a single binary.
 1.3  04-Feb-2019  mrg branches: 1.3.2; 1.3.4;
- revert previous to t_ubsan.c, it is desired behaviour. from kamil.
- use -Wno-int-in-bool-context instead
 1.2  09-Aug-2018  christos branches: 1.2.2;
Fix stack protector build.
 1.1  03-Aug-2018  kamil Import micro-UBSan ATF tests

These tests are used only when a distribution is built without MKSANITIZER
and without MKLIBCSANITIZER. They build the ubsan.c micro-implementation
in userland as a standalone library (a .c file linked into tests).

The code generation part emits symbols that are handled by uUBSan.

Tested with Clang amd64 + i386 and GCC amd64 + i386.

There are two sets of tests: C code generation and C++ code generation.

There are various little differences that are handled with proper ifdefs.

Clang 7svn has significantly more checks for Undefined Behavior than GCC
5.x. Some of the tests are or might be amd64 and/or i386 specific and are
marked with proper ifdefs and comments according to the compiler
documentation.
 1.2.2.2  06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.2.2.1  09-Aug-2018  pgoyette file Makefile was added on branch pgoyette-compat on 2018-09-06 06:56:48 +0000
 1.3.4.1  16-Aug-2019  martin Pull up following revision(s) (requested by kamil in ticket #62):

tests/lib/libc/misc/Makefile: revision 1.4

Fix build of t_ubsan/t_ubsanxx under MKSANITIZER
Do not link micro-ubsan runtime for disabled tests.

This avoids double symbols linked into a single binary.
 1.3.2.4  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.3.2.3  08-Apr-2020  martin Merge changes from current as of 20200406
 1.3.2.2  10-Jun-2019  christos Sync with HEAD
 1.3.2.1  04-Feb-2019  christos file Makefile was added on branch phil-wifi on 2019-06-10 22:10:04 +0000

RSS XML Feed