From patchwork Fri Oct 31 11:43:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Charlet X-Patchwork-Id: 405289 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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 6924D14007D for ; Fri, 31 Oct 2014 22:43:38 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:mime-version:content-type; q=dns; s=default; b=TsjVFLREkF3CtH/9TI4q+Omp9rzAWtQzlLqV1v+3bq/mPT1VWE AYBX3UrV+cTqgGaDwOLeT310MaH9gyzfNEqT09vJJ4qqv8sincjj6khPG2XuM0TN kpwPAbxmjNXOfoV/nZMLcsK6VUAYAGU2Jt3oYt5D7FwTD9OuncthGy+cU= 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:date :from:to:cc:subject:message-id:mime-version:content-type; s= default; bh=IVhHCEHim53cAQ4VAkXUvv4YZEg=; b=XwBeDqYl8ogO2+Zve+CU 1OJ9lpKYitFicNr+3xuE3JyfeKU6Dr58NK5/L9qUz0kjUBlJ7prxno4WU3RIu/Tu WHZnYO8H4kQtJWAD+cm2NOLzMj3FpPi7lXEbaThtiMtXdhBGoQnbaP+ru46Th3pS l0Li8lQ457WDkk+7q5Ki8ck= Received: (qmail 29841 invoked by alias); 31 Oct 2014 11:43:24 -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 29756 invoked by uid 89); 31 Oct 2014 11:43:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL, BAYES_00 autolearn=ham version=3.3.2 X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 31 Oct 2014 11:43:22 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 89DE9116470; Fri, 31 Oct 2014 07:43:20 -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 zo-E2J3k5Sxp; Fri, 31 Oct 2014 07:43:20 -0400 (EDT) Received: from kwai.gnat.com (kwai.gnat.com [205.232.38.4]) by rock.gnat.com (Postfix) with ESMTP id 774D411646F; Fri, 31 Oct 2014 07:43:20 -0400 (EDT) Received: by kwai.gnat.com (Postfix, from userid 4192) id 764A591A83; Fri, 31 Oct 2014 07:43:20 -0400 (EDT) Date: Fri, 31 Oct 2014 07:43:20 -0400 From: Arnaud Charlet To: gcc-patches@gcc.gnu.org Cc: Yannick Moy Subject: [Ada] Switch -gnatp should have no effect in GNATprove mode Message-ID: <20141031114320.GA3125@adacore.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) In GNATprove mode for formal verification, the presence or absence of switch -gnatp should have not effect. This was not the case, leading to missing proofs in GNATprove for overflow/range/division checks when -gnatp was used. Now fixed. Tested on x86_64-pc-linux-gnu, committed on trunk 2014-10-31 Yannick Moy * gnat1drv.adb (Adjust_Global_Switches): Explicitly mark language checks as not suppressed in GNATprove mode. Index: gnat1drv.adb =================================================================== --- gnat1drv.adb (revision 216925) +++ gnat1drv.adb (working copy) @@ -363,6 +363,12 @@ -- happens anyway because this expansion is simply not done in the -- SPARK version of the expander. + -- On the contrary, we need to enable explicitly all language checks, + -- as they may have been marked as suppressed by the use of switch + -- -gnatp + + Suppress_Options.Suppress := (others => False); + -- Turn off dynamic elaboration checks: generates inconsistencies in -- trees between specs compiled as part of a main unit or as part of -- a with-clause.