From patchwork Sun Dec 3 18:36:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 172971 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp2362946vqy; Sun, 3 Dec 2023 10:36:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IHHy6UVq3K56gV7SOt5kzPpGOSMgPUkfWjsjTbj8a87saZn3xrqpIJsjfF4RRbO+dl0GVPU X-Received: by 2002:ad4:4e28:0:b0:67a:b5d4:842c with SMTP id dm8-20020ad44e28000000b0067ab5d4842cmr2052230qvb.75.1701628597744; Sun, 03 Dec 2023 10:36:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701628597; cv=pass; d=google.com; s=arc-20160816; b=bBtenY6dKwPu0Hup3FgVJBTcmfFVcgyltVUouGaadX0WcVjtiC+6VM+NIOoiVEMbP2 wh97l9ovhpbQwYmZaVnua+89z5N+aB6JK+rk4Dx6VY4i5Z5D1qMdHgSCiStOKnXbLVl8 h6cdzbxdX6jgtnl16hMbsfSd4BeCN2LLkvg1zQZ4gaIJivS9sQdP/HeI5S5/dJuiN0wY DaMKV5d5CH0oVTchS+rFwOJaZ7Qv58Sn9TrZSHEFpHadKxVNZnFyH6MRudNZziJ3gkxu ZRc0zn7fHcPWr/iIVUBq1FzxixQwdEfJYrZj+JaOrrG+xqqHAUvbicdfmezhQ8xbS1W4 +YMw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:reply-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=KQfT3bW9rKESWq3xcCXNVL1tQ3t+gmL86MPZcB2IAtY=; fh=J1Jydz1/5SGbd0IjiuL4oMzBd2JoYIUnxLIv7bZnyjY=; b=JcJ5dJajHDZe82mHuJ+O/HmrnHwNJri3Mbv/eSnyfoqhuaCYEnaU2+HdM/hm2phcbe JFTX7mqe6fGCzJxJPI3obNERuluxLqTo3EP/B69skbQeDpZdNWdknvllGM1EBzVX2W4O GwhUh1r9Rufo8vmxVNhhcHGZrucwdAdLRroxNdA7I8hMZEAjWWcCezAIsjwzlaP96vGS XpoQv2VdsepCOpUbVxR6vtmMSS9wMQXsmpoWFiZQWN6AtRkfjaBGEswFO87QePGt6Jrq 593zX1z8VX1yRK7rZJtaYFnaNyZYK/D/Voa3lvY3Ce/6wmUjM+TaxZxYSKV5IO5XGROf nr6Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="GTiZ/89V"; arc=pass (i=1); 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=redhat.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id bq12-20020a05620a468c00b0077d856c0558si8096724qkb.359.2023.12.03.10.36.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 10:36:37 -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=@redhat.com header.s=mimecast20190719 header.b="GTiZ/89V"; arc=pass (i=1); 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=redhat.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 82E0E384DEEE for ; Sun, 3 Dec 2023 18:36:37 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 8DED93857C77 for ; Sun, 3 Dec 2023 18:36:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8DED93857C77 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8DED93857C77 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701628575; cv=none; b=uGizXi7QMaBIdwTA4Mjjhhe4j8E8vMdjS/ahWm6+PNkJ4t/uvpQt4vNjnenpKiHceomvL3JTPGG5lJn+e7Dwg+Pmw6jPA2QyBV7q3Z3HYODXVU1iehlt9yI08fWgReFikQxqKJtv0MUdEH0eCSo/EVI5en1bW6UCDGZY9oNW+eU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701628575; c=relaxed/simple; bh=CGV+cBZFA31oOT6f/IPehTCbBvBpZxDnwnItN4bmyBc=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=h6LTpiIf7yItMKea9qmsc04kEpecaTeo9QCnlLl6gH4K5+wSsy3vG6uhucQCqyBmuIjQIHB44SjFfmBQ6J6Hhu0MDjwlNoQOLNlT9otM5NjOaVk8WWcKEp+FM6JMoqn3ASA5MHrDK34+zOnUtM0v8sPSORe80+DGij4d1xB4+zE= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701628574; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type; bh=KQfT3bW9rKESWq3xcCXNVL1tQ3t+gmL86MPZcB2IAtY=; b=GTiZ/89VJ55/A+0WUDXO2Ja9MlzM7iebQCw3iiZO43+bep7xgS8GjFoja8lfWAx9qobBzW 77oWJHTt+FO5kZrxqNp/+1VclsOrvoQVbpylD7qciSPVMtFUit8M52B2N3VwFLw/IRjxKT wkxLmwzs5sVpr1CUb1lTWlSsR4Jqf8w= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-526-v3suoYY1NZyvd8f7ACPzbQ-1; Sun, 03 Dec 2023 13:36:12 -0500 X-MC-Unique: v3suoYY1NZyvd8f7ACPzbQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (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 mimecast-mx02.redhat.com (Postfix) with ESMTPS id B32441C060E4; Sun, 3 Dec 2023 18:36:11 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.195.157]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6FF96C15881; Sun, 3 Dec 2023 18:36:11 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.17.1/8.17.1) with ESMTPS id 3B3Ia8lY3655677 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Sun, 3 Dec 2023 19:36:09 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 3B3Ia3kx3655676; Sun, 3 Dec 2023 19:36:03 +0100 Date: Sun, 3 Dec 2023 19:36:02 +0100 From: Jakub Jelinek To: Andreas Krebbel , Florian Weimer Cc: gcc-patches@gcc.gnu.org Subject: [PATCH] testsuite: Fix up gcc.target/s390/pr96127.c test for modern C [PR96127] Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_SHORT, LIKELY_SPAM_BODY, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Jakub Jelinek Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784286908191748033 X-GMAIL-MSGID: 1784286908191748033 Hi! I've noticed this test regressed on s390x-linux with the addition of the switch to modern C patchset. Haven't tried to reproduce the ICE, but as it was a backend ICE and FE after warning used to add such casts before (now errors), I think this ought to keep the testcase testing what was intended before. Ok for trunk? 2023-12-03 Jakub Jelinek PR target/96127 * gcc.target/s390/pr96127.c (c1): Add casts to long int *. Jakub --- gcc/testsuite/gcc.target/s390/pr96127.c.jj 2020-07-28 15:39:10.058755540 +0200 +++ gcc/testsuite/gcc.target/s390/pr96127.c 2023-12-03 19:19:52.140110428 +0100 @@ -7,7 +7,7 @@ void c1 (int oz, int dk, int ub) { int *hd = 0; - long int *th = &dk; + long int *th = (long int *) &dk; while (ub < 1) { @@ -17,7 +17,7 @@ c1 (int oz, int dk, int ub) while (oz < 2) { - long int *lq = &oz; + long int *lq = (long int *) &oz; (*hd < (*lq = *th)) < oz;