[Ada] Fix issues with ignored ghost code and unnesting
Pierre-Marie de Rodat
derodat@adacore.com
Wed Dec 1 10:25:46 GMT 2021
Unnesting needs to be run after all ignored ghost code is removed
so that it doesn't try to put entities into activation records that will
be removed. Also, don't add subprograms that are ignored into the list
of inlined subprograms.
Tested on x86_64-pc-linux-gnu, committed on trunk
gcc/ada/
* frontend.adb (Frontend): Do unnesting after ignored ghost code
has been removed.
* inline.adb (Analyze_Inlined_Bodies): Don't put ignored ghost
entities on inlined subprogram list.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 1995 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20211201/7c3ffe28/attachment.bin>
More information about the Gcc-patches
mailing list