[riot-notifications] [RIOT-OS/RIOT] make: add ubsan support (#10782)

Kaspar Schleiser notifications at github.com
Wed Jan 16 15:15:58 CET 2019

### Contribution description

Bot gcc and clang allow generation of code to check for undefined behaviour at runtime, called the "undefined behaviour sanitizer" (ubsan).
This PR adds some Makefile logic to enable it.

It also includes a commit that enables ubsan for the unittests.

Marked WIP as there are currently quite some hits for the unittests.

### Testing procedure

Run unittests on native and hardware.

### Issues/PRs references

You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * make: add initial ubsan support
  * tests/unittest: enable trap on undefined behaviour

-- File Changes --

    A makefiles/ubsan.inc.mk (62)
    M tests/unittests/Makefile (3)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190116/ae13847e/attachment.html>

More information about the notifications mailing list