[Ada] Simplify iteration over formal parameters for Global/Depends check

Pierre-Marie de Rodat derodat@adacore.com
Tue May 4 09:52:22 GMT 2021


Replace low-level First_Entity/Next_Entity with a high-level
First_Formal/Next_Formal. The new code is easier to debug, because we
don't even see local subprograms, objects, etc.

Tested on x86_64-pc-linux-gnu, committed on trunk

gcc/ada/

	* sem_prag.adb (Collect_Global_Item): Iterate directly over
	formals.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 758 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210504/3ef896c9/attachment-0001.bin>


More information about the Gcc-patches mailing list