[Ada] Small tweak to help GDB to display aliased dynamic array

Eric Botcazou ebotcazou@adacore.com
Fri Jan 27 08:54:00 GMT 2012


This isn't a regression, but the patch doesn't change the generated code, just 
creates a VAR_DECL for debugging purposes.

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


2012-01-27  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc-interface/decl.c (gnat_to_gnu_entity) <object>: For an aliased
	object with an unconstrained nominal subtype and if optimization isn't
	enabled, create a special VAR_DECL for debugging purposes.


-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-diff
Size: 3064 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120127/3b732546/attachment.bin>


More information about the Gcc-patches mailing list