<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Sure, see attached.<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF786349"><font face="Tahoma" color="#000000" size="2"><b>From:</b> Rafael Espíndola [rafael.espindola@gmail.com]<br>
<b>Sent:</b> 05 November 2015 04:16<br>
<b>To:</b> Daniel Sanders<br>
<b>Cc:</b> llvm-commits; Rui Ueyama; reviews+D14165+public+8a648fa84ee244b3@reviews.llvm.org<br>
<b>Subject:</b> RE: [PATCH] D14165: [lld] Ensure we link to the threading library used by std::thread (e.g. pthreads).<br>
</font><br>
</div>
<div></div>
<div>
<p dir="ltr">Can you email the .ii file? </p>
<div class="gmail_quote">On Nov 5, 2015 4:54 AM, "Daniel Sanders" <<a href="mailto:Daniel.Sanders@imgtec.com" target="_blank">Daniel.Sanders@imgtec.com</a>> wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
It's the libstdc++-4.9-dev in Debian Jessie (amd64). The package version is 4.9.2-10.<br>
________________________________________<br>
From: Rafael Espíndola [<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>]<br>
Sent: 04 November 2015 13:02<br>
To: <a href="mailto:reviews%2BD14165%2Bpublic%2B8a648fa84ee244b3@reviews.llvm.org" target="_blank">
reviews+D14165+public+8a648fa84ee244b3@reviews.llvm.org</a>; Daniel Sanders<br>
Cc: Rui Ueyama; llvm-commits<br>
Subject: Re: [PATCH] D14165: [lld] Ensure we link to the threading library used by std::thread (e.g. pthreads).<br>
<br>
Which C++ library is that? On my system (gcc 4.9) running<br>
<br>
grep -r '&pthread_create' /usr/include/c++/<br>
<br>
finds nothing.<br>
<br>
And in the preprocessed file:<br>
<br>
$ grep pthread_create  SymbolTable.ii<br>
extern int pthread_create (pthread_t *__restrict __newthread,<br>
static __typeof(pthread_create) __gthrw_pthread_create __attribute__<br>
((__weakref__("pthread_create")));<br>
  return __gthrw_pthread_create (__threadid, __null, __func, __args);<br>
<br>
<br>
Cheers,<br>
Rafael<br>
<br>
On 30 October 2015 at 03:28, Daniel Sanders via llvm-commits<br>
<<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>> wrote:<br>
> dsanders added a comment.<br>
><br>
> FWIW, it seems odd that we'd need pthreads when we don't use threads. I've just had a look at the preprocessed source for COFF/SymbolTable.cpp and the pthread_create reference comes from this line:<br>
><br>
>   __asm ("" : : "r" (&pthread_create));<br>
><br>
> which was in the <thread> that was included by <future>.<br>
><br>
><br>
> <a href="http://reviews.llvm.org/D14165" rel="noreferrer" target="_blank">http://reviews.llvm.org/D14165</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> llvm-commits mailing list<br>
> <a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a><br>
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</blockquote>
</div>
</div>
</div>
</div>
</body>
</html>