[compiler-rt] Fixing Linux compile error due to use of clone
Andy Jost
Andrew.Jost at synopsys.com
Wed Jul 10 15:33:44 PDT 2013
First post to llvm-commits, so I may not know the process. I'm hoping someone will review and submit this for me.
The attached patch fixes an unsafe use of clone in projects/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc.
>From the clone man page:
In Linux 2.4 and earlier, clone() does not take arguments ptid, tls, and ctid.
Those last three arguments are unused in this case, anyway, so I just removed them. This fixes the build of compiler-rt on my machine.
Is a testcase needed? If so, where should I look to get started?
-Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130710/1f52f1ec/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.txt
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130710/1f52f1ec/attachment.txt>
More information about the llvm-commits
mailing list