diff options
author | Jose E. Marchesi <jose.marchesi@oracle.com> | 2023-07-28 21:01:08 +0200 |
---|---|---|
committer | Jose E. Marchesi <jose.marchesi@oracle.com> | 2023-07-28 21:02:29 +0200 |
commit | 9f5372707f920fcf672eca76243c0d6de460f787 (patch) | |
tree | 8cb70c57fc4eec8a3d9ac9ec04c74a9725f01a94 /gcc | |
parent | 02f4ca0df2d69b922a622e7cc9b396cf686d5a0f (diff) | |
download | gcc-9f5372707f920fcf672eca76243c0d6de460f787.zip gcc-9f5372707f920fcf672eca76243c0d6de460f787.tar.gz gcc-9f5372707f920fcf672eca76243c0d6de460f787.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/bpf/bpf.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/bpf/bpf.cc b/gcc/config/bpf/bpf.cc index b5b5674..57817cd 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 |