[llvm-commits] -fno-rtti vs _GLIBCXX_DEBUG

Jay Foad jay.foad at gmail.com
Fri May 15 02:56:02 PDT 2009


I can't build cfe with ENABLE_EXPENSIVE_CHECKS=1 on GNU libstdc++. I get:

make[2]: Entering directory `/home/foad/llvm/objdir-svn/projects/cfe/lib/Basic'
llvm[2]: Compiling Diagnostic.cpp for Debug+Checks build
In file included from /usr/include/c++/4.3/debug/debug.h:155,
                 from /usr/include/c++/4.3/bits/stl_algobase.h:76,
                 from /usr/include/c++/4.3/bits/char_traits.h:46,
                 from /usr/include/c++/4.3/string:47,
                 from
/home/foad/svn/llvm-project/cfe/trunk/lib/Basic/../../include/clang/Basic/Diagnostic.h:18,
                 from
/home/foad/svn/llvm-project/cfe/trunk/lib/Basic/Diagnostic.cpp:14:
/usr/include/c++/4.3/debug/formatter.h: In constructor
‘__gnu_debug::_Error_formatter::_Parameter::_Parameter(const
__gnu_debug::_Safe_iterator<_Iterator, _Sequence>&, const char*,
__gnu_debug::_Error_formatter::_Is_iterator)’:
/usr/include/c++/4.3/debug/formatter.h:218: error: cannot use typeid
with -fno-rtti
/usr/include/c++/4.3/debug/formatter.h:224: error: cannot use typeid
with -fno-rtti

Attached is a patch to remove -fno-rtti when we enable GNU libstdc++
debugging mode. OK?

Thanks,
Jay.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.rttidebug
Type: application/octet-stream
Size: 536 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090515/57be6419/attachment.obj>


More information about the llvm-commits mailing list