[Ada] Fix varsize node name conflict

Pierre-Marie de Rodat derodat@adacore.com
Thu Jun 17 14:33:10 GMT 2021


The enumeration literals in type Node_Field were overloading the getter
functions, which causes gdb to be confused.  Same for Entity_Field.

This patch prefixes all the enumeration literals with "F_", to
disambiguate.

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

gcc/ada/

	* gen_il-gen.adb, gen_il-internals.ads: Generate field
	enumeration literals with "F_" prefix.  Update all generated
	references accordingly.
	* atree.adb, einfo-utils.adb, sem_ch3.adb, sem_ch5.adb,
	sem_ch6.adb, sem_ch8.adb, sinfo-cn.adb, sinfo-utils.adb,
	sinfo-utils.ads, treepr.adb: Add "F_" prefix to all uses of the
	field enumeration literals.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 24430 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210617/40dd266a/attachment-0001.bin>


More information about the Gcc-patches mailing list