]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/ada/sem_ch4.adb
sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram used to record...
authorArnaud Charlet <charlet@gcc.gnu.org>
Wed, 8 Dec 2004 11:48:22 +0000 (12:48 +0100)
committerArnaud Charlet <charlet@gcc.gnu.org>
Wed, 8 Dec 2004 11:48:22 +0000 (12:48 +0100)
commit6e73e3ab00f849dc7facec6ad9c359e32ec67122
tree989970b9af1a7e9e16aa51e35019f0a92e6e283e
parent07233820c338516bc9978e28fe46e646e9e53197
sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram used to record an implicit dereference as a read operation on...

* sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
used to record an implicit dereference as a read operation on its
prefix when operating under -gnatc. Necessary to avoid spurious
'variable assigned but never read' warnings in that mode.
(Process_Indexed_Component, Analyze_Selected_Component): When the prefix
is a non-overloaded implicit dereference, call the above subprogram to
ensure proper recording of references.

From-SVN: r91892
gcc/ada/sem_ch4.adb