From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11363 invoked by alias); 22 May 2011 19:36:16 -0000 Received: (qmail 11286 invoked by uid 22791); 22 May 2011 19:36:14 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,TW_ZJ X-Spam-Check-By: sourceware.org Received: from mx01.qsc.de (HELO mx01.qsc.de) (213.148.129.14) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 22 May 2011 19:35:58 +0000 Received: from [192.168.178.22] (port-92-204-35-67.dynamic.qsc.de [92.204.35.67]) by mx01.qsc.de (Postfix) with ESMTP id BACC13D0A0; Sun, 22 May 2011 21:35:56 +0200 (CEST) Message-ID: <4DD9659C.7000705@net-b.de> Date: Sun, 22 May 2011 21:29:00 -0000 From: Tobias Burnus User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.14) Gecko/20110221 SUSE/3.1.8 Thunderbird/3.1.8 MIME-Version: 1.0 To: gcc patches , gfortran Subject: [Patch, Fortran, committed] Minor libgfortran/runtime/stop.c cleanup Content-Type: multipart/mixed; boundary="------------070708010308060608050907" Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-05/txt/msg01573.txt.bz2 This is a multi-part message in MIME format. --------------070708010308060608050907 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Content-length: 33 Committed as Rev. 174039 Tobias --------------070708010308060608050907 Content-Type: text/x-patch; name="committed.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="committed.diff" Content-length: 3475 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 + + * runtime/stop.c (stop_string,error_stop_string): Minor cleanup. + 2011-05-22 Janne Blomqvist - 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 - Uros Bizjak + Uros Bizjak - 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 - * 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 --------------070708010308060608050907--