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 <amo...@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