Remove a trivial assert (missed in previous checkin)
[official-gcc.git] / gcc / objc / ChangeLog
blob30b6d17d82b1d6e2089e96e58838187d6352484d
1 2013-07-21   Ondřej Bílka  <neleai@seznam.cz>
3         * objc-act.c: Fix typos.
4         * objc-encoding.c: Likewise.
5         * objc-gnu-runtime-abi-01.c: Likewise.
6         * objc-next-runtime-abi-01.c: Likewise.
7         * objc-next-runtime-abi-02.c: Likewise.
9 2013-05-22  Paolo Carlini  <paolo.carlini@oracle.com>
11         * objc-next-runtime-abi-02.c (build_v2_build_objc_method_call):
12         Fix build_conditional_expr call.
14 2013-05-16  Jason Merrill  <jason@redhat.com>
16         * Make-lang.in (cc1obj$(exeext)): Use link mutex.
18 2012-11-20  Diego Novillo  <dnovillo@google.com>
20         * objc-act.c: Replace all vec<T, A>() initializers with vNULL.
22 2012-11-16  Diego Novillo  <dnovillo@google.com>
24         Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
26         * objc-act.c: Use new vec API in vec.h.
27         * objc-act.h: Likewise.
28         * objc-gnu-runtime-abi-01.c: Likewise.
29         * objc-next-runtime-abi-01.c: Likewise.
30         * objc-next-runtime-abi-02.c: Likewise.
31         * objc-runtime-hooks.h: Likewise.
32         * objc-runtime-shared-support.c: Likewise.
33         * objc-runtime-shared-support.h: Likewise.
35 2012-10-01  Lawrence Crowl  <crowl@google.com>
37         * Make-lang.in (OBJC_OBJS): Add dependence on hash-table.o.
38         (objc-act.o): Add dependence on hash-table.h.
39         * objc-act.c (objc_detect_field_duplicates): Change to new type-safe
40         hash table.
42 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
44         * Make-ang.in: Adjust for move of C front-end files.
45         * config-lang.in: Likewise.
46         * objc-encoding.c: Look for cp-tree.h in cp/, and for c-tree.h
47         and c-lang.h in c/.
48         * objc-runtime-shared-support.c: Likewise.
49         * objc-next-runtime-abi-01.c: Likewise.
50         * objc-next-runtime-abi-02.c: Likewise.
51         * objc-gnu-runtime-abi-01.c: Likewise.
52         * objc-act.c: Likewise.
53         * objc-lang.c: Likewise.
55 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
57         * objc-next-runtime-abi-01.c: Do not include tm.h and output.h.
58         Include c-family/c-target.h.
59         (handle_next_class_ref): Rewrite to emit top-level asm statements.
60         (handle_next_impent): Likewise.
61         * objc/Make-lang.in: Fix dependencies for objc-next-runtime-abi-01.o.
63 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
65         * objc-act.c: Do not include output.h.
67 2012-05-17  Paolo Carlini  <paolo.carlini@oracle.com>
69         PR objc++/53388
70         * objc-act.c (objc_get_class_reference, objc_build_message_expr):
71         Use build_min_nt_loc.
73 2012-04-20  Jan Hubicka  <jh@suse.cz>
75         * objc-act.c (mark_referenced_methods); Use
76         cgraph_mark_force_output_node.
78 2012-03-21  Steven Bosscher  <steven@gcc.gnu.org>
80         * objc-act (objc_build_ivar_assignment): Do not call assemble_external.
81         (objc_build_global_assignment): Likewise.
82         (objc_build_strong_cast_assignment): Likewise.
83         * objc-next-runtime-abi-01.c: Cleanup commented-out assemble_external.
84         * objc-next-runtime-abi-02.c: Likewise.
85         * objc-gnu-runtime-abi-01.c: Likewise.
87 2012-03-05  Jason Merrill  <jason@redhat.com>
89         * objc-map.c (objc_map_private_resize, objc_map_alloc_ggc): Don't
90         call _stat functions without MEM_STAT_INFO.
92 2011-11-12  Iain Sandoe  <iains@gcc.gnu.org>
94         * objc-next-runtime-abi-01.c (objc_eh_personality): Use gcc personality
95         for Objective-C m32.
97 2011-10-29  Iain Sandoe  <iains@gcc.gnu.org>
99         PR target/47997
100         * objc-act.c (objc_build_string_object): Remove redundant second
101         call to fix_string_type ().  Add a checking assert that we are,
102         indeed, passed a STRING_CST.
104 2011-10-18  Mikael Pettersson  <mikpe@it.uu.se>
106         PR objc/50743
107         * objc-act.c (check_duplicates): Cast TREE_VEC_LENGTH result to
108         size_t to avoid signed/unsigned
109         comparison.
110         (insert_method_into_method_map): Likewise.
112 2011-10-14  Nicola Pero  <nicola.pero@meta-innovation.com>
114         * objc-map.h: New file.
115         * objc-map.c: New file. 
116         * config-lang.in (gtfiles): Added objc-map.h.
117         * Make-lang.in (OBJC_OBJS): Added objc-map.o.
118         (objc/objc-map.o): New rule.
119         (objc/objc-act.o): Depend on objc/objc-map.h.
120         * objc-next-runtime-abi-02.c: Added a TODO comment.
121         * objc-act.c: Include objc-map.h.
122         (nst_method_hash_list, cls_method_hash_list): Removed.
123         (instance_method_map, class_method_map): New.
124         (cls_name_hash_list, als_name_hash_list): Removed.
125         (class_name_map, alias_name_map): Removed.
126         (ivar_offset_hash_list): Removed.
127         (hash_class_name_enter, hash_class_name_lookup, hash_enter,
128         hash_lookup, hash_add_attr, add_method_to_hash_list): Removed.
129         (interface_hash_init): New.
130         (objc_init): Call interface_hash_init.
131         (objc_write_global_declarations): Iterate over class_method_map
132         and instance_method_map instead of cls_method_hash_list and
133         nst_method_hash_list.
134         (objc_declare_alias): Use alias_name_map instead of
135         cls_name_hash_list.
136         (objc_is_class_name): Use class_name_map and alias_name_map
137         instead of cls_name_hash_list and als_name_hash_list.
138         (interface_tuple, interface_htab, hash_interface, eq_interface):
139         Removed.
140         (interface_map): New.
141         (add_class): Renamed to add_interface.  Use interface_map instead
142         of interface_htab.
143         (lookup_interface): Use interface_map instead of interface_htab.
144         (check_duplicates): Changed first argument to be a tree,
145         potentially a TREE_VEC, instead of a hash.  Changed implementation
146         to match.
147         (lookup_method_in_hash_lists): Use class_method_map and
148         instance_method_map instead of cls_method_hash_list and
149         nst_method_hash_list.
150         (objc_build_selector_expr): Likewise.
151         (hash_func): Removed.
152         (hash_init): Create instance_method_map, class_method_map,
153         class_name_map, and alias_name_map.  Do not create
154         nst_method_hash_list, cls_method_hash_list, cls_name_hash_list,
155         als_name_hash_list, and ivar_offset_hash_list.
156         (insert_method_into_method_map): New.
157         (objc_add_method): Use insert_method_into_method_map instead of
158         add_method_to_hash_list.
159         (start_class): Call add_interface instead of add_class.
160         * objc-act.h (cls_name_hash_list, als_name_hash_list,
161         nst_method_hash_list, cls_method_hash_list): Removed.
163 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
165         * objc-next-runtime-abi-01.c (objc_build_exc_ptr): Delete old
166         interface with two parallel arrays to hold standard builtin
167         declarations, and replace it with a function based interface that
168         can support creating builtins on the fly in the future.  Change
169         all uses, and poison the old names.  Make sure 0 is not a
170         legitimate builtin index.
171         * objc-next-runtime-abi-02.c (objc_build_exc_ptr): Ditto.
172         * objc-gnu-runtime-abi-01.c (objc_build_exc_ptr): Ditto.
174 2011-07-19  Richard Guenther  <rguenther@suse.de>
176         * objc-next-runtime-abi-02.c (objc_v2_build_ivar_ref):
177         Use fold_build_pointer_plus.
178         (objc2_build_ehtype_initializer): Likewise.
180 2011-07-11  Nicola Pero  <nicola.pero@meta-innovation.com>
182         * objc-encoding.h (obstack.h): Do not include.
183         (util_obstack, util_firstobj): Do not declare.
184         (encode_field_decl): Updated prototype to return a tree and take a
185         single tree argument.  Updated comments.
186         * objc-encoding.c (util_obstack, util_firstobj): Made static.
187         (objc_encoding_init): New.
188         (encode_field_decl): Existing function renamed to encode_field and
189         made static.  New encode_field_decl wrapper function added.
190         (encode_aggregate_fields): Update call to encode_field_decl to
191         call encode_field.
192         * objc-next-runtime-abi-02.c (obstack.h): Do not include.
193         (util_obstack, util_firstobj): Do not declare.
194         (build_v2_ivar_list_initializer): Updated call to
195         encode_field_decl.
196         * objc-runtime-shared-support.c (obstack.h): Do not include.
197         (util_obstack, util_firstobj): Do not declare.
198         (build_ivar_list_initializer): Updated call to encode_field_decl.
199         * objc-act.c (objc_init): Use objc_encoding_init.
200         * Make-lang.in (objc/objc-runtime-shared-support.o): Do not depend
201         on OBSTACK_H.
202         (objc/objc-gnu-runtime-abi-01.o): Likewise.
203         (objc/objc-next-runtime-abi-01.o): Likewise.
204         (objc/objc-next-runtime-abi-02.o): Likewise.
205         (objc/objc-act.o): Likewise.
206         
207 2011-07-04  Nicola Pero  <nicola.pero@meta-innovation.com>
209         Refactored encoding code into objc-encoding.h and objc-encoding.c.
210         * objc-act.c (util_obstack, util_firstobj, encode_type_qualifiers,
211         encode_type, generating_instance_variables, objc_method_parm_type,
212         objc_encoded_type_size, encode_method_prototype,
213         objc_build_encode_expr, pointee_is_readonly, encode_pointer,
214         encode_array, encode_vector, encode_aggregate_fields,
215         encode_aggregate_within, encode_next_bitfield,
216         encode_gnu_bitfield, encode_field_decl,
217         objc_v2_encode_property_attr): Moved to objc-encoding.h and
218         objc-encoding.c.  No change in the actual code.
219         Include objc-encoding.h.
220         (objc_init): Added TODO.
221         (objc_build_property_setter_name): Made non-static so it can be
222         called from objc-encoding.c.
223         * objc-act.h (OBJC_ENCODE_INLINE_DEFS,
224         OBJC_ENCODE_DONT_INLINE_DEFS): Moved to objc-encoding.h.
225         * objc-runtime-shared-support.h (objc_v2_encode_property_attr,
226         encode_method_prototype, encode_field_decl,
227         generating_instance_variables): Moved to objc-encoding.h.       
228         (objc_build_property_setter_name): Declare.
229         * objc-encoding.c: New.
230         * objc-encoding.h: New.
231         * objc-gnu-runtime-abi-01.c: Include objc-encoding.h.
232         * objc-next-runtime-abi-01.c: Likewise.
233         * objc-next-runtime-abi-02.c: Likewise. 
234         * objc-runtime-shared-support.c: Likewise.
235         * Make-lang.in (OBJC_OBJS): Added objc-encoding.o.
236         (objc/objc-lang.o): Reordered dependencies.
237         (objc/objc-runtime-shared-support.o): Reordered dependencies.
238         Added dependencies on objc-encoding.h and on $(GGC_H),
239         $(DIAGNOSTIC_CORE_H), $(FLAGS_H) and input.h.
240         (objc/objc-gnu-runtime-abi-01.o): Likewise.
241         (objc/objc-next-runtime-abi-01.o): Likewise.
242         (objc/objc-next-runtime-abi-02.o): Likewise.
243         (objc/objc-act.o): Reordered dependencies.  Added dependency on
244         objc-encoding.h.
245         (objc/objc-encoding.o): New rule.
247         * objc-encoding.c (encode_type): Use "%<%T%>" format when printing
248         warning "unknown type %<%T%> found during Objective-C encoding"
249         instead of using gen_type_name.
250         
251 2011-06-05  Nicola Pero  <nicola.pero@meta-innovation.com>
253         * objc-act.c (receiver_is_class_object): Expanded comment.
254         (objc_finish_message_expr): Likewise.
256 2011-06-02  Nicola Pero  <nicola.pero@meta-innovation.com>
258         PR objc/48539
259         * objc-act.c (objc_finish_message_expr): Warn if messaging a class
260         that was only declared using @class without an @interface.  Warn
261         if messaging an instance of a class that was only declared using
262         @class without an @interface, unless the receiver was also typed
263         with a protocol list.
265 2011-06-01  Nicola Pero  <nicola.pero@meta-innovation.com>
267         * objc-act.c (objc_decl_method_attributes): Implement nonnull
268         attribute for Objective-C methods.
270 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
272         * config-lang.in (gtfiles): Updated order of files to fix building
273         when the gcc/cp directory is missing, as in the case of some
274         release tarballs.
276 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
278         * objc-act.c (objc_compare_types): Use function_args_iterator
279         instead of TYPE_ARG_TYPES to compare function argument types.
281 2011-05-13  Toon Moene  <toon@moene.org>
283         * objc-next-runtime-abi-02.c (newabi_append_ro):
284         Add const qualifier to constant variable pointer declaration.
286 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
288         * objc-act.h (CLASS_NAME, CLASS_SUPER_NAME): Use proper accessors.
289         (CLASS_NST_METHODS, CLASS_CLS_METHODS): Likewise.
290         (PROTOCOL_NAME, PROTOCOL_NST_METHODS, PROTOCOL_CLS_METHODS): Likewise.
292 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
294         * objc-runtime-shared-support.h (get_arg_type_list): Delete.
295         (build_function_type_for_method): Declare.
296         * objc-runtime-hooks.h (struct _objc_runtime_hooks_r): Change
297         type of get_arg_type_base_list field.
298         * objc-act.h (OBJC_VOID_AT_END): Delete.
299         * objc-act.c (get_arg_type_list): Delete.
300         (build_function_type_for_method): New function.
301         (objc_decl_method_attributes): Call build_function_type_for_method.
302         (really_start_method): Likewise.
303         * objc-gnu-runtime-abi-01.c
304         (gnu_runtime_abi_01_get_type_arg_list_base): Change prototype and
305         adjust function accordingly.  Update header comment.
306         (build_objc_method_call): Call build_function_type_for_method.
307         * objc-next-runtime-abi-01.c
308         (next_runtime_abi_01_get_type_arg_list_base): Change prototype and
309         adjust function accordingly.  Update header comment.
310         (build_objc_method_call): Call build_function_type_for_method.
311         * objc-next-runtime-abi-02.c
312         (next_runtime_abi_02_get_type_arg_list_base): Change prototype and
313         adjust function accordingly.  Update header comment.
314         (objc_copy_to_temp_side_effect_params): Take fntype instead of a
315         typelist.  Use function_args_iterator for traversing fntype.
316         (build_v2_build_objc_method_call): Adjust call to it.
317         Call build_function_type_for_method
319 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
321         * objc-act.c (objc_start_method_definition): Add parameter expr.
322         Update call to start_method_def.
323         (objc_generate_cxx_ctor_or_dtor, objc_synthesize_getter,
324         objc_synthesize_setter) Update calls to
325         objc_start_method_definition.
326         (objc_get_parm_info): Add parameter expr.  Update call to
327         get_parm_info.
328         (start_method_def): Add parameter expr.  Update call to
329         objc_get_parm_info.
330         * objc-gnu-runtime-abi-01.c (build_module_initializer_routine):
331         Update call to objc_get_parm_info.
332         * objc-runtime-shared-support.h (objc_get_parm_info): Add extra
333         parameter.
335 2011-04-26  Jason Merrill  <jason@redhat.com>
337         * objc-act.c (objc_fold_objc_type_ref): Remove.
338         * objc-act.h: Remove prototype.
340 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
342         * objc-act.c (synth_module_prologue): Call build_function_type_list
343         instead of build_function_type.
344         * objc-next-runtime-abi-02.c (next_runtime_02_initialize):
345         Likewise.
347 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
349         * objc-act.c (ivar_of_class): New.
350         (objc_is_public): Use ivar_of_class.
352 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
354         * objc-act.c (objc_get_interface_ivars): Removed.
355         (objc_detect_field_duplicates): New.
356         (hash_instance_variable): New.
357         (eq_instance_variable): New.
359 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
361         * objc-act.c (objc_declare_protocols): Renamed to
362         objc_declare_protocol.  Changed first argument to be an identifier
363         instead of a tree chain of identifiers, so that callers don't have
364         to create a temporary tree chain.
366 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
368         * objc-act.c (objc_declare_class): Changed to take a single
369         identifier as argument instead of a tree list.  This means callers
370         don't have to build temporary tree lists to call this function.
371         (synth_module_prologue): Updated calls to objc_declare_class.
373 2011-04-13  Nicola Pero  <nicola.pero@meta-innovation.com>
375         * objc-act.c (build_keyword_selector): Use get_identifier_with_length
376         instead of get_identifier.
378 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
380         * objc-lang.c (objc_init_ts): Move code for this function...
381         * objc-act.c (objc_common_init_ts): ...here. Define.
382         * objc-act.h (objc_common_init_ts): Declare.
384 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
386         * objc-act.c (objc_build_message_expr): Accept two arguments
387         instead of one so that callers can simply pass the arguments
388         without having to create a temporary chain to hold them.
390 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
392         * objc-act.c (comp_proto_with_proto): Do not create and use
393         inefficient temporary argument lists.  Compare the arguments
394         directly.  (match_proto_with_proto): Removed; incorporated into
395         comp_proto_with_proto ().
397 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
399         * objc-act.c (printable_ivar_name): New.
400         (add_instance_variable): Call printable_ivar_name() when an error
401         message needs to be printed.  Do not prepare the instance variable
402         for printing unless there is an actual error.
404 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
406         * objc-act.c (objc_is_class_name, objc_is_id): For efficiency,
407         avoid calling identifier_global_value() multiple times.
409 2011-04-12  Martin Jambor  <mjambor@suse.cz>
411         * objc-act.c (mark_referenced_methods): Call cgraph_get_create_node
412         instead of cgraph_node.
414 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
416         * objc-act.c: Include c-target.h instead of target.h.
417         * Make-lang.in (objc/objc-act.o): Update dependencies.
419 2011-03-06  Joseph Myers  <joseph@codesourcery.com>
421         * lang-specs.h: Match -save-temps* instead of -save-temps.
423 2011-02-26  Nicola Pero  <nicola.pero@meta-innovation.com>
425         * objc-act.c (objc_v2_encode_prop_attr): Rewritten.
427 2011-02-23  Nicola Pero  <nicola.pero@meta-innovation.com>
429         * objc-act.c (build_private_template): Do not copy the
430         CLASS_HAS_EXCEPTION_ATTR from the class to the struct.
431         * objc-act.h (CLASS_HAS_EXCEPTION_ATTR): Define using
432         TYPE_LANG_SLOT_0.
434 2011-02-22  Nicola Pero  <nicola.pero@meta-innovation.com>
436         PR objc/47832
437         * objc-act.c (flexible_array_type_p): New.
438         (add_instance_variable): Produce an error if an instance variable
439         uses flexible array members.
440         (encode_array): Do not emit an error if encoding a flexible array
441         type while generating instance variables.
443 2011-02-21  Mike Stump  <mikestump@comcast.net>
445         * Make-lang.in (check_objc_parallelize): Refine for 4 processor
446         machines.
448 2011-02-20  Nicola Pero  <nicola.pero@meta-innovation.com>
450         * objc-gnu-runtime-abi-01.c (TARGET_64BIT): Removed.  Removed
451         usage of padding fields.  Do not include tm.h.
452         * objc-act.c (objc_write_global_declaration): Set input_location
453         to BUILTINS_LOCATION while generating runtime metadata.
455 2011-01-20  Nicola Pero  <nicola.pero@meta-innovation.com>
457         PR objc/47784
458         * objc-act.c (objc_maybe_build_modify_expr): If 'rhs' has side
459         effects, do not use a temporary variable.
461 2011-01-19  Nicola Pero  <nicola.pero@meta-innovation.com>
463         * objc-next-runtime-abi-01.c: Updated comments.
464         * objc-next-runtime-abi-02.c: Same.
466 2011-01-19  Nicola Pero  <nicola.pero@meta-innovation.com>
468         * objc-act.c (objc_init, generate_struct_by_value_array): Updated
469         comments.
471 2011-01-19  Nicola Pero  <nicola.pero@meta-innovation.com>
473         * objc-act.c: Updated comments.
474         * objc-next-runtime-abi-02.c: Same.
475         * objc-runtime-shared-support.c: Same.
476         * objc-runtime-hooks.h: Same.
477         * objc-act.h: Same.
478         * objc-gnu-runtime-abi-01.c: Same.
480 2011-01-19  Nicola Pero  <nicola.pero@meta-innovation.com>
482         * objc-gnu-runtime-abi-01.c (objc_generate_v1_gnu_metadata): Do
483         not generate metadata if there is nothing to put into it.
485 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
487         * config-lang.in (gtfiles): Updated.
488         * Make-lang.in (START_HDRS): New.
489         (OBJC_OBJS): Added new object files.
490         (objc/objc-act.o): Updated prerequisites.
491         (objc/objc-lang.o): Updated prerequisites.
492         (objc/objc-runtime-shared-support.o): New.
493         (objc/objc-gnu-runtime-abi-01.o): New.
494         (objc/objc-next-runtime-abi-01.o): New.
495         (objc/objc-next-runtime-abi-02.o): New.
496         * objc-runtime-hooks.h: New.
497         * objc-runtime-shared-support.h: New.
498         * objc-runtime-shared-support.c: New.
499         * objc-gnu-runtime-abi-01.c: New.
500         * objc-next-metadata-tags.h: New.
501         * objc-next-runtime-abi-01.c: New.
502         * objc-next-runtime-abi-02.c: New.
503         * objc-lang.c: Include c-lang.h.
504         (LANG_HOOKS_EH_PERSONALITY): Removed.
505         * objc-act.h: Moved many declarations and code from objc-act.c
506         into objc-act.h to make them available outside objc-act.c.
507         (objc_eh_runtime_type): Removed.
508         (objc_eh_personality): Removed.
509         (CLASS_HAS_EXCEPTION_ATTR): New.
510         (OCTI_SUPER_SUPERFIELD_ID): New.
511         (OCTI_V1_PROP_LIST_TEMPL): New.
512         (OCTI_V1_PROP_NAME_ATTR_CHAIN): New.
513         (super_superclassfield_id): New.
514         (objc_prop_list_ptr): New.
515         (prop_names_attr_chain): New.
516         * objc-act.c: Include new runtime headers.  Moved many #defines
517         and declarations into objc-act.h and
518         objc-runtime-shared-support.h.  Made some corresponding functions
519         non-static, and moved some others into
520         objc-runtime-shared-support.c.  Moved metadata generation code
521         into the new runtime hook files.
522         (ivar_offset_hash_list): New.
523         (objc_init): Call generate_struct_value_by_array() before doing
524         any runtime initialization.  Create the appropriate runtime hook
525         structures.
526         (init_objc): Removed.  Code moved directly into objc_init.
527         (finish_objc): Removed.  Code moved directly into
528         objc_write_global_declarations.
529         (objc_write_global_declarations): Do the warn_selector checks
530         before emitting metadata.  Use a runtime hook to emit the
531         metadata.  Do not emit the metadata or do -gen-decls processing if
532         -fsyntax-only or we are producing a PCH.
533         (build_objc_exception_stuff): Renamed to
534         build_common_objc_exception_stuff.  Remove TREE_NOTHROW flag from
535         objc_exception_throw_decl.
536         (synth_module_prologue): Call runtime initialize hook instead of
537         building runtime declarations here.  Use the
538         default_constant_string_class_name runtime hook to set the
539         constant string class name.
540         (objc_build_string_object): Call the setup_const_string_class_decl
541         runtime hook instead of setup_string_decl.  Call the
542         build_const_string_constructor runtime hook instead of building
543         the string object here.
544         (get_objc_string_decl): Added prop_names_attr case.  Removed
545         gcc_unreachable() at the end.
546         (objc_begin_catch_clause): Distinguish between @catch (...) and
547         @catch (id x).  Call the begin_catch runtime hook instead of
548         building the CATCH_EXPR here.
549         (objc_finish_catch_clause): Call the finish_catch runtime hook
550         instead of adding the catch here.
551         (objc_finish_try_stmt): Call the finish_try_stmt runtime hook
552         instead of doing it here.
553         (objc_build_throw_stmt): Bail out early for error_mark_node.  Call
554         the build_exc_ptr runtime hook instead of objc_build_exc_ptr.
555         Call the build_throw_stmt runtime hook instead of building the
556         throw call here.
557         (objc_generate_cxx_cdtors): Set has_cxx_cdtors for the GNU runtime
558         as well.
559         (get_arg_type_list): Call the get_arg_type_list_base runtime hook
560         instead of building the list of arguments here.
561         (receiver_is_class_object): Call the receiver_is_class_object
562         runtime hook instead of doing the check here.  Call the
563         tag_getclass runtime hook instead of using TAG_GETCLASS.
564         (objc_finish_message_expr): Call the build_objc_method_call
565         runtime hook.
566         (objc_build_protocol_expr): Call the get_protocol_reference
567         runtime hook.
568         (objc_build_selector_expr): Call the build_selector_reference
569         runtime hook.
570         (build_ivar_reference): Call the build_ivar_reference runtime
571         hook.
572         (hash_init): Set up ivar_offset_hash_list.
573         (start_class): Recognize the objc_exception attribute and store
574         it.
575         (continue_class): Use the class_decl and metaclass_decl runtime
576         hooks.
577         (build_objc_property_accessor_helpers): Renamed to
578         build_common_objc_property_accessor_helpers.  Do not build
579         objc_copyStruct_decl, objc_getPropertyStruct_decl and
580         objc_setPropertyStruct_decl.
581         (objc_synthesize_getter): Check what struct setter/getter helper
582         is available instead of checking the type of runtime.
583         (get_super_receiver): Use the super_superclassfield_ident runtime
584         hook.  Added assert.  Use the get_class_super_ref and
585         get_category_super_ref runtime hooks.
586         (objc_v2_encode_prop_attr): New.
588 2011-01-17  Nicola Pero  <nicola.pero@meta-innovation.com>
590         PR objc/47314
591         * objc-act.c (finish_objc): When calling check_duplicates to check
592         duplicated instance methods, set 'is_class' to 0, not 1.
594 2011-01-14  Ben Elliston  <bje@au.ibm.com>
596         PR 19162
597         * objc-act.c (generate_struct_by_value_array): Do not output a
598         definition for struct_forward_array.
600 2011-01-08  Iain Sandoe  <iains@gcc.gnu.org>
602         * objc-act.c (objc_finish_foreach_loop): Mark collection expression
603         as read.
605 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
607         * objc-act.c (check_that_protocol_is_defined): Fix a typo.
609 2011-01-02  Nicola Pero  <nicola.pero@meta-innovation.com>
611         * objc-act.c (check_that_protocol_is_defined): New.
612         (lookup_protocol): Call check_that_protocol_is_defined.
614 2010-12-30  Nicola Pero  <nicola.pero@meta-innovation.com>
616         * objc-act.c (objc_types_are_equivalent): Fixed comparing protocol
617         lists.  Check them two-ways to fix comparisons when one protocol
618         implements the other one, or when one list contains duplicated
619         protocols.
621 2010-12-30  Nicola Pero  <nicola.pero@meta-innovation.com>
623         * objc-act.c (objc_add_method): When emitting an error because a
624         method with the same name but conflicting types is found in the
625         same class or category interface, print a note with the location
626         of the original method.  Also, improved the error message to
627         clearly state that the conflict is due to conflicting types, and
628         produce it for protocols as well.  Emit an error if two identical
629         methods are declared in a protocol, but one is @required and the
630         other one is @optional.
632 2010-12-30  Nicola Pero  <nicola.pero@meta-innovation.com>
634         * objc-act.c (start_class): Warn when a class attribute is
635         ignored.
636         (objc_declare_protocols): Warn when a protocol attribute in a
637         protocol forward-declaration is ignored.
638         (start_protocol): Warn when a protocol attribute is ignored.
640 2010-12-30  Nicola Pero  <nicola.pero@meta-innovation.com>
642         * objc-act.c (objc_set_method_opt): Tidy up error messages.  In
643         particular, explicitly mention whether the error is due to the
644         @optional or @required keyword instead of mentioning
645         "@optional/@required".
647 2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>
649         PR objc/47118
650         * objc-act.c (objc_build_synchronized): Check the argument of
651         @synchronized and emit an appropriate error if it is not a valid
652         Objective-C object.  Deal gracefully with that case.  Updated
653         comments and variable names.
655 2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>
657         PR objc/47075
658         * objc-act.h (PROPERTY_REF_DEPRECATED_GETTER): New.
659         * objc-tree.def (PROPERTY_REF): Increased the number of operands
660         from 3 to 4.
661         * objc-act.c (objc_finish_message_expr): Added optional argument
662         allowing to return the deprecated method prototype for deprecated
663         methods, instead of immediately emitting the deprecation warning.
664         (objc_maybe_build_component_ref): Do not warn for a deprecated
665         property.  When building the getter call, get the deprecated
666         method prototype from objc_finish_message_expr() and put it into
667         the PROPERTY_REF.
668         (objc_build_class_component_ref): Same change.
669         (finish_class): Mark the getter and setter as deprecated if they
670         are generated from a deprecated property.
671         (objc_gimplify_property_ref): If the getter is deprecated, emit a
672         deprecation warning.
673         (objc_build_setter_call, objc_build_message_expr,
674         objc_finish_foreach_loop): Updated call to
675         objc_finish_message_expr.
677 2010-12-28  Nicola Pero  <nicola.pero@meta-innovation.com>
679         PR objc/47076
680         * objc-act.c (lookup_protocol): Added 'definition_required'
681         argument.  If 'definition_required', and the protocol is not
682         defined, emit a warning.
683         (objc_declare_protocols): Updated call to lookup_protocol.
684         (start_protocol): Same change.
685         (check_protocol_recursively): Same change.
686         (objc_build_protocol_expr): Same change.
687         (lookup_and_install_protocols): Added definition_required argument.
688         Pass it to lookup_protocol.
689         (objc_get_protocol_qualified_type): Updated call to
690         lookup_and_install_protocols.
691         (start_class): Updated calls to lookup_and_install_protocols; pass
692         true to 'definition_required' to get the warnings.
693         (start_protocol): Updated calls to lookup_and_install_protocols.
695 2010-12-28  Nicola Pero  <nicola.pero@meta-innovation.com>
697         * objc-act.c (objc_start_category_interface): Produce an error if
698         a class extension is found after the class @implementation.
700 2010-12-28  Nicola Pero  <nicola.pero@meta-innovation.com>
702         PR objc/47073
703         * objc-act.c (encode_method_prototype): Fixed both location and
704         format string of error "type %qT does not have a known size".
706 2010-12-26  Nicola Pero  <nicola.pero@meta-innovation.com>
708         * config-lang.in (gtfiles): Added c-family/c-cppbuiltin.c.
710 2010-12-22  Nathan Froyd  <froydnj@codesourcery.com>
712         * objc-act.c (next_sjlj_build_enter_and_setjmp): Use prototype_p.
714 2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
716         * objc-act.c (objc_init): Call using_eh_for_cleanups.
717         (objc_init_exceptions): Renamed to objc_maybe_warn_exceptions.  Do
718         not call using_eh_for_cleanups.
719         (objc_begin_try_stmt): Do not call objc_init_exceptions.
720         (objc_build_throw_stmt): Updated call to
721         objc_maybe_warn_exceptions.
723 2010-12-18  Iain Sandoe  <iains@gcc.gnu.org>
725         * objc/objc-act.c (objc_eh_personality): Select personality name on
726         runtime.
727         (objc_init_exceptions): New.
728         (objc_begin_try_stmt): Use objc_init_exceptions.
729         (objc_build_throw_stmt): Likewise.
731 2010-12-10  Nicola Pero  <nicola.pero@meta-innovation.com>
733         * objc-act.c (objc_in_class_extension): New.
734         (objc_start_category_interface): If -fobjc-std=objc1
735         was specified, produce an error if a class extension is used.
736         (objc_finish_interface): Reset objc_in_class_extension to false.
737         (objc_add_property_declaration): Allow a class extension to extend
738         readonly properties in the main @interface to be readwrite.
739         (start_class): Added code to deal with class extensions.  In that
740         case, return the existing interface after adding any additional
741         protocols to it and setting objc_in_class_extension to true.
742         (continue_class): If in a class extension, do not generate the
743         instance variable template.
745 2010-12-08  Nicola Pero  <nicola.pero@meta-innovation.com>
747         * objc-act.c (objc_build_throw_stmt): Check that the argument of
748         @throw is an object and emit an error if not.
750 2010-12-08  Nicola Pero  <nicola.pero@meta-innovation.com>
752         * objc-act.c (objc_finish_foreach_loop): Use error_at() instead of
753         error() when printing an error about the iterating variable or
754         collection not being an object.
756 2010-12-06  Nicola Pero  <nicola.pero@meta-innovation.com>
758         * objc-act.c (objc_finish_foreach_loop): Mark the
759         object_expression as used.
761 2010-12-06  Nicola Pero  <nicola.pero@meta-innovation.com>
763         * objc-act.c: Include c-family/c-objc.h.
764         * objc-lang.c: Same change.
765         * Make-lang.in (objc/objc-act.o): Depend on
766         c-family/c-objc.h.
767         (objc/objc-lang.o): Same change.
768         * config-lang.in (gtfiles): Added c-family/c-objc.h.
770 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
772         * lang-specs.h: Don't handle -ftraditional.
774 2010-12-02  Nicola Pero  <nicola.pero@meta-innovation.com>
776         * objc-act.c (objc_build_throw_stmt): Return error_mark_node and
777         not NULL_TREE when a @throw is used outside of a @catch block.
779 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
781         * objc-act.c (objc_build_volatilized_type): Removed.
782         (objc_non_volatilized_type): Removed.
783         (objc_type_quals_match): Removed.
784         (local_variables_to_volatilize): New.
785         (objc_volatilize_decl): Add the decl to volatilize to
786         local_variables_to_volatilize, but don't volatilize it yet.
787         (objc_finish_function): New.
788         * objc-act.h (local_variables_to_volatilize): New.
790 2010-11-29  Nicola Pero  <nicola.pero@meta-innovation.com>
791             Mike Stump  <mikestump@comcast.net>
793         Allow 'make check-objc -j2'
794         * Make-lang.in (lang_checks_parallelized): New.
795         (check_objc_parallelize): New.
797 2010-11-29  Nicola Pero  <nicola.pero@meta-innovation.com>
799         * objc-act.c (start_class): When a class is reimplemented,
800         generate an error and avoid adding the class to the list of
801         implemented classes again, but do not return error_mark_node.
803 2010-11-29  Nicola Pero  <nicola.pero@meta-innovation.com>
805         * objc-act.c (objc_maybe_build_component_ref): Removed TODO.
807 2010-11-29  Nicola Pero  <nicola.pero@meta-innovation.com>
809         * objc-act.c (objc_eh_runtime_type): Avoid ICE if error_mark_node
810         is passed as argument.
811         (objc_begin_catch_clause): Added code to deal with an
812         error_mark_node or NULL_TREE argument.  Improved checks for
813         invalid arguments.  Added code to traverse typedefs.
815 2010-11-29  Nicola Pero  <nicola.pero@meta-innovation.com>
817         * objc-act.c (objc_demangle): Return immediately if the string is
818         too short.  Detect names that do not need demangling, and return
819         them unchanged.
821 2010-11-27  Nicola Pero  <nicola.pero@meta-innovation.com>
823         Implemented optional properties.
824         * objc-act.h (PROPERTY_OPTIONAL): New.
825         * objc-act.c (objc_add_property_declaration): Set
826         PROPERTY_OPTIONAL if appropriate.
827         (finish_class): When generating definitions of setter and getter
828         methods associated with a property for a protocol, mark them as
829         optional if the property is optional.
830         (maybe_make_artificial_property_decl): Added 'getter_name'
831         argument.  Set PROPERTY_OPTIONAL.
832         (objc_maybe_build_component_ref): Updated calls to
833         maybe_make_artificial_property_decl.  Added code for optional,
834         readonly properties.
835         (objc_build_class_component_ref): Updated call to
836         maybe_make_artificial_property_decl.
838 2010-11-27  Nicola Pero  <nicola.pero@meta-innovation.com>
840         * objc-act.c (objc_build_struct): Fixed loops that save and
841         restore TYPE_OBJC_INFO to iterate over all variants of the type; a
842         special case for the current type is then no longer required.
843         Duplicate TYPE_LANG_SPECIFIC for each type before restoring
844         TYPE_OBJC_INFO.
845         (objc_get_protocol_qualified_type): Updated comments.
847 2010-11-25  Nicola Pero  <nicola.pero@meta-innovation.com>
849         * objc-act.c (objc_build_struct): Install TYPE_OBJC_INTERFACE
850         after finish_struct, not before, otherwise it may be wiped out by
851         it.  This fixes spurious warnings when a class has more than 15
852         instance variables.
854 2010-11-23  Nicola Pero  <nicola.pero@meta-innovation.com>
856         PR objc/24358
857         * lang-specs.h: Added objective-c-cpp-output.  Mapped .mi to
858         objective-c-cpp-output instead of objc-cpp-output.  Print a
859         deprecation note every time objc-cpp-output is requested.
861 2010-11-22  Joseph Myers  <joseph@codesourcery.com>
863         * objc-act.c (write_symbols): Don't declare here.
865 2010-11-22  Nicola Pero  <nicola.pero@meta-innovation.com>
867         PR objc/41108
868         * objc-act.c (objc_generate_write_barrier): Added assert to make sure
869         this function is only called with the next runtime.
871 2010-11-20  Jakub Jelinek  <jakub@redhat.com>
873         PR c/46547
874         * objc-act.c (in_late_binary_op): Remove.
876 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
878         * objc-act.c (objc_start_class_interface): Do not warn that class
879         attributes are unimplemented.  Pass the attributes to start_class.
880         (objc_start_category_interface): Updated call to start_class.
881         (objc_start_class_implementation): Same change.
882         (objc_start_category_implementation): Same change.
883         (objc_build_class_component_ref): Warn if the class is deprecated.
884         (build_private_template): Mark the template as deprecated if the
885         class is deprecated.
886         (start_class): Added 'attributes' argument.  Emit a warning if
887         using a deprecated class as superclass of a class, or original
888         class of a category.  Recognize the 'deprecated' attribute when
889         starting and interface, and mark the interface with
890         TREE_DEPRECATED if present.  Store attributes in the interface.
892 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
894         * objc-act.c (lookup_protocol): Added 'warn_if_deprecated'
895         argument.  If it is 'true' and the protocol is deprecated, emit a
896         deprecation warning.
897         (objc_start_protocol): Do not warn that protocol attributes are
898         unimplemented.  Pass the attributes to start_protocol.
899         (start_protocol): Added attributes argument.  Recognize the
900         'deprecated' attribute and mark the protocols with TREE_DEPRECATED
901         if present.  Store attributes in the protocol.
902         (objc_declare_protocols): Added 'attributes' argument.  Recognize
903         the 'deprecated' attribute and mark the protocols with
904         TREE_DEPRECATED if present.  Store attributes in the protocol.
905         Updated call to lookup_protocol.
906         (objc_build_protocol_expr): Updated call to lookup_protocol.
907         (check_protocol_recursively): Same change.
908         (lookup_and_install_protocols): Same change.
909         * objc-act.h: Updated comments.
911 2010-11-17  Nicola Pero  <nicola.pero@meta-innovation.com>
913         * objc-act.c (lookup_method_in_protocol_list): Search methods in
914         PROTOCOL_OPTIONAL_CLS_METHODS / PROTOCOL_OPTIONAL_NST_METHODS if
915         they are not found in PROTOCOL_CLS_METHODS / PROTOCOL_NST_METHODS.
917 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
919         * objc-act.c (objc_build_setter_call): New.
920         (objc_maybe_build_modify_expr): Rewritten to build a compound
921         statement.
922         (objc_build_incr_expr_for_property_ref): Updated calls to
923         objc_maybe_build_modify_expr to call objc_build_setter_call
924         instead.  Use build_modify_expr () instead of build2 (MODIFY_EXPR,
925         ...).  Use convert () instead of build1 (NOP_EXPR, ...).  Use
926         TREE_NO_WARNING on the final compound statement to silence C++
927         warnings.
929 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
931         * objc-act.c (objc_build_incr_expr_for_property_ref): New.
932         (objc_create_temporary_var): Moved it towards the beginning of the
933         file so that objc_build_incr_expr_for_property_ref can use it.
935 2010-11-14  Nicola Pero  <nicola.pero@meta-innovation.com>
937         * objc-act.c (objc_add_property_declaration): Check that the decl
938         we received from the parser is a FIELD_DECL; reject array and
939         bitfield properties.  Convert the warning when a property is
940         readonly and a setter is specified into an error.  Convert errors
941         when a property declaration does not match a property declaration
942         in a superclass into warnings.
943         (objc_add_synthesize_declaration_for_property): Use
944         DECL_BIT_FIELD_TYPE to determine the type of an instance variable
945         if it is a bitfield.  Throw an error if we are asked to synthesize
946         setters/getters for a bitfield instance variable but the property
947         is not appropriate - it must be assign and nonatomic.  If the
948         property is readonly, allow the instance variable type to be a
949         specialization of the property type.
950         (objc_type_valid_for_messaging): Fixed returning 'false' for a
951         Class qualified with a protocol when the 'accept_classes' argument
952         is 'false'.
954 2010-11-13  Nicola Pero  <nicola.pero@meta-innovation.com>
956         * objc-act.c (objc_get_protocol_qualified_type): detect cases
957         where we are asked to attach a protocol to something which is not
958         an Objective-C object type, and produce an error.
960 2010-11-11  Nicola Pero  <nicola.pero@meta-innovation.com>
962         * objc-act.c (objc_add_property_declaration): Check that the type
963         of a property and of an inherited property match.
964         (objc_maybe_build_component_ref): Tidied up indentation and
965         comments.
966         (objc_common_type): Added new type of check (-5).
967         (objc_add_synthesize_declaration_for_property): Check that the
968         property to synthesize and the instance variable to use have the
969         same type.
971 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
973         * objc-act.c (objc_init): Use %' in diagnostic.
974         (objc_set_method_opt): Remove trailing '.' from diagnostic.
976 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
978         * objc-act.c (dump_base_name): Don't declare here.
980 2010-11-08  Nicola Pero  <nicola.pero@meta-innovation.com>
982         * objc-act.c (objc_add_dynamic_declaration_for_property): Do not
983         search for the @property declation only in the current context,
984         but also in inherited properties.  Do not mark the original
985         PROPERTY_DECL in the @interface or @protocol with
986         PROPERTY_DYNAMIC.
987         (check_methods): To check if a method is associated with a
988         @dynamic property, search for the property in IMPL_PROPERTY_DECL.
989         (check_accessible_methods): Same change.
990         * objc-act.h: Updated comment.
992 2010-11-08  Nicola Pero  <nicola.pero@meta-innovation.com>
994         * objc-act.c (objc_add_synthesize_declaration_for_property):
995         Iterate over IMPL_PROPERTY_DECL, not CLASS_PROPERTY_DECL, when
996         checking for an existing @synthesize or @dynamic declaration.
997         Search for an inherited @property declaration if none is found in
998         the local interface.  If the required instance variable does not
999         exist, return instead of trying to continue to prevent a compiler
1000         crash later.  Check that the instance variable is not already
1001         being used by another @synthesize.
1002         (objc_add_dynamic_declaration_for_property): Iterate over
1003         IMPL_PROPERTY_DECL, not CLASS_PROPERTY_DECL, when checking for an
1004         existing @synthesize or @dynamic declaration.
1005         (objc_synthesize_getter): Search for the getter declaration in
1006         protocols and superclasses as well.
1007         (objc_synthesize_setter): Search for the setter declaration in
1008         protocols and superclasses as well.
1010 2010-11-08  Nicola Pero  <nicola.pero@meta-innovation.com>
1012         * objc-act.c (lookup_property): When checking categories, also
1013         check the protocols attached to each.
1014         (objc_add_property_declaration): Determine the
1015         PROPERTY_SETTER_NAME and PROPERTY_GETTER_NAME here.  Tidied up
1016         error message.  Search for an existing property declaration with
1017         the same name which would be inherited from the class hiearchy,
1018         and produce an error if it has incompatible attributes.
1019         (check_methods): Changed second parameter.  If the method is a
1020         getter or setter for a property, do not warn if it is inherited as
1021         opposed to implemented directly in the class.
1022         (check_protocol): Updated calls to check_methods.
1023         (finish_class): Do not determine the PROPERTY_SETTER_NAME and
1024         PROPERTY_GETTER_NAME here; this is now done earlier, in
1025         objc_add_property_declaration.
1026         * objc-act.h (CLASS_NAME, CLASS_SUPER_NAME): Added comments.
1028 2010-11-06  Nicola Pero  <nicola.pero@meta-innovation.com>
1030         Fixed using the Objective-C 2.0 dot-syntax with self and super.
1031         * objc-act.c (OBJC_LOOKUP_NO_INSTANCE_METHODS_OF_ROOT_CLASS): New.
1032         (maybe_make_artificial_property_decl): Added 'implementation'
1033         argument.  Use OBJC_LOOKUP_NO_INSTANCE_METHODS_OF_ROOT_CLASS when
1034         looking up getters or setters for a class.  If an implementation
1035         is specified, search it as well for a getter or setter.
1036         (objc_maybe_build_component_ref): Updated calls to
1037         maybe_make_artificial_property_decl; added code to deal with
1038         'self' and 'super' and with methods declared locally in the
1039         implementation.  Store the getter call expression in the
1040         PROPERTY_REF instead of throwing it away.
1041         (objc_build_class_component_ref): Updated calls to
1042         maybe_make_artificial_property_decl, and store the getter call
1043         expression in PROPERTY_REF instead of throwing it away.
1044         (lookup_method_static): Implemented
1045         OBJC_LOOKUP_NO_INSTANCE_METHODS_OF_ROOT_CLASS option.
1046         (objc_gimplify_property_ref): Do not build the getter method call
1047         here; instead use the one stored in the PROPERTY_REF.  If it's not
1048         there, produce helpful error messages.
1049         * objc-tree.def (PROPERTY_REF): Increased the number of operands
1050         from 2 to 3.  Updated comments.
1051         * objc-act.h (PROPERTY_REF_GETTER_CALL): New.
1053 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
1055         PR target/44981
1056         * objc-act.c (objc_build_string_object): Amend for renamed hook.
1057         (objc_string_ref_type_p): New.
1058         (objc_check_format_arg): New.
1060 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
1062         Fixed using the Objective-C 2.0 dot-syntax with class names.
1063         * objc-act.c (objc_build_class_component_ref): New.
1065 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
1067         * objc-act.c (objc_add_dynamic_declaration): Allow @dynamic in a
1068         category.
1069         (objc_type_valid_for_messaging): Added 'accept_classes' argument;
1070         if set to 'true', return 'true' for Class objects.  Do not remove
1071         more than on pointer indirection.
1072         (objc_add_property_declaration): Only warn about 'assign'
1073         semantics for Objective-C objects if warn_property_assign_default;
1074         and do not warn if the property is readonly or if the type is a Class.
1075         (objc_finish_foreach_loop): Updated calls to
1076         objc_type_valid_for_messaging.
1078 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
1080         Implemented -fobjc-std=objc1 flag.
1081         * objc-act.c (objc_start_class_interface): If attributes are
1082         specified when flag_objc1_only is set, print an error.
1083         (objc_start_category_interface): Same change.
1084         (objc_start_protocol): Same change.
1085         (objc_add_method_declaration): Same change.
1086         (objc_start_method_definition): Same change.
1087         (objc_build_keyword_decl): Same change.
1088         (objc_set_visibility): If OBJC_IVAR_VIS_PACKAGE is used when
1089         flag_objc1_set is set, print an error.
1090         (objc_set_method_opt): If flag_objc1_only is set, print an error.
1091         (objc_add_property_declaration): Same change.
1092         (objc_add_synthesize_declaration): Same change.
1093         (objc_add_dynamic_declaration): Same change.
1094         (objc_finish_foreach_loop): Same change.
1095         (objc_maybe_build_component_ref): If flag_objc1_only is set,
1096         return immediately.
1098 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
1100         * objc-act.c (maybe_make_artificial_property_decl): New.
1101         (objc_maybe_build_component_ref): Call
1102         maybe_make_artificial_property_decl if a property can not be
1103         found.  Do not call objc_finish_message_expr if
1104         PROPERTY_HAS_NO_GETTER.
1105         * objc-act.h Updated comments.
1106         (PROPERTY_HAS_NO_GETTER): New.
1107         (PROPERTY_HAS_NO_SETTER): New.
1108         * objc-tree.def: Updated comment.
1110 2010-11-01  Nicola Pero  <nicola.pero@meta-innovation.com>
1112         Implemented format and noreturn attributes for Objective-C methods.
1113         * objc-act.c (objc_start_method_definition): If method attributes
1114         are specified emit a warning and ignore them.
1115         (build_objc_method_call): Moved deprecation warnings from here ...
1116         (objc_finish_message_expr): to here.  Do not emit deprecation
1117         warnings if the receiver is of type 'id'.
1118         (really_start_method): Install 'deprecation' and 'noreturn'
1119         attributes.
1120         (objc_decl_method_attributes): Carefully filter out the list of
1121         attributes, allowing only "noreturn", "format", "sentinel" and
1122         "deprecated".  In the case of "format", adjust the arguments.
1123         Always process the attributes in the same way no matter if
1124         "sentinel" is in the list or not.
1126 2010-11-01  Nicola Pero  <nicola.pero@meta-innovation.com>
1128         * objc-act.c (objc_maybe_build_component_ref): Warn about using
1129         deprecated properties.
1130         (objc_maybe_printable_name): Support PROPERTY_DECL.
1132 2010-11-01  Nicola Pero  <nicola.pero@meta-innovation.com>
1134         Implemented Objective-C 2.0 property accessors.
1135         * objc-act.h (enum objc_tree_index): Added OCTI_GET_PROPERTY_DECL,
1136         OCTI_SET_PROPERTY_DECL, OCTI_COPY_STRUCT_DECL,
1137         OCTI_GET_PROPERTY_STRUCT_DECL and OCTI_SET_PROPERTY_STRUCT_DECL.
1138         (objc_getProperty_decl): New.
1139         (objc_setProperty_decl): New.
1140         (objc_copyStruct_decl): New.
1141         (objc_getPropertyStruct_decl): New.
1142         (objc_setPropertyStruct_decl): New.
1143         * objc-act.c (build_objc_property_accessor_helpers): New.
1144         (synth_module_prologue): Call
1145         build_objc_property_accessor_helpers.
1146         (lookup_ivar): New.
1147         (objc_synthesize_getter): Implemented synthesizing getters that
1148         work with properties that are not nonatomic, assign properties.
1149         (objc_synthesize_setter): Implemented synthesizing setters that
1150         work with properties that are not nonatomic, assign properties.
1152 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
1154         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1155         * objc-tree.def (PROPERTY_REF): New.
1156         * objc-act.h: Added comments for all the PROPERTY_ macros.
1157         (PROPERTY_NAME): Use DECL_NAME.
1158         (PROPERTY_COPIES): Removed.
1159         (PROPERTY_READONLY): Use DECL_LANG_FLAG_0 for it.
1160         (PROPERTY_NONATOMIC): New.
1161         (objc_property_assign_semantics): Make it a typedef.
1162         (PROPERTY_ASSIGN_SEMANTICS): New.
1163         (PROPERTY_DYNAMIC): New.
1164         (PROPERTY_REF_OBJECT): New.
1165         (PROPERTY_REF_PROPERTY_DECL): New.
1166         * objc-act.c (CALL_EXPR_OBJC_PROPERTY_GETTER): Removed.
1167         (in_objc_property_setter_name_context): Removed.
1168         (objc_add_property_declaration): Removed copies and ivar arguments
1169         and code supporting them.  Fixed recovering when readonly and
1170         setter attributes are specified.  Removed support for @property in
1171         @implementation context.  Updated error message.  Double-check
1172         that a property does not have a DECL_INITIAL.  Validate the
1173         property assign semantics and emit appropriate errors and
1174         warnings.  Check for duplicate property declarations.  Set
1175         DECL_SOURCE_LOCATION, TREE_DEPRECATED, PROPERTY_NONATOMIC,
1176         PROPERTY_ASSIGN_SEMANTICS and PROPERTY_DYNAMIC of the new
1177         PROPERTY_DECL.  Do not set PROPERTY_COPIES.  Set
1178         PROPERTY_IVAR_NAME to NULL_TREE.
1179         (objc_build_getter_call): Renamed to
1180         objc_maybe_build_component_ref.  If the property is not found in
1181         the interface, search in the protocol list.  Do not generate the
1182         getter call; instead, build and return a PROPERTY_REF.
1183         (objc_is_property_ref): New.
1184         (objc_setter_func_call): Removed.
1185         (get_selector_from_reference): Removed.
1186         (is_property): Removed.
1187         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1188         Updated to work on a PROPERTY_REF and use the PROPERTY_DECL from
1189         the PROPERTY_REF.  Generate an error if the property is read-only.
1190         (build_property_reference): Removed.
1191         (objc_finish_message_expr): Removed check to produce "readonly
1192         property can not be set" error when
1193         in_objc_property_setter_name_context.  We now generate the error
1194         earlier, in objc_maybe_build_modify_expr, which will only generate
1195         the setter call if the property is readwrite.
1196         (check_methods): Recognize dynamic properties.
1197         (check_methods_accessible): Same change.
1198         (objc_build_property_ivar_name): Removed.
1199         (objc_build_property_setter_name): Dropped bool argument.  Always
1200         add the ':' at the end.
1201         (objc_gen_one_property_datum): Removed.
1202         (objc_process_getter_setter): Removed.
1203         (objc_synthesize_getter): Mark 'klass' argument as unused.  Use
1204         PROPERTY_GETTER_NAME instead of PROPERTY_NAME.  Set the
1205         DECL_SOURCE_LOCATION of the new method to be the same as the one
1206         for the @synthesize.  Always use PROPERTY_IVAR_NAME as it is
1207         instead of trying to guess what it should be.  Removed use of
1208         CLASS_IVARS.  Use the location of @synthesize for c_finish_return
1209         and c_end_compound_statement.
1210         (objc_synthesize_setter): Mark 'klass' argument as unused.  Use
1211         PROPERTY_SETTER_NAME instead of trying to guess what it should be.
1212         Set the DECL_SOURCE_LOCATION of the new method to be the same as
1213         the one for the @synthesize.  Always use PROPERTY_IVAR_NAME as it
1214         is instead of trying to guess what it should be.  Removed use of
1215         CLASS_IVARS.  Use the location of @synthesize for c_finish_return
1216         and c_end_compound_statement.  Emit an error and keep going,
1217         instead of aborting, if the setter prototype does not have the
1218         expected argument.
1219         (objc_add_synthesize_declaration_for_property): New.
1220         (objc_add_synthesize_declaration): Removed ATTRIBUTE_UNUSED from
1221         all arguments.  Improved error message.  Filled in the rest of the
1222         function, which used to be a placeholder, with an actual
1223         implementation.
1224         (objc_add_dynamic_declaration_for_property): New.
1225         (objc_add_dynamic_declaration): Removed ATTRIBUTE_UNUSED from all
1226         arguments.  Improved error message.  Filled in the rest of the
1227         function, which used to be a placeholder, with an actual
1228         implementation.
1229         (objc_gen_property_data): Rewritten.
1230         (finish_class): Added explicit switch cases for
1231         CLASS_INTERFACE_TYPE, CATEGORY_INTERFACE_TYPE and
1232         PROTOCOL_INTERFACE_TYPE.  Added a default switch case which is
1233         gcc_unreachable.  Rewritten the processing of properties, in
1234         particular to not synthesize prototypes for getters and setters if
1235         they already exist and to install the getter and setter names into
1236         PROPERTY_GETTER_NAME and PROPERTY_SETTER_NAME.  Do not generate
1237         warnings about setter, getter and ivar property attributes.
1238         (objc_lookup_ivar): Removed support for properties.
1239         (objc_gimplify_property_ref): New.
1240         (objc_gimplify_expr): Use a switch.  In case of a PROPERTY_REF, call
1241         objc_gimplify_property_ref.
1243 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
1245         * objc-act.c (objc_add_property_declaration): Added arguments to
1246         pass the various property attributes that were parsed with the
1247         property declaration.  Process arguments to determine the final
1248         property attributes and produce error messages as appropriate.
1249         Added temporary code to keep the compiler silent about variables
1250         set but not used - for new attributes that are only checked but
1251         have no effect yet.
1252         (property_readonly): Removed.
1253         (property_setter): Removed.
1254         (property_getter): Removed.
1255         (property_ivar): Removed.
1256         (property_copies): Removed.
1257         (objc_set_property_attr): Removed.
1258         * objc-act.h (enum property_assign_semantics): New.
1260 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
1262         * objc-act.c (objc_add_property_variable): Renamed to
1263         objc_add_property_declaration.  Added location argument.  Updated
1264         warnings and errors to use it.  Use error, not fatal_error, if a
1265         property declaration is found outside an interface or
1266         implementation context.
1268 2010-10-24  Nicola Pero  <nicola.pero@meta-innovation.com>
1270         * objc-act.c (objc_build_keyword_decl): Updated comments.  Do not
1271         emit a warning that method parameter attributes are unimplemented.
1272         Instead, store them into DECL_ATTRIBUTES of the KEYWORD_DECL.
1273         (start_method_def): Copy attributes from each KEYWORD_DECL into
1274         the corresponding PARM_DECL.
1275         (objc_warn_deprecated_use): Removed.
1276         (build_objc_method_call): Call warn_deprecated_use, not
1277         objc_warn_deprecated_use.
1278         (objc_maybe_printable_name): Do not try to get the identifier name
1279         of DECLs that we don't recognize.  Immediately return NULL for them.
1280         (objc_printable_name): Removed C++-specific case, which is no
1281         longer used.  Updated comments.
1283 2010-10-23  Nicola Pero  <nicola.pero@meta-innovation.com>
1285         * objc-act.c (OBJC_GEN_METHOD_LABEL): Updated comments.
1286         (objc_demangle): Return NULL if demangling can not be done because
1287         the string to demangle is not an Objective-C mangled method name.
1288         Be smarter in demangling method names so that at least for methods
1289         with no arguments we are able to almost always demangle '_' correctly.
1290         Updated comments.
1291         (objc_maybe_printable_name): New.
1292         (objc_printable_name): Call objc_maybe_printable_name.  If it
1293         returns NULL, call cxx_printable_name in Objective-C++.
1295 2010-10-21  Iain Sandoe  <iains@gcc.gnu.org>
1297         Based on the CFString implementation in FSF apple/trunk branch.
1299         * objc/objc-act.c (objc_build_string_object): Handle CFStrings.
1301 2010-10-21  Nicola Pero  <nicola.pero@meta-innovation.com>
1303         * objc-act.c (get_objc_string_decl): Use a switch instead of a
1304         chain of ifs.  Use gcc_unreachable instead of abort.
1305         (add_objc_string): Same change.
1306         (generate_protocol_list): Same change - twice.
1307         (synth_id_with_class_suffix): Same change.
1308         (build_keyword_selector): Same change - twice.
1309         (objc_build_message_expr): Same change.
1310         (objc_build_selector_expr): Same change.
1311         (check_methods): Same change - and added missing gcc_unreachable
1312         for default case.
1313         (check_methods_accessible): Same change - twice, and added missing
1314         gcc_unreachable for default case in one of them.
1315         (start_class): Same change - and added missing gcc_unreachable for
1316         default case.
1317         (continue_class): Same change.
1318         (objc_gen_property_data): Same change.
1319         (finish_class): Same change.
1320         (encode_type_qualifiers): Added missing gcc_unreachable.
1321         (encode_type): Small code tidy up to reduce duplicated code.  Use
1322         gcc_unreachable instead of abort - twice.
1323         (encode_gnu_bitfield): Use a switch instead of a chain of ifs -
1324         twice.  Added missing gcc_unreachable for default case - twice.
1325         (dump_interface): Use a switch instead of a chain of ifs.
1326         (handle_impent): Same change.
1328 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
1330         * objc-act.h (objc_inherit_code): Removed.
1331         * objc-act.c (objc_inherit_code): Removed.
1332         (objc_set_method_type): Removed.
1333         (objc_build_method_signature): Added is_class_method argument.
1334         Use it instead of the global objc_inherit_code variable.
1335         (objc_add_method_declaration): Same change.
1336         (objc_start_method_definition): Same change.
1337         (objc_generate_cxx_ctor_or_dtor): Updated call to
1338         objc_start_method_definition.  Do not call objc_set_method_type.
1339         (adjust_type_for_id_default): Mark as inline.
1340         (objc_synthesize_getter): Updated call to
1341         objc_start_method_definition.  Do not set objc_inherit_code.
1342         (objc_synthesize_setter): Updated call to
1343         objc_start_method_definition.  Do not set objc_inherit_code.
1345 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
1347         Merge from 'apple/trunk' branch on FSF servers.  Obvious updates
1348         to gcc_alloc_xxx calls in hash_init and hash_class_name_enter to
1349         get it to compile in the current trunk.
1351         2006-01-27 Fariborz Jahanian <fjahanian@apple.com>
1353         Radar 4345837
1354         * objc/objc-act.c (hash_class_name_enter): New.
1355         (hash_class_name_lookup): New.
1356         (objc_declare_alias): Enter alias name into hash table.
1357         (objc_declare_class): Enter class name into hash table.
1358         (objc_is_class_name): Do a hash look up of class name.
1359         (hash_init): Initialize the two new hash tables.
1360         * objc-act.h: Added cls_name_hash_list and als_name_hash_list
1361         declarations, removed class_chain and alias_chain.
1363 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
1365         * objc-lang.c (finish_file): Removed.
1366         * objc-act.c (objc_finish_file): Renamed to
1367         objc_write_global_declarations.  Do not try to instantiate C++
1368         templates when compiling Objective-C++ as this is now
1369         automatically done before this function is called.  Do not check
1370         for syntax-only run or PCH generation as this is done by the
1371         callers.
1372         * objc-act.h (objc_finish_file): Removed.
1374 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
1376         Implemented parsing @synthesize and @dynamic for
1377         Objective-C/Objective-C++.
1378         * objc-act.c (objc_add_synthesize_declaration): New.
1379         (objc_add_dynamic_declaration): New.
1381 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
1383         * objc-act.c (lookup_and_install_protocols): Return NULL if passed
1384         error_mark_node.
1386 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
1388         Merge from 'apple/trunk' branch on FSF servers.
1390         2006-03-10  Fariborz Jahanian <fjahanian@apple.com>
1392         Radar 4407151
1393         * objc/objc-act.c (objc_is_class_name): template parameter is not
1394         an objective class name.
1395         (objc_generate_cxx_cdtors): Check for the null
1396         objc_implementation_context.
1398 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
1400         Merge from 'apple/trunk' branch on FSF servers.
1402         2005-11-08  Fariborz Jahanian <fjahanian@apple.com>
1404         Radar 4330422
1405         * objc/objc-act.c (objc_non_volatilized_type): New
1407         2005-10-07  Fariborz Jahanian <fjahanian@apple.com>
1409         Radar 4204796
1410         * objc-act.c (objc_build_volatilized_type): Build 'volatilzed'
1411         types with proper attribute set and correctly.
1412         (objc_volatilize_decl): Remove unneeded code.
1413         (objc_type_quals_match): Use the new attribute to check on
1414         'volatilzed' type.
1415         (hash_init): removed unneeded code.
1417 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
1419         Merge from 'apple/trunk' branch on FSF servers.
1421         2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1423         Radar 4133425
1424         * objc-act.c (objc_diagnose_private_ivar): New.
1426 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
1428         * objc-act.c: Rename 'objc_public_flag' to  objc_ivar_visibility and
1429         make its type 'objc_ivar_visibility_kind'.
1430         (objc_start_class_interface): Update to use visibility enum.
1431         (objc_start_class_implementation): Likewise.
1432         (objc_set_visibility): Update to use visibility enum, warn that
1433         @package is handle as per @public.
1434         (add_instance_variable): Handle OBJC_IVAR_VIS_PACKAGE.
1435         * objc-act.h: Rename 'objc_public_flag' to  objc_ivar_visibility and
1436         make its type 'objc_ivar_visibility_kind'.
1438 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
1440         merge from FSF apple 'trunk' branch.
1441         2006 Fariborz Jahanian <fjahanian@apple.com>
1443         Radars 4436866, 4505126, 4506903, 4517826
1444         * objc-act.c (CALL_EXPR_OBJC_PROPERTY_GETTER): New.
1445         property_readonly, property_getter, property_setter, property_ivar,
1446         property_copies, in_objc_property_setter_name_context: New vars.
1447         (objc_set_property_attr): New.
1448         (objc_add_property_variable): New.
1449         (lookup_property_in_list): New.
1450         (lookup_property): New.
1451         (objc_build_getter_call): New.
1452         (objc_setter_func_call): New.
1453         (get_selector_from_reference): New.
1454         (objc_build_setter_call): New.
1455         (is_property): New.
1456         (build_property_reference): New.
1457         (objc_finish_message_expr): Detect readonly property and warn.
1458         (objc_build_property_ivar_name): New.
1459         (objc_build_property_setter_name): New.
1460         (objc_gen_one_property_datum): New.
1461         (objc_process_getter_setter): New.
1462         (objc_synthesize_getter): New.
1463         (objc_synthesize_setter): New.
1464         (objc_gen_property_data): New.
1465         (finish_class): Generate property data.
1466         (comp_proto_with_proto): Separated from ...
1467         (match_proto_with_proto): ... New.
1468         (objc_lookup_ivar): Handle properties.
1469         * objc-tree.def (PROPERTY_DECL): New tree code.
1470         * objc-act.h: CLASS_LANG_SLOT_ELTS, PROTOCOL_LANG_SLOT_ELTS update size.
1471         (METHOD_PROPERTY_CONTEXT): New.
1472         (PROPERTY_NAME): New.
1473         (PROPERTY_GETTER_NAME): New.
1474         (PROPERTY_SETTER_NAME): New.
1475         (PROPERTY_IVAR_NAME): New.
1476         (PROPERTY_READONLY): New.
1477         (PROPERTY_COPIES): New.
1478         (TOTAL_CLASS_RAW_IVARS): New.
1479         (CLASS_PROPERTY_DECL): New.
1480         (IMPL_PROPERTY_DECL): New.
1481         * objc-lang.c (objc_init_ts): Update fields for property_decl.
1483 2010-10-13  Richard Henderson  <rth@redhat.com>
1485         * objc-act.c (objc_eh_personality): Update call to
1486         build_personality_function.
1488 2010-10-13  Iain Sandoe  <iains@gcc.gnu.org>
1490         merge from FSF apple 'trunk' branch.
1492         2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1493         Radar 3803157 (method attributes)
1494         * objc/objc-act.h (METHOD_TYPE_ATTRIBUTES): New macro.
1495         * objc/objc-act.c (objc_decl_method_attributes): New.
1496         (objc_add_method_declaration): Process method's attribute.
1497         (objc_start_method_definition): Ditto.
1498         (build_objc_method_call): Inject method attribute into
1499         built function type.
1500         (objc_method_decl): New.
1501         (objc_warn_deprecated)use): New.
1503 2010-10-07  Andi Kleen  <ak@linux.intel.com>
1505         * Make-lang.in (cc1obj-dummy): Remove.
1506         (cc1obj-checksum): Change to run checksum over object files
1507         and options only.
1509 2010-10-07  Nicola Pero  <nicola.pero@meta-innovation.com>
1511         PR objc/45925
1512         * objc-act.c (objc_finish_foreach_loop): Convert return value of
1513         countByEnumeratingWithState:objects:count: to long unsigned int.
1515 2010-10-07  Iain Sandoe  <iains@gcc.gnu.org>
1517         * objc-act.c (build_objc_method_call): Replace calls to
1518         build_function_call () with the VEC equivalent.  Construct parameter
1519         lists as VECs.
1521 2010-10-07  Iain Sandoe  <iains@gcc.gnu.org>
1523         * objc-act.c (objc_build_message_expr):  Call mark_exp_read () to
1524         signal that the receiver has been used.
1526 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
1528         * README: Obsolete file removed.
1530 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
1532         Implemented fast enumeration for Objective-C.
1533         * objc-act.c (build_fast_enumeration_state_template): New.
1534         (TAG_ENUMERATION_MUTATION): New.
1535         (TAG_FAST_ENUMERATION_STATE): New.
1536         (synth_module_prologue): Call build_fast_enumeration_state_template() and set up
1537         objc_enumeration_mutation_decl.
1538         (objc_create_temporary_var): Allow providing a name to temporary
1539         variables.
1540         (objc_build_exc_ptr): Updated calls to
1541         objc_create_temporary_var().
1542         (next_sjlj_build_try_catch_finally): Same change.
1543         (objc_finish_foreach_loop): New.
1544         * objc-act.h: Added OCTI_FAST_ENUM_STATE_TEMP,
1545         OCTI_ENUM_MUTATION_DECL, objc_fast_enumeration_state_template,
1546         objc_enumeration_mutation_decl.
1548         Merge from 'apple/trunk' branch on FSF servers.
1550         2006-04-12 Fariborz Jahanian <fjahanian@apple.com>
1552         Radar 4507230
1553         * objc-act.c (objc_type_valid_for_messaging): New routine to check
1554         for valid objc object types.
1555         (objc_finish_foreach_loop): Check for invalid objc objects in
1556         foreach header.
1558 2010-10-05  Nicola Pero  <nicola.pero@meta-innovation.com>
1560         Merge from 'apple/trunk' branch on FSF servers.
1562         2005-10-17  Fariborz Jahanian <fjahanian@apple.com>
1564         Radar 4290840
1565         * objc-act.c (objc_start_method_definition): Check for
1566         error_mark_node for the selector name and make a quick exit.
1568 2010-10-04  Andi Kleen <ak@linux.intel.com>
1570         * Make-lang.in (cc1obj-dummy, cc1obj): Add + to build rule.
1572 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
1574         merge from FSF 'apple/trunk' branch.
1575         2006-01-30  Fariborz Jahanian <fjahanian@apple.com>
1577        Radar 4386773
1578        * objc/objc-act.c (objc_set_method_opt): New function.
1579        (objc_start_protocol, objc_finish_interface): Reset
1580        objc_method_optional_flag flag.
1581        (objc_add_method_declaration): Pass on the new
1582        flag to objc_add_method.
1583        (objc_add_method): Add optional methods to new chain in
1584        the protocol class.
1585        * objc/objc-act.h (CLASS_OPTIONAL_CLS_METHODS,
1586        CLASS_OPTIONAL_NST_METHODS): New macros accessing a protocol
1587        class's optional method chains.
1589 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
1591         Merge from 'apple/trunk' branch on FSF servers.
1593         2005-10-04  Fariborz Jahanian <fjahanian@apple.com>
1595         Radar 4278236
1596         * objc-act.c (objc_declare_class): Pick the right
1597         type tree.
1599 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1601         Merge from 'apple/trunk' branch on FSF servers.
1603         2005-10-04  Fariborz Jahanian <fjahanian@apple.com>
1605         Radar 4281748
1606         * objc-act.c (objc_check_global_decl): New
1608 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1610         * objc-act.c (objc_is_reserved_word): Removed.
1612 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
1614         * objc-act.c (objc_add_method_declaration): Handle and ignore
1615         attributes.
1616         (objc_start_method_definition): Likewise.
1617         (objc_generate_cxx_ctor_or_dtor): Pass NULL attributes to ctor/dtor.
1618         (objc_build_keyword_decl): Handle and ignore attributes.
1620 2010-09-28  Richard Henderson  <rth@redhat.com>
1622         * objc-act.c (objc_eh_personality): Use targetm.except_unwind_info.
1624 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
1626         * objc-act.c (objc_start_class_interface): Handle and ignore attributes.
1627         (objc_start_category_interface): Likewise.
1628         (objc_start_protocol): Likewise.
1630 2010-09-28  Nicola Pero  <nicola.pero@meta-innovation.com>
1632         Merge from 'apple/trunk' branch on FSF servers.
1634         2005-08-23  Stuart Hastings <stuart@apple.com>
1635                     Ziemowit Laski  <zlaski@apple.com>
1637         Radar 4209854
1638         * objc-act.c (objc_decay_parm_type): New function.
1639         (get_arg_type_list): Decay types for all named arguments.
1640         (objc_push_parm): Rebuild the PARM_DECL if its type has
1641         been decayed.
1643 2010-09-28  Nicola Pero  <nicola.pero@meta-innovation.com>
1645         * objc-act.c (encode_type): Fixed encoding enums with the next
1646         runtime.
1648 2010-09-28  Nicola Pero  <nicola.pero@meta-innovation.com>
1650         Merge from 'apple/trunk' branch on FSF servers.
1652         2005-07-18  Ziemowit Laski  <zlaski@apple.com>
1654         Radar 4175534
1655         * objc-act.c (objc_compare_types): A new silent comparison
1656         mode (-4), differing from regular comparison (-3) in that
1657         'false' is returned instead of issuing warnings.
1659 2010-09-28  Nicola Pero  <nicola.pero@meta-innovation.com>
1661         * objc-act.c (encode_type): Do not add 'r' with the next runtime.
1662         (encode_aggregate_within): Reorganized code to be more readable.
1663         (encode_aggregate_fields): Updated second argument to be 'bool'
1664         instead of 'int'.
1666 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
1668         PR objc/45763
1669         PR objc/25450
1670         PR objc/25464
1671         * objc-act.c: Improved comments for encoding functions.
1672         (encode_aggregate_within): For the GNU runtime, rewritten some
1673         obsfuscated code to clarify the various cases.
1674         (encode_aggregate): Function removed.
1675         (encode_array): Generate an error if asked to encode an incomplete
1676         array as part of generating instance variables.  Else, when
1677         encoding an incomplete array inside a structure, encode it as an
1678         array of zero size.
1679         (encode_pointer): For the GNU runtime, fixed encoding 'BOOL *' as
1680         '^c' instead of '*'.
1681         (encode_gnu_bitfield): Encode enumerated types exactly in the same
1682         type as integer types instead of using a hardcoded 'i'.  If asked
1683         to encode a non-integer type as a bitfield, do not abort
1684         compilation immediately; instead generate an error, then skip the
1685         type.
1686         (encode_type): Use a 'switch' instead of a sequence of 'if's.
1687         Added a 'default' clause that gets executed if the type can not be
1688         matched, and that encodes it as '?' (unknown) and produces a
1689         warning.  For the GNU runtime, encode enumerated types exactly in
1690         the same way as integer types instead of using a hardcoded 'i'.
1691         Encode long double as 'D'.  Encode 128-bit integers as 'T' or 't'.
1692         Encode C++ reference types as pointers.  Call encode_vector to
1693         encode vectors.
1694         (encode_vector): New function.
1696 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
1698         Merge from 'apple/trunk' branch on FSF servers.  I modified the
1699         changes to be used only when compiling for the NeXT runtime.
1701         2005-10-10  Fariborz Jahanian <fjahanian@apple.com>
1703         Radar 4301047
1705         * objc-act.c (encode_type): Remove the hack.
1707         2005-07-20  Ziemowit Laski  <zlaski@apple.com>
1709         Radar 4136935
1710         * objc-act.c (pointee_is_readonly): New function.
1711         (encode_pointer, encode_aggregate_within, encode_type):
1712         Attempt to emulate GCC 3.3 when generating type encodings.
1714 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
1716         Merge from 'apple/trunk' branch on FSF servers.
1718         2005-12-15  Fariborz Jahanian <fjahanian@apple.com>
1720         Radar 4229905
1721         * objc-act.c (objc_have_common_types): New function.
1723         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
1725         Radar 4154928
1726         * objc-act.c (objc_common_type): New function.
1728 2010-09-27  Richard Guenther  <rguenther@suse.de>
1730         * objc-act.c (objc_get_class_reference): Use CP_TYPE_CONTEXT.
1731         (objc_is_global_reference_p): Use DECL_FILE_SCOPE_P.
1733 2010-09-26  Nicola Pero  <nicola.pero@meta-innovation.com>
1735         * objc-act.c: Removed historical, obsolete comment at the top of
1736         the file.
1738 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
1740         PR objc/23710
1741         * objc-act.c (objc_start_method_definition): Do not abort upon a
1742         'method definition not in @implementation context' error.  Return
1743         'false' instead.
1745 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
1747         PR objc/25965
1748         * objc-act.c (objc_get_interface_ivars): New function.
1749         (objc_collecting_ivars): New variable.
1750         (continue_class): Set and reset objc_collecting_ivars for context.
1752 2010-09-15  Nicola Pero  <nicola.pero@meta-innovation.com>
1754         Merge from 'apple/trunk' branch on FSF servers.
1756         2006-03-09 Fariborz Jahanian <fjahanian@apple.com>
1758         Radar 4457381
1759         * objc/objc-act.c (objc_finish_message_expr): Look for message in
1760         @class's protocol list.
1762         2006-02-07  Fariborz Jahanian <fjahanian@apple.com>
1764         Radar 4219590
1765         * objc/objc-act.c (objc_start_method_definition): Initialize
1766         break/continue labels.
1768         2005-08-22  Ziemowit Laski  <zlaski@apple.com>
1770         Radar 4174166
1771         * objc-act.c (objc_compare_types): Compare function
1772         pointers; indicate success if the right-hand side has
1773         a return type that is covariant, and the argument types
1774         contravariant, with those of the left side.
1776         2005-08-22  Ziemowit Laski  <zlaski@apple.com>
1778         Radar 4216500
1779         * objc-act.c (objc_get_protocol_qualified_type): When looking
1780         at a typedef, retrieve the precise type it describes (rather
1781         than merely looking up a class by name).
1783 2010-09-10  Nicola Pero  <nicola.pero@meta-innovation.com>
1785         * objc/objc-act.c (objc_begin_try_stmt): Generate an error if
1786         -fobjc-exceptions was not used.  (objc_build_throw_stmt): Same
1787         change.
1789 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
1791         * objc-act.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1793 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
1795         PR objc/44140
1796         * objc-act.c: build_objc_string_decl() remove declaration.
1797         (finish_var_decl): Remove forcing of var output and marking
1798         as "Used".
1799         (init_def_list): Use integer_zero_node.
1800         (init_objc_symtab): Use integer_zero_node, make the short
1801         integer type specific on relevant nodes.
1802         (generate_objc_symtab_decl): Remove call to
1803         forward_declare_categories().  Use null_pointer_node where
1804         appropriate.
1805         (build_module_descriptor): Comment and mark this item as
1806         DECL_PRESERVE_P.
1807         (generate_static_references): Use gcc_unreachable instead of
1808         abort ().
1809         (diagnose_missing_method): New.
1810         (build_next_selector_translation_table): New.
1811         (build_gnu_selector_translation_table): New.
1812         (add_objc_string): Merge code from build_objc_string_decl...
1813         ... and delete build_objc_string_decl().
1814         (generate_dispatch_table): Make integer types explicit.
1815         (generate_category): Pass implent and arrange for the data
1816         to be extracted within the routine.  Do not start new vars,
1817         but finish the ones collcted during parsing.
1818         (generate_shared_structures): Likewise.
1819         (finish_objc):  Reorder code so that we finish variables before
1820         referencing them.  Save the global data before calling meta-data
1821         creation routines, and pass the current reference to the two
1822         main routines.  Only call generate_objc_image_info () for the
1823         NeXT runtime.
1824         (generate_classref_translation_entry): Comment on and make this
1825         item DECL_PRESERVE_P.
1826         (handle_class_ref): Use varpool interfaces, comment on and make
1827         this item DECL_PRESERVE_P.
1828         (handle_impent): Likewise.
1829         (generate_objc_image_info): Only generate when the content is
1830         non-zero.  Make integer types explict.
1832 2010-07-03  Nathan Froyd  <froydnj@codesourcery.com>
1834         PR objc/24867
1835         * objc-act.c (build_sized_array_type): New function.
1836         (add_objc_string): Use it.
1837         (generate_protocol_list): Likewise.
1838         (generate_objc_image_info): Likewise.
1839         (add_field_decl): New function.
1840         (objc_build_struct): Use a VEC rather than building a TREE_LIST.
1841         (generate_struct_by_value_array): Use add_field_decl.
1842         (build_objc_symtab_template): Likewise.
1843         (build_module_descriptor): Likewise.
1844         (build_objc_exception_stuff): Likewise.
1845         (build_protocol_template): Likewise.
1846         (build_method_prototype_list_template): Likewise.
1847         (build_method_prototype_template): Likewise.
1848         (build_category_template): Likewise.
1849         (build_selector_template): Likewise.
1850         (build_class_template): Likewise.
1851         (build_super_template): Likewise.
1852         (build_ivar_template): Likewise.
1853         (build_ivar_list_template): Likewise.
1854         (build_method_list_template): Likewise.
1855         (build_method_template): Likewise.
1857 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
1859         * objc-act.c: Do not include except.h.
1861 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1863         * objc-act.h (ALLOC_OBJC_TYPE_LANG_SPECIFIC): Use typed GC
1864         allocation.
1866         * objc-act.c (objc_volatilize_decl): Likewise.
1867         (objc_build_string_object): Likewise.
1868         (hash_init): Likewise.
1869         (hash_enter): Likewise.
1870         (hash_add_attr): Likewise.
1871         (add_class): Likewise.
1872         (start_class): Likewise.
1874 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
1876         * objc-act.c: Update include path for moved files.
1877         * objc-lang.c: Likewise.
1878         * config-lang.in: Update paths in gtfiles for files in c-family/.
1880 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
1882         * objc-act.c (build_next_objc_exception_stuff): Give setjmp a
1883         varargs type instead of a zero-argument type.
1885 2010-05-30  Nathan Froyd  <froydnj@codesourcery.com>
1887         * objc-act.c (synth_module_prologue): Use build_function_type_list
1888         instead of build_function_type.
1889         (build_module_initializer_routine): Likewise.
1890         (build_next_objc_exception_stuff): Likewise.
1891         (build_objc_exception_stuff): Likewise.
1893 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
1895         * objc-act.c: Include diagnostic-core.h instead of diagnostic.h.
1896         * Make-lang.in (objc/objc-act.o): Update dependencies.
1898 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
1900         * objc-act.h: Do not include gimple.h.
1901         * objc-act.c: Do not include rtl.h, expr.h, libfuncs.h, and tm_p.h.
1902         Include gimple.h.  Explain why except.h has to be included.
1903         * objc-lang.c: Do not include diagnostics.h.
1904         * Make-lang.in: Update dependencies.
1906 2010-05-25  Nathan Froyd  <froydnj@codesourcery.com>
1908         * objc-act.c (objc_build_constructor): Adjust OBJCPLUS impedance
1909         mismatch code for VECs.
1911 2010-05-25  Nathan Froyd  <froydnj@codesourcery.com>
1913         * objc-act.c (objc_build_constructor): Take a VEC instead of a tree.
1914         Use build_constructor instead of build_constructor_from_list.
1915         (objc_build_string_object): Build a VEC argument for
1916         objc_build_constructor.
1917         (init_def_list): Likewise.
1918         (init_objc_symtab): Likewise.
1919         (init_module_descriptor): Likewise.
1920         (generate_static_references): Likewise.
1921         (build_selector_translation_table): Likewise.
1922         (build_descriptor_table_initializer): Likewise.
1923         (generate_descriptor_table): Likewise.
1924         (build_protocol_initializer): Likewise.
1925         (build_ivar_list_initializer): Likewise.
1926         (generate_ivars_list): Likewise.
1927         (build_dispatch_table_initializer): Likewise.
1928         (generate_dispatch_table): Likewise.
1929         (generate_protocol_list): Likewise.
1930         (build_category_initializer): Likewise.
1931         (build_shared_structure_initializer): Likewise.
1932         (generate_objc_image_info): Likewise.
1934 2010-04-30  Iain Sandoe  <iains@gcc.gnu.org>
1936         PR objc++/32052
1937         * objc-act.c (encode_aggregate_within): Encode structure tags
1938         with template args for ObjC++.
1940 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
1942         * objc-act.c: Do not include varray.h.
1944 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
1946         PR c/18624
1947         * objc-act.c (finish_var_decl, objc_begin_catch_clause,
1948         really_start_method, get_super_receiver, handle_class_ref): Set
1949         DECL_READ_P in addition to TREE_USED.
1951 2010-04-07  Iain Sandoe <iains@gcc.gnu.org>
1953         PR objc/35996
1954         * objc-act.c (objc_init): Warn that -fobjc-gc is ignored for
1955         -fgnu-runtime and set flag_objc_gc to zero.
1957 2010-04-07  Iain Sandoe <iains@gcc.gnu.org>
1959         PR objc++/23716
1960         * objc-act.c (build_module_initializer_routine): Make the argument
1961         to objc_start_function NULL_TREE when compiling ObjC++.
1963 2010-02-18  Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1964             Mike Stump  <mikestump@comcast.net>
1966         PR objc/43061
1967         * objc-act.c (finish_var_decl): Set the generated symbols as "used".
1969 2009-12-17  Shujing Zhao  <pearly.zhao@oracle.com>
1971         * objc-act.c (objc_substitute_decl, build_ivar_reference,
1972         get_super_receiver): Update build_indirect_ref calls.
1974 2009-11-28  Jakub Jelinek  <jakub@redhat.com>
1976         * objc-act.c (generate_shared_structures): Remove unused sc_spec and
1977         decl_specs variables.
1978         (objc_build_message_expr): Remove unused loc variable.
1979         (objc_finish_message_expr): Remove unused saved_rtype variable.
1980         (encode_field_decl): Remove unused type variable.
1982         PR obj-c++/42156
1983         * objc-act.c (objc_build_struct): INIT_TYPE_OBJC_INFO for
1984         type variants that don't have it initialized yet.
1986 2009-09-14  Jan Hubicka  <jh@suse.cz>
1988         * objc-act.c (objc_add_static_instance): Do not set DECL_COMMON.
1990 2009-09-14  Richard Henderson  <rth@redhat.com>
1992         * objc-act.c (objc_init_exceptions): Don't call
1993         default_init_unwind_resume_libfunc.
1994         (objc_build_exc_ptr): Use __builtin_eh_pointer.
1996 2009-09-13  Richard Guenther  <rguenther@suse.de>
1997         Rafael Avila de Espindola  <espindola@google.com>
1999         * objc-act.c (objc_eh_runtime_type): Export.
2000         (objc_init_exceptions): Remove.  Move warning code ...
2001         (objc_begin_try_stmt): ... here
2002         (objc_build_throw_stmt): ... and here.
2003         (objc_eh_personality_decl): New.
2004         (objc_eh_personality): New function.
2005         * objc-act.h (objc_eh_runtime_type): Declare.
2006         (objc_eh_personality): Likewise.
2007         * objc-lang.c (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
2008         (LANG_HOOKS_EH_PERSONALITY): Likewise.
2010 2009-09-03  Diego Novillo  <dnovillo@google.com>
2012         * objc-lang.c (lang_hooks): Remove const qualifier.
2014 2009-08-20  Richard Guenther  <rguenther@suse.de>
2016         * objc-act.c: Include c-lang.h
2017         * Make-lang.in (objc/objc-act.o): Add c-lang.h dependency.
2019 2009-07-17  Aldy Hernandez  <aldyh@redhat.com>
2020             Manuel López-Ibáñez  <manu@gcc.gnu.org>
2022         PR 40435
2023         * objc-act.c: Add location argument to all calls to
2024         build_fold_addr_expr.
2026 2009-07-14  Taras Glek  <tglek@mozilla.com>
2027             Rafael Espindola  <espindola@google.com>
2029         * Make-lang.in (objc.install-plugin): New target for
2030         installing plugin headers.
2032 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2034         * objc-act.c (next_sjlj_build_catch_list): Replace EXPR_LOCUS by
2035         EXPR_LOCATION.
2037 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2039         * objc-act.c: Replace %J by an explicit location. Update all
2040         calls.
2042 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2044         * objc-act.c: Replace %H by an explicit location. Update all
2045         calls.
2047 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
2049         PR objc/28050
2050         * objc-act.c (objc_build_message_args): Return if ARGS is the
2051         error_mark_node.
2053 2009-06-19  Ian Lance Taylor  <iant@google.com>
2055         * objc-act.c (objc_in_struct, objc_struct_types): Remove.
2056         (objc_struct_info): New static variable.
2057         (objc_start_struct): Pass &objc_struct_info, not &objc_in_struct
2058         and &objc_struct_types, to start_struct.
2059         (objc_finish_struct): Likewise for finish_struct.
2061 2009-06-15  Ian Lance Taylor  <iant@google.com>
2063         * objc-act.c (objc_start_function): Don't set
2064         label_context_stack_se or label_context_stack_vm.
2066 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
2068         * objc-act.c (finish_var_decl): Pass location to finish_decl.
2069         (objc_get_parm_info): Same.
2070         (get_super_receiver): Same.
2071         * objc-act.c (objc_build_component_ref): Pass location to
2072         build_compound_ref.
2073         (build_module_initializer_routine): Pass location to
2074         c_end_compound_stmt.
2075         (objc_generate_static_init_call): Pass location to build_stmt.
2076         (build_typed_selector_reference): New location argument.
2077         (build_selector_reference): Same.
2078         (objc_substitute_decl): Pass location to build_array_ref.
2079         (next_sjlj_build_try_catch_finally): Pass location to build_stmt.
2080         (objc_begin_catch_clause): Same.
2081         (objc_finish_try_stmt): Same.
2082         (objc_finish_catch_clause): Pass location to c_end_compound_stmt.
2083         (objc_build_throw_stmt): New argument.
2084         (generate_shared_structures): Pass location to build_c_cast.
2085         (objc_build_message_expr): Use local location.
2086         (objc_finish_message_expr): Use input_location.
2087         (build_objc_method_call): New argument.
2088         (objc_build_selector_expr): Same.
2089         (get_super_receiver): Pass location to build_c_cast,
2090         build_modify_expr, build_compound_expr.
2091         * objc-act.c: Add location to all calls to start_struct, build_decl,
2092         finish_struct.
2094 2009-06-09  Ian Lance Taylor  <iant@google.com>
2096         * objc-act.c (objc_gimplify_expr): Change return type to int.
2097         * objc-act.h: Update declaration.
2099 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
2101         * objc-act.c (objc_init): Skip print_struct_values during
2102         -fcompare-debug-second.
2104 2009-06-03  Ian Lance Taylor  <iant@google.com>
2106         * Make-lang.in (cc1obj-checksum.o): Depend upon $(CONFIG_H) and
2107         $(SYSTEM_H).
2109 2009-05-27  Ian Lance Taylor  <iant@google.com>
2111         * Make-lang.in (cc1obj-dummy$(exeext)): Change $(COMPILER) to
2112         $(LINKER).
2113         (cc1obj$(exeext)): Likewise.
2115 2009-05-26  Ian Lance Taylor  <iant@google.com>
2117         * Make-lang.in (cc1obj-dummy$(exeext)): Use $(COMPILER).
2118         (cc1obj$(exeext)): Likewise.
2120 2009-05-20  Ian Lance Taylor  <iant@google.com>
2122         * objc-act.c (objc_generate_cxx_ctor_or_dtor): Pass NULL rather
2123         than NULL_TREE to build_special_member_call.
2125 2009-05-10  Ian Lance Taylor  <iant@google.com>
2127         * objc-act.c (objc_building_struct): New static variable.
2128         (objc_in_struct, objc_struct_types): New static variables.
2129         (objc_start_struct, objc_finish_struct): New static functions.
2130         (generate_struct_by_value_array): Call objc_start_struct instead
2131         of start_struct, and call objc_finish_struct instead of
2132         finish_struct.
2133         (objc_build_struct, build_objc_symtab_template): Likewise.
2134         (build_module_descriptor): Likewise.
2135         (build_next_objc_exception_stuff): Likewise.
2136         (build_protocol_template): Likewise.
2137         (build_method_prototype_list_template): Likewise.
2138         (build_method_prototype_template): Likewise.
2139         (build_category_template, build_selector_template): Likewise.
2140         (build_class_template, build_super_template): Likewise.
2141         (build_ivar_template, build_ivar_list_template): Likewise.
2142         (build_method_list_template): Likewise.
2143         (build_method_template): Likewise.
2145 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
2147         * objc-act.c: Include intl.h.
2148         (objc_lookup_protocol): Use complete sentences for diagnostics
2149         with %qE for identifiers and translating results of
2150         gen_type_name_0 to locale character set.
2151         (objc_check_decl, check_protocol_recursively,
2152         lookup_and_install_protocols, objc_build_string_object,
2153         objc_get_class_reference, objc_declare_alias, objc_declare_class,
2154         objc_get_class_ivars, error_with_ivar, check_duplicates,
2155         objc_finish_message_expr, objc_build_protocol_expr,
2156         objc_build_selector_expr, build_ivar_reference, objc_add_method,
2157         add_category, add_instance_variable, objc_is_public,
2158         check_methods, check_methods_accessible, check_protocol,
2159         start_class, finish_class, start_protocol, really_start_method,
2160         get_super_receiver, objc_lookup_ivar): Use %E and %qE for
2161         identifiers in diagnostics.  Translate generated text to locale
2162         character set as needed.
2163         (check_protocol, check_protocols): Change name parameter to type
2164         tree.
2165         (lang_report_error_function): Remove.
2167 2009-04-27  Ian Lance Taylor  <iant@google.com>
2169         * objc-act.c (objc_gimplify_expr): Add casts to enum type.
2171 2009-04-24  Ian Lance Taylor  <iant@google.com>
2173         * objc-act.c (get_super_receiver): Update calls to
2174         build_modify_expr to pass new argument.
2176 2009-04-21  Taras Glek <tglek@mozilla.com>
2178         * objc-act.c: Update GTY annotations to new syntax
2179         * objc-act.h: Likewise
2181 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
2183         * ChangeLog: Add copyright and license notices.
2185 2009-04-20  Ian Lance Taylor  <iant@google.com>
2187         * objc-act.c (objc_rewrite_function_call): Change parameter from
2188         params to first_param.  Change all callers.
2190 2009-03-30  Dominique d'Humieres  <dominiq@lps.ens.fr>
2192         PR bootstrap/39583
2193         * objc-act.c (in_late_binary_op): Define for Objective-C++.
2195 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
2197         PR c/456
2198         PR c/5675
2199         PR c/19976
2200         PR c/29116
2201         PR c/31871
2202         PR c/35198
2203         * objc-act.c (objc_finish_try_stmt): Set in_late_binary_op.
2205 2008-12-05  Sebastian Pop  <sebastian.pop@amd.com>
2207         PR bootstrap/38262
2208         * Make-lang.in (cc1obj-dummy, cc1obj): Add BACKENDLIBS,
2209         remove GMPLIBS.
2211 2008-10-06  Aldy Hernandez  <aldyh@redhat.com>
2213         * objc-act.c (objc_build_string_object): Pass location to
2214         build_unary_op.
2215         (init_def_list): Same.
2216         (init_objc_symtab): Same.
2217         (init_module_descriptor): Same.
2218         (build_module_initializer_routine): Same.
2219         (generate_static_references): Same.
2220         (build_typed_selector_reference): Same.
2221         (add_objc_string): Same.
2222         (objc_substitute_decl): Same.
2223         (objc_build_ivar_assignment): Same.
2224         (objc_build_global_assignment): Same.
2225         (objc_build_strong_cast_assignment): Same.
2226         (generate_protocols): Same.
2227         (build_protocol_initializer): Same.
2228         (build_dispatch_table_initializer): Same.
2229         (generate_protocol_list): Same.
2230         (build_category_initializer): Same.
2231         (build_shared_structure_initializer): Same.
2232         (generate_shared_structures): Same.
2233         (objc_build_protocol_expr): Same.
2234         (build_ivar_reference): Same.
2235         (get_super_receiver): Same.
2237 2008-09-23  Aldy Hernandez  <aldyh@redhat.com>
2239         * objc-act.c (next_sjlj_build_enter_and_setjmp): Call
2240         c_common_truthvalue_conversion with location.
2241         (next_sjlj_build_catch_list): Same.
2242         (next_sjlj_build_try_catch_finally): Same.
2244 2008-09-17  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2246         PR objc/37460
2247         * objc-lang.c (LANG_HOOKS_GET_CALLEE_FNDECL): Don't define.
2248         * objc-act.h (objc_get_callee_fndecl): Remove prototype.
2249         * objc-act.c (objc_get_callee_fndecl): Kill.
2251 2008-09-17  Jan Hubicka  <jh@suse.cz>
2253         PR c++/18071
2254         * objc/objc-act.c (objc_finish_method_definition): Do not set
2255         DECL_INLINE.
2257 2008-09-01  Aldy Hernandez  <aldyh@redhat.com>
2259         * objc-act.c (build_typed_selector_reference): Pass input_location to
2260         build_unary_op calls.
2261         (build_selector_reference): Same, but to build_array_ref.
2262         (objc_substitute_decl): Same.
2263         (build_ivar_reference): Same, but to build_indirect_ref.
2264         (get_super_receiver): Same.
2266 2008-07-28  Richard Guenther  <rguenther@suse.de>
2268         Merge from gimple-tuples-branch.
2270         2008-07-18  Aldy Hernandez  <aldyh@redhat.com>
2272         * Make-lang.in (objc-lang.o): Depend on GIMPLE_H.
2273         (objc-act.o): Rename TREE_GIMPLE_H to GIMPLE_H.
2274         * objc-act.h: Include gimple.h instead of tree-gimple.h.
2275         * ipa-reference.c: Same.
2277         2007-11-10  Aldy Hernandez  <aldyh@redhat.com>
2279         * objc-act.c (objc_gimplify_expr): Change pre and post to sequences.
2280         * objc-act.h (objc_gimplify_expr): Change prototype accordingly.
2282 2008-07-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2284         * objc-act.c: Fix comment typos.
2286 2008-07-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2288         * objc-act.c (objc_start_class_interface,
2289         objc_start_category_interface, objc_start_class_implementation,
2290         objc_start_category_implementation, objc_build_struct,
2291         generate_static_references, build_private_template,
2292         lookup_category, objc_add_method, add_category,
2293         add_instance_variable, objc_is_public, conforms_to_protocol,
2294         start_class, continue_class, finish_class): Avoid C++ keywords.
2296 2008-07-14  Jason Merrill  <jason@redhat.com>
2298         PR objc++/36723
2299         * objc-act.c (objc_build_constructor): Update C++ tweak.
2301 2007-07-14  Rafael Ávila de Espíndola  <espindola@google.com>
2303         * objc-act.c (synth_module_prologue): Use TREE_NO_WARNING instead
2304         of DECL_IN_SYSTEM_HEADER.
2306 2008-07-11  Ian Lance Taylor  <iant@google.com>
2308         * objc-act.c (objc_is_reserved_word): Always check for RID_CLASS,
2309         etc., not just when OBJCPLUS is defined.
2311 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2313         * objc-act.c (setup_string_decl, objc_build_string_object,
2314         hash_interface, eq_interface, objc_begin_try_stmt,
2315         encode_method_prototype, build_ivar_list_initializer,
2316         objc_build_encode_expr): Fix for -Wc++-compat.
2318 2008-05-12  Tomas Bily  <tbily@suse.cz>
2320         * objc-act.c (objc_generate_write_barrier, objc_finish_message_expr):
2321         Use CONVERT_EXPR_P.
2323 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
2325         * objc-act.c (objc_build_string_object): Don't set TREE_INVARIANT.
2327 2008-04-03  Tom Tromey  <tromey@redhat.com>
2329         * Make-lang.in (objc_OBJS): New variable.
2331 2008-03-27  Tom Tromey  <tromey@redhat.com>
2333         * Make-lang.in: Revert automatic dependency patch.
2335 2008-03-27  Douglas Gregor  <doug.gregor@gmail.com>
2337         PR obj-c++/35704
2338         * objc-act.c (objc_build_component_ref): Fix call to
2339         finish_class_member_access_expr.
2340         (objc_generate_cxx_ctor_or_dtor): Fix call to
2341         build_special_member_call.
2343 2008-03-25  Andrew Pinski  <pinskia@gmail.com>
2345         PR objc/29197
2346         * objc-act.c (encode_type): Handle when type is error_mark_node.
2347         (objc_push_parm): Handle when the type of parm is error_mark_node.
2349 2008-03-25  Tom Tromey  <tromey@redhat.com>
2351         * Make-lang.in (objc_OBJS): New variable.
2352         (cc1obj-checksum.o, objc/objc-lang.o, objc/objc-act.o): Remove.
2354 2008-03-21  Andreas Tobler  <a.tobler@schweiz.org>
2356         PR bootstrap/35660
2357         * objc-act.c (objc_generate_cxx_ctor_or_dtor): Rename IS_AGGR_TYPE to
2358         MAYBE_CLASS_TYPE_P.
2359         (objc_generate_cxx_cdtors): Likewise.
2360         (add_instance_variable): Likewise.
2362 2008-02-26  Tom Tromey  <tromey@redhat.com>
2364         * objc-act.c (objc_init): Remove old location code.
2366 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2368         PR other/35107
2369         * Make-lang.in (cc1obj-dummy, cc1obj): Add $(GMPLIBS).
2371 2007-07-30  Nick Clifton  <nickc@redhat.com>
2373         * Make-lang.in: Change copyright header to refer to version 3 of
2374         the GNU General Public License and to point readers at the
2375         COPYING3 file and the FSF's license web page.
2376         * lang-specs.h, objc-act.c, objc-tree.def, objc-act.h,
2377         config-lang.in, objc-lang.c: Likewise.
2379 2007-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2381         * objc-act.c (objc_get_callee_fndecl): Constify.
2382         * objc-act.h (objc_get_callee_fndecl): Likewise.
2384 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2386         * objc-act.c (volatilized_hash, volatilized_eq, string_hash,
2387         string_eq): Constify.
2389 2007-04-04  Stuart Hastings  <stuart@apple.com>
2391         PR 31281
2392         * objc/objc-act.c (next_sjlj_build_catch_list): Delete volatile from rethrow decl.
2394 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
2396         * Make-lang.in: Add dummy lang.install-pdf target.
2398 2007-02-18  Kazu Hirata  <kazu@codesourcery.com>
2400         * objc/objc-act.c: Fix comment typos.
2402 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
2403             Brooks Moses  <brooks.moses@codesourcery.com>
2404             Lee Millward  <lee.millward@codesourcery.com>
2406         * objc-act.c (receiver_is_class_object): Use new CALL_EXPR accessors.
2407         (objc_get_callee_fndecl): Likewise.
2409 2007-01-23  Andrew Pinski  <pinskia@gmail.com>
2411         PR objc/27438
2412         * objc-act.c (objc_add_static_instance): Mark the decl as
2413         TREE_USED.
2415 2007-01-20  Andrew Pinski  <pinskia@gmail.com>
2417         PR objc/30479
2418         * objc-act.c (hash_interface): Use IDENTIFIER_HASH_VALUE instead
2419         of htab_hash_pointer.
2420         (lookup_interface): Likewise.
2421         (add_class): Likewise.
2423 2007-01-02  Douglas Gregor  <doug.gregor@gmail.com>
2425         * objc-act.c (objc_build_volatilized_type): Keep track of
2426         canonical types.
2427         (objc_get_protocol_qualified_type): Ditto.
2429 2006-11-02  Andreas Tobler  <a.tobler@schweiz.org>
2431         * objc-act.c (objc_finish_file): Remove ifdef clause for OBJCPLUS and
2432         content where we called cp_finish_file.
2434 2006-10-23 Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
2436         * objc-act.c (synth_module_prologue): Replace calls to
2437         builtin_function with add_builtin_function.
2438         (build_next_objc_exception_stuff): Replace calls to
2439         builtin_function with add_builtin_function.
2440         (build_objc_exception_stuff): Replace calls to
2441         builtin_function with add_builtin_function.
2443 2006-10-10  Brooks Moses  <bmoses@stanford.edu>
2445         * Make-lang.in: Added empty "objc.pdf" target.
2447 2006-09-26  Andrew Pinski  <pinskia@physics.uc.edu>
2449         PR objc/29195
2450         * objc-act.c (objc_push_parm): If we change the type of the
2451         decl, relayout the decl.
2453 2006-09-19  Eric Christopher  <echristo@apple.com>
2455         * objc-act.c (JBLEN): Rename to OBJC_JBLEN,
2456         default to something innocuous.
2457         (build_next_objc_exception_stuff): Rename JBLEN.
2459 2006-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2461         * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
2463 2006-07-19  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2465         PR obj-c++/28434
2466         * objc-act.c (lookup_and_install_protocols): Skip error_mark_nodes.
2468 2006-06-06  Mike Stump  <mrs@apple.com>
2470         * objc-act.c: Remove prototype for objc_build_volatilized_type.
2472 2006-05-24  Mike Stump  <mrs@apple.com>
2474         * objc-act.c (build_next_objc_exception_stuff): Use JBLEN instead of _JBLEN.
2476 2006-05-05  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2478         PR objc/27240
2479         * objc-act.c (objc_is_public): Return early on invalid type.
2481 2006-03-02 Fariborz Jahanian <fjahanian@apple.com>
2483         * objc-act.c (init_module_descriptor): Remove file name from
2484         module descriptor.
2485         (gen_type_name_0): Fix ICE when issuing warning.
2487 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
2488         * Make-lang.in (OBJC): Remove
2489         (OBJECTIVE-C): Remove
2490         (objective-c): Remove
2491         (.PHONY): Remove objective-c and ObjC
2493 2005-12-14  Andrew Pinski  <pinskia@physics.uc.edu>
2495         PR objc/25360
2496         * objc/objc-act.c (encode_type): Encode Complex types as 'j' followed
2497         by the inner type.
2499 2005-12-12  Andrew Pinski  <pinskia@physics.uc.edu>
2501         PR objc/25348
2502         * objc-act.c (encode_array): Handle arrays to zero sized types.
2504 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
2506         * Make-lang.in (objc.all.build, objc.install-normal): Remove.
2508 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
2510         * Make-lang.in: Remove all dependencies on s-gtype.
2512 2005-12-02  Richard Guenther  <rguenther@suse.de>
2514         * objc-act.c (objc_build_exc_ptr, next_sjlj_build_enter_and_setjmp
2515         next_sjlj_build_exc_extract, next_sjlj_build_catch_list,
2516         next_sjlj_build_try_catch_finally, objc_begin_catch_clause,
2517         build_objc_method_call, objc_rewrite_function_call): Use buildN
2518         instead of build.
2520 2005-10-20  Geoffrey Keating  <geoffk@apple.com>
2522         * objc-act.c (synth_module_prologue): Clear TREE_NOTHROW
2523         on objc_msgSend and like builtin functions.
2525 2005-10-17  Andreas Krebbel  <krebbel1@de.ibm.com>
2527         * objc-act.c (objc_build_component_ref): Adjust call to
2528         finish_class_member_access_expr due to a changed prototype.
2530 2005-08-31  Andrew Pinski  <pinskia@physics.uc.edu>
2532         PR objc/23306
2533         * objc-act.c (generate_strings): Remove and move code to
2534         finish decl to ...
2535         (add_objc_string): here when creating a new string decl.
2536         (finish_objc): Don't call generate_strings.
2538 2005-08-31  Andrew Pinski  <pinskia@physics.uc.edu>
2540         PR objc/23381
2541         * objc-act.c (next_sjlj_build_try_catch_finally): Set
2542         TREE_SIDE_EFFECTS on catch_seq after building it.
2544 2005-08-09  Andrew Pinski  <pinskia@physics.uc.edu>
2546         part of PR objc/21992
2547         * objc-act.c (handle_class_ref): The ref decl is always referenced.
2549 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
2551         Make CONSTRUCTOR use VEC to store initializers.
2552         * objc-act.c (objc_build_constructor): Use build_constructor_from_list
2553         instead of build_constructor.
2555 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
2557         * objc-act.c (objc_push_parm): DECL_ARG_TYPE_AS_WRITTEN is
2558         removed.
2559         * objc-act.h (KEYWORD_ARG_NAME): Use decl_non_common.
2560         (KEYWORD_KEY_NAME): Use decl_minimal.
2561         (METHOD_SEL_NAME): Ditto..
2562         (METHOD_SEL_ARGS): Use decl_non_common.
2563         (METHOD_ADD_ARGS): Ditto.
2564         (METHOD_ADD_ARGS_ELLIPSIS_P): Use decl_common.
2565         (METHOD_DEFINITION): Ditto.
2566         (METHOD_ENCODING): Ditto.
2567         * objc-lang.c: (objc_init_ts): New function.
2569 2005-07-07  Ziemowit Laski  <zlaski@apple.com>
2571         * objc-act.c (objc_build_struct): Pass in an actual @interface
2572         instead of its name, and annotate the struct created (and all
2573         existing variants thereof) with the @interface.
2574         (objc_compare_types): Treat forward-declared ObjC classes
2575         as stand-alone (root) classes for purposes of type comparisons.
2576         (build_private_template): Move some code to objc_build_struct().
2578 2005-07-07  Ziemowit Laski  <zlaski@apple.com>
2580         PR objc/22274
2581         * objc-act.c (objc_build_string_object): For GNU-style constants,
2582         use the @interface type rather than the built-in type.
2584 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
2586         * Make-lang.in (cc1plus-checksum.c): Use
2587         build/genchecksum$(build_exeext), not build/genchecksum$(exeext).
2589 2005-07-02  Joseph S. Myers  <joseph@codesourcery.com>
2591         * objc-act.c: Use %q to quote in diagnostics.
2593 2005-07-02  Joseph S. Myers  <joseph@codesourcery.com>
2595         * objc-act.c: Use '+' flag instead of %J.  Use 'q' flag for
2596         quoting.
2598 2005-06-30  Ziemowit Laski  <zlaski@apple.com>
2600         * objc-act.c (objc_build_volatilized_type): New function.
2601         (objc_volatilize_decl): Call objc_build_volatilized_type()
2602         instead of build_qualified_type().
2604 2005-06-29  Ziemowit Laski  <zlaski@apple.com>
2606         * objc-act.c (objc_build_internal_const_str_type): New function.
2607         (check_string_class_template): Use objc_get_class_ivars() instead
2608         of TYPE_FIELDS() to retrieve ivar list.
2609         (AT_LEAST_AS_LARGE_AS): Check the size of each field's type rather
2610         than the field itself.
2611         (objc_build_string_object): Synthesize a "__builtin_ObjCString"
2612         type and use it to lay out compile-time string objects.
2613         * objc-act.h (OCTI_INTERNAL_CNST_STR_TYPE, internal_const_str_type):
2614         New.
2616 2005-06-28  Paul Brook  <paul@codesourcery.com>
2618         * objc-act.c (objc_init_exceptions): Call
2619         default_init_unwind_resume_libfunc.
2621 2005-06-27  Ziemowit Laski  <zlaski@apple.com>
2623         * objc-act.c (objc_build_struct): Save the TYPE_OBJC_INFO
2624         portion of TYPE_LANG_SPECIFIC info for all variants of
2625         a class before calling finish_struct(), and restore
2626         same TYPE_OBJC_INFO afterwards.
2628 2005-06-25  Kelley Cook  <kcook@gcc.gnu.org>
2630         * all files: Update FSF address in copyright headers.
2632 2005-06-15  Joseph S. Myers  <joseph@codesourcery.com>
2634         * objc-act.c (my_build_string_pointer): New.
2635         (objc_get_class_reference, get_super_receiver): Call
2636         my_build_string_pointer instead of my_build_string when building
2637         function arguments.
2639 2005-05-25  Mike Stump  <mrs@mrs.kithrup.com>
2641         * objc-act.c (volatilized_hash): Avoid warnings on 64-bit
2642         machines.
2644 2005-05-24  Ziemowit Laski  <zlaski@apple.com>
2646         * objc-act.c (objc_build_struct): New function.
2647         (objc_derived_from_p): Likewise.
2648         (objc_build_component_ref): Likewise.
2649         (objc_copy_binfo): Likewise.
2650         (objc_xref_basetypes): Likewise.
2651         (objc_lookup_protocol): Likewise.
2652         (objc_compare_protocols): Likewise.
2653         (objc_volatilize_decl): Likewise.
2654         (encode_aggregate_fields): Likewise.
2655         (volatilized_hash): Likewise.
2656         (volatilized_eq): Likewise.
2657         (objc_compare_types): Likewise.
2658         (objc_type_quals_match): Likewise.
2659         (DERIVED_FROM_P): New ObjC macro, corresponding to C++ macro
2660         of same name.
2661         (get_class_ivars): Add second parameter indicating if entire
2662         hierarchy is desired.
2663         (struct volatilized_type): New type.
2664         (volatilized_htab): New hash table.
2665         (objc_types_compatible_p, objc_comptypes): Remove functions.
2666         (synth_module_prologue): Do not initialize 'unused_list'.
2667         (objc_get_class_reference): Fix ObjC++ impedance mismatches.
2668         (objc_declare_alias): Implement as a typedef.
2669         (objc_substitute_decl, objc_gimplify_expr): Reformat.
2670         (objc_get_class_ivars): Adjust call to get_class_ivars().
2671         (next_sjlj_build_enter_and_setjmp, synth_forward_declarations,
2672         build_ivar_reference, get_super_receiver): Call
2673         objc_build_component_ref() instead of build_component_ref().
2674         (objc_begin_catch_clause): Use DERIVED_FROM_P() instead of
2675         objc_comptypes().
2676         (build_private_template): Call objc_build_struct() instead of
2677         start_struct() and finish_struct().
2678         (hash_init): Initialize volatilized_htab.
2679         (objc_is_public): Adjust calls to objc_get_ivars(); adjust
2680         ObjC++ impedance mismatches.
2681         (encode_aggregate_within): Streamline by calling
2682         encode_aggregate_fields().
2683         * objc-act.h (objc_types_compatible_p): Remove prototype.
2684         (OCTI_UNUSED_LIST, unused_list): Remove slot.
2685         * objc-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove.
2687 2005-05-18  Geoffrey Keating  <geoffk@apple.com>
2689         * Make-lang.in (cc1obj-dummy): New.
2690         (cc1obj-checksum.c): New.
2691         (cc1obj-checksum.o): New.
2692         (cc1obj): Add cc1obj-checksum.o.
2694 2005-05-18  Mike Stump  <mrs@apple.com>
2696         PR objc/21641
2697         * objc-act.c (struct interface_tuple): Mark it up for GC.
2698         (interface_htab): It is really a struct interface_tuple.
2700 2005-05-17  Ziemowit Laski  <zlaski@apple.com>
2701             Mike Stump  <mrs@apple.com>
2703         Yet more Objective-C++...
2705         * objc-act.c (objc_finish_try_stmt): Add return value.
2706         (objc_build_synchronized): Likewise.
2708         * objc-act.c (objc_is_gcable_type): Add.
2709         (objc_substitute_decl): Add.
2710         (objc_build_ivar_assignment): Add.
2711         (objc_build_global_assignment): Add.
2712         (objc_build_strong_cast_assignment): Add.
2713         (objc_is_ivar_reference_p): Add.
2714         (objc_is_global_reference_p): Add.
2715         (objc_generate_write_barrier): Add.
2716         (objc_rewrite_function_call): Add.
2717         (objc_gimplify_expr): Add Objective-C++ support.
2718         * objc-act.h (ALLOC_OBJC_TYPE_LANG_SPECIFIC): Likewise.
2719         (SIZEOF_OBJC_TYPE_LANG_SPECIFIC): Add.
2720         (INIT_TYPE_OBJC_INFO): Add Objective-C++ support.
2721         (DUP_TYPE_OBJC_INFO): Likewise.
2722         (struct imp_entry): Add field has_cxx_cdtors.
2723         (struct imp_entry *imp_list): Add OCTI_UMSG_FAST_DECL,
2724         OCTI_METH_LIST_TEMPL, OCTI_METH_PROTO_LIST_TEMPL,
2725         OCTI_IVAR_LIST_TEMPL, OCTI_ASSIGN_IVAR_DECL,
2726         OCTI_ASSIGN_IVAR_FAST_DECL, OCTI_ASSIGN_GLOBAL_DECL,
2727         OCTI_ASSIGN_STRONGCAST_DECL.
2728         (umsg_fast_decl): Add.
2729         (objc_assign_ivar_decl): Add.
2730         (objc_assign_ivar_fast_decl): Add.
2731         (objc_assign_global_decl): Add.
2732         (objc_assign_strong_cast_decl): Add.
2733         (objc_method_list_ptr): Add.
2734         (objc_method_proto_list_ptr): Add.
2735         (objc_ivar_list_ptr): Add.
2737         * objc-act.c (should_call_super_dealloc): Add.
2738         (OBJC_VERSION): Bump to 6.
2739         (objc_is_gcable_type): Add.
2740         (objc_substitute_decl): Add.
2741         (objc_build_ivar_assignment): Add.
2742         (objc_build_global_assignment): Add.
2743         (objc_build_strong_cast_assignment): Add.
2744         (objc_is_gcable_p): Add.
2745         (objc_is_ivar_reference_p): Add.
2746         (objc_is_global_reference_p): Add.
2747         (generate_shared_structures): Add flags parameter.
2748         (objc_generate_cxx_ctor_or_dtor): Add.
2749         (objc_generate_cxx_cdtors): Add.
2750         (add_class): Add name parameter.
2751         (objc_types_share_size_and_alignment): Add.
2752         (comp_proto_with_proto): Add strict parameter.
2753         (CLS_HAS_CXX_STRUCTORS): Add.
2754         (TAG_ASSIGNIVAR): Add.
2755         (TAG_ASSIGNGLOBAL): Add.
2756         (TAG_ASSIGNSTRONGCAST): Add.
2757         (TAG_MSGSEND_FAST): Add.
2758         (TAG_ASSIGNIVAR_FAST): Add.
2759         (TAG_CXX_CONSTRUCT): Add.
2760         (TAG_CXX_DESTRUCT): Add.
2761         (OBJC_LOOKUP_CLASS): Add.
2762         (OBJC_LOOKUP_NO_SUPER): Add.
2763         (objc_finish_file): Add pch support.
2764         (objc_finish_implementation): Add Objective-C++ support.
2765         (synth_module_prologue): Likewise.
2766         (synth_module_prologue): Add fast dispatching.
2767         (objc_get_class_reference): Add Objective-C++ support.
2768         (objc_generate_write_barrier): Likewise.
2769         (next_sjlj_build_enter_and_setjmp): Likewise.
2770         (objc_begin_try_stmt): Likewise.
2771         (build_next_objc_exception_stuff): Add fast ivar support.
2772         (build_private_template): Mark the record as used so debug
2773         information is generated.
2774         (build_protocol_template): Add Objective-C++ support.
2775         (objc_method_parm_type) Likewise.
2776         (objc_generate_cxx_ctor_or_dtor): Likewise.
2777         (objc_generate_cxx_cdtors): Likewise.
2778         (build_protocol_initializer): Likewise.
2779         (build_category_template): Likewise.
2780         (build_class_template): Likewise.
2781         (build_method_list_template): Likewise.
2782         (build_category_initializer): Likewise.
2783         (build_shared_structure_initializer): Likewise.
2784         (objc_finish_message_expr): Likewise.
2785         (build_objc_method_call): Add fast dispatch support.
2786         (lookup_method_static): Add support to end search at superclasses.
2787         (add_method_to_hash_list): Add strict parameter to
2788         comp_proto_with_proto.
2789         (objc_add_method): Likewise.
2790         (objc_add_method): Also set the interface_value.
2791         (add_instance_variable): Add Objective-C++ support.
2792         (objc_is_public): Likewise.
2793         (start_class): Likewise.
2794         (continue_class): Likewise.
2795         (encode_aggregate_within): Likewise.
2796         (start_method_def): Likewise.
2797         (objc_start_function): Clear current_function_returns_value
2798         and current_function_returns_null.
2799         (really_start_method): Add Objective-C++ support.
2800         (objc_finish_method_definition): Add warning for missing
2801         [super dealloc].
2802         (finish_objc): Add Objective-C++ support.
2803         (generate_objc_image_info): Likewise.
2804         (objc_lookup_ivar): Likewise.
2805         * objc-act.h (TYPE_HAS_OBJC_INFO): Likewise.
2806         (INIT_TYPE_OBJC_INFO): Likewise.
2807         (DUP_TYPE_OBJC_INFO): Likewise.
2809 2005-04-23  DJ Delorie  <dj@redhat.com>
2811         * objc-act.c: Adjust warning() callers.
2813 2005-04-21  Roger Sayle  <roger@eyesopen.com>
2815         * objc-act.h (METHOD_ADD_ARGS_ELLIPSIS_P): New macro for accessing
2816         this field of an objc method decl.
2817         * objc-act.c (build_method_decl): Take an additional "ellipsis"
2818         argument, and set METHOD_ADD_ARGS_ELLIPSIS_P as appropriate.
2819         (objc_build_method_signature): Accept additional "ellipsis"
2820         argument and pass it to build_method_decl.
2821         (get_arg_type_list, start_method_def, gen_method_decl): Use
2822         the new METHOD_ADD_ARGS_ELLIPSIS_P instead of examining the
2823         TREE_OVERFLOW field of a TREE_LIST node.
2825 2005-04-20  Joseph S. Myers  <joseph@codesourcery.com>
2827         PR c/12913
2828         * objc-act.c (objc_start_function): Create stack level for context
2829         of identifiers with variably modified type.
2831 2005-03-30  Joseph S. Myers  <joseph@codesourcery.com>
2833         PR c/772
2834         PR c/17913
2835         * objc-act.c (objc_start_function): Push context on
2836         label_context_stack.
2838 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
2840         * objc-act.c (next_sjlj_build_enter_and_setjmp,
2841         next_sjlj_build_catch_list, next_sjlj_build_try_catch_finally):
2842         Call c_common_truthvalue_conversion.
2844 2005-02-25  Joseph S. Myers  <joseph@codesourcery.com>
2846         * Make-lang.in (objc/objc-parse.o-warn, objc/objc-parse.o,
2847         objc/objc-parse.c, objc/objc-parse.y): Remove
2848         (OBJC_OBJS, objc.srcextra, objc.tags, objc.mostlyclean,
2849         objc.distclean, objc.maintainer-clean): Update for new parser.
2850         * config-lang.in (gtfiles): Update for new parser.
2852 2005-01-29  Kazu Hirata  <kazu@cs.umass.edu>
2854         * lang-specs.h, objc-act.c, objc-act.h, objc-lang.c: Update
2855         copyright.
2857 2005-01-27  Matt Austern  <austern@apple.com>
2859         * objc-act.c (objc_finish_file): In ObjC++ mode, set at_eof before
2860         calling instantiate_pending_templates.
2862 2005-01-26  Alexander Malmberg  <alexander@malmberg.org>
2864         PR objc/18862
2865         * objc-act.c (build_selector_translation_table): Use
2866         input_location in the diagnostic for the GNU runtime or if
2867         TREE_PURPOSE (chain) is NULL.
2869 2005-01-25  Alexander Malmberg  <alexander@malmberg.org>
2871         PR objc/18408
2872         * objc-act.c (objc_types_compatible_p): New function.
2873         * objc-act.h (objc_types_compatible_p): Declare.
2874         * objc-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Define.
2876 2005-01-16  Ziemowit Laski  <zlaski@apple.com>
2878         * objc-act.c (objc_push_parm): Call c_type_promotes_to()
2879         via a lang-hook.
2881 2005-01-15  Ziemowit Laski  <zlaski@apple.com>
2883         PR objc/19321
2884         * objc-act.c (get_arg_type_list): Decay function arguments into
2885         pointers.
2886         (objc_push_parm): Likewise; bring PARM_DECL construction closer
2887         in line with what the C front-end does.
2888         (objc_get_parm_info): Call pushdecl() and finish_decl() on
2889         each PARM_DECL, like the C front-end does.
2890         (start_method_def): Remove redundant ARRAY_TYPE decay.
2891         (objc_start_function): Bring closer in line with what the
2892         C front-end does for functions.
2894 2005-01-14  Mike Stump  <mrs@apple.com>
2896         * lang-specs.h ("@objective-c"): Use cc1obj when -E is used so
2897         that -fobjc-exceptions is accepted.
2899 2004-12-30  Ziemowit Laski  <zlaski@apple.com>
2901         PR objc/18971
2902         * objc-act.c (get_arg_type_list, start_method_def): Decay
2903         array arguments into pointers.
2904         (gen_type_name_0): Learn to pretty-print array types.
2906 2004-12-15  Ziemowit Laski  <zlaski@apple.com>
2908         * objc-act.c (build_private_template): Change to return 'void'; do
2909         not set ivar_context, uprivate_record or objc_instance_type.
2910         (objc_comptypes, gen_type_name_0): For types 'id' and 'Class',
2911         retrieve protocol list from the pointee rather than the pointer itself;
2912         check TYPE_HAS_OBJC_INFO(...) precondition before accessing
2913         TYPE_OBJC_PROTOCOL_LIST.
2914         (objc_get_protocol_qualified_type): For types 'id' and 'Class',
2915         construct a variant of the pointee as well as the pointer, and
2916         store protocol information in the former.  When creating variants
2917         of RECORD_TYPEs, clone their TYPE_LANG_SPECIFIC fields and propagate
2918         TYPE_OBJC_INTERFACE information.
2919         (objc_declare_class): If a TYPE_DECL is looked up, retrieve the
2920         underlying RECORD_TYPE to check for presence of TYPE_OBJC_INTERFACE;
2921         for newly-created RECORD_TYPEs, create a tentative TYPE_OBJC_INTERFACE
2922         holding an IDENTIFIER_NODE.
2923         (objc_finish_message_expr): Check TYPE_HAS_OBJC_INFO(...) before
2924         accessing TYPE_OBJC_PROTOCOL_LIST; Use TYPE_OBJC_INTERFACE instead
2925         of calling lookup_interface(); allow for TYPE_OBJC_INTERFACE holding
2926         an IDENTIFIER_NODE (meaning a @class forward-declaration only).
2927         (objc_is_public): Check TYPE_OBJC_INTERFACE instead of calling
2928         lookup_interface().
2929         (continue_class): For @implementations, set ivar_context,
2930         uprivate_record and objc_instance_type, for @interfaces, call
2931         build_private_template().
2932         (encode_pointer): Check TYPE_HAS_OBJC_INFO(...) before accessing
2933         TYPE_OBJC_INTERFACE.
2934         (objc_types_are_equivalent): Check TYPE_HAS_OBJC_INFO(...) before
2935         accessing TYPE_OBJC_PROTOCOL_LIST.
2936         * objc-act.h (OBJC_INFO_SLOT_ELTS, TYPE_OBJC_INFO, INIT_TYPE_OBJC_INFO,
2937         DUP_TYPE_OBJC_INFO, ALLOC_OBJC_TYPE_LANG_SPECIFIC,
2938         SIZEOF_OBJC_TYPE_LANG_SPECIFIC): New macros.
2939         (TYPE_OBJC_INTERFACE): Replaces TREE_STATIC_INSTANCE and now points
2940         to an actual @interface; stored in TYPE_LANG_SPECIFIC(...).
2941         (TYPE_OBJC_PROTOCOL_LIST): Replaces TYPE_PROTOCOL_LIST; stored in
2942         TYPE_LANG_SPECIFIC(...).
2943         (TREE_STATIC_INSTANCE, TYPE_PROTOCOL_LIST): Delete.
2944         (IS_ID, IS_CLASS, IS_PROTOCOL_QUALIFIED_UNTYPED, IS_SUPER,
2945         TYPED_OBJECT): Check for POINTER_TYPE rather than POINTER_TYPE_P;
2946         adjust for use of TYPE_OBJC_INTERFACE and TYPE_OBJC_PROTOCOL_LIST
2947         instead of TREE_STATIC_INSTANCE and TYPE_PROTOCOL_LIST.
2949 2004-11-29  Joseph Myers  <joseph@codesourcery.com>
2951         PR c/7544
2952         * Make-lang.in (objc/objc-act.o): Update dependencies.
2953         * objc-act.c (objc_finish_file): Call
2954         maybe_apply_pending_pragma_weaks if not OBJCPLUS.
2956 2004-11-09  Andrew Pinski  <pinskia@physics.uc.edu>
2958         PR objc/18406
2959         * obj-act.c (encode_type): 96bits doubles are encoded the
2960         same way as 64bit and 128bit doubles are.
2962 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
2964         * objc-act.c: Use %q, %< and %> for quoting in diagnostics.
2966 2004-11-08  Andrew Pinski  <pinskia@physics.uc.edu>
2968         PR objc/16546
2969         * objc-act.c (generate_method_descriptors): Remove setting
2970         the new decls' type to variable_length_type.
2971         (generate_ivar_lists): Likewise.
2972         (generate_dispatch_tables): Likewise.
2974 2004-10-30  Ziemowit Laski  <zlaski@apple.com>
2976         * objc-act.c (objc_lookup_ivar): The new OTHER parameter
2977         contains the result of the ID lookup by the C or C++
2978         front-end; in class methods, use OTHER if it exists;
2979         in instance methods, use OTHER only if it is locally
2980         declared.
2982 2004-10-26  Ziemowit Laski  <zlaski@apple.com>
2984         * objc-act.c (finish_class): Do not synthesize bogus
2985         'extern objc_object *_Foo;' declarations for @interface Foo.
2987 2004-10-25  Ziemowit Laski  <zlaski@apple.com>
2988             David Ayers  <d.ayers@inode.at>
2990         * objc-act.c (objc_comptypes): Use IS_PROTOCOL_QUALIFIED_UNTYPED
2991         instead of IS_PROTOCOL_QUALIFIED_ID; add comparisons for:
2992         'Class <Protocol> != id <Protocol>'; 'Class <Protocol> != <class> *';
2993         'Class <Protocol> == id' and 'Class <Protocol> == Class'.
2994         (objc_is_id): Add test for 'super'.
2995         (objc_finish_message_expr): Allow for messaging of 'Class <Proto>'
2996         receivers; if class methods are not found in protocol lists, search
2997         for instance methods therein and warn if one is found.  Look in
2998         global hash tables for suitable method as a last resort when messaging
2999         'id <Proto>', 'Class <Proto>' and invalid receiver types.
3000         (objc_add_method): Insert instance methods listed in protocols into
3001         the global class method hash table.
3002         * objc-act.h (IS_PROTOCOL_QUALIFIED_ID): Rename to
3003         IS_PROTOCOL_QUALIFIED_UNTYPED and allow for 'Class <Proto>' in
3004         addition to 'id <Proto>'.
3006 2004-10-21  Andrew Pinski  <pinskia@physics.uc.edu>
3008         PR objc/17923
3009         * objc-act.c (objc_build_string_object): Create a CONST_DECL
3010         for the NeXT runtime case.
3012 2004-10-02  Kazu Hirata  <kazu@cs.umass.edu>
3014         * objc-act.c: Fix comment typos.
3016 2004-09-24  Ziemowit Laski  <zlaski@apple.com>
3018         * objc-act.c (init_objc_symtab, init_module_descriptor,
3019         build_shared_structure_initializer): When initializing 'long'
3020         fields, ensure that the initializer value is also 'long'.
3022 2004-09-24  Zack Weinberg  <zack@codesourcery.com>
3024         * objc-act.c: Change annotate_with_locus to SET_EXPR_LOCATION
3025         throughout.
3026         (objc_init): Only set input_line to 0 #ifndef USE_MAPPED_LOCATION.
3027         (build_selector_translation_table): Use %J in diagnostic
3028         instead of diddling input_line.  Fix spelling.
3030 2004-09-21  Ziemowit Laski  <zlaski@apple.com>
3032         * objc-act.c (objc_fold_objc_type_ref): New function.
3033         * objc-act.h (objc_fold_objc_type_ref): New prototype.
3035 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
3037         * objc-act.c (objc_start_function, really_start_method,
3038         objc_get_parm_info, start_method_def): Update to new arg_info
3039         structures.
3041 2004-09-07  Ziemowit Laski  <zlaski@apple.com>
3043         * Make-lang.in (objc/objc-parse.o): Depend on $(C_COMMON_H) instead of
3044         objc/objc-act.h.
3045         (objc/objc-act.o): Depend on $(HASHTAB_H).
3046         * objc-act.c: Include hashtab.h; in ObjC++ mode, include cp-tree.h and
3047         objcp-decl.h instead of c-tree.h.
3048         (build_module_descriptor, get_class_ivars, synth_id_with_class_suffix,
3049         error_with_ivar, gen_method_decl, gen_declaration, setup_string_decl,
3050         build_protocol_template): Adjust prototypes.
3051         (build_module_initializer_routine, start_class, continue_class,
3052         finish_class, start_method_def, objc_start_function, start_protocol,
3053         build_method_decl, objc_add_method, add_instance_variable,
3054         build_ivar_reference, is_ivar, is_private, get_super_receiver,
3055         build_selector_table_decl, objc_push_parm, objc_get_parm_info,
3056         gen_type_name, gen_type_name_0, start_var_decl, finish_var_decl,
3057         create_field_decl): New prototypes.
3058         (objc_expand_function_end, comp_method_with_proto, objc_expr_last,
3059         gen_declaration_1, gen_declarator, is_complex_decl, adorn_decl,
3060         define_decl, create_builtin_decl, gen_declspecs): Remove prototypes.
3061         (TYPE_ID): Rename to OBJECT_TYPEDEF_NAME.
3062         (CLASS_TYPEDEF_NAME): New.
3063         (TAG_EXECCLASS): Change from a global variable to a #define.
3064         (TAG_RETURN_STRUCT): Delete.
3065         (TAG_GNUINIT): New, holds '__objc_gnu_init' name.
3066         (objc_inherit_code, objc_public_flag): New, moved from c-parse.in.
3067         (string_descriptor): New struct.
3068         (string_htab): New hash table.
3069         (string_hash, string_eq): New prototypes.
3070         (generate_struct_by_value_array): Call create_field_decl() instead of
3071         create_builtin_decl().
3072         (objc_init): Do not initialize objc_ellipsis_node or TAG_EXECCLASS;
3073         In ObjC++ mode, call cxx_init() instead of c_objc_common_init().
3074         (objc_finish_file): In ObjC++, call instantiate_pending_templates()
3075         and cp_finish_file().
3076         (define_decl, get_static_reference, get_protocol_reference,
3077         create_builtin_decl): Remove functions.
3078         (objc_start_class_interface, objc_start_category_interface,
3079         objc_start_protocol, objc_continue_interface, objc_finish_interface,
3080         objc_start_class_implementation, objc_start_category_implementation,
3081         objc_continue_implementation, objc_finish_implementation,
3082         objc_set_visibility, objc_set_method_type,
3083         objc_build_method_signature, objc_add_method_declaration,
3084         objc_start_method_definition, objc_add_instance_variable,
3085         objc_get_protocol_qualified_type, create_field_decl,
3086         start_var_decl, finish_var_decl): New functions.
3087         (setup_string_decl): Simplify since it is only called once.
3088         (synth_module_prologue): Call build_class_template(); predefine 'id'
3089         and 'Class' as typedefs; rename 'temp_type' to 'type'; disable debug
3090         hooks for duration of function; fix GNU runtime messenger signatures
3091         to correspond to reality; forward-declare '__objc_exec_class' for the
3092         GNU runtime; call build_selector_table_decl(); in ObjC++ mode, generate
3093         'extern "C" { ... }' wrappers around synthesized declarations; call
3094         build_protocol_template() and build_category_template().
3095         (string_hash, string_eq): New functions.
3096         (objc_build_string_object): Check metaclass correctness only once;
3097         store string literals in hash table.
3098         (objc_build_constructor): Do not convert initializer elements;
3099         adjust for ObjC++ impedance mismatch.
3100         (build_objc_symtab_template): Call create_field_decl() instead of
3101         create_builtin_decl().
3102         (init_objc_symtab): Add missing conversion to initializer element.
3103         (build_metadata_decl): Call start_var_decl() instead of define_decl().
3104         (generate_objc_symtab_decl): Do not call build_category_template();
3105         call start_var_decl() and finish_var_decl() instead of start_decl()
3106         and finish_decl().
3107         (build_module_descriptor): Call create_field_decl() instead of
3108         grokfield(); call start_var_decl() and finish_var_decl() instead of
3109         start_decl() and finish_decl(); always mark module descriptor as
3110         used; move GNU runtime-specific functionality to
3111         build_module_initializer_routine().
3112         (build_module_initializer_routine): New function, broken off of
3113         build_module_descriptor().
3114         (objc_static_init_needed_p, objc_generate_static_init_call): New
3115         functions.
3116         (generate_static_references, generate_strings,
3117         build_selector_translation_table, generate_descriptor_table,
3118         generate_ivars_list, generate_dispatch_table, generate_category): Call
3119         start_var_decl() and finish_var_decl() instead of start_decl() and
3120         finish_decl(); build a type directly instead of via groktypename().
3121         (build_selector_reference_decl, build_selector_table_decl,
3122         build_class_reference_decl, build_protocol_reference,
3123         generate_objc_image_info): Call start_var_decl() instead of
3124         build_decl().
3125         (build_selector_reference): For GNU runtime, do not call
3126         build_selector_reference_decl().
3127         (build_selector, build_typed_selector_reference): Always convert
3128         result to the selector type.
3129         (add_objc_string): Cast return value to 'char *'.
3130         (build_method_prototype_template, build_selector_template,
3131         build_method_template): Use actual selector type for fields
3132         pointing to selectors.
3133         (finish_objc): For GNU runtime, call
3134         build_module_initializer_routine() after build_module_descriptor().
3135         (generate_protocol_list, generate_shared_structures): Call
3136         start_var_decl() and finish_var_decl() instead of start_decl() and
3137         finish_decl(); build a type directly instead of via
3138         groktypename().
3139         (synth_id_with_class_suffix): Return a string.
3140         (get_arg_type_list): For instance methods, use the instance type for
3141         'self'; do not call groktypename_in_parm_context().
3142         (build_objc_string_decl): Squash redeclaration errors in ObjC++.
3143         (objc_is_class_name): Use OBJC_TYPE_NAME instead of TYPE_NAME;
3144         handle RECORD_TYPEs in ObjC as well as ObjC++.
3145         (objc_is_id): New function.
3146         (objc_is_object_ptr): Return the canonical type node.
3147         (objc_get_class_ivars): Simplify using get_class_ivars().
3148         (get_class_ivars): Remove second parameter; create a fresh copy
3149         of the ivar list for each call; do not check for existence of
3150         super class.
3151         (objc_eh_runtime_type): Mark #ifndef OBJCPLUS.
3152         (objc_init_exceptions): When using SJLJ-style exceptions, require
3153         the use of '-fobjc-exceptions' flag; do not require it for DWARF-style
3154         exceptions.
3155         (objc_build_exc_ptr, next_sjlj_build_try_catch_finally): Use
3156         objc_object_type instead of objc_id_type.
3157         (objc_begin_catch_clause): Convert the incoming PARM_DECL into
3158         a VAR_DECL before placing it in the appropriate scope; do not
3159         call define_decl(); adjust call to c_begin_compound_stmt();
3160         use objc_object_type instead of objc_id_type.
3161         (build_next_objc_exception_stuff): Call create_field_decl() instead
3162         of create_builtin_decl(); construct type directly instead of calling
3163         groktypename(); use OBJC_VOID_AT_END to mark end of function parameters.
3164         (build_private_template): Adjust call to get_class_ivars(); build
3165         a type directly instead of via groktypename().
3166         (build_protocol_template, build_method_prototype_list_template,
3167         build_method_prototype_template, build_category_template,
3168         build_selector_template, build_class_template, build_super_template,
3169         build_ivar_template, build_ivar_list_template,
3170         build_method_list_template, build_method_template):
3171         Call create_field_decl() instead of grokfield().
3172         (objc_method_parm_type): Do not call groktypename().
3173         (generate_descriptor_table): Call start_var_decl() and
3174         finish_var_decl() instead of start_decl() and finish_decl().
3175         (generate_method_descriptors, build_protocol_initializer,
3176         generate_dispatch_tables, build_category_initializer,
3177         build_shared_structure_initializer): Do not call groktypename().
3178         (generate_protocols): Call start_var_decl() and finish_var_decl()
3179         instead of start_decl() and finish_decl(); do not call groktypename().
3180         (error_with_ivar): Remove last parameter.
3181         (check_ivars): Do not iterate ovar CLASS_RAW_IVARS lists in addition
3182         to CLASS_IVARS lists; adjust calls to error_with_ivar().
3183         (generate_ivar_lists): Convert one of the initializer elements; do
3184         not call groktypename().
3185         (get_arg_type_list, start_method_def, gen_method_def): Account for
3186         new representation of variable arguments and '...' in Objective-C
3187         methods; add Objective-C++ impedance matching code.
3188         (is_objc_type_qualifier): Remove function.
3189         (adjust_type_for_id_default): Simplify; there is no longer a need to
3190         wade through declspecs.
3191         (lookup_interface, start_class, continue_class,
3192         finish_class, start_method_def, start_protocol, build_method_decl,
3193         objc_add_method, add_instance_variable, build_ivar_reference,
3194         is_ivar, is_private, get_super_receiver, objc_build_finally_epilogue):
3195         Make into static functions.
3196         (receiver_is_class_object): Use new IS_CLASS() macro.
3197         (objc_build_message_expr): Tweak ObjC++ message argument handling;
3198         call objc_finish_message_expr() instead of finish_message_expr().
3199         (finish_message_expr): Rename to objc_finish_message_expr(); use
3200         OBJC_TYPE_NAME and OBJC_SET_TYPE_NAME macros instead of TYPE_NAME.
3201         call gen_type_name() instead of gen_declaration(); call objc_is_id()
3202         instead of using IS_ID and IS_CLASS; Use objc_class_name instead of
3203         calling get_identifier("Class"); handle CONVERT_EXPRs in receiver.
3204         (build_objc_method_call, warn_with_method): Do not call groktypename().
3205         (build_ivar_reference): Call convert() instead of clobbering in a
3206         type.
3207         (hash_init): Initialize string_htab hash table.
3208         (add_instance_variable): Simplify parameter list; do not call grokfield();
3209         do not populate CLASS_IVARS list.
3210         (start_class): Check for the existence of super class, if one was specified.
3211         (continue_class): Use CLASS_RAW_IVARS rather than CLASS_IVARS; do not
3212         call build_class_template(); adjust call to get_class_ivars(); call
3213         build_decl(), pushdecl() and finish_decl() instead of define_decl().
3214         (finish_class): Call build_decl(), pushdecl() and finish_decl() instead
3215         of define_decl().
3216         (add_protocols): Use PROTOCOL_BINFO_ELTS for the tree vector size.
3217         (start_protocol): Do not call build_protocol_template(); use
3218         PROTOCOL_BINFO_ELTS for the tree vector size.
3219         (encode_type_qualifiers): Do not handle the 'const' qualifier here.
3220         (encode_pointer): Encode 'const char *' as 'r*', for backwards
3221         compatibility.
3222         (encode_array): Use HOST_WIDE_INT_PRINT_DEC instead of "%ld".
3223         (encode_type): Handle the 'const' qualifier here.
3224         (objc_parmlist): New global variable, sued by objc_push_parm and
3225         objc_get_parm_info().
3226         (objc_push_parm, objc_get_parm_info): New functions.
3227         (objc_expr_last): Remove function.
3228         (synth_self_and_ucmd_args): For instance methods, use the instance
3229         type for 'self'; call objc_push_parm() instead of push_parm_decl().
3230         (start_method_def): Do not call push_scope(), declare_parm_level(),
3231         pop_scope(), push_parm_decl(), store_parm_decls() or objc_expr_last();
3232         just use objc_push_parm() and objc_get_parm_info().
3233         (comp_method_with_proto): Remove function.
3234         (objc_types_are_equivalent): Strip away indirections before comparing
3235         underlying types.
3236         (comp_proto_with_proto): Do not call groktypename(); types are no
3237         longer in raw declspec format.
3238         (objc_start_function): New function.
3239         (really_start_method): Call comp_proto_with_proto() instead of
3240         comp_method_with_proto(); call objc_start_function() instead of
3241         hand-crafting a function declarator.
3242         (continue_method_def, objc_expand_function_end): Remove functions.
3243         (get_super_receiver): Call objc_get_current_scope() instead of
3244         get_current_scope(); reference 'super_class' field (instead of
3245         'class').
3246         (finish_method_def): Rename to objc_finish_method_definition() and
3247         add a function decl parameter; move method encoding call from
3248         objc_expand_function_end().
3249         (is_complex_decl, adorn_decl, gen_declarator, gen_declspecs,
3250         gen_declaration_1): Remove functions.
3251         (tmpbuf, RAW_DECLSPEC): Remove.
3252         (gen_declaration): Remove second parameter; simplify to deal
3253         with TYPE_P nodes instead of raw declspecs.
3254         (gen_type_name, gen_type_name_0): New functions.
3255         (gen_method_decl): Remove second parameter; call gen_type_name()
3256         instead of gen_declaration_1().
3257         (dump_interface): Adjust calls to gen_declaration() and
3258         gen_method_decl(); do not allocate a separate string buffer.
3259         (init_objc): Allocate a larger string buffer to accommodate
3260         dump_interface(); adjust call to build_module_descriptor();
3261         add call to build_module_initializer_routine() for the GNU
3262         runtime.
3263         (generate_classref_translation_entry): Do not call start_decl(); call
3264         finish_var_decl() instead of finish_decl(); call convert() instead of
3265         build_c_cast().
3266         * objc-act.h (CLASS_OWN_IVARS): Remove accessor.
3267         (CLASS_BINFO_ELTS): Reduce from 6 to 5, now that CLASS_OWN_IVARS is
3268         gone.
3269         (OCTI_GNU_INIT_DECL, GNU_INIT_decl): New.
3270         (OCTI_ELLIPSIS_NODE, objc_ellipsis_node): Remove.
3271         (OCTI_ID_ID, id_type, objc_id_id): Rename to OCTI_ID_NAME,
3272         objc_object_type and objc_object_name, respectively.
3273         (OCTI_CLS_REF, OCTI_CLASS_NAME, objc_class_reference,
3274         objc_class_name): New.
3275         (IS_CLASS): New macro.
3276         (IS_ID, IS_SUPER): Robustify.
3277         (OCTI_EXECCLASS_DECL, execclass_decl): New.
3278         (finish_file, start_class, continue_class, finish_class,
3279         start_method_def, continue_method_def, finish_method_def,
3280         start_protocol, finish_protocol, objc_build_throw_stmt,
3281         objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
3282         objc_build_synchronized_epilogue, objc_build_try_prologue,
3283         objc_build_try_epilogue, objc_build_catch_stmt, objc_build_catch_epilogue,
3284         objc_build_finally_prologue, objc_build_finally_epilogue,
3285         is_ivar, is_private, is_public, add_instance_variable, objc_add_method,
3286         get_super_receiver, objc_clear_super_receiver, get_class_ivars_from_name,
3287         get_class_reference, get_static_reference, get_object_reference,
3288         build_message_expr, finish_message_expr, build_selector_expr,
3289         build_ivar_reference, build_keyword_decl, build_method_decl,
3290         build_protocol_expr, build_objc_string_object, objc_declare_alias,
3291         objc_declare_class, objc_declare_protocols, objc_comptypes,
3292         objc_check_decl, build_encode_expr): Remove prototypes.
3293         (imp_count, cat_count): Make GGC-aware.
3294         (OBJC_SET_TYPE_NAME): New macro.
3296 2004-09-03  Ziemowit Laski  <zlaski@apple.com>
3298         * config-lang.in: Update copyright notice.
3299         (lang_requires): Indicate that ObjC requires C to be built first.
3301 2004-09-01  Ziemowit Laski  <zlaski@apple.com>
3303         * objc-act.c (objc_check_decl): Use OBJC_TYPE_NAME macro instead of
3304         TYPE_NAME.
3305         (build_objc_string_object): Rename to objc_build_string_object().
3306         (get_class_reference): Rename to objc_get_class_reference().
3307         (get_class_ivars_from_name): Rename to objc_get_class_ivars().
3308         (next_sjlj_build_catch_list, get_super_receiver): Call
3309         objc_get_class_reference() instead of get_class_reference().
3310         (build_keyword_decl): Rename to objc_build_keyword_decl().
3311         (build_message_expr): Rename to objc_build_message_expr().
3312         (build_protocol_expr): Rename to objc_build_protocol_expr().
3313         (build_selector_expr): Rename to objc_build_selector_expr().
3314         (build_encode_expr): Rename to objc_build_encode_expr().
3315         * objc-act.h (get_class_ivars_from_name): Rename prototype to
3316         objc_get_class_ivars().
3317         (get_class_reference): Rename prototype to objc_get_class_reference().
3318         (build_message_expr): Rename prototype to objc_build_message_expr().
3319         (build_selector_expr): Rename prototype to objc_build_selector_expr().
3320         (build_keyword_decl): Rename prototype to objc_build_keyword_decl().
3321         (build_protocol_expr): Rename prototype to objc_build_prototype_expr().
3322         (build_objc_string_object): Rename prototype to
3323         objc_build_string_object().
3325 2004-09-01  Ziemowit Laski  <zlaski@apple.com>
3327         * objc-act.c (lookup_interface): Make function 'static' and add a
3328         local prototype.
3329         (objc_check_decl, get_class_reference, objc_declare_alias,
3330         objc_declare_class, objc_is_object_ptr): Call objc_is_class_name()
3331         instead of is_class_name().
3332         (get_super_receiver, objc_clear_super_receiver): Call
3333         objc_get_current_scope() instead of get_current_scope().
3334         (is_class_name): Rename to objc_is_class_name.
3335         (lookup_objc_ivar): Rename to objc_lookup_ivar.
3337 2004-08-28  Ziemowit Laski  <zlaski@apple.com>
3339         * objc-act.c (objc_is_reserved_word): New function.
3341 2004-08-15  Ziemowit Laski  <zlaski@apple.com>
3343         * Make-lang.in (objc/objc-lang.o): Depend on $(C_PRETTY_PRINT_H),
3344         $(DIAGNOSTIC_H), c-objc-common.h and gtype-objc.h, but not on toplev.h.
3345         (objc/objc-parse.o): Do not depend on gtype-objc.h.
3346         * objc-act.c: Do not include gtype-objc.h.
3347         (finish_file): Rename to objc_finish_file().
3348         * objc-act.h (finish_file): Update copyright notice; remove prototype.
3349         * objc-lang.c: Update copyright notice; include diagnostic.h,
3350         c-objc-common.h, c-pretty-print.h and gtype-objc.h; do not include
3351         toplev.h.
3352         (finish_file): New hook routine.
3353         (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
3354         LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
3355         LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
3356         LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
3357         LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
3358         LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
3359         LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
3360         LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
3361         LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
3362         LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
3363         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
3364         LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
3365         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
3366         LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
3367         LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
3368         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
3369         LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
3370         LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
3371         LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
3372         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
3373         LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
3374         LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
3375         LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
3376         LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
3377         Move to c-objc-common.h.
3380 Copyright (C) 2004-2013 Free Software Foundation, Inc.
3382 Copying and distribution of this file, with or without modification,
3383 are permitted in any medium without royalty provided the copyright
3384 notice and this notice are preserved.