From: pmderodat Date: Wed, 21 Aug 2019 08:29:51 +0000 (+0000) Subject: [Ada] Avoid spurious error in GNATprove mode on non-null access types X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b4c01a1767ecf0d754e6163297d5dab9bef97955;p=thirdparty%2Fgcc.git [Ada] Avoid spurious error in GNATprove mode on non-null access types GNATprove directly handles non-null access checks, and requires that the frontend does not insert explicit checks in the form of conditional exceptions being raised. Now fixed. There is no impact on compilation. 2019-08-21 Yannick Moy gcc/ada/ * checks.adb (Install_Null_Excluding_Check): Do not install check in GNATprove mode. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@274780 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 65e57efea557..e422ee771da0 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2019-08-21 Yannick Moy + + * checks.adb (Install_Null_Excluding_Check): Do not install + check in GNATprove mode. + 2019-08-21 Yannick Moy * sem_spark.adb (Process_Path): Do nothing on address of diff --git a/gcc/ada/checks.adb b/gcc/ada/checks.adb index 61cabedacb6b..52b29fc9a3bd 100644 --- a/gcc/ada/checks.adb +++ b/gcc/ada/checks.adb @@ -7964,6 +7964,12 @@ package body Checks is return; end if; + -- In GNATprove mode, we do not apply the check + + if GNATprove_Mode then + return; + end if; + -- Otherwise install access check Insert_Action (N,