[Ada] Fix missing debug info for variant record

Eric Botcazou ebotcazou@adacore.com
Tue Oct 11 10:20:00 GMT 2016


The problem is the early folding applied to the expressions based on the 
discriminant selecting the variant.

Tested on x86_64-suse-linux, applied on the mainline.


2016-10-11  Pierre-Marie de Rodat  <derodat@adacore.com>

	* gcc-interface/utils2.c (build_binary_op): Add a NO_FOLD
	argument.  Disable folding when true.
	* gcc-interface/gigi.h (choices_to_gnu): Remove declaration.
	(build_binary_op): Update signature and comment.
	* gcc-interface/decl.c (choices_to_gnu): Make static.  Disable
	folding for all calls to build_binary_op.

-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-patch
Size: 6423 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20161011/7f2c1722/attachment.bin>


More information about the Gcc-patches mailing list