Hello,

Update of the hwasan tests attached.

Ok for trunk?

(NOTE on the state of the entire patch series:
  Currently re-testing everything from scratch to ensure I didn't get tripped up
  from old state carried around.
  Also looking into PR 97941 on hwasan.  As yet don't understand what's going
  on there and having difficulty reproducing.)


------------

Adding hwasan tests.

Only interesting thing here is that we have to make sure the tagging mechanism
is deterministic to avoid flaky tests.

gcc/testsuite/ChangeLog:

        * c-c++-common/ubsan/sanitize-recover-7.c: Update error message format.
        * lib/asan-dg.exp (check_effective_target_fsanitize_address): Move to
        target-supports.exp.
        (asan_link_flags): Implement as a helper function asan_link_flags_1
        which asan_link_flags and hwasan_link_flags use.
        (asan_link_flags_1): Parametrised version of asan_link_flags.
        * lib/target-supports.exp (check_effective_target_fsanitize_address):
        Move from asan-dg.exp.
        (check_effective_target_fsanitize_hwaddress,
        check_effective_target_hwaddress_exec): New.
        * c-c++-common/hwasan/aligned-alloc.c: New test.
        * c-c++-common/hwasan/alloca-array-accessible.c: New test.
        * c-c++-common/hwasan/alloca-base-init.c: New test.
        * c-c++-common/hwasan/alloca-gets-different-tag.c: New test.
        * c-c++-common/hwasan/alloca-outside-caught.c: New test.
        * c-c++-common/hwasan/arguments-1.c: New test.
        * c-c++-common/hwasan/arguments-2.c: New test.
        * c-c++-common/hwasan/arguments-3.c: New test.
        * c-c++-common/hwasan/arguments.c: New test.
        * c-c++-common/hwasan/asan-pr63316.c: New test.
        * c-c++-common/hwasan/asan-pr70541.c: New test.
        * c-c++-common/hwasan/asan-pr78106.c: New test.
        * c-c++-common/hwasan/asan-pr79944.c: New test.
        * c-c++-common/hwasan/asan-rlimit-mmap-test-1.c: New test.
        * c-c++-common/hwasan/bitfield-1.c: New test.
        * c-c++-common/hwasan/bitfield-2.c: New test.
        * c-c++-common/hwasan/builtin-special-handling.c: New test.
        * c-c++-common/hwasan/check-interface.c: New test.
        * c-c++-common/hwasan/halt_on_error-1.c: New test.
        * c-c++-common/hwasan/handles-poly_int-marked-vars.c: New test.
        * c-c++-common/hwasan/heap-overflow.c: New test.
        * c-c++-common/hwasan/hwasan-poison-optimisation.c: New test.
        * c-c++-common/hwasan/hwasan-thread-access-parent.c: New test.
        * c-c++-common/hwasan/hwasan-thread-basic-failure.c: New test.
        * c-c++-common/hwasan/hwasan-thread-clears-stack.c: New test.
        * c-c++-common/hwasan/hwasan-thread-success.c: New test.
        * c-c++-common/hwasan/kernel-defaults.c: New test.
        * c-c++-common/hwasan/large-aligned-0.c: New test.
        * c-c++-common/hwasan/large-aligned-1.c: New test.
        * c-c++-common/hwasan/large-aligned-untagging-0.c: New test.
        * c-c++-common/hwasan/large-aligned-untagging-1.c: New test.
        * c-c++-common/hwasan/large-aligned-untagging-2.c: New test.
        * c-c++-common/hwasan/large-aligned-untagging-3.c: New test.
        * c-c++-common/hwasan/large-aligned-untagging-4.c: New test.
        * c-c++-common/hwasan/large-aligned-untagging-5.c: New test.
        * c-c++-common/hwasan/large-aligned-untagging-6.c: New test.
        * c-c++-common/hwasan/large-aligned-untagging-7.c: New test.
        * c-c++-common/hwasan/macro-definition.c: New test.
        * c-c++-common/hwasan/no-sanitize-attribute.c: New test.
        * c-c++-common/hwasan/param-instrument-mem-intrinsics.c: New test.
        * c-c++-common/hwasan/param-instrument-reads-and-writes.c: New test.
        * c-c++-common/hwasan/param-instrument-reads.c: New test.
        * c-c++-common/hwasan/param-instrument-writes.c: New test.
        * c-c++-common/hwasan/random-frame-tag.c: New test.
        * c-c++-common/hwasan/sanity-check-pure-c.c: New test.
        * c-c++-common/hwasan/setjmp-longjmp-0.c: New test.
        * c-c++-common/hwasan/setjmp-longjmp-1.c: New test.
        * c-c++-common/hwasan/stack-tagging-basic-0.c: New test.
        * c-c++-common/hwasan/stack-tagging-basic-1.c: New test.
        * c-c++-common/hwasan/stack-tagging-disable.c: New test.
        * c-c++-common/hwasan/unprotected-allocas-0.c: New test.
        * c-c++-common/hwasan/unprotected-allocas-1.c: New test.
        * c-c++-common/hwasan/use-after-free.c: New test.
        * c-c++-common/hwasan/vararray-outside-caught.c: New test.
        * c-c++-common/hwasan/vararray-stack-restore-correct.c: New test.
        * c-c++-common/hwasan/very-large-objects.c: New test.
        * g++.dg/hwasan/hwasan.exp: New test.
        * g++.dg/hwasan/rvo-handled.C: New test.
        * gcc.dg/hwasan/hwasan.exp: New test.
        * gcc.dg/hwasan/nested-functions-0.c: New test.
        * gcc.dg/hwasan/nested-functions-1.c: New test.
        * gcc.dg/hwasan/nested-functions-2.c: New test.
        * lib/hwasan-dg.exp: New file.

Attachment: hwasan-testsuite.patch.gz
Description: application/gzip

Reply via email to