OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [cp/] [ChangeLog-1996] - Blame information for rev 859

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 283 jeremybenn
Tue Dec 31 20:25:50 1996  Mike Stump  
2
 
3
        * search.c (expand_upcast_fixups): Fix bogus code generation
4
        problem where the generated code uses the wrong index into the
5
        runtime built vtable on the stack.  Old code could clobber random
6
        stack values.
7
 
8
Tue Dec 31 15:16:56 1996  Mike Stump  
9
 
10
        * init.c (perform_member_init): Make sure the partial EH cleanups
11
        live on the function_obstack.
12
 
13
Fri Dec 27 10:31:40 1996  Paul Eggert  
14
 
15
        * Make-lang.in (g++spec.o): Don't use $< with an explicit target;
16
        this isn't portable to some versions of `make' (e.g. Solaris 2.5.1).
17
 
18
Tue Dec 24 10:24:03 1996  Jeffrey A Law  
19
 
20
        * decl.c (grokvardecl): Avoid ANSI style initialization.
21
 
22
Sun Dec 22 04:22:06 1996  Jason Merrill  
23
 
24
        * pt.c (tsubst): Tweak arg types for a FUNCTION_TYPE.
25
 
26
Fri Dec 20 17:09:25 1996  Jason Merrill  
27
 
28
        * pt.c (instantiate_class_template): Call grok_{ctor,op}_properties.
29
 
30
Fri Dec 20 12:17:12 1996  Brendan Kehoe  
31
 
32
        * g++spec.c (lang_specific_driver): Put missing hyphen in front of
33
        arguments we compare against.  Start the count of I at 1, not 0,
34
        since argv[0] is still the command.
35
 
36
Thu Dec 19 11:53:57 1996  Stan Shebs  
37
 
38
        * lang-specs.h: Accept .cp as an C++ extension.
39
 
40
Mon Dec 16 22:43:31 1996  Brendan Kehoe  
41
 
42
        * cp-tree.h (ptr_reasonably_similar): Add decl.
43
 
44
Thu Dec 12 15:00:35 1996  Brendan Kehoe  
45
 
46
        * decl.c (grokvardecl): Change SPECBITS parm to be the SPECBITS_IN
47
        pointer.  New local SPECBITS with the parm's value.
48
        (grokdeclarator): Pass &specbits down.
49
 
50
        * parse.y (expr_no_commas): Make sure $$ is not an error_mark_node
51
        before we try to do C_SET_EXP_ORIGINAL_CODE on it.
52
 
53
        * search.c (envelope_add_decl): Check that the CLASSTYPE_CID of
54
        CONTEXT is not 0 before we try to use TYPE_DERIVES_FROM.
55
 
56
        * decl.c (cplus_expand_expr_stmt): Only expand the expr if EXP is
57
        not an error_mark_node.
58
 
59
Sat Dec  7 17:20:22 1996  Jason Merrill  
60
 
61
        * cp-tree.h (TYPE_MAIN_DECL): Use TYPE_STUB_DECL.
62
        * *.c: Use TYPE_MAIN_DECL instead of TYPE_NAME where appropriate.
63
 
64
Fri Dec  6 14:40:09 1996  Jason Merrill  
65
 
66
        * decl.c (grokdeclarator): When giving an anonymous struct a name,
67
        replace TYPE_NAME instead of TYPE_IDENTIFIER (so TYPE_STUB_DECL is
68
        not affected).
69
 
70
        * typeck2.c (build_m_component_ref): If component is a pointer
71
        to data member, resolve the OFFSET_REF now.
72
 
73
        * call.c (convert_like): Don't go into infinite recursion.
74
 
75
        * pt.c (coerce_template_parms): Use tsubst_expr for non-type args.
76
 
77
        * class.c (finish_struct_1): Set DECL_ARTIFICIAL on the vptr.
78
        * tree.c (layout_basetypes): And on the vbase ptr.
79
 
80
Thu Dec  5 02:11:28 1996  Jason Merrill  
81
 
82
        * decl.c (BOOL_TYPE_SIZE): Define in terms of POINTER_SIZE or
83
        CHAR_TYPE_SIZE so bool is always the same size as another type.
84
 
85
        * decl.c (pushtag): Set DECL_IGNORED_P for DWARF, too.
86
 
87
Tue Dec  3 23:18:37 1996  Jason Merrill  
88
 
89
        * decl2.c (grok_x_components): Remove synthesized methods from
90
        TYPE_METHODS of an anonymous union, complain about member
91
        functions.
92
        * decl.c (shadow_tag): Wipe out memory of synthesized methods in
93
        anonymous unions.
94
        (finish_function): Just clear the DECL_RTL of our arguments.
95
 
96
Fri Nov 29 21:54:17 1996  Jason Merrill  
97
 
98
        * decl2.c (finish_file): Emit DWARF debugging info for static data
99
        members.
100
 
101
        * pt.c (tsubst): If t is a stub decl, return the stub decl for type.
102
 
103
Wed Nov 27 14:47:15 1996  Bob Manson  
104
 
105
        * typeck.c (build_component_ref): Don't die if COMPONENT isn't a
106
        IDENTIFIER_NODE.
107
 
108
Wed Nov 27 16:05:19 1996  Michael Meissner  
109
 
110
        * Make-lang.in (g++-cross$(exeext)): Fix typo.
111
 
112
Wed Nov 27 08:14:00 1996  Brendan Kehoe  
113
 
114
        Make the g++ driver now be a standalone program, rather than one
115
        that tries to run the gcc driver after munging up the options.
116
        * Make-lang.in (g++.c, g++spec.o): New rules.
117
        (g++.o): New rule, based on gcc.o with -DLANG_SPECIFIC_DRIVER
118
        added.
119
        (g++$(exeext)): New rule, based on xgcc rule.
120
        (g++-cross$(exeext)): Now just copies g++$(exeext) over.
121
        * g++spec.c: New file.
122
        * g++.c: Removed file.
123
 
124
Tue Nov 26 19:01:09 1996  Mike Stump  
125
 
126
        * cvt.c (build_up_reference): Arrange for any temporary values
127
        that have been keep in registers until now to be put into memory.
128
 
129
Mon Nov 25 15:16:41 1996  Kaveh R. Ghazi  
130
 
131
        * Make-lang.in (c++.stage[1234]): Depend upon stage[1-4]-start, so
132
        that make -j3 bootstrap works better.
133
 
134
Sun Nov 24 02:09:39 1996  Jason Merrill  
135
 
136
        * decl.c (pushtag): Do pushdecl for anon tags.
137
 
138
Thu Nov 21 16:30:24 1996  Jason Merrill  
139
 
140
        * typeck.c (c_expand_return): Fix logic.
141
        (unary_complex_lvalue): Avoid unused warning on address of INIT_EXPR.
142
 
143
Wed Nov 20 18:47:31 1996  Bob Manson  
144
 
145
        * g++.c (main): Make sure arglist has a final NULL entry.  Add
146
        PEXECUTE_LAST to the flags passed to pexecute, as otherwise
147
        stdin/stdout of the invoked program are redirected to
148
        nowheresville.
149
 
150
Tue Nov 19 16:12:44 1996  Jason Merrill  
151
 
152
        * decl.c (implicitly_declare): Set DECL_ARTIFICIAL.
153
 
154
Tue Nov 19 15:48:19 1996  Mike Stump  
155
 
156
        * init.c (resolve_offset_ref): Handle obj.vfn better.
157
        * typeck.c (build_component_ref): Set TREE_TYPE on result from
158
        build_vfn_ref.
159
 
160
Tue Nov 19 13:14:33 1996  Mike Stump  
161
 
162
        * typeck.c (convert_for_assignment): Also handle anachronistic
163
        implicit conversions from (::*)() to cv void*.
164
        * cvt.c (cp_convert_to_pointer): Likewise.
165
 
166
Mon Nov 18 17:05:26 1996  Jason Merrill  
167
 
168
        * lex.c (handle_cp_pragma): Fix bogus warning.
169
 
170
Mon Nov 18 16:10:43 1996  Mike Stump  
171
 
172
        * cvt.c (cp_convert_to_pointer): Avoid thinking a POINTER_TYPE
173
        (METHOD_TYPE) is a TYPE_PTRMEMFUNC_P.
174
 
175
Thu Nov 14 23:18:17 1996  Jason Merrill  
176
 
177
        * class.c (finish_struct_1): Support DWARF2_DEBUG.
178
        * search.c (dfs_debug_mark): Likewise.
179
        * decl2.c (finish_vtable_vardecl): Likewise.
180
        * decl.c (pushtag, finish_enum): Likewise.
181
        * lex.c (check_newline): Use debug_* instead of calling *out
182
        functions directly.
183
 
184
Thu Nov 14 15:21:46 1996  Brendan Kehoe  
185
 
186
        * Make-lang.in (cplib2.ready): Add else clause to avoid problems
187
        on some picky hosts.
188
 
189
Wed Nov 13 12:32:07 1996  Jason Merrill  
190
 
191
        * class.c (finish_struct_1): A class has a non-trivial copy
192
        constructor if it has virtual functions.
193
 
194
        * cvt.c (cp_convert): Always call a constructor.
195
 
196
        * call.c (reference_binding): Still tack on a REF_BIND
197
        for bad conversions.
198
        (build_user_type_conversion_1): Propagate ICS_BAD_FLAG.
199
 
200
        * typeck.c (convert_arguments): Pass LOOKUP_ONLYCONVERTING.
201
        (c_expand_return): Likewise.
202
        * typeck2.c (digest_init): Likewise for { }.
203
        * init.c (expand_aggr_init_1): Keep the CONSTRUCTOR handling.
204
        * cvt.c (cp_convert): Handle failure better.
205
 
206
Wed Nov 13 11:51:20 1996  Brendan Kehoe  
207
 
208
        * g++.c (main): Also set PEXECUTE_SEARCH, to make the invocation
209
        of GCC be path-relative.
210
 
211
Wed Nov 13 11:27:16 1996  Michael Meissner  
212
 
213
        * Make-lang.in (g++-cross): G++-cross doesn't need version.o, but
214
        it does need choose-temp.o and pexecute.o.
215
 
216
Wed Nov 13 07:53:38 1996  Brendan Kehoe  
217
 
218
        * g++.c (error) [!HAVE_VPRINTF]: Put error back for the only time
219
        that we still use it.
220
        (P_tmpdir, R_OK, W_OK, X_OK) [__MSDOS__]: Delete unnecessary macros.
221
 
222
Wed Nov 13 02:00:26 1996  Jason Merrill  
223
 
224
        * init.c (expand_default_init): Avoid calling constructors to
225
        initialize reference temps.
226
 
227
        * cvt.c (convert_to_reference): Fix.
228
 
229
Tue Nov 12 19:10:07 1996  Jason Merrill  
230
 
231
        * cvt.c (cp_convert): Simplify for flag_ansi_overloading.
232
        (convert_to_reference): Likewise.
233
        * typeck.c (convert_for_initialization): Likewise.
234
        * init.c (expand_default_init): Likewise.
235
        (expand_aggr_init_1): Likewise.
236
        * cp-tree.h (CONV_NONCONVERTING): Lose.
237
        * typeck.c (build_c_cast): Lose allow_nonconverting parm.
238
        * *.c: Adjust.
239
        * call.c (build_user_type_conversion_1): Assume LOOKUP_ONLYCONVERTING.
240
 
241
Tue Nov 12 16:29:04 1996  Brendan Kehoe  
242
 
243
        * pt.c (tsubst_expr): Reverse args to expand_start_catch_block.
244
 
245
Tue Nov 12 15:26:17 1996  Jason Merrill  
246
 
247
        * init.c (expand_aggr_init_1): Don't crash on non-constructor
248
        TARGET_EXPR.
249
 
250
Tue Nov 12 14:00:50 1996  Brendan Kehoe  
251
 
252
        * g++.c: Include gansidecl.h.
253
        (VPROTO, PVPROTO, VA_START): Delete.
254
        (choose_temp_base_try, choose_temp_base, perror_exec,
255
        run_dos) [__MSDOS__]: Delete fns.
256
        (pfatal_with_name): Delete fn.
257
        (temp_filename): Declare like in gcc.c.
258
        (pexecute, pwait, choose_temp_base): Declare from gcc.c.
259
        (error_count, signal_count): Define.
260
        (error): Delete both definitions.
261
        (PEXECUTE_{FIRST,LAST,SEARCH,VERBOSE}): Define from gcc.c.
262
        (pfatal_pexecute): Add fn from gcc.c.
263
        (main): Rename local VERBOSE var to VERBOSE_FLAG.  Rewrite the
264
        code to use the pexecute stuff also used by gcc.c.
265
        (MIN_FATAL_STATUS): Define.
266
        * Make-lang.in (g++): Add dependency on and linking with
267
        choose-temp.o and pexecute.o.
268
 
269
        * cp-tree.h: Include gansidecl.h.
270
        (STDIO_PROTO): Delete #undef/#define.
271
        * cvt.c (NULL): Delete #undef/#define.
272
        * expr.c (NULL): Likewise.
273
        * init.c (NULL): Likewise.
274
        * rtti.c (NULL): Likewise.
275
        * xref.c (NULL): Likewise.
276
 
277
        * cp-tree.h (build_user_type_conversion): Add prototype.
278
        * call.c (build_user_type_conversion): Delete prototype.  Correct
279
        decl of FLAGS arg to be an int.
280
        * cvt.c (build_user_type_conversion): Likewise.
281
 
282
Tue Nov 12 12:16:20 1996  Jason Merrill  
283
 
284
        * cp-tree.def: Add TRY_BLOCK and HANDLER.
285
        * except.c (expand_start_catch_block): Support templates.
286
        * parse.y (try_block, handler_seq): Likewise.
287
        * pt.c (tsubst_expr): Support TRY_BLOCK and HANDLER.
288
 
289
Mon Nov 11 13:57:31 1996  Jason Merrill  
290
 
291
        * pt.c (current_template_args): New fn.
292
        (push_template_decl): Use it.
293
        * decl.c (grokdeclarator): Use it.
294
 
295
        * decl2.c (build_expr_from_tree): Dereference ref vars.
296
 
297
        * decl.c (grokdeclarator): Generalize handling of TYPENAME_TYPEs in
298
        the decl-specifier-seq.
299
 
300
        * decl.c (grok_op_properties): Don't force the type of a conversion
301
        op to be complete.  Don't warn about converting to the same type
302
        for template instantiations.
303
 
304
        * decl2.c (finish_file): Don't call instantiate_decl on synthesized
305
        methods.
306
 
307
Mon Nov 11 13:20:34 1996  Bob Manson  
308
 
309
        * typeck.c (get_delta_difference): Remove previous bogusness.
310
        Don't give errors if force is set.
311
 
312
Fri Nov  8 17:38:44 1996  Jason Merrill  
313
 
314
        * decl2.c (finish_file): Don't emit debug info.
315
        * decl.c (pushdecl): Lose obsolete code.
316
        (grokdeclarator): Still do the long long thing after complaining.
317
        * search.c (note_debug_info_needed): Don't do anything if we're in a
318
        template.
319
        * method.c (synthesize_method): For non-local classes,
320
        push_to_top_level first.
321
 
322
Fri Nov  8 11:52:28 1996  Bob Manson  
323
 
324
        * typeck.c (get_delta_difference): Add no_error parameter.
325
        (build_ptrmemfunc): Call get_delta_difference with no_error set;
326
        we don't want error messages when converting unrelated
327
        pointer-to-member functions.
328
 
329
Thu Nov  7 11:16:24 1996  Mike Stump  
330
 
331
        * error.c (dump_expr): Improve the wording on error messages that
332
        involve pointer to member functions.
333
 
334
Tue Nov  5 17:12:05 1996  Mike Stump  
335
 
336
        * cvt.c (cp_convert_to_pointer): Move code for conversions from
337
        (::*)() to void* or (*)() up a bit, so that we can convert from
338
        METHOD_TYPEs as well.
339
 
340
Tue Nov  5 14:54:17 1996  Jason Merrill  
341
 
342
        * rtti.c (get_tinfo_fn): Make sure 'type' is permanent.
343
        There are no 'member' types.
344
        (get_tinfo_fn_dynamic): Diagnose typeid of overloaded fn.
345
        (build_x_typeid): Handle errors.
346
 
347
Mon Nov  4 17:43:12 1996  Mike Stump  
348
 
349
        * typeck.c (convert_for_assignment): Handle anachronistic implicit
350
        conversions from (::*)() to void* or (*)().
351
        * cvt.c (cp_convert_to_pointer): Likewise.
352
        (cp_convert_to_pointer_force): Remove cp_convert_to_pointer
353
        conversions from here.
354
        * decl2.c (lang_decode_option): Add -W{no-,}pmf-conversions.
355
        * lang-options.h: Likewise.
356
        * decl2.c (warn_pmf2ptr): Define.
357
        * cp-tree.h: Declare it.
358
        * typeck2.c (digest_init): Allow pmfs down into
359
        convert_for_initialization.
360
 
361
Sun Nov  3 09:43:00 1996  Jason Merrill  
362
 
363
        * typeck.c (c_expand_return): Fix for returning overloaded fn.
364
 
365
Fri Nov  1 08:53:17 1996  Jason Merrill  
366
 
367
        * cp-tree.h (DIRECT_BIND): Change from INDIRECT_BIND.
368
        * decl.c (grok_reference_init): Pass DIRECT_BIND.
369
        * cvt.c (build_up_reference): Don't mark 'this' addressable.  Use
370
        DIRECT_BIND.
371
        * call.c (convert_like): Don't pass INDIRECT_BIND.
372
        * typeck.c (convert_arguments): Likewise.
373
        * typeck.c (mark_addressable): Allow &this if flag_this_is_variable.
374
 
375
Thu Oct 31 17:08:49 1996  Jason Merrill  
376
 
377
        * typeck.c (mark_addressable): Support TARGET_EXPR, unify with
378
        similar code in build_up_ref.
379
        * cvt.c (build_up_reference): Drastically simplify.
380
 
381
Mon Oct 28 12:45:05 1996  Jeffrey A Law  
382
 
383
        * typeck.c (signed_or_unsigned_type): If the given type already
384
        as the correct signedness, then just return it.
385
 
386
        * typeck.c ({un,}signed_type): If can't do anything, call
387
        signed_or_unsigned_type.
388
 
389
Thu Oct 24 14:21:59 1996  Bob Manson  
390
 
391
        * decl2.c (copy_assignment_arg_p): Don't buy the farm if
392
        current_class_type is NULL.
393
 
394
Wed Oct 23 00:43:10 1996  Jason Merrill  
395
 
396
        * class.c (finish_struct_1): Avoid empty structs by adding a field
397
        so layout_type gets the mode right.
398
 
399
        * typeck.c (c_expand_return): Drastically simplify.
400
 
401
Mon Oct 21 22:34:02 1996  Jason Merrill  
402
 
403
        * typeck.c (decay_conversion): Handle overloaded methods.
404
 
405
Fri Oct 18 16:03:48 1996  Jason Merrill  
406
 
407
        * call.c (build_over_call): A TARGET_EXPR has side-effects.
408
 
409
Thu Oct 17 11:31:59 1996  Mike Stump  
410
 
411
        * cvt.c (convert_to_pointer_force): Add code to support pointer to
412
        member function to pointer to function conversions.
413
        * init.c (resolve_offset_ref): Add code to allow faked up objects,
414
        ignoring them if they are not used, and giving an error, if they
415
        are needed.
416
        * typeck.c (get_member_function_from_ptrfunc): Fold e1 to improve
417
        code, and so that we can give an error, if we needed an object,
418
        and one was not provided.
419
        (build_c_cast): Don't call default_conversion when we want to
420
        convert to pointer to function from a METHOD_TYPE.
421
 
422
Mon Oct 14 00:28:51 1996  Jason Merrill  
423
 
424
        * Make-lang.in (cplib2.ready): Fix logic.
425
 
426
        * decl.c (shadow_tag): Only complain about non-artificial function
427
        members.
428
 
429
        * class.c (finish_struct_1): Add synthesized methods to TYPE_METHODS.
430
 
431
Fri Oct 11 16:12:40 1996  Jason Merrill  
432
 
433
        * expr.c (cplus_expand_expr): Pre-tweak call_target like
434
        expand_inline_function would.
435
 
436
        * pt.c (mark_decl_instantiated): If extern_p, call
437
        mark_inline_for_output.
438
 
439
Thu Oct 10 15:58:08 1996  Mike Stump  
440
 
441
        * typeck.c (unary_complex_lvalue): Add code to handle intermediate
442
        pmd conversions.
443
 
444
        * typeck.c (get_delta_difference): Fix wording, as we can be used
445
        for pointer to data members.
446
 
447
Tue Oct  8 12:43:51 1996  Bob Manson  
448
 
449
        * pt.c (tsubst): If the function decl isn't a member of this
450
        template, return a copy of the decl (including copying the
451
        lang-specific part) so we don't hose ourselves later.
452
 
453
Thu Oct  3 16:24:28 1996  Jason Merrill  
454
 
455
        * class.c (finish_struct): Remove DWARF-specific tag handling.
456
        * decl.c (pushtag): Likewise.
457
        (finish_function): Always clear DECL_ARGUMENTS on function decls with
458
        no saved RTX.
459
        * decl2.c (finish_file): Emit DWARF debugging info for static data
460
        members.
461
 
462
Wed Oct  2 21:58:01 1996  Bob Manson  
463
 
464
        * decl.c (duplicate_decls): Make sure the old DECL_LANG_SPECIFIC
465
        isn't the same as the new one before we whack it.
466
 
467
Mon Sep 30 13:38:24 1996  Jason Merrill  
468
 
469
        * class.c, cp-tree.h, cvt.c, decl.c, decl2.c, gxx.gperf, hash.h,
470
        lex.c, method.c, parse.y, typeck.c, typeck2.c: Remove
471
        warn_traditional and warn_strict_prototypes; remove ancient
472
        'overload' code; remove references to flag_traditional.
473
 
474
Mon Sep 30 12:58:40 1996  Mike Stump  
475
 
476
        * input.c (sub_getch): Handle 8-bit characters in string literals.
477
 
478
Sun Sep 29 03:12:01 1996  Jason Merrill  
479
 
480
        * tree.c (mapcar): Handle CONSTRUCTORs.
481
        (copy_to_permanent): Handle expression_obstack properly.
482
 
483
        * Make-lang.in (cplib2.txt): Also depend on the headers.
484
 
485
        * rtti.c (get_tinfo_var): Don't assume that POINTER_SIZE ==
486
        INT_TYPE_SIZE.
487
        (expand_class_desc): Use USItype for offset field.
488
        * tinfo.h (struct __class_type_info): Likewise.
489
 
490
        * method.c (build_overload_int): TYPE_PRECISION should be applied
491
        to types.
492
 
493
Sat Sep 28 14:44:50 1996  Jason Merrill  
494
 
495
        * call.c (build_new_op): A COND_EXPR involving void must be a
496
        builtin.
497
 
498
Fri Sep 27 16:40:30 1996  Jason Merrill  
499
 
500
        * typeck.c (build_x_component_ref): New fn.
501
        (build_object_ref): Use it.
502
        * parse.y (primary): Use it.
503
        * decl2.c (build_expr_from_tree): Use it.
504
        * cp-tree.h: Declare it.
505
 
506
        * decl.c (start_decl): Variable-sized arrays cannot be initialized.
507
        * error.c (dump_type_suffix): Handle variable arrays.
508
 
509
Fri Sep 27 13:14:05 1996  Brendan Kehoe  
510
 
511
        * Make-lang.in (exception.o): Put back compiling it with -fPIC.
512
 
513
Fri Sep 27 03:00:09 1996  Jason Merrill  
514
 
515
        * decl.c (lookup_name_real): Don't try to look up anything in a
516
        TYPENAME_TYPE.
517
 
518
        * tinfo2.cc (__throw_type_match_rtti): Oops.
519
 
520
Thu Sep 26 22:11:05 1996  Brendan Kehoe  
521
 
522
        * Make-lang.in (exception.o): Use -fno-PIC for now.
523
 
524
Thu Sep 26 10:59:00 1996  Jason Merrill  
525
 
