Message ID | 20240613133338.1809385-7-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=iulWNSZZ; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; 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 [8.43.85.97]) (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 4W0NjQ6Qsjz1ydW for <incoming@patchwork.ozlabs.org>; Thu, 13 Jun 2024 23:36:26 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0EB9F3882657 for <incoming@patchwork.ozlabs.org>; Thu, 13 Jun 2024 13:36:25 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by sourceware.org (Postfix) with ESMTPS id 61C8D3882177 for <gcc-patches@gcc.gnu.org>; Thu, 13 Jun 2024 13:33:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 61C8D3882177 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 61C8D3882177 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::330 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718285638; cv=none; b=Jbeylzq5HS1sMhQtqXGq+IvcuEirEan/gcU1e3RkZYmCI6bKd1WWWLooRB3WwuxnKvOC7EmiIrQAlaC3QTaeJt78KFtuIILy7LqD5SnrjmlfzriRwyfmmDju89CsfTYs57IbImT6x2DM0YHqrzSCSlN3v9onfCNzxQ9g6sZd9yY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718285638; c=relaxed/simple; bh=rWpR0JNLLIpNlCE2nO1lrc3Yz9z5jOLFZ2MLFX/yfF0=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=njDeo7Dng1j2cC0BuA71iF54J8+vPGXfbWRbdyXqo4P7A2G4GLHPD1KnWzt+GKFanGKog2AhV8duiADt0KDoOadUzXetu3naLwi/8lRhet11p2+6wKXNuMy43X//EHDuHTWwuewum/kn1MyAZmojY+sdMDrxFwPpgcSeEcFsi5k= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-42249a4f9e4so7739895e9.2 for <gcc-patches@gcc.gnu.org>; Thu, 13 Jun 2024 06:33:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1718285635; x=1718890435; 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=apsihoLo/c47k0z35Nj4EWS1Vx0htSl4Sr6XsdeVnF0=; b=iulWNSZZr0IfHk+fTKKHjnCOenvpSgPxN6KQw4XXZqns2sMgwszgXnemnuAl/+os8h tWIs9aJyGhQW07PYfp0z+noFlv6J/4M6GzbEa38FiozT++25nbUdWUZ2xBvHqhFyfVtE SRemp26urMTbY5NUvP3fYUJVbPnAQUsNlDAq67LJUp4W/mS71brbk/h6IMRhJWK2NXUP zU739gQYi9z0Fbk10A1alaQ2bXAdrbry8yhGkjXbmyT4td3CiDMg6WCrv58c/x1VUCjo Ju0P3azkBmXSWxll0FQen2amcuKr11FLz4rjRHPAYvNjSQlR6LByALvho2reWz1/1UEH 60Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718285635; x=1718890435; 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=apsihoLo/c47k0z35Nj4EWS1Vx0htSl4Sr6XsdeVnF0=; b=TdL8TiJI3VvaymBC70vpM8C/eE1hxSuBC8tl3lCvfUf0goRSrac+uLhRSVUHKd7iSM P8rdpoLGdvlGdzUHSJ3S3EMCQxRosOk5O3ar6snjwNTBSp1pS4rFy2cxk1e+UHSYXXhZ g2e/VkNuhqmv7KvRTvgB9DFuPcIJjfF+IbjphVXmyiUQo0cnXpX2HGcBWt5Md/0GQCa/ TlTr/L0ANryQSqGlKjJOoNn9uxZoBc/CoVUjpjXR1Zabnuj7/amTSPZUBfWehrI9mayW e0k41KLGrq7v3K3zwtjbqm5QeIESMQU+nPa1M2e1weJOeq9Gd3UONklpvdkUvqkRecEz 8LiA== X-Gm-Message-State: AOJu0YwEn7SApA7auyOTC2fSiXZL7gfco8sf8402asXeab5jJ39PPZBn NtfnYIGPrXtpKogAaNqBPXumRZYtGSDNrfA7GsfOmoB4bu/JQakY6s54C0u/5kRXdM/hY+1BlsI = X-Google-Smtp-Source: AGHT+IFQay/2EmUPH++YJS5BWkd+Jd4uHSrzY1rU7lpalZ3nVedIHHlmFySdidK5u2hWibTZPAbA1A== X-Received: by 2002:a05:600c:4e04:b0:421:7f30:7cf7 with SMTP id 5b1f17b1804b1-422861aec47mr44091105e9.1.1718285635187; Thu, 13 Jun 2024 06:33:55 -0700 (PDT) Received: from poulhies-Precision-5550.telnowedge.local (lmontsouris-659-1-24-67.w81-250.abo.wanadoo.fr. [81.250.175.67]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-422870e9145sm62391955e9.22.2024.06.13.06.33.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 06:33:54 -0700 (PDT) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= <poulhies@adacore.com> To: gcc-patches@gcc.gnu.org Cc: Richard Kenner <kenner@adacore.com> Subject: [COMMITTED 07/30] ada: Inline if -gnatn in CCG mode even if -O0 Date: Thu, 13 Jun 2024 15:33:13 +0200 Message-ID: <20240613133338.1809385-7-poulhies@adacore.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240613133338.1809385-1-poulhies@adacore.com> References: <20240613133338.1809385-1-poulhies@adacore.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, 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.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/30] ada: Missing dynamic predicate checks
|
expand
|
diff --git a/gcc/ada/exp_ch6.adb b/gcc/ada/exp_ch6.adb index 005210ce6bd..2e873c9c908 100644 --- a/gcc/ada/exp_ch6.adb +++ b/gcc/ada/exp_ch6.adb @@ -5311,10 +5311,11 @@ package body Exp_Ch6 is then Expand_Inlined_Call (Call_Node, Subp, Orig_Subp); - -- Back-end inlining either if optimization is enabled or the call is - -- required to be inlined. + -- Back-end inlining either if optimization is enabled, we're + -- generating C, or the call is required to be inlined. elsif Optimization_Level > 0 + or else CCG_Mode or else Has_Pragma_Inline_Always (Subp) then Add_Inlined_Body (Subp, Call_Node);
From: Richard Kenner <kenner@adacore.com> gcc/ada/ * exp_ch6.adb (Expand_Ctrl_Function_Call): Inline if -gnatn in CCG mode even if -O0. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/exp_ch6.adb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)