[Ada] Fix debug info glitches for character indexes

Eric Botcazou ebotcazou@adacore.com
Tue Feb 16 18:02:00 GMT 2016


This is another regression in the debug info, this time introduced on the 
mainline by my patch toggling the signedness of Character in Ada.

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


2016-02-16  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc-interface/gigi.h (maybe_debug_type): New inline function.
	* gcc-interface/misc.c (gnat_get_array_descr_info): Use it.
	Call maybe_character_value on the array bounds.  Get to the base type
	of the index type and call maybe_debug_type on it.
	* gcc-interface/utils.c (finish_character_type): Add special treatment
	for char_type_node.

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


More information about the Gcc-patches mailing list