diff options
author | Alexandre Oliva <oliva@adacore.com> | 2023-12-01 14:31:22 -0300 |
---|---|---|
committer | Alexandre Oliva <oliva@gnu.org> | 2023-12-01 14:31:22 -0300 |
commit | b8edb812ff4934c609fdfafe2e1c7f932bc18305 (patch) | |
tree | 02f0d34dca3b63696b169639fe12721d0ad1901c /gcc/value-range.h | |
parent | c4a49ebd1e584b9e2e39c9fa53cce30c8f0b0b5b (diff) | |
download | gcc-b8edb812ff4934c609fdfafe2e1c7f932bc18305.zip gcc-b8edb812ff4934c609fdfafe2e1c7f932bc18305.tar.gz gcc-b8edb812ff4934c609fdfafe2e1c7f932bc18305.tar.bz2 |
hardcfr: make builtin_return tests more portable [PR112334]
Rework __builtin_return tests to explicitly call __builtin_apply and
use its return value rather than anything else. Also require
untyped_assembly. Avoid the noise out of exceptions escaping the
builtin-applied function, but add a test to cover their effects as
well.
for gcc/testsuite/ChangeLog
PR target/112334
* c-c++-common/torture/harden-cfr-bret.c: Rework for stricter
untyped_return requirements. Require untyped_assembly.
* c-c++-common/torture/harden-cfr-bret-except.c: New.
* c-c++-common/torture/harden-cfr-bret-always.c: Require
untyped_assembly.
* c-c++-common/torture/harden-cfr-bret-never.c: Likewise.
* c-c++-common/torture/harden-cfr-bret-noopt.c: Likewise.
* c-c++-common/torture/harden-cfr-bret-noret.c: Likewise.
* c-c++-common/torture/harden-cfr-bret-no-xthrow.c: Likewise.
* c-c++-common/torture/harden-cfr-bret-nothrow.c: Likewise.
* c-c++-common/torture/harden-cfr-bret-retcl.c: Likewise.
Diffstat (limited to 'gcc/value-range.h')
0 files changed, 0 insertions, 0 deletions