526
        * rtti.c (build_dynamic_cast): Pass tinfo fns rather than
527
        calling them.
528
        (get_tinfo_fn_dynamic): Extracted from build_typeid.
529
        * tinfo2.cc (__dynamic_cast): Adjust.
530
 
531
        * rtti.c (build_typeid): Use resolves_to_fixed_type_p.
532
        (build_x_typeid): Likewise.
533
 
534
        * parse.y: Call build_x_typeid instead of build_typeid.
535
        * cp-tree.def: Add TYPEID_EXPR.
536
        * pt.c (tsubst_copy): Handle typeid.
537
        * decl2.c (build_expr_from_tree): Likewise.
538
        * rtti.c (build_x_typeid): Throw bad_typeid from here.
539
        (build_typeid): Not here.
540
        * cp-tree.h: Declare build_x_typeid.
541
 
542
Wed Sep 25 17:26:16 1996  Jason Merrill  
543
 
544
        * call.c (convert_like): Pull out constant values.
545
 
546
        * tree.c (mapcar): Use build_cplus_array_type, not build_array_type.
547
 
548
Wed Sep 25 17:28:53 1996  Michael Meissner  
549
 
550
        * decl.c (init_decl_processing): Create short int types before
551
        creating size_t in case a machine description needs to use
552
        unsigned short for size_t.
553
 
554
Tue Sep 24 18:18:44 1996  Jason Merrill  
555
 
556
        * Make-lang.in (exception.o): Turn off pic.
557
 
558
        * tinfo2.cc (__throw_type_match_rtti): Fix cv-variants of the same
559
        type, multi-level ptr conversions.
560
 
561
        * rtti.c (call_void_fn): Renamed and genericized from throw_bad_cast.
562
        (throw_bad_cast): Use it.
563
        (throw_bad_typeid): New fn.
564
        (build_typeid): Throw bad_typeid as needed.
565
        Use build_call.
566
        (synthesize_tinfo_fn): Handle functions and arrays before checking
567
        for cv-quals.
568
 
569
        * Remove .h from standard C++ headers, add new.h, move into inc
570
        subdirectory.
571
 
572
        * exception*: Remove pointer from object, constructors.  Add
573
        default exception::what that uses type_info::name.  Add
574
        __throw_bad_typeid.
575
 
576
        * init.c (build_new): Don't add a cookie to new (void *) T[2].
577
 
578
Mon Sep 23 15:21:53 1996  Jason Merrill  
579
 
580
        * Make-lang.in: Building C++ code depends on cc1plus.
581
 
582
Mon Sep 23 12:38:40 1996  Brendan Kehoe  
583
 
584
        * decl.c (struct saved_scope): Declare PROCESSING_TEMPLATE_DECL as
585
        a HOST_WIDE_INT, not a tree.
586
 
587
Mon Sep 23 12:36:02 1996  Jason Merrill  
588
 
589
        * exception.cc: Don't include .
590
 
591
        * Make-lang.in (c++.clean): Remove cplib2.*.
592
 
593
Mon Sep 23 09:42:19 1996  Doug Evans  
594
 
595
        * parse.y (component_decl_1, component_costructor_declarator case):
596
        Pass attributes/prefix_attributes in tree list.
597
 
598
Mon Sep 23 01:18:50 1996  Jason Merrill  
599
 
600
        * tinfo{,2}.cc: #include  instead of .
601
 
602
Sun Sep 22 05:31:22 1996  Jason Merrill  
603
 
604
        * lex.c (do_identifier): Don't do deferred lookup in a template
605
        header.
606
 
607
        * typeck2.c (store_init_value): Oops.
608
 
609
        * new.{h,cc}, exception.{h,cc}, typeinfo.h, tinfo{2.cc,.cc,.h}:
610
        New files for C++ lang-support library.
611
        * Make-lang.in (CXX_EXTRA_HEADERS): Define.
612
        (CXX_LIB2FUNCS): Define.
613
        And rules for building the C++ lang-support code.
614
        * config-lang.in (headers): Define.
615
        (lib2funcs): Define.
616
 
617
Sat Sep 21 19:17:28 1996  Jason Merrill  
618
 
619
        * decl2.c (build_expr_from_tree): If CONSTRUCTOR has a type, call
620
        digest_init.
621
        * pt.c (tsubst_copy): Compute type for CONSTRUCTOR.
622
        * typeck2.c (store_init_value): Check for initializing pmf with { }
623
        here.
624
        (process_init_constructor): Not here.
625
 
626
Thu Sep 19 16:41:07 1996  Jason Merrill  
627
 
628
        * pt.c (begin_template_parm_list): Increment
629
        processing_template_decl here.
630
        (end_template_parm_list): Not here.
631
        (process_template_parm): No need to add 1 to it now.
632
        * *.c: Use processing_template_decl instead of current_template_parms
633
        to check for being in a template.
634
 
635
        * pt.c (uses_template_parms): Handle SCOPE_REF.  Fix CONSTRUCTOR.
636
        (tsubst_copy): Handle CONSTRUCTOR.
637
        (instantiate_decl): Set up context properly for variables.
638
        * decl2.c (build_expr_from_tree): Handle CONSTRUCTOR.
639
        * class.c (finish_struct): Reverse CLASSTYPE_TAGS.
640
 
641
Wed Sep 18 13:30:20 1996  Brendan Kehoe  
642
 
643
        * lex.c (enum tree_node_kind) [GATHER_STATISTICS]: Put the enum back.
644
 
645
Wed Sep 18 04:24:07 1996  Jason Merrill  
646
 
647
        * method.c (make_thunk): Call comdat_linkage before setting the
648
        TREE_CODE.
649
 
650
        * decl2.c (comdat_linkage): Use make_decl_one_only.
651
        (import_export_decl): Likewise.
652
        * decl.c (init_decl_processing): Check supports_one_only instead of
653
        SUPPORTS_WEAK.
654
 
655
Sat Sep 14 08:34:41 1996  Jason Merrill  
656
 
657
        * decl2.c (grokfield): Tighten checking for access decls.
658
 
659
        * decl.c (make_typename_type): Resolve references to
660
        current_class_type.  Set CLASSTYPE_GOT_SEMICOLON.
661
        (lookup_name_real): Types that depend on a template parameter get
662
        an implicit 'typename' unless they're in the current scope.
663
        (start_decl_1): We don't care about incomplete types that depend
664
        on a template parm.
665
        (grokdeclarator): Resolve 'typename's in the type specifier that
666
        refer to members of the current scope.
667
 
668
        * call.c (build_over_call): Remove 'inline called before
669
        definition' diagnostic.
670
        (build_method_call): Likewise.
671
        * decl.c (duplicate_decls): Downgrade 'used before declared
672
        inline' to a warning, only with -Winline.
673
 
674
Fri Sep 13 17:31:40 1996  Stan Shebs  
675
 
676
        * mpw-make.sed: Fix include paths, add @DASH_C_FLAG@ to compile.
677
 
678
Wed Sep 11 22:38:13 1996  Gerald Baumgartner  
679
 
680
        * call.c (build_method_call): When calling a signature
681
        default implementation, as in other cases, let instance_ptr simply
682
        be instance.
683
 
684
Wed Sep 11 22:14:44 1996  Mike Stump  
685
 
686
        * parse.y (simple_stmt): Cleanup and use do_poplevel ().
687
 
688
Wed Sep 11 22:10:48 1996  Mike Stump  
689
 
690
        * except.c (expand_start_catch_block): Add a pushlevel so that -g
691
        works on hppa and SPARC.
692
 
693
Wed Sep 11 10:18:06 1996  Brendan Kehoe  
694
 
695
        * typeck.c (build_indirect_ref): Catch PTR being an error_mark_node.
696
 
697
Mon Sep  9 19:51:14 1996  Gerald Baumgartner  
698
 
699
        * call.c (build_over_call): Check first whether DECL_CONTEXT exists
700
        before testing whether it's a signature.
701
 
702
Sun Sep  8 16:06:57 1996  Gerald Baumgartner  
703
 
704
        * call.c (build_new_method_call): Don't complain about signature
705
        pointers and references not being an aggr type.
706
        (build_this): If a signature pointer or reference was passed in,
707
        just return it.
708
        (build_new_method_call): If instance is a signature pointer, set
709
        basetype to the signature type of instance.
710
        * sig.c (build_signature_method_call): Deleted basetype and
711
        instance parameters, they can be found as the DECL_CONTEXT of
712
        function and as the first argument passed in.
713
        * cp-tree.h: Changed declaration of build_signature_method_call.
714
        * call.c (build_method_call): Deleted first two arguments in call
715
        of build_signature_method_call.
716
        (build_over_call): Added call to build_signature_method_call.
717
 
718
Thu Sep  5 16:51:28 1996  Jason Merrill  
719
 
720
        * typeck.c (build_c_cast): Don't tack a non_lvalue_expr onto a
721
        target_expr.
722
 
723
Thu Sep  5 10:05:38 1996  Brendan Kehoe  
724
 
725
        * cvt.c (convert_to_reference): Use %#T, not %#D, for error.
726
 
727
Wed Sep  4 17:16:09 1996  Bob Manson  
728
 
729
        * except.c (expand_start_try_stmts): Move to except.c in the backend.
730
        (expand_end_try_stmts): Remove.
731
 
732
        * init.c (perform_member_init): Use add_partial_entry () instead
733
        of directly manipulating lists.
734
        (emit_base_init): Likewise.
735
 
736
Wed Sep  4 12:14:36 1996  Mike Stump  
737
 
738
        * except.c (expand_exception_blocks): Always make sure USE and
739
        CLOBBER insns that came at the end still do, the backend relies
740
        upon this.
741
 
742
Wed Sep  4 07:44:48 1996  Jason Merrill  
743
 
744
        * call.c (build_over_call): We can only use a TARGET_EXPR of the
745
        right type.
746
 
747
Tue Sep  3 19:26:05 1996  Jason Merrill  
748
 
749
        * cvt.c (convert_to_reference): Revert last change, don't complain
750
        about temp without target decl.
751
 
752
Tue Sep  3 10:22:56 1996  Mike Stump  
753
 
754
        * decl.c (grokdeclarator): Don't core dump when void() is given.
755
 
756
Tue Sep  3 02:38:56 1996  Jason Merrill  
757
 
758
        * decl.c (copy_args_p): Don't crash.
759
 
760
Fri Aug 30 14:26:57 1996  Mike Stump  
761
 
762
        * pt.c (tsubst): And support template args inside the exception
763
        specification.
764
 
765
        * pt.c (tsubst): Add support for exception specifications in
766
        template functions.
767
 
768
Fri Aug 30 10:01:55 1996  Mike Stump  
769
 
770
        * cp-tree.def (DECL_STMT): Eliminate the throw spec field, only 3
771
        fields now.
772
        * cp-tree.h (start_decl): Eliminate the throw spec parameter.
773
        (start_function): Likewise.
774
        (start_method): Likewise.
775
        (grokfield): Likewise.
776
        (make_call_declarator): Add throw spec parameter.
777
        (set_quals_and_spec): Add routine.
778
        * lex.c (set_quals_and_spec): Likewise.
779
        * decl.h (grokdeclarator): Eliminate the throw spec parameter.
780
        * decl.c (shadow_tag): Eliminate the throw spec parameter to
781
        grokdeclarator.
782
        (groktypename): Likewise.
783
        (start_decl): Eliminate the throw spec parameter.  Eliminate the
784
        throw spec parameter to grokdeclarator.  Eliminate the throw spec
785
        field in DECL_STMT.
786
        (cp_finish_decl): Eliminate the throw spec field in DECL_STMT.
787
        (grokfndecl): Remove useless set of raises.
788
        (grokdeclarator): Eliminate the throw spec parameter.  Eliminate
789
        the throw spec parameter to start_decl.  Pull the throw spec out
790
        of the call declarator.
791
        (grokparms): Eliminate the throw spec parameter to grokdeclarator.
792
        (start_function): Eliminate the throw spec parameter.  Eliminate
793
        the throw spec parameter to grokdeclarator.
794
        (start_method): Likewise.
795
        * decl2.c (grokfield): Likewise.
796
        (grokbitfield): Eliminate the throw spec parameter to grokdeclarator.
797
        (grokoptypename): Likewise.
798
        (finish_file): Eliminate the throw spec parameter to
799
        start_function.  Add throw spec to make_call_declarator.
800
        * except.c (init_exception_processing): Add throw spec to
801
        make_call_declarator.  Eliminate the throw spec parameter to
802
        start_decl.
803
        (expand_start_catch_block): Eliminate the throw spec parameter to
804
        grokdeclarator.
805
        (expand_builtin_throw): Add throw spec to make_call_declarator.
806
        Eliminate the throw spec parameter to start_function.
807
        (start_anon_func): Likewise.
808
        * lex.c (make_call_declarator): Add throw spec parameter.
809
        (set_quals_and_spec): New routine.
810
        (cons_up_default_function): Add throw spec to make_call_declarator.
811
        Eliminate the throw spec parameter to grokfield.
812
        * method.c (synthesize_method): Eliminate the throw spec parameter
813
        to start_function.
814
        * pt.c (process_template_parm): Eliminate the throw spec parameter
815
        to grokdeclarator.
816
        (tsubst): Add throw spec to make_call_declarator.
817
        (tsubst_expr): Eliminate the throw spec parameter to start_decl.
818
        (do_function_instantiation): Eliminate the throw spec parameter to
819
        grokdeclarator.  Eliminate the throw spec parameter to
820
        start_function.
821
        * rtti.c (synthesize_tinfo_fn): Eliminate the throw spec parameter
822
        to start_function.
823
        * parse.y (datadef): Remove non-winning optimization.
824
        (decl): Likewise.
825
        (fndef): Remove ambiguous error productions uncovered by grammar
826
        fixing.
827
        (constructor_declarator): Add exception_specification_opt here.
828
        (component_constructor_declarator): Likewise.
829
        (direct_after_type_declarator): Likewise.
830
        (complex_direct_notype_declarator): Likewise.
831
        (direct_abstract_declarator): Likewise.
832
        (fn.def1): Remove exception_specification_opt.
833
        (fn.def2): Likewise.
834
        (condition): Likewise.
835
        (initdcl0): Likewise.
836
        (initdcl): Likewise.
837
        (notype_initdcl0): Likewise.
838
        (nomods_initdcl0): Likewise.
839
        (component_decl_1): Likewise.
840
        (component_declarator): Likewise.
841
        (after_type_component_declarator0): Likewise.
842
        (after_type_component_declarator): Likewise.
843
        (notype_component_declarator): Likewise.
844
 
845
Wed Aug 28 01:40:30 1996  Jason Merrill  
846
 
847
        * call.c (build_over_call): Also use an INIT_EXPR when
848
        initializing anything from an rvalue.
849
 
850
        * call.c (build_over_call): Call stabilize_reference when building
851
        an INIT_EXPR instead of calling the copy ctor.
852
 
853
        * call.c (joust): Extend the previous change to all comparisons.
854
 
855
        * decl2.c, method.c, lex.c: Use MAKE_DECL_ONE_ONLY and
856
        NO_LINKAGE_HEURISTICS.
857
 
858
        * decl2.c (finish_file): Emit any statics that weren't already.
859
 
860
        * typeck.c (build_static_cast): Implement.
861
        * tree.c (build_cplus_new): Handle getting a TARGET_EXPR.
862
        * decl.c (grokparms): Use can_convert_arg instead of
863
        implicit_conversion directly.
864
        (copy_args_p): New fn.
865
        * cvt.c (convert_to_reference): Don't complain about temp with
866
        static_cast.
867
        (build_up_reference): Handle TARGET_EXPRs.
868
        * call.c (build_over_call): Elide unnecessary temps.
869
        (can_convert*): Use new overloading code.
870
 
871
Tue Aug 27 13:12:21 1996  Jason Merrill  
872
 
873
        * call.c: Move TYPE_PTR*_MACROS ...
874
        * cp-tree.h: To here.
875
        * typeck.c (build_reinterpret_cast): Implement.
876
 
877
        * call.c (add_builtin_candidate): Use TYPE_PTROB_P instead of
878
        ptr_complete_ob.
879
        (joust): If we're comparing a function to a builtin and the worst
880
        conversion for the builtin is worse than the worst conversion for the
881
        function, take the function.
882
 
883
        * typeck.c (build_const_cast): Implement.
884
        (comp_ptr_ttypes_const): Like comp_ptr_ttypes, for const_cast.
885
        (comp_ptr_ttypes_reinterpret): Like cpt, for reinterpret_cast.
886
 
887
Tue Aug 27 13:14:58 1996  Bob Manson  
888
 
889
        * rtti.c (build_dynamic_cast): Don't try to dereference exprtype
890
        too early.  Make sure we explode if exprtype turns out to be a
891
        NULL_TREE when it shouldn't be.
892
 
893
Tue Aug 27 10:56:21 1996  Mike Stump  
894
 
895
        * cp-tree.h: New routine make_call_declarator.
896
        * lex.c (make_call_declarator): Define it.
897
        * except.c (init_exception_processing): Use it.
898
        (expand_builtin_throw): Likewise.
899
        (start_anon_func): Likewise.
900
        * decl2.c (finish_file): Likewise.
901
        * lex.c (cons_up_default_function): Likewise.
902
        * parse.y: Likewise.
903
        * pt.c (tsubst): Likewise.
904
 
905
Mon Aug 26 17:40:03 1996  Mike Stump  
906
 
907
        * decl2.c (groktypefield): Remove unused code.
908
 
909
Mon Aug 26 17:00:33 1996  Mike Stump  
910
 
911
        * gxx.gperf: Change TYPE_QUAL into CV_QUALIFIER.
912
        * parse.y: Likewise.  Change maybe_type_qual into maybe_cv_qualifier.
913
        Change type_quals into cv_qualifiers.  Change nonempty_type_quals into
914
        nonempty_cv_qualifiers.
915
        * hash.h: Rebuild.
916
 
917
        * lex.c (make_pointer_declarator): Change type_quals into
918
        cv_qualifiers.
919
        (make_reference_declarator): Likewise.
920
 
921
Thu Aug 22 01:09:22 1996  Jason Merrill  
922
 
923
        * decl.c (start_function): Only check interface_* for templates
924
        with flag_alt_external_templates.
925
 
926
        * call.c (build_new_op): Check for comparison of different enum types.
927
        (build_over_call): Fix arg # output.
928
 
929
        * typeck.c (build_component_ref): Handle pre-found TYPE_DECL.
930
 
931
Wed Aug 21 00:13:15 1996  Jason Merrill  
932
 
933
        * call.c (build_new_op): Check for erroneous args.
934
 
935
        * call.c (build_new_method_call): Add missing args to cp_error.
936
 
937
        * tree.c (error_type): Don't print reference-to-array.
938
 
939
        * typeck.c (convert_for_assignment): Don't say contravariance for
940
        removing const.
941
 
942
Tue Aug 20 13:23:00 1996  Jason Merrill  
943
 
944
        * call.c (build_over_call): Diagnose bad convs for `this'.
945
 
946
        * lex.c (cons_up_default_function): Set DECL_ARTIFICIAL
947
        on _ctor_arg.
948
 
949
        * call.c (convert_like): Handle bad convs.
950
        (build_over_call): Handle bad convs better.
951
 
952
        * decl2.c: -fansi-overloading is now the default.
953
 
954
        * call.c (build_new_method_call): Check for erroneous args.
955
 
956
        * pt.c (instantiate_class_template): Propagate
957
        TYPE_USES_MULTIPLE_INHERITANCE.
958
 
959
Tue Aug 20 13:09:57 1996  Mike Stump  
960
 
961
        * call.c (enforce_access): Add static to routine.
962
 
963
Sun Aug 18 14:35:54 1996  Jason Merrill  
964
 
965
        * call.c (build_user_type_conversion_1): Fix bad handling.
966
        (compare_ics): Likewise.
967
 
968
Sat Aug 17 21:54:11 1996  Jason Merrill  
969
 
970
        * call.c (standard_conversion): Oops.
971
 
972
Sat Aug 17 16:28:11 1996  Geoffrey Noer  
973
 
974
        * g++.c: Update test for win32 (&& ! cygwin32).
975
 
976
Sat Aug 17 03:45:31 1996  Jason Merrill  
977
 
978
        * typeck.c (comp_ptr_ttypes_real): Handle OFFSET_TYPEs properly.
979
        (ptr_reasonably_similar): New fn.
980
        * call.c (BAD_RANK): New rank.
981
        (ICS_BAD_FLAG): New macro.
982
        (standard_conversion): Handle almost-right pointer conversions.
983
        (reference_binding): Handle bad rvalue bindings.
984
        (add_*_candidate): Stuff.
985
        (build_over_call): Pass bad conversions to convert_for_initialization.
986
        (compare_ics): Handle bad convs.
987
        (joust): Likewise.
988
 
989
Fri Aug 16 15:02:19 1996  Bob Manson  
990
 
991
        * init.c (expand_vec_init): Use ptrdiff_type_node instead of
992
        integer_type_node when computing pointer offsets.
993
 
994
Fri Aug 16 01:28:32 1996  Jason Merrill  
995
 
996
        * tree.c (lvalue_type): New fn.
997
        (error_type): New fn.
998
        * call.c (op_error): Use error_type.
999
        (add_conv_candidate): Use lvalue_type.
1000
        (add_builtin_candidates): Likewise.
1001
        * error.c (args_as_string): Use error_type.
1002
 
1003
Thu Aug 15 17:27:13 1996  Jason Merrill  
1004
 
1005
        * pt.c (instantiate_decl): Evaluate DECL_INITIAL of a VAR_DECL here.
1006
        (tsubst): Not here.
1007
 
1008
        * decl.c (init_decl_processing): With -ansi, __null's type is the
1009
        signed integral type with the same number of bits as a pointer.
1010
        Introduce a new variable null_node for it.
1011
        * cp-tree.h: Adjust.
1012
        * call.c (null_ptr_cst_p): Adjust.
1013
 
1014
Thu Aug 15 17:09:54 1996  Mike Stump  
1015
 
1016
        * except.c (do_unwind): Mark %i7 as used on the SPARC so we can
1017
        optimize.
1018
 
1019
Thu Aug 15 01:36:49 1996  Jason Merrill  
1020
 
1021
        * decl2.c (import_export_decl): Ignore #pragma interface for tinfo
1022
        fns of classes without virtual functions.
1023
 
1024
        * call.c (add_function_candidate): Handle `this' specially.
1025
        (compare_ics): Likewise.
1026
 
1027
Tue Aug 13 12:16:10 1996  Jason Merrill  
1028
 
1029
        * typeck.c (build_conditional_expr): Fix handling of __null.
1030
 
1031
        * decl2.c (comdat_linkage): New fn.
1032
        (import_export_vtable): Use it.
1033
        (import_export_decl): Use it.
1034
        * method.c (make_thunk): Use it.
1035
 
1036
Mon Aug 12 00:09:18 1996  Jason Merrill  
1037
 
1038
        * pt.c (end_template_decl): If we don't actually have parms, return.
1039
        * parse.y (template_header): Accept 'template <>'.
1040
 
1041
        * errfn.c: Allow 5 args.
1042
 
1043
Sun Aug 11 15:20:58 1996  Jason Merrill  
1044
 
1045
        * tree.c (make_temp_vec): New fn.
1046
        * pt.c (push_template_decl): Handle partial specs.
1047
        (instantiate_class_template): Likewise.
1048
        (more_specialized): Use get_bindings.
1049
        (more_specialized_class): New fn.
1050
        (get_class_bindings): New fn.
1051
        (most_specialized_class): New fn.
1052
        (do_function_instantiation): List candidates for ambiguous case.
1053
        * decl.c (duplicate_decls): Lose reference to DECL_TEMPLATE_MEMBERS.
1054
        (shadow_tag): Call push_template_decl for partial specializations.
1055
        * parse.y: Likewise.
1056
        * cp-tree.h (DECL_TEMPLATE_SPECIALIZATIONS): Replaces
1057
        DECL_TEMPLATE_MEMBERS.
1058
        * call.c (print_z_candidates): Reduce duplication.
1059
 
1060
Fri Aug  9 14:36:08 1996  Jason Merrill  
1061
 
