xref: /netbsd/external/gpl3/gcc/dist/gcc/cp/ChangeLog-2001 (revision c3d31fe1)
1*c3d31fe1Smrg2001-12-29  Nathan Sidwell  <nathan@codesourcery.com>
2*c3d31fe1Smrg
3*c3d31fe1Smrg	* call.c (build_user_type_conversion_1): Use my_friendly_assert
4*c3d31fe1Smrg	rather than if ... abort.
5*c3d31fe1Smrg	* cvt.c (convert_to_reference): Likewise.
6*c3d31fe1Smrg	* semantics.c (setup_vtbl_ptr): Likewise.
7*c3d31fe1Smrg	* pt.c (lookup_template_class): Comment typo.
8*c3d31fe1Smrg
9*c3d31fe1Smrg2001-12-29  Nathan Sidwell  <nathan@codesourcery.com>
10*c3d31fe1Smrg
11*c3d31fe1Smrg	PR c++/5125
12*c3d31fe1Smrg	* pt.c (push_template_decl_real): Make sure DECL has
13*c3d31fe1Smrg	DECL_LANG_SPECIFIC.
14*c3d31fe1Smrg
15*c3d31fe1Smrg2001-12-29  Nathan Sidwell  <nathan@codesourcery.com>
16*c3d31fe1Smrg
17*c3d31fe1Smrg	PR c++/335
18*c3d31fe1Smrg	* init.c (resolve_offset_ref): Copy cv qualifiers of this pointer
19*c3d31fe1Smrg	for non-reference fields.
20*c3d31fe1Smrg	* typeck.c (require_complete_type): Use resolve_offset_ref).
21*c3d31fe1Smrg
22*c3d31fe1Smrg2001-12-26  Nathan Sidwell  <nathan@codesourcery.com>
23*c3d31fe1Smrg
24*c3d31fe1Smrg	PR c++/196
25*c3d31fe1Smrg	* parse.y (bad_parm): Better diagnostic when given a SCOPE_REF.
26*c3d31fe1Smrg
27*c3d31fe1Smrg2001-12-24  Nathan Sidwell  <nathan@codesourcery.com>
28*c3d31fe1Smrg
29*c3d31fe1Smrg	PR c++/160
30*c3d31fe1Smrg	* typeck.c (build_modify_expr): Remove old unreachable code & tidy
31*c3d31fe1Smrg	up. Don't stabilize_references when initializing a reference.
32*c3d31fe1Smrg
33*c3d31fe1Smrg2001-12-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
34*c3d31fe1Smrg
35*c3d31fe1Smrg	* decl2.c (lang_f_options): Const-ify.
36*c3d31fe1Smrg
37*c3d31fe1Smrg2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
38*c3d31fe1Smrg
39*c3d31fe1Smrg	* config-lang.in (diff_excludes): Remove.
40*c3d31fe1Smrg
41*c3d31fe1Smrg2001-12-19  Nathan Sidwell  <nathan@codesourcery.com>
42*c3d31fe1Smrg
43*c3d31fe1Smrg	PR c++/90
44*c3d31fe1Smrg	* typeck.c (build_function_call_real): Use original function
45*c3d31fe1Smrg	expression for errors.
46*c3d31fe1Smrg
47*c3d31fe1Smrg2001-12-18  Jason Merrill  <jason@redhat.com>
48*c3d31fe1Smrg
49*c3d31fe1Smrg	PR c++/3242
50*c3d31fe1Smrg	* class.c (add_method): Do compare 'this' quals when trying to match a
51*c3d31fe1Smrg	used function.  Don't defer to another used function.
52*c3d31fe1Smrg
53*c3d31fe1Smrg2001-12-18  Nathan Sidwell  <nathan@codesourcery.com>
54*c3d31fe1Smrg
55*c3d31fe1Smrg	* pt.c (instantiate_clone): Remove, fold into ...
56*c3d31fe1Smrg	(instantiate_template): ... here. Simplify by removing mutual
57*c3d31fe1Smrg	recursion.
58*c3d31fe1Smrg	* typeck2.c (build_m_component_ref): Don't cv qualify the function
59*c3d31fe1Smrg	pointed to by a pointer to function.
60*c3d31fe1Smrg	* class.c (delete_duplicate_fields_1): Typo.
61*c3d31fe1Smrg
62*c3d31fe1Smrg2001-12-18  Jason Merrill  <jason@redhat.com>
63*c3d31fe1Smrg
64*c3d31fe1Smrg	C++ ABI change: destroy value arguments in caller.
65*c3d31fe1Smrg	* semantics.c (genrtl_start_function, genrtl_finish_function): Don't
66*c3d31fe1Smrg	create an extra binding level for the parameters.
67*c3d31fe1Smrg	* decl.c (store_parm_decls): Don't do parameter cleanups.
68*c3d31fe1Smrg
69*c3d31fe1Smrg2001-12-18  Nathan Sidwell  <nathan@codesourcery.com>
70*c3d31fe1Smrg
71*c3d31fe1Smrg	* call.c (build_new_method_call): Use '%#V'.
72*c3d31fe1Smrg	* error.c (cv_to_string): Use V parameter to determine padding.
73*c3d31fe1Smrg
74*c3d31fe1Smrg2001-12-18  Joseph S. Myers  <jsm28@cam.ac.uk>
75*c3d31fe1Smrg
76*c3d31fe1Smrg	* call.c, decl2.c, init.c: Use "built-in" and "bit-field"
77*c3d31fe1Smrg	spellings in messages.
78*c3d31fe1Smrg
79*c3d31fe1Smrg2001-12-17  Zack Weinberg  <zack@codesourcery.com>
80*c3d31fe1Smrg
81*c3d31fe1Smrg	* cp-tree.h: Delete #defines for cp_error, cp_warning,
82*c3d31fe1Smrg	cp_pedwarn, and cp_compiler_error.
83*c3d31fe1Smrg	* call.c, class.c, cp-tree.h, cvt.c, decl.c, decl2.c, error.c,
84*c3d31fe1Smrg	except.c, friend.c, init.c, lex.c, method.c, parse.y, pt.c,
85*c3d31fe1Smrg	rtti.c, search.c, semantics.c, spew.c, tree.c, typeck.c,
86*c3d31fe1Smrg	typeck2.c: Change calls to the above macros to use their
87*c3d31fe1Smrg	language-independent equivalents: error, warning, pedwarn, and
88*c3d31fe1Smrg	internal_error respectively.
89*c3d31fe1Smrg
90*c3d31fe1Smrg2001-12-16  Neil Booth  <neil@daikokuya.demon.co.uk>
91*c3d31fe1Smrg
92*c3d31fe1Smrg	* decl2.c (finish_file): Remove back_end_hook.
93*c3d31fe1Smrg
94*c3d31fe1Smrg2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
95*c3d31fe1Smrg
96*c3d31fe1Smrg	* ChangeLog.1, ChangeLog.2, ChangeLog, NEWS, call.c, class.c,
97*c3d31fe1Smrg	cp-tree.h, decl.c, decl2.c, except.c, operators.def, optimize.c,
98*c3d31fe1Smrg	pt.c, rtti.c, semantics.c, typeck.c: Fix spelling errors.
99*c3d31fe1Smrg
100*c3d31fe1Smrg2001-12-15  Joseph S. Myers  <jsm28@cam.ac.uk>
101*c3d31fe1Smrg
102*c3d31fe1Smrg	* lang-options.h: Use American spelling in messages.
103*c3d31fe1Smrg
104*c3d31fe1Smrg2001-12-13  Jason Merrill  <jason@redhat.com>
105*c3d31fe1Smrg
106*c3d31fe1Smrg	* Make-lang.in (parse.h): Separate rule, just depend on parse.c.
107*c3d31fe1Smrg
108*c3d31fe1Smrg	Use cleanups to run base and member destructors.
109*c3d31fe1Smrg	* init.c (push_base_cleanups): New function, split out from...
110*c3d31fe1Smrg	(build_delete): ...here.  Lose !TYPE_HAS_DESTRUCTOR code.
111*c3d31fe1Smrg	* decl.c (finish_destructor_body): Move vbase destruction code to
112*c3d31fe1Smrg	push_base_cleanups.
113*c3d31fe1Smrg	(begin_function_body, finish_function_body): New fns.
114*c3d31fe1Smrg	(finish_function): Move [cd]tor handling and call_poplevel to
115*c3d31fe1Smrg	finish_function_body.
116*c3d31fe1Smrg	(pushdecl): Skip the new level.
117*c3d31fe1Smrg	* semantics.c (genrtl_try_block): Don't call end_protect_partials.
118*c3d31fe1Smrg	(setup_vtbl_ptr): Call push_base_cleanups.
119*c3d31fe1Smrg	* method.c (synthesize_method): Call {begin,end}_function_body.
120*c3d31fe1Smrg	* pt.c (tsubst_expr): Handle COMPOUND_STMT_BODY_BLOCK.
121*c3d31fe1Smrg	* cp-tree.h: Declare new fns.
122*c3d31fe1Smrg	* parse.y (function_body, .begin_function_body): New nonterminals.
123*c3d31fe1Smrg	(fndef, pending_inline, function_try_block): Use function_body.
124*c3d31fe1Smrg	(ctor_initializer_opt, function_try_block): No longer has a value.
125*c3d31fe1Smrg	(base_init): Remove .set_base_init token.
126*c3d31fe1Smrg	(.set_base_init, compstmt_or_error): Remove.
127*c3d31fe1Smrg	* Make-lang.in (parse.c): Expect two fewer s/r conflicts.
128*c3d31fe1Smrg
129*c3d31fe1Smrg	* optimize.c (maybe_clone_body): Fix parameter updating.
130*c3d31fe1Smrg
131*c3d31fe1Smrg2001-12-12  Jason Merrill  <jason@redhat.com>
132*c3d31fe1Smrg
133*c3d31fe1Smrg	* decl.c (store_parm_decls): Remove parms_have_cleanups cruft.
134*c3d31fe1Smrg	* semantics.c (genrtl_start_function): Don't pass
135*c3d31fe1Smrg	parms_have_cleanups or push an extra binding level.
136*c3d31fe1Smrg	(genrtl_finish_function): Lose cleanup_label cruft.
137*c3d31fe1Smrg
138*c3d31fe1Smrg	* cp-tree.h (struct cp_language_function): Remove x_ctor_label.
139*c3d31fe1Smrg	(ctor_label): Remove.
140*c3d31fe1Smrg	* semantics.c (finish_return_stmt): Lose ctor_label support.
141*c3d31fe1Smrg	* decl.c (finish_constructor_body, mark_lang_function): Likewise.
142*c3d31fe1Smrg	* typeck.c (check_return_expr): Check DECL_DESTRUCTOR_P, not
143*c3d31fe1Smrg	dtor_label.
144*c3d31fe1Smrg
145*c3d31fe1Smrg	* call.c (build_new_method_call): Let resolves_to_fixed_type_p
146*c3d31fe1Smrg	check for [cd]tors.
147*c3d31fe1Smrg	* class.c (fixed_type_or_null, case INDIRECT_REF): Fix.
148*c3d31fe1Smrg
149*c3d31fe1Smrg	* decl.c (finish_function): Check VMS_TARGET, not VMS.
150*c3d31fe1Smrg
151*c3d31fe1Smrg	* decl.c (start_cleanup_fn): Remove redundant pushlevel.
152*c3d31fe1Smrg	(end_cleanup_fn): And poplevel.
153*c3d31fe1Smrg
154*c3d31fe1Smrg	* semantics.c (setup_vtbl_ptr): Always build a CTOR_INITIALIZER
155*c3d31fe1Smrg	if we're in a template.
156*c3d31fe1Smrg
157*c3d31fe1Smrg2001-12-12  Jakub Jelinek  <jakub@redhat.com>
158*c3d31fe1Smrg
159*c3d31fe1Smrg	* cp-tree.h (DESTRUCTOR_DECL_PREFIX, DESTRUCTOR_NAME_P,
160*c3d31fe1Smrg	ANON_PARMNAME_FORMAT, ANON_PARMNAME_P, DESTRUCTOR_NAME_FORMAT,
161*c3d31fe1Smrg	THIS_NAME_P): Delete.
162*c3d31fe1Smrg	* spew.c (read_process_identifier): Remove DESTRUCTOR_NAME_P,
163*c3d31fe1Smrg	THIS_NAME_P and ANON_PARMNAME_P tests from warning about clash
164*c3d31fe1Smrg	with internal naming scheme.
165*c3d31fe1Smrg	* error.c (dump_decl): Remove DESTRUCTOR_NAME_P use.
166*c3d31fe1Smrg
167*c3d31fe1Smrg2001-12-12  Nathan Sidwell  <nathan@codesourcery.com>
168*c3d31fe1Smrg
169*c3d31fe1Smrg	* decl.c (grokdeclarator): Deprecated implicit typename use.
170*c3d31fe1Smrg
171*c3d31fe1Smrg2001-12-11  Nathan Sidwell  <nathan@codesourcery.com>
172*c3d31fe1Smrg
173*c3d31fe1Smrg	PR g++/51
174*c3d31fe1Smrg	* parse.y (frob_specs): Indicate it is a language linkage which
175*c3d31fe1Smrg	contained the extern.
176*c3d31fe1Smrg	* decl.c (grokdeclarator): Allow extern language linkage with
177*c3d31fe1Smrg	other specifiers.
178*c3d31fe1Smrg
179*c3d31fe1Smrg2001-12-10  Nathan Sidwell  <nathan@codesourcery.com>
180*c3d31fe1Smrg
181*c3d31fe1Smrg	PR g++/72
182*c3d31fe1Smrg	* decl.c (add_binding): Don't reject duplicate typedefs involving
183*c3d31fe1Smrg	template parameters.
184*c3d31fe1Smrg
185*c3d31fe1Smrg2001-12-10  Neil Booth  <neil@daikokuya.demon.co.uk>
186*c3d31fe1Smrg
187*c3d31fe1Smrg	* parse.y, semantics.c: Similarly.
188*c3d31fe1Smrg
189*c3d31fe1Smrg2001-12-09  Nathan Sidwell  <nathan@codesourcery.com>
190*c3d31fe1Smrg
191*c3d31fe1Smrg	PR g++/87
192*c3d31fe1Smrg	* cp-tree.h (DECL_COPY_CONSTRUCTOR_P): Use copy_fn_p.
193*c3d31fe1Smrg	(copy_args_p): Rename to ...
194*c3d31fe1Smrg	(copy_fn_p): ... here.
195*c3d31fe1Smrg	(grok_special_member_properties): New function.
196*c3d31fe1Smrg	(grok_op_properties): Lose VIRTUALP parameter.
197*c3d31fe1Smrg	(copy_assignment_arg_p): Remove.
198*c3d31fe1Smrg	* call.c (build_over_call): Use copy_fn_p.
199*c3d31fe1Smrg	* decl.c (grokfndecl): Reformat. Adjust call to
200*c3d31fe1Smrg	grok_op_properties.
201*c3d31fe1Smrg	(copy_args_p): Rename to ...
202*c3d31fe1Smrg	(copy_fn_p): ... here. Reject template functions. Check for pass
203*c3d31fe1Smrg	by value.
204*c3d31fe1Smrg	(grok_special_member_properties): Remember special functions.
205*c3d31fe1Smrg	(grok_ctor_properties): Don't remember them here, just check.
206*c3d31fe1Smrg	(grok_op_properties): Likewise.
207*c3d31fe1Smrg	(start_method): Call grok_special_member_properties.
208*c3d31fe1Smrg	* decl2.c (grokfield): Likewise.
209*c3d31fe1Smrg	(copy_assignment_arg_p): Remove.
210*c3d31fe1Smrg	(grok_function_init): Don't remember abstract assignment here.
211*c3d31fe1Smrg	* pt.c (instantiate_class_template): Call
212*c3d31fe1Smrg	grok_special_member_properties.
213*c3d31fe1Smrg	(tsubst_decl): Adjust grok_op_properties call.
214*c3d31fe1Smrg
215*c3d31fe1Smrg2001-12-08  Aldy Hernandez  <aldyh@redhat.com>
216*c3d31fe1Smrg
217*c3d31fe1Smrg	* lex.c (rid_to_yy): Add RID_CHOOSE_EXPR and
218*c3d31fe1Smrg	RID_TYPES_COMPATIBLE_P.
219*c3d31fe1Smrg
220*c3d31fe1Smrg2001-12-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
221*c3d31fe1Smrg
222*c3d31fe1Smrg	* semantics.c (simplify_aggr_init_exprs_r): Add DIRECT_BIND flag in
223*c3d31fe1Smrg	call to build_aggr_init.
224*c3d31fe1Smrg	* cp-tree.h (DIRECT_BIND): Document new use of DIRECT_BIND.
225*c3d31fe1Smrg
226*c3d31fe1Smrg2001-12-08  Neil Booth  <neil@daikokuya.demon.co.uk>
227*c3d31fe1Smrg
228*c3d31fe1Smrg	* parse.y: Replace uses of the string non-terminal with STRING.
229*c3d31fe1Smrg	Don't perform string concatentaion here.
230*c3d31fe1Smrg	(string): Remove non-terminal.
231*c3d31fe1Smrg	* semantics.c (finish_asm_stmt): Don't concatenate strings here.
232*c3d31fe1Smrg
233*c3d31fe1Smrg2001-12-05  Jason Merrill  <jason@redhat.com>
234*c3d31fe1Smrg
235*c3d31fe1Smrg	* cp-lang.c (LANG_HOOKS_TREE_INLINING_START_INLINING): Define.
236*c3d31fe1Smrg	(LANG_HOOKS_TREE_INLINING_END_INLINING): Define.
237*c3d31fe1Smrg	* tree.c (cp_start_inlining, cp_end_inlining): New fns.
238*c3d31fe1Smrg	* pt.c (push_tinst_level): No longer static.
239*c3d31fe1Smrg	* cp-tree.h: Declare them.
240*c3d31fe1Smrg
241*c3d31fe1Smrg	* init.c (resolve_offset_ref): Don't check access for the base
242*c3d31fe1Smrg	conversion to access a FIELD_DECL.
243*c3d31fe1Smrg
244*c3d31fe1Smrg	* cp-tree.h (TYPE_REFFN_P): New macro.
245*c3d31fe1Smrg	* decl.c (bad_specifiers): Check it, too.
246*c3d31fe1Smrg
247*c3d31fe1Smrg	* rtti.c (create_pseudo_type_info): Set CLASSTYPE_INTERFACE_ONLY
248*c3d31fe1Smrg	on the __*_type_info type if we haven't seen a definition.
249*c3d31fe1Smrg
250*c3d31fe1Smrg2001-12-05  Neil Booth  <neil@daikokuya.demon.co.uk>
251*c3d31fe1Smrg
252*c3d31fe1Smrg	* decl.c: Include c-common.h.
253*c3d31fe1Smrg	(shadow_warning): Move to c-common.c.
254*c3d31fe1Smrg
255*c3d31fe1Smrg2001-12-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
256*c3d31fe1Smrg
257*c3d31fe1Smrg	* decl.c (duplicate_decls): Don't copy DECL_NO_CHECK_MEMORY_USAGE.
258*c3d31fe1Smrg
259*c3d31fe1Smrg2001-12-04  Nathan Sidwell  <nathan@codesourcery.com>
260*c3d31fe1Smrg
261*c3d31fe1Smrg	* pt.c (end_template_parm_list): Clear TREE_CHAIN of each parm.
262*c3d31fe1Smrg
263*c3d31fe1Smrg2001-12-04  Nathan Sidwell  <nathan@codesourcery.com>
264*c3d31fe1Smrg
265*c3d31fe1Smrg	PR g++/164
266*c3d31fe1Smrg	* init.c (sort_base_init): Allow binfos to be directly specified.
267*c3d31fe1Smrg	* method.c (do_build_copy_constructor): Explicitly convert to the
268*c3d31fe1Smrg	base instance.
269*c3d31fe1Smrg	(do_build_assign_ref): Likewise.
270*c3d31fe1Smrg
271*c3d31fe1Smrg2001-12-03  Hans-Peter Nilsson  <hp@bitrange.com>
272*c3d31fe1Smrg
273*c3d31fe1Smrg	* decl.c (xref_basetypes): Don't use C99 construct in tag_code
274*c3d31fe1Smrg	declaration and initialization.
275*c3d31fe1Smrg
276*c3d31fe1Smrg2001-12-03  Neil Booth  <neil@daikokuya.demon.co.uk>
277*c3d31fe1Smrg
278*c3d31fe1Smrg	* typeck2.c: Remove leading capital from diagnostic messages, as
279*c3d31fe1Smrg	per GNU coding standards.
280*c3d31fe1Smrg
281*c3d31fe1Smrg2001-12-03  Mumit Khan  <khan@nanotech.wisc.edu>
282*c3d31fe1Smrg
283*c3d31fe1Smrg	PR c++/3394
284*c3d31fe1Smrg	* decl.c (xref_basetypes): Handle attributes between
285*c3d31fe1Smrg	'class' and name.
286*c3d31fe1Smrg
287*c3d31fe1Smrg2001-12-03  Nathan Sidwell  <nathan@codesourcery.com>
288*c3d31fe1Smrg
289*c3d31fe1Smrg	PR g++/3381
290*c3d31fe1Smrg	* parse.y (named_complex_class_head_sans_basetype): Add new
291*c3d31fe1Smrg	reduction.
292*c3d31fe1Smrg	* Make-lang.in (parse.c): Adjust expected conflict count.
293*c3d31fe1Smrg
294*c3d31fe1Smrg2001-12-03  Jason Merrill  <jason@redhat.com>
295*c3d31fe1Smrg
296*c3d31fe1Smrg	* class.c (finish_vtbls): Fill in BINFO_VPTR_FIELD in the
297*c3d31fe1Smrg	immediate binfos for our virtual bases.
298*c3d31fe1Smrg
299*c3d31fe1Smrg2001-12-02  Neil Booth  <neil@daikokuya.demon.co.uk>
300*c3d31fe1Smrg
301*c3d31fe1Smrg	* call.c (build_java_interface_fn_ref): Similarly.
302*c3d31fe1Smrg	* except.c (is_admissible_throw_operand): Similarly.
303*c3d31fe1Smrg	* init.c (build_java_class_ref): Similarly.
304*c3d31fe1Smrg	* xref.c (open_xref_file): Similarly.
305*c3d31fe1Smrg
306*c3d31fe1Smrg2001-12-01  Neil Booth  <neil@daikokuya.demon.co.uk>
307*c3d31fe1Smrg
308*c3d31fe1Smrg	* class.c (finish_struct): Remove trailing periods from messages.
309*c3d31fe1Smrg	* decl.c (check_tag_decl): Similarly.
310*c3d31fe1Smrg	* lex.c (cxx_set_yydebug): Similarly.
311*c3d31fe1Smrg	* typeck2.c (friendly_abort): Similarly.
312*c3d31fe1Smrg
313*c3d31fe1Smrg2001-11-29  Mark Mitchell  <mark@codesourcery.com>
314*c3d31fe1Smrg
315*c3d31fe1Smrg	PR c++/3048
316*c3d31fe1Smrg	* cp-tree.h (ovl_member): Remove.
317*c3d31fe1Smrg	* decl2.c (merge_functions): Handle extern "C" functions
318*c3d31fe1Smrg	specially.
319*c3d31fe1Smrg	* tree.c (ovl_member): Remove.
320*c3d31fe1Smrg
321*c3d31fe1Smrg2001-11-29  Mark Mitchell  <mark@codesourcery.com>
322*c3d31fe1Smrg
323*c3d31fe1Smrg	PR c++/4842
324*c3d31fe1Smrg	* class.c (get_basefndecls): Take an IDENTIFIER_NODE, not a
325*c3d31fe1Smrg	FUNCTION_DECL, as input.
326*c3d31fe1Smrg	(mark_overriders): Remove.
327*c3d31fe1Smrg	(warn_hidden): Rework for the new ABI.
328*c3d31fe1Smrg
329*c3d31fe1Smrg2001-11-29  Mark Mitchell  <mark@codesourcery.com>
330*c3d31fe1Smrg
331*c3d31fe1Smrg	PR c++/3471
332*c3d31fe1Smrg	* call.c (convert_like_real): Do not build additional temporaries
333*c3d31fe1Smrg	for rvalues of class type.
334*c3d31fe1Smrg
335*c3d31fe1Smrg2001-11-28  Nathan Sidwell  <nathan@codesourcery.com>
336*c3d31fe1Smrg
337*c3d31fe1Smrg	* cp-tree.h (UNIQUELY_DERIVED_FROM_P): Use lookup base.
338*c3d31fe1Smrg	(ACCESSIBLY_UNIQUELY_DERIVED_FROM_P): Likewise.
339*c3d31fe1Smrg	(PUBLICLY_UNIQUELY_DERIVED_FROM_P: Likewise.
340*c3d31fe1Smrg	(DERIVED_FROM_P): Likewise.
341*c3d31fe1Smrg	(enum base_access): Renumber, add ba_quiet bit mask.
342*c3d31fe1Smrg	(get_binfo): Remove.
343*c3d31fe1Smrg	(get_base_distance): Remove.
344*c3d31fe1Smrg	(binfo_value): Remove.
345*c3d31fe1Smrg	(ACCESSIBLY_DERIVED_FROM_P): Remove.
346*c3d31fe1Smrg	* call.c (standard_conversion): Use lookup_base.
347*c3d31fe1Smrg	* class.c (strictly_overrides): Likewise.
348*c3d31fe1Smrg	(layout_virtual_bases): Likewise.
349*c3d31fe1Smrg	(warn_about_ambiguous_direct_bases): Likewise.
350*c3d31fe1Smrg	(is_base_of_enclosing_class): Likewise.
351*c3d31fe1Smrg	(add_vcall_offset_vtbl_entries_1): Likewise.
352*c3d31fe1Smrg	* cvt.c (build_up_reference): Adjust comment.
353*c3d31fe1Smrg	* init.c (build_member_call): Reformat.
354*c3d31fe1Smrg	* search.c (get_binfo): Remove.
355*c3d31fe1Smrg	(get_base_distance_recursive): Remove.
356*c3d31fe1Smrg	(get_base_distance): Remove.
357*c3d31fe1Smrg	(lookup_base_r): Tweak.
358*c3d31fe1Smrg	(lookup_base): Add ba_quiet control. Complete the types here.
359*c3d31fe1Smrg	(covariant_return_p): Use lookup_base.
360*c3d31fe1Smrg	* tree.c (binfo_value): Remove.
361*c3d31fe1Smrg	(maybe_dummy_object): Use lookup_base.
362*c3d31fe1Smrg	* typeck.c (build_static_cast): Use lookup_base.
363*c3d31fe1Smrg	(get_delta_difference): Likewise.
364*c3d31fe1Smrg	* typeck2.c (binfo_or_else): Use lookup_base.
365*c3d31fe1Smrg	(build_scoped_ref): Add back error_mark_check.
366*c3d31fe1Smrg	(build_m_component_ref): Use lookup_base.
367*c3d31fe1Smrg
368*c3d31fe1Smrg2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
369*c3d31fe1Smrg
370*c3d31fe1Smrg	* Make-lang.in (c++.generated-manpages): New dummy target.
371*c3d31fe1Smrg
372*c3d31fe1Smrg2001-11-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
373*c3d31fe1Smrg
374*c3d31fe1Smrg	* Make-lang.in (cp-lang.o): Depends on c-common.h.
375*c3d31fe1Smrg	* cp-lang.c (c-common.h): Include.
376*c3d31fe1Smrg	(LANG_HOOKS_EXPAND_CONSTANT, LANG_HOOKS_SAFE_FROM_P): New hooks.
377*c3d31fe1Smrg	* decl.c (cxx_init_decl_processing): Don't set lang_safe_from_p.
378*c3d31fe1Smrg	* expr.c (init_cplus_expand): Don't set lang_expand_constant.
379*c3d31fe1Smrg
380*c3d31fe1Smrg2001-11-26  Neil Booth  <neil@daikokuya.demon.co.uk>
381*c3d31fe1Smrg
382*c3d31fe1Smrg	* decl2.c (c_language): Move to c-common.c.
383*c3d31fe1Smrg	* lex.c (cxx_post_options, cxx_init_options): Use c-common.c
384*c3d31fe1Smrg	functions.
385*c3d31fe1Smrg	(cxx_init): Update.
386*c3d31fe1Smrg
387*c3d31fe1Smrg2001-11-26  Jason Merrill  <jason@redhat.com>
388*c3d31fe1Smrg
389*c3d31fe1Smrg	* call.c (joust): Remove COND_EXPR hack.
390*c3d31fe1Smrg
391*c3d31fe1Smrg2001-11-25  Aldy Hernandez  <aldyh@redhat.com>
392*c3d31fe1Smrg
393*c3d31fe1Smrg	* search.c (lookup_base_r): Declare bk in variable declaration
394*c3d31fe1Smrg	space.
395*c3d31fe1Smrg
396*c3d31fe1Smrg2001-11-25  Nathan Sidwell  <nathan@codesourcery.com>
397*c3d31fe1Smrg
398*c3d31fe1Smrg	PR g++/3145
399*c3d31fe1Smrg	* class.c (build_vbase_pointer): Remove.
400*c3d31fe1Smrg	(build_vbase_path): Remove.
401*c3d31fe1Smrg	(build_base_path): New function.
402*c3d31fe1Smrg	* cp-tree.h (base_access, base_kind): New enumerations.
403*c3d31fe1Smrg	(build_base_path): Declare.
404*c3d31fe1Smrg	(convert_pointer_to_real): Remove.
405*c3d31fe1Smrg	(convert_pointer_to): Remove.
406*c3d31fe1Smrg	(lookup_base): Declare.
407*c3d31fe1Smrg	(convert_pointer_to_vbase): Remove.
408*c3d31fe1Smrg	* call.c (build_scoped_method_call): Use lookup_base &
409*c3d31fe1Smrg	build_base_path instead of convert_pointer_to_real,
410*c3d31fe1Smrg	get_base_distance & get_binfo.
411*c3d31fe1Smrg	(build_over_call): Likewise.
412*c3d31fe1Smrg	* cvt.c (cp_convert_to_pointer): Likewise.
413*c3d31fe1Smrg	(convert_to_pointer_force): Likewise.
414*c3d31fe1Smrg	(build_up_reference): Likewise.
415*c3d31fe1Smrg	(convert_pointer_to_real): Remove.
416*c3d31fe1Smrg	(convert_pointer_to): Remove.
417*c3d31fe1Smrg	* init.c (dfs_initialize_vtbl_ptrs): Use build_base_path
418*c3d31fe1Smrg	instead of convert_pointer_to_vbase & build_vbase_path.
419*c3d31fe1Smrg	(emit_base_init): Use build_base_path instead of
420*c3d31fe1Smrg	convert_pointer_to_real.
421*c3d31fe1Smrg	(expand_virtual_init): Lose unrequired conversions.
422*c3d31fe1Smrg	(resolve_offset_ref): Use lookup_base and build_base_path
423*c3d31fe1Smrg	instead of convert_pointer_to.
424*c3d31fe1Smrg	* rtti.c (build_dynamic_cast_1): Use lookup_base &
425*c3d31fe1Smrg	build_base_path instead of get_base_distance & build_vbase_path.
426*c3d31fe1Smrg	* search.c (get_vbase_1): Remove.
427*c3d31fe1Smrg	(get_vbase): Remove.
428*c3d31fe1Smrg	(convert_pointer_to_vbase): Remove.
429*c3d31fe1Smrg	(lookup_base_r): New function.
430*c3d31fe1Smrg	(lookup_base): New function.
431*c3d31fe1Smrg	* typeck.c (require_complete_type): Use lookup_base &
432*c3d31fe1Smrg	build_base_path instead of convert_pointer_to.
433*c3d31fe1Smrg	(build_component_ref): Likewise.
434*c3d31fe1Smrg	(build_x_function_call): Likewise.
435*c3d31fe1Smrg	(get_member_function_from_ptrfunc): Likewise.
436*c3d31fe1Smrg	(build_component_addr): Likewise.
437*c3d31fe1Smrg	* typeck2.c (build_scoped_ref): Likewise.
438*c3d31fe1Smrg
439*c3d31fe1Smrg2001-11-22  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
440*c3d31fe1Smrg
441*c3d31fe1Smrg	* cp-tree.h (CP_TYPE_QUALS): Removed.
442*c3d31fe1Smrg	* decl.c (cxx_init_decl_processing): Don't set lang_dump_tree.
443*c3d31fe1Smrg	* cp-lang.c: Set LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN and
444*c3d31fe1Smrg	LANG_HOOKS_TREE_DUMP_TYPE_QUALS_FN.
445*c3d31fe1Smrg	* dump.c (cp_dump_tree): Use void* dump_info argument to match
446*c3d31fe1Smrg	lang-hooks prototype.
447*c3d31fe1Smrg	* call.c, cp-tree.h, cvt.c, decl.c, init.c, mangle.c, method.c, pt.c,
448*c3d31fe1Smrg	rtti.c, semantics.c, tree.c, typeck.c, typeck2.c: All references to
449*c3d31fe1Smrg	CP_TYPE_QUALS changed to cp_type_quals.
450*c3d31fe1Smrg	* Make-lang.in: References to c-dump.h changed to tree-dump.h.
451*c3d31fe1Smrg	(CXX_C_OBJS): Remove c-dump.o.
452*c3d31fe1Smrg
453*c3d31fe1Smrg2001-11-21  Mark Mitchell  <mark@codesourcery.com>
454*c3d31fe1Smrg
455*c3d31fe1Smrg	PR c++/3637
456*c3d31fe1Smrg	* pt.c (lookup_template_class): Ensure that all specializations
457*c3d31fe1Smrg	are registered on the list corresponding to the most general
458*c3d31fe1Smrg	template.
459*c3d31fe1Smrg
460*c3d31fe1Smrg2001-11-20  Mark Mitchell  <mark@codesourcery.com>
461*c3d31fe1Smrg
462*c3d31fe1Smrg	* call.c (non_reference): Add documentation.
463*c3d31fe1Smrg	(convert_class_to_reference): Do not strip reference types
464*c3d31fe1Smrg	from conversion operators.
465*c3d31fe1Smrg	(maybe_handle_ref_bind): Simplify.
466*c3d31fe1Smrg	(compare_ics): Correct handling of references.
467*c3d31fe1Smrg
468*c3d31fe1Smrg2001-11-19  John Wilkinson <johnw@research.att.com>
469*c3d31fe1Smrg
470*c3d31fe1Smrg	* dump.c (dump_op): New function.
471*c3d31fe1Smrg	(cp_dump_tree): Dump CLASSTYPE_TEMPLATE_SPECIALIZATION.  Use
472*c3d31fe1Smrg	dump_op.  Dump DECL_MUTABLE, access and staticness for VAR_DECLs.
473*c3d31fe1Smrg	DECL_PURE_VIRTUAL_P, DECL_VIRTUAL_P,
474*c3d31fe1Smrg
475*c3d31fe1Smrg2001-11-19  Mark Mitchell  <mark@codesourcery.com>
476*c3d31fe1Smrg
477*c3d31fe1Smrg	PR4629
478*c3d31fe1Smrg	* semantics.c (finish_sizeof): Make sure that expression created
479*c3d31fe1Smrg	while processing a template do not have a type.
480*c3d31fe1Smrg	(finish_alignof): Likewise.
481*c3d31fe1Smrg	* typeck.c (c_sizeof): Likewise.
482*c3d31fe1Smrg	(expr_sizeof): Likewise.
483*c3d31fe1Smrg
484*c3d31fe1Smrg2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
485*c3d31fe1Smrg
486*c3d31fe1Smrg	* lex.c (cxx_finish): Call c_common_finish.
487*c3d31fe1Smrg	(finish_parse): Remove.
488*c3d31fe1Smrg
489*c3d31fe1Smrg2001-11-17  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
490*c3d31fe1Smrg
491*c3d31fe1Smrg	* decl.c (create_array_type_for_decl): Check if NAME is NULL_TREE
492*c3d31fe1Smrg	when displaying error message about missing array bounds.
493*c3d31fe1Smrg
494*c3d31fe1Smrg2001-11-17  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
495*c3d31fe1Smrg
496*c3d31fe1Smrg	* mangle.c (write_expression): Handle CAST_EXPR, STATIC_CAST_EXPR,
497*c3d31fe1Smrg	CONST_CAST_EXPR.
498*c3d31fe1Smrg	* operators.def: Add CAST_EXPR, STATIC_CAST_EXPR, CONST_CAST_EXPR.
499*c3d31fe1Smrg
500*c3d31fe1Smrg2001-11-16  Neil Booth  <neil@daikokuya.demon.co.uk>
501*c3d31fe1Smrg
502*c3d31fe1Smrg	* cp-tree.h (print_class_statistics): Restore.
503*c3d31fe1Smrg
504*c3d31fe1Smrg2001-11-15  Jason Merrill  <jason@redhat.com>
505*c3d31fe1Smrg
506*c3d31fe1Smrg	* method.c (use_thunk): Don't emit debugging information for thunks.
507*c3d31fe1Smrg
508*c3d31fe1Smrg	* parse.y: Add ... IDENTIFIER SCOPE and ... PTYPENAME SCOPE expansions.
509*c3d31fe1Smrg	* decl.c (make_typename_type): Handle getting a class template.
510*c3d31fe1Smrg	* search.c (lookup_field_r): A class template is good enough for
511*c3d31fe1Smrg	want_type.
512*c3d31fe1Smrg
513*c3d31fe1Smrg	* call.c (convert_like_real): Only use cp_convert for the bad part.
514*c3d31fe1Smrg	(standard_conversion): Also allow bad int->enum.
515*c3d31fe1Smrg	* typeck.c (ptr_reasonably_similar): Also allow functions to
516*c3d31fe1Smrg	interconvert.  Pointers to same-size integers are reasonably
517*c3d31fe1Smrg	similar.
518*c3d31fe1Smrg
519*c3d31fe1Smrg	* cvt.c (convert_to_void): If we build a new COND_EXPR, always
520*c3d31fe1Smrg	give it void type.
521*c3d31fe1Smrg
522*c3d31fe1Smrg2001-11-15  Nathan Sidwell  <nathan@codesourcery.com>
523*c3d31fe1Smrg
524*c3d31fe1Smrg	PR g++/3154
525*c3d31fe1Smrg	* init.c (sort_base_init): Remove unreachable code.
526*c3d31fe1Smrg	(expand_member_init): Adjust comment to reflect reality. Simplify
527*c3d31fe1Smrg	and remove unreachable code.
528*c3d31fe1Smrg
529*c3d31fe1Smrg2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
530*c3d31fe1Smrg
531*c3d31fe1Smrg	* cp-tree.h (init_reswords, cxx_init_decl_processing): New.
532*c3d31fe1Smrg	(cxx_init): Update prototype.
533*c3d31fe1Smrg	* decl.c (init_decl_processing): Rename.  Move null node init
534*c3d31fe1Smrg	to its creation time.
535*c3d31fe1Smrg	* lex.c (cxx_init_options): Update.
536*c3d31fe1Smrg	(cxx_init): Combine with old init_parse; also call
537*c3d31fe1Smrg	cxx_init_decl_processing.
538*c3d31fe1Smrg
539*c3d31fe1Smrg2001-11-14  Richard Sandiford  <rsandifo@redhat.com>
540*c3d31fe1Smrg
541*c3d31fe1Smrg	* decl.c (check_initializer): Try to complete the type of an
542*c3d31fe1Smrg	array element before checking whether it's complete.  Don't
543*c3d31fe1Smrg	complain about arrays with complete element types but an
544*c3d31fe1Smrg	unknown size.
545*c3d31fe1Smrg	(cp_finish_decl): Build the hierarchical constructor before
546*c3d31fe1Smrg	calling maybe_deduce_size_from_array_init.
547*c3d31fe1Smrg
548*c3d31fe1Smrg2001-11-14  Joseph S. Myers  <jsm28@cam.ac.uk>
549*c3d31fe1Smrg
550*c3d31fe1Smrg	* Make-lang.in: Change all uses of $(manext) to $(man1ext).
551*c3d31fe1Smrg
552*c3d31fe1Smrg2001-11-13  Nathan Sidwell  <nathan@codesourcery.com>
553*c3d31fe1Smrg
554*c3d31fe1Smrg	PR g++/4206
555*c3d31fe1Smrg	* parse.y (already_scoped_stmt): Remove.
556*c3d31fe1Smrg	(simple_stmt, WHILE & FOR): Use implicitly_scoped_stmt.
557*c3d31fe1Smrg
558*c3d31fe1Smrg2001-11-12  H.J. Lu <hjl@gnu.org>
559*c3d31fe1Smrg
560*c3d31fe1Smrg	* cvt.c (ocp_convert): Don't warn the address of a weak
561*c3d31fe1Smrg	function is always `true'.
562*c3d31fe1Smrg
563*c3d31fe1Smrg2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
564*c3d31fe1Smrg
565*c3d31fe1Smrg	* cp-lang.c (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE,
566*c3d31fe1Smrg	LANG_HOOKS_PRINT_STATISTICS, LANG_HOOKS_PRINT_XNODE,
567*c3d31fe1Smrg	LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): Override.
568*c3d31fe1Smrg	* cp-tree.h (print_class_statistics): Remove.
569*c3d31fe1Smrg	(cxx_print_statistics, cxx_print_xnode, cxx_print_decl, cxx_print_type,
570*c3d31fe1Smrg	cxx_print_identifier, cxx_set_yydebug): New.
571*c3d31fe1Smrg	* lex.c (set_yydebug): Rename c_set_yydebug.
572*c3d31fe1Smrg	* ptree.c (print_lang_decl, print_lang_type, print_lang_identifier,
573*c3d31fe1Smrg	lang_print_xnode): Rename.
574*c3d31fe1Smrg	* tree.c (print_lang_statistics): Rename.
575*c3d31fe1Smrg
576*c3d31fe1Smrg2001-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
577*c3d31fe1Smrg
578*c3d31fe1Smrg	* class.c (dump_array): Fix format specifier warning.
579*c3d31fe1Smrg
580*c3d31fe1Smrg2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
581*c3d31fe1Smrg
582*c3d31fe1Smrg	* cp-lang.c (LANG_HOOKS_NAME): Override.
583*c3d31fe1Smrg	(struct lang_hooks): Constify.
584*c3d31fe1Smrg	* lex.c (cxx_init_options): Update.
585*c3d31fe1Smrg	(lang_identify): Remove.
586*c3d31fe1Smrg	* parse.y (language_string): Remove.
587*c3d31fe1Smrg
588*c3d31fe1Smrg2001-11-08  Andreas Franck  <afranck@gmx.de>
589*c3d31fe1Smrg
590*c3d31fe1Smrg	* Make-lang.in (CXX_INSTALL_NAME, GXX_CROSS_NAME,
591*c3d31fe1Smrg	DEMANGLER_CROSS_NAME): Handle program_transform_name the way
592*c3d31fe1Smrg	suggested by autoconf.
593*c3d31fe1Smrg	(GXX_TARGET_INSTALL_NAME, CXX_TARGET_INSTALL_NAME): Define.
594*c3d31fe1Smrg	(c++.install-common): Use the transformed target alias names.
595*c3d31fe1Smrg
596*c3d31fe1Smrg2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
597*c3d31fe1Smrg
598*c3d31fe1Smrg	* Make-lang.in: Update.
599*c3d31fe1Smrg	* cp-lang.c: Include langhooks-def.h.
600*c3d31fe1Smrg
601*c3d31fe1Smrg2001-11-04  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
602*c3d31fe1Smrg
603*c3d31fe1Smrg	* pt.c (tsubst_copy): Call tsubst for TYPEOF_EXPR.
604*c3d31fe1Smrg
605*c3d31fe1Smrg2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
606*c3d31fe1Smrg
607*c3d31fe1Smrg	* lex.c (copy_lang_type): Add static prototype.
608*c3d31fe1Smrg
609*c3d31fe1Smrg2001-11-02  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
610*c3d31fe1Smrg
611*c3d31fe1Smrg	* pt.c (unify): Handle SCOPE_REF.
612*c3d31fe1Smrg
613*c3d31fe1Smrg2001-11-01  Jakub Jelinek  <jakub@redhat.com>
614*c3d31fe1Smrg
615*c3d31fe1Smrg	* tree.c (cp_copy_res_decl_for_inlining): Adjust
616*c3d31fe1Smrg	DECL_ABSTRACT_ORIGIN for the return variable.
617*c3d31fe1Smrg
618*c3d31fe1Smrg2001-10-31  Zack Weinberg  <zack@codesourcery.com>
619*c3d31fe1Smrg
620*c3d31fe1Smrg	*  Make-lang.in: Replace $(INTL_TARGETS) with po-generated.
621*c3d31fe1Smrg
622*c3d31fe1Smrg2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
623*c3d31fe1Smrg
624*c3d31fe1Smrg	* ChangeLog.1, ChangeLog.2, ChangeLog, class.c, decl2.c, search.c,
625*c3d31fe1Smrg	semantics.c, spew.c: Fix spelling errors.
626*c3d31fe1Smrg
627*c3d31fe1Smrg2001-10-27  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
628*c3d31fe1Smrg
629*c3d31fe1Smrg	* decl2.c (validate_nonmember_using_decl): Handle NAMESPACE_DECL.
630*c3d31fe1Smrg
631*c3d31fe1Smrg2001-10-25  Zack Weinberg  <zack@codesourcery.com>
632*c3d31fe1Smrg
633*c3d31fe1Smrg	* cp-lang.c: Redefine LANG_HOOKS_CLEAR_BINDING_STACK to
634*c3d31fe1Smrg	pop_everything.
635*c3d31fe1Smrg
636*c3d31fe1Smrg2001-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
637*c3d31fe1Smrg
638*c3d31fe1Smrg	* cp-lang.c (cxx_get_alias_set): New function.
639*c3d31fe1Smrg	Point LANG_HOOKS_GET_ALIAS_SET to it.
640*c3d31fe1Smrg
641*c3d31fe1Smrg2001-10-23  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
642*c3d31fe1Smrg
643*c3d31fe1Smrg	* cp-tree.def (UNBOUND_CLASS_TEMPLATE): New tree node.
644*c3d31fe1Smrg	* cp-tree.h (make_unbound_class_template): Prototype new function.
645*c3d31fe1Smrg	* decl.c (make_unbound_class_template): New function.
646*c3d31fe1Smrg	* decl2.c (arg_assoc_template_arg): Handle UNBOUND_CLASS_TEMPLATE.
647*c3d31fe1Smrg	* error.c (dump_type): Likewise.
648*c3d31fe1Smrg	* mangle.c (write_type): Likewise.
649*c3d31fe1Smrg	* parse.y (template_parm): Likewise.
650*c3d31fe1Smrg	(template_argument): Use make_unbound_class_template.
651*c3d31fe1Smrg	* pt.c (convert_template_argument): Handle UNBOUND_CLASS_TEMPLATE.
652*c3d31fe1Smrg	(tsubst): Likewise.
653*c3d31fe1Smrg	(tsubst_copy): Likewise.
654*c3d31fe1Smrg	(unify): Likewise.
655*c3d31fe1Smrg	* tree.c (walk_tree): Likewise.
656*c3d31fe1Smrg	* typeck.c (comptypes): Likewise.
657*c3d31fe1Smrg
658*c3d31fe1Smrg2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
659*c3d31fe1Smrg
660*c3d31fe1Smrg	* xref.c (GNU_xref_member): Use safe-ctype macros and/or fold
661*c3d31fe1Smrg	extra calls into fewer ones.
662*c3d31fe1Smrg
663*c3d31fe1Smrg2001-10-18  Alexandre Oliva  <aoliva@redhat.com>
664*c3d31fe1Smrg
665*c3d31fe1Smrg	* decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
666*c3d31fe1Smrg	Warn when merging inline with attribute noinline.
667*c3d31fe1Smrg	(start_decl, start_function): Warn if inline and attribute
668*c3d31fe1Smrg	noinline appear in the same declaration.
669*c3d31fe1Smrg
670*c3d31fe1Smrg2001-10-16  H.J. Lu <hjl@gnu.org>
671*c3d31fe1Smrg
672*c3d31fe1Smrg	* cp-tree.h (BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK): Defined
673*c3d31fe1Smrg	for tree checking disabled.
674*c3d31fe1Smrg
675*c3d31fe1Smrg2001-10-16  Hans-Peter Nilsson  <hp@axis.com>
676*c3d31fe1Smrg
677*c3d31fe1Smrg	* cp-tree.h (VFIELD_NAME_FORMAT) [NO_DOLLAR_IN_LABEL &&
678*c3d31fe1Smrg	NO_DOT_IN_LABEL]: Adjust to match VFIELD_NAME.
679*c3d31fe1Smrg
680*c3d31fe1Smrg2001-10-15  Richard Sandiford  <rsandifo@redhat.com>
681*c3d31fe1Smrg
682*c3d31fe1Smrg	* pt.c (UNIFY_ALLOW_MAX_CORRECTION): Define.
683*c3d31fe1Smrg	(unify): Only handle MINUS_EXPR specially if the above flag is set
684*c3d31fe1Smrg	and the subtracted constant is 1.  Clear the flag on recursive calls.
685*c3d31fe1Smrg	Set it when unifying the maximum value in an INTEGER_TYPE's range.
686*c3d31fe1Smrg
687*c3d31fe1Smrg2001-10-15  Richard Sandiford  <rsandifo@redhat.com>
688*c3d31fe1Smrg
689*c3d31fe1Smrg	* decl.c (bad_specifiers): Don't allow exception specifications
690*c3d31fe1Smrg	on any typedefs.
691*c3d31fe1Smrg
692*c3d31fe1Smrg2001-10-14  Neil Booth  <neil@daikokuya.demon.co.uk>
693*c3d31fe1Smrg
694*c3d31fe1Smrg	* cp/lex.c (init_cp_pragma): Similarly.
695*c3d31fe1Smrg
696*c3d31fe1Smrg2001-10-13  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
697*c3d31fe1Smrg
698*c3d31fe1Smrg	* pt.c (lookup_template_class): Build complete template arguments
699*c3d31fe1Smrg	for BOUND_TEMPLATE_TEMPLATE_PARM.
700*c3d31fe1Smrg
701*c3d31fe1Smrg2001-10-12  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
702*c3d31fe1Smrg
703*c3d31fe1Smrg	* cp-tree.h (TYPE_BINFO): Update comment.
704*c3d31fe1Smrg	(BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK): New macro.
705*c3d31fe1Smrg	(TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO): Use template_info.
706*c3d31fe1Smrg	(TYPENAME_TYPE_FULLNAME): Use TYPE_FIELDS.
707*c3d31fe1Smrg	(copy_type): Prototype new function.
708*c3d31fe1Smrg	* lex.c (copy_lang_decl): Gather tree node statistics.
709*c3d31fe1Smrg	(copy_lang_type): New function.
710*c3d31fe1Smrg	(copy_type): Likewise.
711*c3d31fe1Smrg	(cp_make_lang_type): Create lang_type for
712*c3d31fe1Smrg	BOUND_TEMPLATE_TEMPLATE_PARM.  Set TYPE_BINFO for TYPENAME_TYPE
713*c3d31fe1Smrg	and BOUND_TEMPLATE_TEMPLATE_PARM.
714*c3d31fe1Smrg	* pt.c (tsubst): Use copy_type instead of copy_node.
715*c3d31fe1Smrg	* search.c (lookup_field_1): Ignore TYPENAME_TYPE.
716*c3d31fe1Smrg
717*c3d31fe1Smrg2001-10-12  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
718*c3d31fe1Smrg
719*c3d31fe1Smrg	* pt.c (determine_specialization): Ignore functions without
720*c3d31fe1Smrg	DECL_TEMPLATE_INFO.
721*c3d31fe1Smrg
722*c3d31fe1Smrg2001-10-12  Nathan Sidwell  <nathan@codesourcery.com>
723*c3d31fe1Smrg
724*c3d31fe1Smrg	PR g++/4476
725*c3d31fe1Smrg	* typeck2.c (abstract_virtuals_error): Ignore incomplete classes.
726*c3d31fe1Smrg
727*c3d31fe1Smrg2001-10-11  Jason Merrill  <jason_merrill@redhat.com>
728*c3d31fe1Smrg
729*c3d31fe1Smrg	* typeck2.c (store_init_value): Don't re-digest a bracketed
730*c3d31fe1Smrg	initializer.
731*c3d31fe1Smrg
732*c3d31fe1Smrg	* class.c (finish_struct_anon): Use TYPE_ANONYMOUS_P instead of
733*c3d31fe1Smrg	ANON_AGGR_TYPE_P.
734*c3d31fe1Smrg
735*c3d31fe1Smrg2001-10-11  Richard Henderson  <rth@redhat.com>
736*c3d31fe1Smrg
737*c3d31fe1Smrg	* class.c (build_vtable_entry_ref): Create a VTABLE_REF instead
738*c3d31fe1Smrg	of an asm statement.
739*c3d31fe1Smrg	(build_vtbl_ref_1): Split out from build_vtbl_ref.
740*c3d31fe1Smrg	(build_vfn_ref): Use it to handle vtable descriptors before
741*c3d31fe1Smrg	calling build_vtable_entry_ref.
742*c3d31fe1Smrg	* decl2.c (output_vtable_inherit): Use assemble_vtable_inherit.
743*c3d31fe1Smrg
744*c3d31fe1Smrg2001-10-10  Richard Henderson  <rth@redhat.com>
745*c3d31fe1Smrg
746*c3d31fe1Smrg	* parse.y (asm_operand): Allow named operands.
747*c3d31fe1Smrg	* semantics.c (finish_asm_stmt): Tweek for changed location
748*c3d31fe1Smrg	of the operand constraint.
749*c3d31fe1Smrg
750*c3d31fe1Smrg2001-10-09  Jason Merrill  <jason_merrill@redhat.com>
751*c3d31fe1Smrg
752*c3d31fe1Smrg	* call.c (standard_conversion): Add bad conversion between
753*c3d31fe1Smrg	integers and pointers.
754*c3d31fe1Smrg	(convert_like_real): Don't use convert_for_initialization for bad
755*c3d31fe1Smrg	conversions; complain here and use cp_convert.
756*c3d31fe1Smrg	(build_over_call): Don't handle bad conversions specially.
757*c3d31fe1Smrg	(perform_implicit_conversion): Allow bad conversions.
758*c3d31fe1Smrg	(can_convert_arg_bad): New fn.
759*c3d31fe1Smrg	* cp-tree.h: Declare it.
760*c3d31fe1Smrg	* typeck.c (convert_for_assignment): Use it.
761*c3d31fe1Smrg	(ptr_reasonably_similar): Any target type is similar to void.
762*c3d31fe1Smrg
763*c3d31fe1Smrg2001-10-08  Alexandre Oliva  <aoliva@redhat.com>
764*c3d31fe1Smrg
765*c3d31fe1Smrg	* Make-lang.in (CXX_OBJS): Added cp-lang.o.
766*c3d31fe1Smrg	(cp/cp-lang.o): New rule.
767*c3d31fe1Smrg	* cp-tree.h: Declare hooks.
768*c3d31fe1Smrg	* tree.c: Make hooks non-static.
769*c3d31fe1Smrg	(init_tree): Don't initialize hooks here.
770*c3d31fe1Smrg	* lex.c: Likewise.  Move definition of lang_hooks to...
771*c3d31fe1Smrg	* cp-lang.c: ... new file.
772*c3d31fe1Smrg
773*c3d31fe1Smrg2001-10-08  Richard Henderson  <rth@redhat.com>
774*c3d31fe1Smrg
775*c3d31fe1Smrg	* cp-tree.h (struct lang_decl_flags): Remove declared_inline.
776*c3d31fe1Smrg	(DECL_DECLARED_INLINE_P): Use the bit in struct c_lang_decl.
777*c3d31fe1Smrg
778*c3d31fe1Smrg2001-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
779*c3d31fe1Smrg
780*c3d31fe1Smrg	* class.c (build_vtable_entry_ref): Const-ify.
781*c3d31fe1Smrg	* decl.c (predefined_identifier,
782*c3d31fe1Smrg	initialize_predefined_identifiers): Likewise.
783*c3d31fe1Smrg	* init.c (build_new_1): Likewise.
784*c3d31fe1Smrg	* lex.c (cplus_tree_code_type, cplus_tree_code_length, resword):
785*c3d31fe1Smrg	Likewise.
786*c3d31fe1Smrg
787*c3d31fe1Smrg2001-10-05  Alexandre Oliva  <aoliva@redhat.com>
788*c3d31fe1Smrg
789*c3d31fe1Smrg	* optimize.c (struct inline_data): Moved to ../tree-inline.c.
790*c3d31fe1Smrg	(INSNS_PER_STMT): Likewise.
791*c3d31fe1Smrg	(remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
792*c3d31fe1Smrg	(copy_body, initialize_inlined_parameters): Likewise.
793*c3d31fe1Smrg	(declare_return_variable, inlinable_function_p): Likewise.
794*c3d31fe1Smrg	(expand_call_inline, expand_calls_inline): Likewise.
795*c3d31fe1Smrg	(optimize_inline_calls, clone_body): Likewise.
796*c3d31fe1Smrg	* tree.c (walk_tree): Moved to ../tree-inline.c.
797*c3d31fe1Smrg	(walk_tree_without_duplicates): Likewise.
798*c3d31fe1Smrg	(copy_tree_r, remap_save_expr): Likewise.
799*c3d31fe1Smrg
800*c3d31fe1Smrg2001-10-04  Alexandre Oliva  <aoliva@redhat.com>
801*c3d31fe1Smrg
802*c3d31fe1Smrg	* Make-lang.in (cp/decl.o, cp/tree.o): Depend on tree-inline.h.
803*c3d31fe1Smrg	(cp/pt.o, cp/semantics.o, cp/optimize.o): Likewise.
804*c3d31fe1Smrg	* cp-tree.h (lang_decl): Moved inlined_fns to tree_decl.
805*c3d31fe1Smrg	(TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved to ../tree.h.
806*c3d31fe1Smrg	(flag_inline_trees): Moved declaration to ../tree-inline.h.
807*c3d31fe1Smrg	(walk_tree): Moved declaration to ../tree-inline.h.
808*c3d31fe1Smrg	(walk_tree_without_duplicates, copy_tree_r): Likewise.
809*c3d31fe1Smrg	(remap_save_expr): Likewise.
810*c3d31fe1Smrg	* decl.c: Include tree-inline.h.
811*c3d31fe1Smrg	(lang_mark_tree): Don't mark inlined_fns.
812*c3d31fe1Smrg	* decl2.c (flag_inline_trees): Moved defn to ../tree-inline.c.
813*c3d31fe1Smrg	* optimize.c: Include tree-inline.h.
814*c3d31fe1Smrg	(optimize_inline_calls): Move declaration to ../tree.h, as
815*c3d31fe1Smrg	non-static.
816*c3d31fe1Smrg	(remap_decl): Use language-independent constructs and hooks.
817*c3d31fe1Smrg	(remap_block, copy_body_r, declare_return_variable): Likewise.
818*c3d31fe1Smrg	(inlinable_function_p): Likewise.  Don't test for
819*c3d31fe1Smrg	DECL_LANG_SPECIFIC before DECL_INLINED_FNS as inlined_fns is
820*c3d31fe1Smrg	no longer language-specific.
821*c3d31fe1Smrg	(optimize_inline_calls): Likewise.  Make it non-static.  Moved
822*c3d31fe1Smrg	call of dump_function to...
823*c3d31fe1Smrg	(optimize_function): Here...
824*c3d31fe1Smrg	(clone_body): New function, extracted from...
825*c3d31fe1Smrg	(maybe_clone_body): ... here.  Build decl_map locally and pass
826*c3d31fe1Smrg	it on to clone_body.
827*c3d31fe1Smrg	* pt.c, semantics.c: Include tree-inline.h.
828*c3d31fe1Smrg	* tree.c: Likewise.
829*c3d31fe1Smrg	(cp_walk_subtrees): New language-specific hook for tree inlining.
830*c3d31fe1Smrg	(cp_cannot_inline_tree_fn, cp_add_pending_fn_decls,
831*c3d31fe1Smrg	cp_is_overload_p, cp_auto_var_in_fn_p,
832*c3d31fe1Smrg	cp_copy_res_decl_for_inlining): Likewise.
833*c3d31fe1Smrg	(walk_tree): Move language-specific constructs into...
834*c3d31fe1Smrg	(cp_walk_subtrees): this new function.
835*c3d31fe1Smrg	(copy_tree_r): Use language-independent constructs and hooks.
836*c3d31fe1Smrg	(init_tree): Initialize tree inlining hooks.
837*c3d31fe1Smrg	(remap_save_expr): Adjust prototype so that the declaration
838*c3d31fe1Smrg	does not require the definition of splay_tree.
839*c3d31fe1Smrg
840*c3d31fe1Smrg2001-10-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
841*c3d31fe1Smrg
842*c3d31fe1Smrg	* rtti.c (get_tinfo_decl): Call typeinfo_in_lib_p with the type used
843*c3d31fe1Smrg	to build the declaration instead of the declaration itself.
844*c3d31fe1Smrg
845*c3d31fe1Smrg2001-10-02  Jason Merrill  <jason_merrill@redhat.com>
846*c3d31fe1Smrg
847*c3d31fe1Smrg	* decl2.c (cxx_decode_option): Add 'else'.
848*c3d31fe1Smrg
849*c3d31fe1Smrg	* spew.c (end_input): No longer static.
850*c3d31fe1Smrg	* cp-tree.h: Declare it.
851*c3d31fe1Smrg	* parse.y (datadef): Add "error END_OF_SAVED_INPUT" expansion.
852*c3d31fe1Smrg
853*c3d31fe1Smrg2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
854*c3d31fe1Smrg
855*c3d31fe1Smrg	* call.c (build_over_call), typeck.c (build_function_call_real):
856*c3d31fe1Smrg	Pass type attributes to check_function_format rather than name or
857*c3d31fe1Smrg	assembler name.  Don't require there to be a name or assembler
858*c3d31fe1Smrg	name to check formats.
859*c3d31fe1Smrg
860*c3d31fe1Smrg2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
861*c3d31fe1Smrg
862*c3d31fe1Smrg	* decl.c (init_decl_processing): Don't call
863*c3d31fe1Smrg	init_function_format_info.  Initialize lang_attribute_table
864*c3d31fe1Smrg	earlier.
865*c3d31fe1Smrg	(builtin_function): Call decl_attributes.
866*c3d31fe1Smrg	(insert_default_attributes): New.
867*c3d31fe1Smrg
868*c3d31fe1Smrg2001-10-01  Jason Merrill  <jason_merrill@redhat.com>
869*c3d31fe1Smrg
870*c3d31fe1Smrg	* decl.c (grokdeclarator): Copy array typedef handling from C
871*c3d31fe1Smrg	frontend.
872*c3d31fe1Smrg
873*c3d31fe1Smrg	* decl.c (grokdeclarator): Copy too-large array handling from C
874*c3d31fe1Smrg	frontend.
875*c3d31fe1Smrg
876*c3d31fe1Smrg2001-09-29  Alexandre Oliva  <aoliva@redhat.com>
877*c3d31fe1Smrg
878*c3d31fe1Smrg	* config-lang.in (target_libs): Added target-gperf, so that we
879*c3d31fe1Smrg	don't try to build it if C++ is disabled.
880*c3d31fe1Smrg
881*c3d31fe1Smrg2001-09-23  Zack Weinberg  <zack@codesourcery.com>
882*c3d31fe1Smrg
883*c3d31fe1Smrg	* Make-lang.in (CXX_OBJS): Take out cp/errfn.o.
884*c3d31fe1Smrg	(cp/errfn.o): Delete rule.
885*c3d31fe1Smrg	(cp/error.o): Depend on flags.h.
886*c3d31fe1Smrg	* errfn.c: Delete file.
887*c3d31fe1Smrg	* cp-tree.h: Declare warn_deprecated.  Remove definitions of
888*c3d31fe1Smrg	TFF_NAMESPACE_SCOPE, TFF_CLASS_SCOPE, TFF_CHASE_NAMESPACE_ALIAS,
889*c3d31fe1Smrg	and TFF_TEMPLATE_DEFAULT_ARGUMENTS. #define cp_error, cp_warning,
890*c3d31fe1Smrg	cp_pedwarn, and cp_compiler_error to error, warning, pedwarn, and
891*c3d31fe1Smrg	internal_error respectively.  Make cp_deprecated into a macro.
892*c3d31fe1Smrg	Don't define cp_printer typedef or declare cp_printers.
893*c3d31fe1Smrg	* error.c: Include flags.h.
894*c3d31fe1Smrg	Delete: struct tree_formatting_info, print_function_argument_list,
895*c3d31fe1Smrg	print_declaration, print_expression, print_function_declaration,
896*c3d31fe1Smrg	print_function_parameter, print_type_id, print_cv_qualifier_seq,
897*c3d31fe1Smrg	print_type_specifier_seq, print_simple_type_specifier,
898*c3d31fe1Smrg	print_elaborated_type_specifier, print_rest_of_abstract_declarator,
899*c3d31fe1Smrg	print_parameter_declaration_clause, print_exception_specification,
900*c3d31fe1Smrg	print_nested_name_specifier, and definition of cp_printers.
901*c3d31fe1Smrg	(locate_error): New function.
902*c3d31fe1Smrg	(cp_error_at, cp_warning_at, cp_pedwarn_at): Moved here and
903*c3d31fe1Smrg	rewritten in terms of locate_error and diagnostic.c.
904*c3d31fe1Smrg	(cp_tree_printer): Rename cp_printer; wire up to *_to_string
905*c3d31fe1Smrg	instead of deleted print_* routines.  Handle %C, %L, %O, %Q also.
906*c3d31fe1Smrg	(init_error): Adjust to match.
907*c3d31fe1Smrg
908*c3d31fe1Smrg2001-09-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
909*c3d31fe1Smrg
910*c3d31fe1Smrg	* Make-lang.in (CXX_C_OBJS): Add attribs.o.
911*c3d31fe1Smrg
912*c3d31fe1Smrg2001-09-21  Richard Henderson  <rth@redhat.com>
913*c3d31fe1Smrg
914*c3d31fe1Smrg	* class.c (set_vindex): Mind TARGET_VTABLE_USES_DESCRIPTORS.
915*c3d31fe1Smrg	(build_vtbl_initializer): Likewise.
916*c3d31fe1Smrg	(build_vfn_ref): New.
917*c3d31fe1Smrg	* cp-tree.h: Declare it.
918*c3d31fe1Smrg	* call.c (build_over_call): Use it.
919*c3d31fe1Smrg	* decl2.c (mark_vtable_entries): Mark FDESC_EXPR.
920*c3d31fe1Smrg	* typeck.c (get_member_function_from_ptrfunc): Mind descriptors.
921*c3d31fe1Smrg
922*c3d31fe1Smrg2001-09-21  J"orn Rennecke <amylaar@redhat.com>
923*c3d31fe1Smrg
924*c3d31fe1Smrg	* decl.c (grokdeclarator): Use C syntax for attr_flags declaration.
925*c3d31fe1Smrg
926*c3d31fe1Smrg2001-09-21  Joseph S. Myers  <jsm28@cam.ac.uk>
927*c3d31fe1Smrg
928*c3d31fe1Smrg	Table-driven attributes.
929*c3d31fe1Smrg	* decl.c: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
930*c3d31fe1Smrg	* decl2.c (cplus_decl_attributes): Only take one attributes
931*c3d31fe1Smrg	parameter.
932*c3d31fe1Smrg	* cp-tree.c (cplus_decl_attributes): Update prototype.
933*c3d31fe1Smrg	* class.c (finish_struct), decl.c (start_decl, start_function),
934*c3d31fe1Smrg	decl2.c (grokfield), friend.c (do_friend), parse.y
935*c3d31fe1Smrg	(parse_bitfield): Update calls to cplus_decl_attributes.
936*c3d31fe1Smrg	* decl.c (grokdeclarator): Take a pointer to a single ordinary
937*c3d31fe1Smrg	attribute list.
938*c3d31fe1Smrg	* decl.h (grokdeclarator): Update prototype.
939*c3d31fe1Smrg	* decl2.c (grokfield): Take a single ordinary attribute list.
940*c3d31fe1Smrg	* friend.c (do_friend): Likewise.
941*c3d31fe1Smrg	* decl.c (shadow_tag, groktypename, start_decl,
942*c3d31fe1Smrg	start_handler_parms, grokdeclarator, grokparms, start_function,
943*c3d31fe1Smrg	start_method), decl2.c (grokfield, grokbitfield, grokoptypename),
944*c3d31fe1Smrg	parse.y (parse_field, parse_bitfield, component_decl_1), pt.c
945*c3d31fe1Smrg	(process_template_parm, do_decl_instantiation): Pass single
946*c3d31fe1Smrg	ordinary attribute lists around.
947*c3d31fe1Smrg	* decl.c (grokdeclarator): Correct handling of nested attributes.
948*c3d31fe1Smrg	Revert the patch
949*c3d31fe1Smrg	1998-10-18  Jason Merrill  <jason@yorick.cygnus.com>
950*c3d31fe1Smrg		* decl.c (grokdeclarator): Embedded attrs bind to the right,
951*c3d31fe1Smrg		not the left.
952*c3d31fe1Smrg	.
953*c3d31fe1Smrg	* cp-tree.h (cp_valid_lang_attribute): Remove declaration
954*c3d31fe1Smrg	(cp_attribute_table): Declare.
955*c3d31fe1Smrg	* decl.c (valid_lang_attribute): Don't define.
956*c3d31fe1Smrg	(lang_attribute_table): Define.
957*c3d31fe1Smrg	(init_decl_processing): Initialize lang_attribute_table instead of
958*c3d31fe1Smrg	valid_lang_attribute.
959*c3d31fe1Smrg	* tree.c (cp_valid_lang_attribute): Remove.
960*c3d31fe1Smrg	(handle_java_interface_attribute, handle_com_interface_attribute,
961*c3d31fe1Smrg	handle_init_priority_attribute): New functions.
962*c3d31fe1Smrg	(cp_attribute_table): New array.
963*c3d31fe1Smrg	* decl2.c (import_export_class): Don't use
964*c3d31fe1Smrg	targetm.valid_type_attribute.
965*c3d31fe1Smrg
966*c3d31fe1Smrg2001-09-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
967*c3d31fe1Smrg
968*c3d31fe1Smrg	* Make-lang.in (cp/error.o): Depend on real.h
969*c3d31fe1Smrg	* error.c: #include "real.h"
970*c3d31fe1Smrg
971*c3d31fe1Smrg2001-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
972*c3d31fe1Smrg
973*c3d31fe1Smrg	* mangle.c (mangle_conv_op_name_for_type): Use concat in lieu of
974*c3d31fe1Smrg	xmalloc/strcpy/strcat.
975*c3d31fe1Smrg
976*c3d31fe1Smrg2001-09-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
977*c3d31fe1Smrg
978*c3d31fe1Smrg	* decl.c (warn_extern_redeclared_static, cp_make_fname_decl):
979*c3d31fe1Smrg	Const-ification.
980*c3d31fe1Smrg	* pt.c (tsubst_decl): Likewise.
981*c3d31fe1Smrg
982*c3d31fe1Smrg2001-09-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
983*c3d31fe1Smrg
984*c3d31fe1Smrg	* decl2.c (lang_f_options): Const-ification.
985*c3d31fe1Smrg	* lex.c (cplus_tree_code_name): Likewise.
986*c3d31fe1Smrg	* spew.c (yyerror): Likewise.
987*c3d31fe1Smrg
988*c3d31fe1Smrg2001-09-06  Nathan Sidwell  <nathan@codesourcery.com>
989*c3d31fe1Smrg
990*c3d31fe1Smrg	PR c++/3986
991*c3d31fe1Smrg	* class.c (force_canonical_binfo_r): Check & move an indirect
992*c3d31fe1Smrg	primary base first.
993*c3d31fe1Smrg	(force_canonical_binfo): Check that it's not already
994*c3d31fe1Smrg	canonical.
995*c3d31fe1Smrg	(mark_primary_virtual_base): Remove BINFO parameter.
996*c3d31fe1Smrg	(mark_primary_bases): Adjust, set BINFO_LOST_PRIMARY_P here.
997*c3d31fe1Smrg
998*c3d31fe1Smrg2001-09-06  Nathan Sidwell  <nathan@codesourcery.com>
999*c3d31fe1Smrg
1000*c3d31fe1Smrg	Remove TYPE_NONCOPIED_PARTS.
1001*c3d31fe1Smrg	* cp-tree.h (CLASSTYPE_INLINE_FRIENDS): Map onto
1002*c3d31fe1Smrg	CLASSTYPE_PURE_VIRTUALS.
1003*c3d31fe1Smrg	(TYPE_RAISES_EXCEPTIONS): Map onto TYPE_BINFO.
1004*c3d31fe1Smrg	* class.c (duplicate_tag_error): Remove TYPE_NONCOPIED_PARTS.
1005*c3d31fe1Smrg	(layout_class_type): Don't call fixup_inline_methods here ...
1006*c3d31fe1Smrg	(finish_struct_1): ... call it here.
1007*c3d31fe1Smrg
1008*c3d31fe1Smrg2001-09-04  Mark Mitchell  <mark@codesourcery.com>
1009*c3d31fe1Smrg
1010*c3d31fe1Smrg	* decl.c (duplicate_decls): Remove code deadling with
1011*c3d31fe1Smrg	DECL_SAVED_INSNS.
1012*c3d31fe1Smrg	* decl2.c (finish_file): Likewise.
1013*c3d31fe1Smrg	* pt.c (instantiate_decl): Likewise.
1014*c3d31fe1Smrg	* semantics.c (expand_body): Don't defer local functions if
1015*c3d31fe1Smrg	they wouldn't be deferred for some other reason.  Don't
1016*c3d31fe1Smrg	generate RTL for functions that will not be emitted.
1017*c3d31fe1Smrg	(genrtl_start_function): Remove code deadling with
1018*c3d31fe1Smrg	DECL_SAVED_INSNS.
1019*c3d31fe1Smrg	(genrtl_finish_function): Likewise.
1020*c3d31fe1Smrg
1021*c3d31fe1Smrg2001-09-04  Nathan Sidwell  <nathan@codesourcery.com>
1022*c3d31fe1Smrg
1023*c3d31fe1Smrg	PR c++/4203
1024*c3d31fe1Smrg	* call.c (build_over_call): Do not optimize any empty base
1025*c3d31fe1Smrg	construction.
1026*c3d31fe1Smrg
1027*c3d31fe1Smrg2001-08-31  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
1028*c3d31fe1Smrg
1029*c3d31fe1Smrg	* error.c (dump_template_decl): Output template parameters
1030*c3d31fe1Smrg	together with their specifiers.
1031*c3d31fe1Smrg	Output `class' prefix for template template parameter.
1032*c3d31fe1Smrg	(dump_decl): Fix formatting.
1033*c3d31fe1Smrg
1034*c3d31fe1Smrg2001-08-30  Kurt Garloff  <garloff@suse.de>
1035*c3d31fe1Smrg
1036*c3d31fe1Smrg	* optimize.c (inlinable_function_p): Allow only smaller single
1037*c3d31fe1Smrg	functions. Halve inline limit after reaching recursive limit.
1038*c3d31fe1Smrg
1039*c3d31fe1Smrg2001-08-30  Joern Rennecke <amylaar@redhat.com>
1040*c3d31fe1Smrg	    Jason Merrill  <jason_merrill@redhat.com>
1041*c3d31fe1Smrg
1042*c3d31fe1Smrg	* class.c (build_vtable_entry_ref): Subtract in char*, not
1043*c3d31fe1Smrg	ptrdiff_t.
1044*c3d31fe1Smrg
1045*c3d31fe1Smrg2001-08-23  Jason Merrill  <jason_merrill@redhat.com>
1046*c3d31fe1Smrg
1047*c3d31fe1Smrg	* tree.c (cp_build_qualified_type_real): Use get_qualified_type.
1048*c3d31fe1Smrg	(build_cplus_array_type): Use cp_build_qualified_type, not
1049*c3d31fe1Smrg	TYPE_MAIN_VARIANT, to get an unqualified version.
1050*c3d31fe1Smrg
1051*c3d31fe1Smrg	* decl2.c (grok_alignof): Lose.
1052*c3d31fe1Smrg	(build_expr_from_tree): Use expr_sizeof and c_alignof_expr.
1053*c3d31fe1Smrg	* typeck.c (c_alignof): Lose.
1054*c3d31fe1Smrg	* semantics.c (finish_sizeof, finish_alignof): New.
1055*c3d31fe1Smrg	* parse.y: Use them.
1056*c3d31fe1Smrg	* cp-tree.h: Declare them.
1057*c3d31fe1Smrg
1058*c3d31fe1Smrg2001-08-22  Jason Merrill  <jason_merrill@redhat.com>
1059*c3d31fe1Smrg
1060*c3d31fe1Smrg	* pt.c (tsubst_expr): Hand off to the TREE_CHAIN of a statement.
1061*c3d31fe1Smrg	Don't loop in COMPOUND_STMT, FOR_STMT or TRY_BLOCK.
1062*c3d31fe1Smrg	* tree.c (cp_statement_code_p): A TAG_DEFN is a statement.
1063*c3d31fe1Smrg
1064*c3d31fe1Smrg2001-08-19  Jakub Jelinek  <jakub@redhat.com>
1065*c3d31fe1Smrg
1066*c3d31fe1Smrg	* typeck2.c (add_exception_specifier): Only require complete type if
1067*c3d31fe1Smrg	not in processing template declaration.
1068*c3d31fe1Smrg
1069*c3d31fe1Smrg2001-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1070*c3d31fe1Smrg
1071*c3d31fe1Smrg	* decl.c: Cast argument to size_t, not HOST_WIDE_INT, in calls to
1072*c3d31fe1Smrg	GNU_xref_start_scope and GNU_xref_end_scope.
1073*c3d31fe1Smrg
1074*c3d31fe1Smrg	* tree.c (TYPE_HASH): Moved to ../tree.h.
1075*c3d31fe1Smrg
1076*c3d31fe1Smrg2001-08-16  Mark Mitchell  <mark@codesourcery.com>
1077*c3d31fe1Smrg
1078*c3d31fe1Smrg	* cvt.c (convert_to_void): Preserve TREE_SIDE_EFFECTS
1079*c3d31fe1Smrg	on COMPOUND_EXPRs.
1080*c3d31fe1Smrg
1081*c3d31fe1Smrg2001-08-14  Richard Henderson  <rth@redhat.com>
1082*c3d31fe1Smrg
1083*c3d31fe1Smrg	* class.c, cp-tree.h (build_vfn_ref): Remove.
1084*c3d31fe1Smrg	* call.c, rtti.c: Replace all refernces with build_vtbl_ref.
1085*c3d31fe1Smrg
1086*c3d31fe1Smrg2001-08-13  Mark Mitchell  <mark@codesourcery.com>
1087*c3d31fe1Smrg
1088*c3d31fe1Smrg	* call.c (build_over_call): Mark COMPOUND_EXPRs generated for
1089*c3d31fe1Smrg	empty class assignment as having side-effects to avoid
1090*c3d31fe1Smrg	spurious warnings.
1091*c3d31fe1Smrg
1092*c3d31fe1Smrg2001-08-13  Zack Weinberg  <zackw@panix.com>
1093*c3d31fe1Smrg
1094*c3d31fe1Smrg	* Make-lang.in (cp/except.o): Add libfuncs.h to dependencies.
1095*c3d31fe1Smrg	* except.c: Include libfuncs.h.
1096*c3d31fe1Smrg
1097*c3d31fe1Smrg2001-08-11  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
1098*c3d31fe1Smrg
1099*c3d31fe1Smrg	* decl.c (grokdeclarator): Clarify diagnostic message.
1100*c3d31fe1Smrg
1101*c3d31fe1Smrg2001-08-13  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
1102*c3d31fe1Smrg
1103*c3d31fe1Smrg	* decl2.c (do_nonmember_using_decl): Replace using directive
1104*c3d31fe1Smrg	with using declaration in the error message.
1105*c3d31fe1Smrg
1106*c3d31fe1Smrg2001-08-11  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
1107*c3d31fe1Smrg
1108*c3d31fe1Smrg	* pt.c (maybe_fold_nontype_arg): Use TREE_TYPE of ARG as the
1109*c3d31fe1Smrg	criterion to avoid rebuilding expression tree instead of
1110*c3d31fe1Smrg	processing_template_decl.
1111*c3d31fe1Smrg
1112*c3d31fe1Smrg2001-08-07  Jason Merrill  <jason_merrill@redhat.com>
1113*c3d31fe1Smrg
1114*c3d31fe1Smrg	Support named return value optimization for inlines, too.
1115*c3d31fe1Smrg	* decl.c (finish_function): Nullify returns here.
1116*c3d31fe1Smrg	* semantics.c (genrtl_start_function): Not here.
1117*c3d31fe1Smrg	(cp_expand_stmt): Don't mess with CLEANUP_STMTs.
1118*c3d31fe1Smrg	(nullify_returns_r): No longer static.  Just clear RETURN_EXPR.
1119*c3d31fe1Smrg	Also nullify the CLEANUP_STMT for the nrv.
1120*c3d31fe1Smrg	* cp-tree.h: Declare it.
1121*c3d31fe1Smrg	* optimize.c (declare_return_variable): Replace the nrv with the
1122*c3d31fe1Smrg	return variable.
1123*c3d31fe1Smrg	* typeck.c (check_return_expr): Be more flexible on alignment check.
1124*c3d31fe1Smrg	Ignore cv-quals when checking for a matching type.
1125*c3d31fe1Smrg
1126*c3d31fe1Smrg2001-08-09  Richard Henderson  <rth@redhat.com>
1127*c3d31fe1Smrg
1128*c3d31fe1Smrg	* decl2.c (finish_objects): Use target hooks instead of
1129*c3d31fe1Smrg	assemble_constructor and assemble_destructor.
1130*c3d31fe1Smrg
1131*c3d31fe1Smrg2001-08-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1132*c3d31fe1Smrg
1133*c3d31fe1Smrg	* g++spec.c (lang_specific_driver): Quote argument after `-Xlinker'.
1134*c3d31fe1Smrg
1135*c3d31fe1Smrg2001-08-07  Nathan Sidwell  <nathan@codesourcery.com>
1136*c3d31fe1Smrg
1137*c3d31fe1Smrg	PR c++/3820
1138*c3d31fe1Smrg	Stop using TYPE_NONCOPIED_PARTS.
1139*c3d31fe1Smrg	* call.c (build_over_call): Be careful when copy constructing
1140*c3d31fe1Smrg	or assigning to an empty class.
1141*c3d31fe1Smrg	* class.c (check_bases_and_members): It has a
1142*c3d31fe1Smrg	COMPLEX_ASSIGN_REF if it has a vptr.
1143*c3d31fe1Smrg	(layout_class_type): Don't add empty class padding to
1144*c3d31fe1Smrg	TYPE_NONCOPIED_PARTS.
1145*c3d31fe1Smrg	(finish_struct_1): Don't add the VFIELD either.
1146*c3d31fe1Smrg	* cp-tree.h (TYPE_HAS_TRIVIAL_INIT_REF): Mention _copy_
1147*c3d31fe1Smrg	initialization.
1148*c3d31fe1Smrg
1149*c3d31fe1Smrg2001-08-07  Jason Merrill  <jason_merrill@redhat.com>
1150*c3d31fe1Smrg
1151*c3d31fe1Smrg	* tree.c (walk_tree): Walk siblings even if !walk_subtrees.
1152*c3d31fe1Smrg
1153*c3d31fe1Smrg2001-08-06  Richard Henderson  <rth@redhat.com>
1154*c3d31fe1Smrg
1155*c3d31fe1Smrg	* decl2.c (finish_objects): Pass a symbol_ref and priority to
1156*c3d31fe1Smrg	assemble_{constructor,destructor}.  Remove priority handling.
1157*c3d31fe1Smrg
1158*c3d31fe1Smrg2001-08-05  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
1159*c3d31fe1Smrg
1160*c3d31fe1Smrg	Don't allow template-id in using-declaration.
1161*c3d31fe1Smrg	* decl2.c (validate_nonmember_using_decl): Handle template-ids.
1162*c3d31fe1Smrg	(do_class_using_decl): Likewise.
1163*c3d31fe1Smrg
1164*c3d31fe1Smrg2001-08-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
1165*c3d31fe1Smrg
1166*c3d31fe1Smrg	* cp/spew.c (read_token): No need to pop buffers.
1167*c3d31fe1Smrg
1168*c3d31fe1Smrg2001-08-02  Stan Shebs  <shebs@apple.com>
1169*c3d31fe1Smrg
1170*c3d31fe1Smrg	* cp-tree.h (FNADDR_FROM_VTABLE_ENTRY): Remove, no longer used.
1171*c3d31fe1Smrg	(fnaddr_from_vtable_entry): Remove decl.
1172*c3d31fe1Smrg	* method.c (use_thunk): Update comment.
1173*c3d31fe1Smrg
1174*c3d31fe1Smrg2001-08-01  Andrew Cagney  <ac131313@redhat.com>
1175*c3d31fe1Smrg
1176*c3d31fe1Smrg	* repo.c (get_base_filename): Change return value to const char
1177*c3d31fe1Smrg	pointer.
1178*c3d31fe1Smrg
1179*c3d31fe1Smrg2001-08-02  Nathan Sidwell  <nathan@codesourcery.com>
1180*c3d31fe1Smrg
1181*c3d31fe1Smrg	Kill -fhonor-std.
1182*c3d31fe1Smrg	* NEWS: Document.
1183*c3d31fe1Smrg	* cp-tree.h (flag_honor_std): Remove.
1184*c3d31fe1Smrg	(CPTI_FAKE_STD): Remove.
1185*c3d31fe1Smrg	(std_node): Remove comment about it being NULL.
1186*c3d31fe1Smrg	(fake_std_node): Remove.
1187*c3d31fe1Smrg	* decl.c (in_fake_std): Remove.
1188*c3d31fe1Smrg	(walk_namespaces_r): Remove fake_std_node check.
1189*c3d31fe1Smrg	(push_namespace): Remove in_fake_std code.
1190*c3d31fe1Smrg	(pop_namespace): Likewise.
1191*c3d31fe1Smrg	(lookup_name_real): Remove fake_std_node check.
1192*c3d31fe1Smrg	(init_decl_processing): Always create std_node. Always add
1193*c3d31fe1Smrg	std:: things there.
1194*c3d31fe1Smrg	(builtin_function): Always put non '_' fns in std.
1195*c3d31fe1Smrg	* decl2.c (flag_honor_std): Remove.
1196*c3d31fe1Smrg	(lang_f_options): Remove honor-std.
1197*c3d31fe1Smrg	(unsupported_options): Add honor-std.
1198*c3d31fe1Smrg	(set_decl_namespace): Remove fake_std_node check.
1199*c3d31fe1Smrg	(validate_nonmember_using_decl): Likewise.
1200*c3d31fe1Smrg	(do_using_directive): Likewise.
1201*c3d31fe1Smrg	(handle_class_head): Likewise.
1202*c3d31fe1Smrg	* dump.c (cp_dump_tree): Likewise.
1203*c3d31fe1Smrg	* except.c (init_exception_processing): Adjust.
1204*c3d31fe1Smrg	* init.c (build_member_call): Remove fake_std_node check.
1205*c3d31fe1Smrg	(build_offset_ref): Likewise.
1206*c3d31fe1Smrg	* lang-options.h: Remove -fhonor-std, -fno-honor-std.
1207*c3d31fe1Smrg	* rtti.c (init_rtti_processing): Adjust.
1208*c3d31fe1Smrg
1209*c3d31fe1Smrg2001-07-31  Alexandre Petit-Bianco  <apbianco@redhat.com>
1210*c3d31fe1Smrg
1211*c3d31fe1Smrg	* tree.c (cp_tree_equal): WITH_CLEANUP_EXPR node to use its second
1212*c3d31fe1Smrg	operand while calling cp_tree_equal.
1213*c3d31fe1Smrg
1214*c3d31fe1Smrg2001-07-31  Nathan Sidwell  <nathan@codesourcery.com>
1215*c3d31fe1Smrg
1216*c3d31fe1Smrg	The 3.0 ABI no longer has vbase pointer fields.
1217*c3d31fe1Smrg	* cp-tree.h (VBASE_NAME, VBASE_NAME_FORMAT, VBASE_NAME_P,
1218*c3d31fe1Smrg	FORMAT_VBASE_NAME): Remove.
1219*c3d31fe1Smrg	* method.c (do_build_copy_constructor): Adjust.
1220*c3d31fe1Smrg	(do_build_assign_ref): Adjust.
1221*c3d31fe1Smrg	* search.c (lookup_field_r): Adjust.
1222*c3d31fe1Smrg	* typeck.c (build_component_ref): Adjust.
1223*c3d31fe1Smrg
1224*c3d31fe1Smrg	The 3.0 ABI always has a vtable pointer at the start of every
1225*c3d31fe1Smrg	polymorphic class.
1226*c3d31fe1Smrg	* rtti.c (build_headof_sub): Remove.
1227*c3d31fe1Smrg	(build_headof): Adjust.
1228*c3d31fe1Smrg	(get_tinfo_decl_dynamic): No need to check flag_rtti
1229*c3d31fe1Smrg	here. Adjust.
1230*c3d31fe1Smrg	(create_real_tinfo_var): Explain why we need a hidden name.
1231*c3d31fe1Smrg
1232*c3d31fe1Smrg2001-07-31  Nathan Sidwell  <nathan@codesourcery.com>
1233*c3d31fe1Smrg
1234*c3d31fe1Smrg	PR c++/3631
1235*c3d31fe1Smrg	* class.c (update_vtable_entry_for_fn): The fixed adjustment
1236*c3d31fe1Smrg	of a virtual thunk should be from declaring base.
1237*c3d31fe1Smrg
1238*c3d31fe1Smrg2001-07-31  Nathan Sidwell  <nathan@codesourcery.com>
1239*c3d31fe1Smrg
1240*c3d31fe1Smrg	* class.c (dfs_ctor_vtable_bases_queue_p): Always walk into
1241*c3d31fe1Smrg	the shared virtual base, so preserving inheritance graph order.
1242*c3d31fe1Smrg
1243*c3d31fe1Smrg2001-07-30  Andreas Jaeger  <aj@suse.de>
1244*c3d31fe1Smrg
1245*c3d31fe1Smrg	* decl2.c: Remove unused var global_temp_name_counter.
1246*c3d31fe1Smrg
1247*c3d31fe1Smrg2001-07-28  Richard Henderson  <rth@redhat.com>
1248*c3d31fe1Smrg
1249*c3d31fe1Smrg	* method.c (pending_inlines): Remove.
1250*c3d31fe1Smrg
1251*c3d31fe1Smrg2001-07-27  Nathan Sidwell  <nathan@codesourcery.com>
1252*c3d31fe1Smrg
1253*c3d31fe1Smrg	* class.c (mark_primary_virtual_base): Don't adjust base
1254*c3d31fe1Smrg	offsets here.
1255*c3d31fe1Smrg	(dfs_unshared_virtual_bases): Adjust them here.
1256*c3d31fe1Smrg	(mark_primary_bases): Explain why we adjust at the end.
1257*c3d31fe1Smrg
1258*c3d31fe1Smrg2001-07-27  Nathan Sidwell  <nathan@codesourcery.com>
1259*c3d31fe1Smrg
1260*c3d31fe1Smrg	* class.c (finish_struct_1): When copying the primary base's
1261*c3d31fe1Smrg	VFIELD, make sure we find it is at offset zero.
1262*c3d31fe1Smrg
1263*c3d31fe1Smrg2001-07-26  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
1264*c3d31fe1Smrg
1265*c3d31fe1Smrg	* pt.c (tsubst_template_parms): Call maybe_fold_nontype_arg and
1266*c3d31fe1Smrg	tsubst_expr for default template arguments.
1267*c3d31fe1Smrg
1268*c3d31fe1Smrg2001-07-26  Nathan Sidwell  <nathan@codesourcery.com>
1269*c3d31fe1Smrg
1270*c3d31fe1Smrg	PR c++/3621
1271*c3d31fe1Smrg	* spew.c (yylex): Only copy the token's lineno, if it is
1272*c3d31fe1Smrg	nonzero.
1273*c3d31fe1Smrg
1274*c3d31fe1Smrg2001-07-26  Nathan Sidwell  <nathan@codesourcery.com>
1275*c3d31fe1Smrg
1276*c3d31fe1Smrg	PR c++/3624
1277*c3d31fe1Smrg	* call.c (resolve_args): Simplify, call
1278*c3d31fe1Smrg	convert_from_reference.
1279*c3d31fe1Smrg	(build_new_op): Resolve and convert from reference ARG1
1280*c3d31fe1Smrg	earlier. Adjust ARG2 & ARG3 resolve and conversion.
1281*c3d31fe1Smrg
1282*c3d31fe1Smrg2001-07-26  Nathan Sidwell  <nathan@codesourcery.com>
1283*c3d31fe1Smrg
1284*c3d31fe1Smrg	* decl.c (last_function_parm_tags): Remove.
1285*c3d31fe1Smrg	(current_function_parm_tags): Remove.
1286*c3d31fe1Smrg	(init_decl_processing): Adjust.
1287*c3d31fe1Smrg	(start_function): Adjust.
1288*c3d31fe1Smrg	(store_parm_decls): Adjust.
1289*c3d31fe1Smrg
1290*c3d31fe1Smrg	PR c++/3152
1291*c3d31fe1Smrg	* decl.c (grokdeclarator): Detect when a function typedef is
1292*c3d31fe1Smrg	declaring a function, and create last_function_parms correctly.
1293*c3d31fe1Smrg
1294*c3d31fe1Smrg2001-07-25  Jason Merrill  <jason_merrill@redhat.com>
1295*c3d31fe1Smrg
1296*c3d31fe1Smrg	* call.c (joust): Only prefer a non-builtin candidate to a builtin
1297*c3d31fe1Smrg	one if they have the same signature.
1298*c3d31fe1Smrg
1299*c3d31fe1Smrg	* cvt.c (build_up_reference): Take DECL parm.  Check TREE_STATIC on
1300*c3d31fe1Smrg	it rather than toplevel_bindings_p.  Give it a mangled name if static.
1301*c3d31fe1Smrg	(convert_to_reference): Adjust.
1302*c3d31fe1Smrg	* decl2.c (get_temp_name): Lose.
1303*c3d31fe1Smrg	* mangle.c (mangle_ref_init_variable): New fn.
1304*c3d31fe1Smrg	(mangle_guard_variable): Strip the ref-init header.
1305*c3d31fe1Smrg	* cp-tree.h: Adjust.
1306*c3d31fe1Smrg	* decl.c (cp_finish_decl): Add the DECL_STMT after processing the
1307*c3d31fe1Smrg	initializer.
1308*c3d31fe1Smrg	(grok_reference_init): Always use DECL_INITIAL.
1309*c3d31fe1Smrg
1310*c3d31fe1Smrg2001-07-25  Nathan Sidwell  <nathan@codesourcery.com>
1311*c3d31fe1Smrg
1312*c3d31fe1Smrg	PR c++/3416
1313*c3d31fe1Smrg	* call.c (build_conditional_expr): Recheck args after
1314*c3d31fe1Smrg	conversions.
1315*c3d31fe1Smrg	* cp-tree.h (build_conditional_expr): Move to correct file.
1316*c3d31fe1Smrg	* typeck.c (decay_conversion): Diagnose any unknown types
1317*c3d31fe1Smrg	reaching here.
1318*c3d31fe1Smrg	(build_binary_op): Don't do initial decay or default
1319*c3d31fe1Smrg	conversions on overloaded functions.
1320*c3d31fe1Smrg	(build_static_cast): Don't do a decay conversion here.
1321*c3d31fe1Smrg
1322*c3d31fe1Smrg2001-07-25  Nathan Sidwell  <nathan@codesourcery.com>
1323*c3d31fe1Smrg
1324*c3d31fe1Smrg	PR c++/3543
1325*c3d31fe1Smrg	* typeck.c (condition_conversion): Resolve an OFFSET_REF.
1326*c3d31fe1Smrg	* expr.c (cplus_expand_expr): An OFFSET_REF should never get here.
1327*c3d31fe1Smrg
1328*c3d31fe1Smrg2001-07-25  Nathan Sidwell  <nathan@codesourcery.com>
1329*c3d31fe1Smrg
1330*c3d31fe1Smrg	* class.c (build_vtbl_or_vbase_field): Remove, move into ...
1331*c3d31fe1Smrg	(create_vtbl_ptr): ... here.
1332*c3d31fe1Smrg
1333*c3d31fe1Smrg2001-07-25  Nathan Sidwell  <nathan@codesourcery.com>
1334*c3d31fe1Smrg
1335*c3d31fe1Smrg	* class.c (build_vbase_offset_vbtl_entries): Look for
1336*c3d31fe1Smrg	non-primary base of which we are a sub vtable.
1337*c3d31fe1Smrg
1338*c3d31fe1Smrg2001-07-24  Phil Edwards  <pme@sources.redhat.com>
1339*c3d31fe1Smrg
1340*c3d31fe1Smrg	* semantics.c (finish_this_expr):  Remove unused code.
1341*c3d31fe1Smrg
1342*c3d31fe1Smrg2001-07-24  Nathan Sidwell  <nathan@codesourcery.com>
1343*c3d31fe1Smrg
1344*c3d31fe1Smrg	Simplify rtti, now we've only one ABI.
1345*c3d31fe1Smrg	* cp-tree.h (cp_tree_index): Remove CPTI_TINFO_DECL_ID,
1346*c3d31fe1Smrg	CPTI_TINFO_VAR_ID.
1347*c3d31fe1Smrg	(tinfo_decl_id, tinfo_var_id): Remove.
1348*c3d31fe1Smrg	(get_typeid_1): Remove.
1349*c3d31fe1Smrg	* rtti.c
1350*c3d31fe1Smrg	(init_rtti_processing): Remove tinfo_decl_id & tinfo_var_id.
1351*c3d31fe1Smrg	(typeid_ok_p): New function.
1352*c3d31fe1Smrg	(build_type_id): Call typeid_ok_p. Don't call tinfo_from_decl.
1353*c3d31fe1Smrg	(get_tinfo_decl): Remove old abi documentation.
1354*c3d31fe1Smrg	(tinfo_from_decl): Remove.
1355*c3d31fe1Smrg	(get_type_id): Call typeid_ok_p. Absorb get_typeid_1.
1356*c3d31fe1Smrg	(get_typeid_1): Remove.
1357*c3d31fe1Smrg	(get_base_offset): Remove.
1358*c3d31fe1Smrg	(synthesize_tinfo_var): Absorb get_base_offset.
1359*c3d31fe1Smrg	(create_real_tinfo_var): Don't use tinfo_decl_id.
1360*c3d31fe1Smrg
1361*c3d31fe1Smrg2001-07-23  Graham Stott  <grahams@redhat.com>
1362*c3d31fe1Smrg
1363*c3d31fe1Smrg	* cp/class.c (type_requires_array_cookie): Fix use of uninitialized
1364*c3d31fe1Smrg	variable has_two_argument_delete_p.
1365*c3d31fe1Smrg
1366*c3d31fe1Smrg2001-07-21  Nathan Sidwell  <nathan@codesourcery.com>
1367*c3d31fe1Smrg
1368*c3d31fe1Smrg	Remove flag_vtable_thunk. It is always on for the 3.0 ABI.
1369*c3d31fe1Smrg	* cp-tree.h (CPTI_DELTA2_IDENTIFIER): Remove.
1370*c3d31fe1Smrg	(CPTI_INDEX_IDENTIFIER): Remove.
1371*c3d31fe1Smrg	(CPT_PFN_OR_DELTA2_IDENTIFIER): Remove.
1372*c3d31fe1Smrg	(delta2_identifier): Remove.
1373*c3d31fe1Smrg	(index_identifier): Remove.
1374*c3d31fe1Smrg	(pfn_or_delta2_identifier): Remove.
1375*c3d31fe1Smrg	(flag_vtable_thunks): Remove.
1376*c3d31fe1Smrg	(VTABLE_DELTA2_NAME): Remove.
1377*c3d31fe1Smrg	(VTABLE_INDEX_NAME): Remove.
1378*c3d31fe1Smrg	(FNADDR_FROM_VTABLE_ENTRY): Adjust.
1379*c3d31fe1Smrg	(vfunc_ptr_type_node): Adjust.
1380*c3d31fe1Smrg	(VTABLE_NAME_PREFIX): Adjust.
1381*c3d31fe1Smrg	(build_vfn_ref): Lose first parameter.
1382*c3d31fe1Smrg	(fixup_all_virtual_upcast_offsets): Remove.
1383*c3d31fe1Smrg	* decl.c (initialize_predefined_identifiers): Remove
1384*c3d31fe1Smrg	delta2_identifier, index_identifier, pfn_or_delta2_identifier.
1385*c3d31fe1Smrg	(init_decl_processing): Remove no-vtable-thunk code.
1386*c3d31fe1Smrg	* decl2.c (flag_vtable_thunks): Remove.
1387*c3d31fe1Smrg	(mark_vtable_entries): Remove no-vtable-thunk code.
1388*c3d31fe1Smrg	* error.c (dump_decl): Remove no-vtable-thunk code.
1389*c3d31fe1Smrg	(dump_expr): Adjust ptr to member function code.
1390*c3d31fe1Smrg	* init.c (initialize_vtable_ptrs): Remove no-vtable-thunk
1391*c3d31fe1Smrg	code.
1392*c3d31fe1Smrg	* rtti.c (build_headof): Remove no-vtable-thunk code.
1393*c3d31fe1Smrg	(get_tinfo_decl_dynamic): Adjust build_vfn_ref call.
1394*c3d31fe1Smrg	* search.c (get_base_distance): Remove expand_upcast_fixups case.
1395*c3d31fe1Smrg	(virtual_context) Remove.
1396*c3d31fe1Smrg	(expand_upcast_fixups): Remove.
1397*c3d31fe1Smrg	(fixup_virtual_upcast_offsets): Remove.
1398*c3d31fe1Smrg	(fixup_all_virtual_upcast_offsets): Remove.
1399*c3d31fe1Smrg	* typeck.c (get_member_function_from_ptrfunc): Remove
1400*c3d31fe1Smrg	no-vtable-thunk code.
1401*c3d31fe1Smrg	* call.c (build_over_call): Adjust call to build_vfn_ref.
1402*c3d31fe1Smrg	* class.c (build_vfn_ref): Lose first parameter. Remove
1403*c3d31fe1Smrg	no-vtable-thunk code.
1404*c3d31fe1Smrg	(build_rtti_vtbl_entries): Remove no-vtable-thunk code.
1405*c3d31fe1Smrg	(build_vtable_entry): Remove no-vtable-thunk code.
1406*c3d31fe1Smrg
1407*c3d31fe1Smrg2001-07-20  Nathan Sidwell  <nathan@codesourcery.com>
1408*c3d31fe1Smrg
1409*c3d31fe1Smrg	Remove old-abi remnants. Remove comments about old abi
1410*c3d31fe1Smrg	behavior. Remove references to 'new-abi' in comments.
1411*c3d31fe1Smrg	* cp-tree.h: Adjust comments.
1412*c3d31fe1Smrg	(vbase_offsets_in_vtable_p): Delete.
1413*c3d31fe1Smrg	(vcall_offsets_in_vtable_p): Delete.
1414*c3d31fe1Smrg	(vptrs_present_everywhere_p): Delete.
1415*c3d31fe1Smrg	(all_overridden_vfuns_in_vtables_p): Delete.
1416*c3d31fe1Smrg	(merge_primary_and_secondary_vtables_p): Delete.
1417*c3d31fe1Smrg	(TYPE_CONTAINS_VPTR_P): Adjust.
1418*c3d31fe1Smrg	(VTT_NAME_PREFIX): Remove.
1419*c3d31fe1Smrg	(CTOR_VTBL_NAME_PREFIX): Remove.
1420*c3d31fe1Smrg	(init_vbase_pointers): Remove.
1421*c3d31fe1Smrg	* class.c: Adjust coments.
1422*c3d31fe1Smrg	(build_vbase_pointer_fields): Delete.
1423*c3d31fe1Smrg	(build_vbase_pointer): Remove old-abi code.
1424*c3d31fe1Smrg	(build_secondary_vtable): Likewise.
1425*c3d31fe1Smrg	(modify_all_vtables): Likewise.
1426*c3d31fe1Smrg	(create_vtable_ptr): Likewise.
1427*c3d31fe1Smrg	(layout_class_type): Likewise.
1428*c3d31fe1Smrg	(finish_struct_1): Likewise.
1429*c3d31fe1Smrg	(finish_vtbls): Likewise.
1430*c3d31fe1Smrg	(dfs_finish_vtbls): Delete.
1431*c3d31fe1Smrg	(build_vbase_offset_vtbl_entries): Remove old-abi code.
1432*c3d31fe1Smrg	* cvt.c: Adjust comments.
1433*c3d31fe1Smrg	* decl.c: Adjust comments.
1434*c3d31fe1Smrg	* decl2.c: Adjust comments.
1435*c3d31fe1Smrg	* init.c: Adjust comments.
1436*c3d31fe1Smrg	(construct_virtual_bases): Remove old-abi code.
1437*c3d31fe1Smrg	* lang-specs.h: Remove -fno-new-abi.
1438*c3d31fe1Smrg	* mangle.c: Adjust comments.
1439*c3d31fe1Smrg	* rtti.c: Adjust comments.
1440*c3d31fe1Smrg	(get_base_offset): Remove old-abi-code.
1441*c3d31fe1Smrg	* search.c: Adjust comments.
1442*c3d31fe1Smrg	(dfs_init_vbase_pointers): Remove.
1443*c3d31fe1Smrg	(dfs_vtable_path_unmark): Remove.
1444*c3d31fe1Smrg	(init_vbase_pointers): Remove.
1445*c3d31fe1Smrg	* semantics.c: Adjust comments.
1446*c3d31fe1Smrg	(emit_associated_thunks): Remove old-abi code.
1447*c3d31fe1Smrg	* typeck.c: Adjust comments.
1448*c3d31fe1Smrg
1449*c3d31fe1Smrg2001-07-20  Daniel Berlin  <dan@cgsoftware.com>
1450*c3d31fe1Smrg
1451*c3d31fe1Smrg	* Make-lang.in (cp/optimize.o): Depend on $(PARAMS_H), not
1452*c3d31fe1Smrg	params.h.
1453*c3d31fe1Smrg
1454*c3d31fe1Smrg2001-07-19  Mark Mitchell  <mark@codesourcery.com>
1455*c3d31fe1Smrg
1456*c3d31fe1Smrg	* class.c (finish_struct_anon): Forbid nested classes.
1457*c3d31fe1Smrg
1458*c3d31fe1Smrg2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
1459*c3d31fe1Smrg
1460*c3d31fe1Smrg	* decl2.c: Don't include dwarfout.h and dwarf2out.h.
1461*c3d31fe1Smrg	* optimize.c: Include debug.h.
1462*c3d31fe1Smrg	(maybe_clone_body): Use debug hook.
1463*c3d31fe1Smrg	* semantics.c: Include debug.h.
1464*c3d31fe1Smrg	(expand_body): Use debug hook.
1465*c3d31fe1Smrg
1466*c3d31fe1Smrg2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
1467*c3d31fe1Smrg
1468*c3d31fe1Smrg	* spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
1469*c3d31fe1Smrg
1470*c3d31fe1Smrg2001-07-18  Mark Mitchell  <mark@codesourcery.com>
1471*c3d31fe1Smrg
1472*c3d31fe1Smrg	* class.c (type_requires_array_cookie): New function.
1473*c3d31fe1Smrg	(check_methods): Don't try to figure out whether the type needs a
1474*c3d31fe1Smrg	cookie here.
1475*c3d31fe1Smrg	(check_bases_and_members): Set TYPE_VEC_NEW_USES_COOKIE here.
1476*c3d31fe1Smrg	* cp-tree.h (TYPE_VEC_DELETE_TAKES_SIZE): Remove.
1477*c3d31fe1Smrg	(TYPE_VEC_NEW_USES_COOKIE): Reimplement.
1478*c3d31fe1Smrg	* pt.c (instantiate_class_template): Don't set
1479*c3d31fe1Smrg	TYPE_VEC_DELETE_TAKES_SIZE.
1480*c3d31fe1Smrg	* NEWS: Document ABI changes from GCC 3.0.
1481*c3d31fe1Smrg
1482*c3d31fe1Smrg2001-07-18  Xavier Delacour <xavier@fmaudio.net>,
1483*c3d31fe1Smrg	    Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1484*c3d31fe1Smrg
1485*c3d31fe1Smrg	* NEWS (Changes in GCC 3.0): Fix typo.
1486*c3d31fe1Smrg
1487*c3d31fe1Smrg2001-07-13  Joseph S. Myers  <jsm28@cam.ac.uk>
1488*c3d31fe1Smrg
1489*c3d31fe1Smrg	* decl2.c (cplus_decl_attributes): Take a pointer to the node to
1490*c3d31fe1Smrg	which attributes are to be attached, and a flags argument.  Update
1491*c3d31fe1Smrg	call to decl_attributes.
1492*c3d31fe1Smrg	(grokfield): Update call to decl_attributes.
1493*c3d31fe1Smrg	* class.c (finish_struct): Update call to cplus_decl_attributes.
1494*c3d31fe1Smrg	* cp-tree.h (cplus_decl_attributes): Update prototype.
1495*c3d31fe1Smrg	* decl.c (start_decl, grokdeclarator, start_function): Update
1496*c3d31fe1Smrg	calls to decl_attributes and cplus_decl_attributes.
1497*c3d31fe1Smrg	* friend.c (do_friend): Update call to cplus_decl_attributes.
1498*c3d31fe1Smrg	* parse.y (parse_bitfield): Update call to cplus_decl_attributes.
1499*c3d31fe1Smrg
1500*c3d31fe1Smrg2001-07-12  Mark Mitchell  <mark@codesourcery.com>
1501*c3d31fe1Smrg
1502*c3d31fe1Smrg	* decl.c (make_rtl_for_nonlocal_decl): Set DECL_C_HARD_REGISTER
1503*c3d31fe1Smrg	for `register' variables with an asm-specification.
1504*c3d31fe1Smrg
1505*c3d31fe1Smrg2001-07-11  Mark Mitchell  <mark@codesourcery.com>
1506*c3d31fe1Smrg
1507*c3d31fe1Smrg	* semantics.c (finish_asm_stmt): Mark the output operands
1508*c3d31fe1Smrg	to an asm addressable, if necessary.
1509*c3d31fe1Smrg
1510*c3d31fe1Smrg2001-07-11  Ben Elliston  <bje@redhat.com>
1511*c3d31fe1Smrg
1512*c3d31fe1Smrg	* Revert this change -- there is a subtle bug.
1513*c3d31fe1Smrg
1514*c3d31fe1Smrg	PR c++/80
1515*c3d31fe1Smrg	* decl.c (finish_enum): New "attributes" argument; pass it to
1516*c3d31fe1Smrg	cplus_decl_attributes.  Use a narrower type if the enum is packed.
1517*c3d31fe1Smrg	* cp-tree.h (finish_enum): Adjust prototype.
1518*c3d31fe1Smrg	* parse.y (enum_head): New non-terminal.
1519*c3d31fe1Smrg	(structsp): Use it. Enums now may be preceded or followed by
1520*c3d31fe1Smrg	optional attributes -- pass their chained tree to finish_enum().
1521*c3d31fe1Smrg	* pt.c (tsubst_enum): Pass NULL_TREE for the new argument.
1522*c3d31fe1Smrg
1523*c3d31fe1Smrg2001-07-10  Mark Mitchell  <mark@codesourcery.com>
1524*c3d31fe1Smrg
1525*c3d31fe1Smrg	* pt.c (tsubst_decl): Set DECL_CONTEXT for namespace-scope
1526*c3d31fe1Smrg	variables.
1527*c3d31fe1Smrg
1528*c3d31fe1Smrg2001-07-10  Jason Merrill  <jason_merrill@redhat.com>
1529*c3d31fe1Smrg
1530*c3d31fe1Smrg	* semantics.c (cp_expand_stmt): Fix for null
1531*c3d31fe1Smrg	current_function_return_value.
1532*c3d31fe1Smrg
1533*c3d31fe1Smrg2001-07-10  Jan van Male  <jan.vanmale@fenk.wau.nl>
1534*c3d31fe1Smrg
1535*c3d31fe1Smrg	* call.c (build_op_delete_call): Initialize fn.
1536*c3d31fe1Smrg	(convert_like_real): Delete conditional.
1537*c3d31fe1Smrg	(joust): Initialize *w and *l.
1538*c3d31fe1Smrg	* class.c: Add prototype for binfo_ctor_vtable.
1539*c3d31fe1Smrg	(get_primary_binfo): Initialize result.
1540*c3d31fe1Smrg	* init.c (build_java_class_ref): Initialize name.
1541*c3d31fe1Smrg
1542*c3d31fe1Smrg2001-07-09  Erik Rozendaal  <dlr@acm.org>
1543*c3d31fe1Smrg
1544*c3d31fe1Smrg	* typeck.c (unary_complex_lvalue): Do not duplicate the
1545*c3d31fe1Smrg	argument to modify, pre-, or post-increment when used as an
1546*c3d31fe1Smrg	lvalue and when the argument has side-effects.
1547*c3d31fe1Smrg
1548*c3d31fe1Smrg2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
1549*c3d31fe1Smrg
1550*c3d31fe1Smrg	* decl.c (start_decl): Don't call SET_DEFAULT_DECL_ATTRIBUTES.
1551*c3d31fe1Smrg	(start_function): Don't call SET_DEFAULT_DECL_ATTRIBUTES.  Call
1552*c3d31fe1Smrg	cplus_decl_attributes even if attrs is NULL.
1553*c3d31fe1Smrg	* friend.c (do_friend): Don't call SET_DEFAULT_DECL_ATTRIBUTES.
1554*c3d31fe1Smrg
1555*c3d31fe1Smrg2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
1556*c3d31fe1Smrg
1557*c3d31fe1Smrg	* decl.c (grokdeclarator), decl2.c (cplus_decl_attributes): Update
1558*c3d31fe1Smrg	calls to decl_attributes.
1559*c3d31fe1Smrg
1560*c3d31fe1Smrg2001-07-06  Ira Ruben   <ira@apple.com>
1561*c3d31fe1Smrg
1562*c3d31fe1Smrg	* cp-tree.def (TEMPLATE_DECL): Update comment. DECL_RESULT should
1563*c3d31fe1Smrg	be DECL_TEMPLATE_RESULT.
1564*c3d31fe1Smrg
1565*c3d31fe1Smrg2001-07-05  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
1566*c3d31fe1Smrg
1567*c3d31fe1Smrg	* cp-tree.h (copy_template_template_parm): Rename to ...
1568*c3d31fe1Smrg	(bind_template_template_parm): ... here.
1569*c3d31fe1Smrg	* tree.c (copy_template_template_parm): Rename to ...
1570*c3d31fe1Smrg	(bind_template_template_parm): ... here.  Remove the case when
1571*c3d31fe1Smrg	NEWARGS is NULL_TREE.
1572*c3d31fe1Smrg	(copy_tree_r): Don't copy TEMPLATE_TEMPLATE_PARM and
1573*c3d31fe1Smrg	BOUND_TEMPLATE_TEMPLATE_PARM.
1574*c3d31fe1Smrg	* pt.c (lookup_template_class): Adjust.
1575*c3d31fe1Smrg
1576*c3d31fe1Smrg2001-07-05  Jason Merrill  <jason_merrill@redhat.com>
1577*c3d31fe1Smrg
1578*c3d31fe1Smrg	* cvt.c (convert_lvalue): New fn.
1579*c3d31fe1Smrg	* cp-tree.h: Declare it.
1580*c3d31fe1Smrg	* method.c (do_build_assign_ref): Use it.
1581*c3d31fe1Smrg	(do_build_copy_constructor): Convert parm to base types
1582*c3d31fe1Smrg	before calling base constructors.
1583*c3d31fe1Smrg
1584*c3d31fe1Smrg	* typeck.c (check_return_expr): Check DECL_ALIGN instead of
1585*c3d31fe1Smrg	DECL_USER_ALIGN.  Check flag_elide_constructors instead of
1586*c3d31fe1Smrg	optimize.
1587*c3d31fe1Smrg	* semantics.c (cp_expand_stmt): Don't destroy the named return value.
1588*c3d31fe1Smrg
1589*c3d31fe1Smrg2001-07-02  Nathan Sidwell  <nathan@codesourcery.com>
1590*c3d31fe1Smrg
1591*c3d31fe1Smrg	* optimize.c (optimize_inline_calls): New function, broken out
1592*c3d31fe1Smrg	of ...
1593*c3d31fe1Smrg	(optimize_function): ... here. Call it. Don't inline if it is
1594*c3d31fe1Smrg	a thunk.
1595*c3d31fe1Smrg	(dump_function): Print name of dump flag causing this dump.
1596*c3d31fe1Smrg	* semantics.c (expand_body): Move thunk inline check to
1597*c3d31fe1Smrg	optimize_function.
1598*c3d31fe1Smrg
1599*c3d31fe1Smrg2001-06-29  Joseph S. Myers  <jsm28@cam.ac.uk>
1600*c3d31fe1Smrg
1601*c3d31fe1Smrg	* typeck.c (COMP_TYPE_ATTRIBUTES): Don't define.
1602*c3d31fe1Smrg	(comptypes): Use target.comp_type_attributes.
1603*c3d31fe1Smrg
1604*c3d31fe1Smrg2001-06-29  Nathan Sidwell  <nathan@codesourcery.com>
1605*c3d31fe1Smrg
1606*c3d31fe1Smrg	* cp-tree.h (flag_dump_class_layout): Remove unneeded declaration.
1607*c3d31fe1Smrg
1608*c3d31fe1Smrg2001-06-28  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
1609*c3d31fe1Smrg
1610*c3d31fe1Smrg	* error.c (lang_print_error_function): Add a `diagnostic_context *'
1611*c3d31fe1Smrg	parameter. Tweak.
1612*c3d31fe1Smrg
1613*c3d31fe1Smrg2001-06-27  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
1614*c3d31fe1Smrg
1615*c3d31fe1Smrg	* decl2.c (import_export_class): Update.
1616*c3d31fe1Smrg
1617*c3d31fe1Smrg2001-06-26  Gabriel Dos Reis  <gdr@codesourcery.com>
1618*c3d31fe1Smrg
1619*c3d31fe1Smrg	* error.c (init_error): Adjust settings.
1620*c3d31fe1Smrg
1621*c3d31fe1Smrg2001-06-26  Gabriel Dos Reis  <gdr@codesourcery.com>
1622*c3d31fe1Smrg
1623*c3d31fe1Smrg	* error.c (init_error): Adjust settings.
1624*c3d31fe1Smrg
1625*c3d31fe1Smrg2001-06-19  Richard Sandiford  <rsandifo@redhat.com>
1626*c3d31fe1Smrg
1627*c3d31fe1Smrg	* except.c (initialize_handler_parm): Expect __cxa_begin_catch to
1628*c3d31fe1Smrg	return pointers to data members by reference rather than by value.
1629*c3d31fe1Smrg
1630*c3d31fe1Smrg2001-06-18  Jason Merrill  <jason_merrill@redhat.com>
1631*c3d31fe1Smrg
1632*c3d31fe1Smrg	Implement the Named Return Value optimization.
1633*c3d31fe1Smrg	* cp-tree.h (struct cp_language_function): Add x_return_value.
1634*c3d31fe1Smrg	(current_function_return_value): Now a macro.
1635*c3d31fe1Smrg	* decl.c: Don't define it.
1636*c3d31fe1Smrg	(define_label, finish_case_label): Don't clear it.
1637*c3d31fe1Smrg	(init_decl_processing): Don't register it with GC.
1638*c3d31fe1Smrg	* semantics.c (genrtl_finish_function): Don't check it for
1639*c3d31fe1Smrg	no_return_label.  Copy the RTL from the return value to
1640*c3d31fe1Smrg	current_function_return_value and walk, calling...
1641*c3d31fe1Smrg	(nullify_returns_r): ...this new fn.
1642*c3d31fe1Smrg	* typeck.c (check_return_expr): Set current_function_return_value.
1643*c3d31fe1Smrg
1644*c3d31fe1Smrg2001-06-15  Jason Merrill  <jason_merrill@redhat.com>
1645*c3d31fe1Smrg
1646*c3d31fe1Smrg	* class.c (dfs_accumulate_vtbl_inits): Just point to the base we're
1647*c3d31fe1Smrg	sharing a ctor vtable with.  Merge code for cases 1 and 2.
1648*c3d31fe1Smrg	(binfo_ctor_vtable): New fn.
1649*c3d31fe1Smrg	(build_vtt_inits, dfs_build_secondary_vptr_vtt_inits): Use it.
1650*c3d31fe1Smrg
1651*c3d31fe1Smrg2001-06-14  Jason Merrill  <jason_merrill@redhat.com>
1652*c3d31fe1Smrg
1653*c3d31fe1Smrg	* class.c (dfs_find_final_overrider): Fix logic.
1654*c3d31fe1Smrg
1655*c3d31fe1Smrg	* class.c (update_vtable_entry_for_fn): Uncomment optimization to use
1656*c3d31fe1Smrg	virtual thunk instead of non-virtual.
1657*c3d31fe1Smrg	(get_matching_virtual): Uncomment.
1658*c3d31fe1Smrg
1659*c3d31fe1Smrg	* pt.c (unify): Don't recurse between the POINTER_TYPE and the
1660*c3d31fe1Smrg	OFFSET_TYPE.  If we're adding cv-quals, the extra ones would be on
1661*c3d31fe1Smrg	PARM, not ARG.
1662*c3d31fe1Smrg
1663*c3d31fe1Smrg2001-06-14  Nathan Sidwell  <nathan@codesourcery.com>
1664*c3d31fe1Smrg
1665*c3d31fe1Smrg	* class.c (dfs_accumulate_vtbl_inits): For case 2 & 3, make sure
1666*c3d31fe1Smrg	we've not emerged from the hierarchy of RTTI_BINFO on reaching
1667*c3d31fe1Smrg	a non-virtual base.
1668*c3d31fe1Smrg
1669*c3d31fe1Smrg2001-06-13  Mark Mitchell  <mark@codesourcery.com>
1670*c3d31fe1Smrg
1671*c3d31fe1Smrg	* NEWS: Update release number.
1672*c3d31fe1Smrg
1673*c3d31fe1Smrg2001-06-12  Nathan Sidwell  <nathan@codesourcery.com>
1674*c3d31fe1Smrg
1675*c3d31fe1Smrg	PR c++/3130, c++/3131, c++/3132
1676*c3d31fe1Smrg	* cp-tree.h (BINFO_UNSHARED_MARKED): New #define.
1677*c3d31fe1Smrg	* class.c (force_canonical_binfo_r): Move
1678*c3d31fe1Smrg	BINFO_UNSHARED_MARKED, BINFO_LOST_PRIMARY_P. Don't move
1679*c3d31fe1Smrg	virtual bases unless they're primary and what they're primary
1680*c3d31fe1Smrg	too has been moved.
1681*c3d31fe1Smrg	(dfs_unshared_virtual_bases): Use BINFO_UNSHARED_MARKED. Cope
1682*c3d31fe1Smrg	with morally virtual bases. Duplicate BINFO_LOST_PRIMARY_P and
1683*c3d31fe1Smrg	BINFO_PRIMARY_BASE_OF. Clear BINFO_VTABLE for all but the most
1684*c3d31fe1Smrg	derived binfo.
1685*c3d31fe1Smrg	(mark_primary_bases): Use BINFO_UNSHARED_MARKED.
1686*c3d31fe1Smrg	(layout_nonempty_base_or_field): Add most derived type
1687*c3d31fe1Smrg	parameter. Adjust.
1688*c3d31fe1Smrg	(layout_empty_base): Likewise.
1689*c3d31fe1Smrg	(build_base_field): Likewise.
1690*c3d31fe1Smrg	(build_base_fields): Likewise.
1691*c3d31fe1Smrg	(propagate_binfo_offsets): Add most derived type
1692*c3d31fe1Smrg	parameter. Skip non canonical virtual bases too.
1693*c3d31fe1Smrg	(dfs_set_offset_for_unshared_vbases): Don't skip primary
1694*c3d31fe1Smrg	bases. Do skip canonical bases.
1695*c3d31fe1Smrg	(layout_virtual_bases): Adjust.
1696*c3d31fe1Smrg	(layout_class_type): Adjust.
1697*c3d31fe1Smrg	(dfs_get_primary_binfo): Build list of virtual primary base
1698*c3d31fe1Smrg	candidates.
1699*c3d31fe1Smrg	(get_primary_binfo): Check that the shared virtual primary
1700*c3d31fe1Smrg	base candidate was found first.
1701*c3d31fe1Smrg	(accumulate_vtbl_inits): Don't do anything for non-vptr
1702*c3d31fe1Smrg	containing binfos. For case 1 primary virtual bases, keep
1703*c3d31fe1Smrg	checking that we've not emerged from the hierarchy of RTTI_BINFO.
1704*c3d31fe1Smrg
1705*c3d31fe1Smrg2001-06-12  Nathan Sidwell  <nathan@codesourcery.com>
1706*c3d31fe1Smrg
1707*c3d31fe1Smrg	PR c++/3089
1708*c3d31fe1Smrg	* class.c (dfs_accumulate_vtbl_inits): Always walk down the
1709*c3d31fe1Smrg	hierarchy looking for primary bases for a ctor
1710*c3d31fe1Smrg	vtable. Recursively call oneself, if we meet our primary via
1711*c3d31fe1Smrg	this route and haven't met it yet via inheritance graph order.
1712*c3d31fe1Smrg
1713*c3d31fe1Smrg2001-06-11  Mark Mitchell  <mark@codesourcery.com>
1714*c3d31fe1Smrg
1715*c3d31fe1Smrg	* lang-options.h: Emit documentation for -fno-honor-std, not
1716*c3d31fe1Smrg	-fhonor-std.
1717*c3d31fe1Smrg
1718*c3d31fe1Smrg2001-06-10  Alexandre Oliva  <aoliva@redhat.com>
1719*c3d31fe1Smrg
1720*c3d31fe1Smrg	* typeck.c (get_member_function_from_ptrfunc) [vbit_in_delta]:
1721*c3d31fe1Smrg	Don't clobber delta.
1722*c3d31fe1Smrg	(expand_ptrmemfunc_cst) [ptrmemfunc_vbit_in_delta]: Adjust pfn.
1723*c3d31fe1Smrg
1724*c3d31fe1Smrg2001-06-10  Mark Mitchell <mark@codesourcery.com>
1725*c3d31fe1Smrg	    Gabriel Dos Reis  <gdr@codesourcery.com>
1726*c3d31fe1Smrg
1727*c3d31fe1Smrg	* Make-lang.in (cp/call.o): Depend on diagnostic.h
1728*c3d31fe1Smrg	(cp/typeck.o): Depend on diagnostic.h
1729*c3d31fe1Smrg	(cp/typeck2.o): Depend on diagnostic.h
1730*c3d31fe1Smrg	(cp/repo.o): Depend on dignostic.h
1731*c3d31fe1Smrg	* typeck.c: #include diagnostic.h
1732*c3d31fe1Smrg	(convert_for_initialization): Remove extern declaration for
1733*c3d31fe1Smrg	warningcount and errorcount.
1734*c3d31fe1Smrg
1735*c3d31fe1Smrg	* call.c: #include diagnostic.h
1736*c3d31fe1Smrg	(convert_like_real): Remove extern declaration for warnincount and
1737*c3d31fe1Smrg	errorcount.
1738*c3d31fe1Smrg
1739*c3d31fe1Smrg	* repo.c: #include diagnostic.h
1740*c3d31fe1Smrg	* typeck2.c: #include diagnostic.h
1741*c3d31fe1Smrg
1742*c3d31fe1Smrg2001-06-08  Nathan Sidwell  <nathan@codesourcery.com>
1743*c3d31fe1Smrg
1744*c3d31fe1Smrg	* decl.c (duplicate_decls): Fix DECL_TEMPLATE_RESULT thinko
1745*c3d31fe1Smrg	in previous change.
1746*c3d31fe1Smrg
1747*c3d31fe1Smrg2001-06-08  Nathan Sidwell  <nathan@codesourcery.com>
1748*c3d31fe1Smrg
1749*c3d31fe1Smrg	PR c++/2929
1750*c3d31fe1Smrg	* friend.c (do_friend): Use push_decl_namespace for classes at
1751*c3d31fe1Smrg	namespace scope.
1752*c3d31fe1Smrg
1753*c3d31fe1Smrg2001-06-08  Nathan Sidwell  <nathan@codesourcery.com>
1754*c3d31fe1Smrg	    Jason Merrill <jason_merrill@redhat.com>
1755*c3d31fe1Smrg
1756*c3d31fe1Smrg	PR c++/3061
1757*c3d31fe1Smrg	* class.c (build_secondary_vtable): Use assert, rather than an error
1758*c3d31fe1Smrg	message.
1759*c3d31fe1Smrg	(dfs_fixup_binfo_vtbls): BINFO_VTABLE might be NULL.
1760*c3d31fe1Smrg	(dfs_accumulate_vtbl_inits): A lost primary virtual base may
1761*c3d31fe1Smrg	be between ORIG_BINFO and RTTI_BINFO, but neither of them.
1762*c3d31fe1Smrg	Don't set BINFO_VTABLE for a primary virtual base.
1763*c3d31fe1Smrg
1764*c3d31fe1Smrg2001-06-07  Mark Mitchell  <mark@codesourcery.com>
1765*c3d31fe1Smrg
1766*c3d31fe1Smrg	* decl.c (duplicate_decls): Update source position information
1767*c3d31fe1Smrg	when a template function is defined.
1768*c3d31fe1Smrg
1769*c3d31fe1Smrg2001-06-07  Phil Edwards  <pme@sources.redhat.com>
1770*c3d31fe1Smrg
1771*c3d31fe1Smrg	* lang-specs.h:  Move -D_GNU_SOURCE to config/linux.h.
1772*c3d31fe1Smrg
1773*c3d31fe1Smrg2001-06-07  Nathan Sidwell  <nathan@codesourcery.com>
1774*c3d31fe1Smrg
1775*c3d31fe1Smrg	PR c++/2914
1776*c3d31fe1Smrg	* decl.c (pushtag): Don't push into a complete type's scope.
1777*c3d31fe1Smrg
1778*c3d31fe1Smrg2001-06-06  Jason Merrill  <jason_merrill@redhat.com>
1779*c3d31fe1Smrg
1780*c3d31fe1Smrg	* cp-tree.h (THUNK_GENERATE_WITH_VTABLE_P): Lose.
1781*c3d31fe1Smrg	(struct lang_decl_flags): Lose generate_with_vtable_p.
1782*c3d31fe1Smrg	(BV_GENERATE_THUNK_WITH_VTABLE_P): Lose.
1783*c3d31fe1Smrg	* class.c (copy_virtuals): Adjust.
1784*c3d31fe1Smrg	* decl2.c (mark_vtable_entries): Adjust.
1785*c3d31fe1Smrg	* method.c (make_thunk, build_vtable_entry): Adjust.
1786*c3d31fe1Smrg	* class.c (update_vtable_entry_for_fn): Only look as far as the
1787*c3d31fe1Smrg	first defining class.
1788*c3d31fe1Smrg	(build_vtbl_initializer): Put nothing in the slot for a function only
1789*c3d31fe1Smrg	defined in a lost primary virtual base.
1790*c3d31fe1Smrg	(add_vcall_offset_vtbl_entries_1): Use the same code for
1791*c3d31fe1Smrg	the lost primary case and the normal case.
1792*c3d31fe1Smrg	(dfs_unshared_virtual_bases): Don't lose a non-virtual primary base.
1793*c3d31fe1Smrg	(get_vfield_offset, get_derived_offset): Lose.
1794*c3d31fe1Smrg	(dfs_find_final_overrider): Use look_for_overrides_here.
1795*c3d31fe1Smrg	(get_matching_virtual): New fn.
1796*c3d31fe1Smrg	* semantics.c (emit_associated_thunks): Check BV_USE_VCALL_INDEX_P,
1797*c3d31fe1Smrg	not BV_VCALL_INDEX.
1798*c3d31fe1Smrg	* search.c (look_for_overrides_here): Split out from...
1799*c3d31fe1Smrg	(look_for_overrides_r): Here.
1800*c3d31fe1Smrg
1801*c3d31fe1Smrg	* class.c (find_final_overrider): Return error_mark_node on error.
1802*c3d31fe1Smrg
1803*c3d31fe1Smrg	* decl2.c (key_method): #if 0 accidental change.
1804*c3d31fe1Smrg
1805*c3d31fe1Smrg2001-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1806*c3d31fe1Smrg
1807*c3d31fe1Smrg	* call.c (convert_default_arg): Use INTEGRAL_TYPE_P.
1808*c3d31fe1Smrg	(build_over_call): Likewise.
1809*c3d31fe1Smrg	* decl.c (grokparms): Likewise.
1810*c3d31fe1Smrg	* pt.c (tsubst_decl): Likewise.
1811*c3d31fe1Smrg	* typeck.c (convert_arguments): Likewise.
1812*c3d31fe1Smrg
1813*c3d31fe1Smrg2001-06-05  Mark Mitchell  <mark@codesourcery.com>
1814*c3d31fe1Smrg
1815*c3d31fe1Smrg	* semantics.c (begin_class_definition): Robustify.
1816*c3d31fe1Smrg
1817*c3d31fe1Smrg	* pt.c (instantiate_decl): Tell the repository code about the
1818*c3d31fe1Smrg	clones, not the cloned functions.
1819*c3d31fe1Smrg	* repo.c (repo_template_used): Explicitly instantiate the cloned
1820*c3d31fe1Smrg	function, not the clones.
1821*c3d31fe1Smrg
1822*c3d31fe1Smrg2001-06-05  Nathan Sidwell  <nathan@codesourcery.com>
1823*c3d31fe1Smrg
1824*c3d31fe1Smrg	* call.c (build_user_type_conversion_1): Set ICS_USER_FLAG and
1825*c3d31fe1Smrg	ICS_BAD_FLAG on created conversion.
1826*c3d31fe1Smrg	(compare_ics): Break out rank.
1827*c3d31fe1Smrg
1828*c3d31fe1Smrg2001-06-05  Nathan Sidwell  <nathan@codesourcery.com>
1829*c3d31fe1Smrg
1830*c3d31fe1Smrg	* decl.c (xref_tag): Remove extraneous %s on dependent name
1831*c3d31fe1Smrg	lookup warning.
1832*c3d31fe1Smrg
1833*c3d31fe1Smrg2001-06-05  Nathan Sidwell  <nathan@codesourcery.com>
1834*c3d31fe1Smrg
1835*c3d31fe1Smrg	* class.c (layout_vtable_decl): Fix off by one error on
1836*c3d31fe1Smrg	build_index_type.
1837*c3d31fe1Smrg	(build_vtt): Likewise.
1838*c3d31fe1Smrg	(build_ctor_vtbl_group): Likewise.
1839*c3d31fe1Smrg
1840*c3d31fe1Smrg2001-06-05  Nathan Sidwell  <nathan@codesourcery.com>
1841*c3d31fe1Smrg
1842*c3d31fe1Smrg	* class.c (maybe_indent_hierarchy): New function.
1843*c3d31fe1Smrg	(dump_class_hierarchy_r): Add flags. Dump extra binfo
1844*c3d31fe1Smrg	information, if enabled. Use maybe_indent_hierarchy. Adjust
1845*c3d31fe1Smrg	output format.
1846*c3d31fe1Smrg	(dump_class_hierarchy): Adjust prototype. Adjust output format.
1847*c3d31fe1Smrg	(dump_array, dump_vtable, dump_vtt): New functions.
1848*c3d31fe1Smrg	(finish_struct_1): Adjust hierarchy dumping.
1849*c3d31fe1Smrg	(initialize_vtable): Call dump_vtable.
1850*c3d31fe1Smrg	(build_vtt): Call dump_vtt.
1851*c3d31fe1Smrg	(build_ctor_vtbl_group): Call dump_vtable.
1852*c3d31fe1Smrg	* decl2.c (flag_dump_class_layout): Remove.
1853*c3d31fe1Smrg	(cxx_decode_option): Remove dump translation unit
1854*c3d31fe1Smrg	and dump class hierarchy check. Call dump_switch_p.
1855*c3d31fe1Smrg	(finish_file): Adjust dumping.
1856*c3d31fe1Smrg	(dump.c): Only dump base classes if not TDF_SLIM.
1857*c3d31fe1Smrg	Only dump namespace members if not TDF_SLIM.
1858*c3d31fe1Smrg	* optimize.c (dump_function): New function.
1859*c3d31fe1Smrg	(optimize_function): Call dump_function.
1860*c3d31fe1Smrg	* semantics.c (expand_body): Use dump_enabled_p.
1861*c3d31fe1Smrg
1862*c3d31fe1Smrg2001-06-01  Nathan Sidwell  <nathan@codesourcery.com>
1863*c3d31fe1Smrg
1864*c3d31fe1Smrg	PR g++/2936
1865*c3d31fe1Smrg	Part missed from first commit
1866*c3d31fe1Smrg	* decl2.c (finish_anon_union): Copy context.
1867*c3d31fe1Smrg
1868*c3d31fe1Smrg2001-05-30  Nathan Sidwell  <nathan@codesourcery.com>
1869*c3d31fe1Smrg
1870*c3d31fe1Smrg	PR g++/2936
1871*c3d31fe1Smrg	* optimize.c (remap_decl): Remap anonymous aggregate members too.
1872*c3d31fe1Smrg
1873*c3d31fe1Smrg2001-05-26  Nathan Sidwell  <nathan@codesourcery.com>
1874*c3d31fe1Smrg
1875*c3d31fe1Smrg	PR g++/2823
1876*c3d31fe1Smrg	* semantics.c (expand_body): Don't optimize thunks.
1877*c3d31fe1Smrg
1878*c3d31fe1Smrg2001-05-25  Sam TH  <sam@uchicago.edu>
1879*c3d31fe1Smrg
1880*c3d31fe1Smrg	* cp-tree.h lex.h: Fix header include guards.
1881*c3d31fe1Smrg
1882*c3d31fe1Smrg2001-05-25  Mark Mitchell <mark@codesourcery.com>
1883*c3d31fe1Smrg
1884*c3d31fe1Smrg	* decl.c (init_decl_processing): Tweak.
1885*c3d31fe1Smrg
1886*c3d31fe1Smrg2001-05-24  Mark Mitchell  <mark@codesourcery.com>
1887*c3d31fe1Smrg
1888*c3d31fe1Smrg	* decl.c (duplicate_decls): Tidy.
1889*c3d31fe1Smrg	(init_decl_processing): Always set flag_no_builtin.
1890*c3d31fe1Smrg
1891*c3d31fe1Smrg2001-05-24  Nathan Sidwell  <nathan@codesourcery.com>
1892*c3d31fe1Smrg
1893*c3d31fe1Smrg	PR c++/2184
1894*c3d31fe1Smrg	* decl2.c (do_local_using_decl): Push the decls, even in a
1895*c3d31fe1Smrg	template.
1896*c3d31fe1Smrg
1897*c3d31fe1Smrg2001-05-22  Mark Mitchell  <mark@codesourcery.com>
1898*c3d31fe1Smrg
1899*c3d31fe1Smrg	* optimize.c (initialize_inlined_parameters): Don't set
1900*c3d31fe1Smrg	TREE_READONLY for a VAR_DECL taking the place of an inlined
1901*c3d31fe1Smrg	PARM_DECL.
1902*c3d31fe1Smrg
1903*c3d31fe1Smrg2001-05-22  Jason Merrill  <jason_merrill@redhat.com>
1904*c3d31fe1Smrg
1905*c3d31fe1Smrg	* class.c, cp-tree.h, rtti.c: Remove com_interface attribute support.
1906*c3d31fe1Smrg	* tree.c (cp_valid_lang_attribute): Warn about use of com_interface
1907*c3d31fe1Smrg	attribute.
1908*c3d31fe1Smrg
1909*c3d31fe1Smrg2001-05-22  Joseph S. Myers  <jsm28@cam.ac.uk>
1910*c3d31fe1Smrg
1911*c3d31fe1Smrg	* parse.y: Refer to compound literals as such, not as
1912*c3d31fe1Smrg	constructor-expressions.
1913*c3d31fe1Smrg
1914*c3d31fe1Smrg2001-05-21  Mark Mitchell  <mark@codesourcery.com>
1915*c3d31fe1Smrg
1916*c3d31fe1Smrg	* call.c (build_op_delete_call): Ignore exception-specifications
1917*c3d31fe1Smrg	when looking for matching delete operators.
1918*c3d31fe1Smrg	* init.c (build_new_1): Compute whether or not the allocation
1919*c3d31fe1Smrg	function used is a placement allocation function or not, and
1920*c3d31fe1Smrg	communicate this information to build_op_delete_call.
1921*c3d31fe1Smrg
1922*c3d31fe1Smrg2001-05-21  Jason Merrill  <jason_merrill@redhat.com>
1923*c3d31fe1Smrg
1924*c3d31fe1Smrg	* class.c (build_vtable_entry_ref): Lose vtbl parm.  Fix for new abi.
1925*c3d31fe1Smrg	(build_vtbl_ref): Adjust.
1926*c3d31fe1Smrg	(dfs_accumulate_vtbl_inits): Set TREE_CONSTANT on the vtable address.
1927*c3d31fe1Smrg	* decl2.c (lang_f_options): Remove huge-objects, vtable-thunks.
1928*c3d31fe1Smrg	Re-add vtable-gc.
1929*c3d31fe1Smrg	(unsupported_options): Correspondingly.
1930*c3d31fe1Smrg
1931*c3d31fe1Smrg	* decl2.c (maybe_make_one_only): Check flag_weak, not
1932*c3d31fe1Smrg	supports_one_only().
1933*c3d31fe1Smrg
1934*c3d31fe1Smrg	* cp-tree.def (START_CATCH_STMT): Lose.
1935*c3d31fe1Smrg	* dump.c (cp_dump_tree): Don't dump it.  Do dump HANDLER_PARMS.
1936*c3d31fe1Smrg	* tree.c (cp_statement_code_p): Don't case it.
1937*c3d31fe1Smrg	* semantics.c (cp_expand_stmt): Likewise.
1938*c3d31fe1Smrg	* cp-tree.h (START_CATCH_TYPE): Lose.
1939*c3d31fe1Smrg	(HANDLER_TYPE): New.
1940*c3d31fe1Smrg	* except.c (expand_start_catch_block): Don't start any blocks.
1941*c3d31fe1Smrg	Return the type.
1942*c3d31fe1Smrg	(expand_end_catch_block): Don't end any blocks.
1943*c3d31fe1Smrg	* parse.y (handler): Don't pass anything from finish_handler_parms
1944*c3d31fe1Smrg	to finish_handler.
1945*c3d31fe1Smrg	* pt.c (tsubst_expr): Likewise.
1946*c3d31fe1Smrg	* semantics.c (begin_handler): Call note_level_for_catch here.
1947*c3d31fe1Smrg	(finish_handler_parms): Don't return anything.
1948*c3d31fe1Smrg	(genrtl_catch_block, begin_catch_block): Lose.
1949*c3d31fe1Smrg	(genrtl_handler): Call expand_start_catch here.
1950*c3d31fe1Smrg
1951*c3d31fe1Smrg2001-05-18  Jason Merrill  <jason_merrill@redhat.com>
1952*c3d31fe1Smrg
1953*c3d31fe1Smrg	* class.c (build_vtable): Set DECL_ASSEMBLER_NAME for vtables here.
1954*c3d31fe1Smrg	(get_vtable_decl, build_vtt): Not here.
1955*c3d31fe1Smrg
1956*c3d31fe1Smrg2001-05-20  Nathan Sidwell  <nathan@codesourcery.com>
1957*c3d31fe1Smrg
1958*c3d31fe1Smrg	PR c++/2781
1959*c3d31fe1Smrg	* optimize.c (update_cloned_parm): Copy addressability and other
1960*c3d31fe1Smrg	flags.
1961*c3d31fe1Smrg
1962*c3d31fe1Smrg2001-05-20  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
1963*c3d31fe1Smrg
1964*c3d31fe1Smrg	* pt.c (determine_specialization): Ignore artificial functions.
1965*c3d31fe1Smrg
1966*c3d31fe1Smrg2001-05-20  Neil Booth  <neil@daikokuya.demon.co.uk>
1967*c3d31fe1Smrg
1968*c3d31fe1Smrg	* cp-tree.h (struct lang_identifier, C_RID_YYCODE): Update.
1969*c3d31fe1Smrg	(C_RID_CODE): Remove.
1970*c3d31fe1Smrg	* lex.c (cxx_init_options): Call set_identifier_size.  Update.
1971*c3d31fe1Smrg	(init_parse): Don't do it here.
1972*c3d31fe1Smrg
1973*c3d31fe1Smrg2001-05-18  Diego Novillo  <dnovillo@redhat.com>
1974*c3d31fe1Smrg
1975*c3d31fe1Smrg	* decl2.c (finish_objects): Use the original SYMBOL_REF from the
1976*c3d31fe1Smrg	function declaration to avoid stripping the symbol's attributes.
1977*c3d31fe1Smrg
1978*c3d31fe1Smrg2001-05-18  Nathan Sidwell  <nathan@codesourcery.com>
1979*c3d31fe1Smrg
1980*c3d31fe1Smrg	* decl.c (pushdecl): Adjust error string.
1981*c3d31fe1Smrg	(xref_tag): Adjust friend class injection warning. Remove the
1982*c3d31fe1Smrg	inherited name from the class shadowed scope.
1983*c3d31fe1Smrg
1984*c3d31fe1Smrg2001-05-17  Mark Mitchell  <mark@codesourcery.com>
1985*c3d31fe1Smrg
1986*c3d31fe1Smrg	* except.c (cp_protect_cleanup_actions): New function.
1987*c3d31fe1Smrg	(init_exception_processing): Don't set protect_cleanup_actions
1988*c3d31fe1Smrg	here.  Do set lang_protect_cleanup_actions.
1989*c3d31fe1Smrg
1990*c3d31fe1Smrg2001-05-16  Nathan Sidwell  <nathan@codesourcery.com>
1991*c3d31fe1Smrg
1992*c3d31fe1Smrg	* spew.c (read_token): Call yyerror on all unexpected tokens.
1993*c3d31fe1Smrg
1994*c3d31fe1Smrg2001-05-16  Nathan Sidwell  <nathan@codesourcery.com>
1995*c3d31fe1Smrg
1996*c3d31fe1Smrg	* init.c (member_init_ok_or_else): Take a tree rather than
1997*c3d31fe1Smrg	string for name.
1998*c3d31fe1Smrg	(expand_member_init): Adjust.
1999*c3d31fe1Smrg
2000*c3d31fe1Smrg2001-05-14  Nick Clifton  <nickc@cambridge.redhat.com>
2001*c3d31fe1Smrg
2002*c3d31fe1Smrg	* decl.c (duplicate_decls): Suppress warning about duplicate
2003*c3d31fe1Smrg	decls if the first decl is a friend.
2004*c3d31fe1Smrg
2005*c3d31fe1Smrg2001-05-12  Zack Weinberg  <zackw@stanford.edu>
2006*c3d31fe1Smrg
2007*c3d31fe1Smrg	* except.c (choose_personality_routine): Export.  Add
2008*c3d31fe1Smrg	explanatory comment.  Take an enum languages, not a boolean.
2009*c3d31fe1Smrg	(initialize_handler_parm): Adjust to match.
2010*c3d31fe1Smrg	* cp-tree.h: Prototype choose_personality_routine.
2011*c3d31fe1Smrg	* lex.c (handle_pragma_java_exceptions): New function.
2012*c3d31fe1Smrg	(init_cp_pragma): Register #pragma GCC java_exceptions.
2013*c3d31fe1Smrg
2014*c3d31fe1Smrg2001-05-12  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
2015*c3d31fe1Smrg
2016*c3d31fe1Smrg	* method.c (build_mangled_C99_name): Remove unused prototype.
2017*c3d31fe1Smrg
2018*c3d31fe1Smrg2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
2019*c3d31fe1Smrg
2020*c3d31fe1Smrg	* cp-tree.h (ptrmemfunc_vbit_where_t): Declare type.
2021*c3d31fe1Smrg	* typeck.c (get_member_function_from_ptrfunc,
2022*c3d31fe1Smrg	build_ptrmemfunc, expand_ptrmemfunc_cst): Take
2023*c3d31fe1Smrg	TARGET_PTRMEMFUNC_VBIT_LOCATION into account.
2024*c3d31fe1Smrg
2025*c3d31fe1Smrg	Reverted Geoff Keating's 2001-05-03's patch.
2026*c3d31fe1Smrg
2027*c3d31fe1Smrg2001-05-11  Ira Ruben	<ira@apple.com>
2028*c3d31fe1Smrg
2029*c3d31fe1Smrg	* cp/cp-tree.h (C_EXP_ORIGINAL_CODE): Delete; declared in c-common.h.
2030*c3d31fe1Smrg
2031*c3d31fe1Smrg2001-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
2032*c3d31fe1Smrg
2033*c3d31fe1Smrg	* cp-tree.h (finish_label_expr, lookup_label): Delete.
2034*c3d31fe1Smrg	* parse.y: Update for '&&'; don't issue warning here.
2035*c3d31fe1Smrg	* semantics.c (finish_label_expr): Delete.
2036*c3d31fe1Smrg
2037*c3d31fe1Smrg2001-05-07  Mark Mitchell  <mark@codesourcery.com>
2038*c3d31fe1Smrg
2039*c3d31fe1Smrg	* splay-tree.h (splay_tree_max): New function.
2040*c3d31fe1Smrg	(splay_tree_min): Likewise.
2041*c3d31fe1Smrg
2042*c3d31fe1Smrg2001-05-03  Geoffrey Keating  <geoffk@redhat.com>
2043*c3d31fe1Smrg
2044*c3d31fe1Smrg	* cp-tree.h (enum cp_tree_index): Add CPTI_PFN_VFLAG_IDENTIFIER.
2045*c3d31fe1Smrg	(pfn_vflag_identifier): Define.
2046*c3d31fe1Smrg	Update comment about layout of pointer functions.
2047*c3d31fe1Smrg	(build_ptrmemfunc1): Update prototype.
2048*c3d31fe1Smrg	(expand_ptrmemfunc_cst): Update prototype.
2049*c3d31fe1Smrg	* decl.c (initialize_predefined_identifiers): Initialize
2050*c3d31fe1Smrg	pfn_vflag_identifier.
2051*c3d31fe1Smrg	(build_ptrmemfunc_type): When FUNCTION_BOUNDARY < 16, add
2052*c3d31fe1Smrg	an extra field to the type.
2053*c3d31fe1Smrg	* expr.c (cplus_expand_constant): Pass 'flag' between
2054*c3d31fe1Smrg	expand_ptrmemfunc_cst and build_ptrmemfunc1.
2055*c3d31fe1Smrg	* typeck.c (get_member_function_from_ptrfunc): When
2056*c3d31fe1Smrg	FUNCTION_BOUNDARY < 16, look at additional field to determine
2057*c3d31fe1Smrg	if a pointer-to-member is a real pointer or a vtable offset.
2058*c3d31fe1Smrg	(build_ptrmemfunc1): Add new parameter to contain extra field.
2059*c3d31fe1Smrg	(build_ptrmemfunc): Pass the extra field around.
2060*c3d31fe1Smrg	(expand_ptrmemfunc_cst): Add new parameter to return extra field.
2061*c3d31fe1Smrg	(pfn_from_ptrmemfunc): Ignore the extra field.
2062*c3d31fe1Smrg
2063*c3d31fe1Smrg2001-05-03  Mark Mitchell  <mark@codesourcery.com>
2064*c3d31fe1Smrg
2065*c3d31fe1Smrg	* cp-tree.h (flag_inline_trees): Update documentation.
2066*c3d31fe1Smrg	* decl.c (init_decl_processing): Adjust handling of
2067*c3d31fe1Smrg	flag_inline_functions and flag_inline_trees to support -O3.
2068*c3d31fe1Smrg	(grokfndecl): Set DECL_INLINE on all functions if that's what
2069*c3d31fe1Smrg	the user requested.
2070*c3d31fe1Smrg	(save_function_data): Clear DECL_INLINE in
2071*c3d31fe1Smrg	current_function_cannot_inline is non-NULL.
2072*c3d31fe1Smrg	* decl2.c (flag_inline_trees): Update documentation.
2073*c3d31fe1Smrg
2074*c3d31fe1Smrg2001-05-03  Nathan Sidwell  <nathan@codesourcery.com>
2075*c3d31fe1Smrg
2076*c3d31fe1Smrg	* dump.c (cp_dump_tree, USING_STMT case): New case.
2077*c3d31fe1Smrg	* tree.c (cp_statement_code_p): Add USING_STMT.
2078*c3d31fe1Smrg	* decl2.c (do_using_directive): Add the using directive statement.
2079*c3d31fe1Smrg
2080*c3d31fe1Smrg	* tree.c (walk_tree): Reformat an if block.
2081*c3d31fe1Smrg
2082*c3d31fe1Smrg2001-05-02  Mark Mitchell  <mark@codesourcery.com>
2083*c3d31fe1Smrg
2084*c3d31fe1Smrg	* decl.c (compute_array_index_type): Don't try to do anything with
2085*c3d31fe1Smrg	the indices when processing a template.
2086*c3d31fe1Smrg
2087*c3d31fe1Smrg2001-05-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2088*c3d31fe1Smrg
2089*c3d31fe1Smrg	* call.c: NULL_PTR -> NULL.
2090*c3d31fe1Smrg	* class.c: Likewise.
2091*c3d31fe1Smrg	* cvt.c: Likewise.
2092*c3d31fe1Smrg	* decl.c: Likewise.
2093*c3d31fe1Smrg	* decl2.c: Likewise.
2094*c3d31fe1Smrg	* except.c: Likewise.
2095*c3d31fe1Smrg	* init.c: Likewise.
2096*c3d31fe1Smrg	* rtti.c: Likewise.
2097*c3d31fe1Smrg	* search.c: Likewise.
2098*c3d31fe1Smrg	* tree.c: Likewise.
2099*c3d31fe1Smrg	* typeck.c: Likewise.
2100*c3d31fe1Smrg	* typeck2.c: Likewise.
2101*c3d31fe1Smrg
2102*c3d31fe1Smrg2001-05-02  Mark Mitchell  <mark@codesourcery.com>
2103*c3d31fe1Smrg
2104*c3d31fe1Smrg	* decl2.c (do_using_directive): Revert previous patch.
2105*c3d31fe1Smrg
2106*c3d31fe1Smrg2001-05-01  Nathan Sidwell  <nathan@codesourcery.com>
2107*c3d31fe1Smrg
2108*c3d31fe1Smrg	* cp-tree.def (USING_STMT): New statement node.
2109*c3d31fe1Smrg	* cp-tree.h (USING_STMT_NAMESPACE): New macro.
2110*c3d31fe1Smrg	* decl2.c (do_using_directive): Add USING_STMT to statement
2111*c3d31fe1Smrg	tree. Don't emit errors when processing template decl.
2112*c3d31fe1Smrg	* pt.c (tsubst_expr, USING_STMT case): New case.
2113*c3d31fe1Smrg	* semantics.c (cp_expand_stmt, USING_STMT case): New case.
2114*c3d31fe1Smrg
2115*c3d31fe1Smrg2001-05-01  Nathan Sidwell  <nathan@codesourcery.com>
2116*c3d31fe1Smrg
2117*c3d31fe1Smrg	* call.c (build_new_op): Convert args from reference here.
2118*c3d31fe1Smrg	(build_conditional_expr): Don't convert here.
2119*c3d31fe1Smrg
2120*c3d31fe1Smrg2001-05-01  Nathan Sidwell  <nathan@codesourcery.com>
2121*c3d31fe1Smrg
2122*c3d31fe1Smrg	* spew.c (last_token_id): New static variable.
2123*c3d31fe1Smrg	(read_token): Set it here.
2124*c3d31fe1Smrg	(yyerror): Use it here.
2125*c3d31fe1Smrg
2126*c3d31fe1Smrg2001-04-30  Richard Henderson  <rth@redhat.com>
2127*c3d31fe1Smrg
2128*c3d31fe1Smrg	* cvt.c: Downcase C_PROMOTING_INTEGER_TYPE_P invocations.
2129*c3d31fe1Smrg	* decl.c: Likewise.
2130*c3d31fe1Smrg
2131*c3d31fe1Smrg2001-04-30  Mark Mitchell  <mark@codesourcery.com>
2132*c3d31fe1Smrg
2133*c3d31fe1Smrg	* gxxint.texi: Remove.
2134*c3d31fe1Smrg	* Make-lang.in: Remove all traces of gxxint.texi.
2135*c3d31fe1Smrg
2136*c3d31fe1Smrg2001-04-30  Mark P Mitchell  <mark@codesourcery.com>
2137*c3d31fe1Smrg
2138*c3d31fe1Smrg	* decl2.c (start_static_initialization_or_destruction): Correct
2139*c3d31fe1Smrg	logic to handle the -fno-use-cxa-atexit case.
2140*c3d31fe1Smrg
2141*c3d31fe1Smrg2001-04-30  Mark Mitchell  <mark@codesourcery.com>
2142*c3d31fe1Smrg
2143*c3d31fe1Smrg	* optimize.c (update_cloned_parm): New function.
2144*c3d31fe1Smrg	(maybe_clone_body): Use it.  Update the `this' parameter too.
2145*c3d31fe1Smrg
2146*c3d31fe1Smrg2001-04-29  Joseph S. Myers  <jsm28@cam.ac.uk>
2147*c3d31fe1Smrg
2148*c3d31fe1Smrg	* decl2.c (unsupported_options): Add new-abi.
2149*c3d31fe1Smrg	* lang-options.h: Remove no longer supported options.
2150*c3d31fe1Smrg
2151*c3d31fe1Smrg2001-04-27  Nathan Sidwell  <nathan@codesourcery.com>
2152*c3d31fe1Smrg
2153*c3d31fe1Smrg	* except.c (can_convert_eh): Don't check template parms,
2154*c3d31fe1Smrg	typename types etc.
2155*c3d31fe1Smrg
2156*c3d31fe1Smrg2001-04-27  Nathan Sidwell  <nathan@codesourcery.com>
2157*c3d31fe1Smrg
2158*c3d31fe1Smrg	* optimize.c (maybe_clone_body): Copy parameter names and locations.
2159*c3d31fe1Smrg
2160*c3d31fe1Smrg2001-04-27  Nathan Sidwell  <nathan@codesourcery.com>
2161*c3d31fe1Smrg
2162*c3d31fe1Smrg	* cp-tree.h (adjust_clone_args): Prototype new function.
2163*c3d31fe1Smrg	* class.c (adjust_clone_args): New function.
2164*c3d31fe1Smrg	* decl.c (start_function): Call it for in charge ctors.
2165*c3d31fe1Smrg
2166*c3d31fe1Smrg2001-04-26  Mark Mitchell  <mark@codesourcery.com>
2167*c3d31fe1Smrg
2168*c3d31fe1Smrg	* method.c (use_thunk): Make sure that thunks really are emitted
2169*c3d31fe1Smrg	when requested.
2170*c3d31fe1Smrg
2171*c3d31fe1Smrg2001-04-26  Nathan Sidwell <nathan@codesourcery.com>
2172*c3d31fe1Smrg
2173*c3d31fe1Smrg	* mangle.c (write_chars): New macro.
2174*c3d31fe1Smrg	(hwint_to_ascii): New function
2175*c3d31fe1Smrg	(write_number): Use it.
2176*c3d31fe1Smrg	(write_integer_cst): Deal with really big numbers.
2177*c3d31fe1Smrg
2178*c3d31fe1Smrg2001-04-25  Mark Mitchell  <mark@codesourcery.com>
2179*c3d31fe1Smrg
2180*c3d31fe1Smrg	* optimize.c (maybe_clone_body): Copy TREE_PUBLIC before emitting
2181*c3d31fe1Smrg	the clone.
2182*c3d31fe1Smrg
2183*c3d31fe1Smrg2001-04-25  Nathan Sidwell  <nathan@codesourcery.com>
2184*c3d31fe1Smrg
2185*c3d31fe1Smrg	* decl.c (grokdeclarator): Set context of namespace scope
2186*c3d31fe1Smrg	TYPE_DECLS.
2187*c3d31fe1Smrg
2188*c3d31fe1Smrg2001-04-24  Zack Weinberg  <zackw@stanford.edu>
2189*c3d31fe1Smrg
2190*c3d31fe1Smrg	* cp/optimize.c: Include hashtab.h.
2191*c3d31fe1Smrg	(struct inline_data): Add tree_pruner.
2192*c3d31fe1Smrg	(expand_call_inline, expand_calls_inline): Use it when calling
2193*c3d31fe1Smrg	walk_tree.
2194*c3d31fe1Smrg	(optimize_function): Initialize and free tree_pruner.
2195*c3d31fe1Smrg
2196*c3d31fe1Smrg2001-04-24  Nathan Sidwell <nathan@codesourcery.com>
2197*c3d31fe1Smrg
2198*c3d31fe1Smrg	Lazy __FUNCTION__ generation.
2199*c3d31fe1Smrg	* cp-tree.def (FUNCTION_NAME): Remove.
2200*c3d31fe1Smrg	* cp-tree.h (function_name_declared_p): Remove.
2201*c3d31fe1Smrg	(cp_fname_init): Prototype.
2202*c3d31fe1Smrg	* decl.c (init_decl_processing): Don't generate __FUNCTION__ et al ids,
2203*c3d31fe1Smrg	don't call declare_function_name. Call start_fname_decls.
2204*c3d31fe1Smrg	(cp_make_fname_decl): Adjust parameters. Generate the name. Don't
2205*c3d31fe1Smrg	clobber the line number.
2206*c3d31fe1Smrg	(cp_fname_init): New function.
2207*c3d31fe1Smrg	(start_function): Call start_fname_decls.
2208*c3d31fe1Smrg	(finish_function): Call finish_fname_decls.
2209*c3d31fe1Smrg	* lex.c (reswords): Add slots for __FUNCTION__ et al.
2210*c3d31fe1Smrg	(rid_to_yy): Add mappings for __FUNCTION__ et al.
2211*c3d31fe1Smrg	* optimize.c (maybe_clone_body): Remove function_name_declared_p.
2212*c3d31fe1Smrg	* parse.y (VAR_FUNC_NAME): New token.
2213*c3d31fe1Smrg	(primary): Add VAR_FUNC_NAME.
2214*c3d31fe1Smrg	* pt.c (tsubst_decl): Adjust a DECL_PRETTY_FUNCTION_P's
2215*c3d31fe1Smrg	generation.
2216*c3d31fe1Smrg	(tsubst, FUNCTION_NAME case): Remove.
2217*c3d31fe1Smrg	(tsubst_copy, FUNCTION_NAME case): Remove.
2218*c3d31fe1Smrg	(tsubst_expr, DECL_STMT case): Be careful with a
2219*c3d31fe1Smrg	DECL_PRETTY_FUNCTION_P.
2220*c3d31fe1Smrg	(instantiate_decl): Remove function_name_declared_p.
2221*c3d31fe1Smrg	* semantics.c (begin_compound_statement): Don't call
2222*c3d31fe1Smrg	declare_function_name here.
2223*c3d31fe1Smrg	(setup_vtbl_ptr). Don't save & restore function_name_declared_p.
2224*c3d31fe1Smrg	(finish_translation_unit): Call finish_fname_decls.
2225*c3d31fe1Smrg	(expand_body): Remove function_name_declared_p.
2226*c3d31fe1Smrg	* typeck2.c (digest_init): Allow any ERROR_MARK.
2227*c3d31fe1Smrg
2228*c3d31fe1Smrg2001-04-24  Nathan Sidwell  <nathan@codesourcery.com>
2229*c3d31fe1Smrg
2230*c3d31fe1Smrg	* pt.c (tsubst_decl): Use VOID_TYPE_P.
2231*c3d31fe1Smrg	* semantics.c: Fix some typos.
2232*c3d31fe1Smrg
2233*c3d31fe1Smrg2001-04-23  Phil Edwards  <pme@sources.redhat.com>
2234*c3d31fe1Smrg
2235*c3d31fe1Smrg	* cp/decl2.c (flag_honor_std):  Always initialize to 1.
2236*c3d31fe1Smrg
2237*c3d31fe1Smrg2001-04-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2238*c3d31fe1Smrg
2239*c3d31fe1Smrg	* xref.c (GNU_xref_file): Use concat in lieu of xmalloc/sprintf.
2240*c3d31fe1Smrg
2241*c3d31fe1Smrg2001-04-23  Jason Merrill  <jason_merrill@redhat.com>
2242*c3d31fe1Smrg
2243*c3d31fe1Smrg	* except.c (build_throw): Wrap the initialization of the exception
2244*c3d31fe1Smrg	object in a MUST_NOT_THROW_EXPR.
2245*c3d31fe1Smrg	(do_free_exception): #if 0.
2246*c3d31fe1Smrg
2247*c3d31fe1Smrg2001-04-20  Mark Mitchell  <mark@codesourcery.com>
2248*c3d31fe1Smrg
2249*c3d31fe1Smrg	* cp-tree.h (finish_enum): Change prototype.
2250*c3d31fe1Smrg	* decl.c (finish_enum): Reorganize.
2251*c3d31fe1Smrg	* parse.y (structsp): Adjust calls to finish_enum.
2252*c3d31fe1Smrg
2253*c3d31fe1Smrg2001-04-20  Nathan Sidwell  <nathan@codesourcery.com>
2254*c3d31fe1Smrg
2255*c3d31fe1Smrg	* tree.c (cp_tree_equal): Adjust final switch formatting. Add
2256*c3d31fe1Smrg	't' case.
2257*c3d31fe1Smrg
2258*c3d31fe1Smrg2001-04-20  Nathan Sidwell  <nathan@codesourcery.com>
2259*c3d31fe1Smrg
2260*c3d31fe1Smrg	* class.c (dfs_unshared_virtual_bases): Add ATTRIBUTE_UNUSED.
2261*c3d31fe1Smrg	(layout_empty_base): Return at end flag.
2262*c3d31fe1Smrg	(build_base_field): Likewise.
2263*c3d31fe1Smrg	(build_base_fields): Likewise.
2264*c3d31fe1Smrg	(layout_virtual_bases): Don't add 1 to eoc value.
2265*c3d31fe1Smrg	(end_of_class): Use full size for empty bases.
2266*c3d31fe1Smrg	(layout_class_type): Clear CLASSNEARLY_EMPTY_P if we appended
2267*c3d31fe1Smrg	empty bases. Don't add 1 to eoc value. Only add trailing padding
2268*c3d31fe1Smrg	if we're an empty class with no empty bases.
2269*c3d31fe1Smrg	(dump_class_hierarchy): Dump size and alignment.
2270*c3d31fe1Smrg
2271*c3d31fe1Smrg2001-04-20  Jakub Jelinek  <jakub@redhat.com>
2272*c3d31fe1Smrg
2273*c3d31fe1Smrg	* call.c (maybe_handle_ref_bind): Copy ICS_USER_FLAG and
2274*c3d31fe1Smrg	ICS_BAD_FLAG.
2275*c3d31fe1Smrg
2276*c3d31fe1Smrg2001-04-20  Jakub Jelinek  <jakub@redhat.com>
2277*c3d31fe1Smrg
2278*c3d31fe1Smrg	* search.c (lookup_field_r): If looking for type and non-TYPE_DECL
2279*c3d31fe1Smrg	is found, look first if name does not match the structure name.
2280*c3d31fe1Smrg
2281*c3d31fe1Smrg2001-04-19  Mark Mitchell  <mark@codesourcery.com>
2282*c3d31fe1Smrg
2283*c3d31fe1Smrg	* cp-tree.h (DECL_LANGUAGE): Don't assume DECL_LANG_SPECIFIC is
2284*c3d31fe1Smrg	set.
2285*c3d31fe1Smrg	(SET_DECL_LANGUAGE): New macro.
2286*c3d31fe1Smrg	* decl.c (duplicate_decls): Use SET_DECL_LANGUAGE.
2287*c3d31fe1Smrg	(pushdecl): Likewise.
2288*c3d31fe1Smrg	(build_library_fn_1): Likewise.
2289*c3d31fe1Smrg	(build_cp_library_fn): Likewise.
2290*c3d31fe1Smrg	(grokfndecl): Likewise.
2291*c3d31fe1Smrg	(grokvardecl): Mark `extern "C"' variables as having C linkage.
2292*c3d31fe1Smrg	* decl2.c (grokclassfn): Use SET_DECL_LANGUAGE.
2293*c3d31fe1Smrg	* lex.c (retrofit_lang_decl): Likewise.
2294*c3d31fe1Smrg	* mangle.c (mangle_decl_string): Don't mangle the names of
2295*c3d31fe1Smrg	variables declared with C language linkage.
2296*c3d31fe1Smrg	* semantics.c (finish_member_declaration): Use SET_DECL_LANGUAGE.
2297*c3d31fe1Smrg
2298*c3d31fe1Smrg2001-04-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2299*c3d31fe1Smrg
2300*c3d31fe1Smrg	* semantics.c (simplify_aggr_init_exprs_r): Don't restore
2301*c3d31fe1Smrg	flag_access_control from uninitialized storage.
2302*c3d31fe1Smrg
2303*c3d31fe1Smrg2001-04-15  Mark Mitchell  <mark@codesourcery.com>
2304*c3d31fe1Smrg
2305*c3d31fe1Smrg	* cp-tree.h (TYPE_PTRMEM_CLASS_TYPE): Improve documentation.
2306*c3d31fe1Smrg	* mangle.c (write_pointer_to_member_type): Fix mangling of
2307*c3d31fe1Smrg	pointers to cv-qualified member function types.
2308*c3d31fe1Smrg
2309*c3d31fe1Smrg	* init.c (build_delete): Create a SAVE_EXPR for the address if
2310*c3d31fe1Smrg	we're going to use it more than once.
2311*c3d31fe1Smrg
2312*c3d31fe1Smrg2001-04-13  Mark Mitchell  <mark@codesourcery.com>
2313*c3d31fe1Smrg
2314*c3d31fe1Smrg	* cp-tree.h (DELTA2_FROM_PTRMEMFUNC): Remove.
2315*c3d31fe1Smrg	(expand_ptremfunc_cst): Change prototype.
2316*c3d31fe1Smrg	(delta2_from_ptrmemfunc): Remove.
2317*c3d31fe1Smrg	* expr.c (cplus_expand_constant): Adjust call to
2318*c3d31fe1Smrg	expand_ptrmemfunc_cst.
2319*c3d31fe1Smrg	* typeck.c (build_ptrmemfunc1): Simplify.
2320*c3d31fe1Smrg	(build_ptrmemfunc): Make sure that casting a PTRMEM_CST still
2321*c3d31fe1Smrg	results in a constant.
2322*c3d31fe1Smrg	(expand_ptrmemfunc_cst): Remove idx and delta2 parameters.
2323*c3d31fe1Smrg	(delta2_from_ptrmemfunc): Remove.
2324*c3d31fe1Smrg	(pfn_from_ptrmemfunc): Adjust call to expand_ptrmemfunc_cst.
2325*c3d31fe1Smrg
2326*c3d31fe1Smrg2001-04-12  Jason Merrill  <jason_merrill@redhat.com>
2327*c3d31fe1Smrg
2328*c3d31fe1Smrg	* cp-tree.h (decl_namespace_list): New macro.
2329*c3d31fe1Smrg	(struct saved_scope): Add decl_ns_list.
2330*c3d31fe1Smrg	* decl.c (mark_saved_scope): Mark it.
2331*c3d31fe1Smrg	* decl2.c: Lose static decl_namespace_list.
2332*c3d31fe1Smrg	(init_decl2): Don't save it.
2333*c3d31fe1Smrg
2334*c3d31fe1Smrg2001-04-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2335*c3d31fe1Smrg
2336*c3d31fe1Smrg	* cp-tree.h (warn_return_type, yylex): Delete redundant
2337*c3d31fe1Smrg	declarations.
2338*c3d31fe1Smrg
2339*c3d31fe1Smrg	* decl.c (current_class_depth, global_namespace): Likewise.
2340*c3d31fe1Smrg
2341*c3d31fe1Smrg	* decl2.c (current_class_depth, flag_gnu_xref): Likewise
2342*c3d31fe1Smrg
2343*c3d31fe1Smrg	* repo.c (flag_use_repository): Likewise.
2344*c3d31fe1Smrg
2345*c3d31fe1Smrg2001-04-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2346*c3d31fe1Smrg
2347*c3d31fe1Smrg	* cp-tree.h (pedantic, convert, global_bindings_p, insert_block,
2348*c3d31fe1Smrg	set_block, pushdecl, getdecls, gettags, init_decl_processing,
2349*c3d31fe1Smrg	maybe_build_cleanup, copy_lang_decl, prep_stmt, lvalue_p,
2350*c3d31fe1Smrg	lvalue_or_else, print_lang_statistics, comp_target_types,
2351*c3d31fe1Smrg	unsigned_type, signed_type, signed_or_unsigned_type,
2352*c3d31fe1Smrg	build_function_call, mark_addressable, incomplete_type_error):
2353*c3d31fe1Smrg	Delete redundant declarations.
2354*c3d31fe1Smrg
2355*c3d31fe1Smrg2001-04-11  Jason Merrill  <jason_merrill@redhat.com>
2356*c3d31fe1Smrg
2357*c3d31fe1Smrg	* cp-tree.h (TYPE_LINKAGE_IDENTIFIER): New macro.
2358*c3d31fe1Smrg	(TYPE_ANONYMOUS_P): New macro.
2359*c3d31fe1Smrg	(TAGGED_TYPE_P): New macro.
2360*c3d31fe1Smrg	* decl.c (check_tag_decl): Use TYPE_ANONYMOUS_P.
2361*c3d31fe1Smrg	(grokfndecl, grokvardecl, grokdeclarator): Likewise.
2362*c3d31fe1Smrg	* tree.c (no_linkage_helper): Likewise.
2363*c3d31fe1Smrg	* semantics.c (begin_class_definition): Likewise.
2364*c3d31fe1Smrg	* pt.c (convert_template_argument): Likewise.
2365*c3d31fe1Smrg	* lex.c (check_for_missing_semicolon): Likewise.
2366*c3d31fe1Smrg
2367*c3d31fe1Smrg2001-04-12  Nathan Sidwell  <nathan@codesourcery.com>
2368*c3d31fe1Smrg
2369*c3d31fe1Smrg	* class.c (dfs_unshared_virtual_bases): New function.
2370*c3d31fe1Smrg	(mark_primary_bases): Call it.
2371*c3d31fe1Smrg	(check_bases): Ignore virtual bases when determining
2372*c3d31fe1Smrg	nearly-emptiness.
2373*c3d31fe1Smrg
2374*c3d31fe1Smrg2001-04-12  Nathan Sidwell  <nathan@codesourcery.com>
2375*c3d31fe1Smrg
2376*c3d31fe1Smrg	* method.c (make_thunk): Clear DECL_CLONED_FUNCTION.
2377*c3d31fe1Smrg
2378*c3d31fe1Smrg2001-04-11  Mark Mitchell  <mark@codesourcery.com>
2379*c3d31fe1Smrg
2380*c3d31fe1Smrg	* optimize.c (maybe_clone_body): Copy DECL_NUM_STMTS from the
2381*c3d31fe1Smrg	cloned function to the clone.
2382*c3d31fe1Smrg
2383*c3d31fe1Smrg2001-04-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2384*c3d31fe1Smrg
2385*c3d31fe1Smrg	* Make-lang.in (cp/semantics.o): Depend on $(EXPR_H).
2386*c3d31fe1Smrg
2387*c3d31fe1Smrg	* semantics.c: Include expr.h.
2388*c3d31fe1Smrg
2389*c3d31fe1Smrg2001-04-11  Nathan Sidwell  <nathan@codesourcery.com>
2390*c3d31fe1Smrg
2391*c3d31fe1Smrg	* method.c (implicitly_declare_fn): Commonize code for copy ctor
2392*c3d31fe1Smrg	and assignment op. Set TREE_USED for parameter.
2393*c3d31fe1Smrg
2394*c3d31fe1Smrg2001-04-10  Mark Mitchell  <mark@codesourcery.com>
2395*c3d31fe1Smrg
2396*c3d31fe1Smrg	* class.c (find_final_overrider_data): Add `candidates'.
2397*c3d31fe1Smrg	(dfs_find_final_overrider): Don't issue error messages
2398*c3d31fe1Smrg	prematurely.
2399*c3d31fe1Smrg	(find_final_overrider): Issue error messages here.
2400*c3d31fe1Smrg	(build_base_field): Don't warn about amgibuous direct bases here.
2401*c3d31fe1Smrg	(warn_about_ambiguous_direct_bases): New function.
2402*c3d31fe1Smrg	(layout_class_type): Use it.
2403*c3d31fe1Smrg
2404*c3d31fe1Smrg2001-04-10  Richard Henderson  <rth@redhat.com>
2405*c3d31fe1Smrg
2406*c3d31fe1Smrg	* typeck.c (build_array_ref): Push the array reference inside
2407*c3d31fe1Smrg	COMPOUND_EXPR and COND_EXPR.
2408*c3d31fe1Smrg
2409*c3d31fe1Smrg2001-04-05  Mark Mitchell  <mark@codesourcery.com>
2410*c3d31fe1Smrg
2411*c3d31fe1Smrg	* cp-tree.h (DECL_THIS_INLINE): Rename to DECL_DECLARED_INLINE_P.
2412*c3d31fe1Smrg	* decl.c (duplicate_decls): Adjust accordingly.
2413*c3d31fe1Smrg	(maybe_commonize_var): Likewise.
2414*c3d31fe1Smrg	(grokfndecl): Likewise.
2415*c3d31fe1Smrg	(start_function): Likewise.
2416*c3d31fe1Smrg	(start_method): Likewise.
2417*c3d31fe1Smrg	* decl2.c (key_method): Likewise.
2418*c3d31fe1Smrg	(import_export_decl): Likewise.
2419*c3d31fe1Smrg	* method.c (implicitly_declare_fn): Likewise.
2420*c3d31fe1Smrg	* optimize.c (maybe_clone_body): Likewise.
2421*c3d31fe1Smrg
2422*c3d31fe1Smrg2001-04-05  Benjamin Kosnik  <bkoz@redhat.com>
2423*c3d31fe1Smrg
2424*c3d31fe1Smrg	* lang-specs.h: Add __DEPRECATED.
2425*c3d31fe1Smrg
2426*c3d31fe1Smrg2001-04-05  J"orn Rennecke <amylaar@redhat.com>
2427*c3d31fe1Smrg
2428*c3d31fe1Smrg	* search.c (get_dynamic_cast_base_type): When building a new
2429*c3d31fe1Smrg	constant, set its type to ssizetype.
2430*c3d31fe1Smrg
2431*c3d31fe1Smrg2001-04-04  Jakub Jelinek  <jakub@redhat.com>
2432*c3d31fe1Smrg
2433*c3d31fe1Smrg	* optimize.c (expand_call_inline): Only add newly inlined statements
2434*c3d31fe1Smrg	into inlined_stmts.
2435*c3d31fe1Smrg
2436*c3d31fe1Smrg2001-04-03  Mark Mitchell  <mark@codesourcery.com>
2437*c3d31fe1Smrg
2438*c3d31fe1Smrg	* cp-tree.h (OPERATOR_ASSIGN_FORMAT): Remove.
2439*c3d31fe1Smrg	(OPERATOR_FORMAT): Likewise.
2440*c3d31fe1Smrg	(OPERATOR_TYPENAME_FORMAT): Likewise.
2441*c3d31fe1Smrg	* operators.def: Remove old name-mangling information.
2442*c3d31fe1Smrg	* decl.c (grok_op_properties): Adjust accordingly.
2443*c3d31fe1Smrg	* lex.c (init_operators): Likewise.
2444*c3d31fe1Smrg	* rtti.c (get_tinfo_decl): Issue error messages about types that
2445*c3d31fe1Smrg	have variable size.
2446*c3d31fe1Smrg
2447*c3d31fe1Smrg2001-04-03  Mark Mitchell  <mark@codesourcery.com>
2448*c3d31fe1Smrg
2449*c3d31fe1Smrg	* decl2.c (import_export_decl): Don't call import_export_class
2450*c3d31fe1Smrg	when processing an inline member function.
2451*c3d31fe1Smrg	* semantics.c (expand_body): Call import_export_decl before
2452*c3d31fe1Smrg	emitting inline functions.
2453*c3d31fe1Smrg
2454*c3d31fe1Smrg2001-03-28  Richard Henderson  <rth@redhat.com>
2455*c3d31fe1Smrg
2456*c3d31fe1Smrg	IA-64 ABI Exception Handling:
2457*c3d31fe1Smrg	* cp-tree.def (EH_SPEC_BLOCK): New.
2458*c3d31fe1Smrg	(MUST_NOT_THROW_EXPR): New.
2459*c3d31fe1Smrg	* cp-tree.h: Update changed function declarations.
2460*c3d31fe1Smrg	(CPTI_PUSH_EXCEPTION_IDENTIFIER): Remove.
2461*c3d31fe1Smrg	(CPTI_CALL_UNEXPECTED): New.
2462*c3d31fe1Smrg	(struct cp_language_function): Rename x_eh_spec_try_block
2463*c3d31fe1Smrg	to x_eh_spec_block.
2464*c3d31fe1Smrg	(EH_SPEC_STMTS, EH_SPEC_RAISES): New.
2465*c3d31fe1Smrg	* decl.c (current_binding_level): If no current function
2466*c3d31fe1Smrg	bindings, revert to scope_chain.
2467*c3d31fe1Smrg	(initialize_predefined_identifiers): Remove __cp_push_exception.
2468*c3d31fe1Smrg	(store_parm_decls): Use begin_eh_spec_block.
2469*c3d31fe1Smrg	(finish_function): Use finish_eh_spec_block.
2470*c3d31fe1Smrg	(mark_lang_function): Update for name changes.
2471*c3d31fe1Smrg	* decl2.c (finish_file): No mark_all_runtime_matches.
2472*c3d31fe1Smrg	* dump.c (cp_dump_tree): Handle new tree codes.
2473*c3d31fe1Smrg	* error.c (dump_expr) [BIND_EXPR]: Fix typo.
2474*c3d31fe1Smrg	* except.c (catch_language_init, catch_language): Remove.
2475*c3d31fe1Smrg	(init_exception_processing): Don't set language code.
2476*c3d31fe1Smrg	Initialize call_unexpected_node, protect_cleanup_actions,
2477*c3d31fe1Smrg	eh_personality_libfunc, lang_eh_runtime_type.
2478*c3d31fe1Smrg	(call_eh_info, push_eh_info, get_eh_info, get_eh_value): Remove.
2479*c3d31fe1Smrg	(get_eh_type, get_eh_caught, get_eh_handlers): Remove.
2480*c3d31fe1Smrg	(prepare_eh_type): Split out type canonicalizations ...
2481*c3d31fe1Smrg	(build_eh_type_type): ... from here.
2482*c3d31fe1Smrg	(build_eh_type_type_ref): Remove.
2483*c3d31fe1Smrg	(mark_all_runtime_matches): Remove.
2484*c3d31fe1Smrg	(build_exc_ptr): New.
2485*c3d31fe1Smrg	(do_begin_catch, do_end_catch): New.
2486*c3d31fe1Smrg	(do_pop_exception): Remove.
2487*c3d31fe1Smrg	(build_terminate_handler): Remove.
2488*c3d31fe1Smrg	(choose_personality_routine): Split out language choice from ...
2489*c3d31fe1Smrg	(initialize_handler_parm): ... here.
2490*c3d31fe1Smrg	Use MUST_NOT_THROW_EXPR.
2491*c3d31fe1Smrg	(expand_start_catch_block): Use do_begin_catch.  Simplify Java
2492*c3d31fe1Smrg	exception object handling.
2493*c3d31fe1Smrg	(expand_start_eh_spec, expand_end_eh_spec): Remove.
2494*c3d31fe1Smrg	(expand_exception_blocks, alloc_eh_object): Remove.
2495*c3d31fe1Smrg	(begin_eh_spec_block, finish_eh_spec_block): New.
2496*c3d31fe1Smrg	(do_allocate_exception, do_free_exception): New.
2497*c3d31fe1Smrg	(expand_throw): Merge into ...
2498*c3d31fe1Smrg	(build_throw): ... here.  Update for abi.
2499*c3d31fe1Smrg	* expr.c (cplus_expand_expr): No expand_internal_throw.
2500*c3d31fe1Smrg	Handle MUST_NOT_THROW_EXPR.
2501*c3d31fe1Smrg	* pt.c (tsubst_expr): Handle EH_SPEC_BLOCK.
2502*c3d31fe1Smrg	* semantics.c (*) Update for except.h name changes.
2503*c3d31fe1Smrg	(genrtl_try_block): No protect_with_terminate.
2504*c3d31fe1Smrg	(genrtl_eh_spec_block): New.
2505*c3d31fe1Smrg	(genrtl_handler): Don't emit the goto here.
2506*c3d31fe1Smrg	(cp_expand_stmt): Handle EH_SPEC_BLOCK.
2507*c3d31fe1Smrg	(genrtl_finish_function): Don't expand_exception_blocks.
2508*c3d31fe1Smrg	* tree.c (cp_statement_code_p): Handle EH_SPEC_BLOCK.
2509*c3d31fe1Smrg
2510*c3d31fe1Smrg2001-03-28  Richard Henderson  <rth@redhat.com>
2511*c3d31fe1Smrg
2512*c3d31fe1Smrg	* decl.c (struct named_label_list): Rename eh_region to
2513*c3d31fe1Smrg	in_try_scope, add in_catch_scope.
2514*c3d31fe1Smrg	(struct binding_level): Rename eh_region to is_try_scope,
2515*c3d31fe1Smrg	add is_catch_scope.
2516*c3d31fe1Smrg	(note_level_for_try): Rename from note_level_for_eh.
2517*c3d31fe1Smrg	(note_level_for_catch): New.
2518*c3d31fe1Smrg	(poplevel): Copy both is_try_scope and is_catch_scope to
2519*c3d31fe1Smrg	the named_label_list struct.
2520*c3d31fe1Smrg	(check_previous_goto_1): Don't check for catch block via
2521*c3d31fe1Smrg	DECL_ARTIFICIAL; use in_try_scope instead.
2522*c3d31fe1Smrg	(check_goto): Likewise.
2523*c3d31fe1Smrg	* cp-tree.h (note_level_for_try, note_level_for_catch): Declare.
2524*c3d31fe1Smrg	* except.c (expand_start_catch_block): Call note_level_for_catch.
2525*c3d31fe1Smrg	* semantics.c (begin_compound_stmt): Update for note_level_for_try.
2526*c3d31fe1Smrg
2527*c3d31fe1Smrg2001-03-27  Richard Henderson  <rth@redhat.com>
2528*c3d31fe1Smrg
2529*c3d31fe1Smrg	* except.c: Use USING_SJLJ_EXCEPTIONS instead of
2530*c3d31fe1Smrg	exceptions_via_longjmp.
2531*c3d31fe1Smrg
2532*c3d31fe1Smrg2001-03-27  Phil Edwards  <pme@sources.redhat.com>
2533*c3d31fe1Smrg
2534*c3d31fe1Smrg	* pt.c (check_default_tmpl_args):  Make error messages clearer.
2535*c3d31fe1Smrg
2536*c3d31fe1Smrg2001-03-26  Phil Edwards  <pme@sources.redhat.com>
2537*c3d31fe1Smrg
2538*c3d31fe1Smrg	* error.c:  Also undefine 'A' macro used for cp_printers definition.
2539*c3d31fe1Smrg
2540*c3d31fe1Smrg2001-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2541*c3d31fe1Smrg
2542*c3d31fe1Smrg	* Make-lang.in: Depend on $(SYSTEM_H), not system.h.
2543*c3d31fe1Smrg
2544*c3d31fe1Smrg2001-03-26  Mike Yang <yang@research.att.com>
2545*c3d31fe1Smrg	    Mark Mitchell  <mark@codesourcery.com>
2546*c3d31fe1Smrg
2547*c3d31fe1Smrg	* dump.c (dump_access): New function.
2548*c3d31fe1Smrg	(cp_dump_tree): Use it.  Dump basetype information for class
2549*c3d31fe1Smrg	types.
2550*c3d31fe1Smrg
2551*c3d31fe1Smrg2001-03-26  Mark Mitchell  <mark@codesourcery.com>
2552*c3d31fe1Smrg
2553*c3d31fe1Smrg	* Makefile.in (optimize.o): Depend on params.h.
2554*c3d31fe1Smrg	(duplicate_decls): Copy DECL_NUM_STMTS, not DECL_FRAME_SIZE.
2555*c3d31fe1Smrg	(init_decl_processing): Set flag_no_inline when doing
2556*c3d31fe1Smrg	inlining-on-trees.
2557*c3d31fe1Smrg	* optimize.c: Include params.h.
2558*c3d31fe1Smrg	(struct inline_data): Improve documentation of FNS.  Add
2559*c3d31fe1Smrg	FIRST_INLINED_FN, INLINED_STMTS, and CLONING_P.
2560*c3d31fe1Smrg	(INSNS_PER_STMT): New macro.
2561*c3d31fe1Smrg	(remap_block): Use CLONING_P.
2562*c3d31fe1Smrg	(inlinable_function_p): Don't inline big functions.
2563*c3d31fe1Smrg	(expand_call_inline): Keep track of how much inlining we've done.
2564*c3d31fe1Smrg	(optimize_function): Set FIRST_INLINED_FN.
2565*c3d31fe1Smrg	(maybe_clone_body): Set CLONING_P.
2566*c3d31fe1Smrg	* semantics.c (simplify_aggr_init_exprs_r): Fix typing problems in
2567*c3d31fe1Smrg	tree nodes.
2568*c3d31fe1Smrg	(genrtl_finish_function): Clear DECL_DEFER_OUTPUT before calling
2569*c3d31fe1Smrg	rest_of_compilation.  Clear DECL_RTL for local variables
2570*c3d31fe1Smrg	afterwards.
2571*c3d31fe1Smrg	(clear_decl_rtl): New function.
2572*c3d31fe1Smrg
2573*c3d31fe1Smrg2001-03-26  Nathan Sidwell  <nathan@codesourcery.com>
2574*c3d31fe1Smrg
2575*c3d31fe1Smrg	Implement DR 209
2576*c3d31fe1Smrg	* cp-tree.h (skip_type_access_control,
2577*c3d31fe1Smrg	reset_type_access_control): Prototype.
2578*c3d31fe1Smrg	* decl.c (grokdeclarator): Access of friends is not checked.
2579*c3d31fe1Smrg	* parse.y (component_decl_list): Reset type access control.
2580*c3d31fe1Smrg	* semantics.c (decl_type_access_control): Clear
2581*c3d31fe1Smrg	current_type_lookups.
2582*c3d31fe1Smrg	(save_type_access_control): Don't save if not deferring.
2583*c3d31fe1Smrg	(skip_type_access_control, reset_type_access_control): New
2584*c3d31fe1Smrg	functions.
2585*c3d31fe1Smrg	(begin_class_definition): Do type access control for basetypes.
2586*c3d31fe1Smrg	Start deferred access control.
2587*c3d31fe1Smrg	(finish_class_definition): Resume immediate access control if
2588*c3d31fe1Smrg	this is a local class.
2589*c3d31fe1Smrg
2590*c3d31fe1Smrg2001-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2591*c3d31fe1Smrg
2592*c3d31fe1Smrg	* class.c (add_method): Use memcpy/memmove, not bcopy.
2593*c3d31fe1Smrg
2594*c3d31fe1Smrg	* decl.c (duplicate_decls): Likewise.
2595*c3d31fe1Smrg
2596*c3d31fe1Smrg2001-03-23  Jakub Jelinek  <jakub@redhat.com>
2597*c3d31fe1Smrg
2598*c3d31fe1Smrg	* mangle.c (write_discriminator): Use `_0' for discriminator 1,
2599*c3d31fe1Smrg	not `_'.
2600*c3d31fe1Smrg
2601*c3d31fe1Smrg2001-03-23  Jakub Jelinek  <jakub@redhat.com>
2602*c3d31fe1Smrg
2603*c3d31fe1Smrg	* decl.c (local_names): Define.
2604*c3d31fe1Smrg	(push_local_name): New.
2605*c3d31fe1Smrg	(grok_reference_init): Return init if initializing static reference
2606*c3d31fe1Smrg	variable with non-constant instead of emitting it.
2607*c3d31fe1Smrg	Move expand_static_init call to cp_finish_decl.
2608*c3d31fe1Smrg	(layout_var_decl): Call push_local_name.
2609*c3d31fe1Smrg	(maybe_commonize_var): Allow inlining functions even if they have
2610*c3d31fe1Smrg	static local variables, use comdat_linkage for them if flag_weak.
2611*c3d31fe1Smrg	(check_initializer): Call obscure_complex_init if
2612*c3d31fe1Smrg	grok_reference_init returned nonzero.
2613*c3d31fe1Smrg	(save_function_data): Clear x_local_names.
2614*c3d31fe1Smrg	(pop_cp_function_context): Free x_local_names.
2615*c3d31fe1Smrg	(mark_inlined_fns): Remove.
2616*c3d31fe1Smrg	(mark_lang_function): Mark x_local_names.
2617*c3d31fe1Smrg	(lang_mark_tree): Don't mark DECL_ACCESS for DECL_DISCRIMINATOR_P.
2618*c3d31fe1Smrg	Mark inlined_fns as tree, remove call to mark_inlined_fns.
2619*c3d31fe1Smrg	* class.c (alter_access): Ensure DECL_ACCESS is never set if
2620*c3d31fe1Smrg	DECL_DISCRIMINATOR_P.
2621*c3d31fe1Smrg	* cp-tree.h (cp_language_function): Add x_local_names.
2622*c3d31fe1Smrg	(lang_decl_flags): Add discriminator into u2.
2623*c3d31fe1Smrg	(lang_decl_inlined_fns): Remove.
2624*c3d31fe1Smrg	(lang_decl): inlined_fns is now a TREE_VEC.
2625*c3d31fe1Smrg	(DECL_DISCRIMINATOR_P, DECL_DISCRIMINATOR): Define.
2626*c3d31fe1Smrg	* optimize.c (inlinable_function_p): DECL_INLINED_FNS is now a
2627*c3d31fe1Smrg	TREE_VEC, not a custom structure.
2628*c3d31fe1Smrg	(optimize_function): Likewise.
2629*c3d31fe1Smrg	* mangle.c (discriminator_for_local_entity): Discriminate among
2630*c3d31fe1Smrg	VAR_DECL local entities.
2631*c3d31fe1Smrg	* search.c (dfs_access_in_type): If DECL_DISCRIMINATOR_P, DECL_ACCESS
2632*c3d31fe1Smrg	is not valid.
2633*c3d31fe1Smrg
2634*c3d31fe1Smrg2001-03-22  Bryce McKinlay  <bryce@albatross.co.nz>
2635*c3d31fe1Smrg
2636*c3d31fe1Smrg	Add support for Java interface method calls.
2637*c3d31fe1Smrg	* cp-tree.h (struct lang_type): Add java_interface flag.
2638*c3d31fe1Smrg	(TYPE_JAVA_INTERFACE): New macro.
2639*c3d31fe1Smrg	* tree.c (cp_valid_lang_attribute): Handle "java_interface" attribute
2640*c3d31fe1Smrg	by setting TYPE_JAVA_INTERFACE.
2641*c3d31fe1Smrg	* call.c (java_iface_lookup_fn): New static.
2642*c3d31fe1Smrg	(build_over_call): If calling a method declared in a
2643*c3d31fe1Smrg	TYPE_JAVA_INTERFACE, call build_java_interface_fn_ref to generate the
2644*c3d31fe1Smrg	expression which resolves the function address.
2645*c3d31fe1Smrg	(build_java_interface_fn_ref): New function.
2646*c3d31fe1Smrg
2647*c3d31fe1Smrg2001-03-22  Richard Henderson  <rth@redhat.com>
2648*c3d31fe1Smrg
2649*c3d31fe1Smrg	* Make-lang.in (cp/except.o): Don't depend on insn-flags.h.
2650*c3d31fe1Smrg	* except.c: Don't include it.
2651*c3d31fe1Smrg
2652*c3d31fe1Smrg2001-03-22  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2653*c3d31fe1Smrg	    based on an idea from Joe Buck <jbuck@synopsys.com>
2654*c3d31fe1Smrg
2655*c3d31fe1Smrg	* parse.y (bad_decl, template_arg_list_ignore, arg_list_ignore):
2656*c3d31fe1Smrg	New nonterminals.
2657*c3d31fe1Smrg	(data_def, component_decl): Add reductions to bad_decl.
2658*c3d31fe1Smrg
2659*c3d31fe1Smrg2001-03-22  Jakub Jelinek  <jakub@redhat.com>
2660*c3d31fe1Smrg
2661*c3d31fe1Smrg	* method.c (do_build_assign_ref): Don't use build_modify_expr for
2662*c3d31fe1Smrg	anonymous aggregates, since they don't have assignment operator
2663*c3d31fe1Smrg	method.
2664*c3d31fe1Smrg	* decl.c (fixup_anonymous_aggr): Disallow ctors, dtors and copy
2665*c3d31fe1Smrg	assignment operators for anonymous structure fields.
2666*c3d31fe1Smrg
2667*c3d31fe1Smrg2001-03-21  Jason Merrill  <jason@redhat.com>
2668*c3d31fe1Smrg
2669*c3d31fe1Smrg	* pt.c (instantiate_decl): Abort if we see a member constant
2670*c3d31fe1Smrg	instantiation that doesn't already have its initializer.
2671*c3d31fe1Smrg	Downgrade explicit instantiation without definition to pedwarn.
2672*c3d31fe1Smrg
2673*c3d31fe1Smrg	* cp-tree.h (DECL_TINFO_FN_P, SET_DECL_TINFO_FN_P): Remove.
2674*c3d31fe1Smrg	* class.c (build_vtable_entry): Don't check DECL_TINFO_FN_P.
2675*c3d31fe1Smrg	(import_export_decl): Check tinfo_decl_p, not DECL_TINFO_FN_P.
2676*c3d31fe1Smrg
2677*c3d31fe1Smrg	* cp-tree.h (CLASSTYPE_VTABLE_NEEDS_WRITING): Remove.
2678*c3d31fe1Smrg	(pending_vtables): Remove.
2679*c3d31fe1Smrg	* decl2.c (pending_vtables): Remove.
2680*c3d31fe1Smrg	(import_export_vtable): Use CLASSTYPE_INTERFACE_ONLY, not
2681*c3d31fe1Smrg	CLASSTYPE_VTABLE_NEEDS_WRITING.
2682*c3d31fe1Smrg	(import_export_class): Likewise.
2683*c3d31fe1Smrg	(init_decl2): Don't mark pending_vtables.
2684*c3d31fe1Smrg	* lex.c (handle_pragma_vtable): Just sorry.
2685*c3d31fe1Smrg	* pt.c (instantiate_class_template): Don't mess with
2686*c3d31fe1Smrg	CLASSTYPE_VTABLE_NEEDS_WRITING.
2687*c3d31fe1Smrg	(mark_class_instantiated): Likewise.
2688*c3d31fe1Smrg	* ptree.c (print_lang_type): Don't print it.
2689*c3d31fe1Smrg	* semantics.c (begin_class_definition): Don't set it.
2690*c3d31fe1Smrg
2691*c3d31fe1Smrg	* pt.c (template_tail): Replace with last_pending_template.
2692*c3d31fe1Smrg	(maybe_templates, maybe_template_tail): Remove.
2693*c3d31fe1Smrg	(add_pending_template): Adjust.
2694*c3d31fe1Smrg	(instantiate_pending_templates): Adjust.
2695*c3d31fe1Smrg
2696*c3d31fe1Smrg	* cp-tree.h (struct saved_scope): Remove lang_stack field.
2697*c3d31fe1Smrg	(current_lang_stack): Remove.
2698*c3d31fe1Smrg	* decl.c (maybe_push_to_top_level): Don't initialize it.
2699*c3d31fe1Smrg	(duplicate_decls): Use current_lang_depth.
2700*c3d31fe1Smrg	(xref_basetypes): Likewise.
2701*c3d31fe1Smrg	* class.c (current_lang_depth): New fn.
2702*c3d31fe1Smrg	(push_lang_context): Use more varray functionality.
2703*c3d31fe1Smrg	(pop_lang_context): Likewise.
2704*c3d31fe1Smrg
2705*c3d31fe1Smrg	* error.c (GLOBAL_THING): Always use '__'.
2706*c3d31fe1Smrg
2707*c3d31fe1Smrg2001-03-21  Mark Mitchell  <mark@codesourcery.com>
2708*c3d31fe1Smrg
2709*c3d31fe1Smrg	* class.c (build_clone): Clear DECL_ASSEMBLER_NAME.
2710*c3d31fe1Smrg
2711*c3d31fe1Smrg	* mangle.c (mangle_decl_string): Mangle the names of overloaded
2712*c3d31fe1Smrg	operators, even when they have `extern "C"' linkage.
2713*c3d31fe1Smrg
2714*c3d31fe1Smrg2001-03-19  Mark Mitchell  <mark@codesourcery.com>
2715*c3d31fe1Smrg
2716*c3d31fe1Smrg	* class.c (get_vtable_decl): Use SET_DECL_ASSEMBLER_NAME,
2717*c3d31fe1Smrg	COPY_DECL_ASSEMBLER_NAME, etc.  Don't set DECL_ASSEMBLER_NAME
2718*c3d31fe1Smrg	where it's not necessary.
2719*c3d31fe1Smrg	(add_method): Remove optimization involving comparison of
2720*c3d31fe1Smrg	DECL_ASSEMBLER_NAME.
2721*c3d31fe1Smrg	(build_vtbl_or_vbase_field): Use SET_DECL_ASSEMBLER_NAME,
2722*c3d31fe1Smrg	COPY_DECL_ASSEMBLER_NAME, etc.  Don't set DECL_ASSEMBLER_NAME
2723*c3d31fe1Smrg	where it's not necessary.
2724*c3d31fe1Smrg	(check_methods): Likewise.
2725*c3d31fe1Smrg	(build_clone): Likewise.
2726*c3d31fe1Smrg	(built_vtt): Likewise.
2727*c3d31fe1Smrg	* cp-tree.h (DECL_NEEDED_P): Likewise.
2728*c3d31fe1Smrg	* decl.c (pushtag): Likewise.
2729*c3d31fe1Smrg	(duplicate_decls): Likewise.
2730*c3d31fe1Smrg	(pushdecl): Likewise.
2731*c3d31fe1Smrg	(builtin_function): Likewise.
2732*c3d31fe1Smrg	(build_library_fn_1): Set DECL_LANGUAGE for library functions.
2733*c3d31fe1Smrg	(build_cp_library_fn): Likewise.
2734*c3d31fe1Smrg	(maybe_commonize_var): Use SET_DECL_ASSEMBLER_NAME,
2735*c3d31fe1Smrg	COPY_DECL_ASSEMBLER_NAME, etc.  Don't set DECL_ASSEMBLER_NAME
2736*c3d31fe1Smrg	where it's not necessary.
2737*c3d31fe1Smrg	(make_rtl_for_nonlocal_decl): Likewise.
2738*c3d31fe1Smrg	(cp_finish_decl): Likewise.
2739*c3d31fe1Smrg	(grokfndecl): Likewise.
2740*c3d31fe1Smrg	(grokvardecl): Likewise.
2741*c3d31fe1Smrg	(grokdeclarator): Likewise.
2742*c3d31fe1Smrg	(start_function): Likewise.
2743*c3d31fe1Smrg	(cp_missing_return_ok_p): Likewise.
2744*c3d31fe1Smrg	* decl2.c (grokclassfn): Likewise.
2745*c3d31fe1Smrg	(check_classfn): Likewise.
2746*c3d31fe1Smrg	(finish_static_data_member_decl): Likewise.
2747*c3d31fe1Smrg	(grokfield): Likewise.
2748*c3d31fe1Smrg	* error.c (GLOBAL_IORD_P): Remove.
2749*c3d31fe1Smrg	(dump_global_iord): Improve output.
2750*c3d31fe1Smrg	(dump_decl): Avoid using DECL_ASSEMBLER_NAME.
2751*c3d31fe1Smrg	* except.c (nothrow_libfn_p): Summarily reject any function not in
2752*c3d31fe1Smrg	namespace-scope.
2753*c3d31fe1Smrg	* init.c (build_java_class_ref): Don't explicitly set
2754*c3d31fe1Smrg	DECL_ASSEMBLER_NAME after calling mangle_decl.
2755*c3d31fe1Smrg	* mangle.c (mangle_decl_string): Handle extern "C" functions.
2756*c3d31fe1Smrg	(mangle_decl): Set the DECL_ASSEMBLER_NAME for the decl.
2757*c3d31fe1Smrg	* method.c (set_mangled_name_for_decl): Don't explicitly set
2758*c3d31fe1Smrg	DECL_ASSEMBLER_NAME after calling mangle_decl.
2759*c3d31fe1Smrg	(make_thunk): Explicitly set the DECL_ASSEMBLER_NAME and
2760*c3d31fe1Smrg	IDENTIFIER_GLOBAL_VALUE for the thunk.
2761*c3d31fe1Smrg	* pt.c (set_mangled_name_for_template_decl): Remove.
2762*c3d31fe1Smrg	(check_explicit_specialization): Don't use it.
2763*c3d31fe1Smrg	(looup_template_class): Don't set DECL_ASSEMBLER_NAME.
2764*c3d31fe1Smrg	(tsubst_friend_function): Likewise.
2765*c3d31fe1Smrg	(tsubst_decl): Likewise.
2766*c3d31fe1Smrg	(regenerate_decl_from_template): Use COPY_DECL_ASSEMBLER_NAME.
2767*c3d31fe1Smrg	* rtti.c (get_tinfo_decl): Use SET_DECL_ASSEMBLER_NAME,
2768*c3d31fe1Smrg	COPY_DECL_ASSEMBLER_NAME, etc.  Don't set DECL_ASSEMBLER_NAME
2769*c3d31fe1Smrg	where it's not necessary.
2770*c3d31fe1Smrg	(tinfo_base_init): Likewise.
2771*c3d31fe1Smrg	(create_real_tinfo_var): Likewise.
2772*c3d31fe1Smrg	* search.c (looup_field_1): Likewise.
2773*c3d31fe1Smrg	* semantics.c (finish_named_return_value): Likewise.
2774*c3d31fe1Smrg	* tree.c (init_tree): Set lang_set_decl_assembler_name.
2775*c3d31fe1Smrg
2776*c3d31fe1Smrg2001-03-15  Gabriel Dos Reis  <gdr@codesourcery.com>
2777*c3d31fe1Smrg
2778*c3d31fe1Smrg	Correct semantics restrictions checking in throw-expression.
2779*c3d31fe1Smrg	* except.c (is_admissible_throw_operand): New function.
2780*c3d31fe1Smrg	(build_throw): Use it.
2781*c3d31fe1Smrg
2782*c3d31fe1Smrg2001-03-14  Mark Mitchell  <mark@codesourcery.com>
2783*c3d31fe1Smrg
2784*c3d31fe1Smrg	* decl.c (cp_make_fnname_decl): Set DECL_IGNORED_P on __FUNCTION__
2785*c3d31fe1Smrg	and its ilk.
2786*c3d31fe1Smrg
2787*c3d31fe1Smrg2001-03-14  Mark Mitchell  <mark@codesourcery.com>
2788*c3d31fe1Smrg
2789*c3d31fe1Smrg	* class.c (build_clone): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.
2790*c3d31fe1Smrg	* cp-tree.h (DECL_IN_MEMORY_P): Likewise.
2791*c3d31fe1Smrg	* decl.c (duplicate_decls): Likewise.
2792*c3d31fe1Smrg	(builtin_function): Likewise.
2793*c3d31fe1Smrg	(build_library_fn): Likewise.
2794*c3d31fe1Smrg	(build_cp_library_fn): Likewise.
2795*c3d31fe1Smrg	(check_initializer): Likewise.
2796*c3d31fe1Smrg	(cp_finish_decl): Likewise.
2797*c3d31fe1Smrg	* decl2.c (grokfield): Likewise.
2798*c3d31fe1Smrg	(grok_function_init): Remove #if 0'd code.
2799*c3d31fe1Smrg	(finish_anon_union): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.
2800*c3d31fe1Smrg	* friend.c (do_friend): Likewise.
2801*c3d31fe1Smrg	* init.c (get_temp_regvar): Likewise.
2802*c3d31fe1Smrg	* method.c (make_thunk): Likewise.
2803*c3d31fe1Smrg	* pt.c (tsubst_friend_function): Likewise.
2804*c3d31fe1Smrg	(tsubst_decl): Likewise.
2805*c3d31fe1Smrg	(regenerate_decl_from_template): Likewise.
2806*c3d31fe1Smrg	* semantics.c (genrtl_named_return_value): Likewise.
2807*c3d31fe1Smrg	(expand_body): Likewise.
2808*c3d31fe1Smrg	(genrtl_finish_function): Likewise.
2809*c3d31fe1Smrg	* tree.c (cp_tree_equal): Likewise.
2810*c3d31fe1Smrg
2811*c3d31fe1Smrg2001-03-12  Nathan Sidwell  <nathan@codesourcery.com>
2812*c3d31fe1Smrg
2813*c3d31fe1Smrg	* call.c (convert_like_real): Add extra semantics to INNER
2814*c3d31fe1Smrg	parameter. Don't convert to temporary if a user conversion
2815*c3d31fe1Smrg	gives us an lvalue that we're about to bind to a reference.
2816*c3d31fe1Smrg	Set INNER to indicate pending reference binding on recursive
2817*c3d31fe1Smrg	calls.
2818*c3d31fe1Smrg
2819*c3d31fe1Smrg2001-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
2820*c3d31fe1Smrg
2821*c3d31fe1Smrg	* cp/lex.c: Delete duplicate pending_lang_change.
2822*c3d31fe1Smrg
2823*c3d31fe1Smrg2001-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
2824*c3d31fe1Smrg
2825*c3d31fe1Smrg	* cp/lex.c (handle_pragma_interface, handle_pragma_implementation):
2826*c3d31fe1Smrg	Similarly.
2827*c3d31fe1Smrg	* cp/repo.c (get_base_filename, open_repo_file): Similarly.
2828*c3d31fe1Smrg	* cp/cp-tree.h: Remove file_name_nondirectory prototype.
2829*c3d31fe1Smrg
2830*c3d31fe1Smrg2001-03-09  Zack Weinberg  <zackw@stanford.edu>
2831*c3d31fe1Smrg
2832*c3d31fe1Smrg	* Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
2833*c3d31fe1Smrg
2834*c3d31fe1Smrg2001-03-08  Stan Shebs  <shebs@apple.com>
2835*c3d31fe1Smrg
2836*c3d31fe1Smrg	* cp-tree.h (set_identifier_local_value): Remove unused decl.
2837*c3d31fe1Smrg
2838*c3d31fe1Smrg2001-03-06  Zack Weinberg  <zackw@stanford.edu>
2839*c3d31fe1Smrg
2840*c3d31fe1Smrg	* spew.c: Remove references to CPP_OSTRING.
2841*c3d31fe1Smrg
2842*c3d31fe1Smrg2001-03-06  Andrew Haley  <aph@redhat.com>
2843*c3d31fe1Smrg
2844*c3d31fe1Smrg	* typeck.c (convert_arguments): Check that we have an fndecl.
2845*c3d31fe1Smrg
2846*c3d31fe1Smrg2001-03-05  Andrew Haley  <aph@redhat.com>
2847*c3d31fe1Smrg
2848*c3d31fe1Smrg	* typeck.c (convert_arguments): Don't do ellipsis conversion for
2849*c3d31fe1Smrg	__built_in_constant_p.
2850*c3d31fe1Smrg
2851*c3d31fe1Smrg2001-03-02  Nathan Sidwell  <nathan@codesourcery.com>
2852*c3d31fe1Smrg
2853*c3d31fe1Smrg	* typeck.c (build_static_cast): Allow enum to enum conversions
2854*c3d31fe1Smrg	as per DR 128.
2855*c3d31fe1Smrg
2856*c3d31fe1Smrg2001-03-02  Nathan Sidwell  <nathan@codesourcery.com>
2857*c3d31fe1Smrg
2858*c3d31fe1Smrg	* class.c (check_field_decls): Pointers to member do not a
2859*c3d31fe1Smrg	non-pod struct make, as per DR 148.
2860*c3d31fe1Smrg
2861*c3d31fe1Smrg2001-03-02  Nathan Sidwell  <nathan@codesourcery.com>
2862*c3d31fe1Smrg
2863*c3d31fe1Smrg	* call.c (joust): cp_pedwarn when using gnu extension concerning
2864*c3d31fe1Smrg	worst conversion sequences.
2865*c3d31fe1Smrg
2866*c3d31fe1Smrg2001-03-01  Zack Weinberg  <zackw@stanford.edu>
2867*c3d31fe1Smrg
2868*c3d31fe1Smrg	* decl.c: Replace all uses of 'boolean' with 'bool'.
2869*c3d31fe1Smrg
2870*c3d31fe1Smrg2001-03-01  Zack Weinberg  <zackw@stanford.edu>
2871*c3d31fe1Smrg
2872*c3d31fe1Smrg	* lang-specs.h: Add zero initializer for cpp_spec field to
2873*c3d31fe1Smrg	all array elements that need one.  Don't put an #ifdef inside
2874*c3d31fe1Smrg	the initializer list; set a default for CPLUSPLUS_CPP_SPEC and
2875*c3d31fe1Smrg	use it.
2876*c3d31fe1Smrg
2877*c3d31fe1Smrg2001-03-01  Nathan Sidwell  <nathan@codesourcery.com>
2878*c3d31fe1Smrg
2879*c3d31fe1Smrg	Implement using decls inside template functions.
2880*c3d31fe1Smrg	* decl2.c (validate_nonmember_using_decl): Don't special case
2881*c3d31fe1Smrg	fake_std_node in the global namespace. Don't reject early when
2882*c3d31fe1Smrg	processing a template.
2883*c3d31fe1Smrg	(do_local_using_decl): Add to statement tree. Don't do further
2884*c3d31fe1Smrg	processing when building a template.
2885*c3d31fe1Smrg	* pt.c (tsubst_expr, DECL_STMT case): Deal with USING_DECLs.
2886*c3d31fe1Smrg
2887*c3d31fe1Smrg2001-03-01  Nathan Sidwell  <nathan@codesourcery.com>
2888*c3d31fe1Smrg
2889*c3d31fe1Smrg	* decl2.c (do_nonmember_using_decl): Don't complain if we find
2890*c3d31fe1Smrg	same function. Do complain about ambiguating extern "C"
2891*c3d31fe1Smrg	declarations.
2892*c3d31fe1Smrg
2893*c3d31fe1Smrg2001-02-28  Nathan Sidwell  <nathan@codesourcery.com>
2894*c3d31fe1Smrg
2895*c3d31fe1Smrg	Remove floating point and complex type template constant parms.
2896*c3d31fe1Smrg	* pt.c (convert_nontype_argument): Remove REAL_TYPE and
2897*c3d31fe1Smrg	COMPLEX_TYPE extensions.
2898*c3d31fe1Smrg	(invalid_nontype_parm_type_p): Likewise.
2899*c3d31fe1Smrg
2900*c3d31fe1Smrg2001-02-27  Jeffrey Oldham  <oldham@codesourcery.com>
2901*c3d31fe1Smrg
2902*c3d31fe1Smrg	* except.c (call_eh_info): Revert "match_function"'s type.
2903*c3d31fe1Smrg
2904*c3d31fe1Smrg2001-02-27  Nathan Sidwell  <nathan@codesourcery.com>
2905*c3d31fe1Smrg
2906*c3d31fe1Smrg	Fix ctor vtable vcall offsets.
2907*c3d31fe1Smrg	* class.c (struct vtbl_init_data_s): Add rtti_binfo member.
2908*c3d31fe1Smrg	(build_rtt_vtbl_entries): Lose RTTI_BINFO parameter.
2909*c3d31fe1Smrg	(get_matching_base): Remove.
2910*c3d31fe1Smrg	(get_original_base): New function.
2911*c3d31fe1Smrg	(build_vtbl_initializer): Initialize vid.rtti_binfo.
2912*c3d31fe1Smrg	Use a virtual thunk for a ctor vtable with an index
2913*c3d31fe1Smrg	(add_vcall_offset_vtbl_entries_1): Check if binfo has lost a
2914*c3d31fe1Smrg	primary base within a constructor vtable. Only set
2915*c3d31fe1Smrg	BV_VCALL_INDEX when not a constructor vtable. Adjust vcall offset
2916*c3d31fe1Smrg	when primary base has been lost.
2917*c3d31fe1Smrg	* cp-tree.h (BINFO_VIRTUALS): Remove ambiguity from comment.
2918*c3d31fe1Smrg
2919*c3d31fe1Smrg2001-02-26  Jeffrey Oldham  <oldham@codesourcery.com>
2920*c3d31fe1Smrg
2921*c3d31fe1Smrg	* call.c (joust): Ensure more_specialized()'s argument length
2922*c3d31fe1Smrg	parameter has correct value for constructors.
2923*c3d31fe1Smrg
2924*c3d31fe1Smrg2001-02-26  Nathan Sidwell  <nathan@codesourcery.com>
2925*c3d31fe1Smrg
2926*c3d31fe1Smrg	* except.c (call_eh_info): Cleanup generation of cp_eh_info struct.
2927*c3d31fe1Smrg
2928*c3d31fe1Smrg	* decl.c (mark_inlined_fns): Prototype.
2929*c3d31fe1Smrg
2930*c3d31fe1Smrg2001-02-22  Mark Mitchell  <mark@codesourcery.com>
2931*c3d31fe1Smrg
2932*c3d31fe1Smrg	* spew.c (yylex): Correct handling of friends.
2933*c3d31fe1Smrg
2934*c3d31fe1Smrg2001-02-22  Mark Mitchell  <mark@codesourcery.com>
2935*c3d31fe1Smrg
2936*c3d31fe1Smrg	* mangle.c (write_encoding): Pass write_function_type the
2937*c3d31fe1Smrg	FUNCTION_DECL for the function being encoded.
2938*c3d31fe1Smrg	(write_function_type): Pass it along to write_bare_function_type.
2939*c3d31fe1Smrg	(write_bare_function_type): Pass it along to write_method_parms.
2940*c3d31fe1Smrg	(write_method_parms): Don't mangle the compiler-generated
2941*c3d31fe1Smrg	parameters to a constructor or destructor.
2942*c3d31fe1Smrg
2943*c3d31fe1Smrg2001-02-22  Andreas Jaeger  <aj@suse.de>
2944*c3d31fe1Smrg
2945*c3d31fe1Smrg	* optimize.c: Include toplev.h for
2946*c3d31fe1Smrg	note_deferral_of_defined_inline_function prototype.
2947*c3d31fe1Smrg
2948*c3d31fe1Smrg2001-02-22  Jakub Jelinek  <jakub@redhat.com>
2949*c3d31fe1Smrg
2950*c3d31fe1Smrg	* cp-tree.h (struct lang_decl_inlined_fns): New.
2951*c3d31fe1Smrg	(struct lang_decls): Add inlined_fns.
2952*c3d31fe1Smrg	(DECL_INLINED_FNS): New macro.
2953*c3d31fe1Smrg	* optimize.c (struct inline_data): Add inlined_fns.
2954*c3d31fe1Smrg	(declare_return_variable): Use VARRAY_ACTIVE_SIZE macro.
2955*c3d31fe1Smrg	(inlinable_function_p): Likewise, fix typo in comment,
2956*c3d31fe1Smrg	function is not inlinable if it already inlined function currently
2957*c3d31fe1Smrg	being optimized.
2958*c3d31fe1Smrg	(expand_call_inline): Add fn to inlined_fns if necessary.
2959*c3d31fe1Smrg	(optimize_function): Initialize inlined_fns.
2960*c3d31fe1Smrg	Save inlined_fns into DECL_INLINED_FNS after expanding inlines.
2961*c3d31fe1Smrg	* decl.c (mark_inlined_fns): New function.
2962*c3d31fe1Smrg	(lang_mark_tree): Call it.
2963*c3d31fe1Smrg
2964*c3d31fe1Smrg2001-02-21  Jason Merrill  <jason@redhat.com>
2965*c3d31fe1Smrg
2966*c3d31fe1Smrg	* cp-tree.h (struct lang_decl_flags): Remove uninlinable flag.
2967*c3d31fe1Smrg	(DECL_UNINLINABLE): Move to middle-end.
2968*c3d31fe1Smrg
2969*c3d31fe1Smrg	* class.c (clone_function_decl): Set DECL_ABSTRACT on original fn.
2970*c3d31fe1Smrg	* decl.c (duplicate_decls): Preserve DECL_ABSTRACT.
2971*c3d31fe1Smrg	* class.c (build_clone): Set DECL_ABSTRACT_ORIGIN for the clone.
2972*c3d31fe1Smrg	* optimize.c (maybe_clone_body): Set DECL_ABSTRACT_ORIGIN for the
2973*c3d31fe1Smrg	parms and outer BLOCK.  note_deferral_of_defined_inline_function.
2974*c3d31fe1Smrg
2975*c3d31fe1Smrg	* method.c (implicitly_declare_fn): Don't set DECL_ARTIFICIAL on
2976*c3d31fe1Smrg	second parm of op=.
2977*c3d31fe1Smrg
2978*c3d31fe1Smrg2001-02-19  Mark Mitchell  <mark@codesourcery.com>
2979*c3d31fe1Smrg
2980*c3d31fe1Smrg	* decl2.c (set_decl_namespace): Allow explicit instantiations in
2981*c3d31fe1Smrg	any namespace.
2982*c3d31fe1Smrg
2983*c3d31fe1Smrg2001-02-18  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
2984*c3d31fe1Smrg
2985*c3d31fe1Smrg	* optimize.c (expand_call_inline): Don't walk subtrees of type
2986*c3d31fe1Smrg	nodes.
2987*c3d31fe1Smrg
2988*c3d31fe1Smrg2001-02-18  Mark Mitchell  <mark@codesourcery.com>
2989*c3d31fe1Smrg
2990*c3d31fe1Smrg	* class.c (add_vcall_offset_vtbl_entries_1): Only add one entry
2991*c3d31fe1Smrg	for a destructor.
2992*c3d31fe1Smrg
2993*c3d31fe1Smrg2001-02-18  Jason Merrill  <jason@redhat.com>
2994*c3d31fe1Smrg
2995*c3d31fe1Smrg	Do put the VTT parameter in DECL_ARGUMENTS.
2996*c3d31fe1Smrg	* cp-tree.h (struct cp_language_function): Add x_vtt_parm.
2997*c3d31fe1Smrg	(current_vtt_parm): New macro.
2998*c3d31fe1Smrg	(struct lang_decl_flags): Add has_vtt_parm_p, remove vtt_parm.
2999*c3d31fe1Smrg	(DECL_HAS_VTT_PARM_P): New macro.
3000*c3d31fe1Smrg	(DECL_VTT_PARM): Remove.
3001*c3d31fe1Smrg	(FUNCTION_FIRST_USER_PARMTYPE, FUNCTION_FIRST_USER_PARM): New macros.
3002*c3d31fe1Smrg	* decl.c (duplicate_decls): Only copy the operator code if
3003*c3d31fe1Smrg	appropriate.
3004*c3d31fe1Smrg	(start_function): Set current_vtt_parm.
3005*c3d31fe1Smrg	(lang_mark_tree): Don't mark vtt_parm.
3006*c3d31fe1Smrg	* decl2.c (maybe_retrofit_in_chrg): Do add the VTT parm to
3007*c3d31fe1Smrg	DECL_ARGUMENTS.  Set DECL_HAS_VTT_PARM_P.
3008*c3d31fe1Smrg	* class.c (build_clone): Maybe remove the VTT parm.
3009*c3d31fe1Smrg	* optimize.c (maybe_clone_body): Set up the VTT parm.
3010*c3d31fe1Smrg	* pt.c (copy_default_args_to_explicit_spec): Preserve the VTT parm.
3011*c3d31fe1Smrg	* call.c (build_over_call): Just allow the VTT arg.
3012*c3d31fe1Smrg	* method.c (make_thunk): Don't set DECL_VTT_PARM.
3013*c3d31fe1Smrg	(do_build_copy_constructor): Use FUNCTION_FIRST_USER_PARM.
3014*c3d31fe1Smrg	(synthesize_method): Use FUNCTION_FIRST_USER_PARMTYPE.
3015*c3d31fe1Smrg	* decl.c (grokdeclarator, copy_args_p, grok_ctor_properties): Likewise.
3016*c3d31fe1Smrg	* error.c (dump_function_decl): Likewise.
3017*c3d31fe1Smrg	* call.c (build_user_type_conversion_1,	convert_like_real): Abort
3018*c3d31fe1Smrg	if we try to call a constructor with in-charge or VTT parms.
3019*c3d31fe1Smrg	* method.c (skip_artificial_parms_for): New fn.
3020*c3d31fe1Smrg	* call.c (add_function_candidate, build_over_call): Call it.
3021*c3d31fe1Smrg	* call.c (build_new_method_call): Use current_vtt_parm.
3022*c3d31fe1Smrg	* init.c (expand_virtual_init): Likewise.
3023*c3d31fe1Smrg	* class.c (same_signature_p): No longer static.
3024*c3d31fe1Smrg	* cp-tree.h: Declare it.
3025*c3d31fe1Smrg	* search.c (look_for_overrides_r): Use it.
3026*c3d31fe1Smrg
3027*c3d31fe1Smrg2001-02-17  Mark Mitchell  <mark@codesourcery.com>
3028*c3d31fe1Smrg
3029*c3d31fe1Smrg	* cp-tree.h (new_abi_rtti_p): Remove.
3030*c3d31fe1Smrg	(name_mangling_version): Likewise.
3031*c3d31fe1Smrg	(flag_do_squangling): Likewise.
3032*c3d31fe1Smrg	* class.c (build_rtti_vtbl_entries): Remove old ABI support.
3033*c3d31fe1Smrg	* decl.c (grokfndecl): Likewise.
3034*c3d31fe1Smrg	* decl2.c (name_mangling_version): Remove.
3035*c3d31fe1Smrg	(flag_do_squangling): Likewise.
3036*c3d31fe1Smrg	(lang_f_options): Remove `squangle'.
3037*c3d31fe1Smrg	(unsupported_options): Add `squangle'.
3038*c3d31fe1Smrg	(cxx_decode_option): Issue a warning about uses of
3039*c3d31fe1Smrg	-fname-mangling-version.
3040*c3d31fe1Smrg	(finish_file): Remove old ABI support.
3041*c3d31fe1Smrg	* pt.c (check_explicit_specialization): Likewise.
3042*c3d31fe1Smrg	(tsubst_decl): Likewise.
3043*c3d31fe1Smrg	* rtti.c (init_rtti_processing): Likewise.
3044*c3d31fe1Smrg	(build_headof): Likewise.
3045*c3d31fe1Smrg	(get_tinfo_decl_dynamic): Likewise.
3046*c3d31fe1Smrg	(tinfo_from_decl): Likewise.
3047*c3d31fe1Smrg	(build_dynamic_cast_1): Likewise.
3048*c3d31fe1Smrg	(synthesize_tinfo_var): Likewise.
3049*c3d31fe1Smrg	* init.c (build_new): Allow enumeration types for the array-bounds
3050*c3d31fe1Smrg	in a direct-new-declarator.
3051*c3d31fe1Smrg
3052*c3d31fe1Smrg	* semantics.c (finish_typeof): Resolve OFFSET_REFs.
3053*c3d31fe1Smrg
3054*c3d31fe1Smrg	* pt.c (check_explicit_specialization): Copy TREE_PRIVATE and
3055*c3d31fe1Smrg	TREE_PROTECTED from the template being specialized.
3056*c3d31fe1Smrg
3057*c3d31fe1Smrg2001-02-17  Jason Merrill  <jason@redhat.com>
3058*c3d31fe1Smrg
3059*c3d31fe1Smrg	* decl2.c (build_artificial_parm): Set TREE_READONLY.
3060*c3d31fe1Smrg
3061*c3d31fe1Smrg	* decl.c (bad_specifiers): Allow throw specs on things with
3062*c3d31fe1Smrg	pointer-to-function or -member-function type.
3063*c3d31fe1Smrg	* init.c (build_default_init): Don't use a CONSTRUCTOR to initialize
3064*c3d31fe1Smrg	a pmf.
3065*c3d31fe1Smrg
3066*c3d31fe1Smrg2001-02-17  Mark Mitchell  <mark@codesourcery.com>
3067*c3d31fe1Smrg
3068*c3d31fe1Smrg	* call.c (check_dtor_name): Handle template names correctly.
3069*c3d31fe1Smrg
3070*c3d31fe1Smrg2001-02-16  Jason Merrill  <jason@redhat.com>
3071*c3d31fe1Smrg
3072*c3d31fe1Smrg	* cp-tree.h (DECL_USE_VTT_PARM): Remove.
3073*c3d31fe1Smrg	* decl2.c (maybe_retrofit_in_chrg): Don't create it.
3074*c3d31fe1Smrg	* optimize.c (maybe_clone_body): Don't substitute it.
3075*c3d31fe1Smrg	* call.c (build_new_method_call): Check in_chrg instead.
3076*c3d31fe1Smrg	* init.c (expand_virtual_init): Likewise.
3077*c3d31fe1Smrg
3078*c3d31fe1Smrg2001-02-16  Gabriel Dos Reis  <gdr@codesourcery.com>
3079*c3d31fe1Smrg
3080*c3d31fe1Smrg	* decl.c (check_tag_decl): Make sure a typedef for an anonymous
3081*c3d31fe1Smrg	class-type introduces at least a type-name.
3082*c3d31fe1Smrg
3083*c3d31fe1Smrg2001-02-16  Jakub Jelinek  <jakub@redhat.com>
3084*c3d31fe1Smrg
3085*c3d31fe1Smrg	* call.c (convert_like_real): Create a temporary for non-lvalue.
3086*c3d31fe1Smrg
3087*c3d31fe1Smrg2001-02-16  Jeffrey Oldham  <oldham@codesourcery.com>
3088*c3d31fe1Smrg
3089*c3d31fe1Smrg	* cp-tree.h: Fix typos in comments.
3090*c3d31fe1Smrg
3091*c3d31fe1Smrg2001-02-16  Jason Merrill  <jason@redhat.com>
3092*c3d31fe1Smrg
3093*c3d31fe1Smrg	* optimize.c (remap_block): If we're compiling a clone, pass the
3094*c3d31fe1Smrg	new block to insert_block.
3095*c3d31fe1Smrg
3096*c3d31fe1Smrg2001-02-16  Mark Mitchell  <mark@codesourcery.com>
3097*c3d31fe1Smrg
3098*c3d31fe1Smrg	* semantics.c (finish_asm_stmt): Robustify.
3099*c3d31fe1Smrg
3100*c3d31fe1Smrg2001-02-15  Mark Mitchell  <mark@codesourcery.com>
3101*c3d31fe1Smrg
3102*c3d31fe1Smrg	* pt.c (push_template_decl_real): Don't remangle the name of a
3103*c3d31fe1Smrg	class template.
3104*c3d31fe1Smrg
3105*c3d31fe1Smrg2001-02-15  Jim Meyering  <meyering@lucent.com>
3106*c3d31fe1Smrg
3107*c3d31fe1Smrg	* Make-lang.in (c++.install-common): Depend on installdirs.
3108*c3d31fe1Smrg	(c++.install-info): Likewise.
3109*c3d31fe1Smrg	(c++.install-man): Likewise.
3110*c3d31fe1Smrg
3111*c3d31fe1Smrg2001-02-15  Mark Mitchell  <mark@codesourcery.com>
3112*c3d31fe1Smrg
3113*c3d31fe1Smrg	* typeck2.c (build_m_component_ref): Robustify.
3114*c3d31fe1Smrg
3115*c3d31fe1Smrg2001-02-15  Alexandre Oliva  <aoliva@redhat.com>
3116*c3d31fe1Smrg
3117*c3d31fe1Smrg	* friend.c (do_friend): Don't take the nested [template] class
3118*c3d31fe1Smrg	into account when deciding whether to warn about the friend
3119*c3d31fe1Smrg	function not referring to a template function.
3120*c3d31fe1Smrg
3121*c3d31fe1Smrg2001-02-14  Jakub Jelinek  <jakub@redhat.com>
3122*c3d31fe1Smrg
3123*c3d31fe1Smrg	* typeck.c (build_unary_op): Clarify error message.
3124*c3d31fe1Smrg
3125*c3d31fe1Smrg2001-02-08  Aldy Hernandez  <aldyh@redhat.com>
3126*c3d31fe1Smrg
3127*c3d31fe1Smrg	* parse.y (component_constructor_declarator): allow optional
3128*c3d31fe1Smrg	parentheses around constructor class name.
3129*c3d31fe1Smrg
3130*c3d31fe1Smrg2001-02-14  Nathan Sidwell  <nathan@codesourcery.com>
3131*c3d31fe1Smrg
3132*c3d31fe1Smrg	* cp-tree.h (setup_vtbl_ptr): Move prototype to semantics.c
3133*c3d31fe1Smrg	section.
3134*c3d31fe1Smrg	* init.c (emit_base_init): Remove incorrect comment about
3135*c3d31fe1Smrg	virtual bases.
3136*c3d31fe1Smrg	* method.c (make_thunk): Fix comment alignment.
3137*c3d31fe1Smrg
3138*c3d31fe1Smrg2001-02-14  Nathan Sidwell  <nathan@codesourcery.com>
3139*c3d31fe1Smrg
3140*c3d31fe1Smrg	Kill remnants of this is variable.
3141*c3d31fe1Smrg	* cp-tree.h (flag_this_is_variable): Remove.
3142*c3d31fe1Smrg	* decl2.c (flag_this_is_variable): Remove.
3143*c3d31fe1Smrg	* class.c (fixed_type_or_null): Add cdtor parm. Adjust.
3144*c3d31fe1Smrg	(build_vbase_path): The path is non-static, even in a cdtor.
3145*c3d31fe1Smrg	(resolves_to_fixed_type_p): Add additional return value.
3146*c3d31fe1Smrg	* search.c (init_vbase_pointers): Adjust.
3147*c3d31fe1Smrg	* tree.c (lvalue_p_1): Adjust.
3148*c3d31fe1Smrg	* typeck.c (mark_addressable): Adjust.
3149*c3d31fe1Smrg
3150*c3d31fe1Smrg2001-02-14  Nathan Sidwell  <nathan@codesourcery.com>
3151*c3d31fe1Smrg
3152*c3d31fe1Smrg	* pt.c (unify): Don't check cv quals of array types.
3153*c3d31fe1Smrg
3154*c3d31fe1Smrg2001-02-14  Nathan Sidwell  <nathan@codesourcery.com>
3155*c3d31fe1Smrg
3156*c3d31fe1Smrg	* tree.c (cp_build_qualified_type_real): Use CP_TYPE_QUALS to
3157*c3d31fe1Smrg	check whether we already have the type.
3158*c3d31fe1Smrg
3159*c3d31fe1Smrg2001-02-13  Mark Mitchell  <mark@codesourcery.com>
3160*c3d31fe1Smrg
3161*c3d31fe1Smrg	* cp-tree.h (CLASSTYPE_DESTRUCTORS): Fix typo in comment.
3162*c3d31fe1Smrg	* call.c (build_op_delete_call): Simplify to remove duplicate
3163*c3d31fe1Smrg	code.
3164*c3d31fe1Smrg	* class.c (clone_function_decl): Don't build the deleting variant
3165*c3d31fe1Smrg	of a non-virtual destructor.
3166*c3d31fe1Smrg	* decl.c (finish_destructor_body): Don't call delete if this is a
3167*c3d31fe1Smrg	non-virtual destructor.
3168*c3d31fe1Smrg	* init.c (build_delete): Explicitly call `operator delete' when
3169*c3d31fe1Smrg	deleting an object with a non-virtual destructor.
3170*c3d31fe1Smrg
3171*c3d31fe1Smrg2001-02-13  Jason Merrill  <jason@redhat.com>
3172*c3d31fe1Smrg
3173*c3d31fe1Smrg	* lang-specs.h: Add more __EXCEPTIONS.
3174*c3d31fe1Smrg
3175*c3d31fe1Smrg2001-02-12  Nathan Sidwell  <nathan@codesourcery.com>
3176*c3d31fe1Smrg
3177*c3d31fe1Smrg	* typeck2.c (process_init_constructor): Check
3178*c3d31fe1Smrg	TREE_HAS_CONSTRUCTOR before issuing missing init warning.
3179*c3d31fe1Smrg
3180*c3d31fe1Smrg2001-02-12  Nathan Sidwell  <nathan@codesourcery.com>
3181*c3d31fe1Smrg
3182*c3d31fe1Smrg	* pt.c (maybe_adjust_types_for_deduction, DEDUCE_ORDER case):
3183*c3d31fe1Smrg	Remove spurious information in comment. Allow further
3184*c3d31fe1Smrg	adjustments of REFERENCE_TYPE args.
3185*c3d31fe1Smrg
3186*c3d31fe1Smrg2001-02-12  Nathan Sidwell  <nathan@codesourcery.com>
3187*c3d31fe1Smrg
3188*c3d31fe1Smrg	* errfn.c (cp_deprecated): Tweak diagnostic text.
3189*c3d31fe1Smrg	* parse.y (new_initializer): Deprecate initializer lists
3190*c3d31fe1Smrg	extension.
3191*c3d31fe1Smrg
3192*c3d31fe1Smrg2001-02-12  Mark Mitchell  <mark@codesourcery.com>
3193*c3d31fe1Smrg
3194*c3d31fe1Smrg	Remove old ABI support.
3195*c3d31fe1Smrg
3196*c3d31fe1Smrg2001-02-11  Mark Mitchell  <mark@codesourcery.com>
3197*c3d31fe1Smrg
3198*c3d31fe1Smrg	* decl2.c (flag_vtable_thunks): Always set it to 1.
3199*c3d31fe1Smrg	(flag_new_abi): Likewise.
3200*c3d31fe1Smrg	* lang-specs.h: Remove conditional on ENABLE_NEW_GXX_ABI.
3201*c3d31fe1Smrg
3202*c3d31fe1Smrg	* Makefile.in (g++spec.o): Fix typo.
3203*c3d31fe1Smrg
3204*c3d31fe1Smrg2001-02-09  Jason Merrill  <jason@redhat.com>
3205*c3d31fe1Smrg
3206*c3d31fe1Smrg	* lang-specs.h: Restore definition of __EXCEPTIONS.
3207*c3d31fe1Smrg
3208*c3d31fe1Smrg2001-02-08  Jason Merrill  <jason@redhat.com>
3209*c3d31fe1Smrg
3210*c3d31fe1Smrg	* search.c (shared_member_p): New function.
3211*c3d31fe1Smrg	(lookup_field_r): Use it.
3212*c3d31fe1Smrg	* cp-tree.h (SHARED_MEMBER_P): Remove.
3213*c3d31fe1Smrg
3214*c3d31fe1Smrg	* method.c (process_overload_item): Handle template-dependent array
3215*c3d31fe1Smrg	bounds.
3216*c3d31fe1Smrg	* pt.c (type_unification_real): If we end up with undeduced nontype
3217*c3d31fe1Smrg	parms, try again.
3218*c3d31fe1Smrg
3219*c3d31fe1Smrg	* decl.c (lookup_name_real): Tweak warning to refer to decls, not
3220*c3d31fe1Smrg	types.
3221*c3d31fe1Smrg
3222*c3d31fe1Smrg	* typeck2.c (friendly_abort): Don't say anything if we have
3223*c3d31fe1Smrg	earlier errors or sorries.
3224*c3d31fe1Smrg
3225*c3d31fe1Smrg	* decl.c (check_tag_decl): Notice attempts to redefine bool and
3226*c3d31fe1Smrg	wchar_t.  Ignore if in_system_header.
3227*c3d31fe1Smrg
3228*c3d31fe1Smrg	* decl.c (maybe_push_cleanup_level): New fn...
3229*c3d31fe1Smrg	(start_decl_1): ...split out from here.
3230*c3d31fe1Smrg	* cvt.c (build_up_reference): Use it.
3231*c3d31fe1Smrg	* cp-tree.h: Declare it.
3232*c3d31fe1Smrg
3233*c3d31fe1Smrg2001-02-07  Mark Mitchell  <mark@codesourcery.com>
3234*c3d31fe1Smrg
3235*c3d31fe1Smrg	* lang-specs.h: Use CPLUSPLUS_CPP_SPEC for the preprocessor
3236*c3d31fe1Smrg	spec.
3237*c3d31fe1Smrg
3238*c3d31fe1Smrg2001-02-06  Nathan Sidwell  <nathan@codesourcery.com>
3239*c3d31fe1Smrg
3240*c3d31fe1Smrg	* pt.c (lookup_template_class): Make sure it's a primary
3241*c3d31fe1Smrg	template or template_template_parm when called from the parser.
3242*c3d31fe1Smrg	(instantiate_template_class): Add assertion.
3243*c3d31fe1Smrg
3244*c3d31fe1Smrg2001-02-05  Alexandre Oliva  <aoliva@redhat.com>
3245*c3d31fe1Smrg
3246*c3d31fe1Smrg	* method.c (build_mangled_name) [old abi]: Protect flush_repeats()
3247*c3d31fe1Smrg	from error_mark_node.
3248*c3d31fe1Smrg
3249*c3d31fe1Smrg2001-02-05  Nathan Sidwell  <nathan@codesourcery.com>
3250*c3d31fe1Smrg
3251*c3d31fe1Smrg	Fix specification and implementation bugs in V3 ABI
3252*c3d31fe1Smrg	construction vtables.
3253*c3d31fe1Smrg	* cp-tree.h (flag_dump_class_layout): New flag.
3254*c3d31fe1Smrg	(BINFO_OVERRIDE_ALONG_VIRTUAL_PATH_P): Remove.
3255*c3d31fe1Smrg	(BINFO_LOST_PRIMARY_P): New flag.
3256*c3d31fe1Smrg	(SET_BINFO_NEW_VTABLE_MARKED): Adjust asserts.
3257*c3d31fe1Smrg	(BINFO_PRIMARY_MARKED_P): Rename to ...
3258*c3d31fe1Smrg	(BINFO_PRIMARY_P): ... here.
3259*c3d31fe1Smrg	(binfo_via_virtual): New prototype.
3260*c3d31fe1Smrg	* decl2.c (flag_dump_class_layout): New flag.
3261*c3d31fe1Smrg	(cxx_decode_option): Set it. Adjust -fdump-translation-unit to
3262*c3d31fe1Smrg	use `=' as a file name separator.
3263*c3d31fe1Smrg	* init.c (dfs_initialize_vtbl_ptrs): Walk into virtual primary
3264*c3d31fe1Smrg	bases.
3265*c3d31fe1Smrg	(build_vtbl_address): If this is a virtual primary base, then
3266*c3d31fe1Smrg	get the vtbl of what it is ultimately primary for.
3267*c3d31fe1Smrg	* search.c (dfs_skip_nonprimary_vbases_unmarkedp): Adjust
3268*c3d31fe1Smrg	for BINFO_PRIMARY_P.
3269*c3d31fe1Smrg	(dfs_skip_nonprimary_vbases_markedp): Likewise.
3270*c3d31fe1Smrg	(get_shared_vbase_if_not_primary): Likewise.
3271*c3d31fe1Smrg	(dfs_get_pure_virtuals): Likewise.
3272*c3d31fe1Smrg	(expand_upcast_fixups): Likewise.
3273*c3d31fe1Smrg	(fixup_virtual_upcast_offsets): Likewise.
3274*c3d31fe1Smrg	(dfs_find_vbase_instance): Likewise.
3275*c3d31fe1Smrg	(find_vbase_instance): Likewise.
3276*c3d31fe1Smrg	(binfo_from_vbase): Adjust comment to reflect reality.
3277*c3d31fe1Smrg	(binfo_via_virtual): New function.
3278*c3d31fe1Smrg	* class.c (VTT_TOP_LEVEL_P, VTT_MARKED_BINFO_P): New macros
3279*c3d31fe1Smrg	for binfo walking during VTT construction.
3280*c3d31fe1Smrg	(dfs_mark_primary_bases): Remove.
3281*c3d31fe1Smrg	(force_canonical_binfo_r): New function.
3282*c3d31fe1Smrg	(force_canonical_binfo): New function.
3283*c3d31fe1Smrg	(mark_primary_virtual_base): New function.
3284*c3d31fe1Smrg	(mark_primary_bases): Walk in inheritance graph order, use
3285*c3d31fe1Smrg	mark_primary_virtual_base.
3286*c3d31fe1Smrg	(determine_primary_base): Use some more intermediate variables.
3287*c3d31fe1Smrg	(dfs_find_final_overrider): Don't check for overriding along a
3288*c3d31fe1Smrg	virtual path.
3289*c3d31fe1Smrg	(dfs_modify_vtables): Walk into primary virtual bases too.
3290*c3d31fe1Smrg	(walk_subobject_offsets): Adjust for BINFO_PRIMARY_P.
3291*c3d31fe1Smrg	(build_base_fields): Likewise.
3292*c3d31fe1Smrg	(dfs_set_offset_for_unshared_vbases): Likewise.
3293*c3d31fe1Smrg	(layout_virtual_bases): Likewise.
3294*c3d31fe1Smrg	(end_of_class): Likewise.
3295*c3d31fe1Smrg	(finish_struct_1): Call dump_class_hierarchy, if requested.
3296*c3d31fe1Smrg	(dfs_get_primary_binfo): Use BINFO_TYPE for binfos.
3297*c3d31fe1Smrg	(dump_class_hierarchy_r): Add stream parameter. Emit more information.
3298*c3d31fe1Smrg	(dump_class_hierarchy): Add file parameter. Append to file, if
3299*c3d31fe1Smrg	required.
3300*c3d31fe1Smrg	(finish_vtbls): Adjust accumulate_vtbl_inits call.
3301*c3d31fe1Smrg	Use canonical base for virtual bases.
3302*c3d31fe1Smrg	(build_vtt): Add more comments. Adjust build_vtt_inits call.
3303*c3d31fe1Smrg	(build_vtt_inits): Remove VIRTUAL_VTTS_P parm.
3304*c3d31fe1Smrg	Only set BINFO_VPTR_INDEX on top level. Use VTT_TOP_LEVEL_P,
3305*c3d31fe1Smrg	VTT_MARKED_BINFO_P for binfo walking. Use canonical vbase for
3306*c3d31fe1Smrg	virtual VTTs.
3307*c3d31fe1Smrg	(dfs_build_secondary_vptr_vtt_inits): Extract VTT_TOP_LEVEL_P
3308*c3d31fe1Smrg	from DATA.  We want virtual primary bases and all bases via virtual.
3309*c3d31fe1Smrg	Only set BINFO_VPTR_INDEX for top level. Look up from a primary
3310*c3d31fe1Smrg	virtual base when not a construction vtable.
3311*c3d31fe1Smrg	(dfs_ctor_vtable_bases_queue_p): New DFS predicate.
3312*c3d31fe1Smrg	(build_ctor_vtbl_group): Adjust accumulate_vtbl_inits call.
3313*c3d31fe1Smrg	Use canonical bases when processing virtual bases.
3314*c3d31fe1Smrg	(accumulate_vtbl_inits): We're interested in any base via a
3315*c3d31fe1Smrg	virtual path.
3316*c3d31fe1Smrg	(dfs_accumulate_vtbl_inits): If this is a primary virtual base
3317*c3d31fe1Smrg	within a construction vtable, determine what is being overridden.
3318*c3d31fe1Smrg	(build_vtbl_initializer): Add more comments
3319*c3d31fe1Smrg	(add_vcall_offset_vtbl_entries_1): Adjust comment.
3320*c3d31fe1Smrg	(build_rtti_vtbl_entries): Check if the base has lost its
3321*c3d31fe1Smrg	primary.
3322*c3d31fe1Smrg
3323*c3d31fe1Smrg2001-02-05  Mark Mitchell  <mark@codesourcery.com>
3324*c3d31fe1Smrg
3325*c3d31fe1Smrg	* Makefile.in (g++spec.o): Adjust use of DRIVER_DEFINES.
3326*c3d31fe1Smrg
3327*c3d31fe1Smrg2001-02-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3328*c3d31fe1Smrg
3329*c3d31fe1Smrg	* decl.c (pushdecl): Call abort instead of fatal.
3330*c3d31fe1Smrg	* except.c (decl_is_java_type): Call fatal_error instead of fatal.
3331*c3d31fe1Smrg	* init.c (build_new_1): Likewise.
3332*c3d31fe1Smrg	(build_java_class_ref): Call internal_error and fatal_error, not fatal.
3333*c3d31fe1Smrg	* decl.c (build_typename_type): hash_table_init now returns void.
3334*c3d31fe1Smrg	decl.c (init_decl_processing): Make an error non-fatal.
3335*c3d31fe1Smrg
3336*c3d31fe1Smrg2001-02-04  Mark Mitchell  <mark@codesourcery.com>
3337*c3d31fe1Smrg
3338*c3d31fe1Smrg	* cp-tree.h (CLASSTYPE_INTERFACE_UNKNOWN): Fix formatting.
3339*c3d31fe1Smrg	Document.
3340*c3d31fe1Smrg	(CLASSTYPE_INTERFACE_KNOWN): Likewise.
3341*c3d31fe1Smrg	(SET_CLASSTYPE_INTERFACE_UNKNOWN_X): Likewise.
3342*c3d31fe1Smrg	(SET_CLASSTYPE_INTERFACE_UNKNOWN): Likewise.
3343*c3d31fe1Smrg	(SET_CLASSTYPE_INTERFACE_KNOWN): Likewise.
3344*c3d31fe1Smrg	* decl.c (maybe_commonize_var): Use the new name-mangling where
3345*c3d31fe1Smrg	appropriate.
3346*c3d31fe1Smrg	* decl2.c (comdat_linkage): Enhance comments.  Make all
3347*c3d31fe1Smrg	compiler-generated things static, if COMDAT is not available.
3348*c3d31fe1Smrg	(get_tinfo_decl): Do not make typeinfo objects that belong in the
3349*c3d31fe1Smrg	library COMDAT.
3350*c3d31fe1Smrg	(tinfo_base_init): Use the correct mangled name for typeinfo
3351*c3d31fe1Smrg	strings, and push them into the global scope.
3352*c3d31fe1Smrg	(typeinfo_in_lib_p): New function.
3353*c3d31fe1Smrg	(synthesize_tinfo_var): Use it.
3354*c3d31fe1Smrg	(create_real_tinfo_var): Likewise.
3355*c3d31fe1Smrg
3356*c3d31fe1Smrg2001-02-03  Jakub Jelinek  <jakub@redhat.com>
3357*c3d31fe1Smrg
3358*c3d31fe1Smrg	* decl.c (push_class_binding): Use context_for_name_lookup instead
3359*c3d31fe1Smrg	of CP_DECL_CONTEXT.
3360*c3d31fe1Smrg	* search.c (context_for_name_lookup): Remove static.  Check for NULL
3361*c3d31fe1Smrg	context in the loop.
3362*c3d31fe1Smrg	* cp-tree.h (context_for_name_lookup): Add prototype.
3363*c3d31fe1Smrg
3364*c3d31fe1Smrg2001-02-02  Jakub Jelinek  <jakub@redhat.com>
3365*c3d31fe1Smrg
3366*c3d31fe1Smrg	* cp-tree.h (build_expr_ptr_wrapper, can_free): Remove.
3367*c3d31fe1Smrg	* tree.c (build_expr_ptr_wrapper, can_free, permanent_obstack):
3368*c3d31fe1Smrg	Remove.
3369*c3d31fe1Smrg	* call.c (convert_class_to_reference, build_user_type_conversion_1,
3370*c3d31fe1Smrg	add_warning): Change build_expr_ptr_wrapper to build_ptr_wrapper.
3371*c3d31fe1Smrg
3372*c3d31fe1Smrg2001-02-02  Mark Mitchell  <mark@codesourcery.com>
3373*c3d31fe1Smrg
3374*c3d31fe1Smrg	* Make-lang.in (g++spec.o): Add DRIVER_DEFINES to the list
3375*c3d31fe1Smrg	of macros used when compiling g++spec.c.
3376*c3d31fe1Smrg	* g++spec.c (lang_specific_driver): Link with the shared
3377*c3d31fe1Smrg	libgcc by default.
3378*c3d31fe1Smrg
3379*c3d31fe1Smrg2001-01-29  Joseph S. Myers  <jsm28@cam.ac.uk>
3380*c3d31fe1Smrg
3381*c3d31fe1Smrg	* decl2.c (build_expr_from_tree), lex.c (make_pointer_declarator,
3382*c3d31fe1Smrg	make_reference_declarator, make_call_declarator), method.c
3383*c3d31fe1Smrg	(implicitly_declare_fn), parse.y (namespace_using_decl,
3384*c3d31fe1Smrg	notype_unqualified_id, expr_or_declarator, new_type_id,
3385*c3d31fe1Smrg	after_type_declarator, direct_after_type_declarator,
3386*c3d31fe1Smrg	notype_declarator, complex_notype_declarator,
3387*c3d31fe1Smrg	complex_direct_notype_declarator, qualified_id,
3388*c3d31fe1Smrg	notype_qualified_id, overqualified_id, direct_new_declarator,
3389*c3d31fe1Smrg	absdcl, direct_abstract_declarator, conversion_declarator), pt.c
3390*c3d31fe1Smrg	(tsubst), semantics.c (begin_constructor_declarator): Use build_nt
3391*c3d31fe1Smrg	instead of build_parse_node.
3392*c3d31fe1Smrg
3393*c3d31fe1Smrg2001-01-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3394*c3d31fe1Smrg
3395*c3d31fe1Smrg	* cp-tree.h (cp_tree_index): Delete CPTI_MINUS_ONE.
3396*c3d31fe1Smrg	(minus_one_node): Moved to top level gcc directory.  Renamed
3397*c3d31fe1Smrg	to integer_minus_one_node.
3398*c3d31fe1Smrg
3399*c3d31fe1Smrg	* init.c (init_init_processing): Don't set minus_one_node.
3400*c3d31fe1Smrg	(build_vec_init): Use integer_minus_one_node.
3401*c3d31fe1Smrg
3402*c3d31fe1Smrg	* rtti.c (get_tinfo_decl_dynamic): Likewise.
3403*c3d31fe1Smrg
3404*c3d31fe1Smrg2001-01-28  Jakub Jelinek  <jakub@redhat.com>
3405*c3d31fe1Smrg
3406*c3d31fe1Smrg	* optimize.c (copy_body_r): If MODIFY_EXPR has both arguments
3407*c3d31fe1Smrg	identical and they would be replaced with constant, remove
3408*c3d31fe1Smrg	MODIFY_EXPR from the tree.
3409*c3d31fe1Smrg
3410*c3d31fe1Smrg2001-01-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3411*c3d31fe1Smrg
3412*c3d31fe1Smrg	* Make-lang.in: Remove all dependencies on defaults.h.
3413*c3d31fe1Smrg	* call.c: Don't include defaults.h.
3414*c3d31fe1Smrg	* decl.c: Likewise.
3415*c3d31fe1Smrg	* decl2.c: Likewise.
3416*c3d31fe1Smrg	* except.c: Likewise.
3417*c3d31fe1Smrg	* pt.c: Likewise.
3418*c3d31fe1Smrg	* rtti.c: Likewise.
3419*c3d31fe1Smrg	* tree.c: Likewise.
3420*c3d31fe1Smrg	* typeck.c: Likewise.
3421*c3d31fe1Smrg
3422*c3d31fe1Smrg2001-01-25  Jakub Jelinek  <jakub@redhat.com>
3423*c3d31fe1Smrg
3424*c3d31fe1Smrg	* mangle.c (write_mangled_name, write_encoding): Mangle overloaded
3425*c3d31fe1Smrg	operators even in "C" linkage.
3426*c3d31fe1Smrg	* method.c (set_mangled_name_for_decl): Likewise.
3427*c3d31fe1Smrg	* decl.c (grokfndecl): Call set_mangled_name_for_decl even for
3428*c3d31fe1Smrg	overloaded operators in "C" linkage.
3429*c3d31fe1Smrg
3430*c3d31fe1Smrg2001-01-24  Nathan Sidwell  <nathan@codesourcery.com>
3431*c3d31fe1Smrg
3432*c3d31fe1Smrg	* pt.c (tsubst_decl): Remove IN_DECL parameter.
3433*c3d31fe1Smrg	(tsubst_arg_types): Check parameter is not void.
3434*c3d31fe1Smrg	(tsubst): Adjust tsubst_decl call.
3435*c3d31fe1Smrg
3436*c3d31fe1Smrg2001-01-24  Nathan Sidwell  <nathan@codesourcery.com>
3437*c3d31fe1Smrg
3438*c3d31fe1Smrg	* call.c (add_builtin_candidate): Quote std properly, from
3439*c3d31fe1Smrg	previous change.
3440*c3d31fe1Smrg
3441*c3d31fe1Smrg2001-01-23  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
3442*c3d31fe1Smrg
3443*c3d31fe1Smrg	* pt.c (check_explicit_specialization): Clone constructors and
3444*c3d31fe1Smrg	destructors.
3445*c3d31fe1Smrg
3446*c3d31fe1Smrg2001-01-23  Nathan Sidwell  <nathan@codesourcery.com>
3447*c3d31fe1Smrg
3448*c3d31fe1Smrg	* decl.c (grokdeclarator): Don't presume DECL_LANG_SPECIFIC
3449*c3d31fe1Smrg	indicates anything special about template depth. Make sure we
3450*c3d31fe1Smrg	only count the user visible template classes.
3451*c3d31fe1Smrg
3452*c3d31fe1Smrg2001-01-23  Nathan Sidwell  <nathan@codesourcery.com>
3453*c3d31fe1Smrg
3454*c3d31fe1Smrg	* call.c (build_conv): Typo in comment.
3455*c3d31fe1Smrg	(add_builtin_candidate): Add more explanation.
3456*c3d31fe1Smrg	Remove extra test for ENUMERAL_TYPE in {PRE,POST}INCREMENT_EXPR.
3457*c3d31fe1Smrg	Allow ENUMERAL_TYPEs for relops and eqops. Add both candidates
3458*c3d31fe1Smrg	when we have enumeral types.
3459*c3d31fe1Smrg	(add_builtin_candidates): Add more explanation. Add ENUMERAL_TYPE
3460*c3d31fe1Smrg	candidates for relops and eqops.
3461*c3d31fe1Smrg	(joust): Simplify control flow. Allow a non-template user
3462*c3d31fe1Smrg	function to hide a builtin.
3463*c3d31fe1Smrg
3464*c3d31fe1Smrg2001-01-22  Nathan Sidwell  <nathan@codesourcery.com>
3465*c3d31fe1Smrg
3466*c3d31fe1Smrg	* cp-tree.h (unification_kind_t): Add DEDUCE_ORDER.
3467*c3d31fe1Smrg	(more_specialized): Add deduction parameter.
3468*c3d31fe1Smrg	* call.c (joust): Adjust more_specialized call.
3469*c3d31fe1Smrg	* pt.c (UNIFY_ALLOW_OUTER_MORE_CV_QUAL,
3470*c3d31fe1Smrg	UNIFY_ALLOW_OUTER_LESS_CV_QUAL): New unify flags.
3471*c3d31fe1Smrg	(get_bindings_order): Remove.
3472*c3d31fe1Smrg	(get_bindings_real): Add DEDUCE parameter.
3473*c3d31fe1Smrg	(maybe_adjust_types_for_deduction): Return extra unify flags. Do
3474*c3d31fe1Smrg	REFERENCE_TYPE jig for DEDUCE_ORDER.
3475*c3d31fe1Smrg	(type_unification_real): Deal with DEDUCE_ORDER. Use result of
3476*c3d31fe1Smrg	maybe_adjust_types_for_deduction.
3477*c3d31fe1Smrg	(more_specialized): Add DEDUCE parameter. Call get_bindings_real
3478*c3d31fe1Smrg	directly.
3479*c3d31fe1Smrg	(try_one_overload): Use result of maybe_adjust_types_for_deduction.
3480*c3d31fe1Smrg	(check_cv_quals_for_unify): Use new unify qualifier flags.
3481*c3d31fe1Smrg	(unify): Clear new unify qualifier flags.
3482*c3d31fe1Smrg	(get_bindings_real): Add DEDUCE parameter.
3483*c3d31fe1Smrg	(get_bindings): Adjust call to get_bindings_real.
3484*c3d31fe1Smrg	(get_bindings_overload): Likewise.
3485*c3d31fe1Smrg	(most_specialized_instantiation): Adjust call to
3486*c3d31fe1Smrg	more_specialized.
3487*c3d31fe1Smrg
3488*c3d31fe1Smrg2001-01-19  Jason Merrill  <jason@redhat.com>
3489*c3d31fe1Smrg
3490*c3d31fe1Smrg	* decl2.c (flag_vtable_thunks): Also depend on ENABLE_NEW_GXX_ABI.
3491*c3d31fe1Smrg
3492*c3d31fe1Smrg	* decl.c (init_decl_processing): Just force -fvtable-thunks on if
3493*c3d31fe1Smrg	-fnew-abi.
3494*c3d31fe1Smrg
3495*c3d31fe1Smrg2001-01-19  Ute Pelkmann  <scope.muc@t-online.de>
3496*c3d31fe1Smrg
3497*c3d31fe1Smrg	* decl2.c (arg_assoc_class): Fix double iteration logic.
3498*c3d31fe1Smrg
3499*c3d31fe1Smrg2001-01-19  Jason Merrill  <jason@redhat.com>
3500*c3d31fe1Smrg
3501*c3d31fe1Smrg	* init.c (build_delete): Always call convert_force to strip cv-quals.
3502*c3d31fe1Smrg
3503*c3d31fe1Smrg	* decl2.c (flag_new_abi): Depend on ENABLE_NEW_GXX_ABI.
3504*c3d31fe1Smrg	* lang-specs.h: Default ABI depends on ENABLE_NEW_GXX_ABI.
3505*c3d31fe1Smrg	* g++spec.c: Don't look at ENABLE_NEW_GXX_ABI.
3506*c3d31fe1Smrg
3507*c3d31fe1Smrg2001-01-19  Nathan Sidwell  <nathan@codesourcery.com>
3508*c3d31fe1Smrg
3509*c3d31fe1Smrg	* search.c (get_vbase_1): Count only virtual bases.
3510*c3d31fe1Smrg
3511*c3d31fe1Smrg2001-01-19  Nathan Sidwell  <nathan@codesourcery.com>
3512*c3d31fe1Smrg
3513*c3d31fe1Smrg	* class.c (duplicate_tag_error): Robustify flag clearing.
3514*c3d31fe1Smrg
3515*c3d31fe1Smrg2001-01-19  Nathan Sidwell  <nathan@codesourcery.com>
3516*c3d31fe1Smrg
3517*c3d31fe1Smrg	* cp-tree.h (lookup_template_class): Add complain parm.
3518*c3d31fe1Smrg	* decl.c (lookup_namespace_name): Adjust call to
3519*c3d31fe1Smrg	lookup_template_class.
3520*c3d31fe1Smrg	(make_typename_type): Likewise.
3521*c3d31fe1Smrg	* semantics.c (finish_template_type): Likewise.
3522*c3d31fe1Smrg	* pt.c (lookup_template_class): Add complain parm. Adjust.
3523*c3d31fe1Smrg	(tsubst_aggr_type): Pass COMPLAIN down to lookup_template_class.
3524*c3d31fe1Smrg	(tsubst): Likewise.
3525*c3d31fe1Smrg
3526*c3d31fe1Smrg2001-01-19  Nathan Sidwell  <nathan@codesourcery.com>
3527*c3d31fe1Smrg
3528*c3d31fe1Smrg	* pt.c (copy_default_args_to_explicit_spec): Preserve
3529*c3d31fe1Smrg	object's CV quals. Reorganize.
3530*c3d31fe1Smrg
3531*c3d31fe1Smrg2001-01-18  Nathan Sidwell  <nathan@codesourcery.com>
3532*c3d31fe1Smrg
3533*c3d31fe1Smrg	* typeck.c (build_modify_expr): Say `initialization' for
3534*c3d31fe1Smrg	INIT_EXPRs.
3535*c3d31fe1Smrg	* init.c (build_default_init): Convert to enumeral type, if
3536*c3d31fe1Smrg	needed.
3537*c3d31fe1Smrg
3538*c3d31fe1Smrg2001-01-18  Jakub Jelinek  <jakub@redhat.com>
3539*c3d31fe1Smrg
3540*c3d31fe1Smrg	* parse.y (nomods_initdcl0): Properly set things up for
3541*c3d31fe1Smrg	initdcl0_innards.
3542*c3d31fe1Smrg
3543*c3d31fe1Smrg2001-01-18  Nathan Sidwell  <nathan@codesourcery.com>
3544*c3d31fe1Smrg
3545*c3d31fe1Smrg	* pt.c (UNIFY_ALLOW_OUTER_LEVEL): New unify flag.
3546*c3d31fe1Smrg	(type_unification_real): Set it.
3547*c3d31fe1Smrg	(unify): Use it.
3548*c3d31fe1Smrg
3549*c3d31fe1Smrg2001-01-18  Nathan Sidwell  <nathan@codesourcery.com>
3550*c3d31fe1Smrg
3551*c3d31fe1Smrg	* decl.c (finish_destructor_body): Convert to vbase pointer here.
3552*c3d31fe1Smrg
3553*c3d31fe1Smrg2001-01-18  Nathan Sidwell  <nathan@codesourcery.com>
3554*c3d31fe1Smrg
3555*c3d31fe1Smrg	* semantics.c (begin_class_definition): Check we're not inside a
3556*c3d31fe1Smrg	template parm list.
3557*c3d31fe1Smrg
3558*c3d31fe1Smrg2001-01-18  Nathan Sidwell  <nathan@codesourcery.com>
3559*c3d31fe1Smrg
3560*c3d31fe1Smrg	* tree.c (walk_tree, TREE_LIST): Don't walk the TREE_PURPOSE of
3561*c3d31fe1Smrg	BASELINK_P.
3562*c3d31fe1Smrg
3563*c3d31fe1Smrg2001-01-16  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
3564*c3d31fe1Smrg
3565*c3d31fe1Smrg	* typeck.c (build_function_call_real): Call fold on the CALL_EXPR.
3566*c3d31fe1Smrg	* call.c (build_over_call): Add comment.
3567*c3d31fe1Smrg
3568*c3d31fe1Smrg2001-01-16 Daniel Berlin <dberlin@redhat.com>
3569*c3d31fe1Smrg
3570*c3d31fe1Smrg	* cvt.c (ocp_convert): Handle vector type conversion
3571*c3d31fe1Smrg	* typeck2.c (digest_init): Handle vector type initializations
3572*c3d31fe1Smrg
3573*c3d31fe1Smrg2001-01-16  Phil Edwards  <pme@sources.redhat.com>
3574*c3d31fe1Smrg
3575*c3d31fe1Smrg	* g++spec.c:  Don't add libraries needlessly if -fsyntax-only
3576*c3d31fe1Smrg	  was given.
3577*c3d31fe1Smrg
3578*c3d31fe1Smrg2001-01-15  Nathan Sidwell  <nathan@codesourcery.com>
3579*c3d31fe1Smrg
3580*c3d31fe1Smrg	* pt.c (check_nontype_parm): Rename to ...
3581*c3d31fe1Smrg	(invalid_nontype_parm_type_p): ... here.
3582*c3d31fe1Smrg	(process_template_parm): Adjust.
3583*c3d31fe1Smrg	(convert_template_argument): Adjust.
3584*c3d31fe1Smrg
3585*c3d31fe1Smrg2001-01-15  Nathan Sidwell  <nathan@codesourcery.com>
3586*c3d31fe1Smrg
3587*c3d31fe1Smrg	* pt.c (check_nontype_parm): New function.
3588*c3d31fe1Smrg	(process_template_parm): Use it.
3589*c3d31fe1Smrg	(convert_template_argument): Use it.
3590*c3d31fe1Smrg	(convert_nontype_argument, RECORD_TYPE): Assert it's a ptr to
3591*c3d31fe1Smrg	member.
3592*c3d31fe1Smrg
3593*c3d31fe1Smrg2001-01-14  Jeffrey Oldham  <oldham@codesourcery.com>
3594*c3d31fe1Smrg
3595*c3d31fe1Smrg	* tree.c: Add defaults.h
3596*c3d31fe1Smrg	(cp_valid_lang_attribute): Incorporate SUPPORTS_INIT_PRIORITY.
3597*c3d31fe1Smrg	* Make-lang.in (cp/tree.o): Add defaults.h.
3598*c3d31fe1Smrg
3599*c3d31fe1Smrg2001-01-13  Joseph S. Myers  <jsm28@cam.ac.uk>
3600*c3d31fe1Smrg
3601*c3d31fe1Smrg	* Make-lang.in (CXX_C_OBJS): Add c-format.o.
3602*c3d31fe1Smrg
3603*c3d31fe1Smrg2001-01-13  Joseph S. Myers  <jsm28@cam.ac.uk>
3604*c3d31fe1Smrg
3605*c3d31fe1Smrg	* g++.1: Change to be ".so man1/gcc.1".
3606*c3d31fe1Smrg
3607*c3d31fe1Smrg2001-01-13  Joseph S. Myers  <jsm28@cam.ac.uk>
3608*c3d31fe1Smrg
3609*c3d31fe1Smrg	* Make-lang.in (c++.info, c++.install-info): Build and install g++
3610*c3d31fe1Smrg	internals info.
3611*c3d31fe1Smrg	(c++.uninstall, c++.maintainer-clean): Remove g++ internals info.
3612*c3d31fe1Smrg	($(srcdir)/cp/g++int.info): New target.
3613*c3d31fe1Smrg	* gxxint.texi: Add info directory entry.  Use @@ in email address.
3614*c3d31fe1Smrg	* .cvsignore: Update.
3615*c3d31fe1Smrg
3616*c3d31fe1Smrg2001-01-12  Nathan Sidwell  <nathan@codesourcery.com>
3617*c3d31fe1Smrg
3618*c3d31fe1Smrg	* typeck.c (build_c_cast): Do template processing earlier.
3619*c3d31fe1Smrg	Always pedwarn on array casts.
3620*c3d31fe1Smrg
3621*c3d31fe1Smrg2001-01-12  Nathan Sidwell  <nathan@codesourcery.com>
3622*c3d31fe1Smrg
3623*c3d31fe1Smrg	* friend.c (make_friend_class): Make sure a templated class is
3624*c3d31fe1Smrg	actually a template.
3625*c3d31fe1Smrg
3626*c3d31fe1Smrg2001-01-11  Nathan Sidwell  <nathan@codesourcery.com>
3627*c3d31fe1Smrg
3628*c3d31fe1Smrg	* decl2.c (get_guard): Set linkage from guarded decl.
3629*c3d31fe1Smrg
3630*c3d31fe1Smrg2001-01-11  Nathan Sidwell  <nathan@codesourcery.com>
3631*c3d31fe1Smrg
3632*c3d31fe1Smrg	* call.c (convert_default_arg): Check for unprocessed
3633*c3d31fe1Smrg	DEFAULT_ARG.
3634*c3d31fe1Smrg	* cp-tree.h (replace_defarg): Move to spew.c.
3635*c3d31fe1Smrg	(maybe_snarf_defarg, add_defarg_fn, do_pending_defargs): Move to
3636*c3d31fe1Smrg	spew.c, which is where they really are.
3637*c3d31fe1Smrg	(done_pending_defargs): Declare.
3638*c3d31fe1Smrg	(unprocessed_defarg_fn): Declare.
3639*c3d31fe1Smrg	* decl.c (replace_defarg): Move to spew.c
3640*c3d31fe1Smrg	* parse.y (structsp): Call done_pending_defargs.
3641*c3d31fe1Smrg	* spew.c (defarg_fns): Rearrange list structure.
3642*c3d31fe1Smrg	(defarg_fnsdone): New static variable.
3643*c3d31fe1Smrg	(defarg_depfns): New static variable.
3644*c3d31fe1Smrg	(init_spew): Adjust.
3645*c3d31fe1Smrg	(add_defarg_fn): Store the type in TREE_TYPE.
3646*c3d31fe1Smrg	(do_pending_defargs): Detect and deal with ordering constraints
3647*c3d31fe1Smrg	and circularity.
3648*c3d31fe1Smrg	(done_pending_defargs): New function.
3649*c3d31fe1Smrg	(unprocessed_defarg_fn): New function.
3650*c3d31fe1Smrg	(replace_defarg): Moved from decl.c. Robustify. Don't save
3651*c3d31fe1Smrg	if circularity detected.
3652*c3d31fe1Smrg
3653*c3d31fe1Smrg2001-01-11  Nathan Sidwell  <nathan@codesourcery.com>
3654*c3d31fe1Smrg
3655*c3d31fe1Smrg	* pt.c (unify): Check array has a domain, before checking
3656*c3d31fe1Smrg	whether it is variable sized.
3657*c3d31fe1Smrg
3658*c3d31fe1Smrg2001-01-11  Nathan Sidwell  <nathan@codesourcery.com>
3659*c3d31fe1Smrg
3660*c3d31fe1Smrg	* decl.c (grokparms): Unobfuscate and get correct diagnostic for
3661*c3d31fe1Smrg	parameters with pointers to arrays of unknown bound.
3662*c3d31fe1Smrg
3663*c3d31fe1Smrg2001-01-11  Nathan Sidwell  <nathan@codesourcery.com>
3664*c3d31fe1Smrg
3665*c3d31fe1Smrg	* parse.y (template_parm_header, template_spec_header): New
3666*c3d31fe1Smrg	reductions. Split out from ...
3667*c3d31fe1Smrg	(template_header): ... here. Use them.
3668*c3d31fe1Smrg	(template_template_parm): Use template_parm_header.
3669*c3d31fe1Smrg	* semantics.c (finish_template_template_parm): Add assert.
3670*c3d31fe1Smrg
3671*c3d31fe1Smrg2001-01-10  Mark Mitchell  <mark@codesourcery.com>
3672*c3d31fe1Smrg
3673*c3d31fe1Smrg	* mangle.c (write_builtin_type): Fix thinko.
3674*c3d31fe1Smrg
3675*c3d31fe1Smrg	* pt.c (copy_default_args_to_explicit_spec_1): New function.
3676*c3d31fe1Smrg	(copy_default_args_to_explicit_spec): Likewise.
3677*c3d31fe1Smrg	(check_explicit_specialization): Use it.
3678*c3d31fe1Smrg
3679*c3d31fe1Smrg	* class.c (finish_struct_1):  Remove last argument in call to
3680*c3d31fe1Smrg	make_decl_rtl; use make_function_rtl instead of make_decl_rtl.
3681*c3d31fe1Smrg	* decl.c (builtin_function): Likewise.
3682*c3d31fe1Smrg	(build_cp_library_fn): Likewise.
3683*c3d31fe1Smrg	(check_initializer): Likewise.
3684*c3d31fe1Smrg	(make_rtl_for_nonlocal_decl): Likewise.
3685*c3d31fe1Smrg	(cp_finish_decl): Likewise.
3686*c3d31fe1Smrg	(start_function): Likewise.
3687*c3d31fe1Smrg	* decl2.c (finish_anon_union): Likewise.
3688*c3d31fe1Smrg	* friend.c (do_friend): Likewise.
3689*c3d31fe1Smrg	* init.c (build_java_class_ref): Likewise.
3690*c3d31fe1Smrg	* method.c (make_thunk): Likewise.
3691*c3d31fe1Smrg	* pt.c (tsubst_friend_function): Likewise.
3692*c3d31fe1Smrg	* semantics.c (expand_body): Likewise.
3693*c3d31fe1Smrg
3694*c3d31fe1Smrg2001-01-10  Mark Mitchell  <mark@codesourcery.com>
3695*c3d31fe1Smrg
3696*c3d31fe1Smrg	* cp-tree.h (DECL_CLONED_FUNCTION_P): Avoid wild reads by not
3697*c3d31fe1Smrg	looking at DECL_CLONED_FUNCTION for non-functions.
3698*c3d31fe1Smrg
3699*c3d31fe1Smrg2001-01-10  Nathan Sidwell  <nathan@codesourcery.com>
3700*c3d31fe1Smrg
3701*c3d31fe1Smrg	* error.c (dump_template_parameter): Use parm to determine how
3702*c3d31fe1Smrg	to print default value.
3703*c3d31fe1Smrg
3704*c3d31fe1Smrg2001-01-10  Nathan Sidwell  <nathan@codesourcery.com>
3705*c3d31fe1Smrg
3706*c3d31fe1Smrg	* class.c (duplicate_tag_error): Clear more flags.
3707*c3d31fe1Smrg
3708*c3d31fe1Smrg2001-01-10  Nathan Sidwell  <nathan@codesourcery.com>
3709*c3d31fe1Smrg
3710*c3d31fe1Smrg	* call.c (build_new_method_call): Use binfo_for_vbase.
3711*c3d31fe1Smrg
3712*c3d31fe1Smrg2001-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
3713*c3d31fe1Smrg
3714*c3d31fe1Smrg	* cp-tree.h (flag_cond_mismatch): Don't declare.
3715*c3d31fe1Smrg	* decl2.c (flag_cond_mismatch): Don't define.
3716*c3d31fe1Smrg	(lang_f_options): Remove cond-mismatch.
3717*c3d31fe1Smrg	(unsupported_options): Add cond-mismatch.
3718*c3d31fe1Smrg
3719*c3d31fe1Smrg2001-01-09  Nathan Sidwell  <nathan@codesourcery.com>
3720*c3d31fe1Smrg
3721*c3d31fe1Smrg	* class.c (handle_using_decl): Reject using of constructor name
3722*c3d31fe1Smrg	of sourcing class. Allow injecting of a method with same name as
3723*c3d31fe1Smrg	nested class. Fixup error messages.
3724*c3d31fe1Smrg
3725*c3d31fe1Smrg2001-01-09  Joseph S. Myers  <jsm28@cam.ac.uk>
3726*c3d31fe1Smrg
3727*c3d31fe1Smrg	* decl2.c (lang_decode_option): Handle -Wformat=2.
3728*c3d31fe1Smrg
3729*c3d31fe1Smrg2001-01-08  Nathan Sidwell  <nathan@codesourcery.com>
3730*c3d31fe1Smrg
3731*c3d31fe1Smrg	* cp-tree.h (lang_decl_flags): Rename defined_in_class to
3732*c3d31fe1Smrg	initialized_in_class.
3733*c3d31fe1Smrg	(DECL_DEFINED_IN_CLASS_P): Rename to ...
3734*c3d31fe1Smrg	(DECL_INITIALIZED_IN_CLASS_P): ... here, to reflect true meaning.
3735*c3d31fe1Smrg	* decl.c (duplicate_decls): Preseve DECL_INITIALIZED_IN_CLASS_P.
3736*c3d31fe1Smrg	(cp_finish_decl): Adjust for DECL_INITIALIZED_IN_CLASS_P.
3737*c3d31fe1Smrg	* pt.c (check_default_tmpl_args): Adjust for
3738*c3d31fe1Smrg	DECL_INITIALIZED_IN_CLASS_P.
3739*c3d31fe1Smrg	(instantiate_class_template): Likewise.
3740*c3d31fe1Smrg	(instantiate_decl): Check DECL_INITIALIZED_IN_CLASS_P.
3741*c3d31fe1Smrg
3742*c3d31fe1Smrg	* class.c (finish_struct): Constify saved_filename.
3743*c3d31fe1Smrg
3744*c3d31fe1Smrg2001-01-08  Nathan Sidwell  <nathan@codesourcery.com>
3745*c3d31fe1Smrg
3746*c3d31fe1Smrg	* class.c (duplicate_tag_error): Adjust diagnostic.
3747*c3d31fe1Smrg	(finish_struct): Locally set location to start of struct.
3748*c3d31fe1Smrg	* decl.c (fixup_anonymous_aggr): Use cp_error_at.
3749*c3d31fe1Smrg
3750*c3d31fe1Smrg2001-01-08  Nathan Sidwell  <nathan@codesourcery.com>
3751*c3d31fe1Smrg
3752*c3d31fe1Smrg	* decl.c (struct binding_level): Adjust class_shadowed comments
3753*c3d31fe1Smrg	to reflect reality.
3754*c3d31fe1Smrg	(push_class_level_binding): Adjust comments to reflect reality.
3755*c3d31fe1Smrg	Set IDENTIFIER_CLASS_VALUE when replacing an existing binding.
3756*c3d31fe1Smrg	Don't set TREE_VALUE on the class_shadowed list.
3757*c3d31fe1Smrg
3758*c3d31fe1Smrg2001-01-07  Alexandre Petit-Bianco  <apbianco@cygnus.com>
3759*c3d31fe1Smrg
3760*c3d31fe1Smrg	* decl2.c (acceptable_java_type): Allow references too.
3761*c3d31fe1Smrg	* init.c (build_java_class_ref): When using the new ABI, search
3762*c3d31fe1Smrg	`class$' and have it mangled with `mangle_decl.'
3763*c3d31fe1Smrg	* mangle.c (write_java_integer_type_codes): New function.
3764*c3d31fe1Smrg	(write_builtin_type): Detect and mangle Java integer and real
3765*c3d31fe1Smrg	types.
3766*c3d31fe1Smrg
3767*c3d31fe1Smrg2001-01-07  Mark Mitchell  <mark@codesourcery.com>
3768*c3d31fe1Smrg
3769*c3d31fe1Smrg	* decl2.c (grokfield): Don't accept `asm' specifiers for
3770*c3d31fe1Smrg	non-static data members.
3771*c3d31fe1Smrg
3772*c3d31fe1Smrg2001-01-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3773*c3d31fe1Smrg
3774*c3d31fe1Smrg	* expr.c (cplus_expand_expr): Don't reset `target'.
3775*c3d31fe1Smrg
3776*c3d31fe1Smrg2001-01-07  Neil Booth  <neil@daikokuya.demon.co.uk>
3777*c3d31fe1Smrg
3778*c3d31fe1Smrg	* cp/decl2.c (cxx_post_options): Call cpp_post_options.
3779*c3d31fe1Smrg
3780*c3d31fe1Smrg2001-01-05  Nathan Sidwell  <nathan@codesourcery.com>
3781*c3d31fe1Smrg
3782*c3d31fe1Smrg	* parse.y (template_datadef): Check for error_mark_node.
3783*c3d31fe1Smrg
3784*c3d31fe1Smrg2001-01-05  Nathan Sidwell  <nathan@codesourcery.com>
3785*c3d31fe1Smrg
3786*c3d31fe1Smrg	* cp-tree.def (DEFAULT_ARG): Make `x' class.
3787*c3d31fe1Smrg
3788*c3d31fe1Smrg2001-01-04  Joseph S. Myers  <jsm28@cam.ac.uk>
3789*c3d31fe1Smrg
3790*c3d31fe1Smrg	* decl.c (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Don't define.
3791*c3d31fe1Smrg	(record_builtin_type): Make non-static.
3792*c3d31fe1Smrg	(flag_short_double): Don't declare.
3793*c3d31fe1Smrg	(init_decl_processing): Remove the creation of many tree nodes now
3794*c3d31fe1Smrg	in c_common_nodes_and_builtins.
3795*c3d31fe1Smrg	(build_void_list_node): New function.
3796*c3d31fe1Smrg	* decl2.c (flag_short_double, flag_short_wchar): Don't define.
3797*c3d31fe1Smrg	* cp-tree.h (flag_short_wchar): Don't declare.
3798*c3d31fe1Smrg
3799*c3d31fe1Smrg2001-01-04  Mark Mitchell  <mark@codesourcery.com>
3800*c3d31fe1Smrg
3801*c3d31fe1Smrg	* call.c (build_conv): Don't use build1 for USER_CONV.
3802*c3d31fe1Smrg	* pt.c (tsubst_copy): Or for PREINCREMENT_EXPR and similar nodes.
3803*c3d31fe1Smrg
3804*c3d31fe1Smrg2001-01-03  Joseph S. Myers  <jsm28@cam.ac.uk>
3805*c3d31fe1Smrg
3806*c3d31fe1Smrg	* lex.c (lang_init): Call c_common_lang_init.
3807*c3d31fe1Smrg
3808*c3d31fe1Smrg2001-01-03  Nathan Sidwell  <nathan@codesourcery.com>
3809*c3d31fe1Smrg
3810*c3d31fe1Smrg	* search.c (lookup_fnfields_here): Remove.
3811*c3d31fe1Smrg	(look_for_overrides_r): Use lookup_fnfields_1.
3812*c3d31fe1Smrg	Ignore functions from using declarations.
3813*c3d31fe1Smrg
3814*c3d31fe1Smrg2001-01-03  Nathan Sidwell  <nathan@codesourcery.com>
3815*c3d31fe1Smrg
3816*c3d31fe1Smrg	Implement exceptions specifiers for implicit member functions.
3817*c3d31fe1Smrg	* cp-tree.h (merge_exceptions_specifiers): Declare new function.
3818*c3d31fe1Smrg	* method.c (synthesize_exception_spec): New function.
3819*c3d31fe1Smrg	(locate_dtor, locate_ctor, locate_copy): New functions.
3820*c3d31fe1Smrg	(implicitly_declare_fn): Generate the exception spec too.
3821*c3d31fe1Smrg	* search.c (check_final_overrider): Check artificial functions
3822*c3d31fe1Smrg	too.
3823*c3d31fe1Smrg	* typeck2.c (merge_exception_specifiers): New function.
3824*c3d31fe1Smrg
3825*c3d31fe1Smrg2001-01-03  Jason Merrill  <jason@redhat.com>
3826*c3d31fe1Smrg
3827*c3d31fe1Smrg	* init.c (build_default_init): New fn.
3828*c3d31fe1Smrg	(perform_member_init): Split out from here.
3829*c3d31fe1Smrg	(build_new_1): Use it.  Simplify initialization logic.
3830*c3d31fe1Smrg	(build_vec_init): Take an array, rather than a pointer and maxindex.
3831*c3d31fe1Smrg	Speed up simple initializations.  Don't clean up if we're assigning.
3832*c3d31fe1Smrg	* cp-tree.h: Adjust.
3833*c3d31fe1Smrg	* decl2.c (do_static_initialization): Remove TREE_VEC case.
3834*c3d31fe1Smrg	* parse.y (new_initializer): Return void_zero_node for ().
3835*c3d31fe1Smrg	* typeck.c (build_modify_expr): Handle getting a CONSTRUCTOR.
3836*c3d31fe1Smrg	* typeck2.c (digest_init): Only complain about user-written
3837*c3d31fe1Smrg	CONSTRUCTORs.
3838*c3d31fe1Smrg
3839*c3d31fe1Smrg2000-12-22  Mike Stump  <mrs@wrs.com>
3840*c3d31fe1Smrg
3841*c3d31fe1Smrg	* decl2.c: (max_tinst_depth): Increase to 50.
3842*c3d31fe1Smrg
3843*c3d31fe1Smrg2001-01-02  Mark Mitchell  <mark@codesourcery.com>
3844*c3d31fe1Smrg
3845*c3d31fe1Smrg	* class.c (invalidate_class_lookup_cache): Zero the
3846*c3d31fe1Smrg	previous_class_values.
3847*c3d31fe1Smrg	* cp-tree.h (TMPL_PARMS_DEPTH): Use TREE_INT_CST_LOW, not
3848*c3d31fe1Smrg	TREE_INT_CST_HIGH.
3849*c3d31fe1Smrg	(CLASSTYPE_TEMPLATE_LEVEL): Likewise.
3850*c3d31fe1Smrg	* decl.c (free_bindings): New variable.
3851*c3d31fe1Smrg	(push_binding): Don't create a new binding if we have one on the
3852*c3d31fe1Smrg	free list.
3853*c3d31fe1Smrg	(pop_binding): Put old bindings on the free list.
3854*c3d31fe1Smrg	(init_decl_processing): Use size_int, not build_int_2.
3855*c3d31fe1Smrg	Register free_bindings as a GC root.
3856*c3d31fe1Smrg	(cp_make_fname_decl): Use size_int, not build_int_2.
3857*c3d31fe1Smrg	(push_inline_template_parms_recursive): Likewise.
3858*c3d31fe1Smrg	(end_template_parm_list): Likewise.
3859*c3d31fe1Smrg	(for_each_template_parm): Do not use walk_tree_without_duplicates.
3860*c3d31fe1Smrg	(tsubst_template_parms): Use size_int, not build_int_2.
3861*c3d31fe1Smrg	(tsubst): Likewise.
3862*c3d31fe1Smrg	* rtti.c (get_vmi_pseudo_type_info): Likewise.
3863*c3d31fe1Smrg
3864*c3d31fe1Smrg2001-01-02  Richard Henderson  <rth@redhat.com>
3865*c3d31fe1Smrg
3866*c3d31fe1Smrg	* parse.y (asm): Set ASM_INPUT_P.
3867*c3d31fe1Smrg
3868*c3d31fe1Smrg2001-01-02  Jason Merrill  <jason@redhat.com>
3869*c3d31fe1Smrg
3870*c3d31fe1Smrg	* tree.c (cp_valid_lang_attribute): Don't set CLASSTYPE_COM_INTERFACE
3871*c3d31fe1Smrg	for v3 ABI.
3872*c3d31fe1Smrg
3873*c3d31fe1Smrg	* typeck.c (cp_truthvalue_conversion): New fn.
3874*c3d31fe1Smrg	* cvt.c (ocp_convert): Use it.
3875*c3d31fe1Smrg
3876*c3d31fe1Smrg	* cp-tree.h: Lose c-common.c decls.
3877*c3d31fe1Smrg
3878*c3d31fe1Smrg	* typeck.c (build_unary_op): Restore old &a.f diagnostic code.
3879*c3d31fe1Smrg	* cvt.c (convert_to_void): Use type_unknown_p.
3880*c3d31fe1Smrg
3881*c3d31fe1Smrg	* typeck.c (strip_all_pointer_quals): Also strip quals from
3882*c3d31fe1Smrg	pointer-to-member types.
3883*c3d31fe1Smrg
3884*c3d31fe1Smrg	* Make-lang.in (cp/TAGS): Use --no-globals.  Ignore parse.c, and treat
3885*c3d31fe1Smrg	parse.y as C.
3886*c3d31fe1Smrg
3887*c3d31fe1Smrg	* call.c (build_new_method_call): Do evaluate the object parameter
3888*c3d31fe1Smrg	when accessing a static member.
3889*c3d31fe1Smrg	* typeck.c (build_component_ref): Likewise.
3890*c3d31fe1Smrg
3891*c3d31fe1Smrg2001-01-02  Andreas Jaeger  <aj@suse.de>
3892*c3d31fe1Smrg
3893*c3d31fe1Smrg	* decl.c (cp_missing_noreturn_ok_p): New.
3894*c3d31fe1Smrg	(init_decl_processing): Set lang_missing_noreturn_ok_p.
3895*c3d31fe1Smrg
3896*c3d31fe1Smrg
3897*c3d31fe1SmrgCopyright (C) 2001 Free Software Foundation, Inc.
3898*c3d31fe1Smrg
3899*c3d31fe1SmrgCopying and distribution of this file, with or without modification,
3900*c3d31fe1Smrgare permitted in any medium without royalty provided the copyright
3901*c3d31fe1Smrgnotice and this notice are preserved.
3902