summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2008-11-10 04:37:23 +0000
committerroot <root>2008-11-10 04:37:23 +0000
commited699927c14e407cf3c2693c91bcf7d3219c3c32 (patch)
treefcf68214a6f0fec335e76e34f4eca39d62b0a653
parent35eb28c235d68635df330460f28eb85ea41ecc56 (diff)
-rw-r--r--coro.c12
-rw-r--r--coro.h1
2 files changed, 1 insertions, 12 deletions
diff --git a/coro.c b/coro.c
index 722e33c..5c410e8 100644
--- a/coro.c
+++ b/coro.c
@@ -80,12 +80,6 @@ static coro_func coro_init_func;
static void *coro_init_arg;
static coro_context *new_coro, *create_coro;
-/* what we really want to detect here is wether we use a new-enough version of GAS */
-/* with dwarf debug info. instead, check for gcc 3, ELF and GNU/Linux and hope for the best */
-# if __GNUC__ >= 3 && __ELF__ && __linux__
-# define HAVE_CFI 1
-# endif
-
static void
coro_init (void)
{
@@ -115,13 +109,7 @@ trampoline (int sig)
sigsetjmp (new_coro->env, 0)
#endif
) {
- #if HAVE_CFI
- asm (".cfi_startproc");
- #endif
coro_init (); /* start it */
- #if HAVE_CFI
- asm (".cfi_endproc");
- #endif
}
else
trampoline_done = 1;
diff --git a/coro.h b/coro.h
index 79b8e1e..b03c159 100644
--- a/coro.h
+++ b/coro.h
@@ -65,6 +65,7 @@
* do not rely on makecontext passing a void * correctly.
* try harder to get _setjmp/_longjmp.
* major code cleanup/restructuring.
+ * 2008-11-10 the .cfi hacks are no longer needed.
*/
#ifndef CORO_H