This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFA:] testsuite: robustify g++.old-deja/g++.eh/badalloc1.C for 64-bit systems
- From: Mike Stump <mikestump at comcast dot net>
- To: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 2 Sep 2014 08:47:18 -0700
- Subject: Re: [RFA:] testsuite: robustify g++.old-deja/g++.eh/badalloc1.C for 64-bit systems
- Authentication-results: sourceware.org; auth=none
- References: <201409021028 dot s82ASFsk030059 at ignucius dot se dot axis dot com>
On Sep 2, 2014, at 3:28 AM, Hans-Peter Nilsson <hans-peter.nilsson@axis.com> wrote:
> In a native x86_64-linux toolchain in which
> eh-table-registration is done explicitly (i.e. dl_iterate_phdr
> and PT_GNU_EH_FRAME is *not* assumed, as that eliminates the
> issue), the memory overhead for exception-initialization goes
> beyond the 32768 bytes assumed in badalloc1.C and the test fails
> for reasons not intended by the test.
> Ok to commit?
Ok.
If someone with deeper insight into the details wants to chime in, or robustify it some more… the test strikes me as unfortunately brittle.
I’d be tempted to make it the maximal size on any system (subject to smaller systems limiting it, cause they are small).