<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 21, 2016 at 1:26 AM, Sebastian Huber <span dir="ltr"><<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
On 20/03/16 21:40, Joel Sherrill wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
---<br>
  cpukit/libstdthreads/thrd.c | 3 +++<br>
  1 file changed, 3 insertions(+)<br>
<br>
diff --git a/cpukit/libstdthreads/thrd.c b/cpukit/libstdthreads/thrd.c<br>
index c2e439f..cc2d20f 100644<br>
--- a/cpukit/libstdthreads/thrd.c<br>
+++ b/cpukit/libstdthreads/thrd.c<br>
@@ -96,6 +96,9 @@ thrd_exit(int res)<br>
  {<br>
        pthread_exit((void *)(intptr_t)res);<br>
+       #if defined(__GNUC__)<br>
+               __builtin_unreachable();<br>
+       #endif<br>
  }<br>
    int<br>
</blockquote>
<br></span>
We should fix the pthread_exit() declaration instead, e.g. FreeBSD has this:<br>
<br>
void          pthread_exit(void *) __dead2;<span class="HOEnZb"><font color="#888888"><br><br></font></span></blockquote><div style="">Does that map to gcc noreturn? And does newlib have that?</div><div style=""><br></div><div style="">--joel </div></div><br></div></div>