aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2017-06-19 18:59:00 +0000
committerChristophe Lyon <clyon@gcc.gnu.org>2017-06-19 20:59:00 +0200
commitc72e002cc34657b86bf99ca68f3ba0fdbfc32df6 (patch)
tree620bcbfdf2ac9dce1d449388007a0586e0edb16d /gcc
parent4b691b139f04d13a00a959020ff976fdab60b9b1 (diff)
downloadgcc-c72e002cc34657b86bf99ca68f3ba0fdbfc32df6.zip
gcc-c72e002cc34657b86bf99ca68f3ba0fdbfc32df6.tar.gz
gcc-c72e002cc34657b86bf99ca68f3ba0fdbfc32df6.tar.bz2
badalloc1.C: Remove code path for -DSTACK_SIZE.
* g++.old-deja/g++.eh/badalloc1.C: Remove code path for -DSTACK_SIZE. 2017-06-19 Christophe Lyon <christophe.lyon@linaro.org> * g++.old-deja/g++.eh/badalloc1.C: Remove code path for -DSTACK_SIZE. From-SVN: r249384
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.old-deja/g++.eh/badalloc1.C8
2 files changed, 5 insertions, 8 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index ecec608..80ebf57 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2017-06-19 Christophe Lyon <christophe.lyon@linaro.org>
+
+ * g++.old-deja/g++.eh/badalloc1.C: Remove code path for
+ -DSTACK_SIZE.
+
2017-06-19 Jakub Jelinek <jakub@redhat.com>
PR sanitizer/81125
diff --git a/gcc/testsuite/g++.old-deja/g++.eh/badalloc1.C b/gcc/testsuite/g++.old-deja/g++.eh/badalloc1.C
index f63d5c6..b660e84 100644
--- a/gcc/testsuite/g++.old-deja/g++.eh/badalloc1.C
+++ b/gcc/testsuite/g++.old-deja/g++.eh/badalloc1.C
@@ -3,7 +3,6 @@
// itself call malloc(), and will fail if there is no more
// memory available.
// { dg-do run { xfail { { xstormy16-*-* *-*-darwin[3-7]* } || vxworks_rtp } } }
-// { dg-additional-options "-DSTACK_SIZE=[dg-effective-target-value stack_size]" { target { stack_size } } }
// Copyright (C) 2000, 2002, 2003, 2010, 2012, 2014 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 6 June 2000 <nathan@codesourcery.com>
@@ -16,12 +15,6 @@ extern "C" void *memcpy(void *, const void *, size_t);
// libstdc++ requires a large initialization time allocation for the
// emergency EH allocation pool. Add that to the arena size.
-// Assume that STACK_SIZE defined implies a system that does not have a
-// large data space either, and additionally that we're not linking against
-// a shared libstdc++ (which requires quite a bit more initialization space).
-#ifdef STACK_SIZE
-const int arena_size = 256 + 8 * 128;
-#else
#if defined(__FreeBSD__) || defined(__sun__) || defined(__hpux__)
// FreeBSD, Solaris and HP-UX require even more space at initialization time.
// FreeBSD 5 now requires over 131072 bytes.
@@ -32,7 +25,6 @@ const int arena_size = 262144 + 72 * 1024;
// 32-bit-systems-based estimate.
const int arena_size = 32768 * ((sizeof (void *) + 3)/4) + 72 * 1024;
#endif
-#endif
struct object
{