]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Testsuite, Darwin: Fix trampoline warning
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Mon, 30 Oct 2023 13:45:47 +0000 (14:45 +0100)
committerFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Mon, 30 Oct 2023 13:45:47 +0000 (14:45 +0100)
Heap-based trampolines are enabled on darwin20 and later,
meaning that no warning is emitted.

gcc/testsuite/ChangeLog:

* gcc.dg/Wtrampolines.c: Skip on darwin20 and later.

gcc/testsuite/gcc.dg/Wtrampolines.c

index 8ff09ebc9fe5fca34171bac0295a1abccd51f3d2..fc7dfe10ed359fa5f60259810523780b991c6172 100644 (file)
@@ -5,6 +5,9 @@
 /* { dg-require-effective-target trampolines } */
 /* { dg-options "-O2 -Wtrampolines" } */
 
+/* macOS 11 and above use heap-based trampolines, which do not emit a warning.  */
+/* { dg-skip-if "" { *-*-darwin2* } } */
+
 /* This used to fail on various versions of Solaris 2 because the
    trampoline couldn't be made executable.  */