From patchwork Sat Feb 2 21:27:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Gretton-Dann X-Patchwork-Id: 217702 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 029622C0091 for ; Sun, 3 Feb 2013 08:27:22 +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=1360445243; h=Comment: DomainKey-Signature:Received:Received:Received:Received: MIME-Version:Received:Date:Message-ID:Subject:From:To:Cc: Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=jKp+J3A rh4U3ajaNyT5tx3TJa3M=; b=fd5W/LHJCwdymfkqy0WLUeTryOWPM2GNPall1Y9 Oggtf890INaIQ3OsZTyDi2D1H0hgtTzpn54z8EGVnI1rrFn/td58c+vox09digoM mXh11dh2NPDvN2s9B4xjKjBuKAe2uwMw/AMRUqxpX2gCRv+fGPaQt6esHVkiiwhb nZ54= 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:X-Google-DKIM-Signature:MIME-Version:X-Received:Received:Date:Message-ID:Subject:From:To:Cc:Content-Type:X-Gm-Message-State:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=TzMySUpuV14zbsqf+Fq8AG8h26j+rcUfyKOPI+gnPnPNwSG5W5eJwIQ1paWonz iVoT465310F4Rcaco3Px76WrGWW57wZPYdT5XoKXmSb43UvrXYbww6sDYYLRps5L XxgZ/eg2FbY+S27DapWzb+mT00G0S5ZRaInx+6dpGJDSc=; Received: (qmail 4813 invoked by alias); 2 Feb 2013 21:27:18 -0000 Received: (qmail 4805 invoked by uid 22791); 2 Feb 2013 21:27:18 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-ee0-f53.google.com (HELO mail-ee0-f53.google.com) (74.125.83.53) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 02 Feb 2013 21:27:12 +0000 Received: by mail-ee0-f53.google.com with SMTP id e53so2555830eek.26 for ; Sat, 02 Feb 2013 13:27:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to:cc :content-type:x-gm-message-state; bh=2z+IRUlT9+Y0E1Lg7gLPhre9QGQrv3j2fUD1Ar2jUxM=; b=YnaiK7u7qL5jN0RCLSFdD6vaGrimLHDMD3NP3RTAMpbxhuFQ684XvM761ssDe4/uwL Qxr3VkII40kKNAmeZvXYbBfOgod+zRjJopI9TwwJdWVkJrMdwrQNbS3dNxpgnruDeUbA Cc8koDyMfpqXpj2GBuzYVV2sgWxtGaX41Js9Hlqa5ThYgDBu040hyBTBvcwAQgYIqQ7Q pHm8ZpD7pXFdPec4NrAlNoAEnq+Ts8CprTsEDqhcMR3KorICXxdhUXKxTwrLn2gyZ6pA +jglI+w4RU8+937g6FsmkF0kLZUnaTys+kGmtp0/cv0qXEcOM34iJ2kk64aUt9wYdNU/ 1Wug== MIME-Version: 1.0 X-Received: by 10.14.173.69 with SMTP id u45mr54234444eel.21.1359840431430; Sat, 02 Feb 2013 13:27:11 -0800 (PST) Received: by 10.14.126.196 with HTTP; Sat, 2 Feb 2013 13:27:11 -0800 (PST) Date: Sat, 2 Feb 2013 21:27:11 +0000 Message-ID: Subject: [RFA] Fix DEBUG_RELOAD support From: Matthew Gretton-Dann To: "gcc-patches@gcc.gnu.org" Cc: Patch Tracking , uweigand@de.ibm.com, bernds@codesourcery.com, dnovillo@google.com X-Gm-Message-State: ALoCoQmhRTUiCjnEqPdTNPncE5DmZFb4BoI0bw4Ri8MbPTgbtSwQ1I/jCvWjbGoeQJsM/lW+ZwyN 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, Whilst debugging a reload issue I tried enabling DEBUG_RELOAD, only to find that this caused GCC to fail to build. I think this failure was introduced during the change to vec being a C++ type, as DEBUG_RELOAD is normally forced off. The attached patch fixes the build issue. Tested by building a cross arm-none-linux-gnueabi compiler with DEBUG_RELOAD forced on. OK for trunk? gcc/ChangeLog: 2013-02-02 Matthew Gretton-Dann * gcc/reload.c (subst_reloads): Fix DEBUG_RELOAD build issue. --- Matthew Gretton-Dann Linaro Toolchain Working Group matthew.gretton-dann@linaro.org diff --git a/gcc/reload.c b/gcc/reload.c index 889a6cc..2546c1b 100644 --- a/gcc/reload.c +++ b/gcc/reload.c @@ -6313,14 +6313,14 @@ subst_reloads (rtx insn) for (check_regno = 0; check_regno < max_regno; check_regno++) { #define CHECK_MODF(ARRAY) \ - gcc_assert (!reg_equivs[check_regno].ARRAY \ + gcc_assert (!(*reg_equivs)[check_regno].ARRAY \ || !loc_mentioned_in_p (r->where, \ - reg_equivs[check_regno).ARRAY)] + (*reg_equivs)[check_regno].ARRAY)) - CHECK_MODF (equiv_constant); - CHECK_MODF (equiv_memory_loc); - CHECK_MODF (equiv_address); - CHECK_MODF (equiv_mem); + CHECK_MODF (constant); + CHECK_MODF (memory_loc); + CHECK_MODF (address); + CHECK_MODF (mem); #undef CHECK_MODF } #endif /* DEBUG_RELOAD */