This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gccgo] Move non-gcc parts of Go frontend to subdirectory

In my continuing effort to separate the Go frontend proper from the gcc
interface, I have moved the Go frontend proper into a subdirectory on
the gccgo branch.  This patch does not change the master sources at all;
that will follow.

I have moved the following files from the directory gcc/go to the new
directory gcc/go/gofrontend:

LICENSE		lex.h
README	     expressions.h   gogo.h		operator.h     types.h
dataflow.h   go-dump.h		parse.h	     import.h
export.h		statements.h

I did not move the file, but instead changed it per the
appended patch.

Committed to gccgo branch.


---	(revision 166230)
+++	(working copy)
@@ -6,14 +6,9 @@
 # This file provides the language dependent support in the main Makefile.
-# C++ support.  These should really be in the top level Makefile.
-.SUFFIXES: .c .cc .o .po .pox .gmo
+# C++ support.  This should really be in the top level Makefile.
 ALL_CXXFLAGS = $(filter-out -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wc++-compat, $(ALL_COMPILERFLAGS)) $(CXXFLAGS)
 # Build Go export info generator.
@@ -129,50 +124,61 @@ GO_SYSTEM_H = go/go-system.h $(CONFIG_H)
 GO_C_H = go/go-c.h $(MACHMODE_H)
-GO_LEX_H = go/lex.h go/operator.h
-GO_PARSE_H = go/parse.h
-GO_GOGO_H = go/gogo.h
-GO_TYPES_H = go/types.h
-GO_STATEMENTS_H = go/statements.h go/operator.h
-GO_EXPRESSIONS_H = go/expressions.h go/operator.h
-GO_IMPORT_H = go/import.h go/export.h
-go/dataflow.o: go/ $(GO_SYSTEM_H) $(GO_GOGO_H) $(GO_EXPRESSIONS_H) \
-	$(GO_STATEMENTS_H) go/dataflow.h
-go/export.o: go/ $(GO_SYSTEM_H) $(srcdir)/../include/sha1.h \
-	$(MACHMODE_H) output.h $(TARGET_H) $(GO_GOGO_H) $(GO_TYPES_H) \
-	$(GO_STATEMENTS_H) go/export.h
-go/expressions.o: go/ $(GO_SYSTEM_H) $(TOPLEV_H) intl.h \
-	$(TREE_H) $(GIMPLE_H) tree-iterator.h convert.h $(REAL_H) realmpfr.h \
-	$(TM_P_H) $(GO_C_H) $(GO_GOGO_H) $(GO_TYPES_H) go/export.h \
-go/go.o: go/ $(GO_SYSTEM_H) $(GO_C_H) $(GO_LEX_H) $(GO_PARSE_H) \
-	$(GO_GOGO_H)
-go/go-dump.o: go/ $(GO_SYSTEM_H) $(GO_C_H) go/go-dump.h
+GO_LEX_H = go/gofrontend/lex.h go/gofrontend/operator.h
+GO_PARSE_H = go/gofrontend/parse.h
+GO_GOGO_H = go/gofrontend/gogo.h
+GO_TYPES_H = go/gofrontend/types.h
+GO_STATEMENTS_H = go/gofrontend/statements.h go/gofrontend/operator.h
+GO_EXPRESSIONS_H = go/gofrontend/expressions.h go/gofrontend/operator.h
+GO_IMPORT_H = go/gofrontend/import.h go/gofrontend/export.h
 go/go-lang.o: go/go-lang.c $(GO_SYSTEM_H) coretypes.h opts.h $(TREE_H) \
 	$(GIMPLE_H) $(GGC_H) $(TOPLEV_H) debug.h options.h $(FLAGS_H) \
 	convert.h langhooks.h $(LANGHOOKS_DEF_H) $(EXCEPT_H) $(TARGET_H) \
 	$(DIAGNOSTIC_H) $(GO_C_H) gt-go-go-lang.h gtype-go.h
