[Ada] Improve generated code for initialization of atomics

Pierre-Marie de Rodat derodat@adacore.com
Tue Aug 20 09:51:00 GMT 2019


This patch makes the temp for initialization of an atomic variable be
constant.

No change in behavior; no test.

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

2019-08-20  Bob Duff  <duff@adacore.com>

gcc/ada/

	* freeze.adb (Is_Atomic_VFA_Aggregate): Make the temp for
	initialization of the atomic variable be constant. This is
	cleaner, and might improve efficiency.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 380 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190820/540bfc30/attachment.bin>


More information about the Gcc-patches mailing list