<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 22, 2016 at 9:49 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">In case we reach the program point marked with RTEMS_UNREACHABLE(), then the behaviour is undefined according to the GCC documentation. Maybe we should add some stuff if RTEMS_DEBUG is defined.<br>
<br></blockquote><div>That seems reasonable. It is unlikely that we get there but if we do, you really want to know.</div><div><br></div><div>The newlib patch for pthread_exit() should have hit their list.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 22/03/16 07:25, Sebastian Huber wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
---<br>
  cpukit/score/include/rtems/score/basedefs.h | 9 +++++++++<br>
  1 file changed, 9 insertions(+)<br>
<br>
diff --git a/cpukit/score/include/rtems/score/basedefs.h b/cpukit/score/include/rtems/score/basedefs.h<br>
index facaed9..5d7f5b4 100644<br>
--- a/cpukit/score/include/rtems/score/basedefs.h<br>
+++ b/cpukit/score/include/rtems/score/basedefs.h<br>
@@ -191,6 +191,15 @@<br>
  /* Provided for backward compatibility */<br>
  #define RTEMS_COMPILER_PACKED_ATTRIBUTE RTEMS_PACKED<br>
  +/**<br>
+ * @brief Tells the compiler that this program point is unreachable.<br>
+ */<br>
+#if defined(__GNUC__)<br>
+  #define RTEMS_UNREACHABLE() __builtin_unreachable()<br>
+#else<br>
+  #define RTEMS_UNREACHABLE()<br>
+#endif<br>
+<br>
  #if __cplusplus >= 201103L<br>
    #define RTEMS_STATIC_ASSERT(cond, msg) \<br>
      static_assert(cond, # msg)<br>
</blockquote>
<br>
-- <br>
Sebastian Huber, embedded brains GmbH<br>
<br>
Address : Dornierstr. 4, D-82178 Puchheim, Germany<br>
Phone   : <a href="tel:%2B49%2089%20189%2047%2041-16" value="+4989189474116" target="_blank">+49 89 189 47 41-16</a><br>
Fax     : <a href="tel:%2B49%2089%20189%2047%2041-09" value="+4989189474109" target="_blank">+49 89 189 47 41-09</a><br>
E-Mail  : <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a><br>
PGP     : Public key available on request.<br>
<br>
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br>
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div><br></div></div>