gcc/ 2010-06-04 Shujing Zhao * fold-const.c (fold_comparison): Remove redundant parenthesis. (fold_undefer_overflow_warnings): Pass message variable to diagnostic functions directly. * gcc.c (do_spec_1): Likewise. * loop-iv.c (get_simple_loop_desc): Likewise. * tree-vrp.c (vrp_evaluate_conditional): Likewise. * tree-ssa-loop-niter.c (number_of_iterations_exit): Likewise. * rtl-error.c (_fatal_insn): Likewise. * final.c (output_operand_lossage): Likewise. * toplev.c (crash_signal): Likewise. * tree-inline.c (expand_call_inline): Pass translated return value of cgraph_inline_failed_string to diagnostic function. gcc/cp/ 2010-06-04 Shujing Zhao * cp-tree.h (expr_list): New type. (impl_conv_rhs): New type. (build_x_compound_expr_from_list, convert_for_initialization): Adjust prototype. (typeck.c (convert_arguments): Use impl_conv_rhs and emit the diagnostics for easy translation. Change caller. (convert_for_initialization): Use impl_conv_rhs. (build_x_compound_expr_from_list): Use expr_list and emit the diagnostics for easy translation. Change caller. (cp_build_unary_op): Pass message variable to error directly. * decl.c (bad_spec): New enum. (bad_specifiers): Use it and emit the diagnostics for easy translation. Change caller. * pt.c (coerce_template_parms): Put the diagnostics in full sentence.