From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by sourceware.org (Postfix) with ESMTPS id CD9783857739 for ; Wed, 7 Jun 2023 19:04:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CD9783857739 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=google.com Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-30ad99fa586so7589482f8f.2 for ; Wed, 07 Jun 2023 12:04:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1686164683; x=1688756683; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=bUAWbLEktILMMvipp36KVBlmSOrjNft9HC3n3+UCMPs=; b=Ymd5aN2oIDyjXusXRN3HtZKxwRAQjrddepzKN/QXhm5WPEdxNGD1TCk01s+bgaHRVa xuXLKmG6Vlbb2jKwWTWmj5aU8gAuX3G1Y0N7gdXMA9CyM7C6/OguIkiWNUWU9Ghz4gZ9 vr9fg2HMFe5URVr6TknD+Z3hwVd2lX6ZHwwwXGIlhv59z+ztbEuHA0PxM/1B5s156nlF 7pM+24mkeCewCfZ4LNEuBcaXGfsX7tfPZc3tABbhbeAl5v/AM9LdMawkW1mL4+Dg+Hky X7xZH0UQUROZIrJFX6Skfy42xQOo1brgU5zVSZ3irjt08UTVyv3v24HH0kf5vgJtFavR OxBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686164683; x=1688756683; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bUAWbLEktILMMvipp36KVBlmSOrjNft9HC3n3+UCMPs=; b=mEmoJZI1CZf8eK4qBlDfFM99NNB1ZAfqD9Mu76vMk0skI/2K71rFiJivvnNCvEYbY0 GhJeaoTG9JRyvSl2yJq9w5QbX5W7h6DLuG/9BwvLKjYp+XA+g6m+/McpIQsF/wE0bx3A LeyOAFsfpRUR8IXqfI15vuz4v+UpIoDDCWfKlEouUqMCum1f9AYFhObFvT7FwTNR45Rg u41vhPZj9o9UKqrloaYZJPXsQ/ab7tXusWAKQfH1fz0j+8RD/1cYnE9d2rGXFji+9iMD GoGTPwRTWYpAF0LPlYz18q8NLyBlN1fJMvVRn7QRU+1LCTo0Hrm0KIBeYE7uuQDRLAP+ SzTg== X-Gm-Message-State: AC+VfDxRZWrA+NHYeIILbrN4lo7AE2cw8nFsJxz099dmzVw6PIBfQnvp +kVlOLu3QZGLoHpBdMS1FFy5oWMFCHjrwRlgggc1CAXUZ2EnvHsGFWU= X-Google-Smtp-Source: ACHHUZ65pmgEU7+pUtCcL9eOqMwbMWWVP4qDzLiJQi6/1CCnZmZQkYp9et5po0H+IICwhAX09wkyzA5HMAffAYpHjzU= X-Received: by 2002:a5d:6946:0:b0:306:3a16:1c2 with SMTP id r6-20020a5d6946000000b003063a1601c2mr4897354wrw.12.1686164683374; Wed, 07 Jun 2023 12:04:43 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ian Lance Taylor Date: Wed, 7 Jun 2023 12:04:31 -0700 Message-ID: Subject: Re: When do I need -fnon-call-exceptions? To: Helmut Zeisel Cc: gcc@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.1 required=5.0 tests=BAYES_00,DKIMWL_WL_MED,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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: On Wed, Jun 7, 2023 at 10:09=E2=80=AFAM Helmut Zeisel via Gcc wrote: > > I wrote some simple program that set a signal handler for SIGFPE, throws = a C++ exception in the signal handler > and catches the exception. > I compiled with and without -fnon-call-exceptions (on x64 Linux). > In both cases, the result was the same: the exception was caught and the = destructors were called as expected. > I also tried "-fno-non-call-exceptions -fexceptions" and got the same res= ult. > > My question: when do I really need -fnon-call-exceptions? > Is there some simple program where I can see the difference whether it is= on or off?? On x864 Linux -fasynchronous-unwind-tables is the default. That is probably sufficient to make your test case work. Ian