From: Arnaud Charlet <charlet@adacore.com>
To: gcc-patches@gcc.gnu.org
Cc: Yannick Moy <moy@adacore.com>
Subject: [Ada] Remove IN parameters from Alfa section in ALI
Date: Fri, 02 Sep 2011 09:22:00 -0000 [thread overview]
Message-ID: <20110902092223.GA11331@adacore.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 340 bytes --]
References to IN parameters are not considered in Alfa section, as these will
be translated as constants in the intermediate language for formal
verification.
Tested on x86_64-pc-linux-gnu, committed on trunk
2011-09-02 Yannick Moy <moy@adacore.com>
* lib-xref-alfa.adb (Is_Alfa_Reference): Ignore IN parameters in Alfa
references.
[-- Attachment #2: difs --]
[-- Type: text/plain, Size: 1066 bytes --]
Index: lib-xref-alfa.adb
===================================================================
--- lib-xref-alfa.adb (revision 178438)
+++ lib-xref-alfa.adb (working copy)
@@ -608,11 +608,20 @@
-- On non-callable entities, the only references of interest are
-- reads and writes.
- if Ekind (E) in Overloadable_Kind then
- return Typ = 's';
- else
- return Typ = 'r' or else Typ = 'm';
- end if;
+ case Ekind (E) is
+ when Overloadable_Kind =>
+ return Typ = 's';
+
+ -- References to IN parameters are not considered in Alfa
+ -- section, as these will be translated as constants in the
+ -- intermediate language for formal verification.
+
+ when E_In_Parameter =>
+ return False;
+
+ when others =>
+ return Typ = 'r' or else Typ = 'm';
+ end case;
end Is_Alfa_Reference;
-------------------
reply other threads:[~2011-09-02 9:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110902092223.GA11331@adacore.com \
--to=charlet@adacore.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=moy@adacore.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).