1062
        * decl2.c (lang_decode_option): Allow -fansi-overloading.
1063
 
1064
Thu Aug  8 17:04:18 1996  Jason Merrill  
1065
 
1066
        * pt.c (get_bindings): New fn.
1067
        (most_specialized): Likewise.
1068
        (do_function_instantiation): Use them.
1069
        (add_maybe_template): New fn.
1070
        * cp-tree.h (DECL_MAYBE_TEMPLATE): New macro.
1071
        * call.c (build_new_op): Handle guiding decls.
1072
        (build_new_function_call): Likewise.
1073
        * decl2.c (finish_file): Likewise.
1074
 
1075
        * decl2.c (mark_used): Do synthesis here.
1076
        * call.c (build_method_call): Not here.
1077
        (build_over_call): Or here.
1078
        * typeck.c (build_function_call_real): Or here.
1079
        * tree.c (bot_manip): Call mark_used on functions used in default
1080
        args.
1081
 
1082
Thu Aug  8 17:48:16 1996  Michael Meissner  
1083
 
1084
        * decl2.c (import_export_vtable): Delete code that disabled vtable
1085
        heuristic on systems with ASM_OUTPUT_EXTERNAL.
1086
 
1087
Wed Aug  7 12:44:11 1996  Jason Merrill  
1088
 
1089
        * typeck.c (build_x_function_call): Handle static call context
1090
        better.
1091
 
1092
        * decl.c (finish_function): Set the DECL_CONTEXT of the result to
1093
        the function, not its outer block.
1094
 
1095
        * call.c (build_field_call): Pass fields on to build_opfncall
1096
        regardless of TYPE_OVERLOADS_CALL_EXPR.
1097
        (build_method_call): Pass on to build_new_method_call sooner.
1098
 
1099
        * typeck.c (build_ptrmemfunc): Just return what instantiate_type
1100
        gives us.
1101
        * class.c (instantiate_type): Don't put a POINTER_TYPE to
1102
        METHOD_TYPE on an expression.  Also make a copy of rhs instead of
1103
        modifying it.
1104
 
1105
Tue Aug  6 12:58:46 1996  Jason Merrill  
1106
 
1107
        * call.c (compare_ics): Handle qual_conv after lvalue_conv.
1108
        (add_builtin_candidate): Don't take enums for ++.
1109
        (build_new_method_call): Handle non-aggregates and field calls.
1110
        Move new overloading code from...
1111
        * cvt.c: Here.
1112
 
1113
        * decl.c (grokparms): Don't check default args in templates.
1114
 
1115
Mon Aug  5 17:17:06 1996  Jason Merrill  
1116
 
1117
        * cvt.c (build_new_op): Fix args to build_unary_op.
1118
        (add_builtin_candidates): Don't call type_promotes_to on float.
1119
 
1120
        * decl.c (grokparms): Check the type of the default arg.
1121
 
1122
        * cvt.c (build_new_op): Pass non-overloaded cases on rather than
1123
        returning NULL_TREE.
1124
 
1125
        * typeck.c (build_x_binary_op): Avoid doing extra work.
1126
        (build_x_unary_op): Likewise.
1127
        (build_x_conditional_expr): Likewise.
1128
        * cvt.c (build_over_call): Return.
1129
        (add_builtin_candidate): Fix MEMBER_REF.
1130
        (build_new_op): Likewise.
1131
 
1132
Mon Aug  5 17:07:47 1996  Mike Stump  
1133
 
1134
        * method.c (build_overload_name): Put bug fix into code but leave
1135
        disabled for now so we can be bug compatible with older releases
1136
        that do repeats incorrectly.  In the future, we can enable it.
1137
 
1138
Mon Aug  5 13:46:28 1996  Jason Merrill  
1139
 
1140
        * cvt.c (convert_like): Don't call build_cplus_new twice.
1141
 
1142
        * call.c, cp-tree.h, cvt.c, decl2.c, init.c, method.c, pt.c, typeck.c:
1143
        Control new overloading code with -fansi-overloading.
1144
 
1145
Sun Aug  4 15:29:11 1996  Jason Merrill  
1146
 
1147
        * cvt.c (build_over_call): Call build_cplus_new.
1148
        * call.c (build_method_call): Likewise.
1149
        * typeck.c (build_function_call_real): Likewise.
1150
        (build_conditional_expr): If both operands are TARGET_EXPRs, wrap
1151
        the COND_EXPR in a TARGET_EXPR so they use the same slot.
1152
 
1153
        * cvt.c (build_up_reference): Propagate INDIRECT_BIND to
1154
        recursive calls.
1155
        * typeck.c (complete_type): Propagate
1156
        TYPE_NEEDS_{CONSTRUCTING,DESTRUCTOR}.
1157
 
1158
Sat Aug  3 14:05:07 1996  Jason Merrill  
1159
 
1160
        * cvt.c (joust): More ?: kludging.  Sigh.
1161
        (build_over_call): Don't try to synthesize global fns.
1162
 
1163
        * search.c (lookup_conversions): Use binfo marking.
1164
 
1165
Sat Aug  3 12:33:42 1996  Bob Manson  
1166
 
1167
        * search.c (build_mi_matrix): Use the correct value of cid
1168
        when determining the new mi_size.
1169
 
1170
Sat Aug  3 01:27:41 1996  Jason Merrill  
1171
 
1172
        * cvt.c (add_builtin_candidates): Do consider type conversion ops
1173
        for the first parms of += et al.
1174
        (strip_top_quals): New fn.
1175
        (reference_binding): Use it instead of TYPE_MAIN_VARIANT.
1176
        (implicit_conversion): Likewise.
1177
        (add_builtin_candidates): Be careful about arrays.
1178
        (build_new_method_call): Handle vtable optimization.
1179
 
1180
Fri Aug  2 01:26:59 1996  Jason Merrill  
1181
 
1182
        * cp-tree.h (LOOKUP_NO_TEMP_BIND): New flag.
1183
        * cvt.c (reference_binding): Use it.
1184
        (implicit_conversion): Use it.
1185
        (add_builtin_candidate, COND_EXPR): Use it.
1186
 
1187
        * cvt.c (build_new_function_call): Check for error args.
1188
 
1189
        * typeck.c (comptypes): Just check DERIVED_FROM_P, not UNIQUELY.
1190
 
1191
        * gxx.gperf: Add __null.
1192
        * hash.h: Regenerate.
1193
        * lex.h: Add RID_NULL.
1194
        * lex.c (init_lex): Create null_pointer_node here, stick it in
1195
        RID_NULL.
1196
        * decl.c (init_decl_processing): Still set its type here.
1197
        * cvt.c (cp_convert_to_pointer): Don't produce null_pointer_node.
1198
        (convert_to_pointer_force): Likewise.
1199
        (null_ptr_cst_p): Check for null_pointer_node; only accept (void*)0
1200
        if (! pedantic).
1201
        * call.c (convert_harshness): Use null_ptr_cst_p.
1202
        * typeck.c (convert_for_assignment): Likewise.  Don't produce
1203
        null_pointer_node.
1204
 
1205
        * error.c (args_as_string): Handle lists of actual args, too.
1206
        * cvt.c (null_ptr_cst): Support (void*)0 for now.
1207
        (build_user_type_conversion_1): Improve diagnostics.
1208
        (build_new_function_call): Likewise.
1209
        (build_object_call): Likewise.
1210
        (build_new_method_call): Likewise.  Move call before def diagnostic...
1211
        (build_over_call): Here.
1212
 
1213
        * cvt.c (build_new_method_call): Don't complain about no match if
1214
        LOOKUP_SPECULATIVELY.
1215
        (build_over_call): Fix 'this' for virtual fn.
1216
        (build_new_method_call): Add diagnostic.
1217
 
1218
Thu Aug  1 16:45:09 1996  Jason Merrill  
1219
 
1220
        * cvt.c (add_function_candidate): Expect 'this' and 'in_chrg' for
1221
        constructors to be passed in.
1222
        (build_over_call): Likewise.
1223
        (build_user_type_conversion_1): Pass them in.
1224
        (convert_like): Likewise.
1225
        (build_object_call): Handle overloaded conversions.
1226
        (build_over_call): Pass the right args to build_vfn_ref.
1227
        (standard_conversion): Fix pmf convs.
1228
        (joust): Handle comparing statics and non-statics.
1229
        (build_new_method_call): New fn.
1230
        * call.c (build_method_call): Call it if NEW_OVER.
1231
 
1232
Thu Aug  1 16:06:14 1996  Mike Stump  
1233
 
1234
        * lex.c (do_identifier): Don't use %O on IDENTIFIER_OPNAME_Ps, use
1235
        %D instead.
1236
 
1237
Thu Aug  1 15:24:02 1996  Mike Stump  
1238
 
1239
        * except.c (expand_throw): Use maybe_build_cleanup_and_delete
1240
        instead of just maybe_build_cleanup so that we deallocate the
1241
        thrown object.
1242
 
1243
Thu Aug  1 15:18:00 1996  Brendan Kehoe  
1244
 
1245
        * decl2.c (finish_prevtable_vardecl): Make non-static for pt.c's use.
1246
        * cp-tree.h (finish_prevtable_vardecl): Add decl.
1247
 
1248
Thu Aug  1 11:53:51 1996  Bob Manson  
1249
 
1250
        * pt.c (instantiate_class_template): Call complete_type.  Also, if
1251
        we're at the end of the file and we just instantiated a template
1252
        class with a vtable, call finish_prevtable_vardecl.
1253
 
1254
        * error.c (dump_decl): Don't explode (or explode more gracefully
1255
        as appropriate) if the object being dumped has a null type.
1256
        (dump_expr): Likewise.
1257
 
1258
        * search.c (build_mi_matrix): Ensure that mi_size is large enough,
1259
        by counting the number of nodes that we'll need before allocating
1260
        the array.
1261
        (lookup_fnfields): Fix comment.
1262
        (breadth_first_search): Fix comment.
1263
 
1264
Wed Jul 31 09:57:05 1996  Jason Merrill  
1265
 
1266
        * pt.c (instantiate_class_template): Propagate TYPE_PACKED and
1267
        TYPE_ALIGN.
1268
        * class.c (finish_struct): Call cplus_decl_attributes here.
1269
        (finish_struct_1): Not here.
1270
        * cp-tree.h: Adjust.
1271
 
1272
        * pt.c (type_unification): New parameter STRICT.
1273
        (unify): If STRICT, don't allow cv addition or base deduction.
1274
        * call.c, class.c, cvt.c, cp-tree.h: Adjust.
1275
 
1276
Tue Jul 30 13:06:13 1996  Jason Merrill  
1277
 
1278
        * search.c (get_template_base{_recursive}): New fns.
1279
        * pt.c (more_specialized): New fn.
1280
        (do_function_instantiation): Use it.
1281
        (unify): Handle base deduction.
1282
        * cvt.c (joust): Use more_specialized.
1283
        Don't arbitrarily choose between non-builtin candidates.
1284
        (build_over_call): Call require_complete_type.
1285
 
1286
        * decl.c (start_function): Statics are static even in a #pragma
1287
        interface file.
1288
 
1289
        * decl2.c (import_export_vtable): Disable vtable heuristic on
1290
        systems with ASM_OUTPUT_EXTERNAL.
1291
 
1292
        * cvt.c (compare_ics): Fix comparison of PMEM_CONV and BASE_CONV.
1293
        (standard_conversion): No std conv to enum type.
1294
 
1295
        * cvt.c (standard_conversion): Fix order of args to DERIVED_FROM_P
1296
        for ptm's.
1297
 
1298
        * cvt.c (reference_binding): Bind directly to a base subobject of
1299
        a class rvalue.
1300
 
1301
        * cvt.c (build_new_op): Enforce access control.
1302
 
1303
Tue Jul 30 09:22:53 1996  Bob Manson  
1304
 
1305
        * typeck2.c (process_init_constructor): When scanning the
1306
        union for a named field, skip things that aren't FIELD_DECLs.
1307
 
1308
        * method.c (synthesize_method): Don't scan fndecl's rtl if
1309
        we're at the end of the file; just assume the function can't
1310
        be inlined.
1311
 
1312
Mon Jul 29 15:48:30 1996  Jason Merrill  
1313
 
1314
        * cvt.c (build_builtin_candidate): Stick a dummy conversion in if
1315
        it failed.
1316
 
1317
        * cvt.c (build_user_type_conversion_1): Handle overloaded
1318
        conversion ops.
1319
 
1320
        * cvt.c (add_builtin_candidates): Don't consider type conversion
1321
        operators for the first parameter of operator=.
1322
 
1323
Mon Jul 29 15:33:55 1996  Bob Manson  
1324
 
1325
        * typeck.c (complete_type): Only call layout_type if we're not
1326
        expanding a template.
1327
 
1328
Mon Jul 29 14:40:38 1996  Jason Merrill  
1329
 
1330
        * cvt.c (compare_ics): Oops.
1331
 
1332
        * cvt.c (op_error): Oops.
1333
 
1334
        * cp-tree.def: Add RVALUE_CONV, rename EXACT_CONV to IDENTITY_CONV.
1335
        * cvt.c: Add IDENTITY_RANK before others.  Use real_lvalue_p.
1336
        (build_conv): Use them.
1337
        (implicit_conversion): Use them.
1338
        (convert_like): Handle them.
1339
        (build_new_op): Handle builtin COND_EXPR again.
1340
        (add_builtin_candidates): Strip cv-quals.  Fix oops.  Include enums
1341
        in lists of types for COND_EXPR.
1342
        (add_builtin_candidate): Add enum candidates for COND_EXPR.
1343
 
1344
Mon Jul 29 12:05:40 1996  Bob Manson  
1345
 
1346
        * typeck.c (build_modify_expr): Always attempt to build a call to
1347
        the assignment operator, even if we're using a default one.
1348
        (convert_for_initialization): Call complete_type.
1349
 
1350
Mon Jul 29 11:25:08 1996  Jason Merrill  
1351
 
1352
        * cvt.c (reference_binding): A REF_BIND gets the reference type.
1353
        (implicit_conversion): Likewise.
1354
        (convert_like): Likewise.
1355
        (compare_ics): Likewise.
1356
        (compare_qual): Likewise.
1357
        (print_z_candidates): Handle no candidates.
1358
        (build_new_op): Don't handle builtin COND_EXPR for now.
1359
 
1360
Sat Jul 27 11:27:47 1996  Stan Shebs  
1361
 
1362
        * cvt.c (build_builtin_candidate): Init local var in an ANSI way.
1363
 
1364
Fri Jul 26 01:07:22 1996  Jason Merrill  
1365
 
1366
        * cvt.c (joust): If the candidates are the same, arbitrarily pick one.
1367
 
1368
        * cvt.c (build_builtin_candidate): Oops.
1369
        (build_new_op): Oops.
1370
 
1371
        * method.c (build_opfncall): Pass COND_EXPR on.
1372
        * cvt.c (build_builtin_candidate): Reorganize, support COND_EXPR.
1373
        (add_builtin_candidate{,s}): Likewise.
1374
        (add_builtin_candidates): Likewise.
1375
        (print_z_candidates, op_error, build_new_op): Likewise.
1376
        (type_decays_to): New fn.
1377
        * lex.c (init_lex): Just say ?: for COND_EXPR.
1378
 
1379
Thu Jul 25 09:33:33 1996  Jason Merrill  
1380
 
1381
        * typeck.c (complete_type): Call layout_type rather than building
1382
        a new array type.
1383
 
1384
        * cvt.c (add_builtin_candidate): Pointer arithmetic candidates
1385
        only use ptrdiff_t.
1386
 
1387
Wed Jul 24 12:45:08 1996  Jason Merrill  
1388
 
