* gospec.c: pass -u pthread_create to linker when static linking.
[gcc.git] / gcc / go / ChangeLog
index 9b17bf4b2341eea391b66ee5a50eb08ab2323083..61739cea4f2202d9fa5c1cc63892d7606616ce88 100644 (file)
@@ -1,3 +1,208 @@
+2013-01-16  Shenghou Ma  <minux.ma@gmail.com>
+
+       * gospec.c: pass -u pthread_create to linker when static linking.
+
+2012-12-21  Ian Lance Taylor  <iant@google.com>
+
+       PR bootstrap/54659
+       * go-system.h: Don't include <cstdio>.
+
+2012-12-18  Ian Lance Taylor  <iant@google.com>
+
+       PR go/55201
+       * gospec.c: Revert last patch.
+
+2012-12-18  Andreas Schwab  <schwab@linux-m68k.org>
+
+       PR go/55201
+       * gospec.c (LIBATOMIC): Define.
+       (LIBATOMIC_PROFILE): Define.
+       (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
+
+2012-11-29  Ian Lance Taylor  <iant@google.com>
+
+       * go-gcc.cc: Include "output.h".
+       (global_variable): Add is_unique_section parameter.
+       (global_variable_set_init): Adjust unique section if necessary.
+       * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
+
+2012-11-17  Diego Novillo  <dnovillo@google.com>
+
+       Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
+
+       * go-lang.c: Use new vec API in vec.h.
+
+2012-11-16  Ian Lance Taylor  <iant@google.com>
+
+       * Make-lang.in (gccgo$(exeext)): Add + at start of command.
+       (go1$(exeext)): Likewise.
+
+2012-10-30  Ian Lance Taylor  <iant@google.com>
+
+       * lang.opt (-fgo-relative-import-path): New option.
+       * go-lang.c (go_relative_import_path): New static variable.
+       (go_langhook_init): Pass go_relative_import_path to
+       go_create_gogo.
+       (go_langhook_handle_option): Handle -fgo-relative-import-path.
+       * go-c.h (go_create_gogo): Update declaration.
+       * gccgo.texi (Invoking gccgo): Document
+       -fgo-relative-import-path.
+
+2012-09-17  Ian Lance Taylor  <iant@google.com>
+
+       * config-lang.in (target_libs): Add target-libbacktrace.
+
+2012-09-16  Ian Lance Taylor  <iant@google.com>
+
+       * Make-lang.in (go/gogo.o): Depend on filenames.h.
+
+2012-08-14   Diego Novillo  <dnovillo@google.com>
+
+       Merge from cxx-conversion branch.  Configury.
+
+       * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
+       * go-gcc.cc: Likewise.
+       * go-system.h: Likewise.
+
+2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
+
+       * go-lang.c (lang_decl): Add variable_size GTY option.
+
+2012-05-09  Ian Lance Taylor  <iant@google.com>
+
+       * lang.opt: Add -fgo-pkgpath.
+       * go-lang.c (go_pkgpath): New static variable.
+       (go_prefix): New static variable.
+       (go_langhook_init): Pass go_pkgpath and go_prefix to
+       go_create_gogo.
+       (go_langhook_handle_option): Handle -fgo-pkgpath.  Change
+       -fgo-prefix handling to just set go_prefix.
+       * go-c.h (go_set_prefix): Don't declare.
+       (go_create_gogo): Add pkgpath and prefix to declaration.
+       * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
+       to pkgpath.  Don't include the package name in the asm name.
+       * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath.  Update the
+       docs for -fgo-prefix.
+
+2012-04-23  Ian Lance Taylor  <iant@google.com>
+
+       * go-lang.c (go_langhook_init): Set MPFR precision to 256.
+
+2012-04-20  Ian Lance Taylor  <iant@google.com>
+
+       * lang.opt: Add -fgo-check-divide-zero and
+       -fgo-check-divide-overflow.
+       * gccgo.texi (Invoking gccgo): Document new options.
+
+2012-04-18  Steven Bosscher  <steven@gcc.gnu.org>
+
+       * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
+       with NULL_TREE type instead of void_type_node.
+
+2012-03-09  Ian Lance Taylor  <iant@google.com>
+
+       * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
+       to the lhs type if necessary.
+
+2012-03-08  Ian Lance Taylor  <iant@google.com>
+
+       * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
+       zero-sized variable.
+       (go_non_zero_struct): New global variable.
+       (Gcc_backend::non_zero_size_type): New function.
+       (Gcc_backend::global_variable): Don't build an assignment for a
+       zero-sized value.
+       * go-c.h (go_non_zero_struct): Declare.
+       * config-lang.in (gtfiles): Add go-c.h.
+
+2012-02-29  Ian Lance Taylor  <iant@google.com>
+
+       * go-gcc.cc (class Gcc_tree): Add set_tree method.
+       (set_placeholder_pointer_type): When setting to a pointer to
+       error, set to error_mark_node.
+
+2012-02-23  Richard Guenther  <rguenther@suse.de>
+
+       * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
+       build_distinct_type_copy.
+
+2012-02-17  Ian Lance Taylor  <iant@google.com>
+
+       * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
+
+2012-02-17  Ian Lance Taylor  <iant@google.com>
+
+       * gospec.c (lang_specific_driver): If linking, and no -o option
+       was used, add one.
+
+2012-02-14  Ian Lance Taylor  <iant@google.com>
+
+       PR go/48411
+       * Make-lang.in (gccgo-cross$(exeext)): New target.
+       (go.all.cross): Depend on gccgo-cross$(exeext) instead of
+       gccgo$(exeext).
+       (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
+       gccgo-cross$(exeext) does not exist.
+
+2012-02-07  Ian Lance Taylor  <iant@google.com>
+
+       * gccgo.texi (Function Names): Document //extern instead of
+       __asm__.
+
+2012-02-01  Jakub Jelinek  <jakub@redhat.com>
+
+       PR target/52079
+       * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
+       return build_nonstandard_integer_type result if possible.
+
+2012-01-21  Ian Lance Taylor  <iant@google.com>
+
+       * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
+       (Gcc_backend::type_alignment): Likewise.
+       (Gcc_backend::type_field_alignment): Likewise.
+       (Gcc_backend::type_field_offset): Likewise.
+
+2012-01-20  Ian Lance Taylor  <iant@google.com>
+
+       * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
+       be empty.
+       (Gcc_backend::set_placeholder_struct_type): Likewise.
+
+2012-01-17  Ian Lance Taylor  <iant@google.com>
+
+       * gospec.c (lang_specific_driver): If we see -S without -o, add -o
+       BASE.s rather than -o BASE.o.
+
+2012-01-11  Ian Lance Taylor  <iant@google.com>
+
+       * go-lang.c (go_langhook_init): Initialize void_list_node before
+       calling go_create_gogo.
+
+2012-01-10  Ian Lance Taylor  <iant@google.com>
+
+       * go-gcc.cc (Gcc_backend::type_size): New function.
+       (Gcc_backend::type_alignment): New function.
+       (Gcc_backend::type_field_alignment): New function.
+       (Gcc_backend::type_field_offset): New function.
+       * go-backend.c (go_type_alignment): Remove.
+       * go-c.h (go_type_alignment): Don't declare.
+
+2011-12-27  Ian Lance Taylor  <iant@google.com>
+
+       * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
+       build_distinct_type_copy rather than build_variant_type_copy.
+       (Gcc_backend::set_placeholder_array_type): Likewise.
+       (Gcc_backend::named_type): Add special handling for builtin
+       basic types.
+
+2011-12-22  Ian Lance Taylor  <iant@google.com>
+
+       * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
+       for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
+       (Gcc_backend::set_placeholder_struct_type): Likewise.
+       (Gcc_backend::set_placeholder_array_type): Likewise.
+       (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
+
 2011-12-13  Ian Lance Taylor  <iant@google.com>
 
        * go-backend.c: #include "simple-object.h" and "intl.h".