Patchwork [picochip,committed] Handle CFI debug labels in between vliw instructions

login
register
mail settings
Submitter Hariharan Sandanagobalane
Date Sept. 29, 2010, 2:39 p.m.
Message ID <4CA34FB5.6010203@picochip.com>
Download mbox | patch
Permalink /patch/66071/
State New
Headers show

Comments

Hariharan Sandanagobalane - Sept. 29, 2010, 2:39 p.m.
Hello all,
I have now committed the attached patch, which postpones CFI debug 
labels occuring in the middle of a vliw insn. Thanks

Cheers
Hari

ChangeLog:
         * config/picochip/picochip.c (picochip_output_internal_label):
          This function can now be called for debug CFI labels, which 
can come in the middle of a vliw instruction. Postpone until end of vliw.


Patch:

Patch

Index: gcc/config/picochip/picochip.c
===================================================================
--- gcc/config/picochip/picochip.c      (revision 164720)
+++ gcc/config/picochip/picochip.c      (working copy)
@@ -1637,6 +1637,18 @@ 
           sprintf (picochip_current_vliw_state.lm_label_name,
                    "picoMark_%s%ld", prefix, num);
         }
+      else if (picochip_schedule_type == DFA_TYPE_SPEED &&
+         (strcmp (prefix, "LCFI")) == 0 && picochip_vliw_continuation)
+       {
+          if (picochip_current_vliw_state.num_cfi_labels_deferred == 2)
+          {
+            internal_error ("LCFI labels have already been deferred.");
+          }
+          sprintf(picochip_current_vliw_state.cfi_label_name[
+                    picochip_current_vliw_state.num_cfi_labels_deferred],
+                  "picoMark_%s%ld", prefix, num);
+          picochip_current_vliw_state.num_cfi_labels_deferred++;
+       }
        else
         {
           /* Marker label. */