[Ada] Refine conditions for calling Copy_Bitfield

Pierre-Marie de Rodat derodat@adacore.com
Tue Sep 17 08:06:00 GMT 2019


Avoid calling Copy_Bitfield if there are volatile or independent
components that might be read or written. The test is conservative.

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

2019-09-17  Bob Duff  <duff@adacore.com>

gcc/ada/

	* exp_ch5.adb (Expand_Assign_Array_Loop_Or_Bitfield): Add tests
	for potential volatile or independent components.
	* libgnat/s-bituti.adb (Copy_Small_Bitfield,
	Copy_Large_Bitfield): Move declarations to more appropriate
	place.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 4780 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190917/637be764/attachment.bin>


More information about the Gcc-patches mailing list