1. 23 Nov, 2015 1 commit
  2. 22 Nov, 2015 1 commit
  3. 12 Sep, 2015 1 commit
  4. 04 Sep, 2015 1 commit
    • PR 53379 Print backtrace on error termination. · 71cda9ca
      2015-09-05  Janne Blomqvist  <jb@gcc.gnu.org>
      
      	PR fortran/53379
      	* libgfortran.h (exit_error): New prototype.
      	* runtime/error.c (exit_error): New function.
      	(os_error): Call exit_error instead of exit.
      	(runtime_error): Likewise.
      	(runtime_error_at): Likewise.
      	(internal_error): Likewise.
      	(generate_error): Likewise.
      	(notify_std): Likewise.
      	* runtime/stop.c (error_stop_string): Likewise.
      	(error_stop_numeric): Likewise.
      
      From-SVN: r227503
      Janne Blomqvist committed
  5. 03 Sep, 2015 1 commit
    • libgfortran: Use remove(3) instead of unlink(2) when deleting files. · 43ff5c7a
      testsuite:
      
      2015-09-04  Janne Blomqvist  <jb@gcc.gnu.org>
      
      	* gfortran.dg/read_dir.f90: Delete empty directory when closing
      	rather than calling rmdir, cleanup if open fails.
      
      
      libgfortran:
      
      2015-09-04  Janne Blomqvist  <jb@gcc.gnu.org>
      
      	* io/unix.h (delete_file): Remove prototype.
      	* io/unix.c (delete_file): Remove function.
      	* io/close.c (st_close): Replace delete_file and unlink with
      	remove.
      	* io/open.c (already_open): Replace unlink with remove.
      
      From-SVN: r227472
      Janne Blomqvist committed
  6. 02 Sep, 2015 1 commit
    • PR 67414 Better diagnostics on backtrace failure, gf_strerror bugfix · 1b0b9fcb
      2015-09-02  Janne Blomqvist  <jb@gcc.gnu.org>
      
      	PR libfortran/67414
      	* io/write.c (gfc_itoa): Move to runtime/string.c.
      	* libgfortran.h (show_backtrace): Make arg bool.
      	(gfc_itoa): New prototype.
      	* runtime/backtrace.c (struct mystate): Change type of try_simple
      	field, add in_signal_handler field.
      	(error_callback): Print out error number, or if not in a signal
      	handler, the error message.
      	(show_backtrace): Change type of arg, change initialization of
      	struct mystate.
      	(backtrace): Call show_backtrace with correct arg type.
      	* runtime/compile_options.c (backtrace_handler): Call with correct
      	arg type.
      	* runtime/error.c (sys_abort): Likewise.
      	(gf_strerror): Handle newlocale() failure.
      	* runtime/string.c (gfc_itoa): Function moved here from
      	io/write.c.
      
      From-SVN: r227404
      Janne Blomqvist committed
  7. 31 Aug, 2015 2 commits
  8. 29 Aug, 2015 3 commits
  9. 28 Aug, 2015 2 commits
  10. 26 Aug, 2015 2 commits
  11. 25 Aug, 2015 2 commits
  12. 24 Aug, 2015 1 commit
  13. 23 Aug, 2015 2 commits
    • re PR libfortran/54572 (Use libbacktrace library) · ad4f95e3
      	PR libfortran/54572
      
      	* Makefile.def: Make libgfortran depend on libbacktrace.
      	* Makefile.in: Regenerate.
      
      	* config-lang.in: Add libbacktrace to target_libs.
      
      	* Makefile.am (libgfortran_la_LDFLAGS): Link in libbacktrace.
      	(AM_CPPFLAGS): Add libbacktrace directories to include paths.
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Regenerate.
      	* config.h.in: Regenerate.
      	* configure: Regenerate.
      	* configure.ac: Remove checks for strtok_r, wait, execve, pipe,
      	and dup2. Remove call to GCC_CHECK_UNWIND_GETIPINFO.
      	* libgfortran.h (full_exe_path, find_addr2line, backtrace): Remove
      	prototypes.
      	(show_backtrace): Add prototype.
      	* runtime/backtrace.c: Rework file entirely.
      	* runtime/compile_options.c (backtrace_handler): Rename backtrace
      	to show_backtrace.
      	(maybe_find_addr2line): Remove function.
      	(set_options): Remove call to maybe_find_addr2line.
      	* runtime/error.c (sys_abort): Rename backtrace to show_backtrace.
      	* runtime/main.c (store_exe_path): Empty function body.
      	(full_exe_path, gfstrtok_r, find_addr2line): Remove functions.
      	(cleanup): Don't free removed variables.
      	* runtime/minimal.c (full_exe_path): Remove function.
      	(set_args): Don't set exe_path.
      
      	* gfortran.dg/backtrace_1.f90: New test.
      
      From-SVN: r227106
      Francois-Xavier Coudert committed
    • re PR libfortran/62296 (EXECUTE_COMMAND_LINE not F2008 conforming) · 1487cca0
      	PR libfortran/62296
      
      	* intrinsics/execute_command_line.c (EXEC_INVALIDCOMMAND): New
      	error code.
      	(cmdmsg_values): New error message.
      	(set_cmdstat): Rework runtime error.
      	(execute_command_line): Handle invalid command line error status.
      
      	* gfortran.dg/execute_command_line_2.f90: New test.
      
      From-SVN: r227105
      François-Xavier Coudert committed
  14. 10 Aug, 2015 2 commits
  15. 09 Aug, 2015 1 commit
  16. 07 Aug, 2015 1 commit
  17. 06 Aug, 2015 1 commit
  18. 04 Aug, 2015 2 commits
  19. 29 Jul, 2015 1 commit
  20. 14 Jul, 2015 1 commit
  21. 06 Jul, 2015 1 commit
  22. 22 Apr, 2015 1 commit
    • libstdc++, libgfortran gthr workaround for musl · 85da5c30
      On behalf of szabolcs.nagy@arm.com
      
      [libstdc++-v3/]
      2015-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
      
      	* config/os/generic/os_defines.h (_GLIBCXX_GTHREAD_USE_WEAK): Define.
      	* configure.host (os_include_dir): Set to "os/generic" for linux-musl*.
      
      [libgfortran/]
      2015-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
      
      	* acinclude.m4 (GTHREAD_USE_WEAK): Define as 0 for *-*-musl*.
      	* configure: Regenerate.
      
      From-SVN: r222329
      Szabolcs Nagy committed
  23. 21 Apr, 2015 2 commits
  24. 15 Apr, 2015 1 commit
    • re PR fortran/65089 (FAIL: gfortran.dg/io_real_boz(2|_[45]).f90 when tested with… · 241cbc7a
      re PR fortran/65089 (FAIL: gfortran.dg/io_real_boz(2|_[45]).f90 when tested with -fsanitize=address)
      
      2015-04-14 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR libgfortran/65089
      	* io/format.h (free_format): New function to free memory
      	allocated for building format error messages.
      	* io/format.c (format_error): Add checks before freeing memory
      	to avoid potential segfaults and free formatting data when
      	needed on error conditions. Always allocate and NULL terminate
      	the string.
      	* io/transfer.c (st_read_done, st_write_done): Use new
      	free_format function to clean up memory allocations when done.
      
      From-SVN: r222111
      Jerry DeLisle committed
  25. 28 Mar, 2015 1 commit
  26. 26 Mar, 2015 1 commit
  27. 22 Mar, 2015 1 commit
  28. 17 Mar, 2015 1 commit
  29. 11 Mar, 2015 2 commits
    • libgfortran LIBGFOR_MINIMAL enhancements. · 17abb5ac
      Based on GCC trunk r220892, for nvptx-none:
      
                          === gfortran Summary ===
      
          # of expected passes            [-31320-]{+32117+}
          # of unexpected failures        [-7222-]{+6821+}
          # of expected failures          78
          # of unresolved testcases       [-6441-]{+6158+}
          # of untested testcases         [-432-]{+391+}
          # of unsupported tests          639
      
      	libgfortran/
      	* caf/single.c (caf_runtime_error): Revert 2014-11-28 changes.
      	* runtime/minimal.c (STRERR_MAXSZ): Don't define.
      	(runtime_error_at, sys_abort): Bring more in line with the
      	non-LIBGFOR_MINIMAL code.
      	(runtime_warning_at, internal_error): New functions.
      
      From-SVN: r221363
      Thomas Schwinge committed
    • PR 65200 Handle EPERM in addition to EACCES. · 6234b543
      gcc/fortran ChangeLog:
      
      2015-03-11  Janne Blomqvist  <jb@gcc.gnu.org>
      
      	PR libfortran/65200
      	* gfortran.texi: Document behavior when opening files without
      	explicit ACTION= specifier.
      
      libgfortran ChangeLog:
      
      2015-03-11  Janne Blomqvist  <jb@gcc.gnu.org>
      
      	PR libfortran/65200
      	* io/open.c (new_unit): Use gf_strerror rather than hardcoding
      	error messages for different errno values.
      	* io/unix.c (regular_file2): Handle EPERM in addition to EACCES.
      
      gcc/testsuite ChangeLog:
      
      2015-03-11  Janne Blomqvist  <jb@gcc.gnu.org>
      
      	PR libfortran/65200
      	* gfortran.dg/open_errors.f90: Update checks for iomsg string.
      	* gfortran.dg/open_new_segv.f90: Fix error message pattern.
      
      From-SVN: r221361
      Janne Blomqvist committed