From patchwork Tue Aug 25 21:23:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 510632 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 87EA5140311 for ; Wed, 26 Aug 2015 07:24:05 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=OwL2Vetz; dkim-atps=neutral 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:cc:subject:in-reply-to:message-id:references :mime-version:content-type; q=dns; s=default; b=R2uVN5q+OjlhNAAU TQOKCV873N13NAc7nlgJ0S6+W6HoVWkXU1lUKZXhCToHlkScVLNhVt4SNpI1fgAf KmJP+T8YZvICr5Slpi0nSRRQIuHnIPa60PHCgVno5sc2Pzm9+H2o99thx0WXouYr uOLxsfpsgHogayYstkDCehCihfQ= 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:cc:subject:in-reply-to:message-id:references :mime-version:content-type; s=default; bh=s04yYKLwsYnhvdHfi7CK6d NPRbA=; b=OwL2VetzmNYOAyIFeJVGUqZgwFV5eDZ0dayevtT5wcRqKGycPNxNWS GDE+HjIIXcqfe9zwyvc6Hm0QSFyKDcH4Q+2cFTxKahnDxHolLmUoXUqPqUPGp90y CD6ITM7qctirb3O1nCFm3kVIKwrBMaCj5C71YlSy9r/xGhCjw6PPU= Received: (qmail 56388 invoked by alias); 25 Aug 2015 21:23:58 -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 56369 invoked by uid 89); 25 Aug 2015 21:23:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients 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; Tue, 25 Aug 2015 21:23:56 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-01.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1ZULhA-00066N-OK from joseph_myers@mentor.com ; Tue, 25 Aug 2015 14:23:52 -0700 Received: from digraph.polyomino.org.uk (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.3.224.2; Tue, 25 Aug 2015 22:23:43 +0100 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.82) (envelope-from ) id 1ZULh0-0002m8-C1; Tue, 25 Aug 2015 21:23:42 +0000 Date: Tue, 25 Aug 2015 21:23:42 +0000 From: Joseph Myers To: David Malcolm CC: , Subject: Re: [PATCH 1/2] driver: support state cleanup In-Reply-To: <1440534501.31999.12.camel@surprise> Message-ID: References: <1438872724-18658-1-git-send-email-dmalcolm@redhat.com> <1438872724-18658-2-git-send-email-dmalcolm@redhat.com> <1440534501.31999.12.camel@surprise> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 I've committed as obvious this patch to fix a build failure this introduced for targets not defining EXTRA_SPECS, in which case extra_specs is not declared. (nvptx-none was the target for which I came across such a failure.) 2015-08-25 Joseph Myers * gcc.c (driver::finalize): Only assign to extra_specs if [EXTRA_SPECS]. Index: gcc.c =================================================================== --- gcc.c (revision 227191) +++ gcc.c (working copy) @@ -9813,7 +9813,9 @@ driver::finalize () } *(sl->ptr_spec) = sl->default_ptr; } +#ifdef EXTRA_SPECS extra_specs = NULL; +#endif processing_spec_function = 0;