Message ID | 20231117135055.F1BFF1341F@imap2.suse-dmz.suse.de |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp539863vqn; Fri, 17 Nov 2023 05:51:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IGfK3IVQ2g7mGXBqyP8xVSlTjXq9dV2eVU+kpR+F+7uPzYRr/B2yG29Ys3DdXxjwCNrFjHX X-Received: by 2002:ac8:5916:0:b0:40d:b839:b5ac with SMTP id 22-20020ac85916000000b0040db839b5acmr11801264qty.15.1700229080657; Fri, 17 Nov 2023 05:51:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700229080; cv=pass; d=google.com; s=arc-20160816; b=aY+L4huo41Q8FZhPdWmUPsCyOFWmoux9VIrHACEKPs8fHeqRpEwVxwMFolwMwfGirr t4uBwW5QKLo+u4tAvtJiE2vprmVOUqJnQiI6v84IUZ0FG3ARiGGC6/JMX9bTcgx4qjuD y88poE0af+m6LTaiIfLJJC8+rmmY8XbIDaU6MPGDqEmpWspBCp86gk2zCay4V/1Pw3fS 83SodxP987CJ1K57EtHaPW+ijErUwLwymCsaKqMZ68LqwZFjNNQN6mumwq6/XedyJwrz 9OTHtlTKBmIGYTL2RW0oyw82n8Gg6KJYM9L39MLOcSafoj1Ja1uhz8SAJhIBXEOb/BLO qnBQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:message-id:mime-version:subject :to:from:date:dkim-signature:dkim-signature:arc-filter:dmarc-filter :delivered-to; bh=4bvNy8+kfYO+0Jkfzn/fK3cjK2JCMagJXXbb0T92MrY=; fh=hPrbWPhweUx4V0GV9uXJqbyAzg2ABmTz7kczrAQqMmM=; b=I4HVoAN7ji7FyMlUiOHusKJkRFpwF6At8Jb6j/cY78sfk5eg5k6hIlLHOdiAR6Phis z62AhoroZOkMcwgTqfbLYLFaMp2VwnsuLzP1t83d3kaJct9/5CM/ktabWfLu9/68eD/r 8dwRgDBuRxPGZK51DiFskb3TscsRHOT3FEPf3WH6YDrXiGKzJQT77v0zQFCvXvdoQBVL pGyPfNVODnEIQ5zbKS9/BIUISpKd4FKiySbYpGux7hKZE4iU7nbsbcGEaEpEM5rDE4yS rBAllAXF9yAftZQNfsk7Vx6Ayp9iE/DJPYx5X6z+gnPFsg61Iq2fX2ag8lVJdECZMbsA GVjg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=kcfRy14u; dkim=neutral (no key) header.i=@suse.de; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id f15-20020ac87f0f000000b004198cfb332fsi1749843qtk.186.2023.11.17.05.51.20 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 05:51:20 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=kcfRy14u; dkim=neutral (no key) header.i=@suse.de; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6BCEA3858436 for <ouuuleilei@gmail.com>; Fri, 17 Nov 2023 13:51:20 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by sourceware.org (Postfix) with ESMTPS id 7DEF93858D1E for <gcc-patches@gcc.gnu.org>; Fri, 17 Nov 2023 13:50:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7DEF93858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7DEF93858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:67c:2178:6::1c ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700229058; cv=none; b=PlOBKX4o4C6c2QXyplBZOq99D4RiYSIJqi6MUpWrbMeqCRup7FTAFVTnh5zOGIDAYUA9a1saL0j/MZpkq87jHJOKqZQrjSrWUiF3VkwRWhKUz+Uogu7tx+d6KPdyYqwt2recyk0wW7W44P8czDODO9He/UiQjEF7NG9MO9BpmbE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700229058; c=relaxed/simple; bh=doQ7oUD/7OtD+LKHlUpzuC2irHBp7kWGY8VtqtJxNoE=; h=DKIM-Signature:DKIM-Signature:Date:From:To:Subject:MIME-Version: Message-Id; b=Nj/N8SQXc4Z6JkdI7YkKQHukZiIfyt4Gpyomlf995/AM1pNLma1ds4icAdiq5aJ/vwvt3VHEXvqcs0VLh+6ljIcMq9h4YYtI4JKyDn/hBjgUKN1jyq42DUu3/8UzWsTiDL+dEXvLFUn9UVGVpZxMoGByjeWH/agz/+NxeFcOdZE= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 1FFC722949 for <gcc-patches@gcc.gnu.org>; Fri, 17 Nov 2023 13:50:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1700229056; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=4bvNy8+kfYO+0Jkfzn/fK3cjK2JCMagJXXbb0T92MrY=; b=kcfRy14ut3coLluFfkGg9tfP4ZeNfSOIrAHxKvk/tWtcJqUEU2meh+QvhOxf71oWUKHwLI Sf8XBJscYxisxPI1loxLf/i3gjztCP6lGDYE33pp+3Dviyacg+XbmXbjt34UdbRxWsMI6e FbUE/MXjzP81jhySNTzd3zJp8UW1r3k= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1700229056; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=4bvNy8+kfYO+0Jkfzn/fK3cjK2JCMagJXXbb0T92MrY=; b=oZxtOnrIQk8wIsPdeFK2edJId6PU/hLmZxrqIvK0n2drVVprESFv0bfa+ABwMQGkqW+B7u A5v7Afm/OKOVYzAQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id F1BFF1341F for <gcc-patches@gcc.gnu.org>; Fri, 17 Nov 2023 13:50:55 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id sZrsOb9vV2WaYgAAMHmgww (envelope-from <rguenther@suse.de>) for <gcc-patches@gcc.gnu.org>; Fri, 17 Nov 2023 13:50:55 +0000 Date: Fri, 17 Nov 2023 14:50:55 +0100 (CET) From: Richard Biener <rguenther@suse.de> To: gcc-patches@gcc.gnu.org Subject: [PATCH] tree-optimization/112585 - new testcase MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Message-Id: <20231117135055.F1BFF1341F@imap2.suse-dmz.suse.de> Authentication-Results: smtp-out1.suse.de; none X-Spam-Level: X-Spam-Score: -4.29 X-Spamd-Result: default: False [-4.29 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.99)[-0.994]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[gcc-patches@gcc.gnu.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-3.00)[100.00%] X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, 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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782819408724362922 X-GMAIL-MSGID: 1782819408724362922 |
Series |
tree-optimization/112585 - new testcase
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Richard Biener
Nov. 17, 2023, 1:50 p.m. UTC
The offending commit r14-5444-g5ea2965b499f9e was reverted. The following adds a testcase. Pushed. PR tree-optimization/112585 * gcc.dg/torture/pr112585.c: New testcase. --- gcc/testsuite/gcc.dg/torture/pr112585.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/torture/pr112585.c
diff --git a/gcc/testsuite/gcc.dg/torture/pr112585.c b/gcc/testsuite/gcc.dg/torture/pr112585.c new file mode 100644 index 00000000000..6c8cbeba3c2 --- /dev/null +++ b/gcc/testsuite/gcc.dg/torture/pr112585.c @@ -0,0 +1,18 @@ +/* { dg-do run } */ +/* { dg-additional-options "-ftree-loop-distribution" } */ + +static int a[10], b; +char c, *d = &c, e; +int main() +{ + int f = 0; + for (; f < 9; f++) { + a[f] = 1; + a[f + 1] = e; + for (b = 0; b < 8; b++) + *d = 0; + } + if (a[2] != 1) + __builtin_abort(); + return 0; +}