From patchwork Fri Dec 9 08:51:06 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kai Tietz X-Patchwork-Id: 130321 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 714AB1007D6 for ; Fri, 9 Dec 2011 19:51:23 +1100 (EST) Received: (qmail 6952 invoked by alias); 9 Dec 2011 08:51:21 -0000 Received: (qmail 6943 invoked by uid 22791); 9 Dec 2011 08:51:20 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-gx0-f175.google.com (HELO mail-gx0-f175.google.com) (209.85.161.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 09 Dec 2011 08:51:06 +0000 Received: by ggnh1 with SMTP id h1so3154411ggn.20 for ; Fri, 09 Dec 2011 00:51:06 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.183.34 with SMTP id ej2mr267983obc.75.1323420666062; Fri, 09 Dec 2011 00:51:06 -0800 (PST) Received: by 10.182.154.65 with HTTP; Fri, 9 Dec 2011 00:51:06 -0800 (PST) Date: Fri, 9 Dec 2011 09:51:06 +0100 Message-ID: Subject: {patch ira-color.c]: Fix printf-formatter use for long-long type for windows native targets. From: Kai Tietz To: GCC Patches Cc: Richard Henderson 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 Hi, this patch fixes for windows native target print-formatter used about long-long type. ChangeLog 2011-12-09 Kai Tietz * ira-color.c (print_hard_regs_subforest): Use HOST_WIDEST_INT_PRINT_DEC instead of %lld. Tested for i686-w64-mingw32, x86_64-w64-mingw32, and x86_64-unknown-linux-gnu. Ok for apply? Kai Index: ira-color.c =================================================================== --- ira-color.c (revision 182092) +++ ira-color.c (working copy) @@ -498,7 +498,8 @@ fprintf (f, " "); fprintf (f, "%d:(", node->preorder_num); print_hard_reg_set (f, node->hard_regs->set, false); - fprintf (f, ")@%lld\n", node->hard_regs->cost); + fprintf (f, ")@" HOST_WIDEST_INT_PRINT_DEC "\n", + (HOST_WIDEST_INT) node->hard_regs->cost); print_hard_regs_subforest (f, node->first, level + 1); } }