This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix for PRs 36043, 58744 and 65408
- From: Alan Modra <amodra at gmail dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 15 Mar 2015 00:25:31 +1030
- Subject: Re: Fix for PRs 36043, 58744 and 65408
- Authentication-results: sourceware.org; auth=none
- References: <20150314130238 dot GD16488 at bubble dot grove dot modra dot org> <CAMe9rOqScLv2e3HKoxxdOJfWnRcpbY9j3xHKrTb_pHdLYwGjww at mail dot gmail dot com>
On Sat, Mar 14, 2015 at 06:14:40AM -0700, H.J. Lu wrote:
> On Sat, Mar 14, 2015 at 6:02 AM, Alan Modra <amodra@gmail.com> wrote:
> > I'll also throw together a testcase or three. For execute tests I'm
> > thinking of using sbrk to locate an odd sized struct such that access
> > past the end segfaults, rather than mmap/munmap as was done in the
> > pr36043 testcase. Does that sound reasonable?
>
> Can you add a testcase in
>
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36043
I was thinking that mmap/munmap is less portable than sbrk. Hmm, a
grep over the testsuite says mmap is already used and
do-do run { target mmap } is available. OK, I'm happy to jump that
way too.
--
Alan Modra
Australia Development Lab, IBM