2009-04-21 09:47:13 +02:00
|
|
|
2009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
|
|
|
|
|
|
|
|
PR 16202
|
|
|
|
* tree.c (lvalue_p_1): Use const_tree.
|
|
|
|
Use CONST_CAST_TREE to avoid warning.
|
|
|
|
(lvalue_p): Returns bool, receives const_tree.
|
|
|
|
|
2009-04-21 00:12:52 +02:00
|
|
|
2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
|
|
|
|
|
|
|
|
PR c++/13358
|
|
|
|
* parser.c (cp_parser_check_decl_spec): Drop redundant flags.
|
|
|
|
* error.c (pedwarn_cxx98): New.
|
|
|
|
* cp-tree.h (pedwarn_cxx98): Declare.
|
|
|
|
|
2009-04-20 23:13:08 +02:00
|
|
|
2009-04-20 Le-Chun Wu <lcwu@google.com>
|
|
|
|
|
|
|
|
PR c++/39803
|
|
|
|
* init.c (build_vec_init): Set TREE_NO_WARNING on the
|
|
|
|
compiler-generated INDIRECT_REF expression.
|
|
|
|
|
Fix enum conversions which are invalid in C++:
gcc/:
Fix enum conversions which are invalid in C++:
* auto-inc-dec.c (attempt_change): Change 0 to SET in function
call.
* calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function
call.
* cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
* dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
* dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function
call.
(dbxout_parms): Likewise.
* df-core.c (df_set_flags): Change changeable_flags parameter to
int.
(df_clear_flags): Likewise.
* df-problems.c (df_rd_bb_local_compute_process_def): Change
top_flag parameter to int.
(df_chain_create_bb_process_use): Likewise.
(df_chain_add_problem): Change chain_flags parameter to unsigned
int. Remove cast.
* df-scan.c (df_ref_create): Change ref_flags parameter to int.
(df_ref_create_structure, df_def_record_1): Likewise.
(df_defs_record, df_uses_record, df_get_call_refs): Likewise.
(df_notes_rescan): Change 0 to VOIDmode in function call.
(df_get_call_refs, df_insn_refs_collect): Likewise.
(df_bb_regs_collect): Likewise.
(df_entry_block_defs_collect): Likewise.
(df_exit_block_uses_collect): Likewise.
* df.h: Update declarations.
* double-int.c (double_int_divmod): Add cast to enum type.
* dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
* dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
(based_loc_descr): Likewise.
(loc_descriptor_from_tree_1): Change first_op and second_op to
enum dwarf_location_atom. Add cast to enum type.
* expmed.c (init_expmed): Change 0 to SET in function call.
* expr.c (init_expr_target): Change 0 to VOIDmode in function
call.
(expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
(do_store_flag): Likewise.
* fixed-value.h (struct fixed_value): Change mode to enum
machine_mode.
* function.c (assign_parms): Change 0 to VOIDmode in function
call.
* genautomata.c (insert_automaton_decl): Change 1 to INSERT in
function call.
(insert_insn_decl, insert_decl, insert_state): Likewise.
(automata_list_finish): Likewise.
* genrecog.c (process_define_predicate): Add cast to enum type.
* gensupport.c (init_predicate_table): Add cast to enum type.
* gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
function call.
(gimple_build_call_1, gimple_build_label): Likewise.
(gimple_build_goto, gimple_build_asm_1): Likewise.
(gimple_build_switch_1, gimple_build_cdt): Likewise.
* gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function
call.
(enum fallback): Rename from enum fallback_t.
(fallback_t): Typedef as int.
* gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
GSI_SAME_STMT in function call.
* ira.c (setup_class_subset_and_memory_move_costs): Add casts to
enum type.
(setup_reg_class_relations): Likewise.
(setup_reg_class_nregs): Change cl to int. Add casts to enum
type.
(setup_prohibited_class_mode_regs): Add cast to enum type.
(setup_prohibited_mode_move_regs): Likewise.
* ira-costs.c (record_reg_classes): Change rclass to enum
reg_class.
(record_address_regs): Change i to enum reg_class.
* lists.c (alloc_EXPR_LIST): Add cast to enum type.
* machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
(GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
(GET_MODE_2XWIDER_MODE): Likewise.
(GET_CLASS_NARROWEST_MODE): Likewise.
* omp-low.c (expand_omp_for): Add cast to enum type.
* optabs.c (debug_optab_libfuncs): Add casts to enum type.
* opts.c (enable_warning_as_error): Change kind to diagostic_t.
* postreload.c (reload_cse_simplify_operands): Change rclass local
to enum reg_class.
* predict.c (combine_predictions_for_insn): Change best_predictor
and predictor to enum br_predictor.
(combine_predictions_for_bb): Likewise.
(build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
use SET_PREDICT_EXPR_OUTCOME.
* real.c (real_arithmetic): Change icode to code in function
call.
* reginfo.c (init_move_cost): Add casts to enum type.
(init_reg_sets_1, init_fake_stack_mems): Likewise.
* regmove.c (regclass_compatible_p): Change class0 and class1 to
enum reg_class.
* reload.c (find_valid_class): Add casts to enum type.
(push_reload): Change 0 to NO_REGS in function call.
(find_reloads): Change this_alternative to array of enum
reg_class. Remove some now-unnecessary casts.
(make_memloc): Change 0 to VOIDmode in function call.
* reload1.c (reload): Change 0 to VOIDmode in function call.
(eliminate_regs_1, elimination_effects): Likewise.
(eliminate_regs_in_insn): Likewise.
(emit_input_reload_insns): Add cast to enum type.
(delete_output_reload): Change 0 to VOIDmode in function call.
* reorg.c (insn_sets_resource_p): Convert include_delayed_effects
to enum type in function call.
* tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
(SET_PREDICT_EXPR_OUTCOME): Define.
* tree-dump.c (get_dump_file_info): Change phase parameter to
int.
(get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
(dump_initialized_p, dump_flag_name, dump_end): Likewise.
(dump_function): Likewise.
* tree-dump.h: Update declarations.
* tree-pass.h: Update declarations.
* varasm.c (assemble_integer): Change mclass to enum mode_class.
* config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
enum type.
(arm_rtx_costs_1): Correct parenthesization.
(arm_rtx_costs): Add casts to enum type.
(adjacent_mem_locations): Reverse arguments to const_ok_for_op.
(vfp_emit_fstmd): Use add_rg_note.
(emit_multi_reg_push, emit_sfm): Likewise.
(thumb_set_frame_pointer): Likewise.
(arm_expand_prologue): Likewise.
(arm_regno_class): Change return type to enum reg_class.
(thumb1_expand_prologue): Use add_reg_note.
* config/arm/arm-protos.h (arm_regno_class): Update declaration.
* config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
in function call.
* config/arm/gentune.sh: Add cast to enum type.
* config/arm/arm-tune.md: Rebuild.
* config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
(ix86_split_fp_branch, predict_jump): Likewise.
(ix86_expand_multi_arg_builtin): Change sub_code from enum
insn_code to enum rtx_code.
(ix86_builtin_vectorized_function): Add cast to enum type.
* config/i386/i386.md (truncdfsf2): Change slot to enum
ix86_stack_slot.
(truncxf<mode>2, isinf<mode>2): Likewise.
* config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
enum type.
* config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
(spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
(insert_bundle_state): Change 1 to INSERT in function call.
(ia64_add_bundle_selector_before): Likewise.
* config/ia64/ia64.md (cpu attr): Add cast to enum type.
(save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
(restore_stack_nonlocal): Likewise.
* config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
function call.
* config/mips/mips.c (mips_binary_cost): Change 0 to SET in
function call.
(mips_rtx_costs): Likewise.
(mips_override_options): Add casts to enum type.
* config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
in function call.
* config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
(store_reg, set_reg_plus_d): Likewise.
(hppa_expand_prologue, hppa_profile_hook): Likewise.
* config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
cast to enum type.
(altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
function call.
(emit_unlikely_jump): Use add_reg_note.
(rs6000_emit_allocate_stack): Likewise.
(rs6000_frame_related, rs6000_emit_prologue): Likewise.
(output_toc): Change 1 to INSERT in function call.
(output_profile_hook): Change 0 to LCT_NORMAL in function call.
(rs6000_initialize_trampoline): Likewise.
(rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
function call.
* config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
(s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
(s390_expand_setmem, s390_expand_cmpmem): Likewise.
(save_gprs): Use add_reg_note.
(s390_emit_prologue): Likewise.
(s390_expand_builtin): Change 0 to EXPAND_NORMAL in function
call.
* config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
(sparc_fold_builtin): Add cast to enum type.
* config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
enum insn_code.
(spu_expand_prologue): Use add_reg_note.
(expand_builtin_args): Change 0 to EXPAND_NORMAL in function
call.
* c-parser.c (c_parser_attributes): Change VEC back to tree list.
(c_parser_postfix_expression_after_primary): Get VEC for list of
arguments. Get original types of arguments. Call
build_function_call_vec.
(cached_expr_list_1, cached_expr_list_2): New static variables.
(c_parser_expr_list): Change return type to VEC *. Add
p_orig_types parameter. Change all callers.
(c_parser_release_expr): New static function.
(c_parser_vec_to_tree_list): New static function.
* c-typeck.c (build_function_call): Rewrite to build a VEC and
call build_function_call_vec.
(build_function_call_vec): New function, based on old
build_function_call.
(convert_arguments): Remove nargs and argarray parameters. Change
values to a VEC. Add origtypes parameter.
(build_modify_expr): Add rhs_origtype parameter. Change all
callers.
(convert_for_assignment): Add origtype parameter. Change all
callers. If warn_cxx_compat, check for conversion to an enum
type when calling a function.
(store_init_value): Add origtype parameter. Change all callers.
(digest_init): Likewise.
(struct init_node): Add origtype field.
(add_pending_init): Add origtype parameter. Change all callers.
(output_init_element): Likewise.
(output_pending_init_elements): Pass origtype from init_node to
output_init_element.
(process_init_elemnt): Pass origtype from c_expr to
output_init_element.
(c_finish_return): Add origtype parameter. Change all callers.
* c-common.c (sync_resolve_size): Change params to VEC *. Change
caller.
(sync_resolve_params): Likewise.
(sync_resolve_return): Change params to first_param. Change
caller.
(resolve_overloaded_builtins): Change params to VEC *. Change
callers. Save first parameter around call to
build_function_call_vec.
* c-decl.c (finish_decl): Add origtype parameter. Change all
callers. Call build_function_call_vec rather than
build_function_call for cleanup.
* c-tree.h: Update declarations.
* c-common.h: Update declarations.
* stub-objc.c (objc_rewrite_function_call): Change parameter from
params to first_param.
* target.h (struct gcc_target): Change resolve_overloaded_builtin
params parameter from tree to void *.
* config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
Change arglist parameter to have type void *, and to be a pointer
to a VEC.
* config/rs6000/rs6000-protos.h
(altivec_resolve_overloaded_builtin): Update declaration.
* config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
fnargs parameter to have type void *, and to be a pointer to a
VEC. Call build_function_call_vec instead of
build_function_call.
* config/spu/spu-protos.h (spu_expand_builtin): Update
declaration.
gcc/cp/:
* typeck.c (build_function_call_vec): New function.
(cp_build_function_call): Only pass first parameter to
objc_rewrite_function_call.
(build_modify_expr): Add rhs_origtype parameter. Change all
callers.
* decl.c (finish_decl): Add origtype parameter. Change all
callers.
* semantics.c (finish_call_expr): Pass VEC to
resolve_overloaded_builtin.
gcc/objc:
* objc-act.c (objc_rewrite_function_call): Change parameter from
params to first_param. Change all callers.
gcc/testsuite:
* gcc.dg/Wcxx-compat-3.c: New testcase.
From-SVN: r146451
2009-04-20 21:35:00 +02:00
|
|
|
2009-04-20 Ian Lance Taylor <iant@google.com>
|
|
|
|
|
|
|
|
* typeck.c (build_function_call_vec): New function.
|
|
|
|
(cp_build_function_call): Only pass first parameter to
|
|
|
|
objc_rewrite_function_call.
|
|
|
|
(build_modify_expr): Add rhs_origtype parameter. Change all
|
|
|
|
callers.
|
|
|
|
* decl.c (finish_decl): Add origtype parameter. Change all
|
|
|
|
callers.
|
|
|
|
* semantics.c (finish_call_expr): Pass VEC to
|
|
|
|
resolve_overloaded_builtin.
|
|
|
|
|
2009-04-20 19:45:15 +02:00
|
|
|
2009-04-20 Ian Lance Taylor <iant@google.com>
|
|
|
|
|
|
|
|
* cp-tree.h (base_access): Change typedef to int.
|
|
|
|
* parser.c (cp_parser_omp_flush): Change 0 to OMP_CLAUSE_ERROR.
|
|
|
|
(cp_parser_omp_threadprivate): Likewise.
|
|
|
|
* pt.c (unify_pack_expansion): Add casts to enum type.
|
|
|
|
|
2009-04-19 13:04:13 +02:00
|
|
|
2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
|
|
|
|
|
|
|
|
PR c/32061
|
|
|
|
PR c++/36954
|
|
|
|
* call.c (build_new_op): Save the original codes of operands
|
|
|
|
before folding.
|
|
|
|
|
2009-04-18 22:23:05 +02:00
|
|
|
2009-04-18 Kazu Hirata <kazu@codesourcery.com>
|
|
|
|
|
|
|
|
* cp-tree.h: Remove the prototype for insert_block.
|
|
|
|
* decl.c (insert_block): Remove.
|
|
|
|
|
2009-04-16 19:14:36 +02:00
|
|
|
2009-04-16 Ian Lance Taylor <iant@google.com>
|
|
|
|
|
|
|
|
* cp-tree.h (enum tsubst_flags): Rename from enum tsubst_flags_t.
|
|
|
|
(tsubst_flags_t): Change typedef from enum type to int.
|
|
|
|
|
2009-04-20 23:13:08 +02:00
|
|
|
2009-04-16 Paolo Bonzini <bonzini@gnu.org>
|
2009-04-16 11:11:39 +02:00
|
|
|
|
|
|
|
* decl.c (check_initializer): Use TYPE_VECTOR_OPAQUE
|
|
|
|
instead of targetm.vector_opaque_p.
|
|
|
|
|
2009-04-15 19:55:50 +02:00
|
|
|
2009-04-15 Le-Chun Wu <lcwu@google.com>
|
|
|
|
|
|
|
|
PR c++/39551
|
|
|
|
* call.c (build_over_call): Set TREE_NO_WARNING on the
|
|
|
|
compiler-generated INDIRECT_REF expression.
|
|
|
|
* cvt.c (convert_to_void): Emit warning when stripping off
|
|
|
|
INDIRECT_REF.
|
|
|
|
|
2009-04-15 05:41:28 +02:00
|
|
|
2009-04-14 Diego Novillo <dnovillo@google.com>
|
|
|
|
|
|
|
|
* parser.c (cp_parser_type_specifier_seq): Move call to
|
|
|
|
invoke_plugin_callbacks ...
|
|
|
|
(cp_parser_type_specifier_seq): ... here.
|
|
|
|
|
2009-04-14 22:18:49 +02:00
|
|
|
2009-04-14 Le-Chun Wu <lcwu@google.com>
|
|
|
|
|
|
|
|
* Make-lang.in: Modify dependencies of files including plugin.h.
|
|
|
|
* decl.c (finish_function): Call invoke_plugin_callbacks.
|
|
|
|
* parser.c (cp_parser_type_specifier): Call invoke_plugin_callbacks.
|
|
|
|
|
2009-04-14 19:04:04 +02:00
|
|
|
2009-04-14 Jason Merrill <jason@redhat.com>
|
|
|
|
|
|
|
|
PR c++/39763
|
|
|
|
* name-lookup.c (pushdecl_maybe_friend): Avoid all warnings
|
|
|
|
about shadowing by tentative parms.
|
|
|
|
|
2009-04-13 22:55:37 +02:00
|
|
|
2009-04-13 Jason Merrill <jason@redhat.com>
|
2009-04-13 22:53:34 +02:00
|
|
|
|
|
|
|
PR c++/39480
|
|
|
|
* call.c (build_over_call): Don't call memcpy if the target is
|
|
|
|
the same as the source.
|
|
|
|
|
2009-04-13 20:54:40 +02:00
|
|
|
2009-04-13 Jason Merrill <jason@redhat.com>
|
|
|
|
|
|
|
|
PR c++/39750
|
|
|
|
* pt.c (uses_template_parms): Handle CONSTRUCTOR.
|
|
|
|
|
2009-04-13 06:04:58 +02:00
|
|
|
2009-04-12 Jason Merrill <jason@redhat.com>
|
|
|
|
|
|
|
|
PR c++/39742
|
|
|
|
* call.c (joust): Don't crash on variadic fn.
|
|
|
|
|
2009-04-10 20:56:07 +02:00
|
|
|
2009-04-10 Jason Merrill <jason@redhat.com>
|
|
|
|
|
|
|
|
PR c++/28301
|
|
|
|
* parser.c (cp_parser_skip_to_end_of_block_or_statement): Return
|
|
|
|
if we see a close brace without an open brace.
|
|
|
|
|
2009-04-10 16:30:48 +02:00
|
|
|
2008-04-10 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
* parser.c (cp_parser_class_specifier): Remove the unused
|
|
|
|
has_trailing_semicolon.
|
|
|
|
|
2009-04-10 14:47:58 +02:00
|
|
|
2009-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
|
|
|
|
|
|
|
|
PR c++/20118
|
|
|
|
* parser.c (cp_parser_check_template_parameters): Take a
|
|
|
|
cp_declarator parameter.
|
|
|
|
(cp_parser_elaborated_type_specifier): Update to
|
|
|
|
cp_parser_check_template_parameters.
|
|
|
|
(cp_parser_class_head): Likewise.
|
|
|
|
(cp_parser_check_declarator_template_parameters): Likewise.
|
|
|
|
(cp_parser_check_template_parameters): Handle first the non-error
|
|
|
|
conditions. Give more accurate diagnostics if a declarator is
|
|
|
|
given.
|
|
|
|
|
2009-04-08 18:08:15 +02:00
|
|
|
2009-04-08 Jason Merrill <jason@redhat.com>
|
|
|
|
|
|
|
|
PR c++/25185
|
|
|
|
* error.c (dump_aggr_type): Chase template typedefs if
|
|
|
|
-fno-pretty-templates.
|
|
|
|
|
2009-04-08 11:39:51 +02:00
|
|
|
2009-04-08 Dodji Seketeli <dodji@redhat.com>
|
|
|
|
|
|
|
|
PR c++/39637
|
|
|
|
* parser.c (cp_parser_enumerator_definition): Make sure the
|
|
|
|
initializer of the enumerator doesn't contain any bare parameter pack.
|
|
|
|
|
2009-04-08 05:44:48 +02:00
|
|
|
2009-04-07 Jason Merrill <jason@redhat.com>
|
|
|
|
|
|
|
|
PR c++/34691
|
|
|
|
* name-lookup.c (merge_functions): Keep multiple extern "C" functions.
|
|
|
|
* call.c (joust): Complain about mismatched default arguments
|
|
|
|
in extern "C" functions.
|
|
|
|
* class.c (resolve_address_of_overloaded_function): Handle multiple
|
|
|
|
extern "C" functions.
|
|
|
|
* pt.c (resolve_overloaded_unification): Likewise.
|
|
|
|
|
2009-04-07 19:48:52 +02:00
|
|
|
2009-04-07 Jason Merrill <jason@redhat.com>
|
|
|
|
|
|
|
|
PR c++/25185
|
|
|
|
* error.c (dump_function_decl): Don't pretty-print templates
|
|
|
|
if -fno-pretty-templates.
|
|
|
|
(count_non_default_template_args): Print all args if
|
|
|
|
-fno-pretty-templates.
|
|
|
|
|
2009-04-06 22:55:04 +02:00
|
|
|
2009-04-06 Jason Merrill <jason@redhat.com>
|
|
|
|
|
|
|
|
PR c++/35146
|
|
|
|
* pt.c (fn_type_unification): For DEDUCE_EXACT check that
|
|
|
|
the deduced template arguments give us the parameter types
|
|
|
|
we're looking for.
|
|
|
|
|
2009-04-05 21:30:35 +02:00
|
|
|
2009-04-05 Giovanni Bajo <giovannibajo@libero.it>
|
|
|
|
Jason Merrill <jason@redhat.com>
|
2009-04-05 21:29:02 +02:00
|
|
|
|
|
|
|
PR c++/14912
|
|
|
|
* error.c (count_non_default_template_args): New fn.
|
|
|
|
(dump_template_parms): Call it.
|
|
|
|
(dump_template_argument_list): Call it. Add parms parm.
|
|
|
|
(dump_template_argument): Adjust call to dump_template_argument_list.
|
|
|
|
(dump_type, dump_decl): Likewise.
|
|
|
|
(dump_template_bindings): Refactor logic.
|
|
|
|
|
2009-04-03 19:24:46 +02:00
|
|
|
2009-04-03 Jason Merrill <jason@redhat.com>
|
|
|
|
|
2009-04-04 21:19:30 +02:00
|
|
|
PR c++/25185
|
|
|
|
* error.c (dump_template_bindings): Look through typedefs in
|
|
|
|
typename results.
|
|
|
|
(dump_type) [TYPENAME_TYPE]: Print the typedef name if any.
|
|
|
|
(find_typenames_r): Also collect typedefs.
|
|
|
|
* pt.c (unify): Strip typedefs.
|
|
|
|
|
2009-04-03 19:24:46 +02:00
|
|
|
PR c++/39608
|
|
|
|
* semantics.c (finish_id_expression): Don't assume a dependent
|
|
|
|
member of the current instantiation isn't a valid integral
|
|
|
|
constant expression. Check dependent_scope_p.
|
|
|
|
* pt.c (dependent_scope_p): Check TYPE_P.
|
|
|
|
(tsubst_copy): If args is null, just return.
|
|
|
|
|
2009-04-02 23:39:00 +02:00
|
|
|
2009-04-02 Jason Merrill <jason@redhat.com>
|
|
|
|
|
|
|
|
PR c++/25185
|
|
|
|
* error.c (find_typenames, find_typenames_r): New fns.
|
|
|
|
(dump_function_decl): Call find_typenames.
|
|
|
|
(dump_template_bindings): Print typenames as well.
|
|
|
|
* pt.c (tsubst): Non-static.
|
|
|
|
* cp-tree.h: Declare it.
|
|
|
|
|
2009-04-02 11:24:19 +02:00
|
|
|
2009-04-02 Dodji Seketeli <dodji@redhat.com>
|
|
|
|
|
|
|
|
PR c++/26693
|
|
|
|
* decl2.c (grokfield): when a typedef appears in a
|
|
|
|
class, create the typedef variant type node for it.
|
|
|
|
(save_template_attributes): Creating typedef variant type node
|
|
|
|
here is now useless.
|
|
|
|
* decl.c (grokdeclarator): If the typedef'ed struct/class was
|
|
|
|
anonymous, set the proper type name to all its type variants.
|
|
|
|
(xref_basetypes) : Fixup the variant types after setting
|
|
|
|
TYPE_BINFO on REF.
|
|
|
|
* name-lookup.c (pushdecl_maybe_friend): Reuse the
|
|
|
|
set_underlying_type function to install typedef variant types.
|
|
|
|
* cp-tree.h (MEMBER_TYPES_NEEDING_ACCESS_CHECK): New template accessor
|
|
|
|
macro.
|
|
|
|
(append_type_to_template_for_access_check): New entry points.
|
|
|
|
* semantics.c (check_accessibility_of_qualified_id):
|
|
|
|
When a typedef that is a member of a class appears in a template,
|
|
|
|
add it to the template. It will be ...
|
|
|
|
* class.c (finish_struct_bits): Split type variant fixup into ...
|
|
|
|
(fixup_type_variants): A new entry point.
|
|
|
|
* pt.c (instantiate_class_template, instantiate_template ): ... access
|
|
|
|
checked at template instantiation time.
|
|
|
|
(resolve_type_name_type): The type name should be the name of the
|
|
|
|
main type variant.
|
|
|
|
(retrieve_specialization): Specializations of template typedefs aren't
|
|
|
|
to looked up in DECL_TEMPLATE_INSTANTIATIONS (tmpl).
|
|
|
|
(append_type_to_template_for_access_check): New entry point.
|
|
|
|
(tsubst_decl): For typedefs, build the variant type from the correct
|
|
|
|
original type.
|
|
|
|
(get_class_bindings): Fix function comment.
|
|
|
|
(perform_typedefs_access_check): New entry point.
|
|
|
|
|
2009-03-31 18:52:21 +02:00
|
|
|
2009-03-31 Jason Merrill <jason@redhat.com>
|
|
|
|
|
2009-04-01 05:34:30 +02:00
|
|
|
PR c++/34691
|
|
|
|
* name-lookup.c (pushdecl_maybe_friend): Diagnose mismatched
|
|
|
|
extern "C" declarations.
|
|
|
|
|
2009-03-31 23:50:03 +02:00
|
|
|
C++ DR 613
|
|
|
|
* semantics.c (finish_non_static_data_member): Allow such references
|
|
|
|
without an associated object in sizeof/decltype/alignof.
|
|
|
|
|
2009-03-31 21:13:15 +02:00
|
|
|
* ptree.c (cxx_print_decl): Pretty-print full name of
|
|
|
|
function/template.
|
|
|
|
(cxx_print_type): Pretty-print full name of class.
|
|
|
|
|
2009-03-31 21:06:17 +02:00
|
|
|
* decl.c (grokdeclarator): Reject pointer to qualified function
|
|
|
|
type.
|
|
|
|
|
|
|
|
PR c++/37806, core issue 547
|
2009-03-31 20:31:17 +02:00
|
|
|
* typeck.c (cp_apply_type_quals_to_decl): Don't apply any quals
|
|
|
|
to a typedef.
|
|
|
|
* tree.c (cp_build_qualified_type_real): Don't apply restrict to a
|
|
|
|
function type.
|
|
|
|
* decl.h (enum decl_context): Add TEMPLATE_TYPE_ARG.
|
|
|
|
* decl.c (groktypename): Add is_template_arg parameter.
|
|
|
|
(grokdeclarator): Allow function cv-quals on a template type arg.
|
|
|
|
* parser.c (cp_parser_new_type_id, cp_parser_type_id): Add
|
|
|
|
is_template_arg argument in calls to groktypename.
|
|
|
|
* cp-tree.h: Adjust prototype.
|
|
|
|
* error.c (dump_type_prefix, dump_type_suffix): Fix plain
|
|
|
|
FUNCTION_TYPE printing.
|
|
|
|
|
2009-03-31 18:52:21 +02:00
|
|
|
* mangle.c (write_expression): Mangle dependent name as
|
|
|
|
source-name.
|
2009-03-31 17:42:58 +02:00
|
|
|
|
|
|
|
PR c++/38030, 38850, 39070
|
|
|
|
* pt.c (type_dependent_expression_p_push): New fn.
|
|
|
|
(tsubst_copy_and_build) [CALL_EXPR]: Only do arg-dep lookup when the
|
|
|
|
substitution makes the call non-dependent. Preserve koenig_p.
|
|
|
|
* parser.c (cp_parser_postfix_expression): Only do arg-dep lookup
|
|
|
|
for non-dependent calls.
|
|
|
|
* semantics.c (finish_call_expr): Revert earlier changes.
|
|
|
|
* cp-tree.h: Revert change to finish_call_expr prototype.
|
|
|
|
|
re PR preprocessor/34695 (Preprocessor warning->error conversion from -Werror is silent)
PR preprocessor/34695
gcc:
* Makefile.in (c-opts.o): Depend on c-tree.h.
* c-common.c: Move down include of diagnostic.h.
(done_lexing, c_cpp_error): New.
* c-common.h (done_lexing): Declare.
* c-decl.c (c_write_global_declarations): Don't check cpp_errors
(parse_in).
* c-opts.c: Include c-tree.h.
(c_common_init_options): Set preprocessor error callback.
(c_common_handle_option): Do not set preprocessor
inhibit_warnings, warnings_are_errors, warn_system_headers,
pedantic_errors or inhibit_warnings flags.
(c_common_post_options): Do not check cpp_errors (parse_in).
(c_common_finish): Do not output dependencies if there were
errors. Do not check return value of cpp_finish.
* c-ppoutput.c (pp_file_change): Set input_location.
* c-tree.h (c_cpp_error): Declare.
* diagnostic.c (diagnostic_set_info_translated): Also initialize
override_column.
(diagnostic_build_prefix): Check override_column.
* diagnostic.h (diagnostic_info): Add override_column field.
(diagnostic_override_column): Define.
gcc/cp:
* cp-tree.h (cp_cpp_error): Remove.
* error.c (cp_cpp_error): Remove.
* parser.c (cp_lexer_new_main): Set done_lexing instead of
client_diagnostic and error callback.
gcc/fortran:
* cpp.c (cb_cpp_error): New.
(gfc_cpp_post_options): Don't set cpp_option->inhibit_warnings.
Don't check cpp_errors (cpp_in).
(gfc_cpp_init_0): Set cb->error.
gcc/testsuite:
* gcc.dg/builtin-redefine.c, gcc.dg/cpp/redef2.c,
gcc.dg/cpp/redef3.c, gcc.dg/cpp/trad/redef2.c: Use dg-message
instead of dg-warning for "previous definition" messages.
* gcc.dg/cpp/Wvariadic-1.c, gcc.dg/cpp/Wvariadic-3.c: Expect
"warnings being treated as errors" message.
* gcc.dg/fltconst-1.c: Use -fshow-column.
libcpp:
* makedepend.c: Remove.
* Makefile.in (makedepend_OBJS, makedepend$(EXEEXT)): Remove.
(all, clean, TAGS_SOURCES, include): Remove makedepend handling.
* directives.c (cpp_errors): Remove.
* errors.c (print_location, _cpp_begin_message, v_message):
Remove.
(cpp_error, cpp_error_with_line): Always use error callback.
(cpp_error, cpp_error_with_line, cpp_errno): Return bool.
* include/cpplib.h (cpp_options): Remove pedantic_errors,
inhibit_warnings, warn_system_headers, inhibit_errors,
warnings_are_errors, client_diagnostic.
(cpp_callbacks): Add extra arguments to error callback; make it
return bool.
(cpp_finish): Return void.
(cpp_destroy): Remove inaccurate comment about return value.
(cpp_errors, CPP_DL_EXTRACT, CPP_DL_WARNING_P): Remove.
(CPP_DL_NOTE): Define.
* include/line-map.h (linemap_print_containing_files): Remove.
* init.c (cpp_finish): Do not check for or return number of
errors.
* internal.h (cpp_reader): Remove errors field.
* line-map.c (linemap_print_containing_files): Remove.
* macro.c (_cpp_create_definition): Use CPP_DL_NOTE for message
about previous definition. Only emit it if previous diagnostic
was emitted.
From-SVN: r145263
2009-03-30 00:56:07 +02:00
|
|
|
2009-03-29 Joseph Myers <joseph@codesourcery.com>
|
|
|
|
|
|
|
|
PR preprocessor/34695
|
|
|
|
* cp-tree.h (cp_cpp_error): Remove.
|
|
|
|
* error.c (cp_cpp_error): Remove.
|
|
|
|
* parser.c (cp_lexer_new_main): Set done_lexing instead of
|
|
|
|
client_diagnostic and error callback.
|
|
|
|
|
2009-03-29 20:26:43 +02:00
|
|
|
2009-03-28 Paolo Bonzini <bonzini@gnu.org>
|
|
|
|
|
|
|
|
* cp/cp-objcp-common.h (LANG_HOOKS_STATICP): Remove.
|
|
|
|
* cp/cp-objcp-common.c (cxx_staticp): Remove.
|
|
|
|
* cp/cp-tree.h (cxx_staticp): Remove.
|
|
|
|
|
2009-03-28 18:23:08 +01:00
|
|
|
2009-03-28 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR c++/39554
|
|
|
|
* parser.c (cp_parser_postfix_expression): Don't call
|
|
|
|
warning_if_disallowed_function_p.
|
|
|
|
|
2009-03-27 23:47:27 +01:00
|
|
|
2009-03-27 Jan Hubicka <jh@suse.cz>
|
|
|
|
|
|
|
|
* except.c (choose_personality_routine): Set terminate_node to abort
|
|
|
|
for java exceptions.
|
|
|
|
|
2009-03-27 22:44:21 +01:00
|
|
|
2009-03-27 Dodji Seketeli <dodji@redhat.com>
|
|
|
|
Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR debug/37959
|
|
|
|
* cp-objcp-common.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
|
|
|
|
(cp_function_decl_explicit_p): New prototype.
|
|
|
|
* cp-objcp-common.c (cp_function_decl_explicit_p): New function.
|
|
|
|
|
2009-03-27 14:36:33 +01:00
|
|
|
2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
|
|
|
|
|
|
|
|
PR c++/38638
|
|
|
|
* parser.c (cp_parser_elaborated_type_specifier): If we have a
|
|
|
|
typename tag and don't have either a TYPE_DECL or a
|
|
|
|
TEMPLATE_ID_EXPR, set the type to NULL.
|
|
|
|
|
2009-03-27 14:17:37 +01:00
|
|
|
2009-03-27 Simon Martin <simartin@users.sourceforge.net>
|
|
|
|
|
|
|
|
PR c++/37647
|
|
|
|
* decl.c (grokdeclarator): Reject [con|de]stuctors in a non-class
|
|
|
|
scope.
|
|
|
|
|
2009-03-27 14:11:29 +01:00
|
|
|
2009-03-27 Simon Martin <simartin@users.sourceforge.net>
|
|
|
|
|
|
|
|
PR c++/29727
|
|
|
|
* decl.c (check_array_designated_initializer): Handle error_mark_node.
|
|
|
|
|
2009-03-27 13:52:52 +01:00
|
|
|
2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
|
|
|
|
|
|
|
|
PR c++/35652
|
|
|
|
* typeck.c (cp_pointer_sum): Adjust call to pointer_int_sum.
|
|
|
|
|
2009-03-26 16:17:26 +01:00
|
|
|
2009-03-26 Andrew Haley <aph@redhat.com>
|
|
|
|
|
|
|
|
PR C++/39380
|
|
|
|
* decl2.c (possibly_inlined_p): If java exceptions are in use
|
|
|
|
don't inline a decl unless it is explicitly marked inline.
|
|
|
|
* lex.c: (pragma_java_exceptions): New variable.
|
|
|
|
(handle_pragma_java_exceptions): Set pragma_java_exceptions.
|
|
|
|
* cp-tree.h (pragma_java_exceptions): Declare new variable.
|
|
|
|
|
2009-03-24 23:26:21 +01:00
|
|
|
2009-03-24 Jason Merrill <jason@redhat.com>
|
|
|
|
|
|
|
|
PR c++/28274
|
|
|
|
* name-lookup.c (pushdecl_maybe_friend): Check default args later.
|
|
|
|
|
2009-03-23 22:05:30 +01:00
|
|
|
2009-03-23 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR c/39495
|
|
|
|
* semantics.c (handle_omp_for_class_iterator): Swap cond operands and
|
|
|
|
code if iter is the second operand.
|
|
|
|
* parser.c (cp_parser_binary_expression): Add no_toplevel_fold_p
|
|
|
|
argument. If it is set, don't build the toplevel expression with
|
|
|
|
build_x_binary_op, but build2.
|
|
|
|
(cp_parser_assignment_expression, cp_parser_omp_for_incr): Adjust
|
|
|
|
callers.
|
|
|
|
(cp_parser_omp_for_cond): Don't assume the first operand of the
|
|
|
|
comparison must be decl.
|
|
|
|
|
2009-03-23 21:32:53 +01:00
|
|
|
2009-03-23 Jason Merrill <jason@redhat.com>
|
|
|
|
|
2009-03-23 22:13:34 +01:00
|
|
|
PR c++/37729
|
2009-03-23 22:03:01 +01:00
|
|
|
* pt.c (make_fnparm_pack): Split out from...
|
|
|
|
(instantiate_decl): ...here.
|
|
|
|
(tsubst_pack_expansion): Handle being called in a late-specified
|
|
|
|
return type.
|
|
|
|
|
2009-03-23 21:32:53 +01:00
|
|
|
PR c++/39526
|
|
|
|
* name-lookup.c (pushdecl_maybe_friend): Don't warn about shadowing
|
|
|
|
a parm with a parm.
|
|
|
|
|
2009-03-20 22:49:18 +01:00
|
|
|
2009-03-20 Jason Merrill <jason@redhat.com>
|
|
|
|
|
2009-03-21 21:15:41 +01:00
|
|
|
PR c++/28879
|
|
|
|
* parser.c (cp_parser_direct_declarator): In a template, wrap
|
|
|
|
non-constant expression in NOP_EXPR with TREE_SIDE_EFFECTS set.
|
|
|
|
* pt.c (tsubst): Preserve it in a partial instantiation.
|
|
|
|
(dependent_type_p_r): Don't check value_dependent_expression_p.
|
|
|
|
* decl.c (compute_array_index_type): Don't check
|
|
|
|
value_dependent_expression_p if TREE_SIDE_EFFECTS.
|
|
|
|
|
2009-03-20 22:49:18 +01:00
|
|
|
C++ core issue 703
|
|
|
|
* typeck2.c (check_narrowing): Don't complain about loss of
|
|
|
|
precision when converting a floating-point constant.
|
|
|
|
|
2009-03-19 16:34:00 +01:00
|
|
|
2009-03-19 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR c/39495
|
|
|
|
* parser.c (cp_parser_omp_for_cond): Don't check lhs if decl is NULL.
|
|
|
|
(cp_parser_omp_for_loop): Always use cp_parser_omp_for_cond.
|
|
|
|
|
2009-03-18 18:04:26 +01:00
|
|
|
2009-03-18 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
* parser.c (struct cp_token): Reorder fields for 64-bit hosts.
|
|
|
|
(eof_token): Adjust.
|
|
|
|
|
2009-03-18 15:56:45 +01:00
|
|
|
2009-03-18 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
PR c++/39425
|
|
|
|
* parser.c (cp_parser_explicit_specialization): Don't skip the
|
|
|
|
rest of the specialization when begin_specialization returns
|
|
|
|
false.
|
|
|
|
|
2009-03-18 00:31:18 +01:00
|
|
|
2009-03-17 Jason Merrill <jason@redhat.com>
|
|
|
|
|
|
|
|
* decl.c (grokfndecl): Set DECL_CONTEXT on parms.
|
|
|
|
(duplicate_decls): Adjust DECL_CONTEXT of newdecl's parms.
|
|
|
|
* pt.c (check_explicit_specialization): Likewise.
|
|
|
|
(tsubst_copy) [PARM_DECL]: Return a dummy parm if we don't have a
|
|
|
|
local specialization.
|
|
|
|
* tree.c (cp_tree_equal) [PARM_DECL]: Check type and index, not name.
|
|
|
|
* decl2.c (parm_index): New fn.
|
|
|
|
* semantics.c (finish_decltype_type): Don't use describable_type.
|
|
|
|
* mangle.c (write_expression): Likewise. Mangle ALIGNOF_EXPR.
|
|
|
|
Give a sorry for unsupported codes rather than crash. Mangle
|
|
|
|
conversions with other than 1 operand. New mangling for PARM_DECL.
|
|
|
|
* operators.def (ALIGNOF_EXPR): Mangle as "az".
|
|
|
|
|
2009-03-17 22:33:00 +01:00
|
|
|
2009-03-17 Jing Yu <jingyu@google.com>
|
|
|
|
|
|
|
|
PR middle-end/39378
|
|
|
|
* method.c (use_thunk): Change is_thunk from crtl to cfun.
|
|
|
|
|
2009-03-17 21:49:23 +01:00
|
|
|
2009-03-17 Paolo Carlini <paolo.carlini@oracle.com>
|
|
|
|
|
|
|
|
PR c++/39475
|
|
|
|
* semantics.c (check_trait_type): New.
|
|
|
|
(finish_trait_expr): Use it.
|
|
|
|
|
2009-03-17 18:49:28 +01:00
|
|
|
2009-03-17 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
2009-03-17 18:51:10 +01:00
|
|
|
* name-lookup.c (cp_emit_debug_info_for_using): Emit USING_STMTs
|
|
|
|
instead of calling imported_module_or_decl debug hook if
|
|
|
|
building_stmt_tree ().
|
|
|
|
* cp-gimplify.c (cp_gimplify_expr): Don't assert the first operand
|
|
|
|
is a NAMESPACE_DECL.
|
|
|
|
|
2009-03-17 18:52:08 +01:00
|
|
|
PR debug/37890
|
|
|
|
* name-lookup.c (do_namespace_alias): Don't call global_decl debug
|
|
|
|
hook at function scope.
|
|
|
|
|
2009-03-17 18:49:28 +01:00
|
|
|
PR debug/39471
|
|
|
|
* cp-gimplify.c (cp_gimplify_expr): Don't set DECL_NAME
|
|
|
|
on IMPORTED_DECL.
|
|
|
|
|
2009-03-09 20:34:10 +01:00
|
|
|
2009-03-09 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR c++/39371
|
|
|
|
* semantics.c (finish_switch_cond): Don't call get_unwidened.
|
|
|
|
* decl.c (finish_case_label): Pass SWITCH_STMT_TYPE as 3rd argument
|
|
|
|
instead of TREE_TYPE (cond).
|
|
|
|
|
2009-03-08 18:29:12 +01:00
|
|
|
2009-03-08 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
PR c++/39060
|
|
|
|
* parser.c (cp_parser_late_parsing_default_args): Continue
|
|
|
|
the loop when cp_parser_assignment_expression returns
|
|
|
|
error_mark_node.
|
|
|
|
|
2009-03-07 17:21:05 +01:00
|
|
|
2009-03-07 Jason Merrill <jason@redhat.com>
|
|
|
|
|
|
|
|
PR c++/39367
|
|
|
|
* init.c (build_new_1): Don't use a VLA type.
|
|
|
|
(build_vec_init): Handle getting a pointer for BASE.
|
|
|
|
|
2009-03-07 02:47:25 +01:00
|
|
|
2009-03-06 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
PR c++/37520
|
|
|
|
* cp-tree.h: Check NO_DOT_IN_LABEL before NO_DOLLAR_IN_LABEL
|
|
|
|
when mangling symbols.
|
|
|
|
|
2009-03-07 00:52:02 +01:00
|
|
|
2009-03-06 Paolo Carlini <paolo.carlini@oracle.com>
|
|
|
|
|
|
|
|
PR c++/33492
|
|
|
|
* error.c (dump_expr): Don't try to print THROW_EXPRs in full.
|
|
|
|
|
2009-03-06 10:10:46 +01:00
|
|
|
2009-03-06 Alexandre Oliva <aoliva@redhat.com>
|
|
|
|
|
|
|
|
* decl.c (record_builtin_java_type): Use canonicalized integer
|
|
|
|
types.
|
|
|
|
|
2009-03-04 19:42:17 +01:00
|
|
|
2009-03-04 Jason Merrill <jason@redhat.com>
|
|
|
|
|
2009-03-05 15:10:07 +01:00
|
|
|
PR c++/38908
|
|
|
|
* class.c (is_really_empty_class): New fn.
|
|
|
|
* cp-tree.h: Declare it.
|
|
|
|
* cp-objcp-common.c (cp_expr_size): Use it.
|
|
|
|
|
2009-03-05 03:49:13 +01:00
|
|
|
PR c++/13549
|
|
|
|
* semantics.c (perform_koenig_lookup): Handle TEMPLATE_ID_EXPR.
|
|
|
|
* parser.c (cp_parser_postfix_expression): Call it for
|
|
|
|
TEMPLATE_ID_EXPR.
|
|
|
|
* tree.c (is_overloaded_fn): Look through TEMPLATE_ID_EXPR.
|
|
|
|
(get_first_fn): Likewise.
|
|
|
|
|
2009-03-04 19:42:17 +01:00
|
|
|
PR c++/9634
|
|
|
|
PR c++/29469
|
|
|
|
PR c++/29607
|
2009-03-04 19:44:24 +01:00
|
|
|
Implement DR 224.
|
2009-03-04 19:42:17 +01:00
|
|
|
* decl.c (make_typename_type): Do look inside currently open classes.
|
|
|
|
* parser.c (cp_parser_lookup_name): Likewise.
|
|
|
|
(cp_parser_template_name): Likewise.
|
|
|
|
* pt.c (dependent_scope_p): New function.
|
|
|
|
* cp-tree.h: Declare it.
|
|
|
|
* class.c (currently_open_class): Return fast if T isn't a class.
|
|
|
|
|
2009-02-26 20:59:38 +01:00
|
|
|
2009-02-26 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
PR c++/37789
|
|
|
|
* parser.c (cp_parser_mem_initializer): Return error_mark_node
|
|
|
|
if cp_parser_mem_initializer_id returns error_mark_node.
|
|
|
|
|
2009-02-24 15:50:30 +01:00
|
|
|
2009-02-24 Richard Guenther <rguenther@suse.de>
|
|
|
|
|
|
|
|
PR c++/39242
|
|
|
|
* pt.c (instantiate_decl): Do not instantiate extern, non-inline
|
|
|
|
declared functions.
|
|
|
|
|
2009-02-23 23:34:50 +01:00
|
|
|
2009-02-23 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
PR c++/36411
|
|
|
|
* pt.c (coerce_template_template_parms): Return 0 if parameter
|
|
|
|
is error_mark_node.
|
|
|
|
|
2009-02-23 21:28:50 +01:00
|
|
|
2009-02-23 Jason Merrill <jason@redhat.com>
|
|
|
|
|
|
|
|
* pt.c (unify): Call maybe_adjust_types_for_deduction when
|
|
|
|
deducing from an initializer list.
|
|
|
|
|
2009-02-20 06:32:40 +01:00
|
|
|
2009-02-20 Jason Merrill <jason@redhat.com>
|
|
|
|
|
|
|
|
PR c++/39225
|
|
|
|
* decl.c (grokdeclarator): Handle ~identifier.
|
|
|
|
|
2009-02-19 22:15:12 +01:00
|
|
|
2009-02-19 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR target/39175
|
|
|
|
* decl2.c (determine_visibility): If visibility changed and
|
|
|
|
DECL_RTL has been already set, call make_decl_rtl to update symbol
|
|
|
|
flags.
|
|
|
|
|
2009-02-19 16:22:28 +01:00
|
|
|
2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
PR c++/39188
|
|
|
|
* cp-tree.h (maybe_commonize_var): New.
|
|
|
|
|
|
|
|
* decl.c (maybe_commonize_var): Make it extern.
|
|
|
|
|
|
|
|
* decl2.c (finish_anon_union): Call maybe_commonize_var.
|
|
|
|
|
2009-02-19 02:58:15 +01:00
|
|
|
2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
PR c++/39219
|
|
|
|
* parser.c (cp_parser_enum_specifier): Apply all attributes.
|
|
|
|
|
2009-02-18 22:01:03 +01:00
|
|
|
2009-02-18 Jason Merrill <jason@redhat.com>
|
|
|
|
|
|
|
|
* cfns.h: Tweak pathname for cfns.gperf.
|
|
|
|
|
2009-02-13 20:14:07 +01:00
|
|
|
2009-02-13 Jason Merrill <jason@redhat.com>
|
|
|
|
|
|
|
|
PR c++/39070
|
|
|
|
* semantics.c (finish_call_expr): Change koenig_p parm to int.
|
|
|
|
If -1, don't set KOENIG_LOOKUP_P but do keep hidden candidates.
|
|
|
|
* cp-tree.h: Adjust prototype.
|
|
|
|
* pt.c (tsubst_copy_and_build) [CALL_EXPR]: Pass -1.
|
|
|
|
|
2009-02-12 23:40:37 +01:00
|
|
|
2009-02-12 Jason Merrill <jason@redhat.com>
|
|
|
|
|
|
|
|
PR c++/38950
|
|
|
|
* pt.c (unify)[TEMPLATE_PARM_INDEX]: Convert to the tsubsted type.
|
|
|
|
|
2009-02-11 23:38:37 +01:00
|
|
|
2009-02-11 Jason Merrill <jason@redhat.com>
|
|
|
|
|
2009-02-12 03:01:07 +01:00
|
|
|
PR c++/39153
|
|
|
|
* decl2.c (cp_write_global_declarations):
|
|
|
|
Check DECL_DEFAULTED_FN, not DECL_ARTIFICIAL.
|
|
|
|
|
2009-02-11 23:38:37 +01:00
|
|
|
PR c++/30111
|
|
|
|
* init.c (build_value_init_noctor): Split out from...
|
|
|
|
(build_value_init): ...here.
|
|
|
|
(expand_aggr_init_1): Handle value-initialization.
|
|
|
|
* cp-tree.h: Add declaration.
|
|
|
|
* class.c (type_has_user_provided_constructor):
|
|
|
|
Handle non-class arguments.
|
|
|
|
|
2009-02-11 06:23:02 +01:00
|
|
|
2009-02-10 Jason Merrill <jason@redhat.com>
|
|
|
|
|
2009-02-11 06:23:38 +01:00
|
|
|
PR c++/38649
|
|
|
|
* class.c (defaultable_fn_p): Handle ... properly.
|
|
|
|
|
2009-02-11 06:23:02 +01:00
|
|
|
PR c++/36744
|
|
|
|
* tree.c (lvalue_p_1): Condition rvalue ref handling on
|
|
|
|
treat_class_rvalues_as_lvalues, too.
|
|
|
|
|
2009-02-10 22:47:12 +01:00
|
|
|
2009-02-10 Paolo Carlini <paolo.carlini@oracle.com>
|
|
|
|
|
|
|
|
PR c++/34397
|
|
|
|
* typeck.c (build_x_array_ref): New.
|
|
|
|
* cp-tree.h: Declare it.
|
|
|
|
* pt.c (tsubst_copy_and_build): Use it for case ARRAY_REF.
|
|
|
|
|
2009-02-09 22:46:18 +01:00
|
|
|
2009-02-09 Jason Merrill <jason@redhat.com>
|
|
|
|
|
|
|
|
PR c++/39109
|
|
|
|
* semantics.c (simplify_aggr_init_expr): Do zero-initialization here.
|
|
|
|
* init.c (build_value_init): Not here. Don't build a TARGET_EXPR.
|
|
|
|
* tree.c (get_target_expr): Handle AGGR_INIT_EXPR.
|
|
|
|
* cp-gimplify.c (cp_gimplify_init_expr): Remove special handling
|
|
|
|
for build_value_init TARGET_EXPR.
|
|
|
|
* cp-tree.h (AGGR_INIT_ZERO_FIRST): New macro.
|
|
|
|
|
2009-02-07 03:05:04 +01:00
|
|
|
2009-02-06 Paolo Carlini <paolo.carlini@oracle.com>
|
|
|
|
|
|
|
|
PR c++/35147
|
|
|
|
PR c++/37737
|
|
|
|
* cp-tree.h (TMPL_ARGS_HAVE_MULTIPLE_LEVELS): Check TREE_VEC_LENGTH.
|
|
|
|
|
2009-02-04 17:50:22 +01:00
|
|
|
2009-02-04 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR c++/39095
|
|
|
|
* operators.def: Use COMPONENT_REF code for ->/pt operator again,
|
|
|
|
remove ./dt operator.
|
|
|
|
* mangle.c (write_expression): Handle COMPONENT_REF after handling
|
|
|
|
ADDR_EXPR, for COMPONENT_REF without ARROW_EXPR inside of it
|
|
|
|
write_string ("dt") instead of using operators.def.
|
|
|
|
|
2009-02-04 00:09:11 +01:00
|
|
|
2009-02-03 Jason Merrill <jason@redhat.com>
|
|
|
|
|
|
|
|
* typeck.c (cp_build_unary_op): Only complain about taking address
|
|
|
|
of main if pedantic.
|
|
|
|
|
2009-02-03 18:23:11 +01:00
|
|
|
2009-02-03 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
2009-02-03 18:26:28 +01:00
|
|
|
PR inline-asm/39059
|
|
|
|
* parser.c (cp_parser_primary_expression): Reject FIXED_CSTs.
|
|
|
|
|
2009-02-03 18:23:11 +01:00
|
|
|
PR c++/39056
|
|
|
|
* typeck2.c (digest_init_r): Don't call process_init_constructor
|
|
|
|
for COMPLEX_TYPE.
|
|
|
|
|
2009-02-03 17:26:28 +01:00
|
|
|
2009-02-03 Paolo Bonzini <bonzini@gnu.org>
|
|
|
|
|
|
|
|
PR c++/36897
|
|
|
|
* pt.c (convert_nontype_argument_function): Expect expr to be an
|
|
|
|
ADDR_EXPR.
|
|
|
|
|
|
|
|
PR c++/37314
|
|
|
|
* typeck.c (merge_types): Call resolve_typename_type if only
|
|
|
|
one type is a typename.
|
|
|
|
|
2009-02-02 19:38:10 +01:00
|
|
|
2009-02-02 Jason Merrill <jason@redhat.com>
|
|
|
|
|
|
|
|
PR c++/39054
|
|
|
|
* parser.c (cp_parser_unqualified_id): Don't wrap error_mark_node
|
|
|
|
in BIT_NOT_EXPR.
|
|
|
|
|
2009-02-02 01:41:52 +01:00
|
|
|
2009-02-01 Paolo Carlini <paolo.carlini@oracle.com>
|
|
|
|
|
|
|
|
PR c++/39053
|
|
|
|
* parser.c (cp_parser_pure_specifier): If there are no tokens left
|
|
|
|
do not call cp_lexer_consume_token.
|
|
|
|
|
2009-01-30 17:17:30 +01:00
|
|
|
2009-01-30 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR c++/39028
|
|
|
|
* parser.c (cp_parser_already_scoped_statement): Handle __label__
|
|
|
|
declarations.
|
|
|
|
|
2009-01-30 16:03:10 +01:00
|
|
|
2009-01-30 Paolo Carlini <paolo.carlini@oracle.com>
|
|
|
|
|
|
|
|
PR c++/33465
|
|
|
|
* error.c (dump_expr): Handle FIX_TRUNC_EXPR and FLOAT_EXPR.
|
|
|
|
|
|
|
|
2009-01-30 Paolo Carlini <paolo.carlini@oracle.com>
|
|
|
|
|
|
|
|
PR c++/38655
|
|
|
|
* error.c (dump_type_prefix, dump_type_suffix): Handle FIXED_POINT_TYPE.
|
|
|
|
|
2009-01-29 18:02:52 +01:00
|
|
|
2009-01-29 Paolo Carlini <paolo.carlini@oracle.com>
|
|
|
|
|
|
|
|
* typeck.c (invalid_nonstatic_memfn_p): Use
|
|
|
|
DECL_NONSTATIC_MEMBER_FUNCTION_P.
|
|
|
|
|
2009-01-27 20:47:28 +01:00
|
|
|
2009-01-27 Paolo Carlini <paolo.carlini@oracle.com>
|
|
|
|
|
|
|
|
PR c++/37554
|
|
|
|
* call.c (build_over_call): If convert_for_arg_passing returns
|
|
|
|
error_mark_node unconditionally return it.
|
|
|
|
|
2009-01-23 07:29:54 +01:00
|
|
|
2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
|
|
|
|
|
|
|
|
* class.c (check_field_decls): Also inherit packed for bitfields
|
|
|
|
regardless of their type.
|
|
|
|
|
2009-01-22 08:15:41 +01:00
|
|
|
2009-01-22 Dodji Seketeli <dodji@redhat.com>
|
|
|
|
|
|
|
|
PR c++/38930
|
|
|
|
* decl2.c (grokfield): Reverting changes of PR c++/26693
|
|
|
|
(save_template_attributes): Likewise.
|
|
|
|
* decl.c (grokdeclarator): Likewise.
|
|
|
|
* name-lookup.c (pushdecl_maybe_friend): Likewise.
|
|
|
|
* cp-tree.h (MEMBER_TYPES_NEEDING_ACCESS_CHECK): Likewise.
|
|
|
|
(append_type_to_template_for_access_check): Likewise.
|
|
|
|
* semantics.c (check_accessibility_of_qualified_id): Likewise.
|
|
|
|
* pt.c (instantiate_class_template, instantiate_template ): Likewise.
|
|
|
|
(tsubst): Likewise.
|
|
|
|
(resolve_type_name_type): Likewise.
|
|
|
|
(append_type_to_template_for_access_check): Likewise.
|
|
|
|
|
2009-01-21 17:14:49 +01:00
|
|
|
2009-01-21 Dodji Seketeli <dodji@redhat.com>
|
|
|
|
|
|
|
|
PR c++/26693
|
|
|
|
* decl2.c (grokfield): when a typedef appears in a
|
|
|
|
class, create the typedef variant type node for it.
|
|
|
|
(save_template_attributes): Creating typedef variant type node
|
|
|
|
here is now useless.
|
|
|
|
* decl.c (grokdeclarator): If the typedef'ed struct/class was
|
|
|
|
anonymous, set the proper type name to all its type variants.
|
|
|
|
* name-lookup.c (pushdecl_maybe_friend): Reuse the
|
|
|
|
set_underlying_type function to install typedef variant types.
|
|
|
|
* cp-tree.h (MEMBER_TYPES_NEEDING_ACCESS_CHECK): New template accessor
|
|
|
|
macro.
|
|
|
|
(append_type_to_template_for_access_check): New entry points.
|
|
|
|
* semantics.c (check_accessibility_of_qualified_id):
|
|
|
|
When a typedef that is a member of a class appears in a template,
|
|
|
|
add it to the template. It will be ...
|
|
|
|
* pt.c (instantiate_class_template, instantiate_template ): ... access
|
|
|
|
checked at template instantiation time.
|
|
|
|
(tsubst): Handle the case of being called with NULL args.
|
|
|
|
(resolve_type_name_type): The type name should be the name of the
|
|
|
|
main type variant.
|
|
|
|
(append_type_to_template_for_access_check): New entry point.
|
|
|
|
|
2009-01-19 23:50:43 +01:00
|
|
|
2009-01-19 Jason Merrill <jason@redhat.com>
|
|
|
|
|
|
|
|
PR c++/23287
|
|
|
|
* parser.c (cp_parser_unqualified_id): In a template,
|
|
|
|
accept ~identifier.
|
|
|
|
* typeck.c (lookup_destructor): Handle IDENTIFIER_NODE.
|
|
|
|
|
2009-01-16 19:35:28 +01:00
|
|
|
2009-01-16 Jason Merrill <jason@redhat.com>
|
|
|
|
|
2009-01-16 23:36:32 +01:00
|
|
|
PR c++/38877
|
|
|
|
* tree.c (lvalue_p_1): Allow non-fields in COMPONENT_REF.
|
|
|
|
* init.c (build_new): Don't call describable_type unless we
|
|
|
|
have an auto.
|
|
|
|
|
2009-01-16 23:36:11 +01:00
|
|
|
PR c++/29470
|
|
|
|
* pt.c (tsubst_decl) [USING_DECL]: Propagate access flags.
|
|
|
|
|
2009-01-16 19:35:28 +01:00
|
|
|
PR c++/38579
|
|
|
|
* search.c (protected_accessible_p): N doesn't vary.
|
|
|
|
|
2009-01-16 06:04:26 +01:00
|
|
|
2009-01-15 Jason Merrill <jason@redhat.com>
|
|
|
|
|
|
|
|
PR c++/38850
|
|
|
|
* pt.c (tsubst_copy_and_build): Tell finish_call_expr to
|
|
|
|
accept hidden friends.
|
|
|
|
|
2009-01-15 23:10:24 +01:00
|
|
|
2009-01-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
|
|
|
|
|
|
|
|
PR C++/29388
|
|
|
|
* decl.c (grokdeclarator): Check for a non namespace/class context.
|
|
|
|
|
2009-01-15 19:14:32 +01:00
|
|
|
2009-01-15 Jason Merrill <jason@redhat.com>
|
|
|
|
|
|
|
|
PR c++/36334
|
|
|
|
PR c++/37646
|
|
|
|
* tree.c (lvalue_p_1): Handle BASELINK. A COMPONENT_REF to
|
|
|
|
a function isn't necessarily an lvalue. Take tree, not const_tree.
|
|
|
|
(lvalue_p, real_lvalue_p): Take tree, not const_tree.
|
|
|
|
* typeck.c (lvalue_or_else): Likewise.
|
|
|
|
* cp-tree.h: Adjust prototypes.
|
|
|
|
|
2009-01-15 19:07:46 +01:00
|
|
|
2009-01-15 Steve Ellcey <sje@cup.hp.com>
|
|
|
|
|
|
|
|
PR c++/38357
|
|
|
|
* pt.c (tsubst): Check for NULL args.
|
|
|
|
|
2009-01-15 14:01:36 +01:00
|
|
|
2009-01-15 Dodji Seketeli <dodji@redhat.com>
|
|
|
|
|
|
|
|
PR c++/38636
|
|
|
|
* name-lookup.c (pushtag): Don't create members to types that are not
|
|
|
|
being created.
|
|
|
|
|
2009-01-14 14:00:21 +01:00
|
|
|
2009-01-14 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
PR c++/37862
|
|
|
|
* parser.c: Pass cp_id_kind computed in
|
|
|
|
cp_parser_postfix_dot_deref_expression to
|
|
|
|
cp_parser_primary_expression.
|
|
|
|
|
2009-01-13 19:11:50 +01:00
|
|
|
2009-01-13 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR c++/38795
|
|
|
|
* tree.c (cp_walk_subtrees): Handle REINTERPRET_CAST_EXPR,
|
|
|
|
STATIC_CAST_EXPR, CONST_CAST_EXPR and DYNAMIC_CAST_EXPR the same
|
|
|
|
as CAST_EXPR.
|
|
|
|
|
2009-01-13 02:23:34 +01:00
|
|
|
2009-01-12 Jason Merrill <jason@redhat.com>
|
|
|
|
Steve Ellcey <sje@cup.hp.com>
|
|
|
|
|
|
|
|
PR c++/35109
|
|
|
|
* name-lookup.c (lookup_name_real): Keep looking past a hidden
|
|
|
|
binding.
|
|
|
|
|
2009-01-12 23:47:49 +01:00
|
|
|
2009-01-12 Dodji Seketeli <dodji@redhat.com>
|
|
|
|
|
|
|
|
PR c++/36019
|
|
|
|
* pt.c (parameter_of_template_p): New function.
|
|
|
|
* cp-tree.h: Declare it.
|
|
|
|
* name-lookup.c (binding_to_template_parms_of_scope_p): New
|
|
|
|
function.
|
|
|
|
(outer_binding): Take template parameters in account when looking for
|
|
|
|
a name binding.
|
|
|
|
|
2009-01-12 22:07:46 +01:00
|
|
|
2009-01-12 Jason Merrill <jason@redhat.com>
|
|
|
|
|
|
|
|
PR c++/31488
|
|
|
|
* tree.c (pod_type_p): Return 1 for structs created by the back end.
|
|
|
|
|
2009-01-12 16:43:22 +01:00
|
|
|
2009-01-12 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
2009-01-12 20:44:33 +01:00
|
|
|
PR c/32041
|
|
|
|
* parser.c (cp_parser_builtin_offsetof): Allow `->' in
|
|
|
|
offsetof member-designator, handle it as `[0].'.
|
|
|
|
|
2009-01-12 16:43:22 +01:00
|
|
|
PR c++/38794
|
|
|
|
* decl.c (start_function): If grokdeclarator hasn't returned
|
|
|
|
FUNCTION_DECL nor error_mark_node, issue diagnostics.
|
|
|
|
|
2009-01-11 22:14:51 +01:00
|
|
|
2009-01-11 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR c++/36254
|
|
|
|
* cp-gimplify.c (genericize_if_stmt): Renamed from ...
|
|
|
|
(gimplify_if_stmt): ... this.
|
|
|
|
(cp_gimplify_expr): Don't handle IF_STMT here.
|
|
|
|
(cp_genericize_r): Call genericize_if_stmt for IF_STMT.
|
|
|
|
|
2009-01-10 12:48:06 +01:00
|
|
|
2009-01-10 Andrew Pinski <pinskia@gmail.com>
|
|
|
|
|
2009-01-10 12:49:04 +01:00
|
|
|
PR c++/38648
|
|
|
|
* typeck.c (cp_build_modify_expr): Check for NULL current_function_decl.
|
|
|
|
|
2009-01-10 12:48:06 +01:00
|
|
|
PR c++/36695
|
|
|
|
* typeck2.c (build_functional_cast): Check for reference type and NULL
|
|
|
|
PARMS.
|
|
|
|
|
2009-01-09 18:29:34 +01:00
|
|
|
2009-01-09 Steve Ellcey <sje@cup.hp.com>
|
|
|
|
|
|
|
|
* typeck.c (cp_build_unary_op): Check for ERROR_MARK.
|
|
|
|
|
2009-01-09 17:51:55 +01:00
|
|
|
2009-01-09 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR c++/35335
|
|
|
|
* error.c (dump_expr): Handle EXPR_STMT like BIND_EXPR.
|
|
|
|
|
2009-01-09 15:45:44 +01:00
|
|
|
2009-01-09 John F. Carr <jfc@mit.edu>
|
|
|
|
|
|
|
|
PR c++/37877
|
|
|
|
* parser.c (cp_parser_class_specifier): Clear
|
|
|
|
parser->in_unbraced_linkage_specification_p while parsing class
|
|
|
|
specifiers.
|
|
|
|
|
2009-01-08 01:23:48 +01:00
|
|
|
2009-01-07 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
PR c++/38725
|
|
|
|
* semantics.c (finish_goto_stmt): Convert destination to
|
|
|
|
void *.
|
|
|
|
|
2009-01-07 21:43:01 +01:00
|
|
|
2009-01-06 Jason Merrill <jason@redhat.com>
|
|
|
|
|
|
|
|
PR c++/35297
|
|
|
|
PR c++/35477
|
|
|
|
PR c++/35784
|
|
|
|
PR c++/36846
|
|
|
|
PR c++/38276
|
|
|
|
* pt.c (check_default_tmpl_args): Don't complain about
|
|
|
|
out-of-order parameter packs in the enclosing class
|
|
|
|
or parameter packs after default args.
|
|
|
|
(coerce_template_parms): If we have more than one
|
|
|
|
parameter pack, don't flatten argument packs.
|
|
|
|
(template_args_equal): Handle argument packs.
|
|
|
|
(comp_template_args): Don't flatten argument packs.
|
|
|
|
(check_instantiated_arg): Split out from...
|
|
|
|
(check_instantiated_args): Here. Handle arg packs.
|
|
|
|
(convert_template_argument): Just check that nontype argument
|
|
|
|
packs have the right type.
|
|
|
|
|
2009-01-05 23:41:37 +01:00
|
|
|
2009-01-05 Dodji Seketeli <dodji@redhat.com>
|
|
|
|
|
|
|
|
PR c++/38472
|
|
|
|
* typeck.c (type_after_usual_arithmetic_conversions): Fix a typo.
|
|
|
|
|
2009-01-05 18:52:18 +01:00
|
|
|
2009-01-05 Jason Merrill <jason@redhat.com>
|
|
|
|
|
2009-01-06 04:27:39 +01:00
|
|
|
PR c++/38698
|
|
|
|
* typeck2.c (process_init_constructor_union): Handle union with
|
|
|
|
no fields.
|
|
|
|
|
|
|
|
* mangle.c (write_expression): Remove mangling for zero-operand
|
|
|
|
casts.
|
|
|
|
|
2009-01-05 18:52:18 +01:00
|
|
|
PR c++/38701
|
|
|
|
* decl.c (cp_finish_decl): Clear DECL_INITIAL for invalid
|
|
|
|
defaulting.
|
|
|
|
|
|
|
|
PR c++/38702
|
|
|
|
* class.c (defaultable_fn_p): Only operator== can be a copy
|
|
|
|
assignment operator.
|
|
|
|
|
2009-01-03 01:19:55 +01:00
|
|
|
2009-01-02 Jason Merrill <jason@redhat.com>
|
|
|
|
|
|
|
|
PR c++/38698
|
|
|
|
* typeck2.c (process_init_constructor_union): Handle excess
|
|
|
|
initializers.
|
|
|
|
(process_init_constructor_record): Likewise.
|
|
|
|
|
|
|
|
PR c++/38684
|
|
|
|
* typeck2.c (digest_init_r): Don't use process_init_constructor
|
|
|
|
for non-aggregate classes.
|