This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, libfortran] Thread safety and simplification of error printing


On Sun, May 08, 2011 at 07:53:43PM +0300, Janne Blomqvist wrote:
> 
> 2011-05-08  Janne Blomqvist  <jb@gcc.gnu.org>
> 
> 	* gfortran.texi: Remove GFORTRAN_USE_STDERR documentation.
> 
> 
> library ChangeLog:
> 
> 2011-05-08  Janne Blomqvist  <jb@gcc.gnu.org>
> 
> 	* io/unix.c (st_vprintf,st_printf): Move to runtime/error.c.
> 	* libgfortran.h (struct options_t): Remove use_stderr field.
> 	(st_vprintf,st_printf): Move prototypes.
> 	(estr_write): New prototype.
> 	* runtime/error.c (sys_exit): Use estr_write instead of st_printf.
> 	(estr_write): New function.
> 	(st_vprintf): Move from io/unix.c, use stack allocated buffer,
> 	always output to stderr.
> 	(st_printf): Move from io/unix.c.
> 	(show_locus): Use a local variable instead of static.
> 	(os_error): Use estr_write instead of st_printf.
> 	(runtime_error): Likewise.
> 	(runtime_error_at): Likewise.
> 	(runtime_warning_at): Likewise.
> 	(internal_error): Likewise.
> 	(generate_error): Likewise.
> 	(generate_warning): Likewise.
> 	(notify_std): Likewise.
> 	* runtime/pause.c (do_pause): Likewise.
> 	(pause_string): Likewise.
> 	* runtime/stop.c (stop_string): Likewise.
> 	(error_stop_string): Likewise.
> 	* config/fpu_aix.h (set_fpu): Likewise.
> 	* config/fpu_generic.h (set_fpu): Likewise.
> 	* config/fpu_glibc.h (set_fpu): Likewise.
> 	* config/fpu-sysv.h (set_fpu): Likewise.
> 	* runtime/backtrace.c (dump_glibc_backtrace): Likewise.
> 	(show_backtrace): Likewise.
> 	* runtime/environ.c (print_spaces): Likewise.
> 	(show_string): Likewise.
> 	(show_variables): Likewise.
> 	(variable_table[]): Remove GFORTRAN_USE_STDERR entry.
> 

OK.

-- 
Steve


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]