This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH v3 12/18] convert the Go front end to automatic dependencies
- From: Ian Lance Taylor <iant at google dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, Alexandre Oliva <aoliva at redhat dot com>
- Date: Fri, 23 Aug 2013 17:46:59 -0700
- Subject: Re: [PATCH v3 12/18] convert the Go front end to automatic dependencies
- References: <1377007156-540-1-git-send-email-tromey at redhat dot com> <1377007156-540-13-git-send-email-tromey at redhat dot com>
2013/8/20 Tom Tromey <tromey@redhat.com>:
> This converts Go.
>
> It renames gospec.o to go/gospec.o, for uniformity and so we can
> remove an explicit rule.
>
> It defines go_OBJS, to conform to the documented Make-lang.in
> conventions, and to ensure that Go objects are given the correct
> order-only dependencies on generated files.
>
> * Make-lang.in (gospec.o): Remove.
> (CFLAGS-go/gospec.o): New variable.
> (GCCGO_OBJS): Update to use go/gospec.o.
> (go_OBJS): Define.
> (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
> (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
> (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
> (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
> (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
> (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
> (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
> (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
> (go/unsafe.o): Remove.
> (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
> (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
This is OK.
I assume that dropping $(OUTPUT_OPTION) is correct--I haven't looked
at the new definition of $(COMPILE).
Many thanks.
Ian