From patchwork Thu Jun 20 10:40:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom de Vries X-Patchwork-Id: 1119377 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-503346-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="YABEUpKD"; 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 45Tyy70MVDz9s4V for ; Thu, 20 Jun 2019 20:40:14 +1000 (AEST) 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=r4yh+kAw7T9upwZwdLg27/vgXuyM0ngY4gSUi4N82G5QcpYGyV3aV CBDf1S9FtJKASuZ/SY6p2UYyBt70tFgr7Ca80B6fFgMEwiRlsWzad/vh57RT7dth CO/YSo9a8r/DW9Y8aEw+2P9KwSzUYLOh3Gp1oFfUYcHbDsPxNcwTGc= 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=IEl0zZ47zbvdsvd/u4EPfrejBgg=; b=YABEUpKD25WlXSqwt9fR 38vaRsEDjxGjni3TdrvZQqLIKVT+QcW3MR8jtg2uYc/TiXelCHlO99GhVrnx1tvf +ovQJ+DGr1X6CCct+U5AiOqkZPszsk6iJjRIlPzbvk5M3mxLDMnplxzeQvo/DjJM iHcu/D1A3G16cAT9hAPj2bQ= Received: (qmail 32576 invoked by alias); 20 Jun 2019 10:40:08 -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 32568 invoked by uid 89); 20 Jun 2019 10:40:07 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-24.7 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:957 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, 20 Jun 2019 10:40:07 +0000 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 062EDAE9E for ; Thu, 20 Jun 2019 10:40:05 +0000 (UTC) Date: Thu, 20 Jun 2019 12:40:03 +0200 From: Tom de Vries To: gcc-patches@gcc.gnu.org Subject: [committed][testsuite] Add missing dg-require-effective-target global_constructor Message-ID: <20190620104001.GA11007@delia> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-IsSubscribed: yes Hi, Add missing dg-require-effective-target global_constructor. Tested on nvptx. Committed to trunk. Thanks, - Tom [testsuite] Add missing dg-require-effective-target global_constructor 2019-06-20 Tom de Vries * gcc.dg/pr90866-2.c: Require global_constructor. --- gcc/testsuite/gcc.dg/pr90866-2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.dg/pr90866-2.c b/gcc/testsuite/gcc.dg/pr90866-2.c index 8c110498154..38eb8742859 100644 --- a/gcc/testsuite/gcc.dg/pr90866-2.c +++ b/gcc/testsuite/gcc.dg/pr90866-2.c @@ -1,6 +1,8 @@ /* PR tree-optimization/90866 - ICE in fold_binary_loc, at fold-const.c:9827 { dg-do compile } - { dg-options "-O2 -fsanitize=thread" } */ + { dg-require-effective-target global_constructor } + { dg-options "-O2 -fsanitize=thread" } + */ typedef enum { a } b; typedef struct {