From patchwork Mon Sep 24 10:29:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 973896 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-486226-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=adacore.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="GZzJsNiK"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42JgSW3pXtz9s55 for ; Mon, 24 Sep 2018 20:30:00 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=Px03hNd7Z67BmhOM KD3WNlHbJGK8YeN6qBpqOL1Hw09/7kL8tyb3zKbZli5QIkX3eGoDQ+d5ziCSA7dJ z1kDlWpOPaB0cbdiuE7WqtMx+G7+MkyIF1/nV9jLhaW0V7Ah4BAcRHcW4LrW85XD T7Pe3ZHQNlkxIAw5VunGDKgDbGk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=default; bh=sPt/KO4pmyDj4cjqTGOBnm ychMc=; b=GZzJsNiK0mksVenuuO5sJOY/jNmuh3QYkx9X62TIeEOeJJZTbRvb0j Nops2t+baYnxzlaxl0bBn78+bJAPT4tB4RhY/5fcKHk3v5/udOEHYfoWM7ags9T0 1evDGplGQ7Co0UhuAKJhaWDsAnp6AN6ZGhr6mfHbud4Ptl+pdhX0w= Received: (qmail 34891 invoked by alias); 24 Sep 2018 10:29:53 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 34881 invoked by uid 89); 24 Sep 2018 10:29:52 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-10.7 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: smtp.eu.adacore.com Received: from mel.act-europe.fr (HELO smtp.eu.adacore.com) (194.98.77.210) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 24 Sep 2018 10:29:51 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 87C3081390 for ; Mon, 24 Sep 2018 12:29:49 +0200 (CEST) Received: from smtp.eu.adacore.com ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ioN7tUA4R6Mm for ; Mon, 24 Sep 2018 12:29:49 +0200 (CEST) Received: from polaris.localnet (bon31-6-88-161-99-133.fbx.proxad.net [88.161.99.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.eu.adacore.com (Postfix) with ESMTPSA id 6B9E78138F for ; Mon, 24 Sep 2018 12:29:49 +0200 (CEST) From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: [Ada] Fix PR ada/87396 Date: Mon, 24 Sep 2018 12:29:47 +0200 Message-ID: <4448091.Tj51xlamih@polaris> MIME-Version: 1.0 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 PR ada/87396 * fe.h (Get_Attribute_Definition_Clause): Use 'unsigned char' instead of 'char' as the type of the second parameter. 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: */