]>
Commit | Line | Data |
---|---|---|
faae18ab MS |
1 | Sun Apr 2 23:43:51 1995 Jason Merrill <jason@phydeaux.cygnus.com> |
2 | ||
3 | * search.c (compute_access): Don't try to do access control on | |
4 | nested types. | |
5 | ||
6 | Fri Mar 31 10:14:23 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
7 | ||
8 | * repo.c: New file to handle things repo. | |
9 | ||
10 | * pt.c (instantiate_template): Call repo_template_used if the | |
11 | definition is accessible. | |
12 | (mark_function_instantiated): Split out from | |
13 | do_function_instantiation. | |
14 | (mark_class_instantiated): Split out from do_type_instantiation. | |
15 | ||
16 | * parse.y (template_instantiate_once): Call repo_template_used. | |
17 | ||
18 | * lex.c (lang_init): Call init_repo. | |
19 | ||
20 | * decl2.c: Handle flag_use_repository. | |
21 | (finish_file): Call finish_repo. | |
22 | ||
23 | * decl.c (start_method): Call repo_template_used if this is a | |
24 | template method. | |
25 | ||
26 | * Makefile.in (CXX_OBJS): Add repo.o. | |
27 | (repo.o): Add dependencies. | |
28 | ||
29 | * Make-lang.in (CXX_SRCS): Add repo.c. | |
30 | ||
31 | * decl.c (start_function): If DECL_INTERFACE_KNOWN and | |
32 | DECL_NOT_REALLY_EXTERN are both set, unset DECL_EXTERNAL. | |
33 | ||
34 | * typeck.c (build_binary_op_nodefault): Identify the invalid operand | |
35 | types used. | |
36 | ||
37 | * decl.c (duplicate_decls): Propagate DECL_NOT_REALLY_EXTERN. | |
38 | ||
39 | Thu Mar 30 17:54:42 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
40 | ||
41 | * typeck.c (build_binary_op_nodefault): Tidy up use of build_type | |
42 | and result_type. When checking for comparison between signed | |
43 | and unsigned, use result_type rather than the (possibly shortened) | |
44 | type of op0. Also, don't warn about equality comparison of a | |
45 | signed operand to an unsigned constant that fits in the signed | |
46 | type. | |
47 | ||
48 | * method.c (do_build_copy_constructor): Reverse | |
49 | current_base_init_list after we've built it up. | |
50 | ||
51 | Thu Mar 30 14:35:18 1995 Mike Stump <mrs@cygnus.com> | |
52 | ||
53 | * except.c (build_throw): Never warn about the value of throw not | |
54 | being used. | |
55 | ||
56 | Thu Mar 30 13:16:54 1995 Mike Stump <mrs@cygnus.com> | |
57 | ||
58 | * except.c (expand_start_catch_block): Check for bad catch parameter | |
59 | declarations. | |
60 | ||
61 | Thu Mar 30 13:06:11 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
62 | ||
63 | * decl.c (finish_function): Only set DECL_NOT_REALLY_EXTERN if | |
64 | DECL_EXTERNAL is not already set. | |
65 | ||
66 | Thu Mar 30 11:26:24 1995 Mike Stump <mrs@cygnus.com> | |
67 | ||
68 | * method.c (emit_thunk): Let poplevel know that the last level is | |
69 | for a function so it can create a BLOCK_NODE and set DECL_INITIAL. | |
70 | ||
71 | Thu Mar 30 11:15:06 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
72 | ||
73 | * decl2.c (import_export_inline): Don't set DECL_NOT_REALLY_EXTERN | |
74 | here. | |
75 | ||
76 | * decl.c (grokdeclarator): OK, don't abort if we see a decl with | |
77 | METHOD_TYPE. | |
78 | (finish_function): Set DECL_EXTERNAL and DECL_NOT_REALLY_EXTERN on | |
79 | all deferred inlines. | |
80 | ||
81 | Wed Mar 29 19:35:02 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
82 | ||
83 | * cp-tree.h (DECL_THIS_INLINE): New macro. | |
84 | (DECL_NOT_REALLY_EXTERN): New macro. | |
85 | (DECL_THIS_STATIC): New macro. | |
86 | ||
87 | * decl.c: Lose all references to current_extern_inline. Break | |
88 | inline semantics into DECL_INLINE for actual inlining and | |
89 | DECL_THIS_INLINE for the linkage wierdness. Use DECL_THIS_STATIC. | |
90 | * decl2.c: Use DECL_NOT_REALLY_EXTERN to indicate that we want to | |
91 | emit an inline here. Associated changes. | |
92 | * lex.c: Ditto. | |
93 | * pt.c: Ditto. | |
94 | * typeck.c: Ditto. | |
95 | ||
96 | * call.c (build_method_call): Don't bother trying to handle inlines | |
97 | specially. | |
98 | * cvt.c (convert_to_aggr): Ditto. | |
99 | ||
100 | * pt.c (do_function_instantiation): Handle instantiation of | |
101 | public inlines, too. | |
102 | ||
103 | Wed Mar 29 16:04:25 1995 Mike Stump <mrs@cygnus.com> | |
104 | ||
105 | * except.c (init_exception_processing): Change the interface for | |
106 | __throw_type_match and add decl for new rtti matching routine | |
107 | __throw_type_match_rtti. | |
108 | (build_eh_type): New routine to build a run time descriptor for the | |
109 | expression given. | |
110 | (expand_start_catch_block): Update to use new calling convention for | |
111 | the matcher. | |
112 | (expand_throw): Update to use build_eh_type. | |
113 | ||
08fb8ad0 WL |
114 | Mon Mar 27 07:14:33 1995 Warner Losh <imp@village.org> |
115 | ||
116 | * g++.c: Removed __NetBSD__ from conditional. | |
117 | Declare strerror if HAVE_STRERROR is defined; otherwise | |
118 | declare sys_errlist and sys_nerr. | |
119 | (my_strerror): New function. | |
120 | ||
71851aaa MS |
121 | Tue Mar 28 14:16:35 1995 Jason Merrill <jason@phydeaux.cygnus.com> |
122 | ||
123 | * search.c (get_binfo): Don't try to be so clever. | |
124 | ||
125 | * tree.c (copy_to_permanent): Also suspend_momentary(). | |
126 | ||
127 | * cvt.c (cp_convert_to_pointer): Hand off to convert_fn_pointer even | |
128 | if the types are the same. | |
129 | ||
130 | * decl.c (start_function): Handle extern inlines more like C++ says | |
131 | we should. | |
132 | ||
133 | * init.c (build_member_call): Hand constructor calls off to | |
134 | build_functional_cast. | |
135 | ||
136 | * typeck2.c (build_functional_cast): Use DECL_NESTED_TYPENAME to get | |
137 | the name of the type. | |
138 | ||
139 | Tue Mar 28 13:13:56 1995 Brendan Kehoe (brendan@lisa.cygnus.com) | |
140 | ||
141 | * decl.c (grokdeclarator): Check for the decl returned by | |
142 | grokfndecl to be null before using build_decl_attribute_variant. | |
143 | ||
144 | Mon Mar 27 18:04:41 1995 Brendan Kehoe (brendan@lisa.cygnus.com) | |
145 | ||
146 | * init.c (build_new): Use build_pointer_type instead of | |
147 | TYPE_POINTER_TO. | |
148 | ||
7215f9a0 MS |
149 | Fri Mar 24 12:11:24 1995 Jason Merrill <jason@phydeaux.cygnus.com> |
150 | ||
71851aaa MS |
151 | * typeck.c (build_conditional_expr): Handle pmfs. |
152 | (convert_for_assignment): Fix pmf support. | |
153 | ||
154 | * cvt.c (convert_fn_ptr): Support !flag_vtable_thunks. | |
155 | (cp_convert_to_pointer): Handle pmfs. | |
156 | (cp_convert): Pass pmfs to cp_convert_to_pointer. | |
157 | ||
158 | * typeck.c (common_type): Handle inheritance for pmfs. | |
159 | ||
160 | * typeck2.c (build_m_component_ref): Do access control. | |
161 | ||
162 | * typeck.c (comp_target_types): Check for conversion to void * | |
163 | before checking trickier conversions. | |
164 | ||
7215f9a0 MS |
165 | * decl.c (duplicate_decls): Propagate DECL_ABSTRACT_VIRTUAL_P. |
166 | ||
167 | * pt.c (push_tinst_level): Complain if template instantiation depth | |
168 | is greater than max_tinst_depth. | |
169 | ||
170 | * typeck.c (common_type): Assume that we can call common_type to | |
171 | unify the target type of a pointer. | |
172 | ||
173 | Thu Mar 23 00:48:44 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
174 | ||
175 | * decl2.c (finish_file): Don't synthesize methods at | |
176 | finish_vtable_prevardecl time. Do synthesize methods that are not | |
177 | used, but are public and not external. | |
178 | ||
179 | * cvt.c (build_type_conversion): Only give an error if for_sure. | |
180 | ||
181 | * typeck.c (comp_target_types): Only support pointer conversions if | |
182 | nptrs > 0. | |
183 | ||
184 | Wed Mar 22 19:30:15 1995 Brendan Kehoe (brendan@lisa.cygnus.com) | |
185 | ||
186 | * init.c (build_new): Catch use of an initializer list where it | |
187 | shouldn't be. | |
188 | ||
189 | Wed Mar 22 16:21:07 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
190 | ||
191 | * init.c (build_new): Wrap alloc_expr in an RTL_EXPR if nelts is | |
192 | non-constant. | |
193 | ||
194 | * decl2.c: temp_name_counter is now public. | |
195 | ||
196 | * decl.c (struct cp_function): Add temp_name_counter field. | |
197 | (push_cp_function_context): Save it. | |
198 | (pop_cp_function_context): Restore it. | |
199 | ||
200 | * typeck.c (common_type): Handle unifying function types, and unify | |
201 | unmatched things to void* with a compiler_error, rather than | |
202 | silently like before. | |
203 | ||
28cbf42c MS |
204 | Wed Mar 22 15:10:34 1995 Mike Stump <mrs@cygnus.com> |
205 | ||
206 | * decl2.c (finish_prevtable_vardecl, finish_vtable_vardecl): Revert | |
207 | Brendan's last change and fix latent problem that causes TD entries | |
208 | to not come out when the things that need them has yet to be | |
209 | expanded. | |
210 | ||
211 | Wed Mar 22 15:12:00 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
212 | ||
213 | * typeck.c (build_binary_op_nodefault, comparison ops): Update type0 | |
214 | and type1, since we might have changed op0 or op1. | |
215 | ||
216 | Wed Mar 22 13:33:45 1995 Jason Merrill <jason@python.cygnus.com> | |
217 | ||
218 | * typeck.c (common_type): Don't mess up templates. | |
219 | ||
220 | Wed Mar 22 04:56:00 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
221 | ||
222 | * typeck.c (common_type): Handle ptms properly. Also handle | |
223 | T* -> void*. | |
224 | (build_binary_op_nodefault): New variable build_type controls what | |
225 | type is given to the expression when it is created. Set this to | |
226 | boolean_type_node for comparison ops instead of using result_type. | |
227 | (comp_target_types): Allow T * -> void *. | |
228 | ||
229 | * cvt.c (cp_convert_to_pointer): Do access control when converting | |
230 | ptms, too. | |
231 | ||
232 | Tue Mar 21 17:25:06 1995 Brendan Kehoe (brendan@lisa.cygnus.com) | |
233 | ||
234 | * parse.y (extern_lang_string): Catch use of linkage specs that | |
235 | aren't all naming the same language. | |
236 | ||
237 | * class.c (finish_struct): Delete accidental duplicate code. | |
238 | ||
239 | Tue Mar 21 14:00:57 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
240 | ||
241 | * typeck.c (build_binary_op_nodefault): Disable pedwarns about | |
242 | comparing functions and incomplete types. | |
243 | ||
244 | * decl.c (finish_function): Only unset current_function_decl if | |
245 | !nested. | |
246 | (duplicate_decls): Last change went too far; we only want to stop | |
247 | checking for value/reference ambiguity. | |
248 | ||
249 | Tue Mar 21 01:26:39 1995 Mike Stump <mrs@cygnus.com> | |
250 | ||
251 | * gc.c (build_generic_desc): Zap the DECL_SIZE so that we can lay it | |
252 | out fresh, as the new type may be larger. | |
253 | ||
254 | Mon Mar 20 19:01:10 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
255 | ||
256 | * expr.c (extract_init): Try to expand the RTL for the | |
257 | initialization and figure out what it will look like so we can avoid | |
258 | run-time initialization. Disabled for now. | |
259 | (extract_scalar_init): Helper for scalar initialization. | |
260 | (extract_aggr_init): Helper for aggregate initialization. | |
261 | ||
262 | * decl.c (duplicate_decls): Don't complain about ambiguous | |
263 | declarations. | |
264 | (obscure_complex_init): Now returns a tree. Call extract_init if | |
265 | we're optimizing and this is a toplevel decl. | |
266 | (finish_decl): Update accordingly. | |
267 | ||
268 | * lex.c (check_newline): If we're just changing files (not pushing | |
269 | or popping), update input_file_stack->name. | |
270 | ||
271 | Mon Mar 20 17:55:04 1995 Mike Stump <mrs@cygnus.com> | |
272 | ||
273 | * pt.c (type_unification): Only TEMPLATE_DECLs are handled right now | |
274 | in the transitive unification code. | |
275 | ||
276 | Mon Mar 20 16:07:50 1995 Brendan Kehoe (brendan@lisa.cygnus.com) | |
277 | ||
278 | * decl.c (shadow_tag): Don't allow inline, virtual, or explicit on | |
279 | non-functions. | |
280 | (grokdeclarator): Don't allow friends to be defined in local classes. | |
281 | ||
282 | Sat Mar 18 04:03:33 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
283 | ||
284 | * decl2.c (finish_prevtable_vardecl): Use DECL_DECLARED_STATIC | |
285 | rather than DECL_SAVED_INSNS to decide whether or not this method | |
286 | was declared inline. | |
287 | ||
288 | * method.c (synthesize_method): Turn off DECL_INLINE if | |
289 | function_cannot_inline_p thinks we're too large. | |
290 | ||
291 | * typeck.c (build_indirect_ref): Use build_expr_type_conversion. | |
292 | ||
293 | Fri Mar 17 17:47:36 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
294 | ||
295 | * class.c (instantiate_type): Handle pmfs. | |
296 | ||
297 | * typeck.c (convert_for_assignment): Check types when assigning one | |
298 | pmf to another. | |
299 | ||
300 | * decl.c (define_label): Fix logic for printing out the name of the | |
301 | label in an error message. | |
302 | ||
303 | * error.c (dump_expr): Support ARRAY_REF. | |
304 | ||
305 | Fri Mar 17 17:43:02 1995 Brendan Kehoe (brendan@lisa.cygnus.com) | |
306 | ||
307 | * decl2.c (finish_vtable_vardecl): Call build_t_desc here. | |
308 | (finish_prevtable_vardecl): Instead of here. | |
309 | ||
310 | Fri Mar 17 14:40:45 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
311 | ||
312 | * decl.c (expand_static_init): Also use expand_aggr_init if the | |
313 | initializer is a TREE_LIST. | |
314 | (grokdeclarator): Only pedwarn about extra qualification if -pedantic. | |
315 | ||
316 | * pt.c (unify): Fix unification of return type. | |
317 | ||
318 | * expr.c (fixup_result_decl): Use store_expr, rather than | |
319 | emit_move_insn, to move the return value into the place where | |
320 | callers will expect it. | |
321 | ||
322 | Thu Mar 16 22:05:25 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
323 | ||
324 | * init.c (build_offset_ref): Call assmble_external on functions. | |
325 | * typeck.c (build_component_ref): Ditto. | |
326 | ||
327 | Thu Mar 16 20:28:16 1995 Brendan Kehoe (brendan@lisa.cygnus.com) | |
328 | ||
329 | * decl.c (struct saved_scope): Add members base_init_list and | |
330 | member_init_list. | |
331 | (push_to_top_level): Save current_base_init_list and | |
332 | current_member_init_list to them. | |
333 | (pop_from_top_level): Put it back. | |
334 | ||
335 | Thu Mar 16 19:21:14 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
336 | ||
337 | * pt.c (instantiate_template): Call assemble_external. | |
338 | ||
339 | Thu Mar 16 18:07:54 1995 Brendan Kehoe (brendan@phydeaux.cygnus.com) | |
340 | ||
341 | * class.c: Include rtl.h, to get NULL_RTX. | |
342 | (finish_struct): Also zero out DECL_SAVED_INSNS, to avoid problems | |
343 | on hosts with different sizes for each part of the union. | |
344 | * tree.c: Also include rtl.h. | |
345 | (layout_basetypes): Same change for DECL_SAVED_INSNS. | |
346 | ||
347 | Thu Mar 16 13:57:36 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
348 | ||
349 | * pt.c (unify): Fix array domain unification for 64-bit targets. | |
350 | ||
351 | * decl2.c (finish_file): Push bizarre type decl before walking the | |
352 | vtables the first time. | |
353 | (walk_vtables): OK, don't set prev to vars if the vardecl_fn messed | |
354 | with TREE_CHAIN (prev). | |
355 | ||
356 | * init.c (emit_base_init): Use convert_pointer_to_real instead of | |
357 | convert_pointer_to when converting to a direct base. | |
358 | ||
359 | Wed Mar 15 20:26:29 1995 Mike Stump <mrs@cygnus.com> | |
360 | ||
361 | * pt.c (type_unification): Handle transitive unification better. | |
362 | ||
363 | Wed Mar 15 13:56:16 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
364 | ||
365 | * decl2.c (walk_vtables): Always set prev to vars. | |
366 | (mark_vtable_entries): Call assemble_external on the vtable entries. | |
367 | ||
368 | * class.c (finish_struct): Set the vtable's size to NULL_TREE before | |
369 | calling layout_decl, so that it gets updated properly. | |
370 | ||
371 | Finally re-enable dynamic synthesis. This time it works. | |
372 | * method.c (synthesize_method): Pass decl_function_context (fndecl) | |
373 | to {push,pop}_cp_function_context. | |
374 | * decl.c (push_cp_function_context): Now takes a tree argument. | |
375 | (pop_cp_function_context): Ditto. | |
376 | * call.c (build_method_call): Enable synthesis. | |
377 | * lex.c (cons_up_default_function): Ditto. | |
378 | ||
379 | Tue Mar 14 19:14:19 1995 Doug Evans <dje@chestnut.cygnus.com> | |
380 | ||
381 | * parse.y (setattrs): Chain onto prefix_attributes rather than | |
382 | setting it. | |
383 | ||
384 | Wed Mar 15 13:00:00 1995 Brendan Kehoe (brendan@lisa.cygnus.com) | |
385 | ||
386 | * decl.c (pushdecl): Check if the type of the VAR_DECL is an | |
387 | error_mark_node before trying to read TYPE_LANG_SPECIFIC. | |
388 | ||
b7484fbe MS |
389 | Mon Mar 13 21:00:28 1995 Brendan Kehoe (brendan@lisa.cygnus.com) |
390 | ||
391 | * decl.c (grokdeclarator, case ARRAY_REF): Wrap the exp with fold, | |
392 | and convert the size and integer_one_node to the index type. | |
393 | ||
394 | Mon Mar 13 08:01:02 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
395 | ||
396 | * typeck.c (get_member_function_from_ptrfunc): Save the instance | |
397 | argument, and tack it onto the front of the COND_EXPR to make the | |
398 | semantics come out right. Grab the instance argument from | |
399 | '*instance_ptrptr', rather than having it passed in separately. | |
400 | ||
401 | * various: Change various consed-up comparison operations to have | |
402 | boolean type. Remove the instance argument in calls to | |
403 | get_member_function_from_ptrfunc. | |
404 | ||
405 | * error.c (dump_expr): Dump true and false as "true" and "false". | |
406 | ||
407 | * decl2.c (finish_file): Also set DECL_STATIC_FUNCTION_P on the | |
408 | global init function. | |
409 | ||
410 | * decl.c (finish_function): Only set DECL_EXTERNAL here if the | |
411 | inline function is public. | |
412 | ||
413 | Sat Mar 11 00:58:03 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
414 | ||
415 | * init.c (is_friend): Be more careful about checking | |
416 | DECL_CLASS_CONTEXT on non-member functions. | |
417 | ||
418 | * decl2.c (finish_vtable_vardecl): Don't bother calling | |
419 | assemble_external here. | |
420 | (prune_vtable_vardecl): New function that just splices out the | |
421 | vtable decl from the top-level decls. | |
422 | (import_export_inline): Unset DECL_EXTERNAL at first. | |
423 | (finish_file): Don't bother calling assemble_external here. Do | |
424 | splice out all of the vtables. | |
425 | ||
426 | Fri Mar 10 14:42:29 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
427 | ||
428 | * decl.c (finish_function): If we're not emitting the function yet, | |
429 | call assemble_external for it. | |
430 | ||
431 | * decl2.c (finish_prevtable_vardecl): Don't call mark_vtable_entries | |
432 | here. | |
433 | (finish_vtable_vardecl): Don't do the linkage deduction thing here. | |
434 | Also don't splice out the current vtable if it is unused. | |
435 | (finish_file): Move the second walk_vtables and the synthesis check | |
436 | inside the 'reconsider' loop. Move thunk emission after the | |
437 | 'reconsider' loop. | |
438 | ||
439 | Thu Mar 9 16:28:16 1995 Brendan Kehoe (brendan@lisa.cygnus.com) | |
440 | ||
441 | * pt.c (tsubst): Don't bother calling cp_build_type_variant, since it | |
442 | was passing bogus values for readonly and volatile from the original | |
443 | template decl, not the resultant type of the tsubst call. | |
444 | ||
445 | * class.c (duplicate_tag_error): Use cp_error_at to point out the | |
446 | previous definition of the tag. | |
447 | ||
448 | Thu Mar 9 10:46:17 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
449 | ||
450 | * decl.c (start_function): Clear base_init_insns and protect_list. | |
451 | (struct cp_function): Add base_init_insns field. | |
452 | (push_cp_function_context): Also save base_init_insns. | |
453 | (pop_cp_function_context): Also restore base_init_insns. | |
454 | ||
455 | Wed Mar 8 13:31:44 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
456 | ||
457 | * init.c (member_init_ok_or_else): Check for initializing a static | |
458 | member here. | |
459 | (emit_base_init): Instead of here. | |
460 | ||
461 | Tue Mar 7 16:03:26 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
462 | ||
463 | * call.c (build_method_call): Disable synthesis as needed. | |
464 | * lex.c (cons_up_default_function): Ditto. | |
465 | ||
f6abb50a BK |
466 | Tue Mar 7 10:14:29 1995 Brendan Kehoe (brendan@lisa.cygnus.com) |
467 | ||
468 | * parse.y: New rules to allow attributes in a prefix position. | |
469 | (prefix_attributes): New variable. Pass it into cplus_decl_attributes. | |
470 | (setattr): New rule. | |
471 | (reserved_declspecs, declmods): Catch attributes here. | |
472 | * decl2.c (cplus_decl_attributes): Add PREFIX_ATTRIBUTES argument. | |
473 | * decl.c (duplicate_decls): Pass DECL_MACHINE_ATTRIBUTES to | |
474 | descendent typedef. | |
475 | (grokdeclarator): Added code to support machine attributes. | |
476 | * Makefile.in (stamp-parse): Expect 5 shift/reduce failures. | |
477 | ||
b7484fbe MS |
478 | Mon Mar 6 15:07:02 1995 Jason Merrill <jason@phydeaux.cygnus.com> |
479 | ||
480 | * call.c (build_method_call): Don't synthesize methods outside of a | |
481 | function. | |
482 | ||
483 | Make base initialization more re-entrant so that synthesis on the | |
484 | fly will work (and, eventually, template instantation on the fly). | |
485 | * init.c (sort_member_init): Don't bother with members that can't be | |
486 | initialized. Reorganize a bit. Don't initialize base members here. | |
487 | (sort_base_init): New function, like sort_member_init, but for base | |
488 | classes. Steals some code from emit_base_init. | |
489 | (emit_base_init): Simplify. Call sort_{member,base}_init before | |
490 | doing any initialization, so we don't have to save | |
491 | current_{member,base}_init_list in push_cp_function_context. | |
492 | (expand_aggr_vbase_init_1): Adjust for sort_base_init. | |
493 | (expand_aggr_vbase_init): Simplify. | |
494 | * decl.c (struct cp_function): Add protect_list field. | |
495 | (push_cp_function_context): Also save protect_list. | |
496 | (pop_cp_function_context): Also restore protect_list. | |
497 | * call.c (build_method_call): Enable synthesis at point of call. | |
498 | * lex.c (cons_up_default_function): Ditto. | |
499 | ||
500 | * parse.y: Turn -ansi checks back into -pedantic checks. | |
501 | ||
502 | * init.c (build_new): Fix -fcheck-new for array new. | |
503 | ||
504 | Sat Mar 4 15:55:42 1995 Fergus Henderson <fjh@cs.mu.oz.au> | |
505 | ||
506 | * typeck.c (build_compound_expr): warn if left-hand operand of | |
507 | comma expression has no side-effects. | |
508 | ||
509 | Fri Mar 3 15:16:45 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
510 | ||
511 | * parse.y (primary): Change 'object qualified_id *' rules to 'object | |
512 | overqualified_id *'. | |
513 | ||
514 | Fri Mar 3 12:48:17 1995 Brendan Kehoe (brendan@lisa.cygnus.com) | |
515 | ||
516 | * parse.y (unary_expr): Catch doing sizeof an overloaded function. | |
517 | Make the error look the same as the one we issue in c_sizeof. | |
518 | ||
519 | * typeck.c (build_binary_op_nodefault): Give an error for trying | |
520 | to compare a pointer-to-member to `void *'. | |
521 | ||
522 | Fri Mar 3 11:28:50 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
523 | ||
524 | * typeck.c (build_unary_op): Handle bool increment with smoke and | |
525 | mirrors here, rather than in expand_increment where it belongs, | |
526 | because Kenner doesn't agree with me. | |
527 | ||
528 | Fri Mar 3 00:08:10 1995 Brendan Kehoe (brendan@lisa.cygnus.com) | |
529 | ||
530 | * decl.c (grokparms): Catch a PARM_DECL being used for a default | |
531 | argument as well. | |
532 | ||
533 | Thu Mar 2 20:05:54 1995 Brendan Kehoe (brendan@lisa.cygnus.com) | |
534 | ||
535 | * init.c (build_new): Don't allow new on a function type. | |
536 | ||
537 | * parse.y (primary): Avoid a crash when seeing if the arg is of | |
538 | the same type as that given for the typespec in an explicit dtor call. | |
539 | ||
540 | Thu Mar 2 00:49:38 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
541 | ||
542 | * decl.c (finish_function): Change test for calling | |
543 | mark_inline_for_output. | |
544 | ||
545 | Wed Mar 1 11:23:46 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
546 | ||
547 | * typeck.c (build_modify_expr): Complain if | |
548 | build_default_binary_type_conversion fails. | |
549 | ||
550 | * init.c (expand_default_init): Handle arguments of unknown type | |
551 | properly. | |
552 | ||
553 | * cvt.c (build_expr_type_conversion): Only complain about ambiguity | |
554 | if 'complain'. | |
555 | * various: Pass 'complain'. | |
556 | ||
557 | * typeck.c (comptypes): Be more picky about comparing UPTs. | |
558 | ||
559 | Wed Mar 1 11:03:41 1995 Brendan Kehoe (brendan@lisa.cygnus.com) | |
560 | ||
561 | * decl.c (grokdeclarator): If declarator is null, say that the | |
562 | type used has an incomplete type. | |
563 | ||
564 | Wed Mar 1 10:06:20 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
565 | ||
566 | * pt.c (instantiate_template): Copy the template arguments to the | |
567 | permanent_obstack. Also use simple_cst_equal to compare them when | |
568 | looking for a previous instantiation. | |
569 | ||
570 | * tree.c (make_deep_copy): Support copying INTEGER_TYPEs (assuming | |
571 | they are array domain types). | |
572 | ||
573 | Tue Feb 28 23:24:55 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
574 | ||
575 | * cp-tree.h: Define WANT_* constants for passing to | |
576 | build_expr_type_conversion. | |
577 | * cvt.c (build_expr_type_conversion): New function to build | |
578 | conversion to one of a group of suitable types. | |
579 | (build_default_binary_type_conversion): Use it. | |
580 | * decl2.c (grok_array_decl): Ditto. | |
581 | * typeck.c (build_unary_op): Ditto. | |
582 | (build_array_ref): Tidy up a bit. | |
583 | (build_binary_op): Ditto. | |
584 | ||
585 | Tue Feb 28 19:57:31 1995 Brendan Kehoe (brendan@lisa.cygnus.com) | |
586 | ||
587 | * decl.c (grokdeclarator): Don't allow decl of an argument as `void'. | |
588 | ||
589 | Tue Feb 28 17:23:36 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
590 | ||
591 | * parse.y (typed_declspecs1): Add 'typespec reserved_typespecquals | |
592 | reserved_declspecs' rule. | |
593 | ||
594 | * parse.y (expr_or_declarator): Remove notype_qualified_id rule. | |
595 | (direct_notype_declarator): Ditto. | |
596 | (complex_direct_notype_declarator): Add notype_qualified_id rule. | |
597 | ||
598 | * lex.c (real_yylex): Handle :> digraph properly. | |
599 | ||
600 | Tue Feb 28 12:26:29 1995 Brendan Kehoe (brendan@lisa.cygnus.com) | |
601 | ||
602 | * decl.c (grokdeclarator): Check if it's a friend, not if it's | |
603 | non-virtual, that's being initialized. Move the check up to | |
604 | before FRIENDP would get cleared. Catch an unnamed var/field | |
605 | being declared void. Say just `field' instead of `structure field' | |
606 | in the error message. Only go for the operator name if DECLARATOR | |
607 | is non-null. | |
608 | ||
609 | Tue Feb 28 00:08:01 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
610 | ||
611 | * decl.c (start_function): Complain about abstract return type. | |
612 | (grokdeclarator): Complain about declaring constructors and | |
613 | destructors to be const or volatile. Complain about declaring | |
614 | destructors to be static. | |
615 | ||
616 | * pt.c (uses_template_parms): Handle pmfs. | |
617 | ||
618 | * decl.c (grokdeclarator): Don't call variable_size for array bounds | |
619 | that only depend on template constant parameters. | |
620 | ||
621 | Mon Feb 27 15:38:16 1995 Brendan Kehoe (brendan@lisa.cygnus.com) | |
622 | ||
623 | * error.c (dump_decl): Only look to see if it's a vtable if we | |
624 | actually have a name to check out. | |
625 | ||
626 | Mon Feb 27 13:37:53 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
627 | ||
628 | * cvt.c (convert_to_aggr): Lose misleading shortcut. | |
629 | ||
630 | Sun Feb 26 17:27:32 1995 Doug Evans <dje@canuck.cygnus.com> | |
631 | ||
632 | * decl.c (set_nested_typename): Always set DECL_IGNORED_P, | |
633 | not just for dwarf. | |
634 | ||
635 | Sun Feb 26 00:10:18 1995 Brendan Kehoe (brendan@lisa.cygnus.com) | |
636 | ||
637 | * decl.c (grokdeclarator): Don't allow a static member to be | |
638 | declared `register'. | |
639 | ||
640 | * init.c (make_friend_class): Move up to a pedwarn for the warning | |
641 | about a class declaring friends with itself. | |
642 | ||
643 | * decl.c (grokdeclarator): You can't do `volatile friend class foo' | |
644 | or `inline friend class foo'. Only try to make a friend out of | |
645 | TYPE if we didn't already reset it to integer_type_node. | |
646 | ||
647 | Sat Feb 25 22:32:03 1995 Brendan Kehoe (brendan@lisa.cygnus.com) | |
648 | ||
649 | * decl.c (grokdeclarator): Don't allow initialization of a | |
650 | non-virtual function. | |
651 | ||
652 | * decl.c (start_function): Do a pedwarn if we're changing `main' | |
653 | to have an int return type. | |
654 | ||
655 | Sat Feb 25 00:02:05 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
656 | ||
657 | * typeck.c (build_modify_expr): Handle simple assignment from | |
658 | TARGET_EXPRs by building up an RTL_EXPR to force expansion. Whew. | |
659 | ||
660 | Fri Feb 24 18:27:14 1995 Brendan Kehoe (brendan@lisa.cygnus.com) | |
661 | ||
662 | * decl.c (grokdeclarator): Also don't allow virtual outside of a | |
663 | class decl for a scope method definition performed at global binding. | |
664 | ||
665 | * init.c (build_offset_ref): Don't allow creation of an OFFSET_REF | |
666 | of a bitfield. | |
667 | ||
668 | * decl.c (grokdeclarator): Don't allow a const to be declared mutable. | |
669 | ||
670 | * typeck.c (build_binary_op): Return an error_mark_node if either | |
671 | one of the args turned into an error_mark_node when we tried to | |
672 | use default_conversion. | |
673 | ||
674 | * typeck.c (build_unary_op): Forbid using postfix -- on a bool. | |
675 | ||
676 | * decl.c (grokdeclarator): Allow `signed' and `unsigned' to be | |
677 | used on `__wchar_t'. | |
678 | ||
679 | Fri Feb 24 13:59:53 1995 Mike Stump <mrs@cygnus.com> | |
680 | ||
681 | * except.c (end_protect_partials): Do it the right way. | |
682 | ||
683 | Wed Feb 22 15:42:56 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
684 | ||
685 | * typeck.c (build_binary_op_nodefault): Upgrade warning about | |
686 | comparing distinct pointer types to pedwarn. | |
687 | ||
688 | * typeck2.c (digest_init): Cope with extra braces. | |
689 | ||
690 | * typeck.c (build_binary_op_nodefault): Use tree_int_cst_sgn instead | |
691 | of INT_CST_LT (..., interger_zero_node). | |
692 | ||
693 | Wed Feb 22 14:45:52 1995 Brendan Kehoe (brendan@lisa.cygnus.com) | |
694 | ||
695 | * except.c [!TRY_NEW_EH] (end_protect_partials): Define dummy | |
696 | function for systems that don't have EH. | |
697 | ||
698 | Tue Feb 21 19:18:31 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
699 | ||
700 | * call.c (can_convert_arg): Like can_convert, but takes an arg as | |
701 | well. | |
702 | ||
703 | * pt.c (type_unification): Allow implicit conversions for parameters | |
704 | that do not depend on template parameters. | |
705 | ||
1b65f56d DR |
706 | Tue Feb 21 18:43:48 1995 Douglas Rupp (drupp@cs.washington.edu) |
707 | ||
708 | * Make-lang.in, config-lang.in: ($exeext): New macro. | |
709 | * Make-lang.in: Try a "cp" if "ln" fails. | |
710 | * cp-tree.h (decl_attributes): Added argument. | |
711 | * decl2.c (cplus_decl_attribute): Add arg to decl_attributes. | |
712 | * cp/g++.c: Added #ifdefs for sys/file.h and process.h for NT. | |
713 | Modified spawnvp to have to correct number of arguments for OS/2, NT. | |
714 | ||
b7484fbe MS |
715 | Tue Feb 21 18:36:55 1995 Mike Stump <mrs@cygnus.com> |
716 | ||
717 | * decl.c (finish_function): Add calls to end_protect_partials to end | |
718 | the exception region that protects constructors so that partially | |
719 | constructed objects can be partially destructed when the constructor | |
720 | throws an exception. | |
721 | * init.c (perform_member_init, sort_member_init, emit_base_init): | |
722 | Added support for partially constructed objects. | |
723 | * init.c (build_partial_cleanup_for): New routine to do partial | |
724 | cleanups of a base class. | |
725 | * decl2.c (finish_file): Move the emitting of the exception table | |
726 | down, after we emit all code that might have exception regions in | |
727 | them. | |
728 | * except.c (end_protect_partials, might_have_exceptions_p): New | |
729 | routines. | |
730 | (emit_exception_table): Always output table if called. | |
731 | * cp-tree.h (protect_list, end_protect_partials, | |
732 | might_have_exceptions_p, emit_exception_table): Added. | |
733 | ||
734 | Tue Feb 21 16:05:59 1995 Brendan Kehoe (brendan@lisa.cygnus.com) | |
735 | ||
736 | * gc.c (build_typeid): Pass a NULL_TREE, not the bogus, unused | |
737 | address of a local variable. | |
738 | * class.c (build_vfn_ref): Only try to build the PLUS_EXPR if we | |
739 | were given a non-null PTR_TO_INSTPTR. | |
740 | ||
741 | Tue Feb 21 01:53:18 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
742 | ||
743 | * decl.c (duplicate_decls): Always lay out the merged decl. | |
744 | ||
745 | * decl2.c (finish_vtable_vardecl): Don't do vtable hack on templates. | |
746 | (finish_prevtable_vardecl): Ditto. | |
59be85d7 | 747 | |
b7484fbe MS |
748 | * method.c (synthesize_method): Set interface_{unknown,only} |
749 | according to the settings for our class, not the file where it comes | |
750 | from. | |
59be85d7 | 751 | |
b7484fbe | 752 | Sat Feb 18 12:26:48 1995 Mike Stump <mrs@cygnus.com> |
3a887df4 | 753 | |
b7484fbe | 754 | * except.c: Handle systems that define __i386__ but not __i386. |
3a887df4 | 755 | |
e3417fcd MS |
756 | Fri Feb 17 15:31:31 1995 Jason Merrill <jason@phydeaux.cygnus.com> |
757 | ||
758 | * decl2.c (reparse_decl_as_expr): Support being called without a | |
759 | type argument. | |
760 | ||
761 | * parse.y (primary): Add '(' expr_or_declarator ')'. Adds 4 r/r | |
762 | conflicts. Sigh. | |
763 | ||
764 | Fri Feb 17 12:02:06 1995 Mike Stump <mrs@cygnus.com> | |
765 | ||
766 | * parse.y (template_def, fndef, fn.def1, return_init, condition, | |
767 | initdcl0, initdcl, notype_initdcl0, nomods_initdcl0, | |
768 | component_decl_1, after_type_component_declarator0, | |
769 | notype_component_declarator0, after_type_component_declarator, | |
770 | notype_component_declarator, after_type_component_declarator, | |
771 | full_parm, maybe_raises, exception_specification_opt): Fix up, | |
772 | include exception_specification_opt maybeasm maybe_attribute and | |
773 | maybe_init if missing. Rename maybe_raises to | |
774 | exception_specification_opt to match draft wording. Use maybe_init | |
775 | to simplify rules. | |
776 | ||
777 | Fri Feb 17 01:54:46 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
778 | ||
779 | * init.c (build_new): Set TREE_NO_UNUSED_WARNING on COMPOUND_EXPRs | |
780 | built for news of scalar types. | |
781 | ||
782 | Thu Feb 16 17:48:28 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
783 | ||
784 | * typeck.c (build_binary_op_nodefault): Update code for warning | |
785 | about signed/unsigned comparisons from C frontend. Realize that the | |
786 | code in the C frontend is, if anything, even more bogus. Fix it. | |
787 | (build_binary_op): Undo default_conversion if it wasn't useful. | |
788 | ||
789 | * typeck.c (build_unary_op, ADDR_EXPR): Lose bogus special case for | |
790 | PRE*CREMENT_EXPR. | |
791 | ||
792 | * decl2.c (import_export_vtable): Don't try the vtable hack | |
793 | if the class doesn't have any real non-inline virtual functions. | |
794 | (finish_vtable_vardecl): Don't bother trying to find a non-inline | |
795 | virtual function in a non-polymorphic class. | |
796 | (finish_prevtable_vardecl): Ditto. | |
797 | ||
798 | * decl2.c (import_export_vtable): Use and set DECL_INTERFACE_KNOWN. | |
799 | ||
800 | * cp-tree.h (DECL_INTERFACE_KNOWN): Use DECL_LANG_FLAG_5. | |
801 | ||
802 | * init.c (expand_virtual_init): Always call assemble_external. | |
803 | ||
804 | * class.c (build_vfn_ref): Always call assemble_external. | |
805 | (build_vtable): Always call import_export_vtable. | |
806 | (prepare_fresh_vtable): Ditto. | |
807 | (add_virtual_function): Don't bother setting TREE_ADDRESSABLE. | |
808 | ||
8ccc31eb MS |
809 | Thu Feb 16 03:28:49 1995 Jason Merrill <jason@phydeaux.cygnus.com> |
810 | ||
811 | * class.c (finish_struct): Use TYPE_{MIN,MAX}_VALUE to determine | |
812 | whether an enumerated type fits in a bitfield. | |
813 | ||
814 | Wed Feb 15 15:38:12 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
815 | ||
816 | * class.c (grow_method): Update method_vec after growing the class | |
817 | obstack. | |
818 | ||
819 | Wed Feb 15 13:42:59 1995 Mike Stump <mrs@cygnus.com> | |
820 | ||
821 | * parse.y (handler_seq): Push a level for the catch parameters. | |
822 | ||
823 | Wed Feb 15 12:42:57 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
824 | ||
825 | * init.c (emit_base_init): Update BINFO_INHERITANCE_CHAIN on my | |
826 | bases, in case they've been clobbered. | |
827 | ||
828 | Wed Feb 15 12:07:29 1995 Mike Stump <mrs@cygnus.com> | |
829 | ||
830 | * class.c (finish_base_struct): Set up BINFO_INHERITANCE_CHAIN here, | |
831 | so that one day it will always be valid. | |
832 | * tree.c (propagate_binfo_offsets, layout_vbasetypes): Ditto. | |
833 | ||
834 | * cp-tree.h (copy_binfo): Removed, unused. | |
835 | * tree.c (copy_binfo): Ditto. | |
836 | ||
837 | Wed Feb 15 00:05:30 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
838 | ||
839 | * init.c (build_new): Save the allocation before calling | |
840 | expand_vec_init on it. | |
841 | ||
842 | * decl.c (finish_enum): The TYPE_PRECISION of the enum type mush | |
843 | match the TYPE_PRECISION of the underlying type for constant folding | |
844 | to work. | |
845 | ||
846 | Tue Feb 14 15:31:25 1995 Mike Stump <mrs@cygnus.com> | |
847 | ||
848 | * except.c (push_eh_entry, expand_start_all_catch, | |
849 | expand_leftover_cleanups, expand_end_catch_block): Keep track of | |
850 | the context in which the exception region occurs. | |
851 | (build_exception_table): If the region was not output, don't output | |
852 | the entry in the eh table for it. | |
853 | ||
854 | Tue Feb 14 02:15:43 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
855 | ||
856 | * init.c (expand_default_init): Only use a previous constructor call | |
857 | if it's a call to our constructor. Does the word "Duh" mean | |
858 | anything to you? | |
859 | ||
860 | * decl.c (grokparms): Fine, just don't call | |
861 | convert_for_initialization at all. OK? Happy now? | |
862 | ||
863 | Mon Feb 13 02:23:44 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
864 | ||
865 | * cp-tree.h (CLASSTYPE_FIRST_CONVERSION): Make sure that the class | |
866 | method vector has a second element before returning it. | |
867 | ||
868 | * decl.c (grokparms): Don't strip REFERENCE_TYPE before calling | |
869 | convert_for_initialization. | |
870 | ||
871 | Sun Feb 12 03:57:06 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
872 | ||
873 | * typeck.c (build_modify_expr): Compare function name to | |
874 | constructor_name (current_class_type) instead of current_class_name. | |
875 | ||
876 | * decl.c (grokparms): Don't do anything with the return value of | |
877 | convert_for_initialization. | |
878 | ||
879 | * error.c (dump_decl): Also dump_readonly_or_volatile on the decl. | |
880 | ||
881 | * decl.c (duplicate_decls): Tweak error message. | |
882 | ||
883 | * typeck.c (build_const_cast): Implement checking. | |
884 | (build_reinterpret_cast): Implement some checking. | |
885 | ||
886 | * cp-tree.h (CONV_FORCE_TEMP): Require a new temporary when | |
887 | converting to the same aggregate type. | |
888 | (CONV_STATIC_CAST): Include it. | |
889 | (CONV_C_CAST): Ditto. | |
890 | * cvt.c (convert_force): Use CONV_C_CAST instead of CONV_OLD_CONVERT. | |
891 | (cp_convert): Only force a new temporary if CONV_FORCE_TEMP. | |
892 | ||
893 | Fri Feb 10 16:18:52 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
894 | ||
895 | * typeck.c (build_c_cast): Use non_lvalue to tack something on | |
896 | where necessary. | |
897 | ||
898 | * decl.c (auto_function): Now a function. | |
899 | * except.c (init_exception_processing): terminate, unexpected, | |
900 | set_terminate, and set_unexpected have C++ linkage. | |
901 | ||
902 | * typeck.c (build_unary_op, TRUTH_NOT_EXPR): Use convert instead of | |
903 | truthvalue_conversion for converting to bool, as it handles | |
904 | user-defined conversions properly. | |
905 | (condition_conversion): Ditto. | |
906 | ||
907 | * except.c (expand_throw): Don't call convert_to_reference. | |
908 | Pass the correct parameters to build_new. | |
909 | ||
910 | * method.c (do_build_assign_ref): Don't use access control when | |
911 | converting to a base reference here. | |
912 | (do_build_copy_constructor): Or here. | |
913 | ||
914 | * init.c (build_new): Unset TREE_READONLY on the dereferenced | |
915 | pointer before assigning to it. | |
916 | ||
917 | * decl.c (maybe_build_cleanup): Don't bother stripping const here. | |
918 | ||
919 | * decl2.c (delete_sanity): You can now delete pointer to const. | |
920 | ||
921 | Fri Feb 10 13:28:38 1995 Jason Merrill <jason@python.cygnus.com> | |
922 | ||
923 | * decl.c (finish_function): Don't rely on actual parameters being | |
924 | evaluated left-to-right. | |
925 | * except.c (expand_end_catch_block): Ditto. | |
926 | ||
927 | Fri Feb 10 00:52:04 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
928 | ||
929 | * tree.c (real_lvalue_p): Like lvalue_p, but class temps aren't | |
930 | considered lvalues. | |
931 | * cvt.c (convert_to_reference): Use real_lvalue_p instead of | |
932 | lvalue_p. | |
933 | ||
934 | * cvt.c (build_type_conversion_1): Don't call convert on aggregate | |
935 | types. | |
936 | (convert_to_reference): Fix erroneous text substitution. | |
937 | ||
938 | * typeck2.c (initializer_constant_valid_p): Update from C frontend. | |
939 | Add new argument to all callers. | |
940 | ||
941 | * typeck.c (convert_arguments): Check for error_mark_node before | |
942 | trying to do anything with the actual parameter. | |
943 | ||
944 | * typeck.c (condition_conversion): Build up a CLEANUP_POINT_EXPR and | |
945 | fold it. | |
946 | (bool_truthvalue_conversion): Remove. Fix all callers to call | |
947 | truthvalue_conversion instead. | |
948 | (various): Fold CLEANUP_POINT_EXPRs. | |
949 | ||
950 | * parse.y (conditions): Call condition_conversion rather than | |
951 | building up a CLEANUP_POINT_EXPR. | |
952 | ||
953 | * pt.c (end_template_decl): Don't warn_if_unknown_interface here | |
954 | under -falt-external-templates. | |
955 | ||
956 | Thu Feb 9 05:24:10 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
957 | ||
958 | * init.c (build_new): Complain about new of const type without | |
959 | initializer. Other cleanup. | |
960 | ||
961 | * call.c (compute_conversion_costs): Don't call | |
962 | build_type_conversion with a reference type; convert to the target | |
963 | type and check its lvaluetude. | |
964 | * cvt.c (convert_to_reference): Ditto. | |
965 | ||
966 | * cvt.c (build_type_conversion_1): There will never be any need to | |
967 | dereference references here now. | |
968 | ||
969 | Thu Feb 9 00:37:47 1995 Mike Stump <mrs@cygnus.com> | |
970 | ||
971 | * except.c (expand_builtin_throw): Make sure we only `use' the | |
972 | value of return_val_rtx. | |
973 | ||
974 | Wed Feb 8 15:45:55 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
975 | ||
976 | * parse.y (structsp): Don't complain about declaring a type being | |
977 | defined to be a friend. | |
978 | ||
979 | * decl2.c (warn_if_unknown_interface): Note the template in question | |
980 | and the point of instantiation, for -falt-external-templates. | |
981 | * lex.c (reinit_parse_for_method): Pass the decl to | |
982 | warn_if_unknown_interface. | |
983 | * pt.c (instantiate_template): Ditto. | |
984 | (end_template_decl): Ditto. | |
985 | ||
986 | * decl.c (set_nested_typename): Set IDENTIFIER_TYPE_VALUE on the | |
987 | nested name again, to make local classes work a bit better. | |
988 | ||
989 | * typeck.c (build_function_call_real): Dereference reference after | |
990 | checking for incomplete type. | |
991 | ||
992 | * init.c (build_new): Accept new of const and volatile types. | |
993 | ||
994 | Wed Feb 8 14:04:16 1995 Jason Merrill <jason@deneb.cygnus.com> | |
995 | ||
996 | * decl.c (grokdeclarator): Fix error message. | |
997 | ||
998 | Wed Feb 8 03:16:15 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
999 | ||
1000 | * typeck.c (convert_for_initialization): Do bash arrays when | |
1001 | converting to a reference to non-array. | |
1002 | ||
1003 | Tue Feb 7 15:50:33 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
1004 | ||
1005 | * cvt.c (cp_convert): Don't call convert_to_reference, or | |
1006 | automatically dereference references. Do pass reference conversions | |
1007 | to cp_convert_to_pointer. | |
1008 | (cp_convert_to_pointer): Support references. | |
1009 | ||
1010 | * call.c (build_method_call): Don't build up a reference to the | |
1011 | parameter here; let build_overload_call handle that. | |
1012 | ||
1013 | * typeck.c (build_c_cast): Call convert_to_reference directly if | |
1014 | converting to a reference type. | |
1015 | * method.c (do_build_copy_constructor): Ditto. | |
1016 | * method.c (do_build_copy_constructor): Ditto. | |
1017 | (do_build_assign_ref): Ditto. | |
1018 | ||
1019 | * call.c (build_method_call): Dereference a returned reference. | |
1020 | * typeck.c (build_function_call_real): Ditto. | |
1021 | ||
1022 | * decl.c (xref_basetypes): Check for unions with basetypes here. | |
1023 | (xref_tag): Instead of here. | |
1024 | ||
1025 | * pt.c (process_template_parm): Template type parm decls are | |
1026 | artificial. | |
1027 | ||
1028 | Mon Feb 6 04:32:09 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
1029 | ||
1030 | * parse.y (typed_declspecs): Add missing semicolon. | |
1031 | (do_xref_defn): Resurrect. | |
1032 | (named_class_head_sans_basetype): Move template specialization | |
1033 | definition cases to named_class_head_sans_basetype_defn. | |
1034 | ||
1035 | * decl2.c (grokfield): Call pushdecl_class_level after setting the | |
1036 | TYPE_NAME, not before. | |
1037 | ||
1038 | Sun Feb 5 02:50:45 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
1039 | ||
1040 | * call.c (convert_harshness): Don't call sorry here. Don't allow | |
1041 | conversions between function pointer types if pedantic. | |
1042 | ||
1043 | * pt.c (overload_template_name): Pass globalize=1 to xref_tag. | |
1044 | ||
1045 | * lex.c (cons_up_default_function): Use the full name for the return | |
1046 | type of op=. | |
1047 | ||
1048 | * decl.c (set_nested_typename): Don't worry about anonymous types, | |
1049 | as they already have a unique name. | |
1050 | (pushdecl): Remove redundant set_nested_typename | |
1051 | (xref_tag): Split out base handling into xref_basetypes. | |
1052 | ||
1053 | * cp-tree.h (TYPE_INCOMPLETE): New macro; TEMPLATE_TYPE_PARMs are | |
1054 | not considered incomplete even though their definition is unknown. | |
1055 | ||
1056 | * decl.c (xref_defn_tag): Lose. | |
1057 | (xref_tag): xref_next_defn = ! globalize. | |
1058 | (pushdecl): Don't set DECL_NESTED_TYPENAME on artificial decls. The | |
1059 | ones that should have it set will have it set by pushtag. | |
1060 | (pushdecl_class_level): Ditto. | |
1061 | (pushtag): Tidy up a bit. | |
1062 | (set_nested_typename): Push a decl for the nested typename from | |
1063 | here, rather than from xref_defn_tag. | |
1064 | ||
1065 | * parse.y (do_xref): Lose. | |
1066 | (named_class_head): If we see 'class foo:' we know it's a | |
1067 | definition, so don't worry about base lists for non-definitions. | |
1068 | ||
1069 | * pt.c (push_template_decls): Template parm decls are artificial. | |
1070 | ||
1071 | * decl.c (duplicate_decls): Restore check for qualifier | |
1072 | disagreement for non-functions. | |
1073 | (decls_match): Remove check for qualifier disagreement. | |
1074 | ||
1075 | Fri Feb 3 14:58:58 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
1076 | ||
1077 | * decl.c (grok_reference_init): Convert initializer from | |
1078 | reference. | |
1079 | * typeck.c (convert_for_initialization): Ditto. | |
1080 | ||
1081 | * decl.c (duplicate_decls): Propagate DECL_NESTED_TYPENAME. | |
1082 | ||
1083 | * cvt.c (cp_convert): Don't convert to the same class type by just | |
1084 | tacking on a NOP_EXPR. | |
1085 | (convert_to_reference): Use comp_target_types instead of comptypes | |
1086 | so that we don't allow conversions two levels down. | |
1087 | ||
1088 | Thu Feb 2 15:07:58 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
1089 | ||
1090 | * class.c (build_vbase_path): Bash types to make the backend happy. | |
1091 | * cvt.c (build_up_reference): Bash the types bashed by | |
1092 | build_vbase_path to be reference types instead of pointer types. | |
1093 | (convert_to_reference): Ditto. | |
1094 | ||
1095 | * typeck.c (build_c_cast): Don't strip NOPs if we're converting to a | |
1096 | reference type. | |
1097 | ||
1098 | * parse.y (structsp): Put back error for 'struct B: public A;'. | |
1099 | ||
1100 | Wed Feb 1 23:02:06 1995 Mike Stump <mrs@cygnus.com> | |
1101 | ||
1102 | * except.c: Add support for mips systems that don't define __mips | |
1103 | but do define mips, like Ultrix. | |
1104 | ||
1105 | Wed Feb 1 22:39:07 1995 Mike Stump <mrs@cygnus.com> | |
1106 | ||
1107 | * except.c: Add support for exception handling on the Alpha. | |
1108 | ||
1038f4f9 MS |
1109 | Wed Feb 1 10:12:14 1995 Mike Stump <mrs@cygnus.com> |
1110 | ||
1111 | * decl2.c (finish_file): Fix bug in Jan 31st change. | |
1112 | ||
1113 | Tue Jan 31 16:59:15 1995 Gerald Baumgartner (gb@lorenzo.cs.purdue.edu) | |
1114 | ||
1115 | * sig.c (build_signature_pointer_or_reference_type): Don't set | |
1116 | IS_AGGR_TYPE for signature pointers/reference so expand_default_init | |
1117 | doesn't expect to find a copy constructor. | |
1118 | * call.c (build_method_call): Treat signature pointers/reference | |
1119 | as if IS_AGGR_TYPE were set. | |
1120 | ||
d18c083e MS |
1121 | Tue Jan 31 13:28:56 1995 Mike Stump <mrs@cygnus.com> |
1122 | ||
1123 | * gc.c (get_typeid): Pawn off error messages to build_t_desc. | |
1124 | (build_t_desc): Inform the user here if they try and build | |
1125 | with -frtti and don't include <typeinfo.h>. | |
1126 | ||
1127 | * decl2.c (finish_prevtable_vardecl): Support rescanning. | |
1128 | (finish_file): Move finish_prevtable_vardecl up to before the global | |
1129 | initializers are done as tdecls are initialized in the global | |
1130 | initializer. Also Pick up any new tdecls or vtables needed by | |
1131 | synthesized methods. | |
1132 | ||
1133 | * class.c (finish_struct): Simplify. We have to do rtti scanning at | |
1134 | end, so we might as well do all of it there. | |
1135 | ||
1136 | Tue Jan 31 05:35:02 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
1137 | ||
1138 | * call.c (build_method_call): Fix -fthis-is-variable for 32-bit | |
1139 | targets, too. | |
1140 | ||
1141 | Tue Jan 31 00:11:04 1995 Mike Stump <mrs@cygnus.com> | |
1142 | ||
1143 | * decl2.c (finish_prevtable_vardecl): New routine, mostly split from | |
1144 | finish_vtable_vardecl. It has the first half functionality from | |
1145 | that routine. | |
1146 | * decl2.c (finish_vtable_vardecl): Update to not include stuff not | |
1147 | in finish_prevtable_vardecl. | |
1148 | * decl2.c (finish_file): Call finish_prevtable_vardecl. | |
1149 | * gc.c (build_generic_desc): Allow it to be called when not at the | |
1150 | global binding layer, but behave as if we were. | |
1151 | (build_t_desc): Rearrange a bit so that it really works and is | |
1152 | easier to follow. | |
1153 | * class.c (finish_struct): Don't decide on tdecls here, as we have | |
1154 | to wait until the end of the file in general to decide whether or | |
1155 | not they come out. | |
1156 | ||
1157 | Mon Jan 30 01:00:40 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
1158 | ||
1159 | * init.c (build_delete): Check access to operator delete before | |
1160 | calling the destructor. | |
1161 | * method.c (build_opfncall, DELETE_EXPR): build_method is allowed to | |
1162 | return error_mark_node. | |
1163 | * call.c (build_method_call): Use the one-argument op delete even if | |
1164 | it's an error. | |
1165 | ||
1166 | * init.c (build_new): Fix -fthis-is-variable support. | |
1167 | * call.c (build_method_call): Ditto. | |
1168 | ||
1169 | * call.c (convert_harshness): Make conversion from a pointer to bool | |
1170 | worse than conversion to another pointer. | |
1171 | ||
1172 | Sat Jan 28 16:46:10 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
1173 | ||
1174 | * init.c (build_new): Check new return value if -fcheck-new. | |
1175 | ||
1176 | * lex.c (check_newline): Clear end_of_file when we're done, too. | |
1177 | ||
1178 | Sat Jan 28 10:38:39 1995 Mike Stump <mrs@cygnus.com> | |
1179 | ||
1180 | * decl2.c (finish_vtable_vardecl): Make rtti TD tables follow | |
1181 | vtables whereever they go. | |
1182 | ||
1183 | * gc.c (build_t_desc): Remove old way of setting it up, as it wasn't | |
1184 | right. | |
1185 | ||
1186 | Sat Jan 28 09:10:44 1995 Mike Stump <mrs@cygnus.com> | |
1187 | ||
1188 | * decl2.c (finish_vtable_vardecl): Now set the | |
1189 | interface/implementation of vtables on the first virtual function, | |
1190 | if one exists, otherwise we use the old method. This is a major win | |
1191 | in terms of cutting down the size of objects and executables in | |
1192 | terms of text space and data space. Now most of the savings that | |
1193 | #pragma interface/implementation gives is automatic in a fair number | |
1194 | of cases. | |
1195 | ||
1196 | Sat Jan 28 04:57:33 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
1197 | ||
1198 | * decl.c (grokdeclarator): Discard the template parameters in a | |
1199 | template constructor declaration so that the function is always | |
1200 | named constructor_name (ctype). | |
1201 | ||
1202 | * lex.c (check_newline): Use ungetc to put back the character before | |
1203 | calling HANDLE_PRAGMA. | |
1204 | ||
1205 | Fri Jan 27 17:23:47 1995 Mike Stump <mrs@cygnus.com> | |
1206 | ||
1207 | * decl2.c (check_classfn): If the cname is T<int> and fn_name is T, | |
1208 | make sure we still match them. | |
1209 | ||
1210 | Fri Jan 27 16:32:10 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
1211 | ||
1212 | * parse.y: Add END_OF_LINE token. | |
1213 | ||
1214 | * lex.c (check_newline): Set linemode when we see a # directive, and | |
1215 | unset it when we're done. Turn all 'return's into 'goto skipline'. | |
1216 | Fix all uses of '\n', since we won't see it anymore. Put back the | |
1217 | character we read before checking for a sysv or target pragma. | |
1218 | (real_yylex): If we see an EOF in linemode, return END_OF_LINE. | |
1219 | (handle_sysv_pragma): Don't look at the input stream; quit when we | |
1220 | see an END_OF_LINE token. | |
1221 | ||
1222 | * input.c (getch): Return EOF if we're in line mode and at the end | |
1223 | of a line. | |
1224 | (put_back): Don't put back an EOF. | |
1225 | ||
1226 | Thu Jan 26 19:26:34 1995 Mike Stump <mrs@cygnus.com> | |
1227 | ||
1228 | * except.c (expand_throw): Do the newing of the exception object | |
1229 | before we load the type descriptor or the address so that we don't | |
1230 | wipe any of the values out. | |
1231 | ||
1232 | Thu Jan 26 19:20:00 1995 Mike Stump <mrs@cygnus.com> | |
1233 | ||
1234 | * except.c (init_exception_processing): Don't use r12 on the rs6000. | |
1235 | ||
1236 | Tue Jan 24 16:36:31 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
1237 | ||
1238 | * decl.c (grokparms): Don't try to build up a reference at this point. | |
1239 | ||
1240 | * typeck2.c (build_functional_cast): Don't assume that a NOP_EXPR | |
1241 | will suffice to convert from integer_zero_node. | |
1242 | ||
b7484fbe MS |
1243 | Wed Jan 25 15:02:09 1995 David S. Miller (davem@nadzieja.rutgers.edu) |
1244 | ||
1245 | * class.c (instantiate_type): Change error message text. | |
1246 | * typeck2.c (store_init_value): Likewise. | |
1247 | ||
e1cd6e56 MS |
1248 | Mon Jan 23 21:57:14 1995 Mike Stump <mrs@cygnus.com> |
1249 | ||
1250 | * pt.c (tsubst): When we copy a node, don't forget to copy | |
1251 | TREE_CHAIN, we use it later. | |
1252 | ||
1253 | Mon Jan 23 03:33:47 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
1254 | ||
1255 | * typeck.c (convert_for_assignment): Initialize variable before use. | |
1256 | ||
1257 | Fri Jan 20 01:17:59 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
1258 | ||
1259 | * g++.c (main): Link with both libstdc++ and libg++ if called as | |
1260 | something ending with "g++", otherwise only libstdc++. Move -lm to | |
1261 | the end of the line. | |
1262 | ||
1263 | Thu Jan 19 15:43:11 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
1264 | ||
1265 | * call.c (build_method_call): Don't mess with 'this' before calling | |
1266 | compute_conversion_costs. | |
1267 | ||
1268 | Wed Jan 18 15:40:55 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
1269 | ||
1270 | * search.c (get_matching_virtual): Give line number for previous | |
1271 | declaration. | |
1272 | ||
1273 | * call.c (convert_harshness): Handle conversions to references | |
1274 | better. | |
1275 | ||
1276 | * cvt.c (build_up_reference): OK, handle {MIN,MAX}_EXPR *properly*. | |
1277 | ||
1278 | Wed Jan 18 15:21:38 1995 Mike Stump <mrs@cygnus.com> | |
1279 | ||
1280 | * class.c (instantiate_type): Use DECL_CHAIN to walk lists instead, | |
1281 | as the TREE_CHAIN for methods will take us to the next differently | |
1282 | named function, DECL_CHAIN won't. | |
1283 | ||
1284 | Wed Jan 18 14:26:59 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
1285 | ||
1286 | * tree.c (lvalue_p): Handle {MIN,MAX}_EXPR. | |
1287 | ||
1288 | * decl2.c (lang_decode_option): -Wall implies -Wparentheses. | |
1289 | warn_parentheses defaults to 0. | |
1290 | ||
1291 | * decl.c (grokparms): Put back call to require_instantiated_type. | |
1292 | ||
1293 | Tue Jan 17 19:56:15 1995 Mike Stump <mrs@cygnus.com> | |
1294 | ||
1295 | * except.c (exception_section): Use the data section on the rs6000. | |
1296 | Change calling convention for named_section. | |
1297 | ||
1298 | Wed Jan 17 18:20:57 1994 Fergus Henderson <fjh@munta.cs.mu.oz.au> | |
1299 | ||
1300 | * cp-tree.h : Make if (x=0) warn with wall | |
1301 | * parse.y : Make if (x=0) warn with wall | |
1302 | ||
255512c1 JM |
1303 | Tue Jan 17 14:12:00 1995 Jason Merrill <jason@phydeaux.cygnus.com> |
1304 | ||
e1cd6e56 MS |
1305 | * decl.c (BOOL_TYPE_SIZE): BITS_PER_WORD if SLOW_BYTE_ACCESS, |
1306 | BITS_PER_UNIT otherwise. | |
1307 | ||
1308 | * search.c (get_matching_virtual): Don't check the binfo if the | |
1309 | types are the same. | |
1310 | ||
1311 | * cvt.c (cp_convert): Just call truthvalue_conversion to convert to | |
255512c1 JM |
1312 | bool. |
1313 | ||
1314 | Mon Jan 16 13:28:48 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
1315 | ||
e1cd6e56 MS |
1316 | * various: Use boolean_type_node, boolean_true_node, |
1317 | boolean_false_node. | |
1318 | ||
1319 | * search.c (get_matching_virtual): Allow covariant returns that | |
1320 | don't require pointer adjustment. | |
1321 | ||
1322 | * typeck.c (build_conditional_expr): Don't call default_conversion | |
1323 | on ifexp. | |
1324 | ||
1325 | * cvt.c (build_up_reference): Handle MIN_EXPR and MAX_EXPR. | |
1326 | ||
1327 | * decl.c (grokdeclarator): Upgrade warning about &const to pedwarn. | |
1328 | ||
1329 | Sun Jan 15 22:17:32 1995 dcb@lovat.fmrco.COM (David Binderman) | |
1330 | ||
1331 | * pt.c (do_function_instantiation): Free targs once we're done. | |
255512c1 JM |
1332 | |
1333 | Sun Jan 15 22:17:32 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
1334 | ||
e1cd6e56 MS |
1335 | * decl.c (BOOL_TYPE_SIZE): Defaults to BITS_PER_WORD. |
1336 | (init_decl_processing): Use BOOL_TYPE_SIZE instead of CHAR_TYPE_SIZE | |
1337 | for bool. | |
1338 | ||
1339 | Sat Jan 14 05:33:55 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
1340 | ||
1341 | * decl2.c (finish_file): We need to mess up if there are any | |
1342 | variables in the list, not just if there is one with a constructor. | |
1343 | ||
1344 | Fri Jan 13 14:42:55 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
1345 | ||
1346 | * decl.c (duplicate_decls): Propagate DECL_STATIC_{CON,DE}STRUCTOR. | |
1347 | (finish_function): Handle DECL_STATIC_{CON,DE}STRUCTOR. | |
1348 | (finish_function): Trust rest_of_compilation. | |
1349 | ||
1350 | * decl2.c (finish_file): Also call functions designated as static | |
1351 | constructors/destructors. | |
1352 | ||
1353 | * decl.c (grokdeclarator): Allow access decls of operator functions. | |
1354 | (grokparms): Only do convert_for_initialization if the initializer | |
1355 | has a type. | |
1356 | (duplicate_decls): Put back push_obstacks_nochange call. | |
1357 | ||
1358 | * lex.c (real_yylex): Downgrade complaint about the escape sequence | |
1359 | being too large from pedwarn to warning. | |
1360 | ||
1361 | * decl.c (grokdeclarator): Don't complain about long long in system | |
1362 | headers. | |
1363 | ||
1364 | * lex.c (real_yylex): Handle digraphs. | |
1365 | ||
1366 | Thu Jan 12 12:17:24 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
1367 | ||
1368 | * decl.c (init_decl_processing): -f{no-,}strict-prototype only | |
1369 | affects C linkage declarations now. | |
1370 | ||
1371 | * typeck.c (comp_target_types): Grok simple contravariant conversions. | |
1372 | (common_type): t1 and t2 are interchangeable. | |
1373 | ||
1374 | * various: Test return value of comp_target_types differently in | |
1375 | different places; it now returns -1 for a contravariant conversion | |
1376 | (which is fine in symmetric cases). | |
1377 | ||
1378 | (common_type): Prefer long double to double even when | |
1379 | they have the same precision. | |
1380 | ||
1381 | * decl.c (grokparms): Call convert_for_initialization to check | |
1382 | default arguments. | |
1383 | ||
1384 | * init.c (build_new): void_type_node has a size (of 0). | |
1385 | ||
1386 | * decl.c (decls_match): Also check for agreement of TREE_READONLY | |
1387 | and TREE_THIS_VOLATILE. | |
1388 | (push_class_level_binding): Properly handle shadowing of | |
1389 | nested tags by fields. | |
1390 | ||
1391 | * search.c (dfs_pushdecls): Ditto. | |
1392 | ||
1393 | * decl2.c (finish_file): Don't second-guess self-initialization. | |
1394 | ||
1395 | * cvt.c (convert_to_reference): Work with expr directly, rather than | |
1396 | a copy. | |
1397 | ||
1398 | * decl.c (push_overloaded_decl): Only shadow artificial TYPE_DECLs. | |
1399 | ||
1400 | * init.c (add_friend): Downgrade duplicate friend message from | |
1401 | pedwarn to warning. | |
1402 | ||
1403 | * decl.c (duplicate_decls): Push obstacks before calling common_type. | |
1404 | ||
1405 | Thu Jan 12 17:15:21 1995 Michael Ben-Gershon <mybg@cs.huji.ac.il> | |
1406 | ||
1407 | * except.c (push_eh_entry): set LABEL_PRESERVE_P flag for | |
1408 | exception table labels. | |
1409 | (expand_start_all_catch): Ditto. | |
1410 | (expand_leftover_cleanups): Ditto. | |
1411 | (expand_end_catch_block): Ditto. | |
1412 | * except.c (make_first_label): new function. | |
1413 | (expand_start_all_catch): add a call to make_first_label() before | |
1414 | using a label as a jump destination. | |
1415 | (expand_end_all_catch): Ditto. | |
1416 | (expand_leftover_cleanups): Ditto. | |
1417 | (expand_end_catch_block): Ditto. | |
1418 | (expand_builtin_throw): Ditto. | |
1419 | (expand_throw): Ditto. | |
1420 | * except.c: Add ARM processor support for exception handling. | |
1421 | ||
1422 | Thu Jan 12 12:17:24 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
1423 | ||
1424 | (complete_array_type): Copy code from C frontend. | |
1425 | ||
1426 | * lex.c (real_yylex): Don't multiply the length of a wide string | |
1427 | literal by WCHAR_BYTES. | |
1428 | ||
1429 | * decl.c (pushdecl): Check for redeclaration of wchar_t here. | |
1430 | (duplicate_decls): Instead of here. | |
1431 | (define_label): Complain about a label named wchar_t. | |
1432 | (grokdeclarator): Complain about declarations of | |
1433 | operator-function-ids as non-functions. | |
1434 | ||
1435 | * typeck.c (unary_complex_lvalue): Also wrap prefix -- and ++ in | |
1436 | COMPOUND_EXPRs. | |
1437 | (build_unary_op): Wrap unary plus in a NON_LVALUE_EXPR. | |
1438 | ||
1439 | * lex.c (real_yylex): Don't skip whitespace when reading the next | |
1440 | character after ->. | |
1441 | ||
1442 | Wed Jan 11 16:32:49 1995 Mike Stump <mrs@cygnus.com> | |
1443 | ||
1444 | * except.c: Allow cc1plus to be built with native compiler on rs6000. | |
1445 | (expand_start_all_catch): Add assemble_external calls for various | |
1446 | routines we call. | |
1447 | (expand_leftover_cleanups): Ditto. | |
1448 | (expand_start_catch_block): Ditto. | |
1449 | (do_unwind): Ditto. | |
1450 | (expand_builtin_throw): Ditto. | |
1451 | ||
1452 | Wed Jan 11 01:05:42 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
1453 | ||
1454 | * decl.c (pushtag): Only look for a previous decl in the current | |
1455 | binding level. Use explicit global scope in DECL_NESTED_TYPENAME. | |
1456 | ||
1457 | * gxx.gperf: Add __signature__ and __sigof__ keywords. | |
1458 | ||
1459 | * decl2.c (lang_decode_option): -ansi does not set flag_no_asm. It | |
1460 | does set flag_no_gnu_keywords and flag_operator_names. | |
1461 | ||
1462 | * lex.c (init_lex): 'overload' is not a keyword unless -traditional. | |
1463 | Unset extension keywords if -fno-gnu-keywords. | |
1464 | Allow operator names ('bitand') if -foperator-names. | |
1465 | Never unset 'asm'; -fno-asm only affects 'typeof'. | |
1466 | ||
1467 | * decl.c (lookup_name_real): The got_object special lookup only | |
1468 | applies to types. | |
1469 | ||
1470 | Tue Jan 10 18:07:51 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
1471 | ||
1472 | * spew.c (yylex): Also use DECL_NESTED_TYPENAME if got_object is set. | |
1473 | ||
1474 | * parse.y (primary): Unset got_object after all rules that use the | |
1475 | 'object' nonterminal. | |
1476 | (object): Set got_object. | |
1477 | ||
1478 | * lex.h: Declare got_object. | |
1479 | ||
1480 | * decl.c (lookup_name_real): Also lookup names in the context of an | |
1481 | object specified. | |
1482 | ||
1483 | Tue Jan 10 14:30:30 1995 Mike Stump <mrs@cygnus.com> | |
1484 | ||
1485 | * typeck.c (get_member_function_from_ptrfunc): Use ptrdiff_type_node | |
1486 | for things that have to be added to pointers, not size_type. Cures | |
1487 | problems with pointer to members on Alphas. | |
1488 | (build_binary_op_nodefault): Ditto. | |
1489 | (get_delta_difference_: Ditto. | |
1490 | (build_ptrmemfunc): Ditto. | |
1491 | ||
1492 | Tue Jan 10 01:49:25 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
1493 | ||
1494 | * decl.c (pushtag): Stick the new decl in TYPE_NAME before pushing | |
1495 | it. | |
1496 | ||
1497 | * typeck.c (build_component_ref): Don't build up a COMPONENT_REF | |
1498 | when dealing with overloaded member functions; just act like | |
1499 | build_offset_ref. | |
1500 | (commonparms): Remove misleading comment. | |
1501 | ||
1502 | * decl.c (duplicate_decls): Complain about repeated default | |
1503 | arguments here. | |
1504 | (redeclaration_error_message): Instead of here. | |
1505 | (pushdecl): Complain about missing default arguments here. | |
1506 | (grokparms): Instead of here. | |
1507 | (lookup_name_current_level): Also match on DECL_ASSEMBLER_NAME. | |
1508 | (grok_reference_init): Do not complain about missing initializer if | |
1509 | declared 'extern'. | |
1510 | ||
1511 | * search.c (lookup_field): Don't return a TYPE_DECL if there is a | |
1512 | function alternative and want_type is not set. | |
1513 | ||
1514 | Mon Jan 9 18:16:23 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
1515 | ||
1516 | * decl.c (pushtag): Don't set TYPE_NAME to an identifier. Do push | |
1517 | the decl when the type has no TYPE_NAME. | |
1518 | (lookup_nested_type): Don't assume that type has TYPE_NAME set. | |
1519 | (lookup_name_real): Call lookup_field with want_type = | |
1520 | prefer_type. | |
1521 | ||
1522 | * search.c (lookup_field): Handle want_type properly in the presence | |
1523 | of fields with the same name. | |
1524 | ||
1525 | * decl.c (set_nested_typename): Set nested name for file-scope types | |
1526 | to include leading ::. | |
1527 | (pushdecl): Set the nested typename if the decl doesn't have one, | |
1528 | rather than if the type's canonical decl doesn't have one. | |
1529 | ||
1530 | Mon Jan 9 16:48:16 1995 Steve Chamberlain (sac@jonny.cygnus.com) | |
1531 | ||
1532 | * typeck.c (pointer_int_sum): Use offset size when calculating | |
1533 | index expression. | |
1534 | ||
1535 | Mon Jan 9 03:44:33 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
1536 | ||
1537 | * typeck.c (convert_for_assignment): Complain about contravariance | |
1538 | violation here. | |
1539 | (comp_target_types): Instead of here. | |
1540 | (build_unary_op): resolve_offset_ref before checking for a valid | |
1541 | type. | |
1542 | ||
1543 | * spew.c (yylex): Decrement looking_for_typename after we see a | |
1544 | _DEFN. | |
1545 | ||
1546 | * decl.c (pushdecl): Don't install an artificial TYPE_DECL in | |
1547 | IDENTIFIER_LOCAL_VALUE if we already have a decl with that name. | |
1548 | ||
1549 | * typeck.c (convert_for_assignment): Converting pointers to bool | |
1550 | does not need a cast. | |
1551 | ||
1552 | Sun Jan 8 18:16:45 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
1553 | ||
1554 | * class.c (instantiate_type): Initialize nsubsts parm. | |
1555 | ||
1556 | * pt.c (do_function_instantiation): Ditto. | |
1557 | ||
1558 | Sat Jan 7 14:37:05 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
1559 | ||
1560 | * pt.c (tsubst): Use TREE_STATIC instead of DECL_INLINE && | |
1561 | DECL_SAVED_INSNS to determine whether or not we've seen a definition | |
1562 | of this function. | |
1563 | (instantiate_template): Ditto. | |
1564 | ||
1565 | * call.c (convert_harshness): Allow const reference binding when | |
1566 | called from the overloading code, but not when called from | |
1567 | can_convert (since it isn't a conversion). | |
1568 | (convert_harshness): Put back some disabled code. | |
1569 | ||
1570 | Fri Jan 6 14:10:57 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
1571 | ||
1572 | * call.c (convert_harshness): There is no implicit conversion from | |
1573 | void* to other pointer types (unless the parameter is (void*)0). | |
1574 | (convert_harshness): Non-lvalues do not convert to reference types. | |
1575 | ||
1576 | * class.c (finish_struct_methods): Still set | |
1577 | TYPE_HAS_{INT,REAL}_CONVERSION. | |
1578 | ||
1579 | * call.c (can_convert): Don't use aggregate initialization. | |
1580 | ||
1581 | * cp-tree.h: Declare lookup_conversions. | |
1582 | ||
1583 | Thu Jan 5 21:08:00 1995 Mike Stump <mrs@cygnus.com> | |
1584 | ||
1585 | * parse.y (simple_stmt): Fix duplicate case value error messages to | |
1586 | be more readable. | |
1587 | ||
1588 | Wed Jan 4 16:44:19 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
1589 | ||
1590 | * cvt.c (build_type_conversion): Total rewrite to use | |
1591 | convert_harshness instead of reproducing conversion logic here. Now | |
1592 | much shorter. | |
1593 | ||
1594 | * call.c (convert_harshness): Support conversions to bool. | |
1595 | (can_convert): Checks whether a conversion is less harsh | |
1596 | than USER_CODE, for build_type_conversion. | |
1597 | ||
1598 | * search.c (add_conversions): Function for passing to dfs_walk which | |
1599 | adds all the type conversion operators in the current type to a list. | |
1600 | (lookup_conversions): Calls dfs_walk with add_conversions and return | |
1601 | the list. | |
1602 | (dfs_walk): Don't require a qfn. | |
1603 | ||
1604 | * cp-tree.h: Lose CLASSTYPE_CONVERSIONS hackery. | |
1605 | (CLASSTYPE_FIRST_CONVERSION): Points to elt 1 of CLASSTYPE_METHOD_VEC. | |
1606 | ||
1607 | * class.c (finish_struct_bits): Lose CLASSTYPE_CONVERSIONS hackery. | |
1608 | (grow_method): A separate function for building onto the growing | |
1609 | method vector. | |
1610 | (finish_struct_methods): Use it. Put all type conversion operators | |
1611 | right after the constructors. Perhaps we should sort the methods | |
1612 | alphabetically? | |
1613 | ||
1614 | Mon Jan 2 14:42:58 1995 Jason Merrill <jason@phydeaux.cygnus.com> | |
1615 | ||
1616 | * call.c (build_method_call): Lose another misleading shortcut. | |
1617 | ||
1618 | Fri Dec 30 17:57:30 1994 Mike Stump <mrs@cygnus.com> | |
1619 | ||
1620 | * gc.c (build_bltn_desc): Handle bool as a built-in type. | |
1621 | ||
1622 | Fri Dec 30 14:20:21 1994 Mike Stump <mrs@cygnus.com> | |
1623 | ||
1624 | * tree.c (layout_vbasetypes): Ensure that we don't loose alignment | |
1625 | on the complete type because of small virtual bases. | |
255512c1 | 1626 | |
8145f082 MS |
1627 | Fri Dec 30 12:22:29 1994 Mike Stump <mrs@cygnus.com> |
1628 | ||
1629 | * decl.c (n_incomplete): Bump n_incomplete up to int to match C | |
1630 | front end. | |
1631 | (pushdecl): Also count decls pushed that are of a type being defined | |
1632 | as incomplete things. | |
1633 | * class.c (finish_struct): Move hack_incomplete_structures up to | |
1634 | just after we set it as not being defined, so that the decls we | |
1635 | build for RTTI don't count as incomplete. | |
1636 | ||
1637 | Thu Dec 29 18:20:57 1994 Mike Stump <mrs@cygnus.com> | |
1638 | ||
1639 | * pt.c (tsubst): Fix problem with defining constructors in templated | |
1640 | classes with virtual bases. | |
1641 | ||
1642 | Wed Dec 28 08:31:00 1994 Mike Stump <mrs@cygnus.com> | |
1643 | ||
1644 | * parse.y (TYPEID): Strip top-level cv-qualifiers on typeid | |
1645 | expressions. | |
1646 | * gc.c (build_typeid): Ditto. | |
1647 | ||
1648 | Thu Dec 22 17:26:33 1994 Mike Stump <mrs@cygnus.com> | |
1649 | ||
1650 | * cvt.c (build_up_reference): Fix breakage introduced on Nov 29, | |
1651 | don't assert on complex AGGR inits. | |
1652 | ||
1653 | Thu Dec 22 14:32:31 1994 Mike Stump <mrs@cygnus.com> | |
1654 | ||
1655 | * method.c (build_overload_value): Handle pointer to members as | |
1656 | template arguments. | |
1657 | ||
1658 | Thu Dec 22 13:09:07 1994 Mike Stump <mrs@cygnus.com> | |
1659 | ||
1660 | * typeck.c (unary_complex_lvalue): Don't call sorry if we know how | |
1661 | to do take the address of a data member for a pointer to data | |
1662 | member. | |
1663 | ||
1664 | Thu Dec 22 10:04:19 1994 Mike Stump <mrs@cygnus.com> | |
1665 | ||
1666 | * decl.c (grokdeclarator): Use the typedef name for linkage if the | |
1667 | type doesn't otherwise have a name. | |
1668 | ||
1669 | * decl2.c (grokfield): Ditto. | |
1670 | ||
1671 | * class.c (finish_struct): Since we reuse the TYPE_DECL for the | |
1672 | DECL_NAME of enums, structs and classes, we have to avoid trying to | |
1673 | put it in the TYPE_FIELDS again. | |
1674 | ||
1675 | Wed Dec 21 11:07:05 1994 Mike Stump <mrs@cygnus.com> | |
1676 | ||
1677 | * decl2.c (check_classfn): Ignore this parameter on static functions | |
1678 | when checking to see if we match. | |
1679 | ||
1680 | Tue Dec 20 17:47:02 1994 Mike Stump <mrs@cygnus.com> | |
1681 | ||
1682 | * typeck.c (unary_complex_lvalue): Handle address of non-left most | |
1683 | pointers to members by calling get_delta_difference. | |
1684 | ||
5edb8b93 MS |
1685 | Mon Dec 19 22:40:53 1994 Mike Stump <mrs@cygnus.com> |
1686 | ||
1687 | * decl2.c (check_classfn): Don't use decls_match yet, as it modifies | |
1688 | static functions to early. | |
1689 | ||
1690 | Thu Dec 19 22:37:48 1994 Mike Stump <mrs@cygnus.com> | |
1691 | ||
1692 | * method.c (make_thunk): Handle encoding of positive thunk offsets. | |
1693 | ||
1694 | Sat Dec 17 13:29:50 1994 Doug Evans <dje@canuck.cygnus.com> | |
1695 | ||
1696 | * Make-lang.in (.PHONY): Tell GNU make C++ and c++ are phony targets. | |
1697 | ||
6060a796 MS |
1698 | Thu Dec 15 16:32:12 1994 Mike Stump <mrs@cygnus.com> |
1699 | ||
1700 | * decl2.c (check_classfn): Use decls_match to check if this has | |
1701 | already been declared, as the DECL_ASSEMBLER_NAME may have been | |
1702 | changed via asm("new_name"). | |
1703 | * decl.c (decls_match): Make public. | |
1704 | ||
1705 | Thu Dec 15 15:17:55 1994 Mike Stump <mrs@cygnus.com> | |
1706 | ||
1707 | * *.[chy] (expand_aggr_init) Add fourth argument to handle | |
1708 | distinction between = init and (init) style of initializations. | |
1709 | * *.[chy] (finish_decl): Add fifth argument to to handle | |
1710 | distinction between = init and (init) style of initializations. | |
1711 | ||
1712 | Tue Dec 13 19:16:05 1994 Mike Stump <mrs@cygnus.com> | |
1713 | ||
1714 | Fix some random `explicit' bugs. | |
1715 | ||
1716 | * cvt.c (convert_to_reference): Add third parameter to | |
1717 | convert_force. | |
1718 | (convert_force): Ditto. | |
1719 | * call.c (build_method_call): Ditto. | |
1720 | * decl2.c (setup_vtbl_ptr): Ditto. | |
1721 | * init.c (expand_virtual_init): Ditto. | |
1722 | (build_member_call): Ditto. | |
1723 | (build_delete): Ditto. | |
1724 | (build_vbase_delete): Ditto. | |
1725 | * typeck.c (build_component_addr): Ditto. | |
1726 | (build_c_cast): Ditto. | |
1727 | (build_modify_expr): Ditto. | |
1728 | * cp-tree.h (CONV_NONCONVERTING): Ditto. Add so that we can | |
1729 | distinguish the context in which the conversion appears. Add thrid | |
1730 | argument to build_c_cast. | |
1731 | * cvt.c (cp_convert): Pass whether or not we want to consider | |
1732 | non-converting constructors down to build_method_call. | |
1733 | * decl2.c (reparse_absdcl_as_casts): Add third argument to | |
1734 | build_c_cast. | |
1735 | * gc.c (build_m_desc): Ditto. | |
1736 | * init.c (build_new): Ditto. | |
1737 | * parse.y (expr_no_commas): Ditto. | |
1738 | (primary): Ditto. | |
1739 | * typeck.c (build_x_function_call): Ditto. | |
1740 | (build_static_cast): Ditto. | |
1741 | (build_reinterpret_cast): Ditto. | |
1742 | (build_const_cast): Ditto. | |
1743 | (build_c_cast): Ditto. | |
1744 | (build_ptrmemfunc): Ditto. | |
1745 | * typeck2.c (build_functional_cast): Ditto. | |
1746 | * init.c (expand_aggr_init): Added LOOKUP_ONLYCONVERTING to | |
1747 | expand_aggr_init_1 as inits are converted to the destination type. | |
1748 | ||
1749 | Tue Dec 13 16:18:57 1994 Jason Merrill <jason@phydeaux.cygnus.com> | |
1750 | ||
1751 | * Make-lang.in (cc1plus): Depends on c-pragma.o. | |
1752 | ||
1753 | * Makefile.in (OBJ{DEP,}S): Add ../c-pragma.o. | |
1754 | ||
1755 | * lex.c (check_newline): If the #pragma is not recognized by g++, | |
1756 | try machine-specific ones too. | |
1757 | (handle_sysv_pragma): Copied from c-lex.c. | |
1758 | ||
1759 | Mon Dec 12 23:53:06 1994 Mike Stump <mrs@cygnus.com> | |
1760 | ||
1761 | * except.c (expand_throw): Fix Dec 6th change, build_new likes a | |
1762 | reference better. | |
1763 | ||
1764 | Mon Dec 12 18:01:00 1994 Jason Merrill <jason@phydeaux.cygnus.com> | |
1765 | ||
1766 | * typeck.c (build_binary_op): Lose checks on TYPE_PTRMEMFUNC_P with | |
1767 | IS_AGGR_TYPE, since now they will not both be set on the same type. | |
1768 | ||
1769 | * pt.c (do_pending_expansions): Don't clear TREE_PUBLIC on | |
1770 | instantiations controlled by -fexternal-templates. | |
1771 | ||
1772 | * decl.c (duplicate_decls): Don't complain about different values of | |
1773 | __attribute__ ((const)) and ((noreturn)). | |
1774 | ||
81cdf787 DE |
1775 | Fri Dec 9 18:17:37 1994 Doug Evans <dje@cygnus.com> |
1776 | ||
1777 | * Makefile.in (BISONFLAGS): Delete --yacc. | |
1778 | (PARSE_H): Depend on $(PARSE_C), for parallel makes. | |
1779 | (PARSE_C): Undo last patch. | |
1780 | ||
30ffea6b MS |
1781 | Fri Dec 2 10:44:36 1994 Mike Stump (mrs@wombat.gnu.ai.mit.edu) |
1782 | ||
3526f730 | 1783 | * Makefile.in (BISONFLAGS): Add --yacc so that output winds up in |
30ffea6b MS |
1784 | y.tab.c. |
1785 | ||
6060a796 MS |
1786 | Thu Dec 8 17:39:46 1994 Jason Merrill <jason@phydeaux.cygnus.com> |
1787 | ||
1788 | * decl.c (finish_decl): Don't call obscure_complex_init for decls | |
1789 | of indeterminate size. | |
1790 | ||
1791 | Wed Dec 7 16:49:22 1994 Jason Merrill <jason@phydeaux.cygnus.com> | |
1792 | ||
1793 | * decl.c (obscure_complex_init): Function to tweak the decl to | |
1794 | prevent expand_decl from tring to initialize it. | |
1795 | (finish_decl): Use it rather than writing the same code in three | |
1796 | different places. | |
1797 | ||
1798 | * parse.y (bad_parm): Stop trying to support parms without types. | |
1799 | ||
1800 | Wed Dec 7 12:06:56 1994 Mike Stump <mrs@cygnus.com> | |
1801 | ||
1802 | * decl2.c (grokfield): Make asm specs on static member functions | |
1803 | work. | |
1804 | ||
1805 | Tue Dec 6 15:43:20 1994 Mike Stump <mrs@cygnus.com> | |
1806 | ||
1807 | * except.c (expand_throw): Make a copy of the thrown object. | |
1808 | ||
1809 | Tue Dec 6 14:16:34 1994 Jason Merrill <jason@phydeaux.cygnus.com> | |
1810 | ||
1811 | * parse.y: : has lower precedence than =. | |
1812 | ||
1813 | Tue Dec 6 12:46:17 1994 Mike Stump <mrs@cygnus.com> | |
1814 | ||
1815 | * decl.c (pushdecl): Use DECL_NAME of VAR_DECLs to avoid namespace | |
1816 | manglings. | |
1817 | (grokvardecl): Add namespace into variable name. | |
1818 | ||
1819 | Tue Dec 6 11:26:55 1994 Mike Stump <mrs@cygnus.com> | |
1820 | ||
1821 | * decl2.c (current_namespace_id): New routine to transform a simple | |
1822 | name into a name in a namespace. | |
1823 | * decl.c (grokdeclarator): Use it. | |
1824 | * decl2.c (get_namespace_id): Find the name of the current | |
1825 | namespace. | |
1826 | (push_namespace, pop_namespace): Complete out missing | |
1827 | functionality. | |
1828 | ||
1829 | Mon Dec 5 17:11:51 1994 Jason Merrill <jason@phydeaux.cygnus.com> | |
1830 | ||
1831 | * class.c (finish_struct): Don't use LONG_LONG_TYPE_SIZE, as it may | |
1832 | not be defined. Fix warning message for enums and restore warning | |
1833 | for non-enums. | |
1834 | ||
1835 | * decl2.c (push_namespace): Dummy function. | |
1836 | (pop_namespace): Ditto. | |
1837 | (do_namespace_alias): Ditto. | |
1838 | (do_using_decl): Ditto. | |
1839 | (do_using_directive): Ditto. | |
1840 | ||
1841 | * parse.y: New token NSNAME for namespace names. | |
1842 | (extdef): Add namespace, using definitions. | |
1843 | (using_decl): New rule for using declarations. | |
1844 | (any_id): New rule for identifiers with any degree of scoping. | |
1845 | (identifier): Add NSNAME. | |
1846 | (notype_identifier): Ditto. | |
1847 | (component_decl): Add using_decl. | |
1848 | (nested_name_specifier): Add NSNAME SCOPE. | |
1849 | ||
1850 | * typeck.c (convert_for_assignment): Handle conversions between | |
1851 | enums and bool. | |
1852 | ||
1853 | * decl.c (duplicate_decls): Only propagate DECL_MAIN_VARIANT on | |
1854 | FUNCTION_DECLs. | |
1855 | ||
1856 | Mon Dec 5 13:03:16 1994 Mike Stump <mrs@cygnus.com> | |
1857 | ||
1858 | * class.c (finish_struct): Give an error if one tries to declare a | |
1859 | bit-field's size greater than a long long, as the backend will dump. | |
1860 | It is not an error to declare an enum bit-field greater than its | |
1861 | precision. Warn if an enum bit-field is too small to hold all | |
1862 | its values. | |
1863 | ||
1864 | Mon Dec 5 11:41:50 1994 Mike Stump <mrs@cygnus.com> | |
1865 | ||
1866 | * typeck.c (convert_for_assignment): Use cp_convert instead of | |
1867 | convert so that we don't get static casts. | |
1868 | ||
1869 | Sun Dec 4 11:59:01 1994 Mike Stump <mrs@cygnus.com> | |
1870 | ||
1871 | * cvt.c (cp_convert): Don't complain about int->enum conversion if | |
1872 | we are doing static casts. | |
1873 | ||
1874 | Fri Dec 2 18:32:41 1994 Mike Stump <mrs@cygnus.com> | |
1875 | ||
1876 | * error.c (dump_expr): Do something more intelligent with SAVE_EXPRs | |
1877 | when dumping expressions in error messages. | |
1878 | ||
1879 | Fri Dec 2 17:04:27 1994 Mike Stump <mrs@cygnus.com> | |
1880 | ||
1881 | * gc.c (build_dynamic_cast): Change interface to libg++, ensure that | |
1882 | the return type is the right type, and make references work. | |
1883 | ||
1884 | Fri Dec 2 16:36:43 1994 Jason Merrill <jason@phydeaux.cygnus.com> | |
1885 | ||
1886 | * decl.c (poplevel): Don't be confused by function-scope | |
1887 | declarations of non-nested functions. | |
1888 | (duplicate_decls): Propagate DECL_MAIN_VARIANT. | |
1889 | (pushdecl): Use duplicate_decls to copy info from old decl into new | |
1890 | function-scope one rather than doing it here. | |
1891 | ||
1892 | * decl2.c (mark_inline_for_output): Deal with the DECL_MAIN_VARIANT | |
1893 | of this decl, in case this is a function-scope declaration. | |
1894 | ||
1895 | * decl.c (finish_enum): Make sure that the type has the right | |
1896 | precision when we call fixup_*_type. | |
1897 | ||
1898 | Tue Nov 29 19:12:07 1994 Jason Merrill <jason@phydeaux.cygnus.com> | |
1899 | ||
1900 | * cvt.c (build_up_reference): Strip superfluous NOP_EXPRs; we do | |
1901 | want to build up references to rvalues if possible. | |
1902 | (cp_convert): Stick on a NOP_EXPR when converting to the same type. | |
1903 | ||
1904 | Tue Nov 29 11:28:59 1994 Mike Stump <mrs@cygnus.com> | |
1905 | ||
1906 | * parse.y (maybe_raises): Handle throw (). | |
1907 | * parse.y (ansi_raise_identifier): grok type-ids in exception | |
1908 | specifications. | |
1909 | * tree.c (build_exception_variant): Use list compare to check if | |
1910 | two exception specifications match. | |
1911 | * decl.c (duplicate_decls, bad_specifiers): Enhance wording on error | |
1912 | messages. | |
1913 | * call.c (build_method_call): Remove TREE_RAISES. | |
1914 | * cvt.c (convert_to_aggr): Ditto. | |
1915 | * typeck.c (build_function_call_real, convert_arguments): Ditto. | |
1916 | * init.c (expand_aggr_init_1): Ditto. | |
1917 | ||
1918 | Tue Nov 29 09:50:39 1994 Mike Stump <mrs@cygnus.com> | |
1919 | ||
1920 | * except.c: Add support for m68k and mips exception handling | |
1921 | support. | |
1922 | ||
1923 | Tue Nov 29 08:48:33 1994 Mike Stump <mrs@cygnus.com> | |
1924 | ||
1925 | * except.c (expand_end_all_catch): Throw into outer context, if we | |
1926 | fall off end of catch handlers. | |
1927 | ||
db5ae43f MS |
1928 | Mon Nov 28 16:44:41 1994 Mike Stump <mrs@cygnus.com> |
1929 | ||
1930 | * Makefile.in: Make is easier to decide where parse.[ch] will be | |
1931 | built. | |
1932 | ||
af824546 DE |
1933 | Thu Nov 17 20:11:24 1994 Doug Evans <dje@cygnus.com> |
1934 | ||
1935 | * cp/Make-lang.in (CXX_INSTALL_NAME) Use program_transform_name. | |
1936 | (GXX_INSTALL_NAME) Likewise. | |
1937 | (CXX_CROSS_NAME) Use program_transform_cross_name. | |
1938 | (GXX_CROSS_NAME) Likewise. | |
1939 | (c++.install-man): Use program_transform_name on g++.1. | |
1940 | (c++.uninstall): Likewise. | |
1941 | ||
6411126c PE |
1942 | Thu Nov 3 18:48:19 1994 Paul Eggert <eggert@twinsun.com> |
1943 | ||
1944 | * Makefile.in (spew.o, lex.o, pt.o): | |
1945 | Depend on $(srcdir)/parse.h, not parse.h. | |
1946 | ||
db5ae43f MS |
1947 | Mon Nov 28 13:53:03 1994 Mike Stump <mrs@cygnus.com> |
1948 | ||
1949 | * parse.y (THROW): Fix precedence of throw expressions. | |
1950 | ||
1951 | Mon Nov 28 13:15:16 1994 Mike Stump <mrs@cygnus.com> | |
1952 | ||
1953 | * typeck.c (build_unary_op): Allow promotions from bool to int on | |
1954 | unary ~. | |
1955 | ||
1956 | Sun Nov 27 00:16:21 1994 Jason Merrill <jason@phydeaux.cygnus.com> | |
1957 | ||
1958 | * method.c (build_overload_name): Use DECL_ASSEMBLER_NAME for | |
1959 | classes when appropriate. | |
1960 | (build_overload_nested_name): When dealing with a function context, | |
1961 | use ASM_FORMAT_PRIVATE_NAME to tweak the name of the function to | |
1962 | avoid conflicts between local classes of the same name. | |
1963 | ||
1964 | Wed Nov 23 17:59:42 1994 Mike Stump <mrs@cygnus.com> | |
1965 | ||
1966 | * gxx.gperf, parse.y, lex.h, hash.h, lex.c (init_lex), delc.c | |
1967 | (duplicate_decls, grokdeclarator), cp-tree.h: Add support for | |
1968 | `explicit'. | |
1969 | * cvt.c (convert_to_reference, cp_convert, build_type_conversion_1, | |
1970 | build_type_conversion): Use LOOKUP_ONLYCONVERTING in | |
1971 | build_method_calls so that non-converting constructors are not used. | |
1972 | * call.c (build_method_call): If we shouldn't use a non-converting | |
1973 | constructor, then don't. | |
1974 | ||
1975 | Wed Nov 23 14:46:56 1994 Jason Merrill <jason@phydeaux.cygnus.com> | |
1976 | ||
1977 | * call.c (build_method_call): Don't try to synthesize methods yet. | |
1978 | ||
1979 | Tue Nov 22 12:45:21 1994 Jason Merrill <jason@phydeaux.cygnus.com> | |
ea943e1d | 1980 | |
db5ae43f MS |
1981 | * pt.c (push_template_decls): Create CONST_DECLs for template |
1982 | constant parameters, not VAR_DECLs. | |
1983 | ||
1984 | Sat Nov 19 15:28:31 1994 Jim Wilson (wilson@chestnut.cygnus.com) | |
1985 | ||
1986 | * typeck.c (build_binary_op_nodefault): Can shorten shift only if | |
1987 | shift count is less than size in bits of arg0. | |
1988 | ||
1989 | Thu Nov 17 15:30:50 1994 Mike Stump <mrs@cygnus.com> | |
1990 | ||
1991 | * gxx.gperf, hash.h, lex.c (init_lex, real_yylex), parse.y: Add new | |
1992 | ANSI keywords and, and_eq, bitand, bitor, explicit, namespace, not, | |
1993 | not_eq, or, or_eq, typename, using, xor, xor_eq to g++. Still need | |
1994 | to add support for explicit, namespace, typename, and using, support | |
1995 | for the rest is already in. | |
1996 | ||
1997 | Thu Nov 17 10:56:50 1994 Jason Merrill <jason@phydeaux.cygnus.com> | |
1998 | ||
1999 | * typeck2.c (build_m_component_ref): Check the basetype of the | |
2000 | member pointer against the main variant of the object type. | |
2001 | ||
2002 | Mon Nov 14 14:21:52 1994 Jason Merrill <jason@phydeaux.cygnus.com> | |
2003 | ||
2004 | * cvt.c (convert_to_reference): Make sure that the original expr | |
2005 | gets its type back when converting a reference. | |
2006 | ||
2007 | * method.c (build_overload_name): Clear numeric_outputed_need_bar here. | |
2008 | (build_decl_overload): Instead of here. | |
2009 | ||
2010 | Tue Nov 8 17:11:24 1994 Jason Merrill <jason@phydeaux.cygnus.com> | |
2011 | ||
2012 | * cvt.c (cp_convert): Don't build a TARGET_EXPR if we're not in a | |
2013 | function. | |
2014 | ||
2015 | * typeck.c (convert_for_initialization): Handle initialization from | |
2016 | a TARGET_EXPR. | |
2017 | ||
2018 | Sun Nov 6 01:34:24 1994 Jason Merrill (jason@phydeaux.cygnus.com) | |
2019 | ||
2020 | * pt.c (lookup_nested_type_by_name): Fix list-walking logic. | |
2021 | (tsubst): When replacing a TEMPLATE_TYPE_PARM, propagate | |
2022 | TYPE_READONLY and TYPE_VOLATILE from the argument. | |
2023 | (unify): When unifying with a TEMPLATE_TYPE_PARM, remove cv-quals | |
2024 | present in parm from arg. | |
2025 | (type_unification): Strip REFERENCE_TYPE from the argument type. | |
2026 | (unify): Don't strip REFERENCE_TYPE from the argument type. | |
2027 | ||
2028 | Sat Nov 5 22:42:15 1994 Greg McGary (gkm@magilla.cichlid.com) | |
2029 | ||
2030 | * pt.c (do_type_instantiation): Check to see if there's a | |
2031 | IDENTIFIER_TEMPLATE on a class before calling | |
2032 | instantiate_member_templates(). | |
2033 | ||
2034 | Fri Nov 4 19:04:18 1994 Mike Stump <mrs@cygnus.com> | |
2035 | ||
2036 | * gc.c (get_bad_cast_node): New routine to support compile time | |
2037 | throws of bad_cast. | |
2038 | * gc.c (build_dynamic_cast): Support throwing of bad_cast at compile | |
2039 | time. | |
2040 | ||
2041 | Fri Nov 4 11:12:00 1994 Mike Stump <mrs@cygnus.com> | |
2042 | ||
2043 | * except.c: Add hppa support. | |
2044 | ||
2045 | Fri Nov 4 10:50:50 1994 Mike Stump <mrs@cygnus.com> | |
2046 | ||
2047 | * except.c: Add rs6000 support. | |
2048 | ||
2049 | Thu Nov 3 14:24:23 1994 Mike Stump <mrs@cygnus.com> | |
2050 | ||
2051 | * except.c (do_unwind): Add i[34]86 support. | |
2052 | ||
2053 | Thu Nov 3 00:10:46 1994 Jason Merrill (jason@phydeaux.cygnus.com) | |
2054 | ||
2055 | * pt.c (do_pending_expansions): Unset TREE_PUBLIC on implicit | |
2056 | instantiations. | |
2057 | ||
2058 | Wed Nov 2 15:08:24 1994 Kung Hsu (kung@mexican.cygnus.com) | |
2059 | ||
2060 | * decl.c (finish_function): emit types used in method parameters | |
2061 | into symbol table. | |
2062 | ||
2063 | Wed Nov 2 15:05:47 1994 Jason Merrill (jason@phydeaux.cygnus.com) | |
2064 | ||
2065 | * pt.c (process_template_parm): Allow pointer to member function | |
2066 | template parameter types. | |
2067 | (uses_template_parms): Handle pointer to member function | |
2068 | CONSTRUCTORs. | |
2069 | ||
2070 | * g++.c (main): Cast first argument of bzero to (char *). | |
2071 | Pass -lstdc++ instead of -lg++ unless we are invoked as 'g++'. | |
2072 | ||
2073 | Mon Oct 31 14:50:48 1994 Kung Hsu (kung@mexican.cygnus.com) | |
2074 | ||
2075 | * gc.c (build_dynamic_cast): rewrite to make it work. | |
2076 | * class.c (finish_vtbls): build more vtables if flag_rtti is on. | |
2077 | * class.c (modify_all_direct_vtables): ditto. | |
2078 | * init.c (expand_direct_vtbls_init): expand more vtables if | |
2079 | flag_rtti is on. | |
2080 | * decl.c (init_type_desc): add default return. | |
2081 | ||
2082 | Tue Oct 25 17:13:09 1994 Kung Hsu (kung@mexican.cygnus.com) | |
2083 | ||
2084 | * tree.c (debug_binfo): get rid of the initial size entry of | |
2085 | vtable. | |
2086 | * cp-tree.h: change flag_dossier to flag rtti, define type | |
2087 | descriptor type nodes. | |
2088 | * decl.c (init_type_desc): new function to initialize type | |
2089 | descriptor type nodes. | |
2090 | * decl.c (record_builtin_type): change flag_dossier to flag_rtti. | |
2091 | * lex.c (init_lex): ditto. | |
2092 | * decl.c : change variable flag_dossier to flag_rtti. | |
2093 | * decl.c (duplicate_decls): get rid initial size entry of vtable. | |
2094 | * decl.c (hack_incomplete_structures): take out assert 164. | |
2095 | * search.c (get_abstract_virtuals_1): ditto. | |
2096 | * search.c (dfs_init_vbase_pointers): change CLASSTYPE_DOSSIER to | |
2097 | CLASSTYPE_RTTI. | |
2098 | * parse.y: ditto. | |
2099 | * class.c (prepare_fresh_vtable): for virtual bases, get right | |
2100 | offset. | |
2101 | * class.c (add_virtual_function): change flag_dossier to | |
2102 | flag_rtti. | |
2103 | * class.c (modify_one_vtable): modify the right rtti entry. | |
2104 | * class.c (override_one_vtable): get rid of size entry. | |
2105 | * class.c (finish_struct): change flag_dossier to flag_rtti, and | |
2106 | build extra vtables, build type descriptors for polymorphic | |
2107 | classes. | |
2108 | * gc.c (build_headof): make headof() works correctly with new | |
2109 | rtti. | |
2110 | * gc.c (build_typeid): make this function work with new rtti. | |
2111 | * gc.c (get_typeid): make this function work with new rtti. | |
2112 | * gc.c (build_bltn_desc): new function for new rtti. | |
2113 | * gc.c (build_user_desc): ditto. | |
2114 | * gc.c (build_class_desc): ditto. | |
2115 | * gc.c (build_ptr_desc): ditto. | |
2116 | * gc.c (build_attr_desc): ditto. | |
2117 | * gc.c (build_func_desc): ditto. | |
2118 | * gc.c (build_ptmf_desc): ditto. | |
2119 | * gc.c (build_ptmd_desc): ditto. | |
2120 | * gc.c (build_t_desc): ditto. | |
2121 | * gc.c : comment out old build_t_desc, build_i_desc, build_m_desc. | |
2122 | ||
2123 | Tue Oct 25 13:37:41 1994 Jason Merrill (jason@phydeaux.cygnus.com) | |
2124 | ||
2125 | * call.c (convert_harshness): Check for TREE_UNSIGNED differences | |
2126 | after checking for integral conversions. | |
ea943e1d | 2127 | |
eae89e04 JM |
2128 | Sun Oct 23 13:19:55 1994 Jason Merrill (jason@phydeaux.cygnus.com) |
2129 | ||
db5ae43f MS |
2130 | * decl2.c: Declare flag_access_control. |
2131 | (struct lang_f_options): Add access-control. | |
2132 | * expr.c (cplus_expand_expr, NEW_EXPR): Unset flag_access_control | |
2133 | for the call to expand_aggr_init to copy the object out of the | |
2134 | pcc_struct_return slot. | |
2135 | * search.c (compute_access): if (!flag_access_control) return | |
2136 | access_public. | |
eae89e04 JM |
2137 | |
2138 | Fri Oct 21 00:32:54 1994 Jason Merrill (jason@phydeaux.cygnus.com) | |
2139 | ||
db5ae43f MS |
2140 | * lex.c (cons_up_default_function): Don't try to defer method |
2141 | synthesis now. | |
2142 | ||
2143 | * decl.c (init_decl_processing): Use __pure_virtual for abort_fndecl | |
2144 | instead of abort, since the OSF/1 dynamic linker doesn't like to see | |
2145 | relocation entries for abort. | |
eae89e04 | 2146 | |
db5ae43f MS |
2147 | * tree.c (array_type_nelts_total): Use sizetype, not |
2148 | integer_type_node. | |
2149 | (array_type_nelts_top): Ditto. | |
2150 | ||
2151 | Thu Oct 20 15:48:27 1994 Mike Stump <mrs@cygnus.com> | |
2152 | ||
2153 | * decl.c (grokdeclarator): Added handling for catch parameters | |
2154 | (CATCHPARM). | |
2155 | * except.c (expand_start_catch_block): Use the new CATCHPARM context | |
2156 | instead of NORMAL. | |
2157 | * except.c (expand_throw): Don't let convert_to_reference complain | |
2158 | about what we are doing. | |
2159 | ||
2160 | Thu Oct 20 12:55:24 1994 Jim Wilson (wilson@cygnus.com) | |
2161 | ||
2162 | * method.c (emit_thunk): Call instantiate_virtual_regs. | |
2163 | ||
2164 | Wed Oct 19 14:15:33 1994 Mike Stump <mrs@cygnus.com> | |
2165 | ||
2166 | * except.c (expand_exception_blocks): Make sure throw code doesn't | |
2167 | get put in function that won't be output. | |
eae89e04 JM |
2168 | |
2169 | Mon Oct 17 18:03:15 1994 Jason Merrill (jason@phydeaux.cygnus.com) | |
2170 | ||
db5ae43f MS |
2171 | * decl.c (init_decl_processing): Make alloca a builtin. |
2172 | ||
2173 | Thu Oct 27 21:10:25 1994 Craig Burley (craig@burley) | |
2174 | ||
2175 | * g++.c (main): Only decrement "added" and set "library" to | |
2176 | NULL when "library" != NULL (just like 940829 fix). | |
eae89e04 | 2177 | |
c199879d MS |
2178 | Mon Oct 17 15:56:11 1994 Mike Stump <mrs@cygnus.com> |
2179 | ||
2180 | * except.c (expand_start_catch_block): Make sure the false label | |
2181 | gets onto the permanent obstack, as it is used for the exception | |
2182 | table. | |
2183 | ||
13306d4f MS |
2184 | Fri Oct 14 18:54:48 1994 Mike Stump <mrs@cygnus.com> |
2185 | ||
2186 | * class.c (modify_one_vtable): Since the DECL_CONTEXT of fndecl can | |
2187 | be set just below, use current_fndecl instead. | |
2188 | ||
db5ae43f MS |
2189 | Fri Oct 14 15:12:22 1994 Jason Merrill (jason@phydeaux.cygnus.com) |
2190 | ||
2191 | * init.c (expand_aggr_vbase_init_1): Don't call expand_aggr_init_1 | |
2192 | with LOOKUP_SPECULATIVELY. | |
2193 | (expand_default_init): Abort if build_method_call returns NULL_TREE. | |
2194 | ||
2195 | * typeck.c (build_modify_expr): Don't just build a MODIFY_EXPR if | |
2196 | the rhs is a TARGET_EXPR. | |
2197 | ||
2198 | * parse.y (left_curly): Anonymous types are not affected by #pragma | |
2199 | interface/implementation. | |
2200 | ||
2201 | * method.c (synthesize_method): Don't call setup_vtbl_ptr for the | |
2202 | default constructor if it isn't needed. | |
2203 | ||
2204 | * lex.c (cons_up_default_function): Do synthesize methods for | |
2205 | anonymous types if necessary. | |
2206 | ||
2f4f907d JM |
2207 | Thu Oct 13 17:44:55 1994 Jason Merrill (jason@phydeaux.cygnus.com) |
2208 | ||
db5ae43f | 2209 | * method.c (build_decl_overload): Set numeric_outputed_need_bar to 0. |
2f4f907d JM |
2210 | |
2211 | Wed Oct 12 13:27:57 1994 Jason Merrill (jason@phydeaux.cygnus.com) | |
2212 | ||
db5ae43f MS |
2213 | * typeck.c (build_modify_expr): Understand how to copy an aggregate. |
2214 | ||
2215 | * init.c (expand_default_init): Ditto. Also remove some of the | |
2216 | crufty code that assumes methods will not be synthesized properly. | |
2217 | ||
2218 | * lex.c (cons_up_default_function): If the containing type has no | |
2219 | name, these functions should never need to be called, so just | |
2220 | declare them. | |
2f4f907d | 2221 | |
db5ae43f MS |
2222 | * lex.c (real_yylex): Use HOST_BITS_PER_WIDE_INT to determine the |
2223 | bitmask for lexing character constants. | |
2224 | ||
2225 | * call.c (build_method_call): Disable code that tries to do tricky | |
2226 | stuff with a default parameter that is a constructor call, but | |
2227 | actually does other tricky stuff that breaks things. | |
2f4f907d JM |
2228 | |
2229 | Wed Oct 12 16:14:01 1994 Benoit Belley <belley@cae.ca> | |
2230 | ||
db5ae43f MS |
2231 | * decl.c (finish_enum): Disable code which forces enums to be signed, |
2232 | since this conflicts with their use as bitfields. type_promotes_to | |
2233 | handles promotion of enums of underlying unsigned types to signed | |
2234 | integer types. | |
2f4f907d JM |
2235 | |
2236 | Wed Oct 12 13:24:03 1994 Jason Merrill (jason@phydeaux.cygnus.com) | |
2237 | ||
db5ae43f MS |
2238 | * cvt.c (type_promotes_to): Also promote enums to long if |
2239 | appropriate. | |
2f4f907d | 2240 | |
db5ae43f MS |
2241 | * typeck.c (default_conversion): Don't expect type_promotes_to to |
2242 | return a main variant. | |
2f4f907d JM |
2243 | |
2244 | Wed Oct 12 12:19:45 1994 Jason Merrill (jason@phydeaux.cygnus.com) | |
2245 | ||
db5ae43f MS |
2246 | * call.c (build_scoped_method_call): Don't lose side effects in the |
2247 | object expression when calling a non-existent destructor. | |
2f4f907d JM |
2248 | |
2249 | Fri Sep 2 19:05:21 1994 Rohan Lenard (rjl@iassf.easams.com.au) | |
2250 | ||
db5ae43f MS |
2251 | * call.c (build_scoped_method_call): Remove erroneous error message |
2252 | when destructor call is written as a scoped call. | |
2f4f907d | 2253 | |
252b87c7 | 2254 | Tue Oct 11 23:48:31 1994 Jason Merrill (jason@phydeaux.cygnus.com) |
db5ae43f MS |
2255 | |
2256 | * various: Cast pointer arguments to bzero and bcopy to char *. | |
252b87c7 | 2257 | |
13306d4f MS |
2258 | Tue Oct 11 19:34:32 1994 Mike Stump <mrs@cygnus.com> |
2259 | ||
2260 | * class.c (get_derived_offset): Added a type parameter to limit how | |
2261 | far up the CLASSTYPE_VFIELD_PARENT chain we search. | |
2262 | * class.c (modify_one_vtable, fixup_vtable_deltas): When forming the | |
2263 | offset to put into the vtable for the this parameter, make sure we | |
2264 | don't offset from a parent of the DECL_CONTEXT of the function. | |
2265 | ||
db5ae43f MS |
2266 | Tue Oct 11 16:10:52 1994 Jason Merrill (jason@phydeaux.cygnus.com) |
2267 | ||
2268 | * pt.c (do_function_instantiation): Set DECL_EXTERNAL and | |
2269 | TREE_STATIC when setting DECL_INTERFACE_KNOWN. | |
2270 | (do_type_instantiation): Ditto. | |
2271 | ||
2272 | * lex.c (cons_up_default_function): Set DECL_INTERFACE_KNOWN, | |
2273 | DECL_EXTERNAL and TREE_STATIC as appropriate. | |
2274 | ||
2275 | * decl2.c (finish_file): Also synthesize methods that don't have | |
2276 | DECL_EXTERNAL set. Set interface_unknown before doing so. | |
2277 | ||
2278 | * decl.c (start_function): If DECL_INTERFACE_KNOWN is set on the | |
2279 | function decl, don't muck with TREE_PUBLIC and DECL_EXTERNAL. | |
2280 | ||
cba8ba35 JM |
2281 | Mon Oct 10 00:56:53 1994 Jason Merrill (jason@phydeaux.cygnus.com) |
2282 | ||
db5ae43f MS |
2283 | * lex.c (cons_up_default_function): Mark methods in a template class |
2284 | as template instances. Store the values of interface_unknown and | |
2285 | interface_only for do_pending_inlines. | |
2286 | (do_pending_inlines): Use them. | |
2287 | ||
2288 | * decl2.c (finish_file): If we haven't seen a definition of a | |
2289 | function declared static, make the decl non-PUBLIC so compile_file | |
2290 | can give an error. | |
cba8ba35 JM |
2291 | |
2292 | Sun Oct 9 02:42:29 1994 Jason Merrill (jason@phydeaux.cygnus.com) | |
2293 | ||
db5ae43f MS |
2294 | * method.c (do_build_copy_constructor): Handle anonymous unions. |
2295 | (do_build_assign_ref): Ditto. | |
2296 | (largest_union_member): Move from lex.c. | |
2297 | ||
2298 | Sat Oct 8 14:59:43 1994 Jason Merrill (jason@phydeaux.cygnus.com) | |
2299 | ||
2300 | Re-implement g++'s vague linkage independent of TREE_PUBLIC. | |
2301 | * pt.c (instantiate_member_templates): Lose redundant | |
2302 | -fexternal-templates handling. | |
2303 | (tsubst): Set TREE_PUBLIC and DECL_EXTERNAL on new decls. Don't set | |
2304 | TREE_STATIC or DECL_INTERFACE_KNOWN. | |
2305 | (do_pending_expansions): Predicate on DECL_INTERFACE_KNOWN instead | |
2306 | of DECL_EXTERNAL for explicit instantiations. | |
2307 | (do_function_instantiation): Do the new thing. | |
2308 | (do_type_instantiation): Ditto. | |
2309 | (instantiate_template): Deal with member templates defined in a .cc | |
2310 | file with -fexternal-templates. | |
2311 | * except.c (expand_exception_blocks): Use DECL_LINKAGE_KNOWN to | |
2312 | decide whether to stick builtin_throw here. | |
2313 | * decl2.c (import_export_inline): Predicate on DECL_INTERFACE_KNOWN | |
2314 | rather than TREE_PUBLIC. Generally fix rules. | |
2315 | (finish_file): Use DECL_INITIAL to determine whether or not a method | |
2316 | has been synthesized, rather than TREE_ASM_WRITTEN. | |
2317 | * decl.c (warn_extern_redeclared_static): Use DECL_PUBLIC instead of | |
2318 | TREE_PUBLIC. | |
2319 | (pushdecl): Ditto. | |
2320 | (duplicate_decls): Ditto. Deal with DECL_DECLARED_STATIC and | |
2321 | DECL_INTERFACE_KNOWN. | |
2322 | (redeclaration_error_message): Fix checking for conflicting linkage. | |
2323 | (define_function): Set DECL_INTERFACE_KNOWN. | |
2324 | (grokfndecl): Function decls are PUBLIC until we are sure about | |
2325 | their linkage. Set DECL_DECLARED_STATIC as needed. | |
2326 | (start_function): Deal with linkage. Move pushdecl after linkage | |
2327 | magic. | |
2328 | (finish_function): Don't set TREE_ASM_WRITTEN on discarded inlines. | |
2329 | * cp-tree.h (lang_decl_flags): Add interface_known and | |
2330 | declared_static. | |
2331 | (DECL_INTERFACE_KNOWN): New macro. | |
2332 | (DECL_DECLARED_STATIC): New macro. | |
2333 | (DECL_PUBLIC): New macro. | |
2334 | ||
2335 | Clean up bogus use of TREE_PUBLIC. | |
2336 | * class.c (alter_access): Fix mistaken use of TREE_PUBLIC (it | |
2337 | doesn't correspond to TREE_PROTECTED and TREE_PRIVATE). | |
2338 | * init.c (do_friend): Don't arbitrarily set TREE_PUBLIC. | |
cba8ba35 JM |
2339 | |
2340 | Wed Oct 5 13:44:41 1994 Jason Merrill (jason@phydeaux.cygnus.com) | |
2341 | ||
db5ae43f MS |
2342 | * call.c (build_overload_call_real): Don't immediately do |
2343 | array->pointer conversion. | |
cba8ba35 | 2344 | |
db5ae43f MS |
2345 | * pt.c (type_unification): If not passing to a reference, strip |
2346 | cv-quals. Also handle array->pointer conversion. | |
cba8ba35 JM |
2347 | |
2348 | Tue Oct 4 17:45:37 1994 Jason Merrill (jason@phydeaux.cygnus.com) | |
2349 | ||
db5ae43f MS |
2350 | * decl.c (grokdeclarator): Don't warn about applying const to a |
2351 | const typedef or template type parameter. | |
2352 | ||
2353 | * decl2.c (finish_file): Also synthesize methods after walking the | |
2354 | vtables. Ugly ugly ugly. | |
cba8ba35 JM |
2355 | |
2356 | Mon Oct 3 15:02:41 1994 Jason Merrill (jason@phydeaux.cygnus.com) | |
2357 | ||
db5ae43f MS |
2358 | * various: Remove lingering remnants of old exception handling code. |
2359 | ||
2360 | * decl2.c (finish_file): Synthesize methods before walking the | |
2361 | vtables, so that the vtables get emitted as needed. | |
2362 | ||
2363 | * decl.c (shadow_tag): Remove obsolete code for pushing tags and | |
2364 | dealing with exceptions. | |
2365 | ||
2366 | Mon Oct 3 13:05:27 1994 Ian Lance Taylor <ian@sanguine.cygnus.com> | |
2367 | ||
2368 | * Make-lang.in (g++-cross): Depend upon version.o and $(LIBDEPS). | |
2369 | ||
2370 | Mon Oct 3 02:59:28 1994 Jason Merrill (jason@phydeaux.cygnus.com) | |
2371 | ||
2372 | * decl2.c (finish_file): Fix inline handling. | |
cba8ba35 JM |
2373 | |
2374 | Sun Oct 2 00:21:56 1994 Jason Merrill (jason@phydeaux.cygnus.com) | |
2375 | ||
db5ae43f MS |
2376 | * decl.c (grokdeclarator): Handle redundant scope even better. |
2377 | ({push,pop}_cp_function_context): Take toplev parameter. | |
cba8ba35 | 2378 | |
db5ae43f MS |
2379 | * method.c (synthesize_method): Pass toplev parameter to |
2380 | {push,pop}_cp_function_context depending on decl_function_context | |
2381 | (fndecl). | |
cba8ba35 | 2382 | |
db5ae43f MS |
2383 | * typeck.c (build_x_unary_op): Unary & on OFFSET_REFs is always the |
2384 | built-in version. | |
cba8ba35 | 2385 | |
db5ae43f MS |
2386 | * method.c (synthesize_method): Don't be confused by __in_chrg |
2387 | parameter. | |
b3738072 | 2388 | |
db5ae43f | 2389 | * class.c (popclass): Set C_C_D like start_function does. |
b3738072 | 2390 | |
db5ae43f | 2391 | * decl.c (grokdeclarator): Handle redundant scope better. |
81613e43 | 2392 | |
db5ae43f MS |
2393 | * parse.y (expr_or_declarator): Add '(' expr_or_declarator ')' rule. |
2394 | (direct_notype_declarator): Ditto. | |
2395 | (complex_direct_notype_declarator): Remove it here. | |
81613e43 | 2396 | |
db5ae43f | 2397 | Sat Oct 1 21:42:18 1994 Jason Merrill (jason@deneb.cygnus.com) |
44c5421f | 2398 | |
db5ae43f MS |
2399 | * init.c (resolve_offset_ref): Fix types used in resolving .* |
2400 | expressions. | |
2401 | ||
2402 | Sat Oct 1 15:18:49 1994 Jason Merrill (jason@phydeaux.cygnus.com) | |
2403 | ||
2404 | Beginnings of work to synthesize methods only when needed. | |
2405 | * call.c (build_method_call): Synthesize methods as necessary | |
2406 | (currently never necessary). | |
2407 | * class.c (popclass): Don't try to set C_C_D here, as it'll end up | |
2408 | on the wrong obstack. | |
2409 | * decl.c (push_cp_function_context): Mostly copied from | |
2410 | push_c_function_context. | |
2411 | (pop_cp_function_context): Similarly. | |
2412 | (finish_function): Reverse order of poplevel and pop_nested_class so | |
2413 | that current_class_decl is restored properly. | |
2414 | (start_function): Ditto. | |
2415 | (finish_function): Add parameter 'nested'. Don't call | |
2416 | permanent_allocation if (nested). | |
2417 | * various: Pass extra parameter to finish_function. | |
2418 | * decl2.c (finish_file): Reorganize end-of-file inline handling, | |
2419 | synthesizing methods as necessary. | |
2420 | * lex.c (cons_up_default_function): Call mark_inline_for_output. | |
2421 | Only synthesize methods immediately if #pragma implementation | |
2422 | (currently disabled). | |
2423 | (do_pending_inlines): Call synthesize_method. | |
2424 | * method.c (synthesize_method): New function; all method synthesis | |
2425 | goes through here. Calls do_build_assign_ref and | |
2426 | do_build_copy_constructor. | |
2427 | (build_default_constructor): Remove. | |
2428 | (build_dtor): Ditto. | |
2429 | (build_assign_ref): Rename to do_build_assign_ref and remove stuff | |
2430 | done by synthesize_method. | |
2431 | (build_copy_constructor): Similarly. | |
44c5421f | 2432 | |
eac293a1 MS |
2433 | Thu Sep 29 16:58:52 1994 Mike Stump <mrs@cygnus.com> |
2434 | ||
2435 | * typeck.c (c_expand_return): Use magic so the backend can fixup the | |
2436 | assignment into the return register, so cleanups won't clobber it. | |
2437 | ||
2438 | Thu Sep 29 13:08:50 1994 Jason Merrill (jason@deneb.cygnus.com) | |
2439 | ||
2440 | * method.c (hack_identifier): Don't call assemble_external for | |
2441 | template decls. | |
2442 | ||
2443 | * decl.c (finish_decl): Also end temporary allocation if the decl in | |
2444 | question has a type of error_mark_node. | |
2445 | ||
6060a796 | 2446 | Wed Sep 28 21:45:00 1994 Mike Stump <mrs@cygnus.com> |
eac293a1 MS |
2447 | |
2448 | * typeck.c (build_modify_expr): When optimizing ?: on lhs, make sure | |
2449 | that if the ?: was a reference type, that the subparts will be also. | |
2450 | ||
2451 | Wed Sep 28 16:14:04 1994 Brendan Kehoe (brendan@lisa.cygnus.com) | |
2452 | ||
2453 | * except.c (register_exception_table): Use Pmode, not PTRmode. | |
2454 | ||
2455 | Fri Sep 23 13:54:27 1994 Jason Merrill (jason@deneb.cygnus.com) | |
2456 | ||
2457 | * lex.c (do_pending_inlines): Do method synthesis after the | |
2458 | pending_inlines have been reversed. | |
2459 | ||
f376e137 MS |
2460 | Thu Sep 22 12:53:03 1994 Per Bothner (bothner@kalessin.cygnus.com) |
2461 | ||
2462 | * decl2.c (finish_file): Fix Brendan's fix: Only call | |
2463 | register_exception_table if there is a non-empty exception table. | |
2464 | ||
2465 | Thu Sep 22 12:03:46 1994 Brendan Kehoe (brendan@lisa.cygnus.com) | |
2466 | ||
2467 | * decl2.c (finish_file): Only do register_exception_table if | |
2468 | -fhandle-exceptions is being used. | |
2469 | ||
2470 | Wed Sep 21 19:01:51 1994 Per Bothner (bothner@kalessin.cygnus.com) | |
2471 | ||
2472 | * except.c (output_exception_table_entry): Simplify | |
2473 | by using assemble_integer. | |
2474 | (build_exception_table): Change to return a count. | |
2475 | Cleanup to use standard macros, instead of hard-wired | |
2476 | sparc asm format. Don't make __EXCEPTION_TABLE__ global. | |
2477 | (register_exception_table): New function. Generate call to builtin. | |
2478 | * decl2.c (finish_file): Call register_exception_table. | |
2479 | * cp-tree.h (build_exception_table): Fix prototype. | |
2480 | ||
2481 | Wed Sep 21 13:20:42 1994 Brendan Kehoe (brendan@lisa.cygnus.com) | |
2482 | ||
2483 | * tree.c (break_out_calls): Don't try to duplicate the DECL_INITIAL. | |
2484 | ||
2485 | * decl2.c (delete_sanity): Give an error at trying to delete a | |
2486 | function. | |
2487 | ||
2488 | Wed Sep 21 11:47:10 1994 Jason Merrill (jason@deneb.cygnus.com) | |
2489 | ||
2490 | * lex.c (cons_up_default_function): Mark synthesized destructors | |
2491 | inline. | |
2492 | ||
2493 | * decl.c (duplicate_decls): Ignore redeclarations of wchar_t as | |
2494 | something other than __wchar_t, complaining if -pedantic and not in | |
2495 | a system header. | |
2496 | ||
2497 | Tue Sep 20 09:43:28 1994 Jason Merrill (jason@deneb.cygnus.com) | |
2498 | ||
2499 | * decl.c (xref_tag): Set up BINFO_INHERITANCE_CHAIN on base binfos | |
2500 | here. | |
2501 | ||
2502 | * typeck.c (build_modify_expr): Require complete type after checking | |
2503 | for error_mark_node. | |
2504 | ||
2505 | * call.c (build_method_call): Print parmtypes when complaining of | |
2506 | ambiguous call. | |
2507 | ||
2508 | * typeck.c (build_modify_expr): Handle assignment to array from | |
2509 | non-array. | |
2510 | ||
2511 | * decl.c (lookup_name_real): Deal with got_scope == error_mark_node. | |
2512 | ||
2513 | * call.c (build_method_call): Don't bother with the exact match. | |
2514 | ||
2515 | Mon Sep 19 00:51:39 1994 Jason Merrill (jason@deneb.cygnus.com) | |
2516 | ||
2517 | * init.c (expand_aggr_init): If we munge the type of the variable, | |
2518 | also munge the type of the initializer. | |
2519 | ||
2520 | * decl.c (grokdeclarator): Use <= when comparing to RID_LAST_MODIFIER. | |
2521 | (init_decl_processing): Push artificial declaration of wchar_t so | |
2522 | people don't have to declare it before they can use it. | |
2523 | ||
2524 | * error.c (cp_line_of): return lineno in lieu of 0. | |
2525 | ||
2526 | * typeck.c (convert_for_assignment): Handle conversion of pmfs to | |
2527 | int and bool. | |
2528 | (build_component_ref): Fold the COMPONENT_REF in case it can be | |
2529 | reduced. | |
2530 | ||
2531 | * typeck2.c (store_init_value): Don't pedwarn about non-constant | |
2532 | bracketed initializers for automatic variables. | |
2533 | ||
2534 | Sun Sep 18 10:12:12 1994 Jason Merrill (jason@deneb.cygnus.com) | |
2535 | ||
2536 | * error.c (dump_decl): Don't say `typedef enum foo foo'. | |
2537 | ||
2538 | * decl.c (start_decl): Don't set TREE_PUBLIC on template decls just | |
2539 | because they're affected by #pragma i/i. We'll deal with that when | |
2540 | they get instantiated. | |
2541 | ||
2542 | * typeck.c (build_unary_op): Clean up cruft in ADDR_EXPR case. | |
2543 | ||
2544 | * class.c (instantiate_type): Set TREE_CONSTANT on instantiated | |
2545 | ADDR_EXPRs if appropriate. | |
2546 | ||
2547 | * decl.c (build_ptrmemfunc_type): Unset IS_AGGR_TYPE on pmf types. | |
2548 | ||
2549 | * typeck.c (build_ptrmemfunc): Handle &overloaded_method as an | |
2550 | initializer properly. | |
2551 | * typeck2.c (digest_init): Ditto. | |
2552 | ||
2553 | * tree.c (cp_build_type_variant): Like c_build_type_variant, except | |
2554 | it uses build_cplus_array_type. | |
2555 | * *.c: Use cp_build_type_variant instead of c_build_type_variant. | |
2556 | ||
2557 | * pt.c (do_type_instantiation): Don't try to instantiate nested | |
db5ae43f | 2558 | enums. |
f376e137 MS |
2559 | |
2560 | Tue Sep 13 10:56:58 1994 Jason Merrill (jason@deneb.cygnus.com) | |
2561 | ||
2562 | * cvt.c (build_up_reference): Handle preincrement and predecrement | |
db5ae43f | 2563 | properly. |
f376e137 MS |
2564 | |
2565 | Tue Sep 13 09:51:59 1994 Brendan Kehoe (brendan@lisa.cygnus.com) | |
2566 | ||
2567 | * decl.c (finish_decl): Only lay out the rtl for DECL if it is, in | |
2568 | fact, static. | |
2569 | ||
2570 | Mon Sep 12 14:40:30 1994 Brendan Kehoe (brendan@lisa.cygnus.com) | |
2571 | ||
2572 | * decl.c (finish_decl): Lay out the rtl for DECL before doing | |
2573 | grok_reference_init, in case it's static. | |
2574 | ||
2575 | Mon Sep 12 12:45:38 1994 Jason Merrill (jason@deneb.cygnus.com) | |
2576 | ||
2577 | * class.c (finish_struct): Don't synthesize constructors if the | |
2578 | class has a field with the same name as the class. Don't die on | |
2579 | classes with no constructors or destructors. Don't die if the head | |
2580 | and tail of the class are in different files. | |
2581 | ||
2582 | * decl.c (grokdeclarator): Don't treat a function pointer field | |
2583 | with the same name as the class as a constructor. | |
2584 | ||
2585 | Fri Sep 9 13:17:00 1994 Jason Merrill (jason@deneb.cygnus.com) | |
2586 | ||
2587 | * typeck.c (build_c_cast): Pull constant values out of their | |
2588 | variables here. | |
2589 | ||
2590 | * decl.c (duplicate_decls): Only propagate DECL_CHAIN in | |
2591 | FUNCTION_DECLs and TEMPLATE_DECLs. | |
2592 | ||
2593 | Thu Sep 8 10:07:48 1994 Jason Merrill (jason@deneb.cygnus.com) | |
2594 | ||
2595 | * decl.c (duplicate_decls): Propagate DECL_CHAIN in all DECLs that | |
2596 | have it. | |
2597 | ||
2598 | * pt.c (unify): REALs and INTEGERs only unify with their own genus. | |
2599 | (instantiate_member_templates): Don't muck with DECL_EXTERNAL and | |
2600 | TREE_PUBLIC unless -fexternal-templates. | |
2601 | ||
2602 | Wed Sep 7 13:17:10 1994 Jason Merrill (jason@deneb.cygnus.com) | |
2603 | ||
2604 | * pt.c (do_type_instantiation): Call instantiate_member_templates. | |
2605 | Deal with specializations. | |
2606 | (tsubst): Don't stick the mangled name in DECL_NAME for function | |
2607 | instantiations. Don't push them, either. | |
2608 | ||
2609 | * decl2.c (grokfield): Move code for generating the | |
2610 | DECL_ASSEMBLER_NAME for static members from here. | |
2611 | * method.c (build_static_name): To here. | |
2612 | * decl.c (grokvardecl): Call build_static_name. | |
2613 | (duplicate_decls): Keep old DECL_ASSEMBLER_NAME. | |
2614 | ||
2615 | Mon Sep 5 12:49:18 1994 Jason Merrill (jason@deneb.cygnus.com) | |
2616 | ||
2617 | * call.c (build_method_call): if -Wsynth, warn when selecting | |
2618 | synthesized op= over user-supplied one cfront would select. | |
2619 | * decl2.c (lang_decode_option): Handle -Wsynth. | |
2620 | ||
2621 | Fri Sep 2 15:11:59 1994 Jason Merrill (jason@deneb.cygnus.com) | |
2622 | ||
2623 | * decl.c (finish_enum): Overhaul to fix several bugs. | |
2624 | (start_enum): Disable useless code. | |
2625 | ||
2626 | Thu Sep 1 16:04:54 1994 Jason Merrill (jason@deneb.cygnus.com) | |
2627 | ||
2628 | * typeck.c (c_expand_return): Warn about returning a reference to a | |
2629 | temporary. | |
2630 | (convert_arguments): Increment argument counter when using default | |
2631 | arguments, too. | |
2632 | ||
2633 | Wed Aug 31 14:29:22 1994 Jason Merrill (jason@deneb.cygnus.com) | |
2634 | ||
2635 | * decl.c (finish_decl): If the type of decl is error_mark_node, | |
2636 | don't bother trying to do anything. | |
2637 | ||
2638 | * typeck.c (convert_for_initialization): If the rhs contains a | |
2639 | constructor call, pretend the lhs type needs to be constructed. | |
2640 | ||
2641 | * init.c (expand_default_init): If we stick the object inside the | |
2642 | initializer, mark the initializer used. | |
2643 | ||
2644 | Tue Aug 30 13:50:18 1994 Jason Merrill (jason@deneb.cygnus.com) | |
2645 | ||
2646 | * method.c (build_assign_ref): return *this; | |
2647 | (build_assign_ref): Fix base assignment order. | |
2648 | (build_copy_constructor): Fix member init order. | |
2649 | ||
2650 | Mon Aug 29 13:54:39 1994 Brendan Kehoe (brendan@lisa.cygnus.com) | |
2651 | ||
2652 | * g++.c (main): Remember to clear out SAW_SPECLANG after we see | |
2653 | its argument. | |
2654 | ||
2655 | Sat Aug 27 09:36:03 1994 Jason Merrill (jason@deneb.cygnus.com) | |
2656 | ||
2657 | * method.c (build_copy_constructor): Also copy virtual bases. | |
2658 | ||
2659 | Fri Aug 26 17:05:15 1994 Jason Merrill (jason@deneb.cygnus.com) | |
2660 | ||
2661 | * lex.c (do_pending_inlines): Clear out pending_inlines before doing | |
2662 | any synthesis. Also first set deja_vu on all pending_inlines. | |
2663 | ||
2664 | * method.c (build_assign_ref): Use build_member_call to invoke base | |
2665 | operator=, rather than build_modify_expr. And use | |
2666 | build_reference_type instead of TYPE_REFERENCE_TO. | |
2667 | (build_copy_constructor): Use TYPE_NESTED_NAME to identify the | |
2668 | basetype. | |
2669 | ||
2670 | * decl2.c (grokfield): Don't complain about undefined local class | |
2671 | methods. | |
2672 | ||
2673 | * class.c (finish_struct): Don't try to synthesize methods here. | |
2674 | * lex.c (do_pending_inlines): Instead, synthesize them here. | |
2675 | (init_lex): Initialize synth_obstack. | |
2676 | (cons_up_default_function): Stick synthesis request on | |
2677 | pending_inlines. | |
2678 | ||
2679 | Fri Aug 26 12:24:14 1994 Brendan Kehoe (brendan@lisa.cygnus.com) | |
2680 | ||
2681 | * call.c (build_method_call) [PCC_STATIC_STRUCT_RETURN]: Also | |
2682 | accept an RTL_EXPR in what we're about to use for the instance, | |
2683 | since anything which would end up with pcc_struct_return set | |
2684 | inside cplus_expand_expr. | |
2685 | ||
2686 | * cp-tree.h (cons_up_default_function): Note change of prototype. | |
2687 | ||
2688 | Thu Aug 25 23:05:30 1994 Gerald Baumgartner (gb@cs.purdue.edu) | |
2689 | ||
2690 | * class.c (finish_struct): Undid change from Aug 21 testing | |
2691 | CLASSTYPE_INTERFACE and CLASSTYPE_VTABLE_NEEDS_WRITING. | |
2692 | * parse.y (left_curly): Ditto, undid change from Aug 21. | |
2693 | * decl.c (xref_tag): Undid change from Aug 21, set | |
2694 | CLASSTYPE_INTERFACE correctly, and added comments. | |
2695 | ||
2696 | Thu Aug 25 00:36:31 1994 Jason Merrill (jason@deneb.cygnus.com) | |
2697 | ||
2698 | Rework approach to synthesized methods; don't go through the parser | |
2699 | anymore. | |
2700 | * class.c (finish_struct): Use new synthesis approach. | |
2701 | * lex.c (cons_up_default_function): Now just creates declaration, | |
2702 | not code. | |
2703 | (largest_union_member): #if 0 out. | |
2704 | (default_assign_ref_body): Ditto. | |
2705 | (default_copy_constructor_body): Ditto. | |
2706 | * method.c (build_default_constructor): New function to synthesize X(). | |
2707 | (build_copy_constructor): Synthesize X(X&). | |
2708 | (build_assign_ref): Synthesize X::operator=(X&). | |
2709 | (build_dtor): Synthesize ~X(). | |
2710 | ||
2711 | * error.c (cp_line_of): If we're dealing with an artificial | |
2712 | TYPE_DECL, look at the type instead. | |
2713 | ||
2714 | Wed Aug 24 11:11:50 1994 Jason Merrill (jason@deneb.cygnus.com) | |
2715 | ||
2716 | * init.c (sort_member_init): Check warn_reorder. | |
2717 | * decl2.c (lang_decode_option): Handle -W{no-,}reorder. | |
2718 | ||
2719 | * cp-tree.h (CLASSTYPE_SOURCE_LINE): New macro. | |
2720 | * error.c (cp_line_of): Use CLASSTYPE_SOURCE_LINE for aggregates. | |
2721 | * class.c (finish_struct): Set CLASSTYPE_SOURCE_LINE. | |
2722 | ||
6060a796 | 2723 | Tue Aug 23 09:28:35 1994 Mike Stump <mrs@cygnus.com> |
f376e137 MS |
2724 | |
2725 | * error.c (dump_decl): Improve wording, so that error messages | |
2726 | dont't read template<, class foo>... | |
2727 | ||
2728 | Mon Aug 22 15:30:51 1994 Brendan Kehoe (brendan@lisa.cygnus.com) | |
2729 | ||
2730 | * parse.y (label_colon): Also match a TYPENAME as a label name, | |
2731 | since they may have declared a class by that name but have also | |
2732 | tried to have a local label under the same name. | |
2733 | ||
2734 | * pt.c (coerce_template_parms): Call cp_error, not cp_error_at, | |
2735 | for the message so they know at what point it was instantiated. | |
2736 | ||
2737 | Sun Aug 21 23:07:35 1994 Gerald Baumgartner (gb@cs.purdue.edu) | |
2738 | ||
2739 | * class.c (finish_struct): Move setting of CLASSTYPE_INTERFACE and | |
2740 | CLASSTYPE_VTABLE_NEEDS_WRITING for signatures up to left_curly time. | |
2741 | * decl.c (xref_tag): Move setting of CLASSTYPE_INTERFACE and | |
db5ae43f | 2742 | CLASSTYPE_VTABLE_NEEDS_WRITING for signatures down to left_curly time. |
f376e137 MS |
2743 | * parse.y (left_curly): New final resting place for setting |
2744 | CLASSTYPE_INTERFACE and CLASSTYPE_VTABLE_NEEDS_WRITING for signatures. | |
2745 | ||
2746 | * class.c (finish_struct): Don't test for function/field name | |
2747 | conflicts in signatures, since all the fields are compiler-constructed. | |
2748 | ||
2749 | Fri Aug 19 14:04:47 1994 Kung Hsu (kung@mexican.cygnus.com) | |
2750 | ||
2751 | * method.c (build_overload_nested_name): in qualified name | |
2752 | mangling, the template with value instantiation will have numeric | |
2753 | at end and may mixed with the name length of next nested level. | |
2754 | Add a '_' in between. | |
2755 | * method.c (build_overload_name): ditto. | |
2756 | * method.c (build_overload_identifier): ditto. | |
2757 | ||
6060a796 | 2758 | Thu Aug 18 16:24:43 1994 Mike Stump <mrs@cygnus.com> |
f376e137 MS |
2759 | |
2760 | * error.c (dump_decl): Handle NULL args. | |
2761 | ||
db5ae43f MS |
2762 | Thu Sep 29 16:15:36 1994 Michael I Bushnell <mib@churchy.gnu.ai.mit.edu> |
2763 | ||
2764 | * g++.c: Rework last change so it's done like collect.c (and | |
2765 | gcc.c). | |
2766 | ||
2767 | Wed Sep 14 10:17:27 1994 Michael I Bushnell <mib@churchy.gnu.ai.mit.edu> | |
2768 | ||
2769 | * g++.c: Include <sys/errno.h> in case `errno' is a macro | |
2770 | as permitted by ANSI C. | |
2771 | ||
6060a796 | 2772 | Thu Aug 18 12:48:09 1994 Mike Stump <mrs@cygnus.com> |
00595019 MS |
2773 | |
2774 | * class.c (finish_struct): Move setting of CLASSTYPE_INTERFACE and | |
2775 | CLASSTYPE_VTABLE_NEEDS_WRITING up to left_curly time. | |
2776 | * decl.c (xref_tag): Move setting of CLASSTYPE_INTERFACE and | |
db5ae43f | 2777 | CLASSTYPE_VTABLE_NEEDS_WRITING down to left_curly time. |
00595019 MS |
2778 | * parse.y (left_curly): New final resting place for setting |
2779 | CLASSTYPE_INTERFACE and CLASSTYPE_VTABLE_NEEDS_WRITING. | |
2780 | ||
2781 | Thu Aug 11 11:32:42 1994 H.J. Lu (hjl@nynexst.com) | |
2782 | ||
2783 | * g++.c (main): Only decrement "added" and set "library" to | |
2784 | NULL when "library" != NULL. | |
2785 | ||
2786 | Sat Aug 13 00:14:52 1994 Jason Merrill (jason@deneb.cygnus.com) | |
2787 | ||
2788 | * decl.c (grokdeclarator): Don't set TREE_PUBLIC on a function decl | |
2789 | just because its class has a known interface. | |
2790 | (decls_match): Deal with new format of template parms. | |
2791 | ||
2792 | * lex.c (cons_up_default_function): Don't play with TREE_PUBLIC and | |
2793 | DECL_EXTERNAL here. | |
2794 | ||
2795 | Fri Aug 12 01:55:15 1994 Jason Merrill (jason@deneb.cygnus.com) | |
2796 | ||
2797 | * decl.c (pushtag): SET_DECL_ARTIFICIAL on gratuitous typedefs. | |
2798 | (xref_defn_tag): Ditto. | |
2799 | (pushdecl): Only allow artificial typedefs to be shadowed. | |
2800 | ||
2801 | * init.c (emit_base_init): Pass the right binfos to | |
2802 | expand_aggr_init_1. | |
2803 | ||
2804 | * class.c (delete_duplicate_fields_1): Make it work right. | |
2805 | (finish_struct): Catch function/field name conflict. | |
2806 | ||
2807 | * decl2.c (check_classfn): Pass the function to cp_error, not just | |
2808 | the name. | |
2809 | ||
2810 | * init.c (sort_member_init): Warn when order of member initializers | |
2811 | does not match order of member declarations. | |
2812 | (emit_base_init): Call expand_aggr_init_1 with LOOKUP_PROTECT. | |
2813 | ||
2814 | * error.c (dump_expr): Handle lists of functions. | |
2815 | ||
2816 | * decl.c (start_function): #pragma interface only affects functions | |
2817 | that would otherwise be static. | |
2818 | (finish_decl): Don't warn about an unused variable if it has both | |
2819 | constructor and destructor, since the 'resource allocation is | |
2820 | initialization' idiom is relatively common. | |
2821 | ||
2822 | * typeck.c (comp_target_types): Don't handle TEMPLATE_TYPE_PARMs. | |
2823 | (comp_target_parms): Ditto. | |
2824 | (compparms): Never consider default parms. | |
2825 | (common_base_type): Don't choose a virtual baseclass if there is a | |
2826 | more derived class in common. | |
2827 | (build_conditional_expr): If pedantic, pedwarn about conversion to | |
2828 | common base in conditional expr. | |
2829 | ||
2830 | * class.c (instantiate_type): Handle template instantiation better. | |
2831 | ||
2832 | * typeck.c (convert_arguments): Don't try to get tricky and convert | |
2833 | to int directly when PROMOTE_PROTOTYPES is set, as it breaks | |
2834 | user-defined conversions. | |
2835 | ||
2836 | * lex.c (check_for_missing_semicolon): Also give error at end of | |
2837 | file. | |
2838 | ||
2839 | * call.c (build_method_call): Don't promote arrays to pointers here. | |
2840 | ||
2841 | * typeck.c (convert_arguments): Don't require the actual parameter | |
2842 | to be of a complete type if the formal parameter is a reference. | |
2843 | ||
2844 | Thu Aug 11 15:21:40 1994 Jason Merrill (jason@deneb.cygnus.com) | |
2845 | ||
2846 | * decl.c (grokdeclarator): Soften 'static' on member function error | |
2847 | to pedwarn. | |
2848 | ||
2849 | * init.c (build_new): Don't automatically save rval. | |
2850 | (build_offset_ref): Do field lookup with proper basetype_path. | |
2851 | ||
2852 | Thu Aug 11 12:46:54 1994 Brendan Kehoe (brendan@lisa.cygnus.com) | |
2853 | ||
2854 | * errfn.c (cp_silent): Declare to mark when we should avoid | |
2855 | emitting warnings and errors. | |
2856 | (cp_error): Check it. | |
2857 | (cp_warning): Likewise. | |
2858 | (cp_pedwarn): Likewise. | |
2859 | (cp_compiler_error): Likewise. | |
2860 | (cp_error_at): Likewise. | |
2861 | (cp_warning_at): Likewise. | |
2862 | (cp_pedwarn_at): Likewise. | |
2863 | * call.c (compute_conversion_costs): Set CP_SILENT when we start | |
2864 | out, and make sure we turn it off before we leave. | |
2865 | ||
2866 | Thu Aug 11 00:02:54 1994 Jason Merrill (jason@deneb.cygnus.com) | |
2867 | ||
2868 | * decl2.c (grok_array_decl): Try computing *(A+B) if neither | |
2869 | argument is obviously an array. | |
2870 | ||
2871 | Wed Aug 10 15:32:04 1994 Jason Merrill (jason@deneb.cygnus.com) | |
2872 | ||
2873 | * typeck.c (c_expand_start_case): Do cleanups here. | |
2874 | ||
2875 | * parse.y (xcond): Do bool conversion here, too. | |
2876 | (simple_stmt, SWITCH case): Don't do cleanups here. | |
2877 | ||
2878 | * decl.c (duplicate_decls): Don't treat builtins that have been | |
2879 | explicitly declared specially. | |
2880 | ||
2881 | Tue Aug 9 01:16:09 1994 Jason Merrill (jason@deneb.cygnus.com) | |
2882 | ||
2883 | * tree.c (make_deep_copy): Support copying pointer, reference, | |
2884 | function, array, offset and method types. | |
2885 | ||
2886 | * decl.c (init_decl_processing): Mark exit and abort as | |
2887 | BUILT_IN_NONANSI so that duplicate_decls is kinder about | |
2888 | redeclaration. | |
2889 | (duplicate_decls): Don't give two errors for redeclaring a C | |
2890 | function with the same parms but a different return type. | |
2891 | ||
2892 | * parse.y (paren_cond_or_null): Do cleanup and bool conversion here. | |
2893 | (condition): Instead of here. | |
2894 | (simple_stmt, SWITCH case): Also do cleanup here. | |
2895 | ||
2896 | * decl2.c (finish_anon_union): Only break out FIELD_DECLs. | |
2897 | ||
2898 | * call.c (build_method_call): Don't throw away the side effects of | |
2899 | the object in a call to a non-existent constructor. | |
2900 | * parse.y (primary): Ditto. | |
2901 | ||
2902 | * method.c (build_decl_overload): Oop. | |
2903 | ||
2904 | * decl2.c (lang_decode_option): Deal with flag_no_nonansi_builtin, | |
2905 | warn about uselessness of specifying -fansi-overloading. | |
2906 | ||
2907 | * method.c (build_decl_overload): Treat any non-member new with one | |
2908 | parameter as __builtin_new. | |
2909 | ||
2910 | * decl.c (init_decl_processing): Setup built-in meanings of exit, | |
2911 | _exit and abort. | |
2912 | ||
2913 | Mon Aug 8 15:03:30 1994 Jason Merrill (jason@deneb.cygnus.com) | |
2914 | ||
2915 | * error.c (dump_readonly_or_volatile): Put a space between const and | |
2916 | volatile if both apply. | |
2917 | ||
2918 | * init.c (perform_member_init): Clean up after this initialization. | |
2919 | (emit_base_init): Clean up after each base init, not after all have | |
2920 | been done. | |
2921 | (expand_aggr_vbase_init_1): Clean up after this init. | |
2922 | ||
2923 | Sun Aug 7 14:55:05 1994 Jason Merrill (jason@deneb.cygnus.com) | |
2924 | ||
2925 | * call.c (build_method_call): Deal with destroying references. | |
2926 | ||
2927 | * parse.y (condition): Do bool_truthvalue_conversion here. | |
2928 | (paren_expr_or_null): And here. | |
2929 | (simple_if): Not here. | |
2930 | (simple_stmt): Or here. | |
2931 | ||
2932 | Sat Aug 6 22:29:45 1994 Jason Merrill (jason@deneb.cygnus.com) | |
2933 | ||
2934 | * parse.y (paren_expr_or_null): Wrap the expression in a | |
2935 | CLEANUP_POINT_EXPR. | |
2936 | (condition): Ditto. | |
2937 | ||
2938 | Sat Aug 6 19:46:37 1994 Rohan Lenard (rjl@easams.com.au) | |
2939 | ||
2940 | * call.c (build_scoped_method_call): Fix error message when | |
2941 | destructor call refers to a nonexistent type. | |
2942 | ||
2943 | Sat Apr 16 22:43:30 1993 Gerald Baumgartner (gb@cs.purdue.edu) | |
2944 | ||
2945 | * lex.h (rid): Deleted RID_RAISES, it's never used. | |
2946 | Moved RID_PUBLIC, RID_PRIVATE, RID_PROTECTED, RID_EXCEPTION, | |
2947 | RID_TEMPLATE and RID_SIGNATURE to the end of the enumeration, | |
2948 | they don't need to be touched in `grokdeclarator.' | |
2949 | (RID_LAST_MODIFIER): Defined macro to be RID_MUTABLE. | |
2950 | ||
2951 | * decl.c (grokdeclarator): Use RID_LAST_MODIFIER instead of | |
2952 | RID_MAX as loop limit for finding declaration specifiers. | |
2953 | ||
2954 | Sat Apr 3 21:59:07 1993 Gerald Baumgartner (gb@cs.purdue.edu) | |
2955 | ||
2956 | * lex.c (debug_yytranslate): Moved to parse.y since it needs to | |
2957 | access `yytname,' which is static in parse.c. | |
2958 | ||
2959 | Fri Apr 2 23:36:57 1993 Gerald Baumgarnter (gb@cs.purdue.edu) | |
2960 | ||
2961 | * cp-tree.h (GNU_xref_ref): Fixed typo in extern declaration, it | |
2962 | was `GNU_xref_def' instead of `GNU_xref_ref.' | |
2963 | ||
2964 | Fri Aug 5 14:20:16 1994 Jason Merrill (jason@deneb.cygnus.com) | |
2965 | ||
2966 | * pt.c (do_function_instantiation): Don't set TREE_PUBLIC and | |
2967 | DECL_EXTERNAL on 'extern' instantiations; wait until EOF to do that. | |
2968 | (do_type_instantiation): Ditto. | |
2969 | ||
2970 | * decl2.c (import_export_inline): Decides at EOF what an inline's | |
2971 | linkage should be. | |
2972 | (finish_file): Call it. | |
2973 | ||
2974 | * decl.c (start_function): Don't rely on the settings of TREE_PUBLIC | |
2975 | and DECL_EXTERNAL from do_*_instantiation. Only set | |
2976 | DECL_DEFER_OUTPUT on inlines whose linkage might actually change. | |
2977 | (finish_function): Use DECL_DEFER_OUTPUT to decide which inlines to | |
2978 | mark for later consideration, rather than DECL_FUNCTION_MEMBER_P. | |
2979 | ||
6060a796 | 2980 | Fri Aug 5 01:12:20 1994 Mike Stump <mrs@cygnus.com> |
a292b002 MS |
2981 | |
2982 | * class.c (get_class_offset_1, get_class_offset): New routine to | |
2983 | find the offset of the class where a virtual function is defined, | |
2984 | from the complete type. | |
2985 | * class.c (modify_one_vtable, fixup_vtable_deltas): Use | |
2986 | get_class_offset instead of virtual_offset as get_class_offset will | |
2987 | always provide the right answer. | |
2988 | * tree.c (virtual_offset): Remove. It only ever worked some of the | |
2989 | time. | |
2990 | ||
2991 | Tue Aug 2 12:44:21 1994 Jason Merrill (jason@deneb.cygnus.com) | |
2992 | ||
2993 | * call.c (build_method_call): Put back unary_complex_lvalue call | |
2994 | that I thought was redundant. | |
2995 | ||
2996 | * typeck.c (c_expand_return): Fix a case I missed before. | |
2997 | ||
2998 | Sun Jul 31 17:54:02 1994 Jason Merrill (jason@deneb.cygnus.com) | |
2999 | ||
3000 | * pt.c (unify): Strip cv-quals from template type arguments (when | |
3001 | 'const T*' is matched to 'const char*', that does not mean that T is | |
3002 | 'const char'). | |
3003 | ||
3004 | Fri Jul 29 01:03:06 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3005 | ||
3006 | * pt.c (do_type_instantiation): Instantiate nested TAGS, not | |
3007 | typedefs. Third time's the charm? | |
3008 | ||
3009 | * parse.y (template_parm): Support default template parms. | |
3010 | * pt.c (process_template_parm): Ditto. | |
3011 | (end_template_parm_list): Ditto. | |
3012 | (coerce_template_parms): Ditto. | |
3013 | (mangle_class_name_for_template): Ditto. | |
3014 | (push_template_decls): Ditto. | |
3015 | (unify): Ditto. | |
3016 | * method.c (build_overload_identifier): Ditto. | |
3017 | * error.c (dump_decl): Ditto. | |
3018 | ||
3019 | Wed Jul 27 17:47:00 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3020 | ||
3021 | * pt.c (do_type_instantiation): Only instantiate nested *classes*. | |
3022 | ||
3023 | Tue Jul 26 13:22:40 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3024 | ||
3025 | * search.c (note_debug_info_needed): Also emit debugging information | |
3026 | for the types of fields. | |
3027 | ||
3028 | Mon Jul 25 00:34:44 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3029 | ||
3030 | * pt.c (lookup_template_class): Pass 'template' to | |
3031 | coerce_template_parms instead of 'in_decl', since it's a more | |
3032 | meaningful context. | |
3033 | ||
3034 | * typeck.c (c_expand_return): Make sure any cleanups for the return | |
3035 | expression get run. | |
3036 | (build_c_cast): Use CONVERT_EXPR for conversion to void. | |
3037 | ||
3038 | * pt.c (do_type_instantiation): Also instantiate nested types. | |
3039 | ||
3040 | * typeck.c (convert_for_assignment): Don't die when comparing | |
3041 | pointers with different levels of indirection. | |
3042 | ||
3043 | * decl.c (grokdeclarator): The sub-call to grokdeclarator for | |
3044 | class-local typedefs sets DECL_ARGUMENTS, so we need to clear it | |
3045 | out. | |
3046 | ||
3047 | * decl2.c (finish_anon_union): Don't die if the union has no | |
3048 | members. | |
3049 | ||
3050 | * decl.c (grokdeclarator): Undo changes to declspecs when we're done | |
3051 | so that 'typedef int foo, bar;' will work. | |
3052 | ||
3053 | * decl2.c (finish_file): Don't call expand_aggr_init for | |
3054 | non-aggregates. | |
3055 | ||
3056 | Mon Jul 25 00:03:10 1994 Teemu Torma (tot@trema.fi) | |
3057 | ||
3058 | * decl.c (finish_function): We can't inline constructors and | |
3059 | destructors under some conditions with -fpic, but don't unset | |
3060 | DECL_INLINE. | |
3061 | ||
3062 | Mon Jul 25 00:03:10 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3063 | ||
3064 | * typeck.c (build_object_ref): Make sure 'datum' is a valid object. | |
3065 | ||
3066 | Sun Jul 24 14:19:31 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3067 | ||
3068 | * class.c (finish_struct): Don't set DECL_FIELD_BITPOS on | |
3069 | non-fields. | |
3070 | (finish_struct_methods): Use copy_assignment_arg_p. | |
3071 | ||
3072 | * cvt.c (cp_convert): If expr is an OFFSET_REF, resolve it instead | |
3073 | of giving an error. | |
3074 | ||
3075 | * typeck.c (build_binary_op_nodefault): Don't set result_type if we | |
3076 | don't know how to compare the operands. | |
3077 | ||
3078 | * decl.c (grokdeclarator): Avoid seg fault when someone uses '__op' | |
3079 | as a declarator-id in their program. Like the Linux headers do. | |
3080 | Arrgh. | |
3081 | ||
3082 | * tree.c (lvalue_p): Treat calls to functions returning objects by | |
3083 | value as lvalues again. | |
3084 | ||
3085 | * typeck.c (build_component_addr): Use convert_force to convert the | |
3086 | pointer in case the component type is also a private base class. | |
3087 | ||
3088 | * search.c (get_matching_virtual): Fix bogus warning of overloaded | |
3089 | virtual. | |
3090 | ||
3091 | * pt.c (overload_template_name): Set DECL_ARTIFICIAL on the created | |
3092 | TYPE_DECL to fix bogus shadowing warnings. | |
3093 | ||
3094 | Fri Jul 22 01:15:32 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3095 | ||
3096 | * init.c (expand_aggr_init_1): const and volatile mismatches do not | |
3097 | prevent a TARGET_EXPR from initializing an object directly. | |
3098 | ||
3099 | Tue Jul 19 17:55:37 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3100 | ||
3101 | * cvt.c (build_up_reference): Allow building up references to | |
3102 | `this', don't warn about making references to artificial variables | |
3103 | (like `this'). | |
3104 | ||
3105 | * tree.c (lvalue_p): `this' is not an lvalue. | |
3106 | ||
3107 | * call.c (build_method_call): Accept using a typedef name (or | |
3108 | template type parameter) for explicit destructor calls. | |
3109 | ||
cf17cae3 JM |
3110 | Wed Jul 13 03:57:54 1994 Jason Merrill (jason@deneb.cygnus.com) |
3111 | ||
a292b002 MS |
3112 | * method.c (hack_identifier): Put back old code so lists of |
3113 | non-functions will be handled properly. | |
a5ef9010 | 3114 | |
a292b002 MS |
3115 | * cp-tree.h (TYPE_NEEDS_CONSTRUCTING): #if 0 out; this macro is now |
3116 | defined in the language-independent tree.h. | |
cf17cae3 | 3117 | |
a292b002 MS |
3118 | * tree.c (count_functions): Avoid bogus warning when compiling this |
3119 | function. | |
cf17cae3 JM |
3120 | |
3121 | Mon Jul 11 18:37:20 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3122 | ||
a292b002 MS |
3123 | * decl.c (grok_reference_init): Always save the initializer of a |
3124 | reference. | |
cf17cae3 | 3125 | |
6060a796 | 3126 | Fri Jul 8 17:41:46 1994 Mike Stump <mrs@cygnus.com> |
5b605f68 MS |
3127 | |
3128 | * decl.c (cplus_expand_expr_stmt): Wrap statement expressions inside | |
3129 | CLEANUP_POINT_EXPRs so that the stack slots can be reused. | |
63c68bb7 | 3130 | (disabled for now) |
5b605f68 MS |
3131 | |
3132 | Fri Jul 8 12:59:38 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3133 | ||
3134 | * method.c (hack_identifier): Fix for new overloading. | |
3135 | ||
3136 | * typeck.c (build_binary_op_nodefault): Don't mess with division by | |
db5ae43f | 3137 | zero. |
5b605f68 MS |
3138 | |
3139 | Fri Jul 8 13:20:28 1994 Gerald Baumgartner (gb@cs.purdue.edu) | |
3140 | ||
3141 | * decl2.c (finish_file): Only call walk_sigtables, if | |
3142 | flag_handle_signatures is turned on, don't waste time otherwise. | |
3143 | ||
3144 | Fri Jul 8 02:27:41 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3145 | ||
3146 | * decl.c (push_overloaded_decl): Don't create overloads of one when | |
3147 | shadowing a class type. | |
a292b002 | 3148 | * typeck.c (build_x_function_call): Complain about overloads of one. |
5b605f68 MS |
3149 | |
3150 | * decl.c (grokdeclarator): Don't try to treat a char* as a tree. | |
3151 | (grokdeclarator): Fix setting of TREE_STATIC. | |
3152 | (start_decl): Clear DECL_IN_AGGR_P after calling duplicate_decls. | |
3153 | ||
311862c8 GB |
3154 | Thu Jul 7 22:20:46 1994 Gerald Baumgartner (gb@andros.cygnus.com) |
3155 | ||
3156 | * cp-tree.h (walk_sigtables): Created extern declaration. | |
3157 | * decl2.c (walk_sigtables): Created function, patterned after | |
3158 | walk_vtables, even though we only need it to write out sigtables. | |
3159 | (finish_sigtable_vardecl): Created function. | |
3160 | (finish_vtable_vardecl): Changed 0 to NULL_PTR. | |
3161 | (finish_file): Call walk_sigtables. | |
3162 | ||
3163 | * sig.c (build_signature_table_constructor): Mark class member | |
3164 | function pointed to from signature table entry as addressable. | |
3165 | ||
5b605f68 MS |
3166 | Thu Jul 7 13:39:37 1994 Jason Merrill (jason@deneb.cygnus.com) |
3167 | ||
3168 | * decl.c (start_decl): Check new decl of static member variable | |
3169 | against the declaration in the class here. | |
3170 | (grokvardecl): Instead of here. | |
3171 | ||
3172 | * class.c (prepare_fresh_vtable): Call import_export_vtable if not | |
3173 | -fvtable-thunks. | |
3174 | (build_vtable): Ditto. | |
3175 | ||
3176 | * decl2.c (import_export_vtable): Move logic for deciding the | |
3177 | interface of a template class from here. | |
3178 | (import_export_template): To here. | |
3179 | (finish_vtable_vardecl): Call import_export_template before | |
3180 | import_export_vtable. | |
3181 | ||
6060a796 | 3182 | Wed Jul 6 20:25:48 1994 Mike Stump <mrs@cygnus.com> |
a3b49ccd MS |
3183 | |
3184 | * except.c (init_exception_processing): Setup interim_eh_hook to | |
3185 | call lang_interim_eh. | |
3186 | * except.c (do_unwind): Propagate throw object value across | |
3187 | stack unwinding. | |
3188 | * except.c (saved_throw_value): Used to hold the value of the object | |
3189 | being thrown. It is always a reference to the real value. | |
3190 | * except.c (expand_start_catch_block): Add handling for the | |
3191 | value of the exception object. | |
3192 | * except.c (expand_start_catch_block): Add handler for the handler, | |
3193 | so that throws inside the handler go to the outer block. | |
3194 | * except.c (expand_end_catch_block): Ditto. | |
3195 | * parse.y (handler_args): Use parm instead, as the other doesn't yet | |
3196 | handle references correctly. | |
3197 | ||
3198 | Wed Jul 6 17:55:32 1994 Per Bothner (bothner@kalessin.cygnus.com) | |
3199 | ||
3200 | * decl2.c (mark_vtable_entries): If -ftable-thunks, set the | |
3201 | vtable entry properly to abort. | |
3202 | ||
5b605f68 MS |
3203 | Tue Jul 5 14:07:54 1994 Jason Merrill (jason@deneb.cygnus.com) |
3204 | ||
3205 | * typeck.c (build_binary_op_nodefault): Downgrade division by zero | |
3206 | errors to warnings. | |
3207 | ||
3208 | * call.c (build_overload_call_real): Handle fnname being a list of | |
3209 | functions. | |
3210 | * typeck.c (build_x_function_call): Pass list of functions to | |
3211 | build_overload_call, not just the name. | |
3212 | * tree.c (count_functions): Complain when called for invalid | |
3213 | argument. | |
3214 | ||
3215 | * decl.c (grokdeclarator): Fix settings of TREE_STATIC, TREE_PUBLIC | |
3216 | and DECL_EXTERNAL on static members and initialized const members. | |
3217 | * decl2.c (grokfield): Reflect this change. | |
3218 | ||
9a0e77ba JM |
3219 | Fri Jul 1 09:35:51 1994 Jason Merrill (jason@deneb.cygnus.com) |
3220 | ||
3221 | * parse.y (init): ANSI C++ does not forbid { }. | |
3222 | ||
3223 | Thu Jun 30 00:35:22 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3224 | ||
3225 | * decl2.c (lang_decode_option): Set warn_nonvdtor along with -Wall. | |
3226 | warn_nonvdtor defaults to off. | |
3227 | ||
3228 | * class.c (instantiate_type): Use comptypes rather than relying on | |
3229 | types to satisfy ==. | |
3230 | ||
3231 | * decl.c (start_function): Set DECL_DEFER_OUTPUT on all inlines that | |
3232 | might be static. | |
3233 | ||
3234 | * tree.c (build_cplus_new): Never build WITH_CLEANUP_EXPRs. | |
3235 | ||
3236 | * decl.c (grok_reference_init): Deal with ADDR_EXPRs of TARGET_EXPRs. | |
3237 | ||
3238 | * cvt.c (cp_convert): Pass 0 to with_cleanup_p arg of | |
3239 | build_cplus_new. | |
3240 | ||
3241 | Wed Jun 29 22:31:09 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3242 | ||
3243 | * decl2.c (finish_file): Maybe consider static inlines multiple | |
3244 | times, in case they reference each other. | |
3245 | ||
63718c49 GB |
3246 | Tue Jun 28 11:58:38 1994 Gerald Baumgartner (gb@cs.purdue.edu) |
3247 | ||
3248 | * class.c (finish_struct): Don't `cons_up_default_function's | |
3249 | for signatures. | |
3250 | (finish_struct): Handle an empty method_vec correctly. | |
3251 | ||
3252 | * decl.c (grokdeclarator): Don't warn about a signature being | |
3253 | empty in a signature pointer declaration if we only saw a | |
3254 | forward declaration of the signature. Changed `warning's into | |
3255 | `cp_warning's. | |
3256 | ||
3257 | * sig.c (build_sigtable): Don't die if a null signature table | |
3258 | constructor is returned. | |
3259 | (build_signature_pointer_constructor): If the signature table | |
3260 | constructor is null, the _sptr field is set to a null pointer | |
3261 | and cast to the appropriate type. Make copies of all null | |
3262 | pointers so that the type null_pointer_node doesn't get changed. | |
3263 | (build_signature_table_constructor): Added comments. | |
3264 | ||
3265 | * sig.c (build_signature_pointer_constructor): Complain if we | |
3266 | try to assign to/initialize a signature pointer/reference of | |
3267 | an undefined signature. | |
3268 | ||
3269 | Mon Jun 27 14:05:16 1994 Gerald Baumgartner (gb@cs.purdue.edu) | |
3270 | ||
3271 | * typeck2.c (store_init_value): Don't be pedantic about | |
3272 | non-constant initializers of signature tables/pointers/references. | |
3273 | ||
3274 | Fri Jun 24 16:49:41 1994 Gerald Baumgartner (gb@cs.purdue.edu) | |
3275 | ||
3276 | * decl.c (grokdeclarator): If we are grokking an opaque typedef | |
3277 | in a signature, don't complain about it begin static. | |
3278 | ||
6060a796 | 3279 | Wed Jun 29 16:44:45 1994 Mike Stump <mrs@cygnus.com> |
21474714 MS |
3280 | |
3281 | Fixes a problem of the this pointer being wrong in virtual calls to | |
3282 | methods that are not overridden in more derived classes. | |
3283 | ||
3284 | * class.c (fixup_vtable_delta): New routine. It will fixup the | |
3285 | delta entries in vtables, wheever they need updating. | |
3286 | * class.c (finish_struct): Call the new routine for all virtual | |
3287 | bases, as they can have different offsets, than those used in base | |
3288 | classes that we derive our vtable from. | |
3289 | ||
3290 | Tue Jun 28 23:49:28 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3291 | ||
3292 | * typeck.c (build_binary_op): Use the types before default | |
3293 | conversions in the error message. | |
3294 | ||
3295 | * *.c: Use c_build_type_variant instead of build_type_variant where | |
3296 | the type might be an array. | |
3297 | ||
3298 | * call.c (build_method_call): Call build_type_variant and | |
3299 | build_reference_type in the right order. | |
3300 | * decl.c (record_builtin_type): Ditto. | |
3301 | ||
3302 | Wed Jun 29 16:58:53 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3303 | ||
3304 | * call.c (build_method_call): Call build_type_variant and | |
3305 | build_reference_type in the right order. | |
3306 | * decl.c (record_builtin_type): Ditto. | |
3307 | ||
3308 | Tue Jun 28 23:49:28 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3309 | ||
3310 | * typeck.c (build_binary_op): Use the types before default | |
3311 | conversions in the error message. | |
3312 | ||
3313 | * *.c: Use c_build_type_variant instead of build_type_variant where | |
3314 | the type might be an array. | |
3315 | ||
3316 | Sat Jun 25 11:50:54 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3317 | ||
3318 | * cvt.c (convert_to_reference): Try UDC's before doing the | |
3319 | reinterpret_cast thang, though. | |
3320 | ||
3321 | Fri Jun 24 01:24:01 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3322 | ||
3323 | * typeck.c (c_expand_return): Don't USE the return value location | |
3324 | after we've expanded the jump. | |
3325 | ||
3326 | * decl2.c (finish_file): Make sure DECL_SAVED_INSNS is not 0 before | |
3327 | trying to write out an inline. | |
3328 | ||
3329 | * cvt.c (build_up_reference): Also do address adjustment when the | |
3330 | target type uses MI. | |
3331 | (convert_to_reference): Try UDCs only after built-in conversions. | |
3332 | (build_type_conversion_1): Don't play games with the argument to the | |
3333 | method. | |
3334 | (build_type_conversion): #if 0 out code for binding to reference. | |
3335 | ||
a3203465 MS |
3336 | Thu Jun 23 00:22:28 1994 Jason Merrill (jason@deneb.cygnus.com) |
3337 | ||
21474714 MS |
3338 | * decl2.c (finish_file): Use TREE_SYMBOL_REFERENCED to decide |
3339 | whether to emit inlines. | |
3340 | ||
a3203465 MS |
3341 | * decl.c (grokdeclarator): Set explicit_int for decls that just |
3342 | specify, say, 'long'. | |
3343 | ||
3344 | * init.c (do_friend): Do overload C functions (or call pushdecl, | |
63718c49 | 3345 | anyaway). |
a3203465 MS |
3346 | |
3347 | Wed Jun 22 13:40:49 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3348 | ||
3349 | * cvt.c (build_up_reference): Don't call readonly_error. | |
3350 | (convert_to_reference): Propagate const and volatile from expr to | |
3351 | its type. | |
3352 | ||
3353 | * tree.c (lvalue_p): Random CALL_EXPRs are not lvalues. | |
3354 | ||
3355 | * cvt.c (build_up_reference): Break out WITH_CLEANUP_EXPR when | |
3356 | creating a temporary. | |
3357 | (convert_to_reference): Lose excessive and incorrect trickiness. | |
3358 | (cp_convert): Call build_cplus_new with with_cleanup_p set. | |
3359 | ||
3360 | * typeck2.c (build_functional_cast): Ditto. | |
3361 | ||
3362 | Tue Jun 21 17:38:38 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3363 | ||
3364 | * decl.c (grokdeclarator): signed, unsigned, long and short all | |
3365 | imply 'int'. | |
3366 | ||
3367 | * decl.c (grokdeclarator): Allow "this is a type" syntax. | |
3368 | (grok_reference_init): Simplify and fix. | |
3369 | ||
3370 | Sun Jun 19 17:08:48 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3371 | ||
3372 | * decl.c (grokdeclarator): pedwarn about a typedef that specifies no | |
3373 | type. | |
3374 | ||
3375 | Sat Jun 18 04:16:50 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3376 | ||
3377 | * decl.c (start_function): Move TREE_PUBLIC and DECL_EXTERNAL | |
3378 | tinkering to after call to pushdecl. | |
3379 | ||
3380 | Fri Jun 17 14:48:28 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3381 | ||
3382 | * call.c (build_method_call): Handle destructors for non-aggregate | |
3383 | types properly. | |
3384 | ||
3385 | Thu Jun 16 16:48:05 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3386 | ||
3387 | * call.c (build_method_call): Make sure that the name given for the | |
3388 | destructor matches the constructor_name of the instance. | |
3389 | ||
3390 | * pt.c (do_function_instantiation): A non-extern instantiation | |
3391 | overrides a later extern one. | |
3392 | (do_type_instantiation): Ditto. | |
3393 | ||
3394 | Wed Jun 15 19:34:54 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3395 | ||
3396 | * init.c (expand_aggr_init): Use TYPE_MAIN_VARIANT to get the | |
3397 | unqualified array type. | |
3398 | ||
3399 | * cp-tree.h (EMPTY_CONSTRUCTOR_P): Tests whether NODE is a | |
3400 | CONSTRUCTOR with no elements. | |
3401 | ||
3402 | * decl.c (various): Lose empty_init_node. | |
3403 | (finish_decl): Use EMPTY_CONSTRUCTOR_P, do the empty CONSTRUCTOR | |
3404 | thing depending on the value of DECL_COMMON instead of | |
3405 | flag_conserve_space, do the empty CONSTRUCTOR thing for types that | |
3406 | don't have constructors, don't treat a real empty CONSTRUCTOR | |
3407 | specially. | |
3408 | ||
3409 | * typeck2.c (process_init_constructor): Don't treat empty_init_node | |
3410 | specially. | |
3411 | ||
6060a796 | 3412 | Wed Jun 15 19:05:25 1994 Mike Stump <mrs@cygnus.com> |
a3203465 MS |
3413 | |
3414 | * class.c (override_one_vtable): Don't forget to merge in an old | |
3415 | overrider when we wanted to reuse a vtable, but couldn't. | |
3416 | ||
3417 | Wed Jun 15 15:03:16 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3418 | ||
3419 | * decl.c (start_decl): Put statics in common again. | |
3420 | ||
3421 | * decl.c (grokdeclarator): Return NULL_TREE for an error rather than | |
3422 | setting the type to error_mark_node. | |
3423 | ||
3424 | * typeck.c (build_modify_expr): Build up a COMPOUND_EXPR for enum | |
3425 | bitfield assignments. | |
3426 | ||
f0e01782 MS |
3427 | Tue Jun 14 12:23:38 1994 Jason Merrill (jason@deneb.cygnus.com) |
3428 | ||
3429 | * decl.c (grok_op_properties): Const objects can be passed by value. | |
3430 | ||
3431 | Mon Jun 13 03:10:59 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3432 | ||
3433 | * decl2.c (import_export_vtable): Force implicit instantiations to | |
3434 | be interface_only when -fno-implicit-templates. | |
3435 | ||
3436 | * decl.c (duplicate_decls): Redeclaring a class template name is an | |
3437 | error. | |
3438 | ||
3439 | * pt.c (end_template_decl): Call GNU_xref_decl for class templates. | |
3440 | * xref.c (GNU_xref_decl): Support templates. | |
3441 | ||
3442 | Sat Jun 11 17:09:05 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3443 | ||
3444 | * decl.c (grok_op_properties): Split out checking for whether this | |
3445 | function should suppress the default assignment operator. | |
3446 | * decl2.c (grok_function_init): Ditto. | |
3447 | (copy_assignment_arg_p): New function do do just that. | |
3448 | Now considers virtual assignment operators that take a base as an | |
3449 | argument to count as copy assignment operators. | |
3450 | ||
3451 | * search.c (dfs_debug_mark): Lose checks for DWARF_DEBUG and | |
3452 | TREE_ASM_WRITTEN, as they are redundant. | |
3453 | ||
3454 | * pt.c (end_template_decl): Don't try to set DECL_CLASS_CONTEXT on a | |
3455 | decl that has no LANG_SPECIFIC part. | |
3456 | (do_type_instantiation): Force the debugging information for this | |
3457 | type to be emitted. | |
3458 | ||
3459 | * decl.c (start_decl): Clear up uses of various types of templates | |
3460 | (say sorry for static data members, rather than "invalid template"). | |
3461 | (expand_static_init): Fix initialization of static data members of | |
3462 | template classes. | |
3463 | ||
3464 | Fri Jun 10 00:41:19 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3465 | ||
3466 | * decl.c (grokdeclarator): Set DECL_CONTEXT on static data members. | |
3467 | ||
3468 | * g++.c (main): Use -xc++-cpp-output for .i files. | |
3469 | ||
3470 | * pt.c (tsubst): Give meaningful error about declaring template for | |
3471 | a copy constructor which was not declared in the class template. | |
3472 | (do_type_instantiation): Explicit instantiation before the class | |
3473 | template is an error. | |
3474 | (instantiate_template): Don't die if tsubst returns error_mark_node. | |
3475 | ||
3476 | Thu Jun 9 19:04:59 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3477 | ||
3478 | Don't synthesize the copy assignment operator if the one in a base | |
3479 | class is pure virtual. | |
3480 | * cp-tree.h (TYPE_HAS_ABSTRACT_ASSIGN_REF): New macro to indicate | |
3481 | whether the type has a pure virtual copy assignment operator. | |
3482 | * class.c (finish_base_struct): Don't generate the copy assignment | |
3483 | operator if a base class has a pure virtual one. | |
3484 | * decl.c (grok_op_properties): Add disabled code to set | |
3485 | TYPE_HAS_ABSTRACT_ASSIGN_REF with comment pointing to where it is | |
3486 | actually set. | |
3487 | * decl2.c (grok_function_init): Set TYPE_HAS_ABSTRACT_ASSIGN_REF. | |
3488 | ||
3489 | * decl2.c (import_export_vtable): Always treat template | |
3490 | instantiations as if write_virtuals >= 2, and treat implicit | |
3491 | instantiations as external if -fno-implicit-templates. | |
3492 | (finish_file): Output all pending inlines if | |
3493 | flag_keep_inline_functions. | |
3494 | ||
6060a796 | 3495 | Wed Jun 8 20:48:02 1994 Mike Stump <mrs@cygnus.com> |
f0e01782 MS |
3496 | |
3497 | * tree.c (layout_vbasetypes): Align virtual base classes inside | |
3498 | complete objects, so that we don't core dump on machines such as | |
3499 | SPARCs when we access members that require larger than normal | |
3500 | alignments, such as a double. Also, we bump up the total alignment | |
3501 | on the complete type, as necessary. | |
3502 | ||
3503 | Wed Jun 8 16:18:14 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3504 | ||
3505 | * gxxint.texi (Free Store): New section with code for examining | |
3506 | cookie. | |
3507 | (Limitations of g++): Remove operator delete entry, since it is no | |
3508 | longer accurate. Fix access control entry. | |
3509 | ||
3510 | * typeck.c (build_unary_op): Pedwarn about taking the address of or | |
3511 | incrementing a cast to non-reference type. | |
3512 | (build_modify_expr): Use convert instead of convert_force again. | |
3513 | ||
3514 | * search.c (get_base_distance): Use IS_AGGR_TYPE_CODE to check for | |
3515 | class type, not == RECORD_TYPE. | |
3516 | ||
3517 | * decl.c (grokdeclarator): Cope with grokfndecl returning NULL_TREE. | |
3518 | ||
3519 | * typeck2.c (report_case_error): #if 0 out. | |
3520 | * lex.c (real_yylex): Lose RANGE. | |
3521 | * parse.y: Ditto. | |
3522 | ||
3523 | Tue Jun 7 18:17:35 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3524 | ||
3525 | * parse.y (simple_stmt, case ranges): Use ELLIPSIS instead of RANGE. | |
3526 | ||
3527 | Mon Jun 6 19:39:57 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3528 | ||
3529 | * typeck.c (build_c_cast): Don't shortcut conversions to the same | |
3530 | type. Don't replace consts with their values here, since that's now | |
3531 | done in cp_convert. | |
3532 | ||
3533 | * cvt.c (cp_convert): When converting to bool, take | |
3534 | integer_zero_node to false_node and all other INTEGER_CSTs to | |
3535 | true_node. | |
3536 | (build_type_conversion): Don't complain about multiple conversions | |
3537 | to float if we're not really converting. | |
3538 | ||
a0a33927 MS |
3539 | Fri Jun 3 02:10:56 1994 Jason Merrill (jason@deneb.cygnus.com) |
3540 | ||
f0e01782 MS |
3541 | Implement 'extern template class A<int>;' syntax for suppressing |
3542 | specific implicit instantiations. | |
3543 | * cp-tree.h: Update prototypes for do_*_instantiation. | |
3544 | * pt.c (do_pending_expansions): Don't compile 'extern' explicit | |
3545 | instantiations. | |
3546 | (do_function_instantiation): Set DECL_EXTERNAL on 'extern' explicit | |
3547 | instantiations. | |
3548 | (do_type_instantiation): Ditto. | |
3549 | * parse.y (explicit_instantiation): Support 'extern template class | |
3550 | A<int>;' syntax. | |
3551 | * decl.c (start_function): Don't modify the settings of TREE_PUBLIC | |
3552 | and DECL_EXTERNAL on explicit instantiations. | |
3553 | ||
a0a33927 MS |
3554 | * cvt.c (cp_convert): Replace constants with their values before |
3555 | converting. | |
f0e01782 | 3556 | (cp_convert): Consistently use 'e' instead of 'expr'. |
a0a33927 MS |
3557 | |
3558 | Thu Jun 2 03:53:30 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3559 | ||
3560 | * typeck2.c (build_x_arrow): Resolve OFFSET_REFs first. | |
3561 | ||
3562 | Wed Jun 1 18:57:35 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3563 | ||
3564 | * typeck2.c (digest_init): Handle initializing a pmf with an | |
3565 | overloaded method. | |
3566 | * typeck.c (build_ptrmemfunc): Handle overloaded methods. | |
3567 | ||
3568 | * decl.c (pushtag): Use build_decl to make TYPE_DECLs. | |
3569 | (xref_defn_tag): Ditto. | |
3570 | * pt.c (process_template_parm): Ditto. | |
3571 | (lookup_template_class): Ditto. | |
3572 | (push_template_decls): Ditto. | |
3573 | (instantiate_class_template): Ditto. | |
3574 | (create_nested_upt): Ditto. | |
3575 | * class.c (finish_struct): Don't try to set DECL_CLASS_CONTEXT on | |
3576 | TYPE_DECLs. | |
3577 | ||
3578 | * typeck.c (convert_arguments): Make sure type is not NULL before | |
3579 | checking its TREE_CODE. | |
3580 | ||
6060a796 | 3581 | Wed Jun 1 17:40:39 1994 Mike Stump <mrs@cygnus.com> |
a0a33927 MS |
3582 | |
3583 | * class.c (get_derived_offset): New routine. | |
3584 | * class.c (finish_base_struct): Make sure we set BINFO_VTABLE and | |
3585 | BINFO_VIRTUALS when we choose a new base class to inherit from. | |
3586 | * class.c (modify_one_vtable): Use get_derived_offset to get the | |
3587 | offset to the most base class subobject that we derived this binfo | |
3588 | from. | |
3589 | * class.c (finish_struct): Move code to calculate the | |
3590 | DECL_FIELD_BITPOS of the vfield up, as we need might need it for | |
3591 | new calls to get_derived_offset in modify_one_vtable. | |
3592 | ||
3593 | Wed Jun 1 16:50:59 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3594 | ||
3595 | * init.c (build_member_call): Use build_pointer_type instead of | |
3596 | TYPE_POINTER_TO. | |
3597 | ||
3598 | Wed Jun 1 11:11:15 1994 Brendan Kehoe (brendan@lisa.cygnus.com) | |
3599 | ||
3600 | * decl.c (grokdeclarator): Make sure we have a DNAME set before we | |
3601 | try to use it in an error. | |
3602 | ||
6060a796 | 3603 | Wed Jun 1 09:48:49 1994 Mike Stump <mrs@cygnus.com> |
a0a33927 MS |
3604 | |
3605 | * typeck.c (convert_arguments, convert_for_initialization): Don't | |
3606 | strip NOP_EXPRs, when we are converting to a reference. | |
3607 | ||
3608 | Wed Jun 1 01:11:38 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3609 | ||
3610 | * typeck.c (build_modify_expr): Don't dereference references when | |
3611 | initializing them. | |
3612 | ||
3613 | * decl2.c (grokfield): Don't check for grokdeclarator returning | |
3614 | error_mark_node any more. | |
3615 | ||
3616 | * decl.c (grokfndecl): Return NULL_TREE instead of error_mark_node. | |
3617 | (start_method): Return void_type_node instead of error_mark_node. | |
3618 | ||
3619 | * typeck.c (build_modify_expr): Resolve offset refs earlier. | |
3620 | ||
3621 | Tue May 31 16:06:58 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3622 | ||
3623 | * call.c (build_method_call): Resolve OFFSET_REFs in the object. | |
3624 | ||
3625 | * typeck.c (build_modify_expr): Dereference references before trying | |
3626 | to assign to them. | |
3627 | ||
3628 | * call.c (build_method_call): Don't confuse type conversion | |
3629 | operators with constructors. | |
3630 | * typeck2.c (build_functional_cast): Just call build_c_cast if there | |
3631 | was only one parameter. | |
3632 | * method.c (build_typename_overload): Don't set | |
3633 | IDENTIFIER_GLOBAL_VALUE on these identifiers. | |
3634 | * decl.c (grok_op_properties): Warn about defining a type conversion | |
3635 | operator that converts to a base class (or reference to it). | |
3636 | * cvt.c (cp_convert): Don't try to use a type conversion operator | |
3637 | when converting to a base class. | |
3638 | (build_type_conversion_1): Don't call constructor_name_full on an | |
3639 | identifier. | |
3640 | * cp-tree.h (DERIVED_FROM_P): Should be self-explanatory. | |
3641 | ||
3642 | * decl.c (start_decl): Don't complain that error_mark_node is an | |
3643 | incomplete type. | |
3644 | (finish_decl): Check for type == error_mark_node. | |
3645 | ||
3646 | Mon May 30 23:38:55 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3647 | ||
3648 | * decl.c (start_function): Set DECL_DEFER_OUTPUT on implicit | |
3649 | instantiations and inline members. | |
3650 | ||
3651 | * spew.c (yylex): Set looking_for_template if the next token is a '<'. | |
3652 | ||
3653 | * lex.h: Declare looking_for_template. | |
3654 | ||
3655 | * decl.c (lookup_name_real): Use looking_for_template to arbitrate | |
3656 | between type and template interpretations of an identifier. | |
3657 | ||
3658 | Sat May 28 04:07:40 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3659 | ||
3660 | * pt.c (instantiate_template): Zero out p if we found a | |
3661 | specialization. | |
3662 | ||
3663 | * decl.c (grokdeclarator): Elucidate warning. | |
3664 | (grokdeclarator): If pedantic AND -ansi, complain about long long. | |
3665 | ||
3666 | Make explicit instantiation work reasonably. It is now appropriate | |
3667 | to deprecate the use of -fexternal-templates. | |
3668 | * pt.c (instantiate_template): Set DECL_TEMPLATE_SPECIALIZATION or | |
3669 | DECL_IMPLICIT_INSTANTIATION on fndecl as appropriate. | |
3670 | (end_template_instantiation): Reflect changes in USE_TEMPLATE | |
3671 | semantics. | |
3672 | (do_pending_expansions): if (!flag_implicit_templates) DECIDE(0); | |
3673 | (do_function_instantiation): Don't set EXPLICIT_INST if | |
3674 | flag_external_templates is set. Do set TREE_PUBLIC and DECL_EXTERN | |
3675 | appropriately otherwise. | |
3676 | (do_type_instantiation): Set interface info for class. Set | |
3677 | TREE_PUBLIC and DECL_EXTERN for methods. Do none of this if | |
3678 | flag_external_templates is set. | |
3679 | * parse.y: Reflect changes in USE_TEMPLATE semantics. | |
3680 | * decl2.c: New flag flag_implicit_templates determines whether or | |
3681 | not implicit instantiations get emitted. This flag currently | |
3682 | defaults to true, and must be true for -fexternal-templates to work. | |
3683 | (finish_file): Consider flag_implement_inlines when | |
3684 | setting DECL_EXTERNAL. Consider flag_implicit_templates when | |
3685 | deciding whether or not to emit a static copy. | |
3686 | * decl.c (start_function): Set TREE_PUBLIC and DECL_EXTERNAL | |
3687 | properly for template instantiations. | |
3688 | (start_method): Set DECL_IMPLICIT_INSTANTIATION on methods of a | |
3689 | template class. | |
3690 | * cp-tree.h (CLASSTYPE_USE_TEMPLATE): Change semantics. | |
3691 | (DECL_USE_TEMPLATE): Parallel macro for FUNCTION and VAR_DECLs. | |
3692 | (various others): Accessor macros for the above. | |
3693 | ||
3694 | Fri May 27 13:57:40 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3695 | ||
3696 | * typeck.c (build_binary_op_nodefault): Division by constant zero is | |
3697 | an error. | |
3698 | ||
6060a796 | 3699 | Fri May 27 13:50:15 1994 Mike Stump <mrs@cygnus.com> |
a0a33927 MS |
3700 | |
3701 | * class.c (override_one_vtable): Don't modify things we don't own. | |
3702 | ||
3703 | Fri May 27 01:42:58 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3704 | ||
3705 | * decl.c (finish_decl): Don't postpone processing the initializer of | |
3706 | a decl with DECL_EXTERNAL set, and do call rest_of_compilation for a | |
3707 | PUBLIC const at toplevel. | |
3708 | (grokdeclarator): pedwarn about initializing non-const or | |
3709 | non-integral statics in the class body. | |
3710 | ||
3711 | * decl.c (pushtag): Don't try to set DECL_CLASS_CONTEXT on a | |
3712 | TYPE_DECL. | |
3713 | ||
3714 | * call.c (convert_harshness): Dereference reference on rhs before | |
3715 | proceeding, properly grok passing const things to non-const | |
3716 | references. | |
3717 | ||
3718 | * typeck.c (build_unary_op): Soften error about taking the address | |
3719 | of main() to a pedwarn. | |
3720 | ||
3721 | * lex.c (default_copy_constructor_body): Unambiguously specify base | |
3722 | classes (i.e. A((const class ::A&)_ctor_arg) ). | |
3723 | (default_assign_ref_body): Ditto. | |
3724 | ||
3725 | Thu May 26 13:13:55 1994 Gerald Baumgartner (gb@mexican.cygnus.com) | |
3726 | ||
3727 | * decl2.c (grokfield): Don't complain about local signature | |
3728 | method declaration without definition. | |
3729 | ||
3730 | * call.c (convert_harshness): If `type' is a signature pointer | |
3731 | and `parmtype' is a pointer to a signature, just return 0. We | |
3732 | don't really convert in this case; it's a result of making the | |
3733 | `this' parameter of a signature method a signature pointer. | |
3734 | ||
3735 | * call.c (build_method_call): Distinguish calling the default copy | |
3736 | constructor of a signature pointer/reference from a signature | |
3737 | member function call. | |
3738 | ||
3739 | Thu May 26 12:56:25 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3740 | ||
3741 | * decl2.c (grokfield): Don't set TREE_PUBLIC on member function | |
3742 | declarations. | |
3743 | ||
3744 | * decl.c (duplicate_decls): A previous function declaration as | |
3745 | static overrides a subsequent non-static definition. | |
3746 | (grokdeclarator): Don't set TREE_PUBLIC on inline method | |
3747 | declarations. | |
3748 | ||
3749 | Wed May 25 14:36:38 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3750 | ||
3751 | * decl.c (grokdeclarator): Handle initialization of static const | |
3752 | members. | |
3753 | (finish_decl): Ditto. | |
3754 | ||
3755 | * decl2.c (grokfield): Allow initialization of static const members | |
3756 | even when pedantic. | |
3757 | ||
3758 | * decl2.c (grokfield): Deal with grokdeclarator returning | |
3759 | error_mark_node. | |
3760 | ||
3761 | * decl.c (grok_ctor_properties): Return 0 for A(A) constructor. | |
3762 | (grokfndecl): Check the return value of grok_ctor_properties. | |
3763 | (start_method): Ditto. | |
3764 | ||
3765 | * parse.y (absdcl): Expand type_quals inline. | |
3766 | ||
3767 | Tue May 24 19:10:32 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3768 | ||
3769 | * decl.c (pushtag): Use IS_AGGR_TYPE rather than checking for a | |
3770 | RECORD_TYPE. | |
3771 | ||
3772 | Tue May 24 18:09:16 1994 Per Bothner (bothner@kalessin.cygnus.com) | |
3773 | ||
3774 | * cp-tree.h (VTABLE_NAME_FORMAT): If flag_vtable_thunks, | |
3775 | always use "__vt_%s". | |
3776 | * decl2.c (finish_vtable_vardecl): Don't consider abstract virtuals | |
3777 | when looking for a "sentinal" method (to decide on emitting vtables). | |
3778 | * decl2.c (finish_file): Scan all decls for thunks that need | |
3779 | to be emitted. | |
3780 | * decl2.c (finish_vtable_vardecl): Don't bother calling emit_thunk. | |
3781 | * method.c (make_thunk): Use a more meaningful label. If there | |
3782 | exists a matching top-level THUNK_DECL re-use it; otherwise | |
3783 | create a new THUNK_DECL (and declare it). | |
3784 | * method.c (emit_thunk): Make thunk external/public depending | |
3785 | on the underlying method. | |
3786 | ||
3787 | Tue May 24 00:22:04 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3788 | ||
3789 | * pt.c (tsubst): Use lookup_name_nonclass to find guiding decls, not | |
3790 | lookup_name. | |
3791 | ||
3792 | * call.c (build_overload_call_real): Don't immediately pick a | |
3793 | function which matches perfectly. | |
3794 | ||
3795 | * decl.c (grokdeclarator): Use c_build_type_variant for arrays. | |
3796 | (grokdeclarator): Warn about, and throw away, cv-quals attached to a | |
3797 | reference (like 'int &const j'). | |
3798 | ||
3799 | * typeck.c (convert_arguments): Don't mess with i for methods. | |
3800 | * call.c (build_method_call): Pass the function decl to | |
3801 | convert_arguments. | |
3802 | ||
3803 | * typeck.c (comp_ptr_ttypes_real): New function. Implements the | |
3804 | checking for which multi-level pointer conversions are allowed. | |
3805 | (comp_target_types): Call it. | |
3806 | (convert_for_assignment): Check const parity on the ultimate target | |
3807 | type, too. And make those warnings pedwarns. | |
3808 | ||
3809 | Mon May 23 14:11:24 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3810 | ||
3811 | * error.c (dump_char): Use TARGET_* for character constants. | |
3812 | ||
3813 | Mon May 23 13:03:03 1994 Brendan Kehoe (brendan@lisa.cygnus.com) | |
3814 | ||
3815 | * tree.c (debug_no_list_hash): Make static. | |
3816 | ||
3817 | * decl.c (decls_match): Say the types don't match if newdecl ends up | |
3818 | with a null type, after we've checked if olddecl does. | |
3819 | (pushdecl): Check if the decls themselves match before looking for | |
3820 | an extern redeclared as static, to avoid inappropriate and incorrect | |
3821 | warnings. | |
3822 | ||
3823 | Fri May 20 14:04:34 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3824 | ||
3825 | * decl.c (grokdeclarator): Make warning about duplicate short, etc. | |
3826 | a pedwarn. | |
3827 | ||
3828 | * typeck.c (build_c_cast): Casting to function or method type is an | |
3829 | error. | |
3830 | ||
3831 | * class.c (finish_struct): Make warning for anonymous class with no | |
3832 | instances a pedwarn. | |
3833 | ||
3834 | * Makefile.in (stamp-parse): Expect a s/r conflict. | |
3835 | ||
3836 | * typeck.c (build_modify_expr): pedwarn about using a non-lvalue | |
3837 | cast as an lvalue. | |
3838 | ||
2986ae00 MS |
3839 | Thu May 19 12:08:48 1994 Jason Merrill (jason@deneb.cygnus.com) |
3840 | ||
3841 | * cvt.c (type_promotes_to): Make sure bool promotes to int rather | |
3842 | than unsigned on platforms where sizeof(char)==sizeof(int). | |
3843 | ||
3844 | Wed May 18 14:27:06 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3845 | ||
3846 | * typeck.c (build_c_cast): Tack on a NOP_EXPR when casting to | |
3847 | another variant. | |
3848 | (build_modify_expr): Don't strip NOP_EXPRs, and don't get tricky | |
3849 | and treat them as lvalues. | |
3850 | ||
3851 | * decl.c (shadow_tag): Do complain about forward declarations of | |
3852 | enums and empty declarations. | |
3853 | * parse.y: Don't complain about forward declarations of enums and | |
3854 | empty declarations. | |
3855 | ||
3856 | * typeck.c (convert_for_assignment): Complain about changing | |
3857 | the signedness of a pointer's target type. | |
3858 | ||
3859 | * parse.y (stmt): Move duplicated code for checking case values from | |
3860 | here. | |
3861 | * decl2.c (check_cp_case_value): To here. And add a call to | |
3862 | constant_expression_warning. | |
3863 | ||
3864 | * typeck.c (convert_for_assignment): Don't complain about assigning | |
3865 | a negative value to bool. | |
3866 | ||
3867 | * decl.c (init_decl_processing): Make bool unsigned. | |
3868 | ||
3869 | * class.c (finish_struct): Allow bool bitfields. | |
3870 | ||
2986ae00 MS |
3871 | Wed May 18 12:35:27 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) |
3872 | ||
3873 | * Make-lang.in (c++.install-man): Get g++.1 from $(srcdir)/cp. | |
3874 | ||
3875 | Wed May 18 03:28:35 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3876 | ||
3877 | * cvt.c (build_type_conversion): Lose special handling of | |
3878 | truthvalues. | |
3879 | ||
3880 | * search.c (dfs_pushdecls): Improve shadowing warning. | |
3881 | ||
3882 | Tue May 17 13:34:46 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3883 | ||
3884 | * init.c (build_delete): Throw away const and volatile on `this'. | |
3885 | ||
3886 | * decl.c (finish_enum): Put the constants in TYPE_VALUES again, | |
3887 | rather than the enumerators. | |
3888 | (pushtag): s/cdecl/c_decl/g | |
3889 | ||
3890 | Mon May 16 23:04:01 1994 Stephen R. van den Berg (berg@pool.informatik.rwth-aachen.de) | |
3891 | ||
63718c49 GB |
3892 | * cp/typeck.c (common_type): Attribute merging. |
3893 | (comp_types): Utilise COMP_TYPE_ATTRIBUTES macro. | |
2986ae00 | 3894 | |
63718c49 | 3895 | * cp/parse.y: Revamp attribute parsing. |
2986ae00 MS |
3896 | |
3897 | Mon May 16 01:40:34 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3898 | ||
3899 | * decl.c (shadow_tag): Also check for inappropriate use of auto and | |
3900 | register. | |
3901 | ||
3902 | * method.c (build_overload_name): Clarify that the illegal case is a | |
3903 | pointer or reference to array of unknown bound. | |
3904 | ||
3905 | * error.c (dump_type_prefix): Print references to arrays properly. | |
3906 | ||
3907 | * typeck.c (various): Be more helpful in pointer | |
3908 | comparison diagnostics. | |
3909 | ||
3910 | * tree.c (lvalue_p): MODIFY_EXPRs are lvalues again. Isn't this | |
3911 | fun? | |
3912 | ||
3913 | * parse.y: Also catch an error after valid stmts. | |
3914 | ||
3915 | * search.c (dfs_init_vbase_pointers): Don't abort because `this' is | |
3916 | const. | |
3917 | ||
3918 | * typeck.c (convert_for_initialization): If call to | |
3919 | convert_to_reference generated a diagnostic, print out the parm | |
3920 | number and function decl if any. | |
3921 | ||
3922 | * errfn.c (cp_thing): Check atarg1 to determine whether or not we're | |
3923 | specifying a line, not atarg. | |
3924 | ||
3925 | * tree.c (build_cplus_method_type): Always make `this' const. | |
3926 | ||
3927 | * decl2.c (grokclassfn): If -fthis-is-variable and this function is | |
3928 | a constructor or destructor, make `this' non-const. | |
3929 | ||
3930 | * typeck.c (build_modify_expr): Don't warn specially about | |
3931 | assignment to `this' here anymore, since it will be caught by the | |
3932 | usual machinery. | |
3933 | ||
3934 | * various: Disallow specific GNU extensions (variable-size arrays, | |
3935 | etc.) when flag_ansi is set, not necessarily when pedantic is set, | |
3936 | so that people can compile with -pedantic-errors for tighter const | |
3937 | checking and such without losing desirable extensions. | |
3938 | ||
3939 | * typeck2.c (build_functional_cast): Call build_method_call with | |
3940 | LOOKUP_PROTECT. | |
3941 | (process_init_constructor): Only process FIELD_DECLs. | |
3942 | ||
3943 | * decl.c (finish_decl): Also force static consts with no explicit | |
3944 | initializer that need constructing into the data segment. | |
3945 | ||
3946 | * init.c (build_delete): Undo last patch, as it interferes with | |
3947 | automatic cleanups. | |
3948 | ||
3949 | Sat May 14 01:59:31 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3950 | ||
3951 | * call.c, class.h, cp-tree.h, cvt.c, decl2.c: Lose old overloading | |
3952 | code. | |
3953 | ||
3954 | * init.c (build_delete): pedwarn about using plain delete to delete | |
3955 | an array. | |
3956 | ||
3957 | Fri May 13 16:45:07 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3958 | ||
3959 | * typeck.c (comp_target_types): Be more helpful in contravariance | |
3960 | warnings, and make them pedwarns. | |
3961 | ||
3962 | * decl.c (grokdeclarator): Use decl_context to decide whether or not | |
3963 | this is an access declaration. | |
3964 | ||
3965 | * class.c (finish_struct_bits): Set TYPE_HAS_INT_CONVERSION if it | |
3966 | has a conversion to enum or bool, too. | |
3967 | ||
6060a796 | 3968 | Fri May 13 16:31:27 1994 Mike Stump <mrs@cygnus.com> |
2986ae00 MS |
3969 | |
3970 | * method.c (emit_thunk): Make declaration for | |
3971 | current_call_is_indirect local (needed for hppa). | |
3972 | ||
3973 | Fri May 13 16:16:37 1994 Jason Merrill (jason@deneb.cygnus.com) | |
3974 | ||
3975 | * pt.c (uses_template_parms): Grok BOOLEAN_TYPE. | |
3976 | (tsubst): Ditto. | |
3977 | ||
6060a796 | 3978 | Fri May 13 16:23:32 1994 Mike Stump <mrs@cygnus.com> |
2986ae00 MS |
3979 | |
3980 | * pt.c (tsubst): If there is already a function for this expansion, | |
3981 | use it. | |
3982 | * pt.c (instantiate_template): Ditto. | |
3983 | ||
3984 | Fri May 13 10:30:42 1994 Brendan Kehoe (brendan@lisa.cygnus.com) | |
3985 | ||
3986 | * parse.y (implicitly_scoped_stmt, simple_stmt case): Use | |
3987 | kept_level_p for MARK_ENDS argument to expand_end_bindings, to avoid | |
3988 | generating debug info for unemitted symbols on some systems. | |
3989 | ||
3990 | * cp-tree.h (build_static_cast, build_reinterpret_cast, | |
3991 | build_const_cast): Add declarations. | |
3992 | ||
6060a796 | 3993 | Fri May 13 09:50:31 1994 Mike Stump <mrs@cygnus.com> |
2986ae00 MS |
3994 | |
3995 | * search.c (expand_indirect_vtbls_init): Fix breakage from Apr 27 | |
3996 | fix. We now try get_binfo, and if that doesn't find what we want, | |
3997 | we go back to the old method, which still sometimes fails. | |
3998 | ||
3999 | Fri May 13 01:43:18 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4000 | ||
4001 | * parse.y (initdcl): Call cplus_decl_attributes on the right | |
4002 | variable. | |
4003 | * decl2.c (cplus_decl_attributes): Don't call decl_attributes for | |
4004 | void_type_node. | |
4005 | ||
4006 | * typeck.c (build_binary_op_nodefault): Change result_type for | |
4007 | comparison ops to bool. | |
4008 | (build_binary_op): Convert args of && and || to bool. | |
4009 | * cvt.c (build_default_binary_type_conversion): Convert args of && | |
4010 | and || to bool. | |
4011 | (build_default_unary_type_conversion): Convert arg of ! to bool. | |
4012 | (type_promotes_to): bool promotes to int. | |
4013 | ||
6060a796 | 4014 | Fri May 13 01:43:18 1994 Mike Stump <mrs@cygnus.com> |
2986ae00 MS |
4015 | |
4016 | Implement the new builtin `bool' type. | |
4017 | * typeck.c (build_binary_op_nodefault): Convert args of && and || to | |
4018 | bool. | |
4019 | (build_unary_op): Convert arg of ! to bool. | |
4020 | * parse.y: Know true and false. Use bool_truthvalue_conversion. | |
4021 | * method.c (build_overload_value): Know bool. | |
4022 | (build_overload_name): Ditto. | |
4023 | * lex.c (init_lex): Set up RID_BOOL. | |
4024 | * gxx.gperf: Add bool, true, false. | |
4025 | * error.c (*): Know bool. | |
4026 | * decl.c (init_decl_processing): Set up bool, true, false. | |
4027 | * cvt.c (cp_convert): Handle conversion to bool. | |
4028 | (build_type_conversion): Ditto. | |
4029 | * *.c: Accept bool where integers and enums are accepted (use | |
4030 | INTEGRAL_CODE_P macro). | |
4031 | ||
8de7634e RE |
4032 | Thu May 12 19:13:54 1994 Richard Earnshaw (rwe11@cl.cam.ac.uk) |
4033 | ||
4034 | * g++.c: Use #ifdef for __MSDOS__, not #if. | |
4035 | ||
6060a796 | 4036 | Thu May 12 18:05:18 1994 Mike Stump <mrs@cygnus.com> |
a4443a08 MS |
4037 | |
4038 | * decl2.c (lang_f_options): Handle -fshort-temps. -fshort-temps | |
4039 | gives old behavior , and destroys temporaries earlier. Default | |
4040 | behavior now conforms to the ANSI working paper. | |
4041 | ||
4042 | Thu May 12 14:45:35 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4043 | ||
4044 | * typeck.c (build_modify_expr): Understand MODIFY_EXPR as an lvalue. | |
4045 | Use convert_force to convert the result of a recursive call when we | |
4046 | are dealing with a NOP_EXPR. Don't automatically wrap MODIFY_EXPRs | |
4047 | in COMPOUND_EXPRs any more. | |
4048 | (various): Lose pedantic_lvalue_warning. | |
4049 | (unary_complex_lvalue): Understand MODIFY_EXPR. | |
4050 | ||
4051 | * cvt.c (convert_to_reference): Allow DECL to be error_mark_node if | |
4052 | we don't know what we're initializing. | |
4053 | ||
4054 | Wed May 11 01:59:36 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4055 | ||
4056 | * cvt.c (convert_to_reference): Modify to use convtype parameter. | |
4057 | Only create temporaries when initializing a reference, not when | |
4058 | casting. | |
4059 | (cp_convert): New main function. | |
4060 | (convert): Call cp_convert. | |
4061 | * cvt.c, decl.c, typeck.c: Fix calls to convert_to_reference. | |
4062 | * cp-tree.h (CONV_*): New constants used by conversion code for | |
4063 | selecting conversions to perform. | |
4064 | ||
4065 | * tree.c (lvalue_p): MODIFY_EXPRs are no longer lvalues. | |
4066 | ||
4067 | * typeck.c (build_{static,reinterpret,const_cast): Stubs that just | |
4068 | call build_c_cast. | |
4069 | * parse.y: Add {static,reinterpret,const}_cast. | |
4070 | * gxx.gperf: Ditto. | |
4071 | ||
4072 | * typeck.c (common_type): Allow methods with basetypes of different | |
4073 | UPTs. | |
4074 | (comptypes): Deal with UPTs. | |
4075 | (build_modify_expr): Wrap all MODIFY_EXPRs in a COMPOUND_EXPR. | |
4076 | ||
4077 | * pt.c (end_template_decl): Check for multiple definitions of member | |
4078 | templates. | |
4079 | ||
4080 | * call.c (build_method_call): Complain about calling an abstract | |
4081 | virtual from a constructor. | |
4082 | ||
4083 | * typeck.c (pointer_int_sum): Check for the integer operand being 0 | |
4084 | after checking the validity of the pointer operand. | |
4085 | ||
4086 | * typeck2.c (digest_init): Pedwarn about string initializer being | |
4087 | too long. | |
4088 | ||
4089 | Tue May 10 12:10:28 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4090 | ||
4091 | * decl.c (push_overloaded_decl): Only throw away a builtin if the | |
4092 | decl in question is the artificial one. | |
4093 | ||
4094 | * parse.y (simple_stmt, switch): Use implicitly_scoped_stmt because | |
4095 | expand_{start,end}_case cannot happen in the middle of a block. | |
4096 | ||
4097 | * cvt.c (build_type_conversion_1): Use convert again. | |
4098 | ||
4099 | Tue May 10 11:52:04 1994 Brendan Kehoe (brendan@lisa.cygnus.com) | |
4100 | ||
4101 | * typeck2.c (digest_init): Make sure we check for signed and | |
4102 | unsigned chars as well when warning about string initializers. | |
4103 | ||
4104 | * init.c (emit_base_init): Check if there's a DECL_NAME on the | |
4105 | member before trying to do an initialization for it. | |
4106 | ||
6060a796 | 4107 | Tue May 10 11:34:37 1994 Mike Stump <mrs@cygnus.com> |
a4443a08 MS |
4108 | |
4109 | * except.c: Don't do anything useful when cross compiling. | |
4110 | ||
4111 | Tue May 10 03:04:13 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4112 | ||
4113 | * decl.c (duplicate_decls): Fix up handling of builtins yet again. | |
4114 | (push_overloaded_decl): Ditto. | |
4115 | ||
4116 | * cvt.c (convert): Don't look for void type conversion. | |
4117 | ||
4118 | Mon May 9 18:05:41 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4119 | ||
4120 | * init.c (do_friend): Only do a pushdecl for friends, not | |
4121 | pushdecl_top_level. | |
4122 | ||
4123 | Mon May 9 13:36:34 1994 Jim Wilson (wilson@sphagnum.cygnus.com) | |
4124 | ||
4125 | * decl.c (lookup_name_current_level): Put empty statement after | |
4126 | the label OUT to make the code valid C. | |
4127 | ||
4128 | Mon May 9 12:20:57 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4129 | ||
4130 | * typeck.c (build_binary_op_nodefault): Only complain about | |
4131 | comparing void * and a function pointer if void * is smaller. | |
4132 | ||
4133 | Sun May 8 01:29:13 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4134 | ||
4135 | * decl.c (lookup_name_current_level): Move through temporary binding | |
4136 | levels. | |
4137 | ||
4138 | * parse.y (already_scoped_stmt): Revive. | |
4139 | (simple_stmt): Use it again. | |
4140 | ||
4141 | * decl.c (poplevel): Always call poplevel recursively if we're | |
4142 | dealing with a temporary binding level. | |
4143 | ||
6060a796 | 4144 | Sat May 7 10:52:28 1994 Mike Stump <mrs@cygnus.com> |
a4443a08 MS |
4145 | |
4146 | * decl.c (finish_decl): Make sure we run cleanups for initial values | |
4147 | of decls. Cures memory leak. | |
4148 | * decl.c (expand_static_init): Ditto for static variables. | |
4149 | * decl2.c (finish_file): Ditto for globals. | |
4150 | ||
4151 | Sat May 7 03:57:44 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4152 | ||
4153 | * typeck.c (commonparms): Don't complain about redefining default | |
4154 | args. | |
4155 | ||
4156 | * decl.c (duplicate_decls): Don't complain twice about conflicting | |
4157 | function decls. | |
4158 | (decls_match): Don't look at default args. | |
4159 | (redeclaration_error_message): Complain about redefining default | |
4160 | args. | |
4161 | ||
4162 | * call.c (build_overload_call_real): Also deal with guiding | |
4163 | declarations coming BEFORE the template decl. | |
4164 | ||
4165 | * pt.c (unify): Allow different parms to have different | |
4166 | cv-qualifiers. | |
4167 | (unify): Allow trivial conversions on non-template parms. | |
4168 | ||
4169 | Fri May 6 03:53:23 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4170 | ||
4171 | * pt.c (tsubst): Support OFFSET_TYPEs. | |
4172 | (unify): Ditto. | |
4173 | ||
4174 | * decl2.c (finish_decl_parsing): Call push_nested_class with a type. | |
4175 | ||
4176 | * init.c (build_offset_ref): Fix error message. | |
4177 | * search.c (lookup_field): Ditto. | |
4178 | ||
4179 | * call.c (build_scoped_method_call): Pass binfo to | |
4180 | build_method_call. | |
4181 | * typeck.c (build_object_ref): Ditto. | |
4182 | ||
4183 | * typeck2.c (binfo_or_else): Don't return a _TYPE. | |
4184 | ||
4185 | * class.c (finish_struct): Don't complain about re-use of inherited | |
4186 | names or shadowing of type decls. | |
4187 | * decl.c (pushdecl_class_level): Ditto. | |
4188 | ||
4189 | * decl.c (finish_enum): Set the type of all the enums. | |
4190 | ||
4191 | * class.c (finish_struct): Don't get confused by access decls. | |
4192 | ||
4193 | * cp-tree.h (TYPE_MAIN_DECL): New macro to get the _DECL for a | |
4194 | _TYPE. You can stop using TYPE_NAME for that now. | |
4195 | ||
4196 | * parse.y: Lose doing_explicit (check $0 instead). | |
4197 | * gxx.gperf: 'template' now has a RID. | |
4198 | * lex.h (rid): Ditto. | |
4199 | * lex.c (init_lex): Set up the RID for 'template'. | |
4200 | ||
4201 | * parse.y (type_specifier_seq): typed_typespecs or | |
4202 | nonempty_type_quals. Use it. | |
4203 | (handler_args): Fix bogus syntax. | |
4204 | (raise_identifier{,s}, optional_identifier): Lose. | |
4205 | * except.c (expand_start_catch_block): Use grokdeclarator to parse | |
4206 | the catch variable. | |
4207 | (init_exception_processing): The second argument to | |
4208 | __throw_type_match is ptr_type_node. | |
4209 | ||
4210 | Fri May 6 07:18:54 1994 Chip Salzenberg (chip@fin) | |
4211 | ||
4212 | [ change propagated from c-decl.c of snapshot 940429 ] | |
4213 | * cp/decl.c (finish_decl): Setting asmspec_tree should not | |
4214 | zero out the old RTL. | |
4215 | ||
6060a796 | 4216 | Fri May 6 01:25:38 1994 Mike Stump <mrs@cygnus.com> |
8d2733ca MS |
4217 | |
4218 | Add alpha exception handling support to the compiler. | |
4219 | Quick and dirty backend in except.c. | |
4220 | ||
4221 | * cp/*: Remove most remnants of old exception handling support. | |
4222 | * decl.c (finish_function): Call expand_exception_blocks to put | |
4223 | the exception hanlding blocks at the end of the function. | |
4224 | * dec.c (hack_incomplete_structures): Make sure expand_decl_cleanup | |
4225 | comes after expand_decl_init. | |
4226 | * except.c: Reimplementation. | |
4227 | * expr.c (cplus_expand_expr): Handle THROW_EXPRs. | |
4228 | * lex.c (init_lex): Always have catch, try and throw be reserved | |
4229 | words, so that we may always parse exception handling. | |
4230 | * parse.y: Cleanup to support new interface into exception handling. | |
4231 | * tree.def (THROW_EXPR): Add. | |
4232 | ||
4233 | Thu May 5 17:35:37 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4234 | ||
4235 | * parse.y (simple_stmt, for loops): Use implicitly_scoped_stmt. | |
4236 | (various): Lose .kindof_pushlevel and partially_scoped_stmt. | |
4237 | ||
4238 | Thu May 5 16:17:27 1994 Kung Hsu (kung@mexican.cygnus.com) | |
4239 | ||
4240 | * parse.y (already_scoped_stmt): move expand_end_binding() to | |
4241 | fix the unmatched LBB/LBE in stabs. | |
4242 | ||
4243 | Thu May 5 14:36:17 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4244 | ||
4245 | * decl.c (set_nested_typename): Set TREE_MANGLED on the new | |
4246 | identifiers. | |
4247 | (pushdecl): Check TREE_MANGLED. | |
4248 | (xref_tag): Ditto. | |
4249 | * cp-tree.h (TREE_MANGLED): This identifier is a | |
4250 | DECL_NESTED_TYPENAME (named to allow for future use to denote | |
4251 | mangled function names as well). | |
4252 | ||
4253 | Implement inconsistency checking specified in [class.scope0]. | |
4254 | * decl.c (lookup_name_real): Don't set ICV here after all. | |
4255 | (finish_enum): Also set the type of the enumerators themselves. | |
4256 | (build_enumerator): Put the CONST_DECL in the list instead of its | |
4257 | initial value. | |
4258 | (pushdecl_class_level): Check inconsistent use of a name in the | |
4259 | class body. | |
4260 | * class.c (finish_struct): Check inconsistent use of a name in the | |
4261 | class body. Don't set DECL_CONTEXT on types here anymore. | |
4262 | * parse.y (qualified_type_name): Note that the identifier has now | |
4263 | been used (as a type) in the class body. | |
4264 | * lex.c (do_identifier): Note that the identifier has now been used | |
4265 | (as a constant) in the class body. | |
4266 | * error.c (dump_decl): Print type and enum decls better. | |
4267 | ||
700f8a87 MS |
4268 | Thu May 5 09:35:35 1994 Brendan Kehoe (brendan@lisa.cygnus.com) |
4269 | ||
4270 | * typeck.c (build_modify_expr): Warn about assignment to `this'. | |
4271 | ||
4272 | Wed May 4 15:55:49 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4273 | ||
4274 | * init.c (build_delete): Use the global operator delete when | |
4275 | requested. | |
4276 | ||
4277 | * decl.c (lookup_name_real): If we find the type we're looking in a | |
4278 | base class while defining a class, set IDENTIFIER_CLASS_VALUE for | |
4279 | the type. | |
4280 | ||
4281 | * class.c (finish_struct): Remove a couple of dependencies on | |
4282 | language linkage. | |
4283 | ||
4284 | * decl.c (pushtag): Classes do nest in extern "C" blocks. | |
4285 | (pushdecl): Only set DECL_NESTED_TYPENAME on the canonical one for | |
4286 | the type. | |
4287 | (pushtag): Remove another dependency on the language linkage. | |
4288 | ||
4289 | * lex.c (cons_up_default_function): Don't set DECL_CLASS_CONTEXT to | |
4290 | a const-qualified type. | |
4291 | ||
4292 | * decl.c (push_overloaded_decl): Throw away built-in decls here. | |
4293 | (duplicate_decls): Instead of here. | |
4294 | ||
4295 | Wed May 4 15:27:40 1994 Per Bothner (bothner@kalessin.cygnus.com) | |
4296 | ||
4297 | * typeck.c (get_member_function_from_ptrfunc): Do The Right | |
4298 | Thing (I hope) if we're using thunks. | |
4299 | ||
4300 | Wed May 4 13:52:38 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4301 | ||
4302 | * parse.y (specialization): aggr template_type_name ';'. | |
4303 | (named_class_head_sans_basetype): Use it. | |
4304 | (explicit_instantiation): Ditto. | |
4305 | (tmpl.2): Revert. | |
4306 | ||
4307 | * cvt.c (build_type_conversion_1): Use convert_for_initialization, | |
4308 | rather than convert, to do conversions after the UDC. | |
4309 | ||
4310 | * cp-tree.h (SHARED_MEMBER_P): This member is shared between all | |
4311 | instances of the class. | |
4312 | ||
4313 | * search.c (lookup_field): If the entity found by two routes is the | |
4314 | same, it's not ambiguous. | |
4315 | ||
4316 | Wed May 4 12:10:00 1994 Per Bothner (bothner@kalessin.cygnus.com) | |
4317 | ||
4318 | * decl.c (lookup_name_real): Check for a NULL TREE_VALUE, | |
4319 | to prevent the compiler from crashing ... | |
4320 | ||
4321 | Wed May 4 11:19:45 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4322 | ||
4323 | * call.c (build_method_call): If we don't have an object, check | |
4324 | basetype_path to figure out where to look up the function. | |
4325 | ||
4326 | * typeck.c (convert_for_initialization): Pass TYPE_BINFO (type) to | |
4327 | build_method_call in case exp is NULL_TREE. | |
4328 | ||
4329 | Tue May 3 16:02:53 1994 Per Bothner (bothner@kalessin.cygnus.com) | |
4330 | ||
4331 | Give a vtable entries a unique named type, for the sake of gdb. | |
4332 | * class.c (build_vtable_entry): The addres of a thunk now has | |
4333 | type vtable_entry_type, not ptr_type_node. | |
4334 | * method.c (make_thunk): Fix type of THUNK_DECL. | |
4335 | * class.c (add_virtual_function, override_one_vtable): Use | |
4336 | vfunc_ptr_type_node, instead of ptr_type_node. | |
4337 | * cp-tree.h (vfunc_ptr_type_node): New macro. | |
4338 | * decl.c (init_decl_processing): Make vtable_entry_type | |
4339 | be a unique type of pointer to a unique function type. | |
4340 | ||
4341 | Tue May 3 09:20:44 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4342 | ||
4343 | * parse.y (do_explicit): Sets doing_explicit to 1. | |
4344 | (explicit_instantiation): Use do_explicit rather than TEMPLATE | |
4345 | directly, add "do_explicit error" rule. | |
4346 | (datadef): Set doing_explicit to 0 after an explicit instantiation. | |
4347 | (tmpl.2): Don't instantiate if we see a ';' unless we're doing an | |
4348 | explicit instantiation. | |
4349 | (named_class_head_sans_basetype): Remove aggr template_type_name | |
4350 | ';' again. | |
4351 | ||
4352 | Mon May 2 23:17:21 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4353 | ||
4354 | * search.c (lookup_nested_tag): Lose. | |
4355 | ||
4356 | * decl2.c (grokfield): Set DECL_CONTEXT on TYPE_DECLs. | |
4357 | (lookup_name_nonclass): Lose. | |
4358 | ||
4359 | * decl.c (poplevel_class): Add force parameter. | |
4360 | (lookup_name_real): Fix handling of explicit scoping which specifies | |
4361 | a class currently being defined. Add 'nonclass' argument. | |
4362 | (lookup_name, lookup_name_nonclass): Shells for lookup_name_real. | |
4363 | ||
4364 | * class.c (finish_struct): Don't unset IDENTIFIER_CLASS_VALUEs here. | |
4365 | (popclass): Force clearing of IDENTIFIER_CLASS_VALUEs if we're being | |
4366 | called from finish_struct. | |
4367 | ||
4368 | Mon May 2 19:06:21 1994 Per Bothner (bothner@kalessin.cygnus.com) | |
4369 | ||
4370 | * decl.c (init_decl_processing), cp-tree.h: Removed memptr_type. | |
4371 | (It seeems redundant, given build_ptrmemfunc_type.) | |
4372 | * typeck.c (get_member_function_from_ptrfunc), gc.c (build_headof, | |
4373 | build_classof): Use vtable_entry_type instead of memptr_type. | |
4374 | * method.c (emit_thunk): Call poplevel with functionbody==0 | |
4375 | to prevent DECL_INITIAL being set to a BLOCK. | |
4376 | ||
4377 | Mon May 2 15:02:11 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4378 | ||
4379 | * parse.y (named_class_head_sans_basetype): Add "aggr | |
4380 | template_type_name ';'" rule for forward declaration of | |
4381 | specializations. | |
4382 | ||
4383 | Mon May 2 15:02:11 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4384 | ||
4385 | * class.c (instantiate_type): Deal with pmf's. | |
bfef964b JM |
4386 | |
4387 | * Make-lang.in (cc1plus): Don't depend on OBJS or BC_OBJS, since | |
4388 | stamp-objlist does. | |
700f8a87 | 4389 | |
bfef964b JM |
4390 | * Makefile.in (../cc1plus): Depend on OBJDEPS. |
4391 | (OBJDEPS): Dependency version of OBJS. | |
4392 | ||
700f8a87 MS |
4393 | Mon May 2 12:51:31 1994 Kung Hsu (kung@mexican.cygnus.com) |
4394 | ||
4395 | * search.c (dfs_debug_mark): unmark TYPE_DECL_SUPPRESS_DEBUG, not | |
4396 | DECL_IGNORED_P. | |
4397 | ||
4398 | Fri Apr 29 12:29:56 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4399 | ||
4400 | * class.c (finish_struct): Clear out memory of local tags. And | |
4401 | typedefs. | |
4402 | ||
4403 | * decl2.c (grokclassfn): Don't set DECL_CONTEXT to a cv-qualified | |
4404 | type. | |
4405 | * search.c (get_matching_virtual): Be more helpful in error message. | |
4406 | ||
4407 | * *: Use DECL_ARTIFICIAL (renamed from DECL_SYNTHESIZED). | |
4408 | ||
4409 | * lex.c (default_assign_ref_body): Expect TYPE_NESTED_NAME to work. | |
4410 | (default_copy_constructor_body): Ditto. | |
4411 | ||
4412 | * class.c (finish_struct): Don't gratuitously create multiple decls | |
4413 | for nested classes. | |
4414 | ||
4415 | Thu Apr 28 23:39:38 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4416 | ||
4417 | Avoid clobbering the arg types of other functions when reverting | |
4418 | static member functions. | |
4419 | * decl.c (revert_static_member_fn): Rearrange arguments, don't | |
4420 | require values for 'fn' and 'argtypes', add warning to comment | |
4421 | above. | |
4422 | (decls_match): Rearrange arguments in call to rsmf. | |
4423 | (grok_op_properties): Don't pass values for fn and argtypes. | |
4424 | * pt.c (instantiate_template): Don't pass values for fn and argtypes. | |
4425 | ||
15fa00e9 DE |
4426 | Thu Apr 28 16:29:11 1994 Doug Evans (dje@canuck.cygnus.com) |
4427 | ||
4428 | * Make-lang.in (cc1plus): Depend on stamp-objlist. | |
4429 | * Makefile.in (BC_OBJS): Delete. | |
700f8a87 MS |
4430 | (OBJS): Cat ../stamp-objlist to get language independent files. |
4431 | Include ../c-common.o. | |
15fa00e9 DE |
4432 | (../cc1plus): Delete reference to BC_OBJS. |
4433 | ||
700f8a87 MS |
4434 | Thu Apr 28 02:12:08 1994 Jason Merrill (jason@deneb.cygnus.com) |
4435 | ||
4436 | * search.c (compute_access): No really, deal with static members | |
4437 | properly. Would I lie to you? | |
4438 | ||
4439 | Implement lexical hiding of function declarations. | |
4440 | * pt.c (tsubst): Use lookup_name to look for function decls to guide | |
4441 | instantiation. | |
4442 | * method.c (build_opfncall): Use lookup_name_nonclass to look for | |
4443 | non-member functions. | |
4444 | * init.c (do_friend): Use lookup_name_nonclass to look for | |
4445 | functions. | |
4446 | * error.c (ident_fndecl): Use lookup_name to look for functions. | |
4447 | * decl2.c (lookup_name_nonclass): New function, skips over | |
4448 | CLASS_VALUE. | |
4449 | * decl.c (struct binding_level): Lose overloads_shadowed field. | |
4450 | (poplevel): Don't deal with overloads_shadowed. | |
4451 | (push_overloaded_decl): Do lexical hiding for functions. | |
4452 | * class.c (instantiate_type): Don't check non-members if we have | |
4453 | members with the same name. | |
4454 | * call.c (build_method_call): Use lookup_name_nonclass instead of | |
4455 | IDENTIFIER_GLOBAL_VALUE to check for non-member functions. | |
4456 | (build_overload_call_real): Ditto. | |
4457 | ||
4458 | * decl.c (duplicate_decls): Check for ambiguous overloads here. | |
4459 | (push_overloaded_decl): Instead of here. | |
4460 | ||
4461 | * decl.c (pushdecl): Back out Chip's last change. | |
4462 | ||
4463 | * decl.c (grok_op_properties): operators cannot be static members. | |
4464 | ||
4465 | * cp-tree.h (DECL_SYNTHESIZED): DECL_SOURCE_LINE == 0 | |
4466 | (SET_DECL_SYNTHESIZED): DECL_SOURCE_LINE = 0 | |
4467 | * lex.c (cons_up_default_function): Use SET_DECL_SYNTHESIZED. | |
4468 | ||
4469 | * method.c (do_inline_function_hair): Don't put friends of local | |
4470 | classes into global scope, either. | |
4471 | ||
4472 | * typeck2.c (build_functional_cast): Don't look for a function call | |
4473 | interpretation. | |
4474 | ||
6060a796 | 4475 | Thu Apr 28 15:19:46 1994 Mike Stump <mrs@cygnus.com> |
39211cd5 MS |
4476 | |
4477 | * cp-tree.h: disable use of backend EH. | |
4478 | ||
15fa00e9 DE |
4479 | Wed Apr 27 21:01:24 1994 Doug Evans (dje@canuck.cygnus.com) |
4480 | ||
4481 | * Make-lang.in (c++.distdir): mkdir tmp/cp first. | |
4482 | * Makefile.in (INCLUDES): Move definition to same place as | |
4483 | parent makefile. | |
4484 | (ALLOCA): Define. | |
4485 | (OLDAR_FLAGS): Delete. | |
4486 | (OLDCC): Define. | |
4487 | (DIR): Delete. | |
4488 | (CLIB): Define. | |
4489 | (####site): Delete. | |
4490 | (SUBDIR_USE_ALLOCA): Don't use ALLOCA if compiling with gcc. | |
4491 | ||
39211cd5 MS |
4492 | Wed Apr 27 19:10:04 1994 Kung Hsu (kung@mexican.cygnus.com) |
4493 | ||
4494 | * decl.c (xref_tag): not to use strstr(), it's not available on | |
4495 | all platforms. | |
4496 | ||
4497 | Wed Apr 27 18:10:12 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4498 | ||
4499 | * class.c (finish_struct): Resolve yet another class/pmf confusion. | |
4500 | ||
4501 | * call.c (build_overload_call_real): Don't take the single-function | |
4502 | shortcut if we're dealing with an overloaded operator. | |
4503 | ||
6060a796 | 4504 | Wed Apr 27 17:35:37 1994 Mike Stump <mrs@cygnus.com> |
39211cd5 MS |
4505 | |
4506 | * search.c (get_base_distance): Search the virtual base class | |
4507 | binfos, incase someone wants to convert to a real virtual base | |
4508 | class. | |
4509 | * search.c (expand_indirect_vtbls_init): Use convert_pointer_to_real | |
4510 | instead of convert_pointer_to, as it now will work. | |
4511 | ||
4512 | Wed Apr 27 15:36:49 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4513 | ||
4514 | * cvt.c (convert_to_reference): Don't complain about casting away | |
4515 | const and volatile. | |
4516 | ||
4517 | * typeck.c (build_unary_op): References are too lvalues. | |
4518 | ||
6060a796 | 4519 | Wed Apr 27 13:58:05 1994 Mike Stump <mrs@cygnus.com> |
39211cd5 MS |
4520 | |
4521 | * class.c (override_one_vtable): We have to prepare_fresh_vtable | |
4522 | before we modify it, not after, also, we cannot reuse an old vtable, | |
4523 | once we commit to a new vtable. Implement ambiguous overrides in | |
4524 | virtual bases as abstract. Hack until we make the class | |
4525 | ill-formed. | |
4526 | ||
4527 | Wed Apr 27 01:17:08 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4528 | ||
4529 | * parse.y (unary_expr): Expand new_placement[opt] and | |
4530 | new_initializer[opt] inline. | |
4531 | ||
4532 | * search.c (lookup_fnfields): Don't throw away the inheritance | |
4533 | information here, either. | |
4534 | (compute_access): Handle static members properly. | |
4535 | ||
4536 | * init.c (build_member_call): Always set basetype_path, and pass it | |
4537 | to lookup_fnfields. | |
4538 | ||
4539 | * search.c (lookup_field): Deal properly with the case where | |
4540 | xbasetype is a chain of binfos; don't throw away the inheritance | |
4541 | information. | |
4542 | (compute_access): protected_ok always starts out at 0. | |
4543 | ||
4544 | * init.c (resolve_offset_ref): Don't cast `this' to the base type | |
4545 | until we've got our basetype_path. | |
4546 | ||
4547 | * cp-tree.h (IS_OVERLOAD_TYPE): aggregate or enum. | |
4548 | ||
4549 | * cvt.c (build_up_reference): Use build_pointer_type rather than | |
4550 | TYPE_POINTER_TO. | |
4551 | ||
4552 | * call.c (convert_harshness_ansi): Call type_promotes_to for reals | |
4553 | as well. | |
4554 | ||
4555 | * cvt.c (type_promotes_to): Retain const and volatile, add | |
4556 | float->double promotion. | |
4557 | ||
4558 | * decl.c (grokdeclarator): Don't bash references to arrays into | |
4559 | references to pointers in function parms. Use type_promotes_to. | |
4560 | ||
6060a796 | 4561 | Tue Apr 26 23:44:36 1994 Mike Stump <mrs@cygnus.com> |
39211cd5 MS |
4562 | |
4563 | Finish off Apr 19th work. | |
4564 | ||
4565 | * class.c (finish_struct_bits): Rename has_abstract_virtuals to | |
4566 | might_have_abstract_virtuals. | |
4567 | * class.c (strictly_overrides, override_one_vtable, | |
4568 | merge_overrides): New routines to handle virtual base overrides. | |
4569 | * class.c (finish_struct): Call merge_overrides to handle overrides | |
4570 | in virtual bases. | |
4571 | ||
4572 | Tue Apr 26 12:45:53 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4573 | ||
4574 | * typeck.c (build_function_call): Call build_function_call_real with | |
4575 | LOOKUP_NORMAL. | |
4576 | ||
4577 | * *: Don't deal with TYPE_EXPRs. | |
4578 | ||
4579 | * tree.c (lvalue_p): If the type of the expression is a reference, | |
4580 | it's an lvalue. | |
4581 | ||
4582 | * cvt.c (convert_to_reference): Complain about passing const | |
4583 | lvalues to non-const references. | |
4584 | (convert_from_reference): Don't arbitrarily throw away const and | |
4585 | volatile on the target type. | |
4586 | ||
4587 | * parse.y: Simplify and fix rules for `new'. | |
4588 | ||
4589 | * decl.c (grok_op_properties): operator void is illegal. | |
4590 | ||
4591 | Mon Apr 25 02:36:28 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4592 | ||
4593 | * parse.y (components): Anonymous bitfields can still have declspecs. | |
4594 | ||
4595 | * decl.c (pushdecl): Postpone handling of function templates like we | |
4596 | do C functions. | |
4597 | ||
4598 | * search.c (expand_indirect_vtbls_init): Fix infinite loop when | |
4599 | convert_pointer_to fails. | |
4600 | ||
4601 | * call.c (compute_conversion_costs_ansi): A user-defined conversion | |
4602 | by itself is better than that UDC followed by standard conversions. | |
4603 | Don't treat integers and reals specially. | |
4604 | ||
4605 | * cp-tree.h: Declare flag_ansi. | |
4606 | ||
4607 | * typeck.c (c_expand_return): pedwarn on return in void function | |
4608 | even if the expression is of type void. | |
4609 | (build_c_cast): Don't do as much checking for casts to void. | |
4610 | (build_modify_expr): pedwarn about array assignment if this code | |
4611 | wasn't generated by the compiler. | |
4612 | ||
4613 | * tree.c (lvalue_p): A comma expression is an lvalue if its second | |
4614 | operand is. | |
4615 | ||
4616 | * typeck.c (default_conversion): Move code for promoting enums and | |
4617 | ints from here. | |
4618 | * cvt.c (type_promotes_to): To here. | |
4619 | * call.c (convert_harshness_ansi): Use type_promotes_to. Also fix | |
4620 | promotion semantics for reals. | |
4621 | ||
15fa00e9 DE |
4622 | Sun Apr 24 16:52:51 1994 Doug Evans (dje@canuck.cygnus.com) |
4623 | ||
4624 | * Make-lang.in (c++.install-common): Check for g++-cross. | |
4625 | * Makefile.in: Remove Cygnus cruft. | |
4626 | (config.status): Delete. | |
4627 | (RTL_H): Define. | |
4628 | (TREE_H): Use complete pathname, some native makes have minimal | |
4629 | VPATH support. | |
4630 | (*.o): Use complete pathname to headers in parent dir. | |
4631 | (doc, info, dvi): Delete. | |
4632 | ||
700f8a87 MS |
4633 | Sun Apr 24 16:52:51 1994 Doug Evans (dje@canuck.cygnus.com) |
4634 | ||
4635 | * Make-lang.in (c++.install-common): Check for g++-cross. | |
4636 | * Makefile.in: Remove Cygnus cruft. | |
4637 | (config.status): Delete. | |
4638 | (RTL_H): Define. | |
4639 | (TREE_H): Use complete pathname, some native makes have minimal | |
4640 | VPATH support. | |
4641 | (*.o): Use complete pathname to headers in parent dir. | |
4642 | (doc, info, dvi): Delete. | |
4643 | ||
39211cd5 MS |
4644 | Sun Apr 24 00:47:49 1994 Jason Merrill (jason@deneb.cygnus.com) |
4645 | ||
4646 | * decl.c (pushdecl): Avoid redundant warning on redeclaring function | |
4647 | with different return type. | |
4648 | (decls_match): Compare return types strictly. | |
4649 | ||
4650 | Fri Apr 22 12:55:42 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4651 | ||
4652 | * cvt.c (build_type_conversion): Do try to convert through other | |
4653 | pointers. This will fail if the class defines multiple pointer | |
4654 | conversions. | |
4655 | ||
4656 | * error.c (dump_type_prefix): Print out pointers to arrays properly. | |
4657 | (dump_type_suffix): Ditto. (was 'int *[]', now 'int (*)[]') | |
4658 | ||
4659 | * typeck.c (build_unary_op): Disallow ++/-- on pointers to | |
4660 | incomplete type. | |
4661 | ||
4662 | * decl.c (duplicate_decls): Check mismatched TREE_CODES after | |
4663 | checking for shadowing a builtin. If we're redeclaring a builtin | |
4664 | function, bash the old decl to avoid an ambiguous overload. | |
4665 | ||
4666 | * cvt.c (convert_to_reference): Don't force arrays to decay here. | |
4667 | ||
4668 | * tree.c (lvalue_p): A MODIFY_EXPR is an lvalue. | |
4669 | ||
4670 | * decl.c (duplicate_decls): Don't assume that the decls will have | |
4671 | types. | |
4672 | ||
4673 | Mon Apr 18 11:35:32 1994 Chip Salzenberg (chip@fin.uucp) | |
4674 | ||
4675 | [ cp/* changes propagated from c-* changes in 940318 snapshot ] | |
4676 | * c-decl.c (pushdecl): Warn if type mismatch with another external decl | |
4677 | in a global scope. | |
4678 | ||
4679 | Fri Apr 22 06:38:56 1994 Chip Salzenberg (chip@fin.uucp) | |
4680 | ||
4681 | * cp/typeck2.c (signature_error): Use cp_error for "%T". | |
4682 | ||
4683 | Mon Apr 18 11:59:59 1994 Chip Salzenberg (chip@fin.uucp) | |
4684 | ||
4685 | [ cp/* changes propagated from c-* changes in 940415 snapshot ] | |
4686 | * cp/decl.c (duplicate_decls, pushdecl, builtin_function): | |
4687 | Use DECL_FUNCTION_CODE instead of DECL_SET_FUNCTION_CODE. | |
4688 | ||
4689 | Mon Apr 18 11:55:18 1994 Chip Salzenberg (chip@fin.uucp) | |
4690 | ||
4691 | [ cp/* changes propagated from c-* changes in 940409 snapshot ] | |
4692 | * cp/decl.c (duplicate_decls): Put new type in same obstack as | |
4693 | old ones, or permanent if old ones in different obstacks. | |
4694 | ||
4695 | Mon Apr 18 11:48:49 1994 Chip Salzenberg (chip@fin.uucp) | |
4696 | ||
4697 | [ cp/* changes propagated from c-* changes in 940401 snapshot ] | |
4698 | * cp/parse.y (attrib): Handle string args as expressions, | |
4699 | merging the two rules. `mode' attribute now takes a string arg. | |
4700 | Delete the rule for an identifier as arg. | |
4701 | ||
4702 | Mon Apr 18 11:24:00 1994 Chip Salzenberg (chip@fin.uucp) | |
4703 | ||
4704 | [ cp/* changes propagated from c-* changes in 940312 snapshot ] | |
4705 | * cp/typeck.c (pointer_int_sum): Multiplication should be done signed. | |
4706 | (pointer_diff): Likewise the division. | |
4707 | ||
4708 | Sun Mar 6 19:43:39 1994 Chip Salzenberg (chip@fin.uucp) | |
4709 | ||
4710 | [ cp/* changes propagated from c-* changes in 940304 snapshot ] | |
4711 | * cp/decl.c (finish_decl): Issue warning for large objects, | |
4712 | if requested. | |
4713 | ||
4714 | Sat Feb 19 22:20:32 1994 Chip Salzenberg (chip@fin.uucp) | |
4715 | ||
4716 | [ cp/* changes propagated from c-* changes in 940218 snapshot ] | |
4717 | * cp/parse.y (attrib): Handle attribute ((section ("string"))). | |
4718 | * cp/decl.c (duplicate_decls): Merge section name into new decl. | |
4719 | ||
4720 | Tue Feb 8 09:49:17 1994 Chip Salzenberg (chip@fin.uucp) | |
4721 | ||
4722 | [ cp/* changes propagated from c-* changes in 940206 snapshot ] | |
4723 | * cp/typeck.c (signed_or_unsigned_type): Check for any | |
63718c49 | 4724 | INTEGRAL_TYPE_P not just INTEGER_TYPE. |
39211cd5 MS |
4725 | |
4726 | Mon Dec 6 13:35:31 1993 Norbert Kiesel (norbert@i3.INformatik.rwth-aachen.DE) | |
4727 | ||
4728 | * cp/decl.c (finish_enum): Start from 0 when determining precision | |
4729 | for short enums. | |
4730 | ||
4731 | Fri Dec 3 17:07:58 1993 Ralph Campbell (ralphc@pyramid.COM) | |
4732 | ||
4733 | * cp/parse.y (unary_expr): Look at $1 for tree_code rather than | |
4734 | casting $$. | |
4735 | ||
4736 | Wed Nov 17 19:22:09 1993 Chip Salzenberg (chip@fin.uucp) | |
4737 | ||
4738 | * cp/typeck.c (build_binary_op_nodefault): Propagate code | |
4739 | from C front-end to optimize unsigned short division. | |
4740 | (build_conditional_expr): Fix bug in "1 ? 42 : (void *) 8". | |
4741 | ||
4742 | Wed Nov 17 19:17:18 1993 Chip Salzenberg (chip@fin.uucp) | |
4743 | ||
4744 | * cp/call.c (convert_harshness_ansi): Given an (e.g.) char | |
4745 | constant, prefer 'const char &' to 'int'. | |
4746 | ||
4747 | Wed Feb 3 13:11:48 1993 Chip Salzenberg (chip@fin.uucp) | |
4748 | ||
4749 | * cp/class.c (finish_struct_methods): Handle multiple | |
4750 | constructors in fn_fields list. | |
4751 | ||
4752 | Fri Apr 22 12:48:10 1994 Kung Hsu (kung@mexican.cygnus.com) | |
4753 | ||
4754 | * class.c (finish_struct): use TYPE_DECL_SUPPRESS_DEBUG to flag | |
4755 | types not to be dumped in stabs, like types in #pragma interface. | |
4756 | * decl.c (init_decl_processing): use TYPE_DECL_SUPPRESS_DEBUG to | |
4757 | mark unknown type. | |
4758 | ||
15fa00e9 DE |
4759 | Fri Apr 22 03:27:26 1994 Doug Evans (dje@cygnus.com) |
4760 | ||
4761 | * Language directory reorganization. | |
4762 | See parent makefile. | |
4763 | ||
39211cd5 MS |
4764 | Thu Apr 21 18:27:57 1994 Per Bothner (bothner@kalessin.cygnus.com) |
4765 | ||
4766 | * cp-tree.h (THUNK_DELTA): It is normally negative, so | |
4767 | use signed .i variant of frame_size rather than unsigned .u. | |
4768 | * cp-tree.h (VTABLE_NAME_FORMAT): If flag_vtable_thunks, | |
4769 | use "VT" rather than "vt" due to binary incompatibility. | |
4770 | * class.c (get_vtable_name): Use strlen of VTABLE_NAME_FORMAT, | |
4771 | rather than sizeof, since it is now an expression. | |
4772 | * class.c (modify_one_vtable): Modify to skip initial element | |
4773 | containing a count of the vtable. | |
4774 | ||
7177d104 MS |
4775 | Thu Apr 21 00:09:02 1994 Jason Merrill (jason@deneb.cygnus.com) |
4776 | ||
4777 | * lex.c (check_newline): Force interface_unknown on main input file. | |
4778 | ||
4779 | * pt.c (do_pending_expansions): Always emit functions that have been | |
4780 | explicitly instantiated. | |
4781 | (do_function_instantiation): Set DECL_EXPLICITLY_INSTANTIATED. | |
4782 | (do_type_instantiation): Set CLASSTYPE_VTABLE_NEEDS_WRITING and | |
4783 | DECL_EXPLICITLY_INSTANTIATED on all my methods. | |
4784 | * parse.y (explicit_instantiation): Call do_type_instantiation for | |
4785 | types. | |
4786 | * decl2.c (finish_vtable_vardecl): Call import_export_vtable. | |
4787 | * decl.c (start_function): Don't set DECL_EXTERNAL on a function | |
4788 | that has been explicitly instantiated. | |
4789 | * cp-tree.h (DECL_EXPLICITLY_INSTANTIATED): Alias for | |
4790 | DECL_LANG_FLAG_4. | |
4791 | * class.c: Move import_export_vtable to decl2.c, and comment out all | |
4792 | uses. | |
4793 | ||
4794 | Wed Apr 20 16:51:06 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4795 | ||
4796 | * lex.c (process_next_inline): Don't muck with DECL_INLINE. | |
4797 | (do_pending_inlines): Ditto. | |
4798 | ||
6060a796 | 4799 | Tue Apr 19 22:25:41 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
4800 | |
4801 | Reimplement vtable building, and most vtable pointer setting. | |
4802 | Allows for earier maintenance, easier understandability, and most | |
4803 | importantly, correct semantics. | |
4804 | ||
4805 | * class.c (build_vtable): Removed unneeded | |
4806 | SET_BINFO_VTABLE_PATH_MARKED. | |
4807 | * class.c (prepare_fresh_vtable): Ditto. Added argument. | |
4808 | * class.c (modify_vtable_entry): General cleanup. | |
4809 | * class.c (related_vslot, is_normal, modify_other_vtable_entries, | |
4810 | modify_vtable_entries): Removed. | |
4811 | * class.c (add_virtual_function): General cleanup. | |
4812 | * class.c (finish_base_struct): Setup BINFO_VTABLE and | |
4813 | BINFO_VIRTUALS as early as we can, so that modify_all_vtables can | |
4814 | work. | |
4815 | * class.c (finish_vtbls): New routine, mostly from | |
4816 | unmark_finished_struct. | |
4817 | * class.c (overrides): New routine. | |
4818 | * class.c (modify_one_vtable): New routine, mostly from | |
4819 | modify_other_vtable_entries and modify_vtable_entries. | |
4820 | * class.c (modify_all_direct_vtables, modify_all_indirect_vtables, | |
4821 | modify_all_vtables): New routines. | |
4822 | * class.c (finish_struct): Added arguemnt to prepare_fresh_vtable | |
4823 | call. General cleanup on how pending_hard_virtuals are handled. | |
4824 | General cleanup on modifying vtables. Use finish_vtbls, instead of | |
4825 | unmark_finished_struct. | |
4826 | * cp-tree.h (init_vtbl_ptrs, expand_direct_vtbls_init, | |
4827 | get_first_matching_virtual, get_matching_virtual, | |
4828 | expand_vbase_vtables_init, expand_indirect_vtbls_init): Update. | |
4829 | * cvt.c (convert_pointer_to_real): cleanup error message. | |
4830 | * decl.c (grokfndecl): General cleanup. | |
4831 | * decl.c (finish_function): Change init_vtbl_ptrs call to | |
4832 | expand_direct_vtbls_init. Change expand_vbase_vtables_init call to | |
4833 | expand_indirect_vtbls_init. | |
4834 | * init.c (expand_virtual_init): Remove unneeded argument. | |
4835 | * init.c (init_vtbl_ptrs): Rename to expand_direct_vtbls_init, added | |
4836 | two arguments to make more general. Made more general. Now can be | |
4837 | used for vtable pointer initialization from virtual bases. | |
4838 | * init.c (emit_base_init): Change expand_vbase_vtables_init call to | |
4839 | expand_indirect_vtbls_init. Change init_vtbl_ptrs call to | |
4840 | expand_direct_vtbls_init. | |
4841 | * init.c (expand_virtual_init): General cleanup. | |
4842 | * init.c (expand_default_init): Change expand_vbase_vtables_init | |
4843 | call to expand_indirect_vtbls_init. | |
4844 | * init.c (expand_recursive_init_1): Change expand_vbase_vtables_init | |
4845 | call to expand_indirect_vtbls_init. | |
4846 | * init.c (expand_recursive_init): Change expand_vbase_vtables_init | |
4847 | call to expand_indirect_vtbls_init. | |
4848 | * search.c (get_first_matching_virtual): Rename to | |
4849 | get_matching_virtual. General cleanup and remove setting of | |
4850 | DECL_CONTEXT. That is now done in a cleaner way in | |
4851 | modify_vtable_entry and add_virtual_function. | |
4852 | * search.c (expand_vbase_vtables_init): Rename to | |
4853 | expand_indirect_vtbls_init. General cleanup. Use | |
4854 | expand_direct_vtbls_init to do hard work. Ensures that _all_ vtable | |
4855 | pointers from virtual bases are set up. | |
4856 | * search.c (bfs_unmark_finished_struct, unmark_finished_struct): | |
4857 | Removed. | |
4858 | ||
4859 | * *.[chy]: Remove support for VTABLE_USES_MASK. | |
4860 | ||
4861 | Tue Apr 19 12:51:59 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4862 | ||
4863 | * cvt.c (convert_to_reference): Use NOP_EXPRs to switch between | |
4864 | reference and pointer types instead of bashing the types directly. | |
4865 | ||
4866 | * call.c (build_overload_call_real): Use the TREE_CODE to determine | |
4867 | whether the function is overloaded or not, rather than | |
4868 | TREE_OVERLOADED. | |
4869 | * *: Remove all uses of TREE_OVERLOADED. | |
4870 | ||
4871 | * decl.c (grokdeclarator): Only complain about initializing const | |
4872 | fields when -ansi or -pedantic. | |
4873 | ||
4874 | Tue Apr 19 12:42:42 1994 Doug Evans (dje@canuck.cygnus.com) | |
4875 | ||
4876 | * cp-tree.h (THUNK_DELTA): frame_size is now a union. | |
4877 | ||
4878 | Mon Apr 18 00:17:13 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4879 | ||
4880 | Do overloading on a block-by-block basis, not function-by-function. | |
4881 | * decl.c: Lose overloads_to_forget. | |
4882 | (struct binding_level): Add overloads_shadowed field. | |
4883 | (poplevel): Restore overloads_shadowed. | |
4884 | (push_overloaded_decl): Use overloads_shadowed instead of | |
4885 | overloads_to_forget. | |
4886 | (finish_function): Don't look at overloads_to_forget. | |
4887 | ||
4888 | Copy enum_overflow logic from c-decl.c. | |
4889 | * decl.c (start_enum): Initialize enum_overflow. | |
4890 | (build_enumerator): Use enum_overflow. Also use current_scope(). | |
4891 | ||
4892 | * search.c (current_scope): Move Brendan's comment from | |
4893 | build_enumerator here. | |
4894 | ||
4895 | * typeck.c (convert_for_assignment): Change warnings to pedwarns for | |
4896 | discarding const/volatile. | |
4897 | ||
4898 | Sat Apr 16 01:18:21 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4899 | ||
4900 | * typeck.c (comp_target_parms): Accept TEMPLATE_TYPE_PARMs on the rhs. | |
4901 | (comp_target_types): Ditto. | |
4902 | ||
4903 | * decl.c (lookup_name): Don't unset got_scope here. | |
4904 | ||
4905 | * spew.c (yylex): Only replace yylval with the TYPE_NESTED_NAME if | |
4906 | got_scope != NULL_TREE. | |
4907 | ||
4908 | Fri Apr 15 16:36:33 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4909 | ||
4910 | Horrible kludge to prevent templates from being instantiated by | |
4911 | their base classes. | |
4912 | * parse.y (template_instantiate_once): Unset TYPE_BEING_DEFINED | |
4913 | before we get to left_curly. | |
4914 | * pt.c (instantiate_class_template): Set TYPE_BEING_DEFINED. | |
4915 | ||
4916 | * error.c (dump_decl): If it's a typedef, print out the name of the | |
4917 | decl, not just the underlying type. | |
4918 | ||
4919 | * decl.c (pushdecl): If the old duplicate decl was a TYPE_DECL, | |
4920 | update the IDENTIFIER_TYPE_VALUE of its name. | |
4921 | ||
4922 | * decl2.c (finish_file): When processing the initializer for a | |
4923 | static member, pretend that the dummy function is a member of the | |
4924 | same class. | |
4925 | ||
4926 | Fri Apr 15 15:56:35 1994 Kung Hsu (kung@mexican.cygnus.com) | |
4927 | ||
63718c49 GB |
4928 | * class.c (build_vtable_entry): revert Apr 4 change. |
4929 | * decl2.c (mark_vtable_entries): replace pure virtual function | |
4930 | decl with abort's. | |
7177d104 MS |
4931 | |
4932 | Fri Apr 15 13:49:33 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4933 | ||
4934 | * typeck.c (build_conditional_expr): Pedwarn on pointer/integer | |
4935 | mismatch, and don't pedwarn on 0/function pointer mismatch. | |
4936 | ||
4937 | * typeck2.c (digest_init): Lose code for special handling of unions. | |
4938 | (process_init_constructor): Since they're handled just fine here. | |
4939 | Pedwarn on excess elements. | |
4940 | ||
4941 | * decl2.c (grokfield): Complain about local class method declaration | |
4942 | without definition. | |
4943 | ||
4944 | Fri Apr 15 13:19:40 1994 Per Bothner (bothner@kalessin.cygnus.com) | |
4945 | ||
4946 | * method.c (emit_thunk): Add extern declaration for | |
4947 | current_call_is_indirect (needed for hppa). | |
4948 | ||
4949 | Thu Apr 14 16:12:31 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4950 | ||
4951 | Improve local class support; allow classes in different blocks to | |
4952 | have the same name. | |
4953 | * decl.c (pushtag): Support local classes better. | |
4954 | (pushdecl_nonclass_level): New function for pushing mangled decls of | |
4955 | nested types into the appropriate scope. | |
4956 | (xref_defn_tag): Use pushdecl_nonclass_level instead of | |
4957 | pushdecl_top_level. | |
4958 | (grokfndecl): Don't mess with IDENTIFIER_GLOBAL_VALUE for local | |
4959 | class methods. | |
4960 | * method.c (do_inline_function_hair): Ditto. | |
4961 | ||
4962 | * class.c (finish_struct): It is legal for a class with no | |
4963 | constructors to have nonstatic const and reference members. | |
4964 | ||
4965 | Thu Apr 14 07:15:11 1994 Brendan Kehoe (brendan@lisa.cygnus.com) | |
4966 | ||
4967 | * decl.c (push_overloaded_decl): Avoid giving errors about | |
4968 | built-ins, since duplicate_decls will have given warnings/errors | |
4969 | for them. | |
4970 | ||
4971 | Thu Apr 14 03:45:12 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4972 | ||
4973 | * cvt.c (convert_to_reference): Warn about casting pointer type to | |
4974 | reference type when this is probably not what they wanted. | |
4975 | ||
4976 | Wed Apr 13 13:12:35 1994 Per Bothner (bothner@kalessin.cygnus.com) | |
4977 | ||
4978 | * decl.c (finish_decl): Don't mindlessly set TREE_USED for | |
4979 | static consts any more (toplev.c has now been modified to | |
4980 | not emit warnings if they are unused). | |
4981 | ||
4982 | Wed Apr 13 00:22:35 1994 Jason Merrill (jason@deneb.cygnus.com) | |
4983 | ||
4984 | * decl.c (grok_op_properties): If op new/delete get here with | |
4985 | METHOD_TYPEs, do a revert_static_member_fn. | |
4986 | ||
4987 | * cp-tree.h (IDENTIFIER_CLASS_TYPE_VALUE): Lose. | |
4988 | * init.c (is_aggr_typedef): Don't look at | |
4989 | IDENTIFIER_CLASS_TYPE_VALUE. | |
4990 | (get_aggr_from_typedef): Ditto. | |
4991 | (get_type_value): Ditto. | |
4992 | * call.c (build_scoped_method_call): Don't rely on overloaded | |
4993 | template names having IDENTIFIER_CLASS_VALUE set. | |
4994 | ||
4995 | * parse.y (component_decl_1, fn.def2): Revert rules for | |
4996 | constructors. | |
4997 | (component_decl_1, fn.def2): Use $1 instead of $$, since $$ is being | |
4998 | clobbered. | |
4999 | ||
5000 | * decl.c (start_function): Only warn about `void main()' if pedantic | |
5001 | || warn_return_type. | |
5002 | ||
5003 | Tue Apr 12 02:14:17 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5004 | ||
5005 | Clean up overloading of the template name. | |
5006 | * class.c (pushclass): overload the template name whenever pushing | |
5007 | into the scope of a template class, not just if it is | |
5008 | uninstantiated. | |
5009 | (popclass): Correspondingly. | |
5010 | * search.c (push_class_decls): Don't overload_template_name. | |
5011 | * pt.c (overload_template_name): Don't set IDENTIFIER_LOCAL_VALUE or | |
5012 | DECL_CONTEXT on things. | |
5013 | * parse.y (left_curly): Don't overload_template_name. | |
5014 | * class.c (finish_struct): Don't undo_template_name_overload. | |
5015 | ||
5016 | * method.c (build_opfncall): Only pass one argument to global op | |
5017 | delete. | |
5018 | ||
5019 | * call.c (build_method_call): Use TYPE_VEC_DELETE_TAKES_SIZE to | |
5020 | decide how many arguments to use for vec delete. | |
5021 | ||
5022 | * decl.c (grok_op_properties): Be consistent in modifying | |
5023 | current_class_type. | |
5024 | (grokdeclarator): Only complain about function decls with no return | |
5025 | type if we're being pedantic. | |
5026 | ||
5027 | Mon Apr 11 00:10:53 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5028 | ||
5029 | Add support for operator new [] and operator delete []. | |
5030 | ||
5031 | * tree.def: Add VEC_NEW_EXPR and VEC_DELETE_EXPR. | |
5032 | * ptree.c (print_lang_type): Indicate vec new/delete. | |
5033 | * parse.y: Support vec new/delete. | |
5034 | * method.c (build_decl_overload): Deal with vec new/delete. | |
5035 | (build_opfncall): Ditto. | |
5036 | * lex.c (init_lex): Set up values of ansi_opname and opname_tab for | |
5037 | vec new/delete. vec new uses "__vn", and vec delete uses "__vd". | |
5038 | * init.c (init_init_processing): Set up BIVN and BIVD. | |
5039 | (do_friend): Don't clean up after mistaken setting of TREE_GETS_NEW, | |
5040 | since it doesn't happen any more. | |
5041 | (build_new): Support vec new. Always call something. | |
5042 | (build_x_delete): Support vec delete. | |
5043 | (build_vec_delete): Lose dtor_dummy argument, add use_global_delete, | |
5044 | and pass it to build_x_delete. | |
5045 | * decl2.c (delete_sanity): Don't change behavior by whether or not | |
5046 | the type has a destructor. Pass use_global_delete to | |
5047 | build_vec_delete. | |
5048 | (coerce_delete_type): Make sure that the type returned has a first | |
5049 | argument of ptr_type_node. | |
5050 | * decl.c (init_decl_processing): Also declare the global vec | |
5051 | new/delete. | |
5052 | (grokdeclarator): Also force vec new/delete to be static. | |
5053 | (grok_op_properties): Note presence of vec new/delete, and play with | |
5054 | their args. If vec delete takes the optional size_t argument, set | |
5055 | TYPE_VEC_DELETE_TAKES_SIZE. | |
5056 | * cp-tree.h (TYPE_GETS_{REG,VEC}_DELETE): New macros to simplify | |
5057 | checking for one delete or the other. | |
5058 | (lang_type): gets_new and gets_delete are now two bits long. The | |
5059 | low bit is for the non-array version. Lose gets_placed_new. | |
5060 | (TYPE_VEC_DELETE_TAKES_SIZE): New macro indicating that the vec | |
5061 | delete defined by this class wants to know how much space it is | |
5062 | deleting. | |
5063 | (TYPE_VEC_NEW_USES_COOKIE): New macro to indicate when vec new must | |
5064 | add a header containing the number of elements in the vector; i.e. | |
5065 | when the elements need to be destroyed or vec delete wants to know | |
5066 | the size. | |
5067 | * class.c (finish_struct_methods): Also check for overloading vec | |
5068 | delete. | |
5069 | * call.c (build_method_call): Also delete second argument for vec | |
5070 | delete. | |
5071 | ||
5072 | * decl.c (grokdeclarator): Correct complaints again. | |
5073 | (grokdeclarator): Fix segfault on null declarator. | |
5074 | (decls_match): Also accept redeclaration with no arguments if both | |
5075 | declarations were in C context. Bash TREE_TYPE (newdecl) here. | |
5076 | (duplicate_decls): Instead of here. | |
5077 | ||
5078 | * parse.y (nested_name_specifier_1): Lose rules for dealing with | |
5079 | syntax errors nicely, since they break parsing of 'const i;'. | |
5080 | ||
5081 | * decl.c (lookup_name): if (got_scope == current_class_type) | |
5082 | val = IDENTIFIER_CLASS_VALUE (name). | |
5083 | ||
5084 | * search.c (lookup_nested_tag): Look in enclosing classes, too. | |
5085 | ||
5086 | * spew.c (yylex): Only look one character ahead when checking for a | |
5087 | SCOPE. | |
5088 | ||
5089 | * lex.c (check_newline): Read first nonwhite char before | |
5090 | incrementing lineno. | |
5091 | ||
5092 | * decl.c (grokdeclarator): Don't claim that typedefs are variables | |
5093 | in warning. | |
5094 | ||
5095 | * parse.y: Divide up uses of unqualified_id into | |
5096 | notype_unqualified_id and unqualified_id, so that TYPENAME can be | |
5097 | used as an identifier after an object. | |
5098 | ||
5099 | * class.c (push_nested_class): Don't push into non-class scope. | |
5100 | ||
5101 | * decl.c (grokdeclarator): If an identifier could be a type | |
5102 | conversion operator, but has no associated type, it's not a type | |
5103 | conversion operator. | |
5104 | ||
5105 | * pt.c (unify): Check for equality of constants better. | |
5106 | ||
5107 | * decl.c (grokdeclarator): Don't complain about access decls. | |
5108 | ||
5109 | Sun Apr 10 02:39:55 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5110 | ||
5111 | * decl.c (grokdeclarator): pedwarn about data definitions without | |
5112 | types here. | |
5113 | ||
5114 | * parse.y (datadef): Don't pedwarn about decls without types here, | |
5115 | since that is valid for functions. | |
5116 | (fn.def2, component_decl): Support constructors with declmods again. | |
5117 | (nomods_initdecls): For decls without any mods, so that we don't try | |
5118 | to get declspecs from some arbitrary $0. | |
5119 | ||
5120 | * search.c (lookup_field): Use cp_error. | |
5121 | ||
5122 | * parse.y (nested_name_specifier_1): Don't check aggr/non-aggr type | |
5123 | here; it breaks destructors for non-aggr types. | |
5124 | ||
5125 | * decl.c (lookup_name): Only look for TYPE_DECLs in base classes of | |
5126 | a type being defined, like the comment says. | |
5127 | If got_scope is not an aggregate, just return NULL_TREE. | |
5128 | ||
5129 | * pt.c (create_nested_upt): Kung's code for creating types nested | |
5130 | within uninstantiated templates now lives here (it used to live in | |
5131 | hack_more_ids). It needs to be expanded. | |
5132 | ||
5133 | * parse.y: Stop calling see_typename so much. | |
5134 | ||
5135 | * decl.c (lookup_name): Deal with TTPs and UPTs. | |
5136 | ||
5137 | * lex.c (real_yylex): Don't set looking_for_typename just because we | |
5138 | saw a 'new'. | |
5139 | (dont_see_typename): #if 0 out. | |
5140 | ||
5141 | * spew.c (yylex): Increment looking_for_typename if the next | |
5142 | character is SCOPE, rather than setting it to 1; this way, the value | |
5143 | from seeing an aggr specifier will not be lost. This kinda relies | |
5144 | on looking_for_typename never being < 0, which is now true. | |
5145 | ||
5146 | * parse.y (nested_name_specifier_1): Accept TEMPLATE_TYPE_PARMs, | |
5147 | too. | |
5148 | (named_class_head_sans_basetype): Accept template types, too. Oops. | |
5149 | ||
5150 | Fri Apr 8 16:39:35 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5151 | ||
5152 | * decl2.c (reparse_decl_as_expr1): Handle SCOPE_REFs. | |
5153 | ||
5154 | * parse.y: Lose START_DECLARATOR. | |
5155 | ||
5156 | * search.c (lookup_nested_tag): New function to scan CLASSTYPE_TAGS | |
5157 | for a class. | |
5158 | ||
5159 | * parse.y: Simplify fn.def2 and component_decl. Support 'enum | |
5160 | A::foo' syntax. Catch invalid scopes better. | |
5161 | ||
5162 | * parse.y, lex.c: lose TYPENAME_COLON. | |
5163 | ||
5164 | * decl2.c (groktypefield): #if 0 out. | |
5165 | ||
5166 | * decl.c (lookup_name): If the type denoted by got_scope is | |
5167 | currently being defined, look in CLASSTYPE_TAGS rather than FIELDS. | |
5168 | ||
5169 | * class.c (push_nested_class): Don't try to push into | |
5170 | error_mark_node. | |
5171 | ||
5172 | Fri Apr 8 07:26:36 1994 Brendan Kehoe (brendan@lisa.cygnus.com) | |
5173 | ||
5174 | * Makefile.in (stamp-parse): Update count of conflicts to 33. | |
5175 | ||
5176 | Thu Apr 7 17:47:53 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5177 | ||
5178 | A saner implementation of nested types that treats template types | |
5179 | no differently from non-template types. There are still some | |
5180 | shortcomings of our system; most notably, it is difficult to look | |
5181 | for a nested type that is hidden by another name, because of the way | |
5182 | we keep track of hidden types. But this shouldn't be a problem for | |
5183 | just about anyone. Perhaps lookup_field should be fixed up a bit. | |
5184 | ||
5185 | * spew.c: Moved handling of nested types/scoping from the lexer | |
5186 | into the parser. Removed variable template_type_seen_before_scope. | |
5187 | Removed functions frob_identifier, hack_more_ids, and various cruft | |
5188 | that was #if 0'd out in the past, reducing the size of the file from | |
5189 | 1146 lines to 450 lines. We can't quite do away with spew.c yet, | |
5190 | though; we still need it for do_aggr () and checking for SCOPE after | |
5191 | the current identifier. And setting lastiddecl. | |
5192 | ||
5193 | * parse.y: Moved handling of nested types/scoping from the lexer | |
5194 | into the parser, using a new global variable `got_scope'. Reduced | |
5195 | the number of states by 53. Implemented all uses of explicit global | |
5196 | scope. Removed terminals SCOPED_TYPENAME and SCOPED_NAME. Removed | |
5197 | nonterminals tmpl.1, scoped_base_class, id_scope, typename_scope, | |
5198 | scoped_typename. Added nonterminals nested_type, | |
5199 | qualified_type_name, complete_type_name, qualified_id, ptr_to_mem, | |
5200 | nested_name_specifier, global_scope, overqualified_id, type_name. | |
5201 | Changed many others. Added 9 new reduce/reduce conflicts, which are | |
5202 | nested type parallels of 9 that were already in the grammar for | |
5203 | non-nested types. Eight of the now 33 conflicts should be removed | |
5204 | in the process of resolving the late binding between variable and | |
5205 | function decls. | |
5206 | ||
5207 | * gxxint.texi (Parser): Update. | |
5208 | ||
5209 | * cp-tree.h (IS_AGGR_TYPE_CODE): Add UNINSTANTIATED_P_TYPE. | |
5210 | ||
5211 | * lex.h: Add decl for got_scope. | |
5212 | ||
5213 | * lex.c (see_typename): Claim to be the lexer when calling | |
5214 | lookup_name. | |
5215 | ||
5216 | * decl.c (lookup_name): When called from the lexer, look at | |
5217 | got_scope and looking_at_typename; otherwise don't. | |
5218 | ||
6060a796 | 5219 | Thu Apr 7 22:05:47 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
5220 | |
5221 | 31th Cygnus<->FSF merge. | |
5222 | ||
5223 | Thu Apr 7 17:47:53 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5224 | ||
5225 | * decl2.c (mark_vtable_entries): Call this to mark all the | |
5226 | entries in the vtable addressable. | |
5227 | (finish_decl_parsing): Handle SCOPE_REFs. | |
5228 | ||
5229 | * decl.c (decls_match): Always call compparms with strict == 1. | |
5230 | Handle the special case of C function redecl here. | |
5231 | (duplicate_decls): Only keep the old type if the new decl takes no | |
5232 | arguments. | |
5233 | ||
5234 | * typeck.c (compparms): Also allow t1 to be ... if strict == 0. | |
5235 | ||
6060a796 | 5236 | Thu Apr 7 16:17:50 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
5237 | |
5238 | * class.c (build_vtable_entry): Fix breakage introduced Apr 5 | |
5239 | 17:48:41. | |
5240 | ||
5241 | Wed Apr 6 16:05:10 1994 Per Bothner (bothner@kalessin.cygnus.com) | |
5242 | ||
5243 | * init.c (build_virtual_init), search.c (build_vbase_vtables_init), | |
5244 | ch-tree.h: Every place these functions were called, the result was | |
5245 | immediately passed to expand_expr_stmt. Reduce redundancy by | |
5246 | calling expand_expr_init *inside* these functions. These | |
5247 | makes for a simpler interface, and we don't have to build | |
5248 | compound expressions. Hence, rename these function to: | |
5249 | expand_virtual_init and expand_vbase_vtables_init respectively. | |
5250 | * init.c, decl.c: Change callers of these functions. | |
5251 | * init.c, cp-tree.h (expand_virtual_init): Make static. | |
5252 | ||
5253 | * decl2.c (finish_file): Check TREE_PUBLIC||TREE_ADDRESSABLE | |
5254 | rather than DECL_SAVED_INSNS before emitting inlines. | |
5255 | ||
5256 | Wed Apr 6 13:06:39 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5257 | ||
5258 | * spew.c (init_spew): #if 0 out stuff used by arbitrate_lookup. | |
5259 | ||
5260 | * decl.c (duplicate_decls): If this is a new declaration of an | |
5261 | extern "C" function, keep the type (for the argtypes). | |
5262 | (redeclaration_error_message): Don't check DECL_LANGUAGE here. | |
5263 | (decls_match): Call compparms with a value of strict dependent on | |
5264 | the value of strict_prototypes for DECL_LANGUAGE (oldecl). | |
5265 | ||
5266 | * typeck.c (compparms): ... is only equivalent to non-promoting | |
5267 | parms if we're not being strict. | |
5268 | ||
5269 | * parse.y (empty_parms): Don't check flag_ansi || pedantic here. | |
5270 | ||
5271 | * decl.c (init_decl_processing): if (flag_ansi || pedantic) | |
5272 | strict_prototypes_lang_c = strict_prototypes_lang_cplusplus; | |
5273 | ||
5274 | * decl2.c (grok_function_init): Don't set DECL_INITIAL on pure | |
5275 | virtuals. | |
5276 | ||
5277 | Tue Apr 5 17:48:41 1994 Per Bothner (bothner@kalessin.cygnus.com) | |
5278 | ||
5279 | Support for implementing vtables with thunks. | |
5280 | * tree.def (THUNK_DECL): New TREE_CODE. | |
5281 | * cp-tree.h (FNADDR_FROM_VTABLE_ENTRY), tree.c | |
5282 | (fnaddr_from_vtable_entry): Handle flag_vtable_thunks case. | |
5283 | * cp-tree.h (memptr_type): New variable. | |
5284 | * class.c (build_vtable_entry): Build thunk if necessary. | |
5285 | * class.c (build_vfn_ref): If using thunks, don't need | |
5286 | to add delta field from vtable (there is none!). | |
5287 | * decl.c: Add memptr_type as well as vtable_entry_type. | |
5288 | If using thunks, the latter is just ptr_type_node. | |
5289 | * gc.c, typeck.c: Use memptr_typeChange, not vtable_entry_type. | |
5290 | * decl2.c (finish_vtable_vardecl): Handle thunks. | |
5291 | * expr.c (cplus_expand_expr): Support THUNK_DECL. | |
5292 | ||
5293 | * decl.c (grokdeclarator): Set DECL_THIS_EXTERN if "extern". | |
5294 | * decl.c (start_function): Set current_extern_inline based on | |
5295 | DECL_THIS_EXTERN, not TREE_PUBLIC. | |
5296 | * decl.c (finish_function): Call mark_inline_for_output if needed, | |
5297 | ||
5298 | Improve intelligence about when to emit inlines. | |
5299 | * cp-tree.h (lang_decl_flags): New field saved_inline. | |
5300 | * cp-tree.h (DECL_SAVED_INLINE): New macro. | |
5301 | * class.c (add_virtual_function): Don't set TREE_ADDRESSABLE. | |
5302 | * decl.h, decl.c (pending_addressable_inlines): Removed. | |
5303 | * decl2.c (pending_addressable_inlines): Renamed to saved_inlines. | |
5304 | * decl2.c (mark_inline_for_output): Do nothing if | |
5305 | DECL_SAVED_INLINE; otherwise set it (and add to saved_inlines list). | |
5306 | * decl2.c (finish_vtable_vardecl): SET_CLASSTYPE_INTERFACE_KNOWN | |
5307 | and set CLASSTYPE_INTERFACE_ONLY if there is a non-inline virtual. | |
5308 | * decl2.c (finish_file): Writing out inlines later, so we can | |
5309 | also handle the ones needed for vtbales. | |
5310 | * decl2.c (write_vtable_entries, finish_vtable_typedecl): Removed. | |
5311 | ||
5312 | * cp-tree.h, class.c, decl2.c, search.c: Remove -fvtable-hack | |
5313 | and flag_vtable_hack. Use -fvtable-thunks and flag_vtable_thunks | |
5314 | instead. (The rationale is that these optimizations both break binary | |
5315 | compatibility, but should become the default in a future release.) | |
5316 | ||
6060a796 | 5317 | Wed Apr 6 10:53:56 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
5318 | |
5319 | * class.c (modify_vtable_entries): Never reset the DECL_CONTEXT | |
5320 | of a fndecl, as we might not be from that vfield. | |
5321 | ||
5322 | Tue Apr 5 17:43:35 1994 Kung Hsu (kung@mexican.cygnus.com) | |
5323 | ||
5324 | * class.c (add_virtual_function): fix bug for pure virtual, so | |
5325 | that DECL_VINDEX of the dummy decl copied won't be error. | |
5326 | (see also Apr 4 change) | |
5327 | ||
5328 | Tue Apr 5 17:23:45 1994 Per Bothner (bothner@kalessin.cygnus.com) | |
5329 | ||
5330 | * typeck.c (c_expand_return): Before checking that we're not | |
5331 | returning the address of a local, make sure it's a VAR_DECL. | |
5332 | (And don't worry about it being a TREE_LIST.) | |
5333 | ||
5334 | Tue Apr 5 13:26:42 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5335 | ||
5336 | * parse.y (YYDEBUG): Always define. | |
5337 | * lex.c (YYDEBUG): Ditto. | |
5338 | ||
5339 | Mon Apr 4 11:28:17 1994 Kung Hsu (kung@mexican.cygnus.com) | |
5340 | ||
5341 | * class.c (finish_struct): backup out the change below, put the | |
5342 | new change for the same purpose. The change below breaks code. | |
5343 | ||
5344 | * class.c (finish_struct): if pure virtual, copy node and make | |
5345 | RTL point to abort, then put in virtual table. | |
5346 | * decl2.c (grok_function_iit): reinstate Mar 31 change. | |
5347 | ||
5348 | Sat Apr 2 03:12:58 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5349 | ||
5350 | * init.c (build_new): pedwarn about newing const and volatile | |
5351 | types. | |
5352 | ||
5353 | * tree.c (get_identifier_list): Only do the special handling | |
5354 | thing if we're dealing with the main variant of the record type. | |
5355 | ||
5356 | * cvt.c (convert_to_reference): When converting between | |
5357 | compatible reference types, use the pointer conversion machinery. | |
5358 | Don't just blindly overwrite the old type. | |
5359 | ||
5360 | Fri Apr 1 17:14:42 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5361 | ||
5362 | * call.c (build_method_call): When looking at global functions, | |
5363 | be sure to use instance_ptr for the first argument, not some version | |
5364 | of it that has been cast to a base class. Also do this before | |
5365 | comparing candidates. | |
5366 | ||
5367 | Thu Mar 31 19:50:35 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5368 | ||
5369 | * call.c (build_method_call): Constructors can be called for | |
5370 | const objects. | |
5371 | ||
5372 | Thu Mar 31 16:20:16 1994 Kung Hsu (kung@mexican.cygnus.com) | |
5373 | ||
5374 | * decl2.c (grok_func_init): do not abort as rtl for pur virtual | |
5375 | fucntions. They can be defined somewhere else. | |
5376 | ||
5377 | Sat Jan 23 23:23:26 1994 Stephen R. van den Berg (berg@pool.informatik.rwth-aachen.de) | |
5378 | ||
5379 | * decl.c (init_decl_processing): Declare __builtin_return_address | |
5380 | and __builtin_frame_address for C++ as well. | |
5381 | ||
6060a796 | 5382 | Thu Mar 31 12:35:49 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
5383 | |
5384 | * typeck2.c (store_init_value): Integral constant variables are | |
5385 | always constant, even when doing -fpic. | |
5386 | ||
5387 | Sat Jan 23 23:23:26 1994 Stephen R. van den Berg (berg@pool.informatik.rwth-aachen.de) | |
5388 | ||
5389 | * decl.c (redeclaration_error_message): Pass the types to | |
5390 | comptypes. | |
5391 | ||
6060a796 | 5392 | Wed Mar 30 21:29:25 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
5393 | |
5394 | Cures incorrect errors about pure virtuals in a class, when they | |
5395 | have been overridden in a derived class. | |
5396 | ||
5397 | * search.c (get_abstract_virtuals): Reimplement. | |
5398 | * search.c (get_abstract_virtuals_1): New routine. | |
5399 | ||
5400 | Wed Mar 30 14:10:04 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5401 | ||
5402 | * pt.c (push_template_decls): Make the pushed level pseudo | |
5403 | global. | |
5404 | ||
5405 | * parse.y (extdefs): Don't pop everything if the current binding | |
5406 | level is pseudo_global. | |
5407 | ||
5408 | * decl.c (pop_everything): Stop on reaching a pseudo-global | |
5409 | binding level. | |
5410 | ||
5411 | * cp-tree.h (DECL_FUNCTION_MEMBER_P): Change to more reliable test. | |
5412 | ||
5413 | * decl.c (duplicate_decls): Only copy DECL_SOURCE_{FILE_LINE} if | |
5414 | the old decl actually had an initializer. | |
5415 | ||
5416 | * {various}: Clean up gcc -W complaints. | |
5417 | ||
5418 | * cp-tree.h (DECL_FUNCTION_MEMBER_P): Currently defined to be | |
5419 | (DECL_CONTEXT (NODE) != NULL_TREE). | |
5420 | ||
5421 | * parse.y (lang_extdef): Call pop_everything if necessary. | |
5422 | ||
5423 | * decl.c (pop_everything): New function for popping binding | |
5424 | levels left over after a syntax error. | |
5425 | (pushdecl): Use DECL_FUNCTION_MEMBER_P to decide whether or not | |
5426 | a function is a member. | |
5427 | ||
6060a796 | 5428 | Wed Mar 30 14:20:50 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
5429 | |
5430 | Cures calling a more base base class function, when a more derived | |
5431 | base class member should be called in some MI situations. | |
5432 | ||
5433 | * search.c (make_binfo): Use more the more specialized base | |
63718c49 GB |
5434 | binfos from the binfo given as the second argument to make_binfo, |
5435 | instead of the unspecialized ones from the TYPE_BINFO. | |
7177d104 MS |
5436 | * class.c (finish_base_struct): Ditto, update callers. |
5437 | * search.c (dfs_get_vbase_types): Ditto. | |
5438 | * tree.c (propagate_binfo_offsets, layout_vbasetypes): Ditto. | |
5439 | * decl.c (xref_tag): Use NULL_TREE instead of 0. | |
5440 | * lex.c (make_lang_type): Ditto. | |
5441 | ||
5442 | Wed Mar 30 14:10:04 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5443 | ||
5444 | * decl.c (pushdecl): If pushing a C-linkage function, only do a | |
5445 | push_overloaded_decl. | |
5446 | (duplicate_decls): Standard overloading does not shadow built-ins. | |
5447 | ||
5448 | Tue Mar 29 00:54:18 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5449 | ||
5450 | * pt.c (end_template_decl): Don't call push_overloaded_decl. | |
5451 | ||
5452 | * init.c (do_friend): Don't call push_overloaded_decl. | |
5453 | ||
5454 | * decl.c (pushdecl): Call push_overloaded_decl for functions and | |
5455 | function templates. | |
5456 | (duplicate_decls): functions and function templates are not | |
5457 | duplicates, but don't complain about calling this function to | |
5458 | compare them. | |
5459 | (push_overloaded_decl): Don't deal with linkage. Call | |
5460 | duplicate_decls. | |
5461 | (redeclaration_error_message): Deal with linkage. | |
5462 | ||
5463 | * decl.c (start_function): If push_overloaded_decl returns an | |
5464 | older version of the function, deal with it. | |
5465 | ||
5466 | * decl.c (start_function): Be sure only to push_overloaded_decl | |
5467 | for non-members. | |
5468 | ||
5469 | * decl.c (grokfndecl): Put back clearing of DECL_CHAIN for | |
5470 | methods. | |
5471 | (start_function): Lose broken and redundant code for checking old | |
5472 | decl. | |
5473 | ||
5474 | * init.c (add_friend): Give line numbers of both friend decls | |
5475 | when warning about re-friending. | |
5476 | ||
5477 | * pt.c (tsubst): Use comptypes rather than == to compare the | |
5478 | types of the method as declared and as defined, since default | |
5479 | parameters may be different. | |
5480 | ||
5481 | * call.c (build_method_call): Use brendan's candidate printing | |
5482 | routine. | |
5483 | ||
5484 | * decl.c (start_method): Methods defined in the class body are | |
5485 | inline whether or not it's a template class. | |
5486 | ||
5487 | Mon Mar 28 16:39:26 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5488 | ||
5489 | * parse.y (initdcl0): Add "extern" to current_declspecs if | |
5490 | have_extern_spec && ! used_extern_spcec. | |
5491 | ||
5492 | * tree.c (really_overloaded_fn): A fn with more than one | |
5493 | overload. | |
5494 | ||
5495 | * pt.c (end_template_decl): Use really_overloaded_fn. | |
5496 | ||
5497 | * decl.c (duplicate_decls): When smashing a decl into a previous | |
5498 | definition, keep the old file and line. | |
5499 | Don't deal with overloaded functions. | |
5500 | Lose old code for checking arg types of functions. | |
5501 | Check for overloaded C functions. | |
5502 | (pushdecl): Deal with overloaded functions. | |
5503 | (start_decl): Expect pushdecl to return an appropriate function decl. | |
5504 | (start_function): Ditto. | |
5505 | (push_overloaded_decl): Don't check for overloaded C functions. | |
5506 | ||
5507 | * *.c: Stop using DECL_OVERLOADED, it being archaic. | |
5508 | TREE_OVERLOADED should probably go, too. | |
5509 | ||
5510 | Mon Mar 28 14:00:45 1994 Ron Guilmette (rfg@netcom.com) | |
5511 | ||
5512 | * typeck.c (comp_target_types): Call comp_target_parms with | |
5513 | strict == 1. | |
5514 | ||
5515 | Sun Mar 27 00:07:45 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5516 | ||
5517 | * parse.y (empty_parms): Don't parse () as (...) in extern "C" | |
5518 | sections if we're compiling with -ansi or -pedantic. | |
5519 | ||
5520 | * decl.c (decls_match): Don't treat (int) and (int&) as matching. | |
5521 | ||
5522 | * decl2.c (grokfield): Don't pedwarn twice about initializing | |
5523 | field. | |
5524 | ||
5525 | * decl.c (push_overloaded_decl): Warn about shadowing | |
5526 | constructor. | |
5527 | (redeclaration_error_message): Don't allow 'int a; int a;' | |
5528 | ||
5529 | * cvt.c (build_up_reference): Only check for valid upcast if | |
5530 | LOOKUP_PROTECT is set, not just any flag. | |
5531 | ||
5532 | Fri Mar 25 01:22:31 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5533 | ||
5534 | * lex.c (check_newline): When we see a #pragma implementation, | |
5535 | also set it for the main input file. | |
5536 | ||
5537 | * init.c (build_new): Convert array size argument to size_t. | |
5538 | ||
5539 | * parse.y (primary): If we're doing a parenthesized type-id, call | |
5540 | groktypename before passing it to build_new. | |
5541 | ||
5542 | * call.c (build_method_call): Deal properly with const and | |
5543 | volatile for instances of reference type. | |
5544 | ||
5545 | * decl.c (store_return_init): Change 'if (pedantic) error' to 'if | |
5546 | (pedantic) pedwarn'. | |
5547 | ||
5548 | * decl.c (grokdeclarator): Don't complain about putting `static' | |
5549 | and `inline' on template function decls. | |
5550 | ||
5551 | Thu Mar 24 23:18:19 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5552 | ||
5553 | * call.c (build_method_call): Preserve const & volatile on | |
5554 | `this'. | |
5555 | ||
6060a796 | 5556 | Thu Mar 24 16:21:52 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
5557 | |
5558 | * init.c (build_new, build_vec_delete): Use global new and delete | |
5559 | for arrays. | |
5560 | * decl2.c (delete_sanity): Ditto. | |
5561 | ||
5562 | Thu Mar 24 02:10:46 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5563 | ||
5564 | * cvt.c (convert_to_reference): If i is an lvalue, | |
5565 | (int &)i -> *(int*)&i, as per 5.2.8p9 of the latest WP. | |
5566 | (convert_force): Call convert_to_reference with LOOKUP_COMPLAIN. | |
5567 | ||
5568 | Wed Mar 23 17:45:37 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5569 | ||
5570 | * decl.c (duplicate_decls): Also propagate DECL_TEMPLATE_MEMBERS | |
5571 | and DECL_TEMPLATE_INSTANTIATIONS. | |
5572 | ||
5573 | * init.c (build_new): Handle array typedefs properly. | |
5574 | ||
6060a796 | 5575 | Wed Mar 23 18:23:33 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
5576 | |
5577 | 30th Cygnus<->FSF merge. | |
5578 | ||
6060a796 | 5579 | Wed Mar 23 00:46:24 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
5580 | |
5581 | * class.c (modify_vtable_entries): Avoid running off the end of the | |
5582 | virtuals list when processing a virtual destructor. | |
5583 | * class.c (get_vtable_entry): Ditto. | |
5584 | ||
5585 | Wed Mar 23 00:23:59 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5586 | ||
5587 | * decl.c (duplicate_decls): If two template decls don't match, | |
5588 | just return 0. | |
5589 | ||
5590 | Tue Mar 22 23:49:41 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5591 | ||
5592 | * typeck.c (convert_for_assignment): Don't pedwarn about | |
5593 | converting function pointer to void *. | |
5594 | ||
6060a796 | 5595 | Tue Mar 22 22:23:19 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
5596 | |
5597 | Major revamp of pointer to member functions. Cures major | |
5598 | nonfunctionality when used in casts, and MI situations. | |
5599 | ||
5600 | * cvt.c (convert_force): Update call site of build_ptrmemfunc. | |
5601 | * typeck.c (convert_for_assignment): Ditto. | |
5602 | * typeck2.c (digest_init): Ditto. | |
5603 | * typeck2.c (process_init_constructor): Simplify by moving code into | |
5604 | digest_init. | |
5605 | * typeck2.c (digest_init): Do default_conversions on init value, if | |
5606 | we are processing pointer to member functions. | |
5607 | * class.c (get_vfield_offset): Now non-static. Convert bit offset | |
5608 | into byte offset. | |
5609 | * cp-tree.h (get_vfield_offset): Ditto. | |
5610 | * typeck.c (get_member_function_from_ptrfunc): Convert down to right | |
5611 | instance, before fetching vtable pointer. | |
5612 | * typeck.c (get_delta_difference): New routine. | |
5613 | * typeck.c (build_ptrmemfunc): Revamp to handle casting better, also | |
5614 | get vtable pointer out of right subobject. | |
5615 | ||
6060a796 | 5616 | Tue Mar 22 17:56:48 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
5617 | |
5618 | * search.c (get_binfo): Return NULL instead of aborting, when | |
5619 | passed a UNION_TYPE. | |
5620 | ||
5621 | Tue Mar 22 12:44:54 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5622 | ||
5623 | These patches implement handling of redefinition/redeclaration of | |
5624 | templates. | |
5625 | ||
5626 | * typeck.c (comptypes): Simplify. All TEMPLATE_TYPE_PARMs are | |
5627 | considered compatible. | |
5628 | ||
5629 | * parse.y (template_def): Pass defn argument to end_template_decl. | |
5630 | ||
5631 | * pt.c (end_template_decl): Add defn argument. Check for | |
5632 | redefinition. Simplify. | |
5633 | ||
5634 | * error.c (OB_UNPUT): New macro, to remove mistakes. | |
5635 | (aggr_variety): Subroutine of dump_aggr_type. | |
5636 | ||
5637 | * decl.c (decls_match): Support templates. | |
5638 | (duplicate_decls): No longer static. Don't try to lay out template | |
5639 | decls. | |
5640 | (pushdecl): Simplify. | |
5641 | ||
5642 | * cp-tree.h (DECL_TEMPLATE_MEMBERS): Use DECL_SIZE instead of | |
5643 | DECL_INITIAL. | |
5644 | ||
5645 | Mon Mar 21 11:46:55 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5646 | ||
5647 | * error.c (dump_decl): Support class template decls. | |
5648 | (dump_type): Don't adorn template type parms. | |
5649 | ||
5650 | * decl.c (duplicate_decls): Save DECL_TEMPLATE_INFO from old decl | |
5651 | if it was a definition. | |
5652 | (redeclaration_error_message): Do the cp_error thang, and reject | |
5653 | redefinition of templates. | |
5654 | ||
5655 | Mon Mar 21 19:36:06 1994 Per Bothner (bothner@kalessin.cygnus.com) | |
5656 | ||
5657 | * decl.c (grokdeclarator): Set TREE_PUBLIC for METHOD_TYPE | |
5658 | in FIELD context, when appropriate. Also, | |
5659 | CLASSTYPE_INTERFACE_ONLY is irrelevant to setting TREE_PUBLIC. | |
5660 | Also, simplify check for bogus return specifiers. | |
5661 | ||
5662 | Mon Mar 21 11:46:55 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5663 | ||
5664 | * parse.y (after_type_declarator1): Expand type_quals. | |
5665 | (notype_declarator1): Ditto. | |
5666 | (absdcl1): Ditto. | |
5667 | ||
5668 | Sat Mar 19 01:05:17 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5669 | ||
5670 | * decl.c (grokdeclarator): Treat class-local typedefs like static | |
5671 | members; i.e. 'typedef int f();' means that f is a function type, | |
5672 | not a method type. | |
5673 | ||
5674 | * parse.y (decl): Change direct_* back to *. | |
5675 | (type_id): Change direct_abstract_declarator to absdcl. | |
5676 | (direct_declarator, direct_initdecls, direct_initdcl0): Remove again. | |
5677 | ||
5678 | Fri Mar 18 12:47:59 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5679 | ||
5680 | These two patches fix crashes on instantiating a template inside a | |
5681 | function with C linkage or containing labels. | |
5682 | ||
5683 | * class.c (current_lang_stacksize): No longer static. | |
5684 | ||
5685 | * decl.c (struct saved_scope): Add lang_base, lang_stack, | |
5686 | lang_name, lang_stacksize, and named_labels. | |
5687 | (push_to_top_level): Save them. | |
5688 | (pop_from_top_level): Restore them. | |
5689 | ||
5690 | * gxxint.texi (Parser): Update. | |
5691 | ||
5692 | These two patches finish moving the task of expr/declarator | |
5693 | ambiguity resolution from the lexer to the parser, and add one more | |
5694 | r/r conflict. START_DECLARATOR can now be nuked. | |
5695 | ||
5696 | * parse.y (decl): Add "direct_" in typespec X rules. | |
5697 | (direct_declarator): New nonterminal for | |
5698 | direct_after_type_declarator and direct_notype_declarator. | |
5699 | (direct_initdecls): Like initdecls, but uses direct_initdcl0. | |
5700 | (direct_initdcl0): Like initdcl0, but uses direct_declarator. | |
5701 | (named_parm): Add typespec direct_declarator rule. | |
5702 | ||
5703 | * spew.c (yylex): #if 0 out START_DECLARATOR insertion. | |
5704 | ||
5705 | These two patches disable some excessive cleverness on the part of | |
5706 | g++; a non-class declaration always hides a class declaration in the | |
5707 | same scope, and g++ was trying to unhide it depending on the | |
5708 | enclosing expression. | |
5709 | ||
5710 | * spew.c (arbitrate_lookup): #if 0 out. | |
5711 | ||
5712 | * decl.c (lookup_name): Never call arbitrate_lookup. | |
5713 | ||
5714 | * parse.y (complex_notype_declarator1): Add '*' | |
5715 | complex_notype_declarator1 and '&' complex_notype_declarator1 rules. | |
5716 | ||
5717 | * parse.y (complex_direct_notype_declarator): Restore id_scope | |
5718 | see_typename TYPENAME rule, remove all other rules beginning with | |
5719 | those tokens. | |
5720 | (notype_unqualified_id): Add '~' see_typename IDENTIFIER rule. | |
5721 | ||
5722 | Thu Mar 17 17:30:01 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5723 | ||
5724 | These changes fix the compiler's handling of the functional cast/ | |
5725 | object declaration ambiguities in section 6.8 of the ARM. They also | |
5726 | add 11 reduce/reduce conflicts. Sigh. | |
5727 | ||
5728 | * parse.y: Add precedence decls for OPERATOR and '~'. | |
5729 | (notype_unqualified_id): New nonterminal, encompasses all of the | |
5730 | ANSI unqualified-id nonterminal except TYPENAMEs. | |
5731 | (expr_or_declarator): New nonterminal to delay parsing of code like | |
5732 | `int (*a)'. | |
5733 | (primary): Use notype_unqualified_id. | |
5734 | (decl): Add typespec initdecls ';' and typespec declarator ';' | |
5735 | rules. | |
5736 | (initdcl0): Deal with the above. | |
5737 | (complex_notype_declarator1): A notype_declarator that is not also | |
5738 | an expr_or_declarator. | |
5739 | (complex_direct_notype_declarator): A direct_notype_declarator that | |
5740 | doesn't conflict with expr_or_declarator. Use | |
5741 | notype_unqualified_id. Remove id_scope see_typename TYPENAME rule. | |
5742 | (functional_cast): New nonterminal, for the three functional cast | |
5743 | rules. So that they can be moved after | |
5744 | complex_direct_notype_declarator. | |
5745 | (see_typename): Don't accept type_quals any more. | |
5746 | ||
5747 | * decl2.c (reparse_decl_as_expr): New function to deal with parse | |
5748 | nodes for code like `int (*a)++;'. | |
5749 | (reparse_decl_as_expr1): Recursive subroutine of the above. | |
5750 | (finish_decl_parsing): New function to deal with parse nodes for | |
5751 | code like `int (*a);'. See the difference? | |
5752 | ||
6060a796 | 5753 | Thu Mar 17 12:16:10 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
5754 | |
5755 | These changes break binary compatibility in code with classes | |
5756 | that use virtual bases. | |
5757 | ||
5758 | * search.c (dfs_get_vbase_types): Simplify and correct to make | |
5759 | sure virtual bases are initialized in dfs ordering. | |
5760 | * search.c (get_vbase_types): Simplify and make readable. | |
5761 | ||
5762 | Thu Mar 17 12:01:10 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5763 | ||
5764 | * parse.y: s/ typename / type_id /g | |
5765 | ||
5766 | Wed Mar 16 17:42:52 1994 Kung Hsu (kung@mexican.cygnus.com) | |
5767 | ||
5768 | * parse.y (typespec): add SCOPE TYPENAME for global scoped | |
5769 | type. e.g. ::B x. | |
5770 | ||
5771 | * decl.c (complete_array_type): fix a bug that in -pendantic | |
5772 | mode even there's no initializer, it will continue to build | |
5773 | default index. | |
5774 | ||
5775 | Wed Mar 16 17:43:07 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5776 | ||
5777 | * parse.y (direct_notype_declarator): Add PTYPENAME rule, remove | |
5778 | all of the scoped PTYPENAME rules. | |
5779 | ||
6060a796 | 5780 | Wed Mar 16 16:39:02 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
5781 | |
5782 | * init.c (build_offset_ref): The value of A::typedef_name is | |
5783 | always the TYPE_DECL, and never an error. | |
5784 | ||
5785 | Tue Mar 15 20:02:35 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5786 | ||
5787 | * search.c (get_base_distance_recursive): Two binfos can only | |
5788 | represent the same object if they are both via_virtual. | |
5789 | ||
5790 | * class.c (finish_base_struct): Check vbases for ambiguity, too. | |
5791 | ||
5792 | * search.c (get_vbase_types): Accept binfo argument, too. | |
5793 | ||
5794 | Tue Mar 15 19:22:05 1994 Kung Hsu (kung@mexican.cygnus.com) | |
5795 | ||
5796 | * decl.c (complete_array_type): complete TYPE_DOMAIN of the | |
5797 | initializer also, because back-end requires it. | |
5798 | ||
5799 | Tue Mar 15 15:33:31 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5800 | ||
5801 | * error.c (dump_expr): Support member functions (which show up as | |
5802 | OFFSET_REFs). | |
5803 | ||
6060a796 | 5804 | Mon Mar 14 16:24:36 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
5805 | |
5806 | * init.c (build_new): Set the return type of multidimensional | |
5807 | news correctly. | |
5808 | ||
5809 | Fri Mar 11 15:35:39 1994 Kung Hsu (kung@mexican.cygnus.com) | |
5810 | ||
5811 | * call.c (build_method_call): if basetype not equal to type | |
5812 | of the instance, use the type of the instance in building | |
5813 | destructor. | |
5814 | ||
5815 | Thu Mar 10 17:07:10 1994 Kung Hsu (kung@mexican.cygnus.com) | |
5816 | ||
5817 | * parse.y (direct_notype_declarator): add push_nested_type for | |
5818 | 'template_type SCOPED_NAME' rule. | |
5819 | ||
5820 | Tue Mar 8 00:19:58 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5821 | ||
5822 | * parse.y (parm): Add typed_declspec1 {absdcl, epsilon} rules. | |
5823 | ||
5824 | Sat Mar 5 04:47:48 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5825 | ||
5826 | * parse.y (regcast_or_absdcl): New nonterminal to implement late | |
5827 | reduction of constructs like `int ((int)(int)(int))'. | |
5828 | (cast_expr): Use it. | |
5829 | (sub_cast_expr): Everything that can come after a cast. | |
5830 | (typed_declspecs1): typed_declspecs that are not typed_typespecs. | |
5831 | (direct_after_type_declarator): Lose PAREN_STAR_PAREN rule. | |
5832 | (direct_abstract_declarator): Replace '(' parmlist ')' rule with | |
5833 | '(' complex_parmlist ')' and regcast_or_absdcl. | |
5834 | (parmlist): Split | |
5835 | (complex_parmlist): Parmlists that are not also typenames. | |
5836 | (parms_comma): Enabler. | |
5837 | (named_parm): A parm that is not also a typename. Use declarator | |
5838 | rather than dont_see_typename abs_or_notype_decl. Expand | |
5839 | typed_declspecs inline. | |
5840 | (abs_or_notype_decl): Lose. | |
5841 | (dont_see_typename): Comment out. | |
5842 | (bad_parm): Break out abs_or_notype_decl into two rules. | |
5843 | ||
5844 | Fri Mar 4 18:22:39 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5845 | ||
5846 | * decl2.c (reparse_decl_as_casts): New function to change parse | |
5847 | nodes for `(int)(int)(int)' from "function taking int and returning | |
5848 | function taking int and returning function taking int" to "... cast | |
5849 | to int, cast to int, cast to int". | |
5850 | ||
5851 | * decl2.c (reparse_decl_as_expr): Recursive function to change | |
5852 | parse nodes for `A()()' from "function returning function returning | |
5853 | A" to "A().operator()". | |
5854 | ||
5855 | * parse.y (primary): Replace `typespec LEFT_RIGHT' rule with | |
5856 | `typespec fcast_or_absdcl' rule. | |
5857 | (fcast_or_absdcl): New nonterminal to implement late reduction of | |
5858 | constructs like `A()()()()'. | |
5859 | (typename): Replace `typespec absdcl1' rule with | |
5860 | `typespec direct_abstract_declarator' rule. | |
5861 | (direct_abstract_declarator): Replace `LEFT_RIGHT type_quals' rule | |
5862 | with `fcast_or_absdcl type_quals' rule. | |
5863 | ||
6060a796 | 5864 | Fri Mar 4 16:18:03 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
5865 | |
5866 | * tree.c (lvalue_p): Improve OFFSET_REF handling, so that it | |
5867 | matches Section 5.5. | |
5868 | ||
5869 | Fri Mar 4 14:01:59 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5870 | ||
5871 | * error.c (dump_type_prefix): Don't print basetype twice for | |
5872 | pmfs. | |
5873 | ||
6060a796 | 5874 | Fri Mar 4 13:24:33 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
5875 | |
5876 | * typeck.c (convert_arguments): Handle setHandler(A::handlerFn) | |
5877 | so that it is like setHandler(&A::handlerFn). Cures an `invalid | |
5878 | lvalue in unary `&''. | |
5879 | ||
5880 | Fri Mar 4 11:15:59 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5881 | ||
5882 | * gxxint.texi (Copying Objects): New section discussing default | |
5883 | op= problems with virtual inheritance. | |
5884 | ||
5885 | * decl2.c (grokoptypename): Just does grokdeclarator and | |
5886 | build_typename_overload, since the parser can't call grokdeclarator | |
5887 | directly. | |
5888 | ||
5889 | * method.c (build_typename_overload): Set IDENTIFIER_GLOBAL_VALUE | |
5890 | and TREE_TYPE on generated identifiers. | |
5891 | ||
5892 | * decl.c (grokdeclarator): Don't deal with TYPE_EXPRs anymore. | |
5893 | ||
5894 | * parse.y (parm): Convert `const char *' to `__opPCc' here. | |
5895 | ||
5896 | * error.c (dump_decl): Say sorry rather than my_friendly_aborting | |
5897 | if we can't figure out what to do. | |
5898 | (dump_type*): Ditto. | |
5899 | ||
5900 | * typeck2.c (build_m_component_ref): 'component' is an expr, not | |
5901 | a decl. Also move the IS_AGGR_TYPE check after the stripping of | |
5902 | REFERENCE_TYPE. | |
5903 | ||
6060a796 | 5904 | Fri Mar 4 04:46:05 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
5905 | |
5906 | * call.c (build_method_call): Handle b->setHandler(A::handlerFn) | |
5907 | so that it is like b->setHandler(&A::handlerFn). Cures an `invalid | |
5908 | lvalue in unary `&''. | |
5909 | ||
5910 | Thu Mar 3 12:38:15 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5911 | ||
5912 | * parse.y: Add precedence specification for START_DECLARATOR. | |
5913 | (type_quals): Move before primary. | |
5914 | (typename): Move before typed_declspecs, add 'typespec absdcl1' rule. | |
5915 | ||
5916 | * decl2.c (grokoptypename): Lose. | |
5917 | ||
5918 | * decl.c (grokdeclarator): Parse TYPE_EXPRs in the initial scan, | |
5919 | rather than waiting until later. | |
5920 | ||
5921 | Wed Mar 2 14:12:23 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5922 | ||
5923 | * parse.y (unary_expr): Use 'typename' in 'new' rules, rather | |
5924 | than expanding it inline. | |
5925 | (typename): Expand empty option of (former) absdcl inline. | |
5926 | (abs_or_notype_decl): Ditto. | |
5927 | (absdcl): Lose empty rule. | |
5928 | (conversion_declarator): New nonterminal for 'typename' of 'operator | |
5929 | typename'. | |
5930 | (operator_name): Use it instead of absdcl. | |
5931 | ||
5932 | * parse.y: Add precedence declarations for SCOPED_TYPENAME, | |
5933 | TYPEOF, and SIGOF. | |
5934 | (typed_declspecs): Accept typed_typespecs, rather than typespec | |
5935 | directly. Add rules with reserved_typespecquals. | |
5936 | (reserved_declspecs): Don't accept typespecqual_reserved at the | |
5937 | beginning of the list. The typed_declspecs rule will deal with this | |
5938 | omission. | |
5939 | (declmods): Accept nonempty_type_quals, rather than TYPE_QUAL | |
5940 | directly. | |
5941 | ||
5942 | * parse.y (direct_notype_declarator, | |
5943 | direct_after_type_declarator, direct_abstract_declarator): Split up | |
5944 | the declarator1 nonterminals to match the draft standard and avoid | |
5945 | ambiguities. | |
5946 | (new_type_id, new_declarator, direct_new_declarator, | |
5947 | new_member_declarator): New nonterminals to implement the subset of | |
5948 | 'typename' allowed in new expressions. | |
5949 | (unary_expr): Use new_type_id instead of typename. | |
5950 | (after_type_declarator1, absdcl1): Fix semantics of member pointers. | |
5951 | (abs_member_declarator, after_type_member_declarator): Lose. | |
5952 | ||
5953 | * parse.y (absdcl1): Don't require parens around | |
5954 | abs_member_declarator. | |
5955 | (abs_member_declarator): Lose see_typename from rules. | |
5956 | (after_type_member_declarator): Ditto. | |
5957 | ||
5958 | * tree.c (get_identifier_list): New function, containing code | |
5959 | previously duplicated in get_decl_list and list_hash_lookup_or_cons. | |
5960 | (get_decl_list): Use it. | |
5961 | (list_hash_lookup_or_cons): Ditto. | |
5962 | ||
5963 | * parse.y (typed_declspecs, declmods): It's not necessary to hash | |
5964 | the declspecs on class_obstack, so don't. This way typed_typespecs | |
5965 | can reduce to typed_declspecs. | |
5966 | ||
5967 | Wed Mar 2 14:29:18 1994 Jason Merrill (jason@cygnus.com) | |
5968 | ||
5969 | * cvt.c (build_up_reference): If we aren't checking visibility, | |
5970 | also allow base->derived conversions. | |
5971 | ||
5972 | Mon Feb 28 15:14:29 1994 Per Bothner (bothner@kalessin.cygnus.com) | |
5973 | ||
5974 | * typeck.c (build_c_cast): Remove bogus hack when converting | |
5975 | to a reference type. | |
5976 | ||
5977 | * cp-tree.h (lang_decl::vbase_init_list, DECL_VBASE_INIT_LIST): | |
5978 | Removed, not used. | |
5979 | (lang_stype::methods, lang_decl::next_method): New fields. | |
5980 | (CLASSTYPE_METHODS, DECL_NEXT_METHOD): New macros. | |
5981 | * decl.c (duplicate_decls): Preserve DECL_NEXT_METHOD. | |
5982 | ||
5983 | * cp-tree.h, decl2.c (flag_vtable_hack): New flag. | |
5984 | * decl2.c (finish_vtable_vardecl): If flag_vtable_hack, | |
5985 | and !CLASSTYPE_INTERFACE_KNOWN, try to use the presence of | |
5986 | a non-inline virtual function to control emitting of vtables. | |
5987 | * class.c (finish_struct): Build CLASSTYPE_METHODS list. | |
5988 | * search.c (build_vbase_vtables_init): Don't assemble_external | |
5989 | (yet) if flag_vtable_hack. | |
5990 | * class.c (build_vfn_ref): Ditto. | |
5991 | ||
5992 | Mon Feb 28 14:54:13 1994 Jason Merrill (jason@deneb.cygnus.com) | |
5993 | ||
5994 | * parse.y (component_decl): Don't include "typed_declspecs | |
5995 | declarator ';'" speedup, since it breaks enums. | |
5996 | ||
5997 | Fri Feb 25 15:43:44 1994 Per Bothner (bothner@kalessin.cygnus.com) | |
5998 | ||
5999 | * class.c (finish_struct): Minor optimization for building | |
6000 | fn_fields list. | |
6001 | ||
6002 | Fri Feb 25 15:23:42 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6003 | ||
6004 | * decl.c (start_function): Fix detection of function overloading. | |
6005 | ||
6060a796 | 6006 | Thu Feb 24 22:26:19 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
6007 | |
6008 | * lex.c (check_newline): #pragma interface can take a string | |
6009 | argument, just like #pragma implementation. #pragma implementation | |
6010 | checks for garbage on the line, line #pragma interface does. Main | |
6011 | input files do not auto implement like named files, #pragma | |
6012 | implementation must be used explicitly. | |
6013 | ||
6014 | Thu Feb 24 17:09:01 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6015 | ||
6016 | * parse.y (components): Handle list of one again. | |
6017 | (notype_components): Ditto. | |
6018 | (after_type_declarator1): Take maybe_raises out again. | |
6019 | ||
6020 | * gxxint.texi (Parser): Document additional r/r conflict. | |
6021 | ||
6022 | Wed Feb 23 14:42:55 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6023 | ||
6024 | * gxxint.texi (Parser): Add node. | |
6025 | ||
6026 | * Makefile.in (stamp-parse): Update expected conflict count. | |
6027 | ||
6028 | * parse.y (various): Replace "declmods declarator" with "declmods | |
6029 | notype_declarator". The comment saying that "declmods declarator ';'" | |
6030 | corresponds to "int i;" was wrong; it corresponds to "const i;". | |
6031 | (component_decl): Add "typed_declspecs declarator ';'" rule; this | |
6032 | *does* correspond to "int i;". Change "declmods components" to | |
6033 | "declmods notype_components". | |
6034 | (components): Don't deal with a list of one anymore. | |
6035 | (notype_components): New nonterminal, corresponds to notype_declarator. | |
6036 | ({after_,no}type_component_decl{,0}): More new nonterminals. | |
6037 | ({after_,no}type_declarator): Fold in START_DECLARATOR token. | |
6038 | Eliminates four reduce/reduce conflicts. | |
6039 | ||
6040 | (expr): Depend on nontrivial_exprlist instead of nonnull_exprlist. | |
6041 | (nontrivial_exprlist): New nonterminal: A list of at least two | |
6042 | expr_no_commas's. | |
6043 | (nonnull_exprlist): Depend on nontrival_exprlist. | |
6044 | Eliminates four reduce/reduce conflicts. | |
6045 | ||
6046 | (named_class_head): Move intermediate code block into separate | |
6047 | nonterminal so that we can stick %prec EMPTY on it. | |
6048 | ||
6049 | Add more %prec EMPTY's to eliminate remaining shift/reduce | |
6050 | conflicts. | |
6051 | ||
6052 | (after_type_declarator): Add maybe_raises to fndecl rules. | |
6053 | (after_type_declarator_no_typename): Remove. | |
6054 | For correctness. | |
6055 | ||
6056 | Document remaining reduce/reduce conflicts. | |
6057 | ||
6058 | Tue Feb 22 12:10:32 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6059 | ||
6060 | * search.c (get_base_distance): Only bash BINFO_INHERITANCE_CHAIN | |
6061 | (TYPE_BINFO (type)) if we care about the path. | |
6062 | ||
6063 | * tree.c (lvalue_p): A COND_EXPR is an lvalue if both of the | |
6064 | options are. | |
6065 | ||
6060a796 | 6066 | Mon Feb 21 19:59:40 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
6067 | |
6068 | * Makefile.in (mostlyclean): lex.c is a source file, don't | |
6069 | remove. | |
6070 | ||
6071 | Sat Feb 19 01:27:14 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6072 | ||
6073 | * parse.y: Eliminate 20 shift/reduce conflicts. | |
6074 | ||
6075 | Fri Feb 18 11:49:42 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6076 | ||
6077 | * pt.c (type_unification): Add subr argument; if set, it means | |
6078 | that we are calling ourselves recursively, so a partial match is OK. | |
6079 | (unify): Support pointers to methods and functions. | |
6080 | (tsubst): Support method pointers. | |
6081 | * decl.c (build_ptrmemfunc_type): No longer static, so that | |
6082 | tsubst can get at it. | |
6083 | ||
6084 | * init.c (is_aggr_typedef): Pretend template type parms are | |
6085 | aggregates. | |
6086 | * decl2.c (build_push_scope): If cname refers to a template type | |
6087 | parm, just grin and nod. | |
6088 | ||
6089 | * call.c (build_overload_call_real): Pass subr argument to | |
6090 | type_unification. | |
6091 | * pt.c (do_function_instantiation): Ditto. | |
6092 | * class.c (instantiate_type): Ditto. | |
6093 | ||
6094 | * search.c (get_base_distance): If BINFO is a binfo, use it and | |
6095 | don't mess with its BINFO_INHERITANCE_CHAIN. | |
6096 | ||
6097 | * cvt.c (convert_to_reference): Fix temporary generation. | |
6098 | If ambiguous, return error_mark_node. | |
6099 | ||
6100 | * init.c (build_new): Put back some necessary code. | |
6101 | ||
6102 | Thu Feb 17 15:39:47 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6103 | ||
6104 | * init.c (build_new): Deal with array types properly. | |
6105 | ||
6106 | * search.c (get_binfo): Become a shell for get_base_distance. | |
6107 | (get_binfo_recursive): Lose. | |
6108 | (get_base_distance_recursive): Find the path to the via_virtual base | |
6109 | that provides the most access. | |
6110 | (get_base_distance): Ditto. | |
6111 | ||
6112 | * parse.y (explicit_instantiation): Syntax is 'template class | |
6113 | A<int>', not 'template A<int>'. | |
6114 | ||
6115 | * typeck.c (convert_for_initialization): Remove bogus warning. | |
6116 | ||
6117 | * parse.y (datadef): Revert patch of Oct 27. | |
6118 | ||
6119 | Thu Feb 17 15:12:29 1994 Per Bothner (bothner@kalessin.cygnus.com) | |
6120 | ||
6121 | * class.c (build_vfn_ref): Cast delta field to ptrdiff_type_node, | |
6122 | rather than integer_type_node. Does wonders for the Alpha. | |
6123 | ||
6124 | Thu Feb 17 13:36:21 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6125 | ||
6126 | * decl.c (build_ptrmemfunc_type): Make sure that the pmf type | |
6127 | goes onto the same obstack as its target type. | |
6128 | ||
6129 | Wed Feb 16 00:34:46 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6130 | ||
6131 | * cvt.c (convert_to_reference): If converting via constructor | |
6132 | on local level, go back to build_cplus_new approach. | |
6133 | ||
6134 | * tree.c (build_cplus_new): If with_cleanup_p, set cleanup slot | |
6135 | to error_mark_node to prevent expand_expr from building a cleanup | |
6136 | for this variable. | |
6137 | ||
6138 | * lex.c (default_assign_ref_body): Return *this from the memcpy | |
6139 | version, too. | |
6140 | ||
6141 | * decl.c (grok_reference_init): Just return if called with | |
6142 | error_mark_node, don't worry about initializing non-const reference | |
6143 | with temporary. | |
6144 | ||
6145 | * cvt.c (convert_to_reference): Do the right thing for | |
6146 | non-aggregate reference conversions, pedwarn when generating a | |
6147 | non-const reference to a temporary. | |
6148 | ||
6149 | * class.c (finish_struct): TYPE_HAS_COMPLEX_{INIT,ASSIGN}_REF and | |
6150 | TYPE_NEEDS_CONSTRUCTING all depend on TYPE_USES_VIRTUAL_BASECLASSES | |
6151 | again. | |
6152 | ||
6153 | Tue Feb 15 19:47:19 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6154 | ||
6155 | * decl.c (grok_reference_init): Pawn off a lot of the work on | |
6156 | convert_to_reference. Generally do the right thing. | |
6157 | ||
6158 | * cvt.c (convert_to_reference): Conform to the initial comment; | |
6159 | i.e. don't create temps if decl != error_mark_node. Handle | |
6160 | cleanups better for temps that do get created. Don't pretend | |
6161 | that we can use an 'A' to initialize a 'const double &' just by | |
6162 | tacking on a NOP_EXPR. Support LOOKUP_SPECULATIVELY. | |
6163 | ||
6164 | * call.c (build_method_call): Set TREE_HAS_CONSTRUCTOR on | |
6165 | constructor calls. | |
6166 | ||
6167 | Mon Feb 14 14:50:17 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6168 | ||
6169 | * decl.c (grok_reference_init): Make a temporary for initializing | |
6170 | const reference from constant expression. | |
6171 | ||
6172 | Mon Feb 14 11:31:31 1994 Per Bothner (bothner@kalessin.cygnus.com) | |
6173 | ||
6174 | * cp-tree.h, decl.c (set_identifier_local_value): Deleted function. | |
6175 | * decl.c (pushdecl): Define decl in correct binding_level | |
6176 | (which isn't always the inner_binding_level). | |
6177 | ||
6178 | * cvt.c (build_up_reference): Don't ever call expand_aggr_init. | |
6179 | It's ugly, and I don't think it's the right thing to do. | |
6180 | ||
6181 | * cp-tree.h, class.c, decl.c, decl2.c, sp/search.c: | |
6182 | Remove NEW_CLASS_SCOPING, assuming it is always 1. | |
6183 | * decl.c (pop_decl_level): Removed; manually inlined. | |
6184 | ||
6185 | Sun Feb 13 19:04:56 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6186 | ||
6187 | * class.h (candidate): Add basetypes field. | |
6188 | ||
6189 | * call.c (build_method_call): Do access checking after choosing a | |
6190 | function, not before. | |
6191 | ||
6192 | * Makefile.in (cvt.o, call.o, method.o): Depend on class.h. | |
6193 | (mostlyclean): Remove ../cc1plus. | |
6194 | ||
6195 | Fri Feb 11 11:52:26 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6196 | ||
6197 | * class.c (finish_struct): Don't allow adjusting access to a field | |
6198 | of a base class if a local field has the same name. | |
6199 | ||
6200 | * error.c (dump_type_prefix): Output basetype for METHOD_TYPEs. | |
6201 | ||
6202 | hu Jan 13 17:55:51 EST 1994 Gnanasekaran Swaminathan (gs4t@virginia.edu) | |
6203 | ||
63718c49 | 6204 | * cp-tree.h (DESTRUCTOR_NAME_P): do not confuse AUTO_TEMP names |
7177d104 MS |
6205 | with destructor names when either NO_DOLLAR_IN_LABEL or |
6206 | NO_DOT_IN_LABEL are not defined. | |
6207 | ||
6208 | Now `template <class T, T f(T&), const T*> class A {...}' works. | |
6209 | ||
6210 | * pt.c (grok_template_type): substitute template parm types | |
6211 | with actual types in complex type as well. | |
6212 | (coerce_template_parms): update the grok_template_type () | |
6213 | function call. | |
6214 | ||
6215 | * pt.c (tsubst): Traverse method list using DECL_CHAIN. | |
6216 | ||
6217 | * decl.c (grok_op_properties): Allow operator++/-- to have | |
6218 | default arguments. | |
6219 | ||
6220 | * typeck2.c (store_init_value): Don't abort when called to | |
6221 | initialize a type that needs constructing with a CONSTRUCTOR. | |
6222 | ||
6223 | * init.c (expand_aggr_init_1, CONSTRUCTOR case): If | |
6224 | store_init_value fails, build and expand an INIT_EXPR. If | |
6225 | store_init_value succeeds, call expand_decl_init. | |
6226 | ||
6060a796 | 6227 | Fri Feb 11 02:49:23 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
6228 | |
6229 | * class.c (build_vbase_path): Use complete_type_p instead of | |
6230 | resolves_to_fixed_type_p to determine if the virtual bases are in | |
6231 | their right place for the type of expr. Cures problem of thinking a | |
6232 | virtual base class is one place, when it is in fact someplace else. | |
6233 | ||
6060a796 | 6234 | Fri Feb 11 00:26:46 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
6235 | |
6236 | * init.c (resolve_offset_ref): Make sure we first convert to | |
6237 | intermediate type, if given, when dealing with members off `this'. | |
6238 | Solves an incorrrect `type `foo' is not a base type for type | |
6239 | `multiple'' when it is infact, a base type. | |
6240 | ||
6060a796 | 6241 | Thu Feb 10 21:49:35 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
6242 | |
6243 | * class.c (modify_other_vtable_entries): Use get_binfo, instead | |
6244 | of binfo_value. Solves problem with compiler giving a `base class | |
6245 | `B' ambiguous in binfo_value (compiler error)' on complex MI | |
6246 | herarchies, when a virtual function is first defied in a virtual | |
6247 | base class. | |
6248 | ||
6060a796 | 6249 | Thu Feb 10 17:19:32 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
6250 | |
6251 | * class.c (build_vbase_path): Don't complain about ambiguous | |
6252 | intermediate conversion when converting down to a virtual base | |
6253 | class, even if they might seem to be ambiguous. | |
6254 | ||
6255 | Thu Feb 10 12:18:26 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6256 | ||
6257 | * typeck2.c (build_functional_cast): #if 0 out constructor | |
6258 | inheritance code, improve error messages. | |
6259 | ||
6260 | * class.c (finish_base_struct): Complain about base with only | |
6261 | non-default constructors in derived class with no constructors. | |
6262 | ||
6263 | * decl.c (grokdeclarator): Fix detection of virtual new/delete. | |
6264 | ||
6060a796 | 6265 | Wed Feb 9 22:02:32 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
6266 | |
6267 | * search.c (build_mi_virtuals, add_mi_virtuals, | |
6268 | report_ambiguous_mi_virtuals): Removed unneeded code. | |
6269 | * class.c (finish_struct_bits): Ditto. | |
6270 | ||
6271 | Wed Feb 9 11:27:17 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6272 | ||
6273 | * pt.c (end_template_instantiation): Push decl before | |
6274 | pop_from_top_level. | |
6275 | ||
6276 | * typeck2.c (build_m_component_ref): Make sure datum is of | |
6277 | aggregate type. | |
6278 | ||
6279 | * init.c (get_type_value): New function, returns | |
6280 | IDENTIFIER_TYPE_VALUE or IDENTIFIER_CLASS_TYPE_VALUE or NULL_TREE. | |
6281 | ||
6282 | * call.c (build_method_call): Don't die on call to destructor for | |
6283 | non-type. | |
6284 | ||
6285 | * decl.c (grokdeclarator): Complain about virtual op new and op | |
6286 | delete, make static virtuals unvirtual instead of unstatic. | |
6287 | ||
6288 | * typeck.c (build_c_cast): Also call default_conversion on | |
6289 | methods. | |
6290 | ||
6291 | * decl.c (grokdeclarator): Don't complain about anonymous | |
6292 | bitfields. | |
6293 | ||
6294 | * parse.y (simple_stmt, for loops): Move the continue point after | |
6295 | the cleanups. | |
6296 | ||
6297 | * class.c (finish_struct): Fix setting of | |
6298 | TYPE_HAS_COMPLEX_INIT_REF. | |
6299 | ||
6300 | Tue Feb 8 13:21:40 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6301 | ||
6302 | * init.c (build_new): Deal with `new double (1)'. | |
6303 | ||
6304 | * class.c (finish_struct): TYPE_HAS_COMPLEX_*_REF are supersets of | |
6305 | TYPE_HAS_REAL_*_REF, but TYPE_HAS_COMPLEX_INIT_REF is independent of | |
6306 | TYPE_NEEDS_CONSTRUCTING. | |
6307 | ||
6308 | * decl.c (duplicate_decls): Propagate access decls. | |
6309 | ||
6310 | * typeck2.c (process_init_constructor): Accept empty_init_node | |
6311 | for initializing unions. | |
6312 | ||
6313 | * class.c, lex.c, cp-tree.h: Use | |
6314 | TYPE_HAS_COMPLEX_ASSIGN_REF where TYPE_HAS_REAL_ASSIGN_REF was used | |
6315 | before, use TYPE_HAS_COMPLEX_INIT_REF for TYPE_NEEDS_CONSTRUCTING in | |
6316 | some places. | |
6317 | ||
6318 | * decl.c (finish_decl): Don't complain about uninitialized const | |
6319 | if it was initialized before. | |
6320 | ||
6321 | Mon Feb 7 18:12:34 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6322 | ||
6323 | * lex.c (default_assign_ref_body): Don't deal with vbases for | |
6324 | now. | |
6325 | ||
6326 | * decl.c (finish_decl): Fix reversed logic for objects and other | |
6327 | things that need to be constructed but have no initializer. | |
6328 | ||
6329 | * class.c (finish_struct): Don't set TYPE_HAS_* flags that are | |
6330 | set by grok_op_properties or finish_decl. | |
6331 | ||
6332 | * decl.c: Don't warn about extern redeclared inline unless | |
6333 | -Wextern-inline is given. | |
6334 | * decl2.c (lang_decode_option): Ditto. | |
6335 | * cp-tree.h: Ditto. | |
6336 | ||
6337 | Mon Feb 7 17:29:24 1994 Per Bothner (bothner@kalessin.cygnus.com) | |
6338 | ||
6339 | * decl.c (pushdecl_with_scope): Fix thinko. Add forward | |
6340 | declaration. | |
6341 | ||
6342 | * decl.c (pushdecl_with_scope): New function. | |
6343 | * decl.c (pushdecl_top_level): Use new function. | |
6344 | * decl.c (pushtag): Initialize newdecl. | |
6345 | * decl.c (pushtag): Push new type decl into correct scope. | |
6346 | ||
6347 | Mon Feb 7 14:42:03 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6348 | ||
6349 | * call.c, cvt.c, init.c, search.c, cp-tree.h: | |
6350 | Eradicate LOOKUP_PROTECTED_OK. | |
6351 | ||
6352 | Mon Feb 7 13:57:19 1994 Per Bothner (bothner@kalessin.cygnus.com) | |
6353 | ||
6354 | * decl.c (pushtag, xref_tag), cp-tree.h: Add extra parameter | |
6355 | 'globalize' to signify implicit declarations. | |
6356 | * decl.c (globalize_nested_type, maybe_globalize_type): Removed. | |
6357 | * decl.c (set_identifier_type_value_with_scope): New function. | |
6358 | * decl.c (set_identifier_local_value): Simplify. | |
6359 | * spew.c (yylex, do_addr): Modify to return a _DEFN if a | |
6360 | forward declaration (followed by ';' and not preceded by 'friend'). | |
6361 | * class.c, decl.c, except.c, init.c, parse.y, | |
6362 | pt.c, search.c: Add new argument to calls to xref_tag and | |
6363 | pushtag. | |
6364 | ||
6365 | Mon Feb 7 00:22:59 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6366 | ||
6367 | * cp-tree.h (ACCESSIBLY_UNIQUELY_DERIVED_P): New macro, means what | |
6368 | ACCESSIBLY_DERIVED_FROM_P meant before. | |
6369 | (ACCESSIBLY_DERIVED_FROM_P): Now disregards ambiguity. | |
6370 | ||
6371 | * cvt.c (build_up_reference): Call get_binfo with PROTECT == 1. | |
6372 | ||
6373 | * search.c (get_base_distance_recursive): Members and friends of | |
6374 | a class X can implicitly convert an X* to a pointer to a private or | |
6375 | protected immediate base class of X. | |
6376 | (get_binfo_recursive): Ditto. | |
6377 | (get_base_distance): Ignore ambiguity if PROTECT < 0. | |
6378 | (get_binfo): Lose multiple values of PROTECT. | |
6379 | (compute_access): Protected is OK if the start of the | |
6380 | search is an accessible base class of current_class_type. | |
6381 | ||
6382 | * method.c (build_opfncall): Do check access on operator new here. | |
6383 | ||
6384 | * decl.c (finish_function): Don't check access on operator new | |
6385 | here. | |
6386 | ||
6387 | Sun Feb 6 14:06:58 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6388 | ||
6389 | * decl.c (xref_tag): The base of a derived struct is NOT always | |
6390 | public. Duh. | |
6391 | ||
6392 | * pt.c (do_explicit_instantiation): New function, called from | |
6393 | parser to do explicit function instantiation. | |
6394 | (type_unification): Allow the args list to be terminated with | |
6395 | void_list_node. | |
6396 | (do_pending_expansions): Look at i->interface for non-member | |
6397 | templates. | |
6398 | ||
6399 | * parse.y (datadef): Move explicit_instantiation here. | |
6400 | (structsp): From here. | |
6401 | (datadef): Complain about `int;'. | |
6402 | ||
6403 | Sun Feb 6 12:33:18 1994 Per Bothner (bothner@kalessin.cygnus.com) | |
6404 | ||
6405 | * pt.c (end_template_instantiation), cp-tree.h: Remove unused | |
6406 | second parameter, and simplify first from a TREE_LIST where | |
6407 | we only care about its TREE_VALUE to just the value (an IDENTIFIER). | |
6408 | * pt.c (instantiate_member_templates): Simplify argument list | |
6409 | from a TREE_LIST to just an IDENTIFIER. | |
6410 | * lex.c (yyprint): PRE_PARSED_CLASS_DECL is now just an IDENTIFIER. | |
6411 | * parse.y (template_instantiate_once): Simplify accordingly. | |
6412 | * decl.c (inner_binding_level): New. Use various places to | |
6413 | simplify. | |
6414 | ||
6415 | Sun Feb 6 02:49:37 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6416 | ||
6417 | * typeck2.c (build_functional_cast): int() -> int(0). | |
6418 | ||
6419 | Sat Feb 5 00:53:21 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6420 | ||
6421 | * class.c (finish_struct): Don't do a bitwise copy for op= if the | |
6422 | class has a virtual function table. | |
6423 | ||
6424 | * typeck.c (convert_for_initialization): Restore warnings about | |
6425 | not using defined op=. Should really be my_friendly_aborts, I | |
6426 | s'pose. | |
6427 | ||
6428 | Fri Feb 4 14:21:00 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6429 | ||
6430 | * class.c (finish_struct): Tidy up conditions for doing bitwise | |
6431 | copies of objects. | |
6432 | ||
6433 | * decl.c (build_default_constructor): #if 0 out. | |
6434 | ||
6435 | * *: Eradicate TYPE_GETS_{ASSIGNMENT,ASSIGN_REF,CONST_ASSIGN_REF, | |
6436 | CONST_INIT_REF}, TYPE_HAS_REAL_CONSTRUCTOR. | |
6437 | ||
6438 | * decl.c (grokdeclarator): Don't return void_type_node for | |
6439 | friends being defined here. | |
6440 | ||
6441 | * init.c (perform_member_init): Only do the init if it's useful. | |
6442 | ||
6443 | * lex.c (default_copy_constructor_body): If we don't need to do | |
6444 | memberwise init, just call __builtin_memcpy. | |
6445 | (default_assign_ref_body): Ditto. | |
6446 | ||
6447 | * decl.c (grokdeclarator): If friendp && virtualp, friendp = 0. | |
6448 | ||
6060a796 | 6449 | Fri Feb 4 13:02:56 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
6450 | |
6451 | * lex.c (reinit_parse_for_method, cons_up_default_function): | |
6452 | Don't give warn_if_unknown_interface warning when it came from a | |
6453 | system header file. | |
6454 | * pt.c (end_template_decl, instantiate_template): Ditto. | |
6455 | * decl.c (start_decl): Ditto. | |
6456 | ||
6457 | Fri Feb 4 00:41:21 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6458 | ||
6459 | * decl.c (grokdeclarator): Don't try to set TYPE_WAS_ANONYMOUS on | |
6460 | enums. | |
6461 | ||
6462 | * decl2.c (constructor_name_full): Use IS_AGGR_TYPE_CODE instead of | |
6463 | IS_AGGR_TYPE, since we don't know it's a type. | |
6464 | ||
6465 | Thu Feb 3 11:36:46 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6466 | ||
6467 | * decl.c (grokdeclarator): Don't complain about anonymous unions. | |
6468 | ||
6469 | * cp-tree.h (TYPE_WAS_ANONYMOUS): This struct was originally | |
6470 | anonymous, but had a name given to it by a typedef. | |
6471 | ||
6472 | * decl.c (grokdeclarator): When renaming an anonymous struct, set | |
6473 | TYPE_WAS_ANONYMOUS. | |
6474 | ||
6475 | * decl2.c (constructor_name_full): Use TYPE_WAS_ANONYMOUS. | |
6476 | ||
6477 | * cp-tree.h (DECL_UNDEFINED_FRIENDS): #if 0 out. | |
6478 | ||
6479 | * init.c (xref_friend): Don't set up DECL_UNDEFINED_FRIENDS. | |
6480 | (embrace_waiting_friends): Don't use DECL_UNDEFINED_FRIENDS. | |
6481 | ||
6482 | * decl.c (grokdeclarator): Set TYPE_NESTED_NAME properly on nested | |
6483 | anonymous structs that get typedef'd. | |
6484 | ||
6485 | * decl.c (grokdeclarator): Always return void_type_node for | |
6486 | friends. | |
6487 | ||
6488 | * error.c (dump_function_decl): Don't use DECL_CLASS_CONTEXT for | |
6489 | friends. | |
6490 | (dump_function_decl): Don't print out default args for | |
6491 | a function used in an expression. | |
6492 | ||
6493 | * decl.c (grokdeclarator): Give error on abstract declarator used | |
6494 | in an invalid context (i.e. `void (*)();'). | |
6495 | ||
6496 | * error.c (cp_line_of): Support _TYPE nodes. | |
6497 | (cp_file_of): Ditto. | |
6498 | ||
6499 | * cvt.c (build_up_reference): Don't abort if passed a SAVE_EXPR; | |
6500 | it can happen for the RHS of an assignment stmt where the LHS is | |
6501 | a COND_EXPR. | |
6502 | ||
6503 | * init.c (expand_aggr_init_1): Deal with bracketed initializer | |
6504 | lists properly. | |
6505 | ||
6506 | * class.c (finish_struct): Deal with enumerators and typedefs | |
6507 | again. | |
6508 | ||
6509 | Wed Feb 2 11:30:22 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6510 | ||
6511 | * class.c (finish_struct): Tidy up loop over fields. | |
6512 | ||
6513 | * errfn.c (cp_thing): Don't advance twice after a format. | |
6514 | ||
6515 | * class.c (finish_struct): Complain about needing a constructor | |
6516 | if a member has only non-default constructors, and don't try to | |
6517 | generate a default constructor. | |
6518 | ||
6519 | * decl.c (finish_decl): Also do the constructor thing if | |
6520 | TYPE_NEEDS_CONSTRUCTING is set (for arrays). | |
6521 | ||
6522 | * search.c (unuse_fields): New function: mark all fields in this | |
6523 | type unused. | |
6524 | (dfs_unuse_fields): Helper function. | |
6525 | ||
6526 | * class.c (pushclass): If the new class is the same as the old | |
6527 | class, still unuse the fields. | |
6528 | (unuse_fields): Move to search.c. | |
6529 | ||
6530 | * decl.c (grok_op_properties): Add friendp argument. | |
6531 | (grokfndecl): Pass it. | |
6532 | (start_method): Ditto. | |
6533 | ||
6534 | * decl2.c (delete_sanity): Add use_global_delete parameter to catch | |
6535 | ::delete calls. | |
6536 | ||
6537 | * parse.y (unary_expr): Pass new parameter to delete_sanity. | |
6538 | ||
6539 | * lex.c (default_copy_constructor_body): Don't choke if the union | |
6540 | has no fields. | |
6541 | (default_assign_ref_body): Ditto. | |
6542 | ||
6543 | * call.c (compute_conversion_costs_ansi): Do the right thing for | |
6544 | ellipsis matches. | |
6545 | ||
6546 | * decl.c (push_to_top_level): Optimize. | |
6547 | ||
6548 | * decl.c (start_function): Look for the lexical scope of a friend | |
6549 | in DECL_CLASS_CONTEXT. | |
6550 | ||
6551 | * init.c (do_friend): Set DECL_CLASS_CONTEXT on global friends. | |
6552 | ||
6553 | Tue Feb 1 15:59:24 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6554 | ||
6555 | * cp-tree.h (TREE_GETS_PLACED_NEW): New macro. | |
6556 | ||
6557 | * init.c (init_init_processing): Don't assign BIN/BID to the | |
6558 | IDENTIFIER_GLOBAL_VALUEs of their respective operators. | |
6559 | (build_new): Check TREE_GETS_PLACED_NEW. | |
6560 | ||
6561 | * decl.c (grok_op_properties): Don't set TREE_GETS_NEW for a decl of | |
6562 | op new with placement, set TREE_GETS_PLACED_NEW. | |
6563 | ||
6564 | * cp-tree.h (ANON_UNION_P): New macro. Applies to decls. | |
6565 | ||
6566 | * class.c (finish_struct): Don't treat anonymous unions like | |
6567 | other aggregate members. Do synthesize methods for unions without | |
6568 | a name, since they may or may not be "anonymous unions". | |
6569 | ||
6570 | * decl2.c (grok_x_components): Wipe out memory of synthesized methods | |
6571 | in anonymous unions. | |
6572 | ||
6573 | * lex.c (default_copy_constructor_body): Support unions. | |
6574 | (default_assign_ref_body): Ditto. | |
6575 | ||
6576 | Mon Jan 31 12:07:30 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6577 | ||
6578 | * cp-tree.h: Fix documentation of LOOKUP_GLOBAL, add prototypes. | |
6579 | ||
6580 | * error.c (args_as_string): New function (%A), like type_as_string | |
6581 | except NULL_TREE -> "..." | |
6582 | ||
6583 | * call.c (build_overload_call_real): Fix for new overloading. | |
6584 | ||
6585 | * decl.c (grok_op_properties): Set all of the TYPE_OVERLOADS_* flags | |
6586 | here. | |
6587 | ||
6588 | * parse.y (operator_name): Instead of here. | |
6589 | ||
6590 | * typeck2.c (build_functional_cast): Treat a TREE_LIST as a list | |
6591 | of functions. | |
6592 | ||
6593 | * call.c (build_overload_call_real): Support LOOKUP_SPECULATIVELY. | |
6594 | ||
6595 | * method.c (build_opfncall): Don't need to massage return value | |
6596 | any more, call build_overload_call with all flags. | |
6597 | ||
6598 | * typeck.c (build_x_binary_op): Put back speculative call to | |
6599 | build_opfncall. | |
6600 | (build_x_unary_op): Ditto. | |
6601 | (build_x_conditional_expr): Ditto. | |
6602 | ||
6060a796 | 6603 | Mon Jan 31 10:00:30 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
6604 | |
6605 | * cvt.c (build_type_conversion_1): Change call to pedwarn into | |
6606 | warning, and conditionalize upon warn_cast_qual. | |
6607 | ||
6608 | Fri Jan 28 11:48:15 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6609 | ||
6610 | * search.c (lookup_field): If xbasetype is a binfo, copy it to | |
6611 | avoid clobbering its inheritance info. | |
6612 | ||
6613 | * call.c (build_method_call): Don't overwrite basetype_path with | |
6614 | TYPE_BINFO (inst_ptr_basetype) if they have the same type. | |
6615 | ||
6616 | * search.c (compute_access): Fix handling of protected inheritance | |
6617 | and friendship with the enclosing class. | |
6618 | ||
6619 | * typeck2.c (store_init_value): Allow passing of TREE_CHAIN for | |
6620 | initialization of arbitrary variable. | |
6621 | ||
6622 | * typeck2.c (build_functional_cast): Only try calling a method if | |
6623 | one exists. | |
6624 | ||
6625 | * decl.c (grokdeclarator): Move handling of constructor syntax | |
6626 | initialization into first loop for generality. | |
6627 | (parmlist_is_random): Lose. | |
6628 | ||
6629 | * lex.c (cons_up_default_function): Set TREE_PARMLIST on arguments | |
6630 | to default function. | |
6631 | ||
6632 | Thu Jan 27 19:26:51 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6633 | ||
6634 | * decl.c (grokparms): Abort if we get called with something we don't | |
6635 | expect. | |
6636 | ||
6060a796 | 6637 | Thu Jan 27 17:37:25 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
6638 | |
6639 | * call.c (build_overload_call_real): Change argument complain to | |
6640 | flags to match style of rest of code. Pass it down to | |
6641 | build_function_call_real as necessary. | |
6642 | * call.c (build_overload_call, build_overload_call_maybe): Change | |
6643 | argument complain to flags to match style of rest of code. | |
6644 | * cp-tree.h (build_function_call_real): Added fourth flags | |
6645 | argument. | |
6646 | * cvt.c (convert_to_reference): Only give warning messages, if | |
6647 | LOOKUP_COMPLAIN is set. | |
6648 | * typeck.c (build_x_function_call): Change simple complain | |
6649 | argument to build_overload_call_maybe and build_overload_call, to | |
6650 | LOOKUP_COMPLAIN to match style of rest of code. | |
6651 | * typeck2.c (build_functional_cast): Ditto. | |
6652 | * typeck.c (build_function_call_real): Add flags, so that we can | |
6653 | not complain, if we don't want to complain. Complain about | |
6654 | arguments, if we are complaining, otherwise don't. | |
6655 | * typeck.c (build_function_call, build_function_call_maybe): | |
6656 | Stick in flags argument. | |
6657 | * typeck.c (build_x_binary_op, build_x_unary_op, | |
6658 | build_x_conditional_expr, build_x_compound_expr): Follow style of | |
6659 | build_x_indirect_ref, as it is more correct and more common. | |
6660 | ||
6661 | Thu Jan 27 14:36:20 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6662 | ||
6663 | * call.c (build_method_call): Don't check for being called with | |
6664 | a pointer. | |
6665 | ||
6666 | * decl2.c (finish_file): Don't play with DECL_CLASS_CONTEXT for the | |
6667 | static initializer function. | |
6668 | ||
6669 | * init.c (build_member_call): Use convert_force here, too. | |
6670 | ||
6671 | * search.c (compute_access): Only treat static members specially | |
6672 | if they are referenced directly. | |
6673 | ||
6674 | Wed Jan 26 18:28:14 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6675 | ||
6676 | * gxxint.texi (Access Control): New node. | |
6677 | ||
6678 | * search.c (current_scope): New function; returns whichever of | |
6679 | current_class_type and current_function_decl is the most nested. | |
6680 | (compute_access): Total overhaul to make it clearer and more | |
6681 | correct. Don't use the cache for now; in the only situation where | |
6682 | it was used before, it gained nothing. This frees up three of the | |
6683 | DECL_LANG_FLAGs for possible other use! | |
6684 | ||
6685 | * cp-tree.h: #if 0 out DECL_PUBLIC & friends. | |
6686 | ||
6687 | * typeck.c (build_component_ref_1): Don't check DECL_PUBLIC. | |
6688 | ||
6689 | * call.c (build_method_call): Use convert_force to cast `this' -- | |
6690 | rely on the access checking for the method itself. | |
6691 | ||
6692 | * init.c (is_friend): Do the nesting thing, handle types. I am | |
6693 | my own friend. | |
6694 | (is_friend_type): Become a shell for is_friend. | |
6695 | (add_friend): Never stick in ctype. | |
6696 | Why are the friendship functions in init.c, anyway? | |
6697 | ||
6060a796 | 6698 | Wed Jan 26 17:50:00 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
6699 | |
6700 | * cvt.c (build_type_conversion_1): Don't conditionalize call to | |
6701 | pedwarn upon pedantic. | |
6702 | ||
6060a796 | 6703 | Wed Jan 26 17:20:46 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
6704 | |
6705 | * cvt.c (convert_to_reference): Add 8.4.3 checking so that one | |
6706 | gets a warning if one tries to initialize a non-const & from a | |
6707 | non-lvalue. | |
6708 | * cvt.c (convert_to_reference): Use %P format for argument | |
6709 | numbers in warnings. | |
6710 | ||
6060a796 | 6711 | Wed Jan 26 14:35:06 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
6712 | |
6713 | * init.c (build_delete): Follow style in call.c to construct the | |
6714 | virtual call to the desctructor, as that code is right. Fixes a | |
6715 | problem of the compiler saying a pointer conversion is ambiguous. | |
6716 | ||
6717 | Wed Jan 26 11:28:14 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6718 | ||
6719 | * cp-tree.h (VTABLE_NAME_P): Change other occurrence of | |
6720 | VTABLE_NAME_FORMAT to VTABLE_NAME. | |
6721 | ||
6722 | * *: s/visibility/access/g | |
6723 | ||
6724 | Tue Jan 25 18:39:12 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6725 | ||
6726 | * typeck.c (build_modify_expr): Don't smash references if INIT_EXPR. | |
6727 | ||
6060a796 | 6728 | Tue Jan 25 13:54:29 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
6729 | |
6730 | * init.c (build_delete): Back out Jan 17th & 18th pacthes, as | |
6731 | they break libg++. | |
6732 | ||
6733 | Tue Jan 25 13:11:45 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6734 | ||
6735 | * decl.c (duplicate_decls): Fix pointer arithmetic. | |
6736 | ||
6737 | Mon Jan 24 15:50:06 1994 Chip Salzenberg (chip@fin.uucp) | |
6738 | ||
6739 | [ cp-* changes propagated from c-* changes in 940114 snapshot ] | |
6740 | * cp-parse.y (maybe_attribute): Allow multiple __attribute__ | |
6741 | clauses on a declaration. | |
6742 | ||
6743 | Mon Jan 24 17:06:23 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6744 | ||
6745 | * class.c (finish_struct): Do synthesize methods for anon | |
6746 | structs, just not unions. | |
6747 | ||
6748 | Mon Jan 24 13:50:13 1994 Kung Hsu (kung@mexican.cygnus.com) | |
6749 | ||
6750 | * decl.c (xref_tag): handle anonymous nested type. | |
6751 | * decl.c (globalize_nested_type): add no globalize bit check. | |
6752 | * spew.c (hack_more_ids) : templated nested decl not push top | |
6753 | level. | |
6754 | ||
6755 | * parse.y : get rid of 'goto do_components'. It is much better | |
6756 | for debugging. | |
6757 | ||
6758 | * decl.c (is_anon_name): get rid of the function and use the | |
6759 | macro ANON_AGGRNAME_P. | |
6760 | * pt.c : ditto. | |
6761 | ||
6762 | Fri Jan 21 14:06:02 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6763 | ||
6764 | * class.c (finish_struct): Don't synthesize any methods for | |
6765 | anonymous structs/unions. | |
6766 | ||
6767 | * typeck.c (build_modify_expr): Don't treat pmf's as class objects. | |
6768 | ||
6769 | Thu Jan 20 18:56:46 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6770 | ||
6771 | * method.c (build_opfncall): Call build_indirect_ref on | |
6772 | synthesized instance for operator delete. | |
6773 | ||
6774 | * pt.c (type_unification): Don't abort if called with a list of | |
6775 | types in ARGS. | |
6776 | ||
6777 | * class.c (instantiate_type): Deal with function templates. | |
6778 | ||
6779 | Thu Jan 20 16:55:35 1994 Jim Wilson (wilson@sphagnum.cygnus.com) | |
6780 | ||
6781 | * Makefile.in (CC): Default to cc not gcc. | |
6782 | ||
6783 | Thu Jan 20 13:47:54 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6784 | ||
6785 | * typeck.c (build_modify_expr): Call constructor if appropriate. | |
6786 | ||
6787 | * decl.c (push_to_top_level): Clear out class-level bindings cache. | |
6788 | ||
6789 | Wed Jan 19 13:51:22 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6790 | ||
6791 | * call.c (resolve_scope_to_name): Work recursively (previously only | |
6792 | looked down one level). | |
6793 | ||
6794 | * lex.c (do_pending_inlines): If we're still dealing with the last | |
6795 | batch of inlines, don't start working on a new one. | |
6796 | ||
6797 | * Makefile.in (stamp-parse): Update conflict count. | |
6798 | (TAGS): Fix. | |
6799 | ||
6800 | * parse.y (explicit_instantiation): New rule; implements | |
6801 | 'template A<int>' syntax (though not 'template foo(int)' yet). | |
6802 | (structsp): Add explicit_instantiation. | |
6803 | ||
6804 | Tue Jan 18 13:53:05 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6805 | ||
6806 | * class.c (finish_struct, etc.): Simplify decision to synthesize | |
6807 | a destructor. | |
6808 | ||
6809 | * call.c, class.c, cp-tree.h, decl.c, init.c, | |
6810 | ptree.c, search.c, typeck.c, typeck2.c: Nuke | |
6811 | TYPE_NEEDS_CONSTRUCTOR (change all calls to TYPE_NEEDS_CONSTRUCTING). | |
6812 | * init.c (expand_aggr_init_1): Don't try non-constructor methods | |
6813 | of initializing objects. | |
6814 | (build_new): Don't try other methods if the constructor lookup fails. | |
6815 | ||
6816 | * class.c (finish_base_struct): Set cant_have_default_ctor and | |
6817 | cant_synth_copy_ctor properly. | |
6818 | (finish_struct): Ditto. | |
6819 | ||
6820 | Mon Jan 17 13:58:18 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6821 | ||
6822 | * typeck.c (build_modify_expr_1): #if 0 out again. | |
6823 | (build_modify_expr): #if 0 out memberwise init code again. | |
6824 | ||
6825 | * lex.c (default_copy_constructor_body): Be const-correct. | |
6826 | (default_assign_ref_body): Ditto. | |
6827 | ||
6828 | * init.c (perform_member_init): Use TYPE_HAS_CONSTRUCTOR to decide | |
6829 | whether or not to use it, rather than TYPE_NEEDS_CONSTRUCTING. | |
6830 | (expand_aggr_init): Disable silent conversion from initializer list | |
6831 | to list of args for a constructor. | |
6832 | ||
6833 | * class.c (base_info): Lose needs_default_ctor. | |
6834 | (finish_base_struct): Ditto. | |
6835 | (finish_struct): Ditto. | |
6836 | ||
6837 | * decl.c (init_decl_processing): Don't turn off flag_default_inline | |
6838 | just because flag_no_inline is on. | |
6839 | (finish_decl): Use TYPE_HAS_CONSTRUCTOR to decide to use | |
6840 | constructor. | |
6841 | ||
6842 | * class.c (finish_struct): Synthesize default ctor whenever | |
6843 | allowed. | |
6844 | ||
6845 | * Makefile.in (TAGS): Don't try to run etags on cp-parse.y. | |
6846 | ||
6060a796 | 6847 | Sat Jan 15 18:34:33 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
6848 | |
6849 | * Makefile.in, configure: Handle the C++ front-end in a | |
6850 | subdirectory. | |
6851 | * cp-*: Move C++ front-end to cp/*. | |
6852 | ||
6853 | Fri Jan 14 14:09:37 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6854 | ||
6855 | * cp-typeck.c (build_function_call_real): Modify to match other | |
6856 | instances of taking the address of the function. | |
6857 | ||
6858 | * cp-class.c (finish_struct): Set TYPE_HAS_REAL_CONSTRUCTOR to 1 if | |
6859 | there are non-synthesized constructors. | |
6860 | Only set TYPE_NEEDS_CONSTRUCTOR if TYPE_HAS_REAL_CONSTRUCTOR. | |
6861 | Always generate copy constructor if possible. | |
6862 | ||
6863 | * cp-tree.h (lang_type): Add has_real_constructor bitfield. | |
6864 | (TYPE_HAS_REAL_CONSTRUCTOR): Define. | |
6865 | ||
6866 | * cp-lex.c (default_copy_constructor_body): Use init syntax | |
6867 | for all bases. | |
6868 | ||
6869 | * cp-type2.c (store_init_value): Only give error for initializer list | |
6870 | if TYPE_HAS_REAL_CONSTRUCTOR. | |
6871 | ||
6872 | Thu Jan 13 15:38:29 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6873 | ||
6874 | * cp-tree.h (DECL_SYNTHESIZED): Add defn. | |
6875 | (lang_decl): Add synthesized bitfield to decl_flags. | |
6876 | ||
6877 | * cp-lex.c (cons_up_default_function): Use DECL_SYNTHESIZED to mark | |
6878 | artificial methods, rather than a line # of 0. | |
6879 | ||
6880 | Fri Jan 14 18:25:29 1994 Kung Hsu (kung@mexican.cygnus.com) | |
6881 | ||
6882 | * cp-decl (xref_tag): fix a bug in conflict type. | |
6883 | * cp-parse.y : add SCOPED_NAME for uninstantiated template nested | |
6884 | type reference. | |
6885 | * cp-spew.c (yylex) : generated SCOPED_NAME token. | |
6886 | * cp-lex.c (yyprint): handle SCOPED_NAME. | |
6887 | ||
6060a796 | 6888 | Fri Jan 14 17:00:29 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
6889 | |
6890 | * cp-decl.c (pushdecl): Revert patch from Jan 11 19:33:03, as it is | |
6891 | not right. | |
6892 | ||
6893 | Thu Jan 13 14:00:35 1994 Kung Hsu (kung@mexican.cygnus.com) | |
6894 | ||
6895 | * cp-decl2.c (grok_x_components): fix a bug that enum type does not | |
6896 | have type_flags. | |
6897 | ||
6060a796 | 6898 | Thu Jan 13 11:39:34 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
6899 | |
6900 | Ensure that all vtable pointers are initialized with all the right | |
6901 | values. | |
6902 | ||
6903 | * cp-class.c (is_normal): Changed to reflect new meaning of | |
6904 | CLASSTYPE_VFIELD_PARENT. | |
6905 | * cp-class.c (maybe_fixup_vptrs): Use of | |
6906 | CLASSTYPE_NEEDS_VIRTUAL_REINIT here is misguided. Use | |
6907 | BINFO_MODIFIED instead. | |
6908 | * cp-class.c (finish_struct): Changed to reflect new meaning of | |
6909 | CLASSTYPE_VFIELD_PARENT. | |
6910 | * cp-decl.c (get_binfo_from_vfield): Removed, unneeded now. | |
6911 | * cp-decl.c (finish_function): Use init_vtbl_ptrs, instead of open | |
6912 | coding it here. | |
6913 | * cp-init.c (init_vfields): Changed name to init_vtbl_ptrs, and | |
6914 | re-implement. | |
6915 | * cp-init.c (emit_base_init): Use new name init_vtbl_ptrs. | |
6916 | * cp-tree.h (vfield_parent): Changed to integer. | |
6917 | * cp-tree.h (CLASSTYPE_VFIELD_PARENT): Changed docs to reflect new | |
6918 | meaning. | |
6919 | * cp-tree.h (init_vtbl_ptrs): Added init_vtbl_ptrs. | |
6920 | ||
6921 | Wed Jan 12 18:24:16 1994 Kung Hsu (kung@mexican.cygnus.com) | |
6922 | ||
6923 | * cp-decl.c (xref_tag): re-implement globalize nested type. | |
6924 | * cp-decl2.c (grok_x_components): ditto. | |
6925 | * cp-parse.y: ditto. | |
6926 | * cp-tree.h (lang_type): add no_globalize bit in type_flags. | |
6927 | ||
6928 | Wed Jan 12 14:08:09 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6929 | ||
6930 | * cp-decl.c (grokdeclarator): Don't set TREE_PUBLIC on friend | |
6931 | decls with a definition attached. | |
6932 | ||
6933 | * cp-typeck.c (build_modify_expr): Undo previous change in the case | |
6934 | of INIT_EXPRs. | |
6935 | ||
6936 | Tue Jan 11 19:33:03 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6937 | ||
6938 | * cp-typeck.c (build_modify_expr): Replace code for generating | |
6939 | assignment semantics for classes with an error. | |
6940 | (build_modify_expr_1): #if 0 out. | |
6941 | ||
6942 | * cp-decl.c (pushdecl): Patch bogus design of pushdecl | |
6943 | behavior for overloaded functions (it doesn't push anything). | |
6944 | ||
6945 | * cp-class.c (finish_struct): When generating default op=, | |
6946 | set TYPE_HAS_ASSIGNMENT. | |
6947 | ||
6060a796 | 6948 | Mon Jan 10 18:48:06 1994 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
6949 | |
6950 | * cp-cvt.c (convert): Make {double, clashing enum} -> enum | |
6951 | invalid. | |
6952 | * cp-typeck.c (convert_for_assignment): Simplify. | |
6953 | * cp-decl2.c (warn_enum_clash): Removed. | |
6954 | * invoke.texi (-Wenum-clash): Removed. | |
6955 | * toplev.c (-Wenum-clash): Removed. | |
6956 | ||
6957 | Mon Jan 10 17:48:37 1994 Kung Hsu (kung@mexican.cygnus.com) | |
6958 | ||
6959 | * cp-decl.c (finish_decl): fix incorrect popclass call. | |
6960 | ||
6961 | * cp-decl.c (is_anon_name): new function, check whether the name | |
6962 | is anonymous name generated by compiler. | |
6963 | * cp-decl.c (grokdeclarator): allow nested SCOPE_REF | |
6964 | * cp-spew.c (hack_more_ids): handle nested type in template. | |
6965 | * cp-parse.y : handle nested type reference in uninstantiated | |
6966 | template. | |
6967 | * cp-call.c (build_method_call): handle uninstantiated template | |
6968 | case. | |
6969 | * cp-pt.c (search_nested_type_in_tmpl): new function, search nested | |
6970 | type in template. | |
6971 | * cp-pt.c (lookup_nested_type_by_name): new function, lookup nested | |
6972 | type by name. | |
6973 | * cp-pt.c (tsubst): handle nested type search by name. | |
6974 | ||
6975 | Mon Jan 10 14:32:18 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6976 | ||
6977 | * cp-init.c (build_member_call): Propagate qualifiers to new type. | |
6978 | ||
6979 | * cp-call.c (build_method_call): Count functions the new way. | |
6980 | ||
6981 | Fri Jan 7 19:03:26 1994 Jason Merrill (jason@deneb.cygnus.com) | |
6982 | ||
6983 | * cp-decl.c (pushtag): Set DECL_ASSEMBLER_NAME for nested classes, | |
6984 | too. | |
6985 | ||
6986 | Tue Jan 4 16:45:51 1994 Kung Hsu (kung@cirdan.cygnus.com) | |
6987 | ||
6988 | * cp-parse.y: change to handle whether to globalize nested class. | |
6989 | * cp-decl.c(xref_tag, maybe_globalize_type): Ditto. | |
6990 | ||
6991 | Mon Jan 3 22:22:32 1994 Gerald Baumgartner (gb@cygnus.com) | |
6992 | ||
6993 | * Makefile.in cp-call.c cp-class.c cp-cvt.c cp-decl.c cp-decl2.c | |
6994 | cp-error.c cp-init.c cp-lex.c cp-lex.h cp-method.c cp-parse.y | |
6995 | cp-spew.c cp-tree.c cp-tree.h cp-type2.c cp-typeck.c cp-xref.c | |
6996 | gplus.gperf toplev.c: Incorporated C++ signature extension. | |
6997 | * cp-sig.c: New file, contains most of signature processing. | |
6998 | * cp-hash.h: Regenerated from gplus.gperf. | |
6999 | ||
7000 | * gcc.1 g++.1: Added explanation for the `-fhandle-signatures' | |
7001 | and `-fno-handle-signatures' command line flags. | |
7002 | ||
7003 | * gcc.texi: Changed the last-modification date. | |
7004 | * invoke.texi: Added `-fhandle-signatures' in the list of | |
7005 | C++ language options. Added explanation for this option. | |
7006 | ||
6060a796 | 7007 | Tue Dec 28 21:10:03 1993 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
7008 | |
7009 | * cp-init.c (expand_vec_init): Remove comptypes test, as it is too | |
7010 | harsh here. | |
7011 | ||
6060a796 | 7012 | Tue Dec 28 13:42:22 1993 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
7013 | |
7014 | * cp-pt.c (do_pending_expansions): Decide to expand a template | |
7015 | member function, based upon it's class type, not the class type of | |
7016 | the first place it was declared. | |
7017 | ||
6060a796 | 7018 | Tue Dec 28 05:42:31 1993 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
7019 | |
7020 | * cp-class.c (is_normal): New routine, use to determine when the | |
7021 | given binfo is the normal one. (The one that should have the simple | |
7022 | vtable name.) | |
7023 | * cp-class.c (modify_other_vtable_entries): Use DECL_ASSEMBLER_NAME | |
7024 | to check if two fndecls are `the same'. Sometimes this routine can | |
7025 | modify the main vtable, and normal should be 1, in that case, so use | |
7026 | is_normal() to determine if this is the main vtable for the class. | |
7027 | Don't recurse down virtual bases, as they are shared, and we take | |
7028 | care of them elsewhere. | |
7029 | * cp-class.c (modify_vtable_entries): If we have already updated the | |
7030 | vtable with the new virtual, don't do it again. | |
7031 | * cp-class.c (finish_struct): Set CLASSTYPE_VFIELD_PARENT as | |
7032 | appropriate. Do virtual function overriding in virtual bases, after | |
7033 | normal overriding, so that the base function list in DECL_VINDEX is | |
7034 | not overridden, before we have a chance to run through the list. | |
7035 | Use DECL_ASSEMBLER_NAME to check if two fndecls are `the same'. | |
7036 | Make sure we pass the right address into modify_vtable_entries. | |
7037 | * cp-tree.h (CLASSTYPE_VFIELD_PARENT): New field to indicate which | |
7038 | binfo is the one that has the vtable that we based our vtable on. | |
7039 | ||
7040 | Fri Dec 24 09:40:52 1993 Michael Tiemann (tiemann@blues.cygnus.com) | |
7041 | ||
7042 | * cp-typeck.c (c_expand_start_case): Use default_conversion to | |
7043 | convert expression from reference type if necessary. | |
7044 | ||
7045 | Wed Dec 22 17:58:43 1993 Jason Merrill (jason@deneb.cygnus.com) | |
7046 | ||
7047 | * cp-typeck.c (build_unary_op): Make sure that it's a TREE_LIST before | |
7048 | trying to read its TREE_VALUE. | |
7049 | ||
7050 | * cp-class.c (finish_struct_methods): Clear DECL_IN_AGGR_P here. | |
7051 | (finish_struct): Instead of here. | |
7052 | ||
7053 | Tue Dec 21 14:34:25 1993 Brendan Kehoe (brendan@lisa.cygnus.com) | |
7054 | ||
7055 | * cp-tree.c (list_hash_lookup_or_cons): Make sure the type doesn't | |
7056 | have TYPE_PTRMEMFUNC_P set before we try to build its | |
7057 | CLASSTYPE_ID_AS_LIST. | |
7058 | (get_decl_list): Likewise, when trying to read it. | |
7059 | ||
7060 | * cp-tree.h (VTABLE_NAME): No def with NO_{DOLLAR,DOT} defined. | |
7061 | (VTABLE_NAME_P): Use it instead of VTABLE_NAME_FORMAT. | |
7062 | ||
7063 | Mon Dec 20 13:35:03 1993 Brendan Kehoe (brendan@lisa.cygnus.com) | |
7064 | ||
7065 | * cp-typeck.c (rationalize_conditional_expr): New function. | |
7066 | (unary_complex_lvalue): Use it. | |
7067 | (build_modify_expr): Use it, since trying to do an ADDR_EXPR of it | |
7068 | with build_unary_op won't cut it. Don't wrap the COND_EXPR with a | |
7069 | SAVE_EXPR either. | |
7070 | ||
7071 | * cp-decl2.c (explicit_warn_return_type): Deleted variable. | |
7072 | (lang_decode_option): Set warn_return_type, not explicit_*, for | |
7073 | -Wreturn-type and -Wall. This is what rest_of_compilation uses to | |
7074 | decide if it should go into jump_optimize or not. | |
7075 | * cp-tree.h (explicit_warn_return_type): Deleted. | |
7076 | * cp-decl.c (grokdeclarator): Use warn_return_type, not explicit_*. | |
7077 | (finish_function): Also complain about no return in a non-void fn if | |
7078 | we're being pedantic (don't rely on use of -Wreturn-type). | |
7079 | ||
7080 | Fri Dec 17 15:45:46 1993 Brendan Kehoe (brendan@lisa.cygnus.com) | |
7081 | ||
7082 | * cp-decl.c (grokdeclarator): Forbid declaration of a function as | |
7083 | static if it's being done inside another function. | |
7084 | ||
7085 | * cp-search.c (compute_visibility): Check for friendship both ways. | |
7086 | ||
7087 | Fri Dec 17 14:28:25 1993 Jason Merrill (jason@deneb.cygnus.com) | |
7088 | ||
7089 | * cp-cvt.c (build_default_binary_type_conversion): Make error | |
7090 | messages more helpful. | |
7091 | ||
7092 | * cp-error.c (op_as_string): New function, returns "operator ==" | |
7093 | given EQ_EXPR or suchlike. | |
7094 | ||
7095 | Fri Dec 17 13:28:11 1993 Brendan Kehoe (brendan@lisa.cygnus.com) | |
7096 | ||
7097 | * cp-call.c (print_n_candidates): New function. | |
7098 | (build_overload_call_real): Use it when we complain about a call | |
7099 | being ambiguous. | |
7100 | ||
7101 | Fri Dec 17 12:41:17 1993 Jason Merrill (jason@deneb.cygnus.com) | |
7102 | ||
7103 | * cp-call.c (build_method_call): Fix checking for static call | |
7104 | context. | |
7105 | ||
7106 | * cp-method.c (build_opfncall): Call build_indirect_ref on argument | |
7107 | to operator new. | |
7108 | ||
7109 | * cp-init.c (build_new): Don't mess with rval when building | |
7110 | indirect ref. | |
7111 | ||
7112 | Thu Dec 16 16:48:05 1993 Kung Hsu (kung@cirdan.cygnus.com) | |
7113 | ||
7114 | * cp-lex.c (default_assign_ref_body): add check when TYPE_NESTED_ | |
7115 | NAME(type) may not be exist. It's not a problem for old compiler. | |
7116 | ||
7117 | Thu Dec 16 14:46:06 1993 Brendan Kehoe (brendan@lisa.cygnus.com) | |
7118 | ||
7119 | * cp-tree.h (CLASSTYPE_ALTERS_VISIBILITIES_P): Delete macro, it's | |
7120 | never used for anything. | |
7121 | (struct lang_type, member type_flags): Delete field | |
7122 | `alters_visibility', and up `dummy' by 1. | |
7123 | * cp-class.c (finish_base_struct): Delete code that copies the | |
7124 | setting of CLASSTYPE_ALTERS_VISIBILITIES_P. | |
7125 | (finish_struct): Delete code that sets it. | |
7126 | ||
7127 | Thu Dec 16 14:44:39 1993 Jason Merrill (jason@deneb.cygnus.com) | |
7128 | ||
7129 | * cp-decl.c, cp-init.c, cp-typeck.c: Fix arguments to | |
7130 | build_method_call that I messed up before. | |
7131 | ||
7132 | * cp-search.c (get_base_distance): If protect > 1, allow immediate | |
7133 | private base. | |
7134 | ||
7135 | * cp-class.c (finish_base_struct): Set cant_synth_* correctly. | |
7136 | (finish_struct): Ditto. Well, nigh-correctly; it won't deal | |
7137 | properly with the case where a class contains an object of an | |
7138 | ambiguous base class which has a protected op=. Should be fixed | |
7139 | when the access control code gets overhauled. | |
7140 | (finish_struct_methods): Set TYPE_HAS_NONPUBLIC_* correctly. | |
7141 | ||
7142 | Thu Dec 16 12:17:06 1993 Brendan Kehoe (brendan@lisa.cygnus.com) | |
7143 | ||
7144 | * cp-lex.c (real_yylex): Turn the code back on that deals with | |
7145 | __FUNCTION__ and __PRETTY_FUNCTION__. Don't use lookup_name, to | |
7146 | avoid the ambiguity problems that led to it being turned off in the | |
7147 | first place. | |
7148 | ||
7149 | * cp-method.c (hack_identifier): Also check for a TYPE_PTRMEMFUNC_P | |
7150 | to see if something is a method. | |
7151 | ||
6060a796 | 7152 | Wed Dec 15 18:35:58 1993 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
7153 | |
7154 | * cp-typeck.c (build_modify_expr): Avoid error messages on small | |
7155 | enum bit fields. | |
7156 | * cp-typeck.c (convert_for_assignment): Add missing argument to | |
7157 | cp_warning and cp_pedwarn calls. | |
7158 | ||
7159 | Wed Dec 15 18:25:32 1993 Jason Merrill (jason@deneb.cygnus.com) | |
7160 | ||
7161 | * cp-parse.y (member_init): ANSI C++ doesn't forbid old-style base | |
7162 | initializers; it's just anachronistic. | |
7163 | ||
7164 | * cp-decl.c (finish_decl): Don't require external-linkage arrays | |
7165 | to have a complete type at declaration time when pedantic. | |
7166 | ||
7167 | Tue Dec 14 11:37:23 1993 Jason Merrill (jason@deneb.cygnus.com) | |
7168 | ||
7169 | * cp-decl.c (pushdecl): Don't set DECL_CONTEXT if it's already set. | |
7170 | ||
7171 | * cp-call.c (build_method_call): Don't dereference pointer given | |
7172 | as instance. | |
7173 | ||
7174 | * cp-decl.c (finish_function): Don't pass pointer to | |
7175 | build_method_call. | |
7176 | (finish_function): Ditto. | |
7177 | ||
7178 | * cp-typeck.c (build_x_function_call): Ditto. | |
7179 | ||
7180 | * cp-method.c (build_component_type_expr): Ditto. | |
7181 | ||
7182 | * cp-init.c (build_member_call): Ditto. | |
7183 | (build_new): Ditto. | |
7184 | ||
7185 | Mon Dec 13 18:04:33 1993 Kung Hsu (kung@cirdan.cygnus.com) | |
7186 | ||
7187 | * cp-decl.c (xref_tag): fix regression created by changes made | |
7188 | in Dec. 7 1993. | |
7189 | * cp-decl.c (xref_defn_tag): fix parallel nested class problem. | |
7190 | ||
7191 | Fri Dec 10 12:40:25 1993 Brendan Kehoe (brendan@lisa.cygnus.com) | |
7192 | ||
7193 | * cp-call.c (compute_conversion_costs_ansi) [DEBUG_MATCHING]: Print | |
7194 | out the final evaluation of the function, so we can see if ELLIPSIS, | |
7195 | USER, and EVIL were set at the end. | |
7196 | ||
7197 | * cp-call.c (convert_harshness_ansi): When the parm isn't an lvalue, | |
7198 | only go for setting TRIVIAL_CODE if we are dealing with types that | |
7199 | are compatible. | |
7200 | ||
6060a796 | 7201 | Thu Dec 9 18:27:22 1993 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
7202 | |
7203 | * cp-decl.c (flag_huge_objects): New flag to allow large objects. | |
7204 | * toplev.c (lang_options): Ditto. | |
7205 | * cp-decl2.c (flag_huge_objects, lang_f_options): Ditto. | |
7206 | * cp-decl.c (delta_type_node): New type for delta entries. | |
7207 | * cp-tree.h (delta_type_node): Ditto. | |
7208 | * cp-decl.c (init_decl_processing): Setup delta_type_node. | |
7209 | * cp-decl.c (init_decl_processing, build_ptrmemfunc_type): Use | |
7210 | delta_type_node instead of short_integer_type_node. | |
7211 | * cp-class.c (build_vtable_entry): Ditto. | |
7212 | ||
7213 | Thu Dec 9 16:19:05 1993 Brendan Kehoe (brendan@lisa.cygnus.com) | |
7214 | ||
7215 | * cp-tree.h (OPERATOR_TYPENAME_P): Define outside of | |
7216 | NO_{DOLLAR,DOT} macro checks, so it always gets defined. | |
7217 | (VTABLE_NAME_P): Define for NO_DOT && NO_DOLLAR_IN_LABEL. | |
7218 | ||
6060a796 | 7219 | Wed Dec 8 17:38:06 1993 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
7220 | |
7221 | * cp-decl.c (finish_decl): Make sure things that can go into | |
7222 | "common", do go into common, if -fcommon is given. | |
7223 | ||
7224 | Wed Dec 8 13:01:54 1993 Brendan Kehoe (brendan@lisa.cygnus.com) | |
7225 | ||
63718c49 GB |
7226 | * cp-call.c (print_harshness) [DEBUG_MATCHING]: New function. |
7227 | (compute_conversion_costs_ansi) [DEBUG_MATCHING]: Print out | |
7228 | argument matching diagnostics to make instantly clear what the | |
7229 | compiler is doing. | |
7177d104 MS |
7230 | |
7231 | * cp-call.c (convert_harshness_ansi): If the parm isn't an lvalue, | |
7232 | then check to see if the penalty was increased due to | |
7233 | signed/unsigned mismatch, and use a TRIVIAL_CODE if it wasn't. | |
7234 | ||
7235 | Tue Dec 7 18:29:14 1993 Kung Hsu (kung@cirdan.cygnus.com) | |
7236 | ||
7237 | * cp-decl.c (xref_tag, pushtag): Fix nested class search/resolution | |
7238 | problem. | |
7239 | ||
7240 | Tue Dec 7 16:09:34 1993 Jason Merrill (jason@deneb.cygnus.com) | |
7241 | ||
7242 | * cp-class.c (finish_struct): Before synthesizing methods, if no | |
7243 | methods have yet been declared then set nonprivate_method. Don't | |
7244 | set non_private method after synthesizing a method. | |
7245 | ||
7246 | * cp-lex.c (extract_interface_info): If flag_alt_external_templates | |
7247 | is set, tie emitted code to the location of template instantiation, | |
7248 | rather than definition. | |
7249 | ||
7250 | * cp-tree.h: Declare flag_alt_external_templates. | |
7251 | ||
7252 | * cp-decl2.c (lang_decode_option): Support -falt-external-templates. | |
7253 | ||
7254 | * toplev.c (lang_options): Ditto. | |
7255 | ||
7256 | Mon Oct 4 12:50:02 1993 Chip Salzenberg (chip@fin.uucp) | |
7257 | ||
63718c49 GB |
7258 | [changes propagated from 930810 snapshot] |
7259 | * cp-decl.c (init_decl_processing): Make long long available for use | |
7260 | as SIZE_TYPE and PTRDIFF_TYPE. | |
7261 | (finish_decl): Allow file-scope static incomplete array. | |
7262 | (grokdeclarator): Don't pass on const and volatile fron function | |
7263 | value type to function type. | |
7264 | Warn here for volatile fn returning non-void type. | |
7265 | * cp-parse.y (attrib): Accept attributes `volatile' with alias | |
7266 | `noreturn', and `const'. | |
7267 | * cp-typeck.c (default_conversion): Don't lose const and volatile. | |
7268 | (build_binary_op_nodefault): Generate pedantic warning for comparison | |
7269 | of complete pointer type with incomplete pointer type. | |
7270 | (build_c_cast): Be careful that null pointer constant be INTEGER_CST. | |
7177d104 MS |
7271 | |
7272 | Tue Dec 7 10:46:48 1993 Jason Merrill (jason@deneb.cygnus.com) | |
7273 | ||
7274 | * cp-init.c (expand_vec_init): When creating a temporary for copying | |
7275 | arrays, use the type of the source, not the target. | |
7276 | ||
7277 | * cp-cvt.c (convert): Pass an argument for errtype to | |
7278 | convert_to_reference. | |
7279 | ||
7280 | * cp-error.c (dump_expr, COMPONENT_REF & CALL_EXPR): Deal with | |
7281 | methods, -> and `this'. | |
7282 | ||
7283 | Mon Dec 6 17:12:33 1993 Jason Merrill (jason@deneb.cygnus.com) | |
7284 | ||
7285 | * cp-error.c (parm_as_string): New function; returns `this' or arg | |
7286 | number. Corresponds to %P. | |
7287 | (dump_expr): Deal with method calls. | |
7288 | ||
7289 | * cp-cvt.c (convert_to_reference): Stop using warn_for_assignment. | |
7290 | * cp-typeck.c (convert_for_assignment): Ditto. | |
7291 | (warn_for_assignment): Lose. | |
7292 | ||
7293 | Mon Dec 6 11:33:35 1993 Brendan Kehoe (brendan@lisa.cygnus.com) | |
7294 | ||
7295 | * cp-call.c (ideal_candidate_ansi): Delete code that was never | |
7296 | doing anything useful. Instead, sort once, and DO NOT wipe | |
7297 | out any codes with EVIL_CODE, since that's what we use as a | |
7298 | marker for the end of the list of candidates. | |
7299 | ||
7300 | * cp-cvt.c (convert_to_aggr): Make sure to always set H_LEN. | |
7301 | ||
7302 | Mon Dec 6 12:49:17 1993 Jason Merrill (jason@deneb.cygnus.com) | |
7303 | ||
7304 | * cp-init.c (get_aggr_from_typedef): New function, like | |
7305 | is_aggr_typedef but returns the _TYPE. | |
7306 | ||
7307 | * cp-call.c, cp-init.c, cp-method.c: Eradicate err_name. | |
7308 | ||
7309 | Sun Dec 5 18:12:48 1993 Brendan Kehoe (brendan@lisa.cygnus.com) | |
7310 | ||
7311 | * cp-lex.c (readescape): Pedwarn when a hex escape is out of range. | |
7312 | ||
7313 | Thu Nov 25 23:50:19 1993 Chip Salzenberg (chip@fin.uucp) | |
7314 | ||
7315 | Delay language context change until beginning of next decl. | |
7316 | ||
7317 | * cp-lex.h (c_header_level): Removed. | |
7318 | (pending_lang_change): Declared. | |
7319 | * cp-lex.c (c_header_level): Renamed from in_c_header, made static. | |
7320 | (pending_lang_change): Defined. | |
7321 | (check_newline): Rework code that recognizes line number and | |
7322 | filename changes. Instead of pushing and popping lang context, | |
7323 | increment and decrement pending_lang_change. | |
7324 | (do_pending_lang_change): Push and pop lang context according | |
7325 | to value of pending_lang_change. | |
7326 | * cp-parse.y (extdefs): Use lang_extdef instead of extdef. | |
7327 | (extdef): Same as extdef, but call do_pending_lang_change() first. | |
7328 | ||
7329 | Mon Nov 15 15:39:15 1993 Chip Salzenberg (chip@fin.uucp) | |
7330 | ||
7331 | * cp-typeck.c (build_binary_op_nodefault): Warn for ordered | |
7332 | compare of ptr with 0 only if pedantic in both cases. | |
7333 | ||
7334 | Thu Nov 25 13:31:37 1993 Chip Salzenberg (chip@fin.uucp) | |
7335 | ||
7336 | Reinstate the below patch, which got lost in the Cygnus merge: | |
7337 | Tue Nov 23 13:59:24 1993 Hallvard B Furuseth (hbf@durin.uio.no) | |
7338 | * cp-parse.y (maybe_type_qual): Don't fail to set $$. | |
7339 | ||
7340 | Wed Nov 17 19:03:30 1993 Chip Salzenberg (chip@fin.uucp) | |
7341 | ||
7342 | * cp-parse.y (attrib): Allow "ident(ident)" like the C front end. | |
7343 | ||
7344 | Fri Oct 22 20:43:37 1993 Paul Eggert (eggert@twinsun.com) | |
7345 | ||
7346 | * cp-lex.c (real_yylex): Diagnose floating point constants | |
7347 | that are too large. | |
7348 | ||
7349 | Wed Nov 17 19:10:37 1993 Chip Salzenberg (chip@fin.uucp) | |
7350 | ||
7351 | * cp-type2.c (build_functional_cast): ARM page 16: When a class | |
7352 | and an object, function or enumerator are declared in the same | |
7353 | scope with the same name, the class name is hidden. | |
7354 | ||
7355 | Wed Nov 17 19:07:18 1993 Chip Salzenberg (chip@fin.uucp) | |
7356 | ||
7357 | * cp-call.c (convert_harshness_ansi): Distinguish float, double, | |
7358 | and long double from each other when overloading. | |
7359 | (compute_conversion_costs_{ansi,old}, build_method_call, | |
7360 | build_overlay_call_real, convert_to_aggr): Always set and | |
7361 | always use H_LEN member of candidate structure. | |
7362 | ||
7363 | Mon Oct 11 23:10:53 1993 Chip Salzenberg (chip@fin.uucp) | |
7364 | ||
7365 | * cp-decl.c (duplicate_decls): Note redeclarations of library | |
7366 | functions, and generate distinct warnings for them. | |
7367 | ||
7368 | Mon Oct 4 12:26:49 1993 Chip Salzenberg (chip@fin.uucp) | |
7369 | ||
7370 | Support format warnings in G++. | |
7371 | ||
7372 | * cp-tree.h: Protect against multiple inclusion. | |
7373 | Declare all public functions in c-common.c (copy from c-tree.h). | |
7374 | (STDIO_PROTO): Define. | |
7375 | (warn_format): Declare. | |
7376 | (record_format_info): Remove declaration. | |
7377 | * cp-decl.c (init_decl_processing): Call init_function_format_info. | |
7378 | * cp-decl2.c (lang_decode_option): Make "-Wall" include warn_format. | |
7379 | * cp-typeck.c (build_function_call_real): Call check_function_format. | |
7380 | (record_format_info): Remove -- obsolete stub. | |
7381 | ||
7382 | Sat Jul 24 12:04:29 1993 Chip Salzenberg (chip@fin.uucp) | |
7383 | ||
7384 | * cp-decl.c (duplicate_decls): Don't warn for non-extern var decl | |
7385 | following an extern one (for -Wredundant-decls). | |
7386 | * cp-parse.y (primary): In statement expression case, if compstmt | |
7387 | returns something other than a BLOCK, return it unchanged. | |
7388 | ||
7389 | Thu Dec 2 20:44:58 1993 Chip Salzenberg (chip@fin.uucp) | |
7390 | ||
7391 | * cp-decl.c (warn_extern_redeclared_static): New function made | |
7392 | from code extracted from pushdecl. | |
7393 | (duplicate_decls, pushdecl): Call new function. | |
7394 | (lookup_name_current_level): Allow for IDENTIFIER_GLOBAL_VALUE | |
7395 | to be a TREE_LIST when function is declared in 'extern "C" {}'. | |
7396 | ||
7397 | Fri Dec 3 16:01:10 1993 Jason Merrill (jason@deneb.cygnus.com) | |
7398 | ||
7399 | * cp-class.c (duplicate_tag_error): Use cp_error. | |
7400 | (finish_base_struct): Check for ambiguity with direct base, and don't | |
7401 | generate op= or copy ctor if it exists. | |
7402 | ||
7403 | Fri Dec 3 15:32:34 1993 Kung Hsu (kung@cirdan.cygnus.com) | |
7404 | ||
7405 | * cp-init.c (expand_member_init): when initializer name is null, | |
7406 | don't try to build it now because emit_base_init will handle it. | |
7407 | ||
7408 | Fri Dec 3 12:28:59 1993 Jason Merrill (jason@deneb.cygnus.com) | |
7409 | ||
7410 | * cp-lex.c (init_lex): Initialize input_filename to "<internal>" for | |
7411 | code such as ExceptionHandler::operator=. | |
7412 | ||
7413 | Fri Dec 3 10:32:08 1993 Jason Merrill (jason@deneb.cygnus.com) | |
7414 | ||
7415 | * cp-decl.c (grokdeclarator): Don't try to print out dname when | |
7416 | complaining about arrays of references if decl_context==TYPENAME, | |
7417 | since it will be null. | |
7418 | ||
7419 | * cp-decl2.c: Default to flag_ansi_overloading. | |
7420 | ||
7421 | Thu Dec 2 18:05:56 1993 Kung Hsu (kung@cirdan.cygnus.com) | |
7422 | ||
7423 | * cp-call.c (build_method_call): use binfo from instance if it's | |
7424 | different from binfo (basetype_path) passed from above. | |
7425 | ||
7426 | Thu Dec 2 12:48:36 1993 Brendan Kehoe (brendan@lisa.cygnus.com) | |
7427 | ||
7428 | Wed Nov 17 19:14:29 1993 Chip Salzenberg (chip@fin.uucp) | |
7429 | ||
7430 | cp-error.c (dump_expr): Use unsigned chars to output a | |
7431 | TREE_REAL_CST in hex. | |
7432 | ||
7433 | Thu Dec 2 11:05:48 1993 Jason Merrill (jason@deneb.cygnus.com) | |
7434 | ||
7435 | * cp-class.c (finish_struct): Fix typo in setting | |
7436 | cant_synth_asn_ref. | |
7437 | ||
7438 | * cp-tree.h (TYPE_NESTED_NAME): New macro, does | |
7439 | DECL_NESTED_TYPENAME (TYPE_NAME (NODE)). | |
7440 | ||
7441 | * cp-lex.c (default_copy_constructor_body): Change | |
7442 | DECL_NAME (TYPE_NAME (btype)) to TYPE_NESTED_NAME (btype). | |
7443 | (default_assign_ref_body): Ditto. | |
7444 | (default_copy_constructor_body): Call operator= explicitly for | |
7445 | base classes that have no constructor. | |
7446 | ||
7447 | Thu Dec 2 10:47:15 1993 Michael Tiemann (tiemann@blues.cygnus.com) | |
7448 | ||
7449 | * cp-call.c (build_method_call): If the instance variable is | |
7450 | converted to error_mark_node when we're trying to convert it to the | |
7451 | base type of a method we're looking up, return error_mark_node. | |
7452 | ||
7453 | Thu Dec 2 10:41:16 1993 Torbjorn Granlund (tege@cygnus.com) | |
7454 | ||
7455 | * cp-typeck.c (build_binary_op_nodefault): In *_DIV_EXPR *_MOD_EXPR | |
7456 | cases, tests for unsigned operands by peeking inside a NOP_EXPR. | |
7457 | ||
7458 | Wed Dec 1 13:33:34 1993 Brendan Kehoe (brendan@lisa.cygnus.com) | |
7459 | ||
7460 | * cp-call.c (compute_conversion_costs_ansi): Use the size of struct | |
7461 | harshness_code, not the size of short, for clearing out the | |
7462 | ansi_harshness. | |
7463 | ||
7464 | * cp-call.c (print_candidates): New function. | |
7465 | (build_method_call): When we had some candidates, but didn't get a | |
7466 | usable match, don't report that we got an error with the first | |
7467 | candidate. Instead, say there were no matches, and list the | |
7468 | candidates with print_candidates. In the second pass, make sure we | |
7469 | clear out ever_seen, so we can accurately count the number of | |
7470 | functions that qualified. | |
7471 | ||
7472 | Wed Dec 1 09:53:59 1993 Torbjorn Granlund (tege@cygnus.com) | |
7473 | ||
7474 | * cp-typeck.c (build_binary_op_nodefault): Shorten for *_MOD_EXPR | |
7475 | only if op1 is known to be != -1. | |
7476 | (build_binary_op_nodefault): Handle *_DIV_EXPR likewise. | |
7477 | ||
7478 | Tue Nov 30 14:07:26 1993 Brendan Kehoe (brendan@lisa.cygnus.com) | |
7479 | ||
7480 | * cp-method.c (hack_identifier): If the field itself is private, and | |
7481 | not from a private base class, say so. | |
7482 | ||
7483 | Mon Nov 29 03:00:56 1993 Jason Merrill (jason@deneb.cygnus.com) | |
7484 | ||
7485 | * cp-decl.c (grokdeclarator): Always warn on initialization of | |
7486 | const member. | |
7487 | ||
7488 | Wed Nov 24 00:49:35 1993 Jason Merrill (jason@deneb.cygnus.com) | |
7489 | ||
7490 | * cp-class.c (finish_struct): Set TYPE_GETS_CONST_* properly. | |
7491 | (finish_base_struct): Set cant_synth_asn_ref properly. | |
7492 | ||
7493 | * cp-lex.c (cons_up_default_function): Add section for operator=. | |
7494 | (default_assign_ref_body): New function, mostly cribbed from | |
7495 | default_copy_constructor_body. | |
7496 | ||
7497 | * cp-class.c (base_info): Add members cant_synth_copy_ctor, | |
7498 | cant_synth_asn_ref, no_const_asn_ref. | |
7499 | (finish_base_struct): Update no_const_asn_ref, note that you should | |
7500 | update cant_synth_*, propagate TYPE_GETS_ASSIGN_REF. | |
7501 | (finish_struct): Add decls for cant_synth_*, no_const_asn_ref, and | |
7502 | initialize them properly. Set no_const_asn_ref properly. Set | |
7503 | cant_synth_* in some of the situations where they should be set. | |
7504 | Propagate TYPE_GETS_ASSIGN_REF. Use cant_synth_copy_ctor. Add call | |
7505 | to cons_up_default_function for operator=. | |
7506 | ||
6060a796 | 7507 | Tue Nov 23 20:24:58 1993 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
7508 | |
7509 | * cp-cvt.c (convert_force): Add code to perform casting of pointer | |
7510 | to member function types. | |
7511 | * cp-typeck.c (build_ptrmemfunc): Add FORCE parameter to indicate | |
7512 | when the conversion should be done, regardless. | |
7513 | * cp-tree.h (build_ptrmemfunc): Ditto. | |
7514 | * cp-type2.c (digest_init): Ditto. | |
7515 | * cp-typeck.c (convert_for_assignment): Ditto. | |
7516 | ||
7517 | Tue Nov 23 18:06:58 1993 Jason Merrill (jason@deneb.cygnus.com) | |
7518 | ||
7519 | * cp-error.c (dump_expr): Do the right thing for variables of | |
7520 | reference type. | |
7521 | ||
7522 | * cp-decl.c (grok_op_properties): Set TYPE_HAS_ASSIGN_REF | |
7523 | and its kin properly. | |
7524 | (xref_tag): Propagate TYPE_GETS_ASSIGN_REF. | |
7525 | ||
6060a796 | 7526 | Tue Nov 23 12:26:13 1993 Mike Stump <mrs@cygnus.com> |
7177d104 MS |
7527 | |
7528 | * cp-method.c (build_opfncall): Don't count pointer to member | |
7529 | functions as aggregates here, as we don't want to look up methods in | |
7530 | them. The compiler would core dump if we did, as they don't have | |
7531 | normal names. | |
7532 | * cp-typeck.c (build_indirect_ref): Improve wording on error | |
7533 | message. | |
7534 | ||
7535 | Mon Nov 22 14:22:23 1993 Jason Merrill (jason@deneb.cygnus.com) | |
7536 | ||
7537 | * cp-decl.c (grok_op_properties): Allow operator?: with pedwarn | |
7538 | (since it's supported in other compiler bits). | |
7539 | ||
7540 | * cp-method.c (report_type_mismatch): Use cp_error; ignore err_name | |
7541 | argument. | |
7542 | ||
7543 | * cp-error.c (dump_function_decl): Don't print return type for | |
7544 | constructors and destructors. | |
7545 | ||
7546 | * cp-cvt.c (cp_convert_to_pointer): Import code from | |
7547 | convert_to_pointer so we can return error_mark_node in the case of an | |
7548 | error, and to allow more meaningful error messages. | |
7549 | (build_type_conversion): Don't go through void* when trying | |
7550 | to convert to a pointer type. | |
7551 | ||
7552 | * cp-decl.c (grokfndecl): Move call to grok_op_properties back | |
7553 | after grokclassfn so that it's dealing with the right decl. | |
63718c49 | 7554 | (grok_op_properties): Don't assert !methodp for op new and op delete. |
7177d104 MS |
7555 | |
7556 | * cp-init.c (build_delete): Don't use TYPE_BUILT_IN (there are now | |
7557 | no uses of it in the compiler). | |
7558 | ||
7559 | * cp-call.c (build_scoped_method_call): Fix for destructors of simple | |
7560 | types. | |
7561 | (build_method_call): Ditto. | |
7562 | ||
7563 | Fri Nov 19 12:59:38 1993 Jason Merrill (jason@deneb.cygnus.com) | |
7564 | ||
7565 | * cp-tree.c (count_functions): Abstraction function. | |
7566 | ||
7567 | * cp-call.c (build_overload_call_real): Deal with new overloading | |
7568 | properly, remove dead code. | |
7569 | ||
7570 | * gcc.c (default_compilers): Generate and use .ii files in the | |
7571 | intermediate stage of compiling C++ source. | |
7572 | ||
7573 | Fri Nov 19 11:26:09 1993 Jim Wilson (wilson@sphagnum.cygnus.com) | |
7574 | ||
7575 | * cp-expr.c (cplus_expand_expr): Make call_target a valid memory | |
7576 | address before using it, so it can be later safely compared. | |
7577 | ||
7578 | Fri Nov 12 15:30:27 1993 Jason Merrill (jason@deneb.cygnus.com) | |
7579 | ||
7580 | * cp-pt.c (tsubst): Deal with new overloading. | |
7581 | ||
7582 | * cp-typeck.c (fntype_p): is the arg function type? | |
7583 | (comp_target_parms): pedwarn on conversion from (anything) to (...). | |
7584 | (build_x_function_call): Deal with new overloading. | |
7585 | ||
7586 | * cp-tree.c (decl_list_length): Deal with new overloading. | |
7587 | (decl_value_member): Like value_member, but for DECL_CHAINs. | |
7588 | ||
7589 | * cp-decl.c (duplicate_decls): Deal with new overloading. | |
7590 | (start_decl): Ditto. | |
7591 | ||
7592 | * cp-class.c (instantiate_type): Deal with new overloading. | |
7593 | ||
7594 | * cp-call.c (convert_harshness_ansi): Deal with new overloading. | |
7595 | (convert_harshness_old): Deal with new overloading. | |
7596 | (build_overload_call_real): Ditto. | |
7597 | ||
7598 | Mon Nov 8 13:50:49 1993 Jason Merrill (jason@deneb.cygnus.com) | |
7599 | ||
7600 | * cp-tree.c (get_unique_fn): New function; returns FUNCTION_DECL | |
7601 | if unambiguous, NULL_TREE otherwise. | |
7602 | (get_first_fn): Returns the first appropriate FUNCTION_DECL. | |
7603 | (is_overloaded_fn): Returns whether or not the passed tree is | |
7604 | a function or list of functions. | |
7605 | ||
7606 | * cp-init.c (init_init_processing): use `get_first_fn' to find | |
7607 | the FUNCTION_DEFN for new and delete. | |
7608 | ||
7609 | * cp-decl.c (push_overloaded_decl): Use new overloading strategy, cut | |
7610 | code size in half (I spit on special cases). | |
7611 | ||
7612 | Tue Sep 7 20:03:33 1993 Jason Merrill (jason@deneb.cygnus.com) | |
7613 | ||
7614 | * cp-decl.c: Allow references and template type parameters as well | |
7615 | ||
7616 | Local Variables: | |
7617 | eval: (auto-fill-mode) | |
7618 | left-margin: 8 | |
7619 | fill-column: 76 | |
7620 | End: |