[Ada] Reduce scope of local variables

Pierre-Marie de Rodat derodat@adacore.com
Wed Jul 7 16:25:00 GMT 2021


Code cleanup; semantics is unaffected.

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

gcc/ada/

	* sem_ch6.adb (Check_For_Primitive_Subprogram): Move
	declarations of local variables after nested subprogram bodies.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 877 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210707/1116a26a/attachment.bin>


More information about the Gcc-patches mailing list