c-parser.c: New file.
* c-parser.c: New file. * 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. From-SVN: r95558
This commit is contained in:
parent
29231b752c
commit
27bf414caa
16 changed files with 6335 additions and 3646 deletions
|
@ -1,3 +1,26 @@
|
|||
2005-02-25 Joseph S. Myers <joseph@codesourcery.com>
|
||||
|
||||
* c-parser.c: New file.
|
||||
* 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.
|
||||
|
||||
2005-02-25 Julian Brown <julian@codesourcery.com>
|
||||
|
||||
* config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
|
||||
|
|
|
@ -193,7 +193,6 @@ gcc.o-warn = -Wno-error
|
|||
build/insn-conditions.o-warn = -Wno-error
|
||||
# Bison-1.75 output often yields (harmless) -Wtraditional warnings
|
||||
build/gengtype-yacc.o-warn = -Wno-error
|
||||
c-parse.o-warn = -Wno-error
|
||||
# flex output may yield harmless "no previous prototype" warnings
|
||||
build/gengtype-lex.o-warn = -Wno-error
|
||||
# SYSCALLS.c misses prototypes
|
||||
|
@ -884,11 +883,11 @@ CXX_TARGET_OBJS=@cxx_target_objs@
|
|||
C_AND_OBJC_OBJS = attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o \
|
||||
c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o \
|
||||
c-incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o \
|
||||
c-objc-common.o c-dump.o c-pch.o $(C_TARGET_OBJS) \
|
||||
c-objc-common.o c-dump.o c-pch.o c-parser.o $(C_TARGET_OBJS) \
|
||||
c-gimplify.o tree-mudflap.o c-pretty-print.o
|
||||
|
||||
# Language-specific object files for C.
|
||||
C_OBJS = c-parse.o c-lang.o stub-objc.o $(C_AND_OBJC_OBJS)
|
||||
C_OBJS = c-lang.o stub-objc.o $(C_AND_OBJC_OBJS)
|
||||
|
||||
# Language-independent object files.
|
||||
OBJS-common = \
|
||||
|
@ -1347,24 +1346,15 @@ s-crt0: $(CRT0_S) $(MCRT0_S) $(GCC_PASSES) $(CONFIG_H)
|
|||
|
||||
c-errors.o: c-errors.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
|
||||
$(C_TREE_H) $(FLAGS_H) $(DIAGNOSTIC_H) $(TM_P_H)
|
||||
c-parse.o : c-parse.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
|
||||
c-parser.o : c-parser.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
|
||||
$(GGC_H) intl.h $(C_TREE_H) input.h $(FLAGS_H) toplev.h output.h \
|
||||
$(CPPLIB_H) varray.h gt-c-parse.h langhooks.h $(C_COMMON_H) $(C_PRAGMA_H)
|
||||
$(CPPLIB_H) varray.h gt-c-parser.h langhooks.h $(C_COMMON_H) $(C_PRAGMA_H)
|
||||
|
||||
srcextra: gcc.srcextra lang.srcextra
|
||||
|
||||
gcc.srcextra: c-parse.y c-parse.c gengtype-lex.c gengtype-yacc.c gengtype-yacc.h
|
||||
gcc.srcextra: gengtype-lex.c gengtype-yacc.c gengtype-yacc.h
|
||||
-cp -p $^ $(srcdir)
|
||||
|
||||
c-parse.c: c-parse.y
|
||||
-$(BISON) $(BISONFLAGS) -o $@ $<
|
||||
|
||||
c-parse.y: c-parse.in
|
||||
echo '/*WARNING: This file is automatically generated!*/' >tmp-c-parse.y
|
||||
sed -e "/^@@ifobjc.*/,/^@@end_ifobjc.*/d" \
|
||||
-e "/^@@ifc.*/d" -e "/^@@end_ifc.*/d" $< >>tmp-c-parse.y
|
||||
$(SHELL) $(srcdir)/../move-if-change tmp-c-parse.y $@
|
||||
|
||||
c-incpath.o: c-incpath.c c-incpath.h $(CONFIG_H) $(SYSTEM_H) $(CPPLIB_H) \
|
||||
intl.h prefix.h coretypes.h $(TM_H) cppdefault.h $(TARGET_H) \
|
||||
$(MACHMODE_H)
|
||||
|
@ -2427,7 +2417,7 @@ GTFILES = $(srcdir)/input.h $(srcdir)/coretypes.h \
|
|||
$(srcdir)/sdbout.c $(srcdir)/stor-layout.c \
|
||||
$(srcdir)/stringpool.c $(srcdir)/tree.c $(srcdir)/varasm.c \
|
||||
$(srcdir)/tree-mudflap.c $(srcdir)/tree-flow.h \
|
||||
$(srcdir)/c-objc-common.c $(srcdir)/c-common.c $(srcdir)/c-parse.in \
|
||||
$(srcdir)/c-objc-common.c $(srcdir)/c-common.c $(srcdir)/c-parser.c \
|
||||
$(srcdir)/tree-ssanames.c $(srcdir)/tree-eh.c \
|
||||
$(srcdir)/tree-phinodes.c $(srcdir)/tree-cfg.c \
|
||||
$(srcdir)/tree-dfa.c $(srcdir)/tree-ssa-propagate.c \
|
||||
|
@ -2449,7 +2439,7 @@ gt-emit-rtl.h gt-explow.h gt-stor-layout.h gt-regclass.h \
|
|||
gt-lists.h gt-alias.h gt-cselib.h gt-gcse.h \
|
||||
gt-expr.h gt-sdbout.h gt-optabs.h gt-bitmap.h gt-dojump.h \
|
||||
gt-dwarf2out.h gt-reg-stack.h gt-dwarf2asm.h \
|
||||
gt-dbxout.h gt-c-common.h gt-c-decl.h gt-c-parse.h \
|
||||
gt-dbxout.h gt-c-common.h gt-c-decl.h gt-c-parser.h \
|
||||
gt-c-pragma.h gtype-c.h gt-cfglayout.h \
|
||||
gt-tree-mudflap.h gt-tree-complex.h \
|
||||
gt-tree-eh.h \
|
||||
|
@ -3166,7 +3156,7 @@ distclean: clean lang.distclean
|
|||
-rm -f Makefile *.oaux
|
||||
-rm -f gthr-default.h
|
||||
-rm -f */stage1 */stage2 */stage3 */stage4 */include */stageprofile */stagefeedback
|
||||
-rm -f c-parse.y c-parse.c c-parse.output TAGS */TAGS
|
||||
-rm -f TAGS */TAGS
|
||||
-rm -f *.asm
|
||||
-rm -f site.exp site.bak testsuite/site.exp testsuite/site.bak
|
||||
-rm -f testsuite/*.log testsuite/*.sum
|
||||
|
@ -3186,7 +3176,6 @@ maintainer-clean:
|
|||
@echo 'This command is intended for maintainers to use; it'
|
||||
@echo 'deletes files that may need special tools to rebuild.'
|
||||
$(MAKE) lang.maintainer-clean distclean
|
||||
-rm -f $(srcdir)/c-parse.y $(srcdir)/c-parse.c
|
||||
-rm -f cpp.??s cpp.*aux
|
||||
-rm -f gcc.??s gcc.*aux
|
||||
-rm -f $(docdir)/*.info $(docdir)/*.1 $(docdir)/*.7 $(docdir)/*.dvi
|
||||
|
@ -3648,7 +3637,7 @@ TAGS: lang.tags
|
|||
incs="$$incs --include $$dir/TAGS.sub"; \
|
||||
fi; \
|
||||
done; \
|
||||
etags -o TAGS.sub *.y *.h *.c -l yacc c-parse.in; \
|
||||
etags -o TAGS.sub *.y *.h *.c; \
|
||||
etags --include TAGS.sub $$incs)
|
||||
|
||||
# ------------------------------------------------------
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Top level configure fragment for GNU C - C language.
|
||||
# Copyright (C) 1994, 1995, 1997, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
|
||||
# Copyright (C) 1994, 1995, 1997, 1998, 2000, 2001, 2002, 2005 Free Software Foundation, Inc.
|
||||
|
||||
#This file is part of GCC.
|
||||
|
||||
|
@ -23,4 +23,4 @@
|
|||
# files used by C that have garbage collection GTY macros in them
|
||||
# which therefore need to be scanned by gengtype.c.
|
||||
|
||||
gtfiles="\$(srcdir)/c-lang.c \$(srcdir)/c-parse.in \$(srcdir)/c-tree.h \$(srcdir)/c-decl.c \$(srcdir)/c-common.c \$(srcdir)/c-common.h \$(srcdir)/c-pragma.c \$(srcdir)/c-objc-common.c"
|
||||
gtfiles="\$(srcdir)/c-lang.c \$(srcdir)/c-tree.h \$(srcdir)/c-decl.c \$(srcdir)/c-common.c \$(srcdir)/c-common.h \$(srcdir)/c-pragma.c \$(srcdir)/c-objc-common.c \$(srcdir)/c-parser.c"
|
||||
|
|
|
@ -2581,7 +2581,7 @@ c_init_decl_processing (void)
|
|||
tree ptr_ftype_void, ptr_ftype_ptr;
|
||||
location_t save_loc = input_location;
|
||||
|
||||
/* Adds some ggc roots, and reserved words for c-parse.in. */
|
||||
/* Initialize reserved words for parser. */
|
||||
c_parse_init ();
|
||||
|
||||
current_function_decl = 0;
|
||||
|
@ -6746,6 +6746,8 @@ build_null_declspecs (void)
|
|||
ret->attrs = 0;
|
||||
ret->typespec_word = cts_none;
|
||||
ret->storage_class = csc_none;
|
||||
ret->declspecs_seen_p = false;
|
||||
ret->type_seen_p = false;
|
||||
ret->non_sc_seen_p = false;
|
||||
ret->typedef_p = false;
|
||||
ret->tag_defined_p = false;
|
||||
|
@ -6775,6 +6777,7 @@ declspecs_add_qual (struct c_declspecs *specs, tree qual)
|
|||
enum rid i;
|
||||
bool dupe = false;
|
||||
specs->non_sc_seen_p = true;
|
||||
specs->declspecs_seen_p = true;
|
||||
gcc_assert (TREE_CODE (qual) == IDENTIFIER_NODE
|
||||
&& C_IS_RESERVED_WORD (qual));
|
||||
i = C_RID_CODE (qual);
|
||||
|
@ -6808,6 +6811,8 @@ declspecs_add_type (struct c_declspecs *specs, struct c_typespec spec)
|
|||
{
|
||||
tree type = spec.spec;
|
||||
specs->non_sc_seen_p = true;
|
||||
specs->declspecs_seen_p = true;
|
||||
specs->type_seen_p = true;
|
||||
if (TREE_DEPRECATED (type))
|
||||
specs->deprecated_p = true;
|
||||
|
||||
|
@ -7102,6 +7107,7 @@ declspecs_add_scspec (struct c_declspecs *specs, tree scspec)
|
|||
enum rid i;
|
||||
enum c_storage_class n = csc_none;
|
||||
bool dupe = false;
|
||||
specs->declspecs_seen_p = true;
|
||||
gcc_assert (TREE_CODE (scspec) == IDENTIFIER_NODE
|
||||
&& C_IS_RESERVED_WORD (scspec));
|
||||
i = C_RID_CODE (scspec);
|
||||
|
@ -7184,6 +7190,7 @@ struct c_declspecs *
|
|||
declspecs_add_attrs (struct c_declspecs *specs, tree attrs)
|
||||
{
|
||||
specs->attrs = chainon (attrs, specs->attrs);
|
||||
specs->declspecs_seen_p = true;
|
||||
return specs;
|
||||
}
|
||||
|
||||
|
|
3588
gcc/c-parse.in
3588
gcc/c-parse.in
File diff suppressed because it is too large
Load diff
6219
gcc/c-parser.c
Normal file
6219
gcc/c-parser.c
Normal file
File diff suppressed because it is too large
Load diff
|
@ -205,6 +205,10 @@ struct c_declspecs {
|
|||
enum c_typespec_keyword typespec_word;
|
||||
/* The storage class specifier, or csc_none if none. */
|
||||
enum c_storage_class storage_class;
|
||||
/* Whether any declaration specifiers have been seen at all. */
|
||||
BOOL_BITFIELD declspecs_seen_p : 1;
|
||||
/* Whether a type specifier has been seen. */
|
||||
BOOL_BITFIELD type_seen_p : 1;
|
||||
/* Whether something other than a storage class specifier or
|
||||
attribute has been seen. This is used to warn for the
|
||||
obsolescent usage of storage class specifiers other than at the
|
||||
|
@ -346,7 +350,7 @@ struct language_function GTY(())
|
|||
};
|
||||
|
||||
|
||||
/* in c-parse.in */
|
||||
/* in c-parser.c */
|
||||
extern void c_parse_init (void);
|
||||
|
||||
/* in c-aux-info.c */
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* -*- indented-text -*- */
|
||||
/* Process source files and output type information.
|
||||
Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
|
||||
Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GCC.
|
||||
|
||||
|
@ -272,8 +272,6 @@ ITYPE {IWORD}({WS}{IWORD})*
|
|||
|
||||
^"%{" { BEGIN(in_yacc_escape); } /* } */
|
||||
|
||||
^"@@".* /* Used for c-parse.in C/ObjC demarcation. */
|
||||
|
||||
{WS} { update_lineno (yytext, yyleng); }
|
||||
|
||||
"const"/[^[:alnum:]_] /* don't care */
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
2005-02-25 Joseph S. Myers <joseph@codesourcery.com>
|
||||
|
||||
* 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.
|
||||
|
||||
2005-01-29 Kazu Hirata <kazu@cs.umass.edu>
|
||||
|
||||
* lang-specs.h, objc-act.c, objc-act.h, objc-lang.c: Update
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Top level -*- makefile -*- fragment for GNU Objective-C
|
||||
# Copyright (C) 1997, 1998, 2000, 2001, 2002, 2003, 2004
|
||||
# Copyright (C) 1997, 1998, 2000, 2001, 2002, 2003, 2004, 2005
|
||||
# Free Software Foundation, Inc.
|
||||
|
||||
#This file is part of GCC.
|
||||
|
@ -46,11 +46,9 @@ OBJECTIVE-C objective-c: cc1obj$(exeext)
|
|||
|
||||
# Use maximal warnings for this front end.
|
||||
objc-warn = $(STRICT_WARN)
|
||||
# Bison-1.75 output yields (harmless) -Wtraditional warnings
|
||||
objc/objc-parse.o-warn = -Wno-error
|
||||
|
||||
# Language-specific object files for Objective C.
|
||||
OBJC_OBJS = objc/objc-lang.o objc/objc-parse.o objc/objc-act.o
|
||||
OBJC_OBJS = objc/objc-lang.o objc/objc-act.o
|
||||
|
||||
cc1obj$(exeext): $(OBJC_OBJS) $(C_AND_OBJC_OBJS) $(BACKEND) $(LIBDEPS)
|
||||
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ \
|
||||
|
@ -64,28 +62,13 @@ objc/objc-lang.o : objc/objc-lang.c \
|
|||
$(GGC_H) langhooks.h $(LANGHOOKS_DEF_H) $(C_COMMON_H) gtype-objc.h \
|
||||
c-objc-common.h objc/objc-act.h
|
||||
|
||||
objc/objc-parse.o : objc/objc-parse.c \
|
||||
$(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(C_TREE_H) \
|
||||
toplev.h $(GGC_H) input.h flags.h output.h langhooks.h $(C_COMMON_H) \
|
||||
$(C_PRAGMA_H)
|
||||
|
||||
objc/objc-act.o : objc/objc-act.c \
|
||||
$(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(RTL_H) $(TM_P_H) \
|
||||
$(EXPR_H) $(TARGET_H) $(C_TREE_H) diagnostic.h toplev.h flags.h \
|
||||
objc/objc-act.h input.h function.h output.h debug.h langhooks.h \
|
||||
$(LANGHOOKS_DEF_H) $(HASHTAB_H) c-pragma.h gt-objc-objc-act.h
|
||||
|
||||
objc.srcextra: objc/objc-parse.c objc/objc-parse.y
|
||||
-cp -p $^ $(srcdir)/objc
|
||||
|
||||
objc/objc-parse.c : objc/objc-parse.y
|
||||
-$(BISON) $(BISONFLAGS) -o $@ $<
|
||||
|
||||
objc/objc-parse.y: c-parse.in
|
||||
echo '/*WARNING: This file is automatically generated!*/' >tmp-objc-prs.y
|
||||
sed -e "/^@@ifc.*/,/^@@end_ifc.*/d" \
|
||||
-e "/^@@ifobjc.*/d" -e "/^@@end_ifobjc.*/d" < $< >>tmp-objc-prs.y
|
||||
$(SHELL) $(srcdir)/../move-if-change tmp-objc-prs.y $@
|
||||
objc.srcextra:
|
||||
|
||||
gtype-objc.h : s-gtype ; @true
|
||||
gt-objc-objc-act.h : s-gtype ; @true
|
||||
|
@ -103,7 +86,7 @@ objc.srcinfo:
|
|||
objc.srcman:
|
||||
|
||||
objc.tags: force
|
||||
cd $(srcdir)/objc; etags -o TAGS.sub *.y *.c *.h; \
|
||||
cd $(srcdir)/objc; etags -o TAGS.sub *.c *.h; \
|
||||
etags --include TAGS.sub --include ../TAGS.sub
|
||||
|
||||
lang_checks += check-objc
|
||||
|
@ -124,18 +107,14 @@ objc.uninstall:
|
|||
# A lot of the ancillary files are deleted by the main makefile.
|
||||
# We just have to delete files specific to us.
|
||||
objc.mostlyclean:
|
||||
-rm -f tmp-objc-prs.y
|
||||
-rm -f objc/*$(objext) objc/xforward objc/fflags
|
||||
-rm -f objc/objc-parse.y objc/objc-parse.c objc/objc-parse.output
|
||||
-rm -f objc/*$(coverageexts)
|
||||
objc.clean: objc.mostlyclean
|
||||
-rm -rf objc-headers
|
||||
objc.distclean:
|
||||
-rm -f objc/Makefile objc/Make-host objc/Make-target
|
||||
-rm -f objc/config.status objc/config.cache
|
||||
-rm -f objc-parse.output
|
||||
objc.maintainer-clean:
|
||||
-rm -f $(srcdir)/objc/objc-parse.y $(srcdir)/objc/objc-parse.c
|
||||
|
||||
#
|
||||
# Stage hooks:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Top level configure fragment for GNU Objective-C
|
||||
# Copyright (C) 1997, 1998, 2000, 2001, 2002, 2003, 2004
|
||||
# Copyright (C) 1997, 1998, 2000, 2001, 2002, 2003, 2004, 2005
|
||||
# Free Software Foundation, Inc.
|
||||
|
||||
#This file is part of GCC.
|
||||
|
@ -37,4 +37,4 @@ target_libs=target-libobjc
|
|||
# Most of the object files for cc1obj actually come from C.
|
||||
lang_requires="c"
|
||||
|
||||
gtfiles="\$(srcdir)/objc/objc-act.h \$(srcdir)/c-parse.in \$(srcdir)/c-tree.h \$(srcdir)/c-decl.c \$(srcdir)/c-objc-common.c \$(srcdir)/c-common.c \$(srcdir)/c-common.h \$(srcdir)/c-pragma.c \$(srcdir)/objc/objc-act.c"
|
||||
gtfiles="\$(srcdir)/objc/objc-act.h \$(srcdir)/c-parser.c \$(srcdir)/c-tree.h \$(srcdir)/c-decl.c \$(srcdir)/c-objc-common.c \$(srcdir)/c-common.c \$(srcdir)/c-common.h \$(srcdir)/c-pragma.c \$(srcdir)/objc/objc-act.c"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
that are called from within the C and C++ front-ends,
|
||||
respectively.
|
||||
Copyright (C) 1991, 1995, 1997, 1998,
|
||||
1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
|
||||
1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GCC.
|
||||
|
||||
|
@ -254,3 +254,47 @@ objc_is_public (tree ARG_UNUSED (expr), tree ARG_UNUSED (identifier))
|
|||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
tree
|
||||
objc_get_class_ivars (tree ARG_UNUSED (class_name))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
tree
|
||||
objc_build_throw_stmt (tree ARG_UNUSED (throw_expr))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
objc_build_synchronized (location_t ARG_UNUSED (start_locus),
|
||||
tree ARG_UNUSED (mutex), tree ARG_UNUSED (body))
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
objc_begin_try_stmt (location_t ARG_UNUSED (try_locus), tree ARG_UNUSED (body))
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
objc_begin_catch_clause (tree ARG_UNUSED (decl))
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
objc_finish_catch_clause (void)
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
objc_build_finally_clause (location_t ARG_UNUSED (finally_locus),
|
||||
tree ARG_UNUSED (body))
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
objc_finish_try_stmt (void)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
2005-02-25 Joseph S. Myers <joseph@codesourcery.com>
|
||||
|
||||
* gcc.dg/cpp/separate-1.c, gcc.dg/noncompile/971104-1.c,
|
||||
gcc.dg/noncompile/990416-1.c: Adjust expected messages for new
|
||||
parser.
|
||||
|
||||
2005-02-25 Diego Novillo <dnovillo@redhat.com>
|
||||
|
||||
PR tree-optimization/20204
|
||||
|
|
|
@ -12,4 +12,4 @@ int FOO( /* { dg-error "parse error|syntax error|expected" "error on this line"
|
|||
), bar;
|
||||
|
||||
int baz FOO /* { dg-error "parse error|syntax error|expected" "error on this line" } */
|
||||
; /* { dg-warning "no type or storage class" "warning on this line" } */
|
||||
;
|
||||
|
|
|
@ -25,5 +25,5 @@ static void up(int sem){
|
|||
({ "MUTEX ", "BARB_SEM 1", "BARB_SEM 2", "CUST_SEM 1",
|
||||
"CUST_SEM 2", "WAIT_SEM 1", "WAIT_SEM 2", "WAIT_SEM 3",
|
||||
"WAIT_SEM 4"} /* { dg-error "parse error|syntax error|expected" } */
|
||||
[( sb.sem_num )]) );
|
||||
[( sb.sem_num )]) ); /* { dg-error "expected" } */
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ typedef int word_type;
|
|||
|
||||
static void
|
||||
copy_reg (unsigned int reg, frame_state *udata, /* { dg-error "parse|syntax|expected" } */
|
||||
frame_state *target_udata)
|
||||
frame_state *target_udata) /* { dg-error "expected" } */
|
||||
{
|
||||
word_type *preg = get_reg_addr (reg, udata, 0); /* { dg-error "undeclared|function|without a cast" } */
|
||||
word_type *ptreg = get_reg_addr (reg, target_udata, 0); /* { dg-error "undeclared|without a cast" } */
|
||||
|
|
Loading…
Add table
Reference in a new issue