From patchwork Sun Nov 3 16:37:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 2005758 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XhKyp177hz1xwV for ; Mon, 4 Nov 2024 03:37:50 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 572433857705 for ; Sun, 3 Nov 2024 16:37:47 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from sonata.ens-lyon.org (sonata.ens-lyon.org [140.77.166.138]) by sourceware.org (Postfix) with ESMTPS id 84C933858D20 for ; Sun, 3 Nov 2024 16:37:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 84C933858D20 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=ens-lyon.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=bounce.ens-lyon.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 84C933858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=140.77.166.138 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730651841; cv=none; b=EgEzu7rXGKpodRyYi0ZjkOq3JYwXJcHbIMqybPzGab+vsmwlR+kmDgwzR6qc8I/GnvbnnbITtgE5AbAqm/4bZPe9Ya4ajYgy9amuzuytYMTIqZQGR8E8G+4RFiyJP87Cjc2cQQsLfzT3lQy/3YDUX85/Ek7hwTZL/d+qmJk17Ho= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730651841; c=relaxed/simple; bh=WGQ4uZ97ozJdLZbzCykpfNv3FhETx9OtkdgiVOw+ENc=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=VrlVQpqNAXAs4GF9IoMM6PSe1hXn6teNv8DOL99sGICgNyrCopxCxpy7IHVjEEVRLAuWkBJeXIAXu7Jf/P19px5tePRsMr94RVQ+PC6j4ims4HgVHbR9Pjtjs03k5Dt7raGMzgO8NCUIEws1GRx2ZKbHqqZpimutbRBCVC6mGU8= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from localhost (localhost [127.0.0.1]) by sonata.ens-lyon.org (Postfix) with ESMTP id B0612A1B89; Sun, 3 Nov 2024 17:37:17 +0100 (CET) Received: from sonata.ens-lyon.org ([127.0.0.1]) by localhost (sonata.ens-lyon.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Lfa_ilgpXJnU; Sun, 3 Nov 2024 17:37:17 +0100 (CET) Received: from begin.home (aaubervilliers-652-1-289-58.w82-121.abo.wanadoo.fr [82.121.86.58]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by sonata.ens-lyon.org (Postfix) with ESMTPSA id 55307A1B86; Sun, 3 Nov 2024 17:37:16 +0100 (CET) Received: from samy by begin.home with local (Exim 4.98) (envelope-from ) id 1t7dbI-00000009Ls9-2TaA; Sun, 03 Nov 2024 17:37:16 +0100 From: Samuel Thibault To: gcc-patches@gcc.gnu.org Cc: Samuel Thibault , bug-hurd@gnu.org Subject: [PATCHv2 1/3] ada: Factorize bsd signal definitions Date: Sun, 3 Nov 2024 17:37:14 +0100 Message-ID: <20241103163716.2228976-2-samuel.thibault@ens-lyon.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241103163716.2228976-1-samuel.thibault@ens-lyon.org> References: <20241103163716.2228976-1-samuel.thibault@ens-lyon.org> MIME-Version: 1.0 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org They are all the same on all BSD-like systems (including GNU/Hurd). gcc/ada/ChangeLog: * libgnarl/a-intnam__freebsd.ads: Rename to... * libgnarl/a-intnam__bsd.ads: ... new file. * libgnarl/a-intnam__dragonfly.ads: Remove file. * Makefile.rtl (x86-kfreebsd, x86-gnuhurd, x86_64-kfreebsd, aarch64-freebsd, x86-freebsd, x86_64-freebsd): Use libgnarl/a-intnam__bsd.ads instead of libgnarl/a-intnam__freebsd.ads. * ada/Makefile.rtl (x86_64-dragonfly): Use libgnarl/a-intnam__bsd.ads instead of libgnarl/a-intnam__dragonfly.ads. Signed-off-by: Samuel Thibault --- gcc/ada/ChangeLog | 11 ++ gcc/ada/Makefile.rtl | 14 +- ...-intnam__freebsd.ads => a-intnam__bsd.ads} | 2 +- gcc/ada/libgnarl/a-intnam__dragonfly.ads | 136 ------------------ 4 files changed, 19 insertions(+), 144 deletions(-) rename gcc/ada/libgnarl/{a-intnam__freebsd.ads => a-intnam__bsd.ads} (99%) delete mode 100644 gcc/ada/libgnarl/a-intnam__dragonfly.ads diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 31c7b677bdf..b8e89fa0c62 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,14 @@ +2024-11-03 Samuel Thibault + + * libgnarl/a-intnam__freebsd.ads: Rename to... + * libgnarl/a-intnam__bsd.ads: ... new file. + * libgnarl/a-intnam__dragonfly.ads: Remove file. + * Makefile.rtl (x86-kfreebsd, x86-gnuhurd, x86_64-kfreebsd, + aarch64-freebsd, x86-freebsd, x86_64-freebsd): Use + libgnarl/a-intnam__bsd.ads instead of libgnarl/a-intnam__freebsd.ads. + * ada/Makefile.rtl (x86_64-dragonfly): Use libgnarl/a-intnam__bsd.ads + instead of libgnarl/a-intnam__dragonfly.ads. + 2024-10-29 David Malcolm PR other/116613 diff --git a/gcc/ada/Makefile.rtl b/gcc/ada/Makefile.rtl index a36f60170b5..c3d2e3f0e28 100644 --- a/gcc/ada/Makefile.rtl +++ b/gcc/ada/Makefile.rtl @@ -1684,7 +1684,7 @@ ifeq ($(strip $(filter-out %86 kfreebsd%,$(target_cpu) $(target_os))),) SELECTED_PAIRS=x86-kfreebsd LIBGNAT_TARGET_PAIRS = \ - a-intnam.ads. -- --- -- --- GNARL was developed by the GNARL team at Florida State University. -- --- Extensive contributions were provided by Ada Core Technologies, Inc. -- --- -- ------------------------------------------------------------------------------- - --- This is the DragonFly BSD THREADS version of this package - -with System.OS_Interface; - -package Ada.Interrupts.Names is - - -- All identifiers in this unit are implementation defined - - pragma Implementation_Defined; - - -- Beware that the mapping of names to signals may be many-to-one. There - -- may be aliases. Also, for all signal names that are not supported on - -- the current system the value of the corresponding constant will be zero. - - SIGHUP : constant Interrupt_ID := - System.OS_Interface.SIGHUP; -- hangup - - SIGINT : constant Interrupt_ID := - System.OS_Interface.SIGINT; -- interrupt (rubout) - - SIGQUIT : constant Interrupt_ID := - System.OS_Interface.SIGQUIT; -- quit (ASCD FS) - - SIGILL : constant Interrupt_ID := - System.OS_Interface.SIGILL; -- illegal instruction (not reset) - - SIGTRAP : constant Interrupt_ID := - System.OS_Interface.SIGTRAP; -- trace trap (not reset) - - SIGIOT : constant Interrupt_ID := - System.OS_Interface.SIGIOT; -- IOT instruction - - SIGABRT : constant Interrupt_ID := -- used by abort, - System.OS_Interface.SIGABRT; -- replace SIGIOT in the future - - SIGFPE : constant Interrupt_ID := - System.OS_Interface.SIGFPE; -- floating point exception - - SIGKILL : constant Interrupt_ID := - System.OS_Interface.SIGKILL; -- kill (cannot be caught or ignored) - - SIGBUS : constant Interrupt_ID := - System.OS_Interface.SIGBUS; -- bus error - - SIGSEGV : constant Interrupt_ID := - System.OS_Interface.SIGSEGV; -- segmentation violation - - SIGPIPE : constant Interrupt_ID := -- write on a pipe with - System.OS_Interface.SIGPIPE; -- no one to read it - - SIGALRM : constant Interrupt_ID := - System.OS_Interface.SIGALRM; -- alarm clock - - SIGTERM : constant Interrupt_ID := - System.OS_Interface.SIGTERM; -- software termination signal from kill - - SIGURG : constant Interrupt_ID := - System.OS_Interface.SIGURG; -- urgent condition on IO channel - - SIGSTOP : constant Interrupt_ID := - System.OS_Interface.SIGSTOP; -- stop (cannot be caught or ignored) - - SIGTSTP : constant Interrupt_ID := - System.OS_Interface.SIGTSTP; -- user stop requested from tty - - SIGCONT : constant Interrupt_ID := - System.OS_Interface.SIGCONT; -- stopped process has been continued - - SIGCHLD : constant Interrupt_ID := - System.OS_Interface.SIGCHLD; -- 4.3BSD's/POSIX name for SIGCLD - - SIGCLD : constant Interrupt_ID := - System.OS_Interface.SIGCLD; -- child status change - - SIGTTIN : constant Interrupt_ID := - System.OS_Interface.SIGTTIN; -- background tty read attempted - - SIGTTOU : constant Interrupt_ID := - System.OS_Interface.SIGTTOU; -- background tty write attempted - - SIGIO : constant Interrupt_ID := -- input/output possible, - System.OS_Interface.SIGIO; -- SIGPOLL alias (Solaris) - - SIGXCPU : constant Interrupt_ID := - System.OS_Interface.SIGXCPU; -- CPU time limit exceeded - - SIGXFSZ : constant Interrupt_ID := - System.OS_Interface.SIGXFSZ; -- filesize limit exceeded - - SIGVTALRM : constant Interrupt_ID := - System.OS_Interface.SIGVTALRM; -- virtual timer expired - - SIGPROF : constant Interrupt_ID := - System.OS_Interface.SIGPROF; -- profiling timer expired - - SIGWINCH : constant Interrupt_ID := - System.OS_Interface.SIGWINCH; -- window size change - - SIGUSR1 : constant Interrupt_ID := - System.OS_Interface.SIGUSR1; -- user defined signal 1 - - SIGUSR2 : constant Interrupt_ID := - System.OS_Interface.SIGUSR2; -- user defined signal 2 - -end Ada.Interrupts.Names;