Displaying 20 results from an estimated 34 matches for "basic_streambuf".
2007 Aug 15
0
[LLVMdev] Extending AsmPrinter
...ng my custom streambuf I had the
"opportunity" of investigating how libstdc++-v3 defines cout and friends.
It's not pretty. Basically, there's a stdio_sync_filebuf used as a proxy to
C's FILE *. Because stdio_sync_filebuf does no buffering itself (delegating
that to FILE), basic_streambuf::overflow is called a lot. Some of this is
mitigated with xsputn for multiple characters, but it's a lot of virtual
function calls.
To get something faster probably means a custom buffering solution (which
my custom streambuf has, but is not particularly intelligent) and native
syscalls. T...
2007 Aug 15
2
[LLVMdev] Extending AsmPrinter
On Wed, 2007-08-15 at 09:32 -0700, Chris Lattner wrote:
> On Tue, 14 Aug 2007, David Greene wrote:
> >> Yes, this is one advantage, another is that we wouldn't have to fix the
> >> same bug in multiple places :)
> >
> > Right. I've figured out where I need to make the changes in AsmWriterEmitter
> > given the current design.
>
> Ok, cool.
>
2007 Aug 15
1
[LLVMdev] Extending AsmPrinter
...t how to handle asm dumps to cerr.
>
> It really depends on what you mean. I've found that iostreams are
> extremely slow, much slower than C stdio streams. Eventually I'd like to
> move them to stdio, not to more complex streambufs :)
Basically, what I've done is augment basic_streambuf to keep track of
columns and provide manipulators that use this ability to set the output
at a specific column (by padding with spaces if necessary). This makes
it easy to line up comments, for example.
This would be quite a bit uglier with C stdio. For example:
// Custom streambuf (pseudo-llvm...
2016 Mar 28
2
llvm build failed while Linking CXX shared library ../../../lib/libc++.so
...:71: undefined reference to
`__cxa_guard_release'
CMakeFiles/cxx.dir/__/src/ios.cpp.o: In function
`std::__1::ios_base::clear(unsigned int)':
CMakeFiles/cxx.dir/__/src/ios.cpp.o: In function
`std::__1::basic_istream<char, std::__1::char_traits<char>
>::operator>>(std::__1::basic_streambuf<char, std::__1::char_traits<char>
>*)':
/opt/llvm/llvm/projects/libcxx/include/istream:900: undefined reference to
`__cxa_begin_catch'
/opt/llvm/llvm/projects/libcxx/include/istream:900: undefined reference to
`__cxa_end_catch'
.
.
.
Best
Ioannis Koukoulis
On 27 March...
2016 Mar 28
0
llvm build failed while Linking CXX shared library ../../../lib/libc++.so
...ined reference to `__cxa_guard_release'
> CMakeFiles/cxx.dir/__/src/ios.cpp.o: In function `std::__1::ios_base::clear(unsigned int)':
> CMakeFiles/cxx.dir/__/src/ios.cpp.o: In function `std::__1::basic_istream<char, std::__1::char_traits<char> >::operator>>(std::__1::basic_streambuf<char, std::__1::char_traits<char> >*)':
> /opt/llvm/llvm/projects/libcxx/include/istream:900: undefined reference to `__cxa_begin_catch'
> /opt/llvm/llvm/projects/libcxx/include/istream:900: undefined reference to `__cxa_end_catch'
> .
> .
> .
>
> Best...
2016 Mar 29
1
llvm build failed while Linking CXX shared library ../../../lib/libc++.so
...t; `__cxa_guard_release'
> CMakeFiles/cxx.dir/__/src/ios.cpp.o: In function
> `std::__1::ios_base::clear(unsigned int)':
> CMakeFiles/cxx.dir/__/src/ios.cpp.o: In function
> `std::__1::basic_istream<char, std::__1::char_traits<char>
> >::operator>>(std::__1::basic_streambuf<char, std::__1::char_traits<char>
> >*)':
> /opt/llvm/llvm/projects/libcxx/include/istream:900: undefined reference to
> `__cxa_begin_catch'
> /opt/llvm/llvm/projects/libcxx/include/istream:900: undefined reference to
> `__cxa_end_catch'
> .
> .
> .
&...
2011 Aug 26
0
Wine release 1.3.27
...mshtml: Populate dynamic properties table in get_dynamic_data.
mshtml: Make sure dynamic properties are initialized in Dispatch functions.
mshtml/tests: Added dynamic properties accessing tests.
mshtml: Remove no longer needed get_attr_from_nselem function.
msvcp90: Added basic_streambuf<char> class stub.
msvcp: Sync spec files.
msvcp90: Added basic_ostream<char> class stub.
msvcp: Sync spec files.
msvcp90: Added locale::id class implementation.
msvcp90: Added locale::facet class implementation.
msvcp90: Added basic_streambuf<char&...
2005 Nov 22
2
[LLVMdev] llvm-ranlib: Bus Error in regressions + fix
...the details:
To reproduce the crash, run llvm-ranlib on the "GNU.a" file in the
llvm/test/Regression/Archive directory (make a copy first: it corrupts
it). It then crashes with a Bus Error.
The stack trace is:
#0 0x4207c1aa in memcpy () from /lib/tls/libc.so.6
#1 0x400d55e8 in std::basic_streambuf<char, std::char_traits<char>
>::xsputn(char const*, int) () from /usr/lib/libstdc++.so.5
#2 0x4009c818 in std::basic_filebuf<char, std::char_traits<char>
>::xsputn(char const*, int) () from /usr/lib/libstdc++.so.5
#3 0x400cbed1 in std::ostream::write(char const*, int)...
2005 Jan 13
0
Oh323 compilation errors
.../root/openh323/lib/libh323_linux_x86_r.so: undefined reference to
`std::basic_iostream<char, std::char_traits<char> >::~basic_iostream()'
/root/pwlib/lib/libpt_linux_x86_r.so: undefined reference to
`std::basic_iostream<char, std::char_traits<char>
>::basic_iostream(std::basic_streambuf<char, std::char_traits<char> >*)'
/root/pwlib/lib/libpt_linux_x86_r.so: undefined reference to
`std::basic_iostream<char, std::char_traits<char> >::~basic_iostream()'
/root/openh323/lib/libh323_linux_x86_r.so: undefined reference to
`std::basic_iostream<char, std:...
2005 Jan 15
0
oh323 compile error
.../root/openh323/lib/libh323_linux_x86_r.so: undefined reference to
`std::basic_iostream<char, std::char_traits<char> >::~basic_iostream()'
/root/pwlib/lib/libpt_linux_x86_r.so: undefined reference to
`std::basic_iostream<char, std::char_traits<char>
>::basic_iostream(std::basic_streambuf<char, std::char_traits<char> >*)'
/root/pwlib/lib/libpt_linux_x86_r.so: undefined reference to
`std::basic_iostream<char, std::char_traits<char> >::~basic_iostream()'
/root/openh323/lib/libh323_linux_x86_r.so: undefined reference to
`std::basic_iostream<char, std:...
2005 Jul 28
0
oh323 compile problem
...bh323_linux_x86_r.so: undefined reference to
`std::basic_iostream<char, std::char_traits<char> >::~basic_iostream()'
/root/oh323/openh323/../pwlib/lib/libpt_linux_x86_r.so: undefined reference to
`std::basic_iostream<char, std::char_traits<char> >::basic_iostream
(std::basic_streambuf<char, std::char_traits<char> >*)'
/root/oh323/openh323/../pwlib/lib/libpt_linux_x86_r.so: undefined reference to
`std::basic_iostream<char, std::char_traits<char> >::~basic_iostream()'
/root/oh323/openh323/lib/libh323_linux_x86_r.so: undefined reference to
`std::ba...
2018 Feb 20
0
clang-cl with PGO hits linker errors
...sic_code_modules.obj
lld-link.exe: error: duplicate symbol: __profc_?flags at ios_base@std@@QEBAHXZ
in minidump-analyzer.obj and in
..\google-breakpad\src\processor\basic_code_modules.obj
lld-link.exe: error: duplicate symbol: __profc_?rdbuf@?$basic_ios at DU
?$char_traits at D@std@@@std@@QEBAPEAV?$basic_streambuf at DU?$char_traits at D@std@
@@2 at XZ in minidump-analyzer.obj and in
..\google-breakpad\src\processor\basic_code_modules.obj
and several dozen more like this, all with a __profc_ prefix.
I had hoped to isolate this by linking some small test files that use
iostreams, but they didn't reprodu...
2007 Aug 15
2
[LLVMdev] Extending AsmPrinter
...mbuf I had the
> "opportunity" of investigating how libstdc++-v3 defines cout and friends.
> It's not pretty. Basically, there's a stdio_sync_filebuf used as a proxy to
> C's FILE *. Because stdio_sync_filebuf does no buffering itself (delegating
> that to FILE), basic_streambuf::overflow is called a lot. Some of this is
> mitigated with xsputn for multiple characters, but it's a lot of virtual
> function calls.
Yes, it is extremely inefficient.
> To get something faster probably means a custom buffering solution (which
> my custom streambuf has, but is...
2008 Feb 02
0
[LLVMdev] another llvm-gcc-4.2 compilation problem
...hunk to
std::basic_ostream<char, std::char_traits<char> >::~basic_ostream()'
libbackend.a(llvm-backend.o):(.rodata._ZTVN9__gnu_cxx13stdio_filebufIcSt11char_traitsIcEEE[vtable
for __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >]+0x30):
undefined reference to `std::basic_streambuf<char, std::char_traits<char>
>::uflow()'
libbackend.a(llvm-convert.o): In function
`TreeToLLVM::CreateTemporary(llvm::Type const*)':
llvm-convert.cpp:(.text+0x427): undefined reference to
`std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::...
2010 Sep 27
1
[LLVMdev] Shared Libraries (dlls) using MinGW
...___ZTVSt15basic_stringbufIcSt11char_traitsIcESaIcEE (auto-import)
Info: resolving std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::_Rep::_S_empty_rep_storage by linking to
__imp___ZNSs4_Rep20_S_empty_rep_storageE (auto-import)
Info: resolving vtable for std::basic_streambuf<char, std::char_traits<char>
> by linking to __imp___ZTVSt15basic_streambufIcSt11char_traitsIcEE
(auto-import)
Info: resolving vtable for std::basic_ios<char, std::char_traits<char> > by
linking to __imp___ZTVSt9basic_iosIcSt11char_traitsIcEE (auto-import)
Info: resolving VT...
2007 Aug 15
0
[LLVMdev] Extending AsmPrinter
On Tue, 14 Aug 2007, David Greene wrote:
>> Yes, this is one advantage, another is that we wouldn't have to fix the
>> same bug in multiple places :)
>
> Right. I've figured out where I need to make the changes in AsmWriterEmitter
> given the current design.
Ok, cool.
> I'm trying out a few interesting things here based on custom streambufs.
> It requires
2012 Jun 22
0
Wine release 1.5.7
...or 11, Kindle for PC)
27064 Liquidator 2 needs msvcp71.dll.??0?$basic_ofstream at DU?$char_traits at D@std@@@std@@QAE at XZ
27318 OpenGL 2.0 Shading Language Terrain Texturing Demo crashes on unimplemented function msvcp100.dll.??0?$basic_istream at DU?$char_traits at D@std@@@std@@QAE at PAV?$basic_streambuf at DU?$char_traits at D@std@@@1 at _N@Z
27764 Civ 5 demo wants msvcp90.dll.$basic_ofstream at DU?$char_traits at D@std@@@std@@QAE at XZ (purist)
27767 htmlhelp not showing diacritic characters from html encoded entity
27918 GTAIV doesn't show anything after switching resolution
28041...
2007 Aug 15
3
[LLVMdev] Extending AsmPrinter
On Monday 13 August 2007 15:50, Chris Lattner wrote:
> > I also have a few questions on the general design of AsmPrinter. Why is
> > runOnMachineFunction implemented for each target AsmPrinter? I would
>
> Historical reasons that aren't very good. Over the years, I've taken
> several stabs at merging the asmprinters from various targets together.
> They used to
2016 Mar 26
0
llvm build failed while Linking CXX shared library ../../../lib/libc++.so
Hi Ioannis,
If you only want the clang static analyzer, there is no need to check out and build libc++ as part of the process. The rest of the build can just use the system C++ library, which will be libstdc++ on Xubuntu.
That said, without the full build log, it is hard to say what went wrong. Specifically, which references were undefined?
-Dimitry
> On 26 Mar 2016, at 16:04, Ioannis
2012 Aug 17
0
Wine release 1.5.11
...hort> implementation.
msvcp90: Added basic_istringstream<short> implementation.
msvcp90: Added basic_stringstream<short> implementation.
msvcp90: Use streamoff in std::_BADOFF definition.
msvcp90: Added partial strstreambuf implementation.
msvcp90: Fixed basic_streambuf::sputn functions behaviour when there's no place in buffer.
msvcp90: Reset width value in basic_istream class on error.
msvcp90: Added strstreambuf seekpos and seekoff implementation.
msvcp90: Added missing -ret64 option.
msvcp100: Copy source files from msvcp90.
m...