From: Francois-Xavier Coudert Date: Mon, 30 Oct 2023 13:45:47 +0000 (+0100) Subject: Testsuite, Darwin: Fix trampoline warning X-Git-Tag: basepoints/gcc-15~5130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89e97f655d63b90adf2b3cfd643c4869f95cc92e;p=thirdparty%2Fgcc.git Testsuite, Darwin: Fix trampoline warning 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. --- diff --git a/gcc/testsuite/gcc.dg/Wtrampolines.c b/gcc/testsuite/gcc.dg/Wtrampolines.c index 8ff09ebc9fe5..fc7dfe10ed35 100644 --- a/gcc/testsuite/gcc.dg/Wtrampolines.c +++ b/gcc/testsuite/gcc.dg/Wtrampolines.c @@ -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. */