re PR libmudflap/49550 (Many libmudflap tests fail on Solaris 11/x86)
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Thu, 7 Jul 2011 10:14:02 +0000 (10:14 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Thu, 7 Jul 2011 10:14:02 +0000 (10:14 +0000)
commit891a2e42599a554e074f3c9e5fde54cce4795ed9
treedabd723386297a21ecafc7c91d84abf760884544
parent8384ac41e6036d9055c6a1725546eced5d479ec8
re PR libmudflap/49550 (Many libmudflap tests fail on Solaris 11/x86)

gcc:
PR libmudflap/49550
* gcc.c (MFWRAP_SPEC): Also wrap mmap64.

libmudflap:
PR libmudflap/49550
* mf-runtime.c (__wrap_main) [__sun__ && __svr4__]: Don't register
stdin, stdout, stderr.
Register __ctype, __ctype_mask.

* configure.ac: Check for mmap64.
Check for rawmemchr, stpcpy, mempcpy.
* configure: Regenerate.
* config.h.in: Regenerate.
* mf-hooks1.c [HAVE_MMAP64] (__mf_0fn_mmap64): New function.
(mmap64): New wrapper function.
* mf-impl.h (__mf_dynamic_index) [HAVE_MMAP64]: Add dyn_mmap64.
* mf-runtime.c (__mf_dynamic) [HAVE_MMAP64]: Handle mmap64.

* mf-hooks2.c [HAVE_GETMNTENT && HAVE_SYS_MNTTAB_H]: Implement
getmntent wrapper.

* mf-hooks3.c (_REENTRANT): Define.

* testsuite/libmudflap.c/heap-scalestress.c (SCALE): Reduce to 10000.

* testsuite/libmudflap.c/pass-stratcliff.c: Include ../config.h.
(MIN): Define.
Use HAVE_RAWMEMCHR, HAVE_STPCPY, HAVE_MEMPCPY as guards.

* testsuite/libmudflap.c/pass47-frag.c: Expect __ctype warning on
*-*-solaris2.*.

From-SVN: r175961
14 files changed:
gcc/ChangeLog
gcc/gcc.c
libmudflap/ChangeLog
libmudflap/config.h.in
libmudflap/configure
libmudflap/configure.ac
libmudflap/mf-hooks1.c
libmudflap/mf-hooks2.c
libmudflap/mf-hooks3.c
libmudflap/mf-impl.h
libmudflap/mf-runtime.c
libmudflap/testsuite/libmudflap.c/heap-scalestress.c
libmudflap/testsuite/libmudflap.c/pass-stratcliff.c
libmudflap/testsuite/libmudflap.c/pass47-frag.c