dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dotgnu-pnet-commits] libjit ChangeLog jit/jit-dump.c


From: Aleksey Demakov
Subject: [dotgnu-pnet-commits] libjit ChangeLog jit/jit-dump.c
Date: Mon, 22 Dec 2008 18:49:47 +0000

CVSROOT:        /sources/dotgnu-pnet
Module name:    libjit
Changes by:     Aleksey Demakov <avd>   08/12/22 18:49:47

Modified files:
        .              : ChangeLog 
        jit            : jit-dump.c 

Log message:
        don't define undefined labels for dump

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/libjit/ChangeLog?cvsroot=dotgnu-pnet&r1=1.398&r2=1.399
http://cvs.savannah.gnu.org/viewcvs/libjit/jit/jit-dump.c?cvsroot=dotgnu-pnet&r1=1.17&r2=1.18

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/dotgnu-pnet/libjit/ChangeLog,v
retrieving revision 1.398
retrieving revision 1.399
diff -u -b -r1.398 -r1.399
--- ChangeLog   12 Dec 2008 11:30:57 -0000      1.398
+++ ChangeLog   22 Dec 2008 18:49:46 -0000      1.399
@@ -1,3 +1,8 @@
+2008-12-21  Aleksey Demakov  <address@hidden>
+
+       * jit/jit-dump.c (jit_dump_function): dump undefined labels as such
+       rather than generating new labels for them.
+
 2008-12-12  Aleksey Demakov  <address@hidden>
 
        * jitruby/*: add Paul Brannan's ruby-libjit.

Index: jit/jit-dump.c
===================================================================
RCS file: /sources/dotgnu-pnet/libjit/jit/jit-dump.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- jit/jit-dump.c      24 Jan 2008 20:12:51 -0000      1.17
+++ jit/jit-dump.c      22 Dec 2008 18:49:47 -0000      1.18
@@ -846,18 +846,15 @@
                while((block = jit_block_next(func, block)) != 0)
                {
                        /* Output the block's label, if it has one */
-                       if(prev_block && block->label == jit_label_undefined)
-                       {
-                               /* A new block was started, but it doesn't have 
a label yet */
-                               if(_jit_block_get_last(block) != 0)
-                               {
-                                       block->label = 
(func->builder->next_label)++;
-                               }
-                       }
                        if(block->label != jit_label_undefined)
                        {
                                fprintf(stream, ".L%ld:\n", 
(long)(block->label));
                        }
+                       else if (prev_block && _jit_block_get_last(block) != 0)
+                       {
+                               /* A new block was started, but it doesn't have 
a label yet */
+                               fprintf(stream, ".L:\n");
+                       }
                        prev_block = 1;
 
                        /* Dump the instructions in the block */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]