diff mbox

[gccgo] Rename cgo to goc in runtime directory

Message ID mcreig5xlad.fsf@dhcp-172-17-9-151.mtv.corp.google.com
State New
Headers show

Commit Message

Ian Lance Taylor June 17, 2010, 11:59 p.m. UTC
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 mbox

Patch

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