1389
        * cvt.c: Always compile the new overloading code (but don't use it).
1390
        (implicit_conversion): Add a BASE_CONV when converting to
1391
        the same class type.
1392
        (convert_like): Handle BASE_CONV.
1393
 
1394
Tue Jul 23 12:46:30 1996  Jason Merrill  
1395
 
1396
        * cvt.c (build_new_op): Support {MAX,MIN}_EXPR.
1397
        (add_builtin_candidate): Likewise.
1398
 
1399
        NEW_OVER changes:
1400
        * typeck.c (build_x_function_call): Try an operator function
1401
        whenever we call an object of class type.
1402
        * method.c (build_opfncall): Pass CALL_EXPRs through.
1403
        * cvt.c (implicit_conversion): Do const-ref case first.
1404
        (add_conv_candidate, build_object_call, op_error): New fns.
1405
        (ptr_complete_ob, TYPE_PTROB_P): void is not an object type.
1406
        ({add,build}_builtin_candidate{,s}, print_z_candidates): Display
1407
        builtin candidates.
1408
        (build_new_op): Handle CALL_EXPR.  Don't try to decay void.
1409
        Fall back on preincrement handling.  Use op_error.
1410
        Handle warn_synth.
1411
        (convert_like): Pass INDIRECT_BIND.  Don't try to do anything with
1412
        an error_mark_node.
1413
        (build_over_call): Handle PROMOTE_PROTOTYPES and ellipsis promotions
1414
        properly.
1415
 
1416
Mon Jul 22 16:21:55 1996  Bob Manson  
1417
 
1418
        * pt.c (tsubst_expr): Handle CONTINUE_STMT.
1419
 
1420
Mon Jul 22 15:38:58 1996  Mike Stump  
1421
 
1422
        * typeck.c (build_component_ref_1): Use build_component_ref
1423
        instead of open coding it here.
1424
 
1425
Mon Jul 22 12:18:54 1996  Jason Merrill  
1426
 
1427
        * g++.c (main): Don't link with -lg++.
1428
 
1429
        NEW_OVER changes:
1430
        * cvt.c (convert_to_reference): Don't use convert_from_reference on
1431
        result of build_type_conversion.
1432
        (cp_convert): Only call build_method_call for ctors if
1433
        build_type_conversion failed.
1434
        (ptr_complete_ob): New function.
1435
        (TYPE_PTR{,OB,MEM}_P): New macros.
1436
        ({add,build}_builtin_candidate{,s}): New functions.
1437
        (print_z_candidates): Handle builtins.
1438
        (build_user_type_conversion_1): Don't use conversion fns for
1439
        converting to a base type.
1440
        (build_user_type_conversion_1): Set ICS_USER_FLAG on AMBIG_CONVs.
1441
        (build_user_type_conversion): Use convert_from_reference.
1442
        (build_new_op): New function.
1443
        (build_over_call): Fix handling of methods.
1444
        (compare_ics): Handle AMBIG_CONV properly.
1445
        * typeck2.c: Increment abort count.
1446
        * method.c (build_opfncall): Forward most requests to build_new_op.
1447
        * cp-tree.h (IS_OVERLOAD_TYPE): Tweak.
1448
 
1449
Fri Jul 19 17:59:29 1996  Brendan Kehoe  
1450
 
1451
        * error.c (dump_expr, case CONSTRUCTOR, case CAST_EXPR): Take out
1452
        invalid second argument to dump_expr_list.
1453
 
1454
Fri Jul 19 14:04:05 1996  Mike Stump  
1455
 
1456
        * decl.c (lookup_name_real): Make sure we do obj->X::i correctly.
1457
 
1458
Thu Jul 18 14:48:23 1996  Bob Manson  
1459
 
1460
        * decl2.c (import_export_vtable): ASM_OUTPUT_EXTERNAL, not
1461
        ASSEMBLE_EXTERNAL.
1462
 
1463
Mon Jul 15 17:48:43 1996  Mike Stump  
1464
 
1465
        * typeck2.c (process_init_constructor): New pedwarn for using { }
1466
        to initialize a pointer to member function.
1467
        * typeck.c (build_ptrmemfunc1): Avoid use of digest_init so that
1468
        we can avoid the new error.
1469
 
1470
Mon Jul 15 15:42:03 1996  Mike Stump  
1471
 
1472
        * typeck.c (build_ptrmemfunc1): New function to hide details of
1473
        pointer to member functions better.
1474
 
1475
Mon Jul 15 14:23:02 1996  Mike Stump  
1476
 
1477
        * init.c (resolve_offset_ref): Resolve OFFSET_REFs that are
1478
        methods into the actual method, as we know the implied object is
1479
        not used.
1480
 
1481
Mon Jul 15 13:08:29 1996  Brendan Kehoe  
1482
 
1483
        * parse.y (maybecomma_warn): Only emit the pedwarn if we're not
1484
        inside a system header.
1485
 
1486
Fri Jul 12 16:30:05 1996  Bob Manson  
1487
 
1488
        * call.c (build_method_call): Call complete_type on the
1489
        instance type.
1490
 
1491
Thu Jul 11 17:16:40 1996  Mike Stump  
1492
 
1493
        * typeck.c (build_component_ref): Always build up an OFFSET_REF
1494
        for obj_ptr->func so that we can know which object to use in a
1495
        method call.
1496
 
1497
Wed Jul 10 19:36:37 1996  Mike Stump  
1498
 
1499
        * typeck.c (build_ptrmemfunc): Remove sorry, now we can cast
1500
        around things.  Also improve maintainability.
1501
 
1502
Wed Jul 10 18:20:11 1996  Bob Manson  
1503
 
1504
        * decl.c (grokdeclarator): Check for overflow when evaluating an
1505
        array dimension.
1506
 
1507
Wed Jul 10 17:26:19 1996  Jason Merrill  
1508
 
1509
        * cvt.c (cp_convert): Don't check for ambiguity with constructor
1510
        if NEW_OVER.
1511
 
1512
        * typeck.c (build_x_function_call): Pass function overload
1513
        questions to new overloading code if NEW_OVER.
1514
        * init.c (expand_aggr_init_1): Only check for type conversion ops
1515
        if we're doing copy-initialization (i.e. LOOKUP_ONLYCONVERTING).
1516
        Don't check for ambiguity with constructor if NEW_OVER.
1517
        * cvt.c (convert_to_reference): Dereference the result of a type
1518
        conversion operator.
1519
        (build_conv): Propagate ICS_USER_FLAG.
1520
        (implicit_conversion): Call instantiate_type.
1521
        Pass LOOKUP_ONLYCONVERTING instead of LOOKUP_NORMAL.
1522
        (add_function_candidate): Fix cv-quals on argtype.
1523
        (print_z_candidates): New function.
1524
        (build_new_function_call): Call it.
1525
        (build_user_type_conversion_1): If LOOKUP_ONLYCONVERTING, don't
1526
        consider non-converting constructors.
1527
        Call print_z_candidates.
1528
        Return an AMBIG_CONV for an ambiguous conversion.
1529
        (build_user_type_conversion): Handle AMBIG_CONV.
1530
        (convert_like): Fix test for building TARGET_EXPR.
1531
        Call instantiate_type.
1532
        Handle AMBIG_CONV and LVALUE_CONV.
1533
        (build_over_call): Handle 0 args and ellipsis.
1534
        * cp-tree.def: Add AMBIG_CONV.
1535
 
1536
Tue Jul  9 17:48:48 1996  Mike Stump  
1537
 
1538
        * decl.c (lookup_name_real): If we find mem in obj when parsing
1539
        `obj->mem', make sure we return the right value.
1540
 
1541
Tue Jul  9 16:11:28 1996  Bob Manson  
1542
 
1543
        * search.c (get_base_distance): Call complete_type.
1544
 
1545
Tue Jul  9 12:46:34 1996  Mike Stump  
1546
 
1547
        * decl.c (store_bindings): Make static.
1548
 
1549
Mon Jul  8 16:42:31 1996  Jason Merrill  
1550
 
1551
        * init.c (expand_aggr_init_1): Don't check type conversions if
1552
        NEW_OVER.
1553
 
1554
        * cvt.c (z_candidate): Put back template field.
1555
        (add_function_candidate): Set it.
1556
        (add_template_candidate): Likewise.
1557
        (joust): Use it.
1558
        (compare_qual): Handle references and pointers to members.
1559
        (compare_ics): Handle reference bindings.
1560
 
1561
        * decl.c (duplicate_decls): Propagate DECL_ONE_ONLY.
1562
 
1563
Mon Jul  8 16:18:56 1996  Bob Manson  
1564
 
1565
        * call.c (compute_conversion_costs): Call complete_type.
1566
 
1567
        * tree.c (vec_binfo_member): Use comptypes instead of comparing
1568
        pointers, so we can handle template parameters.
1569
 
1570
Fri Jul  5 16:51:53 1996  Bob Manson  
1571
 
1572
        * cvt.c (cp_convert_to_pointer): We have to call complete_type
1573
        here; let's make it explicit instead of a side effect of an
1574
        error check.
1575
 
1576
Wed Jul  3 16:29:51 1996  Jason Merrill  
1577
 
1578
        * cvt.c (z_candidate): Remove template field.
1579
        (reference_binding): Handle binding to temporary.
1580
        (implicit_conversion): Likewise.
1581
        (add_function_candidate): Handle artificial constructor parms.
1582
        Handle functions with too few parms.
1583
        (add_template_candidate): New function.
1584
        (build_user_type_conversion_1): Handle constructors.
1585
        (convert_like): Likewise.
1586
        (build_over_call): Likewise.
1587
        (build_new_function_call): Support templates.
1588
        (compare_ics): Fix reference, inheritance handling.
1589
 
1590
Mon Jul  1 22:58:18 1996  Bob Manson  
1591
 
1592
        * decl.c: Add signed_size_zero_node.
1593
        (init_decl_processing): Build it.
1594
        * class.c (prepare_fresh_vtable): Use it instead of size_zero_node
1595
        when we're trying to make a negative delta.
1596
 
1597
Mon Jul  1 17:56:19 1996  Brendan Kehoe  
1598
 
1599
        Stop doing this damn index==strchr variable name confusion.
1600
        * class.c (add_virtual_function): Change local var INDEX to be
1601
        named IDX.
1602
        (add_method): Likewise.
1603
        * lex.c (print_parse_statistics): Likewise.
1604
        * search.c (make_memoized_table_entry): Likewise.
1605
        (lookup_fnfields_here): Likewise.
1606
        (lookup_field): Likewise.
1607
        (lookup_fnfields): Likewise.
1608
        (get_baselinks): Likewise.
1609
        * sig.c (build_signature_table_constructor): Likewise.
1610
        (build_signature_method_call): Likewise.
1611
        * typeck.c (build_x_array_ref): Change INDEX parm to be named IDX.
1612
        (get_member_function_from_ptrfunc): Likewise.
1613
        (build_ptrmemfunc): Change local var INDEX to be IDX.
1614
        (c_expand_start_case): Likewise.
1615
 
1616
Sat Jun 29 14:05:46 1996  Jason Merrill  
1617
 
1618
        * cvt.c (cp_convert_to_pointer): Move user-defined type conversion
1619
        handling to before extraction of TYPE_PTRMEMFUNC_FN_TYPE.
1620
        (convert_to_reference): Use build_type_conversion to convert to
1621
        the reference type directly.
1622
        (standard_conversion): Fix void* case, non-conversions.
1623
        (reference_binding): Fix expr == 0 case, non-conversions.
1624
        (convert_like): Support REF_BIND.
1625
        (compare_qual): Split out from compare_ics.
1626
        (compare_ics): Use it, handle icses with only a qual_conv.
1627
 
1628
        * init.c (expand_vec_init): Don't crash if decl is NULL.
1629
 
1630
Fri Jun 28 11:52:51 1996  Stan Shebs  
1631
 
1632
        * mpw-config.in: New file, configury for Mac MPW.
1633
        * mpw-make.sed: New file, makefile editing for MPW.
1634
 
1635
Thu Jun 27 15:18:30 1996  Jason Merrill  
1636
 
1637
        * pt.c (instantiate_class_template): Call repo_template_used.
1638
 
1639
        * search.c (lookup_conversions): Only lookup conversions in
1640
        complete types.
1641
 
1642
Thu Jun 27 12:59:53 1996  Brendan Kehoe  
1643
 
1644
        * cp-tree.def: Renamed from tree.def, to avoid confusion with
1645
        gcc's tree.def.
1646
        * cp-tree.h, lex.c: Include cp-tree.def.
1647
        * Makefile.in (CXX_TREE_H): Reference cp-tree.def.
1648
 
1649
Wed Jun 26 18:29:47 1996  Bob Manson  
1650
 
1651
        * init.c (build_vec_delete_1): Call complete_type.
1652
 
1653
Mon Jun 24 17:17:32 1996  Mike Stump  
1654
 
1655
        * except.c (start_anon_func): Make sure anonymous functions are
1656
        never external.
1657
 
1658
Fri Jun 21 15:10:58 1996  Jason Merrill  
1659
 
1660
        * decl.c (finish_function): If function_depth > 1, set nested.
1661
 
1662
        * decl2.c (grokbitfield): Revert Bob's change.
1663
        * class.c (finish_struct_1): Fix handling of named bitfield widths.
1664
 
1665
Thu Jun 20 23:35:38 1996  Jason Merrill  
1666
 
1667
        * pt.c (add_pending_template): Handle types.
1668
        (lookup_template_class): With -fexternal-templates, just add the class
1669
        to pending_templates instead of instantiating it now.
1670
        * decl2.c (finish_file): Handle types in pending_templates.
1671
 
1672
Thu Jun 20 14:08:40 1996  Bob Manson  
1673
 
1674
        * decl2.c (grokbitfield): Handle constant decls appropriately.
1675
        Give an appropriate error message now instead of spewing core
1676
        later.
1677
 
1678
Thu Jun 20 13:01:51 1996  Jason Merrill  
1679
 
1680
        * decl2.c: Don't turn on thunks by default for now.
1681
 
1682
Wed Jun 19 11:37:04 1996  Jason Merrill  
1683
 
1684
        * typeck.c (complete_type): Handle error_mark_node.
1685
        (common_type, OFFSET_TYPE): Handle template_type_parms.
1686
 
1687
Tue Jun 18 10:02:15 1996  Jason Merrill  
1688
 
1689
        * pt.c (instantiate_decl): If at_eof, call import_export_decl
1690
        regardless of DECL_INLINE.
1691
 
1692
        * typeck.c (mark_addressable): Set TREE_ADDRESSABLE on CONSTRUCTORs.
1693
 
1694
        * class.c (finish_struct_bits): Copy TYPE_SIZE.
1695
 
1696
        * rtti.c (build_dynamic_cast): Support templates.
1697
        * tree.def: Support DYNAMIC_CAST_EXPR.
1698
        * pt.c (tsubst_copy): Likewise.
1699
        * decl2.c (build_expr_from_tree): Likewise.
1700
 
1701
Mon Jun 17 15:23:36 1996  Jason Merrill  
1702
 
1703
        * typeck.c (build_static_cast): Support templates.
1704
        (build_const_cast): Likewise.
1705
        * tree.def: Support CONST/STATIC_CAST_EXPR.
1706
        * pt.c (tsubst_copy): Likewise.
1707
        * decl2.c (build_expr_from_tree): Likewise.
1708
 
1709
Sun Jun 16 12:33:57 1996  Jason Merrill  
1710
 
1711
        * decl2.c (finish_vtable_vardecl): Don't trust
1712
        TREE_SYMBOL_REFERENCED for vtables of local classes.
1713
 
1714
Fri Jun 14 18:13:36 1996  Jason Merrill  
1715
 
1716
        * pt.c (tsubst_copy): Handle operator T.
1717
 
1718
Wed Jun 12 17:52:40 1996  Brendan Kehoe  
1719
 
1720
        * init.c (build_delete): Move creation of PARMS inside test of
1721
        TYPE_HAS_DESTRUCTOR, since it's never used outside of that block.
1722
 
1723
Tue Jun 11 15:09:18 1996  Bob Manson  
1724
 
1725
        * typeck.c (build_conditional_expr): Don't assume that
1726
        the arguments to ?: are always pointers or records.
1727
 
1728
Tue Jun 11 13:56:23 1996  Jason Merrill  
1729
 
1730
        * decl2.c (import_export_decl): Still emit static/weak/comdat
1731
        copies of inline template functions with -fno-implicit-templates.
1732
 
1733
Tue Jun 11 11:42:13 1996  Bob Manson  
1734
 
1735
        * init.c (build_delete): Determine the complete basetype
1736
        path to the destructor we're calling.
1737
 
1738
Fri Jun  7 15:30:10 1996  Bob Manson  
1739
 
1740
        * decl.c (build_enumerator): Always copy the INTEGER_CST used to
1741
        initialize the enum, because we really and truly don't know where
1742
        it came from.
1743
        (start_enum): Don't copy integer_zero_node because
1744
        build_enumerator will do it.
1745
 
1746
Fri Jun  7 11:11:09 1996  Jason Merrill  
1747
 
1748
        * decl.c (finish_function): Do access control on base destructors.
1749
 
1750
        * pt.c (tsubst, case FUNCTION_DECL): Set up
1751
        IDENTIFIER_GLOBAL_VALUE for member functions so pushdecl doesn't
1752
        hose us.
1753
 
1754
Fri Jun  7 10:37:33 1996  Mike Stump  
1755
 
1756
        * cvt.c (build_up_reference): If we have already extended the
1757
        lifetime of the temporary, don't try it again.
1758
        * typeck.c (c_expand_return): Don't try and convert the return
1759
        value twice when we want a reference, once is enough.
1760
 
1761
Tue Jun  4 15:41:45 1996  Jason Merrill  
1762
 
1763
        * pt.c (tsubst_expr, case DECL_STMT): Don't pass
1764
        LOOKUP_ONLYCONVERTING at all for now.
1765
 
1766
        * search.c (add_conversions): Put the conversion function in
1767
        TREE_VALUE, the basetype in TREE_PURPOSE.
1768
        * cvt.c (build_type_conversion): Adjust.
1769
        * cvt.c (build_expr_type_conversion): Adjust.
1770
        * call.c (user_harshness): Adjust.
1771
 
1772
Mon Jun  3 15:30:52 1996  Jason Merrill  
1773
 
1774
        * method.c (emit_thunk): Pretend this is a FUNCTION_DECL for the
1775
        backend's benefit.
1776
 
1777
Mon Jun 10 18:58:19 1996  Mike Stump  
1778
 
1779
        * except.c (expand_start_catch_block): Add a dummy region, if we
1780
        get an error, so that we can avoid core dumping later.
1781
 
1782
Fri May 31 14:56:13 1996  Mike Stump  
1783
 
1784
        * cp-tree.h (OFFSET_REF): Remove.
1785
        * tree.def (CP_OFFSET_REF): Rename to OFFSET_REF.
1786
        * expr.c (cplus_expand_expr): Cleanup callers of expand_expr.
1787
        * init.c (expand_aggr_init_1): Likewise.
1788
        (build_new): Likewise.
1789
        * typeck.c (expand_target_expr): Likewise.
1790
 
1791
Fri May 31 14:22:08 1996  Jason Merrill  
1792
 
1793
        * typeck.c (build_modify_expr): Don't use TREE_VALUE on a
1794
        TARGET_EXPR.
1795
 
1796
Wed May 29 17:04:33 1996  Mike Stump  
1797
 
1798
        * cvt.c (build_up_reference): Redo how and when temporaries are
1799
        created.
1800
        * decl.c (grok_reference_init): Don't try and be smart about
1801
        running cleanups.
1802
 
1803
Wed May 29 16:02:08 1996  Mike Stump  
1804
 
1805
        * cvt.c (build_up_reference): Add NULL_TREE to all calls to build
1806
        (TARGET_EXPR...), now that it has 4 arguments.
1807
        * tree.c (build_cplus_new): Likewise.
1808
 
1809
Thu May 23 16:40:30 1996  Jason Merrill  
1810
 
1811
        * error.c (dump_expr, case CAST_EXPR): Handle T() properly.
1812
 
1813
        * pt.c (instantiate_decl): Don't call push/pop_cp_function_context.
1814
        * decl.c (struct saved_scope): Remove named_labels,
1815
        {base,member}_init_list.
1816
        (maybe_push_to_top_level): Don't set them.  Call
1817
        push_cp_function_context if appropriate.
1818
        (pop_from_top_level): Likewise.
1819
 
1820
        * method.c (do_build_assign_ref): Remove obsolete check of
1821
        TYPE_HAS_ASSIGN_REF (basetype).
1822
 
1823
        * decl.c (grokfndecl): Diagnose user definition of
1824
        implicitly-declared methods.
1825
 
1826
Thu May 23 12:13:08 1996  Bob Manson  
1827
 
1828
        * method.c (do_build_copy_constructor): Add code to give
1829
        meaningful error messages instead of crashing.
1830
        (do_build_assign_ref): Don't synthesize assignment operators for
1831
        classes containing reference or const members.
1832
 
1833
        * class.c (struct base_info): Remove cant_synth_copy_ctor
1834
        and cant_synth_asn_ref.
1835
        (finish_base_struct): Remove the code that tries to conditionalize
1836
        synthesis of copy constructors & assignment operators based on
1837
        access permissions.  Instead, let it fail when it tries to
1838
        synthesize the copy constructor.  This will give meaningful error
1839
        messages instead of silently generating code to perform a bitcopy.
1840
 
1841
Wed May 22 11:45:19 1996  Bob Manson  
1842
 
1843
        * lex.c (real_yylex): Remove old-n-crufty #if 0 code for
1844
        determining types for constant values.
1845
 
1846
        * decl.c (struct named_label_list): Use instead of stuffing
1847
        random items into a TREE_LIST node.
1848
        (named_label_uses): Use the new struct.
1849
        (poplevel): Likewise.
1850
        (lookup_label): Likewise.
1851
        (define_label): Add an error message to tell the user the line
1852
        where the goto is located in addition to the destination of the
1853
        goto.
1854
        (init_decl_processing): Use NULL instead of NULL_TREE to initialize
1855
        named_label_uses.
1856
        (finish_function): Likewise.
1857
 
1858
        (start_decl): Complain about defining a static data member
1859
        in a different type from which it was declared.
1860
 
1861
Wed May 22 09:33:23 1996  Jason Merrill  
1862
 
1863
        * cvt.c (build_expr_type_conversion): Adjust.
1864
 
1865
Tue May 21 11:21:56 1996  Jason Merrill  
1866
 
1867
        * call.c (build_method_call): Always convert 'this' to the
1868
        appropriate type.
1869
 
1870
        * search.c (add_conversions): Put the conversion function in
1871
        TREE_VALUE, the type in TREE_PURPOSE.
1872
        * cvt.c (build_type_conversion): Adjust.
1873
        * call.c (user_harshness): Adjust.
1874
 
1875
        * method.c (emit_thunk): Call temporary_allocation and
1876
        permanent_allocation around the ASM_OUTPUT_MI_THUNK case, too.
1877
 
1878
        * tree.c (build_cplus_array_type): Handle tweaking of
1879
        TYPE_MAIN_VARIANT here.
1880
        * typeck.c (common_type): Not here.
1881
 
1882
        * typeck.c (complete_type): Only try to complete an array type if
1883
        it has a domain.
1884
 
1885
Mon May 20 14:55:59 1996  Jason Merrill  
1886
 
1887
        * decl.c (grokvardecl): Call complete_type.
1888
        (grokdeclarator): Call complete_type for PARM_DECLs.
1889
 
1890
Fri May 17 16:41:17 1996  Jason Merrill  
1891
 
1892
        * pt.c (instantiate_class_template): Re-set
1893
        CLASSTYPE_GOT_SEMICOLON after calling finish_struct_1.
1894
 
1895
Fri May 17 14:56:55 1996  Mike Stump  
1896
 
1897
        * cp-tree.h (cp_expand_decl_cleanup): Remove, the backend is now
1898
        smart enough to do it right.
1899
        * tree.c (cp_expand_decl_cleanup): Likewise.
1900
        * decl.c (cp_finish_decl): Use expand_decl_cleanup instead of
1901
        cp_expand_decl_cleanup.
1902
        (store_parm_decls): Likewise.
1903
        (hack_incomplete_structures): Likewise.
1904
        * except.c (push_eh_cleanup): Likewise.
1905
 
1906
Fri May 17 13:13:51 1996  Mike Stump  
1907
 
1908
        * expr.c (expand_expr, cond UNSAVE_EXPR): Move from the C++
1909
        frontend to the backend where it belongs.
1910
        * tree.c (unsave_expr): Likewise.
1911
        (unsave_expr_now): Likewise.
1912
        * tree.def (UNSAVE_EXPR): Likewise.
1913
        * cp-tree.h (unsave_expr): Likewise.
1914
        (unsave_expr_now): Likewise.
1915
 
1916
Fri May 17 11:02:41 1996  Mike Stump  
1917
 
1918
        * init.c (emit_base_init): Make sure the partial EH cleanups live
1919
        on the function_obstack.
1920
 
1921
Thu May 16 15:29:33 1996  Bob Manson  
1922
 
1923
        * expr.c (do_case): Don't try to dereference null TREE_TYPEs
1924
        when checking for pointer types.
1925
 
1926
Thu May 16 13:38:58 1996  Jason Merrill  
1927
 
1928
        * pt.c (instantiate_class_template): Remove obsolete check for
1929
        access declarations.
1930
 
1931
Thu May 16 13:34:15 1996  Mike Stump  
1932
 
1933
        * call.c (build_overload_call): Simplify calls to
1934
        build_overload_call by removing last parameter.
1935
        (build_method_call): Likewise.
1936
        * cp-tree.h: Likewise.
1937
        * method.c (build_opfncall): Likewise.
1938
        * typeck.c (build_x_function_call): Likewise.
1939
 
1940
Thu May 16 13:15:43 1996  Mike Stump  
1941
 
1942
        * call.c (default_parm_conversions): Factor out common code.
1943
        (build_method_call): Use it.
1944
        (build_overload_call_real): Use it.
1945
 
1946
Wed May 15 14:46:14 1996  Mike Stump  
1947
 
1948
        * call.c (build_method_call): Allow implicit & on METHOD_TYPEs,
1949
        but pedwarn as the code is bogus.
1950
        * typeck.c (decay_conversion): Likewise.
1951
        (build_function_call_real): Use build_addr_func instead of
1952
        default_conversion.  Don't allow pointer-to-method functions down
1953
        here.
1954
        (build_unary_op): Use real pointer-to-member functions instead of
1955
        fake ones.
1956
        (build_ptrmemfunc): Use build_addr_func instead of build_unary_op.
1957
        (convert_for_assignment): Removed some obsolete code.
1958
        * decl2.c (reparse_absdcl_as_expr): Pass current_class_ref to
1959
        build_x_function_call instead of current_class_ptr.  Only call
1960
        digest_init once on an initializer, we do this just checking
1961
        TREE_TYPE.
1962
        (build_expr_from_tree): Pass current_class_ref to
1963
        build_x_function_call instead of current_class_ptr.
1964
        * init.c (build_member_call): Likewise.
1965
        * pase.y: Likewise.
1966
        * error.c (dump_expr): Handle OFFSET_REFs better.
1967
        * pt.c (unify): Handle pointer-to-member functions better.
1968
        * decl.c (finish_function): Clear out current_class_ref just like
1969
        we do for current_class_ptr.
1970
 
1971
        * typeck.c (get_delta_difference): Handle virtual bases better.
1972
 
1973
Tue May 14 16:37:37 1996  Jason Merrill  
1974
 
1975
        * sig.c (build_signature_table_constructor): Use the delta for
1976
        the original basetype for this virtual function with thunks.
1977
        (build_signature_method_call): We still need to adjust 'this'
1978
        with thunks.
1979
 
1980
Tue May 14 16:27:25 1996  Mike Stump  
1981
 
1982
        * call.c (build_addr_func): New routine.  Used to get the `real'
1983
        address of a function or a method.  Needed to avoid getting a
1984
        pointer-to-member function.
1985
        (build_call): New routine to build CALL_EXPRs.
1986
        (build_method_call): Use it.
1987
        * cvt.c (convert_to_aggr): Likewise.
1988
        * typeck.c (build_function_call_real): Likewise.
1989
        * sig.c (build_signature_table_constructor): Use build_addr_func.
1990
        * cp-tree.h (build_call, build_addr_func): Declare them.
1991
 
1992
Tue May 14 12:47:47 1996  Mike Stump  
1993
 
1994
        * cp-tree.h (LOOKUP_AGGR): Remove, unused.
1995
        * parse.y: Remove uses of LOOKUP_AGGR.
1996
 
1997
Tue May 14 12:07:51 1996  Mike Stump  
1998
 
1999
        * *.[chy]: Rename current_class_decl to current_class_ptr, and
2000
        C_C_D to current_class_ref.
2001
 
2002
Mon May 13 16:55:23 1996  Jason Merrill  
2003
 
2004
        * call.c (convert_harshness): Tighten up pointer conversions.
2005
 
2006
Sat May 11 04:33:50 1996  Doug Evans  
2007
 
2008
        * decl2.c (finish_vtable_vardecl): Surround DECL_ONE_ONLY with ifdef.
2009
        (finish_file): Likewise.
2010
 
2011
Fri May 10 11:09:57 1996  Jason Merrill  
2012
 
2013
        * cvt.c (convert_fn_ptr): We don't use thunks for pmfs.
2014
 
2015
        * method.c (emit_thunk): Set flag_omit_frame_pointer in default
2016
        code.
2017
 
2018
Thu May  9 18:18:30 1996  Jason Merrill  
2019
 
2020
        * decl2.c: Turn on thunks by default where supported.
2021
 
2022
Tue May  7 20:39:57 1996  Mike Stump  
2023
 
2024
        * cp-tree.h (build_overload_call_maybe): Removed.
2025
        * call.c (build_overload_call_real): Invert meaning of last arg to
2026
        be require_complete.
2027
        (build_overload_call): Likewise.
2028
        * typeck.c (build_x_function_call): Use build_overload_call_real
2029
        instead of build_overload_call_maybe.
2030
 
2031
Mon May  6 01:23:32 1996  Jason Merrill  
2032
 
2033
        * decl2.c (finish_file): Don't try to emit functions that haven't
2034
        been compiled.
2035
 
2036
Fri May  3 09:30:13 1996  Jason Merrill  
2037
 
2038
        * decl2.c (finish_vtable_vardecl): Oops.
2039
 
2040
        * decl.c (maybe_push_to_top_level): Do save previous_class_*.
2041
        Also store the bindings from previous_class_values.
2042
        (pop_from_top_level): Restore them.
2043
 
2044
Thu May  2 21:56:49 1996  Jason Merrill  
2045
 
2046
        * decl2.c (finish_vtable_vardecl): Only write out vtable if its
2047
        symbol has been referenced.
2048
        (finish_file): Re-join synthesis/vtable loop with inline emission
2049
        loop, disable inlining when an inline is output.
2050
 
2051
Thu May  2 17:20:02 1996  Mike Stump  
2052
 
2053
        * except.c (init_exception_processing): Setup saved_in_catch.
2054
        (push_eh_cleanup): Reset __eh_in_catch.
2055
        (expand_start_catch_block): Set __eh_in_catch.
2056
 
2057
Thu May  2 16:21:17 1996  Mike Stump  
2058
 
2059
        * except.c (push_eh_cleanup): Add tracking for whether or not we
2060
        have an active exception object.
2061
        (expand_builtin_throw): Use it to make sure a rethrow without an
2062
        exception object is caught.
2063
 
2064
Thu May  2 11:26:41 1996  Jason Merrill  
2065
 
2066
        * decl.c (maybe_push_to_top_level): Clear out class-level bindings
2067
        cache.
2068
 
2069
Wed May  1 11:26:52 1996  Jason Merrill  
2070
 
2071
        * decl2.c (finish_file): Also use sentries for vars with
2072
        DECL_ONE_ONLY or DECL_WEAK set (should any such happen to be
2073
        created).
2074
 
2075
        * lex.c (handle_cp_pragma): Disable #pragma
2076
        interface/implementation if SUPPORTS_ONE_ONLY > 1.
2077
 
2078
Tue Apr 30 11:25:46 1996  Jason Merrill  
2079
 
2080
        * method.c (emit_thunk): Wrap default case in
2081
        temporary/permanent_allocation.
2082
 
2083
        * method.c (make_thunk): Use DECL_ONE_ONLY.
2084
        (emit_thunk): Call assemble_end_function.
2085
 
2086
Mon Apr 29 15:38:29 1996  Jason Merrill  
2087
 
2088
        * decl2.c (import_export_vtable): Use DECL_ONE_ONLY.
2089
        (import_export_decl): Likewise.
2090
        (finish_prevtable_vardecl): Disable vtable hack if
2091
        SUPPORTS_ONE_ONLY > 1.
2092
 
2093
Mon Apr 29 14:32:47 1996  Mike Stump  
2094
 
2095
        * typeck.c (build_modify_expr): PREINCREMENT_EXPR and
2096
        PREDECREMENT_EXPRs take two arguments, not one.
2097
 
2098
Mon Apr 29 00:27:53 1996  Jason Merrill  
2099
 
2100
        * class.c (build_vtable_entry): Don't build thunks for abstract
2101
        virtuals.
2102
 
2103
        * lex.c (real_yylex): Fix handling of __PRETTY_FUNCTION__ like C
2104
        frontend.
2105
 
2106
Sat Apr 27 16:45:35 1996  Jason Merrill  
2107
 
2108
        * class.c (set_rtti_entry): Use size_zero_node.
2109
        (build_vtable): Likewise.
2110
 
2111
Sat Apr 27 14:48:57 1996  Jason Merrill  
2112
 
2113
        * class.c (finish_struct_1): Pass size_zero_node to set_rtti_entry.
2114
        (prepare_fresh_vtable): Likewise.
2115
 
2116
Fri Apr 26 13:14:14 1996  Jason Merrill  
2117
 
2118
        * method.c (emit_thunk): Call mark_used on the target function.
2119
 
2120
        * call.c (build_method_call): Don't warn about pending templates.
2121
 
2122
Thu Apr 25 14:55:44 1996  Jason Merrill  
2123
 
2124
        * decl2.c (finish_file): Fix list walking logic.
2125
 
2126
        * typeck2.c (check_for_new_type): Only warn if -pedantic.
2127
 
2128
Wed Apr 24 15:41:15 1996  Bob Manson  
2129
 
2130
        * class.c (finish_struct_1): Remove old code for
2131
        dont_allow_type_definitions.
2132
        * cp-tree.h: Likewise.
2133
        * spew.c: Make sure cp-tree.h is included before parse.h, so the
2134
        definition of flagged_type_tree is found before it is used.
2135
        * lex.c: Likewise.
2136
        * parse.y: Added the ftype member to the type union, and changed a
2137
        number of rules to use it instead of ttype.  Added calls to
2138
        check_for_new_type() as appropriate.
2139
        * typeck2.c (check_for_new_type): New function for checking
2140
        if a newly defined type appears in the specified tree.
2141
        * cp-tree.h: Add new type flagged_type_tree.  Add a prototype
2142
        for check_for_new_type().
2143
 
2144
Wed Apr 24 00:36:21 1996  Jason Merrill  
2145
 
2146
        * decl2.c (finish_file): Only use a sentry if the decl is public.
2147
 
2148
        * pt.c (tsubst_expr, DECL_STMT): If we don't have an initializer,
2149
        don't pass LOOKUP_ONLYCONVERTING.
2150
 
2151
Tue Apr 23 17:18:47 1996  Bob Manson  
2152
 
2153
        * typeck.c (common_type): Fix the ARRAY_TYPE case so it
2154
        properly keeps track of const and volatile type modifiers.
2155
 
2156
Tue Apr 23 10:52:56 1996  Jason Merrill  
2157
 
2158
        * tree.c (cp_tree_equal): C++ version of simple_cst_equal.
2159
        * pt.c (comp_template_args): Use it.
2160
 
2161
        * rtti.c (get_tinfo_fn, build_dynamic_cast, expand_*_desc): Call
2162
        assemble_external for artificial function decls.
2163
 
2164
        * decl.c (cp_finish_decl): Oops.
2165
 
2166
Mon Apr 22 17:28:27 1996  Jason Merrill  
2167
 
2168
        * decl2.c (import_export_decl): Put static data member templates
2169
        into common storage, or make them weak, depending on whether they
2170
        are dynamically or statically initialized.
2171
        (get_sentry): New function.
2172
        (finish_file): Do import_export_decl for static data members before
2173
        building the init/fini functions.  Don't init/fini a variable that's
2174
        EXTERNAL.  Use a sentry for variables in common.  Fix mismatching
2175
        push/pop_temp_slots.
2176
        * decl.c (cp_finish_decl): If DECL_NOT_REALLY_EXTERN, do the
2177
        expand_static_init thang.
2178
        * method.c (get_id_2): New function.
2179
 
2180
Mon Apr 22 15:32:45 1996  Bob Manson  
2181
 
2182
        * parse.y (empty_parms): Make sure we use C++-style prototypes
2183
        when we're declaring member functions.
2184
 
2185
Sun Apr 21 10:08:22 1996  Jason Merrill  
2186
 
2187
        * Makefile.in (CONFLICTS): 16 s/r conflicts.
2188
        * parse.y (self_template_type): New nonterminal.
2189
 
2190
Thu Apr 18 08:56:54 1996  Jason Merrill  
2191
 
2192
        * decl.c (make_typename_type): Handle getting a TYPE_DECL for a
2193
        name.
2194
        * parse.y (base_class.1): Allow 'typename foo::bar'.
2195
 
2196
        * lex.c (check_newline): Remove #pragma code that plays with the
2197
        input stream, since we now deal with tokens.  Clear nextchar when
2198
        we're done.
2199
        (handle_cp_pragma): Use real_yylex.
2200
        (handle_sysv_pragma): Don't do skipline here.  Only call real_yylex
2201
        in one place.
2202
 
2203
        * lex.c (check_for_missing_semicolon): Handle SELFNAME.
2204
 
2205
        * lex.c (handle_cp_pragma): Fix "#pragma implementation".
2206
 
2207
Wed Apr 17 16:51:33 1996  Jason Merrill  
2208
 
2209
        * parse.y: New token SELFNAME for potential constructor.
2210
        * spew.c (yylex): Handle it.
2211
        * lex.c (identifier_type): Produce it.
2212
 
2213
        * parse.y (complete_type_name): In :: case, don't push class binding.
2214
        (complex_type_name): Likewise.
2215
 
2216
Wed Apr 17 15:02:40 1996  Mike Stump  
2217
 
2218
        * typeck.c (build_reinterpret_cast): Handle pointer to member
2219
        functions.
2220
 
2221
Wed Apr 17 12:28:26 1996  Brendan Kehoe  
2222
 
2223
        * lex.c (handle_cp_pragma): New function, with decl, doing the cc1plus
2224
        pragmas.
2225
        (check_newline): Put the vtable/unit/implementation/interface pragma
2226
        code into handle_cp_pragma, replacing it with a call.
2227
        (handle_sysv_pragma): Give int return type, and take FINPUT and TOKEN
2228
        args.  Get the next token after handling the pragma token.
2229
 
2230
Wed Apr 17 10:28:34 1996  Jason Merrill  
2231
 
2232
        * cvt.c (cp_convert_to_pointer): Avoid doing base analysis on pmfs.
2233
        (convert_to_pointer_force): Likewise.
2234
 
2235
        * init.c (build_new): Fix array new without -fcheck-new.
2236
 
2237
Tue Apr 16 13:44:58 1996  Jason Merrill  
2238
 
2239
        * cp-tree.h, call.c, class.c, decl.c, parse.y, pt.c, rtti.c,
2240
        tree.c: Lose TYPE_NESTED_NAME.
2241
 
2242
        * parse.y (nested_name_specifier_1): Don't treat non-identifiers
2243
        as identifiers.
2244
 
2245
        * tree.def: Add VEC_INIT_EXPR.
2246
        * expr.c (cplus_expand_expr): Handle it.
2247
        * init.c (build_new): Use it instead of the RTL_EXPR nastiness and
2248
        the extra file-scope symbol nastiness.
2249
 
2250
Mon Apr 15 16:21:29 1996  Jason Merrill  
2251
 
2252
        * method.c (make_thunk): Thunks are static.
2253
        (emit_thunk): Use ASM_OUTPUT_MI_THUNK if it's defined.
2254
 
2255
        * decl2.c (mark_vtable_entries): Emit thunks as needed.
2256
        (finish_file): Don't emit them here.
2257
 
2258
Sun Apr 14 11:34:39 1996  Jason Merrill  
2259
 
2260
        * rtti.c (build_dynamic_cast): Handle null pointers.
2261
        (ifnonnull): New function.
2262
 
2263
Fri Apr 12 09:08:27 1996  Bob Manson  
2264
 
2265
        * call.c (build_method_call): Remember the original basetype we
2266
        were called with.  Give an error message instead of trying
2267
        (incorrectly) to call a non-static member function through a
2268
        non-inherited class.
2269
 
2270
        * search.c (expand_upcast_fixups): Mark the new fixup as
2271
        DECL_ARTIFICIAL.
2272
 
2273
Thu Apr 11 03:57:09 1996  Jason Merrill  
2274
 
2275
        * init.c (build_new): Use a TARGET_EXPR for alloc_expr.
2276
 
2277
        * class.c (set_rtti_entry): Fix for thunks.
2278
 
2279
        * decl2.c (import_export_decl): Still emit typeinfo fns for
2280
        cv-variants of builtin types.
2281
 
2282
        * rtti.c (expand_class_desc): Set up base_info_type_node here.
2283
        (init_rtti_processing): Instead of here.
2284
 
2285
Wed Apr 10 14:17:13 1996  Jason Merrill  
2286
 
2287
        * rtti.c (init_rtti_processing): Do init regardless of -frtti.
2288
        (build_typeid): Only complain about taking dynamic typeid without
2289
        -frtti.
2290
 
2291
        * decl2.c: flag_rtti defaults to 1.
2292
 
2293
        * rtti.c (get_tinfo_var): The general class case is now smaller.
2294
        (init_rtti_processing): Pack the latter three fields of base_info
2295
        into 32 bits.
2296
 
2297
Wed Apr 10 13:50:14 1996  Mike Stump  
2298
 
2299
        * init.c (expand_member_init): Don't dump if name is NULL_TREE.
2300
 
2301
Wed Apr 10 12:56:02 1996  Mike Stump  
2302
 
2303
        * search.c (make_memoized_table_entry): Undefer the pop, if necessary.
2304
        (push_memoized_context): Split out code to undefer pop_type_level to
2305
        (clear_memoized_cache): here.
2306
        (pop_memoized_context): We can only handle one layer of deferral of
2307
        pop_type_level so clear the cache, if there was a previous level.
2308
 
2309
Tue Apr  9 23:06:09 1996  Jason Merrill  
2310
 
2311
        * rtti.c (init_rtti_processing): Build up base_info_type_node.
2312
        (expand_class_desc): Use one pointer to an array of base_info
2313
        structs, passed using a CONSTRUCTOR.
2314
 
2315
Tue Apr  9 14:20:57 1996  Mike Stump  
2316
 
2317
        * class.c (build_vbase_path): Remove block extern for
2318
        flag_assume_nonnull_objects here.
2319
        (build_vfn_ref): Split out functionality into build_vtbl_ref.
2320
        (build_vtbl_ref): New routine.
2321
        (build_vtable): Set up rtti info here.
2322
        (add_virtual_function): Note in CLASSTYPE_RTTI the best
2323
        place where we can get the rtti pointers from to avoid having to
2324
        search around for a place.
2325
        (finish_base_struct): Likewise.
2326
        (finish_struct_1): Likewise.  Never create totally new vtables
2327
        with totally new vtable pointers for rtti.  Disable code to layout
2328
        vtable pointers better until we want to break binary
2329
        compatibility.
2330
        * rtti.c (build_headof_sub): New routine to convert down to a
2331
        sub-object that has an rtti pointer in the vtable.
2332
        (build_headof): Use it.  Also, use build_vtbl_ref now to be more
2333
        maintainable.
2334
        (build_dynamic_cast): Make sure we have saved it, if we need to.
2335
        * search.c (dfs_init_vbase_pointers): Disable code that deals with
2336
        a more efficient vtable layout, enable later.
2337
        * call.c (flag_assume_nonnull_objects): Moved declaration to
2338
        * cp-tree.h: here.  Declare build_vtbl_ref.
2339
        * pt.c (instantiate_class_template): Use NULL_TREE instead of 0 in
2340
        function calls that want a tree.
2341
 
2342
Tue Apr  9 12:10:26 1996  Jason Merrill  
2343
 
2344
        * rtti.c (build_dynamic_cast): Handle downcasting to X* given
2345
        other X subobjects in the most derived type.  Ack.
2346
 
2347
        * rtti.c (build_dynamic_cast): No need to strip cv-quals here,
2348
        get_typeid will do it for us.
2349
        (get_typeid_1): Break out call-building for expand_*_desc to use.
2350
        (get_typeid): Call it.
2351
        (expand_*_desc): Likewise.
2352
        * decl.c (init_decl_processing): Don't set TYPE_BUILT_IN on char *
2353
        and void *.
2354
        (init_decl_processing): Lose builtin_type_tdescs lossage.
2355
        * decl2.c (finish_vtable_vardecl): Remove obsolete code.
2356
 
2357
Mon Apr  8 17:23:23 1996  Bob Manson  
2358
 
2359
        * pt.c (tsubst): When calling set_nested_typename, use
2360
        TYPE_NESTED_NAME (current_class_type) instead of
2361
        current_class_name.
2362
 
2363
        * decl.c (pushdecl): Likewise.
2364
        (pushdecl_class_level): Likewise.
2365
        (grokdeclarator): Use NULL_TREE instead of 0 in the call to
2366
        set_nested_typename.
2367
 
2368
Sun Apr  7 10:44:31 1996  Jason Merrill  
2369
 
2370
        * rtti.c (synthesize_tinfo_fn): Handle arrays.
2371
 
2372
        * cp-tree.h (DECL_REALLY_EXTERN): New macro.
2373
 
2374
Sat Apr  6 13:56:27 1996  Jason Merrill  
2375
 
2376
        * rtti.c (throw_bad_cast): Use entry point __throw_bad_cast.
2377
        (init_rtti_processing): Lose bad_cast_type.
2378
        (build_dynamic_cast): Use throw_bad_cast.
2379
 
2380
        * rtti.c (synthesize_tinfo_fn): Handle enums and pmfs.
2381
 
2382
        * decl2.c (finish_file): Don't synthesize artificial functions
2383
        that are external and not inline.
2384
 
2385
        * rtti.c (get_tinfo_fn): If at_eof, call import_export_decl.
2386
 
2387
        * decl2.c (finish_file): Handle having new inlines added to
2388
        saved_inlines by synthesis.
2389
 
2390
        * rtti.c (get_bad_cast_node): Don't require .
2391
 
2392
Fri Apr  5 17:02:09 1996  Jason Merrill  
2393
 
2394
        RTTI rewrite to initialize nodes as needed, not require that
2395
        users #include , complete functionality and reduce wasted
2396
        space.
2397
        * rtti.c (init_rtti_processing): New fn.
2398
        (build_typeid): The vtable entry is now a function.
2399
        (get_tinfo_var): New fn.
2400
        (get_tinfo_fn): Likewise.
2401
        (get_typeid): Use it.
2402
        (build_dynamic_cast): Declare and use entry point __dynamic_cast.
2403
        (build_*_desc): Rename to expand_*_desc and rewrite to use entry
2404
        points __rtti_*.
2405
        (add_uninstantiated_desc, get_def_to_follow, build_t_desc): Lose.
2406
        (synthesize_tinfo_fn): New fn.
2407
        * method.c (build_t_desc_overload): Lose.
2408
        (build_overload_with_type): More generic.
2409
        * decl.c (init_decl_processing): Call init_rtti_processing.
2410
        * class.c (set_rtti_entry): Use get_tinfo_fn.
2411
        * decl2.c (mark_vtable_entries): Mark the rtti function.
2412
        (finish_prevtable_vardecl): Don't build_t_desc.
2413
        (import_export_decl): Handle tinfo functions.
2414
        (finish_file): Likewise.
2415
        * typeck.c (inline_conversion): New fn.
2416
        (build_function_call_real): Use it.
2417
        * cp-tree.h: Add decls.
2418
 
2419
        * method.c (hack_identifier): Also convert component_refs from
2420
        references.
2421
 
2422
        * lex.c (cons_up_default_function): Use the type, not the name, in
2423
        declspecs.
2424
 
2425
        * decl2.c (import_export_vtable): Fix weak vtables.
2426
 
2427
Fri Apr  5 13:30:17 1996  Bob Manson  
2428
 
2429
        * search.c (get_base_distance_recursive): Fix access checks for
2430
        protected bases.
2431
 
2432
Fri Apr  5 11:02:06 1996  Brendan Kehoe  
2433
 
2434
        * call.c (unary_complex_lvalue): Delete unneeded decl, it's in
2435
        cp-tree.h.
2436
        (convert_harshness): Add prototypes wrapped by PROTO.
2437
        * decl2.c (grok_function_init): Likewise.
2438
        (do_toplevel_using_decl): Change to void return type.
2439
        * class.c (build_vtable_entry): Remove decl of make_thunk.
2440
        (merge_overrides): Fix order of arg definitions.
2441
        (finish_vtbls): Likewise.
2442
        (fixup_vtable_deltas): Likewise.
2443
        (modify_all_direct_vtables): Likewise.
2444
        (modify_all_indirect_vtables): Likewise.
2445
        * search.c (get_base_distance_recursive): Likewise.
2446
        (get_abstract_virtuals_1): Likewise.
2447
        (fixup_virtual_upcast_offsets): Likewise.
2448
        (lookup_fnfields_1): Add prototypes wrapped by PROTO.
2449
        * init.c (perform_member_init): Fix order of arg definitions.
2450
        (expand_aggr_init_1): Add prototypes wrapped by PROTO.
2451
        * cp-tree.h (make_thunk): Add decl.
2452
        (overload_template_name, push_template_decl): Add decls.
2453
        (do_toplevel_using_decl): Change to void return type.
2454
        (vec_binfo_member): Add decl.
2455
 
2456
Thu Apr  4 13:33:10 1996  Brendan Kehoe  
2457
 
2458
        * typeck.c (mark_addressable, convert_for_assignment,
2459
        convert_for_initialization, pointer_int_sum, pointer_diff,
2460
        unary_complex_lvalue): Add prototypes wrapped by PROTO.
2461
        (convert_sequence): #if 0 fn decl, since definition also is.
2462
 
2463
Thu Apr  4 11:00:53 1996  Mike Stump  
2464
 
2465
        * rtti.c (build_dynamic_cast): Make sure we strip qualifiers on
2466
        cast to pointer types for type searching.
2467
 
2468
Wed Apr  3 17:10:57 1996  Brendan Kehoe  
2469
 
2470
        * typeck.c (get_delta_difference): Use cp_error, not error, in the
2471
        case where BINFO == 0.
2472
 
2473
Wed Apr  3 12:01:02 1996  Mike Stump  
2474
 
2475
        * call.c (build_method_call): Fix wording of error messages so
2476
        constructors come out right.
2477
 
2478
Tue Apr  2 16:06:59 1996  Bob Manson  
2479
 
2480
        * decl.c (push_overloaded_decl): Don't warn about hidden
2481
        constructors when both the type and the function are declared
2482
        in a system header file.
2483
 
2484
Mon Apr  1 09:03:13 1996  Bob Manson  
2485
 
2486
        * class.c (finish_struct_1): Propagate the TYPE_PACKED
2487
        flag for the type to the type's fields.
2488
 
2489
Sat Mar 30 12:14:33 1996  Brendan Kehoe  
2490
 
2491
        * parse.y (complex_parmlist, ELLIPSES): Take out ARM-based warning.
2492
 
2493
Fri Mar 29 15:51:36 1996  Bob Manson  
2494
 
2495
        * class.c (base_info, finish_base_struct): Replace
2496
        needs_virtual_dtor with base_has_virtual.
2497
 
2498
        (finish_struct_1): Remove the old code that tried to make default
2499
        destructors virtual.  Use base_has_virtual when checking if we need
2500
        to add a vtable entry for the rtti code.
2501
 
2502
Fri Mar 29 14:02:36 1996  Jason Merrill  
2503
 
2504
        * pt.c (push_template_decl): Complain about template decl with
2505
        inappropriate declaration.
2506
 
2507
Fri Mar 29 12:15:35 1996  Bob Manson  
2508
 
2509
        * typeck.c (build_x_unary_op): Remove bogus check for taking
2510
        the address of a member function.
2511
 
2512
Fri Mar 29 11:56:02 1996  Jason Merrill  
2513
 
2514
        * parse.y (constructor_declarator): Only push the class if
2515
        we are not already in the class.
2516
 
2517
Fri Mar 29 09:41:02 1996  Jeffrey A. Law  
2518
 
2519
        * method.c (emit_thunk): Remove current_call_is_indirect nonsense.
2520
        Add additional argument to INIT_CUMULATIVE_ARGS.
2521
 
2522
Thu Mar 28 16:41:39 1996  Jason Merrill  
2523
 
2524
        * decl.c (shadow_tag): Fix error about anon union with methods.
2525
 
2526
        * parse.y (self_reference): Only generate a self-reference if this
2527
        is a non-template class.
2528
        (opt.component_decl_list): Only use it if it was generated.
2529
 
2530
        * parse.y (component_decl_1): Use constructor_declarator.
2531
        (fn.def2): Likewise.
2532
        (notype_component_declarator0): Likewise.
2533
 
2534
Thu Mar 28 15:11:35 1996  Bob Manson  
2535
 
2536
        * typeck.c (build_x_unary_op): Add checks for taking the address
2537
        of a TARGET_EXPR or of a member function, and give appropriate
2538
        warnings.
2539
 
2540
Thu Mar 28 14:49:26 1996  Jason Merrill  
2541
 
2542
        * pt.c (process_template_parm): Allow template type parms to be
2543
        used as types for template const parms.
2544
 
2545
Wed Mar 27 15:51:19 1996  Mike Stump  
2546
 
2547
        * init.c (expand_vec_init): Ensure the eh cleanups are on the
2548
        function_obstack.
2549
 
2550
Wed Mar 27 10:14:30 1996  Jason Merrill  
2551
 
2552
        * decl.c (lookup_name_real): Be even more picky about the
2553
        ambiguous lookup warning.
2554
        (grokdeclarator): Tweak SCOPE_REF constructor declarators here.
2555
        * parse.y (constructor_declarator): Rather than here.
2556
 
2557
        * parse.y (constructor_declarator): New nonterminal.
2558
        (fn.def1): Use it.
2559
        (explicit_instantiation): Likewise.
2560
 
2561
Tue Mar 26 13:41:33 1996  Jason Merrill  
2562
 
2563
        Add implicit declaration of class name at class scope.
2564
        * decl.c (lookup_name_real): Restrict pedwarn about ambiguous lookup.
2565
        * parse.y (self_reference): New nonterminal.
2566
        (opt.component_decl_list): Use it.
2567
        (fn.def1): Add nested_name_specifier type_name cases.
2568
        * class.c (build_self_reference): New function.
2569
        (finish_struct): Handle access_default later, move self-reference
2570
        decl to the end.
2571
        * pt.c (lookup_template_class): Handle getting a TYPE_DECL.
2572
        * cp-tree.h: Adjust.
2573
 
2574
        * pt.c (do_function_instantiation): Separate handling of member
2575
        functions and non-member functions properly.
2576
 
2577
Mon Mar 25 14:23:22 1996  Jason Merrill  
2578
 
2579
        * pt.c (process_template_parm): Improve error for 'volatile class K'.
2580
 
2581
        * class.c (finish_struct_1): Check the right slot for destructors.
2582
 
2583
        * decl.c (start_enum): Complain about enum templates.
2584
 
2585
Mon Mar 25 13:25:31 1996  Mike Stump  
2586
 
2587
        * init.c (resolve_offset_ref): Offset pointers to member data by one.
2588
        * typeck.c (unary_complex_lvalue): Likewise.
2589
 
2590
Mon Mar 25 13:30:42 1996  Bob Manson  
2591
 
2592
        * typeck.c (c_expand_return): Check for a returned local
2593
        array name, similar to the check for an ADDR_EXPR.
2594
 
2595
Mon Mar 25 13:07:19 1996  Jason Merrill  
2596
 
2597
        * decl.c (cp_finish_decl): Don't build cleanups for static
2598
        variables here.
2599
 
2600
Fri Mar 22 17:57:55 1996  Mike Stump  
2601
 
2602
        * typeck.c (build_modify_expr): Fix error messages to be more
2603
        accurate.
2604
        * cp-tree.h (assop_as_string): Parallel to op_as_string, but for
2605
        assignment operators.
2606
        * error.c (assop_as_string): Likewise.  Add support for `%Q' for
2607
        assignment operators.
2608
 
2609
Fri Mar 22 13:48:29 1996  Jason Merrill  
2610
 
2611
        * decl.c (grokdeclarator): Call bad_specifiers for typedefs.  Also
2612
        give an error if initialized.  pedwarn about nested type with the
2613
        same name as its enclosing class.
2614
 
2615
        * pt.c (tsubst, case TYPE_DECL): Set DECL_CONTEXT.
2616
 
2617
        * typeck.c (require_complete_type): Be sure to instantiate the
2618
        MAIN_VARIANT of the type.
2619
 
2620
        * decl2.c (finish_file): Instantiate pending templates before
2621
        processing static constructors and destructors.
2622
 
2623
        * pt.c (instantiate_decl): Don't instantiate functions at toplevel
2624
        unless at_eof.
2625
 
2626
Fri Mar 22 09:30:17 1996  Bob Manson  
2627
 
2628
        * decl2.c (delete_sanity): If error_mark_node is passed
2629
        in as an expression, quit while we're ahead.
2630
 
2631
        * decl.c (grokdeclarator): Give an error message if `friend'
2632
        is combined with any storage class specifiers.
2633
 
2634
Wed Mar 20 14:51:55 1996  Jason Merrill  
2635
 
2636
        * parse.y (named_complex_class_head_sans_basetype): Don't crash on
2637
        definition of nonexistent nested type.
2638
 
2639
        * error.c (dump_decl, case TYPE_DECL): Fix decision for whether or
2640
        not to say 'typedef'.
2641
 
2642
Wed Mar 20 00:11:47 1996  Brendan Kehoe  
2643
 
2644
        * cp-tree.h (struct lang_type): Make search_slot a tree, not a char*.
2645
        * search.c (dfs_walk, dfs_init_vbase_pointers,
2646
        expand_upcast_fixups): Remove cast of CLASSTYPE_SEARCH_SLOT.
2647
        (dfs_find_vbases): Remove cast for CLASSTYPE_SEARCH_SLOT init.
2648
 
2649
Tue Mar 19 17:56:03 1996  Jason Merrill  
2650
 
2651
        * except.c (build_throw): Support minimal parse.
2652
        * pt.c (tsubst_copy): Support THROW_EXPR.
2653
        * decl2.c (build_expr_from_tree): Likewise.
2654
 
2655
        * pt.c (mangle_class_name_for_template): Always allocate
2656
        scratch_firstobj.
2657
 
2658
Tue Mar 19 16:34:31 1996  Bob Manson  
2659
 
2660
        * cvt.c (cp_convert_to_pointer): Give an appropriate error
2661
        when trying to cast from an incomplete type.
2662
 
2663
Tue Mar 19 16:00:33 1996  Jason Merrill  
2664
 
2665
        * pt.c (instantiate_class_template): Don't bother setting up
2666
        CLASSTYPE_TAGS explicitly, as the nested types will add
2667
        themselves.
2668
 
2669
Tue Mar 19 15:48:43 1996  Bob Manson  
2670
 
2671
        * decl.c (shadow_tag): Remove old error check for usage of
2672
        an enum without a previous declaration.
2673
        (xref_tag): Add error message about usage of enums without a
2674
        previous declaration.
2675
 
2676
Tue Mar 19 09:21:35 1996  Jason Merrill  
2677
 
2678
        * lex.c (do_identifier): Only do name consistency check if we're
2679
        parsing.
2680
 
2681
        * pt.c (push_template_decl): Don't crash if we get a member defn
2682
        that doesn't match.
2683
 
2684
        * decl.c (xref_tag_from_type): New function to do an xref without
2685
        always having to figure out code_type_node.
2686
        * cp-tree.h: Declare it.
2687
        * pt.c (instantiate_class_template): Use it for friend classes.
2688
        (lookup_template_class): Use it.
2689
 
2690
        * typeck2.c (build_functional_cast): Pull out a single parm before
2691
        passing it to build_c_cast.
2692
 
2693
Tue Mar 19 09:07:15 1996  Bob Manson  
2694
 
2695
        * expr.c (do_case): Give an error message if a pointer is
2696
        given as a case value.
2697
 
2698
Mon Mar 18 21:57:54 1996  Jason Merrill  
2699
 
2700
        * typeck.c (build_c_cast): Don't pull single TEMPLATE_DECL out of
2701
        an overload list.
2702
 
2703
        * lex.c (cons_up_default_function): Really, now, interface hackery
2704
        does not apply to synthesized methods.
2705
 
2706
Mon Mar 18 18:20:57 1996  Mike Stump  
2707
 
2708
        * call.c (build_method_call): Ctors and dtors now have special names
2709
        with respect to lookups.
2710
        * class.c (add_method): Likewise.
2711
        (grow_method): Likewise.
2712
        (finish_struct_methods): Likewise.
2713
        (warn_hidden): Likewise.
2714
        (finish_struct_1): Likewise.
2715
        * cvt.c (convert_to_reference): Likewise.
2716
        (convert_to_aggr): Likewise.
2717
        (cp_convert): Likewise.
2718
        * decl2.c (check_classfn): Likewise.
2719
        * init.c (expand_member_init): Likewise.
2720
        (expand_default_init): Likewise.
2721
        (expand_aggr_init_1): Likewise.
2722
        (build_offset_ref): Likewise.
2723
        (build_new): Likewise.
2724
        (build_delete): Likewise.
2725
        * lex.c (do_inline_function_hair): Likewise.
2726
        * search.c (lookup_field_1): Likewise.
2727
        (lookup_fnfields_here): Likewise.
2728
        (lookup_field): Likewise.
2729
        (lookup_fnfields): Likewise.
2730
        (get_virtual_destructor): Likewise.
2731
        (dfs_debug_mark): Likewise.
2732
        (dfs_pushdecls): Likewise.
2733
        (dfs_compress_decls): Likewise.
2734
        * tree.c (layout_basetypes): Likewise.
2735
        * typeck.c (build_component_ref): Likewise.
2736
        (build_x_function_call): Likewise.
2737
        (build_modify_expr): Likewise.
2738
        (convert_for_initialization): Likewise.
2739
        (build_functional_cast): Likewise.
2740
        * cp-tree.h (CLASSTYPE_FIRST_CONVERSION): Likewise.
2741
        (CTOR_NAME): New.
2742
        (DTOR_NAME): New.
2743
        * decl.c (ctor_identifier): New.
2744
        (dtor_identifier): New.
2745
        (init_decl_processing): Set them.
2746
 
2747
Mon Mar 18 18:00:51 1996  Mike Stump  
2748
 
2749
        * typeck.c (build_component_ref): Don't get confused by fields whose
2750
        context has no type name, like pointer to member functions.
2751
 
2752
Mon Mar 18 13:19:03 1996  Jason Merrill  
2753
 
2754
        * decl.c (grokdeclarator): Handle typedef without declarator.
2755
 
2756
        * pt.c (tsubst): Handle SCOPE_REF in declarator.
2757
 
2758
        * parse.y (bad_parm): Catch another case of missing `typename'.
2759
 
2760
        * lex.c (yyprint): Handle TYPE_DECLs.
2761
 
2762
        * decl.c (start_function): Don't try to be clever.
2763
 
2764
        * lex.c: Lose compiler_error_with_decl.
2765
        * typeck2.c: Lose error_with_aggr_type.
2766
        (incomplete_type_error): Use cp_* instead of old functions.
2767
        (readonly_error): Likewise.
2768
        * typeck.c (convert_arguments): Likewise.
2769
        * search.c (lookup_nested_field): Likewise.
2770
        * method.c (make_thunk): Likewise.
2771
        * decl.c (grokparms): Likewise.
2772
        * cp-tree.h: Update.
2773
 
2774
        * tree.c (min_tree_cons): Call copy_to_permanent for the purpose
2775
        and value.
2776
 
2777
Mon Mar 18 11:25:52 1996  Bob Manson  
2778
 
2779
        * method.c (build_opfncall): When deleting a pointer to an
2780
        array, build a new pointer to the tree past any ARRAY_TYPE
2781
        nodes.
2782
 
2783
Mon Mar 18 10:11:46 1996  Brendan Kehoe  
2784
 
2785
        * decl.c (lookup_name_real): Initialize local var TYPE to NULL_TREE.
2786
 
2787
Fri Mar 15 11:03:57 1996  Jason Merrill  
2788
 
2789
        * pt.c (instantiate_decl): Only call import_export_decl if at_eof
2790
        and ! DECL_INLINE.
2791
 
2792
        * decl.c (finish_function): Don't set nested based on
2793
        hack_decl_function_context.
2794
        * parse.y (function_try_block): Check for nested function.
2795
        (pending_inlines): Likewise.
2796
 
2797
        * decl2.c (build_expr_from_tree): If a unary op already has a
2798
        type, just return it.
2799
 
2800
        * decl2.c (finish_prevtable_vardecl): Use ADJUST_VTABLE_LINKAGE.
2801
 
2802
        * decl2.c (walk_vtables): vardecl_fn returns int; return 1 if it does.
2803
        (finish_file): Check the return value of walk_vtables.
2804
        (finish_prevtable_vardecl): Return int.
2805
        (finish_vtable_vardecl): Likewise.
2806
        (prune_vtable_vardecl): Likewise.
2807
        * lex.c (set_vardecl_interface_info): Likewise.
2808
        * cp-tree.h: Adjust return types.
2809
 
2810
        * class.c (delete_duplicate_fields_1): Don't complain about
2811
        duplicate nested types if they're the same type.
2812
        (finish_struct): Remove check for duplicate.
2813
        * decl2.c (grokfield): Don't check for typedef of anonymous type.
2814
 
2815
Thu Mar 14 10:00:19 1996  Jason Merrill  
2816
 
2817
        * cp-tree.h: Lose SIGNATURE_GROKKING_TYPEDEF.
2818
 
2819
        * decl.c (grokdeclarator): Lose special handling of class-level
2820
        typedef.  Lose SIGNATURE_GROKKING_TYPEDEF.  Set
2821
        SIGNATURE_HAS_OPAQUE_TYPEDECLS later.
2822
 
2823
        * cvt.c (convert_pointer_to_real): Retain cv-quals in conversion.
2824
 
2825
        * pt.c (tsubst_copy): Strip cv-quals from destructor name types.
2826
 
2827
        * search.c (compute_access): Fix handling of anonymous union
2828
        members.
2829
        * class.c (finish_struct_anon): Propagate TREE_{PRIVATE,PROTECTED}
2830
        from anonymous unions to their members.
2831
 
2832
        * typeck.c (build_x_function_call): For static member functions,
2833
        hand off to build_member_call.
2834
 
2835
Wed Mar 13 14:03:34 1996  Jason Merrill  
2836
 
2837
        * typeck.c (build_component_ref): Handle OFFSET_REFs.
2838
 
2839
        * init.c (expand_vec_init): Fix init == 0 case.
2840
 
2841
Tue Mar 12 14:36:02 1996  Jason Merrill  
2842
 
2843
        * init.c (build_new): pedwarn about init and array new.
2844
        (expand_vec_init): Handle lists, use convert_for_initialization.
2845
 
2846
        * typeck.c (convert_for_initialization): Pass LOOKUP_NO_CONVERSION
2847
        when converting to an aggregate type.
2848
        * cvt.c (cp_convert): Pass it through.
2849
 
2850
        * typeck.c (build_conditional_expr): Handle user-defined
2851
        conversions to slightly different types.
2852
 
2853
        * decl.c (grokdeclarator): Force an array type in a parm to be
2854
        permanent.
2855
 
2856
        * decl2.c (do_using_directive): Sorry.
2857
        (do_namespace_alias): Likewise.
2858
        * lex.c (real_yylex): Warn about using the `namespace' keyword.
2859
 
2860
Sun Mar 10 22:26:09 1996  Jason Merrill  
2861
 
2862
        * parse.y (datadef): Move call to note_list_got_semicolon up.
2863
 
2864
Fri Mar  8 11:47:26 1996  Mike Stump  
2865
 
2866
        * tree.c (unsave_expr): Don't unsave, UNSAVE_EXPRs.
2867
 
2868
Fri Mar  8 11:29:06 1996  Mike Stump  
2869
 
2870
        * decl.c (cp_finish_decl): The exception regions have to be
2871
        nested, not overlapping.  We start the exception region for a
2872
        decl, after it has been fully built, and all temporaries for it
2873
        have been cleaned up.
2874
 
2875
Thu Mar  7 17:46:06 1996  Mike Stump  
2876
 
2877
        * tree.c (vec_binfo_member): Don't core dump if we have no bases.
2878
 
2879
Thu Mar  7 14:11:49 1996  Jason Merrill  
2880
 
2881
        * tree.def: Add RETURN_INIT.
2882
        * pt.c (instantiate_decl): Handle RETURN_INIT.
2883
        * decl.c (store_return_init): Handle minimal_parse_mode.
2884
 
2885
        * tree.c (cp_build_type_variant): Just return an error_mark_node.
2886
        * decl.c (make_typename_type): Don't try to get the file and line
2887
        of an identifier.
2888
        * typeck.c (comptypes): Handle TYPENAME_TYPE.
2889
 
2890
Wed Mar  6 18:47:50 1996  Per Bothner  
2891
 
2892
        * decl.c (poplevel): Make sure we clear out and restore old local
2893
        non-VAR_DECL values by default when they go out of scope.
2894
 
2895
Wed Mar  6 09:57:36 1996  Jason Merrill  
2896
 
2897
        * method.c (build_overload_value): Use DECL_ASSEMBLER_NAME in
2898
        referring to addresses of variables and functions.
2899
 
2900
        * error.c (dump_expr): Support SIZEOF_EXPR.
2901
 
2902
        * init.c (do_friend): Use the return value of check_classfn.
2903
 
2904
        * typeck.c (convert_arguments): Call complete_type.
2905
 
2906
        * method.c (hack_identifier): After giving an error, set value to
2907
        error_mark_node.
2908
 
2909
Tue Mar  5 16:00:15 1996  Jason Merrill  
2910
 
2911
        * tree.c (hack_decl_function_context): Kludge around DECL_CONTEXT
2912
        lossage for local classes.
2913
        * cp-tree.h: Declare it.
2914
        * decl.c (lookup_name_real): Evil, painful hack for local classes.
2915
        (grokfndecl): Set DECL_CLASS_CONTEXT and DECL_NO_STATIC_CHAIN here.
2916
        Use hack_decl_function_context.
2917
        (grokdeclarator): Don't set DECL_NO_STATIC_CHAIN here.
2918
        (start_function): Use hack_decl_function_context.
2919
        (finish_function): Likewise.
2920
        * method.c (synthesize_method): Likewise.
2921
        * lex.c (process_next_inline): Likewise.
2922
        (do_pending_inlines): Likewise.
2923
        * decl2.c (finish_file): Unset DECL_STATIC_FUNCTION_P when we're
2924
        done with it.
2925
 
2926
Mon Mar  4 22:38:39 1996  Gerald Baumgartner  
2927
 
2928
        * sig.c (build_signature_pointer_or_reference_type): Align
2929
        signature pointers/references on 8-byte boundaries so they can be
2930
        grabbed 2 words at a time on a SPARC.
2931
 
2932
Tue Mar  5 10:21:01 1996  Jason Merrill  
2933
 
2934
        * method.c (hack_identifier): Requiring a static chain is now a
2935
        hard error.
2936
        * decl.c (grokdeclarator): Set DECL_NO_STATIC_CHAIN on nested
2937
        functions.
2938
 
2939
Mon Mar  4 20:03:33 1996  Jason Merrill  
2940
 
2941
        * init.c (build_offset_ref): Call complete_type.
2942
 
2943
        * decl.c (pop_from_top_level): Always pop previous_class_type.
2944
 
2945
        * parse.y: Handle multiple decls in a for-init-statement.
2946
        * pt.c (tsubst_expr): Likewise.
2947
 
2948
        * pt.c (tsubst): Use tsubst_expr for the second operand of an
2949
        ARRAY_REF.
2950
 
2951
        * decl.c (maybe_push_to_top_level): Don't save previous_class_type.
2952
        (poplevel_class): Set it here.
2953
        (pop_from_top_level): Pop it here if we're returning to class scope.
2954
        * class.c (pushclass): Don't set it here.
2955
 
2956
        * decl.c (maybe_push_to_top_level): Save current_template_parms,
2957
        and clear it if !pseudo.
2958
        (pop_from_top_level): Restore it.
2959
 
2960
        * decl2.c (finish_file): Push the dummy each time we walk the list
2961
        of vtables.
2962
 
2963
        * error.c (dump_expr): Support LOOKUP_EXPR and actually do
2964
        something for CAST_EXPR.
2965
 
2966
Mon Feb 19 14:49:18 1996  Rusty Russell  
2967
 
2968
        * cvt.c (cp_convert): Warn about implicit conversion of the
2969
        address of a function to bool, as it is always true.
2970
 
2971
Fri Feb 23 23:06:01 1996  Rusty Russell  
2972
 
2973
        * typeck.c (c_expand_return): Fix warning for local externs returned.
2974
 
2975
Mon Mar  4 15:03:11 1996  Jason Merrill  
2976
 
2977
        * tree.c (mapcar): Propagate const and volatile properly.
2978
 
2979
        * typeck.c (complete_type): Be sure to instantiate the
2980
        MAIN_VARIANT of the type.
2981
 
2982
        * method.c (synthesize_method): Class interface hackery does not
2983
        apply to synthesized methods.
2984
 
2985
Mon Mar  4 14:05:23 1996  Jason Merrill  
2986
 
2987
        * pt.c (comp_template_args): Use comptypes rather than just
2988
        checking for TEMPLATE_TYPE_PARM equivalence.
2989
 
2990
        * typeck.c (build_x_function_call): Call complete_type before
2991
        checking TYPE_OVERLOADS_CALL_EXPR.
2992
 
2993
Mon Mar  4 18:48:30 1996  Manfred Hollstein   
2994
 
2995
        * g++.c (main): Check also for new define ALT_LIBM.
2996
 
2997
Fri Mar  1 13:09:33 1996  Jason Merrill  
2998
 
2999
        * pt.c (instantiate_class_template): If we don't have a pattern
3000
        yet, that's OK.
3001
        (coerce_template_parms): If we see a local class, bail.
3002
 
3003
        * decl.c (grok_reference_init): Make sure there's a type before
3004
        checking its code.
3005
 
3006
        * pt.c (do_function_instantiation): Avoid crashing on invalid decls.
3007
        (push_template_decl): Likewise.
3008
 
3009
        * parse.y (named_class_head): Set
3010
        CLASSTYPE_TEMPLATE_SPECIALIZATION here if we have basetypes.
3011
 
3012
        * decl.c (xref_tag): Diagnose redeclaration of template
3013
        type-parameter name.
3014
 
3015
        * error.c (dump_type): Handle anonymous template type parms.
3016
 
3017
        * pt.c (instantiate_template): Use TYPE_MAIN_DECL instead of
3018
        TYPE_STUB_DECL.
3019
        (coerce_template_parms): Likewise.
3020
 
3021
Thu Feb 29 16:26:01 1996  Mike Stump  
3022
 
3023
        * class.c (instantiate_type, case {ARRAY,INDIRECT}_REF,
3024
        case ADDR_EXPR): Don't modify rhs if a subinstantiation fails.
3025
 
3026
Thu Feb 29 08:20:25 1996  Jason Merrill  
3027
 
3028
        * pt.c (instantiate_template): Take the MAIN_VARIANT of the type
3029
        before trying to get its STUB_DECL.
3030
        (coerce_template_parms): Likewise.
3031
 
3032
        * parse.y (template_type_parm): If they didn't use 'class',
3033
        pretend they did after giving an error.
3034
 
3035
        * pt.c (coerce_template_parms): Diagnose use of local class.
3036
 
3037
        * decl.c (grok_reference_init): Use instantiate_type.
3038
 
3039
        * error.c (dump_expr): Handle TEMPLATE_DECLs.
3040
 
3041
        * parse.y (named_class_head): Diagnose mismatching types and tags.
3042
 
3043
        * decl.c (pushdecl): Type decls and class templates clash with
3044
        artificial type decls, not hide them.
3045
 
3046
        * decl.c (redeclaration_error_message): Diagnose redefinition of
3047
        templates properly.
3048
        (duplicate_decls): Diagnose disallowed overloads for template
3049
        functions, too.
3050
 
3051
        * decl.c (start_decl): Call complete_type before checking for a
3052
        destructor.
3053
 
3054
        * pt.c (tsubst): Use tsubst_expr on the elts of a VEC.
3055
 
3056
        * decl.c (xref_tag): A TEMPLATE_TYPE_PARM is a match.
3057
 
3058
Wed Feb 28 09:28:44 1996  Jason Merrill  
3059
 
3060
        * decl.c (grok_op_properties): Don't check for operator++(int) in
3061
        a template.
3062
 
3063
        * tree.c (perm_manip): Return a copy of variable and function
3064
        decls with external linkage.
3065
 
3066
        * tree.def: Change some of the min tree codes to type "1".
3067
        * pt.c (uses_template_parms): Handle 'e's, return 1 for LOOKUP_EXPRs.
3068
        * method.c (build_overload_int): Emit something arbitrary for
3069
        anything but an INTEGER_CST if we're in a template.
3070
 
3071
        * decl.c (cp_finish_decl): Call complete_type before deciding
3072
        whether or not to lay out the decl.
3073
 
3074
        * lex.c (do_identifier): Check for DECL_INITIAL before using it.
3075
 
3076
Tue Feb 27 16:35:32 1996  Jason Merrill  
3077
 
3078
        * typeck2.c (build_x_arrow): Call complete_type.
3079
 
3080
        * pt.c (add_pending_template): Broken out.
3081
        (lookup_template_class): If -fexternal-templates, call it for all
3082
        the methods of implemented types.
3083
        (instantiate_class_template): Instead of instantiating them here.
3084
        (instantiate_decl): Handle -fexternal-templates earlier.
3085
 
3086
Tue Feb 27 15:51:32 1996  Brendan Kehoe  
3087
 
3088
        * search.c, lex.c, decl.c, class.c, cp-tree.h: Don't wrap the
3089
        memoized lookup stuff inside GATHER_STATISTICS.
3090
 
3091
Tue Feb 27 10:38:08 1996  Jason Merrill  
3092
 
3093
        * decl.c (start_decl): Complain about array of incomplete type
3094
        here.
3095
        (grokdeclarator): Not here.
3096
 
3097
        * parse.y (template_parm): Expand full_parm inline so we can set
3098
        the rule's precedence.
3099
 
3100
        * pt.c (tsubst_expr): If we're in a template, just do tsubst_copy.
3101
        (tsubst): tsubst_expr the DECL_INITIAL of FIELD_DECLs.
3102
        * decl2.c (grokbitfield): Don't check for integer constant here.
3103
        * class.c (finish_struct_1): Check here.
3104
 
3105
        * decl.c (define_label): Make the min decl go on permanent_obstack.
3106
 
3107
        * pt.c (unify): Don't handle CONST_DECLs.
3108
        (uses_template_parms): Don't check DECL_INITIAL on a CONST_DECL.
3109
        (tsubst_copy): Likewise.
3110
 
3111
        * lex.c (do_identifier): Do pull the DECL_INITIAL out of a
3112
        CONST_DECL for a template parm.
3113
 
3114
Mon Feb 26 12:48:18 1996  Jason Merrill  
3115
 
3116
        * decl.c (grokdeclarator): Complain about array of incomplete type
3117
        here.
3118
        (start_decl_1): Not here.
3119
 
3120
        * pt.c (tsubst): Handle pointer-to-function declarators.
3121
 
3122
        * method.c (hack_identifier): If pedantic, diagnose local class
3123
        methods that require a static chain.
3124
 
3125
        * decl.c (grok_op_properties): No longer static.
3126
        * cp-tree.h: Declare it.
3127
        * pt.c (tsubst): Call it for operators.
3128
        Use tsubst_copy for TREE_VECs.
3129
 
3130
        * parse.y (template_arg): The expr has precedence like '>'.
3131
 
3132
Fri Feb 23 14:51:52 1996  Jason Merrill  
3133
 
3134
        * pt.c (coerce_template_parms): Don't coerce an expression using
3135
        template parms.
3136
        (uses_template_parms): Also check DECL_INITIAL in CONST_DECLs.
3137
        (tsubst): Don't use build_index_2_type if the max_value uses template
3138
        parms.
3139
        * method.c (build_overload_int): Emit something arbitrary for an
3140
        expression using template parms.
3141
 
3142
        * parse.y (template_close_bracket): New non-terminal to catch use
3143
        of '>>' instead of '> >' in template class names.
3144
        (template_type): Use it.
3145
        * Makefile.in (CONFLICTS): Causes one more r/r conflict.
3146
 
3147
        * tree.def: Add CAST_EXPR.
3148
        * typeck2.c (build_functional_cast): Use CAST_EXPR instead of
3149
        CONVERT_EXPR for minimal_parse_mode.
3150
        * typeck.c (build_c_cast): Likewise.
3151
        * pt.c (tsubst_copy): Likewise.
3152
        * decl2.c (build_expr_from_tree): Likewise.
3153
        * error.c (dump_expr): Likewise.
3154
 
3155
Fri Feb 23 10:36:46 1996  Brendan Kehoe  
3156
 
3157
        * except.c (SetTerminate, SetUnexpected): Put back global vars.
3158
        (init_exception_processing): Put back decl/init of
3159
        set_unexpected_fndecl and set_terminate_fndecl, needed to get the
3160
        fns from libstdc++.
3161
 
3162
        * decl.c (struct binding_level): Delete ACCEPT_ANY bitfield.
3163
        (declare_uninstantiated_type_level, uninstantiated_type_level_p):
3164
        Delete unused fns.
3165
        * cp-tree.h (declare_uninstantiated_type_level,
3166
        uninstantiated_type_level_p): Delete prototypes.
3167
 
3168
Thu Feb 22 19:36:15 1996  Jason Merrill  
3169
 
3170
        * pt.c (tsubst_expr): Add default return.
3171
 
3172
Thu Feb 22 16:47:24 1996  Brendan Kehoe  
3173
 
3174
        * error.c (fndecl_as_string): Delete unused arg CNAME.
3175
        * sig.c (build_signature_table_constructor,
3176
        build_signature_method_call): Fix calls.
3177
 
3178
        * class.c (the_null_vtable_entry): Delete var definition.
3179
        (init_class_processing): Delete tree the_null_vtable_entry init.
3180
        * decl.c (no_print_{functions, builtins}): Declare as static.
3181
        (__tp_desc_type_node): #if 0 var definition.
3182
        (init_type_desc): #if 0 init of __tp_desc_type_node.
3183
        (vb_off_identifier): Move var decl into init_decl_processing.
3184
        (current_function_assigns_this): Declare as static.
3185
        (int_ftype_ptr_ptr_int, void_ftype_ptr_int_int): Delete var decls.
3186
        (init_decl_processing): Delete init of void_ftype_ptr_ptr_int.
3187
        Move decls of string_ftype_ptr_ptr and int_ftype_string_string here.
3188
        * decl2.c (delete_sanity): Delete definition/mod of local var ELT_SIZE.
3189
        * init.c (BI_header_type, BI_header_size): Declare as static.
3190
        * pt.c (template_classes): Delete unused var.
3191
        (add_pending_template): Delete decl for non-existent fn.
3192
        (lookup_template_class): Delete vars CODE and TAG_CODE.
3193
        (instantiate_template): Delete unused var TARGS.
3194
        * cp-tree.h (vb_off_identifier, current_function_assigns_this):
3195
        Delete decls.
3196
        (__tp_desc_type_node): #if 0 var decl.
3197
        (fndecl_as_string): Fix prototype.
3198
 
3199
Thu Feb 22 15:56:19 1996  Jason Merrill  
3200
 
3201
        * tree.def: Add GOTO_STMT.
3202
        * pt.c (tsubst_expr): Support goto and labels.
3203
        * decl.c (define_label): Support minimal parsing.
3204
        * parse.y (simple_stmt): Likewise.
3205
 
3206
Thu Feb 22 15:30:12 1996  Brendan Kehoe  
3207
 
3208
        * xref.c (GNU_xref_member): Only define/set var I if
3209
        XREF_SHORT_MEMBER_NAMES is defined, to match when it's actually
3210
        used.
3211
        (GNU_xref_end_scope): Delete unused fifth arg TRNS.
3212
        (GNU_xref_end): Fix call.
3213
        * decl.c (poplevel, poplevel_class, finish_method): Fix calls.
3214
        * cp-tree.h (GNU_xref_end_scope): Fix prototype.
3215
 
3216
        * tree.c (build_exception_variant): Delete unused vars I, A, T,
3217
        T2, and CNAME.
3218
        (layout_vbasetypes): Delete unused var NONVIRTUAL_VAR_SIZE.
3219
        (mapcar): Delete unused var CODE.
3220
        (build_cplus_new): Delete unused arg WITH_CLEANUP_P.
3221
        (break_out_cleanups): Fix call.
3222
        (bot_manip): Likewise.
3223
        * call.c (build_method_call): Likewise.
3224
        * cvt.c (build_up_reference, convert_to_reference, cp_convert):
3225
        Likewise.
3226
        * typeck.c (unary_complex_lvalue, build_modify_expr,
3227
        convert_for_initialization): Likewise.
3228
        * typeck2.c (build_functional_cast): Likewise.
3229
        * cp-tree.h (build_cplus_new): Fix prototype.
3230
 
3231
        * repo.c (open_repo_file): Delete unused var Q.
3232
        (repo_compile_flags, repo_template_declared,
3233
        repo_template_defined, repo_class_defined, repo_inline_used,
3234
        repo_vtable_used, repo_tinfo_used): #if 0 unused fns.
3235
        (repo_get_id, repo_vtable_used): Declare as static.
3236
        * cp-tree.h (mark_{decl,class}_instantiated, finish_repo): Add
3237
        prototypes.
3238
 
3239
Thu Feb 22 14:53:35 1996  Jason Merrill  
3240
 
3241
        * parse.y (pending_inlines): Add function_try_block case.
3242
 
3243
        * pt.c (unify): Fix for template const parms.
3244
 
3245
Thu Feb 22 13:24:15 1996  Brendan Kehoe  
3246
 
3247
        * lex.c (extract_interface_info): Delete forward decl.
3248
        (default_copy_constructor_body, default_assign_ref_body): Delete
3249
        decls for non-existent functions.
3250
        (synth_firstobj, inline_text_firstobjs): Delete unused vars.
3251
        (init_lex): Delete setting them.
3252
        (cons_up_default_function): Delete unused vars FUNC_BUF,
3253
        FUNC_LEN, and COMPLEX.  Delete code setting COMPLEX.  Delete old
3254
        #if 0'd synth code.
3255
        (toplevel, expression_obstack): Delete unused extern decls.
3256
        (tree_node_kind): Delete unused enum.
3257
        (tree_node_counts, tree_node_sizes): Wrap with #ifdef
3258
        GATHER_STATISTICS.
3259
        (tree_node_kind_names): Delete unused extern decl.
3260
        (synth_obstack): Delete unused var.
3261
        (init_lex): Don't set it.
3262
        (init_parse): Add decl before use.
3263
        (reduce_count): Only define #ifdef GATHER_STATISTICS && REDUCE_LENGTH.
3264
        (current_unit_{name, language}): Delete unused vars.
3265
        (check_newline): Don't bother setting them, just accept the #pragma.
3266
        * cp-tree.h (init_repo, peek_yylex): Add prototypes.
3267
        (current_unit_{name, language}): Delete decls.
3268
 
3269
        * search.c: Wrap all of the memoized functions, macros, and
3270
        variables inside #ifdef GATHER_STATISTICS.
3271
        (lookup_field, lookup_fnfields): Likewise.
3272
        (init_search_processing): Likewise.
3273
        (reinit_search_statistics): Wrap whole function.
3274
        * lex.c (reinit_lang_specific): Wrap call to reinit_search_statistics.
3275
 
3276
        * decl.c (finish_function): Only call pop_memoized_context if
3277
        GATHER_STATISTICS is defined.
3278
        (start_function): Likewise for push_memoized_context.
3279
        * class.c (pushclass, popclass): Likewise.
3280
 
3281
        * cp-tree.h (CLASSTYPE_MTABLE_ENTRY): Move definition from here...
3282
        * search.c (CLASSTYPE_MTABLE_ENTRY): ... to here.
3283
 
3284
        * cvt.c (cp_convert): Delete unused local var FORM.
3285
        * cp-tree.h (can_convert, can_convert_arg, real_lvalue_p): Add
3286
        prototypes.
3287
 
3288
Thu Feb 22 13:19:44 1996  Jason Merrill  
3289
 
3290
        * pt.c (do_poplevel): Oops; really return what we get from
3291
        poplevel this time.
3292
 
3293
Thu Feb 22 11:41:44 1996  Brendan Kehoe  
3294
 
3295
        * cp-tree.h (is_aggr_type): Add prototype.
3296
 
3297
        * cp-tree.h ({push,pop}_cp_function_context): Add decls.
3298
        * method.c ({push,pop}_cp_function_context): Delete decls.
3299
        * except.c (start_eh_unwinder, end_eh_unwinder): Declare as void.
3300
        (SetUnexpected, SetTerminate): Delete unused vars.
3301
        (init_exception_processing): Don't set SetUnexpected or
3302
        SetTerminate.  Don't set SET_UNEXPECTED_FNDECL or SET_TERMINATE_FNDECL.
3303
        (output_exception_table_entry): Delete unused array LABEL.
3304
        (expand_internal_throw): Delete unused var PARAMS.
3305
        (expand_start_catch_block): Delete unused var CLEANUP.
3306
        (emit_exception_table): Delete unused var EH_NODE_DECL.
3307
        (expand_builtin_throw): Delete unused vars UNWIND_AND_THROW and
3308
        GOTO_UNWIND_AND_THROW.  Don't set them.
3309
        (end_eh_unwinder): Add top decl.
3310
        (pop_rtl_from_perm): Delete unused decl of PERMANENT_OBSTACK.
3311
        (exception_section, push_rtl_perm, do_function_call,
3312
        lang_interim_eh, push_eh_cleanup, eh_outer_context,
3313
        expand_end_eh_spec, end_eh_unwinder): Declare as static.
3314
        (saved_pc, saved_throw_type, saved_throw_value, saved_cleanup,
3315
        throw_used): Likewise.
3316
        * cp-tree.h (expand_end_eh_spec): Delete prototype.
3317
 
3318
        * search.c (dfs_mark, dfs_mark_vtable_path,
3319
        dfs_unmark_vtable_path, dfs_mark_new_vtable,
3320
        dfs_unmark_new_vtable, dfs_clear_search_slot,
3321
        dfs_search_slot_nonempty_p, bfs_markedp, bfs_unmarkedp,
3322
        bfs_marked_vtable_pathp, bfs_unmarked_vtable_pathp,
3323
        bfs_marked_new_vtablep, bfs_unmarked_new_vtablep): #if 0 unused
3324
        functions.
3325
        (n_fields_searched, n_calls_lookup_field, n_calls_lookup_field_1,
3326
        n_calls_lookup_fnfields, n_calls_lookup_fnfields_1,
3327
        n_calls_get_base_type, n_outer_fields_searched, n_contexts_saved):
3328
        Only define #ifdef GATHER_STATISTICS.
3329
        (reinit_search_statistics): Only init some vars if GATHER_STATISTICS
3330
        is defined.
3331
        (vbase_decl): Delete var definition.
3332
        (init_search): Delete old decl.
3333
        (init_vbase_pointers): Delete building of VBASE_DECL, since it's
3334
        never actually used.
3335
        (expand_indirect_vtbls_init): Delete init of VBASE_DECL.
3336
        (get_base_distance_recursive): Delete unused fourth arg
3337
        BASETYPE_PATH.  Fix call .
3338
        (get_base_distance): Fix call.
3339
        (push_class_decls): Delete unused var ID.
3340
        (make_memoized_table_entry): Declare as static.
3341
        (breadth_first_search): Declare as static.
3342
        (tree_has_any_destructor_p): Declare as static.
3343
        (pop_class_decls): Delete unused arg pop_class_decls.
3344
        * class.c (popclass): Fix call to pop_class_decls.
3345
        * cp-tree.h (make_memoized_table_entry, breadth_first_search,
3346
        tree_has_any_destructor_p): Delete prototypes.
3347
 
3348
        * rtti.c (build_ptmf_desc): Delete unused arg TYPE.
3349
        (build_t_desc): Fix call.  Delete unused vars ELEMS and TT.
3350
        (build_dynamic_cast): Delete unused local vars TMP1 and RETVAL.
3351
        (build_user_desc): Delete unused var T.
3352
        (build_class_desc): Delete unused vars T and OFF.
3353
        (build_t_desc): Delete unused var NAME_STRING.
3354
        (build_headof): Make static.
3355
        (get_bad_cast_node): Likewise.
3356
        (get_def_to_follow): Likewise.
3357
        * cp-tree.h (init_type_desc): Add prototype.
3358
        (build_headof): Remove prototype.
3359
 
3360
Thu Feb 22 00:54:22 1996  Jason Merrill  
3361
 
3362
        * pt.c (tsubst): Only look for matching decls at file scope for
3363
        non-member functions.
3364
 
3365
        * call.c (build_scoped_method_call): Handle scoped destructor
3366
        calls in templates.
3367
 
3368
        * decl.c (*_top_level): Also save previous_class_values.
3369
 
3370
        * pt.c (tsubst_expr): Support do {} while loops.
3371
        * parse.y (simple_stmt): Likewise.
3372
        * tree.def: Likewise.
3373
 
3374
        * method.c (build_overload_identifier): For a class nested in a
3375
        template class, don't mangle in the template parms from our
3376
        context.
3377
 
3378
        * lex.c, cp-tree.h: Remove support for template instantiations in
3379
        the pending_inlines code.
3380
        * pt.c: Remove dead functions and unused arguments.
3381
        (uses_template_parms): TYPENAME_TYPEs always use template parms.
3382
        * parse.y: Stop passing anything to end_template_decl.
3383
        * tree.c (print_lang_statistics): Only print tinst info #ifdef
3384
        GATHER_STATISTICS.
3385
 
3386
Wed Feb 21 16:57:33 1996  Brendan Kehoe  
3387
 
3388
        * init.c (expand_recursive_init{,_1}): Delete decls.
3389
        (sort_member_init): Delete unused var INIT.
3390
        (emit_base_init): Delete unused var X.
3391
        (build_offset_ref): Delete unused var CNAME.
3392
        (sort_member_init): Delete unused var FIELDS_TO_UNMARK.
3393
        (emit_base_init): Delete unused local var BASE.  Delete extern
3394
        decl of IN_CHARGE_IDENTIFIER.
3395
        (build_delete): Delete unused local var VIRTUAL_SIZE.
3396
 
3397
        * init.c (build_vec_delete): Delete unused third arg ELT_SIZE.
3398
        (build_delete): Fix call.
3399
        * decl2.c (delete_sanity): Likewise.
3400
        * cp-tree.h (build_vec_delete): Update prototype.
3401
 
3402
        * typeck.c (common_base_type): Delete unused var TMP.
3403
        (build_binary_op): Delete local var ARGS_SAVE.
3404
        (build_array_ref): Delete unused var ITYPE.
3405
        (c_expand_return): Delete unused var USE_TEMP.
3406
 
3407
        * typeck.c (compexcepttypes): Delete unused arg STRICT.
3408
        (comptypes): Fix calls.
3409
        * decl.c (duplicate_decls): Likewise.
3410
        * cp-tree.h (compexcepttypes): Delete extra arg.
3411
 
3412
        * decl2.c (check_classfn): Delete unused second arg CNAME.
3413
        * decl.c (start_decl, grokfndecl): Fix calls.
3414
        * init.c (do_friend): Likewise.
3415
        * cp-tree.h (check_classfn): Update prototype.
3416
 
3417
        * cp-tree.h (signature_error, import_export_vtable,
3418
        append_signature_fields, id_in_current_class, mark_used,
3419
        copy_assignment_arg_p): Add decls.
3420
        * decl2.c (mark_used): Delete decl.
3421
 
3422
        * class.c (n_*): Wrap with #ifdef GATHER_STATISTICS.
3423
 
3424
        * class.c (get_vtable_entry): Disable unused function.
3425
        (doing_hard_virtuals): Delete unused static global var.
3426
        (finish_struct_1): Don't init DOING_HARD_VIRTUALS.
3427
        (prepare_fresh_vtable): Delete unused vars PATH and RESULT.
3428
        (overrides): Delete unused vars RETTYPE and BASE_RETTYPE.
3429
        (modify_one_vtable): Delete unused var OLD_RTTI.
3430
        (finish_struct_anon): Delete unused vars OFFSET and X.
3431
        (finish_struct_bits): Delete unused var METHOD_VEC.
3432
        (get_basefndecls): Delete unused var PURPOSE.  Delete unused
3433
        for-scope local variable METHODS.
3434
 
3435
        * call.c (user_harshness): Delete unused/unneeded arg PARM.
3436
        (ideal_candidate): Delete unused args BASETYPE and PARMS.
3437
        (build_method_call): Delete unused args passed into ideal_candidate.
3438
        (build_overload_call_real): Likewise.  Delete unused var OVERLOAD_NAME.
3439
        * cp-tree.h (synthesize_method): Add decl.
3440
 
3441
        * decl.c (note_level_for_for): Give void return type.
3442
        (pushdecl_nonclass_level): Likewise.
3443
        (finish_function): Delete unused vars VFIELDS and ALLOCATED_THIS.
3444
        (poplevel): Delete unused var IMPLICIT_TRY_BLOCK.
3445
        (suspend_binding_level): Delete unused var LEVEL.
3446
        (duplicate_decls): Delete unused var CTYPE.
3447
        (duplicate_decls): Delete unused var PREVIOUS_C_DECL.
3448
        (init_decl_processing): Delete unused vars FLOAT_ENDLINK and
3449
        PTR_ENDLINK.
3450
        (grokdeclarator): Delete unused var C.
3451
        (grokdeclarator): Delete unused var SIZE_VARIES.
3452
        (grokparms): Delete unused var SAW_VOID.
3453
        (start_function): Delete unused var OLDDECL.
3454
        (cplus_expand_expr_stmt): Delete unused var
3455
        REMOVE_IMPLICIT_IMMEDIATELY.
3456
 
3457
        * cp-tree.h (pushdecl_nonclass_level): Fix prototype.
3458
 
3459
        * Makefile.in (CONFLICTS): Update to 12 shift/reduce.
3460
 
3461
Wed Feb 21 00:06:17 1996  Jason Merrill  
3462
 
3463
        * tree.c (build_min): Set TREE_COMPLEXITY to lineno.
3464
        (build_min_nt): Likewise.
3465
        * pt.c (do_pushlevel): Emit line note.
3466
        (do_poplevel): Return what we get from poplevel.
3467
        (tsubst_expr): Set lineno from TREE_COMPLEXITY in stmt nodes.
3468
        * parse.y: Use do_pushlevel and do_poplevel.
3469
        * cp-tree.h: Declare do_poplevel.
3470
 
3471
        * cp-tree.h: Declare at_eof.
3472
        * decl.c (cp_finish_decl): Pass it to rest_of_decl_compilation.
3473
        * decl2.c (import_export_decl): Renamed from import_export_inline.
3474
        (finish_file): Call it to do interface handling for statics.
3475
        * pt.c (tsubst_copy): Call mark_used on variables and functions
3476
        used here.
3477
 
3478
        * decl2.c (finish_file): Don't emit statics we can't generate.
3479
        * pt.c (instantiate_decl): Don't set interface on instantiations
3480
        we can't generate.
3481
 
3482
        * cp-tree.h (struct tinst_level): Change 'classname' to 'decl'.
3483
        * tree.c (print_lang_statistics): Print max template depth.
3484
        * pt.c (push_tinst_level): Dump entire instantiation context.
3485
        (instantiate_class_template): Use it and pop_tinst_level.
3486
        (instantiate_decl): Likewise.
3487
 
3488
        * call.c class.c cp-tree.h decl.c decl2.c error.c lex.c method.c
3489
        pt.c ptree.c tree.def: Remove all traces of UNINSTANTIATED_P_TYPE.
3490
 
3491
Tue Feb 20 18:21:51 1996  Jason Merrill  
3492
 
3493
        * call.c class.c cp-tree.h cvt.c decl.c decl2.c error.c expr.c
3494
        init.c lex.c method.c parse.y pt.c repo.c search.c spew.c tree.c
3495
        tree.def typeck.c typeck2.c xref.c: Massive, systemic changes for
3496
        the new template implementation.
3497
 
3498
Tue Feb 20 17:14:29 1996  Brendan Kehoe  
3499
 
3500
        * decl2.c (check_cp_case_value): Use STRIP_TYPE_NOPS.
3501
 
3502
Thu Feb 15 18:44:42 1996  Mike Stump  
3503
 
3504
        * decl.c (cp_finish_decl): Delay emitting the debug information for
3505
        a typedef that has been installed as the canonical typedef, if the
3506
        type has not yet been defined.
3507
 
3508
Thu Feb 15 09:39:08 1996  Jason Merrill  
3509
 
3510
        * decl2.c (grokfield): Still call pop_nested_class for access decls.
3511
 
3512
Wed Feb 14 17:30:04 1996  Brendan Kehoe  
3513
 
3514
        * decl.c (lookup_label): Call label_rtx.
3515
 
3516
        * decl.c (make_binding_level): New function.
3517
        (pushlevel, pushlevel_class): Call it instead of explicit
3518
        duplicate calls to xmalloc.
3519
 
3520
        * decl.c (init_decl_processing): Delete useless build_pointer_type
3521
        call.
3522
 
3523
        * decl.c (float_ftype_float, ldouble_ftype_ldouble): Add definitions.
3524
        (sizet_ftype_string): Delete variable.
3525
        (init_decl_processing): Add built-in functions fabsf, fabsl,
3526
        sqrtf, sqrtl, sinf, sin, sinl, cosf, cos, cosl.  New local
3527
        variable strlen_ftype, used for strlen.
3528
 
3529
Wed Feb 14 16:21:25 1996  Jason Merrill  
3530
 
3531
        * decl.c (push_to_top_level): Start from current_binding_level
3532
        again for now; the stl hacks depend on g++ being broken in this
3533
        way, and it'll be fixed in the template rewrite.
3534
 
3535
        * tree.def: Add USING_DECL.
3536
        * decl2.c (do_class_using_decl): Implement.
3537
        (grokfield): Pass access decls off to do_class_using_decl instead of
3538
        grokdeclarator.
3539
        * error.c (dump_decl): Handle USING_DECLs.
3540
        * decl.c (grokdeclarator): Remove code for handling access decls.
3541
        * class.c (finish_struct_1): Adjust accordingly, treat using-decls
3542
        as access decls for now.
3543
        (finish_struct): Don't check USING_DECLs for other uses of the name.
3544
 
3545
        * search.c (get_matching_virtual): Use cp_error_at.
3546
 
3547
Wed Feb 14 10:36:58 1996  Brendan Kehoe  
3548
 
3549
        * typeck.c (comptypes): Default COMP_TYPE_ATTRIBUTES to 1, to
3550
        match c-typeck.c.
3551
        (self_promoting_args_p): Move the check that TYPE is non-nil
3552
        before trying to look at its main variant.
3553
        (unsigned_type, signed_type): Add checking of DI/SI/HI/QI nodes.
3554
 
3555
        * cp-tree.h (DECL_WAITING_FRIENDS, SET_DECL_WAITING_FRIENDS):
3556
        Delete macros.
3557
        * init.c (xref_friend, embrace_waiting_friends): Delete functions.
3558
        (do_friend): Delete call to xref_friend.
3559
        * class.c (finish_struct_1): Delete call to embrace_waiting_friends.
3560
 
3561
        * typeck.c (convert_sequence): #if 0 unused function.
3562
 
3563
        * cp-tree.h (DECL_IN_MEMORY_P): New macro w/ the check that used to
3564
        be in decl_in_memory_p.
3565
        (decl_in_memory_p): Delete decl.
3566
        * expr.c (decl_in_memory_p): Delete fn.
3567
        * typeck.c (mark_addressable): Use DECL_IN_MEMORY_P.
3568
 
3569
        * decl.c (cp_finish_decl): Use DECL_IN_MEMORY_P.
3570
 
3571
Tue Feb 13 12:51:21 1996  Jason Merrill  
3572
 
3573
        * class.c (finish_struct_1): Check for a pure-specifier on a
3574
        non-virtual function here.
3575
 
3576
        * decl2.c (grok_function_init): Don't check whether the function
3577
        is virtual here.
3578
        (grokfield): Don't call check_for_override here.
3579
 
3580
        * decl.c (push_to_top_level): Start from inner_binding_level,
3581
        check class_shadowed in class levels.
3582
 
3583
Mon Feb 12 17:46:59 1996  Mike Stump  
3584
 
3585
        * decl.c (resume_level): Ignore things that don't have names, instead
3586
        of core dumping.
3587
 
3588
Mon Feb 12 15:47:44 1996  Brendan Kehoe  
3589
 
3590
        * decl2.c (grokfield): Set DECL_VINDEX properly for FUNCTION_DECLs.
3591
 
3592
Sat Feb 10 17:59:45 1996  Jason Merrill  
3593
 
3594
        * class.c (finish_struct_1): Set DECL_VINDEX properly on a
3595
        synthesized dtor.
3596
 
3597
        * parse.y (complete_type_name): Bind global_scope earlier.
3598
        (complex_type_name): Likewise.
3599
        (qualified_type_name): Remove.
3600
 
3601
Thu Feb  8 15:15:14 1996  Jason Merrill  
3602
 
3603
        * decl.c (grokfndecl): Move code that looks for virtuals in base
3604
        classes...
3605
        * class.c (check_for_override): ... to a new function.
3606
        (finish_struct_1): Call it.
3607
 
3608
        * cp-tree.h: Declare warn_sign_compare.
3609
 
3610
        * typeck.c (build_binary_op_nodefault): Check warn_sign_compare
3611
        rather than extra_warnings to decide whether to warn about
3612
        comparison of signed and unsigned.
3613
 
3614
        * decl2.c (lang_decode_option): Handle warn_sign_compare.  -Wall
3615
        implies -Wsign-compare.  -Wall doesn't imply -W.
3616
 
3617
Wed Feb  7 15:27:57 1996  Mike Stump  
3618
 
3619
        * typeck.c (build_component_ref): Fix to handle anon unions in base
3620
        classes as well.
3621
 
3622
Wed Feb  7 14:29:12 1996  Brendan Kehoe  
3623
 
3624
        * class.c (resolves_to_fixed_type_p): Delete code dealing with
3625
        a WITH_CLEANUP_EXPR, since we don't generate them any more.
3626
        * cvt.c (build_up_reference): Likewise.
3627
        * decl.c (grok_reference_init): Likewise.
3628
        (cp_finish_decl): Likewise.
3629
        * error.c (dump_expr): Likewise.
3630
        * tree.c (real_lvalue_p): Likewise.
3631
        (lvalue_p): Likewise.
3632
        (build_cplus_new): Likewise.
3633
        (unsave_expr_now): Likewise.
3634
        * typeck.c (unary_complex_lvalue, build_modify_expr,
3635
        c_expand_return): Likewise.
3636
 
3637
Tue Feb  6 13:39:22 1996  Brendan Kehoe  
3638
 
3639
        Make the C++ front-end pay attention to attributes for structures.
3640
        * class.c (finish_struct): New argument ATTRIBUTES, passed down into
3641
        finish_struct_1.
3642
        (finish_struct_1): New argument ATTRIBUTES; call cplus_decl_attributes.
3643
        Take out old round_up_size use and setting the DECL_ALIGN possibly
3644
        using it.  Take out setting of TYPE_ALIGN to round_up_size, which
3645
        can override what the attribute set.
3646
        * cp-tree.h (finish_struct): Update prototype.
3647
        * parse.y (template_instantiate_once): Pass a NULL_TREE for the
3648
        attributes to finish_struct.
3649
        (structsp): For a CLASS decl, add maybe_attribute to rule and pass that
3650
        value down into finish_struct.
3651
        * Makefile.in (CONFLICTS): Switch to 7 shift/reduce conflicts.
3652
 
3653
Tue Feb  6 13:12:15 1996  Per Bothner  
3654
 
3655
        * decl.c (poplevel):  Re-word dead for local handling.
3656
        (pushdecl):  Remove useless DECL_DEAD_FOR_LOCAL test.
3657
        (cp_finish_decl):  If is_for_scope, check for duplicates so
3658
        we can disable is_for_scope.  Otherwise, preserve_temp_slots.
3659
 
3660
        * lex.c (do_identifier):  Use global binding in preference of
3661
        dead for local variable.
3662
 
3663
Mon Feb  5 17:46:46 1996  Mike Stump  
3664
 
3665
        * init.c (initializing_context): Handle anon union changes, the
3666
        context where fields of anon unions can be initialized now has to be
3667
        found by walking up the TYPE_CONTEXT chain.
3668
 
3669
Fri Feb  2 14:54:04 1996  Doug Evans  
3670
 
3671
        * decl.c (start_decl): #ifdef out code to set DECL_COMMON
3672
        if ASM_OUTPUT{,_ALIGNED}_BSS is defined.
3673
        (obscure_complex_init): If bss is supported, always set
3674
        DECL_INITIAL to error_mark_node.
3675
 
3676
Thu Feb  1 16:19:56 1996  Brendan Kehoe  
3677
 
3678
        * init.c (is_friend): Make sure there's a context before we see if
3679
        it's an aggr type.
3680
 
3681
Thu Feb  1 15:44:53 1996  Mike Stump  
3682
 
3683
        * init.c (is_friend): Classes are not friendly with nested classes.
3684
 
3685
Thu Feb  1 15:27:37 1996  Doug Evans  
3686
 
3687
        * lex.c (check_newline): Pass last character read to HANDLE_PRAGMA,
3688
        and record its result.
3689
 
3690
Thu Feb  1 09:27:01 1996  Mike Stump  
3691
 
3692
        * class.c (finish_struct_anon): Switch around code to not move anon
3693
        union elements around, nor mess up their contexts, nor offsets,
3694
        instead we now build up the right number of COMPONENT_REFs for all
3695
        the anon unions that may be present at build_component_ref time.
3696
        * typeck.c (lookup_anon_field): New routine to handle field lookup
3697
        on fields without names.  We find them, based upon their unique type
3698
        instead.
3699
        * typeck.c (build_component_ref): Allow FIELD_DECL components.
3700
        Handle finding components in anonymous unions, and ensure that a
3701
        COMPONENT_REF is built for each level as necessary.
3702
 
3703
Tue Jan 30 18:18:23 1996  Mike Stump  
3704
 
3705
        * cvt.c (build_up_reference): Make the INDIRECT_BIND case come after
3706
        code that ensures that copy ctors are used if appropriate.
3707
 
3708
Tue Jan 30 17:35:14 1996  Brendan Kehoe  
3709
 
3710
        * init.c (build_vec_delete): Only give an error if base isn't an
3711
        error_mark_node.
3712
 
3713
Mon Jan 29 17:09:06 1996  Mike Stump  
3714
 
3715
        * spew.c (do_aggr): `new struct S;' isn't a forward declaration.
3716
        (yylex): If we see `new', keep slurping.
3717
 
3718
Thu Jan 25 18:31:36 1996  Mike Stump  
3719
 
3720
        * class.c (finish_struct_1): Move code for handling anon unions...
3721
        (finish_struct_anon): to here.  Fixup so that we do the offset
3722
        calculations right, and so that the fields are physically moved to
3723
        the containers's chain.
3724
 
3725
Thu Jan 25 18:27:37 1996  Brendan Kehoe  
3726
 
3727
        * decl.c (grokdeclarator): Avoid trying to get an operand off an
3728
        identifier node.
3729
 
3730
Wed Jan 24 11:25:30 1996  Jim Wilson  
3731
 
3732
        * typeck.c (pointer_int_sum): Use TYPE_PRECISION (sizetype) not
3733
        POINTER_SIZE to agree with expr.c.
3734
 
3735
Thu Jan 25 13:01:23 1996  Mike Stump  
3736
 
3737
        * search.c (lookup_field): Don't report ambiguities if protect is 0,
3738
        instead return NULL_TREE.
3739
 
3740
Wed Jan 24 13:01:26 1996  Mike Stump  
3741
 
3742
        * class.c (finish_struct_1): Call warn_hidden if we want warnings
3743
        about overloaded virtual functions.
3744
        (warn_hidden): New routine to warn of virtual functions that are
3745
        hidden by other virtual functions, that are not overridden.
3746
        (get_basefndecls): New routine, used by warn_hidden.
3747
        (mark_overriders): New routine, used by warn_hidden.
3748
        * search.c (get_matching_virtual): Remove old warning that just
3749
        isn't very useful.
3750
 
3751
Tue Jan 23 12:26:10 1996  Brendan Kehoe  
3752
 
3753
        * decl.c (output_builtin_tdesc_entries): #if 0 the function definition.
3754
 
3755
        * typeck.c (null_ptr_cst_p): Delete unused fn.
3756
        (build_function_call_maybe): Delete unused fn.
3757
 
3758
        * expr.c (extract_init): #if 0 the code after unconditional return 0
3759
        for now.
3760
 
3761
        Delete old cadillac code.
3762
        * edsel.c: Remove file.
3763
        * Make-lang.in (CXX_SRCS): Take edsel.c off the list.
3764
        * Makefile.in (CXX_OBJS): Delete edsel.o.
3765
        (edsel.o): Delete rule.
3766
        * cp-tree.h (flag_cadillac): Delete var decl.
3767
        * lang-options.h: Delete "-fcadillac" and "-fno-cadillac".
3768
        * decl2.c (flag_cadillac): Delete var definition.
3769
        (lang_decode_option): Delete handling of -fcadillac and -fno-cadillac.
3770
        (grokfield): Delete code depending on flag_cadillac.
3771
        (finish_anon_union): Likewise.
3772
        * class.c (finish_struct_1): Likewise.
3773
        (pushclass): Likewise.
3774
        (popclass): Likewise.
3775
        (push_lang_context): Likewise.
3776
        (pop_lang_context): Likewise.
3777
        * decl.c (init_decl_processing): Likewise.
3778
        (start_decl): Likewise.
3779
        (cp_finish_decl): Likewise.
3780
        (xref_tag): Likewise.
3781
        (finish_enum): Likewise.
3782
        (start_function): Likewise.
3783
        (finish_function): Likewise.
3784
        (finish_stmt): Likewise.
3785
        * lex.c (lang_init): Likewise.
3786
        (check_newline): Likewise.
3787
 
3788
        * lex.c (do_pending_inlines): Delete synthesized method kludge.
3789
 
3790
        Delete defunct, ancient garbage collection implementation.
3791
        * rtti.c: New file with the RTTI stuff from gc.c.
3792
        * gc.c: Removed file (moved the remaining stuff into rtti.c).
3793
        * Makefile.in (CXX_OBJS): Replace gc.o with rtti.o.
3794
        (rtti.o): New rule, replacing gc.o.
3795
        * Make-lang.in (CXX_SRCS): Replace gc.c with rtti.c.
3796
        * cp-tree.h: Delete gc-related fn decls.
3797
        (DECL_GC_OFFSET): Delete macro.
3798
        (flag_gc): Delete extern decl.
3799
        * decl.c (current_function_obstack_index): Delete var decl.
3800
        (current_function_obstack_usage): Delete var decl.
3801
        (start_function): Delete clearing of current_function_obstack_index
3802
        and current_function_obstack_usage.
3803
        (init_decl_processing): Delete code relying on -fgc.
3804
        Delete call to init_gc_processing.
3805
        (cp_finish_decl): Delete calls to build_static_gc_entry and
3806
        type_needs_gc_entry.  Delete gc code setting DECL_GC_OFFSET.
3807
        (store_parm_decls): Delete -fgc calls to cp_expand_decl_cleanup
3808
        and to expand_expr of a __gc_main call.
3809
        (maybe_gc_cleanup): Delete var decl.
3810
        (finish_function): Delete call to expand_gc_prologue_and_epilogue.
3811
        * decl2.c (flag_gc): Delete var decl.
3812
        (lang_f_options): Delete offering of -fgc.
3813
        (lang_decode_option): Delete -fgc and -fno-gc handling.
3814
        (get_temp_regvar): Delete gc code.
3815
        * init.c (build_new): Delete gc code.
3816
        * lex.c (init_lex): Delete checking of flag_gc.
3817
 
3818
        * typeck.c (convert_arguments): Delete gc code.
3819
        (build_component_addr): Delete -fgc warning.
3820
        (build_modify_expr): Delete gc code.
3821
 
3822
        * decl2.c (build_push_scope): Delete fn.
3823
        * cp-tree.h (build_push_scope): Delete decl.
3824
 
3825
        * search.c (clear_search_slots): Delete fn.
3826
        * cp-tree.h (clear_search_slots): Delete decl.
3827
 
3828
        * search.c (tree_needs_constructor_p): Delete fn.
3829
        * cp-tree.h (tree_needs_constructor_p): Delete decl.
3830
 
3831
        * tree.c (id_cmp): Delete fn.
3832
 
3833
        * tree.c (set_fnaddr_from_vtable_entry): Delete fn.
3834
        * cp-tree.h (set_fnaddr_from_vtable_entry): Delete decl.
3835
 
3836
        * tree.c (decl_value_member): Delete fn.
3837
        * cp-tree.h (decl_value_member): Delete decl.
3838
 
3839
        * tree.c (list_hash_lookup_or_cons): Delete fn.
3840
        * cp-tree.h (list_hash_lookup_or_cons): Delete decl.
3841
 
3842
        * method.c (cplus_exception_name): Delete fn.
3843
        (EXCEPTION_NAME_{PREFIX, LENGTH}): Delete macros.
3844
 
3845
        * spew.c (shift_tokens): Delete fn.
3846
 
3847
Mon Jan 22 17:49:33 1996  Jason Merrill  
3848
 
3849
        * except.c (init_exception_processing): Pass 1 to needs_pop in calls
3850
        to cp_finish_decl.
3851
        * parse.y: Likewise.
3852
 
3853
Mon Jan 22 17:34:29 1996  Brendan Kehoe  
3854
 
3855
        * tree.c (build_cplus_staticfn_type): Delete function definition;
3856
        never used.
3857
        * cp-tree.h (build_cplus_staticfn_type): Delete decl.
3858
 
3859
        * tree.c (virtual_member): Delete function definition; never used.
3860
        * cp-tree.h (virtual_member): Delete decl.
3861
 
3862
Fri Jan 19 18:03:14 1996  Mike Stump  
3863
 
3864
        * typeck.c (build_component_ref): Handle getting vbase pointers
3865
        out of complex multiple inheritance better.
3866
 
3867
Fri Jan 19 16:27:40 1996  Mike Stump  
3868
 
3869
        * typeck.c (build_object_ref): Make sure we use the real type, not
3870
        any reference type.
3871
 
3872
Fri Jan 19 16:01:47 1996  Mike Stump  
3873
 
3874
        * tree.c (build_exception_variant): Don't create new types if we
3875
        don't have to, also build new types on the right obstack.
3876
 
3877
Fri Jan 19 14:09:44 1996  Jason Merrill  
3878
 
3879
        * decl.c (store_bindings): Split out from push_to_top_level.
3880
        (push_to_top_level): Call it for b->type_shadowed on class binding
3881
        levels.
3882
 
3883
Fri Jan 19 13:53:14 1996  Mike Stump  
3884
 
3885
        * search.c (expand_upcast_fixups): Fix so that offsets stored in
3886
        vbase_offsets are always right.  Fixes a problem where virtual base
3887
        upcasting and downcasting could be wrong during conversions on this
3888
        during virtual function dispatch at ctor/dtor time when dynamic
3889
        vtable fixups for deltas are needed.  This only sounds easier than
3890
        it is.  :-)
