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]

Re: [PATCH v3 12/18] convert the Go front end to automatic dependencies


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


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