Message ID | 20220516084301.GA3843444@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@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=l8YRfs/Q; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=<UNKNOWN>) Received: from 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 RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4L1tGf3mGvz9s5V for <incoming@patchwork.ozlabs.org>; Mon, 16 May 2022 18:49:30 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D3C873857830 for <incoming@patchwork.ozlabs.org>; Mon, 16 May 2022 08:49:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D3C873857830 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1652690967; bh=n1vvLys3wk5lgzrhu2dTatbN9CJ3p5HW6AyTdwA0oHQ=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=l8YRfs/QU5O6PK3hNaHxJ91pJjwOASK8MFPFPNuGLdZCy3Hghk/t9/EIA5nU+wEPB yCllvkEdPx0ddCStS+0PfTNuXAQ7khBqCXLqAV9E2JOSbgi3p9SjVglaaUkI2WjUwt oRp2Y5Ipy7xV6Z2YVSDjsUTKsyf6XjWeMmFnvT7o= 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 85BE23857C6F for <gcc-patches@gcc.gnu.org>; Mon, 16 May 2022 08:43:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 85BE23857C6F Received: by mail-wr1-x435.google.com with SMTP id a5so15677174wrp.7 for <gcc-patches@gcc.gnu.org>; Mon, 16 May 2022 01:43:03 -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=n1vvLys3wk5lgzrhu2dTatbN9CJ3p5HW6AyTdwA0oHQ=; b=M+yLpA0hZkVL7Fn0XtJt4xfUahL3ZzwQchW+PURL+ZhivUb6gFy9fb1ya5Z8Z0JnJm TVJ662UP0VgSpRiTI57nsrkZ2KSSDP3E3c5seaXIG+N1eYam/l5P6AVcmCIHMrLP9lyt aqB4gpafqXL9Wxn/crDCuPT9oOLCkBns+X02KQfqHekMlr8W5SOnbs/ijktEpNtR1Xel ePTV52xwFMjHXGe1G10lTs5Q3Phuc2PBOFFHwIuV2P4Z0exWqf8bqf37uitY+vKkewXe iaFzvdeA4TuNqIcW/LAgcJenGkGn6L+uwtC6ZRNT8PbFKm/2chwHxmAGhl0lqppE4q46 wFpg== X-Gm-Message-State: AOAM531dzIzMtjj4drLj6xSLiWviAGKaNqYTcfUB0FrhRtiCsJqXOWag b9Y4Lm3knoxz76s2WZm/IB+34KccJcy6PA== X-Google-Smtp-Source: ABdhPJyhmrs8fM0JJ9M7VfeGbyEUNQVFuXT8BmtyFzNhKrrYoMuW+EzU+oNMEzogNK2iIMvahRQKoA== X-Received: by 2002:adf:e5c3:0:b0:20d:52c:8171 with SMTP id a3-20020adfe5c3000000b0020d052c8171mr4752324wrn.280.1652690582258; Mon, 16 May 2022 01:43:02 -0700 (PDT) Received: from adacore.com ([45.147.211.82]) by smtp.gmail.com with ESMTPSA id x10-20020adfbb4a000000b0020d0435c97bsm4181384wrg.92.2022.05.16.01.43.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 May 2022 01:43:01 -0700 (PDT) Date: Mon, 16 May 2022 08:43:01 +0000 To: gcc-patches@gcc.gnu.org Subject: [Ada] Improve building of untagged equality Message-ID: <20220516084301.GA3843444@adacore.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="mP3DRpeJDSE+ciuQ" 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 <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> From: Pierre-Marie de Rodat via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Pierre-Marie de Rodat <derodat@adacore.com> Cc: Piotr Trojanek <trojanek@adacore.com> Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org> |
Series |
[Ada] Improve building of untagged equality
|
expand
|
diff --git a/gcc/ada/exp_ch3.adb b/gcc/ada/exp_ch3.adb --- a/gcc/ada/exp_ch3.adb +++ b/gcc/ada/exp_ch3.adb @@ -4541,6 +4541,7 @@ package body Exp_Ch3 is and then Present (User_Defined_Eq (Etype (Comp))) then Build_Eq := True; + exit; end if; Next_Component (Comp);