]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Improve generated code for initialization of atomics
authorpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Aug 2019 09:49:32 +0000 (09:49 +0000)
committerpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Aug 2019 09:49:32 +0000 (09:49 +0000)
commitd3589e82cdeb9c454d31a34efd672687368f619d
treeca2c536050580d7137170f4a1d37b9e1f2a0ce96
parenta9cd3578cdc1682cd8e5f4f2be3526e553b2edb1
[Ada] Improve generated code for initialization of atomics

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

No change in behavior; no test.

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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@274728 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/freeze.adb