aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/ChangeLog
AgeCommit message (Collapse)AuthorFilesLines
2004-06-14re PR libfortran/15292 (libgfortran depends on c99 functionality round and ↵Bud Davis1-0/+5
roundf) 2004-06-14 Bud Davis <bdavis9659@comcast.net> PR gfortran/15292 * intrinsics/c99_functions.c: Use fpclassify if it exists. From-SVN: r83116
2004-06-13Makefile.am (gfor_helper_src): Add runtime/normalize.f90.Paul Brook1-0/+11
* Makefile.am (gfor_helper_src): Add runtime/normalize.f90. * configure.ac: Add checks for nextafter and nextafterf. * Makefile.in, config.h.in, configure: Regenerate. * libgfortran.h (normalize_r4_i4, normalize_r8_i8): Declare. * intrinsics/rand.c (rand): Use normalize_r4_i4. * intrinsics/random.c (random_r4): Use normalize_r4_i4. (random_r8): Use normalize_r8_i8. * runtime/normalize.c: New file. testsuite/ * gfortran.fortran-torture/execute/random_2.f90: New test. From-SVN: r83070
2004-06-13random.c: Fix several spelling and formatting mistakes in comments.Steven G. Kargl1-0/+8
* random.c: Fix several spelling and formatting mistakes in comments. (random_r8): Fix loop to make random numbers range in [0,1(. Co-Authored-By: Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de> From-SVN: r83063
2004-06-13random.c (random_r4): Burn a random number.Tobias Schlüter1-1/+6
2004-06-13 Steven G. Kargl <kargls@comcast.net> * random.c (random_r4): Burn a random number. (random_r8): fix infinite loop. From-SVN: r83062
2004-06-12re PR libfortran/15292 (libgfortran depends on c99 functionality round and ↵Bud Davis1-0/+11
roundf) PR gfortran/15292 * intrinsics/c99_functions.c: New file. * Makefile.am: Add new file. * configure.ac: Added test for round/roundf. * Makefile.in: Regenerate. * configure: Regenerate. * configure.h.in: Regenerate. From-SVN: r83036
2004-06-12check.c (gfc_check_second_sub, [...]): New functions.Steven G. Kargl1-0/+9
* check.c (gfc_check_second_sub, gfc_check_irand, gfc_check_rand gfc_check_srand, gfc_check_etime, gfc_check_etime_sub): New functions. * gfortran.h (gfc_generic_isym_id): New symbols GFC_ISYM_ETIME, GFC_ISYM_IRAND, GFC_ISYM_RAND, GFC_ISYM_SECOND. * trans-intrinsic.c: Use symbols. * intrinsic.c (add_sym_2s): New function. * intrinsic.c: Add etime, dtime, irand, rand, second, srand. * intrinsic.h: Function prototypes. * iresolve.c (gfc_resolve_etime_sub, gfc_resolve_second_sub gfc_resolve_srand): New functions. libgfortran * Makefile.am: Add rand.c and etime.c * Makefile.in: Regenerated. * aclocal.in: Regenerated. * cpu_time.c (second_sub, second): New functions. * rand.c (irand, rand, srand): New file. * etime.c (etime_sub, etime): New file. From-SVN: r83034
2004-06-12re PR libfortran/14923 (gfortran misses the DATE_AND_TIME intrinsic)Tobias Schlüter1-0/+9
PR fortran/14923 * intrinsics/date_and_time.c: New file. * Makefile.am (gfor_helper_src): Add intrinsics/date_and_time.c. * Makefile.in, aclocal.m4: Regenerate. * libgfortran.h: Prototype date_and_time(). testsuite/ * gfortran.fortran-torture/execute/date_time_1.f90: New test. Co-Authored-By: Steven Bosscher <stevenb@suse.de> From-SVN: r83032
2004-06-12PR fortran/15665 Fixup ChangeLog from my previous commitTobias Schlüter1-1/+1
From-SVN: r83030
2004-06-12PR fortran/15655Fixup ChangeLog entries from previous commit by Paul BrookTobias Schlüter1-0/+1
From-SVN: r83029
2004-06-12args.c: Implement GETARG and IARGC.Bud Davis1-2/+8
* intrinsics/args.c: Implement GETARG and IARGC. * Makefile.am: Add it. * Makefile.in: Regenerate. testsuite/ * gfortran.fortran-torture/execute/getarg_1.f90: New test. From-SVN: r83027
2004-06-12re PR libfortran/12839 (incorrect IO of Inf)Bud Davis1-0/+5
2004-06-12 Bud Davis <bdavis9659@comcast.net> PR gfortran/12839 * gfortran.fortran-torture/execute/nan_inf_fmt.f90: New test. * io/write.c(write_float): format inf and nan IAW F2003. From-SVN: r83024
2004-06-09re PR libfortran/14897 ('T' edit descriptor output incorrect)Bud Davis1-0/+8
2004-06-09 Bud Davis <bdavis9659@comcast.net> PR gfortran/14897 * gfortran.fortran-torture/execute/t_edit.f90 * io/transfer.c (formatted_transfer): position is unique for T and TL edit descriptors. (data_transfer_init): set record length to size of internal file. From-SVN: r82808
2004-06-09re PR libfortran/15755 (gfortran: backspace call causes bus error)Bud Davis1-0/+6
2004-06-08 Bud Davis <bdavis9659@comcast.net> PR gfortran/15755 * gfortran.fortran-torture/execute/backspace.c : New test. * io/backspace.c(st_backspace): call correct routine for formatted and un-formatted units. From-SVN: r82806
2004-05-30re PR libfortran/11800 ([gfortan] libgfortran should be multi-libed)Andreas Jaeger1-0/+13
PR gfortran/11800 * Makefile.am (AM_CPPFLAGS): Renamed from INCLUDES. (lib_LTLIBRARIES): Rename to ... (toolexeclib_LTLIBRARIES): this for multilib support. * configure.in: Rename to ... * configure.ac: this. Update to modern autoconf style, enable multilibs, support --enable-version-specific-runtime-libs. * Makefile.in: Regenerated. * configure: Regenerated. * aclocal.m4: Regenerated. From-SVN: r82466
2004-05-30iresolve.c (gfc_resolve_random_number): Clean up conditional.Steven G. Kargl1-0/+5
* iresolve.c (gfc_resolve_random_number): Clean up conditional. libgfortran/ * libgfortran.h (random_seed): Update prototype. * intrinsics/random.c: Disable old implementation and add new one. testsuite/ * gfortran.fortran-torture/execute/random_1.f90: New test. From-SVN: r82443
2004-05-30random.c: Include unistd.h for close and read prototypes...Andreas Jaeger1-12/+20
* intrinsics/random.c: Include unistd.h for close and read prototypes, remove unneeded inclusion of assert.h. * intrinsics/abort.c: Include stdlib.h for abort prototype, remove unneeded inclusion of assert.h. From-SVN: r82442
2004-05-27re PR libfortran/15234 (libgfortran doesn't compile on Tru64 UNIX V4.0F)Tobias Schlüter1-0/+6
PR fortran/15234 * intrinsics/associated.c: Remove enum. (associated): Replace TRUE/FALSE by 1/0. From-SVN: r82322
2004-05-23* random.c (random_seed): Use correct variable.Steven G. Kargl1-0/+4
From-SVN: r82167
2004-05-22check.c (gfc_check_system_clock): New function.Steven G. Kargl1-0/+6
* check.c (gfc_check_system_clock): New function. * intrinsic.c (add_sym_3s): New function. (add_subroutines): Use it. * intrinsic.h (gfc_check_system_clock, gfc_resolve_system_clock): Add prototypes. * iresolve.c (gfc_resolve_system_clock): New function. libgfortran/ * intrinsics/system_clock: New file. * Makefile.am: Add intrinsics/system_clock.c. * Makefile.in: Regenerate. From-SVN: r82131
2004-05-21io.c (check_format): As a GNU extension...Roger Sayle1-0/+5
* io.c (check_format): As a GNU extension, allow the comma after a string literal to be optional in a format. Use gfc_notify_std to issue an error/warning as appropriate. * io/format.c (parse_format_list): Allow the comma after a string literal to be optional. From-SVN: r82109
2004-05-19Credit Feng Wang <fengwang@nudt.edu.cn> in ChangeLog.Feng Wang1-0/+1
From-SVN: r82023
2004-05-19f95-lang.c (gfc_init_builtin_functions): Use vold_list_node.Feng Wang1-0/+9
* f95-lang.c (gfc_init_builtin_functions): Use vold_list_node. Create decls for __builtin_pow{,f}. * gfortran.h (PREFIX_LEN): Define. * trans-decl.c (gfor_fndecl_math_powi): Add. (gfor_fndecl_math_powf, gfor_fndecl_math_pow): Remove. (gfc_build_intrinsic_function_decls): Create decls for powi. * trans-expr.c (powi_table): Add. (gfc_conv_integer_power): Remove. (gfc_conv_powi): New function. (gfc_conv_cst_int_power): New function. (gfc_conv_power_op): Use new powi routines. * trans.h (struct gfc_powdecl_list): Add. (gfor_fndecl_math_powi): Add. (gfor_fndecl_math_powf, gfor_fndecl_math_pow): Remove. testsuite/ * gfortran.fortran-torture/execute/power.f90: Test constant integers. libgfortran/ * Makefile.am (i_pow_c): Set it. Add build rule. (gfor_built_src): Use it. (m4_files): add m4/pow.m4. * Makefile.in: Regenerate. * m4/pow.m4: New file. * generated/pow_*.c: Regenerate. From-SVN: r82014
2004-05-18Makefile.am: Remove references to types.m4.Paul Brook1-0/+14
* Makefile.am: Remove references to types.m4. * m4/iparm.m4: Merge with types.m4. * m4/types.m4: Remove. * m4/cshift1.m4, m4/dotprod.m4, m4/dotprodc.m4, m4/dotprodl.m4, m4/eoshift1.m4, m4/eoshift3.m4, m4/iforeach.m4, m4/ifunction.m4, m4/in_pack.m4, m4/in_unpack.m4, m4/iparm.m4, m4/matmul.m4, m4/matmull.m4, m4/maxloc0.m4, m4/maxloc1.m4, m4/maxval.m4, m4/minloc0.m4, m4/minloc1.m4, m4/minval.m4, m4/reshape.m4, m4/shape.m4, m4/specific.m4, m4/specific2.m4, m4/transpose.m4): Update to use new iparm.m4. * generated/*.c: Regenerate. From-SVN: r82003
2004-05-18re PR libfortran/15235 (libgfortran doesn't build on Solaris 10)Tobias Schlüter1-0/+14
PR fortran/15235 * gfortran.h (offset_t): Rename to ... (gfc_offset): ... this. * io/backspace.c (formatted_backspace, unformatted_backspace), io/io.h (stream, gfc_unit, global_t, file_length, file_position), transfer.c (us_read, us_write, next_record_r, next_record_w), io/unit.c (init_units), unix.c (unix_stream, fd_alloc, fd_alloc_r_at, fd_alloc_w_at, fd_seek, mmap_alloc, mmap_alloc_r_at, mmap_alloc_w_at, mmap_seek, mem_alloc_r_at, mem_alloc_w_at, mem_seek, file_length, file_position): Replace all occurences of offset_t by gfc_offset. From-SVN: r81994
2004-05-16* io/format.c (write_real): Don't include padding in format.Paul Brook1-0/+4
From-SVN: r81922
2004-05-16* io/format.c (format_lex): Make c an int.Paul Brook1-0/+4
From-SVN: r81920
2004-05-16write.c (write_logical): Don't print extra blank.Janne Blomqvist1-0/+7
* io/write.c (write_logical): Don't print extra blank. (write_integer): Base field width on kind. (list_formatted_write): Output initial blank. Co-Authored-By: Paul Brook <paul@codesourcery.com> From-SVN: r81914
2004-05-16io.h (flush): Add prototype.Janne Blomqvist1-0/+6
* io/io.h (flush): Add prototype. * io/transfer.c (finalize_transfer): Flush partial records. * io/unix.c (flush): New function. From-SVN: r81913
2004-05-15re PR libfortran/15234 (libgfortran doesn't compile on Tru64 UNIX V4.0F)Tobias Schlüter1-0/+19
PR fortran/15234 * io/io.h (unit_t): Rename to ... (gfc_unit) ... this. (unit_root, current_unit, find_file, find_unit, get_unit): Now of type gfc_unit. (delete_file, insert_unit, close_unit): Argument now of type gfc_unit. * backspace.c (st_backspace), close.c (st_close), endfile.c (st_endfile), inquire.c (inquire_via_unit, st_inquire), open.c (test_endfile, edit_modes, new_unit, already_open, st_open), rewind.c (st_rewind), transfer.c (current_unit), unit.c (internal_unit, unit_cache, rotate_left, rotate_right, insert, insert_unit, delete_root, delete_treap, delete_unit, find_unit, get_unit, init_units, close_unit), unix.c (find_file0, find_file, delete_file): Replace all occurences of unit_t by gfc_unit. From-SVN: r81903
2004-05-15re PR libfortran/15311 (Incorrect handling of A edit descriptor)Bud Davis1-0/+5
PR fortran/15311 * io/write.c (write_a): right justify A edit output. libgfortran/ * gfortran.fortran-torture/execute/write_a_1.f90: New test. From-SVN: r81895
2004-05-14re PR libfortran/15149 (problem computing Pi)Bud Davis1-0/+6
PR fortran/15149 * gfortran.fortran-torture/execute/random_init.f90: New test. * libgfortan.h,intrinsics/random.c: Made random_seed visible. * runtime/main.c(init): Call random_seed as part of MAIN init. From-SVN: r81836
2004-05-13format.c: (parse_format_list): No comma is required after P descriptor.Tobias Schlüter1-0/+5
* io/format.c: (parse_format_list): No comma is required after P descriptor. From-SVN: r81819
2004-05-13Fix format in (and bug number):Andrew Pinski1-2/+2
2004-05-13 Bud Davis <bdavis9659@comcast.net> PR fortran/15204 * io/intrinsic/string_intrinsics.c (adjustr): rework logic. From-SVN: r81810
2004-05-13re PR libfortran/15204 (ADJUSTR intrinsic accesses corrupted pointer)Bud Davis1-0/+5
PR fortran/15294 * gfortran.fortran-torture/execute/adjustr.f90: New file. * io/intrinsic/string_intrinsics.c(adjustr): rework logic. From-SVN: r81771
2004-05-13Merge tree-ssa-20020619-branch into mainline.Diego Novillo1-0/+753
From-SVN: r81764