]> git.unchartedbackwaters.co.uk Git - francis/libjit.git/commitdiff
remove useless longjmp_label field from jit_builder_t struct
authorAleksey Demakov <ademakov@gmail.com>
Tue, 27 May 2008 10:51:28 +0000 (10:51 +0000)
committerAleksey Demakov <ademakov@gmail.com>
Tue, 27 May 2008 10:51:28 +0000 (10:51 +0000)
ChangeLog
jit/jit-insn.c
jit/jit-internal.h

index 95476af3fd9cce5f49c52ed8594a26d5e04204c0..043b9224511b348b951abe6e476e16c70d2ff20d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
+2008-05-27  Aleksey Demakov  <ademakov@gmail.com>
+
+       * jit/jit-internal.h (jit_builder_t):
+       * jit/jit-insn.c (initialize_setjmp_block): remove longjmp_label
+       field as useless.
+
 2008-05-26  Klaus Treichel  <ktreichel@web.de>
 
-       * tools/gen-rules-parser.y, tools/gen-rules-scanner-l: Add the imms32
+       * tools/gen-rules-parser.y, tools/gen-rules-scanner.l: Add the imms32
        and immu32 keywords for 32bit signed and unsigned immediate values.
 
        * tools/gen-apply.c: Add support for apply return structs where
index 7ad8f3332fab2e62d2f9ac46cc404c59493800b5..80e58dd61542f6ab40bd940b0c5cd975fd85a699 100644 (file)
@@ -7150,7 +7150,6 @@ static int initialize_setjmp_block(jit_function_t func)
        {
                return 1;
        }
-       func->builder->longjmp_label = jit_label_undefined;
        func->builder->catcher_label = jit_label_undefined;
 
        /* Force the start of a new block to mark the start of the init code */
@@ -7250,12 +7249,6 @@ static int initialize_setjmp_block(jit_function_t func)
                return 0;
        }
 
-       /* The current point in the code is where "longjmp" will resume from */
-       if(!jit_insn_label(func, &(func->builder->longjmp_label)))
-       {
-               return 0;
-       }
-
        /* We need a value to hold the location of the thrown exception */
        if((func->builder->thrown_pc =
                        jit_value_create(func, jit_type_void_ptr)) == 0)
index 355d803aad1067da2b30caa3cd6defc4cd312b52..09f8ee56d0ddc511c977b0c6835f5946408f6edb 100644 (file)
@@ -306,7 +306,6 @@ struct _jit_builder
 
        /* Exception handling definitions for the function */
        jit_value_t             setjmp_value;
-       jit_label_t             longjmp_label;
        jit_value_t             thrown_exception;
        jit_value_t             thrown_pc;
        jit_label_t             catcher_label;