[llvm-commits] [PATCH] work around a nasty g++/glibc incompatiblity

Benjamin Kramer benny.kra at googlemail.com
Mon Jun 15 04:18:03 PDT 2009


Dan Gohman wrote:
> Instead of copying the string into the buffer for the GLIBC case,  
> could
> you add a new char* variable at the top of the function and assign to
> it the
> address of the buffer, and make the std::string construction at the
> bottom
> use that variable instead of the buffer?  Then, the glibc case could
> just
> reassign the char* variable.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: glibcstrerror_r.patch
Type: application/octet-stream
Size: 1017 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090615/7e76fc56/attachment.obj>
-------------- next part --------------



More information about the llvm-commits mailing list