This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: problems wrapping <cstd*> functions in mudflap
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: "Frank Ch. Eigler" <fche at redhat dot com>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: 29 Oct 2003 00:12:50 +0100
- Subject: Re: problems wrapping <cstd*> functions in mudflap
- Organization: Integrable Solutions
- References: <20031028224552.GA25481@redhat.com>
"Frank Ch. Eigler" <fche@redhat.com> writes:
| Hi -
|
| mudflap is a pointer-use-checking extension plus runtime in the
| tree-ssa compiler branch. Among other things, it provides checked
| versions of standard C functions like strlen, malloc, etc, some of
| these interposed via macros that do roughly
|
| #undef strlen
| #define strlen checked_strlen
Macros don't fly in the C++ standard library.
Put differently, it is a requirement that standard function from the C
library (except "assert") not be defined as macros.
Furthermore, I do not believe the above is correct as the C standard
is concerned: strlen can be defined as *functional* macro but not as
an object macro.
-- Gaby