diff options
author | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-08-23 00:12:18 +0000 |
---|---|---|
committer | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-08-23 00:12:18 +0000 |
commit | 87b6ad749e6dbd3dd96c725f7d6f84a9b280c91d (patch) | |
tree | 9650a50ab833e33e6188d4b9b6557bf2d27fabea /libmudflap | |
parent | 666c0e7f000895e53494941210603855aa105ba6 (diff) | |
download | gcc-87b6ad749e6dbd3dd96c725f7d6f84a9b280c91d.tar.gz |
Fix FreeBSD fopen instrumentation.
* mf-hooks2.c (MF_REGISTER_fopen): Define to __MF_TYPE_STATIC when
__FreeBSD__ is defined.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103368 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libmudflap')
-rw-r--r-- | libmudflap/ChangeLog | 5 | ||||
-rw-r--r-- | libmudflap/mf-hooks2.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/libmudflap/ChangeLog b/libmudflap/ChangeLog index 717be4f7be6..cae17d89a76 100644 --- a/libmudflap/ChangeLog +++ b/libmudflap/ChangeLog @@ -1,3 +1,8 @@ +2005-08-22 Jim Wilson <wilson@specifix.com> + + * mf-hooks2.c (MF_REGISTER_fopen): Define to __MF_TYPE_STATIC when + __FreeBSD__ is defined. + 2005-08-17 Jim Wilson <wilson@specifix.com> * mf-hooks1.c (malloc, calloc, realloc, free, diff --git a/libmudflap/mf-hooks2.c b/libmudflap/mf-hooks2.c index 2b961b47a13..0ffcf09ac1f 100644 --- a/libmudflap/mf-hooks2.c +++ b/libmudflap/mf-hooks2.c @@ -544,8 +544,14 @@ WRAPPER2(struct tm*, gmtime, const time_t *timep) /* The following indicate if the result of the corresponding function * should be explicitly un/registered by the wrapper */ + +#ifdef __FreeBSD__ +#define MF_REGISTER_fopen __MF_TYPE_STATIC +#else #undef MF_REGISTER_fopen +#endif #define MF_RESULT_SIZE_fopen (sizeof (FILE)) + #undef MF_REGISTER_opendir #define MF_RESULT_SIZE_opendir 0 /* (sizeof (DIR)) */ #undef MF_REGISTER_readdir |