3891
        (fixup_virtual_upcast_offsets): Change to reflect new calling
3892
        convention for expand_upcast_fixups.
3893
 
3894
Fri Jan 19 12:23:08 1996  Brendan Kehoe  
3895
 
3896
        * decl2.c (grokbitfield): Strip the NOPs from WIDTH before we
3897
        check that it's usable as the bitfield width.
3898
 
3899
Wed Jan 17 21:22:40 1996  Brendan Kehoe  
3900
 
3901
        * decl2.c (grokfield): Call cplus_decl_attributes with the attrlist.
3902
        Pass a null tree to grokdeclarator for its ATTRLIST arg, since it's
3903
        only ever used for functions in it.
3904
 
3905
Wed Jan 17 12:10:38 1996  Jason Merrill  
3906
 
3907
        * parse.y (qualified_type_name): Use the TYPE_DECL, not the type.
3908
        (nested_type): Likewise.
3909
        (nested_name_specifier): Use lastiddecl.
3910
 
3911
        * decl.c (grokdeclarator): Adjust accordingly.
3912
        * init.c (expand_member_init): Likewise.
3913
        * parse.y (base_class): Likewise.
3914
        * typeck2.c (build_functional_cast): Likewise.
3915
 
3916
        * typeck2.c (build_functional_cast): Fill in name after we've
3917
        checked for non-aggr type.
3918
 
3919
Wed Jan 17 10:18:01 1996  Mike Stump  
3920
 
3921
        * decl2.c (warn_pointer_arith): Default to on.
3922
 
3923
Tue Jan 16 12:45:38 1996  Jason Merrill  
3924
 
3925
        * lex.c (is_rid): New function.
3926
        * decl.c (grokdeclarator): Diagnose reserved words used as
3927
        declarator-ids.
3928
 
3929
Tue Jan 16 11:39:40 1996  Jason Merrill  
3930
 
3931
        * tree.c (get_decl_list): Don't lose cv-quals.
3932
 
3933
        * decl.c (grokdeclarator): Fix SCOPE_REF handling and diagnose
3934
        typespecs used as declarator-ids.
3935
 
3936
Tue Jan 16 11:09:42 1996  Mike Stump  
3937
 
3938
        * decl.c (poplevel): When popping a level, don't give a warning for
3939
        any subblocks that already exist.
3940
 
3941
Tue Jan 16 00:25:33 1996  Jason Merrill  
3942
 
3943
        * typeck.c (build_object_ref): Finish what I started.
3944
 
3945
        * parse.y (qualified_type_name): Don't check TYPE_BUILT_IN.
3946
 
3947
        * decl2.c (constructor_name_full): Handle TEMPLATE_TYPE_PARMs.
