aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/c-c++-common/Walloca-larger-than.c3
-rw-r--r--gcc/testsuite/c-c++-common/Warray-bounds-9.c3
-rw-r--r--gcc/testsuite/c-c++-common/Warray-bounds.c1
-rw-r--r--gcc/testsuite/c-c++-common/Wdangling-pointer-2.c3
-rw-r--r--gcc/testsuite/c-c++-common/Wdangling-pointer-4.c3
-rw-r--r--gcc/testsuite/c-c++-common/Wdangling-pointer-5.c3
-rw-r--r--gcc/testsuite/c-c++-common/Wdangling-pointer.c3
-rw-r--r--gcc/testsuite/c-c++-common/Wimplicit-fallthrough-7.c1
-rw-r--r--gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess1.c1
-rw-r--r--gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c1
-rw-r--r--gcc/testsuite/c-c++-common/Wstringop-truncation.c3
-rw-r--r--gcc/testsuite/c-c++-common/Wunused-var-6.c1
-rw-r--r--gcc/testsuite/c-c++-common/Wunused-var-8.c1
-rw-r--r--gcc/testsuite/c-c++-common/analyzer/alloca-leak.c2
-rw-r--r--gcc/testsuite/c-c++-common/analyzer/allocation-size-multiline-2.c1
-rw-r--r--gcc/testsuite/c-c++-common/analyzer/allocation-size-multiline-3.c1
-rw-r--r--gcc/testsuite/c-c++-common/analyzer/capacity-1.c1
-rw-r--r--gcc/testsuite/c-c++-common/analyzer/capacity-3.c1
-rw-r--r--gcc/testsuite/c-c++-common/analyzer/imprecise-floating-point-1.c1
-rw-r--r--gcc/testsuite/c-c++-common/analyzer/infinite-recursion-alloca.c2
-rw-r--r--gcc/testsuite/c-c++-common/analyzer/malloc-callbacks.c1
-rw-r--r--gcc/testsuite/c-c++-common/analyzer/malloc-paths-8.c1
-rw-r--r--gcc/testsuite/c-c++-common/analyzer/out-of-bounds-5.c1
-rw-r--r--gcc/testsuite/c-c++-common/analyzer/out-of-bounds-diagram-11.c1
-rw-r--r--gcc/testsuite/c-c++-common/analyzer/uninit-alloca.c2
-rw-r--r--gcc/testsuite/c-c++-common/analyzer/write-to-string-literal-5.c1
-rw-r--r--gcc/testsuite/c-c++-common/asan/alloca_loop_unpoisoning.c1
-rw-r--r--gcc/testsuite/c-c++-common/auto-init-11.c1
-rw-r--r--gcc/testsuite/c-c++-common/auto-init-12.c1
-rw-r--r--gcc/testsuite/c-c++-common/auto-init-15.c1
-rw-r--r--gcc/testsuite/c-c++-common/auto-init-16.c1
-rw-r--r--gcc/testsuite/c-c++-common/builtins.c3
-rw-r--r--gcc/testsuite/c-c++-common/dwarf2/vla1.c1
-rw-r--r--gcc/testsuite/c-c++-common/gomp/pr61486-2.c1
-rw-r--r--gcc/testsuite/c-c++-common/torture/builtin-clear-padding-4.c1
-rw-r--r--gcc/testsuite/c-c++-common/torture/strub-run3.c1
-rw-r--r--gcc/testsuite/c-c++-common/torture/strub-run4.c1
-rw-r--r--gcc/testsuite/c-c++-common/torture/strub-run4c.c1
-rw-r--r--gcc/testsuite/c-c++-common/torture/strub-run4d.c1
-rw-r--r--gcc/testsuite/c-c++-common/torture/strub-run4i.c1
-rw-r--r--gcc/testsuite/g++.dg/Walloca1.C1
-rw-r--r--gcc/testsuite/g++.dg/Walloca2.C1
-rw-r--r--gcc/testsuite/g++.dg/cpp0x/pr70338.C1
-rw-r--r--gcc/testsuite/g++.dg/cpp1y/lambda-generic-vla1.C1
-rw-r--r--gcc/testsuite/g++.dg/cpp1y/vla10.C1
-rw-r--r--gcc/testsuite/g++.dg/cpp1y/vla2.C1
-rw-r--r--gcc/testsuite/g++.dg/cpp1y/vla6.C1
-rw-r--r--gcc/testsuite/g++.dg/cpp1y/vla8.C1
-rw-r--r--gcc/testsuite/g++.dg/debug/debug5.C1
-rw-r--r--gcc/testsuite/g++.dg/debug/debug6.C1
-rw-r--r--gcc/testsuite/g++.dg/debug/pr54828.C1
-rw-r--r--gcc/testsuite/g++.dg/diagnostic/pr70105.C1
-rw-r--r--gcc/testsuite/g++.dg/eh/cleanup5.C1
-rw-r--r--gcc/testsuite/g++.dg/eh/spbp.C1
-rw-r--r--gcc/testsuite/g++.dg/ext/builtin_alloca.C1
-rw-r--r--gcc/testsuite/g++.dg/ext/tmplattr9.C1
-rw-r--r--gcc/testsuite/g++.dg/ext/vla10.C1
-rw-r--r--gcc/testsuite/g++.dg/ext/vla11.C1
-rw-r--r--gcc/testsuite/g++.dg/ext/vla12.C1
-rw-r--r--gcc/testsuite/g++.dg/ext/vla15.C1
-rw-r--r--gcc/testsuite/g++.dg/ext/vla16.C1
-rw-r--r--gcc/testsuite/g++.dg/ext/vla17.C1
-rw-r--r--gcc/testsuite/g++.dg/ext/vla23.C1
-rw-r--r--gcc/testsuite/g++.dg/ext/vla3.C1
-rw-r--r--gcc/testsuite/g++.dg/ext/vla6.C1
-rw-r--r--gcc/testsuite/g++.dg/ext/vla7.C1
-rw-r--r--gcc/testsuite/g++.dg/init/array24.C1
-rw-r--r--gcc/testsuite/g++.dg/init/new47.C1
-rw-r--r--gcc/testsuite/g++.dg/init/pr55497.C1
-rw-r--r--gcc/testsuite/g++.dg/opt/pr78201.C1
-rw-r--r--gcc/testsuite/g++.dg/template/vla2.C1
-rw-r--r--gcc/testsuite/g++.dg/torture/Wsizeof-pointer-memaccess1.C1
-rw-r--r--gcc/testsuite/g++.dg/torture/Wsizeof-pointer-memaccess2.C1
-rw-r--r--gcc/testsuite/g++.dg/torture/pr62127.C2
-rw-r--r--gcc/testsuite/g++.dg/torture/pr67055.C1
-rw-r--r--gcc/testsuite/g++.dg/torture/stackalign/eh-alloca-1.C1
-rw-r--r--gcc/testsuite/g++.dg/torture/stackalign/eh-inline-2.C1
-rw-r--r--gcc/testsuite/g++.dg/torture/stackalign/eh-vararg-1.C1
-rw-r--r--gcc/testsuite/g++.dg/torture/stackalign/eh-vararg-2.C1
-rw-r--r--gcc/testsuite/g++.dg/warn/Wplacement-new-size-5.C1
-rw-r--r--gcc/testsuite/g++.dg/warn/Wsizeof-pointer-memaccess-1.C1
-rw-r--r--gcc/testsuite/g++.dg/warn/Wvla-1.C1
-rw-r--r--gcc/testsuite/g++.dg/warn/Wvla-3.C2
-rw-r--r--gcc/testsuite/g++.old-deja/g++.ext/array2.C1
-rw-r--r--gcc/testsuite/g++.old-deja/g++.ext/constructor.C1
-rw-r--r--gcc/testsuite/g++.old-deja/g++.law/builtin1.C1
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/crash12.C1
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/eh3.C2
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/array6.C1
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/dynarray.C1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000923-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20001221-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020807-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20030224-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20050801-2.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20071108-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20071117-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/900313-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/920428-4.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/debugvlafunction-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/parms.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr17397.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr35006.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr41469.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr42956.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr51354.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr52714.c2
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr55851.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr77754-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr77754-2.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr77754-3.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr77754-4.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr77754-5.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr77754-6.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr78439.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr79413.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr82564.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr87110.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr99787-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/vla-const-1.c2
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/vla-const-2.c2
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20010209-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20020314-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20020412-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20021113-1.c2
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20040223-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20040308-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20040811-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20070824-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20070919-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/920721-2.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/920929-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/921017-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/941202-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/align-nest.c2
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/alloca-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/built-in-setjmp.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/pr22061-1.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/pr22061-4.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/pr36321.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/pr43220.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/pr82210.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/pr86528.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/vla-dealloc-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/20001012-2.c1
-rw-r--r--gcc/testsuite/gcc.dg/20020415-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/20030331-2.c1
-rw-r--r--gcc/testsuite/gcc.dg/20101010-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/Walloca-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/Walloca-10.c1
-rw-r--r--gcc/testsuite/gcc.dg/Walloca-11.c1
-rw-r--r--gcc/testsuite/gcc.dg/Walloca-12.c1
-rw-r--r--gcc/testsuite/gcc.dg/Walloca-13.c1
-rw-r--r--gcc/testsuite/gcc.dg/Walloca-14.c1
-rw-r--r--gcc/testsuite/gcc.dg/Walloca-15.c1
-rw-r--r--gcc/testsuite/gcc.dg/Walloca-2.c1
-rw-r--r--gcc/testsuite/gcc.dg/Walloca-3.c1
-rw-r--r--gcc/testsuite/gcc.dg/Walloca-4.c1
-rw-r--r--gcc/testsuite/gcc.dg/Walloca-5.c1
-rw-r--r--gcc/testsuite/gcc.dg/Walloca-6.c1
-rw-r--r--gcc/testsuite/gcc.dg/Walloca-7.c1
-rw-r--r--gcc/testsuite/gcc.dg/Walloca-8.c1
-rw-r--r--gcc/testsuite/gcc.dg/Walloca-9.c1
-rw-r--r--gcc/testsuite/gcc.dg/Walloca-larger-than-2.c1
-rw-r--r--gcc/testsuite/gcc.dg/Walloca-larger-than-3.c3
-rw-r--r--gcc/testsuite/gcc.dg/Walloca-larger-than-4.c3
-rw-r--r--gcc/testsuite/gcc.dg/Walloca-larger-than.c1
-rw-r--r--gcc/testsuite/gcc.dg/Warray-bounds-22.c1
-rw-r--r--gcc/testsuite/gcc.dg/Warray-bounds-41.c1
-rw-r--r--gcc/testsuite/gcc.dg/Warray-bounds-46.c3
-rw-r--r--gcc/testsuite/gcc.dg/Warray-bounds-48-novec.c3
-rw-r--r--gcc/testsuite/gcc.dg/Warray-bounds-48.c3
-rw-r--r--gcc/testsuite/gcc.dg/Warray-bounds-50.c3
-rw-r--r--gcc/testsuite/gcc.dg/Warray-bounds-63.c3
-rw-r--r--gcc/testsuite/gcc.dg/Warray-bounds-66.c3
-rw-r--r--gcc/testsuite/gcc.dg/Wdangling-pointer.c3
-rw-r--r--gcc/testsuite/gcc.dg/Wfree-nonheap-object-2.c3
-rw-r--r--gcc/testsuite/gcc.dg/Wfree-nonheap-object.c3
-rw-r--r--gcc/testsuite/gcc.dg/Wrestrict-17.c1
-rw-r--r--gcc/testsuite/gcc.dg/Wrestrict.c3
-rw-r--r--gcc/testsuite/gcc.dg/Wreturn-local-addr-2.c3
-rw-r--r--gcc/testsuite/gcc.dg/Wreturn-local-addr-3.c3
-rw-r--r--gcc/testsuite/gcc.dg/Wreturn-local-addr-4.c3
-rw-r--r--gcc/testsuite/gcc.dg/Wreturn-local-addr-6.c3
-rw-r--r--gcc/testsuite/gcc.dg/Wsizeof-pointer-memaccess1.c1
-rw-r--r--gcc/testsuite/gcc.dg/Wstack-usage.c3
-rw-r--r--gcc/testsuite/gcc.dg/Wstrict-aliasing-bogus-vla-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/Wstrict-overflow-27.c1
-rw-r--r--gcc/testsuite/gcc.dg/Wstringop-overflow-15.c3
-rw-r--r--gcc/testsuite/gcc.dg/Wstringop-overflow-23.c3
-rw-r--r--gcc/testsuite/gcc.dg/Wstringop-overflow-25.c3
-rw-r--r--gcc/testsuite/gcc.dg/Wstringop-overflow-27.c3
-rw-r--r--gcc/testsuite/gcc.dg/Wstringop-overflow-3.c1
-rw-r--r--gcc/testsuite/gcc.dg/Wstringop-overflow-39.c3
-rw-r--r--gcc/testsuite/gcc.dg/Wstringop-overflow-56.c3
-rw-r--r--gcc/testsuite/gcc.dg/Wstringop-overflow-57.c3
-rw-r--r--gcc/testsuite/gcc.dg/Wstringop-overflow-67.c3
-rw-r--r--gcc/testsuite/gcc.dg/Wstringop-overflow-71.c3
-rw-r--r--gcc/testsuite/gcc.dg/Wstringop-truncation-3.c1
-rw-r--r--gcc/testsuite/gcc.dg/Wvla-larger-than-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/Wvla-larger-than-2.c1
-rw-r--r--gcc/testsuite/gcc.dg/Wvla-larger-than-3.c1
-rw-r--r--gcc/testsuite/gcc.dg/Wvla-larger-than-4.c9
-rw-r--r--gcc/testsuite/gcc.dg/Wvla-larger-than-5.c3
-rw-r--r--gcc/testsuite/gcc.dg/analyzer/boxed-malloc-1.c2
-rw-r--r--gcc/testsuite/gcc.dg/analyzer/call-summaries-2.c1
-rw-r--r--gcc/testsuite/gcc.dg/analyzer/data-model-1.c3
-rw-r--r--gcc/testsuite/gcc.dg/analyzer/malloc-1.c2
-rw-r--r--gcc/testsuite/gcc.dg/analyzer/malloc-reuse.c2
-rw-r--r--gcc/testsuite/gcc.dg/analyzer/out-of-bounds-diagram-12.c1
-rw-r--r--gcc/testsuite/gcc.dg/analyzer/pr93355-localealias.c1
-rw-r--r--gcc/testsuite/gcc.dg/analyzer/putenv-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/analyzer/taint-alloc-1.c2
-rw-r--r--gcc/testsuite/gcc.dg/analyzer/torture/pr93373.c4
-rw-r--r--gcc/testsuite/gcc.dg/analyzer/torture/ubsan-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/analyzer/vla-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/atomic/stdatomic-vm.c1
-rw-r--r--gcc/testsuite/gcc.dg/attr-alloc_size-6.c1
-rw-r--r--gcc/testsuite/gcc.dg/attr-alloc_size-7.c1
-rw-r--r--gcc/testsuite/gcc.dg/attr-alloc_size-8.c1
-rw-r--r--gcc/testsuite/gcc.dg/attr-alloc_size-9.c1
-rw-r--r--gcc/testsuite/gcc.dg/attr-noipa.c1
-rw-r--r--gcc/testsuite/gcc.dg/auto-init-uninit-36.c3
-rw-r--r--gcc/testsuite/gcc.dg/auto-init-uninit-9.c1
-rw-r--r--gcc/testsuite/gcc.dg/auto-type-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/builtin-alloc-size.c1
-rw-r--r--gcc/testsuite/gcc.dg/builtin-dynamic-alloc-size.c1
-rw-r--r--gcc/testsuite/gcc.dg/builtin-dynamic-object-size-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/builtin-dynamic-object-size-2.c1
-rw-r--r--gcc/testsuite/gcc.dg/builtin-dynamic-object-size-3.c1
-rw-r--r--gcc/testsuite/gcc.dg/builtin-dynamic-object-size-4.c1
-rw-r--r--gcc/testsuite/gcc.dg/builtin-object-size-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/builtin-object-size-2.c1
-rw-r--r--gcc/testsuite/gcc.dg/builtin-object-size-3.c1
-rw-r--r--gcc/testsuite/gcc.dg/builtin-object-size-4.c1
-rw-r--r--gcc/testsuite/gcc.dg/builtins-64.c1
-rw-r--r--gcc/testsuite/gcc.dg/builtins-68.c1
-rw-r--r--gcc/testsuite/gcc.dg/c23-auto-2.c1
-rw-r--r--gcc/testsuite/gcc.dg/c99-const-expr-13.c1
-rw-r--r--gcc/testsuite/gcc.dg/c99-vla-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/compat/struct-by-value-22_main.c3
-rw-r--r--gcc/testsuite/gcc.dg/fold-alloca-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/gomp/pr30494.c1
-rw-r--r--gcc/testsuite/gcc.dg/gomp/vla-2.c1
-rw-r--r--gcc/testsuite/gcc.dg/gomp/vla-3.c1
-rw-r--r--gcc/testsuite/gcc.dg/gomp/vla-4.c1
-rw-r--r--gcc/testsuite/gcc.dg/gomp/vla-5.c1
-rw-r--r--gcc/testsuite/gcc.dg/graphite/pr99085.c1
-rw-r--r--gcc/testsuite/gcc.dg/guality/guality.c1
-rw-r--r--gcc/testsuite/gcc.dg/lto/pr80778_0.c1
-rw-r--r--gcc/testsuite/gcc.dg/nested-func-10.c1
-rw-r--r--gcc/testsuite/gcc.dg/nested-func-12.c1
-rw-r--r--gcc/testsuite/gcc.dg/nested-func-13.c1
-rw-r--r--gcc/testsuite/gcc.dg/nested-func-14.c1
-rw-r--r--gcc/testsuite/gcc.dg/nested-func-15.c1
-rw-r--r--gcc/testsuite/gcc.dg/nested-func-16.c1
-rw-r--r--gcc/testsuite/gcc.dg/nested-func-17.c1
-rw-r--r--gcc/testsuite/gcc.dg/nested-func-9.c1
-rw-r--r--gcc/testsuite/gcc.dg/packed-vla.c1
-rw-r--r--gcc/testsuite/gcc.dg/pr100225.c1
-rw-r--r--gcc/testsuite/gcc.dg/pr25682.c1
-rw-r--r--gcc/testsuite/gcc.dg/pr27301.c1
-rw-r--r--gcc/testsuite/gcc.dg/pr31507-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/pr33238.c1
-rw-r--r--gcc/testsuite/gcc.dg/pr41470.c1
-rw-r--r--gcc/testsuite/gcc.dg/pr49120.c1
-rw-r--r--gcc/testsuite/gcc.dg/pr50764.c1
-rw-r--r--gcc/testsuite/gcc.dg/pr51491-2.c1
-rw-r--r--gcc/testsuite/gcc.dg/pr51990-2.c1
-rw-r--r--gcc/testsuite/gcc.dg/pr51990.c1
-rw-r--r--gcc/testsuite/gcc.dg/pr59011.c1
-rw-r--r--gcc/testsuite/gcc.dg/pr59523.c1
-rw-r--r--gcc/testsuite/gcc.dg/pr61561.c1
-rw-r--r--gcc/testsuite/gcc.dg/pr78468.c1
-rw-r--r--gcc/testsuite/gcc.dg/pr78902.c1
-rw-r--r--gcc/testsuite/gcc.dg/pr79972.c1
-rw-r--r--gcc/testsuite/gcc.dg/pr82875.c1
-rw-r--r--gcc/testsuite/gcc.dg/pr83844.c1
-rw-r--r--gcc/testsuite/gcc.dg/pr84131.c3
-rw-r--r--gcc/testsuite/gcc.dg/pr87099.c1
-rw-r--r--gcc/testsuite/gcc.dg/pr87320.c1
-rw-r--r--gcc/testsuite/gcc.dg/pr89045.c1
-rw-r--r--gcc/testsuite/gcc.dg/pr91014.c1
-rw-r--r--gcc/testsuite/gcc.dg/pr93986.c3
-rw-r--r--gcc/testsuite/gcc.dg/pr98721-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/pr99122-2.c1
-rw-r--r--gcc/testsuite/gcc.dg/shrink-wrap-alloca.c1
-rw-r--r--gcc/testsuite/gcc.dg/sso-14.c1
-rw-r--r--gcc/testsuite/gcc.dg/strlenopt-62.c1
-rw-r--r--gcc/testsuite/gcc.dg/strlenopt-83.c3
-rw-r--r--gcc/testsuite/gcc.dg/strlenopt-84.c3
-rw-r--r--gcc/testsuite/gcc.dg/strlenopt-91.c3
-rw-r--r--gcc/testsuite/gcc.dg/torture/Wsizeof-pointer-memaccess1.c1
-rw-r--r--gcc/testsuite/gcc.dg/torture/calleesave-sse.c1
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr48953.c1
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr71881.c1
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr71901.c1
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr78742.c1
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr8081.c1
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr92088-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr92088-2.c1
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr93124.c1
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr94479.c1
-rw-r--r--gcc/testsuite/gcc.dg/torture/stackalign/alloca-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/torture/stackalign/inline-2.c1
-rw-r--r--gcc/testsuite/gcc.dg/torture/stackalign/nested-3.c1
-rw-r--r--gcc/testsuite/gcc.dg/torture/stackalign/vararg-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/torture/stackalign/vararg-2.c1
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20030807-2.c1
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20080530.c1
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/alias-37.c1
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-22.c3
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-25.c3
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-3.c1
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-15.c1
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/pr23848-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/pr23848-2.c1
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/pr23848-3.c1
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/pr23848-4.c1
-rw-r--r--gcc/testsuite/gcc.dg/uninit-32.c3
-rw-r--r--gcc/testsuite/gcc.dg/uninit-36.c3
-rw-r--r--gcc/testsuite/gcc.dg/uninit-38.c47
-rw-r--r--gcc/testsuite/gcc.dg/uninit-39.c3
-rw-r--r--gcc/testsuite/gcc.dg/uninit-41.c3
-rw-r--r--gcc/testsuite/gcc.dg/uninit-9-O0.c1
-rw-r--r--gcc/testsuite/gcc.dg/uninit-9.c1
-rw-r--r--gcc/testsuite/gcc.dg/uninit-pr100250.c3
-rw-r--r--gcc/testsuite/gcc.dg/uninit-pr101300.c3
-rw-r--r--gcc/testsuite/gcc.dg/uninit-pr101494.c3
-rw-r--r--gcc/testsuite/gcc.dg/uninit-pr98578.c39
-rw-r--r--gcc/testsuite/gcc.dg/uninit-pr98583.c3
-rw-r--r--gcc/testsuite/gcc.dg/vla-2.c1
-rw-r--r--gcc/testsuite/gcc.dg/vla-22.c1
-rw-r--r--gcc/testsuite/gcc.dg/vla-24.c1
-rw-r--r--gcc/testsuite/gcc.dg/vla-3.c1
-rw-r--r--gcc/testsuite/gcc.dg/vla-4.c1
-rw-r--r--gcc/testsuite/gcc.dg/vla-stexp-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/vla-stexp-2.c1
-rw-r--r--gcc/testsuite/gcc.dg/vla-stexp-4.c1
-rw-r--r--gcc/testsuite/gcc.dg/vla-stexp-5.c1
-rw-r--r--gcc/testsuite/gcc.dg/winline-7.c1
-rw-r--r--gcc/testsuite/gcc.target/aarch64/stack-check-alloca-1.c1
-rw-r--r--gcc/testsuite/gcc.target/aarch64/stack-check-alloca-10.c1
-rw-r--r--gcc/testsuite/gcc.target/aarch64/stack-check-alloca-2.c1
-rw-r--r--gcc/testsuite/gcc.target/aarch64/stack-check-alloca-3.c1
-rw-r--r--gcc/testsuite/gcc.target/aarch64/stack-check-alloca-4.c1
-rw-r--r--gcc/testsuite/gcc.target/aarch64/stack-check-alloca-5.c1
-rw-r--r--gcc/testsuite/gcc.target/aarch64/stack-check-alloca-6.c1
-rw-r--r--gcc/testsuite/gcc.target/aarch64/stack-check-alloca-7.c1
-rw-r--r--gcc/testsuite/gcc.target/aarch64/stack-check-alloca-8.c1
-rw-r--r--gcc/testsuite/gcc.target/aarch64/stack-check-alloca-9.c1
-rw-r--r--gcc/testsuite/gcc.target/arc/interrupt-6.c1
-rw-r--r--gcc/testsuite/gcc.target/i386/pr80969-3.c1
-rw-r--r--gcc/testsuite/gcc.target/loongarch/stack-check-alloca-1.c1
-rw-r--r--gcc/testsuite/gcc.target/loongarch/stack-check-alloca-2.c1
-rw-r--r--gcc/testsuite/gcc.target/loongarch/stack-check-alloca-3.c1
-rw-r--r--gcc/testsuite/gcc.target/loongarch/stack-check-alloca-4.c1
-rw-r--r--gcc/testsuite/gcc.target/loongarch/stack-check-alloca-5.c1
-rw-r--r--gcc/testsuite/gcc.target/loongarch/stack-check-alloca-6.c1
-rw-r--r--gcc/testsuite/gcc.target/riscv/stack-check-alloca-1.c1
-rw-r--r--gcc/testsuite/gcc.target/riscv/stack-check-alloca-10.c1
-rw-r--r--gcc/testsuite/gcc.target/riscv/stack-check-alloca-2.c1
-rw-r--r--gcc/testsuite/gcc.target/riscv/stack-check-alloca-3.c1
-rw-r--r--gcc/testsuite/gcc.target/riscv/stack-check-alloca-4.c1
-rw-r--r--gcc/testsuite/gcc.target/riscv/stack-check-alloca-5.c1
-rw-r--r--gcc/testsuite/gcc.target/riscv/stack-check-alloca-6.c1
-rw-r--r--gcc/testsuite/gcc.target/riscv/stack-check-alloca-7.c1
-rw-r--r--gcc/testsuite/gcc.target/riscv/stack-check-alloca-8.c1
-rw-r--r--gcc/testsuite/gcc.target/riscv/stack-check-alloca-9.c1
-rw-r--r--gcc/testsuite/gcc.target/sparc/setjmp-1.c1
-rw-r--r--gcc/testsuite/gcc.target/x86_64/abi/ms-sysv/ms-sysv.c1
-rw-r--r--gcc/testsuite/lib/gcc-dg.exp7
-rw-r--r--gcc/testsuite/lib/target-supports.exp5
373 files changed, 117 insertions, 482 deletions
diff --git a/gcc/testsuite/c-c++-common/Walloca-larger-than.c b/gcc/testsuite/c-c++-common/Walloca-larger-than.c
index 6fdc1de..e7851ea 100644
--- a/gcc/testsuite/c-c++-common/Walloca-larger-than.c
+++ b/gcc/testsuite/c-c++-common/Walloca-larger-than.c
@@ -1,7 +1,6 @@
/* PR middle-end/100425 - missing -Walloca-larger-than with -O0
{ dg-do compile }
- { dg-options "-O0 -Wall -Walloca-larger-than=128" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O0 -Wall -Walloca-larger-than=128" } */
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/c-c++-common/Warray-bounds-9.c b/gcc/testsuite/c-c++-common/Warray-bounds-9.c
index 3b5cdfe..be05775 100644
--- a/gcc/testsuite/c-c++-common/Warray-bounds-9.c
+++ b/gcc/testsuite/c-c++-common/Warray-bounds-9.c
@@ -1,8 +1,7 @@
/* PR tree-optimization/99121 - ICE in -Warray-bounds on a multidimensional
VLA
{ dg-do compile }
- { dg-options "-O2 -Wall -ftrack-macro-expansion=0" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wall -ftrack-macro-expansion=0" } */
#define NOIPA __attribute__ ((noipa))
diff --git a/gcc/testsuite/c-c++-common/Warray-bounds.c b/gcc/testsuite/c-c++-common/Warray-bounds.c
index ce5827d..0cd4da0 100644
--- a/gcc/testsuite/c-c++-common/Warray-bounds.c
+++ b/gcc/testsuite/c-c++-common/Warray-bounds.c
@@ -1,7 +1,6 @@
/* PR tree-optimization/82588 - missing -Warray-bounds on an excessively
large index
{ dg-do compile }
- { dg-require-effective-target alloca }
{ dg-options "-O2 -Warray-bounds -Wno-stringop-overread -ftrack-macro-expansion=0" } */
#include "../gcc.dg/range.h"
diff --git a/gcc/testsuite/c-c++-common/Wdangling-pointer-2.c b/gcc/testsuite/c-c++-common/Wdangling-pointer-2.c
index 20f11b2..527e5e7 100644
--- a/gcc/testsuite/c-c++-common/Wdangling-pointer-2.c
+++ b/gcc/testsuite/c-c++-common/Wdangling-pointer-2.c
@@ -2,8 +2,7 @@
variable within the same function
Exercise basic cases of -Wdangling-pointer with optimization.
{ dg-do compile }
- { dg-options "-O2 -Wall -Wno-uninitialized -Wno-return-local-addr -ftrack-macro-expansion=0" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wall -Wno-uninitialized -Wno-return-local-addr -ftrack-macro-expansion=0" } */
typedef __INTPTR_TYPE__ intptr_t;
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/c-c++-common/Wdangling-pointer-4.c b/gcc/testsuite/c-c++-common/Wdangling-pointer-4.c
index a747aab..e57e66f 100644
--- a/gcc/testsuite/c-c++-common/Wdangling-pointer-4.c
+++ b/gcc/testsuite/c-c++-common/Wdangling-pointer-4.c
@@ -2,8 +2,7 @@
variable within the same function
Exercise -Wdangling-pointer for VLAs.
{ dg-do compile }
- { dg-options "-O0 -Wall -ftrack-macro-expansion=0" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O0 -Wall -ftrack-macro-expansion=0" } */
void sink (void*, ...);
diff --git a/gcc/testsuite/c-c++-common/Wdangling-pointer-5.c b/gcc/testsuite/c-c++-common/Wdangling-pointer-5.c
index cb6da9e..3a8f542 100644
--- a/gcc/testsuite/c-c++-common/Wdangling-pointer-5.c
+++ b/gcc/testsuite/c-c++-common/Wdangling-pointer-5.c
@@ -3,8 +3,7 @@
Exercise -Wdangling-pointer for escaping stores of addreses of auto
variables.
{ dg-do compile }
- { dg-options "-O0 -Wall -ftrack-macro-expansion=0" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O0 -Wall -ftrack-macro-expansion=0" } */
void* alloca (__SIZE_TYPE__);
diff --git a/gcc/testsuite/c-c++-common/Wdangling-pointer.c b/gcc/testsuite/c-c++-common/Wdangling-pointer.c
index 0a18c3c..394ff92 100644
--- a/gcc/testsuite/c-c++-common/Wdangling-pointer.c
+++ b/gcc/testsuite/c-c++-common/Wdangling-pointer.c
@@ -2,8 +2,7 @@
variable within the same function
Exercise basic cases of -Wdangling-pointer without optimization.
{ dg-do compile }
- { dg-options "-O0 -Wall -Wno-uninitialized -ftrack-macro-expansion=0" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O0 -Wall -Wno-uninitialized -ftrack-macro-expansion=0" } */
typedef __INTPTR_TYPE__ intptr_t;
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/c-c++-common/Wimplicit-fallthrough-7.c b/gcc/testsuite/c-c++-common/Wimplicit-fallthrough-7.c
index 343b625..323fbe6 100644
--- a/gcc/testsuite/c-c++-common/Wimplicit-fallthrough-7.c
+++ b/gcc/testsuite/c-c++-common/Wimplicit-fallthrough-7.c
@@ -1,6 +1,5 @@
/* PR c/7652 */
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
/* { dg-options "-Wimplicit-fallthrough" } */
extern void bar (int);
diff --git a/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess1.c b/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess1.c
index 6c8866d..d204e5f 100644
--- a/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess1.c
+++ b/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess1.c
@@ -2,7 +2,6 @@
/* { dg-do compile } */
/* { dg-options "-Wall -Wno-array-bounds -Wno-sizeof-array-argument -Wno-stringop-overflow -Wno-stringop-overread" } */
/* { dg-options "-Wall -Wno-array-bounds -Wno-sizeof-array-argument -Wno-c++-compat -Wno-stringop-overflow -Wno-stringop-overread" { target c } } */
-/* { dg-require-effective-target alloca } */
typedef __SIZE_TYPE__ size_t;
#ifdef __cplusplus
diff --git a/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c b/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c
index d9a1555..d2f6260 100644
--- a/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c
+++ b/gcc/testsuite/c-c++-common/Wsizeof-pointer-memaccess2.c
@@ -2,7 +2,6 @@
/* { dg-do compile } */
/* { dg-options "-Wall -O2 -Wno-array-bounds -Wno-sizeof-array-argument -Wno-stringop-truncation -ftrack-macro-expansion=0" } */
/* { dg-options "-Wall -O2 -Wno-array-bounds -Wno-sizeof-array-argument -Wno-stringop-truncation -Wno-c++-compat -ftrack-macro-expansion=0" {target c} } */
-/* { dg-require-effective-target alloca } */
#define bos(ptr) __builtin_object_size (ptr, 1)
#define bos0(ptr) __builtin_object_size (ptr, 0)
diff --git a/gcc/testsuite/c-c++-common/Wstringop-truncation.c b/gcc/testsuite/c-c++-common/Wstringop-truncation.c
index 114837b..57b61cd 100644
--- a/gcc/testsuite/c-c++-common/Wstringop-truncation.c
+++ b/gcc/testsuite/c-c++-common/Wstringop-truncation.c
@@ -1,7 +1,6 @@
/* PR middle-end/81117 - Improve buffer overflow checking in strncpy
{ dg-do compile }
- { dg-options "-O2 -Wstringop-truncation -Wno-stringop-overflow -ftrack-macro-expansion=0" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wstringop-truncation -Wno-stringop-overflow -ftrack-macro-expansion=0" } */
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/c-c++-common/Wunused-var-6.c b/gcc/testsuite/c-c++-common/Wunused-var-6.c
index 12a7ddd..1217719 100644
--- a/gcc/testsuite/c-c++-common/Wunused-var-6.c
+++ b/gcc/testsuite/c-c++-common/Wunused-var-6.c
@@ -1,7 +1,6 @@
/* PR c/43981 */
/* { dg-do compile } */
/* { dg-options "-Wunused" } */
-/* { dg-require-effective-target alloca } */
void g (char *);
diff --git a/gcc/testsuite/c-c++-common/Wunused-var-8.c b/gcc/testsuite/c-c++-common/Wunused-var-8.c
index 8c49ed2..0923b35 100644
--- a/gcc/testsuite/c-c++-common/Wunused-var-8.c
+++ b/gcc/testsuite/c-c++-common/Wunused-var-8.c
@@ -1,7 +1,6 @@
/* Origin: PR c++/44108 */
/* { dg-options "-Wunused" } */
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
int
foo ()
diff --git a/gcc/testsuite/c-c++-common/analyzer/alloca-leak.c b/gcc/testsuite/c-c++-common/analyzer/alloca-leak.c
index 073f97e..f8b034f 100644
--- a/gcc/testsuite/c-c++-common/analyzer/alloca-leak.c
+++ b/gcc/testsuite/c-c++-common/analyzer/alloca-leak.c
@@ -1,5 +1,3 @@
-/* { dg-require-effective-target alloca } */
-
void *test (void)
{
void *ptr = __builtin_alloca (64);
diff --git a/gcc/testsuite/c-c++-common/analyzer/allocation-size-multiline-2.c b/gcc/testsuite/c-c++-common/analyzer/allocation-size-multiline-2.c
index cfd6b4f..5de7817 100644
--- a/gcc/testsuite/c-c++-common/analyzer/allocation-size-multiline-2.c
+++ b/gcc/testsuite/c-c++-common/analyzer/allocation-size-multiline-2.c
@@ -1,5 +1,4 @@
/* { dg-additional-options "-fdiagnostics-path-format=inline-events -fdiagnostics-show-caret -fanalyzer-fine-grained" } */
-/* { dg-require-effective-target alloca } */
#include <stdint.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/allocation-size-multiline-3.c b/gcc/testsuite/c-c++-common/analyzer/allocation-size-multiline-3.c
index eeb5219..171a838 100644
--- a/gcc/testsuite/c-c++-common/analyzer/allocation-size-multiline-3.c
+++ b/gcc/testsuite/c-c++-common/analyzer/allocation-size-multiline-3.c
@@ -2,7 +2,6 @@
macro in a system header), and that the output looks correct. */
/* { dg-additional-options "-fdiagnostics-path-format=inline-events -fdiagnostics-show-caret -fanalyzer-fine-grained" } */
-/* { dg-require-effective-target alloca } */
#include <stdint.h>
#include "../../gcc.dg/analyzer/test-alloca.h"
diff --git a/gcc/testsuite/c-c++-common/analyzer/capacity-1.c b/gcc/testsuite/c-c++-common/analyzer/capacity-1.c
index 76905a6..a7674b2 100644
--- a/gcc/testsuite/c-c++-common/analyzer/capacity-1.c
+++ b/gcc/testsuite/c-c++-common/analyzer/capacity-1.c
@@ -1,4 +1,3 @@
-/* { dg-require-effective-target alloca } */
/* { dg-skip-if "" { powerpc*-*-aix* } } */
/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
diff --git a/gcc/testsuite/c-c++-common/analyzer/capacity-3.c b/gcc/testsuite/c-c++-common/analyzer/capacity-3.c
index 2fcf707..4d158b5 100644
--- a/gcc/testsuite/c-c++-common/analyzer/capacity-3.c
+++ b/gcc/testsuite/c-c++-common/analyzer/capacity-3.c
@@ -1,4 +1,3 @@
-/* { dg-require-effective-target alloca } */
/* { dg-skip-if "requires hosted libstdc++ for stdlib size_t" { ! hostedlib } } */
#include <stdlib.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/imprecise-floating-point-1.c b/gcc/testsuite/c-c++-common/analyzer/imprecise-floating-point-1.c
index b093a3c..d3c4798 100644
--- a/gcc/testsuite/c-c++-common/analyzer/imprecise-floating-point-1.c
+++ b/gcc/testsuite/c-c++-common/analyzer/imprecise-floating-point-1.c
@@ -1,4 +1,3 @@
-/* { dg-require-effective-target alloca } */
/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
#include <stdlib.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/infinite-recursion-alloca.c b/gcc/testsuite/c-c++-common/analyzer/infinite-recursion-alloca.c
index 87727e8..8c50631 100644
--- a/gcc/testsuite/c-c++-common/analyzer/infinite-recursion-alloca.c
+++ b/gcc/testsuite/c-c++-common/analyzer/infinite-recursion-alloca.c
@@ -1,5 +1,3 @@
-/* { dg-require-effective-target alloca } */
-
typedef __SIZE_TYPE__ size_t;
int test_alloca_1 (void)
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-callbacks.c b/gcc/testsuite/c-c++-common/analyzer/malloc-callbacks.c
index 422b403..486447c 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-callbacks.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-callbacks.c
@@ -1,4 +1,3 @@
-/* { dg-require-effective-target alloca } */
/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
#include <stdlib.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-paths-8.c b/gcc/testsuite/c-c++-common/analyzer/malloc-paths-8.c
index ca48834..77e3e02 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-paths-8.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-paths-8.c
@@ -1,5 +1,4 @@
/* { dg-additional-options "-fanalyzer-transitivity" } */
-/* { dg-require-effective-target alloca } */
/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
#include <stddef.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/out-of-bounds-5.c b/gcc/testsuite/c-c++-common/analyzer/out-of-bounds-5.c
index 4d15b16..3501d300 100644
--- a/gcc/testsuite/c-c++-common/analyzer/out-of-bounds-5.c
+++ b/gcc/testsuite/c-c++-common/analyzer/out-of-bounds-5.c
@@ -1,5 +1,4 @@
/* { dg-additional-options "-Wno-unused-but-set-variable" } */
-/* { dg-require-effective-target alloca } */
#include <string.h>
#include <stdlib.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/out-of-bounds-diagram-11.c b/gcc/testsuite/c-c++-common/analyzer/out-of-bounds-diagram-11.c
index 048a1b9..89d1566 100644
--- a/gcc/testsuite/c-c++-common/analyzer/out-of-bounds-diagram-11.c
+++ b/gcc/testsuite/c-c++-common/analyzer/out-of-bounds-diagram-11.c
@@ -1,5 +1,4 @@
/* { dg-additional-options "-fdiagnostics-text-art-charset=unicode" } */
-/* { dg-require-effective-target alloca } */
#include <stdlib.h>
#include <stdint.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/uninit-alloca.c b/gcc/testsuite/c-c++-common/analyzer/uninit-alloca.c
index d8c8421..82ed599 100644
--- a/gcc/testsuite/c-c++-common/analyzer/uninit-alloca.c
+++ b/gcc/testsuite/c-c++-common/analyzer/uninit-alloca.c
@@ -1,5 +1,3 @@
-/* { dg-require-effective-target alloca } */
-
int test_1 (void)
{
int *p = (int *) __builtin_alloca (sizeof (int)); /* { dg-message "region created on stack here" } */
diff --git a/gcc/testsuite/c-c++-common/analyzer/write-to-string-literal-5.c b/gcc/testsuite/c-c++-common/analyzer/write-to-string-literal-5.c
index a949f15..2ecad8c 100644
--- a/gcc/testsuite/c-c++-common/analyzer/write-to-string-literal-5.c
+++ b/gcc/testsuite/c-c++-common/analyzer/write-to-string-literal-5.c
@@ -2,7 +2,6 @@
notes) works. */
/* { dg-additional-options "-fanalyzer-show-duplicate-count" } */
-/* { dg-require-effective-target alloca } */
#include "../../gcc.dg/analyzer/analyzer-decls.h"
diff --git a/gcc/testsuite/c-c++-common/asan/alloca_loop_unpoisoning.c b/gcc/testsuite/c-c++-common/asan/alloca_loop_unpoisoning.c
index 86f0ce6..d52ca78 100644
--- a/gcc/testsuite/c-c++-common/asan/alloca_loop_unpoisoning.c
+++ b/gcc/testsuite/c-c++-common/asan/alloca_loop_unpoisoning.c
@@ -1,5 +1,4 @@
/* { dg-do run } */
-/* { dg-require-effective-target alloca } */
/* { dg-options "--param=asan-use-after-return=0" } */
/* This testcase checks that allocas and VLAs inside loop are correctly unpoisoned. */
diff --git a/gcc/testsuite/c-c++-common/auto-init-11.c b/gcc/testsuite/c-c++-common/auto-init-11.c
index aafa215..6eb4687 100644
--- a/gcc/testsuite/c-c++-common/auto-init-11.c
+++ b/gcc/testsuite/c-c++-common/auto-init-11.c
@@ -1,7 +1,6 @@
/* Verify zero initialization for VLA automatic variables. */
/* { dg-do compile } */
/* { dg-options "-ftrivial-auto-var-init=zero -fdump-tree-gimple" } */
-/* { dg-require-effective-target alloca } */
extern void bar (int);
diff --git a/gcc/testsuite/c-c++-common/auto-init-12.c b/gcc/testsuite/c-c++-common/auto-init-12.c
index c073bc9..964291c 100644
--- a/gcc/testsuite/c-c++-common/auto-init-12.c
+++ b/gcc/testsuite/c-c++-common/auto-init-12.c
@@ -1,7 +1,6 @@
/* Verify zero initialization for VLA automatic variables. */
/* { dg-do compile } */
/* { dg-options "-ftrivial-auto-var-init=pattern -fdump-tree-gimple" } */
-/* { dg-require-effective-target alloca } */
extern void bar (int);
diff --git a/gcc/testsuite/c-c++-common/auto-init-15.c b/gcc/testsuite/c-c++-common/auto-init-15.c
index 77710a9..5857287 100644
--- a/gcc/testsuite/c-c++-common/auto-init-15.c
+++ b/gcc/testsuite/c-c++-common/auto-init-15.c
@@ -1,7 +1,6 @@
/* Verify the auto initialization of nested VLA. */
/* { dg-do compile } */
/* { dg-options "-ftrivial-auto-var-init=zero -fdump-tree-gimple" } */
-/* { dg-require-effective-target alloca } */
void g(void *);
diff --git a/gcc/testsuite/c-c++-common/auto-init-16.c b/gcc/testsuite/c-c++-common/auto-init-16.c
index 3714bc3..1e30995 100644
--- a/gcc/testsuite/c-c++-common/auto-init-16.c
+++ b/gcc/testsuite/c-c++-common/auto-init-16.c
@@ -1,7 +1,6 @@
/* Verify the auto initialization of nested VLA. */
/* { dg-do compile } */
/* { dg-options "-ftrivial-auto-var-init=pattern -fdump-tree-gimple" } */
-/* { dg-require-effective-target alloca } */
void g(void *);
diff --git a/gcc/testsuite/c-c++-common/builtins.c b/gcc/testsuite/c-c++-common/builtins.c
index f44d0d3..3bc5ded 100644
--- a/gcc/testsuite/c-c++-common/builtins.c
+++ b/gcc/testsuite/c-c++-common/builtins.c
@@ -3,8 +3,7 @@
{ dg-do compile }
{ dg-options "-O2 -Wall -Wextra" }
{ dg-additional-options "-std=gnu17 -fpermissive" { target c } }
- { dg-prune-output "warning" }
- { dg-require-effective-target alloca } */
+ { dg-prune-output "warning" } */
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/c-c++-common/dwarf2/vla1.c b/gcc/testsuite/c-c++-common/dwarf2/vla1.c
index f71f8f0..e814bf5 100644
--- a/gcc/testsuite/c-c++-common/dwarf2/vla1.c
+++ b/gcc/testsuite/c-c++-common/dwarf2/vla1.c
@@ -1,7 +1,6 @@
// PR debug/42800
// { dg-options "-gdwarf-2 -dA" }
// { dg-final { scan-assembler "DW_AT_upper_bound" } }
-// { dg-require-effective-target alloca }
int
f (int i)
diff --git a/gcc/testsuite/c-c++-common/gomp/pr61486-2.c b/gcc/testsuite/c-c++-common/gomp/pr61486-2.c
index c86fd91..5e9fa47 100644
--- a/gcc/testsuite/c-c++-common/gomp/pr61486-2.c
+++ b/gcc/testsuite/c-c++-common/gomp/pr61486-2.c
@@ -1,6 +1,5 @@
/* PR middle-end/61486 */
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
#pragma omp declare target
void dosomething (int *a, int n, int m);
diff --git a/gcc/testsuite/c-c++-common/torture/builtin-clear-padding-4.c b/gcc/testsuite/c-c++-common/torture/builtin-clear-padding-4.c
index ebc5893..b98e96d 100644
--- a/gcc/testsuite/c-c++-common/torture/builtin-clear-padding-4.c
+++ b/gcc/testsuite/c-c++-common/torture/builtin-clear-padding-4.c
@@ -1,6 +1,5 @@
/* PR libstdc++/88101 */
/* { dg-do run } */
-/* { dg-require-effective-target alloca } */
struct S { char a; short b; char c; };
diff --git a/gcc/testsuite/c-c++-common/torture/strub-run3.c b/gcc/testsuite/c-c++-common/torture/strub-run3.c
index e5047a9..e29055d 100644
--- a/gcc/testsuite/c-c++-common/torture/strub-run3.c
+++ b/gcc/testsuite/c-c++-common/torture/strub-run3.c
@@ -1,6 +1,5 @@
/* { dg-do run } */
/* { dg-options "-fstrub=strict" } */
-/* { dg-require-effective-target alloca } */
/* { dg-require-effective-target strub } */
/* Check that a non-strub function leaves a string behind in the stack, and that
diff --git a/gcc/testsuite/c-c++-common/torture/strub-run4.c b/gcc/testsuite/c-c++-common/torture/strub-run4.c
index 0e84a4b..469405d 100644
--- a/gcc/testsuite/c-c++-common/torture/strub-run4.c
+++ b/gcc/testsuite/c-c++-common/torture/strub-run4.c
@@ -1,6 +1,5 @@
/* { dg-do run } */
/* { dg-options "-fstrub=all" } */
-/* { dg-require-effective-target alloca } */
/* { dg-require-effective-target strub } */
/* Check that multi-level, multi-inlined functions still get cleaned up as
diff --git a/gcc/testsuite/c-c++-common/torture/strub-run4c.c b/gcc/testsuite/c-c++-common/torture/strub-run4c.c
index edc9848..8da6cac 100644
--- a/gcc/testsuite/c-c++-common/torture/strub-run4c.c
+++ b/gcc/testsuite/c-c++-common/torture/strub-run4c.c
@@ -1,6 +1,5 @@
/* { dg-do run } */
/* { dg-options "-fstrub=at-calls" } */
-/* { dg-require-effective-target alloca } */
/* { dg-require-effective-target strub } */
#include "strub-run4.c"
diff --git a/gcc/testsuite/c-c++-common/torture/strub-run4d.c b/gcc/testsuite/c-c++-common/torture/strub-run4d.c
index 487ed08..753f5fc 100644
--- a/gcc/testsuite/c-c++-common/torture/strub-run4d.c
+++ b/gcc/testsuite/c-c++-common/torture/strub-run4d.c
@@ -1,6 +1,5 @@
/* { dg-do run } */
/* { dg-options "-fstrub=strict" } */
-/* { dg-require-effective-target alloca } */
/* { dg-require-effective-target strub } */
#define ATTR_STRUB_AT_CALLS __attribute__ ((__strub__ ("at-calls")))
diff --git a/gcc/testsuite/c-c++-common/torture/strub-run4i.c b/gcc/testsuite/c-c++-common/torture/strub-run4i.c
index a85447f..6f7bdd2 100644
--- a/gcc/testsuite/c-c++-common/torture/strub-run4i.c
+++ b/gcc/testsuite/c-c++-common/torture/strub-run4i.c
@@ -1,6 +1,5 @@
/* { dg-do run } */
/* { dg-options "-fstrub=internal" } */
-/* { dg-require-effective-target alloca } */
/* { dg-require-effective-target strub } */
#include "strub-run4.c"
diff --git a/gcc/testsuite/g++.dg/Walloca1.C b/gcc/testsuite/g++.dg/Walloca1.C
index 2985ac9..5b99505 100644
--- a/gcc/testsuite/g++.dg/Walloca1.C
+++ b/gcc/testsuite/g++.dg/Walloca1.C
@@ -1,7 +1,6 @@
/* PR middle-end/79809 - ICE in alloca_call_type, at gimple-ssa-warn-alloca.c */
/* { dg-do compile } */
/* { dg-options "-Walloca-larger-than=4207115063 -Wvla-larger-than=1233877270 -O2" } */
-/* { dg-require-effective-target alloca } */
int a;
char *b = static_cast<char *>(__builtin_alloca (a));
diff --git a/gcc/testsuite/g++.dg/Walloca2.C b/gcc/testsuite/g++.dg/Walloca2.C
index b6992d0..87099ee 100644
--- a/gcc/testsuite/g++.dg/Walloca2.C
+++ b/gcc/testsuite/g++.dg/Walloca2.C
@@ -1,6 +1,5 @@
// { dg-do compile }
// { dg-options "-Walloca-larger-than=4207115063 -Wvla-larger-than=1233877270 -O2 --param ggc-min-heapsize=0 --param ggc-min-expand=0 -w" }
-// { dg-require-effective-target alloca }
int a;
char *b = static_cast<char *>(__builtin_alloca (a));
diff --git a/gcc/testsuite/g++.dg/cpp0x/pr70338.C b/gcc/testsuite/g++.dg/cpp0x/pr70338.C
index 0c5d50b..156cb91 100644
--- a/gcc/testsuite/g++.dg/cpp0x/pr70338.C
+++ b/gcc/testsuite/g++.dg/cpp0x/pr70338.C
@@ -1,7 +1,6 @@
// PR c++/70338
// { dg-do compile { target c++11 } }
// { dg-options "-g" }
-// { dg-require-effective-target alloca }
template<typename T>
void
diff --git a/gcc/testsuite/g++.dg/cpp1y/lambda-generic-vla1.C b/gcc/testsuite/g++.dg/cpp1y/lambda-generic-vla1.C
index 94d1860..4cabccb 100644
--- a/gcc/testsuite/g++.dg/cpp1y/lambda-generic-vla1.C
+++ b/gcc/testsuite/g++.dg/cpp1y/lambda-generic-vla1.C
@@ -1,7 +1,6 @@
// PR c++/59271
// { dg-do compile { target c++14 } }
// { dg-options "-Wno-vla" }
-// { dg-require-effective-target alloca }
extern "C" int printf (const char *, ...);
diff --git a/gcc/testsuite/g++.dg/cpp1y/vla10.C b/gcc/testsuite/g++.dg/cpp1y/vla10.C
index f4de532..f81ab9b 100644
--- a/gcc/testsuite/g++.dg/cpp1y/vla10.C
+++ b/gcc/testsuite/g++.dg/cpp1y/vla10.C
@@ -1,7 +1,6 @@
// PR c++/57402
// { dg-do run }
// { dg-options "" }
-// { dg-require-effective-target alloca }
int i = 2;
diff --git a/gcc/testsuite/g++.dg/cpp1y/vla2.C b/gcc/testsuite/g++.dg/cpp1y/vla2.C
index 010b54c..07c3008 100644
--- a/gcc/testsuite/g++.dg/cpp1y/vla2.C
+++ b/gcc/testsuite/g++.dg/cpp1y/vla2.C
@@ -1,7 +1,6 @@
// N3639 allows initialization and capture of VLAs
// { dg-do run { target c++11 } }
// { dg-options "-Wno-vla" }
-// { dg-require-effective-target alloca }
void f(int n)
{
diff --git a/gcc/testsuite/g++.dg/cpp1y/vla6.C b/gcc/testsuite/g++.dg/cpp1y/vla6.C
index fc009cb..ca527a8 100644
--- a/gcc/testsuite/g++.dg/cpp1y/vla6.C
+++ b/gcc/testsuite/g++.dg/cpp1y/vla6.C
@@ -1,7 +1,6 @@
// PR c++/57404
// { dg-do compile { target c++11 } }
// { dg-options "-g" }
-// { dg-require-effective-target alloca }
void f (int i)
{
diff --git a/gcc/testsuite/g++.dg/cpp1y/vla8.C b/gcc/testsuite/g++.dg/cpp1y/vla8.C
index 43a7416..68cafe5 100644
--- a/gcc/testsuite/g++.dg/cpp1y/vla8.C
+++ b/gcc/testsuite/g++.dg/cpp1y/vla8.C
@@ -1,7 +1,6 @@
// PR c++/55149
// { dg-do compile { target c++11 } }
// { dg-options "-Wno-vla" }
-// { dg-require-effective-target alloca }
template<unsigned int TA>
struct SA
diff --git a/gcc/testsuite/g++.dg/debug/debug5.C b/gcc/testsuite/g++.dg/debug/debug5.C
index efed28c..8dffa94 100644
--- a/gcc/testsuite/g++.dg/debug/debug5.C
+++ b/gcc/testsuite/g++.dg/debug/debug5.C
@@ -1,5 +1,4 @@
// { dg-do compile }
-// { dg-require-effective-target alloca }
int foo()
{
diff --git a/gcc/testsuite/g++.dg/debug/debug6.C b/gcc/testsuite/g++.dg/debug/debug6.C
index 3622d01..64f121b 100644
--- a/gcc/testsuite/g++.dg/debug/debug6.C
+++ b/gcc/testsuite/g++.dg/debug/debug6.C
@@ -1,5 +1,4 @@
// { dg-do compile }
-// { dg-require-effective-target alloca }
void foo()
{
diff --git a/gcc/testsuite/g++.dg/debug/pr54828.C b/gcc/testsuite/g++.dg/debug/pr54828.C
index 81c44de..80b9a3c 100644
--- a/gcc/testsuite/g++.dg/debug/pr54828.C
+++ b/gcc/testsuite/g++.dg/debug/pr54828.C
@@ -1,7 +1,6 @@
// PR debug/54828
// { dg-do compile }
// { dg-options "-g" }
-// { dg-require-effective-target alloca }
struct T { T (); virtual ~T (); };
struct S : public virtual T { S (); virtual ~S (); };
diff --git a/gcc/testsuite/g++.dg/diagnostic/pr70105.C b/gcc/testsuite/g++.dg/diagnostic/pr70105.C
index 55d5597..9c9b02c 100644
--- a/gcc/testsuite/g++.dg/diagnostic/pr70105.C
+++ b/gcc/testsuite/g++.dg/diagnostic/pr70105.C
@@ -1,5 +1,4 @@
// { dg-options "-Wsequence-point -fdiagnostics-show-caret" }
-// { dg-require-effective-target alloca }
void *libiberty_concat_ptr;
extern unsigned long concat_length (const char *, ...);
diff --git a/gcc/testsuite/g++.dg/eh/cleanup5.C b/gcc/testsuite/g++.dg/eh/cleanup5.C
index 79aa321..e74d067 100644
--- a/gcc/testsuite/g++.dg/eh/cleanup5.C
+++ b/gcc/testsuite/g++.dg/eh/cleanup5.C
@@ -1,7 +1,6 @@
// PR 17907
// { dg-do compile }
// { dg-options "" }
-// { dg-require-effective-target alloca }
// We lost a CLEANUP_POINT_EXPR, leading to a crash destroying temp of A.
diff --git a/gcc/testsuite/g++.dg/eh/spbp.C b/gcc/testsuite/g++.dg/eh/spbp.C
index 6afd539..ff1938e 100644
--- a/gcc/testsuite/g++.dg/eh/spbp.C
+++ b/gcc/testsuite/g++.dg/eh/spbp.C
@@ -1,7 +1,6 @@
/* { dg-do run } */
/* { dg-options "-gdwarf-2" } */
/* { dg-skip-if "No Dwarf" { { hppa*-*-hpux* } && { ! hppa*64*-*-* } } } */
-/* { dg-require-effective-target alloca } */
/* This was a bug on x86-darwin, where the register numbering for SP
and BP was swapped (it's easy to do because on that port it's
diff --git a/gcc/testsuite/g++.dg/ext/builtin_alloca.C b/gcc/testsuite/g++.dg/ext/builtin_alloca.C
index e857502..61714b4 100644
--- a/gcc/testsuite/g++.dg/ext/builtin_alloca.C
+++ b/gcc/testsuite/g++.dg/ext/builtin_alloca.C
@@ -1,7 +1,6 @@
// PR middle-end/69780 - [4.9/5/6 Regression] ICE on
// __builtin_alloca_with_align with small alignment
// { dg-do compile }
-// { dg-require-effective-target alloca }
#define CHAR_BIT __CHAR_BIT__
#define SIZE_MAX __SIZE_MAX__
diff --git a/gcc/testsuite/g++.dg/ext/tmplattr9.C b/gcc/testsuite/g++.dg/ext/tmplattr9.C
index c72e98e..090257a 100644
--- a/gcc/testsuite/g++.dg/ext/tmplattr9.C
+++ b/gcc/testsuite/g++.dg/ext/tmplattr9.C
@@ -1,7 +1,6 @@
// PR c++/34937, 34962
// { dg-require-weak "" }
// { dg-options "" }
-// { dg-require-effective-target alloca }
struct A
{
diff --git a/gcc/testsuite/g++.dg/ext/vla10.C b/gcc/testsuite/g++.dg/ext/vla10.C
index b48b173..17cdb2f 100644
--- a/gcc/testsuite/g++.dg/ext/vla10.C
+++ b/gcc/testsuite/g++.dg/ext/vla10.C
@@ -1,6 +1,5 @@
// PR c++/48446
// { dg-options "" }
-// { dg-require-effective-target alloca }
template<typename T>
struct A
diff --git a/gcc/testsuite/g++.dg/ext/vla11.C b/gcc/testsuite/g++.dg/ext/vla11.C
index 9e0f203..e733f48 100644
--- a/gcc/testsuite/g++.dg/ext/vla11.C
+++ b/gcc/testsuite/g++.dg/ext/vla11.C
@@ -1,7 +1,6 @@
// Test that auto works with VLAs.
// { dg-do compile { target c++11 } }
// { dg-options "-Wno-vla" }
-// { dg-require-effective-target alloca }
void bar(int n)
{
diff --git a/gcc/testsuite/g++.dg/ext/vla12.C b/gcc/testsuite/g++.dg/ext/vla12.C
index ad52daf..bca8365 100644
--- a/gcc/testsuite/g++.dg/ext/vla12.C
+++ b/gcc/testsuite/g++.dg/ext/vla12.C
@@ -1,7 +1,6 @@
// VLA sizeof test
// { dg-do compile }
// { dg-options "" }
-// { dg-require-effective-target alloca }
int
f1 (int i)
diff --git a/gcc/testsuite/g++.dg/ext/vla15.C b/gcc/testsuite/g++.dg/ext/vla15.C
index bce4d7b..6583f24 100644
--- a/gcc/testsuite/g++.dg/ext/vla15.C
+++ b/gcc/testsuite/g++.dg/ext/vla15.C
@@ -1,7 +1,6 @@
// PR c++/44613
// { dg-do run }
// { dg-options "" }
-// { dg-require-effective-target alloca }
typedef int int32_t __attribute__((mode (__SI__)));
diff --git a/gcc/testsuite/g++.dg/ext/vla16.C b/gcc/testsuite/g++.dg/ext/vla16.C
index 4caa33c..fa51feed 100644
--- a/gcc/testsuite/g++.dg/ext/vla16.C
+++ b/gcc/testsuite/g++.dg/ext/vla16.C
@@ -1,6 +1,5 @@
// PR c++/72766
// { dg-options "-Wno-vla" }
-// { dg-require-effective-target alloca }
long fn1() {
const int a = fn1();
diff --git a/gcc/testsuite/g++.dg/ext/vla17.C b/gcc/testsuite/g++.dg/ext/vla17.C
index 3c2dbff..431167c 100644
--- a/gcc/testsuite/g++.dg/ext/vla17.C
+++ b/gcc/testsuite/g++.dg/ext/vla17.C
@@ -1,7 +1,6 @@
// PR c++/69487
// { dg-do run }
// { dg-options -Wno-vla }
-// { dg-require-effective-target alloca }
int size = 6;
diff --git a/gcc/testsuite/g++.dg/ext/vla23.C b/gcc/testsuite/g++.dg/ext/vla23.C
index 317a824..6f48b38 100644
--- a/gcc/testsuite/g++.dg/ext/vla23.C
+++ b/gcc/testsuite/g++.dg/ext/vla23.C
@@ -1,7 +1,6 @@
// PR c++/95552
// Test for VLA and cloned constructor.
// { dg-additional-options -Wno-vla }
-// { dg-require-effective-target alloca }
struct VB { };
struct ViewDom: virtual VB
diff --git a/gcc/testsuite/g++.dg/ext/vla3.C b/gcc/testsuite/g++.dg/ext/vla3.C
index 5452280..329cc7d 100644
--- a/gcc/testsuite/g++.dg/ext/vla3.C
+++ b/gcc/testsuite/g++.dg/ext/vla3.C
@@ -1,6 +1,5 @@
// PR c++/28903
// { dg-options "" }
-// { dg-require-effective-target alloca }
template <class>
struct View
diff --git a/gcc/testsuite/g++.dg/ext/vla6.C b/gcc/testsuite/g++.dg/ext/vla6.C
index 687e0bc..83011f2 100644
--- a/gcc/testsuite/g++.dg/ext/vla6.C
+++ b/gcc/testsuite/g++.dg/ext/vla6.C
@@ -1,6 +1,5 @@
// PR c++/28879
// { dg-options "" }
-// { dg-require-effective-target alloca }
struct A
{
diff --git a/gcc/testsuite/g++.dg/ext/vla7.C b/gcc/testsuite/g++.dg/ext/vla7.C
index 1a97ac0..5246f9c 100644
--- a/gcc/testsuite/g++.dg/ext/vla7.C
+++ b/gcc/testsuite/g++.dg/ext/vla7.C
@@ -1,6 +1,5 @@
// PR c++/40013
// { dg-options "" }
-// { dg-require-effective-target alloca }
template <class T>
struct A
diff --git a/gcc/testsuite/g++.dg/init/array24.C b/gcc/testsuite/g++.dg/init/array24.C
index b38033f..2d72df4 100644
--- a/gcc/testsuite/g++.dg/init/array24.C
+++ b/gcc/testsuite/g++.dg/init/array24.C
@@ -1,6 +1,5 @@
// PR c++/29175
// { dg-options "-Wno-vla" }
-// { dg-require-effective-target alloca }
void foo(int i)
{
diff --git a/gcc/testsuite/g++.dg/init/new47.C b/gcc/testsuite/g++.dg/init/new47.C
index fadc4d9..acd52d7 100644
--- a/gcc/testsuite/g++.dg/init/new47.C
+++ b/gcc/testsuite/g++.dg/init/new47.C
@@ -1,7 +1,6 @@
// PR c++/70448
// { dg-do compile }
// { dg-options "-Wall" }
-// { dg-require-effective-target alloca }
typedef __typeof__ (sizeof 0) size_t;
void *operator new (size_t, void *p) { return p; }
diff --git a/gcc/testsuite/g++.dg/init/pr55497.C b/gcc/testsuite/g++.dg/init/pr55497.C
index 4d1eb74..b50f3fb 100644
--- a/gcc/testsuite/g++.dg/init/pr55497.C
+++ b/gcc/testsuite/g++.dg/init/pr55497.C
@@ -1,6 +1,5 @@
// PR c++/55497
// { dg-options "-g" }
-// { dg-require-effective-target alloca }
int get();
diff --git a/gcc/testsuite/g++.dg/opt/pr78201.C b/gcc/testsuite/g++.dg/opt/pr78201.C
index e2f2c14..82567bc 100644
--- a/gcc/testsuite/g++.dg/opt/pr78201.C
+++ b/gcc/testsuite/g++.dg/opt/pr78201.C
@@ -1,7 +1,6 @@
// PR middle-end/78201
// { dg-do compile }
// { dg-options "-O2" }
-// { dg-require-effective-target alloca }
struct B { long d (); } *c;
long e;
diff --git a/gcc/testsuite/g++.dg/template/vla2.C b/gcc/testsuite/g++.dg/template/vla2.C
index dcd384b..183f8fa 100644
--- a/gcc/testsuite/g++.dg/template/vla2.C
+++ b/gcc/testsuite/g++.dg/template/vla2.C
@@ -1,7 +1,6 @@
// PR c++/28879
// { dg-do compile }
// { dg-options "" }
-// { dg-require-effective-target alloca }
struct A
{
diff --git a/gcc/testsuite/g++.dg/torture/Wsizeof-pointer-memaccess1.C b/gcc/testsuite/g++.dg/torture/Wsizeof-pointer-memaccess1.C
index d283cbf..cac05b9 100644
--- a/gcc/testsuite/g++.dg/torture/Wsizeof-pointer-memaccess1.C
+++ b/gcc/testsuite/g++.dg/torture/Wsizeof-pointer-memaccess1.C
@@ -4,7 +4,6 @@
// Test just twice, once with -O0 non-fortified, once with -O2 fortified.
// { dg-skip-if "" { *-*-* } { "*" } { "-O0" "-O2" } }
// { dg-skip-if "" { *-*-* } { "-flto" } { "" } }
-// { dg-require-effective-target alloca }
extern "C" {
diff --git a/gcc/testsuite/g++.dg/torture/Wsizeof-pointer-memaccess2.C b/gcc/testsuite/g++.dg/torture/Wsizeof-pointer-memaccess2.C
index fe24cdd..38773df 100644
--- a/gcc/testsuite/g++.dg/torture/Wsizeof-pointer-memaccess2.C
+++ b/gcc/testsuite/g++.dg/torture/Wsizeof-pointer-memaccess2.C
@@ -5,7 +5,6 @@
// suppressing buffer overflow warnings.
// { dg-skip-if "" { *-*-* } { "*" } { "-O0" "-O2" } }
// { dg-skip-if "" { *-*-* } { "-flto" } { "" } }
-// { dg-require-effective-target alloca }
extern "C" {
diff --git a/gcc/testsuite/g++.dg/torture/pr62127.C b/gcc/testsuite/g++.dg/torture/pr62127.C
index fe5d439..3427493 100644
--- a/gcc/testsuite/g++.dg/torture/pr62127.C
+++ b/gcc/testsuite/g++.dg/torture/pr62127.C
@@ -1,5 +1,5 @@
// { dg-do compile }
-// { dg-require-effective-target alloca }
+
struct A
{
A(int);
diff --git a/gcc/testsuite/g++.dg/torture/pr67055.C b/gcc/testsuite/g++.dg/torture/pr67055.C
index 5089f09..6621e58 100644
--- a/gcc/testsuite/g++.dg/torture/pr67055.C
+++ b/gcc/testsuite/g++.dg/torture/pr67055.C
@@ -1,6 +1,5 @@
// { dg-do compile }
// { dg-additional-options "-std=c++14" }
-// { dg-require-effective-target alloca }
namespace std {
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/g++.dg/torture/stackalign/eh-alloca-1.C b/gcc/testsuite/g++.dg/torture/stackalign/eh-alloca-1.C
index dd8c365..02693c0 100644
--- a/gcc/testsuite/g++.dg/torture/stackalign/eh-alloca-1.C
+++ b/gcc/testsuite/g++.dg/torture/stackalign/eh-alloca-1.C
@@ -1,6 +1,5 @@
/* { dg-do run } */
/* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } } */
-/* { dg-require-effective-target alloca } */
#include "check.h"
diff --git a/gcc/testsuite/g++.dg/torture/stackalign/eh-inline-2.C b/gcc/testsuite/g++.dg/torture/stackalign/eh-inline-2.C
index 1bf52d3..e630f33 100644
--- a/gcc/testsuite/g++.dg/torture/stackalign/eh-inline-2.C
+++ b/gcc/testsuite/g++.dg/torture/stackalign/eh-inline-2.C
@@ -1,6 +1,5 @@
/* { dg-do run } */
/* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } } */
-/* { dg-require-effective-target alloca } */
#include "check.h"
diff --git a/gcc/testsuite/g++.dg/torture/stackalign/eh-vararg-1.C b/gcc/testsuite/g++.dg/torture/stackalign/eh-vararg-1.C
index d0611dc..efee8bb 100644
--- a/gcc/testsuite/g++.dg/torture/stackalign/eh-vararg-1.C
+++ b/gcc/testsuite/g++.dg/torture/stackalign/eh-vararg-1.C
@@ -1,6 +1,5 @@
/* { dg-do run } */
/* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } } */
-/* { dg-require-effective-target alloca } */
#include <stdarg.h>
#include "check.h"
diff --git a/gcc/testsuite/g++.dg/torture/stackalign/eh-vararg-2.C b/gcc/testsuite/g++.dg/torture/stackalign/eh-vararg-2.C
index 684fadb..d324383 100644
--- a/gcc/testsuite/g++.dg/torture/stackalign/eh-vararg-2.C
+++ b/gcc/testsuite/g++.dg/torture/stackalign/eh-vararg-2.C
@@ -1,7 +1,6 @@
/* { dg-options "-Wno-abi" {target arm_eabi} } */
/* { dg-do run } */
/* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } } */
-/* { dg-require-effective-target alloca } */
#include <stdarg.h>
#include "check.h"
diff --git a/gcc/testsuite/g++.dg/warn/Wplacement-new-size-5.C b/gcc/testsuite/g++.dg/warn/Wplacement-new-size-5.C
index 4afc7e5..38d851e 100644
--- a/gcc/testsuite/g++.dg/warn/Wplacement-new-size-5.C
+++ b/gcc/testsuite/g++.dg/warn/Wplacement-new-size-5.C
@@ -2,7 +2,6 @@
// warn_placement_new_too_small
// { dg-do compile }
// { dg-additional-options "-Wplacement-new -Wno-pedantic" }
-// { dg-require-effective-target alloca }
#define SIZE_MAX __SIZE_MAX__
#define DIFF_MAX __PTRDIFF_MAX__
diff --git a/gcc/testsuite/g++.dg/warn/Wsizeof-pointer-memaccess-1.C b/gcc/testsuite/g++.dg/warn/Wsizeof-pointer-memaccess-1.C
index 18aa90b..798cb6d 100644
--- a/gcc/testsuite/g++.dg/warn/Wsizeof-pointer-memaccess-1.C
+++ b/gcc/testsuite/g++.dg/warn/Wsizeof-pointer-memaccess-1.C
@@ -1,7 +1,6 @@
// Test -Wsizeof-pointer-memaccess warnings.
// { dg-do compile }
// { dg-options "-Wall -Wno-sizeof-array-argument" }
-// { dg-require-effective-target alloca }
typedef __SIZE_TYPE__ size_t;
extern "C" void *memset (void *, int, size_t);
diff --git a/gcc/testsuite/g++.dg/warn/Wvla-1.C b/gcc/testsuite/g++.dg/warn/Wvla-1.C
index 95e452d..bea2729 100644
--- a/gcc/testsuite/g++.dg/warn/Wvla-1.C
+++ b/gcc/testsuite/g++.dg/warn/Wvla-1.C
@@ -1,6 +1,5 @@
/* { dg-do compile } */
/* { dg-options "-Wvla" } */
-/* { dg-require-effective-target alloca } */
void func (int i)
{
diff --git a/gcc/testsuite/g++.dg/warn/Wvla-3.C b/gcc/testsuite/g++.dg/warn/Wvla-3.C
index fcfb0da..259c576 100644
--- a/gcc/testsuite/g++.dg/warn/Wvla-3.C
+++ b/gcc/testsuite/g++.dg/warn/Wvla-3.C
@@ -1,7 +1,5 @@
/* { dg-do compile } */
/* { dg-options "-pedantic-errors -Wno-vla" } */
-/* { dg-require-effective-target alloca } */
-/* { dg-require-effective-target alloca } */
void func (int i)
{
diff --git a/gcc/testsuite/g++.old-deja/g++.ext/array2.C b/gcc/testsuite/g++.old-deja/g++.ext/array2.C
index 527239f..88482fe 100644
--- a/gcc/testsuite/g++.old-deja/g++.ext/array2.C
+++ b/gcc/testsuite/g++.old-deja/g++.ext/array2.C
@@ -1,6 +1,5 @@
// { dg-do assemble }
// { dg-options "-w" }
-// { dg-require-effective-target alloca }
// This testcase used to cause a crash on the Alpha.
struct A {
diff --git a/gcc/testsuite/g++.old-deja/g++.ext/constructor.C b/gcc/testsuite/g++.old-deja/g++.ext/constructor.C
index 2ee6b34..3dc15c5 100644
--- a/gcc/testsuite/g++.old-deja/g++.ext/constructor.C
+++ b/gcc/testsuite/g++.old-deja/g++.ext/constructor.C
@@ -1,6 +1,5 @@
// { dg-do run }
// { dg-options "" }
-// { dg-require-effective-target alloca }
// Testcase for constructor expressions (GNU extension)
struct Any {
diff --git a/gcc/testsuite/g++.old-deja/g++.law/builtin1.C b/gcc/testsuite/g++.old-deja/g++.law/builtin1.C
index cc4cc87..de22864 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/builtin1.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/builtin1.C
@@ -1,6 +1,5 @@
// { dg-do run }
// { dg-options "" }
-// { dg-require-effective-target alloca }
// GROUPS passed builtins
// Apparently not in g++ bug snapshot (was originally sent to bug-gcc)
// Message-Id: <m0p74Fh-0002fCC@neal.ctd.comsat.com>
diff --git a/gcc/testsuite/g++.old-deja/g++.other/crash12.C b/gcc/testsuite/g++.old-deja/g++.other/crash12.C
index 4639e76..73bbb8b 100644
--- a/gcc/testsuite/g++.old-deja/g++.other/crash12.C
+++ b/gcc/testsuite/g++.old-deja/g++.other/crash12.C
@@ -1,6 +1,5 @@
// { dg-do assemble }
// { dg-options "" }
-// { dg-require-effective-target alloca }
// Origin: Alfred Minarik <a8601248@unet.univie.ac.at>
template<typename T>
diff --git a/gcc/testsuite/g++.old-deja/g++.other/eh3.C b/gcc/testsuite/g++.old-deja/g++.other/eh3.C
index 497cfde..ac47ac6 100644
--- a/gcc/testsuite/g++.old-deja/g++.other/eh3.C
+++ b/gcc/testsuite/g++.old-deja/g++.other/eh3.C
@@ -1,6 +1,6 @@
// { dg-do run }
// { dg-options "-O" }
-// { dg-require-effective-target alloca }
+
typedef struct { } e;
char *p;
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/array6.C b/gcc/testsuite/g++.old-deja/g++.pt/array6.C
index 4d00d04..b48cabd 100644
--- a/gcc/testsuite/g++.old-deja/g++.pt/array6.C
+++ b/gcc/testsuite/g++.old-deja/g++.pt/array6.C
@@ -1,6 +1,5 @@
// { dg-do assemble }
// { dg-options "" }
-// { dg-require-effective-target alloca }
// Origin: Alfred Minarik <a8601248@unet.univie.ac.at>
template<typename _CharT>
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/dynarray.C b/gcc/testsuite/g++.old-deja/g++.pt/dynarray.C
index 7817a73..7376f91 100644
--- a/gcc/testsuite/g++.old-deja/g++.pt/dynarray.C
+++ b/gcc/testsuite/g++.old-deja/g++.pt/dynarray.C
@@ -1,6 +1,5 @@
// { dg-do assemble }
// { dg-options "" }
-// { dg-require-effective-target alloca }
// Origin: Theo Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
inline const unsigned& f(unsigned const& a) {
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000923-1.c b/gcc/testsuite/gcc.c-torture/compile/20000923-1.c
index 3244dc7..9ed9886 100644
--- a/gcc/testsuite/gcc.c-torture/compile/20000923-1.c
+++ b/gcc/testsuite/gcc.c-torture/compile/20000923-1.c
@@ -1,4 +1,3 @@
-/* { dg-require-effective-target alloca } */
const int a = 3;
const int b = 50;
diff --git a/gcc/testsuite/gcc.c-torture/compile/20001221-1.c b/gcc/testsuite/gcc.c-torture/compile/20001221-1.c
index 1adb0f8..66ae714 100644
--- a/gcc/testsuite/gcc.c-torture/compile/20001221-1.c
+++ b/gcc/testsuite/gcc.c-torture/compile/20001221-1.c
@@ -1,4 +1,3 @@
-/* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */
static void
foo ()
{
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020807-1.c b/gcc/testsuite/gcc.c-torture/compile/20020807-1.c
index 605986a..c1cc815 100644
--- a/gcc/testsuite/gcc.c-torture/compile/20020807-1.c
+++ b/gcc/testsuite/gcc.c-torture/compile/20020807-1.c
@@ -1,4 +1,3 @@
-/* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */
int x;
static int
diff --git a/gcc/testsuite/gcc.c-torture/compile/20030224-1.c b/gcc/testsuite/gcc.c-torture/compile/20030224-1.c
index 10c4619..63d9120 100644
--- a/gcc/testsuite/gcc.c-torture/compile/20030224-1.c
+++ b/gcc/testsuite/gcc.c-torture/compile/20030224-1.c
@@ -1,4 +1,3 @@
-/* { dg-require-effective-target alloca } */
/* { dg-additional-options "-std=gnu89" } */
void zzz (char *s1, char *s2, int len, int *q)
diff --git a/gcc/testsuite/gcc.c-torture/compile/20050801-2.c b/gcc/testsuite/gcc.c-torture/compile/20050801-2.c
index ba8daba..45bd2a0 100644
--- a/gcc/testsuite/gcc.c-torture/compile/20050801-2.c
+++ b/gcc/testsuite/gcc.c-torture/compile/20050801-2.c
@@ -1,4 +1,3 @@
-/* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */
__inline int f(int i)
{
struct {
diff --git a/gcc/testsuite/gcc.c-torture/compile/20071108-1.c b/gcc/testsuite/gcc.c-torture/compile/20071108-1.c
index 25e71bf..b9a36ef 100644
--- a/gcc/testsuite/gcc.c-torture/compile/20071108-1.c
+++ b/gcc/testsuite/gcc.c-torture/compile/20071108-1.c
@@ -1,5 +1,4 @@
/* PR tree-optimization/33680 */
-/* { dg-require-effective-target alloca } */
int
f (int dim, int *b, int *c)
diff --git a/gcc/testsuite/gcc.c-torture/compile/20071117-1.c b/gcc/testsuite/gcc.c-torture/compile/20071117-1.c
index 43bc098..efcd512 100644
--- a/gcc/testsuite/gcc.c-torture/compile/20071117-1.c
+++ b/gcc/testsuite/gcc.c-torture/compile/20071117-1.c
@@ -1,5 +1,4 @@
/* PR middle-end/34134 */
-/* { dg-require-effective-target alloca } */
extern void bar (void *, int);
diff --git a/gcc/testsuite/gcc.c-torture/compile/900313-1.c b/gcc/testsuite/gcc.c-torture/compile/900313-1.c
index 82552dc..abe65f4 100644
--- a/gcc/testsuite/gcc.c-torture/compile/900313-1.c
+++ b/gcc/testsuite/gcc.c-torture/compile/900313-1.c
@@ -1,4 +1,3 @@
-/* { dg-require-effective-target alloca } */
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */
/* { dg-additional-options "-std=gnu89" } */
diff --git a/gcc/testsuite/gcc.c-torture/compile/920428-4.c b/gcc/testsuite/gcc.c-torture/compile/920428-4.c
index e53a8da..c1f741f 100644
--- a/gcc/testsuite/gcc.c-torture/compile/920428-4.c
+++ b/gcc/testsuite/gcc.c-torture/compile/920428-4.c
@@ -1,2 +1 @@
-/* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */
void x(int a){struct{int p[a],i;}l;l.i;}
diff --git a/gcc/testsuite/gcc.c-torture/compile/debugvlafunction-1.c b/gcc/testsuite/gcc.c-torture/compile/debugvlafunction-1.c
index 14bf579..3911f87 100644
--- a/gcc/testsuite/gcc.c-torture/compile/debugvlafunction-1.c
+++ b/gcc/testsuite/gcc.c-torture/compile/debugvlafunction-1.c
@@ -1,4 +1,3 @@
-/* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */
extern void dynreplace_trampoline(void);
extern void dynreplace_trampoline_endlabel(void);
int dynreplace_add_trampoline(void)
diff --git a/gcc/testsuite/gcc.c-torture/compile/parms.c b/gcc/testsuite/gcc.c-torture/compile/parms.c
index d95d52c..66baf44 100644
--- a/gcc/testsuite/gcc.c-torture/compile/parms.c
+++ b/gcc/testsuite/gcc.c-torture/compile/parms.c
@@ -1,4 +1,3 @@
-/* { dg-require-effective-target alloca } */
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */
/* { dg-additional-options "-std=gnu89" } */
#define alloca __builtin_alloca
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr17397.c b/gcc/testsuite/gcc.c-torture/compile/pr17397.c
index 6dde3c8..b857472 100644
--- a/gcc/testsuite/gcc.c-torture/compile/pr17397.c
+++ b/gcc/testsuite/gcc.c-torture/compile/pr17397.c
@@ -1,5 +1,4 @@
/* ICE due to invalid GIMPLE created during strlen simplification. */
-/* { dg-require-effective-target alloca } */
extern unsigned long strlen (__const char *__s);
extern void bar ();
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr35006.c b/gcc/testsuite/gcc.c-torture/compile/pr35006.c
index 02f0662..a9769f4 100644
--- a/gcc/testsuite/gcc.c-torture/compile/pr35006.c
+++ b/gcc/testsuite/gcc.c-torture/compile/pr35006.c
@@ -1,4 +1,3 @@
-/* { dg-require-effective-target alloca } */
typedef unsigned long grub_uint64_t;
typedef grub_uint64_t grub_size_t;
void grub_putchar (char);
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr41469.c b/gcc/testsuite/gcc.c-torture/compile/pr41469.c
index 923bca2..f0961d1 100644
--- a/gcc/testsuite/gcc.c-torture/compile/pr41469.c
+++ b/gcc/testsuite/gcc.c-torture/compile/pr41469.c
@@ -1,5 +1,4 @@
/* { dg-options "-fexceptions" } */
-/* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */
/* { dg-require-effective-target exceptions } */
void
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr42956.c b/gcc/testsuite/gcc.c-torture/compile/pr42956.c
index ce03a8f..f592d4b 100644
--- a/gcc/testsuite/gcc.c-torture/compile/pr42956.c
+++ b/gcc/testsuite/gcc.c-torture/compile/pr42956.c
@@ -1,4 +1,3 @@
-/* { dg-require-effective-target alloca } */
typedef const int cint;
typedef struct {
} Bounds;
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr51354.c b/gcc/testsuite/gcc.c-torture/compile/pr51354.c
index 354f40e..5b2abb0 100644
--- a/gcc/testsuite/gcc.c-torture/compile/pr51354.c
+++ b/gcc/testsuite/gcc.c-torture/compile/pr51354.c
@@ -1,5 +1,4 @@
/* PR target/51354 */
-/* { dg-require-effective-target alloca } */
extern void abort (void);
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr52714.c b/gcc/testsuite/gcc.c-torture/compile/pr52714.c
index 38a4ab5..e36b14b 100644
--- a/gcc/testsuite/gcc.c-torture/compile/pr52714.c
+++ b/gcc/testsuite/gcc.c-torture/compile/pr52714.c
@@ -1,5 +1,3 @@
-/* { dg-require-effective-target alloca } */
-
int __re_compile_fastmap(unsigned char *p)
{
unsigned char **stack;
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr55851.c b/gcc/testsuite/gcc.c-torture/compile/pr55851.c
index 8d118b8..6198a73 100644
--- a/gcc/testsuite/gcc.c-torture/compile/pr55851.c
+++ b/gcc/testsuite/gcc.c-torture/compile/pr55851.c
@@ -1,5 +1,4 @@
/* PR middle-end/55851 */
-/* { dg-require-effective-target alloca } */
enum { A = 1UL, B = -1UL } var = A;
void foo (char *);
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr77754-1.c b/gcc/testsuite/gcc.c-torture/compile/pr77754-1.c
index be7ee30..48587f7 100644
--- a/gcc/testsuite/gcc.c-torture/compile/pr77754-1.c
+++ b/gcc/testsuite/gcc.c-torture/compile/pr77754-1.c
@@ -1,4 +1,3 @@
-// { dg-require-effective-target alloca }
/* PR c/77754 */
int fn3();
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr77754-2.c b/gcc/testsuite/gcc.c-torture/compile/pr77754-2.c
index d649d71..09cb339 100644
--- a/gcc/testsuite/gcc.c-torture/compile/pr77754-2.c
+++ b/gcc/testsuite/gcc.c-torture/compile/pr77754-2.c
@@ -1,4 +1,3 @@
-// { dg-require-effective-target alloca }
// { dg-require-effective-target indirect_calls }
/* PR c/77754 */
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr77754-3.c b/gcc/testsuite/gcc.c-torture/compile/pr77754-3.c
index 51d7ca7..9fc6dc2 100644
--- a/gcc/testsuite/gcc.c-torture/compile/pr77754-3.c
+++ b/gcc/testsuite/gcc.c-torture/compile/pr77754-3.c
@@ -1,4 +1,3 @@
-// { dg-require-effective-target alloca }
// { dg-require-effective-target indirect_calls }
/* PR c/77754 */
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr77754-4.c b/gcc/testsuite/gcc.c-torture/compile/pr77754-4.c
index 53216bb..471b248 100644
--- a/gcc/testsuite/gcc.c-torture/compile/pr77754-4.c
+++ b/gcc/testsuite/gcc.c-torture/compile/pr77754-4.c
@@ -1,4 +1,3 @@
-// { dg-require-effective-target alloca }
// { dg-require-effective-target indirect_calls }
/* PR c/77754 */
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr77754-5.c b/gcc/testsuite/gcc.c-torture/compile/pr77754-5.c
index 82c93d9..a9440dd 100644
--- a/gcc/testsuite/gcc.c-torture/compile/pr77754-5.c
+++ b/gcc/testsuite/gcc.c-torture/compile/pr77754-5.c
@@ -1,4 +1,3 @@
-// { dg-require-effective-target alloca }
/* PR c/77754 */
int fn3();
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr77754-6.c b/gcc/testsuite/gcc.c-torture/compile/pr77754-6.c
index 1b43043..2e7df3b 100644
--- a/gcc/testsuite/gcc.c-torture/compile/pr77754-6.c
+++ b/gcc/testsuite/gcc.c-torture/compile/pr77754-6.c
@@ -1,4 +1,3 @@
-// { dg-require-effective-target alloca }
/* PR c/77754 */
int fn3();
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr78439.c b/gcc/testsuite/gcc.c-torture/compile/pr78439.c
index fc90dd9..a8af86b 100644
--- a/gcc/testsuite/gcc.c-torture/compile/pr78439.c
+++ b/gcc/testsuite/gcc.c-torture/compile/pr78439.c
@@ -1,4 +1,3 @@
-/* { dg-require-effective-target alloca } */
/* PR target/78439. */
enum demangle_component_type
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr79413.c b/gcc/testsuite/gcc.c-torture/compile/pr79413.c
index 6fc66d5..602a974 100644
--- a/gcc/testsuite/gcc.c-torture/compile/pr79413.c
+++ b/gcc/testsuite/gcc.c-torture/compile/pr79413.c
@@ -1,4 +1,3 @@
-/* { dg-require-effective-target alloca } */
/* PR c/79413 */
void
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr82564.c b/gcc/testsuite/gcc.c-torture/compile/pr82564.c
index 039f55a..184e0e4 100644
--- a/gcc/testsuite/gcc.c-torture/compile/pr82564.c
+++ b/gcc/testsuite/gcc.c-torture/compile/pr82564.c
@@ -1,5 +1,4 @@
/* PR middle-end/82564 */
-/* { dg-require-effective-target alloca } */
int
main ()
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr87110.c b/gcc/testsuite/gcc.c-torture/compile/pr87110.c
index 57739ed..12e28c4 100644
--- a/gcc/testsuite/gcc.c-torture/compile/pr87110.c
+++ b/gcc/testsuite/gcc.c-torture/compile/pr87110.c
@@ -1,4 +1,3 @@
-// { dg-require-effective-target alloca }
enum a { b, c };
struct d {
_Bool e;
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr99787-1.c b/gcc/testsuite/gcc.c-torture/compile/pr99787-1.c
index 0e16301..d98b7e7 100644
--- a/gcc/testsuite/gcc.c-torture/compile/pr99787-1.c
+++ b/gcc/testsuite/gcc.c-torture/compile/pr99787-1.c
@@ -1,5 +1,4 @@
/* { dg-options "-ftree-slp-vectorize -ffp-contract=on -ffloat-store" } */
-/* { dg-require-effective-target alloca } */
_Complex foo_x_0;
int foo_n11, foo_i, foo_l;
diff --git a/gcc/testsuite/gcc.c-torture/compile/vla-const-1.c b/gcc/testsuite/gcc.c-torture/compile/vla-const-1.c
index c7c1dbe..4c957f3 100644
--- a/gcc/testsuite/gcc.c-torture/compile/vla-const-1.c
+++ b/gcc/testsuite/gcc.c-torture/compile/vla-const-1.c
@@ -1,6 +1,6 @@
/* Test TREE_CONSTANT VLA size: bug 27893. */
/* Origin: Joseph Myers <joseph@codesourcery.com> */
-/* { dg-require-effective-target alloca } */
+
int a;
void g(void *);
void f(void) { int b[(__SIZE_TYPE__)&a]; g(b); }
diff --git a/gcc/testsuite/gcc.c-torture/compile/vla-const-2.c b/gcc/testsuite/gcc.c-torture/compile/vla-const-2.c
index 5bbd9b5..2ddc71f 100644
--- a/gcc/testsuite/gcc.c-torture/compile/vla-const-2.c
+++ b/gcc/testsuite/gcc.c-torture/compile/vla-const-2.c
@@ -1,5 +1,5 @@
/* Test TREE_CONSTANT VLA size: bug 27893. */
/* Origin: Joseph Myers <joseph@codesourcery.com> */
-/* { dg-require-effective-target alloca } */
+
void g(void *);
void f(void) { int b[1/0]; g(b); }
diff --git a/gcc/testsuite/gcc.c-torture/execute/20010209-1.c b/gcc/testsuite/gcc.c-torture/execute/20010209-1.c
index 58f07d8..ca52c90 100644
--- a/gcc/testsuite/gcc.c-torture/execute/20010209-1.c
+++ b/gcc/testsuite/gcc.c-torture/execute/20010209-1.c
@@ -1,4 +1,3 @@
-/* { dg-require-effective-target alloca } */
void abort (void);
void exit (int);
diff --git a/gcc/testsuite/gcc.c-torture/execute/20020314-1.c b/gcc/testsuite/gcc.c-torture/execute/20020314-1.c
index 8484256..ae37ba1 100644
--- a/gcc/testsuite/gcc.c-torture/execute/20020314-1.c
+++ b/gcc/testsuite/gcc.c-torture/execute/20020314-1.c
@@ -1,4 +1,3 @@
-/* { dg-require-effective-target alloca } */
/* { dg-additional-options "-fpermissive" } */
void f(void * a, double y)
{
diff --git a/gcc/testsuite/gcc.c-torture/execute/20020412-1.c b/gcc/testsuite/gcc.c-torture/execute/20020412-1.c
index 58205d2..df0efe0 100644
--- a/gcc/testsuite/gcc.c-torture/execute/20020412-1.c
+++ b/gcc/testsuite/gcc.c-torture/execute/20020412-1.c
@@ -1,7 +1,6 @@
/* PR c/3711
This testcase ICEd on IA-32 at -O0 and was miscompiled otherwise,
because std_expand_builtin_va_arg didn't handle variable size types. */
-/* { dg-require-effective-target alloca } */
#include <stdarg.h>
diff --git a/gcc/testsuite/gcc.c-torture/execute/20021113-1.c b/gcc/testsuite/gcc.c-torture/execute/20021113-1.c
index ef64525..0766a5b 100644
--- a/gcc/testsuite/gcc.c-torture/execute/20021113-1.c
+++ b/gcc/testsuite/gcc.c-torture/execute/20021113-1.c
@@ -1,5 +1,3 @@
-/* { dg-require-effective-target alloca } */
-
/* This program tests a data flow bug that would cause constant propagation
to propagate constants through function calls. */
diff --git a/gcc/testsuite/gcc.c-torture/execute/20040223-1.c b/gcc/testsuite/gcc.c-torture/execute/20040223-1.c
index 4ec6ba7..1fcb15b 100644
--- a/gcc/testsuite/gcc.c-torture/execute/20040223-1.c
+++ b/gcc/testsuite/gcc.c-torture/execute/20040223-1.c
@@ -1,4 +1,3 @@
-/* { dg-require-effective-target alloca } */
/* { dg-additional-options "-fpermissive" } */
#include <string.h>
#include <stdio.h>
diff --git a/gcc/testsuite/gcc.c-torture/execute/20040308-1.c b/gcc/testsuite/gcc.c-torture/execute/20040308-1.c
index 4277a50..4c63535 100644
--- a/gcc/testsuite/gcc.c-torture/execute/20040308-1.c
+++ b/gcc/testsuite/gcc.c-torture/execute/20040308-1.c
@@ -1,4 +1,3 @@
-/* { dg-require-effective-target alloca } */
/* This used to fail on SPARC with an unaligned memory access. */
void foo(int n)
diff --git a/gcc/testsuite/gcc.c-torture/execute/20040811-1.c b/gcc/testsuite/gcc.c-torture/execute/20040811-1.c
index f7a4de9..0122825 100644
--- a/gcc/testsuite/gcc.c-torture/execute/20040811-1.c
+++ b/gcc/testsuite/gcc.c-torture/execute/20040811-1.c
@@ -1,5 +1,4 @@
/* { dg-require-effective-target int32plus } */
-/* { dg-require-effective-target alloca } */
/* Ensure that we deallocate X when branching back before its
declaration. */
diff --git a/gcc/testsuite/gcc.c-torture/execute/20070824-1.c b/gcc/testsuite/gcc.c-torture/execute/20070824-1.c
index 4842bfe..74eb58c 100644
--- a/gcc/testsuite/gcc.c-torture/execute/20070824-1.c
+++ b/gcc/testsuite/gcc.c-torture/execute/20070824-1.c
@@ -1,5 +1,4 @@
/* PR tree-optimization/33136 */
-/* { dg-require-effective-target alloca } */
extern void abort (void);
diff --git a/gcc/testsuite/gcc.c-torture/execute/20070919-1.c b/gcc/testsuite/gcc.c-torture/execute/20070919-1.c
index d3e7693..ade3d7e 100644
--- a/gcc/testsuite/gcc.c-torture/execute/20070919-1.c
+++ b/gcc/testsuite/gcc.c-torture/execute/20070919-1.c
@@ -1,5 +1,4 @@
/* PR c/33238 */
-/* { dg-require-effective-target alloca } */
typedef __SIZE_TYPE__ size_t;
int memcmp (const void *, const void *, size_t);
diff --git a/gcc/testsuite/gcc.c-torture/execute/920721-2.c b/gcc/testsuite/gcc.c-torture/execute/920721-2.c
index 7d05a14..0d18b59 100644
--- a/gcc/testsuite/gcc.c-torture/execute/920721-2.c
+++ b/gcc/testsuite/gcc.c-torture/execute/920721-2.c
@@ -1,4 +1,3 @@
-/* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */
/* { dg-additional-options "-std=gnu89" } */
f(){}
main(){int n=2;double x[n];f();exit(0);}
diff --git a/gcc/testsuite/gcc.c-torture/execute/920929-1.c b/gcc/testsuite/gcc.c-torture/execute/920929-1.c
index ba86af8..19b73214 100644
--- a/gcc/testsuite/gcc.c-torture/execute/920929-1.c
+++ b/gcc/testsuite/gcc.c-torture/execute/920929-1.c
@@ -1,4 +1,3 @@
-/* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */
/* REPRODUCED:RUN:SIGNAL MACHINE:sparc OPTIONS: */
void exit (int);
void
diff --git a/gcc/testsuite/gcc.c-torture/execute/921017-1.c b/gcc/testsuite/gcc.c-torture/execute/921017-1.c
index 1dd7d68..1aee660 100644
--- a/gcc/testsuite/gcc.c-torture/execute/921017-1.c
+++ b/gcc/testsuite/gcc.c-torture/execute/921017-1.c
@@ -1,4 +1,3 @@
-/* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */
/* { dg-require-effective-target trampolines } */
/* { dg-additional-options "-std=gnu89" } */
diff --git a/gcc/testsuite/gcc.c-torture/execute/941202-1.c b/gcc/testsuite/gcc.c-torture/execute/941202-1.c
index db45399..cda09dd 100644
--- a/gcc/testsuite/gcc.c-torture/execute/941202-1.c
+++ b/gcc/testsuite/gcc.c-torture/execute/941202-1.c
@@ -1,4 +1,3 @@
-/* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */
/* { dg-additional-options "-std=gnu89" } */
g (x, y)
{
diff --git a/gcc/testsuite/gcc.c-torture/execute/align-nest.c b/gcc/testsuite/gcc.c-torture/execute/align-nest.c
index 5298b09..4b237f0 100644
--- a/gcc/testsuite/gcc.c-torture/execute/align-nest.c
+++ b/gcc/testsuite/gcc.c-torture/execute/align-nest.c
@@ -1,5 +1,3 @@
-/* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */
-
void foo(int n)
{
typedef struct
diff --git a/gcc/testsuite/gcc.c-torture/execute/alloca-1.c b/gcc/testsuite/gcc.c-torture/execute/alloca-1.c
index 037c932..ddfb3de 100644
--- a/gcc/testsuite/gcc.c-torture/execute/alloca-1.c
+++ b/gcc/testsuite/gcc.c-torture/execute/alloca-1.c
@@ -1,4 +1,3 @@
-/* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */
/* Verify that alloca storage is sufficiently aligned. */
/* ??? May fail if BIGGEST_ALIGNMENT > STACK_BOUNDARY. Which, I guess
can only happen on !STRICT_ALIGNMENT targets. */
diff --git a/gcc/testsuite/gcc.c-torture/execute/built-in-setjmp.c b/gcc/testsuite/gcc.c-torture/execute/built-in-setjmp.c
index 137bfc5..bfaaeef 100644
--- a/gcc/testsuite/gcc.c-torture/execute/built-in-setjmp.c
+++ b/gcc/testsuite/gcc.c-torture/execute/built-in-setjmp.c
@@ -1,5 +1,4 @@
/* { dg-require-effective-target indirect_jumps } */
-/* { dg-require-effective-target alloca } */
extern int strcmp(const char *, const char *);
extern char *strcpy(char *, const char *);
diff --git a/gcc/testsuite/gcc.c-torture/execute/pr22061-1.c b/gcc/testsuite/gcc.c-torture/execute/pr22061-1.c
index 0a0f767..5197dc5 100644
--- a/gcc/testsuite/gcc.c-torture/execute/pr22061-1.c
+++ b/gcc/testsuite/gcc.c-torture/execute/pr22061-1.c
@@ -1,4 +1,3 @@
-/* { dg-require-effective-target alloca } */
/* { dg-additional-options "-fpermissive" } */
int N = 1;
void foo() {} /* Necessary to trigger the original ICE. */
diff --git a/gcc/testsuite/gcc.c-torture/execute/pr22061-4.c b/gcc/testsuite/gcc.c-torture/execute/pr22061-4.c
index 14b11ce..8f0d1b8 100644
--- a/gcc/testsuite/gcc.c-torture/execute/pr22061-4.c
+++ b/gcc/testsuite/gcc.c-torture/execute/pr22061-4.c
@@ -1,4 +1,3 @@
-/* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */
void abort (void);
void exit (int);
diff --git a/gcc/testsuite/gcc.c-torture/execute/pr36321.c b/gcc/testsuite/gcc.c-torture/execute/pr36321.c
index 8fd91d8..b18e845 100644
--- a/gcc/testsuite/gcc.c-torture/execute/pr36321.c
+++ b/gcc/testsuite/gcc.c-torture/execute/pr36321.c
@@ -1,4 +1,3 @@
-/* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */
/* See 'gcc.target/nvptx/__builtin_alloca_0-1-O0.c'.
{ dg-xfail-if TODO { nvptx-*-* && { ! nvptx_softstack } } { "-O0" } { "" } } */
diff --git a/gcc/testsuite/gcc.c-torture/execute/pr43220.c b/gcc/testsuite/gcc.c-torture/execute/pr43220.c
index d61dfe8..0d6ebfb 100644
--- a/gcc/testsuite/gcc.c-torture/execute/pr43220.c
+++ b/gcc/testsuite/gcc.c-torture/execute/pr43220.c
@@ -1,5 +1,4 @@
/* { dg-require-effective-target int32plus } */
-/* { dg-require-effective-target alloca } */
void *volatile p;
diff --git a/gcc/testsuite/gcc.c-torture/execute/pr82210.c b/gcc/testsuite/gcc.c-torture/execute/pr82210.c
index 4caf843..48fb715 100644
--- a/gcc/testsuite/gcc.c-torture/execute/pr82210.c
+++ b/gcc/testsuite/gcc.c-torture/execute/pr82210.c
@@ -1,5 +1,4 @@
/* PR c/82210 */
-/* { dg-require-effective-target alloca } */
void
foo (int size)
diff --git a/gcc/testsuite/gcc.c-torture/execute/pr86528.c b/gcc/testsuite/gcc.c-torture/execute/pr86528.c
index 9992faf..2a7b011 100644
--- a/gcc/testsuite/gcc.c-torture/execute/pr86528.c
+++ b/gcc/testsuite/gcc.c-torture/execute/pr86528.c
@@ -1,4 +1,3 @@
-// { dg-require-effective-target alloca }
/* PR middle-end/86528 */
void __attribute__((noinline, noclone))
diff --git a/gcc/testsuite/gcc.c-torture/execute/vla-dealloc-1.c b/gcc/testsuite/gcc.c-torture/execute/vla-dealloc-1.c
index 3b74b85..9eb95c1 100644
--- a/gcc/testsuite/gcc.c-torture/execute/vla-dealloc-1.c
+++ b/gcc/testsuite/gcc.c-torture/execute/vla-dealloc-1.c
@@ -1,6 +1,5 @@
/* VLAs should be deallocated on a jump to before their definition,
including a jump to a label in an inner scope. PR 19771. */
-/* { dg-require-effective-target alloca } */
#if (__SIZEOF_INT__ <= 2)
#define LIMIT 10000
diff --git a/gcc/testsuite/gcc.dg/20001012-2.c b/gcc/testsuite/gcc.dg/20001012-2.c
index e7a4fb8..629ae1b 100644
--- a/gcc/testsuite/gcc.dg/20001012-2.c
+++ b/gcc/testsuite/gcc.dg/20001012-2.c
@@ -1,6 +1,5 @@
/* { dg-do run { target fpic } } */
/* { dg-options "-O2 -fpic" } */
-/* { dg-require-effective-target alloca } */
extern void abort (void);
extern void exit (int);
diff --git a/gcc/testsuite/gcc.dg/20020415-1.c b/gcc/testsuite/gcc.dg/20020415-1.c
index 46a1bbd..7d5b5ae 100644
--- a/gcc/testsuite/gcc.dg/20020415-1.c
+++ b/gcc/testsuite/gcc.dg/20020415-1.c
@@ -3,7 +3,6 @@
ASM_SIMPLIFY_DWARF_ADDR hook. */
/* { dg-do compile { target fpic } } */
/* { dg-options "-O2 -fpic -g" } */
-/* { dg-require-effective-target alloca } */
static inline char *
bar (unsigned long x, char *y)
diff --git a/gcc/testsuite/gcc.dg/20030331-2.c b/gcc/testsuite/gcc.dg/20030331-2.c
index 5dc164f..2fce78e 100644
--- a/gcc/testsuite/gcc.dg/20030331-2.c
+++ b/gcc/testsuite/gcc.dg/20030331-2.c
@@ -1,5 +1,4 @@
// { dg-options "" }
-/* { dg-require-effective-target alloca } */
extern int printf (const char *, ...);
diff --git a/gcc/testsuite/gcc.dg/20101010-1.c b/gcc/testsuite/gcc.dg/20101010-1.c
index d470717..a0e308e 100644
--- a/gcc/testsuite/gcc.dg/20101010-1.c
+++ b/gcc/testsuite/gcc.dg/20101010-1.c
@@ -1,6 +1,5 @@
/* { dg-do compile } */
/* { dg-options "-std=gnu17 -O2 -fno-crossjumping" } */
-/* { dg-require-effective-target alloca } */
int bar1 ();
int bar2 ();
diff --git a/gcc/testsuite/gcc.dg/Walloca-1.c b/gcc/testsuite/gcc.dg/Walloca-1.c
index 37ee191..3f657dc 100644
--- a/gcc/testsuite/gcc.dg/Walloca-1.c
+++ b/gcc/testsuite/gcc.dg/Walloca-1.c
@@ -1,5 +1,4 @@
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
/* { dg-options "-Walloca-larger-than=2000 -O2 -ftrack-macro-expansion=0" } */
#define alloca __builtin_alloca
diff --git a/gcc/testsuite/gcc.dg/Walloca-10.c b/gcc/testsuite/gcc.dg/Walloca-10.c
index 6b127cc..69549fc 100644
--- a/gcc/testsuite/gcc.dg/Walloca-10.c
+++ b/gcc/testsuite/gcc.dg/Walloca-10.c
@@ -1,5 +1,4 @@
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
/* { dg-options "-Walloca-larger-than=2000 -O2" } */
// Test when the conditionals are incorrectly reversed.
diff --git a/gcc/testsuite/gcc.dg/Walloca-11.c b/gcc/testsuite/gcc.dg/Walloca-11.c
index 8484f9c..5124476 100644
--- a/gcc/testsuite/gcc.dg/Walloca-11.c
+++ b/gcc/testsuite/gcc.dg/Walloca-11.c
@@ -1,5 +1,4 @@
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
/* { dg-options "-Walloca -O2" } */
// Make sure we don't warn on VLA with -Walloca.
diff --git a/gcc/testsuite/gcc.dg/Walloca-12.c b/gcc/testsuite/gcc.dg/Walloca-12.c
index d2d9413..f209d05 100644
--- a/gcc/testsuite/gcc.dg/Walloca-12.c
+++ b/gcc/testsuite/gcc.dg/Walloca-12.c
@@ -1,5 +1,4 @@
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
/* { dg-options "-Walloca-larger-than=128 -O2" } */
void f (void*);
diff --git a/gcc/testsuite/gcc.dg/Walloca-13.c b/gcc/testsuite/gcc.dg/Walloca-13.c
index d3af0c5..f9bdcef 100644
--- a/gcc/testsuite/gcc.dg/Walloca-13.c
+++ b/gcc/testsuite/gcc.dg/Walloca-13.c
@@ -1,5 +1,4 @@
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
/* { dg-options "-Walloca-larger-than=100 -O2" } */
void f (void*);
diff --git a/gcc/testsuite/gcc.dg/Walloca-14.c b/gcc/testsuite/gcc.dg/Walloca-14.c
index 554587c..16ad0a1 100644
--- a/gcc/testsuite/gcc.dg/Walloca-14.c
+++ b/gcc/testsuite/gcc.dg/Walloca-14.c
@@ -1,6 +1,5 @@
/* PR tree-optimization/80109 */
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
/* { dg-skip-if "small address space" { "pdp11-*-*" } } */
/* { dg-options "-O2 -Walloca-larger-than=126812070" { target ptr32plus } } */
/* { dg-options "-O2 -Walloca-larger-than=12070" { target { ! ptr32plus } } } */
diff --git a/gcc/testsuite/gcc.dg/Walloca-15.c b/gcc/testsuite/gcc.dg/Walloca-15.c
index f34ffd9..12f71c3 100644
--- a/gcc/testsuite/gcc.dg/Walloca-15.c
+++ b/gcc/testsuite/gcc.dg/Walloca-15.c
@@ -1,5 +1,4 @@
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
/* { dg-options "-Walloca-larger-than=128 -O2" } */
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/gcc.dg/Walloca-2.c b/gcc/testsuite/gcc.dg/Walloca-2.c
index c81813e..dd822a8 100644
--- a/gcc/testsuite/gcc.dg/Walloca-2.c
+++ b/gcc/testsuite/gcc.dg/Walloca-2.c
@@ -1,5 +1,4 @@
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
/* { dg-options "-Walloca-larger-than=2000 -O2" } */
void f (void *);
diff --git a/gcc/testsuite/gcc.dg/Walloca-3.c b/gcc/testsuite/gcc.dg/Walloca-3.c
index b8000ff..6e73b72 100644
--- a/gcc/testsuite/gcc.dg/Walloca-3.c
+++ b/gcc/testsuite/gcc.dg/Walloca-3.c
@@ -1,5 +1,4 @@
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
/* { dg-options "-Walloca-larger-than=2000 -O2" } */
void f (void *);
diff --git a/gcc/testsuite/gcc.dg/Walloca-4.c b/gcc/testsuite/gcc.dg/Walloca-4.c
index 1fbed59..9ba9453 100644
--- a/gcc/testsuite/gcc.dg/Walloca-4.c
+++ b/gcc/testsuite/gcc.dg/Walloca-4.c
@@ -1,5 +1,4 @@
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
/* { dg-options "-Walloca-larger-than=5000 -O2" } */
char *
diff --git a/gcc/testsuite/gcc.dg/Walloca-5.c b/gcc/testsuite/gcc.dg/Walloca-5.c
index 73c7296..5ed1171 100644
--- a/gcc/testsuite/gcc.dg/Walloca-5.c
+++ b/gcc/testsuite/gcc.dg/Walloca-5.c
@@ -1,5 +1,4 @@
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
/* { dg-options "-Walloca-larger-than=123 -O2" } */
/* { dg-xfail-if "Currently broken but Andrew's work should fix this" { *-*-* } } */
diff --git a/gcc/testsuite/gcc.dg/Walloca-6.c b/gcc/testsuite/gcc.dg/Walloca-6.c
index ebe08ae..e00267f 100644
--- a/gcc/testsuite/gcc.dg/Walloca-6.c
+++ b/gcc/testsuite/gcc.dg/Walloca-6.c
@@ -1,5 +1,4 @@
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
/* { dg-options "-Walloca-larger-than=256 -O2" } */
void f (void*);
diff --git a/gcc/testsuite/gcc.dg/Walloca-7.c b/gcc/testsuite/gcc.dg/Walloca-7.c
index 11c38c1..d6581a5 100644
--- a/gcc/testsuite/gcc.dg/Walloca-7.c
+++ b/gcc/testsuite/gcc.dg/Walloca-7.c
@@ -1,5 +1,4 @@
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
/* { dg-options "-Walloca -O0" } */
extern void f(void *);
diff --git a/gcc/testsuite/gcc.dg/Walloca-8.c b/gcc/testsuite/gcc.dg/Walloca-8.c
index b64af09..a4a1204 100644
--- a/gcc/testsuite/gcc.dg/Walloca-8.c
+++ b/gcc/testsuite/gcc.dg/Walloca-8.c
@@ -1,5 +1,4 @@
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
/* { dg-options "-Walloca-larger-than=2000 -O2" } */
void *p;
diff --git a/gcc/testsuite/gcc.dg/Walloca-9.c b/gcc/testsuite/gcc.dg/Walloca-9.c
index b82324a..c67d9d6 100644
--- a/gcc/testsuite/gcc.dg/Walloca-9.c
+++ b/gcc/testsuite/gcc.dg/Walloca-9.c
@@ -1,5 +1,4 @@
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
/* { dg-options "-Walloca-larger-than=5000 -O2" } */
extern void useit(char *);
diff --git a/gcc/testsuite/gcc.dg/Walloca-larger-than-2.c b/gcc/testsuite/gcc.dg/Walloca-larger-than-2.c
index 88572d9..fe003bd 100644
--- a/gcc/testsuite/gcc.dg/Walloca-larger-than-2.c
+++ b/gcc/testsuite/gcc.dg/Walloca-larger-than-2.c
@@ -1,7 +1,6 @@
/* PR middle-end/82063 - issues with arguments enabled by -Wall
Verify that alloca() calls in loops are not diagnosed by default.
{ dg-do compile }
- { dg-require-effective-target alloca }
{ dg-options "-O2 -ftrack-macro-expansion=0" } */
extern void* alloca (__SIZE_TYPE__);
diff --git a/gcc/testsuite/gcc.dg/Walloca-larger-than-3.c b/gcc/testsuite/gcc.dg/Walloca-larger-than-3.c
index 6f8ede0..60d8128 100644
--- a/gcc/testsuite/gcc.dg/Walloca-larger-than-3.c
+++ b/gcc/testsuite/gcc.dg/Walloca-larger-than-3.c
@@ -1,8 +1,7 @@
/* PR middle-end/94004 - missing -Walloca on calls to alloca due
to -Wno-system-headers
{ dg-do compile }
- { dg-options "-O2 -Wall -Walloca-larger-than=8 -ftrack-macro-expansion=0" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wall -Walloca-larger-than=8 -ftrack-macro-expansion=0" } */
#include "Walloca-larger-than-3.h"
diff --git a/gcc/testsuite/gcc.dg/Walloca-larger-than-4.c b/gcc/testsuite/gcc.dg/Walloca-larger-than-4.c
index aac8b97..9d4c4e8 100644
--- a/gcc/testsuite/gcc.dg/Walloca-larger-than-4.c
+++ b/gcc/testsuite/gcc.dg/Walloca-larger-than-4.c
@@ -1,7 +1,6 @@
/* PR middle-end/100425 - missing -Walloca-larger-than with -O0
{ dg-do compile }
- { dg-options "-O0 -Wall -Walloca-larger-than=128" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O0 -Wall -Walloca-larger-than=128" } */
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/gcc.dg/Walloca-larger-than.c b/gcc/testsuite/gcc.dg/Walloca-larger-than.c
index 32ee15f..284601d 100644
--- a/gcc/testsuite/gcc.dg/Walloca-larger-than.c
+++ b/gcc/testsuite/gcc.dg/Walloca-larger-than.c
@@ -1,6 +1,5 @@
/* PR middle-end/82063 - issues with arguments enabled by -Wall
{ dg-do compile }
- { dg-require-effective-target alloca }
{ dg-options "-O2 -Walloca-larger-than=0 -Wvla-larger-than=0 -ftrack-macro-expansion=0" } */
extern void* alloca (__SIZE_TYPE__);
diff --git a/gcc/testsuite/gcc.dg/Warray-bounds-22.c b/gcc/testsuite/gcc.dg/Warray-bounds-22.c
index 8165140..7828b34 100644
--- a/gcc/testsuite/gcc.dg/Warray-bounds-22.c
+++ b/gcc/testsuite/gcc.dg/Warray-bounds-22.c
@@ -1,7 +1,6 @@
/* PR tree-optimization/82588 - missing -Warray-bounds on an excessively
large index
{ dg-do compile }
- { dg-require-effective-target alloca }
{ dg-options "-O2 -Warray-bounds -ftrack-macro-expansion=0" } */
#define SIZE_MAX __SIZE_MAX__
diff --git a/gcc/testsuite/gcc.dg/Warray-bounds-41.c b/gcc/testsuite/gcc.dg/Warray-bounds-41.c
index 3b3693f..9abc89c 100644
--- a/gcc/testsuite/gcc.dg/Warray-bounds-41.c
+++ b/gcc/testsuite/gcc.dg/Warray-bounds-41.c
@@ -1,6 +1,5 @@
/* PR tree-optimization/89662- -Warray-bounds ICE on void* arithmetic
{ dg-do compile }
- { dg-require-effective-target alloca }
{ dg-options "-O2 -Wall" } */
static void* vptr (void *c)
diff --git a/gcc/testsuite/gcc.dg/Warray-bounds-46.c b/gcc/testsuite/gcc.dg/Warray-bounds-46.c
index 4effe5c..8c72e65 100644
--- a/gcc/testsuite/gcc.dg/Warray-bounds-46.c
+++ b/gcc/testsuite/gcc.dg/Warray-bounds-46.c
@@ -3,8 +3,7 @@
Test to verify that past-the-end accesses by string functions to member
arrays by-reference objects are diagnosed.
{ dg-do compile }
- { dg-options "-O2 -Wall -Wno-unused-local-typedefs -Wno-stringop-overflow -ftrack-macro-expansion=0" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wall -Wno-unused-local-typedefs -Wno-stringop-overflow -ftrack-macro-expansion=0" } */
#define SA(expr) typedef int StaticAssert [2 * !!(expr) - 1]
diff --git a/gcc/testsuite/gcc.dg/Warray-bounds-48-novec.c b/gcc/testsuite/gcc.dg/Warray-bounds-48-novec.c
index 5cae856..1df7892 100644
--- a/gcc/testsuite/gcc.dg/Warray-bounds-48-novec.c
+++ b/gcc/testsuite/gcc.dg/Warray-bounds-48-novec.c
@@ -1,8 +1,7 @@
/* PR middle-end/91647 - missing -Warray-bounds accessing a zero-length array
of a declared object
{ dg-do "compile" }
- { dg-options "-O2 -Wall -fno-tree-vectorize" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wall -fno-tree-vectorize" } */
typedef __INT16_TYPE__ int16_t;
typedef __INT32_TYPE__ int32_t;
diff --git a/gcc/testsuite/gcc.dg/Warray-bounds-48.c b/gcc/testsuite/gcc.dg/Warray-bounds-48.c
index e920314..b260660 100644
--- a/gcc/testsuite/gcc.dg/Warray-bounds-48.c
+++ b/gcc/testsuite/gcc.dg/Warray-bounds-48.c
@@ -1,8 +1,7 @@
/* PR middle-end/91647 - missing -Warray-bounds accessing a zero-length array
of a declared object
{ dg-do "compile" }
- { dg-options "-O2 -Wall" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wall" } */
/* pr102706: disabled warnings because the now-disabled conditions for the
bogus warnings to come up do not take cost analysis into account, and often
diff --git a/gcc/testsuite/gcc.dg/Warray-bounds-50.c b/gcc/testsuite/gcc.dg/Warray-bounds-50.c
index 05c89b2..d6edfac 100644
--- a/gcc/testsuite/gcc.dg/Warray-bounds-50.c
+++ b/gcc/testsuite/gcc.dg/Warray-bounds-50.c
@@ -1,7 +1,6 @@
/* PR middle-end/92349 - ICE in -Warray-bounds on a VLA member
{ dg-do compile }
- { dg-options "-O2 -Wall" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wall" } */
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/gcc.dg/Warray-bounds-63.c b/gcc/testsuite/gcc.dg/Warray-bounds-63.c
index 530e2c5..0c9ca45 100644
--- a/gcc/testsuite/gcc.dg/Warray-bounds-63.c
+++ b/gcc/testsuite/gcc.dg/Warray-bounds-63.c
@@ -1,8 +1,7 @@
/* PR middle-end/94195 - missing warning reading a smaller object via
an lvalue of a larger type
{ dg-do compile }
- { dg-options "-O2 -Wall" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wall" } */
typedef __INT16_TYPE__ int16_t;
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/gcc.dg/Warray-bounds-66.c b/gcc/testsuite/gcc.dg/Warray-bounds-66.c
index 6ab3398..0497c5f 100644
--- a/gcc/testsuite/gcc.dg/Warray-bounds-66.c
+++ b/gcc/testsuite/gcc.dg/Warray-bounds-66.c
@@ -1,7 +1,6 @@
/* PR middle-end/82608 - missing -Warray-bounds on an out-of-bounds VLA index
{ dg-do compile }
- { dg-options "-O2 -Wall -Wno-uninitialized -ftrack-macro-expansion=0" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wall -Wno-uninitialized -ftrack-macro-expansion=0" } */
#include "range.h"
diff --git a/gcc/testsuite/gcc.dg/Wdangling-pointer.c b/gcc/testsuite/gcc.dg/Wdangling-pointer.c
index 89e2220..d792d09 100644
--- a/gcc/testsuite/gcc.dg/Wdangling-pointer.c
+++ b/gcc/testsuite/gcc.dg/Wdangling-pointer.c
@@ -1,7 +1,6 @@
/* Exercise basic C-only cases of -Wdangling-pointer.
{ dg-do compile }
- { dg-options "-O0 -Wall" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O0 -Wall" } */
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/gcc.dg/Wfree-nonheap-object-2.c b/gcc/testsuite/gcc.dg/Wfree-nonheap-object-2.c
index e9316a5..f11f2e0 100644
--- a/gcc/testsuite/gcc.dg/Wfree-nonheap-object-2.c
+++ b/gcc/testsuite/gcc.dg/Wfree-nonheap-object-2.c
@@ -2,8 +2,7 @@
Verify that attempting to reallocate unallocated objects referenced
either directly or through pointers is diagnosed.
{ dg-do compile }
- { dg-options "-O2 -Wall -Wfree-nonheap-object" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wall -Wfree-nonheap-object" } */
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/gcc.dg/Wfree-nonheap-object.c b/gcc/testsuite/gcc.dg/Wfree-nonheap-object.c
index c7c6680..94b8f2a 100644
--- a/gcc/testsuite/gcc.dg/Wfree-nonheap-object.c
+++ b/gcc/testsuite/gcc.dg/Wfree-nonheap-object.c
@@ -3,8 +3,7 @@
or through pointers is diagnosed. In most cases this doesn't require
optimization.
{ dg-do compile }
- { dg-options "-Wall -Wfree-nonheap-object" }
- { dg-require-effective-target alloca } */
+ { dg-options "-Wall -Wfree-nonheap-object" } */
typedef __INTPTR_TYPE__ intptr_t;
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/gcc.dg/Wrestrict-17.c b/gcc/testsuite/gcc.dg/Wrestrict-17.c
index 4e72597..8061fda 100644
--- a/gcc/testsuite/gcc.dg/Wrestrict-17.c
+++ b/gcc/testsuite/gcc.dg/Wrestrict-17.c
@@ -1,7 +1,6 @@
/* PR tree-optimization/85826 - ICE in gimple-ssa-warn-restruct on
a variable-length struct
{ dg-do compile }
- { dg-require-effective-target alloca }
{ dg-options "-O2 -Wall" } */
int f (int n)
diff --git a/gcc/testsuite/gcc.dg/Wrestrict.c b/gcc/testsuite/gcc.dg/Wrestrict.c
index 266443f..faec1e5 100644
--- a/gcc/testsuite/gcc.dg/Wrestrict.c
+++ b/gcc/testsuite/gcc.dg/Wrestrict.c
@@ -1,7 +1,6 @@
/* Test to verify that VLAs are handled gracefully by -Wrestrict
{ dg-do compile }
- { dg-options "-O2 -Wrestrict" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wrestrict" } */
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/gcc.dg/Wreturn-local-addr-2.c b/gcc/testsuite/gcc.dg/Wreturn-local-addr-2.c
index 9273690..0e3435c 100644
--- a/gcc/testsuite/gcc.dg/Wreturn-local-addr-2.c
+++ b/gcc/testsuite/gcc.dg/Wreturn-local-addr-2.c
@@ -1,7 +1,6 @@
/* PR c/71924 - missing -Wreturn-local-addr returning alloca result
{ dg-do compile }
- { dg-options "-O2 -Wall" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wall" } */
#define ATTR(...) __attribute__ ((__VA_ARGS__))
diff --git a/gcc/testsuite/gcc.dg/Wreturn-local-addr-3.c b/gcc/testsuite/gcc.dg/Wreturn-local-addr-3.c
index e922888..6dad7af 100644
--- a/gcc/testsuite/gcc.dg/Wreturn-local-addr-3.c
+++ b/gcc/testsuite/gcc.dg/Wreturn-local-addr-3.c
@@ -1,7 +1,6 @@
/* PR c/71924 - missing -Wreturn-local-addr returning alloca result
{ dg-do compile }
- { dg-options "-O2 -Wall" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wall" } */
#define ATTR(...) __attribute__ ((__VA_ARGS__))
diff --git a/gcc/testsuite/gcc.dg/Wreturn-local-addr-4.c b/gcc/testsuite/gcc.dg/Wreturn-local-addr-4.c
index 4a3b07b..0a451ef 100644
--- a/gcc/testsuite/gcc.dg/Wreturn-local-addr-4.c
+++ b/gcc/testsuite/gcc.dg/Wreturn-local-addr-4.c
@@ -1,7 +1,6 @@
/* PR c/71924 - missing -Wreturn-local-addr returning alloca result
{ dg-do compile }
- { dg-options "-O2 -Wall" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wall" } */
#define ATTR(...) __attribute__ ((__VA_ARGS__))
diff --git a/gcc/testsuite/gcc.dg/Wreturn-local-addr-6.c b/gcc/testsuite/gcc.dg/Wreturn-local-addr-6.c
index 844660f..70138b3 100644
--- a/gcc/testsuite/gcc.dg/Wreturn-local-addr-6.c
+++ b/gcc/testsuite/gcc.dg/Wreturn-local-addr-6.c
@@ -1,7 +1,6 @@
/* PR c/71924 - missing -Wreturn-local-addr returning alloca result
{ dg-do compile }
- { dg-options "-O2 -Wall" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wall" } */
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/gcc.dg/Wsizeof-pointer-memaccess1.c b/gcc/testsuite/gcc.dg/Wsizeof-pointer-memaccess1.c
index 5aea89a..f7adbfe 100644
--- a/gcc/testsuite/gcc.dg/Wsizeof-pointer-memaccess1.c
+++ b/gcc/testsuite/gcc.dg/Wsizeof-pointer-memaccess1.c
@@ -1,7 +1,6 @@
/* Test -Wsizeof-pointer-memaccess warnings. */
/* { dg-do compile } */
/* { dg-options "-Wall -Wno-array-bounds -Wno-sizeof-array-argument -Wno-stringop-overflow -Wno-stringop-overread" } */
-/* { dg-require-effective-target alloca } */
typedef __SIZE_TYPE__ size_t;
extern void bzero (void *, size_t);
diff --git a/gcc/testsuite/gcc.dg/Wstack-usage.c b/gcc/testsuite/gcc.dg/Wstack-usage.c
index 11e3a27..4738b69 100644
--- a/gcc/testsuite/gcc.dg/Wstack-usage.c
+++ b/gcc/testsuite/gcc.dg/Wstack-usage.c
@@ -1,7 +1,6 @@
/* PR 90983/manual documents `-Wno-stack-usage` flag, but it is unrecognized
{ dg-do compile }
- { dg-options "-Wall -Wstack-usage=123 -Wno-stack-usage" }
- { dg-require-effective-target alloca } */
+ { dg-options "-Wall -Wstack-usage=123 -Wno-stack-usage" } */
void f (void*);
diff --git a/gcc/testsuite/gcc.dg/Wstrict-aliasing-bogus-vla-1.c b/gcc/testsuite/gcc.dg/Wstrict-aliasing-bogus-vla-1.c
index 87f5ef9..e9f63d3 100644
--- a/gcc/testsuite/gcc.dg/Wstrict-aliasing-bogus-vla-1.c
+++ b/gcc/testsuite/gcc.dg/Wstrict-aliasing-bogus-vla-1.c
@@ -1,7 +1,6 @@
/* PR 41673: bogus -Wstrict-aliasing warning from VLA dereference. */
/* { dg-do compile } */
/* { dg-options "-std=gnu99 -O2 -Wall" } */
-/* { dg-require-effective-target alloca } */
int main(int argc, char *argv[])
{
diff --git a/gcc/testsuite/gcc.dg/Wstrict-overflow-27.c b/gcc/testsuite/gcc.dg/Wstrict-overflow-27.c
index e2cdcbc..95d101a 100644
--- a/gcc/testsuite/gcc.dg/Wstrict-overflow-27.c
+++ b/gcc/testsuite/gcc.dg/Wstrict-overflow-27.c
@@ -1,5 +1,4 @@
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
/* { dg-options "-O3 -Wstrict-overflow=2 -Werror" } */
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/gcc.dg/Wstringop-overflow-15.c b/gcc/testsuite/gcc.dg/Wstringop-overflow-15.c
index f7dcb94..9002eee9 100644
--- a/gcc/testsuite/gcc.dg/Wstringop-overflow-15.c
+++ b/gcc/testsuite/gcc.dg/Wstringop-overflow-15.c
@@ -4,8 +4,7 @@
for either kind of VLAs (member and non-member).
Diagnosing the accesses is the subject of pr82608.
{ dg-do compile }
- { dg-options "-O2 -Wall -Wno-array-bounds" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wall -Wno-array-bounds" } */
void sink (void*);
diff --git a/gcc/testsuite/gcc.dg/Wstringop-overflow-23.c b/gcc/testsuite/gcc.dg/Wstringop-overflow-23.c
index 0da916a..842d4d1 100644
--- a/gcc/testsuite/gcc.dg/Wstringop-overflow-23.c
+++ b/gcc/testsuite/gcc.dg/Wstringop-overflow-23.c
@@ -4,8 +4,7 @@
warnings are issued for calls to user-defined functions with attribute
access and with non-constant out-of-bounds arguments.
{ dg-do compile }
- { dg-options "-O2 -Wall" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wall" } */
#include "range.h"
diff --git a/gcc/testsuite/gcc.dg/Wstringop-overflow-25.c b/gcc/testsuite/gcc.dg/Wstringop-overflow-25.c
index bc60958..109a1dd 100644
--- a/gcc/testsuite/gcc.dg/Wstringop-overflow-25.c
+++ b/gcc/testsuite/gcc.dg/Wstringop-overflow-25.c
@@ -1,7 +1,6 @@
/* PR middle-end/91582 - missing heap overflow detection for strcpy
{ dg-do compile }
- { dg-options "-O2 -Wall -Wno-array-bounds -ftrack-macro-expansion=0" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wall -Wno-array-bounds -ftrack-macro-expansion=0" } */
#include "range.h"
diff --git a/gcc/testsuite/gcc.dg/Wstringop-overflow-27.c b/gcc/testsuite/gcc.dg/Wstringop-overflow-27.c
index 607c279..39d999e 100644
--- a/gcc/testsuite/gcc.dg/Wstringop-overflow-27.c
+++ b/gcc/testsuite/gcc.dg/Wstringop-overflow-27.c
@@ -2,8 +2,7 @@
PR middle-end/85484 - missing -Wstringop-overflow for strcpy with
a string of non-const length
{ dg-do compile }
- { dg-options "-O2 -Wall -Wno-array-bounds" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wall -Wno-array-bounds" } */
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/gcc.dg/Wstringop-overflow-3.c b/gcc/testsuite/gcc.dg/Wstringop-overflow-3.c
index 6c8cbf3..5901844 100644
--- a/gcc/testsuite/gcc.dg/Wstringop-overflow-3.c
+++ b/gcc/testsuite/gcc.dg/Wstringop-overflow-3.c
@@ -1,7 +1,6 @@
/* PR tree-optimization/84238 */
/* { dg-do compile } */
/* { dg-options "-O2" } */
-/* { dg-require-effective-target alloca } */
char a[1];
int b;
diff --git a/gcc/testsuite/gcc.dg/Wstringop-overflow-39.c b/gcc/testsuite/gcc.dg/Wstringop-overflow-39.c
index 295a38d..f83646a 100644
--- a/gcc/testsuite/gcc.dg/Wstringop-overflow-39.c
+++ b/gcc/testsuite/gcc.dg/Wstringop-overflow-39.c
@@ -1,8 +1,7 @@
/* PR middle-end/95667 - unintended warning for memset writing across multiple
members
{ dg-do compile }
- { dg-options "-O2 -Wall" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wall" } */
extern void sink (void*);
diff --git a/gcc/testsuite/gcc.dg/Wstringop-overflow-56.c b/gcc/testsuite/gcc.dg/Wstringop-overflow-56.c
index 5ba4de4..b3e598c 100644
--- a/gcc/testsuite/gcc.dg/Wstringop-overflow-56.c
+++ b/gcc/testsuite/gcc.dg/Wstringop-overflow-56.c
@@ -1,8 +1,7 @@
/* PR middle-end/92942 - missing -Wstringop-overflow for allocations with
a negative lower bound size
{ dg-do compile }
- { dg-options "-O2 -Wall" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wall" } */
#define SIZE_MAX __SIZE_MAX__
#define UINT8_MAX __UINT8_MAX__
diff --git a/gcc/testsuite/gcc.dg/Wstringop-overflow-57.c b/gcc/testsuite/gcc.dg/Wstringop-overflow-57.c
index 6ae8589..173aa16 100644
--- a/gcc/testsuite/gcc.dg/Wstringop-overflow-57.c
+++ b/gcc/testsuite/gcc.dg/Wstringop-overflow-57.c
@@ -1,8 +1,7 @@
/* Verify that an anti-range ~[A, B] with small positive A and B
is handled correctly and doesn't trigger warnings.
{ dg-do compile }
- { dg-options "-O2 -Wall" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wall" } */
typedef __typeof__ (sizeof 0) size_t;
diff --git a/gcc/testsuite/gcc.dg/Wstringop-overflow-67.c b/gcc/testsuite/gcc.dg/Wstringop-overflow-67.c
index 0f01082..7b8f3f0 100644
--- a/gcc/testsuite/gcc.dg/Wstringop-overflow-67.c
+++ b/gcc/testsuite/gcc.dg/Wstringop-overflow-67.c
@@ -1,8 +1,7 @@
/* PR middle-end/100571 - bogus -Wstringop-overflow with VLA of elements
larger than byte
{ dg-do compile }
- { dg-options "-O2 -Wall" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wall" } */
__attribute__ ((access (read_only, 1, 2))) void fro (int *, int);
__attribute__ ((access (write_only, 1, 2))) void fwo (int *, int);
diff --git a/gcc/testsuite/gcc.dg/Wstringop-overflow-71.c b/gcc/testsuite/gcc.dg/Wstringop-overflow-71.c
index 74311ec..f56a005 100644
--- a/gcc/testsuite/gcc.dg/Wstringop-overflow-71.c
+++ b/gcc/testsuite/gcc.dg/Wstringop-overflow-71.c
@@ -2,8 +2,7 @@
a larger scalar into a smaller array
Verify warnings for overflow by stores of results of built-in functions.
{ dg-do compile }
- { dg-options "-O2" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2" } */
typedef __INT16_TYPE__ int16_t;
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/gcc.dg/Wstringop-truncation-3.c b/gcc/testsuite/gcc.dg/Wstringop-truncation-3.c
index 6c67974..57f4d64 100644
--- a/gcc/testsuite/gcc.dg/Wstringop-truncation-3.c
+++ b/gcc/testsuite/gcc.dg/Wstringop-truncation-3.c
@@ -1,6 +1,5 @@
/* PR c/85931 - -Wsizeof-pointer-memaccess for strncpy with size of source
{ dg-do compile }
- { dg-require-effective-target alloca }
{ dg-options "-O2 -Wall -Wstringop-truncation -ftrack-macro-expansion=0" } */
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/gcc.dg/Wvla-larger-than-1.c b/gcc/testsuite/gcc.dg/Wvla-larger-than-1.c
index f0617f9..384c930 100644
--- a/gcc/testsuite/gcc.dg/Wvla-larger-than-1.c
+++ b/gcc/testsuite/gcc.dg/Wvla-larger-than-1.c
@@ -1,5 +1,4 @@
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
/* { dg-options "-Wvla-larger-than=100 -O2" } */
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/gcc.dg/Wvla-larger-than-2.c b/gcc/testsuite/gcc.dg/Wvla-larger-than-2.c
index a3a0534..bafc024 100644
--- a/gcc/testsuite/gcc.dg/Wvla-larger-than-2.c
+++ b/gcc/testsuite/gcc.dg/Wvla-larger-than-2.c
@@ -1,6 +1,5 @@
/* { dg-do compile } */
/* { dg-require-effective-target stdint_types } */
-/* { dg-require-effective-target alloca } */
/* { dg-options "-O2 -Wvla-larger-than=40" } */
#include <stdint.h>
diff --git a/gcc/testsuite/gcc.dg/Wvla-larger-than-3.c b/gcc/testsuite/gcc.dg/Wvla-larger-than-3.c
index 70011f1..e6769be 100644
--- a/gcc/testsuite/gcc.dg/Wvla-larger-than-3.c
+++ b/gcc/testsuite/gcc.dg/Wvla-larger-than-3.c
@@ -1,7 +1,6 @@
/* Verify that VLA definitions with an unknown upper bound don't trigger
-Wvla-larger-than= warnings by default.
{ dg-do compile }
- { dg-require-effective-target alloca }
{ dg-options "-O2 -Wall" } */
void f (void *, ...);
diff --git a/gcc/testsuite/gcc.dg/Wvla-larger-than-4.c b/gcc/testsuite/gcc.dg/Wvla-larger-than-4.c
index 7d27829..3e1781c 100644
--- a/gcc/testsuite/gcc.dg/Wvla-larger-than-4.c
+++ b/gcc/testsuite/gcc.dg/Wvla-larger-than-4.c
@@ -1,8 +1,7 @@
/* PR middle-end/94004 - missing -Walloca on calls to alloca due
to -Wno-system-headers
{ dg-do compile }
- { dg-options "-O2 -Wall -Wvla-larger-than=31 -ftrack-macro-expansion=0" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wall -Wvla-larger-than=31 -ftrack-macro-expansion=0" } */
void sink (void*, ...);
@@ -17,14 +16,14 @@ static inline void inline_use_vla (unsigned n)
static inline void use_inlined_vla (unsigned n)
{
inline_use_vla (n); // this call is okay
- inline_use_vla (n + 1); // this one is not (line 20)
+ inline_use_vla (n + 1); // this one is not (line 19)
}
void call_inline (void)
{
- use_inlined_vla (31); // line 25
+ use_inlined_vla (31); // line 24
}
/* Verify that the inlining context is included and that it points
to the correct line number in the inlined function:
- { dg-message "function 'inline_use_vla'.*inlined from 'use_inlined_vla'.*:20:.*inlined from 'call_inline' .*:25:" "" { target *-*-* } 0 } */
+ { dg-message "function 'inline_use_vla'.*inlined from 'use_inlined_vla'.*:19:.*inlined from 'call_inline' .*:24:" "" { target *-*-* } 0 } */
diff --git a/gcc/testsuite/gcc.dg/Wvla-larger-than-5.c b/gcc/testsuite/gcc.dg/Wvla-larger-than-5.c
index ebd7fb3..c131f83 100644
--- a/gcc/testsuite/gcc.dg/Wvla-larger-than-5.c
+++ b/gcc/testsuite/gcc.dg/Wvla-larger-than-5.c
@@ -1,7 +1,6 @@
/* PR middle-end/100510 - bogus -Wvla-large-than with -Walloca
{ dg-do compile }
- { dg-options "-O0 -Walloca -Wvla-larger-than=1000" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O0 -Walloca -Wvla-larger-than=1000" } */
void f (void*);
diff --git a/gcc/testsuite/gcc.dg/analyzer/boxed-malloc-1.c b/gcc/testsuite/gcc.dg/analyzer/boxed-malloc-1.c
index 6b6bba3..9493062 100644
--- a/gcc/testsuite/gcc.dg/analyzer/boxed-malloc-1.c
+++ b/gcc/testsuite/gcc.dg/analyzer/boxed-malloc-1.c
@@ -1,7 +1,5 @@
/* Adapted from malloc-1.c, but wrapping the pointers in a struct. */
-/* { dg-require-effective-target alloca } */
-
#include <stdlib.h>
extern int foo (void);
diff --git a/gcc/testsuite/gcc.dg/analyzer/call-summaries-2.c b/gcc/testsuite/gcc.dg/analyzer/call-summaries-2.c
index 1bac24f..48c4815 100644
--- a/gcc/testsuite/gcc.dg/analyzer/call-summaries-2.c
+++ b/gcc/testsuite/gcc.dg/analyzer/call-summaries-2.c
@@ -1,5 +1,4 @@
/* { dg-additional-options "-fanalyzer-call-summaries --param analyzer-min-snodes-for-call-summary=0" } */
-/* { dg-require-effective-target alloca } */
/* There need to be at least two calls to a function for the
call-summarization code to be used.
diff --git a/gcc/testsuite/gcc.dg/analyzer/data-model-1.c b/gcc/testsuite/gcc.dg/analyzer/data-model-1.c
index 3c4a45f..e7a44d2 100644
--- a/gcc/testsuite/gcc.dg/analyzer/data-model-1.c
+++ b/gcc/testsuite/gcc.dg/analyzer/data-model-1.c
@@ -1,4 +1,3 @@
-/* { dg-require-effective-target alloca } */
/* { dg-additional-options "-fno-ipa-modref" } */
#include <stdlib.h>
@@ -722,7 +721,7 @@ void test_29c (int len)
__analyzer_eval (q->x == 107024); /* { dg-warning "TRUE" } */
__analyzer_eval (q->y == 107025); /* { dg-warning "TRUE" } */
- __analyzer_eval (p[10].x == 0); /* { dg-warning "use of uninitialized value '\\*p\\\[10\\\].x'" } */
+ __analyzer_eval (p[10].x == 0); /* { dg-warning "use of uninitialized value '\\*p\\\[10\\\].x'" "" { xfail { ! alloca } } } */
}
void test_30 (void *ptr)
diff --git a/gcc/testsuite/gcc.dg/analyzer/malloc-1.c b/gcc/testsuite/gcc.dg/analyzer/malloc-1.c
index 2a42a05..b0882e0 100644
--- a/gcc/testsuite/gcc.dg/analyzer/malloc-1.c
+++ b/gcc/testsuite/gcc.dg/analyzer/malloc-1.c
@@ -1,5 +1,3 @@
-/* { dg-require-effective-target alloca } */
-
#include <stdlib.h>
extern int foo (void);
diff --git a/gcc/testsuite/gcc.dg/analyzer/malloc-reuse.c b/gcc/testsuite/gcc.dg/analyzer/malloc-reuse.c
index 4575ff5..f0fafe5 100644
--- a/gcc/testsuite/gcc.dg/analyzer/malloc-reuse.c
+++ b/gcc/testsuite/gcc.dg/analyzer/malloc-reuse.c
@@ -1,5 +1,3 @@
-/* { dg-require-effective-target alloca } */
-
#include <stdlib.h>
#include "analyzer-decls.h"
diff --git a/gcc/testsuite/gcc.dg/analyzer/out-of-bounds-diagram-12.c b/gcc/testsuite/gcc.dg/analyzer/out-of-bounds-diagram-12.c
index 3573750..0d81d08 100644
--- a/gcc/testsuite/gcc.dg/analyzer/out-of-bounds-diagram-12.c
+++ b/gcc/testsuite/gcc.dg/analyzer/out-of-bounds-diagram-12.c
@@ -1,5 +1,4 @@
/* { dg-additional-options "-fdiagnostics-text-art-charset=unicode" } */
-/* { dg-require-effective-target alloca } */
#include <string.h>
#include <stdlib.h>
diff --git a/gcc/testsuite/gcc.dg/analyzer/pr93355-localealias.c b/gcc/testsuite/gcc.dg/analyzer/pr93355-localealias.c
index 4ccba46..c21de07 100644
--- a/gcc/testsuite/gcc.dg/analyzer/pr93355-localealias.c
+++ b/gcc/testsuite/gcc.dg/analyzer/pr93355-localealias.c
@@ -5,7 +5,6 @@
/* { dg-do "compile" } */
/* { dg-additional-options "-Wno-old-style-definition -Wno-analyzer-too-complex" } */
/* TODO: remove the need for this option. */
-/* { dg-require-effective-target alloca } */
/* Handle aliases for locale names.
Copyright (C) 1995-1999, 2000-2001, 2003 Free Software Foundation, Inc.
diff --git a/gcc/testsuite/gcc.dg/analyzer/putenv-1.c b/gcc/testsuite/gcc.dg/analyzer/putenv-1.c
index 2be52f0..43958ba 100644
--- a/gcc/testsuite/gcc.dg/analyzer/putenv-1.c
+++ b/gcc/testsuite/gcc.dg/analyzer/putenv-1.c
@@ -1,5 +1,4 @@
/* { dg-additional-options "-Wno-analyzer-null-argument" } */
-/* { dg-require-effective-target alloca } */
/* { dg-skip-if "has no putenv" { "avr-*-*" } } */
#include <stdio.h>
diff --git a/gcc/testsuite/gcc.dg/analyzer/taint-alloc-1.c b/gcc/testsuite/gcc.dg/analyzer/taint-alloc-1.c
index dfb585b..7374691 100644
--- a/gcc/testsuite/gcc.dg/analyzer/taint-alloc-1.c
+++ b/gcc/testsuite/gcc.dg/analyzer/taint-alloc-1.c
@@ -1,5 +1,3 @@
-/* { dg-require-effective-target alloca } */
-
#include "analyzer-decls.h"
#include <stdio.h>
#include <stdlib.h>
diff --git a/gcc/testsuite/gcc.dg/analyzer/torture/pr93373.c b/gcc/testsuite/gcc.dg/analyzer/torture/pr93373.c
index c205ee1..61ac1c6 100644
--- a/gcc/testsuite/gcc.dg/analyzer/torture/pr93373.c
+++ b/gcc/testsuite/gcc.dg/analyzer/torture/pr93373.c
@@ -1,3 +1,3 @@
-/* { dg-do compile }
- { dg-require-effective-target alloca } */
+/* { dg-do compile } */
+
#include "../../Warray-bounds-41.c"
diff --git a/gcc/testsuite/gcc.dg/analyzer/torture/ubsan-1.c b/gcc/testsuite/gcc.dg/analyzer/torture/ubsan-1.c
index 18a5f8d..2e1e6a0 100644
--- a/gcc/testsuite/gcc.dg/analyzer/torture/ubsan-1.c
+++ b/gcc/testsuite/gcc.dg/analyzer/torture/ubsan-1.c
@@ -1,6 +1,5 @@
/* { dg-skip-if "" { *-*-* } { "-fno-fat-lto-objects" } { "" } } */
/* { dg-additional-options "-fsanitize=bounds" } */
-/* { dg-require-effective-target alloca } */
#include <stdlib.h>
#include "../analyzer-decls.h"
diff --git a/gcc/testsuite/gcc.dg/analyzer/vla-1.c b/gcc/testsuite/gcc.dg/analyzer/vla-1.c
index 9561d74..905f0d7 100644
--- a/gcc/testsuite/gcc.dg/analyzer/vla-1.c
+++ b/gcc/testsuite/gcc.dg/analyzer/vla-1.c
@@ -1,4 +1,3 @@
-/* { dg-require-effective-target alloca } */
#include "analyzer-decls.h"
void test_1 (int n)
diff --git a/gcc/testsuite/gcc.dg/atomic/stdatomic-vm.c b/gcc/testsuite/gcc.dg/atomic/stdatomic-vm.c
index cdfb701..f43fa49 100644
--- a/gcc/testsuite/gcc.dg/atomic/stdatomic-vm.c
+++ b/gcc/testsuite/gcc.dg/atomic/stdatomic-vm.c
@@ -2,7 +2,6 @@
with side effects. */
/* { dg-do run } */
/* { dg-options "-std=c11 -pedantic-errors" } */
-/* { dg-require-effective-target alloca } */
#include <stdatomic.h>
diff --git a/gcc/testsuite/gcc.dg/attr-alloc_size-6.c b/gcc/testsuite/gcc.dg/attr-alloc_size-6.c
index e28057f..1c12c01 100644
--- a/gcc/testsuite/gcc.dg/attr-alloc_size-6.c
+++ b/gcc/testsuite/gcc.dg/attr-alloc_size-6.c
@@ -4,7 +4,6 @@
to allocate objects in excess of the number of bytes specified by
-Walloc-larger-than=maximum. */
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
/* { dg-options "-O0 -Wall -Walloc-size-larger-than=12345 -Wno-use-after-free" } */
#define MAXOBJSZ 12345
diff --git a/gcc/testsuite/gcc.dg/attr-alloc_size-7.c b/gcc/testsuite/gcc.dg/attr-alloc_size-7.c
index 6c26935..47bb0ae 100644
--- a/gcc/testsuite/gcc.dg/attr-alloc_size-7.c
+++ b/gcc/testsuite/gcc.dg/attr-alloc_size-7.c
@@ -3,7 +3,6 @@
detect and diagnose calls that attemnpt to allocate objects in excess
of the maximum specified by -Walloc-size-larger-than=maximum. */
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
/* { dg-options "-O1 -Wall -Walloc-size-larger-than=12345 -Wno-use-after-free" } */
#define SIZE_MAX __SIZE_MAX__
diff --git a/gcc/testsuite/gcc.dg/attr-alloc_size-8.c b/gcc/testsuite/gcc.dg/attr-alloc_size-8.c
index 7b47b04..488d2d8 100644
--- a/gcc/testsuite/gcc.dg/attr-alloc_size-8.c
+++ b/gcc/testsuite/gcc.dg/attr-alloc_size-8.c
@@ -3,7 +3,6 @@
-Wvla-larger-than, and -Walloc-size-larger-than options. The former
two more specific options override the more general latter option. */
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
/* { dg-options "-O -Walloc-size-larger-than=123 -Walloca-larger-than=234 -Wvla-larger-than=345" } */
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/gcc.dg/attr-alloc_size-9.c b/gcc/testsuite/gcc.dg/attr-alloc_size-9.c
index 0c50b0a..0e75bb2 100644
--- a/gcc/testsuite/gcc.dg/attr-alloc_size-9.c
+++ b/gcc/testsuite/gcc.dg/attr-alloc_size-9.c
@@ -3,7 +3,6 @@
with attribute malloc. This means that the pointer they return
can be assumed not to alias any other valid pointer. */
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
void sink (void*);
diff --git a/gcc/testsuite/gcc.dg/attr-noipa.c b/gcc/testsuite/gcc.dg/attr-noipa.c
index b2485bb..9e5fbf3 100644
--- a/gcc/testsuite/gcc.dg/attr-noipa.c
+++ b/gcc/testsuite/gcc.dg/attr-noipa.c
@@ -1,7 +1,6 @@
/* Test the noipa attribute. */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
-/* { dg-require-effective-target alloca } */
static inline int __attribute__((noipa))
fn1 (void) /* { dg-warning "inline function \[^\n\]* given attribute 'noinline'" "" } */
diff --git a/gcc/testsuite/gcc.dg/auto-init-uninit-36.c b/gcc/testsuite/gcc.dg/auto-init-uninit-36.c
index 64377d3..693e543 100644
--- a/gcc/testsuite/gcc.dg/auto-init-uninit-36.c
+++ b/gcc/testsuite/gcc.dg/auto-init-uninit-36.c
@@ -3,8 +3,7 @@
Verify that passing pointers to uninitialized objects to const
arguments to built-ins is diagnosed where expected.
{ dg-do compile }
- { dg-options "-O -Wall -ftrivial-auto-var-init=zero" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O -Wall -ftrivial-auto-var-init=zero" } */
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/gcc.dg/auto-init-uninit-9.c b/gcc/testsuite/gcc.dg/auto-init-uninit-9.c
index 6dccf01..2597b9b 100644
--- a/gcc/testsuite/gcc.dg/auto-init-uninit-9.c
+++ b/gcc/testsuite/gcc.dg/auto-init-uninit-9.c
@@ -3,6 +3,5 @@
/* { dg-do compile } */
/* { dg-options "-O -Wuninitialized -ftrivial-auto-var-init=zero" } */
-/* { dg-require-effective-target alloca } */
#include "uninit-9.c"
diff --git a/gcc/testsuite/gcc.dg/auto-type-1.c b/gcc/testsuite/gcc.dg/auto-type-1.c
index 882bf2c..f47693a 100644
--- a/gcc/testsuite/gcc.dg/auto-type-1.c
+++ b/gcc/testsuite/gcc.dg/auto-type-1.c
@@ -1,7 +1,6 @@
/* Test __auto_type. Test correct uses. */
/* { dg-do run } */
/* { dg-options "" } */
-/* { dg-require-effective-target alloca } */
extern void abort (void);
extern void exit (int);
diff --git a/gcc/testsuite/gcc.dg/builtin-alloc-size.c b/gcc/testsuite/gcc.dg/builtin-alloc-size.c
index 400fd9b..bc1bd5bf4 100644
--- a/gcc/testsuite/gcc.dg/builtin-alloc-size.c
+++ b/gcc/testsuite/gcc.dg/builtin-alloc-size.c
@@ -3,7 +3,6 @@
attribute alloc_size that __builtin_object_size can make use of (or
are treated as if they were for that purpose)..
{ dg-do compile }
- { dg-require-effective-target alloca }
{ dg-additional-options "-O2 -fdump-tree-optimized" } */
void sink (void*);
diff --git a/gcc/testsuite/gcc.dg/builtin-dynamic-alloc-size.c b/gcc/testsuite/gcc.dg/builtin-dynamic-alloc-size.c
index 9d0eadd..1b9bef8 100644
--- a/gcc/testsuite/gcc.dg/builtin-dynamic-alloc-size.c
+++ b/gcc/testsuite/gcc.dg/builtin-dynamic-alloc-size.c
@@ -1,5 +1,4 @@
/* { dg-do compile }
- { dg-require-effective-target alloca }
{ dg-additional-options "-O2 -fdump-tree-optimized" } */
#define __builtin_object_size __builtin_dynamic_object_size
diff --git a/gcc/testsuite/gcc.dg/builtin-dynamic-object-size-1.c b/gcc/testsuite/gcc.dg/builtin-dynamic-object-size-1.c
index 76b4f70..abac7ec 100644
--- a/gcc/testsuite/gcc.dg/builtin-dynamic-object-size-1.c
+++ b/gcc/testsuite/gcc.dg/builtin-dynamic-object-size-1.c
@@ -1,6 +1,5 @@
/* { dg-do run } */
/* { dg-options "-O2 -Wno-stringop-overread" } */
-/* { dg-require-effective-target alloca } */
/* { dg-additional-options "-DSKIP_STRNDUP" { target { ! strndup } } } */
#define __builtin_object_size __builtin_dynamic_object_size
diff --git a/gcc/testsuite/gcc.dg/builtin-dynamic-object-size-2.c b/gcc/testsuite/gcc.dg/builtin-dynamic-object-size-2.c
index cb757a8..3a14ecc 100644
--- a/gcc/testsuite/gcc.dg/builtin-dynamic-object-size-2.c
+++ b/gcc/testsuite/gcc.dg/builtin-dynamic-object-size-2.c
@@ -1,6 +1,5 @@
/* { dg-do run } */
/* { dg-options "-O2 -Wno-stringop-overread" } */
-/* { dg-require-effective-target alloca } */
/* { dg-additional-options "-DSKIP_STRNDUP" { target { ! strndup } } } */
#define __builtin_object_size __builtin_dynamic_object_size
diff --git a/gcc/testsuite/gcc.dg/builtin-dynamic-object-size-3.c b/gcc/testsuite/gcc.dg/builtin-dynamic-object-size-3.c
index 8a12f02..75737ac 100644
--- a/gcc/testsuite/gcc.dg/builtin-dynamic-object-size-3.c
+++ b/gcc/testsuite/gcc.dg/builtin-dynamic-object-size-3.c
@@ -1,6 +1,5 @@
/* { dg-do run } */
/* { dg-options "-O2 -Wno-stringop-overread" } */
-/* { dg-require-effective-target alloca } */
/* { dg-additional-options "-DSKIP_STRNDUP" { target { ! strndup } } } */
#define __builtin_object_size __builtin_dynamic_object_size
diff --git a/gcc/testsuite/gcc.dg/builtin-dynamic-object-size-4.c b/gcc/testsuite/gcc.dg/builtin-dynamic-object-size-4.c
index 0efc2d9..4a909b2 100644
--- a/gcc/testsuite/gcc.dg/builtin-dynamic-object-size-4.c
+++ b/gcc/testsuite/gcc.dg/builtin-dynamic-object-size-4.c
@@ -1,6 +1,5 @@
/* { dg-do run } */
/* { dg-options "-O2 -Wno-stringop-overread" } */
-/* { dg-require-effective-target alloca } */
/* { dg-additional-options "-DSKIP_STRNDUP" { target { ! strndup } } } */
#define __builtin_object_size __builtin_dynamic_object_size
diff --git a/gcc/testsuite/gcc.dg/builtin-object-size-1.c b/gcc/testsuite/gcc.dg/builtin-object-size-1.c
index 6161adb..ad1411c 100644
--- a/gcc/testsuite/gcc.dg/builtin-object-size-1.c
+++ b/gcc/testsuite/gcc.dg/builtin-object-size-1.c
@@ -1,6 +1,5 @@
/* { dg-do run } */
/* { dg-options "-O2 -Wno-stringop-overread" } */
-/* { dg-require-effective-target alloca } */
/* { dg-additional-options "-DSKIP_STRNDUP" { target { ! strndup } } } */
#include "builtin-object-size-common.h"
diff --git a/gcc/testsuite/gcc.dg/builtin-object-size-2.c b/gcc/testsuite/gcc.dg/builtin-object-size-2.c
index c28d72e..447e2ac 100644
--- a/gcc/testsuite/gcc.dg/builtin-object-size-2.c
+++ b/gcc/testsuite/gcc.dg/builtin-object-size-2.c
@@ -1,6 +1,5 @@
/* { dg-do run } */
/* { dg-options "-O2 -Wno-stringop-overread" } */
-/* { dg-require-effective-target alloca } */
/* { dg-additional-options "-DSKIP_STRNDUP" { target { ! strndup } } } */
#include "builtin-object-size-common.h"
diff --git a/gcc/testsuite/gcc.dg/builtin-object-size-3.c b/gcc/testsuite/gcc.dg/builtin-object-size-3.c
index e0c967e..c315360 100644
--- a/gcc/testsuite/gcc.dg/builtin-object-size-3.c
+++ b/gcc/testsuite/gcc.dg/builtin-object-size-3.c
@@ -1,6 +1,5 @@
/* { dg-do run } */
/* { dg-options "-O2 -Wno-stringop-overread" } */
-/* { dg-require-effective-target alloca } */
/* { dg-additional-options "-DSKIP_STRNDUP" { target { ! strndup } } } */
#include "builtin-object-size-common.h"
diff --git a/gcc/testsuite/gcc.dg/builtin-object-size-4.c b/gcc/testsuite/gcc.dg/builtin-object-size-4.c
index 7bcd24c..ec7cde9 100644
--- a/gcc/testsuite/gcc.dg/builtin-object-size-4.c
+++ b/gcc/testsuite/gcc.dg/builtin-object-size-4.c
@@ -1,6 +1,5 @@
/* { dg-do run } */
/* { dg-options "-O2 -Wno-stringop-overread" } */
-/* { dg-require-effective-target alloca } */
/* { dg-additional-options "-DSKIP_STRNDUP" { target { ! strndup } } } */
#include "builtin-object-size-common.h"
diff --git a/gcc/testsuite/gcc.dg/builtins-64.c b/gcc/testsuite/gcc.dg/builtins-64.c
index 3c04c44..6e84633 100644
--- a/gcc/testsuite/gcc.dg/builtins-64.c
+++ b/gcc/testsuite/gcc.dg/builtins-64.c
@@ -1,5 +1,4 @@
/* { dg-do run } */
-/* { dg-require-effective-target alloca } */
int main ()
{
diff --git a/gcc/testsuite/gcc.dg/builtins-68.c b/gcc/testsuite/gcc.dg/builtins-68.c
index 1247394..0835d80 100644
--- a/gcc/testsuite/gcc.dg/builtins-68.c
+++ b/gcc/testsuite/gcc.dg/builtins-68.c
@@ -1,7 +1,6 @@
/* PR middle-end/69780 - [4.9/5/6 Regression] ICE on
__builtin_alloca_with_align with small alignment */
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
/* { dg-options "-Wno-long-long" } */
#define CHAR_BIT __CHAR_BIT__
diff --git a/gcc/testsuite/gcc.dg/c23-auto-2.c b/gcc/testsuite/gcc.dg/c23-auto-2.c
index 4318e99..1dc4feb 100644
--- a/gcc/testsuite/gcc.dg/c23-auto-2.c
+++ b/gcc/testsuite/gcc.dg/c23-auto-2.c
@@ -1,7 +1,6 @@
/* Test C23 auto. Valid code, execution tests. Based on auto-type-1.c. */
/* { dg-do run } */
/* { dg-options "-std=c23 -pedantic-errors" } */
-/* { dg-require-effective-target alloca } */
extern void abort (void);
extern void exit (int);
diff --git a/gcc/testsuite/gcc.dg/c99-const-expr-13.c b/gcc/testsuite/gcc.dg/c99-const-expr-13.c
index e477e5d..0ee525b 100644
--- a/gcc/testsuite/gcc.dg/c99-const-expr-13.c
+++ b/gcc/testsuite/gcc.dg/c99-const-expr-13.c
@@ -3,7 +3,6 @@
/* Origin: Joseph Myers <joseph@codesourcery.com> */
/* { dg-do compile } */
/* { dg-options "-std=iso9899:1999 -pedantic-errors -frounding-math" } */
-/* { dg-require-effective-target alloca } */
void
f (void)
diff --git a/gcc/testsuite/gcc.dg/c99-vla-1.c b/gcc/testsuite/gcc.dg/c99-vla-1.c
index 4501852..4a3a0f8 100644
--- a/gcc/testsuite/gcc.dg/c99-vla-1.c
+++ b/gcc/testsuite/gcc.dg/c99-vla-1.c
@@ -1,7 +1,6 @@
/* Origin: PR 3467 */
/* { dg-do compile } */
/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
-/* { dg-require-effective-target alloca } */
void
tdef (int n)
diff --git a/gcc/testsuite/gcc.dg/compat/struct-by-value-22_main.c b/gcc/testsuite/gcc.dg/compat/struct-by-value-22_main.c
index 4a38512..4bd2ee1 100644
--- a/gcc/testsuite/gcc.dg/compat/struct-by-value-22_main.c
+++ b/gcc/testsuite/gcc.dg/compat/struct-by-value-22_main.c
@@ -1,4 +1,5 @@
-/* { dg-require-effective-target alloca } */
+/* { dg-require-effective-target alloca }
+ See 'struct-by-value-22_y.c'. */
/* { dg-skip-if "limited code space" { pdp11-*-* } } */
/* Test variable sized function argument passing.
diff --git a/gcc/testsuite/gcc.dg/fold-alloca-1.c b/gcc/testsuite/gcc.dg/fold-alloca-1.c
index 733aeec..9cace17 100644
--- a/gcc/testsuite/gcc.dg/fold-alloca-1.c
+++ b/gcc/testsuite/gcc.dg/fold-alloca-1.c
@@ -1,6 +1,5 @@
/* { dg-do compile } */
/* { dg-options "-fdump-tree-cfg" } */
-/* { dg-require-effective-target alloca } */
void *alloca (__SIZE_TYPE__);
void link_error ();
diff --git a/gcc/testsuite/gcc.dg/gomp/pr30494.c b/gcc/testsuite/gcc.dg/gomp/pr30494.c
index fa6d7ff..6a042ce 100644
--- a/gcc/testsuite/gcc.dg/gomp/pr30494.c
+++ b/gcc/testsuite/gcc.dg/gomp/pr30494.c
@@ -1,6 +1,5 @@
/* PR middle-end/30494 */
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
int
foo (int n)
diff --git a/gcc/testsuite/gcc.dg/gomp/vla-2.c b/gcc/testsuite/gcc.dg/gomp/vla-2.c
index ea7c652..fc18ffc 100644
--- a/gcc/testsuite/gcc.dg/gomp/vla-2.c
+++ b/gcc/testsuite/gcc.dg/gomp/vla-2.c
@@ -1,5 +1,4 @@
// { dg-do compile }
-/* { dg-require-effective-target alloca } */
void foo(int n, int i)
{
diff --git a/gcc/testsuite/gcc.dg/gomp/vla-3.c b/gcc/testsuite/gcc.dg/gomp/vla-3.c
index 5070907..b1677b8 100644
--- a/gcc/testsuite/gcc.dg/gomp/vla-3.c
+++ b/gcc/testsuite/gcc.dg/gomp/vla-3.c
@@ -1,5 +1,4 @@
// { dg-do compile }
-/* { dg-require-effective-target alloca } */
void foo(int n, int i)
{
diff --git a/gcc/testsuite/gcc.dg/gomp/vla-4.c b/gcc/testsuite/gcc.dg/gomp/vla-4.c
index e784c74..2c3c0aa 100644
--- a/gcc/testsuite/gcc.dg/gomp/vla-4.c
+++ b/gcc/testsuite/gcc.dg/gomp/vla-4.c
@@ -1,5 +1,4 @@
// { dg-do compile }
-/* { dg-require-effective-target alloca } */
void foo(int n, int i)
{
diff --git a/gcc/testsuite/gcc.dg/gomp/vla-5.c b/gcc/testsuite/gcc.dg/gomp/vla-5.c
index 20be204..6c6d551 100644
--- a/gcc/testsuite/gcc.dg/gomp/vla-5.c
+++ b/gcc/testsuite/gcc.dg/gomp/vla-5.c
@@ -1,5 +1,4 @@
// { dg-do compile }
-/* { dg-require-effective-target alloca } */
void foo(int n, int i)
{
diff --git a/gcc/testsuite/gcc.dg/graphite/pr99085.c b/gcc/testsuite/gcc.dg/graphite/pr99085.c
index dd06886..dc1c935 100644
--- a/gcc/testsuite/gcc.dg/graphite/pr99085.c
+++ b/gcc/testsuite/gcc.dg/graphite/pr99085.c
@@ -1,7 +1,6 @@
/* PR target/99085 */
/* { dg-do compile } */
/* { dg-options "-O2 -fgraphite-identity -fsel-sched-pipelining -fselective-scheduling2" } */
-/* { dg-require-effective-target alloca } */
void
foo (int m, int n, int o, int i)
diff --git a/gcc/testsuite/gcc.dg/guality/guality.c b/gcc/testsuite/gcc.dg/guality/guality.c
index a4de564..f565624 100644
--- a/gcc/testsuite/gcc.dg/guality/guality.c
+++ b/gcc/testsuite/gcc.dg/guality/guality.c
@@ -1,6 +1,5 @@
/* { dg-do run { xfail { ! aarch64*-*-* } } } */
/* { dg-options "-g" } */
-/* { dg-require-effective-target alloca } */
#include "guality.h"
diff --git a/gcc/testsuite/gcc.dg/lto/pr80778_0.c b/gcc/testsuite/gcc.dg/lto/pr80778_0.c
index f936ed1..3dd6c72 100644
--- a/gcc/testsuite/gcc.dg/lto/pr80778_0.c
+++ b/gcc/testsuite/gcc.dg/lto/pr80778_0.c
@@ -1,5 +1,4 @@
/* PR c/80778 */
/* { dg-lto-do link } */
-/* { dg-require-effective-target alloca } */
#include "../auto-type-1.c"
diff --git a/gcc/testsuite/gcc.dg/nested-func-10.c b/gcc/testsuite/gcc.dg/nested-func-10.c
index e017fba..ac6f76f 100644
--- a/gcc/testsuite/gcc.dg/nested-func-10.c
+++ b/gcc/testsuite/gcc.dg/nested-func-10.c
@@ -1,7 +1,6 @@
/* PR c/70093 */
/* { dg-do compile } */
/* { dg-options "" } */
-/* { dg-require-effective-target alloca } */
void __attribute__((noinline, noclone))
foo (int n)
diff --git a/gcc/testsuite/gcc.dg/nested-func-12.c b/gcc/testsuite/gcc.dg/nested-func-12.c
index d617d7e..abeabe7 100644
--- a/gcc/testsuite/gcc.dg/nested-func-12.c
+++ b/gcc/testsuite/gcc.dg/nested-func-12.c
@@ -1,7 +1,6 @@
/* PR target/88620 */
/* { dg-do run } */
/* { dg-options "-Ofast --param ipa-cp-eval-threshold=0 -fno-guess-branch-probability -fno-inline-small-functions" } */
-/* { dg-require-effective-target alloca } */
void
foo (int n)
diff --git a/gcc/testsuite/gcc.dg/nested-func-13.c b/gcc/testsuite/gcc.dg/nested-func-13.c
index 697a623..b596bf6 100644
--- a/gcc/testsuite/gcc.dg/nested-func-13.c
+++ b/gcc/testsuite/gcc.dg/nested-func-13.c
@@ -1,6 +1,5 @@
/* Test nested-func-12.c with -std=gnu17. */
/* { dg-do run } */
/* { dg-options "-Ofast --param ipa-cp-eval-threshold=0 -fno-guess-branch-probability -fno-inline-small-functions -std=gnu17" } */
-/* { dg-require-effective-target alloca } */
#include "nested-func-12.c"
diff --git a/gcc/testsuite/gcc.dg/nested-func-14.c b/gcc/testsuite/gcc.dg/nested-func-14.c
index 05a77bd..ebf6706 100644
--- a/gcc/testsuite/gcc.dg/nested-func-14.c
+++ b/gcc/testsuite/gcc.dg/nested-func-14.c
@@ -1,6 +1,5 @@
/* Test nested-func-12.c with -std=gnu23. */
/* { dg-do run } */
/* { dg-options "-Ofast --param ipa-cp-eval-threshold=0 -fno-guess-branch-probability -fno-inline-small-functions -std=gnu23" } */
-/* { dg-require-effective-target alloca } */
#include "nested-func-12.c"
diff --git a/gcc/testsuite/gcc.dg/nested-func-15.c b/gcc/testsuite/gcc.dg/nested-func-15.c
index 490d695..231423b 100644
--- a/gcc/testsuite/gcc.dg/nested-func-15.c
+++ b/gcc/testsuite/gcc.dg/nested-func-15.c
@@ -2,7 +2,6 @@
to non-inlined nested function returning variable-size struct. */
/* { dg-do run } */
/* { dg-options "-O3 --param ipa-cp-eval-threshold=0 -fno-guess-branch-probability -fno-inline-small-functions -std=gnu23" } */
-/* { dg-require-effective-target alloca } */
void
foo (int n)
diff --git a/gcc/testsuite/gcc.dg/nested-func-16.c b/gcc/testsuite/gcc.dg/nested-func-16.c
index 0614857..4399406 100644
--- a/gcc/testsuite/gcc.dg/nested-func-16.c
+++ b/gcc/testsuite/gcc.dg/nested-func-16.c
@@ -2,7 +2,6 @@
to non-inlined nested function returning variable-size struct. */
/* { dg-do run } */
/* { dg-options "-O3 -fno-guess-branch-probability -std=gnu23" } */
-/* { dg-require-effective-target alloca } */
void
foo (int n)
diff --git a/gcc/testsuite/gcc.dg/nested-func-17.c b/gcc/testsuite/gcc.dg/nested-func-17.c
index 3441d79..6fa247a 100644
--- a/gcc/testsuite/gcc.dg/nested-func-17.c
+++ b/gcc/testsuite/gcc.dg/nested-func-17.c
@@ -2,6 +2,5 @@
to non-inlined nested function returning variable-size struct. */
/* { dg-do run } */
/* { dg-options "-O3 --param ipa-cp-eval-threshold=0 -fno-guess-branch-probability -std=gnu23" } */
-/* { dg-require-effective-target alloca } */
#include "nested-func-16.c"
diff --git a/gcc/testsuite/gcc.dg/nested-func-9.c b/gcc/testsuite/gcc.dg/nested-func-9.c
index 633ab69..902c258 100644
--- a/gcc/testsuite/gcc.dg/nested-func-9.c
+++ b/gcc/testsuite/gcc.dg/nested-func-9.c
@@ -1,7 +1,6 @@
/* PR c/70093 */
/* { dg-do run } */
/* { dg-options "" } */
-/* { dg-require-effective-target alloca } */
void
foo (int n)
diff --git a/gcc/testsuite/gcc.dg/packed-vla.c b/gcc/testsuite/gcc.dg/packed-vla.c
index e673b72..04ccb96 100644
--- a/gcc/testsuite/gcc.dg/packed-vla.c
+++ b/gcc/testsuite/gcc.dg/packed-vla.c
@@ -1,7 +1,6 @@
/* PR middle-end/27945 */
/* { dg-do run } */
/* { dg-options "" } */
-/* { dg-require-effective-target alloca } */
extern int printf (const char *, ...);
extern void abort ();
diff --git a/gcc/testsuite/gcc.dg/pr100225.c b/gcc/testsuite/gcc.dg/pr100225.c
index f0efd29..b321634 100644
--- a/gcc/testsuite/gcc.dg/pr100225.c
+++ b/gcc/testsuite/gcc.dg/pr100225.c
@@ -1,7 +1,6 @@
/* PR rtl-optimization/100225 */
/* { dg-do compile } */
/* { dg-options "-O1 -fmodulo-sched" } */
-/* { dg-require-effective-target alloca } */
void
vorbis_synthesis_lapout (void);
diff --git a/gcc/testsuite/gcc.dg/pr25682.c b/gcc/testsuite/gcc.dg/pr25682.c
index ecf5669..e8cab1d 100644
--- a/gcc/testsuite/gcc.dg/pr25682.c
+++ b/gcc/testsuite/gcc.dg/pr25682.c
@@ -1,7 +1,6 @@
/* PR c/25682 */
/* { dg-do compile } */
/* { dg-options "-ansi" } */
-/* { dg-require-effective-target alloca } */
/* Test whether we don't ICE on questionable constructs where offsetof
should have been used instead. */
diff --git a/gcc/testsuite/gcc.dg/pr27301.c b/gcc/testsuite/gcc.dg/pr27301.c
index cc55c74..3b5a8f5 100644
--- a/gcc/testsuite/gcc.dg/pr27301.c
+++ b/gcc/testsuite/gcc.dg/pr27301.c
@@ -1,7 +1,6 @@
/* PR c/27301 */
/* { dg-do compile } */
/* { dg-options "-O2 -std=gnu89" } */
-/* { dg-require-effective-target alloca } */
void
foo (void *ptr, long n)
diff --git a/gcc/testsuite/gcc.dg/pr31507-1.c b/gcc/testsuite/gcc.dg/pr31507-1.c
index f6a7e74..dbba1e1 100644
--- a/gcc/testsuite/gcc.dg/pr31507-1.c
+++ b/gcc/testsuite/gcc.dg/pr31507-1.c
@@ -1,7 +1,6 @@
/* PR target/31507 */
/* { dg-do run } */
/* { dg-options "-Os -fno-omit-frame-pointer" } */
-/* { dg-require-effective-target alloca } */
extern void abort (void);
diff --git a/gcc/testsuite/gcc.dg/pr33238.c b/gcc/testsuite/gcc.dg/pr33238.c
index 993384a..0b39904 100644
--- a/gcc/testsuite/gcc.dg/pr33238.c
+++ b/gcc/testsuite/gcc.dg/pr33238.c
@@ -1,7 +1,6 @@
/* PR c/33238 */
/* { dg-do compile } */
/* { dg-options "-std=gnu89" } */
-/* { dg-require-effective-target alloca } */
void
reverse (void *x, int y, int z)
diff --git a/gcc/testsuite/gcc.dg/pr41470.c b/gcc/testsuite/gcc.dg/pr41470.c
index 7374fac..b34919e 100644
--- a/gcc/testsuite/gcc.dg/pr41470.c
+++ b/gcc/testsuite/gcc.dg/pr41470.c
@@ -1,6 +1,5 @@
/* { dg-do compile } */
/* { dg-options "-fexceptions" } */
-/* { dg-require-effective-target alloca } */
/* { dg-require-effective-target exceptions } */
void cf (void *);
diff --git a/gcc/testsuite/gcc.dg/pr49120.c b/gcc/testsuite/gcc.dg/pr49120.c
index 50993e6..1a65222 100644
--- a/gcc/testsuite/gcc.dg/pr49120.c
+++ b/gcc/testsuite/gcc.dg/pr49120.c
@@ -1,7 +1,6 @@
/* PR c/49120 */
/* { dg-do compile } */
/* { dg-options "-Wall" } */
-/* { dg-require-effective-target alloca } */
int
main ()
diff --git a/gcc/testsuite/gcc.dg/pr50764.c b/gcc/testsuite/gcc.dg/pr50764.c
index e0cd320..e3b8da8 100644
--- a/gcc/testsuite/gcc.dg/pr50764.c
+++ b/gcc/testsuite/gcc.dg/pr50764.c
@@ -1,6 +1,5 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fsched2-use-superblocks -ftree-tail-merge" } */
-/* { dg-require-effective-target alloca } */
typedef int aligned __attribute__ ((aligned (64)));
extern void abort (void);
diff --git a/gcc/testsuite/gcc.dg/pr51491-2.c b/gcc/testsuite/gcc.dg/pr51491-2.c
index 429ee4e..f2dc8df 100644
--- a/gcc/testsuite/gcc.dg/pr51491-2.c
+++ b/gcc/testsuite/gcc.dg/pr51491-2.c
@@ -1,6 +1,5 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-ccp1" } */
-/* { dg-require-effective-target alloca } */
int g (int *);
diff --git a/gcc/testsuite/gcc.dg/pr51990-2.c b/gcc/testsuite/gcc.dg/pr51990-2.c
index 702bab9..1ced0a8 100644
--- a/gcc/testsuite/gcc.dg/pr51990-2.c
+++ b/gcc/testsuite/gcc.dg/pr51990-2.c
@@ -1,6 +1,5 @@
/* { dg-do compile } */
/* { dg-options "-O2" } */
-/* { dg-require-effective-target alloca } */
int y;
extern int foo (int, ...) __attribute__((pure));
diff --git a/gcc/testsuite/gcc.dg/pr51990.c b/gcc/testsuite/gcc.dg/pr51990.c
index 4f7e0e4..c7d1b53 100644
--- a/gcc/testsuite/gcc.dg/pr51990.c
+++ b/gcc/testsuite/gcc.dg/pr51990.c
@@ -1,6 +1,5 @@
/* { dg-do compile } */
/* { dg-options "-O2" } */
-/* { dg-require-effective-target alloca } */
int
zzz (char *s1, char *s2, int len, int *q)
diff --git a/gcc/testsuite/gcc.dg/pr59011.c b/gcc/testsuite/gcc.dg/pr59011.c
index b0d6c0f..2fb8187 100644
--- a/gcc/testsuite/gcc.dg/pr59011.c
+++ b/gcc/testsuite/gcc.dg/pr59011.c
@@ -1,7 +1,6 @@
/* PR middle-end/59011 */
/* { dg-do compile } */
/* { dg-options "-std=gnu99" } */
-/* { dg-require-effective-target alloca } */
void
foo (int m)
diff --git a/gcc/testsuite/gcc.dg/pr59523.c b/gcc/testsuite/gcc.dg/pr59523.c
index 49cbe5d..013ae53 100644
--- a/gcc/testsuite/gcc.dg/pr59523.c
+++ b/gcc/testsuite/gcc.dg/pr59523.c
@@ -2,7 +2,6 @@
/* { dg-do compile } */
/* { dg-options "-O3" } */
/* { dg-additional-options "-mavx2" { target { i?86-*-* x86_64-*-* } } } */
-/* { dg-require-effective-target alloca } */
int *
foo (int a, int *b, int *c, int *d)
diff --git a/gcc/testsuite/gcc.dg/pr61561.c b/gcc/testsuite/gcc.dg/pr61561.c
index 47d0ff0..1512f20 100644
--- a/gcc/testsuite/gcc.dg/pr61561.c
+++ b/gcc/testsuite/gcc.dg/pr61561.c
@@ -1,7 +1,6 @@
/* PR c/61561. */
/* { dg-do assemble } */
/* { dg-options " -w -O2" } */
-/* { dg-require-effective-target alloca } */
int dummy (int a);
diff --git a/gcc/testsuite/gcc.dg/pr78468.c b/gcc/testsuite/gcc.dg/pr78468.c
index a882d9a..5412ce9 100644
--- a/gcc/testsuite/gcc.dg/pr78468.c
+++ b/gcc/testsuite/gcc.dg/pr78468.c
@@ -1,5 +1,4 @@
/* { dg-do run } */
-/* { dg-require-effective-target alloca } */
/* { dg-options "-O2 -fno-inline" } */
/* Test that targets correctly round the size of the outgoing arguments
diff --git a/gcc/testsuite/gcc.dg/pr78902.c b/gcc/testsuite/gcc.dg/pr78902.c
index a9a617c..df567e0 100644
--- a/gcc/testsuite/gcc.dg/pr78902.c
+++ b/gcc/testsuite/gcc.dg/pr78902.c
@@ -1,5 +1,4 @@
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
void *ptr;
diff --git a/gcc/testsuite/gcc.dg/pr79972.c b/gcc/testsuite/gcc.dg/pr79972.c
index 4d3064f..9d75463 100644
--- a/gcc/testsuite/gcc.dg/pr79972.c
+++ b/gcc/testsuite/gcc.dg/pr79972.c
@@ -1,6 +1,5 @@
/* PR tree-optimization/79972 */
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
/* { dg-options "-Walloca -Wvla-larger-than=10000" } */
int
diff --git a/gcc/testsuite/gcc.dg/pr82875.c b/gcc/testsuite/gcc.dg/pr82875.c
index 52f1de7..5b97b80 100644
--- a/gcc/testsuite/gcc.dg/pr82875.c
+++ b/gcc/testsuite/gcc.dg/pr82875.c
@@ -1,7 +1,6 @@
/* PR middle-end/82875 */
/* { dg-do compile } */
/* { dg-options "-ftree-ter" } */
-/* { dg-require-effective-target alloca } */
const int a = 100;
diff --git a/gcc/testsuite/gcc.dg/pr83844.c b/gcc/testsuite/gcc.dg/pr83844.c
index 0d26b55..fdbc191 100644
--- a/gcc/testsuite/gcc.dg/pr83844.c
+++ b/gcc/testsuite/gcc.dg/pr83844.c
@@ -1,7 +1,6 @@
/* PR c/83844 */
/* { dg-do compile { target int32plus } } */
/* { dg-options "-O0 -Wall" } */
-/* { dg-require-effective-target alloca } */
typedef unsigned long long __u64 __attribute__((aligned(4),warn_if_not_aligned(8)));
void bar (void *, void *, void *);
diff --git a/gcc/testsuite/gcc.dg/pr84131.c b/gcc/testsuite/gcc.dg/pr84131.c
index ced2e5d..0ba9651 100644
--- a/gcc/testsuite/gcc.dg/pr84131.c
+++ b/gcc/testsuite/gcc.dg/pr84131.c
@@ -1,8 +1,7 @@
/* PR 94131 - ICE on printf with a VLA string and -fno-tree-ccp
-fno-tree-forwprop
{ dg-do compile }
- { dg-options "-O1 -fno-tree-ccp -fno-tree-forwprop" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O1 -fno-tree-ccp -fno-tree-forwprop" } */
void rv1 (int n)
{
diff --git a/gcc/testsuite/gcc.dg/pr87099.c b/gcc/testsuite/gcc.dg/pr87099.c
index 47e2315..599d721 100644
--- a/gcc/testsuite/gcc.dg/pr87099.c
+++ b/gcc/testsuite/gcc.dg/pr87099.c
@@ -1,6 +1,5 @@
/* PR middle-end/87099 */
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
/* { dg-options "-Wstringop-overflow" } */
void bar (char *);
diff --git a/gcc/testsuite/gcc.dg/pr87320.c b/gcc/testsuite/gcc.dg/pr87320.c
index b92ba89..38ece59 100644
--- a/gcc/testsuite/gcc.dg/pr87320.c
+++ b/gcc/testsuite/gcc.dg/pr87320.c
@@ -1,6 +1,5 @@
/* PR tree-optimization/87320 */
/* { dg-do run } */
-/* { dg-require-effective-target alloca } */
/* { dg-options "-O3" } */
/* { dg-additional-options "-mavx" { target avx_runtime } } */
diff --git a/gcc/testsuite/gcc.dg/pr89045.c b/gcc/testsuite/gcc.dg/pr89045.c
index 2b5730d..d8ba65b 100644
--- a/gcc/testsuite/gcc.dg/pr89045.c
+++ b/gcc/testsuite/gcc.dg/pr89045.c
@@ -1,6 +1,5 @@
/* PR c/89045 */
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
/* { dg-options "" } */
int
diff --git a/gcc/testsuite/gcc.dg/pr91014.c b/gcc/testsuite/gcc.dg/pr91014.c
index eb37b33..19bc17b 100644
--- a/gcc/testsuite/gcc.dg/pr91014.c
+++ b/gcc/testsuite/gcc.dg/pr91014.c
@@ -1,6 +1,5 @@
/* { dg-do compile } */
/* { dg-options "-O" } */
-/* { dg-require-effective-target alloca } */
void foo(void)
{
diff --git a/gcc/testsuite/gcc.dg/pr93986.c b/gcc/testsuite/gcc.dg/pr93986.c
index 0d533f4..bdbc192 100644
--- a/gcc/testsuite/gcc.dg/pr93986.c
+++ b/gcc/testsuite/gcc.dg/pr93986.c
@@ -1,7 +1,6 @@
/* PR tree-optimization/93986 - ICE in decompose, at wide-int.h:984
{ dg-do compile }
- { dg-options "-O1 -foptimize-strlen -ftree-slp-vectorize" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O1 -foptimize-strlen -ftree-slp-vectorize" } */
int dd (void);
diff --git a/gcc/testsuite/gcc.dg/pr98721-1.c b/gcc/testsuite/gcc.dg/pr98721-1.c
index 1c7574f..868b071 100644
--- a/gcc/testsuite/gcc.dg/pr98721-1.c
+++ b/gcc/testsuite/gcc.dg/pr98721-1.c
@@ -1,7 +1,6 @@
/* PR tree-optimization/98721 */
/* { dg-do compile } */
/* { dg-options "-O2" } */
-/* { dg-require-effective-target alloca } */
int
foo (int n)
diff --git a/gcc/testsuite/gcc.dg/pr99122-2.c b/gcc/testsuite/gcc.dg/pr99122-2.c
index 3947f7d..1e908b2 100644
--- a/gcc/testsuite/gcc.dg/pr99122-2.c
+++ b/gcc/testsuite/gcc.dg/pr99122-2.c
@@ -1,6 +1,5 @@
/* { dg-do compile } */
/* { dg-options "-std=gnu17 -O2 -g -w" } */
-/* { dg-require-effective-target alloca } */
static int foo ();
diff --git a/gcc/testsuite/gcc.dg/shrink-wrap-alloca.c b/gcc/testsuite/gcc.dg/shrink-wrap-alloca.c
index b9a2af1..fbe6f4f 100644
--- a/gcc/testsuite/gcc.dg/shrink-wrap-alloca.c
+++ b/gcc/testsuite/gcc.dg/shrink-wrap-alloca.c
@@ -1,6 +1,5 @@
/* { dg-do compile } */
/* { dg-options "-O2 -g" } */
-/* { dg-require-effective-target alloca } */
int *p;
diff --git a/gcc/testsuite/gcc.dg/sso-14.c b/gcc/testsuite/gcc.dg/sso-14.c
index 7b1590a..aeff3fb 100644
--- a/gcc/testsuite/gcc.dg/sso-14.c
+++ b/gcc/testsuite/gcc.dg/sso-14.c
@@ -2,7 +2,6 @@
/* Testcase by George Thopas <george.thopas@gmail.com> */
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
#include <stddef.h>
#include <stdlib.h>
diff --git a/gcc/testsuite/gcc.dg/strlenopt-62.c b/gcc/testsuite/gcc.dg/strlenopt-62.c
index 569c18a..0e09a7a 100644
--- a/gcc/testsuite/gcc.dg/strlenopt-62.c
+++ b/gcc/testsuite/gcc.dg/strlenopt-62.c
@@ -1,7 +1,6 @@
/* PR tree-optimization/90662 - strlen of a string in a vla plus offset
not folded
{ dg-do compile }
- { dg-require-effective-target alloca }
{ dg-options "-O2 -Wall -fdump-tree-gimple -fdump-tree-optimized" } */
#include "strlenopt.h"
diff --git a/gcc/testsuite/gcc.dg/strlenopt-83.c b/gcc/testsuite/gcc.dg/strlenopt-83.c
index baa80cf..5baafea 100644
--- a/gcc/testsuite/gcc.dg/strlenopt-83.c
+++ b/gcc/testsuite/gcc.dg/strlenopt-83.c
@@ -1,8 +1,7 @@
/* PR tree-optimization/83821 - local aggregate initialization defeats
strlen optimization
{ dg-do compile }
- { dg-options "-O2 -Wall -fdump-tree-optimized" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wall -fdump-tree-optimized" } */
#include "strlenopt.h"
char *p_p2, *p_p5, *p_p9, *p_p14;
diff --git a/gcc/testsuite/gcc.dg/strlenopt-84.c b/gcc/testsuite/gcc.dg/strlenopt-84.c
index 0c9da3c..d6102b6 100644
--- a/gcc/testsuite/gcc.dg/strlenopt-84.c
+++ b/gcc/testsuite/gcc.dg/strlenopt-84.c
@@ -3,8 +3,7 @@
Verify that stores that overwrite an interior nul are correctly
reflected in strlen results.
{ dg-do run }
- { dg-options "-O2 -Wall" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wall" } */
#define false (0 == 1)
#define true (0 == 0)
diff --git a/gcc/testsuite/gcc.dg/strlenopt-91.c b/gcc/testsuite/gcc.dg/strlenopt-91.c
index a305561..2381d03 100644
--- a/gcc/testsuite/gcc.dg/strlenopt-91.c
+++ b/gcc/testsuite/gcc.dg/strlenopt-91.c
@@ -1,8 +1,7 @@
/* PR tree-optimization/92412 - excessive errno aliasing assumption defeats
optimization
{ dg-do compile }
- { dg-options "-O2 -Wall -fdump-tree-optimized" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wall -fdump-tree-optimized" } */
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/gcc.dg/torture/Wsizeof-pointer-memaccess1.c b/gcc/testsuite/gcc.dg/torture/Wsizeof-pointer-memaccess1.c
index 12e6f25..3be9a85 100644
--- a/gcc/testsuite/gcc.dg/torture/Wsizeof-pointer-memaccess1.c
+++ b/gcc/testsuite/gcc.dg/torture/Wsizeof-pointer-memaccess1.c
@@ -4,7 +4,6 @@
/* Test just twice, once with -O0 non-fortified, once with -O2 fortified. */
/* { dg-skip-if "" { *-*-* } { "*" } { "-O0" "-O2" } } */
/* { dg-skip-if "" { *-*-* } { "-flto" } { "" } } */
-/* { dg-require-effective-target alloca } */
typedef __SIZE_TYPE__ size_t;
extern void *memset (void *, int, size_t);
diff --git a/gcc/testsuite/gcc.dg/torture/calleesave-sse.c b/gcc/testsuite/gcc.dg/torture/calleesave-sse.c
index 76db20e..292791c 100644
--- a/gcc/testsuite/gcc.dg/torture/calleesave-sse.c
+++ b/gcc/testsuite/gcc.dg/torture/calleesave-sse.c
@@ -1,6 +1,5 @@
/* { dg-do run } */
/* { dg-options "-fno-omit-frame-pointer" } */
-/* { dg-require-effective-target alloca } */
#define alloca __builtin_alloca
extern void abort (void);
diff --git a/gcc/testsuite/gcc.dg/torture/pr48953.c b/gcc/testsuite/gcc.dg/torture/pr48953.c
index e5c8d67..41a3d7b 100644
--- a/gcc/testsuite/gcc.dg/torture/pr48953.c
+++ b/gcc/testsuite/gcc.dg/torture/pr48953.c
@@ -1,6 +1,5 @@
/* { dg-do run } */
/* { dg-options "-fno-tree-dce" } */
-/* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */
static inline int foo (int n, int k)
{
diff --git a/gcc/testsuite/gcc.dg/torture/pr71881.c b/gcc/testsuite/gcc.dg/torture/pr71881.c
index 34325ba..b17db1b 100644
--- a/gcc/testsuite/gcc.dg/torture/pr71881.c
+++ b/gcc/testsuite/gcc.dg/torture/pr71881.c
@@ -1,5 +1,4 @@
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
/* { dg-additional-options "-g" } */
int a, b, c, d, *e, f, g;
diff --git a/gcc/testsuite/gcc.dg/torture/pr71901.c b/gcc/testsuite/gcc.dg/torture/pr71901.c
index 42e9b0e..0be1d73 100644
--- a/gcc/testsuite/gcc.dg/torture/pr71901.c
+++ b/gcc/testsuite/gcc.dg/torture/pr71901.c
@@ -1,5 +1,4 @@
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
typedef struct { int _mp_size; } mpz_t[1];
int a, b;
diff --git a/gcc/testsuite/gcc.dg/torture/pr78742.c b/gcc/testsuite/gcc.dg/torture/pr78742.c
index 75601d4..c83ecbc 100644
--- a/gcc/testsuite/gcc.dg/torture/pr78742.c
+++ b/gcc/testsuite/gcc.dg/torture/pr78742.c
@@ -1,6 +1,5 @@
/* { dg-do compile } */
/* { dg-require-effective-target int128 } */
-/* { dg-require-effective-target alloca } */
void foo();
diff --git a/gcc/testsuite/gcc.dg/torture/pr8081.c b/gcc/testsuite/gcc.dg/torture/pr8081.c
index 0046655..008ec5a 100644
--- a/gcc/testsuite/gcc.dg/torture/pr8081.c
+++ b/gcc/testsuite/gcc.dg/torture/pr8081.c
@@ -1,5 +1,4 @@
/* { dg-do run } */
-/* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */
extern void abort (void);
int
diff --git a/gcc/testsuite/gcc.dg/torture/pr92088-1.c b/gcc/testsuite/gcc.dg/torture/pr92088-1.c
index 488bdcb..b56f8ad 100644
--- a/gcc/testsuite/gcc.dg/torture/pr92088-1.c
+++ b/gcc/testsuite/gcc.dg/torture/pr92088-1.c
@@ -1,5 +1,4 @@
/* { dg-do run } */
-/* { dg-require-effective-target alloca } */
int __attribute__((noipa))
g (char *p)
diff --git a/gcc/testsuite/gcc.dg/torture/pr92088-2.c b/gcc/testsuite/gcc.dg/torture/pr92088-2.c
index 6c9e504..a20a01c 100644
--- a/gcc/testsuite/gcc.dg/torture/pr92088-2.c
+++ b/gcc/testsuite/gcc.dg/torture/pr92088-2.c
@@ -1,5 +1,4 @@
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
void foo(int n)
{
diff --git a/gcc/testsuite/gcc.dg/torture/pr93124.c b/gcc/testsuite/gcc.dg/torture/pr93124.c
index e654ab8..f5af536 100644
--- a/gcc/testsuite/gcc.dg/torture/pr93124.c
+++ b/gcc/testsuite/gcc.dg/torture/pr93124.c
@@ -1,5 +1,4 @@
/* { dg-additional-options "-std=gnu17 -fno-rerun-cse-after-loop -fno-guess-branch-probability -fno-tree-fre" } */
-/* { dg-require-effective-target alloca } */
int x;
diff --git a/gcc/testsuite/gcc.dg/torture/pr94479.c b/gcc/testsuite/gcc.dg/torture/pr94479.c
index 3189cd1..a226291 100644
--- a/gcc/testsuite/gcc.dg/torture/pr94479.c
+++ b/gcc/testsuite/gcc.dg/torture/pr94479.c
@@ -1,7 +1,6 @@
/* { dg-do compile } */
/* { dg-require-stack-check "specific" } */
/* { dg-additional-options "-fpermissive -fstack-check -w" } */
-/* { dg-require-effective-target alloca } */
int a;
struct b {
diff --git a/gcc/testsuite/gcc.dg/torture/stackalign/alloca-1.c b/gcc/testsuite/gcc.dg/torture/stackalign/alloca-1.c
index 2f5d629..e9e816a 100644
--- a/gcc/testsuite/gcc.dg/torture/stackalign/alloca-1.c
+++ b/gcc/testsuite/gcc.dg/torture/stackalign/alloca-1.c
@@ -1,6 +1,5 @@
/* { dg-do run } */
/* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } } */
-/* { dg-require-effective-target alloca } */
#include "check.h"
diff --git a/gcc/testsuite/gcc.dg/torture/stackalign/inline-2.c b/gcc/testsuite/gcc.dg/torture/stackalign/inline-2.c
index 37ee84f..e6e4fec6 100644
--- a/gcc/testsuite/gcc.dg/torture/stackalign/inline-2.c
+++ b/gcc/testsuite/gcc.dg/torture/stackalign/inline-2.c
@@ -1,6 +1,5 @@
/* { dg-do run } */
/* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } } */
-/* { dg-require-effective-target alloca } */
#include "check.h"
diff --git a/gcc/testsuite/gcc.dg/torture/stackalign/nested-3.c b/gcc/testsuite/gcc.dg/torture/stackalign/nested-3.c
index 4bebda6..6387c0d 100644
--- a/gcc/testsuite/gcc.dg/torture/stackalign/nested-3.c
+++ b/gcc/testsuite/gcc.dg/torture/stackalign/nested-3.c
@@ -1,6 +1,5 @@
/* { dg-do run } */
/* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } } */
-/* { dg-require-effective-target alloca } */
#include "check.h"
diff --git a/gcc/testsuite/gcc.dg/torture/stackalign/vararg-1.c b/gcc/testsuite/gcc.dg/torture/stackalign/vararg-1.c
index 819b73b..100ae11 100644
--- a/gcc/testsuite/gcc.dg/torture/stackalign/vararg-1.c
+++ b/gcc/testsuite/gcc.dg/torture/stackalign/vararg-1.c
@@ -1,6 +1,5 @@
/* { dg-do run } */
/* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } } */
-/* { dg-require-effective-target alloca } */
#include <stdarg.h>
#include "check.h"
diff --git a/gcc/testsuite/gcc.dg/torture/stackalign/vararg-2.c b/gcc/testsuite/gcc.dg/torture/stackalign/vararg-2.c
index f2d2a09..bf7c1a1 100644
--- a/gcc/testsuite/gcc.dg/torture/stackalign/vararg-2.c
+++ b/gcc/testsuite/gcc.dg/torture/stackalign/vararg-2.c
@@ -1,6 +1,5 @@
/* { dg-do run } */
/* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } } */
-/* { dg-require-effective-target alloca } */
#include <stdarg.h>
#include "check.h"
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030807-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20030807-2.c
index 0712922..2599324 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20030807-2.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20030807-2.c
@@ -1,6 +1,5 @@
/* { dg-do compile } */
/* { dg-options "-O1 -ftree-vrp -fdump-tree-dom2" } */
-/* { dg-require-effective-target alloca } */
extern void abort (void);
extern void bitmap_clear (int *);
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20080530.c b/gcc/testsuite/gcc.dg/tree-ssa/20080530.c
index c472f81..8583574 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20080530.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20080530.c
@@ -1,6 +1,5 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-einline" } */
-/* { dg-require-effective-target alloca } */
void bar (char *);
int i;
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/alias-37.c b/gcc/testsuite/gcc.dg/tree-ssa/alias-37.c
index c913d26..6956209 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/alias-37.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/alias-37.c
@@ -1,5 +1,4 @@
/* { dg-do compile } */
-/* { dg-require-effective-target alloca } */
/* { dg-options "-O2 -fdump-tree-dse1-details" } */
int i;
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-22.c b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-22.c
index 82eb585..760095c 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-22.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-22.c
@@ -1,8 +1,7 @@
/* PR tree-optimization/91567 - Spurious -Wformat-overflow warnings building
glibc (32-bit only)
{ dg-do compile }
- { dg-options "-O2 -Wall -ftrack-macro-expansion=0" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wall -ftrack-macro-expansion=0" } */
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-25.c b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-25.c
index a28f066..df46023 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-25.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-25.c
@@ -1,7 +1,6 @@
/* PR middle-end/97373 - missing warning on sprintf into allocated destination
{ dg-do compile }
- { dg-options "-O2 -Wall -ftrack-macro-expansion=0" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wall -ftrack-macro-expansion=0" } */
#include "../range.h"
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-3.c b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-3.c
index 999f55e..a422966 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-3.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-3.c
@@ -4,7 +4,6 @@
-O2 (-ftree-vrp) is necessary for the tests involving ranges to pass,
otherwise -O1 is sufficient.
{ dg-do compile }
- { dg-require-effective-target alloca }
{ dg-options "-O2 -Wformat -Wformat-overflow=1 -ftrack-macro-expansion=0" } */
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-15.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-15.c
index fca70d6..c07a53d 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-15.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-15.c
@@ -1,7 +1,6 @@
/* PR tree-optimization/83337 */
/* { dg-do run { target int32plus } } */
/* { dg-options "-O2 -floop-interchange" } */
-/* { dg-require-effective-target alloca } */
/* { dg-skip-if "too big stack" { visium-*-* } } */
/* Copied from graphite/interchange-5.c */
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr23848-1.c b/gcc/testsuite/gcc.dg/tree-ssa/pr23848-1.c
index 8836ab2..c80ed85 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/pr23848-1.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/pr23848-1.c
@@ -1,7 +1,6 @@
/* PR middle-end/23848 */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
-/* { dg-require-effective-target alloca } */
void bar1 (char *, int);
void foo1 (int size)
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr23848-2.c b/gcc/testsuite/gcc.dg/tree-ssa/pr23848-2.c
index 7b5be75..cdbf7b0 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/pr23848-2.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/pr23848-2.c
@@ -1,7 +1,6 @@
/* PR middle-end/23848 */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
-/* { dg-require-effective-target alloca } */
void bar (char *, char *, char *, char *, int);
void foo (int size)
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr23848-3.c b/gcc/testsuite/gcc.dg/tree-ssa/pr23848-3.c
index ed3541e..3232f34 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/pr23848-3.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/pr23848-3.c
@@ -1,7 +1,6 @@
/* PR middle-end/23848 */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
-/* { dg-require-effective-target alloca } */
void bar (int, char *, char *, char *, char *, int);
void foo (int size)
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr23848-4.c b/gcc/testsuite/gcc.dg/tree-ssa/pr23848-4.c
index 0f7948c..f32e8fa 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/pr23848-4.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/pr23848-4.c
@@ -1,7 +1,6 @@
/* PR middle-end/23848 */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
-/* { dg-require-effective-target alloca } */
void bar (char *, char *, char *, char *, int);
void foo (int size)
diff --git a/gcc/testsuite/gcc.dg/uninit-32.c b/gcc/testsuite/gcc.dg/uninit-32.c
index 586b635..846ac62 100644
--- a/gcc/testsuite/gcc.dg/uninit-32.c
+++ b/gcc/testsuite/gcc.dg/uninit-32.c
@@ -1,8 +1,7 @@
/* PR middle-end/10138 - warn for uninitialized arrays passed as const*
arguments
{ dg-do compile }
- { dg-options "-std=gnu17 -O -Wall" }
- { dg-require-effective-target alloca } */
+ { dg-options "-std=gnu17 -O -Wall" } */
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/gcc.dg/uninit-36.c b/gcc/testsuite/gcc.dg/uninit-36.c
index f6307ce..9524e7a 100644
--- a/gcc/testsuite/gcc.dg/uninit-36.c
+++ b/gcc/testsuite/gcc.dg/uninit-36.c
@@ -3,8 +3,7 @@
Verify that passing pointers to uninitialized objects to const
arguments to built-ins is diagnosed where expected.
{ dg-do compile }
- { dg-options "-O -Wall" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O -Wall" } */
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/gcc.dg/uninit-38.c b/gcc/testsuite/gcc.dg/uninit-38.c
index 9a20243..0e8204b 100644
--- a/gcc/testsuite/gcc.dg/uninit-38.c
+++ b/gcc/testsuite/gcc.dg/uninit-38.c
@@ -6,8 +6,7 @@
be adjusted. Ditto if -Wuninitialized output changes for some
other reason.
{ dg-do compile { target { { lp64 || ilp32 } || llp64 } } }
- { dg-options "-O2 -Wall -ftrack-macro-expansion=0 -fno-ipa-modref" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wall -ftrack-macro-expansion=0 -fno-ipa-modref" } */
#define CONCAT(x, y) x ## y
#define CAT(x, y) CONCAT(x, y)
@@ -29,25 +28,25 @@ void sink (void*, ...);
} \
typedef void dummy_type
-T (int, 0, 0); // { dg-warning "'\\*\\(int \\*\\)a' is used uninitialized" }
-T (int, 0, 1); // { dg-warning "'\\*\\(int \\*\\)\\(\\(char \\*\\)a \\+ 1\\)'" }
-T (int, 0, 2); // { dg-warning "'\\*\\(int \\*\\)\\(\\(char \\*\\)a \\+ 2\\)'" }
-T (int, 0, 3); // { dg-warning "'\\*\\(int \\*\\)\\(\\(char \\*\\)a \\+ 3\\)'" }
-T (int, 0, 4); // { dg-warning "'\\(\\(int \\*\\)a\\)\\\[1]'" }
-T (int, 0, 5); // { dg-warning "'\\(\\(int \\*\\)\\(\\(char \\*\\)a \\+ 1\\)\\)\\\[1]'" }
-T (int, 0, 6); // { dg-warning "'\\(\\(int \\*\\)\\(\\(char \\*\\)a \\+ 2\\)\\)\\\[1]'" }
-T (int, 0, 7); // { dg-warning "'\\(\\(int \\*\\)\\(\\(char \\*\\)a \\+ 3\\)\\)\\\[1]'" }
-T (int, 0, 8); // { dg-warning "'\\(\\(int \\*\\)a\\)\\\[2]'" }
-T (int, 0, 9); // { dg-warning "'\\(\\(int \\*\\)\\(\\(char \\*\\)a \\+ 1\\)\\)\\\[2]'" }
-
-
-T (int, 1, 0); // { dg-warning "'\\(\\(int \\*\\)a\\)\\\[1]' is used uninitialized" }
-T (int, 1, 1); // { dg-warning "'\\(\\(int \\*\\)\\(\\(char \\*\\)a \\+ 1\\)\\)\\\[1]'" }
-T (int, 1, 2); // { dg-warning "'\\(\\(int \\*\\)\\(\\(char \\*\\)a \\+ 2\\)\\)\\\[1]'" }
-T (int, 1, 3); // { dg-warning "'\\(\\(int \\*\\)\\(\\(char \\*\\)a \\+ 3\\)\\)\\\[1]'" }
-T (int, 1, 4); // { dg-warning "'\\(\\(int \\*\\)a\\)\\\[2]'" }
-T (int, 1, 5); // { dg-warning "'\\(\\(int \\*\\)\\(\\(char \\*\\)a \\+ 1\\)\\)\\\[2]'" }
-T (int, 1, 6); // { dg-warning "'\\(\\(int \\*\\)\\(\\(char \\*\\)a \\+ 2\\)\\)\\\[2]'" }
-T (int, 1, 7); // { dg-warning "'\\(\\(int \\*\\)\\(\\(char \\*\\)a \\+ 3\\)\\)\\\[2]'" }
-T (int, 1, 8); // { dg-warning "'\\(\\(int \\*\\)a\\)\\\[3]'" }
-T (int, 1, 9); // { dg-warning "'\\(\\(int \\*\\)\\(\\(char \\*\\)a \\+ 1\\)\\)\\\[3]'" }
+T (int, 0, 0); // { dg-warning "'\\*\\(int \\*\\)a' is used uninitialized" "" { xfail { ! alloca } } }
+T (int, 0, 1); // { dg-warning "'\\*\\(int \\*\\)\\(\\(char \\*\\)a \\+ 1\\)'" "" { xfail { ! alloca } } }
+T (int, 0, 2); // { dg-warning "'\\*\\(int \\*\\)\\(\\(char \\*\\)a \\+ 2\\)'" "" { xfail { ! alloca } } }
+T (int, 0, 3); // { dg-warning "'\\*\\(int \\*\\)\\(\\(char \\*\\)a \\+ 3\\)'" "" { xfail { ! alloca } } }
+T (int, 0, 4); // { dg-warning "'\\(\\(int \\*\\)a\\)\\\[1]'" "" { xfail { ! alloca } } }
+T (int, 0, 5); // { dg-warning "'\\(\\(int \\*\\)\\(\\(char \\*\\)a \\+ 1\\)\\)\\\[1]'" "" { xfail { ! alloca } } }
+T (int, 0, 6); // { dg-warning "'\\(\\(int \\*\\)\\(\\(char \\*\\)a \\+ 2\\)\\)\\\[1]'" "" { xfail { ! alloca } } }
+T (int, 0, 7); // { dg-warning "'\\(\\(int \\*\\)\\(\\(char \\*\\)a \\+ 3\\)\\)\\\[1]'" "" { xfail { ! alloca } } }
+T (int, 0, 8); // { dg-warning "'\\(\\(int \\*\\)a\\)\\\[2]'" "" { xfail { ! alloca } } }
+T (int, 0, 9); // { dg-warning "'\\(\\(int \\*\\)\\(\\(char \\*\\)a \\+ 1\\)\\)\\\[2]'" "" { xfail { ! alloca } } }
+
+
+T (int, 1, 0); // { dg-warning "'\\(\\(int \\*\\)a\\)\\\[1]' is used uninitialized" "" { xfail { ! alloca } } }
+T (int, 1, 1); // { dg-warning "'\\(\\(int \\*\\)\\(\\(char \\*\\)a \\+ 1\\)\\)\\\[1]'" "" { xfail { ! alloca } } }
+T (int, 1, 2); // { dg-warning "'\\(\\(int \\*\\)\\(\\(char \\*\\)a \\+ 2\\)\\)\\\[1]'" "" { xfail { ! alloca } } }
+T (int, 1, 3); // { dg-warning "'\\(\\(int \\*\\)\\(\\(char \\*\\)a \\+ 3\\)\\)\\\[1]'" "" { xfail { ! alloca } } }
+T (int, 1, 4); // { dg-warning "'\\(\\(int \\*\\)a\\)\\\[2]'" "" { xfail { ! alloca } } }
+T (int, 1, 5); // { dg-warning "'\\(\\(int \\*\\)\\(\\(char \\*\\)a \\+ 1\\)\\)\\\[2]'" "" { xfail { ! alloca } } }
+T (int, 1, 6); // { dg-warning "'\\(\\(int \\*\\)\\(\\(char \\*\\)a \\+ 2\\)\\)\\\[2]'" "" { xfail { ! alloca } } }
+T (int, 1, 7); // { dg-warning "'\\(\\(int \\*\\)\\(\\(char \\*\\)a \\+ 3\\)\\)\\\[2]'" "" { xfail { ! alloca } } }
+T (int, 1, 8); // { dg-warning "'\\(\\(int \\*\\)a\\)\\\[3]'" "" { xfail { ! alloca } } }
+T (int, 1, 9); // { dg-warning "'\\(\\(int \\*\\)\\(\\(char \\*\\)a \\+ 1\\)\\)\\\[3]'" "" { xfail { ! alloca } } }
diff --git a/gcc/testsuite/gcc.dg/uninit-39.c b/gcc/testsuite/gcc.dg/uninit-39.c
index 4d17f14..0f91854 100644
--- a/gcc/testsuite/gcc.dg/uninit-39.c
+++ b/gcc/testsuite/gcc.dg/uninit-39.c
@@ -1,8 +1,7 @@
/* PR c/98592 - ICE in gimple_canonical_types_compatible_p while formatting
a MEM_REF
{ dg-do compile }
- { dg-options "-O2 -Wall" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wall" } */
void f (int);
diff --git a/gcc/testsuite/gcc.dg/uninit-41.c b/gcc/testsuite/gcc.dg/uninit-41.c
index 2f138cb..36a1f65 100644
--- a/gcc/testsuite/gcc.dg/uninit-41.c
+++ b/gcc/testsuite/gcc.dg/uninit-41.c
@@ -1,8 +1,7 @@
/* Verify that calls to non-modifying built-ins aren't considered
potentially modifying.
{ dg-do compile }
- { dg-options "-std=gnu17 -O2 -Wall" }
- { dg-require-effective-target alloca } */
+ { dg-options "-std=gnu17 -O2 -Wall" } */
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/gcc.dg/uninit-9-O0.c b/gcc/testsuite/gcc.dg/uninit-9-O0.c
index ac24e7a..493dd68 100644
--- a/gcc/testsuite/gcc.dg/uninit-9-O0.c
+++ b/gcc/testsuite/gcc.dg/uninit-9-O0.c
@@ -3,7 +3,6 @@
/* { dg-do compile } */
/* { dg-options "-Wuninitialized" } */
-/* { dg-require-effective-target alloca } */
struct foo
{
diff --git a/gcc/testsuite/gcc.dg/uninit-9.c b/gcc/testsuite/gcc.dg/uninit-9.c
index d1af732..2a8ccb6 100644
--- a/gcc/testsuite/gcc.dg/uninit-9.c
+++ b/gcc/testsuite/gcc.dg/uninit-9.c
@@ -3,7 +3,6 @@
/* { dg-do compile } */
/* { dg-options "-O -Wuninitialized" } */
-/* { dg-require-effective-target alloca } */
struct foo
{
diff --git a/gcc/testsuite/gcc.dg/uninit-pr100250.c b/gcc/testsuite/gcc.dg/uninit-pr100250.c
index d47fc24c..8e7a787 100644
--- a/gcc/testsuite/gcc.dg/uninit-pr100250.c
+++ b/gcc/testsuite/gcc.dg/uninit-pr100250.c
@@ -1,7 +1,6 @@
/* PR middle-end/100250 - ICE related to -Wmaybe-uninitialized
{ dg-do compile }
- { dg-options "-O2 -Wall" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wall" } */
extern void f (int D, const int[D], const int[D]);
diff --git a/gcc/testsuite/gcc.dg/uninit-pr101300.c b/gcc/testsuite/gcc.dg/uninit-pr101300.c
index 840fd0b..4392e8ba 100644
--- a/gcc/testsuite/gcc.dg/uninit-pr101300.c
+++ b/gcc/testsuite/gcc.dg/uninit-pr101300.c
@@ -1,8 +1,7 @@
/* PR middle-end/101300 - -fsanitize=undefined suppresses -Wuninitialized
for a VLA read at -O0
{ dg-do compile }
- { dg-options "-O0 -Wall -fsanitize=undefined" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O0 -Wall -fsanitize=undefined" } */
int warn_vla_rd0 (int n)
{
diff --git a/gcc/testsuite/gcc.dg/uninit-pr101494.c b/gcc/testsuite/gcc.dg/uninit-pr101494.c
index 3c68d14..d3267b6 100644
--- a/gcc/testsuite/gcc.dg/uninit-pr101494.c
+++ b/gcc/testsuite/gcc.dg/uninit-pr101494.c
@@ -1,7 +1,6 @@
/* PR middle-end/101494 - bogus -Wmaybe-uninitialized on memrchr of size 0
{ dg-do compile }
- { dg-options "-O2 -Wall" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wall" } */
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/gcc.dg/uninit-pr98578.c b/gcc/testsuite/gcc.dg/uninit-pr98578.c
index db566c79..14db48e 100644
--- a/gcc/testsuite/gcc.dg/uninit-pr98578.c
+++ b/gcc/testsuite/gcc.dg/uninit-pr98578.c
@@ -1,7 +1,6 @@
/* PR middle-end/98578 - ICE warning on uninitialized VLA access
{ dg-do compile }
- { dg-options "-O2 -Wall -fno-ipa-modref" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wall -fno-ipa-modref" } */
void* malloc (__SIZE_TYPE__);
@@ -15,20 +14,20 @@ void vla_n (int n, int i)
as *a1), but definitely not as *a1[I]. This is a bug in VLA
formatting. */
T (a1[0]); // { dg-warning "'a1\\\[0]' is used uninitialized" "pr98587" { xfail *-*-* } }
- // { dg-warning "'\\*a1\\\[0]' is used uninitialized" "spurious star" { target *-*-* } .-1 }
- T (a1[1]); // { dg-warning "a1\\\[1]' is used uninitialized" }
- T (a1[i]); // { dg-warning "a1\\\[i]' is used uninitialized" }
+ // { dg-warning "'\\*a1\\\[0]' is used uninitialized" "spurious star" { target *-*-* xfail { ! alloca } } .-1 }
+ T (a1[1]); // { dg-warning "a1\\\[1]' is used uninitialized" "" { xfail { ! alloca } } }
+ T (a1[i]); // { dg-warning "a1\\\[i]' is used uninitialized" "" { xfail { ! alloca } } }
}
void vla_n_2 (int n, int i)
{
int a2[n][2];
- T (a2[0][0]); // { dg-warning "a2\\\[0]\\\[0]' is used uninitialized" }
- T (a2[2][1]); // { dg-warning "a2\\\[2]\\\[1]' is used uninitialized" }
- T (a2[3][i]); // { dg-warning "a2\\\[3]\\\[i]' is used uninitialized" }
- T (a2[i][0]); // { dg-warning "a2\\\[i]\\\[0]' is used uninitialized" }
- T (a2[i][i]); // { dg-warning "a2\\\[i]\\\[i]' is used uninitialized" }
+ T (a2[0][0]); // { dg-warning "a2\\\[0]\\\[0]' is used uninitialized" "" { xfail { ! alloca } } }
+ T (a2[2][1]); // { dg-warning "a2\\\[2]\\\[1]' is used uninitialized" "" { xfail { ! alloca } } }
+ T (a2[3][i]); // { dg-warning "a2\\\[3]\\\[i]' is used uninitialized" "" { xfail { ! alloca } } }
+ T (a2[i][0]); // { dg-warning "a2\\\[i]\\\[0]' is used uninitialized" "" { xfail { ! alloca } } }
+ T (a2[i][i]); // { dg-warning "a2\\\[i]\\\[i]' is used uninitialized" "" { xfail { ! alloca } } }
}
@@ -36,11 +35,11 @@ void vla_3_n (int n, int i)
{
int a2[3][n];
- T (a2[0][0]); // { dg-warning "a2\\\[0]\\\[0]' is used uninitialized" }
- T (a2[1][2]); // { dg-warning "a2\\\[1]\\\[2]' is used uninitialized" }
- T (a2[2][i]); // { dg-warning "a2\\\[2]\\\[i]' is used uninitialized" }
- T (a2[i][3]); // { dg-warning "a2\\\[i]\\\[3]' is used uninitialized" }
- T (a2[i][i]); // { dg-warning "a2\\\[i]\\\[i]' is used uninitialized" }
+ T (a2[0][0]); // { dg-warning "a2\\\[0]\\\[0]' is used uninitialized" "" { xfail { ! alloca } } }
+ T (a2[1][2]); // { dg-warning "a2\\\[1]\\\[2]' is used uninitialized" "" { xfail { ! alloca } } }
+ T (a2[2][i]); // { dg-warning "a2\\\[2]\\\[i]' is used uninitialized" "" { xfail { ! alloca } } }
+ T (a2[i][3]); // { dg-warning "a2\\\[i]\\\[3]' is used uninitialized" "" { xfail { ! alloca } } }
+ T (a2[i][i]); // { dg-warning "a2\\\[i]\\\[i]' is used uninitialized" "" { xfail { ! alloca } } }
}
@@ -48,11 +47,11 @@ void vla_n_n (int n, int i)
{
int a2[n][n];
- T (a2[0][0]); // { dg-warning "a2\\\[0]\\\[0]' is used uninitialized" }
- T (a2[4][5]); // { dg-warning "a2\\\[4]\\\[5]' is used uninitialized" }
- T (a2[6][i]); // { dg-warning "a2\\\[6]\\\[i]' is used uninitialized" }
- T (a2[i][7]); // { dg-warning "a2\\\[i]\\\[7]' is used uninitialized" }
- T (a2[i][i]); // { dg-warning "a2\\\[i]\\\[i]' is used uninitialized" }
+ T (a2[0][0]); // { dg-warning "a2\\\[0]\\\[0]' is used uninitialized" "" { xfail { ! alloca } } }
+ T (a2[4][5]); // { dg-warning "a2\\\[4]\\\[5]' is used uninitialized" "" { xfail { ! alloca } } }
+ T (a2[6][i]); // { dg-warning "a2\\\[6]\\\[i]' is used uninitialized" "" { xfail { ! alloca } } }
+ T (a2[i][7]); // { dg-warning "a2\\\[i]\\\[7]' is used uninitialized" "" { xfail { ! alloca } } }
+ T (a2[i][i]); // { dg-warning "a2\\\[i]\\\[i]' is used uninitialized" "" { xfail { ! alloca } } }
}
diff --git a/gcc/testsuite/gcc.dg/uninit-pr98583.c b/gcc/testsuite/gcc.dg/uninit-pr98583.c
index 6159c95..638b029 100644
--- a/gcc/testsuite/gcc.dg/uninit-pr98583.c
+++ b/gcc/testsuite/gcc.dg/uninit-pr98583.c
@@ -1,8 +1,7 @@
/* PR middle-end/98583 - missing -Wuninitialized reading from a second VLA
in its own block
{ dg-do compile }
- { dg-options "-O2 -Wall" }
- { dg-require-effective-target alloca } */
+ { dg-options "-O2 -Wall" } */
void f (int*);
void g (int);
diff --git a/gcc/testsuite/gcc.dg/vla-2.c b/gcc/testsuite/gcc.dg/vla-2.c
index e6ddccc..72c6465 100644
--- a/gcc/testsuite/gcc.dg/vla-2.c
+++ b/gcc/testsuite/gcc.dg/vla-2.c
@@ -1,6 +1,5 @@
/* { dg-do compile } */
/* { dg-options "-std=gnu99" } */
-/* { dg-require-effective-target alloca } */
/* These are crash tests related to PR middle-end/6994; see also
g++.dg/ext/vla1.C. Note that at present A and C cannot be inlined. */
diff --git a/gcc/testsuite/gcc.dg/vla-22.c b/gcc/testsuite/gcc.dg/vla-22.c
index 8025bae..f924650 100644
--- a/gcc/testsuite/gcc.dg/vla-22.c
+++ b/gcc/testsuite/gcc.dg/vla-22.c
@@ -1,6 +1,5 @@
/* { dg-do compile } */
/* { dg-options "-O2" } */
-/* { dg-require-effective-target alloca } */
extern void bar (int *);
diff --git a/gcc/testsuite/gcc.dg/vla-24.c b/gcc/testsuite/gcc.dg/vla-24.c
index 8b72305..5bd5fed 100644
--- a/gcc/testsuite/gcc.dg/vla-24.c
+++ b/gcc/testsuite/gcc.dg/vla-24.c
@@ -2,7 +2,6 @@
/* { dg-do run } */
/* { dg-options "-std=gnu99" } */
-/* { dg-require-effective-target alloca } */
extern void abort (void);
diff --git a/gcc/testsuite/gcc.dg/vla-3.c b/gcc/testsuite/gcc.dg/vla-3.c
index 51dae42..619c042 100644
--- a/gcc/testsuite/gcc.dg/vla-3.c
+++ b/gcc/testsuite/gcc.dg/vla-3.c
@@ -1,6 +1,5 @@
/* { dg-do compile } */
/* { dg-options "-std=gnu99" } */
-/* { dg-require-effective-target alloca } */
/* This used to crash as we did not preserve the correct type
for __SIZE_TYPE__. See PR22439. */
diff --git a/gcc/testsuite/gcc.dg/vla-4.c b/gcc/testsuite/gcc.dg/vla-4.c
index c4a68fe..7ffbfb3 100644
--- a/gcc/testsuite/gcc.dg/vla-4.c
+++ b/gcc/testsuite/gcc.dg/vla-4.c
@@ -1,6 +1,5 @@
/* { dg-do run } */
/* { dg-options "-std=c99 -pedantic-errors" } */
-/* { dg-require-effective-target alloca } */
/* PR c/18740 */
static int i;
diff --git a/gcc/testsuite/gcc.dg/vla-stexp-1.c b/gcc/testsuite/gcc.dg/vla-stexp-1.c
index baaad36..97d6693 100644
--- a/gcc/testsuite/gcc.dg/vla-stexp-1.c
+++ b/gcc/testsuite/gcc.dg/vla-stexp-1.c
@@ -1,7 +1,6 @@
/* PR29970*/
/* { dg-do run } */
/* { dg-options "-Wall -O0" } */
-/* { dg-require-effective-target alloca } */
int foo(void)
{
diff --git a/gcc/testsuite/gcc.dg/vla-stexp-2.c b/gcc/testsuite/gcc.dg/vla-stexp-2.c
index 8616ef7..b0a14cf 100644
--- a/gcc/testsuite/gcc.dg/vla-stexp-2.c
+++ b/gcc/testsuite/gcc.dg/vla-stexp-2.c
@@ -1,7 +1,6 @@
/* PR101838 */
/* { dg-do run } */
/* { dg-options "-std=gnu17 -Wpedantic -O0" } */
-/* { dg-require-effective-target alloca } */
int bar0(
diff --git a/gcc/testsuite/gcc.dg/vla-stexp-4.c b/gcc/testsuite/gcc.dg/vla-stexp-4.c
index 929768c..612b5a8 100644
--- a/gcc/testsuite/gcc.dg/vla-stexp-4.c
+++ b/gcc/testsuite/gcc.dg/vla-stexp-4.c
@@ -1,7 +1,6 @@
/* PR29970, PR91038 */
/* { dg-do run } */
/* { dg-options "-O0 -Wunused-variable" } */
-/* { dg-require-effective-target alloca } */
int foo3b(void) // should not return 0
{
diff --git a/gcc/testsuite/gcc.dg/vla-stexp-5.c b/gcc/testsuite/gcc.dg/vla-stexp-5.c
index 68614f2..d6a7f2b 100644
--- a/gcc/testsuite/gcc.dg/vla-stexp-5.c
+++ b/gcc/testsuite/gcc.dg/vla-stexp-5.c
@@ -1,7 +1,6 @@
/* PR29970 */
/* { dg-do run } */
/* { dg-options "-Wunused-variable" } */
-/* { dg-require-effective-target alloca } */
diff --git a/gcc/testsuite/gcc.dg/winline-7.c b/gcc/testsuite/gcc.dg/winline-7.c
index 239d748..08cc480 100644
--- a/gcc/testsuite/gcc.dg/winline-7.c
+++ b/gcc/testsuite/gcc.dg/winline-7.c
@@ -1,6 +1,5 @@
/* { dg-do compile } */
/* { dg-options "-Winline -O2 -fgnu89-inline" } */
-/* { dg-require-effective-target alloca } */
extern void *alloca (__SIZE_TYPE__);
diff --git a/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-1.c b/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-1.c
index e963ee6..7fc189f 100644
--- a/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-1.c
+++ b/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-1.c
@@ -1,7 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fstack-clash-protection --param stack-clash-protection-guard-size=16" } */
/* { dg-require-effective-target supports_stack_clash_protection } */
-/* { dg-require-effective-target alloca } */
#define SIZE y
#include "stack-check-alloca.h"
diff --git a/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-10.c b/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-10.c
index eb85843..7c42206 100644
--- a/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-10.c
+++ b/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-10.c
@@ -1,7 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fstack-clash-protection --param stack-clash-protection-guard-size=16" } */
/* { dg-require-effective-target supports_stack_clash_protection } */
-/* { dg-require-effective-target alloca } */
#define SIZE 127.5 * 64 * 1024
#include "stack-check-alloca.h"
diff --git a/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-2.c b/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-2.c
index cc8216d..69fdd16 100644
--- a/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-2.c
+++ b/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-2.c
@@ -1,7 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fstack-clash-protection --param stack-clash-protection-guard-size=16" } */
/* { dg-require-effective-target supports_stack_clash_protection } */
-/* { dg-require-effective-target alloca } */
#define SIZE 0
#include "stack-check-alloca.h"
diff --git a/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-3.c b/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-3.c
index f5e51fa..fba3a7a 100644
--- a/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-3.c
+++ b/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-3.c
@@ -1,7 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fstack-clash-protection --param stack-clash-protection-guard-size=16" } */
/* { dg-require-effective-target supports_stack_clash_protection } */
-/* { dg-require-effective-target alloca } */
#define SIZE 100
#include "stack-check-alloca.h"
diff --git a/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-4.c b/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-4.c
index c903f4d..d53f30a 100644
--- a/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-4.c
+++ b/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-4.c
@@ -1,7 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fstack-clash-protection --param stack-clash-protection-guard-size=16" } */
/* { dg-require-effective-target supports_stack_clash_protection } */
-/* { dg-require-effective-target alloca } */
#define SIZE 2 * 1024
#include "stack-check-alloca.h"
diff --git a/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-5.c b/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-5.c
index 691ec23..e0ff99f 100644
--- a/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-5.c
+++ b/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-5.c
@@ -1,7 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fstack-clash-protection --param stack-clash-protection-guard-size=16" } */
/* { dg-require-effective-target supports_stack_clash_protection } */
-/* { dg-require-effective-target alloca } */
#define SIZE 63 * 1024
#include "stack-check-alloca.h"
diff --git a/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-6.c b/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-6.c
index 9e4af23..c4bad9a 100644
--- a/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-6.c
+++ b/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-6.c
@@ -1,7 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fstack-clash-protection --param stack-clash-protection-guard-size=16" } */
/* { dg-require-effective-target supports_stack_clash_protection } */
-/* { dg-require-effective-target alloca } */
#define SIZE 63.5 * 1024
#include "stack-check-alloca.h"
diff --git a/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-7.c b/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-7.c
index f0ce2d8..cba9ff8 100644
--- a/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-7.c
+++ b/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-7.c
@@ -1,7 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fstack-clash-protection --param stack-clash-protection-guard-size=16" } */
/* { dg-require-effective-target supports_stack_clash_protection } */
-/* { dg-require-effective-target alloca } */
#define SIZE 64 * 1024
#include "stack-check-alloca.h"
diff --git a/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-8.c b/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-8.c
index caaab04..5a35411 100644
--- a/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-8.c
+++ b/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-8.c
@@ -1,7 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fstack-clash-protection --param stack-clash-protection-guard-size=16" } */
/* { dg-require-effective-target supports_stack_clash_protection } */
-/* { dg-require-effective-target alloca } */
#define SIZE 65 * 1024
#include "stack-check-alloca.h"
diff --git a/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-9.c b/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-9.c
index 2c42e85..5773d80 100644
--- a/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-9.c
+++ b/gcc/testsuite/gcc.target/aarch64/stack-check-alloca-9.c
@@ -1,7 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fstack-clash-protection --param stack-clash-protection-guard-size=16" } */
/* { dg-require-effective-target supports_stack_clash_protection } */
-/* { dg-require-effective-target alloca } */
#define SIZE 127 * 64 * 1024
#include "stack-check-alloca.h"
diff --git a/gcc/testsuite/gcc.target/arc/interrupt-6.c b/gcc/testsuite/gcc.target/arc/interrupt-6.c
index b3d2bed..13ee864 100644
--- a/gcc/testsuite/gcc.target/arc/interrupt-6.c
+++ b/gcc/testsuite/gcc.target/arc/interrupt-6.c
@@ -1,7 +1,6 @@
/* { dg-do compile } */
/* { dg-skip-if "Not available for ARCv1" { arc700 || arc6xx } } */
/* { dg-options "-O2 -mirq-ctrl-saved=r0-ilink" } */
-/* { dg-require-effective-target alloca } */
/* Check if ilink is recognized. Check how FP and BLINK are saved.
BLINK is saved last on the stack because the IRQ autosave will do
diff --git a/gcc/testsuite/gcc.target/i386/pr80969-3.c b/gcc/testsuite/gcc.target/i386/pr80969-3.c
index 318e06c..008ab4b 100644
--- a/gcc/testsuite/gcc.target/i386/pr80969-3.c
+++ b/gcc/testsuite/gcc.target/i386/pr80969-3.c
@@ -2,7 +2,6 @@
/* { dg-do compile { target { { ! x32 } && { ! avx512f_runtime } } } } */
/* { dg-options "-Ofast -mabi=ms -mavx512f" } */
/* { dg-require-effective-target avx512f } */
-/* { dg-require-effective-target alloca } */
/* Test with alloca (and DRAP). */
diff --git a/gcc/testsuite/gcc.target/loongarch/stack-check-alloca-1.c b/gcc/testsuite/gcc.target/loongarch/stack-check-alloca-1.c
index 6168461..04a1dca 100644
--- a/gcc/testsuite/gcc.target/loongarch/stack-check-alloca-1.c
+++ b/gcc/testsuite/gcc.target/loongarch/stack-check-alloca-1.c
@@ -1,7 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fstack-clash-protection --param stack-clash-protection-guard-size=16 -maddr-reg-reg-cost=1" } */
/* { dg-require-effective-target supports_stack_clash_protection } */
-/* { dg-require-effective-target alloca } */
/* { dg-skip-if "" { *-*-* } { "-fstack-check" } { "" } } */
#define SIZE y
diff --git a/gcc/testsuite/gcc.target/loongarch/stack-check-alloca-2.c b/gcc/testsuite/gcc.target/loongarch/stack-check-alloca-2.c
index 8deaa58..30ea9e4 100644
--- a/gcc/testsuite/gcc.target/loongarch/stack-check-alloca-2.c
+++ b/gcc/testsuite/gcc.target/loongarch/stack-check-alloca-2.c
@@ -1,7 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fstack-clash-protection --param stack-clash-protection-guard-size=16" } */
/* { dg-require-effective-target supports_stack_clash_protection } */
-/* { dg-require-effective-target alloca } */
/* { dg-skip-if "" { *-*-* } { "-fstack-check" } { "" } } */
#define SIZE 0
diff --git a/gcc/testsuite/gcc.target/loongarch/stack-check-alloca-3.c b/gcc/testsuite/gcc.target/loongarch/stack-check-alloca-3.c
index e326ba9a..38259a4 100644
--- a/gcc/testsuite/gcc.target/loongarch/stack-check-alloca-3.c
+++ b/gcc/testsuite/gcc.target/loongarch/stack-check-alloca-3.c
@@ -1,7 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fstack-clash-protection --param stack-clash-protection-guard-size=16" } */
/* { dg-require-effective-target supports_stack_clash_protection } */
-/* { dg-require-effective-target alloca } */
/* { dg-skip-if "" { *-*-* } { "-fstack-check" } { "" } } */
#define SIZE 100
diff --git a/gcc/testsuite/gcc.target/loongarch/stack-check-alloca-4.c b/gcc/testsuite/gcc.target/loongarch/stack-check-alloca-4.c
index b9f7572..4354a03 100644
--- a/gcc/testsuite/gcc.target/loongarch/stack-check-alloca-4.c
+++ b/gcc/testsuite/gcc.target/loongarch/stack-check-alloca-4.c
@@ -1,7 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fstack-clash-protection --param stack-clash-protection-guard-size=16" } */
/* { dg-require-effective-target supports_stack_clash_protection } */
-/* { dg-require-effective-target alloca } */
/* { dg-skip-if "" { *-*-* } { "-fstack-check" } { "" } } */
#define SIZE 64 * 1024
diff --git a/gcc/testsuite/gcc.target/loongarch/stack-check-alloca-5.c b/gcc/testsuite/gcc.target/loongarch/stack-check-alloca-5.c
index 0ff6e49..98eb632 100644
--- a/gcc/testsuite/gcc.target/loongarch/stack-check-alloca-5.c
+++ b/gcc/testsuite/gcc.target/loongarch/stack-check-alloca-5.c
@@ -1,7 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fstack-clash-protection --param stack-clash-protection-guard-size=16" } */
/* { dg-require-effective-target supports_stack_clash_protection } */
-/* { dg-require-effective-target alloca } */
/* { dg-skip-if "" { *-*-* } { "-fstack-check" } { "" } } */
#define SIZE 65 * 1024
diff --git a/gcc/testsuite/gcc.target/loongarch/stack-check-alloca-6.c b/gcc/testsuite/gcc.target/loongarch/stack-check-alloca-6.c
index c5cf74f..f3558a6 100644
--- a/gcc/testsuite/gcc.target/loongarch/stack-check-alloca-6.c
+++ b/gcc/testsuite/gcc.target/loongarch/stack-check-alloca-6.c
@@ -1,7 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fstack-clash-protection --param stack-clash-protection-guard-size=16" } */
/* { dg-require-effective-target supports_stack_clash_protection } */
-/* { dg-require-effective-target alloca } */
/* { dg-skip-if "" { *-*-* } { "-fstack-check" } { "" } } */
#define SIZE 127 * 64 * 1024
diff --git a/gcc/testsuite/gcc.target/riscv/stack-check-alloca-1.c b/gcc/testsuite/gcc.target/riscv/stack-check-alloca-1.c
index 642840f..074a3a8 100644
--- a/gcc/testsuite/gcc.target/riscv/stack-check-alloca-1.c
+++ b/gcc/testsuite/gcc.target/riscv/stack-check-alloca-1.c
@@ -1,7 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -march=rv64gc -mabi=lp64d -fstack-clash-protection" } */
/* { dg-require-effective-target supports_stack_clash_protection } */
-/* { dg-require-effective-target alloca } */
#define SIZE y
#include "stack-check-alloca.h"
diff --git a/gcc/testsuite/gcc.target/riscv/stack-check-alloca-10.c b/gcc/testsuite/gcc.target/riscv/stack-check-alloca-10.c
index 11844aa..429979f 100644
--- a/gcc/testsuite/gcc.target/riscv/stack-check-alloca-10.c
+++ b/gcc/testsuite/gcc.target/riscv/stack-check-alloca-10.c
@@ -1,7 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -march=rv64gc -mabi=lp64d -fstack-clash-protection" } */
/* { dg-require-effective-target supports_stack_clash_protection } */
-/* { dg-require-effective-target alloca } */
#define SIZE 127.5 * 3 * 1024
#include "stack-check-alloca.h"
diff --git a/gcc/testsuite/gcc.target/riscv/stack-check-alloca-2.c b/gcc/testsuite/gcc.target/riscv/stack-check-alloca-2.c
index 5c7a158..1a7b3c1 100644
--- a/gcc/testsuite/gcc.target/riscv/stack-check-alloca-2.c
+++ b/gcc/testsuite/gcc.target/riscv/stack-check-alloca-2.c
@@ -1,7 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -march=rv64gc -mabi=lp64d -fstack-clash-protection" } */
/* { dg-require-effective-target supports_stack_clash_protection } */
-/* { dg-require-effective-target alloca } */
#define SIZE 0
#include "stack-check-alloca.h"
diff --git a/gcc/testsuite/gcc.target/riscv/stack-check-alloca-3.c b/gcc/testsuite/gcc.target/riscv/stack-check-alloca-3.c
index a5db267..0276de5 100644
--- a/gcc/testsuite/gcc.target/riscv/stack-check-alloca-3.c
+++ b/gcc/testsuite/gcc.target/riscv/stack-check-alloca-3.c
@@ -1,7 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -march=rv64gc -mabi=lp64d -fstack-clash-protection" } */
/* { dg-require-effective-target supports_stack_clash_protection } */
-/* { dg-require-effective-target alloca } */
#define SIZE 100
#include "stack-check-alloca.h"
diff --git a/gcc/testsuite/gcc.target/riscv/stack-check-alloca-4.c b/gcc/testsuite/gcc.target/riscv/stack-check-alloca-4.c
index 1841412..33bbaab 100644
--- a/gcc/testsuite/gcc.target/riscv/stack-check-alloca-4.c
+++ b/gcc/testsuite/gcc.target/riscv/stack-check-alloca-4.c
@@ -1,7 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -march=rv64gc -mabi=lp64d -fstack-clash-protection" } */
/* { dg-require-effective-target supports_stack_clash_protection } */
-/* { dg-require-effective-target alloca } */
#define SIZE 1.5 * 1024
#include "stack-check-alloca.h"
diff --git a/gcc/testsuite/gcc.target/riscv/stack-check-alloca-5.c b/gcc/testsuite/gcc.target/riscv/stack-check-alloca-5.c
index f8f9d94..61ac4a9 100644
--- a/gcc/testsuite/gcc.target/riscv/stack-check-alloca-5.c
+++ b/gcc/testsuite/gcc.target/riscv/stack-check-alloca-5.c
@@ -1,7 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -march=rv64gc -mabi=lp64d -fstack-clash-protection" } */
/* { dg-require-effective-target supports_stack_clash_protection } */
-/* { dg-require-effective-target alloca } */
#define SIZE 2 * 1024
#include "stack-check-alloca.h"
diff --git a/gcc/testsuite/gcc.target/riscv/stack-check-alloca-6.c b/gcc/testsuite/gcc.target/riscv/stack-check-alloca-6.c
index d937e92..d348819 100644
--- a/gcc/testsuite/gcc.target/riscv/stack-check-alloca-6.c
+++ b/gcc/testsuite/gcc.target/riscv/stack-check-alloca-6.c
@@ -1,7 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -march=rv64gc -mabi=lp64d -fstack-clash-protection" } */
/* { dg-require-effective-target supports_stack_clash_protection } */
-/* { dg-require-effective-target alloca } */
#define SIZE 2.5 * 1024
#include "stack-check-alloca.h"
diff --git a/gcc/testsuite/gcc.target/riscv/stack-check-alloca-7.c b/gcc/testsuite/gcc.target/riscv/stack-check-alloca-7.c
index cbb32f3..f100633 100644
--- a/gcc/testsuite/gcc.target/riscv/stack-check-alloca-7.c
+++ b/gcc/testsuite/gcc.target/riscv/stack-check-alloca-7.c
@@ -1,7 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -march=rv64gc -mabi=lp64d -fstack-clash-protection" } */
/* { dg-require-effective-target supports_stack_clash_protection } */
-/* { dg-require-effective-target alloca } */
#define SIZE 3 * 1024
#include "stack-check-alloca.h"
diff --git a/gcc/testsuite/gcc.target/riscv/stack-check-alloca-8.c b/gcc/testsuite/gcc.target/riscv/stack-check-alloca-8.c
index 3cc3450..e3f3c47 100644
--- a/gcc/testsuite/gcc.target/riscv/stack-check-alloca-8.c
+++ b/gcc/testsuite/gcc.target/riscv/stack-check-alloca-8.c
@@ -1,7 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -march=rv64gc -mabi=lp64d -fstack-clash-protection --param stack-clash-protection-guard-size=16" } */
/* { dg-require-effective-target supports_stack_clash_protection } */
-/* { dg-require-effective-target alloca } */
#define SIZE 65 * 1024
#include "stack-check-alloca.h"
diff --git a/gcc/testsuite/gcc.target/riscv/stack-check-alloca-9.c b/gcc/testsuite/gcc.target/riscv/stack-check-alloca-9.c
index 3646693..7ccbd26 100644
--- a/gcc/testsuite/gcc.target/riscv/stack-check-alloca-9.c
+++ b/gcc/testsuite/gcc.target/riscv/stack-check-alloca-9.c
@@ -1,7 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -march=rv64gc -mabi=lp64d -fstack-clash-protection" } */
/* { dg-require-effective-target supports_stack_clash_protection } */
-/* { dg-require-effective-target alloca } */
#define SIZE 127 * 3 * 1024
#include "stack-check-alloca.h"
diff --git a/gcc/testsuite/gcc.target/sparc/setjmp-1.c b/gcc/testsuite/gcc.target/sparc/setjmp-1.c
index 699d7f7..ce6835e 100644
--- a/gcc/testsuite/gcc.target/sparc/setjmp-1.c
+++ b/gcc/testsuite/gcc.target/sparc/setjmp-1.c
@@ -4,7 +4,6 @@
/* { dg-do run { target *-*-solaris2.* *-*-linux* *-*-*bsd* } } */
/* { dg-require-effective-target fpic } */
/* { dg-options "-fPIC" } */
-/* { dg-require-effective-target alloca } */
#include <stdio.h>
#include <setjmp.h>
diff --git a/gcc/testsuite/gcc.target/x86_64/abi/ms-sysv/ms-sysv.c b/gcc/testsuite/gcc.target/x86_64/abi/ms-sysv/ms-sysv.c
index abfcee6..f055b9c 100644
--- a/gcc/testsuite/gcc.target/x86_64/abi/ms-sysv/ms-sysv.c
+++ b/gcc/testsuite/gcc.target/x86_64/abi/ms-sysv/ms-sysv.c
@@ -49,7 +49,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
/* { dg-do run } */
/* { dg-additional-sources "do-test.S" } */
/* { dg-additional-options "-Wall" } */
-/* { dg-require-effective-target alloca } */
#include <stdio.h>
#include <string.h>
diff --git a/gcc/testsuite/lib/gcc-dg.exp b/gcc/testsuite/lib/gcc-dg.exp
index c0adef6..008b853 100644
--- a/gcc/testsuite/lib/gcc-dg.exp
+++ b/gcc/testsuite/lib/gcc-dg.exp
@@ -452,6 +452,13 @@ proc gcc-dg-prune { system text } {
}
}
+ # If dynamic stack allocation is not supported, expectant tests are UNSUPPORTED.
+ if { ![check_effective_target_alloca] } {
+ if [regexp "(^|\n)\[^\n\]*: sorry, unimplemented: dynamic stack allocation not supported" $text] {
+ return "::unsupported::dynamic stack allocation not supported"
+ }
+ }
+
return $text
}
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index 4970536..c6f3acf 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -1018,7 +1018,10 @@ proc check_effective_target_alloca {} {
set dg-do-what [find-dg-do-what]
if { ![llength ${dg-do-what}] } {
- error "unexpected call stack"
+ # This happens if 'gcc-dg-prune' etc. get called outside of
+ # 'dg-test'. For these purposes, assume that dynamic stack
+ # allocation is supported.
+ return 1
}
if { [string equal [lindex ${dg-do-what} 0] run] } {
# For 'dg-do run', it additionally depends on runtime support.