From patchwork Wed Feb 6 11:54:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Charlet X-Patchwork-Id: 1037470 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-495373-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="ETPx3gl7"; 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 43vfxK4BQjz9sLw for ; Wed, 6 Feb 2019 22:54:12 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:mime-version:content-type; q=dns; s=default; b=qWNxlWGf3neesGUG5Ki7JeV/6bO32m1AJWfrSMsDprZ1yu8Cmr SD7nVnyhpp4Dfp1mnQY3fNXf1Ta3I3krA3ECsmHtuVDQ6R7N1NzzL08qiplR3yG8 GFG6WmrM1G7OpZP48t3nNPnB1Esv6WfNEEwR1IadhTbazNY5XLEwuc9GE= 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:date :from:to:cc:subject:message-id:mime-version:content-type; s= default; bh=wtMlKfWWRx3Lrxebhb2exvSB2uo=; b=ETPx3gl7Sa0Rbv4WXSEh DIeyIpkfTD281r6GdjI9GQjR2FBVw0x8wIV3DgvRBPShpyN3tx/MKO/mNJkEXzkP p7jri3qXRcVQg9cCoawkAV4lYw2fsyK9xIc4a5SLgiw9O+fp0Iy5XzSB+VYj9dNJ P1JQwlO58QlU2hwlw1BkGJ8= Received: (qmail 104582 invoked by alias); 6 Feb 2019 11:54:05 -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 104574 invoked by uid 89); 6 Feb 2019 11:54:05 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-11.9 required=5.0 tests=BAYES_00, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=bus, pipe, expired, violation X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 06 Feb 2019 11:54:02 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 3726D1161EB; Wed, 6 Feb 2019 06:54:01 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id f4S9dopRHPzJ; Wed, 6 Feb 2019 06:54:01 -0500 (EST) Received: from tron.gnat.com (tron.gnat.com [205.232.38.10]) by rock.gnat.com (Postfix) with ESMTP id 1DE48116086; Wed, 6 Feb 2019 06:54:01 -0500 (EST) Received: by tron.gnat.com (Postfix, from userid 4192) id 15EC14C6; Wed, 6 Feb 2019 06:54:01 -0500 (EST) Date: Wed, 6 Feb 2019 06:54:01 -0500 From: Arnaud Charlet To: gcc-patches@gcc.gnu.org Cc: Patrick Bernardi Subject: [Ada] fix gnatlib build on x32 runtime Message-ID: <20190206115401.GA10638@adacore.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) This has been reported on https://github.com/mattgodbolt/compiler-explorer-image/issues/161 The failure has been introduced 2018-11-14 when updating the list of signals in s-linux*.ads files, s-linux__x32.ads was forgotten. Tested on x86_64-pc-linux-gnu, committed on trunk. 2019-02-06 Arnaud Charlet * libgnarl/s-linux__x32.ads: Resync list of signals with s-linux.ads Index: libgnarl/s-linux__x32.ads =================================================================== --- libgnarl/s-linux__x32.ads (revision 268575) +++ libgnarl/s-linux__x32.ads (working copy) @@ -82,35 +82,36 @@ SIGILL : constant := 4; -- illegal instruction (not reset) SIGTRAP : constant := 5; -- trace trap (not reset) SIGIOT : constant := 6; -- IOT instruction - SIGABRT : constant := 6; -- used by abort, replace SIGIOT in the future + SIGABRT : constant := 6; -- used by abort, replace SIGIOT in the future SIGFPE : constant := 8; -- floating point exception SIGKILL : constant := 9; -- kill (cannot be caught or ignored) SIGBUS : constant := 7; -- bus error + SIGUSR1 : constant := 10; -- user defined signal 1 SIGSEGV : constant := 11; -- segmentation violation + SIGUSR2 : constant := 12; -- user defined signal 2 SIGPIPE : constant := 13; -- write on a pipe with no one to read it SIGALRM : constant := 14; -- alarm clock SIGTERM : constant := 15; -- software termination signal from kill - SIGUSR1 : constant := 10; -- user defined signal 1 - SIGUSR2 : constant := 12; -- user defined signal 2 + SIGSTKFLT : constant := 16; -- coprocessor stack fault (Linux) SIGCLD : constant := 17; -- alias for SIGCHLD SIGCHLD : constant := 17; -- child status change - SIGPWR : constant := 30; -- power-fail restart - SIGWINCH : constant := 28; -- window size change - SIGURG : constant := 23; -- urgent condition on IO channel - SIGPOLL : constant := 29; -- pollable event occurred - SIGIO : constant := 29; -- I/O now possible (4.2 BSD) - SIGLOST : constant := 29; -- File lock lost SIGSTOP : constant := 19; -- stop (cannot be caught or ignored) SIGTSTP : constant := 20; -- user stop requested from tty SIGCONT : constant := 18; -- stopped process has been continued SIGTTIN : constant := 21; -- background tty read attempted SIGTTOU : constant := 22; -- background tty write attempted + SIGURG : constant := 23; -- urgent condition on IO channel + SIGXCPU : constant := 24; -- CPU time limit exceeded + SIGXFSZ : constant := 25; -- filesize limit exceeded SIGVTALRM : constant := 26; -- virtual timer expired SIGPROF : constant := 27; -- profiling timer expired - SIGXCPU : constant := 24; -- CPU time limit exceeded - SIGXFSZ : constant := 25; -- filesize limit exceeded - SIGUNUSED : constant := 31; -- unused signal (GNU/Linux) - SIGSTKFLT : constant := 16; -- coprocessor stack fault (Linux) + SIGWINCH : constant := 28; -- window size change + SIGPOLL : constant := 29; -- pollable event occurred + SIGIO : constant := 29; -- I/O now possible (4.2 BSD) + SIGLOST : constant := 29; -- File lock lost + SIGPWR : constant := 30; -- power-fail restart + SIGSYS : constant := 31; -- bad system call + SIGUNUSED : constant := 31; -- unused signal (mapped to SIGSYS) SIG32 : constant := 32; -- glibc internal signal SIG33 : constant := 33; -- glibc internal signal SIG34 : constant := 34; -- glibc internal signal