[Ada] Replace chopped string copy with renaming

Pierre-Marie de Rodat derodat@adacore.com
Wed Jul 7 16:24:50 GMT 2021


Avoid local string copy with renaming, which both make the code shorter
to read and should be marginally faster to execute. Code cleanup only
related to loading of compilation units; semantics is unaffected.

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

gcc/ada/

	* par.adb (Par): A local Name variable is now a renaming of a
	constant slice.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 891 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210707/c5af8a1e/attachment.bin>


More information about the Gcc-patches mailing list