- 12 Dec, 2003 3 commits
-
-
cp: PR c++/13118 * cp-tree.h (lang_decl_u): Add thunk_alias member. (THUNK_VIRTUAL_OFFSET): Must be a FUNCTION_DECL. (THUNK_ALIAS_P): Remove. (THUNK_ALIAS): Adjust. * class.c (update_vtable_entry_for_fn): Get the vbase within the overriding function's return type. (dump_thunk): Adjust THUNK_ALIAS printing. (build_vtbl_initializer): Adjust THUNK_ALIAS use. * method.c (make_thunk): Revert 12881 test change. Clear THUNK_ALIAS. (finish_thunk): Adjust THUNK_ALIAS setting. (use_thunk): Adjust THUNK_ALIAS use. * semantics.c (emit_associated_thunks): Likewise. testsuite: PR c++/13118 * g++.dg/abi/covariant3.C: New. From-SVN: r74576
Nathan Sidwell committed -
PR c++/13114, c++/13115 * class.c (layout_empty_base): Propagate the move of an empty base to offset zero. From-SVN: r74573
Nathan Sidwell committed -
PR c++/12881 * method.c (make_thunk): Deal with thunk aliases when searching for a thunk. Robustify assertion. From-SVN: r74571
Nathan Sidwell committed
-
- 11 Dec, 2003 1 commit
-
-
* mangle.c (conv_type_names): Holds IDENTIFIER_NODEs only. (hash_type): Use TYPE_UID of the identifier's type. (compare_type): Adjust. (mangle_conv_op_name_for_type): Store identifier nodes only, use TYPE_UID has hash value. From-SVN: r74538
Nathan Sidwell committed
-
- 10 Dec, 2003 2 commits
-
-
From-SVN: r74496
Mark Mitchell committed -
PR c/13134 * c--decl.c (duplicate_decls): Copy visibility flag when appropriate. * cp/decl.c (duplicate_decls): Copy visibility flag when appropriate. * testsuite/lib/gcc-dg.exp (dg-require-visibility): Define. * testsuite/lib/target-supports (check_visibility_available): Define. * testsuite/gcc.dg/visibility-1.c: New test. * testsuite/gcc.dg/visibility-2.c: Likewise. * testsuite/gcc.dg/visibility-3.c: Likewise. * testsuite/gcc.dg/visibility-4.c: Likewise. * testsuite/gcc.dg/visibility-5.c: Likewise. * testsuite/gcc.dg/visibility-6.c: Likewise. * testsuite/g++.dg/ext/visibility-1.C: Likewise. * testsuite/g++.dg/ext/visibility-2.C: Likewise. * testsuite/g++.dg/ext/visibility-3.C: Likewise. * testsuite/g++.dg/ext/visibility-4.C: Likewise. * testsuite/g++.dg/ext/visibility-5.C: Likewise. * testsuite/g++.dg/ext/visibility-6.C: Likewise. From-SVN: r74487
Matt Austern committed
-
- 09 Dec, 2003 2 commits
-
-
* init.c (build_new_1): Deal with an OVERLOAD set when looking up for _Jv_AllocObject. * except.c (build_throw): Likewise for _Jv_Throw. From-SVN: r74474
Giovanni Bajo committed -
PR c++/11971 * tree.c (build_local_temp): Split out from build_cplus_new. (force_target_expr): New fn. * call.c (call_builtin_trap): Call it. Take a type parm. (convert_arg_to_ellipsis): Pass it. (build_x_va_arg): Use call_builtin_trap. PR c++/11929 * call.c (magic_varargs_p): New fn. (build_over_call): Do no ellipsis conversions for arguments to functions with magic varargs. From-SVN: r74462
Jason Merrill committed
-
- 08 Dec, 2003 2 commits
-
-
* name-lookup.c, init.c, except.c: Revert Giovanni's patch from yesterday. From-SVN: r74446
Jason Merrill committed -
* cp-tree.h: Don't declare anonymous_namespace_name. * decl.c: Don't define it. * dump.c (cp_dump_tree): Don't check for it. * cxx-pretty-print.c (pp_cxx_original_namespace_definition): Likewise. * error.c (dump_decl): Likewise. * name-lookup.c: Define it here. (push_namespace): Put it in DECL_ASSEMBLER_NAME instead. * mangle.c (write_unqualified_name): Adjust. From-SVN: r74433
Jason Merrill committed
-
- 07 Dec, 2003 1 commit
-
-
PR c++/2294 * name-lookup.c (push_overloaded_decl): Always construct an OVERLOAD unless the declaration is a built-in. (set_namespace_binding): While binding OVERLOADs with only one declaration, we still need to call supplement_binding. * init.c (build_new_1): Deal with an OVERLOAD set when looking up for _Jv_AllocObject. * except.c (build_throw): Likewise for _Jv_Throw. From-SVN: r74394
Giovanni Bajo committed
-
- 06 Dec, 2003 4 commits
-
-
PR c++/13323 * class.c (same_signature_p): Handle conversion operators correctly. (check_for_override): Likewise. PR c++/13323 * g++.dg/inherit/operator2.C: New test. From-SVN: r74370
Mark Mitchell committed -
gcc/ 2003-12-05 Kelley Cook <kcook@gcc.gnu.org> * Makefile.in (program_transform_cross_name): Delete. (GCC_CROSS_NAME, CPP_CROSS_NAME): Delete. (PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Delete. (AR_FOR_TARGET, RANLIB_FOR_TARGET, NM_FOR_TARGET): Adjust for above. (install_cpp, install_driver, install-man, uninstall): Likewise. gcc/cp 2003-12-05 Kelley Cook <kcook@gcc.gnu.org> * Make-lang.in (GXX_CROSS_NAME, CXX_CROSS_NAME): Delete. (c++.install_common, cp/g++.1, c++.install-man): Adjust for above. (c++.uninstall): Likewise. gcc/f 2003-12-05 Kelley Cook <kcook@gcc.gnu.org> * Make-lang.in (G77_CROSS_NAME): Delete. (g77.install_common, g77.install-man, g77.uninstall): Adjust for above. gcc/java 2003-12-05 Kelley Cook <kcook@gcc.gnu.org> * Make-lang.in (GCJ_CROSS_NAME): Delete. (java.install_common, java.install-man): Adjust for above. (java.uninstall): Likewise. From-SVN: r74365
Kelley Cook committed -
PR c++/13305 * parser.c (cp_parser_elaborated_type_specifier): Accept attributes. PR c++/13305 * g++.dg/ext/attrib9.C: New test. From-SVN: r74361
Mark Mitchell committed -
PR c++/13314 * emit-rtl.c (set_mem_attributes_minus_bitpos): Robustify. PR c++/13314 * parser.c (cp_parser_class_specifier): Match push_scope/pop_scope calls. (cp_parser_class_head): Likewise. PR c++/13314 * g++.dg/template/error7.C: New test. From-SVN: r74359
Mark Mitchell committed
-
- 05 Dec, 2003 1 commit
-
-
PR c++/13166 * parser.c (cp_parser_late_parsing_default_args): Make sure the context is a class before calling push_nested_class and pop_nested_class. * g++.dg/parse/defarg6.C: New test. From-SVN: r74333
Kriang Lerdsuwanakij committed
-
- 04 Dec, 2003 3 commits
-
-
PR c++/9127 * cp-tree.h (at_namespace_scope_p): New function. * parser.c (cp_parser_class_head): Handle invalid explicit specializations. * search.c (at_namespace_scope_p): New function. PR c++/9127 * g++.dg/template/error6.C: New test. From-SVN: r74274
Mark Mitchell committed -
libunwind cleanup * gcc.c (init_spec): Pass -lunwind to init_gcc_specs in eh_name. * g++spec.c (lang_specific_driver): Delete USE_LIBUNWIND_EXCEPTIONS support. From-SVN: r74273
James E Wilson committed -
PR c++/13179 * semantics.c (finish_handler_parms): Do not call eh_type_info for types used in templates. PR c++/13179 * g++.dg/template/eh1.C: New test. From-SVN: r74269
Mark Mitchell committed
-
- 03 Dec, 2003 1 commit
-
-
PR c++/10771 * parser.c (cp_parser_check_for_invalid_template_id): New function. (cp_parser_simple_type_specifier): Use it. (cp_parser_elaborated_type_specifier): Likewise. (cp_parser_class_head): Likewise. PR c++/10771 * g++.dg/template/error5.C: New test. From-SVN: r74239
Mark Mitchell committed
-
- 02 Dec, 2003 3 commits
-
-
PR c++/10126 * pt.c (convert_nontype_argument): Handle default conversions while converting a pointer to member function. From-SVN: r74184
Giovanni Bajo committed -
PR c++/12573 * pt.c (value_dependent_expression_p): Handle COMPONENT_REFs by looking into them recursively. From-SVN: r74172
Giovanni Bajo committed -
* name-lookup.h (struct cp_binding_level): Use ENUM_BITFIELD. * parser.c (struct cp_token): Likewise. (struct cp_parser_token_tree_map_node): Likewise. * lex.c (struct resword): Move const after ENUM_BITFIELD. From-SVN: r74169
Richard Henderson committed
-
- 01 Dec, 2003 1 commit
-
-
re PR c++/9849 (Missing keyword 'template' produces ICE with no diagnostic on 3.3 (and unreadable diagnostic on 3.4)) PR c++/9849 * g++.dg/template/error4.C: New test. * g++.dg/template/nested3.C: Adjust error markers. PR c++/9849 * parser.c (cp_lexer_prev_token): New function. (cp_parser_skip_to_closing_parenthesis): Add consume_paren parameter. (cp_parser_nested_name_specifier_opt): Add is_declaration parameter. (cp_parser_nested_name_specifier): Likewise. (cp_parser_class_or_namespace_name): Likewise. (cp_parser_class_name): Likewise. (cp_parser_template_id): Likewise. (cp_parser_template_name): Likewise. (cp_parser_id_expression): Adjust calls to cp_parser_nested_name_specifier_op, cp_parser_template_id, cp_parser_class_name. (cp_parser_unqualified_id): Likewise. (cp_parser_postfix_expression): Likewise. (cp_parser_pseudo_destructor_name): Likewise. (cp_parser_cast_expression): Likewise. (cp_parser_mem_initializer_id): Likewise. (cp_parser_simple_type_specifier): Likewise. (cp_parser_type_name): Likewise. (cp_parser_elaborated_type_specifier): Likewise. (cp_parser_qualified_namespace_specifier): Likewise. (cp_parser_using_declaration): Likewise. (cp_parser_using_directive): Likewise. (cp_parser_ptr_operator): Likewise. (cp_parser_declarator_id): Likewise. (cp_parser_class_head): Likewise. (cp_parser_base_specifier): Likewise. (cp_parser_constructor_declarator_p): Likewise. (cp_parser_direct_declarator): Fix typo in comment. (cp_parser_parenthesized_expression_list): Adjust call to cp_parser_skip_to_closing_parenthesis. (cp_parser_selection_statement): Likewise. From-SVN: r74087
Mark Mitchell committed
-
- 23 Nov, 2003 1 commit
-
-
PR c++/12924 * typeck.c (finish_class_member_access_expr): Handle TEMPLATE_ID_EXPR with OVERLOAD and DECL nodes as the first operand. * g++.dg/template/template-id-2.C: New test. From-SVN: r73851
Kriang Lerdsuwanakij committed
-
- 22 Nov, 2003 2 commits
-
-
From-SVN: r73834
Kriang Lerdsuwanakij committed -
PR c++/5369 * friend.c (is_friend): Handle member function of a class template as template friend. (do_friend): Likewise. * decl2.c (check_classfn): Add template_header_p parameter. * decl.c (start_decl): Adjust check_classfn call. (grokfndecl): Likewise. * pt.c (is_specialization_of_friend): New function. (uses_template_parms_level): Likewise. (push_template_decl_real): Use uses_template_parms_level. (tsubst_friend_function): Adjust check_classfn call. * cp-tree.h (check_classfn): Adjust declaration. (uses_template_parms_level): Add declaration. (is_specialization_of_friend): Likewise. * g++.dg/template/memfriend1.C: New test. * g++.dg/template/memfriend2.C: Likewise. * g++.dg/template/memfriend3.C: Likewise. * g++.dg/template/memfriend4.C: Likewise. * g++.dg/template/memfriend5.C: Likewise. * g++.dg/template/memfriend6.C: Likewise. * g++.dg/template/memfriend7.C: Likewise. * g++.dg/template/memfriend8.C: Likewise. * g++.old-deja/g++.pt/friend44.C: Remove a bogus error. From-SVN: r73833
Kriang Lerdsuwanakij committed
-
- 21 Nov, 2003 3 commits
-
-
PR c++/12515 * pt.c (build_non_dependent_expr): Handle GNU extension to ?: operator. PR c++/12515 * g++.dg/ext/cond1.C: New test. From-SVN: r73820
Mark Mitchell committed -
* parser.c (cp_parser_postfix_expression): Initialize 's' to NULL_TREE. From-SVN: r73802
Jan Hubicka committed -
* parser.c (cp_parser_postfix_expression): Initialize 's' to NULL_TREE. [[Split portion of a mixed commit.]] From-SVN: r73801.2
Jan Hubicka committed
-
- 20 Nov, 2003 2 commits
-
-
gcc: * Makefile.in (extraclean): Delete. * configure.in (target_list): Remove extraclean. * configure: Regenerate. * doc/makefile.texi, doc/sourcebuild.texi: Update. * objc/Make-lang.in (objc.extraclean): Delete. gcc/ada: * Make-lang.in (ada.extraclean): Delete. gcc/cp: * Make-lang.in (c++.extraclean): Delete. gcc/f: * Make-lang.in (f77.extraclean): Delete. gcc/java: * Make-lang.in (java.extraclean): Delete. gcc/treelang: * Make-lang.in (treelang.extraclean): Delete. From-SVN: r73759
Joseph Myers committed -
gcc: * Makefile.in (lang_checks): Add. (check-c++, check-f77, check-java, check-g++, check-g77, check-objc): Remove hardcoded targets. * doc/sourcebuild.texi: Document testsuite hooks. * objc/Make-lang.in (check-objc, lang_checks): Add. gcc/cp: * Make-lang.in (check-g++, lang_checks): Add. gcc/f: * Make-lang.in (check-f77, lang_checks): Add. gcc/java: * Make-lang.in (check-java): Add. gcc/treelang: * Make-lang.in: Remove obsolete comment. From-SVN: r73758
Joseph Myers committed
-
- 18 Nov, 2003 1 commit
-
-
PR c++/12932 * class.c (currently_open_derived_class): Check if current_class_type is NULL_TREE. * semantics.c (finish_call_expr): Check if currently_open_derived_class returns NULL_TREE. * cp-tree.h (DERIVED_FROM_P): Add parenthesis around PARENT parameter. * g++.dg/template/static5.C: New test. From-SVN: r73705
Kriang Lerdsuwanakij committed
-
- 17 Nov, 2003 1 commit
-
-
* init.c (build_new_1): Preevaluate placement args. * call.c (build_op_delete_call): Don't expose placement args to overload resolution. From-SVN: r73677
Jason Merrill committed
-
- 16 Nov, 2003 1 commit
-
-
* Makefile.in, objc/Make-lang.in, ada/Make-lang.in, cp/Make-lang.in, java/Make-lang.in, f/Make-lang.in: Create TAGS.sub files in each directory and TAGS files that include them for each front end. From-SVN: r73643
Jason Merrill committed
-
- 15 Nov, 2003 2 commits
-
-
From-SVN: r73633
Jason Merrill committed -
PR c++/2294 * name-lookup.c: Revert previous patch for PR c++/2294 to prevent build failure on libjava. From-SVN: r73630
Bernardo Innocenti committed
-
- 14 Nov, 2003 3 commits
-
-
PR c++/2294 * name-lookup.c (push_overloaded_decl): Always construct an OVERLOAD unless the declaration is a built-in. (set_namespace_binding): While binding OVERLOADs with only one declaration, we still need to call supplement_binding. From-SVN: r73618
Giovanni Bajo committed -
PR c++/12762 * parser.c (cp_parser_enclosed_template_argument_list): New function. (cp_parser_template_id): Use it. (cp_parser_simple_type_specifier): Recognize invalid template syntax. PR c++/12762 * g++.dg/template/error3.C: New test. From-SVN: r73610
Mark Mitchell committed -
PR c++/2094 * pt.c (unify): Add support for PTRMEM_CST and FIELD_DECL unification. From-SVN: r73577
Giovanni Bajo committed
-