e274a861ca8877e12582c4d027f633b85441a964
[gcc.git] / gcc / objc / ChangeLog
1 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
2
3 * objc-act.c (encode_type): Do not add 'r' with the next runtime.
4 (encode_aggregate_within): Reorganized code to be more readable.
5 (encode_aggregate_fields): Updated second argument to be 'bool'
6 instead of 'int'.
7
8 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
9
10 PR objc/45763
11 PR objc/25450
12 PR objc/25464
13 * objc-act.c: Improved comments for encoding functions.
14 (encode_aggregate_within): For the GNU runtime, rewritten some
15 obsfuscated code to clarify the various cases.
16 (encode_aggregate): Function removed.
17 (encode_array): Generate an error if asked to encode an incomplete
18 array as part of generating instance variables. Else, when
19 encoding an incomplete array inside a structure, encode it as an
20 array of zero size.
21 (encode_pointer): For the GNU runtime, fixed encoding 'BOOL *' as
22 '^c' instead of '*'.
23 (encode_gnu_bitfield): Encode enumerated types exactly in the same
24 type as integer types instead of using a hardcoded 'i'. If asked
25 to encode a non-integer type as a bitfield, do not abort
26 compilation immediately; instead generate an error, then skip the
27 type.
28 (encode_type): Use a 'switch' instead of a sequence of 'if's.
29 Added a 'default' clause that gets executed if the type can not be
30 matched, and that encodes it as '?' (unknown) and produces a
31 warning. For the GNU runtime, encode enumerated types exactly in
32 the same way as integer types instead of using a hardcoded 'i'.
33 Encode long double as 'D'. Encode 128-bit integers as 'T' or 't'.
34 Encode C++ reference types as pointers. Call encode_vector to
35 encode vectors.
36 (encode_vector): New function.
37
38 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
39
40 Merge from 'apple/trunk' branch on FSF servers. I modified the
41 changes to be used only when compiling for the NeXT runtime.
42
43 2005-10-10 Fariborz Jahanian <fjahanian@apple.com>
44
45 Radar 4301047
46
47 * objc-act.c (encode_type): Remove the hack.
48
49 2005-07-20 Ziemowit Laski <zlaski@apple.com>
50
51 Radar 4136935
52 * objc-act.c (pointee_is_readonly): New function.
53 (encode_pointer, encode_aggregate_within, encode_type):
54 Attempt to emulate GCC 3.3 when generating type encodings.
55
56 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
57
58 Merge from 'apple/trunk' branch on FSF servers.
59
60 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
61
62 Radar 4229905
63 * objc-act.c (objc_have_common_types): New function.
64
65 2005-06-22 Ziemowit Laski <zlaski@apple.com>
66
67 Radar 4154928
68 * objc-act.c (objc_common_type): New function.
69
70 2010-09-27 Richard Guenther <rguenther@suse.de>
71
72 * objc-act.c (objc_get_class_reference): Use CP_TYPE_CONTEXT.
73 (objc_is_global_reference_p): Use DECL_FILE_SCOPE_P.
74
75 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
76
77 * objc-act.c: Removed historical, obsolete comment at the top of
78 the file.
79
80 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
81
82 PR objc/23710
83 * objc-act.c (objc_start_method_definition): Do not abort upon a
84 'method definition not in @implementation context' error. Return
85 'false' instead.
86
87 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
88
89 PR objc/25965
90 * objc-act.c (objc_get_interface_ivars): New function.
91 (objc_collecting_ivars): New variable.
92 (continue_class): Set and reset objc_collecting_ivars for context.
93
94 2010-09-15 Nicola Pero <nicola.pero@meta-innovation.com>
95
96 Merge from 'apple/trunk' branch on FSF servers.
97
98 2006-03-09 Fariborz Jahanian <fjahanian@apple.com>
99
100 Radar 4457381
101 * objc/objc-act.c (objc_finish_message_expr): Look for message in
102 @class's protocol list.
103
104 2006-02-07 Fariborz Jahanian <fjahanian@apple.com>
105
106 Radar 4219590
107 * objc/objc-act.c (objc_start_method_definition): Initialize
108 break/continue labels.
109
110 2005-08-22 Ziemowit Laski <zlaski@apple.com>
111
112 Radar 4174166
113 * objc-act.c (objc_compare_types): Compare function
114 pointers; indicate success if the right-hand side has
115 a return type that is covariant, and the argument types
116 contravariant, with those of the left side.
117
118 2005-08-22 Ziemowit Laski <zlaski@apple.com>
119
120 Radar 4216500
121 * objc-act.c (objc_get_protocol_qualified_type): When looking
122 at a typedef, retrieve the precise type it describes (rather
123 than merely looking up a class by name).
124
125 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
126
127 * objc/objc-act.c (objc_begin_try_stmt): Generate an error if
128 -fobjc-exceptions was not used. (objc_build_throw_stmt): Same
129 change.
130
131 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
132
133 * objc-act.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
134
135 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
136
137 PR objc/44140
138 * objc-act.c: build_objc_string_decl() remove declaration.
139 (finish_var_decl): Remove forcing of var output and marking
140 as "Used".
141 (init_def_list): Use integer_zero_node.
142 (init_objc_symtab): Use integer_zero_node, make the short
143 integer type specific on relevant nodes.
144 (generate_objc_symtab_decl): Remove call to
145 forward_declare_categories(). Use null_pointer_node where
146 appropriate.
147 (build_module_descriptor): Comment and mark this item as
148 DECL_PRESERVE_P.
149 (generate_static_references): Use gcc_unreachable instead of
150 abort ().
151 (diagnose_missing_method): New.
152 (build_next_selector_translation_table): New.
153 (build_gnu_selector_translation_table): New.
154 (add_objc_string): Merge code from build_objc_string_decl...
155 ... and delete build_objc_string_decl().
156 (generate_dispatch_table): Make integer types explicit.
157 (generate_category): Pass implent and arrange for the data
158 to be extracted within the routine. Do not start new vars,
159 but finish the ones collcted during parsing.
160 (generate_shared_structures): Likewise.
161 (finish_objc): Reorder code so that we finish variables before
162 referencing them. Save the global data before calling meta-data
163 creation routines, and pass the current reference to the two
164 main routines. Only call generate_objc_image_info () for the
165 NeXT runtime.
166 (generate_classref_translation_entry): Comment on and make this
167 item DECL_PRESERVE_P.
168 (handle_class_ref): Use varpool interfaces, comment on and make
169 this item DECL_PRESERVE_P.
170 (handle_impent): Likewise.
171 (generate_objc_image_info): Only generate when the content is
172 non-zero. Make integer types explict.
173
174 2010-07-03 Nathan Froyd <froydnj@codesourcery.com>
175
176 PR objc/24867
177 * objc-act.c (build_sized_array_type): New function.
178 (add_objc_string): Use it.
179 (generate_protocol_list): Likewise.
180 (generate_objc_image_info): Likewise.
181 (add_field_decl): New function.
182 (objc_build_struct): Use a VEC rather than building a TREE_LIST.
183 (generate_struct_by_value_array): Use add_field_decl.
184 (build_objc_symtab_template): Likewise.
185 (build_module_descriptor): Likewise.
186 (build_objc_exception_stuff): Likewise.
187 (build_protocol_template): Likewise.
188 (build_method_prototype_list_template): Likewise.
189 (build_method_prototype_template): Likewise.
190 (build_category_template): Likewise.
191 (build_selector_template): Likewise.
192 (build_class_template): Likewise.
193 (build_super_template): Likewise.
194 (build_ivar_template): Likewise.
195 (build_ivar_list_template): Likewise.
196 (build_method_list_template): Likewise.
197 (build_method_template): Likewise.
198
199 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
200
201 * objc-act.c: Do not include except.h.
202
203 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
204
205 * objc-act.h (ALLOC_OBJC_TYPE_LANG_SPECIFIC): Use typed GC
206 allocation.
207
208 * objc-act.c (objc_volatilize_decl): Likewise.
209 (objc_build_string_object): Likewise.
210 (hash_init): Likewise.
211 (hash_enter): Likewise.
212 (hash_add_attr): Likewise.
213 (add_class): Likewise.
214 (start_class): Likewise.
215
216 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
217
218 * objc-act.c: Update include path for moved files.
219 * objc-lang.c: Likewise.
220 * config-lang.in: Update paths in gtfiles for files in c-family/.
221
222 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
223
224 * objc-act.c (build_next_objc_exception_stuff): Give setjmp a
225 varargs type instead of a zero-argument type.
226
227 2010-05-30 Nathan Froyd <froydnj@codesourcery.com>
228
229 * objc-act.c (synth_module_prologue): Use build_function_type_list
230 instead of build_function_type.
231 (build_module_initializer_routine): Likewise.
232 (build_next_objc_exception_stuff): Likewise.
233 (build_objc_exception_stuff): Likewise.
234
235 2010-05-27 Joseph Myers <joseph@codesourcery.com>
236
237 * objc-act.c: Include diagnostic-core.h instead of diagnostic.h.
238 * Make-lang.in (objc/objc-act.o): Update dependencies.
239
240 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
241
242 * objc-act.h: Do not include gimple.h.
243 * objc-act.c: Do not include rtl.h, expr.h, libfuncs.h, and tm_p.h.
244 Include gimple.h. Explain why except.h has to be included.
245 * objc-lang.c: Do not include diagnostics.h.
246 * Make-lang.in: Update dependencies.
247
248 2010-05-25 Nathan Froyd <froydnj@codesourcery.com>
249
250 * objc-act.c (objc_build_constructor): Adjust OBJCPLUS impedance
251 mismatch code for VECs.
252
253 2010-05-25 Nathan Froyd <froydnj@codesourcery.com>
254
255 * objc-act.c (objc_build_constructor): Take a VEC instead of a tree.
256 Use build_constructor instead of build_constructor_from_list.
257 (objc_build_string_object): Build a VEC argument for
258 objc_build_constructor.
259 (init_def_list): Likewise.
260 (init_objc_symtab): Likewise.
261 (init_module_descriptor): Likewise.
262 (generate_static_references): Likewise.
263 (build_selector_translation_table): Likewise.
264 (build_descriptor_table_initializer): Likewise.
265 (generate_descriptor_table): Likewise.
266 (build_protocol_initializer): Likewise.
267 (build_ivar_list_initializer): Likewise.
268 (generate_ivars_list): Likewise.
269 (build_dispatch_table_initializer): Likewise.
270 (generate_dispatch_table): Likewise.
271 (generate_protocol_list): Likewise.
272 (build_category_initializer): Likewise.
273 (build_shared_structure_initializer): Likewise.
274 (generate_objc_image_info): Likewise.
275
276 2010-04-30 Iain Sandoe <iains@gcc.gnu.org>
277
278 PR objc++/32052
279 * objc-act.c (encode_aggregate_within): Encode structure tags
280 with template args for ObjC++.
281
282 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
283
284 * objc-act.c: Do not include varray.h.
285
286 2010-04-07 Jakub Jelinek <jakub@redhat.com>
287
288 PR c/18624
289 * objc-act.c (finish_var_decl, objc_begin_catch_clause,
290 really_start_method, get_super_receiver, handle_class_ref): Set
291 DECL_READ_P in addition to TREE_USED.
292
293 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
294
295 PR objc/35996
296 * objc-act.c (objc_init): Warn that -fobjc-gc is ignored for
297 -fgnu-runtime and set flag_objc_gc to zero.
298
299 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
300
301 PR objc++/23716
302 * objc-act.c (build_module_initializer_routine): Make the argument
303 to objc_start_function NULL_TREE when compiling ObjC++.
304
305 2010-02-18 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
306 Mike Stump <mikestump@comcast.net>
307
308 PR objc/43061
309 * objc-act.c (finish_var_decl): Set the generated symbols as "used".
310
311 2009-12-17 Shujing Zhao <pearly.zhao@oracle.com>
312
313 * objc-act.c (objc_substitute_decl, build_ivar_reference,
314 get_super_receiver): Update build_indirect_ref calls.
315
316 2009-11-28 Jakub Jelinek <jakub@redhat.com>
317
318 * objc-act.c (generate_shared_structures): Remove unused sc_spec and
319 decl_specs variables.
320 (objc_build_message_expr): Remove unused loc variable.
321 (objc_finish_message_expr): Remove unused saved_rtype variable.
322 (encode_field_decl): Remove unused type variable.
323
324 PR obj-c++/42156
325 * objc-act.c (objc_build_struct): INIT_TYPE_OBJC_INFO for
326 type variants that don't have it initialized yet.
327
328 2009-09-14 Jan Hubicka <jh@suse.cz>
329
330 * objc-act.c (objc_add_static_instance): Do not set DECL_COMMON.
331
332 2009-09-14 Richard Henderson <rth@redhat.com>
333
334 * objc-act.c (objc_init_exceptions): Don't call
335 default_init_unwind_resume_libfunc.
336 (objc_build_exc_ptr): Use __builtin_eh_pointer.
337
338 2009-09-13 Richard Guenther <rguenther@suse.de>
339 Rafael Avila de Espindola <espindola@google.com>
340
341 * objc-act.c (objc_eh_runtime_type): Export.
342 (objc_init_exceptions): Remove. Move warning code ...
343 (objc_begin_try_stmt): ... here
344 (objc_build_throw_stmt): ... and here.
345 (objc_eh_personality_decl): New.
346 (objc_eh_personality): New function.
347 * objc-act.h (objc_eh_runtime_type): Declare.
348 (objc_eh_personality): Likewise.
349 * objc-lang.c (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
350 (LANG_HOOKS_EH_PERSONALITY): Likewise.
351
352 2009-09-03 Diego Novillo <dnovillo@google.com>
353
354 * objc-lang.c (lang_hooks): Remove const qualifier.
355
356 2009-08-20 Richard Guenther <rguenther@suse.de>
357
358 * objc-act.c: Include c-lang.h
359 * Make-lang.in (objc/objc-act.o): Add c-lang.h dependency.
360
361 2009-07-17 Aldy Hernandez <aldyh@redhat.com>
362 Manuel López-Ibáñez <manu@gcc.gnu.org>
363
364 PR 40435
365 * objc-act.c: Add location argument to all calls to
366 build_fold_addr_expr.
367
368 2009-07-14 Taras Glek <tglek@mozilla.com>
369 Rafael Espindola <espindola@google.com>
370
371 * Make-lang.in (objc.install-plugin): New target for
372 installing plugin headers.
373
374 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
375
376 * objc-act.c (next_sjlj_build_catch_list): Replace EXPR_LOCUS by
377 EXPR_LOCATION.
378
379 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
380
381 * objc-act.c: Replace %J by an explicit location. Update all
382 calls.
383
384 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
385
386 * objc-act.c: Replace %H by an explicit location. Update all
387 calls.
388
389 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
390
391 PR objc/28050
392 * objc-act.c (objc_build_message_args): Return if ARGS is the
393 error_mark_node.
394
395 2009-06-19 Ian Lance Taylor <iant@google.com>
396
397 * objc-act.c (objc_in_struct, objc_struct_types): Remove.
398 (objc_struct_info): New static variable.
399 (objc_start_struct): Pass &objc_struct_info, not &objc_in_struct
400 and &objc_struct_types, to start_struct.
401 (objc_finish_struct): Likewise for finish_struct.
402
403 2009-06-15 Ian Lance Taylor <iant@google.com>
404
405 * objc-act.c (objc_start_function): Don't set
406 label_context_stack_se or label_context_stack_vm.
407
408 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
409
410 * objc-act.c (finish_var_decl): Pass location to finish_decl.
411 (objc_get_parm_info): Same.
412 (get_super_receiver): Same.
413 * objc-act.c (objc_build_component_ref): Pass location to
414 build_compound_ref.
415 (build_module_initializer_routine): Pass location to
416 c_end_compound_stmt.
417 (objc_generate_static_init_call): Pass location to build_stmt.
418 (build_typed_selector_reference): New location argument.
419 (build_selector_reference): Same.
420 (objc_substitute_decl): Pass location to build_array_ref.
421 (next_sjlj_build_try_catch_finally): Pass location to build_stmt.
422 (objc_begin_catch_clause): Same.
423 (objc_finish_try_stmt): Same.
424 (objc_finish_catch_clause): Pass location to c_end_compound_stmt.
425 (objc_build_throw_stmt): New argument.
426 (generate_shared_structures): Pass location to build_c_cast.
427 (objc_build_message_expr): Use local location.
428 (objc_finish_message_expr): Use input_location.
429 (build_objc_method_call): New argument.
430 (objc_build_selector_expr): Same.
431 (get_super_receiver): Pass location to build_c_cast,
432 build_modify_expr, build_compound_expr.
433 * objc-act.c: Add location to all calls to start_struct, build_decl,
434 finish_struct.
435
436 2009-06-09 Ian Lance Taylor <iant@google.com>
437
438 * objc-act.c (objc_gimplify_expr): Change return type to int.
439 * objc-act.h: Update declaration.
440
441 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
442
443 * objc-act.c (objc_init): Skip print_struct_values during
444 -fcompare-debug-second.
445
446 2009-06-03 Ian Lance Taylor <iant@google.com>
447
448 * Make-lang.in (cc1obj-checksum.o): Depend upon $(CONFIG_H) and
449 $(SYSTEM_H).
450
451 2009-05-27 Ian Lance Taylor <iant@google.com>
452
453 * Make-lang.in (cc1obj-dummy$(exeext)): Change $(COMPILER) to
454 $(LINKER).
455 (cc1obj$(exeext)): Likewise.
456
457 2009-05-26 Ian Lance Taylor <iant@google.com>
458
459 * Make-lang.in (cc1obj-dummy$(exeext)): Use $(COMPILER).
460 (cc1obj$(exeext)): Likewise.
461
462 2009-05-20 Ian Lance Taylor <iant@google.com>
463
464 * objc-act.c (objc_generate_cxx_ctor_or_dtor): Pass NULL rather
465 than NULL_TREE to build_special_member_call.
466
467 2009-05-10 Ian Lance Taylor <iant@google.com>
468
469 * objc-act.c (objc_building_struct): New static variable.
470 (objc_in_struct, objc_struct_types): New static variables.
471 (objc_start_struct, objc_finish_struct): New static functions.
472 (generate_struct_by_value_array): Call objc_start_struct instead
473 of start_struct, and call objc_finish_struct instead of
474 finish_struct.
475 (objc_build_struct, build_objc_symtab_template): Likewise.
476 (build_module_descriptor): Likewise.
477 (build_next_objc_exception_stuff): Likewise.
478 (build_protocol_template): Likewise.
479 (build_method_prototype_list_template): Likewise.
480 (build_method_prototype_template): Likewise.
481 (build_category_template, build_selector_template): Likewise.
482 (build_class_template, build_super_template): Likewise.
483 (build_ivar_template, build_ivar_list_template): Likewise.
484 (build_method_list_template): Likewise.
485 (build_method_template): Likewise.
486
487 2009-05-10 Joseph Myers <joseph@codesourcery.com>
488
489 * objc-act.c: Include intl.h.
490 (objc_lookup_protocol): Use complete sentences for diagnostics
491 with %qE for identifiers and translating results of
492 gen_type_name_0 to locale character set.
493 (objc_check_decl, check_protocol_recursively,
494 lookup_and_install_protocols, objc_build_string_object,
495 objc_get_class_reference, objc_declare_alias, objc_declare_class,
496 objc_get_class_ivars, error_with_ivar, check_duplicates,
497 objc_finish_message_expr, objc_build_protocol_expr,
498 objc_build_selector_expr, build_ivar_reference, objc_add_method,
499 add_category, add_instance_variable, objc_is_public,
500 check_methods, check_methods_accessible, check_protocol,
501 start_class, finish_class, start_protocol, really_start_method,
502 get_super_receiver, objc_lookup_ivar): Use %E and %qE for
503 identifiers in diagnostics. Translate generated text to locale
504 character set as needed.
505 (check_protocol, check_protocols): Change name parameter to type
506 tree.
507 (lang_report_error_function): Remove.
508
509 2009-04-27 Ian Lance Taylor <iant@google.com>
510
511 * objc-act.c (objc_gimplify_expr): Add casts to enum type.
512
513 2009-04-24 Ian Lance Taylor <iant@google.com>
514
515 * objc-act.c (get_super_receiver): Update calls to
516 build_modify_expr to pass new argument.
517
518 2009-04-21 Taras Glek <tglek@mozilla.com>
519
520 * objc-act.c: Update GTY annotations to new syntax
521 * objc-act.h: Likewise
522
523 2009-04-21 Joseph Myers <joseph@codesourcery.com>
524
525 * ChangeLog: Add copyright and license notices.
526
527 2009-04-20 Ian Lance Taylor <iant@google.com>
528
529 * objc-act.c (objc_rewrite_function_call): Change parameter from
530 params to first_param. Change all callers.
531
532 2009-03-30 Dominique d'Humieres <dominiq@lps.ens.fr>
533
534 PR bootstrap/39583
535 * objc-act.c (in_late_binary_op): Define for Objective-C++.
536
537 2009-03-29 Joseph Myers <joseph@codesourcery.com>
538
539 PR c/456
540 PR c/5675
541 PR c/19976
542 PR c/29116
543 PR c/31871
544 PR c/35198
545 * objc-act.c (objc_finish_try_stmt): Set in_late_binary_op.
546
547 2008-12-05 Sebastian Pop <sebastian.pop@amd.com>
548
549 PR bootstrap/38262
550 * Make-lang.in (cc1obj-dummy, cc1obj): Add BACKENDLIBS,
551 remove GMPLIBS.
552
553 2008-10-06 Aldy Hernandez <aldyh@redhat.com>
554
555 * objc-act.c (objc_build_string_object): Pass location to
556 build_unary_op.
557 (init_def_list): Same.
558 (init_objc_symtab): Same.
559 (init_module_descriptor): Same.
560 (build_module_initializer_routine): Same.
561 (generate_static_references): Same.
562 (build_typed_selector_reference): Same.
563 (add_objc_string): Same.
564 (objc_substitute_decl): Same.
565 (objc_build_ivar_assignment): Same.
566 (objc_build_global_assignment): Same.
567 (objc_build_strong_cast_assignment): Same.
568 (generate_protocols): Same.
569 (build_protocol_initializer): Same.
570 (build_dispatch_table_initializer): Same.
571 (generate_protocol_list): Same.
572 (build_category_initializer): Same.
573 (build_shared_structure_initializer): Same.
574 (generate_shared_structures): Same.
575 (objc_build_protocol_expr): Same.
576 (build_ivar_reference): Same.
577 (get_super_receiver): Same.
578
579 2008-09-23 Aldy Hernandez <aldyh@redhat.com>
580
581 * objc-act.c (next_sjlj_build_enter_and_setjmp): Call
582 c_common_truthvalue_conversion with location.
583 (next_sjlj_build_catch_list): Same.
584 (next_sjlj_build_try_catch_finally): Same.
585
586 2008-09-17 Andrew Pinski <andrew_pinski@playstation.sony.com>
587
588 PR objc/37460
589 * objc-lang.c (LANG_HOOKS_GET_CALLEE_FNDECL): Don't define.
590 * objc-act.h (objc_get_callee_fndecl): Remove prototype.
591 * objc-act.c (objc_get_callee_fndecl): Kill.
592
593 2008-09-17 Jan Hubicka <jh@suse.cz>
594
595 PR c++/18071
596 * objc/objc-act.c (objc_finish_method_definition): Do not set
597 DECL_INLINE.
598
599 2008-09-01 Aldy Hernandez <aldyh@redhat.com>
600
601 * objc-act.c (build_typed_selector_reference): Pass input_location to
602 build_unary_op calls.
603 (build_selector_reference): Same, but to build_array_ref.
604 (objc_substitute_decl): Same.
605 (build_ivar_reference): Same, but to build_indirect_ref.
606 (get_super_receiver): Same.
607
608 2008-07-28 Richard Guenther <rguenther@suse.de>
609
610 Merge from gimple-tuples-branch.
611
612 2008-07-18 Aldy Hernandez <aldyh@redhat.com>
613
614 * Make-lang.in (objc-lang.o): Depend on GIMPLE_H.
615 (objc-act.o): Rename TREE_GIMPLE_H to GIMPLE_H.
616 * objc-act.h: Include gimple.h instead of tree-gimple.h.
617 * ipa-reference.c: Same.
618
619 2007-11-10 Aldy Hernandez <aldyh@redhat.com>
620
621 * objc-act.c (objc_gimplify_expr): Change pre and post to sequences.
622 * objc-act.h (objc_gimplify_expr): Change prototype accordingly.
623
624 2008-07-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
625
626 * objc-act.c: Fix comment typos.
627
628 2008-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
629
630 * objc-act.c (objc_start_class_interface,
631 objc_start_category_interface, objc_start_class_implementation,
632 objc_start_category_implementation, objc_build_struct,
633 generate_static_references, build_private_template,
634 lookup_category, objc_add_method, add_category,
635 add_instance_variable, objc_is_public, conforms_to_protocol,
636 start_class, continue_class, finish_class): Avoid C++ keywords.
637
638 2008-07-14 Jason Merrill <jason@redhat.com>
639
640 PR objc++/36723
641 * objc-act.c (objc_build_constructor): Update C++ tweak.
642
643 2007-07-14 Rafael Ávila de Espíndola <espindola@google.com>
644
645 * objc-act.c (synth_module_prologue): Use TREE_NO_WARNING instead
646 of DECL_IN_SYSTEM_HEADER.
647
648 2008-07-11 Ian Lance Taylor <iant@google.com>
649
650 * objc-act.c (objc_is_reserved_word): Always check for RID_CLASS,
651 etc., not just when OBJCPLUS is defined.
652
653 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
654
655 * objc-act.c (setup_string_decl, objc_build_string_object,
656 hash_interface, eq_interface, objc_begin_try_stmt,
657 encode_method_prototype, build_ivar_list_initializer,
658 objc_build_encode_expr): Fix for -Wc++-compat.
659
660 2008-05-12 Tomas Bily <tbily@suse.cz>
661
662 * objc-act.c (objc_generate_write_barrier, objc_finish_message_expr):
663 Use CONVERT_EXPR_P.
664
665 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
666
667 * objc-act.c (objc_build_string_object): Don't set TREE_INVARIANT.
668
669 2008-04-03 Tom Tromey <tromey@redhat.com>
670
671 * Make-lang.in (objc_OBJS): New variable.
672
673 2008-03-27 Tom Tromey <tromey@redhat.com>
674
675 * Make-lang.in: Revert automatic dependency patch.
676
677 2008-03-27 Douglas Gregor <doug.gregor@gmail.com>
678
679 PR obj-c++/35704
680 * objc-act.c (objc_build_component_ref): Fix call to
681 finish_class_member_access_expr.
682 (objc_generate_cxx_ctor_or_dtor): Fix call to
683 build_special_member_call.
684
685 2008-03-25 Andrew Pinski <pinskia@gmail.com>
686
687 PR objc/29197
688 * objc-act.c (encode_type): Handle when type is error_mark_node.
689 (objc_push_parm): Handle when the type of parm is error_mark_node.
690
691 2008-03-25 Tom Tromey <tromey@redhat.com>
692
693 * Make-lang.in (objc_OBJS): New variable.
694 (cc1obj-checksum.o, objc/objc-lang.o, objc/objc-act.o): Remove.
695
696 2008-03-21 Andreas Tobler <a.tobler@schweiz.org>
697
698 PR bootstrap/35660
699 * objc-act.c (objc_generate_cxx_ctor_or_dtor): Rename IS_AGGR_TYPE to
700 MAYBE_CLASS_TYPE_P.
701 (objc_generate_cxx_cdtors): Likewise.
702 (add_instance_variable): Likewise.
703
704 2008-02-26 Tom Tromey <tromey@redhat.com>
705
706 * objc-act.c (objc_init): Remove old location code.
707
708 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
709
710 PR other/35107
711 * Make-lang.in (cc1obj-dummy, cc1obj): Add $(GMPLIBS).
712
713 2007-07-30 Nick Clifton <nickc@redhat.com>
714
715 * Make-lang.in: Change copyright header to refer to version 3 of
716 the GNU General Public License and to point readers at the
717 COPYING3 file and the FSF's license web page.
718 * lang-specs.h, objc-act.c, objc-tree.def, objc-act.h,
719 config-lang.in, objc-lang.c: Likewise.
720
721 2007-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
722
723 * objc-act.c (objc_get_callee_fndecl): Constify.
724 * objc-act.h (objc_get_callee_fndecl): Likewise.
725
726 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
727
728 * objc-act.c (volatilized_hash, volatilized_eq, string_hash,
729 string_eq): Constify.
730
731 2007-04-04 Stuart Hastings <stuart@apple.com>
732
733 PR 31281
734 * objc/objc-act.c (next_sjlj_build_catch_list): Delete volatile from rethrow decl.
735
736 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
737
738 * Make-lang.in: Add dummy lang.install-pdf target.
739
740 2007-02-18 Kazu Hirata <kazu@codesourcery.com>
741
742 * objc/objc-act.c: Fix comment typos.
743
744 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
745 Brooks Moses <brooks.moses@codesourcery.com>
746 Lee Millward <lee.millward@codesourcery.com>
747
748 * objc-act.c (receiver_is_class_object): Use new CALL_EXPR accessors.
749 (objc_get_callee_fndecl): Likewise.
750
751 2007-01-23 Andrew Pinski <pinskia@gmail.com>
752
753 PR objc/27438
754 * objc-act.c (objc_add_static_instance): Mark the decl as
755 TREE_USED.
756
757 2007-01-20 Andrew Pinski <pinskia@gmail.com>
758
759 PR objc/30479
760 * objc-act.c (hash_interface): Use IDENTIFIER_HASH_VALUE instead
761 of htab_hash_pointer.
762 (lookup_interface): Likewise.
763 (add_class): Likewise.
764
765 2007-01-02 Douglas Gregor <doug.gregor@gmail.com>
766
767 * objc-act.c (objc_build_volatilized_type): Keep track of
768 canonical types.
769 (objc_get_protocol_qualified_type): Ditto.
770
771 2006-11-02 Andreas Tobler <a.tobler@schweiz.org>
772
773 * objc-act.c (objc_finish_file): Remove ifdef clause for OBJCPLUS and
774 content where we called cp_finish_file.
775
776 2006-10-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
777
778 * objc-act.c (synth_module_prologue): Replace calls to
779 builtin_function with add_builtin_function.
780 (build_next_objc_exception_stuff): Replace calls to
781 builtin_function with add_builtin_function.
782 (build_objc_exception_stuff): Replace calls to
783 builtin_function with add_builtin_function.
784
785 2006-10-10 Brooks Moses <bmoses@stanford.edu>
786
787 * Make-lang.in: Added empty "objc.pdf" target.
788
789 2006-09-26 Andrew Pinski <pinskia@physics.uc.edu>
790
791 PR objc/29195
792 * objc-act.c (objc_push_parm): If we change the type of the
793 decl, relayout the decl.
794
795 2006-09-19 Eric Christopher <echristo@apple.com>
796
797 * objc-act.c (JBLEN): Rename to OBJC_JBLEN,
798 default to something innocuous.
799 (build_next_objc_exception_stuff): Rename JBLEN.
800
801 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
802
803 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
804
805 2006-07-19 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
806
807 PR obj-c++/28434
808 * objc-act.c (lookup_and_install_protocols): Skip error_mark_nodes.
809
810 2006-06-06 Mike Stump <mrs@apple.com>
811
812 * objc-act.c: Remove prototype for objc_build_volatilized_type.
813
814 2006-05-24 Mike Stump <mrs@apple.com>
815
816 * objc-act.c (build_next_objc_exception_stuff): Use JBLEN instead of _JBLEN.
817
818 2006-05-05 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
819
820 PR objc/27240
821 * objc-act.c (objc_is_public): Return early on invalid type.
822
823 2006-03-02 Fariborz Jahanian <fjahanian@apple.com>
824
825 * objc-act.c (init_module_descriptor): Remove file name from
826 module descriptor.
827 (gen_type_name_0): Fix ICE when issuing warning.
828
829 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
830 * Make-lang.in (OBJC): Remove
831 (OBJECTIVE-C): Remove
832 (objective-c): Remove
833 (.PHONY): Remove objective-c and ObjC
834
835 2005-12-14 Andrew Pinski <pinskia@physics.uc.edu>
836
837 PR objc/25360
838 * objc/objc-act.c (encode_type): Encode Complex types as 'j' followed
839 by the inner type.
840
841 2005-12-12 Andrew Pinski <pinskia@physics.uc.edu>
842
843 PR objc/25348
844 * objc-act.c (encode_array): Handle arrays to zero sized types.
845
846 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
847
848 * Make-lang.in (objc.all.build, objc.install-normal): Remove.
849
850 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
851
852 * Make-lang.in: Remove all dependencies on s-gtype.
853
854 2005-12-02 Richard Guenther <rguenther@suse.de>
855
856 * objc-act.c (objc_build_exc_ptr, next_sjlj_build_enter_and_setjmp
857 next_sjlj_build_exc_extract, next_sjlj_build_catch_list,
858 next_sjlj_build_try_catch_finally, objc_begin_catch_clause,
859 build_objc_method_call, objc_rewrite_function_call): Use buildN
860 instead of build.
861
862 2005-10-20 Geoffrey Keating <geoffk@apple.com>
863
864 * objc-act.c (synth_module_prologue): Clear TREE_NOTHROW
865 on objc_msgSend and like builtin functions.
866
867 2005-10-17 Andreas Krebbel <krebbel1@de.ibm.com>
868
869 * objc-act.c (objc_build_component_ref): Adjust call to
870 finish_class_member_access_expr due to a changed prototype.
871
872 2005-08-31 Andrew Pinski <pinskia@physics.uc.edu>
873
874 PR objc/23306
875 * objc-act.c (generate_strings): Remove and move code to
876 finish decl to ...
877 (add_objc_string): here when creating a new string decl.
878 (finish_objc): Don't call generate_strings.
879
880 2005-08-31 Andrew Pinski <pinskia@physics.uc.edu>
881
882 PR objc/23381
883 * objc-act.c (next_sjlj_build_try_catch_finally): Set
884 TREE_SIDE_EFFECTS on catch_seq after building it.
885
886 2005-08-09 Andrew Pinski <pinskia@physics.uc.edu>
887
888 part of PR objc/21992
889 * objc-act.c (handle_class_ref): The ref decl is always referenced.
890
891 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
892
893 Make CONSTRUCTOR use VEC to store initializers.
894 * objc-act.c (objc_build_constructor): Use build_constructor_from_list
895 instead of build_constructor.
896
897 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
898
899 * objc-act.c (objc_push_parm): DECL_ARG_TYPE_AS_WRITTEN is
900 removed.
901 * objc-act.h (KEYWORD_ARG_NAME): Use decl_non_common.
902 (KEYWORD_KEY_NAME): Use decl_minimal.
903 (METHOD_SEL_NAME): Ditto..
904 (METHOD_SEL_ARGS): Use decl_non_common.
905 (METHOD_ADD_ARGS): Ditto.
906 (METHOD_ADD_ARGS_ELLIPSIS_P): Use decl_common.
907 (METHOD_DEFINITION): Ditto.
908 (METHOD_ENCODING): Ditto.
909 * objc-lang.c: (objc_init_ts): New function.
910
911 2005-07-07 Ziemowit Laski <zlaski@apple.com>
912
913 * objc-act.c (objc_build_struct): Pass in an actual @interface
914 instead of its name, and annotate the struct created (and all
915 existing variants thereof) with the @interface.
916 (objc_compare_types): Treat forward-declared ObjC classes
917 as stand-alone (root) classes for purposes of type comparisons.
918 (build_private_template): Move some code to objc_build_struct().
919
920 2005-07-07 Ziemowit Laski <zlaski@apple.com>
921
922 PR objc/22274
923 * objc-act.c (objc_build_string_object): For GNU-style constants,
924 use the @interface type rather than the built-in type.
925
926 2005-07-03 Kazu Hirata <kazu@codesourcery.com>
927
928 * Make-lang.in (cc1plus-checksum.c): Use
929 build/genchecksum$(build_exeext), not build/genchecksum$(exeext).
930
931 2005-07-02 Joseph S. Myers <joseph@codesourcery.com>
932
933 * objc-act.c: Use %q to quote in diagnostics.
934
935 2005-07-02 Joseph S. Myers <joseph@codesourcery.com>
936
937 * objc-act.c: Use '+' flag instead of %J. Use 'q' flag for
938 quoting.
939
940 2005-06-30 Ziemowit Laski <zlaski@apple.com>
941
942 * objc-act.c (objc_build_volatilized_type): New function.
943 (objc_volatilize_decl): Call objc_build_volatilized_type()
944 instead of build_qualified_type().
945
946 2005-06-29 Ziemowit Laski <zlaski@apple.com>
947
948 * objc-act.c (objc_build_internal_const_str_type): New function.
949 (check_string_class_template): Use objc_get_class_ivars() instead
950 of TYPE_FIELDS() to retrieve ivar list.
951 (AT_LEAST_AS_LARGE_AS): Check the size of each field's type rather
952 than the field itself.
953 (objc_build_string_object): Synthesize a "__builtin_ObjCString"
954 type and use it to lay out compile-time string objects.
955 * objc-act.h (OCTI_INTERNAL_CNST_STR_TYPE, internal_const_str_type):
956 New.
957
958 2005-06-28 Paul Brook <paul@codesourcery.com>
959
960 * objc-act.c (objc_init_exceptions): Call
961 default_init_unwind_resume_libfunc.
962
963 2005-06-27 Ziemowit Laski <zlaski@apple.com>
964
965 * objc-act.c (objc_build_struct): Save the TYPE_OBJC_INFO
966 portion of TYPE_LANG_SPECIFIC info for all variants of
967 a class before calling finish_struct(), and restore
968 same TYPE_OBJC_INFO afterwards.
969
970 2005-06-25 Kelley Cook <kcook@gcc.gnu.org>
971
972 * all files: Update FSF address in copyright headers.
973
974 2005-06-15 Joseph S. Myers <joseph@codesourcery.com>
975
976 * objc-act.c (my_build_string_pointer): New.
977 (objc_get_class_reference, get_super_receiver): Call
978 my_build_string_pointer instead of my_build_string when building
979 function arguments.
980
981 2005-05-25 Mike Stump <mrs@mrs.kithrup.com>
982
983 * objc-act.c (volatilized_hash): Avoid warnings on 64-bit
984 machines.
985
986 2005-05-24 Ziemowit Laski <zlaski@apple.com>
987
988 * objc-act.c (objc_build_struct): New function.
989 (objc_derived_from_p): Likewise.
990 (objc_build_component_ref): Likewise.
991 (objc_copy_binfo): Likewise.
992 (objc_xref_basetypes): Likewise.
993 (objc_lookup_protocol): Likewise.
994 (objc_compare_protocols): Likewise.
995 (objc_volatilize_decl): Likewise.
996 (encode_aggregate_fields): Likewise.
997 (volatilized_hash): Likewise.
998 (volatilized_eq): Likewise.
999 (objc_compare_types): Likewise.
1000 (objc_type_quals_match): Likewise.
1001 (DERIVED_FROM_P): New ObjC macro, corresponding to C++ macro
1002 of same name.
1003 (get_class_ivars): Add second parameter indicating if entire
1004 hierarchy is desired.
1005 (struct volatilized_type): New type.
1006 (volatilized_htab): New hash table.
1007 (objc_types_compatible_p, objc_comptypes): Remove functions.
1008 (synth_module_prologue): Do not initialize 'unused_list'.
1009 (objc_get_class_reference): Fix ObjC++ impedance mismatches.
1010 (objc_declare_alias): Implement as a typedef.
1011 (objc_substitute_decl, objc_gimplify_expr): Reformat.
1012 (objc_get_class_ivars): Adjust call to get_class_ivars().
1013 (next_sjlj_build_enter_and_setjmp, synth_forward_declarations,
1014 build_ivar_reference, get_super_receiver): Call
1015 objc_build_component_ref() instead of build_component_ref().
1016 (objc_begin_catch_clause): Use DERIVED_FROM_P() instead of
1017 objc_comptypes().
1018 (build_private_template): Call objc_build_struct() instead of
1019 start_struct() and finish_struct().
1020 (hash_init): Initialize volatilized_htab.
1021 (objc_is_public): Adjust calls to objc_get_ivars(); adjust
1022 ObjC++ impedance mismatches.
1023 (encode_aggregate_within): Streamline by calling
1024 encode_aggregate_fields().
1025 * objc-act.h (objc_types_compatible_p): Remove prototype.
1026 (OCTI_UNUSED_LIST, unused_list): Remove slot.
1027 * objc-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove.
1028
1029 2005-05-18 Geoffrey Keating <geoffk@apple.com>
1030
1031 * Make-lang.in (cc1obj-dummy): New.
1032 (cc1obj-checksum.c): New.
1033 (cc1obj-checksum.o): New.
1034 (cc1obj): Add cc1obj-checksum.o.
1035
1036 2005-05-18 Mike Stump <mrs@apple.com>
1037
1038 PR objc/21641
1039 * objc-act.c (struct interface_tuple): Mark it up for GC.
1040 (interface_htab): It is really a struct interface_tuple.
1041
1042 2005-05-17 Ziemowit Laski <zlaski@apple.com>
1043 Mike Stump <mrs@apple.com>
1044
1045 Yet more Objective-C++...
1046
1047 * objc-act.c (objc_finish_try_stmt): Add return value.
1048 (objc_build_synchronized): Likewise.
1049
1050 * objc-act.c (objc_is_gcable_type): Add.
1051 (objc_substitute_decl): Add.
1052 (objc_build_ivar_assignment): Add.
1053 (objc_build_global_assignment): Add.
1054 (objc_build_strong_cast_assignment): Add.
1055 (objc_is_ivar_reference_p): Add.
1056 (objc_is_global_reference_p): Add.
1057 (objc_generate_write_barrier): Add.
1058 (objc_rewrite_function_call): Add.
1059 (objc_gimplify_expr): Add Objective-C++ support.
1060 * objc-act.h (ALLOC_OBJC_TYPE_LANG_SPECIFIC): Likewise.
1061 (SIZEOF_OBJC_TYPE_LANG_SPECIFIC): Add.
1062 (INIT_TYPE_OBJC_INFO): Add Objective-C++ support.
1063 (DUP_TYPE_OBJC_INFO): Likewise.
1064 (struct imp_entry): Add field has_cxx_cdtors.
1065 (struct imp_entry *imp_list): Add OCTI_UMSG_FAST_DECL,
1066 OCTI_METH_LIST_TEMPL, OCTI_METH_PROTO_LIST_TEMPL,
1067 OCTI_IVAR_LIST_TEMPL, OCTI_ASSIGN_IVAR_DECL,
1068 OCTI_ASSIGN_IVAR_FAST_DECL, OCTI_ASSIGN_GLOBAL_DECL,
1069 OCTI_ASSIGN_STRONGCAST_DECL.
1070 (umsg_fast_decl): Add.
1071 (objc_assign_ivar_decl): Add.
1072 (objc_assign_ivar_fast_decl): Add.
1073 (objc_assign_global_decl): Add.
1074 (objc_assign_strong_cast_decl): Add.
1075 (objc_method_list_ptr): Add.
1076 (objc_method_proto_list_ptr): Add.
1077 (objc_ivar_list_ptr): Add.
1078
1079 * objc-act.c (should_call_super_dealloc): Add.
1080 (OBJC_VERSION): Bump to 6.
1081 (objc_is_gcable_type): Add.
1082 (objc_substitute_decl): Add.
1083 (objc_build_ivar_assignment): Add.
1084 (objc_build_global_assignment): Add.
1085 (objc_build_strong_cast_assignment): Add.
1086 (objc_is_gcable_p): Add.
1087 (objc_is_ivar_reference_p): Add.
1088 (objc_is_global_reference_p): Add.
1089 (generate_shared_structures): Add flags parameter.
1090 (objc_generate_cxx_ctor_or_dtor): Add.
1091 (objc_generate_cxx_cdtors): Add.
1092 (add_class): Add name parameter.
1093 (objc_types_share_size_and_alignment): Add.
1094 (comp_proto_with_proto): Add strict parameter.
1095 (CLS_HAS_CXX_STRUCTORS): Add.
1096 (TAG_ASSIGNIVAR): Add.
1097 (TAG_ASSIGNGLOBAL): Add.
1098 (TAG_ASSIGNSTRONGCAST): Add.
1099 (TAG_MSGSEND_FAST): Add.
1100 (TAG_ASSIGNIVAR_FAST): Add.
1101 (TAG_CXX_CONSTRUCT): Add.
1102 (TAG_CXX_DESTRUCT): Add.
1103 (OBJC_LOOKUP_CLASS): Add.
1104 (OBJC_LOOKUP_NO_SUPER): Add.
1105 (objc_finish_file): Add pch support.
1106 (objc_finish_implementation): Add Objective-C++ support.
1107 (synth_module_prologue): Likewise.
1108 (synth_module_prologue): Add fast dispatching.
1109 (objc_get_class_reference): Add Objective-C++ support.
1110 (objc_generate_write_barrier): Likewise.
1111 (next_sjlj_build_enter_and_setjmp): Likewise.
1112 (objc_begin_try_stmt): Likewise.
1113 (build_next_objc_exception_stuff): Add fast ivar support.
1114 (build_private_template): Mark the record as used so debug
1115 information is generated.
1116 (build_protocol_template): Add Objective-C++ support.
1117 (objc_method_parm_type) Likewise.
1118 (objc_generate_cxx_ctor_or_dtor): Likewise.
1119 (objc_generate_cxx_cdtors): Likewise.
1120 (build_protocol_initializer): Likewise.
1121 (build_category_template): Likewise.
1122 (build_class_template): Likewise.
1123 (build_method_list_template): Likewise.
1124 (build_category_initializer): Likewise.
1125 (build_shared_structure_initializer): Likewise.
1126 (objc_finish_message_expr): Likewise.
1127 (build_objc_method_call): Add fast dispatch support.
1128 (lookup_method_static): Add support to end search at superclasses.
1129 (add_method_to_hash_list): Add strict parameter to
1130 comp_proto_with_proto.
1131 (objc_add_method): Likewise.
1132 (objc_add_method): Also set the interface_value.
1133 (add_instance_variable): Add Objective-C++ support.
1134 (objc_is_public): Likewise.
1135 (start_class): Likewise.
1136 (continue_class): Likewise.
1137 (encode_aggregate_within): Likewise.
1138 (start_method_def): Likewise.
1139 (objc_start_function): Clear current_function_returns_value
1140 and current_function_returns_null.
1141 (really_start_method): Add Objective-C++ support.
1142 (objc_finish_method_definition): Add warning for missing
1143 [super dealloc].
1144 (finish_objc): Add Objective-C++ support.
1145 (generate_objc_image_info): Likewise.
1146 (objc_lookup_ivar): Likewise.
1147 * objc-act.h (TYPE_HAS_OBJC_INFO): Likewise.
1148 (INIT_TYPE_OBJC_INFO): Likewise.
1149 (DUP_TYPE_OBJC_INFO): Likewise.
1150
1151 2005-04-23 DJ Delorie <dj@redhat.com>
1152
1153 * objc-act.c: Adjust warning() callers.
1154
1155 2005-04-21 Roger Sayle <roger@eyesopen.com>
1156
1157 * objc-act.h (METHOD_ADD_ARGS_ELLIPSIS_P): New macro for accessing
1158 this field of an objc method decl.
1159 * objc-act.c (build_method_decl): Take an additional "ellipsis"
1160 argument, and set METHOD_ADD_ARGS_ELLIPSIS_P as appropriate.
1161 (objc_build_method_signature): Accept additional "ellipsis"
1162 argument and pass it to build_method_decl.
1163 (get_arg_type_list, start_method_def, gen_method_decl): Use
1164 the new METHOD_ADD_ARGS_ELLIPSIS_P instead of examining the
1165 TREE_OVERFLOW field of a TREE_LIST node.
1166
1167 2005-04-20 Joseph S. Myers <joseph@codesourcery.com>
1168
1169 PR c/12913
1170 * objc-act.c (objc_start_function): Create stack level for context
1171 of identifiers with variably modified type.
1172
1173 2005-03-30 Joseph S. Myers <joseph@codesourcery.com>
1174
1175 PR c/772
1176 PR c/17913
1177 * objc-act.c (objc_start_function): Push context on
1178 label_context_stack.
1179
1180 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
1181
1182 * objc-act.c (next_sjlj_build_enter_and_setjmp,
1183 next_sjlj_build_catch_list, next_sjlj_build_try_catch_finally):
1184 Call c_common_truthvalue_conversion.
1185
1186 2005-02-25 Joseph S. Myers <joseph@codesourcery.com>
1187
1188 * Make-lang.in (objc/objc-parse.o-warn, objc/objc-parse.o,
1189 objc/objc-parse.c, objc/objc-parse.y): Remove
1190 (OBJC_OBJS, objc.srcextra, objc.tags, objc.mostlyclean,
1191 objc.distclean, objc.maintainer-clean): Update for new parser.
1192 * config-lang.in (gtfiles): Update for new parser.
1193
1194 2005-01-29 Kazu Hirata <kazu@cs.umass.edu>
1195
1196 * lang-specs.h, objc-act.c, objc-act.h, objc-lang.c: Update
1197 copyright.
1198
1199 2005-01-27 Matt Austern <austern@apple.com>
1200
1201 * objc-act.c (objc_finish_file): In ObjC++ mode, set at_eof before
1202 calling instantiate_pending_templates.
1203
1204 2005-01-26 Alexander Malmberg <alexander@malmberg.org>
1205
1206 PR objc/18862
1207 * objc-act.c (build_selector_translation_table): Use
1208 input_location in the diagnostic for the GNU runtime or if
1209 TREE_PURPOSE (chain) is NULL.
1210
1211 2005-01-25 Alexander Malmberg <alexander@malmberg.org>
1212
1213 PR objc/18408
1214 * objc-act.c (objc_types_compatible_p): New function.
1215 * objc-act.h (objc_types_compatible_p): Declare.
1216 * objc-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Define.
1217
1218 2005-01-16 Ziemowit Laski <zlaski@apple.com>
1219
1220 * objc-act.c (objc_push_parm): Call c_type_promotes_to()
1221 via a lang-hook.
1222
1223 2005-01-15 Ziemowit Laski <zlaski@apple.com>
1224
1225 PR objc/19321
1226 * objc-act.c (get_arg_type_list): Decay function arguments into
1227 pointers.
1228 (objc_push_parm): Likewise; bring PARM_DECL construction closer
1229 in line with what the C front-end does.
1230 (objc_get_parm_info): Call pushdecl() and finish_decl() on
1231 each PARM_DECL, like the C front-end does.
1232 (start_method_def): Remove redundant ARRAY_TYPE decay.
1233 (objc_start_function): Bring closer in line with what the
1234 C front-end does for functions.
1235
1236 2005-01-14 Mike Stump <mrs@apple.com>
1237
1238 * lang-specs.h ("@objective-c"): Use cc1obj when -E is used so
1239 that -fobjc-exceptions is accepted.
1240
1241 2004-12-30 Ziemowit Laski <zlaski@apple.com>
1242
1243 PR objc/18971
1244 * objc-act.c (get_arg_type_list, start_method_def): Decay
1245 array arguments into pointers.
1246 (gen_type_name_0): Learn to pretty-print array types.
1247
1248 2004-12-15 Ziemowit Laski <zlaski@apple.com>
1249
1250 * objc-act.c (build_private_template): Change to return 'void'; do
1251 not set ivar_context, uprivate_record or objc_instance_type.
1252 (objc_comptypes, gen_type_name_0): For types 'id' and 'Class',
1253 retrieve protocol list from the pointee rather than the pointer itself;
1254 check TYPE_HAS_OBJC_INFO(...) precondition before accessing
1255 TYPE_OBJC_PROTOCOL_LIST.
1256 (objc_get_protocol_qualified_type): For types 'id' and 'Class',
1257 construct a variant of the pointee as well as the pointer, and
1258 store protocol information in the former. When creating variants
1259 of RECORD_TYPEs, clone their TYPE_LANG_SPECIFIC fields and propagate
1260 TYPE_OBJC_INTERFACE information.
1261 (objc_declare_class): If a TYPE_DECL is looked up, retrieve the
1262 underlying RECORD_TYPE to check for presence of TYPE_OBJC_INTERFACE;
1263 for newly-created RECORD_TYPEs, create a tentative TYPE_OBJC_INTERFACE
1264 holding an IDENTIFIER_NODE.
1265 (objc_finish_message_expr): Check TYPE_HAS_OBJC_INFO(...) before
1266 accessing TYPE_OBJC_PROTOCOL_LIST; Use TYPE_OBJC_INTERFACE instead
1267 of calling lookup_interface(); allow for TYPE_OBJC_INTERFACE holding
1268 an IDENTIFIER_NODE (meaning a @class forward-declaration only).
1269 (objc_is_public): Check TYPE_OBJC_INTERFACE instead of calling
1270 lookup_interface().
1271 (continue_class): For @implementations, set ivar_context,
1272 uprivate_record and objc_instance_type, for @interfaces, call
1273 build_private_template().
1274 (encode_pointer): Check TYPE_HAS_OBJC_INFO(...) before accessing
1275 TYPE_OBJC_INTERFACE.
1276 (objc_types_are_equivalent): Check TYPE_HAS_OBJC_INFO(...) before
1277 accessing TYPE_OBJC_PROTOCOL_LIST.
1278 * objc-act.h (OBJC_INFO_SLOT_ELTS, TYPE_OBJC_INFO, INIT_TYPE_OBJC_INFO,
1279 DUP_TYPE_OBJC_INFO, ALLOC_OBJC_TYPE_LANG_SPECIFIC,
1280 SIZEOF_OBJC_TYPE_LANG_SPECIFIC): New macros.
1281 (TYPE_OBJC_INTERFACE): Replaces TREE_STATIC_INSTANCE and now points
1282 to an actual @interface; stored in TYPE_LANG_SPECIFIC(...).
1283 (TYPE_OBJC_PROTOCOL_LIST): Replaces TYPE_PROTOCOL_LIST; stored in
1284 TYPE_LANG_SPECIFIC(...).
1285 (TREE_STATIC_INSTANCE, TYPE_PROTOCOL_LIST): Delete.
1286 (IS_ID, IS_CLASS, IS_PROTOCOL_QUALIFIED_UNTYPED, IS_SUPER,
1287 TYPED_OBJECT): Check for POINTER_TYPE rather than POINTER_TYPE_P;
1288 adjust for use of TYPE_OBJC_INTERFACE and TYPE_OBJC_PROTOCOL_LIST
1289 instead of TREE_STATIC_INSTANCE and TYPE_PROTOCOL_LIST.
1290
1291 2004-11-29 Joseph Myers <joseph@codesourcery.com>
1292
1293 PR c/7544
1294 * Make-lang.in (objc/objc-act.o): Update dependencies.
1295 * objc-act.c (objc_finish_file): Call
1296 maybe_apply_pending_pragma_weaks if not OBJCPLUS.
1297
1298 2004-11-09 Andrew Pinski <pinskia@physics.uc.edu>
1299
1300 PR objc/18406
1301 * obj-act.c (encode_type): 96bits doubles are encoded the
1302 same way as 64bit and 128bit doubles are.
1303
1304 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
1305
1306 * objc-act.c: Use %q, %< and %> for quoting in diagnostics.
1307
1308 2004-11-08 Andrew Pinski <pinskia@physics.uc.edu>
1309
1310 PR objc/16546
1311 * objc-act.c (generate_method_descriptors): Remove setting
1312 the new decls' type to variable_length_type.
1313 (generate_ivar_lists): Likewise.
1314 (generate_dispatch_tables): Likewise.
1315
1316 2004-10-30 Ziemowit Laski <zlaski@apple.com>
1317
1318 * objc-act.c (objc_lookup_ivar): The new OTHER parameter
1319 contains the result of the ID lookup by the C or C++
1320 front-end; in class methods, use OTHER if it exists;
1321 in instance methods, use OTHER only if it is locally
1322 declared.
1323
1324 2004-10-26 Ziemowit Laski <zlaski@apple.com>
1325
1326 * objc-act.c (finish_class): Do not synthesize bogus
1327 'extern objc_object *_Foo;' declarations for @interface Foo.
1328
1329 2004-10-25 Ziemowit Laski <zlaski@apple.com>
1330 David Ayers <d.ayers@inode.at>
1331
1332 * objc-act.c (objc_comptypes): Use IS_PROTOCOL_QUALIFIED_UNTYPED
1333 instead of IS_PROTOCOL_QUALIFIED_ID; add comparisons for:
1334 'Class <Protocol> != id <Protocol>'; 'Class <Protocol> != <class> *';
1335 'Class <Protocol> == id' and 'Class <Protocol> == Class'.
1336 (objc_is_id): Add test for 'super'.
1337 (objc_finish_message_expr): Allow for messaging of 'Class <Proto>'
1338 receivers; if class methods are not found in protocol lists, search
1339 for instance methods therein and warn if one is found. Look in
1340 global hash tables for suitable method as a last resort when messaging
1341 'id <Proto>', 'Class <Proto>' and invalid receiver types.
1342 (objc_add_method): Insert instance methods listed in protocols into
1343 the global class method hash table.
1344 * objc-act.h (IS_PROTOCOL_QUALIFIED_ID): Rename to
1345 IS_PROTOCOL_QUALIFIED_UNTYPED and allow for 'Class <Proto>' in
1346 addition to 'id <Proto>'.
1347
1348 2004-10-21 Andrew Pinski <pinskia@physics.uc.edu>
1349
1350 PR objc/17923
1351 * objc-act.c (objc_build_string_object): Create a CONST_DECL
1352 for the NeXT runtime case.
1353
1354 2004-10-02 Kazu Hirata <kazu@cs.umass.edu>
1355
1356 * objc-act.c: Fix comment typos.
1357
1358 2004-09-24 Ziemowit Laski <zlaski@apple.com>
1359
1360 * objc-act.c (init_objc_symtab, init_module_descriptor,
1361 build_shared_structure_initializer): When initializing 'long'
1362 fields, ensure that the initializer value is also 'long'.
1363
1364 2004-09-24 Zack Weinberg <zack@codesourcery.com>
1365
1366 * objc-act.c: Change annotate_with_locus to SET_EXPR_LOCATION
1367 throughout.
1368 (objc_init): Only set input_line to 0 #ifndef USE_MAPPED_LOCATION.
1369 (build_selector_translation_table): Use %J in diagnostic
1370 instead of diddling input_line. Fix spelling.
1371
1372 2004-09-21 Ziemowit Laski <zlaski@apple.com>
1373
1374 * objc-act.c (objc_fold_objc_type_ref): New function.
1375 * objc-act.h (objc_fold_objc_type_ref): New prototype.
1376
1377 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
1378
1379 * objc-act.c (objc_start_function, really_start_method,
1380 objc_get_parm_info, start_method_def): Update to new arg_info
1381 structures.
1382
1383 2004-09-07 Ziemowit Laski <zlaski@apple.com>
1384
1385 * Make-lang.in (objc/objc-parse.o): Depend on $(C_COMMON_H) instead of
1386 objc/objc-act.h.
1387 (objc/objc-act.o): Depend on $(HASHTAB_H).
1388 * objc-act.c: Include hashtab.h; in ObjC++ mode, include cp-tree.h and
1389 objcp-decl.h instead of c-tree.h.
1390 (build_module_descriptor, get_class_ivars, synth_id_with_class_suffix,
1391 error_with_ivar, gen_method_decl, gen_declaration, setup_string_decl,
1392 build_protocol_template): Adjust prototypes.
1393 (build_module_initializer_routine, start_class, continue_class,
1394 finish_class, start_method_def, objc_start_function, start_protocol,
1395 build_method_decl, objc_add_method, add_instance_variable,
1396 build_ivar_reference, is_ivar, is_private, get_super_receiver,
1397 build_selector_table_decl, objc_push_parm, objc_get_parm_info,
1398 gen_type_name, gen_type_name_0, start_var_decl, finish_var_decl,
1399 create_field_decl): New prototypes.
1400 (objc_expand_function_end, comp_method_with_proto, objc_expr_last,
1401 gen_declaration_1, gen_declarator, is_complex_decl, adorn_decl,
1402 define_decl, create_builtin_decl, gen_declspecs): Remove prototypes.
1403 (TYPE_ID): Rename to OBJECT_TYPEDEF_NAME.
1404 (CLASS_TYPEDEF_NAME): New.
1405 (TAG_EXECCLASS): Change from a global variable to a #define.
1406 (TAG_RETURN_STRUCT): Delete.
1407 (TAG_GNUINIT): New, holds '__objc_gnu_init' name.
1408 (objc_inherit_code, objc_public_flag): New, moved from c-parse.in.
1409 (string_descriptor): New struct.
1410 (string_htab): New hash table.
1411 (string_hash, string_eq): New prototypes.
1412 (generate_struct_by_value_array): Call create_field_decl() instead of
1413 create_builtin_decl().
1414 (objc_init): Do not initialize objc_ellipsis_node or TAG_EXECCLASS;
1415 In ObjC++ mode, call cxx_init() instead of c_objc_common_init().
1416 (objc_finish_file): In ObjC++, call instantiate_pending_templates()
1417 and cp_finish_file().
1418 (define_decl, get_static_reference, get_protocol_reference,
1419 create_builtin_decl): Remove functions.
1420 (objc_start_class_interface, objc_start_category_interface,
1421 objc_start_protocol, objc_continue_interface, objc_finish_interface,
1422 objc_start_class_implementation, objc_start_category_implementation,
1423 objc_continue_implementation, objc_finish_implementation,
1424 objc_set_visibility, objc_set_method_type,
1425 objc_build_method_signature, objc_add_method_declaration,
1426 objc_start_method_definition, objc_add_instance_variable,
1427 objc_get_protocol_qualified_type, create_field_decl,
1428 start_var_decl, finish_var_decl): New functions.
1429 (setup_string_decl): Simplify since it is only called once.
1430 (synth_module_prologue): Call build_class_template(); predefine 'id'
1431 and 'Class' as typedefs; rename 'temp_type' to 'type'; disable debug
1432 hooks for duration of function; fix GNU runtime messenger signatures
1433 to correspond to reality; forward-declare '__objc_exec_class' for the
1434 GNU runtime; call build_selector_table_decl(); in ObjC++ mode, generate
1435 'extern "C" { ... }' wrappers around synthesized declarations; call
1436 build_protocol_template() and build_category_template().
1437 (string_hash, string_eq): New functions.
1438 (objc_build_string_object): Check metaclass correctness only once;
1439 store string literals in hash table.
1440 (objc_build_constructor): Do not convert initializer elements;
1441 adjust for ObjC++ impedance mismatch.
1442 (build_objc_symtab_template): Call create_field_decl() instead of
1443 create_builtin_decl().
1444 (init_objc_symtab): Add missing conversion to initializer element.
1445 (build_metadata_decl): Call start_var_decl() instead of define_decl().
1446 (generate_objc_symtab_decl): Do not call build_category_template();
1447 call start_var_decl() and finish_var_decl() instead of start_decl()
1448 and finish_decl().
1449 (build_module_descriptor): Call create_field_decl() instead of
1450 grokfield(); call start_var_decl() and finish_var_decl() instead of
1451 start_decl() and finish_decl(); always mark module descriptor as
1452 used; move GNU runtime-specific functionality to
1453 build_module_initializer_routine().
1454 (build_module_initializer_routine): New function, broken off of
1455 build_module_descriptor().
1456 (objc_static_init_needed_p, objc_generate_static_init_call): New
1457 functions.
1458 (generate_static_references, generate_strings,
1459 build_selector_translation_table, generate_descriptor_table,
1460 generate_ivars_list, generate_dispatch_table, generate_category): Call
1461 start_var_decl() and finish_var_decl() instead of start_decl() and
1462 finish_decl(); build a type directly instead of via groktypename().
1463 (build_selector_reference_decl, build_selector_table_decl,
1464 build_class_reference_decl, build_protocol_reference,
1465 generate_objc_image_info): Call start_var_decl() instead of
1466 build_decl().
1467 (build_selector_reference): For GNU runtime, do not call
1468 build_selector_reference_decl().
1469 (build_selector, build_typed_selector_reference): Always convert
1470 result to the selector type.
1471 (add_objc_string): Cast return value to 'char *'.
1472 (build_method_prototype_template, build_selector_template,
1473 build_method_template): Use actual selector type for fields
1474 pointing to selectors.
1475 (finish_objc): For GNU runtime, call
1476 build_module_initializer_routine() after build_module_descriptor().
1477 (generate_protocol_list, generate_shared_structures): Call
1478 start_var_decl() and finish_var_decl() instead of start_decl() and
1479 finish_decl(); build a type directly instead of via
1480 groktypename().
1481 (synth_id_with_class_suffix): Return a string.
1482 (get_arg_type_list): For instance methods, use the instance type for
1483 'self'; do not call groktypename_in_parm_context().
1484 (build_objc_string_decl): Squash redeclaration errors in ObjC++.
1485 (objc_is_class_name): Use OBJC_TYPE_NAME instead of TYPE_NAME;
1486 handle RECORD_TYPEs in ObjC as well as ObjC++.
1487 (objc_is_id): New function.
1488 (objc_is_object_ptr): Return the canonical type node.
1489 (objc_get_class_ivars): Simplify using get_class_ivars().
1490 (get_class_ivars): Remove second parameter; create a fresh copy
1491 of the ivar list for each call; do not check for existence of
1492 super class.
1493 (objc_eh_runtime_type): Mark #ifndef OBJCPLUS.
1494 (objc_init_exceptions): When using SJLJ-style exceptions, require
1495 the use of '-fobjc-exceptions' flag; do not require it for DWARF-style
1496 exceptions.
1497 (objc_build_exc_ptr, next_sjlj_build_try_catch_finally): Use
1498 objc_object_type instead of objc_id_type.
1499 (objc_begin_catch_clause): Convert the incoming PARM_DECL into
1500 a VAR_DECL before placing it in the appropriate scope; do not
1501 call define_decl(); adjust call to c_begin_compound_stmt();
1502 use objc_object_type instead of objc_id_type.
1503 (build_next_objc_exception_stuff): Call create_field_decl() instead
1504 of create_builtin_decl(); construct type directly instead of calling
1505 groktypename(); use OBJC_VOID_AT_END to mark end of function parameters.
1506 (build_private_template): Adjust call to get_class_ivars(); build
1507 a type directly instead of via groktypename().
1508 (build_protocol_template, build_method_prototype_list_template,
1509 build_method_prototype_template, build_category_template,
1510 build_selector_template, build_class_template, build_super_template,
1511 build_ivar_template, build_ivar_list_template,
1512 build_method_list_template, build_method_template):
1513 Call create_field_decl() instead of grokfield().
1514 (objc_method_parm_type): Do not call groktypename().
1515 (generate_descriptor_table): Call start_var_decl() and
1516 finish_var_decl() instead of start_decl() and finish_decl().
1517 (generate_method_descriptors, build_protocol_initializer,
1518 generate_dispatch_tables, build_category_initializer,
1519 build_shared_structure_initializer): Do not call groktypename().
1520 (generate_protocols): Call start_var_decl() and finish_var_decl()
1521 instead of start_decl() and finish_decl(); do not call groktypename().
1522 (error_with_ivar): Remove last parameter.
1523 (check_ivars): Do not iterate ovar CLASS_RAW_IVARS lists in addition
1524 to CLASS_IVARS lists; adjust calls to error_with_ivar().
1525 (generate_ivar_lists): Convert one of the initializer elements; do
1526 not call groktypename().
1527 (get_arg_type_list, start_method_def, gen_method_def): Account for
1528 new representation of variable arguments and '...' in Objective-C
1529 methods; add Objective-C++ impedance matching code.
1530 (is_objc_type_qualifier): Remove function.
1531 (adjust_type_for_id_default): Simplify; there is no longer a need to
1532 wade through declspecs.
1533 (lookup_interface, start_class, continue_class,
1534 finish_class, start_method_def, start_protocol, build_method_decl,
1535 objc_add_method, add_instance_variable, build_ivar_reference,
1536 is_ivar, is_private, get_super_receiver, objc_build_finally_epilogue):
1537 Make into static functions.
1538 (receiver_is_class_object): Use new IS_CLASS() macro.
1539 (objc_build_message_expr): Tweak ObjC++ message argument handling;
1540 call objc_finish_message_expr() instead of finish_message_expr().
1541 (finish_message_expr): Rename to objc_finish_message_expr(); use
1542 OBJC_TYPE_NAME and OBJC_SET_TYPE_NAME macros instead of TYPE_NAME.
1543 call gen_type_name() instead of gen_declaration(); call objc_is_id()
1544 instead of using IS_ID and IS_CLASS; Use objc_class_name instead of
1545 calling get_identifier("Class"); handle CONVERT_EXPRs in receiver.
1546 (build_objc_method_call, warn_with_method): Do not call groktypename().
1547 (build_ivar_reference): Call convert() instead of clobbering in a
1548 type.
1549 (hash_init): Initialize string_htab hash table.
1550 (add_instance_variable): Simplify parameter list; do not call grokfield();
1551 do not populate CLASS_IVARS list.
1552 (start_class): Check for the existence of super class, if one was specified.
1553 (continue_class): Use CLASS_RAW_IVARS rather than CLASS_IVARS; do not
1554 call build_class_template(); adjust call to get_class_ivars(); call
1555 build_decl(), pushdecl() and finish_decl() instead of define_decl().
1556 (finish_class): Call build_decl(), pushdecl() and finish_decl() instead
1557 of define_decl().
1558 (add_protocols): Use PROTOCOL_BINFO_ELTS for the tree vector size.
1559 (start_protocol): Do not call build_protocol_template(); use
1560 PROTOCOL_BINFO_ELTS for the tree vector size.
1561 (encode_type_qualifiers): Do not handle the 'const' qualifier here.
1562 (encode_pointer): Encode 'const char *' as 'r*', for backwards
1563 compatibility.
1564 (encode_array): Use HOST_WIDE_INT_PRINT_DEC instead of "%ld".
1565 (encode_type): Handle the 'const' qualifier here.
1566 (objc_parmlist): New global variable, sued by objc_push_parm and
1567 objc_get_parm_info().
1568 (objc_push_parm, objc_get_parm_info): New functions.
1569 (objc_expr_last): Remove function.
1570 (synth_self_and_ucmd_args): For instance methods, use the instance
1571 type for 'self'; call objc_push_parm() instead of push_parm_decl().
1572 (start_method_def): Do not call push_scope(), declare_parm_level(),
1573 pop_scope(), push_parm_decl(), store_parm_decls() or objc_expr_last();
1574 just use objc_push_parm() and objc_get_parm_info().
1575 (comp_method_with_proto): Remove function.
1576 (objc_types_are_equivalent): Strip away indirections before comparing
1577 underlying types.
1578 (comp_proto_with_proto): Do not call groktypename(); types are no
1579 longer in raw declspec format.
1580 (objc_start_function): New function.
1581 (really_start_method): Call comp_proto_with_proto() instead of
1582 comp_method_with_proto(); call objc_start_function() instead of
1583 hand-crafting a function declarator.
1584 (continue_method_def, objc_expand_function_end): Remove functions.
1585 (get_super_receiver): Call objc_get_current_scope() instead of
1586 get_current_scope(); reference 'super_class' field (instead of
1587 'class').
1588 (finish_method_def): Rename to objc_finish_method_definition() and
1589 add a function decl parameter; move method encoding call from
1590 objc_expand_function_end().
1591 (is_complex_decl, adorn_decl, gen_declarator, gen_declspecs,
1592 gen_declaration_1): Remove functions.
1593 (tmpbuf, RAW_DECLSPEC): Remove.
1594 (gen_declaration): Remove second parameter; simplify to deal
1595 with TYPE_P nodes instead of raw declspecs.
1596 (gen_type_name, gen_type_name_0): New functions.
1597 (gen_method_decl): Remove second parameter; call gen_type_name()
1598 instead of gen_declaration_1().
1599 (dump_interface): Adjust calls to gen_declaration() and
1600 gen_method_decl(); do not allocate a separate string buffer.
1601 (init_objc): Allocate a larger string buffer to accommodate
1602 dump_interface(); adjust call to build_module_descriptor();
1603 add call to build_module_initializer_routine() for the GNU
1604 runtime.
1605 (generate_classref_translation_entry): Do not call start_decl(); call
1606 finish_var_decl() instead of finish_decl(); call convert() instead of
1607 build_c_cast().
1608 * objc-act.h (CLASS_OWN_IVARS): Remove accessor.
1609 (CLASS_BINFO_ELTS): Reduce from 6 to 5, now that CLASS_OWN_IVARS is
1610 gone.
1611 (OCTI_GNU_INIT_DECL, GNU_INIT_decl): New.
1612 (OCTI_ELLIPSIS_NODE, objc_ellipsis_node): Remove.
1613 (OCTI_ID_ID, id_type, objc_id_id): Rename to OCTI_ID_NAME,
1614 objc_object_type and objc_object_name, respectively.
1615 (OCTI_CLS_REF, OCTI_CLASS_NAME, objc_class_reference,
1616 objc_class_name): New.
1617 (IS_CLASS): New macro.
1618 (IS_ID, IS_SUPER): Robustify.
1619 (OCTI_EXECCLASS_DECL, execclass_decl): New.
1620 (finish_file, start_class, continue_class, finish_class,
1621 start_method_def, continue_method_def, finish_method_def,
1622 start_protocol, finish_protocol, objc_build_throw_stmt,
1623 objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
1624 objc_build_synchronized_epilogue, objc_build_try_prologue,
1625 objc_build_try_epilogue, objc_build_catch_stmt, objc_build_catch_epilogue,
1626 objc_build_finally_prologue, objc_build_finally_epilogue,
1627 is_ivar, is_private, is_public, add_instance_variable, objc_add_method,
1628 get_super_receiver, objc_clear_super_receiver, get_class_ivars_from_name,
1629 get_class_reference, get_static_reference, get_object_reference,
1630 build_message_expr, finish_message_expr, build_selector_expr,
1631 build_ivar_reference, build_keyword_decl, build_method_decl,
1632 build_protocol_expr, build_objc_string_object, objc_declare_alias,
1633 objc_declare_class, objc_declare_protocols, objc_comptypes,
1634 objc_check_decl, build_encode_expr): Remove prototypes.
1635 (imp_count, cat_count): Make GGC-aware.
1636 (OBJC_SET_TYPE_NAME): New macro.
1637
1638 2004-09-03 Ziemowit Laski <zlaski@apple.com>
1639
1640 * config-lang.in: Update copyright notice.
1641 (lang_requires): Indicate that ObjC requires C to be built first.
1642
1643 2004-09-01 Ziemowit Laski <zlaski@apple.com>
1644
1645 * objc-act.c (objc_check_decl): Use OBJC_TYPE_NAME macro instead of
1646 TYPE_NAME.
1647 (build_objc_string_object): Rename to objc_build_string_object().
1648 (get_class_reference): Rename to objc_get_class_reference().
1649 (get_class_ivars_from_name): Rename to objc_get_class_ivars().
1650 (next_sjlj_build_catch_list, get_super_receiver): Call
1651 objc_get_class_reference() instead of get_class_reference().
1652 (build_keyword_decl): Rename to objc_build_keyword_decl().
1653 (build_message_expr): Rename to objc_build_message_expr().
1654 (build_protocol_expr): Rename to objc_build_protocol_expr().
1655 (build_selector_expr): Rename to objc_build_selector_expr().
1656 (build_encode_expr): Rename to objc_build_encode_expr().
1657 * objc-act.h (get_class_ivars_from_name): Rename prototype to
1658 objc_get_class_ivars().
1659 (get_class_reference): Rename prototype to objc_get_class_reference().
1660 (build_message_expr): Rename prototype to objc_build_message_expr().
1661 (build_selector_expr): Rename prototype to objc_build_selector_expr().
1662 (build_keyword_decl): Rename prototype to objc_build_keyword_decl().
1663 (build_protocol_expr): Rename prototype to objc_build_prototype_expr().
1664 (build_objc_string_object): Rename prototype to
1665 objc_build_string_object().
1666
1667 2004-09-01 Ziemowit Laski <zlaski@apple.com>
1668
1669 * objc-act.c (lookup_interface): Make function 'static' and add a
1670 local prototype.
1671 (objc_check_decl, get_class_reference, objc_declare_alias,
1672 objc_declare_class, objc_is_object_ptr): Call objc_is_class_name()
1673 instead of is_class_name().
1674 (get_super_receiver, objc_clear_super_receiver): Call
1675 objc_get_current_scope() instead of get_current_scope().
1676 (is_class_name): Rename to objc_is_class_name.
1677 (lookup_objc_ivar): Rename to objc_lookup_ivar.
1678
1679 2004-08-28 Ziemowit Laski <zlaski@apple.com>
1680
1681 * objc-act.c (objc_is_reserved_word): New function.
1682
1683 2004-08-15 Ziemowit Laski <zlaski@apple.com>
1684
1685 * Make-lang.in (objc/objc-lang.o): Depend on $(C_PRETTY_PRINT_H),
1686 $(DIAGNOSTIC_H), c-objc-common.h and gtype-objc.h, but not on toplev.h.
1687 (objc/objc-parse.o): Do not depend on gtype-objc.h.
1688 * objc-act.c: Do not include gtype-objc.h.
1689 (finish_file): Rename to objc_finish_file().
1690 * objc-act.h (finish_file): Update copyright notice; remove prototype.
1691 * objc-lang.c: Update copyright notice; include diagnostic.h,
1692 c-objc-common.h, c-pretty-print.h and gtype-objc.h; do not include
1693 toplev.h.
1694 (finish_file): New hook routine.
1695 (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
1696 LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
1697 LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
1698 LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
1699 LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
1700 LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
1701 LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
1702 LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
1703 LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
1704 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
1705 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
1706 LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
1707 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
1708 LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
1709 LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
1710 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
1711 LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
1712 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
1713 LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
1714 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
1715 LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
1716 LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
1717 LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
1718 LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
1719 Move to c-objc-common.h.
1720
1721 \f
1722 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
1723
1724 Copying and distribution of this file, with or without modification,
1725 are permitted in any medium without royalty provided the copyright
1726 notice and this notice are preserved.