From patchwork Mon Mar 4 15:33:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Eager X-Patchwork-Id: 224742 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 3CD852C0302 for ; Tue, 5 Mar 2013 02:33:43 +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=1363016024; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=JXhjCrSsFTlKHjIcLAys or5kANY=; b=ohqW8SGUHJCVNEQjB5FhqakR9zhT/eCBHT4fsDi0ZedCO5nPMn8H Y/veew4OGD34yIdn+Hx99mNfKXBDmtZBhLiRik+YzEml/PJekhIkbKFZsSL20XJn W70mckaO7THzBId00kThdgOs+gyI7aKSBffJmOexZ9aQxuzlaEBOKpc= 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:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=wfJRcq5xRwjoy6XVkbf6yzcbzOtTxj0XrRW8e5NSZyAaHUViOMMY7T+0LcWJr+ pAwmuahJ2+utqUWIXIhJZ2UKuQqcnY/+hboFakb9Fu9Wdqn/QldAd9FSVzsbAlCd F2SG+fnfY+M34VmN1XlIJc7P8/RY0pdhmcWW13Zn/q/Ik=; Received: (qmail 14524 invoked by alias); 4 Mar 2013 15:33:30 -0000 Received: (qmail 14487 invoked by uid 22791); 4 Mar 2013 15:33:25 -0000 X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, KHOP_THREADED, RCVD_IN_DNSWL_NONE, RCVD_IN_HOSTKARMA_NO, RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from caibbdcaaaaf.dreamhost.com (HELO homiemail-a46.g.dreamhost.com) (208.113.200.5) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 04 Mar 2013 15:33:14 +0000 Received: from homiemail-a46.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a46.g.dreamhost.com (Postfix) with ESMTP id 6E7FA3E4073; Mon, 4 Mar 2013 07:33:14 -0800 (PST) Received: from redwood.eagercon.com (c-50-148-128-197.hsd1.ca.comcast.net [50.148.128.197]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: eager@eagerm.com) by homiemail-a46.g.dreamhost.com (Postfix) with ESMTPSA id 984CA3E4055; Mon, 4 Mar 2013 07:33:13 -0800 (PST) Message-ID: <5134BEB9.8080004@eagerm.com> Date: Mon, 04 Mar 2013 07:33:13 -0800 From: Michael Eager User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130219 Thunderbird/17.0.3 MIME-Version: 1.0 To: David Holsgrove CC: "gcc-patches@gcc.gnu.org" , "Michael Eager (eager@eagercon.com)" , John Williams , "Edgar E. Iglesias (edgar.iglesias@gmail.com)" , Vinod Kathail , Vidhumouli Hunsigida , Nagaraju Mekala , Tom Shui Subject: Re: [Patch, microblaze]: Add microblaze_legitimate_pic_operand method References: In-Reply-To: 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 On 02/10/2013 10:40 PM, David Holsgrove wrote: > Add microblaze_legitimate_pic_operand method > > Prevents ICE where insn contains an invalid address > > Changelog > > 2013-02-11 David Holsgrove > > * config/microblaze/microblaze.c > (microblaze_valid_pic_const): New function > (microblaze_legitimate_pic_operand): Likewise > * config/microblaze/microblaze.h > (LEGITIMATE_PIC_OPERAND_P): calls new > function microblaze_legitimate_pic_operand Committed revision 196434. Added * config/microblaze/microblaze-protos.h (microblaze_legitimate_pic_operand): Declare. Index: gcc/config/microblaze/microblaze-protos.h =================================================================== --- gcc/config/microblaze/microblaze-protos.h (revision 196431) +++ gcc/config/microblaze/microblaze-protos.h (working copy) @@ -49,6 +49,7 @@ extern void microblaze_declare_object (FILE *, const char *, const char *, const char *, int); extern void microblaze_asm_output_ident (const char *); +extern int microblaze_legitimate_pic_operand (rtx); #endif /* RTX_CODE */ /* Declare functions in microblaze-c.c. */