From patchwork Sun Dec 23 09:47:42 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 207954 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 735852C008E for ; Sun, 23 Dec 2012 20:47:54 +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=1356860874; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: From:To:Mail-Followup-To:Subject:Date:Message-ID:User-Agent: MIME-Version:Content-Type:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=Kess7L6ZTM86h4IqNiDM2jNPE4s=; b=MD3lbzkWuvRn/Du k4mWdv4bO7bXMCX8197ulw7lK0XlEByLVcGLMcuh9gvS9mtfpcEQfLsZKLWorJsY QLn4f/zW9UeZzp9Lwj5SMz5hc/FGZZfUZlKaXz4pYgIO+9KY6Kx3od6s+jNWq+5+ vEaiuN/EhFo5Pr4T48Tf6O0FOlhs= 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-Received:Received:From:To:Mail-Followup-To:Subject:Date:Message-ID:User-Agent:MIME-Version:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=tqQ2QPoufBEOYMEFLtebu+G3BksNTy8vsMQaQq/J6M/t3XVEuy8WyyphGGLqSu Ha0RzpuU+ppzV+JFZxpgUOoyL8tx5vl1YlTpB9yqUmw+XP/MI6H0ck8JopxXBbFs omyyv/3zJ7LSgn+0CyzrETJ9UmbF0RtYLMIzqwNtxm44E=; Received: (qmail 3282 invoked by alias); 23 Dec 2012 09:47:50 -0000 Received: (qmail 3271 invoked by uid 22791); 23 Dec 2012 09:47:50 -0000 X-SWARE-Spam-Status: No, hits=-3.2 required=5.0 tests=AWL, BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, KHOP_RCVD_TRUST, NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-wi0-f170.google.com (HELO mail-wi0-f170.google.com) (209.85.212.170) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 23 Dec 2012 09:47:46 +0000 Received: by mail-wi0-f170.google.com with SMTP id hq7so2784401wib.5 for ; Sun, 23 Dec 2012 01:47:45 -0800 (PST) X-Received: by 10.180.86.39 with SMTP id m7mr30334771wiz.1.1356256065593; Sun, 23 Dec 2012 01:47:45 -0800 (PST) Received: from localhost ([2.28.234.219]) by mx.google.com with ESMTPS id w5sm37752984wif.11.2012.12.23.01.47.43 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 23 Dec 2012 01:47:44 -0800 (PST) From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, rdsandiford@googlemail.com Subject: [committed] Fix gcc.target/mips/pr55315.c for LP64 Date: Sun, 23 Dec 2012 09:47:42 +0000 Message-ID: <87licpumkh.fsf@talisman.default> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 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 Fixes a warning seen with -mabi=64 on mips64-linux-gnu. The test was for an rtl optimisation, so the choice between "int" and "long" doesn't matter for the original ILP32 target. Tested on mips64-linux-gnu and applied. Richard gcc/testsuite/ * gcc.target/mips/pr55315.c: Cast to long rather than int. Index: gcc/testsuite/gcc.target/mips/pr55315.c =================================================================== --- gcc/testsuite/gcc.target/mips/pr55315.c 2012-11-27 18:52:27.000000000 +0000 +++ gcc/testsuite/gcc.target/mips/pr55315.c 2012-12-23 09:07:03.340059976 +0000 @@ -5,7 +5,7 @@ int f (void) { - return (((unsigned int) &data[0]) == 0xdeadbea0U); + return (((unsigned long) &data[0]) == 0xdeadbea0U); } /* { dg-final { scan-assembler-not "\tmove\t\\\$2,\\\$0" } } */