diff mbox

Committed: fix --enable-build-with-cxx in c-opts.c

Message ID 20100621085059.ntf07qpao8kwcggs-nzlynne@webmail.spamcop.net
State New
Headers show

Commit Message

Joern Rennecke June 21, 2010, 12:50 p.m. UTC
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  <joern.rennecke@embecosm.com>

	* c-opts.c: Include "tm_p.h".
diff mbox

Patch

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