From patchwork Fri Dec 3 11:13:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 48459 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DD2A23857C7C for ; Fri, 3 Dec 2021 11:14:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DD2A23857C7C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1638530053; bh=Ud8ixe2sEpF0W00cJTZXl0A22HIpUL5fDsGAfRNKZF4=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=C52E3+tnHbDQWy0pO9jAJOkKjDWkVryMGPljvhmOo5lgc/2DhnfGTBkmLYUmmNP6U 0ugturbg9skwxwV0kYWWrG0QBm1gNujmmWVQUpQuxGG7KT0H3ZQvYYHGTwsYYyS+93 IkPSbp0kd5mVlCqetRjuY9CxsSiVmgxwZ9pXLGn0= 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 114B83858022 for ; Fri, 3 Dec 2021 11:13:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 114B83858022 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-554-vlaMwrJYMRKUgOdnzUVwEQ-1; Fri, 03 Dec 2021 06:13:43 -0500 X-MC-Unique: vlaMwrJYMRKUgOdnzUVwEQ-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B543E1023F55; Fri, 3 Dec 2021 11:13:42 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.194.188]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 25521694DE; Fri, 3 Dec 2021 11:13:41 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.16.1/8.16.1) with ESMTPS id 1B3BDcQu2585801 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 3 Dec 2021 12:13:39 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.16.1/8.16.1/Submit) id 1B3BDbOY2585800; Fri, 3 Dec 2021 12:13:37 +0100 Date: Fri, 3 Dec 2021 12:13:37 +0100 To: Siddhesh Poyarekar Subject: [committed] testsuite: Fix up pr103456.c testcase [PR103456] Message-ID: <20211203111337.GP2646553@tucnak> References: <20211201071836.GT2646553@tucnak> <20211201083159.4044250-1-siddhesh@gotplt.org> MIME-Version: 1.0 In-Reply-To: <20211201083159.4044250-1-siddhesh@gotplt.org> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: Jakub Jelinek via Gcc-patches From: Jakub Jelinek Reply-To: Jakub Jelinek Cc: gcc-patches@gcc.gnu.org Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" On Wed, Dec 01, 2021 at 02:01:59PM +0530, Siddhesh Poyarekar wrote: > PR tree-optimization/103456 > * gcc.dg/ubsan/pr103456.c: New test. ubsan.exp cycles through torture options, and that includes -O2 -flto -fno-fat-lto-objects. But with those options tree dump scans don't work for post-IPA passes, for dg-do compile tests nothing after IPA is done. So we get an unresolved testcase: gcc.dg/ubsan/pr103456.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects : dump file does not exist UNRESOLVED: gcc.dg/ubsan/pr103456.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects scan-tree-dump-not objsz1 "maximum object size 0" Fixed by adding -ffat-lto-objects so that we perform the post-IPA passes. Tested on x86_64-linux, committed to trunk as obvious. 2021-12-03 Jakub Jelinek PR tree-optimization/103456 * gcc.dg/ubsan/pr103456.c: Add -ffat-lto-objects to dg-options. Jakub --- gcc/testsuite/gcc.dg/ubsan/pr103456.c.jj 2021-12-01 10:03:55.404029919 +0100 +++ gcc/testsuite/gcc.dg/ubsan/pr103456.c 2021-12-03 12:06:57.613750230 +0100 @@ -1,6 +1,6 @@ /* PR tree-optimization/103456 */ /* { dg-do compile } */ -/* { dg-options "-fsanitize=undefined -O -fdump-tree-objsz" } */ +/* { dg-options "-fsanitize=undefined -O -fdump-tree-objsz -ffat-lto-objects" } */ static char *multilib_options = "m64/m32";