Skip to content
Snippets Groups Projects
  1. Mar 03, 2006
    • Thomas Koenig's avatar
      re PR fortran/25031 ([4.1 only] Allocatable array can be reallocated.) · 5b725b8d
      Thomas Koenig authored
      2006-03-03  Thomas Koenig  <Thomas.Koenig@online.de>
      
      	PR fortran/25031
      	* trans-array.h:  Adjust gfc_array_allocate prototype.
      	* trans-array.c (gfc_array_allocate):  Change type of
      	gfc_array_allocatate to bool.  Function returns true if
      	it operates on an array.  Change second argument to gfc_expr.
      	Find last reference in chain.
      	If the function operates on an allocatable array, emit call to
      	allocate_array() or allocate64_array().
      	* trans-stmt.c (gfc_trans_allocate):  Code to follow to last
      	reference has been moved to gfc_array_allocate.
      	* trans.h:  Add declaration for gfor_fndecl_allocate_array and
      	gfor_fndecl_allocate64_array.
      	(gfc_build_builtin_function_decls):  Add gfor_fndecl_allocate_array
      	and gfor_fndecl_allocate64_array.
      
      2006-03-03  Thomas Koenig  <Thomas.Koenig@online.de>
      
      	PR fortran/25031
      	* runtime/memory.c:  Adjust copyright years.
      	(allocate_array):  New function.
      	(allocate64_array):  New function.
      	* libgfortran.h (error_codes):  Add ERROR_ALLOCATION.
      
      2006-03-03  Thomas Koenig  <Thomas.Koenig@online.de>
      
      	PR fortran/25031
      	* multiple_allocation_1.f90:  New test.
      
      From-SVN: r111677
      5b725b8d
  2. Mar 01, 2006
    • Jerry DeLisle's avatar
      re PR libfortran/26136 (List directed input with underfilled (logicals) array read incorrectly) · c9f15d9c
      Jerry DeLisle authored
      2006-02-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR libgfortran/26136
      	* io/io.h: Add flag for reading from line_buffer.
      	* io/list_read.c (l_push_char): New function to save namelist
      	input when reading logicals.
      	(free_line): New function to free line_buffer memory.
      	(next_char): Added feature to read from line_buffer.
      	(read_logical): Use new functions to test for '=' after reading a
      	logical value, checking for possible variable name.
      	(namelist_read): Use free_line when all done.
      
      From-SVN: r111597
      c9f15d9c
  3. Feb 28, 2006
  4. Feb 24, 2006
  5. Feb 19, 2006
    • François-Xavier Coudert's avatar
      re PR libfortran/21303 (L edit descriptor without a width) · 8f0d39a8
      François-Xavier Coudert authored
      	PR libfortran/21303
      
      	* gfortran.h (notification): New enumeration.
      	(gfc_notification_std): Prototype for the new function.
      	* error.c (gfc_notification_std): New function.
      	* io.c (check_format): Handle the case of a L format descriptor
      	without a width.
      
      	* runtime/error.c (notification_std): New function.
      	* libgfortran.h (notification): New enumeration.
      	* io/io.h (notification_std): Prototype for the new function. 
      	* io/format.c (parse_format_list): Handle the case of a L format
      	descriptor without a width.
      
      	* gcc/testsuite/gfortran.dg/fmt_l.f90: New test.
      
      From-SVN: r111281
      8f0d39a8
    • Francois-Xavier Coudert's avatar
      * io/open.c (edit_modes): Correct abusive copy-pasting. · c05f6d04
      Francois-Xavier Coudert authored
      From-SVN: r111266
      c05f6d04
  6. Feb 16, 2006
    • Francois-Xavier Coudert's avatar
      re PR libfortran/24903 (dotprod should use __builtin_conj) · 83d38ece
      Francois-Xavier Coudert authored
      	PR libfortran/24903
      	* m4/dotprodc.m4: Use __builtin_conj instead of assigning real
      	and imaginary parts separately.
      	* generated/dotprod_c4.c: Regenerated.
      	* generated/dotprod_c8.c: Regenerated.
      	* generated/dotprod_c10.c: Regenerated.
      	* generated/dotprod_c16.c: Regenerated.
      
      From-SVN: r111131
      83d38ece
  7. Feb 12, 2006
    • Janne Blomqvist's avatar
      re PR libfortran/25949 (Unbounded I/O buffer memory usage for formatted IO) · 82b8244c
      Janne Blomqvist authored
      2006-02-12  Janne Blomqvist  <jb@gcc.gnu.org>
      
      	PR libgfortran/25949
      	* io/io.h: Add set function pointer to struct stream.  
      	* io/unix.c (fd_seek): Only update offset, don't seek.
      	(fd_sset): New function.
      	(fd_read): Call lseek directly if necessary.
      	(fd_write): Likewise.
      	(fd_open): Set pointer to fd_sset.
      	(mem_set): New function.
      	(open_internal): Set pointer to mem_set.
      	* io/transfer.c (write_block_direct): Rename to write_buf, add
      	error return, non-pointer length argument.
      	(unformatted_write): Update to use write_buf.
      	(us_write): Simplify by using swrite instead of salloc_w.
      	(write_us_marker): New function.
      	(new_record_w): Use sset instead of memset, use write_us_marker,
      	simplify by using swrite instead of salloc_w.
      
      From-SVN: r110895
      82b8244c
  8. Feb 08, 2006
    • François-Xavier Coudert's avatar
      re PR libfortran/25425 ([4.1 only] F95 and F2003 differ on list-directed output for 0.0) · 5f8f5313
      François-Xavier Coudert authored
      	PR libfortran/25425
      
      	* trans-decl.c (gfc_generate_function_code): Add new argument,
      	pedantic, to set_std call.
      
      	* libgfortran.h: Add pedantic field to compile_options struct.
      	* io/write.c (calculate_G_format): Depending on the standard,
      	choose E or F format for list-directed output of 0.0.
      	* runtime/error.c (notify_std): Make warning and error dependent
      	on pedanticity.
      	* runtime/compile_options.c (set_std): Use new pedantic argument.
      
      From-SVN: r110769
      5f8f5313
  9. Feb 07, 2006
  10. Feb 06, 2006
    • Thomas Koenig's avatar
      re PR fortran/23815 (Add -byteswapio flag) · eaa90d25
      Thomas Koenig authored
      2005-02-06  Thomas Koenig  <Thomas.Koenig@online.de>
      
      	PR libfortran/23815
      	* gfortran.texi: Document the GFORTRAN_CONVERT_UNIT environment
      	variable.
      	* invoke.texi:  Mention the "Runtime" chapter.
      	Document the -fconvert= option.
      	* gfortran.h:  Add options_convert.
      	* lang.opt:  Add fconvert=little-endian, fconvert=big-endian,
      	fconvert=native and fconvert=swap.
      	* trans-decl.c (top level):  Add gfor_fndecl_set_convert.
      	(gfc_build_builtin_function_decls):  Set gfor_fndecl_set_convert.
      	(gfc_generate_function_code):  If -fconvert was specified,
      	and this is the main program, add a call to set_convert().
      	* options.c:  Handle the -fconvert options.
      
      2005-02-06  Thomas Koenig  <Thomas.Koenig@online.de>
      
      	PR libfortran/23815
      	* runtime/environ.c (init_unformatted):  Add GFORTRAN_CONVERT_UNIT
      	environment variable.
      	(top level):  Add defines, type and static variables for
      	GFORTRAN_CONVERT_UNIT handling.
      	(search_unit):  New function.
      	(match_word): New function.
      	(match_integer): New function.
      	(next_token): New function.
      	(push_token): New function.
      	(mark_single): New function.
      	(mark_range): New funciton.
      	(do_parse): New function.
      	(init_unformatted): New function.
      	(get_unformatted_convert): New function.
      	* runtime/compile_options.c:  Add set_convert().
      	* libgfortran.h:  Add convert to compile_options_t.
      	* io/open.c (st_open): Call get_unformatted_convert to get
      	unit default; if CONVERT_NONE is returned, check for
      	the presence of a CONVERT specifier and use it.
      	As default, use compile_options.convert.
      	* io/io.h (top level): Add CONVERT_NONE to unit_convert, to signal
      	"nothing has been set".
      	(top level): Add prototype for get_unformatted_convert.
      
      2005-02-06  Thomas Koenig  <Thomas.Koenig@online.de>
      
      	PR libfortran/23815
      	* unf_io_convert_4.f90:  New test.
      
      From-SVN: r110664
      eaa90d25
  11. Feb 05, 2006
  12. Jan 29, 2006
  13. Jan 25, 2006
  14. Jan 18, 2006
  15. Jan 16, 2006
    • Roger Sayle's avatar
      configure.ac (CFLAGS): Update to include -std=gnu99 so that the configure... · d1f37bc6
      Roger Sayle authored
      configure.ac (CFLAGS): Update to include -std=gnu99 so that the configure tests will be run with the...
      
      
      	* configure.ac (CFLAGS): Update to include -std=gnu99 so that
      	the configure tests will be run with the same environment as
      	used to compile the libgfortran source code.
      	* configure: Regenerate.
      
      From-SVN: r109774
      d1f37bc6
  16. Jan 12, 2006
  17. Jan 07, 2006
  18. Jan 06, 2006
  19. Jan 02, 2006
    • Paolo Bonzini's avatar
      re PR libgomp/25259 (bootstrap failures on non-C99 platforms (no stdint.h)) · 4c4b3eb0
      Paolo Bonzini authored
      config:
      2006-01-02  Paolo Bonzini  <bonzini@gnu.org>
      
      	PR target/25259
      	* stdint.m4: New.
      
      gcc:
      2006-01-02  Paolo Bonzini  <bonzini@gnu.org>
      
      	PR target/25259
      	* Makefile.in (DECNUMINC): Include libdecnumber's build directory.
      
      libgfortran:
      2006-01-02  Paolo Bonzini  <bonzini@gnu.org>
      
      	PR target/25259
      	* configure.ac: Use GCC_HEADER_STDINT.
      	* libgfortran.h: Include gstdint.h.
      	* aclocal.m4: Regenerate.
      	* configure: Regenerate.
      
      libdecnumber:
      2006-01-02  Paolo Bonzini  <bonzini@gnu.org>
      
      	PR target/25259
      	* configure.ac: Use GCC_HEADER_STDINT.
      	* decContext.h: Include gstdint.h.
      	* aclocal.m4: Regenerate.
      	* configure: Regenerate.
      
      From-SVN: r109241
      4c4b3eb0
  20. Jan 01, 2006
  21. Dec 28, 2005
  22. Dec 22, 2005
  23. Dec 19, 2005
  24. Dec 16, 2005
  25. Dec 13, 2005
    • Jakub Jelinek's avatar
      re PR libfortran/24991 (gfortran build fails with - error:gthr-default.h: No... · 78fdb6d2
      Jakub Jelinek authored
      re PR libfortran/24991 (gfortran build fails with - error:gthr-default.h: No such file or directory)
      
      	PR libfortran/24991
      	* acinclude.m4 (LIBGFOR_CHECK_PRAGMA_WEAK): Rename to...
      	(LIBGFOR_GTHREAD_WEAK): ... this.  Define SUPPORTS_WEAK rather
      	than HAVE_PRAGMA_WEAK.  Define GTHREAD_USE_WEAK to 0 on hosts
      	that shouldn't use weak in gthr.h.
      	* configure.ac: Use LIBGFOR_GTHREAD_WEAK instead of
      	LIBGFOR_CHECK_PRAGMA_WEAK.
      	* config.h.in: Regenerated.
      	* configure: Regenerated.
      	* io/io.h (SUPPORTS_WEAK): Don't define here.
      
      	* intrinsics/ftell.c (ftell, FTELL_SUB): Add unlock_unit call.
      	* intrinsics/fget.c (fgetc, fputs): Likewise.
      	* intrinsics/tty.c (ttynam): Likewise.
      
      From-SVN: r108471
      78fdb6d2
    • Richard Sandiford's avatar
      Make-lang.in (fortran/trans-resolve.o): Depend on fortran/dependency.h. · 1524f80b
      Richard Sandiford authored
      
      gcc/fortran/
      	* Make-lang.in (fortran/trans-resolve.o): Depend on
      	fortran/dependency.h.
      	* gfortran.h (gfc_expr): Add an "inline_noncopying_intrinsic" flag.
      	* dependency.h (gfc_get_noncopying_intrinsic_argument): Declare.
      	(gfc_check_fncall_dependency): Change prototype.
      	* dependency.c (gfc_get_noncopying_intrinsic_argument): New function.
      	(gfc_check_argument_var_dependency): New function, split from
      	gfc_check_fncall_dependency.
      	(gfc_check_argument_dependency): New function.
      	(gfc_check_fncall_dependency): Replace the expression parameter with
      	separate symbol and argument list parameters.  Generalize the function
      	to handle dependencies for any type of expression, not just variables.
      	Accept a further argument giving the intent of the expression being
      	tested.  Ignore	intent(in) arguments if that expression is also
      	intent(in).
      	* resolve.c: Include dependency.h.
      	(find_noncopying_intrinsics): New function.
      	(resolve_function, resolve_call): Call it on success.
      	* trans-array.h (gfc_conv_array_transpose): Declare.
      	(gfc_check_fncall_dependency): Remove prototype.
      	* trans-array.c (gfc_conv_array_transpose): New function.
      	* trans-intrinsic.c (gfc_conv_intrinsic_function): Don't use the
      	libcall handling if the expression is to be evaluated inline.
      	Add a case for handling inline transpose()s.
      	* trans-expr.c (gfc_trans_arrayfunc_assign): Adjust for the new
      	interface provided by gfc_check_fncall_dependency.
      
      libgfortran/
      	* m4/matmul.m4: Use a different order in the special case of a
      	transposed first argument.
      	* generated/matmul_c4.c, generated/matmul_c8.c, generated/matmul_c10.c,
      	* generated/matmul_c16.c, generated/matmul_i4.c, generated/matmul_i8.c,
      	* generated/matmul_i10.c, generated/matmul_r4.c, generated/matmul_r8.c
      	* generated/matmul_r10.c, generated/matmul_r16.c: Regenerated.
      
      Co-Authored-By: default avatarVictor Leikehman <LEI@il.ibm.com>
      
      From-SVN: r108459
      1524f80b
  26. Dec 10, 2005
    • Janne Blomqvist's avatar
      Forgot ChangeLog for 108359 · cef578a8
      Janne Blomqvist authored
      From-SVN: r108361
      cef578a8
    • Janne Blomqvist's avatar
      Makefile.am: Enable loop unrolling for matmul. · 74f04a6a
      Janne Blomqvist authored
      2005-12-10  Janne Blomqvist  <jb@gcc.gnu.org>
      
      	* Makefile.am: Enable loop unrolling for matmul.
      	* configure: Regenerated.
      	* Makefile.in: Regenerated.
      	* aclocal.m4: Regenerated.
      
      From-SVN: r108359
      74f04a6a
    • Thomas Koenig's avatar
      re PR fortran/23815 (Add -byteswapio flag) · 181c9f4a
      Thomas Koenig authored
      2005-12-10  Thomas Koenig  <Thomas.Koenig@online.de>
      
      	PR fortran/23815
      	* io.c (top level):  Add convert to io_tag.
      	(resolve_tag):  convert is GFC_STD_GNU.
      	(match_open_element):  Add convert.
      	(gfc_free_open):  Likewise.
      	(gfc_resolve_open):  Likewise.
      	(gfc_free_inquire):  Likewise.
      	(match_inquire_element):  Likewise.
      	* dump-parse-tree.c (gfc_show_code_node):  Add
      	convet for open and inquire.
      	gfortran.h: Add convert to gfc_open and gfc_inquire.
      	* trans-io.c (gfc_trans_open):  Add convert.
      	(gfc_trans_inquire):  Likewise.
      	* ioparm.def:  Add convert to open and inquire.
      	* gfortran.texi:  Document CONVERT.
      
      2005-12-10  Thomas Koenig  <Thomas.Koenig@online.de>
      
      	PR fortran/23815
      	* io/file_pos.c (unformatted_backspace):  If flags.convert
      	does not equal CONVERT_NATIVE, reverse the record marker.
      	* io/open.c:  Add convert_opt[].
      	(st_open):  If no convert option is given, set CONVERT_NATIVE.
      	If CONVERT_BIG or CONVERT_LITTLE are given, set flags.convert to
      	CONVERT_NATIVE or CONVERT_SWAP (depending on wether we have
      	a big- or little-endian system).
      	* io/transfer.c (unformatted_read):  Remove unused attribute
      	from arguments.
      	If we need to reverse
      	bytes, break up large transfers into a loop.  Split complex
      	numbers into its two parts.
      	(unformatted_write):  Likewise.
      	(us_read):  If flags.convert does not equal CONVERT_NATIVE,
      	reverse the record marker.
      	(next_record_w): Likewise.
      	(reverse_memcpy):  New function.
      	* io/inquire.c (inquire_via_unit):  Implement convert.
      	* io/io.h (top level):  Add enum unit_convert.
      	Add convert to st_parameter_open and st_parameter_inquire.
      	Define IOPARM_OPEN_HAS_CONVERT and IOPARM_INQUIRE_HAS_CONVERT.
      	Increase padding for st_parameter_dt.
      	Declare reverse_memcpy().
      
      2005-12-10  Thomas Koenig  <Thomas.Koenig@online.de>
      
      	PR fortran/23815
      	* gfortran.dg/unf_io_convert_1.f90:  New test.
      	* gfortran.dg/unf_io_convert_2.f90:  New test.
      	* gfortran.dg/unf_io_convert_3.f90:  New test.
      
      From-SVN: r108358
      181c9f4a
  27. Dec 09, 2005
    • Jakub Jelinek's avatar
      re PR libfortran/24991 (gfortran build fails with - error:gthr-default.h: No... · 891c05b1
      Jakub Jelinek authored
      re PR libfortran/24991 (gfortran build fails with - error:gthr-default.h: No such file or directory)
      
      	PR libfortran/24991
      	* acinclude.m4: Include acx.m4 and no-executables.m4.
      	* configure.ac: Add GCC_TOPLEVEL_SUBDIRS.
      	* configure: Rebuilt.
      	* Makefile.am (AM_CPPFLAGS): Use $(host_subdir) in build dir
      	path.
      	* Makefile.in: Rebuilt.
      
      From-SVN: r108280
      891c05b1
    • Jerry DeLisle's avatar
      re PR libfortran/25039 ([4.1 only] comma short-circuit field width) · b14c7e14
      Jerry DeLisle authored
      2005-12-08  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR libgfortran/25039
      	* io/io.h: Create a new flag sf_read_comma to control comma
      	separators in numeric reads.
      	* io/transfer.c (formatted_transfer_scalar): Initialize the flag.
      	(read_sf): Check for commas coming in and if the flag is set,
      	shortcut the read.
      	* io/read.c (read_a) (read_x): Clear the flag for character reads and
      	reset it after the reads.
      
      From-SVN: r108271
      b14c7e14
  28. Dec 04, 2005
Loading