]> gcc.gnu.org Git - gcc.git/blame - gcc/cp/ChangeLog
i386.h (MAX_WCHAR_TYPE_SIZE): New constant to keep tradcpp independent on TARGET_FLAGS.
[gcc.git] / gcc / cp / ChangeLog
CommitLineData
bb6852eb 12001-03-08 Stan Shebs <shebs@apple.com>
f7687817
SS
2
3 * cp-tree.h (set_identifier_local_value): Remove unused decl.
4
cc937581
ZW
52001-03-06 Zack Weinberg <zackw@stanford.edu>
6
7 * spew.c: Remove references to CPP_OSTRING.
8
d1188d91
AH
92001-03-06 Andrew Haley <aph@redhat.com>
10
11 * typeck.c (convert_arguments): Check that we have an fndecl.
12
4eaf1d5b
AH
132001-03-05 Andrew Haley <aph@redhat.com>
14
15 * typeck.c (convert_arguments): Don't do ellipsis conversion for
16 __built_in_constant_p.
17
7eeb553c
NS
182001-03-02 Nathan Sidwell <nathan@codesourcery.com>
19
20 * typeck.c (build_static_cast): Allow enum to enum conversions
21 as per DR 128.
22
d282fcb2
NS
232001-03-02 Nathan Sidwell <nathan@codesourcery.com>
24
25 * class.c (check_field_decls): Pointers to member do not a
26 non-pod struct make, as per DR 148.
27
f86fdf68
NS
282001-03-02 Nathan Sidwell <nathan@codesourcery.com>
29
30 * call.c (joust): cp_pedwarn when using gnu extension concerning
31 worst conversion sequences.
32
d6edb99e
ZW
332001-03-01 Zack Weinberg <zackw@stanford.edu>
34
35 * decl.c: Replace all uses of 'boolean' with 'bool'.
36
f7143427
ZW
372001-03-01 Zack Weinberg <zackw@stanford.edu>
38
39 * lang-specs.h: Add zero initializer for cpp_spec field to
40 all array elements that need one. Don't put an #ifdef inside
41 the initializer list; set a default for CPLUSPLUS_CPP_SPEC and
42 use it.
43
fbfe8c9e
NS
442001-03-01 Nathan Sidwell <nathan@codesourcery.com>
45
46 Implement using decls inside template functions.
47 * decl2.c (validate_nonmember_using_decl): Don't special case
48 fake_std_node in the global namespace. Don't reject early when
49 processing a template.
50 (do_local_using_decl): Add to statement tree. Don't do further
51 processing when building a template.
52 * pt.c (tsubst_expr, DECL_STMT case): Deal with USING_DECLs.
53
4d24a889
NS
542001-03-01 Nathan Sidwell <nathan@codesourcery.com>
55
56 * decl2.c (do_nonmember_using_decl): Don't complain if we find
57 same function. Do complain about ambiguating extern "C"
58 declarations.
59
e5844e6d
NS
602001-02-28 Nathan Sidwell <nathan@codesourcery.com>
61
62 Remove floating point and complex type template constant parms.
63 * pt.c (convert_nontype_argument): Remove REAL_TYPE and
64 COMPLEX_TYPE extensions.
65 (invalid_nontype_parm_type_p): Likewise.
66
788f238c
JO
672001-02-27 Jeffrey Oldham <oldham@codesourcery.com>
68
69 * except.c (call_eh_info): Revert "match_function"'s type.
70
73ea87d7
NS
712001-02-27 Nathan Sidwell <nathan@codesourcery.com>
72
73 Fix ctor vtable vcall offsets.
74 * class.c (struct vtbl_init_data_s): Add rtti_binfo member.
75 (build_rtt_vtbl_entries): Lose RTTI_BINFO parameter.
76 (get_matching_base): Remove.
77 (get_original_base): New function.
78 (build_vtbl_initializer): Initialize vid.rtti_binfo.
79 Use a virtual thunk for a ctor vtable with an index
80 (add_vcall_offset_vtbl_entries_1): Check if binfo has lost a
81 primary base within a constructor vtable. Only set
82 BV_VCALL_INDEX when not a constructor vtable. Adjust vcall offset
83 when primary base has been lost.
84 * cp-tree.h (BINFO_VIRTUALS): Remove ambiguity from comment.
85
fe730161
JO
862001-02-26 Jeffrey Oldham <oldham@codesourcery.com>
87
88 * call.c (joust): Ensure more_specialized()'s argument length
89 parameter has correct value for constructors.
90
e5dd4aad
NS
912001-02-26 Nathan Sidwell <nathan@codesourcery.com>
92
93 * except.c (call_eh_info): Cleanup generation of cp_eh_info struct.
94
95 * decl.c (mark_inlined_fns): Prototype.
96
25200ab2
MM
972001-02-22 Mark Mitchell <mark@codesourcery.com>
98
99 * spew.c (yylex): Correct handling of friends.
100
f58c04ac
MM
1012001-02-22 Mark Mitchell <mark@codesourcery.com>
102
103 * mangle.c (write_encoding): Pass write_function_type the
104 FUNCTION_DECL for the function being encoded.
105 (write_function_type): Pass it along to write_bare_function_type.
106 (write_bare_function_type): Pass it along to write_method_parms.
107 (write_method_parms): Don't mangle the compiler-generated
108 parameters to a constructor or destructor.
109
9c96f3f8
AJ
1102001-02-22 Andreas Jaeger <aj@suse.de>
111
112 * optimize.c: Include toplev.h for
113 note_deferral_of_defined_inline_function prototype.
114
b3bae5e2
JJ
1152001-02-22 Jakub Jelinek <jakub@redhat.com>
116
117 * cp-tree.h (struct lang_decl_inlined_fns): New.
118 (struct lang_decls): Add inlined_fns.
119 (DECL_INLINED_FNS): New macro.
120 * optimize.c (struct inline_data): Add inlined_fns.
121 (declare_return_variable): Use VARRAY_ACTIVE_SIZE macro.
122 (inlinable_function_p): Likewise, fix typo in comment,
123 function is not inlinable if it already inlined function currently
124 being optimized.
125 (expand_call_inline): Add fn to inlined_fns if neccessary.
126 (optimize_function): Initialize inlined_fns.
127 Save inlined_fns into DECL_INLINED_FNS after expanding inlines.
128 * decl.c (mark_inlined_fns): New function.
129 (lang_mark_tree): Call it.
130
5daf7c0a
JM
1312001-02-21 Jason Merrill <jason@redhat.com>
132
133 * cp-tree.h (struct lang_decl_flags): Remove uninlinable flag.
134 (DECL_UNINLINABLE): Move to middle-end.
135
136 * class.c (clone_function_decl): Set DECL_ABSTRACT on original fn.
137 * decl.c (duplicate_decls): Preserve DECL_ABSTRACT.
138 * class.c (build_clone): Set DECL_ABSTRACT_ORIGIN for the clone.
139 * optimize.c (maybe_clone_body): Set DECL_ABSTRACT_ORIGIN for the
140 parms and outer BLOCK. note_deferral_of_defined_inline_function.
141
142 * method.c (implicitly_declare_fn): Don't set DECL_ARTIFICIAL on
143 second parm of op=.
144
2c0fc02d
MM
1452001-02-19 Mark Mitchell <mark@codesourcery.com>
146
147 * decl2.c (set_decl_namespace): Allow explicit instantiations in
148 any namespace.
149
612164eb
KL
1502001-02-18 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
151
152 * optimize.c (expand_call_inline): Don't walk subtrees of type
153 nodes.
154
69a59a49
MM
1552001-02-18 Mark Mitchell <mark@codesourcery.com>
156
157 * class.c (add_vcall_offset_vtbl_entries_1): Only add one entry
158 for a destructor.
159
e0fff4b3
JM
1602001-02-18 Jason Merrill <jason@redhat.com>
161
162 Do put the VTT parameter in DECL_ARGUMENTS.
163 * cp-tree.h (struct cp_language_function): Add x_vtt_parm.
164 (current_vtt_parm): New macro.
165 (struct lang_decl_flags): Add has_vtt_parm_p, remove vtt_parm.
166 (DECL_HAS_VTT_PARM_P): New macro.
167 (DECL_VTT_PARM): Remove.
168 (FUNCTION_FIRST_USER_PARMTYPE, FUNCTION_FIRST_USER_PARM): New macros.
169 * decl.c (duplicate_decls): Only copy the operator code if
170 appropriate.
171 (start_function): Set current_vtt_parm.
172 (lang_mark_tree): Don't mark vtt_parm.
9c96f3f8 173 * decl2.c (maybe_retrofit_in_chrg): Do add the VTT parm to
e0fff4b3
JM
174 DECL_ARGUMENTS. Set DECL_HAS_VTT_PARM_P.
175 * class.c (build_clone): Maybe remove the VTT parm.
176 * optimize.c (maybe_clone_body): Set up the VTT parm.
177 * pt.c (copy_default_args_to_explicit_spec): Preserve the VTT parm.
178 * call.c (build_over_call): Just allow the VTT arg.
179 * method.c (make_thunk): Don't set DECL_VTT_PARM.
180 (do_build_copy_constructor): Use FUNCTION_FIRST_USER_PARM.
181 (synthesize_method): Use FUNCTION_FIRST_USER_PARMTYPE.
182 * decl.c (grokdeclarator, copy_args_p, grok_ctor_properties): Likewise.
183 * error.c (dump_function_decl): Likewise.
184 * call.c (build_user_type_conversion_1, convert_like_real): Abort
185 if we try to call a constructor with in-charge or VTT parms.
186 * method.c (skip_artificial_parms_for): New fn.
187 * call.c (add_function_candidate, build_over_call): Call it.
188 * call.c (build_new_method_call): Use current_vtt_parm.
189 * init.c (expand_virtual_init): Likewise.
190 * class.c (same_signature_p): No longer static.
191 * cp-tree.h: Declare it.
192 * search.c (look_for_overrides_r): Use it.
193
c750255c
MM
1942001-02-17 Mark Mitchell <mark@codesourcery.com>
195
8fa33dfa
MM
196 * cp-tree.h (new_abi_rtti_p): Remove.
197 (name_mangling_version): Likewise.
198 (flag_do_squangling): Likewise.
199 * class.c (build_rtti_vtbl_entries): Remove old ABI support.
200 * decl.c (grokfndecl): Likewise.
201 * decl2.c (name_mangling_version): Remove.
202 (flag_do_squangling): Likewise.
203 (lang_f_options): Remove `squangle'.
204 (unsupported_options): Add `squangle'.
205 (cxx_decode_option): Issue a warning about uses of
206 -fname-mangling-version.
207 (finish_file): Remove old ABI support.
208 * pt.c (check_explicit_specialization): Likewise.
209 (tsubst_decl): Likewise.
210 * rtti.c (init_rtti_processing): Likewise.
211 (build_headof): Likewise.
212 (get_tinfo_decl_dynamic): Likewise.
213 (tinfo_from_decl): Likewise.
214 (build_dynamic_cast_1): Likewise.
215 (synthesize_tinfo_var): Likewise.
12fa82db
MM
216 * init.c (build_new): Allow enumeration types for the array-bounds
217 in a direct-new-declarator.
218
219 * semantics.c (finish_typeof): Resolve OFFSET_REFs.
220
c750255c
MM
221 * pt.c (check_explicit_specialization): Copy TREE_PRIVATE and
222 TREE_PROTECTED from the template being specialized.
223
a714e5c5
JM
2242001-02-17 Jason Merrill <jason@redhat.com>
225
226 * decl2.c (build_artificial_parm): Set TREE_READONLY.
227
9c96f3f8 228 * decl.c (bad_specifiers): Allow throw specs on things with
a714e5c5
JM
229 pointer-to-function or -member-function type.
230 * init.c (build_default_init): Don't use a CONSTRUCTOR to initialize
231 a pmf.
232
8084b91e
MM
2332001-02-17 Mark Mitchell <mark@codesourcery.com>
234
235 * call.c (check_dtor_name): Handle template names correctly.
236
48f22ed2
JM
2372001-02-16 Jason Merrill <jason@redhat.com>
238
239 * cp-tree.h (DECL_USE_VTT_PARM): Remove.
240 * decl2.c (maybe_retrofit_in_chrg): Don't create it.
241 * optimize.c (maybe_clone_body): Don't substitute it.
242 * call.c (build_new_method_call): Check in_chrg instead.
243 * init.c (expand_virtual_init): Likewise.
244
e8186ecf
GDR
2452001-02-16 Gabriel Dos Reis <gdr@codesourcery.com>
246
247 * decl.c (check_tag_decl): Make sure a typedef for an anonymous
248 class-type introduces at least a type-name.
249
2c1be322
JJ
2502001-02-16 Jakub Jelinek <jakub@redhat.com>
251
252 * call.c (convert_like_real): Create a temporary for non-lvalue.
253
aab8454a
JO
2542001-02-16 Jeffrey Oldham <oldham@codesourcery.com>
255
256 * cp-tree.h: Fix typos in comments.
257
a901fa64
JM
2582001-02-16 Jason Merrill <jason@redhat.com>
259
260 * optimize.c (remap_block): If we're compiling a clone, pass the
261 new block to insert_block.
262
8853373c
MM
2632001-02-16 Mark Mitchell <mark@codesourcery.com>
264
265 * semantics.c (finish_asm_stmt): Robustify.
266
b60ecc04
MM
2672001-02-15 Mark Mitchell <mark@codesourcery.com>
268
269 * pt.c (push_template_decl_real): Don't remangle the name of a
270 class template.
271
e658449e
JM
2722001-02-15 Jim Meyering <meyering@lucent.com>
273
fd48c9b5
DD
274 * Make-lang.in (c++.install-common): Depend on installdirs.
275 (c++.install-info): Likewise.
276 (c++.install-man): Likewise.
e658449e 277
f1a3f197
MM
2782001-02-15 Mark Mitchell <mark@codesourcery.com>
279
280 * typeck2.c (build_m_component_ref): Robustify.
281
8826b15b
AO
2822001-02-15 Alexandre Oliva <aoliva@redhat.com>
283
284 * friend.c (do_friend): Don't take the nested [template] class
285 into account when deciding whether to warn about the friend
286 function not referring to a template function.
287
7161c1a5
JJ
2882001-02-14 Jakub Jelinek <jakub@redhat.com>
289
290 * typeck.c (build_unary_op): Clarify error message.
291
4806765e
AH
2922001-02-08 Aldy Hernandez <aldyh@redhat.com>
293
a901fa64
JM
294 * parse.y (component_constructor_declarator): allow optional
295 parentheses around constructor class name.
4806765e 296
bfc8e1e2
NS
2972001-02-14 Nathan Sidwell <nathan@codesourcery.com>
298
299 * cp-tree.h (setup_vtbl_ptr): Move prototype to semantics.c
300 section.
301 * init.c (emit_base_init): Remove incorrect comment about
302 virtual bases.
303 * method.c (make_thunk): Fix comment alignment.
304
394fd776
NS
3052001-02-14 Nathan Sidwell <nathan@codesourcery.com>
306
307 Kill remnants of this is variable.
308 * cp-tree.h (flag_this_is_variable): Remove.
309 * decl2.c (flag_this_is_variable): Remove.
310 * class.c (fixed_type_or_null): Add cdtor parm. Adjust.
311 (build_vbase_path): The path is non-static, even in a cdtor.
312 (resolves_to_fixed_type_p): Add additional return value.
313 * search.c (init_vbase_pointers): Adjust.
314 * tree.c (lvalue_p_1): Adjust.
315 * typeck.c (mark_addressable): Adjust.
316
d0ab7624
NS
3172001-02-14 Nathan Sidwell <nathan@codesourcery.com>
318
319 * pt.c (unify): Don't check cv quals of array types.
320
7773899b
NS
3212001-02-14 Nathan Sidwell <nathan@codesourcery.com>
322
323 * tree.c (cp_build_qualified_type_real): Use CP_TYPE_QUALS to
324 check whether we already have the type.
325
52682a1b
MM
3262001-02-13 Mark Mitchell <mark@codesourcery.com>
327
328 * cp-tree.h (CLASSTYPE_DESTRUCTORS): Fix typo in comment.
329 * call.c (build_op_delete_call): Simplify to remove duplicate
330 code.
331 * class.c (clone_function_decl): Don't build the deleting variant
332 of a non-virtual destructor.
333 * decl.c (finish_destructor_body): Don't call delete if this is a
334 non-virtual destructor.
335 * init.c (build_delete): Explicitly call `operator delete' when
336 deleting an object with a non-virtual destructor.
9c96f3f8 337
3b6bd115
JM
3382001-02-13 Jason Merrill <jason@redhat.com>
339
340 * lang-specs.h: Add more __EXCEPTIONS.
341
45abaea8
NS
3422001-02-12 Nathan Sidwell <nathan@codesourcery.com>
343
344 * typeck2.c (process_init_constructor): Check
345 TREE_HAS_CONSTRUCTOR before issuing missing init warning.
346
996065b4
NS
3472001-02-12 Nathan Sidwell <nathan@codesourcery.com>
348
349 * pt.c (maybe_adjust_types_for_deduction, DEDUCE_ORDER case):
350 Remove spurious information in comment. Allow further
351 adjustments of REFERENCE_TYPE args.
352
82c18d5c
NS
3532001-02-12 Nathan Sidwell <nathan@codesourcery.com>
354
355 * errfn.c (cp_deprecated): Tweak diagnostic text.
356 * parse.y (new_initializer): Deprecate initializer lists
357 extension.
358
1f84ec23
MM
3592001-02-12 Mark Mitchell <mark@codesourcery.com>
360
361 Remove old ABI support.
362
8c310e3f
MM
3632001-02-11 Mark Mitchell <mark@codesourcery.com>
364
b1012f1b
MM
365 * decl2.c (flag_vtable_thunks): Always set it to 1.
366 (flag_new_abi): Likewise.
367 * lang-specs.h: Remove conditional on ENABLE_NEW_GXX_ABI.
9c96f3f8 368
8c310e3f
MM
369 * Makefile.in (g++spec.o): Fix typo.
370
3b635dfc
JM
3712001-02-09 Jason Merrill <jason@redhat.com>
372
373 * lang-specs.h: Restore definition of __EXCEPTIONS.
374
bd0d5d4a
JM
3752001-02-08 Jason Merrill <jason@redhat.com>
376
377 * search.c (shared_member_p): New function.
378 (lookup_field_r): Use it.
379 * cp-tree.h (SHARED_MEMBER_P): Remove.
380
381 * method.c (process_overload_item): Handle template-dependent array
382 bounds.
383 * pt.c (type_unification_real): If we end up with undeduced nontype
384 parms, try again.
385
386 * decl.c (lookup_name_real): Tweak warning to refer to decls, not
387 types.
388
389 * typeck2.c (friendly_abort): Don't say anything if we have
390 earlier errors or sorries.
391
9c96f3f8 392 * decl.c (check_tag_decl): Notice attempts to redefine bool and
bd0d5d4a
JM
393 wchar_t. Ignore if in_system_header.
394
395 * decl.c (maybe_push_cleanup_level): New fn...
396 (start_decl_1): ...split out from here.
397 * cvt.c (build_up_reference): Use it.
398 * cp-tree.h: Declare it.
399
a9374841
MM
4002001-02-07 Mark Mitchell <mark@codesourcery.com>
401
9c96f3f8 402 * lang-specs.h: Use CPLUSPLUS_CPP_SPEC for the preprocessor
a9374841
MM
403 spec.
404
a87b4257
NS
4052001-02-06 Nathan Sidwell <nathan@codesourcery.com>
406
407 * pt.c (lookup_template_class): Make sure it's a primary
408 template or template_template_parm when called from the parser.
409 (instantiate_template_class): Add assertion.
410
518fed76
AO
4112001-02-05 Alexandre Oliva <aoliva@redhat.com>
412
413 * method.c (build_mangled_name) [old abi]: Protect flush_repeats()
414 from error_mark_node.
415
9965d119
NS
4162001-02-05 Nathan Sidwell <nathan@codesourcery.com>
417
418 Fix specification and implementation bugs in V3 ABI
419 construction vtables.
420 * cp-tree.h (flag_dump_class_layout): New flag.
421 (BINFO_OVERRIDE_ALONG_VIRTUAL_PATH_P): Remove.
422 (BINFO_LOST_PRIMARY_P): New flag.
423 (SET_BINFO_NEW_VTABLE_MARKED): Adjust asserts.
424 (BINFO_PRIMARY_MARKED_P): Rename to ...
425 (BINFO_PRIMARY_P): ... here.
426 (binfo_via_virtual): New prototype.
427 * decl2.c (flag_dump_class_layout): New flag.
428 (cxx_decode_option): Set it. Adjust -fdump-translation-unit to
429 use `=' as a file name separator.
430 * init.c (dfs_initialize_vtbl_ptrs): Walk into virtual primary
431 bases.
432 (build_vtbl_address): If this is a virtual primary base, then
433 get the vtbl of what it is ultimately primary for.
434 * search.c (dfs_skip_nonprimary_vbases_unmarkedp): Adjust
435 for BINFO_PRIMARY_P.
436 (dfs_skip_nonprimary_vbases_markedp): Likewise.
437 (get_shared_vbase_if_not_primary): Likewise.
438 (dfs_get_pure_virtuals): Likewise.
439 (expand_upcast_fixups): Likewise.
440 (fixup_virtual_upcast_offsets): Likewise.
441 (dfs_find_vbase_instance): Likewise.
442 (find_vbase_instance): Likewise.
443 (binfo_from_vbase): Adjust comment to reflect reality.
444 (binfo_via_virtual): New function.
445 * class.c (VTT_TOP_LEVEL_P, VTT_MARKED_BINFO_P): New macros
446 for binfo walking during VTT construction.
447 (dfs_mark_primary_bases): Remove.
448 (force_canonical_binfo_r): New function.
449 (force_canonical_binfo): New function.
450 (mark_primary_virtual_base): New function.
451 (mark_primary_bases): Walk in inheritance graph order, use
452 mark_primary_virtual_base.
453 (determine_primary_base): Use some more intermediate variables.
454 (dfs_find_final_overrider): Don't check for overriding along a
455 virtual path.
456 (dfs_modify_vtables): Walk into primary virtual bases too.
457 (walk_subobject_offsets): Adjust for BINFO_PRIMARY_P.
458 (build_base_fields): Likewise.
459 (dfs_set_offset_for_unshared_vbases): Likewise.
460 (layout_virtual_bases): Likewise.
461 (end_of_class): Likewise.
462 (finish_struct_1): Call dump_class_hierarchy, if requested.
463 (dfs_get_primary_binfo): Use BINFO_TYPE for binfos.
464 (dump_class_hierarchy_r): Add stream parameter. Emit more information.
465 (dump_class_hierarchy): Add file parameter. Append to file, if
466 required.
467 (finish_vtbls): Adjust accumulate_vtbl_inits call.
468 Use canonical base for virtual bases.
469 (build_vtt): Add more comments. Adjust build_vtt_inits call.
470 (build_vtt_inits): Remove VIRTUAL_VTTS_P parm.
471 Only set BINFO_VPTR_INDEX on top level. Use VTT_TOP_LEVEL_P,
472 VTT_MARKED_BINFO_P for binfo walking. Use canonical vbase for
473 virtual VTTs.
474 (dfs_build_secondary_vptr_vtt_inits): Extract VTT_TOP_LEVEL_P
475 from DATA. We want virtual primary bases and all bases via virtual.
476 Only set BINFO_VPTR_INDEX for top level. Look up from a primary
477 virtual base when not a construction vtable.
478 (dfs_ctor_vtable_bases_queue_p): New DFS predicate.
479 (build_ctor_vtbl_group): Adjust accumulate_vtbl_inits call.
480 Use canonical bases when processing virtual bases.
481 (accumulate_vtbl_inits): We're interested in any base via a
482 virtual path.
483 (dfs_accumulate_vtbl_inits): If this is a primary virtual base
484 within a construction vtable, determine what is being overridden.
485 (build_vtbl_initializer): Add more comments
486 (add_vcall_offset_vtbl_entries_1): Adjust comment.
487 (build_rtti_vtbl_entries): Check if the base has lost its
488 primary.
489
39d6f2e8
MM
4902001-02-05 Mark Mitchell <mark@codesourcery.com>
491
492 * Makefile.in (g++spec.o): Adjust use of DRIVER_DEFINES.
493
400500c4
RK
494Sun Feb 4 15:52:44 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
495
496 * decl.c (pushdecl): Call abort instead of fatal.
497 * except.c (decl_is_java_type): Call fatal_error instead of fatal.
498 * init.c (build_new_1): Likewise.
499 (build_java_class_ref): Call internal_error and fatal_error, not fatal.
500 * decl.c (build_typename_type): hash_table_init now returns void.
501 decl.c (init_decl_processing): Make an error non-fatal.
502
97458258
MM
5032001-02-04 Mark Mitchell <mark@codesourcery.com>
504
505 * cp-tree.h (CLASSTYPE_INTERFACE_UNKNOWN): Fix formatting.
506 Document.
507 (CLASSTYPE_INTERFACE_KNOWN): Likewise.
508 (SET_CLASSTYPE_INTERFACE_UNKNOWN_X): Likewise.
509 (SET_CLASSTYPE_INTERFACE_UNKNOWN): Likewise.
510 (SET_CLASSTYPE_INTERFACE_KNOWN): Likewise.
511 * decl.c (maybe_commonize_var): Use the new name-mangling where
512 appropriate.
513 * decl2.c (comdat_linkage): Enhance comments. Make all
514 compiler-generated things static, if COMDAT is not available.
515 (get_tinfo_decl): Do not make typeinfo objects that belong in the
516 library COMDAT.
517 (tinfo_base_init): Use the correct mangled name for typeinfo
518 strings, and push them into the global scope.
519 (typeinfo_in_lib_p): New function.
520 (synthesize_tinfo_var): Use it.
521 (create_real_tinfo_var): Likewise.
9c96f3f8 522
55de1b66
JJ
5232001-02-03 Jakub Jelinek <jakub@redhat.com>
524
525 * decl.c (push_class_binding): Use context_for_name_lookup instead
526 of CP_DECL_CONTEXT.
527 * search.c (context_for_name_lookup): Remove static. Check for NULL
528 context in the loop.
529 * cp-tree.h (context_for_name_lookup): Add prototype.
530
e92730aa
JJ
5312001-02-02 Jakub Jelinek <jakub@redhat.com>
532
533 * cp-tree.h (build_expr_ptr_wrapper, can_free): Remove.
534 * tree.c (build_expr_ptr_wrapper, can_free, permanent_obstack):
535 Remove.
536 * call.c (convert_class_to_reference, build_user_type_conversion_1,
537 add_warning): Change build_expr_ptr_wrapper to build_ptr_wrapper.
538
049f6ec9
MM
5392001-02-02 Mark Mitchell <mark@codesourcery.com>
540
541 * Make-lang.in (g++spec.o): Add DRIVER_DEFINES to the list
542 of macros used when compiling g++spec.c.
543 * g++spec.c (lang_specific_driver): Link with the shared
544 libgcc by default.
545
718b8ea5
JM
5462001-01-29 Joseph S. Myers <jsm28@cam.ac.uk>
547
548 * decl2.c (build_expr_from_tree), lex.c (make_pointer_declarator,
549 make_reference_declarator, make_call_declarator), method.c
550 (implicitly_declare_fn), parse.y (namespace_using_decl,
551 notype_unqualified_id, expr_or_declarator, new_type_id,
552 after_type_declarator, direct_after_type_declarator,
553 notype_declarator, complex_notype_declarator,
554 complex_direct_notype_declarator, qualified_id,
555 notype_qualified_id, overqualified_id, direct_new_declarator,
556 absdcl, direct_abstract_declarator, conversion_declarator), pt.c
557 (tsubst), semantics.c (begin_constructor_declarator): Use build_nt
558 instead of build_parse_node.
559
f2d1f0ba
KG
5602001-01-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
561
562 * cp-tree.h (cp_tree_index): Delete CPTI_MINUS_ONE.
563 (minus_one_node): Moved to top level gcc directory. Renamed
564 to integer_minus_one_node.
565
566 * init.c (init_init_processing): Don't set minus_one_node.
567 (build_vec_init): Use integer_minus_one_node.
568
569 * rtti.c (get_tinfo_decl_dynamic): Likewise.
570
6001735e
JJ
5712001-01-28 Jakub Jelinek <jakub@redhat.com>
572
573 * optimize.c (copy_body_r): If MODIFY_EXPR has both arguments
574 identical and they would be replaced with constant, remove
575 MODIFY_EXPR from the tree.
576
c913b6f1
KG
5772001-01-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
578
579 * Make-lang.in: Remove all dependencies on defaults.h.
580 * call.c: Don't include defaults.h.
581 * decl.c: Likewise.
582 * decl2.c: Likewise.
583 * except.c: Likewise.
584 * pt.c: Likewise.
585 * rtti.c: Likewise.
586 * tree.c: Likewise.
587 * typeck.c: Likewise.
588
324ffb8c
JJ
5892001-01-25 Jakub Jelinek <jakub@redhat.com>
590
591 * mangle.c (write_mangled_name, write_encoding): Mangle overloaded
592 operators even in "C" linkage.
593 * method.c (set_mangled_name_for_decl): Likewise.
594 * decl.c (grokfndecl): Call set_mangled_name_for_decl even for
595 overloaded operators in "C" linkage.
596
4b2811e9
NS
5972001-01-24 Nathan Sidwell <nathan@codesourcery.com>
598
599 * pt.c (tsubst_decl): Remove IN_DECL parameter.
600 (tsubst_arg_types): Check parameter is not void.
601 (tsubst): Adjust tsubst_decl call.
602
d8caf48e
NS
6032001-01-24 Nathan Sidwell <nathan@codesourcery.com>
604
605 * call.c (add_builtin_candidate): Quote std properly, from
606 previous change.
607
08511114
KL
6082001-01-23 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
609
610 * pt.c (check_explicit_specialization): Clone constructors and
611 destructors.
612
92ecdfb7
NS
6132001-01-23 Nathan Sidwell <nathan@codesourcery.com>
614
615 * decl.c (grokdeclarator): Don't presume DECL_LANG_SPECIFIC
616 indicates anything special about template depth. Make sure we
617 only count the user visible template classes.
618
4cff6abe
NS
6192001-01-23 Nathan Sidwell <nathan@codesourcery.com>
620
621 * call.c (build_conv): Typo in comment.
622 (add_builtin_candidate): Add more explanation.
623 Remove extra test for ENUMERAL_TYPE in {PRE,POST}INCREMENT_EXPR.
624 Allow ENUMERAL_TYPEs for relops and eqops. Add both candidates
625 when we have enumeral types.
626 (add_builtin_candidates): Add more explanation. Add ENUMERAL_TYPE
627 candidates for relops and eqops.
628 (joust): Simplify control flow. Allow a non-template user
629 function to hide a builtin.
630
62e4a758
NS
6312001-01-22 Nathan Sidwell <nathan@codesourcery.com>
632
633 * cp-tree.h (unification_kind_t): Add DEDUCE_ORDER.
634 (more_specialized): Add deduction parameter.
635 * call.c (joust): Adjust more_specialized call.
636 * pt.c (UNIFY_ALLOW_OUTER_MORE_CV_QUAL,
637 UNIFY_ALLOW_OUTER_LESS_CV_QUAL): New unify flags.
638 (get_bindings_order): Remove.
639 (get_bindings_real): Add DEDUCE parameter.
640 (maybe_adjust_types_for_deduction): Return extra unify flags. Do
641 REFERENCE_TYPE jig for DEDUCE_ORDER.
642 (type_unification_real): Deal with DEDUCE_ORDER. Use result of
643 maybe_adjust_types_for_deduction.
644 (more_specialized): Add DEDUCE parameter. Call get_bindings_real
645 directly.
646 (try_one_overload): Use result of maybe_adjust_types_for_deduction.
647 (check_cv_quals_for_unify): Use new unify qualifier flags.
648 (unify): Clear new unify qualifier flags.
649 (get_bindings_real): Add DEDUCE parameter.
650 (get_bindings): Adjust call to get_bindings_real.
651 (get_bindings_overload): Likewise.
652 (most_specialized_instantiation): Adjust call to
653 more_specialized.
654
2a2a9e5a
JM
6552001-01-19 Jason Merrill <jason@redhat.com>
656
657 * decl2.c (flag_vtable_thunks): Also depend on ENABLE_NEW_GXX_ABI.
658
659 * decl.c (init_decl_processing): Just force -fvtable-thunks on if
660 -fnew-abi.
661
60696c53
JM
6622001-01-19 Ute Pelkmann <scope.muc@t-online.de>
663
664 * decl2.c (arg_assoc_class): Fix double iteration logic.
665
6662001-01-19 Jason Merrill <jason@redhat.com>
667
668 * init.c (build_delete): Always call convert_force to strip cv-quals.
669
670 * decl2.c (flag_new_abi): Depend on ENABLE_NEW_GXX_ABI.
671 * lang-specs.h: Default ABI depends on ENABLE_NEW_GXX_ABI.
672 * g++spec.c: Don't look at ENABLE_NEW_GXX_ABI.
673
1e00f18c
NS
6742001-01-19 Nathan Sidwell <nathan@codesourcery.com>
675
676 * search.c (get_vbase_1): Count only virtual bases.
677
e13bced2
NS
6782001-01-19 Nathan Sidwell <nathan@codesourcery.com>
679
680 * class.c (duplicate_tag_error): Robustify flag clearing.
681
f9c244b8
NS
6822001-01-19 Nathan Sidwell <nathan@codesourcery.com>
683
684 * cp-tree.h (lookup_template_class): Add complain parm.
685 * decl.c (lookup_namespace_name): Adjust call to
686 lookup_template_class.
687 (make_typename_type): Likewise.
688 * semantics.c (finish_template_type): Likewise.
689 * pt.c (lookup_template_class): Add complain parm. Adjust.
690 (tsubst_aggr_type): Pass COMPLAIN down to lookup_template_class.
691 (tsubst): Likewise.
692
08c2df0f
NS
6932001-01-19 Nathan Sidwell <nathan@codesourcery.com>
694
695 * pt.c (copy_default_args_to_explicit_spec): Preserve
696 object's CV quals. Reorganize.
697
f5ceeec8
NS
6982001-01-18 Nathan Sidwell <nathan@codesourcery.com>
699
700 * typeck.c (build_modify_expr): Say `initialization' for
701 INIT_EXPRs.
702 * init.c (build_default_init): Convert to enumeral type, if
703 needed.
704
a1cfa434
JJ
7052001-01-18 Jakub Jelinek <jakub@redhat.com>
706
707 * parse.y (nomods_initdcl0): Properly set things up for
708 initdcl0_innards.
709
028d1f20
NS
7102001-01-18 Nathan Sidwell <nathan@codesourcery.com>
711
712 * pt.c (UNIFY_ALLOW_OUTER_LEVEL): New unify flag.
713 (type_unification_real): Set it.
714 (unify): Use it.
715
9f724b6a
NS
7162001-01-18 Nathan Sidwell <nathan@codesourcery.com>
717
718 * decl.c (finish_destructor_body): Convert to vbase pointer here.
719
522d6614
NS
7202001-01-18 Nathan Sidwell <nathan@codesourcery.com>
721
722 * semantics.c (begin_class_definition): Check we're not inside a
723 template parm list.
724
7f805b8f
NS
7252001-01-18 Nathan Sidwell <nathan@codesourcery.com>
726
727 * tree.c (walk_tree, TREE_LIST): Don't walk the TREE_PURPOSE of
728 BASELINK_P.
729
dc3799c1
KL
7302001-01-16 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
731
732 * typeck.c (build_function_call_real): Call fold on the CALL_EXPR.
733 * call.c (build_over_call): Add comment.
734
bb37c4a5
DB
7352001-01-16 Daniel Berlin <dberlin@redhat.com>
736
737 * cvt.c (ocp_convert): Handle vector type conversion
738 * typeck2.c (digest_init): Handle vector type initializations
9c96f3f8 739
a26e7fb5
PE
7402001-01-16 Phil Edwards <pme@sources.redhat.com>
741
742 * g++spec.c: Don't add libraries needlessly if -fsyntax-only
743 was given.
744
11b810f1
NS
7452001-01-15 Nathan Sidwell <nathan@codesourcery.com>
746
747 * pt.c (check_nontype_parm): Rename to ...
748 (invalid_nontype_parm_type_p): ... here.
749 (process_template_parm): Adjust.
750 (convert_template_argument): Adjust.
751
db3f4e4e
NS
7522001-01-15 Nathan Sidwell <nathan@codesourcery.com>
753
754 * pt.c (check_nontype_parm): New function.
755 (process_template_parm): Use it.
756 (convert_template_argument): Use it.
757 (convert_nontype_argument, RECORD_TYPE): Assert it's a ptr to
758 member.
759
ea4f1fce
JO
7602001-01-14 Jeffrey Oldham <oldham@codesourcery.com>
761
762 * tree.c: Add defaults.h
763 (cp_valid_lang_attribute): Incorporate SUPPORTS_INIT_PRIORITY.
764 * Make-lang.in (cp/tree.o): Add defaults.h.
765
1312c143
JM
7662001-01-13 Joseph S. Myers <jsm28@cam.ac.uk>
767
768 * Make-lang.in (CXX_C_OBJS): Add c-format.o.
769
4bc1997b
JM
7702001-01-13 Joseph S. Myers <jsm28@cam.ac.uk>
771
772 * g++.1: Change to be ".so man1/gcc.1".
773
23de1fbf
JM
7742001-01-13 Joseph S. Myers <jsm28@cam.ac.uk>
775
776 * Make-lang.in (c++.info, c++.install-info): Build and install g++
777 internals info.
778 (c++.uninstall, c++.maintainer-clean): Remove g++ internals info.
779 ($(srcdir)/cp/g++int.info): New target.
780 * gxxint.texi: Add info directory entry. Use @@ in email address.
781 * .cvsignore: Update.
782
0949f723
NS
7832001-01-12 Nathan Sidwell <nathan@codesourcery.com>
784
785 * typeck.c (build_c_cast): Do template processing earlier.
786 Always pedwarn on array casts.
787
a8641661
NS
7882001-01-12 Nathan Sidwell <nathan@codesourcery.com>
789
790 * friend.c (make_friend_class): Make sure a templated class is
791 actually a template.
792
844511c8
NS
7932001-01-11 Nathan Sidwell <nathan@codesourcery.com>
794
795 * decl2.c (get_guard): Set linkage from guarded decl.
796
96a1e32d
NS
7972001-01-11 Nathan Sidwell <nathan@codesourcery.com>
798
799 * call.c (convert_default_arg): Check for unprocessed
800 DEFAULT_ARG.
801 * cp-tree.h (replace_defarg): Move to spew.c.
802 (maybe_snarf_defarg, add_defarg_fn, do_pending_defargs): Move to
803 spew.c, which is where they really are.
804 (done_pending_defargs): Declare.
805 (unprocessed_defarg_fn): Declare.
806 * decl.c (replace_defarg): Move to spew.c
807 * parse.y (structsp): Call done_pending_defargs.
808 * spew.c (defarg_fns): Rearrange list structure.
809 (defarg_fnsdone): New static variable.
810 (defarg_depfns): New static variable.
811 (init_spew): Adjust.
812 (add_defarg_fn): Store the type in TREE_TYPE.
813 (do_pending_defargs): Detect and deal with ordering constraints
814 and circularity.
815 (done_pending_defargs): New function.
816 (unprocessed_defarg_fn): New function.
817 (replace_defarg): Moved from decl.c. Robustify. Don't save
818 if circularity detected.
819
34e225a3
NS
8202001-01-11 Nathan Sidwell <nathan@codesourcery.com>
821
822 * pt.c (unify): Check array has a domain, before checking
823 whether it is variable sized.
824
98979fe0
NS
8252001-01-11 Nathan Sidwell <nathan@codesourcery.com>
826
827 * decl.c (grokparms): Unobfuscate and get correct diagnostic for
828 parameters with pointers to arrays of unknown bound.
829
b37bf5bd
NS
8302001-01-11 Nathan Sidwell <nathan@codesourcery.com>
831
832 * parse.y (template_parm_header, template_spec_header): New
833 reductions. Split out from ...
834 (template_header): ... here. Use them.
835 (template_template_parm): Use template_parm_header.
836 * semantics.c (finish_template_template_parm): Add assert.
837
6c418184
MM
8382001-01-10 Mark Mitchell <mark@codesourcery.com>
839
792508b5
MM
840 * mangle.c (write_builtin_type): Fix thinko.
841
8afa707f
MM
842 * pt.c (copy_default_args_to_explicit_spec_1): New function.
843 (copy_default_args_to_explicit_spec): Likewise.
844 (check_explicit_specialization): Use it.
845
6c418184
MM
846 * class.c (finish_struct_1): Remove last argument in call to
847 make_decl_rtl; use make_function_rtl instead of make_decl_rtl.
848 * decl.c (builtin_function): Likewise.
849 (build_cp_library_fn): Likewise.
850 (check_initializer): Likewise.
851 (make_rtl_for_nonlocal_decl): Likewise.
852 (cp_finish_decl): Likewise.
853 (start_function): Likewise.
854 * decl2.c (finish_anon_union): Likewise.
855 * friend.c (do_friend): Likewise.
856 * init.c (build_java_class_ref): Likewise.
857 * method.c (make_thunk): Likewise.
858 * pt.c (tsubst_friend_function): Likewise.
859 * semantics.c (expand_body): Likewise.
860
31d95fc6
MM
8612001-01-10 Mark Mitchell <mark@codesourcery.com>
862
863 * cp-tree.h (DECL_CLONED_FUNCTION_P): Avoid wild reads by not
864 looking at DECL_CLONED_FUNCTION for non-functions.
865
31bb3027
NS
8662001-01-10 Nathan Sidwell <nathan@codesourcery.com>
867
868 * error.c (dump_template_parameter): Use parm to determine how
869 to print default value.
870
fd3f43e7
NS
8712001-01-10 Nathan Sidwell <nathan@codesourcery.com>
872
873 * class.c (duplicate_tag_error): Clear more flags.
874
042b4c4e
NS
8752001-01-10 Nathan Sidwell <nathan@codesourcery.com>
876
877 * call.c (build_new_method_call): Use binfo_for_vbase.
878
a7537031
JM
8792001-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
880
881 * cp-tree.h (flag_cond_mismatch): Don't declare.
882 * decl2.c (flag_cond_mismatch): Don't define.
883 (lang_f_options): Remove cond-mismatch.
884 (unsupported_options): Add cond-mismatch.
885
186c0fbe
NS
8862001-01-09 Nathan Sidwell <nathan@codesourcery.com>
887
888 * class.c (handle_using_decl): Reject using of constructor name
889 of sourcing class. Allow injecting of a method with same name as
890 nested class. Fixup error messages.
891
28ec8d6b
JM
8922001-01-09 Joseph S. Myers <jsm28@cam.ac.uk>
893
894 * decl2.c (lang_decode_option): Handle -Wformat=2.
895
3febd123
NS
8962001-01-08 Nathan Sidwell <nathan@codesourcery.com>
897
898 * cp-tree.h (lang_decl_flags): Rename defined_in_class to
899 initialized_in_class.
900 (DECL_DEFINED_IN_CLASS_P): Rename to ...
901 (DECL_INITIALIZED_IN_CLASS_P): ... here, to reflect true meaning.
902 * decl.c (duplicate_decls): Preseve DECL_INITIALIZED_IN_CLASS_P.
903 (cp_finish_decl): Adjust for DECL_INITIALIZED_IN_CLASS_P.
904 * pt.c (check_default_tmpl_args): Adjust for
905 DECL_INITIALIZED_IN_CLASS_P.
906 (instantiate_class_template): Likewise.
907 (instantiate_decl): Check DECL_INITIALIZED_IN_CLASS_P.
9c96f3f8 908
3febd123
NS
909 * class.c (finish_struct): Constify saved_filename.
910
1f0d71c5
NS
9112001-01-08 Nathan Sidwell <nathan@codesourcery.com>
912
913 * class.c (duplicate_tag_error): Adjust diagnostic.
914 (finish_struct): Locally set location to start of struct.
915 * decl.c (fixup_anonymous_aggr): Use cp_error_at.
916
5bf15e84 9172001-01-08 Nathan Sidwell <nathan@codesourcery.com>
76191fdd
NS
918
919 * decl.c (struct binding_level): Adjust class_shadowed comments
920 to reflect reality.
921 (push_class_level_binding): Ajust comments to reflect reality.
922 Set IDENTIFIER_CLASS_VALUE when replacing an existing binding.
923 Don't set TREE_VALUE on the class_shadowed list.
924
23d4e4cc 9252001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
9c96f3f8
AJ
926
927 * decl2.c (acceptable_java_type): Allow references too.
23d4e4cc
APB
928 * init.c (build_java_class_ref): When using the new ABI, search
929 `class$' and have it mangled with `mangle_decl.'
930 * mangle.c (write_java_integer_type_codes): New function.
931 (write_builtin_type): Detect and mangle Java integer and real
932 types.
9c96f3f8 933
0c58da3e
MM
9342001-01-07 Mark Mitchell <mark@codesourcery.com>
935
936 * decl2.c (grokfield): Don't accept `asm' specifiers for
937 non-static data members.
938
45b8ddb4
KG
9392001-01-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
940
941 * expr.c (cplus_expand_expr): Don't reset `target'.
942
96302433
NB
9432001-01-07 Neil Booth <neil@daikokuya.demon.co.uk>
944
945 * cp/decl2.c (cxx_post_options): Call cpp_post_options.
946
220bce48
NS
9472001-01-05 Nathan Sidwell <nathan@codesourcery.com>
948
949 * parse.y (template_datadef): Check for error_mark_node.
950
bfa2cb33
NS
9512001-01-05 Nathan Sidwell <nathan@codesourcery.com>
952
953 * cp-tree.def (DEFAULT_ARG): Make `x' class.
954
eaa7c03f
JM
9552001-01-04 Joseph S. Myers <jsm28@cam.ac.uk>
956
957 * decl.c (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Don't define.
958 (record_builtin_type): Make non-static.
959 (flag_short_double): Don't declare.
960 (init_decl_processing): Remove the creation of many tree nodes now
961 in c_common_nodes_and_builtins.
962 (build_void_list_node): New function.
963 * decl2.c (flag_short_double, flag_short_wchar): Don't define.
964 * cp-tree.h (flag_short_wchar): Don't declare.
965
3af4c257
MM
9662001-01-04 Mark Mitchell <mark@codesourcery.com>
967
968 * call.c (build_conv): Don't use build1 for USER_CONV.
969 * pt.c (tsubst_copy): Or for PREINCREMENT_EXPR and similar nodes.
970
03dc0325
JM
9712001-01-03 Joseph S. Myers <jsm28@cam.ac.uk>
972
973 * lex.c (lang_init): Call c_common_lang_init.
974
3c505507
NS
9752001-01-03 Nathan Sidwell <nathan@codesourcery.com>
976
977 * search.c (lookup_fnfields_here): Remove.
978 (look_for_overrides_r): Use lookup_fnfields_1.
979 Ignore functions from using declarations.
980
03378143
NS
9812001-01-03 Nathan Sidwell <nathan@codesourcery.com>
982
983 Implement exceptions specifiers for implicit member functions.
984 * cp-tree.h (merge_exceptions_specifiers): Declare new function.
985 * method.c (synthesize_exception_spec): New function.
986 (locate_dtor, locate_ctor, locate_copy): New functions.
987 (implicitly_declare_fn): Generate the exception spec too.
988 * search.c (check_final_overrider): Check artificial functions
989 too.
9c96f3f8 990 * typeck2.c (merge_exception_specifiers): New function.
03378143 991
f30efcb7
JM
9922001-01-03 Jason Merrill <jason@redhat.com>
993
994 * init.c (build_default_init): New fn.
995 (perform_member_init): Split out from here.
996 (build_new_1): Use it. Simplify initialization logic.
997 (build_vec_init): Take an array, rather than a pointer and maxindex.
998 Speed up simple initializations. Don't clean up if we're assigning.
999 * cp-tree.h: Adjust.
1000 * decl2.c (do_static_initialization): Remove TREE_VEC case.
1001 * parse.y (new_initializer): Return void_zero_node for ().
1002 * typeck.c (build_modify_expr): Handle getting a CONSTRUCTOR.
1003 * typeck2.c (digest_init): Only complain about user-written
1004 CONSTRUCTORs.
1005
a412bf75
MS
10062000-12-22 Mike Stump <mrs@wrs.com>
1007
1008 * decl2.c: (max_tinst_depth): Increase to 50.
1009
4890c2f4
MM
10102001-01-02 Mark Mitchell <mark@codesourcery.com>
1011
1012 * class.c (invalidate_class_lookup_cache): Zero the
1013 previous_class_values.
1014 * cp-tree.h (TMPL_PARMS_DEPTH): Use TREE_INT_CST_LOW, not
1015 TREE_INT_CST_HIGH.
1016 (CLASSTYPE_TEMPLATE_LEVEL): Likewise.
1017 * decl.c (free_bindings): New variable.
1018 (push_binding): Don't create a new binding if we have one on the
1019 free list.
1020 (pop_binding): Put old bindings on the free list.
1021 (init_decl_processing): Use size_int, not build_int_2.
1022 Register free_bindings as a GC root.
1023 (cp_make_fname_decl): Use size_int, not build_int_2.
1024 (push_inline_template_parms_recursive): Likewise.
1025 (end_template_parm_list): Likewise.
1026 (for_each_tempalte_parm): Do not use walk_tree_without_duplicates.
1027 (tsubst_template_parms): Use size_int, not build_int_2.
1028 (tsubst): Likewise.
1029 * rtti.c (get_vmi_pseudo_type_info): Likewise.
9c96f3f8 1030
4f78b9a8
RH
10312001-01-02 Richard Henderson <rth@redhat.com>
1032
1033 * parse.y (asm): Set ASM_INPUT_P.
1034
3c8c2a0a
JM
10352001-01-02 Jason Merrill <jason@redhat.com>
1036
96d6c610
JM
1037 * tree.c (cp_valid_lang_attribute): Don't set CLASSTYPE_COM_INTERFACE
1038 for v3 ABI.
1039
1040 * typeck.c (cp_truthvalue_conversion): New fn.
1041 * cvt.c (ocp_convert): Use it.
1042
1043 * cp-tree.h: Lose c-common.c decls.
1044
1045 * typeck.c (build_unary_op): Restore old &a.f diagnostic code.
1046 * cvt.c (convert_to_void): Use type_unknown_p.
1047
9c96f3f8 1048 * typeck.c (strip_all_pointer_quals): Also strip quals from
3c8c2a0a
JM
1049 pointer-to-member types.
1050
1051 * Make-lang.in (cp/TAGS): Use --no-globals. Ignore parse.c, and treat
1052 parse.y as C.
1053
1054 * call.c (build_new_method_call): Do evaluate the object parameter
1055 when accessing a static member.
1056 * typeck.c (build_component_ref): Likewise.
1057
d363e7bf
AJ
10582001-01-02 Andreas Jaeger <aj@suse.de>
1059
1060 * decl.c (cp_missing_noreturn_ok_p): New.
1061 (init_decl_processing): Set lang_missing_noreturn_ok_p.
1062
77f5250d
JJ
10632000-12-29 Jakub Jelinek <jakub@redhat.com>
1064
1065 * decl.c (init_decl_processing): Fix sign of wchar_type_node.
1066
31a714f6
MM
10672000-12-29 Mark Mitchell <mark@codesourcery.com>
1068
1069 * class.c (pushclass): Remove #if 0'd code.
1070 * cp-tree.h (overload_template_name): Remove.
1071 * decl.c (store_bindings): Simplify.
1072 (pop_from_top_level): Likewise.
1073 * pt.c (overload_template_name): Remove.
d363e7bf 1074 (instantiate_decl): Don't call push_to_top_level if it's not
31a714f6
MM
1075 needed.
1076
414ea4aa
MM
10772000-12-28 Mark Mitchell <mark@codesourcery.com>
1078
1079 * pt.c (register_local_specialization): Don't return a value.
1080 (lookup_template_class): Use move-to-front heuristic when looking
1081 up template instantiations.
1082 (instantiate_decl): Only push_to_top_level when we're actually
1083 going to instantiate the template.
1084
6f18f7e9
HPN
10852000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
1086
1087 * search.c (binfo_for_vtable): Return least derived class, not
1088 most. Handle secondary vtables.
1089
e5214479
JM
10902000-12-22 Jason Merrill <jason@redhat.com>
1091
3c8c2a0a
JM
1092 * pt.c (more_specialized): Don't optimize len==0.
1093 (fn_type_unification): If we're adding the return type, increase len.
1094
ebb1abc3
JM
1095 * typeck.c (build_binary_op): Fix pmf comparison logic.
1096
c939ca5f
JM
1097 * call.c (joust): Use DECL_NONSTATIC_MEMBER_FUNCTION_P, not
1098 DECL_STATIC_FUNCTION_P.
1099
e6fe680d
JM
1100 * semantics.c (genrtl_finish_function): Don't try to jump to
1101 return_label unless it exists.
1102
e5214479
JM
1103 In partial ordering for a call, ignore parms for which we don't have
1104 a real argument.
1105 * call.c (joust): Pass len to more_specialized.
1106 (add_template_candidate_real): Strip 'this', pass len.
1107 * pt.c (more_specialized): Pass len down. Lose explicit_args parm.
1108 (get_bindings_order): New fn. Pass len down.
1109 (get_bindings_real): Strip 'this', pass len.
1110 (fn_type_unification): Likewise.
1111 (type_unification_real): Succeed after checking 'len' args.
1112 (most_specialized_instantiation): Lose explicit_args parm.
d363e7bf 1113 * class.c (resolve_address_of_overloaded_function): Strip 'this',
e5214479
JM
1114 pass len.
1115
11162000-12-21 Jason Merrill <jason@redhat.com>
477f6664
JM
1117
1118 * pt.c (tsubst_decl): A FUNCTION_DECL has DECL_RESULT, not
1119 DECL_TEMPLATE_RESULT.
1120
1121 * search.c (lookup_field_r): Call lookup_fnfields_1, not
1122 lookup_fnfields_here.
1123
1124 * parse.y (typename_sub2): Return the TYPE_DECL, not the type.
1125
1126 * call.c (build_object_call): Also allow conversions that return
1127 reference to pointer to function.
1128 (add_conv_candidate): Handle totype being ref to ptr to fn.
1129 (build_field_call): Also allow members of type reference to function.
1130 Lose support for calling pointer to METHOD_TYPE fields.
1131
1132 * error.c (dump_expr): Handle *_CAST_EXPR.
1133
1134 * typeck2.c (build_scoped_ref): Always convert to the naming class.
1135
1136 * tree.c (break_out_cleanups): Lose.
1137 * cp-tree.h: Remove prototype.
1138 * typeck.c (build_component_ref): Don't break_out_cleanups.
1139 (build_compound_expr): Likewise.
1140 * semantics.c (finish_expr_stmt): Likewise.
1141
3e4d04a1
RH
11422000-12-20 Richard Henderson <rth@redhat.com>
1143
1144 * cp-tree.h: Update declarations.
1145 * decl.c (finish_case_label): Return the new stmt node.
1146 * semantics.c (finish_goto_stmt): Likewise.
1147 (finish_expr_stmt, finish_return_stmt): Likewise.
1148 (finish_break_stmt, finish_continue_stmt): Likewise.
1149 (finish_asm_stmt): Likewise.
1150 * parse.y (already_scoped_stmt): Set STMT_LINENO.
1151 (compstmt, implicitly_scoped_stmt, stmt): Likewise.
1152 (simple_if, simple_stmt): Return the new stmt node.
1153 (save_lineno): New.
1154
20d380b1
JM
11552000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
1156
1157 * cp-tree.h: Don't declare warn_long_long.
1158
221c7a7f
KL
11592000-12-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1160
1161 * tree.c (no_linkage_helper): Use CLASS_TYPE_P instead of
1162 IS_AGGR_TYPE.
1163
b429fdf0
KL
11642000-12-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1165
1166 * pt.c (unify): Handle when both ARG and PARM are
1167 BOUND_TEMPLATE_TEMPLATE_PARM.
1168
c2beae77
KL
11692000-12-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1170
1171 * pt.c (reduce_template_parm_level): Set DECL_ARTIFICIAL and
1172 DECL_TEMPLATE_PARM_P.
1173
c3e899c1
JM
11742000-12-15 Jason Merrill <jason@redhat.com>
1175
96790071
JM
1176 * init.c (build_new_1): Reorganize. Now with 100% fewer SAVE_EXPRs!
1177
8d42565b
JM
1178 * init.c (build_new_1): Don't strip quals from type.
1179
fab09a24
JM
1180 * decl.c (pushdecl): Don't check for linkage on a non-decl.
1181
c3e899c1
JM
1182 * call.c (build_op_delete_call): See through ARRAY_TYPEs.
1183
1184 * call.c (build_new_function_call): Lose space before paren in
1185 error message.
1186 (build_new_method_call): Likewise.
1187
1188 * typeck2.c (build_m_component_ref): Propagate quals from datum.
1189
edac124d
KL
11902000-12-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1191
1192 * pt.c (check_explicit_specialization): Propagate default
1193 function arguments to explicit specializations.
1194
31750649 11952000-12-13 DJ Delorie <dj@redhat.com>
8d3b081e
DD
1196
1197 * typeck.c (build_binary_op): Do signed/unsigned warnings for >?
1198 and <? operators.
1199
5e818b93
JM
12002000-12-08 Jason Merrill <jason@redhat.com>
1201
1202 * error.c (dump_function_name): Don't let the user see __comp_ctor.
1203
1204 Clean up copy-initialization in overloading code.
1205 * call.c (build_user_type_conversion_1): Die if we are asked to
1206 convert to the same or a base type.
1207 (implicit_conversion): Avoid doing so. Lose reference binding code.
1208 (convert_like_real): Treat BASE_CONV and RVALUE_CONV as implicit
1209 direct-initialization. Also do direct-init part of copy-init.
1210 (build_user_type_conversion): Don't provide context to convert_like.
1211 * cvt.c (ocp_convert): build_user_type_conversion will now provide
1212 the constructor call for copy-init.
1213
1214 * pt.c (tsubst_decl): Call clone_function_decl here if this is an
1215 instantiation of a member template.
1216 (do_decl_instantiation): Not here.
1217
38da6039
NS
12182000-12-07 Nathan Sidwell <nathan@codesourcery.com>
1219
1220 * class.c (check_field_decls): Don't special case anonymous
1221 fields in error messages.
c9407e4c 1222 (note_name_declared_in_class): Use %D on diagnostic.
d363e7bf 1223
38da6039
NS
1224 * tree.c (pod_type_p): Use strip_array_types.
1225 (cp_valid_lang_attribute): Likewise.
1226 * typeck.c (cp_type_quals): Strip arrays separately, to avoid
1227 multiple evaluations.
d363e7bf 1228 (cp_has_mutable_p): Use strip_array_types.
38da6039 1229
a11d04b5
NS
12302000-12-07 Nathan Sidwell <nathan@codesourcery.com>
1231
1232 * cp-tree.h (sufficient_parms_p): Declare new function.
1233 * call.c (sufficient_parms_p): New function, broken out of ...
1234 (add_function_candidate): ... here. Use it.
1235 (add_conv_candidate): Use it.
1236 * decl.c (grok_ctor_properties): Use it.
1237
5eec2847
JJ
12382000-12-07 Jakub Jelinek <jakub@redhat.com>
1239
1240 * optimize.c (copy_body_r): Set STMT_IS_FULL_EXPR_P on EXPR_STMT.
1241
c907e684
JM
12422000-12-07 Joseph S. Myers <jsm28@cam.ac.uk>
1243
1244 * decl2.c (lang_decode_option): Handle -Wformat-security.
1245
74601d7c
KL
12462000-12-06 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1247
1248 * pt.c (verify_class_unification): New function.
1249 (get_class_bindings): Use it.
1250 (try_class_unification): Tidy.
1251 (unify): Handle when argument of a template-id is not
1252 template parameter dependent.
1253 (template_args_equal): Handle when TREE_CODE's do not match.
1254
8954e858
AO
12552000-12-06 Alexandre Oliva <aoliva@redhat.com>
1256
1257 * lang-specs.h (c++): When invoking the stand-alone preprocessor
1258 for -save-temps, pass all relevant -Defines to it, and then don't
1259 pass them to cc1plus.
1260
3dc9aec6
WC
12612000-12-05 Will Cohen <wcohen@redhat.com>
1262
1263 * decl.c (finish_case_label): Cleared
1264 more_cleanups_ok in surrounding function scopes.
1265 (define_label): Likewise.
1266
cbb40945
NS
12672000-12-05 Nathan Sidwell <nathan@codesourcery.com>
1268
1269 * cp-tree.h (IDENTIFIER_VIRTUAL_P): Document.
1270 (get_matching_virtual): Remove.
1271 (look_for_overrides): Declare new function.
1272 * decl.c (grokfndecl): Don't set IDENTIFIER_VIRTUAL_P or
1273 DECL_VINDEX here.
1274 * class.c (check_for_override): Move base class iteration code
1275 to look_for_overrides.
1276 * search.c (next_baselink): Remove.
1277 (get_virtuals_named_this): Remove.
1278 (get_virtual_destructor): Remove.
1279 (tree_has_any_destructors_p): Remove.
1280 (struct gvnt_info): Remove.
1281 (check_final_overrider): Remove `virtual' from error messages.
1282 (get_matching_virtuals): Remove. Move functionality to ...
1283 (look_for_overrides): ... here, and ...
1284 (look_for_overrides_r): ... here. Set DECL_VIRTUAL_P, if found
1285 to be overriding.
1286
61402b80
NS
12872000-12-05 Nathan Sidwell <nathan@codesourcery.com>
1288
1289 * typeck.c (get_delta_difference): If via a virtual base,
1290 return zero.
1291 * cvt.c (cp_convert_to_pointer): If via a virtual base, do no
1292 adjustment.
1293
39abc9a6
RH
12942000-12-04 Richard Henderson <rth@redhat.com>
1295
1296 * error.c (dump_tree): Use output_add_string not OB_PUTS.
1297
c00996a3
JM
12982000-12-04 Jason Merrill <jason@redhat.com>
1299
1300 * mangle.c (write_type): Mangle VECTOR_TYPE with "U8__vector".
d363e7bf 1301 (write_builtin_type): Pass intSI_type_node and the like through
c00996a3
JM
1302 type_for_mode.
1303 * method.c (process_overload_item): Mangle VECTOR_TYPEs with 'o'.
1304 Pass intSI_type_node and the like through type_for_mode.
1305 * decl2.c (arg_assoc_type): Handle VECTOR_TYPE like COMPLEX_TYPE.
1306 * pt.c (tsubst, unify): Likewise.
1307 * tree.c (walk_tree): Likewise.
1308 * error.c (dump_type): Likewise.
1309 (dump_type_prefix, dump_type_suffix): Don't bother with VECTOR_TYPE.
d363e7bf 1310
c00996a3
JM
1311 * Make-lang.in: Tweak top comment for emacs.
1312 (cp/TAGS): Restore.
1313
1314 * except.c (expand_throw): Use push_throw_library_fn for _Jv_Throw.
1315
c00996a3
JM
1316 * class.c (clone_function_decl): Robustify.
1317
13182000-12-04 Michael Matz <matzmich@cs.tu-berlin.de>
1319
1320 * decl.c (store_bindings): Only search in the non modified
1321 old_bindings for duplicates.
1322
00bb3dad
NS
13232000-12-04 Nathan Sidwell <nathan@codesourcery.com>
1324
1325 * error.c (dump_function_decl): Use DECL_VIRTUAL_P, not
1326 TYPE_POLYMORPHIC_P.
d363e7bf 1327
00bb3dad
NS
1328 * typeck.c (build_static_cast): Remove unused variable.
1329
dc957d14
KL
13302000-12-01 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1331
1332 * pt.c: Fix typo in comment.
1333
4d808927
JM
13342000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
1335
1336 * decl2.c (warn_format): Remove definition.
1337 (lang_decode_option): Handle -Wformat-nonliteral,
1338 -Wno-format-extra-args and -Wno-format-y2k. Use set_Wformat.
1339
5fd8e536
JM
13402000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
1341
1342 * decl.c (WINT_TYPE, INTMAX_TYPE, UINTMAX_TYPE): Don't define.
1343 (init_decl_processing): Don't create string_type_node,
1344 const_string_type_node, wint_type_node, intmax_type_node,
1345 uintmax_type_node, default_function_type, ptrdiff_type_node and
1346 unsigned_ptrdiff_type_node. Adjust position of call to
1347 c_common_nodes_and_builtins.
1348 (identifier_global_value): New function.
1349
13f9714b
NS
13502000-12-01 Nathan Sidwell <nathan@codesourcery.com>
1351
1352 * call.c (standard_conversion): Reject pointer to member
1353 conversions from ambiguous, inaccessible or virtual bases.
1354 * typeck.c (build_static_cast): Don't check pointers to members
1355 specially.
1356
31b1b957
NS
13572000-11-30 Nathan Sidwell <nathan@codesourcery.com>
1358
1359 * method.c (do_build_copy_constructor): Preserve cv
1360 qualifications when accessing source object members.
1361 (do_build_assign_ref): Likewise. Remove separate diagnostics for
1362 unnamed fields.
1363
717e3f73
NS
13642000-11-30 Nathan Sidwell <nathan@codesourcery.com>
1365
1366 * method.c (do_build_assign_ref): Construct appropriately
1367 CV-qualified base reference. Don't allow const casts in base
1368 conversion.
1369
2c92b94d
NS
13702000-11-30 Nathan Sidwell <nathan@codesourcery.com>
1371
1372 * call.c (build_over_call): Use VOID_TYPE_P. Don't die on
1373 incomplete return type.
1374
bb92901d
NS
13752000-11-28 Nathan Sidwell <nathan@codesourcery.com>
1376
1377 * parse.y (base_class.1): Produce a _TYPE not a _DECL.
1378 * semantics.c (finish_base_specifier): Accept a _TYPE not a
1379 _DECL.
1380
2f3608c3
NS
13812000-11-28 Nathan Sidwell <nathan@codesourcery.com>
1382
1383 * spew.c (yyerror): Cope if yylval.ttype is NULL.
1384
eeb75383
NS
13852000-11-28 Nathan Sidwell <nathan@codesourcery.com>
1386
1387 * decl.c (grokdeclarator): Diagnose undefined template contexts.
1388
5ee4cc26
NS
13892000-11-28 Nathan Sidwell <nathan@codesourcery.com>
1390
1391 * decl.c (grokdeclarator): Do type access control on friend
1392 class.
1393
76e57b45
NS
13942000-11-27 Nathan Sidwell <nathan@codesourcery.com>
1395
1396 * decl.c (grokfndecl): Undo COMPONENT_REF damage caused by
1397 bison parser ickiness.
1398 * pt.c (tsubst_friend_function): Enter namespace scope when
1399 tsubsting the function name.
1400 * cp-tree.h (DECL_TI_TEMPLATE): Update comment to reflect reality.
1401
f9825168
NS
14022000-11-27 Nathan Sidwell <nathan@codesourcery.com>
1403
1404 * cp-tree.h (binfo_from_vbase): Return the virtual base's binfo.
1405 * cvt.c (cp_convert_to_pointer): Add force parameter.
1406 Allow conversions via virtual base if forced.
1407 (convert_to_pointer_force): Adjust call to cp_convert_to_pointer.
1408 (ocp_convert): Likewise.
1409 * search.c (binfo_from_vbase): Return the virtual base's binfo.
1410 * typeck.c (get_delta_difference): Adjust handling of virtual
1411 bases.
1412
9ccb25d5
MM
14132000-11-26 Mark Mitchell <mark@codesourcery.com>
1414
1415 * tree.c (struct list_hash): Remove.
1416 (list_hash_table): Make it be an htab.
1417 (struct list_proxy): New type.
1418 (list_hash_eq): New function.
1419 (list_hash_pieces): Renamed from ...
1420 (list_hash): ... this.
1421 (list_hash_lookup): Remove.
1422 (list_hash_add): Remove.
1423 (hash_tree_cons): Use the generic hashtable.
1424 (mark_list_hash): Remove.
1425 (init_tree): Create the hashtable.
1426
9399bad3
JM
14272000-11-25 Joseph S. Myers <jsm28@cam.ac.uk>
1428
1429 * method.c (build_mangled_C9x_name): Rename to
1430 build_mangled_C99_name. Change C9X references in comments to
1431 refer to C99.
1432
2f401cc8
NS
14332000-11-24 Nathan Sidwell <nathan@codesourcery.com>
1434
1435 * parse.y (unary_expr): Move VA_ARG from here ...
1436 (primary): ... to here.
1437
3d7e9ba4
NS
14382000-11-24 Nathan Sidwell <nathan@codesourcery.com>
1439
1440 * semantics.c (finish_id_expr): If type is error_mark, return
1441 error_mark.
1442
ab097535
NS
14432000-11-23 Nathan Sidwell <nathan@codesourcery.com>
1444
1445 * pt.c (lookup_template_class): Simplify loop exit constructs.
1446 Cope when there is no partial instantiation of a template
1447 template member.
1448
9196ece5
R
1449Thu Nov 23 02:16:47 2000 J"orn Rennecke <amylaar@redhat.com>
1450
1451 * Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H).
1452
cac78ea2
MM
14532000-11-22 Mark Mitchell <mark@codesourcery.com>
1454
6e1b44bc
MM
1455 * mangle.c (mangle_conv_op_name_for_type): Don't use `__op'
1456 prefix.
1457
cac78ea2
MM
1458 * pt.c (do_decl_instantiate): Explicitly clone constructors and
1459 destructors that haven't already been cloned.
1460
3aac38d7
RH
14612000-11-20 Richard Henderson <rth@redhat.com>
1462
1463 * parse.y (yyparse_1): Rename the parser entry point.
1464
14652000-11-20 Alex Samuel <samuel@codesourcery.com>
beac9b93
AS
1466
1467 * mangle.c (write_name): Use <unscoped-name> for names directly in
1468 function scope.
1469 (write_unscoped_name): Accept names directly in function scope.
d363e7bf 1470
447306fa
NS
14712000-11-20 Nathan Sidwell <nathan@codesourcery.com>
1472
1473 * lex.c (rid_to_yy, RID_EXPORT): Make unique keyword.
1474 * parse.y (extdef): Add EXPORT reduction.
1475 * spew.c (yylex): Don't skip export here.
1476
2650255a
MM
14772000-11-19 Mark Mitchell <mark@codesourcery.com>
1478
1479 * decl.c (init_decl_processing): Correct name of pure virtual
1480 function under the new ABI.
1481 * rtti.c (throw_bad_cast): Likewise, for bad cast function.
1482 (throw_bad_typeid): Likewise for bad typeid function.
1483
0657c69c
MM
14842000-11-18 Mark Mitchell <mark@codesourcery.com>
1485
04f3dc2b
MM
1486 * decl.c (grokparms): Don't even function types of `void' type,
1487 either.
1488 * mangle.c (write_type): Don't crash when confronted with the
1489 error_mark_node.
1490
0657c69c
MM
1491 * decl.c (grokparms): Don't create parameters of `void' type.
1492
a8a05998
ZW
14932000-11-17 Zack Weinberg <zack@wolery.stanford.edu>
1494
1495 * lex.c (mark_impl_file_chain): Delete.
1496 (init_parse): Remove call to ggc_add_string_root. No need to
1497 ggc_strdup a string constant. Do not add impl_file_chain to GC
1498 roots.
1499 (handle_pragma_implementation): No need to ggc_strdup main_filename.
1500
35728a80
NS
15012000-11-17 Nathan Sidwell <nathan@codesourcery.com>
1502
1503 * pt.c (tsubst_expr, DECL_STMT): Instantiate decl's type.
1504
5cce22b6
NS
15052000-11-17 Nathan Sidwell <nathan@codesourcery.com>
1506
1507 * cp-tree.h (PARMLIST_ELLIPSIS_P): New macro.
1508 * decl.c (grokdeclarator): Don't reject void parms here.
1509 (require_complete_types_for_parms): Simplify, use
1510 complete_type_or_else.
1511 (grokparms): Remove bitrot. Remove funcdef parm.
1512 Deal with ellipsis parm lists here.
1513 * semantics.c (finish_parmlist): Don't append void_list_node
1514 here. Set PARMLIST_ELLIPSIS_P.
1515
146c8d60
NS
15162000-11-17 Nathan Sidwell <nathan@codesourcery.com>
1517
1518 * typeck2.c (incomplete_type_error): Reorganise to avoid
1519 excessive diagnostics.
1520
520a57c8
ZW
15212000-11-16 Zack Weinberg <zack@wolery.stanford.edu>
1522
1523 * lex.c (struct impl_files, internal_filename): Constify a char *.
1524
43048a06
MM
15252000-11-16 Mark Mitchell <mark@codesourcery.com>
1526
1527 * mangle.c (write_special_name_constructor): Don't generate
1528 assembler junk when confronted with an old-style constructor.
1529 (write_special_name_destructor): Likewise.
1530 (mangle_decl_string): Do it here instead.
1531
cdb71673
NS
15322000-11-16 Nathan Sidwell <nathan@codesourcery.com>
1533
1534 * call.c (op_error): Make error messages clearer.
1535
62136084
MM
15362000-11-15 Mark Mitchell <mark@codesourcery.com>
1537
1538 * decl.c (wrapup_globals_for_namespace): Don't mark things
1539 TREE_ASM_WRITTEN when they're not.
1540
ee3400e8
JM
15412000-11-15 Jason Merrill <jason@redhat.com>
1542
1543 * typeck2.c (friendly_abort): Uncount the error before handing
1544 off to fancy_abort.
1545
71631a1f
NS
15462000-11-15 Nathan Sidwell <nathan@codesourcery.com>
1547
1548 * typeck.c (lookup_anon_field): Cope with qv qualifiers.
1549
79cda2d1
MM
15502000-11-14 Mark Mitchell <mark@codesourcery.com>
1551
1552 * class.c (build_vtbl_initializer): Fix typo in comment.
1553 * typeck.c (expr_sizeof): Don't crash on errors.
1554
2567bc56
JW
15552000-11-14 Jim Wilson <wilson@redhat.com>
1556
1557 * lang-specs.h: Add %2 after %(cc1_options).
1558
8422942c
RH
15592000-11-14 Richard Henderson <rth@redhat.com>
1560
1561 * typeck.c (c_sizeof): Be strict about casting result value
1562 back to c_size_type_node.
1563 (expr_sizeof, c_sizeof_nowarn, c_alignof): Likewise.
1564
19552aa5
JM
15652000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
1566
1567 * typeck.c (build_unary_op): Use boolean_increment from
1568 c-common.c, moving the relevant code there.
1569
d96a6d1a
JM
15702000-11-11 Jason Merrill <jason@redhat.com>
1571
1572 * typeck.c (mark_addressable): Don't call put_var_into_stack.
492cca24
JM
1573
1574 * decl.c (maybe_commonize_var): Set DECL_UNINLINABLE for statics
1575 in inlines.
1576
4e135bdd
KG
15772000-11-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1578
1579 * decl.c (grokdeclarator, save_function_data): Use memcpy, not bcopy.
1580 * lex.c (copy_lang_decl): Likewise.
1581
0a7394bc
MM
15822000-11-09 Mark Mitchell <mark@codesourcery.com>
1583
13507bd8
MM
1584 * dump.c (cp_dump_tree): Don't dump function bodies here.
1585
0a7394bc
MM
1586 * Make-lang.in (CXX_C_OBJS): Add c-dump.o.
1587 (dump.o): Update dependency list.
1588 * cp-tree.h (DECL_MAYBE_TEMPLATE): Remove.
1589 (flag_dump_translation_unit): Likewise.
1590 (CP_TYPE_QUALS): Adjust definition.
1591 (DECL_C_BIT_FIELD): Remove.
1592 (SET_DECL_C_BIT_FIELD): Likewise.
1593 (CLEAR_DECL_C_BIT_FIELD): Likewise.
1594 (add_maybe_template): Likewise.
1595 (strip_array_types): Likewise.
1596 (dump_node_to_file): Likewise.
1597 (cp_dump_tree): New function.
1598 * decl.c (init_decl_processing): Set lang_dump_tree.
1599 * decl2.c (flag_dump_translation_unit): Remove.
1600 * dump.c: Move most of it to ../c-dump.c.
1601 (cp_dump_tree): New function.
1602 * pt.c (add_maybe_template): Remove.
1603 * typeck.c (strip_array_types): Likewise.
a8a05998 1604
5362b086
EC
16052000-11-07 Eric Christopher <echristo@redhat.com>
1606
492cca24
JM
1607 * decl.c (init_decl_processing): Change definition of
1608 __wchar_t to wchar_t. Remove artificial declaration of
1609 wchar_t.
1610 * lex.c: Change instances of __wchar_t to wchar_t.
5362b086 1611
5361cbb7
NS
16122000-11-09 Nathan Sidwell <nathan@codesourcery.com>
1613
1614 * lex.c (do_identifier): Don't lookup_name for operators.
1615 * parse.y (operator): Save looking_for_typename.
1616 (unoperator): Restore it.
1617 * spew.c (frob_opname): Use nth_token for lookahead.
1618
36791f1e
NS
16192000-11-08 Nathan Sidwell <nathan@codesourcery.com>
1620
1621 * decl.c (grok_op_properties): Always use coerce_new_type and
1622 coerce_delete_type.
1623 * decl2.c (coerce_new_type): Use c_size_type_node. Preserve
1624 exception specification. Tidy up.
1625 (coerce_delete_type): Preserve exception specification. Tidy up.
1626
961192e1
JM
16272000-11-07 Joseph S. Myers <jsm28@cam.ac.uk>
1628
1629 * class.c (duplicate_tag_error, build_vtbl_initializer), decl.c
1630 (push_binding_level), error.c (cp_tree_printer), pt.c
1631 (process_partial_specialization, tsubst_template_arg_vector),
1632 search.c (lookup_member): Use memset () instead of bzero ().
1633
d48ebde1
NS
16342000-11-07 Nathan Sidwell <nathan@codesourcery.com>
1635
1636 * decl.c (build_ptrmemfunc_type): Allow error_mark_node.
1637
436a88a6
JM
16382000-11-05 Joseph S. Myers <jsm28@cam.ac.uk>
1639
1640 * Make-lang.in (c++.distdir): Remove.
1641
7a4e5091
MM
16422000-11-04 Mark Mitchell <mark@codesourcery.com>
1643
1644 * decl2.c (do_nonmember_using_decl): Allow `extern "C"'
1645 declarations from different namespaces to be combined.
1646
0e9295cf
ZW
16472000-11-03 Zack Weinberg <zack@wolery.stanford.edu>
1648
1649 * decl.c: Include tm_p.h.
1650
da61dec9
JM
16512000-11-03 Joseph S. Myers <jsm28@cam.ac.uk>
1652
1653 * tree.c (cp_tree_equal): Use memcmp () instead of bcmp ().
1654
9473c522
JM
16552000-11-02 Joseph S. Myers <jsm28@cam.ac.uk>
1656
1657 * dump.c (dequeue_and_dump), lex.c (interface_strcmp), method.c
1658 (build_overload_value), repo.c (open_repo_file), xref.c
1659 (open_xref_file): Use strchr () and strrchr () instead of index ()
1660 and rindex ().
1661
b0b3afb2
BS
16622000-11-01 Bernd Schmidt <bernds@redhat.co.uk>
1663
1664 * call.c (build_over_call): Call fold on the CALL_EXPR.
1665
faafaee6
GDR
16662000-11-01 Gabriel Dos Reis <gdr@codesourcery.com>
1667
1668 * error.c (dump_template_decl): Separate template hearders with
1669 space not comma.
1670
761f0855
GDR
16712000-10-31 Gabriel Dos Reis <gdr@codesourcery.com>
1672
1673 * error.c: Move TFF_ macros into cp-tree.h. Throughout, replace
1674 TS_* flags with corresponding TFF_*. Adjust prototypes of
1675 functions (which used to take a tree_string_flags) to take an int.
1676
1677 * cp-tree.h (enum tree_string_flags): Remove
1678 (TFF_PLAIN_IDENTIFIER, TFF_NAMESPACE_SCOPE, TFF_CLASS_SCOPE,
1679 TFF_CHASE_NAMESPACE_ALIAS, TFF_CHASE_TYPEDEF, TFF_DECL_SPECIFIERS,
1680 TFF_CLASS_KEY_OR_ENUM, TFF_RETURN_TYPE,
1681 TFF_FUNCTION_DEFAULT_ARGUMENTS, TFF_EXCEPTION_SPECIFICATION,
1682 TFF_TEMPLATE_HEADER, TFF_TEMPLATE_DEFAULT_ARGUMENTS,
1683 TFF_TEMPLATE_NAME, TFF_EXPR_IN_PARENS, TFF_SCOPE): New macros.
1684 (type_as_string, decl_as_string, expr_as_string,
1685 context_as_string): Adjust prototype.
1686
1687 * class.c (dump_class_hierarchy_r): Use TFF_PLAIN_IDENTIFIER
1688 instead of TS_PLAIN.
1689
1690 * pt.c (mangle_class_name_for_template): Use TFF_CHASE_TYPEDEF
1691 instead of TF_CHASE_TYPEDEFS. Use TFF_PLAIN_IDENTIFIER instead of
1692 plain `0'.
1693
ad50e811
MM
16942000-10-30 Mark Mitchell <mark@codesourcery.com>
1695
1696 * cp-tree.h (DECL_EXTERNAL_LINKAGE_P): New macro.
1697 (linkage_kind): New enumeration.
1698 (decl_linkage): New function.
1699 * decl2.c (comdat_linkage): Extend comment.
1700 * error.c (dump_function_decl): Print the arguments used to
1701 instantiate a template, even when not printing the type of the
1702 function.
1703 * pt.c (convert_nontype_argument): Use DECL_EXTERNAL_LINKAGE_P,
1704 not TREE_PUBLIC, to test for external linkage.
1705 * tree.c (decl_linkage): New function.
1706
930cd796
MM
17072000-10-28 Mark Mitchell <mark@codesourcery.com>
1708
1709 * pt.c (instantiate_decl): Always instantiate static data members
1710 initialized in-class.
1711
b8dad04b
ZW
17122000-10-27 Zack Weinberg <zack@wolery.stanford.edu>
1713
1714 * Make-lang.in: Move all build rules here from Makefile.in,
1715 adapt to new context. Wrap all rules that change the current
1716 directory in parentheses. Expunge all references to $(P).
1717 When one command depends on another and they're run all at
1718 once, use && to separate them, not ;. Add OUTPUT_OPTION to
1719 all object-file generation rules. Delete obsolete variables.
1720
1721 * Makefile.in: Delete.
1722 * config-lang.in: Delete outputs= line.
1723
5f9cd837
GDR
17242000-10-26 Gabriel Dos Reis <gdr@codesourcery.com>
1725
1726 * error.c (dump_function_decl): Print no space between
1727 `ptr-operator' the `type-specifier' of the return type.
1728 (dump_type_prefix): Make sure we put space at the appropriate
5362b086 1729 place.
5f9cd837 1730
6c6ed0ef
JM
17312000-10-23 Jason Merrill <jason@redhat.com>
1732
1733 * call.c (equal_functions): Also call decls_match for extern "C" fns.
1734
17352000-10-22 Jason Merrill <jason@redhat.com>
1736
1737 * call.c (build_conditional_expr): Use ocp_convert to force
1738 rvalue conversion.
1739
e36308b0
MM
17402000-10-22 Mark Mitchell <mark@codesourcery.com>
1741
583ca5a0
MM
1742 * call.c (standard_conversion): Use RVALUE_CONVs for all
1743 expressions that satisfy lvalue_p, not just those that satisfy
1744 real_lvalue_p.
1745
f9808f81
MM
1746 * optimize.c (copy_body_r): Don't treat CALL_EXPRs specially.
1747
5362b086 1748 * typeck.c (c_sizeof): Return an expression of `size_t' type,
e36308b0
MM
1749 not one with TYPE_IS_SIZETYPE set.
1750 (dubious_conversion_warnings): Remove special-case code.
1751
3b9ae6f0
GK
17522000-10-21 Geoffrey Keating <geoffk@cygnus.com>
1753
7a0f14e5
GK
1754 * decl2.c (arg_assoc_type): Handle VECTOR_TYPE.
1755 * error.c (dump_type): Handle VECTOR_TYPE like POINTER_TYPE.
1756 (dump_type_prefix): Print vector-of-int as 'int vector'.
1757 (dump_type_suffix): Handle VECTOR_TYPE like POINTER_TYPE.
1758 * tree.c (walk_tree): Handle VECTOR_TYPE.
1759
3b9ae6f0 1760 * decl.c (init_decl_processing): Call MD_INIT_BUILTINS.
5362b086 1761
aca77bd1
JM
17622000-10-21 Jason Merrill <jason@redhat.com>
1763
1764 * parse.y (operator): Set got_object from got_scope.
1765 Set looking_for_typename.
1766 * decl.c (lookup_name_real): Clear val after setting from_obj.
1767 Reorganize diagnostic.
1768
ba523395
JM
17692000-10-20 Jason Merrill <jason@redhat.com>
1770
1771 * tree.c (walk_tree): Don't walk into default args.
1772
1773 * error.c (dump_expr): Use host_integerp.
1774
2e44948d
DE
17752000-10-20 David Edelsohn <edelsohn@gnu.org>
1776
1777 * typeck2.c (abstract_virtuals_error): Use "because" instead of
1778 "since" in error message.
1779
44475138
RK
1780Fri Oct 20 13:54:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1781
1782 * typeck.c (dubious_conversion_warning): Suppress if TYPE_IS_SIZETYPE.
1783
11306230
JO
17842000-10-20 Jeffrey Oldham <oldham@codesourcery.com>
1785
1786 * decl.c (revert_static_member_fn): Fixed typo.
1787
97ba1e3c
MM
17882000-10-19 Mark Mitchell <mark@codesourcery.com>
1789
c20118a8
MM
1790 * class.c (subobject_offset_fn): New type.
1791 (dfs_record_base_offsets): Remove.
1792 (record_base_offsets): Likewise.
1793 (dfs_search_base_offsets): Likewise.
1794 (record_subobject_offset): New function.
1795 (check_subobject_offset): Likewise.
1796 (walk_subobject_offsets): Likewise.
1797 (record_subobject_offsets): Likewise.
1798 (layout_conflict_p): Reimplement.
1799 (layout_nonempty_base_or_field): Correct handling of type
1800 conflicts during layout.
1801 (layout_empty_base): Likewise.
1802 (build_base_field): Adjust to handle new representation of empty
1803 base offset table.
1804 (build_base_fields): Likewise.
1805 (layout_virtual_bases): Likewise.
1806 (splay_tree_compare_integer_csts): New function.
1807 (layout_class_type): Use a splay_tree, rather than a varray, to
1808 represent the offsets of empty bases.
5362b086 1809
97ba1e3c
MM
1810 * cp-tree.h (DECL_ANTICIPATED): Don't require a FUNCTION_DECL.
1811 * decl.c (select_decl): Don't return declarations that are
1812 DECL_ANTICIPATED.
1813
6bcedb4e
MM
18142000-10-18 Mark Mitchell <mark@codesourcery.com>
1815
1816 * cp-tree.h (cp_tree_index): Add CPTI_FAKE_STD.
1817 (fake_std_node): New macro.
1818 * decl.c (in_std): Rename to ...
1819 (in_fake_std): ... this.
1820 (flag_no_builtin): Remove.
1821 (flag_no_nonansi_builtin): Likewise.
1822 (walk_namespaces_r): Use fake_std_node.
1823 (push_namespace): Use std_identifier.
1824 (pop_namespace): Use in_fake_std.
1825 (lookup_name_real): Use fake_std_node.
1826 (init_decl_processing): When -fhonor-std, create the `std'
1827 namespace. Don't create a dummy fake_std_node in that case.
1828 Adjust call to c_common_nodes_and_builtins. Use std_identifier.
1829 (builtin_function): Put builtins whose names don't begin
1830 with `_' in the std namespace.
1831 * decl2.c (flag_no_builtin): Remove.
1832 (flag_no_nonansi_builtin): Likewise.
1833 (set_decl_namespace): Use fake_std_node.
1834 (validate_nonmember_using_decl): Likewise.
1835 (do_using_directive): Likewise.
1836 (handle_class_head): Likewise.
1837 * dump.c (dequeue_and_dump): Likewise.
1838 * except.c (init_exception_processing): Use std_identifier.
1839 * init.c (build_member_call): Use fake_std_node.
1840 * rtti.c (init_rtti_processing): Use std_identifier.
5362b086 1841
67673f5c
MM
18422000-10-17 Mark Mitchell <mark@codesourcery.com>
1843
1844 * cp-tree.h (back_end_hook): Remove declaration.
1845 * decl2.c (back_end_hook): Remove definition.
1846
1847 * dump.c (dequeue_and_dump): Dump TREE_USED.
1848
8fef2e47
BL
1849Tue Oct 17 20:19:06 2000 Brad Lucier <lucier@math.purdue.edu>
1850
1851 * spew.c (snarf_defarg): Cast 2nd arg to obstack_blank to (int).
1852
652469d0
JM
18532000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
1854
1855 * decl.c (WINT_TYPE): Define.
1856 (init_decl_processing): Create types unsigned_ptrdiff_type_node,
1857 c_size_type_node, signed_size_type_node and wint_type_node.
1858
74ff4629
JM
18592000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
1860
1861 * decl2.c (warn_missing_format_attribute): New variable.
1862 (lang_decode_option): Decode -Wmissing-format-attribute.
1863
634790f4
MM
18642000-10-16 Mark Mitchell <mark@codesourcery.com>
1865
1866 * typeck.c (qualify_type): Remove.
1867 (composite_pointer_type): Fix handling of conversions to `cv void*'.
1868
bb12da9d
KG
18692000-10-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1870
1871 * Makefile.in (parse.c, parse.h): Fix think-o in last patch.
1872
4b945402
KG
18732000-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1874
1875 * Makefile.in (parse.c, parse.h): Create atomically.
1876
1f8f4a0b
MM
18772000-10-12 Mark Mitchell <mark@codesourcery.com>
1878
1879 * class.c (current_obstack): Remove.
1880 * decl.c (ggc_p): Remove.
1881 (start_decl): Don't use decl_tree_cons.
1882 (grokdeclarator): Don't use build_decl_list.
1883 (start_function): Don't use decl_tree_cons.
1884 (finish_function): Don't mess with obstacks.
1885 * decl2.c (grok_x_components): Don't use build_decl_list.
1886 * lex.c (make_call_declarator): Don't call decl_tree_cons.
1887 (implicitly_declare_fn): Don't call build_decl_list.
1888 * parse.y (frob_specs): Don't call build_decl_list or
1889 decl_tree_cons.
1890 (expr_or_declarator_intern): Don't call decl_tree_cons.
1891 (primary): Don't call build_decl_list.
1892 (fcast_or_absdcl): Likewise.
1893 (typed_declspecs): Don't call decl_tree_cons.
1894 (reserved_declspecs): Don't call build_decl_list.
1895 (declmods): Likewise.
1896 (reserved_typespecquals): Likewise.
1897 (aggr): Likewise.
1898 (new_type_id): Likewise.
1899 (cv_qualifiers): Likewise.
1900 (after_type_declarator_intern): Likewise.
1901 (notype_declarator_intern): Likewise.
1902 (absdcl_intern): Likewise.
1903 (named_parm): Likewise.
1904 * pt.c (most_specialized_class): Likewise.
1905 * repo.c (temporary_obstack): Make it a structure, not a pointer.
1906 (init_repo): Initialize it.
1907 * search.c (current_obstack): Remove.
1908 * typeck2.c (add_exception_specifier): Don't call build_decl_list.
5362b086 1909
8dc54971
RH
19102000-10-09 Richard Henderson <rth@cygnus.com>
1911
1912 * Make-lang.in (CXX_EXTRA_HEADERS): Remove.
1913 (c++ language support bits for libgcc): Remove.
1914 (c++.clean): Remove cplib2.txt cleanup.
1915 * config-lang.in (headers, lib2funcs): Remove.
1916
1917 * exception.cc, new.cc, new1.cc, new2.cc: Remove files.
1918 * tinfo.cc, tinfo.h, tinfo2.cc, vec.cc: Remove files.
1919 * inc/cxxabi.h, inc/exception, inc/new: Remove files.
1920 * inc/new.h, inc/typeinfo: Remove files.
1921
b15ad712
JM
19222000-10-08 Joseph S. Myers <jsm28@cam.ac.uk>
1923
1924 * decl.c (INTMAX_TYPE, UINTMAX_TYPE): Define if not already
1925 defined.
1926 (init_decl_processing): Initialize intmax_type_node and
1927 uintmax_type_node.
1928
156ce211
RH
19292000-10-06 Richard Henderson <rth@cygnus.com>
1930
1931 * cp-tree.h (struct cp_language_function): Remove x_result_rtx.
1932 (original_result_rtx): Remove.
1933 * decl.c (save_function_data): Don't clear x_result_rtx.
1934 (mark_lang_function): Don't mark it either.
1935 * expr.c (fixup_result_decl): Remove.
1936 * semantics.c (genrtl_named_return_value): Frob the return decl
1937 before calling emit_local_var.
1938 (genrtl_finish_function): Don't call fixup_result_decl.
1939 Always emit the jump to return_label.
1940
92777ce4
NS
19412000-10-06 Nathan Sidwell <nathan@codesourcery.com>
1942
1943 * pt.c (lookup_template_class): Set current access for enum.
1944 (tsubst_enum): Set file & line for enum decl.
5362b086 1945
92777ce4
NS
1946 * spew.c (yylex): Remove unused variable.
1947
63c16fc5
RH
19482000-10-05 Richard Henderson <rth@cygnus.com>
1949
1950 * semantics.c (genrtl_finish_function): Don't init or check
1951 can_reach_end; remove noreturn and return value checks.
1952
d1a458c4
TT
19532000-10-05 Tom Tromey <tromey@cygnus.com>
1954
1955 * init.c (build_java_class_ref): Use `build_static_name' with a
1956 suffix, not a prefix, to build the class object's name.
1957
509fc277
NS
19582000-10-05 Nathan Sidwell <nathan@codesourcery.com>
1959
1960 * cp-tree.h (access_kind): Fix comment typo.
1961 * decl2.c (grokfield): Fix diagnostic typo.
1962 * semantics.c (finish_template_type): Fix comment typo.
1963 (finish_qualified_object_call_expr): Likewise.
1964
ce2e5191
NS
19652000-10-05 Nathan Sidwell <nathan@codesourcery.com>
1966
1967 * pt.c (tsubst_expr, DECL_STMT case): Don't process if
5362b086 1968 tsubsting fails.
ce2e5191 1969
79cc5312
NS
19702000-10-05 Nathan Sidwell <nathan@codesourcery.com>
1971
1972 * spew.c (frob_id): New static function.
1973 (frob_opname): Use it.
1974 (yylex): Use it.
1975
f15b9af9
MM
19762000-10-01 Mark Mitchell <mark@codesourcery.com>
1977
1978 * decl.c (lang_mark_false_label_stack): Remove.
1979 * lex.c (cp_mang_lang_type): Use ggc_alloc_cleared.
5362b086 1980
28e6b1c2
JM
19812000-09-30 Joseph S. Myers <jsm28@cam.ac.uk>
1982
1983 * gxxint.texi: Use @email for formatting email addresses.
1984
99885b3f
GDR
19852000-09-29 Gabriel Dos Reis <gdr@codesourcery.com>
1986
1987 * error.c: Remove direct obstack manipulation. Replace with
1988 output_buffer-based formatting. Adjust calls to removed macros.
1989 (obstack_chunk_alloc, obstack_chunk_free): Remove.
1990 (OB_INIT, OB_PUTC, OB_PUTC2, OB_PUTS, OB_PUTID, OB_PUTCP,
1991 OB_FINISH, OB_PUTI, OB_END_TEMPLATE): Likewise.
1992
c06aa51e
MM
19932000-09-24 Mark Mitchell <mark@codesourcery.com>
1994
1995 * ir.texi: Move to ../c-tree.texi.
1996
99fada40
JM
19972000-09-20 Jason Merrill <jason@redhat.com>
1998
1999 * decl2.c (get_guard): Check DECL_FUNCTION_SCOPE_P.
2000
bb20cc46
AJ
20012000-09-21 Andreas Jaeger <aj@suse.de>
2002
2003 * errfn.c: Move declaration of cp_printer and cp_printers to ...
2004 * cp-tree.h: ... here.
2005
2006 * error.c: Remove declaration of cp_printer.
2007
fab701da
MM
20082000-09-20 Mark Mitchell <mark@codesourcery.com>
2009
2010 * tree.c (mark_local_for_remap_r): Handle CASE_LABELs.
2011
0370fea1
HPN
20122000-09-20 Hans-Peter Nilsson <hp@axis.com>
2013
2014 * except.c: Delete #if 0:d EXCEPTION_SECTION_ASM_OP-default and
2015 users.
2016
78c120b5
MM
20172000-09-18 Mark Mitchell <mark@codesourcery.com>
2018
2019 * decl.c (start_function): Robustify.
2020
3f80e6ac
KG
20212000-09-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2022
2023 * cp-tree.h (check_function_format): Accept a `status' parameter.
bb20cc46 2024
3f80e6ac
KG
2025 * call.c, typeck.c: Updates calls to `check_function_format'.
2026
fc928afe
GK
20272000-09-17 Geoffrey Keating <geoffk@cygnus.com>
2028
2029 * decl2.c (handle_class_head): Always push some scope even
2030 in the error case.
2031
8f17b5c5
MM
20322000-09-16 Mark Mitchell <mark@codesourcery.com>
2033
2034 * cp-tree.h (struct cp_language_function): Remove
2035 x_scope_stmt_stack and name_declared.
2036 (current_scope_stmt_stack): Remove.
2037 (function_name_declared_p): New macro.
2038 (struct lang_decl_flags): Use c_lang_decl as a base class.
2039 (context): Remove.
2040 (struct lang_decl): Replace saved_tree with context.
2041 (DECL_FRIEND_CONTEXT): Adjust accordingly.
2042 (SET_DECL_FRIEND_CONTEXT): Likewise.
2043 (DECL_VIRTUAL_CONTEXT): Likewise.
2044 (DECL_SAVED_TREE): Remove.
2045 (C_DECLARED_LABEL_FLAG): Likewise.
2046 (cplus_expand_expr_stmt): Don't declare.
2047 (add_decl_stmt): Likewise.
2048 (add_scope_stmt): Likewise.
2049 * decl.c (mark_stmt_tree): Remove.
2050 (case_compare): Likewise.
2051 (finish_case_label): Use c_add_case_label.
2052 (init_decl_processing): Set more language-specific hooks.
2053 (build_enumerator): Fix typo in comment.
2054 (cplus_expand_expr_stmt): Remove.
2055 (mark_lang_function): Use mark_c_language_function.
2056 (lang_mark_tree): Use c_mark_lang_decl.
2057 * decl2.c: Change order of inclusion.
2058 * except.c: Likewise.
2059 * expr.c (cplus_expand_expr): Remove handling of STMT_EXPR. Fall
2060 back on c_expand_expr.
2061 * friend.c: Include expr.h.
2062 * init.c: Change order of inclusion.
2063 * Makefile.in: Update dependencies.
2064 * lex.h (free_lang_decl_chain): Remove.
2065 * optimize.c (maybe_clone_body): Use function_name_declared_p.
2066 * pt.c (build_template_decl): Don't copy DECL_VIRTUAL_CONTEXT if
2067 it doesn't exist.
2068 (instantiate_decl): Use function_name_declared_p.
2069 * semantics.c (lang_expand_expr_stmt): Remove.
2070 (set_current_function_name_declared): Likewise.
2071 (current_function_name_declared): Likewise.
2072 (begin_compound_stmt): Use function_name_declared_p.
2073 (add_decl_stmt): Remove.
2074 (setup_vtbl_ptr): Use function_name_declared_p.
2075 (add_scope_stmt): Remove.
2076 (current_scope_stmt_stack): New function.
2077 (cp_expand_stmt): Don't handle SCOPE_STMTs.
2078 (expand_body): Use function_name_declared_p.
2079 * tree.c (cp_statement_code_p): Don't include SCOPE_STMT.
2080 * typeck.c: Change order of includes.
2081 (convert_sequence): Remove.
bb20cc46 2082
d9dbd9b1
JM
20832000-09-14 Joseph S. Myers <jsm28@cam.ac.uk>
2084
2085 * lex.c (reswords): Add _Complex.
2086
9985f210
RK
2087Thu Sep 14 12:10:45 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2088
2089 * Make-lang.in (cplib2.txt): Depend on cp/Makefile.
2090
f903ebb1
DA
20912000-09-13 J. David Anglin <dave@hiauly1.hia.nrc.ca>
2092
2093 * init.c (begin_init_stmts): Don't use // comments.
2094
f2ae0c45
JM
20952000-09-12 Jason Merrill <jason@redhat.com>
2096
2097 * decl.c (maybe_deduce_size_from_array_init): Set do_default for
2098 all non-extern arrays.
2099
2100 * decl.c (grokdeclarator): Complain about 'friend T' for implicit
2101 typenames, too. Downgrade complaint to pedwarn.
2102 (xref_tag): Warn about surprising behavior of 'friend struct T'.
2103 * decl2.c (handle_class_head): Generate a TYPENAME_TYPE for
2104 'class This::Inherited'.
2105
71ad4a16
MM
21062000-09-12 Mark Mitchell <mark@codesourcery.com>
2107
2108 * decl.c (finish_case_label): Given the LABEL_DECL a
2109 DECL_CONTEXT.
2110
c3e76028
GDR
21112000-09-12 Gabriel Dos Reis <gdr@codesourcery.com>
2112
2113 * error.c (TFF_PLAIN_IDENTIFIER, TFF_NAMESPACE_SCOPE,
2114 TFF_CLASS_SCOPE, TFF_CHASE_NAMESPACE_ALIAS, TFF_CHASE_TYPDEF,
2115 TFF_DECL_SPECIFIERS, TFF_CLASS_KEY_OR_ENUM, TFF_RETURN_TYPE,
2116 TFF_FUNCTION_DEFAULT_ARGUMENTS, TFF_EXCEPTION_SPECIFICATION,
2117 TFF_TEMPLATE_HEADER, TFF_TEMPLATE_DEFAULT_ARGUMENTS, TFF_SCOPE):
2118 New macros.
2119 (sorry_for_unsupported_tree, print_scope_operator,
2120 print_left_paren, print_right_paren, print_left_bracket,
2121 print_right_bracket, print_whitespace): Likewise.
2122 (aggr_variety): Rename to class_key_or_enum.
2123 (print_type): Rename to print_type_id.
2124 (print_type_specifier_seq, print_simple_type_specifier,
2125 print_elaborated_type_specifier,
2126 print_rest_of_abstract_declarator,
2127 print_parameter_declaration_clause, print_exception_specification,
2128 print_nested_name_specifier, print_template_id,
2129 typedef_original_name, print_template_argument_list_start,
2130 print_template_argument_list_end): New functions.
2131
eb50138b
GDR
21322000-09-11 Gabriel Dos Reis <gdr@codesourcery.com>
2133
a8a05998 2134 * ir.texi: Add more documentation.
eb50138b 2135
f444e36b
MM
21362000-09-11 Mark Mitchell <mark@codesourcery.com>
2137
2138 * cp-tree.h (struct saved_scope): Remove x_function_parms.
2139 (current_function_parms): Don't define.
2140 (struct cp_language_function): Remove parms_stored.
2141 (current_function_just_assigned_this): Don't define.
2142 (current_function_parms_stored): Likewise.
2143 (static_ctors): Declare.
2144 (static_dtors): Likewise.
2145 (SF_EXPAND): Don't define.
2146 (expand_start_early_try_stmts): Remove declaration.
2147 (store_parm_decls): Likewise.
2148 * decl.c (static_ctors): Don't declare.
2149 (static_dtors): Likewise.
2150 (struct binding_level): Remove this_block.
2151 (poplevel): Remove dead code.
2152 (set_block): Likewise.
2153 (mark_binding_level): Don't mark this_block.
2154 (mark_saved_scope): Don't mark x_function_parms.
2155 (init_decl_processing): Don't add current_function_parms as a GC
2156 root.
2157 (check_function_type): Change prototype.
2158 (start_function): Remove RTL-generation code.
2159 (expand_start_early_try_stmts): Remove.
2160 (store_parm_decls): Give it internal linkage. Remove
2161 RTL-generation code.
2162 (finish_function): Remove RTL-generation code.
2163 * decl2.c (static_ctors): Fix formatting.
2164 (static_dtors): Likewise.
2165 * method.c (use_thunk): Don't call store_parm_decls.
2166 (synthesize_method): Likewise.
2167 * optimize.c (maybe_clone_body): Likewise.
2168 * parse.y (fn.def2): Likewise.
2169 (.set_base_init): Likewise.
2170 (nodecls): Likewise.
2171 * pt.c (instantiate_decl): Likewise.
2172 * rtti.c (synthesize_tinfo_fn): Likewise.
2173 * semantics.c (genrtl_try_block): Simplify.
2174 (expand_body): Use genrtl_start_function and
2175 genrtl_finish_function.
2176 (genrtl_start_function): New function.
2177 (genrtl_finish_function): Likewise.
2178
181d2ba0
NS
21792000-09-11 Nathan Sidwell <nathan@codesourcery.com>
2180
2181 * error.c (cp_tree_printer, case 'P'): Append break.
2182
f2d71db6
NS
21832000-09-11 Nathan Sidwell <nathan@codesourcery.com>
2184
2185 * cp-tree.h (frob_opname): Declare.
2186 * parse.y (saved_scopes): New static variable.
2187 (cp_parse_init): Adjust.
2188 (do_id): If lastiddecl is NULL, do do_identifier.
2189 (operator): Save scope information.
aca77bd1 2190 (unoperator): New reduction. Restore scope information.
f2d71db6
NS
2191 (operator_name): Append unoperator. Call frob_opname.
2192 * spew.c (frob_opname): Define.
2193
d8ea8f28
ZW
21942000-09-10 Zack Weinberg <zack@wolery.cumb.org>
2195
2196 * decl.c, rtti.c: Include defaults.h if not already included.
2197 Don't define the *_TYPE_SIZE macros.
2198
56cb9733
MM
21992000-09-09 Mark Mitchell <mark@codesourcery.com>
2200
2201 * cp-tree.h (push_switch): Change prototype.
2202 (check_cp_case_value): Remove declaration.
2203 (decl_constant_value): Likewise.
2204 * decl.c (struct cp_switch): Add switch_stmt and cases.
2205 (case_compare): New function.
2206 (push_switch): Set switch_stmt. Initialize cases.
2207 (pop_switch): Clean up cases.
2208 (define_case_label): Rename to ...
2209 (finish_case_label): ... this. Do semantic analysis for case
2210 labels here.
2211 (start_function): Correct comment.
2212 * decl2.c (check_cp_case_value): Remove.
2213 * expr.c (do_case): Remove.
2214 * pt.c (tsubst_expr): Adjust call to finish_case_label.
2215 * semantics.c (genrtl_do_poplevel): Remove declaration.
2216 (RECHAIN_STMTS): Remove.
2217 (finish_break_stmt): Use build_break_stmt.
2218 (finish_continue_stmt): Use build_continue_stmt.
2219 (finish_switch_cond): Adjust condition here, rater than in
2220 c_expand_start_case.
2221 (finish_case_label): Remove.
2222 * typeck.c (c_expand_return): Remove.
2223 (c_expand_start_case): Likewise.
bb20cc46 2224
990a9693
GDR
22252000-09-07 Gabriel Dos Reis <gdr@codesourcery.com>
2226
2227 * ir.texi: Document type nodes.
2228
ae499cce
MM
22292000-09-06 Mark Mitchell <mark@codesourcery.com>
2230
54f7877c
MM
2231 * cp-tree.h (init_cp_semantics): Declare.
2232 (genrtl_try_block): Don't declare.
2233 (genrtl_handler): Likewise.
2234 (genrtl_catch_block): Likewise.
2235 (genrtl_ctor_stmt): Likewise.
2236 (genrtl_subobject): Likewise.
2237 (genrtl_do_poplevel): Likewise.
2238 (genrtl_named_return_value): Likewise.
2239 * lex.c (init_parse): Call init_cp_semantics.
2240 * semantics.c (genrtl_try_block): Give it internal linkage.
2241 (genrtl_handler): Likewise.
2242 (genrtl_catch_block): Likewise.
2243 (genrtl_ctor_stmt): Likewise.
2244 (genrtl_subobject): Likewise.
2245 (genrtl_do_poplevel): Likewise.
2246 (genrtl_named_return_value): Likewise.
2247 (lang_expand_stmt): Rename to ...
2248 (cp_expand_stmt): ... this. Only handle C++-specific nodes.
2249 (init_cp_semantics): Define.
2250
3a0d3e1e
MM
2251 * decl.c (initialize_local_var): Remove RTL-generating code.
2252 * semantics.c (genrtl_try_block): Fix formatting.
2253
ae499cce
MM
2254 Move statement-tree facilities from C++ to C front-end.
2255 * cp-tree.h (cp_tree_index): Remove CPTI_VOID_ZERO.
2256 (void_zero_node): Remove.
2257 (stmt_tree): Likewise.
2258 (scope_chain): Adjust.
2259 (language_function): Rename to cp_language_function.
2260 (cp_function_chain): Adjust.
2261 (current_stmt_tree): Remove.
2262 (last_tree): Likewise.
2263 (last_expr_type): Likewise.
2264 (struct lang_decl): Adjust.
2265 (STMT_IS_FULL_EXPR_P): Remove.
2266 (add_tree): Remove.
2267 (begin_stmt_tree): Likewise.
2268 (finish_stmt_tree): Likewise.
2269 (walk_tree_fn): Likewise.
2270 (walk_stmt_tree): Likewise.
2271 * class.c (finish_struct): Replace use of add_tree with add_stmt.
2272 * decl.c (mark_stmt_tree): Adjust type.
2273 (init_decl_processing): Don't build void_zero_node.
2274 (initialize_local_var): Adjust usage of current_stmt_tree.
2275 (finish_enum): Use add_stmt, not add_tree.
2276 (save_function_data): Adjust use of language_function.
2277 (finish_constructor_body): Use add_stmt, not add_tree.
2278 (finish_destructor_body): Likewise.
2279 (push_cp_function_context): Adjust use of language_function.
2280 (pop_cp_function_context): Likewise.
2281 (mark_lang_function): Likewise.
2282 (mark_cp_function_context): Likewise.
2283 * init.c (build_aggr_init): Adjust use of current_stmt_tree.
2284 (build_vec_init): Likewise.
2285 * semantics.c (SET_LAST_STMT): Remove.
2286 (RECHAIN_STMTS): Don't use it.
2287 (stmts_are_full_exprs_p): Adjust use of current_stmt_tree.
2288 (current_stmt_tree): Define.
2289 (add_tree): Remove.
2290 (finish_goto_stmt): Use add_stmt, not add_tree.
2291 (finish_expr_stmt): Likewise.
2292 (begin_if_stmt): Likewise.
2293 (finish_then_clause): Likewise.
2294 (begin_while_stmt): Likewise.
2295 (begin_do_stmt): Likewise.
2296 (finish_return_stmt): Likewise.
2297 (begin_for_stmt): Likewise.
2298 (finish_break_stmt): Likewise.
2299 (finish_continue_stmt): Likewise.
2300 (begin_switch_stmt): Likewise.
2301 (finish_case_label): Likewise.
2302 (begin_try_block): Likewise.
2303 (begin_function_try_block): Likewise.
2304 (begin_handler): Likewise.
2305 (begin_catch_block): Likewise.
2306 (begin_compound_stmt): Likewise.
2307 (begin_asm_stmt): Likewise.
2308 (finish_asm_stmt): Likewise.
2309 (finish_label_stmt): Likewise.
2310 (add_decl_stmt): Likewise.
2311 (finish_subobject): Likewise.
2312 (finish_decl_cleanup): Likewise.
2313 (finish_named_return_value): Likewise.
2314 (setup_vtbl_ptr): Likewise.
2315 (add_scope_stmt): Likewise.
2316 (finish_stmt_expr): Likewise.
2317 (prune_unused_decls): Remove.
2318 (begin_stmt_tree): Likewise.
2319 (finish_stmt_tree): Likewise.
2320 (prep_stmt): Adjust use of current_stmt_tree.
2321 (lang_expand_stmt): Likewise.
2322 * tree.c (statement_code_p): Remove.
2323 (cp_statement_code_p): New function.
2324 (walk_stmt_tree): Remove.
2325 (init_tree): Set lang_statement_code_p.
bb20cc46 2326
0e5921e8
ZW
23272000-09-06 Zack Weinberg <zack@wolery.cumb.org>
2328
2329 Integrated preprocessor.
2330
2331 * Make-lang.in, Makefile.in: Remove all references to input.c,
2332 gxx.gperf, and hash.h. Add ../c-lex.o to C_OBJS.
2333 * gxx.gperf, hash.h, input.c: Delete.
2334 * lang-specs.h: Pass -lang-c++ to cc1plus so cpplib is
2335 initialized properly.
2336
2337 * class.c (fixup_pending_inline): Take a tree, not a
2338 struct pending_inline *. All callers changed.
2339 (init_class_processing): Set RID_PUBLIC, RID_PRIVATE,
2340 RID_PROTECTED entries in ridpointers[] array here.
2341 * decl.c (duplicate_decls): Do not refer to struct
2342 pending_inline.
2343 (record_builtin_type, init_decl_processing): Use RID_MAX not
2344 CP_RID_MAX.
2345 (grokdeclarator): Use C_IS_RESERVED_WORD.
2346 * decl2.c (lang_decode_option): Ignore -lang-c++ for sake of
2347 cpplib.
2348 (grok_x_components): Do not inspect pending_inlines chain.
2349
2350 * cp-tree.h (struct lang_identifier): Add rid_code entry.
2351 (C_IS_RESERVED_WORD, C_RID_CODE, C_RID_YYCODE): New.
2352 (flag_no_gnu_keywords, flag_operator_names, rid_to_yy): Declare.
2353 (DEFARG_LENGTH, struct pending_inline, TIME_IDENTIFIER_TIME,
2354 TIME_IDENTIFIER_FILEINFO): Kill.
2355 Update prototypes.
2356 * lex.h: Expunge cp_rid. Rewrite RIDBIT macros to use just a
2357 single 32-bit word.
2358 * parse.y: Call do_pending_inlines unconditionally.
2359 reinit_parse_for_method is now snarf_method. fn.defpen is no
2360 longer necessary. Remove unnecessary <itype> annotation on
2361 SCOPE. Do not refer to end_of_file or struct pending_inline.
2362 * semantics.c (begin_inline_definitions): Call
2363 do_pending_inlines unconditionally.
2364
2365 * lex.c: Remove all code now shared with C front end.
2366 Initialize cpplib properly if USE_CPPLIB. Put reserved words
2367 into the get_identifier table. Rewrite pragma handling to
2368 work with the registry. Move code to save tokens for later
2369 processing to spew.c.
2370
2371 * spew.c: Rewrite everything in terms of token streams instead
2372 of text. Move routines here from lex.c / input.c as
2373 appropriate. GC-mark trees hanging off the pending inlines
2374 chain.
2375
44835fdd
MM
23762000-09-06 Mark Mitchell <mark@codesourcery.com>
2377
2378 * NEWS: Mention that the named return value extension has been
2379 deprecated.
2380 * cp-tree.h (original_result_rtx): Define.
2381 (TREE_REFERENCE_EXPR): Remove.
2382 (DECL_VPARENT): Likewise.
2383 (pushdecl_nonclass_level): Likewise.
2384 (store_return_init): Likewise.
2385 (reinit_lang_specific): Likewise.
2386 (genrtl_named_return_value): Change prototype.
2387 * decl.c (original_result_rtx): Remove.
2388 (cp_finish_decl): Don't build DECL_STMTs for RESULT_DECLs.
2389 Do not generate RTL for local variables here.
2390 (store_return_init): Remove.
2391 * semantics.c (genrtl_named_return_value): Simplify. Fold in
2392 store_return_init.
2393 (finish_named_return_value): Adjust accordingly. Warn that this
2394 extension is deprecated.
2395 (lang_expand_stmt): Adjust call to genrtl_named_return_value.
2396
d7c4edd0
NS
23972000-09-06 Nathan Sidwell <nathan@codesourcery.com>
2398
2399 * pt.c (type_unification_real): Replace switch with if.
2400 (unify): Tsubst non-type parms before comparing.
2401
46e2747c
NS
24022000-09-06 Nathan Sidwell <nathan@codesourcery.com>
2403
2404 * error.c (dump_typename): New function, broken out of ...
2405 (dump_type): ... here. Use it.
2406 * typeck.c (same_type_p): Use cp_tree_equal for TYPENAME_TYPE.
2407
c833d2be
NS
24082000-09-06 Nathan Sidwell <nathan@codesourcery.com>
2409
2410 * init.c (build_offset_ref): Deal with namespace scoped
2411 TEMPLATE_ID_EXPRs.
2412
b1ce3eb2
NS
24132000-09-06 Nathan Sidwell <nathan@codesourcery.com>
2414
2415 * class.c (resolve_address_of_overloaded_function): Add
2416 explanation message.
2417 * decl.c (define_case_label): Reformat explanation.
2418 * decl2.c (finish_static_data_member_decl): Likewise.
2419 (grokfield): Likewise.
2420 * friend.c (do_friend): Likewise.
2421
11f53b6a
ZW
24222000-09-05 Zack Weinberg <zack@wolery.cumb.org>
2423
2424 * tree.c (walk_tree): Expose tail recursion.
2425 (walk_stmt_tree): New function.
2426 * cp-tree.h: Prototype walk_stmt_tree.
2427 * semantics.c (prune_unused_decls): Operate on SCOPE_STMTs not
2428 the BLOCKs directly. If a BLOCK has no variables after
2429 pruning, discard it.
2430 (finish_stmt_tree): Use walk_stmt_tree. No need to save and
2431 restore the line number.
2432
ee94fce6
MM
24332000-09-05 Mark Mitchell <mark@codesourcery.com>
2434
2435 * Makefile.in (CXX_TREE_H): Add dependency on HTAB_H.
2436 (pt.o): Remove dependency on HTAB_H.
2437 * cp-tree.h: Include hashtab.h.
2438 (walk_tree): Change prototype.
2439 (walk_tree_without_duplicates): New function.
2440 * decl.c (check_default_argument): Use it.
2441 * optimize.c (remap_decl): Adjust calls to walk_tree.
2442 (copy_body): Likewise.
2443 (expand_calls_inline): Likewise.
2444 (calls_setjmp_p): Use walk_tree_without_duplicates.
2445 * pt.c: Don't include hashtab.h.
2446 (for_each_template_parm): Use walk_tree_without_duplicates.
2447 * semantics.c (finish-stmt_tree): Likewise.
2448 (expand_body): Likewise.
2449 * tree.c (walk_tree): Add additional parameter.
2450 (walk_tree_without_duplicates): New function.
2451 (count_trees): Use it.
2452 (verify_stmt_tree): Adjust call to walk_tree.
2453 (find_tree): Use walk_tree_without_duplicates.
2454 (no_linkage_check): Likewise.
2455 (break_out_target_exprs): Adjust call to walk_tree.
2456 (cp_unsave): Likewise.
2457
a1281f45
KL
24582000-09-04 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2459
2460 * cp-tree.def (BOUND_TEMPLATE_TEMPLATE_PARM): New tree code.
2461 (TEMPLATE_TEMPLATE_PARM): Adjust comment.
2462 * cp-tree.h (TYPE_BINFO): Adjust comment.
2463 (TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO): Likewise.
2464 (TEMPLATE_TYPE_PARM_INDEX): Likewise.
2465 (IS_AGGR_TYPE): Use BOUND_TEMPLATE_TEMPLATE_PARM instead.
2466 (TYPE_TEMPLATE_INFO): Likewise.
2467 (TEMPLATE_TEMPLATE_PARM_TEMPLATE_DECL): Likewise.
2468 * class.c (push_nested_class): Likewise.
2469 * decl.c (lookup_name_real): Likewise.
2470 (grokdeclarator): Likewise.
2471 (grok_op_properties): Likewise.
2472 (xref_tag): Likewise.
2473 (xref_basetypes): Likewise.
2474 * decl2.c (constructor_name_full): Likewise.
2475 (arg_assoc_template_arg): Add TEMPLATE_TEMPLATE_PARM case.
2476 (arg_assoc_type): Use BOUND_TEMPLATE_TEMPLATE_PARM instead.
2477 * error.c (dump_type): Split TEMPLATE_TEMPLATE_PARM case.
2478 (dump_type_prefix): Add BOUND_TEMPLATE_TEMPLATE_PARM.
2479 (dump_type_suffix): Likewise.
2480 * init.c (is_aggr_type): Use BOUND_TEMPLATE_TEMPLATE_PARM
2481 instead.
2482 (get_aggr_from_typedef): Likewise.
2483 * mangle.c (write_type): Split TEMPLATE_TEMPLATE_PARM case.
2484 (write_expression): Add BOUND_TEMPLATE_TEMPLATE_PARM.
2485 (write_template_parm): Likewise.
2486 (write_template_template_parm): Check tree code instead of
2487 using TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO.
0e5921e8 2488 * method.c (build_overload_nested_name): Add
a1281f45
KL
2489 BOUND_TEMPLATE_TEMPLATE_PARM.
2490 (process_overload_item): Split TEMPLATE_TEMPLATE_PARM case.
2491 * parse.y (bad_parm): Add BOUND_TEMPLATE_TEMPLATE_PARM.
2492 * pt.c (convert_template_argument): Check tree code instead of
2493 using TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO.
2494 (for_each_template_parm_r): Split TEMPLATE_TEMPLATE_PARM case.
2495 (for_each_template_parm): Adjust comment.
2496 (tsubst): Add BOUND_TEMPLATE_TEMPLATE_PARM. Reorganize.
2497 (tsubst_copy): Add BOUND_TEMPLATE_TEMPLATE_PARM.
2498 (unify): Add BOUND_TEMPLATE_TEMPLATE_PARM. Reorganize. Use
2499 template_args_equal to compare template template parameter cases.
2500 * ptree.c (print_lang_type): Add BOUND_TEMPLATE_TEMPLATE_PARM.
2501 * search.c (lookup_field_1): Use BOUND_TEMPLATE_TEMPLATE_PARM
2502 instead.
2503 * tree.c (copy_template_template_parm): Decide whether to create
2504 a TEMPLATE_TEMPLATE_PARM or BOUND_TEMPLATE_TEMPLATE_PARM node.
2505 (walk_tree): Add BOUND_TEMPLATE_TEMPLATE_PARM.
2506 (copy_tree_r): Likewise.
2507 * typeck.c (comptypes): Likewise. Check tree code instead of
2508 using TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO.
2509
c9672d45
ME
25102000-09-04 Mark Elbrecht <snowball3@bigfoot.com>
2511
2512 * decl.c (finish_function): Move the code for handling functions
2513 marked with the constructor and destructor attributes inside the
2514 expand_p block.
2515
67804825
NS
25162000-09-04 Nathan Sidwell <nathan@codesourcery.com>
2517
2518 * init.c (resolve_offset_ref): Deal with TEMPLATE_ID_EXPR.
2519
1bc0793e
NS
25202000-09-04 Nathan Sidwell <nathan@codesourcery.com>
2521
2522 * pt.c (lookup_template_class): Remove abort.
2523 * tree.c (get_type_decl): Allow error_mark_node.
2524
3338663b
NS
25252000-09-04 Nathan Sidwell <nathan@codesourcery.com>
2526
2527 * decl2.c (arg_assoc): Deal with COMPONENT_REFs inside
2528 TEMPLATE_ID_EXPRs.
2529
1b84dc37
MM
25302000-09-03 Mark Mitchell <mark@codesourcery.com>
2531
2532 * operators.def (ALIGNOF_EXPR, MAX_EXPR, MIN_EXPR): Change
c9672d45 2533 new ABI mangling.
1b84dc37 2534
9687f8f4
NS
25352000-09-01 Nathan Sidwell <nathan@codesourcery.com>
2536
2537 * parse.y (named_class_head): Check for TYPENAME_TYPE. Simplify
c9672d45 2538 union tag mismatch error reporting.
9687f8f4 2539
4f8025eb
NS
25402000-09-01 Nathan Sidwell <nathan@codesourcery.com>
2541
c9672d45 2542 * call.c (build_scoped_method_call): Check it is not a namespace.
4f8025eb 2543
495d26d6
JM
25442000-08-30 Jason Merrill <jason@redhat.com>
2545
2546 * cp-tree.h (LOCAL_CLASS_P): Use decl_function_context.
2547
2548 * tree.c (bot_manip): Check TREE_CONSTANT rather than
2549 !TREE_SIDE_EFFECTS. Call break_out_target_exprs and
2550 build_target_expr_with_type for the non-AGGR_INIT_EXPR case.
2551
2552 * decl.c (start_function): Always call make_function_rtl.
2553
7efcf466
ZW
25542000-08-29 Zack Weinberg <zack@wolery.cumb.org>
2555
495d26d6 2556 * semantics.c (prune_unused_decls): New function.
7efcf466
ZW
2557 (finish_stmt_tree): Call it via walk_tree.
2558
63ad61ed
ZW
25592000-08-29 Zack Weinberg <zack@wolery.cumb.org>
2560
2561 * class.c (build_secondary_vtable): Constify a char *.
2562 * decl.c (init_decl_processing): Initialize function_id_node,
2563 pretty_function_id_node, and func_id_node.
2564 * input.c (struct input_source): Constify 'str'.
2565 (feed_input): Constify first argument.
2566 * mangle.c (write_identifier): Constify argument.
2567 * pt.c (mangle_class_name_for_template): Constify argument.
2568
4361b41d
MM
25692000-08-29 Mark Mitchell <mark@codesourcery.com>
2570
2571 * typeck.c (mark_addressable): Remove code that pokes around in
2572 RTL.
2573
881c6935
JM
25742000-08-28 Jason Merrill <jason@redhat.com>
2575
2576 * lex.c (file_name_nondirectory): Move to toplev.c.
2577
2578 * cp-tree.h (LOCAL_CLASS_P): New macro.
2579 * class.c (finish_struct_1): Use it.
2580
f0f33848
AS
25812000-08-27 Alex Samuel <samuel@codesourcery.com>
2582
2583 * mangle.c (CLASSTYPE_TEMPLATE_ID_P): Remove unexplained voodoo.
2584 (write_encoding): Pass another argument to write_name.
2585 (write_name): Add ignore_local_scope parameter. Fix handling of
2586 local names.
2587 (write_nested_name): Use write_unqualified_name.
2588 (write_prefix): Likewise. Skip out on FUNCTION_DECLs.
2589 (write_template_prefix): Use write_unqualified_name.
2590 (write_component): Remove.
2591 (write_local_name): Add parameter. Use direct local entity to
2592 discriminator calculation.
0e5921e8 2593 (write_class_enum_type): Pass another argument to write_name.
f0f33848
AS
2594 (write_template_template_arg): Likewise.
2595 (make_guard_variable): Likewise.
0e5921e8 2596
94dfccd1
JM
25972000-08-27 Jason Merrill <jason@redhat.com>
2598
2599 * decl.c (pushdecl): Matching decls for local externs are found in
2600 the current level. Propagate linkage information from previous
2601 declarations.
2602
14fdf4b6
GDR
26032000-08-26 Gabriel Dos Reis <gdr@codesourcery.com>
2604
2605 * ir.texi (Expressions): Fix typo.
2606
b5232c64
GM
26072000-08-25 Greg McGary <greg@mcgary.org>
2608
2609 * tree.c (init_tree): Use ARRAY_SIZE.
2610
22a4158c
GDR
26112000-08-25 Gabriel Dos Reis <gdr@codesourcery.com>
2612
2613 * error.c (cp_tree_printer): Rework.
2614
f22967f3
MM
26152000-08-25 Mark Mitchell <mark@codesourcery.com>
2616
a0c182fe
MM
2617 * Make-lang.in (CXX_LIB2FUNCS): Remove cp-demangle.o and
2618 dyn-string.o.
2619 (CXX_LIB2SRCS): Remove cp-demangle.c and dyn-string.c.
2620 (cp-demangle.o): Remove target.
2621 (dyn-string.o): Likewise.
2622
f22967f3
MM
2623 * decl.c (grokfndecl): Require that `main' return an `int'.
2624 * mangle.c (write_encoding): Don't mangle return types for
2625 conversion functions.
2626
a1066c99
GDR
26272000-08-25 Gabriel Dos Reis <gdr@codesourcery.com>
2628
2629 * error.c (tree_formatting_info): New data type.
2630 (tree_being_formatted): New macro.
2631 (tree_formatting_flags): Likewise.
2632 (put_whitespace): Likewise.
2633 (print_tree_identifier): Likewise.
2634 (print_identifier): Likewise.
2635 (cp_tree_printer, print_function_argument_list, print_declaration,
2636 print_expression, print_function_declaration,
2637 print_function_parameter, print_type, print_cv_qualifier): New
0e5921e8 2638 functions.
a1066c99
GDR
2639 (init_error): Initialize lang_printer.
2640
3f2b640a
JM
26412000-08-24 Jason Merrill <jason@redhat.com>
2642
2643 * typeck.c (build_ptrmemfunc): Just reinterpret if there's no
2644 adjustment necessary.
2645
7ec09bf7
GM
26462000-08-24 Greg McGary <greg@mcgary.org>
2647
2648 * cp-tree.h (MAIN_NAME_P): Remove macro.
2649
2ab99c46
GDR
26502000-08-24 Gabriel Dos Reis <gdr@codesourcery.com>
2651
2652 * error.c (print_instantiation_context): Don't forget to flush the
2653 buffer.
2654
7def1251
JM
26552000-08-23 Jason Merrill <jason@redhat.com>
2656
2657 * typeck.c (build_ptrmemfunc): Save the input pmf.
2658
2659 * method.c (process_modifiers): Use same_type_p.
2660
94350948
MM
26612000-08-23 Mark Mitchell <mark@codesourcery.com>
2662
2663 * cp-tree.h (DECL_CLONED_FUNCTION_P): Check DECL_LANG_SPECIFIC.
2664 * mangle.c (write_function_type): Change prototype.
2665 (write_encoding): Don't mangle return types for
2666 constructors or destructors.
2667 (write_type): Adjust call to write_function_type.
2668 * pt.c (instantiate_template): Instantiate alternate entry points
2669 when instantiating the main function.
0e5921e8 2670
a64e7329
GDR
26712000-08-23 Gabriel Dos Reis <gdr@codesourcery.com>
2672
2673 * error.c (cp_print_error_function): Don't use embedded '\n' in
0e5921e8 2674 output_printf.
a64e7329 2675
a72462a4
GDR
26762000-08-23 Gabriel Dos Reis <gdr@codesourcery.com>
2677
2678 * decl.c (init_decl_processing): Remove bogus initialization.
2679 * error.c (lang_print_error_function): Restore here.
0e5921e8
ZW
2680 (init_error): Initialize print_error_function.
2681
3add6264
TP
26822000-08-22 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
2683
2684 * decl2.c (arg_assoc): Revert my 2000-08-11 change.
2685
cb753e49
GDR
26862000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
2687
2688 * Makefile.in (error.o): Depends on diagnostic.h
2689
2690 * cp-tree.h (problematic_instantiation_changed,
2691 record_last_problematic_instantiation, current_instantiation,
2692 print_instantiation_context): Declare.
2693 (maybe_print_template_context): Remove.
2694
2695 * decl.c (init_decl_processing): Set print_error_function to NULL.
2696 (lang_print_error_function): Remove, since we're using a new
2697 machinery.
2698
2699 * error.c: #include diagnostic.h
2700 (function_category): New function.
2701 (cp_diagnostic_starter): Likewise.
2702 (cp_diagnostic_finalizer): Likewise.
2703 (cp_print_error_function): Likewise.
2704 (maybe_print_instantiation_context): Likewise.
2705 (print_instantiation_full_context): Likewise.
2706 (print_instantiation_partial_context): Likewise.
2707 (print_instantiation_context): Define.
2708 (init_error): Initialize diagnostic pager and finalizer.
2709
2710 * pt.c (problematic_instantiation_changed): Define.
2711 (record_last_problematic_instantiation): Likewise.
2712 (current_instantiation): Likewise.
2713 (maybe_print_template_context): Remove.
2714 (print_template_context): Likewise.
2715 (current_tinst_level): Make static to reflect Brendan Kehoe's
2716 change of 1995-04-13.
0e5921e8
ZW
2717 (push_tinst_level): Call print_instantiation_context.
2718
05a3d06e 27192000-08-21 Nix <nix@esperi.demon.co.uk>
0e5921e8 2720
05a3d06e
N
2721 * lang-specs.h: Do not process -o or run the assembler if
2722 -fsyntax-only.
2723
93e2382f
JM
27242000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
2725
2726 * decl.c (flag_hosted, flag_noniso_default_format_attributes): New
2727 variables.
2728 * decl2.c (lang_decode_option): Disable gettext attributes for
2729 -ansi.
2730
24805e80
GDR
27312000-08-21 Gabriel Dos Reis <gdr@codesourcery.com>
2732
2733 * lex.c (lang_init_options): Default diagnostic message maximum
2734 length to 80, when line-wrapping.
2735
b485e15b
MM
27362000-08-20 Mark Mitchell <mark@codesourcery.com>
2737
2738 * class.c (build_vtbl_initializer): Clear the entire
2739 vtbl_init_data. Start keeping track of the functions for which we
2740 have created vcall offsets here.
2741 (dfs_build_vcall_offset_vtbl_entries): Remove.
2742 (build_vcall_offset_vtbl_entries): Reimplement.
2743 (add_vcall_offset_vtbl_entries_r): New function.
2744 (add_vcall_offset_vtbl_entries_1): Likewise. Tweak logic for
2745 computing when vcall offsets are necessary.
2746
2ae7bada
NS
27472000-08-18 Nathan Sidwell <nathan@codesourcery.com>
2748
2749 * decl.c (member_function_or_else): Use cp_error ... %T.
2750 (grokdeclarator): Likewise.
2751 (start_method): Likewise.
0e5921e8 2752 * friend.c (make_friend_class): Use cp_pedwarn ... %T.
2ae7bada 2753
7a8b1375
NS
27542000-08-18 Nathan Sidwell <nathan@codesourcery.com>
2755
2756 * decl2.c (grokfield): Set CLASSTYPE_GOT_SEMICOLON on class
0e5921e8 2757 TYPE_DECLs.
7a8b1375 2758
19420d00
NS
27592000-08-18 Nathan Sidwell <nathan@codesourcery.com>
2760
2761 * cp-tree.h (PTRMEM_OK_P): New macro.
2762 (itf_ptrmem_ok): New enumeration value.
2763 * class.c (resolve_address_of_overloaded_function): Add PTRMEM
2764 argument. Diagnose implicit pointer to member.
2765 (instantiate_type): Don't diagnose implicit pointer to member
2766 here. Pass itf_ptrmem_ok if ok. Adjust calls to
2767 resolve_address_of_overloaded_function.
2768 * init.c (build_offset_ref): Set PTRMEM_OK_P.
2769 (resolve_offset_ref): Don't diagnose implicit pointer to member here.
2770 * semantics.c (finish_parenthesized_expr): Clear OFFSET_REFs here.
2771 * typeck.c (build_x_unary_op): Calculate PTRMEM_OK_P.
2772 (build_unary_op): Deal with single non-static member in
2773 microsoft-land.
2774
66081283
NS
27752000-08-18 Nathan Sidwell <nathan@codesourcery.com>
2776
2777 * decl2.c (arg_assoc_type): Cope with TYPENAME_TYPE.
2778
fa40aa12
NS
27792000-08-18 Nathan Sidwell <nathan@codesourcery.com>
2780
2781 * cp-tree.h (enum_name_string): Remove prototype.
2782 (report_case_error): Remove prototype.
2783 * cp/typeck2.c (enum_name_string): Remove.
2784 (report_case_error): Remove.
2785 * error.c (dump_expr): Deal with enum values directly.
2786 Correctly negate integer constant.
2787
d13b34e9
NS
27882000-08-17 Nathan Sidwell <nathan@codesourcery.com>
2789
2790 * inc/cxxabi.h (__cxa_vec_new2, __cxa_vec_new3): Declare.
2791 (__cxa_vec_delete2, __cxa_vec_delete3): Declare.
2792 * vec.cc (__cxa_vec_new2, __cxa_vec_new3): Implement.
2793 (__cxa_vec_delete2, __cxa_vec_delete3): Implement.
2794 (__cxa_vec_new): Use __cxa_vec_new2.
2795 (__cxa_vec_delete): Use __cxa_vec_delete2.
2796
2f1b80af
NS
27972000-08-17 Nathan Sidwell <nathan@codesourcery.com>
2798
2799 * vec.cc (__cxa_vec_new): Set "C" linkage.
2800 (__cxa_vec_ctor): Likewise.
2801 (__cxa_vec_cctor): Likewise.
2802 (__cxa_vec_dtor): Likewise.
2803 (__cxa_vec_delete): Likewise.
2804 * inc/cxxabi.h (__cxa_vec_new): Set "C" linkage.
2805 (__cxa_vec_ctor): Likewise.
2806 (__cxa_vec_cctor): Likewise.
2807 (__cxa_vec_dtor): Likewise.
2808 (__cxa_vec_delete): Likewise.
2809
105d8e1f
NS
28102000-08-17 Nathan Sidwell <nathan@codesourcery.com>
2811
2812 * class.c (instantiate_type): Reinstate local variable
2813 deleted in previous change.
0e5921e8 2814
f1819d9a
NS
2815 * cvt.c (cp_convert_to_pointer): Pass itf_complain, not
2816 itf_no_attributes.
105d8e1f 2817
5e76004e
NS
28182000-08-17 Nathan Sidwell <nathan@codesourcery.com>
2819
2820 * cp-tree.h (instantiate_type_flags): New enumeration.
2821 (instantiate_type): Change parameter.
2822 * class.c (instantiate_type): Adjust prototype. Adjust.
2823 * call.c (standard_conversion): Adjust instantiate_type call.
2824 (reference_binding): Likewise.
2825 (build_op_delete_call): Likewise.
2826 (convert_like_real): Likewise.
2827 * cvt.c (cp_convert_to_pointer): Likewise.
2828 (convert_to_reference): Likewise.
2829 * pt.c (convert_nontype_argument): Likewise.
2830 * typeck.c (build_binary_op): Likewise.
2831 (build_ptrmemfunc): Likewise.
2832 (convert_for_assignment): Likewise.
2833
4b054b80
NS
28342000-08-17 Nathan Sidwell <nathan@codesourcery.com>
2835
2836 * cp-tree.h (CPTR_AGGR_TAG): New global tree node.
2837 (current_aggr): Define.
2838 * decl.c (grokdeclarator): Make sure a friend class is an
2839 elaborated type specifier.
2840 * parse.y (current_aggr): Remove static definition.
2841 (cp_parse_init): Adjust.
2842 (structsp): Clear and restore current_aggr.
2843 (component_decl_list): Clear current_aggr.
0e5921e8 2844
4b054b80
NS
2845 * error.c (dump_type, case TYPENAME_TYPE): Don't emit the
2846 aggregate tag on the typename's context.
0e5921e8 2847
321cba97
NS
2848 * pt.c (tsubst_friend_class): Return error_mark_node, if
2849 parms becomes NULL.
2850 (instantiate_class_template): Ignore error_mark_node friend types.
4b054b80 2851
08aead78
NS
28522000-08-14 Nathan Sidwell <nathan@codesourcery.com>
2853
2854 * cvt.c (warn_ref_binding): New static function, broken out of ...
0e5921e8 2855 (convert_to_reference): ... here. Use it.
08aead78 2856
fa1f3ebc
KL
28572000-08-11 Kriang Lerdsuwanakij <lerdsuwa@scf-fs.usc.edu>
2858
2859 * parse.y (template_arg): Add rule for template qualified with
2860 global scope.
2861
9845b52b
TP
28622000-08-11 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
2863
2864 * decl2.c (add_function): Reorganize.
2865 (arg_assoc): Do not consider function template decls.
2866
e69c8072
JM
28672000-08-11 Jason Merrill <jason@redhat.com>
2868
2869 * decl.c (lookup_name_real): Don't forget the TYPENAME_TYPE we're
2870 looking inside.
2871
5c1e5476
NS
28722000-08-11 Nathan Sidwell <nathan@codesourcery.com>
2873
2874 * cp-tree.h (resolve_scope_to_name): Remove unused prototype.
2875 (lookup_nested_tag): Likewise.
0e5921e8 2876
5c1e5476
NS
2877 * decl2.c (grokfield): Fix comment to reflect many types of _DECLs
2878 can be produced.
2879
5426aa7f
NS
28802000-08-11 Nathan Sidwell <nathan@codesourcery.com>
2881
2882 * parse.y (named_complex_class_head_sans_basetype): Remove
2883 always true if.
2884
fd037e0d
NS
28852000-08-11 Nathan Sidwell <nathan@codesourcery.com>
2886
2887 * decl2.c (build_expr_from_tree, case METHOD_CALL_EXPR): Build
2888 explicit TEMPLATE_ID_EXPR args.
2889 (build_expr_from_tree, case CALL_EXPR): Likewise.
2890
73ae5c34
NS
28912000-08-11 Nathan Sidwell <nathan@codesourcery.com>
2892
2893 * decl.c (check_tag_decl): Diagnose typename's which don't
2894 declare anything.
2895
aa54df09
NS
28962000-08-10 Nathan Sidwell <nathan@codesourcery.com>
2897
2898 * init.c (build_aggr_init): Reject bogus array initializers
2899 early.
2900
7e8dad18
NS
29012000-08-09 Nathan Sidwell <nathan@codesourcery.com>
2902
2903 * rtti.c (build_dynamic_cast_1): Set "C" linkage for new abi
2904 runtime.
2905 * cp/tinfo.cc (__dynamic_cast): Likewise.
0e5921e8 2906 * cp/inc/cxxabi.h (__dynamic_cast): Likewise.
7e8dad18 2907
0f586b9b
NS
29082000-08-09 Nathan Sidwell <nathan@codesourcery.com>
2909
2910 * cvt.c (convert_to_pointer_force): Fix error message when
0e5921e8 2911 attempting to cast from ambiguous base.
0f586b9b 2912
08e72a19
JM
29132000-08-08 Jason Merrill <jason@redhat.com>
2914
2915 * pt.c (tsubst_aggr_type): Bail if creating the argvec fails.
2916 (tsubst_template_arg_vector): Likewise.
2917
2918 * decl2.c (build_anon_union_vars): Choose the largest field; don't
2919 assume that one will be as large as the union.
2920
0811ea8f
KH
29212000-08-07 Kazu Hirata <kazu@hxi.com>
2922
2923 * cp-tree.h (CLASSTYPE_HAS_PRIMARY_BASE_P): Fix a comment typo.
2924 * decl.c (pop_labels): Likewise.
2925
f9fcf62b
JO
29262000-08-04 Jeffrey Oldham <oldham@codesourcery.com>
2927
2928 * inc/cxxabi.h (__pbase_type_info): Changed member names to match
2929 specifications.
2930 (__pointer_to_member_type_info): Likewise.
2931 (__base_class_info): Likewise.
2932 (__class_type_info): Likewise.
2933 (__si_class_type_info): Likewise.
2934 (__vmi_class_type_info): Likewise.
2935 * tinfo.cc (__si_class_type_info::__do_find_public_src):
2936 Changed member names to match specifications.
2937 (__vmi_class_type_info::__do_find_public_src): Likewise.
2938 (__si_class_type_info::__do_dyncast): Likewise.
2939 (__vmi_class_type_info::__do_dyncast): Likewise.
2940 (__si_class_type_info::__do_upcast): Likewise.
2941 (__vmi_class_type_info::__do_upcast): Likewise.
2942 * tinfo2.cc (__pbase_type_info::__do_catch): Likewise.
2943 (__pbase_type_info::__pointer_catch): Likewise.
2944 (__pointer_type_info::__pointer_catch): Likewise.
2945 (__pointer_to_member_type_info::__pointer_catch): Likewise.
2946
a36556a8
ZW
29472000-08-04 Zack Weinberg <zack@wolery.cumb.org>
2948
0e5921e8
ZW
2949 * Make-lang.in (cc1plus): Depend on $(BACKEND), not stamp-objlist.
2950 * Makefile.in: Add C_OBJS, BACKEND; delete OBJS, OBJDEPS.
2951 (cc1plus): Link with $(BACKEND) and $(C_OBJS).
a36556a8 2952
452a394b
MM
29532000-08-04 Mark Mitchell <mark@codesourcery.com>
2954
2955 * cp-tree.h (add_method): Change prototype.
2956 * class.c (add_method): Remove FIELDS parameter. Add ERROR_P.
2957 Don't double the size of the method vector in the error case.
2958 (handle_using_decl): Adjust call to add_method.
2959 (add_implicitly_declared_members): Likewise.
2960 (clone_function_decl): Likewise.
2961 * decl2.c (check_classfn): Likewise.
2962 * semantics.c (finish_member_declaration): Likewise.
0e5921e8 2963
b8458e3e
JM
29642000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
2965
2966 * decl.c (flag_isoc94): New variable.
2967
a1bcc528
JM
29682000-08-02 Jason Merrill <jason@redhat.com>
2969
2970 * pt.c (do_type_instantiation): Add complain parm; don't complain
2971 if called recursively.
2972 * cp-tree.h, parse.y: Adjust.
2973
50e60bc3
ZW
29742000-08-02 Zack Weinberg <zack@wolery.cumb.org>
2975
eae51189
ZW
2976 * decl2.c: Silently ignore -Wstrict-prototypes; warn about
2977 -Wno-strict-prototypes.
2978
37620334
ZW
2979 * g++spec.c: Adjust type of second argument to
2980 lang_specific_driver, and update code as necessary.
2981
50e60bc3
ZW
2982 * cp-tree.h: Don't prototype min_precision here.
2983 (my_friendly_assert): Cast expression to void.
2984 * semantics.c (do_poplevel): Initialize scope_stmts.
2985
3f954fc3
MM
29862000-08-02 Mark Mitchell <mark@codesourcery.com>
2987
2988 * cp-tree.h (DECL_NEEDED_P): Tweak.
2989
ab4fa7ed
JM
29902000-07-28 Jason Merrill <jason@redhat.com>
2991
2992 * lang-specs.h: Use %i in rule for .ii files.
2993
4871239e
ZW
29942000-07-31 Zack Weinberg <zack@wolery.cumb.org>
2995
2996 * lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0.
2997
911a71a7
MM
29982000-07-30 Mark Mitchell <mark@codesourcery.com>
2999
3000 Allow indirect primary bases.
3001 * cp-tree.h (struct lang_type): Remove vfield_parent. Add
3002 primary_base.
3003 (CLASSTYPE_VFIELD_PARENT): Remove.
3004 (CLASSTYPE_PRIMARY_BINFO): Reimplement.
3005 (BINFO_PRIMARY_BINFO): Remove.
3006 (CLASSTYPE_HAS_PRIMARY_BASE_P): Reimplement.
3007 (BINFO_VBASE_PRIMARY_P): Likewise.
3008 (BINFO_PRIMARY_BASE_OF): New macro.
3009 (BINFO_INDIRECT_PRIMARY_P): Likewise.
3010 (get_primary_binfo): New function.
3011 * decl.c (lang_mark_tree): Make lang_type::primary_base.
3012 * class.c (vcall_offset_data_s): Rename to ...
3013 (vtbl_init_data_s): ... this. Rename primary_p to primary_vtbl_p,
3014 and add ctor_vtbl_p.
3015 (get_derived_offset): Use get_primary_binfo.
3016 (dfs_mark_primary_bases): Adjust handling of virtual primary
3017 bases.
3018 (mark_primary_bases): Likewise.
3019 (set_primary_base): Take a binfo, not an integer, as a
3020 representation of the primary base.
3021 (indirect_primary_base_p): Remove.
3022 (determine_primary_base): Adjust for indirect primary bases.
3023 (dfs_find_final_overrider): Fix typo in coment.
3024 (update_vtable_entry_for_fn): Use get_primary_binfo.
3025 (layout_nonempty_base_or_field): Tweak.
3026 (build_base_fields): Adjust for new primary base semantics.
3027 (dfs_propagate_binfo_offsets): Remove.
3028 (propagate_binfo_offsets): Rewrite.
3029 (dfs_set_offset_for_shared_vbases): Remove.
3030 (layout_virtual_bases): Don't use it.
3031 (layout_class_type): Set CLASSTYPE_SIZE correctly under the new
3032 ABI.
3033 (finish_struct_1): Set CLASSTYPE_PRIMARY_BINFO, not
3034 CLASSTYPE_VFIELD_PARENT.
3035 (dfs_get_primary_binfo): New function.
3036 (get_primary_binfo): Likewise.
3037 (dump_class_hierarchy_r): Tweak printing of primary bases.
3038 (build_vtbl_initializer): Fix typo in comments. Use
3039 vtbl_init_data.
3040 (build_vcall_and_vbase_vtbl_entries): Likewise.
3041 (build_vbaes_offset_vtbl_entries): Likewise.
3042 (dfs_build_vcall_offset_vtbl_entries): Adjust setting of
3043 BV_VCALL_INDEX to handle indirect primary bases.
3044 (build_vcall_offset_vtbl_entries): Use vtbl_init_data.
3045 (build_rtti_vtbl_entries): Likewise.
3046 * search.c (get_shared_vbase_if_not_primary): Tweak.
3047 (find_vbase_instance): Likewise.
3048 (binfo_for_vtable): Simplify.
3049 * tree.c (unshare_base_binfos): Clear BINFO_PRIMARY_BASE_OF.
3050 (make_binfo): Make it have 11 entries.
0e5921e8 3051
722bed0f
AS
30522000-07-30 Alex Samuel <samuel@codesourcery.com>
3053
3054 * mangle.c (DECL_TEMPLATE_ID_P): Remove.
3055 (CLASSTYEP_TEMPLATE_ID_P): Check template info, and context when
3056 ascertaining primaryness.
3057 (G): Remove template_args.
3058 (decl_is_template_id): New function.
3059 (write_encoding): Use decl_is_template_id.
3060 (write_name): Likewise. Handle type_decls. Get main variant of
3061 type decls.
3062 (write_nested_name): Likewise.
3063 (write_prefix): Likewise.
3064 (write_template_prefix): Likewise.
3065 (write_special_name_constructor): Remove defunct production from
3066 comment.
3067 (write_bare_function_type): Remove comment about absent parameter.
3068 (write_template_template_arg): Add missing grammar production to
3069 comment.
3070
9076e292
JM
30712000-07-27 Jason Merrill <jason@redhat.com>
3072
3073 * decl.c (duplicate_decls): If common_type produces a non-typedef
3074 type for a typedef, just use the old type.
3075
b2244c65
MM
30762000-07-27 Mark Mitchell <mark@codesourcery.com>
3077
3078 * cp-tree.h (function_depth): Declare.
3079 (verify_stmt_tree): Likewise.
3080 (find_tree): Likewise.
3081 * decl.c (function_depth): Give it external linkage.
3082 * optimize.c (optimize_function): Increment and decrement it.
3083 * tree.c (verify_stmt_tree_r): New function.
3084 (verify_stmt_tree): Likewise.
3085 (find_tree_r): Likewise.
3086 (find_tree): Likewise.
3087
62e3bf54
JM
30882000-07-27 Jason Merrill <jason@redhat.com>
3089
9076e292
JM
3090 * pt.c (for_each_template_parm_r, case RECORD_TYPE): Use
3091 TYPE_PTRMEMFUNC_P.
3092 * cp-tree.h (TYPE_TEMPLATE_INFO): Check for TYPE_LANG_SPECIFIC.
62e3bf54 3093
5a728aca
MM
30942000-07-26 Mark Mitchell <mark@codesourcery.com>
3095
3096 * decl.c (start_cleanup_fn): Mark the function as `inline'.
3097 * decl2.c (get_guard): Call cp_finish_decl, not
3098 rest_of_decl_compilation, for local guards.
3099 * lex.c (do_identifier): Remove unused variable.
3100
6a1fa5f9
ME
3101Wed Jul 26 15:05:51 CEST 2000 Marc Espie <espie@cvs.openbsd.org>
3102
3103 * parse.y: Add missing ';'.
3104
0c10a805
MM
31052000-07-26 Mark Mitchell <mark@codesourcery.com>
3106
3107 * parse.y (empty_parms): Use `()', not `(...)', when in the scope
3108 of `extern "C++"'.
3109
8b27e9ef
NS
31102000-07-25 Nathan Sidwell <nathan@codesourcery.com>
3111
3112 Kill strict_prototype. Backwards compatibility only for
3113 non NO_IMPLICIT_EXTERN_C systems.
3114 * cp-tree.h (flag_strict_prototype): Remove.
3115 (strict_prototype): Remove.
3116 (strict_prototypes_lang_c, strict_prototypes_lang_cplusplus): Remove.
3117 * decl.c (maybe_push_to_top_level): Adjust.
3118 (pop_from_top_level): Adjust.
3119 (decls_match): Only allow sloppy parm matching for ancient
3120 system headers.
3121 (init_decl_processing): Adjust.
3122 (grokdeclarator): Adjust.
3123 * decl2.c (flag_strict_prototype): Remove.
3124 (strict_prototype): Remove.
3125 (strict_prototypes_lang_c, strict_prototypes_lang_cplusplus): Remove.
3126 (lang_f_options): Remove "strict-prototype".
3127 (unsupported-options): Add "strict-prototype".
3128 * lex.c (do_identifier): Adjust.
3129 (do_scoped_id): Adjust.
3130 * parse.y (empty_parms): Adjust.
3131 * class.c (push_lang_context): Adjust.
3132 (pop_lang_context): Adjust.
3133 * typeck.c (comp_target_parms): Adjust.
3134
c3783399
NS
31352000-07-25 Nathan Sidwell <nathan@codesourcery.com>
3136
3137 * decl.c (poplevel): Deal with anonymous variables at for scope.
3138 (maybe_inject_for_scope_var): Likewise.
3139
a7023245
ZW
31402000-07-25 Zack Weinberg <zack@wolery.cumb.org>
3141
3142 * decl.c: Remove all signal handling code, now done in toplev.c.
3143
95ee998c
MM
31442000-07-23 Mark Mitchell <mark@codesourcery.com>
3145
3146 * decl.c (make_rtl_for_nonlocal_decl): Rework.
3147
3148 * pt.c (lookup_template_class): Ensure that TYPE_CONTEXT is set
3149 correctly.
3150
1b493b81
ZW
31512000-07-20 Zack Weinberg <zack@wolery.cumb.org>
3152
3153 * cp-tree.h: Use __FUNCTION__ not __PRETTY_FUNCTION__.
3154 Define my_friendly_assert and my_friendly_abort as macros
3155 which may call friendly_abort. Prototype friendly abort, not
3156 my_friendly_abort or my_friendly_assert.
3157 * decl.c (signal_catch): Report the signal caught in the error
3158 message. Call fatal directly.
3159 * typeck2.c (ack, my_friendly_assert): Delete.
3160 (my_friendly_abort): Rename to friendly_abort. Expect file,
3161 line, and function parameters. Report the abort code, then
3162 call fancy_abort. Do not mask an abort if errors have
3163 already occurred.
3164
a306451c
NS
31652000-07-18 Nathan Sidwell <nathan@codesourcery.com>
3166
3167 * typeck.c (comp_target_parms): Remove obsolete parameter.
3168 (comp_target_types): Adjust.
3169
f49fad00
JM
31702000-07-17 Jason Merrill <jason@redhat.com>
3171
3172 * typeck.c (mark_addressable): Never set TREE_USED.
3173 * call.c (build_call): Don't abort on calls to library functions
3174 that have been declared normally.
3175
3176 * typeck.c (build_binary_op): Fix grammar in warning.
3177
3178 * exception.cc (__eh_free): Fix prototype.
3179
3180 * decl2.c (finish_decl_parsing): Handle TEMPLATE_ID_EXPR.
3181
0e5921e8 3182 * decl.c (pushdecl): Handle seeing an OVERLOAD in
f49fad00
JM
3183 IDENTIFIER_NAMESPACE_VALUE.
3184
69690d98
MM
31852000-07-16 Mark Mitchell <mark@codesourcery.com>
3186
3187 * cp-tree.h (THUNK_VCALL_OFFSET): Update documentation.
3188 * method.c (use_thunk): Correct handling of vcall offsets.
3189
bfbbc080
ZW
31902000-07-14 Zack Weinberg <zack@wolery.cumb.org>
3191
3192 * .cvsignore: parse.h and parse.c have no cp- prefix.
3193
83a90717
MM
31942000-07-13 Mark Mitchell <mark@codesourcery.com>
3195
3196 * .cvsignore: New file.
3197
ea414c97
ZW
31982000-07-13 Zack Weinberg <zack@wolery.cumb.org>
3199
3200 * lang-specs.h: Use the new named specs. Remove unnecessary braces.
3201
792abd35
MM
32022000-07-12 Mark Mitchell <mark@codesourcery.com>
3203
3204 * Makefile.in ($(PARSE_H)): Depend directly on parse.y.
3205 * parse.c: Remove.
3206 * parse.h: Likewise.
3207
72a50ab0
MM
32082000-07-11 Mark Mitchell <mark@codesourcery.com>
3209
3210 * class.c (layout_class_type): Add pointers to virtual bases after
3211 base classes under the old ABI.
3212
0dfdeca6
BC
32132000-07-10 Benjamin Chelf <chelf@codesourcery.com>
3214
3215 * semantics.c (finish_for_stmt): Remove call to emit_line_note.
3216 (finish_continue_stmt): Likewise.
3217 (begin_for_stmt): Remove call to note_level_for_for.
3218 (finish_goto_stmt): Change call from build_min_nt
3219 to build_stmt.
3220 (finish_expr_stmt): Likewise.
3221 (begin_if_stmt): Likewise.
3222 (begin_while_stmt): Likewise.
3223 (finish_while_stmt): Likewise.
3224 (finish_return_stmt): Likewise.
3225 (begin_for_stmt): Likewise.
3226 (finish_for_stmt): Likewise.
3227 (finish_break_stmt): Likewise.
3228 (begin_switch_stmt): Likewise.
3229 (finish_case_label): Likewise.
3230 (genrtl_try_block): Likewise.
3231 (begin_try_block): Likewise.
3232 (begin_handler): Likewise.
3233 (begin_compound_stmt): Likewise.
3234 (finish_asm_stmt): Likewise.
3235 (finish_label_stmt): Likewise.
3236 (add_decl_stmt): Likewise.
3237 (finish_subobject): Likewise.
3238 (finish_decl_cleanup): Likewise.
3239 (finish_named_return_value): Likewise.
3240 (setup_vtbl_ptr): Likewise.
3241 (add_scope_stmt): Likewise.
3242 * decl.c (finish_constructor_body): Likewise.
3243 (finish_destructor_body): Likewise.
3244 * optimize.c (copy_body_r): Likewise.
3245 (initialize_inlined_parameters): Likewise.
3246 (declare_return_variable): Likewise.
3247 (expand_call_inline): Likewise.
0e5921e8 3248
f12eef58
JJ
32492000-07-10 Jakub Jelinek <jakub@redhat.com>
3250
3251 * semantics.c (expand_body): Sync interface information
3252 at the end of function body expansion.
3253
2bb5d995
JM
32542000-07-09 Jason Merrill <jason@redhat.com>
3255
3256 * init.c (build_new_1): Bail early if the call to new fails.
3257
0e5921e8 3258 * decl.c (compute_array_index_type): Check specifically for
2bb5d995
JM
3259 an INTEGER_CST, not just TREE_CONSTANT.
3260
0e5921e8 3261 * decl.c (duplicate_decls): Don't call duplicate_decls on
2bb5d995
JM
3262 the DECL_TEMPLATE_RESULT.
3263 (decls_match): Return 0 if the DECL_TEMPLATE_RESULTs have different
3264 codes.
3265
3266 * error.c (dump_template_bindings): Don't crash if we had an
3267 invalid argument list.
3268
3269 * typeck.c (c_expand_start_case): Do narrowing here.
3270 * semantics.c (finish_switch_cond): Not here.
3271
32722000-07-09 Hidvegi Zoli <hzoli@austin.ibm.com>
3273
3274 * parse.y (asm_clobbers): Do string concatenation.
3275
089acd57
MM
32762000-07-09 Mark Mitchell <mark@codesourcery.com>
3277
3278 * decl.c (pushtag): Don't put local classes in template functions
3279 on the local_classes list.
3280
32812000-07-04 Scott Snyder <snyder@fnal.gov>
3282
3283 * decl2.c (get_guard): Add missing return for old ABI local
3284 variable case.
3285
7b019c19
MM
32862000-07-09 Mark Mitchell <mark@codesourcery.com>
3287
3288 * cp-tree.h (char_type_p): New function.
3289 * decl.c (init_decl_processing): Don't initialize
3290 signed_wchar_type_node or unsigned_wchar_type_node.
3291 (complete_array_type): Handle brace-enclosed string-constants.
3292 * rtti.c (emit_support_tinfos): Remove #if 0'd code.
3293 * tree.c (char_type_p): New function.
3294 * typeck2.c (digest_init): Use char_type_p.
3295
a5f1c5f8
NS
32962000-07-06 Nathan Sidwell <nathan@codesourcery.com>
3297
3298 * pt.c (tsubst): Don't layout type, if it's error_mark.
3299
84e5ca0f
NS
33002000-07-06 Nathan Sidwell <nathan@codesourcery.com>
3301
3302 * pt.c (instantiate_pending_templates): Reset template level.
3303
ab785305
JM
33042000-07-05 Jason Merrill <jason@redhat.com>
3305
3306 * call.c (joust): Don't complain about `operator char *()' beating
3307 `operator const char *() const'.
3308
90418208
JM
33092000-07-04 scott snyder <snyder@fnal.gov>
3310 Jason Merrill <jason@redhat.com>
3311
0e5921e8 3312 * repo.c (repo_get_id): Handle the case where a class with virtual
90418208
JM
3313 bases has a null TYPE_BINFO_VTABLE.
3314
33152000-07-04 Kevin Buhr <buhr@stat.wisc.edu>
3316 Jason Merrill <jason@redhat.com>
3317
3318 * parse.y (member_init): Just pass in the type.
3319 * init.c (expand_member_init): Handle getting a type.
3320
3321