gcc/gcc/cp
Joseph Myers 243fbddd9c diagnostic.c: Don't include flags.h.
* diagnostic.c: Don't include flags.h.
	(pedantic_warning_kind, permissive_error_kind): Take diagnostic
	context parameters.  Check flags in the context passed as a
	parameter.
	(diagnostic_build_prefix): Add context parameter.  Check
	show_column flag in context.
	(diagnostic_action_after_output): Check fatal_errors flag in
	context.
	(diagnostic_report_current_module): Check show_column flag in
	context.
	(default_diagnostic_starter): Update call to
	diagnostic_build_prefix.
	(diagnostic_report_diagnostic): Pass context to
	pedantic_warning_kind.
	(emit_diagnostic): Pass context to permissive_error_kind.
	(permerror): Pass context to permissive_error_kind.
	* diagnostic.h (struct diagnostic_context): Add show_column,
	pedantic_errors, permissive and fatal_errors fields.
	(diagnostic_build_prefix): Update prototype.
	* langhooks.c
	* toplev.c (process_options): Set flags in global_dc from
	flag_show_column, flag_pedantic_errors, flag_permissive,
	flag_fatal_errors.
	* tree-diagnostic.c (default_tree_diagnostic_starter): Update call
	to diagnostic_build_prefix.
	* Makefile.in (diagnostic.o): Update dependencies.

cp:
	* error.c (cp_diagnostic_starter): Update call to
	diagnostic_build_prefix.
	(cp_print_error_function,
	print_instantiation_partial_context_line): Check show_column flag
	in context.

From-SVN: r159793
2010-05-24 19:55:44 +01:00
..
ChangeLog diagnostic.c: Don't include flags.h. 2010-05-24 19:55:44 +01:00
ChangeLog-1993 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-1994 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-1995 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-1996 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-1997 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-1998 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-1999 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-2000 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-2001 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-2002 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-2003 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-2004 re PR other/42537 ([PATCH] misc spelling fixes) 2009-12-30 10:53:31 +00:00
ChangeLog-2005 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-2006 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-2007 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-2008 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-2009 Move 2009 ChangeLog to ChangeLog-2009. 2010-01-01 09:08:32 -08:00
ChangeLog.ptr ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog.tree-ssa ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
Make-lang.in coretypes.h (struct simple_bitmap_def, [...]): New core types. 2010-05-22 22:24:53 +00:00
NEWS ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
call.c re PR c++/41510 ([C++0x] std::complex vs. initialization lists) 2010-05-24 14:38:16 -04:00
cfns.gperf ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
cfns.h ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
class.c call.c (reference_binding): Use cp_build_qualified_type_real and cp_type_quals consistently. 2010-05-19 17:02:27 -04:00
config-lang.in Make-lang.in (cp/cp-lang.o): Depend on gt-cp-cp-lang.h. 2010-02-05 15:38:04 +00:00
cp-gimplify.c re PR c++/44127 (G++ emits unnecessary EH code) 2010-05-14 14:55:10 -04:00
cp-lang.c cp-lang.c (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove both its undef and define. 2010-05-14 15:08:45 +02:00
cp-objcp-common.c re PR c++/43075 (20_util/bind/ref2.cc FAILs) 2010-02-17 17:51:51 -05:00
cp-objcp-common.h cgraph.c (same_body_alias_1): Break out of 2009-11-29 10:32:08 +00:00
cp-tree.def re PR bootstrap/44048 (building without C++ enabled fails) 2010-05-13 01:04:46 -04:00
cp-tree.h call.c (reference_binding): Use cp_build_qualified_type_real and cp_type_quals consistently. 2010-05-19 17:02:27 -04:00
cvt.c re PR bootstrap/44048 (building without C++ enabled fails) 2010-05-13 01:04:46 -04:00
cxx-pretty-print.c * cxx-pretty-print.c: Correct merge error. 2010-05-21 23:58:12 +01:00
cxx-pretty-print.h c-objc-common.c (c_tree_printer): Print identifiers with pp_identifier, not pp_string. 2009-05-01 15:09:20 +01:00
decl.c re PR c++/41510 ([C++0x] std::complex vs. initialization lists) 2010-05-24 14:38:16 -04:00
decl.h re PR c++/32056 (Storage classes on template parameters) 2009-11-16 08:31:26 +00:00
decl2.c decl2.c (maybe_emit_vtables): Produce same comdat group when outputting comdat vtables. 2010-05-22 14:48:40 +00:00
dump.c
error.c diagnostic.c: Don't include flags.h. 2010-05-24 19:55:44 +01:00
except.c c.opt: Add -fnothrow-opt. 2010-05-15 22:27:02 -04:00
expr.c C++ support for -Wunused-but-set-variable 2010-05-06 08:52:30 +02:00
friend.c
g++spec.c g++spec.c (lang_specific_driver): Remove unused saw_verbose_flag variable. 2009-12-02 09:39:10 +01:00
init.c re PR c++/41510 ([C++0x] std::complex vs. initialization lists) 2010-05-24 14:38:16 -04:00
lang-specs.h
lex.c cgraphunit.c (cgraph_lower_function): Revert last change. 2009-09-24 11:21:39 +02:00
mangle.c tree.h: Include real.h and fixed-value.h as basic datatypes. 2010-05-21 13:53:22 +00:00
method.c call.c (reference_binding): Use cp_build_qualified_type_real and cp_type_quals consistently. 2010-05-19 17:02:27 -04:00
name-lookup.c re PR c++/30566 (-Wshadow warns about clashes between nested function parameters in C++) 2010-05-14 03:19:32 +00:00
name-lookup.h re PR c++/43024 (ICE on template code with -O2 or -O3, regression from 4.4.2) 2010-02-12 17:27:14 -05:00
operators.def decl.c (grokfndecl): Set DECL_CONTEXT on parms. 2009-03-17 19:31:18 -04:00
optimize.c toplev.c: Include varray.h for statistics dumping. 2010-04-30 11:58:49 +00:00
parser.c Add support for C++0x nullptr. 2010-05-06 16:51:52 -04:00
pt.c call.c (reference_binding): Use cp_build_qualified_type_real and cp_type_quals consistently. 2010-05-19 17:02:27 -04:00
ptree.c * ptree.c (cxx_print_type) [DECLTYPE_TYPE]: Print the expression. 2009-09-02 11:48:44 -04:00
repo.c dbgcnt.c (dbg_cnt_process_single_pair): constify. 2009-09-12 15:46:45 -04:00
rtti.c rtti.c (tinfo_base_init): Use build_constructor instead of build_constructor_from_list. 2010-05-24 17:17:57 +00:00
search.c tree.c (get_fns): Split out from get_first_fn. 2010-04-27 17:35:17 -04:00
semantics.c coretypes.h (struct simple_bitmap_def, [...]): New core types. 2010-05-22 22:24:53 +00:00
tree.c tree.h: Include real.h and fixed-value.h as basic datatypes. 2010-05-21 13:53:22 +00:00
typeck.c call.c (reference_binding): Use cp_build_qualified_type_real and cp_type_quals consistently. 2010-05-19 17:02:27 -04:00
typeck2.c tree.h: Include real.h and fixed-value.h as basic datatypes. 2010-05-21 13:53:22 +00:00