From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13151 invoked by alias); 4 Jan 2011 12:31:12 -0000 Received: (qmail 13141 invoked by uid 22791); 4 Jan 2011 12:31:11 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST X-Spam-Check-By: sourceware.org Received: from mail-qy0-f175.google.com (HELO mail-qy0-f175.google.com) (209.85.216.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 04 Jan 2011 12:31:06 +0000 Received: by qyk8 with SMTP id 8so16004560qyk.20 for ; Tue, 04 Jan 2011 04:31:05 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.235.142 with SMTP id kg14mr19103569qcb.133.1294144265182; Tue, 04 Jan 2011 04:31:05 -0800 (PST) Received: by 10.229.214.131 with HTTP; Tue, 4 Jan 2011 04:31:05 -0800 (PST) Date: Tue, 04 Jan 2011 12:45:00 -0000 Message-ID: Subject: [patch middle-end]: Fix pointer cast warning for LLP64 in emit-rtl.c From: Kai Tietz To: GCC Patches Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-01/txt/msg00133.txt.bz2 Hello, ChangeLog gcc/ 2011-01-04 Kai Tietz * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t. Tested for i686-pc-cygwin and x86_64-w64-mingw32. Ok for apply? Regards, Kai Index: emit-rtl.c =================================================================== --- emit-rtl.c (revision 168457) +++ emit-rtl.c (working copy) @@ -325,7 +325,7 @@ { const reg_attrs *const p = (const reg_attrs *) x; - return ((p->offset * 1000) ^ (long) p->decl); + return (hashval_t) ((p->offset * 1000) ^ (intptr_t) p->decl); } /* Returns nonzero if the value represented by X (which is really a