From patchwork Tue Apr 22 06:26:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhenqiang Chen X-Patchwork-Id: 28764 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f69.google.com (mail-pa0-f69.google.com [209.85.220.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EE10820341 for ; Tue, 22 Apr 2014 06:26:33 +0000 (UTC) Received: by mail-pa0-f69.google.com with SMTP id fb1sf22863080pad.4 for ; Mon, 21 Apr 2014 23:26:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:mailing-list:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:sender :delivered-to:mime-version:date:message-id:subject:from:to:cc :x-original-sender:x-original-authentication-results:content-type; bh=4kFPoXS+9D7+HBYpGnaxU1cKAUfdYv0yOsEAIi86eNM=; b=CcX/V1JVtJPRAzbvbGv+KO8eE0O9a3a3DQ5IK9mPmY5+//GWvwyIBPTTWTuPabXmmU i2E36acPhs/7utzfJamPnpmzwllj14M0JCfKe4UesuFLnefqvX62N5nmt9gHMoqiK+De YfbguUcYw/i4uJKzoxl12i0UcuQs1z/zgTKzY/aKdNU9bsU3RKvL4GAfUheaHWFd0hjI 1SYLAZbkOk8sb/0B/T0hIjITmNmCM4CIxAaKn8A1p20oNcd6IfxnF6tOZb+Jgb5djXlb M28asXeBji6pgceqGugv/kFee0yjr1je+2yTYEJ2B6oWzGAthJkTO99e5mgSb/0dqaqF Yqjg== X-Gm-Message-State: ALoCoQmohBCO4lp+aaNRkjxXj9qJZqpNoPMFA5xqRCImJOdl/9kvKqPHuUbAMr4qciXVQLgSmMXW X-Received: by 10.68.134.233 with SMTP id pn9mr21285419pbb.5.1398147992922; Mon, 21 Apr 2014 23:26:32 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.95.84 with SMTP id h78ls669048qge.54.gmail; Mon, 21 Apr 2014 23:26:32 -0700 (PDT) X-Received: by 10.52.90.37 with SMTP id bt5mr30300280vdb.7.1398147992470; Mon, 21 Apr 2014 23:26:32 -0700 (PDT) Received: from mail-vc0-x233.google.com (mail-vc0-x233.google.com [2607:f8b0:400c:c03::233]) by mx.google.com with ESMTPS id at8si6712497vec.91.2014.04.21.23.26.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Apr 2014 23:26:32 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c03::233 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c03::233; Received: by mail-vc0-f179.google.com with SMTP id ij19so2038499vcb.24 for ; Mon, 21 Apr 2014 23:26:32 -0700 (PDT) X-Received: by 10.220.250.203 with SMTP id mp11mr35144551vcb.2.1398147992046; Mon, 21 Apr 2014 23:26:32 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp346147vcb; Mon, 21 Apr 2014 23:26:31 -0700 (PDT) X-Received: by 10.68.130.137 with SMTP id oe9mr41938205pbb.21.1398147991242; Mon, 21 Apr 2014 23:26:31 -0700 (PDT) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id qf5si22137650pac.375.2014.04.21.23.26.30 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Apr 2014 23:26:31 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-365549-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 5543 invoked by alias); 22 Apr 2014 06:26:17 -0000 Mailing-List: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org Precedence: list 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 5534 invoked by uid 89); 22 Apr 2014 06:26:17 -0000 X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-la0-f50.google.com Received: from mail-la0-f50.google.com (HELO mail-la0-f50.google.com) (209.85.215.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 22 Apr 2014 06:26:16 +0000 Received: by mail-la0-f50.google.com with SMTP id pv20so4012379lab.9 for ; Mon, 21 Apr 2014 23:26:12 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.152.18.135 with SMTP id w7mr29828923lad.29.1398147972562; Mon, 21 Apr 2014 23:26:12 -0700 (PDT) Received: by 10.112.162.170 with HTTP; Mon, 21 Apr 2014 23:26:12 -0700 (PDT) Date: Tue, 22 Apr 2014 14:26:12 +0800 Message-ID: Subject: [PATCH, ARM] Trunk build fail From: Zhenqiang Chen To: "gcc-patches@gcc.gnu.org" Cc: Ramana Radhakrishnan , Richard Earnshaw X-IsSubscribed: yes X-Original-Sender: zhenqiang.chen@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c03::233 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=pass header.i=@gcc.gnu.org X-Google-Group-Id: 836684582541 Hi, ARM trunk build fail from @209484, since it requires the argument of GET_MODE_SIZE to be "enum machine_mode". gcc/gcc/config/arm/arm.c:21433:13: error: invalid conversion from 'int' to 'machine_mode' [-fpermissive] ... Build OK with the patch. OK for trunk? Thanks! -Zhenqiang 2014-04-22 Zhenqiang Chen * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure GET_MODE_SIZE argument is enum machine_mode. if (GET_MODE_SIZE (mode) != 4 || !REG_P (x)) @@ -21654,7 +21654,7 @@ arm_print_operand (FILE *stream, rtx x, int code) number into a D register number and element index. */ case 'z': { - int mode = GET_MODE (x); + enum machine_mode mode = GET_MODE (x); int regno; if (GET_MODE_SIZE (mode) != 2 || !REG_P (x)) @@ -25894,7 +25894,7 @@ thumb_exit (FILE *f, int reg_containing_return_addr) int pops_needed; unsigned available; unsigned required; - int mode; + enum machine_mode mode; int size; int restore_a4 = FALSE; diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 773c353..822060d 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -21427,7 +21427,7 @@ arm_print_operand (FILE *stream, rtx x, int code) register. */ case 'p': { - int mode = GET_MODE (x); + enum machine_mode mode = GET_MODE (x); int regno; if (GET_MODE_SIZE (mode) != 8 || !REG_P (x)) @@ -21451,7 +21451,7 @@ arm_print_operand (FILE *stream, rtx x, int code) case 'P': case 'q': { - int mode = GET_MODE (x); + enum machine_mode mode = GET_MODE (x); int is_quad = (code == 'q'); int regno; @@ -21487,7 +21487,7 @@ arm_print_operand (FILE *stream, rtx x, int code) case 'e': case 'f': { - int mode = GET_MODE (x); + enum machine_mode mode = GET_MODE (x); int regno; if ((GET_MODE_SIZE (mode) != 16 @@ -21620,7 +21620,7 @@ arm_print_operand (FILE *stream, rtx x, int code) /* Translate an S register number into a D register number and element index. */ case 'y': { - int mode = GET_MODE (x); + enum machine_mode mode = GET_MODE (x); int regno;