aboutsummaryrefslogtreecommitdiff
path: root/libgo/runtime/go-panic.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2011-11-11 21:02:48 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2011-11-11 21:02:48 +0000
commit34277c5228d466ffcd4260eea1805ca77972c83c (patch)
tree6dc91773cd2743418de4eb59e161cb0a4381c77a /libgo/runtime/go-panic.h
parent292b44341cc5355d353cb652eb3d78d3341c800f (diff)
downloadgcc-34277c5228d466ffcd4260eea1805ca77972c83c.zip
gcc-34277c5228d466ffcd4260eea1805ca77972c83c.tar.gz
gcc-34277c5228d466ffcd4260eea1805ca77972c83c.tar.bz2
Introduce G structure and thread-local global g.
From-SVN: r181301
Diffstat (limited to 'libgo/runtime/go-panic.h')
-rw-r--r--libgo/runtime/go-panic.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/libgo/runtime/go-panic.h b/libgo/runtime/go-panic.h
index 2836c46..bd3e238 100644
--- a/libgo/runtime/go-panic.h
+++ b/libgo/runtime/go-panic.h
@@ -31,36 +31,6 @@ struct __go_panic_stack
_Bool __is_foreign;
};
-/* The panic and defer stacks, grouped together into a single thread
- local variable for convenience for systems without TLS. */
-
-struct __go_panic_defer_struct
-{
- /* The list of defers to execute. */
- struct __go_defer_stack *__defer;
-
- /* The list of currently active panics. There will be more than one
- if a deferred function calls panic. */
- struct __go_panic_stack *__panic;
-
- /* The current exception being thrown when unwinding after a call to
- panic . This is really struct _UnwindException *. */
- void *__exception;
-
- /* Whether the current exception is from some other language. */
- _Bool __is_foreign;
-};
-
-#ifdef __rtems__
-#define __thread
-#endif
-
-extern __thread struct __go_panic_defer_struct *__go_panic_defer;
-
-#ifdef __rtems__
-#undef __thread
-#endif
-
extern void __go_panic (struct __go_empty_interface)
__attribute__ ((noreturn));