1. 28 Feb, 2005 1 commit
    • jsm28's avatar
      PR c/20245 · e44d834f
      jsm28 authored
      	* c-parser.c (c_parser_compound_statement): Return error_mark_node
      	instead of NULL_TREE on error.
      
      testsuite:
      	* gcc.dg/pr20245-1.c: New test.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95693 138bc75d-0d04-0410-961f-82ee72b054a4
      e44d834f
  2. 25 Feb, 2005 1 commit
    • jsm28's avatar
      * c-parser.c: New file. · 1576dec7
      jsm28 authored
      	* c-parse.in: Remove.
      	* Makefile.in (c-parse.o-warn, c-parse.o, c-parse.c, c-parse.y):
      	Remove.
      	(c-parser.o): Add dependencies.
      	(C_AND_OBJC_OBJC, C_OBJS, gcc.srcextra, GTFILES, distclean,
      	maintainer-clean, TAGS): Update.
      	* c-config-lang.in (gtfiles): Update.
      	* gengtype-lex.l: Don't handle "@@".
      	* stub-objc.c (objc_get_class_ivars, objc_build_throw_stmt,
      	objc_build_synchronized, objc_begin_try_stmt,
      	objc_begin_catch_clause, objc_finish_catch_clause,
      	objc_build_finally_clause, objc_finish_try_stmt): New.
      	* c-tree.h (struct c_declspecs): Add declspecs_seen_p and
      	type_seen_p.
      	(c_parse_init): Update comment.
      	* c-decl.c (c_init_decl_processing): Update comment.
      	(build_null_declspecs, declspecs_add_qual, declspecs_add_type,
      	declspecs_add_scspec, declspecs_add_attrs): Initialize and update
      	new c_declspecs members.
      
      objc:
      	* Make-lang.in (objc/objc-parse.o-warn, objc/objc-parse.o,
      	objc/objc-parse.c, objc/objc-parse.y): Remove
      	(OBJC_OBJS, objc.srcextra, objc.tags, objc.mostlyclean,
      	objc.distclean, objc.maintainer-clean): Update for new parser.
      	* config-lang.in (gtfiles): Update for new parser.
      
      testsuite:
      	* gcc.dg/cpp/separate-1.c, gcc.dg/noncompile/971104-1.c,
      	gcc.dg/noncompile/990416-1.c: Adjust expected messages for new
      	parser.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95558 138bc75d-0d04-0410-961f-82ee72b054a4
      1576dec7