aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/go-c.h
AgeCommit message (Collapse)AuthorFilesLines
2011-05-27Change export code to use the backend interface.Ian Lance Taylor1-0/+2
* go-backend.c: Include "output.h". (go_write_export_data): New function. * go-c.h (go_write_export_data): Declare. * Make-lang.in (go/go-backend.o): Depend on output.h. (go/export.o): Depend on $(GO_C_H). Do not depend on $(MACHMODE_H), output.h, or $(TARGET_H). From-SVN: r174366
2011-01-21Remove the types float and complex.Ian Lance Taylor1-2/+1
Update to current version of Go library. Update testsuite for removed types. * go-lang.c (go_langhook_init): Omit float_type_size when calling go_create_gogo. * go-c.h: Update declaration of go_create_gogo. From-SVN: r169098
2011-01-14Move clearing of flag_strict_aliasing to gcc interface.Ian Lance Taylor1-1/+3
From-SVN: r168774
2010-12-04re PR bootstrap/46776 (gogo-tree.cc uses TRAMPOLINE_ALIGNMENT and ↵Ian Lance Taylor1-0/+6
TRAMPOLINE_SIZE) PR bootstrap/46776 * go-backend.c: New file. * go-c.h (go_type_alignment): Declare. (go_field_alignment, go_trampoline_info): Declare. * Make-lang.in (GO_OBJS): Add go/go-backend.o. (go/go-backend.o): New target. (go/go-lang.o): Make dependencies match source file. (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H). (go/gogo-tree.o): Don't depend on $(TM_H). Remove #include "tm.h" from gofrontend/*.cc. From-SVN: r167451
2010-12-03Add Go frontend, libgo library, and Go testsuite.Ian Lance Taylor1-0/+66
gcc/: * gcc.c (default_compilers): Add entry for ".go". * common.opt: Add -static-libgo as a driver option. * doc/install.texi (Configuration): Mention libgo as an option for --enable-shared. Mention go as an option for --enable-languages. * doc/invoke.texi (Overall Options): Mention .go as a file name suffix. Mention go as a -x option. * doc/frontends.texi (G++ and GCC): Mention Go as a supported language. * doc/sourcebuild.texi (Top Level): Mention libgo. * doc/standards.texi (Standards): Add section on Go language. Move references for other languages into their own section. * doc/contrib.texi (Contributors): Mention that I contributed the Go frontend. gcc/testsuite/: * lib/go.exp: New file. * lib/go-dg.exp: New file. * lib/go-torture.exp: New file. * lib/target-supports.exp (check_compile): Match // Go. From-SVN: r167407