From patchwork Fri Oct 21 10:39:28 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Stubbs X-Patchwork-Id: 4774 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id C3FE923E0B for ; Fri, 21 Oct 2011 10:39:39 +0000 (UTC) Received: from mail-gy0-f180.google.com (mail-gy0-f180.google.com [209.85.160.180]) by fiordland.canonical.com (Postfix) with ESMTP id 8AF59A182F2 for ; Fri, 21 Oct 2011 10:39:39 +0000 (UTC) Received: by gyf1 with SMTP id 1so5355205gyf.11 for ; Fri, 21 Oct 2011 03:39:39 -0700 (PDT) Received: by 10.223.4.215 with SMTP id 23mr24114336fas.8.1319193578776; Fri, 21 Oct 2011 03:39:38 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.1.71 with SMTP id 7cs8171lak; Fri, 21 Oct 2011 03:39:38 -0700 (PDT) Received: by 10.68.73.33 with SMTP id i1mr1677349pbv.116.1319193577048; Fri, 21 Oct 2011 03:39:37 -0700 (PDT) Received: from relay1.mentorg.com (relay1.mentorg.com. [192.94.38.131]) by mx.google.com with ESMTPS id a4si4675236pbh.265.2011.10.21.03.39.36 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 21 Oct 2011 03:39:36 -0700 (PDT) Received-SPF: neutral (google.com: 192.94.38.131 is neither permitted nor denied by best guess record for domain of Andrew_Stubbs@mentor.com) client-ip=192.94.38.131; Authentication-Results: mx.google.com; spf=neutral (google.com: 192.94.38.131 is neither permitted nor denied by best guess record for domain of Andrew_Stubbs@mentor.com) smtp.mail=Andrew_Stubbs@mentor.com Received: from nat-ies.mentorg.com ([192.94.31.2] helo=EU1-MAIL.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1RHCVi-0000nw-QQ from Andrew_Stubbs@mentor.com ; Fri, 21 Oct 2011 03:39:35 -0700 Received: from [127.0.0.1] ([172.16.63.104]) by EU1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 21 Oct 2011 11:39:32 +0100 Message-ID: <4EA14BE0.5000604@codesourcery.com> Date: Fri, 21 Oct 2011 11:39:28 +0100 From: Andrew Stubbs User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" , "patches@linaro.org" CC: Ramana Radhakrishnan Subject: [commit][arm] Fix pr50809: build failure with --enable-build-with-cxx X-OriginalArrivalTime: 21 Oct 2011 10:39:33.0229 (UTC) FILETIME=[B87791D0:01CC8FDD] I've just committed this patch to fix PR50809, in which driver-arm.c failed to build with a C++ compiler and -Werror. The patch is pre-approved by Ramana, and anyway probably qualifies as obvious. Andrew 2011-10-21 Andrew Stubbs PR target/50809 gcc/ * config/arm/driver-arm.c (vendors): Make static. --- a/gcc/config/arm/driver-arm.c +++ b/gcc/config/arm/driver-arm.c @@ -49,7 +49,7 @@ static struct vendor_cpu arm_cpu_table[] = { {NULL, NULL, NULL} }; -struct { +static struct { const char *vendor_no; const struct vendor_cpu *vendor_parts; } vendors[] = {