- 04 Feb, 2002 1 commit
-
-
* xref.c: Remove. * Make-lang.in (CXX_OBJS): Remove cp/xref.o (cp/xref.o): Remove dependencies. * class.c (finish_struct_1, check_methods): Don't call xref fns. (finish_struct_1): Likewise. * friend.c (make_friend_class): Likewise. * lex.c (cxx_init, cxx_finish, extract_interface_info): Likewise. * spew.c (read_process_identifier): Likewise. From-SVN: r49472
Jason Merrill committed
-
- 01 Feb, 2002 7 commits
-
-
From-SVN: r49408
Jason Merrill committed -
PR c++/4872 * decl.c (finish_function): Warn about a non-void function with no return statement and no abnormal exit. * cp-tree.h (struct cp_language_function): Add returns_abnormally. (current_function_returns_abnormally): New macro. * call.c (build_call): Set it. From-SVN: r49407
Jason Merrill committed -
* typeck.c (build_component_ref): Always complain about offsetof constructs on non-PODs. Only make it an error for members of virtual bases. From-SVN: r49406
Jason Merrill committed -
From-SVN: r49397
Jason Merrill committed -
* error.c (dump_scope): Don't add TFF_DECL_SPECIFIERS. (dump_function_decl): Always dump parms. From-SVN: r49396
Jason Merrill committed -
* decl2.c (finish_static_data_member_decl): Complain about a local class with a static data member. PR c++/4286 * search.c (lookup_field_1): Don't xref a static data member just because we looked it up. From-SVN: r49395
Jason Merrill committed -
* Makefile.in (c-parse.c): Handle .output file. * objc/Make-lang.in (objc-parse.c): Likewise. * cp/Make-lang.in (parse.c): Handle .output file. From-SVN: r49393
Jason Merrill committed
-
- 31 Jan, 2002 2 commits
-
-
PR c++/3395 * decl.c (xref_tag): Remember early attributes in TYPE_ATTRIBUTES, not TREE_TYPE. * semantics.c (finish_class_definition): Adjust. From-SVN: r49380
Jason Merrill committed -
* parse.y (named_parm): Don't strip attrs. (declmods): Remove 'attributes' production. (nonempty_cv_qualifiers): Accept attributes. (ATTRIBUTE): Give precedence. * decl.c (groktypename): Handle attributes. (grokparms): Likewise. From-SVN: r49373
Jason Merrill committed
-
- 29 Jan, 2002 2 commits
-
-
PR other/1502: * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero, don't ignore unrecognized -W* options. (cpp_handle_options): Pass 1 as last argument to cpp_handle_option. * cpplib.h (cpp_handle_option): Adjust prototype. * c-decl.c (c_decode_options): Pass 0 as last argument to cpp_handle_option. PR c/2896: * gcc.c (cpp_unique_options): Split from cpp_options. (cpp_options): Source cpp_unique_options. (default_compilers): Use cpp_unique_options instead of cpp_options when used together with cc1_options. (static_specs): Add cpp_unique_options. * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options when used together with cc1_options. * decl2.c (cxx_decode_option): Pass 0 as last argument to cpp_handle_option. * lang-specs.h: Use cpp_unique_options instead of cpp_options when used together with cc1_options. From-SVN: r49315
Jakub Jelinek committed -
cp: PR c++/5132 * typeck2.c (digest_init): Make sure non-array core type is instantiated. * decl2.c (reparse_absdcl_as_casts): Just store the type in the constructor, rather than build a new one. (build_expr_from_tree, CONSTRUCTOR case): Be careful with the PURPOSE of constructor elts. testsuite: * g++.dg/template/ctor1.C: Add instantiation. From-SVN: r49314
Nathan Sidwell committed
-
- 24 Jan, 2002 1 commit
-
-
* Make-lang.in (parse.c): Adjust expected number of shift-reduce conflicts. (decl.o): Depend on diagnostic.h. * decl.c: Include diagnostic.h. (grokdeclarator): Check for null pointer. (finish_function): Don't abort when current_binding_level->parm_flag != 1, if errors have occurred; throw away the statement tree and extra binding levels, and continue. * lex.c (note_list_got_semicolon): Check for null pointer. * method.c (hack_identifier): Just return error_mark_node if value is error_mark_node. * parse.y (primary: TYPEID(type_id)): No need to use TYPE_MAIN_VARIANT here. (handler_seq): Accept an empty list of catch clauses and generate a fake handler block to avoid later crashes. (ansi_raise_identifier): Accept the error token too. * semantics.c (begin_class_definition, finish_class_definition): Check for error_mark_node. From-SVN: r49163
Zack Weinberg committed
-
- 23 Jan, 2002 7 commits
-
-
* typeck2.c (friendly_abort): Delete definition. * cp-tree.h (friendly_abort): Don't prototype. (my_friendly_assert): Use fancy_abort. From-SVN: r49152
Zack Weinberg committed -
2002-01-23 Craig Rodrigues <rodrigc@gcc.gnu.org> * cp-tree.h (my_friendly_abort): Remove. From-SVN: r49149
Craig Rodrigues committed -
* spew.c (pending_inlines, pending_inlines_tail, processing_these_inlines): Make static. (mark_pending_inlines): Remove static. (begin_parsing_inclass_inline): If in function, save pi for GC to cp_function_chain->unparsed_inlines instead. (process_next_inline): Likewise. * cp-tree.h (struct cp_language_function): Add unparsed_inlines. (mark_pending_inlines): Add prototype. * decl.c (spew_debug): Remove unused extern. (mark_lang_function): Call mark_pending_inlines. * g++.dg/other/gc1.C: New test. From-SVN: r49147
Jakub Jelinek committed -
2002-01-23 Craig Rodrigues <rodrigc@gcc.gnu.org> * call.c, class.c, decl.c, decl2.c, error.c, expr.c, friend.c, init.c, lex.c, mangle.c, method.c, pt.c, repo.c, rtti.c, search.c, semantics.c, spew.c, tree.c, typeck.c, typeck2.c, xref.c: Change my_fancy_abort() to abort(). From-SVN: r49139
Craig Rodrigues committed -
PR c++/5453 * class.c (fixed_type_or_null): Fix thinko. From-SVN: r49133
Jason Merrill committed -
* tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF. PR c++/3331 * cp/init.c (resolve_offset_ref): Use build_indirect_ref. From-SVN: r49132
Jason Merrill committed -
* function.c (assign_parms): Don't put args of inline functions into registers when not optimizing. * cp/decl2.c (grokclassfn): Don't set DECL_REGISTER on 'this'. From-SVN: r49131
Jason Merrill committed
-
- 22 Jan, 2002 2 commits
-
-
* parse.y (function_body): Suppress the block for the outermost curly braces. * decl.c (pushdecl): Don't try to skip it. (begin_function_body): Keep the block we create, not the next one. * init.c (emit_base_init): Don't mess with keep_next_level. From-SVN: r49076
Jason Merrill committed -
From-SVN: r49075
Jason Merrill committed
-
- 19 Jan, 2002 1 commit
-
-
cp: Fix regression introduced with patch for c++/775 * parse.y (class_head_defn): Check for template specializations with a different class-key. testsuite: * g++.dg/template/access1.C: New test. From-SVN: r49016
Nathan Sidwell committed
-
- 17 Jan, 2002 2 commits
-
-
* decl.c (begin_constructor_body, begin_destructor_body): New fns. (begin_function_body): Call them and keep_next_level. * init.c (emit_base_init): Call keep_next_level. * semantics.c (setup_vtbl_ptr): Lose. * cp-tree.h (struct cp_language_function): Remove vtbls_set_up_p. (vtbls_set_up_p): Lose. * pt.c (tsubst_expr, CTOR_INITIALIZER): Call emit_base_init. * method.c (do_build_copy_constructor): Likewise. (synthesize_method): Call finish_mem_initializers. * parse.y (nodecls): Likewise. From-SVN: r48948
Jason Merrill committed -
* error.c (dump_type_suffix): Print the exception specs before recursing. (dump_function_decl): Here, too. * cp-tree.h (TMPL_PARMS_DEPTH): Cast to signed HOST_WIDE_INT. From-SVN: r48947
Jason Merrill committed
-
- 10 Jan, 2002 4 commits
-
-
From-SVN: r48743
Ira Ruben committed -
From-SVN: r48730
Ira Ruben committed -
From-SVN: r48727
Jakub Jelinek committed -
* spew.c (YYCHAR): Uppercase macro parameter and add parenthesis. (YYCODE): Likewise. (NAME): Uppercase macro parameter. From-SVN: r48717
Graham Stott committed
-
- 09 Jan, 2002 2 commits
-
-
From-SVN: r48675
Graham Stott committed -
* semantics.c (FINISH_COND): Uppercase macro paramaters and add parenthesis. From-SVN: r48674
Graham Stott committed
-
- 08 Jan, 2002 8 commits
-
-
From-SVN: r48640
Graham Stott committed -
* pt.c (ccat): Uppercase macro parameter. (cat): Likewise From-SVN: r48639
Graham Stott committed -
* mangle.c (MANGLE_TRACE): Add parenthesis. (MANGLE_TRACE_TREE): Likewise. (write_signed_number): Likewise. (write_unsigned_number): Likewise. From-SVN: r48638
Graham Stott committed -
From-SVN: r48637
Graham Stott committed -
* decl.c (BINDING_LEVEL): Add parenthesis. (DEF_OPERATOR): Likewise. From-SVN: r48636
Graham Stott committed -
* class.c (VTT_TOP_LEVEL_P): Uppercase macro parameter and whitespace. (VTT_MARKED_BINFO_P): Likewise. From-SVN: r48635
Graham Stott committed -
* call.c (convert_like): Add parenthesis and wrap. (convert_like_with_context): Likewise. (ICS_RANK): Whitespace. (NEED_TEMPORARY_P): Remove parenthesis. From-SVN: r48634
Graham Stott committed -
* xref.c (FILE_NAME_ABSOLUTE_P): Add parenthesis. (PALLOC): Uppercase macro parameter and whitespace. (SALLOC): Uppercase macro parameter. (SFREE): Uppercase macros parameter, add parenthese and whitespace. (STREQL): Uppercase macro parameter and whitespace. (STRNEQ): Likewise. (STRLSS): Likewise. (STRLEQ): Likewise. (STRGTR): Likewise. (STRGEQ): Likewise. From-SVN: r48633
Graham Stott committed
-
- 07 Jan, 2002 1 commit
-
-
* decl2.c (coerce_new_type): Downgrade error for size_t mismatch to pedwarn. * method.c (make_thunk): If !flag_weak, give the thunk the function's linkage. (use_thunk): Here, too. From-SVN: r48613
Jason Merrill committed
-