3948
 
3949
        * decl.c (grokdeclarator): Also accept TEMPLATE_TYPE_PARM as a
3950
        scope.
3951
 
3952
Mon Jan 15 16:19:32 1996  Jason Merrill  
3953
 
3954
        * decl.c (xref_tag): Handle passing a type in directly.
3955
 
3956
        * parse.y (qualified_type_name): Pull out the type.
3957
        (nested_type): Likewise.
3958
        Take types directly instead of as identifiers.
3959
        * call.c (build_scoped_method_call): Take types directly instead of
3960
        as identifiers.
3961
        * decl.c (xref_basetypes): Likewise.
3962
        * init.c (expand_member_init): Likewise.
3963
        (build_member_call): Likewise.
3964
        (build_offset_ref): Likewise.
3965
        * typeck2.c (build_scoped_ref): Likewise, remove bogus code.
3966
        * method.c (do_build_assign_ref): Likewise.
3967
        * decl.c (grokdeclarator): Handle a type appearing as the
3968
        declarator-id for constructors.
3969
        * method.c (do_build_copy_constructor): current_base_init_list now
3970
        uses the types directly, not their names.
3971
        * init.c (sort_base_init): Likewise.
3972
        (expand_member_init): Likewise.
3973
        * init.c (is_aggr_type): New function, like is_aggr_typedef.
