ChangeLog-2008 96 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533
  1. 2008-12-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  2. PR fortran/31832
  3. * acinclude.m4 (LIBGFOR_CHECK_FOR_BROKEN_POWF): New autoconf check for
  4. broken powf.
  5. * configure.ac (LIBGFOR_CHECK_FOR_BROKEN_POWF): Use it.
  6. * intrinsics/c99_functions.c: Use internal powf implementation if
  7. HAVE_BROKEN_POWF is defined.
  8. * configure: Rebuilt.
  9. * config.h.in: Rebuilt.
  10. 2008-12-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  11. PR libfortran/37472
  12. * io/write_float.def (output_float_FMT_G_): Modify calculation of temp
  13. to avoid sensitivity to round-off.
  14. 2008-12-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  15. PR libfortran/38398
  16. * io/io.h (st_parameter_dt): Add new bit to keep track of when to
  17. suppress blanks for g0 formatting.
  18. * io/transfer.c (formatted_transfer_scalar): Always call write_real_g0
  19. for g0 formatting.
  20. * io.c (write.c): Do not use ES formatting and use new bit to suppress
  21. blanks.
  22. * io/write_float.def (output_float): Adjust the location of setting the
  23. width so that it can be adjusted when suppressing blanks. Set number of
  24. blanks to zero when dtp->u.p.g0_no_blanks is set. Do some minor code
  25. clean-up and add some white space for readability.
  26. 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  27. * configure: Regenerate.
  28. 2008-12-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  29. PR libfortran/38504
  30. io/write.c (write_decimal): Skip extra sign '-' at beginning of string
  31. returned by gfc_itoa.
  32. 2008-12-08 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  33. PR libfortran/38430
  34. * io/transfer.c (data_transfer_init): Move constraint check for REC=
  35. and STREAM access into condition for other REC= constraints to simplify.
  36. Comment out this constraint to avoid breaking compatibility with 4.3
  37. until later. Added a TODO for above comment and this one.
  38. Fix test for max pos.
  39. 2008-12-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  40. PR libfortran/38291
  41. * io/transfer.c (data_transfer_init): Add fbuf_flush inadvertently
  42. ommitted. Add check for invalid use of REC= with ACCESS="stream". Fix
  43. comment.
  44. 2008-12-06 Adam Nemet <anemet@caviumnetworks.com>
  45. * runtime/main.c (store_exe_path): Don't crash if argv0 is NULL.
  46. 2008-12-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  47. PR libfortran/38291
  48. * io/transfer.c (data_transfer_init): Add checks for POS= valid range.
  49. Add check for unit opened with ACCESS="stream". Flush and seek if
  50. current stream position does not match. Check ENDFILE on read.
  51. 2008-12-04 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  52. PR fortran/38285
  53. * write_float.def (WRITE_FLOAT): Zero the float value for special case
  54. only if scale_factor = 0.
  55. 2008-11-23 Thomas Koenig <tkoenig@gcc.gnu.org>
  56. PR libfortran/38234
  57. * intrinsics/reshape_generic.c (reshape_internal):
  58. Source can be larger than shape.
  59. * m4/reshape.m4: Likewise.
  60. * generated/reshape_c10.c Regenerated.
  61. * generated/reshape_c16.c Regenerated.
  62. * generated/reshape_c4.c Regenerated.
  63. * generated/reshape_c8.c Regenerated.
  64. * generated/reshape_i16.c Regenerated.
  65. * generated/reshape_i4.c Regenerated.
  66. * generated/reshape_i8.c Regenerated.
  67. * generated/reshape_r10.c Regenerated.
  68. * generated/reshape_r16.c Regenerated.
  69. * generated/reshape_r4.c Regenerated.
  70. * generated/reshape_r8.c Regenerated.
  71. 2008-11-22 Danny Smith <dannysmith@users.sourceforge.net>
  72. * libgfortran.h (__mingw_snprintf): Declare with gnu_printf
  73. format attribute.
  74. 2008-11-22 Thomas Koenig <tkoenig@gcc.gnu.org>
  75. PR libfortran/38225
  76. * intrinsics/reshape_generic.c (reshape_internal):
  77. Use all dimensions of source for bounds checking.
  78. * m4/reshape.m4: Likewise.
  79. * generated/reshape_c10.c Regenerated.
  80. * generated/reshape_c16.c Regenerated.
  81. * generated/reshape_c4.c Regenerated.
  82. * generated/reshape_c8.c Regenerated.
  83. * generated/reshape_i16.c Regenerated.
  84. * generated/reshape_i4.c Regenerated.
  85. * generated/reshape_i8.c Regenerated.
  86. * generated/reshape_r10.c Regenerated.
  87. * generated/reshape_r16.c Regenerated.
  88. * generated/reshape_r4.c Regenerated.
  89. * generated/reshape_r8.c Regenerated.
  90. 2008-11-22 Jakub Jelinek <jakub@redhat.com>
  91. PR libfortran/37839
  92. * io/io.h (IOPARM_INQUIRE_HAS_ROUND, IOPARM_INQUIRE_HAS_SIGN,
  93. IOPARM_INQUIRE_HAS_PENDING): Adjust values.
  94. (st_parameter_inquire): Reorder and fix types of round, sign and
  95. pending fields.
  96. (st_parameter_43, st_parameter_44): Removed.
  97. (st_parameter_dt): Put back struct definition directly to u.p
  98. declaration. Change type of u.p.size_used from gfc_offset to
  99. GFC_IO_INT. Decrease back size of u.pad to 16 pointers and
  100. 32 ints. Put id, pos, asynchronous, blank, decimal, delim,
  101. pad, round and sign fields after the union.
  102. * io/inquire.c (inquire_via_unit, inquire_via_filename): Only read
  103. flags2 if it is defined.
  104. * io/transfer.c (read_sf, read_block_form, write_block): Cast
  105. additions to size_used to GFC_IO_INT instead of gfc_offset.
  106. (data_transfer_init): Clear whole u.p struct. Adjust
  107. for moving id, pos, asynchronous, blank, decimal, delim, pad,
  108. round and sign fields from u.p directly into st_parameter_dt.
  109. (finalize_transfer): Don't cast size_used to GFC_IO_INT.
  110. * io/file_pos.c (st_endfile): Clear whole u.p struct.
  111. 2008-11-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  112. PR libfortran/37472
  113. * io/write_float.def (output_float_FMT_G_): Adjust conversion of
  114. G format specification to F format.
  115. 2008-11-18 Thomas Koenig <tkoenig@gcc.gnu.org>
  116. PR libfortran/38135
  117. * m4/reshape.m4: Correct bounds checking when PAD is present.
  118. Treat PAD as if it were SOURCE when SOURCE is empty.
  119. * intrinsics/reshape_generic.c: Likewise.
  120. * generated/reshape_c10.c Regenerated.
  121. * generated/reshape_c16.c Regenerated.
  122. * generated/reshape_c4.c Regenerated.
  123. * generated/reshape_c8.c Regenerated.
  124. * generated/reshape_i16.c Regenerated.
  125. * generated/reshape_i4.c Regenerated.
  126. * generated/reshape_i8.c Regenerated.
  127. * generated/reshape_r10.c Regenerated.
  128. * generated/reshape_r16.c Regenerated.
  129. * generated/reshape_r4.c Regenerated.
  130. * generated/reshape_r8.c Regenerated.
  131. 2008-11-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  132. PR libfortran/38097
  133. * io/read.c (read_f): Initialize exponent. Fix comment. Set loop
  134. conditions for BZ/BN.
  135. * io/unit.c (get_internal_unit): Initialize flags.blank.
  136. * io/transfer.c (data_transfer_init): Fix whitespace.
  137. 2008-11-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  138. PR libfortran/37294
  139. * io/write.c (namelist_write_newline): Use array loop specification to
  140. advance to next internal array unit record. (namelist_write): Adjust to
  141. accomodate the internal array unit behavior.
  142. 2008-11-01 Dennis Wassel <dennis.wassel@gmail.com>
  143. PR fortran/37159
  144. * intrinsics/random.c: Added comment to adapt check.c, should
  145. kiss_size change.
  146. Few cosmetic changes to existing comments.
  147. 2008-10-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  148. PR libfortran/37707
  149. * io/list_read.c (read_character): Remove code to look ahead in namelist
  150. reads to descriminate non-delimited strings from namelist objects.
  151. * io/write.c (namelist_write): Delimit character strings with quote or
  152. apostrophe, defaulting to quote.
  153. 2008-10-21 Thomas Koenig <tkoenig@gcc.gnu.org>
  154. PR libfortran/34670
  155. * intrinsics/transpose_generic.c: Implement bounds checking.
  156. * m4/transpose.m4: Likewise.
  157. * generated/transpose_c8.c: Regenerated.
  158. * generated/transpose_c16.c: Regenerated.
  159. * generated/transpose_r10.c: Regenerated.
  160. * generated/transpose_i8.c: Regenerated.
  161. * generated/transpose_c10.c: Regenerated.
  162. * generated/transpose_r4.c: Regenerated.
  163. * generated/transpose_c4.c: Regenerated.
  164. * generated/transpose_i16.c: Regenerated.
  165. * generated/transpose_i4.c: Regenerated.
  166. * generated/transpose_r8.c: Regenerated.
  167. * generated/transpose_r16.c: Regenerated.
  168. 2008-10-19 Jerry DeLisle <jvdelisle@gcc.gnu.org
  169. PR libfortran/37834
  170. * io/write_float.def (output_float): Emit '0.' for special case of
  171. format specifier 'f0.0' and value of zero. Likewise emit '0' for 'f1.0'.
  172. 2008-10-17 Jerry DeLisle <jvdelisle@gcc.gnu.org
  173. PR libfortran/37863
  174. * io/write_float.def (WRITE_FLOAT): Round to 1.0 correctly.
  175. * io/io.h (st_parameter_44): Fix id type declaration.
  176. 2008-10-16 Thomas Koenig <tkoenig@gcc.gnu.org>
  177. * io/file_pos.c (unformatted_backspace): Normal case is
  178. GFC_CONVERT_NATIVE.
  179. * io/transfer.c (read_sf): Mark paths leading to generate_error()
  180. as unlikely.
  181. (readl_block_form): Likewise.
  182. (read_block_direct): Likewise.
  183. (write_block): Likewise.
  184. (write_buf): Likewise.
  185. (us_read): Likewise. Normal case is GFC_CONVERT_NATIVE.
  186. (next_record_w_unf): Mark paths leading to generate_error()
  187. as unlikely.
  188. 2008-10-16 Thomas Koenig <tkoenig@gcc.gnu.org>
  189. PR libfortran/34670
  190. * generated/spread_r4.c: Regenerated.
  191. 2008-10-15 Thomas Koenig <tkoenig@gcc.gnu.org>
  192. PR libfortran/34670
  193. * intrinsics/reshape_generic.c: Add bounds checking.
  194. * m4/reshape.m4: Likewise.
  195. * generated/reshape_c10.c: Regenerated.
  196. * generated/reshape_c16.c: Regenerated.
  197. * generated/reshape_c4.c: Regenerated.
  198. * generated/reshape_c8.c: Regenerated.
  199. * generated/reshape_i16.c: Regenerated.
  200. * generated/reshape_i4.c: Regenerated.
  201. * generated/reshape_i8.c: Regenerated.
  202. * generated/reshape_r10.c: Regenerated.
  203. * generated/reshape_r16.c: Regenerated.
  204. * generated/reshape_r4.c: Regenerated.
  205. * generated/reshape_r8.c: Regenerated.
  206. * generated/spread_r4.c: Regenerated.
  207. 2008-10-13 Jerry DeLisle <jvdelisle@gcc.gnu.org
  208. PR libfortran/37083
  209. * io/list_read.c (next_char): Simplify EOF tests and set endfile flag.
  210. (finish_list_read): Add EOF check.
  211. 2008-10-09 Thomas Koenig <tkoenig@gcc.gnu.org>
  212. PR libfortran/37753
  213. * io/transfer.c (unformatted_read): CONVERT_NATIVE
  214. is the usual case. Check for kind==1 for non-byte-reversing
  215. operation.
  216. (unformatted_write): Likewise.
  217. 2008-10-08 Jerry DeLisle <jvdelisle@gcc.gnu.org
  218. PR libfortran/37707
  219. * io/list_read.c (nml_get_obj_data): If the first namelist object rank
  220. is greater than zero, call nml_object_read with the first object rather
  221. than the sub-object.
  222. 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
  223. Steve Ellcey <sje@cup.hp.com>
  224. * configure: Regenerate for new libtool.
  225. * Makefile.in: Ditto.
  226. 2008-09-25 Jerry DeLisle <jvdelisle@gcc.gnu.org
  227. PR libfortran/37498
  228. * list_read.c (eat_separator): Revert previous patch and move
  229. delim_status, decimal_status, and pad_status to gfc_unit.
  230. (parse_real): Ditto. (read_real): Ditto.
  231. * read.c (read_a): Likewise. (read_a_char4): Likewise.
  232. (read_f): Likewise.
  233. * inquire.c (inquire_via_unit): Add missing check for
  234. IOPARM_INQUIRE_HAS_FLAGS2. (inquire_via_filename): Likewise.
  235. * io.h (unit_sign_s): Move delim_status, decimal_status, and pad_status
  236. to gfc_unit.
  237. * transfer.c (read_sf): Ditto. (read_block_form): Ditto.
  238. (formatted_transfer_scalar): Ditto. (data_transfer_init): Ditto.
  239. * write.c (write_default_char4): Ditto. (write_utf8_char4): Ditto.
  240. (write_character): Ditto. (write_real_g0): Ditto.
  241. (list_formatted_write_scalar): Ditto. (nml_write_obj): Ditto.
  242. (namelist_write): Ditto.
  243. * write_float.def (calculate_sign): Ditto. (output_float): Ditto.
  244. 2008-09-24 Tobias Burnus <burnus@net-b.de>
  245. * runtime/compile_options.c (init_compile_options):
  246. Sync flags with front end.
  247. 2008-09-22 Jerry DeLisle <jvdelisle@gcc.gnu.org
  248. PR libfortran/37498
  249. * file_pos (st_endfile): Clear memory only for libfortran 4.3 private
  250. area.
  251. * list_read.c (eat_separator): Only access F2003 I/O parameters if
  252. IOPARM_DT_HAS_F2003 bit is set. (parse_real): Ditto.
  253. (read_real): Ditto.
  254. * read.c (read_a): Likewise. (read_a_char4): Likewise though not
  255. strictly necessary. (read_f): Likewise.
  256. * io.h (unit_sign_s): New enumerator to allow duplication of
  257. st_parameter structures. (IOPARM_DT_HAS_F2003): New mask bit.
  258. (st_parameter_43): New structure copied from 4.3 version of
  259. st_paramater_dt private section. (st_parameter_44): New structure with
  260. F2003 items added. (st_parameter_dt): Modified to create union of new
  261. and old structures to allow correct memory setting for 4.3 ABI
  262. compatibility. Bumped the pad size.
  263. * transfer.c (read_sf): Do not use F2003 I/O memory areas unless
  264. IOPARM_DT_HAS_F2003 bit has been set. (read_block_form): Ditto.
  265. (formatted_transfer_scalar): Ditto. (data_transfer_init): Ditto and
  266. add comment, fix formatting.
  267. * write.c (write_default_char4): Likewise though not strictly necessary.
  268. (write_utf8_char4): Ditto. (write_character): Ditto.
  269. (write_real_g0): Ditto. (list_formatted_write_scalar): Ditto.
  270. (nml_write_obj): Ditto. (namelist_write): Ditto.
  271. * write_float.def (calculate_sign): Eliminate warning by including all
  272. cases in switch. (output_float): Output only decimal point of F2003 flag
  273. is not set.
  274. 2008-09-10 Tobias Burnus <burnus@net-b.de>
  275. H. J. Lu <hongjiu.lu@intel.com>
  276. * mk-sik-inc.sh: Make -Wunused-variable proof.
  277. * mk-srk-inc.sh: Make -Wunused-variable proof.
  278. 2008-09-10 Tobias Burnus <burnus@net-b.de>
  279. * mk-kinds-h.sh: Make -Wunused-variable proof.
  280. 2008-09-07 Thomas Koenig <tkoenig@gcc.gnu.org>
  281. PR fortran/37203
  282. * intrinsics/reshape_generic.c: Add checking on
  283. out-of-bounds and duplicate values of order argument.
  284. * m4/reshape.m4: Likewise.
  285. * generated/reshape_c10.c: Regenerated.
  286. * generated/reshape_c16.c: Regenerated.
  287. * generated/reshape_c4.c: Regenerated.
  288. * generated/reshape_c8.c: Regenerated.
  289. * generated/reshape_i16.c: Regenerated.
  290. * generated/reshape_i4.c: Regenerated.
  291. * generated/reshape_i8.c: Regenerated.
  292. * generated/reshape_r10.c: Regenerated.
  293. * generated/reshape_r16.c: Regenerated.
  294. * generated/reshape_r4.c: Regenerated.
  295. * generated/reshape_r8.c: Regenerated.
  296. 2008-09-06 Tobias Burnus <burnus@net-b.de>
  297. * libgfortran.h (likely,unlikely): New makros.
  298. (runtime_warning_at,__mingw_snprintf): Add __attribute__(format()).
  299. * m4/spread.m4 (spread_'rtype_code`): Use unlikely for bounds_check.
  300. * m4/iforeach.m4 (name`'rtype_qual`_'atype_code): Ditto.
  301. * m4/matmull.m4 (matmul_'rtype_code`): Ditto.
  302. * m4/ifunction_logical.m4 (name`'rtype_qual`_'atype_code): Ditto.
  303. * m4/ifunction.m4 (name`'rtype_qual`_'atype_code): Ditto.
  304. * m4/matmul.m4 (matmul_'rtype_code`): Ditto.
  305. * generated/minval_r8.c: Regenerated.
  306. * generated/spread_r10.c: Regenerated.
  307. * generated/minloc1_16_r16.c: Regenerated.
  308. * generated/maxloc1_4_r8.c: Regenerated.
  309. * generated/sum_i8.c: Regenerated.
  310. * generated/any_l16.c: Regenerated.
  311. * generated/spread_i8.c: Regenerated.
  312. * generated/maxval_i2.c: Regenerated.
  313. * generated/any_l2.c: Regenerated.
  314. * generated/product_r4.c: Regenerated.
  315. * generated/maxloc1_8_i4.c: Regenerated.
  316. * generated/maxloc0_4_r4.c: Regenerated.
  317. * generated/all_l1.c: Regenerated.
  318. * generated/matmul_r8.c: Regenerated.
  319. * generated/product_i2.c: Regenerated.
  320. * generated/minloc0_4_r16.c: Regenerated.
  321. * generated/minloc0_4_i1.c: Regenerated.
  322. * generated/maxloc0_4_r16.c: Regenerated.
  323. * generated/maxloc0_4_i2.c: Regenerated.
  324. * generated/minloc1_8_r16.c: Regenerated.
  325. * generated/maxloc1_8_r16.c: Regenerated.
  326. * generated/maxloc0_8_i8.c: Regenerated.
  327. * generated/sum_r16.c: Regenerated.
  328. * generated/sum_i1.c: Regenerated.
  329. * generated/minloc1_4_r8.c: Regenerated.
  330. * generated/maxloc1_16_r16.c: Regenerated.
  331. * generated/minloc1_16_i4.c: Regenerated.
  332. * generated/maxloc1_16_i4.c: Regenerated.
  333. * generated/minloc0_16_i8.c: Regenerated.
  334. * generated/spread_i1.c: Regenerated.
  335. * generated/maxloc0_16_i8.c: Regenerated.
  336. * generated/maxval_r16.c: Regenerated.
  337. * generated/product_c10.c: Regenerated.
  338. * generated/minloc1_8_i4.c: Regenerated.
  339. * generated/minloc0_16_i16.c: Regenerated.
  340. * generated/matmul_r16.c: Regenerated.
  341. * generated/minloc0_4_r4.c: Regenerated.
  342. * generated/all_l2.c: Regenerated.
  343. * generated/product_c4.c: Regenerated.
  344. * generated/sum_r4.c: Regenerated.
  345. * generated/minloc0_4_i2.c: Regenerated.
  346. * generated/spread_c10.c: Regenerated.
  347. * generated/maxloc0_8_i1.c: Regenerated.
  348. * generated/spread_r4.c: Regenerated.
  349. * generated/minloc0_8_i8.c: Regenerated.
  350. * generated/matmul_c8.c: Regenerated.
  351. * generated/all_l16.c: Regenerated.
  352. * generated/minloc1_16_r10.c: Regenerated.
  353. * generated/sum_i2.c: Regenerated.
  354. * generated/minloc0_16_i1.c: Regenerated.
  355. * generated/maxloc0_16_i1.c: Regenerated.
  356. * generated/maxloc1_8_r8.c: Regenerated.
  357. * generated/minval_i16.c: Regenerated.
  358. * generated/spread_i2.c: Regenerated.
  359. * generated/maxval_i4.c: Regenerated.
  360. * generated/minval_i8.c: Regenerated.
  361. * generated/any_l4.c: Regenerated.
  362. * generated/maxloc1_4_i8.c: Regenerated.
  363. * generated/maxloc0_16_i16.c: Regenerated.
  364. * generated/maxloc0_8_r4.c: Regenerated.
  365. * generated/minloc1_4_i16.c: Regenerated.
  366. * generated/maxloc1_4_i16.c: Regenerated.
  367. * generated/minloc0_4_r10.c: Regenerated.
  368. * generated/minloc0_8_i16.c: Regenerated.
  369. * generated/maxloc0_4_r10.c: Regenerated.
  370. * generated/maxloc0_8_i16.c: Regenerated.
  371. * generated/minloc1_8_r10.c: Regenerated.
  372. * generated/product_i4.c: Regenerated.
  373. * generated/minloc0_16_r4.c: Regenerated.
  374. * generated/sum_c16.c: Regenerated.
  375. * generated/maxloc1_8_r10.c: Regenerated.
  376. * generated/maxloc0_16_r4.c: Regenerated.
  377. * generated/minloc1_16_r8.c: Regenerated.
  378. * generated/minloc0_8_i1.c: Regenerated.
  379. * generated/maxloc0_4_i4.c: Regenerated.
  380. * generated/maxloc1_16_r8.c: Regenerated.
  381. * generated/maxloc0_8_i2.c: Regenerated.
  382. * generated/sum_r10.c: Regenerated.
  383. * generated/count_4_l.c: Regenerated.
  384. * generated/sum_c4.c: Regenerated.
  385. * generated/count_8_l.c: Regenerated.
  386. * generated/maxloc1_16_r10.c: Regenerated.
  387. * generated/matmul_i8.c: Regenerated.
  388. * generated/minloc0_16_i2.c: Regenerated.
  389. * generated/minloc1_8_r8.c: Regenerated.
  390. * generated/maxloc0_16_i2.c: Regenerated.
  391. * generated/spread_c4.c: Regenerated.
  392. * generated/matmul_c16.c: Regenerated.
  393. * generated/maxval_r10.c: Regenerated.
  394. * generated/minval_i1.c: Regenerated.
  395. * generated/maxloc1_4_i1.c: Regenerated.
  396. * generated/matmul_r10.c: Regenerated.
  397. * generated/minloc1_4_i8.c: Regenerated.
  398. * generated/minloc0_8_r4.c: Regenerated.
  399. * generated/matmul_l4.c: Regenerated.
  400. * generated/product_i16.c: Regenerated.
  401. * generated/minloc0_16_r16.c: Regenerated.
  402. * generated/all_l4.c: Regenerated.
  403. * generated/minloc0_4_i4.c: Regenerated.
  404. * generated/minloc0_8_i2.c: Regenerated.
  405. * generated/matmul_i1.c: Regenerated.
  406. * generated/minval_r4.c: Regenerated.
  407. * generated/maxloc1_4_r4.c: Regenerated.
  408. * generated/spread_i16.c: Regenerated.
  409. * generated/sum_i4.c: Regenerated.
  410. * generated/maxval_r8.c: Regenerated.
  411. * generated/spread_i4.c: Regenerated.
  412. * generated/minloc1_4_i1.c: Regenerated.
  413. * generated/minval_r16.c: Regenerated.
  414. * generated/minval_i2.c: Regenerated.
  415. * generated/maxloc1_4_i2.c: Regenerated.
  416. * generated/product_r8.c: Regenerated.
  417. * generated/maxloc1_8_i8.c: Regenerated.
  418. * generated/maxloc0_4_r8.c: Regenerated.
  419. * generated/maxloc0_16_r16.c: Regenerated.
  420. * generated/matmul_r4.c: Regenerated.
  421. * generated/sum_c10.c: Regenerated.
  422. * generated/minloc1_4_r16.c: Regenerated.
  423. * generated/maxloc1_4_r16.c: Regenerated.
  424. * generated/minloc0_8_r16.c: Regenerated.
  425. * generated/maxloc0_8_r16.c: Regenerated.
  426. * generated/count_1_l.c: Regenerated.
  427. * generated/maxloc0_8_i4.c: Regenerated.
  428. * generated/matmul_i2.c: Regenerated.
  429. * generated/minloc1_4_r4.c: Regenerated.
  430. * generated/matmul_c10.c: Regenerated.
  431. * generated/minloc0_16_i4.c: Regenerated.
  432. * generated/maxloc0_16_i4.c: Regenerated.
  433. * generated/minloc1_16_i8.c: Regenerated.
  434. * generated/maxloc1_16_i8.c: Regenerated.
  435. * generated/minloc1_4_i2.c: Regenerated.
  436. * generated/matmul_l16.c: Regenerated.
  437. * generated/maxloc1_8_i1.c: Regenerated.
  438. * generated/minloc0_16_r10.c: Regenerated.
  439. * generated/minloc1_8_i8.c: Regenerated.
  440. * generated/minloc0_4_r8.c: Regenerated.
  441. * generated/product_r16.c: Regenerated.
  442. * generated/product_c8.c: Regenerated.
  443. * generated/sum_r8.c: Regenerated.
  444. * generated/minloc0_8_i4.c: Regenerated.
  445. * generated/matmul_c4.c: Regenerated.
  446. * generated/minloc1_16_i16.c: Regenerated.
  447. * generated/spread_r8.c: Regenerated.
  448. * generated/maxloc1_8_r4.c: Regenerated.
  449. * generated/minloc1_16_i1.c: Regenerated.
  450. * generated/maxloc1_16_i1.c: Regenerated.
  451. * generated/spread_r16.c: Regenerated.
  452. * generated/minval_r10.c: Regenerated.
  453. * generated/count_16_l.c: Regenerated.
  454. * generated/minval_i4.c: Regenerated.
  455. * generated/minloc1_8_i1.c: Regenerated.
  456. * generated/maxloc1_4_i4.c: Regenerated.
  457. * generated/maxloc1_8_i2.c: Regenerated.
  458. * generated/maxval_i8.c: Regenerated.
  459. * generated/any_l8.c: Regenerated.
  460. * generated/maxloc0_16_r10.c: Regenerated.
  461. * generated/minloc0_4_i16.c: Regenerated.
  462. * generated/maxloc0_8_r8.c: Regenerated.
  463. * generated/maxloc0_4_i16.c: Regenerated.
  464. * generated/minloc1_4_r10.c: Regenerated.
  465. * generated/minloc1_8_i16.c: Regenerated.
  466. * generated/maxloc1_4_r10.c: Regenerated.
  467. * generated/maxloc1_8_i16.c: Regenerated.
  468. * generated/minloc0_8_r10.c: Regenerated.
  469. * generated/maxloc0_8_r10.c: Regenerated.
  470. * generated/minloc1_16_r4.c: Regenerated.
  471. * generated/maxloc1_16_r4.c: Regenerated.
  472. * generated/minloc0_16_r8.c: Regenerated.
  473. * generated/product_i8.c: Regenerated.
  474. * generated/maxloc0_16_r8.c: Regenerated.
  475. * generated/sum_i16.c: Regenerated.
  476. * generated/count_2_l.c: Regenerated.
  477. * generated/maxloc0_4_i8.c: Regenerated.
  478. * generated/maxloc1_16_i16.c: Regenerated.
  479. * generated/matmul_i4.c: Regenerated.
  480. * generated/minloc1_8_r4.c: Regenerated.
  481. * generated/sum_c8.c: Regenerated.
  482. * generated/minloc1_16_i2.c: Regenerated.
  483. * generated/maxloc1_16_i2.c: Regenerated.
  484. * generated/maxval_i16.c: Regenerated.
  485. * generated/spread_c8.c: Regenerated.
  486. * generated/matmul_i16.c: Regenerated.
  487. * generated/minloc1_4_i4.c: Regenerated.
  488. * generated/maxval_i1.c: Regenerated.
  489. * generated/minloc1_8_i2.c: Regenerated.
  490. * generated/any_l1.c: Regenerated.
  491. * generated/product_c16.c: Regenerated.
  492. * generated/minloc0_8_r8.c: Regenerated.
  493. * generated/matmul_l8.c: Regenerated.
  494. * generated/product_r10.c: Regenerated.
  495. * generated/product_i1.c: Regenerated.
  496. * generated/all_l8.c: Regenerated.
  497. * generated/maxloc0_4_i1.c: Regenerated.
  498. * generated/minloc0_4_i8.c: Regenerated.
  499. * generated/spread_c16.c: Regenerated.
  500. * generated/maxval_r4.c: Regenerated.
  501. 2008-09-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  502. PR libfortran/37301
  503. PR libfortran/37228
  504. * io/io.h (write_real_g0): Declare new function to handle g0.d format.
  505. * io/transfer.c (formatted_transfer_scalar): Use new function.
  506. * io/format.c (parse_format_list): Enable g0.d.
  507. * io/write.c (write_a_char4): Delete unused var.
  508. (set_fnode_default): New function to set the default fnode w, d, and e
  509. factored from write_real. (write_real): Use new factored function.
  510. (write_real_g0): New function that sets d to that passed by g0.d format
  511. specifier and set format to ES. Default values for w and e are used
  512. from the new function, set_fnode_default.
  513. 2008-09-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  514. * runtime/error.c: Fix cast for printf.
  515. 2008-08-30 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  516. PR libfortran/36895
  517. * io/write.c (namelist_write_newline): New function to correctly mark
  518. next records in both external and internal units.
  519. (nml_write_obj): Use new function.
  520. (namelist_write: Use new function.
  521. 2008-08-19 Tobias Burnus <burnus@net-b.de>
  522. PR libfortran/35863
  523. * io/write.c (write_a_char4): Add missing variable declaration
  524. in HAVE_CRLF block.
  525. 2008-08-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  526. PR libfortran/35863
  527. * intrinsics/selected_char_kind.c: Enable iso_10646.
  528. * io/read.c (typedef uchar): New type.
  529. (read_utf8): New function to read a single UTF-8 encoded character.
  530. (read_utf8_char1): New function to read UTF-8 into a KIND=1 string.
  531. (read_default_char1): New functio to read default into KIND=1 string.
  532. (read_utf8_char4): New function to read UTF-8 into a KIND=4 string.
  533. (read_default_char4): New function to read UTF-8 into a KIND=4 string.
  534. (read_a): Modify to use the new functions.
  535. (read_a_char4): Modify to use the new functions.
  536. * io/write.c (error.h): Add include. (typedef uchar): New type.
  537. (write_default_char4): New function to default write KIND=4 string.
  538. (write_utf8_char4): New function to UTF-8 write KIND=4 string.
  539. (write_a_char4): Modify to use new functions.
  540. (write_character): Modify to use new functions.
  541. 2008-08-14 H.J. Lu <hongjiu.lu@intel.com>
  542. PR libfortran/37123
  543. * intrinsics/cshift0.c (cshift0): Fix 2 typos.
  544. 2008-08-14 Thomas Koenig <tkoenig@gcc.gnu.org>
  545. PR libfortran/36886
  546. * Makefile.am: Added $(i_cshift0_c).
  547. Added $(i_cshift0_c) to gfor_built_specific_src.
  548. Add rule to build from cshift0.m4.
  549. * Makefile.in: Regenerated.
  550. * libgfortran.h: Addedd prototypes for cshift0_i1,
  551. cshift0_i2, cshift0_i4, cshift0_i8, cshift0_i16,
  552. cshift0_r4, cshift0_r8, cshift0_r10, cshift0_r16,
  553. cshift0_c4, cshift0_c8, cshift0_c10, cshift0_c16.
  554. Define Macros GFC_UNALIGNED_C4 and GFC_UNALIGNED_C8.
  555. * intrinsics/cshift0.c: Remove helper functions for
  556. the innter shift loop.
  557. (cshift0): Call specific functions depending on type
  558. of array argument. Only call specific functions for
  559. correct alignment for other types.
  560. * m4/cshift0.m4: New file.
  561. * generated/cshift0_i1.c: New file.
  562. * generated/cshift0_i2.c: New file.
  563. * generated/cshift0_i4.c: New file.
  564. * generated/cshift0_i8:.c New file.
  565. * generated/cshift0_i16.c: New file.
  566. * generated/cshift0_r4.c: New file.
  567. * generated/cshift0_r8.c: New file.
  568. * generated/cshift0_r10.c: New file.
  569. * generated/cshift0_r16.c: New file.
  570. * generated/cshift0_c4.c: New file.
  571. * generated/cshift0_c8.c: New file.
  572. * generated/cshift0_c10.c: New file.
  573. * generated/cshift0_c16.c: New file.
  574. 2008-07-27 Tobias Burnus <burnus@net-b.de>
  575. PR fortran/36132
  576. PR fortran/29952
  577. PR fortran/36909
  578. * runtime/error.c: New function runtime_error_at.
  579. * gfortran.map: Ditto.
  580. * libgfortran.h: Ditto.
  581. 2008-07-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  582. PR fortran/36582
  583. * io/list_read.c: If variable rank is zero, do not adjust the found
  584. namelist object pointer.
  585. 2008-07-22 Daniel Kraft <d@domob.eu>
  586. PR fortran/29835
  587. * io/format.c (struct format_data): New member error_element.
  588. (unexpected_element): Added '%c' to message.
  589. (next_char): Keep track of last parsed character in fmt->error_element.
  590. (format_error): If the message is unexpected_element, output the
  591. offending character, too.
  592. 2008-07-22 Thomas Koenig <tkoenig@gcc.gnu.org>
  593. PR libfortran/36890
  594. * io/file_pos.c: Declare READ_CHUNK as signed to avoid
  595. signed/unsigned comparison warning in formatted_backspace.
  596. 2008-07-21 Thomas Koenig <tkoenig@gcc.gnu.org>
  597. PR libfortran/36773
  598. * intrinsics/cshift0.c (cshift0): Return early if size of array
  599. is zero.
  600. * intrinsics/eoshift0.c (eoshift0): Return early if size of
  601. return array is zero.
  602. * intrinsics/eoshift2.c (eoshift2): Likewise.
  603. * m4/eoshift1.m4 (eoshift1): Return early if size of array
  604. is zero.
  605. * m4/eoshift3.m4 (eoshift3): Likewise.
  606. * m4/eoshift2.m4 (eoshift2): Return early if size of return
  607. array is zero.
  608. * m4/eoshift4.m4 (eoshift2): Return early if size of return
  609. array is zero.
  610. * generated/cshift1_16.c: Regenerated.
  611. * generated/cshift1_4.c: Regenerated.
  612. * generated/cshift1_8.c: Regenerated.
  613. * generated/eoshift1_16.c: Regenerated.
  614. * generated/eoshift1_4.c: Regenerated.
  615. * generated/eoshift1_8.c: Regenerated.
  616. * generated/eoshift3_16.c: Regenerated.
  617. * generated/eoshift3_4.c: Regenerated.
  618. * generated/eoshift3_8.c: Regenerated.
  619. 2008-07-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  620. PR fortran/36857
  621. * io/write_float.def: Comment out locale dependent code and fix general
  622. comments.
  623. 2008-07-07 Thomas Koenig <tkoenig@gcc.gnu.org>
  624. PR fortran/36341
  625. PR fortran/34670
  626. * m4/matmul.m4: Add bounds checking.
  627. * m4/matmull.m4: Likewise.
  628. * generated/matmul_c10.c: Regenerated.
  629. * generated/matmul_c16.c: Regenerated.
  630. * generated/matmul_c4.c: Regenerated.
  631. * generated/matmul_c8.c: Regenerated.
  632. * generated/matmul_i1.c: Regenerated.
  633. * generated/matmul_i16.c: Regenerated.
  634. * generated/matmul_i2.c: Regenerated.
  635. * generated/matmul_i4.c: Regenerated.
  636. * generated/matmul_i8.c: Regenerated.
  637. * generated/matmul_l16.c: Regenerated.
  638. * generated/matmul_l4.c: Regenerated.
  639. * generated/matmul_l8.c: Regenerated.
  640. * generated/matmul_r10.c: Regenerated.
  641. * generated/matmul_r16.c: Regenerated.
  642. * generated/matmul_r4.c: Regenerated.
  643. * generated/matmul_r8.c: Regenerated.
  644. 2008-07-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  645. * acinclude.m4 (LIBGFOR_CHECK_GTHR_DEFAULT): Fix configure cache
  646. variable name.
  647. * configure: Regenerate.
  648. 2008-07-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  649. PR fortran/36676
  650. * io/list_read.c (find_nml_name): Use eat_separator instead of eat_line.
  651. 2008-06-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  652. PR fortran/36657
  653. * io/list_read.c (read_character): Check for '!' along with separators.
  654. (find_nml_name): Likewise and eat the comment if found.
  655. 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  656. * configure: Regenerate.
  657. 2008-06-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  658. PR fortran/36546
  659. * io/list_read.c (eat_separator): Add tab character to condition
  660. for looping past whitespace.
  661. 2008-06-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  662. PR fortran/36515
  663. * libgfortran.h (compile_options_t): Add int range_check to structure.
  664. * runtime/compile_options.c (set_options): Add range_check option.
  665. (init_compile_options): Likewise.
  666. *io/read.c (read_decimal): Change overflow checks to include
  667. range_check.
  668. 2008-06-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  669. PR fortran/36538
  670. * io/list_read.c (namelist_read): Add eat_separator to eliminate leading
  671. tabs.
  672. 2008-06-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  673. PR fortran/35863
  674. * libgfortran.h: Change l8_to_l4_offset to big_endian and add endian_off.
  675. * runtime/main.c: Fix error in comment. Change l8_to_l4_offset to
  676. big_endian. (determine_endianness): Add endian_off and set its value
  677. according to big_endian.
  678. * gfortran.map: Add symbol for new _gfortran_transfer_character_wide.
  679. * io/io.h: Add prototype declarations for new functions.
  680. * io/list_read.c (list_formatted_read_scalar): Modify to handle kind=4.
  681. (list_formatted_read): Calculate stride based on kind for character type
  682. and use it when calling list_formatted_read_scalar.
  683. * io/inquire.c (inquire_via_unit): Change l8_to_l4_offset to big_endian.
  684. * io/open.c (st_open): Change l8_to_l4_offset to big_endian.
  685. * io/read.c (read_a_char4): New function to handle formatted read.
  686. * io/write.c: Define GFC_CHAR4(x) to improve readability of code.
  687. (write_a_char4): New function to handle formatted write.
  688. (write_character): Modify to accept the kind parameter and adjust for
  689. endianess of the machine. (list_formatted_write): Calculate the stride
  690. resulting from the kind and adjust the list_formatted_write_scalar call
  691. accordingly. (nml_write_obj): Adjust calls to write_character.
  692. (namelist_write): Likewise.
  693. * io/transfer.c (formatted_transfer_scaler): Rename 'len' argument to
  694. 'kind' argument to better describe what it is. Add calls to new
  695. functions for kind == 4. (formatted_transfer): Modify to handle the case
  696. of type character and kind equals 4 to pass in the kind to the transfer
  697. routines. (transfer_character_wide): Add this new function.
  698. (transfer_array): Don't set kind to the character string length. Adjust
  699. strides bases on character kind.
  700. (unformatted_read): Adjust size based on kind for character types.
  701. (unformatted_write): Likewise. (data_transfer_init): Change
  702. l8_to_l4_offset to big_endian.
  703. io/fbuf.c (fbuf_seek): Add cast to eliminate warning.
  704. 2008-06-13 Tobias Burnus <burnus@net-b.de>
  705. * configure.ac (AM_CFLAGS): Remove -Werror again.
  706. * configure: Regenerate.
  707. 2008-06-13 Tobias Burnus <burnus@net-b.de>
  708. PR libgfortran/36518
  709. * configure.ac (AM_CFLAGS): Add -Werror.
  710. * configure: Regenerate.
  711. * m4/ifunction_logical.m4: Cast "n" to "(int)".
  712. * generated/any_l16.c: Regenerate.
  713. * generated/any_l2.c: Regenerate.
  714. * generated/all_l1.c: Regenerate.
  715. * generated/all_l2.c: Regenerate.
  716. * generated/all_l16.c: Regenerate.
  717. * generated/any_l4.c: Regenerate.
  718. * generated/count_4_l.c: Regenerate.
  719. * generated/count_8_l.c: Regenerate.
  720. * generated/all_l4.c: Regenerate.
  721. * generated/count_1_l.c: Regenerate.
  722. * generated/count_16_l.c: Regenerate.
  723. * generated/any_l8.c: Regenerate.
  724. * generated/count_2_l.c: Regenerate.
  725. * generated/any_l1.c: Regenerate.
  726. * generated/all_l8.c: Regenerate.
  727. 2008-06-13 Tobias Burnus <burnus@net-b.de>
  728. PR fortran/36495
  729. * configure.ac (AM_FCFLAGS): Add "-Werror -fimplicit-none".
  730. * configure: (generated) ditto.
  731. * intrinsics/dprod_r8.f90: Add "implicit none".
  732. 2008-06-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  733. PR libfortran/36420
  734. PR libfortran/36421
  735. PR libfortran/36422
  736. * io/io.h: Add prototype for write_real.
  737. * io/transfer.c (formatted_transfer_scalar): For FMT_G and width zero,
  738. use write_real.
  739. * io/format.c: Add zero width error message. (parse_format_list): Use
  740. error message for FMT_A if followed by FMT_ZERO. Use zero width error
  741. message for FMT_G if mode is READ or if -std=f95 or f2003. (fmormat0):
  742. Fix typo in comment.
  743. * io/write.c(write_a): Set wlen to len if FMT_G and length is zero.
  744. (write_l): Add wlen variable and use it if FMT_G and width is zero.
  745. (write_decimal): If FMT_G, set m to -1 to flag processor dependent
  746. formatting. (write_real): Remove static declaration.
  747. 2008-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  748. PR fortran/36319
  749. * intrinsics/string_intrinsics_inc.c (string_index): Return
  750. correct value for zero-length substring.
  751. * intrinsics/cshift0.c: Add _char4 variant.
  752. * intrinsics/eoshift0.c (eoshift0): Allow filler to be a pattern
  753. wider than a single byte. Add _char4 variant and use above
  754. functionality.
  755. * intrinsics/eoshift2.c (eoshift2): Likewise.
  756. * m4/eoshift1.m4: Likewise.
  757. * m4/eoshift3.m4: Likewise.
  758. * m4/cshift1.m4: Add _char4 variants.
  759. * gfortran.map (GFORTRAN_1.1): Add _gfortran_cshift0_1_char4,
  760. _gfortran_cshift0_2_char4, _gfortran_cshift0_4_char4,
  761. _gfortran_cshift0_8_char4, _gfortran_cshift1_16_char4,
  762. _gfortran_cshift1_4_char4, _gfortran_cshift1_8_char4,
  763. _gfortran_eoshift0_1_char4, _gfortran_eoshift0_2_char4,
  764. _gfortran_eoshift0_4_char4, _gfortran_eoshift0_8_char4,
  765. _gfortran_eoshift1_16_char4, _gfortran_eoshift1_4_char4,
  766. _gfortran_eoshift1_8_char4, _gfortran_eoshift2_1_char4,
  767. _gfortran_eoshift2_2_char4, _gfortran_eoshift2_4_char4,
  768. _gfortran_eoshift2_8_char4, _gfortran_eoshift3_16_char4,
  769. _gfortran_eoshift3_4_char4 and _gfortran_eoshift3_8_char4.
  770. * generated/eoshift3_4.c: Regenerate.
  771. * generated/eoshift1_8.c: Regenerate.
  772. * generated/eoshift1_16.c: Regenerate.
  773. * generated/cshift1_4.c: Regenerate.
  774. * generated/eoshift1_4.c: Regenerate.
  775. * generated/eoshift3_8.c: Regenerate.
  776. * generated/eoshift3_16.c: Regenerate.
  777. * generated/cshift1_8.c: Regenerate.
  778. * generated/cshift1_16.c: Regenerate.
  779. 2008-05-25 Tobias Burnus <burnus@net-b.de>
  780. PR fortran/32600
  781. * intrinsics/iso_c_binding.c (c_f_procpointer): Remove.
  782. * intrinsics/iso_c_binding.h (c_f_procpointer): Remove.
  783. * gfortran.map (c_f_procpointer): Remove.
  784. 2008-05-22 Thomas Koenig <tkoenig@gcc.gnu.org>
  785. PR libgfortran/36302
  786. * gfortran.map (GFORTRAN_1.1): Add _gfortran_eoshift0_16,
  787. _gfortran_eoshift0_16_char, _gfortran_eoshift2_16,
  788. _gfortran_eoshift2_16_char,_gfortran_cshift0_16,
  789. _gfortran_cshift0_16_char. Sort alphabetically.
  790. * intrinsics/eoshift0.c: Add function for kind=16 integer.
  791. * intrinsics/eoshift2.c: Likewise.
  792. * intrinsics/cshift0.c: Likewise.
  793. 2008-05-18 Thomas Koenig <tkoenig@gcc.gnu.org>
  794. * m4/in_pack.m4 (internal_pack_'rtype_code`): Destination
  795. pointer is restrict.
  796. * m4/transpose.m4 (transpose_'rtype_code`): Likewise.
  797. * m4/pack.m4 (pack_'rtype_code`): Likewise.
  798. * m4/spread.m4 (spread_'rtype_code`): Likewise.
  799. (spread_scalar_'rtype_code`): Likewise.
  800. * m4/iforeach.m4 (name`'rtype_qual`_'atype_code): Likewise.
  801. * m4/eoshift1.m4 (eoshift1): Likewise.
  802. * m4/eoshift3.m4 (eoshift3): Likewise.
  803. * m4/in_unpack.m4 (internal_unpack_'rtype_ccode`): Likewise.
  804. * m4/unpack.m4 (unpack0_'rtype_code`): Likewise.
  805. (unpack1_'rtype_code`): Likewise.
  806. * intrinsics/pack_generic.c (pack_generic.c): Likewise.
  807. * intrinsics/unpack_generic.c (unpack_internal): Likewise.
  808. * intrinsics/eoshift0.c (eoshift0): Likewise.
  809. * intrinsics/eoshift2.c (eoshift2): Likewise.
  810. * intrinsics/reshape_generic.c (reshape_internal): Likewise.
  811. * intrinsics/reshape_packed.c (reshape_packed): Likewise.
  812. * generated/eoshift1_16.c: Regenerated.
  813. * generated/eoshift1_4.c: Regenerated.
  814. * generated/eoshift1_8.c: Regenerated.
  815. * generated/eoshift3_16.c: Regenerated.
  816. * generated/eoshift3_4.c: Regenerated.
  817. * generated/eoshift3_8.c: Regenerated.
  818. * generated/in_pack_c10.c: Regenerated.
  819. * generated/in_pack_c16.c: Regenerated.
  820. * generated/in_pack_c4.c: Regenerated.
  821. * generated/in_pack_c8.c: Regenerated.
  822. * generated/in_pack_i1.c: Regenerated.
  823. * generated/in_pack_i16.c: Regenerated.
  824. * generated/in_pack_i2.c: Regenerated.
  825. * generated/in_pack_i4.c: Regenerated.
  826. * generated/in_pack_i8.c: Regenerated.
  827. * generated/in_pack_r10.c: Regenerated.
  828. * generated/in_pack_r16.c: Regenerated.
  829. * generated/in_pack_r4.c: Regenerated.
  830. * generated/in_pack_r8.c: Regenerated.
  831. * generated/in_unpack_c10.c: Regenerated.
  832. * generated/in_unpack_c16.c: Regenerated.
  833. * generated/in_unpack_c4.c: Regenerated.
  834. * generated/in_unpack_c8.c: Regenerated.
  835. * generated/in_unpack_i1.c: Regenerated.
  836. * generated/in_unpack_i16.c: Regenerated.
  837. * generated/in_unpack_i2.c: Regenerated.
  838. * generated/in_unpack_i4.c: Regenerated.
  839. * generated/in_unpack_i8.c: Regenerated.
  840. * generated/in_unpack_r10.c: Regenerated.
  841. * generated/in_unpack_r16.c: Regenerated.
  842. * generated/in_unpack_r4.c: Regenerated.
  843. * generated/in_unpack_r8.c: Regenerated.
  844. * generated/maxloc0_16_i1.c: Regenerated.
  845. * generated/maxloc0_16_i16.c: Regenerated.
  846. * generated/maxloc0_16_i2.c: Regenerated.
  847. * generated/maxloc0_16_i4.c: Regenerated.
  848. * generated/maxloc0_16_i8.c: Regenerated.
  849. * generated/maxloc0_16_r10.c: Regenerated.
  850. * generated/maxloc0_16_r16.c: Regenerated.
  851. * generated/maxloc0_16_r4.c: Regenerated.
  852. * generated/maxloc0_16_r8.c: Regenerated.
  853. * generated/maxloc0_4_i1.c: Regenerated.
  854. * generated/maxloc0_4_i16.c: Regenerated.
  855. * generated/maxloc0_4_i2.c: Regenerated.
  856. * generated/maxloc0_4_i4.c: Regenerated.
  857. * generated/maxloc0_4_i8.c: Regenerated.
  858. * generated/maxloc0_4_r10.c: Regenerated.
  859. * generated/maxloc0_4_r16.c: Regenerated.
  860. * generated/maxloc0_4_r4.c: Regenerated.
  861. * generated/maxloc0_4_r8.c: Regenerated.
  862. * generated/maxloc0_8_i1.c: Regenerated.
  863. * generated/maxloc0_8_i16.c: Regenerated.
  864. * generated/maxloc0_8_i2.c: Regenerated.
  865. * generated/maxloc0_8_i4.c: Regenerated.
  866. * generated/maxloc0_8_i8.c: Regenerated.
  867. * generated/maxloc0_8_r10.c: Regenerated.
  868. * generated/maxloc0_8_r16.c: Regenerated.
  869. * generated/maxloc0_8_r4.c: Regenerated.
  870. * generated/maxloc0_8_r8.c: Regenerated.
  871. * generated/minloc0_16_i1.c: Regenerated.
  872. * generated/minloc0_16_i16.c: Regenerated.
  873. * generated/minloc0_16_i2.c: Regenerated.
  874. * generated/minloc0_16_i4.c: Regenerated.
  875. * generated/minloc0_16_i8.c: Regenerated.
  876. * generated/minloc0_16_r10.c: Regenerated.
  877. * generated/minloc0_16_r16.c: Regenerated.
  878. * generated/minloc0_16_r4.c: Regenerated.
  879. * generated/minloc0_16_r8.c: Regenerated.
  880. * generated/minloc0_4_i1.c: Regenerated.
  881. * generated/minloc0_4_i16.c: Regenerated.
  882. * generated/minloc0_4_i2.c: Regenerated.
  883. * generated/minloc0_4_i4.c: Regenerated.
  884. * generated/minloc0_4_i8.c: Regenerated.
  885. * generated/minloc0_4_r10.c: Regenerated.
  886. * generated/minloc0_4_r16.c: Regenerated.
  887. * generated/minloc0_4_r4.c: Regenerated.
  888. * generated/minloc0_4_r8.c: Regenerated.
  889. * generated/minloc0_8_i1.c: Regenerated.
  890. * generated/minloc0_8_i16.c: Regenerated.
  891. * generated/minloc0_8_i2.c: Regenerated.
  892. * generated/minloc0_8_i4.c: Regenerated.
  893. * generated/minloc0_8_i8.c: Regenerated.
  894. * generated/minloc0_8_r10.c: Regenerated.
  895. * generated/minloc0_8_r16.c: Regenerated.
  896. * generated/minloc0_8_r4.c: Regenerated.
  897. * generated/minloc0_8_r8.c: Regenerated.
  898. * generated/pack_c10.c: Regenerated.
  899. * generated/pack_c16.c: Regenerated.
  900. * generated/pack_c4.c: Regenerated.
  901. * generated/pack_c8.c: Regenerated.
  902. * generated/pack_i1.c: Regenerated.
  903. * generated/pack_i16.c: Regenerated.
  904. * generated/pack_i2.c: Regenerated.
  905. * generated/pack_i4.c: Regenerated.
  906. * generated/pack_i8.c: Regenerated.
  907. * generated/pack_r10.c: Regenerated.
  908. * generated/pack_r16.c: Regenerated.
  909. * generated/pack_r4.c: Regenerated.
  910. * generated/pack_r8.c: Regenerated.
  911. * generated/spread_c10.c: Regenerated.
  912. * generated/spread_c16.c: Regenerated.
  913. * generated/spread_c4.c: Regenerated.
  914. * generated/spread_c8.c: Regenerated.
  915. * generated/spread_i1.c: Regenerated.
  916. * generated/spread_i16.c: Regenerated.
  917. * generated/spread_i2.c: Regenerated.
  918. * generated/spread_i4.c: Regenerated.
  919. * generated/spread_i8.c: Regenerated.
  920. * generated/spread_r10.c: Regenerated.
  921. * generated/spread_r16.c: Regenerated.
  922. * generated/spread_r4.c: Regenerated.
  923. * generated/spread_r8.c: Regenerated.
  924. * generated/transpose_c10.c: Regenerated.
  925. * generated/transpose_c16.c: Regenerated.
  926. * generated/transpose_c4.c: Regenerated.
  927. * generated/transpose_c8.c: Regenerated.
  928. * generated/transpose_i16.c: Regenerated.
  929. * generated/transpose_i4.c: Regenerated.
  930. * generated/transpose_i8.c: Regenerated.
  931. * generated/transpose_r10.c: Regenerated.
  932. * generated/transpose_r16.c: Regenerated.
  933. * generated/transpose_r4.c: Regenerated.
  934. * generated/transpose_r8.c: Regenerated.
  935. * generated/unpack_c10.c: Regenerated.
  936. * generated/unpack_c16.c: Regenerated.
  937. * generated/unpack_c4.c: Regenerated.
  938. * generated/unpack_c8.c: Regenerated.
  939. * generated/unpack_i1.c: Regenerated.
  940. * generated/unpack_i16.c: Regenerated.
  941. * generated/unpack_i2.c: Regenerated.
  942. * generated/unpack_i4.c: Regenerated.
  943. * generated/unpack_i8.c: Regenerated.
  944. * generated/unpack_r10.c: Regenerated.
  945. * generated/unpack_r16.c: Regenerated.
  946. * generated/unpack_r4.c: Regenerated.
  947. * generated/unpack_r8.c: Regenerated.
  948. 2008-05-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  949. * runtime/select.c: Moved content to select_inc.c. Include it.
  950. Add macros for different character types.
  951. * runtime/select_inc.c: New file.
  952. * runtime/convert_char.c: New file.
  953. * intrinsics/pack_generic.c (pack_char4, pack_s_char4): New
  954. functions.
  955. * intrinsics/transpose_generic.c (transpose_char4): New function.
  956. * intrinsics/spread_generic.c (spread_char4, spread_char4_scalar):
  957. New functions.
  958. * intrinsics/unpack_generic.c (unpack1_char4, unpack0_char4):
  959. New functions.
  960. * intrinsics/reshape_generic.c (reshape_char): Use
  961. gfc_charlen_type as type for length variables.
  962. (reshape_char4): New function.
  963. * gfortran.map (GFORTRAN_1.1): Add _gfortran_select_string_char4,
  964. _gfortran_convert_char1_to_char4, _gfortran_convert_char4_to_char1,
  965. _gfortran_transpose_char4, _gfortran_spread_char4,
  966. _gfortran_spread_char4_scalar, _gfortran_reshape_char4,
  967. _gfortran_pack_char4, _gfortran_pack_s_char4,
  968. _gfortran_unpack0_char4 and _gfortran_unpack1_char4.
  969. * Makefile.am: Add runtime/convert_char.c.
  970. * Makefile.in: Regenerate.
  971. 2008-05-17 Thomas Koenig <tkoenig@gcc.gnu.org>
  972. * io/list_read.c (list_formatted_read_scalar): Declare
  973. type as volatile to shut up compiler warning.
  974. 2008-05-16 Janne Blomqvist <jb@gcc.gnu.org>
  975. PR libfortran/25561
  976. * io/io.h (struct fbuf): Change pointer to position offset.
  977. * io/fbuf.c (fbuf_init): Reduce default size of buffer, ptr=>pos
  978. changes.
  979. (fbuf_reset): ptr=>pos changes.
  980. (fbuf_alloc): If the request doesn't fit, don't waste memory by
  981. keeping flushed bytes. ptr=>pos changes.
  982. (fbuf_flush): ptr=>pos changes.
  983. (fbuf_seek): Don't seek past the left tab limit, don't update active
  984. byte count.
  985. * io/open.c (new_unit): If RECL has been specified, used that as
  986. initial buffer size.
  987. 2008-05-16 Janne Blomqvist <jb@gcc.gnu.org>
  988. PR libfortran/35632
  989. * io/open.c (new_unit): Set stream position to correct value.
  990. 2008-05-15 Janne Blomqvist <jb@gcc.gnu.org>
  991. PR libfortran/25561
  992. * Makefile.am: Add fbuf.c to gfor_io_src.
  993. * Makefile.in: Regenerate.
  994. * io/io.h (read_block): Remove.
  995. (struct stream): Remove alloc_r_at function pointer.
  996. (salloc_r): Remove.
  997. (salloc_r_at): Remove.
  998. (salloc_w_at): Remove.
  999. (salloc_w): Remove offset argument.
  1000. (struct fbuf): New struct for format buffer.
  1001. (struct gfc_unit): Add fbuf.
  1002. (read_block_form): New prototype.
  1003. (fbuf_init): Likewise.
  1004. (fbuf_destroy): Likewise.
  1005. (fbuf_reset): Likewise.
  1006. (fbuf_alloc): Likewise.
  1007. (fbuf_flush): Likewise.
  1008. (fbuf_seek): Likewise.
  1009. * io/file_pos.c (formatted_backspace): Change to use sread.
  1010. (unformatted_backspace): Likewise.
  1011. (st_backspace): Flush format buffer.
  1012. (st_rewind): Likewise.
  1013. * io/list_read.c (next_char): Likewise.
  1014. (nml_query): Tidying, flush format buffer.
  1015. * io/open.c (new_unit): Init format buffer.
  1016. * io/read.c (read_l): Change to use read_block_form.
  1017. (read_a): Likewise.
  1018. (read_decimal): Likewise.
  1019. (read_radix): Likewise.
  1020. (read_f): Likewise.
  1021. (read_x): Empty reads also for stream I/O.
  1022. * io/transfer.c (read_sf): Change to use sread.
  1023. (read_block): Rename to read_block_form, change prototype, use sread.
  1024. (read_block_direct): Don't seek stream files.
  1025. (write_block): Change to use fbuf if external file, don't seek stream
  1026. files.
  1027. (write_buf): Don't seek stream files.
  1028. (formatted_transfer_scalar): Use fbuf for external files.
  1029. (us_read): Change to use sread.
  1030. (pre_position): Do nothing for stream I/O.
  1031. (data_transfer_init): Flush fbuf when switching from write to read, if
  1032. POS is specified, seek stream file to correct offset.
  1033. (skip_record): Change to use sread.
  1034. (min_off): New function.
  1035. (next_record_r): Change to use sread.
  1036. (next_record_w): Change to use sset/sseek, flush fbuf.
  1037. (finalize_transfer): Flush fbuf.
  1038. * io/unit.c (init_units): Init fbuf for stdout, stderr.
  1039. (close_unit_1): Destroy fbuf.
  1040. (finish_last_advance_record): Flush fbuf, no need to seek.
  1041. * io/unix.c (fd_alloc_r_at): Remove unused where argument.
  1042. (fd_alloc_w_at): Likewise.
  1043. (fd_read): Remove third argument to fd_alloc_r_at.
  1044. (fd_write): Remove third argument to fd_alloc_w_at.
  1045. (fd_sset): Likewise.
  1046. (fd_open): Don't set alloc_r_at.
  1047. (mem_alloc_r_at): Remove unused where argument.
  1048. (mem_alloc_w_at): Likewise.
  1049. (mem_read): Don't incorrectly return previous errno, remove unused
  1050. third argument to alloc function.
  1051. (mem_write): Likewise.
  1052. (mem_set): Likewise.
  1053. (open_internal): Don't set alloc_r_at pointer.
  1054. * io/fbuf.c: New file.
  1055. 2008-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  1056. * libgfortran.h (gfc_char4_t): New type.
  1057. (GFC_SIZE_OF_CHAR_KIND): New macro.
  1058. (compare_string): Adjust prototype.
  1059. (compare_string_char4): New prototype.
  1060. * gfortran.map (GFORTRAN_1.1): Add _gfortran_adjustl_char4,
  1061. _gfortran_adjustr_char4, _gfortran_compare_string_char4,
  1062. _gfortran_concat_string_char4, _gfortran_string_index_char4,
  1063. _gfortran_string_len_trim_char4, _gfortran_string_minmax_char4,
  1064. _gfortran_string_scan_char4, _gfortran_string_trim_char4 and
  1065. _gfortran_string_verify_char4.
  1066. * intrinsics/string_intrinsics_inc.c: New file from content of
  1067. string_intrinsics.c with types replaced by macros.
  1068. * intrinsics/string_intrinsics.c: Move content to
  1069. string_intrinsics_inc.c.
  1070. 2008-05-11 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  1071. PR libfortran/36202
  1072. * io/list_read (eat_separator): Handle the CR-LF case correctly.
  1073. 2008-05-09 Julian Brown <julian@codesourcery.com>
  1074. * Makefile.am (LTLDFLAGS): New.
  1075. (libgfortran_la_LDFLAGS): Use above.
  1076. * Makefile.in: Regenerate.
  1077. 2008-05-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  1078. PR libfortran/36131
  1079. * io/transfer.c (formatted_transfer_scalar): Revert patch for PR34974.
  1080. (next_record_w): Likewise.
  1081. 2008-05-04 Thomas Koenig <tkoenig@gcc.gnu.org>
  1082. PR libfortran/35995
  1083. * m4/ifunction_logical.m4: If the extent of "array"
  1084. is less than zero, set it to zero. Use an explicit
  1085. flag for breaking out of the main loop to avoid, because
  1086. the data pointer for "array" may be NULL for an empty
  1087. array.
  1088. * m4/ifunction.m4: Likewise.
  1089. * generated/all_l1.c: Regenerated.
  1090. * generated/all_l16.c: Regenerated.
  1091. * generated/all_l2.c: Regenerated.
  1092. * generated/all_l4.c: Regenerated.
  1093. * generated/all_l8.c: Regenerated.
  1094. * generated/any_l1.c: Regenerated.
  1095. * generated/any_l16.c: Regenerated.
  1096. * generated/any_l2.c: Regenerated.
  1097. * generated/any_l4.c: Regenerated.
  1098. * generated/any_l8.c: Regenerated.
  1099. * generated/count_16_l.c: Regenerated.
  1100. * generated/count_1_l.c: Regenerated.
  1101. * generated/count_2_l.c: Regenerated.
  1102. * generated/count_4_l.c: Regenerated.
  1103. * generated/count_8_l.c: Regenerated.
  1104. * generated/maxloc1_16_i1.c: Regenerated.
  1105. * generated/maxloc1_16_i16.c: Regenerated.
  1106. * generated/maxloc1_16_i2.c: Regenerated.
  1107. * generated/maxloc1_16_i4.c: Regenerated.
  1108. * generated/maxloc1_16_i8.c: Regenerated.
  1109. * generated/maxloc1_16_r10.c: Regenerated.
  1110. * generated/maxloc1_16_r16.c: Regenerated.
  1111. * generated/maxloc1_16_r4.c: Regenerated.
  1112. * generated/maxloc1_16_r8.c: Regenerated.
  1113. * generated/maxloc1_4_i1.c: Regenerated.
  1114. * generated/maxloc1_4_i16.c: Regenerated.
  1115. * generated/maxloc1_4_i2.c: Regenerated.
  1116. * generated/maxloc1_4_i4.c: Regenerated.
  1117. * generated/maxloc1_4_i8.c: Regenerated.
  1118. * generated/maxloc1_4_r10.c: Regenerated.
  1119. * generated/maxloc1_4_r16.c: Regenerated.
  1120. * generated/maxloc1_4_r4.c: Regenerated.
  1121. * generated/maxloc1_4_r8.c: Regenerated.
  1122. * generated/maxloc1_8_i1.c: Regenerated.
  1123. * generated/maxloc1_8_i16.c: Regenerated.
  1124. * generated/maxloc1_8_i2.c: Regenerated.
  1125. * generated/maxloc1_8_i4.c: Regenerated.
  1126. * generated/maxloc1_8_i8.c: Regenerated.
  1127. * generated/maxloc1_8_r10.c: Regenerated.
  1128. * generated/maxloc1_8_r16.c: Regenerated.
  1129. * generated/maxloc1_8_r4.c: Regenerated.
  1130. * generated/maxloc1_8_r8.c: Regenerated.
  1131. * generated/maxval_i1.c: Regenerated.
  1132. * generated/maxval_i16.c: Regenerated.
  1133. * generated/maxval_i2.c: Regenerated.
  1134. * generated/maxval_i4.c: Regenerated.
  1135. * generated/maxval_i8.c: Regenerated.
  1136. * generated/maxval_r10.c: Regenerated.
  1137. * generated/maxval_r16.c: Regenerated.
  1138. * generated/maxval_r4.c: Regenerated.
  1139. * generated/maxval_r8.c: Regenerated.
  1140. * generated/minloc1_16_i1.c: Regenerated.
  1141. * generated/minloc1_16_i16.c: Regenerated.
  1142. * generated/minloc1_16_i2.c: Regenerated.
  1143. * generated/minloc1_16_i4.c: Regenerated.
  1144. * generated/minloc1_16_i8.c: Regenerated.
  1145. * generated/minloc1_16_r10.c: Regenerated.
  1146. * generated/minloc1_16_r16.c: Regenerated.
  1147. * generated/minloc1_16_r4.c: Regenerated.
  1148. * generated/minloc1_16_r8.c: Regenerated.
  1149. * generated/minloc1_4_i1.c: Regenerated.
  1150. * generated/minloc1_4_i16.c: Regenerated.
  1151. * generated/minloc1_4_i2.c: Regenerated.
  1152. * generated/minloc1_4_i4.c: Regenerated.
  1153. * generated/minloc1_4_i8.c: Regenerated.
  1154. * generated/minloc1_4_r10.c: Regenerated.
  1155. * generated/minloc1_4_r16.c: Regenerated.
  1156. * generated/minloc1_4_r4.c: Regenerated.
  1157. * generated/minloc1_4_r8.c: Regenerated.
  1158. * generated/minloc1_8_i1.c: Regenerated.
  1159. * generated/minloc1_8_i16.c: Regenerated.
  1160. * generated/minloc1_8_i2.c: Regenerated.
  1161. * generated/minloc1_8_i4.c: Regenerated.
  1162. * generated/minloc1_8_i8.c: Regenerated.
  1163. * generated/minloc1_8_r10.c: Regenerated.
  1164. * generated/minloc1_8_r16.c: Regenerated.
  1165. * generated/minloc1_8_r4.c: Regenerated.
  1166. * generated/minloc1_8_r8.c: Regenerated.
  1167. * generated/minval_i1.c: Regenerated.
  1168. * generated/minval_i16.c: Regenerated.
  1169. * generated/minval_i2.c: Regenerated.
  1170. * generated/minval_i4.c: Regenerated.
  1171. * generated/minval_i8.c: Regenerated.
  1172. * generated/minval_r10.c: Regenerated.
  1173. * generated/minval_r16.c: Regenerated.
  1174. * generated/minval_r4.c: Regenerated.
  1175. * generated/minval_r8.c: Regenerated.
  1176. * generated/product_c10.c: Regenerated.
  1177. * generated/product_c16.c: Regenerated.
  1178. * generated/product_c4.c: Regenerated.
  1179. * generated/product_c8.c: Regenerated.
  1180. * generated/product_i1.c: Regenerated.
  1181. * generated/product_i16.c: Regenerated.
  1182. * generated/product_i2.c: Regenerated.
  1183. * generated/product_i4.c: Regenerated.
  1184. * generated/product_i8.c: Regenerated.
  1185. * generated/product_r10.c: Regenerated.
  1186. * generated/product_r16.c: Regenerated.
  1187. * generated/product_r4.c: Regenerated.
  1188. * generated/product_r8.c: Regenerated.
  1189. * generated/sum_c10.c: Regenerated.
  1190. * generated/sum_c16.c: Regenerated.
  1191. * generated/sum_c4.c: Regenerated.
  1192. * generated/sum_c8.c: Regenerated.
  1193. * generated/sum_i1.c: Regenerated.
  1194. * generated/sum_i16.c: Regenerated.
  1195. * generated/sum_i2.c: Regenerated.
  1196. * generated/sum_i4.c: Regenerated.
  1197. * generated/sum_i8.c: Regenerated.
  1198. * generated/sum_r10.c: Regenerated.
  1199. * generated/sum_r16.c: Regenerated.
  1200. * generated/sum_r4.c: Regenerated.
  1201. * generated/sum_r8.c: Regenerated.
  1202. 2008-05-04 Thomas Koenig <tkoenig@gcc.gnu.org>
  1203. PR libfortran/35990
  1204. * intrinsics/pack_generic.c: Really commit.
  1205. 2008-05-04 Thomas Koenig <tkoenig@gcc.gnu.org>
  1206. PR libfortran/35990
  1207. * intrinsics/pack_generic.c: If an extent of the source
  1208. array is less then zero, set it to zero. Set the source
  1209. pointer to NULL if the source size is zero. Set the total
  1210. number of elements to zero if the vector has an extent
  1211. less or equal to zero.
  1212. * m4/pack.m4: Set the source pointer to NULL if the
  1213. source array is zero-sized. Set the total number of
  1214. elemements to zero if the vector has an extent less or
  1215. equal to zero.
  1216. * generated/pack_i1.c: Regenerated.
  1217. * generated/pack_i2.c: Regenerated.
  1218. * generated/pack_i4.c: Regenerated.
  1219. * generated/pack_i8.c: Regenerated.
  1220. * generated/pack_i16.c: Regenerated.
  1221. * generated/pack_r4.c: Regenerated.
  1222. * generated/pack_r8.c: Regenerated.
  1223. * generated/pack_r10.c: Regenerated.
  1224. * generated/pack_r16.c: Regenerated.
  1225. * generated/pack_c4.c: Regenerated.
  1226. * generated/pack_c8.c: Regenerated.
  1227. * generated/pack_c10.c: Regenerated.
  1228. * generated/pack_c16.c: Regenerated.
  1229. 2008-05-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  1230. PR libfortran/36094
  1231. * runtime/error.c (show_locus): Provide modified error message when
  1232. filename has not yet been associated with a unit number.
  1233. * io/open.c (encoding_opt[]): Comment out "utf-8" option and add TODO.
  1234. 2008-04-30 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  1235. * intrinsics/selected_char_kind.c: New file.
  1236. * gfortran.map (GFORTRAN_1.1): Add _gfortran_selected_char_kind.
  1237. * Makefile.am: Add intrinsics/selected_char_kind.c.
  1238. * Makefile.in: Regenerate.
  1239. 2008-04-30 Thomas Koenig <tkoenig@gcc.gnu.org>
  1240. PR libfortran/35993
  1241. * ifunction.m4 (SCALAR_ARRAY_FUNCTION): Use correct
  1242. implementation for multi-dimensional return arrays when
  1243. the mask is .false.
  1244. * generated/maxloc1_16_i1.c: Regenerated.
  1245. * generated/maxloc1_16_i16.c: Regenerated.
  1246. * generated/maxloc1_16_i2.c: Regenerated.
  1247. * generated/maxloc1_16_i4.c: Regenerated.
  1248. * generated/maxloc1_16_i8.c: Regenerated.
  1249. * generated/maxloc1_16_r10.c: Regenerated.
  1250. * generated/maxloc1_16_r16.c: Regenerated.
  1251. * generated/maxloc1_16_r4.c: Regenerated.
  1252. * generated/maxloc1_16_r8.c: Regenerated.
  1253. * generated/maxloc1_4_i1.c: Regenerated.
  1254. * generated/maxloc1_4_i16.c: Regenerated.
  1255. * generated/maxloc1_4_i2.c: Regenerated.
  1256. * generated/maxloc1_4_i4.c: Regenerated.
  1257. * generated/maxloc1_4_i8.c: Regenerated.
  1258. * generated/maxloc1_4_r10.c: Regenerated.
  1259. * generated/maxloc1_4_r16.c: Regenerated.
  1260. * generated/maxloc1_4_r4.c: Regenerated.
  1261. * generated/maxloc1_4_r8.c: Regenerated.
  1262. * generated/maxloc1_8_i1.c: Regenerated.
  1263. * generated/maxloc1_8_i16.c: Regenerated.
  1264. * generated/maxloc1_8_i2.c: Regenerated.
  1265. * generated/maxloc1_8_i4.c: Regenerated.
  1266. * generated/maxloc1_8_i8.c: Regenerated.
  1267. * generated/maxloc1_8_r10.c: Regenerated.
  1268. * generated/maxloc1_8_r16.c: Regenerated.
  1269. * generated/maxloc1_8_r4.c: Regenerated.
  1270. * generated/maxloc1_8_r8.c: Regenerated.
  1271. * generated/maxval_i1.c: Regenerated.
  1272. * generated/maxval_i16.c: Regenerated.
  1273. * generated/maxval_i2.c: Regenerated.
  1274. * generated/maxval_i4.c: Regenerated.
  1275. * generated/maxval_i8.c: Regenerated.
  1276. * generated/maxval_r10.c: Regenerated.
  1277. * generated/maxval_r16.c: Regenerated.
  1278. * generated/maxval_r4.c: Regenerated.
  1279. * generated/maxval_r8.c: Regenerated.
  1280. * generated/minloc1_16_i1.c: Regenerated.
  1281. * generated/minloc1_16_i16.c: Regenerated.
  1282. * generated/minloc1_16_i2.c: Regenerated.
  1283. * generated/minloc1_16_i4.c: Regenerated.
  1284. * generated/minloc1_16_i8.c: Regenerated.
  1285. * generated/minloc1_16_r10.c: Regenerated.
  1286. * generated/minloc1_16_r16.c: Regenerated.
  1287. * generated/minloc1_16_r4.c: Regenerated.
  1288. * generated/minloc1_16_r8.c: Regenerated.
  1289. * generated/minloc1_4_i1.c: Regenerated.
  1290. * generated/minloc1_4_i16.c: Regenerated.
  1291. * generated/minloc1_4_i2.c: Regenerated.
  1292. * generated/minloc1_4_i4.c: Regenerated.
  1293. * generated/minloc1_4_i8.c: Regenerated.
  1294. * generated/minloc1_4_r10.c: Regenerated.
  1295. * generated/minloc1_4_r16.c: Regenerated.
  1296. * generated/minloc1_4_r4.c: Regenerated.
  1297. * generated/minloc1_4_r8.c: Regenerated.
  1298. * generated/minloc1_8_i1.c: Regenerated.
  1299. * generated/minloc1_8_i16.c: Regenerated.
  1300. * generated/minloc1_8_i2.c: Regenerated.
  1301. * generated/minloc1_8_i4.c: Regenerated.
  1302. * generated/minloc1_8_i8.c: Regenerated.
  1303. * generated/minloc1_8_r10.c: Regenerated.
  1304. * generated/minloc1_8_r16.c: Regenerated.
  1305. * generated/minloc1_8_r4.c: Regenerated.
  1306. * generated/minloc1_8_r8.c: Regenerated.
  1307. * generated/minval_i1.c: Regenerated.
  1308. * generated/minval_i16.c: Regenerated.
  1309. * generated/minval_i2.c: Regenerated.
  1310. * generated/minval_i4.c: Regenerated.
  1311. * generated/minval_i8.c: Regenerated.
  1312. * generated/minval_r10.c: Regenerated.
  1313. * generated/minval_r16.c: Regenerated.
  1314. * generated/minval_r4.c: Regenerated.
  1315. * generated/minval_r8.c: Regenerated.
  1316. * generated/product_c10.c: Regenerated.
  1317. * generated/product_c16.c: Regenerated.
  1318. * generated/product_c4.c: Regenerated.
  1319. * generated/product_c8.c: Regenerated.
  1320. * generated/product_i1.c: Regenerated.
  1321. * generated/product_i16.c: Regenerated.
  1322. * generated/product_i2.c: Regenerated.
  1323. * generated/product_i4.c: Regenerated.
  1324. * generated/product_i8.c: Regenerated.
  1325. * generated/product_r10.c: Regenerated.
  1326. * generated/product_r16.c: Regenerated.
  1327. * generated/product_r4.c: Regenerated.
  1328. * generated/product_r8.c: Regenerated.
  1329. * generated/sum_c10.c: Regenerated.
  1330. * generated/sum_c16.c: Regenerated.
  1331. * generated/sum_c4.c: Regenerated.
  1332. * generated/sum_c8.c: Regenerated.
  1333. * generated/sum_i1.c: Regenerated.
  1334. * generated/sum_i16.c: Regenerated.
  1335. * generated/sum_i2.c: Regenerated.
  1336. * generated/sum_i4.c: Regenerated.
  1337. * generated/sum_i8.c: Regenerated.
  1338. * generated/sum_r10.c: Regenerated.
  1339. * generated/sum_r16.c: Regenerated.
  1340. * generated/sum_r4.c: Regenerated.
  1341. * generated/sum_r8.c: Regenerated.
  1342. 2008-04-25 Thomas Koenig <tkoenig@gcc.gnu.org>
  1343. PR libfortran/35960
  1344. * m4/reshape.m4: Fix typo in last commit.
  1345. * generated/reshape_i4.c: Regererated.
  1346. * generated/reshape_i8.c: Regenerated.
  1347. * generated/reshape_i16.c: Regenerated.
  1348. * generated/reshape_r4.c: Regenerated.
  1349. * generated/reshape_r8.c: Regenerated.
  1350. * generated/reshape_r10.c: Regenerated.
  1351. * generated/reshape_r16.c: Regenerated.
  1352. * generated/reshape_c4.c: Regenerated.
  1353. * generated/reshape_c8.c: Regenerated.
  1354. * generated/reshape_c10.c: Regenerated.
  1355. * generated/reshape_c16.c: Regenerated.
  1356. 2008-04-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  1357. * intrinsics/time_1.h (__time_1): Remove unused variable.
  1358. 2008-04-23 Thomas Koenig <tkoenig@gcc.gnu.org>
  1359. PR libfortran/35988
  1360. * m4/matmul.m4: Only issue a runtime error if extents are
  1361. non-zero.
  1362. * generated/matmul_i1.c: Regenerated.
  1363. * generated/matmul_i2.c: Regenerated.
  1364. * generated/matmul_i4.c: Regenerated.
  1365. * generated/matmul_i8.c: Regenerated.
  1366. * generated/matmul_i16.c: Regenerated.
  1367. * generated/matmul_r4.c: Regenerated.
  1368. * generated/matmul_r8.c: Regenerated.
  1369. * generated/matmul_r10.c: Regenerated.
  1370. * generated/matmul_r16.c: Regenerated.
  1371. * generated/matmul_c4.c: Regenerated.
  1372. * generated/matmul_c8.c: Regenerated.
  1373. * generated/matmul_c10.c: Regenerated.
  1374. * generated/matmul_c16.c: Regenerated.
  1375. 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  1376. * acinclude.m4 (LIBGFOR_CHECK_ATTRIBUTE_VISIBILITY)
  1377. (LIBGFOR_CHECK_ATTRIBUTE_DLLEXPORT)
  1378. (LIBGFOR_CHECK_ATTRIBUTE_ALIAS, LIBGFOR_CHECK_SYNC_FETCH_AND_ADD)
  1379. (LIBGFOR_GTHREAD_WEAK, LIBGFOR_CHECK_UNLINK_OPEN_FILE)
  1380. (LIBGFOR_CHECK_CRLF, LIBGFOR_CHECK_FOR_BROKEN_ISFINITE)
  1381. (LIBGFOR_CHECK_FOR_BROKEN_ISNAN)
  1382. (LIBGFOR_CHECK_FOR_BROKEN_FPCLASSIFY, LIBGFOR_CHECK_WORKING_STAT)
  1383. (LIBGFOR_CHECK_FPSETMASK, LIBGFOR_CHECK_MINGW_SNPRINTF):
  1384. Fix cache variable names.
  1385. * configure, Makefile.in: Regenerate.
  1386. 2008-04-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  1387. PR fortran/35991
  1388. * intrinsics/cshift0.c (cshift0): Avoid divide by zero.
  1389. 2008-04-20 Thomas Koenig <tkoenig@gcc.gnu.org>
  1390. PR libfortran/35960
  1391. * intrinsics/reshape_generic.c (reshape_internal): If the size
  1392. of the resized array is zero, as determined by the SHAPE
  1393. argument, return early.
  1394. * m4/reshape.m4: Likewise.
  1395. * generated/reshape_i4.c: Regererated.
  1396. * generated/reshape_i8.c: Regenerated.
  1397. * generated/reshape_i16.c: Regenerated.
  1398. * generated/reshape_r4.c: Regenerated.
  1399. * generated/reshape_r8.c: Regenerated.
  1400. * generated/reshape_r10.c: Regenerated.
  1401. * generated/reshape_r16.c: Regenerated.
  1402. * generated/reshape_c4.c: Regenerated.
  1403. * generated/reshape_c8.c: Regenerated.
  1404. * generated/reshape_c10.c: Regenerated.
  1405. * generated/reshape_c16.c: Regenerated.
  1406. 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
  1407. PR bootstrap/35457
  1408. * aclocal.m4: Regenerate.
  1409. * configure: Regenerate.
  1410. 2008-04-14 Thomas Koenig <tkoenig@gcc.gnu.org>
  1411. PR libfortran/32972
  1412. * intrinsics/spread_generic.c (spread): Use spread_i2()
  1413. for GFC_DTYPE_DERIVED_2 (fix typo from previous commit).
  1414. 2008-04-13 Thomas Koenig <tkoenig@gcc.gnu.org>
  1415. Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  1416. PR libfortran/32972
  1417. PR libfortran/32512
  1418. configure.ac: Add test for uintptr_t.
  1419. configure: Regenerated.
  1420. config.h.in: Regenerated.
  1421. * libgfortran.h: GFC_DTYPE_DERIVED_1: New macro.
  1422. GFC_DTYPE_DERIVED_2: New macro.
  1423. GFC_DTYPE_DERIVED_4: New macro.
  1424. GFC_DTYPE_DERIVED_8: New macro.
  1425. GFC_DTYPE_DERIVED_16: New macro.
  1426. GFC_UNALIGNED_2: New macro.
  1427. GFC_UNALIGNED_4: New macro.
  1428. GFC_UNALIGNED_8: New macro.
  1429. GFC_UNALIGNED_16: New macro.
  1430. intptr_t: Define if we don't have it.
  1431. uintptr_t: Likewise.
  1432. * runtime/backtrace.c (show_backtrace): Use intptr_t.
  1433. * intrinsics/signal.c (signal_sub): Likewise.
  1434. (signal_sub_int): Likewise.
  1435. (alarm_sub_int_i4): Likewise.
  1436. * intrinsics/spread_generic.c (spread): Use the integer
  1437. routines for handling derived types of sizes 1, 2, 4, 8 and 16
  1438. if the alignment of all pointers is correct.
  1439. (spread_scalar): Likewise.
  1440. * intrinsics/pack_generic.c (pack): Likewise.
  1441. Use GFD_DTYPE_TYPE_SIZE to avoid nested switch statements.
  1442. * intrinsics/unpack_generic.c (unpack1): Likewise.
  1443. (unpack0): Likewise.
  1444. * runtime/in_pack_generic.c (internal_pack): Likewise.
  1445. * runtime/in_unpack_generic.c (internal_unpack): Likewise.
  1446. 2008-04-09 Jakub Jelinek <jakub@redhat.com>
  1447. * io/list_read.c (snprintf): Define if HAVE_SNPRINTF isn't defined.
  1448. (nml_read_obj): Add nml_err_msg_size argument. Pass it down to
  1449. recursive call. Use snprintf instead of sprintf when %s nl->var_name
  1450. is used.
  1451. (nml_get_obj_data): Add nml_err_msg_size argument. Pass it down to
  1452. nml_read_obj call. Use snprintf instead of sprintf when %s
  1453. nl->var_name is used. Pass nml_err_msg to nml_parse_qualifier instead
  1454. of parse_err_msg array. Append " for namelist variable " and
  1455. nl->var_name to it.
  1456. (namelist_read): Increase size of nml_err_msg array to 200. Pass
  1457. sizeof nml_err_msg as extra argument to nml_get_obj_data.
  1458. 2008-04-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  1459. PR fortran/25829 28655
  1460. * io/open.c (edit_modes): Set flags.async. (new_unit) Set flags.async
  1461. and flags.status. (st_open): Initialize flags.async.
  1462. * io/list_read.c (read_charactor): Use delim_status instead of
  1463. flags.delim.
  1464. * io/read.c (read_x): Use pad_status instead of flags.pad.
  1465. * io/inquire.c (inquire_via_unit): Add new checks.
  1466. (inquire_via_filename): Likewise.
  1467. * io/io.h (st_parameter_inquire): Add new flags.
  1468. (st_parameter_dt): Likewise.
  1469. * io/unit.c (get_internal_unit): Set flags.async. (init_units): Set
  1470. flags.async.
  1471. * io/transfer.c: Add delim and pad option arrays. (read_sf): Use
  1472. pad_status instead of flags.pad. (read_block): Likewise.
  1473. (data_transfer_init): Set flags.async and add checks.
  1474. * io/write.c (write_character): Use delim_status.
  1475. (list_formatted_write_scalar): Likewise. (nml_write_obj): Likewise.
  1476. (namelist_write): Likewise.
  1477. 2008-04-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  1478. PR fortran/25829 28655
  1479. * gfortran.map: Add new symbol, _gfortran_st_wait.
  1480. * libgfortran.h (st_paramter_common): Add new I/O parameters.
  1481. * open.c (st_option decimal_opt[], st_option encoding_opt[],
  1482. st_option round_opt[], st_option sign_opt[], st_option async_opt[]): New
  1483. parameter option arrays. (edit_modes): Add checks for new parameters.
  1484. (new_unit): Likewise. (st_open): Likewise.
  1485. * list_read.c (CASE_SEPERATORS): Add ';' as a valid separator.
  1486. (eat_separator): Handle deimal comma. (read_logical): Fix whitespace.
  1487. (parse_real): Handle decimal comma. (read_real): Handle decimal comma.
  1488. * read.c (read_a): Use decimal status flag to allow comma in place of a
  1489. decimal point. (read_f): Allow comma as acceptable character in float.
  1490. According to decimal flag, substitute a period for a comma.
  1491. (read_x): If decimal status flag is comma, disable the read_comma flag,
  1492. not allowing comma as a delimiter, an extension otherwise.
  1493. * io.h: (unit_decimal, unit_encoding, unit_round, unit_sign,
  1494. unit_async): New enumerators. Add all new I/O parameters.
  1495. * unix.c (unix_stream, int_stream): Add io_mode asychronous I/O control.
  1496. (move_pos_offset, fd_alloc_w_at): Fix some whitespace.
  1497. (fd_sfree): Use new enumerator. (fd_read): Likewise.
  1498. (fd_write): Likewise. (fd_close): Fix whitespace.
  1499. (fd_open): Use new enumertors. (tempfile, regular_file,
  1500. open_external): Fix whitespace. (output_stream, error_stream): Set
  1501. method. (stream_offset): Fix whitespace.
  1502. * transfer.c: (st_option decimal_opt[], sign_opt[], blank_opt[]): New
  1503. option arrays. (formatted_transfer_scalar): Set sf_read_comma flag
  1504. based on new decimal_status flag. (data_transfer_init): Initialize new
  1505. parameters. Add checks for decimal, sign, and blank. (st_wait): New stub.
  1506. * format.c: (format_lex): Add format specifiers DP, DC, and D.
  1507. (parse_format_list): Parse the new specifiers.
  1508. * write.c (write_decimal): Use new sign enumerators to set the sign.
  1509. (write_complex): Handle decimal comma and semi-colon separator.
  1510. (nml_write_obj): Likewise.
  1511. * write_float.def: Revise sign enumerators. (calculate_sign): Use new
  1512. sign enumerators. (output_float): Likewise. Use new decimal_status flag
  1513. to set the decimal character to a point or a comma.
  1514. 2008-03-28 Thomas Koenig <tkoenig@gcc.gnu.org>
  1515. PR libfortran/32972
  1516. PR libfortran/32512
  1517. * Makefile.am: Add new variable, i_spread_c, containing
  1518. pack_i1.c, pack_i2.c, pack_i4.c, pack_i8.c, spread_i16.c,
  1519. spread_r4.c, spread_r8.c, spread_r10.c, spread_r16.c,
  1520. spread_c4.c, spread_c8.c, spread_c10.c, spread_c16.c.
  1521. * Makefile.in: Regenerated.
  1522. * libgfortran.h: Add prototypes for spread_i1, spread_i2,
  1523. spread_i4, spread_i8, spread_i16, spread_r4, spread_r8,
  1524. spread_c4, spread_c8, spread_c10, spread_c16,
  1525. spread_scalar_i1, spread_scalar_i2, spread_scalar_i4,
  1526. spread_scalar_i8, spread_scalar_i16, spread_scalar_r4
  1527. spread_scalar_r8, spread_scalar_c4, spread_scalar_c8,
  1528. spread_scalar_c10 and spread_scalar_c16.
  1529. Add macros to isolate both type and size information
  1530. from array descriptors with a single mask operation.
  1531. * intrinsics/spread_generic.c: Add calls to specific
  1532. spread functions.
  1533. * m4/spread.m4: New file.
  1534. * generated/spread_i1.c: New file.
  1535. * generated/spread_i2.c: New file.
  1536. * generated/spread_i4.c: New file.
  1537. * generated/spread_i8.c: New file.
  1538. * generated/spread_i16.c: New file.
  1539. * generated/spread_r4.c: New file.
  1540. * generated/spread_r8.c: New file.
  1541. * generated/spread_r10.c: New file.
  1542. * generated/spread_r16.c: New file.
  1543. * generated/spread_c4.c: New file.
  1544. * generated/spread_c8.c: New file.
  1545. * generated/spread_c10.c: New file.
  1546. * generated/spread_c16.c: New file.
  1547. 2008-03-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  1548. PR libfortran/35699
  1549. * io/transfer.c (write_buf): Don't pad the record, just return if the
  1550. data is NULL. (next_record_w): If there are bytes left in the record
  1551. for unformatted direct I/O, pad out the record with zero bytes.
  1552. 2008-03-28 Tobias Burnus <burnus@net-b.de>
  1553. PR fortran/35721
  1554. * intrinsics/associated.c (associated): Ignore different
  1555. stride of pointer vs. target if only one element is referred.
  1556. 2008-03-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  1557. * io/unix.c (fd_close): Do not close STDIN.
  1558. 2008-03-23 Thomas Koenig <tkoenig@gcc.gnu.org>
  1559. PR libfortran/32972
  1560. * Makefile.am: Add new variable, i_unpack_c, containing
  1561. unpack_i1.c, unpack_i2.c, unpack_i4.c, unpack_i8.c,
  1562. unpack_i16.c, unpack_r4.c, unpack_r8.c, unpack_r10.c,
  1563. unpack_r16.c, unpack_c4.c, unpack_c8.c, unpack_c10.c
  1564. and unpack_c16.c
  1565. Add i_unpack_c to gfor_built_src.
  1566. Add rule to generate i_unpack_c from m4/unpack.m4.
  1567. * Makefile.in: Regenerated.
  1568. * libgfortran.h: Add prototypes for unpack0_i1, unpack0_i2,
  1569. unpack0_i4, unpack0_i8, unpack0_i16, unpack0_r4, unpack0_r8,
  1570. unpack0_r10, unpack0_r16, unpack0_c4, unpack0_c8, unpack0_c10,
  1571. unpack0_c16, unpack1_i1, unpack1_i2, unpack1_i4, unpack1_i8,
  1572. unpack1_i16, unpack1_r4, unpack1_r8, unpack1_r10, unpack1_r16,
  1573. unpack1_c4, unpack1_c8, unpack1_c10 and unpack1_c16.
  1574. * intrinsics/pack_generic.c (unpack1): Add calls to specific
  1575. unpack1 functions.
  1576. (unpack0): Add calls to specific unpack0 functions.
  1577. * m4/unpack.m4: New file.
  1578. * generated/unpack_i1.c: New file.
  1579. * generated/unpack_i2.c: New file.
  1580. * generated/unpack_i4.c: New file.
  1581. * generated/unpack_i8.c: New file.
  1582. * generated/unpack_i16.c: New file.
  1583. * generated/unpack_r4.c: New file.
  1584. * generated/unpack_r8.c: New file.
  1585. * generated/unpack_r10.c: New file.
  1586. * generated/unpack_r16.c: New file.
  1587. * generated/unpack_c4.c: New file.
  1588. * generated/unpack_c8.c: New file.
  1589. * generated/unpack_c10.c: New file.
  1590. * generated/unpack_c16.c: New file.
  1591. 2008-03-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  1592. PR libfortran/35632
  1593. * io/transfer.c (data_transfer_init): Fix whitespace.
  1594. (next_record_w): Truncate the file only if the stream
  1595. position is short of the file end.
  1596. 2008-03-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  1597. * intrinsics/pack_generic.c: Fix typo.
  1598. 2008-03-21 Janne Blomqvist <jb@gcc.gnu.org>
  1599. * gfortran.map: Move erfc_scaled symbols to new symbol node
  1600. GFORTRAN_1.1, thereby fixing ABI bug introduced in r132846.
  1601. 2008-03-21 Thomas Koenig <tkoenig@gcc.gnu.org>
  1602. PR libfortran/32972
  1603. * runtime/in_pack_generic.c (internal_pack): Call correct
  1604. function, pack_i16, for GFC_INTEGER_16.
  1605. 2008-03-21 Thomas Koenig <tkoenig@gcc.gnu.org>
  1606. PR libfortran/32972
  1607. * Makefile.am: Add new variable, i_pack_c, containing
  1608. pack_i1.c, pack_i2.c, pack_i4.c, pack_i8.c, pack_i16.c,
  1609. pack_r4.c, pack_r8.c, pack_r10.c, pack_r16.c, pack_c4.c,
  1610. pack_c8.c, pack_c10.c, pack_c16.c.
  1611. Add m4/pack.m4 to m4_files.
  1612. Add i_pack_c to gfor_built_src.
  1613. Add rule to generate i_pack_c from m4/pack.m4.
  1614. * Makefile.in: Regenerated.
  1615. * libgfortran.h: Add prototypes for pack_i1, pack_i2, pack_i4,
  1616. pack_i8, pack_i16, pack_r4, pack_r8, pack_c4, pack_c8,
  1617. pack_c10, pack_c16.
  1618. * intrinsics/pack_generic.c: Add calls to specific
  1619. pack functions.
  1620. * m4/pack.m4: New file.
  1621. * generated/pack_i1.c: New file.
  1622. * generated/pack_i2.c: New file.
  1623. * generated/pack_i4.c: New file.
  1624. * generated/pack_i8.c: New file.
  1625. * generated/pack_i16.c: New file.
  1626. * generated/pack_r4.c: New file.
  1627. * generated/pack_r8.c: New file.
  1628. * generated/pack_r10.c: New file.
  1629. * generated/pack_r16.c: New file.
  1630. * generated/pack_c4.c: New file.
  1631. * generated/pack_c8.c: New file.
  1632. * generated/pack_c10.c: New file.
  1633. * generated/pack_c16.c: New file.
  1634. 2008-03-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  1635. PR libfortran/35627
  1636. * io/list_read.c (free_line): Clear the line buffer enable flag and
  1637. reset the index into line_buffer, aka item_count.
  1638. (next_char): Cleanup whitespace.
  1639. (read_logical): Use unget_char to assure that the first character of the
  1640. bad logical is saved in case it is part of an object name. Remove the
  1641. clearing of index and flag that is now in free_line.
  1642. (read_real): Likewise.
  1643. 2008-03-19 Thomas Koenig <tkoenig@gcc.gnu.org>
  1644. PR libfortran/32972
  1645. * runtime/in_pack_generic.c (internal_pack): Fix typo in
  1646. last commit.
  1647. 2008-03-19 Thomas Koenig <tkoenig@gcc.gnu.org>
  1648. PR libfortran/32972
  1649. * Makefile.am (in_pack_c): Add in_pack_i1.c, in_pack_i2.c,
  1650. in_pack_r4.c, in_pack_r8.c, in_pack_r10.c and in_pack_r16.c.
  1651. (in_unpack_c): Add in_unpack_i1.c, in_unpack_i2.c,
  1652. in_unpack_r4.c, in_unpack_r8.c, in_unpack_r10.c and
  1653. in_unpack_r16.c.
  1654. * Makefile.in: Regenerate.
  1655. * libgfortran.h: Add prototypes for internal_pack_1,
  1656. internal_pack_2, internal_pack_16, internal_pack_r4,
  1657. internal_pack_r8, internal_pack_r10, internal_pack_r16,
  1658. internal_pack_c10 and internal_pack_c16. Add prototypes for
  1659. internal_unpack_1, internal_unpack_2, internal_unpack_16,
  1660. internal_unpack_r4, internal_unpack_r8, internal_unpack_r10,
  1661. internal_unpack_r16, internal_unpack_c10 and
  1662. internal_unpack_c16.
  1663. * runtime/in_pack_generic.c (internal_pack): Use sizeof instead
  1664. of hardwired sizes.
  1665. Add calls to internal_pack_1, internal_pack_2,
  1666. internal_pack_16, internal_pack_r4, internal_pack_r8,
  1667. internal_pack_r10, internal_pack_r16, internal_pack_c10 and
  1668. internal_pack_c16.
  1669. * runtime/in_unpack_generic.c (internal_unpack): Use sizeof
  1670. instead of hardwired sizes.
  1671. Add calls to internal_unpack_1, internal_unpack_2,
  1672. internal_unpack_16, internal_unpack_r4, internal_unpack_r8,
  1673. internal_unpack_r10, internal_unpack_r16, internal_unpack_c10
  1674. and internal_unpack_c16.
  1675. * generated/in_pack_r4.c: New file.
  1676. * generated/in_pack_i2.c: New file.
  1677. * generated/in_unpack_i1.c: New file.
  1678. * generated/in_pack_r10.c: New file.
  1679. * generated/in_unpack_r4.c: New file.
  1680. * generated/in_unpack_i2.c: New file.
  1681. * generated/in_unpack_r16.c: New file.
  1682. * generated/in_pack_r8.c: New file.
  1683. * generated/in_unpack_r10.c: New file.
  1684. * generated/in_unpack_r8.c: New file.
  1685. * generated/in_pack_r16.c: New file.
  1686. * generated/in_pack_i1.c: New file.
  1687. 2008-03-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  1688. PR libfortran/35617
  1689. * io/list_read.c (eat_separator): If next character after eatline is '!'
  1690. then eatline again.
  1691. 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  1692. * aclocal.m4: Regenerate.
  1693. * configure: Likewise.
  1694. * Makefile.in: Likewise.
  1695. 2008-03-12 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  1696. PR libfortran/35524
  1697. * intrinsics/erfc_scaled_inc.c: Only define the long double
  1698. variant of erfc_scaled if expl is available.
  1699. 2008-03-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  1700. PR libfortran/32812
  1701. * intrinsics/random.c (scramble_seed, unscramble_seed): New
  1702. functions.
  1703. (random_seed_i4): Scramble the seed the user gives us before
  1704. storing it, and unscramble it when we return it back later.
  1705. 2008-03-05 Hans-Peter Nilsson <hp@axis.com>
  1706. PR libfortran/35293
  1707. * io/unix.c (fd_truncate): Fold s->special_file case into
  1708. success case of ftruncate/chsize call instead of the failure case.
  1709. Make failure case actually return failure. Properly update stream
  1710. pointers on failure. Call runtime_error for targets without
  1711. neither ftruncate nor chsize where such a call would be needed.
  1712. 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  1713. PR fortran/33197
  1714. * intrinsics/erfc_scaled_inc.c: New file.
  1715. * intrinsics/erfc_scaled.c: New file.
  1716. * gfortran.map (GFORTRAN_1.0): Add _gfortran_erfc_scaled_r*.
  1717. * Makefile.am: Add intrinsics/erfc_scaled.c.
  1718. * config.h.in: Regenerate.
  1719. * configure: Regenerate.
  1720. * Makefile.in: Regenerate.
  1721. 2008-03-01 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  1722. PR libfortran/35355
  1723. * intrinsics/time_1.h (__time_1): Fix calculation of user_usec
  1724. for mingw.
  1725. 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
  1726. PR libfortran/35063
  1727. * io/unit.c (destroy_unit_mutex): Call __gthread_mutex_destroy
  1728. instead of macro kludge.
  1729. 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
  1730. PR fortran/29549
  1731. * Makefile.am: Add -fcx-fortran-rules to AM_CFLAGS for all of
  1732. libgfortran.
  1733. * Makefile.in: Regenerated.
  1734. 2008-02-25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  1735. * m4/ifunction_logical.m4: Add casts to get rid of warnings.
  1736. * generated/all_l1.c: Regenerate.
  1737. * generated/all_l2.c: Regenerate.
  1738. * generated/all_l4.c: Regenerate.
  1739. * generated/all_l8.c: Regenerate.
  1740. * generated/all_l16.c: Regenerate.
  1741. * generated/any_l1.c: Regenerate.
  1742. * generated/any_l2.c: Regenerate.
  1743. * generated/any_l4.c: Regenerate.
  1744. * generated/any_l8.c: Regenerate.
  1745. * generated/any_l16.c: Regenerate.
  1746. * generated/count_1_l.c: Regenerate.
  1747. * generated/count_2_l.c: Regenerate.
  1748. * generated/count_4_l.c: Regenerate.
  1749. * generated/count_8_l.c: Regenerate.
  1750. * generated/count_16_l.c: Regenerate.
  1751. 2008-02-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  1752. PR libfortran/32841
  1753. * acinclude.m4: Don't use HAVE_MATH_H.
  1754. * configure: Regenerate.
  1755. 2008-02-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  1756. PR libfortran/35132
  1757. * io/transfer.c (next_record_w): Truncate after the last record for
  1758. STREAM I/O.
  1759. PR libfortran/34954
  1760. * io/transfer.c (data_transfer_init): Initialize dtp->rec if writing.
  1761. PR libfortran/34974
  1762. * io/transfer.c (formatted_transfer_scalar): Flush the buffer if skips
  1763. is less than zero. (next_record_w): Use sseek to position the file to
  1764. the max position reached.
  1765. 2008-02-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  1766. PR libfortran/35036
  1767. * write_float.def (output_float): Add error checks for zero digits
  1768. after decimal point in E and D format specifiers.
  1769. 2008-02-10 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  1770. PR libfortran/35063
  1771. * io/unit.c (destroy_unit_mutex): New function that uses
  1772. __gthread_mutex_destroy_function or pthread_mutex_destroy after
  1773. unlocking and before free_mem for final closure of I/O unit.
  1774. (delete_root): Use new function.
  1775. (free_internal_unit): Likewise.
  1776. (close_unit_1): Likewise.
  1777. 2008-02-02 Thomas Koenig <tkoenig@gcc.gnu.org>
  1778. PR libfortran/35001
  1779. * m4/shape.m4: Return 0 for extents <= 0.
  1780. * generated/shape_i4.c: Regenerated.
  1781. * generated/shape_i8.c: Regenerated.
  1782. * generated/shape_i16.c: Regenerated.
  1783. 2008-01-27 Thomas Koenig <tkoenig@gcc.gnu.org>
  1784. PR libfortran/34980
  1785. * m4/shape.m4: If return array is empty, return early.
  1786. * generated/shape_i4.c: Regenerated.
  1787. * generated/shape_i8.c: Regenerated.
  1788. * generated/shape_i16.c: Regenerated.
  1789. 2008-01-26 Thomas Koenig <tkoenig@gcc.gnu.org>
  1790. PR libfofortran/34887
  1791. * io/transfer.c (next_record_w): Always move to the farthest
  1792. position when completing the record (also when we are
  1793. processing a slash edit descriptor).
  1794. 2008-01-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  1795. PR libfortran/34876
  1796. * io/transfer.c (write_buf): Handle case of zero sized array.
  1797. (transfer_array): Set data pointer to NULL and size to zero. Then
  1798. make a data transfer and return.
  1799. 2008-01-24 David Edelsohn <edelsohn@gnu.org>
  1800. * configure: Regenerate.
  1801. 2008-01-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  1802. PR libfortran/34795
  1803. * io/inquire.c (inquire_via_unit): If a unit is opened, return values
  1804. according to the open action for DIRECT, FORMATTED, and UNFORMATTED.
  1805. (inquire_via_filename): Return "UNKNOWN" for SEQUENTIAL, DIRECT,
  1806. FORAMATTED, and UNFORMATTED inquiries.
  1807. * io/unix.c (inquire_sequential): Return "UNKNOWN" when appropriate
  1808. for files that are not opened. (inquire_direct): Same.
  1809. (inquire_formatted): Same.
  1810. 2008-01-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  1811. PR libfortran/34782
  1812. * io/transfer.c (formatted_transfer_scalar): Set max_pos to the greater
  1813. of the current max_pos or the newly calculated position.
  1814. 2008-01-18 Tobias Burnus <burnus@net-b.de>
  1815. * io/write.c (write_real): Increase default precision
  1816. for REAL(16) by one.
  1817. 2008-01-16 Steven Bosscher <steven@gcc.gnu.org>
  1818. PR libfortran/34669
  1819. * mk-kinds-h.sh: Compile with -S to avoid calling the assembler,
  1820. to avoid piping the -fdump-parse-tree output to the assembler
  1821. when configuring with -pipe.
  1822. * mk-sik-inc.sh: Likewise.
  1823. * mk-srk-inc.sh: Likewise.
  1824. 2008-01-15 Thomas Koenig <tkoenig@gcc.gnu.org>
  1825. PR libfortran/34671
  1826. * gfortran.am: Added _gfortran_all_l1, _gfortran_all_l2,
  1827. _gfortran_any_l1, _gfortran_any_l2, -28,15 _gfortran_count_1_l,
  1828. _gfortran_count_16_l, _gfortran_count_2_l, _gfortran_count_4_l and
  1829. _gfortran_count_8_l Removed _gfortran_count_16_l16,
  1830. _gfortran_count_16_l4, _gfortran_count_16_l8,
  1831. _gfortran_count_4_l16, _gfortran_count_4_l4, _gfortran_count_4_l8,
  1832. _gfortran_count_8_l16, _gfortran_count_8_l4 and
  1833. _gfortran_count_8_l8.
  1834. * Makefile.am: Added generated/any_l1.c and generated/any_l2.c to
  1835. i_any_c. Added generated/all_l1. and generated/all_l2.c to
  1836. i_all_c. Removed generated/count_4_l4.c, generated/count_8_l4.c,
  1837. generated/count_16_l4.c, generated/count_4_l8.c,
  1838. generated/count_8_l8.c, generated/count_16_l8.c,
  1839. generated/count_4_l16.c, generated/count_8_l16.c, and
  1840. generated/count_16_l16.c from i_count_c. Added count_1_l.c,
  1841. count_2_l.c, count_4_l.c, count_8_l.c and count_16_l.c to
  1842. i_count_c. I_M4_DEPS2 depends on ifunction_logical.m4, for
  1843. any of the files generated from all.m4, any.m4 and count.m4.
  1844. * Makefile.in: Regenerated.
  1845. * m4/ifunction_logical.m4: New file. Use
  1846. GFC_LOGICAL_1 pointer for access to source arrays.
  1847. * m4/any.m4: Include ifunction_logical.m4 instead of
  1848. ifunction.m4. Don't check atype_name.
  1849. * m4/all.m4: Likewise.
  1850. * m4/count.m4: Likewise.
  1851. * generated/any_l1.c: New file.
  1852. * generated/any_l2.c: New file.
  1853. * generated/all_l1.c: New file.
  1854. * generated/count_1_l.c: New file.
  1855. * generated/count_2_l.c: New file.
  1856. * generated/count_4_l.c: New file.
  1857. * generated/count_8_l.c: New file.
  1858. * generated/count_16_l.c: New file.
  1859. * generated/any_l4.c: Regenerated.
  1860. * generated/any_l8.c: Regenerated.
  1861. * generated/any_l16.c: Regenerated.
  1862. * generated/all_l4.c: Regenerated.
  1863. * generated/all_l8.c: Regenerated.
  1864. * generated/all_l16.c: Regenerated.
  1865. * generated/count_4_l4.c: Removed.
  1866. * generated/count_4_l8.c: Removed.
  1867. * generated/count_4_l16.c: Removed.
  1868. * generated/count_8_l4.c: Removed.
  1869. * generated/count_8_l8.c: Removed.
  1870. * generated/count_8_l16.c: Removed.
  1871. * generated/count_16_l4.c: Removed.
  1872. * generated/count_16_l8.c: Removed.
  1873. * generated/count_16_l16.c: Removed.
  1874. 2008-01-13 Thomas Koenig <tkoenig@gcc.gnu.org>
  1875. PR libfortran/34746
  1876. * m4/iforeach.m4 (name`'rtype_qual`_'atype_code): Use %ld
  1877. in printf format for all bounds checking; cast all
  1878. integer-like arguments to runtime_error() to long int.
  1879. (`m'name`'rtype_qual`_'atype_code): Likewise.
  1880. (`s'name`'rtype_qual`_'atype_code): Likewise.
  1881. * m4/ifunction.m4 (name`'rtype_qual`_'atype_code): Likewise.
  1882. (`m'name`'rtype_qual`_'atype_code): Likewise.
  1883. (`s'name`'rtype_qual`_'atype_code): Likewise.
  1884. * generated/all_l16.c: Regenerated.
  1885. * generated/all_l4.c: Regenerated.
  1886. * generated/all_l8.c: Regenerated.
  1887. * generated/any_l16.c: Regenerated.
  1888. * generated/any_l4.c: Regenerated.
  1889. * generated/any_l8.c: Regenerated.
  1890. * generated/count_16_l16.c: Regenerated.
  1891. * generated/count_16_l4.c: Regenerated.
  1892. * generated/count_16_l8.c: Regenerated.
  1893. * generated/count_4_l16.c: Regenerated.
  1894. * generated/count_4_l4.c: Regenerated.
  1895. * generated/count_4_l8.c: Regenerated.
  1896. * generated/count_8_l16.c: Regenerated.
  1897. * generated/count_8_l4.c: Regenerated.
  1898. * generated/count_8_l8.c: Regenerated.
  1899. * generated/maxloc0_16_i1.c: Regenerated.
  1900. * generated/maxloc0_16_i16.c: Regenerated.
  1901. * generated/maxloc0_16_i2.c: Regenerated.
  1902. * generated/maxloc0_16_i4.c: Regenerated.
  1903. * generated/maxloc0_16_i8.c: Regenerated.
  1904. * generated/maxloc0_16_r10.c: Regenerated.
  1905. * generated/maxloc0_16_r16.c: Regenerated.
  1906. * generated/maxloc0_16_r4.c: Regenerated.
  1907. * generated/maxloc0_16_r8.c: Regenerated.
  1908. * generated/maxloc0_4_i1.c: Regenerated.
  1909. * generated/maxloc0_4_i16.c: Regenerated.
  1910. * generated/maxloc0_4_i2.c: Regenerated.
  1911. * generated/maxloc0_4_i4.c: Regenerated.
  1912. * generated/maxloc0_4_i8.c: Regenerated.
  1913. * generated/maxloc0_4_r10.c: Regenerated.
  1914. * generated/maxloc0_4_r16.c: Regenerated.
  1915. * generated/maxloc0_4_r4.c: Regenerated.
  1916. * generated/maxloc0_4_r8.c: Regenerated.
  1917. * generated/maxloc0_8_i1.c: Regenerated.
  1918. * generated/maxloc0_8_i16.c: Regenerated.
  1919. * generated/maxloc0_8_i2.c: Regenerated.
  1920. * generated/maxloc0_8_i4.c: Regenerated.
  1921. * generated/maxloc0_8_i8.c: Regenerated.
  1922. * generated/maxloc0_8_r10.c: Regenerated.
  1923. * generated/maxloc0_8_r16.c: Regenerated.
  1924. * generated/maxloc0_8_r4.c: Regenerated.
  1925. * generated/maxloc0_8_r8.c: Regenerated.
  1926. * generated/maxloc1_16_i1.c: Regenerated.
  1927. * generated/maxloc1_16_i16.c: Regenerated.
  1928. * generated/maxloc1_16_i2.c: Regenerated.
  1929. * generated/maxloc1_16_i4.c: Regenerated.
  1930. * generated/maxloc1_16_i8.c: Regenerated.
  1931. * generated/maxloc1_16_r10.c: Regenerated.
  1932. * generated/maxloc1_16_r16.c: Regenerated.
  1933. * generated/maxloc1_16_r4.c: Regenerated.
  1934. * generated/maxloc1_16_r8.c: Regenerated.
  1935. * generated/maxloc1_4_i1.c: Regenerated.
  1936. * generated/maxloc1_4_i16.c: Regenerated.
  1937. * generated/maxloc1_4_i2.c: Regenerated.
  1938. * generated/maxloc1_4_i4.c: Regenerated.
  1939. * generated/maxloc1_4_i8.c: Regenerated.
  1940. * generated/maxloc1_4_r10.c: Regenerated.
  1941. * generated/maxloc1_4_r16.c: Regenerated.
  1942. * generated/maxloc1_4_r4.c: Regenerated.
  1943. * generated/maxloc1_4_r8.c: Regenerated.
  1944. * generated/maxloc1_8_i1.c: Regenerated.
  1945. * generated/maxloc1_8_i16.c: Regenerated.
  1946. * generated/maxloc1_8_i2.c: Regenerated.
  1947. * generated/maxloc1_8_i4.c: Regenerated.
  1948. * generated/maxloc1_8_i8.c: Regenerated.
  1949. * generated/maxloc1_8_r10.c: Regenerated.
  1950. * generated/maxloc1_8_r16.c: Regenerated.
  1951. * generated/maxloc1_8_r4.c: Regenerated.
  1952. * generated/maxloc1_8_r8.c: Regenerated.
  1953. * generated/maxval_i1.c: Regenerated.
  1954. * generated/maxval_i16.c: Regenerated.
  1955. * generated/maxval_i2.c: Regenerated.
  1956. * generated/maxval_i4.c: Regenerated.
  1957. * generated/maxval_i8.c: Regenerated.
  1958. * generated/maxval_r10.c: Regenerated.
  1959. * generated/maxval_r16.c: Regenerated.
  1960. * generated/maxval_r4.c: Regenerated.
  1961. * generated/maxval_r8.c: Regenerated.
  1962. * generated/minloc0_16_i1.c: Regenerated.
  1963. * generated/minloc0_16_i16.c: Regenerated.
  1964. * generated/minloc0_16_i2.c: Regenerated.
  1965. * generated/minloc0_16_i4.c: Regenerated.
  1966. * generated/minloc0_16_i8.c: Regenerated.
  1967. * generated/minloc0_16_r10.c: Regenerated.
  1968. * generated/minloc0_16_r16.c: Regenerated.
  1969. * generated/minloc0_16_r4.c: Regenerated.
  1970. * generated/minloc0_16_r8.c: Regenerated.
  1971. * generated/minloc0_4_i1.c: Regenerated.
  1972. * generated/minloc0_4_i16.c: Regenerated.
  1973. * generated/minloc0_4_i2.c: Regenerated.
  1974. * generated/minloc0_4_i4.c: Regenerated.
  1975. * generated/minloc0_4_i8.c: Regenerated.
  1976. * generated/minloc0_4_r10.c: Regenerated.
  1977. * generated/minloc0_4_r16.c: Regenerated.
  1978. * generated/minloc0_4_r4.c: Regenerated.
  1979. * generated/minloc0_4_r8.c: Regenerated.
  1980. * generated/minloc0_8_i1.c: Regenerated.
  1981. * generated/minloc0_8_i16.c: Regenerated.
  1982. * generated/minloc0_8_i2.c: Regenerated.
  1983. * generated/minloc0_8_i4.c: Regenerated.
  1984. * generated/minloc0_8_i8.c: Regenerated.
  1985. * generated/minloc0_8_r10.c: Regenerated.
  1986. * generated/minloc0_8_r16.c: Regenerated.
  1987. * generated/minloc0_8_r4.c: Regenerated.
  1988. * generated/minloc0_8_r8.c: Regenerated.
  1989. * generated/minloc1_16_i1.c: Regenerated.
  1990. * generated/minloc1_16_i16.c: Regenerated.
  1991. * generated/minloc1_16_i2.c: Regenerated.
  1992. * generated/minloc1_16_i4.c: Regenerated.
  1993. * generated/minloc1_16_i8.c: Regenerated.
  1994. * generated/minloc1_16_r10.c: Regenerated.
  1995. * generated/minloc1_16_r16.c: Regenerated.
  1996. * generated/minloc1_16_r4.c: Regenerated.
  1997. * generated/minloc1_16_r8.c: Regenerated.
  1998. * generated/minloc1_4_i1.c: Regenerated.
  1999. * generated/minloc1_4_i16.c: Regenerated.
  2000. * generated/minloc1_4_i2.c: Regenerated.
  2001. * generated/minloc1_4_i4.c: Regenerated.
  2002. * generated/minloc1_4_i8.c: Regenerated.
  2003. * generated/minloc1_4_r10.c: Regenerated.
  2004. * generated/minloc1_4_r16.c: Regenerated.
  2005. * generated/minloc1_4_r4.c: Regenerated.
  2006. * generated/minloc1_4_r8.c: Regenerated.
  2007. * generated/minloc1_8_i1.c: Regenerated.
  2008. * generated/minloc1_8_i16.c: Regenerated.
  2009. * generated/minloc1_8_i2.c: Regenerated.
  2010. * generated/minloc1_8_i4.c: Regenerated.
  2011. * generated/minloc1_8_i8.c: Regenerated.
  2012. * generated/minloc1_8_r10.c: Regenerated.
  2013. * generated/minloc1_8_r16.c: Regenerated.
  2014. * generated/minloc1_8_r4.c: Regenerated.
  2015. * generated/minloc1_8_r8.c: Regenerated.
  2016. * generated/minval_i1.c: Regenerated.
  2017. * generated/minval_i16.c: Regenerated.
  2018. * generated/minval_i2.c: Regenerated.
  2019. * generated/minval_i4.c: Regenerated.
  2020. * generated/minval_i8.c: Regenerated.
  2021. * generated/minval_r10.c: Regenerated.
  2022. * generated/minval_r16.c: Regenerated.
  2023. * generated/minval_r4.c: Regenerated.
  2024. * generated/minval_r8.c: Regenerated.
  2025. * generated/product_c10.c: Regenerated.
  2026. * generated/product_c16.c: Regenerated.
  2027. * generated/product_c4.c: Regenerated.
  2028. * generated/product_c8.c: Regenerated.
  2029. * generated/product_i1.c: Regenerated.
  2030. * generated/product_i16.c: Regenerated.
  2031. * generated/product_i2.c: Regenerated.
  2032. * generated/product_i4.c: Regenerated.
  2033. * generated/product_i8.c: Regenerated.
  2034. * generated/product_r10.c: Regenerated.
  2035. * generated/product_r16.c: Regenerated.
  2036. * generated/product_r4.c: Regenerated.
  2037. * generated/product_r8.c: Regenerated.
  2038. * generated/sum_c10.c: Regenerated.
  2039. * generated/sum_c16.c: Regenerated.
  2040. * generated/sum_c4.c: Regenerated.
  2041. * generated/sum_c8.c: Regenerated.
  2042. * generated/sum_i1.c: Regenerated.
  2043. * generated/sum_i16.c: Regenerated.
  2044. * generated/sum_i2.c: Regenerated.
  2045. * generated/sum_i4.c: Regenerated.
  2046. * generated/sum_i8.c: Regenerated.
  2047. * generated/sum_r10.c: Regenerated.
  2048. * generated/sum_r16.c: Regenerated.
  2049. * generated/sum_r4.c: Regenerated.
  2050. * generated/sum_r8.c: Regenerated.
  2051. 2008-01-11 Thomas Koenig <tkoenig@gcc.gnu.org>
  2052. PR libfortran/34670
  2053. * m4/iparm.m4 (upcase): New macro (copied from the m4 manual).
  2054. (u_name): New macro for the upper case name of the intrinsic.
  2055. * m4/iforeach.m4 (name`'rtype_qual`_'atype_code): Add
  2056. bounds checking and rank check, depending on
  2057. compile_options.bounds_check.
  2058. (`m'name`'rtype_qual`_'atype_code): Likewise.
  2059. (`s'name`'rtype_qual`_'atype_code): Likewise.
  2060. * m4/ifunction.m4 (name`'rtype_qual`_'atype_code): Add
  2061. bounds checking and rank check, depending on
  2062. compile_options.bounds_check.
  2063. (`m'name`'rtype_qual`_'atype_code): Likewise.
  2064. (`s'name`'rtype_qual`_'atype_code): Likewise.
  2065. * generated/all_l16.c: Regenerated.
  2066. * generated/all_l4.c: Regenerated.
  2067. * generated/all_l8.c: Regenerated.
  2068. * generated/any_l16.c: Regenerated.
  2069. * generated/any_l4.c: Regenerated.
  2070. * generated/any_l8.c: Regenerated.
  2071. * generated/count_16_l16.c: Regenerated.
  2072. * generated/count_16_l4.c: Regenerated.
  2073. * generated/count_16_l8.c: Regenerated.
  2074. * generated/count_4_l16.c: Regenerated.
  2075. * generated/count_4_l4.c: Regenerated.
  2076. * generated/count_4_l8.c: Regenerated.
  2077. * generated/count_8_l16.c: Regenerated.
  2078. * generated/count_8_l4.c: Regenerated.
  2079. * generated/count_8_l8.c: Regenerated.
  2080. * generated/maxloc0_16_i1.c: Regenerated.
  2081. * generated/maxloc0_16_i16.c: Regenerated.
  2082. * generated/maxloc0_16_i2.c: Regenerated.
  2083. * generated/maxloc0_16_i4.c: Regenerated.
  2084. * generated/maxloc0_16_i8.c: Regenerated.
  2085. * generated/maxloc0_16_r10.c: Regenerated.
  2086. * generated/maxloc0_16_r16.c: Regenerated.
  2087. * generated/maxloc0_16_r4.c: Regenerated.
  2088. * generated/maxloc0_16_r8.c: Regenerated.
  2089. * generated/maxloc0_4_i1.c: Regenerated.
  2090. * generated/maxloc0_4_i16.c: Regenerated.
  2091. * generated/maxloc0_4_i2.c: Regenerated.
  2092. * generated/maxloc0_4_i4.c: Regenerated.
  2093. * generated/maxloc0_4_i8.c: Regenerated.
  2094. * generated/maxloc0_4_r10.c: Regenerated.
  2095. * generated/maxloc0_4_r16.c: Regenerated.
  2096. * generated/maxloc0_4_r4.c: Regenerated.
  2097. * generated/maxloc0_4_r8.c: Regenerated.
  2098. * generated/maxloc0_8_i1.c: Regenerated.
  2099. * generated/maxloc0_8_i16.c: Regenerated.
  2100. * generated/maxloc0_8_i2.c: Regenerated.
  2101. * generated/maxloc0_8_i4.c: Regenerated.
  2102. * generated/maxloc0_8_i8.c: Regenerated.
  2103. * generated/maxloc0_8_r10.c: Regenerated.
  2104. * generated/maxloc0_8_r16.c: Regenerated.
  2105. * generated/maxloc0_8_r4.c: Regenerated.
  2106. * generated/maxloc0_8_r8.c: Regenerated.
  2107. * generated/maxloc1_16_i1.c: Regenerated.
  2108. * generated/maxloc1_16_i16.c: Regenerated.
  2109. * generated/maxloc1_16_i2.c: Regenerated.
  2110. * generated/maxloc1_16_i4.c: Regenerated.
  2111. * generated/maxloc1_16_i8.c: Regenerated.
  2112. * generated/maxloc1_16_r10.c: Regenerated.
  2113. * generated/maxloc1_16_r16.c: Regenerated.
  2114. * generated/maxloc1_16_r4.c: Regenerated.
  2115. * generated/maxloc1_16_r8.c: Regenerated.
  2116. * generated/maxloc1_4_i1.c: Regenerated.
  2117. * generated/maxloc1_4_i16.c: Regenerated.
  2118. * generated/maxloc1_4_i2.c: Regenerated.
  2119. * generated/maxloc1_4_i4.c: Regenerated.
  2120. * generated/maxloc1_4_i8.c: Regenerated.
  2121. * generated/maxloc1_4_r10.c: Regenerated.
  2122. * generated/maxloc1_4_r16.c: Regenerated.
  2123. * generated/maxloc1_4_r4.c: Regenerated.
  2124. * generated/maxloc1_4_r8.c: Regenerated.
  2125. * generated/maxloc1_8_i1.c: Regenerated.
  2126. * generated/maxloc1_8_i16.c: Regenerated.
  2127. * generated/maxloc1_8_i2.c: Regenerated.
  2128. * generated/maxloc1_8_i4.c: Regenerated.
  2129. * generated/maxloc1_8_i8.c: Regenerated.
  2130. * generated/maxloc1_8_r10.c: Regenerated.
  2131. * generated/maxloc1_8_r16.c: Regenerated.
  2132. * generated/maxloc1_8_r4.c: Regenerated.
  2133. * generated/maxloc1_8_r8.c: Regenerated.
  2134. * generated/maxval_i1.c: Regenerated.
  2135. * generated/maxval_i16.c: Regenerated.
  2136. * generated/maxval_i2.c: Regenerated.
  2137. * generated/maxval_i4.c: Regenerated.
  2138. * generated/maxval_i8.c: Regenerated.
  2139. * generated/maxval_r10.c: Regenerated.
  2140. * generated/maxval_r16.c: Regenerated.
  2141. * generated/maxval_r4.c: Regenerated.
  2142. * generated/maxval_r8.c: Regenerated.
  2143. * generated/minloc0_16_i1.c: Regenerated.
  2144. * generated/minloc0_16_i16.c: Regenerated.
  2145. * generated/minloc0_16_i2.c: Regenerated.
  2146. * generated/minloc0_16_i4.c: Regenerated.
  2147. * generated/minloc0_16_i8.c: Regenerated.
  2148. * generated/minloc0_16_r10.c: Regenerated.
  2149. * generated/minloc0_16_r16.c: Regenerated.
  2150. * generated/minloc0_16_r4.c: Regenerated.
  2151. * generated/minloc0_16_r8.c: Regenerated.
  2152. * generated/minloc0_4_i1.c: Regenerated.
  2153. * generated/minloc0_4_i16.c: Regenerated.
  2154. * generated/minloc0_4_i2.c: Regenerated.
  2155. * generated/minloc0_4_i4.c: Regenerated.
  2156. * generated/minloc0_4_i8.c: Regenerated.
  2157. * generated/minloc0_4_r10.c: Regenerated.
  2158. * generated/minloc0_4_r16.c: Regenerated.
  2159. * generated/minloc0_4_r4.c: Regenerated.
  2160. * generated/minloc0_4_r8.c: Regenerated.
  2161. * generated/minloc0_8_i1.c: Regenerated.
  2162. * generated/minloc0_8_i16.c: Regenerated.
  2163. * generated/minloc0_8_i2.c: Regenerated.
  2164. * generated/minloc0_8_i4.c: Regenerated.
  2165. * generated/minloc0_8_i8.c: Regenerated.
  2166. * generated/minloc0_8_r10.c: Regenerated.
  2167. * generated/minloc0_8_r16.c: Regenerated.
  2168. * generated/minloc0_8_r4.c: Regenerated.
  2169. * generated/minloc0_8_r8.c: Regenerated.
  2170. * generated/minloc1_16_i1.c: Regenerated.
  2171. * generated/minloc1_16_i16.c: Regenerated.
  2172. * generated/minloc1_16_i2.c: Regenerated.
  2173. * generated/minloc1_16_i4.c: Regenerated.
  2174. * generated/minloc1_16_i8.c: Regenerated.
  2175. * generated/minloc1_16_r10.c: Regenerated.
  2176. * generated/minloc1_16_r16.c: Regenerated.
  2177. * generated/minloc1_16_r4.c: Regenerated.
  2178. * generated/minloc1_16_r8.c: Regenerated.
  2179. * generated/minloc1_4_i1.c: Regenerated.
  2180. * generated/minloc1_4_i16.c: Regenerated.
  2181. * generated/minloc1_4_i2.c: Regenerated.
  2182. * generated/minloc1_4_i4.c: Regenerated.
  2183. * generated/minloc1_4_i8.c: Regenerated.
  2184. * generated/minloc1_4_r10.c: Regenerated.
  2185. * generated/minloc1_4_r16.c: Regenerated.
  2186. * generated/minloc1_4_r4.c: Regenerated.
  2187. * generated/minloc1_4_r8.c: Regenerated.
  2188. * generated/minloc1_8_i1.c: Regenerated.
  2189. * generated/minloc1_8_i16.c: Regenerated.
  2190. * generated/minloc1_8_i2.c: Regenerated.
  2191. * generated/minloc1_8_i4.c: Regenerated.
  2192. * generated/minloc1_8_i8.c: Regenerated.
  2193. * generated/minloc1_8_r10.c: Regenerated.
  2194. * generated/minloc1_8_r16.c: Regenerated.
  2195. * generated/minloc1_8_r4.c: Regenerated.
  2196. * generated/minloc1_8_r8.c: Regenerated.
  2197. * generated/minval_i1.c: Regenerated.
  2198. * generated/minval_i16.c: Regenerated.
  2199. * generated/minval_i2.c: Regenerated.
  2200. * generated/minval_i4.c: Regenerated.
  2201. * generated/minval_i8.c: Regenerated.
  2202. * generated/minval_r10.c: Regenerated.
  2203. * generated/minval_r16.c: Regenerated.
  2204. * generated/minval_r4.c: Regenerated.
  2205. * generated/minval_r8.c: Regenerated.
  2206. * generated/product_c10.c: Regenerated.
  2207. * generated/product_c16.c: Regenerated.
  2208. * generated/product_c4.c: Regenerated.
  2209. * generated/product_c8.c: Regenerated.
  2210. * generated/product_i1.c: Regenerated.
  2211. * generated/product_i16.c: Regenerated.
  2212. * generated/product_i2.c: Regenerated.
  2213. * generated/product_i4.c: Regenerated.
  2214. * generated/product_i8.c: Regenerated.
  2215. * generated/product_r10.c: Regenerated.
  2216. * generated/product_r16.c: Regenerated.
  2217. * generated/product_r4.c: Regenerated.
  2218. * generated/product_r8.c: Regenerated.
  2219. * generated/sum_c10.c: Regenerated.
  2220. * generated/sum_c16.c: Regenerated.
  2221. * generated/sum_c4.c: Regenerated.
  2222. * generated/sum_c8.c: Regenerated.
  2223. * generated/sum_i1.c: Regenerated.
  2224. * generated/sum_i16.c: Regenerated.
  2225. * generated/sum_i2.c: Regenerated.
  2226. * generated/sum_i4.c: Regenerated.
  2227. * generated/sum_i8.c: Regenerated.
  2228. * generated/sum_r10.c: Regenerated.
  2229. * generated/sum_r16.c: Regenerated.
  2230. * generated/sum_r4.c: Regenerated.
  2231. * generated/sum_r8.c: Regenerated.
  2232. 2008-01-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
  2233. PR libfortran/34676
  2234. * io/list_read.c (next_char): Only save the EOF condition for later if
  2235. advance="no".
  2236. 2008-01-03 Thomas Koenig <tkoenig@gcc.gnu.org>
  2237. PR libfortran/34565
  2238. * io/io.h: Adjust protoypes for open_internal(),
  2239. next_array_record() and init_loop_spec().
  2240. * io/list_read.c (next_char): Use argument "finished"
  2241. of next_array_record to check for end on internal file.
  2242. * io/unit.c: Calculate the offset for an array
  2243. internal file and supply this informatin to open_internal().
  2244. * io/unix.c (open_internal): Set the offset for the internal
  2245. file on open.
  2246. * io/transfer.c (init_loop_spec): Calculate the starting
  2247. record in case of negative strides. Return size of 0 for
  2248. an empty array.
  2249. (next_array_record): Use an extra flag to signal that the
  2250. array is finished.
  2251. (next_record_r): Use the new flag to next_array_record().
  2252. (next_record_w): Likewise.
  2253. Copyright (C) 2008 Free Software Foundation, Inc.
  2254. Copying and distribution of this file, with or without modification,
  2255. are permitted in any medium without royalty provided the copyright
  2256. notice and this notice are preserved.