# New Ticket Created by  Jürgen Bömmels 
# Please include the string:  [perl #23339]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=23339 >


In interpreter.c a call to build_asm is protected by 
#ifdef JIT_CAPABLE. 
When compiling with --jitcapable=0 JIT_CAPABLE is defined to 0. So the
#ifdef will be true. Changing this into #if gets it back to compile

As far as I can tell there is no design desicion yet wether to use
defined/undefined or 0/1 for variables like this.



-- attachment  1 ------------------------------------------------------
url: http://rt.perl.org/rt2/attach/62762/46228/b9512b/interpreter.diff

Index: interpreter.c
===================================================================
RCS file: /cvs/public/parrot/interpreter.c,v
retrieving revision 1.194
diff -u -r1.194 interpreter.c
--- interpreter.c	15 Aug 2003 11:56:23 -0000	1.194
+++ interpreter.c	16 Aug 2003 11:34:53 -0000
@@ -17,7 +17,7 @@
 #include "parrot/oplib/core_ops_prederef.h"
 #include "parrot/oplib/core_ops_switch.h"
 #include "parrot/runops_cores.h"
-#ifdef JIT_CAPABLE
+#if JIT_CAPABLE
 #  include "parrot/exec.h"
 #  include "parrot/jit.h"
 #endif
@@ -392,7 +392,7 @@
 static opcode_t *
 runops_jit(struct Parrot_Interp *interpreter, opcode_t *pc)
 {
-#ifdef JIT_CAPABLE
+#if JIT_CAPABLE
     opcode_t *code_start;
     UINTVAL code_size;          /* in opcodes */
     opcode_t *code_end;

Reply via email to