From patchwork Sun Nov 25 11:59:48 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Bosscher X-Patchwork-Id: 201541 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 3E70B2C008A for ; Sun, 25 Nov 2012 23:00:40 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1354449641; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: MIME-Version:Received:From:Date:Message-ID:Subject:To:Cc: Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=g2/trRQ CiaOTB+1zgwVBf+hPd7Y=; b=sGWFJdAwJ7YHWdR0jvCg956C3gRdSg88uaGr1L+ fvVFd+gQbz/eiJUNdZ0nCqdMEPBeu6+HX9NkbiaRB+8cVt3JbEcxCacg5K2CBPoD HtJJxvIT90Z9pl1su+MOUYFhSuO2q77awNt5KVn4+2y+SmRZDfm3BUj2PXq/Z1PT v8Z0= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:MIME-Version:Received:From:Date:Message-ID:Subject:To:Cc:Content-Type:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=YFOE9M2KhrrY/CfNY+Cw489h5/Z+2m0+jntENpnFXqII3aDTJh7GE2E2u3pUR3 f0vMNm6suchaqWg3aJBs+eINN6d0VYJW+C7HBloDSFBYNjc6Gl1gkIL4YWkzd9vm uUIAHFsTEf/+AO2mAQnmA+ixds6DzxJ6NWe0c1CwSNMio=; Received: (qmail 26400 invoked by alias); 25 Nov 2012 12:00:38 -0000 Received: (qmail 26383 invoked by uid 22791); 25 Nov 2012 12:00:35 -0000 X-SWARE-Spam-Status: No, hits=-4.4 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, KHOP_RCVD_TRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-lb0-f175.google.com (HELO mail-lb0-f175.google.com) (209.85.217.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 25 Nov 2012 12:00:29 +0000 Received: by mail-lb0-f175.google.com with SMTP id gg13so5212455lbb.20 for ; Sun, 25 Nov 2012 04:00:28 -0800 (PST) Received: by 10.152.106.171 with SMTP id gv11mr8166627lab.26.1353844828483; Sun, 25 Nov 2012 04:00:28 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.88.99 with HTTP; Sun, 25 Nov 2012 03:59:48 -0800 (PST) From: Steven Bosscher Date: Sun, 25 Nov 2012 12:59:48 +0100 Message-ID: Subject: [patch] reorg.c janitor patch 2: handle DEBUG_INSN To: GCC Patches Cc: Eric Botcazou X-IsSubscribed: yes 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 Hi, stop_search_p will reach the default case on DEBUG_INSN, and the default case is "gcc_unreachable()". I suppose this means nobody is using DWARF3+ on a dbr_sched target, it can't possibly ever have worked. Eric? Anyway, also obvious: Don't stop on DEBUG_INSNs. Ciao! Steven * reorg.c (stop_search_p): Don't crash on DEBUG_INSNs. Index: reorg.c =================================================================== --- reorg.c (revision 193787) +++ reorg.c (working copy) @@ -260,6 +260,7 @@ stop_search_p (rtx insn, int labels_p) { case NOTE: case CALL_INSN: + case DEBUG_INSN: return 0; case CODE_LABEL: