ChangeLog-2013 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405
  1. 2013-12-18 Steven G. Kargl <kargl@gcc.gnu.org>
  2. * io/read.c (read_f): Convert assert to runtime error.
  3. 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
  4. * io/unix.c (tempfile_open): Only use the needed flag O_CLOEXEC.
  5. 2013-12-16 Jerry DeLisle <jvdelisle@gcc.gnu>
  6. PR libfortran/59419
  7. * io/file_pos.c (st_rewind): Do proper return after
  8. generate_error.
  9. * io/open.c (edit_modes): Move action code inside block that
  10. checks for library ok. (new_unit): Do cleanup after error.
  11. (st_open): Do proper return after error.
  12. * io/transfer.c (data_transfer_init): Likewise.
  13. 2013-12-11 Tobias Burnus <burnus@net-b.de>
  14. * config/fpu-387.h (sigill_hdlr, get_fpu_rounding_mode): Emit SSE
  15. instructions when __SSE_MATH__ is defined.
  16. 2013-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  17. * intrinsics/erfc_scaled.c (_M_2_SQRTPI): Define if missing.
  18. 2013-12-01 Uros Bizjak <ubizjak@gmail.com>
  19. PR libfortran/59313
  20. * intrinsics/erfc_scaled.c (erfc_scaled_r16): Also provide for
  21. quadruple precision long double variant.
  22. 2013-11-20 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  23. * intrinsics/erfc_scaled.c (erfc_scaled_r16): Don't define if
  24. __float128 is not available.
  25. 2013-11-20 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  26. PR libfortran/49024
  27. * intrinsics/erfc_scaled.c (erfc_scaled_r16): New function.
  28. * intrinsics/erfc_scaled_inc.c: Do not provide quadruple
  29. precision variant.
  30. 2013-11-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  31. PR libfortran/51828
  32. * intrinsics/unpack_generic.c (unpack_internal): Let the compiler
  33. know that dim > 0 to avoid warnings.
  34. 2013-11-15 Janne Blomqvist <jb@gcc.gnu.org>
  35. Jerry DeLisle <jvdelisle@gcc.gnu.org>
  36. PR fortran/59108
  37. * io/unix.c (regular_file): Don't set O_CREAT when opening a file
  38. read-only with unknown status. Mask out O_CREAT when falling back
  39. to opening read-only if ACTION= is not set and read-write fails.
  40. 2013-11-15 Steve Ellcey <sellcey@mips.com>
  41. * configure.ac: Do not define HAVE_STRTOLD.
  42. * configure: Regenerate.
  43. 2013-11-10 Janne Blomqvist <jb@gcc.gnu.org>
  44. * configure.ac: Check presence of mkostemp.
  45. * io/unix.c (set_close_on_exec): New function.
  46. (tempfile_open): Use mkostemp and O_CLOEXEC if available, fallback
  47. to calling set_close_on_exec.
  48. (regular_file): Add O_CLOEXEC to flags if defined.
  49. (open_external): Call set_close_on_exec if O_CLOEXEC is not
  50. defined.
  51. * config.h.in: Regenerated.
  52. * configure: Regenerated.
  53. * Makefile.in: Regenerated.
  54. * aclocal.m4: Regenerated.
  55. 2013-10-01 Tobias Burnus <burnus@net-b.de>
  56. PR fortran/55469
  57. * io/list_read (parse_repeat, read_integer, read_character,
  58. parse_real, read_real, check_type, list_formatted_read_scalar,
  59. finish_list_read): Call list_free.
  60. 2013-09-20 Alan Modra <amodra@gmail.com>
  61. * configure: Regenerate.
  62. 2013-07-23 Uros Bizjak <ubizjak@gmail.com>
  63. * config/fpu-387.h (get_fpu_rounding_mode): Read rounding mode
  64. from SSE mxcsr register on x86_64.
  65. 2013-07-21 Ondřej Bílka <neleai@seznam.cz>
  66. * io/transfer.c: Fix comment typos.
  67. 2013-07-21 Tobias Burnus <burnus@net-b.de>
  68. PR fortran/35862
  69. * config/fpu-387.h (set_fpu_rounding_mode,
  70. get_fpu_rounding_mode): Add missing _ to fix build.
  71. 2013-07-21 Tobias Burnus <burnus@net-b.de>
  72. Uros Bizjak <ubizjak@gmail.com>
  73. PR fortran/35862
  74. * libgfortran.h (set_fpu_rounding_mode,
  75. get_fpu_rounding_mode): New prototypes.
  76. * config/fpu-387.h (set_fpu_rounding_mode,
  77. get_fpu_rounding_mode): New functions.
  78. * config/fpu-aix.h (set_fpu_rounding_mode,
  79. get_fpu_rounding_mode): Ditto.
  80. * config/fpu-generic.h (set_fpu_rounding_mode,
  81. get_fpu_rounding_mode): Ditto.
  82. * config/fpu-glibc.h (set_fpu_rounding_mode,
  83. get_fpu_rounding_mode): Ditto.
  84. * config/fpu-sysv.h (set_fpu_rounding_mode,
  85. get_fpu_rounding_mode): Ditto.
  86. * configure.ac: Check for fp_rnd and fp_rnd_t.
  87. * io/io.h (enum unit_round): Use GFC_FPE_* for the value.
  88. * io/read.c (convert_real): Set FP ronding mode.
  89. * Makefile.in: Regenerate.
  90. * aclocal.m4: Regenerate.
  91. * config.h.in: Regenerate.
  92. * configure: Regenerate.
  93. 2013-06-24 Tobias Burnus <burnus@net-b.de>
  94. * configure.ac: Check for fp_except and fp_except_t.
  95. * config/fpu-sysv.h: Conditionally use either type.
  96. * configure: Regenerate.
  97. * config.h.in: Regenerate.
  98. 2013-06-21 Eric Botcazou <ebotcazou@adacore.com>
  99. * config/fpu-sysv.h (get_fpu_except_flags): Fix typo.
  100. 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
  101. * config/fpu-387.h (_FPU_MASK_ALL): New.
  102. (_FPU_EX_ALL): Ditto.
  103. (set_fpu): Use fstcw to store x87 FPU control word. Use fnclex to
  104. clear stalled exception flags. Correctly clear stalled SSE
  105. exception flags. Simplify code.
  106. (get_fpu_except_flags): Simplify code.
  107. 2013-06-20 Tobias Burnus <burnus@net-b.de>
  108. PR fortran/57633
  109. * io/list_read.c (next_char, eat_separator): Don't set EOL for \r.
  110. 2013-06-19 Uros Bizjak <ubizjak@gmail.com>
  111. * config/fpu-387.h: Use __asm__ and __volatile__ consistently.
  112. (get_fpu_except_flags): Initialize result.
  113. 2013-06-17 Tobias Burnus <burnus@net-b.de>
  114. * libgfortran.h (compile_options_t) Add fpe_summary.
  115. (get_fpu_except_flags): New prototype.
  116. * runtime/compile_options.c (set_options, init_compile_options):
  117. Handle fpe_summary.
  118. * runtime/stop.c (report_exception): New function.
  119. (stop_numeric, stop_numeric_f08, stop_string, error_stop_string,
  120. error_stop_numeric): Call it.
  121. * config/fpu-387.h (get_fpu_except_flags): New function.
  122. * config/fpu-aix.h (get_fpu_except_flags): New function.
  123. * config/fpu-generic.h (get_fpu_except_flags): New function.
  124. * config/fpu-glibc.h (get_fpu_except_flags): New function.
  125. * config/fpu-sysv.h (get_fpu_except_flags): New function.
  126. * configure.ac: Check for fpxcp.h.
  127. * configure: Regenerate.
  128. * config.h.in: Regenerate.
  129. 2013-06-01 Tobias Burnus <burnus@net-b.de>
  130. PR fortran/57496
  131. * io/write_float.def (ISFINITE2Q, ISFINITE2, ISFINITE2L, ISFINITE,
  132. SIGNBIT2Q, SIGNBIT2, SIGNBIT2L, SIGNBIT, ISNAN2Q, ISNAN2, ISNAN2L,
  133. ISNAN): New macros.
  134. (output_float_FMT_G_,WRITE_FLOAT): Use them.
  135. 2013-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  136. * acinclude.m4 (libgfor_cv_have_as_needed): Check for -z ignore, too.
  137. * configure: Regenerate.
  138. 2013-05-05 David Edelsohn <dje.gcc@gmail.com>
  139. * caf/libcaf.h (_gfortran_caf_critical): Add a prototype.
  140. (_gfortran_caf_end_critical): Same.
  141. 2013-05-04 David Edelsohn <dje.gcc@gmail.com>
  142. * runtime/environ.c: Include unistd.h.
  143. * runtime/pause.c: Test HAVE_UNISTD_H.
  144. * runtime/stop.c: Same.
  145. * io/open.c: Same.
  146. * io/unix.c: Same.
  147. * io/read.c (si_max): Protect declaration of value.
  148. 2013-04-29 Janne Blomqvist <jb@gcc.gnu.org>
  149. * intrinsics/system_clock (gf_gettime_mono): Use variable
  150. resolution for fractional seconds argument.
  151. (system_clock_4): Simplify, update for gf_gettime_mono change.
  152. (system_clock_8): Likewise.
  153. 2013-04-29 Janne Blomqvist <jb@gcc.gnu.org>
  154. PR fortran/56981
  155. * io/transfer.c (next_record_w_unf): First fix head marker, then
  156. write tail.
  157. (next_record): Call flush_if_unbuffered.
  158. * io/unix.c (struct unix_stream): Add field unbuffered.
  159. (flush_if_unbuffered): New function.
  160. (fd_to_stream): New argument.
  161. (open_external): Fix fd_to_stream call.
  162. (input_stream): Likewise.
  163. (output_stream): Likewise.
  164. (error_stream): Likewise.
  165. * io/unix.h (flush_if_unbuffered): New prototype.
  166. 2013-04-28 Janne Blomqvist <jb@gcc.gnu.org>
  167. * intrinsics/system_clock.c (system_clock_4): Fix sign error in
  168. Windows version.
  169. 2013-04-15 Tobias Burnus <burnus@net-b.de>
  170. * list_read.c (finish_separator): Initialize variable.
  171. 2013-04-15 Janne Blomqvist <jb@gcc.gnu.org>
  172. PR fortran/56919
  173. * intrinsics/time_1.h: Check __CYGWIN__ in addition to
  174. __MINGW32__.
  175. * intrinsics/system_clock.c (GF_CLOCK_MONOTONIC): Check
  176. _POSIX_MONOTONIC_CLOCK as well.
  177. (system_clock_4): Use GetTickCount on Windows.
  178. (system_clock_8): Use QueryPerformanceCounter and
  179. QueryPerformanceCounterFrequency on Windows.
  180. 2013-04-04 Tobias Burnus <burnus@net-b.de>
  181. PR fortran/56810
  182. * io/list_read.c (check_type): Fix kind checking for COMPLEX.
  183. 2013-04-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  184. PR libfortran/56660
  185. * io/list_read.c (nml_read_obj): Do not reset the read error flag
  186. inside nml_read_obj. If the read error flag is found set just exit.
  187. Fix some whitespace on comments.
  188. (nml_read_obj_data): Reset the read error flag before the first call
  189. to nml_read_object.
  190. 2013-03-31 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  191. PR libfortran/56786
  192. * io/list_read.c (nml_parse_qualifier): Remove spurious next_char call
  193. when checking for EOF. Use error return mechanism when EOF detected.
  194. Do not return false unless parse_err_msg and parse_err_msg_size have
  195. been set. Use hit_eof.
  196. (nml_get_obj_data): Likewise use the correct error mechanism.
  197. * io/transfer.c (hit_eof): Do not set AFTER_ENDFILE if in namelist
  198. mode.
  199. 2013-03-29 Tobias Burnus <burnus@net-b.de>
  200. PR fortran/56737
  201. * io/format.c (parse_format_list): Also cache FMT_STRING.
  202. (parse_format): Update call.
  203. 2013-03-29 Tobias Burnus <burnus@net-b.de>
  204. PR fortran/56737
  205. * io/format.c (parse_format): With caching, copy
  206. dtp->format string.
  207. (save_parsed_format): Use dtp->format directy without
  208. copying.
  209. 2013-03-29 Tobias Burnus <burnus@net-b.de>
  210. PR fortran/56735
  211. * io/list_read.c (nml_query): Only abort when
  212. an error occured.
  213. (namelist_read): Add goto instead of falling through.
  214. 2013-03-25 Tilo Schwarz <tilo@tilo-schwarz.de>
  215. PR libfortran/52512
  216. * io/list_read.c (nml_parse_qualifier): To check for a derived type
  217. don't use the namelist head element type but the current element type.
  218. (nml_get_obj_data): Add current namelist element type to
  219. nml_parse_qualifier call.
  220. 2013-03-24 Tobias Burnus <burnus@net-b.de>
  221. PR fortran/56696
  222. * io/list_read.c (read_real): Fix EOF diagnostic.
  223. 2013-03-20 Tilo Schwarz <tilo@tilo-schwarz.de>
  224. PR libfortran/51825
  225. * io/list_read.c (nml_read_obj): Don't end the component loop on a
  226. nested derived type, but continue with the next loop iteration.
  227. (nml_get_obj_data): Don't move the first_nl pointer further in the
  228. list if a qualifier was found.
  229. 2013-03-20 Tilo Schwarz <tilo@tilo-schwarz.de>
  230. PR libfortran/48618
  231. * io/open.c (st_open): Raise error for unit number < 0 only if
  232. unit number does not exist already.
  233. 2013-03-19 Janne Blomqvist <jb@gcc.gnu.org>
  234. * libgfortran.h: Include stdbool.h.
  235. (enum try): Remove.
  236. (notify_std): Change return type to bool.
  237. * intrinsics/chmod.c: Don't include stdbool.h.
  238. * intrinsics/execute_command_line.c: Likewise.
  239. * io/format.c: Likewise.
  240. * io/list_read.c (nml_parse_qualifier): Change return type to bool.
  241. (nml_read_obj): Likewise.
  242. (nml_get_obj_data): Likewise.
  243. * io/transfer.c (read_block_form): Fix comment.
  244. (write_buf): Change return type to bool.
  245. * io/write.c: Don't include stdbool.h.
  246. * io/write_float.def (output_float): Change return type to bool.
  247. (output_float_FMT_G_ ## x): Change type of result variable.
  248. * runtime/error.c (notify_std): Change return type to bool.
  249. 2013-03-11 Tobias Burnus <burnus@net-b.de>
  250. * io/transfer.c (read_block_direct): Correct condition.
  251. * intrinsics/execute_command_line.c (execute_command_line):
  252. Remove dead code for the HAVE_FORK case.
  253. 2013-02-21 Janne Blomqvist <jb@gcc.gnu.org>
  254. PR libfortran/30162
  255. * io/open.c (test_endfile): Call stell only if size != 0.
  256. * io/unix.c (raw_tell): Revert r194679.
  257. (raw_size): Return size field only for regular files, otherwise 0.
  258. 2013-02-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  259. PR target/56347
  260. * acinclude.m4 (LIBGFOR_CHECK_FOR_BROKEN_POWF): Remove check for
  261. broken powf.
  262. * configure.ac (LIBGFOR_CHECK_FOR_BROKEN_POWF): Likewise.
  263. * intrinsics/c99_functions.c: Likewise.
  264. * configure: Rebuilt.
  265. * config.h.in: Rebuilt.
  266. 2013-02-06 Janus Weil <janus@gcc.gnu.org>
  267. PR fortran/55978
  268. * runtime/in_pack_generic.c (internal_pack): Return if base_addr is
  269. NULL.
  270. 2013-01-23 Janne Blomqvist <jb@gcc.gnu.org>
  271. * io/file_pos.c (unformatted_backspace): Use __builtin_bswapXX
  272. instead of reverse_memcpy.
  273. * io/io.h (reverse_memcpy): Remove prototype.
  274. * io/transfer.c (reverse_memcpy): Make static, move towards
  275. beginning of file.
  276. (bswap_array): New function.
  277. (unformatted_read): Use bswap_array to byte swap the data
  278. in-place.
  279. (unformatted_write): Use a larger temp buffer and bswap_array.
  280. (us_read): Use __builtin_bswapXX instead of reverse_memcpy.
  281. (write_us_marker): Likewise.
  282. 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
  283. Update copyright years.
  284. 2013-01-06 Tobias Burnus <burnus@net-b.de>
  285. PR fortran/54678
  286. * intrinsics/env.c (get_environment_variable_i8): Don't use
  287. uninitialized variable.
  288. 2013-01-02 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  289. PR libfortran/55818
  290. * io/list_read.c (read_real): Do not call hit_eof when EOF can be
  291. treated as a value separator.
  292. (parse_real): Likewise.
  293. (read_logical): Likewise.
  294. (read_character): Likewise.
  295. (read_complex): Likewise.
  296. Copyright (C) 2013-2014 Free Software Foundation, Inc.
  297. Copying and distribution of this file, with or without modification,
  298. are permitted in any medium without royalty provided the copyright
  299. notice and this notice are preserved.