From: Christophe Lyon Date: Mon, 19 Jun 2017 18:59:00 +0000 (+0000) Subject: badalloc1.C: Remove code path for -DSTACK_SIZE. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c72e002cc34657b86bf99ca68f3ba0fdbfc32df6;p=gcc.git 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 * g++.old-deja/g++.eh/badalloc1.C: Remove code path for -DSTACK_SIZE. From-SVN: r249384 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ecec6087d26..80ebf57cd90 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-06-19 Christophe Lyon + + * g++.old-deja/g++.eh/badalloc1.C: Remove code path for + -DSTACK_SIZE. + 2017-06-19 Jakub Jelinek 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 f63d5c63e4a..b660e845d5b 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 @@ -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 {