annotate gcc/cp/ChangeLog-2001 @ 120:f93fa5091070

fix conv1.c
author mir3636
date Thu, 08 Mar 2018 14:53:42 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 2001-12-29 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
2
kono
parents:
diff changeset
3 * call.c (build_user_type_conversion_1): Use my_friendly_assert
kono
parents:
diff changeset
4 rather than if ... abort.
kono
parents:
diff changeset
5 * cvt.c (convert_to_reference): Likewise.
kono
parents:
diff changeset
6 * semantics.c (setup_vtbl_ptr): Likewise.
kono
parents:
diff changeset
7 * pt.c (lookup_template_class): Comment typo.
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 2001-12-29 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 PR c++/5125
kono
parents:
diff changeset
12 * pt.c (push_template_decl_real): Make sure DECL has
kono
parents:
diff changeset
13 DECL_LANG_SPECIFIC.
kono
parents:
diff changeset
14
kono
parents:
diff changeset
15 2001-12-29 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 PR c++/335
kono
parents:
diff changeset
18 * init.c (resolve_offset_ref): Copy cv qualifiers of this pointer
kono
parents:
diff changeset
19 for non-reference fields.
kono
parents:
diff changeset
20 * typeck.c (require_complete_type): Use resolve_offset_ref).
kono
parents:
diff changeset
21
kono
parents:
diff changeset
22 2001-12-26 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
23
kono
parents:
diff changeset
24 PR c++/196
kono
parents:
diff changeset
25 * parse.y (bad_parm): Better diagnostic when given a SCOPE_REF.
kono
parents:
diff changeset
26
kono
parents:
diff changeset
27 2001-12-24 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
28
kono
parents:
diff changeset
29 PR c++/160
kono
parents:
diff changeset
30 * typeck.c (build_modify_expr): Remove old unreachable code & tidy
kono
parents:
diff changeset
31 up. Don't stabilize_references when initializing a reference.
kono
parents:
diff changeset
32
kono
parents:
diff changeset
33 2001-12-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
kono
parents:
diff changeset
34
kono
parents:
diff changeset
35 * decl2.c (lang_f_options): Const-ify.
kono
parents:
diff changeset
36
kono
parents:
diff changeset
37 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
kono
parents:
diff changeset
38
kono
parents:
diff changeset
39 * config-lang.in (diff_excludes): Remove.
kono
parents:
diff changeset
40
kono
parents:
diff changeset
41 2001-12-19 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
42
kono
parents:
diff changeset
43 PR c++/90
kono
parents:
diff changeset
44 * typeck.c (build_function_call_real): Use original function
kono
parents:
diff changeset
45 expression for errors.
kono
parents:
diff changeset
46
kono
parents:
diff changeset
47 2001-12-18 Jason Merrill <jason@redhat.com>
kono
parents:
diff changeset
48
kono
parents:
diff changeset
49 PR c++/3242
kono
parents:
diff changeset
50 * class.c (add_method): Do compare 'this' quals when trying to match a
kono
parents:
diff changeset
51 used function. Don't defer to another used function.
kono
parents:
diff changeset
52
kono
parents:
diff changeset
53 2001-12-18 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
54
kono
parents:
diff changeset
55 * pt.c (instantiate_clone): Remove, fold into ...
kono
parents:
diff changeset
56 (instantiate_template): ... here. Simplify by removing mutual
kono
parents:
diff changeset
57 recursion.
kono
parents:
diff changeset
58 * typeck2.c (build_m_component_ref): Don't cv qualify the function
kono
parents:
diff changeset
59 pointed to by a pointer to function.
kono
parents:
diff changeset
60 * class.c (delete_duplicate_fields_1): Typo.
kono
parents:
diff changeset
61
kono
parents:
diff changeset
62 2001-12-18 Jason Merrill <jason@redhat.com>
kono
parents:
diff changeset
63
kono
parents:
diff changeset
64 C++ ABI change: destroy value arguments in caller.
kono
parents:
diff changeset
65 * semantics.c (genrtl_start_function, genrtl_finish_function): Don't
kono
parents:
diff changeset
66 create an extra binding level for the parameters.
kono
parents:
diff changeset
67 * decl.c (store_parm_decls): Don't do parameter cleanups.
kono
parents:
diff changeset
68
kono
parents:
diff changeset
69 2001-12-18 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
70
kono
parents:
diff changeset
71 * call.c (build_new_method_call): Use '%#V'.
kono
parents:
diff changeset
72 * error.c (cv_to_string): Use V parameter to determine padding.
kono
parents:
diff changeset
73
kono
parents:
diff changeset
74 2001-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
kono
parents:
diff changeset
75
kono
parents:
diff changeset
76 * call.c, decl2.c, init.c: Use "built-in" and "bit-field"
kono
parents:
diff changeset
77 spellings in messages.
kono
parents:
diff changeset
78
kono
parents:
diff changeset
79 2001-12-17 Zack Weinberg <zack@codesourcery.com>
kono
parents:
diff changeset
80
kono
parents:
diff changeset
81 * cp-tree.h: Delete #defines for cp_error, cp_warning,
kono
parents:
diff changeset
82 cp_pedwarn, and cp_compiler_error.
kono
parents:
diff changeset
83 * call.c, class.c, cp-tree.h, cvt.c, decl.c, decl2.c, error.c,
kono
parents:
diff changeset
84 except.c, friend.c, init.c, lex.c, method.c, parse.y, pt.c,
kono
parents:
diff changeset
85 rtti.c, search.c, semantics.c, spew.c, tree.c, typeck.c,
kono
parents:
diff changeset
86 typeck2.c: Change calls to the above macros to use their
kono
parents:
diff changeset
87 language-independent equivalents: error, warning, pedwarn, and
kono
parents:
diff changeset
88 internal_error respectively.
kono
parents:
diff changeset
89
kono
parents:
diff changeset
90 2001-12-16 Neil Booth <neil@daikokuya.demon.co.uk>
kono
parents:
diff changeset
91
kono
parents:
diff changeset
92 * decl2.c (finish_file): Remove back_end_hook.
kono
parents:
diff changeset
93
kono
parents:
diff changeset
94 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
kono
parents:
diff changeset
95
kono
parents:
diff changeset
96 * ChangeLog.1, ChangeLog.2, ChangeLog, NEWS, call.c, class.c,
kono
parents:
diff changeset
97 cp-tree.h, decl.c, decl2.c, except.c, operators.def, optimize.c,
kono
parents:
diff changeset
98 pt.c, rtti.c, semantics.c, typeck.c: Fix spelling errors.
kono
parents:
diff changeset
99
kono
parents:
diff changeset
100 2001-12-15 Joseph S. Myers <jsm28@cam.ac.uk>
kono
parents:
diff changeset
101
kono
parents:
diff changeset
102 * lang-options.h: Use American spelling in messages.
kono
parents:
diff changeset
103
kono
parents:
diff changeset
104 2001-12-13 Jason Merrill <jason@redhat.com>
kono
parents:
diff changeset
105
kono
parents:
diff changeset
106 * Make-lang.in (parse.h): Separate rule, just depend on parse.c.
kono
parents:
diff changeset
107
kono
parents:
diff changeset
108 Use cleanups to run base and member destructors.
kono
parents:
diff changeset
109 * init.c (push_base_cleanups): New function, split out from...
kono
parents:
diff changeset
110 (build_delete): ...here. Lose !TYPE_HAS_DESTRUCTOR code.
kono
parents:
diff changeset
111 * decl.c (finish_destructor_body): Move vbase destruction code to
kono
parents:
diff changeset
112 push_base_cleanups.
kono
parents:
diff changeset
113 (begin_function_body, finish_function_body): New fns.
kono
parents:
diff changeset
114 (finish_function): Move [cd]tor handling and call_poplevel to
kono
parents:
diff changeset
115 finish_function_body.
kono
parents:
diff changeset
116 (pushdecl): Skip the new level.
kono
parents:
diff changeset
117 * semantics.c (genrtl_try_block): Don't call end_protect_partials.
kono
parents:
diff changeset
118 (setup_vtbl_ptr): Call push_base_cleanups.
kono
parents:
diff changeset
119 * method.c (synthesize_method): Call {begin,end}_function_body.
kono
parents:
diff changeset
120 * pt.c (tsubst_expr): Handle COMPOUND_STMT_BODY_BLOCK.
kono
parents:
diff changeset
121 * cp-tree.h: Declare new fns.
kono
parents:
diff changeset
122 * parse.y (function_body, .begin_function_body): New nonterminals.
kono
parents:
diff changeset
123 (fndef, pending_inline, function_try_block): Use function_body.
kono
parents:
diff changeset
124 (ctor_initializer_opt, function_try_block): No longer has a value.
kono
parents:
diff changeset
125 (base_init): Remove .set_base_init token.
kono
parents:
diff changeset
126 (.set_base_init, compstmt_or_error): Remove.
kono
parents:
diff changeset
127 * Make-lang.in (parse.c): Expect two fewer s/r conflicts.
kono
parents:
diff changeset
128
kono
parents:
diff changeset
129 * optimize.c (maybe_clone_body): Fix parameter updating.
kono
parents:
diff changeset
130
kono
parents:
diff changeset
131 2001-12-12 Jason Merrill <jason@redhat.com>
kono
parents:
diff changeset
132
kono
parents:
diff changeset
133 * decl.c (store_parm_decls): Remove parms_have_cleanups cruft.
kono
parents:
diff changeset
134 * semantics.c (genrtl_start_function): Don't pass
kono
parents:
diff changeset
135 parms_have_cleanups or push an extra binding level.
kono
parents:
diff changeset
136 (genrtl_finish_function): Lose cleanup_label cruft.
kono
parents:
diff changeset
137
kono
parents:
diff changeset
138 * cp-tree.h (struct cp_language_function): Remove x_ctor_label.
kono
parents:
diff changeset
139 (ctor_label): Remove.
kono
parents:
diff changeset
140 * semantics.c (finish_return_stmt): Lose ctor_label support.
kono
parents:
diff changeset
141 * decl.c (finish_constructor_body, mark_lang_function): Likewise.
kono
parents:
diff changeset
142 * typeck.c (check_return_expr): Check DECL_DESTRUCTOR_P, not
kono
parents:
diff changeset
143 dtor_label.
kono
parents:
diff changeset
144
kono
parents:
diff changeset
145 * call.c (build_new_method_call): Let resolves_to_fixed_type_p
kono
parents:
diff changeset
146 check for [cd]tors.
kono
parents:
diff changeset
147 * class.c (fixed_type_or_null, case INDIRECT_REF): Fix.
kono
parents:
diff changeset
148
kono
parents:
diff changeset
149 * decl.c (finish_function): Check VMS_TARGET, not VMS.
kono
parents:
diff changeset
150
kono
parents:
diff changeset
151 * decl.c (start_cleanup_fn): Remove redundant pushlevel.
kono
parents:
diff changeset
152 (end_cleanup_fn): And poplevel.
kono
parents:
diff changeset
153
kono
parents:
diff changeset
154 * semantics.c (setup_vtbl_ptr): Always build a CTOR_INITIALIZER
kono
parents:
diff changeset
155 if we're in a template.
kono
parents:
diff changeset
156
kono
parents:
diff changeset
157 2001-12-12 Jakub Jelinek <jakub@redhat.com>
kono
parents:
diff changeset
158
kono
parents:
diff changeset
159 * cp-tree.h (DESTRUCTOR_DECL_PREFIX, DESTRUCTOR_NAME_P,
kono
parents:
diff changeset
160 ANON_PARMNAME_FORMAT, ANON_PARMNAME_P, DESTRUCTOR_NAME_FORMAT,
kono
parents:
diff changeset
161 THIS_NAME_P): Delete.
kono
parents:
diff changeset
162 * spew.c (read_process_identifier): Remove DESTRUCTOR_NAME_P,
kono
parents:
diff changeset
163 THIS_NAME_P and ANON_PARMNAME_P tests from warning about clash
kono
parents:
diff changeset
164 with internal naming scheme.
kono
parents:
diff changeset
165 * error.c (dump_decl): Remove DESTRUCTOR_NAME_P use.
kono
parents:
diff changeset
166
kono
parents:
diff changeset
167 2001-12-12 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
168
kono
parents:
diff changeset
169 * decl.c (grokdeclarator): Deprecated implicit typename use.
kono
parents:
diff changeset
170
kono
parents:
diff changeset
171 2001-12-11 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
172
kono
parents:
diff changeset
173 PR g++/51
kono
parents:
diff changeset
174 * parse.y (frob_specs): Indicate it is a language linkage which
kono
parents:
diff changeset
175 contained the extern.
kono
parents:
diff changeset
176 * decl.c (grokdeclarator): Allow extern language linkage with
kono
parents:
diff changeset
177 other specifiers.
kono
parents:
diff changeset
178
kono
parents:
diff changeset
179 2001-12-10 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
180
kono
parents:
diff changeset
181 PR g++/72
kono
parents:
diff changeset
182 * decl.c (add_binding): Don't reject duplicate typedefs involving
kono
parents:
diff changeset
183 template parameters.
kono
parents:
diff changeset
184
kono
parents:
diff changeset
185 2001-12-10 Neil Booth <neil@daikokuya.demon.co.uk>
kono
parents:
diff changeset
186
kono
parents:
diff changeset
187 * parse.y, semantics.c: Similarly.
kono
parents:
diff changeset
188
kono
parents:
diff changeset
189 2001-12-09 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
190
kono
parents:
diff changeset
191 PR g++/87
kono
parents:
diff changeset
192 * cp-tree.h (DECL_COPY_CONSTRUCTOR_P): Use copy_fn_p.
kono
parents:
diff changeset
193 (copy_args_p): Rename to ...
kono
parents:
diff changeset
194 (copy_fn_p): ... here.
kono
parents:
diff changeset
195 (grok_special_member_properties): New function.
kono
parents:
diff changeset
196 (grok_op_properties): Lose VIRTUALP parameter.
kono
parents:
diff changeset
197 (copy_assignment_arg_p): Remove.
kono
parents:
diff changeset
198 * call.c (build_over_call): Use copy_fn_p.
kono
parents:
diff changeset
199 * decl.c (grokfndecl): Reformat. Adjust call to
kono
parents:
diff changeset
200 grok_op_properties.
kono
parents:
diff changeset
201 (copy_args_p): Rename to ...
kono
parents:
diff changeset
202 (copy_fn_p): ... here. Reject template functions. Check for pass
kono
parents:
diff changeset
203 by value.
kono
parents:
diff changeset
204 (grok_special_member_properties): Remember special functions.
kono
parents:
diff changeset
205 (grok_ctor_properties): Don't remember them here, just check.
kono
parents:
diff changeset
206 (grok_op_properties): Likewise.
kono
parents:
diff changeset
207 (start_method): Call grok_special_member_properties.
kono
parents:
diff changeset
208 * decl2.c (grokfield): Likewise.
kono
parents:
diff changeset
209 (copy_assignment_arg_p): Remove.
kono
parents:
diff changeset
210 (grok_function_init): Don't remember abstract assignment here.
kono
parents:
diff changeset
211 * pt.c (instantiate_class_template): Call
kono
parents:
diff changeset
212 grok_special_member_properties.
kono
parents:
diff changeset
213 (tsubst_decl): Adjust grok_op_properties call.
kono
parents:
diff changeset
214
kono
parents:
diff changeset
215 2001-12-08 Aldy Hernandez <aldyh@redhat.com>
kono
parents:
diff changeset
216
kono
parents:
diff changeset
217 * lex.c (rid_to_yy): Add RID_CHOOSE_EXPR and
kono
parents:
diff changeset
218 RID_TYPES_COMPATIBLE_P.
kono
parents:
diff changeset
219
kono
parents:
diff changeset
220 2001-12-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
kono
parents:
diff changeset
221
kono
parents:
diff changeset
222 * semantics.c (simplify_aggr_init_exprs_r): Add DIRECT_BIND flag in
kono
parents:
diff changeset
223 call to build_aggr_init.
kono
parents:
diff changeset
224 * cp-tree.h (DIRECT_BIND): Document new use of DIRECT_BIND.
kono
parents:
diff changeset
225
kono
parents:
diff changeset
226 2001-12-08 Neil Booth <neil@daikokuya.demon.co.uk>
kono
parents:
diff changeset
227
kono
parents:
diff changeset
228 * parse.y: Replace uses of the string non-terminal with STRING.
kono
parents:
diff changeset
229 Don't perform string concatentaion here.
kono
parents:
diff changeset
230 (string): Remove non-terminal.
kono
parents:
diff changeset
231 * semantics.c (finish_asm_stmt): Don't concatenate strings here.
kono
parents:
diff changeset
232
kono
parents:
diff changeset
233 2001-12-05 Jason Merrill <jason@redhat.com>
kono
parents:
diff changeset
234
kono
parents:
diff changeset
235 * cp-lang.c (LANG_HOOKS_TREE_INLINING_START_INLINING): Define.
kono
parents:
diff changeset
236 (LANG_HOOKS_TREE_INLINING_END_INLINING): Define.
kono
parents:
diff changeset
237 * tree.c (cp_start_inlining, cp_end_inlining): New fns.
kono
parents:
diff changeset
238 * pt.c (push_tinst_level): No longer static.
kono
parents:
diff changeset
239 * cp-tree.h: Declare them.
kono
parents:
diff changeset
240
kono
parents:
diff changeset
241 * init.c (resolve_offset_ref): Don't check access for the base
kono
parents:
diff changeset
242 conversion to access a FIELD_DECL.
kono
parents:
diff changeset
243
kono
parents:
diff changeset
244 * cp-tree.h (TYPE_REFFN_P): New macro.
kono
parents:
diff changeset
245 * decl.c (bad_specifiers): Check it, too.
kono
parents:
diff changeset
246
kono
parents:
diff changeset
247 * rtti.c (create_pseudo_type_info): Set CLASSTYPE_INTERFACE_ONLY
kono
parents:
diff changeset
248 on the __*_type_info type if we haven't seen a definition.
kono
parents:
diff changeset
249
kono
parents:
diff changeset
250 2001-12-05 Neil Booth <neil@daikokuya.demon.co.uk>
kono
parents:
diff changeset
251
kono
parents:
diff changeset
252 * decl.c: Include c-common.h.
kono
parents:
diff changeset
253 (shadow_warning): Move to c-common.c.
kono
parents:
diff changeset
254
kono
parents:
diff changeset
255 2001-12-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
kono
parents:
diff changeset
256
kono
parents:
diff changeset
257 * decl.c (duplicate_decls): Don't copy DECL_NO_CHECK_MEMORY_USAGE.
kono
parents:
diff changeset
258
kono
parents:
diff changeset
259 2001-12-04 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
260
kono
parents:
diff changeset
261 * pt.c (end_template_parm_list): Clear TREE_CHAIN of each parm.
kono
parents:
diff changeset
262
kono
parents:
diff changeset
263 2001-12-04 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
264
kono
parents:
diff changeset
265 PR g++/164
kono
parents:
diff changeset
266 * init.c (sort_base_init): Allow binfos to be directly specified.
kono
parents:
diff changeset
267 * method.c (do_build_copy_constructor): Explicitly convert to the
kono
parents:
diff changeset
268 base instance.
kono
parents:
diff changeset
269 (do_build_assign_ref): Likewise.
kono
parents:
diff changeset
270
kono
parents:
diff changeset
271 2001-12-03 Hans-Peter Nilsson <hp@bitrange.com>
kono
parents:
diff changeset
272
kono
parents:
diff changeset
273 * decl.c (xref_basetypes): Don't use C99 construct in tag_code
kono
parents:
diff changeset
274 declaration and initialization.
kono
parents:
diff changeset
275
kono
parents:
diff changeset
276 2001-12-03 Neil Booth <neil@daikokuya.demon.co.uk>
kono
parents:
diff changeset
277
kono
parents:
diff changeset
278 * typeck2.c: Remove leading capital from diagnostic messages, as
kono
parents:
diff changeset
279 per GNU coding standards.
kono
parents:
diff changeset
280
kono
parents:
diff changeset
281 2001-12-03 Mumit Khan <khan@nanotech.wisc.edu>
kono
parents:
diff changeset
282
kono
parents:
diff changeset
283 PR c++/3394
kono
parents:
diff changeset
284 * decl.c (xref_basetypes): Handle attributes between
kono
parents:
diff changeset
285 'class' and name.
kono
parents:
diff changeset
286
kono
parents:
diff changeset
287 2001-12-03 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
288
kono
parents:
diff changeset
289 PR g++/3381
kono
parents:
diff changeset
290 * parse.y (named_complex_class_head_sans_basetype): Add new
kono
parents:
diff changeset
291 reduction.
kono
parents:
diff changeset
292 * Make-lang.in (parse.c): Adjust expected conflict count.
kono
parents:
diff changeset
293
kono
parents:
diff changeset
294 2001-12-03 Jason Merrill <jason@redhat.com>
kono
parents:
diff changeset
295
kono
parents:
diff changeset
296 * class.c (finish_vtbls): Fill in BINFO_VPTR_FIELD in the
kono
parents:
diff changeset
297 immediate binfos for our virtual bases.
kono
parents:
diff changeset
298
kono
parents:
diff changeset
299 2001-12-02 Neil Booth <neil@daikokuya.demon.co.uk>
kono
parents:
diff changeset
300
kono
parents:
diff changeset
301 * call.c (build_java_interface_fn_ref): Similarly.
kono
parents:
diff changeset
302 * except.c (is_admissible_throw_operand): Similarly.
kono
parents:
diff changeset
303 * init.c (build_java_class_ref): Similarly.
kono
parents:
diff changeset
304 * xref.c (open_xref_file): Similarly.
kono
parents:
diff changeset
305
kono
parents:
diff changeset
306 2001-12-01 Neil Booth <neil@daikokuya.demon.co.uk>
kono
parents:
diff changeset
307
kono
parents:
diff changeset
308 * class.c (finish_struct): Remove trailing periods from messages.
kono
parents:
diff changeset
309 * decl.c (check_tag_decl): Similarly.
kono
parents:
diff changeset
310 * lex.c (cxx_set_yydebug): Similarly.
kono
parents:
diff changeset
311 * typeck2.c (friendly_abort): Similarly.
kono
parents:
diff changeset
312
kono
parents:
diff changeset
313 2001-11-29 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
314
kono
parents:
diff changeset
315 PR c++/3048
kono
parents:
diff changeset
316 * cp-tree.h (ovl_member): Remove.
kono
parents:
diff changeset
317 * decl2.c (merge_functions): Handle extern "C" functions
kono
parents:
diff changeset
318 specially.
kono
parents:
diff changeset
319 * tree.c (ovl_member): Remove.
kono
parents:
diff changeset
320
kono
parents:
diff changeset
321 2001-11-29 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
322
kono
parents:
diff changeset
323 PR c++/4842
kono
parents:
diff changeset
324 * class.c (get_basefndecls): Take an IDENTIFIER_NODE, not a
kono
parents:
diff changeset
325 FUNCTION_DECL, as input.
kono
parents:
diff changeset
326 (mark_overriders): Remove.
kono
parents:
diff changeset
327 (warn_hidden): Rework for the new ABI.
kono
parents:
diff changeset
328
kono
parents:
diff changeset
329 2001-11-29 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
330
kono
parents:
diff changeset
331 PR c++/3471
kono
parents:
diff changeset
332 * call.c (convert_like_real): Do not build additional temporaries
kono
parents:
diff changeset
333 for rvalues of class type.
kono
parents:
diff changeset
334
kono
parents:
diff changeset
335 2001-11-28 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
336
kono
parents:
diff changeset
337 * cp-tree.h (UNIQUELY_DERIVED_FROM_P): Use lookup base.
kono
parents:
diff changeset
338 (ACCESSIBLY_UNIQUELY_DERIVED_FROM_P): Likewise.
kono
parents:
diff changeset
339 (PUBLICLY_UNIQUELY_DERIVED_FROM_P: Likewise.
kono
parents:
diff changeset
340 (DERIVED_FROM_P): Likewise.
kono
parents:
diff changeset
341 (enum base_access): Renumber, add ba_quiet bit mask.
kono
parents:
diff changeset
342 (get_binfo): Remove.
kono
parents:
diff changeset
343 (get_base_distance): Remove.
kono
parents:
diff changeset
344 (binfo_value): Remove.
kono
parents:
diff changeset
345 (ACCESSIBLY_DERIVED_FROM_P): Remove.
kono
parents:
diff changeset
346 * call.c (standard_conversion): Use lookup_base.
kono
parents:
diff changeset
347 * class.c (strictly_overrides): Likewise.
kono
parents:
diff changeset
348 (layout_virtual_bases): Likewise.
kono
parents:
diff changeset
349 (warn_about_ambiguous_direct_bases): Likewise.
kono
parents:
diff changeset
350 (is_base_of_enclosing_class): Likewise.
kono
parents:
diff changeset
351 (add_vcall_offset_vtbl_entries_1): Likewise.
kono
parents:
diff changeset
352 * cvt.c (build_up_reference): Adjust comment.
kono
parents:
diff changeset
353 * init.c (build_member_call): Reformat.
kono
parents:
diff changeset
354 * search.c (get_binfo): Remove.
kono
parents:
diff changeset
355 (get_base_distance_recursive): Remove.
kono
parents:
diff changeset
356 (get_base_distance): Remove.
kono
parents:
diff changeset
357 (lookup_base_r): Tweak.
kono
parents:
diff changeset
358 (lookup_base): Add ba_quiet control. Complete the types here.
kono
parents:
diff changeset
359 (covariant_return_p): Use lookup_base.
kono
parents:
diff changeset
360 * tree.c (binfo_value): Remove.
kono
parents:
diff changeset
361 (maybe_dummy_object): Use lookup_base.
kono
parents:
diff changeset
362 * typeck.c (build_static_cast): Use lookup_base.
kono
parents:
diff changeset
363 (get_delta_difference): Likewise.
kono
parents:
diff changeset
364 * typeck2.c (binfo_or_else): Use lookup_base.
kono
parents:
diff changeset
365 (build_scoped_ref): Add back error_mark_check.
kono
parents:
diff changeset
366 (build_m_component_ref): Use lookup_base.
kono
parents:
diff changeset
367
kono
parents:
diff changeset
368 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
kono
parents:
diff changeset
369
kono
parents:
diff changeset
370 * Make-lang.in (c++.generated-manpages): New dummy target.
kono
parents:
diff changeset
371
kono
parents:
diff changeset
372 2001-11-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
kono
parents:
diff changeset
373
kono
parents:
diff changeset
374 * Make-lang.in (cp-lang.o): Depends on c-common.h.
kono
parents:
diff changeset
375 * cp-lang.c (c-common.h): Include.
kono
parents:
diff changeset
376 (LANG_HOOKS_EXPAND_CONSTANT, LANG_HOOKS_SAFE_FROM_P): New hooks.
kono
parents:
diff changeset
377 * decl.c (cxx_init_decl_processing): Don't set lang_safe_from_p.
kono
parents:
diff changeset
378 * expr.c (init_cplus_expand): Don't set lang_expand_constant.
kono
parents:
diff changeset
379
kono
parents:
diff changeset
380 2001-11-26 Neil Booth <neil@daikokuya.demon.co.uk>
kono
parents:
diff changeset
381
kono
parents:
diff changeset
382 * decl2.c (c_language): Move to c-common.c.
kono
parents:
diff changeset
383 * lex.c (cxx_post_options, cxx_init_options): Use c-common.c
kono
parents:
diff changeset
384 functions.
kono
parents:
diff changeset
385 (cxx_init): Update.
kono
parents:
diff changeset
386
kono
parents:
diff changeset
387 2001-11-26 Jason Merrill <jason@redhat.com>
kono
parents:
diff changeset
388
kono
parents:
diff changeset
389 * call.c (joust): Remove COND_EXPR hack.
kono
parents:
diff changeset
390
kono
parents:
diff changeset
391 2001-11-25 Aldy Hernandez <aldyh@redhat.com>
kono
parents:
diff changeset
392
kono
parents:
diff changeset
393 * search.c (lookup_base_r): Declare bk in variable declaration
kono
parents:
diff changeset
394 space.
kono
parents:
diff changeset
395
kono
parents:
diff changeset
396 2001-11-25 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
397
kono
parents:
diff changeset
398 PR g++/3145
kono
parents:
diff changeset
399 * class.c (build_vbase_pointer): Remove.
kono
parents:
diff changeset
400 (build_vbase_path): Remove.
kono
parents:
diff changeset
401 (build_base_path): New function.
kono
parents:
diff changeset
402 * cp-tree.h (base_access, base_kind): New enumerations.
kono
parents:
diff changeset
403 (build_base_path): Declare.
kono
parents:
diff changeset
404 (convert_pointer_to_real): Remove.
kono
parents:
diff changeset
405 (convert_pointer_to): Remove.
kono
parents:
diff changeset
406 (lookup_base): Declare.
kono
parents:
diff changeset
407 (convert_pointer_to_vbase): Remove.
kono
parents:
diff changeset
408 * call.c (build_scoped_method_call): Use lookup_base &
kono
parents:
diff changeset
409 build_base_path instead of convert_pointer_to_real,
kono
parents:
diff changeset
410 get_base_distance & get_binfo.
kono
parents:
diff changeset
411 (build_over_call): Likewise.
kono
parents:
diff changeset
412 * cvt.c (cp_convert_to_pointer): Likewise.
kono
parents:
diff changeset
413 (convert_to_pointer_force): Likewise.
kono
parents:
diff changeset
414 (build_up_reference): Likewise.
kono
parents:
diff changeset
415 (convert_pointer_to_real): Remove.
kono
parents:
diff changeset
416 (convert_pointer_to): Remove.
kono
parents:
diff changeset
417 * init.c (dfs_initialize_vtbl_ptrs): Use build_base_path
kono
parents:
diff changeset
418 instead of convert_pointer_to_vbase & build_vbase_path.
kono
parents:
diff changeset
419 (emit_base_init): Use build_base_path instead of
kono
parents:
diff changeset
420 convert_pointer_to_real.
kono
parents:
diff changeset
421 (expand_virtual_init): Lose unrequired conversions.
kono
parents:
diff changeset
422 (resolve_offset_ref): Use lookup_base and build_base_path
kono
parents:
diff changeset
423 instead of convert_pointer_to.
kono
parents:
diff changeset
424 * rtti.c (build_dynamic_cast_1): Use lookup_base &
kono
parents:
diff changeset
425 build_base_path instead of get_base_distance & build_vbase_path.
kono
parents:
diff changeset
426 * search.c (get_vbase_1): Remove.
kono
parents:
diff changeset
427 (get_vbase): Remove.
kono
parents:
diff changeset
428 (convert_pointer_to_vbase): Remove.
kono
parents:
diff changeset
429 (lookup_base_r): New function.
kono
parents:
diff changeset
430 (lookup_base): New function.
kono
parents:
diff changeset
431 * typeck.c (require_complete_type): Use lookup_base &
kono
parents:
diff changeset
432 build_base_path instead of convert_pointer_to.
kono
parents:
diff changeset
433 (build_component_ref): Likewise.
kono
parents:
diff changeset
434 (build_x_function_call): Likewise.
kono
parents:
diff changeset
435 (get_member_function_from_ptrfunc): Likewise.
kono
parents:
diff changeset
436 (build_component_addr): Likewise.
kono
parents:
diff changeset
437 * typeck2.c (build_scoped_ref): Likewise.
kono
parents:
diff changeset
438
kono
parents:
diff changeset
439 2001-11-22 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
kono
parents:
diff changeset
440
kono
parents:
diff changeset
441 * cp-tree.h (CP_TYPE_QUALS): Removed.
kono
parents:
diff changeset
442 * decl.c (cxx_init_decl_processing): Don't set lang_dump_tree.
kono
parents:
diff changeset
443 * cp-lang.c: Set LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN and
kono
parents:
diff changeset
444 LANG_HOOKS_TREE_DUMP_TYPE_QUALS_FN.
kono
parents:
diff changeset
445 * dump.c (cp_dump_tree): Use void* dump_info argument to match
kono
parents:
diff changeset
446 lang-hooks prototype.
kono
parents:
diff changeset
447 * call.c, cp-tree.h, cvt.c, decl.c, init.c, mangle.c, method.c, pt.c,
kono
parents:
diff changeset
448 rtti.c, semantics.c, tree.c, typeck.c, typeck2.c: All references to
kono
parents:
diff changeset
449 CP_TYPE_QUALS changed to cp_type_quals.
kono
parents:
diff changeset
450 * Make-lang.in: References to c-dump.h changed to tree-dump.h.
kono
parents:
diff changeset
451 (CXX_C_OBJS): Remove c-dump.o.
kono
parents:
diff changeset
452
kono
parents:
diff changeset
453 2001-11-21 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
454
kono
parents:
diff changeset
455 PR c++/3637
kono
parents:
diff changeset
456 * pt.c (lookup_template_class): Ensure that all specializations
kono
parents:
diff changeset
457 are registered on the list corresponding to the most general
kono
parents:
diff changeset
458 template.
kono
parents:
diff changeset
459
kono
parents:
diff changeset
460 2001-11-20 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
461
kono
parents:
diff changeset
462 * call.c (non_reference): Add documentation.
kono
parents:
diff changeset
463 (convert_class_to_reference): Do not strip reference types
kono
parents:
diff changeset
464 from conversion operators.
kono
parents:
diff changeset
465 (maybe_handle_ref_bind): Simplify.
kono
parents:
diff changeset
466 (compare_ics): Correct handling of references.
kono
parents:
diff changeset
467
kono
parents:
diff changeset
468 2001-11-19 John Wilkinson <johnw@research.att.com>
kono
parents:
diff changeset
469
kono
parents:
diff changeset
470 * dump.c (dump_op): New function.
kono
parents:
diff changeset
471 (cp_dump_tree): Dump CLASSTYPE_TEMPLATE_SPECIALIZATION. Use
kono
parents:
diff changeset
472 dump_op. Dump DECL_MUTABLE, access and staticness for VAR_DECLs.
kono
parents:
diff changeset
473 DECL_PURE_VIRTUAL_P, DECL_VIRTUAL_P,
kono
parents:
diff changeset
474
kono
parents:
diff changeset
475 2001-11-19 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
476
kono
parents:
diff changeset
477 PR4629
kono
parents:
diff changeset
478 * semantics.c (finish_sizeof): Make sure that expression created
kono
parents:
diff changeset
479 while processing a template do not have a type.
kono
parents:
diff changeset
480 (finish_alignof): Likewise.
kono
parents:
diff changeset
481 * typeck.c (c_sizeof): Likewise.
kono
parents:
diff changeset
482 (expr_sizeof): Likewise.
kono
parents:
diff changeset
483
kono
parents:
diff changeset
484 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
kono
parents:
diff changeset
485
kono
parents:
diff changeset
486 * lex.c (cxx_finish): Call c_common_finish.
kono
parents:
diff changeset
487 (finish_parse): Remove.
kono
parents:
diff changeset
488
kono
parents:
diff changeset
489 2001-11-17 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
kono
parents:
diff changeset
490
kono
parents:
diff changeset
491 * decl.c (create_array_type_for_decl): Check if NAME is NULL_TREE
kono
parents:
diff changeset
492 when displaying error message about missing array bounds.
kono
parents:
diff changeset
493
kono
parents:
diff changeset
494 2001-11-17 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
kono
parents:
diff changeset
495
kono
parents:
diff changeset
496 * mangle.c (write_expression): Handle CAST_EXPR, STATIC_CAST_EXPR,
kono
parents:
diff changeset
497 CONST_CAST_EXPR.
kono
parents:
diff changeset
498 * operators.def: Add CAST_EXPR, STATIC_CAST_EXPR, CONST_CAST_EXPR.
kono
parents:
diff changeset
499
kono
parents:
diff changeset
500 2001-11-16 Neil Booth <neil@daikokuya.demon.co.uk>
kono
parents:
diff changeset
501
kono
parents:
diff changeset
502 * cp-tree.h (print_class_statistics): Restore.
kono
parents:
diff changeset
503
kono
parents:
diff changeset
504 2001-11-15 Jason Merrill <jason@redhat.com>
kono
parents:
diff changeset
505
kono
parents:
diff changeset
506 * method.c (use_thunk): Don't emit debugging information for thunks.
kono
parents:
diff changeset
507
kono
parents:
diff changeset
508 * parse.y: Add ... IDENTIFIER SCOPE and ... PTYPENAME SCOPE expansions.
kono
parents:
diff changeset
509 * decl.c (make_typename_type): Handle getting a class template.
kono
parents:
diff changeset
510 * search.c (lookup_field_r): A class template is good enough for
kono
parents:
diff changeset
511 want_type.
kono
parents:
diff changeset
512
kono
parents:
diff changeset
513 * call.c (convert_like_real): Only use cp_convert for the bad part.
kono
parents:
diff changeset
514 (standard_conversion): Also allow bad int->enum.
kono
parents:
diff changeset
515 * typeck.c (ptr_reasonably_similar): Also allow functions to
kono
parents:
diff changeset
516 interconvert. Pointers to same-size integers are reasonably
kono
parents:
diff changeset
517 similar.
kono
parents:
diff changeset
518
kono
parents:
diff changeset
519 * cvt.c (convert_to_void): If we build a new COND_EXPR, always
kono
parents:
diff changeset
520 give it void type.
kono
parents:
diff changeset
521
kono
parents:
diff changeset
522 2001-11-15 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
523
kono
parents:
diff changeset
524 PR g++/3154
kono
parents:
diff changeset
525 * init.c (sort_base_init): Remove unreachable code.
kono
parents:
diff changeset
526 (expand_member_init): Adjust comment to reflect reality. Simplify
kono
parents:
diff changeset
527 and remove unreachable code.
kono
parents:
diff changeset
528
kono
parents:
diff changeset
529 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
kono
parents:
diff changeset
530
kono
parents:
diff changeset
531 * cp-tree.h (init_reswords, cxx_init_decl_processing): New.
kono
parents:
diff changeset
532 (cxx_init): Update prototype.
kono
parents:
diff changeset
533 * decl.c (init_decl_processing): Rename. Move null node init
kono
parents:
diff changeset
534 to its creation time.
kono
parents:
diff changeset
535 * lex.c (cxx_init_options): Update.
kono
parents:
diff changeset
536 (cxx_init): Combine with old init_parse; also call
kono
parents:
diff changeset
537 cxx_init_decl_processing.
kono
parents:
diff changeset
538
kono
parents:
diff changeset
539 2001-11-14 Richard Sandiford <rsandifo@redhat.com>
kono
parents:
diff changeset
540
kono
parents:
diff changeset
541 * decl.c (check_initializer): Try to complete the type of an
kono
parents:
diff changeset
542 array element before checking whether it's complete. Don't
kono
parents:
diff changeset
543 complain about arrays with complete element types but an
kono
parents:
diff changeset
544 unknown size.
kono
parents:
diff changeset
545 (cp_finish_decl): Build the hierarchical constructor before
kono
parents:
diff changeset
546 calling maybe_deduce_size_from_array_init.
kono
parents:
diff changeset
547
kono
parents:
diff changeset
548 2001-11-14 Joseph S. Myers <jsm28@cam.ac.uk>
kono
parents:
diff changeset
549
kono
parents:
diff changeset
550 * Make-lang.in: Change all uses of $(manext) to $(man1ext).
kono
parents:
diff changeset
551
kono
parents:
diff changeset
552 2001-11-13 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
553
kono
parents:
diff changeset
554 PR g++/4206
kono
parents:
diff changeset
555 * parse.y (already_scoped_stmt): Remove.
kono
parents:
diff changeset
556 (simple_stmt, WHILE & FOR): Use implicitly_scoped_stmt.
kono
parents:
diff changeset
557
kono
parents:
diff changeset
558 2001-11-12 H.J. Lu <hjl@gnu.org>
kono
parents:
diff changeset
559
kono
parents:
diff changeset
560 * cvt.c (ocp_convert): Don't warn the address of a weak
kono
parents:
diff changeset
561 function is always `true'.
kono
parents:
diff changeset
562
kono
parents:
diff changeset
563 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
kono
parents:
diff changeset
564
kono
parents:
diff changeset
565 * cp-lang.c (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE,
kono
parents:
diff changeset
566 LANG_HOOKS_PRINT_STATISTICS, LANG_HOOKS_PRINT_XNODE,
kono
parents:
diff changeset
567 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): Override.
kono
parents:
diff changeset
568 * cp-tree.h (print_class_statistics): Remove.
kono
parents:
diff changeset
569 (cxx_print_statistics, cxx_print_xnode, cxx_print_decl, cxx_print_type,
kono
parents:
diff changeset
570 cxx_print_identifier, cxx_set_yydebug): New.
kono
parents:
diff changeset
571 * lex.c (set_yydebug): Rename c_set_yydebug.
kono
parents:
diff changeset
572 * ptree.c (print_lang_decl, print_lang_type, print_lang_identifier,
kono
parents:
diff changeset
573 lang_print_xnode): Rename.
kono
parents:
diff changeset
574 * tree.c (print_lang_statistics): Rename.
kono
parents:
diff changeset
575
kono
parents:
diff changeset
576 2001-11-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
kono
parents:
diff changeset
577
kono
parents:
diff changeset
578 * class.c (dump_array): Fix format specifier warning.
kono
parents:
diff changeset
579
kono
parents:
diff changeset
580 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
kono
parents:
diff changeset
581
kono
parents:
diff changeset
582 * cp-lang.c (LANG_HOOKS_NAME): Override.
kono
parents:
diff changeset
583 (struct lang_hooks): Constify.
kono
parents:
diff changeset
584 * lex.c (cxx_init_options): Update.
kono
parents:
diff changeset
585 (lang_identify): Remove.
kono
parents:
diff changeset
586 * parse.y (language_string): Remove.
kono
parents:
diff changeset
587
kono
parents:
diff changeset
588 2001-11-08 Andreas Franck <afranck@gmx.de>
kono
parents:
diff changeset
589
kono
parents:
diff changeset
590 * Make-lang.in (CXX_INSTALL_NAME, GXX_CROSS_NAME,
kono
parents:
diff changeset
591 DEMANGLER_CROSS_NAME): Handle program_transform_name the way
kono
parents:
diff changeset
592 suggested by autoconf.
kono
parents:
diff changeset
593 (GXX_TARGET_INSTALL_NAME, CXX_TARGET_INSTALL_NAME): Define.
kono
parents:
diff changeset
594 (c++.install-common): Use the transformed target alias names.
kono
parents:
diff changeset
595
kono
parents:
diff changeset
596 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
kono
parents:
diff changeset
597
kono
parents:
diff changeset
598 * Make-lang.in: Update.
kono
parents:
diff changeset
599 * cp-lang.c: Include langhooks-def.h.
kono
parents:
diff changeset
600
kono
parents:
diff changeset
601 2001-11-04 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
kono
parents:
diff changeset
602
kono
parents:
diff changeset
603 * pt.c (tsubst_copy): Call tsubst for TYPEOF_EXPR.
kono
parents:
diff changeset
604
kono
parents:
diff changeset
605 2001-11-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
kono
parents:
diff changeset
606
kono
parents:
diff changeset
607 * lex.c (copy_lang_type): Add static prototype.
kono
parents:
diff changeset
608
kono
parents:
diff changeset
609 2001-11-02 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
kono
parents:
diff changeset
610
kono
parents:
diff changeset
611 * pt.c (unify): Handle SCOPE_REF.
kono
parents:
diff changeset
612
kono
parents:
diff changeset
613 2001-11-01 Jakub Jelinek <jakub@redhat.com>
kono
parents:
diff changeset
614
kono
parents:
diff changeset
615 * tree.c (cp_copy_res_decl_for_inlining): Adjust
kono
parents:
diff changeset
616 DECL_ABSTRACT_ORIGIN for the return variable.
kono
parents:
diff changeset
617
kono
parents:
diff changeset
618 2001-10-31 Zack Weinberg <zack@codesourcery.com>
kono
parents:
diff changeset
619
kono
parents:
diff changeset
620 * Make-lang.in: Replace $(INTL_TARGETS) with po-generated.
kono
parents:
diff changeset
621
kono
parents:
diff changeset
622 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
kono
parents:
diff changeset
623
kono
parents:
diff changeset
624 * ChangeLog.1, ChangeLog.2, ChangeLog, class.c, decl2.c, search.c,
kono
parents:
diff changeset
625 semantics.c, spew.c: Fix spelling errors.
kono
parents:
diff changeset
626
kono
parents:
diff changeset
627 2001-10-27 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
kono
parents:
diff changeset
628
kono
parents:
diff changeset
629 * decl2.c (validate_nonmember_using_decl): Handle NAMESPACE_DECL.
kono
parents:
diff changeset
630
kono
parents:
diff changeset
631 2001-10-25 Zack Weinberg <zack@codesourcery.com>
kono
parents:
diff changeset
632
kono
parents:
diff changeset
633 * cp-lang.c: Redefine LANG_HOOKS_CLEAR_BINDING_STACK to
kono
parents:
diff changeset
634 pop_everything.
kono
parents:
diff changeset
635
kono
parents:
diff changeset
636 2001-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
kono
parents:
diff changeset
637
kono
parents:
diff changeset
638 * cp-lang.c (cxx_get_alias_set): New function.
kono
parents:
diff changeset
639 Point LANG_HOOKS_GET_ALIAS_SET to it.
kono
parents:
diff changeset
640
kono
parents:
diff changeset
641 2001-10-23 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
kono
parents:
diff changeset
642
kono
parents:
diff changeset
643 * cp-tree.def (UNBOUND_CLASS_TEMPLATE): New tree node.
kono
parents:
diff changeset
644 * cp-tree.h (make_unbound_class_template): Prototype new function.
kono
parents:
diff changeset
645 * decl.c (make_unbound_class_template): New function.
kono
parents:
diff changeset
646 * decl2.c (arg_assoc_template_arg): Handle UNBOUND_CLASS_TEMPLATE.
kono
parents:
diff changeset
647 * error.c (dump_type): Likewise.
kono
parents:
diff changeset
648 * mangle.c (write_type): Likewise.
kono
parents:
diff changeset
649 * parse.y (template_parm): Likewise.
kono
parents:
diff changeset
650 (template_argument): Use make_unbound_class_template.
kono
parents:
diff changeset
651 * pt.c (convert_template_argument): Handle UNBOUND_CLASS_TEMPLATE.
kono
parents:
diff changeset
652 (tsubst): Likewise.
kono
parents:
diff changeset
653 (tsubst_copy): Likewise.
kono
parents:
diff changeset
654 (unify): Likewise.
kono
parents:
diff changeset
655 * tree.c (walk_tree): Likewise.
kono
parents:
diff changeset
656 * typeck.c (comptypes): Likewise.
kono
parents:
diff changeset
657
kono
parents:
diff changeset
658 2001-10-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
kono
parents:
diff changeset
659
kono
parents:
diff changeset
660 * xref.c (GNU_xref_member): Use safe-ctype macros and/or fold
kono
parents:
diff changeset
661 extra calls into fewer ones.
kono
parents:
diff changeset
662
kono
parents:
diff changeset
663 2001-10-18 Alexandre Oliva <aoliva@redhat.com>
kono
parents:
diff changeset
664
kono
parents:
diff changeset
665 * decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
kono
parents:
diff changeset
666 Warn when merging inline with attribute noinline.
kono
parents:
diff changeset
667 (start_decl, start_function): Warn if inline and attribute
kono
parents:
diff changeset
668 noinline appear in the same declaration.
kono
parents:
diff changeset
669
kono
parents:
diff changeset
670 2001-10-16 H.J. Lu <hjl@gnu.org>
kono
parents:
diff changeset
671
kono
parents:
diff changeset
672 * cp-tree.h (BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK): Defined
kono
parents:
diff changeset
673 for tree checking disabled.
kono
parents:
diff changeset
674
kono
parents:
diff changeset
675 2001-10-16 Hans-Peter Nilsson <hp@axis.com>
kono
parents:
diff changeset
676
kono
parents:
diff changeset
677 * cp-tree.h (VFIELD_NAME_FORMAT) [NO_DOLLAR_IN_LABEL &&
kono
parents:
diff changeset
678 NO_DOT_IN_LABEL]: Adjust to match VFIELD_NAME.
kono
parents:
diff changeset
679
kono
parents:
diff changeset
680 2001-10-15 Richard Sandiford <rsandifo@redhat.com>
kono
parents:
diff changeset
681
kono
parents:
diff changeset
682 * pt.c (UNIFY_ALLOW_MAX_CORRECTION): Define.
kono
parents:
diff changeset
683 (unify): Only handle MINUS_EXPR specially if the above flag is set
kono
parents:
diff changeset
684 and the subtracted constant is 1. Clear the flag on recursive calls.
kono
parents:
diff changeset
685 Set it when unifying the maximum value in an INTEGER_TYPE's range.
kono
parents:
diff changeset
686
kono
parents:
diff changeset
687 2001-10-15 Richard Sandiford <rsandifo@redhat.com>
kono
parents:
diff changeset
688
kono
parents:
diff changeset
689 * decl.c (bad_specifiers): Don't allow exception specifications
kono
parents:
diff changeset
690 on any typedefs.
kono
parents:
diff changeset
691
kono
parents:
diff changeset
692 2001-10-14 Neil Booth <neil@daikokuya.demon.co.uk>
kono
parents:
diff changeset
693
kono
parents:
diff changeset
694 * cp/lex.c (init_cp_pragma): Similarly.
kono
parents:
diff changeset
695
kono
parents:
diff changeset
696 2001-10-13 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
kono
parents:
diff changeset
697
kono
parents:
diff changeset
698 * pt.c (lookup_template_class): Build complete template arguments
kono
parents:
diff changeset
699 for BOUND_TEMPLATE_TEMPLATE_PARM.
kono
parents:
diff changeset
700
kono
parents:
diff changeset
701 2001-10-12 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
kono
parents:
diff changeset
702
kono
parents:
diff changeset
703 * cp-tree.h (TYPE_BINFO): Update comment.
kono
parents:
diff changeset
704 (BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK): New macro.
kono
parents:
diff changeset
705 (TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO): Use template_info.
kono
parents:
diff changeset
706 (TYPENAME_TYPE_FULLNAME): Use TYPE_FIELDS.
kono
parents:
diff changeset
707 (copy_type): Prototype new function.
kono
parents:
diff changeset
708 * lex.c (copy_lang_decl): Gather tree node statistics.
kono
parents:
diff changeset
709 (copy_lang_type): New function.
kono
parents:
diff changeset
710 (copy_type): Likewise.
kono
parents:
diff changeset
711 (cp_make_lang_type): Create lang_type for
kono
parents:
diff changeset
712 BOUND_TEMPLATE_TEMPLATE_PARM. Set TYPE_BINFO for TYPENAME_TYPE
kono
parents:
diff changeset
713 and BOUND_TEMPLATE_TEMPLATE_PARM.
kono
parents:
diff changeset
714 * pt.c (tsubst): Use copy_type instead of copy_node.
kono
parents:
diff changeset
715 * search.c (lookup_field_1): Ignore TYPENAME_TYPE.
kono
parents:
diff changeset
716
kono
parents:
diff changeset
717 2001-10-12 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
kono
parents:
diff changeset
718
kono
parents:
diff changeset
719 * pt.c (determine_specialization): Ignore functions without
kono
parents:
diff changeset
720 DECL_TEMPLATE_INFO.
kono
parents:
diff changeset
721
kono
parents:
diff changeset
722 2001-10-12 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
723
kono
parents:
diff changeset
724 PR g++/4476
kono
parents:
diff changeset
725 * typeck2.c (abstract_virtuals_error): Ignore incomplete classes.
kono
parents:
diff changeset
726
kono
parents:
diff changeset
727 2001-10-11 Jason Merrill <jason_merrill@redhat.com>
kono
parents:
diff changeset
728
kono
parents:
diff changeset
729 * typeck2.c (store_init_value): Don't re-digest a bracketed
kono
parents:
diff changeset
730 initializer.
kono
parents:
diff changeset
731
kono
parents:
diff changeset
732 * class.c (finish_struct_anon): Use TYPE_ANONYMOUS_P instead of
kono
parents:
diff changeset
733 ANON_AGGR_TYPE_P.
kono
parents:
diff changeset
734
kono
parents:
diff changeset
735 2001-10-11 Richard Henderson <rth@redhat.com>
kono
parents:
diff changeset
736
kono
parents:
diff changeset
737 * class.c (build_vtable_entry_ref): Create a VTABLE_REF instead
kono
parents:
diff changeset
738 of an asm statement.
kono
parents:
diff changeset
739 (build_vtbl_ref_1): Split out from build_vtbl_ref.
kono
parents:
diff changeset
740 (build_vfn_ref): Use it to handle vtable descriptors before
kono
parents:
diff changeset
741 calling build_vtable_entry_ref.
kono
parents:
diff changeset
742 * decl2.c (output_vtable_inherit): Use assemble_vtable_inherit.
kono
parents:
diff changeset
743
kono
parents:
diff changeset
744 2001-10-10 Richard Henderson <rth@redhat.com>
kono
parents:
diff changeset
745
kono
parents:
diff changeset
746 * parse.y (asm_operand): Allow named operands.
kono
parents:
diff changeset
747 * semantics.c (finish_asm_stmt): Tweek for changed location
kono
parents:
diff changeset
748 of the operand constraint.
kono
parents:
diff changeset
749
kono
parents:
diff changeset
750 2001-10-09 Jason Merrill <jason_merrill@redhat.com>
kono
parents:
diff changeset
751
kono
parents:
diff changeset
752 * call.c (standard_conversion): Add bad conversion between
kono
parents:
diff changeset
753 integers and pointers.
kono
parents:
diff changeset
754 (convert_like_real): Don't use convert_for_initialization for bad
kono
parents:
diff changeset
755 conversions; complain here and use cp_convert.
kono
parents:
diff changeset
756 (build_over_call): Don't handle bad conversions specially.
kono
parents:
diff changeset
757 (perform_implicit_conversion): Allow bad conversions.
kono
parents:
diff changeset
758 (can_convert_arg_bad): New fn.
kono
parents:
diff changeset
759 * cp-tree.h: Declare it.
kono
parents:
diff changeset
760 * typeck.c (convert_for_assignment): Use it.
kono
parents:
diff changeset
761 (ptr_reasonably_similar): Any target type is similar to void.
kono
parents:
diff changeset
762
kono
parents:
diff changeset
763 2001-10-08 Alexandre Oliva <aoliva@redhat.com>
kono
parents:
diff changeset
764
kono
parents:
diff changeset
765 * Make-lang.in (CXX_OBJS): Added cp-lang.o.
kono
parents:
diff changeset
766 (cp/cp-lang.o): New rule.
kono
parents:
diff changeset
767 * cp-tree.h: Declare hooks.
kono
parents:
diff changeset
768 * tree.c: Make hooks non-static.
kono
parents:
diff changeset
769 (init_tree): Don't initialize hooks here.
kono
parents:
diff changeset
770 * lex.c: Likewise. Move definition of lang_hooks to...
kono
parents:
diff changeset
771 * cp-lang.c: ... new file.
kono
parents:
diff changeset
772
kono
parents:
diff changeset
773 2001-10-08 Richard Henderson <rth@redhat.com>
kono
parents:
diff changeset
774
kono
parents:
diff changeset
775 * cp-tree.h (struct lang_decl_flags): Remove declared_inline.
kono
parents:
diff changeset
776 (DECL_DECLARED_INLINE_P): Use the bit in struct c_lang_decl.
kono
parents:
diff changeset
777
kono
parents:
diff changeset
778 2001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
kono
parents:
diff changeset
779
kono
parents:
diff changeset
780 * class.c (build_vtable_entry_ref): Const-ify.
kono
parents:
diff changeset
781 * decl.c (predefined_identifier,
kono
parents:
diff changeset
782 initialize_predefined_identifiers): Likewise.
kono
parents:
diff changeset
783 * init.c (build_new_1): Likewise.
kono
parents:
diff changeset
784 * lex.c (cplus_tree_code_type, cplus_tree_code_length, resword):
kono
parents:
diff changeset
785 Likewise.
kono
parents:
diff changeset
786
kono
parents:
diff changeset
787 2001-10-05 Alexandre Oliva <aoliva@redhat.com>
kono
parents:
diff changeset
788
kono
parents:
diff changeset
789 * optimize.c (struct inline_data): Moved to ../tree-inline.c.
kono
parents:
diff changeset
790 (INSNS_PER_STMT): Likewise.
kono
parents:
diff changeset
791 (remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
kono
parents:
diff changeset
792 (copy_body, initialize_inlined_parameters): Likewise.
kono
parents:
diff changeset
793 (declare_return_variable, inlinable_function_p): Likewise.
kono
parents:
diff changeset
794 (expand_call_inline, expand_calls_inline): Likewise.
kono
parents:
diff changeset
795 (optimize_inline_calls, clone_body): Likewise.
kono
parents:
diff changeset
796 * tree.c (walk_tree): Moved to ../tree-inline.c.
kono
parents:
diff changeset
797 (walk_tree_without_duplicates): Likewise.
kono
parents:
diff changeset
798 (copy_tree_r, remap_save_expr): Likewise.
kono
parents:
diff changeset
799
kono
parents:
diff changeset
800 2001-10-04 Alexandre Oliva <aoliva@redhat.com>
kono
parents:
diff changeset
801
kono
parents:
diff changeset
802 * Make-lang.in (cp/decl.o, cp/tree.o): Depend on tree-inline.h.
kono
parents:
diff changeset
803 (cp/pt.o, cp/semantics.o, cp/optimize.o): Likewise.
kono
parents:
diff changeset
804 * cp-tree.h (lang_decl): Moved inlined_fns to tree_decl.
kono
parents:
diff changeset
805 (TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved to ../tree.h.
kono
parents:
diff changeset
806 (flag_inline_trees): Moved declaration to ../tree-inline.h.
kono
parents:
diff changeset
807 (walk_tree): Moved declaration to ../tree-inline.h.
kono
parents:
diff changeset
808 (walk_tree_without_duplicates, copy_tree_r): Likewise.
kono
parents:
diff changeset
809 (remap_save_expr): Likewise.
kono
parents:
diff changeset
810 * decl.c: Include tree-inline.h.
kono
parents:
diff changeset
811 (lang_mark_tree): Don't mark inlined_fns.
kono
parents:
diff changeset
812 * decl2.c (flag_inline_trees): Moved defn to ../tree-inline.c.
kono
parents:
diff changeset
813 * optimize.c: Include tree-inline.h.
kono
parents:
diff changeset
814 (optimize_inline_calls): Move declaration to ../tree.h, as
kono
parents:
diff changeset
815 non-static.
kono
parents:
diff changeset
816 (remap_decl): Use language-independent constructs and hooks.
kono
parents:
diff changeset
817 (remap_block, copy_body_r, declare_return_variable): Likewise.
kono
parents:
diff changeset
818 (inlinable_function_p): Likewise. Don't test for
kono
parents:
diff changeset
819 DECL_LANG_SPECIFIC before DECL_INLINED_FNS as inlined_fns is
kono
parents:
diff changeset
820 no longer language-specific.
kono
parents:
diff changeset
821 (optimize_inline_calls): Likewise. Make it non-static. Moved
kono
parents:
diff changeset
822 call of dump_function to...
kono
parents:
diff changeset
823 (optimize_function): Here...
kono
parents:
diff changeset
824 (clone_body): New function, extracted from...
kono
parents:
diff changeset
825 (maybe_clone_body): ... here. Build decl_map locally and pass
kono
parents:
diff changeset
826 it on to clone_body.
kono
parents:
diff changeset
827 * pt.c, semantics.c: Include tree-inline.h.
kono
parents:
diff changeset
828 * tree.c: Likewise.
kono
parents:
diff changeset
829 (cp_walk_subtrees): New language-specific hook for tree inlining.
kono
parents:
diff changeset
830 (cp_cannot_inline_tree_fn, cp_add_pending_fn_decls,
kono
parents:
diff changeset
831 cp_is_overload_p, cp_auto_var_in_fn_p,
kono
parents:
diff changeset
832 cp_copy_res_decl_for_inlining): Likewise.
kono
parents:
diff changeset
833 (walk_tree): Move language-specific constructs into...
kono
parents:
diff changeset
834 (cp_walk_subtrees): this new function.
kono
parents:
diff changeset
835 (copy_tree_r): Use language-independent constructs and hooks.
kono
parents:
diff changeset
836 (init_tree): Initialize tree inlining hooks.
kono
parents:
diff changeset
837 (remap_save_expr): Adjust prototype so that the declaration
kono
parents:
diff changeset
838 does not require the definition of splay_tree.
kono
parents:
diff changeset
839
kono
parents:
diff changeset
840 2001-10-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
kono
parents:
diff changeset
841
kono
parents:
diff changeset
842 * rtti.c (get_tinfo_decl): Call typeinfo_in_lib_p with the type used
kono
parents:
diff changeset
843 to build the declaration instead of the declaration itself.
kono
parents:
diff changeset
844
kono
parents:
diff changeset
845 2001-10-02 Jason Merrill <jason_merrill@redhat.com>
kono
parents:
diff changeset
846
kono
parents:
diff changeset
847 * decl2.c (cxx_decode_option): Add 'else'.
kono
parents:
diff changeset
848
kono
parents:
diff changeset
849 * spew.c (end_input): No longer static.
kono
parents:
diff changeset
850 * cp-tree.h: Declare it.
kono
parents:
diff changeset
851 * parse.y (datadef): Add "error END_OF_SAVED_INPUT" expansion.
kono
parents:
diff changeset
852
kono
parents:
diff changeset
853 2001-10-02 Joseph S. Myers <jsm28@cam.ac.uk>
kono
parents:
diff changeset
854
kono
parents:
diff changeset
855 * call.c (build_over_call), typeck.c (build_function_call_real):
kono
parents:
diff changeset
856 Pass type attributes to check_function_format rather than name or
kono
parents:
diff changeset
857 assembler name. Don't require there to be a name or assembler
kono
parents:
diff changeset
858 name to check formats.
kono
parents:
diff changeset
859
kono
parents:
diff changeset
860 2001-10-02 Joseph S. Myers <jsm28@cam.ac.uk>
kono
parents:
diff changeset
861
kono
parents:
diff changeset
862 * decl.c (init_decl_processing): Don't call
kono
parents:
diff changeset
863 init_function_format_info. Initialize lang_attribute_table
kono
parents:
diff changeset
864 earlier.
kono
parents:
diff changeset
865 (builtin_function): Call decl_attributes.
kono
parents:
diff changeset
866 (insert_default_attributes): New.
kono
parents:
diff changeset
867
kono
parents:
diff changeset
868 2001-10-01 Jason Merrill <jason_merrill@redhat.com>
kono
parents:
diff changeset
869
kono
parents:
diff changeset
870 * decl.c (grokdeclarator): Copy array typedef handling from C
kono
parents:
diff changeset
871 frontend.
kono
parents:
diff changeset
872
kono
parents:
diff changeset
873 * decl.c (grokdeclarator): Copy too-large array handling from C
kono
parents:
diff changeset
874 frontend.
kono
parents:
diff changeset
875
kono
parents:
diff changeset
876 2001-09-29 Alexandre Oliva <aoliva@redhat.com>
kono
parents:
diff changeset
877
kono
parents:
diff changeset
878 * config-lang.in (target_libs): Added target-gperf, so that we
kono
parents:
diff changeset
879 don't try to build it if C++ is disabled.
kono
parents:
diff changeset
880
kono
parents:
diff changeset
881 2001-09-23 Zack Weinberg <zack@codesourcery.com>
kono
parents:
diff changeset
882
kono
parents:
diff changeset
883 * Make-lang.in (CXX_OBJS): Take out cp/errfn.o.
kono
parents:
diff changeset
884 (cp/errfn.o): Delete rule.
kono
parents:
diff changeset
885 (cp/error.o): Depend on flags.h.
kono
parents:
diff changeset
886 * errfn.c: Delete file.
kono
parents:
diff changeset
887 * cp-tree.h: Declare warn_deprecated. Remove definitions of
kono
parents:
diff changeset
888 TFF_NAMESPACE_SCOPE, TFF_CLASS_SCOPE, TFF_CHASE_NAMESPACE_ALIAS,
kono
parents:
diff changeset
889 and TFF_TEMPLATE_DEFAULT_ARGUMENTS. #define cp_error, cp_warning,
kono
parents:
diff changeset
890 cp_pedwarn, and cp_compiler_error to error, warning, pedwarn, and
kono
parents:
diff changeset
891 internal_error respectively. Make cp_deprecated into a macro.
kono
parents:
diff changeset
892 Don't define cp_printer typedef or declare cp_printers.
kono
parents:
diff changeset
893 * error.c: Include flags.h.
kono
parents:
diff changeset
894 Delete: struct tree_formatting_info, print_function_argument_list,
kono
parents:
diff changeset
895 print_declaration, print_expression, print_function_declaration,
kono
parents:
diff changeset
896 print_function_parameter, print_type_id, print_cv_qualifier_seq,
kono
parents:
diff changeset
897 print_type_specifier_seq, print_simple_type_specifier,
kono
parents:
diff changeset
898 print_elaborated_type_specifier, print_rest_of_abstract_declarator,
kono
parents:
diff changeset
899 print_parameter_declaration_clause, print_exception_specification,
kono
parents:
diff changeset
900 print_nested_name_specifier, and definition of cp_printers.
kono
parents:
diff changeset
901 (locate_error): New function.
kono
parents:
diff changeset
902 (cp_error_at, cp_warning_at, cp_pedwarn_at): Moved here and
kono
parents:
diff changeset
903 rewritten in terms of locate_error and diagnostic.c.
kono
parents:
diff changeset
904 (cp_tree_printer): Rename cp_printer; wire up to *_to_string
kono
parents:
diff changeset
905 instead of deleted print_* routines. Handle %C, %L, %O, %Q also.
kono
parents:
diff changeset
906 (init_error): Adjust to match.
kono
parents:
diff changeset
907
kono
parents:
diff changeset
908 2001-09-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
kono
parents:
diff changeset
909
kono
parents:
diff changeset
910 * Make-lang.in (CXX_C_OBJS): Add attribs.o.
kono
parents:
diff changeset
911
kono
parents:
diff changeset
912 2001-09-21 Richard Henderson <rth@redhat.com>
kono
parents:
diff changeset
913
kono
parents:
diff changeset
914 * class.c (set_vindex): Mind TARGET_VTABLE_USES_DESCRIPTORS.
kono
parents:
diff changeset
915 (build_vtbl_initializer): Likewise.
kono
parents:
diff changeset
916 (build_vfn_ref): New.
kono
parents:
diff changeset
917 * cp-tree.h: Declare it.
kono
parents:
diff changeset
918 * call.c (build_over_call): Use it.
kono
parents:
diff changeset
919 * decl2.c (mark_vtable_entries): Mark FDESC_EXPR.
kono
parents:
diff changeset
920 * typeck.c (get_member_function_from_ptrfunc): Mind descriptors.
kono
parents:
diff changeset
921
kono
parents:
diff changeset
922 2001-09-21 J"orn Rennecke <amylaar@redhat.com>
kono
parents:
diff changeset
923
kono
parents:
diff changeset
924 * decl.c (grokdeclarator): Use C syntax for attr_flags declaration.
kono
parents:
diff changeset
925
kono
parents:
diff changeset
926 2001-09-21 Joseph S. Myers <jsm28@cam.ac.uk>
kono
parents:
diff changeset
927
kono
parents:
diff changeset
928 Table-driven attributes.
kono
parents:
diff changeset
929 * decl.c: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
kono
parents:
diff changeset
930 * decl2.c (cplus_decl_attributes): Only take one attributes
kono
parents:
diff changeset
931 parameter.
kono
parents:
diff changeset
932 * cp-tree.c (cplus_decl_attributes): Update prototype.
kono
parents:
diff changeset
933 * class.c (finish_struct), decl.c (start_decl, start_function),
kono
parents:
diff changeset
934 decl2.c (grokfield), friend.c (do_friend), parse.y
kono
parents:
diff changeset
935 (parse_bitfield): Update calls to cplus_decl_attributes.
kono
parents:
diff changeset
936 * decl.c (grokdeclarator): Take a pointer to a single ordinary
kono
parents:
diff changeset
937 attribute list.
kono
parents:
diff changeset
938 * decl.h (grokdeclarator): Update prototype.
kono
parents:
diff changeset
939 * decl2.c (grokfield): Take a single ordinary attribute list.
kono
parents:
diff changeset
940 * friend.c (do_friend): Likewise.
kono
parents:
diff changeset
941 * decl.c (shadow_tag, groktypename, start_decl,
kono
parents:
diff changeset
942 start_handler_parms, grokdeclarator, grokparms, start_function,
kono
parents:
diff changeset
943 start_method), decl2.c (grokfield, grokbitfield, grokoptypename),
kono
parents:
diff changeset
944 parse.y (parse_field, parse_bitfield, component_decl_1), pt.c
kono
parents:
diff changeset
945 (process_template_parm, do_decl_instantiation): Pass single
kono
parents:
diff changeset
946 ordinary attribute lists around.
kono
parents:
diff changeset
947 * decl.c (grokdeclarator): Correct handling of nested attributes.
kono
parents:
diff changeset
948 Revert the patch
kono
parents:
diff changeset
949 1998-10-18 Jason Merrill <jason@yorick.cygnus.com>
kono
parents:
diff changeset
950 * decl.c (grokdeclarator): Embedded attrs bind to the right,
kono
parents:
diff changeset
951 not the left.
kono
parents:
diff changeset
952 .
kono
parents:
diff changeset
953 * cp-tree.h (cp_valid_lang_attribute): Remove declaration
kono
parents:
diff changeset
954 (cp_attribute_table): Declare.
kono
parents:
diff changeset
955 * decl.c (valid_lang_attribute): Don't define.
kono
parents:
diff changeset
956 (lang_attribute_table): Define.
kono
parents:
diff changeset
957 (init_decl_processing): Initialize lang_attribute_table instead of
kono
parents:
diff changeset
958 valid_lang_attribute.
kono
parents:
diff changeset
959 * tree.c (cp_valid_lang_attribute): Remove.
kono
parents:
diff changeset
960 (handle_java_interface_attribute, handle_com_interface_attribute,
kono
parents:
diff changeset
961 handle_init_priority_attribute): New functions.
kono
parents:
diff changeset
962 (cp_attribute_table): New array.
kono
parents:
diff changeset
963 * decl2.c (import_export_class): Don't use
kono
parents:
diff changeset
964 targetm.valid_type_attribute.
kono
parents:
diff changeset
965
kono
parents:
diff changeset
966 2001-09-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
kono
parents:
diff changeset
967
kono
parents:
diff changeset
968 * Make-lang.in (cp/error.o): Depend on real.h
kono
parents:
diff changeset
969 * error.c: #include "real.h"
kono
parents:
diff changeset
970
kono
parents:
diff changeset
971 2001-09-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
kono
parents:
diff changeset
972
kono
parents:
diff changeset
973 * mangle.c (mangle_conv_op_name_for_type): Use concat in lieu of
kono
parents:
diff changeset
974 xmalloc/strcpy/strcat.
kono
parents:
diff changeset
975
kono
parents:
diff changeset
976 2001-09-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
kono
parents:
diff changeset
977
kono
parents:
diff changeset
978 * decl.c (warn_extern_redeclared_static, cp_make_fname_decl):
kono
parents:
diff changeset
979 Const-ification.
kono
parents:
diff changeset
980 * pt.c (tsubst_decl): Likewise.
kono
parents:
diff changeset
981
kono
parents:
diff changeset
982 2001-09-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
kono
parents:
diff changeset
983
kono
parents:
diff changeset
984 * decl2.c (lang_f_options): Const-ification.
kono
parents:
diff changeset
985 * lex.c (cplus_tree_code_name): Likewise.
kono
parents:
diff changeset
986 * spew.c (yyerror): Likewise.
kono
parents:
diff changeset
987
kono
parents:
diff changeset
988 2001-09-06 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
989
kono
parents:
diff changeset
990 PR c++/3986
kono
parents:
diff changeset
991 * class.c (force_canonical_binfo_r): Check & move an indirect
kono
parents:
diff changeset
992 primary base first.
kono
parents:
diff changeset
993 (force_canonical_binfo): Check that it's not already
kono
parents:
diff changeset
994 canonical.
kono
parents:
diff changeset
995 (mark_primary_virtual_base): Remove BINFO parameter.
kono
parents:
diff changeset
996 (mark_primary_bases): Adjust, set BINFO_LOST_PRIMARY_P here.
kono
parents:
diff changeset
997
kono
parents:
diff changeset
998 2001-09-06 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
999
kono
parents:
diff changeset
1000 Remove TYPE_NONCOPIED_PARTS.
kono
parents:
diff changeset
1001 * cp-tree.h (CLASSTYPE_INLINE_FRIENDS): Map onto
kono
parents:
diff changeset
1002 CLASSTYPE_PURE_VIRTUALS.
kono
parents:
diff changeset
1003 (TYPE_RAISES_EXCEPTIONS): Map onto TYPE_BINFO.
kono
parents:
diff changeset
1004 * class.c (duplicate_tag_error): Remove TYPE_NONCOPIED_PARTS.
kono
parents:
diff changeset
1005 (layout_class_type): Don't call fixup_inline_methods here ...
kono
parents:
diff changeset
1006 (finish_struct_1): ... call it here.
kono
parents:
diff changeset
1007
kono
parents:
diff changeset
1008 2001-09-04 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
1009
kono
parents:
diff changeset
1010 * decl.c (duplicate_decls): Remove code deadling with
kono
parents:
diff changeset
1011 DECL_SAVED_INSNS.
kono
parents:
diff changeset
1012 * decl2.c (finish_file): Likewise.
kono
parents:
diff changeset
1013 * pt.c (instantiate_decl): Likewise.
kono
parents:
diff changeset
1014 * semantics.c (expand_body): Don't defer local functions if
kono
parents:
diff changeset
1015 they wouldn't be deferred for some other reason. Don't
kono
parents:
diff changeset
1016 generate RTL for functions that will not be emitted.
kono
parents:
diff changeset
1017 (genrtl_start_function): Remove code deadling with
kono
parents:
diff changeset
1018 DECL_SAVED_INSNS.
kono
parents:
diff changeset
1019 (genrtl_finish_function): Likewise.
kono
parents:
diff changeset
1020
kono
parents:
diff changeset
1021 2001-09-04 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1022
kono
parents:
diff changeset
1023 PR c++/4203
kono
parents:
diff changeset
1024 * call.c (build_over_call): Do not optimize any empty base
kono
parents:
diff changeset
1025 construction.
kono
parents:
diff changeset
1026
kono
parents:
diff changeset
1027 2001-08-31 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
kono
parents:
diff changeset
1028
kono
parents:
diff changeset
1029 * error.c (dump_template_decl): Output template parameters
kono
parents:
diff changeset
1030 together with their specifiers.
kono
parents:
diff changeset
1031 Output `class' prefix for template template parameter.
kono
parents:
diff changeset
1032 (dump_decl): Fix formatting.
kono
parents:
diff changeset
1033
kono
parents:
diff changeset
1034 2001-08-30 Kurt Garloff <garloff@suse.de>
kono
parents:
diff changeset
1035
kono
parents:
diff changeset
1036 * optimize.c (inlinable_function_p): Allow only smaller single
kono
parents:
diff changeset
1037 functions. Halve inline limit after reaching recursive limit.
kono
parents:
diff changeset
1038
kono
parents:
diff changeset
1039 2001-08-30 Joern Rennecke <amylaar@redhat.com>
kono
parents:
diff changeset
1040 Jason Merrill <jason_merrill@redhat.com>
kono
parents:
diff changeset
1041
kono
parents:
diff changeset
1042 * class.c (build_vtable_entry_ref): Subtract in char*, not
kono
parents:
diff changeset
1043 ptrdiff_t.
kono
parents:
diff changeset
1044
kono
parents:
diff changeset
1045 2001-08-23 Jason Merrill <jason_merrill@redhat.com>
kono
parents:
diff changeset
1046
kono
parents:
diff changeset
1047 * tree.c (cp_build_qualified_type_real): Use get_qualified_type.
kono
parents:
diff changeset
1048 (build_cplus_array_type): Use cp_build_qualified_type, not
kono
parents:
diff changeset
1049 TYPE_MAIN_VARIANT, to get an unqualified version.
kono
parents:
diff changeset
1050
kono
parents:
diff changeset
1051 * decl2.c (grok_alignof): Lose.
kono
parents:
diff changeset
1052 (build_expr_from_tree): Use expr_sizeof and c_alignof_expr.
kono
parents:
diff changeset
1053 * typeck.c (c_alignof): Lose.
kono
parents:
diff changeset
1054 * semantics.c (finish_sizeof, finish_alignof): New.
kono
parents:
diff changeset
1055 * parse.y: Use them.
kono
parents:
diff changeset
1056 * cp-tree.h: Declare them.
kono
parents:
diff changeset
1057
kono
parents:
diff changeset
1058 2001-08-22 Jason Merrill <jason_merrill@redhat.com>
kono
parents:
diff changeset
1059
kono
parents:
diff changeset
1060 * pt.c (tsubst_expr): Hand off to the TREE_CHAIN of a statement.
kono
parents:
diff changeset
1061 Don't loop in COMPOUND_STMT, FOR_STMT or TRY_BLOCK.
kono
parents:
diff changeset
1062 * tree.c (cp_statement_code_p): A TAG_DEFN is a statement.
kono
parents:
diff changeset
1063
kono
parents:
diff changeset
1064 2001-08-19 Jakub Jelinek <jakub@redhat.com>
kono
parents:
diff changeset
1065
kono
parents:
diff changeset
1066 * typeck2.c (add_exception_specifier): Only require complete type if
kono
parents:
diff changeset
1067 not in processing template declaration.
kono
parents:
diff changeset
1068
kono
parents:
diff changeset
1069 2001-08-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
kono
parents:
diff changeset
1070
kono
parents:
diff changeset
1071 * decl.c: Cast argument to size_t, not HOST_WIDE_INT, in calls to
kono
parents:
diff changeset
1072 GNU_xref_start_scope and GNU_xref_end_scope.
kono
parents:
diff changeset
1073
kono
parents:
diff changeset
1074 * tree.c (TYPE_HASH): Moved to ../tree.h.
kono
parents:
diff changeset
1075
kono
parents:
diff changeset
1076 2001-08-16 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
1077
kono
parents:
diff changeset
1078 * cvt.c (convert_to_void): Preserve TREE_SIDE_EFFECTS
kono
parents:
diff changeset
1079 on COMPOUND_EXPRs.
kono
parents:
diff changeset
1080
kono
parents:
diff changeset
1081 2001-08-14 Richard Henderson <rth@redhat.com>
kono
parents:
diff changeset
1082
kono
parents:
diff changeset
1083 * class.c, cp-tree.h (build_vfn_ref): Remove.
kono
parents:
diff changeset
1084 * call.c, rtti.c: Replace all refernces with build_vtbl_ref.
kono
parents:
diff changeset
1085
kono
parents:
diff changeset
1086 2001-08-13 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
1087
kono
parents:
diff changeset
1088 * call.c (build_over_call): Mark COMPOUND_EXPRs generated for
kono
parents:
diff changeset
1089 empty class assignment as having side-effects to avoid
kono
parents:
diff changeset
1090 spurious warnings.
kono
parents:
diff changeset
1091
kono
parents:
diff changeset
1092 2001-08-13 Zack Weinberg <zackw@panix.com>
kono
parents:
diff changeset
1093
kono
parents:
diff changeset
1094 * Make-lang.in (cp/except.o): Add libfuncs.h to dependencies.
kono
parents:
diff changeset
1095 * except.c: Include libfuncs.h.
kono
parents:
diff changeset
1096
kono
parents:
diff changeset
1097 2001-08-11 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
kono
parents:
diff changeset
1098
kono
parents:
diff changeset
1099 * decl.c (grokdeclarator): Clarify diagnostic message.
kono
parents:
diff changeset
1100
kono
parents:
diff changeset
1101 2001-08-13 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
kono
parents:
diff changeset
1102
kono
parents:
diff changeset
1103 * decl2.c (do_nonmember_using_decl): Replace using directive
kono
parents:
diff changeset
1104 with using declaration in the error message.
kono
parents:
diff changeset
1105
kono
parents:
diff changeset
1106 2001-08-11 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
kono
parents:
diff changeset
1107
kono
parents:
diff changeset
1108 * pt.c (maybe_fold_nontype_arg): Use TREE_TYPE of ARG as the
kono
parents:
diff changeset
1109 criterion to avoid rebuilding expression tree instead of
kono
parents:
diff changeset
1110 processing_template_decl.
kono
parents:
diff changeset
1111
kono
parents:
diff changeset
1112 2001-08-07 Jason Merrill <jason_merrill@redhat.com>
kono
parents:
diff changeset
1113
kono
parents:
diff changeset
1114 Support named return value optimization for inlines, too.
kono
parents:
diff changeset
1115 * decl.c (finish_function): Nullify returns here.
kono
parents:
diff changeset
1116 * semantics.c (genrtl_start_function): Not here.
kono
parents:
diff changeset
1117 (cp_expand_stmt): Don't mess with CLEANUP_STMTs.
kono
parents:
diff changeset
1118 (nullify_returns_r): No longer static. Just clear RETURN_EXPR.
kono
parents:
diff changeset
1119 Also nullify the CLEANUP_STMT for the nrv.
kono
parents:
diff changeset
1120 * cp-tree.h: Declare it.
kono
parents:
diff changeset
1121 * optimize.c (declare_return_variable): Replace the nrv with the
kono
parents:
diff changeset
1122 return variable.
kono
parents:
diff changeset
1123 * typeck.c (check_return_expr): Be more flexible on alignment check.
kono
parents:
diff changeset
1124 Ignore cv-quals when checking for a matching type.
kono
parents:
diff changeset
1125
kono
parents:
diff changeset
1126 2001-08-09 Richard Henderson <rth@redhat.com>
kono
parents:
diff changeset
1127
kono
parents:
diff changeset
1128 * decl2.c (finish_objects): Use target hooks instead of
kono
parents:
diff changeset
1129 assemble_constructor and assemble_destructor.
kono
parents:
diff changeset
1130
kono
parents:
diff changeset
1131 2001-08-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
kono
parents:
diff changeset
1132
kono
parents:
diff changeset
1133 * g++spec.c (lang_specific_driver): Quote argument after `-Xlinker'.
kono
parents:
diff changeset
1134
kono
parents:
diff changeset
1135 2001-08-07 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1136
kono
parents:
diff changeset
1137 PR c++/3820
kono
parents:
diff changeset
1138 Stop using TYPE_NONCOPIED_PARTS.
kono
parents:
diff changeset
1139 * call.c (build_over_call): Be careful when copy constructing
kono
parents:
diff changeset
1140 or assigning to an empty class.
kono
parents:
diff changeset
1141 * class.c (check_bases_and_members): It has a
kono
parents:
diff changeset
1142 COMPLEX_ASSIGN_REF if it has a vptr.
kono
parents:
diff changeset
1143 (layout_class_type): Don't add empty class padding to
kono
parents:
diff changeset
1144 TYPE_NONCOPIED_PARTS.
kono
parents:
diff changeset
1145 (finish_struct_1): Don't add the VFIELD either.
kono
parents:
diff changeset
1146 * cp-tree.h (TYPE_HAS_TRIVIAL_INIT_REF): Mention _copy_
kono
parents:
diff changeset
1147 initialization.
kono
parents:
diff changeset
1148
kono
parents:
diff changeset
1149 2001-08-07 Jason Merrill <jason_merrill@redhat.com>
kono
parents:
diff changeset
1150
kono
parents:
diff changeset
1151 * tree.c (walk_tree): Walk siblings even if !walk_subtrees.
kono
parents:
diff changeset
1152
kono
parents:
diff changeset
1153 2001-08-06 Richard Henderson <rth@redhat.com>
kono
parents:
diff changeset
1154
kono
parents:
diff changeset
1155 * decl2.c (finish_objects): Pass a symbol_ref and priority to
kono
parents:
diff changeset
1156 assemble_{constructor,destructor}. Remove priority handling.
kono
parents:
diff changeset
1157
kono
parents:
diff changeset
1158 2001-08-05 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
kono
parents:
diff changeset
1159
kono
parents:
diff changeset
1160 Don't allow template-id in using-declaration.
kono
parents:
diff changeset
1161 * decl2.c (validate_nonmember_using_decl): Handle template-ids.
kono
parents:
diff changeset
1162 (do_class_using_decl): Likewise.
kono
parents:
diff changeset
1163
kono
parents:
diff changeset
1164 2001-08-04 Neil Booth <neil@cat.daikokuya.demon.co.uk>
kono
parents:
diff changeset
1165
kono
parents:
diff changeset
1166 * cp/spew.c (read_token): No need to pop buffers.
kono
parents:
diff changeset
1167
kono
parents:
diff changeset
1168 2001-08-02 Stan Shebs <shebs@apple.com>
kono
parents:
diff changeset
1169
kono
parents:
diff changeset
1170 * cp-tree.h (FNADDR_FROM_VTABLE_ENTRY): Remove, no longer used.
kono
parents:
diff changeset
1171 (fnaddr_from_vtable_entry): Remove decl.
kono
parents:
diff changeset
1172 * method.c (use_thunk): Update comment.
kono
parents:
diff changeset
1173
kono
parents:
diff changeset
1174 2001-08-01 Andrew Cagney <ac131313@redhat.com>
kono
parents:
diff changeset
1175
kono
parents:
diff changeset
1176 * repo.c (get_base_filename): Change return value to const char
kono
parents:
diff changeset
1177 pointer.
kono
parents:
diff changeset
1178
kono
parents:
diff changeset
1179 2001-08-02 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1180
kono
parents:
diff changeset
1181 Kill -fhonor-std.
kono
parents:
diff changeset
1182 * NEWS: Document.
kono
parents:
diff changeset
1183 * cp-tree.h (flag_honor_std): Remove.
kono
parents:
diff changeset
1184 (CPTI_FAKE_STD): Remove.
kono
parents:
diff changeset
1185 (std_node): Remove comment about it being NULL.
kono
parents:
diff changeset
1186 (fake_std_node): Remove.
kono
parents:
diff changeset
1187 * decl.c (in_fake_std): Remove.
kono
parents:
diff changeset
1188 (walk_namespaces_r): Remove fake_std_node check.
kono
parents:
diff changeset
1189 (push_namespace): Remove in_fake_std code.
kono
parents:
diff changeset
1190 (pop_namespace): Likewise.
kono
parents:
diff changeset
1191 (lookup_name_real): Remove fake_std_node check.
kono
parents:
diff changeset
1192 (init_decl_processing): Always create std_node. Always add
kono
parents:
diff changeset
1193 std:: things there.
kono
parents:
diff changeset
1194 (builtin_function): Always put non '_' fns in std.
kono
parents:
diff changeset
1195 * decl2.c (flag_honor_std): Remove.
kono
parents:
diff changeset
1196 (lang_f_options): Remove honor-std.
kono
parents:
diff changeset
1197 (unsupported_options): Add honor-std.
kono
parents:
diff changeset
1198 (set_decl_namespace): Remove fake_std_node check.
kono
parents:
diff changeset
1199 (validate_nonmember_using_decl): Likewise.
kono
parents:
diff changeset
1200 (do_using_directive): Likewise.
kono
parents:
diff changeset
1201 (handle_class_head): Likewise.
kono
parents:
diff changeset
1202 * dump.c (cp_dump_tree): Likewise.
kono
parents:
diff changeset
1203 * except.c (init_exception_processing): Adjust.
kono
parents:
diff changeset
1204 * init.c (build_member_call): Remove fake_std_node check.
kono
parents:
diff changeset
1205 (build_offset_ref): Likewise.
kono
parents:
diff changeset
1206 * lang-options.h: Remove -fhonor-std, -fno-honor-std.
kono
parents:
diff changeset
1207 * rtti.c (init_rtti_processing): Adjust.
kono
parents:
diff changeset
1208
kono
parents:
diff changeset
1209 2001-07-31 Alexandre Petit-Bianco <apbianco@redhat.com>
kono
parents:
diff changeset
1210
kono
parents:
diff changeset
1211 * tree.c (cp_tree_equal): WITH_CLEANUP_EXPR node to use its second
kono
parents:
diff changeset
1212 operand while calling cp_tree_equal.
kono
parents:
diff changeset
1213
kono
parents:
diff changeset
1214 2001-07-31 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1215
kono
parents:
diff changeset
1216 The 3.0 ABI no longer has vbase pointer fields.
kono
parents:
diff changeset
1217 * cp-tree.h (VBASE_NAME, VBASE_NAME_FORMAT, VBASE_NAME_P,
kono
parents:
diff changeset
1218 FORMAT_VBASE_NAME): Remove.
kono
parents:
diff changeset
1219 * method.c (do_build_copy_constructor): Adjust.
kono
parents:
diff changeset
1220 (do_build_assign_ref): Adjust.
kono
parents:
diff changeset
1221 * search.c (lookup_field_r): Adjust.
kono
parents:
diff changeset
1222 * typeck.c (build_component_ref): Adjust.
kono
parents:
diff changeset
1223
kono
parents:
diff changeset
1224 The 3.0 ABI always has a vtable pointer at the start of every
kono
parents:
diff changeset
1225 polymorphic class.
kono
parents:
diff changeset
1226 * rtti.c (build_headof_sub): Remove.
kono
parents:
diff changeset
1227 (build_headof): Adjust.
kono
parents:
diff changeset
1228 (get_tinfo_decl_dynamic): No need to check flag_rtti
kono
parents:
diff changeset
1229 here. Adjust.
kono
parents:
diff changeset
1230 (create_real_tinfo_var): Explain why we need a hidden name.
kono
parents:
diff changeset
1231
kono
parents:
diff changeset
1232 2001-07-31 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1233
kono
parents:
diff changeset
1234 PR c++/3631
kono
parents:
diff changeset
1235 * class.c (update_vtable_entry_for_fn): The fixed adjustment
kono
parents:
diff changeset
1236 of a virtual thunk should be from declaring base.
kono
parents:
diff changeset
1237
kono
parents:
diff changeset
1238 2001-07-31 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1239
kono
parents:
diff changeset
1240 * class.c (dfs_ctor_vtable_bases_queue_p): Always walk into
kono
parents:
diff changeset
1241 the shared virtual base, so preserving inheritance graph order.
kono
parents:
diff changeset
1242
kono
parents:
diff changeset
1243 2001-07-30 Andreas Jaeger <aj@suse.de>
kono
parents:
diff changeset
1244
kono
parents:
diff changeset
1245 * decl2.c: Remove unused var global_temp_name_counter.
kono
parents:
diff changeset
1246
kono
parents:
diff changeset
1247 2001-07-28 Richard Henderson <rth@redhat.com>
kono
parents:
diff changeset
1248
kono
parents:
diff changeset
1249 * method.c (pending_inlines): Remove.
kono
parents:
diff changeset
1250
kono
parents:
diff changeset
1251 2001-07-27 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1252
kono
parents:
diff changeset
1253 * class.c (mark_primary_virtual_base): Don't adjust base
kono
parents:
diff changeset
1254 offsets here.
kono
parents:
diff changeset
1255 (dfs_unshared_virtual_bases): Adjust them here.
kono
parents:
diff changeset
1256 (mark_primary_bases): Explain why we adjust at the end.
kono
parents:
diff changeset
1257
kono
parents:
diff changeset
1258 2001-07-27 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1259
kono
parents:
diff changeset
1260 * class.c (finish_struct_1): When copying the primary base's
kono
parents:
diff changeset
1261 VFIELD, make sure we find it is at offset zero.
kono
parents:
diff changeset
1262
kono
parents:
diff changeset
1263 2001-07-26 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
kono
parents:
diff changeset
1264
kono
parents:
diff changeset
1265 * pt.c (tsubst_template_parms): Call maybe_fold_nontype_arg and
kono
parents:
diff changeset
1266 tsubst_expr for default template arguments.
kono
parents:
diff changeset
1267
kono
parents:
diff changeset
1268 2001-07-26 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1269
kono
parents:
diff changeset
1270 PR c++/3621
kono
parents:
diff changeset
1271 * spew.c (yylex): Only copy the token's lineno, if it is
kono
parents:
diff changeset
1272 nonzero.
kono
parents:
diff changeset
1273
kono
parents:
diff changeset
1274 2001-07-26 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1275
kono
parents:
diff changeset
1276 PR c++/3624
kono
parents:
diff changeset
1277 * call.c (resolve_args): Simplify, call
kono
parents:
diff changeset
1278 convert_from_reference.
kono
parents:
diff changeset
1279 (build_new_op): Resolve and convert from reference ARG1
kono
parents:
diff changeset
1280 earlier. Adjust ARG2 & ARG3 resolve and conversion.
kono
parents:
diff changeset
1281
kono
parents:
diff changeset
1282 2001-07-26 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1283
kono
parents:
diff changeset
1284 * decl.c (last_function_parm_tags): Remove.
kono
parents:
diff changeset
1285 (current_function_parm_tags): Remove.
kono
parents:
diff changeset
1286 (init_decl_processing): Adjust.
kono
parents:
diff changeset
1287 (start_function): Adjust.
kono
parents:
diff changeset
1288 (store_parm_decls): Adjust.
kono
parents:
diff changeset
1289
kono
parents:
diff changeset
1290 PR c++/3152
kono
parents:
diff changeset
1291 * decl.c (grokdeclarator): Detect when a function typedef is
kono
parents:
diff changeset
1292 declaring a function, and create last_function_parms correctly.
kono
parents:
diff changeset
1293
kono
parents:
diff changeset
1294 2001-07-25 Jason Merrill <jason_merrill@redhat.com>
kono
parents:
diff changeset
1295
kono
parents:
diff changeset
1296 * call.c (joust): Only prefer a non-builtin candidate to a builtin
kono
parents:
diff changeset
1297 one if they have the same signature.
kono
parents:
diff changeset
1298
kono
parents:
diff changeset
1299 * cvt.c (build_up_reference): Take DECL parm. Check TREE_STATIC on
kono
parents:
diff changeset
1300 it rather than toplevel_bindings_p. Give it a mangled name if static.
kono
parents:
diff changeset
1301 (convert_to_reference): Adjust.
kono
parents:
diff changeset
1302 * decl2.c (get_temp_name): Lose.
kono
parents:
diff changeset
1303 * mangle.c (mangle_ref_init_variable): New fn.
kono
parents:
diff changeset
1304 (mangle_guard_variable): Strip the ref-init header.
kono
parents:
diff changeset
1305 * cp-tree.h: Adjust.
kono
parents:
diff changeset
1306 * decl.c (cp_finish_decl): Add the DECL_STMT after processing the
kono
parents:
diff changeset
1307 initializer.
kono
parents:
diff changeset
1308 (grok_reference_init): Always use DECL_INITIAL.
kono
parents:
diff changeset
1309
kono
parents:
diff changeset
1310 2001-07-25 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1311
kono
parents:
diff changeset
1312 PR c++/3416
kono
parents:
diff changeset
1313 * call.c (build_conditional_expr): Recheck args after
kono
parents:
diff changeset
1314 conversions.
kono
parents:
diff changeset
1315 * cp-tree.h (build_conditional_expr): Move to correct file.
kono
parents:
diff changeset
1316 * typeck.c (decay_conversion): Diagnose any unknown types
kono
parents:
diff changeset
1317 reaching here.
kono
parents:
diff changeset
1318 (build_binary_op): Don't do initial decay or default
kono
parents:
diff changeset
1319 conversions on overloaded functions.
kono
parents:
diff changeset
1320 (build_static_cast): Don't do a decay conversion here.
kono
parents:
diff changeset
1321
kono
parents:
diff changeset
1322 2001-07-25 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1323
kono
parents:
diff changeset
1324 PR c++/3543
kono
parents:
diff changeset
1325 * typeck.c (condition_conversion): Resolve an OFFSET_REF.
kono
parents:
diff changeset
1326 * expr.c (cplus_expand_expr): An OFFSET_REF should never get here.
kono
parents:
diff changeset
1327
kono
parents:
diff changeset
1328 2001-07-25 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1329
kono
parents:
diff changeset
1330 * class.c (build_vtbl_or_vbase_field): Remove, move into ...
kono
parents:
diff changeset
1331 (create_vtbl_ptr): ... here.
kono
parents:
diff changeset
1332
kono
parents:
diff changeset
1333 2001-07-25 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1334
kono
parents:
diff changeset
1335 * class.c (build_vbase_offset_vbtl_entries): Look for
kono
parents:
diff changeset
1336 non-primary base of which we are a sub vtable.
kono
parents:
diff changeset
1337
kono
parents:
diff changeset
1338 2001-07-24 Phil Edwards <pme@sources.redhat.com>
kono
parents:
diff changeset
1339
kono
parents:
diff changeset
1340 * semantics.c (finish_this_expr): Remove unused code.
kono
parents:
diff changeset
1341
kono
parents:
diff changeset
1342 2001-07-24 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1343
kono
parents:
diff changeset
1344 Simplify rtti, now we've only one ABI.
kono
parents:
diff changeset
1345 * cp-tree.h (cp_tree_index): Remove CPTI_TINFO_DECL_ID,
kono
parents:
diff changeset
1346 CPTI_TINFO_VAR_ID.
kono
parents:
diff changeset
1347 (tinfo_decl_id, tinfo_var_id): Remove.
kono
parents:
diff changeset
1348 (get_typeid_1): Remove.
kono
parents:
diff changeset
1349 * rtti.c
kono
parents:
diff changeset
1350 (init_rtti_processing): Remove tinfo_decl_id & tinfo_var_id.
kono
parents:
diff changeset
1351 (typeid_ok_p): New function.
kono
parents:
diff changeset
1352 (build_type_id): Call typeid_ok_p. Don't call tinfo_from_decl.
kono
parents:
diff changeset
1353 (get_tinfo_decl): Remove old abi documentation.
kono
parents:
diff changeset
1354 (tinfo_from_decl): Remove.
kono
parents:
diff changeset
1355 (get_type_id): Call typeid_ok_p. Absorb get_typeid_1.
kono
parents:
diff changeset
1356 (get_typeid_1): Remove.
kono
parents:
diff changeset
1357 (get_base_offset): Remove.
kono
parents:
diff changeset
1358 (synthesize_tinfo_var): Absorb get_base_offset.
kono
parents:
diff changeset
1359 (create_real_tinfo_var): Don't use tinfo_decl_id.
kono
parents:
diff changeset
1360
kono
parents:
diff changeset
1361 2001-07-23 Graham Stott <grahams@redhat.com>
kono
parents:
diff changeset
1362
kono
parents:
diff changeset
1363 * cp/class.c (type_requires_array_cookie): Fix use of uninitialized
kono
parents:
diff changeset
1364 variable has_two_argument_delete_p.
kono
parents:
diff changeset
1365
kono
parents:
diff changeset
1366 2001-07-21 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1367
kono
parents:
diff changeset
1368 Remove flag_vtable_thunk. It is always on for the 3.0 ABI.
kono
parents:
diff changeset
1369 * cp-tree.h (CPTI_DELTA2_IDENTIFIER): Remove.
kono
parents:
diff changeset
1370 (CPTI_INDEX_IDENTIFIER): Remove.
kono
parents:
diff changeset
1371 (CPT_PFN_OR_DELTA2_IDENTIFIER): Remove.
kono
parents:
diff changeset
1372 (delta2_identifier): Remove.
kono
parents:
diff changeset
1373 (index_identifier): Remove.
kono
parents:
diff changeset
1374 (pfn_or_delta2_identifier): Remove.
kono
parents:
diff changeset
1375 (flag_vtable_thunks): Remove.
kono
parents:
diff changeset
1376 (VTABLE_DELTA2_NAME): Remove.
kono
parents:
diff changeset
1377 (VTABLE_INDEX_NAME): Remove.
kono
parents:
diff changeset
1378 (FNADDR_FROM_VTABLE_ENTRY): Adjust.
kono
parents:
diff changeset
1379 (vfunc_ptr_type_node): Adjust.
kono
parents:
diff changeset
1380 (VTABLE_NAME_PREFIX): Adjust.
kono
parents:
diff changeset
1381 (build_vfn_ref): Lose first parameter.
kono
parents:
diff changeset
1382 (fixup_all_virtual_upcast_offsets): Remove.
kono
parents:
diff changeset
1383 * decl.c (initialize_predefined_identifiers): Remove
kono
parents:
diff changeset
1384 delta2_identifier, index_identifier, pfn_or_delta2_identifier.
kono
parents:
diff changeset
1385 (init_decl_processing): Remove no-vtable-thunk code.
kono
parents:
diff changeset
1386 * decl2.c (flag_vtable_thunks): Remove.
kono
parents:
diff changeset
1387 (mark_vtable_entries): Remove no-vtable-thunk code.
kono
parents:
diff changeset
1388 * error.c (dump_decl): Remove no-vtable-thunk code.
kono
parents:
diff changeset
1389 (dump_expr): Adjust ptr to member function code.
kono
parents:
diff changeset
1390 * init.c (initialize_vtable_ptrs): Remove no-vtable-thunk
kono
parents:
diff changeset
1391 code.
kono
parents:
diff changeset
1392 * rtti.c (build_headof): Remove no-vtable-thunk code.
kono
parents:
diff changeset
1393 (get_tinfo_decl_dynamic): Adjust build_vfn_ref call.
kono
parents:
diff changeset
1394 * search.c (get_base_distance): Remove expand_upcast_fixups case.
kono
parents:
diff changeset
1395 (virtual_context) Remove.
kono
parents:
diff changeset
1396 (expand_upcast_fixups): Remove.
kono
parents:
diff changeset
1397 (fixup_virtual_upcast_offsets): Remove.
kono
parents:
diff changeset
1398 (fixup_all_virtual_upcast_offsets): Remove.
kono
parents:
diff changeset
1399 * typeck.c (get_member_function_from_ptrfunc): Remove
kono
parents:
diff changeset
1400 no-vtable-thunk code.
kono
parents:
diff changeset
1401 * call.c (build_over_call): Adjust call to build_vfn_ref.
kono
parents:
diff changeset
1402 * class.c (build_vfn_ref): Lose first parameter. Remove
kono
parents:
diff changeset
1403 no-vtable-thunk code.
kono
parents:
diff changeset
1404 (build_rtti_vtbl_entries): Remove no-vtable-thunk code.
kono
parents:
diff changeset
1405 (build_vtable_entry): Remove no-vtable-thunk code.
kono
parents:
diff changeset
1406
kono
parents:
diff changeset
1407 2001-07-20 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1408
kono
parents:
diff changeset
1409 Remove old-abi remnants. Remove comments about old abi
kono
parents:
diff changeset
1410 behavior. Remove references to 'new-abi' in comments.
kono
parents:
diff changeset
1411 * cp-tree.h: Adjust comments.
kono
parents:
diff changeset
1412 (vbase_offsets_in_vtable_p): Delete.
kono
parents:
diff changeset
1413 (vcall_offsets_in_vtable_p): Delete.
kono
parents:
diff changeset
1414 (vptrs_present_everywhere_p): Delete.
kono
parents:
diff changeset
1415 (all_overridden_vfuns_in_vtables_p): Delete.
kono
parents:
diff changeset
1416 (merge_primary_and_secondary_vtables_p): Delete.
kono
parents:
diff changeset
1417 (TYPE_CONTAINS_VPTR_P): Adjust.
kono
parents:
diff changeset
1418 (VTT_NAME_PREFIX): Remove.
kono
parents:
diff changeset
1419 (CTOR_VTBL_NAME_PREFIX): Remove.
kono
parents:
diff changeset
1420 (init_vbase_pointers): Remove.
kono
parents:
diff changeset
1421 * class.c: Adjust coments.
kono
parents:
diff changeset
1422 (build_vbase_pointer_fields): Delete.
kono
parents:
diff changeset
1423 (build_vbase_pointer): Remove old-abi code.
kono
parents:
diff changeset
1424 (build_secondary_vtable): Likewise.
kono
parents:
diff changeset
1425 (modify_all_vtables): Likewise.
kono
parents:
diff changeset
1426 (create_vtable_ptr): Likewise.
kono
parents:
diff changeset
1427 (layout_class_type): Likewise.
kono
parents:
diff changeset
1428 (finish_struct_1): Likewise.
kono
parents:
diff changeset
1429 (finish_vtbls): Likewise.
kono
parents:
diff changeset
1430 (dfs_finish_vtbls): Delete.
kono
parents:
diff changeset
1431 (build_vbase_offset_vtbl_entries): Remove old-abi code.
kono
parents:
diff changeset
1432 * cvt.c: Adjust comments.
kono
parents:
diff changeset
1433 * decl.c: Adjust comments.
kono
parents:
diff changeset
1434 * decl2.c: Adjust comments.
kono
parents:
diff changeset
1435 * init.c: Adjust comments.
kono
parents:
diff changeset
1436 (construct_virtual_bases): Remove old-abi code.
kono
parents:
diff changeset
1437 * lang-specs.h: Remove -fno-new-abi.
kono
parents:
diff changeset
1438 * mangle.c: Adjust comments.
kono
parents:
diff changeset
1439 * rtti.c: Adjust comments.
kono
parents:
diff changeset
1440 (get_base_offset): Remove old-abi-code.
kono
parents:
diff changeset
1441 * search.c: Adjust comments.
kono
parents:
diff changeset
1442 (dfs_init_vbase_pointers): Remove.
kono
parents:
diff changeset
1443 (dfs_vtable_path_unmark): Remove.
kono
parents:
diff changeset
1444 (init_vbase_pointers): Remove.
kono
parents:
diff changeset
1445 * semantics.c: Adjust comments.
kono
parents:
diff changeset
1446 (emit_associated_thunks): Remove old-abi code.
kono
parents:
diff changeset
1447 * typeck.c: Adjust comments.
kono
parents:
diff changeset
1448
kono
parents:
diff changeset
1449 2001-07-20 Daniel Berlin <dan@cgsoftware.com>
kono
parents:
diff changeset
1450
kono
parents:
diff changeset
1451 * Make-lang.in (cp/optimize.o): Depend on $(PARAMS_H), not
kono
parents:
diff changeset
1452 params.h.
kono
parents:
diff changeset
1453
kono
parents:
diff changeset
1454 2001-07-19 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
1455
kono
parents:
diff changeset
1456 * class.c (finish_struct_anon): Forbid nested classes.
kono
parents:
diff changeset
1457
kono
parents:
diff changeset
1458 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
kono
parents:
diff changeset
1459
kono
parents:
diff changeset
1460 * decl2.c: Don't include dwarfout.h and dwarf2out.h.
kono
parents:
diff changeset
1461 * optimize.c: Include debug.h.
kono
parents:
diff changeset
1462 (maybe_clone_body): Use debug hook.
kono
parents:
diff changeset
1463 * semantics.c: Include debug.h.
kono
parents:
diff changeset
1464 (expand_body): Use debug hook.
kono
parents:
diff changeset
1465
kono
parents:
diff changeset
1466 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
kono
parents:
diff changeset
1467
kono
parents:
diff changeset
1468 * spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
kono
parents:
diff changeset
1469
kono
parents:
diff changeset
1470 2001-07-18 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
1471
kono
parents:
diff changeset
1472 * class.c (type_requires_array_cookie): New function.
kono
parents:
diff changeset
1473 (check_methods): Don't try to figure out whether the type needs a
kono
parents:
diff changeset
1474 cookie here.
kono
parents:
diff changeset
1475 (check_bases_and_members): Set TYPE_VEC_NEW_USES_COOKIE here.
kono
parents:
diff changeset
1476 * cp-tree.h (TYPE_VEC_DELETE_TAKES_SIZE): Remove.
kono
parents:
diff changeset
1477 (TYPE_VEC_NEW_USES_COOKIE): Reimplement.
kono
parents:
diff changeset
1478 * pt.c (instantiate_class_template): Don't set
kono
parents:
diff changeset
1479 TYPE_VEC_DELETE_TAKES_SIZE.
kono
parents:
diff changeset
1480 * NEWS: Document ABI changes from GCC 3.0.
kono
parents:
diff changeset
1481
kono
parents:
diff changeset
1482 2001-07-18 Xavier Delacour <xavier@fmaudio.net>,
kono
parents:
diff changeset
1483 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
kono
parents:
diff changeset
1484
kono
parents:
diff changeset
1485 * NEWS (Changes in GCC 3.0): Fix typo.
kono
parents:
diff changeset
1486
kono
parents:
diff changeset
1487 2001-07-13 Joseph S. Myers <jsm28@cam.ac.uk>
kono
parents:
diff changeset
1488
kono
parents:
diff changeset
1489 * decl2.c (cplus_decl_attributes): Take a pointer to the node to
kono
parents:
diff changeset
1490 which attributes are to be attached, and a flags argument. Update
kono
parents:
diff changeset
1491 call to decl_attributes.
kono
parents:
diff changeset
1492 (grokfield): Update call to decl_attributes.
kono
parents:
diff changeset
1493 * class.c (finish_struct): Update call to cplus_decl_attributes.
kono
parents:
diff changeset
1494 * cp-tree.h (cplus_decl_attributes): Update prototype.
kono
parents:
diff changeset
1495 * decl.c (start_decl, grokdeclarator, start_function): Update
kono
parents:
diff changeset
1496 calls to decl_attributes and cplus_decl_attributes.
kono
parents:
diff changeset
1497 * friend.c (do_friend): Update call to cplus_decl_attributes.
kono
parents:
diff changeset
1498 * parse.y (parse_bitfield): Update call to cplus_decl_attributes.
kono
parents:
diff changeset
1499
kono
parents:
diff changeset
1500 2001-07-12 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
1501
kono
parents:
diff changeset
1502 * decl.c (make_rtl_for_nonlocal_decl): Set DECL_C_HARD_REGISTER
kono
parents:
diff changeset
1503 for `register' variables with an asm-specification.
kono
parents:
diff changeset
1504
kono
parents:
diff changeset
1505 2001-07-11 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
1506
kono
parents:
diff changeset
1507 * semantics.c (finish_asm_stmt): Mark the output operands
kono
parents:
diff changeset
1508 to an asm addressable, if necessary.
kono
parents:
diff changeset
1509
kono
parents:
diff changeset
1510 2001-07-11 Ben Elliston <bje@redhat.com>
kono
parents:
diff changeset
1511
kono
parents:
diff changeset
1512 * Revert this change -- there is a subtle bug.
kono
parents:
diff changeset
1513
kono
parents:
diff changeset
1514 PR c++/80
kono
parents:
diff changeset
1515 * decl.c (finish_enum): New "attributes" argument; pass it to
kono
parents:
diff changeset
1516 cplus_decl_attributes. Use a narrower type if the enum is packed.
kono
parents:
diff changeset
1517 * cp-tree.h (finish_enum): Adjust prototype.
kono
parents:
diff changeset
1518 * parse.y (enum_head): New non-terminal.
kono
parents:
diff changeset
1519 (structsp): Use it. Enums now may be preceded or followed by
kono
parents:
diff changeset
1520 optional attributes -- pass their chained tree to finish_enum().
kono
parents:
diff changeset
1521 * pt.c (tsubst_enum): Pass NULL_TREE for the new argument.
kono
parents:
diff changeset
1522
kono
parents:
diff changeset
1523 2001-07-10 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
1524
kono
parents:
diff changeset
1525 * pt.c (tsubst_decl): Set DECL_CONTEXT for namespace-scope
kono
parents:
diff changeset
1526 variables.
kono
parents:
diff changeset
1527
kono
parents:
diff changeset
1528 2001-07-10 Jason Merrill <jason_merrill@redhat.com>
kono
parents:
diff changeset
1529
kono
parents:
diff changeset
1530 * semantics.c (cp_expand_stmt): Fix for null
kono
parents:
diff changeset
1531 current_function_return_value.
kono
parents:
diff changeset
1532
kono
parents:
diff changeset
1533 2001-07-10 Jan van Male <jan.vanmale@fenk.wau.nl>
kono
parents:
diff changeset
1534
kono
parents:
diff changeset
1535 * call.c (build_op_delete_call): Initialize fn.
kono
parents:
diff changeset
1536 (convert_like_real): Delete conditional.
kono
parents:
diff changeset
1537 (joust): Initialize *w and *l.
kono
parents:
diff changeset
1538 * class.c: Add prototype for binfo_ctor_vtable.
kono
parents:
diff changeset
1539 (get_primary_binfo): Initialize result.
kono
parents:
diff changeset
1540 * init.c (build_java_class_ref): Initialize name.
kono
parents:
diff changeset
1541
kono
parents:
diff changeset
1542 2001-07-09 Erik Rozendaal <dlr@acm.org>
kono
parents:
diff changeset
1543
kono
parents:
diff changeset
1544 * typeck.c (unary_complex_lvalue): Do not duplicate the
kono
parents:
diff changeset
1545 argument to modify, pre-, or post-increment when used as an
kono
parents:
diff changeset
1546 lvalue and when the argument has side-effects.
kono
parents:
diff changeset
1547
kono
parents:
diff changeset
1548 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
kono
parents:
diff changeset
1549
kono
parents:
diff changeset
1550 * decl.c (start_decl): Don't call SET_DEFAULT_DECL_ATTRIBUTES.
kono
parents:
diff changeset
1551 (start_function): Don't call SET_DEFAULT_DECL_ATTRIBUTES. Call
kono
parents:
diff changeset
1552 cplus_decl_attributes even if attrs is NULL.
kono
parents:
diff changeset
1553 * friend.c (do_friend): Don't call SET_DEFAULT_DECL_ATTRIBUTES.
kono
parents:
diff changeset
1554
kono
parents:
diff changeset
1555 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
kono
parents:
diff changeset
1556
kono
parents:
diff changeset
1557 * decl.c (grokdeclarator), decl2.c (cplus_decl_attributes): Update
kono
parents:
diff changeset
1558 calls to decl_attributes.
kono
parents:
diff changeset
1559
kono
parents:
diff changeset
1560 2001-07-06 Ira Ruben <ira@apple.com>
kono
parents:
diff changeset
1561
kono
parents:
diff changeset
1562 * cp-tree.def (TEMPLATE_DECL): Update comment. DECL_RESULT should
kono
parents:
diff changeset
1563 be DECL_TEMPLATE_RESULT.
kono
parents:
diff changeset
1564
kono
parents:
diff changeset
1565 2001-07-05 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
kono
parents:
diff changeset
1566
kono
parents:
diff changeset
1567 * cp-tree.h (copy_template_template_parm): Rename to ...
kono
parents:
diff changeset
1568 (bind_template_template_parm): ... here.
kono
parents:
diff changeset
1569 * tree.c (copy_template_template_parm): Rename to ...
kono
parents:
diff changeset
1570 (bind_template_template_parm): ... here. Remove the case when
kono
parents:
diff changeset
1571 NEWARGS is NULL_TREE.
kono
parents:
diff changeset
1572 (copy_tree_r): Don't copy TEMPLATE_TEMPLATE_PARM and
kono
parents:
diff changeset
1573 BOUND_TEMPLATE_TEMPLATE_PARM.
kono
parents:
diff changeset
1574 * pt.c (lookup_template_class): Adjust.
kono
parents:
diff changeset
1575
kono
parents:
diff changeset
1576 2001-07-05 Jason Merrill <jason_merrill@redhat.com>
kono
parents:
diff changeset
1577
kono
parents:
diff changeset
1578 * cvt.c (convert_lvalue): New fn.
kono
parents:
diff changeset
1579 * cp-tree.h: Declare it.
kono
parents:
diff changeset
1580 * method.c (do_build_assign_ref): Use it.
kono
parents:
diff changeset
1581 (do_build_copy_constructor): Convert parm to base types
kono
parents:
diff changeset
1582 before calling base constructors.
kono
parents:
diff changeset
1583
kono
parents:
diff changeset
1584 * typeck.c (check_return_expr): Check DECL_ALIGN instead of
kono
parents:
diff changeset
1585 DECL_USER_ALIGN. Check flag_elide_constructors instead of
kono
parents:
diff changeset
1586 optimize.
kono
parents:
diff changeset
1587 * semantics.c (cp_expand_stmt): Don't destroy the named return value.
kono
parents:
diff changeset
1588
kono
parents:
diff changeset
1589 2001-07-02 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1590
kono
parents:
diff changeset
1591 * optimize.c (optimize_inline_calls): New function, broken out
kono
parents:
diff changeset
1592 of ...
kono
parents:
diff changeset
1593 (optimize_function): ... here. Call it. Don't inline if it is
kono
parents:
diff changeset
1594 a thunk.
kono
parents:
diff changeset
1595 (dump_function): Print name of dump flag causing this dump.
kono
parents:
diff changeset
1596 * semantics.c (expand_body): Move thunk inline check to
kono
parents:
diff changeset
1597 optimize_function.
kono
parents:
diff changeset
1598
kono
parents:
diff changeset
1599 2001-06-29 Joseph S. Myers <jsm28@cam.ac.uk>
kono
parents:
diff changeset
1600
kono
parents:
diff changeset
1601 * typeck.c (COMP_TYPE_ATTRIBUTES): Don't define.
kono
parents:
diff changeset
1602 (comptypes): Use target.comp_type_attributes.
kono
parents:
diff changeset
1603
kono
parents:
diff changeset
1604 2001-06-29 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1605
kono
parents:
diff changeset
1606 * cp-tree.h (flag_dump_class_layout): Remove unneeded declaration.
kono
parents:
diff changeset
1607
kono
parents:
diff changeset
1608 2001-06-28 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
kono
parents:
diff changeset
1609
kono
parents:
diff changeset
1610 * error.c (lang_print_error_function): Add a `diagnostic_context *'
kono
parents:
diff changeset
1611 parameter. Tweak.
kono
parents:
diff changeset
1612
kono
parents:
diff changeset
1613 2001-06-27 Neil Booth <neil@cat.daikokuya.demon.co.uk>
kono
parents:
diff changeset
1614
kono
parents:
diff changeset
1615 * decl2.c (import_export_class): Update.
kono
parents:
diff changeset
1616
kono
parents:
diff changeset
1617 2001-06-26 Gabriel Dos Reis <gdr@codesourcery.com>
kono
parents:
diff changeset
1618
kono
parents:
diff changeset
1619 * error.c (init_error): Adjust settings.
kono
parents:
diff changeset
1620
kono
parents:
diff changeset
1621 2001-06-26 Gabriel Dos Reis <gdr@codesourcery.com>
kono
parents:
diff changeset
1622
kono
parents:
diff changeset
1623 * error.c (init_error): Adjust settings.
kono
parents:
diff changeset
1624
kono
parents:
diff changeset
1625 2001-06-19 Richard Sandiford <rsandifo@redhat.com>
kono
parents:
diff changeset
1626
kono
parents:
diff changeset
1627 * except.c (initialize_handler_parm): Expect __cxa_begin_catch to
kono
parents:
diff changeset
1628 return pointers to data members by reference rather than by value.
kono
parents:
diff changeset
1629
kono
parents:
diff changeset
1630 2001-06-18 Jason Merrill <jason_merrill@redhat.com>
kono
parents:
diff changeset
1631
kono
parents:
diff changeset
1632 Implement the Named Return Value optimization.
kono
parents:
diff changeset
1633 * cp-tree.h (struct cp_language_function): Add x_return_value.
kono
parents:
diff changeset
1634 (current_function_return_value): Now a macro.
kono
parents:
diff changeset
1635 * decl.c: Don't define it.
kono
parents:
diff changeset
1636 (define_label, finish_case_label): Don't clear it.
kono
parents:
diff changeset
1637 (init_decl_processing): Don't register it with GC.
kono
parents:
diff changeset
1638 * semantics.c (genrtl_finish_function): Don't check it for
kono
parents:
diff changeset
1639 no_return_label. Copy the RTL from the return value to
kono
parents:
diff changeset
1640 current_function_return_value and walk, calling...
kono
parents:
diff changeset
1641 (nullify_returns_r): ...this new fn.
kono
parents:
diff changeset
1642 * typeck.c (check_return_expr): Set current_function_return_value.
kono
parents:
diff changeset
1643
kono
parents:
diff changeset
1644 2001-06-15 Jason Merrill <jason_merrill@redhat.com>
kono
parents:
diff changeset
1645
kono
parents:
diff changeset
1646 * class.c (dfs_accumulate_vtbl_inits): Just point to the base we're
kono
parents:
diff changeset
1647 sharing a ctor vtable with. Merge code for cases 1 and 2.
kono
parents:
diff changeset
1648 (binfo_ctor_vtable): New fn.
kono
parents:
diff changeset
1649 (build_vtt_inits, dfs_build_secondary_vptr_vtt_inits): Use it.
kono
parents:
diff changeset
1650
kono
parents:
diff changeset
1651 2001-06-14 Jason Merrill <jason_merrill@redhat.com>
kono
parents:
diff changeset
1652
kono
parents:
diff changeset
1653 * class.c (dfs_find_final_overrider): Fix logic.
kono
parents:
diff changeset
1654
kono
parents:
diff changeset
1655 * class.c (update_vtable_entry_for_fn): Uncomment optimization to use
kono
parents:
diff changeset
1656 virtual thunk instead of non-virtual.
kono
parents:
diff changeset
1657 (get_matching_virtual): Uncomment.
kono
parents:
diff changeset
1658
kono
parents:
diff changeset
1659 * pt.c (unify): Don't recurse between the POINTER_TYPE and the
kono
parents:
diff changeset
1660 OFFSET_TYPE. If we're adding cv-quals, the extra ones would be on
kono
parents:
diff changeset
1661 PARM, not ARG.
kono
parents:
diff changeset
1662
kono
parents:
diff changeset
1663 2001-06-14 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1664
kono
parents:
diff changeset
1665 * class.c (dfs_accumulate_vtbl_inits): For case 2 & 3, make sure
kono
parents:
diff changeset
1666 we've not emerged from the hierarchy of RTTI_BINFO on reaching
kono
parents:
diff changeset
1667 a non-virtual base.
kono
parents:
diff changeset
1668
kono
parents:
diff changeset
1669 2001-06-13 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
1670
kono
parents:
diff changeset
1671 * NEWS: Update release number.
kono
parents:
diff changeset
1672
kono
parents:
diff changeset
1673 2001-06-12 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1674
kono
parents:
diff changeset
1675 PR c++/3130, c++/3131, c++/3132
kono
parents:
diff changeset
1676 * cp-tree.h (BINFO_UNSHARED_MARKED): New #define.
kono
parents:
diff changeset
1677 * class.c (force_canonical_binfo_r): Move
kono
parents:
diff changeset
1678 BINFO_UNSHARED_MARKED, BINFO_LOST_PRIMARY_P. Don't move
kono
parents:
diff changeset
1679 virtual bases unless they're primary and what they're primary
kono
parents:
diff changeset
1680 too has been moved.
kono
parents:
diff changeset
1681 (dfs_unshared_virtual_bases): Use BINFO_UNSHARED_MARKED. Cope
kono
parents:
diff changeset
1682 with morally virtual bases. Duplicate BINFO_LOST_PRIMARY_P and
kono
parents:
diff changeset
1683 BINFO_PRIMARY_BASE_OF. Clear BINFO_VTABLE for all but the most
kono
parents:
diff changeset
1684 derived binfo.
kono
parents:
diff changeset
1685 (mark_primary_bases): Use BINFO_UNSHARED_MARKED.
kono
parents:
diff changeset
1686 (layout_nonempty_base_or_field): Add most derived type
kono
parents:
diff changeset
1687 parameter. Adjust.
kono
parents:
diff changeset
1688 (layout_empty_base): Likewise.
kono
parents:
diff changeset
1689 (build_base_field): Likewise.
kono
parents:
diff changeset
1690 (build_base_fields): Likewise.
kono
parents:
diff changeset
1691 (propagate_binfo_offsets): Add most derived type
kono
parents:
diff changeset
1692 parameter. Skip non canonical virtual bases too.
kono
parents:
diff changeset
1693 (dfs_set_offset_for_unshared_vbases): Don't skip primary
kono
parents:
diff changeset
1694 bases. Do skip canonical bases.
kono
parents:
diff changeset
1695 (layout_virtual_bases): Adjust.
kono
parents:
diff changeset
1696 (layout_class_type): Adjust.
kono
parents:
diff changeset
1697 (dfs_get_primary_binfo): Build list of virtual primary base
kono
parents:
diff changeset
1698 candidates.
kono
parents:
diff changeset
1699 (get_primary_binfo): Check that the shared virtual primary
kono
parents:
diff changeset
1700 base candidate was found first.
kono
parents:
diff changeset
1701 (accumulate_vtbl_inits): Don't do anything for non-vptr
kono
parents:
diff changeset
1702 containing binfos. For case 1 primary virtual bases, keep
kono
parents:
diff changeset
1703 checking that we've not emerged from the hierarchy of RTTI_BINFO.
kono
parents:
diff changeset
1704
kono
parents:
diff changeset
1705 2001-06-12 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1706
kono
parents:
diff changeset
1707 PR c++/3089
kono
parents:
diff changeset
1708 * class.c (dfs_accumulate_vtbl_inits): Always walk down the
kono
parents:
diff changeset
1709 hierarchy looking for primary bases for a ctor
kono
parents:
diff changeset
1710 vtable. Recursively call oneself, if we meet our primary via
kono
parents:
diff changeset
1711 this route and haven't met it yet via inheritance graph order.
kono
parents:
diff changeset
1712
kono
parents:
diff changeset
1713 2001-06-11 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
1714
kono
parents:
diff changeset
1715 * lang-options.h: Emit documentation for -fno-honor-std, not
kono
parents:
diff changeset
1716 -fhonor-std.
kono
parents:
diff changeset
1717
kono
parents:
diff changeset
1718 2001-06-10 Alexandre Oliva <aoliva@redhat.com>
kono
parents:
diff changeset
1719
kono
parents:
diff changeset
1720 * typeck.c (get_member_function_from_ptrfunc) [vbit_in_delta]:
kono
parents:
diff changeset
1721 Don't clobber delta.
kono
parents:
diff changeset
1722 (expand_ptrmemfunc_cst) [ptrmemfunc_vbit_in_delta]: Adjust pfn.
kono
parents:
diff changeset
1723
kono
parents:
diff changeset
1724 2001-06-10 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
1725 Gabriel Dos Reis <gdr@codesourcery.com>
kono
parents:
diff changeset
1726
kono
parents:
diff changeset
1727 * Make-lang.in (cp/call.o): Depend on diagnostic.h
kono
parents:
diff changeset
1728 (cp/typeck.o): Depend on diagnostic.h
kono
parents:
diff changeset
1729 (cp/typeck2.o): Depend on diagnostic.h
kono
parents:
diff changeset
1730 (cp/repo.o): Depend on dignostic.h
kono
parents:
diff changeset
1731 * typeck.c: #include diagnostic.h
kono
parents:
diff changeset
1732 (convert_for_initialization): Remove extern declaration for
kono
parents:
diff changeset
1733 warningcount and errorcount.
kono
parents:
diff changeset
1734
kono
parents:
diff changeset
1735 * call.c: #include diagnostic.h
kono
parents:
diff changeset
1736 (convert_like_real): Remove extern declaration for warnincount and
kono
parents:
diff changeset
1737 errorcount.
kono
parents:
diff changeset
1738
kono
parents:
diff changeset
1739 * repo.c: #include diagnostic.h
kono
parents:
diff changeset
1740 * typeck2.c: #include diagnostic.h
kono
parents:
diff changeset
1741
kono
parents:
diff changeset
1742 2001-06-08 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1743
kono
parents:
diff changeset
1744 * decl.c (duplicate_decls): Fix DECL_TEMPLATE_RESULT thinko
kono
parents:
diff changeset
1745 in previous change.
kono
parents:
diff changeset
1746
kono
parents:
diff changeset
1747 2001-06-08 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1748
kono
parents:
diff changeset
1749 PR c++/2929
kono
parents:
diff changeset
1750 * friend.c (do_friend): Use push_decl_namespace for classes at
kono
parents:
diff changeset
1751 namespace scope.
kono
parents:
diff changeset
1752
kono
parents:
diff changeset
1753 2001-06-08 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1754 Jason Merrill <jason_merrill@redhat.com>
kono
parents:
diff changeset
1755
kono
parents:
diff changeset
1756 PR c++/3061
kono
parents:
diff changeset
1757 * class.c (build_secondary_vtable): Use assert, rather than an error
kono
parents:
diff changeset
1758 message.
kono
parents:
diff changeset
1759 (dfs_fixup_binfo_vtbls): BINFO_VTABLE might be NULL.
kono
parents:
diff changeset
1760 (dfs_accumulate_vtbl_inits): A lost primary virtual base may
kono
parents:
diff changeset
1761 be between ORIG_BINFO and RTTI_BINFO, but neither of them.
kono
parents:
diff changeset
1762 Don't set BINFO_VTABLE for a primary virtual base.
kono
parents:
diff changeset
1763
kono
parents:
diff changeset
1764 2001-06-07 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
1765
kono
parents:
diff changeset
1766 * decl.c (duplicate_decls): Update source position information
kono
parents:
diff changeset
1767 when a template function is defined.
kono
parents:
diff changeset
1768
kono
parents:
diff changeset
1769 2001-06-07 Phil Edwards <pme@sources.redhat.com>
kono
parents:
diff changeset
1770
kono
parents:
diff changeset
1771 * lang-specs.h: Move -D_GNU_SOURCE to config/linux.h.
kono
parents:
diff changeset
1772
kono
parents:
diff changeset
1773 2001-06-07 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1774
kono
parents:
diff changeset
1775 PR c++/2914
kono
parents:
diff changeset
1776 * decl.c (pushtag): Don't push into a complete type's scope.
kono
parents:
diff changeset
1777
kono
parents:
diff changeset
1778 2001-06-06 Jason Merrill <jason_merrill@redhat.com>
kono
parents:
diff changeset
1779
kono
parents:
diff changeset
1780 * cp-tree.h (THUNK_GENERATE_WITH_VTABLE_P): Lose.
kono
parents:
diff changeset
1781 (struct lang_decl_flags): Lose generate_with_vtable_p.
kono
parents:
diff changeset
1782 (BV_GENERATE_THUNK_WITH_VTABLE_P): Lose.
kono
parents:
diff changeset
1783 * class.c (copy_virtuals): Adjust.
kono
parents:
diff changeset
1784 * decl2.c (mark_vtable_entries): Adjust.
kono
parents:
diff changeset
1785 * method.c (make_thunk, build_vtable_entry): Adjust.
kono
parents:
diff changeset
1786 * class.c (update_vtable_entry_for_fn): Only look as far as the
kono
parents:
diff changeset
1787 first defining class.
kono
parents:
diff changeset
1788 (build_vtbl_initializer): Put nothing in the slot for a function only
kono
parents:
diff changeset
1789 defined in a lost primary virtual base.
kono
parents:
diff changeset
1790 (add_vcall_offset_vtbl_entries_1): Use the same code for
kono
parents:
diff changeset
1791 the lost primary case and the normal case.
kono
parents:
diff changeset
1792 (dfs_unshared_virtual_bases): Don't lose a non-virtual primary base.
kono
parents:
diff changeset
1793 (get_vfield_offset, get_derived_offset): Lose.
kono
parents:
diff changeset
1794 (dfs_find_final_overrider): Use look_for_overrides_here.
kono
parents:
diff changeset
1795 (get_matching_virtual): New fn.
kono
parents:
diff changeset
1796 * semantics.c (emit_associated_thunks): Check BV_USE_VCALL_INDEX_P,
kono
parents:
diff changeset
1797 not BV_VCALL_INDEX.
kono
parents:
diff changeset
1798 * search.c (look_for_overrides_here): Split out from...
kono
parents:
diff changeset
1799 (look_for_overrides_r): Here.
kono
parents:
diff changeset
1800
kono
parents:
diff changeset
1801 * class.c (find_final_overrider): Return error_mark_node on error.
kono
parents:
diff changeset
1802
kono
parents:
diff changeset
1803 * decl2.c (key_method): #if 0 accidental change.
kono
parents:
diff changeset
1804
kono
parents:
diff changeset
1805 2001-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
kono
parents:
diff changeset
1806
kono
parents:
diff changeset
1807 * call.c (convert_default_arg): Use INTEGRAL_TYPE_P.
kono
parents:
diff changeset
1808 (build_over_call): Likewise.
kono
parents:
diff changeset
1809 * decl.c (grokparms): Likewise.
kono
parents:
diff changeset
1810 * pt.c (tsubst_decl): Likewise.
kono
parents:
diff changeset
1811 * typeck.c (convert_arguments): Likewise.
kono
parents:
diff changeset
1812
kono
parents:
diff changeset
1813 2001-06-05 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
1814
kono
parents:
diff changeset
1815 * semantics.c (begin_class_definition): Robustify.
kono
parents:
diff changeset
1816
kono
parents:
diff changeset
1817 * pt.c (instantiate_decl): Tell the repository code about the
kono
parents:
diff changeset
1818 clones, not the cloned functions.
kono
parents:
diff changeset
1819 * repo.c (repo_template_used): Explicitly instantiate the cloned
kono
parents:
diff changeset
1820 function, not the clones.
kono
parents:
diff changeset
1821
kono
parents:
diff changeset
1822 2001-06-05 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1823
kono
parents:
diff changeset
1824 * call.c (build_user_type_conversion_1): Set ICS_USER_FLAG and
kono
parents:
diff changeset
1825 ICS_BAD_FLAG on created conversion.
kono
parents:
diff changeset
1826 (compare_ics): Break out rank.
kono
parents:
diff changeset
1827
kono
parents:
diff changeset
1828 2001-06-05 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1829
kono
parents:
diff changeset
1830 * decl.c (xref_tag): Remove extraneous %s on dependent name
kono
parents:
diff changeset
1831 lookup warning.
kono
parents:
diff changeset
1832
kono
parents:
diff changeset
1833 2001-06-05 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1834
kono
parents:
diff changeset
1835 * class.c (layout_vtable_decl): Fix off by one error on
kono
parents:
diff changeset
1836 build_index_type.
kono
parents:
diff changeset
1837 (build_vtt): Likewise.
kono
parents:
diff changeset
1838 (build_ctor_vtbl_group): Likewise.
kono
parents:
diff changeset
1839
kono
parents:
diff changeset
1840 2001-06-05 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1841
kono
parents:
diff changeset
1842 * class.c (maybe_indent_hierarchy): New function.
kono
parents:
diff changeset
1843 (dump_class_hierarchy_r): Add flags. Dump extra binfo
kono
parents:
diff changeset
1844 information, if enabled. Use maybe_indent_hierarchy. Adjust
kono
parents:
diff changeset
1845 output format.
kono
parents:
diff changeset
1846 (dump_class_hierarchy): Adjust prototype. Adjust output format.
kono
parents:
diff changeset
1847 (dump_array, dump_vtable, dump_vtt): New functions.
kono
parents:
diff changeset
1848 (finish_struct_1): Adjust hierarchy dumping.
kono
parents:
diff changeset
1849 (initialize_vtable): Call dump_vtable.
kono
parents:
diff changeset
1850 (build_vtt): Call dump_vtt.
kono
parents:
diff changeset
1851 (build_ctor_vtbl_group): Call dump_vtable.
kono
parents:
diff changeset
1852 * decl2.c (flag_dump_class_layout): Remove.
kono
parents:
diff changeset
1853 (cxx_decode_option): Remove dump translation unit
kono
parents:
diff changeset
1854 and dump class hierarchy check. Call dump_switch_p.
kono
parents:
diff changeset
1855 (finish_file): Adjust dumping.
kono
parents:
diff changeset
1856 (dump.c): Only dump base classes if not TDF_SLIM.
kono
parents:
diff changeset
1857 Only dump namespace members if not TDF_SLIM.
kono
parents:
diff changeset
1858 * optimize.c (dump_function): New function.
kono
parents:
diff changeset
1859 (optimize_function): Call dump_function.
kono
parents:
diff changeset
1860 * semantics.c (expand_body): Use dump_enabled_p.
kono
parents:
diff changeset
1861
kono
parents:
diff changeset
1862 2001-06-01 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1863
kono
parents:
diff changeset
1864 PR g++/2936
kono
parents:
diff changeset
1865 Part missed from first commit
kono
parents:
diff changeset
1866 * decl2.c (finish_anon_union): Copy context.
kono
parents:
diff changeset
1867
kono
parents:
diff changeset
1868 2001-05-30 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1869
kono
parents:
diff changeset
1870 PR g++/2936
kono
parents:
diff changeset
1871 * optimize.c (remap_decl): Remap anonymous aggregate members too.
kono
parents:
diff changeset
1872
kono
parents:
diff changeset
1873 2001-05-26 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1874
kono
parents:
diff changeset
1875 PR g++/2823
kono
parents:
diff changeset
1876 * semantics.c (expand_body): Don't optimize thunks.
kono
parents:
diff changeset
1877
kono
parents:
diff changeset
1878 2001-05-25 Sam TH <sam@uchicago.edu>
kono
parents:
diff changeset
1879
kono
parents:
diff changeset
1880 * cp-tree.h lex.h: Fix header include guards.
kono
parents:
diff changeset
1881
kono
parents:
diff changeset
1882 2001-05-25 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
1883
kono
parents:
diff changeset
1884 * decl.c (init_decl_processing): Tweak.
kono
parents:
diff changeset
1885
kono
parents:
diff changeset
1886 2001-05-24 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
1887
kono
parents:
diff changeset
1888 * decl.c (duplicate_decls): Tidy.
kono
parents:
diff changeset
1889 (init_decl_processing): Always set flag_no_builtin.
kono
parents:
diff changeset
1890
kono
parents:
diff changeset
1891 2001-05-24 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1892
kono
parents:
diff changeset
1893 PR c++/2184
kono
parents:
diff changeset
1894 * decl2.c (do_local_using_decl): Push the decls, even in a
kono
parents:
diff changeset
1895 template.
kono
parents:
diff changeset
1896
kono
parents:
diff changeset
1897 2001-05-22 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
1898
kono
parents:
diff changeset
1899 * optimize.c (initialize_inlined_parameters): Don't set
kono
parents:
diff changeset
1900 TREE_READONLY for a VAR_DECL taking the place of an inlined
kono
parents:
diff changeset
1901 PARM_DECL.
kono
parents:
diff changeset
1902
kono
parents:
diff changeset
1903 2001-05-22 Jason Merrill <jason_merrill@redhat.com>
kono
parents:
diff changeset
1904
kono
parents:
diff changeset
1905 * class.c, cp-tree.h, rtti.c: Remove com_interface attribute support.
kono
parents:
diff changeset
1906 * tree.c (cp_valid_lang_attribute): Warn about use of com_interface
kono
parents:
diff changeset
1907 attribute.
kono
parents:
diff changeset
1908
kono
parents:
diff changeset
1909 2001-05-22 Joseph S. Myers <jsm28@cam.ac.uk>
kono
parents:
diff changeset
1910
kono
parents:
diff changeset
1911 * parse.y: Refer to compound literals as such, not as
kono
parents:
diff changeset
1912 constructor-expressions.
kono
parents:
diff changeset
1913
kono
parents:
diff changeset
1914 2001-05-21 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
1915
kono
parents:
diff changeset
1916 * call.c (build_op_delete_call): Ignore exception-specifications
kono
parents:
diff changeset
1917 when looking for matching delete operators.
kono
parents:
diff changeset
1918 * init.c (build_new_1): Compute whether or not the allocation
kono
parents:
diff changeset
1919 function used is a placement allocation function or not, and
kono
parents:
diff changeset
1920 communicate this information to build_op_delete_call.
kono
parents:
diff changeset
1921
kono
parents:
diff changeset
1922 2001-05-21 Jason Merrill <jason_merrill@redhat.com>
kono
parents:
diff changeset
1923
kono
parents:
diff changeset
1924 * class.c (build_vtable_entry_ref): Lose vtbl parm. Fix for new abi.
kono
parents:
diff changeset
1925 (build_vtbl_ref): Adjust.
kono
parents:
diff changeset
1926 (dfs_accumulate_vtbl_inits): Set TREE_CONSTANT on the vtable address.
kono
parents:
diff changeset
1927 * decl2.c (lang_f_options): Remove huge-objects, vtable-thunks.
kono
parents:
diff changeset
1928 Re-add vtable-gc.
kono
parents:
diff changeset
1929 (unsupported_options): Correspondingly.
kono
parents:
diff changeset
1930
kono
parents:
diff changeset
1931 * decl2.c (maybe_make_one_only): Check flag_weak, not
kono
parents:
diff changeset
1932 supports_one_only().
kono
parents:
diff changeset
1933
kono
parents:
diff changeset
1934 * cp-tree.def (START_CATCH_STMT): Lose.
kono
parents:
diff changeset
1935 * dump.c (cp_dump_tree): Don't dump it. Do dump HANDLER_PARMS.
kono
parents:
diff changeset
1936 * tree.c (cp_statement_code_p): Don't case it.
kono
parents:
diff changeset
1937 * semantics.c (cp_expand_stmt): Likewise.
kono
parents:
diff changeset
1938 * cp-tree.h (START_CATCH_TYPE): Lose.
kono
parents:
diff changeset
1939 (HANDLER_TYPE): New.
kono
parents:
diff changeset
1940 * except.c (expand_start_catch_block): Don't start any blocks.
kono
parents:
diff changeset
1941 Return the type.
kono
parents:
diff changeset
1942 (expand_end_catch_block): Don't end any blocks.
kono
parents:
diff changeset
1943 * parse.y (handler): Don't pass anything from finish_handler_parms
kono
parents:
diff changeset
1944 to finish_handler.
kono
parents:
diff changeset
1945 * pt.c (tsubst_expr): Likewise.
kono
parents:
diff changeset
1946 * semantics.c (begin_handler): Call note_level_for_catch here.
kono
parents:
diff changeset
1947 (finish_handler_parms): Don't return anything.
kono
parents:
diff changeset
1948 (genrtl_catch_block, begin_catch_block): Lose.
kono
parents:
diff changeset
1949 (genrtl_handler): Call expand_start_catch here.
kono
parents:
diff changeset
1950
kono
parents:
diff changeset
1951 2001-05-18 Jason Merrill <jason_merrill@redhat.com>
kono
parents:
diff changeset
1952
kono
parents:
diff changeset
1953 * class.c (build_vtable): Set DECL_ASSEMBLER_NAME for vtables here.
kono
parents:
diff changeset
1954 (get_vtable_decl, build_vtt): Not here.
kono
parents:
diff changeset
1955
kono
parents:
diff changeset
1956 2001-05-20 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1957
kono
parents:
diff changeset
1958 PR c++/2781
kono
parents:
diff changeset
1959 * optimize.c (update_cloned_parm): Copy addressability and other
kono
parents:
diff changeset
1960 flags.
kono
parents:
diff changeset
1961
kono
parents:
diff changeset
1962 2001-05-20 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
kono
parents:
diff changeset
1963
kono
parents:
diff changeset
1964 * pt.c (determine_specialization): Ignore artificial functions.
kono
parents:
diff changeset
1965
kono
parents:
diff changeset
1966 2001-05-20 Neil Booth <neil@daikokuya.demon.co.uk>
kono
parents:
diff changeset
1967
kono
parents:
diff changeset
1968 * cp-tree.h (struct lang_identifier, C_RID_YYCODE): Update.
kono
parents:
diff changeset
1969 (C_RID_CODE): Remove.
kono
parents:
diff changeset
1970 * lex.c (cxx_init_options): Call set_identifier_size. Update.
kono
parents:
diff changeset
1971 (init_parse): Don't do it here.
kono
parents:
diff changeset
1972
kono
parents:
diff changeset
1973 2001-05-18 Diego Novillo <dnovillo@redhat.com>
kono
parents:
diff changeset
1974
kono
parents:
diff changeset
1975 * decl2.c (finish_objects): Use the original SYMBOL_REF from the
kono
parents:
diff changeset
1976 function declaration to avoid stripping the symbol's attributes.
kono
parents:
diff changeset
1977
kono
parents:
diff changeset
1978 2001-05-18 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1979
kono
parents:
diff changeset
1980 * decl.c (pushdecl): Adjust error string.
kono
parents:
diff changeset
1981 (xref_tag): Adjust friend class injection warning. Remove the
kono
parents:
diff changeset
1982 inherited name from the class shadowed scope.
kono
parents:
diff changeset
1983
kono
parents:
diff changeset
1984 2001-05-17 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
1985
kono
parents:
diff changeset
1986 * except.c (cp_protect_cleanup_actions): New function.
kono
parents:
diff changeset
1987 (init_exception_processing): Don't set protect_cleanup_actions
kono
parents:
diff changeset
1988 here. Do set lang_protect_cleanup_actions.
kono
parents:
diff changeset
1989
kono
parents:
diff changeset
1990 2001-05-16 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1991
kono
parents:
diff changeset
1992 * spew.c (read_token): Call yyerror on all unexpected tokens.
kono
parents:
diff changeset
1993
kono
parents:
diff changeset
1994 2001-05-16 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
1995
kono
parents:
diff changeset
1996 * init.c (member_init_ok_or_else): Take a tree rather than
kono
parents:
diff changeset
1997 string for name.
kono
parents:
diff changeset
1998 (expand_member_init): Adjust.
kono
parents:
diff changeset
1999
kono
parents:
diff changeset
2000 2001-05-14 Nick Clifton <nickc@cambridge.redhat.com>
kono
parents:
diff changeset
2001
kono
parents:
diff changeset
2002 * decl.c (duplicate_decls): Suppress warning about duplicate
kono
parents:
diff changeset
2003 decls if the first decl is a friend.
kono
parents:
diff changeset
2004
kono
parents:
diff changeset
2005 2001-05-12 Zack Weinberg <zackw@stanford.edu>
kono
parents:
diff changeset
2006
kono
parents:
diff changeset
2007 * except.c (choose_personality_routine): Export. Add
kono
parents:
diff changeset
2008 explanatory comment. Take an enum languages, not a boolean.
kono
parents:
diff changeset
2009 (initialize_handler_parm): Adjust to match.
kono
parents:
diff changeset
2010 * cp-tree.h: Prototype choose_personality_routine.
kono
parents:
diff changeset
2011 * lex.c (handle_pragma_java_exceptions): New function.
kono
parents:
diff changeset
2012 (init_cp_pragma): Register #pragma GCC java_exceptions.
kono
parents:
diff changeset
2013
kono
parents:
diff changeset
2014 2001-05-12 Neil Booth <neil@cat.daikokuya.demon.co.uk>
kono
parents:
diff changeset
2015
kono
parents:
diff changeset
2016 * method.c (build_mangled_C99_name): Remove unused prototype.
kono
parents:
diff changeset
2017
kono
parents:
diff changeset
2018 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
kono
parents:
diff changeset
2019
kono
parents:
diff changeset
2020 * cp-tree.h (ptrmemfunc_vbit_where_t): Declare type.
kono
parents:
diff changeset
2021 * typeck.c (get_member_function_from_ptrfunc,
kono
parents:
diff changeset
2022 build_ptrmemfunc, expand_ptrmemfunc_cst): Take
kono
parents:
diff changeset
2023 TARGET_PTRMEMFUNC_VBIT_LOCATION into account.
kono
parents:
diff changeset
2024
kono
parents:
diff changeset
2025 Reverted Geoff Keating's 2001-05-03's patch.
kono
parents:
diff changeset
2026
kono
parents:
diff changeset
2027 2001-05-11 Ira Ruben <ira@apple.com>
kono
parents:
diff changeset
2028
kono
parents:
diff changeset
2029 * cp/cp-tree.h (C_EXP_ORIGINAL_CODE): Delete; declared in c-common.h.
kono
parents:
diff changeset
2030
kono
parents:
diff changeset
2031 2001-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
kono
parents:
diff changeset
2032
kono
parents:
diff changeset
2033 * cp-tree.h (finish_label_expr, lookup_label): Delete.
kono
parents:
diff changeset
2034 * parse.y: Update for '&&'; don't issue warning here.
kono
parents:
diff changeset
2035 * semantics.c (finish_label_expr): Delete.
kono
parents:
diff changeset
2036
kono
parents:
diff changeset
2037 2001-05-07 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
2038
kono
parents:
diff changeset
2039 * splay-tree.h (splay_tree_max): New function.
kono
parents:
diff changeset
2040 (splay_tree_min): Likewise.
kono
parents:
diff changeset
2041
kono
parents:
diff changeset
2042 2001-05-03 Geoffrey Keating <geoffk@redhat.com>
kono
parents:
diff changeset
2043
kono
parents:
diff changeset
2044 * cp-tree.h (enum cp_tree_index): Add CPTI_PFN_VFLAG_IDENTIFIER.
kono
parents:
diff changeset
2045 (pfn_vflag_identifier): Define.
kono
parents:
diff changeset
2046 Update comment about layout of pointer functions.
kono
parents:
diff changeset
2047 (build_ptrmemfunc1): Update prototype.
kono
parents:
diff changeset
2048 (expand_ptrmemfunc_cst): Update prototype.
kono
parents:
diff changeset
2049 * decl.c (initialize_predefined_identifiers): Initialize
kono
parents:
diff changeset
2050 pfn_vflag_identifier.
kono
parents:
diff changeset
2051 (build_ptrmemfunc_type): When FUNCTION_BOUNDARY < 16, add
kono
parents:
diff changeset
2052 an extra field to the type.
kono
parents:
diff changeset
2053 * expr.c (cplus_expand_constant): Pass 'flag' between
kono
parents:
diff changeset
2054 expand_ptrmemfunc_cst and build_ptrmemfunc1.
kono
parents:
diff changeset
2055 * typeck.c (get_member_function_from_ptrfunc): When
kono
parents:
diff changeset
2056 FUNCTION_BOUNDARY < 16, look at additional field to determine
kono
parents:
diff changeset
2057 if a pointer-to-member is a real pointer or a vtable offset.
kono
parents:
diff changeset
2058 (build_ptrmemfunc1): Add new parameter to contain extra field.
kono
parents:
diff changeset
2059 (build_ptrmemfunc): Pass the extra field around.
kono
parents:
diff changeset
2060 (expand_ptrmemfunc_cst): Add new parameter to return extra field.
kono
parents:
diff changeset
2061 (pfn_from_ptrmemfunc): Ignore the extra field.
kono
parents:
diff changeset
2062
kono
parents:
diff changeset
2063 2001-05-03 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
2064
kono
parents:
diff changeset
2065 * cp-tree.h (flag_inline_trees): Update documentation.
kono
parents:
diff changeset
2066 * decl.c (init_decl_processing): Adjust handling of
kono
parents:
diff changeset
2067 flag_inline_functions and flag_inline_trees to support -O3.
kono
parents:
diff changeset
2068 (grokfndecl): Set DECL_INLINE on all functions if that's what
kono
parents:
diff changeset
2069 the user requested.
kono
parents:
diff changeset
2070 (save_function_data): Clear DECL_INLINE in
kono
parents:
diff changeset
2071 current_function_cannot_inline is non-NULL.
kono
parents:
diff changeset
2072 * decl2.c (flag_inline_trees): Update documentation.
kono
parents:
diff changeset
2073
kono
parents:
diff changeset
2074 2001-05-03 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
2075
kono
parents:
diff changeset
2076 * dump.c (cp_dump_tree, USING_STMT case): New case.
kono
parents:
diff changeset
2077 * tree.c (cp_statement_code_p): Add USING_STMT.
kono
parents:
diff changeset
2078 * decl2.c (do_using_directive): Add the using directive statement.
kono
parents:
diff changeset
2079
kono
parents:
diff changeset
2080 * tree.c (walk_tree): Reformat an if block.
kono
parents:
diff changeset
2081
kono
parents:
diff changeset
2082 2001-05-02 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
2083
kono
parents:
diff changeset
2084 * decl.c (compute_array_index_type): Don't try to do anything with
kono
parents:
diff changeset
2085 the indices when processing a template.
kono
parents:
diff changeset
2086
kono
parents:
diff changeset
2087 2001-05-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
kono
parents:
diff changeset
2088
kono
parents:
diff changeset
2089 * call.c: NULL_PTR -> NULL.
kono
parents:
diff changeset
2090 * class.c: Likewise.
kono
parents:
diff changeset
2091 * cvt.c: Likewise.
kono
parents:
diff changeset
2092 * decl.c: Likewise.
kono
parents:
diff changeset
2093 * decl2.c: Likewise.
kono
parents:
diff changeset
2094 * except.c: Likewise.
kono
parents:
diff changeset
2095 * init.c: Likewise.
kono
parents:
diff changeset
2096 * rtti.c: Likewise.
kono
parents:
diff changeset
2097 * search.c: Likewise.
kono
parents:
diff changeset
2098 * tree.c: Likewise.
kono
parents:
diff changeset
2099 * typeck.c: Likewise.
kono
parents:
diff changeset
2100 * typeck2.c: Likewise.
kono
parents:
diff changeset
2101
kono
parents:
diff changeset
2102 2001-05-02 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
2103
kono
parents:
diff changeset
2104 * decl2.c (do_using_directive): Revert previous patch.
kono
parents:
diff changeset
2105
kono
parents:
diff changeset
2106 2001-05-01 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
2107
kono
parents:
diff changeset
2108 * cp-tree.def (USING_STMT): New statement node.
kono
parents:
diff changeset
2109 * cp-tree.h (USING_STMT_NAMESPACE): New macro.
kono
parents:
diff changeset
2110 * decl2.c (do_using_directive): Add USING_STMT to statement
kono
parents:
diff changeset
2111 tree. Don't emit errors when processing template decl.
kono
parents:
diff changeset
2112 * pt.c (tsubst_expr, USING_STMT case): New case.
kono
parents:
diff changeset
2113 * semantics.c (cp_expand_stmt, USING_STMT case): New case.
kono
parents:
diff changeset
2114
kono
parents:
diff changeset
2115 2001-05-01 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
2116
kono
parents:
diff changeset
2117 * call.c (build_new_op): Convert args from reference here.
kono
parents:
diff changeset
2118 (build_conditional_expr): Don't convert here.
kono
parents:
diff changeset
2119
kono
parents:
diff changeset
2120 2001-05-01 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
2121
kono
parents:
diff changeset
2122 * spew.c (last_token_id): New static variable.
kono
parents:
diff changeset
2123 (read_token): Set it here.
kono
parents:
diff changeset
2124 (yyerror): Use it here.
kono
parents:
diff changeset
2125
kono
parents:
diff changeset
2126 2001-04-30 Richard Henderson <rth@redhat.com>
kono
parents:
diff changeset
2127
kono
parents:
diff changeset
2128 * cvt.c: Downcase C_PROMOTING_INTEGER_TYPE_P invocations.
kono
parents:
diff changeset
2129 * decl.c: Likewise.
kono
parents:
diff changeset
2130
kono
parents:
diff changeset
2131 2001-04-30 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
2132
kono
parents:
diff changeset
2133 * gxxint.texi: Remove.
kono
parents:
diff changeset
2134 * Make-lang.in: Remove all traces of gxxint.texi.
kono
parents:
diff changeset
2135
kono
parents:
diff changeset
2136 2001-04-30 Mark P Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
2137
kono
parents:
diff changeset
2138 * decl2.c (start_static_initialization_or_destruction): Correct
kono
parents:
diff changeset
2139 logic to handle the -fno-use-cxa-atexit case.
kono
parents:
diff changeset
2140
kono
parents:
diff changeset
2141 2001-04-30 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
2142
kono
parents:
diff changeset
2143 * optimize.c (update_cloned_parm): New function.
kono
parents:
diff changeset
2144 (maybe_clone_body): Use it. Update the `this' parameter too.
kono
parents:
diff changeset
2145
kono
parents:
diff changeset
2146 2001-04-29 Joseph S. Myers <jsm28@cam.ac.uk>
kono
parents:
diff changeset
2147
kono
parents:
diff changeset
2148 * decl2.c (unsupported_options): Add new-abi.
kono
parents:
diff changeset
2149 * lang-options.h: Remove no longer supported options.
kono
parents:
diff changeset
2150
kono
parents:
diff changeset
2151 2001-04-27 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
2152
kono
parents:
diff changeset
2153 * except.c (can_convert_eh): Don't check template parms,
kono
parents:
diff changeset
2154 typename types etc.
kono
parents:
diff changeset
2155
kono
parents:
diff changeset
2156 2001-04-27 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
2157
kono
parents:
diff changeset
2158 * optimize.c (maybe_clone_body): Copy parameter names and locations.
kono
parents:
diff changeset
2159
kono
parents:
diff changeset
2160 2001-04-27 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
2161
kono
parents:
diff changeset
2162 * cp-tree.h (adjust_clone_args): Prototype new function.
kono
parents:
diff changeset
2163 * class.c (adjust_clone_args): New function.
kono
parents:
diff changeset
2164 * decl.c (start_function): Call it for in charge ctors.
kono
parents:
diff changeset
2165
kono
parents:
diff changeset
2166 2001-04-26 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
2167
kono
parents:
diff changeset
2168 * method.c (use_thunk): Make sure that thunks really are emitted
kono
parents:
diff changeset
2169 when requested.
kono
parents:
diff changeset
2170
kono
parents:
diff changeset
2171 2001-04-26 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
2172
kono
parents:
diff changeset
2173 * mangle.c (write_chars): New macro.
kono
parents:
diff changeset
2174 (hwint_to_ascii): New function
kono
parents:
diff changeset
2175 (write_number): Use it.
kono
parents:
diff changeset
2176 (write_integer_cst): Deal with really big numbers.
kono
parents:
diff changeset
2177
kono
parents:
diff changeset
2178 2001-04-25 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
2179
kono
parents:
diff changeset
2180 * optimize.c (maybe_clone_body): Copy TREE_PUBLIC before emitting
kono
parents:
diff changeset
2181 the clone.
kono
parents:
diff changeset
2182
kono
parents:
diff changeset
2183 2001-04-25 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
2184
kono
parents:
diff changeset
2185 * decl.c (grokdeclarator): Set context of namespace scope
kono
parents:
diff changeset
2186 TYPE_DECLS.
kono
parents:
diff changeset
2187
kono
parents:
diff changeset
2188 2001-04-24 Zack Weinberg <zackw@stanford.edu>
kono
parents:
diff changeset
2189
kono
parents:
diff changeset
2190 * cp/optimize.c: Include hashtab.h.
kono
parents:
diff changeset
2191 (struct inline_data): Add tree_pruner.
kono
parents:
diff changeset
2192 (expand_call_inline, expand_calls_inline): Use it when calling
kono
parents:
diff changeset
2193 walk_tree.
kono
parents:
diff changeset
2194 (optimize_function): Initialize and free tree_pruner.
kono
parents:
diff changeset
2195
kono
parents:
diff changeset
2196 2001-04-24 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
2197
kono
parents:
diff changeset
2198 Lazy __FUNCTION__ generation.
kono
parents:
diff changeset
2199 * cp-tree.def (FUNCTION_NAME): Remove.
kono
parents:
diff changeset
2200 * cp-tree.h (function_name_declared_p): Remove.
kono
parents:
diff changeset
2201 (cp_fname_init): Prototype.
kono
parents:
diff changeset
2202 * decl.c (init_decl_processing): Don't generate __FUNCTION__ et al ids,
kono
parents:
diff changeset
2203 don't call declare_function_name. Call start_fname_decls.
kono
parents:
diff changeset
2204 (cp_make_fname_decl): Adjust parameters. Generate the name. Don't
kono
parents:
diff changeset
2205 clobber the line number.
kono
parents:
diff changeset
2206 (cp_fname_init): New function.
kono
parents:
diff changeset
2207 (start_function): Call start_fname_decls.
kono
parents:
diff changeset
2208 (finish_function): Call finish_fname_decls.
kono
parents:
diff changeset
2209 * lex.c (reswords): Add slots for __FUNCTION__ et al.
kono
parents:
diff changeset
2210 (rid_to_yy): Add mappings for __FUNCTION__ et al.
kono
parents:
diff changeset
2211 * optimize.c (maybe_clone_body): Remove function_name_declared_p.
kono
parents:
diff changeset
2212 * parse.y (VAR_FUNC_NAME): New token.
kono
parents:
diff changeset
2213 (primary): Add VAR_FUNC_NAME.
kono
parents:
diff changeset
2214 * pt.c (tsubst_decl): Adjust a DECL_PRETTY_FUNCTION_P's
kono
parents:
diff changeset
2215 generation.
kono
parents:
diff changeset
2216 (tsubst, FUNCTION_NAME case): Remove.
kono
parents:
diff changeset
2217 (tsubst_copy, FUNCTION_NAME case): Remove.
kono
parents:
diff changeset
2218 (tsubst_expr, DECL_STMT case): Be careful with a
kono
parents:
diff changeset
2219 DECL_PRETTY_FUNCTION_P.
kono
parents:
diff changeset
2220 (instantiate_decl): Remove function_name_declared_p.
kono
parents:
diff changeset
2221 * semantics.c (begin_compound_statement): Don't call
kono
parents:
diff changeset
2222 declare_function_name here.
kono
parents:
diff changeset
2223 (setup_vtbl_ptr). Don't save & restore function_name_declared_p.
kono
parents:
diff changeset
2224 (finish_translation_unit): Call finish_fname_decls.
kono
parents:
diff changeset
2225 (expand_body): Remove function_name_declared_p.
kono
parents:
diff changeset
2226 * typeck2.c (digest_init): Allow any ERROR_MARK.
kono
parents:
diff changeset
2227
kono
parents:
diff changeset
2228 2001-04-24 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
2229
kono
parents:
diff changeset
2230 * pt.c (tsubst_decl): Use VOID_TYPE_P.
kono
parents:
diff changeset
2231 * semantics.c: Fix some typos.
kono
parents:
diff changeset
2232
kono
parents:
diff changeset
2233 2001-04-23 Phil Edwards <pme@sources.redhat.com>
kono
parents:
diff changeset
2234
kono
parents:
diff changeset
2235 * cp/decl2.c (flag_honor_std): Always initialize to 1.
kono
parents:
diff changeset
2236
kono
parents:
diff changeset
2237 2001-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
kono
parents:
diff changeset
2238
kono
parents:
diff changeset
2239 * xref.c (GNU_xref_file): Use concat in lieu of xmalloc/sprintf.
kono
parents:
diff changeset
2240
kono
parents:
diff changeset
2241 2001-04-23 Jason Merrill <jason_merrill@redhat.com>
kono
parents:
diff changeset
2242
kono
parents:
diff changeset
2243 * except.c (build_throw): Wrap the initialization of the exception
kono
parents:
diff changeset
2244 object in a MUST_NOT_THROW_EXPR.
kono
parents:
diff changeset
2245 (do_free_exception): #if 0.
kono
parents:
diff changeset
2246
kono
parents:
diff changeset
2247 2001-04-20 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
2248
kono
parents:
diff changeset
2249 * cp-tree.h (finish_enum): Change prototype.
kono
parents:
diff changeset
2250 * decl.c (finish_enum): Reorganize.
kono
parents:
diff changeset
2251 * parse.y (structsp): Adjust calls to finish_enum.
kono
parents:
diff changeset
2252
kono
parents:
diff changeset
2253 2001-04-20 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
2254
kono
parents:
diff changeset
2255 * tree.c (cp_tree_equal): Adjust final switch formatting. Add
kono
parents:
diff changeset
2256 't' case.
kono
parents:
diff changeset
2257
kono
parents:
diff changeset
2258 2001-04-20 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
2259
kono
parents:
diff changeset
2260 * class.c (dfs_unshared_virtual_bases): Add ATTRIBUTE_UNUSED.
kono
parents:
diff changeset
2261 (layout_empty_base): Return at end flag.
kono
parents:
diff changeset
2262 (build_base_field): Likewise.
kono
parents:
diff changeset
2263 (build_base_fields): Likewise.
kono
parents:
diff changeset
2264 (layout_virtual_bases): Don't add 1 to eoc value.
kono
parents:
diff changeset
2265 (end_of_class): Use full size for empty bases.
kono
parents:
diff changeset
2266 (layout_class_type): Clear CLASSNEARLY_EMPTY_P if we appended
kono
parents:
diff changeset
2267 empty bases. Don't add 1 to eoc value. Only add trailing padding
kono
parents:
diff changeset
2268 if we're an empty class with no empty bases.
kono
parents:
diff changeset
2269 (dump_class_hierarchy): Dump size and alignment.
kono
parents:
diff changeset
2270
kono
parents:
diff changeset
2271 2001-04-20 Jakub Jelinek <jakub@redhat.com>
kono
parents:
diff changeset
2272
kono
parents:
diff changeset
2273 * call.c (maybe_handle_ref_bind): Copy ICS_USER_FLAG and
kono
parents:
diff changeset
2274 ICS_BAD_FLAG.
kono
parents:
diff changeset
2275
kono
parents:
diff changeset
2276 2001-04-20 Jakub Jelinek <jakub@redhat.com>
kono
parents:
diff changeset
2277
kono
parents:
diff changeset
2278 * search.c (lookup_field_r): If looking for type and non-TYPE_DECL
kono
parents:
diff changeset
2279 is found, look first if name does not match the structure name.
kono
parents:
diff changeset
2280
kono
parents:
diff changeset
2281 2001-04-19 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
2282
kono
parents:
diff changeset
2283 * cp-tree.h (DECL_LANGUAGE): Don't assume DECL_LANG_SPECIFIC is
kono
parents:
diff changeset
2284 set.
kono
parents:
diff changeset
2285 (SET_DECL_LANGUAGE): New macro.
kono
parents:
diff changeset
2286 * decl.c (duplicate_decls): Use SET_DECL_LANGUAGE.
kono
parents:
diff changeset
2287 (pushdecl): Likewise.
kono
parents:
diff changeset
2288 (build_library_fn_1): Likewise.
kono
parents:
diff changeset
2289 (build_cp_library_fn): Likewise.
kono
parents:
diff changeset
2290 (grokfndecl): Likewise.
kono
parents:
diff changeset
2291 (grokvardecl): Mark `extern "C"' variables as having C linkage.
kono
parents:
diff changeset
2292 * decl2.c (grokclassfn): Use SET_DECL_LANGUAGE.
kono
parents:
diff changeset
2293 * lex.c (retrofit_lang_decl): Likewise.
kono
parents:
diff changeset
2294 * mangle.c (mangle_decl_string): Don't mangle the names of
kono
parents:
diff changeset
2295 variables declared with C language linkage.
kono
parents:
diff changeset
2296 * semantics.c (finish_member_declaration): Use SET_DECL_LANGUAGE.
kono
parents:
diff changeset
2297
kono
parents:
diff changeset
2298 2001-04-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
kono
parents:
diff changeset
2299
kono
parents:
diff changeset
2300 * semantics.c (simplify_aggr_init_exprs_r): Don't restore
kono
parents:
diff changeset
2301 flag_access_control from uninitialized storage.
kono
parents:
diff changeset
2302
kono
parents:
diff changeset
2303 2001-04-15 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
2304
kono
parents:
diff changeset
2305 * cp-tree.h (TYPE_PTRMEM_CLASS_TYPE): Improve documentation.
kono
parents:
diff changeset
2306 * mangle.c (write_pointer_to_member_type): Fix mangling of
kono
parents:
diff changeset
2307 pointers to cv-qualified member function types.
kono
parents:
diff changeset
2308
kono
parents:
diff changeset
2309 * init.c (build_delete): Create a SAVE_EXPR for the address if
kono
parents:
diff changeset
2310 we're going to use it more than once.
kono
parents:
diff changeset
2311
kono
parents:
diff changeset
2312 2001-04-13 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
2313
kono
parents:
diff changeset
2314 * cp-tree.h (DELTA2_FROM_PTRMEMFUNC): Remove.
kono
parents:
diff changeset
2315 (expand_ptremfunc_cst): Change prototype.
kono
parents:
diff changeset
2316 (delta2_from_ptrmemfunc): Remove.
kono
parents:
diff changeset
2317 * expr.c (cplus_expand_constant): Adjust call to
kono
parents:
diff changeset
2318 expand_ptrmemfunc_cst.
kono
parents:
diff changeset
2319 * typeck.c (build_ptrmemfunc1): Simplify.
kono
parents:
diff changeset
2320 (build_ptrmemfunc): Make sure that casting a PTRMEM_CST still
kono
parents:
diff changeset
2321 results in a constant.
kono
parents:
diff changeset
2322 (expand_ptrmemfunc_cst): Remove idx and delta2 parameters.
kono
parents:
diff changeset
2323 (delta2_from_ptrmemfunc): Remove.
kono
parents:
diff changeset
2324 (pfn_from_ptrmemfunc): Adjust call to expand_ptrmemfunc_cst.
kono
parents:
diff changeset
2325
kono
parents:
diff changeset
2326 2001-04-12 Jason Merrill <jason_merrill@redhat.com>
kono
parents:
diff changeset
2327
kono
parents:
diff changeset
2328 * cp-tree.h (decl_namespace_list): New macro.
kono
parents:
diff changeset
2329 (struct saved_scope): Add decl_ns_list.
kono
parents:
diff changeset
2330 * decl.c (mark_saved_scope): Mark it.
kono
parents:
diff changeset
2331 * decl2.c: Lose static decl_namespace_list.
kono
parents:
diff changeset
2332 (init_decl2): Don't save it.
kono
parents:
diff changeset
2333
kono
parents:
diff changeset
2334 2001-04-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
kono
parents:
diff changeset
2335
kono
parents:
diff changeset
2336 * cp-tree.h (warn_return_type, yylex): Delete redundant
kono
parents:
diff changeset
2337 declarations.
kono
parents:
diff changeset
2338
kono
parents:
diff changeset
2339 * decl.c (current_class_depth, global_namespace): Likewise.
kono
parents:
diff changeset
2340
kono
parents:
diff changeset
2341 * decl2.c (current_class_depth, flag_gnu_xref): Likewise
kono
parents:
diff changeset
2342
kono
parents:
diff changeset
2343 * repo.c (flag_use_repository): Likewise.
kono
parents:
diff changeset
2344
kono
parents:
diff changeset
2345 2001-04-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
kono
parents:
diff changeset
2346
kono
parents:
diff changeset
2347 * cp-tree.h (pedantic, convert, global_bindings_p, insert_block,
kono
parents:
diff changeset
2348 set_block, pushdecl, getdecls, gettags, init_decl_processing,
kono
parents:
diff changeset
2349 maybe_build_cleanup, copy_lang_decl, prep_stmt, lvalue_p,
kono
parents:
diff changeset
2350 lvalue_or_else, print_lang_statistics, comp_target_types,
kono
parents:
diff changeset
2351 unsigned_type, signed_type, signed_or_unsigned_type,
kono
parents:
diff changeset
2352 build_function_call, mark_addressable, incomplete_type_error):
kono
parents:
diff changeset
2353 Delete redundant declarations.
kono
parents:
diff changeset
2354
kono
parents:
diff changeset
2355 2001-04-11 Jason Merrill <jason_merrill@redhat.com>
kono
parents:
diff changeset
2356
kono
parents:
diff changeset
2357 * cp-tree.h (TYPE_LINKAGE_IDENTIFIER): New macro.
kono
parents:
diff changeset
2358 (TYPE_ANONYMOUS_P): New macro.
kono
parents:
diff changeset
2359 (TAGGED_TYPE_P): New macro.
kono
parents:
diff changeset
2360 * decl.c (check_tag_decl): Use TYPE_ANONYMOUS_P.
kono
parents:
diff changeset
2361 (grokfndecl, grokvardecl, grokdeclarator): Likewise.
kono
parents:
diff changeset
2362 * tree.c (no_linkage_helper): Likewise.
kono
parents:
diff changeset
2363 * semantics.c (begin_class_definition): Likewise.
kono
parents:
diff changeset
2364 * pt.c (convert_template_argument): Likewise.
kono
parents:
diff changeset
2365 * lex.c (check_for_missing_semicolon): Likewise.
kono
parents:
diff changeset
2366
kono
parents:
diff changeset
2367 2001-04-12 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
2368
kono
parents:
diff changeset
2369 * class.c (dfs_unshared_virtual_bases): New function.
kono
parents:
diff changeset
2370 (mark_primary_bases): Call it.
kono
parents:
diff changeset
2371 (check_bases): Ignore virtual bases when determining
kono
parents:
diff changeset
2372 nearly-emptiness.
kono
parents:
diff changeset
2373
kono
parents:
diff changeset
2374 2001-04-12 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
2375
kono
parents:
diff changeset
2376 * method.c (make_thunk): Clear DECL_CLONED_FUNCTION.
kono
parents:
diff changeset
2377
kono
parents:
diff changeset
2378 2001-04-11 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
2379
kono
parents:
diff changeset
2380 * optimize.c (maybe_clone_body): Copy DECL_NUM_STMTS from the
kono
parents:
diff changeset
2381 cloned function to the clone.
kono
parents:
diff changeset
2382
kono
parents:
diff changeset
2383 2001-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
kono
parents:
diff changeset
2384
kono
parents:
diff changeset
2385 * Make-lang.in (cp/semantics.o): Depend on $(EXPR_H).
kono
parents:
diff changeset
2386
kono
parents:
diff changeset
2387 * semantics.c: Include expr.h.
kono
parents:
diff changeset
2388
kono
parents:
diff changeset
2389 2001-04-11 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
2390
kono
parents:
diff changeset
2391 * method.c (implicitly_declare_fn): Commonize code for copy ctor
kono
parents:
diff changeset
2392 and assignment op. Set TREE_USED for parameter.
kono
parents:
diff changeset
2393
kono
parents:
diff changeset
2394 2001-04-10 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
2395
kono
parents:
diff changeset
2396 * class.c (find_final_overrider_data): Add `candidates'.
kono
parents:
diff changeset
2397 (dfs_find_final_overrider): Don't issue error messages
kono
parents:
diff changeset
2398 prematurely.
kono
parents:
diff changeset
2399 (find_final_overrider): Issue error messages here.
kono
parents:
diff changeset
2400 (build_base_field): Don't warn about amgibuous direct bases here.
kono
parents:
diff changeset
2401 (warn_about_ambiguous_direct_bases): New function.
kono
parents:
diff changeset
2402 (layout_class_type): Use it.
kono
parents:
diff changeset
2403
kono
parents:
diff changeset
2404 2001-04-10 Richard Henderson <rth@redhat.com>
kono
parents:
diff changeset
2405
kono
parents:
diff changeset
2406 * typeck.c (build_array_ref): Push the array reference inside
kono
parents:
diff changeset
2407 COMPOUND_EXPR and COND_EXPR.
kono
parents:
diff changeset
2408
kono
parents:
diff changeset
2409 2001-04-05 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
2410
kono
parents:
diff changeset
2411 * cp-tree.h (DECL_THIS_INLINE): Rename to DECL_DECLARED_INLINE_P.
kono
parents:
diff changeset
2412 * decl.c (duplicate_decls): Adjust accordingly.
kono
parents:
diff changeset
2413 (maybe_commonize_var): Likewise.
kono
parents:
diff changeset
2414 (grokfndecl): Likewise.
kono
parents:
diff changeset
2415 (start_function): Likewise.
kono
parents:
diff changeset
2416 (start_method): Likewise.
kono
parents:
diff changeset
2417 * decl2.c (key_method): Likewise.
kono
parents:
diff changeset
2418 (import_export_decl): Likewise.
kono
parents:
diff changeset
2419 * method.c (implicitly_declare_fn): Likewise.
kono
parents:
diff changeset
2420 * optimize.c (maybe_clone_body): Likewise.
kono
parents:
diff changeset
2421
kono
parents:
diff changeset
2422 2001-04-05 Benjamin Kosnik <bkoz@redhat.com>
kono
parents:
diff changeset
2423
kono
parents:
diff changeset
2424 * lang-specs.h: Add __DEPRECATED.
kono
parents:
diff changeset
2425
kono
parents:
diff changeset
2426 2001-04-05 J"orn Rennecke <amylaar@redhat.com>
kono
parents:
diff changeset
2427
kono
parents:
diff changeset
2428 * search.c (get_dynamic_cast_base_type): When building a new
kono
parents:
diff changeset
2429 constant, set its type to ssizetype.
kono
parents:
diff changeset
2430
kono
parents:
diff changeset
2431 2001-04-04 Jakub Jelinek <jakub@redhat.com>
kono
parents:
diff changeset
2432
kono
parents:
diff changeset
2433 * optimize.c (expand_call_inline): Only add newly inlined statements
kono
parents:
diff changeset
2434 into inlined_stmts.
kono
parents:
diff changeset
2435
kono
parents:
diff changeset
2436 2001-04-03 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
2437
kono
parents:
diff changeset
2438 * cp-tree.h (OPERATOR_ASSIGN_FORMAT): Remove.
kono
parents:
diff changeset
2439 (OPERATOR_FORMAT): Likewise.
kono
parents:
diff changeset
2440 (OPERATOR_TYPENAME_FORMAT): Likewise.
kono
parents:
diff changeset
2441 * operators.def: Remove old name-mangling information.
kono
parents:
diff changeset
2442 * decl.c (grok_op_properties): Adjust accordingly.
kono
parents:
diff changeset
2443 * lex.c (init_operators): Likewise.
kono
parents:
diff changeset
2444 * rtti.c (get_tinfo_decl): Issue error messages about types that
kono
parents:
diff changeset
2445 have variable size.
kono
parents:
diff changeset
2446
kono
parents:
diff changeset
2447 2001-04-03 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
2448
kono
parents:
diff changeset
2449 * decl2.c (import_export_decl): Don't call import_export_class
kono
parents:
diff changeset
2450 when processing an inline member function.
kono
parents:
diff changeset
2451 * semantics.c (expand_body): Call import_export_decl before
kono
parents:
diff changeset
2452 emitting inline functions.
kono
parents:
diff changeset
2453
kono
parents:
diff changeset
2454 2001-03-28 Richard Henderson <rth@redhat.com>
kono
parents:
diff changeset
2455
kono
parents:
diff changeset
2456 IA-64 ABI Exception Handling:
kono
parents:
diff changeset
2457 * cp-tree.def (EH_SPEC_BLOCK): New.
kono
parents:
diff changeset
2458 (MUST_NOT_THROW_EXPR): New.
kono
parents:
diff changeset
2459 * cp-tree.h: Update changed function declarations.
kono
parents:
diff changeset
2460 (CPTI_PUSH_EXCEPTION_IDENTIFIER): Remove.
kono
parents:
diff changeset
2461 (CPTI_CALL_UNEXPECTED): New.
kono
parents:
diff changeset
2462 (struct cp_language_function): Rename x_eh_spec_try_block
kono
parents:
diff changeset
2463 to x_eh_spec_block.
kono
parents:
diff changeset
2464 (EH_SPEC_STMTS, EH_SPEC_RAISES): New.
kono
parents:
diff changeset
2465 * decl.c (current_binding_level): If no current function
kono
parents:
diff changeset
2466 bindings, revert to scope_chain.
kono
parents:
diff changeset
2467 (initialize_predefined_identifiers): Remove __cp_push_exception.
kono
parents:
diff changeset
2468 (store_parm_decls): Use begin_eh_spec_block.
kono
parents:
diff changeset
2469 (finish_function): Use finish_eh_spec_block.
kono
parents:
diff changeset
2470 (mark_lang_function): Update for name changes.
kono
parents:
diff changeset
2471 * decl2.c (finish_file): No mark_all_runtime_matches.
kono
parents:
diff changeset
2472 * dump.c (cp_dump_tree): Handle new tree codes.
kono
parents:
diff changeset
2473 * error.c (dump_expr) [BIND_EXPR]: Fix typo.
kono
parents:
diff changeset
2474 * except.c (catch_language_init, catch_language): Remove.
kono
parents:
diff changeset
2475 (init_exception_processing): Don't set language code.
kono
parents:
diff changeset
2476 Initialize call_unexpected_node, protect_cleanup_actions,
kono
parents:
diff changeset
2477 eh_personality_libfunc, lang_eh_runtime_type.
kono
parents:
diff changeset
2478 (call_eh_info, push_eh_info, get_eh_info, get_eh_value): Remove.
kono
parents:
diff changeset
2479 (get_eh_type, get_eh_caught, get_eh_handlers): Remove.
kono
parents:
diff changeset
2480 (prepare_eh_type): Split out type canonicalizations ...
kono
parents:
diff changeset
2481 (build_eh_type_type): ... from here.
kono
parents:
diff changeset
2482 (build_eh_type_type_ref): Remove.
kono
parents:
diff changeset
2483 (mark_all_runtime_matches): Remove.
kono
parents:
diff changeset
2484 (build_exc_ptr): New.
kono
parents:
diff changeset
2485 (do_begin_catch, do_end_catch): New.
kono
parents:
diff changeset
2486 (do_pop_exception): Remove.
kono
parents:
diff changeset
2487 (build_terminate_handler): Remove.
kono
parents:
diff changeset
2488 (choose_personality_routine): Split out language choice from ...
kono
parents:
diff changeset
2489 (initialize_handler_parm): ... here.
kono
parents:
diff changeset
2490 Use MUST_NOT_THROW_EXPR.
kono
parents:
diff changeset
2491 (expand_start_catch_block): Use do_begin_catch. Simplify Java
kono
parents:
diff changeset
2492 exception object handling.
kono
parents:
diff changeset
2493 (expand_start_eh_spec, expand_end_eh_spec): Remove.
kono
parents:
diff changeset
2494 (expand_exception_blocks, alloc_eh_object): Remove.
kono
parents:
diff changeset
2495 (begin_eh_spec_block, finish_eh_spec_block): New.
kono
parents:
diff changeset
2496 (do_allocate_exception, do_free_exception): New.
kono
parents:
diff changeset
2497 (expand_throw): Merge into ...
kono
parents:
diff changeset
2498 (build_throw): ... here. Update for abi.
kono
parents:
diff changeset
2499 * expr.c (cplus_expand_expr): No expand_internal_throw.
kono
parents:
diff changeset
2500 Handle MUST_NOT_THROW_EXPR.
kono
parents:
diff changeset
2501 * pt.c (tsubst_expr): Handle EH_SPEC_BLOCK.
kono
parents:
diff changeset
2502 * semantics.c (*) Update for except.h name changes.
kono
parents:
diff changeset
2503 (genrtl_try_block): No protect_with_terminate.
kono
parents:
diff changeset
2504 (genrtl_eh_spec_block): New.
kono
parents:
diff changeset
2505 (genrtl_handler): Don't emit the goto here.
kono
parents:
diff changeset
2506 (cp_expand_stmt): Handle EH_SPEC_BLOCK.
kono
parents:
diff changeset
2507 (genrtl_finish_function): Don't expand_exception_blocks.
kono
parents:
diff changeset
2508 * tree.c (cp_statement_code_p): Handle EH_SPEC_BLOCK.
kono
parents:
diff changeset
2509
kono
parents:
diff changeset
2510 2001-03-28 Richard Henderson <rth@redhat.com>
kono
parents:
diff changeset
2511
kono
parents:
diff changeset
2512 * decl.c (struct named_label_list): Rename eh_region to
kono
parents:
diff changeset
2513 in_try_scope, add in_catch_scope.
kono
parents:
diff changeset
2514 (struct binding_level): Rename eh_region to is_try_scope,
kono
parents:
diff changeset
2515 add is_catch_scope.
kono
parents:
diff changeset
2516 (note_level_for_try): Rename from note_level_for_eh.
kono
parents:
diff changeset
2517 (note_level_for_catch): New.
kono
parents:
diff changeset
2518 (poplevel): Copy both is_try_scope and is_catch_scope to
kono
parents:
diff changeset
2519 the named_label_list struct.
kono
parents:
diff changeset
2520 (check_previous_goto_1): Don't check for catch block via
kono
parents:
diff changeset
2521 DECL_ARTIFICIAL; use in_try_scope instead.
kono
parents:
diff changeset
2522 (check_goto): Likewise.
kono
parents:
diff changeset
2523 * cp-tree.h (note_level_for_try, note_level_for_catch): Declare.
kono
parents:
diff changeset
2524 * except.c (expand_start_catch_block): Call note_level_for_catch.
kono
parents:
diff changeset
2525 * semantics.c (begin_compound_stmt): Update for note_level_for_try.
kono
parents:
diff changeset
2526
kono
parents:
diff changeset
2527 2001-03-27 Richard Henderson <rth@redhat.com>
kono
parents:
diff changeset
2528
kono
parents:
diff changeset
2529 * except.c: Use USING_SJLJ_EXCEPTIONS instead of
kono
parents:
diff changeset
2530 exceptions_via_longjmp.
kono
parents:
diff changeset
2531
kono
parents:
diff changeset
2532 2001-03-27 Phil Edwards <pme@sources.redhat.com>
kono
parents:
diff changeset
2533
kono
parents:
diff changeset
2534 * pt.c (check_default_tmpl_args): Make error messages clearer.
kono
parents:
diff changeset
2535
kono
parents:
diff changeset
2536 2001-03-26 Phil Edwards <pme@sources.redhat.com>
kono
parents:
diff changeset
2537
kono
parents:
diff changeset
2538 * error.c: Also undefine 'A' macro used for cp_printers definition.
kono
parents:
diff changeset
2539
kono
parents:
diff changeset
2540 2001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
kono
parents:
diff changeset
2541
kono
parents:
diff changeset
2542 * Make-lang.in: Depend on $(SYSTEM_H), not system.h.
kono
parents:
diff changeset
2543
kono
parents:
diff changeset
2544 2001-03-26 Mike Yang <yang@research.att.com>
kono
parents:
diff changeset
2545 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
2546
kono
parents:
diff changeset
2547 * dump.c (dump_access): New function.
kono
parents:
diff changeset
2548 (cp_dump_tree): Use it. Dump basetype information for class
kono
parents:
diff changeset
2549 types.
kono
parents:
diff changeset
2550
kono
parents:
diff changeset
2551 2001-03-26 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
2552
kono
parents:
diff changeset
2553 * Makefile.in (optimize.o): Depend on params.h.
kono
parents:
diff changeset
2554 (duplicate_decls): Copy DECL_NUM_STMTS, not DECL_FRAME_SIZE.
kono
parents:
diff changeset
2555 (init_decl_processing): Set flag_no_inline when doing
kono
parents:
diff changeset
2556 inlining-on-trees.
kono
parents:
diff changeset
2557 * optimize.c: Include params.h.
kono
parents:
diff changeset
2558 (struct inline_data): Improve documentation of FNS. Add
kono
parents:
diff changeset
2559 FIRST_INLINED_FN, INLINED_STMTS, and CLONING_P.
kono
parents:
diff changeset
2560 (INSNS_PER_STMT): New macro.
kono
parents:
diff changeset
2561 (remap_block): Use CLONING_P.
kono
parents:
diff changeset
2562 (inlinable_function_p): Don't inline big functions.
kono
parents:
diff changeset
2563 (expand_call_inline): Keep track of how much inlining we've done.
kono
parents:
diff changeset
2564 (optimize_function): Set FIRST_INLINED_FN.
kono
parents:
diff changeset
2565 (maybe_clone_body): Set CLONING_P.
kono
parents:
diff changeset
2566 * semantics.c (simplify_aggr_init_exprs_r): Fix typing problems in
kono
parents:
diff changeset
2567 tree nodes.
kono
parents:
diff changeset
2568 (genrtl_finish_function): Clear DECL_DEFER_OUTPUT before calling
kono
parents:
diff changeset
2569 rest_of_compilation. Clear DECL_RTL for local variables
kono
parents:
diff changeset
2570 afterwards.
kono
parents:
diff changeset
2571 (clear_decl_rtl): New function.
kono
parents:
diff changeset
2572
kono
parents:
diff changeset
2573 2001-03-26 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
2574
kono
parents:
diff changeset
2575 Implement DR 209
kono
parents:
diff changeset
2576 * cp-tree.h (skip_type_access_control,
kono
parents:
diff changeset
2577 reset_type_access_control): Prototype.
kono
parents:
diff changeset
2578 * decl.c (grokdeclarator): Access of friends is not checked.
kono
parents:
diff changeset
2579 * parse.y (component_decl_list): Reset type access control.
kono
parents:
diff changeset
2580 * semantics.c (decl_type_access_control): Clear
kono
parents:
diff changeset
2581 current_type_lookups.
kono
parents:
diff changeset
2582 (save_type_access_control): Don't save if not deferring.
kono
parents:
diff changeset
2583 (skip_type_access_control, reset_type_access_control): New
kono
parents:
diff changeset
2584 functions.
kono
parents:
diff changeset
2585 (begin_class_definition): Do type access control for basetypes.
kono
parents:
diff changeset
2586 Start deferred access control.
kono
parents:
diff changeset
2587 (finish_class_definition): Resume immediate access control if
kono
parents:
diff changeset
2588 this is a local class.
kono
parents:
diff changeset
2589
kono
parents:
diff changeset
2590 2001-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
kono
parents:
diff changeset
2591
kono
parents:
diff changeset
2592 * class.c (add_method): Use memcpy/memmove, not bcopy.
kono
parents:
diff changeset
2593
kono
parents:
diff changeset
2594 * decl.c (duplicate_decls): Likewise.
kono
parents:
diff changeset
2595
kono
parents:
diff changeset
2596 2001-03-23 Jakub Jelinek <jakub@redhat.com>
kono
parents:
diff changeset
2597
kono
parents:
diff changeset
2598 * mangle.c (write_discriminator): Use `_0' for discriminator 1,
kono
parents:
diff changeset
2599 not `_'.
kono
parents:
diff changeset
2600
kono
parents:
diff changeset
2601 2001-03-23 Jakub Jelinek <jakub@redhat.com>
kono
parents:
diff changeset
2602
kono
parents:
diff changeset
2603 * decl.c (local_names): Define.
kono
parents:
diff changeset
2604 (push_local_name): New.
kono
parents:
diff changeset
2605 (grok_reference_init): Return init if initializing static reference
kono
parents:
diff changeset
2606 variable with non-constant instead of emitting it.
kono
parents:
diff changeset
2607 Move expand_static_init call to cp_finish_decl.
kono
parents:
diff changeset
2608 (layout_var_decl): Call push_local_name.
kono
parents:
diff changeset
2609 (maybe_commonize_var): Allow inlining functions even if they have
kono
parents:
diff changeset
2610 static local variables, use comdat_linkage for them if flag_weak.
kono
parents:
diff changeset
2611 (check_initializer): Call obscure_complex_init if
kono
parents:
diff changeset
2612 grok_reference_init returned nonzero.
kono
parents:
diff changeset
2613 (save_function_data): Clear x_local_names.
kono
parents:
diff changeset
2614 (pop_cp_function_context): Free x_local_names.
kono
parents:
diff changeset
2615 (mark_inlined_fns): Remove.
kono
parents:
diff changeset
2616 (mark_lang_function): Mark x_local_names.
kono
parents:
diff changeset
2617 (lang_mark_tree): Don't mark DECL_ACCESS for DECL_DISCRIMINATOR_P.
kono
parents:
diff changeset
2618 Mark inlined_fns as tree, remove call to mark_inlined_fns.
kono
parents:
diff changeset
2619 * class.c (alter_access): Ensure DECL_ACCESS is never set if
kono
parents:
diff changeset
2620 DECL_DISCRIMINATOR_P.
kono
parents:
diff changeset
2621 * cp-tree.h (cp_language_function): Add x_local_names.
kono
parents:
diff changeset
2622 (lang_decl_flags): Add discriminator into u2.
kono
parents:
diff changeset
2623 (lang_decl_inlined_fns): Remove.
kono
parents:
diff changeset
2624 (lang_decl): inlined_fns is now a TREE_VEC.
kono
parents:
diff changeset
2625 (DECL_DISCRIMINATOR_P, DECL_DISCRIMINATOR): Define.
kono
parents:
diff changeset
2626 * optimize.c (inlinable_function_p): DECL_INLINED_FNS is now a
kono
parents:
diff changeset
2627 TREE_VEC, not a custom structure.
kono
parents:
diff changeset
2628 (optimize_function): Likewise.
kono
parents:
diff changeset
2629 * mangle.c (discriminator_for_local_entity): Discriminate among
kono
parents:
diff changeset
2630 VAR_DECL local entities.
kono
parents:
diff changeset
2631 * search.c (dfs_access_in_type): If DECL_DISCRIMINATOR_P, DECL_ACCESS
kono
parents:
diff changeset
2632 is not valid.
kono
parents:
diff changeset
2633
kono
parents:
diff changeset
2634 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
kono
parents:
diff changeset
2635
kono
parents:
diff changeset
2636 Add support for Java interface method calls.
kono
parents:
diff changeset
2637 * cp-tree.h (struct lang_type): Add java_interface flag.
kono
parents:
diff changeset
2638 (TYPE_JAVA_INTERFACE): New macro.
kono
parents:
diff changeset
2639 * tree.c (cp_valid_lang_attribute): Handle "java_interface" attribute
kono
parents:
diff changeset
2640 by setting TYPE_JAVA_INTERFACE.
kono
parents:
diff changeset
2641 * call.c (java_iface_lookup_fn): New static.
kono
parents:
diff changeset
2642 (build_over_call): If calling a method declared in a
kono
parents:
diff changeset
2643 TYPE_JAVA_INTERFACE, call build_java_interface_fn_ref to generate the
kono
parents:
diff changeset
2644 expression which resolves the function address.
kono
parents:
diff changeset
2645 (build_java_interface_fn_ref): New function.
kono
parents:
diff changeset
2646
kono
parents:
diff changeset
2647 2001-03-22 Richard Henderson <rth@redhat.com>
kono
parents:
diff changeset
2648
kono
parents:
diff changeset
2649 * Make-lang.in (cp/except.o): Don't depend on insn-flags.h.
kono
parents:
diff changeset
2650 * except.c: Don't include it.
kono
parents:
diff changeset
2651
kono
parents:
diff changeset
2652 2001-03-22 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
kono
parents:
diff changeset
2653 based on an idea from Joe Buck <jbuck@synopsys.com>
kono
parents:
diff changeset
2654
kono
parents:
diff changeset
2655 * parse.y (bad_decl, template_arg_list_ignore, arg_list_ignore):
kono
parents:
diff changeset
2656 New nonterminals.
kono
parents:
diff changeset
2657 (data_def, component_decl): Add reductions to bad_decl.
kono
parents:
diff changeset
2658
kono
parents:
diff changeset
2659 2001-03-22 Jakub Jelinek <jakub@redhat.com>
kono
parents:
diff changeset
2660
kono
parents:
diff changeset
2661 * method.c (do_build_assign_ref): Don't use build_modify_expr for
kono
parents:
diff changeset
2662 anonymous aggregates, since they don't have assignment operator
kono
parents:
diff changeset
2663 method.
kono
parents:
diff changeset
2664 * decl.c (fixup_anonymous_aggr): Disallow ctors, dtors and copy
kono
parents:
diff changeset
2665 assignment operators for anonymous structure fields.
kono
parents:
diff changeset
2666
kono
parents:
diff changeset
2667 2001-03-21 Jason Merrill <jason@redhat.com>
kono
parents:
diff changeset
2668
kono
parents:
diff changeset
2669 * pt.c (instantiate_decl): Abort if we see a member constant
kono
parents:
diff changeset
2670 instantiation that doesn't already have its initializer.
kono
parents:
diff changeset
2671 Downgrade explicit instantiation without definition to pedwarn.
kono
parents:
diff changeset
2672
kono
parents:
diff changeset
2673 * cp-tree.h (DECL_TINFO_FN_P, SET_DECL_TINFO_FN_P): Remove.
kono
parents:
diff changeset
2674 * class.c (build_vtable_entry): Don't check DECL_TINFO_FN_P.
kono
parents:
diff changeset
2675 (import_export_decl): Check tinfo_decl_p, not DECL_TINFO_FN_P.
kono
parents:
diff changeset
2676
kono
parents:
diff changeset
2677 * cp-tree.h (CLASSTYPE_VTABLE_NEEDS_WRITING): Remove.
kono
parents:
diff changeset
2678 (pending_vtables): Remove.
kono
parents:
diff changeset
2679 * decl2.c (pending_vtables): Remove.
kono
parents:
diff changeset
2680 (import_export_vtable): Use CLASSTYPE_INTERFACE_ONLY, not
kono
parents:
diff changeset
2681 CLASSTYPE_VTABLE_NEEDS_WRITING.
kono
parents:
diff changeset
2682 (import_export_class): Likewise.
kono
parents:
diff changeset
2683 (init_decl2): Don't mark pending_vtables.
kono
parents:
diff changeset
2684 * lex.c (handle_pragma_vtable): Just sorry.
kono
parents:
diff changeset
2685 * pt.c (instantiate_class_template): Don't mess with
kono
parents:
diff changeset
2686 CLASSTYPE_VTABLE_NEEDS_WRITING.
kono
parents:
diff changeset
2687 (mark_class_instantiated): Likewise.
kono
parents:
diff changeset
2688 * ptree.c (print_lang_type): Don't print it.
kono
parents:
diff changeset
2689 * semantics.c (begin_class_definition): Don't set it.
kono
parents:
diff changeset
2690
kono
parents:
diff changeset
2691 * pt.c (template_tail): Replace with last_pending_template.
kono
parents:
diff changeset
2692 (maybe_templates, maybe_template_tail): Remove.
kono
parents:
diff changeset
2693 (add_pending_template): Adjust.
kono
parents:
diff changeset
2694 (instantiate_pending_templates): Adjust.
kono
parents:
diff changeset
2695
kono
parents:
diff changeset
2696 * cp-tree.h (struct saved_scope): Remove lang_stack field.
kono
parents:
diff changeset
2697 (current_lang_stack): Remove.
kono
parents:
diff changeset
2698 * decl.c (maybe_push_to_top_level): Don't initialize it.
kono
parents:
diff changeset
2699 (duplicate_decls): Use current_lang_depth.
kono
parents:
diff changeset
2700 (xref_basetypes): Likewise.
kono
parents:
diff changeset
2701 * class.c (current_lang_depth): New fn.
kono
parents:
diff changeset
2702 (push_lang_context): Use more varray functionality.
kono
parents:
diff changeset
2703 (pop_lang_context): Likewise.
kono
parents:
diff changeset
2704
kono
parents:
diff changeset
2705 * error.c (GLOBAL_THING): Always use '__'.
kono
parents:
diff changeset
2706
kono
parents:
diff changeset
2707 2001-03-21 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
2708
kono
parents:
diff changeset
2709 * class.c (build_clone): Clear DECL_ASSEMBLER_NAME.
kono
parents:
diff changeset
2710
kono
parents:
diff changeset
2711 * mangle.c (mangle_decl_string): Mangle the names of overloaded
kono
parents:
diff changeset
2712 operators, even when they have `extern "C"' linkage.
kono
parents:
diff changeset
2713
kono
parents:
diff changeset
2714 2001-03-19 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
2715
kono
parents:
diff changeset
2716 * class.c (get_vtable_decl): Use SET_DECL_ASSEMBLER_NAME,
kono
parents:
diff changeset
2717 COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
kono
parents:
diff changeset
2718 where it's not necessary.
kono
parents:
diff changeset
2719 (add_method): Remove optimization involving comparison of
kono
parents:
diff changeset
2720 DECL_ASSEMBLER_NAME.
kono
parents:
diff changeset
2721 (build_vtbl_or_vbase_field): Use SET_DECL_ASSEMBLER_NAME,
kono
parents:
diff changeset
2722 COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
kono
parents:
diff changeset
2723 where it's not necessary.
kono
parents:
diff changeset
2724 (check_methods): Likewise.
kono
parents:
diff changeset
2725 (build_clone): Likewise.
kono
parents:
diff changeset
2726 (built_vtt): Likewise.
kono
parents:
diff changeset
2727 * cp-tree.h (DECL_NEEDED_P): Likewise.
kono
parents:
diff changeset
2728 * decl.c (pushtag): Likewise.
kono
parents:
diff changeset
2729 (duplicate_decls): Likewise.
kono
parents:
diff changeset
2730 (pushdecl): Likewise.
kono
parents:
diff changeset
2731 (builtin_function): Likewise.
kono
parents:
diff changeset
2732 (build_library_fn_1): Set DECL_LANGUAGE for library functions.
kono
parents:
diff changeset
2733 (build_cp_library_fn): Likewise.
kono
parents:
diff changeset
2734 (maybe_commonize_var): Use SET_DECL_ASSEMBLER_NAME,
kono
parents:
diff changeset
2735 COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
kono
parents:
diff changeset
2736 where it's not necessary.
kono
parents:
diff changeset
2737 (make_rtl_for_nonlocal_decl): Likewise.
kono
parents:
diff changeset
2738 (cp_finish_decl): Likewise.
kono
parents:
diff changeset
2739 (grokfndecl): Likewise.
kono
parents:
diff changeset
2740 (grokvardecl): Likewise.
kono
parents:
diff changeset
2741 (grokdeclarator): Likewise.
kono
parents:
diff changeset
2742 (start_function): Likewise.
kono
parents:
diff changeset
2743 (cp_missing_return_ok_p): Likewise.
kono
parents:
diff changeset
2744 * decl2.c (grokclassfn): Likewise.
kono
parents:
diff changeset
2745 (check_classfn): Likewise.
kono
parents:
diff changeset
2746 (finish_static_data_member_decl): Likewise.
kono
parents:
diff changeset
2747 (grokfield): Likewise.
kono
parents:
diff changeset
2748 * error.c (GLOBAL_IORD_P): Remove.
kono
parents:
diff changeset
2749 (dump_global_iord): Improve output.
kono
parents:
diff changeset
2750 (dump_decl): Avoid using DECL_ASSEMBLER_NAME.
kono
parents:
diff changeset
2751 * except.c (nothrow_libfn_p): Summarily reject any function not in
kono
parents:
diff changeset
2752 namespace-scope.
kono
parents:
diff changeset
2753 * init.c (build_java_class_ref): Don't explicitly set
kono
parents:
diff changeset
2754 DECL_ASSEMBLER_NAME after calling mangle_decl.
kono
parents:
diff changeset
2755 * mangle.c (mangle_decl_string): Handle extern "C" functions.
kono
parents:
diff changeset
2756 (mangle_decl): Set the DECL_ASSEMBLER_NAME for the decl.
kono
parents:
diff changeset
2757 * method.c (set_mangled_name_for_decl): Don't explicitly set
kono
parents:
diff changeset
2758 DECL_ASSEMBLER_NAME after calling mangle_decl.
kono
parents:
diff changeset
2759 (make_thunk): Explicitly set the DECL_ASSEMBLER_NAME and
kono
parents:
diff changeset
2760 IDENTIFIER_GLOBAL_VALUE for the thunk.
kono
parents:
diff changeset
2761 * pt.c (set_mangled_name_for_template_decl): Remove.
kono
parents:
diff changeset
2762 (check_explicit_specialization): Don't use it.
kono
parents:
diff changeset
2763 (looup_template_class): Don't set DECL_ASSEMBLER_NAME.
kono
parents:
diff changeset
2764 (tsubst_friend_function): Likewise.
kono
parents:
diff changeset
2765 (tsubst_decl): Likewise.
kono
parents:
diff changeset
2766 (regenerate_decl_from_template): Use COPY_DECL_ASSEMBLER_NAME.
kono
parents:
diff changeset
2767 * rtti.c (get_tinfo_decl): Use SET_DECL_ASSEMBLER_NAME,
kono
parents:
diff changeset
2768 COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
kono
parents:
diff changeset
2769 where it's not necessary.
kono
parents:
diff changeset
2770 (tinfo_base_init): Likewise.
kono
parents:
diff changeset
2771 (create_real_tinfo_var): Likewise.
kono
parents:
diff changeset
2772 * search.c (looup_field_1): Likewise.
kono
parents:
diff changeset
2773 * semantics.c (finish_named_return_value): Likewise.
kono
parents:
diff changeset
2774 * tree.c (init_tree): Set lang_set_decl_assembler_name.
kono
parents:
diff changeset
2775
kono
parents:
diff changeset
2776 2001-03-15 Gabriel Dos Reis <gdr@codesourcery.com>
kono
parents:
diff changeset
2777
kono
parents:
diff changeset
2778 Correct semantics restrictions checking in throw-expression.
kono
parents:
diff changeset
2779 * except.c (is_admissible_throw_operand): New function.
kono
parents:
diff changeset
2780 (build_throw): Use it.
kono
parents:
diff changeset
2781
kono
parents:
diff changeset
2782 2001-03-14 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
2783
kono
parents:
diff changeset
2784 * decl.c (cp_make_fnname_decl): Set DECL_IGNORED_P on __FUNCTION__
kono
parents:
diff changeset
2785 and its ilk.
kono
parents:
diff changeset
2786
kono
parents:
diff changeset
2787 2001-03-14 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
2788
kono
parents:
diff changeset
2789 * class.c (build_clone): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.
kono
parents:
diff changeset
2790 * cp-tree.h (DECL_IN_MEMORY_P): Likewise.
kono
parents:
diff changeset
2791 * decl.c (duplicate_decls): Likewise.
kono
parents:
diff changeset
2792 (builtin_function): Likewise.
kono
parents:
diff changeset
2793 (build_library_fn): Likewise.
kono
parents:
diff changeset
2794 (build_cp_library_fn): Likewise.
kono
parents:
diff changeset
2795 (check_initializer): Likewise.
kono
parents:
diff changeset
2796 (cp_finish_decl): Likewise.
kono
parents:
diff changeset
2797 * decl2.c (grokfield): Likewise.
kono
parents:
diff changeset
2798 (grok_function_init): Remove #if 0'd code.
kono
parents:
diff changeset
2799 (finish_anon_union): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.
kono
parents:
diff changeset
2800 * friend.c (do_friend): Likewise.
kono
parents:
diff changeset
2801 * init.c (get_temp_regvar): Likewise.
kono
parents:
diff changeset
2802 * method.c (make_thunk): Likewise.
kono
parents:
diff changeset
2803 * pt.c (tsubst_friend_function): Likewise.
kono
parents:
diff changeset
2804 (tsubst_decl): Likewise.
kono
parents:
diff changeset
2805 (regenerate_decl_from_template): Likewise.
kono
parents:
diff changeset
2806 * semantics.c (genrtl_named_return_value): Likewise.
kono
parents:
diff changeset
2807 (expand_body): Likewise.
kono
parents:
diff changeset
2808 (genrtl_finish_function): Likewise.
kono
parents:
diff changeset
2809 * tree.c (cp_tree_equal): Likewise.
kono
parents:
diff changeset
2810
kono
parents:
diff changeset
2811 2001-03-12 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
2812
kono
parents:
diff changeset
2813 * call.c (convert_like_real): Add extra semantics to INNER
kono
parents:
diff changeset
2814 parameter. Don't convert to temporary if a user conversion
kono
parents:
diff changeset
2815 gives us an lvalue that we're about to bind to a reference.
kono
parents:
diff changeset
2816 Set INNER to indicate pending reference binding on recursive
kono
parents:
diff changeset
2817 calls.
kono
parents:
diff changeset
2818
kono
parents:
diff changeset
2819 2001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
kono
parents:
diff changeset
2820
kono
parents:
diff changeset
2821 * cp/lex.c: Delete duplicate pending_lang_change.
kono
parents:
diff changeset
2822
kono
parents:
diff changeset
2823 2001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
kono
parents:
diff changeset
2824
kono
parents:
diff changeset
2825 * cp/lex.c (handle_pragma_interface, handle_pragma_implementation):
kono
parents:
diff changeset
2826 Similarly.
kono
parents:
diff changeset
2827 * cp/repo.c (get_base_filename, open_repo_file): Similarly.
kono
parents:
diff changeset
2828 * cp/cp-tree.h: Remove file_name_nondirectory prototype.
kono
parents:
diff changeset
2829
kono
parents:
diff changeset
2830 2001-03-09 Zack Weinberg <zackw@stanford.edu>
kono
parents:
diff changeset
2831
kono
parents:
diff changeset
2832 * Make-lang.in: Add dependencies on $(TM_P_H) as appropriate.
kono
parents:
diff changeset
2833
kono
parents:
diff changeset
2834 2001-03-08 Stan Shebs <shebs@apple.com>
kono
parents:
diff changeset
2835
kono
parents:
diff changeset
2836 * cp-tree.h (set_identifier_local_value): Remove unused decl.
kono
parents:
diff changeset
2837
kono
parents:
diff changeset
2838 2001-03-06 Zack Weinberg <zackw@stanford.edu>
kono
parents:
diff changeset
2839
kono
parents:
diff changeset
2840 * spew.c: Remove references to CPP_OSTRING.
kono
parents:
diff changeset
2841
kono
parents:
diff changeset
2842 2001-03-06 Andrew Haley <aph@redhat.com>
kono
parents:
diff changeset
2843
kono
parents:
diff changeset
2844 * typeck.c (convert_arguments): Check that we have an fndecl.
kono
parents:
diff changeset
2845
kono
parents:
diff changeset
2846 2001-03-05 Andrew Haley <aph@redhat.com>
kono
parents:
diff changeset
2847
kono
parents:
diff changeset
2848 * typeck.c (convert_arguments): Don't do ellipsis conversion for
kono
parents:
diff changeset
2849 __built_in_constant_p.
kono
parents:
diff changeset
2850
kono
parents:
diff changeset
2851 2001-03-02 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
2852
kono
parents:
diff changeset
2853 * typeck.c (build_static_cast): Allow enum to enum conversions
kono
parents:
diff changeset
2854 as per DR 128.
kono
parents:
diff changeset
2855
kono
parents:
diff changeset
2856 2001-03-02 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
2857
kono
parents:
diff changeset
2858 * class.c (check_field_decls): Pointers to member do not a
kono
parents:
diff changeset
2859 non-pod struct make, as per DR 148.
kono
parents:
diff changeset
2860
kono
parents:
diff changeset
2861 2001-03-02 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
2862
kono
parents:
diff changeset
2863 * call.c (joust): cp_pedwarn when using gnu extension concerning
kono
parents:
diff changeset
2864 worst conversion sequences.
kono
parents:
diff changeset
2865
kono
parents:
diff changeset
2866 2001-03-01 Zack Weinberg <zackw@stanford.edu>
kono
parents:
diff changeset
2867
kono
parents:
diff changeset
2868 * decl.c: Replace all uses of 'boolean' with 'bool'.
kono
parents:
diff changeset
2869
kono
parents:
diff changeset
2870 2001-03-01 Zack Weinberg <zackw@stanford.edu>
kono
parents:
diff changeset
2871
kono
parents:
diff changeset
2872 * lang-specs.h: Add zero initializer for cpp_spec field to
kono
parents:
diff changeset
2873 all array elements that need one. Don't put an #ifdef inside
kono
parents:
diff changeset
2874 the initializer list; set a default for CPLUSPLUS_CPP_SPEC and
kono
parents:
diff changeset
2875 use it.
kono
parents:
diff changeset
2876
kono
parents:
diff changeset
2877 2001-03-01 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
2878
kono
parents:
diff changeset
2879 Implement using decls inside template functions.
kono
parents:
diff changeset
2880 * decl2.c (validate_nonmember_using_decl): Don't special case
kono
parents:
diff changeset
2881 fake_std_node in the global namespace. Don't reject early when
kono
parents:
diff changeset
2882 processing a template.
kono
parents:
diff changeset
2883 (do_local_using_decl): Add to statement tree. Don't do further
kono
parents:
diff changeset
2884 processing when building a template.
kono
parents:
diff changeset
2885 * pt.c (tsubst_expr, DECL_STMT case): Deal with USING_DECLs.
kono
parents:
diff changeset
2886
kono
parents:
diff changeset
2887 2001-03-01 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
2888
kono
parents:
diff changeset
2889 * decl2.c (do_nonmember_using_decl): Don't complain if we find
kono
parents:
diff changeset
2890 same function. Do complain about ambiguating extern "C"
kono
parents:
diff changeset
2891 declarations.
kono
parents:
diff changeset
2892
kono
parents:
diff changeset
2893 2001-02-28 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
2894
kono
parents:
diff changeset
2895 Remove floating point and complex type template constant parms.
kono
parents:
diff changeset
2896 * pt.c (convert_nontype_argument): Remove REAL_TYPE and
kono
parents:
diff changeset
2897 COMPLEX_TYPE extensions.
kono
parents:
diff changeset
2898 (invalid_nontype_parm_type_p): Likewise.
kono
parents:
diff changeset
2899
kono
parents:
diff changeset
2900 2001-02-27 Jeffrey Oldham <oldham@codesourcery.com>
kono
parents:
diff changeset
2901
kono
parents:
diff changeset
2902 * except.c (call_eh_info): Revert "match_function"'s type.
kono
parents:
diff changeset
2903
kono
parents:
diff changeset
2904 2001-02-27 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
2905
kono
parents:
diff changeset
2906 Fix ctor vtable vcall offsets.
kono
parents:
diff changeset
2907 * class.c (struct vtbl_init_data_s): Add rtti_binfo member.
kono
parents:
diff changeset
2908 (build_rtt_vtbl_entries): Lose RTTI_BINFO parameter.
kono
parents:
diff changeset
2909 (get_matching_base): Remove.
kono
parents:
diff changeset
2910 (get_original_base): New function.
kono
parents:
diff changeset
2911 (build_vtbl_initializer): Initialize vid.rtti_binfo.
kono
parents:
diff changeset
2912 Use a virtual thunk for a ctor vtable with an index
kono
parents:
diff changeset
2913 (add_vcall_offset_vtbl_entries_1): Check if binfo has lost a
kono
parents:
diff changeset
2914 primary base within a constructor vtable. Only set
kono
parents:
diff changeset
2915 BV_VCALL_INDEX when not a constructor vtable. Adjust vcall offset
kono
parents:
diff changeset
2916 when primary base has been lost.
kono
parents:
diff changeset
2917 * cp-tree.h (BINFO_VIRTUALS): Remove ambiguity from comment.
kono
parents:
diff changeset
2918
kono
parents:
diff changeset
2919 2001-02-26 Jeffrey Oldham <oldham@codesourcery.com>
kono
parents:
diff changeset
2920
kono
parents:
diff changeset
2921 * call.c (joust): Ensure more_specialized()'s argument length
kono
parents:
diff changeset
2922 parameter has correct value for constructors.
kono
parents:
diff changeset
2923
kono
parents:
diff changeset
2924 2001-02-26 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
2925
kono
parents:
diff changeset
2926 * except.c (call_eh_info): Cleanup generation of cp_eh_info struct.
kono
parents:
diff changeset
2927
kono
parents:
diff changeset
2928 * decl.c (mark_inlined_fns): Prototype.
kono
parents:
diff changeset
2929
kono
parents:
diff changeset
2930 2001-02-22 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
2931
kono
parents:
diff changeset
2932 * spew.c (yylex): Correct handling of friends.
kono
parents:
diff changeset
2933
kono
parents:
diff changeset
2934 2001-02-22 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
2935
kono
parents:
diff changeset
2936 * mangle.c (write_encoding): Pass write_function_type the
kono
parents:
diff changeset
2937 FUNCTION_DECL for the function being encoded.
kono
parents:
diff changeset
2938 (write_function_type): Pass it along to write_bare_function_type.
kono
parents:
diff changeset
2939 (write_bare_function_type): Pass it along to write_method_parms.
kono
parents:
diff changeset
2940 (write_method_parms): Don't mangle the compiler-generated
kono
parents:
diff changeset
2941 parameters to a constructor or destructor.
kono
parents:
diff changeset
2942
kono
parents:
diff changeset
2943 2001-02-22 Andreas Jaeger <aj@suse.de>
kono
parents:
diff changeset
2944
kono
parents:
diff changeset
2945 * optimize.c: Include toplev.h for
kono
parents:
diff changeset
2946 note_deferral_of_defined_inline_function prototype.
kono
parents:
diff changeset
2947
kono
parents:
diff changeset
2948 2001-02-22 Jakub Jelinek <jakub@redhat.com>
kono
parents:
diff changeset
2949
kono
parents:
diff changeset
2950 * cp-tree.h (struct lang_decl_inlined_fns): New.
kono
parents:
diff changeset
2951 (struct lang_decls): Add inlined_fns.
kono
parents:
diff changeset
2952 (DECL_INLINED_FNS): New macro.
kono
parents:
diff changeset
2953 * optimize.c (struct inline_data): Add inlined_fns.
kono
parents:
diff changeset
2954 (declare_return_variable): Use VARRAY_ACTIVE_SIZE macro.
kono
parents:
diff changeset
2955 (inlinable_function_p): Likewise, fix typo in comment,
kono
parents:
diff changeset
2956 function is not inlinable if it already inlined function currently
kono
parents:
diff changeset
2957 being optimized.
kono
parents:
diff changeset
2958 (expand_call_inline): Add fn to inlined_fns if necessary.
kono
parents:
diff changeset
2959 (optimize_function): Initialize inlined_fns.
kono
parents:
diff changeset
2960 Save inlined_fns into DECL_INLINED_FNS after expanding inlines.
kono
parents:
diff changeset
2961 * decl.c (mark_inlined_fns): New function.
kono
parents:
diff changeset
2962 (lang_mark_tree): Call it.
kono
parents:
diff changeset
2963
kono
parents:
diff changeset
2964 2001-02-21 Jason Merrill <jason@redhat.com>
kono
parents:
diff changeset
2965
kono
parents:
diff changeset
2966 * cp-tree.h (struct lang_decl_flags): Remove uninlinable flag.
kono
parents:
diff changeset
2967 (DECL_UNINLINABLE): Move to middle-end.
kono
parents:
diff changeset
2968
kono
parents:
diff changeset
2969 * class.c (clone_function_decl): Set DECL_ABSTRACT on original fn.
kono
parents:
diff changeset
2970 * decl.c (duplicate_decls): Preserve DECL_ABSTRACT.
kono
parents:
diff changeset
2971 * class.c (build_clone): Set DECL_ABSTRACT_ORIGIN for the clone.
kono
parents:
diff changeset
2972 * optimize.c (maybe_clone_body): Set DECL_ABSTRACT_ORIGIN for the
kono
parents:
diff changeset
2973 parms and outer BLOCK. note_deferral_of_defined_inline_function.
kono
parents:
diff changeset
2974
kono
parents:
diff changeset
2975 * method.c (implicitly_declare_fn): Don't set DECL_ARTIFICIAL on
kono
parents:
diff changeset
2976 second parm of op=.
kono
parents:
diff changeset
2977
kono
parents:
diff changeset
2978 2001-02-19 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
2979
kono
parents:
diff changeset
2980 * decl2.c (set_decl_namespace): Allow explicit instantiations in
kono
parents:
diff changeset
2981 any namespace.
kono
parents:
diff changeset
2982
kono
parents:
diff changeset
2983 2001-02-18 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
kono
parents:
diff changeset
2984
kono
parents:
diff changeset
2985 * optimize.c (expand_call_inline): Don't walk subtrees of type
kono
parents:
diff changeset
2986 nodes.
kono
parents:
diff changeset
2987
kono
parents:
diff changeset
2988 2001-02-18 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
2989
kono
parents:
diff changeset
2990 * class.c (add_vcall_offset_vtbl_entries_1): Only add one entry
kono
parents:
diff changeset
2991 for a destructor.
kono
parents:
diff changeset
2992
kono
parents:
diff changeset
2993 2001-02-18 Jason Merrill <jason@redhat.com>
kono
parents:
diff changeset
2994
kono
parents:
diff changeset
2995 Do put the VTT parameter in DECL_ARGUMENTS.
kono
parents:
diff changeset
2996 * cp-tree.h (struct cp_language_function): Add x_vtt_parm.
kono
parents:
diff changeset
2997 (current_vtt_parm): New macro.
kono
parents:
diff changeset
2998 (struct lang_decl_flags): Add has_vtt_parm_p, remove vtt_parm.
kono
parents:
diff changeset
2999 (DECL_HAS_VTT_PARM_P): New macro.
kono
parents:
diff changeset
3000 (DECL_VTT_PARM): Remove.
kono
parents:
diff changeset
3001 (FUNCTION_FIRST_USER_PARMTYPE, FUNCTION_FIRST_USER_PARM): New macros.
kono
parents:
diff changeset
3002 * decl.c (duplicate_decls): Only copy the operator code if
kono
parents:
diff changeset
3003 appropriate.
kono
parents:
diff changeset
3004 (start_function): Set current_vtt_parm.
kono
parents:
diff changeset
3005 (lang_mark_tree): Don't mark vtt_parm.
kono
parents:
diff changeset
3006 * decl2.c (maybe_retrofit_in_chrg): Do add the VTT parm to
kono
parents:
diff changeset
3007 DECL_ARGUMENTS. Set DECL_HAS_VTT_PARM_P.
kono
parents:
diff changeset
3008 * class.c (build_clone): Maybe remove the VTT parm.
kono
parents:
diff changeset
3009 * optimize.c (maybe_clone_body): Set up the VTT parm.
kono
parents:
diff changeset
3010 * pt.c (copy_default_args_to_explicit_spec): Preserve the VTT parm.
kono
parents:
diff changeset
3011 * call.c (build_over_call): Just allow the VTT arg.
kono
parents:
diff changeset
3012 * method.c (make_thunk): Don't set DECL_VTT_PARM.
kono
parents:
diff changeset
3013 (do_build_copy_constructor): Use FUNCTION_FIRST_USER_PARM.
kono
parents:
diff changeset
3014 (synthesize_method): Use FUNCTION_FIRST_USER_PARMTYPE.
kono
parents:
diff changeset
3015 * decl.c (grokdeclarator, copy_args_p, grok_ctor_properties): Likewise.
kono
parents:
diff changeset
3016 * error.c (dump_function_decl): Likewise.
kono
parents:
diff changeset
3017 * call.c (build_user_type_conversion_1, convert_like_real): Abort
kono
parents:
diff changeset
3018 if we try to call a constructor with in-charge or VTT parms.
kono
parents:
diff changeset
3019 * method.c (skip_artificial_parms_for): New fn.
kono
parents:
diff changeset
3020 * call.c (add_function_candidate, build_over_call): Call it.
kono
parents:
diff changeset
3021 * call.c (build_new_method_call): Use current_vtt_parm.
kono
parents:
diff changeset
3022 * init.c (expand_virtual_init): Likewise.
kono
parents:
diff changeset
3023 * class.c (same_signature_p): No longer static.
kono
parents:
diff changeset
3024 * cp-tree.h: Declare it.
kono
parents:
diff changeset
3025 * search.c (look_for_overrides_r): Use it.
kono
parents:
diff changeset
3026
kono
parents:
diff changeset
3027 2001-02-17 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
3028
kono
parents:
diff changeset
3029 * cp-tree.h (new_abi_rtti_p): Remove.
kono
parents:
diff changeset
3030 (name_mangling_version): Likewise.
kono
parents:
diff changeset
3031 (flag_do_squangling): Likewise.
kono
parents:
diff changeset
3032 * class.c (build_rtti_vtbl_entries): Remove old ABI support.
kono
parents:
diff changeset
3033 * decl.c (grokfndecl): Likewise.
kono
parents:
diff changeset
3034 * decl2.c (name_mangling_version): Remove.
kono
parents:
diff changeset
3035 (flag_do_squangling): Likewise.
kono
parents:
diff changeset
3036 (lang_f_options): Remove `squangle'.
kono
parents:
diff changeset
3037 (unsupported_options): Add `squangle'.
kono
parents:
diff changeset
3038 (cxx_decode_option): Issue a warning about uses of
kono
parents:
diff changeset
3039 -fname-mangling-version.
kono
parents:
diff changeset
3040 (finish_file): Remove old ABI support.
kono
parents:
diff changeset
3041 * pt.c (check_explicit_specialization): Likewise.
kono
parents:
diff changeset
3042 (tsubst_decl): Likewise.
kono
parents:
diff changeset
3043 * rtti.c (init_rtti_processing): Likewise.
kono
parents:
diff changeset
3044 (build_headof): Likewise.
kono
parents:
diff changeset
3045 (get_tinfo_decl_dynamic): Likewise.
kono
parents:
diff changeset
3046 (tinfo_from_decl): Likewise.
kono
parents:
diff changeset
3047 (build_dynamic_cast_1): Likewise.
kono
parents:
diff changeset
3048 (synthesize_tinfo_var): Likewise.
kono
parents:
diff changeset
3049 * init.c (build_new): Allow enumeration types for the array-bounds
kono
parents:
diff changeset
3050 in a direct-new-declarator.
kono
parents:
diff changeset
3051
kono
parents:
diff changeset
3052 * semantics.c (finish_typeof): Resolve OFFSET_REFs.
kono
parents:
diff changeset
3053
kono
parents:
diff changeset
3054 * pt.c (check_explicit_specialization): Copy TREE_PRIVATE and
kono
parents:
diff changeset
3055 TREE_PROTECTED from the template being specialized.
kono
parents:
diff changeset
3056
kono
parents:
diff changeset
3057 2001-02-17 Jason Merrill <jason@redhat.com>
kono
parents:
diff changeset
3058
kono
parents:
diff changeset
3059 * decl2.c (build_artificial_parm): Set TREE_READONLY.
kono
parents:
diff changeset
3060
kono
parents:
diff changeset
3061 * decl.c (bad_specifiers): Allow throw specs on things with
kono
parents:
diff changeset
3062 pointer-to-function or -member-function type.
kono
parents:
diff changeset
3063 * init.c (build_default_init): Don't use a CONSTRUCTOR to initialize
kono
parents:
diff changeset
3064 a pmf.
kono
parents:
diff changeset
3065
kono
parents:
diff changeset
3066 2001-02-17 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
3067
kono
parents:
diff changeset
3068 * call.c (check_dtor_name): Handle template names correctly.
kono
parents:
diff changeset
3069
kono
parents:
diff changeset
3070 2001-02-16 Jason Merrill <jason@redhat.com>
kono
parents:
diff changeset
3071
kono
parents:
diff changeset
3072 * cp-tree.h (DECL_USE_VTT_PARM): Remove.
kono
parents:
diff changeset
3073 * decl2.c (maybe_retrofit_in_chrg): Don't create it.
kono
parents:
diff changeset
3074 * optimize.c (maybe_clone_body): Don't substitute it.
kono
parents:
diff changeset
3075 * call.c (build_new_method_call): Check in_chrg instead.
kono
parents:
diff changeset
3076 * init.c (expand_virtual_init): Likewise.
kono
parents:
diff changeset
3077
kono
parents:
diff changeset
3078 2001-02-16 Gabriel Dos Reis <gdr@codesourcery.com>
kono
parents:
diff changeset
3079
kono
parents:
diff changeset
3080 * decl.c (check_tag_decl): Make sure a typedef for an anonymous
kono
parents:
diff changeset
3081 class-type introduces at least a type-name.
kono
parents:
diff changeset
3082
kono
parents:
diff changeset
3083 2001-02-16 Jakub Jelinek <jakub@redhat.com>
kono
parents:
diff changeset
3084
kono
parents:
diff changeset
3085 * call.c (convert_like_real): Create a temporary for non-lvalue.
kono
parents:
diff changeset
3086
kono
parents:
diff changeset
3087 2001-02-16 Jeffrey Oldham <oldham@codesourcery.com>
kono
parents:
diff changeset
3088
kono
parents:
diff changeset
3089 * cp-tree.h: Fix typos in comments.
kono
parents:
diff changeset
3090
kono
parents:
diff changeset
3091 2001-02-16 Jason Merrill <jason@redhat.com>
kono
parents:
diff changeset
3092
kono
parents:
diff changeset
3093 * optimize.c (remap_block): If we're compiling a clone, pass the
kono
parents:
diff changeset
3094 new block to insert_block.
kono
parents:
diff changeset
3095
kono
parents:
diff changeset
3096 2001-02-16 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
3097
kono
parents:
diff changeset
3098 * semantics.c (finish_asm_stmt): Robustify.
kono
parents:
diff changeset
3099
kono
parents:
diff changeset
3100 2001-02-15 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
3101
kono
parents:
diff changeset
3102 * pt.c (push_template_decl_real): Don't remangle the name of a
kono
parents:
diff changeset
3103 class template.
kono
parents:
diff changeset
3104
kono
parents:
diff changeset
3105 2001-02-15 Jim Meyering <meyering@lucent.com>
kono
parents:
diff changeset
3106
kono
parents:
diff changeset
3107 * Make-lang.in (c++.install-common): Depend on installdirs.
kono
parents:
diff changeset
3108 (c++.install-info): Likewise.
kono
parents:
diff changeset
3109 (c++.install-man): Likewise.
kono
parents:
diff changeset
3110
kono
parents:
diff changeset
3111 2001-02-15 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
3112
kono
parents:
diff changeset
3113 * typeck2.c (build_m_component_ref): Robustify.
kono
parents:
diff changeset
3114
kono
parents:
diff changeset
3115 2001-02-15 Alexandre Oliva <aoliva@redhat.com>
kono
parents:
diff changeset
3116
kono
parents:
diff changeset
3117 * friend.c (do_friend): Don't take the nested [template] class
kono
parents:
diff changeset
3118 into account when deciding whether to warn about the friend
kono
parents:
diff changeset
3119 function not referring to a template function.
kono
parents:
diff changeset
3120
kono
parents:
diff changeset
3121 2001-02-14 Jakub Jelinek <jakub@redhat.com>
kono
parents:
diff changeset
3122
kono
parents:
diff changeset
3123 * typeck.c (build_unary_op): Clarify error message.
kono
parents:
diff changeset
3124
kono
parents:
diff changeset
3125 2001-02-08 Aldy Hernandez <aldyh@redhat.com>
kono
parents:
diff changeset
3126
kono
parents:
diff changeset
3127 * parse.y (component_constructor_declarator): allow optional
kono
parents:
diff changeset
3128 parentheses around constructor class name.
kono
parents:
diff changeset
3129
kono
parents:
diff changeset
3130 2001-02-14 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3131
kono
parents:
diff changeset
3132 * cp-tree.h (setup_vtbl_ptr): Move prototype to semantics.c
kono
parents:
diff changeset
3133 section.
kono
parents:
diff changeset
3134 * init.c (emit_base_init): Remove incorrect comment about
kono
parents:
diff changeset
3135 virtual bases.
kono
parents:
diff changeset
3136 * method.c (make_thunk): Fix comment alignment.
kono
parents:
diff changeset
3137
kono
parents:
diff changeset
3138 2001-02-14 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3139
kono
parents:
diff changeset
3140 Kill remnants of this is variable.
kono
parents:
diff changeset
3141 * cp-tree.h (flag_this_is_variable): Remove.
kono
parents:
diff changeset
3142 * decl2.c (flag_this_is_variable): Remove.
kono
parents:
diff changeset
3143 * class.c (fixed_type_or_null): Add cdtor parm. Adjust.
kono
parents:
diff changeset
3144 (build_vbase_path): The path is non-static, even in a cdtor.
kono
parents:
diff changeset
3145 (resolves_to_fixed_type_p): Add additional return value.
kono
parents:
diff changeset
3146 * search.c (init_vbase_pointers): Adjust.
kono
parents:
diff changeset
3147 * tree.c (lvalue_p_1): Adjust.
kono
parents:
diff changeset
3148 * typeck.c (mark_addressable): Adjust.
kono
parents:
diff changeset
3149
kono
parents:
diff changeset
3150 2001-02-14 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3151
kono
parents:
diff changeset
3152 * pt.c (unify): Don't check cv quals of array types.
kono
parents:
diff changeset
3153
kono
parents:
diff changeset
3154 2001-02-14 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3155
kono
parents:
diff changeset
3156 * tree.c (cp_build_qualified_type_real): Use CP_TYPE_QUALS to
kono
parents:
diff changeset
3157 check whether we already have the type.
kono
parents:
diff changeset
3158
kono
parents:
diff changeset
3159 2001-02-13 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
3160
kono
parents:
diff changeset
3161 * cp-tree.h (CLASSTYPE_DESTRUCTORS): Fix typo in comment.
kono
parents:
diff changeset
3162 * call.c (build_op_delete_call): Simplify to remove duplicate
kono
parents:
diff changeset
3163 code.
kono
parents:
diff changeset
3164 * class.c (clone_function_decl): Don't build the deleting variant
kono
parents:
diff changeset
3165 of a non-virtual destructor.
kono
parents:
diff changeset
3166 * decl.c (finish_destructor_body): Don't call delete if this is a
kono
parents:
diff changeset
3167 non-virtual destructor.
kono
parents:
diff changeset
3168 * init.c (build_delete): Explicitly call `operator delete' when
kono
parents:
diff changeset
3169 deleting an object with a non-virtual destructor.
kono
parents:
diff changeset
3170
kono
parents:
diff changeset
3171 2001-02-13 Jason Merrill <jason@redhat.com>
kono
parents:
diff changeset
3172
kono
parents:
diff changeset
3173 * lang-specs.h: Add more __EXCEPTIONS.
kono
parents:
diff changeset
3174
kono
parents:
diff changeset
3175 2001-02-12 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3176
kono
parents:
diff changeset
3177 * typeck2.c (process_init_constructor): Check
kono
parents:
diff changeset
3178 TREE_HAS_CONSTRUCTOR before issuing missing init warning.
kono
parents:
diff changeset
3179
kono
parents:
diff changeset
3180 2001-02-12 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3181
kono
parents:
diff changeset
3182 * pt.c (maybe_adjust_types_for_deduction, DEDUCE_ORDER case):
kono
parents:
diff changeset
3183 Remove spurious information in comment. Allow further
kono
parents:
diff changeset
3184 adjustments of REFERENCE_TYPE args.
kono
parents:
diff changeset
3185
kono
parents:
diff changeset
3186 2001-02-12 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3187
kono
parents:
diff changeset
3188 * errfn.c (cp_deprecated): Tweak diagnostic text.
kono
parents:
diff changeset
3189 * parse.y (new_initializer): Deprecate initializer lists
kono
parents:
diff changeset
3190 extension.
kono
parents:
diff changeset
3191
kono
parents:
diff changeset
3192 2001-02-12 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
3193
kono
parents:
diff changeset
3194 Remove old ABI support.
kono
parents:
diff changeset
3195
kono
parents:
diff changeset
3196 2001-02-11 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
3197
kono
parents:
diff changeset
3198 * decl2.c (flag_vtable_thunks): Always set it to 1.
kono
parents:
diff changeset
3199 (flag_new_abi): Likewise.
kono
parents:
diff changeset
3200 * lang-specs.h: Remove conditional on ENABLE_NEW_GXX_ABI.
kono
parents:
diff changeset
3201
kono
parents:
diff changeset
3202 * Makefile.in (g++spec.o): Fix typo.
kono
parents:
diff changeset
3203
kono
parents:
diff changeset
3204 2001-02-09 Jason Merrill <jason@redhat.com>
kono
parents:
diff changeset
3205
kono
parents:
diff changeset
3206 * lang-specs.h: Restore definition of __EXCEPTIONS.
kono
parents:
diff changeset
3207
kono
parents:
diff changeset
3208 2001-02-08 Jason Merrill <jason@redhat.com>
kono
parents:
diff changeset
3209
kono
parents:
diff changeset
3210 * search.c (shared_member_p): New function.
kono
parents:
diff changeset
3211 (lookup_field_r): Use it.
kono
parents:
diff changeset
3212 * cp-tree.h (SHARED_MEMBER_P): Remove.
kono
parents:
diff changeset
3213
kono
parents:
diff changeset
3214 * method.c (process_overload_item): Handle template-dependent array
kono
parents:
diff changeset
3215 bounds.
kono
parents:
diff changeset
3216 * pt.c (type_unification_real): If we end up with undeduced nontype
kono
parents:
diff changeset
3217 parms, try again.
kono
parents:
diff changeset
3218
kono
parents:
diff changeset
3219 * decl.c (lookup_name_real): Tweak warning to refer to decls, not
kono
parents:
diff changeset
3220 types.
kono
parents:
diff changeset
3221
kono
parents:
diff changeset
3222 * typeck2.c (friendly_abort): Don't say anything if we have
kono
parents:
diff changeset
3223 earlier errors or sorries.
kono
parents:
diff changeset
3224
kono
parents:
diff changeset
3225 * decl.c (check_tag_decl): Notice attempts to redefine bool and
kono
parents:
diff changeset
3226 wchar_t. Ignore if in_system_header.
kono
parents:
diff changeset
3227
kono
parents:
diff changeset
3228 * decl.c (maybe_push_cleanup_level): New fn...
kono
parents:
diff changeset
3229 (start_decl_1): ...split out from here.
kono
parents:
diff changeset
3230 * cvt.c (build_up_reference): Use it.
kono
parents:
diff changeset
3231 * cp-tree.h: Declare it.
kono
parents:
diff changeset
3232
kono
parents:
diff changeset
3233 2001-02-07 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
3234
kono
parents:
diff changeset
3235 * lang-specs.h: Use CPLUSPLUS_CPP_SPEC for the preprocessor
kono
parents:
diff changeset
3236 spec.
kono
parents:
diff changeset
3237
kono
parents:
diff changeset
3238 2001-02-06 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3239
kono
parents:
diff changeset
3240 * pt.c (lookup_template_class): Make sure it's a primary
kono
parents:
diff changeset
3241 template or template_template_parm when called from the parser.
kono
parents:
diff changeset
3242 (instantiate_template_class): Add assertion.
kono
parents:
diff changeset
3243
kono
parents:
diff changeset
3244 2001-02-05 Alexandre Oliva <aoliva@redhat.com>
kono
parents:
diff changeset
3245
kono
parents:
diff changeset
3246 * method.c (build_mangled_name) [old abi]: Protect flush_repeats()
kono
parents:
diff changeset
3247 from error_mark_node.
kono
parents:
diff changeset
3248
kono
parents:
diff changeset
3249 2001-02-05 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3250
kono
parents:
diff changeset
3251 Fix specification and implementation bugs in V3 ABI
kono
parents:
diff changeset
3252 construction vtables.
kono
parents:
diff changeset
3253 * cp-tree.h (flag_dump_class_layout): New flag.
kono
parents:
diff changeset
3254 (BINFO_OVERRIDE_ALONG_VIRTUAL_PATH_P): Remove.
kono
parents:
diff changeset
3255 (BINFO_LOST_PRIMARY_P): New flag.
kono
parents:
diff changeset
3256 (SET_BINFO_NEW_VTABLE_MARKED): Adjust asserts.
kono
parents:
diff changeset
3257 (BINFO_PRIMARY_MARKED_P): Rename to ...
kono
parents:
diff changeset
3258 (BINFO_PRIMARY_P): ... here.
kono
parents:
diff changeset
3259 (binfo_via_virtual): New prototype.
kono
parents:
diff changeset
3260 * decl2.c (flag_dump_class_layout): New flag.
kono
parents:
diff changeset
3261 (cxx_decode_option): Set it. Adjust -fdump-translation-unit to
kono
parents:
diff changeset
3262 use `=' as a file name separator.
kono
parents:
diff changeset
3263 * init.c (dfs_initialize_vtbl_ptrs): Walk into virtual primary
kono
parents:
diff changeset
3264 bases.
kono
parents:
diff changeset
3265 (build_vtbl_address): If this is a virtual primary base, then
kono
parents:
diff changeset
3266 get the vtbl of what it is ultimately primary for.
kono
parents:
diff changeset
3267 * search.c (dfs_skip_nonprimary_vbases_unmarkedp): Adjust
kono
parents:
diff changeset
3268 for BINFO_PRIMARY_P.
kono
parents:
diff changeset
3269 (dfs_skip_nonprimary_vbases_markedp): Likewise.
kono
parents:
diff changeset
3270 (get_shared_vbase_if_not_primary): Likewise.
kono
parents:
diff changeset
3271 (dfs_get_pure_virtuals): Likewise.
kono
parents:
diff changeset
3272 (expand_upcast_fixups): Likewise.
kono
parents:
diff changeset
3273 (fixup_virtual_upcast_offsets): Likewise.
kono
parents:
diff changeset
3274 (dfs_find_vbase_instance): Likewise.
kono
parents:
diff changeset
3275 (find_vbase_instance): Likewise.
kono
parents:
diff changeset
3276 (binfo_from_vbase): Adjust comment to reflect reality.
kono
parents:
diff changeset
3277 (binfo_via_virtual): New function.
kono
parents:
diff changeset
3278 * class.c (VTT_TOP_LEVEL_P, VTT_MARKED_BINFO_P): New macros
kono
parents:
diff changeset
3279 for binfo walking during VTT construction.
kono
parents:
diff changeset
3280 (dfs_mark_primary_bases): Remove.
kono
parents:
diff changeset
3281 (force_canonical_binfo_r): New function.
kono
parents:
diff changeset
3282 (force_canonical_binfo): New function.
kono
parents:
diff changeset
3283 (mark_primary_virtual_base): New function.
kono
parents:
diff changeset
3284 (mark_primary_bases): Walk in inheritance graph order, use
kono
parents:
diff changeset
3285 mark_primary_virtual_base.
kono
parents:
diff changeset
3286 (determine_primary_base): Use some more intermediate variables.
kono
parents:
diff changeset
3287 (dfs_find_final_overrider): Don't check for overriding along a
kono
parents:
diff changeset
3288 virtual path.
kono
parents:
diff changeset
3289 (dfs_modify_vtables): Walk into primary virtual bases too.
kono
parents:
diff changeset
3290 (walk_subobject_offsets): Adjust for BINFO_PRIMARY_P.
kono
parents:
diff changeset
3291 (build_base_fields): Likewise.
kono
parents:
diff changeset
3292 (dfs_set_offset_for_unshared_vbases): Likewise.
kono
parents:
diff changeset
3293 (layout_virtual_bases): Likewise.
kono
parents:
diff changeset
3294 (end_of_class): Likewise.
kono
parents:
diff changeset
3295 (finish_struct_1): Call dump_class_hierarchy, if requested.
kono
parents:
diff changeset
3296 (dfs_get_primary_binfo): Use BINFO_TYPE for binfos.
kono
parents:
diff changeset
3297 (dump_class_hierarchy_r): Add stream parameter. Emit more information.
kono
parents:
diff changeset
3298 (dump_class_hierarchy): Add file parameter. Append to file, if
kono
parents:
diff changeset
3299 required.
kono
parents:
diff changeset
3300 (finish_vtbls): Adjust accumulate_vtbl_inits call.
kono
parents:
diff changeset
3301 Use canonical base for virtual bases.
kono
parents:
diff changeset
3302 (build_vtt): Add more comments. Adjust build_vtt_inits call.
kono
parents:
diff changeset
3303 (build_vtt_inits): Remove VIRTUAL_VTTS_P parm.
kono
parents:
diff changeset
3304 Only set BINFO_VPTR_INDEX on top level. Use VTT_TOP_LEVEL_P,
kono
parents:
diff changeset
3305 VTT_MARKED_BINFO_P for binfo walking. Use canonical vbase for
kono
parents:
diff changeset
3306 virtual VTTs.
kono
parents:
diff changeset
3307 (dfs_build_secondary_vptr_vtt_inits): Extract VTT_TOP_LEVEL_P
kono
parents:
diff changeset
3308 from DATA. We want virtual primary bases and all bases via virtual.
kono
parents:
diff changeset
3309 Only set BINFO_VPTR_INDEX for top level. Look up from a primary
kono
parents:
diff changeset
3310 virtual base when not a construction vtable.
kono
parents:
diff changeset
3311 (dfs_ctor_vtable_bases_queue_p): New DFS predicate.
kono
parents:
diff changeset
3312 (build_ctor_vtbl_group): Adjust accumulate_vtbl_inits call.
kono
parents:
diff changeset
3313 Use canonical bases when processing virtual bases.
kono
parents:
diff changeset
3314 (accumulate_vtbl_inits): We're interested in any base via a
kono
parents:
diff changeset
3315 virtual path.
kono
parents:
diff changeset
3316 (dfs_accumulate_vtbl_inits): If this is a primary virtual base
kono
parents:
diff changeset
3317 within a construction vtable, determine what is being overridden.
kono
parents:
diff changeset
3318 (build_vtbl_initializer): Add more comments
kono
parents:
diff changeset
3319 (add_vcall_offset_vtbl_entries_1): Adjust comment.
kono
parents:
diff changeset
3320 (build_rtti_vtbl_entries): Check if the base has lost its
kono
parents:
diff changeset
3321 primary.
kono
parents:
diff changeset
3322
kono
parents:
diff changeset
3323 2001-02-05 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
3324
kono
parents:
diff changeset
3325 * Makefile.in (g++spec.o): Adjust use of DRIVER_DEFINES.
kono
parents:
diff changeset
3326
kono
parents:
diff changeset
3327 2001-02-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
kono
parents:
diff changeset
3328
kono
parents:
diff changeset
3329 * decl.c (pushdecl): Call abort instead of fatal.
kono
parents:
diff changeset
3330 * except.c (decl_is_java_type): Call fatal_error instead of fatal.
kono
parents:
diff changeset
3331 * init.c (build_new_1): Likewise.
kono
parents:
diff changeset
3332 (build_java_class_ref): Call internal_error and fatal_error, not fatal.
kono
parents:
diff changeset
3333 * decl.c (build_typename_type): hash_table_init now returns void.
kono
parents:
diff changeset
3334 decl.c (init_decl_processing): Make an error non-fatal.
kono
parents:
diff changeset
3335
kono
parents:
diff changeset
3336 2001-02-04 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
3337
kono
parents:
diff changeset
3338 * cp-tree.h (CLASSTYPE_INTERFACE_UNKNOWN): Fix formatting.
kono
parents:
diff changeset
3339 Document.
kono
parents:
diff changeset
3340 (CLASSTYPE_INTERFACE_KNOWN): Likewise.
kono
parents:
diff changeset
3341 (SET_CLASSTYPE_INTERFACE_UNKNOWN_X): Likewise.
kono
parents:
diff changeset
3342 (SET_CLASSTYPE_INTERFACE_UNKNOWN): Likewise.
kono
parents:
diff changeset
3343 (SET_CLASSTYPE_INTERFACE_KNOWN): Likewise.
kono
parents:
diff changeset
3344 * decl.c (maybe_commonize_var): Use the new name-mangling where
kono
parents:
diff changeset
3345 appropriate.
kono
parents:
diff changeset
3346 * decl2.c (comdat_linkage): Enhance comments. Make all
kono
parents:
diff changeset
3347 compiler-generated things static, if COMDAT is not available.
kono
parents:
diff changeset
3348 (get_tinfo_decl): Do not make typeinfo objects that belong in the
kono
parents:
diff changeset
3349 library COMDAT.
kono
parents:
diff changeset
3350 (tinfo_base_init): Use the correct mangled name for typeinfo
kono
parents:
diff changeset
3351 strings, and push them into the global scope.
kono
parents:
diff changeset
3352 (typeinfo_in_lib_p): New function.
kono
parents:
diff changeset
3353 (synthesize_tinfo_var): Use it.
kono
parents:
diff changeset
3354 (create_real_tinfo_var): Likewise.
kono
parents:
diff changeset
3355
kono
parents:
diff changeset
3356 2001-02-03 Jakub Jelinek <jakub@redhat.com>
kono
parents:
diff changeset
3357
kono
parents:
diff changeset
3358 * decl.c (push_class_binding): Use context_for_name_lookup instead
kono
parents:
diff changeset
3359 of CP_DECL_CONTEXT.
kono
parents:
diff changeset
3360 * search.c (context_for_name_lookup): Remove static. Check for NULL
kono
parents:
diff changeset
3361 context in the loop.
kono
parents:
diff changeset
3362 * cp-tree.h (context_for_name_lookup): Add prototype.
kono
parents:
diff changeset
3363
kono
parents:
diff changeset
3364 2001-02-02 Jakub Jelinek <jakub@redhat.com>
kono
parents:
diff changeset
3365
kono
parents:
diff changeset
3366 * cp-tree.h (build_expr_ptr_wrapper, can_free): Remove.
kono
parents:
diff changeset
3367 * tree.c (build_expr_ptr_wrapper, can_free, permanent_obstack):
kono
parents:
diff changeset
3368 Remove.
kono
parents:
diff changeset
3369 * call.c (convert_class_to_reference, build_user_type_conversion_1,
kono
parents:
diff changeset
3370 add_warning): Change build_expr_ptr_wrapper to build_ptr_wrapper.
kono
parents:
diff changeset
3371
kono
parents:
diff changeset
3372 2001-02-02 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
3373
kono
parents:
diff changeset
3374 * Make-lang.in (g++spec.o): Add DRIVER_DEFINES to the list
kono
parents:
diff changeset
3375 of macros used when compiling g++spec.c.
kono
parents:
diff changeset
3376 * g++spec.c (lang_specific_driver): Link with the shared
kono
parents:
diff changeset
3377 libgcc by default.
kono
parents:
diff changeset
3378
kono
parents:
diff changeset
3379 2001-01-29 Joseph S. Myers <jsm28@cam.ac.uk>
kono
parents:
diff changeset
3380
kono
parents:
diff changeset
3381 * decl2.c (build_expr_from_tree), lex.c (make_pointer_declarator,
kono
parents:
diff changeset
3382 make_reference_declarator, make_call_declarator), method.c
kono
parents:
diff changeset
3383 (implicitly_declare_fn), parse.y (namespace_using_decl,
kono
parents:
diff changeset
3384 notype_unqualified_id, expr_or_declarator, new_type_id,
kono
parents:
diff changeset
3385 after_type_declarator, direct_after_type_declarator,
kono
parents:
diff changeset
3386 notype_declarator, complex_notype_declarator,
kono
parents:
diff changeset
3387 complex_direct_notype_declarator, qualified_id,
kono
parents:
diff changeset
3388 notype_qualified_id, overqualified_id, direct_new_declarator,
kono
parents:
diff changeset
3389 absdcl, direct_abstract_declarator, conversion_declarator), pt.c
kono
parents:
diff changeset
3390 (tsubst), semantics.c (begin_constructor_declarator): Use build_nt
kono
parents:
diff changeset
3391 instead of build_parse_node.
kono
parents:
diff changeset
3392
kono
parents:
diff changeset
3393 2001-01-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
kono
parents:
diff changeset
3394
kono
parents:
diff changeset
3395 * cp-tree.h (cp_tree_index): Delete CPTI_MINUS_ONE.
kono
parents:
diff changeset
3396 (minus_one_node): Moved to top level gcc directory. Renamed
kono
parents:
diff changeset
3397 to integer_minus_one_node.
kono
parents:
diff changeset
3398
kono
parents:
diff changeset
3399 * init.c (init_init_processing): Don't set minus_one_node.
kono
parents:
diff changeset
3400 (build_vec_init): Use integer_minus_one_node.
kono
parents:
diff changeset
3401
kono
parents:
diff changeset
3402 * rtti.c (get_tinfo_decl_dynamic): Likewise.
kono
parents:
diff changeset
3403
kono
parents:
diff changeset
3404 2001-01-28 Jakub Jelinek <jakub@redhat.com>
kono
parents:
diff changeset
3405
kono
parents:
diff changeset
3406 * optimize.c (copy_body_r): If MODIFY_EXPR has both arguments
kono
parents:
diff changeset
3407 identical and they would be replaced with constant, remove
kono
parents:
diff changeset
3408 MODIFY_EXPR from the tree.
kono
parents:
diff changeset
3409
kono
parents:
diff changeset
3410 2001-01-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
kono
parents:
diff changeset
3411
kono
parents:
diff changeset
3412 * Make-lang.in: Remove all dependencies on defaults.h.
kono
parents:
diff changeset
3413 * call.c: Don't include defaults.h.
kono
parents:
diff changeset
3414 * decl.c: Likewise.
kono
parents:
diff changeset
3415 * decl2.c: Likewise.
kono
parents:
diff changeset
3416 * except.c: Likewise.
kono
parents:
diff changeset
3417 * pt.c: Likewise.
kono
parents:
diff changeset
3418 * rtti.c: Likewise.
kono
parents:
diff changeset
3419 * tree.c: Likewise.
kono
parents:
diff changeset
3420 * typeck.c: Likewise.
kono
parents:
diff changeset
3421
kono
parents:
diff changeset
3422 2001-01-25 Jakub Jelinek <jakub@redhat.com>
kono
parents:
diff changeset
3423
kono
parents:
diff changeset
3424 * mangle.c (write_mangled_name, write_encoding): Mangle overloaded
kono
parents:
diff changeset
3425 operators even in "C" linkage.
kono
parents:
diff changeset
3426 * method.c (set_mangled_name_for_decl): Likewise.
kono
parents:
diff changeset
3427 * decl.c (grokfndecl): Call set_mangled_name_for_decl even for
kono
parents:
diff changeset
3428 overloaded operators in "C" linkage.
kono
parents:
diff changeset
3429
kono
parents:
diff changeset
3430 2001-01-24 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3431
kono
parents:
diff changeset
3432 * pt.c (tsubst_decl): Remove IN_DECL parameter.
kono
parents:
diff changeset
3433 (tsubst_arg_types): Check parameter is not void.
kono
parents:
diff changeset
3434 (tsubst): Adjust tsubst_decl call.
kono
parents:
diff changeset
3435
kono
parents:
diff changeset
3436 2001-01-24 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3437
kono
parents:
diff changeset
3438 * call.c (add_builtin_candidate): Quote std properly, from
kono
parents:
diff changeset
3439 previous change.
kono
parents:
diff changeset
3440
kono
parents:
diff changeset
3441 2001-01-23 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
kono
parents:
diff changeset
3442
kono
parents:
diff changeset
3443 * pt.c (check_explicit_specialization): Clone constructors and
kono
parents:
diff changeset
3444 destructors.
kono
parents:
diff changeset
3445
kono
parents:
diff changeset
3446 2001-01-23 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3447
kono
parents:
diff changeset
3448 * decl.c (grokdeclarator): Don't presume DECL_LANG_SPECIFIC
kono
parents:
diff changeset
3449 indicates anything special about template depth. Make sure we
kono
parents:
diff changeset
3450 only count the user visible template classes.
kono
parents:
diff changeset
3451
kono
parents:
diff changeset
3452 2001-01-23 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3453
kono
parents:
diff changeset
3454 * call.c (build_conv): Typo in comment.
kono
parents:
diff changeset
3455 (add_builtin_candidate): Add more explanation.
kono
parents:
diff changeset
3456 Remove extra test for ENUMERAL_TYPE in {PRE,POST}INCREMENT_EXPR.
kono
parents:
diff changeset
3457 Allow ENUMERAL_TYPEs for relops and eqops. Add both candidates
kono
parents:
diff changeset
3458 when we have enumeral types.
kono
parents:
diff changeset
3459 (add_builtin_candidates): Add more explanation. Add ENUMERAL_TYPE
kono
parents:
diff changeset
3460 candidates for relops and eqops.
kono
parents:
diff changeset
3461 (joust): Simplify control flow. Allow a non-template user
kono
parents:
diff changeset
3462 function to hide a builtin.
kono
parents:
diff changeset
3463
kono
parents:
diff changeset
3464 2001-01-22 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3465
kono
parents:
diff changeset
3466 * cp-tree.h (unification_kind_t): Add DEDUCE_ORDER.
kono
parents:
diff changeset
3467 (more_specialized): Add deduction parameter.
kono
parents:
diff changeset
3468 * call.c (joust): Adjust more_specialized call.
kono
parents:
diff changeset
3469 * pt.c (UNIFY_ALLOW_OUTER_MORE_CV_QUAL,
kono
parents:
diff changeset
3470 UNIFY_ALLOW_OUTER_LESS_CV_QUAL): New unify flags.
kono
parents:
diff changeset
3471 (get_bindings_order): Remove.
kono
parents:
diff changeset
3472 (get_bindings_real): Add DEDUCE parameter.
kono
parents:
diff changeset
3473 (maybe_adjust_types_for_deduction): Return extra unify flags. Do
kono
parents:
diff changeset
3474 REFERENCE_TYPE jig for DEDUCE_ORDER.
kono
parents:
diff changeset
3475 (type_unification_real): Deal with DEDUCE_ORDER. Use result of
kono
parents:
diff changeset
3476 maybe_adjust_types_for_deduction.
kono
parents:
diff changeset
3477 (more_specialized): Add DEDUCE parameter. Call get_bindings_real
kono
parents:
diff changeset
3478 directly.
kono
parents:
diff changeset
3479 (try_one_overload): Use result of maybe_adjust_types_for_deduction.
kono
parents:
diff changeset
3480 (check_cv_quals_for_unify): Use new unify qualifier flags.
kono
parents:
diff changeset
3481 (unify): Clear new unify qualifier flags.
kono
parents:
diff changeset
3482 (get_bindings_real): Add DEDUCE parameter.
kono
parents:
diff changeset
3483 (get_bindings): Adjust call to get_bindings_real.
kono
parents:
diff changeset
3484 (get_bindings_overload): Likewise.
kono
parents:
diff changeset
3485 (most_specialized_instantiation): Adjust call to
kono
parents:
diff changeset
3486 more_specialized.
kono
parents:
diff changeset
3487
kono
parents:
diff changeset
3488 2001-01-19 Jason Merrill <jason@redhat.com>
kono
parents:
diff changeset
3489
kono
parents:
diff changeset
3490 * decl2.c (flag_vtable_thunks): Also depend on ENABLE_NEW_GXX_ABI.
kono
parents:
diff changeset
3491
kono
parents:
diff changeset
3492 * decl.c (init_decl_processing): Just force -fvtable-thunks on if
kono
parents:
diff changeset
3493 -fnew-abi.
kono
parents:
diff changeset
3494
kono
parents:
diff changeset
3495 2001-01-19 Ute Pelkmann <scope.muc@t-online.de>
kono
parents:
diff changeset
3496
kono
parents:
diff changeset
3497 * decl2.c (arg_assoc_class): Fix double iteration logic.
kono
parents:
diff changeset
3498
kono
parents:
diff changeset
3499 2001-01-19 Jason Merrill <jason@redhat.com>
kono
parents:
diff changeset
3500
kono
parents:
diff changeset
3501 * init.c (build_delete): Always call convert_force to strip cv-quals.
kono
parents:
diff changeset
3502
kono
parents:
diff changeset
3503 * decl2.c (flag_new_abi): Depend on ENABLE_NEW_GXX_ABI.
kono
parents:
diff changeset
3504 * lang-specs.h: Default ABI depends on ENABLE_NEW_GXX_ABI.
kono
parents:
diff changeset
3505 * g++spec.c: Don't look at ENABLE_NEW_GXX_ABI.
kono
parents:
diff changeset
3506
kono
parents:
diff changeset
3507 2001-01-19 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3508
kono
parents:
diff changeset
3509 * search.c (get_vbase_1): Count only virtual bases.
kono
parents:
diff changeset
3510
kono
parents:
diff changeset
3511 2001-01-19 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3512
kono
parents:
diff changeset
3513 * class.c (duplicate_tag_error): Robustify flag clearing.
kono
parents:
diff changeset
3514
kono
parents:
diff changeset
3515 2001-01-19 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3516
kono
parents:
diff changeset
3517 * cp-tree.h (lookup_template_class): Add complain parm.
kono
parents:
diff changeset
3518 * decl.c (lookup_namespace_name): Adjust call to
kono
parents:
diff changeset
3519 lookup_template_class.
kono
parents:
diff changeset
3520 (make_typename_type): Likewise.
kono
parents:
diff changeset
3521 * semantics.c (finish_template_type): Likewise.
kono
parents:
diff changeset
3522 * pt.c (lookup_template_class): Add complain parm. Adjust.
kono
parents:
diff changeset
3523 (tsubst_aggr_type): Pass COMPLAIN down to lookup_template_class.
kono
parents:
diff changeset
3524 (tsubst): Likewise.
kono
parents:
diff changeset
3525
kono
parents:
diff changeset
3526 2001-01-19 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3527
kono
parents:
diff changeset
3528 * pt.c (copy_default_args_to_explicit_spec): Preserve
kono
parents:
diff changeset
3529 object's CV quals. Reorganize.
kono
parents:
diff changeset
3530
kono
parents:
diff changeset
3531 2001-01-18 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3532
kono
parents:
diff changeset
3533 * typeck.c (build_modify_expr): Say `initialization' for
kono
parents:
diff changeset
3534 INIT_EXPRs.
kono
parents:
diff changeset
3535 * init.c (build_default_init): Convert to enumeral type, if
kono
parents:
diff changeset
3536 needed.
kono
parents:
diff changeset
3537
kono
parents:
diff changeset
3538 2001-01-18 Jakub Jelinek <jakub@redhat.com>
kono
parents:
diff changeset
3539
kono
parents:
diff changeset
3540 * parse.y (nomods_initdcl0): Properly set things up for
kono
parents:
diff changeset
3541 initdcl0_innards.
kono
parents:
diff changeset
3542
kono
parents:
diff changeset
3543 2001-01-18 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3544
kono
parents:
diff changeset
3545 * pt.c (UNIFY_ALLOW_OUTER_LEVEL): New unify flag.
kono
parents:
diff changeset
3546 (type_unification_real): Set it.
kono
parents:
diff changeset
3547 (unify): Use it.
kono
parents:
diff changeset
3548
kono
parents:
diff changeset
3549 2001-01-18 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3550
kono
parents:
diff changeset
3551 * decl.c (finish_destructor_body): Convert to vbase pointer here.
kono
parents:
diff changeset
3552
kono
parents:
diff changeset
3553 2001-01-18 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3554
kono
parents:
diff changeset
3555 * semantics.c (begin_class_definition): Check we're not inside a
kono
parents:
diff changeset
3556 template parm list.
kono
parents:
diff changeset
3557
kono
parents:
diff changeset
3558 2001-01-18 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3559
kono
parents:
diff changeset
3560 * tree.c (walk_tree, TREE_LIST): Don't walk the TREE_PURPOSE of
kono
parents:
diff changeset
3561 BASELINK_P.
kono
parents:
diff changeset
3562
kono
parents:
diff changeset
3563 2001-01-16 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
kono
parents:
diff changeset
3564
kono
parents:
diff changeset
3565 * typeck.c (build_function_call_real): Call fold on the CALL_EXPR.
kono
parents:
diff changeset
3566 * call.c (build_over_call): Add comment.
kono
parents:
diff changeset
3567
kono
parents:
diff changeset
3568 2001-01-16 Daniel Berlin <dberlin@redhat.com>
kono
parents:
diff changeset
3569
kono
parents:
diff changeset
3570 * cvt.c (ocp_convert): Handle vector type conversion
kono
parents:
diff changeset
3571 * typeck2.c (digest_init): Handle vector type initializations
kono
parents:
diff changeset
3572
kono
parents:
diff changeset
3573 2001-01-16 Phil Edwards <pme@sources.redhat.com>
kono
parents:
diff changeset
3574
kono
parents:
diff changeset
3575 * g++spec.c: Don't add libraries needlessly if -fsyntax-only
kono
parents:
diff changeset
3576 was given.
kono
parents:
diff changeset
3577
kono
parents:
diff changeset
3578 2001-01-15 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3579
kono
parents:
diff changeset
3580 * pt.c (check_nontype_parm): Rename to ...
kono
parents:
diff changeset
3581 (invalid_nontype_parm_type_p): ... here.
kono
parents:
diff changeset
3582 (process_template_parm): Adjust.
kono
parents:
diff changeset
3583 (convert_template_argument): Adjust.
kono
parents:
diff changeset
3584
kono
parents:
diff changeset
3585 2001-01-15 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3586
kono
parents:
diff changeset
3587 * pt.c (check_nontype_parm): New function.
kono
parents:
diff changeset
3588 (process_template_parm): Use it.
kono
parents:
diff changeset
3589 (convert_template_argument): Use it.
kono
parents:
diff changeset
3590 (convert_nontype_argument, RECORD_TYPE): Assert it's a ptr to
kono
parents:
diff changeset
3591 member.
kono
parents:
diff changeset
3592
kono
parents:
diff changeset
3593 2001-01-14 Jeffrey Oldham <oldham@codesourcery.com>
kono
parents:
diff changeset
3594
kono
parents:
diff changeset
3595 * tree.c: Add defaults.h
kono
parents:
diff changeset
3596 (cp_valid_lang_attribute): Incorporate SUPPORTS_INIT_PRIORITY.
kono
parents:
diff changeset
3597 * Make-lang.in (cp/tree.o): Add defaults.h.
kono
parents:
diff changeset
3598
kono
parents:
diff changeset
3599 2001-01-13 Joseph S. Myers <jsm28@cam.ac.uk>
kono
parents:
diff changeset
3600
kono
parents:
diff changeset
3601 * Make-lang.in (CXX_C_OBJS): Add c-format.o.
kono
parents:
diff changeset
3602
kono
parents:
diff changeset
3603 2001-01-13 Joseph S. Myers <jsm28@cam.ac.uk>
kono
parents:
diff changeset
3604
kono
parents:
diff changeset
3605 * g++.1: Change to be ".so man1/gcc.1".
kono
parents:
diff changeset
3606
kono
parents:
diff changeset
3607 2001-01-13 Joseph S. Myers <jsm28@cam.ac.uk>
kono
parents:
diff changeset
3608
kono
parents:
diff changeset
3609 * Make-lang.in (c++.info, c++.install-info): Build and install g++
kono
parents:
diff changeset
3610 internals info.
kono
parents:
diff changeset
3611 (c++.uninstall, c++.maintainer-clean): Remove g++ internals info.
kono
parents:
diff changeset
3612 ($(srcdir)/cp/g++int.info): New target.
kono
parents:
diff changeset
3613 * gxxint.texi: Add info directory entry. Use @@ in email address.
kono
parents:
diff changeset
3614 * .cvsignore: Update.
kono
parents:
diff changeset
3615
kono
parents:
diff changeset
3616 2001-01-12 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3617
kono
parents:
diff changeset
3618 * typeck.c (build_c_cast): Do template processing earlier.
kono
parents:
diff changeset
3619 Always pedwarn on array casts.
kono
parents:
diff changeset
3620
kono
parents:
diff changeset
3621 2001-01-12 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3622
kono
parents:
diff changeset
3623 * friend.c (make_friend_class): Make sure a templated class is
kono
parents:
diff changeset
3624 actually a template.
kono
parents:
diff changeset
3625
kono
parents:
diff changeset
3626 2001-01-11 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3627
kono
parents:
diff changeset
3628 * decl2.c (get_guard): Set linkage from guarded decl.
kono
parents:
diff changeset
3629
kono
parents:
diff changeset
3630 2001-01-11 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3631
kono
parents:
diff changeset
3632 * call.c (convert_default_arg): Check for unprocessed
kono
parents:
diff changeset
3633 DEFAULT_ARG.
kono
parents:
diff changeset
3634 * cp-tree.h (replace_defarg): Move to spew.c.
kono
parents:
diff changeset
3635 (maybe_snarf_defarg, add_defarg_fn, do_pending_defargs): Move to
kono
parents:
diff changeset
3636 spew.c, which is where they really are.
kono
parents:
diff changeset
3637 (done_pending_defargs): Declare.
kono
parents:
diff changeset
3638 (unprocessed_defarg_fn): Declare.
kono
parents:
diff changeset
3639 * decl.c (replace_defarg): Move to spew.c
kono
parents:
diff changeset
3640 * parse.y (structsp): Call done_pending_defargs.
kono
parents:
diff changeset
3641 * spew.c (defarg_fns): Rearrange list structure.
kono
parents:
diff changeset
3642 (defarg_fnsdone): New static variable.
kono
parents:
diff changeset
3643 (defarg_depfns): New static variable.
kono
parents:
diff changeset
3644 (init_spew): Adjust.
kono
parents:
diff changeset
3645 (add_defarg_fn): Store the type in TREE_TYPE.
kono
parents:
diff changeset
3646 (do_pending_defargs): Detect and deal with ordering constraints
kono
parents:
diff changeset
3647 and circularity.
kono
parents:
diff changeset
3648 (done_pending_defargs): New function.
kono
parents:
diff changeset
3649 (unprocessed_defarg_fn): New function.
kono
parents:
diff changeset
3650 (replace_defarg): Moved from decl.c. Robustify. Don't save
kono
parents:
diff changeset
3651 if circularity detected.
kono
parents:
diff changeset
3652
kono
parents:
diff changeset
3653 2001-01-11 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3654
kono
parents:
diff changeset
3655 * pt.c (unify): Check array has a domain, before checking
kono
parents:
diff changeset
3656 whether it is variable sized.
kono
parents:
diff changeset
3657
kono
parents:
diff changeset
3658 2001-01-11 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3659
kono
parents:
diff changeset
3660 * decl.c (grokparms): Unobfuscate and get correct diagnostic for
kono
parents:
diff changeset
3661 parameters with pointers to arrays of unknown bound.
kono
parents:
diff changeset
3662
kono
parents:
diff changeset
3663 2001-01-11 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3664
kono
parents:
diff changeset
3665 * parse.y (template_parm_header, template_spec_header): New
kono
parents:
diff changeset
3666 reductions. Split out from ...
kono
parents:
diff changeset
3667 (template_header): ... here. Use them.
kono
parents:
diff changeset
3668 (template_template_parm): Use template_parm_header.
kono
parents:
diff changeset
3669 * semantics.c (finish_template_template_parm): Add assert.
kono
parents:
diff changeset
3670
kono
parents:
diff changeset
3671 2001-01-10 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
3672
kono
parents:
diff changeset
3673 * mangle.c (write_builtin_type): Fix thinko.
kono
parents:
diff changeset
3674
kono
parents:
diff changeset
3675 * pt.c (copy_default_args_to_explicit_spec_1): New function.
kono
parents:
diff changeset
3676 (copy_default_args_to_explicit_spec): Likewise.
kono
parents:
diff changeset
3677 (check_explicit_specialization): Use it.
kono
parents:
diff changeset
3678
kono
parents:
diff changeset
3679 * class.c (finish_struct_1): Remove last argument in call to
kono
parents:
diff changeset
3680 make_decl_rtl; use make_function_rtl instead of make_decl_rtl.
kono
parents:
diff changeset
3681 * decl.c (builtin_function): Likewise.
kono
parents:
diff changeset
3682 (build_cp_library_fn): Likewise.
kono
parents:
diff changeset
3683 (check_initializer): Likewise.
kono
parents:
diff changeset
3684 (make_rtl_for_nonlocal_decl): Likewise.
kono
parents:
diff changeset
3685 (cp_finish_decl): Likewise.
kono
parents:
diff changeset
3686 (start_function): Likewise.
kono
parents:
diff changeset
3687 * decl2.c (finish_anon_union): Likewise.
kono
parents:
diff changeset
3688 * friend.c (do_friend): Likewise.
kono
parents:
diff changeset
3689 * init.c (build_java_class_ref): Likewise.
kono
parents:
diff changeset
3690 * method.c (make_thunk): Likewise.
kono
parents:
diff changeset
3691 * pt.c (tsubst_friend_function): Likewise.
kono
parents:
diff changeset
3692 * semantics.c (expand_body): Likewise.
kono
parents:
diff changeset
3693
kono
parents:
diff changeset
3694 2001-01-10 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
3695
kono
parents:
diff changeset
3696 * cp-tree.h (DECL_CLONED_FUNCTION_P): Avoid wild reads by not
kono
parents:
diff changeset
3697 looking at DECL_CLONED_FUNCTION for non-functions.
kono
parents:
diff changeset
3698
kono
parents:
diff changeset
3699 2001-01-10 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3700
kono
parents:
diff changeset
3701 * error.c (dump_template_parameter): Use parm to determine how
kono
parents:
diff changeset
3702 to print default value.
kono
parents:
diff changeset
3703
kono
parents:
diff changeset
3704 2001-01-10 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3705
kono
parents:
diff changeset
3706 * class.c (duplicate_tag_error): Clear more flags.
kono
parents:
diff changeset
3707
kono
parents:
diff changeset
3708 2001-01-10 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3709
kono
parents:
diff changeset
3710 * call.c (build_new_method_call): Use binfo_for_vbase.
kono
parents:
diff changeset
3711
kono
parents:
diff changeset
3712 2001-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
kono
parents:
diff changeset
3713
kono
parents:
diff changeset
3714 * cp-tree.h (flag_cond_mismatch): Don't declare.
kono
parents:
diff changeset
3715 * decl2.c (flag_cond_mismatch): Don't define.
kono
parents:
diff changeset
3716 (lang_f_options): Remove cond-mismatch.
kono
parents:
diff changeset
3717 (unsupported_options): Add cond-mismatch.
kono
parents:
diff changeset
3718
kono
parents:
diff changeset
3719 2001-01-09 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3720
kono
parents:
diff changeset
3721 * class.c (handle_using_decl): Reject using of constructor name
kono
parents:
diff changeset
3722 of sourcing class. Allow injecting of a method with same name as
kono
parents:
diff changeset
3723 nested class. Fixup error messages.
kono
parents:
diff changeset
3724
kono
parents:
diff changeset
3725 2001-01-09 Joseph S. Myers <jsm28@cam.ac.uk>
kono
parents:
diff changeset
3726
kono
parents:
diff changeset
3727 * decl2.c (lang_decode_option): Handle -Wformat=2.
kono
parents:
diff changeset
3728
kono
parents:
diff changeset
3729 2001-01-08 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3730
kono
parents:
diff changeset
3731 * cp-tree.h (lang_decl_flags): Rename defined_in_class to
kono
parents:
diff changeset
3732 initialized_in_class.
kono
parents:
diff changeset
3733 (DECL_DEFINED_IN_CLASS_P): Rename to ...
kono
parents:
diff changeset
3734 (DECL_INITIALIZED_IN_CLASS_P): ... here, to reflect true meaning.
kono
parents:
diff changeset
3735 * decl.c (duplicate_decls): Preseve DECL_INITIALIZED_IN_CLASS_P.
kono
parents:
diff changeset
3736 (cp_finish_decl): Adjust for DECL_INITIALIZED_IN_CLASS_P.
kono
parents:
diff changeset
3737 * pt.c (check_default_tmpl_args): Adjust for
kono
parents:
diff changeset
3738 DECL_INITIALIZED_IN_CLASS_P.
kono
parents:
diff changeset
3739 (instantiate_class_template): Likewise.
kono
parents:
diff changeset
3740 (instantiate_decl): Check DECL_INITIALIZED_IN_CLASS_P.
kono
parents:
diff changeset
3741
kono
parents:
diff changeset
3742 * class.c (finish_struct): Constify saved_filename.
kono
parents:
diff changeset
3743
kono
parents:
diff changeset
3744 2001-01-08 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3745
kono
parents:
diff changeset
3746 * class.c (duplicate_tag_error): Adjust diagnostic.
kono
parents:
diff changeset
3747 (finish_struct): Locally set location to start of struct.
kono
parents:
diff changeset
3748 * decl.c (fixup_anonymous_aggr): Use cp_error_at.
kono
parents:
diff changeset
3749
kono
parents:
diff changeset
3750 2001-01-08 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3751
kono
parents:
diff changeset
3752 * decl.c (struct binding_level): Adjust class_shadowed comments
kono
parents:
diff changeset
3753 to reflect reality.
kono
parents:
diff changeset
3754 (push_class_level_binding): Adjust comments to reflect reality.
kono
parents:
diff changeset
3755 Set IDENTIFIER_CLASS_VALUE when replacing an existing binding.
kono
parents:
diff changeset
3756 Don't set TREE_VALUE on the class_shadowed list.
kono
parents:
diff changeset
3757
kono
parents:
diff changeset
3758 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
kono
parents:
diff changeset
3759
kono
parents:
diff changeset
3760 * decl2.c (acceptable_java_type): Allow references too.
kono
parents:
diff changeset
3761 * init.c (build_java_class_ref): When using the new ABI, search
kono
parents:
diff changeset
3762 `class$' and have it mangled with `mangle_decl.'
kono
parents:
diff changeset
3763 * mangle.c (write_java_integer_type_codes): New function.
kono
parents:
diff changeset
3764 (write_builtin_type): Detect and mangle Java integer and real
kono
parents:
diff changeset
3765 types.
kono
parents:
diff changeset
3766
kono
parents:
diff changeset
3767 2001-01-07 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
3768
kono
parents:
diff changeset
3769 * decl2.c (grokfield): Don't accept `asm' specifiers for
kono
parents:
diff changeset
3770 non-static data members.
kono
parents:
diff changeset
3771
kono
parents:
diff changeset
3772 2001-01-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
kono
parents:
diff changeset
3773
kono
parents:
diff changeset
3774 * expr.c (cplus_expand_expr): Don't reset `target'.
kono
parents:
diff changeset
3775
kono
parents:
diff changeset
3776 2001-01-07 Neil Booth <neil@daikokuya.demon.co.uk>
kono
parents:
diff changeset
3777
kono
parents:
diff changeset
3778 * cp/decl2.c (cxx_post_options): Call cpp_post_options.
kono
parents:
diff changeset
3779
kono
parents:
diff changeset
3780 2001-01-05 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3781
kono
parents:
diff changeset
3782 * parse.y (template_datadef): Check for error_mark_node.
kono
parents:
diff changeset
3783
kono
parents:
diff changeset
3784 2001-01-05 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3785
kono
parents:
diff changeset
3786 * cp-tree.def (DEFAULT_ARG): Make `x' class.
kono
parents:
diff changeset
3787
kono
parents:
diff changeset
3788 2001-01-04 Joseph S. Myers <jsm28@cam.ac.uk>
kono
parents:
diff changeset
3789
kono
parents:
diff changeset
3790 * decl.c (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Don't define.
kono
parents:
diff changeset
3791 (record_builtin_type): Make non-static.
kono
parents:
diff changeset
3792 (flag_short_double): Don't declare.
kono
parents:
diff changeset
3793 (init_decl_processing): Remove the creation of many tree nodes now
kono
parents:
diff changeset
3794 in c_common_nodes_and_builtins.
kono
parents:
diff changeset
3795 (build_void_list_node): New function.
kono
parents:
diff changeset
3796 * decl2.c (flag_short_double, flag_short_wchar): Don't define.
kono
parents:
diff changeset
3797 * cp-tree.h (flag_short_wchar): Don't declare.
kono
parents:
diff changeset
3798
kono
parents:
diff changeset
3799 2001-01-04 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
3800
kono
parents:
diff changeset
3801 * call.c (build_conv): Don't use build1 for USER_CONV.
kono
parents:
diff changeset
3802 * pt.c (tsubst_copy): Or for PREINCREMENT_EXPR and similar nodes.
kono
parents:
diff changeset
3803
kono
parents:
diff changeset
3804 2001-01-03 Joseph S. Myers <jsm28@cam.ac.uk>
kono
parents:
diff changeset
3805
kono
parents:
diff changeset
3806 * lex.c (lang_init): Call c_common_lang_init.
kono
parents:
diff changeset
3807
kono
parents:
diff changeset
3808 2001-01-03 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3809
kono
parents:
diff changeset
3810 * search.c (lookup_fnfields_here): Remove.
kono
parents:
diff changeset
3811 (look_for_overrides_r): Use lookup_fnfields_1.
kono
parents:
diff changeset
3812 Ignore functions from using declarations.
kono
parents:
diff changeset
3813
kono
parents:
diff changeset
3814 2001-01-03 Nathan Sidwell <nathan@codesourcery.com>
kono
parents:
diff changeset
3815
kono
parents:
diff changeset
3816 Implement exceptions specifiers for implicit member functions.
kono
parents:
diff changeset
3817 * cp-tree.h (merge_exceptions_specifiers): Declare new function.
kono
parents:
diff changeset
3818 * method.c (synthesize_exception_spec): New function.
kono
parents:
diff changeset
3819 (locate_dtor, locate_ctor, locate_copy): New functions.
kono
parents:
diff changeset
3820 (implicitly_declare_fn): Generate the exception spec too.
kono
parents:
diff changeset
3821 * search.c (check_final_overrider): Check artificial functions
kono
parents:
diff changeset
3822 too.
kono
parents:
diff changeset
3823 * typeck2.c (merge_exception_specifiers): New function.
kono
parents:
diff changeset
3824
kono
parents:
diff changeset
3825 2001-01-03 Jason Merrill <jason@redhat.com>
kono
parents:
diff changeset
3826
kono
parents:
diff changeset
3827 * init.c (build_default_init): New fn.
kono
parents:
diff changeset
3828 (perform_member_init): Split out from here.
kono
parents:
diff changeset
3829 (build_new_1): Use it. Simplify initialization logic.
kono
parents:
diff changeset
3830 (build_vec_init): Take an array, rather than a pointer and maxindex.
kono
parents:
diff changeset
3831 Speed up simple initializations. Don't clean up if we're assigning.
kono
parents:
diff changeset
3832 * cp-tree.h: Adjust.
kono
parents:
diff changeset
3833 * decl2.c (do_static_initialization): Remove TREE_VEC case.
kono
parents:
diff changeset
3834 * parse.y (new_initializer): Return void_zero_node for ().
kono
parents:
diff changeset
3835 * typeck.c (build_modify_expr): Handle getting a CONSTRUCTOR.
kono
parents:
diff changeset
3836 * typeck2.c (digest_init): Only complain about user-written
kono
parents:
diff changeset
3837 CONSTRUCTORs.
kono
parents:
diff changeset
3838
kono
parents:
diff changeset
3839 2000-12-22 Mike Stump <mrs@wrs.com>
kono
parents:
diff changeset
3840
kono
parents:
diff changeset
3841 * decl2.c: (max_tinst_depth): Increase to 50.
kono
parents:
diff changeset
3842
kono
parents:
diff changeset
3843 2001-01-02 Mark Mitchell <mark@codesourcery.com>
kono
parents:
diff changeset
3844
kono
parents:
diff changeset
3845 * class.c (invalidate_class_lookup_cache): Zero the
kono
parents:
diff changeset
3846 previous_class_values.
kono
parents:
diff changeset
3847 * cp-tree.h (TMPL_PARMS_DEPTH): Use TREE_INT_CST_LOW, not
kono
parents:
diff changeset
3848 TREE_INT_CST_HIGH.
kono
parents:
diff changeset
3849 (CLASSTYPE_TEMPLATE_LEVEL): Likewise.
kono
parents:
diff changeset
3850 * decl.c (free_bindings): New variable.
kono
parents:
diff changeset
3851 (push_binding): Don't create a new binding if we have one on the
kono
parents:
diff changeset
3852 free list.
kono
parents:
diff changeset
3853 (pop_binding): Put old bindings on the free list.
kono
parents:
diff changeset
3854 (init_decl_processing): Use size_int, not build_int_2.
kono
parents:
diff changeset
3855 Register free_bindings as a GC root.
kono
parents:
diff changeset
3856 (cp_make_fname_decl): Use size_int, not build_int_2.
kono
parents:
diff changeset
3857 (push_inline_template_parms_recursive): Likewise.
kono
parents:
diff changeset
3858 (end_template_parm_list): Likewise.
kono
parents:
diff changeset
3859 (for_each_template_parm): Do not use walk_tree_without_duplicates.
kono
parents:
diff changeset
3860 (tsubst_template_parms): Use size_int, not build_int_2.
kono
parents:
diff changeset
3861 (tsubst): Likewise.
kono
parents:
diff changeset
3862 * rtti.c (get_vmi_pseudo_type_info): Likewise.
kono
parents:
diff changeset
3863
kono
parents:
diff changeset
3864 2001-01-02 Richard Henderson <rth@redhat.com>
kono
parents:
diff changeset
3865
kono
parents:
diff changeset
3866 * parse.y (asm): Set ASM_INPUT_P.
kono
parents:
diff changeset
3867
kono
parents:
diff changeset
3868 2001-01-02 Jason Merrill <jason@redhat.com>
kono
parents:
diff changeset
3869
kono
parents:
diff changeset
3870 * tree.c (cp_valid_lang_attribute): Don't set CLASSTYPE_COM_INTERFACE
kono
parents:
diff changeset
3871 for v3 ABI.
kono
parents:
diff changeset
3872
kono
parents:
diff changeset
3873 * typeck.c (cp_truthvalue_conversion): New fn.
kono
parents:
diff changeset
3874 * cvt.c (ocp_convert): Use it.
kono
parents:
diff changeset
3875
kono
parents:
diff changeset
3876 * cp-tree.h: Lose c-common.c decls.
kono
parents:
diff changeset
3877
kono
parents:
diff changeset
3878 * typeck.c (build_unary_op): Restore old &a.f diagnostic code.
kono
parents:
diff changeset
3879 * cvt.c (convert_to_void): Use type_unknown_p.
kono
parents:
diff changeset
3880
kono
parents:
diff changeset
3881 * typeck.c (strip_all_pointer_quals): Also strip quals from
kono
parents:
diff changeset
3882 pointer-to-member types.
kono
parents:
diff changeset
3883
kono
parents:
diff changeset
3884 * Make-lang.in (cp/TAGS): Use --no-globals. Ignore parse.c, and treat
kono
parents:
diff changeset
3885 parse.y as C.
kono
parents:
diff changeset
3886
kono
parents:
diff changeset
3887 * call.c (build_new_method_call): Do evaluate the object parameter
kono
parents:
diff changeset
3888 when accessing a static member.
kono
parents:
diff changeset
3889 * typeck.c (build_component_ref): Likewise.
kono
parents:
diff changeset
3890
kono
parents:
diff changeset
3891 2001-01-02 Andreas Jaeger <aj@suse.de>
kono
parents:
diff changeset
3892
kono
parents:
diff changeset
3893 * decl.c (cp_missing_noreturn_ok_p): New.
kono
parents:
diff changeset
3894 (init_decl_processing): Set lang_missing_noreturn_ok_p.
kono
parents:
diff changeset
3895
kono
parents:
diff changeset
3896
kono
parents:
diff changeset
3897 Copyright (C) 2001 Free Software Foundation, Inc.
kono
parents:
diff changeset
3898
kono
parents:
diff changeset
3899 Copying and distribution of this file, with or without modification,
kono
parents:
diff changeset
3900 are permitted in any medium without royalty provided the copyright
kono
parents:
diff changeset
3901 notice and this notice are preserved.