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