From patchwork Fri Dec 9 08:52:03 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kai Tietz X-Patchwork-Id: 130322 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 231D91007D6 for ; Fri, 9 Dec 2011 19:52:18 +1100 (EST) Received: (qmail 7675 invoked by alias); 9 Dec 2011 08:52:17 -0000 Received: (qmail 7665 invoked by uid 22791); 9 Dec 2011 08:52:16 -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:52:03 +0000 Received: by ggnh1 with SMTP id h1so3155229ggn.20 for ; Fri, 09 Dec 2011 00:52:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.217.3 with SMTP id ou3mr272172obc.15.1323420723167; Fri, 09 Dec 2011 00:52:03 -0800 (PST) Received: by 10.182.154.65 with HTTP; Fri, 9 Dec 2011 00:52:03 -0800 (PST) Date: Fri, 9 Dec 2011 09:52:03 +0100 Message-ID: Subject: {patch implicit-zee.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 * implicit-zee.c (find_and_remove_ze): 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: implicit-zee.c =================================================================== --- implicit-zee.c (revision 182092) +++ implicit-zee.c (working copy) @@ -944,10 +944,12 @@ VEC_free (rtx, heap, zeinsn_del_list); if (dump_file && num_ze_opportunities > 0) - fprintf (dump_file, "\n %s : num_zee_opportunities = %lld " - "num_realized = %lld \n", + fprintf (dump_file, "\n %s : num_zee_opportunities = " + HOST_WIDEST_INT_PRINT_DEC + " num_realized = " HOST_WIDEST_INT_PRINT_DEC "\n", current_function_name (), - num_ze_opportunities, num_realized); + (HOST_WIDEST_INT) num_ze_opportunities, + (HOST_WIDEST_INT) num_realized); df_finish_pass (false); return 0;