Message ID | 20240621085819.2485987-11-poulhies@adacore.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=LfKCFvyA; dkim-atps=neutral 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 4W5BFr2Zylz1ydW for <incoming@patchwork.ozlabs.org>; Fri, 21 Jun 2024 19:02:40 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 95E96389909A for <incoming@patchwork.ozlabs.org>; Fri, 21 Jun 2024 09:02:38 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by sourceware.org (Postfix) with ESMTPS id 080073896C35 for <gcc-patches@gcc.gnu.org>; Fri, 21 Jun 2024 08:58:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 080073896C35 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 080073896C35 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::335 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718960322; cv=none; b=cJA+wfI3uSrDXZejOOARQGfcawFYix3V0PkujFtiivQ619zANkS8n4wgjwuxjJxVAXLxhac+ZYxmw/3VP+/FHiqNT2NQUeZ3UcuJmyDz5KsHd2qeVg5THE/uRJpXXzorcjxmiMnhuw0zfhulIGRN01gI9S05YVI6tkgfe+jBwME= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718960322; c=relaxed/simple; bh=yQmQ3XkG+AzA5Ws17rfhJ5Ce1oQZLO+goySpOnMCodc=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=ajR6AKcQUGrDjy+JJTM1anppxrBWpiA8Y8io5v5dGusEDEDvZQbF1zyUDIyhkeEAM8xZSIpuHOBJtVLlZYwkPYtLppu1jTMiwd3NnHE6LGK3uROqe5had3w6RuK+udqyv/lRqHSxwrzsiHd9bcUrB9+nJgBs/l2E5qT/TI+WaXs= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-4217dbeb4caso16003945e9.1 for <gcc-patches@gcc.gnu.org>; Fri, 21 Jun 2024 01:58:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1718960319; x=1719565119; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KcQFEfvXi78Rkwx6S2Ys2IFbFECqHPxrWyI1OCKm7j8=; b=LfKCFvyAfKETQZN0pFB24HXeycUW/eu3PrIspbq/hExZ21iaYasbhJnvgjqMaDxdil OQ8dPwmQ4F4zCKls04LFN0TcYcUvMaaH2Leqavq3WCTz/hsqNA3D3xV0J8df9BJg04oF rWW26TvMmvbB3JqYvmueG8/Fmy9qzzYN9K6EkMuG27zTFAQNwIlpVF/Da0WbMcWzyvVu oeoNIimaKRcefQPIRt7ITiqLwxaqvdbB7l1hTlOu0RkhcbC0JT2nSNT3BeH9/SmWcTd7 9/rM15ec69aF8WUd9mxr23SbdWz3yIRewW4wVE2LMx3tTC03Vwb3Pb3Ffb01AQNoCUON ERFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718960319; x=1719565119; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KcQFEfvXi78Rkwx6S2Ys2IFbFECqHPxrWyI1OCKm7j8=; b=sVpdOF6cpA4HRDdJj9BaGfOufpEhsiJTztTiQQzne6Pin8sJEiwuy49t3H58ILFnj0 AIxEnnsuH3YX3fw81yXCAcDApTPsbPGQZ2o4C9+3/mw9f3rMKMOx8gOMvK49CY6Vc4BK IhI4uh87EJPPIiw23e0AjTboxyTTRnnrX547TAQ+djaJ8H79/yUQoGECekpGMDdKOj7t 72/Z0XbGZzmChEI2k1P++hwC7If/drX0eLC/yt8emIle69mdDD31bBD8gL5orSTXHk6n HnoPBymH/y+t5jlZdLC5zpoigwYIUbk+b8LoelIfzqLKO+Pk08B3gXB06JWXtgHquoKz 603A== X-Gm-Message-State: AOJu0Yw+CnExFYAyUPFaCEgLiw6N/X6bNT39Cy91aYxFZNsOwFZJPmu5 C7efjNpwOLQUU6XNhabT5d7KtXwulvl4TCRBSrX/Sj+em5v9QlPyzJD4KokxVPp7I/Uwi8CrMMI = X-Google-Smtp-Source: AGHT+IEwu4Snf0ygf1FDvaERHQxIL+V4gUbAkSKBKPBRCU69mNbXfGrR6UM5zibaVWv/wlSn03dJCQ== X-Received: by 2002:a7b:cc0f:0:b0:424:7826:792 with SMTP id 5b1f17b1804b1-42478260d9fmr50055275e9.1.1718960318721; Fri, 21 Jun 2024 01:58:38 -0700 (PDT) Received: from poulhies-Precision-5550.lan ([2001:861:3382:1a90:a589:2704:bfe1:5d92]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4247d0c5485sm55322375e9.21.2024.06.21.01.58.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jun 2024 01:58:38 -0700 (PDT) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= <poulhies@adacore.com> To: gcc-patches@gcc.gnu.org Cc: Doug Rupp <rupp@adacore.com> Subject: [COMMITTED 11/22] ada: Revert conditional installation of signal handlers on VxWorks Date: Fri, 21 Jun 2024 10:58:07 +0200 Message-ID: <20240621085819.2485987-11-poulhies@adacore.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240621085819.2485987-1-poulhies@adacore.com> References: <20240621085819.2485987-1-poulhies@adacore.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org |
Series |
[COMMITTED,01/22] ada: Spurious style error with mutiple square brackets
|
expand
|
diff --git a/gcc/ada/init.c b/gcc/ada/init.c index acb8c7cc57e..93e73f53c64 100644 --- a/gcc/ada/init.c +++ b/gcc/ada/init.c @@ -2100,14 +2100,10 @@ __gnat_install_handler (void) /* For VxWorks, install all signal handlers, since pragma Interrupt_State applies to vectored hardware interrupts, not signals. */ - if (__gnat_get_interrupt_state (SIGFPE) != 's') - sigaction (SIGFPE, &act, NULL); - if (__gnat_get_interrupt_state (SIGILL) != 's') - sigaction (SIGILL, &act, NULL); - if (__gnat_get_interrupt_state (SIGSEGV) != 's') - sigaction (SIGSEGV, &act, NULL); - if (__gnat_get_interrupt_state (SIGBUS) != 's') - sigaction (SIGBUS, &act, NULL); + sigaction (SIGFPE, &act, NULL); + sigaction (SIGILL, &act, NULL); + sigaction (SIGSEGV, &act, NULL); + sigaction (SIGBUS, &act, NULL); #if defined(__leon__) && defined(_WRS_KERNEL) /* Specific to the LEON VxWorks kernel run-time library */
From: Doug Rupp <rupp@adacore.com> The conditional installation resulted in a semantic change, and although it is likely what is ultimately wanted (since HW interrupts are being reworked on VxWorks). However it must be done in concert with other modifications for the new formulation of HW interrupts and not in isolation. gcc/ada/ * init.c [vxworks] (__gnat_install_handler): Revert to installing signal handlers without regard to interrupt_state. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/init.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-)