This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r263098 - in /trunk/gcc: ada/ChangeLog ada/exp_...
- From: pmderodat at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 31 Jul 2018 09:56:05 -0000
- Subject: r263098 - in /trunk/gcc: ada/ChangeLog ada/exp_...
Author: pmderodat
Date: Tue Jul 31 09:56:04 2018
New Revision: 263098
URL: https://gcc.gnu.org/viewcvs?rev=263098&root=gcc&view=rev
Log:
[Ada] Wrong value after assignment of overlain record objects
This patch corrects an issue whereby objects of a record type with a
representation clause which are overlain by address would fail to get
assigned values properly when one or both of said objects were marked
volatile.
2018-07-31 Justin Squirek <squirek@adacore.com>
gcc/ada/
* exp_ch5.adb (Make_Field_Assign): Force temporarily generated
objects for assignment of overlaid user objects to be renamings
instead of constant declarations.
gcc/testsuite/
* gnat.dg/addr11.adb: New testcase.
Added:
trunk/gcc/testsuite/gnat.dg/addr11.adb
Modified:
trunk/gcc/ada/ChangeLog
trunk/gcc/ada/exp_ch5.adb
trunk/gcc/testsuite/ChangeLog