1 2010-03-03 Jason Merrill <jason@redhat.com>
4 * mangle.c: Include cgraph.h.
5 (mangle_decl): If the mangled name will change in a later
6 ABI version, make the later mangled name an alias.
7 * method.c (make_alias_for): Copy DECL_ARGUMENTS.
8 * Make-lang.in (mangle.o): Depend on cgraph.h.
9 * method.c (make_alias_for): Handle VAR_DECL, too.
10 * decl2.c (vague_linkage_p): Rename from vague_linkage_fn_p.
11 * tree.c (no_linkage_check): Adjust.
12 * decl.c (maybe_commonize_var): Adjust.
15 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
17 * pt.c (redeclare_class_template): Use error_n and inform_n.
19 2010-02-27 Mark Mitchell <mark@codesourcery.com>
22 * cp-tree.h (push_tinst_level): Declare.
23 (pop_tinst_level): Likewise.
24 * pt.c (push_tinst_level): Give it external linkage.
25 (pop_tinst_level): Likewise.
26 * mangle.c (mangle_decl_string): Set the source location to that
27 of the decl while mangling.
29 2010-02-27 Simon Martin <simartin@users.sourceforge.net>
32 * pt.c (redeclare_class_template): Return false if there are erroneous
35 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
37 * pt.c (push_tinst_level): Replace -ftemplate-depth- with
40 2010-02-24 Jason Merrill <jason@redhat.com>
43 * mangle.c (write_type): Give -Wabi warning for old vector mangling.
45 * class.c (layout_class_type): Don't give -Wabi warning for a bug
46 in a previous ABI version.
48 2010-02-23 Jason Merrill <jason@redhat.com>
51 * typeck2.c (digest_init_r): Accept value init of array.
53 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
56 * typeck.c (convert_arguments): Update error message.
58 2010-02-22 Mike Stump <mikestump@comcast.net>
61 * decl.c (duplicate_decls): Merge DECL_PRESERVE_P.
63 2010-02-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
66 * error.c (print_instantiation_partial_context_line): New.
67 (print_instantiation_partial_context): Print at most 12 contexts,
68 skip the rest with a message.
70 2010-02-21 Dodji Seketeli <dodji@redhat.com>
73 * pt.c (lookup_template_class): Better support of specialization
74 of member of class template implicit instantiation.
76 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
79 * call.c (conversion_null_warnings): Replace -Wconversion with
81 * cvt.c (build_expr_type_conversion): Likewise.
83 2010-02-18 Jason Merrill <jason@redhat.com>
86 * class.c (create_vtable_ptr): Set DECL_PACKED if type is packed.
89 * typeck.c (cp_build_binary_op): Adapt mixed complex/non handling from
91 * cp-tree.h (WANT_VECTOR_OR_COMPLEX): Rename from WANT_VECTOR.
92 * cvt.c (build_expr_type_conversion): Allow COMPLEX_TYPE.
95 * semantics.c (finish_goto_stmt): Don't call decay_conversion.
99 * pt.c (tsubst_qualified_id): Do normal lookup in non-dependent scope.
100 (maybe_update_decl_type): New fn.
101 * parser.c (cp_parser_init_declarator): Use it.
104 * semantics.c (begin_class_definition): Don't crash on unnamed ns.
106 2010-02-17 Jason Merrill <jason@redhat.com>
109 * call.c (build_over_call): Don't create zero-sized assignments.
110 * cp-gimplify.c (cp_genericize_r): Don't remove them here.
111 * cp-objcp-common.c (cp_expr_size): Remove.
112 * cp-tree.h: Remove prototype.
115 * name-lookup.c (set_decl_namespace): Don't copy DECL_CONTEXT if the
116 decl we looked up doesn't match.
119 * cp-gimplify.c (cp_gimplify_expr) [INIT_EXPR]: Return if we don't
120 have an INIT_EXPR anymore.
123 * pt.c (convert_nontype_argument): Change assert to test.
125 2010-02-16 Jason Merrill <jason@redhat.com>
127 * cp-gimplify.c (cp_gimplify_expr): Fix error recovery.
130 * cp-gimplify.c (cp_gimplify_expr) [MODIFY_EXPR]: Use
131 VIEW_CONVERT_EXPR for conversions between structural equality types
132 that the back end can't tell are the same.
135 * tree.c (build_cplus_array_type): Set TYPE_MAIN_VARIANT to strip
136 cv-quals from element here.
137 (cp_build_qualified_type_real): Not here. Preserve typedef name.
139 2010-02-14 Jason Merrill <jason@redhat.com>
142 * semantics.c (finish_compound_literal): Use
143 cp_apply_type_quals_to_decl when creating a static variable.
145 2010-02-12 Jason Merrill <jason@redhat.com>
148 * name-lookup.h (current_binding_level): Check for null
151 2010-02-12 Jason Merrill <jason@redhat.com>
154 * tree.c (cp_tree_equal): Correct CALL_EXPR logic.
156 2010-02-12 Jakub Jelinek <jakub@redhat.com>
159 * name-lookup.c (pushdecl_maybe_friend): Check default args of t
162 2010-02-10 Jason Merrill <jason@redhat.com>
165 * semantics.c (outer_lambda_capture_p): Revert.
166 (add_capture): Only finish_member_declaration if
167 we're in the lambda class.
168 (register_capture_members): New.
169 * cp-tree.h: Declare it.
170 * parser.c (cp_parser_lambda_expression): Call it.
172 2010-02-10 Jason Merrill <jason@redhat.com>
175 * semantics.c (outer_lambda_capture_p): Use current_function_decl
176 instead of current_class_type.
178 2010-02-10 Jason Merrill <jason@redhat.com>
180 PR c++/42983, core issue 906
181 * method.c (defaultable_fn_check): Check virtualness.
183 2010-02-10 Jason Merrill <jason@redhat.com>
186 * semantics.c (maybe_add_lambda_conv_op): Set DECL_INTERFACE_KNOWN.
188 2010-02-10 Shujing Zhao <pearly.zhao@oracle.com>
190 * Make-lang.in (cp/cvt.o, cp/parser.o, cp/search.o): Depend on intl.h.
191 * cvt.c (warn_ref_binding): Wrap the messages into G_() for easy
193 * parser.c (cp_parser_postfix_expression, cp_parser_new_type_id)
194 (cp_parser_cast_expression, cp_parser_condition, cp_parser_decltype)
195 (cp_parser_parameter_declaration)
196 (cp_parser_exception_specification_opt)
197 (cp_parser_exception_declaration): Likewise.
198 * pt.c (check_default_tmpl_args): Likewise.
199 * search.c (lookup_field_r): Likewise.
201 2010-02-09 Jason Merrill <jason@redhat.com>
204 * pt.c (tsubst_copy_and_build): Propagate LAMBDA_EXPR_LOCATION.
206 2010-02-09 Jason Merrill <jason@redhat.com>
209 * decl2.c (change_return_type): New fn.
210 * semantics.c (apply_lambda_return_type): Use it.
211 * cp-tree.h: Declare it.
213 2010-02-05 Richard Guenther <rguenther@suse.de>
215 * Make-lang.in (cp/cp-lang.o): Depend on gt-cp-cp-lang.h.
216 * cp-lang.c: Include gt-cp-cp-lang.h.
217 * config-lang.in (gtfiles): Add cp/cp-lang.c.
219 2010-02-05 Dodji Seketeli <dodji@redhat.com>
222 * typeck.c (get_template_parms_of_dependent_type): Try getting
223 the template parameters fromt the type itself first.
225 2010-02-03 Jason Merrill <jason@redhat.com>
229 * mangle.c (write_unqualified_id): Split out from write_expression.
230 (write_unqualified_name): Call it.
231 (write_member_name): Likewise.
232 (write_expression): Support TEMPLATE_ID_EXPR.
233 Disambiguate operator names.
236 * mangle.c (write_type) [VECTOR_TYPE]: Change mangling with
239 2010-02-02 Jason Merrill <jason@redhat.com>
242 * decl.c (cp_finish_decl): Add local statics to cfun->local_decls.
243 * optimize.c (clone_body): Remap their initializers when making base
245 (maybe_clone_body): Complain if multiple clones aren't safe.
247 2010-01-29 Dodji Seketeli <dodji@redhat.com>
254 * cp-tree.h (NON_DEFAULT_TEMPLATE_ARGS_COUNT,
255 SET_NON_DEFAULT_TEMPLATE_ARGS_COUNT,
256 GET_NON_DEFAULT_TEMPLATE_ARGS_COUNT): New accessor macros.
257 * pt.c (coerce_template_parms, type_unification_real,
258 expand_template_argument_pack, coerce_template_parameter_pack):
259 Set the non default template args count.
260 (current_template_args): Always set non defaulted
261 template args count when compiled with --enable-checking
262 (tsubst_template_args, type_unification_real): Propagate the non
263 defaulted template args count.
264 * error.c (get_non_default_template_args_count): Renamed
265 count_non_default_template_args into this. Don't calculate the
266 non default template argument count anymore. Use the new
267 accessor macros above to get it.
268 (dump_template_argument_list, dump_type, dump_decl,
269 dump_template_parms): Adjust.
270 * parser.c (cp_parser_template_argument_list): Always set defaulted
271 template args count when compiled with --enable-checking.
273 2010-01-29 Shujing Zhao <pearly.zhao@oracle.com>
275 * decl.c (redeclaration_error_message): Wrap the return messages into
276 G_() for easy translation.
278 2010-01-28 Jason Merrill <jason@redhat.com>
281 * semantics.c (begin_class_definition): Don't use type_as_string.
283 2010-01-28 Dodji Seketeli <dodji@redhat.com>
287 * typeck.c (get_template_parms_of_dependent_type): Factorized
288 this out of incompatible_template_type_parms_p
289 (incompatible_dependent_types_p): Renamed
290 incompatible_template_type_parms_p into this. Make it detect
291 two incompatible dependent typedefs too.
292 (structural_comptypes): Use incompatible_dependent_types_p.
293 * pt.c (get_template_info):
294 Handle BOUND_TEMPLATE_TEMPLATE_PARAM.
296 2010-01-20 Janis Johnson <janis187@us.ibm.com>
297 Jason Merrill <jason@redhat.com>
299 * mangle.c (write_type): Mangle transparent record as member type.
300 * semantics.c (begin_class_definition): Recognize decimal classes
301 and set TYPE_TRANSPARENT_AGGR.
303 2010-01-20 Jason Merrill <jason@redhat.com>
306 * mangle.c (write_expression): Handle tree codes that have extra
307 arguments in the middle-end.
309 2010-01-20 Paolo Carlini <paolo.carlini@oracle.com>
312 * except.c (expand_start_catch_block): Deal correctly with
313 do_begin_catch returning error_mark_node.
315 2010-01-20 Jason Merrill <jason@redhat.com>
318 * class.c (layout_class_type): Set packed_maybe_necessary for packed
322 * semantics.c (build_lambda_object): Call mark_used on captured
326 * decl.c (grokdeclarator): Clear type_quals for a member function
327 declared using a typedef. Don't complain about adding cv-quals
328 to a function typedef in C++0x mode.
330 2010-01-20 Jakub Jelinek <jakub@redhat.com>
332 * decl.c (create_array_type_for_decl): Remove set but not used
333 variable error_msg. Remove break stmts after return stmts.
335 2010-01-19 Dodji Seketeli <dodji@redhat.com>
337 * error.c (dump_template_parms, count_non_default_template_args):
338 Revert fix of PR c++/42634.
340 2010-01-18 Dodji Seketeli <dodji@redhat.com>
343 * error.c (dump_template_parms): Use innermost template
344 arguments before calling count_non_default_template_args.
345 (count_non_default_template_args): We are being called with
346 template innermost arguments now. There is no need to ensure
349 2010-01-18 Dodji Seketeli <dodji@redhat.com>
352 * cvt.c (build_expr_type_conversion): Look through OVERLOAD.
354 2010-01-17 Dodji Seketeli <dodji@redhat.com>
357 *pt.c (tsubst_decl): Revert commit for PR c++/42697.
359 2010-01-17 Dodji Seketeli <dodji@redhat.com>
362 *pt.c (tsubst_decl): Get the arguments of a specialization from
363 the specialization template, not from the most general template.
365 2010-01-16 Jason Merrill <jason@redhat.com>
368 * semantics.c (finish_decltype_type): Within a template, treat
369 unresolved CALL_EXPR as dependent.
371 2010-01-15 Dodji Seketeli <dodji@redhat.com>
373 * error.c (dump_template_parms,count_non_default_template_args):
374 Revert changes of PR c++/42634.
376 2010-01-14 Jakub Jelinek <jakub@redhat.com>
379 * decl.c (finish_function): Don't emit -Wreturn-type warnings in
380 functions with noreturn attribute.
382 2010-01-14 Jason Merrill <jason@redhat.com>
385 * call.c (build_new_method_call): Don't free the vec here.
388 * call.c (convert_like_real): Do full decay_conversion for ck_rvalue.
390 2010-01-13 Dodji Seketeli <dodji@redhat.com>
393 * error.c (dump_template_parms): Use innermost template
394 arguments before calling count_non_default_template_args.
395 (count_non_default_template_args): We are being called with
396 template innermost arguments now. There is no need to ensure
399 2010-01-07 Dodji Seketeli <dodji@redhat.com>
402 * pt.c (unify_pack_expansion): In non-deduced contexts, re-use template
403 arguments that were previously deduced.
405 2010-01-05 Jason Merrill <jason@redhat.com>
407 * pt.c (unify_pack_expansion): Handle deduction from init-list.
408 * call.c (build_over_call): Don't complain about it.
410 2010-01-04 Jason Merrill <jason@redhat.com>
413 * pt.c (tsubst_decl): Don't apply type attributes in place.
416 * semantics.c (describable_type): Remove decltype comment and
421 Copyright (C) 2010 Free Software Foundation, Inc.
423 Copying and distribution of this file, with or without modification,
424 are permitted in any medium without royalty provided the copyright
425 notice and this notice are preserved.