public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-5009] Testsuite, Darwin: Fix trampoline warning
@ 2023-10-30 14:14 François-Xavier Coudert
0 siblings, 0 replies; only message in thread
From: François-Xavier Coudert @ 2023-10-30 14:14 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:89e97f655d63b90adf2b3cfd643c4869f95cc92e
commit r14-5009-g89e97f655d63b90adf2b3cfd643c4869f95cc92e
Author: Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Date: Mon Oct 30 14:45:47 2023 +0100
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:
---
gcc/testsuite/gcc.dg/Wtrampolines.c | 3 +++
1 file changed, 3 insertions(+)
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. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-10-30 14:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-30 14:14 [gcc r14-5009] Testsuite, Darwin: Fix trampoline warning François-Xavier Coudert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).