Go to file
Manuel López-Ibáñez c4100eaea3 re PR fortran/44054 (Handle -Werror, -Werror=, -fdiagnostics-show-option, !GCC$ diagnostic (pragmas) and color)
gcc/ChangeLog:

2014-12-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>

	PR fortran/44054
	* diagnostic.c (diagnostic_action_after_output): Make it extern.
	Take diagnostic_t argument instead of diagnostic_info. Count also
	DK_WERROR towards max_errors.
	(diagnostic_report_diagnostic): Update call according to the above.
	(error_recursion): Likewise.
	* diagnostic.h (diagnostic_action_after_output): Declare.
	* pretty-print.c (pp_formatted_text_data): Delete.
	(pp_append_r): Call output_buffer_append_r.
	(pp_formatted_text): Call output_buffer_formatted_text.
	(pp_last_position_in_text): Call output_buffer_last_position_in_text.
	* pretty-print.h (output_buffer_formatted_text): New.
	(output_buffer_append_r): New.
	(output_buffer_last_position_in_text): New.

gcc/fortran/ChangeLog:

2014-12-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>

	PR fortran/44054
	* error.c (pp_error_buffer): New static variable.
	(pp_warning_buffer): Make it a pointer.
	(gfc_output_buffer_empty_p): New.
	(gfc_error_init_1): Call gfc_buffer_error.
	(gfc_buffer_error): Do not use pp_warning_buffer.flush_p as the
	buffered_p flag.
	(gfc_clear_warning): Likewise.
	(gfc_warning_check): Call gfc_clear_warning. Only check the new
	pp_warning_buffer if the old warning_buffer was empty. Call
	diagnostic_action_after_output.
	(gfc_error_1): Renamed from gfc_error.
	(gfc_error): New.
	(gfc_clear_error): Clear also pp_error_buffer.
	(gfc_error_flag_test): Check also pp_error_buffer.
	(gfc_error_check): Likewise. Only check the new pp_error_buffer
	if the old error_buffer was empty.
	(gfc_move_output_buffer_from_to): New.
	(gfc_push_error): Use it here. Take also an output_buffer as argument.
	(gfc_pop_error): Likewise.
	(gfc_free_error): Likewise.
	(gfc_diagnostics_init): Use XNEW and placement-new to init
	pp_error_buffer and pp_warning_buffer. Set flush_p to false for
	both pp_warning_buffer and pp_error_buffer.

	* Update gfc_push_error, gfc_pop_error and gfc_free_error calls
	according to the above changes.
	* Use gfc_error_1 for all gfc_error calls that use multiple
	locations.
	* Use %qs instead of '%s' for many gfc_error calls.

From-SVN: r218627
2014-12-11 15:13:33 +00:00
boehm-gc Always use PIC option with -shared in libtool 2014-11-21 08:49:17 -08:00
config isl.m4: Don't pass -DCLOOG_INT_GMP on islinc. 2014-12-04 08:45:33 +00:00
contrib check_GNU_style.sh "80 characters exceeded" error fix 2014-12-10 11:46:08 +00:00
fixincludes clarification 2014-12-06 15:08:55 +00:00
gcc re PR fortran/44054 (Handle -Werror, -Werror=, -fdiagnostics-show-option, !GCC$ diagnostic (pragmas) and color) 2014-12-11 15:13:33 +00:00
gnattools
include xvasprintf.c: New file. 2014-12-11 09:15:37 +01:00
INSTALL
intl
libada
libatomic Always use PIC option with -shared in libtool 2014-11-21 08:49:17 -08:00
libbacktrace Always use PIC option with -shared in libtool 2014-11-21 08:49:17 -08:00
libcc1 Always use PIC option with -shared in libtool 2014-11-21 08:49:17 -08:00
libcilkrts Always use PIC option with -shared in libtool 2014-11-21 08:49:17 -08:00
libcpp xvasprintf.c: New file. 2014-12-11 09:15:37 +01:00
libdecnumber
libffi Always use PIC option with -shared in libtool 2014-11-21 08:49:17 -08:00
libgcc Commit missing part of patch. 2014-12-10 16:14:36 -05:00
libgfortran Add support for a minimal version of libgfortran for accelerator targets. 2014-11-28 17:39:15 +00:00
libgo runtime: introduce mvifdiff.sh script to replace GCC's move-if-change 2014-12-01 01:06:29 +00:00
libgomp Force output of vars with "omp declare target" attribute in gcc/varpool.c 2014-12-10 20:52:10 +00:00
libiberty xvasprintf.c: New file. 2014-12-11 09:15:37 +01:00
libitm configure.tgt (x86_64): Tune -m32 multilib to generic. 2014-12-03 14:58:07 +01:00
libjava Always use PIC option with -shared in libtool 2014-11-21 08:49:17 -08:00
libobjc Always use PIC option with -shared in libtool 2014-11-21 08:49:17 -08:00
liboffloadmic
libquadmath Always use PIC option with -shared in libtool 2014-11-21 08:49:17 -08:00
libsanitizer Always use PIC option with -shared in libtool 2014-11-21 08:49:17 -08:00
libssp Always use PIC option with -shared in libtool 2014-11-21 08:49:17 -08:00
libstdc++-v3 Implement LWG DR 2329 and DR 2332. 2014-12-10 01:37:37 +00:00
libvtv Always use PIC option with -shared in libtool 2014-11-21 08:49:17 -08:00
lto-plugin lto-wrapper.c (compile_offload_image): Start processing in_argv from 0 instead of 1. 2014-12-09 22:44:16 +00:00
maintainer-scripts
zlib Always use PIC option with -shared in libtool 2014-11-21 08:49:17 -08:00
.dir-locals.el
.gitignore Local Vim config with GNU formatting. 2014-12-09 13:45:47 +00:00
ABOUT-NLS
ChangeLog ChangeLog fix for r218307 2014-12-10 10:40:41 +00:00
ChangeLog.jit
ChangeLog.tree-ssa
compile
config-ml.in
config.guess
config.rpath
config.sub
configure isl.m4: Don't pass -DCLOOG_INT_GMP on islinc. 2014-12-04 08:45:33 +00:00
configure.ac Merge toplevel configure.ac bits from Binutils 2014-11-26 21:53:04 +00:00
COPYING
COPYING3
COPYING3.LIB
COPYING.LIB
COPYING.RUNTIME
depcomp
install-sh
libtool-ldflags
libtool.m4 Always use PIC option with -shared in libtool 2014-11-21 08:49:17 -08:00
lt~obsolete.m4
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4
MAINTAINERS Added myself to Write After Approval list 2014-12-08 14:12:23 -06:00
Makefile.def Makefile.def: Make more dependent on mpfr, mpc and isl. 2014-11-26 20:48:24 +01:00
Makefile.in Local Vim config with GNU formatting. 2014-12-09 13:45:47 +00:00
Makefile.tpl Local Vim config with GNU formatting. 2014-12-09 13:45:47 +00:00
missing
mkdep
mkinstalldirs
move-if-change
README
symlink-tree
ylwrap

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the files whose
names start with COPYING for copying permission.  The manuals, and
some of the runtime libraries, are under different terms; see the
individual source files for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs/ for how to report bugs usefully.

Copyright years on GCC source files may be listed using range
notation, e.g., 1987-2012, indicating that every year in the range,
inclusive, is a copyrightable year that could otherwise be listed
individually.