Commit dab71827 by Diego Novillo Committed by Diego Novillo

diagnostic.c (diagnostic_report_diagnostic): Do not warn about loaded plugins…

diagnostic.c (diagnostic_report_diagnostic): Do not warn about loaded plugins for DK_ERROR and DK_WARNING.


	* diagnostic.c (diagnostic_report_diagnostic): Do not
	warn about loaded plugins for DK_ERROR and DK_WARNING.
	* c-decl.c (declspecs_add_type): Move call to
	invoke_plugin_callbacks ...
	* c-parser.c (c_parser_declspecs): ... here.
	* plugin.c (dump_active_plugins): Tidy output.

cp/ChangeLog

	* parser.c (cp_parser_type_specifier_seq): Move call to
	invoke_plugin_callbacks ...
	(cp_parser_type_specifier_seq): ... here.

From-SVN: r146078
parent f86ce601
...@@ -4,6 +4,15 @@ ...@@ -4,6 +4,15 @@
output for other floating point modes. output for other floating point modes.
2009-04-14 Diego Novillo <dnovillo@google.com> 2009-04-14 Diego Novillo <dnovillo@google.com>
* diagnostic.c (diagnostic_report_diagnostic): Do not
warn about loaded plugins for DK_ERROR and DK_WARNING.
* c-decl.c (declspecs_add_type): Move call to
invoke_plugin_callbacks ...
* c-parser.c (c_parser_declspecs): ... here.
* plugin.c (dump_active_plugins): Tidy output.
2009-04-14 Diego Novillo <dnovillo@google.com>
Le-Chun Wu <lcwu@google.com> Le-Chun Wu <lcwu@google.com>
* configure.ac: Add --enable-plugin support. * configure.ac: Add --enable-plugin support.
......
...@@ -7262,9 +7262,6 @@ struct c_declspecs * ...@@ -7262,9 +7262,6 @@ struct c_declspecs *
declspecs_add_type (struct c_declspecs *specs, struct c_typespec spec) declspecs_add_type (struct c_declspecs *specs, struct c_typespec spec)
{ {
tree type = spec.spec; tree type = spec.spec;
invoke_plugin_callbacks (PLUGIN_FINISH_TYPE, type);
specs->non_sc_seen_p = true; specs->non_sc_seen_p = true;
specs->declspecs_seen_p = true; specs->declspecs_seen_p = true;
specs->type_seen_p = true; specs->type_seen_p = true;
......
...@@ -1553,6 +1553,7 @@ c_parser_declspecs (c_parser *parser, struct c_declspecs *specs, ...@@ -1553,6 +1553,7 @@ c_parser_declspecs (c_parser *parser, struct c_declspecs *specs,
attrs_ok = true; attrs_ok = true;
seen_type = true; seen_type = true;
t = c_parser_struct_or_union_specifier (parser); t = c_parser_struct_or_union_specifier (parser);
invoke_plugin_callbacks (PLUGIN_FINISH_TYPE, t.spec);
declspecs_add_type (specs, t); declspecs_add_type (specs, t);
break; break;
case RID_TYPEOF: case RID_TYPEOF:
......
2009-04-14 Diego Novillo <dnovillo@google.com>
* parser.c (cp_parser_type_specifier_seq): Move call to
invoke_plugin_callbacks ...
(cp_parser_type_specifier_seq): ... here.
2009-04-14 Le-Chun Wu <lcwu@google.com> 2009-04-14 Le-Chun Wu <lcwu@google.com>
* Make-lang.in: Modify dependencies of files including plugin.h. * Make-lang.in: Modify dependencies of files including plugin.h.
......
...@@ -11015,6 +11015,7 @@ cp_parser_type_specifier (cp_parser* parser, ...@@ -11015,6 +11015,7 @@ cp_parser_type_specifier (cp_parser* parser,
cp_parser_parse_tentatively (parser); cp_parser_parse_tentatively (parser);
/* Look for the class-specifier. */ /* Look for the class-specifier. */
type_spec = cp_parser_class_specifier (parser); type_spec = cp_parser_class_specifier (parser);
invoke_plugin_callbacks (PLUGIN_FINISH_TYPE, type_spec);
/* If that worked, we're done. */ /* If that worked, we're done. */
if (cp_parser_parse_definitely (parser)) if (cp_parser_parse_definitely (parser))
{ {
...@@ -13891,8 +13892,6 @@ cp_parser_type_specifier_seq (cp_parser* parser, ...@@ -13891,8 +13892,6 @@ cp_parser_type_specifier_seq (cp_parser* parser,
break; break;
} }
invoke_plugin_callbacks (PLUGIN_FINISH_TYPE, type_specifier);
seen_type_specifier = true; seen_type_specifier = true;
/* The standard says that a condition can be: /* The standard says that a condition can be:
......
...@@ -372,10 +372,7 @@ diagnostic_report_diagnostic (diagnostic_context *context, ...@@ -372,10 +372,7 @@ diagnostic_report_diagnostic (diagnostic_context *context,
context->lock++; context->lock++;
if ((diagnostic->kind == DK_ERROR if (diagnostic->kind == DK_ICE && plugins_active_p ())
|| diagnostic->kind == DK_WARNING
|| diagnostic->kind == DK_ICE)
&& plugins_active_p ())
{ {
fnotice (stderr, "*** WARNING *** there are active plugins, do not report" fnotice (stderr, "*** WARNING *** there are active plugins, do not report"
" this as a bug unless you can reproduce it without enabling" " this as a bug unless you can reproduce it without enabling"
......
...@@ -647,7 +647,7 @@ dump_active_plugins (FILE *file) ...@@ -647,7 +647,7 @@ dump_active_plugins (FILE *file)
if (!plugins_active_p ()) if (!plugins_active_p ())
return; return;
fprintf (stderr, "Event\t\tPlugins\n"); fprintf (stderr, "Event\t\t\tPlugins\n");
for (event = PLUGIN_PASS_MANAGER_SETUP; event < PLUGIN_EVENT_LAST; event++) for (event = PLUGIN_PASS_MANAGER_SETUP; event < PLUGIN_EVENT_LAST; event++)
if (plugin_callbacks[event]) if (plugin_callbacks[event])
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment