From patchwork Mon Jun 21 12:50:59 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joern Rennecke X-Patchwork-Id: 56306 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]) by ozlabs.org (Postfix) with SMTP id D0C2AB7D29 for ; Mon, 21 Jun 2010 22:51:20 +1000 (EST) Received: (qmail 1595 invoked by alias); 21 Jun 2010 12:51:12 -0000 Received: (qmail 1572 invoked by uid 22791); 21 Jun 2010 12:51:09 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, TW_CX X-Spam-Check-By: sourceware.org Received: from c60.cesmail.net (HELO c60.cesmail.net) (216.154.195.49) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 21 Jun 2010 12:51:02 +0000 Received: from unknown (HELO delta2) ([192.168.1.50]) by c60.cesmail.net with ESMTP; 21 Jun 2010 08:50:59 -0400 Received: from 89.240.194.79 ([89.240.194.79]) by webmail.spamcop.net (Horde MIME library) with HTTP; Mon, 21 Jun 2010 08:50:59 -0400 Message-ID: <20100621085059.ntf07qpao8kwcggs-nzlynne@webmail.spamcop.net> Date: Mon, 21 Jun 2010 08:50:59 -0400 From: Joern Rennecke To: gcc-patches@gcc.gnu.org Subject: Committed: fix --enable-build-with-cxx in c-opts.c MIME-Version: 1.0 User-Agent: Internet Messaging Program (IMP) H3 (4.1.4) 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 The target spu-elf failed to build with --enable-build-with-cxx because c-opts.c was using a target macro without including tm_p.h, so the function that implemented the macro had no prototype in scope. Fixed by adding the missing include. Bootstrapped & regression tested on i686-pc-linux-gnu in revision 161065. committed as obvious. 2010-06-21 Joern Rennecke * c-opts.c: Include "tm_p.h". Index: c-opts.c =================================================================== --- c-opts.c (revision 161065) +++ c-opts.c (working copy) @@ -37,6 +37,7 @@ along with GCC; see the file COPYING3. #include "options.h" #include "mkdeps.h" #include "target.h" /* For gcc_targetcm. */ +#include "tm_p.h" /* For C_COMMON_OVERRIDE_OPTIONS. */ #ifndef DOLLARS_IN_IDENTIFIERS # define DOLLARS_IN_IDENTIFIERS true