[Ada] Fix PR ada/92362

Eric Botcazou ebotcazou@adacore.com
Mon Nov 25 10:57:00 GMT 2019


This is a regression present on mainline and 9 branch: the expression of an 
Address aspect is elaborated twice (if it has side effects) because of a silly 
mistake made in an ealier change.

Tested on x86_64-suse-linux, applied on the mainline and 9 branch.


2019-11-25  Eric Botcazou  <ebotcazou@adacore.com>

	PR ada/92362
	* gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
	Use a temporary instead of clobbering the result with a freeze node.


2019-11-25  Eric Botcazou  <ebotcazou@adacore.com>

	* gnat.dg/addr14.adb: New test.

-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-patch
Size: 1346 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20191125/6270c567/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: addr14.adb
Type: text/x-adasrc
Size: 368 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20191125/6270c567/attachment-0001.bin>


More information about the Gcc-patches mailing list