OSDN Git Service

gccgo: fixes to ast-dump, refactoring of export and ast-dump
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 Aug 2011 19:22:44 +0000 (19:22 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 Aug 2011 19:22:44 +0000 (19:22 +0000)
commit8b1c301d2270a3742bee6311d843fdb00fadc041
treeb321299877c5f4c075b0bf489c636f9c0c8dc1f3
parent17c8bd7b419fe0ea91f7263ee8677e747ca70d4b
gccgo:  fixes to ast-dump, refactoring of export and ast-dump
        to implement a common interface for writing basic
        type literals and added flags for optimization.

* lang.opt: Add fgo-optimize-.
* go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
* go-c.h (go_enable_optimize): Declare.
* Make-lang.in (GO_OBJS): Add go/go-optimize.o.
(GO_EXPORT_H): Define.
(GO_IMPORT_H): Add $(GO_EXPORT_H).
(GO_AST_DUMP_H): Define.
(go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
(go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
(go/types.o): Likewise.
(go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
(go/go-optimize.o): New target.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178046 138bc75d-0d04-0410-961f-82ee72b054a4
14 files changed:
gcc/go/ChangeLog
gcc/go/Make-lang.in
gcc/go/go-c.h
gcc/go/go-lang.c
gcc/go/gofrontend/ast-dump.cc
gcc/go/gofrontend/ast-dump.h
gcc/go/gofrontend/export.h
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/expressions.h
gcc/go/gofrontend/go-optimize.cc [new file with mode: 0644]
gcc/go/gofrontend/go-optimize.h [new file with mode: 0644]
gcc/go/gofrontend/statements.cc
gcc/go/gofrontend/string-dump.h [new file with mode: 0644]
gcc/go/lang.opt