From patchwork Thu Sep 17 02:25:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Bowman X-Patchwork-Id: 518674 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id C3FDB1401DA for ; Thu, 17 Sep 2015 12:26:31 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=XkYyOOOn; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:content-type :content-transfer-encoding:mime-version; q=dns; s=default; b=eQQ W0hGT15/SIEcuFs69XSInmhrI6BOO11Z5z+GkzvK3UqV8A7COkgr3oFnKKKk5nbM YvfFBFiWP430Hez1TkNF/CGr2ESCbJZ6KR3eGuc+PUVIaEaqHbO4eGAcSzxcwgql 4mSi6TMYS+2RxbvkH+EcQoTgDRdgoTEAFk/WhfaA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:content-type :content-transfer-encoding:mime-version; s=default; bh=1VmHAX1yo 9CStgHISFusEx/3u7s=; b=XkYyOOOn+ne0cE738xTIoUge+4YcMR26qtzgk/+Iu MCCkWw8YzuNMcTBGIN468wNsb39kNyJzpydsWaVZrplBJjZVVqa9ov4t4OJ4EO0V TT9V4H6QaAoVaCyIjHf3ec7VuDq1CiWoJcrZKkKQBph2rbyY3KGgtPLHMnMJIcy+ to= Received: (qmail 55256 invoked by alias); 17 Sep 2015 02:26:21 -0000 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 Received: (qmail 55134 invoked by uid 89); 17 Sep 2015 02:26:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.5 required=5.0 tests=AWL, BAYES_40, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 X-HELO: smtp-out6.electric.net Received: from smtp-out6.electric.net (HELO smtp-out6.electric.net) (192.162.217.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 17 Sep 2015 02:26:19 +0000 Received: from 1ZcOts-00043a-TO by out6b.electric.net with emc1-ok (Exim 4.85) (envelope-from ) id 1ZcOts-00043q-UN for gcc-patches@gcc.gnu.org; Wed, 16 Sep 2015 19:26:16 -0700 Received: by emcmailer; Wed, 16 Sep 2015 19:26:16 -0700 Received: from [188.39.184.227] (helo=GLAEXCH1.ftdi.local) by out6b.electric.net with esmtps (TLSv1:AES128-SHA:128) (Exim 4.85) (envelope-from ) id 1ZcOts-00043a-TO for gcc-patches@gcc.gnu.org; Wed, 16 Sep 2015 19:26:16 -0700 Received: from GLAEXCH3.ftdi.local ([172.16.0.161]) by glaexch1 ([172.16.0.121]) with mapi id 14.01.0438.000; Thu, 17 Sep 2015 03:25:27 +0100 From: James Bowman To: "gcc-patches@gcc.gnu.org" Subject: [patch committed FT32] Fix address space predicate Date: Thu, 17 Sep 2015 02:25:26 +0000 Message-ID: MIME-Version: 1.0 X-Outbound-IP: 188.39.184.227 X-Env-From: james.bowman@ftdichip.com X-PolicySMART: 3094660 The attached patch fixes the FT32's memory address space predicate. [gcc] 2015-09-16 James Bowman * config/ft32/ft32.c Fix the memory address space predicate. Index: gcc/config/ft32/ft32.c =================================================================== --- gcc/config/ft32/ft32.c (revision 227840) +++ gcc/config/ft32/ft32.c (working copy) @@ -745,12 +745,8 @@ ft32_arg_partial_bytes (cumulative_args_ int ft32_is_mem_pm (rtx o) { - if (GET_CODE (o) != MEM) - return false; - if (MEM_EXPR (o)) - return TYPE_ADDR_SPACE (TREE_TYPE (MEM_EXPR (o))) == ADDR_SPACE_PM; - else - return MEM_ADDR_SPACE (o) == ADDR_SPACE_PM; + return (MEM_P (o) + && !ADDR_SPACE_GENERIC_P (MEM_ADDR_SPACE (o))); } /* The Global `targetm' Variable. */