This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug libstdc++/11696] New: building basic C++ application fails with -fmudflap


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


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