OSDN Git Service

PR libgfortran/24313
[pf3gnuchains/gcc-fork.git] / libgfortran / ChangeLog
index 07b2e91..cca3bbe 100644 (file)
@@ -1,3 +1,108 @@
+2005-10-11  Steven G. Kargl  <kargls@comcast.net>
+
+       PR libgfortran/24313
+       *  c99_functions.c (csqrtf, csqrt): Fix choice of branch cut.  Note
+       csqrt{f} were imported from glibc, and this bug is still present 
+       there. glibc PR is 1146.
+
+2005-10-07  Janne Blomqvist <jblomqvi@cc.hut.fi>
+
+       PR fortran/16339
+       PR fortran/23363
+       * io/io.h: Add read and write members to stream, define access
+       macros.
+       * io/transfer.c (read_block_direct): New function.
+       (write_block_direct): New function.
+       (unformatted_read): Change to use read_block_direct.
+       (unformatted_write): Change to use write_block_direct.
+       * io/unix.c: Remove mmap includes and defines.
+       (writen): Remove.
+       (readn): Remove.
+       (reset_stream): New function.
+       (do_read): New function.
+       (do_write): New function.
+       (fd_flush): Change to use do_write() instead of writen().
+       (fd_alloc_r_at): Change to use do_read().
+       (fd_seek): Change return type to try, as the prototype. Add check
+       to avoid syscall overhead if possible.
+       (fd_read): New function.
+       (fd_write): New function.
+       (fd_open): Set pointers for new functions.
+       (mem_read): New function.
+       (mem_write): New function.
+       (open_internal): Set pointers for new functions.
+       (is_seekable): Clean up comment.
+
+2005-10-07  Jerry DeLisle  <jvdelisle@verizon.net>
+
+        * io/transfer.c (write_block): Add test for end-of-file condition,
+        removed from mem_alloc_w_at. (next_record_w): Clean up checks for
+        NULL pointer returns from s_alloc_w.
+        * io/unix.c (mem_alloc_w_at): Remove call to generate_error end-of-file.
+        * io/write.c (write_float): Add checks for NULL pointer returns from
+        write_block calls. (write_integer): Same.
+        
+2005-10-03  Jakub Jelinek  <jakub@redhat.com>
+
+       * runtime/memory.c (allocate_size): Malloc 1 byte if size == 0.
+
+2005-10-03  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
+
+       PR libfortran/19308
+       PR libfortran/22437
+       * Makefile.am: Add generated files for large real and integers
+       kinds. Add a rule to create the kinds.inc c99_protos.inc files.
+       Use kinds.inc to preprocess Fortran generated files.
+       * libgfortran.h: Add macro definitions for GFC_INTEGER_16_HUGE,
+       GFC_REAL_10_HUGE and GFC_REAL_16_HUGE. Add types gfc_array_i16,
+       gfc_array_r10, gfc_array_r16, gfc_array_c10, gfc_array_c16,
+       gfc_array_l16.
+       * mk-kinds-h.sh: Define macros HAVE_GFC_LOGICAL_* and
+       HAVE_GFC_COMPLEX_* when these types are available.
+       * intrinsics/ishftc.c (ishftc16): New function for GFC_INTEGER_16.
+       * m4/all.m4, m4/any.m4, m4/count.m4, m4/cshift1.m4, m4/dotprod.m4,
+       m4/dotprodc.m4, m4/dotprodl.m4, m4/eoshift1.m4, m4/eoshift3.m4,
+       m4/exponent.m4, m4/fraction.m4, m4/in_pack.m4, m4/in_unpack.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/mtype.m4,
+       m4/nearest.m4, m4/pow.m4, m4/product.m4, m4/reshape.m4,
+       m4/set_exponent.m4, m4/shape.m4, m4/specific.m4, m4/specific2.m4,
+       m4/sum.m4, m4/transpose.m4: Protect generated functions with
+       appropriate "#if defined (HAVE_GFC_type_kind)" preprocessor directives.
+       * Makefile.in: Regenerate.
+       * all files in generated/: Regenerate.
+
+2005-10-01  Jakub Jelinek  <jakub@redhat.com>
+
+       * runtime/memory.c (malloc_t): Remove.
+       (GFC_MALLOC_MAGIC, HEADER_SIZE, DATA_POINTER, DATA_HEADER): Remove.
+       (mem_root, runtime_cleanup, malloc_with_header): Remove.
+       (internal_malloc_size): Use just get_mem if size != 0, return NULL
+       otherwise.
+       (internal_free): Just free if non-NULL.
+       (internal_realloc_size): Remove debugging stuff.
+       (allocate_size): Use malloc directly, remove debugging stuff.
+       (deallocate): Use free directly, fix error message wording.
+
+       * libgfortran.h (GFC_ITOA_BUF_SIZE, GFC_XTOA_BUF_SIZE,
+       GFC_OTOA_BUF_SIZE, GFC_BTOA_BUF_SIZE): Define.
+       (gfc_itoa, xtoa): Add 2 extra arguments.
+       * runtime/environ.c: Include stdio.h.
+       (check_buffered): Use sprintf.
+       * runtime/error.c: Include assert.h.
+       (gfc_itoa, xtoa): Add 2 extra arguments, avoid using static
+       buffers.
+       (st_printf, st_sprintf): Adjust callers.
+       * io/write.c (otoa, btoa): Add 2 extra arguments, avoid using
+       static buffers.
+       (write_int, write_decimal): Add 2 extra arguments to conv
+       function pointer, adjust caller.
+       (write_integer): Adjust gfc_itoa caller.
+
+       * io/unit.c (get_array_unit_len): Return 0 rather than NULL.
+
+       * io/read.c (read_f): Remove spurious pointer dereference.
+
 2005-09-30  Janne Blomqvist <jblomqvi@cc.hut.fi>
 
        PR 24112
        * config.h.in: Regenerate.
        * libgfortan.h (isfinite): undef if broken, set if needed.
        (isnan): undef if broken, set if needed.
-        (fpclassify): undef if broken, set if needed.
+       (fpclassify): undef if broken, set if needed.
        * io/write.c: Remove TODO comment about working isfinite.
        * intrinsics/c99_functions.c (round): Use isfinite instead
        of fpclassify.