ChangeLog 33 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036
  1. 2015-07-16 Release Manager
  2. * GCC 5.2.0 released.
  3. 2015-04-22 Release Manager
  4. * GCC 5.1.0 released.
  5. 2015-02-02 Ian Lance Taylor <iant@google.com>
  6. PR go/64836
  7. PR go/64838
  8. * go-gcc.cc (Gcc_backend::type_size): Change return type to
  9. int64_t.
  10. (Gcc_backend::type_alignment): Likewise.
  11. (Gcc_backend::type_field_alignment): Likewise.
  12. (Gcc_backend::type_field_offset): Likewise.
  13. (Gcc_backend::implicit_variable): Change alignment parameter type
  14. to int64_t.
  15. 2015-01-23 Ian Lance Taylor <iant@google.com>
  16. PR go/63565
  17. * gccgo.texi (Invoking gccgo): Mention that Go programs should not
  18. be stripped.
  19. * gccgo.texi (C Interoperability): Mention that people should use
  20. cgo.
  21. 2015-01-23 Ian Lance Taylor <iant@google.com>
  22. PR go/64595
  23. * go-lang.c (go_langhook_init_options_struct): Set default
  24. debug_info_level.
  25. (go_langhook_post_options): If debug_info_level is still the
  26. default, make sure write_symbols is set.
  27. * gccgo.texi (Invoking gccgo): Document that -g1 is the default.
  28. 2015-01-16 Richard Henderson <rth@redhat.com>
  29. * go-gcc.cc (Gcc_backend::call_expression): Add chain_expr argument.
  30. (Gcc_backend::static_chain_variable): New method.
  31. 2015-01-09 Ian Lance Taylor <iant@google.com>
  32. * config-lang.in (lang_dirs): Define.
  33. 2015-01-09 Michael Collison <michael.collison@linaro.org>
  34. * go-gcc.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
  35. input.h, alias.h, symtab.h, options.h, fold-const.h,
  36. wide-int.h, and inchash.h due to flattening of tree.h.
  37. * go-lang.c: Ditto.
  38. * go-backend.c: Ditto.
  39. 2015-01-07 Chris Manghane <cmang@google.com>
  40. PR go/61204
  41. * go-gcc.cc (Gcc_backend::temporary_variable): Don't initialize
  42. zero-sized variable.
  43. 2015-01-06 Chris Manghane <cmang@google.com>
  44. * go-gcc.cc (Gcc_backend::constructor_expression): Don't
  45. initialize zero-sized fields, just evaluate the values for side
  46. effects.
  47. 2015-01-05 Jakub Jelinek <jakub@redhat.com>
  48. Update copyright years.
  49. * gccgo.texi: Bump @copyrights-go year.
  50. 2014-12-19 Chris Manghane <cmang@google.com>
  51. * go-gcc.cc (Gcc_backend::array_constructor_expression): Don't
  52. construct arrays of zero-sized values.
  53. 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
  54. * go-lang.c: Remove redundant enum from machine_mode.
  55. 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
  56. * go-gcc.cc: Adjust include files.
  57. 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
  58. * go-gcc.cc: Adjust include files.
  59. * go-lang.c: Ditto.
  60. 2014-10-23 Ian Lance Taylor <iant@google.com>
  61. * go-gcc.cc (Gcc_backend::complex_constant_expression): Take one
  62. mpc_t parameter instead of two mpfr_t parameters.
  63. 2014-09-15 Jakub Jelinek <jakub@redhat.com>
  64. * Make-lang.in (check_go_parallelize): Change to just an upper bound
  65. number.
  66. 2014-09-03 Chris Manghane <cmang@google.com>
  67. * go-gcc.cc (Gcc_backend::implicit_variable): Remove init
  68. parameter. Add is_hidden parameter.
  69. (Gcc_backend::implicit_variable_set_init): New method.
  70. (Gcc_backend::implicit_variable_reference): New method.
  71. 2014-08-08 Ian Lance Taylor <iant@google.com>
  72. * go-gcc.cc (Gcc_backend::compound_statement): Don't return
  73. NULL_TREE.
  74. 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
  75. * go-gcc.cc (Gcc_backend::global_variable_set_init): Rename
  76. symtab_get_node to symtab_node::get.
  77. 2014-06-13 Ian Lance Taylor <iant@google.com>
  78. PR go/61496
  79. * gospec.c (lang_specific_driver): On Solaris, when not using GNU
  80. ld, add -t option to avoid warning about common symbol changing
  81. size.
  82. 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
  83. * go-gcc.cc (Gcc_backend::global_variable_set_init): Use
  84. symtab_get_node(var_decl)->implicit_section.
  85. 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
  86. * go-gcc.cc (global_variable_set_init): Use
  87. set_decl_section_name.
  88. 2014-06-04 Ian Lance Taylor <iant@google.com>
  89. * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
  90. alignment parameters. Permit init parameter to be NULL.
  91. 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
  92. * go-gcc.cc: Include builtins.h.
  93. 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
  94. * go-lang.c (struct GTY): Don't use variable_size gty attribute.
  95. 2014-05-06 Chris Manghane <cmang@google.com>
  96. * go-gcc.cc (Gcc_backend::nil_pointer_expression): New method.
  97. (Gcc_backend::boolean_constant_expression): New method.
  98. (Gcc_backend::zero_expression): Use this->make_expression rather
  99. than tree_to_expr.
  100. (Gcc_backend::var_expression): Likewise.
  101. (Gcc_backend::integer_constant_expression): Likewise.
  102. (Gcc_backend::float_constant_expression): Likewise.
  103. (Gcc_backend::complex_constant_expression): Likewise.
  104. (Gcc_backend::struct_field_expression): Likewise.
  105. (tree_to_type, tree_to_expr, tree_to_stat): Remove functions.
  106. (tree_to_function, tree_to_block): Remove functions.
  107. (type_to_tree, expr_to_tree, stat_to_tree): Remove functions.
  108. (block_to_tree, var_to_tree, function_to_tree): Remove functions.
  109. 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
  110. Mike Stump <mikestump@comcast.net>
  111. Richard Sandiford <rdsandiford@googlemail.com>
  112. * go-gcc.cc (Gcc_backend::type_size): Use tree_fits_uhwi_p.
  113. 2014-05-06 Chris Manghane <cmang@google.com>
  114. * go-c.h (go_create_gogo): Update declaration to add
  115. check_divide_zero and check_divide_overflow parameters.
  116. * go-lang.c (go_langhook_init): Pass new arguments to
  117. go_create_gogo.
  118. 2014-05-05 Chris Manghane <cmang@google.com>
  119. * go-gcc.cc (Gcc_backend::implicit_variable): Rename from
  120. gc_root_variable. Add name and is_constant parameters.
  121. 2014-05-05 Chris Manghane <cmang@google.com>
  122. * go-gcc.cc (Gcc_backend::indirect_expression): Add btype
  123. parameter.
  124. (Gcc_backend::temporary_variable): Check for erroneous function.
  125. 2014-04-30 Chris Manghane <cmang@google.com>
  126. * go-backend.c: #include "diagnostics.h".
  127. (saw_errors): New function.
  128. * go-c.h (saw_errors): Declare.
  129. * Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.
  130. 2014-04-30 Chris Manghane <cmang@google.com>
  131. * go-lang.c (go_langhook_type_for_size): Do it here, rather than
  132. calling into Go frontend.
  133. (go_langhook_type_for_mode): Likewise.
  134. * go-c.h (go_type_for_size, go_type_for_mode): Don't declare.
  135. 2014-04-30 Chris Manghane <cmang@google.com>
  136. * go-gcc.cc: #include "langhooks.h".
  137. (Gcc_backend::Gcc_backend): Add constructor.
  138. (Gcc_backend::lookup_function): New function.
  139. (Gcc_backend::define_builtin): New private function.
  140. (Gcc_backend::gcc_backend): Remove.
  141. (go_get_backend): Use new to create new Gcc_backend.
  142. 2014-04-25 Chris Manghane <cmang@google.com>
  143. * go-gcc.cc: Include "cgraph.h" and "gimplify.h".
  144. (Gcc_backend::return_statement): Push and pop function.
  145. (Gcc_backend::label): Likewise.
  146. (Gcc_backend::function_defer_statement): Likewise.
  147. (Gcc_backend::switch_statement): Add function parameter.
  148. (Gcc_backend::block): Don't permit function to be NULL.
  149. (Gcc_backend::temporary_variable): Change go_assert to
  150. gcc_assert.
  151. (Gcc_backend::gc_root_variable): New function.
  152. (Gcc_backend::write_global_definitions): New function.
  153. 2014-04-22 Chris Manghane <cmang@google.com>
  154. * go-gcc.cc (Gcc_backend::temporary_variable): Push cfun around
  155. call to create_tmp_var. Require that function be non-NULL.
  156. 2014-04-17 Chris Manghane <cmang@google.com>
  157. * go-gcc.cc (Gcc_backend::named_constant_expression): New
  158. function.
  159. 2014-04-14 Chris Manghane <cmang@google.com>
  160. * go-gcc.cc: Include "convert.h".
  161. (Gcc_backend::string_constant_expression): New function.
  162. (Gcc_backend::real_part_expression): Likewise.
  163. (Gcc_backend::imag_part_expression): Likewise.
  164. (Gcc_backend::complex_expression): Likewise.
  165. (Gcc_backend::constructor_expression): Likewise.
  166. (Gcc_backend::array_constructor_expression): Likewise.
  167. (Gcc_backend::pointer_offset_expression): Likewise.
  168. (Gcc_backend::array_index_expression): Likewise.
  169. (Gcc_backend::call_expression): Likewise.
  170. (Gcc_backend::exception_handler_statement): Likewise.
  171. (Gcc_backend::function_defer_statement): Likewise.
  172. (Gcc_backend::function_set_parameters): Likewise.
  173. (Gcc_backend::function_set_body): Likewise.
  174. (Gcc_backend::convert_expression): Handle various type
  175. conversions.
  176. 2014-03-03 Ian Lance Taylor <iant@google.com>
  177. * go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set
  178. DECL_WEAK.
  179. (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear
  180. DECL_WEAK.
  181. 2014-01-24 Chris Manghane <cmang@google.com>
  182. * go-gcc.cc (Gcc_backend::unary_expression): New function.
  183. 2014-01-16 Chris Manghane <cmang@google.com>
  184. * go-gcc.cc (Gcc_backend::conditional_expression): Add btype
  185. parameter.
  186. (operator_to_tree_code): New static function.
  187. (Gcc_backend::binary_expression): New function.
  188. 2014-01-14 Chris Manghane <cmang@google.com>
  189. * go-gcc.cc (Gcc_backend::compound_expression): New function.
  190. (Gcc_backend::conditional_expression): New function.
  191. 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
  192. Update copyright years
  193. 2014-01-02 Tobias Burnus <burnus@net-b.de>
  194. * gccgo.texi: Bump @copying's copyright year.
  195. 2013-12-16 Chris Manghane <cmang@google.com>
  196. * go-gcc.cc (Gcc_backend::struct_field_expression): New function.
  197. 2013-12-11 Ian Lance Taylor <iant@google.com>
  198. * go-lang.c (go_langhook_post_options): Disable sibling calls by
  199. default.
  200. 2013-12-10 Ian Lance Taylor <iant@google.com>
  201. * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests
  202. separately.
  203. 2013-12-05 Ian Lance Taylor <iant@google.com>
  204. Revert this change; no longer required.
  205. 2013-11-06 Ian Lance Taylor <iant@google.com>
  206. * go-lang.c (go_langhook_post_options): If
  207. -fisolate-erroneous-paths was turned on by an optimization option,
  208. turn it off.
  209. 2013-11-23 Ian Lance Taylor <iant@google.com>
  210. * go-gcc.cc (Gcc_backend::function_type): Add result_struct
  211. parameter.
  212. 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
  213. * go-gcc.cc: Add required include files from gimple.h.
  214. * go-lang.c: Likewise
  215. 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
  216. * gofrontend/expressions.cc: Replace tree_low_cst (..., 0) with
  217. tree_to_shwi throughout.
  218. 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
  219. * gofrontend/expressions.cc: Replace host_integerp (..., 0) with
  220. tree_fits_shwi_p throughout.
  221. 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
  222. * go-lang.c: Include only gimplify.h and gimple.h as needed.
  223. 2013-11-14 Diego Novillo <dnovillo@google.com>
  224. * go-backend.c: Include stor-layout.h.
  225. * go-gcc.cc: Include stringpool.h.
  226. Include stor-layout.h.
  227. Include varasm.h.
  228. * go-lang.c: Include stor-layout.h.
  229. 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
  230. * go-lang.c: Include gimplify.h.
  231. 2013-11-06 Ian Lance Taylor <iant@google.com>
  232. * go-lang.c (go_langhook_post_options): If
  233. -fisolate-erroneous-paths was turned on by an optimization option,
  234. turn it off.
  235. 2013-10-14 Chris Manghane <cmang@google.com>
  236. * go-gcc.cc (Gcc_backend::address_expression): New function.
  237. 2013-10-11 Chris Manghane <cmang@google.com>
  238. * go-gcc.cc (Gcc_backend::function_code_expression): New
  239. function.
  240. 2013-10-10 Chris Manghane <cmang@google.com>
  241. * go-gcc.cc (Gcc_backend::error_function): New function.
  242. (Gcc_backend::function): New function.
  243. (Gcc_backend::make_function): New function.
  244. (function_to_tree): New function.
  245. 2013-10-04 Chris Manghane <cmang@google.com>
  246. * go-gcc.cc (Gcc_backend::convert_expression): New function.
  247. 2013-10-02 Chris Manghane <cmang@google.com>
  248. * go-gcc.cc: Include "real.h" and "realmpfr.h".
  249. (Gcc_backend::integer_constant_expression): New function.
  250. (Gcc_backend::float_constant_expression): New function.
  251. (Gcc_backend::complex_constant_expression): New function.
  252. 2013-09-30 Chris Manghane <cmang@google.com>
  253. * go-gcc.cc (Gcc_backend::error_expression): New function.
  254. (Gcc_backend::var_expression): New function.
  255. (Gcc_backend::indirect_expression): New function.
  256. 2013-09-25 Tom Tromey <tromey@redhat.com>
  257. * Make-lang.in (gospec.o): Remove.
  258. (CFLAGS-go/gospec.o): New variable.
  259. (GCCGO_OBJS): Update to use go/gospec.o.
  260. (go_OBJS): Define.
  261. (GO_SYSTEM_H, GO_C_H, GO_LINEMAP_H, GO_LEX_H, GO_PARSE_H)
  262. (GO_GOGO_H, GO_TYPES_H, GO_STATEMENTS_H, GO_EXPRESSIONS_H)
  263. (GO_EXPORT_H, GO_IMPORT_H, GO_RUNTIME_H, GO_AST_DUMP_H)
  264. (go/go-backend.o, go/go-lang.o, go/go-gcc.o, go/go-linemap.o)
  265. (go/ast-dump.o, go/dataflow.o, go/export.o, go/expressions.o)
  266. (go/go.o, go/go-dump.o, go/go-optimize.o, go/gogo-tree.o)
  267. (go/gogo.o, go/import.o, go/import-archive.o, go/lex.o)
  268. (go/parse.o, go/runtime.o, go/statements.o, go/types.o)
  269. (go/unsafe.o): Remove.
  270. (CFLAGS-go/go-gcc.o, CFLAGS-go/go-linemap.o): New variables.
  271. (go/%.o: go/gofrontend/%.cc): Use COMPILE and POSTCOMPILE.
  272. 2013-09-25 Tom Tromey <tromey@redhat.com>
  273. * Make-lang.in (gospec.o): Don't use subshell.
  274. 2013-08-28 Ian Lance Taylor <iant@google.com>
  275. * go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
  276. the struct is not hidden.
  277. (Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
  278. 2013-08-06 Ian Lance Taylor <iant@google.com>
  279. * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
  280. compute_reloc_for_constant.
  281. 2013-08-02 Ian Lance Taylor <iant@google.com>
  282. * go-gcc.cc (immutable_struct_set_init): Always call
  283. resolve_unique_section.
  284. 2013-07-24 Ian Lance Taylor <iant@google.com>
  285. * go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
  286. fields, recreate those fields with the first one with a non-zero
  287. size.
  288. 2013-07-23 Ian Lance Taylor <iant@google.com>
  289. * go-backend.c: Don't #include "rtl.h".
  290. (go_imported_unsafe): Don't call init_varasm_once.
  291. * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
  292. 2013-07-23 Ian Lance Taylor <iant@google.com>
  293. * go-lang.c: Don't #include "except.h".
  294. * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
  295. 2013-06-18 Ian Lance Taylor <iant@google.com>
  296. * go-gcc.cc (Gcc_backend::immutable_struct): Add is_hidden
  297. parameter.
  298. (Gcc_backend::immutable_struct_set_init): Likewise.
  299. 2013-05-16 Jason Merrill <jason@redhat.com>
  300. * Make-lang.in (go1$(exeext)): Use link mutex.
  301. 2013-01-16 Shenghou Ma <minux.ma@gmail.com>
  302. * gospec.c: pass -u pthread_create to linker when static linking.
  303. 2012-12-21 Ian Lance Taylor <iant@google.com>
  304. PR bootstrap/54659
  305. * go-system.h: Don't include <cstdio>.
  306. 2012-12-18 Ian Lance Taylor <iant@google.com>
  307. PR go/55201
  308. * gospec.c: Revert last patch.
  309. 2012-12-18 Andreas Schwab <schwab@linux-m68k.org>
  310. PR go/55201
  311. * gospec.c (LIBATOMIC): Define.
  312. (LIBATOMIC_PROFILE): Define.
  313. (lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
  314. 2012-11-29 Ian Lance Taylor <iant@google.com>
  315. * go-gcc.cc: Include "output.h".
  316. (global_variable): Add is_unique_section parameter.
  317. (global_variable_set_init): Adjust unique section if necessary.
  318. * Make-lang.in (go/go-gcc.o): Add dependency on output.h.
  319. 2012-11-17 Diego Novillo <dnovillo@google.com>
  320. Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
  321. * go-lang.c: Use new vec API in vec.h.
  322. 2012-11-16 Ian Lance Taylor <iant@google.com>
  323. * Make-lang.in (gccgo$(exeext)): Add + at start of command.
  324. (go1$(exeext)): Likewise.
  325. 2012-10-30 Ian Lance Taylor <iant@google.com>
  326. * lang.opt (-fgo-relative-import-path): New option.
  327. * go-lang.c (go_relative_import_path): New static variable.
  328. (go_langhook_init): Pass go_relative_import_path to
  329. go_create_gogo.
  330. (go_langhook_handle_option): Handle -fgo-relative-import-path.
  331. * go-c.h (go_create_gogo): Update declaration.
  332. * gccgo.texi (Invoking gccgo): Document
  333. -fgo-relative-import-path.
  334. 2012-09-17 Ian Lance Taylor <iant@google.com>
  335. * config-lang.in (target_libs): Add target-libbacktrace.
  336. 2012-09-16 Ian Lance Taylor <iant@google.com>
  337. * Make-lang.in (go/gogo.o): Depend on filenames.h.
  338. 2012-08-14 Diego Novillo <dnovillo@google.com>
  339. Merge from cxx-conversion branch. Configury.
  340. * go-c.h: Remove all handlers of ENABLE_BUILD_WITH_CXX.
  341. * go-gcc.cc: Likewise.
  342. * go-system.h: Likewise.
  343. 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
  344. * go-lang.c (lang_decl): Add variable_size GTY option.
  345. 2012-05-09 Ian Lance Taylor <iant@google.com>
  346. * lang.opt: Add -fgo-pkgpath.
  347. * go-lang.c (go_pkgpath): New static variable.
  348. (go_prefix): New static variable.
  349. (go_langhook_init): Pass go_pkgpath and go_prefix to
  350. go_create_gogo.
  351. (go_langhook_handle_option): Handle -fgo-pkgpath. Change
  352. -fgo-prefix handling to just set go_prefix.
  353. * go-c.h (go_set_prefix): Don't declare.
  354. (go_create_gogo): Add pkgpath and prefix to declaration.
  355. * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
  356. to pkgpath. Don't include the package name in the asm name.
  357. * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the
  358. docs for -fgo-prefix.
  359. 2012-04-23 Ian Lance Taylor <iant@google.com>
  360. * go-lang.c (go_langhook_init): Set MPFR precision to 256.
  361. 2012-04-20 Ian Lance Taylor <iant@google.com>
  362. * lang.opt: Add -fgo-check-divide-zero and
  363. -fgo-check-divide-overflow.
  364. * gccgo.texi (Invoking gccgo): Document new options.
  365. 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
  366. * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR
  367. with NULL_TREE type instead of void_type_node.
  368. 2012-03-09 Ian Lance Taylor <iant@google.com>
  369. * go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
  370. to the lhs type if necessary.
  371. 2012-03-08 Ian Lance Taylor <iant@google.com>
  372. * go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
  373. zero-sized variable.
  374. (go_non_zero_struct): New global variable.
  375. (Gcc_backend::non_zero_size_type): New function.
  376. (Gcc_backend::global_variable): Don't build an assignment for a
  377. zero-sized value.
  378. * go-c.h (go_non_zero_struct): Declare.
  379. * config-lang.in (gtfiles): Add go-c.h.
  380. 2012-02-29 Ian Lance Taylor <iant@google.com>
  381. * go-gcc.cc (class Gcc_tree): Add set_tree method.
  382. (set_placeholder_pointer_type): When setting to a pointer to
  383. error, set to error_mark_node.
  384. 2012-02-23 Richard Guenther <rguenther@suse.de>
  385. * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
  386. build_distinct_type_copy.
  387. 2012-02-17 Ian Lance Taylor <iant@google.com>
  388. * Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
  389. 2012-02-17 Ian Lance Taylor <iant@google.com>
  390. * gospec.c (lang_specific_driver): If linking, and no -o option
  391. was used, add one.
  392. 2012-02-14 Ian Lance Taylor <iant@google.com>
  393. PR go/48411
  394. * Make-lang.in (gccgo-cross$(exeext)): New target.
  395. (go.all.cross): Depend on gccgo-cross$(exeext) instead of
  396. gccgo$(exeext).
  397. (go.install-common): Only install GCCGO_TARGET_INSTALL_NAME if
  398. gccgo-cross$(exeext) does not exist.
  399. 2012-02-07 Ian Lance Taylor <iant@google.com>
  400. * gccgo.texi (Function Names): Document //extern instead of
  401. __asm__.
  402. 2012-02-01 Jakub Jelinek <jakub@redhat.com>
  403. PR target/52079
  404. * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
  405. return build_nonstandard_integer_type result if possible.
  406. 2012-01-21 Ian Lance Taylor <iant@google.com>
  407. * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node.
  408. (Gcc_backend::type_alignment): Likewise.
  409. (Gcc_backend::type_field_alignment): Likewise.
  410. (Gcc_backend::type_field_offset): Likewise.
  411. 2012-01-20 Ian Lance Taylor <iant@google.com>
  412. * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to
  413. be empty.
  414. (Gcc_backend::set_placeholder_struct_type): Likewise.
  415. 2012-01-17 Ian Lance Taylor <iant@google.com>
  416. * gospec.c (lang_specific_driver): If we see -S without -o, add -o
  417. BASE.s rather than -o BASE.o.
  418. 2012-01-11 Ian Lance Taylor <iant@google.com>
  419. * go-lang.c (go_langhook_init): Initialize void_list_node before
  420. calling go_create_gogo.
  421. 2012-01-10 Ian Lance Taylor <iant@google.com>
  422. * go-gcc.cc (Gcc_backend::type_size): New function.
  423. (Gcc_backend::type_alignment): New function.
  424. (Gcc_backend::type_field_alignment): New function.
  425. (Gcc_backend::type_field_offset): New function.
  426. * go-backend.c (go_type_alignment): Remove.
  427. * go-c.h (go_type_alignment): Don't declare.
  428. 2011-12-27 Ian Lance Taylor <iant@google.com>
  429. * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Use
  430. build_distinct_type_copy rather than build_variant_type_copy.
  431. (Gcc_backend::set_placeholder_array_type): Likewise.
  432. (Gcc_backend::named_type): Add special handling for builtin
  433. basic types.
  434. 2011-12-22 Ian Lance Taylor <iant@google.com>
  435. * go-gcc.cc (Gcc_backend::set_placeholder_pointer_type): Arrange
  436. for the type name to have a DECL_ORIGINAL_TYPE as gcc expects.
  437. (Gcc_backend::set_placeholder_struct_type): Likewise.
  438. (Gcc_backend::set_placeholder_array_type): Likewise.
  439. (Gcc_backend::named_type): Set DECL_ORIGINAL_TYPE.
  440. 2011-12-13 Ian Lance Taylor <iant@google.com>
  441. * go-backend.c: #include "simple-object.h" and "intl.h".
  442. (GO_EXPORT_SEGMENT_NAME): Define if not defined.
  443. (GO_EXPORT_SECTION_NAME): Likewise.
  444. (go_write_export_data): Use GO_EXPORT_SECTION_NAME.
  445. (go_read_export_data): New function.
  446. * go-c.h (go_read_export_data): Declare.
  447. 2011-11-29 Sanjoy Das <thedigitalangel@gmail.com>
  448. Ian Lance Taylor <iant@google.com>
  449. * go-location.h: New file.
  450. * go-linemap.cc: New file.
  451. * go-gcc.cc: Change all uses of source_location to Location.
  452. * Make-lang.in (GO_OBJS): Add go/go-linemap.o.
  453. (GO_LINEMAP_H): New variable.
  454. (GO_LEX_H): Use $(GO_LINEMAP_H).
  455. (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
  456. (go/go-linemap.o): New target.
  457. 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  458. * Make-lang.in (gospec.o): Pass SHLIB instead of SHLIB_LINK.
  459. 2011-08-24 Roberto Lublinerman <rluble@gmail.com>
  460. * lang.opt: Add fgo-optimize-.
  461. * go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
  462. * go-c.h (go_enable_optimize): Declare.
  463. * Make-lang.in (GO_OBJS): Add go/go-optimize.o.
  464. (GO_EXPORT_H): Define.
  465. (GO_IMPORT_H): Add $(GO_EXPORT_H).
  466. (GO_AST_DUMP_H): Define.
  467. (go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
  468. (go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
  469. (go/types.o): Likewise.
  470. (go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
  471. (go/go-optimize.o): New target.
  472. 2011-08-24 Joseph Myers <joseph@codesourcery.com>
  473. * Make-lang.in (CFLAGS-go/go-lang.o): New.
  474. (go/go-lang.o): Remove explicit compilation rule.
  475. 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  476. * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
  477. 2011-08-02 Roberto Lublinerman <rluble@gmail.com>
  478. * Make-lang.in (GO_OBJS): Add go/ast-dump.o.
  479. (go/ast-dump.o): New target.
  480. (go/expressions.o): Depend on go/gofrontend/ast-dump.h.
  481. (go/statements.o): Likewise.
  482. 2011-07-06 Richard Guenther <rguenther@suse.de>
  483. * go-lang.c (go_langhook_init):
  484. Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
  485. 2011-06-14 Joseph Myers <joseph@codesourcery.com>
  486. * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
  487. dependencies.
  488. * go-backend.c: Include common/common-target.h.
  489. (go_write_export_data): Use targetm_common.have_named_sections.
  490. * go-lang.c: Include common/common-target.h.
  491. (go_langhook_init_options_struct): Use
  492. targetm_common.supports_split_stack.
  493. 2011-06-13 Ian Lance Taylor <iant@google.com>
  494. * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
  495. 2011-06-10 Ian Lance Taylor <iant@google.com>
  496. * go-gcc.cc: Include "toplev.h".
  497. (Gcc_backend::immutable_struct): New function.
  498. (Gcc_backend::immutable_struct_set_init): New function.
  499. (Gcc_backend::immutable_struct_reference): New function.
  500. * Make-lang.in (go/go-gcc.o): Depend on toplev.h.
  501. 2011-06-09 Ian Lance Taylor <iant@google.com>
  502. * go-gcc.cc (Gcc_backend::zero_expression): New function.
  503. 2011-06-07 Richard Guenther <rguenther@suse.de>
  504. * go-lang.c (go_langhook_init): Do not set
  505. size_type_node or call set_sizetype.
  506. 2011-05-27 Ian Lance Taylor <iant@google.com>
  507. * go-backend.c: Include "output.h".
  508. (go_write_export_data): New function.
  509. * go-c.h (go_write_export_data): Declare.
  510. * Make-lang.in (go/go-backend.o): Depend on output.h.
  511. (go/export.o): Depend on $(GO_C_H). Do not depend on
  512. $(MACHMODE_H), output.h, or $(TARGET_H).
  513. 2011-05-24 Joseph Myers <joseph@codesourcery.com>
  514. * Make-lang.in (GCCGO_OBJS): Remove prefix.o.
  515. (gccgo$(exeext)): Use libcommon-target.a.
  516. 2011-05-20 Joseph Myers <joseph@codesourcery.com>
  517. * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
  518. 2011-05-13 Ian Lance Taylor <iant@google.com>
  519. * go-gcc.cc (Gcc_backend::function_type): When building a struct
  520. for multiple results, check that all fields types have a size.
  521. (Gcc_backend::placeholder_pointer_type): Permit name to be empty.
  522. 2011-05-12 Ian Lance Taylor <iant@google.com>
  523. * go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
  524. parameter.
  525. (Gcc_backend::parameter_variable): Likewise.
  526. 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
  527. * go-lang.c (global_bindings_p): Return bool and simplify.
  528. 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
  529. * go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
  530. 2011-05-04 Ian Lance Taylor <iant@google.com>
  531. * go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
  532. (Gcc_backend::fill_in_struct): New function.
  533. (Gcc_backend::array_type): Implement.
  534. (Gcc_backend::fill_in_array): New function.
  535. (Gcc_backend::placeholder_pointer_type): New function.
  536. (Gcc_backend::set_placeholder_pointer_type): New function.
  537. (Gcc_backend::set_placeholder_function_type): New function.
  538. (Gcc_backend::placeholder_struct_type): New function.
  539. (Gcc_backend::set_placeholder_struct_type): New function.
  540. (Gcc_backend::placeholder_array_type): New function.
  541. (Gcc_backend::set_placeholder_array_type): New function.
  542. (Gcc_backend::named_type): New function.
  543. (Gcc_backend::circular_pointer_type): New function.
  544. (Gcc_backend::is_circular_pointer_type): New function.
  545. 2011-04-26 Ian Lance Taylor <iant@google.com>
  546. * go-gcc.cc (Gcc_backend::struct_type): Implement.
  547. 2011-04-25 Ian Lance Taylor <iant@google.com>
  548. * go-gcc.cc (Gcc_backend::error_type): Implement.
  549. (Gcc_backend::string_type): Remove.
  550. (Gcc_backend::function_type): Change signature and implement.
  551. (Gcc_backend::struct_type): Change signature.
  552. (Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
  553. (Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
  554. (Gcc_backend::pointer_type): Check for error.
  555. * Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
  556. 2011-04-25 Evan Shaw <edsrzf@gmail.com>
  557. * go-gcc.c (class Gcc_tree): Make get_tree const.
  558. (Gcc_backend::void_type): Implement.
  559. (Gcc_backend::bool_type): Implement.
  560. (Gcc_backend::integer_type): Implement.
  561. (Gcc_backend::float_type): Implement.
  562. (Gcc_backend::complex_type): New function.
  563. (Gcc_backend::pointer_type): New function.
  564. (Gcc_backend::make_type): New function.
  565. (type_to_tree): New function.
  566. 2011-04-21 Ian Lance Taylor <iant@google.com>
  567. * go-system.h (go_assert, go_unreachable): Define.
  568. 2011-04-19 Ian Lance Taylor <iant@google.com>
  569. * go-system.h: Include "intl.h".
  570. * Make-lang.in (GO_SYSTEM_H): Add intl.h.
  571. (go/statements.o): Remove dependencies on intl.h $(TREE_H)
  572. $(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
  573. 2011-04-19 Ian Lance Taylor <iant@google.com>
  574. * go-gcc.cc (Gcc_backend::temporary_variable): New function.
  575. 2011-04-19 Ian Lance Taylor <iant@google.com>
  576. * go-gcc.cc (class Bblock): Define.
  577. (Gcc_backend::if_statement): Change then_block and else_block to
  578. Bblock*.
  579. (Gcc_backend::block): New function.
  580. (Gcc_backend::block_add_statements): New function.
  581. (Gcc_backend::block_statement): New function.
  582. (tree_to_block, block_to_tree): New functions.
  583. 2011-04-18 Ian Lance Taylor <iant@google.com>
  584. * go-gcc.cc: Include "go-c.h".
  585. (class Bvariable): Define.
  586. (Gcc_backend::init_statement): New function.
  587. (Gcc_backend::global_variable): New function.
  588. (Gcc_backend::global_variable_set_init): New function.
  589. (Gcc_backend::local_variable): New function.
  590. (Gcc_backend::parameter_variable): New function.
  591. (tree_to_type, var_to_tree): New functions.
  592. * Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
  593. * (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
  594. 2011-04-15 Ian Lance Taylor <iant@google.com>
  595. * go-gcc.cc (Gcc_backend::compound_statement): New function.
  596. (Gcc_backend::assignment_statement): Use error_statement.
  597. (Gcc_backend::return_statement): Likewise.
  598. (Gcc_backend::if_statement): Likewise.
  599. (Gcc_backend::switch_statement): Likewise.
  600. (Gcc_backend::statement_list): Likewise.
  601. 2011-04-14 Ian Lance Taylor <iant@google.com>
  602. * go-gcc.cc (Gcc_backend::error_statement): New function.
  603. 2011-04-13 Ian Lance Taylor <iant@google.com>
  604. * Make-lang.in (go/gogo-tree.o): depend on $(GO_RUNTIME_H).
  605. 2011-04-13 Ian Lance Taylor <iant@google.com>
  606. * Make-lang.in (GO_OBJS): Add go/runtime.o.
  607. (GO_RUNTIME_H): New variable.
  608. (go/runtime.o): New target.
  609. (go/gogo.o): Depend on $(GO_RUNTIME_H).
  610. (go/statements.o): Likewise.
  611. 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
  612. * go-lang.c (union lang_tree_node): Check for TS_COMMON before
  613. calling TREE_CHAIN.
  614. 2011-04-06 Ian Lance Taylor <iant@google.com>
  615. * go-gcc.cc (if_statement): Use build3_loc.
  616. (Gcc_backend::switch_statement): New function.
  617. (Gcc_backend::statement_list): New function.
  618. 2011-04-06 Ian Lance Taylor <iant@google.com>
  619. * go-gcc.cc (Gcc_backend::if_statement): New function.
  620. (tree_to_stat): New function.
  621. (expr_to_tree): Renamed from expression_to_tree.
  622. (stat_to_tree): Renamed from statement_to_tree.
  623. 2011-04-06 Ian Lance Taylor <iant@google.com>
  624. * go-gcc.cc (Gcc_backend::expression_statement): New function.
  625. 2011-04-04 Ian Lance Taylor <iant@google.com>
  626. * go-gcc.c (class Blabel): Define.
  627. (Gcc_backend::make_expression): New function.
  628. (get_identifier_from_string): New function.
  629. (Gcc_backend::label): New function.
  630. (Gcc_backend::label_definition_statement): New function.
  631. (Gcc_backend::goto_statement): New function.
  632. (Gcc_backend::label_address): New function.
  633. (expression_to_tree): New function.
  634. * Make-lang.in (go/expressions.o): Depend on
  635. go/gofrontend/backend.h.
  636. (go/gogo.o): Likewise.
  637. 2011-04-04 Ian Lance Taylor <iant@google.com>
  638. * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
  639. (class Bfunction): Define.
  640. (Gcc_backend::assignment_statement): Rename from assignment.
  641. Check for errors.
  642. (Gcc_backend::return_statement): New function.
  643. (tree_to_function): New function.
  644. * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
  645. $(GIMPLE_H), and $(GO_GOGO_H).
  646. 2011-04-03 Ian Lance Taylor <iant@google.com>
  647. * go-gcc.cc: New file.
  648. * Make-lang.in (GO_OBJS): Add go/go-gcc.o.
  649. (go/go-gcc.o): New target.
  650. (go/go.o): Depend on go/gofrontend/backend.h.
  651. (go/statements.o): Likewise.
  652. 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  653. * gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
  654. 2011-02-08 Ian Lance Taylor <iant@google.com>
  655. * go-lang.c (go_langhook_init_options_struct): Set
  656. frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
  657. 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  658. * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
  659. LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
  660. 2011-01-21 Ian Lance Taylor <iant@google.com>
  661. * go-lang.c (go_langhook_init): Omit float_type_size when calling
  662. go_create_gogo.
  663. * go-c.h: Update declaration of go_create_gogo.
  664. 2011-01-13 Ian Lance Taylor <iant@google.com>
  665. * go-backend.c: Include "rtl.h" and "target.h".
  666. (go_imported_unsafe): New function.
  667. * go-c.h (go_imported_unsafe): Declare.
  668. * Make-lang.in (go/go-backend.o): Depend on $(RTL_H).
  669. (go/gogo-tree.o): Remove dependency on $(RTL_H).
  670. (go/unsafe.o): Depend on $(GO_C_H).
  671. 2010-12-31 Joern Rennecke <amylaar@spamcop.net>
  672. PR go/47113
  673. * go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
  674. variable ‘field’ .
  675. 2010-12-21 Ian Lance Taylor <iant@google.com>
  676. * Make-lang.in (check-go): Remove.
  677. (lang_checks_parallelized): Add check-go.
  678. (check_go_parallelize): Set.
  679. 2010-12-13 Ian Lance Taylor <iant@google.com>
  680. * gospec.c (lang_specific_driver): Add a -o option if not linking
  681. and there is no -o option already.
  682. 2010-12-07 Ian Lance Taylor <iant@google.com>
  683. PR tree-optimization/46805
  684. PR tree-optimization/46833
  685. * go-lang.c (go_langhook_type_for_mode): Handle vector modes.
  686. 2010-12-06 Ian Lance Taylor <iant@google.com>
  687. PR other/46789
  688. PR bootstrap/46812
  689. * go-lang.c (go_char_p): Define type and vectors.
  690. (go_search_dirs): New static variable.
  691. (go_langhook_handle_option): Use version and version/machine
  692. directories for -L.
  693. (go_langhook_post_options): Add non-specific -L paths.
  694. * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
  695. DEFAULT_TARGET_MACHINE when compiling.
  696. * gccgo.texi (Invoking gccgo): Only document -L for linking.
  697. (Import and Export): Don't mention -L for finding import files.
  698. 2010-12-03 Ian Lance Taylor <iant@google.com>
  699. PR bootstrap/46776
  700. * go-backend.c: New file.
  701. * go-c.h (go_type_alignment): Declare.
  702. (go_field_alignment, go_trampoline_info): Declare.
  703. * Make-lang.in (GO_OBJS): Add go/go-backend.o.
  704. (go/go-backend.o): New target.
  705. (go/go-lang.o): Make dependencies match source file.
  706. (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H).
  707. (go/gogo-tree.o): Don't depend on $(TM_H).
  708. 2010-12-03 Ian Lance Taylor <iant@google.com>
  709. * config-lang.in (build_by_default): Set to no.
  710. 2010-12-02 Ian Lance Taylor <iant@google.com>
  711. Go frontend added to gcc repository.
  712. Copyright (C) 2010-2015 Free Software Foundation, Inc.
  713. Copying and distribution of this file, with or without modification,
  714. are permitted in any medium without royalty provided the copyright
  715. notice and this notice are preserved.