ChangeLog-2015 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  1. 2015-12-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  2. PR libfortran/68987
  3. io/format.c (format_error): Remove unneeded memory cleanup.
  4. 2015-12-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  5. PR libfortran/68867
  6. * io/write.c (set_fnode_default): For kind=16, set the decimal precision
  7. depending on the platform binary precision, 106 or 113.
  8. 2015-12-05 Juoko Orava <jouko.orava@iki.fi>
  9. PR fortran/50201
  10. * io/write_float.def: Avoid marking quadmath_snprintf as an untyped
  11. weak reference, which fixing linking with -static.
  12. 2015-11-26 Tobias Burnus <burnus@net-b.de>
  13. Alessandro Fanfarillo <fanfarillo.gcc@gmail.com>
  14. * caf/libcaf.h (_gfortran_caf_event_post,
  15. _gfortran_caf_event_wait,_gfortran_caf_event_query): New prototypes.
  16. * caf/single.c (_gfortran_caf_event_post,
  17. _gfortran_caf_event_wait,_gfortran_caf_event_query): Implement.
  18. 2015-11-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  19. PR libfortran/52251
  20. * io/transfer.c (formatted_transfer_scalar_write): Reset skips count.
  21. (finalize_transfer): For ADVANCE_NO, emit pending spaces and reset the
  22. skip count.
  23. 2015-11-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  24. * io/write_float.def (output_float): Move block determining
  25. room for leading zero to before checkng g0 formatting.
  26. 2015-09-12 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  27. PR libfortran/67527
  28. PR libfortran/67535
  29. PR libfortran/67536
  30. * io/io.h: Use unsigned values for 31-bit left shifts.
  31. * io/unix.c (buf_read): Do not call memcpy() with NULL pointer arg.
  32. * io/write.c (nml_write_obj): Likewise.
  33. 2015-09-05 Janne Blomqvist <jb@gcc.gnu.org>
  34. PR fortran/53379
  35. * libgfortran.h (exit_error): New prototype.
  36. * runtime/error.c (exit_error): New function.
  37. (os_error): Call exit_error instead of exit.
  38. (runtime_error): Likewise.
  39. (runtime_error_at): Likewise.
  40. (internal_error): Likewise.
  41. (generate_error): Likewise.
  42. (notify_std): Likewise.
  43. * runtime/stop.c (error_stop_string): Likewise.
  44. (error_stop_numeric): Likewise.
  45. 2015-09-04 Janne Blomqvist <jb@gcc.gnu.org>
  46. * io/unix.h (delete_file): Remove prototype.
  47. * io/unix.c (delete_file): Remove function.
  48. * io/close.c (st_close): Replace delete_file and unlink with
  49. remove.
  50. * io/open.c (already_open): Replace unlink with remove.
  51. 2015-09-02 Janne Blomqvist <jb@gcc.gnu.org>
  52. PR libfortran/67414
  53. * io/write.c (gfc_itoa): Move to runtime/string.c.
  54. * libgfortran.h (show_backtrace): Make arg bool.
  55. (gfc_itoa): New prototype.
  56. * runtime/backtrace.c (struct mystate): Change type of try_simple
  57. field, add in_signal_handler field.
  58. (error_callback): Print out error number, or if not in a signal
  59. handler, the error message.
  60. (show_backtrace): Change type of arg, change initialization of
  61. struct mystate.
  62. (backtrace): Call show_backtrace with correct arg type.
  63. * runtime/compile_options.c (backtrace_handler): Call with correct
  64. arg type.
  65. * runtime/error.c (sys_abort): Likewise.
  66. (gf_strerror): Handle newlocale() failure.
  67. * runtime/string.c (gfc_itoa): Function moved here from
  68. io/write.c.
  69. 2015-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  70. PR libfortran/47571
  71. * acinclude.m4 (LIBGFOR_GTHREAD_WEAK): Reinstate.
  72. * configure.ac: Call LIBGFOR_GTHREAD_WEAK again.
  73. * config.h.in: Regenerate.
  74. * configure: Regenerate.
  75. 2015-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  76. PR libfortran/47571
  77. * acinclude.m4 (LIBGFOR_GTHREAD_WEAK): Remove.
  78. (LIBGFOR_CHECK_WEAKREF): New test.
  79. * configure.ac: Call LIBGFOR_CHECK_WEAKREF instead of
  80. LIBGFOR_GTHREAD_WEAK.
  81. * config.h.in: Regenerate.
  82. * configure: Regenerate.
  83. * intrinsics/system_clock.c: Use SUPPORTS_WEAKREF instead of
  84. SUPPORTS_WEAK and GTHREAD_USE_WEAK.
  85. 2015-08-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  86. PR libgfortran/67367
  87. * io/unix.c (buf_read): Check for error condition and if found
  88. return the error code.
  89. 2015-08-29 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  90. * acinclude.m4: Remove LIBGFOR_CHECK_ATTRIBUTE_DLLEXPORT.
  91. * configure.ac: Remove checks for strcasestr, execl, close,
  92. getrlimit, readlink, getppid, powl, erfl, j0l, j1l, y0l, y1l,
  93. tgammal, and lgammal.
  94. * config.h.in: Regenerate.
  95. * configure: Regenerate.
  96. 2015-08-29 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  97. * io/unix.c (min): Remove unused macro.
  98. 2015-08-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  99. PR fortran/53668
  100. * intrinsics/malloc.c: Adapt comments.
  101. 2015-08-28 James Greenhalgh <james.greenhalgh@arm.com>
  102. * configure.ac: Auto-detect newlib function support unless we
  103. know there are issues when configuring for a host.
  104. * configure: Regenerate.
  105. 2015-08-26 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  106. PR fortran/29600
  107. * Makefile.am: Add generated/shape_i{1,2}.c
  108. * Makefile.in: Regenerate.
  109. * generated/shape_i1.c: New generated file.
  110. * generated/shape_i2.c: New generated file.
  111. * generated/shape_i4.c: Regenerate.
  112. * generated/shape_i8.c: Regenerate.
  113. * generated/shape_i16.c: Regenerate.
  114. * gfortran.map (GFORTRAN_1.7): Add _gfortran_shape_{1,2}.
  115. * m4/shape.m4: Fix parameter type.
  116. 2015-08-26 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  117. * libgfortran.h (show_variables): Remove prototype.
  118. * runtime/environ.c (print_spaces, var_source, show_integer,
  119. show_boolean, show_sep, show_string): Remove functions.
  120. * runtime/main.c (init): Remove dead code.
  121. 2015-08-25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  122. * io/unit.c (get_internal_unit): Make default sign mode unspecified.
  123. (init_units): Make default sign mode unspecified.
  124. 2015-08-25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  125. * libgfortran.h (check_buffered): Remove unused prototype.
  126. 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  127. PR libfortran/57496
  128. * io/write_float.def: Use built-in type-generic functions defined
  129. by libgfortran.h for isfinite, isnan, and signbit.
  130. 2015-08-23 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  131. PR libfortran/54572
  132. * Makefile.am (libgfortran_la_LDFLAGS): Link in libbacktrace.
  133. (AM_CPPFLAGS): Add libbacktrace directories to include paths.
  134. * Makefile.in: Regenerate.
  135. * aclocal.m4: Regenerate.
  136. * config.h.in: Regenerate.
  137. * configure: Regenerate.
  138. * configure.ac: Remove checks for strtok_r, wait, execve, pipe,
  139. and dup2. Remove call to GCC_CHECK_UNWIND_GETIPINFO.
  140. * libgfortran.h (full_exe_path, find_addr2line, backtrace): Remove
  141. prototypes.
  142. (show_backtrace): Add prototype.
  143. * runtime/backtrace.c: Rework file entirely.
  144. * runtime/compile_options.c (backtrace_handler): Rename backtrace
  145. to show_backtrace.
  146. (maybe_find_addr2line): Remove function.
  147. (set_options): Remove call to maybe_find_addr2line.
  148. * runtime/error.c (sys_abort): Rename backtrace to show_backtrace.
  149. * runtime/main.c (store_exe_path): Empty function body.
  150. (full_exe_path, gfstrtok_r, find_addr2line): Remove functions.
  151. (cleanup): Don't free removed variables.
  152. * runtime/minimal.c (full_exe_path): Remove function.
  153. (set_args): Don't set exe_path.
  154. 2015-08-23 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  155. PR libfortran/62296
  156. * intrinsics/execute_command_line.c (EXEC_INVALIDCOMMAND): New
  157. error code.
  158. (cmdmsg_values): New error message.
  159. (set_cmdstat): Rework runtime error.
  160. (execute_command_line): Handle invalid command line error status.
  161. 2015-08-10 Steven G. Kargl <kargl@gcc.gnu.org>
  162. PR libfortran/67140
  163. * intrinsics/mvbits.c: Fix build for platforms without c_int128_t.
  164. 2015-08-10 Steven G. Kargl <kargl@gcc.gnu.org>
  165. PR libfortran/67140
  166. * gfortran.map: Add _gfortran_mvbits_i16.
  167. * intrinsics/mvbits.c: Generate mvbits for c_int128_t.
  168. 2015-08-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  169. PR libfortran/66936
  170. * io/unix.c (__MINGW32__): Undefine HAVE_UMASK.
  171. 2015-08-07 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  172. PR libfortran/66458
  173. * runtime/main.c (init): Only call set_fpu() if requested by user.
  174. 2015-08-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  175. * runtime/compile_options.c (set_options): Fix typos.
  176. 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
  177. * config/fpu-387.h (get_fpu_trap_exceptions): Add temporary variable
  178. to improve generated code.
  179. 2015-08-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  180. PR fortran/64022
  181. * ieee/ieee_exceptions.F90: Support all real kinds.
  182. * ieee/ieee_arithmetic.F90: Likewise.
  183. * ieee/ieee_helper.c (ieee_class_helper_10,
  184. ieee_class_helper_16): New functions
  185. * gfortran.map (GFORTRAN_1.7): Add entries.
  186. 2015-07-29 Uros Bizjak <ubizjak@gmail.com>
  187. PR libgfortran/66650
  188. * libgfortran.h (GFC_DTYPE_SIZE_MASK): Rewrite to avoid
  189. "left shift of negative value" warning.
  190. 2015-07-14 Janne Blomqvist <jb@gcc.gnu.org>
  191. PR libfortran/66861
  192. * io/unix.c (compare_file_filename): Verify that u->filename is
  193. non-NULL before strcmp.
  194. (find_file0): Likewise.
  195. 2015-07-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  196. PR libfortran/40267
  197. * Makefile.am: Remove libgfortranbegin targets.
  198. * Makefile.in: Regenerate.
  199. * fmain.c: Remove.
  200. 2015-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
  201. * acinclude.m4 (GTHREAD_USE_WEAK): Define as 0 for *-*-musl*.
  202. * configure: Regenerate.
  203. 2015-04-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  204. PR libgfortran/65234
  205. * io/format.c (parse_format_list): Set the seen_dd flag in all
  206. cases where a data descriptor has been seen.
  207. 2015-04-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  208. PR libgfortran/56743
  209. * io/list_read.c (CASE_SEPARATORS): Add case for '!'.
  210. (is_separator): Add condition for '!'.
  211. (eat_separator): Use notify_std to warn or errord if '!' is
  212. encountered before a proper separator.
  213. 2015-04-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  214. PR libgfortran/65089
  215. * io/format.h (free_format): New function to free memory
  216. allocated for building format error messages.
  217. * io/format.c (format_error): Add checks before freeing memory
  218. to avoid potential segfaults and free formatting data when
  219. needed on error conditions. Always allocate and NULL terminate
  220. the string.
  221. * io/transfer.c (st_read_done, st_write_done): Use new
  222. free_format function to clean up memory allocations when done.
  223. 2015-03-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  224. PR libgfortran/65596
  225. * io/transfer.c (data_transfer_init): If in namelist mode and
  226. delimiter is not specified, set it to DELIM_QUOTE, independent
  227. of -std.
  228. * io/unit.c (init_units): Set flags.delim to the correct
  229. initial value of DELIM_UNSPECIFIED.
  230. 2015-03-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  231. PR libgfortran/65541
  232. * io/write.c (nml_write_obj): Convert '+' to '%' before emitting
  233. object names in namelists.
  234. 2015-03-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  235. PR libgfortran/59513
  236. * io/transfer.c (data_transfer_init): Do not error for
  237. -std=legacy.
  238. 2015-03-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  239. PR libgfortran/64432
  240. * intrinsics/system_clock.c (system_clock4, system_clock8):
  241. Cleanup some whitespace.
  242. 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
  243. * caf/single.c (caf_runtime_error): Revert 2014-11-28 changes.
  244. * runtime/minimal.c (STRERR_MAXSZ): Don't define.
  245. (runtime_error_at, sys_abort): Bring more in line with the
  246. non-LIBGFOR_MINIMAL code.
  247. (runtime_warning_at, internal_error): New functions.
  248. 2015-03-11 Janne Blomqvist <jb@gcc.gnu.org>
  249. PR libfortran/65200
  250. * io/open.c (new_unit): Use gf_strerror rather than hardcoding
  251. error messages for different errno values.
  252. * io/unix.c (regular_file2): Handle EPERM in addition to EACCES.
  253. 2015-03-10 Alessandro Fanfarillo <fanfarillo.gcc@gmail.com>
  254. Tobias Burnus <burnus@net-b.de>
  255. * caf/libcaf.h (_gfortran_caf_sync_memory): New prototype.
  256. * caf/single.c (_gfortran_caf_sync_memory): Implement.
  257. (_gfortran_caf_sync_all, _gfortran_caf_sync_image): Add
  258. __asm__ __volatile___ ("":::"memory").
  259. 2015-02-10 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  260. PR libgfortran/57822
  261. * io/write_float.def (output_float): Apply fix of previous patch
  262. to correctly calculate the exponent number of digits and take
  263. care of wide character output.
  264. 2015-02-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  265. PR libgfortran/57822
  266. * io/write_float.def (output_float): If doing g0 editing and
  267. exponent is zero, do not emit exponent.
  268. 2015-02-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  269. PR libgfortran/60956
  270. * io/fbuf.c (fbuf_flush_list): New function that only flushes
  271. if current fbuf position exceeds a limit.
  272. * io/fbuf.h: Declare the new function.
  273. * io/io.h (enum unit_mode): Add two new modes.
  274. * io/list_read.c (list_formatted_read_scalar): Call new function.
  275. * io/write.c: Include fbuf.h. (list_formatted_write_scalar):
  276. Call new function.
  277. 2015-01-24 Janne Blomqvist <jb@gcc.gnu.org>
  278. PR libfortran/64770
  279. * io/unit.c (filename_from_unit): Check that u->filename != NULL
  280. before calling strdup.
  281. 2015-01-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  282. PR libgfortran/61933
  283. * io/inquire.c (inquire_via_unit): Set existing to true for
  284. any negative unit that is currently connected and any positive
  285. units within range of KIND=4 value. The unit value for any out
  286. of range case that may occur if the user is using a KIND=8 will
  287. have been set to -2 which is reserved and can never be opened,
  288. and therefore the unit does not exist.
  289. 2015-01-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  290. PR libgfortran/61933
  291. * io/inquire.c (inquire_via_unit): Set existing to true if a
  292. gfc_unit stucture was found for the given unit number.
  293. * runtime/error.c (translate_error): Add case for
  294. LIBERROR_INQUIRE_INTERNAL_UNIT.
  295. 2015-01-05 Jakub Jelinek <jakub@redhat.com>
  296. Update copyright years.
  297. 2015-01-02 Tobias Burnus <burnus@net-b.de>
  298. * caf/single.c (_gfortran_caf_co_reduce): New function.
  299. * caf/libcaf.h (_gfortran_caf_co_reduce): New prototype.
  300. Copyright (C) 2015 Free Software Foundation, Inc.
  301. Copying and distribution of this file, with or without modification,
  302. are permitted in any medium without royalty provided the copyright
  303. notice and this notice are preserved.