* [Ada] Fix PR ada/87396
@ 2018-09-24 10:38 Eric Botcazou
0 siblings, 0 replies; only message in thread
From: Eric Botcazou @ 2018-09-24 10:38 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 358 bytes --]
Enumeration types are unsigned in Ada so use 'unsigned char' instead of 'char'
for mapping Attribute_Id.
Tested x86-64/Linux, applied on the mainline.
2018-09-24 Eric Botcazou <ebotcazou@adacore.com>
PR ada/87396
* fe.h (Get_Attribute_Definition_Clause): Use 'unsigned char' instead
of 'char' as the type of the second parameter.
--
Eric Botcazou
[-- Attachment #2: p.diff --]
[-- Type: text/x-patch, Size: 477 bytes --]
Index: fe.h
===================================================================
--- fe.h (revision 264466)
+++ fe.h (working copy)
@@ -85,7 +85,7 @@ extern void Set_RM_Size (Entity_Id, Ui
extern Boolean Is_Entity_Name (Node_Id);
#define Get_Attribute_Definition_Clause einfo__get_attribute_definition_clause
-extern Node_Id Get_Attribute_Definition_Clause (Entity_Id, char);
+extern Node_Id Get_Attribute_Definition_Clause (Entity_Id, unsigned char);
/* errout: */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-09-24 10:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-24 10:38 [Ada] Fix PR ada/87396 Eric Botcazou
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).