From patchwork Wed Dec 27 08:00:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom de Vries X-Patchwork-Id: 853090 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-469831-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="oy+xU+hq"; 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 3z64zS5jtfz9t2Q for ; Wed, 27 Dec 2017 19:00:49 +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 :subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type; q=dns; s=default; b=XPicclKeZTv16qsoQ uLjXK82CWw3E2JIe9R5D7eA75yhIV8mYacnNk7TlSVYKKZANUueSTty7RVlqsI/q 0oSJj4wCpTeQlEvSGFloxvzBjqTANz8BWRLGF0sDCVNU/v2lMyzD2+O9or85UanG V4MdkopMWnZOPXSpNf0Djvy6Ak= 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 :subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type; s=default; bh=hKs/PI6GrqBZwausZ6Q8F8B 1vR8=; b=oy+xU+hqKUPzRskdFavmfPf3mfF/a3i7TWPqCuP8usM83Jry8D4YiVw o3m2JTKr48W1Ontb97yC3c4bQmk3tOATmuIVOsdeGz3O59WNVWcqqApmemS6x8Wb RzeTbjveNbJQc3apj9/RrEJmLeMVLcG7MB51gnBkx7FZN5XVY/R4= Received: (qmail 112458 invoked by alias); 27 Dec 2017 08:00:39 -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 112437 invoked by uid 89); 27 Dec 2017 08:00:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No 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, RCVD_IN_DNSWL_NONE, SPF_PASS, URIBL_RED autolearn=ham version=3.3.2 spammy= X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 27 Dec 2017 08:00:36 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-MBX-04.mgc.mentorg.com) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1eU6de-0000Pm-MG from Tom_deVries@mentor.com ; Wed, 27 Dec 2017 00:00:34 -0800 Received: from [172.30.72.108] (137.202.0.87) by SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Wed, 27 Dec 2017 08:00:30 +0000 Subject: [nvptx, committed] Disable -gstatement-frontiers for nvptx To: Alexandre Oliva , Richard Biener , Jeff Law , Jason Merrill CC: GCC Patches , Thomas Schwinge References: <20171110023448.28164-6-aoliva@redhat.com> From: Tom de Vries Message-ID: <46e52372-6559-da67-6f90-074a80e6deae@mentor.com> Date: Wed, 27 Dec 2017 09:00:29 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20171110023448.28164-6-aoliva@redhat.com> X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) [ was: Re: [SFN+LVU+IEPM v4 6/9] [SFN] Introduce -gstatement-frontiers option, enable debug markers ] On 11/10/2017 03:34 AM, Alexandre Oliva wrote: > Introduce a command line option to enable statement frontiers, enabled > by default in optimized builds with DWARF2+ debug information. > > This patch depends on an earlier patch that completed the > infrastructure for debug markers, and on another patch that turns -g > into a negatable option prefix. > > gcc/ChangeLog > > * common.opt (gstatement-frontiers): New, setting > debug_nonbind_markers_p. Hi, the ptx syntax for the .loc directive is limited to: ... .loc file_index line_number column_position ... so this causes ptxas errors when compiling something for nvptx with -g, which breaks the nvptx build. This patch disables gstatement-frontiers for nvptx. Tested libgomp for x86_64 with nvptx accelerator. Committed. Thanks, - Tom Disable -gstatement-frontiers for nvptx 2017-12-27 Tom de Vries * config/nvptx/nvptx.c (nvptx_option_override): Disable -gstatement-frontiers. --- gcc/config/nvptx/nvptx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c index cce0a55..e024570 100644 --- a/gcc/config/nvptx/nvptx.c +++ b/gcc/config/nvptx/nvptx.c @@ -177,6 +177,8 @@ nvptx_option_override (void) if (!global_options_set.x_flag_toplevel_reorder) flag_toplevel_reorder = 1; + debug_nonbind_markers_p = 0; + /* Set flag_no_common, unless explicitly disabled. We fake common using .weak, and that's not entirely accurate, so avoid it unless forced. */