public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-2857] bpf: disable tail call optimization in BPF targets
@ 2023-07-28 19:02 Jose E. Marchesi
0 siblings, 0 replies; only message in thread
From: Jose E. Marchesi @ 2023-07-28 19:02 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:9f5372707f920fcf672eca76243c0d6de460f787
commit r14-2857-g9f5372707f920fcf672eca76243c0d6de460f787
Author: Jose E. Marchesi <jose.marchesi@oracle.com>
Date: Fri Jul 28 21:01:08 2023 +0200
bpf: disable tail call optimization in BPF targets
clang disables tail call optimizations in BPF targets. Do the same in
GCC.
gcc/ChangeLog:
* config/bpf/bpf.cc (bpf_option_override): Disable tail-call
optimizations in BPF target.
Diff:
---
gcc/config/bpf/bpf.cc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gcc/config/bpf/bpf.cc b/gcc/config/bpf/bpf.cc
index b5b5674edbb..57817cdf2f8 100644
--- a/gcc/config/bpf/bpf.cc
+++ b/gcc/config/bpf/bpf.cc
@@ -273,6 +273,9 @@ bpf_option_override (void)
"on this architecture");
flag_stack_protect = 0;
}
+
+ /* The BPF target does not support tail call optimization. */
+ flag_optimize_sibling_calls = 0;
}
#undef TARGET_OPTION_OVERRIDE
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-07-28 19:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-28 19:02 [gcc r14-2857] bpf: disable tail call optimization in BPF targets Jose E. Marchesi
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).