From patchwork Tue Aug 13 19:58:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 266913 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]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 11AF62C0165 for ; Wed, 14 Aug 2013 05:58:35 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:mime-version:content-type:message-id; q=dns; s= default; b=Mpb2tUILY3SgY3+NQKTBQMHIZmPOqysCiGbTVlpqRtMLq6Ow1f8Lm qTvJt+H7TBVGkBJbn5aRBdCAX8pXnaHzPPsDYHfgTMTO6M3oXqiktFyKHhWvIu2k PfKbh4vwIkDDVWKHBj8HTDsxesYK+enNbGnFRH5iMH3Lo5M/31sR7k= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:mime-version:content-type:message-id; s= default; bh=I0LeM2F2vy9HtYEJZJJ6GKu5P0s=; b=xj5KICZNFYGmqVsxlK+F X1rWN2ZFTeQl0dxJnf9v04pcH1DRkHqeOcqXz+yCPjFm6Zx6Qn0Q9hnHfTX1P/MW 0iUiMW4cUMqMq2n41QHG/zVeOtTIGB+j0l0T5Cf8dwmZulqSpOBtNtC043wYYH+A 0OZu3Y0m4qqQjTzy9NVFRyY= Received: (qmail 19115 invoked by alias); 13 Aug 2013 19:58:30 -0000 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 Received: (qmail 19106 invoked by uid 89); 13 Aug 2013 19:58:29 -0000 X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL, BAYES_00 autolearn=ham version=3.3.2 Received: from mel.act-europe.fr (HELO smtp.eu.adacore.com) (194.98.77.210) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 13 Aug 2013 19:58:29 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id A9C8E265A465 for ; Tue, 13 Aug 2013 21:58:27 +0200 (CEST) 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 VBkvnUfrexLW for ; Tue, 13 Aug 2013 21:58:27 +0200 (CEST) Received: from hermes.site (ADijon-552-1-15-198.w92-138.abo.wanadoo.fr [92.138.150.198]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.eu.adacore.com (Postfix) with ESMTPSA id 8B6192659070 for ; Tue, 13 Aug 2013 21:58:27 +0200 (CEST) From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: [Ada] Fix ICE in ASIS mode Date: Tue, 13 Aug 2013 21:58:26 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.34.10-0.6-desktop; KDE/4.4.4; x86_64; ; ) MIME-Version: 1.0 Message-Id: <201308132158.27030.ebotcazou@adacore.com> X-Virus-Found: No This disconnects a good chunk of the alias set circuitry in ASIS mode because it was bypassing kludges put in place for this mode specifically. Tested on x86_64-suse-linux, applied on the mainline. 2013-08-13 Eric Botcazou * gcc-interface/decl.c (gnat_to_gnu_entity): Do not bother about alias sets of derived types in ASIS mode. Index: gcc-interface/decl.c =================================================================== --- gcc-interface/decl.c (revision 201704) +++ gcc-interface/decl.c (working copy) @@ -5153,7 +5153,7 @@ gnat_to_gnu_entity (Entity_Id gnat_entit to conflict with Comp2 and an alias set copy is required. The language rules ensure the parent type is already frozen here. */ - if (Is_Derived_Type (gnat_entity)) + if (Is_Derived_Type (gnat_entity) && !type_annotate_only) { tree gnu_parent_type = gnat_to_gnu_type (Etype (gnat_entity)); relate_alias_sets (gnu_type, gnu_parent_type,