From: Tobias Burnus <burnus@net-b.de>
To: gcc patches <gcc-patches@gcc.gnu.org>, gfortran <fortran@gcc.gnu.org>
Subject: [Patch, Fortran, committed] Minor libgfortran/runtime/stop.c cleanup
Date: Sun, 22 May 2011 21:29:00 -0000 [thread overview]
Message-ID: <4DD9659C.7000705@net-b.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 33 bytes --]
Committed as Rev. 174039
Tobias
[-- Attachment #2: committed.diff --]
[-- Type: text/x-patch, Size: 3475 bytes --]
Index: libgfortran/runtime/stop.c
===================================================================
--- libgfortran/runtime/stop.c (Revision 174038)
+++ libgfortran/runtime/stop.c (Arbeitskopie)
@@ -67,8 +67,7 @@ stop_string (const char *string, GFC_INTEGER_4 len
if (string)
{
estr_write ("STOP ");
- ssize_t w = write (STDERR_FILENO, string, len);
- (void) sizeof (w); /* Avoid compiler warning about not using w. */
+ (void) write (STDERR_FILENO, string, len);
estr_write ("\n");
}
exit (0);
@@ -88,8 +87,7 @@ void
error_stop_string (const char *string, GFC_INTEGER_4 len)
{
estr_write ("ERROR STOP ");
- ssize_t w = write (STDERR_FILENO, string, len);
- (void) sizeof (w); /* Avoid compiler warning about not using w. */
+ (void) write (STDERR_FILENO, string, len);
estr_write ("\n");
exit (1);
Index: libgfortran/ChangeLog
===================================================================
--- libgfortran/ChangeLog (Revision 174038)
+++ libgfortran/ChangeLog (Arbeitskopie)
@@ -1,36 +1,40 @@
+2011-05-22 Tobias Burnus <burnus@net-b.de>
+
+ * runtime/stop.c (stop_string,error_stop_string): Minor cleanup.
+
2011-05-22 Janne Blomqvist <jb@gcc.gnu.org>
- PR libfortran/48931
- * configure.ac: Check for backtrace_symbols_fd instead of
+ PR libfortran/48931
+ * configure.ac: Check for backtrace_symbols_fd instead of
backtrace_symbols, check for readlink.
- * config.h.in: Regenerated.
- * configure: Regenerated.
- * runtime/backtrace.c (local_strcasestr): Remove.
- (bt_header): New function.
- (dump_glibc_backtrace): Remove.
- (fd_gets): New function.
- (show_backtrace): Rework to use backtrace_symbols_fd and pipes
+ * config.h.in: Regenerated.
+ * configure: Regenerated.
+ * runtime/backtrace.c (local_strcasestr): Remove.
+ (bt_header): New function.
+ (dump_glibc_backtrace): Remove.
+ (fd_gets): New function.
+ (show_backtrace): Rework to use backtrace_symbols_fd and pipes
avoiding functions that are not async-signal-safe, reformat
output.
- * runtime/main.c (store_exe_path): Try to check /proc/self/exe
+ * runtime/main.c (store_exe_path): Try to check /proc/self/exe
first.
2011-05-20 Janne Blomqvist <jb@gcc.gnu.org>
- Uros Bizjak <ubizjak@gmail.com>
+ Uros Bizjak <ubizjak@gmail.com>
- PR libfortran/48977
- * configure.host: Swap order of glibc and x86 tests.
+ PR libfortran/48977
+ * configure.host: Swap order of glibc and x86 tests.
2011-05-20 Janne Blomqvist <jb@gcc.gnu.org>
- * config/fpu-387.h (set_fpu): Use renamed inexact macro.
- * config/fpu-aix.h (set_fpu): Clarify error messages, use renamed
- inexact macro, set TRP_INEXACT for inexact exception instead of
- TRP_UNDERFLOW.
- * config/fpu-generic.h (set_fpu): Clarify error messages, use
- renamed inexact macro.
- * config/fpu-glibc.h (set_fpu): Likewise.
- * config/fpu-sysv.h (set_fpu): Likewise.
+ * config/fpu-387.h (set_fpu): Use renamed inexact macro.
+ * config/fpu-aix.h (set_fpu): Clarify error messages, use renamed
+ inexact macro, set TRP_INEXACT for inexact exception instead of
+ TRP_UNDERFLOW.
+ * config/fpu-generic.h (set_fpu): Clarify error messages, use
+ renamed inexact macro.
+ * config/fpu-glibc.h (set_fpu): Likewise.
+ * config/fpu-sysv.h (set_fpu): Likewise.
2011-05-14 Tobias Burnus <burnus@net-b.de>
reply other threads:[~2011-05-22 19:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DD9659C.7000705@net-b.de \
--to=burnus@net-b.de \
--cc=fortran@gcc.gnu.org \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).