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; From patchwork Sun Nov 3 16:37:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 2005757 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 4XhKyp4YXjz1xxy 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 EE0B1385800F for ; Sun, 3 Nov 2024 16:37:46 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from sonata.ens-lyon.org (domu-toccata.ens-lyon.fr [140.77.166.138]) by sourceware.org (Postfix) with ESMTPS id 2A4AA3858D33 for ; Sun, 3 Nov 2024 16:37:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2A4AA3858D33 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 2A4AA3858D33 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=1730651842; cv=none; b=CAxHAGyixw5w/yPMruMZMRn0UHxZ7fiHgq9FAlTLl+KRYcAuW+58hs7KAhtmyaePr5Oma5iID2m9wFDarO5UNJlPOcYoS3ipq5Mm2VBhjoE0MG7vNy6Rtqlahm8/5k+YTVjOPl62g73WlSe3r6kJ68+QHsLrIxyrEPfXtpUHtGE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730651842; c=relaxed/simple; bh=TG+NeE7/+QhB3unGNUwT0LqDJO7OzVi4Pam59CBAG4k=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=hArHXjggQ5KJZFsgqHSxEgXqGU8aaRc+25OdQmp40nUfwxIpuQQEtApsytZAvJAaHqWzyhsRk4upa5r09WX5gUOK40boIoQp+IcXRAAJbaCrv/yzM4IjhxiShFbb6ZiaSNFyTToTIvmhU9G1YDAkSEMfUOQ5MeHg3lnPAuMAmTc= 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 A8353A1B88; 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 5qdW1KcssRie; 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 5B8D5A1B89; Sun, 3 Nov 2024 17:37:16 +0100 (CET) Received: from samy by begin.home with local (Exim 4.98) (envelope-from ) id 1t7dbI-00000009LsG-2YZK; 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 2/3] ada: Fix GNU/Hurd priority range Date: Sun, 3 Nov 2024 17:37:15 +0100 Message-ID: <20241103163716.2228976-3-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 GNU/Mach currently uses a 0..63 range. gcc/ada/ChangeLog: * libgnat/system-gnu.ads: New file. * Makefile.rtl (x86-gnuhurd): Use libgnat/system-gnu.ads instead of libgnat/system-freebsd.ads. Signed-off-by: Samuel Thibault --- gcc/ada/ChangeLog | 4 + gcc/ada/Makefile.rtl | 2 +- gcc/ada/libgnat/system-gnu.ads | 148 +++++++++++++++++++++++++++++++++ 3 files changed, 153 insertions(+), 1 deletion(-) create mode 100644 gcc/ada/libgnat/system-gnu.ads diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index b8e89fa0c62..a202af4a7ae 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -9,6 +9,10 @@ * ada/Makefile.rtl (x86_64-dragonfly): Use libgnarl/a-intnam__bsd.ads instead of libgnarl/a-intnam__dragonfly.ads. + * libgnat/system-gnu.ads: New file. + * Makefile.rtl (x86-gnuhurd): Use libgnat/system-gnu.ads instead of + libgnat/system-freebsd.ads. + 2024-10-29 David Malcolm PR other/116613 diff --git a/gcc/ada/Makefile.rtl b/gcc/ada/Makefile.rtl index c3d2e3f0e28..f09df7d6b1c 100644 --- a/gcc/ada/Makefile.rtl +++ b/gcc/ada/Makefile.rtl @@ -1732,7 +1732,7 @@ ifeq ($(strip $(filter-out %86 pc gnu,$(target_cpu) $(target_vendor) $(target_os s-tpopsp.adb. -- +-- -- +-- GNAT was originally developed by the GNAT team at New York University. -- +-- Extensive contributions were provided by Ada Core Technologies Inc. -- +-- -- +------------------------------------------------------------------------------ + +package System is + pragma Pure; + -- Note that we take advantage of the implementation permission to make + -- this unit Pure instead of Preelaborable; see RM 13.7.1(15). In Ada + -- 2005, this is Pure in any case (AI-362). + + pragma No_Elaboration_Code_All; + -- Allow the use of that restriction in units that WITH this unit + + type Name is (SYSTEM_NAME_GNAT); + System_Name : constant Name := SYSTEM_NAME_GNAT; + + -- System-Dependent Named Numbers + + Min_Int : constant := -2 ** (Standard'Max_Integer_Size - 1); + Max_Int : constant := 2 ** (Standard'Max_Integer_Size - 1) - 1; + + Max_Binary_Modulus : constant := 2 ** Standard'Max_Integer_Size; + Max_Nonbinary_Modulus : constant := 2 ** Integer'Size - 1; + + Max_Base_Digits : constant := Long_Long_Float'Digits; + Max_Digits : constant := Long_Long_Float'Digits; + + Max_Mantissa : constant := Standard'Max_Integer_Size - 1; + Fine_Delta : constant := 2.0 ** (-Max_Mantissa); + + Tick : constant := 0.000_001; + + -- Storage-related Declarations + + type Address is private; + pragma Preelaborable_Initialization (Address); + Null_Address : constant Address; + + Storage_Unit : constant := 8; + Word_Size : constant := Standard'Word_Size; + Memory_Size : constant := 2 ** Word_Size; + + -- Address comparison + + function "<" (Left, Right : Address) return Boolean; + function "<=" (Left, Right : Address) return Boolean; + function ">" (Left, Right : Address) return Boolean; + function ">=" (Left, Right : Address) return Boolean; + function "=" (Left, Right : Address) return Boolean; + + pragma Import (Intrinsic, "<"); + pragma Import (Intrinsic, "<="); + pragma Import (Intrinsic, ">"); + pragma Import (Intrinsic, ">="); + pragma Import (Intrinsic, "="); + + -- Other System-Dependent Declarations + + type Bit_Order is (High_Order_First, Low_Order_First); + Default_Bit_Order : constant Bit_Order := + Bit_Order'Val (Standard'Default_Bit_Order); + pragma Warnings (Off, Default_Bit_Order); -- kill constant condition warning + + -- Priority-related Declarations (RM D.1) + + Max_Priority : constant Positive := 0; + Max_Interrupt_Priority : constant Positive := 63; + + subtype Any_Priority is Integer range 0 .. 63; + subtype Priority is Any_Priority range 0 .. 60; + subtype Interrupt_Priority is Any_Priority range 63 .. 63; + + Default_Priority : constant Priority := 25; + +private + + type Address is mod Memory_Size; + for Address'Size use Standard'Address_Size; + + Null_Address : constant Address := 0; + + -------------------------------------- + -- System Implementation Parameters -- + -------------------------------------- + + -- These parameters provide information about the target that is used + -- by the compiler. They are in the private part of System, where they + -- can be accessed using the special circuitry in the Targparm unit + -- whose source should be consulted for more detailed descriptions + -- of the individual switch values. + + Backend_Divide_Checks : constant Boolean := False; + Backend_Overflow_Checks : constant Boolean := True; + Command_Line_Args : constant Boolean := True; + Configurable_Run_Time : constant Boolean := False; + Denorm : constant Boolean := True; + Duration_32_Bits : constant Boolean := False; + Exit_Status_Supported : constant Boolean := True; + Machine_Overflows : constant Boolean := False; + Machine_Rounds : constant Boolean := True; + Preallocated_Stacks : constant Boolean := False; + Signed_Zeros : constant Boolean := True; + Stack_Check_Default : constant Boolean := False; + Stack_Check_Probes : constant Boolean := True; + Stack_Check_Limits : constant Boolean := False; + Support_Aggregates : constant Boolean := True; + Support_Atomic_Primitives : constant Boolean := True; + Support_Composite_Assign : constant Boolean := True; + Support_Composite_Compare : constant Boolean := True; + Support_Long_Shifts : constant Boolean := True; + Always_Compatible_Rep : constant Boolean := False; + Suppress_Standard_Library : constant Boolean := False; + Use_Ada_Main_Program_Name : constant Boolean := False; + ZCX_By_Default : constant Boolean := True; + +end System; From patchwork Sun Nov 3 16:37:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 2005759 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 4XhKyp6ZL1z1xy9 for ; Mon, 4 Nov 2024 03:37:54 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 90D083857C7A for ; Sun, 3 Nov 2024 16:37:52 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from sonata.ens-lyon.org (domu-toccata.ens-lyon.fr [140.77.166.138]) by sourceware.org (Postfix) with ESMTPS id 314E63858C56 for ; Sun, 3 Nov 2024 16:37:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 314E63858C56 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 314E63858C56 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=1730651846; cv=none; b=XIzB5nMpriEFMcLqMcOmRr274M95StXo1G1h8kKyjg61EdwBnJbG43APkQG/0cwvLEo5dVFLJ2Y9ij5uhU1hhLfszmJNwXvSdWpBze9ZpeX2G6+lNIVd4C2B9Usj4pXTE9MOCrOolcUG8hGzGvTOXnSIvamxdYRoldWbukIJYl8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730651846; c=relaxed/simple; bh=uBkBJgv5Y2DH1OoIv7/lR7NRd36iifUE+0D+o2Cq5i0=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=CkphEOPy5qMm0ZyevIJZJ3zQFwQe6hrtC2MbQNMaSd4F3/m3J7/4tf4W26Cobb7JmytbZX2xZNgVt+YHifPORKkAsKyG8OU89SoOlwYVVUDKTnieuDv3nUOjohb2Jki2Iegnt9+Y3paZQxOSAX2URSNT68Y28pb17LpAyH99ENo= 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 81A12A1B8B; 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 wbs-9qQh4ppq; 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 5EA9BA1B8A; Sun, 3 Nov 2024 17:37:17 +0100 (CET) Received: from samy by begin.home with local (Exim 4.98) (envelope-from ) id 1t7dbI-00000009LsJ-2dsR; Sun, 03 Nov 2024 17:37:16 +0100 From: Samuel Thibault To: gcc-patches@gcc.gnu.org Cc: Samuel Thibault , bug-hurd@gnu.org, Samuel Thibault Subject: [PATCHv2 3/3] ada: Add GNU/Hurd x86_64 support Date: Sun, 3 Nov 2024 17:37:16 +0100 Message-ID: <20241103163716.2228976-4-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 This is essentially the same as the i386-pc-gnu section, the differences are the same as between freebsd i386 and freebsd x86_64. gcc/ada/ChangeLog: * Makefile.rtl: Add x86_64-pc-gnu section. Signed-off-by: Samuel Thibault --- gcc/ada/ChangeLog | 2 ++ gcc/ada/Makefile.rtl | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index a202af4a7ae..83a779da5b0 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -13,6 +13,8 @@ * Makefile.rtl (x86-gnuhurd): Use libgnat/system-gnu.ads instead of libgnat/system-freebsd.ads. + * Makefile.rtl (x86_64-gnuhurd): Add x86_64-pc-gnu section. + 2024-10-29 David Malcolm PR other/116613 diff --git a/gcc/ada/Makefile.rtl b/gcc/ada/Makefile.rtl index f09df7d6b1c..faed547530e 100644 --- a/gcc/ada/Makefile.rtl +++ b/gcc/ada/Makefile.rtl @@ -1780,6 +1780,38 @@ ifeq ($(strip $(filter-out x86_64 kfreebsd%,$(target_cpu) $(target_os))),) endif endif +# x86_64-pc-gnu i.e. GNU Hurd +ifeq ($(strip $(filter-out x86_64 pc gnu,$(target_cpu) $(target_os))),) + + SELECTED_PAIRS=x86_64-gnuhurd + + LIBGNAT_TARGET_PAIRS = \ + a-intnam.ads