]> gcc.gnu.org Git - gcc.git/blame - gcc/cp/ChangeLog
c-common.c (c_common_post_options): Update prototype; don't init backends if preproce...
[gcc.git] / gcc / cp / ChangeLog
CommitLineData
78abea27
RS
12002-07-07 Roger Sayle <roger@eyesopen.com>
2
3 * error.c (dump_function_name): Use DECL_TEMPLATE_RESULT for
4 constructor and destructor tests when passed a TEMPLATE_DECL.
5
98c07d7b
JM
62002-07-05 Jason Merrill <jason@redhat.com>
7
212e17fd
JM
8 * cvt.c (cp_convert_to_pointer): Call force_fit_type for null
9 pointers.
10
98c07d7b
JM
11 PR optimization/7145
12 * tree.c (cp_copy_res_decl_for_inlining): Also copy DECL_INITIAL.
13
c6f553d1
NS
142002-07-05 Nathan Sidwell <nathan@codesourcery.com>
15
16 Repair damage on weak-impared targets caused by my previous patch.
17 * cp-tree.h (import_export_tinfo): Add parameter.
18 * decl2.c (import_export_tinfo): Add parameter, post adjust
19 DECL_COMDAT.
20 * rtti.c (emit_tinfo_decl): DECL_COMDAT is (nearly) always setup by
21 import_export_tinfo.
22
b2153b98
KL
232002-07-03 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
24
25 PR c++/6944
26 * init.c (build_aggr_init): Remove qualifiers of init before calling
27 build_vec_init.
28 (build_vec_init): Flatten multi-dimensional array during cleanup.
29 (build_vec_delete_1): Abort if the type of each element is array.
30
492ff760
GS
312002-07-03 Graham Stott <graham.stott@btinternet.com>
32
33 * pt.c (instantiate_class_template): Fix typo.
34
04c4491d
KL
352002-07-02 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
36
06728f70
KL
37 * typeck2.c (cxx_incomplete_type_diagnostic): Fix typo caused
38 by CVS conflict in my last patch.
04c4491d 39
17f29637
KL
402002-07-02 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
41
42 PR c++/6716
43 * pt.c (can_complete_type_without_circularity): New function.
44 (instantiate_class_template): Use it.
06728f70
KL
45 * typeck2.c (cxx_incomplete_type_diagnostic): Improve error
46 message due to incomplete fields.
17f29637 47
5d69ba1f
MM
482002-07-01 Mark Mitchell <mark@codesourcery.com>
49
50 PR c++/7112
51 * mangle.c (write_expression): Add mangling for sizeof when
52 applied to a type.
53 * operators.def: Remove stale comment.
54
d689a8f1
NS
552002-06-30 Nathan Sidwell <nathan@codesourcery.com>
56
57 * cp-tree.h (CPTI_TINFO_DECL_TYPE): Replace with ...
58 (CPTI_TYPE_INFO_PTR_TYPE): ... this.
59 (tinfo_decl_type): Replace with ...
60 (type_info_ptr_type): ... this.
61 (import_export_tinfo): Declare.
62 (tinfo_decl_p): Rename to ...
63 (unemitted_tinfo_decl_p): ... this.
64 * decl2.c (import_export_decl): Break out tinfo handling into ...
65 (import_export_tinfo): ... here. New function.
66 (finish_file): Adjust.
67 * rtti.c (TINFO_REAL_NAME): New macro.
68 (init_rtti_processing): Create the tinfo types.
69 (get_tinfo_decl_dynamic): Use type_info_ptr_type, get_tinfo_ptr.
70 (get_tinfo_decl): Adjust.
71 (get_tinfo_ptr): New function.
72 (get_type_id): Use it.
73 (tinfo_base_init): Create vtable decl here, if it doesn't exist.
74 (ptr_initializer): Use get_tinfo_ptr.
75 (ptm_initializer): Likewise.
76 (synthesize_tinfo_var): Break into ...
77 (get_pseudo_ti_init): ... this. Just create the initializer.
78 (get_pseudo_ti_desc): .. and this.
79 (create_real_tinfo_var): Remove.
80 (create_pseudo_type_info): Don't create the vtable decl here.
81 (get_vmi_pseudo_type_info): Remove.
82 (create_tinfo_types): Adjust.
83 (tinfo_decl_p): Rename to ...
84 (unemitted_tinfo_decl_p): ... here. Adjust.
85 (emit_tinfo_decl): Adjust. Create the initializer.
86
5ce49b4b
MM
872002-06-27 Mark Mitchell <mark@codesourcery.com>
88
89 PR c++/6695
90 * pt.c (tsubst_friend_class): Substitute into the context of the
91 friend before using it.
92
88e5899c
MM
932002-06-26 Mark Mitchell <mark@codesourcery.com>
94
95 * cp-tree.h (xref_tag): Change prototype.
96 (handle_class_head): Likewise.
97 (build_x_component_ref): Likewise.
98 * decl.c (cxx_init_decl_processing): Adjust call to xref_tag.
99 (xref_tag): Take attributes as a separate parameter.
100 (xref_tag_from_type): Adjust call to xref_tag.
101 * decl2.c (build_expr_from_tree): Adjust call to
102 build_x_component_ref.
103 (handle_class_head): Take attributes as a separate parameter.
104 * parse.y (parse_xref_tag): New function.
105 (parse_handle_class_head): Likewise.
106 (primary): Use parse_xref_tag.
107 (class_head_decl): Use parse_handle_class_head.
108 (class_head_defn): Likewise.
109 * rtti.c (init_rtti_processing): Adjust call to xref_tag.
110 (build_dynamic_cast_1): Likewise.
111 (create_pseudo_type_info): Likewise.
112 (emit_support_tinfos): Likewise.
113 * typeck.c (build_object_ref): Adjust call to
114 build_x_component_ref.
115 (build_x_component_ref): Remove protect parameter.
116
da15dae6
MM
1172002-06-25 Mark Mitchell <mark@codesourcery.com>
118
119 * call.c (build_op_delete_call): Use BASELINK_FUNCTIONS.
120 * class.c (handle_using_decl): Likewise.
121 (instantiate_type): Likewise.
122 * cp-tree.h (BASELINK_FUNCTIONS): New macro.
123 (xref_basetypes): Change prototype.
124 (begin_mem_initializers): New function.
125 (get_overloaded_fn): Likewise.
126 * decl.c (xref_basetypes): Simplify.
127 * error.c (dump_expr): Use BASELINK_FUNCTIONS.
128 * init.c (build_offset_ref): Likewise.
129 * parse.y (base_init): Use begin_mem_initializers().
130 (structsp): Adjust call to xref_basetypes.
131 * pt.c (determine_specialization): Use BASELINK_FUNCTIONS.
132 (instantiate_class_template): Adjust call to xref_basetypes.
133 * semantics.c (begin_mem_initializers): New function.
134 * tree.c (is_overloaded_fn): Use BASELINK_FUNCTIONS.
135 (really_overlaoded_fn): Likewise.
136 (get_overloaded_fn): New function.'
137 (get_first_fn): USe BASELINK_FUNCTIONS.
138
5f261ba9
MM
1392002-06-24 Mark Mitchell <mark@codesourcery.com>
140
141 * cp-tree.h (SCALAR_TYPE_P): New macro.
142 (check_for_out_of_scope_variable): New function.
143 (at_class_scope_p): Likewise.
144 (finish_fname): Likewise.
145 * class.c (finish_struct): Use at_function_scope_p.
146 * decl.c (check_for_out_of_scope_variable): New function, split
147 out from do_identifier.
148 (finish_enum): Use at_function_scope_p.
149 * lex.c (do_identifier): Use check_for_out_of_scope_variable.
150 * parse.y (VAR_FUNC_NAME): Give it <ttype>. Use finish_fname.
151 (primary): Use at_function_scope_p.
152 * search.c (at_class_scope_p): New function.
153 * semantics.c (finish_fname): Likewise.
154 (check_multiple_declarators): Use at_function_scope_p.
155
80b1331c
MM
1562002-06-23 Mark Mitchell <mark@codesourcery.com>
157
158 * parse.y (parse_scoped_id): New function.
159 (primary): Use it.
160 * cp-tree.h (do_scoped_id): Adjust declaration.
161 * lex.c (do_scoped_id): Remove call to yylex.
162 * decl2.c (build_expr_from_tree): Adjust use of do_scoped_id.
163 * typeck2.c (add_exception_specifier): Use tree_cons, rather than
164 expanding it inline.
165
08c7ae5a
MT
1662002-06-23 Matt Thomas <matt@3am-software.com>
167
168 * decl.c (finish_function): Change "#ifdef VMS_TARGET" to
169 "#if VMS_TARGET".
170
eb6b51b9
KG
1712002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
172
173 * mangle.c (integer_type_codes): Const-ify.
174
aa8dea09
RH
1752002-06-20 Richard Henderson <rth@redhat.com>
176
177 PR c++/6747
178 * typeck.c (mark_addressable): Don't test TREE_ADDRESSABLE early.
179 Call put_var_into_stack.
180
62c71f4b
KG
1812002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
182
183 * spew.c (remove_last_token): Use ARRAY_SIZE in lieu of explicit
184 array size calculation.
185
aa16c0fa
KL
1862002-06-20 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
187
188 PR c++/6892
189 * pt.c (tsubst_expr): Handle FILE_STMT.
190
342cea95
KL
1912002-06-20 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
192
193 PR c++/6723
194 * pt.c (lookup_template_class): Don't build complete argument of
195 BOUND_TEMPLATE_TEMPLATE_PARM if appeared as a default template
196 argument.
197
84d901be
AD
1982002-06-19 Akim Demaille <akim@epita.fr>
199
200 * parse.y (TYPENAME): Rename as tTYPENAME to avoid the clash with
201 decl.h's TYPENAME.
202 * spew.c, lex.c: Adjust.
203 * parse.y (explicit_instantiation): Add empty action to override
204 the default $$ = $1 where it introduces a type clash.
205
83b14b88
JM
2062002-06-14 Jason Merrill <jason@redhat.com>
207
18ba380b
JM
208 * semantics.c (begin_for_stmt): Push the 'for' scope before
209 adding the FOR_STMT.
210
83b14b88
JM
211 C++ ABI changes.
212 * class.c (build_base_field): Set DECL_PACKED.
213 (layout_class_type): Don't use tail padding of PODs.
214 * mangle.c (write_unqualified_name): Fix template conversion op
215 mangling.
216
fd852454
RH
2172002-06-16 Richard Henderson <rth@redhat.com>
218
219 PR opt/6793
220 * tree.c (cp_cannot_inline_tree_fn): Don't short-circuit test
221 after template instantiation.
222
750491fc
RH
2232002-06-16 Richard Henderson <rth@redhat.com>
224
225 * cp-tree.h, decl2.c (flag_ms_extensions): Move to c-common.
226
f7d3c5f0
GDR
2272002-06-15 Gabriel Dos Reis <gdr@codesourcery.com>
228
229 * cp-tree.h (compiler_error): Remove declaration.
230 * lex.c (compiler_error): Remove definition.
231
893a047c
SE
2322002-06-14 Steve Ellcey <sje@cup.hp.com>
233
234 * g++spec.c (LIBUNWIND): New.
235 (lang_specific_driver): Add it if USE_UNWIND_EXCEPTIONS is set.
236
a6f5e048
RH
2372002-06-13 Jessica Han <jessica@cup.hp.com>
238
239 * class.c (build_vtable): Use TARGET_VTABLE_ENTRY_ALIGN.
240 (build_vtbl_initializer): Honor TARGET_VTABLE_DATA_ENTRY_DISTANCE.
241 (build_vbase_offset_vtbl_entries): Likewise.
242 * rtti.c (build_headof): Likewise.
243 (get_tinfo_decl_dynamic): Likewise.
244 (create_pseudo_type_info): Likewise.
245
e4dadd2a
SS
2462002-06-12 Stan Shebs <shebs@apple.com>
247
248 * mpw-config.in: Remove file, no longer used.
249 * mpw-make.sed: Ditto.
250
09e77dee
ZW
2512002-06-07 Zack Weinberg <zack@codesourcery.com>
252
253 * decl2.c: Update call to cpp_handle_option.
254
4bafaa6f
L
2552002-06-07 H.J. Lu (hjl@gnu.org)
256
257 * decl2.c (flag_use_cxa_atexit): Set to DEFAULT_USE_CXA_ATEXIT.
258
3cb8660c
GDR
2592002-06-06 Gabriel Dos Reis <gdr@codesourcery.com>
260
261 * error.c (cp_error_at): Fix typo.
262
47b69537
GDR
2632002-06-04 Gabriel Dos Reis <gdr@codesourcery.com>
264
265 * error.c (cp_diagnostic_starter): Adjust call.
266 (maybe_print_instantiation_context): Change prototype to take a
267 'diagnostic_info *'.
268 (print_instantiation_full_context): Likewise.
269 (print_instantiation_partial_context): Likewise.
270 (cp_diagnostic_starter): Likewise.
271 (cp_diagnostic_finalizer): Likewise.
272 (cp_print_error_function): Likewise.
273 (cp_printer): Take a secondary parameter as a 'text_info *'.
274 Remove output_state savings. Adjust calls.
275
e2500fed
GK
2762002-06-03 Geoffrey Keating <geoffk@redhat.com>
277
278 * pt.c (inline_parm_levels): Mark for GC.
279
280 * mangle.c (start_mangling): Allocate G.substitutions here...
281 (init_mangle): ... rather than here.
282 (finish_mangling): Clear the varray pointer when done with it.
84d901be
AD
283 * spew.c (yylexstring): Don't use VARRAY_FREE.
284 * search.c (bfs_walk): Don't use VARRAY_FREE.
e2500fed
GK
285 * decl2.c (pending_statics): Use gengtype to mark.
286 (deferred_fns): Likewise.
287 (ssdf_decls): Likewise.
288 (init_decl2): Delete.
289 * decl.c (pop_from_top_level): Don't use VARRAY_FREE.
290 (cxx_init_decl_processing): Don't call init_decl2.
291 (cxx_pop_function_context): Don't use VARRAY_FREE.
292 * cp-tree.h (struct saved_scope): No need for special marking
293 of varrays.
294 (struct language_function): Likewise.
295 (local_classes): Use gengtype to mark.
296 (init_decl2): Delete prototype.
297 * class.c (init_class_processing): Don't use
298 ggc_add_tree_varray_root.
299 (build_vtbl_initializer): Don't use VARRAY_FREE.
300
301 * decl.c (typename_compare): Don't use same_type_p.
302
303 * decl.c: Include hashtab.h instead of hash.h.
304 (typename_hash): Update to use htab_h.
305 (typename_compare): Likewise.
306 (typename_htab): Use gengtype to mark.
307 (build_typename_type): Update to use htab_h.
308 * Make-lang.in (cp/decl.o): Use HASHTAB_H instead of hash.h.
309
310 * Make-lang.in (gt-cp-tree.h): New rule.
311 (cp/tree.o): Depend on gt-cp-tree.h.
312 * config-lang.in (gtfiles): Add cp/tree.c.
313 * tree.c: Include gt-cp-tree.h.
314 (list_hash_table): Use gengtype to mark.
315 (init_tree): Use gengtype to mark trees.
316
317 * Make-lang.in (cp/decl.o): Add debug.h dependency.
318 * call.c (struct z_candidate): Use gengtype.
319 (USER_CONV_CAND): Use WRAPPER_ZC.
320 (convert_class_to_reference): Use build_zc_wrapper.
321 (build_type_conversion_1): Likewise.
322 (build_over_call): Use WRAPPER_ZC.
323 (add_warning): Use build_zc_wrapper.
324 * cp-lang.c (LANG_HOOKS_MARK_TREE): Delete.
325 * cp-tree.h (struct lang_identifier): Use gengtype.
326 (struct template_parm_index_s): Likewise.
327 (struct ptrmem_cst): Likewise.
328 (struct tree_binding): Likewise.
329 (struct tree_overload): Likewise.
330 (struct tree_srcloc): Likewise.
331 (struct tree_wrapper): Likewise. Also modify to have a pointer
332 to struct z_candidate rather than void.
333 (enum cp_tree_node_structure_enum): New.
334 (union lang_tree_node): New.
335 (cxx_mark_tree): Delete prototype.
336 (cp_tree_node_structure): New prototype.
337 (build_ptr_wrapper): Delete prototype.
338 (build_int_wrapper): Delete prototype.
339 (build_zc_wrapper): New prototype.
340 * decl.c: Include debug.h
341 (cxx_mark_tree): Delete.
342 (cp_tree_node_structure): New.
343 * tree.c (build_ptr_wrapper): Delete.
344 (build_int_wrapper): Delete.
345 (build_zc_wrapper): New.
346
347 * cp-tree.h [! ENABLE_TREE_CHECKING] (LANG_TYPE_PTRMEM_CHECK):
348 Correct typo. Patch from k_fukui@highway.ne.jp.
349
350 * semantics.c (current_stmt_tree): Update for change to
351 struct language_function.
352 (finish_mem_initializers): Likewise.
353 * decl.c (cxx_init_decl_processing): Don't set mark_lang_status.
354 * cp-tree.h (struct language_function): Rename from
355 cp_language_function. Change all uses.
356 (cp_function_chain): Don't need to cast.
357
358 * class.c (duplicate_tag_error): Reset discriminator.
359 (check_bases_and_members): Update for data structure changes.
360 * cp-tree.h (struct lang_id2): Use gengtype.
361 (flagged_type_tree): Likewise.
362 (SET_LANG_ID): Use GGC on struct lang_id2.
363 (struct cp_language_function): Use gengtype. Remove field
364 'x_vcalls_possible_p'.
365 (current_vcalls_possible_p): Delete.
366 (struct lang_type_header): New.
367 (struct lang_type_class): Rename from struct lang_type. Include
368 struct lang_type_header.
369 (struct lang_type_ptrmem): New.
370 (struct lang_type): New.
371 (LANG_TYPE_CLASS_CHECK): New. Use it in all the appropriate macros.
372 (LANG_TYPE_PTRMEM_CHECK): New. Use it in all the appropriate macros.
373 (TYPE_SET_PTRMEMFUNC_TYPE): Set discriminator, update for changes.
374 (struct lang_decl_flags): Use gengtype. Add discriminators.
375 (struct lang_decl): Use gengtype. Add and use discriminators.
376 Update the macros that reference moved fields.
377 (LANG_DECL_U2_CHECK): New function. Use it when appropriate.
378 (SET_DECL_THUNK_P): Set discriminator too.
379 (clear_inline_text_obstack): Delete prototype.
380 (finish_inline_definitions): Delete prototype.
381 (mark_pending_inlines): Delete prototype.
382 (lang_check_failed): New prototype.
383 * decl.c (struct named_label_use_list): Use gengtype.
384 (struct named_label_list): Likewise.
385 (mark_binding_level): Delete.
386 (mark_named_label_lists): Delete.
387 (push_local_name): Set discriminator on DECL_LANG_SPECIFIC.
388 (cxx_init_decl_processing): Use generated marker routine.
389 (begin_destructor_body): Delete dead set to
390 current_vcalls_possible_p.
391 (mark_lang_function): Delete.
392 (mark_cp_function_context): Delete.
393 (lang_mark_tree): Use generated marker routines.
394 * decl2.c (start_objects): Set discriminator when setting
395 GLOBAL_INIT_PRIORITY.
396 * lex.c (retrofit_lang_decl): Set discriminators.
397 (copy_lang_type): Update for changes to lang_type structure.
398 (cp_make_lang_type): Set discriminator.
399 * parse.y: Use gengtype on YYLVAL. Don't use dots in identifiers.
400 * search.c: Include ggc.h.
401 * semantics.c (anon_aggr_type_p): Use the macro, don't hand-code it.
402 (finish_inline_definitions): Delete.
403 * spew.c (struct token): Use gengtype.
404 (struct token_chunk): New.
405 (struct unparsed_text): Use gengtype. Store tokens in chunks.
406 (struct feed): Use gengtype.
407 (feed_obstack): Delete.
408 (feed): Mark as GC root.
409 (pending_inlines): Mark as GC root.
410 (pending_inlines_tail): Likewise.
411 (processing_these_inlines): Likewise.
412 (token_obstack): Make static.
413 (first_token): Likewise.
414 (init_spew): Don't initialise deleted things; use gengtype for roots.
415 (clear_inline_text_obstack): Delete.
416 (feed_input): Use GC for struct feed. Update for changes to
417 struct unparsed_text.
418 (mark_pending_inlines): Delete.
419 (next_token): Rename from add_token. Change all callers. Update
420 for changes to struct unparsed_text.
421 (space_for_token): New.
422 (remove_last_token): New.
423 (alloc_unparsed_text): New.
424 (snarf_block): Take an unparsed_text. Update for changes to struct
425 unparsed_text.
426 (snarf_method): Update for changes to struct unparsed_text.
427 (snarf_defarg): Update for changes to struct unparsed_text.
428 * tree.c (lang_check_failed): New.
429
430 * Make-lang.in (gt-cp-call.h gt-cp-decl2.h gt-cp-parse.h
431 gt-cp-pt.h gt-cp-repo.h gt-cp-spew.h): New rules.
432 (cp/spew.o): Add dependency on gt-<filename>.h.
433 (cp/decl2.o): Add dependency on gt-<filename>.h.
434 (cp/call.o): Add dependency on gt-<filename>.h.
435 (cp/pt.o): Add dependency on gt-<filename>.h.
436 (cp/repo.o): Add dependency on gt-<filename>.h.
437 (cp/parse.o): Add dependency on gt-<filename>.h.
438 * call.c: Use gengtype for roots.
439 * config-lang.in (gtfiles): Add cp-tree.h decl.h lex.h call.c
440 decl2.c parse.y pt.c repo.c spew.c.
441 * cp-tree.h: Use gengtype for roots.
442 (struct saved_scope): Use GGC, gengtype.
443 (cp_parse_init): Delete prototype.
444 (init_pt): Delete prototype.
445 * decl.c: Use gengtype for roots.
446 (mark_saved_scope): Delete.
447 (cxx_init_decl_processing): Don't call deleted initilisation
448 routines.
449 (signed_size_zero_node): Delete, unused.
450 * decl.h: Use gengtype for roots.
451 * decl2.c: Use gengtype for roots.
452 * lex.h: Use gengtype for roots.
453 * parse.y: Use gengtype for roots.
454 (cp_parse_init): Delete.
455 * pt.c: Use gengtype for roots.
456 (init_pt): Delete.
457 * repo.c: Use gengtype for roots.
458 * spew.c: Use gengtype for roots.
459
460 * Make-lang.in: Allow for filename changes. Add gtype-cp.h.
461 (cp/decl.o): Add dependency on gtype-cp.h.
462 * decl.c: Remove use of add_deletable_root, use GTY marker instead.
463 Include gtype-cp.h. Allow for filename changes.
464
465 * Make-lang.in (cp/gt-decl.h): Generate using gengtype.
466 (cp/decl.o): Add cp/gt-decl.h dependency.
467 * config-lang.in (gtfiles): New.
468 * tree.h: Rename struct binding_level to struct cp_binding_level.
469 * decl.c: Rename struct binding_level to struct cp_binding_level.
470 Include cp/gt-decl.h.
471 (struct cp_binding_level): Use gengtype.
472 (make_binding_level): Use GGC on struct cp_binding_level.
473 (mark_binding_level): Use gt_ggc_m_cp_binding_level.
474 (cxx_init_decl_processing): Mark free_binding_level as
475 deletable.
476
477 * decl.c (mark_cp_function_context): Update calling sequence.
478
479 * decl.c (start_function): Don't free 'struct
480 cp_language_function'.
481 (pop_cp_function_context): Likewise.
482 (save_function_data): Allocate it using GC.
483 * semantics.c (genrtl_start_function): Don't free 'struct
484 cp_language_function'.
485
8b968bd1
MW
4862002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
487
488 * lang-specs.h: Use cpp_debug_options.
489
11ad4784
ZW
4902002-05-28 Zack Weinberg <zack@codesourcery.com>
491
492 * mangle.c, tree.c: Include real.h.
493 * Make-lang.in: Update dependency lists.
494
81a75f0f
NB
4952002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
496
497 * lex.c: Don't include c-lex.h.
498 * parse.y, spew.c: Don't include c-lex.h; include c-pragma.h.
499
a97d1398
NB
5002002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
501
502 * spew.c (yyungetc, snarf_block): Remove indent_level handling.
503
6f001fdf
RH
5042002-05-22 Richard Henderson <rth@redhat.com>
505
506 * decl.c (obscure_complex_init): Check for VAR_DECL
507 before using DECL_THREAD_LOCAL.
508
7a1f3f5f
RH
5092002-05-22 Richard Henderson <rth@redhat.com>
510
511 * decl.c (check_tag_decl): Handle RID_THREAD.
512 (obscure_complex_init): Reject run-time init of tls.
513 (grokvardecl, grokdeclarator): Handle RID_THREAD.
514 * lex.c (reswords): Add __thread.
515 (rid_to_yy): Map RID_THREAD to SCSPEC.
516
e5f3b786
NB
5172002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
518
519 * cp-lang.c (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
520 * cp-tree.h (cxx_post_options): Kill.
521 * cp-lex.c (cxx_post_options): Kill.
522
3d78f2e9
RH
5232002-05-21 Richard Henderson <rth@redhat.com>
524
525 * lex.c (rid_to_yy): Add RID_THREAD.
526
c8a3d889
AO
5272002-05-21 Alexandre Oliva <aoliva@redhat.com>
528
529 * init.c (build_vec_init): Test for trivial copy-assignment when
530 copy-assigning arrays.
531
500abaa8
AJ
5322002-05-20 Andreas Jaeger <aj@suse.de>
533
534 * init.c (build_default_init): Remove unused variable.
535
ecc42c14
AO
5362002-05-20 Alexandre Oliva <aoliva@redhat.com>
537
538 * call.c (any_strictly_viable): New.
539 (build_new_op): Use it for COMPOUND_EXPR and ADDR_EXPRs.
540
4e664ef1
KL
5412002-05-19 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
542
543 * error.c (dump_type) [TYPEOF_TYPE]: Fix parenthesis printing.
544
07782718
KL
5452002-05-19 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
546
547 PR c++/186, DR 259
548 * pt.c (do_decl_instantiation): Don't complain explicit
549 instantiation after explicit specialization.
550 (do_type_instantiation): Likewise.
551
23b4deba
AO
5522002-05-19 Alexandre Oliva <aoliva@redhat.com>
553
554 * cp-tree.h (complete_type_or_diagnostic): Changed prototype,
555 renamed from...
556 (complete_type_or_else): ... this. Redefined as macro.
557 (cxx_incomplete_type_diagnostic): Declare.
558 (cxx_incomplete_type_error): Define as macro.
559 * init.c (build_delete): Warn about incomplete types other than
560 void, and use the built-in operator delete for them.
561 * typeck.c (complete_type_or_diagnostic): Renamed from
562 complete_type_or_else. Added warn_only argument, passed to...
563 * typeck2.c (cxx_incomplete_type_diagnostic): ... this. Print
564 warnings or errors depending on new warn_only argument. Renamed
565 from...
566 (cxx_incomplete_type_error): ... this. New implementation in
567 terms of cxx_incomplete_type_diagnostic.
568
b41d214e
JM
5692002-05-18 Jason Merrill <jason@redhat.com>
570
98c07d7b 571 PR c++/6611
b41d214e
JM
572 * decl2.c (import_export_decl): If we clear
573 DECL_NOT_REALLY_EXTERN, make sure DECL_EXTERNAL is set.
574
e2005c8d
KL
5752002-05-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
576
577 PR c++/6620
578 * pt.c (verify_class_unification): Don't check if PARM is template
579 parameter dependent. Simplify.
580 (unify) [TEMPLATE_PARM_INDEX]: Handle when ARG is a template
581 parameter dependent expression.
582
ff48be5c
JM
5832002-05-14 Jason Merrill <jason@redhat.com>
584
585 * rtti.c (get_tinfo_decl): Don't call comdat_linkage.
586 Do set DECL_COMDAT.
587 (synthesize_tinfo_var): Take the public decl.
588 (create_real_tinfo_var): Likewise. Check DECL_COMDAT.
589 (emit_tinfo_decl): Adjust. Call import_export_decl.
590 * decl2.c (import_export_decl): Simplify tinfo decl handling.
591
94e6e4c4
AO
5922002-05-14 Alexandre Oliva <aoliva@redhat.com>
593
594 * cp-tree.h (struct lang_type): Added non_zero_init.
0fe1cd70 595 (CLASSTYPE_NON_ZERO_INIT_P): New macro.
94e6e4c4
AO
596 (zero_init_p, force_store_init_value, build_forced_zero_init): Declare.
597 * class.c (check_field_decls): Test non_zero_init.
598 * cvt.c (convert_to_pointer_force): Use cp_convert_to_pointer for
599 zero-to-NULL conversions.
600 * decl.c (obscure_complex_init): Don't reset DECL_INITIAL of a
601 type that needs zero-initialization without zeros.
602 (check_initializer_decl): Compute zero-initializer for types
603 that require a non-trivial one.
604 * init.c (build_forced_zero_init): New function.
605 (build_default_init): Use it.
606 * tree.c (zero_init_p): New function.
607 * typeck2.c (force_store_init_value): New function.
608 (process_init_constructor): Create non-trivial zero-initializers
609 for array members and class fields.
610
e5f5feea
NB
6112002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
612
613 * lang-specs.h: Remove redundant -lang-c++.
614
f63ab951
JM
6152002-05-13 Jason Merrill <jason@redhat.com>
616
617 * class.c (build_vtbl_ref_1): Use fixed_type_or_null.
618 (fixed_type_or_null): See through reference vars.
619 (build_base_path): Vtable contents are constant.
620 * typeck.c (get_member_function_from_ptrfunc): Likewise.
621
0d08ea48
JM
6222002-05-12 Jason Merrill <jason@redhat.com>
623
624 * cp-lang.c (ok_to_generate_alias_set_for_type): Backend-created
625 structs are safe.
626
3df89291
NB
6272002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
628
629 * cp-tree.h (flag_ansi): Remove.
630 * decl2.c (flag_ansi): Remove.
631 (cxx_decode_option): Set flag_iso and flag_undef.
632
c87978aa
JM
6332002-05-09 Jason Merrill <jason@redhat.com>
634
635 * typeck.c (get_member_function_from_ptrfunc): Reorganize.
636 Use subtraction rather than a bitmask to get the index.
637 * cvt.c (cp_convert_to_pointer): Bail on an error_mark_node.
638
639 * pt.c (tsubst_expr) [ASM_STMT]: Copy ASM_INPUT_P.
640
a5a49440
NB
6412002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
642
643 * Make-lang.in (decl2.o): Update.
644 * cp-tree.h (warn_multichar): Remove.
645 * decl2.c: Include c-common.h.
646 (warn_multichar): Remove.
647
609688f3
JM
6482002-05-03 Jason Merrill <jason@redhat.com>
649
0abc082a
JM
650 * tree.c (build_cplus_array_type): Only const and volatile get
651 special handling.
652
609688f3
JM
653 * decl.c (BOOL_TYPE_SIZE): Move default to defaults.h.
654
8b16faa2
MM
6552002-04-30 Mark Mitchell <mark@codesourcery.com>
656
394ab947 657 ABI change, returning simple classes from functions.
8b16faa2
MM
658 * class.c (finish_struct_bits): Only mark TREE_ADDRESSABLE if
659 TYPE_HAS_TRIVIAL_INIT_REF is false or
660 TYPE_HAS_NONTRIVIAL_DESTRUCTOR is true.
661
ac905924
JM
6622002-04-30 Jason Merrill <jason@redhat.com>
663
2cb008af 664 PR debug/6436
ac905924
JM
665 * decl.c (grokdeclarator): Don't override TYPE_NAME of an
666 anonymous class with a typedef if there are attributes.
667
e6e81f1c 6682002-04-29 Paul Eggert <eggert@twinsun.com>
b819d9e0 669
e6e81f1c 670 * parse.y (nomods_initdcl0): Replace $<ttype>3 with $<ttype>$.
b819d9e0 671
3a73bffb
JJ
6722002-04-29 Jakub Jelinek <jakub@redhat.com>
673
674 PR c++/6477
675 * decl.c (follow_tag_typedef): Check if TYPE_NAME (original) is
676 non-NULL first.
677
33dd07ee
MM
6782002-04-29 Mark Mitchell <mark@codesourcery.com>
679
680 PR c++/6492
681 * pt.c (tsubst_friend_class): If the friend has an explicit scope,
682 enter that scope before name lookup.
683
684 PR c++/6486
685 * method.c (do_build_copy_constructor): Avoid building
686 cv-qualified reference types.
500abaa8 687
4bd7c270
NS
6882002-04-29 Nathan Sidwell <nathan@codesourcery.com>
689
690 PR c++/5719
500abaa8 691 * decl.c (grok_op_properties): Assignment ops don't have to return
4bd7c270
NS
692 by value. operator% should.
693
45806a3f
FS
6942002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
695
696 PR c/6343
697 * decl.c (duplicate_decls): Call merge_weak.
698
94a50397
RH
6992002-04-26 Richard Henderson <rth@redhat.com>
700
701 * parse.y (malloced_yyss, malloced_yyvs): New.
702 (yyoverflow): Re-add. Set them.
703 (free_parser_stacks): New.
704
7d793e9b
MM
7052002-04-26 Mark Mitchell <mark@codesourcery.com>
706
707 PR c++/6497
708 * method.c (do_build_assign_ref): Pass a derivation to
709 build_method_call when calling base class assignment operators.
710
bde3c0c0
RH
7112002-04-26 Richard Henderson <rth@redhat.com>
712
713 * parse.y (yyoverflow): Revert.
714
b84a3874
RH
7152002-04-26 Richard Henderson <rth@redhat.com>
716
717 PR c/3581
718 * parse.y (string): Remove. Update all uses to use STRING
719 instead, and not call combine_strings.
720 * rtti.c (tinfo_name): Use fix_string_type.
721 * semantics.c (finish_asm_stmt): Don't call combine_strings.
722 * spew.c (yylexstring): New.
723 (read_token): Use it.
724
6052bef0
RH
7252002-04-25 Richard Henderson <rth@redhat.com>
726
727 PR c/2161
728 * parse.y (yyoverflow): New.
729
8d1f0f67
JM
7302002-04-25 Jason Merrill <jason@redhat.com>
731
732 PR c++/5607
733 * search.c (check_final_overrider): No longer static.
734 * class.c (update_vtable_entry_for_fn): Call it.
735 * cp-tree.h: Adjust.
736
ff45c01e
NB
7372002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
738
739 * cp-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
740 * cp-tree.h (cxx_set_yydebug): Die.
741 * lex.c (YYDEBUG): Get from c-lex.h.
742 (cxx_set_yydebug): Remove.
743 * parse.y: Include c-lex.h.
744 (YYDEBUG): Get from c-lex.h.
745
a62d375f
MM
7462002-04-24 Mark Mitchell <mark@codesourcery.com>
747
748 PR c++/6438.
749 * cvt.c (convert_to_void): Don't unconditionally make COND_EXPRs
750 void.
751
349ae713
NB
7522002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
753
754 * cp-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
755 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE):
756 Redefine.
757 * cp-tree.h (cp_attribute_table): Rename.
758 * decl.c (lang_attribute_table): Remove declaration.
759 (cxx_init_decl_processing): Don't set it.
760 * tree.c (cp_attribute_table): Rename.
761
b602511f
JM
7622002-04-24 Jason Merrill <jason@redhat.com>
763
985723ce
JM
764 PR c++/6331
765 * method.c (do_build_copy_constructor): Use cp_build_qualified_type.
766 * typeck.c (build_modify_expr): Allow arrays to differ in cv-quals.
a49cfba8
JM
767 The pedwarn for array assignment is now unconditional.
768 * tree.c (build_cplus_array_type_1): Still process simple array types
769 normally in templates.
985723ce 770
b602511f
JM
771 PR c++/6395
772 * decl.c (make_rtl_for_nonlocal_decl): Don't mess with #pragma i/i
773 stuff for comdats.
774
29cece2e
JJ
7752002-04-23 Jakub Jelinek <jakub@redhat.com>
776
777 * parse.y (check_class_key): Allow KEY to be union/enum/struct/class
778 node with attributes.
779
515387dc
DB
7802002-2-23 David O'Brien <obrien@FreeBSD.org>
781
782 * g++spec.c (MATH_LIBRARY_PROFILE, LIBSTDCXX_PROFILE): Add.
783 Use MATH_LIBRARY_PROFILE and LIBSTDCXX_PROFILE if profile flag given.
784
77adef84
MM
7852002-04-23 Mark Mitchell <mark@codesourcery.com>
786
787 PR c++/6256:
788 * pt.c (tsubst_friend_class): Handle templates with explicit
789 nested names.
790
791 PR c++/6331:
792 * typeck.c (merge_types): Remember the cv-qualification of pointer
793 types when merging them.
794
b03e38e1
NB
7952002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
796
797 * cp-lang.c (LANG_HOOKS_FUNCTION_INIT,
798 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_MARK): Redefine.
799 * cp-tree.h (cxx_push_function_context, cxx_pop_function_context,
800 cxx_mark_function_context): New.
801 * decl.c (push_cp_function_context, pop_cp_function_context,
802 mark_cp_function_context): Rename for consistency.
803 (cxx_init_decl_processing): Don't set old hooks.
804
ab393bf1
NB
8052002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
806
807 * call.c (convert_type_from_ellipsis): Rename, update.
808 * cp-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
809 * cp-tree.h (convert_type_from_ellipsis): Rename.
810 * decl.c (cxx_init_decl_processing): Don't set hook.
811
7a228918
NB
8122002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
813
814 * call.c (build_new_method_call): Update.
815 * cp-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
816 * cp-tree.h (cxx_incomplete_type_error): New.
817 * decl.c (grokdeclarator, grokparms): Update.
818 * decl2.c (check_classfn): Update.
819 * pt.c (tsubst): Update.
820 * typeck.c (complete_type_or_else, expr_sizeof,
821 decay_conversion): Update.
822 * typeck2.c (incomplete_type_error): Rename.
823 (add_exception_specifier): Update.
824
8152c320
JM
8252002-04-18 Jason Merrill <jason@redhat.com>
826
827 PR c++/5658
828 * search.c (setup_class_bindings): A class template qualifies as a
829 type binding.
830
32121b96
JJ
8312002-04-17 Jakub Jelinek <jakub@redhat.com>
832
833 PR c++/6316
834 * decl2.c (finish_file): Clear DECL_EXTERNAL in a separate loop
835 before expanding.
836
b2123dc0
MM
8372002-04-16 Mark Mitchell <mark@codesourcery.com>
838
839 * init.c (begin_init_stmts): Remove commented out code.
840 (finish_init_stmts): Set STMT_EXPR_NO_SCOPE.
841 * semantics.c (begin_gobal_stmt_expr): Adjust call to
842 expand_start_stmt_expr.
500abaa8 843
0f268005
MM
8442002-04-15 Mark Mitchell <mark@codesourcery.com>
845
846 * decl.c (register_dtor_fn): Pass the address of dso_handle, not
847 dso_handle itself, to __cxa_atexit.
848
bd6bec6b
GDR
8492002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
850
851 * error.c (cxx_print_error_function): Adjust call to macros.
852
0f490a2b
JJ
8532002-04-14 Jakub Jelinek <jakub@redhat.com>
854
855 * class.c (layout_virtual_bases): Do all dsize computation on trees.
856
85b7def6
JM
8572002-04-14 Jason Merrill <jason@redhat.com>
858
859 * typeck.c (get_member_function_from_ptrfunc): Don't do
860 gratuitious division and multiplication on
861 ptrmemfunc_vbit_in_delta targets.
862
0481bc21
MM
8632002-04-12 Mark Mitchell <mark@codesourcery.com>
864
865 PR c++/5373.
866 * semantics.c (finish_expr_stmt): Remember the type of the
867 expression before any conversions are performed.
868
9928a3d5
MM
8692002-04-12 Mark Mitchell <mark@codesourcery.com>
870
871 PR c++/5189.
872 * call.c (add_template_candidate_real): Do not treat member
873 templates as copy constructors.
874
c740732f
MM
8752002-04-12 Mark Mitchell <mark@codesourcery.com>
876
877 * decl.c (duplicate_decls): Do not copy the RTL for a variable
878 declaration if the old variable had an incomplete type and the new
879 variable does not.
880 (complete_vars): Do not call layout_decl for completed variables.
881
4782bd5b
RS
8822002-04-12 Richard Sandiford <rsandifo@redhat.com>
883
884 * decl.c (duplicate_decls): Don't try to unify an implicit typedef
885 with an explicit one.
886 (follow_tag_typedef): New.
887 (lookup_tag): Use it to extract the tag of an explicit typedef.
888 (xref_tag): Likewise.
889
2f4d058f
AH
8902002-04-11 Andrew Haley <aph@redhat.com>
891
892 * typeck.c (type_after_usual_arithmetic_conversions):
893 If two types have the same variant, return immediately.
500abaa8 894 When two floating-point operands are the same precision:
2f4d058f
AH
895 convert to float if one of the operands is float;
896 if neither operand is one of the standard types, return the type
897 of the first operand.
500abaa8 898
ba3307c0
NS
8992002-04-10 Nathan Sidwell <nathan@codesourcery.com>
900
901 PR c++/5507
902 * decl.c (make_typename_type): Remove implicit typenameness.
903
cd6af0c1
JM
9042002-04-09 Jason Merrill <jason@redhat.com>
905
edf5cd1d
JM
906 PR optimization/6189
907 * semantics.c (genrtl_start_function): Don't free
908 DECL_SAVED_FUNCTION_DATA for inline functions.
909
cd6af0c1
JM
910 * init.c (build_member_call): For now, don't convert to
911 intermediate base if it would cause an error.
912
224e6091
PC
9132002-04-08 Paolo Carlini <pcarlini@unitus.it>
914
915 * parse.y (namespace_qualifier, maybe_identifier,
916 begin_explicit_instantiation, end_explicit_instantiation,
917 apparent_template_type, .finish_template_type,
918 do_id, maybe_init, defarg_again, component_decl_1):
919 Add ending ';', in accordance with POSIX.
920
0154eaa8
MM
9212002-04-06 Mark Mitchell <mark@codesourcery.com>
922
923 PR c++/5571
924 * class.c (layout_class_type): Remember incomplete static
925 variables.
926 (finish_struct_1): Call complete_vars, not
927 hack_incomplete_structures.
928 * cp-tree.h (hack_incomplete_structures): Rename to ...
929 (complete_vars): ... this.
930 (struct saved_scope): Remove incomplete.
931 (namespace_scope_incomplete): Remove.
932 * decl.c (struct binding_level): Remove incomplete.
933 (incomplete_vars): New variable.
934 (mark_binding_level): Don't mark incomplete.
935 (print_binding_level): Don't print it.
936 (mark_saved_scope): Don't mark incomplete.
937 (pushdecl): Use maybe_register_incopmlete_var.
938 (cxx_init_decl_processing): Register incomplete_vars for GC.
939 (start_decl_1): Clarify error message.
940 (hack_incomplete_vars): Remove.
941 (maybe_register_incomplete_var): New function.
942 (complete_vars): Likewise.
943
f62ea157
JM
9442002-04-06 Jason Merrill <jason@redhat.com>
945
03da5286
JM
946 PR c++/4934
947 * error.c (dump_expr) [CONVERT_EXPR]: Make sure TREE_TYPE (t) is
948 set before checking it.
949
a29e1034
JM
950 PR c++/525
951 * init.c (build_member_call): Use build_scoped_ref.
952 (resolve_offset_ref): Likewise.
953 * call.c (build_scoped_method_call): Likewise.
500abaa8 954 * tree.c (maybe_dummy_object): Kludge around current_class_type being
a29e1034
JM
955 wrong.
956 * typeck2.c (build_scoped_ref): Return the binfo via binfo_p parm.
957 * cp-tree.h: Adjust.
500abaa8 958
a29e1034
JM
959 * init.c (push_base_cleanups): Just use build_scoped_method_call.
960
f62ea157 961 PR c++/6179
500abaa8 962 * method.c (implicitly_declare_fn): Pass unqualified type to
f62ea157
JM
963 synthesize_exception_spec.
964
78ef5b89
NB
9652002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
966
967 * cp-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
968 * cvt.c: Update comment.
969 * init.c (expand_cleanup_for_base): Update.
970 * semantics.c (finish_parenthesized_expr): Update.
971 * typeck.c (cp_truthvalue_conversion): Update.
972
dffa4176
JM
9732002-04-04 Jason Merrill <jason@redhat.com>
974
659e5a7a
JM
975 * semantics.c (finish_eh_cleanup): New fn.
976 * cp-tree.h: Add prototype.
500abaa8 977 * init.c (perform_member_init, expand_cleanup_for_base): Use
659e5a7a
JM
978 finish_eh_cleanup.
979 * cp-tree.def (SUBOBJECT, CTOR_STMT): Remove.
980 * cp-tree.h: Remove references.
981 * decl.c (begin_constructor_body, end_constructor_body): Likewise.
982 * dump.c (cp_dump_tree): Likewise.
983 * pt.c (tsubst_expr): Likewise.
984 * semantics.c (genrtl_ctor_stmt, genrtl_subobject): Remove.
985 (cp_expand_stmt): Remove handling of CTOR_STMT and SUBOBJECT.
986 * tree.c (cp_statement_code_p): Likewise.
987
988 * init.c (build_new_1): Set CLEANUP_EH_ONLY on deleting cleanup.
989
990 PR c++/5636
991 * semantics.c (nullify_returns_r): Just set CLEANUP_EH_ONLY on
992 cleanup for nrv.
993
dffa4176
JM
994 PR c++/5104
995 * typeck.c (comptypes) [FUNCTION_TYPE]: Don't compare exception
996 specifiers.
997 [METHOD_TYPE]: Use same code as FUNCTION_TYPE.
998
ef4f94ac
RH
9992002-04-03 Richard Henderson <rth@redhat.com>
1000
1001 * cp-lang.c (cxx_warn_unused_global_decl): New.
1002 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1003
599bba86
NB
10042002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
1005
1006 * cp-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Redefine.
1007 * tree.c (init_tree): Don't set hook.
1008
cba2004a
RS
10092002-04-03 Roger Sayle <roger@eyesopen.com>
1010
1011 PR c++/5998:
1012 * decl.c (duplicate_decls): Don't mess with assembler names when
1013 redeclaring builtin functions as static.
1014
dffd7eb6
NB
10152002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
1016
1017 * call.c (build_addr_func): Update.
1018 * class.c (resolve_address_of_overloaded_function): Update.
1019 * cp-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1020 * cp-tree.h (cxx_mark_addressable): New.
1021 * decl.c (register_dtor_fn, cxx_maybe_build_cleanup): Update.
1022 * decl2.c (build_cleanup): Update.
1023 * except.c (build_throw): Update.
1024 * init.c (resolve_offset_ref): Update.
1025 * pt.c (convert_nontype_argument): Update.
1026 * semantics.c (finish_asm_stmt, simplify_affr_init_exprs_r): Update.
1027 * typeck.c (decay_conversion, build_array_ref, build_unary_op,
1028 unary_complex_lvalue): Update.
1029 (mark_addressable): Rename.
1030
04a9d080
RS
10312002-04-01 Roger Sayle <roger@eyesopen.com>
1032
1033 PR c++/5998:
1034 * decl.c (duplicate_decls): Overwrite the RTL when (and only
1035 when) overwriting a built-in function. Don't use COPY_DECL_RTL,
1036 but follow the SET_DECL_RTL idiom used elsewhere in the function.
1037
ceef8ce4
NB
10382002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
1039
1040 * cp-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1041 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1042 * decl.c (grokdeclarator): Update.
1043 * mangle.c (write_integer_cst): Update.
1044 * typeck.c (build_binary_op): Update.
1045
48a7a235
NB
10462002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
1047
1048 * cp-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1049 * lex.c (cxx_init): Don't set hook.
1050
7cb32822
NB
10512002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
1052
1053 * Make-lang.in (error.o): Update.
1054 * cp-lang.c (LANG_HOOKS_PRINT_ERROR_FUNCTION): Redefine.
1055 * cp-tree.h (struct diagnostic_context): Predeclare.
1056 (cxx_print_error_function): New.
1057 * error.c: Include langhooks-def.h.
1058 (lang_print_error_function): Rename. Update.
1059 (init_error): Don't set hook.
1060
b0c48229
NB
10612002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
1062
1063 * cp-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
1064 Redefine.
1065 * cvt.c (cp_convert_to_pointer, type_promotes_to): Use new hooks.
1066 * decl.c (finish_enum): Similarly.
1067 * error.c (dump_type): Similarly.
1068 * lex.c (cxx_init): Similarly.
1069 * mangle.c (write_builtin_type): Similarly.
1070 * typeck.c (comptypes): Similarly.
1071
d52e4867
RS
10722002-03-28 Roger Sayle <roger@eyesopen.com>
1073
1074 PR c++/5998:
1075 * decl.c (cxx_init_decl_processing): Re-enable built-in functions
1076 in the g++ front-end.
1077 (duplicate_decl): Allow redefinition of anticipated built-ins.
1078 Fix inlining problem by over-writing the old DECL_RTL.
1079 (lookup_namespace_name): Fail to find an identifier in the
1080 specified namespace if its still anticipated.
1081 (builtin_function_1): New function split out from builtin_function
1082 to create a builtin in the current namespace with given context.
1083 (builtin_function): Call builtin_function_1 to define the
1084 appropriate builtins in both the std and global namespaces.
1085 (select_decl): Don't test for anticipated decls here.
1086 (unqualified_namespace_lookup): Instead ignore them whilst
1087 searching through scopes and namespaces.
1088 * decl2.c (do_nonmember_using_decl): If a using declaration
1089 specifies an anticipated built-in function, mark it as no longer
1090 anticipated in that scope.
1091 (ambiguous_decl): Avoid resolving to an anticipated decl.
1092 * lex.c (do_scoped_id): Fail to find an identifier in the global
1093 namespace if its still anticipated.
1094
f1e639b1
NB
10952002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
1096
1097 * cp-lang.c (LANG_HOOKS_MAKE_TYPE): Redefine.
1098 * cp-tree.h (cp_make_lang_type): Rename.
1099 * lex.c (cp_make_lang_type): Rename.
1100 (make_aggr_type): Update.
1101 * tree.c (init_tree): Don't set make_lang_type_fn.
1102
c7f4981a
JJ
11032002-03-29 Jakub Jelinek <jakub@redhat.com>
1104
1105 PR c++/6073
1106 * class.c (finish_struct_1): Update static field's DECL_MODE even
1107 if its type is a variant of t.
1108
7ffb4fd2
NB
11092002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
1110
1111 * cp-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
1112 * cp-tree.h (cxx_insert_default_attributes): New.
1113 * decl.c (insert_default_attributes): Rename.
1114
cd4e8331
MM
11152002-03-27 Mark Mitchell <mark@codesourcery.com>
1116
1117 PR c++/4884
1118 * call.c (build_op_delete_call): Allow for the fact the placement
1119 may be a COMPOUND_EXPR.
500abaa8 1120
c9d892a8
NB
11212002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
1122
1123 * cp-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
1124 * cp-tree.h (init_cplus_expand): Remove.
1125 (cxx_expand_expr): New.
1126 * expr.c (cplus_expand_expr): Rename cxx_expand_expr,
1127 fix prototype.
1128 (init_cplus_expand): Remove.
1129 * lex.c (cxx_init): Don't call init_cplus_expand.
1130
46ff5047
MM
11312002-03-26 Mark Mitchell <mark@codesourcery.com>
1132
1133 PR c++/4884.
1134 * init.c (build_new_1): Allow for the fact the result of
1135 build_function_call may be a COMPOUND_EXPR.
1136
6d4c57a0
NS
11372002-03-26 Nathan Sidwell <nathan@codesourcery.com>
1138
1139 PR c++/5682
1140 * cp-tree.h (BINFO_PRIMARY_P): Explain meaning better.
1141 (dfs_skip_nonprimary_vbases_unmarkedp): Remove.
1142 (dfs_skip_nonprimary_vbases_markedp): Remove.
1143 * search.c (get_shared_vbase_if_not_primary): Remove.
1144 (dfs_skip_nonprimary_vbases_unmarkedp): Remove.
1145 (dfs_skip_nonprimary_vbases_markedp): Remove.
1146 (dfs_unmarked_real_bases_queue_p): Just get the canonical binfo.
1147 (dfs_marked_real_bases_queue_p): Likewise.
1148
4f0ade92
NB
11492002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
1150
1151 * cp-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
1152 * cp-tree.h (cxx_mark_tree): New.
1153 * decl.c (lang_mark_tree): Rename cxx_mark_tree.
1154
c88770e9
NB
11552002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
1156
1157 * cp-tree.h (cxx_maybe_build_cleanup): New.
1158 * decl.c (destroy_local_var, hack_incomplete_structures): Update.
1159 (maybe_build_cleanup): Rename cxx_maybe_build_cleanup.
1160 * tree.c (build_target_expr): Update.
7b3e5198 1161 * cp-lang.c (LANG_HOOKS_MAYBE_BUILD_CLEANUP): Redefine.
c88770e9 1162
aaf93206
NB
11632002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
1164
1165 * decl2.c (cxx_decode_option): Handle -E.
1166 * lang-specs.h (default_compilers): Preprocess with cc1plus.
1167 * lex.c (cxx_init): Exit quickly if c_common_init returns NULL.
1168
e756a7da
JJ
11692002-03-23 Jakub Jelinek <jakub@redhat.com>
1170
1171 PR c++/6037
1172 * decl.c (start_enum): Don't set TREE_ADDRESSABLE on TREE_LIST node.
1173
ea9264e9
GDR
11742002-03-23 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
1175
1176 * error.c (dump_type): Be careful about implicit typenames.
1177
acb044ee
GDR
11782002-03-21 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
1179
1180 PR C++/3656
1181 * semantics.c (finish_base_specifier): Handle erronous base
500abaa8 1182 classes.
acb044ee 1183
b216cd4a
ZW
11842002-03-22 Zack Weinberg <zack@codesourcery.com>
1185
1186 * error.c: Always use REAL_VALUE_TO_DECIMAL; don't test
1187 REAL_IS_NOT_DOUBLE.
1188
9181f8db
JK
11892002-03-22 Jeff Knaggs <jknaggs@redhat.com>
1190
cd6af0c1
JM
1191 * typeck.c (get_member_function_from_ptrfunc): Scale idx down to
1192 an index into the vtable_entry array regardless of
9181f8db
JK
1193 TARGET_PTRMEMFUNC_VBIT_LOCATION.
1194
e019cf95
AH
11952002-03-21 Aldy Hernandez <aldyh@redhat.com>
1196
84d901be 1197 * tree.c (cp_cannot_inline_tree_fn): Same.
e019cf95 1198
43577e6b
NB
11992002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
1200
1201 * cp-tree.h (pushdecl, pushlevel, poplevel, set_block,
1202 insert_block, getdecls, global_bindings_p): New.
1203
8c152bad
NS
12042002-03-20 Nathan Sidwell <nathan@codesourcery.com>
1205
1206 PR c++/4361
1207 * mangle.c (struct globals) Add internal_mangling_p member.
1208 (write_template_param): Do internal mangling, if needed.
1209 (mangle_conv_op_name_for_type): Request internal mangling.
1210
e3fe84e5
JM
12112002-03-20 Jason Merrill <jason@redhat.com>
1212
1213 PR c++/2136
1214 * init.c (build_delete): Check access for a member op delete here.
1215 * decl2.c (delete_sanity): Not here.
1216
ea122333
JM
12172002-03-19 Jason Merrill <jason@redhat.com>
1218
1219 PR c++/5118
1220 * class.c (get_vfield_name): Use the constructor_name.
1221
7afff7cf
NB
12222002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
1223
1224 * cp-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
1225 * cp-tree.h (lang_printable_name): Rename.
1226 * error.c (lang_decl_name): Use new hook.
1227 * lex.c (cxx_init): Remove old hook.
1228 * pt.c (tsubst_decl): Use new hook.
1229 * tree.c (lang_printable_name): Rename.
1230
ff77ac85
EB
12312002-03-18 Eric Botcazou <ebotcazou@multimania.com>
1232
1233 PR c++/3882
1234 * pt.c (tsubst_decl): Move __PRETTY_FUNCTION__ handling...
1235 (tsubst_expr) [DECL_STMT]: ...here. And substitute the initializer
1236 only after recording the declaration.
1237
ffd696af
JM
12382002-03-18 Jason Merrill <jason@redhat.com>
1239
097955f2
JM
1240 PR c++/2039
1241 * init.c (resolve_offset_ref): Hand off to build_component_ref.
1242
b663bcf3
JM
1243 PR c++/4222, c++/5995
1244 * call.c (build_over_call): Fix empty class logic.
1245
0f4237c2
JM
1246 PR c++/3870
1247 * cp-tree.h (struct saved_scope): Add last_parms field.
1248 * decl.c (maybe_push_to_top_level): Save last_function_parms.
1249 (pop_from_top_level): Restore it.
1250
001ad76c
JM
1251 PR c++/4377
1252 * mangle.c (write_expression): Strip NOP_EXPRs sooner. Also strip
1253 NON_LVALUE_EXPRs.
1254
1255 PR c++/4003
ed2fa432
JM
1256 * pt.c (tsubst_friend_function): Use decl_namespace_context.
1257
ffd696af
JM
1258 PR c++/3948 -- C++ ABI change, followup to 2001-12-18 patch.
1259 * class.c (finish_struct_bits): Also set TREE_ADDRESSABLE for a
1260 type with a nontrivial destructor.
1261
f2606a97
JM
12622002-03-17 Jason Merrill <jason@redhat.com>
1263
1264 PR c++/4460
1265 * class.c (build_base_path): Virtual base layout is fixed in
1266 in-charge [cd]tors.
1267
52dabb6c
NB
12682002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
1269
1270 * cp-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
1271 * parse.y (yyparse): Remove macro.
1272
beb9c8a2
JM
12732002-03-17 Jason Merrill <jason@redhat.com>
1274
1275 PR c++/5757
1276 * init.c (build_new_1): Pass the right pointer to op delete.
1277
5dd236e2
NS
12782002-03-16 Nathan Sidwell <nathan@codesourcery.com>
1279
1280 PR c++/4361
1281 * cp-tree.h (CLASSTYPE_METHOD_VEC): Document where templated
1282 conversion operators go.
1283 (struct lang_decl_flags): Add template_conv_p and unused
1284 bitfields.
1285 (DECL_TEMPLATE_CONV_FN_P): New macro.
1286 * call.c (build_user_type_conversion_1): Don't check second type
1287 conversion of overload set first.
1288 * class.c (add_method): Make sure templated conversion operators
1289 all end up on slot 2.
1290 * lex.c (do_identifier): A conversion operator token might be
1291 satisfied by a templated conversion operator.
5dd236e2
NS
1292 * pt.c (check_explicit_specialization): Use
1293 CLASSTYPE_FIRST_CONVERSION_SLOT.
1294 (template_parm_this_level_p): New function.
1295 (push_template_decl_real): Determine DECL_TEMPLATE_CONV_FN_P.
8c152bad 1296 * search.c (lookup_fnfields_1): Template conversions will be on
5dd236e2
NS
1297 the first slot.
1298 * typeck.c (build_component_ref): Preserve the type of an
1299 conversion operator name on the overload type.
1300 (build_x_function_call): Retrieve the conversion operator name.
1301
0ba20759
RH
13022002-03-15 Richard Henderson <rth@redhat.com>
1303
1304 * init.c (build_new_1): Use size_binop instead of cp_build_binary_op.
1305
6e4ae815
MM
13062002-03-15 Mark Mitchell <mark@codesourcery.com>
1307
1308 * cp-tree.h (CLEANUP_DECL): Remove.
1309 (CLEANUP_EXPR): Likewise.
1310 * decl.c (destroy_local_var): Simplify.
1311 (maybe_build_cleanup): Tidy.
1312 * dump.c (cp_dump_tree): Remove handling of CLEANUP_STMT.
1313 * semantics.c (cp_expand_stmt): Likewise.
1314 * cp/tree.c (cp_statement_code_p): Likewise.
1315
5cc90635
JM
13162002-03-15 Jason Merrill <jason@redhat.com>
1317
6da794e8
JM
1318 PR c++/5857
1319 * decl.c (duplicate_decls): Use merge_types instead of common_type.
1320 * typeck.c (common_type): Just hand off to
1321 type_after_usual_arithmetic_conversions and
1322 composite_pointer_type.
1323 (merge_types): New fn.
1324 (commonparms): Use it instead of common_type.
1325 (type_after_usual_arithmetic_conversions): Also handle COMPLEX_TYPE.
1326 (composite_pointer_type): Also handle attributes.
1327 * cp-tree.h: Declare merge_types.
1328
5cc90635
JM
1329 * decl.c (make_rtl_for_nonlocal_decl): Also defer COMDAT
1330 variables.
1331 * decl2.c (maybe_make_one_only): Also mark the decl as needed.
1332
ecb0eece
RH
13332002-03-14 Richard Henderson <rth@redhat.com>
1334
1335 * decl.c: Include c-pragma.h.
1336 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
1337 * Make-lang.in: Update dependencies.
1338
d3f129b3
JJ
13392002-03-14 Jakub Jelinek <jakub@redhat.com>
1340
f6562b37 1341 PR c++/5908
d3f129b3
JJ
1342 * call.c (build_over_call): Set TREE_NO_UNUSED_WARNING too.
1343 * cvt.c (convert_to_void): Preserve TREE_NO_UNUSED_WARNING.
1344
049e6879
RS
13452002-03-12 Richard Sandiford <rsandifo@redhat.com>
1346
1347 * mangle.c (write_builtin_type): Handle 128-bit integers even if
1348 they are not a standard integer type.
1349
872c9284
RS
13502002-03-12 Richard Sandiford <rsandifo@redhat.com>
1351
1352 * cp-tree.h (init_init_processing): Remove declaration.
1353 * init.c (BI_header_type, init_init_processing): Remove old ABI stuff.
1354 * decl.c (cxx_init_decl_processing): Don't call init_init_processing.
1355
2f9834e8
KG
13562002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1357
1358 * cp-lang.c (tree_code_type, tree_code_length, tree_code_name):
1359 Define.
1360 * decl.c (duplicate_decls): Use TREE_CODE_LENGTH, not
1361 tree_code_length.
1362 * lex.c (cplus_tree_code_type, cplus_tree_code_length,
1363 cplus_tree_code_name): Delete.
1364 (cxx_init): Don't call add_c_tree_codes, instead set
1365 lang_unsafe_for_reeval. Don't try to copy into the various
1366 tree_code arrays.
1367
df867456
NS
13682002-03-12 Nathan Sidwell <nathan@codesourcery.com>
1369
1370 PR c++/5659
1371 * decl.c (xref_tag): Don't set CLASSTYPE_DECLARED_CLASS here.
1372 * decl2.c (handle_class_head): Set CLASSTYPE_DECLARED_CLASS for
1373 definitions.
1374
ab04e34b
NS
13752002-03-11 Nathan Sidwell <nathan@codesourcery.com>
1376
1377 Revert 2001-03-26 Nathan Sidwell <nathan@codesourcery.com>,
1378 DR209 is now not a defect.
1379 * cp-tree.h (skip_type_access_control): Remove.
1380 * decl.c (grokdeclarator): Do type access control for friend
1381 declarations.
1382 * semantics.c (decl_type_access_control): Don't reset
1383 current_type_lookups.
1384 (save_type_access_control): Always save the lookups.
1385 (skip_type_access_control): Remove.
1386 (finish_class_definition): Don't change type_lookups.
1387
999cc24c
NS
13882002-03-11 Nathan Sidwell <nathan@codesourcery.com>
1389
1390 Revert 2000-12-01 Nathan Sidwell <nathan@codesourcery.com>,
1391 It is incorrect.
1392 * typeck.c (build_static_cast): Compare non-qualified types
1393 with pointer to member conversions.
1394
61eece67
DN
13952002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
1396 Daniel Berlin <dan@dberlin.org>
1397
1398 * cp-lang.c (ok_to_generate_alias_set_for_type): New function.
1399 (cxx_get_alias_set): Use it.
1400
644d28d4
KG
14012002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1402
1403 * cp-tree.h (stabilize_expr): Prototype.
1404
7e326356
CR
14052002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
1406
1407 * cp-tree.h (CLEAR_BINFO_MARKED): Make both parts of
1408 conditional return void.
1409
24965e7a
NB
14102002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
1411
1412 * cp-lang.c (LANG_HOOKS_UNSAVE): Redefine.
1413 * cp-tree.h (cxx_unsave): New.
1414 * tree.c (cp_unsave): Rename cxx_unsave, update prototype.
1415 (init_tree): Update.
1416
ca7558fc
KG
14172002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1418
1419 * decl.c (cxx_init_decl_processing): Use ARRAY_SIZE in lieu of
1420 explicit sizeof/sizeof.
1421 * decl2.c (cxx_decode_option): Likewise.
1422 * lex.c (init_reswords, REDUCE_LENGTH, TOKEN_LENGTH): Likewise.
1423
fd87b7a7
NS
14242002-03-02 Nathan Sidwell <nathan@codesourcery.com>
1425
1426 PR c++/775
1427 * decl.c (lookup_tag): Only reject enum/class mismatch, not
1428 class/union mismatch.
1429 * parse.y (check_class_key): New function.
1430 (structsp): Call it.
1431
bfba94bd
MM
14322002-03-01 Michael Matz <matz@suse.de>
1433
1434 * typeck.c (cp_pointer_int_sum): Complete inner type which is
1435 used later by size_in_bytes().
1436
fdc9bf29
PE
14372002-03-01 Phil Edwards <pme@gcc.gnu.org>
1438
1439 * cp-tree.h: Require __GNUC__ to be #defined.
1440 (build_init): Add missing prototype.
1441
6f30f1f1
JM
14422002-03-01 Jason Merrill <jason@redhat.com>
1443
1444 * except.c: Don't include decl.h or obstack.h. Do include
1445 tree-inline.h.
1446 (build_throw): Destroy temporaries from the thrown
500abaa8 1447 expression before calling __cxa_throw. Construct a thrown
6f30f1f1
JM
1448 temporary directly into the exception object.
1449 (stabilize_throw_expr): New function.
1450 (wrap_cleanups_r): New function.
1451 * tree.c (stabilize_expr): New function.
1452 * init.c (build_init): New function.
1453 * Make-lang.in (cp/except.o): Adjust .h deps.
1454
46cfb101
JM
14552002-02-28 Jason Merrill <jason@redhat.com>
1456
07f521fc
JM
1457 * search.c (lookup_base_r): Don't clear is_non_public just because
1458 we found a friendly scope.
1459
46cfb101
JM
1460 * decl.c (finish_function): Only warn about missing return
1461 statement with -Wreturn-type.
1462
63e1b1c4
NB
14632002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
1464
1465 * class.c (build_clone): Update.
1466 * cp-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
1467 * cp-tree.h (cxx_dup_lang_specific_decl): New.
1468 * lex.c (copy_lang_decl): Rename cxx_dup_lang_specific_decl.
1469 (copy_decl): Update.
1470 * method.c (make_thunk): Update.
1471
f458d1d5
ZW
14722002-02-27 Zack Weinberg <zack@codesourcery.com>
1473
1474 * decl2.c: Delete traditional-mode-related code copied from
1475 the C front end but not used, or used only to permit the
1476 compiler to link.
1477
500abaa8 14782002-02-24 Craig Rodrigues <rodrigc@gcc.gnu.org>
3387d36e
CR
1479
1480 PR c++/4093
1481 * cp-tree.h (SET_BINFO_MARKED): Cast false part of condition
1482 to void.
1483
25c8b645
JJ
14842002-02-22 Jakub Jelinek <jakub@redhat.com>
1485
1486 PR other/5746
1487 * semantics.c (finish_switch_cond): Don't call get_unwidened
1488 if error_mark_node.
1489
4f2b0fb2
NS
14902002-02-22 Nathan Sidwell <nathan@codesourcery.com>
1491
1492 PR c++/2645, DR 295
1493 * cp-tree.h (tsubst_flags_t): Add tf_ignore_bad_quals,
1494 tf_keep_type_decl.
1495 (make_typename_type): Use tsubst_flags_t.
1496 * decl.c (make_typename_type): Adjust. Return non-artificial
1497 TYPE_DECLs, if required.
1498 (grokdeclarator): Simplify CVR qualification handling. Allow bad
1499 qualifiers on typedef types.
1500 * decl2.c (handle_class_head): Adjust make_typename_type call.
1501 * parse.y (nested_name_specifier): Likewise.
1502 (typename_sub0): Likewise.
1503 (typename_sub1): Likewise.
1504 * pt.c (convert_template_argument): Adjust make_typename_type
1505 return value.
1506 (tsubst): Adjust cp_build_qualified_type_real calls.
1507 (check_cv_quals_for_unify): Cope with alowing bad qualifications
1508 on template type parms.
1509 (instantiate_decl): Recheck substitutions to give warnings on bad
1510 qualifications.
1511 * tree.c (cp_build_qualified_type_real): Use tf_allow_bad_quals.
1512
8fc2ba41
AH
15132002-02-21 Aldy Hernandez <aldyh@redhat.com>
1514
84d901be 1515 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
8fc2ba41 1516
84d901be
AD
1517 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
1518 unless DECL_ALWAYS_INLINE.
8fc2ba41 1519
7552da58
JJ
15202002-02-20 Jakub Jelinek <jakub@redhat.com>
1521
1522 * typeck.c (cp_pointer_int_sum): Renamed from
1523 pointer_int_sum, call pointer_int_sum.
1524
00fae85d
JJ
15252002-02-20 Jakub Jelinek <jakub@redhat.com>
1526
1527 * decl.c (duplicate_decls): Return 0 if issued error about
1528 redeclaration.
1529
6ea868b7
JM
15302002-02-19 Jason Merrill <jason@redhat.com>
1531
500abaa8 1532 ABI change: Mangle `void (A::*)() const' as
6ea868b7
JM
1533 M1AKFvvE, not MK1AFvvE.
1534 * mangle.c (write_function_type): Write cv-quals for member
1535 function type here.
1536 (write_pointer_to_member_type): Not here.
1537
c02f5e29
JM
15382002-02-18 Jason Merrill <jason@redhat.com>
1539
1540 * pt.c (do_type_instantiation): Don't pedwarn if in_system_header.
1541 (do_decl_instantiation): Likewise.
1542
624a5800
CR
15432002-02-17 Craig Rodrigues <rodrigc@gcc.gnu.org>
1544
1545 PR c++/5685
1546 * decl.c (duplicate_decls): Make warning unconditional
1547 if duplicate default argument declarations are present.
1548
f6f8ada3
JJ
15492002-02-17 Jakub Jelinek <jakub@redhat.com>
1550
1551 * typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
1552 shortening.
1553
8d6e459d
NS
15542002-02-15 Nathan Sidwell <nathan@codesourcery.com>
1555
1556 * decl.c (grokdeclarator): Set typedef_decl for all TYPE_DECLs,
1557 remove incorrect comment. Move #if 0'd code to common path. Use
1558 IMPLICIT_TYPENAME_P. Simplify & reformat ARRAY_TYPE duplication.
1559
ca4feb54
JM
15602002-02-13 Jason Merrill <jason@redhat.com>
1561
57d5032b
JM
1562 * decl.c (builtin_function): Set TREE_THIS_VOLATILE on return fns.
1563 (finish_function): Don't warn if current_function_returns_null.
1564
bb26522d
JM
1565 * typeck2.c (digest_init): Do handle values of vector type.
1566
ca4feb54
JM
1567 * typeck2.c (digest_init, process_init_constructor): Treat vectors
1568 like arrays.
1569
e6b9638b
JM
15702002-02-11 Jason Merrill <jason@redhat.com>
1571
1572 * parse.y (reserved_declspecs): Don't handle attributes.
1573 (reserved_typespecquals): Handle them here.
1574 * Make-lang.in (parse.c): Adjust expected conflicts.
1575
1cf537c5
JJ
15762002-02-08 Jakub Jelinek <jakub@redhat.com>
1577
1578 * parse.y (primary, primary_no_id): Use compstmt_or_stmtexpr
1579 instead of compstmt.
1580 (compstmt_or_stmtexpr): Renamed from compstmt.
1581 (compstmt): In addition to compstmt_or_stmtexpr clear last_expr_type.
1582
c2ea3a40
NS
15832002-02-07 Nathan Sidwell <nathan@codesourcery.com>
1584
1585 Rename instantiate_type_flags to tsubst_flags_t & expand use.
1586 * cp-tree.h (instantiate_type_flags): Rename to ...
1587 (tsubst_flags_t): ... here. Rename itf_complain to tf_error,
1588 add tf_warning flag.
1589 (instantiate_type): Adjust prototype.
1590 (tsubst, tsubst_expr, tsubst_copy, lookup_template_class,
1591 do_type_instantiation, cp_build_qualified_type_real): Likewise.
1592 cp_build_qualified_type: Adjust.
1593 * class.c (instantiate_type): Adjust parameter. Rename itf_* to
1594 tf_*.
1595 * call.c (standard_conversion): Rename itf_* to tf_*.
1596 (reference_binding): Likewise.
1597 (convert_like_real): Likewise.
1598 * cvt.c (cp_convert_to_pointer): Likewise.
1599 (convert_to_reference): Likewise.
1600 * decl.c (lookup_namespace_name): Use tf_* flags.
1601 (make_typename_type): Likewise.
1602 (grokdeclarator): Likewise.
1603 * pt.c (convert_nontype_argument): Adjust COMPLAIN usage.
1604 (coerce_template_template_parms, convert_template_argument,
1605 coerce_template_parms, maybe_get_template_decl_from_type_decl,
1606 lookup_template_class, tsubst_friend_function, tsubst_friend_class,
500abaa8
AJ
1607 instantiate_class_template, tsubst_template_arg_vector,
1608 tsubst_template_parms, tsubst_aggr_type, tsubst_default_argument,
c2ea3a40 1609 tsubst_decl, tsubst_arg_types, tsubst_function_type,
500abaa8 1610 tsubst_call_declarator_parms, tsubst, tsubst_copy, tsubst_expr,
c2ea3a40 1611 instantiate_template, fn_type_unification,
500abaa8
AJ
1612 resolve_overloaded_unification, verify_class_unification,
1613 unify, get_bindings_real, do_type_instantiation,
1614 regenerate_decl_from_template, instantiate_decl,
c2ea3a40
NS
1615 tsubst_initializer_list, tsubst_enum,
1616 get_mostly_instantiated_function_type,
1617 invalid_nontype_parm_type_p): Likewise.
1618 * tree.c (cp_build_qualified_type_real): Likewise.
1619 * typeck.c (build_binary_op): Rename itf_* to tf_*.
1620 (build_ptrmemfunc): Likewise.
1621 (convert_for_assignment): Likewise.
1622
d5614afb
NS
16232002-02-07 Nathan Sidwell <nathan@codesourcery.com>
1624
1625 PR c++/109
1626 * decl.c (grokdeclarator): Allow friend declarations from
8d6e459d 1627 dependent types.
d5614afb
NS
1628 * decl2.c (handle_class_head): Don't push into template parm contexts.
1629 * pt.c (push_template_decl_real): Template parm contexts are never
1630 being defined.
1631
1af6141b
AO
16322002-02-05 Alexandre Oliva <aoliva@redhat.com>
1633
1634 * class.c: Include target.h.
1635 (check_bitfield_decl): Disregard EMPTY_FIELD_BOUNDARY,
1636 BITFIELDS_NBYTES_LIMITED and PCC_BITFIELD_TYPE_MATTERS for MS
1637 bit-field layout.
1638 * Make-lang.in: Adjust deps.
1639
d8a6f584
JM
16402002-02-05 Jason Merrill <jason@redhat.com>
1641
1642 * error.c (dump_type): Be more helpful about VECTOR_TYPE.
1643
6f9fdf4d
JJ
16442002-02-04 Jakub Jelinek <jakub@redhat.com>
1645
1646 * semantics.c (begin_switch_stmt): Clear SWITCH_TYPE.
1647 (finish_switch_cond): Set SWITCH_TYPE.
1648
14691f8d
RH
16492002-02-04 Richard Henderson <rth@redhat.com>
1650
1651 * method.c (use_thunk): Always initialize the block tree. Reindent.
1652 * semantics.c (expand_body): Emit thunks after function, not before.
1653
e89a6075
JM
16542002-02-04 Jason Merrill <jason@redhat.com>
1655
1656 * decl.c (start_function): Call cplus_decl_attributes immediately
1657 after grokdeclarator.
1658
1659 * decl.c (start_function): Combine DECL_RESULT handling code.
1660
9780c24f
JM
16612002-02-03 Jason Merrill <jason@redhat.com>
1662
1663 * xref.c: Remove.
1664 * Make-lang.in (CXX_OBJS): Remove cp/xref.o
1665 (cp/xref.o): Remove dependencies.
1666 * class.c (finish_struct_1, check_methods): Don't call xref fns.
1667 (finish_struct_1): Likewise.
1668 * friend.c (make_friend_class): Likewise.
1669 * lex.c (cxx_init, cxx_finish, extract_interface_info): Likewise.
1670 * spew.c (read_process_identifier): Likewise.
1671
65f36ac8
JM
16722002-02-01 Jason Merrill <jason@redhat.com>
1673
efe49da0 1674 PR c++/4872
500abaa8 1675 * decl.c (finish_function): Warn about a non-void function with
efe49da0
JM
1676 no return statement and no abnormal exit.
1677 * cp-tree.h (struct cp_language_function): Add returns_abnormally.
1678 (current_function_returns_abnormally): New macro.
1679 * call.c (build_call): Set it.
1680
f2d9afec
JM
1681 * typeck.c (build_component_ref): Always complain about offsetof
1682 constructs on non-PODs. Only make it an error for members of
1683 virtual bases.
1684
65f36ac8
JM
1685 * error.c (dump_scope): Don't add TFF_DECL_SPECIFIERS.
1686 (dump_function_decl): Always dump parms.
1687
1688 * decl2.c (finish_static_data_member_decl): Complain about a local
1689 class with a static data member.
1690
1691 PR c++/4286
1692 * search.c (lookup_field_1): Don't xref a static data member
1693 just because we looked it up.
1694
98884b26
JM
16952002-01-31 Jason Merrill <jason@redhat.com>
1696
b88c0704
JM
1697 * Make-lang.in (parse.c): Handle .output file.
1698
a588fe25
JM
1699 PR c++/3395
1700 * decl.c (xref_tag): Remember early attributes in TYPE_ATTRIBUTES,
1701 not TREE_TYPE.
1702 * semantics.c (finish_class_definition): Adjust.
1703
98884b26
JM
1704 Allow attributes in parms and casts.
1705 * parse.y (named_parm): Don't strip attrs.
1706 (declmods): Remove 'attributes' production.
1707 (nonempty_cv_qualifiers): Accept attributes.
1708 (ATTRIBUTE): Give precedence.
1709 * decl.c (groktypename): Handle attributes.
1710 (grokparms): Likewise.
1711
ffdeea47
JJ
17122002-01-29 Jakub Jelinek <jakub@redhat.com>
1713
1714 * decl2.c (cxx_decode_option): Pass 0 as last argument to
1715 cpp_handle_option.
1716 * lang-specs.h: Use cpp_unique_options instead of cpp_options
1717 when used together with cc1_options.
1718
b8b98c66
NS
17192002-01-29 Nathan Sidwell <nathan@codesourcery.com>
1720
1721 PR c++/5132
1722 * typeck2.c (digest_init): Make sure non-array core type is
1723 instantiated.
1724 * decl2.c (reparse_absdcl_as_casts): Just store the type in the
1725 constructor, rather than build a new one.
1726 (build_expr_from_tree, CONSTRUCTOR case): Be careful with the
1727 PURPOSE of constructor elts.
1728
7437519c
ZW
17292002-01-23 Zack Weinberg <zack@codesourcery.com>
1730
1731 * Make-lang.in (parse.c): Adjust expected number of
1732 shift-reduce conflicts.
1733 (decl.o): Depend on diagnostic.h.
1734 * decl.c: Include diagnostic.h.
1735 (grokdeclarator): Check for null pointer.
1736 (finish_function): Don't abort when
1737 current_binding_level->parm_flag != 1, if errors have
1738 occurred; throw away the statement tree and extra binding
1739 levels, and continue.
1740 * lex.c (note_list_got_semicolon): Check for null pointer.
1741 * method.c (hack_identifier): Just return error_mark_node if
1742 value is error_mark_node.
1743 * parse.y (primary: TYPEID(type_id)): No need to use
1744 TYPE_MAIN_VARIANT here.
1745 (handler_seq): Accept an empty list of catch clauses and
1746 generate a fake handler block to avoid later crashes.
1747 (ansi_raise_identifier): Accept the error token too.
1748 * semantics.c (begin_class_definition,
1749 finish_class_definition): Check for error_mark_node.
1750
c588e52b
ZW
17512002-01-23 Zack Weinberg <zack@codesourcery.com>
1752
1753 * typeck2.c (friendly_abort): Delete definition.
1754 * cp-tree.h (friendly_abort): Don't prototype.
1755 (my_friendly_assert): Use fancy_abort.
1756
d55ecaa4
CR
17572002-01-23 Craig Rodrigues <rodrigc@gcc.gnu.org>
1758
1759 * cp-tree.h (my_friendly_abort): Remove.
1760
0a01c261
JJ
17612002-01-23 Jakub Jelinek <jakub@redhat.com>
1762
1763 * spew.c (pending_inlines, pending_inlines_tail,
1764 processing_these_inlines): Make static.
1765 (mark_pending_inlines): Remove static.
1766 (begin_parsing_inclass_inline): If in function, save pi
1767 for GC to cp_function_chain->unparsed_inlines instead.
1768 (process_next_inline): Likewise.
1769 * cp-tree.h (struct cp_language_function): Add unparsed_inlines.
1770 (mark_pending_inlines): Add prototype.
1771 * decl.c (spew_debug): Remove unused extern.
1772 (mark_lang_function): Call mark_pending_inlines.
1773
a98facb0
CR
17742002-01-23 Craig Rodrigues <rodrigc@gcc.gnu.org>
1775
c588e52b
ZW
1776 * call.c, class.c, decl.c, decl2.c, error.c, expr.c, friend.c,
1777 init.c, lex.c, mangle.c, method.c, pt.c, repo.c, rtti.c, search.c,
1778 semantics.c, spew.c, tree.c, typeck.c, typeck2.c, xref.c:
a98facb0
CR
1779 Change my_fancy_abort() to abort().
1780
f893c16e
JM
17812002-01-23 Jason Merrill <jason@redhat.com>
1782
608afcc5
JM
1783 PR c++/5453
1784 * class.c (fixed_type_or_null): Fix thinko.
1785
f893c16e
JM
1786 PR c++/3331
1787 * init.c (resolve_offset_ref): Use build_indirect_ref.
6bc34b14 1788
b2115575
JM
1789 * decl2.c (grokclassfn): Don't set DECL_REGISTER on 'this'.
1790
f893c16e
JM
17912002-01-22 Jason Merrill <jason@redhat.com>
1792
b5856475
JM
1793 * parse.y (function_body): Suppress the block for the outermost
1794 curly braces.
1795 * decl.c (pushdecl): Don't try to skip it.
1796 (begin_function_body): Keep the block we create, not the next one.
1797 * init.c (emit_base_init): Don't mess with keep_next_level.
1798
6bc34b14
JM
1799 * class.c (build_base_path): Tweak formatting.
1800
3807621a
NS
18012002-01-19 Nathan Sidwell <nathan@codesourcery.com>
1802
1803 Fix regression introduced with patch for c++/775
1804 * parse.y (class_head_defn): Check for template specializations
1805 with a different class-key.
1806
cdd2559c
JM
18072002-01-17 Jason Merrill <jason@redhat.com>
1808
1809 * decl.c (begin_constructor_body, begin_destructor_body): New fns.
1810 (begin_function_body): Call them and keep_next_level.
1811 * init.c (emit_base_init): Call keep_next_level.
1812 * semantics.c (setup_vtbl_ptr): Lose.
1813 * cp-tree.h (struct cp_language_function): Remove vtbls_set_up_p.
1814 (vtbls_set_up_p): Lose.
1815 * pt.c (tsubst_expr, CTOR_INITIALIZER): Call emit_base_init.
1816 * method.c (do_build_copy_constructor): Likewise.
1817 (synthesize_method): Call finish_mem_initializers.
1818 * parse.y (nodecls): Likewise.
ad6b1795
JM
1819
1820 * error.c (dump_type_suffix): Print the exception specs before
1821 recursing.
1822 (dump_function_decl): Here, too.
1823
1824 * cp-tree.h (TMPL_PARMS_DEPTH): Cast to signed HOST_WIDE_INT.
1825
195a5def
IR
18262002-01-10 Ira Ruben <ira@apple.com>
1827
6bc34b14 1828 PR c++/907
195a5def
IR
1829 * decl.c (start_method): Handle attrlist.
1830
f21ee879
JJ
18312002-01-10 Jakub Jelinek <jakub@redhat.com>
1832
1833 * decl2.c (max_tinst_depth): Increase default limit to 500.
1834
18352002-01-10 Graham Stott <grahams@redhat.com>
8fabd4e2
GS
1836
1837 * spew.c (YYCHAR): Uppercase macro parameter and add
1838 parenthesis.
1839 (YYCODE): Likewise.
1840 (NAME): Uppercase macro parameter.
1841
c3af729a
GS
18422002-01-09 Graham Stott <grahams@redhat.com>
1843
6bc34b14 1844 * decl.h (grokdeclarator): Wrap long line.
5d8b4235 1845
c3af729a
GS
1846 * semantics.c (FINISH_COND): Uppercase macro paramaters and
1847 add parenthesis.
1848
91800747
GS
18492002-01-08 Graham Stott <grahams@redhat.com>
1850
1851 * xref.c (FILE_NAME_ABSOLUTE_P): Add parenthesis.
1852 (PALLOC): Uppercase macro parameter and whitespace.
1853 (SALLOC): Uppercase macro parameter.
1854 (SFREE): Uppercase macros parameter, add parenthese and
1855 whitespace.
1856 (STREQL): Uppercase macro parameter and whitespace.
1857 (STRNEQ): Likewise.
1858 (STRLSS): Likewise.
1859 (STRLEQ): Likewise.
1860 (STRGTR): Likewise.
1861 (STRGEQ): Likewise.
1862
1863 * call.c (convert_like): Add parenthesis and wrap.
1864 (convert_like_with_context): Likewise.
1865 (ICS_RANK): Whitespace.
1866 (NEED_TEMPORARY_P): Remove parenthesis.
1867
1868 * class.c (VTT_TOP_LEVEL_P): Uppercase macro parameter and
1869 whitespace.
1870 (VTT_MARKED_BINFO_P): Likewise.
1871
1872 * decl.c (BINDING_LEVEL): Add parenthesis.
1873 (DEF_OPERATOR): Likewise.
1874
91800747
GS
1875 * mangle.c (MANGLE_TRACE): Add parenthesis.
1876 (MANGLE_TRACE_TREE): Likewise.
1877 (write_signed_number): Likewise.
1878 (write_unsigned_number): Likewise.
1879
1880 * pt.c (ccat): Uppercase macro parameter.
1881 (cat): Likewise
1882
1883 * search.c (SET_BINFO_ACCESS): Add parenthesis.
1884
15eb1e43
JM
18852002-01-07 Jason Merrill <jason@redhat.com>
1886
1887 * decl2.c (coerce_new_type): Downgrade error for size_t mismatch
1888 to pedwarn.
1889
6bc34b14 1890 PR c++/3536
15eb1e43
JM
1891 * method.c (make_thunk): If !flag_weak, give the thunk the
1892 function's linkage.
1893 (use_thunk): Here, too.
1894
b34c06e3
GS
18952002-01-07 Graham Stott <grahams@redhat.com>
1896
6bc34b14
JM
1897 * error.c: Update copyright date.
1898 (print_scope_operator): Add parenthesis.
1899 (print_left_paren): Likewise.
1900 (print_right_paren): Likewise.
1901 (print_left_bracket): Likewise.
1902 (print_right_bracket): Likewise.
1903 (print_template_argument_list_start): Likewise.
1904 (print_template_argument_list_end): Likewise.
1905 (print_non_consecutive_character): Likewise.
1906 (print_tree_identifier): Likewise.
1907 (print_identifier): Likewise.
1908 (NEXT_CODE): Uppercase macro parameter.
1909 (ident_fndecl): Delete unused.
1910 (GLOBAL_THING): Likewise.
b34c06e3 1911
98e40e83
GS
19122002-01-06 Graham Stott <grahams@redhat.com>
1913
1914 * cp-tree.h (VAR_OR_FUNCTION_DECL_CHECK): Add parenthesis.
1915 (VAR_FUNCTION_OR_PARM_DECL_CHECK): Likewise.
1916 (VAR_TEMPL_TYPE_OR_FUNCTION_DECL_CHECK) Likewise.
1917 (RECORD_OR_UNION_TYPE_CHECK): Likewise.
1918 (BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK): Likewise.
1919 (C_IS_RESERVED_WORD): Uppercase macro parameter.
1920 (C_RID_YYCODE) Likewise.
1921 (ptrmem_cst): Use rtx.
1922 (LOCAL_BINDING_P): Add whitespace.
1923 (INHERITED_VALUE_BINDING_P): Likewise.
1924 (BINDING_SCOPE): Wrap long line.
1925 (BINDING_HAS_LEVEL_P): Remove parenthesis.
1926 (BINDING_VALUE): Wrap long line.
1927 (BINDING_TYPE): Whitespace.
1928 (IDENTIFIER_GLOBAL_VALUE): Add parenthesis.
1929 (SET_IDENTIFIER_GLOBAL_VALUE): Likewise.
c588e52b 1930 (IDENTIFIER_NAMESPACE_VALUE): Likewise.
98e40e83
GS
1931 (SET_IDENTIFIER_NAMESPACE_VALUE: Likewise.
1932 (same_type_p): Uppercase macro parameters.
1933 (same_type_ignoring_top_level_qualifiers_p): Likewise.
1934 (OVL_FUNCTION): Wrap long line.
1935 (OVL_CHAIN): Whitespace.
b34c06e3 1936 (OVL_CURRENT): Add parenthesis and whitespace.
98e40e83
GS
1937 (OVL_NEXT): Whitespace.
1938 (OVL_USED): Likewise.
1939 (IDENTIFIER_TYPE_VALUE): Likewise.
1940 (REAL_IDENTIFIER_TYPE_VALUE): Remove parenthesis.
1941 (SET_IDENTIFIER_TYPE_VALUE): Add parenthesis and whitespace.
1942 (LANG_ID_FIELD): Whitespace.
1943 (SET_LANG_ID(NODE,VALUE,NAME): Likewise.
1944 (IDENTIFIER_LABEL_VALUE): Whitespace and wrap.
1945 (SET_IDENTIFIER_LABEL_VALUE): Whitespace.
1946 (IDENTIFIER_IMPLICIT_DECL): Whitespace and wrap.
1947 (SET_IDENTIFIER_IMPLICIT_DECL); Whitespace.
1948 (IDENTIFIER_ERROR_LOCUS): Whitespace and wrap.
1949 (SET_IDENTIFIER_ERROR_LOCUS); Whitespace.
1950 (IDENTIFIER_VIRTUAL_P): Likewise.
1951 (IDENTIFIER_OPNAME_P): Likewise.
1952 (IDENTIFIER_TYPENAME_P): Remove parenthesis.
1953 (C_TYPE_FIELDS_READONLY): Uppercase macro parameters.
1954 (C_SET_EXP_ORIGINAL_CODE): Likewise.
1955 (TYPE_ASSEMBLER_NAME_STRING): Wrap long line.
1956 (TYPE_ASSEMBLER_NAME_LENGTH): Likewise.
1957 (IS_AGGR_TYPE): Uppercase macro parameter.
1958 (CLASS_TYPE_P): Likewise.
1959 (IS_AGGR_TYPE_CODE): Uppercase macro parameter and parenthesis.
1960 (IS_AGGR_TYPE_2): Whitespace.
1961 (TAGGED_TYPE_P): Uppercase macro parameter.
1962 (TYPE_BUILT_IN): Whitespace.
1963 (TYPE_FOR_JAVA): Likewise.
1964 (FUNCTION_ARG_CHAIN): Remove parenthesis.
1965 (FUNCTION_FIRST_USER_PARMTYPE): Add parenthesis.
1966 (FUNCTION_FIRST_USER_PARAM): Likewise.
1967 (PROMOTES_TO_AGGR_TYPE): Whitespace.
1968 (DERIVED_FROM_P): Add parenthesis and wrap.
1969 (UNIQUELY_DERIVED_FROM_P): Likewise.
1970 (ACCESSIBLY_UNIQUELY_DERIVED_P): Likewise.
1971 (PUBLICLY_UNIQUELY_DERIVED_P): Likewise.
1972 (CLASSTYPE_USE_TEMPLATE): Whitespace.
1973 (CLASSTYPE_INLINE_FRIENDS): Remove parenthesis.
1974 (TYPE_GETS_DELETE): Add parenthesis.
1975 (TYPE_HAS_CONVERSION): Add parenthesis and wrap.
1976 (TYPE_HAS_ASSIGN_REF): Likewise,
1977 (TYPE_HAS_CONST_ASSIGN_REF): Likewise.
1978 (TYPE_HAS_INIT_REF): Likewise.
1979 (TYPE_HAS_CONST_INIT_REF): Likewise.
1980 (TYPE_BEING_DEFINED): Likewise.
1981 (TYPE_LANG_SPECIFIC): Likewise.
1982 (CLASSTYPE_RTTI): Likewise.
1983 (TYPE_OVERLOADS_CALL_EXPR): Likewise.
1984 (TYPE_OVERLOADS_ARRAY_REF): Likewise.
1985 (TYPE_OVERLOADS_ARROW): Likewise.
1986 (TYPE_USES_MULTIPLE_INHERITANCE): Likewise.
1987 (TYPE_USES_VIRTUAL_BASECLASSES): Add parenthesis.
1988 (CLASSTYPE_METHOD_VEC): Likewise.
1989 (CLASSTYPE_MARKED_N): Likewise.
1990 (CLASSTYPE_MARKED): Likewise.
1991 (CLASSTYPE_MARKED2): Likewise.
1992 (CLASSTYPE_MARKED3): Likewise.
1993 (CLASSTYPE_MARKED4): Likewise.
1994 (CLASSTYPE_MARKED5): Likewise.
1995 (CLASSTYPE_MARKED6): Likewise.
1996 (SET_CLASSTYPE_MARKED): Whitespace.
1997 (CLEAR_CLASSTYPE_MARKED): Likewise.
1998 (SET_CLASSTYPE_MARKED2): Likewise.
1999 (CLEAR_CLASSTYPE_MARKED2): Likewise.
2000 (SET_CLASSTYPE_MARKED3): Likewise.
2001 (CLEAR_CLASSTYPE_MARKED3): Likewise.
2002 (SET_CLASSTYPE_MARKED4): Likewise.
2003 (CLEAR_CLASSTYPE_MARKED4): Likewise.
2004 (SET_CLASSTYPE_MARKED5): Likewise.
2005 (CLEAR_CLASSTYPE_MARKED5): Likewise.
2006 (SET_CLASSTYPE_MARKED6): Likewise.
2007 (CLEAR_CLASSTYPE_MARKED6): Likewise.
2008 (CLASSTYPE_TAGS): Likewise.
2009 (CLASSTYPE_VSIZE): Likewise.
2010 (CLASSTYPE_VBASECLASSES): Likewise.
2011 (CANONICAL_BINFO): Add parenthesis.
2012 (CLASSTYPE_SIZE(NODE): Likewise.
2013 (CLASSTYPE_SIZE_UNIT): Likewise.
2014 (CLASSTYPE_ALIGN(NODE): Likewise.
2015 (CLASSTYPE_USER_ALIGN): Likewise.
2016 (TYPE_JAVA_INTERFACE): Likewise.
2017 (CLASSTYPE_PURE_VIRTUALS): Likewise.
2018 (CLASSTYPE_NEEDS_VIRTUAL_REINIT): Whitespace and wrap.
2019 (TYPE_HAS_DEFAULT_CONSTRUCTOR): Likewise.
2020 (CLASSTYPE_HAS_MUTABLE): Likewise.
2021 (CLASSTYPE_FRIEND_CLASSES): Likewise. Likewise.
2022 (CLASSTYPE_DECLARED_CLASS): Whitespace and wrap.
2023 (CLASSTYPE_READONLY_FIELDS_NEED_INIT): Likewise.
2024 (CLASSTYPE_REF_FIELDS_NEED_INIT): Likewise.
2025 (CLASSTYPE_INTERFACE_ONLY): Likewise.
2026 (CLASSTYPE_INTERFACE_KNOWN): Likewise.
2027 (CLASSTYPE_INTERFACE_UNKNOWN): Likewise.
2028 (SET_CLASSTYPE_INTERFACE_UNKNOWN_X): Likewise.
2029 (SET_CLASSTYPE_INTERFACE_UNKNOWN): Likewise.
2030 (SET_CLASSTYPE_INTERFACE_KNOWN): Likewise.
2031 (CLASSTYPE_DEBUG_REQUESTED): Whitespace and wrap.
2032 (BINFO_UNSHARED_MARKED): Whitespace.
2033 (BINFO_MARKED): Whitespace and wrap.
2034 (SET_BINFO_MARKED): Likewise.
2035 (CLEAR_BINFO_MARKED): Likewise.
2036 (BINFO_VTABLE_PATH_MARKED): Likewise.
2037 (SET_BINFO_VTABLE_PATH_MARKED): Likewise.
2038 (CLEAR_BINFO_VTABLE_PATH_MARKED): Likewise.
2039 (BINFO_SUBVTT_INDEX): Remove parenthesis.
2040 (BINFO_VPTR_INDEX): Likewise.
2041 (BINFO_PRIMARY_BASE_OF): Likewise,
2042 (CLASSTYPE_VFIELDS): Whitespace.
2043 (VF_DERIVED_VALUE): Wrap long line.
2044 (NAMESPACE_LEVEL): Whitespace.
6bc34b14
JM
2045 (CAN_HAVE_FULL_LANG_DECL_P): Remove parenthesis.
2046 (DEFARG_POINTER): Whitespace.
2047 (DECL_NEEDED_P): Remove parenthesis.
2048 (DECL_LANGUAGE): Whitespace.
2049 (SET_DECL_LANGUAGE): Add parenthesis.
2050 (DECL_CONSTRUCTOR_P): Whitespace and wrap.
2051 (DECL_OVERLOADED_OPERATOR_P): Remove parenthesis.
2052 (DECL_IN_AGGR_P): Whitespace.
2053 (DECL_FRIEND_P): Likewise.
2054 (DECL_BEFRIENDING_CLASSES): Likewise.
2055 (DECL_STATIC_FUNCTION_P): Whitespace and wrap.
2056 (DECL_NONCONVERTING_P): Whitespace.
2057 (DECL_PURE_VIRTUAL_P): Likewise.
2058 (DECL_NEEDS_FINAL_OVERRIDER_P): Likewise.
2059 (DECL_PENDING_INLINE_INFO): Whitespace.
2060 (DECL_SORTED_FIELDS): Likewise.
2061 (DECL_DEFERRED_FN): Likewise.
2062 (DECL_TEMPLATE_INFO): Likewise.
2063 (CLASSTYPE_TEMPLATE_INFO): Whitespace and wrap.
2064 (TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO); Likewise.
2065 (SET_TYPE_TEMPLATE_INFO): Add parenthesis.
2066 (TMPL_ARGS_LEVEL): Likewise.
2067 (SET_TMPL_ARGS_LEVEL): Likewise.
2068 (INNERMOST_TEMPLATE_PARMS): Whitespace.
2069 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter.
2070 (INTEGRAL_CODE_P(CODE): Add parenthesis.
2071 (CP_INTEGRAL_TYPE_P): Remove parenthesis.
2072 (TYPE_HAS_CONSTRUCTOR): Whitespace.
2073 (TREE_HAS_CONSTRUCTOR): Likewise.
2074 (TYPE_HAS_DESTRUCTOR): Likewise.
2075 (TYPE_HAS_REAL_ASSIGN_REF): Likewise.
2076 (TYPE_HAS_COMPLEX_ASSIGN_REF): Likewise.
2077 (TYPE_HAS_ABSTRACT_ASSIGN_REF): Likewise.
2078 (TYPE_HAS_COMPLEX_INIT_REF): Likewise.
2079 (TYPE_HAS_NONTRIVIAL_DESTRUCTOR): Likewise.
2080 (TYPE_PTRMEMFUNC_P): Likewise.
2081 (TYPE_PTRMEMFUNC_FLAG): Likewise.
2082 (TYPE_GET_PTRMEMFUNC_TYPE): Likewise.
2083 (TYPE_SET_PTRMEMFUNC_TYPE): Likewise.
2084 (TYPE_PTRMEM_CLASS_TYPE): Remove parenthesis.
2085 (TYPE_PTRMEM_POINTED_TO_TYPE): Likewise.
2086 (DECL_ACCESS): Whitespace.
2087 (DECL_GLOBAL_CTOR_P): Remove parenthesis.
2088 (DECL_GLOBAL_DTOR_P): Likewise.
2089 (GLOBAL_INIT_PRIORITY): Likewise.
98e40e83 2090 (DECL_TEMPLATE_PARMS): Likewise.
6bc34b14
JM
2091 (DECL_TEMPLATE_RESULT): Likewise.
2092 (DECL_TEMPLATE_INSTANTIATIONS): Likewise.
2093 (DECL_TEMPLATE_SPECIALIZATIONS): Likewise.
2094 (DECL_IMPLICIT_TYPEDEF_P): Remove parenthesis.
2095 (SET_DECL_IMPLICIT_TYPEDEF_P): Likewise.
2096 (PRIMARY_TEMPLATE_P): Add parenthesis.
2097 (DECL_USE_TEMPLATE): Whitespace.
2098 (CLASSTYPE_IMPLICIT_INSTANTIATION): Likewise.
2099 (SET_CLASSTYPE_IMPLICIT_INSTANTIATION): Likewise.
2100 (CLASSTYPE_EXPLICIT_INSTANTIATION): Likewise.
2101 (SET_CLASSTYPE_EXPLICIT_INSTANTIATION): Likewise.
2102 (CALL_DECLARATOR_PARMS): Remove parenthesis.
2103 (CALL_DECLARATOR_QUALS): Likewise.
2104 (CALL_DECLARATOR_EXCEPTION_SPEC): Likewise.
2105 (TEMP_NAME_P): Wrap.
2106 (VFIELD_NAME_P): Likewise.
2107 (B_SET): Uppercase macro parameters and add parenthesis.
2108 (B_CLR): Likewise.
2109 (B_TST): Likewise.
2110 (LOOKUP_NAMESPACES_ONLY): Uppercase macro parameters.
2111 (LOOKUP_TYPES_ONLY): Uppercase macro parameters.
2112 (LOOKUP_QUALIFIERS_ONLY): Uppercase macro parameters.
2113 (same_or_base_type_p): Likewise.
2114 (cp_deprecated): Likewise.
98e40e83 2115
c28abdf0
RH
21162002-01-05 Richard Henderson <rth@redhat.com>
2117
15eb1e43 2118 * semantics.c (expand_body): Revert last change.
c28abdf0 2119
f11ee281
JM
21202002-01-04 Jason Merrill <jason@redhat.com>
2121
195a5def 2122 PR c++/4122
f11ee281
JM
2123 * class.c (update_vtable_entry_for_fn): Set delta to zero for a
2124 lost primary.
2125
2126 * class.c (build_vtbl_initializer): Check for a lost primary
2127 before calculating the vtable entry to throw away.
2128
a4200657
JM
21292002-01-02 Jason Merrill <jason@redhat.com>
2130
2131 * semantics.c (expand_body): Call outlining_inline_function when
2132 emitting an inline function out of line.
2133
40e593d7
NS
21342002-01-02 Nathan Sidwell <nathan@codesourcery.com>
2135
2136 PR c++/5116, c++/764 reversion
2137 * call.c (build_new_op): Revert the instantiations. They are
2138 incorrect.
c588e52b 2139
323728aa
NS
21402002-01-02 Nathan Sidwell <nathan@codesourcery.com>
2141
2142 PR c++/5089
2143 * decl2.c (reparse_absdcl_as_casts): Don't warn about casts to void.
2144
46c895ac
NS
21452002-01-02 Nathan Sidwell <nathan@codesourcery.com>
2146
2147 PR c++/3716
2148 * pt.c (tsubst_aggr_type): Move pmf handling into tsubst.
2149 (tsubst, case POINTER_TYPE): Handle pmfs here.
2150 (tsubst, case OFFSET_TYPE): Check it is not an offset to
2151 reference. If it is offset to FUNCTION_TYPE, create a METHOD_TYPE.
2152
833aa4c4
NS
21532002-01-02 Nathan Sidwell <nathan@codesourcery.com>
2154
2155 PR c++/35
2156 * cp-tree.h (DECL_LANG_FLAG_0): Used for PARM_DECL too.
2157 (DECL_TEMPLATE_PARM_P): A PARM_DECL might be one too.
2158 * pt.c (process_template_parm): SET_DECL_TEMPLATE_PARM_P on the
2159 PARM_DECL.
2160 (tsubst_template_parms): Break up loop statements.
2161 (tsubst_decl, case PARM_DECL): Copy DECL_TEMPLATE_PARM_P. Template
2162 parm PARM_DECLs don't get promoted.
2163
18976b21
NS
21642002-01-02 Nathan Sidwell <nathan@codesourcery.com>
2165
2166 PR c++/5123
2167 * typeck.c (build_component_ref): Cope with a TEMPLATE_ID_EXPR.
2168 (build_x_function_call): Cope with a COMPONENT_REF containing a
2169 TEMPLATE_ID_EXPR.
2170
303d1c55
NS
21712002-01-02 Nathan Sidwell <nathan@codesourcery.com>
2172
2173 PR c++/5213
2174 * pt.c (convert_template_argument): Be more careful determining
2175 when RECORD_TYPE templates are or are not templates.
2176
d46a33b3
NS
21772002-01-02 Nathan Sidwell <nathan@codesourcery.com>
2178
2179 PR c++/775
2180 * cp-tree.h (handle_class_head): Adjust prototype.
2181 * decl2.c (handle_class_head): Add DEFN_P and NEW_TYPE_P
2182 parameters. Use for all class heads.
2183 * parse.y (named_class_head_sans_basetype, named_class_head,
2184 named_complex_class_head_sans_basetype,
2185 named_class_head_sans_basetype_defn,
2186 unnamed_class_head): Remove.
2187 (class_head, class_head_apparent_template): Recognize class heads
2188 (class_head_decl, class_head_defn): New reductions. Process class
2189 heads.
2190 (structsp): Adjust class definition and class declaration
2191 reductions.
2192 (maybe_base_class_list): Give diagnostic on empty list.
2193
4542128e
NS
21942002-01-02 Nathan Sidwell <nathan@codesourcery.com>
2195
2196 PR c++/4379
2197 * typeck.c (build_x_unary_op): Don't destroy the OFFSET_REF on a
2198 single non-static member.
2199 (unary_complex_lvalue): If it cannot be a pointer to member, don't
2200 make it so. Check it is not pointer to reference.
2201
903c6234
NS
22022002-01-02 Nathan Sidwell <nathan@codesourcery.com>
2203
2204 PR c++/5132
2205 * decl2.c (reparse_absdcl_as_casts): Don't digest_init if we
2206 are processing a template decl.
2207
477558bf
NS
22082002-01-02 Nathan Sidwell <nathan@codesourcery.com>
2209
2210 PR c++/5116, c++/764
2211 * call.c (build_new_op): Make sure template class operands are
2212 instantiated. Simplify arglist construction.
2213
41f5d4b1
NS
22142001-12-29 Nathan Sidwell <nathan@codesourcery.com>
2215
2216 * call.c (build_user_type_conversion_1): Use my_friendly_assert
2217 rather than if ... abort.
2218 * cvt.c (convert_to_reference): Likewise.
2219 * semantics.c (setup_vtbl_ptr): Likewise.
2220 * pt.c (lookup_template_class): Comment typo.
c588e52b 2221
f3368a90
NS
22222001-12-29 Nathan Sidwell <nathan@codesourcery.com>
2223
2224 PR c++/5125
2225 * pt.c (push_template_decl_real): Make sure DECL has
2226 DECL_LANG_SPECIFIC.
2227
03c9c274
NS
22282001-12-29 Nathan Sidwell <nathan@codesourcery.com>
2229
2230 PR c++/335
2231 * init.c (resolve_offset_ref): Copy cv qualifiers of this pointer
2232 for non-reference fields.
2233 * typeck.c (require_complete_type): Use resolve_offset_ref).
2234
7d8e8369
NS
22352001-12-26 Nathan Sidwell <nathan@codesourcery.com>
2236
2237 PR c++/196
03c9c274 2238 * parse.y (bad_parm): Better diagnostic when given a SCOPE_REF.
7d8e8369 2239
a56ca899
NS
22402001-12-24 Nathan Sidwell <nathan@codesourcery.com>
2241
2242 PR c++/160
2243 * typeck.c (build_modify_expr): Remove old unreachable code & tidy
2244 up. Don't stabilize_references when initializing a reference.
2245
0b5826ac
KG
22462001-12-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2247
2248 * decl2.c (lang_f_options): Const-ify.
2249
38be19f6
JM
22502001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
2251
2252 * config-lang.in (diff_excludes): Remove.
2253
2e4cf9dc
NS
22542001-12-19 Nathan Sidwell <nathan@codesourcery.com>
2255
2256 PR c++/90
2257 * typeck.c (build_function_call_real): Use original function
2258 expression for errors.
2259
00e4119c
JM
22602001-12-18 Jason Merrill <jason@redhat.com>
2261
195a5def 2262 PR c++/3242
00e4119c
JM
2263 * class.c (add_method): Do compare 'this' quals when trying to match a
2264 used function. Don't defer to another used function.
2265
3ad97789
NS
22662001-12-18 Nathan Sidwell <nathan@codesourcery.com>
2267
2268 * pt.c (instantiate_clone): Remove, fold into ...
2269 (instantiate_template): ... here. Simplify by removing mutual
2270 recursion.
2271 * typeck2.c (build_m_component_ref): Don't cv qualify the function
2272 pointed to by a pointer to function.
2273 * class.c (delete_duplicate_fields_1): Typo.
2274
f21add07
JM
22752001-12-18 Jason Merrill <jason@redhat.com>
2276
2277 C++ ABI change: destroy value arguments in caller.
2278 * semantics.c (genrtl_start_function, genrtl_finish_function): Don't
2279 create an extra binding level for the parameters.
2280 * decl.c (store_parm_decls): Don't do parameter cleanups.
2281
ea50ad82
NS
22822001-12-18 Nathan Sidwell <nathan@codesourcery.com>
2283
2284 * call.c (build_new_method_call): Use '%#V'.
2285 * error.c (cv_to_string): Use V parameter to determine padding.
2286
3855d0d1
JM
22872001-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
2288
2289 * call.c, decl2.c, init.c: Use "built-in" and "bit-field"
2290 spellings in messages.
2291
33bd39a2
ZW
22922001-12-17 Zack Weinberg <zack@codesourcery.com>
2293
2294 * cp-tree.h: Delete #defines for cp_error, cp_warning,
2295 cp_pedwarn, and cp_compiler_error.
2296 * call.c, class.c, cp-tree.h, cvt.c, decl.c, decl2.c, error.c,
2297 except.c, friend.c, init.c, lex.c, method.c, parse.y, pt.c,
2298 rtti.c, search.c, semantics.c, spew.c, tree.c, typeck.c,
2299 typeck2.c: Change calls to the above macros to use their
2300 language-independent equivalents: error, warning, pedwarn, and
2301 internal_error respectively.
2302
317c26c3
NB
23032001-12-16 Neil Booth <neil@daikokuya.demon.co.uk>
2304
2305 * decl2.c (finish_file): Remove back_end_hook.
2306
aba649ba
JM
23072001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
2308
2309 * ChangeLog.1, ChangeLog.2, ChangeLog, NEWS, call.c, class.c,
2310 cp-tree.h, decl.c, decl2.c, except.c, operators.def, optimize.c,
2311 pt.c, rtti.c, semantics.c, typeck.c: Fix spelling errors.
2312
1737c953
JM
23132001-12-15 Joseph S. Myers <jsm28@cam.ac.uk>
2314
2315 * lang-options.h: Use American spelling in messages.
2316
4a90862e
JM
23172001-12-13 Jason Merrill <jason@redhat.com>
2318
ade3dc07
JM
2319 * Make-lang.in (parse.h): Separate rule, just depend on parse.c.
2320
2321 Use cleanups to run base and member destructors.
2322 * init.c (push_base_cleanups): New function, split out from...
2323 (build_delete): ...here. Lose !TYPE_HAS_DESTRUCTOR code.
2324 * decl.c (finish_destructor_body): Move vbase destruction code to
2325 push_base_cleanups.
2326 (begin_function_body, finish_function_body): New fns.
2327 (finish_function): Move [cd]tor handling and call_poplevel to
2328 finish_function_body.
2329 (pushdecl): Skip the new level.
2330 * semantics.c (genrtl_try_block): Don't call end_protect_partials.
2331 (setup_vtbl_ptr): Call push_base_cleanups.
2332 * method.c (synthesize_method): Call {begin,end}_function_body.
2333 * pt.c (tsubst_expr): Handle COMPOUND_STMT_BODY_BLOCK.
2334 * cp-tree.h: Declare new fns.
2335 * parse.y (function_body, .begin_function_body): New nonterminals.
2336 (fndef, pending_inline, function_try_block): Use function_body.
2337 (ctor_initializer_opt, function_try_block): No longer has a value.
2338 (base_init): Remove .set_base_init token.
2339 (.set_base_init, compstmt_or_error): Remove.
2340 * Make-lang.in (parse.c): Expect two fewer s/r conflicts.
2341
4a90862e
JM
2342 * optimize.c (maybe_clone_body): Fix parameter updating.
2343
a0de9d20
JM
23442001-12-12 Jason Merrill <jason@redhat.com>
2345
2346 * decl.c (store_parm_decls): Remove parms_have_cleanups cruft.
2347 * semantics.c (genrtl_start_function): Don't pass
2348 parms_have_cleanups or push an extra binding level.
2349 (genrtl_finish_function): Lose cleanup_label cruft.
2350
2351 * cp-tree.h (struct cp_language_function): Remove x_ctor_label.
2352 (ctor_label): Remove.
2353 * semantics.c (finish_return_stmt): Lose ctor_label support.
2354 * decl.c (finish_constructor_body, mark_lang_function): Likewise.
33bd39a2 2355 * typeck.c (check_return_expr): Check DECL_DESTRUCTOR_P, not
a0de9d20
JM
2356 dtor_label.
2357
2358 * call.c (build_new_method_call): Let resolves_to_fixed_type_p
2359 check for [cd]tors.
2360 * class.c (fixed_type_or_null, case INDIRECT_REF): Fix.
2361
2362 * decl.c (finish_function): Check VMS_TARGET, not VMS.
2363
2364 * decl.c (start_cleanup_fn): Remove redundant pushlevel.
2365 (end_cleanup_fn): And poplevel.
2366
2367 * semantics.c (setup_vtbl_ptr): Always build a CTOR_INITIALIZER
2368 if we're in a template.
2369
dc5c569a
JJ
23702001-12-12 Jakub Jelinek <jakub@redhat.com>
2371
2372 * cp-tree.h (DESTRUCTOR_DECL_PREFIX, DESTRUCTOR_NAME_P,
2373 ANON_PARMNAME_FORMAT, ANON_PARMNAME_P, DESTRUCTOR_NAME_FORMAT,
2374 THIS_NAME_P): Delete.
2375 * spew.c (read_process_identifier): Remove DESTRUCTOR_NAME_P,
2376 THIS_NAME_P and ANON_PARMNAME_P tests from warning about clash
2377 with internal naming scheme.
2378 * error.c (dump_decl): Remove DESTRUCTOR_NAME_P use.
2379
ad1a6d45
NS
23802001-12-12 Nathan Sidwell <nathan@codesourcery.com>
2381
2382 * decl.c (grokdeclarator): Deprecated implicit typename use.
2383
270d8c65
NS
23842001-12-11 Nathan Sidwell <nathan@codesourcery.com>
2385
2386 PR g++/51
2387 * parse.y (frob_specs): Indicate it is a language linkage which
2388 contained the extern.
2389 * decl.c (grokdeclarator): Allow extern language linkage with
2390 other specifiers.
2391
9aaceb4b
NS
23922001-12-10 Nathan Sidwell <nathan@codesourcery.com>
2393
2394 PR g++/72
2395 * decl.c (add_binding): Don't reject duplicate typedefs involving
2396 template parameters.
2397
a23c9413
NB
23982001-12-10 Neil Booth <neil@daikokuya.demon.co.uk>
2399
2400 * parse.y, semantics.c: Similarly.
2401
9aaceb4b 24022001-12-09 Nathan Sidwell <nathan@codesourcery.com>
271e6f02
NS
2403
2404 PR g++/87
2405 * cp-tree.h (DECL_COPY_CONSTRUCTOR_P): Use copy_fn_p.
2406 (copy_args_p): Rename to ...
2407 (copy_fn_p): ... here.
2408 (grok_special_member_properties): New function.
2409 (grok_op_properties): Lose VIRTUALP parameter.
2410 (copy_assignment_arg_p): Remove.
2411 * call.c (build_over_call): Use copy_fn_p.
2412 * decl.c (grokfndecl): Reformat. Adjust call to
2413 grok_op_properties.
2414 (copy_args_p): Rename to ...
2415 (copy_fn_p): ... here. Reject template functions. Check for pass
2416 by value.
2417 (grok_special_member_properties): Remember special functions.
2418 (grok_ctor_properties): Don't remember them here, just check.
2419 (grok_op_properties): Likewise.
2420 (start_method): Call grok_special_member_properties.
2421 * decl2.c (grokfield): Likewise.
2422 (copy_assignment_arg_p): Remove.
2423 (grok_function_init): Don't remember abstract assignment here.
2424 * pt.c (instantiate_class_template): Call
2425 grok_special_member_properties.
2426 (tsubst_decl): Adjust grok_op_properties call.
2427
bdd8737f
AH
24282001-12-08 Aldy Hernandez <aldyh@redhat.com>
2429
33bd39a2
ZW
2430 * lex.c (rid_to_yy): Add RID_CHOOSE_EXPR and
2431 RID_TYPES_COMPATIBLE_P.
bdd8737f 2432
46af705a
JDA
24332001-12-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
2434
2435 * semantics.c (simplify_aggr_init_exprs_r): Add DIRECT_BIND flag in
2436 call to build_aggr_init.
2437 * cp-tree.h (DIRECT_BIND): Document new use of DIRECT_BIND.
2438
cb97d97d
NB
24392001-12-08 Neil Booth <neil@daikokuya.demon.co.uk>
2440
2441 * parse.y: Replace uses of the string non-terminal with STRING.
2442 Don't perform string concatentaion here.
2443 (string): Remove non-terminal.
2444 * semantics.c (finish_asm_stmt): Don't concatenate strings here.
2445
742a37d5
JM
24462001-12-05 Jason Merrill <jason@redhat.com>
2447
2448 * cp-lang.c (LANG_HOOKS_TREE_INLINING_START_INLINING): Define.
2449 (LANG_HOOKS_TREE_INLINING_END_INLINING): Define.
2450 * tree.c (cp_start_inlining, cp_end_inlining): New fns.
2451 * pt.c (push_tinst_level): No longer static.
2452 * cp-tree.h: Declare them.
2453
2454 * init.c (resolve_offset_ref): Don't check access for the base
2455 conversion to access a FIELD_DECL.
2456
2457 * cp-tree.h (TYPE_REFFN_P): New macro.
2458 * decl.c (bad_specifiers): Check it, too.
2459
2460 * rtti.c (create_pseudo_type_info): Set CLASSTYPE_INTERFACE_ONLY
2461 on the __*_type_info type if we haven't seen a definition.
2462
26f943fd
NB
24632001-12-05 Neil Booth <neil@daikokuya.demon.co.uk>
2464
2465 * decl.c: Include c-common.h.
2466 (shadow_warning): Move to c-common.c.
2467
37a08a29
RK
2468Wed Dec 5 17:00:49 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2469
2470 * decl.c (duplicate_decls): Don't copy DECL_NO_CHECK_MEMORY_USAGE.
2471
9471d3e2
NS
24722001-12-04 Nathan Sidwell <nathan@codesourcery.com>
2473
2474 * pt.c (end_template_parm_list): Clear TREE_CHAIN of each parm.
2475
713ccd0c
NS
24762001-12-04 Nathan Sidwell <nathan@codesourcery.com>
2477
2478 PR g++/164
2479 * init.c (sort_base_init): Allow binfos to be directly specified.
2480 * method.c (do_build_copy_constructor): Explicitly convert to the
2481 base instance.
2482 (do_build_assign_ref): Likewise.
2483
591382c4
HPN
24842001-12-03 Hans-Peter Nilsson <hp@bitrange.com>
2485
2486 * decl.c (xref_basetypes): Don't use C99 construct in tag_code
2487 declaration and initialization.
2488
c725bd79
NB
24892001-12-03 Neil Booth <neil@daikokuya.demon.co.uk>
2490
2491 * typeck2.c: Remove leading capital from diagnostic messages, as
2492 per GNU coding standards.
2493
a5d7c4a3
MK
24942001-12-03 Mumit Khan <khan@nanotech.wisc.edu>
2495
2496 PR c++/3394
9fe038e8
HPN
2497 * decl.c (xref_basetypes): Handle attributes between
2498 'class' and name.
a5d7c4a3 2499
f1880e13
NS
25002001-12-03 Nathan Sidwell <nathan@codesourcery.com>
2501
2502 PR g++/3381
2503 * parse.y (named_complex_class_head_sans_basetype): Add new
2504 reduction.
2505 * Make-lang.in (parse.c): Adjust expected conflict count.
2506
ff668506
JM
25072001-12-03 Jason Merrill <jason@redhat.com>
2508
2509 * class.c (finish_vtbls): Fill in BINFO_VPTR_FIELD in the
2510 immediate binfos for our virtual bases.
2511
1f978f5f
NB
25122001-12-02 Neil Booth <neil@daikokuya.demon.co.uk>
2513
2514 * call.c (build_java_interface_fn_ref): Similarly.
2515 * except.c (is_admissible_throw_operand): Similarly.
2516 * init.c (build_java_class_ref): Similarly.
2517 * xref.c (open_xref_file): Similarly.
2518
357351e5
NB
25192001-12-01 Neil Booth <neil@daikokuya.demon.co.uk>
2520
2521 * class.c (finish_struct): Remove trailing periods from messages.
2522 * decl.c (check_tag_decl): Similarly.
2523 * lex.c (cxx_set_yydebug): Similarly.
2524 * typeck2.c (friendly_abort): Similarly.
2525
998979e6
MM
25262001-11-29 Mark Mitchell <mark@codesourcery.com>
2527
2528 PR c++/3048
2529 * cp-tree.h (ovl_member): Remove.
33bd39a2 2530 * decl2.c (merge_functions): Handle extern "C" functions
998979e6
MM
2531 specially.
2532 * tree.c (ovl_member): Remove.
2533
7d5b8b11
MM
25342001-11-29 Mark Mitchell <mark@codesourcery.com>
2535
2536 PR c++/4842
2537 * class.c (get_basefndecls): Take an IDENTIFIER_NODE, not a
2538 FUNCTION_DECL, as input.
2539 (mark_overriders): Remove.
2540 (warn_hidden): Rework for the new ABI.
2541
b67db529
MM
25422001-11-29 Mark Mitchell <mark@codesourcery.com>
2543
2544 PR c++/3471
2545 * call.c (convert_like_real): Do not build additional temporaries
2546 for rvalues of class type.
2547
2db1ab2d
NS
25482001-11-28 Nathan Sidwell <nathan@codesourcery.com>
2549
2550 * cp-tree.h (UNIQUELY_DERIVED_FROM_P): Use lookup base.
2551 (ACCESSIBLY_UNIQUELY_DERIVED_FROM_P): Likewise.
2552 (PUBLICLY_UNIQUELY_DERIVED_FROM_P: Likewise.
2553 (DERIVED_FROM_P): Likewise.
2554 (enum base_access): Renumber, add ba_quiet bit mask.
2555 (get_binfo): Remove.
2556 (get_base_distance): Remove.
2557 (binfo_value): Remove.
2558 (ACCESSIBLY_DERIVED_FROM_P): Remove.
2559 * call.c (standard_conversion): Use lookup_base.
2560 * class.c (strictly_overrides): Likewise.
2561 (layout_virtual_bases): Likewise.
2562 (warn_about_ambiguous_direct_bases): Likewise.
2563 (is_base_of_enclosing_class): Likewise.
2564 (add_vcall_offset_vtbl_entries_1): Likewise.
2565 * cvt.c (build_up_reference): Adjust comment.
2566 * init.c (build_member_call): Reformat.
2567 * search.c (get_binfo): Remove.
2568 (get_base_distance_recursive): Remove.
2569 (get_base_distance): Remove.
2570 (lookup_base_r): Tweak.
2571 (lookup_base): Add ba_quiet control. Complete the types here.
2572 (covariant_return_p): Use lookup_base.
2573 * tree.c (binfo_value): Remove.
2574 (maybe_dummy_object): Use lookup_base.
2575 * typeck.c (build_static_cast): Use lookup_base.
2576 (get_delta_difference): Likewise.
2577 * typeck2.c (binfo_or_else): Use lookup_base.
2578 (build_scoped_ref): Add back error_mark_check.
2579 (build_m_component_ref): Use lookup_base.
2580
d3945f0a
JM
25812001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
2582
2583 * Make-lang.in (c++.generated-manpages): New dummy target.
2584
ac79cd5a
RK
2585Tue Nov 27 09:03:47 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2586
2587 * Make-lang.in (cp-lang.o): Depends on c-common.h.
2588 * cp-lang.c (c-common.h): Include.
2589 (LANG_HOOKS_EXPAND_CONSTANT, LANG_HOOKS_SAFE_FROM_P): New hooks.
2590 * decl.c (cxx_init_decl_processing): Don't set lang_safe_from_p.
2591 * expr.c (init_cplus_expand): Don't set lang_expand_constant.
2592
4d6baafa
NB
25932001-11-26 Neil Booth <neil@daikokuya.demon.co.uk>
2594
2595 * decl2.c (c_language): Move to c-common.c.
2596 * lex.c (cxx_post_options, cxx_init_options): Use c-common.c
2597 functions.
2598 (cxx_init): Update.
2599
5b0c5896
JM
26002001-11-26 Jason Merrill <jason@redhat.com>
2601
2602 * call.c (joust): Remove COND_EXPR hack.
2603
4bdd26e6
AH
26042001-11-25 Aldy Hernandez <aldyh@redhat.com>
2605
195a5def 2606 * search.c (lookup_base_r): Declare bk in variable declaration
4bdd26e6 2607 space.
33bd39a2 2608
338d90b8
NS
26092001-11-25 Nathan Sidwell <nathan@codesourcery.com>
2610
2611 PR g++/3145
2612 * class.c (build_vbase_pointer): Remove.
2613 (build_vbase_path): Remove.
2614 (build_base_path): New function.
2615 * cp-tree.h (base_access, base_kind): New enumerations.
2616 (build_base_path): Declare.
2617 (convert_pointer_to_real): Remove.
2618 (convert_pointer_to): Remove.
2619 (lookup_base): Declare.
2620 (convert_pointer_to_vbase): Remove.
2621 * call.c (build_scoped_method_call): Use lookup_base &
2622 build_base_path instead of convert_pointer_to_real,
2623 get_base_distance & get_binfo.
2624 (build_over_call): Likewise.
2625 * cvt.c (cp_convert_to_pointer): Likewise.
2626 (convert_to_pointer_force): Likewise.
2627 (build_up_reference): Likewise.
2628 (convert_pointer_to_real): Remove.
2629 (convert_pointer_to): Remove.
2630 * init.c (dfs_initialize_vtbl_ptrs): Use build_base_path
2631 instead of convert_pointer_to_vbase & build_vbase_path.
2632 (emit_base_init): Use build_base_path instead of
2633 convert_pointer_to_real.
2634 (expand_virtual_init): Lose unrequired conversions.
2635 (resolve_offset_ref): Use lookup_base and build_base_path
2636 instead of convert_pointer_to.
2637 * rtti.c (build_dynamic_cast_1): Use lookup_base &
2638 build_base_path instead of get_base_distance & build_vbase_path.
2639 * search.c (get_vbase_1): Remove.
2640 (get_vbase): Remove.
2641 (convert_pointer_to_vbase): Remove.
07f521fc 2642 (lookup_base_r): New function.
338d90b8
NS
2643 (lookup_base): New function.
2644 * typeck.c (require_complete_type): Use lookup_base &
2645 build_base_path instead of convert_pointer_to.
2646 (build_component_ref): Likewise.
2647 (build_x_function_call): Likewise.
2648 (get_member_function_from_ptrfunc): Likewise.
2649 (build_component_addr): Likewise.
2650 * typeck2.c (build_scoped_ref): Likewise.
2651
89d684bb
BM
26522001-11-22 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2653
2654 * cp-tree.h (CP_TYPE_QUALS): Removed.
2655 * decl.c (cxx_init_decl_processing): Don't set lang_dump_tree.
33bd39a2 2656 * cp-lang.c: Set LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN and
89d684bb 2657 LANG_HOOKS_TREE_DUMP_TYPE_QUALS_FN.
33bd39a2 2658 * dump.c (cp_dump_tree): Use void* dump_info argument to match
89d684bb
BM
2659 lang-hooks prototype.
2660 * call.c, cp-tree.h, cvt.c, decl.c, init.c, mangle.c, method.c, pt.c,
2661 rtti.c, semantics.c, tree.c, typeck.c, typeck2.c: All references to
2662 CP_TYPE_QUALS changed to cp_type_quals.
2663 * Make-lang.in: References to c-dump.h changed to tree-dump.h.
2664 (CXX_C_OBJS): Remove c-dump.o.
2665
12eb9f93 26662001-11-21 Mark Mitchell <mark@codesourcery.com>
2d2e8123
MM
2667
2668 PR c++/3637
12eb9f93
MM
2669 * pt.c (lookup_template_class): Ensure that all specializations
2670 are registered on the list corresponding to the most general
2671 template.
2672
26732001-11-20 Mark Mitchell <mark@codesourcery.com>
2674
2d2e8123 2675 * call.c (non_reference): Add documentation.
33bd39a2 2676 (convert_class_to_reference): Do not strip reference types
2d2e8123
MM
2677 from conversion operators.
2678 (maybe_handle_ref_bind): Simplify.
2679 (compare_ics): Correct handling of references.
2680
78a40378
MM
26812001-11-19 John Wilkinson <johnw@research.att.com>
2682
2683 * dump.c (dump_op): New function.
2684 (cp_dump_tree): Dump CLASSTYPE_TEMPLATE_SPECIALIZATION. Use
2685 dump_op. Dump DECL_MUTABLE, access and staticness for VAR_DECLs.
2686 DECL_PURE_VIRTUAL_P, DECL_VIRTUAL_P,
33bd39a2 2687
78a40378
MM
26882001-11-19 Mark Mitchell <mark@codesourcery.com>
2689
2690 PR4629
2691 * semantics.c (finish_sizeof): Make sure that expression created
2692 while processing a template do not have a type.
2693 (finish_alignof): Likewise.
2694 * typeck.c (c_sizeof): Likewise.
2695 (expr_sizeof): Likewise.
2696
22703ccc
NB
26972001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
2698
2699 * lex.c (cxx_finish): Call c_common_finish.
2700 (finish_parse): Remove.
2701
b3faacfd
KL
27022001-11-17 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2703
2704 * decl.c (create_array_type_for_decl): Check if NAME is NULL_TREE
2705 when displaying error message about missing array bounds.
2706
873ff987
KL
27072001-11-17 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2708
2709 * mangle.c (write_expression): Handle CAST_EXPR, STATIC_CAST_EXPR,
2710 CONST_CAST_EXPR.
2711 * operators.def: Add CAST_EXPR, STATIC_CAST_EXPR, CONST_CAST_EXPR.
2712
08f3a861
NB
27132001-11-16 Neil Booth <neil@daikokuya.demon.co.uk>
2714
2715 * cp-tree.h (print_class_statistics): Restore.
2716
8a2b77e7
JM
27172001-11-15 Jason Merrill <jason@redhat.com>
2718
3b1a4132
JM
2719 * method.c (use_thunk): Don't emit debugging information for thunks.
2720
8a2b77e7
JM
2721 * parse.y: Add ... IDENTIFIER SCOPE and ... PTYPENAME SCOPE expansions.
2722 * decl.c (make_typename_type): Handle getting a class template.
2723 * search.c (lookup_field_r): A class template is good enough for
2724 want_type.
2725
2726 * call.c (convert_like_real): Only use cp_convert for the bad part.
2727 (standard_conversion): Also allow bad int->enum.
2728 * typeck.c (ptr_reasonably_similar): Also allow functions to
2729 interconvert. Pointers to same-size integers are reasonably
2730 similar.
2731
2732 * cvt.c (convert_to_void): If we build a new COND_EXPR, always
2733 give it void type.
2734
36a68fe7
NS
27352001-11-15 Nathan Sidwell <nathan@codesourcery.com>
2736
2737 PR g++/3154
2738 * init.c (sort_base_init): Remove unreachable code.
2739 (expand_member_init): Adjust comment to reflect reality. Simplify
2740 and remove unreachable code.
2741
f5e99456
NB
27422001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
2743
2744 * cp-tree.h (init_reswords, cxx_init_decl_processing): New.
2745 (cxx_init): Update prototype.
2746 * decl.c (init_decl_processing): Rename. Move null node init
2747 to its creation time.
2748 * lex.c (cxx_init_options): Update.
2749 (cxx_init): Combine with old init_parse; also call
2750 cxx_init_decl_processing.
2751
fe5b6c1c
RS
27522001-11-14 Richard Sandiford <rsandifo@redhat.com>
2753
8a2b77e7
JM
2754 * decl.c (check_initializer): Try to complete the type of an
2755 array element before checking whether it's complete. Don't
2756 complain about arrays with complete element types but an
2757 unknown size.
2758 (cp_finish_decl): Build the hierarchical constructor before
2759 calling maybe_deduce_size_from_array_init.
fe5b6c1c 2760
77bd67cb
JM
27612001-11-14 Joseph S. Myers <jsm28@cam.ac.uk>
2762
2763 * Make-lang.in: Change all uses of $(manext) to $(man1ext).
2764
b02922a4
NS
27652001-11-13 Nathan Sidwell <nathan@codesourcery.com>
2766
2767 PR g++/4206
2768 * parse.y (already_scoped_stmt): Remove.
2769 (simple_stmt, WHILE & FOR): Use implicitly_scoped_stmt.
2770
abfc1ef6
L
27712001-11-12 H.J. Lu <hjl@gnu.org>
2772
195a5def 2773 * cvt.c (ocp_convert): Don't warn the address of a weak
abfc1ef6
L
2774 function is always `true'.
2775
5d69f816
NB
27762001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
2777
2778 * cp-lang.c (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE,
2779 LANG_HOOKS_PRINT_STATISTICS, LANG_HOOKS_PRINT_XNODE,
2780 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): Override.
2781 * cp-tree.h (print_class_statistics): Remove.
2782 (cxx_print_statistics, cxx_print_xnode, cxx_print_decl, cxx_print_type,
2783 cxx_print_identifier, cxx_set_yydebug): New.
2784 * lex.c (set_yydebug): Rename c_set_yydebug.
2785 * ptree.c (print_lang_decl, print_lang_type, print_lang_identifier,
2786 lang_print_xnode): Rename.
2787 * tree.c (print_lang_statistics): Rename.
2788
4fdc14ca
KG
27892001-11-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2790
2791 * class.c (dump_array): Fix format specifier warning.
2792
3ac88239
NB
27932001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
2794
2795 * cp-lang.c (LANG_HOOKS_NAME): Override.
2796 (struct lang_hooks): Constify.
2797 * lex.c (cxx_init_options): Update.
2798 (lang_identify): Remove.
33bd39a2 2799 * parse.y (language_string): Remove.
3ac88239 2800
b21d216c
AF
28012001-11-08 Andreas Franck <afranck@gmx.de>
2802
2803 * Make-lang.in (CXX_INSTALL_NAME, GXX_CROSS_NAME,
2804 DEMANGLER_CROSS_NAME): Handle program_transform_name the way
2805 suggested by autoconf.
2806 (GXX_TARGET_INSTALL_NAME, CXX_TARGET_INSTALL_NAME): Define.
2807 (c++.install-common): Use the transformed target alias names.
2808
d23c55c2
NB
28092001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
2810
2811 * Make-lang.in: Update.
2812 * cp-lang.c: Include langhooks-def.h.
2813
2a2b1d56
KL
28142001-11-04 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2815
2816 * pt.c (tsubst_copy): Call tsubst for TYPEOF_EXPR.
2817
76648a8b
KG
28182001-11-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2819
2820 * lex.c (copy_lang_type): Add static prototype.
2821
fccef71e
KL
28222001-11-02 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2823
2824 * pt.c (unify): Handle SCOPE_REF.
2825
19989812
JJ
28262001-11-01 Jakub Jelinek <jakub@redhat.com>
2827
2828 * tree.c (cp_copy_res_decl_for_inlining): Adjust
2829 DECL_ABSTRACT_ORIGIN for the return variable.
2830
5b7874aa
ZW
28312001-10-31 Zack Weinberg <zack@codesourcery.com>
2832
2833 * Make-lang.in: Replace $(INTL_TARGETS) with po-generated.
2834
306ef644
JM
28352001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
2836
2837 * ChangeLog.1, ChangeLog.2, ChangeLog, class.c, decl2.c, search.c,
2838 semantics.c, spew.c: Fix spelling errors.
2839
76543000
KL
28402001-10-27 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2841
2842 * decl2.c (validate_nonmember_using_decl): Handle NAMESPACE_DECL.
2843
37207ee7
ZW
28442001-10-25 Zack Weinberg <zack@codesourcery.com>
2845
2846 * cp-lang.c: Redefine LANG_HOOKS_CLEAR_BINDING_STACK to
2847 pop_everything.
2848
8ac61af7
RK
2849Tue Oct 23 14:00:20 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2850
2851 * cp-lang.c (cxx_get_alias_set): New function.
2852 Point LANG_HOOKS_GET_ALIAS_SET to it.
2853
f1e09fa2 28542001-10-23 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
b8c6534b
KL
2855
2856 * cp-tree.def (UNBOUND_CLASS_TEMPLATE): New tree node.
2857 * cp-tree.h (make_unbound_class_template): Prototype new function.
2858 * decl.c (make_unbound_class_template): New function.
2859 * decl2.c (arg_assoc_template_arg): Handle UNBOUND_CLASS_TEMPLATE.
2860 * error.c (dump_type): Likewise.
2861 * mangle.c (write_type): Likewise.
2862 * parse.y (template_parm): Likewise.
2863 (template_argument): Use make_unbound_class_template.
2864 * pt.c (convert_template_argument): Handle UNBOUND_CLASS_TEMPLATE.
2865 (tsubst): Likewise.
2866 (tsubst_copy): Likewise.
2867 (unify): Likewise.
2868 * tree.c (walk_tree): Likewise.
2869 * typeck.c (comptypes): Likewise.
2870
0df6c2c7
KG
28712001-10-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2872
2873 * xref.c (GNU_xref_member): Use safe-ctype macros and/or fold
2874 extra calls into fewer ones.
2875
97055d5c
AO
28762001-10-18 Alexandre Oliva <aoliva@redhat.com>
2877
2878 * decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
2879 Warn when merging inline with attribute noinline.
2880 (start_decl, start_function): Warn if inline and attribute
2881 noinline appear in the same declaration.
2882
b5823a44
L
28832001-10-16 H.J. Lu <hjl@gnu.org>
2884
2885 * cp-tree.h (BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK): Defined
2886 for tree checking disabled.
2887
dc8ad298
HPN
28882001-10-16 Hans-Peter Nilsson <hp@axis.com>
2889
2890 * cp-tree.h (VFIELD_NAME_FORMAT) [NO_DOLLAR_IN_LABEL &&
2891 NO_DOT_IN_LABEL]: Adjust to match VFIELD_NAME.
2892
d9f818d9
RS
28932001-10-15 Richard Sandiford <rsandifo@redhat.com>
2894
2895 * pt.c (UNIFY_ALLOW_MAX_CORRECTION): Define.
2896 (unify): Only handle MINUS_EXPR specially if the above flag is set
2897 and the subtracted constant is 1. Clear the flag on recursive calls.
2898 Set it when unifying the maximum value in an INTEGER_TYPE's range.
2899
e1be26f4
RS
29002001-10-15 Richard Sandiford <rsandifo@redhat.com>
2901
2902 * decl.c (bad_specifiers): Don't allow exception specifications
2903 on any typedefs.
2904
a5da89c6
NB
29052001-10-14 Neil Booth <neil@daikokuya.demon.co.uk>
2906
2907 * cp/lex.c (init_cp_pragma): Similarly.
2908
4f96ff63
KL
29092001-10-13 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2910
2911 * pt.c (lookup_template_class): Build complete template arguments
2912 for BOUND_TEMPLATE_TEMPLATE_PARM.
2913
11e74ea6
KL
29142001-10-12 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2915
2916 * cp-tree.h (TYPE_BINFO): Update comment.
2917 (BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK): New macro.
2918 (TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO): Use template_info.
2919 (TYPENAME_TYPE_FULLNAME): Use TYPE_FIELDS.
2920 (copy_type): Prototype new function.
2921 * lex.c (copy_lang_decl): Gather tree node statistics.
2922 (copy_lang_type): New function.
2923 (copy_type): Likewise.
2924 (cp_make_lang_type): Create lang_type for
2925 BOUND_TEMPLATE_TEMPLATE_PARM. Set TYPE_BINFO for TYPENAME_TYPE
2926 and BOUND_TEMPLATE_TEMPLATE_PARM.
2927 * pt.c (tsubst): Use copy_type instead of copy_node.
2928 * search.c (lookup_field_1): Ignore TYPENAME_TYPE.
2929
f5d47abd
KL
29302001-10-12 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2931
2932 * pt.c (determine_specialization): Ignore functions without
2933 DECL_TEMPLATE_INFO.
2934
e60505a5
NS
29352001-10-12 Nathan Sidwell <nathan@codesourcery.com>
2936
2937 PR g++/4476
2938 * typeck2.c (abstract_virtuals_error): Ignore incomplete classes.
2939
6f32162a
JM
29402001-10-11 Jason Merrill <jason_merrill@redhat.com>
2941
2942 * typeck2.c (store_init_value): Don't re-digest a bracketed
2943 initializer.
2944
2945 * class.c (finish_struct_anon): Use TYPE_ANONYMOUS_P instead of
2946 ANON_AGGR_TYPE_P.
2947
4a8d0c9c
RH
29482001-10-11 Richard Henderson <rth@redhat.com>
2949
2950 * class.c (build_vtable_entry_ref): Create a VTABLE_REF instead
2951 of an asm statement.
2952 (build_vtbl_ref_1): Split out from build_vtbl_ref.
2953 (build_vfn_ref): Use it to handle vtable descriptors before
2954 calling build_vtable_entry_ref.
2955 * decl2.c (output_vtable_inherit): Use assemble_vtable_inherit.
2956
84b72302
RH
29572001-10-10 Richard Henderson <rth@redhat.com>
2958
37207ee7 2959 * parse.y (asm_operand): Allow named operands.
84b72302
RH
2960 * semantics.c (finish_asm_stmt): Tweek for changed location
2961 of the operand constrant.
2962
48c8b0be 29632001-10-09 Jason Merrill <jason_merrill@redhat.com>
72a08131
JM
2964
2965 * call.c (standard_conversion): Add bad conversion between
2966 integers and pointers.
2967 (convert_like_real): Don't use convert_for_initialization for bad
2968 conversions; complain here and use cp_convert.
2969 (build_over_call): Don't handle bad conversions specially.
2970 (perform_implicit_conversion): Allow bad conversions.
2971 (can_convert_arg_bad): New fn.
2972 * cp-tree.h: Declare it.
2973 * typeck.c (convert_for_assignment): Use it.
2974 (ptr_reasonably_similar): Any target type is similar to void.
2975
19551f29
AO
29762001-10-08 Alexandre Oliva <aoliva@redhat.com>
2977
2978 * Make-lang.in (CXX_OBJS): Added cp-lang.o.
2979 (cp/cp-lang.o): New rule.
2980 * cp-tree.h: Declare hooks.
2981 * tree.c: Make hooks non-static.
2982 (init_tree): Don't initialize hooks here.
2983 * lex.c: Likewise. Move definition of lang_hooks to...
2984 * cp-lang.c: ... new file.
2985
31ed8fea
RH
29862001-10-08 Richard Henderson <rth@redhat.com>
2987
2988 * cp-tree.h (struct lang_decl_flags): Remove declared_inline.
2989 (DECL_DECLARED_INLINE_P): Use the bit in struct c_lang_decl.
2990
8b60264b
KG
29912001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2992
2993 * class.c (build_vtable_entry_ref): Const-ify.
2994 * decl.c (predefined_identifier,
37207ee7 2995 initialize_predefined_identifiers): Likewise.
8b60264b
KG
2996 * init.c (build_new_1): Likewise.
2997 * lex.c (cplus_tree_code_type, cplus_tree_code_length, resword):
2998 Likewise.
2999
bc4c7159
AO
30002001-10-05 Alexandre Oliva <aoliva@redhat.com>
3001
3002 * optimize.c (struct inline_data): Moved to ../tree-inline.c.
3003 (INSNS_PER_STMT): Likewise.
3004 (remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
3005 (copy_body, initialize_inlined_parameters): Likewise.
3006 (declare_return_variable, inlinable_function_p): Likewise.
3007 (expand_call_inline, expand_calls_inline): Likewise.
3008 (optimize_inline_calls, clone_body): Likewise.
3009 * tree.c (walk_tree): Moved to ../tree-inline.c.
3010 (walk_tree_without_duplicates): Likewise.
3011 (copy_tree_r, remap_save_expr): Likewise.
3012
25af8512
AO
30132001-10-04 Alexandre Oliva <aoliva@redhat.com>
3014
3015 * Make-lang.in (cp/decl.o, cp/tree.o): Depend on tree-inline.h.
3016 (cp/pt.o, cp/semantics.o, cp/optimize.o): Likewise.
3017 * cp-tree.h (lang_decl): Moved inlined_fns to tree_decl.
3018 (TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved to ../tree.h.
3019 (flag_inline_trees): Moved declaration to ../tree-inline.h.
3020 (walk_tree): Moved declaration to ../tree-inline.h.
3021 (walk_tree_without_duplicates, copy_tree_r): Likewise.
3022 (remap_save_expr): Likewise.
3023 * decl.c: Include tree-inline.h.
3024 (lang_mark_tree): Don't mark inlined_fns.
3025 * decl2.c (flag_inline_trees): Moved defn to ../tree-inline.c.
3026 * optimize.c: Include tree-inline.h.
3027 (optimize_inline_calls): Move declaration to ../tree.h, as
3028 non-static.
3029 (remap_decl): Use language-independent constructs and hooks.
3030 (remap_block, copy_body_r, declare_return_variable): Likewise.
3031 (inlinable_function_p): Likewise. Don't test for
3032 DECL_LANG_SPECIFIC before DECL_INLINED_FNS as inlined_fns is
3033 no longer language-specific.
3034 (optimize_inline_calls): Likewise. Make it non-static. Moved
3035 call of dump_function to...
3036 (optimize_function): Here...
3037 (clone_body): New function, extracted from...
3038 (maybe_clone_body): ... here. Build decl_map locally and pass
3039 it on to clone_body.
3040 * pt.c, semantics.c: Include tree-inline.h.
3041 * tree.c: Likewise.
3042 (cp_walk_subtrees): New language-specific hook for tree inlining.
3043 (cp_cannot_inline_tree_fn, cp_add_pending_fn_decls,
3044 cp_is_overload_p, cp_auto_var_in_fn_p,
3045 cp_copy_res_decl_for_inlining): Likewise.
3046 (walk_tree): Move language-specific constructs into...
3047 (cp_walk_subtrees): this new function.
3048 (copy_tree_r): Use language-independent constructs and hooks.
3049 (init_tree): Initialize tree inlining hooks.
3050 (remap_save_expr): Adjust prototype so that the declaration
3051 does not require the definition of splay_tree.
3052
6a4af81f
JDA
30532001-10-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
3054
3055 * rtti.c (get_tinfo_decl): Call typeinfo_in_lib_p with the type used
3056 to build the declaration instead of the declaration itself.
3057
0caee1c6
JM
30582001-10-02 Jason Merrill <jason_merrill@redhat.com>
3059
48c8b0be
JM
3060 * decl2.c (cxx_decode_option): Add 'else'.
3061
0caee1c6
JM
3062 * spew.c (end_input): No longer static.
3063 * cp-tree.h: Declare it.
3064 * parse.y (datadef): Add "error END_OF_SAVED_INPUT" expansion.
3065
80a497e4
JM
30662001-10-02 Joseph S. Myers <jsm28@cam.ac.uk>
3067
3068 * call.c (build_over_call), typeck.c (build_function_call_real):
3069 Pass type attributes to check_function_format rather than name or
3070 assembler name. Don't require there to be a name or assembler
3071 name to check formats.
3072
6431177a
JM
30732001-10-02 Joseph S. Myers <jsm28@cam.ac.uk>
3074
3075 * decl.c (init_decl_processing): Don't call
3076 init_function_format_info. Initialize lang_attribute_table
3077 earlier.
3078 (builtin_function): Call decl_attributes.
3079 (insert_default_attributes): New.
3080
55b3d665
JM
30812001-10-01 Jason Merrill <jason_merrill@redhat.com>
3082
3083 * decl.c (grokdeclarator): Copy array typedef handling from C
3084 frontend.
3085
3086 * decl.c (grokdeclarator): Copy too-large array handling from C
3087 frontend.
3088
9f57ca19
AO
30892001-09-29 Alexandre Oliva <aoliva@redhat.com>
3090
3091 * config-lang.in (target_libs): Added target-gperf, so that we
3092 don't try to build it if C++ is disabled.
3093
749ced52
ZW
30942001-09-23 Zack Weinberg <zack@codesourcery.com>
3095
3096 * Make-lang.in (CXX_OBJS): Take out cp/errfn.o.
3097 (cp/errfn.o): Delete rule.
3098 (cp/error.o): Depend on flags.h.
3099 * errfn.c: Delete file.
3100 * cp-tree.h: Declare warn_deprecated. Remove definitions of
3101 TFF_NAMESPACE_SCOPE, TFF_CLASS_SCOPE, TFF_CHASE_NAMESPACE_ALIAS,
3102 and TFF_TEMPLATE_DEFAULT_ARGUMENTS. #define cp_error, cp_warning,
3103 cp_pedwarn, and cp_compiler_error to error, warning, pedwarn, and
3104 internal_error respectively. Make cp_deprecated into a macro.
3105 Don't define cp_printer typedef or declare cp_printers.
3106 * error.c: Include flags.h.
3107 Delete: struct tree_formatting_info, print_function_argument_list,
3108 print_declaration, print_expression, print_function_declaration,
3109 print_function_parameter, print_type_id, print_cv_qualifier_seq,
3110 print_type_specifier_seq, print_simple_type_specifier,
3111 print_elaborated_type_specifier, print_rest_of_abstract_declarator,
3112 print_parameter_declaration_clause, print_exception_specification,
3113 print_nested_name_specifier, and definition of cp_printers.
3114 (locate_error): New function.
3115 (cp_error_at, cp_warning_at, cp_pedwarn_at): Moved here and
3116 rewritten in terms of locate_error and diagnostic.c.
3117 (cp_tree_printer): Rename cp_printer; wire up to *_to_string
3118 instead of deleted print_* routines. Handle %C, %L, %O, %Q also.
3119 (init_error): Adjust to match.
3120
bb9f8221
RK
3121Sat Sep 22 09:15:31 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3122
3123 * Make-lang.in (CXX_C_OBJS): Add attribs.o.
3124
67231816
RH
31252001-09-21 Richard Henderson <rth@redhat.com>
3126
3127 * class.c (set_vindex): Mind TARGET_VTABLE_USES_DESCRIPTORS.
3128 (build_vtbl_initializer): Likewise.
3129 (build_vfn_ref): New.
3130 * cp-tree.h: Declare it.
3131 * call.c (build_over_call): Use it.
3132 * decl2.c (mark_vtable_entries): Mark FDESC_EXPR.
3133 * typeck.c (get_member_function_from_ptrfunc): Mind descriptors.
3134
c9574c9f
R
3135Fri Sep 21 08:16:19 2001 J"orn Rennecke <amylaar@redhat.com>
3136
3137 * decl.c (grokdeclarator): Use C syntax for attr_flags declaration.
3138
91d231cb
JM
31392001-09-21 Joseph S. Myers <jsm28@cam.ac.uk>
3140
3141 Table-driven attributes.
3142 * decl.c: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
3143 * decl2.c (cplus_decl_attributes): Only take one attributes
3144 parameter.
3145 * cp-tree.c (cplus_decl_attributes): Update prototype.
3146 * class.c (finish_struct), decl.c (start_decl, start_function),
3147 decl2.c (grokfield), friend.c (do_friend), parse.y
3148 (parse_bitfield): Update calls to cplus_decl_attributes.
3149 * decl.c (grokdeclarator): Take a pointer to a single ordinary
3150 attribute list.
3151 * decl.h (grokdeclarator): Update prototype.
3152 * decl2.c (grokfield): Take a single ordinary attribute list.
3153 * friend.c (do_friend): Likewise.
3154 * decl.c (shadow_tag, groktypename, start_decl,
3155 start_handler_parms, grokdeclarator, grokparms, start_function,
3156 start_method), decl2.c (grokfield, grokbitfield, grokoptypename),
3157 parse.y (parse_field, parse_bitfield, component_decl_1), pt.c
3158 (process_template_parm, do_decl_instantiation): Pass single
3159 ordinary attribute lists around.
3160 * decl.c (grokdeclarator): Correct handling of nested attributes.
3161 Revert the patch
3162 1998-10-18 Jason Merrill <jason@yorick.cygnus.com>
3163 * decl.c (grokdeclarator): Embedded attrs bind to the right,
3164 not the left.
3165 .
3166 * cp-tree.h (cp_valid_lang_attribute): Remove declaration
3167 (cp_attribute_table): Declare.
3168 * decl.c (valid_lang_attribute): Don't define.
3169 (lang_attribute_table): Define.
3170 (init_decl_processing): Initialize lang_attribute_table instead of
3171 valid_lang_attribute.
3172 * tree.c (cp_valid_lang_attribute): Remove.
3173 (handle_java_interface_attribute, handle_com_interface_attribute,
3174 handle_init_priority_attribute): New functions.
3175 (cp_attribute_table): New array.
3176 * decl2.c (import_export_class): Don't use
3177 targetm.valid_type_attribute.
3178
a1bda5f1
GDR
31792001-09-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
3180
e6b9638b
JM
3181 * Make-lang.in (cp/error.o): Depend on real.h
3182 * error.c: #include "real.h"
a1bda5f1 3183
cb6edbcb
KG
31842001-09-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3185
3186 * mangle.c (mangle_conv_op_name_for_type): Use concat in lieu of
3187 xmalloc/strcpy/strcat.
3188
83182544
KG
31892001-09-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3190
3191 * decl.c (warn_extern_redeclared_static, cp_make_fname_decl):
3192 Const-ification.
3193 * pt.c (tsubst_decl): Likewise.
3194
40008eda
KG
31952001-09-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3196
3197 * decl2.c (lang_f_options): Const-ification.
3198 * lex.c (cplus_tree_code_name): Likewise.
3199 * spew.c (yyerror): Likewise.
3200
39e78d8b
NS
32012001-09-06 Nathan Sidwell <nathan@codesourcery.com>
3202
3203 PR c++/3986
3204 * class.c (force_canonical_binfo_r): Check & move an indirect
3205 primary base first.
3206 (force_canonical_binfo): Check that it's not already
3207 canonical.
3208 (mark_primary_virtual_base): Remove BINFO parameter.
3209 (mark_primary_bases): Adjust, set BINFO_LOST_PRIMARY_P here.
3210
6d0a3f67
NS
32112001-09-06 Nathan Sidwell <nathan@codesourcery.com>
3212
3213 Remove TYPE_NONCOPIED_PARTS.
3214 * cp-tree.h (CLASSTYPE_INLINE_FRIENDS): Map onto
3215 CLASSTYPE_PURE_VIRTUALS.
3216 (TYPE_RAISES_EXCEPTIONS): Map onto TYPE_BINFO.
3217 * class.c (duplicate_tag_error): Remove TYPE_NONCOPIED_PARTS.
72a08131 3218 (layout_class_type): Don't call fixup_inline_methods here ...
6d0a3f67
NS
3219 (finish_struct_1): ... call it here.
3220
4f8e1232
MM
32212001-09-04 Mark Mitchell <mark@codesourcery.com>
3222
3223 * decl.c (duplicate_decls): Remove code deadling with
3224 DECL_SAVED_INSNS.
3225 * decl2.c (finish_file): Likewise.
3226 * pt.c (instantiate_decl): Likewise.
3227 * semantics.c (expand_body): Don't defer local functions if
3228 they wouldn't be deferred for some other reason. Don't
3229 generate RTL for functions that will not be emitted.
3230 (genrtl_start_function): Remove code deadling with
3231 DECL_SAVED_INSNS.
3232 (genrtl_finish_function): Likewise.
3233
da86f08f
NS
32342001-09-04 Nathan Sidwell <nathan@codesourcery.com>
3235
3236 PR c++/4203
3237 * call.c (build_over_call): Do not optimize any empty base
3238 construction.
3239
38066e83
KL
32402001-08-31 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3241
3242 * error.c (dump_template_decl): Output template parameters
3243 together with their specifiers.
3244 Output `class' prefix for template template parameter.
3245 (dump_decl): Fix formatting.
3246
598e9ba5 32472001-08-30 Kurt Garloff <garloff@suse.de>
749ced52 3248
598e9ba5
KG
3249 * optimize.c (inlinable_function_p): Allow only smaller single
3250 functions. Halve inline limit after reaching recursive limit.
749ced52 3251
f232e4a5
JR
32522001-08-30 Joern Rennecke <amylaar@redhat.com>
3253 Jason Merrill <jason_merrill@redhat.com>
3254
3255 * class.c (build_vtable_entry_ref): Subtract in char*, not
3256 ptrdiff_t.
3257
0213a355
JM
32582001-08-23 Jason Merrill <jason_merrill@redhat.com>
3259
3260 * tree.c (cp_build_qualified_type_real): Use get_qualified_type.
3261 (build_cplus_array_type): Use cp_build_qualified_type, not
3262 TYPE_MAIN_VARIANT, to get an unqualified version.
3263
3264 * decl2.c (grok_alignof): Lose.
3265 (build_expr_from_tree): Use expr_sizeof and c_alignof_expr.
3266 * typeck.c (c_alignof): Lose.
3267 * semantics.c (finish_sizeof, finish_alignof): New.
3268 * parse.y: Use them.
3269 * cp-tree.h: Declare them.
3270
fd10dd09
JM
32712001-08-22 Jason Merrill <jason_merrill@redhat.com>
3272
3273 * pt.c (tsubst_expr): Hand off to the TREE_CHAIN of a statement.
3274 Don't loop in COMPOUND_STMT, FOR_STMT or TRY_BLOCK.
3275 * tree.c (cp_statement_code_p): A TAG_DEFN is a statement.
3276
baeb4732
JJ
32772001-08-19 Jakub Jelinek <jakub@redhat.com>
3278
3279 * typeck2.c (add_exception_specifier): Only require complete type if
3280 not in processing template declaration.
3281
1c0cc57e
KG
32822001-08-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3283
3284 * decl.c: Cast argument to size_t, not HOST_WIDE_INT, in calls to
3285 GNU_xref_start_scope and GNU_xref_end_scope.
3286
3287 * tree.c (TYPE_HASH): Moved to ../tree.h.
3288
9a52d09b
MM
32892001-08-16 Mark Mitchell <mark@codesourcery.com>
3290
3291 * cvt.c (convert_to_void): Preserve TREE_SIDE_EFFECTS
3292 on COMPOUND_EXPRs.
3293
b5d1cbd2
RH
32942001-08-14 Richard Henderson <rth@redhat.com>
3295
3296 * class.c, cp-tree.h (build_vfn_ref): Remove.
3297 * call.c, rtti.c: Replace all refernces with build_vtbl_ref.
3298
63d6f87a
MM
32992001-08-13 Mark Mitchell <mark@codesourcery.com>
3300
3301 * call.c (build_over_call): Mark COMPOUND_EXPRs generated for
3302 empty class assignment as having side-effects to avoid
3303 spurious warnings.
3304
e78d8e51
ZW
33052001-08-13 Zack Weinberg <zackw@panix.com>
3306
3307 * Make-lang.in (cp/except.o): Add libfuncs.h to dependencies.
3308 * except.c: Include libfuncs.h.
3309
a60af04a
GDR
33102001-08-11 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
3311
3312 * decl.c (grokdeclarator): Clarify diagnostic message.
3313
3605b283
KL
33142001-08-13 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3315
3316 * decl2.c (do_nonmember_using_decl): Replace using directive
3317 with using declaration in the error message.
3318
4d5f3fbd
KL
33192001-08-11 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3320
3321 * pt.c (maybe_fold_nontype_arg): Use TREE_TYPE of ARG as the
3322 criterion to avoid rebuilding expression tree instead of
3323 processing_template_decl.
3324
07b2f2fd
JM
33252001-08-07 Jason Merrill <jason_merrill@redhat.com>
3326
3327 Support named return value optimization for inlines, too.
3328 * decl.c (finish_function): Nullify returns here.
3329 * semantics.c (genrtl_start_function): Not here.
3330 (cp_expand_stmt): Don't mess with CLEANUP_STMTs.
3331 (nullify_returns_r): No longer static. Just clear RETURN_EXPR.
3332 Also nullify the CLEANUP_STMT for the nrv.
3333 * cp-tree.h: Declare it.
3334 * optimize.c (declare_return_variable): Replace the nrv with the
3335 return variable.
3336 * typeck.c (check_return_expr): Be more flexible on alignment check.
3337 Ignore cv-quals when checking for a matching type.
3338
2cc07db4
RH
33392001-08-09 Richard Henderson <rth@redhat.com>
3340
3341 * decl2.c (finish_objects): Use target hooks instead of
3342 assemble_constructor and assemble_destructor.
3343
0ca179b2
JDA
33442001-08-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
3345
3346 * g++spec.c (lang_specific_driver): Quote argument after `-Xlinker'.
3347
0830ae44
NS
33482001-08-07 Nathan Sidwell <nathan@codesourcery.com>
3349
3350 PR c++/3820
3351 Stop using TYPE_NONCOPIED_PARTS.
3352 * call.c (build_over_call): Be careful when copy constructing
3353 or assigning to an empty class.
3354 * class.c (check_bases_and_members): It has a
3355 COMPLEX_ASSIGN_REF if it has a vptr.
3356 (layout_class_type): Don't add empty class padding to
3357 TYPE_NONCOPIED_PARTS.
3358 (finish_struct_1): Don't add the VFIELD either.
3359 * cp-tree.h (TYPE_HAS_TRIVIAL_INIT_REF): Mention _copy_
3360 initialization.
3361
59a13e0f
JM
33622001-08-07 Jason Merrill <jason_merrill@redhat.com>
3363
3364 * tree.c (walk_tree): Walk siblings even if !walk_subtrees.
3365
47907859
RH
33662001-08-06 Richard Henderson <rth@redhat.com>
3367
3368 * decl2.c (finish_objects): Pass a symbol_ref and priority to
3369 assemble_{constructor,destructor}. Remove priority handling.
3370
eac69b8a
GDR
33712001-08-05 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
3372
3373 Don't allow template-id in using-declaration.
3374 * decl2.c (validate_nonmember_using_decl): Handle template-ids.
3375 (do_class_using_decl): Likewise.
3376
ef6e958a
NB
33772001-08-04 Neil Booth <neil@cat.daikokuya.demon.co.uk>
3378
3379 * cp/spew.c (read_token): No need to pop buffers.
3380
dff94ad7
SS
33812001-08-02 Stan Shebs <shebs@apple.com>
3382
3383 * cp-tree.h (FNADDR_FROM_VTABLE_ENTRY): Remove, no longer used.
3384 (fnaddr_from_vtable_entry): Remove decl.
3385 * method.c (use_thunk): Update comment.
3386
026c3f13
AC
33872001-08-01 Andrew Cagney <ac131313@redhat.com>
3388
3389 * repo.c (get_base_filename): Change return value to const char
3390 pointer.
3391
1dbb6023
NS
33922001-08-02 Nathan Sidwell <nathan@codesourcery.com>
3393
3394 Kill -fhonor-std.
3395 * NEWS: Document.
3396 * cp-tree.h (flag_honor_std): Remove.
3397 (CPTI_FAKE_STD): Remove.
3398 (std_node): Remove comment about it being NULL.
3399 (fake_std_node): Remove.
3400 * decl.c (in_fake_std): Remove.
3401 (walk_namespaces_r): Remove fake_std_node check.
3402 (push_namespace): Remove in_fake_std code.
3403 (pop_namespace): Likewise.
3404 (lookup_name_real): Remove fake_std_node check.
3405 (init_decl_processing): Always create std_node. Always add
3406 std:: things there.
3407 (builtin_function): Always put non '_' fns in std.
3408 * decl2.c (flag_honor_std): Remove.
3409 (lang_f_options): Remove honor-std.
3410 (unsupported_options): Add honor-std.
3411 (set_decl_namespace): Remove fake_std_node check.
3412 (validate_nonmember_using_decl): Likewise.
3413 (do_using_directive): Likewise.
3414 (handle_class_head): Likewise.
3415 * dump.c (cp_dump_tree): Likewise.
3416 * except.c (init_exception_processing): Adjust.
3417 * init.c (build_member_call): Remove fake_std_node check.
3418 (build_offset_ref): Likewise.
3419 * lang-options.h: Remove -fhonor-std, -fno-honor-std.
3420 * rtti.c (init_rtti_processing): Adjust.
3421
6ad7895a
APB
34222001-07-31 Alexandre Petit-Bianco <apbianco@redhat.com>
3423
3424 * tree.c (cp_tree_equal): WITH_CLEANUP_EXPR node to use its second
3425 operand while calling cp_tree_equal.
3426
befe7c61
NS
34272001-07-31 Nathan Sidwell <nathan@codesourcery.com>
3428
3429 The 3.0 ABI no longer has vbase pointer fields.
3430 * cp-tree.h (VBASE_NAME, VBASE_NAME_FORMAT, VBASE_NAME_P,
3431 FORMAT_VBASE_NAME): Remove.
3432 * method.c (do_build_copy_constructor): Adjust.
3433 (do_build_assign_ref): Adjust.
3434 * search.c (lookup_field_r): Adjust.
3435 * typeck.c (build_component_ref): Adjust.
3436
3437 The 3.0 ABI always has a vtable pointer at the start of every
3438 polymorphic class.
3439 * rtti.c (build_headof_sub): Remove.
3440 (build_headof): Adjust.
3441 (get_tinfo_decl_dynamic): No need to check flag_rtti
3442 here. Adjust.
3443 (create_real_tinfo_var): Explain why we need a hidden name.
3444
20dde49d
NS
34452001-07-31 Nathan Sidwell <nathan@codesourcery.com>
3446
3447 PR c++/3631
3448 * class.c (update_vtable_entry_for_fn): The fixed adjustment
3449 of a virtual thunk should be from declaring base.
3450
b7ad2f8b
NS
34512001-07-31 Nathan Sidwell <nathan@codesourcery.com>
3452
3453 * class.c (dfs_ctor_vtable_bases_queue_p): Always walk into
3454 the shared virtual base, so preserving inheritance graph order.
3455
57cb6d52
AJ
34562001-07-30 Andreas Jaeger <aj@suse.de>
3457
749ced52 3458 * decl2.c: Remove unused var global_temp_name_counter.
57cb6d52 3459
594280a3
RH
34602001-07-28 Richard Henderson <rth@redhat.com>
3461
3462 * method.c (pending_inlines): Remove.
3463
0ab142b0
NS
34642001-07-27 Nathan Sidwell <nathan@codesourcery.com>
3465
3466 * class.c (mark_primary_virtual_base): Don't adjust base
3467 offsets here.
3468 (dfs_unshared_virtual_bases): Adjust them here.
3469 (mark_primary_bases): Explain why we adjust at the end.
3470
d60d223b
NS
34712001-07-27 Nathan Sidwell <nathan@codesourcery.com>
3472
3473 * class.c (finish_struct_1): When copying the primary base's
3474 VFIELD, make sure we find it is at offset zero.
3475
db3ef87b
KL
34762001-07-26 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3477
3478 * pt.c (tsubst_template_parms): Call maybe_fold_nontype_arg and
3479 tsubst_expr for default template arguments.
3480
312b7c9d
NS
34812001-07-26 Nathan Sidwell <nathan@codesourcery.com>
3482
d60d223b 3483 PR c++/3621
312b7c9d
NS
3484 * spew.c (yylex): Only copy the token's lineno, if it is
3485 non-zero.
3486
648c2206
NS
34872001-07-26 Nathan Sidwell <nathan@codesourcery.com>
3488
3489 PR c++/3624
3490 * call.c (resolve_args): Simplify, call
3491 convert_from_reference.
3492 (build_new_op): Resolve and convert from reference ARG1
3493 earlier. Adjust ARG2 & ARG3 resolve and conversion.
3494
969fd501
NS
34952001-07-26 Nathan Sidwell <nathan@codesourcery.com>
3496
3497 * decl.c (last_function_parm_tags): Remove.
3498 (current_function_parm_tags): Remove.
3499 (init_decl_processing): Adjust.
3500 (start_function): Adjust.
3501 (store_parm_decls): Adjust.
3502
3503 PR c++/3152
3504 * decl.c (grokdeclarator): Detect when a function typedef is
3505 declaring a function, and create last_function_parms correctly.
3506
08ac397c 35072001-07-25 Jason Merrill <jason_merrill@redhat.com>
749ced52 3508
08ac397c
JM
3509 * call.c (joust): Only prefer a non-builtin candidate to a builtin
3510 one if they have the same signature.
3511
3512 * cvt.c (build_up_reference): Take DECL parm. Check TREE_STATIC on
3513 it rather than toplevel_bindings_p. Give it a mangled name if static.
3514 (convert_to_reference): Adjust.
3515 * decl2.c (get_temp_name): Lose.
3516 * mangle.c (mangle_ref_init_variable): New fn.
3517 (mangle_guard_variable): Strip the ref-init header.
3518 * cp-tree.h: Adjust.
3519 * decl.c (cp_finish_decl): Add the DECL_STMT after processing the
3520 initializer.
3521 (grok_reference_init): Always use DECL_INITIAL.
3522
40260429
NS
35232001-07-25 Nathan Sidwell <nathan@codesourcery.com>
3524
3525 PR c++/3416
3526 * call.c (build_conditional_expr): Recheck args after
3527 conversions.
3528 * cp-tree.h (build_conditional_expr): Move to correct file.
3529 * typeck.c (decay_conversion): Diagnose any unknown types
3530 reaching here.
3531 (build_binary_op): Don't do initial decay or default
3532 conversions on overloaded functions.
3533 (build_static_cast): Don't do a decay conversion here.
3534
ab085207
NS
35352001-07-25 Nathan Sidwell <nathan@codesourcery.com>
3536
3537 PR c++/3543
3538 * typeck.c (condition_conversion): Resolve an OFFSET_REF.
3539 * expr.c (cplus_expand_expr): An OFFSET_REF should never get here.
3540
0abe00c5
NS
35412001-07-25 Nathan Sidwell <nathan@codesourcery.com>
3542
3543 * class.c (build_vtbl_or_vbase_field): Remove, move into ...
3544 (create_vtbl_ptr): ... here.
3545
90b1ca2f
NS
35462001-07-25 Nathan Sidwell <nathan@codesourcery.com>
3547
3548 * class.c (build_vbase_offset_vbtl_entries): Look for
3549 non-primary base of which we are a sub vtable.
3550
cfe5dc31
PE
35512001-07-24 Phil Edwards <pme@sources.redhat.com>
3552
3553 * semantics.c (finish_this_expr): Remove unused code.
3554
7f54a851
NS
35552001-07-24 Nathan Sidwell <nathan@codesourcery.com>
3556
3557 Simplify rtti, now we've only one ABI.
3558 * cp-tree.h (cp_tree_index): Remove CPTI_TINFO_DECL_ID,
3559 CPTI_TINFO_VAR_ID.
3560 (tinfo_decl_id, tinfo_var_id): Remove.
3561 (get_typeid_1): Remove.
3562 * rtti.c
3563 (init_rtti_processing): Remove tinfo_decl_id & tinfo_var_id.
3564 (typeid_ok_p): New function.
3565 (build_type_id): Call typeid_ok_p. Don't call tinfo_from_decl.
3566 (get_tinfo_decl): Remove old abi documentation.
3567 (tinfo_from_decl): Remove.
3568 (get_type_id): Call typeid_ok_p. Absorb get_typeid_1.
3569 (get_typeid_1): Remove.
3570 (get_base_offset): Remove.
3571 (synthesize_tinfo_var): Absorb get_base_offset.
3572 (create_real_tinfo_var): Don't use tinfo_decl_id.
3573
18fee3ee
GS
35742001-07-23 Graham Stott <grahams@redhat.com>
3575
3576 * cp/class.c (type_requires_array_cookie): Fix use of uninitialised
3577 variable has_two_argument_delete_p.
3578
c4372ef4
NS
35792001-07-21 Nathan Sidwell <nathan@codesourcery.com>
3580
3581 Remove flag_vtable_thunk. It is always on for the 3.0 ABI.
3582 * cp-tree.h (CPTI_DELTA2_IDENTIFIER): Remove.
3583 (CPTI_INDEX_IDENTIFIER): Remove.
3584 (CPT_PFN_OR_DELTA2_IDENTIFIER): Remove.
3585 (delta2_identifier): Remove.
3586 (index_identifier): Remove.
3587 (pfn_or_delta2_identifier): Remove.
3588 (flag_vtable_thunks): Remove.
3589 (VTABLE_DELTA2_NAME): Remove.
3590 (VTABLE_INDEX_NAME): Remove.
3591 (FNADDR_FROM_VTABLE_ENTRY): Adjust.
3592 (vfunc_ptr_type_node): Adjust.
3593 (VTABLE_NAME_PREFIX): Adjust.
3594 (build_vfn_ref): Lose first parameter.
3595 (fixup_all_virtual_upcast_offsets): Remove.
3596 * decl.c (initialize_predefined_identifiers): Remove
3597 delta2_identifier, index_identifier, pfn_or_delta2_identifier.
3598 (init_decl_processing): Remove no-vtable-thunk code.
3599 * decl2.c (flag_vtable_thunks): Remove.
3600 (mark_vtable_entries): Remove no-vtable-thunk code.
3601 * error.c (dump_decl): Remove no-vtable-thunk code.
3602 (dump_expr): Adjust ptr to member function code.
3603 * init.c (initialize_vtable_ptrs): Remove no-vtable-thunk
3604 code.
3605 * rtti.c (build_headof): Remove no-vtable-thunk code.
3606 (get_tinfo_decl_dynamic): Adjust build_vfn_ref call.
3607 * search.c (get_base_distance): Remove expand_upcast_fixups case.
3608 (virtual_context) Remove.
3609 (expand_upcast_fixups): Remove.
3610 (fixup_virtual_upcast_offsets): Remove.
3611 (fixup_all_virtual_upcast_offsets): Remove.
3612 * typeck.c (get_member_function_from_ptrfunc): Remove
3613 no-vtable-thunk code.
3614 * call.c (build_over_call): Adjust call to build_vfn_ref.
3615 * class.c (build_vfn_ref): Lose first parameter. Remove
3616 no-vtable-thunk code.
3617 (build_rtti_vtbl_entries): Remove no-vtable-thunk code.
3618 (build_vtable_entry): Remove no-vtable-thunk code.
3619
3461fba7
NS
36202001-07-20 Nathan Sidwell <nathan@codesourcery.com>
3621
3622 Remove old-abi remnants. Remove comments about old abi
aba649ba 3623 behaviour. Remove references to 'new-abi' in comments.
3461fba7
NS
3624 * cp-tree.h: Adjust comments.
3625 (vbase_offsets_in_vtable_p): Delete.
3626 (vcall_offsets_in_vtable_p): Delete.
3627 (vptrs_present_everywhere_p): Delete.
3628 (all_overridden_vfuns_in_vtables_p): Delete.
3629 (merge_primary_and_secondary_vtables_p): Delete.
3630 (TYPE_CONTAINS_VPTR_P): Adjust.
3631 (VTT_NAME_PREFIX): Remove.
3632 (CTOR_VTBL_NAME_PREFIX): Remove.
3633 (init_vbase_pointers): Remove.
3634 * class.c: Adjust coments.
3635 (build_vbase_pointer_fields): Delete.
3636 (build_vbase_pointer): Remove old-abi code.
3637 (build_secondary_vtable): Likewise.
3638 (modify_all_vtables): Likewise.
3639 (create_vtable_ptr): Likewise.
3640 (layout_class_type): Likewise.
3641 (finish_struct_1): Likewise.
3642 (finish_vtbls): Likewise.
3643 (dfs_finish_vtbls): Delete.
3644 (build_vbase_offset_vtbl_entries): Remove old-abi code.
3645 * cvt.c: Adjust comments.
3646 * decl.c: Adjust comments.
3647 * decl2.c: Adjust comments.
3648 * init.c: Adjust comments.
3649 (construct_virtual_bases): Remove old-abi code.
3650 * lang-specs.h: Remove -fno-new-abi.
3651 * mangle.c: Adjust comments.
3652 * rtti.c: Adjust comments.
3653 (get_base_offset): Remove old-abi-code.
3654 * search.c: Adjust comments.
3655 (dfs_init_vbase_pointers): Remove.
3656 (dfs_vtable_path_unmark): Remove.
3657 (init_vbase_pointers): Remove.
3658 * semantics.c: Adjust comments.
3659 (emit_associated_thunks): Remove old-abi code.
3660 * typeck.c: Adjust comments.
3661
1c432a87
DB
36622001-07-20 Daniel Berlin <dan@cgsoftware.com>
3663
3664 * Make-lang.in (cp/optimize.o): Depend on $(PARAMS_H), not
3665 params.h.
3666
b7076960
MM
36672001-07-19 Mark Mitchell <mark@codesourcery.com>
3668
3669 * class.c (finish_struct_anon): Forbid nested classes.
3670
2b85879e
NB
36712001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
3672
3673 * decl2.c: Don't include dwarfout.h and dwarf2out.h.
3674 * optimize.c: Include debug.h.
3675 (maybe_clone_body): Use debug hook.
3676 * semantics.c: Include debug.h.
3677 (expand_body): Use debug hook.
3678
c60e94a7
NB
36792001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
3680
3681 * spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
3682
dbc957f1
MM
36832001-07-18 Mark Mitchell <mark@codesourcery.com>
3684
3685 * class.c (type_requires_array_cookie): New function.
3686 (check_methods): Don't try to figure out whether the type needs a
3687 cookie here.
3688 (check_bases_and_members): Set TYPE_VEC_NEW_USES_COOKIE here.
3689 * cp-tree.h (TYPE_VEC_DELETE_TAKES_SIZE): Remove.
3690 (TYPE_VEC_NEW_USES_COOKIE): Reimplement.
3691 * pt.c (instantiate_class_template): Don't set
3692 TYPE_VEC_DELETE_TAKES_SIZE.
3693 * NEWS: Document ABI changes from GCC 3.0.
57cb6d52 3694
7ba0b0f7 36952001-07-18 Xavier Delacour <xavier@fmaudio.net>,
749ced52 3696 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7ba0b0f7
XD
3697
3698 * NEWS (Changes in GCC 3.0): Fix typo.
3699
59387d2e
JM
37002001-07-13 Joseph S. Myers <jsm28@cam.ac.uk>
3701
3702 * decl2.c (cplus_decl_attributes): Take a pointer to the node to
3703 which attributes are to be attached, and a flags argument. Update
3704 call to decl_attributes.
3705 (grokfield): Update call to decl_attributes.
3706 * class.c (finish_struct): Update call to cplus_decl_attributes.
3707 * cp-tree.h (cplus_decl_attributes): Update prototype.
3708 * decl.c (start_decl, grokdeclarator, start_function): Update
3709 calls to decl_attributes and cplus_decl_attributes.
3710 * friend.c (do_friend): Update call to cplus_decl_attributes.
3711 * parse.y (parse_bitfield): Update call to cplus_decl_attributes.
3712
7ed47c04
MM
37132001-07-12 Mark Mitchell <mark@codesourcery.com>
3714
3715 * decl.c (make_rtl_for_nonlocal_decl): Set DECL_C_HARD_REGISTER
3716 for `register' variables with an asm-specification.
3717
40b18c0a
MM
37182001-07-11 Mark Mitchell <mark@codesourcery.com>
3719
3720 * semantics.c (finish_asm_stmt): Mark the output operands
3721 to an asm addressable, if necessary.
3722
517c3b80
BE
37232001-07-11 Ben Elliston <bje@redhat.com>
3724
219670f1
BE
3725 * Revert this change -- there is a subtle bug.
3726
517c3b80
BE
3727 PR c++/80
3728 * decl.c (finish_enum): New "attributes" argument; pass it to
3729 cplus_decl_attributes. Use a narrower type if the enum is packed.
3730 * cp-tree.h (finish_enum): Adjust prototype.
3731 * parse.y (enum_head): New non-terminal.
3732 (structsp): Use it. Enums now may be preceded or followed by
3733 optional attributes -- pass their chained tree to finish_enum().
3734 * pt.c (tsubst_enum): Pass NULL_TREE for the new argument.
3735
2ba9c47e
MM
37362001-07-10 Mark Mitchell <mark@codesourcery.com>
3737
3738 * pt.c (tsubst_decl): Set DECL_CONTEXT for namespace-scope
3739 variables.
3740
35241192
JM
37412001-07-10 Jason Merrill <jason_merrill@redhat.com>
3742
3743 * semantics.c (cp_expand_stmt): Fix for null
3744 current_function_return_value.
3745
07167a18
JM
37462001-07-10 Jan van Male <jan.vanmale@fenk.wau.nl>
3747
3748 * call.c (build_op_delete_call): Initialize fn.
3749 (convert_like_real): Delete conditional.
3750 (joust): Initialize *w and *l.
3751 * class.c: Add prototype for binfo_ctor_vtable.
3752 (get_primary_binfo): Initialize result.
3753 * init.c (build_java_class_ref): Initialize name.
ae818d3b 3754
35241192
JM
37552001-07-09 Erik Rozendaal <dlr@acm.org>
3756
ae818d3b
ER
3757 * typeck.c (unary_complex_lvalue): Do not duplicate the
3758 argument to modify, pre-, or post-increment when used as an
3759 lvalue and when the argument has side-effects.
3760
12a68f1f
JM
37612001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
3762
3763 * decl.c (start_decl): Don't call SET_DEFAULT_DECL_ATTRIBUTES.
3764 (start_function): Don't call SET_DEFAULT_DECL_ATTRIBUTES. Call
3765 cplus_decl_attributes even if attrs is NULL.
3766 * friend.c (do_friend): Don't call SET_DEFAULT_DECL_ATTRIBUTES.
3767
f7a4cec0
JM
37682001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
3769
3770 * decl.c (grokdeclarator), decl2.c (cplus_decl_attributes): Update
3771 calls to decl_attributes.
3772
c80106a4
IR
37732001-07-06 Ira Ruben <ira@apple.com>
3774
ae818d3b 3775 * cp-tree.def (TEMPLATE_DECL): Update comment. DECL_RESULT should
c80106a4
IR
3776 be DECL_TEMPLATE_RESULT.
3777
dac65501
KL
37782001-07-05 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3779
3780 * cp-tree.h (copy_template_template_parm): Rename to ...
3781 (bind_template_template_parm): ... here.
3782 * tree.c (copy_template_template_parm): Rename to ...
3783 (bind_template_template_parm): ... here. Remove the case when
3784 NEWARGS is NULL_TREE.
3785 (copy_tree_r): Don't copy TEMPLATE_TEMPLATE_PARM and
3786 BOUND_TEMPLATE_TEMPLATE_PARM.
3787 * pt.c (lookup_template_class): Adjust.
3788
01f9e964
JM
37892001-07-05 Jason Merrill <jason_merrill@redhat.com>
3790
3791 * cvt.c (convert_lvalue): New fn.
3792 * cp-tree.h: Declare it.
3793 * method.c (do_build_assign_ref): Use it.
3794 (do_build_copy_constructor): Convert parm to base types
3795 before calling base constructors.
3796
3797 * typeck.c (check_return_expr): Check DECL_ALIGN instead of
3798 DECL_USER_ALIGN. Check flag_elide_constructors instead of
3799 optimize.
3800 * semantics.c (cp_expand_stmt): Don't destroy the named return value.
3801
6be77748
NS
38022001-07-02 Nathan Sidwell <nathan@codesourcery.com>
3803
3804 * optimize.c (optimize_inline_calls): New function, broken out
3805 of ...
3806 (optimize_function): ... here. Call it. Don't inline if it is
3807 a thunk.
3808 (dump_function): Print name of dump flag causing this dump.
3809 * semantics.c (expand_body): Move thunk inline check to
3810 optimize_function.
3811
8d8e52be
JM
38122001-06-29 Joseph S. Myers <jsm28@cam.ac.uk>
3813
3814 * typeck.c (COMP_TYPE_ATTRIBUTES): Don't define.
3815 (comptypes): Use target.comp_type_attributes.
3816
5a0db193
NS
38172001-06-29 Nathan Sidwell <nathan@codesourcery.com>
3818
3819 * cp-tree.h (flag_dump_class_layout): Remove unneeded declaration.
3820
46f018e1
GDR
38212001-06-28 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
3822
3823 * error.c (lang_print_error_function): Add a `diagnostic_context *'
3824 parameter. Tweak.
3825
501990bb
NB
38262001-06-27 Neil Booth <neil@cat.daikokuya.demon.co.uk>
3827
3828 * decl2.c (import_export_class): Update.
3829
f68fc4db
GDR
38302001-06-26 Gabriel Dos Reis <gdr@codesourcery.com>
3831
3832 * error.c (init_error): Adjust settings.
3833
9596ddd6
GDR
38342001-06-26 Gabriel Dos Reis <gdr@codesourcery.com>
3835
3836 * error.c (init_error): Adjust settings.
3837
c93586fa
RS
38382001-06-19 Richard Sandiford <rsandifo@redhat.com>
3839
3840 * except.c (initialize_handler_parm): Expect __cxa_begin_catch to
3841 return pointers to data members by reference rather than by value.
3842
0d97bf4c
JM
38432001-06-18 Jason Merrill <jason_merrill@redhat.com>
3844
3845 Implement the Named Return Value optimization.
3846 * cp-tree.h (struct cp_language_function): Add x_return_value.
3847 (current_function_return_value): Now a macro.
3848 * decl.c: Don't define it.
3849 (define_label, finish_case_label): Don't clear it.
3850 (init_decl_processing): Don't register it with GC.
3851 * semantics.c (genrtl_finish_function): Don't check it for
3852 no_return_label. Copy the RTL from the return value to
3853 current_function_return_value and walk, calling...
3854 (nullify_returns_r): ...this new fn.
3855 * typeck.c (check_return_expr): Set current_function_return_value.
3856
13de7ec4
JM
38572001-06-15 Jason Merrill <jason_merrill@redhat.com>
3858
3859 * class.c (dfs_accumulate_vtbl_inits): Just point to the base we're
3860 sharing a ctor vtable with. Merge code for cases 1 and 2.
3861 (binfo_ctor_vtable): New fn.
3862 (build_vtt_inits, dfs_build_secondary_vptr_vtt_inits): Use it.
3863
3ea099f1
JM
38642001-06-14 Jason Merrill <jason_merrill@redhat.com>
3865
3866 * class.c (dfs_find_final_overrider): Fix logic.
3867
3868 * class.c (update_vtable_entry_for_fn): Uncomment optimization to use
3869 virtual thunk instead of non-virtual.
3870 (get_matching_virtual): Uncomment.
3871
3872 * pt.c (unify): Don't recurse between the POINTER_TYPE and the
3873 OFFSET_TYPE. If we're adding cv-quals, the extra ones would be on
3874 PARM, not ARG.
3875
87326ba8
NS
38762001-06-14 Nathan Sidwell <nathan@codesourcery.com>
3877
3878 * class.c (dfs_accumulate_vtbl_inits): For case 2 & 3, make sure
3879 we've not emerged from the hierarchy of RTTI_BINFO on reaching
3880 a non-virtual base.
3881
e065a36e
MM
38822001-06-13 Mark Mitchell <mark@codesourcery.com>
3883
3884 * NEWS: Update release number.
3885
623fe76a
NS
38862001-06-12 Nathan Sidwell <nathan@codesourcery.com>
3887
3888 PR c++/3130, c++/3131, c++/3132
3889 * cp-tree.h (BINFO_UNSHARED_MARKED): New #define.
3890 * class.c (force_canonical_binfo_r): Move
3891 BINFO_UNSHARED_MARKED, BINFO_LOST_PRIMARY_P. Don't move
3892 virtual bases unless they're primary and what they're primary
3893 too has been moved.
3894 (dfs_unshared_virtual_bases): Use BINFO_UNSHARED_MARKED. Cope
3895 with morally virtual bases. Duplicate BINFO_LOST_PRIMARY_P and
3896 BINFO_PRIMARY_BASE_OF. Clear BINFO_VTABLE for all but the most
3897 derived binfo.
3898 (mark_primary_bases): Use BINFO_UNSHARED_MARKED.
3899 (layout_nonempty_base_or_field): Add most derived type
3900 parameter. Adjust.
3901 (layout_empty_base): Likewise.
3902 (build_base_field): Likewise.
3903 (build_base_fields): Likewise.
3904 (propagate_binfo_offsets): Add most derived type
3905 parameter. Skip non canonical virtual bases too.
3906 (dfs_set_offset_for_unshared_vbases): Don't skip primary
3907 bases. Do skip canonical bases.
3908 (layout_virtual_bases): Adjust.
3909 (layout_class_type): Adjust.
3910 (dfs_get_primary_binfo): Build list of virtual primary base
3911 candidates.
3912 (get_primary_binfo): Check that the shared virtual primary
3913 base candidate was found first.
3914 (accumulate_vtbl_inits): Don't do anything for non-vptr
3915 containing binfos. For case 1 primary virtual bases, keep
3916 checking that we've not emerged from the hierarchy of RTTI_BINFO.
3917
7bdcf888
NS
39182001-06-12 Nathan Sidwell <nathan@codesourcery.com>
3919
3920 PR c++/3089
3921 * class.c (dfs_accumulate_vtbl_inits): Always walk down the
3922 hierarchy looking for primary bases for a ctor
3923 vtable. Recursively call oneself, if we meet our primary via
3924 this route and haven't met it yet via inheritance graph order.
3925
25b5b465
MM
39262001-06-11 Mark Mitchell <mark@codesourcery.com>
3927
3928 * lang-options.h: Emit documentation for -fno-honor-std, not
3929 -fhonor-std.
3930
eb2d0614
AO
39312001-06-10 Alexandre Oliva <aoliva@redhat.com>
3932
3933 * typeck.c (get_member_function_from_ptrfunc) [vbit_in_delta]:
3934 Don't clobber delta.
3935 (expand_ptrmemfunc_cst) [ptrmemfunc_vbit_in_delta]: Adjust pfn.
3936
2a2b2d43
GDR
39372001-06-10 Mark Mitchell <mark@codesourcery.com>
3938 Gabriel Dos Reis <gdr@codesourcery.com>
3939
3940 * Make-lang.in (cp/call.o): Depend on diagnostic.h
3941 (cp/typeck.o): Depend on diagnostic.h
3942 (cp/typeck2.o): Depend on diagnostic.h
07167a18 3943 (cp/repo.o): Depend on dignostic.h
2a2b2d43
GDR
3944 * typeck.c: #include diagnostic.h
3945 (convert_for_initialization): Remove extern declaration for
3946 warningcount and errorcount.
3947
3948 * call.c: #include diagnostic.h
3949 (convert_like_real): Remove extern declaration for warnincount and
07167a18 3950 errorcount.
2a2b2d43
GDR
3951
3952 * repo.c: #include diagnostic.h
3953 * typeck2.c: #include diagnostic.h
3954
06d5e633
NS
39552001-06-08 Nathan Sidwell <nathan@codesourcery.com>
3956
3957 * decl.c (duplicate_decls): Fix DECL_TEMPLATE_RESULT thinko
3958 in previous change.
3959
9ac1bd2e
NS
39602001-06-08 Nathan Sidwell <nathan@codesourcery.com>
3961
3962 PR c++/2929
3963 * friend.c (do_friend): Use push_decl_namespace for classes at
3964 namespace scope.
3965
85a9a0a2
NS
39662001-06-08 Nathan Sidwell <nathan@codesourcery.com>
3967 Jason Merrill <jason_merrill@redhat.com>
3968
3969 PR c++/3061
3970 * class.c (build_secondary_vtable): Use assert, rather than an error
3971 message.
3972 (dfs_fixup_binfo_vtbls): BINFO_VTABLE might be NULL.
3973 (dfs_accumulate_vtbl_inits): A lost primary virtual base may
3974 be between ORIG_BINFO and RTTI_BINFO, but neither of them.
3975 Don't set BINFO_VTABLE for a primary virtual base.
3976
daa8df65
MM
39772001-06-07 Mark Mitchell <mark@codesourcery.com>
3978
3979 * decl.c (duplicate_decls): Update source position information
3980 when a template function is defined.
3981
37344b9b
PE
39822001-06-07 Phil Edwards <pme@sources.redhat.com>
3983
3984 * lang-specs.h: Move -D_GNU_SOURCE to config/linux.h.
3985
fcebb2dd
NS
39862001-06-07 Nathan Sidwell <nathan@codesourcery.com>
3987
3988 PR c++/2914
3989 * decl.c (pushtag): Don't push into a complete type's scope.
3990
d0cd8b44
JM
39912001-06-06 Jason Merrill <jason_merrill@redhat.com>
3992
3993 * cp-tree.h (THUNK_GENERATE_WITH_VTABLE_P): Lose.
3994 (struct lang_decl_flags): Lose generate_with_vtable_p.
3995 (BV_GENERATE_THUNK_WITH_VTABLE_P): Lose.
3996 * class.c (copy_virtuals): Adjust.
3997 * decl2.c (mark_vtable_entries): Adjust.
3998 * method.c (make_thunk, build_vtable_entry): Adjust.
3999 * class.c (update_vtable_entry_for_fn): Only look as far as the
4000 first defining class.
07167a18 4001 (build_vtbl_initializer): Put nothing in the slot for a function only
d0cd8b44 4002 defined in a lost primary virtual base.
07167a18 4003 (add_vcall_offset_vtbl_entries_1): Use the same code for
d0cd8b44
JM
4004 the lost primary case and the normal case.
4005 (dfs_unshared_virtual_bases): Don't lose a non-virtual primary base.
4006 (get_vfield_offset, get_derived_offset): Lose.
4007 (dfs_find_final_overrider): Use look_for_overrides_here.
4008 (get_matching_virtual): New fn.
4009 * semantics.c (emit_associated_thunks): Check BV_USE_VCALL_INDEX_P,
4010 not BV_VCALL_INDEX.
4011 * search.c (look_for_overrides_here): Split out from...
4012 (look_for_overrides_r): Here.
4013
4014 * class.c (find_final_overrider): Return error_mark_node on error.
4015
4016 * decl2.c (key_method): #if 0 accidental change.
4017
acf97e0b
JDA
40182001-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
4019
4020 * call.c (convert_default_arg): Use INTEGRAL_TYPE_P.
4021 (build_over_call): Likewise.
4022 * decl.c (grokparms): Likewise.
4023 * pt.c (tsubst_decl): Likewise.
4024 * typeck.c (convert_arguments): Likewise.
4025
7e9abee9
MM
40262001-06-05 Mark Mitchell <mark@codesourcery.com>
4027
47ee8904
MM
4028 * semantics.c (begin_class_definition): Robustify.
4029
7e9abee9
MM
4030 * pt.c (instantiate_decl): Tell the repository code about the
4031 clones, not the cloned functions.
4032 * repo.c (repo_template_used): Explicitly instantiate the cloned
4033 function, not the clones.
4034
bea09693
NS
40352001-06-05 Nathan Sidwell <nathan@codesourcery.com>
4036
4037 * call.c (build_user_type_conversion_1): Set ICS_USER_FLAG and
4038 ICS_BAD_FLAG on created conversion.
4039 (compare_ics): Break out rank.
4040
8f7550ca
NS
40412001-06-05 Nathan Sidwell <nathan@codesourcery.com>
4042
4043 * decl.c (xref_tag): Remove extraneous %s on dependent name
4044 lookup warning.
4045
442e01b6
NS
40462001-06-05 Nathan Sidwell <nathan@codesourcery.com>
4047
4048 * class.c (layout_vtable_decl): Fix off by one error on
4049 build_index_type.
4050 (build_vtt): Likewise.
4051 (build_ctor_vtbl_group): Likewise.
4052
b7442fb5
NS
40532001-06-05 Nathan Sidwell <nathan@codesourcery.com>
4054
4055 * class.c (maybe_indent_hierarchy): New function.
4056 (dump_class_hierarchy_r): Add flags. Dump extra binfo
4057 information, if enabled. Use maybe_indent_hierarchy. Adjust
4058 output format.
4059 (dump_class_hierarchy): Adjust prototype. Adjust output format.
4060 (dump_array, dump_vtable, dump_vtt): New functions.
4061 (finish_struct_1): Adjust hierarchy dumping.
4062 (initialize_vtable): Call dump_vtable.
4063 (build_vtt): Call dump_vtt.
4064 (build_ctor_vtbl_group): Call dump_vtable.
4065 * decl2.c (flag_dump_class_layout): Remove.
4066 (cxx_decode_option): Remove dump translation unit
4067 and dump class hierarchy check. Call dump_switch_p.
4068 (finish_file): Adjust dumping.
4069 (dump.c): Only dump base classes if not TDF_SLIM.
4070 Only dump namespace members if not TDF_SLIM.
4071 * optimize.c (dump_function): New function.
4072 (optimize_function): Call dump_function.
4073 * semantics.c (expand_body): Use dump_enabled_p.
4074
e5410b32
NS
40752001-06-01 Nathan Sidwell <nathan@codesourcery.com>
4076
4077 PR g++/2936
4078 Part missed from first commit
4079 * decl2.c (finish_anon_union): Copy context.
4080
e97c9488
NS
40812001-05-30 Nathan Sidwell <nathan@codesourcery.com>
4082
4083 PR g++/2936
e97c9488
NS
4084 * optimize.c (remap_decl): Remap anonymous aggregate members too.
4085
87d9ac49
NS
40862001-05-26 Nathan Sidwell <nathan@codesourcery.com>
4087
4088 PR g++/2823
4089 * semantics.c (expand_body): Don't optimize thunks.
4090
88657302
RH
40912001-05-25 Sam TH <sam@uchicago.edu>
4092
4093 * cp-tree.h lex.h: Fix header include guards.
4094
40952001-05-25 Mark Mitchell <mark@codesourcery.com>
10841285
MM
4096
4097 * decl.c (init_decl_processing): Tweak.
4098
0b1161fc
MM
40992001-05-24 Mark Mitchell <mark@codesourcery.com>
4100
4101 * decl.c (duplicate_decls): Tidy.
4102 (init_decl_processing): Always set flag_no_builtin.
4103
6f56d925
NS
41042001-05-24 Nathan Sidwell <nathan@codesourcery.com>
4105
4106 PR c++/2184
4107 * decl2.c (do_local_using_decl): Push the decls, even in a
4108 template.
4109
39e0656d
MM
41102001-05-22 Mark Mitchell <mark@codesourcery.com>
4111
4112 * optimize.c (initialize_inlined_parameters): Don't set
4113 TREE_READONLY for a VAR_DECL taking the place of an inlined
4114 PARM_DECL.
4115
0401d499
JM
41162001-05-22 Jason Merrill <jason_merrill@redhat.com>
4117
4118 * class.c, cp-tree.h, rtti.c: Remove com_interface attribute support.
4119 * tree.c (cp_valid_lang_attribute): Warn about use of com_interface
4120 attribute.
4121
14fc3426
JM
41222001-05-22 Joseph S. Myers <jsm28@cam.ac.uk>
4123
4124 * parse.y: Refer to compound literals as such, not as
4125 constructor-expressions.
4126
3f41ffd8
MM
41272001-05-21 Mark Mitchell <mark@codesourcery.com>
4128
4129 * call.c (build_op_delete_call): Ignore exception-specifications
4130 when looking for matching delete operators.
4131 * init.c (build_new_1): Compute whether or not the allocation
4132 function used is a placement allocation function or not, and
4133 communicate this information to build_op_delete_call.
4134
1a6025b4
JM
41352001-05-21 Jason Merrill <jason_merrill@redhat.com>
4136
90ecce3e
JM
4137 * class.c (build_vtable_entry_ref): Lose vtbl parm. Fix for new abi.
4138 (build_vtbl_ref): Adjust.
4139 (dfs_accumulate_vtbl_inits): Set TREE_CONSTANT on the vtable address.
4140 * decl2.c (lang_f_options): Remove huge-objects, vtable-thunks.
4141 Re-add vtable-gc.
4142 (unsupported_options): Correspondingly.
4143
4144 * decl2.c (maybe_make_one_only): Check flag_weak, not
4145 supports_one_only().
4146
1a6025b4
JM
4147 * cp-tree.def (START_CATCH_STMT): Lose.
4148 * dump.c (cp_dump_tree): Don't dump it. Do dump HANDLER_PARMS.
4149 * tree.c (cp_statement_code_p): Don't case it.
4150 * semantics.c (cp_expand_stmt): Likewise.
4151 * cp-tree.h (START_CATCH_TYPE): Lose.
4152 (HANDLER_TYPE): New.
4153 * except.c (expand_start_catch_block): Don't start any blocks.
4154 Return the type.
4155 (expand_end_catch_block): Don't end any blocks.
4156 * parse.y (handler): Don't pass anything from finish_handler_parms
4157 to finish_handler.
4158 * pt.c (tsubst_expr): Likewise.
4159 * semantics.c (begin_handler): Call note_level_for_catch here.
4160 (finish_handler_parms): Don't return anything.
4161 (genrtl_catch_block, begin_catch_block): Lose.
4162 (genrtl_handler): Call expand_start_catch here.
4163
41642001-05-18 Jason Merrill <jason_merrill@redhat.com>
4165
4166 * class.c (build_vtable): Set DECL_ASSEMBLER_NAME for vtables here.
4167 (get_vtable_decl, build_vtt): Not here.
4168
d30a825a
NS
41692001-05-20 Nathan Sidwell <nathan@codesourcery.com>
4170
4171 PR c++/2781
4172 * optimize.c (update_cloned_parm): Copy addressability and other
4173 flags.
4174
3b82c249
KL
41752001-05-20 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
4176
4177 * pt.c (determine_specialization): Ignore artificial functions.
4178
2a967f3d
NB
41792001-05-20 Neil Booth <neil@daikokuya.demon.co.uk>
4180
4181 * cp-tree.h (struct lang_identifier, C_RID_YYCODE): Update.
4182 (C_RID_CODE): Remove.
4183 * lex.c (cxx_init_options): Call set_identifier_size. Update.
4184 (init_parse): Don't do it here.
4185
f99df08e
DN
41862001-05-18 Diego Novillo <dnovillo@redhat.com>
4187
4188 * decl2.c (finish_objects): Use the original SYMBOL_REF from the
4189 function declaration to avoid stripping the symbol's attributes.
4190
2b0cbc5d
NS
41912001-05-18 Nathan Sidwell <nathan@codesourcery.com>
4192
4193 * decl.c (pushdecl): Adjust error string.
4194 (xref_tag): Adjust friend class injection warning. Remove the
4195 inherited name from the class shadowed scope.
4196
e6855a2d
MM
41972001-05-17 Mark Mitchell <mark@codesourcery.com>
4198
4199 * except.c (cp_protect_cleanup_actions): New function.
07167a18 4200 (init_exception_processing): Don't set protect_cleanup_actions
e6855a2d
MM
4201 here. Do set lang_protect_cleanup_actions.
4202
cc469ee9
NS
42032001-05-16 Nathan Sidwell <nathan@codesourcery.com>
4204
4205 * spew.c (read_token): Call yyerror on all unexpected tokens.
4206
3f0a9b35
NS
42072001-05-16 Nathan Sidwell <nathan@codesourcery.com>
4208
4209 * init.c (member_init_ok_or_else): Take a tree rather than
4210 string for name.
4211 (expand_member_init): Adjust.
4212
8d0cb60d
NC
42132001-05-14 Nick Clifton <nickc@cambridge.redhat.com>
4214
4215 * decl.c (duplicate_decls): Suppress warning about duplicate
749ced52 4216 decls if the first decl is a friend.
8d0cb60d 4217
1f730ff7
ZW
42182001-05-12 Zack Weinberg <zackw@stanford.edu>
4219
4220 * except.c (choose_personality_routine): Export. Add
4221 explanatory comment. Take an enum languages, not a boolean.
4222 (initialize_handler_parm): Adjust to match.
4223 * cp-tree.h: Prototype choose_personality_routine.
4224 * lex.c (handle_pragma_java_exceptions): New function.
4225 (init_cp_pragma): Register #pragma GCC java_exceptions.
4226
90e0c410
NB
42272001-05-12 Neil Booth <neil@cat.daikokuya.demon.co.uk>
4228
4229 * method.c (build_mangled_C99_name): Remove unused prototype.
4230
cb7fdde2
AO
42312001-05-12 Alexandre Oliva <aoliva@redhat.com>
4232
4233 * cp-tree.h (ptrmemfunc_vbit_where_t): Declare type.
4234 * typeck.c (get_member_function_from_ptrfunc,
4235 build_ptrmemfunc, expand_ptrmemfunc_cst): Take
4236 TARGET_PTRMEMFUNC_VBIT_LOCATION into account.
18ae7f63
AO
4237
4238 Reverted Geoff Keating's 2001-05-03's patch.
4239
401deb20
IR
42402001-05-11 Ira Ruben <ira@apple.com>
4241
4242 * cp/cp-tree.h (C_EXP_ORIGINAL_CODE): Delete; declared in c-common.h.
4243
8e93d446
NB
42442001-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
4245
4246 * cp-tree.h (finish_label_expr, lookup_label): Delete.
4247 * parse.y: Update for '&&'; don't issue warning here.
4248 * semantics.c (finish_label_expr): Delete.
4249
5cdba4ff
MM
42502001-05-07 Mark Mitchell <mark@codesourcery.com>
4251
4252 * splay-tree.h (splay_tree_max): New function.
4253 (splay_tree_min): Likewise.
4254
8e9eff6b
GK
42552001-05-03 Geoffrey Keating <geoffk@redhat.com>
4256
4257 * cp-tree.h (enum cp_tree_index): Add CPTI_PFN_VFLAG_IDENTIFIER.
4258 (pfn_vflag_identifier): Define.
4259 Update comment about layout of pointer functions.
4260 (build_ptrmemfunc1): Update prototype.
4261 (expand_ptrmemfunc_cst): Update prototype.
4262 * decl.c (initialize_predefined_identifiers): Initialize
4263 pfn_vflag_identifier.
4264 (build_ptrmemfunc_type): When FUNCTION_BOUNDARY < 16, add
4265 an extra field to the type.
07167a18 4266 * expr.c (cplus_expand_constant): Pass 'flag' between
8e9eff6b
GK
4267 expand_ptrmemfunc_cst and build_ptrmemfunc1.
4268 * typeck.c (get_member_function_from_ptrfunc): When
4269 FUNCTION_BOUNDARY < 16, look at additional field to determine
4270 if a pointer-to-member is a real pointer or a vtable offset.
4271 (build_ptrmemfunc1): Add new parameter to contain extra field.
4272 (build_ptrmemfunc): Pass the extra field around.
4273 (expand_ptrmemfunc_cst): Add new parameter to return extra field.
4274 (pfn_from_ptrmemfunc): Ignore the extra field.
4275
acc72c37
MM
42762001-05-03 Mark Mitchell <mark@codesourcery.com>
4277
4278 * cp-tree.h (flag_inline_trees): Update documentation.
4279 * decl.c (init_decl_processing): Adjust handling of
4280 flag_inline_functions and flag_inline_trees to support -O3.
4281 (grokfndecl): Set DECL_INLINE on all functions if that's what
4282 the user requested.
4283 (save_function_data): Clear DECL_INLINE in
4284 current_function_cannot_inline is non-NULL.
4285 * decl2.c (flag_inline_trees): Update documentation.
4286
5158d7ee
NS
42872001-05-03 Nathan Sidwell <nathan@codesourcery.com>
4288
4289 * dump.c (cp_dump_tree, USING_STMT case): New case.
4290 * tree.c (cp_statement_code_p): Add USING_STMT.
4291 * decl2.c (do_using_directive): Add the using directive statement.
4292
4293 * tree.c (walk_tree): Reformat an if block.
4294
80f5bb34
MM
42952001-05-02 Mark Mitchell <mark@codesourcery.com>
4296
4297 * decl.c (compute_array_index_type): Don't try to do anything with
4298 the indices when processing a template.
4299
3e411c3f
KG
43002001-05-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4301
4302 * call.c: NULL_PTR -> NULL.
4303 * class.c: Likewise.
4304 * cvt.c: Likewise.
4305 * decl.c: Likewise.
4306 * decl2.c: Likewise.
4307 * except.c: Likewise.
4308 * init.c: Likewise.
4309 * rtti.c: Likewise.
4310 * search.c: Likewise.
4311 * tree.c: Likewise.
4312 * typeck.c: Likewise.
4313 * typeck2.c: Likewise.
4314
46188dca
MM
43152001-05-02 Mark Mitchell <mark@codesourcery.com>
4316
4317 * decl2.c (do_using_directive): Revert previous patch.
4318
9da99f7d
NS
43192001-05-01 Nathan Sidwell <nathan@codesourcery.com>
4320
4321 * cp-tree.def (USING_STMT): New statement node.
4322 * cp-tree.h (USING_STMT_NAMESPACE): New macro.
4323 * decl2.c (do_using_directive): Add USING_STMT to statement
4324 tree. Don't emit errors when processing template decl.
4325 * pt.c (tsubst_expr, USING_STMT case): New case.
4326 * semantics.c (cp_expand_stmt, USING_STMT case): New case.
4327
4b48a93e
NS
43282001-05-01 Nathan Sidwell <nathan@codesourcery.com>
4329
4330 * call.c (build_new_op): Convert args from reference here.
4331 (build_conditional_expr): Don't convert here.
4332
1bcea8d7
NS
43332001-05-01 Nathan Sidwell <nathan@codesourcery.com>
4334
4335 * spew.c (last_token_id): New static variable.
4336 (read_token): Set it here.
4337 (yyerror): Use it here.
4338
d72040f5
RH
43392001-04-30 Richard Henderson <rth@redhat.com>
4340
749ced52 4341 * cvt.c: Downcase C_PROMOTING_INTEGER_TYPE_P invocations.
d72040f5
RH
4342 * decl.c: Likewise.
4343
c3aac512
MM
43442001-04-30 Mark Mitchell <mark@codesourcery.com>
4345
4346 * gxxint.texi: Remove.
4347 * Make-lang.in: Remove all traces of gxxint.texi.
4348
5fd893d5
MM
4349Mon Apr 30 16:14:10 2001 Mark P Mitchell <mark@codesourcery.com>
4350
4351 * decl2.c (start_static_initialization_or_destruction): Correct
4352 logic to handle the -fno-use-cxa-atexit case.
4353
d60e5448
MM
43542001-04-30 Mark Mitchell <mark@codesourcery.com>
4355
4356 * optimize.c (update_cloned_parm): New function.
4357 (maybe_clone_body): Use it. Update the `this' parameter too.
4358
7200764f
JM
43592001-04-29 Joseph S. Myers <jsm28@cam.ac.uk>
4360
4361 * decl2.c (unsupported_options): Add new-abi.
4362 * lang-options.h: Remove no longer supported options.
4363
2d46ec83
NS
43642001-04-27 Nathan Sidwell <nathan@codesourcery.com>
4365
4366 * except.c (can_convert_eh): Don't check template parms,
4367 typename types etc.
4368
02a1a68c
NS
43692001-04-27 Nathan Sidwell <nathan@codesourcery.com>
4370
4371 * optimize.c (maybe_clone_body): Copy parameter names and locations.
4372
5f6eeeb3
NS
43732001-04-27 Nathan Sidwell <nathan@codesourcery.com>
4374
4375 * cp-tree.h (adjust_clone_args): Prototype new function.
4376 * class.c (adjust_clone_args): New function.
4377 * decl.c (start_function): Call it for in charge ctors.
4378
1b28d441
MM
43792001-04-26 Mark Mitchell <mark@codesourcery.com>
4380
4381 * method.c (use_thunk): Make sure that thunks really are emitted
4382 when requested.
4383
0576ec13
NS
43842001-04-26 Nathan Sidwell <nathan@codesourcery.com>
4385
4386 * mangle.c (write_chars): New macro.
4387 (hwint_to_ascii): New function
4388 (write_number): Use it.
4389 (write_integer_cst): Deal with really big numbers.
4390
b96ada87
MM
43912001-04-25 Mark Mitchell <mark@codesourcery.com>
4392
4393 * optimize.c (maybe_clone_body): Copy TREE_PUBLIC before emitting
4394 the clone.
4395
6bda7a5e
NS
43962001-04-25 Nathan Sidwell <nathan@codesourcery.com>
4397
4398 * decl.c (grokdeclarator): Set context of namespace scope
4399 TYPE_DECLS.
4400
11fe225a
ZW
44012001-04-24 Zack Weinberg <zackw@stanford.edu>
4402
4403 * cp/optimize.c: Include hashtab.h.
4404 (struct inline_data): Add tree_pruner.
4405 (expand_call_inline, expand_calls_inline): Use it when calling
4406 walk_tree.
4407 (optimize_function): Initialize and free tree_pruner.
4408
0ba8a114
NS
44092001-04-24 Nathan Sidwell <nathan@codesourcery.com>
4410
4411 Lazy __FUNCTION__ generation.
4412 * cp-tree.def (FUNCTION_NAME): Remove.
4413 * cp-tree.h (function_name_declared_p): Remove.
4414 (cp_fname_init): Prototype.
4415 * decl.c (init_decl_processing): Don't generate __FUNCTION__ et al ids,
4416 don't call declare_function_name. Call start_fname_decls.
4417 (cp_make_fname_decl): Adjust parameters. Generate the name. Don't
4418 clobber the line number.
4419 (cp_fname_init): New function.
4420 (start_function): Call start_fname_decls.
4421 (finish_function): Call finish_fname_decls.
4422 * lex.c (reswords): Add slots for __FUNCTION__ et al.
4423 (rid_to_yy): Add mappings for __FUNCTION__ et al.
4424 * optimize.c (maybe_clone_body): Remove function_name_declared_p.
4425 * parse.y (VAR_FUNC_NAME): New token.
4426 (primary): Add VAR_FUNC_NAME.
4427 * pt.c (tsubst_decl): Adjust a DECL_PRETTY_FUNCTION_P's
4428 generation.
4429 (tsubst, FUNCTION_NAME case): Remove.
4430 (tsubst_copy, FUNCTION_NAME case): Remove.
4431 (tsubst_expr, DECL_STMT case): Be careful with a
4432 DECL_PRETTY_FUNCTION_P.
4433 (instantiate_decl): Remove function_name_declared_p.
4434 * semantics.c (begin_compound_statement): Don't call
4435 declare_function_name here.
4436 (setup_vtbl_ptr). Don't save & restore function_name_declared_p.
4437 (finish_translation_unit): Call finish_fname_decls.
4438 (expand_body): Remove function_name_declared_p.
4439 * typeck2.c (digest_init): Allow any ERROR_MARK.
4440
dfbb4f34
NS
44412001-04-24 Nathan Sidwell <nathan@codesourcery.com>
4442
4443 * pt.c (tsubst_decl): Use VOID_TYPE_P.
4444 * semantics.c: Fix some typos.
4445
e2584c52
PE
44462001-04-23 Phil Edwards <pme@sources.redhat.com>
4447
4448 * cp/decl2.c (flag_honor_std): Always initialize to 1.
4449
d4c3ec27
KG
44502001-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4451
4452 * xref.c (GNU_xref_file): Use concat in lieu of xmalloc/sprintf.
4453
2ac8a0f9
JM
44542001-04-23 Jason Merrill <jason_merrill@redhat.com>
4455
4456 * except.c (build_throw): Wrap the initialization of the exception
4457 object in a MUST_NOT_THROW_EXPR.
4458 (do_free_exception): #if 0.
4459
968b956a
MM
44602001-04-20 Mark Mitchell <mark@codesourcery.com>
4461
4462 * cp-tree.h (finish_enum): Change prototype.
4463 * decl.c (finish_enum): Reorganize.
4464 * parse.y (structsp): Adjust calls to finish_enum.
11fe225a 4465
aa1826e2
NS
44662001-04-20 Nathan Sidwell <nathan@codesourcery.com>
4467
4468 * tree.c (cp_tree_equal): Adjust final switch formatting. Add
4469 't' case.
4470
06d9f09f
NS
44712001-04-20 Nathan Sidwell <nathan@codesourcery.com>
4472
4473 * class.c (dfs_unshared_virtual_bases): Add ATTRIBUTE_UNUSED.
4474 (layout_empty_base): Return at end flag.
4475 (build_base_field): Likewise.
4476 (build_base_fields): Likewise.
4477 (layout_virtual_bases): Don't add 1 to eoc value.
4478 (end_of_class): Use full size for empty bases.
4479 (layout_class_type): Clear CLASSNEARLY_EMPTY_P if we appended
4480 empty bases. Don't add 1 to eoc value. Only add trailing padding
4481 if we're an empty class with no empty bases.
4482 (dump_class_hierarchy): Dump size and alignment.
4483
351a0f00
JJ
44842001-04-20 Jakub Jelinek <jakub@redhat.com>
4485
4486 * call.c (maybe_handle_ref_bind): Copy ICS_USER_FLAG and
4487 ICS_BAD_FLAG.
4488
881cae05
JJ
44892001-04-20 Jakub Jelinek <jakub@redhat.com>
4490
4491 * search.c (lookup_field_r): If looking for type and non-TYPE_DECL
4492 is found, look first if name does not match the structure name.
4493
5d2ed28c
MM
44942001-04-19 Mark Mitchell <mark@codesourcery.com>
4495
4496 * cp-tree.h (DECL_LANGUAGE): Don't assume DECL_LANG_SPECIFIC is
4497 set.
4498 (SET_DECL_LANGUAGE): New macro.
4499 * decl.c (duplicate_decls): Use SET_DECL_LANGUAGE.
4500 (pushdecl): Likewise.
4501 (build_library_fn_1): Likewise.
4502 (build_cp_library_fn): Likewise.
4503 (grokfndecl): Likewise.
4504 (grokvardecl): Mark `extern "C"' variables as having C linkage.
4505 * decl2.c (grokclassfn): Use SET_DECL_LANGUAGE.
4506 * lex.c (retrofit_lang_decl): Likewise.
4507 * mangle.c (mangle_decl_string): Don't mangle the names of
4508 variables declared with C language linkage.
4509 * semantics.c (finish_member_declaration): Use SET_DECL_LANGUAGE.
11fe225a 4510
41251458
JDA
45112001-04-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
4512
4513 * semantics.c (simplify_aggr_init_exprs_r): Don't restore
4514 flag_access_control from uninitialized storage.
4515
1b4a93f7
MM
45162001-04-15 Mark Mitchell <mark@codesourcery.com>
4517
24272dc0
MM
4518 * cp-tree.h (TYPE_PTRMEM_CLASS_TYPE): Improve documentation.
4519 * mangle.c (write_pointer_to_member_type): Fix mangling of
4520 pointers to cv-qualified member function types.
4521
1b4a93f7
MM
4522 * init.c (build_delete): Create a SAVE_EXPR for the address if
4523 we're going to use it more than once.
4524
530ec96d
MM
45252001-04-13 Mark Mitchell <mark@codesourcery.com>
4526
4527 * cp-tree.h (DELTA2_FROM_PTRMEMFUNC): Remove.
4528 (expand_ptremfunc_cst): Change prototype.
4529 (delta2_from_ptrmemfunc): Remove.
4530 * expr.c (cplus_expand_constant): Adjust call to
4531 expand_ptrmemfunc_cst.
4532 * typeck.c (build_ptrmemfunc1): Simplify.
4533 (build_ptrmemfunc): Make sure that casting a PTRMEM_CST still
4534 results in a constant.
4535 (expand_ptrmemfunc_cst): Remove idx and delta2 parameters.
4536 (delta2_from_ptrmemfunc): Remove.
4537 (pfn_from_ptrmemfunc): Adjust call to expand_ptrmemfunc_cst.
11fe225a 4538
ee8fc32b
JM
45392001-04-12 Jason Merrill <jason_merrill@redhat.com>
4540
4541 * cp-tree.h (decl_namespace_list): New macro.
4542 (struct saved_scope): Add decl_ns_list.
4543 * decl.c (mark_saved_scope): Mark it.
4544 * decl2.c: Lose static decl_namespace_list.
4545 (init_decl2): Don't save it.
4546
48857160
KG
45472001-04-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4548
4549 * cp-tree.h (warn_return_type, yylex): Delete redundant
4550 declarations.
11fe225a 4551
48857160
KG
4552 * decl.c (current_class_depth, global_namespace): Likewise.
4553
4554 * decl2.c (current_class_depth, flag_gnu_xref): Likewise
4555
4556 * repo.c (flag_use_repository): Likewise.
4557
845e14ed
KG
45582001-04-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4559
4560 * cp-tree.h (pedantic, convert, global_bindings_p, insert_block,
4561 set_block, pushdecl, getdecls, gettags, init_decl_processing,
4562 maybe_build_cleanup, copy_lang_decl, prep_stmt, lvalue_p,
4563 lvalue_or_else, print_lang_statistics, comp_target_types,
4564 unsigned_type, signed_type, signed_or_unsigned_type,
4565 build_function_call, mark_addressable, incomplete_type_error):
4566 Delete redundant declarations.
4567
1951a1b6
JM
45682001-04-11 Jason Merrill <jason_merrill@redhat.com>
4569
4570 * cp-tree.h (TYPE_LINKAGE_IDENTIFIER): New macro.
4571 (TYPE_ANONYMOUS_P): New macro.
4572 (TAGGED_TYPE_P): New macro.
4573 * decl.c (check_tag_decl): Use TYPE_ANONYMOUS_P.
4574 (grokfndecl, grokvardecl, grokdeclarator): Likewise.
4575 * tree.c (no_linkage_helper): Likewise.
4576 * semantics.c (begin_class_definition): Likewise.
4577 * pt.c (convert_template_argument): Likewise.
4578 * lex.c (check_for_missing_semicolon): Likewise.
4579
0fb3018c
NS
45802001-04-12 Nathan Sidwell <nathan@codesourcery.com>
4581
4582 * class.c (dfs_unshared_virtual_bases): New function.
4583 (mark_primary_bases): Call it.
4584 (check_bases): Ignore virtual bases when determining
4585 nearly-emptiness.
4586
bbb53468
NS
45872001-04-12 Nathan Sidwell <nathan@codesourcery.com>
4588
4589 * method.c (make_thunk): Clear DECL_CLONED_FUNCTION.
4590
9b7949d5
MM
45912001-04-11 Mark Mitchell <mark@codesourcery.com>
4592
4593 * optimize.c (maybe_clone_body): Copy DECL_NUM_STMTS from the
4594 cloned function to the clone.
4595
d6684bc8
KG
45962001-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4597
4598 * Make-lang.in (cp/semantics.o): Depend on $(EXPR_H).
4599
4600 * semantics.c: Include expr.h.
4601
a2095778
NS
46022001-04-11 Nathan Sidwell <nathan@codesourcery.com>
4603
4604 * method.c (implicitly_declare_fn): Commonize code for copy ctor
4605 and assignment op. Set TREE_USED for parameter.
4606
78b45a24
MM
46072001-04-10 Mark Mitchell <mark@codesourcery.com>
4608
4609 * class.c (find_final_overrider_data): Add `candidates'.
4610 (dfs_find_final_overrider): Don't issue error messages
4611 prematurely.
4612 (find_final_overrider): Issue error messages here.
4613 (build_base_field): Don't warn about amgibuous direct bases here.
4614 (warn_about_ambiguous_direct_bases): New function.
4615 (layout_class_type): Use it.
4616
0450d74d
RH
46172001-04-10 Richard Henderson <rth@redhat.com>
4618
4619 * typeck.c (build_array_ref): Push the array reference inside
4620 COMPOUND_EXPR and COND_EXPR.
4621
79065db2
MM
46222001-04-05 Mark Mitchell <mark@codesourcery.com>
4623
4624 * cp-tree.h (DECL_THIS_INLINE): Rename to DECL_DECLARED_INLINE_P.
4625 * decl.c (duplicate_decls): Adjust accordingly.
4626 (maybe_commonize_var): Likewise.
4627 (grokfndecl): Likewise.
4628 (start_function): Likewise.
4629 (start_method): Likewise.
4630 * decl2.c (key_method): Likewise.
4631 (import_export_decl): Likewise.
4632 * method.c (implicitly_declare_fn): Likewise.
4633 * optimize.c (maybe_clone_body): Likewise.
11fe225a 4634
fdecbf8a
BK
46352001-04-05 Benjamin Kosnik <bkoz@redhat.com>
4636
b03eced6 4637 * lang-specs.h: Add __DEPRECATED.
fdecbf8a 4638
0b4c1646
R
4639Thu Apr 5 16:54:29 2001 J"orn Rennecke <amylaar@redhat.com>
4640
4641 * search.c (get_dynamic_cast_base_type): When building a new
4642 constant, set its type to ssizetype.
4643
e59d6709
JJ
46442001-04-04 Jakub Jelinek <jakub@redhat.com>
4645
4646 * optimize.c (expand_call_inline): Only add newly inlined statements
4647 into inlined_stmts.
4648
0c918ce5
MM
46492001-04-03 Mark Mitchell <mark@codesourcery.com>
4650
4651 * cp-tree.h (OPERATOR_ASSIGN_FORMAT): Remove.
4652 (OPERATOR_FORMAT): Likewise.
4653 (OPERATOR_TYPENAME_FORMAT): Likewise.
4654 * operators.def: Remove old name-mangling information.
4655 * decl.c (grok_op_properties): Adjust accordingly.
4656 * lex.c (init_operators): Likewise.
4657 * rtti.c (get_tinfo_decl): Issue error messages about types that
4658 have variable size.
4659
92788413
MM
46602001-04-03 Mark Mitchell <mark@codesourcery.com>
4661
11fe225a 4662 * decl2.c (import_export_decl): Don't call import_export_class
92788413
MM
4663 when processing an inline member function.
4664 * semantics.c (expand_body): Call import_export_decl before
4665 emitting inline functions.
4666
52a11cbf
RH
46672001-03-28 Richard Henderson <rth@redhat.com>
4668
4669 IA-64 ABI Exception Handling:
4670 * cp-tree.def (EH_SPEC_BLOCK): New.
4671 (MUST_NOT_THROW_EXPR): New.
4672 * cp-tree.h: Update changed function declarations.
4673 (CPTI_PUSH_EXCEPTION_IDENTIFIER): Remove.
4674 (CPTI_CALL_UNEXPECTED): New.
4675 (struct cp_language_function): Rename x_eh_spec_try_block
4676 to x_eh_spec_block.
4677 (EH_SPEC_STMTS, EH_SPEC_RAISES): New.
11fe225a 4678 * decl.c (current_binding_level): If no current function
52a11cbf
RH
4679 bindings, revert to scope_chain.
4680 (initialize_predefined_identifiers): Remove __cp_push_exception.
4681 (store_parm_decls): Use begin_eh_spec_block.
4682 (finish_function): Use finish_eh_spec_block.
4683 (mark_lang_function): Update for name changes.
4684 * decl2.c (finish_file): No mark_all_runtime_matches.
4685 * dump.c (cp_dump_tree): Handle new tree codes.
4686 * error.c (dump_expr) [BIND_EXPR]: Fix typo.
4687 * except.c (catch_language_init, catch_language): Remove.
4688 (init_exception_processing): Don't set language code.
4689 Initialize call_unexpected_node, protect_cleanup_actions,
4690 eh_personality_libfunc, lang_eh_runtime_type.
4691 (call_eh_info, push_eh_info, get_eh_info, get_eh_value): Remove.
4692 (get_eh_type, get_eh_caught, get_eh_handlers): Remove.
4693 (prepare_eh_type): Split out type canonicalizations ...
4694 (build_eh_type_type): ... from here.
4695 (build_eh_type_type_ref): Remove.
4696 (mark_all_runtime_matches): Remove.
4697 (build_exc_ptr): New.
4698 (do_begin_catch, do_end_catch): New.
4699 (do_pop_exception): Remove.
4700 (build_terminate_handler): Remove.
4701 (choose_personality_routine): Split out language choice from ...
4702 (initialize_handler_parm): ... here.
4703 Use MUST_NOT_THROW_EXPR.
4704 (expand_start_catch_block): Use do_begin_catch. Simplify Java
4705 exception object handling.
4706 (expand_start_eh_spec, expand_end_eh_spec): Remove.
4707 (expand_exception_blocks, alloc_eh_object): Remove.
4708 (begin_eh_spec_block, finish_eh_spec_block): New.
4709 (do_allocate_exception, do_free_exception): New.
4710 (expand_throw): Merge into ...
4711 (build_throw): ... here. Update for abi.
4712 * expr.c (cplus_expand_expr): No expand_internal_throw.
4713 Handle MUST_NOT_THROW_EXPR.
4714 * pt.c (tsubst_expr): Handle EH_SPEC_BLOCK.
4715 * semantics.c (*) Update for except.h name changes.
4716 (genrtl_try_block): No protect_with_terminate.
4717 (genrtl_eh_spec_block): New.
4718 (genrtl_handler): Don't emit the goto here.
4719 (cp_expand_stmt): Handle EH_SPEC_BLOCK.
4720 (genrtl_finish_function): Don't expand_exception_blocks.
4721 * tree.c (cp_statement_code_p): Handle EH_SPEC_BLOCK.
4722
826840d9
RH
47232001-03-28 Richard Henderson <rth@redhat.com>
4724
4725 * decl.c (struct named_label_list): Rename eh_region to
4726 in_try_scope, add in_catch_scope.
4727 (struct binding_level): Rename eh_region to is_try_scope,
4728 add is_catch_scope.
4729 (note_level_for_try): Rename from note_level_for_eh.
4730 (note_level_for_catch): New.
4731 (poplevel): Copy both is_try_scope and is_catch_scope to
4732 the named_label_list struct.
4733 (check_previous_goto_1): Don't check for catch block via
4734 DECL_ARTIFICIAL; use in_try_scope instead.
4735 (check_goto): Likewise.
4736 * cp-tree.h (note_level_for_try, note_level_for_catch): Declare.
4737 * except.c (expand_start_catch_block): Call note_level_for_catch.
4738 * semantics.c (begin_compound_stmt): Update for note_level_for_try.
4739
531073e7
RH
47402001-03-27 Richard Henderson <rth@redhat.com>
4741
4742 * except.c: Use USING_SJLJ_EXCEPTIONS instead of
4743 exceptions_via_longjmp.
4744
8653a2c3
PE
47452001-03-27 Phil Edwards <pme@sources.redhat.com>
4746
4747 * pt.c (check_default_tmpl_args): Make error messages clearer.
4748
47492001-03-26 Phil Edwards <pme@sources.redhat.com>
4750
4751 * error.c: Also undefine 'A' macro used for cp_printers definition.
4752
911e6107
KG
47532001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4754
4755 * Make-lang.in: Depend on $(SYSTEM_H), not system.h.
4756
005a5cb0
MY
47572001-03-26 Mike Yang <yang@research.att.com>
4758 Mark Mitchell <mark@codesourcery.com>
4759
4760 * dump.c (dump_access): New function.
4761 (cp_dump_tree): Use it. Dump basetype information for class
4762 types.
4763
b850de4f
MM
47642001-03-26 Mark Mitchell <mark@codesourcery.com>
4765
4766 * Makefile.in (optimize.o): Depend on params.h.
4767 (duplicate_decls): Copy DECL_NUM_STMTS, not DECL_FRAME_SIZE.
4768 (init_decl_processing): Set flag_no_inline when doing
4769 inlining-on-trees.
4770 * optimize.c: Include params.h.
4771 (struct inline_data): Improve documentation of FNS. Add
4772 FIRST_INLINED_FN, INLINED_STMTS, and CLONING_P.
4773 (INSNS_PER_STMT): New macro.
4774 (remap_block): Use CLONING_P.
4775 (inlinable_function_p): Don't inline big functions.
4776 (expand_call_inline): Keep track of how much inlining we've done.
4777 (optimize_function): Set FIRST_INLINED_FN.
4778 (maybe_clone_body): Set CLONING_P.
4779 * semantics.c (simplify_aggr_init_exprs_r): Fix typing problems in
4780 tree nodes.
4781 (genrtl_finish_function): Clear DECL_DEFER_OUTPUT before calling
4782 rest_of_compilation. Clear DECL_RTL for local variables
4783 afterwards.
4784 (clear_decl_rtl): New function.
11fe225a 4785
788bf0e3
NS
47862001-03-26 Nathan Sidwell <nathan@codesourcery.com>
4787
4788 Implement DR 209
4789 * cp-tree.h (skip_type_access_control,
4790 reset_type_access_control): Prototype.
4791 * decl.c (grokdeclarator): Access of friends is not checked.
4792 * parse.y (component_decl_list): Reset type access control.
4793 * semantics.c (decl_type_access_control): Clear
4794 current_type_lookups.
4795 (save_type_access_control): Don't save if not deferring.
4796 (skip_type_access_control, reset_type_access_control): New
4797 functions.
4798 (begin_class_definition): Do type access control for basetypes.
4799 Start deferred access control.
4800 (finish_class_definition): Resume immediate access control if
4801 this is a local class.
4802
730e1556
KG
48032001-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4804
4805 * class.c (add_method): Use memcpy/memmove, not bcopy.
4806
4807 * decl.c (duplicate_decls): Likewise.
4808
f1a0345c
JJ
48092001-03-23 Jakub Jelinek <jakub@redhat.com>
4810
4811 * mangle.c (write_discriminator): Use `_0' for discriminator 1,
4812 not `_'.
4813
8e4ce833
JJ
48142001-03-23 Jakub Jelinek <jakub@redhat.com>
4815
4816 * decl.c (local_names): Define.
4817 (push_local_name): New.
4818 (grok_reference_init): Return init if initializing static reference
4819 variable with non-constant instead of emitting it.
4820 Move expand_static_init call to cp_finish_decl.
4821 (layout_var_decl): Call push_local_name.
4822 (maybe_commonize_var): Allow inlining functions even if they have
4823 static local variables, use comdat_linkage for them if flag_weak.
4824 (check_initializer): Call obscure_complex_init if
4825 grok_reference_init returned non-zero.
4826 (save_function_data): Clear x_local_names.
4827 (pop_cp_function_context): Free x_local_names.
4828 (mark_inlined_fns): Remove.
4829 (mark_lang_function): Mark x_local_names.
4830 (lang_mark_tree): Don't mark DECL_ACCESS for DECL_DISCRIMINATOR_P.
4831 Mark inlined_fns as tree, remove call to mark_inlined_fns.
4832 * class.c (alter_access): Ensure DECL_ACCESS is never set if
4833 DECL_DISCRIMINATOR_P.
4834 * cp-tree.h (cp_language_function): Add x_local_names.
4835 (lang_decl_flags): Add discriminator into u2.
4836 (lang_decl_inlined_fns): Remove.
4837 (lang_decl): inlined_fns is now a TREE_VEC.
4838 (DECL_DISCRIMINATOR_P, DECL_DISCRIMINATOR): Define.
4839 * optimize.c (inlinable_function_p): DECL_INLINED_FNS is now a
4840 TREE_VEC, not a custom structure.
4841 (optimize_function): Likewise.
4842 * mangle.c (discriminator_for_local_entity): Discriminate among
4843 VAR_DECL local entities.
4844 * search.c (dfs_access_in_type): If DECL_DISCRIMINATOR_P, DECL_ACCESS
4845 is not valid.
4846
60c87482
BM
48472001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
4848
4849 Add support for Java interface method calls.
4850 * cp-tree.h (struct lang_type): Add java_interface flag.
4851 (TYPE_JAVA_INTERFACE): New macro.
4852 * tree.c (cp_valid_lang_attribute): Handle "java_interface" attribute
4853 by setting TYPE_JAVA_INTERFACE.
4854 * call.c (java_iface_lookup_fn): New static.
11fe225a 4855 (build_over_call): If calling a method declared in a
60c87482
BM
4856 TYPE_JAVA_INTERFACE, call build_java_interface_fn_ref to generate the
4857 expression which resolves the function address.
4858 (build_java_interface_fn_ref): New function.
4859
94c7f30b
RH
48602001-03-22 Richard Henderson <rth@redhat.com>
4861
4862 * Make-lang.in (cp/except.o): Don't depend on insn-flags.h.
4863 * except.c: Don't include it.
4864
fd8b7a0e 48652001-03-22 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
826840d9 4866 based on an idea from Joe Buck <jbuck@synopsys.com>
fd8b7a0e
GP
4867
4868 * parse.y (bad_decl, template_arg_list_ignore, arg_list_ignore):
4869 New nonterminals.
4870 (data_def, component_decl): Add reductions to bad_decl.
4871
a1c2b86d
JJ
48722001-03-22 Jakub Jelinek <jakub@redhat.com>
4873
4874 * method.c (do_build_assign_ref): Don't use build_modify_expr for
4875 anonymous aggregates, since they don't have assignment operator
4876 method.
4877 * decl.c (fixup_anonymous_aggr): Disallow ctors, dtors and copy
4878 assignment operators for anonymous structure fields.
4879
46ccf50a
JM
48802001-03-21 Jason Merrill <jason@redhat.com>
4881
4882 * pt.c (instantiate_decl): Abort if we see a member constant
4883 instantiation that doesn't already have its initializer.
4884 Downgrade explicit instantiation without definition to pedwarn.
4885
4886 * cp-tree.h (DECL_TINFO_FN_P, SET_DECL_TINFO_FN_P): Remove.
4887 * class.c (build_vtable_entry): Don't check DECL_TINFO_FN_P.
4888 (import_export_decl): Check tinfo_decl_p, not DECL_TINFO_FN_P.
4889
4890 * cp-tree.h (CLASSTYPE_VTABLE_NEEDS_WRITING): Remove.
4891 (pending_vtables): Remove.
4892 * decl2.c (pending_vtables): Remove.
4893 (import_export_vtable): Use CLASSTYPE_INTERFACE_ONLY, not
4894 CLASSTYPE_VTABLE_NEEDS_WRITING.
4895 (import_export_class): Likewise.
4896 (init_decl2): Don't mark pending_vtables.
4897 * lex.c (handle_pragma_vtable): Just sorry.
4898 * pt.c (instantiate_class_template): Don't mess with
4899 CLASSTYPE_VTABLE_NEEDS_WRITING.
4900 (mark_class_instantiated): Likewise.
4901 * ptree.c (print_lang_type): Don't print it.
4902 * semantics.c (begin_class_definition): Don't set it.
4903
4904 * pt.c (template_tail): Replace with last_pending_template.
4905 (maybe_templates, maybe_template_tail): Remove.
4906 (add_pending_template): Adjust.
4907 (instantiate_pending_templates): Adjust.
4908
4909 * cp-tree.h (struct saved_scope): Remove lang_stack field.
4910 (current_lang_stack): Remove.
4911 * decl.c (maybe_push_to_top_level): Don't initialize it.
4912 (duplicate_decls): Use current_lang_depth.
4913 (xref_basetypes): Likewise.
4914 * class.c (current_lang_depth): New fn.
4915 (push_lang_context): Use more varray functionality.
4916 (pop_lang_context): Likewise.
64d9c3fe
JM
4917
4918 * error.c (GLOBAL_THING): Always use '__'.
4919
1c06710a
MM
49202001-03-21 Mark Mitchell <mark@codesourcery.com>
4921
71cb9286
MM
4922 * class.c (build_clone): Clear DECL_ASSEMBLER_NAME.
4923
1c06710a
MM
4924 * mangle.c (mangle_decl_string): Mangle the names of overloaded
4925 operators, even when they have `extern "C"' linkage.
4926
92643fea
MM
49272001-03-19 Mark Mitchell <mark@codesourcery.com>
4928
4929 * class.c (get_vtable_decl): Use SET_DECL_ASSEMBLER_NAME,
4930 COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
4931 where it's not necessary.
4932 (add_method): Remove optimization involving comparison of
4933 DECL_ASSEMBLER_NAME.
4934 (build_vtbl_or_vbase_field): Use SET_DECL_ASSEMBLER_NAME,
4935 COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
4936 where it's not necessary.
4937 (check_methods): Likewise.
4938 (build_clone): Likewise.
4939 (built_vtt): Likewise.
4940 * cp-tree.h (DECL_NEEDED_P): Likewise.
4941 * decl.c (pushtag): Likewise.
4942 (duplicate_decls): Likewise.
4943 (pushdecl): Likewise.
4944 (builtin_function): Likewise.
4945 (build_library_fn_1): Set DECL_LANGUAGE for library functions.
4946 (build_cp_library_fn): Likewise.
4947 (maybe_commonize_var): Use SET_DECL_ASSEMBLER_NAME,
4948 COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
4949 where it's not necessary.
4950 (make_rtl_for_nonlocal_decl): Likewise.
4951 (cp_finish_decl): Likewise.
4952 (grokfndecl): Likewise.
4953 (grokvardecl): Likewise.
4954 (grokdeclarator): Likewise.
4955 (start_function): Likewise.
4956 (cp_missing_return_ok_p): Likewise.
4957 * decl2.c (grokclassfn): Likewise.
4958 (check_classfn): Likewise.
4959 (finish_static_data_member_decl): Likewise.
4960 (grokfield): Likewise.
4961 * error.c (GLOBAL_IORD_P): Remove.
4962 (dump_global_iord): Improve output.
4963 (dump_decl): Avoid using DECL_ASSEMBLER_NAME.
4964 * except.c (nothrow_libfn_p): Summarily reject any function not in
4965 namespace-scope.
4966 * init.c (build_java_class_ref): Don't explicitly set
4967 DECL_ASSEMBLER_NAME after calling mangle_decl.
4968 * mangle.c (mangle_decl_string): Handle extern "C" functions.
4969 (mangle_decl): Set the DECL_ASSEMBLER_NAME for the decl.
4970 * method.c (set_mangled_name_for_decl): Don't explicitly set
4971 DECL_ASSEMBLER_NAME after calling mangle_decl.
4972 (make_thunk): Explicitly set the DECL_ASSEMBLER_NAME and
4973 IDENTIFIER_GLOBAL_VALUE for the thunk.
4974 * pt.c (set_mangled_name_for_template_decl): Remove.
4975 (check_explicit_specialization): Don't use it.
4976 (looup_template_class): Don't set DECL_ASSEMBLER_NAME.
4977 (tsubst_friend_function): Likewise.
4978 (tsubst_decl): Likewise.
4979 (regenerate_decl_from_template): Use COPY_DECL_ASSEMBLER_NAME.
4980 * rtti.c (get_tinfo_decl): Use SET_DECL_ASSEMBLER_NAME,
4981 COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
4982 where it's not necessary.
4983 (tinfo_base_init): Likewise.
4984 (create_real_tinfo_var): Likewise.
4985 * search.c (looup_field_1): Likewise.
4986 * semantics.c (finish_named_return_value): Likewise.
4987 * tree.c (init_tree): Set lang_set_decl_assembler_name.
11fe225a 4988
d064d75a
GDR
49892001-03-15 Gabriel Dos Reis <gdr@codesourcery.com>
4990
4991 Correct semantics restrictions checking in throw-expression.
4992 * except.c (is_admissible_throw_operand): New function.
4993 (build_throw): Use it.
4994
a3eab619
MM
49952001-03-14 Mark Mitchell <mark@codesourcery.com>
4996
4997 * decl.c (cp_make_fnname_decl): Set DECL_IGNORED_P on __FUNCTION__
4998 and its ilk.
4999
19e7881c
MM
50002001-03-14 Mark Mitchell <mark@codesourcery.com>
5001
5002 * class.c (build_clone): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.
5003 * cp-tree.h (DECL_IN_MEMORY_P): Likewise.
5004 * decl.c (duplicate_decls): Likewise.
5005 (builtin_function): Likewise.
5006 (build_library_fn): Likewise.
5007 (build_cp_library_fn): Likewise.
5008 (check_initializer): Likewise.
5009 (cp_finish_decl): Likewise.
5010 * decl2.c (grokfield): Likewise.
5011 (grok_function_init): Remove #if 0'd code.
5012 (finish_anon_union): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.
5013 * friend.c (do_friend): Likewise.
5014 * init.c (get_temp_regvar): Likewise.
5015 * method.c (make_thunk): Likewise.
5016 * pt.c (tsubst_friend_function): Likewise.
5017 (tsubst_decl): Likewise.
5018 (regenerate_decl_from_template): Likewise.
5019 * semantics.c (genrtl_named_return_value): Likewise.
5020 (expand_body): Likewise.
5021 (genrtl_finish_function): Likewise.
5022 * tree.c (cp_tree_equal): Likewise.
11fe225a 5023
78fe06c2
NS
50242001-03-12 Nathan Sidwell <nathan@codesourcery.com>
5025
5026 * call.c (convert_like_real): Add extra semantics to INNER
5027 parameter. Don't convert to temporary if a user conversion
5028 gives us an lvalue that we're about to bind to a reference.
5029 Set INNER to indicate pending reference binding on recursive
5030 calls.
5031
b3e68a79
NB
50322001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
5033
5034 * cp/lex.c: Delete duplicate pending_lang_change.
5035
50362001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
5037
5038 * cp/lex.c (handle_pragma_interface, handle_pragma_implementation):
5039 Similarly.
5040 * cp/repo.c (get_base_filename, open_repo_file): Similarly.
5041 * cp/cp-tree.h: Remove file_name_nondirectory prototype.
5042
11642c3a
ZW
50432001-03-09 Zack Weinberg <zackw@stanford.edu>
5044
5045 * Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
5046
bb6852eb 50472001-03-08 Stan Shebs <shebs@apple.com>
f7687817
SS
5048
5049 * cp-tree.h (set_identifier_local_value): Remove unused decl.
5050
cc937581
ZW
50512001-03-06 Zack Weinberg <zackw@stanford.edu>
5052
5053 * spew.c: Remove references to CPP_OSTRING.
5054
d1188d91
AH
50552001-03-06 Andrew Haley <aph@redhat.com>
5056
5057 * typeck.c (convert_arguments): Check that we have an fndecl.
5058
4eaf1d5b
AH
50592001-03-05 Andrew Haley <aph@redhat.com>
5060
5061 * typeck.c (convert_arguments): Don't do ellipsis conversion for
5062 __built_in_constant_p.
5063
7eeb553c
NS
50642001-03-02 Nathan Sidwell <nathan@codesourcery.com>
5065
5066 * typeck.c (build_static_cast): Allow enum to enum conversions
5067 as per DR 128.
5068
d282fcb2
NS
50692001-03-02 Nathan Sidwell <nathan@codesourcery.com>
5070
5071 * class.c (check_field_decls): Pointers to member do not a
5072 non-pod struct make, as per DR 148.
5073
f86fdf68
NS
50742001-03-02 Nathan Sidwell <nathan@codesourcery.com>
5075
5076 * call.c (joust): cp_pedwarn when using gnu extension concerning
5077 worst conversion sequences.
5078
d6edb99e
ZW
50792001-03-01 Zack Weinberg <zackw@stanford.edu>
5080
5081 * decl.c: Replace all uses of 'boolean' with 'bool'.
5082
f7143427
ZW
50832001-03-01 Zack Weinberg <zackw@stanford.edu>
5084
5085 * lang-specs.h: Add zero initializer for cpp_spec field to
5086 all array elements that need one. Don't put an #ifdef inside
5087 the initializer list; set a default for CPLUSPLUS_CPP_SPEC and
5088 use it.
5089
fbfe8c9e
NS
50902001-03-01 Nathan Sidwell <nathan@codesourcery.com>
5091
5092 Implement using decls inside template functions.
5093 * decl2.c (validate_nonmember_using_decl): Don't special case
5094 fake_std_node in the global namespace. Don't reject early when
5095 processing a template.
5096 (do_local_using_decl): Add to statement tree. Don't do further
5097 processing when building a template.
5098 * pt.c (tsubst_expr, DECL_STMT case): Deal with USING_DECLs.
5099
4d24a889
NS
51002001-03-01 Nathan Sidwell <nathan@codesourcery.com>
5101
5102 * decl2.c (do_nonmember_using_decl): Don't complain if we find
5103 same function. Do complain about ambiguating extern "C"
5104 declarations.
5105
e5844e6d
NS
51062001-02-28 Nathan Sidwell <nathan@codesourcery.com>
5107
5108 Remove floating point and complex type template constant parms.
5109 * pt.c (convert_nontype_argument): Remove REAL_TYPE and
5110 COMPLEX_TYPE extensions.
5111 (invalid_nontype_parm_type_p): Likewise.
5112
788f238c
JO
51132001-02-27 Jeffrey Oldham <oldham@codesourcery.com>
5114
5115 * except.c (call_eh_info): Revert "match_function"'s type.
5116
73ea87d7
NS
51172001-02-27 Nathan Sidwell <nathan@codesourcery.com>
5118
5119 Fix ctor vtable vcall offsets.
5120 * class.c (struct vtbl_init_data_s): Add rtti_binfo member.
5121 (build_rtt_vtbl_entries): Lose RTTI_BINFO parameter.
5122 (get_matching_base): Remove.
5123 (get_original_base): New function.
11fe225a 5124 (build_vtbl_initializer): Initialize vid.rtti_binfo.
73ea87d7
NS
5125 Use a virtual thunk for a ctor vtable with an index
5126 (add_vcall_offset_vtbl_entries_1): Check if binfo has lost a
5127 primary base within a constructor vtable. Only set
5128 BV_VCALL_INDEX when not a constructor vtable. Adjust vcall offset
5129 when primary base has been lost.
5130 * cp-tree.h (BINFO_VIRTUALS): Remove ambiguity from comment.
5131
fe730161
JO
51322001-02-26 Jeffrey Oldham <oldham@codesourcery.com>
5133
5134 * call.c (joust): Ensure more_specialized()'s argument length
5135 parameter has correct value for constructors.
5136
e5dd4aad
NS
51372001-02-26 Nathan Sidwell <nathan@codesourcery.com>
5138
5139 * except.c (call_eh_info): Cleanup generation of cp_eh_info struct.
11fe225a 5140
e5dd4aad
NS
5141 * decl.c (mark_inlined_fns): Prototype.
5142
25200ab2
MM
51432001-02-22 Mark Mitchell <mark@codesourcery.com>
5144
5145 * spew.c (yylex): Correct handling of friends.
5146
f58c04ac
MM
51472001-02-22 Mark Mitchell <mark@codesourcery.com>
5148
5149 * mangle.c (write_encoding): Pass write_function_type the
5150 FUNCTION_DECL for the function being encoded.
5151 (write_function_type): Pass it along to write_bare_function_type.
5152 (write_bare_function_type): Pass it along to write_method_parms.
5153 (write_method_parms): Don't mangle the compiler-generated
5154 parameters to a constructor or destructor.
5155
9c96f3f8
AJ
51562001-02-22 Andreas Jaeger <aj@suse.de>
5157
5158 * optimize.c: Include toplev.h for
5159 note_deferral_of_defined_inline_function prototype.
5160
b3bae5e2
JJ
51612001-02-22 Jakub Jelinek <jakub@redhat.com>
5162
5163 * cp-tree.h (struct lang_decl_inlined_fns): New.
5164 (struct lang_decls): Add inlined_fns.
5165 (DECL_INLINED_FNS): New macro.
5166 * optimize.c (struct inline_data): Add inlined_fns.
5167 (declare_return_variable): Use VARRAY_ACTIVE_SIZE macro.
5168 (inlinable_function_p): Likewise, fix typo in comment,
5169 function is not inlinable if it already inlined function currently
5170 being optimized.
306ef644 5171 (expand_call_inline): Add fn to inlined_fns if necessary.
b3bae5e2
JJ
5172 (optimize_function): Initialize inlined_fns.
5173 Save inlined_fns into DECL_INLINED_FNS after expanding inlines.
5174 * decl.c (mark_inlined_fns): New function.
5175 (lang_mark_tree): Call it.
5176
5daf7c0a
JM
51772001-02-21 Jason Merrill <jason@redhat.com>
5178
5179 * cp-tree.h (struct lang_decl_flags): Remove uninlinable flag.
5180 (DECL_UNINLINABLE): Move to middle-end.
5181
5182 * class.c (clone_function_decl): Set DECL_ABSTRACT on original fn.
5183 * decl.c (duplicate_decls): Preserve DECL_ABSTRACT.
5184 * class.c (build_clone): Set DECL_ABSTRACT_ORIGIN for the clone.
5185 * optimize.c (maybe_clone_body): Set DECL_ABSTRACT_ORIGIN for the
5186 parms and outer BLOCK. note_deferral_of_defined_inline_function.
5187
5188 * method.c (implicitly_declare_fn): Don't set DECL_ARTIFICIAL on
5189 second parm of op=.
5190
2c0fc02d
MM
51912001-02-19 Mark Mitchell <mark@codesourcery.com>
5192
5193 * decl2.c (set_decl_namespace): Allow explicit instantiations in
5194 any namespace.
5195
612164eb
KL
51962001-02-18 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
5197
5198 * optimize.c (expand_call_inline): Don't walk subtrees of type
5199 nodes.
5200
69a59a49
MM
52012001-02-18 Mark Mitchell <mark@codesourcery.com>
5202
5203 * class.c (add_vcall_offset_vtbl_entries_1): Only add one entry
5204 for a destructor.
5205
e0fff4b3
JM
52062001-02-18 Jason Merrill <jason@redhat.com>
5207
5208 Do put the VTT parameter in DECL_ARGUMENTS.
5209 * cp-tree.h (struct cp_language_function): Add x_vtt_parm.
5210 (current_vtt_parm): New macro.
5211 (struct lang_decl_flags): Add has_vtt_parm_p, remove vtt_parm.
5212 (DECL_HAS_VTT_PARM_P): New macro.
5213 (DECL_VTT_PARM): Remove.
5214 (FUNCTION_FIRST_USER_PARMTYPE, FUNCTION_FIRST_USER_PARM): New macros.
5215 * decl.c (duplicate_decls): Only copy the operator code if
5216 appropriate.
5217 (start_function): Set current_vtt_parm.
5218 (lang_mark_tree): Don't mark vtt_parm.
9c96f3f8 5219 * decl2.c (maybe_retrofit_in_chrg): Do add the VTT parm to
e0fff4b3
JM
5220 DECL_ARGUMENTS. Set DECL_HAS_VTT_PARM_P.
5221 * class.c (build_clone): Maybe remove the VTT parm.
5222 * optimize.c (maybe_clone_body): Set up the VTT parm.
5223 * pt.c (copy_default_args_to_explicit_spec): Preserve the VTT parm.
5224 * call.c (build_over_call): Just allow the VTT arg.
5225 * method.c (make_thunk): Don't set DECL_VTT_PARM.
5226 (do_build_copy_constructor): Use FUNCTION_FIRST_USER_PARM.
5227 (synthesize_method): Use FUNCTION_FIRST_USER_PARMTYPE.
5228 * decl.c (grokdeclarator, copy_args_p, grok_ctor_properties): Likewise.
5229 * error.c (dump_function_decl): Likewise.
5230 * call.c (build_user_type_conversion_1, convert_like_real): Abort
5231 if we try to call a constructor with in-charge or VTT parms.
5232 * method.c (skip_artificial_parms_for): New fn.
5233 * call.c (add_function_candidate, build_over_call): Call it.
5234 * call.c (build_new_method_call): Use current_vtt_parm.
5235 * init.c (expand_virtual_init): Likewise.
5236 * class.c (same_signature_p): No longer static.
5237 * cp-tree.h: Declare it.
5238 * search.c (look_for_overrides_r): Use it.
5239
c750255c
MM
52402001-02-17 Mark Mitchell <mark@codesourcery.com>
5241
8fa33dfa
MM
5242 * cp-tree.h (new_abi_rtti_p): Remove.
5243 (name_mangling_version): Likewise.
5244 (flag_do_squangling): Likewise.
5245 * class.c (build_rtti_vtbl_entries): Remove old ABI support.
5246 * decl.c (grokfndecl): Likewise.
5247 * decl2.c (name_mangling_version): Remove.
5248 (flag_do_squangling): Likewise.
5249 (lang_f_options): Remove `squangle'.
5250 (unsupported_options): Add `squangle'.
5251 (cxx_decode_option): Issue a warning about uses of
5252 -fname-mangling-version.
5253 (finish_file): Remove old ABI support.
5254 * pt.c (check_explicit_specialization): Likewise.
5255 (tsubst_decl): Likewise.
5256 * rtti.c (init_rtti_processing): Likewise.
5257 (build_headof): Likewise.
5258 (get_tinfo_decl_dynamic): Likewise.
5259 (tinfo_from_decl): Likewise.
5260 (build_dynamic_cast_1): Likewise.
5261 (synthesize_tinfo_var): Likewise.
12fa82db
MM
5262 * init.c (build_new): Allow enumeration types for the array-bounds
5263 in a direct-new-declarator.
5264
5265 * semantics.c (finish_typeof): Resolve OFFSET_REFs.
5266
c750255c
MM
5267 * pt.c (check_explicit_specialization): Copy TREE_PRIVATE and
5268 TREE_PROTECTED from the template being specialized.
5269
a714e5c5
JM
52702001-02-17 Jason Merrill <jason@redhat.com>
5271
5272 * decl2.c (build_artificial_parm): Set TREE_READONLY.
5273
9c96f3f8 5274 * decl.c (bad_specifiers): Allow throw specs on things with
a714e5c5
JM
5275 pointer-to-function or -member-function type.
5276 * init.c (build_default_init): Don't use a CONSTRUCTOR to initialize
5277 a pmf.
5278
8084b91e
MM
52792001-02-17 Mark Mitchell <mark@codesourcery.com>
5280
5281 * call.c (check_dtor_name): Handle template names correctly.
5282
48f22ed2
JM
52832001-02-16 Jason Merrill <jason@redhat.com>
5284
5285 * cp-tree.h (DECL_USE_VTT_PARM): Remove.
5286 * decl2.c (maybe_retrofit_in_chrg): Don't create it.
5287 * optimize.c (maybe_clone_body): Don't substitute it.
5288 * call.c (build_new_method_call): Check in_chrg instead.
5289 * init.c (expand_virtual_init): Likewise.
5290
e8186ecf
GDR
52912001-02-16 Gabriel Dos Reis <gdr@codesourcery.com>
5292
5293 * decl.c (check_tag_decl): Make sure a typedef for an anonymous
5294 class-type introduces at least a type-name.
5295
2c1be322
JJ
52962001-02-16 Jakub Jelinek <jakub@redhat.com>
5297
5298 * call.c (convert_like_real): Create a temporary for non-lvalue.
5299
aab8454a
JO
53002001-02-16 Jeffrey Oldham <oldham@codesourcery.com>
5301
5302 * cp-tree.h: Fix typos in comments.
5303
a901fa64
JM
53042001-02-16 Jason Merrill <jason@redhat.com>
5305
5306 * optimize.c (remap_block): If we're compiling a clone, pass the
5307 new block to insert_block.
5308
8853373c
MM
53092001-02-16 Mark Mitchell <mark@codesourcery.com>
5310
5311 * semantics.c (finish_asm_stmt): Robustify.
5312
b60ecc04
MM
53132001-02-15 Mark Mitchell <mark@codesourcery.com>
5314
5315 * pt.c (push_template_decl_real): Don't remangle the name of a
5316 class template.
5317
e658449e
JM
53182001-02-15 Jim Meyering <meyering@lucent.com>
5319
fd48c9b5
DD
5320 * Make-lang.in (c++.install-common): Depend on installdirs.
5321 (c++.install-info): Likewise.
5322 (c++.install-man): Likewise.
e658449e 5323
f1a3f197
MM
53242001-02-15 Mark Mitchell <mark@codesourcery.com>
5325
5326 * typeck2.c (build_m_component_ref): Robustify.
5327
8826b15b
AO
53282001-02-15 Alexandre Oliva <aoliva@redhat.com>
5329
5330 * friend.c (do_friend): Don't take the nested [template] class
5331 into account when deciding whether to warn about the friend
5332 function not referring to a template function.
5333
7161c1a5
JJ
53342001-02-14 Jakub Jelinek <jakub@redhat.com>
5335
5336 * typeck.c (build_unary_op): Clarify error message.
5337
4806765e
AH
53382001-02-08 Aldy Hernandez <aldyh@redhat.com>
5339
a901fa64
JM
5340 * parse.y (component_constructor_declarator): allow optional
5341 parentheses around constructor class name.
4806765e 5342
bfc8e1e2
NS
53432001-02-14 Nathan Sidwell <nathan@codesourcery.com>
5344
5345 * cp-tree.h (setup_vtbl_ptr): Move prototype to semantics.c
5346 section.
5347 * init.c (emit_base_init): Remove incorrect comment about
5348 virtual bases.
5349 * method.c (make_thunk): Fix comment alignment.
5350
394fd776
NS
53512001-02-14 Nathan Sidwell <nathan@codesourcery.com>
5352
5353 Kill remnants of this is variable.
5354 * cp-tree.h (flag_this_is_variable): Remove.
5355 * decl2.c (flag_this_is_variable): Remove.
5356 * class.c (fixed_type_or_null): Add cdtor parm. Adjust.
5357 (build_vbase_path): The path is non-static, even in a cdtor.
5358 (resolves_to_fixed_type_p): Add additional return value.
5359 * search.c (init_vbase_pointers): Adjust.
5360 * tree.c (lvalue_p_1): Adjust.
5361 * typeck.c (mark_addressable): Adjust.
5362
d0ab7624
NS
53632001-02-14 Nathan Sidwell <nathan@codesourcery.com>
5364
5365 * pt.c (unify): Don't check cv quals of array types.
5366
7773899b
NS
53672001-02-14 Nathan Sidwell <nathan@codesourcery.com>
5368
5369 * tree.c (cp_build_qualified_type_real): Use CP_TYPE_QUALS to
5370 check whether we already have the type.
5371
52682a1b
MM
53722001-02-13 Mark Mitchell <mark@codesourcery.com>
5373
5374 * cp-tree.h (CLASSTYPE_DESTRUCTORS): Fix typo in comment.
5375 * call.c (build_op_delete_call): Simplify to remove duplicate
5376 code.
5377 * class.c (clone_function_decl): Don't build the deleting variant
5378 of a non-virtual destructor.
5379 * decl.c (finish_destructor_body): Don't call delete if this is a
5380 non-virtual destructor.
5381 * init.c (build_delete): Explicitly call `operator delete' when
5382 deleting an object with a non-virtual destructor.
9c96f3f8 5383
3b6bd115
JM
53842001-02-13 Jason Merrill <jason@redhat.com>
5385
5386 * lang-specs.h: Add more __EXCEPTIONS.
5387
45abaea8
NS
53882001-02-12 Nathan Sidwell <nathan@codesourcery.com>
5389
5390 * typeck2.c (process_init_constructor): Check
5391 TREE_HAS_CONSTRUCTOR before issuing missing init warning.
5392
996065b4
NS
53932001-02-12 Nathan Sidwell <nathan@codesourcery.com>
5394
5395 * pt.c (maybe_adjust_types_for_deduction, DEDUCE_ORDER case):
5396 Remove spurious information in comment. Allow further
5397 adjustments of REFERENCE_TYPE args.
5398
82c18d5c
NS
53992001-02-12 Nathan Sidwell <nathan@codesourcery.com>
5400
5401 * errfn.c (cp_deprecated): Tweak diagnostic text.
5402 * parse.y (new_initializer): Deprecate initializer lists
5403 extension.
5404
1f84ec23
MM
54052001-02-12 Mark Mitchell <mark@codesourcery.com>
5406
5407 Remove old ABI support.
5408
8c310e3f
MM
54092001-02-11 Mark Mitchell <mark@codesourcery.com>
5410
b1012f1b
MM
5411 * decl2.c (flag_vtable_thunks): Always set it to 1.
5412 (flag_new_abi): Likewise.
5413 * lang-specs.h: Remove conditional on ENABLE_NEW_GXX_ABI.
9c96f3f8 5414
8c310e3f
MM
5415 * Makefile.in (g++spec.o): Fix typo.
5416
3b635dfc
JM
54172001-02-09 Jason Merrill <jason@redhat.com>
5418
5419 * lang-specs.h: Restore definition of __EXCEPTIONS.
5420
bd0d5d4a
JM
54212001-02-08 Jason Merrill <jason@redhat.com>
5422
5423 * search.c (shared_member_p): New function.
5424 (lookup_field_r): Use it.
5425 * cp-tree.h (SHARED_MEMBER_P): Remove.
5426
5427 * method.c (process_overload_item): Handle template-dependent array
5428 bounds.
5429 * pt.c (type_unification_real): If we end up with undeduced nontype
5430 parms, try again.
5431
5432 * decl.c (lookup_name_real): Tweak warning to refer to decls, not
5433 types.
5434
5435 * typeck2.c (friendly_abort): Don't say anything if we have
5436 earlier errors or sorries.
5437
9c96f3f8 5438 * decl.c (check_tag_decl): Notice attempts to redefine bool and
bd0d5d4a
JM
5439 wchar_t. Ignore if in_system_header.
5440
5441 * decl.c (maybe_push_cleanup_level): New fn...
5442 (start_decl_1): ...split out from here.
5443 * cvt.c (build_up_reference): Use it.
5444 * cp-tree.h: Declare it.
5445
a9374841
MM
54462001-02-07 Mark Mitchell <mark@codesourcery.com>
5447
9c96f3f8 5448 * lang-specs.h: Use CPLUSPLUS_CPP_SPEC for the preprocessor
a9374841
MM
5449 spec.
5450
a87b4257
NS
54512001-02-06 Nathan Sidwell <nathan@codesourcery.com>
5452
5453 * pt.c (lookup_template_class): Make sure it's a primary
5454 template or template_template_parm when called from the parser.
5455 (instantiate_template_class): Add assertion.
5456
518fed76
AO
54572001-02-05 Alexandre Oliva <aoliva@redhat.com>
5458
5459 * method.c (build_mangled_name) [old abi]: Protect flush_repeats()
5460 from error_mark_node.
5461
9965d119
NS
54622001-02-05 Nathan Sidwell <nathan@codesourcery.com>
5463
5464 Fix specification and implementation bugs in V3 ABI
5465 construction vtables.
5466 * cp-tree.h (flag_dump_class_layout): New flag.
5467 (BINFO_OVERRIDE_ALONG_VIRTUAL_PATH_P): Remove.
5468 (BINFO_LOST_PRIMARY_P): New flag.
5469 (SET_BINFO_NEW_VTABLE_MARKED): Adjust asserts.
5470 (BINFO_PRIMARY_MARKED_P): Rename to ...
5471 (BINFO_PRIMARY_P): ... here.
5472 (binfo_via_virtual): New prototype.
5473 * decl2.c (flag_dump_class_layout): New flag.
5474 (cxx_decode_option): Set it. Adjust -fdump-translation-unit to
5475 use `=' as a file name separator.
5476 * init.c (dfs_initialize_vtbl_ptrs): Walk into virtual primary
5477 bases.
5478 (build_vtbl_address): If this is a virtual primary base, then
5479 get the vtbl of what it is ultimately primary for.
5480 * search.c (dfs_skip_nonprimary_vbases_unmarkedp): Adjust
5481 for BINFO_PRIMARY_P.
5482 (dfs_skip_nonprimary_vbases_markedp): Likewise.
5483 (get_shared_vbase_if_not_primary): Likewise.
5484 (dfs_get_pure_virtuals): Likewise.
5485 (expand_upcast_fixups): Likewise.
5486 (fixup_virtual_upcast_offsets): Likewise.
5487 (dfs_find_vbase_instance): Likewise.
5488 (find_vbase_instance): Likewise.
5489 (binfo_from_vbase): Adjust comment to reflect reality.
5490 (binfo_via_virtual): New function.
5491 * class.c (VTT_TOP_LEVEL_P, VTT_MARKED_BINFO_P): New macros
5492 for binfo walking during VTT construction.
5493 (dfs_mark_primary_bases): Remove.
5494 (force_canonical_binfo_r): New function.
5495 (force_canonical_binfo): New function.
5496 (mark_primary_virtual_base): New function.
5497 (mark_primary_bases): Walk in inheritance graph order, use
5498 mark_primary_virtual_base.
5499 (determine_primary_base): Use some more intermediate variables.
5500 (dfs_find_final_overrider): Don't check for overriding along a
5501 virtual path.
5502 (dfs_modify_vtables): Walk into primary virtual bases too.
5503 (walk_subobject_offsets): Adjust for BINFO_PRIMARY_P.
5504 (build_base_fields): Likewise.
5505 (dfs_set_offset_for_unshared_vbases): Likewise.
5506 (layout_virtual_bases): Likewise.
5507 (end_of_class): Likewise.
5508 (finish_struct_1): Call dump_class_hierarchy, if requested.
5509 (dfs_get_primary_binfo): Use BINFO_TYPE for binfos.
5510 (dump_class_hierarchy_r): Add stream parameter. Emit more information.
5511 (dump_class_hierarchy): Add file parameter. Append to file, if
5512 required.
5513 (finish_vtbls): Adjust accumulate_vtbl_inits call.
5514 Use canonical base for virtual bases.
5515 (build_vtt): Add more comments. Adjust build_vtt_inits call.
5516 (build_vtt_inits): Remove VIRTUAL_VTTS_P parm.
5517 Only set BINFO_VPTR_INDEX on top level. Use VTT_TOP_LEVEL_P,
5518 VTT_MARKED_BINFO_P for binfo walking. Use canonical vbase for
5519 virtual VTTs.
5520 (dfs_build_secondary_vptr_vtt_inits): Extract VTT_TOP_LEVEL_P
5521 from DATA. We want virtual primary bases and all bases via virtual.
5522 Only set BINFO_VPTR_INDEX for top level. Look up from a primary
5523 virtual base when not a construction vtable.
5524 (dfs_ctor_vtable_bases_queue_p): New DFS predicate.
5525 (build_ctor_vtbl_group): Adjust accumulate_vtbl_inits call.
5526 Use canonical bases when processing virtual bases.
5527 (accumulate_vtbl_inits): We're interested in any base via a
5528 virtual path.
5529 (dfs_accumulate_vtbl_inits): If this is a primary virtual base
5530 within a construction vtable, determine what is being overridden.
5531 (build_vtbl_initializer): Add more comments
5532 (add_vcall_offset_vtbl_entries_1): Adjust comment.
5533 (build_rtti_vtbl_entries): Check if the base has lost its
5534 primary.
5535
39d6f2e8
MM
55362001-02-05 Mark Mitchell <mark@codesourcery.com>
5537
5538 * Makefile.in (g++spec.o): Adjust use of DRIVER_DEFINES.
5539
400500c4
RK
5540Sun Feb 4 15:52:44 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5541
5542 * decl.c (pushdecl): Call abort instead of fatal.
5543 * except.c (decl_is_java_type): Call fatal_error instead of fatal.
5544 * init.c (build_new_1): Likewise.
5545 (build_java_class_ref): Call internal_error and fatal_error, not fatal.
5546 * decl.c (build_typename_type): hash_table_init now returns void.
5547 decl.c (init_decl_processing): Make an error non-fatal.
5548
97458258
MM
55492001-02-04 Mark Mitchell <mark@codesourcery.com>
5550
5551 * cp-tree.h (CLASSTYPE_INTERFACE_UNKNOWN): Fix formatting.
5552 Document.
5553 (CLASSTYPE_INTERFACE_KNOWN): Likewise.
5554 (SET_CLASSTYPE_INTERFACE_UNKNOWN_X): Likewise.
5555 (SET_CLASSTYPE_INTERFACE_UNKNOWN): Likewise.
5556 (SET_CLASSTYPE_INTERFACE_KNOWN): Likewise.
5557 * decl.c (maybe_commonize_var): Use the new name-mangling where
5558 appropriate.
5559 * decl2.c (comdat_linkage): Enhance comments. Make all
5560 compiler-generated things static, if COMDAT is not available.
5561 (get_tinfo_decl): Do not make typeinfo objects that belong in the
5562 library COMDAT.
5563 (tinfo_base_init): Use the correct mangled name for typeinfo
5564 strings, and push them into the global scope.
5565 (typeinfo_in_lib_p): New function.
5566 (synthesize_tinfo_var): Use it.
5567 (create_real_tinfo_var): Likewise.
9c96f3f8 5568
55de1b66
JJ
55692001-02-03 Jakub Jelinek <jakub@redhat.com>
5570
5571 * decl.c (push_class_binding): Use context_for_name_lookup instead
5572 of CP_DECL_CONTEXT.
5573 * search.c (context_for_name_lookup): Remove static. Check for NULL
5574 context in the loop.
5575 * cp-tree.h (context_for_name_lookup): Add prototype.
5576
e92730aa
JJ
55772001-02-02 Jakub Jelinek <jakub@redhat.com>
5578
5579 * cp-tree.h (build_expr_ptr_wrapper, can_free): Remove.
5580 * tree.c (build_expr_ptr_wrapper, can_free, permanent_obstack):
5581 Remove.
5582 * call.c (convert_class_to_reference, build_user_type_conversion_1,
5583 add_warning): Change build_expr_ptr_wrapper to build_ptr_wrapper.
5584
049f6ec9
MM
55852001-02-02 Mark Mitchell <mark@codesourcery.com>
5586
5587 * Make-lang.in (g++spec.o): Add DRIVER_DEFINES to the list
5588 of macros used when compiling g++spec.c.
5589 * g++spec.c (lang_specific_driver): Link with the shared
5590 libgcc by default.
5591
718b8ea5
JM
55922001-01-29 Joseph S. Myers <jsm28@cam.ac.uk>
5593
5594 * decl2.c (build_expr_from_tree), lex.c (make_pointer_declarator,
5595 make_reference_declarator, make_call_declarator), method.c
5596 (implicitly_declare_fn), parse.y (namespace_using_decl,
5597 notype_unqualified_id, expr_or_declarator, new_type_id,
5598 after_type_declarator, direct_after_type_declarator,
5599 notype_declarator, complex_notype_declarator,
5600 complex_direct_notype_declarator, qualified_id,
5601 notype_qualified_id, overqualified_id, direct_new_declarator,
5602 absdcl, direct_abstract_declarator, conversion_declarator), pt.c
5603 (tsubst), semantics.c (begin_constructor_declarator): Use build_nt
5604 instead of build_parse_node.
5605
f2d1f0ba
KG
56062001-01-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5607
5608 * cp-tree.h (cp_tree_index): Delete CPTI_MINUS_ONE.
5609 (minus_one_node): Moved to top level gcc directory. Renamed
5610 to integer_minus_one_node.
5611
5612 * init.c (init_init_processing): Don't set minus_one_node.
5613 (build_vec_init): Use integer_minus_one_node.
5614
5615 * rtti.c (get_tinfo_decl_dynamic): Likewise.
5616
6001735e
JJ
56172001-01-28 Jakub Jelinek <jakub@redhat.com>
5618
5619 * optimize.c (copy_body_r): If MODIFY_EXPR has both arguments
5620 identical and they would be replaced with constant, remove
5621 MODIFY_EXPR from the tree.
5622
c913b6f1
KG
56232001-01-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5624
5625 * Make-lang.in: Remove all dependencies on defaults.h.
5626 * call.c: Don't include defaults.h.
5627 * decl.c: Likewise.
5628 * decl2.c: Likewise.
5629 * except.c: Likewise.
5630 * pt.c: Likewise.
5631 * rtti.c: Likewise.
5632 * tree.c: Likewise.
5633 * typeck.c: Likewise.
5634
324ffb8c
JJ
56352001-01-25 Jakub Jelinek <jakub@redhat.com>
5636
5637 * mangle.c (write_mangled_name, write_encoding): Mangle overloaded
5638 operators even in "C" linkage.
5639 * method.c (set_mangled_name_for_decl): Likewise.
5640 * decl.c (grokfndecl): Call set_mangled_name_for_decl even for
5641 overloaded operators in "C" linkage.
5642
4b2811e9
NS
56432001-01-24 Nathan Sidwell <nathan@codesourcery.com>
5644
5645 * pt.c (tsubst_decl): Remove IN_DECL parameter.
5646 (tsubst_arg_types): Check parameter is not void.
5647 (tsubst): Adjust tsubst_decl call.
5648
d8caf48e
NS
56492001-01-24 Nathan Sidwell <nathan@codesourcery.com>
5650
5651 * call.c (add_builtin_candidate): Quote std properly, from
5652 previous change.
5653
08511114
KL
56542001-01-23 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
5655
5656 * pt.c (check_explicit_specialization): Clone constructors and
5657 destructors.
5658
92ecdfb7
NS
56592001-01-23 Nathan Sidwell <nathan@codesourcery.com>
5660
5661 * decl.c (grokdeclarator): Don't presume DECL_LANG_SPECIFIC
5662 indicates anything special about template depth. Make sure we
5663 only count the user visible template classes.
5664
4cff6abe
NS
56652001-01-23 Nathan Sidwell <nathan@codesourcery.com>
5666
5667 * call.c (build_conv): Typo in comment.
5668 (add_builtin_candidate): Add more explanation.
5669 Remove extra test for ENUMERAL_TYPE in {PRE,POST}INCREMENT_EXPR.
5670 Allow ENUMERAL_TYPEs for relops and eqops. Add both candidates
5671 when we have enumeral types.
5672 (add_builtin_candidates): Add more explanation. Add ENUMERAL_TYPE
5673 candidates for relops and eqops.
5674 (joust): Simplify control flow. Allow a non-template user
5675 function to hide a builtin.
5676
62e4a758
NS
56772001-01-22 Nathan Sidwell <nathan@codesourcery.com>
5678
5679 * cp-tree.h (unification_kind_t): Add DEDUCE_ORDER.
5680 (more_specialized): Add deduction parameter.
5681 * call.c (joust): Adjust more_specialized call.
5682 * pt.c (UNIFY_ALLOW_OUTER_MORE_CV_QUAL,
5683 UNIFY_ALLOW_OUTER_LESS_CV_QUAL): New unify flags.
5684 (get_bindings_order): Remove.
5685 (get_bindings_real): Add DEDUCE parameter.
5686 (maybe_adjust_types_for_deduction): Return extra unify flags. Do
5687 REFERENCE_TYPE jig for DEDUCE_ORDER.
5688 (type_unification_real): Deal with DEDUCE_ORDER. Use result of
5689 maybe_adjust_types_for_deduction.
5690 (more_specialized): Add DEDUCE parameter. Call get_bindings_real
5691 directly.
5692 (try_one_overload): Use result of maybe_adjust_types_for_deduction.
5693 (check_cv_quals_for_unify): Use new unify qualifier flags.
5694 (unify): Clear new unify qualifier flags.
5695 (get_bindings_real): Add DEDUCE parameter.
5696 (get_bindings): Adjust call to get_bindings_real.
5697 (get_bindings_overload): Likewise.
5698 (most_specialized_instantiation): Adjust call to
5699 more_specialized.
5700
2a2a9e5a
JM
57012001-01-19 Jason Merrill <jason@redhat.com>
5702
5703 * decl2.c (flag_vtable_thunks): Also depend on ENABLE_NEW_GXX_ABI.
5704
5705 * decl.c (init_decl_processing): Just force -fvtable-thunks on if
5706 -fnew-abi.
5707
60696c53
JM
57082001-01-19 Ute Pelkmann <scope.muc@t-online.de>
5709
5710 * decl2.c (arg_assoc_class): Fix double iteration logic.
5711
57122001-01-19 Jason Merrill <jason@redhat.com>
5713
5714 * init.c (build_delete): Always call convert_force to strip cv-quals.
5715
5716 * decl2.c (flag_new_abi): Depend on ENABLE_NEW_GXX_ABI.
5717 * lang-specs.h: Default ABI depends on ENABLE_NEW_GXX_ABI.
5718 * g++spec.c: Don't look at ENABLE_NEW_GXX_ABI.
5719
1e00f18c
NS
57202001-01-19 Nathan Sidwell <nathan@codesourcery.com>
5721
5722 * search.c (get_vbase_1): Count only virtual bases.
5723
e13bced2
NS
57242001-01-19 Nathan Sidwell <nathan@codesourcery.com>
5725
5726 * class.c (duplicate_tag_error): Robustify flag clearing.
5727
f9c244b8
NS
57282001-01-19 Nathan Sidwell <nathan@codesourcery.com>
5729
5730 * cp-tree.h (lookup_template_class): Add complain parm.
5731 * decl.c (lookup_namespace_name): Adjust call to
5732 lookup_template_class.
5733 (make_typename_type): Likewise.
5734 * semantics.c (finish_template_type): Likewise.
5735 * pt.c (lookup_template_class): Add complain parm. Adjust.
5736 (tsubst_aggr_type): Pass COMPLAIN down to lookup_template_class.
5737 (tsubst): Likewise.
5738
08c2df0f
NS
57392001-01-19 Nathan Sidwell <nathan@codesourcery.com>
5740
5741 * pt.c (copy_default_args_to_explicit_spec): Preserve
5742 object's CV quals. Reorganize.
5743
f5ceeec8
NS
57442001-01-18 Nathan Sidwell <nathan@codesourcery.com>
5745
5746 * typeck.c (build_modify_expr): Say `initialization' for
5747 INIT_EXPRs.
5748 * init.c (build_default_init): Convert to enumeral type, if
5749 needed.
5750
a1cfa434
JJ
57512001-01-18 Jakub Jelinek <jakub@redhat.com>
5752
5753 * parse.y (nomods_initdcl0): Properly set things up for
5754 initdcl0_innards.
5755
028d1f20
NS
57562001-01-18 Nathan Sidwell <nathan@codesourcery.com>
5757
5758 * pt.c (UNIFY_ALLOW_OUTER_LEVEL): New unify flag.
5759 (type_unification_real): Set it.
5760 (unify): Use it.
5761
9f724b6a
NS
57622001-01-18 Nathan Sidwell <nathan@codesourcery.com>
5763
5764 * decl.c (finish_destructor_body): Convert to vbase pointer here.
5765
522d6614
NS
57662001-01-18 Nathan Sidwell <nathan@codesourcery.com>
5767
5768 * semantics.c (begin_class_definition): Check we're not inside a
5769 template parm list.
5770
7f805b8f
NS
57712001-01-18 Nathan Sidwell <nathan@codesourcery.com>
5772
5773 * tree.c (walk_tree, TREE_LIST): Don't walk the TREE_PURPOSE of
5774 BASELINK_P.
5775
dc3799c1
KL
57762001-01-16 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
5777
5778 * typeck.c (build_function_call_real): Call fold on the CALL_EXPR.
5779 * call.c (build_over_call): Add comment.
5780
bb37c4a5
DB
57812001-01-16 Daniel Berlin <dberlin@redhat.com>
5782
826840d9
RH
5783 * cvt.c (ocp_convert): Handle vector type conversion
5784 * typeck2.c (digest_init): Handle vector type initializations
9c96f3f8 5785
a26e7fb5
PE
57862001-01-16 Phil Edwards <pme@sources.redhat.com>
5787
5788 * g++spec.c: Don't add libraries needlessly if -fsyntax-only
5789 was given.
5790
11b810f1
NS
57912001-01-15 Nathan Sidwell <nathan@codesourcery.com>
5792
5793 * pt.c (check_nontype_parm): Rename to ...
5794 (invalid_nontype_parm_type_p): ... here.
5795 (process_template_parm): Adjust.
5796 (convert_template_argument): Adjust.
5797
db3f4e4e
NS
57982001-01-15 Nathan Sidwell <nathan@codesourcery.com>
5799
5800 * pt.c (check_nontype_parm): New function.
5801 (process_template_parm): Use it.
5802 (convert_template_argument): Use it.
5803 (convert_nontype_argument, RECORD_TYPE): Assert it's a ptr to
5804 member.
5805
ea4f1fce
JO
58062001-01-14 Jeffrey Oldham <oldham@codesourcery.com>
5807
5808 * tree.c: Add defaults.h
5809 (cp_valid_lang_attribute): Incorporate SUPPORTS_INIT_PRIORITY.
5810 * Make-lang.in (cp/tree.o): Add defaults.h.
5811
1312c143
JM
58122001-01-13 Joseph S. Myers <jsm28@cam.ac.uk>
5813
5814 * Make-lang.in (CXX_C_OBJS): Add c-format.o.
5815
4bc1997b
JM
58162001-01-13 Joseph S. Myers <jsm28@cam.ac.uk>
5817
5818 * g++.1: Change to be ".so man1/gcc.1".
5819
23de1fbf
JM
58202001-01-13 Joseph S. Myers <jsm28@cam.ac.uk>
5821
5822 * Make-lang.in (c++.info, c++.install-info): Build and install g++
5823 internals info.
5824 (c++.uninstall, c++.maintainer-clean): Remove g++ internals info.
5825 ($(srcdir)/cp/g++int.info): New target.
5826 * gxxint.texi: Add info directory entry. Use @@ in email address.
5827 * .cvsignore: Update.
5828
0949f723
NS
58292001-01-12 Nathan Sidwell <nathan@codesourcery.com>
5830
5831 * typeck.c (build_c_cast): Do template processing earlier.
5832 Always pedwarn on array casts.
5833
a8641661
NS
58342001-01-12 Nathan Sidwell <nathan@codesourcery.com>
5835
5836 * friend.c (make_friend_class): Make sure a templated class is
5837 actually a template.
5838
844511c8
NS
58392001-01-11 Nathan Sidwell <nathan@codesourcery.com>
5840
5841 * decl2.c (get_guard): Set linkage from guarded decl.
5842
96a1e32d
NS
58432001-01-11 Nathan Sidwell <nathan@codesourcery.com>
5844
5845 * call.c (convert_default_arg): Check for unprocessed
5846 DEFAULT_ARG.
5847 * cp-tree.h (replace_defarg): Move to spew.c.
5848 (maybe_snarf_defarg, add_defarg_fn, do_pending_defargs): Move to
5849 spew.c, which is where they really are.
5850 (done_pending_defargs): Declare.
5851 (unprocessed_defarg_fn): Declare.
5852 * decl.c (replace_defarg): Move to spew.c
5853 * parse.y (structsp): Call done_pending_defargs.
5854 * spew.c (defarg_fns): Rearrange list structure.
5855 (defarg_fnsdone): New static variable.
5856 (defarg_depfns): New static variable.
5857 (init_spew): Adjust.
5858 (add_defarg_fn): Store the type in TREE_TYPE.
5859 (do_pending_defargs): Detect and deal with ordering constraints
5860 and circularity.
5861 (done_pending_defargs): New function.
5862 (unprocessed_defarg_fn): New function.
5863 (replace_defarg): Moved from decl.c. Robustify. Don't save
5864 if circularity detected.
5865
34e225a3
NS
58662001-01-11 Nathan Sidwell <nathan@codesourcery.com>
5867
5868 * pt.c (unify): Check array has a domain, before checking
5869 whether it is variable sized.
5870
98979fe0
NS
58712001-01-11 Nathan Sidwell <nathan@codesourcery.com>
5872
5873 * decl.c (grokparms): Unobfuscate and get correct diagnostic for
5874 parameters with pointers to arrays of unknown bound.
5875
b37bf5bd
NS
58762001-01-11 Nathan Sidwell <nathan@codesourcery.com>
5877
5878 * parse.y (template_parm_header, template_spec_header): New
5879 reductions. Split out from ...
5880 (template_header): ... here. Use them.
5881 (template_template_parm): Use template_parm_header.
5882 * semantics.c (finish_template_template_parm): Add assert.
5883
6c418184
MM
58842001-01-10 Mark Mitchell <mark@codesourcery.com>
5885
792508b5
MM
5886 * mangle.c (write_builtin_type): Fix thinko.
5887
8afa707f
MM
5888 * pt.c (copy_default_args_to_explicit_spec_1): New function.
5889 (copy_default_args_to_explicit_spec): Likewise.
5890 (check_explicit_specialization): Use it.
5891
6c418184
MM
5892 * class.c (finish_struct_1): Remove last argument in call to
5893 make_decl_rtl; use make_function_rtl instead of make_decl_rtl.
5894 * decl.c (builtin_function): Likewise.
5895 (build_cp_library_fn): Likewise.
5896 (check_initializer): Likewise.
5897 (make_rtl_for_nonlocal_decl): Likewise.
5898 (cp_finish_decl): Likewise.
5899 (start_function): Likewise.
5900 * decl2.c (finish_anon_union): Likewise.
5901 * friend.c (do_friend): Likewise.
5902 * init.c (build_java_class_ref): Likewise.
5903 * method.c (make_thunk): Likewise.
5904 * pt.c (tsubst_friend_function): Likewise.
5905 * semantics.c (expand_body): Likewise.
5906
31d95fc6
MM
59072001-01-10 Mark Mitchell <mark@codesourcery.com>
5908
5909 * cp-tree.h (DECL_CLONED_FUNCTION_P): Avoid wild reads by not
5910 looking at DECL_CLONED_FUNCTION for non-functions.
5911
31bb3027
NS
59122001-01-10 Nathan Sidwell <nathan@codesourcery.com>
5913
5914 * error.c (dump_template_parameter): Use parm to determine how
5915 to print default value.
5916
fd3f43e7
NS
59172001-01-10 Nathan Sidwell <nathan@codesourcery.com>
5918
5919 * class.c (duplicate_tag_error): Clear more flags.
5920
042b4c4e
NS
59212001-01-10 Nathan Sidwell <nathan@codesourcery.com>
5922
5923 * call.c (build_new_method_call): Use binfo_for_vbase.
5924
a7537031
JM
59252001-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
5926
5927 * cp-tree.h (flag_cond_mismatch): Don't declare.
5928 * decl2.c (flag_cond_mismatch): Don't define.
5929 (lang_f_options): Remove cond-mismatch.
5930 (unsupported_options): Add cond-mismatch.
5931
186c0fbe
NS
59322001-01-09 Nathan Sidwell <nathan@codesourcery.com>
5933
5934 * class.c (handle_using_decl): Reject using of constructor name
5935 of sourcing class. Allow injecting of a method with same name as
5936 nested class. Fixup error messages.
5937
28ec8d6b
JM
59382001-01-09 Joseph S. Myers <jsm28@cam.ac.uk>
5939
5940 * decl2.c (lang_decode_option): Handle -Wformat=2.
5941
3febd123
NS
59422001-01-08 Nathan Sidwell <nathan@codesourcery.com>
5943
5944 * cp-tree.h (lang_decl_flags): Rename defined_in_class to
5945 initialized_in_class.
5946 (DECL_DEFINED_IN_CLASS_P): Rename to ...
5947 (DECL_INITIALIZED_IN_CLASS_P): ... here, to reflect true meaning.
5948 * decl.c (duplicate_decls): Preseve DECL_INITIALIZED_IN_CLASS_P.
5949 (cp_finish_decl): Adjust for DECL_INITIALIZED_IN_CLASS_P.
5950 * pt.c (check_default_tmpl_args): Adjust for
5951 DECL_INITIALIZED_IN_CLASS_P.
5952 (instantiate_class_template): Likewise.
5953 (instantiate_decl): Check DECL_INITIALIZED_IN_CLASS_P.
9c96f3f8 5954
3febd123
NS
5955 * class.c (finish_struct): Constify saved_filename.
5956
1f0d71c5
NS
59572001-01-08 Nathan Sidwell <nathan@codesourcery.com>
5958
5959 * class.c (duplicate_tag_error): Adjust diagnostic.
5960 (finish_struct): Locally set location to start of struct.
5961 * decl.c (fixup_anonymous_aggr): Use cp_error_at.
5962
5bf15e84 59632001-01-08 Nathan Sidwell <nathan@codesourcery.com>
76191fdd
NS
5964
5965 * decl.c (struct binding_level): Adjust class_shadowed comments
5966 to reflect reality.
aba649ba 5967 (push_class_level_binding): Adjust comments to reflect reality.
76191fdd
NS
5968 Set IDENTIFIER_CLASS_VALUE when replacing an existing binding.
5969 Don't set TREE_VALUE on the class_shadowed list.
5970
23d4e4cc 59712001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
9c96f3f8
AJ
5972
5973 * decl2.c (acceptable_java_type): Allow references too.
23d4e4cc
APB
5974 * init.c (build_java_class_ref): When using the new ABI, search
5975 `class$' and have it mangled with `mangle_decl.'
5976 * mangle.c (write_java_integer_type_codes): New function.
5977 (write_builtin_type): Detect and mangle Java integer and real
5978 types.
9c96f3f8 5979
0c58da3e
MM
59802001-01-07 Mark Mitchell <mark@codesourcery.com>
5981
5982 * decl2.c (grokfield): Don't accept `asm' specifiers for
5983 non-static data members.
5984
45b8ddb4
KG
59852001-01-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5986
5987 * expr.c (cplus_expand_expr): Don't reset `target'.
5988
96302433
NB
59892001-01-07 Neil Booth <neil@daikokuya.demon.co.uk>
5990
826840d9 5991 * cp/decl2.c (cxx_post_options): Call cpp_post_options.
96302433 5992
220bce48
NS
59932001-01-05 Nathan Sidwell <nathan@codesourcery.com>
5994
5995 * parse.y (template_datadef): Check for error_mark_node.
5996
bfa2cb33
NS
59972001-01-05 Nathan Sidwell <nathan@codesourcery.com>
5998
5999 * cp-tree.def (DEFAULT_ARG): Make `x' class.
6000
eaa7c03f
JM
60012001-01-04 Joseph S. Myers <jsm28@cam.ac.uk>
6002
6003 * decl.c (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Don't define.
6004 (record_builtin_type): Make non-static.
6005 (flag_short_double): Don't declare.
6006 (init_decl_processing): Remove the creation of many tree nodes now
6007 in c_common_nodes_and_builtins.
6008 (build_void_list_node): New function.
6009 * decl2.c (flag_short_double, flag_short_wchar): Don't define.
6010 * cp-tree.h (flag_short_wchar): Don't declare.
6011
3af4c257
MM
60122001-01-04 Mark Mitchell <mark@codesourcery.com>
6013
6014 * call.c (build_conv): Don't use build1 for USER_CONV.
6015 * pt.c (tsubst_copy): Or for PREINCREMENT_EXPR and similar nodes.
6016
03dc0325
JM
60172001-01-03 Joseph S. Myers <jsm28@cam.ac.uk>
6018
6019 * lex.c (lang_init): Call c_common_lang_init.
6020
3c505507
NS
60212001-01-03 Nathan Sidwell <nathan@codesourcery.com>
6022
6023 * search.c (lookup_fnfields_here): Remove.
6024 (look_for_overrides_r): Use lookup_fnfields_1.
6025 Ignore functions from using declarations.
6026
03378143
NS
60272001-01-03 Nathan Sidwell <nathan@codesourcery.com>
6028
6029 Implement exceptions specifiers for implicit member functions.
6030 * cp-tree.h (merge_exceptions_specifiers): Declare new function.
6031 * method.c (synthesize_exception_spec): New function.
6032 (locate_dtor, locate_ctor, locate_copy): New functions.
6033 (implicitly_declare_fn): Generate the exception spec too.
6034 * search.c (check_final_overrider): Check artificial functions
6035 too.
9c96f3f8 6036 * typeck2.c (merge_exception_specifiers): New function.
03378143 6037
f30efcb7
JM
60382001-01-03 Jason Merrill <jason@redhat.com>
6039
6040 * init.c (build_default_init): New fn.
6041 (perform_member_init): Split out from here.
6042 (build_new_1): Use it. Simplify initialization logic.
6043 (build_vec_init): Take an array, rather than a pointer and maxindex.
6044 Speed up simple initializations. Don't clean up if we're assigning.
6045 * cp-tree.h: Adjust.
6046 * decl2.c (do_static_initialization): Remove TREE_VEC case.
6047 * parse.y (new_initializer): Return void_zero_node for ().
6048 * typeck.c (build_modify_expr): Handle getting a CONSTRUCTOR.
6049 * typeck2.c (digest_init): Only complain about user-written
6050 CONSTRUCTORs.
6051
a412bf75
MS
60522000-12-22 Mike Stump <mrs@wrs.com>
6053
6054 * decl2.c: (max_tinst_depth): Increase to 50.
6055
4890c2f4
MM
60562001-01-02 Mark Mitchell <mark@codesourcery.com>
6057
6058 * class.c (invalidate_class_lookup_cache): Zero the
6059 previous_class_values.
6060 * cp-tree.h (TMPL_PARMS_DEPTH): Use TREE_INT_CST_LOW, not
6061 TREE_INT_CST_HIGH.
6062 (CLASSTYPE_TEMPLATE_LEVEL): Likewise.
6063 * decl.c (free_bindings): New variable.
6064 (push_binding): Don't create a new binding if we have one on the
6065 free list.
6066 (pop_binding): Put old bindings on the free list.
6067 (init_decl_processing): Use size_int, not build_int_2.
6068 Register free_bindings as a GC root.
6069 (cp_make_fname_decl): Use size_int, not build_int_2.
6070 (push_inline_template_parms_recursive): Likewise.
6071 (end_template_parm_list): Likewise.
6072 (for_each_tempalte_parm): Do not use walk_tree_without_duplicates.
6073 (tsubst_template_parms): Use size_int, not build_int_2.
6074 (tsubst): Likewise.
6075 * rtti.c (get_vmi_pseudo_type_info): Likewise.
9c96f3f8 6076
4f78b9a8
RH
60772001-01-02 Richard Henderson <rth@redhat.com>
6078
6079 * parse.y (asm): Set ASM_INPUT_P.
6080
3c8c2a0a
JM
60812001-01-02 Jason Merrill <jason@redhat.com>
6082
96d6c610
JM
6083 * tree.c (cp_valid_lang_attribute): Don't set CLASSTYPE_COM_INTERFACE
6084 for v3 ABI.
6085
6086 * typeck.c (cp_truthvalue_conversion): New fn.
6087 * cvt.c (ocp_convert): Use it.
6088
6089 * cp-tree.h: Lose c-common.c decls.
6090
6091 * typeck.c (build_unary_op): Restore old &a.f diagnostic code.
6092 * cvt.c (convert_to_void): Use type_unknown_p.
6093
9c96f3f8 6094 * typeck.c (strip_all_pointer_quals): Also strip quals from
3c8c2a0a
JM
6095 pointer-to-member types.
6096
6097 * Make-lang.in (cp/TAGS): Use --no-globals. Ignore parse.c, and treat
6098 parse.y as C.
6099
6100 * call.c (build_new_method_call): Do evaluate the object parameter
6101 when accessing a static member.
6102 * typeck.c (build_component_ref): Likewise.
6103
d363e7bf
AJ
61042001-01-02 Andreas Jaeger <aj@suse.de>
6105
6106 * decl.c (cp_missing_noreturn_ok_p): New.
6107 (init_decl_processing): Set lang_missing_noreturn_ok_p.
6108
77f5250d
JJ
61092000-12-29 Jakub Jelinek <jakub@redhat.com>
6110
6111 * decl.c (init_decl_processing): Fix sign of wchar_type_node.
6112
31a714f6
MM
61132000-12-29 Mark Mitchell <mark@codesourcery.com>
6114
6115 * class.c (pushclass): Remove #if 0'd code.
6116 * cp-tree.h (overload_template_name): Remove.
6117 * decl.c (store_bindings): Simplify.
6118 (pop_from_top_level): Likewise.
6119 * pt.c (overload_template_name): Remove.
d363e7bf 6120 (instantiate_decl): Don't call push_to_top_level if it's not
31a714f6
MM
6121 needed.
6122
414ea4aa
MM
61232000-12-28 Mark Mitchell <mark@codesourcery.com>
6124
6125 * pt.c (register_local_specialization): Don't return a value.
6126 (lookup_template_class): Use move-to-front heuristic when looking
6127 up template instantiations.
6128 (instantiate_decl): Only push_to_top_level when we're actually
6129 going to instantiate the template.
6130
6f18f7e9
HPN
61312000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
6132
6133 * search.c (binfo_for_vtable): Return least derived class, not
6134 most. Handle secondary vtables.
6135
e5214479
JM
61362000-12-22 Jason Merrill <jason@redhat.com>
6137
3c8c2a0a
JM
6138 * pt.c (more_specialized): Don't optimize len==0.
6139 (fn_type_unification): If we're adding the return type, increase len.
6140
ebb1abc3
JM
6141 * typeck.c (build_binary_op): Fix pmf comparison logic.
6142
c939ca5f
JM
6143 * call.c (joust): Use DECL_NONSTATIC_MEMBER_FUNCTION_P, not
6144 DECL_STATIC_FUNCTION_P.
6145
e6fe680d
JM
6146 * semantics.c (genrtl_finish_function): Don't try to jump to
6147 return_label unless it exists.
6148
e5214479
JM
6149 In partial ordering for a call, ignore parms for which we don't have
6150 a real argument.
6151 * call.c (joust): Pass len to more_specialized.
6152 (add_template_candidate_real): Strip 'this', pass len.
6153 * pt.c (more_specialized): Pass len down. Lose explicit_args parm.
6154 (get_bindings_order): New fn. Pass len down.
6155 (get_bindings_real): Strip 'this', pass len.
6156 (fn_type_unification): Likewise.
6157 (type_unification_real): Succeed after checking 'len' args.
6158 (most_specialized_instantiation): Lose explicit_args parm.
d363e7bf 6159 * class.c (resolve_address_of_overloaded_function): Strip 'this',
e5214479
JM
6160 pass len.
6161
61622000-12-21 Jason Merrill <jason@redhat.com>
477f6664
JM
6163
6164 * pt.c (tsubst_decl): A FUNCTION_DECL has DECL_RESULT, not
6165 DECL_TEMPLATE_RESULT.
6166
6167 * search.c (lookup_field_r): Call lookup_fnfields_1, not
6168 lookup_fnfields_here.
6169
6170 * parse.y (typename_sub2): Return the TYPE_DECL, not the type.
6171
6172 * call.c (build_object_call): Also allow conversions that return
6173 reference to pointer to function.
6174 (add_conv_candidate): Handle totype being ref to ptr to fn.
6175 (build_field_call): Also allow members of type reference to function.
6176 Lose support for calling pointer to METHOD_TYPE fields.
6177
6178 * error.c (dump_expr): Handle *_CAST_EXPR.
6179
6180 * typeck2.c (build_scoped_ref): Always convert to the naming class.
6181
6182 * tree.c (break_out_cleanups): Lose.
6183 * cp-tree.h: Remove prototype.
6184 * typeck.c (build_component_ref): Don't break_out_cleanups.
6185 (build_compound_expr): Likewise.
6186 * semantics.c (finish_expr_stmt): Likewise.
6187
3e4d04a1
RH
61882000-12-20 Richard Henderson <rth@redhat.com>
6189
6190 * cp-tree.h: Update declarations.
6191 * decl.c (finish_case_label): Return the new stmt node.
6192 * semantics.c (finish_goto_stmt): Likewise.
6193 (finish_expr_stmt, finish_return_stmt): Likewise.
6194 (finish_break_stmt, finish_continue_stmt): Likewise.
6195 (finish_asm_stmt): Likewise.
6196 * parse.y (already_scoped_stmt): Set STMT_LINENO.
6197 (compstmt, implicitly_scoped_stmt, stmt): Likewise.
6198 (simple_if, simple_stmt): Return the new stmt node.
6199 (save_lineno): New.
6200
20d380b1
JM
62012000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
6202
6203 * cp-tree.h: Don't declare warn_long_long.
6204
221c7a7f
KL
62052000-12-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6206
6207 * tree.c (no_linkage_helper): Use CLASS_TYPE_P instead of
6208 IS_AGGR_TYPE.
6209
b429fdf0
KL
62102000-12-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6211
6212 * pt.c (unify): Handle when both ARG and PARM are
6213 BOUND_TEMPLATE_TEMPLATE_PARM.
6214
c2beae77
KL
62152000-12-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6216
6217 * pt.c (reduce_template_parm_level): Set DECL_ARTIFICIAL and
6218 DECL_TEMPLATE_PARM_P.
6219
c3e899c1
JM
62202000-12-15 Jason Merrill <jason@redhat.com>
6221
96790071
JM
6222 * init.c (build_new_1): Reorganize. Now with 100% fewer SAVE_EXPRs!
6223
8d42565b
JM
6224 * init.c (build_new_1): Don't strip quals from type.
6225
fab09a24
JM
6226 * decl.c (pushdecl): Don't check for linkage on a non-decl.
6227
c3e899c1
JM
6228 * call.c (build_op_delete_call): See through ARRAY_TYPEs.
6229
6230 * call.c (build_new_function_call): Lose space before paren in
6231 error message.
6232 (build_new_method_call): Likewise.
6233
6234 * typeck2.c (build_m_component_ref): Propagate quals from datum.
6235
edac124d
KL
62362000-12-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6237
6238 * pt.c (check_explicit_specialization): Propagate default
6239 function arguments to explicit specializations.
6240
31750649 62412000-12-13 DJ Delorie <dj@redhat.com>
8d3b081e
DD
6242
6243 * typeck.c (build_binary_op): Do signed/unsigned warnings for >?
6244 and <? operators.
6245
5e818b93
JM
62462000-12-08 Jason Merrill <jason@redhat.com>
6247
6248 * error.c (dump_function_name): Don't let the user see __comp_ctor.
6249
6250 Clean up copy-initialization in overloading code.
6251 * call.c (build_user_type_conversion_1): Die if we are asked to
6252 convert to the same or a base type.
6253 (implicit_conversion): Avoid doing so. Lose reference binding code.
6254 (convert_like_real): Treat BASE_CONV and RVALUE_CONV as implicit
6255 direct-initialization. Also do direct-init part of copy-init.
6256 (build_user_type_conversion): Don't provide context to convert_like.
6257 * cvt.c (ocp_convert): build_user_type_conversion will now provide
6258 the constructor call for copy-init.
6259
6260 * pt.c (tsubst_decl): Call clone_function_decl here if this is an
6261 instantiation of a member template.
6262 (do_decl_instantiation): Not here.
6263
38da6039
NS
62642000-12-07 Nathan Sidwell <nathan@codesourcery.com>
6265
6266 * class.c (check_field_decls): Don't special case anonymous
6267 fields in error messages.
c9407e4c 6268 (note_name_declared_in_class): Use %D on diagnostic.
d363e7bf 6269
38da6039
NS
6270 * tree.c (pod_type_p): Use strip_array_types.
6271 (cp_valid_lang_attribute): Likewise.
6272 * typeck.c (cp_type_quals): Strip arrays separately, to avoid
6273 multiple evaluations.
d363e7bf 6274 (cp_has_mutable_p): Use strip_array_types.
38da6039 6275
a11d04b5
NS
62762000-12-07 Nathan Sidwell <nathan@codesourcery.com>
6277
6278 * cp-tree.h (sufficient_parms_p): Declare new function.
6279 * call.c (sufficient_parms_p): New function, broken out of ...
6280 (add_function_candidate): ... here. Use it.
6281 (add_conv_candidate): Use it.
6282 * decl.c (grok_ctor_properties): Use it.
6283
5eec2847
JJ
62842000-12-07 Jakub Jelinek <jakub@redhat.com>
6285
6286 * optimize.c (copy_body_r): Set STMT_IS_FULL_EXPR_P on EXPR_STMT.
6287
c907e684
JM
62882000-12-07 Joseph S. Myers <jsm28@cam.ac.uk>
6289
6290 * decl2.c (lang_decode_option): Handle -Wformat-security.
6291
74601d7c
KL
62922000-12-06 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6293
6294 * pt.c (verify_class_unification): New function.
6295 (get_class_bindings): Use it.
6296 (try_class_unification): Tidy.
6297 (unify): Handle when argument of a template-id is not
6298 template parameter dependent.
6299 (template_args_equal): Handle when TREE_CODE's do not match.
6300
8954e858
AO
63012000-12-06 Alexandre Oliva <aoliva@redhat.com>
6302
6303 * lang-specs.h (c++): When invoking the stand-alone preprocessor
6304 for -save-temps, pass all relevant -Defines to it, and then don't
6305 pass them to cc1plus.
6306
3dc9aec6
WC
63072000-12-05 Will Cohen <wcohen@redhat.com>
6308
6309 * decl.c (finish_case_label): Cleared
6310 more_cleanups_ok in surrounding function scopes.
6311 (define_label): Likewise.
6312
cbb40945
NS
63132000-12-05 Nathan Sidwell <nathan@codesourcery.com>
6314
6315 * cp-tree.h (IDENTIFIER_VIRTUAL_P): Document.
6316 (get_matching_virtual): Remove.
6317 (look_for_overrides): Declare new function.
6318 * decl.c (grokfndecl): Don't set IDENTIFIER_VIRTUAL_P or
6319 DECL_VINDEX here.
6320 * class.c (check_for_override): Move base class iteration code
6321 to look_for_overrides.
6322 * search.c (next_baselink): Remove.
6323 (get_virtuals_named_this): Remove.
6324 (get_virtual_destructor): Remove.
6325 (tree_has_any_destructors_p): Remove.
6326 (struct gvnt_info): Remove.
6327 (check_final_overrider): Remove `virtual' from error messages.
6328 (get_matching_virtuals): Remove. Move functionality to ...
6329 (look_for_overrides): ... here, and ...
6330 (look_for_overrides_r): ... here. Set DECL_VIRTUAL_P, if found
6331 to be overriding.
6332
61402b80
NS
63332000-12-05 Nathan Sidwell <nathan@codesourcery.com>
6334
6335 * typeck.c (get_delta_difference): If via a virtual base,
6336 return zero.
6337 * cvt.c (cp_convert_to_pointer): If via a virtual base, do no
6338 adjustment.
6339
39abc9a6
RH
63402000-12-04 Richard Henderson <rth@redhat.com>
6341
6342 * error.c (dump_tree): Use output_add_string not OB_PUTS.
6343
c00996a3
JM
63442000-12-04 Jason Merrill <jason@redhat.com>
6345
6346 * mangle.c (write_type): Mangle VECTOR_TYPE with "U8__vector".
d363e7bf 6347 (write_builtin_type): Pass intSI_type_node and the like through
c00996a3
JM
6348 type_for_mode.
6349 * method.c (process_overload_item): Mangle VECTOR_TYPEs with 'o'.
6350 Pass intSI_type_node and the like through type_for_mode.
6351 * decl2.c (arg_assoc_type): Handle VECTOR_TYPE like COMPLEX_TYPE.
6352 * pt.c (tsubst, unify): Likewise.
6353 * tree.c (walk_tree): Likewise.
6354 * error.c (dump_type): Likewise.
6355 (dump_type_prefix, dump_type_suffix): Don't bother with VECTOR_TYPE.
d363e7bf 6356
c00996a3
JM
6357 * Make-lang.in: Tweak top comment for emacs.
6358 (cp/TAGS): Restore.
6359
6360 * except.c (expand_throw): Use push_throw_library_fn for _Jv_Throw.
6361
c00996a3
JM
6362 * class.c (clone_function_decl): Robustify.
6363
63642000-12-04 Michael Matz <matzmich@cs.tu-berlin.de>
6365
6366 * decl.c (store_bindings): Only search in the non modified
6367 old_bindings for duplicates.
6368
00bb3dad
NS
63692000-12-04 Nathan Sidwell <nathan@codesourcery.com>
6370
6371 * error.c (dump_function_decl): Use DECL_VIRTUAL_P, not
6372 TYPE_POLYMORPHIC_P.
d363e7bf 6373
00bb3dad
NS
6374 * typeck.c (build_static_cast): Remove unused variable.
6375
dc957d14
KL
63762000-12-01 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6377
6378 * pt.c: Fix typo in comment.
6379
4d808927
JM
63802000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
6381
6382 * decl2.c (warn_format): Remove definition.
6383 (lang_decode_option): Handle -Wformat-nonliteral,
6384 -Wno-format-extra-args and -Wno-format-y2k. Use set_Wformat.
6385
5fd8e536
JM
63862000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
6387
6388 * decl.c (WINT_TYPE, INTMAX_TYPE, UINTMAX_TYPE): Don't define.
6389 (init_decl_processing): Don't create string_type_node,
6390 const_string_type_node, wint_type_node, intmax_type_node,
6391 uintmax_type_node, default_function_type, ptrdiff_type_node and
6392 unsigned_ptrdiff_type_node. Adjust position of call to
6393 c_common_nodes_and_builtins.
6394 (identifier_global_value): New function.
6395
13f9714b
NS
63962000-12-01 Nathan Sidwell <nathan@codesourcery.com>
6397
6398 * call.c (standard_conversion): Reject pointer to member
6399 conversions from ambiguous, inaccessible or virtual bases.
6400 * typeck.c (build_static_cast): Don't check pointers to members
6401 specially.
6402
31b1b957
NS
64032000-11-30 Nathan Sidwell <nathan@codesourcery.com>
6404
6405 * method.c (do_build_copy_constructor): Preserve cv
6406 qualifications when accessing source object members.
6407 (do_build_assign_ref): Likewise. Remove separate diagnostics for
6408 unnamed fields.
6409
717e3f73
NS
64102000-11-30 Nathan Sidwell <nathan@codesourcery.com>
6411
6412 * method.c (do_build_assign_ref): Construct appropriately
6413 CV-qualified base reference. Don't allow const casts in base
6414 conversion.
6415
2c92b94d
NS
64162000-11-30 Nathan Sidwell <nathan@codesourcery.com>
6417
6418 * call.c (build_over_call): Use VOID_TYPE_P. Don't die on
6419 incomplete return type.
6420
bb92901d
NS
64212000-11-28 Nathan Sidwell <nathan@codesourcery.com>
6422
6423 * parse.y (base_class.1): Produce a _TYPE not a _DECL.
6424 * semantics.c (finish_base_specifier): Accept a _TYPE not a
6425 _DECL.
6426
2f3608c3
NS
64272000-11-28 Nathan Sidwell <nathan@codesourcery.com>
6428
6429 * spew.c (yyerror): Cope if yylval.ttype is NULL.
6430
eeb75383
NS
64312000-11-28 Nathan Sidwell <nathan@codesourcery.com>
6432
6433 * decl.c (grokdeclarator): Diagnose undefined template contexts.
6434
5ee4cc26
NS
64352000-11-28 Nathan Sidwell <nathan@codesourcery.com>
6436
6437 * decl.c (grokdeclarator): Do type access control on friend
6438 class.
6439
76e57b45
NS
64402000-11-27 Nathan Sidwell <nathan@codesourcery.com>
6441
6442 * decl.c (grokfndecl): Undo COMPONENT_REF damage caused by
6443 bison parser ickiness.
6444 * pt.c (tsubst_friend_function): Enter namespace scope when
6445 tsubsting the function name.
6446 * cp-tree.h (DECL_TI_TEMPLATE): Update comment to reflect reality.
6447
f9825168
NS
64482000-11-27 Nathan Sidwell <nathan@codesourcery.com>
6449
6450 * cp-tree.h (binfo_from_vbase): Return the virtual base's binfo.
6451 * cvt.c (cp_convert_to_pointer): Add force parameter.
6452 Allow conversions via virtual base if forced.
6453 (convert_to_pointer_force): Adjust call to cp_convert_to_pointer.
6454 (ocp_convert): Likewise.
6455 * search.c (binfo_from_vbase): Return the virtual base's binfo.
6456 * typeck.c (get_delta_difference): Adjust handling of virtual
6457 bases.
6458
9ccb25d5
MM
64592000-11-26 Mark Mitchell <mark@codesourcery.com>
6460
6461 * tree.c (struct list_hash): Remove.
6462 (list_hash_table): Make it be an htab.
6463 (struct list_proxy): New type.
6464 (list_hash_eq): New function.
6465 (list_hash_pieces): Renamed from ...
6466 (list_hash): ... this.
6467 (list_hash_lookup): Remove.
6468 (list_hash_add): Remove.
6469 (hash_tree_cons): Use the generic hashtable.
6470 (mark_list_hash): Remove.
6471 (init_tree): Create the hashtable.
6472
9399bad3
JM
64732000-11-25 Joseph S. Myers <jsm28@cam.ac.uk>
6474
6475 * method.c (build_mangled_C9x_name): Rename to
6476 build_mangled_C99_name. Change C9X references in comments to
6477 refer to C99.
6478
2f401cc8
NS
64792000-11-24 Nathan Sidwell <nathan@codesourcery.com>
6480
6481 * parse.y (unary_expr): Move VA_ARG from here ...
6482 (primary): ... to here.
6483
3d7e9ba4
NS
64842000-11-24 Nathan Sidwell <nathan@codesourcery.com>
6485
6486 * semantics.c (finish_id_expr): If type is error_mark, return
6487 error_mark.
6488
ab097535
NS
64892000-11-23 Nathan Sidwell <nathan@codesourcery.com>
6490
6491 * pt.c (lookup_template_class): Simplify loop exit constructs.
6492 Cope when there is no partial instantiation of a template
6493 template member.
6494
9196ece5
R
6495Thu Nov 23 02:16:47 2000 J"orn Rennecke <amylaar@redhat.com>
6496
6497 * Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H).
6498
cac78ea2
MM
64992000-11-22 Mark Mitchell <mark@codesourcery.com>
6500
6e1b44bc
MM
6501 * mangle.c (mangle_conv_op_name_for_type): Don't use `__op'
6502 prefix.
6503
cac78ea2
MM
6504 * pt.c (do_decl_instantiate): Explicitly clone constructors and
6505 destructors that haven't already been cloned.
6506
3aac38d7
RH
65072000-11-20 Richard Henderson <rth@redhat.com>
6508
6509 * parse.y (yyparse_1): Rename the parser entry point.
6510
65112000-11-20 Alex Samuel <samuel@codesourcery.com>
beac9b93
AS
6512
6513 * mangle.c (write_name): Use <unscoped-name> for names directly in
6514 function scope.
6515 (write_unscoped_name): Accept names directly in function scope.
d363e7bf 6516
447306fa
NS
65172000-11-20 Nathan Sidwell <nathan@codesourcery.com>
6518
6519 * lex.c (rid_to_yy, RID_EXPORT): Make unique keyword.
6520 * parse.y (extdef): Add EXPORT reduction.
6521 * spew.c (yylex): Don't skip export here.
6522
2650255a
MM
65232000-11-19 Mark Mitchell <mark@codesourcery.com>
6524
6525 * decl.c (init_decl_processing): Correct name of pure virtual
6526 function under the new ABI.
6527 * rtti.c (throw_bad_cast): Likewise, for bad cast function.
6528 (throw_bad_typeid): Likewise for bad typeid function.
6529
0657c69c
MM
65302000-11-18 Mark Mitchell <mark@codesourcery.com>
6531
04f3dc2b
MM
6532 * decl.c (grokparms): Don't even function types of `void' type,
6533 either.
6534 * mangle.c (write_type): Don't crash when confronted with the
6535 error_mark_node.
6536
0657c69c
MM
6537 * decl.c (grokparms): Don't create parameters of `void' type.
6538
a8a05998
ZW
65392000-11-17 Zack Weinberg <zack@wolery.stanford.edu>
6540
6541 * lex.c (mark_impl_file_chain): Delete.
6542 (init_parse): Remove call to ggc_add_string_root. No need to
6543 ggc_strdup a string constant. Do not add impl_file_chain to GC
6544 roots.
6545 (handle_pragma_implementation): No need to ggc_strdup main_filename.
6546
35728a80
NS
65472000-11-17 Nathan Sidwell <nathan@codesourcery.com>
6548
6549 * pt.c (tsubst_expr, DECL_STMT): Instantiate decl's type.
6550
5cce22b6
NS
65512000-11-17 Nathan Sidwell <nathan@codesourcery.com>
6552
6553 * cp-tree.h (PARMLIST_ELLIPSIS_P): New macro.
6554 * decl.c (grokdeclarator): Don't reject void parms here.
6555 (require_complete_types_for_parms): Simplify, use
6556 complete_type_or_else.
6557 (grokparms): Remove bitrot. Remove funcdef parm.
6558 Deal with ellipsis parm lists here.
6559 * semantics.c (finish_parmlist): Don't append void_list_node
6560 here. Set PARMLIST_ELLIPSIS_P.
6561
146c8d60
NS
65622000-11-17 Nathan Sidwell <nathan@codesourcery.com>
6563
6564 * typeck2.c (incomplete_type_error): Reorganise to avoid
6565 excessive diagnostics.
6566
520a57c8
ZW
65672000-11-16 Zack Weinberg <zack@wolery.stanford.edu>
6568
6569 * lex.c (struct impl_files, internal_filename): Constify a char *.
6570
43048a06
MM
65712000-11-16 Mark Mitchell <mark@codesourcery.com>
6572
6573 * mangle.c (write_special_name_constructor): Don't generate
6574 assembler junk when confronted with an old-style constructor.
6575 (write_special_name_destructor): Likewise.
6576 (mangle_decl_string): Do it here instead.
6577
cdb71673
NS
65782000-11-16 Nathan Sidwell <nathan@codesourcery.com>
6579
6580 * call.c (op_error): Make error messages clearer.
6581
62136084
MM
65822000-11-15 Mark Mitchell <mark@codesourcery.com>
6583
6584 * decl.c (wrapup_globals_for_namespace): Don't mark things
6585 TREE_ASM_WRITTEN when they're not.
6586
ee3400e8
JM
65872000-11-15 Jason Merrill <jason@redhat.com>
6588
6589 * typeck2.c (friendly_abort): Uncount the error before handing
6590 off to fancy_abort.
6591
71631a1f
NS
65922000-11-15 Nathan Sidwell <nathan@codesourcery.com>
6593
6594 * typeck.c (lookup_anon_field): Cope with qv qualifiers.
6595
79cda2d1
MM
65962000-11-14 Mark Mitchell <mark@codesourcery.com>
6597
6598 * class.c (build_vtbl_initializer): Fix typo in comment.
6599 * typeck.c (expr_sizeof): Don't crash on errors.
6600
2567bc56
JW
66012000-11-14 Jim Wilson <wilson@redhat.com>
6602
6603 * lang-specs.h: Add %2 after %(cc1_options).
6604
8422942c
RH
66052000-11-14 Richard Henderson <rth@redhat.com>
6606
6607 * typeck.c (c_sizeof): Be strict about casting result value
6608 back to c_size_type_node.
6609 (expr_sizeof, c_sizeof_nowarn, c_alignof): Likewise.
6610
19552aa5
JM
66112000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
6612
6613 * typeck.c (build_unary_op): Use boolean_increment from
6614 c-common.c, moving the relevant code there.
6615
d96a6d1a
JM
66162000-11-11 Jason Merrill <jason@redhat.com>
6617
6618 * typeck.c (mark_addressable): Don't call put_var_into_stack.
492cca24
JM
6619
6620 * decl.c (maybe_commonize_var): Set DECL_UNINLINABLE for statics
6621 in inlines.
6622
4e135bdd
KG
66232000-11-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6624
6625 * decl.c (grokdeclarator, save_function_data): Use memcpy, not bcopy.
6626 * lex.c (copy_lang_decl): Likewise.
6627
0a7394bc
MM
66282000-11-09 Mark Mitchell <mark@codesourcery.com>
6629
13507bd8
MM
6630 * dump.c (cp_dump_tree): Don't dump function bodies here.
6631
0a7394bc
MM
6632 * Make-lang.in (CXX_C_OBJS): Add c-dump.o.
6633 (dump.o): Update dependency list.
6634 * cp-tree.h (DECL_MAYBE_TEMPLATE): Remove.
6635 (flag_dump_translation_unit): Likewise.
6636 (CP_TYPE_QUALS): Adjust definition.
6637 (DECL_C_BIT_FIELD): Remove.
6638 (SET_DECL_C_BIT_FIELD): Likewise.
6639 (CLEAR_DECL_C_BIT_FIELD): Likewise.
6640 (add_maybe_template): Likewise.
6641 (strip_array_types): Likewise.
6642 (dump_node_to_file): Likewise.
6643 (cp_dump_tree): New function.
6644 * decl.c (init_decl_processing): Set lang_dump_tree.
6645 * decl2.c (flag_dump_translation_unit): Remove.
6646 * dump.c: Move most of it to ../c-dump.c.
6647 (cp_dump_tree): New function.
6648 * pt.c (add_maybe_template): Remove.
6649 * typeck.c (strip_array_types): Likewise.
a8a05998 6650
5362b086
EC
66512000-11-07 Eric Christopher <echristo@redhat.com>
6652
492cca24
JM
6653 * decl.c (init_decl_processing): Change definition of
6654 __wchar_t to wchar_t. Remove artificial declaration of
6655 wchar_t.
6656 * lex.c: Change instances of __wchar_t to wchar_t.
5362b086 6657
5361cbb7
NS
66582000-11-09 Nathan Sidwell <nathan@codesourcery.com>
6659
6660 * lex.c (do_identifier): Don't lookup_name for operators.
6661 * parse.y (operator): Save looking_for_typename.
6662 (unoperator): Restore it.
6663 * spew.c (frob_opname): Use nth_token for lookahead.
6664
36791f1e
NS
66652000-11-08 Nathan Sidwell <nathan@codesourcery.com>
6666
6667 * decl.c (grok_op_properties): Always use coerce_new_type and
6668 coerce_delete_type.
6669 * decl2.c (coerce_new_type): Use c_size_type_node. Preserve
6670 exception specification. Tidy up.
6671 (coerce_delete_type): Preserve exception specification. Tidy up.
6672
961192e1
JM
66732000-11-07 Joseph S. Myers <jsm28@cam.ac.uk>
6674
6675 * class.c (duplicate_tag_error, build_vtbl_initializer), decl.c
6676 (push_binding_level), error.c (cp_tree_printer), pt.c
6677 (process_partial_specialization, tsubst_template_arg_vector),
6678 search.c (lookup_member): Use memset () instead of bzero ().
6679
d48ebde1
NS
66802000-11-07 Nathan Sidwell <nathan@codesourcery.com>
6681
6682 * decl.c (build_ptrmemfunc_type): Allow error_mark_node.
6683
436a88a6
JM
66842000-11-05 Joseph S. Myers <jsm28@cam.ac.uk>
6685
6686 * Make-lang.in (c++.distdir): Remove.
6687
7a4e5091
MM
66882000-11-04 Mark Mitchell <mark@codesourcery.com>
6689
6690 * decl2.c (do_nonmember_using_decl): Allow `extern "C"'
6691 declarations from different namespaces to be combined.
6692
0e9295cf
ZW
66932000-11-03 Zack Weinberg <zack@wolery.stanford.edu>
6694
6695 * decl.c: Include tm_p.h.
6696
da61dec9
JM
66972000-11-03 Joseph S. Myers <jsm28@cam.ac.uk>
6698
6699 * tree.c (cp_tree_equal): Use memcmp () instead of bcmp ().
6700
9473c522
JM
67012000-11-02 Joseph S. Myers <jsm28@cam.ac.uk>
6702
6703 * dump.c (dequeue_and_dump), lex.c (interface_strcmp), method.c
6704 (build_overload_value), repo.c (open_repo_file), xref.c
6705 (open_xref_file): Use strchr () and strrchr () instead of index ()
6706 and rindex ().
6707
b0b3afb2
BS
67082000-11-01 Bernd Schmidt <bernds@redhat.co.uk>
6709
6710 * call.c (build_over_call): Call fold on the CALL_EXPR.
6711
faafaee6
GDR
67122000-11-01 Gabriel Dos Reis <gdr@codesourcery.com>
6713
6714 * error.c (dump_template_decl): Separate template hearders with
6715 space not comma.
6716
761f0855
GDR
67172000-10-31 Gabriel Dos Reis <gdr@codesourcery.com>
6718
6719 * error.c: Move TFF_ macros into cp-tree.h. Throughout, replace
6720 TS_* flags with corresponding TFF_*. Adjust prototypes of
6721 functions (which used to take a tree_string_flags) to take an int.
6722
6723 * cp-tree.h (enum tree_string_flags): Remove
6724 (TFF_PLAIN_IDENTIFIER, TFF_NAMESPACE_SCOPE, TFF_CLASS_SCOPE,
6725 TFF_CHASE_NAMESPACE_ALIAS, TFF_CHASE_TYPEDEF, TFF_DECL_SPECIFIERS,
6726 TFF_CLASS_KEY_OR_ENUM, TFF_RETURN_TYPE,
6727 TFF_FUNCTION_DEFAULT_ARGUMENTS, TFF_EXCEPTION_SPECIFICATION,
6728 TFF_TEMPLATE_HEADER, TFF_TEMPLATE_DEFAULT_ARGUMENTS,
6729 TFF_TEMPLATE_NAME, TFF_EXPR_IN_PARENS, TFF_SCOPE): New macros.
6730 (type_as_string, decl_as_string, expr_as_string,
6731 context_as_string): Adjust prototype.
6732
6733 * class.c (dump_class_hierarchy_r): Use TFF_PLAIN_IDENTIFIER
6734 instead of TS_PLAIN.
6735
6736 * pt.c (mangle_class_name_for_template): Use TFF_CHASE_TYPEDEF
6737 instead of TF_CHASE_TYPEDEFS. Use TFF_PLAIN_IDENTIFIER instead of
6738 plain `0'.
6739
ad50e811
MM
67402000-10-30 Mark Mitchell <mark@codesourcery.com>
6741
6742 * cp-tree.h (DECL_EXTERNAL_LINKAGE_P): New macro.
6743 (linkage_kind): New enumeration.
6744 (decl_linkage): New function.
6745 * decl2.c (comdat_linkage): Extend comment.
6746 * error.c (dump_function_decl): Print the arguments used to
6747 instantiate a template, even when not printing the type of the
6748 function.
6749 * pt.c (convert_nontype_argument): Use DECL_EXTERNAL_LINKAGE_P,
6750 not TREE_PUBLIC, to test for external linkage.
6751 * tree.c (decl_linkage): New function.
6752
930cd796
MM
67532000-10-28 Mark Mitchell <mark@codesourcery.com>
6754
6755 * pt.c (instantiate_decl): Always instantiate static data members
6756 initialized in-class.
6757
b8dad04b
ZW
67582000-10-27 Zack Weinberg <zack@wolery.stanford.edu>
6759
6760 * Make-lang.in: Move all build rules here from Makefile.in,
6761 adapt to new context. Wrap all rules that change the current
6762 directory in parentheses. Expunge all references to $(P).
6763 When one command depends on another and they're run all at
6764 once, use && to separate them, not ;. Add OUTPUT_OPTION to
6765 all object-file generation rules. Delete obsolete variables.
6766
6767 * Makefile.in: Delete.
6768 * config-lang.in: Delete outputs= line.
6769
5f9cd837
GDR
67702000-10-26 Gabriel Dos Reis <gdr@codesourcery.com>
6771
6772 * error.c (dump_function_decl): Print no space between
6773 `ptr-operator' the `type-specifier' of the return type.
6774 (dump_type_prefix): Make sure we put space at the appropriate
5362b086 6775 place.
5f9cd837 6776
6c6ed0ef
JM
67772000-10-23 Jason Merrill <jason@redhat.com>
6778
6779 * call.c (equal_functions): Also call decls_match for extern "C" fns.
6780
67812000-10-22 Jason Merrill <jason@redhat.com>
6782
6783 * call.c (build_conditional_expr): Use ocp_convert to force
6784 rvalue conversion.
6785
e36308b0
MM
67862000-10-22 Mark Mitchell <mark@codesourcery.com>
6787
583ca5a0
MM
6788 * call.c (standard_conversion): Use RVALUE_CONVs for all
6789 expressions that satisfy lvalue_p, not just those that satisfy
6790 real_lvalue_p.
6791
f9808f81
MM
6792 * optimize.c (copy_body_r): Don't treat CALL_EXPRs specially.
6793
5362b086 6794 * typeck.c (c_sizeof): Return an expression of `size_t' type,
e36308b0
MM
6795 not one with TYPE_IS_SIZETYPE set.
6796 (dubious_conversion_warnings): Remove special-case code.
6797
3b9ae6f0
GK
67982000-10-21 Geoffrey Keating <geoffk@cygnus.com>
6799
7a0f14e5
GK
6800 * decl2.c (arg_assoc_type): Handle VECTOR_TYPE.
6801 * error.c (dump_type): Handle VECTOR_TYPE like POINTER_TYPE.
6802 (dump_type_prefix): Print vector-of-int as 'int vector'.
6803 (dump_type_suffix): Handle VECTOR_TYPE like POINTER_TYPE.
6804 * tree.c (walk_tree): Handle VECTOR_TYPE.
6805
3b9ae6f0 6806 * decl.c (init_decl_processing): Call MD_INIT_BUILTINS.
5362b086 6807
aca77bd1
JM
68082000-10-21 Jason Merrill <jason@redhat.com>
6809
6810 * parse.y (operator): Set got_object from got_scope.
6811 Set looking_for_typename.
6812 * decl.c (lookup_name_real): Clear val after setting from_obj.
6813 Reorganize diagnostic.
6814
ba523395
JM
68152000-10-20 Jason Merrill <jason@redhat.com>
6816
6817 * tree.c (walk_tree): Don't walk into default args.
6818
6819 * error.c (dump_expr): Use host_integerp.
6820
2e44948d
DE
68212000-10-20 David Edelsohn <edelsohn@gnu.org>
6822
6823 * typeck2.c (abstract_virtuals_error): Use "because" instead of
6824 "since" in error message.
6825
44475138
RK
6826Fri Oct 20 13:54:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6827
6828 * typeck.c (dubious_conversion_warning): Suppress if TYPE_IS_SIZETYPE.
6829
11306230
JO
68302000-10-20 Jeffrey Oldham <oldham@codesourcery.com>
6831
6832 * decl.c (revert_static_member_fn): Fixed typo.
6833
97ba1e3c
MM
68342000-10-19 Mark Mitchell <mark@codesourcery.com>
6835
c20118a8
MM
6836 * class.c (subobject_offset_fn): New type.
6837 (dfs_record_base_offsets): Remove.
6838 (record_base_offsets): Likewise.
6839 (dfs_search_base_offsets): Likewise.
6840 (record_subobject_offset): New function.
6841 (check_subobject_offset): Likewise.
6842 (walk_subobject_offsets): Likewise.
6843 (record_subobject_offsets): Likewise.
6844 (layout_conflict_p): Reimplement.
6845 (layout_nonempty_base_or_field): Correct handling of type
6846 conflicts during layout.
6847 (layout_empty_base): Likewise.
6848 (build_base_field): Adjust to handle new representation of empty
6849 base offset table.
6850 (build_base_fields): Likewise.
6851 (layout_virtual_bases): Likewise.
6852 (splay_tree_compare_integer_csts): New function.
6853 (layout_class_type): Use a splay_tree, rather than a varray, to
6854 represent the offsets of empty bases.
5362b086 6855
97ba1e3c
MM
6856 * cp-tree.h (DECL_ANTICIPATED): Don't require a FUNCTION_DECL.
6857 * decl.c (select_decl): Don't return declarations that are
6858 DECL_ANTICIPATED.
6859
6bcedb4e
MM
68602000-10-18 Mark Mitchell <mark@codesourcery.com>
6861
6862 * cp-tree.h (cp_tree_index): Add CPTI_FAKE_STD.
6863 (fake_std_node): New macro.
6864 * decl.c (in_std): Rename to ...
6865 (in_fake_std): ... this.
6866 (flag_no_builtin): Remove.
6867 (flag_no_nonansi_builtin): Likewise.
6868 (walk_namespaces_r): Use fake_std_node.
6869 (push_namespace): Use std_identifier.
6870 (pop_namespace): Use in_fake_std.
6871 (lookup_name_real): Use fake_std_node.
6872 (init_decl_processing): When -fhonor-std, create the `std'
6873 namespace. Don't create a dummy fake_std_node in that case.
6874 Adjust call to c_common_nodes_and_builtins. Use std_identifier.
6875 (builtin_function): Put builtins whose names don't begin
6876 with `_' in the std namespace.
6877 * decl2.c (flag_no_builtin): Remove.
6878 (flag_no_nonansi_builtin): Likewise.
6879 (set_decl_namespace): Use fake_std_node.
6880 (validate_nonmember_using_decl): Likewise.
6881 (do_using_directive): Likewise.
6882 (handle_class_head): Likewise.
6883 * dump.c (dequeue_and_dump): Likewise.
6884 * except.c (init_exception_processing): Use std_identifier.
6885 * init.c (build_member_call): Use fake_std_node.
6886 * rtti.c (init_rtti_processing): Use std_identifier.
5362b086 6887
67673f5c
MM
68882000-10-17 Mark Mitchell <mark@codesourcery.com>
6889
6890 * cp-tree.h (back_end_hook): Remove declaration.
6891 * decl2.c (back_end_hook): Remove definition.
6892
6893 * dump.c (dequeue_and_dump): Dump TREE_USED.
6894
8fef2e47
BL
6895Tue Oct 17 20:19:06 2000 Brad Lucier <lucier@math.purdue.edu>
6896
6897 * spew.c (snarf_defarg): Cast 2nd arg to obstack_blank to (int).
6898
652469d0
JM
68992000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
6900
6901 * decl.c (WINT_TYPE): Define.
6902 (init_decl_processing): Create types unsigned_ptrdiff_type_node,
6903 c_size_type_node, signed_size_type_node and wint_type_node.
6904
74ff4629
JM
69052000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
6906
6907 * decl2.c (warn_missing_format_attribute): New variable.
6908 (lang_decode_option): Decode -Wmissing-format-attribute.
6909
634790f4
MM
69102000-10-16 Mark Mitchell <mark@codesourcery.com>
6911
6912 * typeck.c (qualify_type): Remove.
6913 (composite_pointer_type): Fix handling of conversions to `cv void*'.
6914
bb12da9d
KG
69152000-10-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6916
6917 * Makefile.in (parse.c, parse.h): Fix think-o in last patch.
6918
4b945402
KG
69192000-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6920
6921 * Makefile.in (parse.c, parse.h): Create atomically.
6922
1f8f4a0b
MM
69232000-10-12 Mark Mitchell <mark@codesourcery.com>
6924
6925 * class.c (current_obstack): Remove.
6926 * decl.c (ggc_p): Remove.
6927 (start_decl): Don't use decl_tree_cons.
6928 (grokdeclarator): Don't use build_decl_list.
6929 (start_function): Don't use decl_tree_cons.
6930 (finish_function): Don't mess with obstacks.
6931 * decl2.c (grok_x_components): Don't use build_decl_list.
6932 * lex.c (make_call_declarator): Don't call decl_tree_cons.
6933 (implicitly_declare_fn): Don't call build_decl_list.
6934 * parse.y (frob_specs): Don't call build_decl_list or
6935 decl_tree_cons.
6936 (expr_or_declarator_intern): Don't call decl_tree_cons.
6937 (primary): Don't call build_decl_list.
6938 (fcast_or_absdcl): Likewise.
6939 (typed_declspecs): Don't call decl_tree_cons.
6940 (reserved_declspecs): Don't call build_decl_list.
6941 (declmods): Likewise.
6942 (reserved_typespecquals): Likewise.
6943 (aggr): Likewise.
6944 (new_type_id): Likewise.
6945 (cv_qualifiers): Likewise.
6946 (after_type_declarator_intern): Likewise.
6947 (notype_declarator_intern): Likewise.
6948 (absdcl_intern): Likewise.
6949 (named_parm): Likewise.
6950 * pt.c (most_specialized_class): Likewise.
6951 * repo.c (temporary_obstack): Make it a structure, not a pointer.
6952 (init_repo): Initialize it.
6953 * search.c (current_obstack): Remove.
6954 * typeck2.c (add_exception_specifier): Don't call build_decl_list.
5362b086 6955
8dc54971
RH
69562000-10-09 Richard Henderson <rth@cygnus.com>
6957
6958 * Make-lang.in (CXX_EXTRA_HEADERS): Remove.
6959 (c++ language support bits for libgcc): Remove.
6960 (c++.clean): Remove cplib2.txt cleanup.
6961 * config-lang.in (headers, lib2funcs): Remove.
6962
6963 * exception.cc, new.cc, new1.cc, new2.cc: Remove files.
6964 * tinfo.cc, tinfo.h, tinfo2.cc, vec.cc: Remove files.
6965 * inc/cxxabi.h, inc/exception, inc/new: Remove files.
6966 * inc/new.h, inc/typeinfo: Remove files.
6967
b15ad712
JM
69682000-10-08 Joseph S. Myers <jsm28@cam.ac.uk>
6969
6970 * decl.c (INTMAX_TYPE, UINTMAX_TYPE): Define if not already
6971 defined.
6972 (init_decl_processing): Initialize intmax_type_node and
6973 uintmax_type_node.
6974
156ce211
RH
69752000-10-06 Richard Henderson <rth@cygnus.com>
6976
6977 * cp-tree.h (struct cp_language_function): Remove x_result_rtx.
6978 (original_result_rtx): Remove.
6979 * decl.c (save_function_data): Don't clear x_result_rtx.
6980 (mark_lang_function): Don't mark it either.
6981 * expr.c (fixup_result_decl): Remove.
6982 * semantics.c (genrtl_named_return_value): Frob the return decl
6983 before calling emit_local_var.
6984 (genrtl_finish_function): Don't call fixup_result_decl.
6985 Always emit the jump to return_label.
6986
92777ce4
NS
69872000-10-06 Nathan Sidwell <nathan@codesourcery.com>
6988
6989 * pt.c (lookup_template_class): Set current access for enum.
6990 (tsubst_enum): Set file & line for enum decl.
5362b086 6991
92777ce4
NS
6992 * spew.c (yylex): Remove unused variable.
6993
63c16fc5
RH
69942000-10-05 Richard Henderson <rth@cygnus.com>
6995
6996 * semantics.c (genrtl_finish_function): Don't init or check
6997 can_reach_end; remove noreturn and return value checks.
6998
d1a458c4
TT
69992000-10-05 Tom Tromey <tromey@cygnus.com>
7000
7001 * init.c (build_java_class_ref): Use `build_static_name' with a
7002 suffix, not a prefix, to build the class object's name.
7003
509fc277
NS
70042000-10-05 Nathan Sidwell <nathan@codesourcery.com>
7005
7006 * cp-tree.h (access_kind): Fix comment typo.
7007 * decl2.c (grokfield): Fix diagnostic typo.
7008 * semantics.c (finish_template_type): Fix comment typo.
7009 (finish_qualified_object_call_expr): Likewise.
7010
ce2e5191
NS
70112000-10-05 Nathan Sidwell <nathan@codesourcery.com>
7012
7013 * pt.c (tsubst_expr, DECL_STMT case): Don't process if
5362b086 7014 tsubsting fails.
ce2e5191 7015
79cc5312
NS
70162000-10-05 Nathan Sidwell <nathan@codesourcery.com>
7017
7018 * spew.c (frob_id): New static function.
7019 (frob_opname): Use it.
7020 (yylex): Use it.
7021
f15b9af9
MM
70222000-10-01 Mark Mitchell <mark@codesourcery.com>
7023
7024 * decl.c (lang_mark_false_label_stack): Remove.
7025 * lex.c (cp_mang_lang_type): Use ggc_alloc_cleared.
5362b086 7026
28e6b1c2
JM
70272000-09-30 Joseph S. Myers <jsm28@cam.ac.uk>
7028
7029 * gxxint.texi: Use @email for formatting email addresses.
7030
99885b3f
GDR
70312000-09-29 Gabriel Dos Reis <gdr@codesourcery.com>
7032
7033 * error.c: Remove direct obstack manipulation. Replace with
7034 output_buffer-based formatting. Adjust calls to removed macros.
7035 (obstack_chunk_alloc, obstack_chunk_free): Remove.
7036 (OB_INIT, OB_PUTC, OB_PUTC2, OB_PUTS, OB_PUTID, OB_PUTCP,
7037 OB_FINISH, OB_PUTI, OB_END_TEMPLATE): Likewise.
7038
c06aa51e
MM
70392000-09-24 Mark Mitchell <mark@codesourcery.com>
7040
7041 * ir.texi: Move to ../c-tree.texi.
7042
99fada40
JM
70432000-09-20 Jason Merrill <jason@redhat.com>
7044
7045 * decl2.c (get_guard): Check DECL_FUNCTION_SCOPE_P.
7046
bb20cc46
AJ
70472000-09-21 Andreas Jaeger <aj@suse.de>
7048
7049 * errfn.c: Move declaration of cp_printer and cp_printers to ...
7050 * cp-tree.h: ... here.
7051
7052 * error.c: Remove declaration of cp_printer.
7053
fab701da
MM
70542000-09-20 Mark Mitchell <mark@codesourcery.com>
7055
7056 * tree.c (mark_local_for_remap_r): Handle CASE_LABELs.
7057
0370fea1
HPN
70582000-09-20 Hans-Peter Nilsson <hp@axis.com>
7059
7060 * except.c: Delete #if 0:d EXCEPTION_SECTION_ASM_OP-default and
7061 users.
7062
78c120b5
MM
70632000-09-18 Mark Mitchell <mark@codesourcery.com>
7064
7065 * decl.c (start_function): Robustify.
7066
3f80e6ac
KG
70672000-09-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7068
7069 * cp-tree.h (check_function_format): Accept a `status' parameter.
bb20cc46 7070
3f80e6ac
KG
7071 * call.c, typeck.c: Updates calls to `check_function_format'.
7072
fc928afe
GK
70732000-09-17 Geoffrey Keating <geoffk@cygnus.com>
7074
7075 * decl2.c (handle_class_head): Always push some scope even
7076 in the error case.
7077
8f17b5c5
MM
70782000-09-16 Mark Mitchell <mark@codesourcery.com>
7079
7080 * cp-tree.h (struct cp_language_function): Remove
7081 x_scope_stmt_stack and name_declared.
7082 (current_scope_stmt_stack): Remove.
7083 (function_name_declared_p): New macro.
7084 (struct lang_decl_flags): Use c_lang_decl as a base class.
7085 (context): Remove.
7086 (struct lang_decl): Replace saved_tree with context.
7087 (DECL_FRIEND_CONTEXT): Adjust accordingly.
7088 (SET_DECL_FRIEND_CONTEXT): Likewise.
7089 (DECL_VIRTUAL_CONTEXT): Likewise.
7090 (DECL_SAVED_TREE): Remove.
7091 (C_DECLARED_LABEL_FLAG): Likewise.
7092 (cplus_expand_expr_stmt): Don't declare.
7093 (add_decl_stmt): Likewise.
7094 (add_scope_stmt): Likewise.
7095 * decl.c (mark_stmt_tree): Remove.
7096 (case_compare): Likewise.
7097 (finish_case_label): Use c_add_case_label.
7098 (init_decl_processing): Set more language-specific hooks.
7099 (build_enumerator): Fix typo in comment.
7100 (cplus_expand_expr_stmt): Remove.
7101 (mark_lang_function): Use mark_c_language_function.
7102 (lang_mark_tree): Use c_mark_lang_decl.
7103 * decl2.c: Change order of inclusion.
7104 * except.c: Likewise.
7105 * expr.c (cplus_expand_expr): Remove handling of STMT_EXPR. Fall
7106 back on c_expand_expr.
7107 * friend.c: Include expr.h.
7108 * init.c: Change order of inclusion.
7109 * Makefile.in: Update dependencies.
7110 * lex.h (free_lang_decl_chain): Remove.
7111 * optimize.c (maybe_clone_body): Use function_name_declared_p.
7112 * pt.c (build_template_decl): Don't copy DECL_VIRTUAL_CONTEXT if
7113 it doesn't exist.
7114 (instantiate_decl): Use function_name_declared_p.
7115 * semantics.c (lang_expand_expr_stmt): Remove.
7116 (set_current_function_name_declared): Likewise.
7117 (current_function_name_declared): Likewise.
7118 (begin_compound_stmt): Use function_name_declared_p.
7119 (add_decl_stmt): Remove.
7120 (setup_vtbl_ptr): Use function_name_declared_p.
7121 (add_scope_stmt): Remove.
7122 (current_scope_stmt_stack): New function.
7123 (cp_expand_stmt): Don't handle SCOPE_STMTs.
7124 (expand_body): Use function_name_declared_p.
7125 * tree.c (cp_statement_code_p): Don't include SCOPE_STMT.
7126 * typeck.c: Change order of includes.
7127 (convert_sequence): Remove.
bb20cc46 7128
d9dbd9b1
JM
71292000-09-14 Joseph S. Myers <jsm28@cam.ac.uk>
7130
7131 * lex.c (reswords): Add _Complex.
7132
9985f210
RK
7133Thu Sep 14 12:10:45 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7134
7135 * Make-lang.in (cplib2.txt): Depend on cp/Makefile.
7136
f903ebb1
DA
71372000-09-13 J. David Anglin <dave@hiauly1.hia.nrc.ca>
7138
7139 * init.c (begin_init_stmts): Don't use // comments.
7140
f2ae0c45
JM
71412000-09-12 Jason Merrill <jason@redhat.com>
7142
7143 * decl.c (maybe_deduce_size_from_array_init): Set do_default for
7144 all non-extern arrays.
7145
7146 * decl.c (grokdeclarator): Complain about 'friend T' for implicit
7147 typenames, too. Downgrade complaint to pedwarn.
7148 (xref_tag): Warn about surprising behavior of 'friend struct T'.
7149 * decl2.c (handle_class_head): Generate a TYPENAME_TYPE for
7150 'class This::Inherited'.
7151
71ad4a16
MM
71522000-09-12 Mark Mitchell <mark@codesourcery.com>
7153
7154 * decl.c (finish_case_label): Given the LABEL_DECL a
7155 DECL_CONTEXT.
7156
c3e76028
GDR
71572000-09-12 Gabriel Dos Reis <gdr@codesourcery.com>
7158
7159 * error.c (TFF_PLAIN_IDENTIFIER, TFF_NAMESPACE_SCOPE,
7160 TFF_CLASS_SCOPE, TFF_CHASE_NAMESPACE_ALIAS, TFF_CHASE_TYPDEF,
7161 TFF_DECL_SPECIFIERS, TFF_CLASS_KEY_OR_ENUM, TFF_RETURN_TYPE,
7162 TFF_FUNCTION_DEFAULT_ARGUMENTS, TFF_EXCEPTION_SPECIFICATION,
7163 TFF_TEMPLATE_HEADER, TFF_TEMPLATE_DEFAULT_ARGUMENTS, TFF_SCOPE):
7164 New macros.
7165 (sorry_for_unsupported_tree, print_scope_operator,
7166 print_left_paren, print_right_paren, print_left_bracket,
7167 print_right_bracket, print_whitespace): Likewise.
7168 (aggr_variety): Rename to class_key_or_enum.
7169 (print_type): Rename to print_type_id.
7170 (print_type_specifier_seq, print_simple_type_specifier,
7171 print_elaborated_type_specifier,
7172 print_rest_of_abstract_declarator,
7173 print_parameter_declaration_clause, print_exception_specification,
7174 print_nested_name_specifier, print_template_id,
7175 typedef_original_name, print_template_argument_list_start,
7176 print_template_argument_list_end): New functions.
7177
eb50138b
GDR
71782000-09-11 Gabriel Dos Reis <gdr@codesourcery.com>
7179
a8a05998 7180 * ir.texi: Add more documentation.
eb50138b 7181
f444e36b
MM
71822000-09-11 Mark Mitchell <mark@codesourcery.com>
7183
7184 * cp-tree.h (struct saved_scope): Remove x_function_parms.
7185 (current_function_parms): Don't define.
7186 (struct cp_language_function): Remove parms_stored.
7187 (current_function_just_assigned_this): Don't define.
7188 (current_function_parms_stored): Likewise.
7189 (static_ctors): Declare.
7190 (static_dtors): Likewise.
7191 (SF_EXPAND): Don't define.
7192 (expand_start_early_try_stmts): Remove declaration.
7193 (store_parm_decls): Likewise.
7194 * decl.c (static_ctors): Don't declare.
7195 (static_dtors): Likewise.
7196 (struct binding_level): Remove this_block.
7197 (poplevel): Remove dead code.
7198 (set_block): Likewise.
7199 (mark_binding_level): Don't mark this_block.
7200 (mark_saved_scope): Don't mark x_function_parms.
7201 (init_decl_processing): Don't add current_function_parms as a GC
7202 root.
7203 (check_function_type): Change prototype.
7204 (start_function): Remove RTL-generation code.
7205 (expand_start_early_try_stmts): Remove.
7206 (store_parm_decls): Give it internal linkage. Remove
7207 RTL-generation code.
7208 (finish_function): Remove RTL-generation code.
7209 * decl2.c (static_ctors): Fix formatting.
7210 (static_dtors): Likewise.
7211 * method.c (use_thunk): Don't call store_parm_decls.
7212 (synthesize_method): Likewise.
7213 * optimize.c (maybe_clone_body): Likewise.
7214 * parse.y (fn.def2): Likewise.
7215 (.set_base_init): Likewise.
7216 (nodecls): Likewise.
7217 * pt.c (instantiate_decl): Likewise.
7218 * rtti.c (synthesize_tinfo_fn): Likewise.
7219 * semantics.c (genrtl_try_block): Simplify.
7220 (expand_body): Use genrtl_start_function and
7221 genrtl_finish_function.
7222 (genrtl_start_function): New function.
7223 (genrtl_finish_function): Likewise.
7224
181d2ba0
NS
72252000-09-11 Nathan Sidwell <nathan@codesourcery.com>
7226
7227 * error.c (cp_tree_printer, case 'P'): Append break.
7228
f2d71db6
NS
72292000-09-11 Nathan Sidwell <nathan@codesourcery.com>
7230
7231 * cp-tree.h (frob_opname): Declare.
7232 * parse.y (saved_scopes): New static variable.
7233 (cp_parse_init): Adjust.
7234 (do_id): If lastiddecl is NULL, do do_identifier.
7235 (operator): Save scope information.
aca77bd1 7236 (unoperator): New reduction. Restore scope information.
f2d71db6
NS
7237 (operator_name): Append unoperator. Call frob_opname.
7238 * spew.c (frob_opname): Define.
7239
d8ea8f28
ZW
72402000-09-10 Zack Weinberg <zack@wolery.cumb.org>
7241
7242 * decl.c, rtti.c: Include defaults.h if not already included.
7243 Don't define the *_TYPE_SIZE macros.
7244
56cb9733
MM
72452000-09-09 Mark Mitchell <mark@codesourcery.com>
7246
7247 * cp-tree.h (push_switch): Change prototype.
7248 (check_cp_case_value): Remove declaration.
7249 (decl_constant_value): Likewise.
7250 * decl.c (struct cp_switch): Add switch_stmt and cases.
7251 (case_compare): New function.
7252 (push_switch): Set switch_stmt. Initialize cases.
7253 (pop_switch): Clean up cases.
7254 (define_case_label): Rename to ...
7255 (finish_case_label): ... this. Do semantic analysis for case
7256 labels here.
7257 (start_function): Correct comment.
7258 * decl2.c (check_cp_case_value): Remove.
7259 * expr.c (do_case): Remove.
7260 * pt.c (tsubst_expr): Adjust call to finish_case_label.
7261 * semantics.c (genrtl_do_poplevel): Remove declaration.
7262 (RECHAIN_STMTS): Remove.
7263 (finish_break_stmt): Use build_break_stmt.
7264 (finish_continue_stmt): Use build_continue_stmt.
7265 (finish_switch_cond): Adjust condition here, rater than in
7266 c_expand_start_case.
7267 (finish_case_label): Remove.
7268 * typeck.c (c_expand_return): Remove.
7269 (c_expand_start_case): Likewise.
bb20cc46 7270
990a9693
GDR
72712000-09-07 Gabriel Dos Reis <gdr@codesourcery.com>
7272
7273 * ir.texi: Document type nodes.
7274
ae499cce
MM
72752000-09-06 Mark Mitchell <mark@codesourcery.com>
7276
54f7877c
MM
7277 * cp-tree.h (init_cp_semantics): Declare.
7278 (genrtl_try_block): Don't declare.
7279 (genrtl_handler): Likewise.
7280 (genrtl_catch_block): Likewise.
7281 (genrtl_ctor_stmt): Likewise.
7282 (genrtl_subobject): Likewise.
7283 (genrtl_do_poplevel): Likewise.
7284 (genrtl_named_return_value): Likewise.
7285 * lex.c (init_parse): Call init_cp_semantics.
7286 * semantics.c (genrtl_try_block): Give it internal linkage.
7287 (genrtl_handler): Likewise.
7288 (genrtl_catch_block): Likewise.
7289 (genrtl_ctor_stmt): Likewise.
7290 (genrtl_subobject): Likewise.
7291 (genrtl_do_poplevel): Likewise.
7292 (genrtl_named_return_value): Likewise.
7293 (lang_expand_stmt): Rename to ...
7294 (cp_expand_stmt): ... this. Only handle C++-specific nodes.
7295 (init_cp_semantics): Define.
7296
3a0d3e1e
MM
7297 * decl.c (initialize_local_var): Remove RTL-generating code.
7298 * semantics.c (genrtl_try_block): Fix formatting.
7299
ae499cce
MM
7300 Move statement-tree facilities from C++ to C front-end.
7301 * cp-tree.h (cp_tree_index): Remove CPTI_VOID_ZERO.
7302 (void_zero_node): Remove.
7303 (stmt_tree): Likewise.
7304 (scope_chain): Adjust.
7305 (language_function): Rename to cp_language_function.
7306 (cp_function_chain): Adjust.
7307 (current_stmt_tree): Remove.
7308 (last_tree): Likewise.
7309 (last_expr_type): Likewise.
7310 (struct lang_decl): Adjust.
7311 (STMT_IS_FULL_EXPR_P): Remove.
7312 (add_tree): Remove.
7313 (begin_stmt_tree): Likewise.
7314 (finish_stmt_tree): Likewise.
7315 (walk_tree_fn): Likewise.
7316 (walk_stmt_tree): Likewise.
7317 * class.c (finish_struct): Replace use of add_tree with add_stmt.
7318 * decl.c (mark_stmt_tree): Adjust type.
7319 (init_decl_processing): Don't build void_zero_node.
7320 (initialize_local_var): Adjust usage of current_stmt_tree.
7321 (finish_enum): Use add_stmt, not add_tree.
7322 (save_function_data): Adjust use of language_function.
7323 (finish_constructor_body): Use add_stmt, not add_tree.
7324 (finish_destructor_body): Likewise.
7325 (push_cp_function_context): Adjust use of language_function.
7326 (pop_cp_function_context): Likewise.
7327 (mark_lang_function): Likewise.
7328 (mark_cp_function_context): Likewise.
7329 * init.c (build_aggr_init): Adjust use of current_stmt_tree.
7330 (build_vec_init): Likewise.
7331 * semantics.c (SET_LAST_STMT): Remove.
7332 (RECHAIN_STMTS): Don't use it.
7333 (stmts_are_full_exprs_p): Adjust use of current_stmt_tree.
7334 (current_stmt_tree): Define.
7335 (add_tree): Remove.
7336 (finish_goto_stmt): Use add_stmt, not add_tree.
7337 (finish_expr_stmt): Likewise.
7338 (begin_if_stmt): Likewise.
7339 (finish_then_clause): Likewise.
7340 (begin_while_stmt): Likewise.
7341 (begin_do_stmt): Likewise.
7342 (finish_return_stmt): Likewise.
7343 (begin_for_stmt): Likewise.
7344 (finish_break_stmt): Likewise.
7345 (finish_continue_stmt): Likewise.
7346 (begin_switch_stmt): Likewise.
7347 (finish_case_label): Likewise.
7348 (begin_try_block): Likewise.
7349 (begin_function_try_block): Likewise.
7350 (begin_handler): Likewise.
7351 (begin_catch_block): Likewise.
7352 (begin_compound_stmt): Likewise.
7353 (begin_asm_stmt): Likewise.
7354 (finish_asm_stmt): Likewise.
7355 (finish_label_stmt): Likewise.
7356 (add_decl_stmt): Likewise.
7357 (finish_subobject): Likewise.
7358 (finish_decl_cleanup): Likewise.
7359 (finish_named_return_value): Likewise.
7360 (setup_vtbl_ptr): Likewise.
7361 (add_scope_stmt): Likewise.
7362 (finish_stmt_expr): Likewise.
7363 (prune_unused_decls): Remove.
7364 (begin_stmt_tree): Likewise.
7365 (finish_stmt_tree): Likewise.
7366 (prep_stmt): Adjust use of current_stmt_tree.
7367 (lang_expand_stmt): Likewise.
7368 * tree.c (statement_code_p): Remove.
7369 (cp_statement_code_p): New function.
7370 (walk_stmt_tree): Remove.
7371 (init_tree): Set lang_statement_code_p.
bb20cc46 7372
0e5921e8
ZW
73732000-09-06 Zack Weinberg <zack@wolery.cumb.org>
7374
7375 Integrated preprocessor.
7376
7377 * Make-lang.in, Makefile.in: Remove all references to input.c,
7378 gxx.gperf, and hash.h. Add ../c-lex.o to C_OBJS.
7379 * gxx.gperf, hash.h, input.c: Delete.
7380 * lang-specs.h: Pass -lang-c++ to cc1plus so cpplib is
7381 initialized properly.
7382
7383 * class.c (fixup_pending_inline): Take a tree, not a
7384 struct pending_inline *. All callers changed.
7385 (init_class_processing): Set RID_PUBLIC, RID_PRIVATE,
7386 RID_PROTECTED entries in ridpointers[] array here.
7387 * decl.c (duplicate_decls): Do not refer to struct
7388 pending_inline.
7389 (record_builtin_type, init_decl_processing): Use RID_MAX not
7390 CP_RID_MAX.
7391 (grokdeclarator): Use C_IS_RESERVED_WORD.
7392 * decl2.c (lang_decode_option): Ignore -lang-c++ for sake of
7393 cpplib.
7394 (grok_x_components): Do not inspect pending_inlines chain.
7395
7396 * cp-tree.h (struct lang_identifier): Add rid_code entry.
7397 (C_IS_RESERVED_WORD, C_RID_CODE, C_RID_YYCODE): New.
7398 (flag_no_gnu_keywords, flag_operator_names, rid_to_yy): Declare.
7399 (DEFARG_LENGTH, struct pending_inline, TIME_IDENTIFIER_TIME,
7400 TIME_IDENTIFIER_FILEINFO): Kill.
7401 Update prototypes.
7402 * lex.h: Expunge cp_rid. Rewrite RIDBIT macros to use just a
7403 single 32-bit word.
7404 * parse.y: Call do_pending_inlines unconditionally.
7405 reinit_parse_for_method is now snarf_method. fn.defpen is no
7406 longer necessary. Remove unnecessary <itype> annotation on
7407 SCOPE. Do not refer to end_of_file or struct pending_inline.
7408 * semantics.c (begin_inline_definitions): Call
7409 do_pending_inlines unconditionally.
7410
7411 * lex.c: Remove all code now shared with C front end.
7412 Initialize cpplib properly if USE_CPPLIB. Put reserved words
7413 into the get_identifier table. Rewrite pragma handling to
7414 work with the registry. Move code to save tokens for later
7415 processing to spew.c.
7416
7417 * spew.c: Rewrite everything in terms of token streams instead
7418 of text. Move routines here from lex.c / input.c as
7419 appropriate. GC-mark trees hanging off the pending inlines
7420 chain.
7421
44835fdd
MM
74222000-09-06 Mark Mitchell <mark@codesourcery.com>
7423
7424 * NEWS: Mention that the named return value extension has been
7425 deprecated.
7426 * cp-tree.h (original_result_rtx): Define.
7427 (TREE_REFERENCE_EXPR): Remove.
7428 (DECL_VPARENT): Likewise.
7429 (pushdecl_nonclass_level): Likewise.
7430 (store_return_init): Likewise.
7431 (reinit_lang_specific): Likewise.
7432 (genrtl_named_return_value): Change prototype.
7433 * decl.c (original_result_rtx): Remove.
7434 (cp_finish_decl): Don't build DECL_STMTs for RESULT_DECLs.
7435 Do not generate RTL for local variables here.
7436 (store_return_init): Remove.
7437 * semantics.c (genrtl_named_return_value): Simplify. Fold in
7438 store_return_init.
7439 (finish_named_return_value): Adjust accordingly. Warn that this
7440 extension is deprecated.
7441 (lang_expand_stmt): Adjust call to genrtl_named_return_value.
7442
d7c4edd0
NS
74432000-09-06 Nathan Sidwell <nathan@codesourcery.com>
7444
7445 * pt.c (type_unification_real): Replace switch with if.
7446 (unify): Tsubst non-type parms before comparing.
7447
46e2747c
NS
74482000-09-06 Nathan Sidwell <nathan@codesourcery.com>
7449
7450 * error.c (dump_typename): New function, broken out of ...
7451 (dump_type): ... here. Use it.
7452 * typeck.c (same_type_p): Use cp_tree_equal for TYPENAME_TYPE.
7453
c833d2be
NS
74542000-09-06 Nathan Sidwell <nathan@codesourcery.com>
7455
7456 * init.c (build_offset_ref): Deal with namespace scoped
7457 TEMPLATE_ID_EXPRs.
7458
b1ce3eb2
NS
74592000-09-06 Nathan Sidwell <nathan@codesourcery.com>
7460
7461 * class.c (resolve_address_of_overloaded_function): Add
7462 explanation message.
7463 * decl.c (define_case_label): Reformat explanation.
7464 * decl2.c (finish_static_data_member_decl): Likewise.
7465 (grokfield): Likewise.
7466 * friend.c (do_friend): Likewise.
7467
11f53b6a
ZW
74682000-09-05 Zack Weinberg <zack@wolery.cumb.org>
7469
7470 * tree.c (walk_tree): Expose tail recursion.
7471 (walk_stmt_tree): New function.
7472 * cp-tree.h: Prototype walk_stmt_tree.
7473 * semantics.c (prune_unused_decls): Operate on SCOPE_STMTs not
7474 the BLOCKs directly. If a BLOCK has no variables after
7475 pruning, discard it.
7476 (finish_stmt_tree): Use walk_stmt_tree. No need to save and
7477 restore the line number.
7478
ee94fce6
MM
74792000-09-05 Mark Mitchell <mark@codesourcery.com>
7480
7481 * Makefile.in (CXX_TREE_H): Add dependency on HTAB_H.
7482 (pt.o): Remove dependency on HTAB_H.
7483 * cp-tree.h: Include hashtab.h.
7484 (walk_tree): Change prototype.
7485 (walk_tree_without_duplicates): New function.
7486 * decl.c (check_default_argument): Use it.
7487 * optimize.c (remap_decl): Adjust calls to walk_tree.
7488 (copy_body): Likewise.
7489 (expand_calls_inline): Likewise.
7490 (calls_setjmp_p): Use walk_tree_without_duplicates.
7491 * pt.c: Don't include hashtab.h.
7492 (for_each_template_parm): Use walk_tree_without_duplicates.
7493 * semantics.c (finish-stmt_tree): Likewise.
7494 (expand_body): Likewise.
7495 * tree.c (walk_tree): Add additional parameter.
7496 (walk_tree_without_duplicates): New function.
7497 (count_trees): Use it.
7498 (verify_stmt_tree): Adjust call to walk_tree.
7499 (find_tree): Use walk_tree_without_duplicates.
7500 (no_linkage_check): Likewise.
7501 (break_out_target_exprs): Adjust call to walk_tree.
7502 (cp_unsave): Likewise.
7503
a1281f45
KL
75042000-09-04 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
7505
7506 * cp-tree.def (BOUND_TEMPLATE_TEMPLATE_PARM): New tree code.
7507 (TEMPLATE_TEMPLATE_PARM): Adjust comment.
7508 * cp-tree.h (TYPE_BINFO): Adjust comment.
7509 (TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO): Likewise.
7510 (TEMPLATE_TYPE_PARM_INDEX): Likewise.
7511 (IS_AGGR_TYPE): Use BOUND_TEMPLATE_TEMPLATE_PARM instead.
7512 (TYPE_TEMPLATE_INFO): Likewise.
7513 (TEMPLATE_TEMPLATE_PARM_TEMPLATE_DECL): Likewise.
7514 * class.c (push_nested_class): Likewise.
7515 * decl.c (lookup_name_real): Likewise.
7516 (grokdeclarator): Likewise.
7517 (grok_op_properties): Likewise.
7518 (xref_tag): Likewise.
7519 (xref_basetypes): Likewise.
7520 * decl2.c (constructor_name_full): Likewise.
7521 (arg_assoc_template_arg): Add TEMPLATE_TEMPLATE_PARM case.
7522 (arg_assoc_type): Use BOUND_TEMPLATE_TEMPLATE_PARM instead.
7523 * error.c (dump_type): Split TEMPLATE_TEMPLATE_PARM case.
7524 (dump_type_prefix): Add BOUND_TEMPLATE_TEMPLATE_PARM.
7525 (dump_type_suffix): Likewise.
7526 * init.c (is_aggr_type): Use BOUND_TEMPLATE_TEMPLATE_PARM
7527 instead.
7528 (get_aggr_from_typedef): Likewise.
7529 * mangle.c (write_type): Split TEMPLATE_TEMPLATE_PARM case.
7530 (write_expression): Add BOUND_TEMPLATE_TEMPLATE_PARM.
7531 (write_template_parm): Likewise.
7532 (write_template_template_parm): Check tree code instead of
7533 using TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO.
0e5921e8 7534 * method.c (build_overload_nested_name): Add
a1281f45
KL
7535 BOUND_TEMPLATE_TEMPLATE_PARM.
7536 (process_overload_item): Split TEMPLATE_TEMPLATE_PARM case.
7537 * parse.y (bad_parm): Add BOUND_TEMPLATE_TEMPLATE_PARM.
7538 * pt.c (convert_template_argument): Check tree code instead of
7539 using TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO.
7540 (for_each_template_parm_r): Split TEMPLATE_TEMPLATE_PARM case.
7541 (for_each_template_parm): Adjust comment.
7542 (tsubst): Add BOUND_TEMPLATE_TEMPLATE_PARM. Reorganize.
7543 (tsubst_copy): Add BOUND_TEMPLATE_TEMPLATE_PARM.
7544 (unify): Add BOUND_TEMPLATE_TEMPLATE_PARM. Reorganize. Use
7545 template_args_equal to compare template template parameter cases.
7546 * ptree.c (print_lang_type): Add BOUND_TEMPLATE_TEMPLATE_PARM.
7547 * search.c (lookup_field_1): Use BOUND_TEMPLATE_TEMPLATE_PARM
7548 instead.
7549 * tree.c (copy_template_template_parm): Decide whether to create
7550 a TEMPLATE_TEMPLATE_PARM or BOUND_TEMPLATE_TEMPLATE_PARM node.
7551 (walk_tree): Add BOUND_TEMPLATE_TEMPLATE_PARM.
7552 (copy_tree_r): Likewise.
7553 * typeck.c (comptypes): Likewise. Check tree code instead of
7554 using TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO.
7555
c9672d45
ME
75562000-09-04 Mark Elbrecht <snowball3@bigfoot.com>
7557
7558 * decl.c (finish_function): Move the code for handling functions
7559 marked with the constructor and destructor attributes inside the
7560 expand_p block.
7561
67804825
NS
75622000-09-04 Nathan Sidwell <nathan@codesourcery.com>
7563
7564 * init.c (resolve_offset_ref): Deal with TEMPLATE_ID_EXPR.
7565
1bc0793e
NS
75662000-09-04 Nathan Sidwell <nathan@codesourcery.com>
7567
7568 * pt.c (lookup_template_class): Remove abort.
7569 * tree.c (get_type_decl): Allow error_mark_node.
7570
3338663b
NS
75712000-09-04 Nathan Sidwell <nathan@codesourcery.com>
7572
7573 * decl2.c (arg_assoc): Deal with COMPONENT_REFs inside
7574 TEMPLATE_ID_EXPRs.
7575
1b84dc37
MM
75762000-09-03 Mark Mitchell <mark@codesourcery.com>
7577
7578 * operators.def (ALIGNOF_EXPR, MAX_EXPR, MIN_EXPR): Change
c9672d45 7579 new ABI mangling.
1b84dc37 7580
9687f8f4
NS
75812000-09-01 Nathan Sidwell <nathan@codesourcery.com>
7582
7583 * parse.y (named_class_head): Check for TYPENAME_TYPE. Simplify
c9672d45 7584 union tag mismatch error reporting.
9687f8f4 7585
4f8025eb
NS
75862000-09-01 Nathan Sidwell <nathan@codesourcery.com>
7587
c9672d45 7588 * call.c (build_scoped_method_call): Check it is not a namespace.
4f8025eb 7589
495d26d6
JM
75902000-08-30 Jason Merrill <jason@redhat.com>
7591
7592 * cp-tree.h (LOCAL_CLASS_P): Use decl_function_context.
7593
7594 * tree.c (bot_manip): Check TREE_CONSTANT rather than
7595 !TREE_SIDE_EFFECTS. Call break_out_target_exprs and
7596 build_target_expr_with_type for the non-AGGR_INIT_EXPR case.
7597
7598 * decl.c (start_function): Always call make_function_rtl.
7599
7efcf466
ZW
76002000-08-29 Zack Weinberg <zack@wolery.cumb.org>
7601
495d26d6 7602 * semantics.c (prune_unused_decls): New function.
7efcf466
ZW
7603 (finish_stmt_tree): Call it via walk_tree.
7604
63ad61ed
ZW
76052000-08-29 Zack Weinberg <zack@wolery.cumb.org>
7606
7607 * class.c (build_secondary_vtable): Constify a char *.
7608 * decl.c (init_decl_processing): Initialize function_id_node,
7609 pretty_function_id_node, and func_id_node.
7610 * input.c (struct input_source): Constify 'str'.
7611 (feed_input): Constify first argument.
7612 * mangle.c (write_identifier): Constify argument.
7613 * pt.c (mangle_class_name_for_template): Constify argument.
7614
4361b41d
MM
76152000-08-29 Mark Mitchell <mark@codesourcery.com>
7616
7617 * typeck.c (mark_addressable): Remove code that pokes around in
7618 RTL.
7619
881c6935
JM
76202000-08-28 Jason Merrill <jason@redhat.com>
7621
7622 * lex.c (file_name_nondirectory): Move to toplev.c.
7623
7624 * cp-tree.h (LOCAL_CLASS_P): New macro.
7625 * class.c (finish_struct_1): Use it.
7626
f0f33848
AS
76272000-08-27 Alex Samuel <samuel@codesourcery.com>
7628
7629 * mangle.c (CLASSTYPE_TEMPLATE_ID_P): Remove unexplained voodoo.
7630 (write_encoding): Pass another argument to write_name.
7631 (write_name): Add ignore_local_scope parameter. Fix handling of
7632 local names.
7633 (write_nested_name): Use write_unqualified_name.
7634 (write_prefix): Likewise. Skip out on FUNCTION_DECLs.
7635 (write_template_prefix): Use write_unqualified_name.
7636 (write_component): Remove.
7637 (write_local_name): Add parameter. Use direct local entity to
7638 discriminator calculation.
0e5921e8 7639 (write_class_enum_type): Pass another argument to write_name.
f0f33848
AS
7640 (write_template_template_arg): Likewise.
7641 (make_guard_variable): Likewise.
0e5921e8 7642
94dfccd1
JM
76432000-08-27 Jason Merrill <jason@redhat.com>
7644
7645 * decl.c (pushdecl): Matching decls for local externs are found in
7646 the current level. Propagate linkage information from previous
7647 declarations.
7648
14fdf4b6
GDR
76492000-08-26 Gabriel Dos Reis <gdr@codesourcery.com>
7650
7651 * ir.texi (Expressions): Fix typo.
7652
b5232c64
GM
76532000-08-25 Greg McGary <greg@mcgary.org>
7654
7655 * tree.c (init_tree): Use ARRAY_SIZE.
7656
22a4158c
GDR
76572000-08-25 Gabriel Dos Reis <gdr@codesourcery.com>
7658
7659 * error.c (cp_tree_printer): Rework.
7660
f22967f3
MM
76612000-08-25 Mark Mitchell <mark@codesourcery.com>
7662
a0c182fe
MM
7663 * Make-lang.in (CXX_LIB2FUNCS): Remove cp-demangle.o and
7664 dyn-string.o.
7665 (CXX_LIB2SRCS): Remove cp-demangle.c and dyn-string.c.
7666 (cp-demangle.o): Remove target.
7667 (dyn-string.o): Likewise.
7668
f22967f3
MM
7669 * decl.c (grokfndecl): Require that `main' return an `int'.
7670 * mangle.c (write_encoding): Don't mangle return types for
7671 conversion functions.
7672
a1066c99
GDR
76732000-08-25 Gabriel Dos Reis <gdr@codesourcery.com>
7674
7675 * error.c (tree_formatting_info): New data type.
7676 (tree_being_formatted): New macro.
7677 (tree_formatting_flags): Likewise.
7678 (put_whitespace): Likewise.
7679 (print_tree_identifier): Likewise.
7680 (print_identifier): Likewise.
7681 (cp_tree_printer, print_function_argument_list, print_declaration,
7682 print_expression, print_function_declaration,
7683 print_function_parameter, print_type, print_cv_qualifier): New
0e5921e8 7684 functions.
a1066c99
GDR
7685 (init_error): Initialize lang_printer.
7686
3f2b640a
JM
76872000-08-24 Jason Merrill <jason@redhat.com>
7688
7689 * typeck.c (build_ptrmemfunc): Just reinterpret if there's no
7690 adjustment necessary.
7691
7ec09bf7
GM
76922000-08-24 Greg McGary <greg@mcgary.org>
7693
7694 * cp-tree.h (MAIN_NAME_P): Remove macro.
7695
2ab99c46
GDR
76962000-08-24 Gabriel Dos Reis <gdr@codesourcery.com>
7697
7698 * error.c (print_instantiation_context): Don't forget to flush the
7699 buffer.
7700
7def1251
JM
77012000-08-23 Jason Merrill <jason@redhat.com>
7702
7703 * typeck.c (build_ptrmemfunc): Save the input pmf.
7704
7705 * method.c (process_modifiers): Use same_type_p.
7706
94350948
MM
77072000-08-23 Mark Mitchell <mark@codesourcery.com>
7708
7709 * cp-tree.h (DECL_CLONED_FUNCTION_P): Check DECL_LANG_SPECIFIC.
7710 * mangle.c (write_function_type): Change prototype.
7711 (write_encoding): Don't mangle return types for
7712 constructors or destructors.
7713 (write_type): Adjust call to write_function_type.
7714 * pt.c (instantiate_template): Instantiate alternate entry points
7715 when instantiating the main function.
0e5921e8 7716
a64e7329
GDR
77172000-08-23 Gabriel Dos Reis <gdr@codesourcery.com>
7718
7719 * error.c (cp_print_error_function): Don't use embedded '\n' in
0e5921e8 7720 output_printf.
a64e7329 7721
a72462a4
GDR
77222000-08-23 Gabriel Dos Reis <gdr@codesourcery.com>
7723
7724 * decl.c (init_decl_processing): Remove bogus initialization.
7725 * error.c (lang_print_error_function): Restore here.
0e5921e8
ZW
7726 (init_error): Initialize print_error_function.
7727
3add6264
TP
77282000-08-22 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
7729
7730 * decl2.c (arg_assoc): Revert my 2000-08-11 change.
7731
cb753e49
GDR
77322000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
7733
7734 * Makefile.in (error.o): Depends on diagnostic.h
7735
7736 * cp-tree.h (problematic_instantiation_changed,
7737 record_last_problematic_instantiation, current_instantiation,
7738 print_instantiation_context): Declare.
7739 (maybe_print_template_context): Remove.
7740
7741 * decl.c (init_decl_processing): Set print_error_function to NULL.
7742 (lang_print_error_function): Remove, since we're using a new
7743 machinery.
7744
7745 * error.c: #include diagnostic.h
7746 (function_category): New function.
7747 (cp_diagnostic_starter): Likewise.
7748 (cp_diagnostic_finalizer): Likewise.
7749 (cp_print_error_function): Likewise.
7750 (maybe_print_instantiation_context): Likewise.
7751 (print_instantiation_full_context): Likewise.
7752 (print_instantiation_partial_context): Likewise.
7753 (print_instantiation_context): Define.
7754 (init_error): Initialize diagnostic pager and finalizer.
7755
7756 * pt.c (problematic_instantiation_changed): Define.
7757 (record_last_problematic_instantiation): Likewise.
7758 (current_instantiation): Likewise.
7759 (maybe_print_template_context): Remove.
7760 (print_template_context): Likewise.
7761 (current_tinst_level): Make static to reflect Brendan Kehoe's
7762 change of 1995-04-13.
0e5921e8
ZW
7763 (push_tinst_level): Call print_instantiation_context.
7764
05a3d06e 77652000-08-21 Nix <nix@esperi.demon.co.uk>
0e5921e8 7766
05a3d06e
N
7767 * lang-specs.h: Do not process -o or run the assembler if
7768 -fsyntax-only.
7769
93e2382f
JM
77702000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
7771
7772 * decl.c (flag_hosted, flag_noniso_default_format_attributes): New
7773 variables.
7774 * decl2.c (lang_decode_option): Disable gettext attributes for
7775 -ansi.
7776
24805e80
GDR
77772000-08-21 Gabriel Dos Reis <gdr@codesourcery.com>
7778
7779 * lex.c (lang_init_options): Default diagnostic message maximum
7780 length to 80, when line-wrapping.
7781
b485e15b
MM
77822000-08-20 Mark Mitchell <mark@codesourcery.com>
7783
7784 * class.c (build_vtbl_initializer): Clear the entire
7785 vtbl_init_data. Start keeping track of the functions for which we
7786 have created vcall offsets here.
7787 (dfs_build_vcall_offset_vtbl_entries): Remove.
7788 (build_vcall_offset_vtbl_entries): Reimplement.
7789 (add_vcall_offset_vtbl_entries_r): New function.
7790 (add_vcall_offset_vtbl_entries_1): Likewise. Tweak logic for
7791 computing when vcall offsets are necessary.
7792
2ae7bada
NS
77932000-08-18 Nathan Sidwell <nathan@codesourcery.com>
7794
7795 * decl.c (member_function_or_else): Use cp_error ... %T.
7796 (grokdeclarator): Likewise.
7797 (start_method): Likewise.
0e5921e8 7798 * friend.c (make_friend_class): Use cp_pedwarn ... %T.
2ae7bada 7799
7a8b1375
NS
78002000-08-18 Nathan Sidwell <nathan@codesourcery.com>
7801
7802 * decl2.c (grokfield): Set CLASSTYPE_GOT_SEMICOLON on class
0e5921e8 7803 TYPE_DECLs.
7a8b1375 7804
19420d00
NS
78052000-08-18 Nathan Sidwell <nathan@codesourcery.com>
7806
7807 * cp-tree.h (PTRMEM_OK_P): New macro.
7808 (itf_ptrmem_ok): New enumeration value.
7809 * class.c (resolve_address_of_overloaded_function): Add PTRMEM
7810 argument. Diagnose implicit pointer to member.
7811 (instantiate_type): Don't diagnose implicit pointer to member
7812 here. Pass itf_ptrmem_ok if ok. Adjust calls to
7813 resolve_address_of_overloaded_function.
7814 * init.c (build_offset_ref): Set PTRMEM_OK_P.
7815 (resolve_offset_ref): Don't diagnose implicit pointer to member here.
7816 * semantics.c (finish_parenthesized_expr): Clear OFFSET_REFs here.
7817 * typeck.c (build_x_unary_op): Calculate PTRMEM_OK_P.
7818 (build_unary_op): Deal with single non-static member in
7819 microsoft-land.
7820
66081283
NS
78212000-08-18 Nathan Sidwell <nathan@codesourcery.com>
7822
7823 * decl2.c (arg_assoc_type): Cope with TYPENAME_TYPE.
7824
fa40aa12
NS
78252000-08-18 Nathan Sidwell <nathan@codesourcery.com>
7826
7827 * cp-tree.h (enum_name_string): Remove prototype.
7828 (report_case_error): Remove prototype.
7829 * cp/typeck2.c (enum_name_string): Remove.
7830 (report_case_error): Remove.
7831 * error.c (dump_expr): Deal with enum values directly.
7832 Correctly negate integer constant.
7833
d13b34e9
NS
78342000-08-17 Nathan Sidwell <nathan@codesourcery.com>
7835
7836 * inc/cxxabi.h (__cxa_vec_new2, __cxa_vec_new3): Declare.
7837 (__cxa_vec_delete2, __cxa_vec_delete3): Declare.
7838 * vec.cc (__cxa_vec_new2, __cxa_vec_new3): Implement.
7839 (__cxa_vec_delete2, __cxa_vec_delete3): Implement.
7840 (__cxa_vec_new): Use __cxa_vec_new2.
7841 (__cxa_vec_delete): Use __cxa_vec_delete2.
7842
2f1b80af
NS
78432000-08-17 Nathan Sidwell <nathan@codesourcery.com>
7844
7845 * vec.cc (__cxa_vec_new): Set "C" linkage.
7846 (__cxa_vec_ctor): Likewise.
7847 (__cxa_vec_cctor): Likewise.
7848 (__cxa_vec_dtor): Likewise.
7849 (__cxa_vec_delete): Likewise.
7850 * inc/cxxabi.h (__cxa_vec_new): Set "C" linkage.
7851 (__cxa_vec_ctor): Likewise.
7852 (__cxa_vec_cctor): Likewise.
7853 (__cxa_vec_dtor): Likewise.
7854 (__cxa_vec_delete): Likewise.
7855
105d8e1f
NS
78562000-08-17 Nathan Sidwell <nathan@codesourcery.com>
7857
7858 * class.c (instantiate_type): Reinstate local variable
7859 deleted in previous change.
0e5921e8 7860
f1819d9a
NS
7861 * cvt.c (cp_convert_to_pointer): Pass itf_complain, not
7862 itf_no_attributes.
105d8e1f 7863
5e76004e
NS
78642000-08-17 Nathan Sidwell <nathan@codesourcery.com>
7865
7866 * cp-tree.h (instantiate_type_flags): New enumeration.
7867 (instantiate_type): Change parameter.
7868 * class.c (instantiate_type): Adjust prototype. Adjust.
7869 * call.c (standard_conversion): Adjust instantiate_type call.
7870 (reference_binding): Likewise.
7871 (build_op_delete_call): Likewise.
7872 (convert_like_real): Likewise.
7873 * cvt.c (cp_convert_to_pointer): Likewise.
7874 (convert_to_reference): Likewise.
7875 * pt.c (convert_nontype_argument): Likewise.
7876 * typeck.c (build_binary_op): Likewise.
7877 (build_ptrmemfunc): Likewise.
7878 (convert_for_assignment): Likewise.
7879
4b054b80
NS
78802000-08-17 Nathan Sidwell <nathan@codesourcery.com>
7881
7882 * cp-tree.h (CPTR_AGGR_TAG): New global tree node.
7883 (current_aggr): Define.
7884 * decl.c (grokdeclarator): Make sure a friend class is an
7885 elaborated type specifier.
7886 * parse.y (current_aggr): Remove static definition.
7887 (cp_parse_init): Adjust.
7888 (structsp): Clear and restore current_aggr.
7889 (component_decl_list): Clear current_aggr.
0e5921e8 7890
4b054b80
NS
7891 * error.c (dump_type, case TYPENAME_TYPE): Don't emit the
7892 aggregate tag on the typename's context.
0e5921e8 7893
321cba97
NS
7894 * pt.c (tsubst_friend_class): Return error_mark_node, if
7895 parms becomes NULL.
7896 (instantiate_class_template): Ignore error_mark_node friend types.
4b054b80 7897
08aead78
NS
78982000-08-14 Nathan Sidwell <nathan@codesourcery.com>
7899
7900 * cvt.c (warn_ref_binding): New static function, broken out of ...
0e5921e8 7901 (convert_to_reference): ... here. Use it.
08aead78 7902
fa1f3ebc
KL
79032000-08-11 Kriang Lerdsuwanakij <lerdsuwa@scf-fs.usc.edu>
7904
7905 * parse.y (template_arg): Add rule for template qualified with
7906 global scope.
7907
9845b52b
TP
79082000-08-11 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
7909
7910 * decl2.c (add_function): Reorganize.
7911 (arg_assoc): Do not consider function template decls.
7912
e69c8072
JM
79132000-08-11 Jason Merrill <jason@redhat.com>
7914
7915 * decl.c (lookup_name_real): Don't forget the TYPENAME_TYPE we're
7916 looking inside.
7917
5c1e5476
NS
79182000-08-11 Nathan Sidwell <nathan@codesourcery.com>
7919
7920 * cp-tree.h (resolve_scope_to_name): Remove unused prototype.
7921 (lookup_nested_tag): Likewise.
0e5921e8 7922
5c1e5476
NS
7923 * decl2.c (grokfield): Fix comment to reflect many types of _DECLs
7924 can be produced.
7925
5426aa7f
NS
79262000-08-11 Nathan Sidwell <nathan@codesourcery.com>
7927
7928 * parse.y (named_complex_class_head_sans_basetype): Remove
7929 always true if.
7930
fd037e0d
NS
79312000-08-11 Nathan Sidwell <nathan@codesourcery.com>
7932
7933 * decl2.c (build_expr_from_tree, case METHOD_CALL_EXPR): Build
7934 explicit TEMPLATE_ID_EXPR args.
7935 (build_expr_from_tree, case CALL_EXPR): Likewise.
7936
73ae5c34
NS
79372000-08-11 Nathan Sidwell <nathan@codesourcery.com>
7938
7939 * decl.c (check_tag_decl): Diagnose typename's which don't
7940 declare anything.
7941
aa54df09
NS
79422000-08-10 Nathan Sidwell <nathan@codesourcery.com>
7943
7944 * init.c (build_aggr_init): Reject bogus array initializers
7945 early.
7946
7e8dad18
NS
79472000-08-09 Nathan Sidwell <nathan@codesourcery.com>
7948
7949 * rtti.c (build_dynamic_cast_1): Set "C" linkage for new abi
7950 runtime.
7951 * cp/tinfo.cc (__dynamic_cast): Likewise.
0e5921e8 7952 * cp/inc/cxxabi.h (__dynamic_cast): Likewise.
7e8dad18 7953
0f586b9b
NS
79542000-08-09 Nathan Sidwell <nathan@codesourcery.com>
7955
7956 * cvt.c (convert_to_pointer_force): Fix error message when
0e5921e8 7957 attempting to cast from ambiguous base.
0f586b9b 7958
08e72a19
JM
79592000-08-08 Jason Merrill <jason@redhat.com>
7960
7961 * pt.c (tsubst_aggr_type): Bail if creating the argvec fails.
7962 (tsubst_template_arg_vector): Likewise.
7963
7964 * decl2.c (build_anon_union_vars): Choose the largest field; don't
7965 assume that one will be as large as the union.
7966
0811ea8f
KH
79672000-08-07 Kazu Hirata <kazu@hxi.com>
7968
7969 * cp-tree.h (CLASSTYPE_HAS_PRIMARY_BASE_P): Fix a comment typo.
7970 * decl.c (pop_labels): Likewise.
7971
f9fcf62b
JO
79722000-08-04 Jeffrey Oldham <oldham@codesourcery.com>
7973
7974 * inc/cxxabi.h (__pbase_type_info): Changed member names to match
7975 specifications.
7976 (__pointer_to_member_type_info): Likewise.
7977 (__base_class_info): Likewise.
7978 (__class_type_info): Likewise.
7979 (__si_class_type_info): Likewise.
7980 (__vmi_class_type_info): Likewise.
7981 * tinfo.cc (__si_class_type_info::__do_find_public_src):
7982 Changed member names to match specifications.
7983 (__vmi_class_type_info::__do_find_public_src): Likewise.
7984 (__si_class_type_info::__do_dyncast): Likewise.
7985 (__vmi_class_type_info::__do_dyncast): Likewise.
7986 (__si_class_type_info::__do_upcast): Likewise.
7987 (__vmi_class_type_info::__do_upcast): Likewise.
7988 * tinfo2.cc (__pbase_type_info::__do_catch): Likewise.
7989 (__pbase_type_info::__pointer_catch): Likewise.
7990 (__pointer_type_info::__pointer_catch): Likewise.
7991 (__pointer_to_member_type_info::__pointer_catch): Likewise.
7992
a36556a8
ZW
79932000-08-04 Zack Weinberg <zack@wolery.cumb.org>
7994
0e5921e8
ZW
7995 * Make-lang.in (cc1plus): Depend on $(BACKEND), not stamp-objlist.
7996 * Makefile.in: Add C_OBJS, BACKEND; delete OBJS, OBJDEPS.
7997 (cc1plus): Link with $(BACKEND) and $(C_OBJS).
a36556a8 7998
452a394b
MM
79992000-08-04 Mark Mitchell <mark@codesourcery.com>
8000
8001 * cp-tree.h (add_method): Change prototype.
8002 * class.c (add_method): Remove FIELDS parameter. Add ERROR_P.
8003 Don't double the size of the method vector in the error case.
8004 (handle_using_decl): Adjust call to add_method.
8005 (add_implicitly_declared_members): Likewise.
8006 (clone_function_decl): Likewise.
8007 * decl2.c (check_classfn): Likewise.
8008 * semantics.c (finish_member_declaration): Likewise.
0e5921e8 8009
b8458e3e
JM
80102000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
8011
8012 * decl.c (flag_isoc94): New variable.
8013
a1bcc528
JM
80142000-08-02 Jason Merrill <jason@redhat.com>
8015
8016 * pt.c (do_type_instantiation): Add complain parm; don't complain
8017 if called recursively.
8018 * cp-tree.h, parse.y: Adjust.
8019
50e60bc3
ZW
80202000-08-02 Zack Weinberg <zack@wolery.cumb.org>
8021
eae51189
ZW
8022 * decl2.c: Silently ignore -Wstrict-prototypes; warn about
8023 -Wno-strict-prototypes.
8024
37620334
ZW
8025 * g++spec.c: Adjust type of second argument to
8026 lang_specific_driver, and update code as necessary.
8027
50e60bc3
ZW
8028 * cp-tree.h: Don't prototype min_precision here.
8029 (my_friendly_assert): Cast expression to void.
8030 * semantics.c (do_poplevel): Initialize scope_stmts.
8031
3f954fc3
MM
80322000-08-02 Mark Mitchell <mark@codesourcery.com>
8033
8034 * cp-tree.h (DECL_NEEDED_P): Tweak.
8035
ab4fa7ed
JM
80362000-07-28 Jason Merrill <jason@redhat.com>
8037
8038 * lang-specs.h: Use %i in rule for .ii files.
8039
4871239e
ZW
80402000-07-31 Zack Weinberg <zack@wolery.cumb.org>
8041
8042 * lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0.
8043
911a71a7
MM
80442000-07-30 Mark Mitchell <mark@codesourcery.com>
8045
8046 Allow indirect primary bases.
8047 * cp-tree.h (struct lang_type): Remove vfield_parent. Add
8048 primary_base.
8049 (CLASSTYPE_VFIELD_PARENT): Remove.
8050 (CLASSTYPE_PRIMARY_BINFO): Reimplement.
8051 (BINFO_PRIMARY_BINFO): Remove.
8052 (CLASSTYPE_HAS_PRIMARY_BASE_P): Reimplement.
8053 (BINFO_VBASE_PRIMARY_P): Likewise.
8054 (BINFO_PRIMARY_BASE_OF): New macro.
8055 (BINFO_INDIRECT_PRIMARY_P): Likewise.
8056 (get_primary_binfo): New function.
8057 * decl.c (lang_mark_tree): Make lang_type::primary_base.
8058 * class.c (vcall_offset_data_s): Rename to ...
8059 (vtbl_init_data_s): ... this. Rename primary_p to primary_vtbl_p,
8060 and add ctor_vtbl_p.
8061 (get_derived_offset): Use get_primary_binfo.
8062 (dfs_mark_primary_bases): Adjust handling of virtual primary
8063 bases.
8064 (mark_primary_bases): Likewise.
8065 (set_primary_base): Take a binfo, not an integer, as a
8066 representation of the primary base.
8067 (indirect_primary_base_p): Remove.
8068 (determine_primary_base): Adjust for indirect primary bases.
8069 (dfs_find_final_overrider): Fix typo in coment.
8070 (update_vtable_entry_for_fn): Use get_primary_binfo.
8071 (layout_nonempty_base_or_field): Tweak.
8072 (build_base_fields): Adjust for new primary base semantics.
8073 (dfs_propagate_binfo_offsets): Remove.
8074 (propagate_binfo_offsets): Rewrite.
8075 (dfs_set_offset_for_shared_vbases): Remove.
8076 (layout_virtual_bases): Don't use it.
8077 (layout_class_type): Set CLASSTYPE_SIZE correctly under the new
8078 ABI.
8079 (finish_struct_1): Set CLASSTYPE_PRIMARY_BINFO, not
8080 CLASSTYPE_VFIELD_PARENT.
8081 (dfs_get_primary_binfo): New function.
8082 (get_primary_binfo): Likewise.
8083 (dump_class_hierarchy_r): Tweak printing of primary bases.
8084 (build_vtbl_initializer): Fix typo in comments. Use
8085 vtbl_init_data.
8086 (build_vcall_and_vbase_vtbl_entries): Likewise.
8087 (build_vbaes_offset_vtbl_entries): Likewise.
8088 (dfs_build_vcall_offset_vtbl_entries): Adjust setting of
8089 BV_VCALL_INDEX to handle indirect primary bases.
8090 (build_vcall_offset_vtbl_entries): Use vtbl_init_data.
8091 (build_rtti_vtbl_entries): Likewise.
8092 * search.c (get_shared_vbase_if_not_primary): Tweak.
8093 (find_vbase_instance): Likewise.
8094 (binfo_for_vtable): Simplify.
8095 * tree.c (unshare_base_binfos): Clear BINFO_PRIMARY_BASE_OF.
8096 (make_binfo): Make it have 11 entries.
0e5921e8 8097
722bed0f
AS
80982000-07-30 Alex Samuel <samuel@codesourcery.com>
8099
8100 * mangle.c (DECL_TEMPLATE_ID_P): Remove.
8101 (CLASSTYEP_TEMPLATE_ID_P): Check template info, and context when
8102 ascertaining primaryness.
8103 (G): Remove template_args.
8104 (decl_is_template_id): New function.
8105 (write_encoding): Use decl_is_template_id.
8106 (write_name): Likewise. Handle type_decls. Get main variant of
8107 type decls.
8108 (write_nested_name): Likewise.
8109 (write_prefix): Likewise.
8110 (write_template_prefix): Likewise.
8111 (write_special_name_constructor): Remove defunct production from
8112 comment.
8113 (write_bare_function_type): Remove comment about absent parameter.
8114 (write_template_template_arg): Add missing grammar production to
8115 comment.
8116
9076e292
JM
81172000-07-27 Jason Merrill <jason@redhat.com>
8118
8119 * decl.c (duplicate_decls): If common_type produces a non-typedef
8120 type for a typedef, just use the old type.
8121
b2244c65
MM
81222000-07-27 Mark Mitchell <mark@codesourcery.com>
8123
8124 * cp-tree.h (function_depth): Declare.
8125 (verify_stmt_tree): Likewise.
8126 (find_tree): Likewise.
8127 * decl.c (function_depth): Give it external linkage.
8128 * optimize.c (optimize_function): Increment and decrement it.
8129 * tree.c (verify_stmt_tree_r): New function.
8130 (verify_stmt_tree): Likewise.
8131 (find_tree_r): Likewise.
8132 (find_tree): Likewise.
8133
62e3bf54
JM
81342000-07-27 Jason Merrill <jason@redhat.com>
8135
9076e292
JM
8136 * pt.c (for_each_template_parm_r, case RECORD_TYPE): Use
8137 TYPE_PTRMEMFUNC_P.
8138 * cp-tree.h (TYPE_TEMPLATE_INFO): Check for TYPE_LANG_SPECIFIC.
62e3bf54 8139
5a728aca
MM
81402000-07-26 Mark Mitchell <mark@codesourcery.com>
8141
8142 * decl.c (start_cleanup_fn): Mark the function as `inline'.
8143 * decl2.c (get_guard): Call cp_finish_decl, not
8144 rest_of_decl_compilation, for local guards.
8145 * lex.c (do_identifier): Remove unused variable.
8146
6a1fa5f9
ME
8147Wed Jul 26 15:05:51 CEST 2000 Marc Espie <espie@cvs.openbsd.org>
8148
8149 * parse.y: Add missing ';'.
8150
0c10a805
MM
81512000-07-26 Mark Mitchell <mark@codesourcery.com>
8152
8153 * parse.y (empty_parms): Use `()', not `(...)', when in the scope
8154 of `extern "C++"'.
8155
8b27e9ef
NS
81562000-07-25 Nathan Sidwell <nathan@codesourcery.com>
8157
8158 Kill strict_prototype. Backwards compatibility only for
8159 non NO_IMPLICIT_EXTERN_C systems.
8160 * cp-tree.h (flag_strict_prototype): Remove.
8161 (strict_prototype): Remove.
8162 (strict_prototypes_lang_c, strict_prototypes_lang_cplusplus): Remove.
8163 * decl.c (maybe_push_to_top_level): Adjust.
8164 (pop_from_top_level): Adjust.
8165 (decls_match): Only allow sloppy parm matching for ancient
8166 system headers.
8167 (init_decl_processing): Adjust.
8168 (grokdeclarator): Adjust.
8169 * decl2.c (flag_strict_prototype): Remove.
8170 (strict_prototype): Remove.
8171 (strict_prototypes_lang_c, strict_prototypes_lang_cplusplus): Remove.
8172 (lang_f_options): Remove "strict-prototype".
8173 (unsupported-options): Add "strict-prototype".
8174 * lex.c (do_identifier): Adjust.
8175 (do_scoped_id): Adjust.
8176 * parse.y (empty_parms): Adjust.
8177 * class.c (push_lang_context): Adjust.
8178 (pop_lang_context): Adjust.
8179 * typeck.c (comp_target_parms): Adjust.
8180
c3783399
NS
81812000-07-25 Nathan Sidwell <nathan@codesourcery.com>
8182
8183 * decl.c (poplevel): Deal with anonymous variables at for scope.
8184 (maybe_inject_for_scope_var): Likewise.
8185
a7023245
ZW
81862000-07-25 Zack Weinberg <zack@wolery.cumb.org>
8187
8188 * decl.c: Remove all signal handling code, now done in toplev.c.
8189
95ee998c
MM
81902000-07-23 Mark Mitchell <mark@codesourcery.com>
8191
8192 * decl.c (make_rtl_for_nonlocal_decl): Rework.
8193
8194 * pt.c (lookup_template_class): Ensure that TYPE_CONTEXT is set
8195 correctly.
8196
1b493b81
ZW
81972000-07-20 Zack Weinberg <zack@wolery.cumb.org>
8198
8199 * cp-tree.h: Use __FUNCTION__ not __PRETTY_FUNCTION__.
8200 Define my_friendly_assert and my_friendly_abort as macros
8201 which may call friendly_abort. Prototype friendly abort, not
8202 my_friendly_abort or my_friendly_assert.
8203 * decl.c (signal_catch): Report the signal caught in the error
8204 message. Call fatal directly.
8205 * typeck2.c (ack, my_friendly_assert): Delete.
8206 (my_friendly_abort): Rename to friendly_abort. Expect file,
8207 line, and function parameters. Report the abort code, then
8208 call fancy_abort. Do not mask an abort if errors have
8209 already occurred.
8210
a306451c
NS
82112000-07-18 Nathan Sidwell <nathan@codesourcery.com>
8212
8213 * typeck.c (comp_target_parms): Remove obsolete parameter.
8214 (comp_target_types): Adjust.
8215
f49fad00
JM
82162000-07-17 Jason Merrill <jason@redhat.com>
8217
8218 * typeck.c (mark_addressable): Never set TREE_USED.
8219 * call.c (build_call): Don't abort on calls to library functions
8220 that have been declared normally.
8221
8222 * typeck.c (build_binary_op): Fix grammar in warning.
8223
8224 * exception.cc (__eh_free): Fix prototype.
8225
8226 * decl2.c (finish_decl_parsing): Handle TEMPLATE_ID_EXPR.
8227
0e5921e8 8228 * decl.c (pushdecl): Handle seeing an OVERLOAD in
f49fad00
JM
8229 IDENTIFIER_NAMESPACE_VALUE.
8230
69690d98
MM
82312000-07-16 Mark Mitchell <mark@codesourcery.com>
8232
8233 * cp-tree.h (THUNK_VCALL_OFFSET): Update documentation.
8234 * method.c (use_thunk): Correct handling of vcall offsets.
8235
bfbbc080
ZW
82362000-07-14 Zack Weinberg <zack@wolery.cumb.org>
8237
8238 * .cvsignore: parse.h and parse.c have no cp- prefix.
8239
83a90717
MM
82402000-07-13 Mark Mitchell <mark@codesourcery.com>
8241
8242 * .cvsignore: New file.
8243
ea414c97
ZW
82442000-07-13 Zack Weinberg <zack@wolery.cumb.org>
8245
8246 * lang-specs.h: Use the new named specs. Remove unnecessary braces.
8247
792abd35
MM
82482000-07-12 Mark Mitchell <mark@codesourcery.com>
8249
8250 * Makefile.in ($(PARSE_H)): Depend directly on parse.y.
8251 * parse.c: Remove.
8252 * parse.h: Likewise.
8253
72a50ab0
MM
82542000-07-11 Mark Mitchell <mark@codesourcery.com>
8255
8256 * class.c (layout_class_type): Add pointers to virtual bases after
8257 base classes under the old ABI.
8258
0dfdeca6
BC
82592000-07-10 Benjamin Chelf <chelf@codesourcery.com>
8260
8261 * semantics.c (finish_for_stmt): Remove call to emit_line_note.
8262 (finish_continue_stmt): Likewise.
8263 (begin_for_stmt): Remove call to note_level_for_for.
8264 (finish_goto_stmt): Change call from build_min_nt
8265 to build_stmt.
8266 (finish_expr_stmt): Likewise.
8267 (begin_if_stmt): Likewise.
8268 (begin_while_stmt): Likewise.
8269 (finish_while_stmt): Likewise.
8270 (finish_return_stmt): Likewise.
8271 (begin_for_stmt): Likewise.
8272 (finish_for_stmt): Likewise.
8273 (finish_break_stmt): Likewise.
8274 (begin_switch_stmt): Likewise.
8275 (finish_case_label): Likewise.
8276 (genrtl_try_block): Likewise.
8277 (begin_try_block): Likewise.
8278 (begin_handler): Likewise.
8279 (begin_compound_stmt): Likewise.
8280 (finish_asm_stmt): Likewise.
8281 (finish_label_stmt): Likewise.
8282 (add_decl_stmt): Likewise.
8283 (finish_subobject): Likewise.
8284 (finish_decl_cleanup): Likewise.
8285 (finish_named_return_value): Likewise.
8286 (setup_vtbl_ptr): Likewise.
8287 (add_scope_stmt): Likewise.
8288 * decl.c (finish_constructor_body): Likewise.
8289 (finish_destructor_body): Likewise.
8290 * optimize.c (copy_body_r): Likewise.
8291 (initialize_inlined_parameters): Likewise.
8292 (declare_return_variable): Likewise.
8293 (expand_call_inline): Likewise.
0e5921e8 8294
f12eef58
JJ
82952000-07-10 Jakub Jelinek <jakub@redhat.com>
8296
8297 * semantics.c (expand_body): Sync interface information
8298 at the end of function body expansion.
8299
2bb5d995
JM
83002000-07-09 Jason Merrill <jason@redhat.com>
8301
8302 * init.c (build_new_1): Bail early if the call to new fails.
8303
0e5921e8 8304 * decl.c (compute_array_index_type): Check specifically for
2bb5d995
JM
8305 an INTEGER_CST, not just TREE_CONSTANT.
8306
0e5921e8 8307 * decl.c (duplicate_decls): Don't call duplicate_decls on
2bb5d995
JM
8308 the DECL_TEMPLATE_RESULT.
8309 (decls_match): Return 0 if the DECL_TEMPLATE_RESULTs have different
8310 codes.
8311
8312 * error.c (dump_template_bindings): Don't crash if we had an
8313 invalid argument list.
8314
8315 * typeck.c (c_expand_start_case): Do narrowing here.
8316 * semantics.c (finish_switch_cond): Not here.
8317
83182000-07-09 Hidvegi Zoli <hzoli@austin.ibm.com>
8319
8320 * parse.y (asm_clobbers): Do string concatenation.
8321
089acd57
MM
83222000-07-09 Mark Mitchell <mark@codesourcery.com>
8323
8324 * decl.c (pushtag): Don't put local classes in template functions
8325 on the local_classes list.
8326
83272000-07-04 Scott Snyder <snyder@fnal.gov>
8328
8329 * decl2.c (get_guard): Add missing return for old ABI local
8330 variable case.
8331
7b019c19
MM
83322000-07-09 Mark Mitchell <mark@codesourcery.com>
8333
8334 * cp-tree.h (char_type_p): New function.
8335 * decl.c (init_decl_processing): Don't initialize
8336 signed_wchar_type_node or unsigned_wchar_type_node.
8337 (complete_array_type): Handle brace-enclosed string-constants.
8338 * rtti.c (emit_support_tinfos): Remove #if 0'd code.
8339 * tree.c (char_type_p): New function.
8340 * typeck2.c (digest_init): Use char_type_p.
8341
a5f1c5f8
NS
83422000-07-06 Nathan Sidwell <nathan@codesourcery.com>
8343
8344 * pt.c (tsubst): Don't layout type, if it's error_mark.
8345
84e5ca0f
NS
83462000-07-06 Nathan Sidwell <nathan@codesourcery.com>
8347
8348 * pt.c (instantiate_pending_templates): Reset template level.
8349
ab785305
JM
83502000-07-05 Jason Merrill <jason@redhat.com>
8351
8352 * call.c (joust): Don't complain about `operator char *()' beating
8353 `operator const char *() const'.
8354
90418208
JM
83552000-07-04 scott snyder <snyder@fnal.gov>
8356 Jason Merrill <jason@redhat.com>
8357
0e5921e8 8358 * repo.c (repo_get_id): Handle the case where a class with virtual
90418208
JM
8359 bases has a null TYPE_BINFO_VTABLE.
8360
83612000-07-04 Kevin Buhr <buhr@stat.wisc.edu>
8362 Jason Merrill <jason@redhat.com>
8363
8364 * parse.y (member_init): Just pass in the type.
8365 * init.c (expand_member_init): Handle getting a type.
8366
8367