This is the mail archive of the gcc-patches@gcc.gnu.org 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] Rename cgo to goc in runtime directory


The main Go library renamed to cgo2c program to goc2c, and rename the
input files from *.cgo to *.goc.  I applied the same change to gccgo's
libgo/runtime directory.  I've only included the relevant part of the
patch below; the rest is just file moves.  Committed to gccgo branch.

Ian

diff -r 41b28062e282 libgo/Makefile.am
--- a/libgo/Makefile.am	Tue Jun 15 07:14:15 2010 -0700
+++ b/libgo/Makefile.am	Thu Jun 17 16:53:28 2010 -0700
@@ -336,22 +336,22 @@
 	sigqueue.c \
 	string.c
 
-cgo2c.o: runtime/cgo2c.c
+goc2c.o: runtime/goc2c.c
 	$(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) $<
 
-cgo2c: cgo2c.o
+goc2c: goc2c.o
 	$(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ $<
 
-malloc.c: $(srcdir)/runtime/malloc.cgo cgo2c
-	./cgo2c --gcc --go-prefix libgo_runtime $< > $@.tmp
+malloc.c: $(srcdir)/runtime/malloc.goc goc2c
+	./goc2c --gcc --go-prefix libgo_runtime $< > $@.tmp
 	mv -f $@.tmp $@
 
-sigqueue.c: $(srcdir)/runtime/sigqueue.cgo cgo2c
-	./cgo2c --gcc --go-prefix libgo_runtime $< > $@.tmp
+sigqueue.c: $(srcdir)/runtime/sigqueue.goc goc2c
+	./goc2c --gcc --go-prefix libgo_runtime $< > $@.tmp
 	mv -f $@.tmp $@
 
-%.c: $(srcdir)/runtime/%.cgo cgo2c
-	./cgo2c --gcc $< > $@.tmp
+%.c: $(srcdir)/runtime/%.goc goc2c
+	./goc2c --gcc $< > $@.tmp
 	mv -f $@.tmp $@
 
 BUILT_SOURCES = chan.c iface.c malloc.c map.c sigqueue.c string.c

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