]> gcc.gnu.org Git - gcc.git/commit
ada: Add switch to disable expansion of assertions in CodePeer mode
authorPiotr Trojanek <trojanek@adacore.com>
Thu, 11 Apr 2024 08:04:19 +0000 (10:04 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 10 Jun 2024 09:03:58 +0000 (11:03 +0200)
commitba1b04fb59f555b1a641aa6e6a77cd0b902780dd
tree7734a3c1434bf53534e52cefee7215859ff1e750
parent8ce93cc22e06639ff82d2ec9e75da1f998dc70ad
ada: Add switch to disable expansion of assertions in CodePeer mode

A new debug switch -gnatd_k is added, which has only effect in CodePeer
mode. When enabled, assertion expressions are no longer expanded (which
is the default in the CodePeer mode); instead, their expansion needs to
be explicitly enabled by pragma Assertion_Policy.

gcc/ada/

* debug.adb (d_k): Use first available debug switch.
* gnat1drv.adb (Adjust_Global_Switches): If new debug switch is
active then don't expand assertion expressions by default.
gcc/ada/debug.adb
gcc/ada/gnat1drv.adb
This page took 0.054978 seconds and 5 git commands to generate.