2005-08-30 18:22:00 +02:00
|
|
|
2005-08-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
|
|
|
|
|
|
|
|
PR c++/23586
|
|
|
|
* parser.c (cp_parser_namespace_name): Move diagnostic for
|
|
|
|
invalid namespace-name to here from ...
|
|
|
|
* name-lookup.c (do_namespace_alias): ... here and ...
|
|
|
|
(do_using_directive): ... here. Remove dead code.
|
|
|
|
|
2005-08-29 16:08:50 +02:00
|
|
|
2005-08-28 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/23099
|
|
|
|
* cp-tree.h (saved_scope): Add skip_evaluation.
|
|
|
|
* decl.c (start_decl): Use DECL_INITIALIZED_IN_CLASS_P, not
|
|
|
|
DECL_INITIAL, to determine whether or not a static data member was
|
|
|
|
initialized in the class-specifier.
|
|
|
|
(cp_finish_decl): Add comment.
|
|
|
|
* init.c (integral_constant_value): Subtitute into the
|
|
|
|
initializers for static data members in templates.
|
|
|
|
* name-lookup.c (push_to_top_level): Save skip_evaluation.
|
|
|
|
(pop_from_top_level): Restore it.
|
|
|
|
* pt.c (instantiate_class_template): Do not substitute into the
|
|
|
|
intializers of static data members when instantiating a class.
|
|
|
|
(regenerate_decl_from_template): Simplify.
|
|
|
|
(instantiate_decl): Tidy. Substitute into the initializer for a
|
|
|
|
static data member even when the definition of the data member is
|
|
|
|
not available.
|
|
|
|
|
2005-08-26 21:32:31 +02:00
|
|
|
2005-08-26 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
2005-08-26 21:35:13 +02:00
|
|
|
PR c++/19004
|
|
|
|
* pt.c (uses_template_parms): Handle IDENTIFIER_NODE.
|
|
|
|
(type_dependent_expression_p): Allow BASELINKs whose associated
|
|
|
|
functions are simply a FUNCTION_DECL.
|
|
|
|
|
2005-08-26 21:32:31 +02:00
|
|
|
PR c++/23491
|
|
|
|
* cp-tree.h (build_vec_init): Adjust prototype.
|
|
|
|
* init.c (perform_member_init): Adjust call to build_vec_init.
|
|
|
|
(build_aggr_init): Likewise.
|
|
|
|
(build_new_1): Do not call build_default_init for array types.
|
|
|
|
(build_vec_init): Add explicit_default_init_p parameter. Perform
|
|
|
|
default initialization of vector elements when set.
|
|
|
|
* typeck.c (build_modify_expr): Adjust call to build_vec_init.
|
|
|
|
|
2005-08-25 11:06:45 +02:00
|
|
|
2005-08-25 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/20817
|
|
|
|
* typeck.c (build_x_unary_op): Make sure OFFSET_REF is not for a
|
|
|
|
->*.
|
|
|
|
|
2005-08-24 12:21:46 +02:00
|
|
|
2005-08-24 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/22454
|
|
|
|
* parser.c (cp_lexer_peek_nth_token): Relax assert.
|
|
|
|
|
2005-08-23 14:35:42 +02:00
|
|
|
2005-08-23 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/23044
|
|
|
|
* pt.c (tsubst_qualified_id): A SCOPE_REF can still remain.
|
|
|
|
|
2005-08-23 01:52:22 +02:00
|
|
|
2005-08-22 James E Wilson <wilson@specifix.com>
|
|
|
|
|
2005-08-23 01:56:29 +02:00
|
|
|
PR tree-optimization/23426
|
2005-08-23 01:52:22 +02:00
|
|
|
* decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE for
|
|
|
|
array size check.
|
|
|
|
|
2005-08-22 11:48:26 +02:00
|
|
|
2005-08-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
|
|
|
|
|
|
|
|
PR c++/22233
|
|
|
|
* pt.c (push_template_decl_real): Return error_mark_node if the
|
|
|
|
number of template parameters does not match previous definition.
|
|
|
|
|
2005-08-22 10:37:17 +02:00
|
|
|
2005-08-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
|
|
|
|
|
|
|
|
PR c++/23089
|
|
|
|
* decl.c (require_complete_types_for_parms): Mark incomplete types
|
|
|
|
as invalid.
|
|
|
|
|
2005-08-19 21:08:08 +02:00
|
|
|
2005-08-19 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
|
|
|
|
|
|
|
|
* parser.c (cp_parser_nth_token_starts_template_argument_list_p):
|
|
|
|
Fix typo in leading comment.
|
|
|
|
|
2005-08-16 02:13:53 +02:00
|
|
|
2005-08-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
|
|
|
|
|
|
|
* name-lookup.c, ptree.c: Delete HOST_PTR_PRINTF.
|
|
|
|
|
2005-08-15 22:38:23 +02:00
|
|
|
2005-08-15 Fariborz Jahanian <fjahanian@apple.com>
|
|
|
|
|
|
|
|
* cp-tree.h (can_convert_arg, fn_type_unification): New argument.
|
|
|
|
* call.c (add_template_candidate_real): Pass down 'flags' to
|
|
|
|
fn_type_unification.
|
|
|
|
(can_convert_arg): New 'flags' argument. Pass it to call to
|
|
|
|
implicit_conversion instead of LOOKUP_NORMAL.
|
|
|
|
(can_convert): Add LOOKUP_NORMAL to call to can_convert_arg.
|
|
|
|
* class.c (resolve_address_of_overloaded_function): Ditto.
|
|
|
|
(resolve_address_of_overloaded_function): Ditto.
|
|
|
|
* decl.c (reshape_init, check_default_argument): Ditto.
|
|
|
|
* typeck.c (build_ptrmemfunc): Ditto.
|
|
|
|
* pt.c (type_unification_real): Add 'flags' argument.
|
|
|
|
(fn_type_unification): Pass 'flags' to type_unification_real.
|
|
|
|
(type_unification_real): Pass new 'flags' argument to call to
|
|
|
|
can_convert_arg.
|
|
|
|
|
2005-08-12 11:23:43 +02:00
|
|
|
2005-08-12 Giovanni Bajo <giovannibajo@libero.it>
|
|
|
|
Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/21799
|
|
|
|
PR c++/8271
|
|
|
|
* pt.c (unify) <METHOD_TYPE>: Check this-pointer cv-qualifiers
|
|
|
|
explicitly.
|
|
|
|
|
|
|
|
2005-08-12 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/21799
|
|
|
|
Revert my 2005-07-08 patch
|
|
|
|
* pt.c (type_unification_real): Remove is_method_argument and
|
|
|
|
assoicated checks.
|
|
|
|
(fn_type_unification, unify): Adjust type_unification_real calls.
|
|
|
|
|
2005-08-12 00:46:29 +02:00
|
|
|
2005-08-11 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
|
|
|
|
|
|
|
|
PR c++/23266
|
|
|
|
* decl2.c (grokfield): Check that method is not static before
|
|
|
|
marking it as pure.
|
|
|
|
|
2005-08-11 11:23:57 +02:00
|
|
|
2005-08-11 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/23219
|
|
|
|
* name-lookup.c (pushtag): Process the template type before
|
|
|
|
altering the identifier lookup fields. Remove unreachable code
|
|
|
|
creating an empty stub decl.
|
|
|
|
|
2005-08-10 02:20:32 +02:00
|
|
|
2005-08-10 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
|
|
|
|
|
|
|
|
PR c++/20646
|
|
|
|
* decl.c (grokdeclarator): Reset storage_class after error.
|
|
|
|
|
2005-08-08 19:03:33 +02:00
|
|
|
2005-08-08 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
|
|
|
|
|
|
|
|
PR c++/22508
|
|
|
|
* init.c (build_new_1): Check for empty candidate list.
|
|
|
|
|
2005-08-07 00:38:44 +02:00
|
|
|
2005-08-06 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
|
|
|
|
|
|
|
|
PR c++/23191
|
|
|
|
* pt.c (tsubst) <case METHOD_TYPE>: Check for error_mark_node
|
|
|
|
before calling build_exception_variant.
|
|
|
|
|
2005-08-07 00:22:47 +02:00
|
|
|
2005-08-06 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
|
|
|
|
|
|
|
|
PR c++/19498
|
|
|
|
* pt.c (tsubst_decl) <case TEMPLATE_DECL>: Return ERROR_MARK_NODE
|
|
|
|
if substitution of template args did not succeed.
|
|
|
|
|
2005-08-06 23:25:09 +02:00
|
|
|
2005-08-06 Michael Matz <matz@suse.de>
|
|
|
|
|
|
|
|
* method.c (use_thunk): Call init_insn_lengths.
|
|
|
|
|
2005-08-06 07:18:09 +02:00
|
|
|
2005-08-05 James A. Morrison <phython@gcc.gnu.org>
|
|
|
|
|
|
|
|
PR c++/22514
|
|
|
|
* name-lookup.c (cp_emit_debug_info_for_using): Do nothing if
|
|
|
|
sorrycount or errorcount are nonzero.
|
|
|
|
|
2005-08-05 23:01:47 +02:00
|
|
|
2005-08-05 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
* name-lookup.c (pushtag): Remove accidental commit from:
|
|
|
|
2004-12-21 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
PR c++/19063
|
|
|
|
* decl.c (grokdeclarator): Return error_mark_node, not
|
|
|
|
void_type_node, to indicate errors.
|
|
|
|
* parser.c (cp_parser_template_parameter_list): Robustify.
|
|
|
|
(cp_parser_template_parameter): Likewise.
|
|
|
|
|
2005-08-01 06:02:26 +02:00
|
|
|
2005-08-01 Kazu Hirata <kazu@codesourcery.com>
|
|
|
|
|
|
|
|
* class.c, decl.c, name-lookup.c, pt.c, typeck.c, typeck2.c:
|
|
|
|
Fix comment typos.
|
|
|
|
|
2005-07-29 16:45:54 +02:00
|
|
|
2005-07-29 Kazu Hirata <kazu@codesourcery.com>
|
|
|
|
|
|
|
|
* method.c: Fix a comment typo.
|
|
|
|
|
2005-07-28 20:08:59 +02:00
|
|
|
2005-07-28 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/22545
|
|
|
|
* call.c (add_builtin_candidate): Adjust for changes in
|
|
|
|
representation of pointer-to-member types.
|
|
|
|
|
2005-07-28 20:06:47 +02:00
|
|
|
2005-07-28 Mike Stump <mrs@apple.com>
|
|
|
|
|
|
|
|
* pt.c (check_explicit_specialization): Add visibility logic.
|
|
|
|
(lookup_template_class): Likewise.
|
|
|
|
(instantiate_class_template): Likewise.
|
|
|
|
|
2005-07-27 20:31:36 +02:00
|
|
|
2005-07-27 Devang Patel <dpatel@apple.com>
|
|
|
|
|
|
|
|
* name-lookup.c (pushtag): Do no set DECL_IGNORED_P bit.
|
|
|
|
|
2005-07-26 04:38:20 +02:00
|
|
|
2005-07-25 Ian Lance Taylor <ian@airs.com>
|
|
|
|
|
|
|
|
* ptree.c (cxx_print_identifier): Print a leading space if the
|
|
|
|
indent level is 0.
|
|
|
|
|
2005-07-24 23:38:02 +02:00
|
|
|
2005-07-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
|
|
|
|
|
|
|
* call.c (convert_for_arg_passing): Check function pointers when
|
|
|
|
-Wmissing-format-attribute is activated.
|
|
|
|
* typeck.c (convert_for_assignment): Likewise.
|
|
|
|
|
2005-07-22 09:31:32 +02:00
|
|
|
2005-07-22 Manfred Hollstein <mh@suse.com>
|
|
|
|
|
|
|
|
* parser.c (cp_parser_declaration): Fix unitialised warnings.
|
|
|
|
|
2005-07-21 21:43:47 +02:00
|
|
|
2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
|
|
|
|
|
|
|
|
* class.c (build_base_path): Fix typo.
|
|
|
|
|
2005-07-21 20:29:05 +02:00
|
|
|
2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
|
|
|
|
|
|
|
|
PR C++/22358
|
|
|
|
* class.c (build_base_path): Convert BINFO_OFFSET to the correct type.
|
|
|
|
|
2005-07-21 12:33:31 +02:00
|
|
|
2005-07-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
|
|
|
|
|
|
|
|
* call.c: Fix comment typo(s).
|
|
|
|
* cxx-pretty-print.h: Likewise.
|
|
|
|
* name-lookup.c: Likewise.
|
|
|
|
* parser.c: Likewise.
|
|
|
|
|
2005-07-21 05:53:07 +02:00
|
|
|
2005-07-20 Douglas Gregor <doug.gregor@gmail.com>
|
|
|
|
|
|
|
|
PR c++/2922
|
|
|
|
* semantics.c (perform_koenig_lookup): For dependent calls, just
|
|
|
|
return the set of functions we've found so far. Later, it will be
|
|
|
|
augmented by those found through argument-dependent lookup.
|
2005-07-21 16:18:52 +02:00
|
|
|
* name-lookup.c (lookup_arg_dependent): Implement DR 164 by removing
|
|
|
|
the optimization that skips namespaces where the functions were
|
|
|
|
originally found.
|
2005-07-21 05:53:07 +02:00
|
|
|
|
Make CONSTRUCTOR use VEC to store initializers.
* c-common.c (complete_array_type): Update to cope with VEC in
CONSTRUCTOR_ELTS.
* c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
(pp_c_constructor_elts): New function.
* c-pretty-print.h (pp_c_constructor_elts): Declare.
* c-typeck.c (build_function_call, build_c_cast, digest_init,
struct constructor_stack, struct initializer_stack,
constructor_elements, push_init_level, pop_init_level,
add_pending_init, find_init_member, output_init_element): Update to
cope with VEC in CONSTRUCTOR_ELTS.
* coverage.c (build_fn_info_value, build_ctr_info_value,
build_gcov_info): Likewise.
* expr.c (categorize_ctor_elements_1, store_constructor,
expand_expr_real_1): Likewise.
* fold-const.c (fold_ternary): Likewise.
* gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
gimplify_init_constructor, gimplify_expr): Likewise.
* tree-dump.c (dequeue_and_dump): Likewise.
* tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
node.
* tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
CONSTRUCTOR_ELTS.
* tree-sra.c (generate_element_init_1): Likewise.
* tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
* tree-ssa-operands.c (get_expr_operands): Likewise.
* tree-vect-generic.c (expand_vector_piecewise): Likewise.
* tree-vect-transform.c (vect_get_vec_def_for_operand):
(get_initial_def_for_reduction): Likewise.
* tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
value handle in annotations.
* tree.c (tree_node_kind, tree_code_size, make_node_stat,
tree_node_structure): Add support for constr_kind.
(build_vector_from_ctor, build_constructor_single,
build_constructor_from_list): New functions.
(build_constructor): Update to take a VEC instead of a TREE_LIST.
(simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
Update to cope with VEC in CONSTRUCTOR_ELTS.
* tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
* tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
CONSTRUCTOR_APPEND_ELT): New macros.
(struct constructor_elt, struct tree_constructor): New data types.
(union tree_node): Add tree_constructor field.
* treestruct.def: Define TS_CONSTRUCTOR.
* varasm.c (const_hash_1, compare_constant, copy_constant,
compute_reloc_for_constant, output_addressed_constants,
initializer_constant_valid_p, output_constant,
array_size_for_constructor, output_constructor): Update to cope with
VEC in CONSTRUCTOR_ELTS.
* vec.h (VEC_empty, VEC_copy): New macros.
ada/
Make CONSTRUCTOR use VEC to store initializers.
* decl.c (gnat_to_gnu_entity): Update to cope with VEC in
CONSTRUCTOR_ELTS.
* trans.c (extract_values): Likewise.
* utils.c (convert, remove_conversions): Likewise.
* utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
gnat_build_constructor): Likewise.
cp/
Make CONSTRUCTOR use VEC to store initializers.
* call.c (convert_default_arg): Update call to digest_init.
* class.c (dump_class_hierarchy, dump_array): Update to cope with
VEC in CONSTRUCTOR_ELTS.
* cp-tree.h (EMPTY_CONSTRUCTOR_P): Likewise.
(finish_compound_literal, digest_init): Update declaration.
* decl.c (struct reshape_iter): New data type.
(reshape_init_array): Rename to...
(reshape_init_array_1): Update to cope with VEC in CONSTRUCTOR_ELTS.
(reshape_init): Rewrite from scratch. Split parts into...
(reshape_init_array, reshape_init_vector, reshape_init_class,
reshape_init_r): New functions.
(check_initializer): Update call to reshape_init. Remove obsolete
code.
(initialize_artificial_var, cp_complete_array_type): Update to cope
with VEC in CONSTRUCTOR_ELTS.
* decl2.c (grokfield): Update calls to digest_init.
(mark_vtable_entries): Update to cope with VEC in CONSTRUCTOR_ELTS.
* error.c (dump_expr_init_vec): New function.
(dump_expr): Use dump_expr_init_vec.
* init.c (build_zero_init, build_vec_init): Update to cope with VEC
in CONSTRUCTOR_ELTS.
(expand_default_init): Update call to digest_init.
* parser.c (cp_parser_postfix_expression): Use a VEC for the
initializers.
(cp_parser_initializer_list): Build a VEC of initializers.
* pt.c (tsubst_copy, tsubst_copy_and_build): Update to cope with VEC
in CONSTRUCTOR_ELTS.
* rtti.c (tinfo_base_init, generic_initializer, ptr_initializer,
ptm_initializer, class_initializer, get_pseudo_ti_init): Use
build_constructor_from_list instead of build_constructor.
* semantics.c (finish_compound_literal): Update call to digest_init.
* tree.c (stabilize_init): Update to cope with VEC in
CONSTRUCTOR_ELTS.
* typeck.c (build_ptrmemfunc1): Likewise.
* typeck2.c: (cxx_incomplete_type_error, split_nonconstant_init_1):
Likewise.
(store_init_value): Use build_constructor_from_list and update call
to digest_init.
(digest_init): Rewrite.
(process_init_constructor): Rewrite from scratch. Split into...
(process_init_constructor_array, picflag_from_initializer,
process_init_constructor_record, process_init_constructor_union):
New functions.
(PICFLAG_ERRONEOUS, PICFLAG_NOT_ALL_CONSTANT, PICFLAG_NOT_ALL_SIMPLE):
New macros.
(build_functional_cast): Use build_constructor_from_list instead of
build_constructor.
fortran/
Make CONSTRUCTOR use VEC to store initializers.
* trans-array.c (gfc_build_null_descriptor,
gfc_trans_array_constructor_value, gfc_conv_array_initializer):
Update to cope with VEC in CONSTRUCTOR_ELTS.
* trans-common.c (create_common): Likewise.
* trans-expr.c (gfc_conv_structure): Likewise.
* trans-stmt.c (gfc_trans_character_select): Use
build_constructor_from_list instead of build_constructor.
java/
Make CONSTRUCTOR use VEC to store initializers.
* check-init.c (check_init): Update to cope with VEC in
CONSTRUCTOR_ELTS.
* class.c (make_field_value, make_method_value, get_dispatch_table,
make_class_data, emit_symbol_table, emit_catch_table,
emit_assertion_table): Use build_constructor_from_list instead of
build_constructor.
* constants.c (build_constants_constructor): Likewise.
* java-gimplify.c (java_gimplify_new_array_init): Update to cope with
VEC in CONSTRUCTOR_ELTS.
* java-tree.h (START_RECORD_CONSTRUCTOR, PUSH_SUPER_VALUE,
PUSH_FIELD_VALUE, FINISH_RECORD_CONSTRUCTOR): Create a VEC instead
of a TREE_LIST.
* jcf-write.c (generate_bytecode_insns): Update to cope with VEC in
CONSTRUCTOR_ELTS.
* parse.y (build_new_array_init): Use build_constructor_from_list
instead of build_constructor.
(patch_new_array_init): Update to cope with VEC in
CONSTRUCTOR_ELTS.
(array_constructor_check_entry): Likewise.
objc/
Make CONSTRUCTOR use VEC to store initializers.
* objc-act.c (objc_build_constructor): Use build_constructor_from_list
instead of build_constructor.
testsuite/
Make CONSTRUCTOR use VEC to store initializers.
* g++.dg/ext/complit3.C: Check for specific error messages.
* g++.dg/init/brace2.C: Update error message.
* g++.dg/warn/Wbraces2.C: Likewise.
From-SVN: r102182
2005-07-20 03:19:59 +02:00
|
|
|
2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
|
|
|
|
|
|
|
|
Make CONSTRUCTOR use VEC to store initializers.
|
|
|
|
* call.c (convert_default_arg): Update call to digest_init.
|
|
|
|
* class.c (dump_class_hierarchy, dump_array): Update to cope with
|
|
|
|
VEC in CONSTRUCTOR_ELTS.
|
|
|
|
* cp-tree.h (EMPTY_CONSTRUCTOR_P): Likewise.
|
|
|
|
(finish_compound_literal, digest_init): Update declaration.
|
|
|
|
* decl.c (struct reshape_iter): New data type.
|
|
|
|
(reshape_init_array): Rename to...
|
|
|
|
(reshape_init_array_1): Update to cope with VEC in CONSTRUCTOR_ELTS.
|
|
|
|
(reshape_init): Rewrite from scratch. Split parts into...
|
|
|
|
(reshape_init_array, reshape_init_vector, reshape_init_class,
|
|
|
|
reshape_init_r): New functions.
|
|
|
|
(check_initializer): Update call to reshape_init. Remove obsolete
|
|
|
|
code.
|
|
|
|
(initialize_artificial_var, cp_complete_array_type): Update to cope
|
|
|
|
with VEC in CONSTRUCTOR_ELTS.
|
|
|
|
* decl2.c (grokfield): Update calls to digest_init.
|
|
|
|
(mark_vtable_entries): Update to cope with VEC in CONSTRUCTOR_ELTS.
|
|
|
|
* error.c (dump_expr_init_vec): New function.
|
|
|
|
(dump_expr): Use dump_expr_init_vec.
|
|
|
|
* init.c (build_zero_init, build_vec_init): Update to cope with VEC
|
|
|
|
in CONSTRUCTOR_ELTS.
|
|
|
|
(expand_default_init): Update call to digest_init.
|
|
|
|
* parser.c (cp_parser_postfix_expression): Use a VEC for the
|
|
|
|
initializers.
|
|
|
|
(cp_parser_initializer_list): Build a VEC of initializers.
|
|
|
|
* pt.c (tsubst_copy, tsubst_copy_and_build): Update to cope with VEC
|
|
|
|
in CONSTRUCTOR_ELTS.
|
|
|
|
* rtti.c (tinfo_base_init, generic_initializer, ptr_initializer,
|
|
|
|
ptm_initializer, class_initializer, get_pseudo_ti_init): Use
|
|
|
|
build_constructor_from_list instead of build_constructor.
|
|
|
|
* semantics.c (finish_compound_literal): Update call to digest_init.
|
|
|
|
* tree.c (stabilize_init): Update to cope with VEC in
|
|
|
|
CONSTRUCTOR_ELTS.
|
|
|
|
* typeck.c (build_ptrmemfunc1): Likewise.
|
|
|
|
* typeck2.c: (cxx_incomplete_type_error, split_nonconstant_init_1):
|
|
|
|
Likewise.
|
|
|
|
(store_init_value): Use build_constructor_from_list and update call
|
|
|
|
to digest_init.
|
|
|
|
(digest_init): Rewrite.
|
|
|
|
(process_init_constructor): Rewrite from scratch. Split into...
|
|
|
|
(process_init_constructor_array, picflag_from_initializer,
|
|
|
|
process_init_constructor_record, process_init_constructor_union):
|
|
|
|
New functions.
|
|
|
|
(PICFLAG_ERRONEOUS, PICFLAG_NOT_ALL_CONSTANT, PICFLAG_NOT_ALL_SIMPLE):
|
|
|
|
New macros.
|
|
|
|
(build_functional_cast): Use build_constructor_from_list instead of
|
|
|
|
build_constructor.
|
|
|
|
|
2005-07-18 17:44:36 +02:00
|
|
|
2005-07-18 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/22263
|
|
|
|
* cp-tree.h (instantiate_decl): Change prototype.
|
|
|
|
* decl2.c (mark_used): Adjust accordingly.
|
|
|
|
* pt.c (do_decl_instantiation): Likewise.
|
|
|
|
(instantiate_class_member): Likewise.
|
|
|
|
(instantiate_decl): Rename undefined_ok as expl_inst_class_mem_p.
|
|
|
|
Clear DECL_INTERFACE_KNOWN for an explicitly instantiated template
|
|
|
|
that has no definition available.
|
|
|
|
(instantiate_pending_templates): Adjust call to instantiate_decl.
|
|
|
|
|
2005-07-18 00:02:09 +02:00
|
|
|
2005-07-17 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/22139
|
|
|
|
* cp-tree.h (DECL_TEMPLATE_INFO): Improve documentation.
|
|
|
|
* decl.c (duplicate_decls): Re-register template specializations
|
|
|
|
for functions that have DECL_TEMLPLATE_INFO, even if they do not
|
|
|
|
have DECL_TEMPLATE_INSTANTIATION set.
|
|
|
|
|
2005-07-16 16:20:45 +02:00
|
|
|
2005-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
|
|
|
|
|
|
|
* call.c (diagnostic_fn_t): New.
|
|
|
|
(build_temp, convert_like_real): Use diagnostic_fn_t.
|
|
|
|
|
2005-07-16 02:25:01 +02:00
|
|
|
2005-07-15 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/22204
|
|
|
|
* repo.c (repo_emit_p): Robustify.
|
|
|
|
|
2005-07-15 22:22:39 +02:00
|
|
|
2005-07-14 Daniel Berlin <dberlin@dberlin.org>
|
|
|
|
|
|
|
|
Fix PR c++/22452
|
|
|
|
* tree.c (decl_linkage): Don't check DECL_COMDAT on CONST_DECL.
|
|
|
|
|
2005-07-15 18:10:05 +02:00
|
|
|
2005-07-15 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/22132
|
|
|
|
* call.c (implicit_conversion): Add c_cast_p parameter.
|
|
|
|
(standard_conversion): Likewise. Allow conversions between
|
|
|
|
differently-qualified pointer types when performing a C-style
|
|
|
|
cast.
|
|
|
|
(add_function_candidate): Adjust callee.
|
|
|
|
(build_builtin_candidate): Likewise.
|
|
|
|
(build_user_type_conversion_1): Likewise.
|
|
|
|
(conditional_conversion): Likewise.
|
|
|
|
(can_convert_arg): Likewise.
|
|
|
|
(can_convert_arg_bad): Likewise.
|
|
|
|
(perform_implicit_conversion): Likewise.
|
|
|
|
* cp-tree.h (comp_ptr_ttypes_const): Declare.
|
|
|
|
* typeck.c (comp_ptr_ttypes_const): Give it external linkage.
|
|
|
|
Return bool.
|
|
|
|
|
2005-07-12 18:07:38 +02:00
|
|
|
2005-07-12 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
|
|
|
|
Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/20172
|
|
|
|
* pt.c (tsubst_template_parms): Check for invalid non-type
|
|
|
|
parameters.
|
|
|
|
|
2005-07-09 17:45:09 +02:00
|
|
|
2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
|
|
|
|
|
|
|
|
* cp-lang.c (shadowed_var_for_decl, decl_shadowed_for_var_lookup,
|
|
|
|
decl_shadowed_for_var_insert): Move over to cp-objcp-common.c.
|
|
|
|
(cp_init_ts): Call init_shadowed_var_for_decl.
|
|
|
|
Remove include of gt-cp-cp-lang.h.
|
|
|
|
* cp-objcp-common.c (shadowed_var_for_decl,
|
|
|
|
decl_shadowed_for_var_lookup, decl_shadowed_for_var_insert): Moved from
|
|
|
|
cp-lang.c.
|
|
|
|
(init_shadowed_var_for_decl): New function to initialize
|
|
|
|
shadowed_var_for_decl.
|
|
|
|
Include gt-cp-cp-objcp-common.h.
|
|
|
|
* Make-lang.in (gt-cp-lang.h): Remove.
|
|
|
|
(gt-cp-cp-objcp-common.h): Add.
|
|
|
|
(cp/cp-lang.o): Remove dependancy on gt-cp-lang.h.
|
|
|
|
(cp/cp-objcp-common.o): Add dependancy on gt-cp-cp-objcp-common.h.
|
|
|
|
* config-lang.in (gtfiles): Remove cp-lang.c and Add cp-objcp-common.c.
|
|
|
|
* cp-tree (init_shadowed_var_for_decl): Add prototype.
|
|
|
|
|
2005-07-09 01:37:11 +02:00
|
|
|
2005-07-08 Daniel Berlin <dberlin@dberlin.org>
|
|
|
|
|
|
|
|
* Make-lang.in: Add gt-cp-lang.h.
|
|
|
|
(cp-lang.o): Ditto.
|
|
|
|
* class.c (create_vtable_ptr): Stop setting DECL_ASSEMBLER_NAME on
|
|
|
|
the field.
|
|
|
|
* config-lang.in: Add cp-lang.c to gtfiles.
|
|
|
|
* cp-lang.c: Include hashtab.h.
|
|
|
|
(cp_init_ts): New function.
|
|
|
|
(LANG_HOOK_INIT_TS): Use macro.
|
|
|
|
(decl_shadowed_for_var_lookup): New function.
|
|
|
|
(decl_shadowed_for_var_insert): Ditto.
|
|
|
|
* cp-tree.h (THUNK_FUNCTION_CHECK): Use decl_common.
|
|
|
|
(NON_THUNK_FUNCTION_CHECK): Ditto.
|
|
|
|
(DECL_NAMESPACE_ASSOCIATIONS): Use decl_non_common.
|
|
|
|
(DECL_INIT_PRIORITY): Ditto.
|
|
|
|
(DECL_HAS_SHADOWED_FOR_VAR_P): Ditto.
|
|
|
|
(DECL_SHADOWED_FOR_VAR): Use hashtable.
|
|
|
|
(SET_DECL_SHADOWED_FOR_VAR): Ditto.
|
|
|
|
* decl.c (duplicate_decls): Update for new/updated structures.
|
|
|
|
(poplevel): Use SET_DECL_SHADOWED_FOR_VAR.
|
|
|
|
* decl2.c (start_static_initialization_or_destruction): Deal with
|
|
|
|
priority.
|
|
|
|
* pt.c (tsubst_decl): Check TS_DECL_WRTL before doing
|
|
|
|
SET_DECL_RTL.
|
|
|
|
* tree.c (handle_init_priority_attribute): Handle priority.
|
|
|
|
|
2005-07-08 13:05:51 +02:00
|
|
|
2005-07-08 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/21799
|
|
|
|
* pt.c (type_unification_real): Add is_method argument. Use it
|
|
|
|
for this pointer unification.
|
|
|
|
(fn_type_unification): Adjust type_unification_real call.
|
|
|
|
(unify): Likewise.
|
|
|
|
|
2005-07-07 16:38:33 +02:00
|
|
|
2005-07-07 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
* pt.c (type_unification_real): Remove allow_incomplete argument.
|
|
|
|
Remove unreachable code.
|
|
|
|
(fn_type_unification): Adjust call to type_unification_real.
|
|
|
|
(unify): Likewise.
|
|
|
|
|
Makefile.in: Adjust dependencies.
2005-07-05 Paolo Bonzini <bonzini@gnu.org>
* Makefile.in: Adjust dependencies.
* tree-pass.h: Add new passes and passes formerly in tree-optimize.c.
* basic-block.h (duplicate_computed_gotos): Remove, it is now static.
* alias.c (rest_of_handle_cfg, pass_cfg): New.
* bb-reorder.c (duplicate_computed_gotos): Make it static.
* cfgexpand.c (tree_expand_cfg): Add code formerly at the beginning of
rest_of_compilation.
* bb-reorder.c (gate_duplicate_computed_gotos,
pass_duplicate_computed_gotos, gate_handle_reorder_blocks,
rest_of_handle_reorder_blocks, pass_reorder_blocks,
gate_handle_partition_blocks, rest_of_handle_partition_blocks,
pass_partition_blocks): New.
* bt-load.c (gate_handle_branch_target_load_optimize,
rest_of_handle_branch_target_load_optimize,
pass_branch_target_load_optimize): New.
* cfgcleanup.c (rest_of_handle_jump, pass_jump, rest_of_handle_jump2,
pass_jump2): New.
* cfglayout.c (pass_insn_locators_initialize): New.
* cfgrtl.c (pass_free_cfg): New.
* combine.c (gate_handle_combine, rest_of_handle_combine,
pass_combine): New.
* cse.c (gate_handle_cse, rest_of_handle_cse, pass_cse,
gate_handle_cse2, rest_of_handle_cse2, pass_cse2): New.
* emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes): New.
* except.c (pass_set_nothrow_function_flags,
pass_convert_to_eh_region_ranges, gate_handle_eh, rest_of_handle_eh,
pass_rtl_eh): New.
* final.c (pass_compute_alignments, rest_of_handle_final, pass_final,
rest_of_handle_shorten_branches, pass_shorten_branches,
rest_of_clean_state, pass_clean_state): New.
* flow.c (pass_recompute_reg_usage, gate_remove_death_notes,
rest_of_handle_remove_death_notes, pass_remove_death_notes,
rest_of_handle_life, pass_life, rest_of_handle_flow2,
pass_flow2): New.
* function.c (pass_instantiate_virtual_regs, pass_init_function,
rest_of_handle_check_leaf_regs, pass_leaf_regs): New.
* gcse.c (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
pass_jump_bypass, gate_handle_gcse, rest_of_handle_gcse,
pass_gcse): New.
* global.c (rest_of_handle_global_alloc, pass_global_alloc): New.
* ifcvt.c (gate_handle_if_conversion, rest_of_handle_if_conversion,
pass_rtl_ifcvt, gate_handle_if_after_combine,
rest_of_handle_if_after_combine, pass_if_after_combine,
gate_handle_if_after_reload, rest_of_handle_if_after_reload,
pass_if_after_reload): New.
* integrate.c (pass_initial_value_sets): New.
* jump.c (pass_cleanup_barriers, purge_line_number_notes,
pass_purge_lineno_notes): New.
* mode-switching.c (rest_of_handle_mode_switching,
pass_mode_switching): New.
* local-alloc.c (rest_of_handle_local_alloc, pass_local_alloc): New.
* loop-init.c (gate_handle_loop2, rest_of_handle_loop2,
pass_loop2): New.
* loop.c (gate_handle_loop_optimize, rest_of_handle_loop_optimize,
pass_loop_optimize): New.
* modulo-sched.c (gate_handle_sms, rest_of_handle_sms,
pass_sms): New.
* postreload-gcse.c (gate_handle_gcse2, rest_of_handle_gcse2,
pass_gcse2): New.
* postreload.c (gate_handle_postreload, rest_of_handle_postreload,
pass_postreload_cse): New.
* profile.c (gate_handle_profiling, pass_profiling,
rest_of_handle_branch_prob, pass_branch_prob): New.
* recog.c (pass pass_split_for_shorten_branches, gate_do_final_split,
pass_split_before_regstack, gate_handle_split_before_regstack,
gate_handle_peephole2, rest_of_handle_peephole2, pass_peephole2,
rest_of_handle_split_all_insns, pass_split_all_insns): New.
* reg-stack.c (gate_handle_stack_regs, rest_of_handle_stack_regs,
pass_stack_regs): New.
* regmove.c (gate_handle_regmove, rest_of_handle_regmove, pass_regmove,
gate_handle_stack_adjustments, rest_of_handle_stack_adjustments,
pass_stack_adjustments): New.
* regrename.c (gate_handle_regrename, rest_of_handle_regrename,
pass_regrename): New.
* reorg.c (gate_handle_delay_slots, rest_of_handle_delay_slots,
pass_delay_slots, gate_handle_machine_reorg,
rest_of_handle_machine_reorg, pass_machine_reorg): New.
* rtl.h (extern void purge_line_number_notes): New.
* sched-rgn.c (gate_handle_sched, rest_of_handle_sched,
gate_handle_sched2, rest_of_handle_sched2, pass_sched,
pass_sched2): New.
* tracer.c (gate_handle_tracer, rest_of_handle_tracer,
pass_tracer): New.
* value-prof.c (gate_handle_value_profile_transformations,
rest_of_handle_value_profile_transformations,
pass_value_profile_transformations): New.
* var-tracking.c (gate_handle_var_tracking,
pass_variable_tracking): New.
* web.c (gate_handle_web, rest_of_handle_web, pass_web): New.
* passes.c (open_dump_file, close_dump_file, rest_of_handle_final,
rest_of_handle_delay_slots, rest_of_handle_stack_regs,
rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
rest_of_handle_old_regalloc, rest_of_handle_regrename,
rest_of_handle_reorder_blocks, rest_of_handle_partition_blocks,
rest_of_handle_sms, rest_of_handle_sched, rest_of_handle_sched2,
rest_of_handle_gcse2, rest_of_handle_regmove,
rest_of_handle_tracer, rest_of_handle_if_conversion,
rest_of_handle_if_after_combine, rest_of_handle_if_after_reload,
rest_of_handle_web, rest_of_handle_branch_prob,
rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
rest_of_handle_jump_bypass, rest_of_handle_combine,
rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
rest_of_handle_gcse, rest_of_handle_loop_optimize,
rest_of_handle_loop2, rest_of_handle_branch_target_load_optimize,
rest_of_handle_mode_switching, rest_of_handle_jump,
rest_of_handle_eh, rest_of_handle_stack_adjustments,
rest_of_handle_flow2, rest_of_handle_jump2,
rest_of_handle_peephole2, rest_of_handle_postreload,
rest_of_handle_shorten_branches, rest_of_clean_state,
rest_of_compilation): Remove.
* cgraphunit.c (ipa_passes): Moved from tree-optimize.c.
* passes.c (dump_flags, in_gimple_form, all_passes,
all_ipa_passes, all_lowering_passes, register_one_dump_file,
register_dump_files, next_pass_1, last_verified, execute_todo,
execute_one_pass, execute_pass_list, execute_ipa_pass_list): Moved
from tree-optimize.c.
(init_optimization_passes): Moved from tree-optimize.c,
adding the RTL optimizations.
* tree-dump.h (dump_info_p, dump_flag): Moved from tree.h.
* tree-optimize.c (dump_flags, in_gimple_form, all_passes,
all_ipa_passes, all_lowering_passes, register_one_dump_file,
register_dump_files, next_pass_1, last_verified, execute_todo,
execute_one_pass, execute_pass_list, execute_ipa_pass_list,
init_tree_optimization_passes, ipa_passes): Delete.
* tree-pass.h (enum tree_dump_index): Moved from tree.h, removing
the RTL dumps.
(TDF_*, get_dump_file_name, dump_enabled_p, dump_initialized_p,
dump_begin, dump_end, dump_node, dump_switch_p, dump_flag_name): Moved
from tree.h.
(ipa_passes): Remove.
(all_passes, all_ipa_passes, all_lowering_passes): Now extern.
* tree.h (enum tree_dump_index, TDF_*, get_dump_file_name,
dump_enabled_p, dump_initialized_p, dump_begin, dump_end, dump_node,
dump_switch_p, dump_flag_name): Moved to tree-pass.h.
(dump_info_p, dump_flag): Moved to tree-dump.h.
* Makefile.in: Adjust dependencies for tree-pretty-print.c,
cgraph.c, opts.c.
* passes.c (finish_optimization_passes): Use dump_begin
and dump_end, TDI_end.
(gate_rest_of_compilation): New.
(pass_rest_of_compilation): Use it.
(gate_postreload, pass_postreload): New.
* toplev.c (general_init): Rename init_tree_optimization_passes.
* toplev.h (init_tree_optimization_passes): Rename to
init_optimizations_passes.
* tree-dump.c (dump_flag): Make static.
(dump_files): Remove RTL dumps.
* tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
pass_cleanup_cfg, pass_free_cfg_annotations,
pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
pass_init_datastructures, pass_fixup_cfg): Make non-static.
* tree-pretty-print.c: Include tree-pass.h.
* cgraph.c: Include tree-dump.h.
cp:
2005-07-05 Paolo Bonzini <bonzini@gnu.org>
* Makefile.in (class.o, decl2.o): Adjust dependencies.
* class.c: Include tree-dump.h.
* decl2.c: Include tree-dump.h.
java:
2005-07-05 Paolo Bonzini <bonzini@gnu.org>
* Makefile.in (parse.o): Adjust dependencies.
* parse.y: Include tree-dump.h.
From-SVN: r101627
2005-07-05 18:20:53 +02:00
|
|
|
2005-07-05 Paolo Bonzini <bonzini@gnu.org>
|
|
|
|
|
|
|
|
* Makefile.in (class.o, decl2.o): Adjust dependencies.
|
|
|
|
* class.c: Include tree-dump.h.
|
|
|
|
* decl2.c: Include tree-dump.h.
|
|
|
|
|
2005-07-03 08:50:51 +02:00
|
|
|
2005-07-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
|
|
|
|
|
|
|
|
* dump.c: Use dump_string_field.
|
|
|
|
|
c-common.h (GCC_DIAG_STYLE): Define.
* c-common.h (GCC_DIAG_STYLE): Define.
* c-tree.h (GCC_DIAG_STYLE): Do not define. Change minimum GCC
version for format checking to 4.1.
* c-format.c: Include toplev.h after c-common.h.
(enum format_type): Add gcc_tdiag_format_type.
(gcc_tdiag_length_specs, gcc_tdiag_flag_pairs,
gcc_tdiag_flag_specs, gcc_tdiag_char_table): New.
(format_types_orig): Add gcc_tdiag.
(init_dynamic_diag_info): Support gcc_tdiag formats.
(handle_format_attribute): Likewise.
* toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Remove.
(GCC_DIAG_STYLE): Default to __gcc_tdiag__. Change minimum GCC
version for format checking to 4.1.
(warning0, warning, error, pedwarn, sorry): Use
ATTRIBUTE_GCC_DIAG.
* config/rs6000/rs6000.c (altivec_expand_builtin), varasm.c
(finish_aliases_1): Do not use %qE.
* config/arm/arm.c, config/i386/i386.c, config/mmix/mmix.c,
config/pdp11/pdp11.c, stor-layout.c, tree-eh.c, tree-ssa.c:
Correct format bugs.
* config/v850/v850-protos.h (v850_output_aligned_bss): Change size
parameter to unsigned HOST_WIDE_INT.
* config/v850/v850.c (v850_output_aligned_bss): Likewise.
cp:
* cp-tree.h (GCC_DIAG_STYLE): #undef before defining. Change
minimum GCC version for format checking to 4.1.
testsuite:
* gcc.dg/format/gcc_diag-1.c: Update.
From-SVN: r101543
2005-07-03 02:38:49 +02:00
|
|
|
2005-07-03 Joseph S. Myers <joseph@codesourcery.com>
|
|
|
|
|
|
|
|
* cp-tree.h (GCC_DIAG_STYLE): #undef before defining. Change
|
|
|
|
minimum GCC version for format checking to 4.1.
|
|
|
|
|
2005-07-03 00:17:53 +02:00
|
|
|
2005-07-02 Kazu Hirata <kazu@codesourcery.com>
|
|
|
|
|
|
|
|
* Make-lang.in (cc1plus-checksum.c): Use
|
|
|
|
build/genchecksum$(build_exeext), not build/genchecksum$(exeext).
|
|
|
|
|
c.opt, [...]: Remove "." from end of help texts.
* c.opt, common.opt, config/bfin/bfin.opt, config/pa/pa.opt,
config/rs6000/rs6000.opt, params.def: Remove "." from end of help
texts.
* config/avr/avr.c: Do not use '`' as left quote.
* config/rs6000/rs6000.c, config/s390/s390.c, opts.c, tree.c:
Remove "." from end of diagnostics. Make diagnostics start with
lowercase letter.
cp:
* name-lookup.c, parser.c: Use %q, %< and %> to quote in
diagnostics.
fortran:
* lang.opt: Remove "." from end of help texts.
objc:
* objc-act.c: Use %q to quote in diagnostics.
From-SVN: r101533
2005-07-02 15:19:59 +02:00
|
|
|
2005-07-02 Joseph S. Myers <joseph@codesourcery.com>
|
|
|
|
|
|
|
|
* name-lookup.c, parser.c: Use %q, %< and %> to quote in
|
|
|
|
diagnostics.
|
|
|
|
|
toplev.c (default_tree_printer): Handle setting location with '+' flag.
2005-07-02 Zack Weinberg <zack@codesourcery.com>
Joseph S. Myers <joseph@codesourcery.com>
* toplev.c (default_tree_printer): Handle setting location with
'+' flag.
* c-objc.common.c (c_tree_printer): Likewise.
* c-format.c (gcc_diag_flag_specs): Add '+'.
(gcc_cdiag_char_table): Allow '+' flag for tree formats.
(format_types_orig): Allow '+' flag for gcc_diag and gcc_cdiag
formats.
* c-common.c, c-decl.c, c-objc-common.c, c-pragma.c,
config/arm/pe.c, config/i386/winnt.c, config/ia64/ia64.c,
config/mcore/mcore.c, config/sh/symbian.c, config/sol2.c,
config/v850/v850.c, function.c, stor-layout.c, toplev.c,
tree-inline.c, tree-optimize.c, tree.c, varasm.c: Use '+' flag
instead of %J or %H. Use 'q' flag for quoting. Avoid '.' at end
of diagnostics. Use %q+D not %s for a decl. Do not pass excess
format arguments where %J is used without %D.
cp:
* error.c (location_of): Add comment.
(locate_error, cp_error_at, cp_warning_at, cp_pedwarn_at): Remove.
* cp-tree.h (cp_error_at, cp_warning_at, cp_pedwarn_at): Remove.
* call.c, class.c, decl.c, decl2.c, friend.c, init.c,
name-lookup.c, parser.c, pt.c, search.c, semantics.c, typeck.c,
typeck2.c: Use '+' flag instead of %J, cp_error_at, cp_warning_at
or cp_pedwarn_at. Mark up some diagnostic strings with N_.
java:
* class.c, decl.c, expr.c: Use '+' flag instead of %J. Use 'q'
flag for quoting.
objc:
* objc-act.c: Use '+' flag instead of %J. Use 'q' flag for
quoting.
testsuite:
* gcc.dg/format/gcc_diag-1.c: Update.
From-SVN: r101532
2005-07-02 12:55:32 +02:00
|
|
|
2005-07-02 Zack Weinberg <zack@codesourcery.com>
|
|
|
|
Joseph S. Myers <joseph@codesourcery.com>
|
|
|
|
|
|
|
|
* error.c (location_of): Add comment.
|
|
|
|
(locate_error, cp_error_at, cp_warning_at, cp_pedwarn_at): Remove.
|
|
|
|
* cp-tree.h (cp_error_at, cp_warning_at, cp_pedwarn_at): Remove.
|
|
|
|
* call.c, class.c, decl.c, decl2.c, friend.c, init.c,
|
|
|
|
name-lookup.c, parser.c, pt.c, search.c, semantics.c, typeck.c,
|
|
|
|
typeck2.c: Use '+' flag instead of %J, cp_error_at, cp_warning_at
|
|
|
|
or cp_pedwarn_at. Mark up some diagnostic strings with N_.
|
|
|
|
|
2005-07-01 21:43:37 +02:00
|
|
|
2005-06-30 Daniel Berlin <dberlin@dberlin.org>
|
|
|
|
|
|
|
|
* decl.c (require_complete_types_for_parms): Call relayout_decl
|
|
|
|
instead of layout_decl.
|
|
|
|
|
pretty-print.h (PP_NL_ARGMAX): New.
gcc:
* pretty-print.h (PP_NL_ARGMAX): New.
(text_info): Add locus.
(struct chunk_info): New.
(output_buffer): Add formatted_obstack, chunk_obstack, and
cur_chunk_array. Change obstack to a pointer.
(pp_wrapping_mode_t, pp_wrapping_mode, pp_set_verbatim_wrapping): New.
(struct pretty_print_info): Replace ideal_maximum_length and
prefixing_rule with wrapping.
(pp_line_cutoff, pp_prefixing_rule): Update to match.
Update prototypes and wrapper macros throughout.
* pretty-print.c (pp_formatted_text_data, pp_append_r)
(pp_base_clear_output_area, pp_construct, pp_base_formatted_text)
(pp_base_last_position_in_text, pp_base_newline, pp_base_character):
Update for changes to pp structure.
(pp_base_prepare_to_format, pp_base_format_text): Delete.
(pp_base_format, pp_base_output_formatted_text): New functions.
(pp_base_format_verbatim): Use pp_set_verbatim_wrapping.
(pp_verbatim): Clear text.locus.
(pp_printf): Likewise. Use pp_format and pp_output_formatted_text.
* c-objc-common.c (c_tree_printer): Update function signature.
* diagnostic.c (diagnostic_initialize): Update for changes to
pp structure.
(diagnostic_report_diagnostic): Call pp_format and then
pp_output_formatted_text.
(verbatim): Clear text.locus.
* diagnostic.h (diagnostic_prefixing_rule, diagnostic_line_cutoff):
Update for changes to pp structure.
* c-lang.c: No need to include c-pretty-print.h.
* Makefile.in: Remove bogus line containing only a tab.
(c-lang.o): Update dependencies.
* toplev.c (announce_function): Don't use verbatim.
(default_tree_printer): Update signature.
* objc/objc-lang.c: No need to include c-pretty-print.h.
* objc/Make-lang.in: Update dependencies.
gcc/cp:
* cp-lang.c: No need to include cxx-pretty-print.h.
* error.c (cp_printer): Update signature. No need to process
flags.
(print_instantiation_partial_context): Output last newline
with pp_base_newline.
* Make-lang.in: Update dependencies.
gcc/objcp:
* objcp-lang.c: No need to include cxx-pretty-print.h.
* Make-lang.in: Update dependencies.
Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r101481
2005-07-01 01:09:06 +02:00
|
|
|
2005-06-30 Zack Weinberg <zack@codesourcery.com>
|
|
|
|
Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* cp-lang.c: No need to include cxx-pretty-print.h.
|
|
|
|
* error.c (cp_printer): Update signature. No need to process
|
|
|
|
flags.
|
|
|
|
(print_instantiation_partial_context): Output last newline
|
|
|
|
with pp_base_newline.
|
|
|
|
* Make-lang.in: Update dependencies.
|
|
|
|
|
2005-06-30 14:17:52 +02:00
|
|
|
2005-06-30 Steven Bosscher <stevenb@suse.de>
|
|
|
|
|
|
|
|
* decl.c (start_decl): Replace DECL_THREAD_LOCAL with
|
|
|
|
DECL_THREAD_LOCAL_P.
|
|
|
|
(cp_finish_decl): Likewise.
|
|
|
|
(grokvardecl): Set the default DECL_TLS_MODEL here.
|
|
|
|
|
target.h (invalid_conversion, [...]): New hooks.
* target.h (invalid_conversion, invalid_unary_op,
invalid_binary_op): New hooks.
* target-def.h (TARGET_INVALID_CONVERSION,
TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP,
TARGET_INITIALIZER): Likewise.
* hooks.h (hook_constcharptr_tree_tree_null,
hook_constcharptr_int_tree_null,
hook_constcharptr_int_tree_tree_null): New.
* hooks.c (hook_constcharptr_tree_tree_null,
hook_constcharptr_int_tree_null,
hook_constcharptr_int_tree_tree_null): Likewise.
* gcc/doc/tm.texi (TARGET_INVALID_CONVERSION,
TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Document.
* c-convert.c (convert): Use invalid_conversion hook.
* c-typeck.c (build_unary_op): Use invalid_unary_op hook.
(build_binary_op): Use invalid_binary_op hook.
* config/ia64/ia64-modes.def: Define RFmode.
* config/ia64/ia64-protos.h (spill_xfmode_operand): Remove.
(ia64_expand_movxf_movrf): New.
* config/ia64/ia64.md (movxf): Move code to
ia64_expand_movxf_movrf.
(movrf, movrf_internal): New.
* ia64.c (ia64_invalid_conversion, ia64_invalid_unary_op,
ia64_invalid_binary_op, TARGET_INVALID_CONVERSION,
TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): New.
(spill_xfmode_operand): Rename to spill_xfmode_rfmode_operand.
Add mode parameter. Make static.
(ia64_expand_movxf_movrf): New, moved from ia64.md. Handle RFmode
as well as XFmode.
(ia64_function_arg, ia64_function_value, ia64_register_move_cost,
ia64_scalar_mode_supported_p): Handle RFmode as well as XFmode.
(ia64_init_builtins): Set up __fpreg as RFmode.
(ia64_mangle_fundamental_type): Mangle __fpreg as u7__fpreg.
cp:
* cvt.c (ocp_convert): Use invalid_conversion hook.
* typeck.c (build_binary_op): Use invalid_binary_op hook.
(build_unary_op): Use invalid_unary_op hook.
testsuite:
* g++.dg/ext/fpreg1.C, gcc.target/ia64/fpreg-1.c,
gcc.target/ia64/fpreg-2.c: New tests.
From-SVN: r101391
2005-06-28 23:55:24 +02:00
|
|
|
2005-06-28 Joseph S. Myers <joseph@codesourcery.com>
|
|
|
|
|
|
|
|
* cvt.c (ocp_convert): Use invalid_conversion hook.
|
|
|
|
* typeck.c (build_binary_op): Use invalid_binary_op hook.
|
|
|
|
(build_unary_op): Use invalid_unary_op hook.
|
|
|
|
|
Makefile.in: Set and use UNWIND_H.
2005-06-28 Paul Brook <paul@codesourcery.com>
gcc/
* Makefile.in: Set and use UNWIND_H. Install as unwind.h.
* c-decl.c (finish_decl): Call default_init_unwind_resume_libfunc.
* except.c (add_ehspec_entry): Generate arm eabi filter lists.
(assign_filter_values): Ditto.
(output_ttype): New function.
(output_function_exception_table): Use output_ttype. Generate arm
eabi filter lists.
(default_init_unwind_resume_libfunc): New function.
* except.h (default_init_unwind_resume_libfunc): Add prototype.
* optabs.c (init_optabs): Don't set unwind_resume_libfunc.
* opts.c (decode_options): Use targetm.unwind_tables_default.
* target-def.h (TARGET_ASM_TTYPE): Provide and use definition.
(TARGET_ARM_EABI_UNWINDER, TARGET_UNWIND_TABLES_DEFAULT): Ditto.
* target.h (struct gcc_target): Add asm.ttype, unwind_tables_default
and arm_eabi_unwinder.
* unwind-c.c: Support Arm EABI unwinder.
* unwind.h: Rename ...
* unwind-generic.h: ... To this.
* doc/tm.texi (TARGET_ASM_TTYPE, TARGET_ARM_EABI_UNWINDER): Document.
(TARGET_UNWID_TABLES_DEFAULT): Document.
* config/arm/arm-protos.h (arm_output_fn_unwind): Add prototype.
* config/arm/arm.c (arm_unwind_emit, arm_output_ttype): New functions.
(TARGET_UNWIND_EMIT, TARGET_ASM_TTYPE, TARGET_ARM_EABI_UNWINDER):
Define.
(thumb_pushpop, thumb_output_function_prologue): Output unwinding
directives.
(arm_unwind_emit_stm, arm_unwind_emit_set): New functions.
* config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS): Only define when
!TARGET_UNWIND_INFO.
(ARM_OUTPUT_FN_UNWIND, ARM_EABI_UNWIND_TABLES): Define.
* config/arm/bpabi.h (TARGET_UNWIND_INFO): Define.
* config/arm/elf.h (ASM_DECLARE_FUNCTION_NAME,
ASM_DECLARE_FUNCTION_SIZE): Use ARM_OUTPUT_FN_UNWIND.
* config/arm/lib1funcs.asm: Include libunwind.S.
* config/arm/libgcc-bpabi.ver: Add unwinding routines.
* config/arm/libunwind.S: New file.
* config/arm/pr-support.c: New file.
* config/arm/t-bpabi (LIB1ASMFUNCS): Add _unwind.
(UNWIND_H, LIB2ADDEH, LIB2ADDEHDEP): Set.
* config/arm/t-symbian (UNWIND_H, LIB2ADDEH, LIB2ADDEHDEP): Set.
* config/arm/unwind-arm.c: New file.
* config/arm/unwind-arm.h: New file.
* config/i386/t-netware (USER_H): Remove unwind.h.
* config/ia64/ia64.h (TARGET_UNWIND_TABLES_DEFAULT): Define.
gcc/cp/
* Make-lang.in (cp/except.o): Depend on $(TARGET_H)
* except.c: Include target.h.
(init_exception_processing): Initialize unwind_resume_libfunc.
* doc/tm.texi: Document TARGET_ASM_TTYPE
gcc/ada/
* misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
gcc/java/
* decl.c (java_init_decl_processing): Call
default_init_unwind_resume_libfunc.
gcc/objc/
* objc-act.c (objc_init_exceptions): Call
default_init_unwind_resume_libfunc.
libstdc++/
* acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Check for
__cxa_end_cleanup.
* libsupc++/Makefile.am (sources): Add eh_call.c and eh_arm.c.
* libsupc++/eh_arm.cc: New file.
* libsupc++/eh_call.cc: New file.
* libsupc++/eh_catch.cc (__cxa_get_exception_ptr): Use
__gxx_caught_object.
(__cxa_begin_catch): Ditto. Use __is_gxx_exception_class. Call
_Unwind_Complete when using the ARM EABI.
(__cxa_end_catch): Use __is_gxx_exception_class.
* libsupc++/eh_personality.cc: Define NO_SIZE_OF_ENCODED_VALUE when
using the ARM EABI.
(save_caught_exception, restore_caught_exception): New functions.
(_throw_typet): New typedef.
(get_ttype_entry, get_adjusted_ptr, check_exception_spec): Add ARM
EABI implementations.
(PERSONALITY_FUNCTION): Use new functions. Addd support for ARM EABI
unwinding libary.
(__cxa_unexpected): Disable when using the ARM EABI.
* libsupc++/eh_throw.cc (__cxa_throw): Use __GXX_INIT_EXCEPTION_CLASS.
(__cxa_rethrow): Use __is_gxx_exception_class. Call
_Unwind_RaiseException when using the ARM EABI.
* libsupc++/unwind-cxx.h (struct __cxa_exception): Add fields for ARM
EABI semantics.
(struct __cxa_eh_globals): Ditto.
(__cxa_call_terminate): Add prototype.
(__cxa_type_match, __cxa_begin_cleanup, __cxa_end_cleanup): Add
prototypes.
(__get_exception_header_from_obj, __get_exception_header_from_ue):
Move earlier in file.
(__is_gxx_exception_class, __GXX_INIT_EXCEPTION_CLASS,
__gxx_caught_object): New functions.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* Makefile.in: Regenerate.
* include/Makefile.in: Regenerate.
* libmath/Makefile.in: Regenerate.
* libsupc++/Makefile.in: Regenerate.
* po/Makefile.in: Regenerate.
* src/Makefie.in: Regenerate.
* testsuite/makefile.in: Regenerate.
From-SVN: r101385
2005-06-28 21:52:27 +02:00
|
|
|
2005-06-28 Paul Brook <paul@codesourcery.com>
|
|
|
|
|
|
|
|
* Make-lang.in (cp/except.o): Depend on $(TARGET_H)
|
|
|
|
* except.c: Include target.h.
|
|
|
|
(init_exception_processing): Initialize unwind_resume_libfunc.
|
|
|
|
* doc/tm.texi: Document TARGET_ASM_TTYPE
|
|
|
|
|
2005-06-26 23:54:24 +02:00
|
|
|
2005-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
|
|
|
|
|
|
|
* call.c (build_over_call): Pass in named argument list to
|
|
|
|
`check_function_arguments'.
|
|
|
|
* typeck.c (build_function_call): Likewise.
|
|
|
|
|
2005-06-26 23:50:32 +02:00
|
|
|
2005-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
|
|
|
|
|
|
|
* cp-tree.h (lang_check_failed): Add noreturn attribute.
|
|
|
|
|
2005-06-25 02:59:41 +02:00
|
|
|
2005-06-25 Kelley Cook <kcook@gcc.gnu.org>
|
|
|
|
|
|
|
|
* all files: Update FSF address in copyright headers.
|
|
|
|
|
2005-06-23 16:44:21 +02:00
|
|
|
2005-06-23 Jason Merrill <jason@redhat.com>
|
|
|
|
|
|
|
|
PR c++/19317
|
|
|
|
* semantics.c (simplify_aggr_init_expr): Use
|
|
|
|
CALL_EXPR_RETURN_SLOT_OPT, not CALL_EXPR_HAS_RETURN_SLOT_ADDR.
|
|
|
|
|
2005-06-23 00:47:26 +02:00
|
|
|
2005-06-23 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
|
|
|
|
|
|
|
|
* pt.c (register_specialization): Remove superfluous assertion.
|
|
|
|
|
2005-06-18 17:07:28 +02:00
|
|
|
2005-06-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
|
|
|
|
|
|
|
* call.c (convert_like_real): Add format attribute.
|
|
|
|
* typeck.c (check_for_casting_away_constness,
|
|
|
|
build_static_cast_1): Likewise.
|
|
|
|
* typeck2.c (readonly_error, cxx_incomplete_type_diagnostic):
|
|
|
|
Likewise.
|
|
|
|
|
2005-06-18 00:13:33 +02:00
|
|
|
2005-06-17 Geoffrey Keating <geoffk@apple.com>
|
|
|
|
|
|
|
|
PR c++/17413
|
|
|
|
* pt.c (type_unification_real): Apply template type deduction even
|
|
|
|
to procedure parameters that are not dependent on a template
|
|
|
|
parameter.
|
|
|
|
|
2005-06-16 10:21:00 +02:00
|
|
|
2005-06-16 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
* rtti.c (get_tinfo_decl): Avoid caching tinfo_descs when it might
|
|
|
|
change.
|
|
|
|
(create_pseudo_type_info): First parameter is an int.
|
|
|
|
|
Make-lang.in: Reformat some long lines.
* Make-lang.in: Reformat some long lines.
(gt-cp-rtti.h): New target.
(cp/rtti.o): Add dependency.
* config-lang.in (gtfiles): Add cp/rtti.c.
* cp-tree.h (CPTI_TI_DESC_TYPE, CPTI_BLTN_DESC_TYPE,
CPTI_PTR_DESC_TYPE, CPTI_ARY_DESC_TYPE, CPTI_FUNC_DESC_TYPE,
CPTI_ENUM_DESC_TYPE, CPTI_CLASS_DESC_TYPE,
CPTI_SI_CLASS_DESC_TYPE, CPTI_VMI_CLASS_DESC_TYPE,
CPTI_PTM_DESC_TYPE, CPTI_BASE_DESC_TYPE): Remove.
(ti_desc_type_node, bltn_desc_type_node, ptr_desc_type_node,
ary_desc_type_node, func_desc_type_node, enum_desc_type_node,
class_desc_type_node, si_class_desc_type_node,
vmi_class_desc_type_node, ptm_desc_type_node,
base_desc_type_node): Remove.
* decl.c: Adjust documentation of global trees.
* rtti.c (TINFO_PSEUDO_TYPE, TINFO_VTABLE_DECL,
TINFO_REAL_NAME): Remove.
(struct tinfo_s): New.
(enum tinfo_kind): New.
(tinfo_descs): New.
(get_tinfo_decl): Adjust use of tinfo descriptor.
(tinfo_base_init, generic_initializer, ptr_initializer,
ptm_initializer, class_initializer): Likewise.
(get_pseudo_ti_init): Take descriptor index. Adjust.
(create_pseudo_type_info): Likewise.
(get_pseudo_ti_desc): Return descriptor index. Adjust.
(create_tinfo_types): Adjust use of create_pseudo_type_info.
(emit_tinfo_decl): Adjust use of tinfo descriptor.
From-SVN: r100971
2005-06-15 10:18:01 +02:00
|
|
|
2005-06-15 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
2005-06-15 10:23:01 +02:00
|
|
|
PR c++/20678
|
|
|
|
* error.c (dump_expr) <COMPONENT_REF case>: Check DECL_NAME is not
|
|
|
|
null.
|
|
|
|
|
Make-lang.in: Reformat some long lines.
* Make-lang.in: Reformat some long lines.
(gt-cp-rtti.h): New target.
(cp/rtti.o): Add dependency.
* config-lang.in (gtfiles): Add cp/rtti.c.
* cp-tree.h (CPTI_TI_DESC_TYPE, CPTI_BLTN_DESC_TYPE,
CPTI_PTR_DESC_TYPE, CPTI_ARY_DESC_TYPE, CPTI_FUNC_DESC_TYPE,
CPTI_ENUM_DESC_TYPE, CPTI_CLASS_DESC_TYPE,
CPTI_SI_CLASS_DESC_TYPE, CPTI_VMI_CLASS_DESC_TYPE,
CPTI_PTM_DESC_TYPE, CPTI_BASE_DESC_TYPE): Remove.
(ti_desc_type_node, bltn_desc_type_node, ptr_desc_type_node,
ary_desc_type_node, func_desc_type_node, enum_desc_type_node,
class_desc_type_node, si_class_desc_type_node,
vmi_class_desc_type_node, ptm_desc_type_node,
base_desc_type_node): Remove.
* decl.c: Adjust documentation of global trees.
* rtti.c (TINFO_PSEUDO_TYPE, TINFO_VTABLE_DECL,
TINFO_REAL_NAME): Remove.
(struct tinfo_s): New.
(enum tinfo_kind): New.
(tinfo_descs): New.
(get_tinfo_decl): Adjust use of tinfo descriptor.
(tinfo_base_init, generic_initializer, ptr_initializer,
ptm_initializer, class_initializer): Likewise.
(get_pseudo_ti_init): Take descriptor index. Adjust.
(create_pseudo_type_info): Likewise.
(get_pseudo_ti_desc): Return descriptor index. Adjust.
(create_tinfo_types): Adjust use of create_pseudo_type_info.
(emit_tinfo_decl): Adjust use of tinfo descriptor.
From-SVN: r100971
2005-06-15 10:18:01 +02:00
|
|
|
* Make-lang.in: Reformat some long lines.
|
|
|
|
(gt-cp-rtti.h): New target.
|
|
|
|
(cp/rtti.o): Add dependency.
|
|
|
|
* config-lang.in (gtfiles): Add cp/rtti.c.
|
|
|
|
* cp-tree.h (CPTI_TI_DESC_TYPE, CPTI_BLTN_DESC_TYPE,
|
|
|
|
CPTI_PTR_DESC_TYPE, CPTI_ARY_DESC_TYPE, CPTI_FUNC_DESC_TYPE,
|
|
|
|
CPTI_ENUM_DESC_TYPE, CPTI_CLASS_DESC_TYPE,
|
|
|
|
CPTI_SI_CLASS_DESC_TYPE, CPTI_VMI_CLASS_DESC_TYPE,
|
|
|
|
CPTI_PTM_DESC_TYPE, CPTI_BASE_DESC_TYPE): Remove.
|
|
|
|
(ti_desc_type_node, bltn_desc_type_node, ptr_desc_type_node,
|
|
|
|
ary_desc_type_node, func_desc_type_node, enum_desc_type_node,
|
|
|
|
class_desc_type_node, si_class_desc_type_node,
|
|
|
|
vmi_class_desc_type_node, ptm_desc_type_node,
|
|
|
|
base_desc_type_node): Remove.
|
|
|
|
* decl.c: Adjust documentation of global trees.
|
|
|
|
* rtti.c (TINFO_PSEUDO_TYPE, TINFO_VTABLE_DECL,
|
|
|
|
TINFO_REAL_NAME): Remove.
|
|
|
|
(struct tinfo_s): New.
|
|
|
|
(enum tinfo_kind): New.
|
|
|
|
(tinfo_descs): New.
|
|
|
|
(get_tinfo_decl): Adjust use of tinfo descriptor.
|
|
|
|
(tinfo_base_init, generic_initializer, ptr_initializer,
|
|
|
|
ptm_initializer, class_initializer): Likewise.
|
|
|
|
(get_pseudo_ti_init): Take descriptor index. Adjust.
|
|
|
|
(create_pseudo_type_info): Likewise.
|
|
|
|
(get_pseudo_ti_desc): Return descriptor index. Adjust.
|
|
|
|
(create_tinfo_types): Adjust use of create_pseudo_type_info.
|
|
|
|
(emit_tinfo_decl): Adjust use of tinfo descriptor.
|
|
|
|
|
2005-06-14 15:31:26 +02:00
|
|
|
2005-06-14 Roger Sayle <roger@eyesopen.com>
|
|
|
|
|
|
|
|
* decl.c (grokdeclarator): Only check TREE_OVERFLOW on INTEGER_CST.
|
|
|
|
|
2005-06-14 11:03:46 +02:00
|
|
|
2005-06-13 Geoffrey Keating <geoffk@apple.com>
|
|
|
|
|
|
|
|
* Make-lang.in (c++.install-man): Doesn't really depend on installdirs.
|
|
|
|
(rule for installing g++.1 manpage): Does depend on installdirs.
|
|
|
|
|
2005-06-13 17:58:10 +02:00
|
|
|
2005-06-13 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/20789
|
|
|
|
* decl.c (cp_finish_decl): Clear runtime runtime initialization if
|
|
|
|
in-class decl's initializer is bad.
|
|
|
|
|
|
|
|
PR c++/21929
|
|
|
|
* parser.c (struct cp_parser): Document that scope could be
|
|
|
|
error_mark.
|
|
|
|
(cp_parser_diagnose_invalid_type_name): Cope with error_mark for
|
|
|
|
scope.
|
|
|
|
(cp_parser_nested_name_specifier): Return NULL_TREE on error.
|
|
|
|
(cp_parser_postfix_expression): Deal with null or error_mark
|
|
|
|
scope.
|
|
|
|
(cp_parser_elaborated_type_specifier): Adjust
|
|
|
|
cp_parser_nested_name_specifier call.
|
|
|
|
|
|
|
|
* parser (cp_parser_skip_to_end_of_block_or_statement): Cleanup.
|
|
|
|
|
2005-06-13 01:46:46 +02:00
|
|
|
2005-06-12 Roger Sayle <roger@eyesopen.com>
|
|
|
|
|
|
|
|
PR c++/21930
|
|
|
|
* error.c (dump_expr): UNARY_PLUS_EXPR need not handle void types.
|
|
|
|
Treat CONVERT_EXPR identically to NOP_EXPR.
|
|
|
|
|
2005-06-10 19:35:37 +02:00
|
|
|
2005-06-10 Aldy Hernandez <aldyh@redhat.com>
|
|
|
|
|
|
|
|
PR c++/10611
|
|
|
|
* cvt.c (build_expr_type_conversion): Same.
|
|
|
|
* typeck.c (build_binary_op): Handle vectors.
|
|
|
|
(common_type): Same.
|
|
|
|
(type_after_usual_arithmetic_conversions): Same.
|
|
|
|
* testsuite/g++.dg/conversion/simd2.C: New.
|
|
|
|
|
2005-06-08 13:49:23 +02:00
|
|
|
2005-06-08 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/19497
|
|
|
|
* cp-tree.def (USING_DECL): Update documentation.
|
|
|
|
* cp-tree.h (DECL_DEPENDENT_P): New.
|
|
|
|
(USING_DECL_DECLS, USING_DECL_SCOPE): New.
|
|
|
|
* class.c (handle_using_decl): Move most of the processing to ...
|
|
|
|
* name-lookup.c (do_class_using_decl): ... here. Make stricter.
|
|
|
|
(push_using_decl): Use USING_DECL_SCOPE.
|
|
|
|
(cp_emit_debug_info_for_using): Make extern.
|
|
|
|
* cxx-pretty-print.c (pp_cxx_statement) <USING_DECL case>: Adjust.
|
|
|
|
* name-lookup.h (cp_emit_debug_info_for_using): Declare.
|
|
|
|
* pt.c (tsubst_decl) <USING_DECL case>: Use do_class_using_decl
|
|
|
|
when tsubsting.
|
|
|
|
(tsubst_expr): Use USING_DECL_SCOPE.
|
|
|
|
* search.c (lookup_field_1): Use DECL_DEPENDENT_P.
|
|
|
|
* semantics.c (finish_member_declaration): Likewise.
|
|
|
|
|
2005-06-08 13:09:13 +02:00
|
|
|
2005-06-08 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
|
|
|
|
|
|
|
|
PR c++/19894
|
|
|
|
* pt.c (tsubst): Reject pointer-to-member of type void.
|
|
|
|
|
|
|
|
PR c++/20563
|
|
|
|
* parser.c (cp_parser_label_declaration): Deal with invalid/missing
|
|
|
|
identifiers.
|
|
|
|
|
2005-06-07 10:45:32 +02:00
|
|
|
2005-06-07 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
2005-06-07 19:46:02 +02:00
|
|
|
* cp-tree.def (DEFAULT_ARG): Adjust documentation.
|
|
|
|
* cp-tree.h (DEFARG_INSTANTIATIONS): New.
|
|
|
|
(struct tree_default_arg): Add instantiations member.
|
|
|
|
* parser.c (cp_parser_late_parsing_default_args): Adjust to use a
|
|
|
|
VEC.
|
|
|
|
* pt.c (tsubst_arg_types): Likewise.
|
|
|
|
|
2005-06-07 10:45:32 +02:00
|
|
|
* parser.c (cp_parser_late_parsing_default_args): Fix overeager
|
|
|
|
assert in previous patch.
|
|
|
|
|
exgettext: Handle gmsgid and cmsgid arguments specially, as gcc-internal-format and c-format.
gcc/po/
* exgettext: Handle gmsgid and cmsgid arguments specially,
as gcc-internal-format and c-format. Because of xgettext
bug, invoke xgettext once with --language=c, once with
--language=GCC-source and then merge together. Fail if
xgettext is not 0.14.5 or later.
gcc/
* intl.h (G_): New macro.
* rtl-error.c (error_for_asm, warning_for_asm): Use gmsgid
instead of msgid for argument name.
* tree-ssa.c (warn_uninit): Likewise.
* c-parser.c (c_parser_error): Likewise.
* config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
* config/darwin-c.c (BAD): Likewise.
* config/c4x/c4x-c.c (BAD): Likewise.
* c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
* c-errors.c (pedwarn_c99, pedwarn_c90): Likewise.
* c-common.c (c_parse_error): Likewise.
* diagnostic.c (diagnostic_set_info, verbatim, inform, warning,
warning0, pedwarn, error, sorry, fatal_error, internal_error):
Likewise.
(fnotice): Use cmsgid instead of msgid for argument name.
* gcov.c (fnotice): Likewise.
* protoize.c (notice): Likewise.
* final.c (output_operand_lossage): Likewise.
* gcc.c (fatal, notice): Likewise.
(error): Use gmsgid instead of msgid for argument name.
* collect2.c (notice, fatal_perror, fatal): Use cmsgid instead
of msgid for argument name.
(error): Use gmsgid instead of msgid for argument name.
* c-decl.c (locate_old_decl, implicit_decl_warning): Use G_()
instead of N_().
* c-typeck.c (readonly_error, convert_for_assignment): Likewise.
* tree-inline.c (inline_forbidden_p_1): Likewise.
* ABOUT-GCC-NLS: Require gettext 0.14.5 or later. Mention the new
conventions for marking translations.
* doc/install.texi: Mention gettext 0.14.5 or later requirement.
gcc/cp/
* error.c (locate_error): Use gmsgid instead of msgid for argument
name.
(cp_error_at, cp_warning_at, cp_pedwarn_at): Likewise.
gcc/java/
* jv-scan.c (fatal_error, warning, warning0): Use gmsgid instead of
msgid for argument name.
* gjavah.c (error): Likewise.
* java-tree.h (parse_error_context): Likewise.
* parse.y (parse_error_context, parse_warning_context,
issue_warning_error_from_context): Likewise.
From-SVN: r100676
2005-06-06 21:31:40 +02:00
|
|
|
2005-06-06 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* error.c (locate_error): Use gmsgid instead of msgid for argument
|
|
|
|
name.
|
|
|
|
(cp_error_at, cp_warning_at, cp_pedwarn_at): Likewise.
|
|
|
|
|
2005-06-06 16:18:22 +02:00
|
|
|
2005-06-06 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
2005-06-06 19:29:41 +02:00
|
|
|
PR 21903
|
|
|
|
* cp-tree.def (DEFAULT_ARG): Document TREE_CHAIN use.
|
|
|
|
* parser.c (cp_parser_late_parsing_default_args): Propagate parsed
|
|
|
|
argument to any early instantiations.
|
|
|
|
* pt.c (tsubst_arg_types): Chain early instantiation of default arg.
|
|
|
|
|
2005-06-06 16:18:22 +02:00
|
|
|
PR c++/20637
|
|
|
|
* cp-tree.h (add_method): Add using_decl parameter.
|
|
|
|
* class.c (add_method): Add using_decl parameter. Adjust error
|
|
|
|
messages.
|
|
|
|
(handle_using_decl): Pass the using decl to add_method.
|
|
|
|
(clone_function_decl): Adjust add_member calls.
|
|
|
|
* decl2.c (check_classfn): Likewise.
|
|
|
|
* method.c (lazily_declare_fn): Likewise.
|
|
|
|
* semantics.c (finish_member_declaration): Likewise.
|
|
|
|
|
|
|
|
* method.c (synthesize_method): Use inform, not warning.
|
|
|
|
|
2005-06-06 13:25:40 +02:00
|
|
|
2005-06-06 Hans-Peter Nilsson <hp@axis.se>
|
|
|
|
|
|
|
|
* config-lang.in (target_libs): Remove target-gperf.
|
|
|
|
|
2005-06-05 18:33:43 +02:00
|
|
|
2005-06-05 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/21619
|
|
|
|
* cp-tree.h (DECL_IS_BUILTIN_CONSTANT_P): New macro.
|
|
|
|
* parser.c (cp_parser_postfix_expression): Allow non-constant
|
|
|
|
expressions as arguments to __builtin_constant_p.
|
|
|
|
* tree.c (builtin_valid_in_constant_expr_p): Use
|
2005-06-14 22:01:59 +02:00
|
|
|
DECL_IS_BUILTIN_CONSTANT_P.
|
2005-06-05 18:33:43 +02:00
|
|
|
|
2005-06-03 18:16:46 +02:00
|
|
|
2005-06-03 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
2005-06-04 01:22:11 +02:00
|
|
|
PR c++/21853
|
|
|
|
* typeck.c (casts_away_constness_r): Do not drop cv-qualifiers on
|
|
|
|
the pointed-to type for a pointer-to-member.
|
|
|
|
|
2005-06-03 18:16:46 +02:00
|
|
|
PR c++/21336
|
|
|
|
* cp-tree.h (grok_op_properties): Remove friendp parameter.
|
|
|
|
* decl.c (grokfndecl): Adjust call.
|
|
|
|
(grok_op_properties): Determine the class of which the function is
|
|
|
|
a member by looking at its DECL_CONTEXT, not current_class_type.
|
|
|
|
* pt.c (tsubst_decl): Adjust call to grok_op_properties.
|
|
|
|
|
2005-06-02 10:53:48 +02:00
|
|
|
2005-06-02 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
2005-06-02 22:02:26 +02:00
|
|
|
* method.c (synthesize_method): Add addtional arg to warning call.
|
|
|
|
|
2005-06-02 19:52:28 +02:00
|
|
|
PR c++/21280
|
|
|
|
* Make-lang.in (method.o): Add diagnostic.h
|
|
|
|
* decl.c (start_preparsed_function): Use decl's location for file
|
|
|
|
info.
|
|
|
|
* decl2.c (cp_finish_file): Set input_location before synthesizing
|
|
|
|
a function.
|
|
|
|
(mark_used): When deferring a synthesized function, save current
|
|
|
|
location. Do not set function's location when actually
|
|
|
|
synthesizing it.
|
|
|
|
* method.c: #include diagnostic.h.
|
|
|
|
(synthesize_method): Set the functions source location. Show
|
|
|
|
needed location if errors are emitted.
|
|
|
|
|
2005-06-02 11:34:38 +02:00
|
|
|
* decl.c (start_decl): Simplify specialization handling. Remove
|
|
|
|
unneeded CLASSTYPE_TEMPLATE_INSTANTIATION check.
|
|
|
|
* mangle.c (discriminator_for_local_entity): Use VEC_index.
|
|
|
|
|
2005-06-02 11:09:48 +02:00
|
|
|
PR c++/20350
|
|
|
|
* decl.c (duplicate_decls): Copy all of DECL_USE_TEMPLATE.
|
|
|
|
|
2005-06-02 10:53:48 +02:00
|
|
|
PR c++/21151
|
|
|
|
* name-lookup.c (pushtag): Push local class even in a template.
|
|
|
|
|
2005-05-31 19:43:26 +02:00
|
|
|
2005-05-31 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/21165
|
|
|
|
* init.c (integral_constant_value): Check the type of the
|
|
|
|
initializer, not the decl.
|
|
|
|
|
2005-05-30 18:20:29 +02:00
|
|
|
2005-05-30 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/21784
|
|
|
|
* name-lookup.c (do_nonmember_using_decl): Ignore builtin
|
|
|
|
functions, even when the used name is not a function.
|
|
|
|
|
2005-05-30 17:44:28 +02:00
|
|
|
2005-05-30 Kazu Hirata <kazu@cs.umass.edu>
|
|
|
|
|
|
|
|
* operators.def, optimize.c: Update copyright.
|
|
|
|
|
2005-05-29 02:16:05 +02:00
|
|
|
2005-05-28 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
2005-05-30 18:20:29 +02:00
|
|
|
PR c++/21210
|
|
|
|
* call.c (standard_conversion): Permit conversions to complex
|
|
|
|
types if conversion to the corresponding scalar type would be
|
|
|
|
permitted.
|
|
|
|
|
2005-05-29 02:16:05 +02:00
|
|
|
PR c++/21340
|
|
|
|
* method.c (implicitly_declare_fn): Clear processing_template_decl
|
|
|
|
when generating implicit declaration.
|
|
|
|
|
2005-05-28 04:21:30 +02:00
|
|
|
2005-05-27 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/21614
|
|
|
|
* typeck.c (get_member_function_from_ptrfunc): Do not attempt
|
|
|
|
conversions to base classes of incomplete types.
|
|
|
|
|
2005-05-28 03:38:11 +02:00
|
|
|
2005-05-27 Ian Lance Taylor <ian@airs.com>
|
|
|
|
|
|
|
|
* semantics.c (add_stmt): Add C++ frontend specific version.
|
|
|
|
* cp-tree.h (STMT_IS_FULL_EXPR_P): Define.
|
|
|
|
(stmts_are_full_exprs_p): Declare.
|
|
|
|
|
2005-05-28 01:17:21 +02:00
|
|
|
2005-05-27 Roger Sayle <roger@eyesopen.com>
|
|
|
|
Giovanni Bajo <giovannibajo@gcc.gnu.org>
|
|
|
|
|
|
|
|
* cp-tree.def (UNARY_PLUS_EXPR): New C++ unary tree code.
|
|
|
|
* parser.c (cp_parser_unary_expression): Use UNARY_PLUS_EXPR instead
|
|
|
|
of CONVERT_EXPR.
|
|
|
|
(cp_parser_unary_expression): Likewise.
|
|
|
|
* typeck.c (build_unary_op): Likewise.
|
|
|
|
* call.c (add_builtin_candidate, build_new_op): Likewise.
|
|
|
|
* error.c (dump_expr): Likewise.
|
|
|
|
* pt.c (tsubst_copy, tsubst_copy_and_build): Likewise.
|
|
|
|
* decl.c (ambi_op_p, grok_op_properties): Likewise.
|
|
|
|
* dump.c (dump_op): Likewise.
|
|
|
|
* lex.c (init_operators): Likewise.
|
|
|
|
* operators.def ("+"): Likewise.
|
|
|
|
* cp-gimplify.c (cp_gimplify_expr): Handle UNARY_PLUS_EXPR like a
|
|
|
|
conversion, if the result and argument types differ.
|
|
|
|
* tree.c (fold_if_not_in_template): Fold UNARY_PLUS_EXPR much
|
|
|
|
like a NOP_EXPR when !processing_template_decl.
|
|
|
|
|
|
|
|
* cxx-pretty-print.c (pp_cxx_cast_expression): Prototype.
|
|
|
|
(pp_cxx_unary_expression): Handle new UNARY_PLUS_EXPR tree code.
|
|
|
|
|
2005-05-27 16:23:47 +02:00
|
|
|
2005-05-27 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
2005-05-27 17:50:26 +02:00
|
|
|
PR c++/21455
|
|
|
|
* typeck.c (get_delta_difference): Cope with incomplete but equal
|
|
|
|
classes. Reorder if.
|
|
|
|
|
2005-05-27 16:23:47 +02:00
|
|
|
PR c++/21681
|
|
|
|
* parser.c (cp_parser_late_parsing_for_member): Disable access
|
|
|
|
checking for template functions.
|
|
|
|
|
2005-05-26 18:04:37 +02:00
|
|
|
2005-05-26 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
|
|
|
|
|
|
|
|
PR c++/21768
|
|
|
|
* pt.c (redeclare_class_template): Change error message according
|
|
|
|
to coding conventions.
|
|
|
|
|
2005-05-26 15:33:02 +02:00
|
|
|
2005-05-26 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
|
|
|
|
|
|
|
|
* call.c (build_op_delete_call): Fix quoting in error message.
|
|
|
|
|
2005-05-26 00:08:31 +02:00
|
|
|
2005-05-25 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
PR libgcj/21692
|
|
|
|
* cp-tree.h (make_alias_for): Declare.
|
|
|
|
* decl2.c (build_java_method_aliases): New.
|
|
|
|
(cp_finish_file): Call it.
|
|
|
|
* method.c (make_alias_for): Split out from ...
|
|
|
|
(make_alias_for_thunk): ... here.
|
|
|
|
|
2005-05-25 11:47:18 +02:00
|
|
|
2005-05-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
|
|
|
|
|
|
|
|
PR c++/21686
|
|
|
|
* semantics.c (finish_id_expression): Fix quoting in error message.
|
|
|
|
|
2005-05-25 06:18:19 +02:00
|
|
|
2005-05-25 DJ Delorie <dj@redhat.com>
|
|
|
|
|
|
|
|
* decl.c (duplicate_decls): Move warning control from if() to
|
|
|
|
warning(OPT_*).
|
|
|
|
* name-lookup.c (parse_using_directive): Likewise.
|
|
|
|
* parser.c (cp_parser_elaborated_type_specifier): Likewise.
|
|
|
|
(cp_parser_init_declarator): Likewise.
|
|
|
|
* tree.c (handle_com_interface_attribute): Likewise.
|
|
|
|
|
2005-05-25 00:22:33 +02:00
|
|
|
2005-05-24 Ziemowit Laski <zlaski@apple.com>
|
|
|
|
|
|
|
|
* class.c (layout_class_type): Do not issue C++ ABI warnings
|
|
|
|
for ObjC structs.
|
|
|
|
* decl.c (objc_mark_locals_volatile): Streamline by calling
|
|
|
|
objc_volatilize_decl().
|
|
|
|
* parser.c (cp_parser_objc_message_expression): Allow simple
|
|
|
|
type specifiers (instead of merely type names) as message
|
|
|
|
receivers.
|
|
|
|
* pt.c (template_args_equal): Do not call objc_comptypes().
|
|
|
|
* typeck.c (composite_pointer_type): If both pointers are
|
|
|
|
ObjC-esque, arbitrarily choose the first; do not call
|
|
|
|
objc_comptypes().
|
|
|
|
(comptypes): Do not call objc_comptypes().
|
|
|
|
(convert_for_assignment): Call objc_compare_types().
|
|
|
|
(comp_ptr_ttypes_real): Call objc_type_quals_match() before
|
|
|
|
concluding that types do not match.
|
|
|
|
|
2005-05-24 21:06:20 +02:00
|
|
|
2005-05-24 Andrew Pinski <pinskia@physics.uc.edu>
|
|
|
|
|
|
|
|
PR C++/21645
|
|
|
|
* optimize.c (update_cloned_parm): Copy the TYPE also from the
|
|
|
|
original one.
|
|
|
|
|
2005-05-19 09:37:45 +02:00
|
|
|
2005-05-19 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR c++/21495
|
|
|
|
* decl.c (grokdeclarator): Fix "storage class specified for"
|
|
|
|
error reporting.
|
|
|
|
|
2005-05-19 05:05:49 +02:00
|
|
|
2005-05-19 Kazu Hirata <kazu@cs.umass.edu>
|
|
|
|
|
|
|
|
* parser.c: Fix comment typos.
|
|
|
|
|
2005-05-18 22:45:26 +02:00
|
|
|
2005-05-18 Geoffrey Keating <geoffk@apple.com>
|
|
|
|
|
|
|
|
* Make-lang.in (cc1plus-dummy): New.
|
|
|
|
(cc1plus-checksum.c): New.
|
|
|
|
(cc1plus-checksum.o): New.
|
|
|
|
(cc1plus): Add cc1plus-checksum.o.
|
|
|
|
|
2005-05-17 23:47:13 +02:00
|
|
|
2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
PR C++/19664
|
|
|
|
* decl2.c (determine_visibility): Don't set visibility to
|
|
|
|
hidden if it has been set explicitly by user.
|
|
|
|
|
2005-05-21 01:42:07 +02:00
|
|
|
2005-05-17 Ziemowit Laski <zlaski@apple.com>
|
|
|
|
Mike Stump <mrs@apple.com>
|
2005-05-17 22:05:24 +02:00
|
|
|
|
|
|
|
Yet more Objective-C++...
|
2005-06-14 22:01:59 +02:00
|
|
|
|
2005-05-17 22:05:24 +02:00
|
|
|
* cp-objcp-common.h (cxx_get_alias_set): Move from
|
|
|
|
here...
|
|
|
|
(cxx_warn_unused_global_decl): Likewise.
|
|
|
|
(cp_expr_size): Likewise.
|
|
|
|
(cp_tree_size): Likewise.
|
|
|
|
(cp_var_mod_type_p): Likewise.
|
|
|
|
(cxx_initialize_diagnostics): Likewise.
|
|
|
|
(cxx_types_compatible_p): Likewise.
|
|
|
|
* cp-tree.h: to here.
|
|
|
|
(do_poplevel): Add.
|
|
|
|
* lex.c (D_OBJC): Add.
|
|
|
|
(init_reswords): Add.
|
|
|
|
* Make-lang.in (cp/pt.o): Add cp/cp-objcp-common.h.
|
|
|
|
* parser.c: Add c-common.h include.
|
|
|
|
* pt.c: Add c-common.h and cp-objcp-common.h includes.
|
|
|
|
(template_args_equal): Use objc_comptypes as well.
|
|
|
|
(tsubst_copy_and_build): Use objcp_tsubst_copy_and_build as well.
|
|
|
|
* semantics.c (do_poplevel): Remove static.
|
|
|
|
|
|
|
|
* decl.c (objc_mark_locals_volatile): Don't change decls that are
|
|
|
|
already ok.
|
|
|
|
* decl2.c (generate_ctor_or_dtor_function): Add code to initialize
|
|
|
|
Objective C++ early enough.
|
|
|
|
* lex.c (struct resword reswords): Add Objective-C++ support.
|
|
|
|
* parser.c (cp_lexer_get_preprocessor_token): Add Objective-C++.
|
|
|
|
(cp_parser_objc_message_receiver): Add.
|
|
|
|
(cp_parser_objc_message_args): Likewise.
|
|
|
|
(cp_parser_objc_message_expression): Likewise.
|
|
|
|
(cp_parser_objc_encode_expression): Likewise.
|
|
|
|
(cp_parser_objc_defs_expression): Likewise.
|
|
|
|
(cp_parser_objc_protocol_expression): Likewise.
|
|
|
|
(cp_parser_objc_selector_expression): Likewise.
|
|
|
|
(cp_parser_objc_expression): Likewise.
|
|
|
|
(cp_parser_objc_visibility_spec): Likewise.
|
|
|
|
(cp_parser_objc_method_type): Likewise.
|
|
|
|
(cp_parser_objc_protocol_qualifiers): Likewise.
|
|
|
|
(cp_parser_objc_typename): Likewise.
|
|
|
|
(cp_parser_objc_selector_p): Likewise.
|
|
|
|
(cp_parser_objc_selector): Likewise.
|
|
|
|
(cp_parser_objc_method_keyword_params): Likewise.
|
|
|
|
(cp_parser_objc_method_tail_params_opt): Likewise.
|
|
|
|
(cp_parser_objc_interstitial_code): Likewise.
|
|
|
|
(cp_parser_objc_method_signature): Likewise.
|
|
|
|
(cp_parser_objc_method_prototype_list): Likewise.
|
|
|
|
(cp_parser_objc_method_definition_list): Likewise.
|
|
|
|
(cp_parser_objc_class_ivars): Likewise.
|
|
|
|
(cp_parser_objc_identifier_list): Likewise.
|
|
|
|
(cp_parser_objc_alias_declaration): Likewise.
|
|
|
|
(cp_parser_objc_class_declaration): Likewise.
|
|
|
|
(cp_parser_objc_protocol_declaration): Likewise.
|
|
|
|
(cp_parser_objc_protocol_refs_opt): Likewise.
|
|
|
|
(cp_parser_objc_superclass_or_category): Likewise.
|
|
|
|
(cp_parser_objc_class_interface): Likewise.
|
|
|
|
(cp_parser_objc_class_implementation): Likewise.
|
|
|
|
(cp_parser_objc_end_implementation): Likewise.
|
|
|
|
(cp_parser_objc_declaration): Likewise.
|
|
|
|
(cp_parser_objc_try_catch_finally_statement): Likewise.
|
|
|
|
(cp_parser_objc_synchronized_statement): Likewise.
|
|
|
|
(cp_parser_objc_throw_statement): Likewise.
|
|
|
|
(cp_parser_objc_statement): Likewise.
|
|
|
|
(cp_parser_primary_expression): Add Objective-C++.
|
|
|
|
(cp_parser_statement): Likewise.
|
|
|
|
(cp_parser_declaration): Likewise.
|
|
|
|
(cp_parser_simple_type_specifier): Likewise.
|
|
|
|
(cp_parser_type_name): Likewise.
|
|
|
|
(cp_parser_parameter_declaration_list): Likewise.
|
|
|
|
(cp_parser_member_declaration) Likewise.
|
|
|
|
* tree.c: Include debug.h.
|
|
|
|
* typeck.c (composite_pointer_type): Add Objective-C++ support.
|
|
|
|
(finish_class_member_access_expr): Likewise.
|
|
|
|
(build_function_call): Allow objc to rewrite FUNCTION_DECLs.
|
|
|
|
(build_modify_expr): Allow objc to generate write barriers.
|
|
|
|
|
|
|
|
* Make-lang.in (cp/tree.o): Add debug.h.
|
|
|
|
* tree.c (lvalue_p_1, case CONST_DECL): Add.
|
|
|
|
|
2005-05-18 23:04:17 +02:00
|
|
|
2005-05-18 Jan Hubicka <jh@suse.cz>
|
|
|
|
|
|
|
|
* method.c: Include tree-pass.h
|
|
|
|
(use_thunk): Lower body before expanding.
|
|
|
|
|
2005-05-17 08:51:48 +02:00
|
|
|
2005-05-17 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR c++/21454
|
|
|
|
* decl.c (maybe_deduce_size_from_array_init): Call
|
|
|
|
cp_apply_type_quals_to_decl after completing array type.
|
|
|
|
|
2005-05-17 01:05:45 +02:00
|
|
|
2005-05-16 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
* decl.c (build_library_fn_1): Move setting TREE_NOTHROW ...
|
|
|
|
(build_library_fn): ... here.
|
|
|
|
|
2005-05-12 15:06:15 +02:00
|
|
|
2005-05-12 Ian Lance Taylor <ian@airs.com>
|
|
|
|
|
|
|
|
* cp-tree.h (cp_stmt_codes): Don't define.
|
|
|
|
(statement_code_p): Declare.
|
|
|
|
(STATEMENT_CODE_P): Define.
|
|
|
|
* lex.c (statement_code_p): Define.
|
|
|
|
(cxx_init): Use actual codes in stmt_codes initializer, not
|
|
|
|
cp_stmt_codes macro. Initialize statement_code_p directly, rather
|
|
|
|
than using INIT_STATEMENT_CODES.
|
|
|
|
|
2005-05-10 07:31:15 +02:00
|
|
|
2005-05-09 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
* typeck.c (build_unary_op): Do not resort to address arithmetic
|
|
|
|
when taking the address of a COMPONENT_REF.
|
2005-06-14 22:01:59 +02:00
|
|
|
|
2005-05-08 04:17:54 +02:00
|
|
|
2005-05-08 Kazu Hirata <kazu@cs.umass.edu>
|
|
|
|
|
|
|
|
* class.c (vtbl_init_data_s): Change the type of fns to
|
|
|
|
VEC(tree,gc)*.
|
|
|
|
(build_vtbl_initializer, add_vcall_offset, add_vcall_offset):
|
|
|
|
Use VEC instead of VARRAY.
|
|
|
|
|
2005-05-07 11:48:29 +02:00
|
|
|
2005-05-07 Richard Sandiford <rsandifo@redhat.com>
|
|
|
|
|
|
|
|
* mangle.c: Remove a reference to the MIPS -mint64 option.
|
|
|
|
|
2005-05-07 04:29:34 +02:00
|
|
|
2005-05-07 Kazu Hirata <kazu@cs.umass.edu>
|
|
|
|
|
|
|
|
* decl.c (wrapup_globals_for_namespace): Use VEC instead of
|
|
|
|
VARRAY.
|
|
|
|
* name-lookup.c (add_decl_to_level, begin_scope): Likewise.
|
|
|
|
* name-lookup.h (cp_binding_level): Change the type of
|
|
|
|
static_decls to VEC(tree,gc)*.
|
|
|
|
|
2005-05-07 06:12:06 +02:00
|
|
|
* mangle.c (globals): Change the type of substitutions to
|
|
|
|
VEC(tree,gc)*.
|
|
|
|
(dump_substitution_candidates, add_substitution,
|
|
|
|
find_substitution, finish_mangling, init_mangle): Use VEC
|
|
|
|
instead of VARRAY.
|
|
|
|
|
2005-05-06 16:10:35 +02:00
|
|
|
2005-05-06 Kazu Hirata <kazu@cs.umass.edu>
|
|
|
|
|
|
|
|
* decl2.c (spew_debug): Remove.
|
|
|
|
|
2005-05-06 16:24:20 +02:00
|
|
|
* decl2.c (ssdf_decls, start_static_storage_duration_function,
|
|
|
|
generate_ctor_or_dtor_function): Use VEC instead of VARRAY.
|
|
|
|
|
2005-05-06 21:03:35 +02:00
|
|
|
* decl2.c (pending_statics, note_vague_linkage_var,
|
|
|
|
cp_finish_file): Use VEC instead of VARRAY.
|
|
|
|
(pending_statics_used): Remove.
|
|
|
|
|
2005-05-05 23:57:46 +02:00
|
|
|
2005-05-05 Kazu Hirata <kazu@cs.umass.edu>
|
|
|
|
|
|
|
|
* decl2.c (deferred_fns, note_vague_linkage_fn,
|
|
|
|
cp_finish_file): Use VEC instead of VARRAY.
|
|
|
|
|
2005-05-05 21:08:12 +02:00
|
|
|
2005-05-05 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/21352
|
|
|
|
* pt.c (build_non_dependent_expr): Use is_overloaded_fn.
|
|
|
|
|
2005-05-05 18:24:10 +02:00
|
|
|
2005-05-05 Kazu Hirata <kazu@cs.umass.edu>
|
|
|
|
|
|
|
|
* pt.c: Fix a comment typo.
|
|
|
|
|
2005-05-04 08:00:13 +02:00
|
|
|
2005-05-04 Kazu Hirata <kazu@cs.umass.edu>
|
|
|
|
|
|
|
|
* cp-tree.h (language_function): Change the type of
|
|
|
|
x_local_names to VEC.
|
|
|
|
* decl.c (push_local_name): Adjust uses of local_names.
|
|
|
|
|
2005-05-03 20:34:03 +02:00
|
|
|
2005-05-03 Kazu Hirata <kazu@cs.umass.edu>
|
|
|
|
|
|
|
|
* friend.c, lex.c, mangle.c, repo.c: Update copyright.
|
|
|
|
|
2005-05-02 20:36:24 +02:00
|
|
|
2005-05-02 Kazu Hirata <kazu@cs.umass.edu>
|
|
|
|
|
|
|
|
* class.c (local_classes, init_class_processing): Use VEC
|
|
|
|
instead of VARRAY.
|
|
|
|
* cp-tree.h (local_classes): Likewise.
|
|
|
|
* mangle.c (discriminator_for_local_entity): Likewise.
|
|
|
|
* name-lookup.c (pushtag): Likewise.
|
|
|
|
|
2005-05-02 22:49:16 +02:00
|
|
|
* class.c (current_lang_depth, push_lang_context,
|
|
|
|
pop_lang_context): Use VEC instead of VARRAY.
|
|
|
|
* cp-tree.h (saved_scope): Use VEC for lang_base instead of
|
|
|
|
VARRAY.
|
|
|
|
* name-lookup.c (push_to_top_level): Use VEC instead of
|
|
|
|
VARRAY.
|
|
|
|
|
c-common.c (resolve_overloaded_builtin): Forward to target hook for BUILT_IN_MD built-ins.
2005-05-02 Paolo Bonzini <bonzini@gnu.org>
* c-common.c (resolve_overloaded_builtin): Forward to target
hook for BUILT_IN_MD built-ins.
* c-typeck.c (finish_call_expr): Call resolve_overloaded_builtin
for all types of built-in.
* target-def.h (TARGET_RESOLVE_OVERLOADED_BUILTIN): New. Use it
in the definition of the target hooks struct.
* target.h (struct gcc_target): Add resolve_overloaded_builtin.
* config/rs6000/altivec.h: Rewritten.
* config/rs6000/rs6000-c.c (struct altivec_builtin_types,
altivec_resolve_overloaded_builtin, altivec_build_resolved_builtin,
rs6000_builtin_type, rs6000_builtin_type_compatible,
altivec_overloaded_builtins, rs6000_builtin_type,
rs6000_builtin_type_compatible): New.
* config/rs6000/rs6000.c (rs6000_builtin_types, rs6000_builtin_decls):
New.
(def_builtin): Turn into a function. Check for duplicates and store
the builtin into rs6000_builtin_decls.
(bdesc_3arg, bdesc_dst, bdesc_altivec_preds, bdesc_2arg,
bdesc_1arg): Add overloaded builtins.
(altivec_expand_builtin): Check for unresolved overloaded builtins,
do not support ALTIVEC_COMPILETIME_ERROR.
(rs6000_init_builtins): Add opaque 128-bit vector, and internal
nodes to represent front-end types.
(altivec_init_builtins, rs6000_common_init_builtins): Create builtins
with opaque arguments and/or return values.
* config/rs6000/rs6000.h (enum rs6000_builtins): Remove
ALTIVEC_COMPILETIME_ERROR and add Altivec overloaded builtins.
(rs6000_builtin_type_index): New.
(is_ev64_opaque_type): Rename to...
(rs6000_is_opaque_type): ... this.
(rs6000_cpu_cpp_builtins): Install the resolve_overloaded_builtin
target hook.
cp:
2005-05-02 Paolo Bonzini <bonzini@gnu.org>
* semantics.c (finish_call_expr): Call resolve_overloaded_builtin
for BUILT_IN_MD built-ins.
testsuite:
2005-05-02 Paolo Bonzini <bonzini@gnu.org>
* gcc.dg/altivec-3.c (vec_store): Do not use the old
__builtin_altivec_st_internal_4si built-in.
From-SVN: r99103
2005-05-02 18:02:52 +02:00
|
|
|
2005-05-02 Paolo Bonzini <bonzini@gnu.org>
|
|
|
|
|
2005-05-26 00:08:31 +02:00
|
|
|
* semantics.c (finish_call_expr): Call resolve_overloaded_builtin
|
|
|
|
for BUILT_IN_MD built-ins.
|
c-common.c (resolve_overloaded_builtin): Forward to target hook for BUILT_IN_MD built-ins.
2005-05-02 Paolo Bonzini <bonzini@gnu.org>
* c-common.c (resolve_overloaded_builtin): Forward to target
hook for BUILT_IN_MD built-ins.
* c-typeck.c (finish_call_expr): Call resolve_overloaded_builtin
for all types of built-in.
* target-def.h (TARGET_RESOLVE_OVERLOADED_BUILTIN): New. Use it
in the definition of the target hooks struct.
* target.h (struct gcc_target): Add resolve_overloaded_builtin.
* config/rs6000/altivec.h: Rewritten.
* config/rs6000/rs6000-c.c (struct altivec_builtin_types,
altivec_resolve_overloaded_builtin, altivec_build_resolved_builtin,
rs6000_builtin_type, rs6000_builtin_type_compatible,
altivec_overloaded_builtins, rs6000_builtin_type,
rs6000_builtin_type_compatible): New.
* config/rs6000/rs6000.c (rs6000_builtin_types, rs6000_builtin_decls):
New.
(def_builtin): Turn into a function. Check for duplicates and store
the builtin into rs6000_builtin_decls.
(bdesc_3arg, bdesc_dst, bdesc_altivec_preds, bdesc_2arg,
bdesc_1arg): Add overloaded builtins.
(altivec_expand_builtin): Check for unresolved overloaded builtins,
do not support ALTIVEC_COMPILETIME_ERROR.
(rs6000_init_builtins): Add opaque 128-bit vector, and internal
nodes to represent front-end types.
(altivec_init_builtins, rs6000_common_init_builtins): Create builtins
with opaque arguments and/or return values.
* config/rs6000/rs6000.h (enum rs6000_builtins): Remove
ALTIVEC_COMPILETIME_ERROR and add Altivec overloaded builtins.
(rs6000_builtin_type_index): New.
(is_ev64_opaque_type): Rename to...
(rs6000_is_opaque_type): ... this.
(rs6000_cpu_cpp_builtins): Install the resolve_overloaded_builtin
target hook.
cp:
2005-05-02 Paolo Bonzini <bonzini@gnu.org>
* semantics.c (finish_call_expr): Call resolve_overloaded_builtin
for BUILT_IN_MD built-ins.
testsuite:
2005-05-02 Paolo Bonzini <bonzini@gnu.org>
* gcc.dg/altivec-3.c (vec_store): Do not use the old
__builtin_altivec_st_internal_4si built-in.
From-SVN: r99103
2005-05-02 18:02:52 +02:00
|
|
|
|
2005-05-02 06:22:45 +02:00
|
|
|
2005-05-02 Michael Matz <matz@suse.de>
|
|
|
|
|
|
|
|
PR c++/19542
|
|
|
|
* cp-tree.h (cp_tree_index): Remove CPTI_NULL, to be defined in C
|
|
|
|
common frontend.
|
|
|
|
(null_node): Remove.
|
|
|
|
* lex.c (cxx_init): Move null_node initialisation to C common frontend.
|
|
|
|
|
2005-04-25 21:03:41 +02:00
|
|
|
2005-04-25 Ian Lance Taylor <ian@airs.com>
|
|
|
|
|
|
|
|
* cp-tree.def: Add EXPR_STMT.
|
|
|
|
* cp-tree.h (cp_stmt_codes): Add EXPR_STMT.
|
|
|
|
(EXPR_STMT_EXPR): Define.
|
|
|
|
* cp-gimplify.c: Include "flags.h".
|
|
|
|
(gimplify_expr_stmt): New static function.
|
|
|
|
(cp_gimplify_expr): Handle EXPR_STMT.
|
|
|
|
* cxx-pretty-print.c (pp_cxx_statement): Use pp_cxx_expression
|
|
|
|
rather than pp_expression.
|
|
|
|
(pp_cxx_statement): Handle EXPR_STMT.
|
|
|
|
* dump.c (cp_dump_tree): Handle EXPR_STMT.
|
|
|
|
* lex.c (cxx_init): Don't use c_common_stmt_codes in stmt_codes
|
|
|
|
initializer.
|
|
|
|
|
2005-04-25 20:08:35 +02:00
|
|
|
2005-04-25 Andrew Pinski <pinskia@physics.uc.edu>
|
|
|
|
|
|
|
|
PR C++/21188
|
|
|
|
* rtti.c (ifnonnull): Cast the zero comparison operand
|
|
|
|
to the correct type.
|
|
|
|
|
2005-04-25 00:06:37 +02:00
|
|
|
2005-04-24 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR middle-end/20991
|
|
|
|
* class.c: Include cgraph.h.
|
|
|
|
(cp_fold_obj_type_ref): Set node->local.vtable_method.
|
|
|
|
* Make-lang.in (cgraph.o): Depend on $(CGRAPH_H).
|
|
|
|
|
2005-04-24 19:35:34 +02:00
|
|
|
2005-04-12 Markus F.X.J. Oberhumer <markus@oberhumer.com>
|
|
|
|
|
|
|
|
* mangle.c (write_builtin_type): Handle integer types which are
|
|
|
|
not one of the shared integer type nodes and emit a "vendor
|
|
|
|
extended builtin type" with an encoding in the form of "u5int96".
|
|
|
|
|
2005-04-24 15:38:19 +02:00
|
|
|
2005-04-24 Ian Lance Taylor <ian@airs.com>
|
|
|
|
|
|
|
|
* cp-tree.def (USING_STMT): Change class to tcc_statement.
|
|
|
|
(TRY_BLOCK, EH_SPEC_BLOCK, HANDLER, CLEANUP_STMT): Likewise.
|
|
|
|
(IF_STMT, FOR_STMT, WHILE_STMT, DO_STMT): Likewise.
|
|
|
|
(BREAK_STMT, CONTINUE_STMT, SWITCH_STMT): Likewise.
|
|
|
|
|
diagnostic.c (warning): Accept parameter to classify warning option.
* diagnostic.c (warning): Accept parameter to classify warning option.
(warning0): New, for when a pointer to an error() like function is needed.
* errors.c (warning): Likewise.
* errors.h (warning, warning0): Adjust prototypes.
* toplev.h (warning, warning0): Likewise.
* attribs.c, builtins.c, c-common.c, c-decl.c, c-format.c,
c-gimplify.c, c-lex.c, c-objc-common.c, c-opts.c, c-parser.c,
c-pragma.c, c-typeck.c, calls.c, cgraph.c, coverage.c, emit-rtl.c,
fold-const.c, fortran/trans-decl.c, function.c, gcse.c,
genautomata.c, haifa-sched.c, opts.c, passes.c, regclass.c,
reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
tree-dump.c, tree-inline.c, tree-mudflap.c, tree-optimize.c,
tree-ssa.c, tree.c, varasm.c: Adjust warning() callers.
* config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
config/avr/avr.c, config/bfin/bfin.c, config/c4x/c4x-c.c,
config/c4x/c4x.c, config/cris/cris.c, config/darwin-c.c,
config/darwin.c, config/darwin.h, config/h8300/h8300.c,
config/i386/cygming.h, config/i386/djgpp.h, config/i386/i386.c,
config/i386/winnt.c, config/ia64/ia64-c.c, config/ia64/ia64.c,
config/ip2k/ip2k.c, config/m32r/m32r.c, config/m68hc11/m68hc11.c,
config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.c,
config/mmix/mmix.c, config/ns32k/ns32k.c, config/pa/pa-hpux11.h,
config/pa/pa.c, config/rs6000/aix43.h, config/rs6000/aix51.h,
config/rs6000/aix52.h, config/rs6000/darwin.h,
config/rs6000/rs6000-c.c, config/rs6000/rs6000.c,
config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
config/sh/symbian.c, config/sol2-c.c, config/sol2.c,
config/stormy16/stormy16.c, config/v850/v850-c.c,
config/v850/v850.c, config/xtensa/xtensa.c: Adjust warning()
callers.
* ada/misc.c: Adjust warning() callers.
* cp/call.c, cp/class.c, cp/cvt.c, cp/decl.c, cp/decl2.c,
cp/except.c, cp/friend.c, cp/init.c, cp/lex.c, cp/mangle.c,
cp/method.c, cp/name-lookup.c, cp/parser.c, cp/repo.c, cp/rtti.c,
cp/tree.c, cp/typeck.c, cp/typeck2.c: Adjust warning() callers.
* fortran/trans-decl.c: Adjust warning() callers.
* java/class.c, java/decl.c, java/expr.c, java/jcf-io.c,
java/jcf-parse.c, java/jv-scan.c, java/parse.y: Adjust warning()
callers.
* objc/objc-act.c: Adjust warning() callers.
* treelang/parse.y: Adjust warning() callers.
From-SVN: r98633
2005-04-23 23:29:07 +02:00
|
|
|
2005-04-23 DJ Delorie <dj@redhat.com>
|
|
|
|
|
|
|
|
* call.c, class.c, cvt.c, decl.c, decl2.c, except.c, friend.c,
|
|
|
|
init.c, lex.c, mangle.c, method.c, name-lookup.c, parser.c,
|
|
|
|
repo.c, rtti.c, tree.c, typeck.c, typeck2.c: Adjust warning()
|
|
|
|
callers.
|
|
|
|
|
2005-04-22 21:01:29 +02:00
|
|
|
2005-04-22 Per Bothner <per@bothner.com>
|
|
|
|
|
|
|
|
* decl.c (make_rtl_for_nonlocal_decl): Don't try get_fileinfo if
|
2005-05-26 00:08:31 +02:00
|
|
|
input_filename is NULL, as it is for (say) __PRETTY_FUNCTION__.
|
2005-04-22 21:01:29 +02:00
|
|
|
|
2005-04-22 18:57:23 +02:00
|
|
|
2005-04-22 Alexandre Oliva <aoliva@redhat.com>
|
|
|
|
|
|
|
|
PR c++/21087
|
|
|
|
* name-lookup.c (push_overloaded_decl): Do not overload with
|
|
|
|
non-duplicate anticipated built-in.
|
|
|
|
|
2005-04-21 16:01:56 +02:00
|
|
|
2005-04-21 Kazu Hirata <kazu@cs.umass.edu>
|
|
|
|
|
|
|
|
* cp-tree.h (THROW_NAME, AUTO_VTABLE_NAME, AUTO_TEMP_FORMAT,
|
|
|
|
VTABLE_BASE, VTABLE_NAME_PREFIX, STATIC_NAME_FORMAT): Remove.
|
|
|
|
|
vec.h: Update API to separate allocation mechanism from type.
* vec.h: Update API to separate allocation mechanism from type.
(VEC_safe_grow): New.
* vec.c (calculate_allocation): New.
(vec_gc_o_reserve, vec_heap_o_reserve): Adjust.
(vec_gc_free, vec_heap_free): Remove.
* gengtype-lex.l (DEF_VEC_): Process mult-argument macros. Adjust.
(VEC): Likewise.
(mangle_macro_name): New.
(struct macro_def): New.
(struct macro): Add multiple argument values.
(macro_expans_end): New.
(push_macro_expansion): Chain on new macro. Process multiple
args, create follow on expansion. Return follow on argument.
(macro_input): Deal with multiple arguments.
* tree.h: Define VEC(tree,heap) and VEC(tree,gc).
(struct tree_binfo): Adjust.
* basic-block.h: Define VEC(edge,gc).
(struct edge_def): Adjust.
(struct basic_block_def, struct edge_iterator): Likewise.
(ei_container, ei_start_1, ei_last_1): Likewise.
* cfg.c (connect_src, connect_dest): Likewise.
* cfgrtl.c (force_nonfallthru_and_redirect)
* dbxout.c (dbxout_type)
* dwarf2out.c (gen_member_die)
* lambda-code.c: Define VEC(int,gc), VEC(lambda_loop,gc).
(gcc_tree_to_linear_expression): Adjust.
(gcc_loop_to_lambda_loop, gcc_loopnest_to_lambda_loopnest,
lbv_to_gcc_expression, lle_to_gcc_expression,
lambda_loopnest_to_gcc_loopnest, can_convert_to_perfect_nest,
perfect_nestify): Likewise.
* lambda.h (gcc_loopnest_to_lambda_loopnest,
lambda_loopnest_to_gcc_loopnest): Adjust prototypes.
* profile.c (instrument_values): Adjust.
* tree-cfg.c (modified_noreturn_calls): Adjust.
(remove_fallthru_edge): Likewise.
* tree-dump.c (dequeue_and_dump): Adjust.
* tree-flow-inline.h (mark_stmt_modified): Adjust.
* tree-flow.h (modified_noreturn_calls): Adjust.
(tree_on_heap): Remove. (yay!)
(register_new_def): Adjust.
* tree-into-ssa.c: Define VEC(int,heap).
(block_defs_stack): Adjust.
(find_idf, insert_phi_nodes, register_new_def,
rewrite_initialize_block, rewrite_finalize_block,
register_new_update_single, rewrite_update_init_block,
rewrite_update_fini_block, rewrite_blocks,
ssa_rewrite_finalize_block, ssa_register_new_def,
ssa_rewrite_initialize_block, rewrite_ssa_into_ssa): Likewise.
* tree-loop-linear.c (linear_transform_loops): Adjust.
* tree-ssa-alias.c: Define VEC(fieldoff_t,heap).
(push_fields_onto_fieldstack, create_overlap_variables_for): Adjust.
* tree-ssa-dom.c (avail_exprs_stack, block_defs_stack,
stmts_to_rescan, const_and_copies_stack, nonzero_vars_stack,
vrp_variables_stack): Adjust declarations.
(tree_ssa_dominator_optimize): Adjust.
(dom_opt_initialize_block, remove_local_expressions_from_table,
restore_nonzero_vars_to_original_value,
restore_vars_to_original_value,
restore_currdefs_to_original_value, dom_opt_finalize_block,
record_var_is_nonzero, record_cond, record_const_or_copy_1,
optimize_stmt, update_rhs_and_lookup_avail_expr,
lookup_avail_expr, record_range): Likewise.
* tree-ssa-pre.c: Define VEC(basic_block,heap).
(compute_antic_aux): Adjust.
(inserted_exprs, create_expression_by_pieces,
insert_into_preds_of_block, eliminate, mark_operand_necessary,
remove_dead_inserted_code, fini_pre): Likewise.
* tree-ssa-propagate.c (interesting_ssa_edges): Adjust.
(varying_ssa_edges, add_ssa_edge, process_ssa_edge_worklist.
ssa_prop_init): Likewise.
* tree-ssa.c: Define VEC(bitmap,heap).
(verify_name_tags): Adjust.
* value-prof.c (rtl_divmod_values_to_profile): Adjust.
(insn_prefetch_values_to_profile, rtl_find_values_to_profile,
tree_divmod_values_to_profile, tree_find_values_to_profile,
value_profile_transformations): Likewise.
* value-prof.h: Define VEC(histogram_value,heap).
* varasm.c: Remove alias_pair pointer typedef, define
VEC(alias_pair,gc).
(finish_aliases_1, finish_aliases_2, assemble_alias): Adjust.
* config/pa/pa.c (typedef extern_symbol): Typedef the structure,
not a pointer to it. Create an object vector.
(extern_symbols): Turn into an object vector.
(pa_hpux_asm_output_external, pa_hpux_file_end): Adjust.
* cp/cp-tree.h: Adjust for new VEC API.
Define VEC(tree_pair_s,gc).
(struct save_scope): Adjust.
(struct lang_type_class): Adjust.
(unemitted_tinfo_decls): Adjust.
* cp/class.c (add_method, resort_type_method_vec,
finish_struct_methods, struct find_final_overrider_data,
dfs_find_final_overrider_pre, find_final_overrider,
get_vcall_index, warn_hidden, walk_subobject_offsets,
check_methods, fixup_inline_methods, end_of_class,
warn_about_ambiguous_bases, finish_struct, build_vtbl_initializer,
add_vcall_offset): Adjust.
* cp/decl.c (xref_basetypes, finish_method): Adjust.
* cp/decl2.c (check_classfn): Adjust.
* cp/init.c (sort_mem_initializers, push_base_cleanups): Adjust.
* cp/method.c (do_build_copy_constructor): Adjust.
* cp/name-lookup.c (new_class_binding, store_binding,
store_bindings, store_class_bindings): Adjust.
* cp/name-lookup.h: Define VEC(cxx_saved_binding,gc),
VEC(cp_class_binding,gc).
(struct cp_binding_level): Adjust.
* cp/parser.c: Define VEC(cp_token_position,heap).
(struct cp_lexer): Adjust.
(cp_lexer_new_main, cp_lexer_new_from_tokens, cp_lexer_destroy,
cp_lexer_save_tokens): Adjust.
* cp/pt.c (retrieve_specialization,
check_explicit_specialization): Adjust.
* cp/rtti.c (unemitted_tinfo_decls): Adjust.
(init_rtti_processing, get_tinfo_decl, get_pseudo_ti_init,
get_pseudo_ti_desc): Adjust.
* cp/search.c (dfs_access_in_type, lookup_conversion_operator,
lookup_fnfields_1, dfs_walk_once, dfs_walk_once_accessible,
dfs_get_pure_virtuals, lookup_conversions_r, binfo_for_vbase): Adjust.
* cp/semantics.c: Define VEC(deferred_access,gc).
(push_deferring_access_checks): Adjust.
* cp/typeck2.c (abstract_virtuals_error): Adjust.
From-SVN: r98498
2005-04-21 11:18:28 +02:00
|
|
|
2005-04-21 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
* cp-tree.h: Adjust for new VEC API.
|
|
|
|
Define VEC(tree_pair_s,gc).
|
|
|
|
(struct save_scope): Adjust.
|
|
|
|
(struct lang_type_class): Adjust.
|
|
|
|
(unemitted_tinfo_decls): Adjust.
|
|
|
|
* class.c (add_method, resort_type_method_vec,
|
|
|
|
finish_struct_methods, struct find_final_overrider_data,
|
|
|
|
dfs_find_final_overrider_pre, find_final_overrider,
|
|
|
|
get_vcall_index, warn_hidden, walk_subobject_offsets,
|
|
|
|
check_methods, fixup_inline_methods, end_of_class,
|
|
|
|
warn_about_ambiguous_bases, finish_struct, build_vtbl_initializer,
|
|
|
|
add_vcall_offset): Adjust.
|
|
|
|
* decl.c (xref_basetypes, finish_method): Adjust.
|
|
|
|
* decl2.c (check_classfn): Adjust.
|
|
|
|
* init.c (sort_mem_initializers, push_base_cleanups): Adjust.
|
|
|
|
* method.c (do_build_copy_constructor): Adjust.
|
2005-06-14 22:01:59 +02:00
|
|
|
* name-lookup.c (new_class_binding, store_binding,
|
vec.h: Update API to separate allocation mechanism from type.
* vec.h: Update API to separate allocation mechanism from type.
(VEC_safe_grow): New.
* vec.c (calculate_allocation): New.
(vec_gc_o_reserve, vec_heap_o_reserve): Adjust.
(vec_gc_free, vec_heap_free): Remove.
* gengtype-lex.l (DEF_VEC_): Process mult-argument macros. Adjust.
(VEC): Likewise.
(mangle_macro_name): New.
(struct macro_def): New.
(struct macro): Add multiple argument values.
(macro_expans_end): New.
(push_macro_expansion): Chain on new macro. Process multiple
args, create follow on expansion. Return follow on argument.
(macro_input): Deal with multiple arguments.
* tree.h: Define VEC(tree,heap) and VEC(tree,gc).
(struct tree_binfo): Adjust.
* basic-block.h: Define VEC(edge,gc).
(struct edge_def): Adjust.
(struct basic_block_def, struct edge_iterator): Likewise.
(ei_container, ei_start_1, ei_last_1): Likewise.
* cfg.c (connect_src, connect_dest): Likewise.
* cfgrtl.c (force_nonfallthru_and_redirect)
* dbxout.c (dbxout_type)
* dwarf2out.c (gen_member_die)
* lambda-code.c: Define VEC(int,gc), VEC(lambda_loop,gc).
(gcc_tree_to_linear_expression): Adjust.
(gcc_loop_to_lambda_loop, gcc_loopnest_to_lambda_loopnest,
lbv_to_gcc_expression, lle_to_gcc_expression,
lambda_loopnest_to_gcc_loopnest, can_convert_to_perfect_nest,
perfect_nestify): Likewise.
* lambda.h (gcc_loopnest_to_lambda_loopnest,
lambda_loopnest_to_gcc_loopnest): Adjust prototypes.
* profile.c (instrument_values): Adjust.
* tree-cfg.c (modified_noreturn_calls): Adjust.
(remove_fallthru_edge): Likewise.
* tree-dump.c (dequeue_and_dump): Adjust.
* tree-flow-inline.h (mark_stmt_modified): Adjust.
* tree-flow.h (modified_noreturn_calls): Adjust.
(tree_on_heap): Remove. (yay!)
(register_new_def): Adjust.
* tree-into-ssa.c: Define VEC(int,heap).
(block_defs_stack): Adjust.
(find_idf, insert_phi_nodes, register_new_def,
rewrite_initialize_block, rewrite_finalize_block,
register_new_update_single, rewrite_update_init_block,
rewrite_update_fini_block, rewrite_blocks,
ssa_rewrite_finalize_block, ssa_register_new_def,
ssa_rewrite_initialize_block, rewrite_ssa_into_ssa): Likewise.
* tree-loop-linear.c (linear_transform_loops): Adjust.
* tree-ssa-alias.c: Define VEC(fieldoff_t,heap).
(push_fields_onto_fieldstack, create_overlap_variables_for): Adjust.
* tree-ssa-dom.c (avail_exprs_stack, block_defs_stack,
stmts_to_rescan, const_and_copies_stack, nonzero_vars_stack,
vrp_variables_stack): Adjust declarations.
(tree_ssa_dominator_optimize): Adjust.
(dom_opt_initialize_block, remove_local_expressions_from_table,
restore_nonzero_vars_to_original_value,
restore_vars_to_original_value,
restore_currdefs_to_original_value, dom_opt_finalize_block,
record_var_is_nonzero, record_cond, record_const_or_copy_1,
optimize_stmt, update_rhs_and_lookup_avail_expr,
lookup_avail_expr, record_range): Likewise.
* tree-ssa-pre.c: Define VEC(basic_block,heap).
(compute_antic_aux): Adjust.
(inserted_exprs, create_expression_by_pieces,
insert_into_preds_of_block, eliminate, mark_operand_necessary,
remove_dead_inserted_code, fini_pre): Likewise.
* tree-ssa-propagate.c (interesting_ssa_edges): Adjust.
(varying_ssa_edges, add_ssa_edge, process_ssa_edge_worklist.
ssa_prop_init): Likewise.
* tree-ssa.c: Define VEC(bitmap,heap).
(verify_name_tags): Adjust.
* value-prof.c (rtl_divmod_values_to_profile): Adjust.
(insn_prefetch_values_to_profile, rtl_find_values_to_profile,
tree_divmod_values_to_profile, tree_find_values_to_profile,
value_profile_transformations): Likewise.
* value-prof.h: Define VEC(histogram_value,heap).
* varasm.c: Remove alias_pair pointer typedef, define
VEC(alias_pair,gc).
(finish_aliases_1, finish_aliases_2, assemble_alias): Adjust.
* config/pa/pa.c (typedef extern_symbol): Typedef the structure,
not a pointer to it. Create an object vector.
(extern_symbols): Turn into an object vector.
(pa_hpux_asm_output_external, pa_hpux_file_end): Adjust.
* cp/cp-tree.h: Adjust for new VEC API.
Define VEC(tree_pair_s,gc).
(struct save_scope): Adjust.
(struct lang_type_class): Adjust.
(unemitted_tinfo_decls): Adjust.
* cp/class.c (add_method, resort_type_method_vec,
finish_struct_methods, struct find_final_overrider_data,
dfs_find_final_overrider_pre, find_final_overrider,
get_vcall_index, warn_hidden, walk_subobject_offsets,
check_methods, fixup_inline_methods, end_of_class,
warn_about_ambiguous_bases, finish_struct, build_vtbl_initializer,
add_vcall_offset): Adjust.
* cp/decl.c (xref_basetypes, finish_method): Adjust.
* cp/decl2.c (check_classfn): Adjust.
* cp/init.c (sort_mem_initializers, push_base_cleanups): Adjust.
* cp/method.c (do_build_copy_constructor): Adjust.
* cp/name-lookup.c (new_class_binding, store_binding,
store_bindings, store_class_bindings): Adjust.
* cp/name-lookup.h: Define VEC(cxx_saved_binding,gc),
VEC(cp_class_binding,gc).
(struct cp_binding_level): Adjust.
* cp/parser.c: Define VEC(cp_token_position,heap).
(struct cp_lexer): Adjust.
(cp_lexer_new_main, cp_lexer_new_from_tokens, cp_lexer_destroy,
cp_lexer_save_tokens): Adjust.
* cp/pt.c (retrieve_specialization,
check_explicit_specialization): Adjust.
* cp/rtti.c (unemitted_tinfo_decls): Adjust.
(init_rtti_processing, get_tinfo_decl, get_pseudo_ti_init,
get_pseudo_ti_desc): Adjust.
* cp/search.c (dfs_access_in_type, lookup_conversion_operator,
lookup_fnfields_1, dfs_walk_once, dfs_walk_once_accessible,
dfs_get_pure_virtuals, lookup_conversions_r, binfo_for_vbase): Adjust.
* cp/semantics.c: Define VEC(deferred_access,gc).
(push_deferring_access_checks): Adjust.
* cp/typeck2.c (abstract_virtuals_error): Adjust.
From-SVN: r98498
2005-04-21 11:18:28 +02:00
|
|
|
store_bindings, store_class_bindings): Adjust.
|
|
|
|
* name-lookup.h: Define VEC(cxx_saved_binding,gc),
|
|
|
|
VEC(cp_class_binding,gc).
|
|
|
|
(struct cp_binding_level): Adjust.
|
|
|
|
* parser.c: Define VEC(cp_token_position,heap).
|
|
|
|
(struct cp_lexer): Adjust.
|
|
|
|
(cp_lexer_new_main, cp_lexer_new_from_tokens, cp_lexer_destroy,
|
|
|
|
cp_lexer_save_tokens): Adjust.
|
|
|
|
* pt.c (retrieve_specialization,
|
|
|
|
check_explicit_specialization): Adjust.
|
|
|
|
* rtti.c (unemitted_tinfo_decls): Adjust.
|
|
|
|
(init_rtti_processing, get_tinfo_decl, get_pseudo_ti_init,
|
|
|
|
get_pseudo_ti_desc): Adjust.
|
|
|
|
* search.c (dfs_access_in_type, lookup_conversion_operator,
|
|
|
|
lookup_fnfields_1, dfs_walk_once, dfs_walk_once_accessible,
|
|
|
|
dfs_get_pure_virtuals, lookup_conversions_r, binfo_for_vbase): Adjust.
|
|
|
|
* semantics.c: Define VEC(deferred_access,gc).
|
|
|
|
(push_deferring_access_checks): Adjust.
|
|
|
|
* typeck2.c (abstract_virtuals_error): Adjust.
|
|
|
|
|
2005-04-20 21:59:16 +02:00
|
|
|
2005-04-20 Ian Lance Taylor <ian@airs.com>
|
|
|
|
|
|
|
|
* cp-tree.def: Add STMT_EXPR.
|
|
|
|
* cp-tree.h (STMT_EXPR_NO_SCOPE): Define.
|
|
|
|
(STMT_EXPR_STMT): Define.
|
|
|
|
* cxx-pretty-print.c (pp_cxx_primary_expression): Handle
|
|
|
|
STMT_EXPR.
|
|
|
|
(pp_cxx_expression): Likewise.
|
|
|
|
(pp_cxx_statement): Call pp_cxx_statement, not pp_statement.
|
|
|
|
* dump.c (cp_dump_tree): Handle STMT_EXPR.
|
|
|
|
|
2005-04-18 15:39:38 +02:00
|
|
|
2005-04-18 Kazu Hirata <kazu@cs.umass.edu>
|
|
|
|
|
|
|
|
* decl.c (expand_static_init): Call build2 and build3 instead
|
|
|
|
of build.
|
|
|
|
|
2005-04-18 17:02:51 +02:00
|
|
|
* cp-tree.h (VPTR_NAME, VPTR_NAME_P): Remove.
|
|
|
|
|
2005-04-17 23:27:47 +02:00
|
|
|
2005-04-17 Ian Lance Taylor <ian@airs.com>
|
|
|
|
|
|
|
|
* cp-tree.def: Add SIZEOF_EXPR, ARROW_EXPR and ALIGNOF_EXPR.
|
|
|
|
* cxx-pretty-print.c (pp_cxx_postfix_expression): Handle
|
|
|
|
ARROW_EXPR.
|
|
|
|
(pp_cxx_unary_expression): Handle SIZEOF_EXPR and ALIGNOF_EXPR.
|
|
|
|
(pp_cxx_expression): Handle ARROW_EXPR, SIZEOF_EXPR, and
|
|
|
|
ALIGNOF_EXPR.
|
|
|
|
* typeck.c (cxx_sizeof_or_alignof_type): Update call to
|
|
|
|
c_sizeof_or_alignof_type for change in parameter type.
|
|
|
|
|
2005-04-17 05:43:01 +02:00
|
|
|
2005-04-16 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/21025
|
|
|
|
* typeck.c (cxx_sizeof_or_alignof_type): Check whether the type to
|
|
|
|
which sizeof/alignof is dependent, rather than just whether we are
|
|
|
|
processing_template_decl.
|
2005-06-14 22:01:59 +02:00
|
|
|
|
2005-04-17 04:37:36 +02:00
|
|
|
2005-04-17 Kazu Hirata <kazu@cs.umass.edu>
|
|
|
|
|
|
|
|
* cp-tree.h (LOOKUP_GLOBAL): Remove.
|
|
|
|
(LOOKUP_ONLYCONVERTING, DIRECT_BIND, LOOKUP_NO_CONVERSION,
|
|
|
|
LOOKUP_DESTRUCTOR, LOOKUP_NO_TEMP_BIND, LOOKUP_PREFER_TYPES,
|
|
|
|
LOOKUP_PREFER_NAMESPACES, LOOKUP_CONSTRUCTOR_CALLABLE): Adjust
|
|
|
|
their values.
|
|
|
|
|
2005-04-16 04:07:33 +02:00
|
|
|
2005-04-15 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
PR middle-end/14311
|
|
|
|
* semantics.c (finish_call_expr): Call resolve_overloaded_builtin.
|
|
|
|
|
2005-04-15 17:00:58 +02:00
|
|
|
2005-04-15 Kazu Hirata <kazu@cs.umass.edu>
|
|
|
|
|
|
|
|
* cp-tree.h (lang_type_class): Remove redefined. Move
|
|
|
|
java_interface into where redefined was. Increment the width
|
|
|
|
of dummy.
|
|
|
|
(TYPE_REDEFINED): Remove.
|
|
|
|
|
2005-04-14 14:22:49 +02:00
|
|
|
2005-04-14 Kazu Hirata <kazu@cs.umass.edu>
|
|
|
|
|
|
|
|
* cp-tree.h (SET_TMPL_ARG, ENUM_TI_TEMPLATE, ENUM_TI_ARGS,
|
|
|
|
CLASSTYPE_TEMPLATE_LEVEL): Remove.
|
|
|
|
|
2005-04-12 08:33:48 +02:00
|
|
|
2005-04-11 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
* decl2.c (determine_visibility): Don't use export_class_data.
|
|
|
|
(import_export_decl): Honor TARGET_CXX_CLASS_DATA_ALWAYS_WEAK and
|
2005-06-14 22:01:59 +02:00
|
|
|
TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY.
|
2005-04-12 08:33:48 +02:00
|
|
|
|
2005-04-09 18:52:46 +02:00
|
|
|
2005-04-09 Kazu Hirata <kazu@cs.umass.edu>
|
|
|
|
|
|
|
|
* cp-tree.h (cxx_alignof): Remove.
|
|
|
|
|
2005-04-09 18:53:39 +02:00
|
|
|
* cp-tree.h (DECL_ARRAY_DELETE_OPERATOR_P): Remove.
|
|
|
|
|
2005-04-09 18:55:03 +02:00
|
|
|
* cp-tree.h (EXCEPTION_CLEANUP_NAME, B_SET, B_CLR, B_TST,
|
|
|
|
CONV_STATIC_CAST): Remove.
|
|
|
|
|
2005-04-09 18:57:01 +02:00
|
|
|
* pt.c (UNIFY_ALLOW_MAX_CORRECTION): Remove.
|
|
|
|
|
2005-04-09 18:58:14 +02:00
|
|
|
* cp-tree.h (VF_BINFO_VALUE, VF_BASETYPE_VALUE): Remove.
|
|
|
|
|
2005-04-09 21:16:29 +02:00
|
|
|
* cp-tree.h (cp_deprecated): Remove.
|
|
|
|
|
c-common.def: Move FOR_STMT...
./ * c-common.def: Move FOR_STMT, WHILE_STMT, DO_STMT, BREAK_STMT,
CONTINUE_STMT, and SWITCH_STMT to cp/cp-tree.def.
* c-common.h (WHILE_COND, WHILE_BODY): Move to cp/cp-tree.h.
(DO_COND, DO_BODY): Likewise.
(FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY): Likewise.
(SWITCH_STMT_COND, SWITCH_STMT_BODY, SWITCH_STMT_TYPE): Likewise.
(c_common_stmt_codes): Remove FOR_STMT, WHILE_STMT, DO_STMT,
BREAK_STMT, CONTINUE_STMT, and SWITCH_STMT.
(build_continue_stmt, build_break_stmt): Don't declare.
(c_do_switch_warnings): Update declaration.
* c-gimplify.c (enum bc_t): Remove.
(struct c_gimplify_ctx, ctxp): Remove.
(push_context, pop_context): Remove static functions.
(c_genericize): Don't call push_context or pop_context.
(begin_bc_block, finish_bc_block): Remove static functions.
(build_bc_goto): Likewise.
(gimplify_c_loop): Likewise.
(gimplify_for_stmt, gimplify_while_stmt): Likewise.
(gimplify_do_stmt, gimplify_switch_stmt): Likewise.
(c_gimplify_expr): Remove handling of FOR_STMT, WHILE_STMT,
DO_STMT, SWITCH_STMT, CONTINUE_STMT, BREAK_STMT.
* c-common.c (c_do_switch_warnings): Rename from
c_do_switch_warnings_1.
(c_do_switch_warnings) [old version]: Remove.
(c_do_switch_expr_warnings): Remove.
* c-typeck.c (c_finish_case): Call new c_do_switch_warnings
function instead of c_do_switch_expr_warnings.
* c-dump.c (c_dump_tree): Remove handling of BREAK_STMT,
CONTINUE_STMT, DO_STMT, FOR_STMT, SWITCH_STMT, and WHILE_STMT.
* c-pretty-print.c (pp_c_statement): Likewise.
* c-semantics.c (build_break_stmt, build_continue_stmt): Remove.
cp/
* cp-tree.def: Define FOR_STMT, WHILE_STMT, DO_STMT, BREAK_STMT,
CONTINUE_STMT, SWITCH_STMT.
* cp-tree.h (cp_stmt_codes): Add FOR_STMT, WHILE_STMT, DO_STMT,
BREAK_STMT, CONTINUE_STMT, SWITCH_STMT.
(WHILE_COND, WHILE_BODY): Define.
(DO_COND, DO_BODY): Define.
(FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY): Define.
(SWITCH_STMT_COND, SWITCH_STMT_BODY, SWITCH_STMT_TYPE): Define.
* cp-gimplify.c (enum bc_t): Define.
(struct cp_gimplify_ctx, ctxp): Define.
(push_context, pop_context): New static functions.
(begin_bc_block, finish_bc_block): New static functions.
(build_bc_goto): New static function.
(gimplify_cp_loop, gimplify_for_stmt): New static functions.
(gimplify_while_stmt, gimplify_do_stmt): Likewise.
(gimplify_switch_stmt): Likewise.
(cp_gimplify_expr): Handle FOR_STMT, WHILE_STMT, DO_STMT,
SWITCH_STMT, CONTINUE_STMT, BREAK_STMT.
(cp_genericize): Call push_context and pop_context.
* semantics.c (finish_break_stmt): Just call build_stmt
(BREAK_STMT) rather than build_break_stmt.
(finish_continue_stmt): Corresponding change.
* decl.c (pop_switch): Update call to c_do_switch_warnings for new
parameters.
* cxx-pretty-print.c (pp_cxx_statement): Handle SWITCH_STMT,
WHILE_STMT, DO_STMT, FOR_STMT, BREAK_STMT, CONTINUE_STMT.
* dump.c (cp_dump_tree): Likewise.
From-SVN: r97885
2005-04-09 05:18:18 +02:00
|
|
|
2005-04-08 Ian Lance Taylor <ian@airs.com>
|
|
|
|
|
|
|
|
* cp-tree.def: Define FOR_STMT, WHILE_STMT, DO_STMT, BREAK_STMT,
|
|
|
|
CONTINUE_STMT, SWITCH_STMT.
|
|
|
|
* cp-tree.h (cp_stmt_codes): Add FOR_STMT, WHILE_STMT, DO_STMT,
|
|
|
|
BREAK_STMT, CONTINUE_STMT, SWITCH_STMT.
|
|
|
|
(WHILE_COND, WHILE_BODY): Define.
|
|
|
|
(DO_COND, DO_BODY): Define.
|
|
|
|
(FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY): Define.
|
|
|
|
(SWITCH_STMT_COND, SWITCH_STMT_BODY, SWITCH_STMT_TYPE): Define.
|
|
|
|
* cp-gimplify.c (enum bc_t): Define.
|
|
|
|
(struct cp_gimplify_ctx, ctxp): Define.
|
|
|
|
(push_context, pop_context): New static functions.
|
|
|
|
(begin_bc_block, finish_bc_block): New static functions.
|
|
|
|
(build_bc_goto): New static function.
|
|
|
|
(gimplify_cp_loop, gimplify_for_stmt): New static functions.
|
|
|
|
(gimplify_while_stmt, gimplify_do_stmt): Likewise.
|
|
|
|
(gimplify_switch_stmt): Likewise.
|
|
|
|
(cp_gimplify_expr): Handle FOR_STMT, WHILE_STMT, DO_STMT,
|
|
|
|
SWITCH_STMT, CONTINUE_STMT, BREAK_STMT.
|
|
|
|
(cp_genericize): Call push_context and pop_context.
|
|
|
|
* semantics.c (finish_break_stmt): Just call build_stmt
|
|
|
|
(BREAK_STMT) rather than build_break_stmt.
|
|
|
|
(finish_continue_stmt): Corresponding change.
|
|
|
|
* decl.c (pop_switch): Update call to c_do_switch_warnings for new
|
|
|
|
parameters.
|
|
|
|
* cxx-pretty-print.c (pp_cxx_statement): Handle SWITCH_STMT,
|
|
|
|
WHILE_STMT, DO_STMT, FOR_STMT, BREAK_STMT, CONTINUE_STMT.
|
|
|
|
* dump.c (cp_dump_tree): Likewise.
|
|
|
|
|
2005-04-08 21:39:59 +02:00
|
|
|
2005-04-08 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
2005-04-08 23:13:57 +02:00
|
|
|
PR c++/20905
|
|
|
|
* parser.c (cp_parser_type_specifier_seq): Add is_condition
|
|
|
|
parameter.
|
|
|
|
(cp_parser_new_type_id): Pass it.
|
|
|
|
(cp_parser_condition): Likewise.
|
|
|
|
(cp_parser_conversion_type_id): Likewise.
|
|
|
|
(cp_parser_type_id): Likewise.
|
|
|
|
(cp_parser_type_specifier_seq): In a condition, do not allow
|
|
|
|
invalid type-specifier combinations.
|
|
|
|
(cp_parser_exception_declaration): Adjust call to
|
2005-06-14 22:01:59 +02:00
|
|
|
cp_parser_type_specifier_seq.
|
2005-04-08 23:13:57 +02:00
|
|
|
|
2005-04-08 21:39:59 +02:00
|
|
|
* cp-tree.def (TINST_LEVEL): Document TINST_IN_SYSTEM_HEADER_P.
|
|
|
|
* cp-tree.h (struct tinst_level): Add in_system_header_p.
|
|
|
|
(TINST_IN_SYSTEM_HEADER_P): New macro.
|
|
|
|
(make_tinst_level): Remove.
|
|
|
|
* pt.c (lookup_template_class): Preserve DECL_IN_SYSTEM_HEADER on
|
|
|
|
the instantiated class.
|
|
|
|
(push_tinst_level): Do not use make_tinst_level. Set
|
|
|
|
TINST_IN_SYSTEM_HEADER_P.
|
|
|
|
(pop_tinst_level): Likewise.
|
|
|
|
(instantiate_class_template): Set in_system_header.
|
|
|
|
(instantiate_pending_templates): Likewise.
|
|
|
|
* tree.c (make_tinst_level): Remove.
|
|
|
|
|
2005-04-06 19:17:38 +02:00
|
|
|
2005-04-06 Joseph S. Myers <joseph@codesourcery.com>
|
|
|
|
|
|
|
|
* decl.c (start_decl): Apply pending #pragma weak regardless of
|
|
|
|
scope.
|
|
|
|
|
2005-04-06 17:55:00 +02:00
|
|
|
2005-04-06 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/20212
|
|
|
|
* pt.c (regenerate_decl_from_template): Copy attributes for
|
|
|
|
parameters from the pattern to the instantiation.
|
|
|
|
|
2005-04-06 17:40:05 +02:00
|
|
|
2005-04-05 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/20734
|
|
|
|
* cp-tree.def (OFFSET_REF): Correct comments.
|
|
|
|
* init.c (build_offset_ref): Remove misleading comment.
|
|
|
|
* typeck.c (build_unary_op): Handle pointer-to-member creation
|
|
|
|
here, rather than ...
|
|
|
|
(unary_complex_lvalue): ... here.
|
|
|
|
|
2005-04-06 06:57:39 +02:00
|
|
|
2005-04-06 Jason Merrill <jason@redhat.com>
|
|
|
|
|
|
|
|
PR c++/19312
|
|
|
|
* tree.c (stabilize_init): Don't bother trying to stabilize
|
|
|
|
something with no side-effects.
|
|
|
|
|
2005-04-05 20:21:00 +02:00
|
|
|
2005-04-05 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/20763
|
|
|
|
* decl.c (grokdeclarator): Correct attribute handling.
|
|
|
|
|
2005-04-05 17:40:16 +02:00
|
|
|
2005-04-05 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/19159
|
|
|
|
* decl2.c (import_export_decl): Use non-COMDAT external linkage
|
|
|
|
for virtual tables, typeinfo, etc. that will be emitted in only
|
|
|
|
one translation unit on systems without weak symbols.
|
|
|
|
|
2005-04-04 21:11:07 +02:00
|
|
|
2005-04-04 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/20679
|
|
|
|
* parser.c (cp_parser_template_name): Fix thinko.
|
|
|
|
|
2005-04-04 19:45:16 +02:00
|
|
|
2005-04-04 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/20746
|
|
|
|
* method.c (use_thunk): Protect covariant pointer return
|
|
|
|
adjustments from NULL pointers.
|
|
|
|
|
2005-04-04 17:12:55 +02:00
|
|
|
2005-04-04 Jan Hubicka <jh@suse.cz>
|
|
|
|
|
|
|
|
* decl2.c (finish_objects): Revert my previous patch.
|
|
|
|
(cp_finish_file): Likewise.
|
|
|
|
|
2005-04-03 16:24:28 +02:00
|
|
|
2005-04-03 Kazu Hirata <kazu@cs.umass.edu>
|
|
|
|
|
|
|
|
* pt.c: Fix comment typos.
|
|
|
|
|
2005-04-03 14:33:02 +02:00
|
|
|
2005-04-03 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/20723
|
|
|
|
* pt.c (more_specialized_fn): Member functions are unordered wrt
|
|
|
|
non-members. Conversion operators are unordered wrt other
|
|
|
|
functions.
|
|
|
|
|
2005-04-01 10:29:50 +02:00
|
|
|
2005-04-01 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
* call.c (add_template_candidates_real): Remove length parameter
|
|
|
|
from fn_type_unification call.
|
|
|
|
* class.c (resolve_address_of_overloaded_function): Likewise
|
|
|
|
* cp-tree.h (fn_type_unification): Remove length parameter.
|
|
|
|
* pt.c (get_bindings_overload): Remove.
|
|
|
|
(get_bindings_real): Rename to ...
|
|
|
|
(get_bindings): ... here. Remove length and strict
|
|
|
|
parameters. Change return type flag to boolean. Remove original
|
|
|
|
forwarding function.
|
|
|
|
(determine_specialization): Adjust get_bindings call.
|
|
|
|
(fn_type_unification): Remove length parameter. Adjust.
|
|
|
|
(type_unification_real): Remove length parameter. Adjust.
|
|
|
|
(resolve_overloaded_unification): Adjust get_bindings call.
|
|
|
|
(try_one_overload): Simplify confusing cascaded if control flow.
|
|
|
|
(unify): Remove length paramter from type_unification_real call.
|
|
|
|
(most_specialized_instantiation): Adjust get_bindings calls.
|
|
|
|
(most_specialized): Likewise.
|
|
|
|
|
2005-03-31 19:36:17 +02:00
|
|
|
2005-03-31 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/19203, implement DR 214
|
|
|
|
* call.c (joust): Use more_specialized_fn.
|
|
|
|
* cp-tree.h (DEDUCE_ORDER): Remove.
|
|
|
|
(more_specialized): Replace with ...
|
|
|
|
(more_specialized_fn): ... this.
|
|
|
|
* pt.c (maybe_adjust_types_for_deduction): Remove DEDUCE_ORDER
|
|
|
|
case.
|
|
|
|
(type_unification_real): Remove DEDUCE_ORDER case.
|
|
|
|
(more_specialized): Replace with ...
|
|
|
|
(more_specialized_fn): ... this. Implement DR 214.
|
|
|
|
(most_specialized_instantiation): Use get_bindings_real directly.
|
|
|
|
|
2005-03-31 16:21:14 +02:00
|
|
|
2005-03-31 Gabriel Dos Reis <gdr@integrable-solutions.net>
|
|
|
|
|
|
|
|
PR c++/18644
|
|
|
|
* call.c (build_new_op): Remove check for -Wsynth.
|
|
|
|
|
2005-03-31 00:28:02 +02:00
|
|
|
2005-03-31 Jan Hubicka <jh@suse.cz>
|
|
|
|
|
|
|
|
* decl2.c (finish_objects): Mark ctor as needed.
|
|
|
|
(cp_finish_file): Output variables only in nonunit-at-a-time.
|
|
|
|
|
2005-03-30 03:35:15 +02:00
|
|
|
2005-03-29 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
PR c/20519
|
|
|
|
* decl.c (cp_complete_array_type): Rename from complete_array_type.
|
|
|
|
Use the new complete_array_type in c-common.c. Update all callers.
|
|
|
|
* cp-tree.h (cp_complete_array_type): Update to match.
|
|
|
|
|
2005-03-25 00:33:56 +01:00
|
|
|
2005-03-24 Geoffrey Keating <geoffk@apple.com>
|
|
|
|
|
|
|
|
* typeck.c (build_static_cast_1): Allow scalar_cast between
|
|
|
|
any integral, floating, or enumeration type.
|
|
|
|
|
2005-03-24 08:20:42 +01:00
|
|
|
2005-03-24 Steven Bosscher <stevenb@suse.de>
|
|
|
|
|
|
|
|
* typeck.c (comptypes): First determine if the types are compatible
|
|
|
|
from a target-independent point of view. Check target attributes
|
|
|
|
last.
|
|
|
|
|
|
|
|
* class.c (build_base_path):
|
|
|
|
(build_vbase_offset_vtbl_entries):
|
|
|
|
(add_vcall_offset): Replace fold (buildN (...)) with fold_buildN.
|
|
|
|
* error.c (dump_expr): Likewise.
|
|
|
|
* init.c (build_zero_init, expand_cleanup_for_base,
|
|
|
|
build_vec_delete_1): Likewise.
|
|
|
|
* mangle.c (write_integer_cst): Likewise.
|
|
|
|
* method.c (thunk_adjust): Likewise.
|
|
|
|
* pt.c (convert_nontype_argument, tsubst, unify): Likewise.
|
|
|
|
* tree.c (cxx_print_statistics, array_type_nelts_total): Likewise.
|
|
|
|
* typeck.c (build_ptrmemfunc_access_expr,
|
|
|
|
(get_member_function_from_ptrfunc): Likewise.
|
|
|
|
|
2005-03-23 20:47:09 +01:00
|
|
|
2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
|
|
|
|
|
|
|
|
* cp-objcp-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
|
|
|
|
|
2005-03-23 02:29:08 +01:00
|
|
|
2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
|
|
|
|
|
|
|
|
* cp-tree.h (perform_integral_promotions): Remove.
|
|
|
|
(default_conversion): Add.
|
|
|
|
|
2005-03-23 00:11:31 +01:00
|
|
|
2005-03-22 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
* parser.c (cp_parser_warn_min_max): New function.
|
|
|
|
(cp_parser_binary_expression): Use it.
|
|
|
|
(cp_parser_assignment_operator_opt): Likewise.
|
|
|
|
(cp_parser_operator): Likewise.
|
|
|
|
|
2005-03-22 16:07:04 +01:00
|
|
|
2005-03-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
|
|
|
|
|
|
|
|
PR c++/19980
|
|
|
|
* decl.c (start_preparsed_function): Robustify.
|
|
|
|
|
2005-03-22 15:44:10 +01:00
|
|
|
2005-03-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
|
|
|
|
|
|
|
|
PR c++/20499
|
|
|
|
* parser.c (cp_parser_class_head): Return NULL_TREE when
|
|
|
|
encountering a redefinition.
|
|
|
|
|
2005-03-22 10:30:22 +01:00
|
|
|
2005-03-22 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/20465
|
|
|
|
PR c++/20381
|
|
|
|
* typeck.c (build_ptrmemfunc): Allow OFFSET_REF when processing a
|
|
|
|
template.
|
|
|
|
|
2005-03-21 12:49:32 +01:00
|
|
|
2005-03-21 Paolo Carlini <pcarlini@suse.de>
|
|
|
|
|
|
|
|
PR c++/20461
|
|
|
|
PR c++/20536
|
|
|
|
* init.c (emit_mem_initializers): Don't crash on undefined
|
|
|
|
types.
|
|
|
|
|
|
|
|
2005-03-21 Paolo Carlini <pcarlini@suse.de>
|
|
|
|
|
|
|
|
PR c++/20147
|
|
|
|
* semantics.c (finish_stmt_expr_expr): Return immediately
|
|
|
|
if error_operand_p (expr).
|
|
|
|
|
2005-03-21 03:22:08 +01:00
|
|
|
2005-03-21 Joseph S. Myers <joseph@codesourcery.com>
|
|
|
|
|
|
|
|
* cp-tree.h (lvalue_or_else, lvalue_p): New.
|
|
|
|
* typeck.c (lvalue_or_else): New. Call lvalue_error.
|
|
|
|
|
2005-03-19 13:35:24 +01:00
|
|
|
2005-03-19 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
|
|
|
|
|
|
|
|
PR c++/20240
|
|
|
|
* decl.c (decls_match): Compare context of VAR_DECL.
|
|
|
|
|
2005-03-19 12:54:49 +01:00
|
|
|
2005-03-19 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
|
|
|
|
|
|
|
|
PR c++/20333
|
|
|
|
* parser.c (cp_parser_postfix_expression) <case RID_TYPENAME>:
|
|
|
|
Check the return value of cp_parser_nested_name_specifier.
|
|
|
|
|
2005-04-16 01:17:15 +02:00
|
|
|
2005-03-18 Dale Johannesen <dalej@apple.com>
|
|
|
|
|
|
|
|
* cp/tree.c (cp_tree_equal): Handle SSA_NAME.
|
|
|
|
|
2005-03-18 18:16:16 +01:00
|
|
|
2005-03-18 Paolo Carlini <pcarlini@suse.de>
|
|
|
|
|
|
|
|
PR c++/20463
|
|
|
|
* parser.c (cp_parser_diagnose_invalid_type_name):
|
|
|
|
Check TYPE_BINFO (current_class_type) before attempting
|
|
|
|
to emit inform messages.
|
|
|
|
|
2005-03-17 15:37:04 +01:00
|
|
|
2005-03-17 Paolo Carlini <pcarlini@suse.de>
|
|
|
|
|
|
|
|
PR c++/19966
|
|
|
|
* cp-tree.h (grok_op_properties): Change return type to void.
|
|
|
|
* decl.c (grok_op_properties): Return early - don't check the
|
|
|
|
arity - in case of a static member or an operator that cannot
|
|
|
|
be non-member; tidy a bit.
|
|
|
|
|
2005-03-17 14:26:39 +01:00
|
|
|
2005-03-17 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/20186
|
|
|
|
* pt.c (contains_dependent_cast_p): Remove.
|
|
|
|
(fold_non_dependent_expr): Don't use it.
|
|
|
|
(value_dependent_expression_p): Use a switch statement.
|
|
|
|
reference_exprs can be dependent.
|
|
|
|
|
2005-03-14 15:51:25 +01:00
|
|
|
2005-03-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
|
|
|
|
|
|
|
|
PR c++/4403
|
|
|
|
PR c++/9783, DR433
|
|
|
|
* name-lookup.c (pushtag): Skip template parameter scope when
|
|
|
|
scope is ts_global. Don't push tag into template parameter
|
|
|
|
scope.
|
|
|
|
* pt.c (instantiate_class_template): Reorder friend class
|
|
|
|
template substitution to handle non-dependent friend class
|
|
|
|
that hasn't been previously declared.
|
|
|
|
|
2005-03-14 15:33:54 +01:00
|
|
|
2005-03-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
|
|
|
|
|
|
|
|
Friend class name lookup 5/n
|
|
|
|
PR c++/1016
|
|
|
|
* cp-tree.h (pushtag): Adjust declaration.
|
|
|
|
* decl.c (lookup_and_check_tag): Call lookup_type_scope if
|
|
|
|
lookup_name fails.
|
|
|
|
(xref_tag): Adjust call to pushtag. Make hidden class visible.
|
|
|
|
(start_enum): Adjust call to pushtag.
|
|
|
|
* name-lookup.c (ambiguous_decl): Ignore hidden names.
|
|
|
|
(qualify_lookup): Change return type to bool.
|
|
|
|
(hidden_name_p): New function.
|
|
|
|
(lookup_namespace_name, unqualified_namespace_lookup,
|
|
|
|
lookup_name_real): Use it.
|
|
|
|
(lookup_type_scope): Update comments.
|
|
|
|
(maybe_process_template_type_declaration): Change parameter name
|
|
|
|
from globalize to is_friend.
|
|
|
|
(pushtag): Change globalize parameter of type int to tag_scope.
|
|
|
|
Hide name if introduced by friend declaration.
|
|
|
|
* name-lookup.h (hidden_name_p): Add declaration.
|
|
|
|
* parser.c (cp_parser_lookup_name): Don't deal with hidden name
|
|
|
|
here.
|
|
|
|
* pt.c (push_template_decl_real): Make hidden class template
|
|
|
|
visible.
|
|
|
|
(lookup_template_class, instantiate_class_template): Adjust call
|
|
|
|
to pushtag.
|
|
|
|
* semantics.c (begin_class_definition): Likewise.
|
2005-06-14 22:01:59 +02:00
|
|
|
* rtti.c (init_rtti_processing, build_dynamic_cast_1,
|
2005-03-14 15:33:54 +01:00
|
|
|
tinfo_base_init, emit_support_tinfos): Use ts_current instead of
|
|
|
|
ts_global.
|
|
|
|
|
2005-03-14 04:54:21 +01:00
|
|
|
2005-03-13 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/20157
|
2005-06-14 22:01:59 +02:00
|
|
|
* pt.c (determine_specialization): Reject non-specializations.
|
2005-03-14 04:54:21 +01:00
|
|
|
|
2005-03-12 07:39:31 +01:00
|
|
|
2005-03-11 Per Bothner <per@bothner.com>
|
|
|
|
|
|
|
|
* cp-tree.h (struct cp_declarator): New id_loc field.
|
|
|
|
* cp/parser.c (cp_lexer_get_preprocessor_token): Set cp_token's
|
|
|
|
location using c_lex_with_flags, instead of input_location.
|
|
|
|
(cp_parser_direct_declarator): Set declarator's id_loc from
|
|
|
|
cp_token's id_loc.
|
|
|
|
|
2005-03-10 15:19:51 +01:00
|
|
|
2005-03-10 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR c++/18384, c++/18327
|
|
|
|
* decl.c (reshape_init_array): Use UHWI type for max_index_cst
|
|
|
|
and index. Convert max_index to size_type_node if it isn't
|
|
|
|
host_integerp (, 1).
|
|
|
|
|
2005-03-09 19:35:48 +01:00
|
|
|
2005-03-09 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/20208
|
|
|
|
* pt.c (tsubst_decl): Apply array-to-pointer and
|
|
|
|
function-to-pointer conversions to function arguments.
|
|
|
|
(regenerate_decl_from_template): Likewise.
|
|
|
|
|
2005-03-09 18:03:34 +01:00
|
|
|
2005-03-09 Paolo Carlini <pcarlini@suse.de>
|
|
|
|
|
2005-06-14 22:01:59 +02:00
|
|
|
PR c++/16859
|
2005-03-09 18:03:34 +01:00
|
|
|
* decl.c (complete_array_type): In pedantic mode, return
|
|
|
|
3 for an empty initializer list as the initializer for an
|
|
|
|
array of unknown bound (8.5.1/4).
|
|
|
|
(maybe_deduce_size_from_array_init): Fix final test to use
|
|
|
|
the above.
|
|
|
|
|
2005-03-09 13:57:13 +01:00
|
|
|
2005-03-08 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/20186
|
|
|
|
* pt.c (contains_dependent_cast_p): New.
|
|
|
|
(fold_non_dependent_expr): Call it.
|
|
|
|
|
2005-03-09 08:28:10 +01:00
|
|
|
2005-03-08 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/20142
|
|
|
|
* cp-tree.h (target_type): Remove.
|
|
|
|
* decl.c (layout_var_decl): Remove #if 0'd code.
|
|
|
|
(cp_finish_decl): Remove dead code.
|
|
|
|
* init.c (build_vec_init): When determining whether or not the
|
|
|
|
element type has an asignment operator, look through all array
|
2005-06-14 22:01:59 +02:00
|
|
|
dimensions.
|
2005-03-09 08:28:10 +01:00
|
|
|
* typeck.c (target_type): Remove.
|
|
|
|
|
2005-03-08 00:08:58 +01:00
|
|
|
2005-03-07 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
* class.c (finish_struct_1): Do not warn about non-virtual
|
|
|
|
destructors in Java classes.
|
|
|
|
|
2005-03-05 16:44:22 +01:00
|
|
|
2005-03-05 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
|
|
|
|
|
|
|
|
PR c++/19311
|
|
|
|
* init.c (build_offset_ref): Don't build non-dependent SCOPE_REF.
|
|
|
|
* pt.c (build_non_dependent_expr): Don't build NON_DEPENDENT_EXPR
|
|
|
|
for OFFSET_TYPE.
|
|
|
|
* typeck.c (build_x_unary_op): Don't build non-dependent SCOPE_REF.
|
|
|
|
Also set PTRMEM_OK_P for NON_DEPENDENT_EXPR.
|
|
|
|
(build_unary_op): Handle building ADDR_EXPR of OFFSET_REF inside
|
|
|
|
template.
|
|
|
|
|
2005-03-02 20:55:52 +01:00
|
|
|
2005-03-02 Alexandre Oliva <aoliva@redhat.com>
|
|
|
|
|
|
|
|
* name-lookup.c (push_overloaded_decl): Don't error if the new
|
|
|
|
decl matches the old one.
|
|
|
|
* decl.c (redeclaration_error_message): Likewise.
|
|
|
|
|
2005-03-02 01:23:47 +01:00
|
|
|
2005-03-01 Per Bothner <per@bothner.com>
|
|
|
|
|
|
|
|
* decl.c (finish_function): Use SET_EXPR_LOCATION instead of
|
|
|
|
unavailable annotate_with_file_line, if USE_MAPPED_LOCATION.
|
|
|
|
|
2005-03-01 10:57:45 +01:00
|
|
|
2005-03-01 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/20232
|
|
|
|
* class.c (update_vtable_entry_for_fn): Don't crash on invalid
|
2005-06-14 22:01:59 +02:00
|
|
|
covariancy.
|
2005-03-01 10:57:45 +01:00
|
|
|
|
|
|
|
* cp-tree.g (THUNK_TARGET): Expand comment.
|
|
|
|
* method.c (use_thunk): Make sure we also use the target, if that
|
|
|
|
is a thunk.
|
|
|
|
|
2005-02-27 18:13:28 +01:00
|
|
|
2005-02-27 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR c++/20206
|
|
|
|
* decl.c (cxx_comdat_group): Put thunks for
|
|
|
|
TARGET_USE_LOCAL_THUNK_ALIAS_P (function) functions into the same
|
|
|
|
comdat group as the thunk target.
|
|
|
|
|
2005-02-24 22:55:15 +01:00
|
|
|
2005-02-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
|
|
|
|
|
|
|
|
* call.c, class.c, cp-tree.h, decl2.c, error.c, init.c, mangle.c,
|
|
|
|
parser.c: Fix comment typo(s).
|
|
|
|
|
2005-02-24 22:21:28 +01:00
|
|
|
2005-02-24 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR c++/20175
|
|
|
|
* decl.c (reshape_init): Don't warn about missing braces if STRING_CST
|
|
|
|
initializes a char/wchar_t array.
|
|
|
|
|
2005-02-24 03:42:17 +01:00
|
|
|
2005-02-23 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/19878
|
|
|
|
* decl.c (grokvardecl): Set DECL_INTERFACE_KNOWN for declarations
|
|
|
|
with internal linkage.
|
|
|
|
|
2005-02-23 19:57:43 +01:00
|
|
|
2005-02-23 Alexandre Oliva <aoliva@redhat.com>
|
|
|
|
|
|
|
|
* decl.c (grokvardecl): Don't exempt anonymous types from having
|
|
|
|
linkage for variables that have linkage other than "C".
|
|
|
|
|
2005-02-23 16:14:47 +01:00
|
|
|
2005-02-23 Kazu Hirata <kazu@cs.umass.edu>
|
|
|
|
|
|
|
|
* cp-objcp-common.h, error.c: Update copyright.
|
|
|
|
|
2005-02-22 22:43:55 +01:00
|
|
|
2005-02-22 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
2005-02-23 07:55:07 +01:00
|
|
|
PR c++/20073
|
|
|
|
* decl.c (start_decl_1): Don't clear TREE_READONLY.
|
|
|
|
(cp_finish_decl): Likewise.
|
|
|
|
(complete_vars): Call cp_apply_type_quals_to_decl.
|
|
|
|
* typeck.c (cp_apply_type_quals): Avoid setting TREE_READONLY in
|
|
|
|
cases where that's not valid.
|
|
|
|
|
2005-02-23 06:30:48 +01:00
|
|
|
PR c++/19991
|
|
|
|
* init.c (integral_constant_value): Iterate if the value of a decl
|
|
|
|
is itself a constant.
|
|
|
|
|
|
|
|
PR c++/20152
|
|
|
|
* parser.c (cp_parser_class_head): Check for redefintions here.
|
|
|
|
* semantics.c (begin_class_definition): Not here.
|
2005-06-14 22:01:59 +02:00
|
|
|
|
2005-02-23 06:30:48 +01:00
|
|
|
PR c++/20153
|
|
|
|
* decl2.c (build_anon_union_vars): Add type parameter.
|
|
|
|
(finish_anon_union): Pass it.
|
|
|
|
|
|
|
|
PR c++/20148
|
|
|
|
* error.c (dump_expr): Do not print the body of a BIND_EXPR.
|
|
|
|
Handle STATEMENT_LIST.
|
|
|
|
|
2005-02-22 22:43:55 +01:00
|
|
|
PR c++/19883
|
|
|
|
* parser.c (cp_parser_direct_declarator): Always complain about
|
|
|
|
non-constant array bounds when in a function scope.
|
|
|
|
* semantics.c (finish_id_expression): Do not mark dependent names
|
2005-06-14 22:01:59 +02:00
|
|
|
as non-constant.
|
2005-02-22 22:43:55 +01:00
|
|
|
|
2005-02-22 00:12:27 +01:00
|
|
|
2005-02-21 Douglas Gregor <dgregor@cs.indiana.edu>
|
2005-06-14 22:01:59 +02:00
|
|
|
|
2005-02-22 00:12:27 +01:00
|
|
|
PR c++/19076
|
|
|
|
PR c++/6628
|
|
|
|
* cp-tree.h (cp_apply_type_quals_to_decl): Declared.
|
|
|
|
* decl.c (grokdeclarator): Pedwarn about qualifying a function
|
2005-06-14 22:01:59 +02:00
|
|
|
type.
|
2005-02-22 00:12:27 +01:00
|
|
|
Add qualifiers when declaring a typedef of a function type.
|
|
|
|
Member function pointers pick up the qualifiers of the typedef
|
|
|
|
used to declare them.
|
2005-03-24 08:20:42 +01:00
|
|
|
Don't complain about creating cv-qualified function types.
|
2005-02-22 00:12:27 +01:00
|
|
|
Complain about qualified function typedefs that are used to
|
|
|
|
declare non-static member functions or free functions.
|
|
|
|
Use cp_apply_type_quals_to_decl.
|
|
|
|
(start_preparsed_function): Use cp_apply_type_quals_to_decl.
|
|
|
|
(grokclassfn): Use cp_apply_type_quals_to_decl.
|
|
|
|
* error.c (dump_type_suffix): Print qualifiers for function
|
2005-06-14 22:01:59 +02:00
|
|
|
types.
|
2005-02-22 00:12:27 +01:00
|
|
|
* pt.c (tsubst_decl): Use cp_apply_type_quals_to_decl.
|
|
|
|
(tsubst): When substituting a function type into a member
|
|
|
|
pointer type, pass along the qualifiers.
|
|
|
|
(unify): Unify member pointers to member function pointers.
|
|
|
|
* tree.c (cp_build_qualified_type_real): Function types may be
|
|
|
|
qualified. This includes restrict qualifiers.
|
|
|
|
* typeck.c (cp_apply_type_quals_to_decl): New function to replace
|
|
|
|
use of c_apply_type_quals_to_decl. Drops qualifiers that are being
|
|
|
|
added to function types.
|
|
|
|
|
2005-02-20 18:01:32 +01:00
|
|
|
2005-02-20 Zack Weinberg <zack@codesourcery.com>
|
|
|
|
|
|
|
|
PR 18785
|
|
|
|
* cp-objcp-common.h (LANG_HOOKS_TO_TARGET_CHARSET): Set to
|
|
|
|
c_common_to_target_charset. Delete bogus comment.
|
|
|
|
|
2005-02-19 03:35:25 +01:00
|
|
|
2005-02-18 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
PR libstdc++/10606
|
|
|
|
* except.c (do_get_exception_ptr): New.
|
|
|
|
(expand_start_catch_block): Use it.
|
|
|
|
|
2005-02-19 00:20:55 +01:00
|
|
|
2005-02-19 Jakub Jelinek <jakub@redhat.com>
|
2005-02-19 00:20:00 +01:00
|
|
|
|
|
|
|
* decl.c (start_decl_1): Only check TYPE_NEEDS_CONSTRUCTING
|
|
|
|
if type is not error_mark_node.
|
|
|
|
|
2005-02-18 20:11:58 +01:00
|
|
|
2005-01-20 Giovanni Bajo <giovannibajo@gcc.gnu.org>
|
|
|
|
|
|
|
|
PR c++/19508
|
|
|
|
* decl2.c (grokfield): Do not apply attributes to template parameters
|
|
|
|
as they are ignored by tsubst anyway.
|
|
|
|
|
2005-02-18 07:58:40 +01:00
|
|
|
2005-02-18 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR c++/19813
|
|
|
|
* decl.c (start_decl_1): Clear TREE_READONLY flag if
|
|
|
|
its type has TYPE_NEEDS_CONSTRUCTING.
|
|
|
|
(complete_vars): Likewise.
|
|
|
|
|
2005-02-17 17:42:09 +01:00
|
|
|
2005-02-17 Alexandre Oliva <aoliva@redhat.com>
|
|
|
|
|
2005-02-17 20:25:05 +01:00
|
|
|
PR c++/20028
|
|
|
|
* class.c (finish_struct): Initialize TYPE_SIZE_UNIT of a
|
|
|
|
template along with TYPE_SIZE.
|
|
|
|
|
2005-02-17 17:42:09 +01:00
|
|
|
PR c++/20022
|
|
|
|
* semantics.c (perform_deferred_access_checks): Use
|
|
|
|
get_deferred_access_checks to get the top of the stack.
|
|
|
|
|
2005-02-15 20:39:31 +01:00
|
|
|
2005-02-15 Alexandre Oliva <aoliva@redhat.com>
|
|
|
|
|
|
|
|
PR c++/17788
|
|
|
|
* class.c (add_implicitly_declared_members, check_field_decl)
|
|
|
|
(check_field_decls, check_bases): Remove arguments, tests and
|
|
|
|
assignments of cant_have_default_ctor-related variables.
|
|
|
|
|
2005-02-15 20:37:13 +01:00
|
|
|
2005-02-15 Alexandre Oliva <aoliva@redhat.com>
|
|
|
|
|
|
|
|
* decl2.c (mark_used): Set the source location of the used decl to
|
|
|
|
the current input location here...
|
|
|
|
* method.c (synthesize_method): ... not here. Set input_location
|
|
|
|
from the decl instead.
|
|
|
|
|
2005-02-14 14:45:42 +01:00
|
|
|
2005-02-14 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
2005-02-14 18:50:58 +01:00
|
|
|
PR c++/19608
|
|
|
|
* parser.c (cp_parser_late_parsing_for_member): Use
|
|
|
|
current_function_decl as scope to push to and from.
|
|
|
|
|
2005-02-14 14:45:42 +01:00
|
|
|
PR c++/19884
|
|
|
|
* pt.c (check_explicit_specialization): Make sure namespace
|
|
|
|
binding lookup found an overloaded function.
|
|
|
|
(lookup_template_function): Just assert FNS is an overloaded
|
|
|
|
function.
|
|
|
|
|
|
|
|
PR c++/19895
|
|
|
|
* decl.c (grokdeclarator): Check for error mark node in ptrmem
|
|
|
|
construction.
|
|
|
|
|
2005-02-14 13:01:15 +01:00
|
|
|
2005-02-14 Alexandre Oliva <aoliva@redhat.com>
|
|
|
|
|
|
|
|
PR c++/17816
|
|
|
|
* decl.c (redeclaration_error_message): Report redefinition of
|
|
|
|
pure virtual function.
|
|
|
|
|
2005-02-14 14:45:42 +01:00
|
|
|
2005-02-14 Nathan Sidwell <nathan@codesourcery.com>
|
2005-02-14 10:36:35 +01:00
|
|
|
|
|
|
|
PR c++/19891
|
|
|
|
* class.c (build_simple_base_path): Build the component_ref
|
|
|
|
directly.
|
|
|
|
(update_vtable_entry_for_fn): Walk the covariant's binfo chain
|
|
|
|
rather than using lookup_base.
|
|
|
|
* search.c (dfs_walk_once): Add non-recursive assert check.
|
|
|
|
* typeck.c (build_class_member_access_expr): It is possible for
|
|
|
|
the member type to be both const and volatile.
|
|
|
|
|
2005-02-12 16:40:28 +01:00
|
|
|
2005-02-12 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
|
|
|
|
|
|
|
|
PR c++/14479
|
|
|
|
PR c++/19487
|
|
|
|
* pt.c (maybe_check_template_type): Remove.
|
|
|
|
* cp-tree.h (maybe_check_template_type): Remove prototype.
|
|
|
|
* name-lookup.c (maybe_process_template_type_declaration): Don't
|
|
|
|
use maybe_check_template_type.
|
|
|
|
|
2005-02-11 21:22:23 +01:00
|
|
|
2005-02-11 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
PR c++/19632
|
2005-02-20 18:01:32 +01:00
|
|
|
* pt.c (get_mostly_instantiated_function_type): Save and restore
|
|
|
|
flag_access_control instead of push/pop_access_scope.
|
2005-02-11 21:22:23 +01:00
|
|
|
|
2005-02-11 18:15:50 +01:00
|
|
|
2005-02-10 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/19755
|
|
|
|
* decl.c (reshape_init): Issue warnings about missing braces.
|
|
|
|
|
2005-02-11 17:28:37 +01:00
|
|
|
2005-02-11 Kazu Hirata <kazu@cs.umass.edu>
|
|
|
|
|
|
|
|
* cp-tree.def, except.c, ptree.c: Update copyright.
|
|
|
|
|
2005-02-10 01:34:46 +01:00
|
|
|
2005-02-09 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
2005-02-10 08:55:04 +01:00
|
|
|
PR c++/19811
|
|
|
|
* call.c (build_op_delete_call): Check COMPLETE_TYPE_P before
|
|
|
|
attempting name lookup.
|
|
|
|
|
2005-02-10 05:39:41 +01:00
|
|
|
* parser.c (cp_parser_unqualified_id): Initialize type_decl.
|
|
|
|
|
2005-02-10 01:34:46 +01:00
|
|
|
PR c++/19787
|
|
|
|
* call.c (initialize_reference): Robustify.
|
|
|
|
|
|
|
|
PR ++/19732
|
|
|
|
* decl.c (grokdeclarator): Check for invalid use of destructor
|
|
|
|
names.
|
|
|
|
|
|
|
|
PR c++/19762
|
|
|
|
* parser.c (cp_parser_unqualified_id): Avoid creating destructor
|
|
|
|
names with invalid types.
|
|
|
|
|
|
|
|
PR c++/19826
|
|
|
|
* parser.c (cp_parser_direct_declarator): Allow type-dependent
|
|
|
|
expressions as array bounds.
|
|
|
|
|
|
|
|
PR c++/19739
|
|
|
|
* parser.c (cp_parser_attributes_list): Allow empty lists.
|
|
|
|
|
2005-02-09 03:53:41 +01:00
|
|
|
2005-02-08 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/19733
|
|
|
|
* class.c (add_method): Don't set TYPE_HAS_DESTRUCTOR.
|
|
|
|
(check_bases): Give warnings about a base class with a
|
|
|
|
non-virtual destructor, even if it is implicit.
|
|
|
|
(finish_struct_bits): Don't copy TYPE_HAS_DESTRUCTOR.
|
|
|
|
(maybe_warn_about_overly_private_class): Don't use
|
|
|
|
TYPE_HAS_DESTRUCTOR.
|
|
|
|
(finish_struct_methods): Don't set TYPE_HAS_DESTRUCTOR.
|
|
|
|
(check_for_override): Give it external linkage.
|
|
|
|
(add_implicitly_declared_members): Generate destructors lazily.
|
|
|
|
(check_field_decls): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR, not
|
|
|
|
TYPE_HAS_DESTRUCTOR.
|
|
|
|
(check_bases_and_members): Call check_methods before
|
|
|
|
check_field_decls.
|
|
|
|
(check_bases_and_members): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR, not
|
|
|
|
TYPE_HAS_DESTRUCTOR.
|
|
|
|
(finish_struct_1): Do not use TYPE_HAS_DESTRUCTOR.
|
|
|
|
* cp-tree.def (PSEUDO_DTOR_EXPR): Document.
|
|
|
|
* cp-tree.h (TYPE_HAS_DESTRUCTOR): Remove.
|
|
|
|
(lang_type_class): Add lazy_destructor.
|
|
|
|
(CLASSTYPE_LAZY_DESTRUCTOR): New macro.
|
|
|
|
(CLASSTYPE_DESTRUCTORS): Robustify.
|
|
|
|
(TYPE_HAS_DESTRUCTOR): Remove.
|
|
|
|
(check_for_override): Declare.
|
|
|
|
(build_vbase_delete): Remove.
|
|
|
|
* cvt.c (convert_to_void): Issue errors about pseudo-destructor
|
|
|
|
expressions.
|
|
|
|
* decl.c (cxx_maybe_build_cleanup): Remove dead code.
|
|
|
|
* except.c (dtor_nothrow): Lazily create destructors if necessary.
|
|
|
|
(build_throw): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR.
|
|
|
|
* init.c (build_delete): Lazily create destructors, if necessary.
|
|
|
|
(build_vbase_delete): Remove.
|
|
|
|
* method.c (locate_dtor): Simplify.
|
|
|
|
(implicitly_declare_fn): Add support for destructors.
|
|
|
|
* parser.c (cp_parser_lookup_name): Lazily create destructors, if
|
|
|
|
necessary.
|
|
|
|
* pt.c (check_explicit_specialization): Don't use
|
|
|
|
TYPE_HAS_DESTRUCTOR.
|
|
|
|
(instantiate_class_template): Likewise.
|
|
|
|
* ptree.c (cxx_print_type): Don't print TYPE_HAS_DESTRUCTOR.
|
|
|
|
* rtti.c (emit_support_tinfos): Robustify.
|
|
|
|
* search.c (lookup_fnfields_1): Lazily create destructors.
|
|
|
|
* typeck.c (build_class_member_access_expr): Remove
|
|
|
|
PSEUDO_DTOR_EXPR handling.
|
|
|
|
(lookup_destructor): Likewise.
|
|
|
|
|
2005-02-08 15:46:52 +01:00
|
|
|
2005-02-08 Kazu Hirata <kazu@cs.umass.edu>
|
|
|
|
|
|
|
|
* cxx-pretty-print.c, cxx-pretty-print.h, decl.h: Update
|
|
|
|
copyright.
|
|
|
|
|
2005-02-08 05:11:04 +01:00
|
|
|
2005-02-07 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
* parser.c (cp_lexer_start_debugging): Avoid arithmetic operations
|
|
|
|
on boolean variables.
|
|
|
|
(cp_lexer_stop_debugging): Likewise.
|
|
|
|
|
2005-02-03 11:26:22 +01:00
|
|
|
2005-02-03 Giovanni Bajo <giovannibajo@gcc.gnu.org>
|
|
|
|
|
|
|
|
PR c++/17401
|
|
|
|
* parser.c (cp_parser_pure_specifier): Emit a specific error
|
|
|
|
message with an invalid pure specifier.
|
|
|
|
* decl2.c (grok_function_init): Remove.
|
|
|
|
(grokfield): An initializer for a method is a always a pure
|
|
|
|
specifier.
|
|
|
|
|
2005-02-03 01:02:10 +01:00
|
|
|
2005-02-02 Matt Austern <austern@apple.com>
|
|
|
|
|
|
|
|
PR c++/19628
|
|
|
|
* cp-tree.h (builtin_valid_in_constant_expr_p): Declare.
|
|
|
|
* parser.c (cp_parser_postfix_expression): Accept function call in
|
|
|
|
constant expression if builtin_valid_in_constant_expr_p is true
|
2005-02-20 18:01:32 +01:00
|
|
|
for that function.
|
2005-02-03 01:02:10 +01:00
|
|
|
* pt.c (value_dependent_expression_p): Handle CALL_EXPRs properly.
|
|
|
|
* semantics.c (finish_id_expression): Accept function call in constant
|
|
|
|
expression if builtin_valid_in_constant_expr_p is true for that
|
2005-02-20 18:01:32 +01:00
|
|
|
function.
|
2005-02-03 01:02:10 +01:00
|
|
|
* tree.c (builtin_valid_in_constant_expr_p): New.
|
2005-02-20 18:01:32 +01:00
|
|
|
|
2005-02-02 22:58:46 +01:00
|
|
|
2005-02-02 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
|
|
|
|
|
|
|
|
PR c++/17413
|
|
|
|
* pt.c (check_instantiated_args): Improve error message.
|
|
|
|
Fix logic when to print its second part.
|
|
|
|
|
2005-02-02 22:19:07 +01:00
|
|
|
2005-02-02 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
|
|
|
|
|
|
|
|
* cp-tree.h (complete_type_or_else): Remove macro.
|
|
|
|
(complete_type_or_diagnostic): Rename to complete_type_or_else
|
|
|
|
and remove last argument.
|
|
|
|
* typeck.c (complete_type_or_diagnostic): Rename to
|
|
|
|
complete_type_or_else and remove last argument.
|
|
|
|
|
2005-02-02 22:13:41 +01:00
|
|
|
2005-02-02 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
|
|
|
|
|
|
|
|
* cp-tree.h (commonparms): Remove prototype.
|
|
|
|
(convert_arguments): Likewise.
|
|
|
|
(PFN_FROM_PTRMEMFUNC): Remove.
|
|
|
|
* typeck.c (commonparms): Make static.
|
|
|
|
(convert_arguments): Add prototype. Make static.
|
|
|
|
(PFN_FROM_PTRMEMFUNC): Replace by pfn_from_ptrmemfunc.
|
|
|
|
|
2005-02-01 07:58:27 +01:00
|
|
|
2005-01-31 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
* parser.c (cp_parser_primary_expression): Don't complain about
|
|
|
|
floating-point literals in integral constant expressions when
|
|
|
|
!pedantic.
|
|
|
|
|
2005-02-01 06:56:08 +01:00
|
|
|
2005-02-01 Alexandre Oliva <aoliva@redhat.com>
|
|
|
|
|
2005-02-01 07:07:14 +01:00
|
|
|
* parser.c (cp_parser_template_id): Revert comment patch too.
|
2005-02-20 18:01:32 +01:00
|
|
|
|
2005-02-01 06:56:08 +01:00
|
|
|
PR c++/18757
|
|
|
|
PR c++/19366
|
|
|
|
PR c++/19499
|
|
|
|
* parser.c (cp_parser_template_id): Revert 2004-12-09's patch.
|
|
|
|
Issue an error when creating the template id.
|
|
|
|
* pt.c (fn_type_unification): Return early if the explicit
|
|
|
|
template arg list is an error_mark_node.
|
|
|
|
|
2005-02-01 02:01:34 +01:00
|
|
|
2005-01-31 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
* decl.c (build_enumerator): Do not issue duplicate error messages
|
|
|
|
about invalid enumeration constants.
|
|
|
|
* parser.c (cp_parser_non_integral_constant_expression): Always
|
|
|
|
set parser->non_integral_constant_expression_p.
|
|
|
|
(cp_parser_primary_expression): Add cast_p parameter. Issue
|
|
|
|
errors about invalid uses of floating-point literals in
|
|
|
|
cast-expressions.
|
|
|
|
(cp_parser_postfix_expression): Add cast_p parameter.
|
|
|
|
(cp_parser_open_square_expression): Pass it.
|
|
|
|
(cp_parser_parenthesized_expression_list): Add cast_p parameter.
|
|
|
|
(cp_parser_unary_expression): Likewise.
|
|
|
|
(cp_parser_new_placement): Pass it.
|
|
|
|
(cp_parser_direct_new_declarator): Likewise.
|
|
|
|
(cp_parser_new_initializer): Likewise.
|
|
|
|
(cp_parser_cast_expression): Add cast_p parameter.
|
|
|
|
(cp_parser_binary_expression): Likewise.
|
|
|
|
(cp_parser_question_colon_clause): Likewise.
|
|
|
|
(cp_parser_assignment_expression): Likewise.
|
|
|
|
(cp_parser_expression): Likewise.
|
|
|
|
(cp_parser_constant_expression): If an integral constant
|
|
|
|
expression is invalid, return error_mark_node.
|
|
|
|
(cp_parser_expression_statement): Pass cast_p.
|
|
|
|
(cp_parser_condition): Likewise.
|
|
|
|
(cp_parser_iteration_statement): Likewise.
|
|
|
|
(cp_parser_jump_statement): Likewise.
|
|
|
|
(cp_parser_mem_initializer): Likewise.
|
|
|
|
(cp_parser_template_argument): Likewise.
|
|
|
|
(cp_parser_parameter_declaration): Likewise.
|
|
|
|
(cp_parser_initializer): Likewise.
|
|
|
|
(cp_parser_throw_expression): Likewise.
|
|
|
|
(cp_parser_attribute_list): Likewise.
|
|
|
|
(cp_parser_simple_cast_expression): Likewise.
|
|
|
|
(cp_parser_functional_cast): Likewise.
|
|
|
|
(cp_parser_late_parsing_default_args): Likewise.
|
|
|
|
(cp_parser_sizeof_operand): Save/restore
|
|
|
|
non_integral_constant_expression_p.
|
|
|
|
|
2005-01-31 23:05:07 +01:00
|
|
|
2005-01-31 Mike Stump <mrs@apple.com>
|
|
|
|
|
|
|
|
* parser.c (cp_lexer_new_main): Get the first token, first, before
|
|
|
|
doing anything.
|
|
|
|
|
2005-01-31 17:16:16 +01:00
|
|
|
2005-01-31 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
* decl.c (start_decl): Add missing parentheses.
|
|
|
|
|
2005-01-31 02:17:11 +01:00
|
|
|
2005-01-30 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
2005-01-31 07:16:54 +01:00
|
|
|
PR c++/19555
|
|
|
|
* cp-tree.h (DECL_USE_TEMPLATE): Expand documentation.
|
|
|
|
* decl.c (duplicate_decls): Do not discard
|
|
|
|
DECL_IMPLICIT_INSTANTIATION when merging declarations.
|
|
|
|
(start_decl): Do not SET_DECL_TEMPLATE_SPECIALIZATION for
|
|
|
|
variables that do not have DECL_USE_TEMPLATE.
|
|
|
|
|
2005-01-31 05:07:41 +01:00
|
|
|
PR c++/19395
|
|
|
|
* decl.c (grokdeclarator): Refactor code so that qualified names
|
|
|
|
are never allowed as the declarator in a typedef.
|
|
|
|
|
|
|
|
PR c++/19367
|
|
|
|
* name-lookup.c (do_nonmember_using_decl): Avoid overloading
|
|
|
|
builtin declarations.
|
|
|
|
|
2005-01-31 02:17:11 +01:00
|
|
|
PR c++/19457
|
|
|
|
* call.c (convert_like_real): Inline call to
|
|
|
|
dubious_conversion_warnings here.
|
|
|
|
* cp-tree.h (dubious_conversion_warnings): Remove.
|
|
|
|
* semantics.c (finish_unary_op_expr): Copy INTEGER_CSTs before
|
|
|
|
setting TREE_NEGATED_INT.
|
|
|
|
* typeck.c (dubious_conversion_warnings): Remove.
|
|
|
|
|
|
|
|
PR c++/19349
|
|
|
|
* name-lookup.c (pushdecl_namespace_level): Avoid accessing free'd
|
2005-02-20 18:01:32 +01:00
|
|
|
memory.
|
2005-01-31 02:17:11 +01:00
|
|
|
|
2005-01-29 01:47:57 +01:00
|
|
|
2005-01-28 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
2005-01-29 03:07:18 +01:00
|
|
|
PR c++/19253
|
|
|
|
* parser.c (cp_parser_diagnose_invalid_type_name): Commit to
|
|
|
|
tentative parses.
|
|
|
|
|
2005-01-29 01:47:57 +01:00
|
|
|
PR c++/19667
|
|
|
|
* pt.c (redeclare_class_template): Robustify.
|
|
|
|
|
tree.h (SWITCH_COND, [...]): Add tree checks.
* tree.h (SWITCH_COND, SWITCH_BODY, SWITCH_LABELS, CASE_LOW,
CASE_HIGH, CASE_LABEL, ASM_STRING, ASM_OUTPUTS, ASM_INPUTS,
ASM_CLOBBERS): Add tree checks.
* c-common.h (SWITCH_TYPE): Rename to SWITCH_STMT_TYPE.
(SWITCH_STMT_COND, SWITCH_STMT_BODY): New.
* c-common.def (SWITCH_STMT): Update to match.
* c-common.c (c_do_switch_warnings): Use SWITCH_STMT accessor
macros instead of SWITCH_EXPR ones.
* c-dump.c (c_dump_tree): Likewise.
* c-gimplify.c (gimplify_switch_stmt): Likewise.
* c-typeck.c (c_start_case, do_case, c_finish_case): Likewise.
cp/
* decl.c (finish_case_label): Use SWITCH_STMT accessor macros
instead of SWITCH_EXPR ones.
* pt.c (tsubst_expr): Likewise.
* semantics.c (begin_switch_stmt, finish_switch_cond,
finish_switch_stmt): Likewise.
doc/
* c-tree.texi (SWITCH_STMT): Update accessor macro names.
From-SVN: r94315
2005-01-27 08:32:26 +01:00
|
|
|
2005-01-27 Steven Bosscher <stevenb@suse.de>
|
|
|
|
|
|
|
|
* decl.c (finish_case_label): Use SWITCH_STMT accessor macros
|
|
|
|
instead of SWITCH_EXPR ones.
|
|
|
|
* pt.c (tsubst_expr): Likewise.
|
|
|
|
* semantics.c (begin_switch_stmt, finish_switch_cond,
|
|
|
|
finish_switch_stmt): Likewise.
|
|
|
|
|
2005-01-26 19:45:00 +01:00
|
|
|
2005-01-26 J"orn Rennecke <joern.rennecke@st.com>
|
|
|
|
|
2005-01-26 19:58:59 +01:00
|
|
|
PR c++/18370
|
2005-01-26 20:02:32 +01:00
|
|
|
* parser.c (cp_parser_initializer_clause): Initialize *non_constant_p.
|
2005-01-26 19:45:00 +01:00
|
|
|
|
2005-01-25 20:21:30 +01:00
|
|
|
2005-01-25 Andrew Pinski <pinskia@physics.uc.edu>
|
|
|
|
|
|
|
|
* class.c (abort_fndecl_addr): New variable.
|
|
|
|
(build_vtbl_initializer): If we have a pure virtual function
|
|
|
|
share the abort function's address.
|
|
|
|
Include gt-cp-class.h at the end.
|
|
|
|
* config-lang.in (gtfiles): Add cp/class.c.
|
|
|
|
|
2005-01-25 09:58:46 +01:00
|
|
|
2005-01-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
|
|
|
|
|
|
|
|
* cxx-pretty-print.c (pp_cxx_statement): Add prototype. Make static.
|
|
|
|
(pp_cxx_function_definition): Make static.
|
|
|
|
* cxx-pretty-print.h (pp_cxx_statement): Remove prototype.
|
|
|
|
(pp_cxx_function_definition): Likewise.
|
|
|
|
|
2005-01-25 09:55:00 +01:00
|
|
|
2005-01-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
|
|
|
|
|
|
|
|
* name-lookup.c (print_binding_level): Make static.
|
|
|
|
(constructor_name_full): Make static inline.
|
|
|
|
(current_decl_namespace): Make static.
|
|
|
|
* name-lookup.h (constructor_name_full): Remove prototype.
|
|
|
|
(print_binding_level): Likewise.
|
|
|
|
(current_decl_namespace): Likewise.
|
|
|
|
|
2005-01-25 09:50:16 +01:00
|
|
|
2005-01-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
|
|
|
|
|
|
|
|
* decl.h (debug_bindings_indentation): Remove.
|
|
|
|
|
2005-01-23 16:22:18 +01:00
|
|
|
2005-01-23 Kazu Hirata <kazu@cs.umass.edu>
|
|
|
|
|
|
|
|
* typeck.c: Fix a comment typo.
|
|
|
|
|
2005-01-21 03:27:16 +01:00
|
|
|
2005-01-21 Giovanni Bajo <giovannibajo@gcc.gnu.org>
|
|
|
|
|
|
|
|
PR c++/19208
|
|
|
|
* pt.c (fold_decl_constant_value): Always call fold_non_dependent_expr
|
|
|
|
at least once.
|
|
|
|
(tsubst): Use fold_decl_constant_value in place of a bare call to
|
|
|
|
integral_constant_value.
|
|
|
|
|
2005-01-20 08:12:50 +01:00
|
|
|
2005-01-20 Kazu Hirata <kazu@cs.umass.edu>
|
|
|
|
|
|
|
|
* typeck.c (more_qualified_p): Remove.
|
|
|
|
* cp-tree.h: Remove the corresponding prototype.
|
|
|
|
|
2005-01-20 02:43:21 +01:00
|
|
|
2005-01-19 Matt Austern <austern@apple.com>
|
|
|
|
|
|
|
|
* typeck.c (comptypes): Handle return code from objc_comptypes
|
|
|
|
correctly.
|
2005-02-20 18:01:32 +01:00
|
|
|
|
2005-01-19 22:16:56 +01:00
|
|
|
2005-01-19 Kazu Hirata <kazu@cs.umass.edu>
|
|
|
|
|
|
|
|
* cp-tree.h, name-lookup.h: Remove unused prototypes.
|
|
|
|
|
2005-01-19 15:30:21 +01:00
|
|
|
2005-01-19 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
|
|
|
|
|
|
|
|
PR c++/19375
|
|
|
|
* semantics.c (finish_id_expression): Disable access checking for
|
|
|
|
already lookuped FIELD_DECL.
|
|
|
|
|
2005-01-19 00:46:24 +01:00
|
|
|
2005-01-18 Kazu Hirata <kazu@cs.umass.edu>
|
|
|
|
|
|
|
|
* decl.c (delete_block): Remove.
|
|
|
|
* cp-tree.h: Remove the corresponding prototype.
|
|
|
|
|
2005-01-19 00:49:35 +01:00
|
|
|
* decl.c (vtable_decl_p, vtype_decl_p, walk_globals_data,
|
|
|
|
walk_vtables_r, walk_vtables, walk_globals_r, walk_globals):
|
|
|
|
Remove.
|
|
|
|
* cp-tree.h: Remove the corresponding prototypes.
|
|
|
|
|
2005-01-19 00:51:26 +01:00
|
|
|
* tree.c (count_functions, bound_pmf_p, cp_is_overload_p,
|
|
|
|
cp_update_decl_after_saving, name_p): Remove.
|
|
|
|
* cp-tree.h: Remove the corresponding prototypes.
|
|
|
|
|
2005-01-18 18:52:33 +01:00
|
|
|
2005-01-18 Andrew Pinski <pinskia@physics.uc.edu>
|
|
|
|
|
|
|
|
PR c/19472
|
|
|
|
* semantics.c (finish_asm_stmt): Strip nops off
|
|
|
|
input memory operands.
|
|
|
|
|
2005-01-18 12:45:39 +01:00
|
|
|
2005-01-18 Kazu Hirata <kazu@cs.umass.edu>
|
|
|
|
|
|
|
|
* Make-lang.in, call.c, cvt.c, init.c, rtti.c, tree.c,
|
|
|
|
typeck2.c: Update copyright.
|
|
|
|
|
2005-01-17 09:08:12 +01:00
|
|
|
2005-01-16 Kazu Hirata <kazu@cs.umass.edu>
|
|
|
|
|
|
|
|
* class.c (get_enclosing_class): Remove.
|
|
|
|
* cp-tree.h: Remove the corresponding prototypes.
|
|
|
|
|
2005-01-17 09:10:06 +01:00
|
|
|
* cvt.c (convert_lvalue): Remove.
|
|
|
|
* cp-tree.h: Remove the corresponding prototype.
|
|
|
|
|
2005-01-17 09:11:20 +01:00
|
|
|
* pt.c (tinst_for_decl): Remove.
|
|
|
|
* cp-tree.h: Remove the corresponding prototypes.
|
|
|
|
|
2005-01-17 09:13:09 +01:00
|
|
|
* tree.c (hash_chainon): Remove.
|
|
|
|
* cp-tree.h: Remove the corresponding prototypes.
|
|
|
|
|
2005-01-15 00:45:59 +01:00
|
|
|
2005-01-15 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR c++/19263
|
|
|
|
* typeck2.c (split_nonconstant_init_1) <case VECTOR_TYPE>: Put a copy
|
|
|
|
of CONSTRUCTOR's node into MODIFY_EXPR, as the original is modified.
|
|
|
|
|
2005-01-13 01:53:38 +01:00
|
|
|
2005-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
|
|
|
|
|
|
|
* Make-lang.in (cp-warn): Don't append $(WERROR).
|
|
|
|
|
2005-01-10 20:37:05 +01:00
|
|
|
2005-01-10 Kazu Hirata <kazu@cs.umass.edu>
|
|
|
|
|
|
|
|
* cp-tree.h: Fix a comment typo.
|
|
|
|
|
2005-01-07 18:09:15 +01:00
|
|
|
2005-01-07 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/19298
|
|
|
|
* pt.c (tsubst_qualified_id): Call convert_from_reference.
|
|
|
|
|
2005-01-06 21:21:13 +01:00
|
|
|
2005-01-06 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/19244
|
|
|
|
* class.c (add_implicitly_declared_members): Remove dead code.
|
|
|
|
* decl.c (grokfndecl): Add sfk parameter. Use it do set
|
|
|
|
DECL_CONSTRUCTOR_P.
|
|
|
|
(grokdeclarator): Adjust calls to grokfndecl.
|
|
|
|
* method.c (implicitly_declare_fn): Improve documentation.
|
|
|
|
* parser.c (cp_parser_direct_declarator): Do not consider a
|
|
|
|
function to be a constructor if the containing class was
|
|
|
|
originally anonymous.
|
|
|
|
|
2005-01-06 17:04:05 +01:00
|
|
|
2005-01-06 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
|
|
|
|
|
|
|
|
PR c++/17154
|
|
|
|
* search.c (lookup_field_1): Handle using declaration in
|
|
|
|
class template partial specialization.
|
|
|
|
|
2005-01-06 16:41:34 +01:00
|
|
|
2005-01-06 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
|
|
|
|
|
|
|
|
PR c++/19258
|
|
|
|
* pt.c (push_access_scope): Handle friend defined in class.
|
|
|
|
(pop_access_scope): Likewise.
|
|
|
|
|
2005-01-06 16:22:11 +01:00
|
|
|
2005-01-06 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/19270
|
|
|
|
* pt.c (tsubst_copy) <ARRAY_REF case>: Handle separately.
|
|
|
|
(tsubst_copy_and_build) <ARRAY_REF case>: Remove obsolete
|
|
|
|
array-new handling code. Use build_x_binary_op.
|
|
|
|
|
re PR c++/19030 (ice on tree check)
cp:
PR c++/19030
* cp-tree.h (start_decl): Take pointer to pushed scope, not bool.
* name-lookup.h (push_scope): Return pushed scope, not flag.
* name-lookup.c (push_scope): Return scope that should be popped,
not a flag.
* decl.c (start_decl): Adjust.
(grokfndecl): Adjust scope push and pop.
* decl2.c (check_classfn): Likewise.
* parser.c (cp_parser_condition, cp_parser_conversion_function_id,
cp_parser_init_declarator, cp_parser_direct_declarator,
cp_parser_class_specifier, cp_parser_class_head,
cp_parser_lookup_name,
cp_parser_constructor_declarator_p): Likewise.
* pt.c (instantiate_class_template,
resolve_typename_type): Likewise.
testsuite:
PR c++/19030
* g++.dg/parse/crash22.C: New
From-SVN: r92946
2005-01-05 11:02:35 +01:00
|
|
|
2005-01-05 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
PR c++/19030
|
|
|
|
* cp-tree.h (start_decl): Take pointer to pushed scope, not bool.
|
|
|
|
* name-lookup.h (push_scope): Return pushed scope, not flag.
|
|
|
|
* name-lookup.c (push_scope): Return scope that should be popped,
|
|
|
|
not a flag.
|
|
|
|
* decl.c (start_decl): Adjust.
|
|
|
|
(grokfndecl): Adjust scope push and pop.
|
|
|
|
* decl2.c (check_classfn): Likewise.
|
|
|
|
* parser.c (cp_parser_condition, cp_parser_conversion_function_id,
|
|
|
|
cp_parser_init_declarator, cp_parser_direct_declarator,
|
|
|
|
cp_parser_class_specifier, cp_parser_class_head,
|
|
|
|
cp_parser_lookup_name,
|
|
|
|
cp_parser_constructor_declarator_p): Likewise.
|
|
|
|
* pt.c (instantiate_class_template,
|
|
|
|
resolve_typename_type): Likewise.
|
|
|
|
|
2005-01-03 18:03:00 +01:00
|
|
|
2005-01-03 Volker Reichelt <reichelt@igpm.rwth-aaachen.de>
|
|
|
|
|
|
|
|
PR c++/14136
|
|
|
|
* parser.c (cp_parser_unqualified_id): Do not issue error message
|
|
|
|
for typedef-name as destructor declarator when performing an
|
|
|
|
uncommitted tentative parse.
|
|
|
|
|
2005-01-01 17:15:23 +01:00
|
|
|
2005-01-01 Steven Bosscher <stevenb@suse.de>
|
|
|
|
|
|
|
|
PR middle-end/17544
|
|
|
|
* decl.c (finish_function): Fix comment. Annotate the compiler
|
|
|
|
generated return with the current file name and line 0.
|
|
|
|
|