c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks after processing enum...
authorBruno Loff <bruno.loff@gmail.com>
Mon, 2 Feb 2015 21:18:56 +0000 (21:18 +0000)
committerDiego Novillo <dnovillo@gcc.gnu.org>
Mon, 2 Feb 2015 21:18:56 +0000 (16:18 -0500)
2015-02-02  Bruno Loff <bruno.loff@gmail.com>

* c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks after
processing enum declaration.

From-SVN: r220358

gcc/c/ChangeLog
gcc/c/c-parser.c

index 7c2ce3865e849e554f039811e7e6733f777a3244..f90efeb38bbd0ee587517c7ece2b52bb4ecae345 100644 (file)
@@ -1,3 +1,8 @@
+2015-02-02  Bruno Loff <bruno.loff@gmail.com>
+
+       * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks after
+       processing enum declaration.
+
 2015-01-29  Marek Polacek  <polacek@redhat.com>
 
        PR c/64709
index 665ee42cf2ddc07f1aa27a50221d2668757d17b8..0387f0e698f217f037c2823e85238abfd4152b7c 100644 (file)
@@ -2391,6 +2391,7 @@ c_parser_declspecs (c_parser *parser, struct c_declspecs *specs,
          attrs_ok = true;
          seen_type = true;
          t = c_parser_enum_specifier (parser);
+          invoke_plugin_callbacks (PLUGIN_FINISH_TYPE, t.spec);
          declspecs_add_type (loc, specs, t);
          break;
        case RID_STRUCT: