]> git.ipfire.org Git - thirdparty/gcc.git/commit
BPF, nvptx: Standardize on 'sorry, unimplemented: dynamic stack allocation not supported'
authorThomas Schwinge <tschwinge@baylibre.com>
Fri, 21 Feb 2025 10:21:08 +0000 (11:21 +0100)
committerThomas Schwinge <tschwinge@baylibre.com>
Sat, 22 Feb 2025 21:37:50 +0000 (22:37 +0100)
commit2abc942fd486be217de1ba0282a3dc8e21d599aa
treee6e4eb4733492eaf3a8563ac9e945ef7b5fe7ba6
parente759ff08e2e2e7128db7e6313b4218daa367c74f
BPF, nvptx: Standardize on 'sorry, unimplemented: dynamic stack allocation not supported'

... instead of BPF: 'error: BPF does not support dynamic stack allocation', and
nvptx: 'sorry, unimplemented: target cannot support alloca'.

gcc/
* config/bpf/bpf.md (define_expand "allocate_stack"): Emit
'sorry, unimplemented: dynamic stack allocation not supported'.
* config/nvptx/nvptx.md (define_expand "allocate_stack")
[!TARGET_SOFT_STACK && !(TARGET_PTX_7_3 && TARGET_SM52)]: Likewise.
gcc/testsuite/
* gcc.target/bpf/diag-alloca-1.c: Adjust 'dg-message'.
* gcc.target/bpf/diag-alloca-2.c: Likewise.
* gcc.target/nvptx/alloca-1-sm_30.c: Likewise.
* gcc.target/nvptx/vla-1-sm_30.c: Likewise.
* lib/target-supports.exp (proc check_effective_target_alloca):
Adjust comment.
gcc/config/bpf/bpf.md
gcc/config/nvptx/nvptx.md
gcc/testsuite/gcc.target/bpf/diag-alloca-1.c
gcc/testsuite/gcc.target/bpf/diag-alloca-2.c
gcc/testsuite/gcc.target/nvptx/alloca-1-sm_30.c
gcc/testsuite/gcc.target/nvptx/vla-1-sm_30.c
gcc/testsuite/lib/target-supports.exp