From patchwork Mon Jun 21 12:50:59 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Committed: fix --enable-build-with-cxx in c-opts.c Date: Mon, 21 Jun 2010 02:50:59 -0000 From: Joern Rennecke X-Patchwork-Id: 56306 Message-Id: <20100621085059.ntf07qpao8kwcggs-nzlynne@webmail.spamcop.net> To: 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