This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problems wrapping <cstd*> functions in mudflap


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]