public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Committed: fix --enable-build-with-cxx in c-opts.c
@ 2010-06-21 13:30 Joern Rennecke
  0 siblings, 0 replies; only message in thread
From: Joern Rennecke @ 2010-06-21 13:30 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 336 bytes --]

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.

[-- Attachment #2: override-patch --]
[-- Type: text/plain, Size: 513 bytes --]

2010-06-21  Joern Rennecke  <joern.rennecke@embecosm.com>

	* 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-06-21 12:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-21 13:30 Committed: fix --enable-build-with-cxx in c-opts.c Joern Rennecke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).