From patchwork Sun Oct 23 20:17:14 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 121242 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 AA29F1007D1 for ; Mon, 24 Oct 2011 07:22:02 +1100 (EST) Received: (qmail 5400 invoked by alias); 23 Oct 2011 20:22:00 -0000 Received: (qmail 5391 invoked by uid 22791); 23 Oct 2011 20:22:00 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 23 Oct 2011 20:21:26 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 1D431CB027F; Sun, 23 Oct 2011 22:21:26 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8qbRrh9tw3-7; Sun, 23 Oct 2011 22:21:16 +0200 (CEST) Received: from [192.168.1.2] (bon31-9-83-155-120-49.fbx.proxad.net [83.155.120.49]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id 24B67CB01EF; Sun, 23 Oct 2011 22:21:15 +0200 (CEST) From: Eric Botcazou To: Gerald Pfeifer Subject: Re: Bootstrap failure in tree-object-size.c due to -Wnarrowing (was: [C++ Patch] PR 50810) Date: Sun, 23 Oct 2011 22:17:14 +0200 User-Agent: KMail/1.9.9 Cc: gcc-patches@gcc.gnu.org, Paolo Carlini , Jason Merrill References: In-Reply-To: MIME-Version: 1.0 Message-Id: <201110232217.15385.ebotcazou@adacore.com> 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 > The code in question is > > static unsigned HOST_WIDE_INT unknown[4] = { -1, -1, 0, 0 }; > > This is on amd64-unknown-freebsd8.0, though I am puzzled it does not > seem to trigger for other 64-bit platforms? It does trigger on Linux. I guess the patch wasn't bootstrapped. There is another problem in Ada. Fixed thusly. 2011-10-23 Eric Botcazou * gcc-interface/decl.c (create_concat_name): Add explicit cast. Index: gcc-interface/decl.c =================================================================== --- gcc-interface/decl.c (revision 180235) +++ gcc-interface/decl.c (working copy) @@ -8976,7 +8976,7 @@ create_concat_name (Entity_Id gnat_entit if (suffix) { - String_Template temp = {1, strlen (suffix)}; + String_Template temp = {1, (int) strlen (suffix)}; Fat_Pointer fp = {suffix, &temp}; Get_External_Name_With_Suffix (gnat_entity, fp); }