diff mbox

Go patch committed: Don't include "except.h" in go-lang.c

Message ID mcrppu9crt7.fsf@iant-glaptop.roam.corp.google.com
State New
Headers show

Commit Message

Ian Lance Taylor July 23, 2013, 1:46 p.m. UTC
This patch removes the #include of "except.h" from go-lang.c.  I added
it in order to call build_personality_function, but that declaration is
now in tree.h.  except.h is considered to be a backend header that
should not be included in frontend code.  Bootstrapped and ran Go
testsuite on x86_64-unknown-linux-gnu.  Committed to mainline.

Ian


2013-07-23  Ian Lance Taylor  <iant@google.com>

	* go-lang.c: Don't #include "except.h".
	* Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
diff mbox

Patch

Index: go-lang.c
===================================================================
--- go-lang.c	(revision 200210)
+++ go-lang.c	(working copy)
@@ -33,7 +33,6 @@  along with GCC; see the file COPYING3.
 #include "diagnostic.h"
 #include "langhooks.h"
 #include "langhooks-def.h"
-#include "except.h"
 #include "target.h"
 #include "common/common-target.h"
 
Index: Make-lang.in
===================================================================
--- Make-lang.in	(revision 200210)
+++ Make-lang.in	(working copy)
@@ -248,7 +248,7 @@  CFLAGS-go/go-lang.o += -DDEFAULT_TARGET_
 go/go-lang.o: go/go-lang.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(OPTS_H) \
 		$(TREE_H) $(GIMPLE_H) $(GGC_H) $(TOPLEV_H) debug.h options.h \
 		$(FLAGS_H) convert.h $(DIAGNOSTIC_H) langhooks.h \
-		$(LANGHOOKS_DEF_H) $(EXCEPT_H) $(TARGET_H) $(GO_C_H) \
+		$(LANGHOOKS_DEF_H) $(TARGET_H) $(GO_C_H) \
 		gt-go-go-lang.h gtype-go.h $(COMMON_TARGET_H)
 
 GOINCLUDES = -I $(srcdir)/go -I $(srcdir)/go/gofrontend