[Ada] Adjust expansion of perfect hash function for Value

Pierre-Marie de Rodat derodat@adacore.com
Wed May 5 08:20:04 GMT 2021


This moves the declaration of the 4 tables to inside the function itself
for reasons explained in the code.

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

gcc/ada/

	* exp_imgv.ads (Build_Enumeration_Image_Tables): Adjust comment.
	* exp_imgv.adb (Build_Enumeration_Image_Tables): Add the
	declaration nodes of the 4 tables to the declaration list of the
	function body.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 4541 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210505/046d232c/attachment-0001.bin>


More information about the Gcc-patches mailing list