diff options
author | Frank Ch. Eigler <fche@redhat.com> | 2005-03-17 17:20:49 +0000 |
---|---|---|
committer | Frank Ch. Eigler <fche@gcc.gnu.org> | 2005-03-17 17:20:49 +0000 |
commit | 0ee4e76d11da76beff77335f1d47eb29a0b0d819 (patch) | |
tree | 051d2a53b671d96bf6119f3cba06ea10336b65f8 /libmudflap/mf-runtime.c | |
parent | 0c103070f31effb78b00ef1a4ecdc8f811381e07 (diff) | |
download | gcc-0ee4e76d11da76beff77335f1d47eb29a0b0d819.zip gcc-0ee4e76d11da76beff77335f1d47eb29a0b0d819.tar.gz gcc-0ee4e76d11da76beff77335f1d47eb29a0b0d819.tar.bz2 |
mf-runtime.c (__mfu_check): Respect ignore_reads configuration.
2005-03-17 Frank Ch. Eigler <fche@redhat.com>
* mf-runtime.c (__mfu_check): Respect ignore_reads configuration.
* testsuite/libmudflap.c/{pass56,fail39}-frag.c: New tests.
From-SVN: r96620
Diffstat (limited to 'libmudflap/mf-runtime.c')
-rw-r--r-- | libmudflap/mf-runtime.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libmudflap/mf-runtime.c b/libmudflap/mf-runtime.c index 64b1842..a129990 100644 --- a/libmudflap/mf-runtime.c +++ b/libmudflap/mf-runtime.c @@ -1,5 +1,5 @@ /* Mudflap: narrow-pointer bounds-checking by tree rewriting. - Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. + Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc. Contributed by Frank Ch. Eigler <fche@redhat.com> and Graydon Hoare <graydon@redhat.com> Splay Tree code originally by Mark Mitchell <mark@markmitchell.com>, @@ -813,6 +813,8 @@ void __mfu_check (void *ptr, size_t sz, int type, const char *location) if (UNLIKELY (__mf_opts.sigusr1_report)) __mf_sigusr1_respond (); + if (UNLIKELY (__mf_opts.ignore_reads && type == 0)) + return; TRACE ("check ptr=%p b=%u size=%lu %s location=`%s'\n", ptr, entry_idx, (unsigned long)sz, |