From patchwork Wed Sep 29 14:39:49 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hariharan Sandanagobalane X-Patchwork-Id: 66071 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 1CF4EB7113 for ; Thu, 30 Sep 2010 00:40:02 +1000 (EST) Received: (qmail 4932 invoked by alias); 29 Sep 2010 14:40:00 -0000 Received: (qmail 4890 invoked by uid 22791); 29 Sep 2010 14:40:00 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail2.picochip.com (HELO thurne.picochip.com) (82.111.145.34) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 29 Sep 2010 14:39:53 +0000 Received: from haddeo.picochip.com (haddeo.picochip.com [172.17.3.47]) (authenticated bits=0) by thurne.picochip.com (8.13.8/8.13.8) with ESMTP id o8TEdgkv001937 for ; Wed, 29 Sep 2010 15:39:43 +0100 Message-ID: <4CA34FB5.6010203@picochip.com> Date: Wed, 29 Sep 2010 15:39:49 +0100 From: Hariharan Sandanagobalane User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.7) Gecko/20100720 Fedora/3.1.1-1.fc13 Lightning/1.0b2pre Thunderbird/3.1.1 MIME-Version: 1.0 To: gcc-patches@gcc.gnu.org Subject: [PATCH, picochip, committed] Handle CFI debug labels in between vliw instructions Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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: 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. */