This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Go patch committed: Don't include "except.h" in go-lang.c
- From: Ian Lance Taylor <iant at google dot com>
- To: gcc-patches at gcc dot gnu dot org, gofrontend-dev at googlegroups dot com
- Date: Tue, 23 Jul 2013 06:46:28 -0700
- Subject: Go patch committed: Don't include "except.h" in go-lang.c
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).
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