Add effective target stack_size
authorTom de Vries <tom@codesourcery.com>
Sat, 10 Jun 2017 06:59:26 +0000 (06:59 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Sat, 10 Jun 2017 06:59:26 +0000 (06:59 +0000)
commit0069a009910c4d8d3d95db6a3760abd0580f4183
tree9143dccb0a15f00edab2b041b9e77ebf6f1e5550
parente6d7d61861c8fa7207570abb6fc23c5a2921e4da
Add effective target stack_size

2017-06-10  Tom de Vries  <tom@codesourcery.com>

* lib/target-supports.exp (check_effective_target_stack_size)
(dg-effective-target-value): New proc.
* lib/gcc.exp (gcc_target_compile): Remove adding of DSTACK_SIZE to
additional_flags.
* lib/objc.exp (objc_target_compile): Same.
* lib/profopt.exp (profopt-get-options): Allow dg-additional-options.
* g++.old-deja/g++.eh/badalloc1.C: Add -DSTACK_SIZE=<value> using
dg-additional-options.
* gcc.c-torture/compile/20080806-1.c: Same.
* gcc.c-torture/compile/920723-1.c: Same.
* gcc.c-torture/compile/930621-1.c: Same.
* gcc.c-torture/compile/991214-2.c: Same.
* gcc.c-torture/compile/bcopy.c: Same.
* gcc.c-torture/compile/memtst.c: Same.
* gcc.c-torture/compile/msp.c: Same.
* gcc.c-torture/compile/stuct.c: Same.
* gcc.c-torture/execute/20011008-3.c: Same.
* gcc.c-torture/execute/20030209-1.c: Same.
* gcc.c-torture/execute/20031012-1.c: Same.
* gcc.c-torture/execute/20040805-1.c: Same.
* gcc.c-torture/execute/920410-1.c: Same.
* gcc.c-torture/execute/920501-7.c: Same.
* gcc.c-torture/execute/921113-1.c: Same.
* gcc.c-torture/execute/921202-1.c: Same.
* gcc.c-torture/execute/921208-2.c: Same.
* gcc.c-torture/execute/930106-1.c: Same.
* gcc.c-torture/execute/930406-1.c: Same.
* gcc.c-torture/execute/950221-1.c: Same.
* gcc.c-torture/execute/960521-1.c: Same.
* gcc.c-torture/execute/980605-1.c: Same.
* gcc.c-torture/execute/comp-goto-1.c: Same.
* gcc.c-torture/execute/comp-goto-2.c: Same.
* gcc.c-torture/execute/memcpy-1.c: Same.
* gcc.c-torture/execute/multi-ix.c: Same.
* gcc.c-torture/execute/nestfunc-4.c: Same.
* gcc.c-torture/execute/pr20621-1.c: Same.
* gcc.c-torture/execute/pr23135.c: Same.
* gcc.c-torture/execute/pr28982b.c: Same.
* gcc.dg/loop-3.c: Same.
* gcc.dg/struct-ret-3.c: Same.
* gcc.dg/torture/stackalign/comp-goto-1.c: Same.
* gcc.dg/torture/stackalign/non-local-goto-4.c: Same.
* gcc.dg/tree-prof/comp-goto-1.c: Same.
* gcc.dg/tree-prof/pr44777.c: Same.

* doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
Document effective target stack_size.

From-SVN: r249090
44 files changed:
gcc/ChangeLog
gcc/doc/sourcebuild.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.eh/badalloc1.C
gcc/testsuite/gcc.c-torture/compile/20080806-1.c
gcc/testsuite/gcc.c-torture/compile/920723-1.c
gcc/testsuite/gcc.c-torture/compile/930621-1.c
gcc/testsuite/gcc.c-torture/compile/991214-2.c
gcc/testsuite/gcc.c-torture/compile/bcopy.c
gcc/testsuite/gcc.c-torture/compile/memtst.c
gcc/testsuite/gcc.c-torture/compile/msp.c
gcc/testsuite/gcc.c-torture/compile/stuct.c
gcc/testsuite/gcc.c-torture/execute/20011008-3.c
gcc/testsuite/gcc.c-torture/execute/20030209-1.c
gcc/testsuite/gcc.c-torture/execute/20031012-1.c
gcc/testsuite/gcc.c-torture/execute/20040805-1.c
gcc/testsuite/gcc.c-torture/execute/920410-1.c
gcc/testsuite/gcc.c-torture/execute/920501-7.c
gcc/testsuite/gcc.c-torture/execute/921113-1.c
gcc/testsuite/gcc.c-torture/execute/921202-1.c
gcc/testsuite/gcc.c-torture/execute/921208-2.c
gcc/testsuite/gcc.c-torture/execute/930106-1.c
gcc/testsuite/gcc.c-torture/execute/930406-1.c
gcc/testsuite/gcc.c-torture/execute/950221-1.c
gcc/testsuite/gcc.c-torture/execute/960521-1.c
gcc/testsuite/gcc.c-torture/execute/980605-1.c
gcc/testsuite/gcc.c-torture/execute/comp-goto-1.c
gcc/testsuite/gcc.c-torture/execute/comp-goto-2.c
gcc/testsuite/gcc.c-torture/execute/memcpy-1.c
gcc/testsuite/gcc.c-torture/execute/multi-ix.c
gcc/testsuite/gcc.c-torture/execute/nestfunc-4.c
gcc/testsuite/gcc.c-torture/execute/pr20621-1.c
gcc/testsuite/gcc.c-torture/execute/pr23135.c
gcc/testsuite/gcc.c-torture/execute/pr28982b.c
gcc/testsuite/gcc.dg/loop-3.c
gcc/testsuite/gcc.dg/struct-ret-3.c
gcc/testsuite/gcc.dg/torture/stackalign/comp-goto-1.c
gcc/testsuite/gcc.dg/torture/stackalign/non-local-goto-4.c
gcc/testsuite/gcc.dg/tree-prof/comp-goto-1.c
gcc/testsuite/gcc.dg/tree-prof/pr44777.c
gcc/testsuite/lib/gcc.exp
gcc/testsuite/lib/objc.exp
gcc/testsuite/lib/profopt.exp
gcc/testsuite/lib/target-supports.exp