[Ada] Minor cleanup in translation of calls to subprograms

Pierre-Marie de Rodat derodat@adacore.com
Wed Nov 10 08:58:52 GMT 2021

This gets rid of the DECL_STUBBED_P macro and adjusts Call_to_gnu.

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


	* gcc-interface/ada-tree.h (DECL_STUBBED_P): Delete.
	* gcc-interface/decl.c (gnat_to_gnu_entity): Do not set it.
	* gcc-interface/trans.c (Call_to_gnu): Use GNAT_NAME local variable
	and adjust accordingly.  Replace test on DECL_STUBBED_P with direct
	test on Convention and move it down in the processing.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 8276 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20211110/6224344f/attachment.bin>

More information about the Gcc-patches mailing list