From patchwork Thu Dec 6 10:19:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Biener X-Patchwork-Id: 1008695 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-491776-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="ouFlUSRa"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 439Xcs2y2wz9s1c for ; Thu, 6 Dec 2018 21:57:48 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=JsE1bsJylKAb2svYG/RKfEi9FLEqHhEEmf+gO9fKYyEeWxDHacJ9B ib74UAokS5Th2LEbHiX89oob+ZqKrqjR/3r/yCbrb4nNQ3agJKV6JY4E9WJuJzRa zHsPZ6r5pRqUj1CyPKFHLeZaDJa0CJd7khdcw2/QkMUtSzfI6CA7lY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=ULynDG3EGYGJd0JXZAuBsElxZ+c=; b=ouFlUSRasWaHNuW/zmuu jpxVWBegpcZQVlSQ94NzJ73MxZ6C0QKW8PKzIO+kAkS8ICV3FPnIcrwMnWmMP4O6 CPRsrHLNptyL1+IMYbkmj78G8LqIhOzDSuaGuVRzdoYGp8HQ56+iLPaIpsFytKCb TV6fe0zYC/AbQ+UewG4sqLA= Received: (qmail 122527 invoked by alias); 6 Dec 2018 10:33:40 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 4768 invoked by uid 89); 6 Dec 2018 10:19:51 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS, TIME_LIMIT_EXCEEDED autolearn=unavailable version=3.3.2 spammy= X-HELO: mx1.suse.de Received: from mx2.suse.de (HELO mx1.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 06 Dec 2018 10:19:41 +0000 Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id F0E73B011 for ; Thu, 6 Dec 2018 10:19:37 +0000 (UTC) Date: Thu, 6 Dec 2018 11:19:37 +0100 (CET) From: Richard Biener To: gcc-patches@gcc.gnu.org Subject: [PATCH] Adjust PR63184 testcases Message-ID: User-Agent: Alpine 2.20 (LSU 67 2015-01-07) MIME-Version: 1.0 Committed. 2018-12-06 Richard Biener PR middle-end/63184 * c-c++-common/pr19807-2.c: Try link only on x86, add xfailed optimized dump scanning. * c-c++-common/pr19807-3.c: Likewise. diff --git a/gcc/testsuite/c-c++-common/pr19807-2.c b/gcc/testsuite/c-c++-common/pr19807-2.c index c8b2a57d654..d2c010140d0 100644 --- a/gcc/testsuite/c-c++-common/pr19807-2.c +++ b/gcc/testsuite/c-c++-common/pr19807-2.c @@ -1,5 +1,6 @@ -/* { dg-do link } */ -/* { dg-options "-O" } */ +/* Some targets can optimize this on RTL. */ +/* { dg-do link { target { x86_64-*-* i?86-*-* } } } */ +/* { dg-options "-O -fdump-tree-optimized" } */ extern void link_error(void); int i; @@ -10,3 +11,5 @@ int main() link_error(); return 0; } + +/* { dg-final { scan-tree-dump-not "link_error" "optimized" { xfail *-*-* } } } */ diff --git a/gcc/testsuite/c-c++-common/pr19807-3.c b/gcc/testsuite/c-c++-common/pr19807-3.c index d882bd369bf..bb7f9827725 100644 --- a/gcc/testsuite/c-c++-common/pr19807-3.c +++ b/gcc/testsuite/c-c++-common/pr19807-3.c @@ -1,5 +1,6 @@ -/* { dg-do link } */ -/* { dg-options "-O" } */ +/* Some targets can optimize this on RTL. */ +/* { dg-do link { target { x86_64-*-* i?86-*-* } } } */ +/* { dg-options "-O -fdump-tree-optimized" } */ extern void link_error(void); int i; @@ -10,3 +11,5 @@ int main() link_error(); return 0; } + +/* { dg-final { scan-tree-dump-not "link_error" "optimized" { xfail *-*-* } } } */