]>
Commit | Line | Data |
---|---|---|
9ac1bd2e NS |
1 | 2001-06-08 Nathan Sidwell <nathan@codesourcery.com> |
2 | ||
3 | PR c++/2929 | |
4 | * friend.c (do_friend): Use push_decl_namespace for classes at | |
5 | namespace scope. | |
6 | ||
85a9a0a2 NS |
7 | 2001-06-08 Nathan Sidwell <nathan@codesourcery.com> |
8 | Jason Merrill <jason_merrill@redhat.com> | |
9 | ||
10 | PR c++/3061 | |
11 | * class.c (build_secondary_vtable): Use assert, rather than an error | |
12 | message. | |
13 | (dfs_fixup_binfo_vtbls): BINFO_VTABLE might be NULL. | |
14 | (dfs_accumulate_vtbl_inits): A lost primary virtual base may | |
15 | be between ORIG_BINFO and RTTI_BINFO, but neither of them. | |
16 | Don't set BINFO_VTABLE for a primary virtual base. | |
17 | ||
daa8df65 MM |
18 | 2001-06-07 Mark Mitchell <mark@codesourcery.com> |
19 | ||
20 | * decl.c (duplicate_decls): Update source position information | |
21 | when a template function is defined. | |
22 | ||
37344b9b PE |
23 | 2001-06-07 Phil Edwards <pme@sources.redhat.com> |
24 | ||
25 | * lang-specs.h: Move -D_GNU_SOURCE to config/linux.h. | |
26 | ||
fcebb2dd NS |
27 | 2001-06-07 Nathan Sidwell <nathan@codesourcery.com> |
28 | ||
29 | PR c++/2914 | |
30 | * decl.c (pushtag): Don't push into a complete type's scope. | |
31 | ||
d0cd8b44 JM |
32 | 2001-06-06 Jason Merrill <jason_merrill@redhat.com> |
33 | ||
34 | * cp-tree.h (THUNK_GENERATE_WITH_VTABLE_P): Lose. | |
35 | (struct lang_decl_flags): Lose generate_with_vtable_p. | |
36 | (BV_GENERATE_THUNK_WITH_VTABLE_P): Lose. | |
37 | * class.c (copy_virtuals): Adjust. | |
38 | * decl2.c (mark_vtable_entries): Adjust. | |
39 | * method.c (make_thunk, build_vtable_entry): Adjust. | |
40 | * class.c (update_vtable_entry_for_fn): Only look as far as the | |
41 | first defining class. | |
42 | (build_vtbl_initializer): Put nothing in the slot for a function only | |
43 | defined in a lost primary virtual base. | |
44 | (add_vcall_offset_vtbl_entries_1): Use the same code for | |
45 | the lost primary case and the normal case. | |
46 | (dfs_unshared_virtual_bases): Don't lose a non-virtual primary base. | |
47 | (get_vfield_offset, get_derived_offset): Lose. | |
48 | (dfs_find_final_overrider): Use look_for_overrides_here. | |
49 | (get_matching_virtual): New fn. | |
50 | * semantics.c (emit_associated_thunks): Check BV_USE_VCALL_INDEX_P, | |
51 | not BV_VCALL_INDEX. | |
52 | * search.c (look_for_overrides_here): Split out from... | |
53 | (look_for_overrides_r): Here. | |
54 | ||
55 | * class.c (find_final_overrider): Return error_mark_node on error. | |
56 | ||
57 | * decl2.c (key_method): #if 0 accidental change. | |
58 | ||
acf97e0b JDA |
59 | 2001-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca> |
60 | ||
61 | * call.c (convert_default_arg): Use INTEGRAL_TYPE_P. | |
62 | (build_over_call): Likewise. | |
63 | * decl.c (grokparms): Likewise. | |
64 | * pt.c (tsubst_decl): Likewise. | |
65 | * typeck.c (convert_arguments): Likewise. | |
66 | ||
7e9abee9 MM |
67 | 2001-06-05 Mark Mitchell <mark@codesourcery.com> |
68 | ||
47ee8904 MM |
69 | * semantics.c (begin_class_definition): Robustify. |
70 | ||
7e9abee9 MM |
71 | * pt.c (instantiate_decl): Tell the repository code about the |
72 | clones, not the cloned functions. | |
73 | * repo.c (repo_template_used): Explicitly instantiate the cloned | |
74 | function, not the clones. | |
75 | ||
bea09693 NS |
76 | 2001-06-05 Nathan Sidwell <nathan@codesourcery.com> |
77 | ||
78 | * call.c (build_user_type_conversion_1): Set ICS_USER_FLAG and | |
79 | ICS_BAD_FLAG on created conversion. | |
80 | (compare_ics): Break out rank. | |
81 | ||
8f7550ca NS |
82 | 2001-06-05 Nathan Sidwell <nathan@codesourcery.com> |
83 | ||
84 | * decl.c (xref_tag): Remove extraneous %s on dependent name | |
85 | lookup warning. | |
86 | ||
442e01b6 NS |
87 | 2001-06-05 Nathan Sidwell <nathan@codesourcery.com> |
88 | ||
89 | * class.c (layout_vtable_decl): Fix off by one error on | |
90 | build_index_type. | |
91 | (build_vtt): Likewise. | |
92 | (build_ctor_vtbl_group): Likewise. | |
93 | ||
b7442fb5 NS |
94 | 2001-06-05 Nathan Sidwell <nathan@codesourcery.com> |
95 | ||
96 | * class.c (maybe_indent_hierarchy): New function. | |
97 | (dump_class_hierarchy_r): Add flags. Dump extra binfo | |
98 | information, if enabled. Use maybe_indent_hierarchy. Adjust | |
99 | output format. | |
100 | (dump_class_hierarchy): Adjust prototype. Adjust output format. | |
101 | (dump_array, dump_vtable, dump_vtt): New functions. | |
102 | (finish_struct_1): Adjust hierarchy dumping. | |
103 | (initialize_vtable): Call dump_vtable. | |
104 | (build_vtt): Call dump_vtt. | |
105 | (build_ctor_vtbl_group): Call dump_vtable. | |
106 | * decl2.c (flag_dump_class_layout): Remove. | |
107 | (cxx_decode_option): Remove dump translation unit | |
108 | and dump class hierarchy check. Call dump_switch_p. | |
109 | (finish_file): Adjust dumping. | |
110 | (dump.c): Only dump base classes if not TDF_SLIM. | |
111 | Only dump namespace members if not TDF_SLIM. | |
112 | * optimize.c (dump_function): New function. | |
113 | (optimize_function): Call dump_function. | |
114 | * semantics.c (expand_body): Use dump_enabled_p. | |
115 | ||
e5410b32 NS |
116 | 2001-06-01 Nathan Sidwell <nathan@codesourcery.com> |
117 | ||
118 | PR g++/2936 | |
119 | Part missed from first commit | |
120 | * decl2.c (finish_anon_union): Copy context. | |
121 | ||
e97c9488 NS |
122 | 2001-05-30 Nathan Sidwell <nathan@codesourcery.com> |
123 | ||
124 | PR g++/2936 | |
e97c9488 NS |
125 | * optimize.c (remap_decl): Remap anonymous aggregate members too. |
126 | ||
87d9ac49 NS |
127 | 2001-05-26 Nathan Sidwell <nathan@codesourcery.com> |
128 | ||
129 | PR g++/2823 | |
130 | * semantics.c (expand_body): Don't optimize thunks. | |
131 | ||
88657302 RH |
132 | 2001-05-25 Sam TH <sam@uchicago.edu> |
133 | ||
134 | * cp-tree.h lex.h: Fix header include guards. | |
135 | ||
136 | 2001-05-25 Mark Mitchell <mark@codesourcery.com> | |
10841285 MM |
137 | |
138 | * decl.c (init_decl_processing): Tweak. | |
139 | ||
0b1161fc MM |
140 | 2001-05-24 Mark Mitchell <mark@codesourcery.com> |
141 | ||
142 | * decl.c (duplicate_decls): Tidy. | |
143 | (init_decl_processing): Always set flag_no_builtin. | |
144 | ||
6f56d925 NS |
145 | 2001-05-24 Nathan Sidwell <nathan@codesourcery.com> |
146 | ||
147 | PR c++/2184 | |
148 | * decl2.c (do_local_using_decl): Push the decls, even in a | |
149 | template. | |
150 | ||
39e0656d MM |
151 | 2001-05-22 Mark Mitchell <mark@codesourcery.com> |
152 | ||
153 | * optimize.c (initialize_inlined_parameters): Don't set | |
154 | TREE_READONLY for a VAR_DECL taking the place of an inlined | |
155 | PARM_DECL. | |
156 | ||
0401d499 JM |
157 | 2001-05-22 Jason Merrill <jason_merrill@redhat.com> |
158 | ||
159 | * class.c, cp-tree.h, rtti.c: Remove com_interface attribute support. | |
160 | * tree.c (cp_valid_lang_attribute): Warn about use of com_interface | |
161 | attribute. | |
162 | ||
14fc3426 JM |
163 | 2001-05-22 Joseph S. Myers <jsm28@cam.ac.uk> |
164 | ||
165 | * parse.y: Refer to compound literals as such, not as | |
166 | constructor-expressions. | |
167 | ||
3f41ffd8 MM |
168 | 2001-05-21 Mark Mitchell <mark@codesourcery.com> |
169 | ||
170 | * call.c (build_op_delete_call): Ignore exception-specifications | |
171 | when looking for matching delete operators. | |
172 | * init.c (build_new_1): Compute whether or not the allocation | |
173 | function used is a placement allocation function or not, and | |
174 | communicate this information to build_op_delete_call. | |
175 | ||
1a6025b4 JM |
176 | 2001-05-21 Jason Merrill <jason_merrill@redhat.com> |
177 | ||
90ecce3e JM |
178 | * class.c (build_vtable_entry_ref): Lose vtbl parm. Fix for new abi. |
179 | (build_vtbl_ref): Adjust. | |
180 | (dfs_accumulate_vtbl_inits): Set TREE_CONSTANT on the vtable address. | |
181 | * decl2.c (lang_f_options): Remove huge-objects, vtable-thunks. | |
182 | Re-add vtable-gc. | |
183 | (unsupported_options): Correspondingly. | |
184 | ||
185 | * decl2.c (maybe_make_one_only): Check flag_weak, not | |
186 | supports_one_only(). | |
187 | ||
1a6025b4 JM |
188 | * cp-tree.def (START_CATCH_STMT): Lose. |
189 | * dump.c (cp_dump_tree): Don't dump it. Do dump HANDLER_PARMS. | |
190 | * tree.c (cp_statement_code_p): Don't case it. | |
191 | * semantics.c (cp_expand_stmt): Likewise. | |
192 | * cp-tree.h (START_CATCH_TYPE): Lose. | |
193 | (HANDLER_TYPE): New. | |
194 | * except.c (expand_start_catch_block): Don't start any blocks. | |
195 | Return the type. | |
196 | (expand_end_catch_block): Don't end any blocks. | |
197 | * parse.y (handler): Don't pass anything from finish_handler_parms | |
198 | to finish_handler. | |
199 | * pt.c (tsubst_expr): Likewise. | |
200 | * semantics.c (begin_handler): Call note_level_for_catch here. | |
201 | (finish_handler_parms): Don't return anything. | |
202 | (genrtl_catch_block, begin_catch_block): Lose. | |
203 | (genrtl_handler): Call expand_start_catch here. | |
204 | ||
205 | 2001-05-18 Jason Merrill <jason_merrill@redhat.com> | |
206 | ||
207 | * class.c (build_vtable): Set DECL_ASSEMBLER_NAME for vtables here. | |
208 | (get_vtable_decl, build_vtt): Not here. | |
209 | ||
d30a825a NS |
210 | 2001-05-20 Nathan Sidwell <nathan@codesourcery.com> |
211 | ||
212 | PR c++/2781 | |
213 | * optimize.c (update_cloned_parm): Copy addressability and other | |
214 | flags. | |
215 | ||
3b82c249 KL |
216 | 2001-05-20 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> |
217 | ||
218 | * pt.c (determine_specialization): Ignore artificial functions. | |
219 | ||
2a967f3d NB |
220 | 2001-05-20 Neil Booth <neil@daikokuya.demon.co.uk> |
221 | ||
222 | * cp-tree.h (struct lang_identifier, C_RID_YYCODE): Update. | |
223 | (C_RID_CODE): Remove. | |
224 | * lex.c (cxx_init_options): Call set_identifier_size. Update. | |
225 | (init_parse): Don't do it here. | |
226 | ||
f99df08e DN |
227 | 2001-05-18 Diego Novillo <dnovillo@redhat.com> |
228 | ||
229 | * decl2.c (finish_objects): Use the original SYMBOL_REF from the | |
230 | function declaration to avoid stripping the symbol's attributes. | |
231 | ||
2b0cbc5d NS |
232 | 2001-05-18 Nathan Sidwell <nathan@codesourcery.com> |
233 | ||
234 | * decl.c (pushdecl): Adjust error string. | |
235 | (xref_tag): Adjust friend class injection warning. Remove the | |
236 | inherited name from the class shadowed scope. | |
237 | ||
e6855a2d MM |
238 | 2001-05-17 Mark Mitchell <mark@codesourcery.com> |
239 | ||
240 | * except.c (cp_protect_cleanup_actions): New function. | |
241 | (init_exception_processing): Don't set protect_cleanup_actions | |
242 | here. Do set lang_protect_cleanup_actions. | |
243 | ||
cc469ee9 NS |
244 | 2001-05-16 Nathan Sidwell <nathan@codesourcery.com> |
245 | ||
246 | * spew.c (read_token): Call yyerror on all unexpected tokens. | |
247 | ||
3f0a9b35 NS |
248 | 2001-05-16 Nathan Sidwell <nathan@codesourcery.com> |
249 | ||
250 | * init.c (member_init_ok_or_else): Take a tree rather than | |
251 | string for name. | |
252 | (expand_member_init): Adjust. | |
253 | ||
8d0cb60d NC |
254 | 2001-05-14 Nick Clifton <nickc@cambridge.redhat.com> |
255 | ||
256 | * decl.c (duplicate_decls): Suppress warning about duplicate | |
257 | decls if the first decl is a friend. | |
258 | ||
1f730ff7 ZW |
259 | 2001-05-12 Zack Weinberg <zackw@stanford.edu> |
260 | ||
261 | * except.c (choose_personality_routine): Export. Add | |
262 | explanatory comment. Take an enum languages, not a boolean. | |
263 | (initialize_handler_parm): Adjust to match. | |
264 | * cp-tree.h: Prototype choose_personality_routine. | |
265 | * lex.c (handle_pragma_java_exceptions): New function. | |
266 | (init_cp_pragma): Register #pragma GCC java_exceptions. | |
267 | ||
90e0c410 NB |
268 | 2001-05-12 Neil Booth <neil@cat.daikokuya.demon.co.uk> |
269 | ||
270 | * method.c (build_mangled_C99_name): Remove unused prototype. | |
271 | ||
cb7fdde2 AO |
272 | 2001-05-12 Alexandre Oliva <aoliva@redhat.com> |
273 | ||
274 | * cp-tree.h (ptrmemfunc_vbit_where_t): Declare type. | |
275 | * typeck.c (get_member_function_from_ptrfunc, | |
276 | build_ptrmemfunc, expand_ptrmemfunc_cst): Take | |
277 | TARGET_PTRMEMFUNC_VBIT_LOCATION into account. | |
18ae7f63 AO |
278 | |
279 | Reverted Geoff Keating's 2001-05-03's patch. | |
280 | ||
401deb20 IR |
281 | 2001-05-11 Ira Ruben <ira@apple.com> |
282 | ||
283 | * cp/cp-tree.h (C_EXP_ORIGINAL_CODE): Delete; declared in c-common.h. | |
284 | ||
8e93d446 NB |
285 | 2001-05-11 Neil Booth <neil@daikokuya.demon.co.uk> |
286 | ||
287 | * cp-tree.h (finish_label_expr, lookup_label): Delete. | |
288 | * parse.y: Update for '&&'; don't issue warning here. | |
289 | * semantics.c (finish_label_expr): Delete. | |
290 | ||
5cdba4ff MM |
291 | 2001-05-07 Mark Mitchell <mark@codesourcery.com> |
292 | ||
293 | * splay-tree.h (splay_tree_max): New function. | |
294 | (splay_tree_min): Likewise. | |
295 | ||
8e9eff6b GK |
296 | 2001-05-03 Geoffrey Keating <geoffk@redhat.com> |
297 | ||
298 | * cp-tree.h (enum cp_tree_index): Add CPTI_PFN_VFLAG_IDENTIFIER. | |
299 | (pfn_vflag_identifier): Define. | |
300 | Update comment about layout of pointer functions. | |
301 | (build_ptrmemfunc1): Update prototype. | |
302 | (expand_ptrmemfunc_cst): Update prototype. | |
303 | * decl.c (initialize_predefined_identifiers): Initialize | |
304 | pfn_vflag_identifier. | |
305 | (build_ptrmemfunc_type): When FUNCTION_BOUNDARY < 16, add | |
306 | an extra field to the type. | |
307 | * expr.c (cplus_expand_constant): Pass 'flag' between | |
308 | expand_ptrmemfunc_cst and build_ptrmemfunc1. | |
309 | * typeck.c (get_member_function_from_ptrfunc): When | |
310 | FUNCTION_BOUNDARY < 16, look at additional field to determine | |
311 | if a pointer-to-member is a real pointer or a vtable offset. | |
312 | (build_ptrmemfunc1): Add new parameter to contain extra field. | |
313 | (build_ptrmemfunc): Pass the extra field around. | |
314 | (expand_ptrmemfunc_cst): Add new parameter to return extra field. | |
315 | (pfn_from_ptrmemfunc): Ignore the extra field. | |
316 | ||
acc72c37 MM |
317 | 2001-05-03 Mark Mitchell <mark@codesourcery.com> |
318 | ||
319 | * cp-tree.h (flag_inline_trees): Update documentation. | |
320 | * decl.c (init_decl_processing): Adjust handling of | |
321 | flag_inline_functions and flag_inline_trees to support -O3. | |
322 | (grokfndecl): Set DECL_INLINE on all functions if that's what | |
323 | the user requested. | |
324 | (save_function_data): Clear DECL_INLINE in | |
325 | current_function_cannot_inline is non-NULL. | |
326 | * decl2.c (flag_inline_trees): Update documentation. | |
327 | ||
5158d7ee NS |
328 | 2001-05-03 Nathan Sidwell <nathan@codesourcery.com> |
329 | ||
330 | * dump.c (cp_dump_tree, USING_STMT case): New case. | |
331 | * tree.c (cp_statement_code_p): Add USING_STMT. | |
332 | * decl2.c (do_using_directive): Add the using directive statement. | |
333 | ||
334 | * tree.c (walk_tree): Reformat an if block. | |
335 | ||
80f5bb34 MM |
336 | 2001-05-02 Mark Mitchell <mark@codesourcery.com> |
337 | ||
338 | * decl.c (compute_array_index_type): Don't try to do anything with | |
339 | the indices when processing a template. | |
340 | ||
3e411c3f KG |
341 | 2001-05-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
342 | ||
343 | * call.c: NULL_PTR -> NULL. | |
344 | * class.c: Likewise. | |
345 | * cvt.c: Likewise. | |
346 | * decl.c: Likewise. | |
347 | * decl2.c: Likewise. | |
348 | * except.c: Likewise. | |
349 | * init.c: Likewise. | |
350 | * rtti.c: Likewise. | |
351 | * search.c: Likewise. | |
352 | * tree.c: Likewise. | |
353 | * typeck.c: Likewise. | |
354 | * typeck2.c: Likewise. | |
355 | ||
46188dca MM |
356 | 2001-05-02 Mark Mitchell <mark@codesourcery.com> |
357 | ||
358 | * decl2.c (do_using_directive): Revert previous patch. | |
359 | ||
9da99f7d NS |
360 | 2001-05-01 Nathan Sidwell <nathan@codesourcery.com> |
361 | ||
362 | * cp-tree.def (USING_STMT): New statement node. | |
363 | * cp-tree.h (USING_STMT_NAMESPACE): New macro. | |
364 | * decl2.c (do_using_directive): Add USING_STMT to statement | |
365 | tree. Don't emit errors when processing template decl. | |
366 | * pt.c (tsubst_expr, USING_STMT case): New case. | |
367 | * semantics.c (cp_expand_stmt, USING_STMT case): New case. | |
368 | ||
4b48a93e NS |
369 | 2001-05-01 Nathan Sidwell <nathan@codesourcery.com> |
370 | ||
371 | * call.c (build_new_op): Convert args from reference here. | |
372 | (build_conditional_expr): Don't convert here. | |
373 | ||
1bcea8d7 NS |
374 | 2001-05-01 Nathan Sidwell <nathan@codesourcery.com> |
375 | ||
376 | * spew.c (last_token_id): New static variable. | |
377 | (read_token): Set it here. | |
378 | (yyerror): Use it here. | |
379 | ||
d72040f5 RH |
380 | 2001-04-30 Richard Henderson <rth@redhat.com> |
381 | ||
382 | * cvt.c: Downcase C_PROMOTING_INTEGER_TYPE_P invocations. | |
383 | * decl.c: Likewise. | |
384 | ||
c3aac512 MM |
385 | 2001-04-30 Mark Mitchell <mark@codesourcery.com> |
386 | ||
387 | * gxxint.texi: Remove. | |
388 | * Make-lang.in: Remove all traces of gxxint.texi. | |
389 | ||
5fd893d5 MM |
390 | Mon Apr 30 16:14:10 2001 Mark P Mitchell <mark@codesourcery.com> |
391 | ||
392 | * decl2.c (start_static_initialization_or_destruction): Correct | |
393 | logic to handle the -fno-use-cxa-atexit case. | |
394 | ||
d60e5448 MM |
395 | 2001-04-30 Mark Mitchell <mark@codesourcery.com> |
396 | ||
397 | * optimize.c (update_cloned_parm): New function. | |
398 | (maybe_clone_body): Use it. Update the `this' parameter too. | |
399 | ||
7200764f JM |
400 | 2001-04-29 Joseph S. Myers <jsm28@cam.ac.uk> |
401 | ||
402 | * decl2.c (unsupported_options): Add new-abi. | |
403 | * lang-options.h: Remove no longer supported options. | |
404 | ||
2d46ec83 NS |
405 | 2001-04-27 Nathan Sidwell <nathan@codesourcery.com> |
406 | ||
407 | * except.c (can_convert_eh): Don't check template parms, | |
408 | typename types etc. | |
409 | ||
02a1a68c NS |
410 | 2001-04-27 Nathan Sidwell <nathan@codesourcery.com> |
411 | ||
412 | * optimize.c (maybe_clone_body): Copy parameter names and locations. | |
413 | ||
5f6eeeb3 NS |
414 | 2001-04-27 Nathan Sidwell <nathan@codesourcery.com> |
415 | ||
416 | * cp-tree.h (adjust_clone_args): Prototype new function. | |
417 | * class.c (adjust_clone_args): New function. | |
418 | * decl.c (start_function): Call it for in charge ctors. | |
419 | ||
1b28d441 MM |
420 | 2001-04-26 Mark Mitchell <mark@codesourcery.com> |
421 | ||
422 | * method.c (use_thunk): Make sure that thunks really are emitted | |
423 | when requested. | |
424 | ||
0576ec13 NS |
425 | 2001-04-26 Nathan Sidwell <nathan@codesourcery.com> |
426 | ||
427 | * mangle.c (write_chars): New macro. | |
428 | (hwint_to_ascii): New function | |
429 | (write_number): Use it. | |
430 | (write_integer_cst): Deal with really big numbers. | |
431 | ||
b96ada87 MM |
432 | 2001-04-25 Mark Mitchell <mark@codesourcery.com> |
433 | ||
434 | * optimize.c (maybe_clone_body): Copy TREE_PUBLIC before emitting | |
435 | the clone. | |
436 | ||
6bda7a5e NS |
437 | 2001-04-25 Nathan Sidwell <nathan@codesourcery.com> |
438 | ||
439 | * decl.c (grokdeclarator): Set context of namespace scope | |
440 | TYPE_DECLS. | |
441 | ||
11fe225a ZW |
442 | 2001-04-24 Zack Weinberg <zackw@stanford.edu> |
443 | ||
444 | * cp/optimize.c: Include hashtab.h. | |
445 | (struct inline_data): Add tree_pruner. | |
446 | (expand_call_inline, expand_calls_inline): Use it when calling | |
447 | walk_tree. | |
448 | (optimize_function): Initialize and free tree_pruner. | |
449 | ||
0ba8a114 NS |
450 | 2001-04-24 Nathan Sidwell <nathan@codesourcery.com> |
451 | ||
452 | Lazy __FUNCTION__ generation. | |
453 | * cp-tree.def (FUNCTION_NAME): Remove. | |
454 | * cp-tree.h (function_name_declared_p): Remove. | |
455 | (cp_fname_init): Prototype. | |
456 | * decl.c (init_decl_processing): Don't generate __FUNCTION__ et al ids, | |
457 | don't call declare_function_name. Call start_fname_decls. | |
458 | (cp_make_fname_decl): Adjust parameters. Generate the name. Don't | |
459 | clobber the line number. | |
460 | (cp_fname_init): New function. | |
461 | (start_function): Call start_fname_decls. | |
462 | (finish_function): Call finish_fname_decls. | |
463 | * lex.c (reswords): Add slots for __FUNCTION__ et al. | |
464 | (rid_to_yy): Add mappings for __FUNCTION__ et al. | |
465 | * optimize.c (maybe_clone_body): Remove function_name_declared_p. | |
466 | * parse.y (VAR_FUNC_NAME): New token. | |
467 | (primary): Add VAR_FUNC_NAME. | |
468 | * pt.c (tsubst_decl): Adjust a DECL_PRETTY_FUNCTION_P's | |
469 | generation. | |
470 | (tsubst, FUNCTION_NAME case): Remove. | |
471 | (tsubst_copy, FUNCTION_NAME case): Remove. | |
472 | (tsubst_expr, DECL_STMT case): Be careful with a | |
473 | DECL_PRETTY_FUNCTION_P. | |
474 | (instantiate_decl): Remove function_name_declared_p. | |
475 | * semantics.c (begin_compound_statement): Don't call | |
476 | declare_function_name here. | |
477 | (setup_vtbl_ptr). Don't save & restore function_name_declared_p. | |
478 | (finish_translation_unit): Call finish_fname_decls. | |
479 | (expand_body): Remove function_name_declared_p. | |
480 | * typeck2.c (digest_init): Allow any ERROR_MARK. | |
481 | ||
dfbb4f34 NS |
482 | 2001-04-24 Nathan Sidwell <nathan@codesourcery.com> |
483 | ||
484 | * pt.c (tsubst_decl): Use VOID_TYPE_P. | |
485 | * semantics.c: Fix some typos. | |
486 | ||
e2584c52 PE |
487 | 2001-04-23 Phil Edwards <pme@sources.redhat.com> |
488 | ||
489 | * cp/decl2.c (flag_honor_std): Always initialize to 1. | |
490 | ||
d4c3ec27 KG |
491 | 2001-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
492 | ||
493 | * xref.c (GNU_xref_file): Use concat in lieu of xmalloc/sprintf. | |
494 | ||
2ac8a0f9 JM |
495 | 2001-04-23 Jason Merrill <jason_merrill@redhat.com> |
496 | ||
497 | * except.c (build_throw): Wrap the initialization of the exception | |
498 | object in a MUST_NOT_THROW_EXPR. | |
499 | (do_free_exception): #if 0. | |
500 | ||
968b956a MM |
501 | 2001-04-20 Mark Mitchell <mark@codesourcery.com> |
502 | ||
503 | * cp-tree.h (finish_enum): Change prototype. | |
504 | * decl.c (finish_enum): Reorganize. | |
505 | * parse.y (structsp): Adjust calls to finish_enum. | |
11fe225a | 506 | |
aa1826e2 NS |
507 | 2001-04-20 Nathan Sidwell <nathan@codesourcery.com> |
508 | ||
509 | * tree.c (cp_tree_equal): Adjust final switch formatting. Add | |
510 | 't' case. | |
511 | ||
06d9f09f NS |
512 | 2001-04-20 Nathan Sidwell <nathan@codesourcery.com> |
513 | ||
514 | * class.c (dfs_unshared_virtual_bases): Add ATTRIBUTE_UNUSED. | |
515 | (layout_empty_base): Return at end flag. | |
516 | (build_base_field): Likewise. | |
517 | (build_base_fields): Likewise. | |
518 | (layout_virtual_bases): Don't add 1 to eoc value. | |
519 | (end_of_class): Use full size for empty bases. | |
520 | (layout_class_type): Clear CLASSNEARLY_EMPTY_P if we appended | |
521 | empty bases. Don't add 1 to eoc value. Only add trailing padding | |
522 | if we're an empty class with no empty bases. | |
523 | (dump_class_hierarchy): Dump size and alignment. | |
524 | ||
351a0f00 JJ |
525 | 2001-04-20 Jakub Jelinek <jakub@redhat.com> |
526 | ||
527 | * call.c (maybe_handle_ref_bind): Copy ICS_USER_FLAG and | |
528 | ICS_BAD_FLAG. | |
529 | ||
881cae05 JJ |
530 | 2001-04-20 Jakub Jelinek <jakub@redhat.com> |
531 | ||
532 | * search.c (lookup_field_r): If looking for type and non-TYPE_DECL | |
533 | is found, look first if name does not match the structure name. | |
534 | ||
5d2ed28c MM |
535 | 2001-04-19 Mark Mitchell <mark@codesourcery.com> |
536 | ||
537 | * cp-tree.h (DECL_LANGUAGE): Don't assume DECL_LANG_SPECIFIC is | |
538 | set. | |
539 | (SET_DECL_LANGUAGE): New macro. | |
540 | * decl.c (duplicate_decls): Use SET_DECL_LANGUAGE. | |
541 | (pushdecl): Likewise. | |
542 | (build_library_fn_1): Likewise. | |
543 | (build_cp_library_fn): Likewise. | |
544 | (grokfndecl): Likewise. | |
545 | (grokvardecl): Mark `extern "C"' variables as having C linkage. | |
546 | * decl2.c (grokclassfn): Use SET_DECL_LANGUAGE. | |
547 | * lex.c (retrofit_lang_decl): Likewise. | |
548 | * mangle.c (mangle_decl_string): Don't mangle the names of | |
549 | variables declared with C language linkage. | |
550 | * semantics.c (finish_member_declaration): Use SET_DECL_LANGUAGE. | |
11fe225a | 551 | |
41251458 JDA |
552 | 2001-04-18 John David Anglin <dave@hiauly1.hia.nrc.ca> |
553 | ||
554 | * semantics.c (simplify_aggr_init_exprs_r): Don't restore | |
555 | flag_access_control from uninitialized storage. | |
556 | ||
1b4a93f7 MM |
557 | 2001-04-15 Mark Mitchell <mark@codesourcery.com> |
558 | ||
24272dc0 MM |
559 | * cp-tree.h (TYPE_PTRMEM_CLASS_TYPE): Improve documentation. |
560 | * mangle.c (write_pointer_to_member_type): Fix mangling of | |
561 | pointers to cv-qualified member function types. | |
562 | ||
1b4a93f7 MM |
563 | * init.c (build_delete): Create a SAVE_EXPR for the address if |
564 | we're going to use it more than once. | |
565 | ||
530ec96d MM |
566 | 2001-04-13 Mark Mitchell <mark@codesourcery.com> |
567 | ||
568 | * cp-tree.h (DELTA2_FROM_PTRMEMFUNC): Remove. | |
569 | (expand_ptremfunc_cst): Change prototype. | |
570 | (delta2_from_ptrmemfunc): Remove. | |
571 | * expr.c (cplus_expand_constant): Adjust call to | |
572 | expand_ptrmemfunc_cst. | |
573 | * typeck.c (build_ptrmemfunc1): Simplify. | |
574 | (build_ptrmemfunc): Make sure that casting a PTRMEM_CST still | |
575 | results in a constant. | |
576 | (expand_ptrmemfunc_cst): Remove idx and delta2 parameters. | |
577 | (delta2_from_ptrmemfunc): Remove. | |
578 | (pfn_from_ptrmemfunc): Adjust call to expand_ptrmemfunc_cst. | |
11fe225a | 579 | |
ee8fc32b JM |
580 | 2001-04-12 Jason Merrill <jason_merrill@redhat.com> |
581 | ||
582 | * cp-tree.h (decl_namespace_list): New macro. | |
583 | (struct saved_scope): Add decl_ns_list. | |
584 | * decl.c (mark_saved_scope): Mark it. | |
585 | * decl2.c: Lose static decl_namespace_list. | |
586 | (init_decl2): Don't save it. | |
587 | ||
48857160 KG |
588 | 2001-04-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
589 | ||
590 | * cp-tree.h (warn_return_type, yylex): Delete redundant | |
591 | declarations. | |
11fe225a | 592 | |
48857160 KG |
593 | * decl.c (current_class_depth, global_namespace): Likewise. |
594 | ||
595 | * decl2.c (current_class_depth, flag_gnu_xref): Likewise | |
596 | ||
597 | * repo.c (flag_use_repository): Likewise. | |
598 | ||
845e14ed KG |
599 | 2001-04-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
600 | ||
601 | * cp-tree.h (pedantic, convert, global_bindings_p, insert_block, | |
602 | set_block, pushdecl, getdecls, gettags, init_decl_processing, | |
603 | maybe_build_cleanup, copy_lang_decl, prep_stmt, lvalue_p, | |
604 | lvalue_or_else, print_lang_statistics, comp_target_types, | |
605 | unsigned_type, signed_type, signed_or_unsigned_type, | |
606 | build_function_call, mark_addressable, incomplete_type_error): | |
607 | Delete redundant declarations. | |
608 | ||
1951a1b6 JM |
609 | 2001-04-11 Jason Merrill <jason_merrill@redhat.com> |
610 | ||
611 | * cp-tree.h (TYPE_LINKAGE_IDENTIFIER): New macro. | |
612 | (TYPE_ANONYMOUS_P): New macro. | |
613 | (TAGGED_TYPE_P): New macro. | |
614 | * decl.c (check_tag_decl): Use TYPE_ANONYMOUS_P. | |
615 | (grokfndecl, grokvardecl, grokdeclarator): Likewise. | |
616 | * tree.c (no_linkage_helper): Likewise. | |
617 | * semantics.c (begin_class_definition): Likewise. | |
618 | * pt.c (convert_template_argument): Likewise. | |
619 | * lex.c (check_for_missing_semicolon): Likewise. | |
620 | ||
0fb3018c NS |
621 | 2001-04-12 Nathan Sidwell <nathan@codesourcery.com> |
622 | ||
623 | * class.c (dfs_unshared_virtual_bases): New function. | |
624 | (mark_primary_bases): Call it. | |
625 | (check_bases): Ignore virtual bases when determining | |
626 | nearly-emptiness. | |
627 | ||
bbb53468 NS |
628 | 2001-04-12 Nathan Sidwell <nathan@codesourcery.com> |
629 | ||
630 | * method.c (make_thunk): Clear DECL_CLONED_FUNCTION. | |
631 | ||
9b7949d5 MM |
632 | 2001-04-11 Mark Mitchell <mark@codesourcery.com> |
633 | ||
634 | * optimize.c (maybe_clone_body): Copy DECL_NUM_STMTS from the | |
635 | cloned function to the clone. | |
636 | ||
d6684bc8 KG |
637 | 2001-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
638 | ||
639 | * Make-lang.in (cp/semantics.o): Depend on $(EXPR_H). | |
640 | ||
641 | * semantics.c: Include expr.h. | |
642 | ||
a2095778 NS |
643 | 2001-04-11 Nathan Sidwell <nathan@codesourcery.com> |
644 | ||
645 | * method.c (implicitly_declare_fn): Commonize code for copy ctor | |
646 | and assignment op. Set TREE_USED for parameter. | |
647 | ||
78b45a24 MM |
648 | 2001-04-10 Mark Mitchell <mark@codesourcery.com> |
649 | ||
650 | * class.c (find_final_overrider_data): Add `candidates'. | |
651 | (dfs_find_final_overrider): Don't issue error messages | |
652 | prematurely. | |
653 | (find_final_overrider): Issue error messages here. | |
654 | (build_base_field): Don't warn about amgibuous direct bases here. | |
655 | (warn_about_ambiguous_direct_bases): New function. | |
656 | (layout_class_type): Use it. | |
657 | ||
0450d74d RH |
658 | 2001-04-10 Richard Henderson <rth@redhat.com> |
659 | ||
660 | * typeck.c (build_array_ref): Push the array reference inside | |
661 | COMPOUND_EXPR and COND_EXPR. | |
662 | ||
79065db2 MM |
663 | 2001-04-05 Mark Mitchell <mark@codesourcery.com> |
664 | ||
665 | * cp-tree.h (DECL_THIS_INLINE): Rename to DECL_DECLARED_INLINE_P. | |
666 | * decl.c (duplicate_decls): Adjust accordingly. | |
667 | (maybe_commonize_var): Likewise. | |
668 | (grokfndecl): Likewise. | |
669 | (start_function): Likewise. | |
670 | (start_method): Likewise. | |
671 | * decl2.c (key_method): Likewise. | |
672 | (import_export_decl): Likewise. | |
673 | * method.c (implicitly_declare_fn): Likewise. | |
674 | * optimize.c (maybe_clone_body): Likewise. | |
11fe225a | 675 | |
fdecbf8a BK |
676 | 2001-04-05 Benjamin Kosnik <bkoz@redhat.com> |
677 | ||
b03eced6 | 678 | * lang-specs.h: Add __DEPRECATED. |
fdecbf8a | 679 | |
0b4c1646 R |
680 | Thu Apr 5 16:54:29 2001 J"orn Rennecke <amylaar@redhat.com> |
681 | ||
682 | * search.c (get_dynamic_cast_base_type): When building a new | |
683 | constant, set its type to ssizetype. | |
684 | ||
e59d6709 JJ |
685 | 2001-04-04 Jakub Jelinek <jakub@redhat.com> |
686 | ||
687 | * optimize.c (expand_call_inline): Only add newly inlined statements | |
688 | into inlined_stmts. | |
689 | ||
0c918ce5 MM |
690 | 2001-04-03 Mark Mitchell <mark@codesourcery.com> |
691 | ||
692 | * cp-tree.h (OPERATOR_ASSIGN_FORMAT): Remove. | |
693 | (OPERATOR_FORMAT): Likewise. | |
694 | (OPERATOR_TYPENAME_FORMAT): Likewise. | |
695 | * operators.def: Remove old name-mangling information. | |
696 | * decl.c (grok_op_properties): Adjust accordingly. | |
697 | * lex.c (init_operators): Likewise. | |
698 | * rtti.c (get_tinfo_decl): Issue error messages about types that | |
699 | have variable size. | |
700 | ||
92788413 MM |
701 | 2001-04-03 Mark Mitchell <mark@codesourcery.com> |
702 | ||
11fe225a | 703 | * decl2.c (import_export_decl): Don't call import_export_class |
92788413 MM |
704 | when processing an inline member function. |
705 | * semantics.c (expand_body): Call import_export_decl before | |
706 | emitting inline functions. | |
707 | ||
52a11cbf RH |
708 | 2001-03-28 Richard Henderson <rth@redhat.com> |
709 | ||
710 | IA-64 ABI Exception Handling: | |
711 | * cp-tree.def (EH_SPEC_BLOCK): New. | |
712 | (MUST_NOT_THROW_EXPR): New. | |
713 | * cp-tree.h: Update changed function declarations. | |
714 | (CPTI_PUSH_EXCEPTION_IDENTIFIER): Remove. | |
715 | (CPTI_CALL_UNEXPECTED): New. | |
716 | (struct cp_language_function): Rename x_eh_spec_try_block | |
717 | to x_eh_spec_block. | |
718 | (EH_SPEC_STMTS, EH_SPEC_RAISES): New. | |
11fe225a | 719 | * decl.c (current_binding_level): If no current function |
52a11cbf RH |
720 | bindings, revert to scope_chain. |
721 | (initialize_predefined_identifiers): Remove __cp_push_exception. | |
722 | (store_parm_decls): Use begin_eh_spec_block. | |
723 | (finish_function): Use finish_eh_spec_block. | |
724 | (mark_lang_function): Update for name changes. | |
725 | * decl2.c (finish_file): No mark_all_runtime_matches. | |
726 | * dump.c (cp_dump_tree): Handle new tree codes. | |
727 | * error.c (dump_expr) [BIND_EXPR]: Fix typo. | |
728 | * except.c (catch_language_init, catch_language): Remove. | |
729 | (init_exception_processing): Don't set language code. | |
730 | Initialize call_unexpected_node, protect_cleanup_actions, | |
731 | eh_personality_libfunc, lang_eh_runtime_type. | |
732 | (call_eh_info, push_eh_info, get_eh_info, get_eh_value): Remove. | |
733 | (get_eh_type, get_eh_caught, get_eh_handlers): Remove. | |
734 | (prepare_eh_type): Split out type canonicalizations ... | |
735 | (build_eh_type_type): ... from here. | |
736 | (build_eh_type_type_ref): Remove. | |
737 | (mark_all_runtime_matches): Remove. | |
738 | (build_exc_ptr): New. | |
739 | (do_begin_catch, do_end_catch): New. | |
740 | (do_pop_exception): Remove. | |
741 | (build_terminate_handler): Remove. | |
742 | (choose_personality_routine): Split out language choice from ... | |
743 | (initialize_handler_parm): ... here. | |
744 | Use MUST_NOT_THROW_EXPR. | |
745 | (expand_start_catch_block): Use do_begin_catch. Simplify Java | |
746 | exception object handling. | |
747 | (expand_start_eh_spec, expand_end_eh_spec): Remove. | |
748 | (expand_exception_blocks, alloc_eh_object): Remove. | |
749 | (begin_eh_spec_block, finish_eh_spec_block): New. | |
750 | (do_allocate_exception, do_free_exception): New. | |
751 | (expand_throw): Merge into ... | |
752 | (build_throw): ... here. Update for abi. | |
753 | * expr.c (cplus_expand_expr): No expand_internal_throw. | |
754 | Handle MUST_NOT_THROW_EXPR. | |
755 | * pt.c (tsubst_expr): Handle EH_SPEC_BLOCK. | |
756 | * semantics.c (*) Update for except.h name changes. | |
757 | (genrtl_try_block): No protect_with_terminate. | |
758 | (genrtl_eh_spec_block): New. | |
759 | (genrtl_handler): Don't emit the goto here. | |
760 | (cp_expand_stmt): Handle EH_SPEC_BLOCK. | |
761 | (genrtl_finish_function): Don't expand_exception_blocks. | |
762 | * tree.c (cp_statement_code_p): Handle EH_SPEC_BLOCK. | |
763 | ||
826840d9 RH |
764 | 2001-03-28 Richard Henderson <rth@redhat.com> |
765 | ||
766 | * decl.c (struct named_label_list): Rename eh_region to | |
767 | in_try_scope, add in_catch_scope. | |
768 | (struct binding_level): Rename eh_region to is_try_scope, | |
769 | add is_catch_scope. | |
770 | (note_level_for_try): Rename from note_level_for_eh. | |
771 | (note_level_for_catch): New. | |
772 | (poplevel): Copy both is_try_scope and is_catch_scope to | |
773 | the named_label_list struct. | |
774 | (check_previous_goto_1): Don't check for catch block via | |
775 | DECL_ARTIFICIAL; use in_try_scope instead. | |
776 | (check_goto): Likewise. | |
777 | * cp-tree.h (note_level_for_try, note_level_for_catch): Declare. | |
778 | * except.c (expand_start_catch_block): Call note_level_for_catch. | |
779 | * semantics.c (begin_compound_stmt): Update for note_level_for_try. | |
780 | ||
531073e7 RH |
781 | 2001-03-27 Richard Henderson <rth@redhat.com> |
782 | ||
783 | * except.c: Use USING_SJLJ_EXCEPTIONS instead of | |
784 | exceptions_via_longjmp. | |
785 | ||
8653a2c3 PE |
786 | 2001-03-27 Phil Edwards <pme@sources.redhat.com> |
787 | ||
788 | * pt.c (check_default_tmpl_args): Make error messages clearer. | |
789 | ||
790 | 2001-03-26 Phil Edwards <pme@sources.redhat.com> | |
791 | ||
792 | * error.c: Also undefine 'A' macro used for cp_printers definition. | |
793 | ||
911e6107 KG |
794 | 2001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
795 | ||
796 | * Make-lang.in: Depend on $(SYSTEM_H), not system.h. | |
797 | ||
005a5cb0 MY |
798 | 2001-03-26 Mike Yang <yang@research.att.com> |
799 | Mark Mitchell <mark@codesourcery.com> | |
800 | ||
801 | * dump.c (dump_access): New function. | |
802 | (cp_dump_tree): Use it. Dump basetype information for class | |
803 | types. | |
804 | ||
b850de4f MM |
805 | 2001-03-26 Mark Mitchell <mark@codesourcery.com> |
806 | ||
807 | * Makefile.in (optimize.o): Depend on params.h. | |
808 | (duplicate_decls): Copy DECL_NUM_STMTS, not DECL_FRAME_SIZE. | |
809 | (init_decl_processing): Set flag_no_inline when doing | |
810 | inlining-on-trees. | |
811 | * optimize.c: Include params.h. | |
812 | (struct inline_data): Improve documentation of FNS. Add | |
813 | FIRST_INLINED_FN, INLINED_STMTS, and CLONING_P. | |
814 | (INSNS_PER_STMT): New macro. | |
815 | (remap_block): Use CLONING_P. | |
816 | (inlinable_function_p): Don't inline big functions. | |
817 | (expand_call_inline): Keep track of how much inlining we've done. | |
818 | (optimize_function): Set FIRST_INLINED_FN. | |
819 | (maybe_clone_body): Set CLONING_P. | |
820 | * semantics.c (simplify_aggr_init_exprs_r): Fix typing problems in | |
821 | tree nodes. | |
822 | (genrtl_finish_function): Clear DECL_DEFER_OUTPUT before calling | |
823 | rest_of_compilation. Clear DECL_RTL for local variables | |
824 | afterwards. | |
825 | (clear_decl_rtl): New function. | |
11fe225a | 826 | |
788bf0e3 NS |
827 | 2001-03-26 Nathan Sidwell <nathan@codesourcery.com> |
828 | ||
829 | Implement DR 209 | |
830 | * cp-tree.h (skip_type_access_control, | |
831 | reset_type_access_control): Prototype. | |
832 | * decl.c (grokdeclarator): Access of friends is not checked. | |
833 | * parse.y (component_decl_list): Reset type access control. | |
834 | * semantics.c (decl_type_access_control): Clear | |
835 | current_type_lookups. | |
836 | (save_type_access_control): Don't save if not deferring. | |
837 | (skip_type_access_control, reset_type_access_control): New | |
838 | functions. | |
839 | (begin_class_definition): Do type access control for basetypes. | |
840 | Start deferred access control. | |
841 | (finish_class_definition): Resume immediate access control if | |
842 | this is a local class. | |
843 | ||
730e1556 KG |
844 | 2001-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
845 | ||
846 | * class.c (add_method): Use memcpy/memmove, not bcopy. | |
847 | ||
848 | * decl.c (duplicate_decls): Likewise. | |
849 | ||
f1a0345c JJ |
850 | 2001-03-23 Jakub Jelinek <jakub@redhat.com> |
851 | ||
852 | * mangle.c (write_discriminator): Use `_0' for discriminator 1, | |
853 | not `_'. | |
854 | ||
8e4ce833 JJ |
855 | 2001-03-23 Jakub Jelinek <jakub@redhat.com> |
856 | ||
857 | * decl.c (local_names): Define. | |
858 | (push_local_name): New. | |
859 | (grok_reference_init): Return init if initializing static reference | |
860 | variable with non-constant instead of emitting it. | |
861 | Move expand_static_init call to cp_finish_decl. | |
862 | (layout_var_decl): Call push_local_name. | |
863 | (maybe_commonize_var): Allow inlining functions even if they have | |
864 | static local variables, use comdat_linkage for them if flag_weak. | |
865 | (check_initializer): Call obscure_complex_init if | |
866 | grok_reference_init returned non-zero. | |
867 | (save_function_data): Clear x_local_names. | |
868 | (pop_cp_function_context): Free x_local_names. | |
869 | (mark_inlined_fns): Remove. | |
870 | (mark_lang_function): Mark x_local_names. | |
871 | (lang_mark_tree): Don't mark DECL_ACCESS for DECL_DISCRIMINATOR_P. | |
872 | Mark inlined_fns as tree, remove call to mark_inlined_fns. | |
873 | * class.c (alter_access): Ensure DECL_ACCESS is never set if | |
874 | DECL_DISCRIMINATOR_P. | |
875 | * cp-tree.h (cp_language_function): Add x_local_names. | |
876 | (lang_decl_flags): Add discriminator into u2. | |
877 | (lang_decl_inlined_fns): Remove. | |
878 | (lang_decl): inlined_fns is now a TREE_VEC. | |
879 | (DECL_DISCRIMINATOR_P, DECL_DISCRIMINATOR): Define. | |
880 | * optimize.c (inlinable_function_p): DECL_INLINED_FNS is now a | |
881 | TREE_VEC, not a custom structure. | |
882 | (optimize_function): Likewise. | |
883 | * mangle.c (discriminator_for_local_entity): Discriminate among | |
884 | VAR_DECL local entities. | |
885 | * search.c (dfs_access_in_type): If DECL_DISCRIMINATOR_P, DECL_ACCESS | |
886 | is not valid. | |
887 | ||
60c87482 BM |
888 | 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz> |
889 | ||
890 | Add support for Java interface method calls. | |
891 | * cp-tree.h (struct lang_type): Add java_interface flag. | |
892 | (TYPE_JAVA_INTERFACE): New macro. | |
893 | * tree.c (cp_valid_lang_attribute): Handle "java_interface" attribute | |
894 | by setting TYPE_JAVA_INTERFACE. | |
895 | * call.c (java_iface_lookup_fn): New static. | |
11fe225a | 896 | (build_over_call): If calling a method declared in a |
60c87482 BM |
897 | TYPE_JAVA_INTERFACE, call build_java_interface_fn_ref to generate the |
898 | expression which resolves the function address. | |
899 | (build_java_interface_fn_ref): New function. | |
900 | ||
94c7f30b RH |
901 | 2001-03-22 Richard Henderson <rth@redhat.com> |
902 | ||
903 | * Make-lang.in (cp/except.o): Don't depend on insn-flags.h. | |
904 | * except.c: Don't include it. | |
905 | ||
fd8b7a0e | 906 | 2001-03-22 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> |
826840d9 | 907 | based on an idea from Joe Buck <jbuck@synopsys.com> |
fd8b7a0e GP |
908 | |
909 | * parse.y (bad_decl, template_arg_list_ignore, arg_list_ignore): | |
910 | New nonterminals. | |
911 | (data_def, component_decl): Add reductions to bad_decl. | |
912 | ||
a1c2b86d JJ |
913 | 2001-03-22 Jakub Jelinek <jakub@redhat.com> |
914 | ||
915 | * method.c (do_build_assign_ref): Don't use build_modify_expr for | |
916 | anonymous aggregates, since they don't have assignment operator | |
917 | method. | |
918 | * decl.c (fixup_anonymous_aggr): Disallow ctors, dtors and copy | |
919 | assignment operators for anonymous structure fields. | |
920 | ||
46ccf50a JM |
921 | 2001-03-21 Jason Merrill <jason@redhat.com> |
922 | ||
923 | * pt.c (instantiate_decl): Abort if we see a member constant | |
924 | instantiation that doesn't already have its initializer. | |
925 | Downgrade explicit instantiation without definition to pedwarn. | |
926 | ||
927 | * cp-tree.h (DECL_TINFO_FN_P, SET_DECL_TINFO_FN_P): Remove. | |
928 | * class.c (build_vtable_entry): Don't check DECL_TINFO_FN_P. | |
929 | (import_export_decl): Check tinfo_decl_p, not DECL_TINFO_FN_P. | |
930 | ||
931 | * cp-tree.h (CLASSTYPE_VTABLE_NEEDS_WRITING): Remove. | |
932 | (pending_vtables): Remove. | |
933 | * decl2.c (pending_vtables): Remove. | |
934 | (import_export_vtable): Use CLASSTYPE_INTERFACE_ONLY, not | |
935 | CLASSTYPE_VTABLE_NEEDS_WRITING. | |
936 | (import_export_class): Likewise. | |
937 | (init_decl2): Don't mark pending_vtables. | |
938 | * lex.c (handle_pragma_vtable): Just sorry. | |
939 | * pt.c (instantiate_class_template): Don't mess with | |
940 | CLASSTYPE_VTABLE_NEEDS_WRITING. | |
941 | (mark_class_instantiated): Likewise. | |
942 | * ptree.c (print_lang_type): Don't print it. | |
943 | * semantics.c (begin_class_definition): Don't set it. | |
944 | ||
945 | * pt.c (template_tail): Replace with last_pending_template. | |
946 | (maybe_templates, maybe_template_tail): Remove. | |
947 | (add_pending_template): Adjust. | |
948 | (instantiate_pending_templates): Adjust. | |
949 | ||
950 | * cp-tree.h (struct saved_scope): Remove lang_stack field. | |
951 | (current_lang_stack): Remove. | |
952 | * decl.c (maybe_push_to_top_level): Don't initialize it. | |
953 | (duplicate_decls): Use current_lang_depth. | |
954 | (xref_basetypes): Likewise. | |
955 | * class.c (current_lang_depth): New fn. | |
956 | (push_lang_context): Use more varray functionality. | |
957 | (pop_lang_context): Likewise. | |
64d9c3fe JM |
958 | |
959 | * error.c (GLOBAL_THING): Always use '__'. | |
960 | ||
1c06710a MM |
961 | 2001-03-21 Mark Mitchell <mark@codesourcery.com> |
962 | ||
71cb9286 MM |
963 | * class.c (build_clone): Clear DECL_ASSEMBLER_NAME. |
964 | ||
1c06710a MM |
965 | * mangle.c (mangle_decl_string): Mangle the names of overloaded |
966 | operators, even when they have `extern "C"' linkage. | |
967 | ||
92643fea MM |
968 | 2001-03-19 Mark Mitchell <mark@codesourcery.com> |
969 | ||
970 | * class.c (get_vtable_decl): Use SET_DECL_ASSEMBLER_NAME, | |
971 | COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME | |
972 | where it's not necessary. | |
973 | (add_method): Remove optimization involving comparison of | |
974 | DECL_ASSEMBLER_NAME. | |
975 | (build_vtbl_or_vbase_field): Use SET_DECL_ASSEMBLER_NAME, | |
976 | COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME | |
977 | where it's not necessary. | |
978 | (check_methods): Likewise. | |
979 | (build_clone): Likewise. | |
980 | (built_vtt): Likewise. | |
981 | * cp-tree.h (DECL_NEEDED_P): Likewise. | |
982 | * decl.c (pushtag): Likewise. | |
983 | (duplicate_decls): Likewise. | |
984 | (pushdecl): Likewise. | |
985 | (builtin_function): Likewise. | |
986 | (build_library_fn_1): Set DECL_LANGUAGE for library functions. | |
987 | (build_cp_library_fn): Likewise. | |
988 | (maybe_commonize_var): Use SET_DECL_ASSEMBLER_NAME, | |
989 | COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME | |
990 | where it's not necessary. | |
991 | (make_rtl_for_nonlocal_decl): Likewise. | |
992 | (cp_finish_decl): Likewise. | |
993 | (grokfndecl): Likewise. | |
994 | (grokvardecl): Likewise. | |
995 | (grokdeclarator): Likewise. | |
996 | (start_function): Likewise. | |
997 | (cp_missing_return_ok_p): Likewise. | |
998 | * decl2.c (grokclassfn): Likewise. | |
999 | (check_classfn): Likewise. | |
1000 | (finish_static_data_member_decl): Likewise. | |
1001 | (grokfield): Likewise. | |
1002 | * error.c (GLOBAL_IORD_P): Remove. | |
1003 | (dump_global_iord): Improve output. | |
1004 | (dump_decl): Avoid using DECL_ASSEMBLER_NAME. | |
1005 | * except.c (nothrow_libfn_p): Summarily reject any function not in | |
1006 | namespace-scope. | |
1007 | * init.c (build_java_class_ref): Don't explicitly set | |
1008 | DECL_ASSEMBLER_NAME after calling mangle_decl. | |
1009 | * mangle.c (mangle_decl_string): Handle extern "C" functions. | |
1010 | (mangle_decl): Set the DECL_ASSEMBLER_NAME for the decl. | |
1011 | * method.c (set_mangled_name_for_decl): Don't explicitly set | |
1012 | DECL_ASSEMBLER_NAME after calling mangle_decl. | |
1013 | (make_thunk): Explicitly set the DECL_ASSEMBLER_NAME and | |
1014 | IDENTIFIER_GLOBAL_VALUE for the thunk. | |
1015 | * pt.c (set_mangled_name_for_template_decl): Remove. | |
1016 | (check_explicit_specialization): Don't use it. | |
1017 | (looup_template_class): Don't set DECL_ASSEMBLER_NAME. | |
1018 | (tsubst_friend_function): Likewise. | |
1019 | (tsubst_decl): Likewise. | |
1020 | (regenerate_decl_from_template): Use COPY_DECL_ASSEMBLER_NAME. | |
1021 | * rtti.c (get_tinfo_decl): Use SET_DECL_ASSEMBLER_NAME, | |
1022 | COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME | |
1023 | where it's not necessary. | |
1024 | (tinfo_base_init): Likewise. | |
1025 | (create_real_tinfo_var): Likewise. | |
1026 | * search.c (looup_field_1): Likewise. | |
1027 | * semantics.c (finish_named_return_value): Likewise. | |
1028 | * tree.c (init_tree): Set lang_set_decl_assembler_name. | |
11fe225a | 1029 | |
d064d75a GDR |
1030 | 2001-03-15 Gabriel Dos Reis <gdr@codesourcery.com> |
1031 | ||
1032 | Correct semantics restrictions checking in throw-expression. | |
1033 | * except.c (is_admissible_throw_operand): New function. | |
1034 | (build_throw): Use it. | |
1035 | ||
a3eab619 MM |
1036 | 2001-03-14 Mark Mitchell <mark@codesourcery.com> |
1037 | ||
1038 | * decl.c (cp_make_fnname_decl): Set DECL_IGNORED_P on __FUNCTION__ | |
1039 | and its ilk. | |
1040 | ||
19e7881c MM |
1041 | 2001-03-14 Mark Mitchell <mark@codesourcery.com> |
1042 | ||
1043 | * class.c (build_clone): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc. | |
1044 | * cp-tree.h (DECL_IN_MEMORY_P): Likewise. | |
1045 | * decl.c (duplicate_decls): Likewise. | |
1046 | (builtin_function): Likewise. | |
1047 | (build_library_fn): Likewise. | |
1048 | (build_cp_library_fn): Likewise. | |
1049 | (check_initializer): Likewise. | |
1050 | (cp_finish_decl): Likewise. | |
1051 | * decl2.c (grokfield): Likewise. | |
1052 | (grok_function_init): Remove #if 0'd code. | |
1053 | (finish_anon_union): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc. | |
1054 | * friend.c (do_friend): Likewise. | |
1055 | * init.c (get_temp_regvar): Likewise. | |
1056 | * method.c (make_thunk): Likewise. | |
1057 | * pt.c (tsubst_friend_function): Likewise. | |
1058 | (tsubst_decl): Likewise. | |
1059 | (regenerate_decl_from_template): Likewise. | |
1060 | * semantics.c (genrtl_named_return_value): Likewise. | |
1061 | (expand_body): Likewise. | |
1062 | (genrtl_finish_function): Likewise. | |
1063 | * tree.c (cp_tree_equal): Likewise. | |
11fe225a | 1064 | |
78fe06c2 NS |
1065 | 2001-03-12 Nathan Sidwell <nathan@codesourcery.com> |
1066 | ||
1067 | * call.c (convert_like_real): Add extra semantics to INNER | |
1068 | parameter. Don't convert to temporary if a user conversion | |
1069 | gives us an lvalue that we're about to bind to a reference. | |
1070 | Set INNER to indicate pending reference binding on recursive | |
1071 | calls. | |
1072 | ||
b3e68a79 NB |
1073 | 2001-03-10 Neil Booth <neil@daikokuya.demon.co.uk> |
1074 | ||
1075 | * cp/lex.c: Delete duplicate pending_lang_change. | |
1076 | ||
1077 | 2001-03-10 Neil Booth <neil@daikokuya.demon.co.uk> | |
1078 | ||
1079 | * cp/lex.c (handle_pragma_interface, handle_pragma_implementation): | |
1080 | Similarly. | |
1081 | * cp/repo.c (get_base_filename, open_repo_file): Similarly. | |
1082 | * cp/cp-tree.h: Remove file_name_nondirectory prototype. | |
1083 | ||
11642c3a ZW |
1084 | 2001-03-09 Zack Weinberg <zackw@stanford.edu> |
1085 | ||
1086 | * Make-lang.in: Add dependencies on $(TM_P_H) as appropriate. | |
1087 | ||
bb6852eb | 1088 | 2001-03-08 Stan Shebs <shebs@apple.com> |
f7687817 SS |
1089 | |
1090 | * cp-tree.h (set_identifier_local_value): Remove unused decl. | |
1091 | ||
cc937581 ZW |
1092 | 2001-03-06 Zack Weinberg <zackw@stanford.edu> |
1093 | ||
1094 | * spew.c: Remove references to CPP_OSTRING. | |
1095 | ||
d1188d91 AH |
1096 | 2001-03-06 Andrew Haley <aph@redhat.com> |
1097 | ||
1098 | * typeck.c (convert_arguments): Check that we have an fndecl. | |
1099 | ||
4eaf1d5b AH |
1100 | 2001-03-05 Andrew Haley <aph@redhat.com> |
1101 | ||
1102 | * typeck.c (convert_arguments): Don't do ellipsis conversion for | |
1103 | __built_in_constant_p. | |
1104 | ||
7eeb553c NS |
1105 | 2001-03-02 Nathan Sidwell <nathan@codesourcery.com> |
1106 | ||
1107 | * typeck.c (build_static_cast): Allow enum to enum conversions | |
1108 | as per DR 128. | |
1109 | ||
d282fcb2 NS |
1110 | 2001-03-02 Nathan Sidwell <nathan@codesourcery.com> |
1111 | ||
1112 | * class.c (check_field_decls): Pointers to member do not a | |
1113 | non-pod struct make, as per DR 148. | |
1114 | ||
f86fdf68 NS |
1115 | 2001-03-02 Nathan Sidwell <nathan@codesourcery.com> |
1116 | ||
1117 | * call.c (joust): cp_pedwarn when using gnu extension concerning | |
1118 | worst conversion sequences. | |
1119 | ||
d6edb99e ZW |
1120 | 2001-03-01 Zack Weinberg <zackw@stanford.edu> |
1121 | ||
1122 | * decl.c: Replace all uses of 'boolean' with 'bool'. | |
1123 | ||
f7143427 ZW |
1124 | 2001-03-01 Zack Weinberg <zackw@stanford.edu> |
1125 | ||
1126 | * lang-specs.h: Add zero initializer for cpp_spec field to | |
1127 | all array elements that need one. Don't put an #ifdef inside | |
1128 | the initializer list; set a default for CPLUSPLUS_CPP_SPEC and | |
1129 | use it. | |
1130 | ||
fbfe8c9e NS |
1131 | 2001-03-01 Nathan Sidwell <nathan@codesourcery.com> |
1132 | ||
1133 | Implement using decls inside template functions. | |
1134 | * decl2.c (validate_nonmember_using_decl): Don't special case | |
1135 | fake_std_node in the global namespace. Don't reject early when | |
1136 | processing a template. | |
1137 | (do_local_using_decl): Add to statement tree. Don't do further | |
1138 | processing when building a template. | |
1139 | * pt.c (tsubst_expr, DECL_STMT case): Deal with USING_DECLs. | |
1140 | ||
4d24a889 NS |
1141 | 2001-03-01 Nathan Sidwell <nathan@codesourcery.com> |
1142 | ||
1143 | * decl2.c (do_nonmember_using_decl): Don't complain if we find | |
1144 | same function. Do complain about ambiguating extern "C" | |
1145 | declarations. | |
1146 | ||
e5844e6d NS |
1147 | 2001-02-28 Nathan Sidwell <nathan@codesourcery.com> |
1148 | ||
1149 | Remove floating point and complex type template constant parms. | |
1150 | * pt.c (convert_nontype_argument): Remove REAL_TYPE and | |
1151 | COMPLEX_TYPE extensions. | |
1152 | (invalid_nontype_parm_type_p): Likewise. | |
1153 | ||
788f238c JO |
1154 | 2001-02-27 Jeffrey Oldham <oldham@codesourcery.com> |
1155 | ||
1156 | * except.c (call_eh_info): Revert "match_function"'s type. | |
1157 | ||
73ea87d7 NS |
1158 | 2001-02-27 Nathan Sidwell <nathan@codesourcery.com> |
1159 | ||
1160 | Fix ctor vtable vcall offsets. | |
1161 | * class.c (struct vtbl_init_data_s): Add rtti_binfo member. | |
1162 | (build_rtt_vtbl_entries): Lose RTTI_BINFO parameter. | |
1163 | (get_matching_base): Remove. | |
1164 | (get_original_base): New function. | |
11fe225a | 1165 | (build_vtbl_initializer): Initialize vid.rtti_binfo. |
73ea87d7 NS |
1166 | Use a virtual thunk for a ctor vtable with an index |
1167 | (add_vcall_offset_vtbl_entries_1): Check if binfo has lost a | |
1168 | primary base within a constructor vtable. Only set | |
1169 | BV_VCALL_INDEX when not a constructor vtable. Adjust vcall offset | |
1170 | when primary base has been lost. | |
1171 | * cp-tree.h (BINFO_VIRTUALS): Remove ambiguity from comment. | |
1172 | ||
fe730161 JO |
1173 | 2001-02-26 Jeffrey Oldham <oldham@codesourcery.com> |
1174 | ||
1175 | * call.c (joust): Ensure more_specialized()'s argument length | |
1176 | parameter has correct value for constructors. | |
1177 | ||
e5dd4aad NS |
1178 | 2001-02-26 Nathan Sidwell <nathan@codesourcery.com> |
1179 | ||
1180 | * except.c (call_eh_info): Cleanup generation of cp_eh_info struct. | |
11fe225a | 1181 | |
e5dd4aad NS |
1182 | * decl.c (mark_inlined_fns): Prototype. |
1183 | ||
25200ab2 MM |
1184 | 2001-02-22 Mark Mitchell <mark@codesourcery.com> |
1185 | ||
1186 | * spew.c (yylex): Correct handling of friends. | |
1187 | ||
f58c04ac MM |
1188 | 2001-02-22 Mark Mitchell <mark@codesourcery.com> |
1189 | ||
1190 | * mangle.c (write_encoding): Pass write_function_type the | |
1191 | FUNCTION_DECL for the function being encoded. | |
1192 | (write_function_type): Pass it along to write_bare_function_type. | |
1193 | (write_bare_function_type): Pass it along to write_method_parms. | |
1194 | (write_method_parms): Don't mangle the compiler-generated | |
1195 | parameters to a constructor or destructor. | |
1196 | ||
9c96f3f8 AJ |
1197 | 2001-02-22 Andreas Jaeger <aj@suse.de> |
1198 | ||
1199 | * optimize.c: Include toplev.h for | |
1200 | note_deferral_of_defined_inline_function prototype. | |
1201 | ||
b3bae5e2 JJ |
1202 | 2001-02-22 Jakub Jelinek <jakub@redhat.com> |
1203 | ||
1204 | * cp-tree.h (struct lang_decl_inlined_fns): New. | |
1205 | (struct lang_decls): Add inlined_fns. | |
1206 | (DECL_INLINED_FNS): New macro. | |
1207 | * optimize.c (struct inline_data): Add inlined_fns. | |
1208 | (declare_return_variable): Use VARRAY_ACTIVE_SIZE macro. | |
1209 | (inlinable_function_p): Likewise, fix typo in comment, | |
1210 | function is not inlinable if it already inlined function currently | |
1211 | being optimized. | |
1212 | (expand_call_inline): Add fn to inlined_fns if neccessary. | |
1213 | (optimize_function): Initialize inlined_fns. | |
1214 | Save inlined_fns into DECL_INLINED_FNS after expanding inlines. | |
1215 | * decl.c (mark_inlined_fns): New function. | |
1216 | (lang_mark_tree): Call it. | |
1217 | ||
5daf7c0a JM |
1218 | 2001-02-21 Jason Merrill <jason@redhat.com> |
1219 | ||
1220 | * cp-tree.h (struct lang_decl_flags): Remove uninlinable flag. | |
1221 | (DECL_UNINLINABLE): Move to middle-end. | |
1222 | ||
1223 | * class.c (clone_function_decl): Set DECL_ABSTRACT on original fn. | |
1224 | * decl.c (duplicate_decls): Preserve DECL_ABSTRACT. | |
1225 | * class.c (build_clone): Set DECL_ABSTRACT_ORIGIN for the clone. | |
1226 | * optimize.c (maybe_clone_body): Set DECL_ABSTRACT_ORIGIN for the | |
1227 | parms and outer BLOCK. note_deferral_of_defined_inline_function. | |
1228 | ||
1229 | * method.c (implicitly_declare_fn): Don't set DECL_ARTIFICIAL on | |
1230 | second parm of op=. | |
1231 | ||
2c0fc02d MM |
1232 | 2001-02-19 Mark Mitchell <mark@codesourcery.com> |
1233 | ||
1234 | * decl2.c (set_decl_namespace): Allow explicit instantiations in | |
1235 | any namespace. | |
1236 | ||
612164eb KL |
1237 | 2001-02-18 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> |
1238 | ||
1239 | * optimize.c (expand_call_inline): Don't walk subtrees of type | |
1240 | nodes. | |
1241 | ||
69a59a49 MM |
1242 | 2001-02-18 Mark Mitchell <mark@codesourcery.com> |
1243 | ||
1244 | * class.c (add_vcall_offset_vtbl_entries_1): Only add one entry | |
1245 | for a destructor. | |
1246 | ||
e0fff4b3 JM |
1247 | 2001-02-18 Jason Merrill <jason@redhat.com> |
1248 | ||
1249 | Do put the VTT parameter in DECL_ARGUMENTS. | |
1250 | * cp-tree.h (struct cp_language_function): Add x_vtt_parm. | |
1251 | (current_vtt_parm): New macro. | |
1252 | (struct lang_decl_flags): Add has_vtt_parm_p, remove vtt_parm. | |
1253 | (DECL_HAS_VTT_PARM_P): New macro. | |
1254 | (DECL_VTT_PARM): Remove. | |
1255 | (FUNCTION_FIRST_USER_PARMTYPE, FUNCTION_FIRST_USER_PARM): New macros. | |
1256 | * decl.c (duplicate_decls): Only copy the operator code if | |
1257 | appropriate. | |
1258 | (start_function): Set current_vtt_parm. | |
1259 | (lang_mark_tree): Don't mark vtt_parm. | |
9c96f3f8 | 1260 | * decl2.c (maybe_retrofit_in_chrg): Do add the VTT parm to |
e0fff4b3 JM |
1261 | DECL_ARGUMENTS. Set DECL_HAS_VTT_PARM_P. |
1262 | * class.c (build_clone): Maybe remove the VTT parm. | |
1263 | * optimize.c (maybe_clone_body): Set up the VTT parm. | |
1264 | * pt.c (copy_default_args_to_explicit_spec): Preserve the VTT parm. | |
1265 | * call.c (build_over_call): Just allow the VTT arg. | |
1266 | * method.c (make_thunk): Don't set DECL_VTT_PARM. | |
1267 | (do_build_copy_constructor): Use FUNCTION_FIRST_USER_PARM. | |
1268 | (synthesize_method): Use FUNCTION_FIRST_USER_PARMTYPE. | |
1269 | * decl.c (grokdeclarator, copy_args_p, grok_ctor_properties): Likewise. | |
1270 | * error.c (dump_function_decl): Likewise. | |
1271 | * call.c (build_user_type_conversion_1, convert_like_real): Abort | |
1272 | if we try to call a constructor with in-charge or VTT parms. | |
1273 | * method.c (skip_artificial_parms_for): New fn. | |
1274 | * call.c (add_function_candidate, build_over_call): Call it. | |
1275 | * call.c (build_new_method_call): Use current_vtt_parm. | |
1276 | * init.c (expand_virtual_init): Likewise. | |
1277 | * class.c (same_signature_p): No longer static. | |
1278 | * cp-tree.h: Declare it. | |
1279 | * search.c (look_for_overrides_r): Use it. | |
1280 | ||
c750255c MM |
1281 | 2001-02-17 Mark Mitchell <mark@codesourcery.com> |
1282 | ||
8fa33dfa MM |
1283 | * cp-tree.h (new_abi_rtti_p): Remove. |
1284 | (name_mangling_version): Likewise. | |
1285 | (flag_do_squangling): Likewise. | |
1286 | * class.c (build_rtti_vtbl_entries): Remove old ABI support. | |
1287 | * decl.c (grokfndecl): Likewise. | |
1288 | * decl2.c (name_mangling_version): Remove. | |
1289 | (flag_do_squangling): Likewise. | |
1290 | (lang_f_options): Remove `squangle'. | |
1291 | (unsupported_options): Add `squangle'. | |
1292 | (cxx_decode_option): Issue a warning about uses of | |
1293 | -fname-mangling-version. | |
1294 | (finish_file): Remove old ABI support. | |
1295 | * pt.c (check_explicit_specialization): Likewise. | |
1296 | (tsubst_decl): Likewise. | |
1297 | * rtti.c (init_rtti_processing): Likewise. | |
1298 | (build_headof): Likewise. | |
1299 | (get_tinfo_decl_dynamic): Likewise. | |
1300 | (tinfo_from_decl): Likewise. | |
1301 | (build_dynamic_cast_1): Likewise. | |
1302 | (synthesize_tinfo_var): Likewise. | |
12fa82db MM |
1303 | * init.c (build_new): Allow enumeration types for the array-bounds |
1304 | in a direct-new-declarator. | |
1305 | ||
1306 | * semantics.c (finish_typeof): Resolve OFFSET_REFs. | |
1307 | ||
c750255c MM |
1308 | * pt.c (check_explicit_specialization): Copy TREE_PRIVATE and |
1309 | TREE_PROTECTED from the template being specialized. | |
1310 | ||
a714e5c5 JM |
1311 | 2001-02-17 Jason Merrill <jason@redhat.com> |
1312 | ||
1313 | * decl2.c (build_artificial_parm): Set TREE_READONLY. | |
1314 | ||
9c96f3f8 | 1315 | * decl.c (bad_specifiers): Allow throw specs on things with |
a714e5c5 JM |
1316 | pointer-to-function or -member-function type. |
1317 | * init.c (build_default_init): Don't use a CONSTRUCTOR to initialize | |
1318 | a pmf. | |
1319 | ||
8084b91e MM |
1320 | 2001-02-17 Mark Mitchell <mark@codesourcery.com> |
1321 | ||
1322 | * call.c (check_dtor_name): Handle template names correctly. | |
1323 | ||
48f22ed2 JM |
1324 | 2001-02-16 Jason Merrill <jason@redhat.com> |
1325 | ||
1326 | * cp-tree.h (DECL_USE_VTT_PARM): Remove. | |
1327 | * decl2.c (maybe_retrofit_in_chrg): Don't create it. | |
1328 | * optimize.c (maybe_clone_body): Don't substitute it. | |
1329 | * call.c (build_new_method_call): Check in_chrg instead. | |
1330 | * init.c (expand_virtual_init): Likewise. | |
1331 | ||
e8186ecf GDR |
1332 | 2001-02-16 Gabriel Dos Reis <gdr@codesourcery.com> |
1333 | ||
1334 | * decl.c (check_tag_decl): Make sure a typedef for an anonymous | |
1335 | class-type introduces at least a type-name. | |
1336 | ||
2c1be322 JJ |
1337 | 2001-02-16 Jakub Jelinek <jakub@redhat.com> |
1338 | ||
1339 | * call.c (convert_like_real): Create a temporary for non-lvalue. | |
1340 | ||
aab8454a JO |
1341 | 2001-02-16 Jeffrey Oldham <oldham@codesourcery.com> |
1342 | ||
1343 | * cp-tree.h: Fix typos in comments. | |
1344 | ||
a901fa64 JM |
1345 | 2001-02-16 Jason Merrill <jason@redhat.com> |
1346 | ||
1347 | * optimize.c (remap_block): If we're compiling a clone, pass the | |
1348 | new block to insert_block. | |
1349 | ||
8853373c MM |
1350 | 2001-02-16 Mark Mitchell <mark@codesourcery.com> |
1351 | ||
1352 | * semantics.c (finish_asm_stmt): Robustify. | |
1353 | ||
b60ecc04 MM |
1354 | 2001-02-15 Mark Mitchell <mark@codesourcery.com> |
1355 | ||
1356 | * pt.c (push_template_decl_real): Don't remangle the name of a | |
1357 | class template. | |
1358 | ||
e658449e JM |
1359 | 2001-02-15 Jim Meyering <meyering@lucent.com> |
1360 | ||
fd48c9b5 DD |
1361 | * Make-lang.in (c++.install-common): Depend on installdirs. |
1362 | (c++.install-info): Likewise. | |
1363 | (c++.install-man): Likewise. | |
e658449e | 1364 | |
f1a3f197 MM |
1365 | 2001-02-15 Mark Mitchell <mark@codesourcery.com> |
1366 | ||
1367 | * typeck2.c (build_m_component_ref): Robustify. | |
1368 | ||
8826b15b AO |
1369 | 2001-02-15 Alexandre Oliva <aoliva@redhat.com> |
1370 | ||
1371 | * friend.c (do_friend): Don't take the nested [template] class | |
1372 | into account when deciding whether to warn about the friend | |
1373 | function not referring to a template function. | |
1374 | ||
7161c1a5 JJ |
1375 | 2001-02-14 Jakub Jelinek <jakub@redhat.com> |
1376 | ||
1377 | * typeck.c (build_unary_op): Clarify error message. | |
1378 | ||
4806765e AH |
1379 | 2001-02-08 Aldy Hernandez <aldyh@redhat.com> |
1380 | ||
a901fa64 JM |
1381 | * parse.y (component_constructor_declarator): allow optional |
1382 | parentheses around constructor class name. | |
4806765e | 1383 | |
bfc8e1e2 NS |
1384 | 2001-02-14 Nathan Sidwell <nathan@codesourcery.com> |
1385 | ||
1386 | * cp-tree.h (setup_vtbl_ptr): Move prototype to semantics.c | |
1387 | section. | |
1388 | * init.c (emit_base_init): Remove incorrect comment about | |
1389 | virtual bases. | |
1390 | * method.c (make_thunk): Fix comment alignment. | |
1391 | ||
394fd776 NS |
1392 | 2001-02-14 Nathan Sidwell <nathan@codesourcery.com> |
1393 | ||
1394 | Kill remnants of this is variable. | |
1395 | * cp-tree.h (flag_this_is_variable): Remove. | |
1396 | * decl2.c (flag_this_is_variable): Remove. | |
1397 | * class.c (fixed_type_or_null): Add cdtor parm. Adjust. | |
1398 | (build_vbase_path): The path is non-static, even in a cdtor. | |
1399 | (resolves_to_fixed_type_p): Add additional return value. | |
1400 | * search.c (init_vbase_pointers): Adjust. | |
1401 | * tree.c (lvalue_p_1): Adjust. | |
1402 | * typeck.c (mark_addressable): Adjust. | |
1403 | ||
d0ab7624 NS |
1404 | 2001-02-14 Nathan Sidwell <nathan@codesourcery.com> |
1405 | ||
1406 | * pt.c (unify): Don't check cv quals of array types. | |
1407 | ||
7773899b NS |
1408 | 2001-02-14 Nathan Sidwell <nathan@codesourcery.com> |
1409 | ||
1410 | * tree.c (cp_build_qualified_type_real): Use CP_TYPE_QUALS to | |
1411 | check whether we already have the type. | |
1412 | ||
52682a1b MM |
1413 | 2001-02-13 Mark Mitchell <mark@codesourcery.com> |
1414 | ||
1415 | * cp-tree.h (CLASSTYPE_DESTRUCTORS): Fix typo in comment. | |
1416 | * call.c (build_op_delete_call): Simplify to remove duplicate | |
1417 | code. | |
1418 | * class.c (clone_function_decl): Don't build the deleting variant | |
1419 | of a non-virtual destructor. | |
1420 | * decl.c (finish_destructor_body): Don't call delete if this is a | |
1421 | non-virtual destructor. | |
1422 | * init.c (build_delete): Explicitly call `operator delete' when | |
1423 | deleting an object with a non-virtual destructor. | |
9c96f3f8 | 1424 | |
3b6bd115 JM |
1425 | 2001-02-13 Jason Merrill <jason@redhat.com> |
1426 | ||
1427 | * lang-specs.h: Add more __EXCEPTIONS. | |
1428 | ||
45abaea8 NS |
1429 | 2001-02-12 Nathan Sidwell <nathan@codesourcery.com> |
1430 | ||
1431 | * typeck2.c (process_init_constructor): Check | |
1432 | TREE_HAS_CONSTRUCTOR before issuing missing init warning. | |
1433 | ||
996065b4 NS |
1434 | 2001-02-12 Nathan Sidwell <nathan@codesourcery.com> |
1435 | ||
1436 | * pt.c (maybe_adjust_types_for_deduction, DEDUCE_ORDER case): | |
1437 | Remove spurious information in comment. Allow further | |
1438 | adjustments of REFERENCE_TYPE args. | |
1439 | ||
82c18d5c NS |
1440 | 2001-02-12 Nathan Sidwell <nathan@codesourcery.com> |
1441 | ||
1442 | * errfn.c (cp_deprecated): Tweak diagnostic text. | |
1443 | * parse.y (new_initializer): Deprecate initializer lists | |
1444 | extension. | |
1445 | ||
1f84ec23 MM |
1446 | 2001-02-12 Mark Mitchell <mark@codesourcery.com> |
1447 | ||
1448 | Remove old ABI support. | |
1449 | ||
8c310e3f MM |
1450 | 2001-02-11 Mark Mitchell <mark@codesourcery.com> |
1451 | ||
b1012f1b MM |
1452 | * decl2.c (flag_vtable_thunks): Always set it to 1. |
1453 | (flag_new_abi): Likewise. | |
1454 | * lang-specs.h: Remove conditional on ENABLE_NEW_GXX_ABI. | |
9c96f3f8 | 1455 | |
8c310e3f MM |
1456 | * Makefile.in (g++spec.o): Fix typo. |
1457 | ||
3b635dfc JM |
1458 | 2001-02-09 Jason Merrill <jason@redhat.com> |
1459 | ||
1460 | * lang-specs.h: Restore definition of __EXCEPTIONS. | |
1461 | ||
bd0d5d4a JM |
1462 | 2001-02-08 Jason Merrill <jason@redhat.com> |
1463 | ||
1464 | * search.c (shared_member_p): New function. | |
1465 | (lookup_field_r): Use it. | |
1466 | * cp-tree.h (SHARED_MEMBER_P): Remove. | |
1467 | ||
1468 | * method.c (process_overload_item): Handle template-dependent array | |
1469 | bounds. | |
1470 | * pt.c (type_unification_real): If we end up with undeduced nontype | |
1471 | parms, try again. | |
1472 | ||
1473 | * decl.c (lookup_name_real): Tweak warning to refer to decls, not | |
1474 | types. | |
1475 | ||
1476 | * typeck2.c (friendly_abort): Don't say anything if we have | |
1477 | earlier errors or sorries. | |
1478 | ||
9c96f3f8 | 1479 | * decl.c (check_tag_decl): Notice attempts to redefine bool and |
bd0d5d4a JM |
1480 | wchar_t. Ignore if in_system_header. |
1481 | ||
1482 | * decl.c (maybe_push_cleanup_level): New fn... | |
1483 | (start_decl_1): ...split out from here. | |
1484 | * cvt.c (build_up_reference): Use it. | |
1485 | * cp-tree.h: Declare it. | |
1486 | ||
a9374841 MM |
1487 | 2001-02-07 Mark Mitchell <mark@codesourcery.com> |
1488 | ||
9c96f3f8 | 1489 | * lang-specs.h: Use CPLUSPLUS_CPP_SPEC for the preprocessor |
a9374841 MM |
1490 | spec. |
1491 | ||
a87b4257 NS |
1492 | 2001-02-06 Nathan Sidwell <nathan@codesourcery.com> |
1493 | ||
1494 | * pt.c (lookup_template_class): Make sure it's a primary | |
1495 | template or template_template_parm when called from the parser. | |
1496 | (instantiate_template_class): Add assertion. | |
1497 | ||
518fed76 AO |
1498 | 2001-02-05 Alexandre Oliva <aoliva@redhat.com> |
1499 | ||
1500 | * method.c (build_mangled_name) [old abi]: Protect flush_repeats() | |
1501 | from error_mark_node. | |
1502 | ||
9965d119 NS |
1503 | 2001-02-05 Nathan Sidwell <nathan@codesourcery.com> |
1504 | ||
1505 | Fix specification and implementation bugs in V3 ABI | |
1506 | construction vtables. | |
1507 | * cp-tree.h (flag_dump_class_layout): New flag. | |
1508 | (BINFO_OVERRIDE_ALONG_VIRTUAL_PATH_P): Remove. | |
1509 | (BINFO_LOST_PRIMARY_P): New flag. | |
1510 | (SET_BINFO_NEW_VTABLE_MARKED): Adjust asserts. | |
1511 | (BINFO_PRIMARY_MARKED_P): Rename to ... | |
1512 | (BINFO_PRIMARY_P): ... here. | |
1513 | (binfo_via_virtual): New prototype. | |
1514 | * decl2.c (flag_dump_class_layout): New flag. | |
1515 | (cxx_decode_option): Set it. Adjust -fdump-translation-unit to | |
1516 | use `=' as a file name separator. | |
1517 | * init.c (dfs_initialize_vtbl_ptrs): Walk into virtual primary | |
1518 | bases. | |
1519 | (build_vtbl_address): If this is a virtual primary base, then | |
1520 | get the vtbl of what it is ultimately primary for. | |
1521 | * search.c (dfs_skip_nonprimary_vbases_unmarkedp): Adjust | |
1522 | for BINFO_PRIMARY_P. | |
1523 | (dfs_skip_nonprimary_vbases_markedp): Likewise. | |
1524 | (get_shared_vbase_if_not_primary): Likewise. | |
1525 | (dfs_get_pure_virtuals): Likewise. | |
1526 | (expand_upcast_fixups): Likewise. | |
1527 | (fixup_virtual_upcast_offsets): Likewise. | |
1528 | (dfs_find_vbase_instance): Likewise. | |
1529 | (find_vbase_instance): Likewise. | |
1530 | (binfo_from_vbase): Adjust comment to reflect reality. | |
1531 | (binfo_via_virtual): New function. | |
1532 | * class.c (VTT_TOP_LEVEL_P, VTT_MARKED_BINFO_P): New macros | |
1533 | for binfo walking during VTT construction. | |
1534 | (dfs_mark_primary_bases): Remove. | |
1535 | (force_canonical_binfo_r): New function. | |
1536 | (force_canonical_binfo): New function. | |
1537 | (mark_primary_virtual_base): New function. | |
1538 | (mark_primary_bases): Walk in inheritance graph order, use | |
1539 | mark_primary_virtual_base. | |
1540 | (determine_primary_base): Use some more intermediate variables. | |
1541 | (dfs_find_final_overrider): Don't check for overriding along a | |
1542 | virtual path. | |
1543 | (dfs_modify_vtables): Walk into primary virtual bases too. | |
1544 | (walk_subobject_offsets): Adjust for BINFO_PRIMARY_P. | |
1545 | (build_base_fields): Likewise. | |
1546 | (dfs_set_offset_for_unshared_vbases): Likewise. | |
1547 | (layout_virtual_bases): Likewise. | |
1548 | (end_of_class): Likewise. | |
1549 | (finish_struct_1): Call dump_class_hierarchy, if requested. | |
1550 | (dfs_get_primary_binfo): Use BINFO_TYPE for binfos. | |
1551 | (dump_class_hierarchy_r): Add stream parameter. Emit more information. | |
1552 | (dump_class_hierarchy): Add file parameter. Append to file, if | |
1553 | required. | |
1554 | (finish_vtbls): Adjust accumulate_vtbl_inits call. | |
1555 | Use canonical base for virtual bases. | |
1556 | (build_vtt): Add more comments. Adjust build_vtt_inits call. | |
1557 | (build_vtt_inits): Remove VIRTUAL_VTTS_P parm. | |
1558 | Only set BINFO_VPTR_INDEX on top level. Use VTT_TOP_LEVEL_P, | |
1559 | VTT_MARKED_BINFO_P for binfo walking. Use canonical vbase for | |
1560 | virtual VTTs. | |
1561 | (dfs_build_secondary_vptr_vtt_inits): Extract VTT_TOP_LEVEL_P | |
1562 | from DATA. We want virtual primary bases and all bases via virtual. | |
1563 | Only set BINFO_VPTR_INDEX for top level. Look up from a primary | |
1564 | virtual base when not a construction vtable. | |
1565 | (dfs_ctor_vtable_bases_queue_p): New DFS predicate. | |
1566 | (build_ctor_vtbl_group): Adjust accumulate_vtbl_inits call. | |
1567 | Use canonical bases when processing virtual bases. | |
1568 | (accumulate_vtbl_inits): We're interested in any base via a | |
1569 | virtual path. | |
1570 | (dfs_accumulate_vtbl_inits): If this is a primary virtual base | |
1571 | within a construction vtable, determine what is being overridden. | |
1572 | (build_vtbl_initializer): Add more comments | |
1573 | (add_vcall_offset_vtbl_entries_1): Adjust comment. | |
1574 | (build_rtti_vtbl_entries): Check if the base has lost its | |
1575 | primary. | |
1576 | ||
39d6f2e8 MM |
1577 | 2001-02-05 Mark Mitchell <mark@codesourcery.com> |
1578 | ||
1579 | * Makefile.in (g++spec.o): Adjust use of DRIVER_DEFINES. | |
1580 | ||
400500c4 RK |
1581 | Sun Feb 4 15:52:44 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> |
1582 | ||
1583 | * decl.c (pushdecl): Call abort instead of fatal. | |
1584 | * except.c (decl_is_java_type): Call fatal_error instead of fatal. | |
1585 | * init.c (build_new_1): Likewise. | |
1586 | (build_java_class_ref): Call internal_error and fatal_error, not fatal. | |
1587 | * decl.c (build_typename_type): hash_table_init now returns void. | |
1588 | decl.c (init_decl_processing): Make an error non-fatal. | |
1589 | ||
97458258 MM |
1590 | 2001-02-04 Mark Mitchell <mark@codesourcery.com> |
1591 | ||
1592 | * cp-tree.h (CLASSTYPE_INTERFACE_UNKNOWN): Fix formatting. | |
1593 | Document. | |
1594 | (CLASSTYPE_INTERFACE_KNOWN): Likewise. | |
1595 | (SET_CLASSTYPE_INTERFACE_UNKNOWN_X): Likewise. | |
1596 | (SET_CLASSTYPE_INTERFACE_UNKNOWN): Likewise. | |
1597 | (SET_CLASSTYPE_INTERFACE_KNOWN): Likewise. | |
1598 | * decl.c (maybe_commonize_var): Use the new name-mangling where | |
1599 | appropriate. | |
1600 | * decl2.c (comdat_linkage): Enhance comments. Make all | |
1601 | compiler-generated things static, if COMDAT is not available. | |
1602 | (get_tinfo_decl): Do not make typeinfo objects that belong in the | |
1603 | library COMDAT. | |
1604 | (tinfo_base_init): Use the correct mangled name for typeinfo | |
1605 | strings, and push them into the global scope. | |
1606 | (typeinfo_in_lib_p): New function. | |
1607 | (synthesize_tinfo_var): Use it. | |
1608 | (create_real_tinfo_var): Likewise. | |
9c96f3f8 | 1609 | |
55de1b66 JJ |
1610 | 2001-02-03 Jakub Jelinek <jakub@redhat.com> |
1611 | ||
1612 | * decl.c (push_class_binding): Use context_for_name_lookup instead | |
1613 | of CP_DECL_CONTEXT. | |
1614 | * search.c (context_for_name_lookup): Remove static. Check for NULL | |
1615 | context in the loop. | |
1616 | * cp-tree.h (context_for_name_lookup): Add prototype. | |
1617 | ||
e92730aa JJ |
1618 | 2001-02-02 Jakub Jelinek <jakub@redhat.com> |
1619 | ||
1620 | * cp-tree.h (build_expr_ptr_wrapper, can_free): Remove. | |
1621 | * tree.c (build_expr_ptr_wrapper, can_free, permanent_obstack): | |
1622 | Remove. | |
1623 | * call.c (convert_class_to_reference, build_user_type_conversion_1, | |
1624 | add_warning): Change build_expr_ptr_wrapper to build_ptr_wrapper. | |
1625 | ||
049f6ec9 MM |
1626 | 2001-02-02 Mark Mitchell <mark@codesourcery.com> |
1627 | ||
1628 | * Make-lang.in (g++spec.o): Add DRIVER_DEFINES to the list | |
1629 | of macros used when compiling g++spec.c. | |
1630 | * g++spec.c (lang_specific_driver): Link with the shared | |
1631 | libgcc by default. | |
1632 | ||
718b8ea5 JM |
1633 | 2001-01-29 Joseph S. Myers <jsm28@cam.ac.uk> |
1634 | ||
1635 | * decl2.c (build_expr_from_tree), lex.c (make_pointer_declarator, | |
1636 | make_reference_declarator, make_call_declarator), method.c | |
1637 | (implicitly_declare_fn), parse.y (namespace_using_decl, | |
1638 | notype_unqualified_id, expr_or_declarator, new_type_id, | |
1639 | after_type_declarator, direct_after_type_declarator, | |
1640 | notype_declarator, complex_notype_declarator, | |
1641 | complex_direct_notype_declarator, qualified_id, | |
1642 | notype_qualified_id, overqualified_id, direct_new_declarator, | |
1643 | absdcl, direct_abstract_declarator, conversion_declarator), pt.c | |
1644 | (tsubst), semantics.c (begin_constructor_declarator): Use build_nt | |
1645 | instead of build_parse_node. | |
1646 | ||
f2d1f0ba KG |
1647 | 2001-01-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
1648 | ||
1649 | * cp-tree.h (cp_tree_index): Delete CPTI_MINUS_ONE. | |
1650 | (minus_one_node): Moved to top level gcc directory. Renamed | |
1651 | to integer_minus_one_node. | |
1652 | ||
1653 | * init.c (init_init_processing): Don't set minus_one_node. | |
1654 | (build_vec_init): Use integer_minus_one_node. | |
1655 | ||
1656 | * rtti.c (get_tinfo_decl_dynamic): Likewise. | |
1657 | ||
6001735e JJ |
1658 | 2001-01-28 Jakub Jelinek <jakub@redhat.com> |
1659 | ||
1660 | * optimize.c (copy_body_r): If MODIFY_EXPR has both arguments | |
1661 | identical and they would be replaced with constant, remove | |
1662 | MODIFY_EXPR from the tree. | |
1663 | ||
c913b6f1 KG |
1664 | 2001-01-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
1665 | ||
1666 | * Make-lang.in: Remove all dependencies on defaults.h. | |
1667 | * call.c: Don't include defaults.h. | |
1668 | * decl.c: Likewise. | |
1669 | * decl2.c: Likewise. | |
1670 | * except.c: Likewise. | |
1671 | * pt.c: Likewise. | |
1672 | * rtti.c: Likewise. | |
1673 | * tree.c: Likewise. | |
1674 | * typeck.c: Likewise. | |
1675 | ||
324ffb8c JJ |
1676 | 2001-01-25 Jakub Jelinek <jakub@redhat.com> |
1677 | ||
1678 | * mangle.c (write_mangled_name, write_encoding): Mangle overloaded | |
1679 | operators even in "C" linkage. | |
1680 | * method.c (set_mangled_name_for_decl): Likewise. | |
1681 | * decl.c (grokfndecl): Call set_mangled_name_for_decl even for | |
1682 | overloaded operators in "C" linkage. | |
1683 | ||
4b2811e9 NS |
1684 | 2001-01-24 Nathan Sidwell <nathan@codesourcery.com> |
1685 | ||
1686 | * pt.c (tsubst_decl): Remove IN_DECL parameter. | |
1687 | (tsubst_arg_types): Check parameter is not void. | |
1688 | (tsubst): Adjust tsubst_decl call. | |
1689 | ||
d8caf48e NS |
1690 | 2001-01-24 Nathan Sidwell <nathan@codesourcery.com> |
1691 | ||
1692 | * call.c (add_builtin_candidate): Quote std properly, from | |
1693 | previous change. | |
1694 | ||
08511114 KL |
1695 | 2001-01-23 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> |
1696 | ||
1697 | * pt.c (check_explicit_specialization): Clone constructors and | |
1698 | destructors. | |
1699 | ||
92ecdfb7 NS |
1700 | 2001-01-23 Nathan Sidwell <nathan@codesourcery.com> |
1701 | ||
1702 | * decl.c (grokdeclarator): Don't presume DECL_LANG_SPECIFIC | |
1703 | indicates anything special about template depth. Make sure we | |
1704 | only count the user visible template classes. | |
1705 | ||
4cff6abe NS |
1706 | 2001-01-23 Nathan Sidwell <nathan@codesourcery.com> |
1707 | ||
1708 | * call.c (build_conv): Typo in comment. | |
1709 | (add_builtin_candidate): Add more explanation. | |
1710 | Remove extra test for ENUMERAL_TYPE in {PRE,POST}INCREMENT_EXPR. | |
1711 | Allow ENUMERAL_TYPEs for relops and eqops. Add both candidates | |
1712 | when we have enumeral types. | |
1713 | (add_builtin_candidates): Add more explanation. Add ENUMERAL_TYPE | |
1714 | candidates for relops and eqops. | |
1715 | (joust): Simplify control flow. Allow a non-template user | |
1716 | function to hide a builtin. | |
1717 | ||
62e4a758 NS |
1718 | 2001-01-22 Nathan Sidwell <nathan@codesourcery.com> |
1719 | ||
1720 | * cp-tree.h (unification_kind_t): Add DEDUCE_ORDER. | |
1721 | (more_specialized): Add deduction parameter. | |
1722 | * call.c (joust): Adjust more_specialized call. | |
1723 | * pt.c (UNIFY_ALLOW_OUTER_MORE_CV_QUAL, | |
1724 | UNIFY_ALLOW_OUTER_LESS_CV_QUAL): New unify flags. | |
1725 | (get_bindings_order): Remove. | |
1726 | (get_bindings_real): Add DEDUCE parameter. | |
1727 | (maybe_adjust_types_for_deduction): Return extra unify flags. Do | |
1728 | REFERENCE_TYPE jig for DEDUCE_ORDER. | |
1729 | (type_unification_real): Deal with DEDUCE_ORDER. Use result of | |
1730 | maybe_adjust_types_for_deduction. | |
1731 | (more_specialized): Add DEDUCE parameter. Call get_bindings_real | |
1732 | directly. | |
1733 | (try_one_overload): Use result of maybe_adjust_types_for_deduction. | |
1734 | (check_cv_quals_for_unify): Use new unify qualifier flags. | |
1735 | (unify): Clear new unify qualifier flags. | |
1736 | (get_bindings_real): Add DEDUCE parameter. | |
1737 | (get_bindings): Adjust call to get_bindings_real. | |
1738 | (get_bindings_overload): Likewise. | |
1739 | (most_specialized_instantiation): Adjust call to | |
1740 | more_specialized. | |
1741 | ||
2a2a9e5a JM |
1742 | 2001-01-19 Jason Merrill <jason@redhat.com> |
1743 | ||
1744 | * decl2.c (flag_vtable_thunks): Also depend on ENABLE_NEW_GXX_ABI. | |
1745 | ||
1746 | * decl.c (init_decl_processing): Just force -fvtable-thunks on if | |
1747 | -fnew-abi. | |
1748 | ||
60696c53 JM |
1749 | 2001-01-19 Ute Pelkmann <scope.muc@t-online.de> |
1750 | ||
1751 | * decl2.c (arg_assoc_class): Fix double iteration logic. | |
1752 | ||
1753 | 2001-01-19 Jason Merrill <jason@redhat.com> | |
1754 | ||
1755 | * init.c (build_delete): Always call convert_force to strip cv-quals. | |
1756 | ||
1757 | * decl2.c (flag_new_abi): Depend on ENABLE_NEW_GXX_ABI. | |
1758 | * lang-specs.h: Default ABI depends on ENABLE_NEW_GXX_ABI. | |
1759 | * g++spec.c: Don't look at ENABLE_NEW_GXX_ABI. | |
1760 | ||
1e00f18c NS |
1761 | 2001-01-19 Nathan Sidwell <nathan@codesourcery.com> |
1762 | ||
1763 | * search.c (get_vbase_1): Count only virtual bases. | |
1764 | ||
e13bced2 NS |
1765 | 2001-01-19 Nathan Sidwell <nathan@codesourcery.com> |
1766 | ||
1767 | * class.c (duplicate_tag_error): Robustify flag clearing. | |
1768 | ||
f9c244b8 NS |
1769 | 2001-01-19 Nathan Sidwell <nathan@codesourcery.com> |
1770 | ||
1771 | * cp-tree.h (lookup_template_class): Add complain parm. | |
1772 | * decl.c (lookup_namespace_name): Adjust call to | |
1773 | lookup_template_class. | |
1774 | (make_typename_type): Likewise. | |
1775 | * semantics.c (finish_template_type): Likewise. | |
1776 | * pt.c (lookup_template_class): Add complain parm. Adjust. | |
1777 | (tsubst_aggr_type): Pass COMPLAIN down to lookup_template_class. | |
1778 | (tsubst): Likewise. | |
1779 | ||
08c2df0f NS |
1780 | 2001-01-19 Nathan Sidwell <nathan@codesourcery.com> |
1781 | ||
1782 | * pt.c (copy_default_args_to_explicit_spec): Preserve | |
1783 | object's CV quals. Reorganize. | |
1784 | ||
f5ceeec8 NS |
1785 | 2001-01-18 Nathan Sidwell <nathan@codesourcery.com> |
1786 | ||
1787 | * typeck.c (build_modify_expr): Say `initialization' for | |
1788 | INIT_EXPRs. | |
1789 | * init.c (build_default_init): Convert to enumeral type, if | |
1790 | needed. | |
1791 | ||
a1cfa434 JJ |
1792 | 2001-01-18 Jakub Jelinek <jakub@redhat.com> |
1793 | ||
1794 | * parse.y (nomods_initdcl0): Properly set things up for | |
1795 | initdcl0_innards. | |
1796 | ||
028d1f20 NS |
1797 | 2001-01-18 Nathan Sidwell <nathan@codesourcery.com> |
1798 | ||
1799 | * pt.c (UNIFY_ALLOW_OUTER_LEVEL): New unify flag. | |
1800 | (type_unification_real): Set it. | |
1801 | (unify): Use it. | |
1802 | ||
9f724b6a NS |
1803 | 2001-01-18 Nathan Sidwell <nathan@codesourcery.com> |
1804 | ||
1805 | * decl.c (finish_destructor_body): Convert to vbase pointer here. | |
1806 | ||
522d6614 NS |
1807 | 2001-01-18 Nathan Sidwell <nathan@codesourcery.com> |
1808 | ||
1809 | * semantics.c (begin_class_definition): Check we're not inside a | |
1810 | template parm list. | |
1811 | ||
7f805b8f NS |
1812 | 2001-01-18 Nathan Sidwell <nathan@codesourcery.com> |
1813 | ||
1814 | * tree.c (walk_tree, TREE_LIST): Don't walk the TREE_PURPOSE of | |
1815 | BASELINK_P. | |
1816 | ||
dc3799c1 KL |
1817 | 2001-01-16 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> |
1818 | ||
1819 | * typeck.c (build_function_call_real): Call fold on the CALL_EXPR. | |
1820 | * call.c (build_over_call): Add comment. | |
1821 | ||
bb37c4a5 DB |
1822 | 2001-01-16 Daniel Berlin <dberlin@redhat.com> |
1823 | ||
826840d9 RH |
1824 | * cvt.c (ocp_convert): Handle vector type conversion |
1825 | * typeck2.c (digest_init): Handle vector type initializations | |
9c96f3f8 | 1826 | |
a26e7fb5 PE |
1827 | 2001-01-16 Phil Edwards <pme@sources.redhat.com> |
1828 | ||
1829 | * g++spec.c: Don't add libraries needlessly if -fsyntax-only | |
1830 | was given. | |
1831 | ||
11b810f1 NS |
1832 | 2001-01-15 Nathan Sidwell <nathan@codesourcery.com> |
1833 | ||
1834 | * pt.c (check_nontype_parm): Rename to ... | |
1835 | (invalid_nontype_parm_type_p): ... here. | |
1836 | (process_template_parm): Adjust. | |
1837 | (convert_template_argument): Adjust. | |
1838 | ||
db3f4e4e NS |
1839 | 2001-01-15 Nathan Sidwell <nathan@codesourcery.com> |
1840 | ||
1841 | * pt.c (check_nontype_parm): New function. | |
1842 | (process_template_parm): Use it. | |
1843 | (convert_template_argument): Use it. | |
1844 | (convert_nontype_argument, RECORD_TYPE): Assert it's a ptr to | |
1845 | member. | |
1846 | ||
ea4f1fce JO |
1847 | 2001-01-14 Jeffrey Oldham <oldham@codesourcery.com> |
1848 | ||
1849 | * tree.c: Add defaults.h | |
1850 | (cp_valid_lang_attribute): Incorporate SUPPORTS_INIT_PRIORITY. | |
1851 | * Make-lang.in (cp/tree.o): Add defaults.h. | |
1852 | ||
1312c143 JM |
1853 | 2001-01-13 Joseph S. Myers <jsm28@cam.ac.uk> |
1854 | ||
1855 | * Make-lang.in (CXX_C_OBJS): Add c-format.o. | |
1856 | ||
4bc1997b JM |
1857 | 2001-01-13 Joseph S. Myers <jsm28@cam.ac.uk> |
1858 | ||
1859 | * g++.1: Change to be ".so man1/gcc.1". | |
1860 | ||
23de1fbf JM |
1861 | 2001-01-13 Joseph S. Myers <jsm28@cam.ac.uk> |
1862 | ||
1863 | * Make-lang.in (c++.info, c++.install-info): Build and install g++ | |
1864 | internals info. | |
1865 | (c++.uninstall, c++.maintainer-clean): Remove g++ internals info. | |
1866 | ($(srcdir)/cp/g++int.info): New target. | |
1867 | * gxxint.texi: Add info directory entry. Use @@ in email address. | |
1868 | * .cvsignore: Update. | |
1869 | ||
0949f723 NS |
1870 | 2001-01-12 Nathan Sidwell <nathan@codesourcery.com> |
1871 | ||
1872 | * typeck.c (build_c_cast): Do template processing earlier. | |
1873 | Always pedwarn on array casts. | |
1874 | ||
a8641661 NS |
1875 | 2001-01-12 Nathan Sidwell <nathan@codesourcery.com> |
1876 | ||
1877 | * friend.c (make_friend_class): Make sure a templated class is | |
1878 | actually a template. | |
1879 | ||
844511c8 NS |
1880 | 2001-01-11 Nathan Sidwell <nathan@codesourcery.com> |
1881 | ||
1882 | * decl2.c (get_guard): Set linkage from guarded decl. | |
1883 | ||
96a1e32d NS |
1884 | 2001-01-11 Nathan Sidwell <nathan@codesourcery.com> |
1885 | ||
1886 | * call.c (convert_default_arg): Check for unprocessed | |
1887 | DEFAULT_ARG. | |
1888 | * cp-tree.h (replace_defarg): Move to spew.c. | |
1889 | (maybe_snarf_defarg, add_defarg_fn, do_pending_defargs): Move to | |
1890 | spew.c, which is where they really are. | |
1891 | (done_pending_defargs): Declare. | |
1892 | (unprocessed_defarg_fn): Declare. | |
1893 | * decl.c (replace_defarg): Move to spew.c | |
1894 | * parse.y (structsp): Call done_pending_defargs. | |
1895 | * spew.c (defarg_fns): Rearrange list structure. | |
1896 | (defarg_fnsdone): New static variable. | |
1897 | (defarg_depfns): New static variable. | |
1898 | (init_spew): Adjust. | |
1899 | (add_defarg_fn): Store the type in TREE_TYPE. | |
1900 | (do_pending_defargs): Detect and deal with ordering constraints | |
1901 | and circularity. | |
1902 | (done_pending_defargs): New function. | |
1903 | (unprocessed_defarg_fn): New function. | |
1904 | (replace_defarg): Moved from decl.c. Robustify. Don't save | |
1905 | if circularity detected. | |
1906 | ||
34e225a3 NS |
1907 | 2001-01-11 Nathan Sidwell <nathan@codesourcery.com> |
1908 | ||
1909 | * pt.c (unify): Check array has a domain, before checking | |
1910 | whether it is variable sized. | |
1911 | ||
98979fe0 NS |
1912 | 2001-01-11 Nathan Sidwell <nathan@codesourcery.com> |
1913 | ||
1914 | * decl.c (grokparms): Unobfuscate and get correct diagnostic for | |
1915 | parameters with pointers to arrays of unknown bound. | |
1916 | ||
b37bf5bd NS |
1917 | 2001-01-11 Nathan Sidwell <nathan@codesourcery.com> |
1918 | ||
1919 | * parse.y (template_parm_header, template_spec_header): New | |
1920 | reductions. Split out from ... | |
1921 | (template_header): ... here. Use them. | |
1922 | (template_template_parm): Use template_parm_header. | |
1923 | * semantics.c (finish_template_template_parm): Add assert. | |
1924 | ||
6c418184 MM |
1925 | 2001-01-10 Mark Mitchell <mark@codesourcery.com> |
1926 | ||
792508b5 MM |
1927 | * mangle.c (write_builtin_type): Fix thinko. |
1928 | ||
8afa707f MM |
1929 | * pt.c (copy_default_args_to_explicit_spec_1): New function. |
1930 | (copy_default_args_to_explicit_spec): Likewise. | |
1931 | (check_explicit_specialization): Use it. | |
1932 | ||
6c418184 MM |
1933 | * class.c (finish_struct_1): Remove last argument in call to |
1934 | make_decl_rtl; use make_function_rtl instead of make_decl_rtl. | |
1935 | * decl.c (builtin_function): Likewise. | |
1936 | (build_cp_library_fn): Likewise. | |
1937 | (check_initializer): Likewise. | |
1938 | (make_rtl_for_nonlocal_decl): Likewise. | |
1939 | (cp_finish_decl): Likewise. | |
1940 | (start_function): Likewise. | |
1941 | * decl2.c (finish_anon_union): Likewise. | |
1942 | * friend.c (do_friend): Likewise. | |
1943 | * init.c (build_java_class_ref): Likewise. | |
1944 | * method.c (make_thunk): Likewise. | |
1945 | * pt.c (tsubst_friend_function): Likewise. | |
1946 | * semantics.c (expand_body): Likewise. | |
1947 | ||
31d95fc6 MM |
1948 | 2001-01-10 Mark Mitchell <mark@codesourcery.com> |
1949 | ||
1950 | * cp-tree.h (DECL_CLONED_FUNCTION_P): Avoid wild reads by not | |
1951 | looking at DECL_CLONED_FUNCTION for non-functions. | |
1952 | ||
31bb3027 NS |
1953 | 2001-01-10 Nathan Sidwell <nathan@codesourcery.com> |
1954 | ||
1955 | * error.c (dump_template_parameter): Use parm to determine how | |
1956 | to print default value. | |
1957 | ||
fd3f43e7 NS |
1958 | 2001-01-10 Nathan Sidwell <nathan@codesourcery.com> |
1959 | ||
1960 | * class.c (duplicate_tag_error): Clear more flags. | |
1961 | ||
042b4c4e NS |
1962 | 2001-01-10 Nathan Sidwell <nathan@codesourcery.com> |
1963 | ||
1964 | * call.c (build_new_method_call): Use binfo_for_vbase. | |
1965 | ||
a7537031 JM |
1966 | 2001-01-10 Joseph S. Myers <jsm28@cam.ac.uk> |
1967 | ||
1968 | * cp-tree.h (flag_cond_mismatch): Don't declare. | |
1969 | * decl2.c (flag_cond_mismatch): Don't define. | |
1970 | (lang_f_options): Remove cond-mismatch. | |
1971 | (unsupported_options): Add cond-mismatch. | |
1972 | ||
186c0fbe NS |
1973 | 2001-01-09 Nathan Sidwell <nathan@codesourcery.com> |
1974 | ||
1975 | * class.c (handle_using_decl): Reject using of constructor name | |
1976 | of sourcing class. Allow injecting of a method with same name as | |
1977 | nested class. Fixup error messages. | |
1978 | ||
28ec8d6b JM |
1979 | 2001-01-09 Joseph S. Myers <jsm28@cam.ac.uk> |
1980 | ||
1981 | * decl2.c (lang_decode_option): Handle -Wformat=2. | |
1982 | ||
3febd123 NS |
1983 | 2001-01-08 Nathan Sidwell <nathan@codesourcery.com> |
1984 | ||
1985 | * cp-tree.h (lang_decl_flags): Rename defined_in_class to | |
1986 | initialized_in_class. | |
1987 | (DECL_DEFINED_IN_CLASS_P): Rename to ... | |
1988 | (DECL_INITIALIZED_IN_CLASS_P): ... here, to reflect true meaning. | |
1989 | * decl.c (duplicate_decls): Preseve DECL_INITIALIZED_IN_CLASS_P. | |
1990 | (cp_finish_decl): Adjust for DECL_INITIALIZED_IN_CLASS_P. | |
1991 | * pt.c (check_default_tmpl_args): Adjust for | |
1992 | DECL_INITIALIZED_IN_CLASS_P. | |
1993 | (instantiate_class_template): Likewise. | |
1994 | (instantiate_decl): Check DECL_INITIALIZED_IN_CLASS_P. | |
9c96f3f8 | 1995 | |
3febd123 NS |
1996 | * class.c (finish_struct): Constify saved_filename. |
1997 | ||
1f0d71c5 NS |
1998 | 2001-01-08 Nathan Sidwell <nathan@codesourcery.com> |
1999 | ||
2000 | * class.c (duplicate_tag_error): Adjust diagnostic. | |
2001 | (finish_struct): Locally set location to start of struct. | |
2002 | * decl.c (fixup_anonymous_aggr): Use cp_error_at. | |
2003 | ||
5bf15e84 | 2004 | 2001-01-08 Nathan Sidwell <nathan@codesourcery.com> |
76191fdd NS |
2005 | |
2006 | * decl.c (struct binding_level): Adjust class_shadowed comments | |
2007 | to reflect reality. | |
2008 | (push_class_level_binding): Ajust comments to reflect reality. | |
2009 | Set IDENTIFIER_CLASS_VALUE when replacing an existing binding. | |
2010 | Don't set TREE_VALUE on the class_shadowed list. | |
2011 | ||
23d4e4cc | 2012 | 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com> |
9c96f3f8 AJ |
2013 | |
2014 | * decl2.c (acceptable_java_type): Allow references too. | |
23d4e4cc APB |
2015 | * init.c (build_java_class_ref): When using the new ABI, search |
2016 | `class$' and have it mangled with `mangle_decl.' | |
2017 | * mangle.c (write_java_integer_type_codes): New function. | |
2018 | (write_builtin_type): Detect and mangle Java integer and real | |
2019 | types. | |
9c96f3f8 | 2020 | |
0c58da3e MM |
2021 | 2001-01-07 Mark Mitchell <mark@codesourcery.com> |
2022 | ||
2023 | * decl2.c (grokfield): Don't accept `asm' specifiers for | |
2024 | non-static data members. | |
2025 | ||
45b8ddb4 KG |
2026 | 2001-01-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
2027 | ||
2028 | * expr.c (cplus_expand_expr): Don't reset `target'. | |
2029 | ||
96302433 NB |
2030 | 2001-01-07 Neil Booth <neil@daikokuya.demon.co.uk> |
2031 | ||
826840d9 | 2032 | * cp/decl2.c (cxx_post_options): Call cpp_post_options. |
96302433 | 2033 | |
220bce48 NS |
2034 | 2001-01-05 Nathan Sidwell <nathan@codesourcery.com> |
2035 | ||
2036 | * parse.y (template_datadef): Check for error_mark_node. | |
2037 | ||
bfa2cb33 NS |
2038 | 2001-01-05 Nathan Sidwell <nathan@codesourcery.com> |
2039 | ||
2040 | * cp-tree.def (DEFAULT_ARG): Make `x' class. | |
2041 | ||
eaa7c03f JM |
2042 | 2001-01-04 Joseph S. Myers <jsm28@cam.ac.uk> |
2043 | ||
2044 | * decl.c (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Don't define. | |
2045 | (record_builtin_type): Make non-static. | |
2046 | (flag_short_double): Don't declare. | |
2047 | (init_decl_processing): Remove the creation of many tree nodes now | |
2048 | in c_common_nodes_and_builtins. | |
2049 | (build_void_list_node): New function. | |
2050 | * decl2.c (flag_short_double, flag_short_wchar): Don't define. | |
2051 | * cp-tree.h (flag_short_wchar): Don't declare. | |
2052 | ||
3af4c257 MM |
2053 | 2001-01-04 Mark Mitchell <mark@codesourcery.com> |
2054 | ||
2055 | * call.c (build_conv): Don't use build1 for USER_CONV. | |
2056 | * pt.c (tsubst_copy): Or for PREINCREMENT_EXPR and similar nodes. | |
2057 | ||
03dc0325 JM |
2058 | 2001-01-03 Joseph S. Myers <jsm28@cam.ac.uk> |
2059 | ||
2060 | * lex.c (lang_init): Call c_common_lang_init. | |
2061 | ||
3c505507 NS |
2062 | 2001-01-03 Nathan Sidwell <nathan@codesourcery.com> |
2063 | ||
2064 | * search.c (lookup_fnfields_here): Remove. | |
2065 | (look_for_overrides_r): Use lookup_fnfields_1. | |
2066 | Ignore functions from using declarations. | |
2067 | ||
03378143 NS |
2068 | 2001-01-03 Nathan Sidwell <nathan@codesourcery.com> |
2069 | ||
2070 | Implement exceptions specifiers for implicit member functions. | |
2071 | * cp-tree.h (merge_exceptions_specifiers): Declare new function. | |
2072 | * method.c (synthesize_exception_spec): New function. | |
2073 | (locate_dtor, locate_ctor, locate_copy): New functions. | |
2074 | (implicitly_declare_fn): Generate the exception spec too. | |
2075 | * search.c (check_final_overrider): Check artificial functions | |
2076 | too. | |
9c96f3f8 | 2077 | * typeck2.c (merge_exception_specifiers): New function. |
03378143 | 2078 | |
f30efcb7 JM |
2079 | 2001-01-03 Jason Merrill <jason@redhat.com> |
2080 | ||
2081 | * init.c (build_default_init): New fn. | |
2082 | (perform_member_init): Split out from here. | |
2083 | (build_new_1): Use it. Simplify initialization logic. | |
2084 | (build_vec_init): Take an array, rather than a pointer and maxindex. | |
2085 | Speed up simple initializations. Don't clean up if we're assigning. | |
2086 | * cp-tree.h: Adjust. | |
2087 | * decl2.c (do_static_initialization): Remove TREE_VEC case. | |
2088 | * parse.y (new_initializer): Return void_zero_node for (). | |
2089 | * typeck.c (build_modify_expr): Handle getting a CONSTRUCTOR. | |
2090 | * typeck2.c (digest_init): Only complain about user-written | |
2091 | CONSTRUCTORs. | |
2092 | ||
a412bf75 MS |
2093 | 2000-12-22 Mike Stump <mrs@wrs.com> |
2094 | ||
2095 | * decl2.c: (max_tinst_depth): Increase to 50. | |
2096 | ||
4890c2f4 MM |
2097 | 2001-01-02 Mark Mitchell <mark@codesourcery.com> |
2098 | ||
2099 | * class.c (invalidate_class_lookup_cache): Zero the | |
2100 | previous_class_values. | |
2101 | * cp-tree.h (TMPL_PARMS_DEPTH): Use TREE_INT_CST_LOW, not | |
2102 | TREE_INT_CST_HIGH. | |
2103 | (CLASSTYPE_TEMPLATE_LEVEL): Likewise. | |
2104 | * decl.c (free_bindings): New variable. | |
2105 | (push_binding): Don't create a new binding if we have one on the | |
2106 | free list. | |
2107 | (pop_binding): Put old bindings on the free list. | |
2108 | (init_decl_processing): Use size_int, not build_int_2. | |
2109 | Register free_bindings as a GC root. | |
2110 | (cp_make_fname_decl): Use size_int, not build_int_2. | |
2111 | (push_inline_template_parms_recursive): Likewise. | |
2112 | (end_template_parm_list): Likewise. | |
2113 | (for_each_tempalte_parm): Do not use walk_tree_without_duplicates. | |
2114 | (tsubst_template_parms): Use size_int, not build_int_2. | |
2115 | (tsubst): Likewise. | |
2116 | * rtti.c (get_vmi_pseudo_type_info): Likewise. | |
9c96f3f8 | 2117 | |
4f78b9a8 RH |
2118 | 2001-01-02 Richard Henderson <rth@redhat.com> |
2119 | ||
2120 | * parse.y (asm): Set ASM_INPUT_P. | |
2121 | ||
3c8c2a0a JM |
2122 | 2001-01-02 Jason Merrill <jason@redhat.com> |
2123 | ||
96d6c610 JM |
2124 | * tree.c (cp_valid_lang_attribute): Don't set CLASSTYPE_COM_INTERFACE |
2125 | for v3 ABI. | |
2126 | ||
2127 | * typeck.c (cp_truthvalue_conversion): New fn. | |
2128 | * cvt.c (ocp_convert): Use it. | |
2129 | ||
2130 | * cp-tree.h: Lose c-common.c decls. | |
2131 | ||
2132 | * typeck.c (build_unary_op): Restore old &a.f diagnostic code. | |
2133 | * cvt.c (convert_to_void): Use type_unknown_p. | |
2134 | ||
9c96f3f8 | 2135 | * typeck.c (strip_all_pointer_quals): Also strip quals from |
3c8c2a0a JM |
2136 | pointer-to-member types. |
2137 | ||
2138 | * Make-lang.in (cp/TAGS): Use --no-globals. Ignore parse.c, and treat | |
2139 | parse.y as C. | |
2140 | ||
2141 | * call.c (build_new_method_call): Do evaluate the object parameter | |
2142 | when accessing a static member. | |
2143 | * typeck.c (build_component_ref): Likewise. | |
2144 | ||
d363e7bf AJ |
2145 | 2001-01-02 Andreas Jaeger <aj@suse.de> |
2146 | ||
2147 | * decl.c (cp_missing_noreturn_ok_p): New. | |
2148 | (init_decl_processing): Set lang_missing_noreturn_ok_p. | |
2149 | ||
77f5250d JJ |
2150 | 2000-12-29 Jakub Jelinek <jakub@redhat.com> |
2151 | ||
2152 | * decl.c (init_decl_processing): Fix sign of wchar_type_node. | |
2153 | ||
31a714f6 MM |
2154 | 2000-12-29 Mark Mitchell <mark@codesourcery.com> |
2155 | ||
2156 | * class.c (pushclass): Remove #if 0'd code. | |
2157 | * cp-tree.h (overload_template_name): Remove. | |
2158 | * decl.c (store_bindings): Simplify. | |
2159 | (pop_from_top_level): Likewise. | |
2160 | * pt.c (overload_template_name): Remove. | |
d363e7bf | 2161 | (instantiate_decl): Don't call push_to_top_level if it's not |
31a714f6 MM |
2162 | needed. |
2163 | ||
414ea4aa MM |
2164 | 2000-12-28 Mark Mitchell <mark@codesourcery.com> |
2165 | ||
2166 | * pt.c (register_local_specialization): Don't return a value. | |
2167 | (lookup_template_class): Use move-to-front heuristic when looking | |
2168 | up template instantiations. | |
2169 | (instantiate_decl): Only push_to_top_level when we're actually | |
2170 | going to instantiate the template. | |
2171 | ||
6f18f7e9 HPN |
2172 | 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com> |
2173 | ||
2174 | * search.c (binfo_for_vtable): Return least derived class, not | |
2175 | most. Handle secondary vtables. | |
2176 | ||
e5214479 JM |
2177 | 2000-12-22 Jason Merrill <jason@redhat.com> |
2178 | ||
3c8c2a0a JM |
2179 | * pt.c (more_specialized): Don't optimize len==0. |
2180 | (fn_type_unification): If we're adding the return type, increase len. | |
2181 | ||
ebb1abc3 JM |
2182 | * typeck.c (build_binary_op): Fix pmf comparison logic. |
2183 | ||
c939ca5f JM |
2184 | * call.c (joust): Use DECL_NONSTATIC_MEMBER_FUNCTION_P, not |
2185 | DECL_STATIC_FUNCTION_P. | |
2186 | ||
e6fe680d JM |
2187 | * semantics.c (genrtl_finish_function): Don't try to jump to |
2188 | return_label unless it exists. | |
2189 | ||
e5214479 JM |
2190 | In partial ordering for a call, ignore parms for which we don't have |
2191 | a real argument. | |
2192 | * call.c (joust): Pass len to more_specialized. | |
2193 | (add_template_candidate_real): Strip 'this', pass len. | |
2194 | * pt.c (more_specialized): Pass len down. Lose explicit_args parm. | |
2195 | (get_bindings_order): New fn. Pass len down. | |
2196 | (get_bindings_real): Strip 'this', pass len. | |
2197 | (fn_type_unification): Likewise. | |
2198 | (type_unification_real): Succeed after checking 'len' args. | |
2199 | (most_specialized_instantiation): Lose explicit_args parm. | |
d363e7bf | 2200 | * class.c (resolve_address_of_overloaded_function): Strip 'this', |
e5214479 JM |
2201 | pass len. |
2202 | ||
2203 | 2000-12-21 Jason Merrill <jason@redhat.com> | |
477f6664 JM |
2204 | |
2205 | * pt.c (tsubst_decl): A FUNCTION_DECL has DECL_RESULT, not | |
2206 | DECL_TEMPLATE_RESULT. | |
2207 | ||
2208 | * search.c (lookup_field_r): Call lookup_fnfields_1, not | |
2209 | lookup_fnfields_here. | |
2210 | ||
2211 | * parse.y (typename_sub2): Return the TYPE_DECL, not the type. | |
2212 | ||
2213 | * call.c (build_object_call): Also allow conversions that return | |
2214 | reference to pointer to function. | |
2215 | (add_conv_candidate): Handle totype being ref to ptr to fn. | |
2216 | (build_field_call): Also allow members of type reference to function. | |
2217 | Lose support for calling pointer to METHOD_TYPE fields. | |
2218 | ||
2219 | * error.c (dump_expr): Handle *_CAST_EXPR. | |
2220 | ||
2221 | * typeck2.c (build_scoped_ref): Always convert to the naming class. | |
2222 | ||
2223 | * tree.c (break_out_cleanups): Lose. | |
2224 | * cp-tree.h: Remove prototype. | |
2225 | * typeck.c (build_component_ref): Don't break_out_cleanups. | |
2226 | (build_compound_expr): Likewise. | |
2227 | * semantics.c (finish_expr_stmt): Likewise. | |
2228 | ||
3e4d04a1 RH |
2229 | 2000-12-20 Richard Henderson <rth@redhat.com> |
2230 | ||
2231 | * cp-tree.h: Update declarations. | |
2232 | * decl.c (finish_case_label): Return the new stmt node. | |
2233 | * semantics.c (finish_goto_stmt): Likewise. | |
2234 | (finish_expr_stmt, finish_return_stmt): Likewise. | |
2235 | (finish_break_stmt, finish_continue_stmt): Likewise. | |
2236 | (finish_asm_stmt): Likewise. | |
2237 | * parse.y (already_scoped_stmt): Set STMT_LINENO. | |
2238 | (compstmt, implicitly_scoped_stmt, stmt): Likewise. | |
2239 | (simple_if, simple_stmt): Return the new stmt node. | |
2240 | (save_lineno): New. | |
2241 | ||
20d380b1 JM |
2242 | 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk> |
2243 | ||
2244 | * cp-tree.h: Don't declare warn_long_long. | |
2245 | ||
221c7a7f KL |
2246 | 2000-12-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> |
2247 | ||
2248 | * tree.c (no_linkage_helper): Use CLASS_TYPE_P instead of | |
2249 | IS_AGGR_TYPE. | |
2250 | ||
b429fdf0 KL |
2251 | 2000-12-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> |
2252 | ||
2253 | * pt.c (unify): Handle when both ARG and PARM are | |
2254 | BOUND_TEMPLATE_TEMPLATE_PARM. | |
2255 | ||
c2beae77 KL |
2256 | 2000-12-15 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> |
2257 | ||
2258 | * pt.c (reduce_template_parm_level): Set DECL_ARTIFICIAL and | |
2259 | DECL_TEMPLATE_PARM_P. | |
2260 | ||
c3e899c1 JM |
2261 | 2000-12-15 Jason Merrill <jason@redhat.com> |
2262 | ||
96790071 JM |
2263 | * init.c (build_new_1): Reorganize. Now with 100% fewer SAVE_EXPRs! |
2264 | ||
8d42565b JM |
2265 | * init.c (build_new_1): Don't strip quals from type. |
2266 | ||
fab09a24 JM |
2267 | * decl.c (pushdecl): Don't check for linkage on a non-decl. |
2268 | ||
c3e899c1 JM |
2269 | * call.c (build_op_delete_call): See through ARRAY_TYPEs. |
2270 | ||
2271 | * call.c (build_new_function_call): Lose space before paren in | |
2272 | error message. | |
2273 | (build_new_method_call): Likewise. | |
2274 | ||
2275 | * typeck2.c (build_m_component_ref): Propagate quals from datum. | |
2276 | ||
edac124d KL |
2277 | 2000-12-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> |
2278 | ||
2279 | * pt.c (check_explicit_specialization): Propagate default | |
2280 | function arguments to explicit specializations. | |
2281 | ||
31750649 | 2282 | 2000-12-13 DJ Delorie <dj@redhat.com> |
8d3b081e DD |
2283 | |
2284 | * typeck.c (build_binary_op): Do signed/unsigned warnings for >? | |
2285 | and <? operators. | |
2286 | ||
5e818b93 JM |
2287 | 2000-12-08 Jason Merrill <jason@redhat.com> |
2288 | ||
2289 | * error.c (dump_function_name): Don't let the user see __comp_ctor. | |
2290 | ||
2291 | Clean up copy-initialization in overloading code. | |
2292 | * call.c (build_user_type_conversion_1): Die if we are asked to | |
2293 | convert to the same or a base type. | |
2294 | (implicit_conversion): Avoid doing so. Lose reference binding code. | |
2295 | (convert_like_real): Treat BASE_CONV and RVALUE_CONV as implicit | |
2296 | direct-initialization. Also do direct-init part of copy-init. | |
2297 | (build_user_type_conversion): Don't provide context to convert_like. | |
2298 | * cvt.c (ocp_convert): build_user_type_conversion will now provide | |
2299 | the constructor call for copy-init. | |
2300 | ||
2301 | * pt.c (tsubst_decl): Call clone_function_decl here if this is an | |
2302 | instantiation of a member template. | |
2303 | (do_decl_instantiation): Not here. | |
2304 | ||
38da6039 NS |
2305 | 2000-12-07 Nathan Sidwell <nathan@codesourcery.com> |
2306 | ||
2307 | * class.c (check_field_decls): Don't special case anonymous | |
2308 | fields in error messages. | |
c9407e4c | 2309 | (note_name_declared_in_class): Use %D on diagnostic. |
d363e7bf | 2310 | |
38da6039 NS |
2311 | * tree.c (pod_type_p): Use strip_array_types. |
2312 | (cp_valid_lang_attribute): Likewise. | |
2313 | * typeck.c (cp_type_quals): Strip arrays separately, to avoid | |
2314 | multiple evaluations. | |
d363e7bf | 2315 | (cp_has_mutable_p): Use strip_array_types. |
38da6039 | 2316 | |
a11d04b5 NS |
2317 | 2000-12-07 Nathan Sidwell <nathan@codesourcery.com> |
2318 | ||
2319 | * cp-tree.h (sufficient_parms_p): Declare new function. | |
2320 | * call.c (sufficient_parms_p): New function, broken out of ... | |
2321 | (add_function_candidate): ... here. Use it. | |
2322 | (add_conv_candidate): Use it. | |
2323 | * decl.c (grok_ctor_properties): Use it. | |
2324 | ||
5eec2847 JJ |
2325 | 2000-12-07 Jakub Jelinek <jakub@redhat.com> |
2326 | ||
2327 | * optimize.c (copy_body_r): Set STMT_IS_FULL_EXPR_P on EXPR_STMT. | |
2328 | ||
c907e684 JM |
2329 | 2000-12-07 Joseph S. Myers <jsm28@cam.ac.uk> |
2330 | ||
2331 | * decl2.c (lang_decode_option): Handle -Wformat-security. | |
2332 | ||
74601d7c KL |
2333 | 2000-12-06 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> |
2334 | ||
2335 | * pt.c (verify_class_unification): New function. | |
2336 | (get_class_bindings): Use it. | |
2337 | (try_class_unification): Tidy. | |
2338 | (unify): Handle when argument of a template-id is not | |
2339 | template parameter dependent. | |
2340 | (template_args_equal): Handle when TREE_CODE's do not match. | |
2341 | ||
8954e858 AO |
2342 | 2000-12-06 Alexandre Oliva <aoliva@redhat.com> |
2343 | ||
2344 | * lang-specs.h (c++): When invoking the stand-alone preprocessor | |
2345 | for -save-temps, pass all relevant -Defines to it, and then don't | |
2346 | pass them to cc1plus. | |
2347 | ||
3dc9aec6 WC |
2348 | 2000-12-05 Will Cohen <wcohen@redhat.com> |
2349 | ||
2350 | * decl.c (finish_case_label): Cleared | |
2351 | more_cleanups_ok in surrounding function scopes. | |
2352 | (define_label): Likewise. | |
2353 | ||
cbb40945 NS |
2354 | 2000-12-05 Nathan Sidwell <nathan@codesourcery.com> |
2355 | ||
2356 | * cp-tree.h (IDENTIFIER_VIRTUAL_P): Document. | |
2357 | (get_matching_virtual): Remove. | |
2358 | (look_for_overrides): Declare new function. | |
2359 | * decl.c (grokfndecl): Don't set IDENTIFIER_VIRTUAL_P or | |
2360 | DECL_VINDEX here. | |
2361 | * class.c (check_for_override): Move base class iteration code | |
2362 | to look_for_overrides. | |
2363 | * search.c (next_baselink): Remove. | |
2364 | (get_virtuals_named_this): Remove. | |
2365 | (get_virtual_destructor): Remove. | |
2366 | (tree_has_any_destructors_p): Remove. | |
2367 | (struct gvnt_info): Remove. | |
2368 | (check_final_overrider): Remove `virtual' from error messages. | |
2369 | (get_matching_virtuals): Remove. Move functionality to ... | |
2370 | (look_for_overrides): ... here, and ... | |
2371 | (look_for_overrides_r): ... here. Set DECL_VIRTUAL_P, if found | |
2372 | to be overriding. | |
2373 | ||
61402b80 NS |
2374 | 2000-12-05 Nathan Sidwell <nathan@codesourcery.com> |
2375 | ||
2376 | * typeck.c (get_delta_difference): If via a virtual base, | |
2377 | return zero. | |
2378 | * cvt.c (cp_convert_to_pointer): If via a virtual base, do no | |
2379 | adjustment. | |
2380 | ||
39abc9a6 RH |
2381 | 2000-12-04 Richard Henderson <rth@redhat.com> |
2382 | ||
2383 | * error.c (dump_tree): Use output_add_string not OB_PUTS. | |
2384 | ||
c00996a3 JM |
2385 | 2000-12-04 Jason Merrill <jason@redhat.com> |
2386 | ||
2387 | * mangle.c (write_type): Mangle VECTOR_TYPE with "U8__vector". | |
d363e7bf | 2388 | (write_builtin_type): Pass intSI_type_node and the like through |
c00996a3 JM |
2389 | type_for_mode. |
2390 | * method.c (process_overload_item): Mangle VECTOR_TYPEs with 'o'. | |
2391 | Pass intSI_type_node and the like through type_for_mode. | |
2392 | * decl2.c (arg_assoc_type): Handle VECTOR_TYPE like COMPLEX_TYPE. | |
2393 | * pt.c (tsubst, unify): Likewise. | |
2394 | * tree.c (walk_tree): Likewise. | |
2395 | * error.c (dump_type): Likewise. | |
2396 | (dump_type_prefix, dump_type_suffix): Don't bother with VECTOR_TYPE. | |
d363e7bf | 2397 | |
c00996a3 JM |
2398 | * Make-lang.in: Tweak top comment for emacs. |
2399 | (cp/TAGS): Restore. | |
2400 | ||
2401 | * except.c (expand_throw): Use push_throw_library_fn for _Jv_Throw. | |
2402 | ||
c00996a3 JM |
2403 | * class.c (clone_function_decl): Robustify. |
2404 | ||
2405 | 2000-12-04 Michael Matz <matzmich@cs.tu-berlin.de> | |
2406 | ||
2407 | * decl.c (store_bindings): Only search in the non modified | |
2408 | old_bindings for duplicates. | |
2409 | ||
00bb3dad NS |
2410 | 2000-12-04 Nathan Sidwell <nathan@codesourcery.com> |
2411 | ||
2412 | * error.c (dump_function_decl): Use DECL_VIRTUAL_P, not | |
2413 | TYPE_POLYMORPHIC_P. | |
d363e7bf | 2414 | |
00bb3dad NS |
2415 | * typeck.c (build_static_cast): Remove unused variable. |
2416 | ||
dc957d14 KL |
2417 | 2000-12-01 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> |
2418 | ||
2419 | * pt.c: Fix typo in comment. | |
2420 | ||
4d808927 JM |
2421 | 2000-12-01 Joseph S. Myers <jsm28@cam.ac.uk> |
2422 | ||
2423 | * decl2.c (warn_format): Remove definition. | |
2424 | (lang_decode_option): Handle -Wformat-nonliteral, | |
2425 | -Wno-format-extra-args and -Wno-format-y2k. Use set_Wformat. | |
2426 | ||
5fd8e536 JM |
2427 | 2000-12-01 Joseph S. Myers <jsm28@cam.ac.uk> |
2428 | ||
2429 | * decl.c (WINT_TYPE, INTMAX_TYPE, UINTMAX_TYPE): Don't define. | |
2430 | (init_decl_processing): Don't create string_type_node, | |
2431 | const_string_type_node, wint_type_node, intmax_type_node, | |
2432 | uintmax_type_node, default_function_type, ptrdiff_type_node and | |
2433 | unsigned_ptrdiff_type_node. Adjust position of call to | |
2434 | c_common_nodes_and_builtins. | |
2435 | (identifier_global_value): New function. | |
2436 | ||
13f9714b NS |
2437 | 2000-12-01 Nathan Sidwell <nathan@codesourcery.com> |
2438 | ||
2439 | * call.c (standard_conversion): Reject pointer to member | |
2440 | conversions from ambiguous, inaccessible or virtual bases. | |
2441 | * typeck.c (build_static_cast): Don't check pointers to members | |
2442 | specially. | |
2443 | ||
31b1b957 NS |
2444 | 2000-11-30 Nathan Sidwell <nathan@codesourcery.com> |
2445 | ||
2446 | * method.c (do_build_copy_constructor): Preserve cv | |
2447 | qualifications when accessing source object members. | |
2448 | (do_build_assign_ref): Likewise. Remove separate diagnostics for | |
2449 | unnamed fields. | |
2450 | ||
717e3f73 NS |
2451 | 2000-11-30 Nathan Sidwell <nathan@codesourcery.com> |
2452 | ||
2453 | * method.c (do_build_assign_ref): Construct appropriately | |
2454 | CV-qualified base reference. Don't allow const casts in base | |
2455 | conversion. | |
2456 | ||
2c92b94d NS |
2457 | 2000-11-30 Nathan Sidwell <nathan@codesourcery.com> |
2458 | ||
2459 | * call.c (build_over_call): Use VOID_TYPE_P. Don't die on | |
2460 | incomplete return type. | |
2461 | ||
bb92901d NS |
2462 | 2000-11-28 Nathan Sidwell <nathan@codesourcery.com> |
2463 | ||
2464 | * parse.y (base_class.1): Produce a _TYPE not a _DECL. | |
2465 | * semantics.c (finish_base_specifier): Accept a _TYPE not a | |
2466 | _DECL. | |
2467 | ||
2f3608c3 NS |
2468 | 2000-11-28 Nathan Sidwell <nathan@codesourcery.com> |
2469 | ||
2470 | * spew.c (yyerror): Cope if yylval.ttype is NULL. | |
2471 | ||
eeb75383 NS |
2472 | 2000-11-28 Nathan Sidwell <nathan@codesourcery.com> |
2473 | ||
2474 | * decl.c (grokdeclarator): Diagnose undefined template contexts. | |
2475 | ||
5ee4cc26 NS |
2476 | 2000-11-28 Nathan Sidwell <nathan@codesourcery.com> |
2477 | ||
2478 | * decl.c (grokdeclarator): Do type access control on friend | |
2479 | class. | |
2480 | ||
76e57b45 NS |
2481 | 2000-11-27 Nathan Sidwell <nathan@codesourcery.com> |
2482 | ||
2483 | * decl.c (grokfndecl): Undo COMPONENT_REF damage caused by | |
2484 | bison parser ickiness. | |
2485 | * pt.c (tsubst_friend_function): Enter namespace scope when | |
2486 | tsubsting the function name. | |
2487 | * cp-tree.h (DECL_TI_TEMPLATE): Update comment to reflect reality. | |
2488 | ||
f9825168 NS |
2489 | 2000-11-27 Nathan Sidwell <nathan@codesourcery.com> |
2490 | ||
2491 | * cp-tree.h (binfo_from_vbase): Return the virtual base's binfo. | |
2492 | * cvt.c (cp_convert_to_pointer): Add force parameter. | |
2493 | Allow conversions via virtual base if forced. | |
2494 | (convert_to_pointer_force): Adjust call to cp_convert_to_pointer. | |
2495 | (ocp_convert): Likewise. | |
2496 | * search.c (binfo_from_vbase): Return the virtual base's binfo. | |
2497 | * typeck.c (get_delta_difference): Adjust handling of virtual | |
2498 | bases. | |
2499 | ||
9ccb25d5 MM |
2500 | 2000-11-26 Mark Mitchell <mark@codesourcery.com> |
2501 | ||
2502 | * tree.c (struct list_hash): Remove. | |
2503 | (list_hash_table): Make it be an htab. | |
2504 | (struct list_proxy): New type. | |
2505 | (list_hash_eq): New function. | |
2506 | (list_hash_pieces): Renamed from ... | |
2507 | (list_hash): ... this. | |
2508 | (list_hash_lookup): Remove. | |
2509 | (list_hash_add): Remove. | |
2510 | (hash_tree_cons): Use the generic hashtable. | |
2511 | (mark_list_hash): Remove. | |
2512 | (init_tree): Create the hashtable. | |
2513 | ||
9399bad3 JM |
2514 | 2000-11-25 Joseph S. Myers <jsm28@cam.ac.uk> |
2515 | ||
2516 | * method.c (build_mangled_C9x_name): Rename to | |
2517 | build_mangled_C99_name. Change C9X references in comments to | |
2518 | refer to C99. | |
2519 | ||
2f401cc8 NS |
2520 | 2000-11-24 Nathan Sidwell <nathan@codesourcery.com> |
2521 | ||
2522 | * parse.y (unary_expr): Move VA_ARG from here ... | |
2523 | (primary): ... to here. | |
2524 | ||
3d7e9ba4 NS |
2525 | 2000-11-24 Nathan Sidwell <nathan@codesourcery.com> |
2526 | ||
2527 | * semantics.c (finish_id_expr): If type is error_mark, return | |
2528 | error_mark. | |
2529 | ||
ab097535 NS |
2530 | 2000-11-23 Nathan Sidwell <nathan@codesourcery.com> |
2531 | ||
2532 | * pt.c (lookup_template_class): Simplify loop exit constructs. | |
2533 | Cope when there is no partial instantiation of a template | |
2534 | template member. | |
2535 | ||
9196ece5 R |
2536 | Thu Nov 23 02:16:47 2000 J"orn Rennecke <amylaar@redhat.com> |
2537 | ||
2538 | * Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H). | |
2539 | ||
cac78ea2 MM |
2540 | 2000-11-22 Mark Mitchell <mark@codesourcery.com> |
2541 | ||
6e1b44bc MM |
2542 | * mangle.c (mangle_conv_op_name_for_type): Don't use `__op' |
2543 | prefix. | |
2544 | ||
cac78ea2 MM |
2545 | * pt.c (do_decl_instantiate): Explicitly clone constructors and |
2546 | destructors that haven't already been cloned. | |
2547 | ||
3aac38d7 RH |
2548 | 2000-11-20 Richard Henderson <rth@redhat.com> |
2549 | ||
2550 | * parse.y (yyparse_1): Rename the parser entry point. | |
2551 | ||
2552 | 2000-11-20 Alex Samuel <samuel@codesourcery.com> | |
beac9b93 AS |
2553 | |
2554 | * mangle.c (write_name): Use <unscoped-name> for names directly in | |
2555 | function scope. | |
2556 | (write_unscoped_name): Accept names directly in function scope. | |
d363e7bf | 2557 | |
447306fa NS |
2558 | 2000-11-20 Nathan Sidwell <nathan@codesourcery.com> |
2559 | ||
2560 | * lex.c (rid_to_yy, RID_EXPORT): Make unique keyword. | |
2561 | * parse.y (extdef): Add EXPORT reduction. | |
2562 | * spew.c (yylex): Don't skip export here. | |
2563 | ||
2650255a MM |
2564 | 2000-11-19 Mark Mitchell <mark@codesourcery.com> |
2565 | ||
2566 | * decl.c (init_decl_processing): Correct name of pure virtual | |
2567 | function under the new ABI. | |
2568 | * rtti.c (throw_bad_cast): Likewise, for bad cast function. | |
2569 | (throw_bad_typeid): Likewise for bad typeid function. | |
2570 | ||
0657c69c MM |
2571 | 2000-11-18 Mark Mitchell <mark@codesourcery.com> |
2572 | ||
04f3dc2b MM |
2573 | * decl.c (grokparms): Don't even function types of `void' type, |
2574 | either. | |
2575 | * mangle.c (write_type): Don't crash when confronted with the | |
2576 | error_mark_node. | |
2577 | ||
0657c69c MM |
2578 | * decl.c (grokparms): Don't create parameters of `void' type. |
2579 | ||
a8a05998 ZW |
2580 | 2000-11-17 Zack Weinberg <zack@wolery.stanford.edu> |
2581 | ||
2582 | * lex.c (mark_impl_file_chain): Delete. | |
2583 | (init_parse): Remove call to ggc_add_string_root. No need to | |
2584 | ggc_strdup a string constant. Do not add impl_file_chain to GC | |
2585 | roots. | |
2586 | (handle_pragma_implementation): No need to ggc_strdup main_filename. | |
2587 | ||
35728a80 NS |
2588 | 2000-11-17 Nathan Sidwell <nathan@codesourcery.com> |
2589 | ||
2590 | * pt.c (tsubst_expr, DECL_STMT): Instantiate decl's type. | |
2591 | ||
5cce22b6 NS |
2592 | 2000-11-17 Nathan Sidwell <nathan@codesourcery.com> |
2593 | ||
2594 | * cp-tree.h (PARMLIST_ELLIPSIS_P): New macro. | |
2595 | * decl.c (grokdeclarator): Don't reject void parms here. | |
2596 | (require_complete_types_for_parms): Simplify, use | |
2597 | complete_type_or_else. | |
2598 | (grokparms): Remove bitrot. Remove funcdef parm. | |
2599 | Deal with ellipsis parm lists here. | |
2600 | * semantics.c (finish_parmlist): Don't append void_list_node | |
2601 | here. Set PARMLIST_ELLIPSIS_P. | |
2602 | ||
146c8d60 NS |
2603 | 2000-11-17 Nathan Sidwell <nathan@codesourcery.com> |
2604 | ||
2605 | * typeck2.c (incomplete_type_error): Reorganise to avoid | |
2606 | excessive diagnostics. | |
2607 | ||
520a57c8 ZW |
2608 | 2000-11-16 Zack Weinberg <zack@wolery.stanford.edu> |
2609 | ||
2610 | * lex.c (struct impl_files, internal_filename): Constify a char *. | |
2611 | ||
43048a06 MM |
2612 | 2000-11-16 Mark Mitchell <mark@codesourcery.com> |
2613 | ||
2614 | * mangle.c (write_special_name_constructor): Don't generate | |
2615 | assembler junk when confronted with an old-style constructor. | |
2616 | (write_special_name_destructor): Likewise. | |
2617 | (mangle_decl_string): Do it here instead. | |
2618 | ||
cdb71673 NS |
2619 | 2000-11-16 Nathan Sidwell <nathan@codesourcery.com> |
2620 | ||
2621 | * call.c (op_error): Make error messages clearer. | |
2622 | ||
62136084 MM |
2623 | 2000-11-15 Mark Mitchell <mark@codesourcery.com> |
2624 | ||
2625 | * decl.c (wrapup_globals_for_namespace): Don't mark things | |
2626 | TREE_ASM_WRITTEN when they're not. | |
2627 | ||
ee3400e8 JM |
2628 | 2000-11-15 Jason Merrill <jason@redhat.com> |
2629 | ||
2630 | * typeck2.c (friendly_abort): Uncount the error before handing | |
2631 | off to fancy_abort. | |
2632 | ||
71631a1f NS |
2633 | 2000-11-15 Nathan Sidwell <nathan@codesourcery.com> |
2634 | ||
2635 | * typeck.c (lookup_anon_field): Cope with qv qualifiers. | |
2636 | ||
79cda2d1 MM |
2637 | 2000-11-14 Mark Mitchell <mark@codesourcery.com> |
2638 | ||
2639 | * class.c (build_vtbl_initializer): Fix typo in comment. | |
2640 | * typeck.c (expr_sizeof): Don't crash on errors. | |
2641 | ||
2567bc56 JW |
2642 | 2000-11-14 Jim Wilson <wilson@redhat.com> |
2643 | ||
2644 | * lang-specs.h: Add %2 after %(cc1_options). | |
2645 | ||
8422942c RH |
2646 | 2000-11-14 Richard Henderson <rth@redhat.com> |
2647 | ||
2648 | * typeck.c (c_sizeof): Be strict about casting result value | |
2649 | back to c_size_type_node. | |
2650 | (expr_sizeof, c_sizeof_nowarn, c_alignof): Likewise. | |
2651 | ||
19552aa5 JM |
2652 | 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk> |
2653 | ||
2654 | * typeck.c (build_unary_op): Use boolean_increment from | |
2655 | c-common.c, moving the relevant code there. | |
2656 | ||
d96a6d1a JM |
2657 | 2000-11-11 Jason Merrill <jason@redhat.com> |
2658 | ||
2659 | * typeck.c (mark_addressable): Don't call put_var_into_stack. | |
492cca24 JM |
2660 | |
2661 | * decl.c (maybe_commonize_var): Set DECL_UNINLINABLE for statics | |
2662 | in inlines. | |
2663 | ||
4e135bdd KG |
2664 | 2000-11-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
2665 | ||
2666 | * decl.c (grokdeclarator, save_function_data): Use memcpy, not bcopy. | |
2667 | * lex.c (copy_lang_decl): Likewise. | |
2668 | ||
0a7394bc MM |
2669 | 2000-11-09 Mark Mitchell <mark@codesourcery.com> |
2670 | ||
13507bd8 MM |
2671 | * dump.c (cp_dump_tree): Don't dump function bodies here. |
2672 | ||
0a7394bc MM |
2673 | * Make-lang.in (CXX_C_OBJS): Add c-dump.o. |
2674 | (dump.o): Update dependency list. | |
2675 | * cp-tree.h (DECL_MAYBE_TEMPLATE): Remove. | |
2676 | (flag_dump_translation_unit): Likewise. | |
2677 | (CP_TYPE_QUALS): Adjust definition. | |
2678 | (DECL_C_BIT_FIELD): Remove. | |
2679 | (SET_DECL_C_BIT_FIELD): Likewise. | |
2680 | (CLEAR_DECL_C_BIT_FIELD): Likewise. | |
2681 | (add_maybe_template): Likewise. | |
2682 | (strip_array_types): Likewise. | |
2683 | (dump_node_to_file): Likewise. | |
2684 | (cp_dump_tree): New function. | |
2685 | * decl.c (init_decl_processing): Set lang_dump_tree. | |
2686 | * decl2.c (flag_dump_translation_unit): Remove. | |
2687 | * dump.c: Move most of it to ../c-dump.c. | |
2688 | (cp_dump_tree): New function. | |
2689 | * pt.c (add_maybe_template): Remove. | |
2690 | * typeck.c (strip_array_types): Likewise. | |
a8a05998 | 2691 | |
5362b086 EC |
2692 | 2000-11-07 Eric Christopher <echristo@redhat.com> |
2693 | ||
492cca24 JM |
2694 | * decl.c (init_decl_processing): Change definition of |
2695 | __wchar_t to wchar_t. Remove artificial declaration of | |
2696 | wchar_t. | |
2697 | * lex.c: Change instances of __wchar_t to wchar_t. | |
5362b086 | 2698 | |
5361cbb7 NS |
2699 | 2000-11-09 Nathan Sidwell <nathan@codesourcery.com> |
2700 | ||
2701 | * lex.c (do_identifier): Don't lookup_name for operators. | |
2702 | * parse.y (operator): Save looking_for_typename. | |
2703 | (unoperator): Restore it. | |
2704 | * spew.c (frob_opname): Use nth_token for lookahead. | |
2705 | ||
36791f1e NS |
2706 | 2000-11-08 Nathan Sidwell <nathan@codesourcery.com> |
2707 | ||
2708 | * decl.c (grok_op_properties): Always use coerce_new_type and | |
2709 | coerce_delete_type. | |
2710 | * decl2.c (coerce_new_type): Use c_size_type_node. Preserve | |
2711 | exception specification. Tidy up. | |
2712 | (coerce_delete_type): Preserve exception specification. Tidy up. | |
2713 | ||
961192e1 JM |
2714 | 2000-11-07 Joseph S. Myers <jsm28@cam.ac.uk> |
2715 | ||
2716 | * class.c (duplicate_tag_error, build_vtbl_initializer), decl.c | |
2717 | (push_binding_level), error.c (cp_tree_printer), pt.c | |
2718 | (process_partial_specialization, tsubst_template_arg_vector), | |
2719 | search.c (lookup_member): Use memset () instead of bzero (). | |
2720 | ||
d48ebde1 NS |
2721 | 2000-11-07 Nathan Sidwell <nathan@codesourcery.com> |
2722 | ||
2723 | * decl.c (build_ptrmemfunc_type): Allow error_mark_node. | |
2724 | ||
436a88a6 JM |
2725 | 2000-11-05 Joseph S. Myers <jsm28@cam.ac.uk> |
2726 | ||
2727 | * Make-lang.in (c++.distdir): Remove. | |
2728 | ||
7a4e5091 MM |
2729 | 2000-11-04 Mark Mitchell <mark@codesourcery.com> |
2730 | ||
2731 | * decl2.c (do_nonmember_using_decl): Allow `extern "C"' | |
2732 | declarations from different namespaces to be combined. | |
2733 | ||
0e9295cf ZW |
2734 | 2000-11-03 Zack Weinberg <zack@wolery.stanford.edu> |
2735 | ||
2736 | * decl.c: Include tm_p.h. | |
2737 | ||
da61dec9 JM |
2738 | 2000-11-03 Joseph S. Myers <jsm28@cam.ac.uk> |
2739 | ||
2740 | * tree.c (cp_tree_equal): Use memcmp () instead of bcmp (). | |
2741 | ||
9473c522 JM |
2742 | 2000-11-02 Joseph S. Myers <jsm28@cam.ac.uk> |
2743 | ||
2744 | * dump.c (dequeue_and_dump), lex.c (interface_strcmp), method.c | |
2745 | (build_overload_value), repo.c (open_repo_file), xref.c | |
2746 | (open_xref_file): Use strchr () and strrchr () instead of index () | |
2747 | and rindex (). | |
2748 | ||
b0b3afb2 BS |
2749 | 2000-11-01 Bernd Schmidt <bernds@redhat.co.uk> |
2750 | ||
2751 | * call.c (build_over_call): Call fold on the CALL_EXPR. | |
2752 | ||
faafaee6 GDR |
2753 | 2000-11-01 Gabriel Dos Reis <gdr@codesourcery.com> |
2754 | ||
2755 | * error.c (dump_template_decl): Separate template hearders with | |
2756 | space not comma. | |
2757 | ||
761f0855 GDR |
2758 | 2000-10-31 Gabriel Dos Reis <gdr@codesourcery.com> |
2759 | ||
2760 | * error.c: Move TFF_ macros into cp-tree.h. Throughout, replace | |
2761 | TS_* flags with corresponding TFF_*. Adjust prototypes of | |
2762 | functions (which used to take a tree_string_flags) to take an int. | |
2763 | ||
2764 | * cp-tree.h (enum tree_string_flags): Remove | |
2765 | (TFF_PLAIN_IDENTIFIER, TFF_NAMESPACE_SCOPE, TFF_CLASS_SCOPE, | |
2766 | TFF_CHASE_NAMESPACE_ALIAS, TFF_CHASE_TYPEDEF, TFF_DECL_SPECIFIERS, | |
2767 | TFF_CLASS_KEY_OR_ENUM, TFF_RETURN_TYPE, | |
2768 | TFF_FUNCTION_DEFAULT_ARGUMENTS, TFF_EXCEPTION_SPECIFICATION, | |
2769 | TFF_TEMPLATE_HEADER, TFF_TEMPLATE_DEFAULT_ARGUMENTS, | |
2770 | TFF_TEMPLATE_NAME, TFF_EXPR_IN_PARENS, TFF_SCOPE): New macros. | |
2771 | (type_as_string, decl_as_string, expr_as_string, | |
2772 | context_as_string): Adjust prototype. | |
2773 | ||
2774 | * class.c (dump_class_hierarchy_r): Use TFF_PLAIN_IDENTIFIER | |
2775 | instead of TS_PLAIN. | |
2776 | ||
2777 | * pt.c (mangle_class_name_for_template): Use TFF_CHASE_TYPEDEF | |
2778 | instead of TF_CHASE_TYPEDEFS. Use TFF_PLAIN_IDENTIFIER instead of | |
2779 | plain `0'. | |
2780 | ||
ad50e811 MM |
2781 | 2000-10-30 Mark Mitchell <mark@codesourcery.com> |
2782 | ||
2783 | * cp-tree.h (DECL_EXTERNAL_LINKAGE_P): New macro. | |
2784 | (linkage_kind): New enumeration. | |
2785 | (decl_linkage): New function. | |
2786 | * decl2.c (comdat_linkage): Extend comment. | |
2787 | * error.c (dump_function_decl): Print the arguments used to | |
2788 | instantiate a template, even when not printing the type of the | |
2789 | function. | |
2790 | * pt.c (convert_nontype_argument): Use DECL_EXTERNAL_LINKAGE_P, | |
2791 | not TREE_PUBLIC, to test for external linkage. | |
2792 | * tree.c (decl_linkage): New function. | |
2793 | ||
930cd796 MM |
2794 | 2000-10-28 Mark Mitchell <mark@codesourcery.com> |
2795 | ||
2796 | * pt.c (instantiate_decl): Always instantiate static data members | |
2797 | initialized in-class. | |
2798 | ||
b8dad04b ZW |
2799 | 2000-10-27 Zack Weinberg <zack@wolery.stanford.edu> |
2800 | ||
2801 | * Make-lang.in: Move all build rules here from Makefile.in, | |
2802 | adapt to new context. Wrap all rules that change the current | |
2803 | directory in parentheses. Expunge all references to $(P). | |
2804 | When one command depends on another and they're run all at | |
2805 | once, use && to separate them, not ;. Add OUTPUT_OPTION to | |
2806 | all object-file generation rules. Delete obsolete variables. | |
2807 | ||
2808 | * Makefile.in: Delete. | |
2809 | * config-lang.in: Delete outputs= line. | |
2810 | ||
5f9cd837 GDR |
2811 | 2000-10-26 Gabriel Dos Reis <gdr@codesourcery.com> |
2812 | ||
2813 | * error.c (dump_function_decl): Print no space between | |
2814 | `ptr-operator' the `type-specifier' of the return type. | |
2815 | (dump_type_prefix): Make sure we put space at the appropriate | |
5362b086 | 2816 | place. |
5f9cd837 | 2817 | |
6c6ed0ef JM |
2818 | 2000-10-23 Jason Merrill <jason@redhat.com> |
2819 | ||
2820 | * call.c (equal_functions): Also call decls_match for extern "C" fns. | |
2821 | ||
2822 | 2000-10-22 Jason Merrill <jason@redhat.com> | |
2823 | ||
2824 | * call.c (build_conditional_expr): Use ocp_convert to force | |
2825 | rvalue conversion. | |
2826 | ||
e36308b0 MM |
2827 | 2000-10-22 Mark Mitchell <mark@codesourcery.com> |
2828 | ||
583ca5a0 MM |
2829 | * call.c (standard_conversion): Use RVALUE_CONVs for all |
2830 | expressions that satisfy lvalue_p, not just those that satisfy | |
2831 | real_lvalue_p. | |
2832 | ||
f9808f81 MM |
2833 | * optimize.c (copy_body_r): Don't treat CALL_EXPRs specially. |
2834 | ||
5362b086 | 2835 | * typeck.c (c_sizeof): Return an expression of `size_t' type, |
e36308b0 MM |
2836 | not one with TYPE_IS_SIZETYPE set. |
2837 | (dubious_conversion_warnings): Remove special-case code. | |
2838 | ||
3b9ae6f0 GK |
2839 | 2000-10-21 Geoffrey Keating <geoffk@cygnus.com> |
2840 | ||
7a0f14e5 GK |
2841 | * decl2.c (arg_assoc_type): Handle VECTOR_TYPE. |
2842 | * error.c (dump_type): Handle VECTOR_TYPE like POINTER_TYPE. | |
2843 | (dump_type_prefix): Print vector-of-int as 'int vector'. | |
2844 | (dump_type_suffix): Handle VECTOR_TYPE like POINTER_TYPE. | |
2845 | * tree.c (walk_tree): Handle VECTOR_TYPE. | |
2846 | ||
3b9ae6f0 | 2847 | * decl.c (init_decl_processing): Call MD_INIT_BUILTINS. |
5362b086 | 2848 | |
aca77bd1 JM |
2849 | 2000-10-21 Jason Merrill <jason@redhat.com> |
2850 | ||
2851 | * parse.y (operator): Set got_object from got_scope. | |
2852 | Set looking_for_typename. | |
2853 | * decl.c (lookup_name_real): Clear val after setting from_obj. | |
2854 | Reorganize diagnostic. | |
2855 | ||
ba523395 JM |
2856 | 2000-10-20 Jason Merrill <jason@redhat.com> |
2857 | ||
2858 | * tree.c (walk_tree): Don't walk into default args. | |
2859 | ||
2860 | * error.c (dump_expr): Use host_integerp. | |
2861 | ||
2e44948d DE |
2862 | 2000-10-20 David Edelsohn <edelsohn@gnu.org> |
2863 | ||
2864 | * typeck2.c (abstract_virtuals_error): Use "because" instead of | |
2865 | "since" in error message. | |
2866 | ||
44475138 RK |
2867 | Fri Oct 20 13:54:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> |
2868 | ||
2869 | * typeck.c (dubious_conversion_warning): Suppress if TYPE_IS_SIZETYPE. | |
2870 | ||
11306230 JO |
2871 | 2000-10-20 Jeffrey Oldham <oldham@codesourcery.com> |
2872 | ||
2873 | * decl.c (revert_static_member_fn): Fixed typo. | |
2874 | ||
97ba1e3c MM |
2875 | 2000-10-19 Mark Mitchell <mark@codesourcery.com> |
2876 | ||
c20118a8 MM |
2877 | * class.c (subobject_offset_fn): New type. |
2878 | (dfs_record_base_offsets): Remove. | |
2879 | (record_base_offsets): Likewise. | |
2880 | (dfs_search_base_offsets): Likewise. | |
2881 | (record_subobject_offset): New function. | |
2882 | (check_subobject_offset): Likewise. | |
2883 | (walk_subobject_offsets): Likewise. | |
2884 | (record_subobject_offsets): Likewise. | |
2885 | (layout_conflict_p): Reimplement. | |
2886 | (layout_nonempty_base_or_field): Correct handling of type | |
2887 | conflicts during layout. | |
2888 | (layout_empty_base): Likewise. | |
2889 | (build_base_field): Adjust to handle new representation of empty | |
2890 | base offset table. | |
2891 | (build_base_fields): Likewise. | |
2892 | (layout_virtual_bases): Likewise. | |
2893 | (splay_tree_compare_integer_csts): New function. | |
2894 | (layout_class_type): Use a splay_tree, rather than a varray, to | |
2895 | represent the offsets of empty bases. | |
5362b086 | 2896 | |
97ba1e3c MM |
2897 | * cp-tree.h (DECL_ANTICIPATED): Don't require a FUNCTION_DECL. |
2898 | * decl.c (select_decl): Don't return declarations that are | |
2899 | DECL_ANTICIPATED. | |
2900 | ||
6bcedb4e MM |
2901 | 2000-10-18 Mark Mitchell <mark@codesourcery.com> |
2902 | ||
2903 | * cp-tree.h (cp_tree_index): Add CPTI_FAKE_STD. | |
2904 | (fake_std_node): New macro. | |
2905 | * decl.c (in_std): Rename to ... | |
2906 | (in_fake_std): ... this. | |
2907 | (flag_no_builtin): Remove. | |
2908 | (flag_no_nonansi_builtin): Likewise. | |
2909 | (walk_namespaces_r): Use fake_std_node. | |
2910 | (push_namespace): Use std_identifier. | |
2911 | (pop_namespace): Use in_fake_std. | |
2912 | (lookup_name_real): Use fake_std_node. | |
2913 | (init_decl_processing): When -fhonor-std, create the `std' | |
2914 | namespace. Don't create a dummy fake_std_node in that case. | |
2915 | Adjust call to c_common_nodes_and_builtins. Use std_identifier. | |
2916 | (builtin_function): Put builtins whose names don't begin | |
2917 | with `_' in the std namespace. | |
2918 | * decl2.c (flag_no_builtin): Remove. | |
2919 | (flag_no_nonansi_builtin): Likewise. | |
2920 | (set_decl_namespace): Use fake_std_node. | |
2921 | (validate_nonmember_using_decl): Likewise. | |
2922 | (do_using_directive): Likewise. | |
2923 | (handle_class_head): Likewise. | |
2924 | * dump.c (dequeue_and_dump): Likewise. | |
2925 | * except.c (init_exception_processing): Use std_identifier. | |
2926 | * init.c (build_member_call): Use fake_std_node. | |
2927 | * rtti.c (init_rtti_processing): Use std_identifier. | |
5362b086 | 2928 | |
67673f5c MM |
2929 | 2000-10-17 Mark Mitchell <mark@codesourcery.com> |
2930 | ||
2931 | * cp-tree.h (back_end_hook): Remove declaration. | |
2932 | * decl2.c (back_end_hook): Remove definition. | |
2933 | ||
2934 | * dump.c (dequeue_and_dump): Dump TREE_USED. | |
2935 | ||
8fef2e47 BL |
2936 | Tue Oct 17 20:19:06 2000 Brad Lucier <lucier@math.purdue.edu> |
2937 | ||
2938 | * spew.c (snarf_defarg): Cast 2nd arg to obstack_blank to (int). | |
2939 | ||
652469d0 JM |
2940 | 2000-10-17 Joseph S. Myers <jsm28@cam.ac.uk> |
2941 | ||
2942 | * decl.c (WINT_TYPE): Define. | |
2943 | (init_decl_processing): Create types unsigned_ptrdiff_type_node, | |
2944 | c_size_type_node, signed_size_type_node and wint_type_node. | |
2945 | ||
74ff4629 JM |
2946 | 2000-10-17 Joseph S. Myers <jsm28@cam.ac.uk> |
2947 | ||
2948 | * decl2.c (warn_missing_format_attribute): New variable. | |
2949 | (lang_decode_option): Decode -Wmissing-format-attribute. | |
2950 | ||
634790f4 MM |
2951 | 2000-10-16 Mark Mitchell <mark@codesourcery.com> |
2952 | ||
2953 | * typeck.c (qualify_type): Remove. | |
2954 | (composite_pointer_type): Fix handling of conversions to `cv void*'. | |
2955 | ||
bb12da9d KG |
2956 | 2000-10-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
2957 | ||
2958 | * Makefile.in (parse.c, parse.h): Fix think-o in last patch. | |
2959 | ||
4b945402 KG |
2960 | 2000-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
2961 | ||
2962 | * Makefile.in (parse.c, parse.h): Create atomically. | |
2963 | ||
1f8f4a0b MM |
2964 | 2000-10-12 Mark Mitchell <mark@codesourcery.com> |
2965 | ||
2966 | * class.c (current_obstack): Remove. | |
2967 | * decl.c (ggc_p): Remove. | |
2968 | (start_decl): Don't use decl_tree_cons. | |
2969 | (grokdeclarator): Don't use build_decl_list. | |
2970 | (start_function): Don't use decl_tree_cons. | |
2971 | (finish_function): Don't mess with obstacks. | |
2972 | * decl2.c (grok_x_components): Don't use build_decl_list. | |
2973 | * lex.c (make_call_declarator): Don't call decl_tree_cons. | |
2974 | (implicitly_declare_fn): Don't call build_decl_list. | |
2975 | * parse.y (frob_specs): Don't call build_decl_list or | |
2976 | decl_tree_cons. | |
2977 | (expr_or_declarator_intern): Don't call decl_tree_cons. | |
2978 | (primary): Don't call build_decl_list. | |
2979 | (fcast_or_absdcl): Likewise. | |
2980 | (typed_declspecs): Don't call decl_tree_cons. | |
2981 | (reserved_declspecs): Don't call build_decl_list. | |
2982 | (declmods): Likewise. | |
2983 | (reserved_typespecquals): Likewise. | |
2984 | (aggr): Likewise. | |
2985 | (new_type_id): Likewise. | |
2986 | (cv_qualifiers): Likewise. | |
2987 | (after_type_declarator_intern): Likewise. | |
2988 | (notype_declarator_intern): Likewise. | |
2989 | (absdcl_intern): Likewise. | |
2990 | (named_parm): Likewise. | |
2991 | * pt.c (most_specialized_class): Likewise. | |
2992 | * repo.c (temporary_obstack): Make it a structure, not a pointer. | |
2993 | (init_repo): Initialize it. | |
2994 | * search.c (current_obstack): Remove. | |
2995 | * typeck2.c (add_exception_specifier): Don't call build_decl_list. | |
5362b086 | 2996 | |
8dc54971 RH |
2997 | 2000-10-09 Richard Henderson <rth@cygnus.com> |
2998 | ||
2999 | * Make-lang.in (CXX_EXTRA_HEADERS): Remove. | |
3000 | (c++ language support bits for libgcc): Remove. | |
3001 | (c++.clean): Remove cplib2.txt cleanup. | |
3002 | * config-lang.in (headers, lib2funcs): Remove. | |
3003 | ||
3004 | * exception.cc, new.cc, new1.cc, new2.cc: Remove files. | |
3005 | * tinfo.cc, tinfo.h, tinfo2.cc, vec.cc: Remove files. | |
3006 | * inc/cxxabi.h, inc/exception, inc/new: Remove files. | |
3007 | * inc/new.h, inc/typeinfo: Remove files. | |
3008 | ||
b15ad712 JM |
3009 | 2000-10-08 Joseph S. Myers <jsm28@cam.ac.uk> |
3010 | ||
3011 | * decl.c (INTMAX_TYPE, UINTMAX_TYPE): Define if not already | |
3012 | defined. | |
3013 | (init_decl_processing): Initialize intmax_type_node and | |
3014 | uintmax_type_node. | |
3015 | ||
156ce211 RH |
3016 | 2000-10-06 Richard Henderson <rth@cygnus.com> |
3017 | ||
3018 | * cp-tree.h (struct cp_language_function): Remove x_result_rtx. | |
3019 | (original_result_rtx): Remove. | |
3020 | * decl.c (save_function_data): Don't clear x_result_rtx. | |
3021 | (mark_lang_function): Don't mark it either. | |
3022 | * expr.c (fixup_result_decl): Remove. | |
3023 | * semantics.c (genrtl_named_return_value): Frob the return decl | |
3024 | before calling emit_local_var. | |
3025 | (genrtl_finish_function): Don't call fixup_result_decl. | |
3026 | Always emit the jump to return_label. | |
3027 | ||
92777ce4 NS |
3028 | 2000-10-06 Nathan Sidwell <nathan@codesourcery.com> |
3029 | ||
3030 | * pt.c (lookup_template_class): Set current access for enum. | |
3031 | (tsubst_enum): Set file & line for enum decl. | |
5362b086 | 3032 | |
92777ce4 NS |
3033 | * spew.c (yylex): Remove unused variable. |
3034 | ||
63c16fc5 RH |
3035 | 2000-10-05 Richard Henderson <rth@cygnus.com> |
3036 | ||
3037 | * semantics.c (genrtl_finish_function): Don't init or check | |
3038 | can_reach_end; remove noreturn and return value checks. | |
3039 | ||
d1a458c4 TT |
3040 | 2000-10-05 Tom Tromey <tromey@cygnus.com> |
3041 | ||
3042 | * init.c (build_java_class_ref): Use `build_static_name' with a | |
3043 | suffix, not a prefix, to build the class object's name. | |
3044 | ||
509fc277 NS |
3045 | 2000-10-05 Nathan Sidwell <nathan@codesourcery.com> |
3046 | ||
3047 | * cp-tree.h (access_kind): Fix comment typo. | |
3048 | * decl2.c (grokfield): Fix diagnostic typo. | |
3049 | * semantics.c (finish_template_type): Fix comment typo. | |
3050 | (finish_qualified_object_call_expr): Likewise. | |
3051 | ||
ce2e5191 NS |
3052 | 2000-10-05 Nathan Sidwell <nathan@codesourcery.com> |
3053 | ||
3054 | * pt.c (tsubst_expr, DECL_STMT case): Don't process if | |
5362b086 | 3055 | tsubsting fails. |
ce2e5191 | 3056 | |
79cc5312 NS |
3057 | 2000-10-05 Nathan Sidwell <nathan@codesourcery.com> |
3058 | ||
3059 | * spew.c (frob_id): New static function. | |
3060 | (frob_opname): Use it. | |
3061 | (yylex): Use it. | |
3062 | ||
f15b9af9 MM |
3063 | 2000-10-01 Mark Mitchell <mark@codesourcery.com> |
3064 | ||
3065 | * decl.c (lang_mark_false_label_stack): Remove. | |
3066 | * lex.c (cp_mang_lang_type): Use ggc_alloc_cleared. | |
5362b086 | 3067 | |
28e6b1c2 JM |
3068 | 2000-09-30 Joseph S. Myers <jsm28@cam.ac.uk> |
3069 | ||
3070 | * gxxint.texi: Use @email for formatting email addresses. | |
3071 | ||
99885b3f GDR |
3072 | 2000-09-29 Gabriel Dos Reis <gdr@codesourcery.com> |
3073 | ||
3074 | * error.c: Remove direct obstack manipulation. Replace with | |
3075 | output_buffer-based formatting. Adjust calls to removed macros. | |
3076 | (obstack_chunk_alloc, obstack_chunk_free): Remove. | |
3077 | (OB_INIT, OB_PUTC, OB_PUTC2, OB_PUTS, OB_PUTID, OB_PUTCP, | |
3078 | OB_FINISH, OB_PUTI, OB_END_TEMPLATE): Likewise. | |
3079 | ||
c06aa51e MM |
3080 | 2000-09-24 Mark Mitchell <mark@codesourcery.com> |
3081 | ||
3082 | * ir.texi: Move to ../c-tree.texi. | |
3083 | ||
99fada40 JM |
3084 | 2000-09-20 Jason Merrill <jason@redhat.com> |
3085 | ||
3086 | * decl2.c (get_guard): Check DECL_FUNCTION_SCOPE_P. | |
3087 | ||
bb20cc46 AJ |
3088 | 2000-09-21 Andreas Jaeger <aj@suse.de> |
3089 | ||
3090 | * errfn.c: Move declaration of cp_printer and cp_printers to ... | |
3091 | * cp-tree.h: ... here. | |
3092 | ||
3093 | * error.c: Remove declaration of cp_printer. | |
3094 | ||
fab701da MM |
3095 | 2000-09-20 Mark Mitchell <mark@codesourcery.com> |
3096 | ||
3097 | * tree.c (mark_local_for_remap_r): Handle CASE_LABELs. | |
3098 | ||
0370fea1 HPN |
3099 | 2000-09-20 Hans-Peter Nilsson <hp@axis.com> |
3100 | ||
3101 | * except.c: Delete #if 0:d EXCEPTION_SECTION_ASM_OP-default and | |
3102 | users. | |
3103 | ||
78c120b5 MM |
3104 | 2000-09-18 Mark Mitchell <mark@codesourcery.com> |
3105 | ||
3106 | * decl.c (start_function): Robustify. | |
3107 | ||
3f80e6ac KG |
3108 | 2000-09-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
3109 | ||
3110 | * cp-tree.h (check_function_format): Accept a `status' parameter. | |
bb20cc46 | 3111 | |
3f80e6ac KG |
3112 | * call.c, typeck.c: Updates calls to `check_function_format'. |
3113 | ||
fc928afe GK |
3114 | 2000-09-17 Geoffrey Keating <geoffk@cygnus.com> |
3115 | ||
3116 | * decl2.c (handle_class_head): Always push some scope even | |
3117 | in the error case. | |
3118 | ||
8f17b5c5 MM |
3119 | 2000-09-16 Mark Mitchell <mark@codesourcery.com> |
3120 | ||
3121 | * cp-tree.h (struct cp_language_function): Remove | |
3122 | x_scope_stmt_stack and name_declared. | |
3123 | (current_scope_stmt_stack): Remove. | |
3124 | (function_name_declared_p): New macro. | |
3125 | (struct lang_decl_flags): Use c_lang_decl as a base class. | |
3126 | (context): Remove. | |
3127 | (struct lang_decl): Replace saved_tree with context. | |
3128 | (DECL_FRIEND_CONTEXT): Adjust accordingly. | |
3129 | (SET_DECL_FRIEND_CONTEXT): Likewise. | |
3130 | (DECL_VIRTUAL_CONTEXT): Likewise. | |
3131 | (DECL_SAVED_TREE): Remove. | |
3132 | (C_DECLARED_LABEL_FLAG): Likewise. | |
3133 | (cplus_expand_expr_stmt): Don't declare. | |
3134 | (add_decl_stmt): Likewise. | |
3135 | (add_scope_stmt): Likewise. | |
3136 | * decl.c (mark_stmt_tree): Remove. | |
3137 | (case_compare): Likewise. | |
3138 | (finish_case_label): Use c_add_case_label. | |
3139 | (init_decl_processing): Set more language-specific hooks. | |
3140 | (build_enumerator): Fix typo in comment. | |
3141 | (cplus_expand_expr_stmt): Remove. | |
3142 | (mark_lang_function): Use mark_c_language_function. | |
3143 | (lang_mark_tree): Use c_mark_lang_decl. | |
3144 | * decl2.c: Change order of inclusion. | |
3145 | * except.c: Likewise. | |
3146 | * expr.c (cplus_expand_expr): Remove handling of STMT_EXPR. Fall | |
3147 | back on c_expand_expr. | |
3148 | * friend.c: Include expr.h. | |
3149 | * init.c: Change order of inclusion. | |
3150 | * Makefile.in: Update dependencies. | |
3151 | * lex.h (free_lang_decl_chain): Remove. | |
3152 | * optimize.c (maybe_clone_body): Use function_name_declared_p. | |
3153 | * pt.c (build_template_decl): Don't copy DECL_VIRTUAL_CONTEXT if | |
3154 | it doesn't exist. | |
3155 | (instantiate_decl): Use function_name_declared_p. | |
3156 | * semantics.c (lang_expand_expr_stmt): Remove. | |
3157 | (set_current_function_name_declared): Likewise. | |
3158 | (current_function_name_declared): Likewise. | |
3159 | (begin_compound_stmt): Use function_name_declared_p. | |
3160 | (add_decl_stmt): Remove. | |
3161 | (setup_vtbl_ptr): Use function_name_declared_p. | |
3162 | (add_scope_stmt): Remove. | |
3163 | (current_scope_stmt_stack): New function. | |
3164 | (cp_expand_stmt): Don't handle SCOPE_STMTs. | |
3165 | (expand_body): Use function_name_declared_p. | |
3166 | * tree.c (cp_statement_code_p): Don't include SCOPE_STMT. | |
3167 | * typeck.c: Change order of includes. | |
3168 | (convert_sequence): Remove. | |
bb20cc46 | 3169 | |
d9dbd9b1 JM |
3170 | 2000-09-14 Joseph S. Myers <jsm28@cam.ac.uk> |
3171 | ||
3172 | * lex.c (reswords): Add _Complex. | |
3173 | ||
9985f210 RK |
3174 | Thu Sep 14 12:10:45 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> |
3175 | ||
3176 | * Make-lang.in (cplib2.txt): Depend on cp/Makefile. | |
3177 | ||
f903ebb1 DA |
3178 | 2000-09-13 J. David Anglin <dave@hiauly1.hia.nrc.ca> |
3179 | ||
3180 | * init.c (begin_init_stmts): Don't use // comments. | |
3181 | ||
f2ae0c45 JM |
3182 | 2000-09-12 Jason Merrill <jason@redhat.com> |
3183 | ||
3184 | * decl.c (maybe_deduce_size_from_array_init): Set do_default for | |
3185 | all non-extern arrays. | |
3186 | ||
3187 | * decl.c (grokdeclarator): Complain about 'friend T' for implicit | |
3188 | typenames, too. Downgrade complaint to pedwarn. | |
3189 | (xref_tag): Warn about surprising behavior of 'friend struct T'. | |
3190 | * decl2.c (handle_class_head): Generate a TYPENAME_TYPE for | |
3191 | 'class This::Inherited'. | |
3192 | ||
71ad4a16 MM |
3193 | 2000-09-12 Mark Mitchell <mark@codesourcery.com> |
3194 | ||
3195 | * decl.c (finish_case_label): Given the LABEL_DECL a | |
3196 | DECL_CONTEXT. | |
3197 | ||
c3e76028 GDR |
3198 | 2000-09-12 Gabriel Dos Reis <gdr@codesourcery.com> |
3199 | ||
3200 | * error.c (TFF_PLAIN_IDENTIFIER, TFF_NAMESPACE_SCOPE, | |
3201 | TFF_CLASS_SCOPE, TFF_CHASE_NAMESPACE_ALIAS, TFF_CHASE_TYPDEF, | |
3202 | TFF_DECL_SPECIFIERS, TFF_CLASS_KEY_OR_ENUM, TFF_RETURN_TYPE, | |
3203 | TFF_FUNCTION_DEFAULT_ARGUMENTS, TFF_EXCEPTION_SPECIFICATION, | |
3204 | TFF_TEMPLATE_HEADER, TFF_TEMPLATE_DEFAULT_ARGUMENTS, TFF_SCOPE): | |
3205 | New macros. | |
3206 | (sorry_for_unsupported_tree, print_scope_operator, | |
3207 | print_left_paren, print_right_paren, print_left_bracket, | |
3208 | print_right_bracket, print_whitespace): Likewise. | |
3209 | (aggr_variety): Rename to class_key_or_enum. | |
3210 | (print_type): Rename to print_type_id. | |
3211 | (print_type_specifier_seq, print_simple_type_specifier, | |
3212 | print_elaborated_type_specifier, | |
3213 | print_rest_of_abstract_declarator, | |
3214 | print_parameter_declaration_clause, print_exception_specification, | |
3215 | print_nested_name_specifier, print_template_id, | |
3216 | typedef_original_name, print_template_argument_list_start, | |
3217 | print_template_argument_list_end): New functions. | |
3218 | ||
eb50138b GDR |
3219 | 2000-09-11 Gabriel Dos Reis <gdr@codesourcery.com> |
3220 | ||
a8a05998 | 3221 | * ir.texi: Add more documentation. |
eb50138b | 3222 | |
f444e36b MM |
3223 | 2000-09-11 Mark Mitchell <mark@codesourcery.com> |
3224 | ||
3225 | * cp-tree.h (struct saved_scope): Remove x_function_parms. | |
3226 | (current_function_parms): Don't define. | |
3227 | (struct cp_language_function): Remove parms_stored. | |
3228 | (current_function_just_assigned_this): Don't define. | |
3229 | (current_function_parms_stored): Likewise. | |
3230 | (static_ctors): Declare. | |
3231 | (static_dtors): Likewise. | |
3232 | (SF_EXPAND): Don't define. | |
3233 | (expand_start_early_try_stmts): Remove declaration. | |
3234 | (store_parm_decls): Likewise. | |
3235 | * decl.c (static_ctors): Don't declare. | |
3236 | (static_dtors): Likewise. | |
3237 | (struct binding_level): Remove this_block. | |
3238 | (poplevel): Remove dead code. | |
3239 | (set_block): Likewise. | |
3240 | (mark_binding_level): Don't mark this_block. | |
3241 | (mark_saved_scope): Don't mark x_function_parms. | |
3242 | (init_decl_processing): Don't add current_function_parms as a GC | |
3243 | root. | |
3244 | (check_function_type): Change prototype. | |
3245 | (start_function): Remove RTL-generation code. | |
3246 | (expand_start_early_try_stmts): Remove. | |
3247 | (store_parm_decls): Give it internal linkage. Remove | |
3248 | RTL-generation code. | |
3249 | (finish_function): Remove RTL-generation code. | |
3250 | * decl2.c (static_ctors): Fix formatting. | |
3251 | (static_dtors): Likewise. | |
3252 | * method.c (use_thunk): Don't call store_parm_decls. | |
3253 | (synthesize_method): Likewise. | |
3254 | * optimize.c (maybe_clone_body): Likewise. | |
3255 | * parse.y (fn.def2): Likewise. | |
3256 | (.set_base_init): Likewise. | |
3257 | (nodecls): Likewise. | |
3258 | * pt.c (instantiate_decl): Likewise. | |
3259 | * rtti.c (synthesize_tinfo_fn): Likewise. | |
3260 | * semantics.c (genrtl_try_block): Simplify. | |
3261 | (expand_body): Use genrtl_start_function and | |
3262 | genrtl_finish_function. | |
3263 | (genrtl_start_function): New function. | |
3264 | (genrtl_finish_function): Likewise. | |
3265 | ||
181d2ba0 NS |
3266 | 2000-09-11 Nathan Sidwell <nathan@codesourcery.com> |
3267 | ||
3268 | * error.c (cp_tree_printer, case 'P'): Append break. | |
3269 | ||
f2d71db6 NS |
3270 | 2000-09-11 Nathan Sidwell <nathan@codesourcery.com> |
3271 | ||
3272 | * cp-tree.h (frob_opname): Declare. | |
3273 | * parse.y (saved_scopes): New static variable. | |
3274 | (cp_parse_init): Adjust. | |
3275 | (do_id): If lastiddecl is NULL, do do_identifier. | |
3276 | (operator): Save scope information. | |
aca77bd1 | 3277 | (unoperator): New reduction. Restore scope information. |
f2d71db6 NS |
3278 | (operator_name): Append unoperator. Call frob_opname. |
3279 | * spew.c (frob_opname): Define. | |
3280 | ||
d8ea8f28 ZW |
3281 | 2000-09-10 Zack Weinberg <zack@wolery.cumb.org> |
3282 | ||
3283 | * decl.c, rtti.c: Include defaults.h if not already included. | |
3284 | Don't define the *_TYPE_SIZE macros. | |
3285 | ||
56cb9733 MM |
3286 | 2000-09-09 Mark Mitchell <mark@codesourcery.com> |
3287 | ||
3288 | * cp-tree.h (push_switch): Change prototype. | |
3289 | (check_cp_case_value): Remove declaration. | |
3290 | (decl_constant_value): Likewise. | |
3291 | * decl.c (struct cp_switch): Add switch_stmt and cases. | |
3292 | (case_compare): New function. | |
3293 | (push_switch): Set switch_stmt. Initialize cases. | |
3294 | (pop_switch): Clean up cases. | |
3295 | (define_case_label): Rename to ... | |
3296 | (finish_case_label): ... this. Do semantic analysis for case | |
3297 | labels here. | |
3298 | (start_function): Correct comment. | |
3299 | * decl2.c (check_cp_case_value): Remove. | |
3300 | * expr.c (do_case): Remove. | |
3301 | * pt.c (tsubst_expr): Adjust call to finish_case_label. | |
3302 | * semantics.c (genrtl_do_poplevel): Remove declaration. | |
3303 | (RECHAIN_STMTS): Remove. | |
3304 | (finish_break_stmt): Use build_break_stmt. | |
3305 | (finish_continue_stmt): Use build_continue_stmt. | |
3306 | (finish_switch_cond): Adjust condition here, rater than in | |
3307 | c_expand_start_case. | |
3308 | (finish_case_label): Remove. | |
3309 | * typeck.c (c_expand_return): Remove. | |
3310 | (c_expand_start_case): Likewise. | |
bb20cc46 | 3311 | |
990a9693 GDR |
3312 | 2000-09-07 Gabriel Dos Reis <gdr@codesourcery.com> |
3313 | ||
3314 | * ir.texi: Document type nodes. | |
3315 | ||
ae499cce MM |
3316 | 2000-09-06 Mark Mitchell <mark@codesourcery.com> |
3317 | ||
54f7877c MM |
3318 | * cp-tree.h (init_cp_semantics): Declare. |
3319 | (genrtl_try_block): Don't declare. | |
3320 | (genrtl_handler): Likewise. | |
3321 | (genrtl_catch_block): Likewise. | |
3322 | (genrtl_ctor_stmt): Likewise. | |
3323 | (genrtl_subobject): Likewise. | |
3324 | (genrtl_do_poplevel): Likewise. | |
3325 | (genrtl_named_return_value): Likewise. | |
3326 | * lex.c (init_parse): Call init_cp_semantics. | |
3327 | * semantics.c (genrtl_try_block): Give it internal linkage. | |
3328 | (genrtl_handler): Likewise. | |
3329 | (genrtl_catch_block): Likewise. | |
3330 | (genrtl_ctor_stmt): Likewise. | |
3331 | (genrtl_subobject): Likewise. | |
3332 | (genrtl_do_poplevel): Likewise. | |
3333 | (genrtl_named_return_value): Likewise. | |
3334 | (lang_expand_stmt): Rename to ... | |
3335 | (cp_expand_stmt): ... this. Only handle C++-specific nodes. | |
3336 | (init_cp_semantics): Define. | |
3337 | ||
3a0d3e1e MM |
3338 | * decl.c (initialize_local_var): Remove RTL-generating code. |
3339 | * semantics.c (genrtl_try_block): Fix formatting. | |
3340 | ||
ae499cce MM |
3341 | Move statement-tree facilities from C++ to C front-end. |
3342 | * cp-tree.h (cp_tree_index): Remove CPTI_VOID_ZERO. | |
3343 | (void_zero_node): Remove. | |
3344 | (stmt_tree): Likewise. | |
3345 | (scope_chain): Adjust. | |
3346 | (language_function): Rename to cp_language_function. | |
3347 | (cp_function_chain): Adjust. | |
3348 | (current_stmt_tree): Remove. | |
3349 | (last_tree): Likewise. | |
3350 | (last_expr_type): Likewise. | |
3351 | (struct lang_decl): Adjust. | |
3352 | (STMT_IS_FULL_EXPR_P): Remove. | |
3353 | (add_tree): Remove. | |
3354 | (begin_stmt_tree): Likewise. | |
3355 | (finish_stmt_tree): Likewise. | |
3356 | (walk_tree_fn): Likewise. | |
3357 | (walk_stmt_tree): Likewise. | |
3358 | * class.c (finish_struct): Replace use of add_tree with add_stmt. | |
3359 | * decl.c (mark_stmt_tree): Adjust type. | |
3360 | (init_decl_processing): Don't build void_zero_node. | |
3361 | (initialize_local_var): Adjust usage of current_stmt_tree. | |
3362 | (finish_enum): Use add_stmt, not add_tree. | |
3363 | (save_function_data): Adjust use of language_function. | |
3364 | (finish_constructor_body): Use add_stmt, not add_tree. | |
3365 | (finish_destructor_body): Likewise. | |
3366 | (push_cp_function_context): Adjust use of language_function. | |
3367 | (pop_cp_function_context): Likewise. | |
3368 | (mark_lang_function): Likewise. | |
3369 | (mark_cp_function_context): Likewise. | |
3370 | * init.c (build_aggr_init): Adjust use of current_stmt_tree. | |
3371 | (build_vec_init): Likewise. | |
3372 | * semantics.c (SET_LAST_STMT): Remove. | |
3373 | (RECHAIN_STMTS): Don't use it. | |
3374 | (stmts_are_full_exprs_p): Adjust use of current_stmt_tree. | |
3375 | (current_stmt_tree): Define. | |
3376 | (add_tree): Remove. | |
3377 | (finish_goto_stmt): Use add_stmt, not add_tree. | |
3378 | (finish_expr_stmt): Likewise. | |
3379 | (begin_if_stmt): Likewise. | |
3380 | (finish_then_clause): Likewise. | |
3381 | (begin_while_stmt): Likewise. | |
3382 | (begin_do_stmt): Likewise. | |
3383 | (finish_return_stmt): Likewise. | |
3384 | (begin_for_stmt): Likewise. | |
3385 | (finish_break_stmt): Likewise. | |
3386 | (finish_continue_stmt): Likewise. | |
3387 | (begin_switch_stmt): Likewise. | |
3388 | (finish_case_label): Likewise. | |
3389 | (begin_try_block): Likewise. | |
3390 | (begin_function_try_block): Likewise. | |
3391 | (begin_handler): Likewise. | |
3392 | (begin_catch_block): Likewise. | |
3393 | (begin_compound_stmt): Likewise. | |
3394 | (begin_asm_stmt): Likewise. | |
3395 | (finish_asm_stmt): Likewise. | |
3396 | (finish_label_stmt): Likewise. | |
3397 | (add_decl_stmt): Likewise. | |
3398 | (finish_subobject): Likewise. | |
3399 | (finish_decl_cleanup): Likewise. | |
3400 | (finish_named_return_value): Likewise. | |
3401 | (setup_vtbl_ptr): Likewise. | |
3402 | (add_scope_stmt): Likewise. | |
3403 | (finish_stmt_expr): Likewise. | |
3404 | (prune_unused_decls): Remove. | |
3405 | (begin_stmt_tree): Likewise. | |
3406 | (finish_stmt_tree): Likewise. | |
3407 | (prep_stmt): Adjust use of current_stmt_tree. | |
3408 | (lang_expand_stmt): Likewise. | |
3409 | * tree.c (statement_code_p): Remove. | |
3410 | (cp_statement_code_p): New function. | |
3411 | (walk_stmt_tree): Remove. | |
3412 | (init_tree): Set lang_statement_code_p. | |
bb20cc46 | 3413 | |
0e5921e8 ZW |
3414 | 2000-09-06 Zack Weinberg <zack@wolery.cumb.org> |
3415 | ||
3416 | Integrated preprocessor. | |
3417 | ||
3418 | * Make-lang.in, Makefile.in: Remove all references to input.c, | |
3419 | gxx.gperf, and hash.h. Add ../c-lex.o to C_OBJS. | |
3420 | * gxx.gperf, hash.h, input.c: Delete. | |
3421 | * lang-specs.h: Pass -lang-c++ to cc1plus so cpplib is | |
3422 | initialized properly. | |
3423 | ||
3424 | * class.c (fixup_pending_inline): Take a tree, not a | |
3425 | struct pending_inline *. All callers changed. | |
3426 | (init_class_processing): Set RID_PUBLIC, RID_PRIVATE, | |
3427 | RID_PROTECTED entries in ridpointers[] array here. | |
3428 | * decl.c (duplicate_decls): Do not refer to struct | |
3429 | pending_inline. | |
3430 | (record_builtin_type, init_decl_processing): Use RID_MAX not | |
3431 | CP_RID_MAX. | |
3432 | (grokdeclarator): Use C_IS_RESERVED_WORD. | |
3433 | * decl2.c (lang_decode_option): Ignore -lang-c++ for sake of | |
3434 | cpplib. | |
3435 | (grok_x_components): Do not inspect pending_inlines chain. | |
3436 | ||
3437 | * cp-tree.h (struct lang_identifier): Add rid_code entry. | |
3438 | (C_IS_RESERVED_WORD, C_RID_CODE, C_RID_YYCODE): New. | |
3439 | (flag_no_gnu_keywords, flag_operator_names, rid_to_yy): Declare. | |
3440 | (DEFARG_LENGTH, struct pending_inline, TIME_IDENTIFIER_TIME, | |
3441 | TIME_IDENTIFIER_FILEINFO): Kill. | |
3442 | Update prototypes. | |
3443 | * lex.h: Expunge cp_rid. Rewrite RIDBIT macros to use just a | |
3444 | single 32-bit word. | |
3445 | * parse.y: Call do_pending_inlines unconditionally. | |
3446 | reinit_parse_for_method is now snarf_method. fn.defpen is no | |
3447 | longer necessary. Remove unnecessary <itype> annotation on | |
3448 | SCOPE. Do not refer to end_of_file or struct pending_inline. | |
3449 | * semantics.c (begin_inline_definitions): Call | |
3450 | do_pending_inlines unconditionally. | |
3451 | ||
3452 | * lex.c: Remove all code now shared with C front end. | |
3453 | Initialize cpplib properly if USE_CPPLIB. Put reserved words | |
3454 | into the get_identifier table. Rewrite pragma handling to | |
3455 | work with the registry. Move code to save tokens for later | |
3456 | processing to spew.c. | |
3457 | ||
3458 | * spew.c: Rewrite everything in terms of token streams instead | |
3459 | of text. Move routines here from lex.c / input.c as | |
3460 | appropriate. GC-mark trees hanging off the pending inlines | |
3461 | chain. | |
3462 | ||
44835fdd MM |
3463 | 2000-09-06 Mark Mitchell <mark@codesourcery.com> |
3464 | ||
3465 | * NEWS: Mention that the named return value extension has been | |
3466 | deprecated. | |
3467 | * cp-tree.h (original_result_rtx): Define. | |
3468 | (TREE_REFERENCE_EXPR): Remove. | |
3469 | (DECL_VPARENT): Likewise. | |
3470 | (pushdecl_nonclass_level): Likewise. | |
3471 | (store_return_init): Likewise. | |
3472 | (reinit_lang_specific): Likewise. | |
3473 | (genrtl_named_return_value): Change prototype. | |
3474 | * decl.c (original_result_rtx): Remove. | |
3475 | (cp_finish_decl): Don't build DECL_STMTs for RESULT_DECLs. | |
3476 | Do not generate RTL for local variables here. | |
3477 | (store_return_init): Remove. | |
3478 | * semantics.c (genrtl_named_return_value): Simplify. Fold in | |
3479 | store_return_init. | |
3480 | (finish_named_return_value): Adjust accordingly. Warn that this | |
3481 | extension is deprecated. | |
3482 | (lang_expand_stmt): Adjust call to genrtl_named_return_value. | |
3483 | ||
d7c4edd0 NS |
3484 | 2000-09-06 Nathan Sidwell <nathan@codesourcery.com> |
3485 | ||
3486 | * pt.c (type_unification_real): Replace switch with if. | |
3487 | (unify): Tsubst non-type parms before comparing. | |
3488 | ||
46e2747c NS |
3489 | 2000-09-06 Nathan Sidwell <nathan@codesourcery.com> |
3490 | ||
3491 | * error.c (dump_typename): New function, broken out of ... | |
3492 | (dump_type): ... here. Use it. | |
3493 | * typeck.c (same_type_p): Use cp_tree_equal for TYPENAME_TYPE. | |
3494 | ||
c833d2be NS |
3495 | 2000-09-06 Nathan Sidwell <nathan@codesourcery.com> |
3496 | ||
3497 | * init.c (build_offset_ref): Deal with namespace scoped | |
3498 | TEMPLATE_ID_EXPRs. | |
3499 | ||
b1ce3eb2 NS |
3500 | 2000-09-06 Nathan Sidwell <nathan@codesourcery.com> |
3501 | ||
3502 | * class.c (resolve_address_of_overloaded_function): Add | |
3503 | explanation message. | |
3504 | * decl.c (define_case_label): Reformat explanation. | |
3505 | * decl2.c (finish_static_data_member_decl): Likewise. | |
3506 | (grokfield): Likewise. | |
3507 | * friend.c (do_friend): Likewise. | |
3508 | ||
11f53b6a ZW |
3509 | 2000-09-05 Zack Weinberg <zack@wolery.cumb.org> |
3510 | ||
3511 | * tree.c (walk_tree): Expose tail recursion. | |
3512 | (walk_stmt_tree): New function. | |
3513 | * cp-tree.h: Prototype walk_stmt_tree. | |
3514 | * semantics.c (prune_unused_decls): Operate on SCOPE_STMTs not | |
3515 | the BLOCKs directly. If a BLOCK has no variables after | |
3516 | pruning, discard it. | |
3517 | (finish_stmt_tree): Use walk_stmt_tree. No need to save and | |
3518 | restore the line number. | |
3519 | ||
ee94fce6 MM |
3520 | 2000-09-05 Mark Mitchell <mark@codesourcery.com> |
3521 | ||
3522 | * Makefile.in (CXX_TREE_H): Add dependency on HTAB_H. | |
3523 | (pt.o): Remove dependency on HTAB_H. | |
3524 | * cp-tree.h: Include hashtab.h. | |
3525 | (walk_tree): Change prototype. | |
3526 | (walk_tree_without_duplicates): New function. | |
3527 | * decl.c (check_default_argument): Use it. | |
3528 | * optimize.c (remap_decl): Adjust calls to walk_tree. | |
3529 | (copy_body): Likewise. | |
3530 | (expand_calls_inline): Likewise. | |
3531 | (calls_setjmp_p): Use walk_tree_without_duplicates. | |
3532 | * pt.c: Don't include hashtab.h. | |
3533 | (for_each_template_parm): Use walk_tree_without_duplicates. | |
3534 | * semantics.c (finish-stmt_tree): Likewise. | |
3535 | (expand_body): Likewise. | |
3536 | * tree.c (walk_tree): Add additional parameter. | |
3537 | (walk_tree_without_duplicates): New function. | |
3538 | (count_trees): Use it. | |
3539 | (verify_stmt_tree): Adjust call to walk_tree. | |
3540 | (find_tree): Use walk_tree_without_duplicates. | |
3541 | (no_linkage_check): Likewise. | |
3542 | (break_out_target_exprs): Adjust call to walk_tree. | |
3543 | (cp_unsave): Likewise. | |
3544 | ||
a1281f45 KL |
3545 | 2000-09-04 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> |
3546 | ||
3547 | * cp-tree.def (BOUND_TEMPLATE_TEMPLATE_PARM): New tree code. | |
3548 | (TEMPLATE_TEMPLATE_PARM): Adjust comment. | |
3549 | * cp-tree.h (TYPE_BINFO): Adjust comment. | |
3550 | (TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO): Likewise. | |
3551 | (TEMPLATE_TYPE_PARM_INDEX): Likewise. | |
3552 | (IS_AGGR_TYPE): Use BOUND_TEMPLATE_TEMPLATE_PARM instead. | |
3553 | (TYPE_TEMPLATE_INFO): Likewise. | |
3554 | (TEMPLATE_TEMPLATE_PARM_TEMPLATE_DECL): Likewise. | |
3555 | * class.c (push_nested_class): Likewise. | |
3556 | * decl.c (lookup_name_real): Likewise. | |
3557 | (grokdeclarator): Likewise. | |
3558 | (grok_op_properties): Likewise. | |
3559 | (xref_tag): Likewise. | |
3560 | (xref_basetypes): Likewise. | |
3561 | * decl2.c (constructor_name_full): Likewise. | |
3562 | (arg_assoc_template_arg): Add TEMPLATE_TEMPLATE_PARM case. | |
3563 | (arg_assoc_type): Use BOUND_TEMPLATE_TEMPLATE_PARM instead. | |
3564 | * error.c (dump_type): Split TEMPLATE_TEMPLATE_PARM case. | |
3565 | (dump_type_prefix): Add BOUND_TEMPLATE_TEMPLATE_PARM. | |
3566 | (dump_type_suffix): Likewise. | |
3567 | * init.c (is_aggr_type): Use BOUND_TEMPLATE_TEMPLATE_PARM | |
3568 | instead. | |
3569 | (get_aggr_from_typedef): Likewise. | |
3570 | * mangle.c (write_type): Split TEMPLATE_TEMPLATE_PARM case. | |
3571 | (write_expression): Add BOUND_TEMPLATE_TEMPLATE_PARM. | |
3572 | (write_template_parm): Likewise. | |
3573 | (write_template_template_parm): Check tree code instead of | |
3574 | using TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO. | |
0e5921e8 | 3575 | * method.c (build_overload_nested_name): Add |
a1281f45 KL |
3576 | BOUND_TEMPLATE_TEMPLATE_PARM. |
3577 | (process_overload_item): Split TEMPLATE_TEMPLATE_PARM case. | |
3578 | * parse.y (bad_parm): Add BOUND_TEMPLATE_TEMPLATE_PARM. | |
3579 | * pt.c (convert_template_argument): Check tree code instead of | |
3580 | using TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO. | |
3581 | (for_each_template_parm_r): Split TEMPLATE_TEMPLATE_PARM case. | |
3582 | (for_each_template_parm): Adjust comment. | |
3583 | (tsubst): Add BOUND_TEMPLATE_TEMPLATE_PARM. Reorganize. | |
3584 | (tsubst_copy): Add BOUND_TEMPLATE_TEMPLATE_PARM. | |
3585 | (unify): Add BOUND_TEMPLATE_TEMPLATE_PARM. Reorganize. Use | |
3586 | template_args_equal to compare template template parameter cases. | |
3587 | * ptree.c (print_lang_type): Add BOUND_TEMPLATE_TEMPLATE_PARM. | |
3588 | * search.c (lookup_field_1): Use BOUND_TEMPLATE_TEMPLATE_PARM | |
3589 | instead. | |
3590 | * tree.c (copy_template_template_parm): Decide whether to create | |
3591 | a TEMPLATE_TEMPLATE_PARM or BOUND_TEMPLATE_TEMPLATE_PARM node. | |
3592 | (walk_tree): Add BOUND_TEMPLATE_TEMPLATE_PARM. | |
3593 | (copy_tree_r): Likewise. | |
3594 | * typeck.c (comptypes): Likewise. Check tree code instead of | |
3595 | using TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO. | |
3596 | ||
c9672d45 ME |
3597 | 2000-09-04 Mark Elbrecht <snowball3@bigfoot.com> |
3598 | ||
3599 | * decl.c (finish_function): Move the code for handling functions | |
3600 | marked with the constructor and destructor attributes inside the | |
3601 | expand_p block. | |
3602 | ||
67804825 NS |
3603 | 2000-09-04 Nathan Sidwell <nathan@codesourcery.com> |
3604 | ||
3605 | * init.c (resolve_offset_ref): Deal with TEMPLATE_ID_EXPR. | |
3606 | ||
1bc0793e NS |
3607 | 2000-09-04 Nathan Sidwell <nathan@codesourcery.com> |
3608 | ||
3609 | * pt.c (lookup_template_class): Remove abort. | |
3610 | * tree.c (get_type_decl): Allow error_mark_node. | |
3611 | ||
3338663b NS |
3612 | 2000-09-04 Nathan Sidwell <nathan@codesourcery.com> |
3613 | ||
3614 | * decl2.c (arg_assoc): Deal with COMPONENT_REFs inside | |
3615 | TEMPLATE_ID_EXPRs. | |
3616 | ||
1b84dc37 MM |
3617 | 2000-09-03 Mark Mitchell <mark@codesourcery.com> |
3618 | ||
3619 | * operators.def (ALIGNOF_EXPR, MAX_EXPR, MIN_EXPR): Change | |
c9672d45 | 3620 | new ABI mangling. |
1b84dc37 | 3621 | |
9687f8f4 NS |
3622 | 2000-09-01 Nathan Sidwell <nathan@codesourcery.com> |
3623 | ||
3624 | * parse.y (named_class_head): Check for TYPENAME_TYPE. Simplify | |
c9672d45 | 3625 | union tag mismatch error reporting. |
9687f8f4 | 3626 | |
4f8025eb NS |
3627 | 2000-09-01 Nathan Sidwell <nathan@codesourcery.com> |
3628 | ||
c9672d45 | 3629 | * call.c (build_scoped_method_call): Check it is not a namespace. |
4f8025eb | 3630 | |
495d26d6 JM |
3631 | 2000-08-30 Jason Merrill <jason@redhat.com> |
3632 | ||
3633 | * cp-tree.h (LOCAL_CLASS_P): Use decl_function_context. | |
3634 | ||
3635 | * tree.c (bot_manip): Check TREE_CONSTANT rather than | |
3636 | !TREE_SIDE_EFFECTS. Call break_out_target_exprs and | |
3637 | build_target_expr_with_type for the non-AGGR_INIT_EXPR case. | |
3638 | ||
3639 | * decl.c (start_function): Always call make_function_rtl. | |
3640 | ||
7efcf466 ZW |
3641 | 2000-08-29 Zack Weinberg <zack@wolery.cumb.org> |
3642 | ||
495d26d6 | 3643 | * semantics.c (prune_unused_decls): New function. |
7efcf466 ZW |
3644 | (finish_stmt_tree): Call it via walk_tree. |
3645 | ||
63ad61ed ZW |
3646 | 2000-08-29 Zack Weinberg <zack@wolery.cumb.org> |
3647 | ||
3648 | * class.c (build_secondary_vtable): Constify a char *. | |
3649 | * decl.c (init_decl_processing): Initialize function_id_node, | |
3650 | pretty_function_id_node, and func_id_node. | |
3651 | * input.c (struct input_source): Constify 'str'. | |
3652 | (feed_input): Constify first argument. | |
3653 | * mangle.c (write_identifier): Constify argument. | |
3654 | * pt.c (mangle_class_name_for_template): Constify argument. | |
3655 | ||
4361b41d MM |
3656 | 2000-08-29 Mark Mitchell <mark@codesourcery.com> |
3657 | ||
3658 | * typeck.c (mark_addressable): Remove code that pokes around in | |
3659 | RTL. | |
3660 | ||
881c6935 JM |
3661 | 2000-08-28 Jason Merrill <jason@redhat.com> |
3662 | ||
3663 | * lex.c (file_name_nondirectory): Move to toplev.c. | |
3664 | ||
3665 | * cp-tree.h (LOCAL_CLASS_P): New macro. | |
3666 | * class.c (finish_struct_1): Use it. | |
3667 | ||
f0f33848 AS |
3668 | 2000-08-27 Alex Samuel <samuel@codesourcery.com> |
3669 | ||
3670 | * mangle.c (CLASSTYPE_TEMPLATE_ID_P): Remove unexplained voodoo. | |
3671 | (write_encoding): Pass another argument to write_name. | |
3672 | (write_name): Add ignore_local_scope parameter. Fix handling of | |
3673 | local names. | |
3674 | (write_nested_name): Use write_unqualified_name. | |
3675 | (write_prefix): Likewise. Skip out on FUNCTION_DECLs. | |
3676 | (write_template_prefix): Use write_unqualified_name. | |
3677 | (write_component): Remove. | |
3678 | (write_local_name): Add parameter. Use direct local entity to | |
3679 | discriminator calculation. | |
0e5921e8 | 3680 | (write_class_enum_type): Pass another argument to write_name. |
f0f33848 AS |
3681 | (write_template_template_arg): Likewise. |
3682 | (make_guard_variable): Likewise. | |
0e5921e8 | 3683 | |
94dfccd1 JM |
3684 | 2000-08-27 Jason Merrill <jason@redhat.com> |
3685 | ||
3686 | * decl.c (pushdecl): Matching decls for local externs are found in | |
3687 | the current level. Propagate linkage information from previous | |
3688 | declarations. | |
3689 | ||
14fdf4b6 GDR |
3690 | 2000-08-26 Gabriel Dos Reis <gdr@codesourcery.com> |
3691 | ||
3692 | * ir.texi (Expressions): Fix typo. | |
3693 | ||
b5232c64 GM |
3694 | 2000-08-25 Greg McGary <greg@mcgary.org> |
3695 | ||
3696 | * tree.c (init_tree): Use ARRAY_SIZE. | |
3697 | ||
22a4158c GDR |
3698 | 2000-08-25 Gabriel Dos Reis <gdr@codesourcery.com> |
3699 | ||
3700 | * error.c (cp_tree_printer): Rework. | |
3701 | ||
f22967f3 MM |
3702 | 2000-08-25 Mark Mitchell <mark@codesourcery.com> |
3703 | ||
a0c182fe MM |
3704 | * Make-lang.in (CXX_LIB2FUNCS): Remove cp-demangle.o and |
3705 | dyn-string.o. | |
3706 | (CXX_LIB2SRCS): Remove cp-demangle.c and dyn-string.c. | |
3707 | (cp-demangle.o): Remove target. | |
3708 | (dyn-string.o): Likewise. | |
3709 | ||
f22967f3 MM |
3710 | * decl.c (grokfndecl): Require that `main' return an `int'. |
3711 | * mangle.c (write_encoding): Don't mangle return types for | |
3712 | conversion functions. | |
3713 | ||
a1066c99 GDR |
3714 | 2000-08-25 Gabriel Dos Reis <gdr@codesourcery.com> |
3715 | ||
3716 | * error.c (tree_formatting_info): New data type. | |
3717 | (tree_being_formatted): New macro. | |
3718 | (tree_formatting_flags): Likewise. | |
3719 | (put_whitespace): Likewise. | |
3720 | (print_tree_identifier): Likewise. | |
3721 | (print_identifier): Likewise. | |
3722 | (cp_tree_printer, print_function_argument_list, print_declaration, | |
3723 | print_expression, print_function_declaration, | |
3724 | print_function_parameter, print_type, print_cv_qualifier): New | |
0e5921e8 | 3725 | functions. |
a1066c99 GDR |
3726 | (init_error): Initialize lang_printer. |
3727 | ||
3f2b640a JM |
3728 | 2000-08-24 Jason Merrill <jason@redhat.com> |
3729 | ||
3730 | * typeck.c (build_ptrmemfunc): Just reinterpret if there's no | |
3731 | adjustment necessary. | |
3732 | ||
7ec09bf7 GM |
3733 | 2000-08-24 Greg McGary <greg@mcgary.org> |
3734 | ||
3735 | * cp-tree.h (MAIN_NAME_P): Remove macro. | |
3736 | ||
2ab99c46 GDR |
3737 | 2000-08-24 Gabriel Dos Reis <gdr@codesourcery.com> |
3738 | ||
3739 | * error.c (print_instantiation_context): Don't forget to flush the | |
3740 | buffer. | |
3741 | ||
7def1251 JM |
3742 | 2000-08-23 Jason Merrill <jason@redhat.com> |
3743 | ||
3744 | * typeck.c (build_ptrmemfunc): Save the input pmf. | |
3745 | ||
3746 | * method.c (process_modifiers): Use same_type_p. | |
3747 | ||
94350948 MM |
3748 | 2000-08-23 Mark Mitchell <mark@codesourcery.com> |
3749 | ||
3750 | * cp-tree.h (DECL_CLONED_FUNCTION_P): Check DECL_LANG_SPECIFIC. | |
3751 | * mangle.c (write_function_type): Change prototype. | |
3752 | (write_encoding): Don't mangle return types for | |
3753 | constructors or destructors. | |
3754 | (write_type): Adjust call to write_function_type. | |
3755 | * pt.c (instantiate_template): Instantiate alternate entry points | |
3756 | when instantiating the main function. | |
0e5921e8 | 3757 | |
a64e7329 GDR |
3758 | 2000-08-23 Gabriel Dos Reis <gdr@codesourcery.com> |
3759 | ||
3760 | * error.c (cp_print_error_function): Don't use embedded '\n' in | |
0e5921e8 | 3761 | output_printf. |
a64e7329 | 3762 | |
a72462a4 GDR |
3763 | 2000-08-23 Gabriel Dos Reis <gdr@codesourcery.com> |
3764 | ||
3765 | * decl.c (init_decl_processing): Remove bogus initialization. | |
3766 | * error.c (lang_print_error_function): Restore here. | |
0e5921e8 ZW |
3767 | (init_error): Initialize print_error_function. |
3768 | ||
3add6264 TP |
3769 | 2000-08-22 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr> |
3770 | ||
3771 | * decl2.c (arg_assoc): Revert my 2000-08-11 change. | |
3772 | ||
cb753e49 GDR |
3773 | 2000-08-22 Gabriel Dos Reis <gdr@codesourcery.com> |
3774 | ||
3775 | * Makefile.in (error.o): Depends on diagnostic.h | |
3776 | ||
3777 | * cp-tree.h (problematic_instantiation_changed, | |
3778 | record_last_problematic_instantiation, current_instantiation, | |
3779 | print_instantiation_context): Declare. | |
3780 | (maybe_print_template_context): Remove. | |
3781 | ||
3782 | * decl.c (init_decl_processing): Set print_error_function to NULL. | |
3783 | (lang_print_error_function): Remove, since we're using a new | |
3784 | machinery. | |
3785 | ||
3786 | * error.c: #include diagnostic.h | |
3787 | (function_category): New function. | |
3788 | (cp_diagnostic_starter): Likewise. | |
3789 | (cp_diagnostic_finalizer): Likewise. | |
3790 | (cp_print_error_function): Likewise. | |
3791 | (maybe_print_instantiation_context): Likewise. | |
3792 | (print_instantiation_full_context): Likewise. | |
3793 | (print_instantiation_partial_context): Likewise. | |
3794 | (print_instantiation_context): Define. | |
3795 | (init_error): Initialize diagnostic pager and finalizer. | |
3796 | ||
3797 | * pt.c (problematic_instantiation_changed): Define. | |
3798 | (record_last_problematic_instantiation): Likewise. | |
3799 | (current_instantiation): Likewise. | |
3800 | (maybe_print_template_context): Remove. | |
3801 | (print_template_context): Likewise. | |
3802 | (current_tinst_level): Make static to reflect Brendan Kehoe's | |
3803 | change of 1995-04-13. | |
0e5921e8 ZW |
3804 | (push_tinst_level): Call print_instantiation_context. |
3805 | ||
05a3d06e | 3806 | 2000-08-21 Nix <nix@esperi.demon.co.uk> |
0e5921e8 | 3807 | |
05a3d06e N |
3808 | * lang-specs.h: Do not process -o or run the assembler if |
3809 | -fsyntax-only. | |
3810 | ||
93e2382f JM |
3811 | 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk> |
3812 | ||
3813 | * decl.c (flag_hosted, flag_noniso_default_format_attributes): New | |
3814 | variables. | |
3815 | * decl2.c (lang_decode_option): Disable gettext attributes for | |
3816 | -ansi. | |
3817 | ||
24805e80 GDR |
3818 | 2000-08-21 Gabriel Dos Reis <gdr@codesourcery.com> |
3819 | ||
3820 | * lex.c (lang_init_options): Default diagnostic message maximum | |
3821 | length to 80, when line-wrapping. | |
3822 | ||
b485e15b MM |
3823 | 2000-08-20 Mark Mitchell <mark@codesourcery.com> |
3824 | ||
3825 | * class.c (build_vtbl_initializer): Clear the entire | |
3826 | vtbl_init_data. Start keeping track of the functions for which we | |
3827 | have created vcall offsets here. | |
3828 | (dfs_build_vcall_offset_vtbl_entries): Remove. | |
3829 | (build_vcall_offset_vtbl_entries): Reimplement. | |
3830 | (add_vcall_offset_vtbl_entries_r): New function. | |
3831 | (add_vcall_offset_vtbl_entries_1): Likewise. Tweak logic for | |
3832 | computing when vcall offsets are necessary. | |
3833 | ||
2ae7bada NS |
3834 | 2000-08-18 Nathan Sidwell <nathan@codesourcery.com> |
3835 | ||
3836 | * decl.c (member_function_or_else): Use cp_error ... %T. | |
3837 | (grokdeclarator): Likewise. | |
3838 | (start_method): Likewise. | |
0e5921e8 | 3839 | * friend.c (make_friend_class): Use cp_pedwarn ... %T. |
2ae7bada | 3840 | |
7a8b1375 NS |
3841 | 2000-08-18 Nathan Sidwell <nathan@codesourcery.com> |
3842 | ||
3843 | * decl2.c (grokfield): Set CLASSTYPE_GOT_SEMICOLON on class | |
0e5921e8 | 3844 | TYPE_DECLs. |
7a8b1375 | 3845 | |
19420d00 NS |
3846 | 2000-08-18 Nathan Sidwell <nathan@codesourcery.com> |
3847 | ||
3848 | * cp-tree.h (PTRMEM_OK_P): New macro. | |
3849 | (itf_ptrmem_ok): New enumeration value. | |
3850 | * class.c (resolve_address_of_overloaded_function): Add PTRMEM | |
3851 | argument. Diagnose implicit pointer to member. | |
3852 | (instantiate_type): Don't diagnose implicit pointer to member | |
3853 | here. Pass itf_ptrmem_ok if ok. Adjust calls to | |
3854 | resolve_address_of_overloaded_function. | |
3855 | * init.c (build_offset_ref): Set PTRMEM_OK_P. | |
3856 | (resolve_offset_ref): Don't diagnose implicit pointer to member here. | |
3857 | * semantics.c (finish_parenthesized_expr): Clear OFFSET_REFs here. | |
3858 | * typeck.c (build_x_unary_op): Calculate PTRMEM_OK_P. | |
3859 | (build_unary_op): Deal with single non-static member in | |
3860 | microsoft-land. | |
3861 | ||
66081283 NS |
3862 | 2000-08-18 Nathan Sidwell <nathan@codesourcery.com> |
3863 | ||
3864 | * decl2.c (arg_assoc_type): Cope with TYPENAME_TYPE. | |
3865 | ||
fa40aa12 NS |
3866 | 2000-08-18 Nathan Sidwell <nathan@codesourcery.com> |
3867 | ||
3868 | * cp-tree.h (enum_name_string): Remove prototype. | |
3869 | (report_case_error): Remove prototype. | |
3870 | * cp/typeck2.c (enum_name_string): Remove. | |
3871 | (report_case_error): Remove. | |
3872 | * error.c (dump_expr): Deal with enum values directly. | |
3873 | Correctly negate integer constant. | |
3874 | ||
d13b34e9 NS |
3875 | 2000-08-17 Nathan Sidwell <nathan@codesourcery.com> |
3876 | ||
3877 | * inc/cxxabi.h (__cxa_vec_new2, __cxa_vec_new3): Declare. | |
3878 | (__cxa_vec_delete2, __cxa_vec_delete3): Declare. | |
3879 | * vec.cc (__cxa_vec_new2, __cxa_vec_new3): Implement. | |
3880 | (__cxa_vec_delete2, __cxa_vec_delete3): Implement. | |
3881 | (__cxa_vec_new): Use __cxa_vec_new2. | |
3882 | (__cxa_vec_delete): Use __cxa_vec_delete2. | |
3883 | ||
2f1b80af NS |
3884 | 2000-08-17 Nathan Sidwell <nathan@codesourcery.com> |
3885 | ||
3886 | * vec.cc (__cxa_vec_new): Set "C" linkage. | |
3887 | (__cxa_vec_ctor): Likewise. | |
3888 | (__cxa_vec_cctor): Likewise. | |
3889 | (__cxa_vec_dtor): Likewise. | |
3890 | (__cxa_vec_delete): Likewise. | |
3891 | * inc/cxxabi.h (__cxa_vec_new): Set "C" linkage. | |
3892 | (__cxa_vec_ctor): Likewise. | |
3893 | (__cxa_vec_cctor): Likewise. | |
3894 | (__cxa_vec_dtor): Likewise. | |
3895 | (__cxa_vec_delete): Likewise. | |
3896 | ||
105d8e1f NS |
3897 | 2000-08-17 Nathan Sidwell <nathan@codesourcery.com> |
3898 | ||
3899 | * class.c (instantiate_type): Reinstate local variable | |
3900 | deleted in previous change. | |
0e5921e8 | 3901 | |
f1819d9a NS |
3902 | * cvt.c (cp_convert_to_pointer): Pass itf_complain, not |
3903 | itf_no_attributes. | |
105d8e1f | 3904 | |
5e76004e NS |
3905 | 2000-08-17 Nathan Sidwell <nathan@codesourcery.com> |
3906 | ||
3907 | * cp-tree.h (instantiate_type_flags): New enumeration. | |
3908 | (instantiate_type): Change parameter. | |
3909 | * class.c (instantiate_type): Adjust prototype. Adjust. | |
3910 | * call.c (standard_conversion): Adjust instantiate_type call. | |
3911 | (reference_binding): Likewise. | |
3912 | (build_op_delete_call): Likewise. | |
3913 | (convert_like_real): Likewise. | |
3914 | * cvt.c (cp_convert_to_pointer): Likewise. | |
3915 | (convert_to_reference): Likewise. | |
3916 | * pt.c (convert_nontype_argument): Likewise. | |
3917 | * typeck.c (build_binary_op): Likewise. | |
3918 | (build_ptrmemfunc): Likewise. | |
3919 | (convert_for_assignment): Likewise. | |
3920 | ||
4b054b80 NS |
3921 | 2000-08-17 Nathan Sidwell <nathan@codesourcery.com> |
3922 | ||
3923 | * cp-tree.h (CPTR_AGGR_TAG): New global tree node. | |
3924 | (current_aggr): Define. | |
3925 | * decl.c (grokdeclarator): Make sure a friend class is an | |
3926 | elaborated type specifier. | |
3927 | * parse.y (current_aggr): Remove static definition. | |
3928 | (cp_parse_init): Adjust. | |
3929 | (structsp): Clear and restore current_aggr. | |
3930 | (component_decl_list): Clear current_aggr. | |
0e5921e8 | 3931 | |
4b054b80 NS |
3932 | * error.c (dump_type, case TYPENAME_TYPE): Don't emit the |
3933 | aggregate tag on the typename's context. | |
0e5921e8 | 3934 | |
321cba97 NS |
3935 | * pt.c (tsubst_friend_class): Return error_mark_node, if |
3936 | parms becomes NULL. | |
3937 | (instantiate_class_template): Ignore error_mark_node friend types. | |
4b054b80 | 3938 | |
08aead78 NS |
3939 | 2000-08-14 Nathan Sidwell <nathan@codesourcery.com> |
3940 | ||
3941 | * cvt.c (warn_ref_binding): New static function, broken out of ... | |
0e5921e8 | 3942 | (convert_to_reference): ... here. Use it. |
08aead78 | 3943 | |
fa1f3ebc KL |
3944 | 2000-08-11 Kriang Lerdsuwanakij <lerdsuwa@scf-fs.usc.edu> |
3945 | ||
3946 | * parse.y (template_arg): Add rule for template qualified with | |
3947 | global scope. | |
3948 | ||
9845b52b TP |
3949 | 2000-08-11 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr> |
3950 | ||
3951 | * decl2.c (add_function): Reorganize. | |
3952 | (arg_assoc): Do not consider function template decls. | |
3953 | ||
e69c8072 JM |
3954 | 2000-08-11 Jason Merrill <jason@redhat.com> |
3955 | ||
3956 | * decl.c (lookup_name_real): Don't forget the TYPENAME_TYPE we're | |
3957 | looking inside. | |
3958 | ||
5c1e5476 NS |
3959 | 2000-08-11 Nathan Sidwell <nathan@codesourcery.com> |
3960 | ||
3961 | * cp-tree.h (resolve_scope_to_name): Remove unused prototype. | |
3962 | (lookup_nested_tag): Likewise. | |
0e5921e8 | 3963 | |
5c1e5476 NS |
3964 | * decl2.c (grokfield): Fix comment to reflect many types of _DECLs |
3965 | can be produced. | |
3966 | ||
5426aa7f NS |
3967 | 2000-08-11 Nathan Sidwell <nathan@codesourcery.com> |
3968 | ||
3969 | * parse.y (named_complex_class_head_sans_basetype): Remove | |
3970 | always true if. | |
3971 | ||
fd037e0d NS |
3972 | 2000-08-11 Nathan Sidwell <nathan@codesourcery.com> |
3973 | ||
3974 | * decl2.c (build_expr_from_tree, case METHOD_CALL_EXPR): Build | |
3975 | explicit TEMPLATE_ID_EXPR args. | |
3976 | (build_expr_from_tree, case CALL_EXPR): Likewise. | |
3977 | ||
73ae5c34 NS |
3978 | 2000-08-11 Nathan Sidwell <nathan@codesourcery.com> |
3979 | ||
3980 | * decl.c (check_tag_decl): Diagnose typename's which don't | |
3981 | declare anything. | |
3982 | ||
aa54df09 NS |
3983 | 2000-08-10 Nathan Sidwell <nathan@codesourcery.com> |
3984 | ||
3985 | * init.c (build_aggr_init): Reject bogus array initializers | |
3986 | early. | |
3987 | ||
7e8dad18 NS |
3988 | 2000-08-09 Nathan Sidwell <nathan@codesourcery.com> |
3989 | ||
3990 | * rtti.c (build_dynamic_cast_1): Set "C" linkage for new abi | |
3991 | runtime. | |
3992 | * cp/tinfo.cc (__dynamic_cast): Likewise. | |
0e5921e8 | 3993 | * cp/inc/cxxabi.h (__dynamic_cast): Likewise. |
7e8dad18 | 3994 | |
0f586b9b NS |
3995 | 2000-08-09 Nathan Sidwell <nathan@codesourcery.com> |
3996 | ||
3997 | * cvt.c (convert_to_pointer_force): Fix error message when | |
0e5921e8 | 3998 | attempting to cast from ambiguous base. |
0f586b9b | 3999 | |
08e72a19 JM |
4000 | 2000-08-08 Jason Merrill <jason@redhat.com> |
4001 | ||
4002 | * pt.c (tsubst_aggr_type): Bail if creating the argvec fails. | |
4003 | (tsubst_template_arg_vector): Likewise. | |
4004 | ||
4005 | * decl2.c (build_anon_union_vars): Choose the largest field; don't | |
4006 | assume that one will be as large as the union. | |
4007 | ||
0811ea8f KH |
4008 | 2000-08-07 Kazu Hirata <kazu@hxi.com> |
4009 | ||
4010 | * cp-tree.h (CLASSTYPE_HAS_PRIMARY_BASE_P): Fix a comment typo. | |
4011 | * decl.c (pop_labels): Likewise. | |
4012 | ||
f9fcf62b JO |
4013 | 2000-08-04 Jeffrey Oldham <oldham@codesourcery.com> |
4014 | ||
4015 | * inc/cxxabi.h (__pbase_type_info): Changed member names to match | |
4016 | specifications. | |
4017 | (__pointer_to_member_type_info): Likewise. | |
4018 | (__base_class_info): Likewise. | |
4019 | (__class_type_info): Likewise. | |
4020 | (__si_class_type_info): Likewise. | |
4021 | (__vmi_class_type_info): Likewise. | |
4022 | * tinfo.cc (__si_class_type_info::__do_find_public_src): | |
4023 | Changed member names to match specifications. | |
4024 | (__vmi_class_type_info::__do_find_public_src): Likewise. | |
4025 | (__si_class_type_info::__do_dyncast): Likewise. | |
4026 | (__vmi_class_type_info::__do_dyncast): Likewise. | |
4027 | (__si_class_type_info::__do_upcast): Likewise. | |
4028 | (__vmi_class_type_info::__do_upcast): Likewise. | |
4029 | * tinfo2.cc (__pbase_type_info::__do_catch): Likewise. | |
4030 | (__pbase_type_info::__pointer_catch): Likewise. | |
4031 | (__pointer_type_info::__pointer_catch): Likewise. | |
4032 | (__pointer_to_member_type_info::__pointer_catch): Likewise. | |
4033 | ||
a36556a8 ZW |
4034 | 2000-08-04 Zack Weinberg <zack@wolery.cumb.org> |
4035 | ||
0e5921e8 ZW |
4036 | * Make-lang.in (cc1plus): Depend on $(BACKEND), not stamp-objlist. |
4037 | * Makefile.in: Add C_OBJS, BACKEND; delete OBJS, OBJDEPS. | |
4038 | (cc1plus): Link with $(BACKEND) and $(C_OBJS). | |
a36556a8 | 4039 | |
452a394b MM |
4040 | 2000-08-04 Mark Mitchell <mark@codesourcery.com> |
4041 | ||
4042 | * cp-tree.h (add_method): Change prototype. | |
4043 | * class.c (add_method): Remove FIELDS parameter. Add ERROR_P. | |
4044 | Don't double the size of the method vector in the error case. | |
4045 | (handle_using_decl): Adjust call to add_method. | |
4046 | (add_implicitly_declared_members): Likewise. | |
4047 | (clone_function_decl): Likewise. | |
4048 | * decl2.c (check_classfn): Likewise. | |
4049 | * semantics.c (finish_member_declaration): Likewise. | |
0e5921e8 | 4050 | |
b8458e3e JM |
4051 | 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk> |
4052 | ||
4053 | * decl.c (flag_isoc94): New variable. | |
4054 | ||
a1bcc528 JM |
4055 | 2000-08-02 Jason Merrill <jason@redhat.com> |
4056 | ||
4057 | * pt.c (do_type_instantiation): Add complain parm; don't complain | |
4058 | if called recursively. | |
4059 | * cp-tree.h, parse.y: Adjust. | |
4060 | ||
50e60bc3 ZW |
4061 | 2000-08-02 Zack Weinberg <zack@wolery.cumb.org> |
4062 | ||
eae51189 ZW |
4063 | * decl2.c: Silently ignore -Wstrict-prototypes; warn about |
4064 | -Wno-strict-prototypes. | |
4065 | ||
37620334 ZW |
4066 | * g++spec.c: Adjust type of second argument to |
4067 | lang_specific_driver, and update code as necessary. | |
4068 | ||
50e60bc3 ZW |
4069 | * cp-tree.h: Don't prototype min_precision here. |
4070 | (my_friendly_assert): Cast expression to void. | |
4071 | * semantics.c (do_poplevel): Initialize scope_stmts. | |
4072 | ||
3f954fc3 MM |
4073 | 2000-08-02 Mark Mitchell <mark@codesourcery.com> |
4074 | ||
4075 | * cp-tree.h (DECL_NEEDED_P): Tweak. | |
4076 | ||
ab4fa7ed JM |
4077 | 2000-07-28 Jason Merrill <jason@redhat.com> |
4078 | ||
4079 | * lang-specs.h: Use %i in rule for .ii files. | |
4080 | ||
4871239e ZW |
4081 | 2000-07-31 Zack Weinberg <zack@wolery.cumb.org> |
4082 | ||
4083 | * lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0. | |
4084 | ||
911a71a7 MM |
4085 | 2000-07-30 Mark Mitchell <mark@codesourcery.com> |
4086 | ||
4087 | Allow indirect primary bases. | |
4088 | * cp-tree.h (struct lang_type): Remove vfield_parent. Add | |
4089 | primary_base. | |
4090 | (CLASSTYPE_VFIELD_PARENT): Remove. | |
4091 | (CLASSTYPE_PRIMARY_BINFO): Reimplement. | |
4092 | (BINFO_PRIMARY_BINFO): Remove. | |
4093 | (CLASSTYPE_HAS_PRIMARY_BASE_P): Reimplement. | |
4094 | (BINFO_VBASE_PRIMARY_P): Likewise. | |
4095 | (BINFO_PRIMARY_BASE_OF): New macro. | |
4096 | (BINFO_INDIRECT_PRIMARY_P): Likewise. | |
4097 | (get_primary_binfo): New function. | |
4098 | * decl.c (lang_mark_tree): Make lang_type::primary_base. | |
4099 | * class.c (vcall_offset_data_s): Rename to ... | |
4100 | (vtbl_init_data_s): ... this. Rename primary_p to primary_vtbl_p, | |
4101 | and add ctor_vtbl_p. | |
4102 | (get_derived_offset): Use get_primary_binfo. | |
4103 | (dfs_mark_primary_bases): Adjust handling of virtual primary | |
4104 | bases. | |
4105 | (mark_primary_bases): Likewise. | |
4106 | (set_primary_base): Take a binfo, not an integer, as a | |
4107 | representation of the primary base. | |
4108 | (indirect_primary_base_p): Remove. | |
4109 | (determine_primary_base): Adjust for indirect primary bases. | |
4110 | (dfs_find_final_overrider): Fix typo in coment. | |
4111 | (update_vtable_entry_for_fn): Use get_primary_binfo. | |
4112 | (layout_nonempty_base_or_field): Tweak. | |
4113 | (build_base_fields): Adjust for new primary base semantics. | |
4114 | (dfs_propagate_binfo_offsets): Remove. | |
4115 | (propagate_binfo_offsets): Rewrite. | |
4116 | (dfs_set_offset_for_shared_vbases): Remove. | |
4117 | (layout_virtual_bases): Don't use it. | |
4118 | (layout_class_type): Set CLASSTYPE_SIZE correctly under the new | |
4119 | ABI. | |
4120 | (finish_struct_1): Set CLASSTYPE_PRIMARY_BINFO, not | |
4121 | CLASSTYPE_VFIELD_PARENT. | |
4122 | (dfs_get_primary_binfo): New function. | |
4123 | (get_primary_binfo): Likewise. | |
4124 | (dump_class_hierarchy_r): Tweak printing of primary bases. | |
4125 | (build_vtbl_initializer): Fix typo in comments. Use | |
4126 | vtbl_init_data. | |
4127 | (build_vcall_and_vbase_vtbl_entries): Likewise. | |
4128 | (build_vbaes_offset_vtbl_entries): Likewise. | |
4129 | (dfs_build_vcall_offset_vtbl_entries): Adjust setting of | |
4130 | BV_VCALL_INDEX to handle indirect primary bases. | |
4131 | (build_vcall_offset_vtbl_entries): Use vtbl_init_data. | |
4132 | (build_rtti_vtbl_entries): Likewise. | |
4133 | * search.c (get_shared_vbase_if_not_primary): Tweak. | |
4134 | (find_vbase_instance): Likewise. | |
4135 | (binfo_for_vtable): Simplify. | |
4136 | * tree.c (unshare_base_binfos): Clear BINFO_PRIMARY_BASE_OF. | |
4137 | (make_binfo): Make it have 11 entries. | |
0e5921e8 | 4138 | |
722bed0f AS |
4139 | 2000-07-30 Alex Samuel <samuel@codesourcery.com> |
4140 | ||
4141 | * mangle.c (DECL_TEMPLATE_ID_P): Remove. | |
4142 | (CLASSTYEP_TEMPLATE_ID_P): Check template info, and context when | |
4143 | ascertaining primaryness. | |
4144 | (G): Remove template_args. | |
4145 | (decl_is_template_id): New function. | |
4146 | (write_encoding): Use decl_is_template_id. | |
4147 | (write_name): Likewise. Handle type_decls. Get main variant of | |
4148 | type decls. | |
4149 | (write_nested_name): Likewise. | |
4150 | (write_prefix): Likewise. | |
4151 | (write_template_prefix): Likewise. | |
4152 | (write_special_name_constructor): Remove defunct production from | |
4153 | comment. | |
4154 | (write_bare_function_type): Remove comment about absent parameter. | |
4155 | (write_template_template_arg): Add missing grammar production to | |
4156 | comment. | |
4157 | ||
9076e292 JM |
4158 | 2000-07-27 Jason Merrill <jason@redhat.com> |
4159 | ||
4160 | * decl.c (duplicate_decls): If common_type produces a non-typedef | |
4161 | type for a typedef, just use the old type. | |
4162 | ||
b2244c65 MM |
4163 | 2000-07-27 Mark Mitchell <mark@codesourcery.com> |
4164 | ||
4165 | * cp-tree.h (function_depth): Declare. | |
4166 | (verify_stmt_tree): Likewise. | |
4167 | (find_tree): Likewise. | |
4168 | * decl.c (function_depth): Give it external linkage. | |
4169 | * optimize.c (optimize_function): Increment and decrement it. | |
4170 | * tree.c (verify_stmt_tree_r): New function. | |
4171 | (verify_stmt_tree): Likewise. | |
4172 | (find_tree_r): Likewise. | |
4173 | (find_tree): Likewise. | |
4174 | ||
62e3bf54 JM |
4175 | 2000-07-27 Jason Merrill <jason@redhat.com> |
4176 | ||
9076e292 JM |
4177 | * pt.c (for_each_template_parm_r, case RECORD_TYPE): Use |
4178 | TYPE_PTRMEMFUNC_P. | |
4179 | * cp-tree.h (TYPE_TEMPLATE_INFO): Check for TYPE_LANG_SPECIFIC. | |
62e3bf54 | 4180 | |
5a728aca MM |
4181 | 2000-07-26 Mark Mitchell <mark@codesourcery.com> |
4182 | ||
4183 | * decl.c (start_cleanup_fn): Mark the function as `inline'. | |
4184 | * decl2.c (get_guard): Call cp_finish_decl, not | |
4185 | rest_of_decl_compilation, for local guards. | |
4186 | * lex.c (do_identifier): Remove unused variable. | |
4187 | ||
6a1fa5f9 ME |
4188 | Wed Jul 26 15:05:51 CEST 2000 Marc Espie <espie@cvs.openbsd.org> |
4189 | ||
4190 | * parse.y: Add missing ';'. | |
4191 | ||
0c10a805 MM |
4192 | 2000-07-26 Mark Mitchell <mark@codesourcery.com> |
4193 | ||
4194 | * parse.y (empty_parms): Use `()', not `(...)', when in the scope | |
4195 | of `extern "C++"'. | |
4196 | ||
8b27e9ef NS |
4197 | 2000-07-25 Nathan Sidwell <nathan@codesourcery.com> |
4198 | ||
4199 | Kill strict_prototype. Backwards compatibility only for | |
4200 | non NO_IMPLICIT_EXTERN_C systems. | |
4201 | * cp-tree.h (flag_strict_prototype): Remove. | |
4202 | (strict_prototype): Remove. | |
4203 | (strict_prototypes_lang_c, strict_prototypes_lang_cplusplus): Remove. | |
4204 | * decl.c (maybe_push_to_top_level): Adjust. | |
4205 | (pop_from_top_level): Adjust. | |
4206 | (decls_match): Only allow sloppy parm matching for ancient | |
4207 | system headers. | |
4208 | (init_decl_processing): Adjust. | |
4209 | (grokdeclarator): Adjust. | |
4210 | * decl2.c (flag_strict_prototype): Remove. | |
4211 | (strict_prototype): Remove. | |
4212 | (strict_prototypes_lang_c, strict_prototypes_lang_cplusplus): Remove. | |
4213 | (lang_f_options): Remove "strict-prototype". | |
4214 | (unsupported-options): Add "strict-prototype". | |
4215 | * lex.c (do_identifier): Adjust. | |
4216 | (do_scoped_id): Adjust. | |
4217 | * parse.y (empty_parms): Adjust. | |
4218 | * class.c (push_lang_context): Adjust. | |
4219 | (pop_lang_context): Adjust. | |
4220 | * typeck.c (comp_target_parms): Adjust. | |
4221 | ||
c3783399 NS |
4222 | 2000-07-25 Nathan Sidwell <nathan@codesourcery.com> |
4223 | ||
4224 | * decl.c (poplevel): Deal with anonymous variables at for scope. | |
4225 | (maybe_inject_for_scope_var): Likewise. | |
4226 | ||
a7023245 ZW |
4227 | 2000-07-25 Zack Weinberg <zack@wolery.cumb.org> |
4228 | ||
4229 | * decl.c: Remove all signal handling code, now done in toplev.c. | |
4230 | ||
95ee998c MM |
4231 | 2000-07-23 Mark Mitchell <mark@codesourcery.com> |
4232 | ||
4233 | * decl.c (make_rtl_for_nonlocal_decl): Rework. | |
4234 | ||
4235 | * pt.c (lookup_template_class): Ensure that TYPE_CONTEXT is set | |
4236 | correctly. | |
4237 | ||
1b493b81 ZW |
4238 | 2000-07-20 Zack Weinberg <zack@wolery.cumb.org> |
4239 | ||
4240 | * cp-tree.h: Use __FUNCTION__ not __PRETTY_FUNCTION__. | |
4241 | Define my_friendly_assert and my_friendly_abort as macros | |
4242 | which may call friendly_abort. Prototype friendly abort, not | |
4243 | my_friendly_abort or my_friendly_assert. | |
4244 | * decl.c (signal_catch): Report the signal caught in the error | |
4245 | message. Call fatal directly. | |
4246 | * typeck2.c (ack, my_friendly_assert): Delete. | |
4247 | (my_friendly_abort): Rename to friendly_abort. Expect file, | |
4248 | line, and function parameters. Report the abort code, then | |
4249 | call fancy_abort. Do not mask an abort if errors have | |
4250 | already occurred. | |
4251 | ||
a306451c NS |
4252 | 2000-07-18 Nathan Sidwell <nathan@codesourcery.com> |
4253 | ||
4254 | * typeck.c (comp_target_parms): Remove obsolete parameter. | |
4255 | (comp_target_types): Adjust. | |
4256 | ||
f49fad00 JM |
4257 | 2000-07-17 Jason Merrill <jason@redhat.com> |
4258 | ||
4259 | * typeck.c (mark_addressable): Never set TREE_USED. | |
4260 | * call.c (build_call): Don't abort on calls to library functions | |
4261 | that have been declared normally. | |
4262 | ||
4263 | * typeck.c (build_binary_op): Fix grammar in warning. | |
4264 | ||
4265 | * exception.cc (__eh_free): Fix prototype. | |
4266 | ||
4267 | * decl2.c (finish_decl_parsing): Handle TEMPLATE_ID_EXPR. | |
4268 | ||
0e5921e8 | 4269 | * decl.c (pushdecl): Handle seeing an OVERLOAD in |
f49fad00 JM |
4270 | IDENTIFIER_NAMESPACE_VALUE. |
4271 | ||
69690d98 MM |
4272 | 2000-07-16 Mark Mitchell <mark@codesourcery.com> |
4273 | ||
4274 | * cp-tree.h (THUNK_VCALL_OFFSET): Update documentation. | |
4275 | * method.c (use_thunk): Correct handling of vcall offsets. | |
4276 | ||
bfbbc080 ZW |
4277 | 2000-07-14 Zack Weinberg <zack@wolery.cumb.org> |
4278 | ||
4279 | * .cvsignore: parse.h and parse.c have no cp- prefix. | |
4280 | ||
83a90717 MM |
4281 | 2000-07-13 Mark Mitchell <mark@codesourcery.com> |
4282 | ||
4283 | * .cvsignore: New file. | |
4284 | ||
ea414c97 ZW |
4285 | 2000-07-13 Zack Weinberg <zack@wolery.cumb.org> |
4286 | ||
4287 | * lang-specs.h: Use the new named specs. Remove unnecessary braces. | |
4288 | ||
792abd35 MM |
4289 | 2000-07-12 Mark Mitchell <mark@codesourcery.com> |
4290 | ||
4291 | * Makefile.in ($(PARSE_H)): Depend directly on parse.y. | |
4292 | * parse.c: Remove. | |
4293 | * parse.h: Likewise. | |
4294 | ||
72a50ab0 MM |
4295 | 2000-07-11 Mark Mitchell <mark@codesourcery.com> |
4296 | ||
4297 | * class.c (layout_class_type): Add pointers to virtual bases after | |
4298 | base classes under the old ABI. | |
4299 | ||
0dfdeca6 BC |
4300 | 2000-07-10 Benjamin Chelf <chelf@codesourcery.com> |
4301 | ||
4302 | * semantics.c (finish_for_stmt): Remove call to emit_line_note. | |
4303 | (finish_continue_stmt): Likewise. | |
4304 | (begin_for_stmt): Remove call to note_level_for_for. | |
4305 | (finish_goto_stmt): Change call from build_min_nt | |
4306 | to build_stmt. | |
4307 | (finish_expr_stmt): Likewise. | |
4308 | (begin_if_stmt): Likewise. | |
4309 | (begin_while_stmt): Likewise. | |
4310 | (finish_while_stmt): Likewise. | |
4311 | (finish_return_stmt): Likewise. | |
4312 | (begin_for_stmt): Likewise. | |
4313 | (finish_for_stmt): Likewise. | |
4314 | (finish_break_stmt): Likewise. | |
4315 | (begin_switch_stmt): Likewise. | |
4316 | (finish_case_label): Likewise. | |
4317 | (genrtl_try_block): Likewise. | |
4318 | (begin_try_block): Likewise. | |
4319 | (begin_handler): Likewise. | |
4320 | (begin_compound_stmt): Likewise. | |
4321 | (finish_asm_stmt): Likewise. | |
4322 | (finish_label_stmt): Likewise. | |
4323 | (add_decl_stmt): Likewise. | |
4324 | (finish_subobject): Likewise. | |
4325 | (finish_decl_cleanup): Likewise. | |
4326 | (finish_named_return_value): Likewise. | |
4327 | (setup_vtbl_ptr): Likewise. | |
4328 | (add_scope_stmt): Likewise. | |
4329 | * decl.c (finish_constructor_body): Likewise. | |
4330 | (finish_destructor_body): Likewise. | |
4331 | * optimize.c (copy_body_r): Likewise. | |
4332 | (initialize_inlined_parameters): Likewise. | |
4333 | (declare_return_variable): Likewise. | |
4334 | (expand_call_inline): Likewise. | |
0e5921e8 | 4335 | |
f12eef58 JJ |
4336 | 2000-07-10 Jakub Jelinek <jakub@redhat.com> |
4337 | ||
4338 | * semantics.c (expand_body): Sync interface information | |
4339 | at the end of function body expansion. | |
4340 | ||
2bb5d995 JM |
4341 | 2000-07-09 Jason Merrill <jason@redhat.com> |
4342 | ||
4343 | * init.c (build_new_1): Bail early if the call to new fails. | |
4344 | ||
0e5921e8 | 4345 | * decl.c (compute_array_index_type): Check specifically for |
2bb5d995 JM |
4346 | an INTEGER_CST, not just TREE_CONSTANT. |
4347 | ||
0e5921e8 | 4348 | * decl.c (duplicate_decls): Don't call duplicate_decls on |
2bb5d995 JM |
4349 | the DECL_TEMPLATE_RESULT. |
4350 | (decls_match): Return 0 if the DECL_TEMPLATE_RESULTs have different | |
4351 | codes. | |
4352 | ||
4353 | * error.c (dump_template_bindings): Don't crash if we had an | |
4354 | invalid argument list. | |
4355 | ||
4356 | * typeck.c (c_expand_start_case): Do narrowing here. | |
4357 | * semantics.c (finish_switch_cond): Not here. | |
4358 | ||
4359 | 2000-07-09 Hidvegi Zoli <hzoli@austin.ibm.com> | |
4360 | ||
4361 | * parse.y (asm_clobbers): Do string concatenation. | |
4362 | ||
089acd57 MM |
4363 | 2000-07-09 Mark Mitchell <mark@codesourcery.com> |
4364 | ||
4365 | * decl.c (pushtag): Don't put local classes in template functions | |
4366 | on the local_classes list. | |
4367 | ||
4368 | 2000-07-04 Scott Snyder <snyder@fnal.gov> | |
4369 | ||
4370 | * decl2.c (get_guard): Add missing return for old ABI local | |
4371 | variable case. | |
4372 | ||
7b019c19 MM |
4373 | 2000-07-09 Mark Mitchell <mark@codesourcery.com> |
4374 | ||
4375 | * cp-tree.h (char_type_p): New function. | |
4376 | * decl.c (init_decl_processing): Don't initialize | |
4377 | signed_wchar_type_node or unsigned_wchar_type_node. | |
4378 | (complete_array_type): Handle brace-enclosed string-constants. | |
4379 | * rtti.c (emit_support_tinfos): Remove #if 0'd code. | |
4380 | * tree.c (char_type_p): New function. | |
4381 | * typeck2.c (digest_init): Use char_type_p. | |
4382 | ||
a5f1c5f8 NS |
4383 | 2000-07-06 Nathan Sidwell <nathan@codesourcery.com> |
4384 | ||
4385 | * pt.c (tsubst): Don't layout type, if it's error_mark. | |
4386 | ||
84e5ca0f NS |
4387 | 2000-07-06 Nathan Sidwell <nathan@codesourcery.com> |
4388 | ||
4389 | * pt.c (instantiate_pending_templates): Reset template level. | |
4390 | ||
ab785305 JM |
4391 | 2000-07-05 Jason Merrill <jason@redhat.com> |
4392 | ||
4393 | * call.c (joust): Don't complain about `operator char *()' beating | |
4394 | `operator const char *() const'. | |
4395 | ||
90418208 JM |
4396 | 2000-07-04 scott snyder <snyder@fnal.gov> |
4397 | Jason Merrill <jason@redhat.com> | |
4398 | ||
0e5921e8 | 4399 | * repo.c (repo_get_id): Handle the case where a class with virtual |
90418208 JM |
4400 | bases has a null TYPE_BINFO_VTABLE. |
4401 | ||
4402 | 2000-07-04 Kevin Buhr <buhr@stat.wisc.edu> | |
4403 | Jason Merrill <jason@redhat.com> | |
4404 | ||
4405 | * parse.y (member_init): Just pass in the type. | |
4406 | * init.c (expand_member_init): Handle getting a type. | |
4407 | ||
4408 |