annotate gcc/cp/ChangeLog-1995 @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 Thu Dec 28 11:13:15 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
2
kono
parents:
diff changeset
3 * except.c (expand_builtin_throw): Use RETURN_ADDR_OFFSET instead of
kono
parents:
diff changeset
4 NORMAL_RETURN_ADDR_OFFSET.
kono
parents:
diff changeset
5 (end_eh_unwinder): Likewise.
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 Wed Dec 27 22:18:16 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 * gc.c (build_dynamic_cast): Make sure we don't cast away const
kono
parents:
diff changeset
10 when dealing with references, and make sure we handle dynamic
kono
parents:
diff changeset
11 casting to a cv qualified reference.
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 Thu Dec 21 23:50:35 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
14
kono
parents:
diff changeset
15 * except.c (struct eh_context): New structure top hold eh context
kono
parents:
diff changeset
16 information.
kono
parents:
diff changeset
17 (push_eh_context): New routine.
kono
parents:
diff changeset
18 (pop_eh_context): Likewise.
kono
parents:
diff changeset
19 * decl.c (push_cp_function_context): Use them.
kono
parents:
diff changeset
20 (pop_cp_function_context): Likewise.
kono
parents:
diff changeset
21
kono
parents:
diff changeset
22 Wed Dec 20 12:42:51 1995 Jason Merrill <jason@yorick.cygnus.com>
kono
parents:
diff changeset
23
kono
parents:
diff changeset
24 * decl2.c (finish_file): Also prune uninteresting functions in the
kono
parents:
diff changeset
25 inline emission loop.
kono
parents:
diff changeset
26
kono
parents:
diff changeset
27 Wed Dec 20 02:32:07 1995 Jeffrey A Law <law@cygnus.com>
kono
parents:
diff changeset
28
kono
parents:
diff changeset
29 * sig.c (build_signature_table_constructor): Mark functions
kono
parents:
diff changeset
30 in the signature as referenced.
kono
parents:
diff changeset
31
kono
parents:
diff changeset
32 Tue Dec 19 22:36:56 1995 Jason Merrill <jason@yorick.cygnus.com>
kono
parents:
diff changeset
33
kono
parents:
diff changeset
34 * decl2.c (finish_file): Do all the vtable/synthesis stuff before
kono
parents:
diff changeset
35 the inline emission stuff.
kono
parents:
diff changeset
36
kono
parents:
diff changeset
37 Mon Dec 18 15:51:33 1995 Jason Merrill <jason@yorick.cygnus.com>
kono
parents:
diff changeset
38
kono
parents:
diff changeset
39 * cp-tree.h, decl2.c (flag_weak): New flag to control the use of
kono
parents:
diff changeset
40 weak symbols.
kono
parents:
diff changeset
41 * lang-options.h: Add -f{no-,}weak.
kono
parents:
diff changeset
42 * decl.c (init_decl_processing): If the target does not support weak
kono
parents:
diff changeset
43 symbols, don't use them.
kono
parents:
diff changeset
44 * decl2.c, pt.c: s/SUPPORTS_WEAK/flag_weak/.
kono
parents:
diff changeset
45
kono
parents:
diff changeset
46 Sun Dec 17 21:13:23 1995 Rusty Russell <rusty@adelaide.maptek.com.au>
kono
parents:
diff changeset
47
kono
parents:
diff changeset
48 * init.c (expand_member_init): warning for base init after members.
kono
parents:
diff changeset
49
kono
parents:
diff changeset
50 Fri Dec 15 15:32:18 1995 Jason Merrill <jason@yorick.cygnus.com>
kono
parents:
diff changeset
51
kono
parents:
diff changeset
52 * cvt.c (build_expr_type_conversion): Don't convert to a reference
kono
parents:
diff changeset
53 type.
kono
parents:
diff changeset
54
kono
parents:
diff changeset
55 Thu Dec 14 16:05:58 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
56
kono
parents:
diff changeset
57 * method.c (report_type_mismatch): Improve wording for volatile
kono
parents:
diff changeset
58 mismatches.
kono
parents:
diff changeset
59
kono
parents:
diff changeset
60 Thu Dec 14 14:16:26 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
61
kono
parents:
diff changeset
62 * init.c (expand_aggr_init_1): Use expand_aggr_init_1 instead of
kono
parents:
diff changeset
63 expand_assignment, as the later doesn't handle things that have
kono
parents:
diff changeset
64 copy constructors well. The compiler would do bitwise copying,
kono
parents:
diff changeset
65 instead of ctor calling in some cases.
kono
parents:
diff changeset
66
kono
parents:
diff changeset
67 Wed Dec 13 17:05:54 1995 Paul Eggert <eggert@twinsun.com>
kono
parents:
diff changeset
68
kono
parents:
diff changeset
69 * g++.c (my_strerror): Return "cannot access" if errno is 0.
kono
parents:
diff changeset
70 (pfatal_with_name, perror_exec): Don't assume that
kono
parents:
diff changeset
71 the returned value from my_strerror contains no '%'s.
kono
parents:
diff changeset
72 (concat): Remove.
kono
parents:
diff changeset
73 (sys_nerror): Declare only if HAVE_STRERROR is not defined.
kono
parents:
diff changeset
74
kono
parents:
diff changeset
75 Wed Dec 13 16:22:38 1995 Jason Merrill <jason@yorick.cygnus.com>
kono
parents:
diff changeset
76
kono
parents:
diff changeset
77 Lose CLASSTYPE_METHODS/DECL_NEXT_METHOD chain; make
kono
parents:
diff changeset
78 TYPE_METHODS/TREE_CHAIN mean what they used to.
kono
parents:
diff changeset
79 * decl2.c (constructor_name_full): Refer to CLASSTYPE_METHOD_VEC
kono
parents:
diff changeset
80 instead of TYPE_METHODS.
kono
parents:
diff changeset
81 * decl.c (duplicate_decls): Lose references to DECL_NEXT_METHOD.
kono
parents:
diff changeset
82 * tree.c (tree_copy_lang_decl_for_deferred_output): Likewise.
kono
parents:
diff changeset
83 * cp-tree.h (CLASSTYPE_METHODS): Lose.
kono
parents:
diff changeset
84 (CLASSTYPE_METHOD_VEC): Point to lang_spec->methods instead of
kono
parents:
diff changeset
85 TYPE_METHODS.
kono
parents:
diff changeset
86 (struct lang_decl): Lose next_method field.
kono
parents:
diff changeset
87 (DECL_NEXT_METHOD): Lose.
kono
parents:
diff changeset
88 * class.c (finish_struct_methods): Don't mess with TYPE_METHODS.
kono
parents:
diff changeset
89 (finish_struct): Just use TYPE_METHODS; we don't need fn_fields
kono
parents:
diff changeset
90 anymore.
kono
parents:
diff changeset
91 (finish_struct_methods): Don't mess with the TREE_CHAINs in
kono
parents:
diff changeset
92 fn_fields.
kono
parents:
diff changeset
93
kono
parents:
diff changeset
94 * search.c (add_conversions): Don't use TREE_CHAIN to traverse method
kono
parents:
diff changeset
95 vector.
kono
parents:
diff changeset
96
kono
parents:
diff changeset
97 * call.c (build_method_call): Synthesize here even when not inlining.
kono
parents:
diff changeset
98 * typeck.c (build_function_call_real): Likewise.
kono
parents:
diff changeset
99
kono
parents:
diff changeset
100 Wed Dec 13 15:02:39 1995 Ian Lance Taylor <ian@cygnus.com>
kono
parents:
diff changeset
101
kono
parents:
diff changeset
102 * cp/lex.c (check_newline): If DBX_DEBUGGING_INFO and write_symbols
kono
parents:
diff changeset
103 == DBX_DEBUG, call dbxout_start_new_source_file and
kono
parents:
diff changeset
104 dbxout_resume_previous_source_file when appropriate.
kono
parents:
diff changeset
105
kono
parents:
diff changeset
106 Tue Dec 12 20:38:55 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
107
kono
parents:
diff changeset
108 * except.c (start_anon_func): Push to the top level.
kono
parents:
diff changeset
109 (end_anon_func): Pop from the top level.
kono
parents:
diff changeset
110
kono
parents:
diff changeset
111 Mon Dec 11 18:56:14 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
112
kono
parents:
diff changeset
113 * cp-tree.h (build_cleanup): New routine to build cleanups.
kono
parents:
diff changeset
114 * decl.c (expand_static_init): Use build_cleanup to build a cleanup
kono
parents:
diff changeset
115 call at ctor time and use atexit to run it later.
kono
parents:
diff changeset
116 * decl2.c (build_cleanup): New routine, taken from finish_file.
kono
parents:
diff changeset
117 (finish_file): Use build_cleanup instead, and don't put function
kono
parents:
diff changeset
118 local statics in global dtor list.
kono
parents:
diff changeset
119
kono
parents:
diff changeset
120 Wed Dec 6 14:34:29 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
121
kono
parents:
diff changeset
122 * except.c (expand_throw): Ensure that we have cleanups, if we try
kono
parents:
diff changeset
123 and expand cleanups.
kono
parents:
diff changeset
124
kono
parents:
diff changeset
125 Wed Dec 6 11:48:21 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
126
kono
parents:
diff changeset
127 * except.c (expand_throw): Add logic to manage dynamic cleanups for
kono
parents:
diff changeset
128 the EH object.
kono
parents:
diff changeset
129 (expand_end_catch_block): Use the magic of expand_goto, instead of
kono
parents:
diff changeset
130 emit_jump so that we get the cleanup for any catch clause parameter
kono
parents:
diff changeset
131 and the cleanup for the exception object. Update to reflect label
kono
parents:
diff changeset
132 changes.
kono
parents:
diff changeset
133 (push_eh_cleanup): New routine to register a cleanup for an
kono
parents:
diff changeset
134 exception object.
kono
parents:
diff changeset
135 (empty_fndecl): Used to default cleanup actions to
kono
parents:
diff changeset
136 nothing.
kono
parents:
diff changeset
137 (init_exception_processing): Setup empty_fndecl. Setup
kono
parents:
diff changeset
138 saved_cleanup.
kono
parents:
diff changeset
139 (expand_start_catch_block): Update to reflect label changes. Call
kono
parents:
diff changeset
140 push_eh_object to register the cleanup for the EH object.
kono
parents:
diff changeset
141 (start_anon_func): New routine to start building lambda expressions
kono
parents:
diff changeset
142 from trees.
kono
parents:
diff changeset
143 (end_anon_func): New routine to end them.
kono
parents:
diff changeset
144 (struct labelNode): Change so that we can use tree labels, or rtx
kono
parents:
diff changeset
145 labels.
kono
parents:
diff changeset
146 (saved_cleanup): Object to check for dynamic cleanups for the
kono
parents:
diff changeset
147 exception handling object.
kono
parents:
diff changeset
148 (push_label_entry): Change so that we can use tree labels, or rtx
kono
parents:
diff changeset
149 labels.
kono
parents:
diff changeset
150 (pop_label_entry): Likewise.
kono
parents:
diff changeset
151 (top_label_entry): Likewise.
kono
parents:
diff changeset
152 (expand_start_all_catch): Use tree label instead of rtx label, so
kono
parents:
diff changeset
153 that we can get the magic of expand_goto.
kono
parents:
diff changeset
154 (expand_end_all_catch): Update to reflect label changes.
kono
parents:
diff changeset
155
kono
parents:
diff changeset
156 * class.c (build_vfn_ref): Remove building_cleanup logic, as we now
kono
parents:
diff changeset
157 use UNSAVE_EXPRs.
kono
parents:
diff changeset
158 * typeck.c (get_member_function_from_ptrfunc): Remove remnants of
kono
parents:
diff changeset
159 building_cleanup logic, as we now use UNSAVE_EXPRs.
kono
parents:
diff changeset
160 * cp-tree.h (unsave_expr): Declare it.
kono
parents:
diff changeset
161 * decl.c (building_cleanup): Remove.
kono
parents:
diff changeset
162 (maybe_build_cleanup): Remove building_cleanup logic, and use
kono
parents:
diff changeset
163 UNSAVE_EXPR instead.
kono
parents:
diff changeset
164
kono
parents:
diff changeset
165 Sun Dec 3 01:34:58 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
166
kono
parents:
diff changeset
167 * gc.c (build_t_desc): Update error message to say <typeinfo>.
kono
parents:
diff changeset
168
kono
parents:
diff changeset
169 Thu Nov 30 12:30:05 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
170
kono
parents:
diff changeset
171 * decl.c (pushdecl): Only warn about shadowing a local variable if
kono
parents:
diff changeset
172 warn_shadow is true.
kono
parents:
diff changeset
173
kono
parents:
diff changeset
174 Sun Nov 26 16:06:55 1995 Rusty Russell <rusty@adelaide.maptek.com.au>
kono
parents:
diff changeset
175
kono
parents:
diff changeset
176 * typeck.c (build_binary_op_nodefault): Added warning about
kono
parents:
diff changeset
177 comparisons between different enum types with -Wall, unless
kono
parents:
diff changeset
178 -fenum-int-equiv set.
kono
parents:
diff changeset
179
kono
parents:
diff changeset
180 Wed Nov 22 15:44:02 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
181
kono
parents:
diff changeset
182 * class.c (finish_struct_1): Skip down to the inner type in
kono
parents:
diff changeset
183 multidimensional arrays. Ensures ctors will be made for types that
kono
parents:
diff changeset
184 need constructing.
kono
parents:
diff changeset
185
kono
parents:
diff changeset
186 Wed Nov 22 14:19:22 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
187
kono
parents:
diff changeset
188 * decl.c (last_dtor_insn): New to track the last compiler generated
kono
parents:
diff changeset
189 insn in a dtor.
kono
parents:
diff changeset
190 (store_parm_decls): Set it.
kono
parents:
diff changeset
191 (finish_function): Use it to see if the dtor is empty. Avoid doing
kono
parents:
diff changeset
192 vtable setup all the time, if we can.
kono
parents:
diff changeset
193 (struct cp_function): Add last_dtor_insn.
kono
parents:
diff changeset
194 (push_cp_function_context): Save it.
kono
parents:
diff changeset
195 (pop_cp_function_context): Restore it.
kono
parents:
diff changeset
196
kono
parents:
diff changeset
197 Wed Nov 22 11:52:19 1995 Paul Russell <Rusty.Russell@adelaide.maptek.com.au>
kono
parents:
diff changeset
198
kono
parents:
diff changeset
199 * typeck.c (build_unary_op): Set TREE_NO_UNUSED_WARNING to avoid
kono
parents:
diff changeset
200 warnings.
kono
parents:
diff changeset
201
kono
parents:
diff changeset
202 Tue Nov 21 17:15:23 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
203
kono
parents:
diff changeset
204 * typeck.c (expand_target_expr): Make sure targets get put into the
kono
parents:
diff changeset
205 current temp_slot_level, so that the free_temp_slots call will reuse
kono
parents:
diff changeset
206 them.
kono
parents:
diff changeset
207
kono
parents:
diff changeset
208 Tue Nov 21 13:32:03 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
209
kono
parents:
diff changeset
210 * class.c (finish_struct_1): Delay delta fixups for virtual bases
kono
parents:
diff changeset
211 until after we have done the hard virtuals, to avoid a bogus `every
kono
parents:
diff changeset
212 virtual function must have a unique final overrider' for virtual
kono
parents:
diff changeset
213 functions that are only overridden by hard virtuals.
kono
parents:
diff changeset
214
kono
parents:
diff changeset
215 Thu Nov 9 13:35:30 1995 Jason Merrill <jason@yorick.cygnus.com>
kono
parents:
diff changeset
216
kono
parents:
diff changeset
217 * pt.c (do_function_instantiation): Don't try to find a file-scope
kono
parents:
diff changeset
218 template for a member function.
kono
parents:
diff changeset
219
kono
parents:
diff changeset
220 Tue Nov 14 06:20:35 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
221
kono
parents:
diff changeset
222 * g++.c (main): Add handling of -nodefaultlibs.
kono
parents:
diff changeset
223
kono
parents:
diff changeset
224 Mon Nov 13 15:45:34 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
225
kono
parents:
diff changeset
226 * cp-tree.h (INDIRECT_BIND): Add a way for the frontend to
kono
parents:
diff changeset
227 distinguish between direct bindings of reference variables, and
kono
parents:
diff changeset
228 indirect bindings of reference variables.
kono
parents:
diff changeset
229 * cvt.c (build_up_reference): Use it.
kono
parents:
diff changeset
230 * typeck.c (convert_arguments): Use it to indicate this is an
kono
parents:
diff changeset
231 indirect binding.
kono
parents:
diff changeset
232 * decl.c (cp_finish_decl): Ensure that we reuse stack slots as fast
kono
parents:
diff changeset
233 as they are unused.
kono
parents:
diff changeset
234 (expand_static_init): Likewise.
kono
parents:
diff changeset
235 (cplus_expand_expr_stmt): Likewise.
kono
parents:
diff changeset
236 * decl2.c (finish_file): Likewise.
kono
parents:
diff changeset
237 * init.c (perform_member_init): Likewise.
kono
parents:
diff changeset
238 (emit_base_init): Likewise.
kono
parents:
diff changeset
239 (expand_aggr_vbase_init_1): Likewise.
kono
parents:
diff changeset
240
kono
parents:
diff changeset
241 Fri Nov 10 09:18:09 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
242
kono
parents:
diff changeset
243 * decl.c (push_namespace): Rewrite to use build_lang_decl, so we
kono
parents:
diff changeset
244 get a DECL_LANG_SPECIFIC node.
kono
parents:
diff changeset
245 * cp-tree.h (lang_decl_flags): Add new member `level'.
kono
parents:
diff changeset
246 (NAMESPACE_LEVEL): Don't use decl.arguments, instead use the
kono
parents:
diff changeset
247 decl_flags level member.
kono
parents:
diff changeset
248
kono
parents:
diff changeset
249 Mon Nov 6 18:36:13 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
250
kono
parents:
diff changeset
251 * call.c (build_method_call): Make sure instance has a
kono
parents:
diff changeset
252 TYPE_LANG_SPECIFIC node before we dive into it.
kono
parents:
diff changeset
253
kono
parents:
diff changeset
254 Sat Nov 4 20:01:52 1995 Jason Molenda <crash@phydeaux.cygnus.com>
kono
parents:
diff changeset
255
kono
parents:
diff changeset
256 * method.c (make_thunk): Use TREE_SET_CODE to set thunk's tree code.
kono
parents:
diff changeset
257
kono
parents:
diff changeset
258 Thu Nov 2 17:56:57 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
259
kono
parents:
diff changeset
260 * decl.c (duplicate_decls): When smashing decls, smash staticness in
kono
parents:
diff changeset
261 the usual way.
kono
parents:
diff changeset
262
kono
parents:
diff changeset
263 Thu Nov 2 16:44:02 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
264
kono
parents:
diff changeset
265 * decl.c (poplevel): Handle the merging of subblocks of cleanups
kono
parents:
diff changeset
266 when finishing blocks that have already been created (usually due to
kono
parents:
diff changeset
267 the fixup goto code). Fixes bad debugging information.
kono
parents:
diff changeset
268
kono
parents:
diff changeset
269 Wed Nov 1 12:33:53 1995 Jason Merrill <jason@yorick.cygnus.com>
kono
parents:
diff changeset
270
kono
parents:
diff changeset
271 * method.c (hack_identifier): Don't abort when we get a TREE_LIST
kono
parents:
diff changeset
272 that's not a list of overloaded functions.
kono
parents:
diff changeset
273
kono
parents:
diff changeset
274 Wed Nov 1 11:38:58 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
275
kono
parents:
diff changeset
276 * decl2.c (mark_vtable_entries): Check DECL_LANG_SPECIFIC on fn
kono
parents:
diff changeset
277 before trying to use DECL_ABSTRACT_VIRTUAL_P.
kono
parents:
diff changeset
278
kono
parents:
diff changeset
279 Tue Oct 31 11:56:55 1995 Jason Merrill <jason@yorick.cygnus.com>
kono
parents:
diff changeset
280
kono
parents:
diff changeset
281 * decl2.c (mark_used): New function for hooking into setting of
kono
parents:
diff changeset
282 TREE_USED on decls.
kono
parents:
diff changeset
283 * call.c (build_method_call): Use it.
kono
parents:
diff changeset
284 * class.c (instantiate_type): Likewise.
kono
parents:
diff changeset
285 * init.c (build_offset_ref): Likewise. Don't call assemble_external
kono
parents:
diff changeset
286 for all like-named functions.
kono
parents:
diff changeset
287 * method.c (hack_identifier): Likewise.
kono
parents:
diff changeset
288 (emit_thunk): Don't call assemble_external.
kono
parents:
diff changeset
289 (make_thunk): Create thunk as a FUNCTION_DECL so that it
kono
parents:
diff changeset
290 gets the right mode and ENCODE_SECTION_INFO works.
kono
parents:
diff changeset
291
kono
parents:
diff changeset
292 * parse.y: Use mark_used. Pass operator names to do_identifier.
kono
parents:
diff changeset
293 * lex.c (do_identifier): Handle operator names.
kono
parents:
diff changeset
294
kono
parents:
diff changeset
295 * decl2.c (grokclassfn): Tweak __in_chrg attributes.
kono
parents:
diff changeset
296
kono
parents:
diff changeset
297 Thu Oct 26 16:45:58 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
298
kono
parents:
diff changeset
299 * errfn.c: Include stdio.h.
kono
parents:
diff changeset
300 (cp_sprintf): Take out decl of sprintf, and cast sprintf to errorfn*.
kono
parents:
diff changeset
301
kono
parents:
diff changeset
302 Wed Oct 25 18:58:41 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
303
kono
parents:
diff changeset
304 * typeck2.c (digest_init): Always convert initializers to the
kono
parents:
diff changeset
305 right type.
kono
parents:
diff changeset
306
kono
parents:
diff changeset
307 Wed Oct 25 13:25:24 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
308
kono
parents:
diff changeset
309 * init.c (member_init_ok_or_else): Don't allow member initializers
kono
parents:
diff changeset
310 for indirect members, as it is invalid.
kono
parents:
diff changeset
311
kono
parents:
diff changeset
312 Wed Oct 25 11:35:28 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
313
kono
parents:
diff changeset
314 * decl.c (grokdeclarator): Don't allow `friend signed ()'.
kono
parents:
diff changeset
315
kono
parents:
diff changeset
316 Fri Oct 20 10:30:59 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
317
kono
parents:
diff changeset
318 * parse.y (for.init.statement): Catch compound statements inside for
kono
parents:
diff changeset
319 initializations, if we're being pedantic.
kono
parents:
diff changeset
320
kono
parents:
diff changeset
321 Fri Oct 20 10:03:42 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
322
kono
parents:
diff changeset
323 * decl.c (lookup_tag): Return NULL_TREE if we don't find what we are
kono
parents:
diff changeset
324 looking for.
kono
parents:
diff changeset
325
kono
parents:
diff changeset
326 Thu Oct 19 14:26:10 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
327
kono
parents:
diff changeset
328 * error.c (dump_expr): Don't core dump when a boolean expression is
kono
parents:
diff changeset
329 used as a default argument.
kono
parents:
diff changeset
330
kono
parents:
diff changeset
331 Thu Oct 19 10:36:30 1995 Jason Merrill <jason@yorick.cygnus.com>
kono
parents:
diff changeset
332
kono
parents:
diff changeset
333 * class.c (finish_struct_bits): Check aggregate_value_p instead of
kono
parents:
diff changeset
334 RETURN_IN_MEMORY.
kono
parents:
diff changeset
335
kono
parents:
diff changeset
336 Wed Oct 18 18:12:32 1995 Jason Merrill <jason@yorick.cygnus.com>
kono
parents:
diff changeset
337
kono
parents:
diff changeset
338 * class.c (finish_struct_bits): Also set TREE_ADDRESSABLE on a
kono
parents:
diff changeset
339 BLKmode type that would otherwise be returned in registers.
kono
parents:
diff changeset
340
kono
parents:
diff changeset
341 Mon Oct 16 12:32:19 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
342
kono
parents:
diff changeset
343 * g++.c (WITHLIBC): New macro.
kono
parents:
diff changeset
344 (main): Declare saw_libc. Use WITHLIBC if `-lc' was used; set
kono
parents:
diff changeset
345 saw_libc and pass it at the end if it was set.
kono
parents:
diff changeset
346
kono
parents:
diff changeset
347 Wed Oct 11 16:30:34 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
348
kono
parents:
diff changeset
349 * parse.y (fn.def1): Call split_specs_attrs in
kono
parents:
diff changeset
350 declmods notype_declarator case.
kono
parents:
diff changeset
351
kono
parents:
diff changeset
352 Sun Nov 26 14:47:42 1995 Richard Kenner <kenner@mole.gnu.ai.mit.edu>
kono
parents:
diff changeset
353
kono
parents:
diff changeset
354 * Version 2.7.2 released.
kono
parents:
diff changeset
355
kono
parents:
diff changeset
356 Mon Nov 20 14:05:00 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
357
kono
parents:
diff changeset
358 * g++.c (pfatal_with_name): Add missing third argument to concat.
kono
parents:
diff changeset
359
kono
parents:
diff changeset
360 Thu Oct 26 13:59:54 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
361
kono
parents:
diff changeset
362 * init.c (expand_aggr_init): Handle cv qualifiers on the object's
kono
parents:
diff changeset
363 type.
kono
parents:
diff changeset
364
kono
parents:
diff changeset
365 Sat Nov 11 08:25:55 1995 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
kono
parents:
diff changeset
366
kono
parents:
diff changeset
367 * Version 2.7.1 released.
kono
parents:
diff changeset
368
kono
parents:
diff changeset
369 Thu Nov 2 17:02:47 1995 Jason Merrill <jason@yorick.cygnus.com>
kono
parents:
diff changeset
370
kono
parents:
diff changeset
371 * call.c (convert_harshness): Handle references to arrays.
kono
parents:
diff changeset
372
kono
parents:
diff changeset
373 Fri Oct 27 14:20:21 1995 Jason Merrill <jason@yorick.cygnus.com>
kono
parents:
diff changeset
374
kono
parents:
diff changeset
375 * typeck.c (comp_target_types): Check multi-level pointer
kono
parents:
diff changeset
376 conversions in both directions.
kono
parents:
diff changeset
377
kono
parents:
diff changeset
378 Tue Oct 17 21:39:05 1995 Jason Merrill <jason@yorick.cygnus.com>
kono
parents:
diff changeset
379
kono
parents:
diff changeset
380 * parse.y (explicit_instantiation): Fix 'extern template' with no
kono
parents:
diff changeset
381 return type.
kono
parents:
diff changeset
382
kono
parents:
diff changeset
383 Mon Oct 16 14:35:20 1995 Jason Merrill <jason@yorick.cygnus.com>
kono
parents:
diff changeset
384
kono
parents:
diff changeset
385 * parse.y (explicit_instantiation): Support automatic instantiation
kono
parents:
diff changeset
386 of constructors.
kono
parents:
diff changeset
387 (named_class_head_*): Support out-of-class definition of nested
kono
parents:
diff changeset
388 types.
kono
parents:
diff changeset
389
kono
parents:
diff changeset
390 Wed Oct 11 12:20:56 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
391
kono
parents:
diff changeset
392 * search.c (envelope_add_decl): New routine. Fix so that
kono
parents:
diff changeset
393 methods are hidden in the same way that other members are.
kono
parents:
diff changeset
394 (dfs_pushdecls): Cleanup and move functionality out of line,
kono
parents:
diff changeset
395 into envelope_add_decl.
kono
parents:
diff changeset
396
kono
parents:
diff changeset
397 Tue Oct 10 15:46:01 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
398
kono
parents:
diff changeset
399 * typeck.c (mark_addressable): Only call assemble_external if we
kono
parents:
diff changeset
400 have started the output file.
kono
parents:
diff changeset
401
kono
parents:
diff changeset
402 Tue Oct 10 11:27:18 1995 Jason Merrill <jason@yorick.cygnus.com>
kono
parents:
diff changeset
403
kono
parents:
diff changeset
404 * decl.c (start_function): Fix earlier cv-quals change.
kono
parents:
diff changeset
405
kono
parents:
diff changeset
406 Mon Oct 9 23:53:05 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
407
kono
parents:
diff changeset
408 * parse.y (complex_direct_notype_declarator): Only push the class if
kono
parents:
diff changeset
409 we are not already in the class.
kono
parents:
diff changeset
410
kono
parents:
diff changeset
411 Mon Oct 9 11:22:03 1995 Doug Evans <dje@canuck.cygnus.com>
kono
parents:
diff changeset
412
kono
parents:
diff changeset
413 * decl.c (duplicate_decls): Call merge_machine_decl_attributes.
kono
parents:
diff changeset
414 Update olddecl's attributes too.
kono
parents:
diff changeset
415 (grokdeclarator): #if 0 out call to build_decl_attribute_variant.
kono
parents:
diff changeset
416 * typeck.c (common_type): Call merge_machine_type_attributes.
kono
parents:
diff changeset
417
kono
parents:
diff changeset
418 Fri Oct 6 14:44:27 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
419
kono
parents:
diff changeset
420 * typeck.c (mark_addressable): Add missing call to
kono
parents:
diff changeset
421 assemble_external.
kono
parents:
diff changeset
422
kono
parents:
diff changeset
423 Wed Oct 4 15:06:39 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
424
kono
parents:
diff changeset
425 * decl.c (store_parm_decls): Make sure the unwinder start comes
kono
parents:
diff changeset
426 before the exception specification start.
kono
parents:
diff changeset
427 * except.c (expand_exception_blocks): Make sure the unwinder end
kono
parents:
diff changeset
428 comes after the terminate protected catch clause region and after
kono
parents:
diff changeset
429 the end of the exception specification region.
kono
parents:
diff changeset
430
kono
parents:
diff changeset
431 Wed Oct 4 12:47:02 1995 Jason Merrill <jason@yorick.cygnus.com>
kono
parents:
diff changeset
432
kono
parents:
diff changeset
433 * lex.c (real_yylex): Fix identifier case for linemode.
kono
parents:
diff changeset
434 (handle_sysv_pragma): Don't abort when we see a pragma we don't
kono
parents:
diff changeset
435 recognize.
kono
parents:
diff changeset
436
kono
parents:
diff changeset
437 Tue Oct 3 14:09:46 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
438
kono
parents:
diff changeset
439 * decl.c (store_parm_decls): Add a call to start_eh_unwinder.
kono
parents:
diff changeset
440 * except.c (init_exception_processing): __throw doesn't take any
kono
parents:
diff changeset
441 arguments.
kono
parents:
diff changeset
442 (expand_builtin_throw): Likewise. Always use Pmode, instead of SImode
kono
parents:
diff changeset
443 for all pointers. Use expand_builtin_return_addr to unwind the
kono
parents:
diff changeset
444 first level off the stack.
kono
parents:
diff changeset
445 (do_unwind): Always use Pmode, instead of SImode for all pointers.
kono
parents:
diff changeset
446 (expand_exception_blocks): Add a call to end_eh_unwinder.
kono
parents:
diff changeset
447 (start_eh_unwinder, end_eh_unwinder): New routines to build machine
kono
parents:
diff changeset
448 independent stack unwinders for function/method calls.
kono
parents:
diff changeset
449
kono
parents:
diff changeset
450 Mon Oct 2 17:20:42 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
451
kono
parents:
diff changeset
452 * tree.c (unsave_expr_now): Make sure we process the argument list
kono
parents:
diff changeset
453 of any called functions. Fixes incorrect code generation for
kono
parents:
diff changeset
454 cleanups.
kono
parents:
diff changeset
455
kono
parents:
diff changeset
456 Mon Oct 2 13:04:16 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
457
kono
parents:
diff changeset
458 * typeck.c (get_member_function_from_ptrfunc): Save function if it
kono
parents:
diff changeset
459 needs it. Cures core dump on things like (this->*(f()))().
kono
parents:
diff changeset
460
kono
parents:
diff changeset
461 Sat Sep 23 22:51:25 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
462
kono
parents:
diff changeset
463 * decl.c (start_function): Conform to gcc cv-quals convention (no
kono
parents:
diff changeset
464 expression has a cv-qualified type) in RESULT_DECLs.
kono
parents:
diff changeset
465 * method.c (make_thunk): Likewise.
kono
parents:
diff changeset
466
kono
parents:
diff changeset
467 Fri Sep 22 10:21:13 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
468
kono
parents:
diff changeset
469 * decl.c (pushtag): Add in the namespace name for the tag.
kono
parents:
diff changeset
470
kono
parents:
diff changeset
471 Thu Sep 21 13:11:13 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
472
kono
parents:
diff changeset
473 * parse.y (maybe_base_class_list, base_class_list, base_class,
kono
parents:
diff changeset
474 base_class_access_list): Make sure we see the typenames for base
kono
parents:
diff changeset
475 classes.
kono
parents:
diff changeset
476 * lex.c (see_typename): Instead of failing to see a typename when
kono
parents:
diff changeset
477 there is no next token, perfer a typename, and get the next token.
kono
parents:
diff changeset
478
kono
parents:
diff changeset
479 Wed Sep 20 12:35:27 1995 Michael Meissner <meissner@cygnus.com>
kono
parents:
diff changeset
480
kono
parents:
diff changeset
481 * decl.c (init_decl_processing): Add __builtin_expect.
kono
parents:
diff changeset
482
kono
parents:
diff changeset
483 Tue Sep 19 16:48:11 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
484
kono
parents:
diff changeset
485 * cvt.c (cp_convert_to_pointer): Don't allow leftover conversions to
kono
parents:
diff changeset
486 or from pointer to member functions, they must all be handled before
kono
parents:
diff changeset
487 this point.
kono
parents:
diff changeset
488
kono
parents:
diff changeset
489 Fri Sep 15 17:14:47 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
490
kono
parents:
diff changeset
491 * init.c (resolve_offset_ref): Fix wording of non-static member
kono
parents:
diff changeset
492 being referenced as a static.
kono
parents:
diff changeset
493
kono
parents:
diff changeset
494 Fri Sep 15 12:39:11 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
495
kono
parents:
diff changeset
496 * typeck.c (build_indirect_ref): Only bash pointer if we actually
kono
parents:
diff changeset
497 call build_expr_type_conversion.
kono
parents:
diff changeset
498
kono
parents:
diff changeset
499 Thu Sep 14 18:24:56 1995 Jason Merrill <jason@deneb.cygnus.com>
kono
parents:
diff changeset
500
kono
parents:
diff changeset
501 * cvt.c (build_expr_type_conversion): Handle conversion from
kono
parents:
diff changeset
502 reference.
kono
parents:
diff changeset
503 * typeck.c (build_indirect_ref): Avoid infinite recursion.
kono
parents:
diff changeset
504
kono
parents:
diff changeset
505 Thu Sep 14 17:23:28 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
506
kono
parents:
diff changeset
507 * decl.c (expand_start_early_try_stmts): New routine to start a try
kono
parents:
diff changeset
508 block at the start of the function, for function-try-blocks.
kono
parents:
diff changeset
509 * cp-tree.h (expand_start_early_try_stmts): Declare it.
kono
parents:
diff changeset
510 * parse.y (function_try_block): Use it, instead of doing it here, as
kono
parents:
diff changeset
511 we don't want to include rtl.h here, as that conflicts with RETURN
kono
parents:
diff changeset
512 in the parser.
kono
parents:
diff changeset
513
kono
parents:
diff changeset
514 Wed Sep 13 18:32:24 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
515
kono
parents:
diff changeset
516 * lex.c (reinit_parse_for_block): Support saving inline
kono
parents:
diff changeset
517 function-try-blocks, uses peekyylex.
kono
parents:
diff changeset
518 * parse.y (eat_saved_input): New rule, permit the parser to see that
kono
parents:
diff changeset
519 END_OF_SAVED_INPUT is ok, as it can see this when parsing the
kono
parents:
diff changeset
520 handlers of a function-try-block.
kono
parents:
diff changeset
521 (fndef): Use it.
kono
parents:
diff changeset
522 (component_decl): Make sure TRY and RETURN can come after fn.def2.
kono
parents:
diff changeset
523 * spew.c (peekyylex): New routine to peek at what will come next.
kono
parents:
diff changeset
524
kono
parents:
diff changeset
525 Wed Sep 13 16:52:06 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
526
kono
parents:
diff changeset
527 * typeck.c (comptypes): Tighten up comparisons of template type
kono
parents:
diff changeset
528 parms.
kono
parents:
diff changeset
529
kono
parents:
diff changeset
530 * decl.c (duplicate_decls): Turn off whining about virtual functions
kono
parents:
diff changeset
531 redeclared inline for now.
kono
parents:
diff changeset
532
kono
parents:
diff changeset
533 Wed Sep 13 11:13:40 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
534
kono
parents:
diff changeset
535 * decl.c (store_in_parms): New routine to put things before we
kono
parents:
diff changeset
536 put base inits.
kono
parents:
diff changeset
537 * cp-tree.h (store_in_parms): Declare it.
kono
parents:
diff changeset
538 * decl.c (store_parm_decls): Use it to makr sure the starting of the
kono
parents:
diff changeset
539 eh spec comes before base inits.
kono
parents:
diff changeset
540 (finish_function): Use sequences instead of the obsolete
kono
parents:
diff changeset
541 reorder_insns.
kono
parents:
diff changeset
542 * parse.y (fndef): Enhance readability and maintainability. Update
kono
parents:
diff changeset
543 to include function_try_block syntax.
kono
parents:
diff changeset
544 (function_try_block): Add.
kono
parents:
diff changeset
545
kono
parents:
diff changeset
546 Tue Sep 12 17:43:07 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
547
kono
parents:
diff changeset
548 * call.c (convert_harshness): Use comptypes, not ==, to check if
kono
parents:
diff changeset
549 TYPE and PARMTYPE are equivalent on a function type.
kono
parents:
diff changeset
550
kono
parents:
diff changeset
551 Tue Sep 12 17:31:33 1995 Douglas Rupp <drupp@cs.washington.edu>
kono
parents:
diff changeset
552
kono
parents:
diff changeset
553 * Make-lang.in (cc1plus): Removed unnecessary $(exeext).
kono
parents:
diff changeset
554
kono
parents:
diff changeset
555 Mon Sep 11 23:24:07 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
556
kono
parents:
diff changeset
557 * except.c (expand_throw): Never allocate storage for thrown pointer
kono
parents:
diff changeset
558 to objects.
kono
parents:
diff changeset
559
kono
parents:
diff changeset
560 Mon Sep 11 19:36:45 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
561
kono
parents:
diff changeset
562 * except.c (expand_start_catch_block): Pointers to objects come
kono
parents:
diff changeset
563 back from catch matching already dereferenced, don't dereference
kono
parents:
diff changeset
564 again.
kono
parents:
diff changeset
565
kono
parents:
diff changeset
566 Mon Sep 11 15:46:28 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
567
kono
parents:
diff changeset
568 * except.c (expand_throw): Only decay the throw expression, don't do
kono
parents:
diff changeset
569 any default conversions. This is so that one can throw and catch
kono
parents:
diff changeset
570 characters, and not have them match integers.
kono
parents:
diff changeset
571
kono
parents:
diff changeset
572 Mon Sep 11 13:46:45 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
573
kono
parents:
diff changeset
574 * error.c (dump_aggr_type): Deal with anonymous unions that don't
kono
parents:
diff changeset
575 have a TYPE_NAME.
kono
parents:
diff changeset
576
kono
parents:
diff changeset
577 Fri Sep 8 20:40:27 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
578
kono
parents:
diff changeset
579 * lex.c (handle_sysv_pragma): Deal with getting a comma from yylex.
kono
parents:
diff changeset
580
kono
parents:
diff changeset
581 Fri Sep 8 15:51:41 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
582
kono
parents:
diff changeset
583 * except.c (expand_end_eh_spec): Handle empty EH specifications.
kono
parents:
diff changeset
584
kono
parents:
diff changeset
585 Fri Sep 8 15:27:22 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
586
kono
parents:
diff changeset
587 * cp-tree.h (expand_start_eh_spec): Declare new routine.
kono
parents:
diff changeset
588 (expand_end_eh_spec): Likewise.
kono
parents:
diff changeset
589 * decl.c (store_parm_decls): Call expand_start_eh_spec to process
kono
parents:
diff changeset
590 exception specifications.
kono
parents:
diff changeset
591 * except.c (expand_leftover_cleanups): Remove unused parameter.
kono
parents:
diff changeset
592 (expand_end_catch_block): Likewise.
kono
parents:
diff changeset
593 (expand_exception_blocks): Likewise.
kono
parents:
diff changeset
594 (expand_start_eh_spec): New routine to mark the start of an
kono
parents:
diff changeset
595 exception specification region.
kono
parents:
diff changeset
596 (expand_end_eh_spec): New routine to mark the end of an exception
kono
parents:
diff changeset
597 specification region.
kono
parents:
diff changeset
598 (expand_exception_blocks): Call expand_end_eh_spec to process
kono
parents:
diff changeset
599 exception specifications.
kono
parents:
diff changeset
600
kono
parents:
diff changeset
601 Fri Sep 8 14:40:48 1995 Per Bothner <bothner@kalessin.cygnus.com>
kono
parents:
diff changeset
602
kono
parents:
diff changeset
603 * lex.c (do_identifier): Use global binding in preference of
kono
parents:
diff changeset
604 dead for local variable.
kono
parents:
diff changeset
605
kono
parents:
diff changeset
606 Wed Sep 6 19:32:59 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
607
kono
parents:
diff changeset
608 * cp-tree.h (build_exception_variant): Remove used first argument.
kono
parents:
diff changeset
609 * decl.c (duplicate_decls): Likewise.
kono
parents:
diff changeset
610 (grokfndecl): Likewise.
kono
parents:
diff changeset
611 (revert_static_member_fn): Likewise.
kono
parents:
diff changeset
612 * decl2.c (grok_method_quals): Likewise.
kono
parents:
diff changeset
613 * tree.c (build_exception_variant): Likewise.
kono
parents:
diff changeset
614 * typeck.c (common_type): Likewise.
kono
parents:
diff changeset
615 * decl2.c (grokclassfn): After changing the type, call
kono
parents:
diff changeset
616 build_exception_variant, if necessary.
kono
parents:
diff changeset
617
kono
parents:
diff changeset
618 Tue Sep 5 15:56:27 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
619
kono
parents:
diff changeset
620 * except.c (expand_throw): Run cleanups for the throw expression.
kono
parents:
diff changeset
621
kono
parents:
diff changeset
622 Wed Aug 30 15:24:38 1995 Stephen L. Favor <sfavor@tigger.intecom.com>
kono
parents:
diff changeset
623
kono
parents:
diff changeset
624 * except.c (expand_builtin_throw): Moved gen_label_rtx calls beyond
kono
parents:
diff changeset
625 the store_parm_decls call which does initialization in the emit_*
kono
parents:
diff changeset
626 code concerning label numbering.
kono
parents:
diff changeset
627
kono
parents:
diff changeset
628 Thu Aug 31 09:01:07 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
629
kono
parents:
diff changeset
630 * except.c (expand_internal_throw): Let the frontend be responsible
kono
parents:
diff changeset
631 for managing all frontend EH parameters, the backend routine only
kono
parents:
diff changeset
632 needs to deal with backend values. type and value are no longer
kono
parents:
diff changeset
633 passed to __throw.
kono
parents:
diff changeset
634 (init_exception_processing): Likewise.
kono
parents:
diff changeset
635 (expand_start_all_catch): Likewise.
kono
parents:
diff changeset
636 (expand_end_all_catch): Likewise.
kono
parents:
diff changeset
637 (expand_leftover_cleanups): Likewise.
kono
parents:
diff changeset
638 (expand_end_catch_block): Likewise.
kono
parents:
diff changeset
639 (expand_builtin_throw): Likewise.
kono
parents:
diff changeset
640 (expand_throw): Likewise.
kono
parents:
diff changeset
641
kono
parents:
diff changeset
642 Tue Aug 29 15:04:36 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
643
kono
parents:
diff changeset
644 * cp-tree.h (DECL_REAL_CONTEXT): Give the real declaration context
kono
parents:
diff changeset
645 for a decl.
kono
parents:
diff changeset
646 * decl.c (cp_finish_decl): Use it.
kono
parents:
diff changeset
647
kono
parents:
diff changeset
648 Tue Aug 29 10:30:27 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
649
kono
parents:
diff changeset
650 * except.c (expand_internal_throw): Oops, almost forgot type and
kono
parents:
diff changeset
651 value are now trees.
kono
parents:
diff changeset
652
kono
parents:
diff changeset
653 Mon Aug 28 17:57:45 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
654
kono
parents:
diff changeset
655 Fix the attribute handling to make sure they get noted before we
kono
parents:
diff changeset
656 create the function's RTL, in case they can affect that.
kono
parents:
diff changeset
657 * decl.c (grokfndecl): New arg ATTRLIST. Run
kono
parents:
diff changeset
658 cplus_decl_attributes before creating the decl's rtl.
kono
parents:
diff changeset
659 (grokdeclarator): New arg ATTRLIST, passed down into grokfndecl.
kono
parents:
diff changeset
660 (shadow_tag, groktypename, start_decl, start_method): Pass a
kono
parents:
diff changeset
661 NULL_TREE to grokdeclarator's new last arg.
kono
parents:
diff changeset
662 * decl2.c (grokfield): New arg ATTRLIST, passed into grokdeclarator.
kono
parents:
diff changeset
663 (grokbitfield, grokoptypename): Pass a NULL_TREE to
kono
parents:
diff changeset
664 grokdeclarator's new last arg.
kono
parents:
diff changeset
665 * except.c (expand_start_catch_block): Likewise.
kono
parents:
diff changeset
666 * pt.c (process_template_parm, end_template_decl,
kono
parents:
diff changeset
667 do_function_instantiation): Likewise.
kono
parents:
diff changeset
668 * cp-tree.h (grokfield): Add arg.
kono
parents:
diff changeset
669 (grokdeclarator): Move the prototype from here...
kono
parents:
diff changeset
670 * decl.h: ...to here.
kono
parents:
diff changeset
671 * lex.c (cons_up_default_function): Pass NULL_TREE to grokfield
kono
parents:
diff changeset
672 ATTRLIST argument.
kono
parents:
diff changeset
673 * parse.y: Create a list for the grokfield arg where appropriate,
kono
parents:
diff changeset
674 and pass it down instead of calling cplus_decl_attributes.
kono
parents:
diff changeset
675
kono
parents:
diff changeset
676 Mon Aug 28 15:07:24 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
677
kono
parents:
diff changeset
678 * except.c: Always allow turning on exception handling. Allow cross
kono
parents:
diff changeset
679 compilations to use EH.
kono
parents:
diff changeset
680
kono
parents:
diff changeset
681 Thu Aug 24 17:39:24 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
682
kono
parents:
diff changeset
683 * except.c (saved_pc, saved_throw_type, saved_throw_value): Use
kono
parents:
diff changeset
684 trees, instead of rtxs, and don't depend on using special machine
kono
parents:
diff changeset
685 dependent registers.
kono
parents:
diff changeset
686 (expand_internal_throw): Likewise.
kono
parents:
diff changeset
687 (init_exception_processing): Likewise.
kono
parents:
diff changeset
688 (expand_start_all_catch): Likewise.
kono
parents:
diff changeset
689 (expand_end_all_catch): Likewise.
kono
parents:
diff changeset
690 (expand_start_catch_block): Likewise.
kono
parents:
diff changeset
691 (expand_leftover_cleanups): Likewise.
kono
parents:
diff changeset
692 (expand_end_catch_block): Likewise.
kono
parents:
diff changeset
693 (expand_builtin_throw): Likewise.
kono
parents:
diff changeset
694 (expand_throw): Likewise.
kono
parents:
diff changeset
695
kono
parents:
diff changeset
696 Wed Aug 23 17:25:51 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
697
kono
parents:
diff changeset
698 * cvt.c (build_expr_type_conversion): Handle conversions to
kono
parents:
diff changeset
699 reference types.
kono
parents:
diff changeset
700
kono
parents:
diff changeset
701 Wed Aug 23 15:33:59 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
702
kono
parents:
diff changeset
703 * except.c (do_unwind): Work around backend bug with -fpic.
kono
parents:
diff changeset
704
kono
parents:
diff changeset
705 Tue Aug 22 17:20:07 1995 Per Bothner <bothner@kalessin.cygnus.com>
kono
parents:
diff changeset
706
kono
parents:
diff changeset
707 * decl2.c (flag_new_for_scope): Add a new mode that follows ANSI
kono
parents:
diff changeset
708 for-scoping, but supports (and warns about) old programs.
kono
parents:
diff changeset
709 Make the new mode (with value 1) the default.
kono
parents:
diff changeset
710 (lang_f_options): The on-value for flag_new_for_scope is now 2.
kono
parents:
diff changeset
711 * cp-tree.h (DECL_DEAD_FOR_LOCAL, DECL_ERROR_REPORTED): New macros
kono
parents:
diff changeset
712 (DECL_SHADOWED_FOR_VAR): Likewise.
kono
parents:
diff changeset
713 * decl.c (struct binding_level): New fields dead_vars_from_for
kono
parents:
diff changeset
714 and is_for_scope.
kono
parents:
diff changeset
715 (note_level_for_for): New function.
kono
parents:
diff changeset
716 (poplevel): Special processing if is_for_scope.
kono
parents:
diff changeset
717 (pushdecl): Warn if for-scope variable shadows local.
kono
parents:
diff changeset
718 * lex.c (do_identifier): Handle old (non-ANSI) for scoping,
kono
parents:
diff changeset
719 and warn if conflicts.
kono
parents:
diff changeset
720 * parse.y (FOR): Call note_level_for_for.
kono
parents:
diff changeset
721
kono
parents:
diff changeset
722 Mon Aug 21 10:28:31 1995 Jason Merrill <jason@deneb.cygnus.com>
kono
parents:
diff changeset
723
kono
parents:
diff changeset
724 * decl2.c (import_export_inline): Class interface hackery does not
kono
parents:
diff changeset
725 apply to synthesized methods.
kono
parents:
diff changeset
726
kono
parents:
diff changeset
727 Sun Aug 20 16:29:00 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
728
kono
parents:
diff changeset
729 * search.c (virtual_context): Find the right context more often.
kono
parents:
diff changeset
730 Solves a `recoverable compiler error, fixups for virtual function'
kono
parents:
diff changeset
731 problem.
kono
parents:
diff changeset
732
kono
parents:
diff changeset
733 Sun Aug 20 13:53:24 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
734
kono
parents:
diff changeset
735 * except.c (expand_start_all_catch): Ensure that we always transfer
kono
parents:
diff changeset
736 control to the right EH handler, by rethrowing the end label on the
kono
parents:
diff changeset
737 region, instead of hoping we are nested and falling through.
kono
parents:
diff changeset
738 (expand_leftover_cleanups): Likewise.
kono
parents:
diff changeset
739 (end_protect): Since we now rethrow the end label, put a
kono
parents:
diff changeset
740 nop after it, so that outer regions are recognized.
kono
parents:
diff changeset
741 * init.c (build_vec_delete_1): New routine to handle most of vector
kono
parents:
diff changeset
742 deleting, all code moved here from build_vec_delete.
kono
parents:
diff changeset
743 (build_array_eh_cleanup): Use build_vec_delete_1 to do all the real
kono
parents:
diff changeset
744 work.
kono
parents:
diff changeset
745 (expand_vec_init): If the array needs partial destructing, setup an
kono
parents:
diff changeset
746 EH region to handle it.
kono
parents:
diff changeset
747 (build_vec_delete): Move lots of code to build_vec_delete_1, use
kono
parents:
diff changeset
748 build_vec_delete_1 to do the grunt work.
kono
parents:
diff changeset
749
kono
parents:
diff changeset
750 Sat Aug 19 14:25:33 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
751
kono
parents:
diff changeset
752 Handle decl attributes properly for function definitions without
kono
parents:
diff changeset
753 previous attribute-loaded declarations.
kono
parents:
diff changeset
754 * decl.c (start_function): New arg ATTRS. Add a call to
kono
parents:
diff changeset
755 cplus_decl_attributes with it before we create the RTL.
kono
parents:
diff changeset
756 * cp-tree.h (start_function): Update prototype.
kono
parents:
diff changeset
757 * parse.y (fn.def1): Pass ATTRS into start_function instead of
kono
parents:
diff changeset
758 trying to call cplus_decl_attributes too late. Pass a NULL_TREE
kono
parents:
diff changeset
759 for other use.
kono
parents:
diff changeset
760 * decl2.c (finish_file): Pass NULL_TREE as fourth arg to
kono
parents:
diff changeset
761 start_function.
kono
parents:
diff changeset
762 * method.c (synthesize_method): Likewise.
kono
parents:
diff changeset
763 * except.c (expand_builtin_throw): Likewise for start on __throw.
kono
parents:
diff changeset
764
kono
parents:
diff changeset
765 Sat Aug 19 13:36:08 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
766
kono
parents:
diff changeset
767 * class.c (set_rtti_entry): Turn on -fvtable-thunk -frtti support.
kono
parents:
diff changeset
768 This changes -fvtable-thunks vtable layout, so a recompile will be
kono
parents:
diff changeset
769 necessary, if you use -fvtable-thunks.
kono
parents:
diff changeset
770 (get_vtable_entry): Use n, instead of i to be consistent with the
kono
parents:
diff changeset
771 rest of the compiler.
kono
parents:
diff changeset
772 (get_vtable_entry_n): Likewise.
kono
parents:
diff changeset
773 (add_virtual_function): Add a slot for the tdesc, if -fvtable-thunks
kono
parents:
diff changeset
774 are being used.
kono
parents:
diff changeset
775 (finish_struct_1): Likewise.
kono
parents:
diff changeset
776 (skip_rtti_stuff): New routine to collapse similar code from many
kono
parents:
diff changeset
777 different parts of the compiler. I think I got them all.
kono
parents:
diff changeset
778 (modify_one_vtable): Use it.
kono
parents:
diff changeset
779 (fixup_vtable_deltas1): Likewise.
kono
parents:
diff changeset
780 (override_one_vtable): Likewise.
kono
parents:
diff changeset
781 * decl2.c (mark_vtable_entries): Likewise.
kono
parents:
diff changeset
782 * tree.c (debug_binfo): Likewise.
kono
parents:
diff changeset
783 * search.c (expand_upcast_fixups): Likewise.
kono
parents:
diff changeset
784 (get_abstract_virtuals_1): Likewise. Use virtuals, instead of tmp to
kono
parents:
diff changeset
785 consistent with the rest of the compiler.
kono
parents:
diff changeset
786 (get_abstract_virtuals): Likewise.
kono
parents:
diff changeset
787 * cp-tree.h (skip_rtti_stuff): New routine, declare it.
kono
parents:
diff changeset
788 * gc.c (build_headof): Support -fvtable-thunk and -frtti together.
kono
parents:
diff changeset
789 (build_typeid): Likewise.
kono
parents:
diff changeset
790 (build_classof): Remove old style way of doing rtti. Remove support
kono
parents:
diff changeset
791 for `classof' and `headof'.
kono
parents:
diff changeset
792 * gxx.gperf: Likewise.
kono
parents:
diff changeset
793 * hash.h: Likewise.
kono
parents:
diff changeset
794 * parse.y: Likewise.
kono
parents:
diff changeset
795
kono
parents:
diff changeset
796 Fri Aug 18 17:31:58 1995 Jason Merrill <jason@deneb.cygnus.com>
kono
parents:
diff changeset
797
kono
parents:
diff changeset
798 * decl.c (start_function): Clear ctor_label and dtor_label.
kono
parents:
diff changeset
799
kono
parents:
diff changeset
800 * class.c (finish_struct_1): Fix handling of access decls.
kono
parents:
diff changeset
801
kono
parents:
diff changeset
802 Tue Aug 15 19:21:54 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
803
kono
parents:
diff changeset
804 * class.c (finish_struct): Only do minimal processing here, so it
kono
parents:
diff changeset
805 can be used for class template definitions, as well.
kono
parents:
diff changeset
806 (finish_struct_1): New function with the rest of the code.
kono
parents:
diff changeset
807
kono
parents:
diff changeset
808 Tue Aug 15 09:46:16 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
809
kono
parents:
diff changeset
810 * class.c (prepare_fresh_vtable): On second though, always build the
kono
parents:
diff changeset
811 offset (see Aug 10 change), unless -fvtable-thunks is given. It
kono
parents:
diff changeset
812 does this by calling the new routine set_rtti_entry.
kono
parents:
diff changeset
813 (finish_struct): Likewise.
kono
parents:
diff changeset
814 (set_rtti_entry): New routine to update the rtti information at the
kono
parents:
diff changeset
815 start of the vtable.
kono
parents:
diff changeset
816
kono
parents:
diff changeset
817 Mon Aug 14 12:21:22 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
818
kono
parents:
diff changeset
819 * error.c (dump_decl, case IDENTIFIER_NODE): Only work on a dtor
kono
parents:
diff changeset
820 if it's declared in the C++ language spec.
kono
parents:
diff changeset
821 (dump_function_decl): Likewise.
kono
parents:
diff changeset
822 (dump_function_name): Likewise.
kono
parents:
diff changeset
823 (ident_fndecl): Make sure we got something back from lookup_name.
kono
parents:
diff changeset
824 * decl.c (start_function): Likewise.
kono
parents:
diff changeset
825
kono
parents:
diff changeset
826 Fri Aug 11 16:52:15 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
827
kono
parents:
diff changeset
828 * call.c (build_method_call): Don't call build_new when calling a
kono
parents:
diff changeset
829 constructor without an instance.
kono
parents:
diff changeset
830
kono
parents:
diff changeset
831 Thu Aug 10 20:00:17 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
832
kono
parents:
diff changeset
833 * class.c (prepare_fresh_vtable): Always build the offset to the
kono
parents:
diff changeset
834 complete object, as it doesn't cost much. This allows dynamic_cast
kono
parents:
diff changeset
835 to void * to work when -frtti isn't given.
kono
parents:
diff changeset
836 (finish_struct): Likewise.
kono
parents:
diff changeset
837
kono
parents:
diff changeset
838 Thu Aug 10 16:31:28 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
839
kono
parents:
diff changeset
840 * except.c (build_eh_type): Split out some functionality to new
kono
parents:
diff changeset
841 routine named build_eh_type_type.
kono
parents:
diff changeset
842 (build_eh_type_type): New routine.
kono
parents:
diff changeset
843 (expand_start_catch_block): Use build_eh_type_type, as we never want
kono
parents:
diff changeset
844 the dynamic type of the catch parameter, just the static type.
kono
parents:
diff changeset
845 Fixes core dumps when -frtti is used and one catchs pointers to
kono
parents:
diff changeset
846 classes.
kono
parents:
diff changeset
847
kono
parents:
diff changeset
848 Thu Aug 10 14:55:29 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
849
kono
parents:
diff changeset
850 * except.c (expand_builtin_throw): Since we now use normal calling
kono
parents:
diff changeset
851 conventions for __throw, we have to remove the first layer off the
kono
parents:
diff changeset
852 stack, so that the next context we search for handlers is the outer
kono
parents:
diff changeset
853 context instead of the context that had the call to __throw, if we
kono
parents:
diff changeset
854 don't immediately find the desired context.
kono
parents:
diff changeset
855
kono
parents:
diff changeset
856 Tue Aug 8 17:44:23 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
857
kono
parents:
diff changeset
858 * tree.c (cp_expand_decl_cleanup): Returns int, not tree.
kono
parents:
diff changeset
859 * cp-tree.h: Update.
kono
parents:
diff changeset
860
kono
parents:
diff changeset
861 * parse.y (template_type_parm): Add support for `typename'.
kono
parents:
diff changeset
862
kono
parents:
diff changeset
863 Tue Aug 8 12:06:31 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
864
kono
parents:
diff changeset
865 * except.c (expand_internal_throw): New internal routine to throw a
kono
parents:
diff changeset
866 value.
kono
parents:
diff changeset
867 (expand_end_all_catch, expand_leftover_cleanups): All throwers
kono
parents:
diff changeset
868 changed to use `expand_internal_throw' instead of jumping to throw
kono
parents:
diff changeset
869 label.
kono
parents:
diff changeset
870 (expand_end_catch_block, expand_throw): Likewise.
kono
parents:
diff changeset
871 (throw_label): Removed.
kono
parents:
diff changeset
872 (expand_builtin_throw): Changed so that EH parameters are passed by
kono
parents:
diff changeset
873 normal function call conventions. Completes Aug 4th work.
kono
parents:
diff changeset
874
kono
parents:
diff changeset
875 Fri Aug 4 17:17:08 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
876
kono
parents:
diff changeset
877 * cp-tree.h (expand_builtin_throw): Declare it.
kono
parents:
diff changeset
878 * decl2.c (finish_file): Call expand_builtin_throw.
kono
parents:
diff changeset
879 * except.c (make_first_label): Remove.
kono
parents:
diff changeset
880 (init_exception_processing): Don't use a LABEL_REF for throw_label,
kono
parents:
diff changeset
881 instead use a SYMBOL_REF, this is so that we don't use LABEL_REFs in
kono
parents:
diff changeset
882 other functions that don't really appear in those functions. This
kono
parents:
diff changeset
883 solves a problem where cc1plus consumed exponential amounts of
kono
parents:
diff changeset
884 memory when -Wall was used.
kono
parents:
diff changeset
885 (expand_end_all_catch, expand_leftover_cleanups,
kono
parents:
diff changeset
886 expand_end_catch_block, expand_throw): Change all uses of
kono
parents:
diff changeset
887 throw_label to match new style.
kono
parents:
diff changeset
888 (do_unwind): Rename parameter to inner_throw_label, as it is now
kono
parents:
diff changeset
889 different from throw_label. Also, assume that our caller will wrap
kono
parents:
diff changeset
890 the passed label with a LABEL_REF, if needed.
kono
parents:
diff changeset
891 (expand_builtin_throw): Make external, change so that the generated
kono
parents:
diff changeset
892 throw is now a real function.
kono
parents:
diff changeset
893 (expand_exception_blocks): Never generate throw code inside another
kono
parents:
diff changeset
894 function.
kono
parents:
diff changeset
895
kono
parents:
diff changeset
896 Fri Aug 4 12:20:02 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
897
kono
parents:
diff changeset
898 * decl.c (grokdeclarator): Move checking of mutable const objects
kono
parents:
diff changeset
899 and mutable static objects down, as we might decide during parsing
kono
parents:
diff changeset
900 to unset staticp or constp (for example, when const is part of the
kono
parents:
diff changeset
901 object being pointed to).
kono
parents:
diff changeset
902
kono
parents:
diff changeset
903 Thu Aug 3 17:13:43 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
904
kono
parents:
diff changeset
905 * except.c (output_exception_table_entry): Enhance portability to
kono
parents:
diff changeset
906 weird machines.
kono
parents:
diff changeset
907 (emit_exception_table): Likewise.
kono
parents:
diff changeset
908
kono
parents:
diff changeset
909 Thu Aug 3 16:41:38 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
910
kono
parents:
diff changeset
911 * typeck.c (build_ptrmemfunc): Handle casting of pointer to
kono
parents:
diff changeset
912 non-virtual member functions.
kono
parents:
diff changeset
913
kono
parents:
diff changeset
914 Wed Aug 2 11:58:25 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
915
kono
parents:
diff changeset
916 * gc.c (build_typeid): Strip cv qualifiers so that const T&, T&, T
kono
parents:
diff changeset
917 and const T all match.
kono
parents:
diff changeset
918
kono
parents:
diff changeset
919 Wed Aug 2 11:25:33 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
920
kono
parents:
diff changeset
921 * except.c (build_eh_type): Strip cv qualifiers so that const T&,
kono
parents:
diff changeset
922 T&, T and const T all match.
kono
parents:
diff changeset
923
kono
parents:
diff changeset
924 Tue Aug 1 14:20:16 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
925
kono
parents:
diff changeset
926 * except.c: Fix up comments, cleanup code and eliminate exceptNode,
kono
parents:
diff changeset
927 exceptStack, exceptstack, push_except_stmts, pop_except_stmts,
kono
parents:
diff changeset
928 new_except_stack, push_last_insn, pop_last_insn, insn_save_node and
kono
parents:
diff changeset
929 InsnSave. Also, numerous speed improvements, and correctness
kono
parents:
diff changeset
930 improvements. Double faulting in all situations should now be
kono
parents:
diff changeset
931 handled correctly.
kono
parents:
diff changeset
932 (expand_start_all_catch): Instead of having many terminate protected
kono
parents:
diff changeset
933 regions, just have one.
kono
parents:
diff changeset
934 (expand_start_catch_block): No longer have to protect
kono
parents:
diff changeset
935 false_label_rtx, as it isn't used for EH region marking.
kono
parents:
diff changeset
936 (expand_end_catch_block): Expand out EH cleanups here by using
kono
parents:
diff changeset
937 expand_leftover_cleanups.
kono
parents:
diff changeset
938 (expand_end_all_catch): Use sequences instead of playing with insn
kono
parents:
diff changeset
939 links directly.
kono
parents:
diff changeset
940 (expand_exception_blocks): Likewise. Also protect all catch clauses
kono
parents:
diff changeset
941 with one terminate region.
kono
parents:
diff changeset
942
kono
parents:
diff changeset
943 Mon Jul 31 13:24:30 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
944
kono
parents:
diff changeset
945 * method.c (report_type_mismatch): Don't talk about an object
kono
parents:
diff changeset
946 parameter for non-methods.
kono
parents:
diff changeset
947
kono
parents:
diff changeset
948 Sun Jul 30 13:13:02 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
949
kono
parents:
diff changeset
950 * class.c (finish_struct): Catch private and protected members of
kono
parents:
diff changeset
951 anonymous unions here.
kono
parents:
diff changeset
952 * decl2.c (finish_anon_union): And here.
kono
parents:
diff changeset
953 * parse.y: Instead of here.
kono
parents:
diff changeset
954
kono
parents:
diff changeset
955 * errfn.c (ARGSLIST): Support passing four args.
kono
parents:
diff changeset
956 * error.c (cv_as_string): New function.
kono
parents:
diff changeset
957 (cp_printers): Add it.
kono
parents:
diff changeset
958 * call.c (build_method_call): Report 'const' at end of pseudo-decl.
kono
parents:
diff changeset
959
kono
parents:
diff changeset
960 * method.c (report_type_mismatch): Deal with a bad_arg of 0.
kono
parents:
diff changeset
961
kono
parents:
diff changeset
962 * init.c (expand_aggr_init): Handle volatile objects, too.
kono
parents:
diff changeset
963
kono
parents:
diff changeset
964 Sat Jul 29 13:42:03 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
965
kono
parents:
diff changeset
966 * decl.c (struct binding_level): Keep list of incomplete decls.
kono
parents:
diff changeset
967 (print_binding_level): Use list_length to count them.
kono
parents:
diff changeset
968 (pushdecl): Build up the list.
kono
parents:
diff changeset
969 (hack_incomplete_structures): Walk it and prune completed decls.
kono
parents:
diff changeset
970
kono
parents:
diff changeset
971 Fri Jul 28 15:26:44 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
972
kono
parents:
diff changeset
973 * typeck.c (comp_target_types): Don't check const and volatile for
kono
parents:
diff changeset
974 function types.
kono
parents:
diff changeset
975 (comp_ptr_ttypes_real): Likewise.
kono
parents:
diff changeset
976
kono
parents:
diff changeset
977 Thu Jul 27 15:40:48 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
978
kono
parents:
diff changeset
979 * typeck.c (comp_target_types): Fix.
kono
parents:
diff changeset
980
kono
parents:
diff changeset
981 Thu Jul 27 15:10:48 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
982
kono
parents:
diff changeset
983 * cp-tree.h (unsave_expr_now, build_unsave_expr,
kono
parents:
diff changeset
984 cp_expand_decl_cleanup): Declare new routines.
kono
parents:
diff changeset
985 * decl.c (cp_finish_decl, store_parm_decls,
kono
parents:
diff changeset
986 hack_incomplete_structures): Change all cals from
kono
parents:
diff changeset
987 expand_decl_cleanup to cp_expand_decl_cleanup.
kono
parents:
diff changeset
988 * gc.c (protect_value_from_gc): Likewise.
kono
parents:
diff changeset
989 * expr.c (cplus_expand_expr): Handle UNSAVE_EXPRs.
kono
parents:
diff changeset
990 * tree.c (unsave_expr): New routine to build an UNSAVE_EXPR.
kono
parents:
diff changeset
991 (unsave_expr_now): Backend routine used by tree expander.
kono
parents:
diff changeset
992 (cp_expand_decl_cleanup): Wrap second argument in an UNSAVE_EXPR to
kono
parents:
diff changeset
993 work around a limitation in the backend. The backend uses the
kono
parents:
diff changeset
994 cleanups multiple times, on disjoint control flows, so we cannot
kono
parents:
diff changeset
995 pass unsaved SAVE_EXPRs to the backend.
kono
parents:
diff changeset
996 * tree.def (UNSAVE_EXPR): New tree code.
kono
parents:
diff changeset
997 * typeck.c (c_expand_return): Move goto/return code up inside
kono
parents:
diff changeset
998 conditional, as we don't always want to do this, we only want to do
kono
parents:
diff changeset
999 this when we don't otherwise finish with this control flow.
kono
parents:
diff changeset
1000
kono
parents:
diff changeset
1001 Thu Jul 27 10:38:43 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
1002
kono
parents:
diff changeset
1003 * parse.y (typespec): Only complain about typeof if we're not
kono
parents:
diff changeset
1004 getting it from a system header.
kono
parents:
diff changeset
1005
kono
parents:
diff changeset
1006 Thu Jul 27 10:26:23 1995 Doug Evans <dje@canuck.cygnus.com>
kono
parents:
diff changeset
1007
kono
parents:
diff changeset
1008 Clean up prefix attribute handling.
kono
parents:
diff changeset
1009 * parse.y (reserved_declspecs): Link prefix attributes with declspecs.
kono
parents:
diff changeset
1010 (declmods): Likewise.
kono
parents:
diff changeset
1011 (all rules that reference typed_declspecs and declmods): Call
kono
parents:
diff changeset
1012 split_specs_attrs or strip_attrs to separate declspecs and attrs.
kono
parents:
diff changeset
1013 (lang_extdef): Delete resetting of prefix_attributes.
kono
parents:
diff changeset
1014 (template_def, notype_declarator rule): Use NULL_TREE for
kono
parents:
diff changeset
1015 prefix_attributes.
kono
parents:
diff changeset
1016 (condition): Use NULL_TREE for prefix_attributes.
kono
parents:
diff changeset
1017 (setattrs): Deleted.
kono
parents:
diff changeset
1018 (nomods_initdcl0): Set prefix_attributes to NULL_TREE.
kono
parents:
diff changeset
1019 (component_decl): Delete resetting of prefix_attributes.
kono
parents:
diff changeset
1020 (component_decl_1, notype_components rule): Use NULL_TREE for
kono
parents:
diff changeset
1021 prefix_attributes.
kono
parents:
diff changeset
1022 (simple_stmt): Delete resetting of prefix_attributes.
kono
parents:
diff changeset
1023
kono
parents:
diff changeset
1024 Mon Jul 24 13:37:53 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1025
kono
parents:
diff changeset
1026 * call.c (convert_harshness): Deal with reference conversions before
kono
parents:
diff changeset
1027 others. Actually do array->pointer decay. Call comp_target_types
kono
parents:
diff changeset
1028 with pointer types rather than their targets.
kono
parents:
diff changeset
1029
kono
parents:
diff changeset
1030 * typeck.c (comp_target_types): Avoid assigning D const * to B *.
kono
parents:
diff changeset
1031
kono
parents:
diff changeset
1032 Mon Jul 24 08:54:46 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
1033
kono
parents:
diff changeset
1034 * pt.c (to_be_restored): Move decl to global scope.
kono
parents:
diff changeset
1035
kono
parents:
diff changeset
1036 Sat Jul 22 12:22:11 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1037
kono
parents:
diff changeset
1038 * decl.c (start_decl): Put back clearing of DECL_IN_AGGR_P.
kono
parents:
diff changeset
1039
kono
parents:
diff changeset
1040 Fri Jul 21 17:09:02 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1041
kono
parents:
diff changeset
1042 * decl.c (grokdeclarator): Downgrade error about 'extern int A::i'
kono
parents:
diff changeset
1043 to pedwarn.
kono
parents:
diff changeset
1044
kono
parents:
diff changeset
1045 * pt.c (instantiate_template): Also avoid instantiation if the
kono
parents:
diff changeset
1046 function has already been declared to be a specialization.
kono
parents:
diff changeset
1047
kono
parents:
diff changeset
1048 * decl2.c (check_classfn): Ignore cname argument, and return the
kono
parents:
diff changeset
1049 matching function.
kono
parents:
diff changeset
1050
kono
parents:
diff changeset
1051 * decl.c (start_decl): Handle declarations of member functions
kono
parents:
diff changeset
1052 outside of the class (i.e. specialization declarations).
kono
parents:
diff changeset
1053
kono
parents:
diff changeset
1054 Thu Jul 20 10:34:48 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1055
kono
parents:
diff changeset
1056 * class.c (finish_struct): Don't mess with the type of bitfields.
kono
parents:
diff changeset
1057
kono
parents:
diff changeset
1058 * various.c: s/TYPE_POINTER_TO/build_pointer_type/.
kono
parents:
diff changeset
1059
kono
parents:
diff changeset
1060 Thu Jul 20 01:43:10 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
1061
kono
parents:
diff changeset
1062 * init.c (expand_aggr_init): Assume LOOKUP_ONLYCONVERTING if init
kono
parents:
diff changeset
1063 is not a parameter list (TREE_LIST).
kono
parents:
diff changeset
1064 (expand_default_init): If LOOKUP_ONLYCONVERTING is set, then set
kono
parents:
diff changeset
1065 LOOKUP_NO_CONVERSION so that we don't allow two-level conversions,
kono
parents:
diff changeset
1066 but don't set it otherwise.
kono
parents:
diff changeset
1067
kono
parents:
diff changeset
1068 Wed Jul 19 20:32:01 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
1069
kono
parents:
diff changeset
1070 * init.c (expand_default_init): Don't allow two-level conversions
kono
parents:
diff changeset
1071 during construction.
kono
parents:
diff changeset
1072
kono
parents:
diff changeset
1073 Wed Jul 19 18:06:37 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
1074
kono
parents:
diff changeset
1075 * gc.c (build_headof): The type of dyncasting to a pointer to cv
kono
parents:
diff changeset
1076 void, should be pointer to cv void.
kono
parents:
diff changeset
1077
kono
parents:
diff changeset
1078 Wed Jul 19 17:25:43 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
1079
kono
parents:
diff changeset
1080 * gc.c (build_dynamic_cast): Allow casting in const.
kono
parents:
diff changeset
1081
kono
parents:
diff changeset
1082 Wed Jul 19 16:34:27 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
1083
kono
parents:
diff changeset
1084 * typeck.c (build_const_cast): If we are passed error_mark_node,
kono
parents:
diff changeset
1085 return it.
kono
parents:
diff changeset
1086
kono
parents:
diff changeset
1087 Wed Jul 19 15:24:48 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
1088
kono
parents:
diff changeset
1089 * class.c (push_nested_class): Make sure TYPE is non-nil.
kono
parents:
diff changeset
1090
kono
parents:
diff changeset
1091 * cvt.c (type_promotes_to): Watch for error_mark_node on the
kono
parents:
diff changeset
1092 incoming TYPE.
kono
parents:
diff changeset
1093
kono
parents:
diff changeset
1094 Wed Jul 19 13:23:12 1995 Gerald Baumgartner <gb@alexander.cs.purdue.edu>
kono
parents:
diff changeset
1095
kono
parents:
diff changeset
1096 * cp-tree.h (SIGTABLE_VT_OFF_NAME): Renamed from SIGTABLE_OFFSET_NAME.
kono
parents:
diff changeset
1097 (SIGTABLE_VB_OFF_NAME): New macro.
kono
parents:
diff changeset
1098 (vt_off_identifier): Renamed from offset_identifier.
kono
parents:
diff changeset
1099 (vb_off_identifier): Added extern declaration.
kono
parents:
diff changeset
1100
kono
parents:
diff changeset
1101 * decl.c (vt_off_identifier): Renamed from offset identifier.
kono
parents:
diff changeset
1102 (vb_off_identifier): New variable to hold the identifier for the
kono
parents:
diff changeset
1103 sigtable field vb_off.
kono
parents:
diff changeset
1104 (init_decl_processing): Initialize vb_off_identifier.
kono
parents:
diff changeset
1105 Renamed vt_off_identifier from offset_identifier.
kono
parents:
diff changeset
1106 * sig.c (build_signature_method_call): Renamed offset_identifier and
kono
parents:
diff changeset
1107 local variable offset to vt_off_identifier and vt_off, respectively.
kono
parents:
diff changeset
1108 * sig.c (build_signature_table_constructor): Renamed offset to vt_off.
kono
parents:
diff changeset
1109
kono
parents:
diff changeset
1110 * decl.c (init_decl_processing): Add vb_off field to
kono
parents:
diff changeset
1111 sigtable_entry_type. Reorder fields so that pfn gets properly
kono
parents:
diff changeset
1112 aligned at a 64 bit boundary on the Alpha.
kono
parents:
diff changeset
1113 * sig.c (build_signature_table_constructor): Build the constructor
kono
parents:
diff changeset
1114 according to the new layout. Set the vb_off field to -1 for now.
kono
parents:
diff changeset
1115
kono
parents:
diff changeset
1116 * decl.c (init_decl_processing): Align sigtable_entry_type on word
kono
parents:
diff changeset
1117 boundaries instead of double word boundaries to save space.
kono
parents:
diff changeset
1118
kono
parents:
diff changeset
1119 Tue Jul 18 16:58:37 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
1120
kono
parents:
diff changeset
1121 * cvt.c (cp_convert): Always call build_cplus_new for a ctor.
kono
parents:
diff changeset
1122
kono
parents:
diff changeset
1123 Tue Jul 18 14:24:53 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
1124
kono
parents:
diff changeset
1125 * parse.y (opt.component_decl_list): Only forbid private/protected
kono
parents:
diff changeset
1126 in anonymous unions. We need to make this know when the type is
kono
parents:
diff changeset
1127 defined for an object, to not give the error.
kono
parents:
diff changeset
1128
kono
parents:
diff changeset
1129 Mon Jul 17 14:22:44 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
1130
kono
parents:
diff changeset
1131 * parse.y (opt.component_decl_list): Don't allow access control
kono
parents:
diff changeset
1132 as private or protected for union members.
kono
parents:
diff changeset
1133
kono
parents:
diff changeset
1134 Sun Jul 16 14:01:00 1995 Jim Wilson <wilson@chestnut.cygnus.com>
kono
parents:
diff changeset
1135
kono
parents:
diff changeset
1136 * lex.c (check_newline): For 'p' case, move goto skipline line to
kono
parents:
diff changeset
1137 before end brace for 'pragma'.
kono
parents:
diff changeset
1138
kono
parents:
diff changeset
1139 Fri Jul 7 13:55:58 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
1140
kono
parents:
diff changeset
1141 * g++.1: Tiny updates.
kono
parents:
diff changeset
1142
kono
parents:
diff changeset
1143 Fri Jul 7 13:05:20 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
1144
kono
parents:
diff changeset
1145 * decl.c (cp_finish_decl): Only destruct local static variables if
kono
parents:
diff changeset
1146 they are constructed, and only construct the first time control
kono
parents:
diff changeset
1147 passes completely through its declaration (if not initialized with a
kono
parents:
diff changeset
1148 constant-expression).
kono
parents:
diff changeset
1149 (expand_static_init): Likewise.
kono
parents:
diff changeset
1150
kono
parents:
diff changeset
1151 Wed Jul 5 14:05:04 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
1152
kono
parents:
diff changeset
1153 * typeck.c (comptypes, case OFFSET_REF): If either offset basetype
kono
parents:
diff changeset
1154 is a TEMPLATE_TYPE_PARM, give a match.
kono
parents:
diff changeset
1155
kono
parents:
diff changeset
1156 Fri Jun 30 15:42:57 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
1157
kono
parents:
diff changeset
1158 * method.c (build_overload_value): Handle encoding of null pointer
kono
parents:
diff changeset
1159 constants (or any pointer with a constant numeric value) for
kono
parents:
diff changeset
1160 templates.
kono
parents:
diff changeset
1161
kono
parents:
diff changeset
1162 Fri Jun 30 13:45:51 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
1163
kono
parents:
diff changeset
1164 * call.c (convert_harshness): Add QUAL_CODE when we're faced with
kono
parents:
diff changeset
1165 const vs non-const for void conversions.
kono
parents:
diff changeset
1166
kono
parents:
diff changeset
1167 Fri Jun 30 10:19:52 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
1168
kono
parents:
diff changeset
1169 * except.c (expand_start_all_catch): Fix problem with finding an
kono
parents:
diff changeset
1170 outer nested try block when there is no code to separate it from an
kono
parents:
diff changeset
1171 inner try block.
kono
parents:
diff changeset
1172
kono
parents:
diff changeset
1173 Fri Jun 30 02:22:26 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
1174
kono
parents:
diff changeset
1175 * search.c (dfs_pushdecls): Consume 2 or 3 orders of magnitude less
kono
parents:
diff changeset
1176 memory please when virtual bases are used.
kono
parents:
diff changeset
1177
kono
parents:
diff changeset
1178 Thu Jun 29 19:03:47 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
1179
kono
parents:
diff changeset
1180 * class.c (build_vbase_path): Avoid testing things that cannot be
kono
parents:
diff changeset
1181 null to see if they are null.
kono
parents:
diff changeset
1182 * cvt.c (convert_pointer_to_vbase): Remove code that doesn't work.
kono
parents:
diff changeset
1183 * decl.c (finish_function): Pass a type into the new
kono
parents:
diff changeset
1184 convert_pointer_to_vbase instead of a binfo.
kono
parents:
diff changeset
1185 * search.c (convert_pointer_to_vbase): Rewritten to use get_vbase
kono
parents:
diff changeset
1186 and convert_pointer_to_real.
kono
parents:
diff changeset
1187 (expand_indirect_vtbls_init): Use convert_pointer_to_vbase instead
kono
parents:
diff changeset
1188 of the more cryptic call to get_vbase.
kono
parents:
diff changeset
1189
kono
parents:
diff changeset
1190 Thu Jun 29 09:35:05 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
1191
kono
parents:
diff changeset
1192 * decl.c (BOOL_TYPE_SIZE): Fix broken SLOW_BYTE_ACCESS check.
kono
parents:
diff changeset
1193
kono
parents:
diff changeset
1194 Thu Jun 29 03:43:55 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1195
kono
parents:
diff changeset
1196 * pt.c (instantiate_template): Don't strip 'this' twice.
kono
parents:
diff changeset
1197
kono
parents:
diff changeset
1198 * pt.c (coerce_template_parms): Allow null pointer constants.
kono
parents:
diff changeset
1199
kono
parents:
diff changeset
1200 * decl.c (revert_static_member_fn): But only if DECL_ARGUMENTS is
kono
parents:
diff changeset
1201 set.
kono
parents:
diff changeset
1202
kono
parents:
diff changeset
1203 Wed Jun 28 18:39:03 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1204
kono
parents:
diff changeset
1205 * decl.c (revert_static_member_fn): Also remove 'this' from
kono
parents:
diff changeset
1206 DECL_ARGUMENTS.
kono
parents:
diff changeset
1207 * decl2.c (check_classfn): Don't revert this function until we get a
kono
parents:
diff changeset
1208 match.
kono
parents:
diff changeset
1209
kono
parents:
diff changeset
1210 Wed Jun 28 14:07:27 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
1211
kono
parents:
diff changeset
1212 * parse.y (component_decl): Clear PREFIX_ATTRIBUTES here.
kono
parents:
diff changeset
1213
kono
parents:
diff changeset
1214 Wed Jun 28 11:05:13 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
1215
kono
parents:
diff changeset
1216 * decl2.c (finish_file): Handle global vector news.
kono
parents:
diff changeset
1217 * init.c (build_new): Encode vector news so that later we will know
kono
parents:
diff changeset
1218 how many elements there are.
kono
parents:
diff changeset
1219
kono
parents:
diff changeset
1220 Mon Jun 26 13:38:06 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1221
kono
parents:
diff changeset
1222 * expr.c (cplus_expand_expr): Don't mess with temp slots.
kono
parents:
diff changeset
1223
kono
parents:
diff changeset
1224 * decl2.c (warn_if_unknown_interface): Don't crash if tinst_for_decl
kono
parents:
diff changeset
1225 returns null.
kono
parents:
diff changeset
1226
kono
parents:
diff changeset
1227 * decl2.c (check_classfn): Use revert_static_member_fn.
kono
parents:
diff changeset
1228 * decl.c (revert_static_member_fn): Diagnose static member functions
kono
parents:
diff changeset
1229 declared const or volatile.
kono
parents:
diff changeset
1230
kono
parents:
diff changeset
1231 * decl2.c (grokfield): Check for missing default args here, too.
kono
parents:
diff changeset
1232 (check_default_args): Function to do the checking.
kono
parents:
diff changeset
1233 * decl.c (pushdecl): Use it.
kono
parents:
diff changeset
1234
kono
parents:
diff changeset
1235 * decl.c (pushdecl): Don't warn about shadowing a member of `this'
kono
parents:
diff changeset
1236 if there is no `this'.
kono
parents:
diff changeset
1237
kono
parents:
diff changeset
1238 Sun Jun 25 11:34:25 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1239
kono
parents:
diff changeset
1240 * call.c (build_method_call): Downgrade 'called before definition'
kono
parents:
diff changeset
1241 to a warning, as it ought to go away after Monterey.
kono
parents:
diff changeset
1242
kono
parents:
diff changeset
1243 Sat Jun 24 14:18:42 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1244
kono
parents:
diff changeset
1245 * pt.c (coerce_template_parms): Don't do extra checking on pointer
kono
parents:
diff changeset
1246 to member arguments.
kono
parents:
diff changeset
1247
kono
parents:
diff changeset
1248 * class.c (finish_struct): const and reference members don't prevent
kono
parents:
diff changeset
1249 a class from being an aggregate.
kono
parents:
diff changeset
1250
kono
parents:
diff changeset
1251 * class.c (finish_struct): Signatures are always aggregates.
kono
parents:
diff changeset
1252
kono
parents:
diff changeset
1253 Fri Jun 23 17:20:29 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1254
kono
parents:
diff changeset
1255 * decl2.c (check_classfn): Improve error message.
kono
parents:
diff changeset
1256
kono
parents:
diff changeset
1257 * pt.c (tsubst): Handle PROMOTE_PROTOTYPES.
kono
parents:
diff changeset
1258
kono
parents:
diff changeset
1259 Thu Jun 22 01:50:42 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1260
kono
parents:
diff changeset
1261 * typeck.c (comptypes): Don't ignore method quals.
kono
parents:
diff changeset
1262
kono
parents:
diff changeset
1263 * class.c (finish_struct): Non-abstract virtuals are always USED.
kono
parents:
diff changeset
1264
kono
parents:
diff changeset
1265 * decl.c (build_ptrmemfunc_type): The underlying union type isn't
kono
parents:
diff changeset
1266 IS_AGGR_TYPE, either.
kono
parents:
diff changeset
1267 * class.c (finish_struct): Use CLASSTYPE_NON_AGGREGATE instead.
kono
parents:
diff changeset
1268 * cp-tree.h: Likewise.
kono
parents:
diff changeset
1269
kono
parents:
diff changeset
1270 * cp-tree.h (lang_type): Add aggregate.
kono
parents:
diff changeset
1271 (CLASSTYPE_AGGREGATE): New macro.
kono
parents:
diff changeset
1272 (TYPE_NON_AGGREGATE_CLASS): Likewise.
kono
parents:
diff changeset
1273 * class.c (finish_struct): Determine whether a class is an
kono
parents:
diff changeset
1274 aggregate.
kono
parents:
diff changeset
1275 * decl.c (cp_finish_decl): Check TYPE_NON_AGGREGATE_CLASS instead of
kono
parents:
diff changeset
1276 TYPE_NEEDS_CONSTRUCTING.
kono
parents:
diff changeset
1277 * typeck2.c (digest_init): Check TYPE_NON_AGGREGATE_CLASS for
kono
parents:
diff changeset
1278 subobjects, too.
kono
parents:
diff changeset
1279
kono
parents:
diff changeset
1280 * pt.c (tsubst, PARM_TYPE): Propagate DECL_ARTIFICIAL.
kono
parents:
diff changeset
1281
kono
parents:
diff changeset
1282 * decl.c (start_function): For pre-parsed functions, layout all of
kono
parents:
diff changeset
1283 the parm decls again.
kono
parents:
diff changeset
1284 (grokvardecl): TREE_PUBLIC depends on DECL_THIS_EXTERN, not
kono
parents:
diff changeset
1285 DECL_EXTERNAL.
kono
parents:
diff changeset
1286
kono
parents:
diff changeset
1287 * pt.c (coerce_template_parms): Improve checking for invalid
kono
parents:
diff changeset
1288 template parms.
kono
parents:
diff changeset
1289
kono
parents:
diff changeset
1290 Wed Jun 21 12:01:16 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
1291
kono
parents:
diff changeset
1292 * decl.c (grokdeclarator): Forbid declaration of a static member
kono
parents:
diff changeset
1293 with the same name as its enclosing class.
kono
parents:
diff changeset
1294
kono
parents:
diff changeset
1295 Mon Jun 19 10:28:14 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1296
kono
parents:
diff changeset
1297 * decl.c (finish_function): Clear current_class_decl.
kono
parents:
diff changeset
1298
kono
parents:
diff changeset
1299 * typeck.c (build_conditional_expr): Use convert (boolean_type_node
kono
parents:
diff changeset
1300 instead of truthvalue_conversion.
kono
parents:
diff changeset
1301
kono
parents:
diff changeset
1302 * class.c (finish_struct): A data member with the same name as the
kono
parents:
diff changeset
1303 class doesn't suppress constructors.
kono
parents:
diff changeset
1304
kono
parents:
diff changeset
1305 Fri Jun 16 18:11:39 1995 Gerald Baumgartner <gb@alexander.cs.purdue.edu>
kono
parents:
diff changeset
1306
kono
parents:
diff changeset
1307 * decl.c (start_function): If current_class_decl is a signature
kono
parents:
diff changeset
1308 pointer, don't dereference it but set C_C_D to current_class_decl.
kono
parents:
diff changeset
1309
kono
parents:
diff changeset
1310 Fri Jun 16 17:06:28 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1311
kono
parents:
diff changeset
1312 * decl.c (duplicate_decls): Complain about virtual functions
kono
parents:
diff changeset
1313 redeclared to be inline.
kono
parents:
diff changeset
1314
kono
parents:
diff changeset
1315 Fri Jun 16 13:20:38 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
1316
kono
parents:
diff changeset
1317 * decl.c (get_unique_name): New routine to name unnamed namespaces.
kono
parents:
diff changeset
1318 (push_namespace): Use get_unique_name for naming unnamed namespaces.
kono
parents:
diff changeset
1319
kono
parents:
diff changeset
1320 Thu Jun 15 15:00:41 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1321
kono
parents:
diff changeset
1322 * parse.y: Call cplus_decl_attributes with prefix_attributes where
kono
parents:
diff changeset
1323 appropriate.
kono
parents:
diff changeset
1324
kono
parents:
diff changeset
1325 Wed Jun 14 19:24:49 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
1326
kono
parents:
diff changeset
1327 * search.c (get_vbase): New routine to switch hierarchies from the
kono
parents:
diff changeset
1328 CLASSTYPE_VBASECLASSES to the normal one.
kono
parents:
diff changeset
1329 (expand_indirect_vtbls_init): Use get_vbase to figure out how we
kono
parents:
diff changeset
1330 want to convert to a vbase pointer.
kono
parents:
diff changeset
1331
kono
parents:
diff changeset
1332 Mon Jun 12 17:50:30 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1333
kono
parents:
diff changeset
1334 * pt.c (instantiate_class_template): Add the new instantiation to
kono
parents:
diff changeset
1335 template_classes.
kono
parents:
diff changeset
1336 (do_pending_expansions): Call instantiate_member_templates on all of
kono
parents:
diff changeset
1337 the classes in template_classes.
kono
parents:
diff changeset
1338
kono
parents:
diff changeset
1339 Mon Jun 12 12:36:59 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
1340
kono
parents:
diff changeset
1341 * decl.c (complete_array_type): Fill in the TYPE_DOMAIN of our
kono
parents:
diff changeset
1342 TYPE_MAIN_VARIANT if it is not filled in.
kono
parents:
diff changeset
1343 * init.c (build_delete): If the TYPE_DOMAIN is not set, give an
kono
parents:
diff changeset
1344 error instead of core dumping.
kono
parents:
diff changeset
1345
kono
parents:
diff changeset
1346 Mon Jun 12 10:41:40 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1347
kono
parents:
diff changeset
1348 * call.c (can_convert): Also check for distance > 0.
kono
parents:
diff changeset
1349 (can_convert_arg): Likewise.
kono
parents:
diff changeset
1350 (user_harshness): Likewise.
kono
parents:
diff changeset
1351
kono
parents:
diff changeset
1352 Fri Jun 9 19:17:21 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1353
kono
parents:
diff changeset
1354 * g++.c (MATH_LIBRARY): Provide default.
kono
parents:
diff changeset
1355 (main): Always link with the math library if we link with libstdc++.
kono
parents:
diff changeset
1356
kono
parents:
diff changeset
1357 * decl.c (start_function): Complain about redefinition of a function
kono
parents:
diff changeset
1358 even when the pending_inline version is compiled after the other
kono
parents:
diff changeset
1359 version.
kono
parents:
diff changeset
1360
kono
parents:
diff changeset
1361 Thu Jun 8 15:44:38 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1362
kono
parents:
diff changeset
1363 * gc.c (build_dynamic_cast): Build up a reference to a parameter of
kono
parents:
diff changeset
1364 aggregate type.
kono
parents:
diff changeset
1365
kono
parents:
diff changeset
1366 Wed Jun 7 15:31:57 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
1367
kono
parents:
diff changeset
1368 * init.c (build_vec_delete): Resolve an offset ref before we try to
kono
parents:
diff changeset
1369 use it.
kono
parents:
diff changeset
1370
kono
parents:
diff changeset
1371 Wed Jun 7 14:19:32 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1372
kono
parents:
diff changeset
1373 * typeck.c (build_modify_expr): If the class lacks a constructor or
kono
parents:
diff changeset
1374 assignment operator, return error_mark_node.
kono
parents:
diff changeset
1375 (common_type): Use build_cplus_array_type.
kono
parents:
diff changeset
1376
kono
parents:
diff changeset
1377 Tue Jun 6 09:41:27 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
1378
kono
parents:
diff changeset
1379 * class.c (dont_allow_type_definitions): New variable set when types
kono
parents:
diff changeset
1380 cannot be defined.
kono
parents:
diff changeset
1381 (finish_struct): Use it.
kono
parents:
diff changeset
1382 * cp-tree.h (dont_allow_type_definitions): Define it.
kono
parents:
diff changeset
1383 * parse.y (primary, handler_seq): Set it.
kono
parents:
diff changeset
1384
kono
parents:
diff changeset
1385 Mon Jun 5 18:49:38 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
1386
kono
parents:
diff changeset
1387 * method.c (build_opfncall): Use DECL_CHAIN, not TREE_CHAIN for
kono
parents:
diff changeset
1388 results from lookup_fnfields. Always give warning/error on bad
kono
parents:
diff changeset
1389 code.
kono
parents:
diff changeset
1390
kono
parents:
diff changeset
1391 Mon Jun 5 11:39:37 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
1392
kono
parents:
diff changeset
1393 * init.c (member_init_ok_or_else): Don't allow initialization of
kono
parents:
diff changeset
1394 an ancestor's member from within a constructor.
kono
parents:
diff changeset
1395
kono
parents:
diff changeset
1396 Mon Jun 5 11:20:34 1995 Gerald Baumgartner <gb@alexander.cs.purdue.edu>
kono
parents:
diff changeset
1397
kono
parents:
diff changeset
1398 * sig.c (build_signature_table_constructor): Use DECL_CONTEXT
kono
parents:
diff changeset
1399 instead of DECL_CLASS_CONTEXT for calculating the vfield offset so
kono
parents:
diff changeset
1400 abstract virtual functions are handled correctly.
kono
parents:
diff changeset
1401
kono
parents:
diff changeset
1402 * sig.c (build_signature_table_constructor): Store the correct
kono
parents:
diff changeset
1403 delta in signature table entries. It does not yet work for
kono
parents:
diff changeset
1404 classes with virtual base classes as implementations of signatures.
kono
parents:
diff changeset
1405 (build_signature_method_call): Add the delta to the object_ptr
kono
parents:
diff changeset
1406 before generating the function call.
kono
parents:
diff changeset
1407
kono
parents:
diff changeset
1408 * call.c (build_method_call): Make instance_ptr the signature
kono
parents:
diff changeset
1409 pointer itself instead of dereferencing the optr.
kono
parents:
diff changeset
1410 * sig.c (build_signature_method_call): Dereference the optr for the
kono
parents:
diff changeset
1411 direct and virtual calls.
kono
parents:
diff changeset
1412
kono
parents:
diff changeset
1413 * sig.c (build_signature_table_constructor): Make the tag for
kono
parents:
diff changeset
1414 default implementations -1 instead of 2.
kono
parents:
diff changeset
1415 (build_signature_method_call): Change the generated conditional
kono
parents:
diff changeset
1416 expression correspondingly.
kono
parents:
diff changeset
1417
kono
parents:
diff changeset
1418 * sig.c (build_signature_pointer_constructor): Deleted the sorry
kono
parents:
diff changeset
1419 message that said we can't handle multiple inheritance for
kono
parents:
diff changeset
1420 implementations of signatures
kono
parents:
diff changeset
1421 (build_signature_method_call): Use the offset from the sigtable
kono
parents:
diff changeset
1422 entry instead of the vptr field from the signature pointer for
kono
parents:
diff changeset
1423 building a virtual function call.
kono
parents:
diff changeset
1424
kono
parents:
diff changeset
1425 * class.c (build_vfn_ref): Deleted signature specific code, we don't
kono
parents:
diff changeset
1426 call this function anymore from build_signature_method_call.
kono
parents:
diff changeset
1427
kono
parents:
diff changeset
1428 * cp-tree.h (SIGNATURE_VPTR_NAME): Deleted. We use the right vptr
kono
parents:
diff changeset
1429 field in the object now instead of in the signature pointer/ref.
kono
parents:
diff changeset
1430 (build_vptr_ref): Deleted extern declaration.
kono
parents:
diff changeset
1431 * sig.c (build_vptr_ref): Deleted.
kono
parents:
diff changeset
1432 (build_signature_pointer_or_reference_type): Deleted construction of
kono
parents:
diff changeset
1433 the vptr field.
kono
parents:
diff changeset
1434 (build_signature_pointer_constructor): Deleted initialization of/
kono
parents:
diff changeset
1435 assignment to the vptr field.
kono
parents:
diff changeset
1436
kono
parents:
diff changeset
1437 * sig.c (build_signature_table_constructor): Convert the signature
kono
parents:
diff changeset
1438 table entry fields to their correct types.
kono
parents:
diff changeset
1439
kono
parents:
diff changeset
1440 * sig.c (build_signature_table_constructor): Don't call digest_init
kono
parents:
diff changeset
1441 for the fields of a sigtable entry, it's wasted time.
kono
parents:
diff changeset
1442
kono
parents:
diff changeset
1443 * sig.c (build_signature_table_constructor): Correctly set the
kono
parents:
diff changeset
1444 offset and index fields of a sigtable entry. Build the constructor
kono
parents:
diff changeset
1445 the way digest_init does, digest_init can't handle initializing an
kono
parents:
diff changeset
1446 anonymous union inside a struct.
kono
parents:
diff changeset
1447 (build_signature_method_call): Use the index field instead of the
kono
parents:
diff changeset
1448 delta field to get the vtable index.
kono
parents:
diff changeset
1449
kono
parents:
diff changeset
1450 * decl.c (init_decl_processing): Fix number of fields for building
kono
parents:
diff changeset
1451 sigtable_entry_type.
kono
parents:
diff changeset
1452
kono
parents:
diff changeset
1453 * cp-tree.h (tag_identifier, offset_identifier): Added extern decls.
kono
parents:
diff changeset
1454 (SIGTABLE_CODE_NAME): Renamed to SIGTABLE_TAG_NAME.
kono
parents:
diff changeset
1455 (SIGTABLE_PFN_NAME): Deleted, we'll use VTABLE_PFN_NAME instead.
kono
parents:
diff changeset
1456 * decl.c (tag_identifier, offset_identifier): New variables to
kono
parents:
diff changeset
1457 hold the identifiers for the sigtable fields tag and offset.
kono
parents:
diff changeset
1458 (init_decl_processing): Initialize these variables.
kono
parents:
diff changeset
1459 (init_decl_processing): Use these variables to build the
kono
parents:
diff changeset
1460 sigtable_entry_type structure. Rename the code and offset fields
kono
parents:
diff changeset
1461 to tag and delta, respectively; add offset and index fields. Changed
kono
parents:
diff changeset
1462 types of fields from short_integer_type_node to delta_type_node.
kono
parents:
diff changeset
1463 * sig.c (build_signature_table_constructor): Rename code and offset
kono
parents:
diff changeset
1464 to tag and delta, respectively.
kono
parents:
diff changeset
1465 (build_signature_method_call): Likewise. Use above variables.
kono
parents:
diff changeset
1466
kono
parents:
diff changeset
1467 Thu Jun 1 17:03:51 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1468
kono
parents:
diff changeset
1469 * decl.c (lookup_name_real): Don't try to look anything up in an
kono
parents:
diff changeset
1470 erroneous object.
kono
parents:
diff changeset
1471
kono
parents:
diff changeset
1472 Fri Jun 2 10:30:14 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
1473
kono
parents:
diff changeset
1474 * method.c (build_overload_int): New routine. Break out
kono
parents:
diff changeset
1475 functionality from build_overload_value so we can reuse it.
kono
parents:
diff changeset
1476 (build_overload_value): Handle pointer to member functions as value
kono
parents:
diff changeset
1477 parameters for templates.
kono
parents:
diff changeset
1478 (build_overload_identifier): Since template parameters are shared
kono
parents:
diff changeset
1479 among all instantiations, we have to substitute in the real types
kono
parents:
diff changeset
1480 in TREE_TYPE (parm).
kono
parents:
diff changeset
1481 pt.c (coerce_template_parms): Likewise.
kono
parents:
diff changeset
1482 (push_template_decls): Likewise.
kono
parents:
diff changeset
1483 (grok_template_type): Deleted as template parameters are shared
kono
parents:
diff changeset
1484 among all instantiations.
kono
parents:
diff changeset
1485
kono
parents:
diff changeset
1486 Wed May 31 19:10:32 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
1487
kono
parents:
diff changeset
1488 * decl.c (grokdeclarator): Always give errors on constant overflow
kono
parents:
diff changeset
1489 for array indices.
kono
parents:
diff changeset
1490
kono
parents:
diff changeset
1491 Wed May 31 11:39:43 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1492
kono
parents:
diff changeset
1493 * typeck.c (commonparms): Don't abort if simple_cst_equal returns < 0.
kono
parents:
diff changeset
1494 (build_c_cast): Don't tack on a NON_LVALUE_EXPR when casting to
kono
parents:
diff changeset
1495 reference type.
kono
parents:
diff changeset
1496 (build_indirect_ref): Fix check for *&.
kono
parents:
diff changeset
1497
kono
parents:
diff changeset
1498 Fri Jun 16 06:54:03 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
1499
kono
parents:
diff changeset
1500 * Version 2.7.0 released.
kono
parents:
diff changeset
1501
kono
parents:
diff changeset
1502 Fri Jun 16 15:07:29 1995 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
kono
parents:
diff changeset
1503
kono
parents:
diff changeset
1504 * Make-lang.in (DEMANGLER_PROG): Add LIBS.
kono
parents:
diff changeset
1505
kono
parents:
diff changeset
1506 Thu Jun 15 15:00:41 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1507
kono
parents:
diff changeset
1508 * decl.c (define_function): Don't set DECL_INTERFACE_KNOWN.
kono
parents:
diff changeset
1509
kono
parents:
diff changeset
1510 Wed Jun 7 20:00:31 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
1511
kono
parents:
diff changeset
1512 * *.[chy]: Change all callers of finish_decl to cp_finish_decl.
kono
parents:
diff changeset
1513 * decl.c (finish_decl): New routine to handle call backs from the
kono
parents:
diff changeset
1514 mid end (declare_hidden_char_array).
kono
parents:
diff changeset
1515
kono
parents:
diff changeset
1516 Wed Jun 7 19:02:50 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1517
kono
parents:
diff changeset
1518 * decl.c (start_function): Handle setting C_C_D here.
kono
parents:
diff changeset
1519 (set_C_C_D): Removed.
kono
parents:
diff changeset
1520 (struct saved_scope): Remove class_decl.
kono
parents:
diff changeset
1521 (push_to_top_level): Don't save current_class_decl.
kono
parents:
diff changeset
1522 (pop_from_top_level): Don't restore current_class_decl or C_C_D.
kono
parents:
diff changeset
1523 (struct cp_function): Add C_C_D.
kono
parents:
diff changeset
1524 (push_cp_function_context): Save C_C_D.
kono
parents:
diff changeset
1525 (pop_cp_function_context): Restore C_C_D.
kono
parents:
diff changeset
1526
kono
parents:
diff changeset
1527 Fri Jun 2 11:05:58 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1528
kono
parents:
diff changeset
1529 * decl.c (set_C_C_D): New function. suspend_momentary before
kono
parents:
diff changeset
1530 building C_C_D.
kono
parents:
diff changeset
1531 (pop_from_top_level): Call it.
kono
parents:
diff changeset
1532 (start_function): Likewise.
kono
parents:
diff changeset
1533 (pop_cp_function_context): Likewise.
kono
parents:
diff changeset
1534
kono
parents:
diff changeset
1535 * class.c, cp-tree.h, decl.c, decl2.c, parse.y: Lose all references
kono
parents:
diff changeset
1536 to current_vtable_decl, CLASSTYPE_INST_VAR and CLASSTYPE_VTBL_PTR.
kono
parents:
diff changeset
1537
kono
parents:
diff changeset
1538 * decl.c (push_cp_function_context): Save current_class_decl.
kono
parents:
diff changeset
1539 (pop_cp_function_context): Restore current_class_decl and set C_C_D.
kono
parents:
diff changeset
1540 (pop_from_top_level): Don't use CLASSTYPE_INST_VAR to set C_C_D.
kono
parents:
diff changeset
1541 (start_function): Likewise.
kono
parents:
diff changeset
1542
kono
parents:
diff changeset
1543 * class.c (popclass): Don't mess with current_class_decl,
kono
parents:
diff changeset
1544 current_vtable_decl, or C_C_D.
kono
parents:
diff changeset
1545
kono
parents:
diff changeset
1546 Mon May 29 12:45:10 1995 Paul Eggert <eggert@twinsun.com>
kono
parents:
diff changeset
1547
kono
parents:
diff changeset
1548 * Make-lang.in (c++.mostlyclean): Remove $(DEMANGLER_PROG).
kono
parents:
diff changeset
1549
kono
parents:
diff changeset
1550 Wed May 24 15:55:18 1995 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
kono
parents:
diff changeset
1551
kono
parents:
diff changeset
1552 * decl.c (duplicate_decls): Check simple_cst_equal result against 0.
kono
parents:
diff changeset
1553 * decl2.c (finish_anon_union): Likewise.
kono
parents:
diff changeset
1554 * method.c (largest_union_member): Likewise.
kono
parents:
diff changeset
1555
kono
parents:
diff changeset
1556 Wed May 24 14:41:11 1995 H.J. Lu <hjl@nynexst.com>
kono
parents:
diff changeset
1557
kono
parents:
diff changeset
1558 * Make-lang.in (cxxmain.o): Replace single quotes with backslashes.
kono
parents:
diff changeset
1559
kono
parents:
diff changeset
1560 Mon May 22 17:38:48 1995 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
kono
parents:
diff changeset
1561
kono
parents:
diff changeset
1562 * Make-lang.in (g++, g++-cross, cc1plus, DEMANGLER_PROG):
kono
parents:
diff changeset
1563 Use $@ instead of output name so works even if have .exe.
kono
parents:
diff changeset
1564 (cxxmain.o): Use cp if ln -s fails.
kono
parents:
diff changeset
1565 (c++.install-man): Use $(exeext) in executable names.
kono
parents:
diff changeset
1566 (c++.mostlyclean, stage[1-4]): Use $(objext) in object file names.
kono
parents:
diff changeset
1567 * Makefile.in (../cc1plus): Use $(exeext) in name of executable.
kono
parents:
diff changeset
1568
kono
parents:
diff changeset
1569 Wed May 24 01:39:03 1995 Jason Merrill <jason@deneb.cygnus.com>
kono
parents:
diff changeset
1570
kono
parents:
diff changeset
1571 * call.c (build_method_call): Parms can be null, duh.
kono
parents:
diff changeset
1572
kono
parents:
diff changeset
1573 Tue May 23 01:32:09 1995 Jason Merrill <jason@deneb.cygnus.com>
kono
parents:
diff changeset
1574
kono
parents:
diff changeset
1575 * call.c (build_method_call): If convert_arguments failed, just bail.
kono
parents:
diff changeset
1576
kono
parents:
diff changeset
1577 Fri May 19 10:31:11 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1578
kono
parents:
diff changeset
1579 * cvt.c (convert_force): Pass LOOKUP_NORMAL to cp_convert.
kono
parents:
diff changeset
1580
kono
parents:
diff changeset
1581 * tree.c (copy_to_permanent): Oops.
kono
parents:
diff changeset
1582
kono
parents:
diff changeset
1583 Fri May 19 10:01:07 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
1584
kono
parents:
diff changeset
1585 * cp-tree.h (break_out_target_exprs): Add decl.
kono
parents:
diff changeset
1586
kono
parents:
diff changeset
1587 Thu May 18 13:02:30 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1588
kono
parents:
diff changeset
1589 * decl.c (start_function): Move *all* interface handling stuff after
kono
parents:
diff changeset
1590 the pushdecl.
kono
parents:
diff changeset
1591
kono
parents:
diff changeset
1592 * tree.c (mapcar): Renamed from make_deep_copy and generalized.
kono
parents:
diff changeset
1593 (perm_manip): Return t if permanent, otherwise 0.
kono
parents:
diff changeset
1594 (copy_to_permanent): Use them.
kono
parents:
diff changeset
1595 (bot_manip): Helper for break_out_target_exprs.
kono
parents:
diff changeset
1596 (break_out_target_exprs): New function. Uses mapcar.
kono
parents:
diff changeset
1597
kono
parents:
diff changeset
1598 * typeck.c (convert_arguments): Use it.
kono
parents:
diff changeset
1599
kono
parents:
diff changeset
1600 * method.c (hack_identifier): Use convert_from_reference to
kono
parents:
diff changeset
1601 dereference a reference.
kono
parents:
diff changeset
1602
kono
parents:
diff changeset
1603 Wed May 17 17:54:54 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
1604
kono
parents:
diff changeset
1605 * call.c (convert_harshness): Move reference bashing before pointer
kono
parents:
diff changeset
1606 to member bashing.
kono
parents:
diff changeset
1607
kono
parents:
diff changeset
1608 Wed May 17 16:57:53 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
1609
kono
parents:
diff changeset
1610 * cvt.c (convert_to_reference): Only complain, if complaints are
kono
parents:
diff changeset
1611 wanted.
kono
parents:
diff changeset
1612 * typeck.c (build_function_call_real): Likewise. If
kono
parents:
diff changeset
1613 LOOKUP_SPECULATIVELY is set and something won't work, return
kono
parents:
diff changeset
1614 NULL_TREE.
kono
parents:
diff changeset
1615 * cvt.c (cp_convert): Likewise. Pass flags down to build_method_call.
kono
parents:
diff changeset
1616 (convert): Pass LOOKUP_NORMAL to cp_convert.
kono
parents:
diff changeset
1617 * typeck.c (convert_for_assignment): Likewise.
kono
parents:
diff changeset
1618 (convert_force): Pass LOOKUP_COMPLAIN to cp_convert.
kono
parents:
diff changeset
1619 (convert_arguments): Get out early if we get an error_mark_node.
kono
parents:
diff changeset
1620 (convert_for_initialization): Use cp_convert instead of convert so
kono
parents:
diff changeset
1621 that we can pass flags down.
kono
parents:
diff changeset
1622 * cp-tree.h (LOOKUP_SPECULATIVELY): Added documentation.
kono
parents:
diff changeset
1623
kono
parents:
diff changeset
1624 Wed May 17 01:43:58 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1625
kono
parents:
diff changeset
1626 * typeck2.c (store_init_value): Don't take the MAIN_VARIANT of the
kono
parents:
diff changeset
1627 decl type.
kono
parents:
diff changeset
1628
kono
parents:
diff changeset
1629 * class.c (finish_struct): Don't complain about a class with no
kono
parents:
diff changeset
1630 user-defined constructors but with a member that has no default
kono
parents:
diff changeset
1631 constructor, as this is OK for aggregates.
kono
parents:
diff changeset
1632
kono
parents:
diff changeset
1633 * expr.c (cplus_expand_expr, NEW_EXPR): If this is an explicit
kono
parents:
diff changeset
1634 constructor call, mark slot addressable.
kono
parents:
diff changeset
1635
kono
parents:
diff changeset
1636 Tue May 16 18:37:51 1995 Douglas Rupp <drupp@cs.washington.edu>
kono
parents:
diff changeset
1637
kono
parents:
diff changeset
1638 * g++.c: Changed WINNT to _WIN32.
kono
parents:
diff changeset
1639
kono
parents:
diff changeset
1640 Tue May 16 12:40:16 1995 Jason Merrill <jason@lisa.cygnus.com>
kono
parents:
diff changeset
1641
kono
parents:
diff changeset
1642 * lex.c (handle_sysv_pragma): Don't use token_buffer.
kono
parents:
diff changeset
1643
kono
parents:
diff changeset
1644 Tue May 16 12:05:26 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
1645
kono
parents:
diff changeset
1646 * call.c (resolve_scope_to_name): Add initial semantic support for
kono
parents:
diff changeset
1647 namespaces.
kono
parents:
diff changeset
1648 * class.c (finish_struct): Likewise.
kono
parents:
diff changeset
1649 * cp-tree.h (NAMESPACE_LEVEL): Likewise.
kono
parents:
diff changeset
1650 * cvt.c (build_up_reference, convert_to_reference): Likewise.
kono
parents:
diff changeset
1651 * decl.c (binding_level::namespace_p, suspend_binding_level): Likewise.
kono
parents:
diff changeset
1652 (resume_binding_level, toplevel_bindings_p): Likewise
kono
parents:
diff changeset
1653 (namespace_bindings_p, declare_namespace_level): Likewise.
kono
parents:
diff changeset
1654 (resume_level, push_namespace, pop_namespace): Likewise.
kono
parents:
diff changeset
1655 (pop_everything, pushtag, duplicate_decls, pushdecl): Likewise.
kono
parents:
diff changeset
1656 (implicitly_declare, lookup_namespace_name): Likewise.
kono
parents:
diff changeset
1657 (lookup_name_real, start_decl, make_temporary_for_reference): Likewise.
kono
parents:
diff changeset
1658 (obscure_complex_init, finish_decl, expand_static_init): Likewise.
kono
parents:
diff changeset
1659 (grokvardecl, grokdeclarator, parmlist_is_exprlist): Likewise.
kono
parents:
diff changeset
1660 (store_parm_decls, hack_incomplete_structures): Likewise.
kono
parents:
diff changeset
1661 * decl2.c (get_temp_name, finish_anon_union): Likewise.
kono
parents:
diff changeset
1662 (current_namespace, push_namespace, pop_namespace): Likewise.
kono
parents:
diff changeset
1663 (do_namespace_alias, do_toplevel_using_decl): Likewise.
kono
parents:
diff changeset
1664 (do_class_using_decl): Likewise.
kono
parents:
diff changeset
1665 * error.c (dump_decl): Likewise.
kono
parents:
diff changeset
1666 * init.c (build_member_call, build_offset_ref): Likewise.
kono
parents:
diff changeset
1667 * lex.c (identifier_type): Likewise.
kono
parents:
diff changeset
1668 * parse.y (lang_extdef, using_decl, extdef): Likewise.
kono
parents:
diff changeset
1669 (component_decl_1, nested_name_specifier_1): Likewise.
kono
parents:
diff changeset
1670 * spew.c (yylex): Likewise.
kono
parents:
diff changeset
1671 * tree.def (NAMESPACE_DECL): Likewise.
kono
parents:
diff changeset
1672
kono
parents:
diff changeset
1673 Tue May 16 11:55:35 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1674
kono
parents:
diff changeset
1675 * decl.c (push_overloaded_decl): Return the new decl even if it
kono
parents:
diff changeset
1676 can't be pushed.
kono
parents:
diff changeset
1677
kono
parents:
diff changeset
1678 Tue May 16 11:00:37 1995 Jason Merrill <jason@lisa.cygnus.com>
kono
parents:
diff changeset
1679
kono
parents:
diff changeset
1680 * typeck.c (decay_conversion): Split out from default_conversion.
kono
parents:
diff changeset
1681 (default_conversion): Call it.
kono
parents:
diff changeset
1682 (build_binary_op): Likewise.
kono
parents:
diff changeset
1683 (build_binary_op_nodefault): Use decay_conversion for truth ops.
kono
parents:
diff changeset
1684
kono
parents:
diff changeset
1685 Mon May 15 12:47:56 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1686
kono
parents:
diff changeset
1687 * decl.c (warn_extern_redeclared_static): This is a pedwarn.
kono
parents:
diff changeset
1688 (duplicate_decls): Always use the old decl's linkage info. Don't
kono
parents:
diff changeset
1689 play with linkage of consts.
kono
parents:
diff changeset
1690 (pushdecl): Don't play with linkage of consts.
kono
parents:
diff changeset
1691 (redeclaration_error_message): Don't complain about an old public
kono
parents:
diff changeset
1692 decl and a new non-public decl here.
kono
parents:
diff changeset
1693 (grokvardecl): Handle linkage of consts here.
kono
parents:
diff changeset
1694 (grokdeclarator): An 'extern inline' is public. Pass constp to
kono
parents:
diff changeset
1695 grokvardecl.
kono
parents:
diff changeset
1696 (start_function): Wait until after the pushdecl to do some linkage
kono
parents:
diff changeset
1697 stuff.
kono
parents:
diff changeset
1698
kono
parents:
diff changeset
1699 * decl2.c (import_export_vtable): Make duplicates weak rather than
kono
parents:
diff changeset
1700 static if supported.
kono
parents:
diff changeset
1701 (import_export_inline): Likewise.
kono
parents:
diff changeset
1702 * pt.c (do_pending_expansions): Likewise.
kono
parents:
diff changeset
1703
kono
parents:
diff changeset
1704 * class.c (build_vbase_path): flag_assume_nonnull_objects only
kono
parents:
diff changeset
1705 affects reference conversion.
kono
parents:
diff changeset
1706
kono
parents:
diff changeset
1707 * init.c (emit_base_init): Build up an RTL_EXPR and add it to
kono
parents:
diff changeset
1708 rtl_expr_chain.
kono
parents:
diff changeset
1709 * decl.c, decl2.c: s/base_init_insns/base_init_expr/.
kono
parents:
diff changeset
1710
kono
parents:
diff changeset
1711 Tue May 16 07:06:28 1995 Paul Eggert <eggert@twinsun.com>
kono
parents:
diff changeset
1712
kono
parents:
diff changeset
1713 * method.c (numeric_output_need_bar): Renamed from misspelling.
kono
parents:
diff changeset
1714
kono
parents:
diff changeset
1715 * typeck.c (build_ptrmemfunc): Fix misspellings in messages.
kono
parents:
diff changeset
1716
kono
parents:
diff changeset
1717 Sun May 14 10:26:22 1995 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
kono
parents:
diff changeset
1718
kono
parents:
diff changeset
1719 * lang-options.h, lang-specs.h: New files.
kono
parents:
diff changeset
1720
kono
parents:
diff changeset
1721 Thu May 11 00:31:48 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1722
kono
parents:
diff changeset
1723 * typeck.c (default_conversion): Don't check for BLKmode before
kono
parents:
diff changeset
1724 pulling out the decl_constant_value.
kono
parents:
diff changeset
1725
kono
parents:
diff changeset
1726 * decl.c (start_function): Clear named_labels and shadowed_labels.
kono
parents:
diff changeset
1727
kono
parents:
diff changeset
1728 * typeck.c (build_function_call_real): Also synthesize methods here.
kono
parents:
diff changeset
1729
kono
parents:
diff changeset
1730 Wed May 10 00:55:59 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1731
kono
parents:
diff changeset
1732 * decl2.c (finish_file): Synthesize exported methods before the
kono
parents:
diff changeset
1733 reconsider loop.
kono
parents:
diff changeset
1734
kono
parents:
diff changeset
1735 * parse.y: Move declaration of flag_new_for_scope to file scope.
kono
parents:
diff changeset
1736
kono
parents:
diff changeset
1737 Tue May 9 19:10:33 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
1738
kono
parents:
diff changeset
1739 * decl2.c: Add flag_new_for_scope for new -ffor-scope flag.
kono
parents:
diff changeset
1740 * parse.y (FOR): Conditionalize the pushing and popping of scope for
kono
parents:
diff changeset
1741 the for-init-statement upon the new flag_new_for_scope.
kono
parents:
diff changeset
1742 * parse.y (try_block): Simplify and use compstmt.
kono
parents:
diff changeset
1743
kono
parents:
diff changeset
1744 Mon May 8 12:41:52 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1745
kono
parents:
diff changeset
1746 * decl.c (define_function): Mark function decl artificial.
kono
parents:
diff changeset
1747
kono
parents:
diff changeset
1748 Sun May 7 00:51:28 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1749
kono
parents:
diff changeset
1750 * parse.y (simple_stmt, FOR): Put back push/pop for condition scope.
kono
parents:
diff changeset
1751
kono
parents:
diff changeset
1752 * decl2.c (grokclassfn): DECLs don't have cv-qualified types.
kono
parents:
diff changeset
1753 * tree.c (build_cplus_method_type): Likewise.
kono
parents:
diff changeset
1754
kono
parents:
diff changeset
1755 * cp-tree.h (SET_DECL_ARTIFICIAL): Just set DECL_ARTIFICIAL to 1.
kono
parents:
diff changeset
1756
kono
parents:
diff changeset
1757 * typeck.c (build_function_call_real): If convert_arguments failed,
kono
parents:
diff changeset
1758 just bail.
kono
parents:
diff changeset
1759 (convert_arguments): If one of the arguments is error_mark_node,
kono
parents:
diff changeset
1760 just bail.
kono
parents:
diff changeset
1761
kono
parents:
diff changeset
1762 Sat May 6 02:39:41 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1763
kono
parents:
diff changeset
1764 * decl.c (duplicate_decls): Don't check DECL_NOT_REALLY_EXTERN for
kono
parents:
diff changeset
1765 decls that don't include it.
kono
parents:
diff changeset
1766
kono
parents:
diff changeset
1767 Fri May 5 14:23:30 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1768
kono
parents:
diff changeset
1769 * decl.c (duplicate_decls): Decls that have DECL_INTERFACE_KNOWN or
kono
parents:
diff changeset
1770 DECL_NOT_REALLY_EXTERN set aren't extern decls.
kono
parents:
diff changeset
1771
kono
parents:
diff changeset
1772 * typeck.c (build_indirect_ref): Don't call default_conversion for a
kono
parents:
diff changeset
1773 parameter of reference_type.
kono
parents:
diff changeset
1774 * cvt.c (convert_from_reference): Just use build_indirect_ref.
kono
parents:
diff changeset
1775
kono
parents:
diff changeset
1776 * pt.c (do_type_instantiation): Only instantiate member functions
kono
parents:
diff changeset
1777 that actually come from templates.
kono
parents:
diff changeset
1778
kono
parents:
diff changeset
1779 Fri May 5 09:46:05 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
1780
kono
parents:
diff changeset
1781 * parse.y: Generalized cleanup of poplevels, and compound statements
kono
parents:
diff changeset
1782 and compound statements in try blocks. Rewritten `for' rule so that
kono
parents:
diff changeset
1783 the scope of variables declared in the for clause is shortened to
kono
parents:
diff changeset
1784 span just to the end of the statement, instead of the whole
kono
parents:
diff changeset
1785 containing block.
kono
parents:
diff changeset
1786
kono
parents:
diff changeset
1787 Fri May 5 00:37:14 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1788
kono
parents:
diff changeset
1789 * call.c (convert_harshness): Handle pointers to members better.
kono
parents:
diff changeset
1790
kono
parents:
diff changeset
1791 Thu May 4 16:00:26 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1792
kono
parents:
diff changeset
1793 * decl2.c (delete_sanity): Do access control here.
kono
parents:
diff changeset
1794 * init.c (build_delete): Instead of here.
kono
parents:
diff changeset
1795
kono
parents:
diff changeset
1796 * Make-lang.in: Build c++filt.
kono
parents:
diff changeset
1797
kono
parents:
diff changeset
1798 Wed May 3 02:59:53 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1799
kono
parents:
diff changeset
1800 * decl2.c (cplus_decl_attributes): If we just modified a TYPE_DECL,
kono
parents:
diff changeset
1801 update our IDENTIFIER_TYPE_VALUE.
kono
parents:
diff changeset
1802
kono
parents:
diff changeset
1803 Fri Apr 28 07:58:41 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1804
kono
parents:
diff changeset
1805 * lex.c (cons_up_default_function): Fix linkage of #pragma
kono
parents:
diff changeset
1806 implemented functions.
kono
parents:
diff changeset
1807
kono
parents:
diff changeset
1808 Thu Apr 27 16:56:24 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1809
kono
parents:
diff changeset
1810 * method.c (build_overload_name): Simplify and fix repeated type
kono
parents:
diff changeset
1811 folding.
kono
parents:
diff changeset
1812
kono
parents:
diff changeset
1813 * decl.c (grokdeclarator): Prohibit pointers to void or reference
kono
parents:
diff changeset
1814 members.
kono
parents:
diff changeset
1815
kono
parents:
diff changeset
1816 Thu Apr 27 09:49:07 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
1817
kono
parents:
diff changeset
1818 * typeck2.c (process_init_constructor): Make sure initializers are
kono
parents:
diff changeset
1819 fully digested.
kono
parents:
diff changeset
1820
kono
parents:
diff changeset
1821 Thu Apr 27 01:11:55 1995 Jason Merrill <jason@python.cygnus.com>
kono
parents:
diff changeset
1822
kono
parents:
diff changeset
1823 * lex.c (cons_up_default_function): Always defer synthesis.
kono
parents:
diff changeset
1824
kono
parents:
diff changeset
1825 Thu Apr 27 00:20:37 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1826
kono
parents:
diff changeset
1827 * decl2.c (mark_inline_for_output): Don't play with pending_inline
kono
parents:
diff changeset
1828 stuff.
kono
parents:
diff changeset
1829
kono
parents:
diff changeset
1830 Wed Apr 26 17:48:24 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1831
kono
parents:
diff changeset
1832 * call.c (user_harshness): New function; like build_type_conversion,
kono
parents:
diff changeset
1833 but doesn't actually build anything.
kono
parents:
diff changeset
1834 (compute_conversion_costs): Use it instead of build_type_conversion.
kono
parents:
diff changeset
1835
kono
parents:
diff changeset
1836 Wed Apr 26 17:11:25 1995 Jason Merrill <jason@deneb.cygnus.com>
kono
parents:
diff changeset
1837
kono
parents:
diff changeset
1838 * typeck.c (build_function_call_real): Improve error message for
kono
parents:
diff changeset
1839 calling a non-function.
kono
parents:
diff changeset
1840
kono
parents:
diff changeset
1841 * method.c (hack_identifier): Lose check for calling a data member.
kono
parents:
diff changeset
1842
kono
parents:
diff changeset
1843 Wed Apr 26 16:59:13 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
1844
kono
parents:
diff changeset
1845 * typeck2.c (build_functional_cast): Remove very old cruft.
kono
parents:
diff changeset
1846 Seems like good code is generated without it.
kono
parents:
diff changeset
1847
kono
parents:
diff changeset
1848 Wed Apr 26 00:47:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1849
kono
parents:
diff changeset
1850 * method.c (do_build_assign_ref): Fix handling of anonymous unions.
kono
parents:
diff changeset
1851 (do_build_copy_constructor): Likewise.
kono
parents:
diff changeset
1852
kono
parents:
diff changeset
1853 * parse.y (simple_stmt, SWITCH): Call {push,pop}_switch.
kono
parents:
diff changeset
1854
kono
parents:
diff changeset
1855 * decl.c (push_switch): New function.
kono
parents:
diff changeset
1856 (pop_switch): Likewise.
kono
parents:
diff changeset
1857 (define_case_label): Check for jumping over initialization.
kono
parents:
diff changeset
1858
kono
parents:
diff changeset
1859 * call.c (build_method_call): Check for an inline function being
kono
parents:
diff changeset
1860 called before its definition has been seen.
kono
parents:
diff changeset
1861 * typeck.c (build_function_call_real): Likewise.
kono
parents:
diff changeset
1862
kono
parents:
diff changeset
1863 * decl.c (duplicate_decls): Check for a function being redeclared
kono
parents:
diff changeset
1864 inline after its address has been taken.
kono
parents:
diff changeset
1865
kono
parents:
diff changeset
1866 * typeck.c (build_conditional_expr): Handle related class lvalues.
kono
parents:
diff changeset
1867
kono
parents:
diff changeset
1868 Tue Apr 25 13:20:45 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1869
kono
parents:
diff changeset
1870 * pt.c (do_pending_expansions): Don't expand unused templates.
kono
parents:
diff changeset
1871
kono
parents:
diff changeset
1872 * parse.y (component_decl): Accept a lone semicolon.
kono
parents:
diff changeset
1873
kono
parents:
diff changeset
1874 Tue Apr 25 00:25:56 1995 Jason Merrill <jason@rtl.cygnus.com>
kono
parents:
diff changeset
1875
kono
parents:
diff changeset
1876 * call.c (build_method_call): Don't allow an RTL_EXPR to serve as the
kono
parents:
diff changeset
1877 object parameter anymore.
kono
parents:
diff changeset
1878
kono
parents:
diff changeset
1879 * expr.c (cplus_expand_expr): Don't create RTL_EXPRs with no insns.
kono
parents:
diff changeset
1880
kono
parents:
diff changeset
1881 Mon Apr 24 12:35:48 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1882
kono
parents:
diff changeset
1883 * parse.y (simple_stmt, decl case): Clear prefix_attributes.
kono
parents:
diff changeset
1884 (lang_extdef): Likewise.
kono
parents:
diff changeset
1885
kono
parents:
diff changeset
1886 * parse.y (maybe_parmlist): New rule for use in declarators where
kono
parents:
diff changeset
1887 this could either be a list of expressions or parameters. Calls
kono
parents:
diff changeset
1888 suspend_momentary before deciding which.
kono
parents:
diff changeset
1889 (direct_after_type_declarator): Use it.
kono
parents:
diff changeset
1890 (complex_direct_notype_declarator): Use it.
kono
parents:
diff changeset
1891
kono
parents:
diff changeset
1892 * pt.c (tsubst): Propagate attributes const and noreturn.
kono
parents:
diff changeset
1893
kono
parents:
diff changeset
1894 * typeck.c (build_modify_expr): If warn_synth, call build_opfncall
kono
parents:
diff changeset
1895 before doing the default thing.
kono
parents:
diff changeset
1896
kono
parents:
diff changeset
1897 Thu Apr 27 21:49:36 1995 Doug Evans <dje@cygnus.com>
kono
parents:
diff changeset
1898
kono
parents:
diff changeset
1899 * typeck.c (common_type): Call lookup_attribute instead of
kono
parents:
diff changeset
1900 value_member.
kono
parents:
diff changeset
1901
kono
parents:
diff changeset
1902 Tue Apr 25 18:07:43 1995 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
kono
parents:
diff changeset
1903
kono
parents:
diff changeset
1904 * Make-lang.in: Change "realclean" to "maintainer-clean".
kono
parents:
diff changeset
1905
kono
parents:
diff changeset
1906 Sun Apr 23 12:32:38 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
1907
kono
parents:
diff changeset
1908 * decl2.c (finish_file): Fix broken linked list handling.
kono
parents:
diff changeset
1909
kono
parents:
diff changeset
1910 Fri Apr 21 18:08:43 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1911
kono
parents:
diff changeset
1912 * class.c (finish_base_struct): Don't set TYPE_HAS_COMPLEX_*_REF
kono
parents:
diff changeset
1913 as often.
kono
parents:
diff changeset
1914 (finish_struct): Likewise.
kono
parents:
diff changeset
1915
kono
parents:
diff changeset
1916 * various: Use TYPE_HAS_TRIVIAL_* instead of TYPE_HAS_COMPLEX_*.
kono
parents:
diff changeset
1917
kono
parents:
diff changeset
1918 * cp-tree.h (TYPE_HAS_TRIVIAL_INIT_REF): New macro.
kono
parents:
diff changeset
1919 (TYPE_HAS_TRIVIAL_ASSIGN_REF): New macro.
kono
parents:
diff changeset
1920
kono
parents:
diff changeset
1921 Fri Apr 21 15:52:22 1995 Jason Merrill <jason@python.cygnus.com>
kono
parents:
diff changeset
1922
kono
parents:
diff changeset
1923 * typeck.c (c_expand_return): Only expand a returned TARGET_EXPR if
kono
parents:
diff changeset
1924 it is of the same type as the return value.
kono
parents:
diff changeset
1925
kono
parents:
diff changeset
1926 Fri Apr 21 03:01:46 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1927
kono
parents:
diff changeset
1928 * decl2.c (finish_file): Reconsider if synthesizing a method wrote
kono
parents:
diff changeset
1929 out its assembly.
kono
parents:
diff changeset
1930
kono
parents:
diff changeset
1931 * typeck.c (convert_for_initialization): Don't call a trivial copy
kono
parents:
diff changeset
1932 constructor.
kono
parents:
diff changeset
1933
kono
parents:
diff changeset
1934 * typeck2.c (store_init_value): Only abort if the type has a
kono
parents:
diff changeset
1935 non-trivial copy constructor.
kono
parents:
diff changeset
1936
kono
parents:
diff changeset
1937 * typeck.c (c_expand_return): If we're returning in a register and
kono
parents:
diff changeset
1938 the return value is a TARGET_EXPR, expand it. Only do
kono
parents:
diff changeset
1939 expand_aggr_init if we're returning in memory.
kono
parents:
diff changeset
1940 (expand_target_expr): Function to expand a TARGET_EXPR.
kono
parents:
diff changeset
1941 (build_modify_expr): Use it.
kono
parents:
diff changeset
1942
kono
parents:
diff changeset
1943 * tree.c (build_cplus_new): Layout the slot.
kono
parents:
diff changeset
1944
kono
parents:
diff changeset
1945 * expr.c (cplus_expand_expr): Use expand_call to expand the call
kono
parents:
diff changeset
1946 under a NEW_EXPR, so the target is not discarded.
kono
parents:
diff changeset
1947
kono
parents:
diff changeset
1948 Thu Apr 20 14:59:31 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
1949
kono
parents:
diff changeset
1950 * gc.c (build_dynamic_cast): Tighten error checking.
kono
parents:
diff changeset
1951
kono
parents:
diff changeset
1952 Thu Apr 20 11:23:54 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1953
kono
parents:
diff changeset
1954 * expr.c (cplus_expand_expr): Only abort if the returned target is
kono
parents:
diff changeset
1955 different from what we expected if the type has a non-trivial copy
kono
parents:
diff changeset
1956 constructor.
kono
parents:
diff changeset
1957
kono
parents:
diff changeset
1958 * decl2.c (cplus_decl_attributes): Attributes applied to a template
kono
parents:
diff changeset
1959 really apply to the template's result.
kono
parents:
diff changeset
1960
kono
parents:
diff changeset
1961 * tree.c (lvalue_p): Check IS_AGGR_TYPE instead of TREE_ADDRESSABLE
kono
parents:
diff changeset
1962 to decide whether to consider a CALL_EXPR an lvalue.
kono
parents:
diff changeset
1963
kono
parents:
diff changeset
1964 * class.c (finish_struct_bits): Only set TREE_ADDRESSABLE if the
kono
parents:
diff changeset
1965 type has a non-trivial copy constructor.
kono
parents:
diff changeset
1966
kono
parents:
diff changeset
1967 * decl.c (start_function): If interface_known, unset
kono
parents:
diff changeset
1968 DECL_NOT_REALLY_EXTERN on the function.
kono
parents:
diff changeset
1969
kono
parents:
diff changeset
1970 Wed Apr 19 16:53:13 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1971
kono
parents:
diff changeset
1972 * pt.c (do_function_instantiation): Handle explicit instantiation of
kono
parents:
diff changeset
1973 member functions.
kono
parents:
diff changeset
1974 (do_type_instantiation): Handle 'inline template class foo<int>',
kono
parents:
diff changeset
1975 meaning just spit out the vtable.
kono
parents:
diff changeset
1976
kono
parents:
diff changeset
1977 * lex.c (cons_up_default_function): Set DECL_NOT_REALLY_EXTERN on
kono
parents:
diff changeset
1978 the consed functions.
kono
parents:
diff changeset
1979
kono
parents:
diff changeset
1980 * decl2.c (import_export_inline): Set DECL_INTERFACE_KNOWN.
kono
parents:
diff changeset
1981
kono
parents:
diff changeset
1982 Wed Apr 19 16:28:17 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
1983
kono
parents:
diff changeset
1984 * call.c, class.c, decl2.c, gc.c, init.c, parse.y, pt.c, search.c,
kono
parents:
diff changeset
1985 typeck.c: Include output.h.
kono
parents:
diff changeset
1986
kono
parents:
diff changeset
1987 Wed Apr 19 14:57:21 1995 Gerald Baumgartner <gb@alexander.cs.purdue.edu>
kono
parents:
diff changeset
1988
kono
parents:
diff changeset
1989 * call.c (build_method_call): Allow a signature member functions to
kono
parents:
diff changeset
1990 be called from a default implementation.
kono
parents:
diff changeset
1991
kono
parents:
diff changeset
1992 Wed Apr 19 10:21:17 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
1993
kono
parents:
diff changeset
1994 * repo.c (finish_repo): Remember what directory we are in.
kono
parents:
diff changeset
1995
kono
parents:
diff changeset
1996 * search.c (expand_upcast_fixups): Don't mess with abort_fndecl.
kono
parents:
diff changeset
1997
kono
parents:
diff changeset
1998 * repo.c: Use obstacks instead of fixed-size buffers. Don't spit
kono
parents:
diff changeset
1999 out the second copy of the symbol name. Don't remember COLLECT_GCC.
kono
parents:
diff changeset
2000
kono
parents:
diff changeset
2001 Wed Apr 19 02:32:40 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
2002
kono
parents:
diff changeset
2003 * search.c (virtual_context): New function to get the virtual
kono
parents:
diff changeset
2004 context of a function.
kono
parents:
diff changeset
2005 (expand_upcast_fixups): New function to generate runtime vtables.
kono
parents:
diff changeset
2006 (fixup_virtual_upcast_offsets): Likewise.
kono
parents:
diff changeset
2007 (expand_indirect_vtbls_init): Use fixup_virtual_upcast_offsets to
kono
parents:
diff changeset
2008 ensure that the this offsets for upcasts from virtual bases into
kono
parents:
diff changeset
2009 other virtual bases or non-virtual bases are correct at construction
kono
parents:
diff changeset
2010 time and destruction time.
kono
parents:
diff changeset
2011 * class.c (fixup_vtable_deltas): Modify to fixup all offsets in all
kono
parents:
diff changeset
2012 vtables in all virtual bases, instead of just one vtable in each
kono
parents:
diff changeset
2013 virtual base.
kono
parents:
diff changeset
2014 (fixup_vtable_deltas1): Likewise.
kono
parents:
diff changeset
2015
kono
parents:
diff changeset
2016 Tue Apr 18 03:57:35 1995 Michael Meissner <meissner@cygnus.com>
kono
parents:
diff changeset
2017
kono
parents:
diff changeset
2018 * Makefile.in (lex.o): Add dependency on c-pragma.h.
kono
parents:
diff changeset
2019
kono
parents:
diff changeset
2020 * lex.c (handle_sysv_pragma): Use NULL_PTR and NULL_TREE as
kono
parents:
diff changeset
2021 appropriate, instead of 0.
kono
parents:
diff changeset
2022
kono
parents:
diff changeset
2023 Mon Apr 17 12:28:42 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2024
kono
parents:
diff changeset
2025 * decl.c (pushdecl): Use decls_match, not duplicate_decls, for
kono
parents:
diff changeset
2026 comparing local and global decls.
kono
parents:
diff changeset
2027
kono
parents:
diff changeset
2028 Fri Apr 14 01:46:52 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2029
kono
parents:
diff changeset
2030 * typeck.c (convert_arguments): Only prohibit passing to ... of
kono
parents:
diff changeset
2031 types with non-trivial copy constructors.
kono
parents:
diff changeset
2032
kono
parents:
diff changeset
2033 * repo.c (repo_template_used): Don't try to mess with no id.
kono
parents:
diff changeset
2034
kono
parents:
diff changeset
2035 Fri Apr 14 23:32:50 1995 Per Bothner <bothner@rtl.cygnus.com>
kono
parents:
diff changeset
2036
kono
parents:
diff changeset
2037 * decl.c (duplicate_decls): Use cp_warning_at for redundant-decls.
kono
parents:
diff changeset
2038
kono
parents:
diff changeset
2039 Thu Apr 13 15:37:42 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
2040
kono
parents:
diff changeset
2041 * cp-tree.h (current_tinst_level): Delete declaration, since it's
kono
parents:
diff changeset
2042 static inside pt.c.
kono
parents:
diff changeset
2043
kono
parents:
diff changeset
2044 * typeck.c (build_modify_expr): Catch incompatible array assignment.
kono
parents:
diff changeset
2045
kono
parents:
diff changeset
2046 * parse.y (attribute_list, attrib): Rewrite actions to feed the
kono
parents:
diff changeset
2047 right stuff to decl_attributes.
kono
parents:
diff changeset
2048
kono
parents:
diff changeset
2049 Thu Apr 13 11:24:10 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2050
kono
parents:
diff changeset
2051 * search.c (dfs_debug_mark): Check for magic virtual like
kono
parents:
diff changeset
2052 import_export_vtable.
kono
parents:
diff changeset
2053
kono
parents:
diff changeset
2054 * typeck.c (build_binary_op_nodefault): Don't call cp_pedwarn with
kono
parents:
diff changeset
2055 four args.
kono
parents:
diff changeset
2056
kono
parents:
diff changeset
2057 Wed Apr 12 12:02:57 1995 Jason Merrill <jason@deneb.cygnus.com>
kono
parents:
diff changeset
2058
kono
parents:
diff changeset
2059 * decl2.c (finish_file): Move prevtable pass before needs_messing_up
kono
parents:
diff changeset
2060 decision.
kono
parents:
diff changeset
2061
kono
parents:
diff changeset
2062 Tue Apr 11 11:20:27 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2063
kono
parents:
diff changeset
2064 * decl.c (finish_decl): If we're writing out a static data member of
kono
parents:
diff changeset
2065 a class, we want the debug info for that class.
kono
parents:
diff changeset
2066
kono
parents:
diff changeset
2067 * gc.c (build_t_desc): Check linkage of a class properly.
kono
parents:
diff changeset
2068
kono
parents:
diff changeset
2069 * class.c (finish_struct): Set the 'headof' offset for the main
kono
parents:
diff changeset
2070 vtable properly.
kono
parents:
diff changeset
2071 (prepare_fresh_vtable): Fix typeinfo pointer here.
kono
parents:
diff changeset
2072 (modify_one_vtable): Instead of here.
kono
parents:
diff changeset
2073
kono
parents:
diff changeset
2074 Mon Apr 10 12:15:59 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2075
kono
parents:
diff changeset
2076 * repo.c (repo_get_id): New function to return the interesting
kono
parents:
diff changeset
2077 identifier for a repo entity.
kono
parents:
diff changeset
2078 (repo_template_used): Use it.
kono
parents:
diff changeset
2079 (repo_template_instantiated): Mark the id as chosen.
kono
parents:
diff changeset
2080 (init_repo): Record whether or not the id was chosen.
kono
parents:
diff changeset
2081 (finish_repo): Note if an id was newly chosen.
kono
parents:
diff changeset
2082
kono
parents:
diff changeset
2083 * pt.c (do_function_instantiation): Call repo_template_instantiated.
kono
parents:
diff changeset
2084 (do_type_instantiation): Likewise. Don't diagnose multiple
kono
parents:
diff changeset
2085 instantiation.
kono
parents:
diff changeset
2086
kono
parents:
diff changeset
2087 * decl2.c (finish_file): Use DECL_NOT_REALLY_EXTERN when deciding
kono
parents:
diff changeset
2088 whether or not to synthesize a method.
kono
parents:
diff changeset
2089
kono
parents:
diff changeset
2090 Undo these changes:
kono
parents:
diff changeset
2091 * class.c (finish_vtbls): Build more vtables if flag_rtti is on.
kono
parents:
diff changeset
2092 * class.c (modify_all_direct_vtables): Likewise.
kono
parents:
diff changeset
2093 * init.c (expand_direct_vtbls_init): Expand more vtables if
kono
parents:
diff changeset
2094 flag_rtti is on.
kono
parents:
diff changeset
2095
kono
parents:
diff changeset
2096 Sat Apr 8 17:45:41 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
2097
kono
parents:
diff changeset
2098 * gc.c (build_headof): Use ptrdiff_type_node instead of
kono
parents:
diff changeset
2099 integer_type_node on pointer arithmetic.
kono
parents:
diff changeset
2100
kono
parents:
diff changeset
2101 Sat Apr 8 11:57:04 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2102
kono
parents:
diff changeset
2103 * typeck.c (build_modify_expr): Undo previous change.
kono
parents:
diff changeset
2104
kono
parents:
diff changeset
2105 Thu Apr 6 01:23:50 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2106
kono
parents:
diff changeset
2107 * Makefile.in (compiler): Remove ../cc1plus before rebuilding it.
kono
parents:
diff changeset
2108
kono
parents:
diff changeset
2109 * repo.c (get_base_filename): Put the .rpo file in the directory
kono
parents:
diff changeset
2110 with the object file, not the source.
kono
parents:
diff changeset
2111
kono
parents:
diff changeset
2112 * typeck.c (build_conditional_expr): Handle pmf's better.
kono
parents:
diff changeset
2113
kono
parents:
diff changeset
2114 * repo.c (finish_repo): Also use ASM_OUTPUT_LABELREF to print out
kono
parents:
diff changeset
2115 the name of the symbol.
kono
parents:
diff changeset
2116
kono
parents:
diff changeset
2117 Wed Apr 5 15:24:12 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2118
kono
parents:
diff changeset
2119 * repo.c (open_repo_file): Make repo filename DOS-compliant.
kono
parents:
diff changeset
2120 (*): Also write a new repo file if some previously-used
kono
parents:
diff changeset
2121 templates are no longer used. Only remember the identifier.
kono
parents:
diff changeset
2122
kono
parents:
diff changeset
2123 * lex.c (cons_up_default_function): If this function belongs to a
kono
parents:
diff changeset
2124 template class, call repo_template_used for it.
kono
parents:
diff changeset
2125
kono
parents:
diff changeset
2126 * repo.c (repo_template_used): Using a class means using its vtable,
kono
parents:
diff changeset
2127 if any.
kono
parents:
diff changeset
2128 (finish_repo): Likewise.
kono
parents:
diff changeset
2129
kono
parents:
diff changeset
2130 * typeck.c (build_modify_expr): Only wrap TARGET_EXPRs in RTL_EXPRs
kono
parents:
diff changeset
2131 if the type has a complex copy constructor.
kono
parents:
diff changeset
2132
kono
parents:
diff changeset
2133 * decl2.c (lang_decode_option): -frepo implies
kono
parents:
diff changeset
2134 -fno-implicit-templates.
kono
parents:
diff changeset
2135
kono
parents:
diff changeset
2136 * decl.c (start_function): Clear current_{base,member}_init_list.
kono
parents:
diff changeset
2137
kono
parents:
diff changeset
2138 * lex.c (init_lex): Also unset *_eq if ! flag_operator_names.
kono
parents:
diff changeset
2139
kono
parents:
diff changeset
2140 Tue Apr 4 16:11:08 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2141
kono
parents:
diff changeset
2142 * decl.c (struct cp_function): Add {base,member}_init_list.
kono
parents:
diff changeset
2143 (push_cp_function_context): Save current_{base,member}_init_list.
kono
parents:
diff changeset
2144 (pop_cp_function_context): Restore them.
kono
parents:
diff changeset
2145
kono
parents:
diff changeset
2146 Mon Apr 3 16:55:08 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2147
kono
parents:
diff changeset
2148 * repo.c (get_base_filename): Take filename parm, fix logic bug.
kono
parents:
diff changeset
2149
kono
parents:
diff changeset
2150 * typeck.c (build_compound_expr): Do not warn about a compound expr
kono
parents:
diff changeset
2151 in which the first expression has no side effects.
kono
parents:
diff changeset
2152 (build_x_compound_expr): Warn here instead.
kono
parents:
diff changeset
2153 (build_conditional_expr): Don't warn about a conditional expression
kono
parents:
diff changeset
2154 between an enum and the type it promotes to.
kono
parents:
diff changeset
2155
kono
parents:
diff changeset
2156 * init.c (build_new): Handle initialization of arrays of builtins
kono
parents:
diff changeset
2157 properly.
kono
parents:
diff changeset
2158
kono
parents:
diff changeset
2159 Mon Apr 3 15:08:04 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
2160
kono
parents:
diff changeset
2161 * repo.c: Include config.h to get definitions of bcopy and rindex
kono
parents:
diff changeset
2162 on systems that don't have them (e.g., SVR4).
kono
parents:
diff changeset
2163
kono
parents:
diff changeset
2164 Mon Apr 3 14:41:55 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
2165
kono
parents:
diff changeset
2166 * decl2.c (finish_table): Pass NULL_TREE instead of init to
kono
parents:
diff changeset
2167 finish_decl so that it won't try and do error checking on the
kono
parents:
diff changeset
2168 initializer.
kono
parents:
diff changeset
2169
kono
parents:
diff changeset
2170 Mon Apr 3 10:45:50 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2171
kono
parents:
diff changeset
2172 * repo.c (get_base_filename): Analyze COLLECT_GCC_OPTIONS to
kono
parents:
diff changeset
2173 determine whether this compile used -c -o.
kono
parents:
diff changeset
2174 (open_repo_file): Use get_base_filename. Remove the extension.
kono
parents:
diff changeset
2175 (finish_repo): Spit out the values of main_input_filename,
kono
parents:
diff changeset
2176 COLLECT_GCC and COLLECT_GCC_OPTIONS.
kono
parents:
diff changeset
2177
kono
parents:
diff changeset
2178 * parse.y (structsp): Add TYPENAME_KEYWORD complex_type_name.
kono
parents:
diff changeset
2179
kono
parents:
diff changeset
2180 Sun Apr 2 23:43:51 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2181
kono
parents:
diff changeset
2182 * search.c (compute_access): Don't try to do access control on
kono
parents:
diff changeset
2183 nested types.
kono
parents:
diff changeset
2184
kono
parents:
diff changeset
2185 Fri Mar 31 10:14:23 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2186
kono
parents:
diff changeset
2187 * repo.c: New file to handle things repo.
kono
parents:
diff changeset
2188
kono
parents:
diff changeset
2189 * pt.c (instantiate_template): Call repo_template_used if the
kono
parents:
diff changeset
2190 definition is accessible.
kono
parents:
diff changeset
2191 (mark_function_instantiated): Split out from
kono
parents:
diff changeset
2192 do_function_instantiation.
kono
parents:
diff changeset
2193 (mark_class_instantiated): Split out from do_type_instantiation.
kono
parents:
diff changeset
2194
kono
parents:
diff changeset
2195 * parse.y (template_instantiate_once): Call repo_template_used.
kono
parents:
diff changeset
2196
kono
parents:
diff changeset
2197 * lex.c (lang_init): Call init_repo.
kono
parents:
diff changeset
2198
kono
parents:
diff changeset
2199 * decl2.c: Handle flag_use_repository.
kono
parents:
diff changeset
2200 (finish_file): Call finish_repo.
kono
parents:
diff changeset
2201
kono
parents:
diff changeset
2202 * decl.c (start_method): Call repo_template_used if this is a
kono
parents:
diff changeset
2203 template method.
kono
parents:
diff changeset
2204
kono
parents:
diff changeset
2205 * Makefile.in (CXX_OBJS): Add repo.o.
kono
parents:
diff changeset
2206 (repo.o): Add dependencies.
kono
parents:
diff changeset
2207
kono
parents:
diff changeset
2208 * Make-lang.in (CXX_SRCS): Add repo.c.
kono
parents:
diff changeset
2209
kono
parents:
diff changeset
2210 * decl.c (start_function): If DECL_INTERFACE_KNOWN and
kono
parents:
diff changeset
2211 DECL_NOT_REALLY_EXTERN are both set, unset DECL_EXTERNAL.
kono
parents:
diff changeset
2212
kono
parents:
diff changeset
2213 * typeck.c (build_binary_op_nodefault): Identify the invalid operand
kono
parents:
diff changeset
2214 types used.
kono
parents:
diff changeset
2215
kono
parents:
diff changeset
2216 * decl.c (duplicate_decls): Propagate DECL_NOT_REALLY_EXTERN.
kono
parents:
diff changeset
2217
kono
parents:
diff changeset
2218 Thu Mar 30 17:54:42 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2219
kono
parents:
diff changeset
2220 * typeck.c (build_binary_op_nodefault): Tidy up use of build_type
kono
parents:
diff changeset
2221 and result_type. When checking for comparison between signed
kono
parents:
diff changeset
2222 and unsigned, use result_type rather than the (possibly shortened)
kono
parents:
diff changeset
2223 type of op0. Also, don't warn about equality comparison of a
kono
parents:
diff changeset
2224 signed operand to an unsigned constant that fits in the signed
kono
parents:
diff changeset
2225 type.
kono
parents:
diff changeset
2226
kono
parents:
diff changeset
2227 * method.c (do_build_copy_constructor): Reverse
kono
parents:
diff changeset
2228 current_base_init_list after we've built it up.
kono
parents:
diff changeset
2229
kono
parents:
diff changeset
2230 Thu Mar 30 14:35:18 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
2231
kono
parents:
diff changeset
2232 * except.c (build_throw): Never warn about the value of throw not
kono
parents:
diff changeset
2233 being used.
kono
parents:
diff changeset
2234
kono
parents:
diff changeset
2235 Thu Mar 30 13:16:54 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
2236
kono
parents:
diff changeset
2237 * except.c (expand_start_catch_block): Check for bad catch parameter
kono
parents:
diff changeset
2238 declarations.
kono
parents:
diff changeset
2239
kono
parents:
diff changeset
2240 Thu Mar 30 13:06:11 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2241
kono
parents:
diff changeset
2242 * decl.c (finish_function): Only set DECL_NOT_REALLY_EXTERN if
kono
parents:
diff changeset
2243 DECL_EXTERNAL is not already set.
kono
parents:
diff changeset
2244
kono
parents:
diff changeset
2245 Thu Mar 30 11:26:24 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
2246
kono
parents:
diff changeset
2247 * method.c (emit_thunk): Let poplevel know that the last level is
kono
parents:
diff changeset
2248 for a function so it can create a BLOCK_NODE and set DECL_INITIAL.
kono
parents:
diff changeset
2249
kono
parents:
diff changeset
2250 Thu Mar 30 11:15:06 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2251
kono
parents:
diff changeset
2252 * decl2.c (import_export_inline): Don't set DECL_NOT_REALLY_EXTERN
kono
parents:
diff changeset
2253 here.
kono
parents:
diff changeset
2254
kono
parents:
diff changeset
2255 * decl.c (grokdeclarator): OK, don't abort if we see a decl with
kono
parents:
diff changeset
2256 METHOD_TYPE.
kono
parents:
diff changeset
2257 (finish_function): Set DECL_EXTERNAL and DECL_NOT_REALLY_EXTERN on
kono
parents:
diff changeset
2258 all deferred inlines.
kono
parents:
diff changeset
2259
kono
parents:
diff changeset
2260 Wed Mar 29 19:35:02 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2261
kono
parents:
diff changeset
2262 * cp-tree.h (DECL_THIS_INLINE): New macro.
kono
parents:
diff changeset
2263 (DECL_NOT_REALLY_EXTERN): New macro.
kono
parents:
diff changeset
2264 (DECL_THIS_STATIC): New macro.
kono
parents:
diff changeset
2265
kono
parents:
diff changeset
2266 * decl.c: Lose all references to current_extern_inline. Break
kono
parents:
diff changeset
2267 inline semantics into DECL_INLINE for actual inlining and
kono
parents:
diff changeset
2268 DECL_THIS_INLINE for the linkage wierdness. Use DECL_THIS_STATIC.
kono
parents:
diff changeset
2269 * decl2.c: Use DECL_NOT_REALLY_EXTERN to indicate that we want to
kono
parents:
diff changeset
2270 emit an inline here. Associated changes.
kono
parents:
diff changeset
2271 * lex.c: Likewise.
kono
parents:
diff changeset
2272 * pt.c: Likewise.
kono
parents:
diff changeset
2273 * typeck.c: Likewise.
kono
parents:
diff changeset
2274
kono
parents:
diff changeset
2275 * call.c (build_method_call): Don't bother trying to handle inlines
kono
parents:
diff changeset
2276 specially.
kono
parents:
diff changeset
2277 * cvt.c (convert_to_aggr): Likewise.
kono
parents:
diff changeset
2278
kono
parents:
diff changeset
2279 * pt.c (do_function_instantiation): Handle instantiation of
kono
parents:
diff changeset
2280 public inlines, too.
kono
parents:
diff changeset
2281
kono
parents:
diff changeset
2282 Wed Mar 29 16:04:25 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
2283
kono
parents:
diff changeset
2284 * except.c (init_exception_processing): Change the interface for
kono
parents:
diff changeset
2285 __throw_type_match and add decl for new rtti matching routine
kono
parents:
diff changeset
2286 __throw_type_match_rtti.
kono
parents:
diff changeset
2287 (build_eh_type): New routine to build a run time descriptor for the
kono
parents:
diff changeset
2288 expression given.
kono
parents:
diff changeset
2289 (expand_start_catch_block): Update to use new calling convention for
kono
parents:
diff changeset
2290 the matcher.
kono
parents:
diff changeset
2291 (expand_throw): Update to use build_eh_type.
kono
parents:
diff changeset
2292
kono
parents:
diff changeset
2293 Mon Mar 27 07:14:33 1995 Warner Losh <imp@village.org>
kono
parents:
diff changeset
2294
kono
parents:
diff changeset
2295 * g++.c: Removed __NetBSD__ from conditional.
kono
parents:
diff changeset
2296 Declare strerror if HAVE_STRERROR is defined; otherwise
kono
parents:
diff changeset
2297 declare sys_errlist and sys_nerr.
kono
parents:
diff changeset
2298 (my_strerror): New function.
kono
parents:
diff changeset
2299
kono
parents:
diff changeset
2300 Tue Mar 28 14:16:35 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2301
kono
parents:
diff changeset
2302 * search.c (get_binfo): Don't try to be so clever.
kono
parents:
diff changeset
2303
kono
parents:
diff changeset
2304 * tree.c (copy_to_permanent): Also suspend_momentary().
kono
parents:
diff changeset
2305
kono
parents:
diff changeset
2306 * cvt.c (cp_convert_to_pointer): Hand off to convert_fn_pointer even
kono
parents:
diff changeset
2307 if the types are the same.
kono
parents:
diff changeset
2308
kono
parents:
diff changeset
2309 * decl.c (start_function): Handle extern inlines more like C++ says
kono
parents:
diff changeset
2310 we should.
kono
parents:
diff changeset
2311
kono
parents:
diff changeset
2312 * init.c (build_member_call): Hand constructor calls off to
kono
parents:
diff changeset
2313 build_functional_cast.
kono
parents:
diff changeset
2314
kono
parents:
diff changeset
2315 * typeck2.c (build_functional_cast): Use DECL_NESTED_TYPENAME to get
kono
parents:
diff changeset
2316 the name of the type.
kono
parents:
diff changeset
2317
kono
parents:
diff changeset
2318 Tue Mar 28 13:13:56 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
2319
kono
parents:
diff changeset
2320 * decl.c (grokdeclarator): Check for the decl returned by
kono
parents:
diff changeset
2321 grokfndecl to be null before using build_decl_attribute_variant.
kono
parents:
diff changeset
2322
kono
parents:
diff changeset
2323 Mon Mar 27 18:04:41 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
2324
kono
parents:
diff changeset
2325 * init.c (build_new): Use build_pointer_type instead of
kono
parents:
diff changeset
2326 TYPE_POINTER_TO.
kono
parents:
diff changeset
2327
kono
parents:
diff changeset
2328 Fri Mar 24 12:11:24 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2329
kono
parents:
diff changeset
2330 * typeck.c (build_conditional_expr): Handle pmfs.
kono
parents:
diff changeset
2331 (convert_for_assignment): Fix pmf support.
kono
parents:
diff changeset
2332
kono
parents:
diff changeset
2333 * cvt.c (convert_fn_ptr): Support !flag_vtable_thunks.
kono
parents:
diff changeset
2334 (cp_convert_to_pointer): Handle pmfs.
kono
parents:
diff changeset
2335 (cp_convert): Pass pmfs to cp_convert_to_pointer.
kono
parents:
diff changeset
2336
kono
parents:
diff changeset
2337 * typeck.c (common_type): Handle inheritance for pmfs.
kono
parents:
diff changeset
2338
kono
parents:
diff changeset
2339 * typeck2.c (build_m_component_ref): Do access control.
kono
parents:
diff changeset
2340
kono
parents:
diff changeset
2341 * typeck.c (comp_target_types): Check for conversion to void *
kono
parents:
diff changeset
2342 before checking trickier conversions.
kono
parents:
diff changeset
2343
kono
parents:
diff changeset
2344 * decl.c (duplicate_decls): Propagate DECL_ABSTRACT_VIRTUAL_P.
kono
parents:
diff changeset
2345
kono
parents:
diff changeset
2346 * pt.c (push_tinst_level): Complain if template instantiation depth
kono
parents:
diff changeset
2347 is greater than max_tinst_depth.
kono
parents:
diff changeset
2348
kono
parents:
diff changeset
2349 * typeck.c (common_type): Assume that we can call common_type to
kono
parents:
diff changeset
2350 unify the target type of a pointer.
kono
parents:
diff changeset
2351
kono
parents:
diff changeset
2352 Thu Mar 23 00:48:44 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2353
kono
parents:
diff changeset
2354 * decl2.c (finish_file): Don't synthesize methods at
kono
parents:
diff changeset
2355 finish_vtable_prevardecl time. Do synthesize methods that are not
kono
parents:
diff changeset
2356 used, but are public and not external.
kono
parents:
diff changeset
2357
kono
parents:
diff changeset
2358 * cvt.c (build_type_conversion): Only give an error if for_sure.
kono
parents:
diff changeset
2359
kono
parents:
diff changeset
2360 * typeck.c (comp_target_types): Only support pointer conversions if
kono
parents:
diff changeset
2361 nptrs > 0.
kono
parents:
diff changeset
2362
kono
parents:
diff changeset
2363 Wed Mar 22 19:30:15 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
2364
kono
parents:
diff changeset
2365 * init.c (build_new): Catch use of an initializer list where it
kono
parents:
diff changeset
2366 shouldn't be.
kono
parents:
diff changeset
2367
kono
parents:
diff changeset
2368 Wed Mar 22 16:21:07 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2369
kono
parents:
diff changeset
2370 * init.c (build_new): Wrap alloc_expr in an RTL_EXPR if nelts is
kono
parents:
diff changeset
2371 non-constant.
kono
parents:
diff changeset
2372
kono
parents:
diff changeset
2373 * decl2.c: temp_name_counter is now public.
kono
parents:
diff changeset
2374
kono
parents:
diff changeset
2375 * decl.c (struct cp_function): Add temp_name_counter field.
kono
parents:
diff changeset
2376 (push_cp_function_context): Save it.
kono
parents:
diff changeset
2377 (pop_cp_function_context): Restore it.
kono
parents:
diff changeset
2378
kono
parents:
diff changeset
2379 * typeck.c (common_type): Handle unifying function types, and unify
kono
parents:
diff changeset
2380 unmatched things to void* with a compiler_error, rather than
kono
parents:
diff changeset
2381 silently like before.
kono
parents:
diff changeset
2382
kono
parents:
diff changeset
2383 Wed Mar 22 15:10:34 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
2384
kono
parents:
diff changeset
2385 * decl2.c (finish_prevtable_vardecl, finish_vtable_vardecl): Revert
kono
parents:
diff changeset
2386 Brendan's last change and fix latent problem that causes TD entries
kono
parents:
diff changeset
2387 to not come out when the things that need them has yet to be
kono
parents:
diff changeset
2388 expanded.
kono
parents:
diff changeset
2389
kono
parents:
diff changeset
2390 Wed Mar 22 15:12:00 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2391
kono
parents:
diff changeset
2392 * typeck.c (build_binary_op_nodefault, comparison ops): Update type0
kono
parents:
diff changeset
2393 and type1, since we might have changed op0 or op1.
kono
parents:
diff changeset
2394
kono
parents:
diff changeset
2395 Wed Mar 22 13:33:45 1995 Jason Merrill <jason@python.cygnus.com>
kono
parents:
diff changeset
2396
kono
parents:
diff changeset
2397 * typeck.c (common_type): Don't mess up templates.
kono
parents:
diff changeset
2398
kono
parents:
diff changeset
2399 Wed Mar 22 04:56:00 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2400
kono
parents:
diff changeset
2401 * typeck.c (common_type): Handle ptms properly. Also handle
kono
parents:
diff changeset
2402 T* -> void*.
kono
parents:
diff changeset
2403 (build_binary_op_nodefault): New variable build_type controls what
kono
parents:
diff changeset
2404 type is given to the expression when it is created. Set this to
kono
parents:
diff changeset
2405 boolean_type_node for comparison ops instead of using result_type.
kono
parents:
diff changeset
2406 (comp_target_types): Allow T * -> void *.
kono
parents:
diff changeset
2407
kono
parents:
diff changeset
2408 * cvt.c (cp_convert_to_pointer): Do access control when converting
kono
parents:
diff changeset
2409 ptms, too.
kono
parents:
diff changeset
2410
kono
parents:
diff changeset
2411 Tue Mar 21 17:25:06 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
2412
kono
parents:
diff changeset
2413 * parse.y (extern_lang_string): Catch use of linkage specs that
kono
parents:
diff changeset
2414 aren't all naming the same language.
kono
parents:
diff changeset
2415
kono
parents:
diff changeset
2416 * class.c (finish_struct): Delete accidental duplicate code.
kono
parents:
diff changeset
2417
kono
parents:
diff changeset
2418 Tue Mar 21 14:00:57 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2419
kono
parents:
diff changeset
2420 * typeck.c (build_binary_op_nodefault): Disable pedwarns about
kono
parents:
diff changeset
2421 comparing functions and incomplete types.
kono
parents:
diff changeset
2422
kono
parents:
diff changeset
2423 * decl.c (finish_function): Only unset current_function_decl if
kono
parents:
diff changeset
2424 !nested.
kono
parents:
diff changeset
2425 (duplicate_decls): Last change went too far; we only want to stop
kono
parents:
diff changeset
2426 checking for value/reference ambiguity.
kono
parents:
diff changeset
2427
kono
parents:
diff changeset
2428 Tue Mar 21 01:26:39 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
2429
kono
parents:
diff changeset
2430 * gc.c (build_generic_desc): Zap the DECL_SIZE so that we can lay it
kono
parents:
diff changeset
2431 out fresh, as the new type may be larger.
kono
parents:
diff changeset
2432
kono
parents:
diff changeset
2433 Mon Mar 20 19:01:10 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2434
kono
parents:
diff changeset
2435 * expr.c (extract_init): Try to expand the RTL for the
kono
parents:
diff changeset
2436 initialization and figure out what it will look like so we can avoid
kono
parents:
diff changeset
2437 run-time initialization. Disabled for now.
kono
parents:
diff changeset
2438 (extract_scalar_init): Helper for scalar initialization.
kono
parents:
diff changeset
2439 (extract_aggr_init): Helper for aggregate initialization.
kono
parents:
diff changeset
2440
kono
parents:
diff changeset
2441 * decl.c (duplicate_decls): Don't complain about ambiguous
kono
parents:
diff changeset
2442 declarations.
kono
parents:
diff changeset
2443 (obscure_complex_init): Now returns a tree. Call extract_init if
kono
parents:
diff changeset
2444 we're optimizing and this is a toplevel decl.
kono
parents:
diff changeset
2445 (finish_decl): Update accordingly.
kono
parents:
diff changeset
2446
kono
parents:
diff changeset
2447 * lex.c (check_newline): If we're just changing files (not pushing
kono
parents:
diff changeset
2448 or popping), update input_file_stack->name.
kono
parents:
diff changeset
2449
kono
parents:
diff changeset
2450 Mon Mar 20 17:55:04 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
2451
kono
parents:
diff changeset
2452 * pt.c (type_unification): Only TEMPLATE_DECLs are handled right now
kono
parents:
diff changeset
2453 in the transitive unification code.
kono
parents:
diff changeset
2454
kono
parents:
diff changeset
2455 Mon Mar 20 16:07:50 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
2456
kono
parents:
diff changeset
2457 * decl.c (shadow_tag): Don't allow inline, virtual, or explicit on
kono
parents:
diff changeset
2458 non-functions.
kono
parents:
diff changeset
2459 (grokdeclarator): Don't allow friends to be defined in local classes.
kono
parents:
diff changeset
2460
kono
parents:
diff changeset
2461 Sat Mar 18 04:03:33 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2462
kono
parents:
diff changeset
2463 * decl2.c (finish_prevtable_vardecl): Use DECL_DECLARED_STATIC
kono
parents:
diff changeset
2464 rather than DECL_SAVED_INSNS to decide whether or not this method
kono
parents:
diff changeset
2465 was declared inline.
kono
parents:
diff changeset
2466
kono
parents:
diff changeset
2467 * method.c (synthesize_method): Turn off DECL_INLINE if
kono
parents:
diff changeset
2468 function_cannot_inline_p thinks we're too large.
kono
parents:
diff changeset
2469
kono
parents:
diff changeset
2470 * typeck.c (build_indirect_ref): Use build_expr_type_conversion.
kono
parents:
diff changeset
2471
kono
parents:
diff changeset
2472 Fri Mar 17 17:47:36 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2473
kono
parents:
diff changeset
2474 * class.c (instantiate_type): Handle pmfs.
kono
parents:
diff changeset
2475
kono
parents:
diff changeset
2476 * typeck.c (convert_for_assignment): Check types when assigning one
kono
parents:
diff changeset
2477 pmf to another.
kono
parents:
diff changeset
2478
kono
parents:
diff changeset
2479 * decl.c (define_label): Fix logic for printing out the name of the
kono
parents:
diff changeset
2480 label in an error message.
kono
parents:
diff changeset
2481
kono
parents:
diff changeset
2482 * error.c (dump_expr): Support ARRAY_REF.
kono
parents:
diff changeset
2483
kono
parents:
diff changeset
2484 Fri Mar 17 17:43:02 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
2485
kono
parents:
diff changeset
2486 * decl2.c (finish_vtable_vardecl): Call build_t_desc here.
kono
parents:
diff changeset
2487 (finish_prevtable_vardecl): Instead of here.
kono
parents:
diff changeset
2488
kono
parents:
diff changeset
2489 Fri Mar 17 14:40:45 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2490
kono
parents:
diff changeset
2491 * decl.c (expand_static_init): Also use expand_aggr_init if the
kono
parents:
diff changeset
2492 initializer is a TREE_LIST.
kono
parents:
diff changeset
2493 (grokdeclarator): Only pedwarn about extra qualification if -pedantic.
kono
parents:
diff changeset
2494
kono
parents:
diff changeset
2495 * pt.c (unify): Fix unification of return type.
kono
parents:
diff changeset
2496
kono
parents:
diff changeset
2497 * expr.c (fixup_result_decl): Use store_expr, rather than
kono
parents:
diff changeset
2498 emit_move_insn, to move the return value into the place where
kono
parents:
diff changeset
2499 callers will expect it.
kono
parents:
diff changeset
2500
kono
parents:
diff changeset
2501 Thu Mar 16 22:05:25 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2502
kono
parents:
diff changeset
2503 * init.c (build_offset_ref): Call assmble_external on functions.
kono
parents:
diff changeset
2504 * typeck.c (build_component_ref): Likewise.
kono
parents:
diff changeset
2505
kono
parents:
diff changeset
2506 Thu Mar 16 20:28:16 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
2507
kono
parents:
diff changeset
2508 * decl.c (struct saved_scope): Add members base_init_list and
kono
parents:
diff changeset
2509 member_init_list.
kono
parents:
diff changeset
2510 (push_to_top_level): Save current_base_init_list and
kono
parents:
diff changeset
2511 current_member_init_list to them.
kono
parents:
diff changeset
2512 (pop_from_top_level): Put it back.
kono
parents:
diff changeset
2513
kono
parents:
diff changeset
2514 Thu Mar 16 19:21:14 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2515
kono
parents:
diff changeset
2516 * pt.c (instantiate_template): Call assemble_external.
kono
parents:
diff changeset
2517
kono
parents:
diff changeset
2518 Thu Mar 16 18:07:54 1995 Brendan Kehoe <brendan@phydeaux.cygnus.com>
kono
parents:
diff changeset
2519
kono
parents:
diff changeset
2520 * class.c: Include rtl.h, to get NULL_RTX.
kono
parents:
diff changeset
2521 (finish_struct): Also zero out DECL_SAVED_INSNS, to avoid problems
kono
parents:
diff changeset
2522 on hosts with different sizes for each part of the union.
kono
parents:
diff changeset
2523 * tree.c: Also include rtl.h.
kono
parents:
diff changeset
2524 (layout_basetypes): Same change for DECL_SAVED_INSNS.
kono
parents:
diff changeset
2525
kono
parents:
diff changeset
2526 Thu Mar 16 13:57:36 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2527
kono
parents:
diff changeset
2528 * pt.c (unify): Fix array domain unification for 64-bit targets.
kono
parents:
diff changeset
2529
kono
parents:
diff changeset
2530 * decl2.c (finish_file): Push bizarre type decl before walking the
kono
parents:
diff changeset
2531 vtables the first time.
kono
parents:
diff changeset
2532 (walk_vtables): OK, don't set prev to vars if the vardecl_fn messed
kono
parents:
diff changeset
2533 with TREE_CHAIN (prev).
kono
parents:
diff changeset
2534
kono
parents:
diff changeset
2535 * init.c (emit_base_init): Use convert_pointer_to_real instead of
kono
parents:
diff changeset
2536 convert_pointer_to when converting to a direct base.
kono
parents:
diff changeset
2537
kono
parents:
diff changeset
2538 Wed Mar 15 20:26:29 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
2539
kono
parents:
diff changeset
2540 * pt.c (type_unification): Handle transitive unification better.
kono
parents:
diff changeset
2541
kono
parents:
diff changeset
2542 Wed Mar 15 13:56:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2543
kono
parents:
diff changeset
2544 * decl2.c (walk_vtables): Always set prev to vars.
kono
parents:
diff changeset
2545 (mark_vtable_entries): Call assemble_external on the vtable entries.
kono
parents:
diff changeset
2546
kono
parents:
diff changeset
2547 * class.c (finish_struct): Set the vtable's size to NULL_TREE before
kono
parents:
diff changeset
2548 calling layout_decl, so that it gets updated properly.
kono
parents:
diff changeset
2549
kono
parents:
diff changeset
2550 Finally re-enable dynamic synthesis. This time it works.
kono
parents:
diff changeset
2551 * method.c (synthesize_method): Pass decl_function_context (fndecl)
kono
parents:
diff changeset
2552 to {push,pop}_cp_function_context.
kono
parents:
diff changeset
2553 * decl.c (push_cp_function_context): Now takes a tree argument.
kono
parents:
diff changeset
2554 (pop_cp_function_context): Likewise.
kono
parents:
diff changeset
2555 * call.c (build_method_call): Enable synthesis.
kono
parents:
diff changeset
2556 * lex.c (cons_up_default_function): Likewise.
kono
parents:
diff changeset
2557
kono
parents:
diff changeset
2558 Tue Mar 14 19:14:19 1995 Doug Evans <dje@chestnut.cygnus.com>
kono
parents:
diff changeset
2559
kono
parents:
diff changeset
2560 * parse.y (setattrs): Chain onto prefix_attributes rather than
kono
parents:
diff changeset
2561 setting it.
kono
parents:
diff changeset
2562
kono
parents:
diff changeset
2563 Wed Mar 15 13:00:00 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
2564
kono
parents:
diff changeset
2565 * decl.c (pushdecl): Check if the type of the VAR_DECL is an
kono
parents:
diff changeset
2566 error_mark_node before trying to read TYPE_LANG_SPECIFIC.
kono
parents:
diff changeset
2567
kono
parents:
diff changeset
2568 Mon Mar 13 21:00:28 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
2569
kono
parents:
diff changeset
2570 * decl.c (grokdeclarator, case ARRAY_REF): Wrap the exp with fold,
kono
parents:
diff changeset
2571 and convert the size and integer_one_node to the index type.
kono
parents:
diff changeset
2572
kono
parents:
diff changeset
2573 Mon Mar 13 08:01:02 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2574
kono
parents:
diff changeset
2575 * typeck.c (get_member_function_from_ptrfunc): Save the instance
kono
parents:
diff changeset
2576 argument, and tack it onto the front of the COND_EXPR to make the
kono
parents:
diff changeset
2577 semantics come out right. Grab the instance argument from
kono
parents:
diff changeset
2578 '*instance_ptrptr', rather than having it passed in separately.
kono
parents:
diff changeset
2579
kono
parents:
diff changeset
2580 * various: Change various consed-up comparison operations to have
kono
parents:
diff changeset
2581 boolean type. Remove the instance argument in calls to
kono
parents:
diff changeset
2582 get_member_function_from_ptrfunc.
kono
parents:
diff changeset
2583
kono
parents:
diff changeset
2584 * error.c (dump_expr): Dump true and false as "true" and "false".
kono
parents:
diff changeset
2585
kono
parents:
diff changeset
2586 * decl2.c (finish_file): Also set DECL_STATIC_FUNCTION_P on the
kono
parents:
diff changeset
2587 global init function.
kono
parents:
diff changeset
2588
kono
parents:
diff changeset
2589 * decl.c (finish_function): Only set DECL_EXTERNAL here if the
kono
parents:
diff changeset
2590 inline function is public.
kono
parents:
diff changeset
2591
kono
parents:
diff changeset
2592 Sat Mar 11 00:58:03 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2593
kono
parents:
diff changeset
2594 * init.c (is_friend): Be more careful about checking
kono
parents:
diff changeset
2595 DECL_CLASS_CONTEXT on non-member functions.
kono
parents:
diff changeset
2596
kono
parents:
diff changeset
2597 * decl2.c (finish_vtable_vardecl): Don't bother calling
kono
parents:
diff changeset
2598 assemble_external here.
kono
parents:
diff changeset
2599 (prune_vtable_vardecl): New function that just splices out the
kono
parents:
diff changeset
2600 vtable decl from the top-level decls.
kono
parents:
diff changeset
2601 (import_export_inline): Unset DECL_EXTERNAL at first.
kono
parents:
diff changeset
2602 (finish_file): Don't bother calling assemble_external here. Do
kono
parents:
diff changeset
2603 splice out all of the vtables.
kono
parents:
diff changeset
2604
kono
parents:
diff changeset
2605 Fri Mar 10 14:42:29 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2606
kono
parents:
diff changeset
2607 * decl.c (finish_function): If we're not emitting the function yet,
kono
parents:
diff changeset
2608 call assemble_external for it.
kono
parents:
diff changeset
2609
kono
parents:
diff changeset
2610 * decl2.c (finish_prevtable_vardecl): Don't call mark_vtable_entries
kono
parents:
diff changeset
2611 here.
kono
parents:
diff changeset
2612 (finish_vtable_vardecl): Don't do the linkage deduction thing here.
kono
parents:
diff changeset
2613 Also don't splice out the current vtable if it is unused.
kono
parents:
diff changeset
2614 (finish_file): Move the second walk_vtables and the synthesis check
kono
parents:
diff changeset
2615 inside the 'reconsider' loop. Move thunk emission after the
kono
parents:
diff changeset
2616 'reconsider' loop.
kono
parents:
diff changeset
2617
kono
parents:
diff changeset
2618 Thu Mar 9 16:28:16 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
2619
kono
parents:
diff changeset
2620 * pt.c (tsubst): Don't bother calling cp_build_type_variant, since it
kono
parents:
diff changeset
2621 was passing bogus values for readonly and volatile from the original
kono
parents:
diff changeset
2622 template decl, not the resultant type of the tsubst call.
kono
parents:
diff changeset
2623
kono
parents:
diff changeset
2624 * class.c (duplicate_tag_error): Use cp_error_at to point out the
kono
parents:
diff changeset
2625 previous definition of the tag.
kono
parents:
diff changeset
2626
kono
parents:
diff changeset
2627 Thu Mar 9 10:46:17 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2628
kono
parents:
diff changeset
2629 * decl.c (start_function): Clear base_init_insns and protect_list.
kono
parents:
diff changeset
2630 (struct cp_function): Add base_init_insns field.
kono
parents:
diff changeset
2631 (push_cp_function_context): Also save base_init_insns.
kono
parents:
diff changeset
2632 (pop_cp_function_context): Also restore base_init_insns.
kono
parents:
diff changeset
2633
kono
parents:
diff changeset
2634 Wed Mar 8 13:31:44 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2635
kono
parents:
diff changeset
2636 * init.c (member_init_ok_or_else): Check for initializing a static
kono
parents:
diff changeset
2637 member here.
kono
parents:
diff changeset
2638 (emit_base_init): Instead of here.
kono
parents:
diff changeset
2639
kono
parents:
diff changeset
2640 Tue Mar 7 16:03:26 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2641
kono
parents:
diff changeset
2642 * call.c (build_method_call): Disable synthesis as needed.
kono
parents:
diff changeset
2643 * lex.c (cons_up_default_function): Likewise.
kono
parents:
diff changeset
2644
kono
parents:
diff changeset
2645 Tue Mar 7 10:14:29 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
2646
kono
parents:
diff changeset
2647 * parse.y: New rules to allow attributes in a prefix position.
kono
parents:
diff changeset
2648 (prefix_attributes): New variable. Pass it into cplus_decl_attributes.
kono
parents:
diff changeset
2649 (setattr): New rule.
kono
parents:
diff changeset
2650 (reserved_declspecs, declmods): Catch attributes here.
kono
parents:
diff changeset
2651 * decl2.c (cplus_decl_attributes): Add PREFIX_ATTRIBUTES argument.
kono
parents:
diff changeset
2652 * decl.c (duplicate_decls): Pass DECL_MACHINE_ATTRIBUTES to
kono
parents:
diff changeset
2653 descendent typedef.
kono
parents:
diff changeset
2654 (grokdeclarator): Added code to support machine attributes.
kono
parents:
diff changeset
2655 * Makefile.in (stamp-parse): Expect 5 shift/reduce failures.
kono
parents:
diff changeset
2656
kono
parents:
diff changeset
2657 Mon Mar 6 15:07:02 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2658
kono
parents:
diff changeset
2659 * call.c (build_method_call): Don't synthesize methods outside of a
kono
parents:
diff changeset
2660 function.
kono
parents:
diff changeset
2661
kono
parents:
diff changeset
2662 Make base initialization more re-entrant so that synthesis on the
kono
parents:
diff changeset
2663 fly will work (and, eventually, template instantiation on the fly).
kono
parents:
diff changeset
2664 * init.c (sort_member_init): Don't bother with members that can't be
kono
parents:
diff changeset
2665 initialized. Reorganize a bit. Don't initialize base members here.
kono
parents:
diff changeset
2666 (sort_base_init): New function, like sort_member_init, but for base
kono
parents:
diff changeset
2667 classes. Steals some code from emit_base_init.
kono
parents:
diff changeset
2668 (emit_base_init): Simplify. Call sort_{member,base}_init before
kono
parents:
diff changeset
2669 doing any initialization, so we don't have to save
kono
parents:
diff changeset
2670 current_{member,base}_init_list in push_cp_function_context.
kono
parents:
diff changeset
2671 (expand_aggr_vbase_init_1): Adjust for sort_base_init.
kono
parents:
diff changeset
2672 (expand_aggr_vbase_init): Simplify.
kono
parents:
diff changeset
2673 * decl.c (struct cp_function): Add protect_list field.
kono
parents:
diff changeset
2674 (push_cp_function_context): Also save protect_list.
kono
parents:
diff changeset
2675 (pop_cp_function_context): Also restore protect_list.
kono
parents:
diff changeset
2676 * call.c (build_method_call): Enable synthesis at point of call.
kono
parents:
diff changeset
2677 * lex.c (cons_up_default_function): Likewise.
kono
parents:
diff changeset
2678
kono
parents:
diff changeset
2679 * parse.y: Turn -ansi checks back into -pedantic checks.
kono
parents:
diff changeset
2680
kono
parents:
diff changeset
2681 * init.c (build_new): Fix -fcheck-new for array new.
kono
parents:
diff changeset
2682
kono
parents:
diff changeset
2683 Sat Mar 4 15:55:42 1995 Fergus Henderson <fjh@cs.mu.oz.au>
kono
parents:
diff changeset
2684
kono
parents:
diff changeset
2685 * typeck.c (build_compound_expr): warn if left-hand operand of
kono
parents:
diff changeset
2686 comma expression has no side-effects.
kono
parents:
diff changeset
2687
kono
parents:
diff changeset
2688 Fri Mar 3 15:16:45 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2689
kono
parents:
diff changeset
2690 * parse.y (primary): Change 'object qualified_id *' rules to 'object
kono
parents:
diff changeset
2691 overqualified_id *'.
kono
parents:
diff changeset
2692
kono
parents:
diff changeset
2693 Fri Mar 3 12:48:17 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
2694
kono
parents:
diff changeset
2695 * parse.y (unary_expr): Catch doing sizeof an overloaded function.
kono
parents:
diff changeset
2696 Make the error look the same as the one we issue in c_sizeof.
kono
parents:
diff changeset
2697
kono
parents:
diff changeset
2698 * typeck.c (build_binary_op_nodefault): Give an error for trying
kono
parents:
diff changeset
2699 to compare a pointer-to-member to `void *'.
kono
parents:
diff changeset
2700
kono
parents:
diff changeset
2701 Fri Mar 3 11:28:50 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2702
kono
parents:
diff changeset
2703 * typeck.c (build_unary_op): Handle bool increment with smoke and
kono
parents:
diff changeset
2704 mirrors here, rather than in expand_increment where it belongs,
kono
parents:
diff changeset
2705 because Kenner doesn't agree with me.
kono
parents:
diff changeset
2706
kono
parents:
diff changeset
2707 Fri Mar 3 00:08:10 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
2708
kono
parents:
diff changeset
2709 * decl.c (grokparms): Catch a PARM_DECL being used for a default
kono
parents:
diff changeset
2710 argument as well.
kono
parents:
diff changeset
2711
kono
parents:
diff changeset
2712 Thu Mar 2 20:05:54 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
2713
kono
parents:
diff changeset
2714 * init.c (build_new): Don't allow new on a function type.
kono
parents:
diff changeset
2715
kono
parents:
diff changeset
2716 * parse.y (primary): Avoid a crash when seeing if the arg is of
kono
parents:
diff changeset
2717 the same type as that given for the typespec in an explicit dtor call.
kono
parents:
diff changeset
2718
kono
parents:
diff changeset
2719 Thu Mar 2 00:49:38 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2720
kono
parents:
diff changeset
2721 * decl.c (finish_function): Change test for calling
kono
parents:
diff changeset
2722 mark_inline_for_output.
kono
parents:
diff changeset
2723
kono
parents:
diff changeset
2724 Wed Mar 1 11:23:46 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2725
kono
parents:
diff changeset
2726 * typeck.c (build_modify_expr): Complain if
kono
parents:
diff changeset
2727 build_default_binary_type_conversion fails.
kono
parents:
diff changeset
2728
kono
parents:
diff changeset
2729 * init.c (expand_default_init): Handle arguments of unknown type
kono
parents:
diff changeset
2730 properly.
kono
parents:
diff changeset
2731
kono
parents:
diff changeset
2732 * cvt.c (build_expr_type_conversion): Only complain about ambiguity
kono
parents:
diff changeset
2733 if 'complain'.
kono
parents:
diff changeset
2734 * various: Pass 'complain'.
kono
parents:
diff changeset
2735
kono
parents:
diff changeset
2736 * typeck.c (comptypes): Be more picky about comparing UPTs.
kono
parents:
diff changeset
2737
kono
parents:
diff changeset
2738 Wed Mar 1 11:03:41 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
2739
kono
parents:
diff changeset
2740 * decl.c (grokdeclarator): If declarator is null, say that the
kono
parents:
diff changeset
2741 type used has an incomplete type.
kono
parents:
diff changeset
2742
kono
parents:
diff changeset
2743 Wed Mar 1 10:06:20 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2744
kono
parents:
diff changeset
2745 * pt.c (instantiate_template): Copy the template arguments to the
kono
parents:
diff changeset
2746 permanent_obstack. Also use simple_cst_equal to compare them when
kono
parents:
diff changeset
2747 looking for a previous instantiation.
kono
parents:
diff changeset
2748
kono
parents:
diff changeset
2749 * tree.c (make_deep_copy): Support copying INTEGER_TYPEs (assuming
kono
parents:
diff changeset
2750 they are array domain types).
kono
parents:
diff changeset
2751
kono
parents:
diff changeset
2752 Tue Feb 28 23:24:55 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2753
kono
parents:
diff changeset
2754 * cp-tree.h: Define WANT_* constants for passing to
kono
parents:
diff changeset
2755 build_expr_type_conversion.
kono
parents:
diff changeset
2756 * cvt.c (build_expr_type_conversion): New function to build
kono
parents:
diff changeset
2757 conversion to one of a group of suitable types.
kono
parents:
diff changeset
2758 (build_default_binary_type_conversion): Use it.
kono
parents:
diff changeset
2759 * decl2.c (grok_array_decl): Likewise.
kono
parents:
diff changeset
2760 * typeck.c (build_unary_op): Likewise.
kono
parents:
diff changeset
2761 (build_array_ref): Tidy up a bit.
kono
parents:
diff changeset
2762 (build_binary_op): Likewise.
kono
parents:
diff changeset
2763
kono
parents:
diff changeset
2764 Tue Feb 28 19:57:31 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
2765
kono
parents:
diff changeset
2766 * decl.c (grokdeclarator): Don't allow decl of an argument as `void'.
kono
parents:
diff changeset
2767
kono
parents:
diff changeset
2768 Tue Feb 28 17:23:36 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2769
kono
parents:
diff changeset
2770 * parse.y (typed_declspecs1): Add 'typespec reserved_typespecquals
kono
parents:
diff changeset
2771 reserved_declspecs' rule.
kono
parents:
diff changeset
2772
kono
parents:
diff changeset
2773 * parse.y (expr_or_declarator): Remove notype_qualified_id rule.
kono
parents:
diff changeset
2774 (direct_notype_declarator): Likewise.
kono
parents:
diff changeset
2775 (complex_direct_notype_declarator): Add notype_qualified_id rule.
kono
parents:
diff changeset
2776
kono
parents:
diff changeset
2777 * lex.c (real_yylex): Handle :> digraph properly.
kono
parents:
diff changeset
2778
kono
parents:
diff changeset
2779 Tue Feb 28 12:26:29 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
2780
kono
parents:
diff changeset
2781 * decl.c (grokdeclarator): Check if it's a friend, not if it's
kono
parents:
diff changeset
2782 non-virtual, that's being initialized. Move the check up to
kono
parents:
diff changeset
2783 before FRIENDP would get cleared. Catch an unnamed var/field
kono
parents:
diff changeset
2784 being declared void. Say just `field' instead of `structure field'
kono
parents:
diff changeset
2785 in the error message. Only go for the operator name if DECLARATOR
kono
parents:
diff changeset
2786 is non-null.
kono
parents:
diff changeset
2787
kono
parents:
diff changeset
2788 Tue Feb 28 00:08:01 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2789
kono
parents:
diff changeset
2790 * decl.c (start_function): Complain about abstract return type.
kono
parents:
diff changeset
2791 (grokdeclarator): Complain about declaring constructors and
kono
parents:
diff changeset
2792 destructors to be const or volatile. Complain about declaring
kono
parents:
diff changeset
2793 destructors to be static.
kono
parents:
diff changeset
2794
kono
parents:
diff changeset
2795 * pt.c (uses_template_parms): Handle pmfs.
kono
parents:
diff changeset
2796
kono
parents:
diff changeset
2797 * decl.c (grokdeclarator): Don't call variable_size for array bounds
kono
parents:
diff changeset
2798 that only depend on template constant parameters.
kono
parents:
diff changeset
2799
kono
parents:
diff changeset
2800 Mon Feb 27 15:38:16 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
2801
kono
parents:
diff changeset
2802 * error.c (dump_decl): Only look to see if it's a vtable if we
kono
parents:
diff changeset
2803 actually have a name to check out.
kono
parents:
diff changeset
2804
kono
parents:
diff changeset
2805 Mon Feb 27 13:37:53 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2806
kono
parents:
diff changeset
2807 * cvt.c (convert_to_aggr): Lose misleading shortcut.
kono
parents:
diff changeset
2808
kono
parents:
diff changeset
2809 Sun Feb 26 17:27:32 1995 Doug Evans <dje@canuck.cygnus.com>
kono
parents:
diff changeset
2810
kono
parents:
diff changeset
2811 * decl.c (set_nested_typename): Always set DECL_IGNORED_P,
kono
parents:
diff changeset
2812 not just for dwarf.
kono
parents:
diff changeset
2813
kono
parents:
diff changeset
2814 Sun Feb 26 00:10:18 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
2815
kono
parents:
diff changeset
2816 * decl.c (grokdeclarator): Don't allow a static member to be
kono
parents:
diff changeset
2817 declared `register'.
kono
parents:
diff changeset
2818
kono
parents:
diff changeset
2819 * init.c (make_friend_class): Move up to a pedwarn for the warning
kono
parents:
diff changeset
2820 about a class declaring friends with itself.
kono
parents:
diff changeset
2821
kono
parents:
diff changeset
2822 * decl.c (grokdeclarator): You can't do `volatile friend class foo'
kono
parents:
diff changeset
2823 or `inline friend class foo'. Only try to make a friend out of
kono
parents:
diff changeset
2824 TYPE if we didn't already reset it to integer_type_node.
kono
parents:
diff changeset
2825
kono
parents:
diff changeset
2826 Sat Feb 25 22:32:03 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
2827
kono
parents:
diff changeset
2828 * decl.c (grokdeclarator): Don't allow initialization of a
kono
parents:
diff changeset
2829 non-virtual function.
kono
parents:
diff changeset
2830
kono
parents:
diff changeset
2831 * decl.c (start_function): Do a pedwarn if we're changing `main'
kono
parents:
diff changeset
2832 to have an int return type.
kono
parents:
diff changeset
2833
kono
parents:
diff changeset
2834 Sat Feb 25 00:02:05 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2835
kono
parents:
diff changeset
2836 * typeck.c (build_modify_expr): Handle simple assignment from
kono
parents:
diff changeset
2837 TARGET_EXPRs by building up an RTL_EXPR to force expansion. Whew.
kono
parents:
diff changeset
2838
kono
parents:
diff changeset
2839 Fri Feb 24 18:27:14 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
2840
kono
parents:
diff changeset
2841 * decl.c (grokdeclarator): Also don't allow virtual outside of a
kono
parents:
diff changeset
2842 class decl for a scope method definition performed at global binding.
kono
parents:
diff changeset
2843
kono
parents:
diff changeset
2844 * init.c (build_offset_ref): Don't allow creation of an OFFSET_REF
kono
parents:
diff changeset
2845 of a bitfield.
kono
parents:
diff changeset
2846
kono
parents:
diff changeset
2847 * decl.c (grokdeclarator): Don't allow a const to be declared mutable.
kono
parents:
diff changeset
2848
kono
parents:
diff changeset
2849 * typeck.c (build_binary_op): Return an error_mark_node if either
kono
parents:
diff changeset
2850 one of the args turned into an error_mark_node when we tried to
kono
parents:
diff changeset
2851 use default_conversion.
kono
parents:
diff changeset
2852
kono
parents:
diff changeset
2853 * typeck.c (build_unary_op): Forbid using postfix -- on a bool.
kono
parents:
diff changeset
2854
kono
parents:
diff changeset
2855 * decl.c (grokdeclarator): Allow `signed' and `unsigned' to be
kono
parents:
diff changeset
2856 used on `__wchar_t'.
kono
parents:
diff changeset
2857
kono
parents:
diff changeset
2858 Fri Feb 24 13:59:53 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
2859
kono
parents:
diff changeset
2860 * except.c (end_protect_partials): Do it the right way.
kono
parents:
diff changeset
2861
kono
parents:
diff changeset
2862 Wed Feb 22 15:42:56 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2863
kono
parents:
diff changeset
2864 * typeck.c (build_binary_op_nodefault): Upgrade warning about
kono
parents:
diff changeset
2865 comparing distinct pointer types to pedwarn.
kono
parents:
diff changeset
2866
kono
parents:
diff changeset
2867 * typeck2.c (digest_init): Cope with extra braces.
kono
parents:
diff changeset
2868
kono
parents:
diff changeset
2869 * typeck.c (build_binary_op_nodefault): Use tree_int_cst_sgn instead
kono
parents:
diff changeset
2870 of INT_CST_LT (..., interger_zero_node).
kono
parents:
diff changeset
2871
kono
parents:
diff changeset
2872 Wed Feb 22 14:45:52 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
2873
kono
parents:
diff changeset
2874 * except.c [!TRY_NEW_EH] (end_protect_partials): Define dummy
kono
parents:
diff changeset
2875 function for systems that don't have EH.
kono
parents:
diff changeset
2876
kono
parents:
diff changeset
2877 Tue Feb 21 19:18:31 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2878
kono
parents:
diff changeset
2879 * call.c (can_convert_arg): Like can_convert, but takes an arg as
kono
parents:
diff changeset
2880 well.
kono
parents:
diff changeset
2881
kono
parents:
diff changeset
2882 * pt.c (type_unification): Allow implicit conversions for parameters
kono
parents:
diff changeset
2883 that do not depend on template parameters.
kono
parents:
diff changeset
2884
kono
parents:
diff changeset
2885 Tue Feb 21 18:43:48 1995 Douglas Rupp <drupp@cs.washington.edu>
kono
parents:
diff changeset
2886
kono
parents:
diff changeset
2887 * Make-lang.in, config-lang.in: ($exeext): New macro.
kono
parents:
diff changeset
2888 * Make-lang.in: Try a "cp" if "ln" fails.
kono
parents:
diff changeset
2889 * cp-tree.h (decl_attributes): Added argument.
kono
parents:
diff changeset
2890 * decl2.c (cplus_decl_attribute): Add arg to decl_attributes.
kono
parents:
diff changeset
2891 * cp/g++.c: Added #ifdefs for sys/file.h and process.h for NT.
kono
parents:
diff changeset
2892 Modified spawnvp to have to correct number of arguments for OS/2, NT.
kono
parents:
diff changeset
2893
kono
parents:
diff changeset
2894 Tue Feb 21 18:36:55 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
2895
kono
parents:
diff changeset
2896 * decl.c (finish_function): Add calls to end_protect_partials to end
kono
parents:
diff changeset
2897 the exception region that protects constructors so that partially
kono
parents:
diff changeset
2898 constructed objects can be partially destructed when the constructor
kono
parents:
diff changeset
2899 throws an exception.
kono
parents:
diff changeset
2900 * init.c (perform_member_init, sort_member_init, emit_base_init):
kono
parents:
diff changeset
2901 Added support for partially constructed objects.
kono
parents:
diff changeset
2902 * init.c (build_partial_cleanup_for): New routine to do partial
kono
parents:
diff changeset
2903 cleanups of a base class.
kono
parents:
diff changeset
2904 * decl2.c (finish_file): Move the emitting of the exception table
kono
parents:
diff changeset
2905 down, after we emit all code that might have exception regions in
kono
parents:
diff changeset
2906 them.
kono
parents:
diff changeset
2907 * except.c (end_protect_partials, might_have_exceptions_p): New
kono
parents:
diff changeset
2908 routines.
kono
parents:
diff changeset
2909 (emit_exception_table): Always output table if called.
kono
parents:
diff changeset
2910 * cp-tree.h (protect_list, end_protect_partials,
kono
parents:
diff changeset
2911 might_have_exceptions_p, emit_exception_table): Added.
kono
parents:
diff changeset
2912
kono
parents:
diff changeset
2913 Tue Feb 21 16:05:59 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
kono
parents:
diff changeset
2914
kono
parents:
diff changeset
2915 * gc.c (build_typeid): Pass a NULL_TREE, not the bogus, unused
kono
parents:
diff changeset
2916 address of a local variable.
kono
parents:
diff changeset
2917 * class.c (build_vfn_ref): Only try to build the PLUS_EXPR if we
kono
parents:
diff changeset
2918 were given a non-null PTR_TO_INSTPTR.
kono
parents:
diff changeset
2919
kono
parents:
diff changeset
2920 Tue Feb 21 01:53:18 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2921
kono
parents:
diff changeset
2922 * decl.c (duplicate_decls): Always lay out the merged decl.
kono
parents:
diff changeset
2923
kono
parents:
diff changeset
2924 * decl2.c (finish_vtable_vardecl): Don't do vtable hack on templates.
kono
parents:
diff changeset
2925 (finish_prevtable_vardecl): Likewise.
kono
parents:
diff changeset
2926
kono
parents:
diff changeset
2927 * method.c (synthesize_method): Set interface_{unknown,only}
kono
parents:
diff changeset
2928 according to the settings for our class, not the file where it comes
kono
parents:
diff changeset
2929 from.
kono
parents:
diff changeset
2930
kono
parents:
diff changeset
2931 Sat Feb 18 12:26:48 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
2932
kono
parents:
diff changeset
2933 * except.c: Handle systems that define __i386__ but not __i386.
kono
parents:
diff changeset
2934
kono
parents:
diff changeset
2935 Fri Feb 17 15:31:31 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2936
kono
parents:
diff changeset
2937 * decl2.c (reparse_decl_as_expr): Support being called without a
kono
parents:
diff changeset
2938 type argument.
kono
parents:
diff changeset
2939
kono
parents:
diff changeset
2940 * parse.y (primary): Add '(' expr_or_declarator ')'. Adds 4 r/r
kono
parents:
diff changeset
2941 conflicts. Sigh.
kono
parents:
diff changeset
2942
kono
parents:
diff changeset
2943 Fri Feb 17 12:02:06 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
2944
kono
parents:
diff changeset
2945 * parse.y (template_def, fndef, fn.def1, return_init, condition,
kono
parents:
diff changeset
2946 initdcl0, initdcl, notype_initdcl0, nomods_initdcl0,
kono
parents:
diff changeset
2947 component_decl_1, after_type_component_declarator0,
kono
parents:
diff changeset
2948 notype_component_declarator0, after_type_component_declarator,
kono
parents:
diff changeset
2949 notype_component_declarator, after_type_component_declarator,
kono
parents:
diff changeset
2950 full_parm, maybe_raises, exception_specification_opt): Fix up,
kono
parents:
diff changeset
2951 include exception_specification_opt maybeasm maybe_attribute and
kono
parents:
diff changeset
2952 maybe_init if missing. Rename maybe_raises to
kono
parents:
diff changeset
2953 exception_specification_opt to match draft wording. Use maybe_init
kono
parents:
diff changeset
2954 to simplify rules.
kono
parents:
diff changeset
2955
kono
parents:
diff changeset
2956 Fri Feb 17 01:54:46 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2957
kono
parents:
diff changeset
2958 * init.c (build_new): Set TREE_NO_UNUSED_WARNING on COMPOUND_EXPRs
kono
parents:
diff changeset
2959 built for news of scalar types.
kono
parents:
diff changeset
2960
kono
parents:
diff changeset
2961 Thu Feb 16 17:48:28 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2962
kono
parents:
diff changeset
2963 * typeck.c (build_binary_op_nodefault): Update code for warning
kono
parents:
diff changeset
2964 about signed/unsigned comparisons from C frontend. Realize that the
kono
parents:
diff changeset
2965 code in the C frontend is, if anything, even more bogus. Fix it.
kono
parents:
diff changeset
2966 (build_binary_op): Undo default_conversion if it wasn't useful.
kono
parents:
diff changeset
2967
kono
parents:
diff changeset
2968 * typeck.c (build_unary_op, ADDR_EXPR): Lose bogus special case for
kono
parents:
diff changeset
2969 PRE*CREMENT_EXPR.
kono
parents:
diff changeset
2970
kono
parents:
diff changeset
2971 * decl2.c (import_export_vtable): Don't try the vtable hack
kono
parents:
diff changeset
2972 if the class doesn't have any real non-inline virtual functions.
kono
parents:
diff changeset
2973 (finish_vtable_vardecl): Don't bother trying to find a non-inline
kono
parents:
diff changeset
2974 virtual function in a non-polymorphic class.
kono
parents:
diff changeset
2975 (finish_prevtable_vardecl): Likewise.
kono
parents:
diff changeset
2976
kono
parents:
diff changeset
2977 * decl2.c (import_export_vtable): Use and set DECL_INTERFACE_KNOWN.
kono
parents:
diff changeset
2978
kono
parents:
diff changeset
2979 * cp-tree.h (DECL_INTERFACE_KNOWN): Use DECL_LANG_FLAG_5.
kono
parents:
diff changeset
2980
kono
parents:
diff changeset
2981 * init.c (expand_virtual_init): Always call assemble_external.
kono
parents:
diff changeset
2982
kono
parents:
diff changeset
2983 * class.c (build_vfn_ref): Always call assemble_external.
kono
parents:
diff changeset
2984 (build_vtable): Always call import_export_vtable.
kono
parents:
diff changeset
2985 (prepare_fresh_vtable): Likewise.
kono
parents:
diff changeset
2986 (add_virtual_function): Don't bother setting TREE_ADDRESSABLE.
kono
parents:
diff changeset
2987
kono
parents:
diff changeset
2988 Thu Feb 16 03:28:49 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2989
kono
parents:
diff changeset
2990 * class.c (finish_struct): Use TYPE_{MIN,MAX}_VALUE to determine
kono
parents:
diff changeset
2991 whether an enumerated type fits in a bitfield.
kono
parents:
diff changeset
2992
kono
parents:
diff changeset
2993 Wed Feb 15 15:38:12 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
2994
kono
parents:
diff changeset
2995 * class.c (grow_method): Update method_vec after growing the class
kono
parents:
diff changeset
2996 obstack.
kono
parents:
diff changeset
2997
kono
parents:
diff changeset
2998 Wed Feb 15 13:42:59 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
2999
kono
parents:
diff changeset
3000 * parse.y (handler_seq): Push a level for the catch parameters.
kono
parents:
diff changeset
3001
kono
parents:
diff changeset
3002 Wed Feb 15 12:42:57 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3003
kono
parents:
diff changeset
3004 * init.c (emit_base_init): Update BINFO_INHERITANCE_CHAIN on my
kono
parents:
diff changeset
3005 bases, in case they've been clobbered.
kono
parents:
diff changeset
3006
kono
parents:
diff changeset
3007 Wed Feb 15 12:07:29 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
3008
kono
parents:
diff changeset
3009 * class.c (finish_base_struct): Set up BINFO_INHERITANCE_CHAIN here,
kono
parents:
diff changeset
3010 so that one day it will always be valid.
kono
parents:
diff changeset
3011 * tree.c (propagate_binfo_offsets, layout_vbasetypes): Likewise.
kono
parents:
diff changeset
3012
kono
parents:
diff changeset
3013 * cp-tree.h (copy_binfo): Removed, unused.
kono
parents:
diff changeset
3014 * tree.c (copy_binfo): Likewise.
kono
parents:
diff changeset
3015
kono
parents:
diff changeset
3016 Wed Feb 15 00:05:30 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3017
kono
parents:
diff changeset
3018 * init.c (build_new): Save the allocation before calling
kono
parents:
diff changeset
3019 expand_vec_init on it.
kono
parents:
diff changeset
3020
kono
parents:
diff changeset
3021 * decl.c (finish_enum): The TYPE_PRECISION of the enum type mush
kono
parents:
diff changeset
3022 match the TYPE_PRECISION of the underlying type for constant folding
kono
parents:
diff changeset
3023 to work.
kono
parents:
diff changeset
3024
kono
parents:
diff changeset
3025 Tue Feb 14 15:31:25 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
3026
kono
parents:
diff changeset
3027 * except.c (push_eh_entry, expand_start_all_catch,
kono
parents:
diff changeset
3028 expand_leftover_cleanups, expand_end_catch_block): Keep track of
kono
parents:
diff changeset
3029 the context in which the exception region occurs.
kono
parents:
diff changeset
3030 (build_exception_table): If the region was not output, don't output
kono
parents:
diff changeset
3031 the entry in the eh table for it.
kono
parents:
diff changeset
3032
kono
parents:
diff changeset
3033 Tue Feb 14 02:15:43 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3034
kono
parents:
diff changeset
3035 * init.c (expand_default_init): Only use a previous constructor call
kono
parents:
diff changeset
3036 if it's a call to our constructor. Does the word "Duh" mean
kono
parents:
diff changeset
3037 anything to you?
kono
parents:
diff changeset
3038
kono
parents:
diff changeset
3039 * decl.c (grokparms): Fine, just don't call
kono
parents:
diff changeset
3040 convert_for_initialization at all. OK? Happy now?
kono
parents:
diff changeset
3041
kono
parents:
diff changeset
3042 Mon Feb 13 02:23:44 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3043
kono
parents:
diff changeset
3044 * cp-tree.h (CLASSTYPE_FIRST_CONVERSION): Make sure that the class
kono
parents:
diff changeset
3045 method vector has a second element before returning it.
kono
parents:
diff changeset
3046
kono
parents:
diff changeset
3047 * decl.c (grokparms): Don't strip REFERENCE_TYPE before calling
kono
parents:
diff changeset
3048 convert_for_initialization.
kono
parents:
diff changeset
3049
kono
parents:
diff changeset
3050 Sun Feb 12 03:57:06 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3051
kono
parents:
diff changeset
3052 * typeck.c (build_modify_expr): Compare function name to
kono
parents:
diff changeset
3053 constructor_name (current_class_type) instead of current_class_name.
kono
parents:
diff changeset
3054
kono
parents:
diff changeset
3055 * decl.c (grokparms): Don't do anything with the return value of
kono
parents:
diff changeset
3056 convert_for_initialization.
kono
parents:
diff changeset
3057
kono
parents:
diff changeset
3058 * error.c (dump_decl): Also dump_readonly_or_volatile on the decl.
kono
parents:
diff changeset
3059
kono
parents:
diff changeset
3060 * decl.c (duplicate_decls): Tweak error message.
kono
parents:
diff changeset
3061
kono
parents:
diff changeset
3062 * typeck.c (build_const_cast): Implement checking.
kono
parents:
diff changeset
3063 (build_reinterpret_cast): Implement some checking.
kono
parents:
diff changeset
3064
kono
parents:
diff changeset
3065 * cp-tree.h (CONV_FORCE_TEMP): Require a new temporary when
kono
parents:
diff changeset
3066 converting to the same aggregate type.
kono
parents:
diff changeset
3067 (CONV_STATIC_CAST): Include it.
kono
parents:
diff changeset
3068 (CONV_C_CAST): Likewise.
kono
parents:
diff changeset
3069 * cvt.c (convert_force): Use CONV_C_CAST instead of CONV_OLD_CONVERT.
kono
parents:
diff changeset
3070 (cp_convert): Only force a new temporary if CONV_FORCE_TEMP.
kono
parents:
diff changeset
3071
kono
parents:
diff changeset
3072 Fri Feb 10 16:18:52 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3073
kono
parents:
diff changeset
3074 * typeck.c (build_c_cast): Use non_lvalue to tack something on
kono
parents:
diff changeset
3075 where necessary.
kono
parents:
diff changeset
3076
kono
parents:
diff changeset
3077 * decl.c (auto_function): Now a function.
kono
parents:
diff changeset
3078 * except.c (init_exception_processing): terminate, unexpected,
kono
parents:
diff changeset
3079 set_terminate, and set_unexpected have C++ linkage.
kono
parents:
diff changeset
3080
kono
parents:
diff changeset
3081 * typeck.c (build_unary_op, TRUTH_NOT_EXPR): Use convert instead of
kono
parents:
diff changeset
3082 truthvalue_conversion for converting to bool, as it handles
kono
parents:
diff changeset
3083 user-defined conversions properly.
kono
parents:
diff changeset
3084 (condition_conversion): Likewise.
kono
parents:
diff changeset
3085
kono
parents:
diff changeset
3086 * except.c (expand_throw): Don't call convert_to_reference.
kono
parents:
diff changeset
3087 Pass the correct parameters to build_new.
kono
parents:
diff changeset
3088
kono
parents:
diff changeset
3089 * method.c (do_build_assign_ref): Don't use access control when
kono
parents:
diff changeset
3090 converting to a base reference here.
kono
parents:
diff changeset
3091 (do_build_copy_constructor): Or here.
kono
parents:
diff changeset
3092
kono
parents:
diff changeset
3093 * init.c (build_new): Unset TREE_READONLY on the dereferenced
kono
parents:
diff changeset
3094 pointer before assigning to it.
kono
parents:
diff changeset
3095
kono
parents:
diff changeset
3096 * decl.c (maybe_build_cleanup): Don't bother stripping const here.
kono
parents:
diff changeset
3097
kono
parents:
diff changeset
3098 * decl2.c (delete_sanity): You can now delete pointer to const.
kono
parents:
diff changeset
3099
kono
parents:
diff changeset
3100 Fri Feb 10 13:28:38 1995 Jason Merrill <jason@python.cygnus.com>
kono
parents:
diff changeset
3101
kono
parents:
diff changeset
3102 * decl.c (finish_function): Don't rely on actual parameters being
kono
parents:
diff changeset
3103 evaluated left-to-right.
kono
parents:
diff changeset
3104 * except.c (expand_end_catch_block): Likewise.
kono
parents:
diff changeset
3105
kono
parents:
diff changeset
3106 Fri Feb 10 00:52:04 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3107
kono
parents:
diff changeset
3108 * tree.c (real_lvalue_p): Like lvalue_p, but class temps aren't
kono
parents:
diff changeset
3109 considered lvalues.
kono
parents:
diff changeset
3110 * cvt.c (convert_to_reference): Use real_lvalue_p instead of
kono
parents:
diff changeset
3111 lvalue_p.
kono
parents:
diff changeset
3112
kono
parents:
diff changeset
3113 * cvt.c (build_type_conversion_1): Don't call convert on aggregate
kono
parents:
diff changeset
3114 types.
kono
parents:
diff changeset
3115 (convert_to_reference): Fix erroneous text substitution.
kono
parents:
diff changeset
3116
kono
parents:
diff changeset
3117 * typeck2.c (initializer_constant_valid_p): Update from C frontend.
kono
parents:
diff changeset
3118 Add new argument to all callers.
kono
parents:
diff changeset
3119
kono
parents:
diff changeset
3120 * typeck.c (convert_arguments): Check for error_mark_node before
kono
parents:
diff changeset
3121 trying to do anything with the actual parameter.
kono
parents:
diff changeset
3122
kono
parents:
diff changeset
3123 * typeck.c (condition_conversion): Build up a CLEANUP_POINT_EXPR and
kono
parents:
diff changeset
3124 fold it.
kono
parents:
diff changeset
3125 (bool_truthvalue_conversion): Remove. Fix all callers to call
kono
parents:
diff changeset
3126 truthvalue_conversion instead.
kono
parents:
diff changeset
3127 (various): Fold CLEANUP_POINT_EXPRs.
kono
parents:
diff changeset
3128
kono
parents:
diff changeset
3129 * parse.y (conditions): Call condition_conversion rather than
kono
parents:
diff changeset
3130 building up a CLEANUP_POINT_EXPR.
kono
parents:
diff changeset
3131
kono
parents:
diff changeset
3132 * pt.c (end_template_decl): Don't warn_if_unknown_interface here
kono
parents:
diff changeset
3133 under -falt-external-templates.
kono
parents:
diff changeset
3134
kono
parents:
diff changeset
3135 Thu Feb 9 05:24:10 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3136
kono
parents:
diff changeset
3137 * init.c (build_new): Complain about new of const type without
kono
parents:
diff changeset
3138 initializer. Other cleanup.
kono
parents:
diff changeset
3139
kono
parents:
diff changeset
3140 * call.c (compute_conversion_costs): Don't call
kono
parents:
diff changeset
3141 build_type_conversion with a reference type; convert to the target
kono
parents:
diff changeset
3142 type and check its lvaluetude.
kono
parents:
diff changeset
3143 * cvt.c (convert_to_reference): Likewise.
kono
parents:
diff changeset
3144
kono
parents:
diff changeset
3145 * cvt.c (build_type_conversion_1): There will never be any need to
kono
parents:
diff changeset
3146 dereference references here now.
kono
parents:
diff changeset
3147
kono
parents:
diff changeset
3148 Thu Feb 9 00:37:47 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
3149
kono
parents:
diff changeset
3150 * except.c (expand_builtin_throw): Make sure we only `use' the
kono
parents:
diff changeset
3151 value of return_val_rtx.
kono
parents:
diff changeset
3152
kono
parents:
diff changeset
3153 Wed Feb 8 15:45:55 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3154
kono
parents:
diff changeset
3155 * parse.y (structsp): Don't complain about declaring a type being
kono
parents:
diff changeset
3156 defined to be a friend.
kono
parents:
diff changeset
3157
kono
parents:
diff changeset
3158 * decl2.c (warn_if_unknown_interface): Note the template in question
kono
parents:
diff changeset
3159 and the point of instantiation, for -falt-external-templates.
kono
parents:
diff changeset
3160 * lex.c (reinit_parse_for_method): Pass the decl to
kono
parents:
diff changeset
3161 warn_if_unknown_interface.
kono
parents:
diff changeset
3162 * pt.c (instantiate_template): Likewise.
kono
parents:
diff changeset
3163 (end_template_decl): Likewise.
kono
parents:
diff changeset
3164
kono
parents:
diff changeset
3165 * decl.c (set_nested_typename): Set IDENTIFIER_TYPE_VALUE on the
kono
parents:
diff changeset
3166 nested name again, to make local classes work a bit better.
kono
parents:
diff changeset
3167
kono
parents:
diff changeset
3168 * typeck.c (build_function_call_real): Dereference reference after
kono
parents:
diff changeset
3169 checking for incomplete type.
kono
parents:
diff changeset
3170
kono
parents:
diff changeset
3171 * init.c (build_new): Accept new of const and volatile types.
kono
parents:
diff changeset
3172
kono
parents:
diff changeset
3173 Wed Feb 8 14:04:16 1995 Jason Merrill <jason@deneb.cygnus.com>
kono
parents:
diff changeset
3174
kono
parents:
diff changeset
3175 * decl.c (grokdeclarator): Fix error message.
kono
parents:
diff changeset
3176
kono
parents:
diff changeset
3177 Wed Feb 8 03:16:15 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3178
kono
parents:
diff changeset
3179 * typeck.c (convert_for_initialization): Do bash arrays when
kono
parents:
diff changeset
3180 converting to a reference to non-array.
kono
parents:
diff changeset
3181
kono
parents:
diff changeset
3182 Tue Feb 7 15:50:33 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3183
kono
parents:
diff changeset
3184 * cvt.c (cp_convert): Don't call convert_to_reference, or
kono
parents:
diff changeset
3185 automatically dereference references. Do pass reference conversions
kono
parents:
diff changeset
3186 to cp_convert_to_pointer.
kono
parents:
diff changeset
3187 (cp_convert_to_pointer): Support references.
kono
parents:
diff changeset
3188
kono
parents:
diff changeset
3189 * call.c (build_method_call): Don't build up a reference to the
kono
parents:
diff changeset
3190 parameter here; let build_overload_call handle that.
kono
parents:
diff changeset
3191
kono
parents:
diff changeset
3192 * typeck.c (build_c_cast): Call convert_to_reference directly if
kono
parents:
diff changeset
3193 converting to a reference type.
kono
parents:
diff changeset
3194 * method.c (do_build_copy_constructor): Likewise.
kono
parents:
diff changeset
3195 * method.c (do_build_copy_constructor): Likewise.
kono
parents:
diff changeset
3196 (do_build_assign_ref): Likewise.
kono
parents:
diff changeset
3197
kono
parents:
diff changeset
3198 * call.c (build_method_call): Dereference a returned reference.
kono
parents:
diff changeset
3199 * typeck.c (build_function_call_real): Likewise.
kono
parents:
diff changeset
3200
kono
parents:
diff changeset
3201 * decl.c (xref_basetypes): Check for unions with basetypes here.
kono
parents:
diff changeset
3202 (xref_tag): Instead of here.
kono
parents:
diff changeset
3203
kono
parents:
diff changeset
3204 * pt.c (process_template_parm): Template type parm decls are
kono
parents:
diff changeset
3205 artificial.
kono
parents:
diff changeset
3206
kono
parents:
diff changeset
3207 Mon Feb 6 04:32:09 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3208
kono
parents:
diff changeset
3209 * parse.y (typed_declspecs): Add missing semicolon.
kono
parents:
diff changeset
3210 (do_xref_defn): Resurrect.
kono
parents:
diff changeset
3211 (named_class_head_sans_basetype): Move template specialization
kono
parents:
diff changeset
3212 definition cases to named_class_head_sans_basetype_defn.
kono
parents:
diff changeset
3213
kono
parents:
diff changeset
3214 * decl2.c (grokfield): Call pushdecl_class_level after setting the
kono
parents:
diff changeset
3215 TYPE_NAME, not before.
kono
parents:
diff changeset
3216
kono
parents:
diff changeset
3217 Sun Feb 5 02:50:45 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3218
kono
parents:
diff changeset
3219 * call.c (convert_harshness): Don't call sorry here. Don't allow
kono
parents:
diff changeset
3220 conversions between function pointer types if pedantic.
kono
parents:
diff changeset
3221
kono
parents:
diff changeset
3222 * pt.c (overload_template_name): Pass globalize=1 to xref_tag.
kono
parents:
diff changeset
3223
kono
parents:
diff changeset
3224 * lex.c (cons_up_default_function): Use the full name for the return
kono
parents:
diff changeset
3225 type of op=.
kono
parents:
diff changeset
3226
kono
parents:
diff changeset
3227 * decl.c (set_nested_typename): Don't worry about anonymous types,
kono
parents:
diff changeset
3228 as they already have a unique name.
kono
parents:
diff changeset
3229 (pushdecl): Remove redundant set_nested_typename
kono
parents:
diff changeset
3230 (xref_tag): Split out base handling into xref_basetypes.
kono
parents:
diff changeset
3231
kono
parents:
diff changeset
3232 * cp-tree.h (TYPE_INCOMPLETE): New macro; TEMPLATE_TYPE_PARMs are
kono
parents:
diff changeset
3233 not considered incomplete even though their definition is unknown.
kono
parents:
diff changeset
3234
kono
parents:
diff changeset
3235 * decl.c (xref_defn_tag): Lose.
kono
parents:
diff changeset
3236 (xref_tag): xref_next_defn = ! globalize.
kono
parents:
diff changeset
3237 (pushdecl): Don't set DECL_NESTED_TYPENAME on artificial decls. The
kono
parents:
diff changeset
3238 ones that should have it set will have it set by pushtag.
kono
parents:
diff changeset
3239 (pushdecl_class_level): Likewise.
kono
parents:
diff changeset
3240 (pushtag): Tidy up a bit.
kono
parents:
diff changeset
3241 (set_nested_typename): Push a decl for the nested typename from
kono
parents:
diff changeset
3242 here, rather than from xref_defn_tag.
kono
parents:
diff changeset
3243
kono
parents:
diff changeset
3244 * parse.y (do_xref): Lose.
kono
parents:
diff changeset
3245 (named_class_head): If we see 'class foo:' we know it's a
kono
parents:
diff changeset
3246 definition, so don't worry about base lists for non-definitions.
kono
parents:
diff changeset
3247
kono
parents:
diff changeset
3248 * pt.c (push_template_decls): Template parm decls are artificial.
kono
parents:
diff changeset
3249
kono
parents:
diff changeset
3250 * decl.c (duplicate_decls): Restore check for qualifier
kono
parents:
diff changeset
3251 disagreement for non-functions.
kono
parents:
diff changeset
3252 (decls_match): Remove check for qualifier disagreement.
kono
parents:
diff changeset
3253
kono
parents:
diff changeset
3254 Fri Feb 3 14:58:58 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3255
kono
parents:
diff changeset
3256 * decl.c (grok_reference_init): Convert initializer from
kono
parents:
diff changeset
3257 reference.
kono
parents:
diff changeset
3258 * typeck.c (convert_for_initialization): Likewise.
kono
parents:
diff changeset
3259
kono
parents:
diff changeset
3260 * decl.c (duplicate_decls): Propagate DECL_NESTED_TYPENAME.
kono
parents:
diff changeset
3261
kono
parents:
diff changeset
3262 * cvt.c (cp_convert): Don't convert to the same class type by just
kono
parents:
diff changeset
3263 tacking on a NOP_EXPR.
kono
parents:
diff changeset
3264 (convert_to_reference): Use comp_target_types instead of comptypes
kono
parents:
diff changeset
3265 so that we don't allow conversions two levels down.
kono
parents:
diff changeset
3266
kono
parents:
diff changeset
3267 Thu Feb 2 15:07:58 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3268
kono
parents:
diff changeset
3269 * class.c (build_vbase_path): Bash types to make the backend happy.
kono
parents:
diff changeset
3270 * cvt.c (build_up_reference): Bash the types bashed by
kono
parents:
diff changeset
3271 build_vbase_path to be reference types instead of pointer types.
kono
parents:
diff changeset
3272 (convert_to_reference): Likewise.
kono
parents:
diff changeset
3273
kono
parents:
diff changeset
3274 * typeck.c (build_c_cast): Don't strip NOPs if we're converting to a
kono
parents:
diff changeset
3275 reference type.
kono
parents:
diff changeset
3276
kono
parents:
diff changeset
3277 * parse.y (structsp): Put back error for 'struct B: public A;'.
kono
parents:
diff changeset
3278
kono
parents:
diff changeset
3279 Wed Feb 1 23:02:06 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
3280
kono
parents:
diff changeset
3281 * except.c: Add support for mips systems that don't define __mips
kono
parents:
diff changeset
3282 but do define mips, like Ultrix.
kono
parents:
diff changeset
3283
kono
parents:
diff changeset
3284 Wed Feb 1 22:39:07 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
3285
kono
parents:
diff changeset
3286 * except.c: Add support for exception handling on the Alpha.
kono
parents:
diff changeset
3287
kono
parents:
diff changeset
3288 Wed Feb 1 10:12:14 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
3289
kono
parents:
diff changeset
3290 * decl2.c (finish_file): Fix bug in Jan 31st change.
kono
parents:
diff changeset
3291
kono
parents:
diff changeset
3292 Tue Jan 31 16:59:15 1995 Gerald Baumgartner <gb@lorenzo.cs.purdue.edu>
kono
parents:
diff changeset
3293
kono
parents:
diff changeset
3294 * sig.c (build_signature_pointer_or_reference_type): Don't set
kono
parents:
diff changeset
3295 IS_AGGR_TYPE for signature pointers/reference so expand_default_init
kono
parents:
diff changeset
3296 doesn't expect to find a copy constructor.
kono
parents:
diff changeset
3297 * call.c (build_method_call): Treat signature pointers/reference
kono
parents:
diff changeset
3298 as if IS_AGGR_TYPE were set.
kono
parents:
diff changeset
3299
kono
parents:
diff changeset
3300 Tue Jan 31 13:28:56 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
3301
kono
parents:
diff changeset
3302 * gc.c (get_typeid): Pawn off error messages to build_t_desc.
kono
parents:
diff changeset
3303 (build_t_desc): Inform the user here if they try and build
kono
parents:
diff changeset
3304 with -frtti and don't include <typeinfo.h>.
kono
parents:
diff changeset
3305
kono
parents:
diff changeset
3306 * decl2.c (finish_prevtable_vardecl): Support rescanning.
kono
parents:
diff changeset
3307 (finish_file): Move finish_prevtable_vardecl up to before the global
kono
parents:
diff changeset
3308 initializers are done as tdecls are initialized in the global
kono
parents:
diff changeset
3309 initializer. Also Pick up any new tdecls or vtables needed by
kono
parents:
diff changeset
3310 synthesized methods.
kono
parents:
diff changeset
3311
kono
parents:
diff changeset
3312 * class.c (finish_struct): Simplify. We have to do rtti scanning at
kono
parents:
diff changeset
3313 end, so we might as well do all of it there.
kono
parents:
diff changeset
3314
kono
parents:
diff changeset
3315 Tue Jan 31 05:35:02 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3316
kono
parents:
diff changeset
3317 * call.c (build_method_call): Fix -fthis-is-variable for 32-bit
kono
parents:
diff changeset
3318 targets, too.
kono
parents:
diff changeset
3319
kono
parents:
diff changeset
3320 Tue Jan 31 00:11:04 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
3321
kono
parents:
diff changeset
3322 * decl2.c (finish_prevtable_vardecl): New routine, mostly split from
kono
parents:
diff changeset
3323 finish_vtable_vardecl. It has the first half functionality from
kono
parents:
diff changeset
3324 that routine.
kono
parents:
diff changeset
3325 * decl2.c (finish_vtable_vardecl): Update to not include stuff not
kono
parents:
diff changeset
3326 in finish_prevtable_vardecl.
kono
parents:
diff changeset
3327 * decl2.c (finish_file): Call finish_prevtable_vardecl.
kono
parents:
diff changeset
3328 * gc.c (build_generic_desc): Allow it to be called when not at the
kono
parents:
diff changeset
3329 global binding layer, but behave as if we were.
kono
parents:
diff changeset
3330 (build_t_desc): Rearrange a bit so that it really works and is
kono
parents:
diff changeset
3331 easier to follow.
kono
parents:
diff changeset
3332 * class.c (finish_struct): Don't decide on tdecls here, as we have
kono
parents:
diff changeset
3333 to wait until the end of the file in general to decide whether or
kono
parents:
diff changeset
3334 not they come out.
kono
parents:
diff changeset
3335
kono
parents:
diff changeset
3336 Mon Jan 30 01:00:40 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3337
kono
parents:
diff changeset
3338 * init.c (build_delete): Check access to operator delete before
kono
parents:
diff changeset
3339 calling the destructor.
kono
parents:
diff changeset
3340 * method.c (build_opfncall, DELETE_EXPR): build_method is allowed to
kono
parents:
diff changeset
3341 return error_mark_node.
kono
parents:
diff changeset
3342 * call.c (build_method_call): Use the one-argument op delete even if
kono
parents:
diff changeset
3343 it's an error.
kono
parents:
diff changeset
3344
kono
parents:
diff changeset
3345 * init.c (build_new): Fix -fthis-is-variable support.
kono
parents:
diff changeset
3346 * call.c (build_method_call): Likewise.
kono
parents:
diff changeset
3347
kono
parents:
diff changeset
3348 * call.c (convert_harshness): Make conversion from a pointer to bool
kono
parents:
diff changeset
3349 worse than conversion to another pointer.
kono
parents:
diff changeset
3350
kono
parents:
diff changeset
3351 Sat Jan 28 16:46:10 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3352
kono
parents:
diff changeset
3353 * init.c (build_new): Check new return value if -fcheck-new.
kono
parents:
diff changeset
3354
kono
parents:
diff changeset
3355 * lex.c (check_newline): Clear end_of_file when we're done, too.
kono
parents:
diff changeset
3356
kono
parents:
diff changeset
3357 Sat Jan 28 10:38:39 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
3358
kono
parents:
diff changeset
3359 * decl2.c (finish_vtable_vardecl): Make rtti TD tables follow
kono
parents:
diff changeset
3360 vtables whereever they go.
kono
parents:
diff changeset
3361
kono
parents:
diff changeset
3362 * gc.c (build_t_desc): Remove old way of setting it up, as it wasn't
kono
parents:
diff changeset
3363 right.
kono
parents:
diff changeset
3364
kono
parents:
diff changeset
3365 Sat Jan 28 09:10:44 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
3366
kono
parents:
diff changeset
3367 * decl2.c (finish_vtable_vardecl): Now set the
kono
parents:
diff changeset
3368 interface/implementation of vtables on the first virtual function,
kono
parents:
diff changeset
3369 if one exists, otherwise we use the old method. This is a major win
kono
parents:
diff changeset
3370 in terms of cutting down the size of objects and executables in
kono
parents:
diff changeset
3371 terms of text space and data space. Now most of the savings that
kono
parents:
diff changeset
3372 #pragma interface/implementation gives is automatic in a fair number
kono
parents:
diff changeset
3373 of cases.
kono
parents:
diff changeset
3374
kono
parents:
diff changeset
3375 Sat Jan 28 04:57:33 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3376
kono
parents:
diff changeset
3377 * decl.c (grokdeclarator): Discard the template parameters in a
kono
parents:
diff changeset
3378 template constructor declaration so that the function is always
kono
parents:
diff changeset
3379 named constructor_name (ctype).
kono
parents:
diff changeset
3380
kono
parents:
diff changeset
3381 * lex.c (check_newline): Use ungetc to put back the character before
kono
parents:
diff changeset
3382 calling HANDLE_PRAGMA.
kono
parents:
diff changeset
3383
kono
parents:
diff changeset
3384 Fri Jan 27 17:23:47 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
3385
kono
parents:
diff changeset
3386 * decl2.c (check_classfn): If the cname is T<int> and fn_name is T,
kono
parents:
diff changeset
3387 make sure we still match them.
kono
parents:
diff changeset
3388
kono
parents:
diff changeset
3389 Fri Jan 27 16:32:10 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3390
kono
parents:
diff changeset
3391 * parse.y: Add END_OF_LINE token.
kono
parents:
diff changeset
3392
kono
parents:
diff changeset
3393 * lex.c (check_newline): Set linemode when we see a # directive, and
kono
parents:
diff changeset
3394 unset it when we're done. Turn all 'return's into 'goto skipline'.
kono
parents:
diff changeset
3395 Fix all uses of '\n', since we won't see it anymore. Put back the
kono
parents:
diff changeset
3396 character we read before checking for a sysv or target pragma.
kono
parents:
diff changeset
3397 (real_yylex): If we see an EOF in linemode, return END_OF_LINE.
kono
parents:
diff changeset
3398 (handle_sysv_pragma): Don't look at the input stream; quit when we
kono
parents:
diff changeset
3399 see an END_OF_LINE token.
kono
parents:
diff changeset
3400
kono
parents:
diff changeset
3401 * input.c (getch): Return EOF if we're in line mode and at the end
kono
parents:
diff changeset
3402 of a line.
kono
parents:
diff changeset
3403 (put_back): Don't put back an EOF.
kono
parents:
diff changeset
3404
kono
parents:
diff changeset
3405 Thu Jan 26 19:26:34 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
3406
kono
parents:
diff changeset
3407 * except.c (expand_throw): Do the newing of the exception object
kono
parents:
diff changeset
3408 before we load the type descriptor or the address so that we don't
kono
parents:
diff changeset
3409 wipe any of the values out.
kono
parents:
diff changeset
3410
kono
parents:
diff changeset
3411 Thu Jan 26 19:20:00 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
3412
kono
parents:
diff changeset
3413 * except.c (init_exception_processing): Don't use r12 on the rs6000.
kono
parents:
diff changeset
3414
kono
parents:
diff changeset
3415 Tue Jan 24 16:36:31 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3416
kono
parents:
diff changeset
3417 * decl.c (grokparms): Don't try to build up a reference at this point.
kono
parents:
diff changeset
3418
kono
parents:
diff changeset
3419 * typeck2.c (build_functional_cast): Don't assume that a NOP_EXPR
kono
parents:
diff changeset
3420 will suffice to convert from integer_zero_node.
kono
parents:
diff changeset
3421
kono
parents:
diff changeset
3422 Wed Jan 25 15:02:09 1995 David S. Miller <davem@nadzieja.rutgers.edu>
kono
parents:
diff changeset
3423
kono
parents:
diff changeset
3424 * class.c (instantiate_type): Change error message text.
kono
parents:
diff changeset
3425 * typeck2.c (store_init_value): Likewise.
kono
parents:
diff changeset
3426
kono
parents:
diff changeset
3427 Mon Jan 23 21:57:14 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
3428
kono
parents:
diff changeset
3429 * pt.c (tsubst): When we copy a node, don't forget to copy
kono
parents:
diff changeset
3430 TREE_CHAIN, we use it later.
kono
parents:
diff changeset
3431
kono
parents:
diff changeset
3432 Mon Jan 23 03:33:47 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3433
kono
parents:
diff changeset
3434 * typeck.c (convert_for_assignment): Initialize variable before use.
kono
parents:
diff changeset
3435
kono
parents:
diff changeset
3436 Fri Jan 20 01:17:59 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3437
kono
parents:
diff changeset
3438 * g++.c (main): Link with both libstdc++ and libg++ if called as
kono
parents:
diff changeset
3439 something ending with "g++", otherwise only libstdc++. Move -lm to
kono
parents:
diff changeset
3440 the end of the line.
kono
parents:
diff changeset
3441
kono
parents:
diff changeset
3442 Thu Jan 19 15:43:11 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3443
kono
parents:
diff changeset
3444 * call.c (build_method_call): Don't mess with 'this' before calling
kono
parents:
diff changeset
3445 compute_conversion_costs.
kono
parents:
diff changeset
3446
kono
parents:
diff changeset
3447 Wed Jan 18 15:40:55 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3448
kono
parents:
diff changeset
3449 * search.c (get_matching_virtual): Give line number for previous
kono
parents:
diff changeset
3450 declaration.
kono
parents:
diff changeset
3451
kono
parents:
diff changeset
3452 * call.c (convert_harshness): Handle conversions to references
kono
parents:
diff changeset
3453 better.
kono
parents:
diff changeset
3454
kono
parents:
diff changeset
3455 * cvt.c (build_up_reference): OK, handle {MIN,MAX}_EXPR *properly*.
kono
parents:
diff changeset
3456
kono
parents:
diff changeset
3457 Wed Jan 18 15:21:38 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
3458
kono
parents:
diff changeset
3459 * class.c (instantiate_type): Use DECL_CHAIN to walk lists instead,
kono
parents:
diff changeset
3460 as the TREE_CHAIN for methods will take us to the next differently
kono
parents:
diff changeset
3461 named function, DECL_CHAIN won't.
kono
parents:
diff changeset
3462
kono
parents:
diff changeset
3463 Wed Jan 18 14:26:59 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3464
kono
parents:
diff changeset
3465 * tree.c (lvalue_p): Handle {MIN,MAX}_EXPR.
kono
parents:
diff changeset
3466
kono
parents:
diff changeset
3467 * decl2.c (lang_decode_option): -Wall implies -Wparentheses.
kono
parents:
diff changeset
3468 warn_parentheses defaults to 0.
kono
parents:
diff changeset
3469
kono
parents:
diff changeset
3470 * decl.c (grokparms): Put back call to require_instantiated_type.
kono
parents:
diff changeset
3471
kono
parents:
diff changeset
3472 Tue Jan 17 19:56:15 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
3473
kono
parents:
diff changeset
3474 * except.c (exception_section): Use the data section on the rs6000.
kono
parents:
diff changeset
3475 Change calling convention for named_section.
kono
parents:
diff changeset
3476
kono
parents:
diff changeset
3477 Wed Jan 17 18:20:57 1994 Fergus Henderson <fjh@munta.cs.mu.oz.au>
kono
parents:
diff changeset
3478
kono
parents:
diff changeset
3479 * cp-tree.h: Make if (x=0) warn with wall
kono
parents:
diff changeset
3480 * parse.y: Make if (x=0) warn with wall
kono
parents:
diff changeset
3481
kono
parents:
diff changeset
3482 Tue Jan 17 14:12:00 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3483
kono
parents:
diff changeset
3484 * decl.c (BOOL_TYPE_SIZE): BITS_PER_WORD if SLOW_BYTE_ACCESS,
kono
parents:
diff changeset
3485 BITS_PER_UNIT otherwise.
kono
parents:
diff changeset
3486
kono
parents:
diff changeset
3487 * search.c (get_matching_virtual): Don't check the binfo if the
kono
parents:
diff changeset
3488 types are the same.
kono
parents:
diff changeset
3489
kono
parents:
diff changeset
3490 * cvt.c (cp_convert): Just call truthvalue_conversion to convert to
kono
parents:
diff changeset
3491 bool.
kono
parents:
diff changeset
3492
kono
parents:
diff changeset
3493 Mon Jan 16 13:28:48 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3494
kono
parents:
diff changeset
3495 * various: Use boolean_type_node, boolean_true_node,
kono
parents:
diff changeset
3496 boolean_false_node.
kono
parents:
diff changeset
3497
kono
parents:
diff changeset
3498 * search.c (get_matching_virtual): Allow covariant returns that
kono
parents:
diff changeset
3499 don't require pointer adjustment.
kono
parents:
diff changeset
3500
kono
parents:
diff changeset
3501 * typeck.c (build_conditional_expr): Don't call default_conversion
kono
parents:
diff changeset
3502 on ifexp.
kono
parents:
diff changeset
3503
kono
parents:
diff changeset
3504 * cvt.c (build_up_reference): Handle MIN_EXPR and MAX_EXPR.
kono
parents:
diff changeset
3505
kono
parents:
diff changeset
3506 * decl.c (grokdeclarator): Upgrade warning about &const to pedwarn.
kono
parents:
diff changeset
3507
kono
parents:
diff changeset
3508 Sun Jan 15 22:17:32 1995 David Binderman <dcb@lovat.fmrco.COM>
kono
parents:
diff changeset
3509
kono
parents:
diff changeset
3510 * pt.c (do_function_instantiation): Free targs once we're done.
kono
parents:
diff changeset
3511
kono
parents:
diff changeset
3512 Sun Jan 15 22:17:32 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3513
kono
parents:
diff changeset
3514 * decl.c (BOOL_TYPE_SIZE): Defaults to BITS_PER_WORD.
kono
parents:
diff changeset
3515 (init_decl_processing): Use BOOL_TYPE_SIZE instead of CHAR_TYPE_SIZE
kono
parents:
diff changeset
3516 for bool.
kono
parents:
diff changeset
3517
kono
parents:
diff changeset
3518 Sat Jan 14 05:33:55 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3519
kono
parents:
diff changeset
3520 * decl2.c (finish_file): We need to mess up if there are any
kono
parents:
diff changeset
3521 variables in the list, not just if there is one with a constructor.
kono
parents:
diff changeset
3522
kono
parents:
diff changeset
3523 Fri Jan 13 14:42:55 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3524
kono
parents:
diff changeset
3525 * decl.c (duplicate_decls): Propagate DECL_STATIC_{CON,DE}STRUCTOR.
kono
parents:
diff changeset
3526 (finish_function): Handle DECL_STATIC_{CON,DE}STRUCTOR.
kono
parents:
diff changeset
3527 (finish_function): Trust rest_of_compilation.
kono
parents:
diff changeset
3528
kono
parents:
diff changeset
3529 * decl2.c (finish_file): Also call functions designated as static
kono
parents:
diff changeset
3530 constructors/destructors.
kono
parents:
diff changeset
3531
kono
parents:
diff changeset
3532 * decl.c (grokdeclarator): Allow access decls of operator functions.
kono
parents:
diff changeset
3533 (grokparms): Only do convert_for_initialization if the initializer
kono
parents:
diff changeset
3534 has a type.
kono
parents:
diff changeset
3535 (duplicate_decls): Put back push_obstacks_nochange call.
kono
parents:
diff changeset
3536
kono
parents:
diff changeset
3537 * lex.c (real_yylex): Downgrade complaint about the escape sequence
kono
parents:
diff changeset
3538 being too large from pedwarn to warning.
kono
parents:
diff changeset
3539
kono
parents:
diff changeset
3540 * decl.c (grokdeclarator): Don't complain about long long in system
kono
parents:
diff changeset
3541 headers.
kono
parents:
diff changeset
3542
kono
parents:
diff changeset
3543 * lex.c (real_yylex): Handle digraphs.
kono
parents:
diff changeset
3544
kono
parents:
diff changeset
3545 Thu Jan 12 12:17:24 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3546
kono
parents:
diff changeset
3547 * decl.c (init_decl_processing): -f{no-,}strict-prototype only
kono
parents:
diff changeset
3548 affects C linkage declarations now.
kono
parents:
diff changeset
3549
kono
parents:
diff changeset
3550 * typeck.c (comp_target_types): Grok simple contravariant conversions.
kono
parents:
diff changeset
3551 (common_type): t1 and t2 are interchangeable.
kono
parents:
diff changeset
3552
kono
parents:
diff changeset
3553 * various: Test return value of comp_target_types differently in
kono
parents:
diff changeset
3554 different places; it now returns -1 for a contravariant conversion
kono
parents:
diff changeset
3555 (which is fine in symmetric cases).
kono
parents:
diff changeset
3556
kono
parents:
diff changeset
3557 (common_type): Prefer long double to double even when
kono
parents:
diff changeset
3558 they have the same precision.
kono
parents:
diff changeset
3559
kono
parents:
diff changeset
3560 * decl.c (grokparms): Call convert_for_initialization to check
kono
parents:
diff changeset
3561 default arguments.
kono
parents:
diff changeset
3562
kono
parents:
diff changeset
3563 * init.c (build_new): void_type_node has a size (of 0).
kono
parents:
diff changeset
3564
kono
parents:
diff changeset
3565 * decl.c (decls_match): Also check for agreement of TREE_READONLY
kono
parents:
diff changeset
3566 and TREE_THIS_VOLATILE.
kono
parents:
diff changeset
3567 (push_class_level_binding): Properly handle shadowing of
kono
parents:
diff changeset
3568 nested tags by fields.
kono
parents:
diff changeset
3569
kono
parents:
diff changeset
3570 * search.c (dfs_pushdecls): Likewise.
kono
parents:
diff changeset
3571
kono
parents:
diff changeset
3572 * decl2.c (finish_file): Don't second-guess self-initialization.
kono
parents:
diff changeset
3573
kono
parents:
diff changeset
3574 * cvt.c (convert_to_reference): Work with expr directly, rather than
kono
parents:
diff changeset
3575 a copy.
kono
parents:
diff changeset
3576
kono
parents:
diff changeset
3577 * decl.c (push_overloaded_decl): Only shadow artificial TYPE_DECLs.
kono
parents:
diff changeset
3578
kono
parents:
diff changeset
3579 * init.c (add_friend): Downgrade duplicate friend message from
kono
parents:
diff changeset
3580 pedwarn to warning.
kono
parents:
diff changeset
3581
kono
parents:
diff changeset
3582 * decl.c (duplicate_decls): Push obstacks before calling common_type.
kono
parents:
diff changeset
3583
kono
parents:
diff changeset
3584 Thu Jan 12 17:15:21 1995 Michael Ben-Gershon <mybg@cs.huji.ac.il>
kono
parents:
diff changeset
3585
kono
parents:
diff changeset
3586 * except.c (push_eh_entry): Set LABEL_PRESERVE_P flag for
kono
parents:
diff changeset
3587 exception table labels.
kono
parents:
diff changeset
3588 (expand_start_all_catch): Likewise.
kono
parents:
diff changeset
3589 (expand_leftover_cleanups): Likewise.
kono
parents:
diff changeset
3590 (expand_end_catch_block): Likewise.
kono
parents:
diff changeset
3591 * except.c (make_first_label): New function.
kono
parents:
diff changeset
3592 (expand_start_all_catch): Add a call to make_first_label() before
kono
parents:
diff changeset
3593 using a label as a jump destination.
kono
parents:
diff changeset
3594 (expand_end_all_catch): Likewise.
kono
parents:
diff changeset
3595 (expand_leftover_cleanups): Likewise.
kono
parents:
diff changeset
3596 (expand_end_catch_block): Likewise.
kono
parents:
diff changeset
3597 (expand_builtin_throw): Likewise.
kono
parents:
diff changeset
3598 (expand_throw): Likewise.
kono
parents:
diff changeset
3599 * except.c: Add ARM processor support for exception handling.
kono
parents:
diff changeset
3600
kono
parents:
diff changeset
3601 Thu Jan 12 12:17:24 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3602
kono
parents:
diff changeset
3603 (complete_array_type): Copy code from C frontend.
kono
parents:
diff changeset
3604
kono
parents:
diff changeset
3605 * lex.c (real_yylex): Don't multiply the length of a wide string
kono
parents:
diff changeset
3606 literal by WCHAR_BYTES.
kono
parents:
diff changeset
3607
kono
parents:
diff changeset
3608 * decl.c (pushdecl): Check for redeclaration of wchar_t here.
kono
parents:
diff changeset
3609 (duplicate_decls): Instead of here.
kono
parents:
diff changeset
3610 (define_label): Complain about a label named wchar_t.
kono
parents:
diff changeset
3611 (grokdeclarator): Complain about declarations of
kono
parents:
diff changeset
3612 operator-function-ids as non-functions.
kono
parents:
diff changeset
3613
kono
parents:
diff changeset
3614 * typeck.c (unary_complex_lvalue): Also wrap prefix -- and ++ in
kono
parents:
diff changeset
3615 COMPOUND_EXPRs.
kono
parents:
diff changeset
3616 (build_unary_op): Wrap unary plus in a NON_LVALUE_EXPR.
kono
parents:
diff changeset
3617
kono
parents:
diff changeset
3618 * lex.c (real_yylex): Don't skip whitespace when reading the next
kono
parents:
diff changeset
3619 character after ->.
kono
parents:
diff changeset
3620
kono
parents:
diff changeset
3621 Wed Jan 11 16:32:49 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
3622
kono
parents:
diff changeset
3623 * except.c: Allow cc1plus to be built with native compiler on rs6000.
kono
parents:
diff changeset
3624 (expand_start_all_catch): Add assemble_external calls for various
kono
parents:
diff changeset
3625 routines we call.
kono
parents:
diff changeset
3626 (expand_leftover_cleanups): Likewise.
kono
parents:
diff changeset
3627 (expand_start_catch_block): Likewise.
kono
parents:
diff changeset
3628 (do_unwind): Likewise.
kono
parents:
diff changeset
3629 (expand_builtin_throw): Likewise.
kono
parents:
diff changeset
3630
kono
parents:
diff changeset
3631 Wed Jan 11 01:05:42 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3632
kono
parents:
diff changeset
3633 * decl.c (pushtag): Only look for a previous decl in the current
kono
parents:
diff changeset
3634 binding level. Use explicit global scope in DECL_NESTED_TYPENAME.
kono
parents:
diff changeset
3635
kono
parents:
diff changeset
3636 * gxx.gperf: Add __signature__ and __sigof__ keywords.
kono
parents:
diff changeset
3637
kono
parents:
diff changeset
3638 * decl2.c (lang_decode_option): -ansi does not set flag_no_asm. It
kono
parents:
diff changeset
3639 does set flag_no_gnu_keywords and flag_operator_names.
kono
parents:
diff changeset
3640
kono
parents:
diff changeset
3641 * lex.c (init_lex): 'overload' is not a keyword unless -traditional.
kono
parents:
diff changeset
3642 Unset extension keywords if -fno-gnu-keywords.
kono
parents:
diff changeset
3643 Allow operator names ('bitand') if -foperator-names.
kono
parents:
diff changeset
3644 Never unset 'asm'; -fno-asm only affects 'typeof'.
kono
parents:
diff changeset
3645
kono
parents:
diff changeset
3646 * decl.c (lookup_name_real): The got_object special lookup only
kono
parents:
diff changeset
3647 applies to types.
kono
parents:
diff changeset
3648
kono
parents:
diff changeset
3649 Tue Jan 10 18:07:51 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3650
kono
parents:
diff changeset
3651 * spew.c (yylex): Also use DECL_NESTED_TYPENAME if got_object is set.
kono
parents:
diff changeset
3652
kono
parents:
diff changeset
3653 * parse.y (primary): Unset got_object after all rules that use the
kono
parents:
diff changeset
3654 'object' nonterminal.
kono
parents:
diff changeset
3655 (object): Set got_object.
kono
parents:
diff changeset
3656
kono
parents:
diff changeset
3657 * lex.h: Declare got_object.
kono
parents:
diff changeset
3658
kono
parents:
diff changeset
3659 * decl.c (lookup_name_real): Also lookup names in the context of an
kono
parents:
diff changeset
3660 object specified.
kono
parents:
diff changeset
3661
kono
parents:
diff changeset
3662 Tue Jan 10 14:30:30 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
3663
kono
parents:
diff changeset
3664 * typeck.c (get_member_function_from_ptrfunc): Use ptrdiff_type_node
kono
parents:
diff changeset
3665 for things that have to be added to pointers, not size_type. Cures
kono
parents:
diff changeset
3666 problems with pointer to members on Alphas.
kono
parents:
diff changeset
3667 (build_binary_op_nodefault): Likewise.
kono
parents:
diff changeset
3668 (get_delta_difference_: Likewise.
kono
parents:
diff changeset
3669 (build_ptrmemfunc): Likewise.
kono
parents:
diff changeset
3670
kono
parents:
diff changeset
3671 Tue Jan 10 01:49:25 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3672
kono
parents:
diff changeset
3673 * decl.c (pushtag): Stick the new decl in TYPE_NAME before pushing
kono
parents:
diff changeset
3674 it.
kono
parents:
diff changeset
3675
kono
parents:
diff changeset
3676 * typeck.c (build_component_ref): Don't build up a COMPONENT_REF
kono
parents:
diff changeset
3677 when dealing with overloaded member functions; just act like
kono
parents:
diff changeset
3678 build_offset_ref.
kono
parents:
diff changeset
3679 (commonparms): Remove misleading comment.
kono
parents:
diff changeset
3680
kono
parents:
diff changeset
3681 * decl.c (duplicate_decls): Complain about repeated default
kono
parents:
diff changeset
3682 arguments here.
kono
parents:
diff changeset
3683 (redeclaration_error_message): Instead of here.
kono
parents:
diff changeset
3684 (pushdecl): Complain about missing default arguments here.
kono
parents:
diff changeset
3685 (grokparms): Instead of here.
kono
parents:
diff changeset
3686 (lookup_name_current_level): Also match on DECL_ASSEMBLER_NAME.
kono
parents:
diff changeset
3687 (grok_reference_init): Do not complain about missing initializer if
kono
parents:
diff changeset
3688 declared 'extern'.
kono
parents:
diff changeset
3689
kono
parents:
diff changeset
3690 * search.c (lookup_field): Don't return a TYPE_DECL if there is a
kono
parents:
diff changeset
3691 function alternative and want_type is not set.
kono
parents:
diff changeset
3692
kono
parents:
diff changeset
3693 Mon Jan 9 18:16:23 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3694
kono
parents:
diff changeset
3695 * decl.c (pushtag): Don't set TYPE_NAME to an identifier. Do push
kono
parents:
diff changeset
3696 the decl when the type has no TYPE_NAME.
kono
parents:
diff changeset
3697 (lookup_nested_type): Don't assume that type has TYPE_NAME set.
kono
parents:
diff changeset
3698 (lookup_name_real): Call lookup_field with want_type =
kono
parents:
diff changeset
3699 prefer_type.
kono
parents:
diff changeset
3700
kono
parents:
diff changeset
3701 * search.c (lookup_field): Handle want_type properly in the presence
kono
parents:
diff changeset
3702 of fields with the same name.
kono
parents:
diff changeset
3703
kono
parents:
diff changeset
3704 * decl.c (set_nested_typename): Set nested name for file-scope types
kono
parents:
diff changeset
3705 to include leading ::.
kono
parents:
diff changeset
3706 (pushdecl): Set the nested typename if the decl doesn't have one,
kono
parents:
diff changeset
3707 rather than if the type's canonical decl doesn't have one.
kono
parents:
diff changeset
3708
kono
parents:
diff changeset
3709 Mon Jan 9 03:44:33 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3710
kono
parents:
diff changeset
3711 * typeck.c (convert_for_assignment): Complain about contravariance
kono
parents:
diff changeset
3712 violation here.
kono
parents:
diff changeset
3713 (comp_target_types): Instead of here.
kono
parents:
diff changeset
3714 (build_unary_op): resolve_offset_ref before checking for a valid
kono
parents:
diff changeset
3715 type.
kono
parents:
diff changeset
3716
kono
parents:
diff changeset
3717 * spew.c (yylex): Decrement looking_for_typename after we see a
kono
parents:
diff changeset
3718 _DEFN.
kono
parents:
diff changeset
3719
kono
parents:
diff changeset
3720 * decl.c (pushdecl): Don't install an artificial TYPE_DECL in
kono
parents:
diff changeset
3721 IDENTIFIER_LOCAL_VALUE if we already have a decl with that name.
kono
parents:
diff changeset
3722
kono
parents:
diff changeset
3723 * typeck.c (convert_for_assignment): Converting pointers to bool
kono
parents:
diff changeset
3724 does not need a cast.
kono
parents:
diff changeset
3725
kono
parents:
diff changeset
3726 Sun Jan 8 18:16:45 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3727
kono
parents:
diff changeset
3728 * class.c (instantiate_type): Initialize nsubsts parm.
kono
parents:
diff changeset
3729
kono
parents:
diff changeset
3730 * pt.c (do_function_instantiation): Likewise.
kono
parents:
diff changeset
3731
kono
parents:
diff changeset
3732 Sat Jan 7 14:37:05 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3733
kono
parents:
diff changeset
3734 * pt.c (tsubst): Use TREE_STATIC instead of DECL_INLINE &&
kono
parents:
diff changeset
3735 DECL_SAVED_INSNS to determine whether or not we've seen a definition
kono
parents:
diff changeset
3736 of this function.
kono
parents:
diff changeset
3737 (instantiate_template): Likewise.
kono
parents:
diff changeset
3738
kono
parents:
diff changeset
3739 * call.c (convert_harshness): Allow const reference binding when
kono
parents:
diff changeset
3740 called from the overloading code, but not when called from
kono
parents:
diff changeset
3741 can_convert (since it isn't a conversion).
kono
parents:
diff changeset
3742 (convert_harshness): Put back some disabled code.
kono
parents:
diff changeset
3743
kono
parents:
diff changeset
3744 Fri Jan 6 14:10:57 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3745
kono
parents:
diff changeset
3746 * call.c (convert_harshness): There is no implicit conversion from
kono
parents:
diff changeset
3747 void* to other pointer types (unless the parameter is (void*)0).
kono
parents:
diff changeset
3748 (convert_harshness): Non-lvalues do not convert to reference types.
kono
parents:
diff changeset
3749
kono
parents:
diff changeset
3750 * class.c (finish_struct_methods): Still set
kono
parents:
diff changeset
3751 TYPE_HAS_{INT,REAL}_CONVERSION.
kono
parents:
diff changeset
3752
kono
parents:
diff changeset
3753 * call.c (can_convert): Don't use aggregate initialization.
kono
parents:
diff changeset
3754
kono
parents:
diff changeset
3755 * cp-tree.h: Declare lookup_conversions.
kono
parents:
diff changeset
3756
kono
parents:
diff changeset
3757 Thu Jan 5 21:08:00 1995 Mike Stump <mrs@cygnus.com>
kono
parents:
diff changeset
3758
kono
parents:
diff changeset
3759 * parse.y (simple_stmt): Fix duplicate case value error messages to
kono
parents:
diff changeset
3760 be more readable.
kono
parents:
diff changeset
3761
kono
parents:
diff changeset
3762 Wed Jan 4 16:44:19 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3763
kono
parents:
diff changeset
3764 * cvt.c (build_type_conversion): Total rewrite to use
kono
parents:
diff changeset
3765 convert_harshness instead of reproducing conversion logic here. Now
kono
parents:
diff changeset
3766 much shorter.
kono
parents:
diff changeset
3767
kono
parents:
diff changeset
3768 * call.c (convert_harshness): Support conversions to bool.
kono
parents:
diff changeset
3769 (can_convert): Checks whether a conversion is less harsh
kono
parents:
diff changeset
3770 than USER_CODE, for build_type_conversion.
kono
parents:
diff changeset
3771
kono
parents:
diff changeset
3772 * search.c (add_conversions): Function for passing to dfs_walk which
kono
parents:
diff changeset
3773 adds all the type conversion operators in the current type to a list.
kono
parents:
diff changeset
3774 (lookup_conversions): Calls dfs_walk with add_conversions and return
kono
parents:
diff changeset
3775 the list.
kono
parents:
diff changeset
3776 (dfs_walk): Don't require a qfn.
kono
parents:
diff changeset
3777
kono
parents:
diff changeset
3778 * cp-tree.h: Lose CLASSTYPE_CONVERSIONS hackery.
kono
parents:
diff changeset
3779 (CLASSTYPE_FIRST_CONVERSION): Points to elt 1 of CLASSTYPE_METHOD_VEC.
kono
parents:
diff changeset
3780
kono
parents:
diff changeset
3781 * class.c (finish_struct_bits): Lose CLASSTYPE_CONVERSIONS hackery.
kono
parents:
diff changeset
3782 (grow_method): A separate function for building onto the growing
kono
parents:
diff changeset
3783 method vector.
kono
parents:
diff changeset
3784 (finish_struct_methods): Use it. Put all type conversion operators
kono
parents:
diff changeset
3785 right after the constructors. Perhaps we should sort the methods
kono
parents:
diff changeset
3786 alphabetically?
kono
parents:
diff changeset
3787
kono
parents:
diff changeset
3788 Mon Jan 2 14:42:58 1995 Jason Merrill <jason@phydeaux.cygnus.com>
kono
parents:
diff changeset
3789
kono
parents:
diff changeset
3790 * call.c (build_method_call): Lose another misleading shortcut.
kono
parents:
diff changeset
3791
kono
parents:
diff changeset
3792
kono
parents:
diff changeset
3793 Copyright (C) 1995 Free Software Foundation, Inc.
kono
parents:
diff changeset
3794
kono
parents:
diff changeset
3795 Copying and distribution of this file, with or without modification,
kono
parents:
diff changeset
3796 are permitted in any medium without royalty provided the copyright
kono
parents:
diff changeset
3797 notice and this notice are preserved.