From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by sourceware.org (Postfix) with ESMTPS id EBCCE3858C52 for ; Tue, 17 Oct 2023 11:26:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EBCCE3858C52 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org EBCCE3858C52 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::32c ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697541986; cv=none; b=remyYhNNl9SOPUwgCwDFr1hZXUWt0yQmfAvB/X+tdkPPbIRZ8LwHizG0+8fbkEaPaQC46889BHtRf0P4MZUszfOZeOslwkb4xIGADYje9NW3xCy3E1uALGV/yGJLP2/tFMtG9xBFzPNIZYbPPYSSEdnm5xe55Wg33Xbov/zQQfw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697541986; c=relaxed/simple; bh=hYMj8ztaaGlFajDWVOF8Fnct0LpBLUGuzrllR0vV/MU=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=a1a4zN1wGxZWNPb/HV9mffhHgJMjB4fU81d+fYYpsWmnUsJabSJ2iE2oTC3hwYpQGNznka0+lOPGBRsjwxQB0tGCpQn3tMVVavoYifxmi0c1hSXArltHCPa9e6DEMmOu3h64quT2A409SC+uDd9tvaxeXAv086LctaJlQ5dNtLM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-4053e6e8ca7so18101065e9.1 for ; Tue, 17 Oct 2023 04:26:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697541983; x=1698146783; darn=gcc.gnu.org; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=LzHApw4AZMRa7/hXoC05xAScmAVK5f7MgSrNLaQ9uDA=; b=chcZp7eQ8Wc4TXkp27E15T61C5JkLPkB41zjD5OiJLSlsncoY9aWo+129lrvNzjHv7 wZZqzMv02v9E1PfIQZiINAx8SRLdxByu15t4HvRVLxsrMS0E2FTEpugXUw0GB+MwEIwh bB7vKjdv1PAvhcXPV3DM7n6TTwuefQ9RRWAulUj0NCTYLAFJdVscSUWa7UfGtaEv5p3O LySBZCb0c4Hk98n2roblrvVrRBRuXJbTRs+UN8gO4hndcKTyp/JgmrWPtELu4D0s1io8 KwsSq3RttgP0DxqN9ORe2q3eA2C0rocAV9GSohuwMXSrqo3FQTEpeLa0idBvySHZtloc +/CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697541983; x=1698146783; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=LzHApw4AZMRa7/hXoC05xAScmAVK5f7MgSrNLaQ9uDA=; b=tUhzyrkAkjT6I/eoMyWrmjJGA5gEl1FodpMt//Wk6THr1b6HkeDJD0c52IwWMfrdna LDXW9d+yx4IPqwYF9ktcwVNWOnkQEFW9s4T/o55hys5pagkSzihwQrPJzV+/sKRzKHl+ b6fzHrKNK/fAH+CC9x1nAruYsD+fdoQDADTl5VJjaGyOGrWPofTFCYlSDWTlFd1eHasA euMN6+Yr4iLohMQDXmLMGj6ODlClRxpHbdMSWXLzFUs5HVgx9xJDSOZ0LungKT2+fViP eFnkaVPHn240keILDS9q8mWQjPW2EsD4KEFYi0NjPIaFTd5tJkuzwL7+zMAo0GVJfTY5 Ry8g== X-Gm-Message-State: AOJu0YwykOZYzKjN+GyskyM/i1/7yNi9VKpaHIhvIEYuFDFrbSHBuR8M zIk+k/1PSgUjcQf4u+DFFi6FDGlZs+c= X-Google-Smtp-Source: AGHT+IEwaO0QTEnAquoESTYABlGkjF8WdJybyuR0PQez5A8+a+p9Ri8eE/fnf59nyq4KsQ14QtUGaQ== X-Received: by 2002:adf:cb87:0:b0:317:5f08:329f with SMTP id q7-20020adfcb87000000b003175f08329fmr1540681wrh.1.1697541983503; Tue, 17 Oct 2023 04:26:23 -0700 (PDT) Received: from zephyrus (bl22-63-152.dsl.telepac.pt. [2.83.63.152]) by smtp.gmail.com with ESMTPSA id i2-20020a5d6302000000b00318147fd2d3sm1481189wru.41.2023.10.17.04.26.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 04:26:22 -0700 (PDT) Date: Tue, 17 Oct 2023 12:26:21 +0100 From: Stanislav Maslovski To: fortran@gcc.gnu.org Subject: Re: [patch] fortran/intrinsic.texi: Add 'passed by value' to signal handler Message-ID: Mail-Followup-To: fortran@gcc.gnu.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,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 List-Id: Hi, On Mon, Oct 16, 2023 at 07:11:46PM +0200, Tobias Burnus wrote: > Yesterday, someone was confused because the signal handler did not work. > > It turned out that the created Fortran procedure used as handler used > pass by reference - and 'signal' passed the it by value. Many thanks! Indeed, it was not clear that the argument is passed by value (although, I could guess that as signal() is modeled on a C function of the same name...) -- Stanislav Maslovski