From patchwork Tue Nov 29 10:47:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 27169 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp258183wrr; Tue, 29 Nov 2022 02:48:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf5sG3kDaUqcGEmVo93J8H9C4l7ILCS6MjIdEkV3L9vGrNL9RBtX2iuO92tZzJ5BsFOZ5RV6 X-Received: by 2002:a17:906:a0d9:b0:78d:b912:6a6c with SMTP id bh25-20020a170906a0d900b0078db9126a6cmr48109084ejb.124.1669718899685; Tue, 29 Nov 2022 02:48:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669718899; cv=none; d=google.com; s=arc-20160816; b=mywfbfD4kluSJJWBVJoBMc9LM+YbKd2CDRefmFvoEbeijdWBnMPOD4jJgZQE6mhNZc ctrtYNTRbMzdQ/3Ngf3hR/aDy1DabGAvvawDO1O7phh2lqRuLyOnXAUl5/hrKo/jh6wn GvYPSa1LmrRJJ0EG9bbCm5tPEkIbiMpgXC3plfQoUC63OLY5SuaP+0oiEw9S0Wk2pa8q dcn4sy25m0TaxLvgVmuY9J0yg4H8zTuTTcjYX5I3hIDsVSj5YlSrS0HZKDvbCybaFb3T pQEq8zpd9qNORw0ByRs9QgVjdAXmHFMPtKeSKkO2cQ6xSYbzZ4+PNfUupasrreuswzZ+ sCww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:to :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=jmZK+kB5JS/W4bi4/CVU7Of5JWEKIsKQgujc6qMQsGY=; b=MD79bTntSwaRQmYXTXYC8PNywWL0KHMxUzz7SOrgWi9nefYhLVvxt5EIPPNN3uAFR0 WFw76VlUOIL3xPfrTuEol293ZX+xo715lrr+ierRjy+oFP2+mWnvyekKKrONhjq69rd8 gmnDZrrobzWSR8IsgE4LGUegut35G8KnQMsMWL0A6h330rQXudCgeFozM6Wk7985Zf7W LzsPThZA/7HqTZX59DxqTGPsQRUXK1H5NPdKu9dhOAGOxrAylbD9oPzH7Bs8fEzKgQ+U qS3Nlg21+oeNhaU0sxsDMt14i4Eh1ghs5EHbmFBH+70+huneYxKo5piYJo9+haKhPA7y zpUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=FVShfyIt; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id di10-20020a170906730a00b007be53f03fa7si7033604ejc.211.2022.11.29.02.48.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Nov 2022 02:48:19 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=FVShfyIt; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6B1E93857C51 for ; Tue, 29 Nov 2022 10:48:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6B1E93857C51 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669718898; bh=jmZK+kB5JS/W4bi4/CVU7Of5JWEKIsKQgujc6qMQsGY=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=FVShfyIthiN60cYvOuIWCGn9utpbtpUBRAFIhCf4MouURIv+GRyuRkik9i70owRaI +I2kNTOQErVzF1xvweqv6RyZpL01Wc/eIQSbXi9uNUssPWTVNICKjqaLYeRtIAb/7q k24K8mjzNw5Q80C2yzslNOnhRgE24BlyNlcrPuCI= 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 B2C71385B194 for ; Tue, 29 Nov 2022 10:47:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B2C71385B194 Received: by mail-wm1-x330.google.com with SMTP id ay14-20020a05600c1e0e00b003cf6ab34b61so13989429wmb.2 for ; Tue, 29 Nov 2022 02:47:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jmZK+kB5JS/W4bi4/CVU7Of5JWEKIsKQgujc6qMQsGY=; b=HVf/BES/0NFUDs3zqcnqs3duHU6ZfHSSXqoAaG3Gmsgj1QouH2ZPz2+H7t7HGTWwiv zGb60NDZYweRxpZ6P0HrTuFEjZ+/A6ig6tslJwG1Pf2o84m/Tp7e9D982WAZSdnkxzc7 88PhOWVC1x2gV7REK/41K9Jkp9o1u904VTcsQUIZzxdy9KDrFtXgx1zqjSC/7zF586xf WQwHKw1PRcWVlB5uQLClD5Bdr4qzJ5j+7o0QlCg4Gy6Aa5h7PgGUuA8B3m2YPt4W9Gdt DrwwcLeX/Dp3yqocaNWjEoAbeIjNIYC51yKT+GKZDV7LfriZGg9I432Rggii3M4riCud L7KA== X-Gm-Message-State: ANoB5pmUEax45Ovd9h5UBT1nByBVQToWJxsd8x+y31BkhQj3IW5OPFlK si3nLLzKfB//AUV2Xob4qHbNM/LO2NkdCw== X-Received: by 2002:a05:600c:3421:b0:3cf:ac8a:d43e with SMTP id y33-20020a05600c342100b003cfac8ad43emr29620643wmp.65.1669718842490; Tue, 29 Nov 2022 02:47:22 -0800 (PST) Received: from fomalhaut.localnet ([2a01:e0a:8d5:d990:e654:e8ff:fe8f:2ce6]) by smtp.gmail.com with ESMTPSA id p21-20020a1c5455000000b003b4cba4ef71sm1517764wmi.41.2022.11.29.02.47.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Nov 2022 02:47:21 -0800 (PST) X-Google-Original-From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: Fix PR ada/107810 Date: Tue, 29 Nov 2022 11:47:21 +0100 Message-ID: <3202323.aeNJFYEL58@fomalhaut> MIME-Version: 1.0 X-Spam-Status: No, score=-10.4 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 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: Eric Botcazou via Gcc-patches From: Eric Botcazou Reply-To: Eric Botcazou Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750827164626860615?= X-GMAIL-MSGID: =?utf-8?q?1750827164626860615?= This just makes the pattern matching more robust. Tested on SPARC64/Solaris and x86-64/Linux, applied on the mainline. 2022-11-29 Eric Botcazou PR ada/107810 * gnat.dg/unchecked_convert9.adb: Adjust pattern. diff --git a/gcc/testsuite/gnat.dg/unchecked_convert9.adb b/gcc/testsuite/gnat.dg/unchecked_convert9.adb index a01584f704d..5d12d623a9c 100644 --- a/gcc/testsuite/gnat.dg/unchecked_convert9.adb +++ b/gcc/testsuite/gnat.dg/unchecked_convert9.adb @@ -11,4 +11,4 @@ package body Unchecked_Convert9 is end Unchecked_Convert9; --- { dg-final { scan-rtl-dump-times "set \\(mem/v" 1 "final" } } +-- { dg-final { scan-rtl-dump-times "set \\(mem/v/c" 1 "final" } }