[Ada] Fix incorrect placement of freeze node with predicate

Pierre-Marie de Rodat derodat@adacore.com
Wed Jul 8 14:57:34 GMT 2020


This prevents the freezing mechanism from putting a node inside the
subprogram body generated for a predicate function, which can for
example happen for a function referenced in the predicate.

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

gcc/ada/

	* freeze.adb (In_Expanded_Body): Return true for the body of a
	generated predicate function.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 1559 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200708/8e315073/attachment-0001.bin>


More information about the Gcc-patches mailing list