From 5fd68daeb57b85f44717e4a9125b514bcbc74d8a Mon Sep 17 00:00:00 2001 From: Per Hedbor <ph@opera.com> Date: Thu, 7 Aug 2014 18:20:30 +0200 Subject: [PATCH] Removed some #if 0:ed code Fixes a warning when compiling with debug. --- src/code/amd64.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/code/amd64.c b/src/code/amd64.c index b0f7fa5bda..e3638fbfe0 100644 --- a/src/code/amd64.c +++ b/src/code/amd64.c @@ -1284,13 +1284,6 @@ static void amd64_push_local_function(int fun) amd64_add_sp(1); } -#ifdef PIKE_DEBUG -static void amd64_stack_error(void) -{ - Pike_fatal("Stack error\n"); -} -#endif - void amd64_update_pc(void) { INT32 tmp = PIKE_PC, disp; @@ -1326,17 +1319,6 @@ void amd64_update_pc(void) fprintf (stderr, "pc %d update pc - already up-to-date\n", tmp); #endif } -#if 0 -#ifdef PIKE_DEBUG - if (d_flag) { - /* Check that the stack keeps being 16 byte aligned. */ - mov_reg_reg(P_REG_RSP, P_REG_RAX); - and_reg_imm(P_REG_RAX, 0x08); - AMD64_JE(0x09); - call_imm(amd64_stack_error); - } -#endif -#endif } -- GitLab