ChangeLog-2011 55 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486
  1. 2011-12-22 Janne Blomqvist <jb@gcc.gnu.org>
  2. Tobias Burnus <burnus@net-b.de>
  3. PR libfortran/51646
  4. * acinclude.m4 (LIBGFOR_CHECK_UNLINK_OPEN_FILE): Use POSIX mode
  5. flags, omit mode argument when flags argument does not have
  6. O_CREAT.
  7. * io/unix.c (tempfile): Use POSIX mode flags.
  8. * configure: Regenerate.
  9. 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
  10. * configure: Regenerate.
  11. 2011-11-11 Janne Blomqvist <jb@gcc.gnu.org>
  12. PR libfortran/51090
  13. * runtime/main.c (find_addr2line): NULL check before proceeding.
  14. 2011-11-10 Janne Blomqvist <jb@gcc.gnu.org>
  15. * intrinsics/cpu_time.c (__cpu_time_1): Don't force inlining.
  16. * intrinsics/random.c (rnumber_4): Remove inline attribute.
  17. (rnumber_8, rnumber_10, rnumber_16): Likewise.
  18. * intrinsics/system_clock.c (gf_gettime_mono): Likewise.
  19. * intrinsics/time_1.h (ATTRIBUTE_ALWAYS_INLINE): Remove macro.
  20. (gf_cputime): Add inline attribute for MingW version.
  21. * io/format.c (format_hash): Remove inline attribute.
  22. * io/io.h (memset4): Inline function from transfer.c and write.c
  23. moved here.
  24. * io/transfer.c (min_off): Remove inline attribute.
  25. (memset4): Move to io.h.
  26. * io/write.c (memset4): Likewise.
  27. (memcpy4): Remove inline attribute.
  28. * io/write_float.def (calculate_exp): Likewise.
  29. 2011-11-09 Janne Blomqvist <jb@gcc.gnu.org>
  30. * intrinsics/time_1.h (gf_gettime): Simplify time() usage.
  31. 2011-11-09 Janne Blomqvist <jb@gcc.gnu.org>
  32. * configure.ac (AC_STDC_HEADERS): Remove.
  33. (AC_HEADER_TIME): Remove.
  34. (AC_HAVE_HEADERS, AC_CHECK_HEADERS): Move into a single invocation
  35. of AC_CHECK_HEADERS_ONCE, don't check for presence of C89 headers.
  36. (AC_CHECK_MEMBERS): Use single invocation.
  37. (AC_CHECK_FUNCS): Move into single invocation of
  38. AC_CHEC_FUNCS_ONCE, don't check for presence of C89 functions.
  39. * config.h.in: Regenerate.
  40. * configure: Regenerate.
  41. * intrinsics/clock.c: Include time.h.
  42. (mclock): Assume clock() is present.
  43. (mclock8): Likewise.
  44. * intrinsics/ctime.c (strctime): Assume strftime is present.
  45. (fdate): Assume time() is present.
  46. (fdate_sub): Likewise.
  47. (ctime): Likewise.
  48. * intrinsics/date_and_time.c: Don't provide abs macro.
  49. (HAVE_NO_DATE_TIME): Remove code related to macro which is never
  50. set.
  51. * intrinsics/execute_command_line.c: Assume stdlib.h is present.
  52. * intrinsics/exit.c: Likewise.
  53. * intrinsics/extends_type_of.c: Likewise.
  54. * intrinsics/gerror.c: Assume strerror() is present.
  55. * intrinsics/kill.c: Assume signal.h is present.
  56. * intrinsics/malloc.c: Assume stdlib.h is present.
  57. * intrinsics/move_alloc.c: Likewise.
  58. * intrinsics/perror.c: Assume perror() is present.
  59. * intrinsics/signal.c: Assume signal.h is present.
  60. * intrinsics/stat.c: Assume stdlib.h is present.
  61. * intrinsics/system.c: Likewise.
  62. * intrinsics/time.c: Include time.h, assume time() is present.
  63. * intrinsics/time_1.h: Conditionally include sys/time.h,
  64. unconditionally time.h.
  65. (gf_cputime): Do division in double, fallback using clock().
  66. (gf_gettime): Assume time() is present.
  67. * intrinsics/umask.c: Assume stdlib.h is present.
  68. * runtime/backtrace.c: Likewise.
  69. * runtime/compile_options.c: Assume signal.h is present, assume
  70. C89 signals are present.
  71. * runtime/error.c: Assume signal.h and stdlib.h are present.
  72. 2011-11-09 Janne Blomqvist <jb@gcc.gnu.org>
  73. PR fortran/46686
  74. * runtime/backtrace.c (show_backtrace): Fix incorrect comment.
  75. 2011-11-09 Tobias Burnus <burnus@net-b.de>
  76. * configure.ac: Make more cross-compile friendly.
  77. * Makefile.in: Regenerate.
  78. * aclocal.m4: Regenerate.
  79. * config.h.in: Regenerate.
  80. * configure: Regenerate.
  81. 2011-11-09 Janne Blomqvist <jb@gcc.gnu.org>
  82. PR fortran/46686
  83. * configure.ac: Don't check execinfo.h, backtrace,
  84. backtrace_symbols_fd. Check execve instead of execvp. Call
  85. GCC_CHECK_UNWIND_GETIPINFO.
  86. * runtime/backtrace.c: Don't include unused headers, include
  87. limits.h and unwind.h.
  88. (CAN_FORK): Check execve instead of execvp.
  89. (GLIBC_BACKTRACE): Remove.
  90. (bt_header): Conform to gdb backtrace format.
  91. (struct bt_state): New struct.
  92. (trace_function): New function.
  93. (show_backtrace): Use _Unwind_Backtrace from libgcc instead of
  94. glibc backtrace functions.
  95. * Makefile.in: Regenerated.
  96. * aclocal.m4: Regenerated.
  97. * config.h.in: Regenerated.
  98. * configure: Regenerated.
  99. 2011-11-09 Janne Blomqvist <jb@gcc.gnu.org>
  100. PR libfortran/50016
  101. * io/inquire.c (inquire_via_unit): Flush the unit and use ssize.
  102. * io/unix.c (buf_flush): Don't call _commit.
  103. 2011-11-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  104. PR libfortran/47972
  105. * runtime/error.c (gf_strerror): Silence warning.
  106. 2011-11-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  107. PR libfortran/47972
  108. * runtime/error.c (gf_strerror): Silence warning.
  109. 2011-11-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  110. PR libfortran/47970
  111. * intrinsics/c99_functions.c (round): Move higher in the file.
  112. 2011-11-07 Janne Blomqvist <jb@gcc.gnu.org>
  113. PR libfortran/45723
  114. * io/open.c (new_unit): Don't check file size before attempting
  115. seek.
  116. 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  117. * Makefile.am (AM_CPPFLAGS): Add
  118. -I$(srcdir)/$(MULTISRCTOP)../libgcc, -I$(MULTIBUILDTOP)../libgcc.
  119. * Makefile.in: Regenerate.
  120. * acinclude.m4 (LIBGFOR_CHECK_GTHR_DEFAULT): Remove.
  121. * configure.ac (LIBGFOR_CHECK_GTHR_DEFAULT): Likewise.
  122. * configure: Regenerate.
  123. * config.h.in: Regenerate.
  124. 2011-11-01 Janne Blomqvist <jb@gcc.gnu.org>
  125. * io/io.h (next_available_newunit): Remove prototype.
  126. * io/unit.h (next_available_newunit): Make variable static,
  127. initialize it.
  128. (init_units): Don't initialize next_available_newunit.
  129. (get_unique_unit_number): Use atomic builtin if available.
  130. 2011-10-31 Janne Blomqvist <jb@gcc.gnu.org>
  131. * io/inquire.c (inquire_via_unit): Check whether we're at the
  132. beginning or end if the position is unspecified. If the position
  133. is not one of the 3 standard ones, return unspecified.
  134. * io/io.h (update_position): Remove prototype.
  135. * io/transfer.c (next_record): Set the position to unspecified,
  136. letting inquire figure it out more exactly when needed.
  137. * io/unit.c (update_position): Remove function.
  138. 2011-10-31 Janne Blomqvist <jb@gcc.gnu.org>
  139. * io/unix.h (struct stream): Add size function pointer.
  140. (ssize): New inline function.
  141. (file_length): Remove prototype.
  142. * io/unix.c (raw_size): New function.
  143. (raw_init): Initialize st.size pointer.
  144. (buf_size): New function.
  145. (buf_init): Initialize st.size pointer.
  146. (open_internal): Likewise.
  147. (open_internal4): Likewise.
  148. (file_length): Remove function.
  149. * io/file_pos.c (st_rewind): Use ssize instead of file_length.
  150. * io/open.c (test_endfile): Likewise.
  151. * io/transfer.c (data_transfer_init): Likewise.
  152. (next_record_r): Likewise.
  153. (next_record_w): Likewise.
  154. * io/unit.c (update_position): Likewise.
  155. 2011-10-31 Janne Blomqvist <jb@gcc.gnu.org>
  156. * io/file_pos.c (st_rewind): Handle regular and special files
  157. identically.
  158. * io/intrinsics.c (fseek_sub): Don't check whether we think the
  159. file is seekable, just do what the caller says.
  160. * io/transfer.c (skip_record): First try to seek, then fallback to
  161. reading and throwing away what we read.
  162. * io/unit.c (update_position): Don't check whether file is
  163. seekable, just try to do what we're told.
  164. (unit_truncate): Likewise.
  165. * io/unix.c (struct unix_stream): Remove special_file flag.
  166. (buf_flush): Remove code for handling unseekable files.
  167. (buf_seek): Likewise.
  168. (fd_to_stream): Use buffered IO only for regular files.
  169. (file_length): Remove is_seekable() call.
  170. (is_seekable): Remove function.
  171. (is_special): Likewise.
  172. * io/unix.h: Remove prototypes for is_seekable and is_special.
  173. 2011-09-10 Thomas Koenig <tkoenig@gcc.gnu.org>
  174. PR fortran/49479
  175. * generated/m4/ifunction.m4: Always call internal_malloc_size
  176. even when there is a zero-sized return array.
  177. * generated/generated/maxloc1_16_i16.c: Regenerated.
  178. * generated/generated/maxloc1_16_i1.c: Regenerated.
  179. * generated/generated/maxloc1_16_i2.c: Regenerated.
  180. * generated/generated/maxloc1_16_i4.c: Regenerated.
  181. * generated/generated/maxloc1_16_i8.c: Regenerated.
  182. * generated/generated/maxloc1_16_r10.c: Regenerated.
  183. * generated/generated/maxloc1_16_r16.c: Regenerated.
  184. * generated/generated/maxloc1_16_r4.c: Regenerated.
  185. * generated/generated/maxloc1_16_r8.c: Regenerated.
  186. * generated/generated/maxloc1_4_i16.c: Regenerated.
  187. * generated/generated/maxloc1_4_i1.c: Regenerated.
  188. * generated/generated/maxloc1_4_i2.c: Regenerated.
  189. * generated/generated/maxloc1_4_i4.c: Regenerated.
  190. * generated/generated/maxloc1_4_i8.c: Regenerated.
  191. * generated/generated/maxloc1_4_r10.c: Regenerated.
  192. * generated/generated/maxloc1_4_r16.c: Regenerated.
  193. * generated/generated/maxloc1_4_r4.c: Regenerated.
  194. * generated/generated/maxloc1_4_r8.c: Regenerated.
  195. * generated/generated/maxloc1_8_i16.c: Regenerated.
  196. * generated/generated/maxloc1_8_i1.c: Regenerated.
  197. * generated/generated/maxloc1_8_i2.c: Regenerated.
  198. * generated/generated/maxloc1_8_i4.c: Regenerated.
  199. * generated/generated/maxloc1_8_i8.c: Regenerated.
  200. * generated/generated/maxloc1_8_r10.c: Regenerated.
  201. * generated/generated/maxloc1_8_r16.c: Regenerated.
  202. * generated/generated/maxloc1_8_r4.c: Regenerated.
  203. * generated/generated/maxloc1_8_r8.c: Regenerated.
  204. * generated/generated/maxval_i16.c: Regenerated.
  205. * generated/generated/maxval_i1.c: Regenerated.
  206. * generated/generated/maxval_i2.c: Regenerated.
  207. * generated/generated/maxval_i4.c: Regenerated.
  208. * generated/generated/maxval_i8.c: Regenerated.
  209. * generated/generated/maxval_r10.c: Regenerated.
  210. * generated/generated/maxval_r16.c: Regenerated.
  211. * generated/generated/maxval_r4.c: Regenerated.
  212. * generated/generated/maxval_r8.c: Regenerated.
  213. * generated/generated/minloc1_16_i16.c: Regenerated.
  214. * generated/generated/minloc1_16_i1.c: Regenerated.
  215. * generated/generated/minloc1_16_i2.c: Regenerated.
  216. * generated/generated/minloc1_16_i4.c: Regenerated.
  217. * generated/generated/minloc1_16_i8.c: Regenerated.
  218. * generated/generated/minloc1_16_r10.c: Regenerated.
  219. * generated/generated/minloc1_16_r16.c: Regenerated.
  220. * generated/generated/minloc1_16_r4.c: Regenerated.
  221. * generated/generated/minloc1_16_r8.c: Regenerated.
  222. * generated/generated/minloc1_4_i16.c: Regenerated.
  223. * generated/generated/minloc1_4_i1.c: Regenerated.
  224. * generated/generated/minloc1_4_i2.c: Regenerated.
  225. * generated/generated/minloc1_4_i4.c: Regenerated.
  226. * generated/generated/minloc1_4_i8.c: Regenerated.
  227. * generated/generated/minloc1_4_r10.c: Regenerated.
  228. * generated/generated/minloc1_4_r16.c: Regenerated.
  229. * generated/generated/minloc1_4_r4.c: Regenerated.
  230. * generated/generated/minloc1_4_r8.c: Regenerated.
  231. * generated/generated/minloc1_8_i16.c: Regenerated.
  232. * generated/generated/minloc1_8_i1.c: Regenerated.
  233. * generated/generated/minloc1_8_i2.c: Regenerated.
  234. * generated/generated/minloc1_8_i4.c: Regenerated.
  235. * generated/generated/minloc1_8_i8.c: Regenerated.
  236. * generated/generated/minloc1_8_r10.c: Regenerated.
  237. * generated/generated/minloc1_8_r16.c: Regenerated.
  238. * generated/generated/minloc1_8_r4.c: Regenerated.
  239. * generated/generated/minloc1_8_r8.c: Regenerated.
  240. * generated/generated/minval_i16.c: Regenerated.
  241. * generated/generated/minval_i1.c: Regenerated.
  242. * generated/generated/minval_i2.c: Regenerated.
  243. * generated/generated/minval_i4.c: Regenerated.
  244. * generated/generated/minval_i8.c: Regenerated.
  245. * generated/generated/minval_r10.c: Regenerated.
  246. * generated/generated/minval_r16.c: Regenerated.
  247. * generated/generated/minval_r4.c: Regenerated.
  248. * generated/generated/minval_r8.c: Regenerated.
  249. * generated/generated/product_c10.c: Regenerated.
  250. * generated/generated/product_c16.c: Regenerated.
  251. * generated/generated/product_c4.c: Regenerated.
  252. * generated/generated/product_c8.c: Regenerated.
  253. * generated/generated/product_i16.c: Regenerated.
  254. * generated/generated/product_i1.c: Regenerated.
  255. * generated/generated/product_i2.c: Regenerated.
  256. * generated/generated/product_i4.c: Regenerated.
  257. * generated/generated/product_i8.c: Regenerated.
  258. * generated/generated/product_r10.c: Regenerated.
  259. * generated/generated/product_r16.c: Regenerated.
  260. * generated/generated/product_r4.c: Regenerated.
  261. * generated/generated/product_r8.c: Regenerated.
  262. * generated/generated/sum_c10.c: Regenerated.
  263. * generated/generated/sum_c16.c: Regenerated.
  264. * generated/generated/sum_c4.c: Regenerated.
  265. * generated/generated/sum_c8.c: Regenerated.
  266. * generated/generated/sum_i16.c: Regenerated.
  267. * generated/generated/sum_i1.c: Regenerated.
  268. * generated/generated/sum_i2.c: Regenerated.
  269. * generated/generated/sum_i4.c: Regenerated.
  270. * generated/generated/sum_i8.c: Regenerated.
  271. * generated/generated/sum_r10.c: Regenerated.
  272. * generated/generated/sum_r16.c: Regenerated.
  273. * generated/generated/sum_r4.c: Regenerated.
  274. * generated/generated/sum_r8.c: Regenerated.
  275. 2011-09-01 Thomas Koenig <tkoenig@gcc.gnu.org>
  276. * generated/bessel_r4.c: Regenerated.
  277. * generated/bessel_r8.c: Regenerated.
  278. * generated/bessel_r10.c: Regenerated.
  279. * generated/bessel_r16.c: Regenerated.
  280. 2011-08-29 Tobias Burnus <burnus@net-b.de>
  281. * caf/libcaf.h (_gfortran_caf_deregister): Update prototype.
  282. * caf/mpi.c (_gfortran_caf_deregister): Modify prototype,
  283. actually free memory and add error diagnostic.
  284. (_gfortran_caf_finalize): Add additional free calls.
  285. * caf/single.c (_gfortran_caf_deregister): Modify prototype,
  286. actually free memory and add error diagnostic.
  287. (_gfortran_caf_finalize): Add additional free calls.
  288. 2011-08-29 Thomas Koenig <tkoenig@gcc.gnu.org>
  289. PR libfortran/50192
  290. * intrinsics/string_intrinsics.c (memcmp_char4): New function.
  291. * intrinsics/string_intrinsics_inc.c: New macro MEMCMP, either
  292. set to memcmp or memcmp_char4.
  293. (compare_string): Use MEMCMP, with correct size for it.
  294. * libgfortran.h: Add prototype for memcmp_char4.
  295. 2011-08-28 Thomas Koenig <tkoenig@gcc.gnu.org>
  296. PR fortran/40866
  297. * generated/iall_i1.c: Regenerated.
  298. * generated/iall_i16.c: Regenerated.
  299. * generated/iall_i2.c: Regenerated.
  300. * generated/iall_i4.c: Regenerated.
  301. * generated/iall_i8.c: Regenerated.
  302. * generated/iany_i1.c: Regenerated.
  303. * generated/iany_i16.c: Regenerated.
  304. * generated/iany_i2.c: Regenerated.
  305. * generated/iany_i4.c: Regenerated.
  306. * generated/iany_i8.c: Regenerated.
  307. * generated/iparity_i1.c: Regenerated.
  308. * generated/iparity_i16.c: Regenerated.
  309. * generated/iparity_i2.c: Regenerated.
  310. * generated/iparity_i4.c: Regenerated.
  311. * generated/iparity_i8.c: Regenerated.
  312. * generated/norm2_r10.c: Regenerated.
  313. * generated/norm2_r16.c: Regenerated.
  314. * generated/norm2_r4.c: Regenerated.
  315. * generated/norm2_r8.c: Regenerated.
  316. * generated/parity_l1.c: Regenerated.
  317. * generated/parity_l16.c: Regenerated.
  318. * generated/parity_l2.c: Regenerated.
  319. * generated/parity_l4.c: Regenerated.
  320. * generated/parity_l8.c: Regenerated.
  321. * generated/misc_specifics.F90: Regenerated (comment change).
  322. * generated/_abs_c10.F90: Regenerated (comment change).
  323. * generated/_abs_c16.F90: Regenerated (comment change).
  324. * generated/_abs_c4.F90: Regenerated (comment change).
  325. * generated/_abs_c8.F90: Regenerated (comment change).
  326. * generated/_abs_i16.F90: Regenerated (comment change).
  327. * generated/_abs_i4.F90: Regenerated (comment change).
  328. * generated/_abs_i8.F90: Regenerated (comment change).
  329. * generated/_abs_r10.F90: Regenerated (comment change).
  330. * generated/_abs_r16.F90: Regenerated (comment change).
  331. * generated/_abs_r4.F90: Regenerated (comment change).
  332. * generated/_abs_r8.F90: Regenerated (comment change).
  333. * generated/_acosh_r10.F90: Regenerated (comment change).
  334. * generated/_acosh_r16.F90: Regenerated (comment change).
  335. * generated/_acosh_r4.F90: Regenerated (comment change).
  336. * generated/_acosh_r8.F90: Regenerated (comment change).
  337. * generated/_acos_r10.F90: Regenerated (comment change).
  338. * generated/_acos_r16.F90: Regenerated (comment change).
  339. * generated/_acos_r4.F90: Regenerated (comment change).
  340. * generated/_acos_r8.F90: Regenerated (comment change).
  341. * generated/_aimag_c10.F90: Regenerated (comment change).
  342. * generated/_aimag_c16.F90: Regenerated (comment change).
  343. * generated/_aimag_c4.F90: Regenerated (comment change).
  344. * generated/_aimag_c8.F90: Regenerated (comment change).
  345. * generated/_aint_r10.F90: Regenerated (comment change).
  346. * generated/_aint_r16.F90: Regenerated (comment change).
  347. * generated/_aint_r4.F90: Regenerated (comment change).
  348. * generated/_aint_r8.F90: Regenerated (comment change).
  349. * generated/_anint_r10.F90: Regenerated (comment change).
  350. * generated/_anint_r16.F90: Regenerated (comment change).
  351. * generated/_anint_r4.F90: Regenerated (comment change).
  352. * generated/_anint_r8.F90: Regenerated (comment change).
  353. * generated/_asinh_r10.F90: Regenerated (comment change).
  354. * generated/_asinh_r16.F90: Regenerated (comment change).
  355. * generated/_asinh_r4.F90: Regenerated (comment change).
  356. * generated/_asinh_r8.F90: Regenerated (comment change).
  357. * generated/_asin_r10.F90: Regenerated (comment change).
  358. * generated/_asin_r16.F90: Regenerated (comment change).
  359. * generated/_asin_r4.F90: Regenerated (comment change).
  360. * generated/_asin_r8.F90: Regenerated (comment change).
  361. * generated/_atan2_r10.F90: Regenerated (comment change).
  362. * generated/_atan2_r16.F90: Regenerated (comment change).
  363. * generated/_atan2_r4.F90: Regenerated (comment change).
  364. * generated/_atan2_r8.F90: Regenerated (comment change).
  365. * generated/_atanh_r10.F90: Regenerated (comment change).
  366. * generated/_atanh_r16.F90: Regenerated (comment change).
  367. * generated/_atanh_r4.F90: Regenerated (comment change).
  368. * generated/_atanh_r8.F90: Regenerated (comment change).
  369. * generated/_atan_r10.F90: Regenerated (comment change).
  370. * generated/_atan_r16.F90: Regenerated (comment change).
  371. * generated/_atan_r4.F90: Regenerated (comment change).
  372. * generated/_atan_r8.F90: Regenerated (comment change).
  373. * generated/_conjg_c10.F90: Regenerated (comment change).
  374. * generated/_conjg_c16.F90: Regenerated (comment change).
  375. * generated/_conjg_c4.F90: Regenerated (comment change).
  376. * generated/_conjg_c8.F90: Regenerated (comment change).
  377. * generated/_cosh_r10.F90: Regenerated (comment change).
  378. * generated/_cosh_r16.F90: Regenerated (comment change).
  379. * generated/_cosh_r4.F90: Regenerated (comment change).
  380. * generated/_cosh_r8.F90: Regenerated (comment change).
  381. * generated/_cos_c10.F90: Regenerated (comment change).
  382. * generated/_cos_c16.F90: Regenerated (comment change).
  383. * generated/_cos_c4.F90: Regenerated (comment change).
  384. * generated/_cos_c8.F90: Regenerated (comment change).
  385. * generated/_cos_r10.F90: Regenerated (comment change).
  386. * generated/_cos_r16.F90: Regenerated (comment change).
  387. * generated/_cos_r4.F90: Regenerated (comment change).
  388. * generated/_cos_r8.F90: Regenerated (comment change).
  389. * generated/_dim_i16.F90: Regenerated (comment change).
  390. * generated/_dim_i4.F90: Regenerated (comment change).
  391. * generated/_dim_i8.F90: Regenerated (comment change).
  392. * generated/_dim_r10.F90: Regenerated (comment change).
  393. * generated/_dim_r16.F90: Regenerated (comment change).
  394. * generated/_dim_r4.F90: Regenerated (comment change).
  395. * generated/_dim_r8.F90: Regenerated (comment change).
  396. * generated/_exp_c10.F90: Regenerated (comment change).
  397. * generated/_exp_c16.F90: Regenerated (comment change).
  398. * generated/_exp_c4.F90: Regenerated (comment change).
  399. * generated/_exp_c8.F90: Regenerated (comment change).
  400. * generated/_exp_r10.F90: Regenerated (comment change).
  401. * generated/_exp_r16.F90: Regenerated (comment change).
  402. * generated/_exp_r4.F90: Regenerated (comment change).
  403. * generated/_exp_r8.F90: Regenerated (comment change).
  404. * generated/_log10_r10.F90: Regenerated (comment change).
  405. * generated/_log10_r16.F90: Regenerated (comment change).
  406. * generated/_log10_r4.F90: Regenerated (comment change).
  407. * generated/_log10_r8.F90: Regenerated (comment change).
  408. * generated/_log_c10.F90: Regenerated (comment change).
  409. * generated/_log_c16.F90: Regenerated (comment change).
  410. * generated/_log_c4.F90: Regenerated (comment change).
  411. * generated/_log_c8.F90: Regenerated (comment change).
  412. * generated/_log_r10.F90: Regenerated (comment change).
  413. * generated/_log_r16.F90: Regenerated (comment change).
  414. * generated/_log_r4.F90: Regenerated (comment change).
  415. * generated/_log_r8.F90: Regenerated (comment change).
  416. * generated/_mod_i16.F90: Regenerated (comment change).
  417. * generated/_mod_i4.F90: Regenerated (comment change).
  418. * generated/_mod_i8.F90: Regenerated (comment change).
  419. * generated/_mod_r10.F90: Regenerated (comment change).
  420. * generated/_mod_r16.F90: Regenerated (comment change).
  421. * generated/_mod_r4.F90: Regenerated (comment change).
  422. * generated/_mod_r8.F90: Regenerated (comment change).
  423. * generated/_sign_i16.F90: Regenerated (comment change).
  424. * generated/_sign_i4.F90: Regenerated (comment change).
  425. * generated/_sign_i8.F90: Regenerated (comment change).
  426. * generated/_sign_r10.F90: Regenerated (comment change).
  427. * generated/_sign_r16.F90: Regenerated (comment change).
  428. * generated/_sign_r4.F90: Regenerated (comment change).
  429. * generated/_sign_r8.F90: Regenerated (comment change).
  430. * generated/_sinh_r10.F90: Regenerated (comment change).
  431. * generated/_sinh_r16.F90: Regenerated (comment change).
  432. * generated/_sinh_r4.F90: Regenerated (comment change).
  433. * generated/_sinh_r8.F90: Regenerated (comment change).
  434. * generated/_sin_c10.F90: Regenerated (comment change).
  435. * generated/_sin_c16.F90: Regenerated (comment change).
  436. * generated/_sin_c4.F90: Regenerated (comment change).
  437. * generated/_sin_c8.F90: Regenerated (comment change).
  438. * generated/_sin_r10.F90: Regenerated (comment change).
  439. * generated/_sin_r16.F90: Regenerated (comment change).
  440. * generated/_sin_r4.F90: Regenerated (comment change).
  441. * generated/_sin_r8.F90: Regenerated (comment change).
  442. * generated/_sqrt_c10.F90: Regenerated (comment change).
  443. * generated/_sqrt_c16.F90: Regenerated (comment change).
  444. * generated/_sqrt_c4.F90: Regenerated (comment change).
  445. * generated/_sqrt_c8.F90: Regenerated (comment change).
  446. * generated/_sqrt_r10.F90: Regenerated (comment change).
  447. * generated/_sqrt_r16.F90: Regenerated (comment change).
  448. * generated/_sqrt_r4.F90: Regenerated (comment change).
  449. * generated/_sqrt_r8.F90: Regenerated (comment change).
  450. * generated/_tanh_r10.F90: Regenerated (comment change).
  451. * generated/_tanh_r16.F90: Regenerated (comment change).
  452. * generated/_tanh_r4.F90: Regenerated (comment change).
  453. * generated/_tanh_r8.F90: Regenerated (comment change).
  454. * generated/_tan_r10.F90: Regenerated (comment change).
  455. * generated/_tan_r16.F90: Regenerated (comment change).
  456. * generated/_tan_r4.F90: Regenerated (comment change).
  457. * generated/_tan_r8.F90: Regenerated (comment change).
  458. 2011-08-18 Tobias Burnus <burnus@net-b.de>
  459. PR fortran/50109
  460. * io/list_read.c (eat_separator): Fix skipping over "!" lines.
  461. 2011-07-23 Andreas Schwab <schwab@linux-m68k.org>
  462. * intrinsics/ctime.c: Include <stdlib.h>.
  463. * intrinsics/getlog.c: Likewise.
  464. * runtime/stop.c: Likewise.
  465. 2011-07-23 Tobias Burnus <burnus@net-b.de>
  466. PR fortran/49791
  467. * io/list_read.c (nml_parse_qualifier): Remove check to
  468. enabled extended read for another case.
  469. 2011-07-15 Daniel Carrera <dcarrera@gmail.com>
  470. * caf/mpi.c (caf_runtime_error): Change fprintf to vfprintf.
  471. * caf/single.c (caf_runtime_error): Ditto.
  472. 2011-07-14 Daniel Carrera <dcarrera@gmail.com>
  473. * caf/single.c: Include stdarg.h header.
  474. (caf_runtime_error): New function. Use "exit(EXIT_FAILURE)".
  475. (_gfortran_caf_register): Use caf_runtime_error.
  476. (_gfortran_caf_sync_images): Use "exit(EXIT_FAILURE)".
  477. * caf/mpi.c (caf_runtime_error): Remove "error" parameter.
  478. Return EXIT_FAILURE instead.
  479. (_gfortran_caf_register): Update call to caf_runtime_error.
  480. (_gfortran_caf_sync_all): Ditto.
  481. (_gfortran_caf_sync_images): Ditto.
  482. (_gfortran_caf_error_stop_str): Use "exit(EXIT_FAILURE)".
  483. 2011-07-13 Janne Blomqvist <jb@gcc.gnu.org>
  484. PR libfortran/49296
  485. * io/list_read.c (read_logical): Don't error out if a valid value
  486. is followed by EOF instead of a normal separator.
  487. (read_integer): Likewise.
  488. 2011-07-09 Tobias Burnus <burnus@net-b.de>
  489. * runtime/error.c (sys_abort): Change argument list
  490. from "()" to "(void)".
  491. 2011-07-09 Tobias Burnus <burnus@net-b.de>
  492. Daniel Carrera <dcarrera@gmail.com>
  493. * caf/mpi.c (runtime_error): New function.
  494. (_gfortran_caf_register): Use it.
  495. (_gfortran_caf_sync_all): Use it, add STAT_STOPPED_IMAGE
  496. as possible status value.
  497. (_gfortran_caf_sync_images): Ditto.
  498. 2011-07-07 Tobias Burnus <burnus@net-b.de>
  499. * libcaf.h (__attribute__, unlikely, likely): New macros.
  500. (caf_register_t): Update comment.
  501. (_gfortran_caf_register): Add stat, errmsg, errmsg_len arguments.
  502. * single.c (_gfortran_caf_register): Ditto; add error diagnostics.
  503. * mpi.c (_gfortran_caf_register): Ditto.
  504. (caf_is_finalized): New global variable.
  505. (_gfortran_caf_finalize): Use it.
  506. 2011-07-05 Thomas Koenig <tkoenig@gcc.gnu.org>
  507. * runtime/memory.c (internal_malloc_size): If size is zero,
  508. allocate a single byte.
  509. * m4/pack.m4 (pack_'rtype_code`): Don't check for zero size
  510. for the argument of internal_malloc_size.
  511. * m4/spread.m4 (spread_'rtype_code`): Likewise.
  512. * m4/eoshift1.m4 (eoshift1): Don't allocate twice. Don't check
  513. for zero size for the argument of internal_malloc_size.
  514. * m4/eoshift3.m4: Don't check for zero size for the argument of
  515. internal_malloc_size.
  516. * intrinsics/pack_generic.c (pack_internal): Likewise.
  517. (pack_s_internal): Likewise.
  518. * intrinsics/cshift0.c (cshift0): Likewise.
  519. * intrinsics/spread_generic.c (spread_internal): Likewise.
  520. * intrinsics/eoshift0.c (eoshift0): Likewise.
  521. * intrinsics/eoshift2.c (eoshift2): Likewise.
  522. * generated/eoshift1_16.c: Regenerated.
  523. * generated/eoshift1_4.c: Regenerated.
  524. * generated/eoshift1_8.c: Regenerated.
  525. * generated/eoshift3_16.c: Regenerated.
  526. * generated/eoshift3_4.c: Regenerated.
  527. * generated/eoshift3_8.c: Regenerated.
  528. * generated/pack_c10.c: Regenerated.
  529. * generated/pack_c16.c: Regenerated.
  530. * generated/pack_c4.c: Regenerated.
  531. * generated/pack_c8.c: Regenerated.
  532. * generated/pack_i16.c: Regenerated.
  533. * generated/pack_i1.c: Regenerated.
  534. * generated/pack_i2.c: Regenerated.
  535. * generated/pack_i4.c: Regenerated.
  536. * generated/pack_i8.c: Regenerated.
  537. * generated/pack_r10.c: Regenerated.
  538. * generated/pack_r16.c: Regenerated.
  539. * generated/pack_r4.c: Regenerated.
  540. * generated/pack_r8.c: Regenerated.
  541. * generated/spread_c10.c: Regenerated.
  542. * generated/spread_c16.c: Regenerated.
  543. * generated/spread_c4.c: Regenerated.
  544. * generated/spread_c8.c: Regenerated.
  545. * generated/spread_i16.c: Regenerated.
  546. * generated/spread_i1.c: Regenerated.
  547. * generated/spread_i2.c: Regenerated.
  548. * generated/spread_i4.c: Regenerated.
  549. * generated/spread_i8.c: Regenerated.
  550. * generated/spread_r10.c: Regenerated.
  551. * generated/spread_r16.c: Regenerated.
  552. * generated/spread_r4.c: Regenerated.
  553. * generated/spread_r8.c: Regenerated.
  554. 2011-06-28 Thomas Koenig <tkoenig@gcc.gnu.org>
  555. PR fortran/49479
  556. * m4/reshape.m4: If source allocation is smaller than one, set it
  557. to one.
  558. * intrinsics/reshape_generic.c: Likewise.
  559. * generated/reshape_r16.c: Regenerated.
  560. * generated/reshape_c4.c: Regenerated.
  561. * generated/reshape_c16.c: Regenerated.
  562. * generated/reshape_c8.c: Regenerated.
  563. * generated/reshape_r4.c: Regenerated.
  564. * generated/reshape_i4.c: Regenerated.
  565. * generated/reshape_r10.c: Regenerated.
  566. * generated/reshape_r8.c: Regenerated.
  567. * generated/reshape_c10.c: Regenerated.
  568. * generated/reshape_i8.c: Regenerated.
  569. * generated/reshape_i16.c: Regenerated.
  570. 2011-06-18 Janne Blomqvist <jb@gcc.gnu.org>
  571. PR libfortran/49296
  572. * io/list_read.c (read_character): Accept EOF as a separator when
  573. reading string.
  574. 2011-06-17 Daniel Carrera <dcarrera@gmail.com>
  575. * caf/single.c (_gfortran_caf_register): Store the address
  576. of all static coarrays in a linked list.
  577. (_gfortran_caf_finalize): Free memory of staic coarrays.
  578. * caf/mpi.c (_gfortran_caf_register): Store the address
  579. of all static coarrays in a linked list. Initialize MPI
  580. if necessary.
  581. (_gfortran_caf_finalize): Free memory of staic coarrays.
  582. (_gfortran_caf_init): Check if MPI is already initialized
  583. before initializing again.
  584. * caf/libcaf.h: Add a type to caf_register_t to distinguish
  585. static coarrays and add the type caf_static_t to make the
  586. linked list of static coarrays.
  587. 2011-06-11 Janne Blomqvist <jb@gcc.gnu.org>
  588. * io/unix.c (buf_seek): Return error if file is not seekable.
  589. (buf_tell): Call buf_seek.
  590. 2011-06-11 Janne Blomqvist <jb@gcc.gnu.org>
  591. * io/unix.c (fd_to_stream): Figure out if a fd is seekable by
  592. trying lseek().
  593. 2011-06-10 Daniel Carrera <dcarrera@gmail.com>
  594. * caf/mpi.c (_gfortran_caf_sync_all,
  595. _gfortran_caf_sync_images): Functions have void return type
  596. and move status into parameter list.
  597. * caf/single.c (_gfortran_caf_sync_all,
  598. _gfortran_caf_sync_images): Functions have void return type
  599. and move status into parameter list.
  600. * caf/libcaf.h (_gfortran_caf_sync_all,
  601. _gfortran_caf_sync_images): Functions have void return type
  602. and move status into parameter list.
  603. 2011-06-03 Richard Henderson <rth@redhat.com>
  604. Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  605. * config/fpu-387.h [__sun__ && __svr4__] (sigill_hdlr): Correct
  606. insn, insn size.
  607. (has_sse) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
  608. 2011-05-29 Janne Blomqvist <jb@gcc.gnu.org>
  609. PR libfortran/48931
  610. * libgfortran.h (find_addr2line): New prototype.
  611. * runtime/backtrace.c (show_backtrace): Use async-signal-safe
  612. execve and stored path of addr2line.
  613. * runtime/compile_options.c (maybe_find_addr2line): New function.
  614. (set_options): Call maybe_find_addr2line if backtracing is enabled.
  615. * runtime/main.c (find_addr2line): New function.
  616. (init): Call find_addr2line if backtracing is enabled.
  617. (cleanup): Free addr2line_path.
  618. 2011-05-29 Janne Blomqvist <jb@gcc.gnu.org>
  619. PR libfortran/49214
  620. * runtime/backtrace.c (fd_gets): Return NULL if nothing was read.
  621. 2011-05-29 Janne Blomqvist <jb@gcc.gnu.org>
  622. PR libfortran/19155
  623. * io/read.c (convert_real): Check for invalid input by comparing
  624. endptr instead of EINVAL.
  625. (read_f): Fixup floating point input without significand.
  626. 2011-05-22 Tobias Burnus <burnus@net-b.de>
  627. * runtime/stop.c (stop_string,error_stop_string): Minor cleanup.
  628. 2011-05-22 Janne Blomqvist <jb@gcc.gnu.org>
  629. PR libfortran/48931
  630. * configure.ac: Check for backtrace_symbols_fd instead of
  631. backtrace_symbols, check for readlink.
  632. * config.h.in: Regenerated.
  633. * configure: Regenerated.
  634. * runtime/backtrace.c (local_strcasestr): Remove.
  635. (bt_header): New function.
  636. (dump_glibc_backtrace): Remove.
  637. (fd_gets): New function.
  638. (show_backtrace): Rework to use backtrace_symbols_fd and pipes
  639. avoiding functions that are not async-signal-safe, reformat
  640. output.
  641. * runtime/main.c (store_exe_path): Try to check /proc/self/exe
  642. first.
  643. 2011-05-20 Janne Blomqvist <jb@gcc.gnu.org>
  644. Uros Bizjak <ubizjak@gmail.com>
  645. PR libfortran/48977
  646. * configure.host: Swap order of glibc and x86 tests.
  647. 2011-05-20 Janne Blomqvist <jb@gcc.gnu.org>
  648. * config/fpu-387.h (set_fpu): Use renamed inexact macro.
  649. * config/fpu-aix.h (set_fpu): Clarify error messages, use renamed
  650. inexact macro, set TRP_INEXACT for inexact exception instead of
  651. TRP_UNDERFLOW.
  652. * config/fpu-generic.h (set_fpu): Clarify error messages, use
  653. renamed inexact macro.
  654. * config/fpu-glibc.h (set_fpu): Likewise.
  655. * config/fpu-sysv.h (set_fpu): Likewise.
  656. 2011-05-14 Tobias Burnus <burnus@net-b.de>
  657. * runtime/stop.c (error_stop_string, error_stop_numeric):
  658. Do not backtrace for ERROR STOP.
  659. 2011-05-14 Janne Blomqvist <jb@gcc.gnu.org>
  660. PR libfortran/48915
  661. * intrinsics/abort.c (abort): Call sys_abort().
  662. * io/unix.c (st_vprintf): Call sys_abort().
  663. * libgfortran.h (options_t): Remove dump_core member.
  664. (handler): Rename to backtrace_handler.
  665. (compile_options_t): Remove dump_core member.
  666. (sys_exit): Remove.
  667. (sys_abort): New function.
  668. * runtime/backtrace.c (show_backtrace): Print a message if
  669. backtrace is not available on target, update filter symbol name
  670. due to backtrace_handler renaming.
  671. * runtime/compile_options.c (backtrace_handler): New
  672. implementation based on example in Glibc manual.
  673. (set_options): Remove dump_core handling, make signal handler
  674. handle more signals.
  675. (init_compile_options): Remove dump_core.
  676. * runtime/environ.c (variable_table[]): Remove
  677. GFORTRAN_ERROR_DUMPCORE element.
  678. (show_variables): Update name, call exit().
  679. * runtime/error.c (sys_exit): Remove.
  680. (sys_abort): New function.
  681. (recursion_check): Call sys_abort().
  682. (os_error): Call exit().
  683. (runtime_error): Likewise.
  684. (runtime_error_at): Likewise.
  685. (internal_error): Likewise.
  686. (generate_error): Likewise.
  687. (notify_std): Likewise.
  688. * runtime/stop.c (stop_numeric): Call exit().
  689. (stop_numeric_f08): Likewise.
  690. (stop_string): Likewise.
  691. (error_stop_string): Call sys_abort().
  692. (error_stop_numeric): Print backtrace, exit with provided code.
  693. 2011-05-14 Janne Blomqvist <jb@gcc.gnu.org>
  694. * io/unix.c (st_vprintf,st_printf): Move to runtime/error.c.
  695. * libgfortran.h (struct options_t): Remove use_stderr field.
  696. (st_vprintf,st_printf): Move prototypes.
  697. (estr_write): New prototype.
  698. * runtime/error.c (sys_exit): Use estr_write instead of st_printf.
  699. (estr_write): New function.
  700. (st_vprintf): Move from io/unix.c, use stack allocated buffer,
  701. always output to stderr.
  702. (st_printf): Move from io/unix.c.
  703. (show_locus): Use a local variable instead of static.
  704. (os_error): Use estr_write instead of st_printf.
  705. (runtime_error): Likewise.
  706. (runtime_error_at): Likewise.
  707. (runtime_warning_at): Likewise.
  708. (internal_error): Likewise.
  709. (generate_error): Likewise.
  710. (generate_warning): Likewise.
  711. (notify_std): Likewise.
  712. * runtime/pause.c (do_pause): Likewise.
  713. (pause_string): Likewise.
  714. * runtime/stop.c (stop_string): Likewise.
  715. (error_stop_string): Likewise.
  716. * config/fpu_aix.h (set_fpu): Likewise.
  717. * config/fpu_generic.h (set_fpu): Likewise.
  718. * config/fpu_glibc.h (set_fpu): Likewise.
  719. * config/fpu-sysv.h (set_fpu): Likewise.
  720. * runtime/backtrace.c (dump_glibc_backtrace): Likewise.
  721. (show_backtrace): Likewise.
  722. * runtime/environ.c (print_spaces): Likewise.
  723. (show_string): Likewise.
  724. (show_variables): Likewise.
  725. (variable_table[]): Remove GFORTRAN_USE_STDERR entry.
  726. 2011-05-14 Tobias Burnus <burnus@net-b.de>
  727. PR fortran/48961
  728. * intrinsics/execute_command_line.c (set_cmdstat): Don't abort if
  729. synchronously executing with WAIT=.false.
  730. (execute_command_line): Fix setting of cmdstat and exitstat.
  731. 2011-05-06 Tobias Burnus <burnus@net-b.de>
  732. PR fortran/18918
  733. * caf/libcaf.h: Cleanup headers.
  734. (_gfortran_caf_critical, _gfortran_caf_end_critical): Make stub.
  735. (caf_register_t): New enum.
  736. (_gfortran_caf_register, _gfortran_caf_deregister): New prototype.
  737. * caf/single.c (_gfortran_caf_critical,
  738. _gfortran_caf_end_critical): Remove.
  739. (_gfortran_caf_register, _gfortran_caf_deregister): New functions.
  740. * caf/mpi.c (_gfortran_caf_critical,
  741. _gfortran_caf_end_critical): Remove.
  742. (_gfortran_caf_register, _gfortran_caf_deregister): New functions.
  743. (caf_world_window): Remove global variable.
  744. (_gfortran_caf_init): Fix off-by-one error of this_image.
  745. 2011-05-04 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  746. PR libgfortran/48787
  747. * io/write_float.def (output_float): Adjust up and down rounding for
  748. cases where 'd' = 0. Gather common code to one location.
  749. 2011-05-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  750. PR libgfortran/48787
  751. * io/write_float.def (output_float): Gather up integer declarations and
  752. add new 'p' for scale factor. Use 'p' in place of the 'dtp' reference
  753. everywhere. For ROUND_UP scan the digit string and only perform
  754. rounding if something other than '0' is found.
  755. 2011-04-29 Janne Blomqvist <jb@gcc.gnu.org>
  756. * io/unix.c (min): New macro.
  757. (unpack_filename): Return errno number for errors.
  758. (regular_file): Use appropriately sized buffer for path.
  759. (compare_file_filename): Likewise.
  760. (find_file): Likewise.
  761. (delete_file): Likewise.
  762. (file_exists): Likewise.
  763. (file_size): Likewise.
  764. (inquire_sequential): Likewise.
  765. (inquire_direct): Likewise.
  766. (inquire_formatted): Likewise.
  767. (inquire_access): Likewise.
  768. 2011-04-29 Janne Blomqvist <jb@gcc.gnu.org>
  769. PR libfortran/48488
  770. * io/write.c (write_real, write_real_g0): Update comments.
  771. 2011-04-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  772. Janne Blomqvist <jb@gcc.gnu.org>
  773. PR libgfortran/48488
  774. PR libgfortran/48602
  775. PR libgfortran/48615
  776. PR libgfortran/48684
  777. PR libgfortran/48787
  778. * io/write.c (write_d, write_e, write_f, write_en,
  779. write_es): Add precision compemsation parameter to call.
  780. (set_fnode_default): Adjust default widths to assure
  781. round trip on write and read. (write_real): Adjust call to write_float.
  782. (write_real_g0): Calculate compensation for extra precision and adjust
  783. call to write_float.
  784. * io/write_float.def (output_float_FMT_G_): Use volatile rather than
  785. asm volatile to avoid optimization issue. Correctly calculate the
  786. number of blanks (nb) to be appended and simplify calculation logic.
  787. (write_float): Increase MIN_FIELD_WIDTH by one to accomodate the new
  788. default widths. Eliminate the code that attempted to reduce the
  789. the precision used in later sprintf functions. Add call parameter to
  790. compensate for extra precision.
  791. 2011-04-20 Jim Meyering <meyering@redhat.com>
  792. * intrinsics/move_alloc.c (move_alloc): Remove useless
  793. if-before-free test.
  794. * io/fbuf.c (fbuf_destroy): Likewise.
  795. * io/format.c (save_parsed_format): Likewise.
  796. * io/open.c (already_open): Likewise.
  797. * io/unit.c (free_internal_unit, close_unit_1): Likewise.
  798. * io/unix.c (mem_close): Likewise.
  799. 2011-04-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  800. PR libgfortran/48602
  801. * io/write_float.def (output_float_FMT_G): Fix reversal in conditional.
  802. Use asm volatile to mark temp variable, avoiding optimization errors.
  803. 2011-04-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  804. PR libgfortran/48602
  805. * io/write_float.def (output_float_FMT_G): Use current rounding mode
  806. to set the rounding parameters. (output_float): Skip rounding
  807. if value is zero.
  808. 2011-04-16 Janne Blomqvist <jb@gcc.gnu.org>
  809. * intrinsics/date_and_time.c (date_and_time): Remove sprintf CPP
  810. branch.
  811. * io/format.c (format_error): Use snprintf instead of sprintf.
  812. * io/list_read.c: Move snprintf fallback macro to libgfortran.h.
  813. (convert_integer): Use snprintf instead of sprintf.
  814. (parse_repeat): Likewise.
  815. (read_logical): Likewise.
  816. (read_integer): Likewise.
  817. (read_character): Likewise.
  818. (parse_real): Likewise.
  819. (read_complex): Likewise.
  820. (read_real): Likewise.
  821. (check_type): Likewise.
  822. (nml_parse_qualifier): Add string length argument, use snprintf
  823. instead of sprintf.
  824. (nml_get_obj_data): Use snprintf instead of sprintf.
  825. * io/open.c (new_unit): Remove sprintf CPP branch, use snprintf
  826. instead of sprintf.
  827. * io/transfer.c (require_type): Use snprintf instead of sprintf.
  828. * io/unix.c (tempfile): Likewise.
  829. * io/write.c (nml_write_obj): Likewise.
  830. * io/write_float.def (output_float): Remove sprintf CPP branch,
  831. use snprintf instead of sprintf.
  832. * libgfortran.h: Add fallback snprintf macro from io/list_read.c.
  833. * runtime/backtrace.c (show_backtrace): Remove sprintf CPP branch.
  834. * runtime/main.c (store_exe_path): Use snprintf instead of
  835. sprintf.
  836. 2011-04-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  837. PR libgfortran/48589
  838. * io/write_float.def (write_infnan): Set width properly for G0.
  839. 2011-04-15 Tobias Burnus <burnus@net-b.de>
  840. PR fortran/18918
  841. * Makefile.am: Build and install caf/single.c as
  842. libcaf_single.a.
  843. * Makefile.in: Regenerate.
  844. 2011-04-15 Janne Blomqvist <jb@gcc.gnu.org>
  845. PR libfortran/47571
  846. * configure: Regenerated.
  847. * config.h.in: Regenerated.
  848. * acinclude.m4: Add alpha*-dec-osf* to gthread blacklist.
  849. * configure.ac: Use separate symbol for clock_gettime in librt.
  850. * intrinsics/system_clock.c: Use weakrefs only when needed and
  851. supported.
  852. 2011-04-12 Janne Blomqvist <jb@gcc.gnu.org>
  853. * configure.ac: Use AC_TYPE_* to make sure we have (u)intptr_t,
  854. check for ptrdiff_t.
  855. * libgfortran.h: Remove (u)intptr_t definitions, use ptrdiff_t for
  856. index_type, change cshift0* prototypes.
  857. * config.h.in: Regenerated.
  858. * configure: Regenerated.
  859. * intrinsics/cshift0.c (cshift0): Use ptrdiff_t instead of ssize_t.
  860. * io/io.h (array_loop_spec): Use index_type instead of ssize_t.
  861. * io/list_read.c (nml_parse_qualifier): Likewise.
  862. * io/write.c (nml_write_obj): Likewise.
  863. * m4/cshift0.c (cshift0_'rtype_code`): Likewise.
  864. * generated/cshift0_*.c: Regenerated.
  865. 2011-04-12 Janne Blomqvist <jb@gcc.gnu.org>
  866. * Makefile.am: Remove _GNU_SOURCE from AM_CPPFLAGS.
  867. * Makefile.in: Regenerated.
  868. 2011-04-06 Tobias Burnus <burnus@net-b.de>
  869. PR fortran/18918
  870. * caf/mpi.c (_gfortran_caf_init, _gfortran_caf_finalize):
  871. Add global variable caf_mpi_initialized and use it for when
  872. finalizing.
  873. 2011-04-04 Tobias Burnus <burnus@net-b.de>
  874. * unix.c: Adapt stat DEFINEs since MinGW64 supports LFS.
  875. (fallback_access, open_internal4, compare_file_filename,
  876. find_file, file_size, inquire_sequential, inquire_direct,
  877. inquire_formatted): Use "struct stat" instead of gfstat_t.
  878. 2011-03-27 Tobias Burnus <burnus@net-b.de>
  879. PR fortran/18918
  880. * caf/libcaf.h: New - coarray communication library.
  881. * caf/mpi.c: New.
  882. * caf/single.c: New.
  883. 2011-03-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  884. PR libgfortran/48030
  885. * io/read.c (read_x): Re-implement using fbuf_getc.
  886. 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  887. PR bootstrap/48135
  888. * configure.ac (gfortran_use_symver): Handle --disable-symvers.
  889. * configure: Regenerate.
  890. 2011-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  891. PR fortran/35667
  892. * io/io.h (convert_infnan): Declare.
  893. * io/read.c (convert_infnan): New.
  894. (read_f): Use convert_infnan to convert INFs and NANs.
  895. * list_read.c (parse_real, read_real): Likewise.
  896. 2011-03-19 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  897. PR libfortran/47439
  898. * io/unix.c (tempfile): Work around poor mktemp() implementations.
  899. 2011-03-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  900. PR libfortran/47883
  901. * acinclude.m4: Don't use AC_TRY_ macros.
  902. * configure.ac: Likewise.
  903. * configure: Regenerate.
  904. 2011-03-12 Thomas Koenig <tkoenig@gcc.gnu.org>
  905. PR libfortran/48066
  906. * m4/ifunction.m4: If return array is empty, return.
  907. * m4/ifunction_logical.m4: Likewise.
  908. * generated/all_l16.c: Regenerated.
  909. * generated/all_l1.c: Regenerated.
  910. * generated/all_l2.c: Regenerated.
  911. * generated/all_l4.c: Regenerated.
  912. * generated/all_l8.c: Regenerated.
  913. * generated/any_l16.c: Regenerated.
  914. * generated/any_l1.c: Regenerated.
  915. * generated/any_l2.c: Regenerated.
  916. * generated/any_l4.c: Regenerated.
  917. * generated/any_l8.c: Regenerated.
  918. * generated/count_16_l.c: Regenerated.
  919. * generated/count_1_l.c: Regenerated.
  920. * generated/count_2_l.c: Regenerated.
  921. * generated/count_4_l.c: Regenerated.
  922. * generated/count_8_l.c: Regenerated.
  923. * generated/maxloc1_16_i16.c: Regenerated.
  924. * generated/maxloc1_16_i1.c: Regenerated.
  925. * generated/maxloc1_16_i2.c: Regenerated.
  926. * generated/maxloc1_16_i4.c: Regenerated.
  927. * generated/maxloc1_16_i8.c: Regenerated.
  928. * generated/maxloc1_16_r10.c: Regenerated.
  929. * generated/maxloc1_16_r16.c: Regenerated.
  930. * generated/maxloc1_16_r4.c: Regenerated.
  931. * generated/maxloc1_16_r8.c: Regenerated.
  932. * generated/maxloc1_4_i16.c: Regenerated.
  933. * generated/maxloc1_4_i1.c: Regenerated.
  934. * generated/maxloc1_4_i2.c: Regenerated.
  935. * generated/maxloc1_4_i4.c: Regenerated.
  936. * generated/maxloc1_4_i8.c: Regenerated.
  937. * generated/maxloc1_4_r10.c: Regenerated.
  938. * generated/maxloc1_4_r16.c: Regenerated.
  939. * generated/maxloc1_4_r4.c: Regenerated.
  940. * generated/maxloc1_4_r8.c: Regenerated.
  941. * generated/maxloc1_8_i16.c: Regenerated.
  942. * generated/maxloc1_8_i1.c: Regenerated.
  943. * generated/maxloc1_8_i2.c: Regenerated.
  944. * generated/maxloc1_8_i4.c: Regenerated.
  945. * generated/maxloc1_8_i8.c: Regenerated.
  946. * generated/maxloc1_8_r10.c: Regenerated.
  947. * generated/maxloc1_8_r16.c: Regenerated.
  948. * generated/maxloc1_8_r4.c: Regenerated.
  949. * generated/maxloc1_8_r8.c: Regenerated.
  950. * generated/maxval_i16.c: Regenerated.
  951. * generated/maxval_i1.c: Regenerated.
  952. * generated/maxval_i2.c: Regenerated.
  953. * generated/maxval_i4.c: Regenerated.
  954. * generated/maxval_i8.c: Regenerated.
  955. * generated/maxval_r10.c: Regenerated.
  956. * generated/maxval_r16.c: Regenerated.
  957. * generated/maxval_r4.c: Regenerated.
  958. * generated/maxval_r8.c: Regenerated.
  959. * generated/minloc1_16_i16.c: Regenerated.
  960. * generated/minloc1_16_i1.c: Regenerated.
  961. * generated/minloc1_16_i2.c: Regenerated.
  962. * generated/minloc1_16_i4.c: Regenerated.
  963. * generated/minloc1_16_i8.c: Regenerated.
  964. * generated/minloc1_16_r10.c: Regenerated.
  965. * generated/minloc1_16_r16.c: Regenerated.
  966. * generated/minloc1_16_r4.c: Regenerated.
  967. * generated/minloc1_16_r8.c: Regenerated.
  968. * generated/minloc1_4_i16.c: Regenerated.
  969. * generated/minloc1_4_i1.c: Regenerated.
  970. * generated/minloc1_4_i2.c: Regenerated.
  971. * generated/minloc1_4_i4.c: Regenerated.
  972. * generated/minloc1_4_i8.c: Regenerated.
  973. * generated/minloc1_4_r10.c: Regenerated.
  974. * generated/minloc1_4_r16.c: Regenerated.
  975. * generated/minloc1_4_r4.c: Regenerated.
  976. * generated/minloc1_4_r8.c: Regenerated.
  977. * generated/minloc1_8_i16.c: Regenerated.
  978. * generated/minloc1_8_i1.c: Regenerated.
  979. * generated/minloc1_8_i2.c: Regenerated.
  980. * generated/minloc1_8_i4.c: Regenerated.
  981. * generated/minloc1_8_i8.c: Regenerated.
  982. * generated/minloc1_8_r10.c: Regenerated.
  983. * generated/minloc1_8_r16.c: Regenerated.
  984. * generated/minloc1_8_r4.c: Regenerated.
  985. * generated/minloc1_8_r8.c: Regenerated.
  986. * generated/minval_i16.c: Regenerated.
  987. * generated/minval_i1.c: Regenerated.
  988. * generated/minval_i2.c: Regenerated.
  989. * generated/minval_i4.c: Regenerated.
  990. * generated/minval_i8.c: Regenerated.
  991. * generated/minval_r10.c: Regenerated.
  992. * generated/minval_r16.c: Regenerated.
  993. * generated/minval_r4.c: Regenerated.
  994. * generated/minval_r8.c: Regenerated.
  995. * generated/product_c10.c: Regenerated.
  996. * generated/product_c16.c: Regenerated.
  997. * generated/product_c4.c: Regenerated.
  998. * generated/product_c8.c: Regenerated.
  999. * generated/product_i16.c: Regenerated.
  1000. * generated/product_i1.c: Regenerated.
  1001. * generated/product_i2.c: Regenerated.
  1002. * generated/product_i4.c: Regenerated.
  1003. * generated/product_i8.c: Regenerated.
  1004. * generated/product_r10.c: Regenerated.
  1005. * generated/product_r16.c: Regenerated.
  1006. * generated/product_r4.c: Regenerated.
  1007. * generated/product_r8.c: Regenerated.
  1008. * generated/sum_c10.c: Regenerated.
  1009. * generated/sum_c16.c: Regenerated.
  1010. * generated/sum_c4.c: Regenerated.
  1011. * generated/sum_c8.c: Regenerated.
  1012. * generated/sum_i16.c: Regenerated.
  1013. * generated/sum_i1.c: Regenerated.
  1014. * generated/sum_i2.c: Regenerated.
  1015. * generated/sum_i4.c: Regenerated.
  1016. * generated/sum_i8.c: Regenerated.
  1017. * generated/sum_r10.c: Regenerated.
  1018. * generated/sum_r16.c: Regenerated.
  1019. * generated/sum_r4.c: Regenerated.
  1020. * generated/sum_r8.c: Regenerated.
  1021. 2011-03-11 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  1022. PR libgfortran/48047
  1023. * io/write_float.def (write_float): Change MIN_FIELD_WIDTH to 48.
  1024. 2011-03-04 Janne Blomqvist <jb@gcc.gnu.org>
  1025. PR libfortran/47802
  1026. * intrinsics/ctime.c (strctime): Use builtins to check localtime_r
  1027. return type.
  1028. 2011-03-04 Janne Blomqvist <jb@gcc.gnu.org>
  1029. PR libfortran/47802
  1030. * intrinsics/ctime.c (strctime): Don't use return value of
  1031. localtime_r.
  1032. 2011-02-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  1033. PR libgfortran/47567
  1034. * io/write_float.def (output_float): Move handling of w = 0 to after
  1035. output rounding. Check for zero and set zero_flag accordingly. Set
  1036. width according to zero_flag. Add better comments.
  1037. 2011-02-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  1038. PR libgfortran/47778
  1039. * io/list_read.c (namelist_read): Intialize the error string buffere.
  1040. If pprev_nl was used during the previous namelist read and the rank
  1041. was zero, reset the pointer to NULL for the next namelist read.
  1042. 2011-02-26 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  1043. PR libfortran/45165
  1044. * unix.c (fallback_access): Fix file descriptor leaks.
  1045. 2011-02-25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  1046. * acinclude.m4 (LIBGFOR_CHECK_FPSETMASK): Set shell variable
  1047. tested in configure.host.
  1048. * configure: Regenerate.
  1049. 2011-02-24 Janne Blomqvist <jb@gcc.gnu.org>
  1050. PR libfortran/47802
  1051. * config.h.in: Regenerated.
  1052. * configure: Regenerated.
  1053. * configure.ac: Remove checks for ctime and ctime_r, add check for
  1054. strftime.
  1055. * intrinsics/date_and_time.c (localtime_r): Move fallback
  1056. implementation to time_1.h.
  1057. * intrinsics/time_1.h (localtime_r): Fallback implementation.
  1058. * intrinsics/ctime.c: Include time_1.h.
  1059. (ctime_r): Remove fallback implementation.
  1060. (strctime): New function.
  1061. (fdate): Use strctime instead of ctime_r.
  1062. (fdate_sub): Likewise.
  1063. (ctime): Likewise.
  1064. (ctime_sub): Likewise.
  1065. 2011-02-24 Jakub Jelinek <jakub@redhat.com>
  1066. PR fortran/47878
  1067. * io/transfer.c (read_sf): Call fbuf_getptr only at the end,
  1068. and subtract n, dtp->u.p.sf_seen_eor and seen_comma from it.
  1069. 2011-02-24 Janne Blomqvist <jb@gcc.gnu.org>
  1070. PR libfortran/47802
  1071. * configure.ac: Add test for POSIX getpwuid_r.
  1072. * intrinsics/getlog.c (getlog): CPP test for
  1073. HAVE_POSIX_GETPWUID_R.
  1074. * config.h.in: Regenerated.
  1075. * configure: Regenerated.
  1076. 2011-02-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  1077. PR libgfortran/47567
  1078. * io/write_float.def (output_float): Remove special case handling of
  1079. zero with width 1.
  1080. 2011-02-23 Janne Blomqvist <jb@gcc.gnu.org>
  1081. Jerry DeLisle <jvdelisle@gcc.gnu.org>
  1082. PR libfortran/47694
  1083. * io/fbuf.h (fbuf_getptr): New inline function.
  1084. * io/transfer.c (read_sf): Use fbuf_getptr and fbuf_getc to scan
  1085. through the string instead of fbuf_read.
  1086. 2011-02-22 Tobias Burnus <burnus@net-b.de>
  1087. Kai-Uwe Eckhardt <kuehro@gmx.de>
  1088. PR libfortran/47830
  1089. * intrinsics/c99_functions.c (roundl): Make C valid for
  1090. HAVE_NEXTAFTERL.
  1091. 2011-02-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  1092. PR libgfortran/47567
  1093. * io/write_float.def (output_float): Adjust width for F0.d to
  1094. allow space for negative signs on zero.
  1095. 2011-02-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  1096. PR libgfortran/47667
  1097. * io/list_read.c (read_logical): Check for end of line before calling
  1098. eat_line. (read_integer): Likewise. (parse_real): Don't unget the
  1099. separator. Check for end of line before calling eat_line.
  1100. (read_complex): Allow line-end before and after parenthesis and comma.
  1101. Check for end of line before calling eat_line. (read_real): Check for
  1102. end of line before calling eat_line.
  1103. 2011-02-16 Jakub Jelinek <jakub@redhat.com>
  1104. PR libfortran/47757
  1105. * gfortran.map (GFORTRAN_1.4): Export
  1106. _gfortran_{m,s}i{all,any,parity}_i{1,2,4,8,16} and
  1107. _gfortran_{cshift0,eoshift{0,2}}_16_char4.
  1108. 2011-02-15 Tobias Burnus <burnus@net-b.de>
  1109. PR fortran/47716
  1110. PR fortran/47648
  1111. * acinclude.m4 (LIBGFOR_CHECK_FLOAT128): Use check from
  1112. libquadmath, which uses more features.
  1113. * configure: Regenerate.
  1114. 2011-02-14 Jakub Jelinek <jakub@redhat.com>
  1115. PR fortran/47642
  1116. * io/write_float.def (DTOAQ): Use quadmath_snprintf instead of
  1117. quadmath_flt128tostr.
  1118. * io/transfer128.c (tmp2): Initialize to quadmath_snprintf instead
  1119. of quadmath_flt128tostr.
  1120. 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  1121. * Makefile.in: Regenerate.
  1122. * aclocal.m4: Likewise.
  1123. * configure: Likewise.
  1124. 2011-02-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  1125. PR libgfortran/47567
  1126. * io/write_float.def (output_float): Eliminate some redundant code.
  1127. Adjust width for case of F0.X for values of zero and all other values.
  1128. Expand cases where '*' is set to give cleaner results.
  1129. 2011-02-05 Janne Blomqvist <jb@gcc.gnu.org>
  1130. PR libfortran/47571
  1131. * intrinsics/time_1.h (GF_CLOCK_MONOTONIC): Move to system_clock.c.
  1132. (weak_gettime): Likewise.
  1133. (gf_gettime): Change API, move weak_gettime() usage to
  1134. system_clock.c
  1135. * intrinsics/system_clock.c (GTHREAD_USE_WEAK): Define.
  1136. (gf_gettime_mono): New function.
  1137. (system_clock_4): Use gf_gettime_mono().
  1138. (system_clock_8): Likewise.
  1139. * intrinsics/date_and_time.c (date_and_time): Update gf_gettime()
  1140. usage.
  1141. 2011-02-02 Janne Blomqvist <jb@gcc.gnu.org>
  1142. PR libfortran/47571
  1143. * configure: Regenerated.
  1144. * configure.ac: Don't add librt to LIBS.
  1145. * intrinsics/time_1.h (weak_gettime): Weakref trickery for
  1146. clock_gettime().
  1147. (gf_gettime): Use weak_gettime() instead of clock_gettime().
  1148. 2011-02-01 Janne Blomqvist <jb@gcc.gnu.org>
  1149. * intrinsics/time_1.h: Include errno.h needed by fallbacks.
  1150. 2011-01-31 Janne Blomqvist <jb@gcc.gnu.org>
  1151. * intrinsics/time_1.h: Fix definition of GF_CLOCK_MONOTONIC macro.
  1152. 2011-01-31 Janne Blomqvist <jb@gcc.gnu.org>
  1153. * configure.ac: Check for clock_gettime().
  1154. * configure: Regenerated.
  1155. * config.h.in: Regenerated.
  1156. * intrinsics/time_1.h (__time_1): Rename to gf_cputime, add
  1157. times() fallback.
  1158. (gf_gettime): New function.
  1159. * intrinsics/cpu_time.c (__cpu_time_1): Update to call gf_cputime.
  1160. * intrinsics/date_and_time.c (date_and_time): Use gf_gettime.
  1161. * intrinsics/dtime.c (dtime_sub): Use gf_cputime.
  1162. * intrinsics/etime.c (etime_sub): Use gf_cputime.
  1163. * intrinsics/system_clock.c (system_clock_4): Use gf_gettime.
  1164. (system_clock_8): Use gf_gettime, increase count rate to allow
  1165. nanosecond precision, remove overflow prone branch.
  1166. 2011-01-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  1167. PR libgfortran/47434
  1168. * io/write_float.def (write_infnan): Use calculate_sign to determine
  1169. if the sign should be given and check field widths accordingly.
  1170. 2011-01-29 Kai Tietz <kai.tietz@onevision.com>
  1171. * intrinsics/ctime.c (ctime_r): Improve implementation.
  1172. 2011-01-27 Janne Blomqvist <jb@gcc.gnu.org>
  1173. PR libfortran/47431
  1174. * config.h.in: Regenerated.
  1175. * configure: Regenerated.
  1176. * configure.ac: Add check for ctime_r().
  1177. * intrinsics/ctime.c (ctime_r): Fallback implementation.
  1178. (fdate): Use ctime_r() instead of ctime().
  1179. (fdate_sub): Likewise.
  1180. (ctime): Likewise.
  1181. (ctime_sub): Likewise.
  1182. 2011-01-27 Janne Blomqvist <jb@gcc.gnu.org>
  1183. PR libfortran/47432
  1184. * config.h.in: Regenerated.
  1185. * configure: Regenerated.
  1186. * configure.ac: Add check for ttyname_r.
  1187. * io/unix.h: Add TTY_NAME_MAX, change stream_ttyname prototype.
  1188. * io/unix.c (stream_ttyname): Use ttyname_r if available, conform
  1189. to new prototype.
  1190. * io/inquire.c (inquire_via_unit): Use changed stream_ttyname.
  1191. * io/intrinsics.c (ttynam_sub): Likewise.
  1192. (ttynam): Likewise.
  1193. 2011-01-27 Janne Blomqvist <jb@gcc.gnu.org>
  1194. PR libfortran/47491
  1195. * configure.ac: Call AC_USE_SYSTEM_EXTENSIONS to enable common
  1196. extensions.
  1197. * config.h.in: Regenerate.
  1198. * configure: Regenerate.
  1199. 2011-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  1200. PR libgfortran/47285
  1201. * io/write_float.def (write_infnan): Adjust processor selected width
  1202. to 3 if NaN.
  1203. 2011-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  1204. PR libgfortran/47285
  1205. * io/write_float.def (output_float): Return SUCCESS or FAILURE and use
  1206. the result to set the padding.
  1207. 2011-01-26 Kai Tietz <kai.tietz@onevision.com>
  1208. * intrinsics/getlog.c (getlog): Fix label/statement issue.
  1209. 2011-01-25 Janne Blomqvist <jb@gcc.gnu.org>
  1210. PR libfortran/47375
  1211. * config.h.in: Regenerated.
  1212. * configure: Regenerated.
  1213. * configure.ac: Add check for getpwuid_r.
  1214. * intrinsics/getlog.c (getlog): Use getpwuid_r() if available.
  1215. 2011-01-22 Janne Blomqvist <jb@gcc.gnu.org>
  1216. PR libfortran/46267
  1217. * config.h.in: Regenerated.
  1218. * configure: Regenerated.
  1219. * configure.ac: Check presence of strerror_r.
  1220. * intrinsics/gerror.c (gerror): Use gf_strerror, modify logic.
  1221. * io/unix.c (get_oserror): Remove.
  1222. * libgfortran.h (gf_strerror): Add prototype.
  1223. (get_oserror): Remove prototype.
  1224. * runtime/error.c (gf_strerror): New function.
  1225. (os_error): Use gf_strerror instead of get_oserror.
  1226. (generate_errror): Likewise.
  1227. 2011-01-17 Janne Blomqvist <jb@gcc.gnu.org>
  1228. PR libfortran/47296
  1229. * io/unix.c (tempfile): Set opp->file and opp->file_len also if an
  1230. error occurs.
  1231. 2011-01-16 Jakub Jelinek <jakub@redhat.com>
  1232. PR fortran/46625
  1233. * io/write_float.def (DTOAQ): Use quadmath_flt128tostr
  1234. instead of quadmath_dtoa.
  1235. * io/transfer128.c (tmp1, tmp2): New variables, bring in
  1236. strtoflt128 and quadmath_flt128tostr.
  1237. (transfer_real128, transfer_real128_write, transfer_complex128,
  1238. transfer_complex128_write): Remove tmp1/tmp2 variables.
  1239. * io/read.c (convert_real): Use strtoflt128 instead of
  1240. quadmath_strtopQ, adjust for the changed arguments and return
  1241. value.
  1242. 2011-01-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  1243. PR libgfortran/47296
  1244. * io/unix.c (unpack_filename): Return non-zero if the filename passed
  1245. in is NULL.
  1246. 2011-01-04 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  1247. PR libgfortran/47154
  1248. * io/list_read.c (namelist_read): Remove calls to hit_eof to avoid the
  1249. duplicate calls via next_record.
  1250. Copyright (C) 2011 Free Software Foundation, Inc.
  1251. Copying and distribution of this file, with or without modification,
  1252. are permitted in any medium without royalty provided the copyright
  1253. notice and this notice are preserved.