This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/11696] New: building basic C++ application fails with -fmudflap
- From: "phil dot el at wanadoo dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Jul 2003 20:10:45 -0000
- Subject: [Bug libstdc++/11696] New: building basic C++ application fails with -fmudflap
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11696
Summary: building basic C++ application fails with -fmudflap
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: phil dot el at wanadoo dot fr
CC: fche at redhat dot com,gcc-bugs at gcc dot gnu dot org
GCC host triplet: GNU/linux i386
probably a known problem since it's very simple and all c++
user should reach it.
#include <cstring>
$ g++ -fmudflap tmp.cpp
/usr/local/gcc-tree-ssa/include/c++/3.5-tree-ssa/cstring:79: error: `::memcpy'
has not been declared
....
mudflap #define memcpy __mfwrap_memcpy, <cstring> include <string.h> then
#undef memcpy so compiler fail on a later using ::memcpy;
I've no idea if the problem must be consided in libstdc++ or in mf-runtime.h
regards,
Philippe Elie