[Ada] Fix debug info for character subtypes

Eric Botcazou ebotcazou@adacore.com
Wed Dec 7 11:28:00 GMT 2016


This fixes a regression present on the mainline and 6 branch for the debug 
info of character subtypes, whose bounds are output as signed instead of 
unsigned values as per the language.

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


2016-12-07  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
	Also call finish_character_type on Character subtypes.
	* gcc-interface/utils.c (finish_character_type): Deal with subtypes.

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


More information about the Gcc-patches mailing list