From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 128973 invoked by alias); 23 Nov 2015 11:15:02 -0000 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 Received: (qmail 128895 invoked by uid 89); 23 Nov 2015 11:15:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.2 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 X-HELO: smtp.eu.adacore.com Received: from mel.act-europe.fr (HELO smtp.eu.adacore.com) (194.98.77.210) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 23 Nov 2015 11:15:00 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 0D9023524FC1; Mon, 23 Nov 2015 12:14:58 +0100 (CET) Received: from smtp.eu.adacore.com ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EbNRxPd1-N95; Mon, 23 Nov 2015 12:14:57 +0100 (CET) Received: from chelles.act-europe.fr (chelles.act-europe.fr [10.10.0.160]) by smtp.eu.adacore.com (Postfix) with ESMTP id EEF9A3524FB9; Mon, 23 Nov 2015 12:14:57 +0100 (CET) Received: by chelles.act-europe.fr (Postfix, from userid 525) id E7E0A1EA0445; Mon, 23 Nov 2015 12:14:57 +0100 (CET) Date: Mon, 23 Nov 2015 11:24:00 -0000 From: Arnaud Charlet To: Eric Botcazou Cc: gcc-patches@gcc.gnu.org, Jan Hubicka Subject: Re: Fix lto-symtab ICE during Ada LTO bootstrap Message-ID: <20151123111457.GA8892@adacore.com> References: <20151121182122.GB23225@kam.mff.cuni.cz> <20151123012037.GA46935@kam.mff.cuni.cz> <20151123095939.GA7449@adacore.com> <43889409.Q8BpRmYV9r@polaris> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43889409.Q8BpRmYV9r@polaris> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2015-11/txt/msg02688.txt.bz2 > > So there is indeed no point in trying to fix one or two cases, and we should > > instead instruct LTO somehow to treat System.Address is compatible with > > void* otherwise we'll run into endless troubles on that since using > > System.Address as void* is very common practice in Ada code. > > Maybe we could apply this special treatment only to the void_ptr subtype of > Interfaces.C.Extensions and require its use when interfacing with C. No, Interfaces.C.Extensions is non portable, so almost no Ada code out there is using it. As I said, existing Ada code is using System.Address all the time, so requiring any code change in this area is just a non starter. We'd rather require that people don't use LTO with Ada rather than tell them to use Interfaces.C.Extensions, that would be more constructive :-) Arno