From patchwork Thu Sep 1 11:00:25 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Charlet X-Patchwork-Id: 112871 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 6D79FB6F80 for ; Thu, 1 Sep 2011 21:00:46 +1000 (EST) Received: (qmail 32238 invoked by alias); 1 Sep 2011 11:00:44 -0000 Received: (qmail 32230 invoked by uid 22791); 1 Sep 2011 11:00:43 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 01 Sep 2011 11:00:26 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id F1E222BB0C1; Thu, 1 Sep 2011 07:00:25 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id cxGd89pEfPEn; Thu, 1 Sep 2011 07:00:25 -0400 (EDT) Received: from kwai.gnat.com (kwai.gnat.com [205.232.38.4]) by rock.gnat.com (Postfix) with ESMTP id A955C2BB134; Thu, 1 Sep 2011 07:00:25 -0400 (EDT) Received: by kwai.gnat.com (Postfix, from userid 4192) id A9E493FEE8; Thu, 1 Sep 2011 07:00:25 -0400 (EDT) Date: Thu, 1 Sep 2011 07:00:25 -0400 From: Arnaud Charlet To: gcc-patches@gcc.gnu.org Cc: Yannick Moy Subject: [Ada] ALI lines for with'ed units should be complete in Alfa mode Message-ID: <20110901110025.GA29467@adacore.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) 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 In Alfa mode, complete information is required so that back-end can retrieve Alfa information from suitable ALI files. Tested on x86_64-pc-linux-gnu, committed on trunk 2011-09-01 Yannick Moy * lib-writ.adb (Write_With_Lines): Always output complete information on "with" line in Alfa mode, as this is required by formal verification back-end. Index: lib-writ.adb =================================================================== --- lib-writ.adb (revision 178381) +++ lib-writ.adb (working copy) @@ -796,6 +796,12 @@ or else Nkind (Unit (Cunit)) in N_Generic_Renaming_Declaration) and then Generic_May_Lack_ALI (Fname)) + + -- In Alfa mode, always generate the dependencies on ALI + -- files, which are required to compute frame conditions + -- of subprograms. + + or else Alfa_Mode then Write_Info_Tab (25);