From patchwork Mon Jul 12 08:22:38 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [gccgo] Crash after RTEMS failure Date: Sun, 11 Jul 2010 22:22:38 -0000 From: Ian Taylor X-Patchwork-Id: 58579 Message-Id: To: gcc-patches@gcc.gnu.org This patch from Vinu Rajashekhar makes sure that a Go program crashes if it fails to add a task variable on RTEMS. Committed to gccgo branch. Ian Index: libgo/runtime/rtems-task-variable-add.c =================================================================== --- libgo/runtime/rtems-task-variable-add.c (revision 161752) +++ libgo/runtime/rtems-task-variable-add.c (working copy) @@ -4,6 +4,8 @@ Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ +#include + #include #include #include @@ -16,6 +18,7 @@ __wrap_rtems_task_variable_add (void **v if (sc != RTEMS_SUCCESSFUL) { rtems_error (sc, "rtems_task_variable_add failed"); + assert (0); } }