* [Ada] Remove IN parameters from Alfa section in ALI
@ 2011-09-02 9:22 Arnaud Charlet
0 siblings, 0 replies; only message in thread
From: Arnaud Charlet @ 2011-09-02 9:22 UTC (permalink / raw)
To: gcc-patches; +Cc: Yannick Moy
[-- 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;
-------------------
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-09-02 9:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-02 9:22 [Ada] Remove IN parameters from Alfa section in ALI Arnaud Charlet
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).