This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Ada] Allow s-imgwch.adb to compile on 16-bit targets


Tested on i686-linux. Committed on mainline.

This unit is now part of the library build for the AAMP 16-bit target,
and the Val variables with type Natural were causing errors because
Natural is 16 bits on AAMP and the tests against 16#FFFF# were rejected
by the compiler. The fix is to use unsigned types of the appropriate sizes
in the Image functions (Unsigned_16 for Wide_Character and Unsigned_32 for
Wide_Wide_Character), which are more appropriate than Natural in any case.

2005-03-08  Gary Dismukes  <dismukes@adacore.com>

	* s-imgwch.adb: Add with and use of Interfaces.
	(Img_Wide_Character): Change type of Val to Unsigned_16.
	(Img_Wide_Wide_Character): Change type of Val to Unsigned_32.

Attachment: difs.30
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]