3974
 
3975
Mon Jan 15 08:45:01 1996  Jeffrey A Law  
3976
 
3977
        * tree.c (layout_basetypes): Call build_lang_field_decl instead
3978
        of build_lang_decl if first arg is a FIELD_DECL.
3979
 
3980
Thu Jan 11 14:55:07 1996  Brendan Kehoe  
3981
 
3982
        * decl.c (cp_finish_decl): Only clear TREE_USED if DECL_NAME is
3983
        non-empty.
3984
        * except.c (expand_start_catch_block): Set TREE_USED to avoid
3985
        warnings about the catch handler.
3986
 
3987
Mon Jan  8 17:35:12 1996  Jason Merrill  
3988
 
3989
        * typeck.c (build_modify_expr): Use a COMPOUND_EXPR instead of
3990
        expand_target_expr.
3991
 
3992
Thu Jan  4 12:30:32 1996  Brendan Kehoe  
3993
 
3994
        Fix access control to use trees rather than integers.
3995
        * class.c (access_{default, public, protected, private,
3996
        default_virtual, public_virtual, private_virtual}_node): Add
3997
        definitions.
3998
        (init_class_processing): Do creation of those nodes.
3999
        * cp-tree.h (access_type): Delete enum decl.
4000
        (access_{default, public, protected, private, default_virtual,
4001
        public_virtual, private_virtual}_node): Add decls.
4002
        (compute_access): Change return type.
4003
        * search.c (compute_access): Have tree return type, instead of enum.
4004
        (lookup_field): Declare THIS_V and NEW_V to be tree nodes.
4005
        * lex.c (real_yylex): Use yylval.ttype for giving the value of the
4006
        access_* node for each of RID_{PUBLIC, PRIVATE, PROTECTED}.
4007
        * parse.y (VISSPEC): Make ttype rather than itype.
4008
        (base_class_access_list): Likewise.
4009
        * *.[cy]: Change all refs of `access_public' to `access_public_node',
4010
        etc.
4011
        * call.c (build_method_call): Make ACCESS be a tree.
4012
        * class.c (alter_access, finish_struct_1, filter_struct): Likewise.
4013
        * cvt.c (convert_to_aggr): Likewise.
4014
        * init.c (build_offset_ref, resolve_offset_ref, build_delete):
4015
        Likewise.
4016
        * method.c (hack_identifier): Likewise.
4017
        * typeck.c (build_component_ref_1, build_component_ref): ): Likewise.
4018
 
4019
Thu Jan  4 11:02:20 1996  Mike Stump  
4020
 
4021
        * typeck.c (pointer_int_sum, pointer_diff): Make code agree with C
4022
        frontend, and make it more consistent with respect to
4023
        warn_pointer_arith.
4024
 
4025
Tue Jan  2 00:13:38 1996  Rusty Russell  
4026
 
4027
        * decl.c (pushdecl): Check for duplicate parameter names.
4028
 
4029
Wed Jan  3 09:25:48 1996  Mike Stump  
4030
 
4031
        * decl.c (expand_static_init): Call assemble_external for atexit.
4032
 
4033
Wed Jan  3 07:55:19 1996  Mike Stump  
4034
 
4035
        * except.c (do_unwind): Remove some generated dead code.
4036
        (eh_outer_context): New routine, factor out some common code from
4037
        expand_builtin_throw and end_eh_unwinder.  Add code to do return
4038
        address masking for the PA.
4039
        (expand_builtin_throw): Use eh_outer_context instead of open coding
4040
        it here.
4041
        (end_eh_unwinder): Likewise.
4042
 
4043
Tue Jan  2 17:00:56 1996  Mike Stump  
4044
 
4045
        * except.c (expand_throw): Call assemble_external for __empty, if we
4046
        use it.
4047
 
4048
 
4049
Copyright (C) 1996 Free Software Foundation, Inc.
4050
 
4051
Copying and distribution of this file, with or without modification,
4052
are permitted in any medium without royalty provided the copyright
4053
notice and this notice are preserved.

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.