From patchwork Thu May 19 14:16:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre-Marie de Rodat X-Patchwork-Id: 54224 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E806B383801F for ; Thu, 19 May 2022 14:35:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E806B383801F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1652970912; bh=GgIuT2tzjjKqcxvxMTRjTPQM7wwfBRmGFY3yysw3VxU=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=jMj2/xm0oS6LaNCVFWauTmXgMNyq6kU1zptqFj7pqVoxLq5WFTZjkgRffzemWxQpo 6Qt9TkAt/IGZi8bjrVeBT3fOIBTBqT97HojmCTkFk4dPxjcuD7/T9cRhjJIEoiI4If 6Rl7Uegugcu0wB81MsGufuosktAEhtD8bZviLiqw= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by sourceware.org (Postfix) with ESMTPS id D99BC383D82B for ; Thu, 19 May 2022 14:16:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D99BC383D82B Received: by mail-wr1-x435.google.com with SMTP id j25so7361253wrc.9 for ; Thu, 19 May 2022 07:16:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=GgIuT2tzjjKqcxvxMTRjTPQM7wwfBRmGFY3yysw3VxU=; b=x5xWtO7c7RQWSJtgzBrwSpydMahXynAerTly86587W2I9Q8OteN83Bz6SLzHlcH/hx +6To0BeNOfp1hsG+RARPsU1s+dEnu5jBWvpbo68T07e2ijcNh4sEaDU/ODt0+3WbO9S4 +mqJudp7qUQWTwqt86KSe5lYf4/db5CWp/gEU7kL3wtDYVHlKSCqDQdFkxXLJ101Sakk O7GrKBhAwi3cHrXS0pP2y8EcpFKTF8376TQfDjKbYrSysEaVAc3mjfOHPAHk78jDBtqW YhD47SZ1a8th25ptUEWtXiK7dQLGIEb172r+HZ4clMXzM+zbJiaGlU2E86XDV+HbNNT5 hawQ== X-Gm-Message-State: AOAM533aovy6yX6DOEAfhw0T9xf3AVJvfk2b0RSW2kPAwX1UyNvNxJcF Ez9Q71orQ7VNPV//bhMHzMe9lA34XNWKuA== X-Google-Smtp-Source: ABdhPJyRiJbvEYbOY5og3ZM29BXNr/zTHty6jnIOspaqFvbm5SsfZFnRKfj1muk8mOzUxmmsMj5/Hg== X-Received: by 2002:adf:e60e:0:b0:20e:6532:51f0 with SMTP id p14-20020adfe60e000000b0020e653251f0mr4170593wrm.673.1652969778427; Thu, 19 May 2022 07:16:18 -0700 (PDT) Received: from adacore.com ([45.147.211.82]) by smtp.gmail.com with ESMTPSA id l12-20020adfc78c000000b0020c5253d90asm5383974wrg.86.2022.05.19.07.16.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 May 2022 07:16:17 -0700 (PDT) Date: Thu, 19 May 2022 14:16:17 +0000 To: gcc-patches@gcc.gnu.org Subject: [Ada] Mark Requires_Transient_Scope as Inline Message-ID: <20220519141617.GA3723413@adacore.com> MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-13.2 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, T_SCC_BODY_TEXT_LINE 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Pierre-Marie de Rodat via Gcc-patches From: Pierre-Marie de Rodat Reply-To: Pierre-Marie de Rodat Cc: Eric Botcazou Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" The predicate is now a simple disjunction of two other predicates. Tested on x86_64-pc-linux-gnu, committed on trunk gcc/ada/ * sem_util.ads (Requires_Transient_Scope): Add pragma Inline. diff --git a/gcc/ada/sem_util.ads b/gcc/ada/sem_util.ads --- a/gcc/ada/sem_util.ads +++ b/gcc/ada/sem_util.ads @@ -3068,6 +3068,7 @@ package Sem_Util is -- previous errors (particularly in -gnatq mode). function Requires_Transient_Scope (Typ : Entity_Id) return Boolean; + pragma Inline (Requires_Transient_Scope); -- Return true if temporaries of Typ need to be wrapped in a transient -- scope, either because they are allocated on the secondary stack or -- finalization actions must be generated before the next instruction.