-go/gogo-tree.o: go/ $(GO_SYSTEM_H) $(TOPLEV_H) $(TREE_H) \
-	$(GIMPLE_H) tree-iterator.h $(CGRAPH_H) langhooks.h convert.h output.h \
-go/gogo.o: go/ $(GO_SYSTEM_H) go/go-dump.h $(GO_LEX_H) $(GO_TYPES_H) \
-	go/export.h $(GO_GOGO_H)
-go/import.o: go/ $(GO_SYSTEM_H) $(srcdir)/../include/filenames.h \
-	../include/simple-object.h $(GO_C_H) $(GO_GOGO_H) $(GO_TYPES_H) \
-	go/export.h $(GO_IMPORT_H)
-go/import-archive.o: go/ $(GO_SYSTEM_H) $(GO_IMPORT_H)
-go/lex.o: go/ $(GO_LEX_H) $(GO_SYSTEM_H)
-go/parse.o: go/ $(GO_SYSTEM_H) $(GO_LEX_H) $(GO_GOGO_H) $(GO_TYPES_H) \
-go/statements.o: go/ $(GO_SYSTEM_H) intl.h $(TREE_H) \
+GOINCLUDES = -I $(srcdir)/go -I $(srcdir)/go/gofrontend
+go/%.o: go/gofrontend/
+go/dataflow.o: go/gofrontend/ $(GO_SYSTEM_H) $(GO_GOGO_H) \
+	$(GO_EXPRESSIONS_H) $(GO_STATEMENTS_H) go/gofrontend/dataflow.h
+go/export.o: go/gofrontend/ $(GO_SYSTEM_H) \
+	$(srcdir)/../include/sha1.h $(MACHMODE_H) output.h $(TARGET_H) \
+	$(GO_GOGO_H) $(GO_TYPES_H) $(GO_STATEMENTS_H) go/gofrontend/export.h
+go/expressions.o: go/gofrontend/ $(GO_SYSTEM_H) $(TOPLEV_H) \
+	intl.h $(TREE_H) $(GIMPLE_H) tree-iterator.h convert.h $(REAL_H) \
+	realmpfr.h $(TM_P_H) $(GO_C_H) $(GO_GOGO_H) $(GO_TYPES_H) \
+	go/gofrontend/export.h $(GO_IMPORT_H) $(GO_STATEMENTS_H) $(GO_LEX_H) \
+go/go.o: go/gofrontend/ $(GO_SYSTEM_H) $(GO_C_H) $(GO_LEX_H) \
+go/go-dump.o: go/gofrontend/ $(GO_SYSTEM_H) $(GO_C_H) \
+	go/gofrontend/go-dump.h
+go/gogo-tree.o: go/gofrontend/ $(GO_SYSTEM_H) $(TOPLEV_H) \
+	$(TREE_H) $(GIMPLE_H) tree-iterator.h $(CGRAPH_H) langhooks.h \
+	convert.h output.h $(TM_P_H) $(DIAGNOSTIC_H) $(RTL_H) $(GO_TYPES_H) \
+go/gogo.o: go/gofrontend/ $(GO_SYSTEM_H) go/gofrontend/go-dump.h \
+	go/gofrontend/dataflow.h $(GO_IMPORT_H) go/gofrontend/export.h \
+	$(GO_GOGO_H)
+go/import.o: go/gofrontend/ $(GO_SYSTEM_H) \
+	$(srcdir)/../include/filenames.h $(srcdir)/../include/simple-object.h \
+	$(GO_C_H) $(GO_GOGO_H) $(GO_TYPES_H) go/gofrontend/export.h \
+go/import-archive.o: go/gofrontend/ $(GO_SYSTEM_H) \
+go/lex.o: go/gofrontend/ $(GO_LEX_H) $(GO_SYSTEM_H)
+go/parse.o: go/gofrontend/ $(GO_SYSTEM_H) $(GO_LEX_H) $(GO_GOGO_H) \
+go/statements.o: go/gofrontend/ $(GO_SYSTEM_H) intl.h $(TREE_H) \
 	$(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H) \
-go/types.o: go/ $(GO_SYSTEM_H) $(TOPLEV_H) intl.h $(TREE_H) \
-	$(GIMPLE_H) $(REAL_H) convert.h $(GO_C_H) $(GO_GOGO_H) go/operator.h \
-go/unsafe.o: go/ $(GO_SYSTEM_H) $(GO_TYPES_H) $(GO_GOGO_H)
+go/types.o: go/gofrontend/ $(GO_SYSTEM_H) $(TOPLEV_H) intl.h $(TREE_H) \
+	$(GIMPLE_H) $(REAL_H) convert.h $(GO_C_H) $(GO_GOGO_H) \
+	go/gofrontend/operator.h $(GO_EXPRESSIONS_H) $(GO_STATEMENTS_H) \
+	go/gofrontend/export.h $(GO_IMPORT_H) $(GO_TYPES_H)
+go/unsafe.o: go/gofrontend/ $(GO_SYSTEM_H) $(GO_TYPES_H) $(GO_GOGO_H)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]