[Ada] Simplify detection of statically overlapping slices

Pierre-Marie de Rodat derodat@adacore.com
Mon Jun 21 11:05:33 GMT 2021


Statically matching slices in actual parameters are now detected in the
Denotes_Same_Object routine by directly examining the slice indexes and
by a dubious recursive call.

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

gcc/ada/

	* sem_util.adb (Denotes_Same_Object): Simplify handling of
	slices.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 1471 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210621/78380b41/attachment-0001.bin>


More information about the Gcc-patches mailing list