1 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
3 * objc-act.c (OBJC_GEN_METHOD_LABEL): Updated comments.
4 (objc_demangle): Return NULL if demangling can not be done because
5 the string to demangle is not an Objective-C mangled method name.
6 Be smarter in demangling method names so that at least for methods
7 with no arguments we are able to almost always demangle '_' correctly.
9 (objc_maybe_printable_name): New.
10 (objc_printable_name): Call objc_maybe_printable_name. If it
11 returns NULL, call cxx_printable_name in Objective-C++.
13 2010-10-21 Iain Sandoe <iains@gcc.gnu.org>
15 Based on the CFString implementation in FSF apple/trunk branch.
17 * objc/objc-act.c (objc_build_string_object): Handle CFStrings.
19 2010-10-21 Nicola Pero <nicola.pero@meta-innovation.com>
21 * objc-act.c (get_objc_string_decl): Use a switch instead of a
22 chain of ifs. Use gcc_unreachable instead of abort.
23 (add_objc_string): Same change.
24 (generate_protocol_list): Same change - twice.
25 (synth_id_with_class_suffix): Same change.
26 (build_keyword_selector): Same change - twice.
27 (objc_build_message_expr): Same change.
28 (objc_build_selector_expr): Same change.
29 (check_methods): Same change - and added missing gcc_unreachable
31 (check_methods_accessible): Same change - twice, and added missing
32 gcc_unreachable for default case in one of them.
33 (start_class): Same change - and added missing gcc_unreachable for
35 (continue_class): Same change.
36 (objc_gen_property_data): Same change.
37 (finish_class): Same change.
38 (encode_type_qualifiers): Added missing gcc_unreachable.
39 (encode_type): Small code tidy up to reduce duplicated code. Use
40 gcc_unreachable instead of abort - twice.
41 (encode_gnu_bitfield): Use a switch instead of a chain of ifs -
42 twice. Added missing gcc_unreachable for default case - twice.
43 (dump_interface): Use a switch instead of a chain of ifs.
44 (handle_impent): Same change.
46 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
48 * objc-act.h (objc_inherit_code): Removed.
49 * objc-act.c (objc_inherit_code): Removed.
50 (objc_set_method_type): Removed.
51 (objc_build_method_signature): Added is_class_method argument.
52 Use it instead of the global objc_inherit_code variable.
53 (objc_add_method_declaration): Same change.
54 (objc_start_method_definition): Same change.
55 (objc_generate_cxx_ctor_or_dtor): Updated call to
56 objc_start_method_definition. Do not call objc_set_method_type.
57 (adjust_type_for_id_default): Mark as inline.
58 (objc_synthesize_getter): Updated call to
59 objc_start_method_definition. Do not set objc_inherit_code.
60 (objc_synthesize_setter): Updated call to
61 objc_start_method_definition. Do not set objc_inherit_code.
63 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
65 Merge from 'apple/trunk' branch on FSF servers. Obvious updates
66 to gcc_alloc_xxx calls in hash_init and hash_class_name_enter to
67 get it to compile in the current trunk.
69 2006-01-27 Fariborz Jahanian <fjahanian@apple.com>
72 * objc/objc-act.c (hash_class_name_enter): New.
73 (hash_class_name_lookup): New.
74 (objc_declare_alias): Enter alias name into hash table.
75 (objc_declare_class): Enter class name into hash table.
76 (objc_is_class_name): Do a hash look up of class name.
77 (hash_init): Initialize the two new hash tables.
78 * objc-act.h: Added cls_name_hash_list and als_name_hash_list
79 declarations, removed class_chain and alias_chain.
81 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
83 * objc-lang.c (finish_file): Removed.
84 * objc-act.c (objc_finish_file): Renamed to
85 objc_write_global_declarations. Do not try to instantiate C++
86 templates when compiling Objective-C++ as this is now
87 automatically done before this function is called. Do not check
88 for syntax-only run or PCH generation as this is done by the
90 * objc-act.h (objc_finish_file): Removed.
92 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
94 Implemented parsing @synthesize and @dynamic for
95 Objective-C/Objective-C++.
96 * objc-act.c (objc_add_synthesize_declaration): New.
97 (objc_add_dynamic_declaration): New.
99 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
101 * objc-act.c (lookup_and_install_protocols): Return NULL if passed
104 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
106 Merge from 'apple/trunk' branch on FSF servers.
108 2006-03-10 Fariborz Jahanian <fjahanian@apple.com>
111 * objc/objc-act.c (objc_is_class_name): template parameter is not
112 an objective class name.
113 (objc_generate_cxx_cdtors): Check for the null
114 objc_implementation_context.
116 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
118 Merge from 'apple/trunk' branch on FSF servers.
120 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
123 * objc/objc-act.c (objc_non_volatilized_type): New
125 2005-10-07 Fariborz Jahanian <fjahanian@apple.com>
128 * objc-act.c (objc_build_volatilized_type): Build 'volatilzed'
129 types with proper attribute set and correctly.
130 (objc_volatilize_decl): Remove unneeded code.
131 (objc_type_quals_match): Use the new attribute to check on
133 (hash_init): removed unneeded code.
135 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
137 Merge from 'apple/trunk' branch on FSF servers.
139 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
142 * objc-act.c (objc_diagnose_private_ivar): New.
144 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
146 * objc-act.c: Rename 'objc_public_flag' to objc_ivar_visibility and
147 make its type 'objc_ivar_visibility_kind'.
148 (objc_start_class_interface): Update to use visibility enum.
149 (objc_start_class_implementation): Likewise.
150 (objc_set_visibility): Update to use visibility enum, warn that
151 @package is handle as per @public.
152 (add_instance_variable): Handle OBJC_IVAR_VIS_PACKAGE.
153 * objc-act.h: Rename 'objc_public_flag' to objc_ivar_visibility and
154 make its type 'objc_ivar_visibility_kind'.
156 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
158 merge from FSF apple 'trunk' branch.
159 2006 Fariborz Jahanian <fjahanian@apple.com>
161 Radars 4436866, 4505126, 4506903, 4517826
162 * objc-act.c (CALL_EXPR_OBJC_PROPERTY_GETTER): New.
163 property_readonly, property_getter, property_setter, property_ivar,
164 property_copies, in_objc_property_setter_name_context: New vars.
165 (objc_set_property_attr): New.
166 (objc_add_property_variable): New.
167 (lookup_property_in_list): New.
168 (lookup_property): New.
169 (objc_build_getter_call): New.
170 (objc_setter_func_call): New.
171 (get_selector_from_reference): New.
172 (objc_build_setter_call): New.
174 (build_property_reference): New.
175 (objc_finish_message_expr): Detect readonly property and warn.
176 (objc_build_property_ivar_name): New.
177 (objc_build_property_setter_name): New.
178 (objc_gen_one_property_datum): New.
179 (objc_process_getter_setter): New.
180 (objc_synthesize_getter): New.
181 (objc_synthesize_setter): New.
182 (objc_gen_property_data): New.
183 (finish_class): Generate property data.
184 (comp_proto_with_proto): Separated from ...
185 (match_proto_with_proto): ... New.
186 (objc_lookup_ivar): Handle properties.
187 * objc-tree.def (PROPERTY_DECL): New tree code.
188 * objc-act.h: CLASS_LANG_SLOT_ELTS, PROTOCOL_LANG_SLOT_ELTS update size.
189 (METHOD_PROPERTY_CONTEXT): New.
190 (PROPERTY_NAME): New.
191 (PROPERTY_GETTER_NAME): New.
192 (PROPERTY_SETTER_NAME): New.
193 (PROPERTY_IVAR_NAME): New.
194 (PROPERTY_READONLY): New.
195 (PROPERTY_COPIES): New.
196 (TOTAL_CLASS_RAW_IVARS): New.
197 (CLASS_PROPERTY_DECL): New.
198 (IMPL_PROPERTY_DECL): New.
199 * objc-lang.c (objc_init_ts): Update fields for property_decl.
201 2010-10-13 Richard Henderson <rth@redhat.com>
203 * objc-act.c (objc_eh_personality): Update call to
204 build_personality_function.
206 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
208 merge from FSF apple 'trunk' branch.
210 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
211 Radar 3803157 (method attributes)
212 * objc/objc-act.h (METHOD_TYPE_ATTRIBUTES): New macro.
213 * objc/objc-act.c (objc_decl_method_attributes): New.
214 (objc_add_method_declaration): Process method's attribute.
215 (objc_start_method_definition): Ditto.
216 (build_objc_method_call): Inject method attribute into
218 (objc_method_decl): New.
219 (objc_warn_deprecated)use): New.
221 2010-10-07 Andi Kleen <ak@linux.intel.com>
223 * Make-lang.in (cc1obj-dummy): Remove.
224 (cc1obj-checksum): Change to run checksum over object files
227 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com>
230 * objc-act.c (objc_finish_foreach_loop): Convert return value of
231 countByEnumeratingWithState:objects:count: to long unsigned int.
233 2010-10-07 Iain Sandoe <iains@gcc.gnu.org>
235 * objc-act.c (build_objc_method_call): Replace calls to
236 build_function_call () with the VEC equivalent. Construct parameter
239 2010-10-07 Iain Sandoe <iains@gcc.gnu.org>
241 * objc-act.c (objc_build_message_expr): Call mark_exp_read () to
242 signal that the receiver has been used.
244 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
246 * README: Obsolete file removed.
248 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
250 Implemented fast enumeration for Objective-C.
251 * objc-act.c (build_fast_enumeration_state_template): New.
252 (TAG_ENUMERATION_MUTATION): New.
253 (TAG_FAST_ENUMERATION_STATE): New.
254 (synth_module_prologue): Call build_fast_enumeration_state_template() and set up
255 objc_enumeration_mutation_decl.
256 (objc_create_temporary_var): Allow providing a name to temporary
258 (objc_build_exc_ptr): Updated calls to
259 objc_create_temporary_var().
260 (next_sjlj_build_try_catch_finally): Same change.
261 (objc_finish_foreach_loop): New.
262 * objc-act.h: Added OCTI_FAST_ENUM_STATE_TEMP,
263 OCTI_ENUM_MUTATION_DECL, objc_fast_enumeration_state_template,
264 objc_enumeration_mutation_decl.
266 Merge from 'apple/trunk' branch on FSF servers.
268 2006-04-12 Fariborz Jahanian <fjahanian@apple.com>
271 * objc-act.c (objc_type_valid_for_messaging): New routine to check
272 for valid objc object types.
273 (objc_finish_foreach_loop): Check for invalid objc objects in
276 2010-10-05 Nicola Pero <nicola.pero@meta-innovation.com>
278 Merge from 'apple/trunk' branch on FSF servers.
280 2005-10-17 Fariborz Jahanian <fjahanian@apple.com>
283 * objc-act.c (objc_start_method_definition): Check for
284 error_mark_node for the selector name and make a quick exit.
286 2010-10-04 Andi Kleen <ak@linux.intel.com>
288 * Make-lang.in (cc1obj-dummy, cc1obj): Add + to build rule.
290 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
292 merge from FSF 'apple/trunk' branch.
293 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
296 * objc/objc-act.c (objc_set_method_opt): New function.
297 (objc_start_protocol, objc_finish_interface): Reset
298 objc_method_optional_flag flag.
299 (objc_add_method_declaration): Pass on the new
300 flag to objc_add_method.
301 (objc_add_method): Add optional methods to new chain in
303 * objc/objc-act.h (CLASS_OPTIONAL_CLS_METHODS,
304 CLASS_OPTIONAL_NST_METHODS): New macros accessing a protocol
305 class's optional method chains.
307 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
309 Merge from 'apple/trunk' branch on FSF servers.
311 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
314 * objc-act.c (objc_declare_class): Pick the right
317 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
319 Merge from 'apple/trunk' branch on FSF servers.
321 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
324 * objc-act.c (objc_check_global_decl): New
326 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
328 * objc-act.c (objc_is_reserved_word): Removed.
330 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
332 * objc-act.c (objc_add_method_declaration): Handle and ignore
334 (objc_start_method_definition): Likewise.
335 (objc_generate_cxx_ctor_or_dtor): Pass NULL attributes to ctor/dtor.
336 (objc_build_keyword_decl): Handle and ignore attributes.
338 2010-09-28 Richard Henderson <rth@redhat.com>
340 * objc-act.c (objc_eh_personality): Use targetm.except_unwind_info.
342 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
344 * objc-act.c (objc_start_class_interface): Handle and ignore attributes.
345 (objc_start_category_interface): Likewise.
346 (objc_start_protocol): Likewise.
348 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
350 Merge from 'apple/trunk' branch on FSF servers.
352 2005-08-23 Stuart Hastings <stuart@apple.com>
353 Ziemowit Laski <zlaski@apple.com>
356 * objc-act.c (objc_decay_parm_type): New function.
357 (get_arg_type_list): Decay types for all named arguments.
358 (objc_push_parm): Rebuild the PARM_DECL if its type has
361 2010-09-28 Nicola Pero <nicola@nicola.brainstorm.co.uk>
363 * objc-act.c (encode_type): Fixed encoding enums with the next
366 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
368 Merge from 'apple/trunk' branch on FSF servers.
370 2005-07-18 Ziemowit Laski <zlaski@apple.com>
373 * objc-act.c (objc_compare_types): A new silent comparison
374 mode (-4), differing from regular comparison (-3) in that
375 'false' is returned instead of issuing warnings.
377 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
379 * objc-act.c (encode_type): Do not add 'r' with the next runtime.
380 (encode_aggregate_within): Reorganized code to be more readable.
381 (encode_aggregate_fields): Updated second argument to be 'bool'
384 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
389 * objc-act.c: Improved comments for encoding functions.
390 (encode_aggregate_within): For the GNU runtime, rewritten some
391 obsfuscated code to clarify the various cases.
392 (encode_aggregate): Function removed.
393 (encode_array): Generate an error if asked to encode an incomplete
394 array as part of generating instance variables. Else, when
395 encoding an incomplete array inside a structure, encode it as an
397 (encode_pointer): For the GNU runtime, fixed encoding 'BOOL *' as
399 (encode_gnu_bitfield): Encode enumerated types exactly in the same
400 type as integer types instead of using a hardcoded 'i'. If asked
401 to encode a non-integer type as a bitfield, do not abort
402 compilation immediately; instead generate an error, then skip the
404 (encode_type): Use a 'switch' instead of a sequence of 'if's.
405 Added a 'default' clause that gets executed if the type can not be
406 matched, and that encodes it as '?' (unknown) and produces a
407 warning. For the GNU runtime, encode enumerated types exactly in
408 the same way as integer types instead of using a hardcoded 'i'.
409 Encode long double as 'D'. Encode 128-bit integers as 'T' or 't'.
410 Encode C++ reference types as pointers. Call encode_vector to
412 (encode_vector): New function.
414 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
416 Merge from 'apple/trunk' branch on FSF servers. I modified the
417 changes to be used only when compiling for the NeXT runtime.
419 2005-10-10 Fariborz Jahanian <fjahanian@apple.com>
423 * objc-act.c (encode_type): Remove the hack.
425 2005-07-20 Ziemowit Laski <zlaski@apple.com>
428 * objc-act.c (pointee_is_readonly): New function.
429 (encode_pointer, encode_aggregate_within, encode_type):
430 Attempt to emulate GCC 3.3 when generating type encodings.
432 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
434 Merge from 'apple/trunk' branch on FSF servers.
436 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
439 * objc-act.c (objc_have_common_types): New function.
441 2005-06-22 Ziemowit Laski <zlaski@apple.com>
444 * objc-act.c (objc_common_type): New function.
446 2010-09-27 Richard Guenther <rguenther@suse.de>
448 * objc-act.c (objc_get_class_reference): Use CP_TYPE_CONTEXT.
449 (objc_is_global_reference_p): Use DECL_FILE_SCOPE_P.
451 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
453 * objc-act.c: Removed historical, obsolete comment at the top of
456 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
459 * objc-act.c (objc_start_method_definition): Do not abort upon a
460 'method definition not in @implementation context' error. Return
463 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
466 * objc-act.c (objc_get_interface_ivars): New function.
467 (objc_collecting_ivars): New variable.
468 (continue_class): Set and reset objc_collecting_ivars for context.
470 2010-09-15 Nicola Pero <nicola.pero@meta-innovation.com>
472 Merge from 'apple/trunk' branch on FSF servers.
474 2006-03-09 Fariborz Jahanian <fjahanian@apple.com>
477 * objc/objc-act.c (objc_finish_message_expr): Look for message in
478 @class's protocol list.
480 2006-02-07 Fariborz Jahanian <fjahanian@apple.com>
483 * objc/objc-act.c (objc_start_method_definition): Initialize
484 break/continue labels.
486 2005-08-22 Ziemowit Laski <zlaski@apple.com>
489 * objc-act.c (objc_compare_types): Compare function
490 pointers; indicate success if the right-hand side has
491 a return type that is covariant, and the argument types
492 contravariant, with those of the left side.
494 2005-08-22 Ziemowit Laski <zlaski@apple.com>
497 * objc-act.c (objc_get_protocol_qualified_type): When looking
498 at a typedef, retrieve the precise type it describes (rather
499 than merely looking up a class by name).
501 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
503 * objc/objc-act.c (objc_begin_try_stmt): Generate an error if
504 -fobjc-exceptions was not used. (objc_build_throw_stmt): Same
507 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
509 * objc-act.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
511 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
514 * objc-act.c: build_objc_string_decl() remove declaration.
515 (finish_var_decl): Remove forcing of var output and marking
517 (init_def_list): Use integer_zero_node.
518 (init_objc_symtab): Use integer_zero_node, make the short
519 integer type specific on relevant nodes.
520 (generate_objc_symtab_decl): Remove call to
521 forward_declare_categories(). Use null_pointer_node where
523 (build_module_descriptor): Comment and mark this item as
525 (generate_static_references): Use gcc_unreachable instead of
527 (diagnose_missing_method): New.
528 (build_next_selector_translation_table): New.
529 (build_gnu_selector_translation_table): New.
530 (add_objc_string): Merge code from build_objc_string_decl...
531 ... and delete build_objc_string_decl().
532 (generate_dispatch_table): Make integer types explicit.
533 (generate_category): Pass implent and arrange for the data
534 to be extracted within the routine. Do not start new vars,
535 but finish the ones collcted during parsing.
536 (generate_shared_structures): Likewise.
537 (finish_objc): Reorder code so that we finish variables before
538 referencing them. Save the global data before calling meta-data
539 creation routines, and pass the current reference to the two
540 main routines. Only call generate_objc_image_info () for the
542 (generate_classref_translation_entry): Comment on and make this
543 item DECL_PRESERVE_P.
544 (handle_class_ref): Use varpool interfaces, comment on and make
545 this item DECL_PRESERVE_P.
546 (handle_impent): Likewise.
547 (generate_objc_image_info): Only generate when the content is
548 non-zero. Make integer types explict.
550 2010-07-03 Nathan Froyd <froydnj@codesourcery.com>
553 * objc-act.c (build_sized_array_type): New function.
554 (add_objc_string): Use it.
555 (generate_protocol_list): Likewise.
556 (generate_objc_image_info): Likewise.
557 (add_field_decl): New function.
558 (objc_build_struct): Use a VEC rather than building a TREE_LIST.
559 (generate_struct_by_value_array): Use add_field_decl.
560 (build_objc_symtab_template): Likewise.
561 (build_module_descriptor): Likewise.
562 (build_objc_exception_stuff): Likewise.
563 (build_protocol_template): Likewise.
564 (build_method_prototype_list_template): Likewise.
565 (build_method_prototype_template): Likewise.
566 (build_category_template): Likewise.
567 (build_selector_template): Likewise.
568 (build_class_template): Likewise.
569 (build_super_template): Likewise.
570 (build_ivar_template): Likewise.
571 (build_ivar_list_template): Likewise.
572 (build_method_list_template): Likewise.
573 (build_method_template): Likewise.
575 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
577 * objc-act.c: Do not include except.h.
579 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
581 * objc-act.h (ALLOC_OBJC_TYPE_LANG_SPECIFIC): Use typed GC
584 * objc-act.c (objc_volatilize_decl): Likewise.
585 (objc_build_string_object): Likewise.
586 (hash_init): Likewise.
587 (hash_enter): Likewise.
588 (hash_add_attr): Likewise.
589 (add_class): Likewise.
590 (start_class): Likewise.
592 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
594 * objc-act.c: Update include path for moved files.
595 * objc-lang.c: Likewise.
596 * config-lang.in: Update paths in gtfiles for files in c-family/.
598 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
600 * objc-act.c (build_next_objc_exception_stuff): Give setjmp a
601 varargs type instead of a zero-argument type.
603 2010-05-30 Nathan Froyd <froydnj@codesourcery.com>
605 * objc-act.c (synth_module_prologue): Use build_function_type_list
606 instead of build_function_type.
607 (build_module_initializer_routine): Likewise.
608 (build_next_objc_exception_stuff): Likewise.
609 (build_objc_exception_stuff): Likewise.
611 2010-05-27 Joseph Myers <joseph@codesourcery.com>
613 * objc-act.c: Include diagnostic-core.h instead of diagnostic.h.
614 * Make-lang.in (objc/objc-act.o): Update dependencies.
616 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
618 * objc-act.h: Do not include gimple.h.
619 * objc-act.c: Do not include rtl.h, expr.h, libfuncs.h, and tm_p.h.
620 Include gimple.h. Explain why except.h has to be included.
621 * objc-lang.c: Do not include diagnostics.h.
622 * Make-lang.in: Update dependencies.
624 2010-05-25 Nathan Froyd <froydnj@codesourcery.com>
626 * objc-act.c (objc_build_constructor): Adjust OBJCPLUS impedance
627 mismatch code for VECs.
629 2010-05-25 Nathan Froyd <froydnj@codesourcery.com>
631 * objc-act.c (objc_build_constructor): Take a VEC instead of a tree.
632 Use build_constructor instead of build_constructor_from_list.
633 (objc_build_string_object): Build a VEC argument for
634 objc_build_constructor.
635 (init_def_list): Likewise.
636 (init_objc_symtab): Likewise.
637 (init_module_descriptor): Likewise.
638 (generate_static_references): Likewise.
639 (build_selector_translation_table): Likewise.
640 (build_descriptor_table_initializer): Likewise.
641 (generate_descriptor_table): Likewise.
642 (build_protocol_initializer): Likewise.
643 (build_ivar_list_initializer): Likewise.
644 (generate_ivars_list): Likewise.
645 (build_dispatch_table_initializer): Likewise.
646 (generate_dispatch_table): Likewise.
647 (generate_protocol_list): Likewise.
648 (build_category_initializer): Likewise.
649 (build_shared_structure_initializer): Likewise.
650 (generate_objc_image_info): Likewise.
652 2010-04-30 Iain Sandoe <iains@gcc.gnu.org>
655 * objc-act.c (encode_aggregate_within): Encode structure tags
656 with template args for ObjC++.
658 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
660 * objc-act.c: Do not include varray.h.
662 2010-04-07 Jakub Jelinek <jakub@redhat.com>
665 * objc-act.c (finish_var_decl, objc_begin_catch_clause,
666 really_start_method, get_super_receiver, handle_class_ref): Set
667 DECL_READ_P in addition to TREE_USED.
669 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
672 * objc-act.c (objc_init): Warn that -fobjc-gc is ignored for
673 -fgnu-runtime and set flag_objc_gc to zero.
675 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
678 * objc-act.c (build_module_initializer_routine): Make the argument
679 to objc_start_function NULL_TREE when compiling ObjC++.
681 2010-02-18 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
682 Mike Stump <mikestump@comcast.net>
685 * objc-act.c (finish_var_decl): Set the generated symbols as "used".
687 2009-12-17 Shujing Zhao <pearly.zhao@oracle.com>
689 * objc-act.c (objc_substitute_decl, build_ivar_reference,
690 get_super_receiver): Update build_indirect_ref calls.
692 2009-11-28 Jakub Jelinek <jakub@redhat.com>
694 * objc-act.c (generate_shared_structures): Remove unused sc_spec and
695 decl_specs variables.
696 (objc_build_message_expr): Remove unused loc variable.
697 (objc_finish_message_expr): Remove unused saved_rtype variable.
698 (encode_field_decl): Remove unused type variable.
701 * objc-act.c (objc_build_struct): INIT_TYPE_OBJC_INFO for
702 type variants that don't have it initialized yet.
704 2009-09-14 Jan Hubicka <jh@suse.cz>
706 * objc-act.c (objc_add_static_instance): Do not set DECL_COMMON.
708 2009-09-14 Richard Henderson <rth@redhat.com>
710 * objc-act.c (objc_init_exceptions): Don't call
711 default_init_unwind_resume_libfunc.
712 (objc_build_exc_ptr): Use __builtin_eh_pointer.
714 2009-09-13 Richard Guenther <rguenther@suse.de>
715 Rafael Avila de Espindola <espindola@google.com>
717 * objc-act.c (objc_eh_runtime_type): Export.
718 (objc_init_exceptions): Remove. Move warning code ...
719 (objc_begin_try_stmt): ... here
720 (objc_build_throw_stmt): ... and here.
721 (objc_eh_personality_decl): New.
722 (objc_eh_personality): New function.
723 * objc-act.h (objc_eh_runtime_type): Declare.
724 (objc_eh_personality): Likewise.
725 * objc-lang.c (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
726 (LANG_HOOKS_EH_PERSONALITY): Likewise.
728 2009-09-03 Diego Novillo <dnovillo@google.com>
730 * objc-lang.c (lang_hooks): Remove const qualifier.
732 2009-08-20 Richard Guenther <rguenther@suse.de>
734 * objc-act.c: Include c-lang.h
735 * Make-lang.in (objc/objc-act.o): Add c-lang.h dependency.
737 2009-07-17 Aldy Hernandez <aldyh@redhat.com>
738 Manuel López-Ibáñez <manu@gcc.gnu.org>
741 * objc-act.c: Add location argument to all calls to
742 build_fold_addr_expr.
744 2009-07-14 Taras Glek <tglek@mozilla.com>
745 Rafael Espindola <espindola@google.com>
747 * Make-lang.in (objc.install-plugin): New target for
748 installing plugin headers.
750 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
752 * objc-act.c (next_sjlj_build_catch_list): Replace EXPR_LOCUS by
755 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
757 * objc-act.c: Replace %J by an explicit location. Update all
760 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
762 * objc-act.c: Replace %H by an explicit location. Update all
765 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
768 * objc-act.c (objc_build_message_args): Return if ARGS is the
771 2009-06-19 Ian Lance Taylor <iant@google.com>
773 * objc-act.c (objc_in_struct, objc_struct_types): Remove.
774 (objc_struct_info): New static variable.
775 (objc_start_struct): Pass &objc_struct_info, not &objc_in_struct
776 and &objc_struct_types, to start_struct.
777 (objc_finish_struct): Likewise for finish_struct.
779 2009-06-15 Ian Lance Taylor <iant@google.com>
781 * objc-act.c (objc_start_function): Don't set
782 label_context_stack_se or label_context_stack_vm.
784 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
786 * objc-act.c (finish_var_decl): Pass location to finish_decl.
787 (objc_get_parm_info): Same.
788 (get_super_receiver): Same.
789 * objc-act.c (objc_build_component_ref): Pass location to
791 (build_module_initializer_routine): Pass location to
793 (objc_generate_static_init_call): Pass location to build_stmt.
794 (build_typed_selector_reference): New location argument.
795 (build_selector_reference): Same.
796 (objc_substitute_decl): Pass location to build_array_ref.
797 (next_sjlj_build_try_catch_finally): Pass location to build_stmt.
798 (objc_begin_catch_clause): Same.
799 (objc_finish_try_stmt): Same.
800 (objc_finish_catch_clause): Pass location to c_end_compound_stmt.
801 (objc_build_throw_stmt): New argument.
802 (generate_shared_structures): Pass location to build_c_cast.
803 (objc_build_message_expr): Use local location.
804 (objc_finish_message_expr): Use input_location.
805 (build_objc_method_call): New argument.
806 (objc_build_selector_expr): Same.
807 (get_super_receiver): Pass location to build_c_cast,
808 build_modify_expr, build_compound_expr.
809 * objc-act.c: Add location to all calls to start_struct, build_decl,
812 2009-06-09 Ian Lance Taylor <iant@google.com>
814 * objc-act.c (objc_gimplify_expr): Change return type to int.
815 * objc-act.h: Update declaration.
817 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
819 * objc-act.c (objc_init): Skip print_struct_values during
820 -fcompare-debug-second.
822 2009-06-03 Ian Lance Taylor <iant@google.com>
824 * Make-lang.in (cc1obj-checksum.o): Depend upon $(CONFIG_H) and
827 2009-05-27 Ian Lance Taylor <iant@google.com>
829 * Make-lang.in (cc1obj-dummy$(exeext)): Change $(COMPILER) to
831 (cc1obj$(exeext)): Likewise.
833 2009-05-26 Ian Lance Taylor <iant@google.com>
835 * Make-lang.in (cc1obj-dummy$(exeext)): Use $(COMPILER).
836 (cc1obj$(exeext)): Likewise.
838 2009-05-20 Ian Lance Taylor <iant@google.com>
840 * objc-act.c (objc_generate_cxx_ctor_or_dtor): Pass NULL rather
841 than NULL_TREE to build_special_member_call.
843 2009-05-10 Ian Lance Taylor <iant@google.com>
845 * objc-act.c (objc_building_struct): New static variable.
846 (objc_in_struct, objc_struct_types): New static variables.
847 (objc_start_struct, objc_finish_struct): New static functions.
848 (generate_struct_by_value_array): Call objc_start_struct instead
849 of start_struct, and call objc_finish_struct instead of
851 (objc_build_struct, build_objc_symtab_template): Likewise.
852 (build_module_descriptor): Likewise.
853 (build_next_objc_exception_stuff): Likewise.
854 (build_protocol_template): Likewise.
855 (build_method_prototype_list_template): Likewise.
856 (build_method_prototype_template): Likewise.
857 (build_category_template, build_selector_template): Likewise.
858 (build_class_template, build_super_template): Likewise.
859 (build_ivar_template, build_ivar_list_template): Likewise.
860 (build_method_list_template): Likewise.
861 (build_method_template): Likewise.
863 2009-05-10 Joseph Myers <joseph@codesourcery.com>
865 * objc-act.c: Include intl.h.
866 (objc_lookup_protocol): Use complete sentences for diagnostics
867 with %qE for identifiers and translating results of
868 gen_type_name_0 to locale character set.
869 (objc_check_decl, check_protocol_recursively,
870 lookup_and_install_protocols, objc_build_string_object,
871 objc_get_class_reference, objc_declare_alias, objc_declare_class,
872 objc_get_class_ivars, error_with_ivar, check_duplicates,
873 objc_finish_message_expr, objc_build_protocol_expr,
874 objc_build_selector_expr, build_ivar_reference, objc_add_method,
875 add_category, add_instance_variable, objc_is_public,
876 check_methods, check_methods_accessible, check_protocol,
877 start_class, finish_class, start_protocol, really_start_method,
878 get_super_receiver, objc_lookup_ivar): Use %E and %qE for
879 identifiers in diagnostics. Translate generated text to locale
880 character set as needed.
881 (check_protocol, check_protocols): Change name parameter to type
883 (lang_report_error_function): Remove.
885 2009-04-27 Ian Lance Taylor <iant@google.com>
887 * objc-act.c (objc_gimplify_expr): Add casts to enum type.
889 2009-04-24 Ian Lance Taylor <iant@google.com>
891 * objc-act.c (get_super_receiver): Update calls to
892 build_modify_expr to pass new argument.
894 2009-04-21 Taras Glek <tglek@mozilla.com>
896 * objc-act.c: Update GTY annotations to new syntax
897 * objc-act.h: Likewise
899 2009-04-21 Joseph Myers <joseph@codesourcery.com>
901 * ChangeLog: Add copyright and license notices.
903 2009-04-20 Ian Lance Taylor <iant@google.com>
905 * objc-act.c (objc_rewrite_function_call): Change parameter from
906 params to first_param. Change all callers.
908 2009-03-30 Dominique d'Humieres <dominiq@lps.ens.fr>
911 * objc-act.c (in_late_binary_op): Define for Objective-C++.
913 2009-03-29 Joseph Myers <joseph@codesourcery.com>
921 * objc-act.c (objc_finish_try_stmt): Set in_late_binary_op.
923 2008-12-05 Sebastian Pop <sebastian.pop@amd.com>
926 * Make-lang.in (cc1obj-dummy, cc1obj): Add BACKENDLIBS,
929 2008-10-06 Aldy Hernandez <aldyh@redhat.com>
931 * objc-act.c (objc_build_string_object): Pass location to
933 (init_def_list): Same.
934 (init_objc_symtab): Same.
935 (init_module_descriptor): Same.
936 (build_module_initializer_routine): Same.
937 (generate_static_references): Same.
938 (build_typed_selector_reference): Same.
939 (add_objc_string): Same.
940 (objc_substitute_decl): Same.
941 (objc_build_ivar_assignment): Same.
942 (objc_build_global_assignment): Same.
943 (objc_build_strong_cast_assignment): Same.
944 (generate_protocols): Same.
945 (build_protocol_initializer): Same.
946 (build_dispatch_table_initializer): Same.
947 (generate_protocol_list): Same.
948 (build_category_initializer): Same.
949 (build_shared_structure_initializer): Same.
950 (generate_shared_structures): Same.
951 (objc_build_protocol_expr): Same.
952 (build_ivar_reference): Same.
953 (get_super_receiver): Same.
955 2008-09-23 Aldy Hernandez <aldyh@redhat.com>
957 * objc-act.c (next_sjlj_build_enter_and_setjmp): Call
958 c_common_truthvalue_conversion with location.
959 (next_sjlj_build_catch_list): Same.
960 (next_sjlj_build_try_catch_finally): Same.
962 2008-09-17 Andrew Pinski <andrew_pinski@playstation.sony.com>
965 * objc-lang.c (LANG_HOOKS_GET_CALLEE_FNDECL): Don't define.
966 * objc-act.h (objc_get_callee_fndecl): Remove prototype.
967 * objc-act.c (objc_get_callee_fndecl): Kill.
969 2008-09-17 Jan Hubicka <jh@suse.cz>
972 * objc/objc-act.c (objc_finish_method_definition): Do not set
975 2008-09-01 Aldy Hernandez <aldyh@redhat.com>
977 * objc-act.c (build_typed_selector_reference): Pass input_location to
978 build_unary_op calls.
979 (build_selector_reference): Same, but to build_array_ref.
980 (objc_substitute_decl): Same.
981 (build_ivar_reference): Same, but to build_indirect_ref.
982 (get_super_receiver): Same.
984 2008-07-28 Richard Guenther <rguenther@suse.de>
986 Merge from gimple-tuples-branch.
988 2008-07-18 Aldy Hernandez <aldyh@redhat.com>
990 * Make-lang.in (objc-lang.o): Depend on GIMPLE_H.
991 (objc-act.o): Rename TREE_GIMPLE_H to GIMPLE_H.
992 * objc-act.h: Include gimple.h instead of tree-gimple.h.
993 * ipa-reference.c: Same.
995 2007-11-10 Aldy Hernandez <aldyh@redhat.com>
997 * objc-act.c (objc_gimplify_expr): Change pre and post to sequences.
998 * objc-act.h (objc_gimplify_expr): Change prototype accordingly.
1000 2008-07-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1002 * objc-act.c: Fix comment typos.
1004 2008-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1006 * objc-act.c (objc_start_class_interface,
1007 objc_start_category_interface, objc_start_class_implementation,
1008 objc_start_category_implementation, objc_build_struct,
1009 generate_static_references, build_private_template,
1010 lookup_category, objc_add_method, add_category,
1011 add_instance_variable, objc_is_public, conforms_to_protocol,
1012 start_class, continue_class, finish_class): Avoid C++ keywords.
1014 2008-07-14 Jason Merrill <jason@redhat.com>
1017 * objc-act.c (objc_build_constructor): Update C++ tweak.
1019 2007-07-14 Rafael Ávila de Espíndola <espindola@google.com>
1021 * objc-act.c (synth_module_prologue): Use TREE_NO_WARNING instead
1022 of DECL_IN_SYSTEM_HEADER.
1024 2008-07-11 Ian Lance Taylor <iant@google.com>
1026 * objc-act.c (objc_is_reserved_word): Always check for RID_CLASS,
1027 etc., not just when OBJCPLUS is defined.
1029 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1031 * objc-act.c (setup_string_decl, objc_build_string_object,
1032 hash_interface, eq_interface, objc_begin_try_stmt,
1033 encode_method_prototype, build_ivar_list_initializer,
1034 objc_build_encode_expr): Fix for -Wc++-compat.
1036 2008-05-12 Tomas Bily <tbily@suse.cz>
1038 * objc-act.c (objc_generate_write_barrier, objc_finish_message_expr):
1041 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
1043 * objc-act.c (objc_build_string_object): Don't set TREE_INVARIANT.
1045 2008-04-03 Tom Tromey <tromey@redhat.com>
1047 * Make-lang.in (objc_OBJS): New variable.
1049 2008-03-27 Tom Tromey <tromey@redhat.com>
1051 * Make-lang.in: Revert automatic dependency patch.
1053 2008-03-27 Douglas Gregor <doug.gregor@gmail.com>
1056 * objc-act.c (objc_build_component_ref): Fix call to
1057 finish_class_member_access_expr.
1058 (objc_generate_cxx_ctor_or_dtor): Fix call to
1059 build_special_member_call.
1061 2008-03-25 Andrew Pinski <pinskia@gmail.com>
1064 * objc-act.c (encode_type): Handle when type is error_mark_node.
1065 (objc_push_parm): Handle when the type of parm is error_mark_node.
1067 2008-03-25 Tom Tromey <tromey@redhat.com>
1069 * Make-lang.in (objc_OBJS): New variable.
1070 (cc1obj-checksum.o, objc/objc-lang.o, objc/objc-act.o): Remove.
1072 2008-03-21 Andreas Tobler <a.tobler@schweiz.org>
1075 * objc-act.c (objc_generate_cxx_ctor_or_dtor): Rename IS_AGGR_TYPE to
1077 (objc_generate_cxx_cdtors): Likewise.
1078 (add_instance_variable): Likewise.
1080 2008-02-26 Tom Tromey <tromey@redhat.com>
1082 * objc-act.c (objc_init): Remove old location code.
1084 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1087 * Make-lang.in (cc1obj-dummy, cc1obj): Add $(GMPLIBS).
1089 2007-07-30 Nick Clifton <nickc@redhat.com>
1091 * Make-lang.in: Change copyright header to refer to version 3 of
1092 the GNU General Public License and to point readers at the
1093 COPYING3 file and the FSF's license web page.
1094 * lang-specs.h, objc-act.c, objc-tree.def, objc-act.h,
1095 config-lang.in, objc-lang.c: Likewise.
1097 2007-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1099 * objc-act.c (objc_get_callee_fndecl): Constify.
1100 * objc-act.h (objc_get_callee_fndecl): Likewise.
1102 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1104 * objc-act.c (volatilized_hash, volatilized_eq, string_hash,
1105 string_eq): Constify.
1107 2007-04-04 Stuart Hastings <stuart@apple.com>
1110 * objc/objc-act.c (next_sjlj_build_catch_list): Delete volatile from rethrow decl.
1112 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1114 * Make-lang.in: Add dummy lang.install-pdf target.
1116 2007-02-18 Kazu Hirata <kazu@codesourcery.com>
1118 * objc/objc-act.c: Fix comment typos.
1120 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
1121 Brooks Moses <brooks.moses@codesourcery.com>
1122 Lee Millward <lee.millward@codesourcery.com>
1124 * objc-act.c (receiver_is_class_object): Use new CALL_EXPR accessors.
1125 (objc_get_callee_fndecl): Likewise.
1127 2007-01-23 Andrew Pinski <pinskia@gmail.com>
1130 * objc-act.c (objc_add_static_instance): Mark the decl as
1133 2007-01-20 Andrew Pinski <pinskia@gmail.com>
1136 * objc-act.c (hash_interface): Use IDENTIFIER_HASH_VALUE instead
1137 of htab_hash_pointer.
1138 (lookup_interface): Likewise.
1139 (add_class): Likewise.
1141 2007-01-02 Douglas Gregor <doug.gregor@gmail.com>
1143 * objc-act.c (objc_build_volatilized_type): Keep track of
1145 (objc_get_protocol_qualified_type): Ditto.
1147 2006-11-02 Andreas Tobler <a.tobler@schweiz.org>
1149 * objc-act.c (objc_finish_file): Remove ifdef clause for OBJCPLUS and
1150 content where we called cp_finish_file.
1152 2006-10-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
1154 * objc-act.c (synth_module_prologue): Replace calls to
1155 builtin_function with add_builtin_function.
1156 (build_next_objc_exception_stuff): Replace calls to
1157 builtin_function with add_builtin_function.
1158 (build_objc_exception_stuff): Replace calls to
1159 builtin_function with add_builtin_function.
1161 2006-10-10 Brooks Moses <bmoses@stanford.edu>
1163 * Make-lang.in: Added empty "objc.pdf" target.
1165 2006-09-26 Andrew Pinski <pinskia@physics.uc.edu>
1168 * objc-act.c (objc_push_parm): If we change the type of the
1169 decl, relayout the decl.
1171 2006-09-19 Eric Christopher <echristo@apple.com>
1173 * objc-act.c (JBLEN): Rename to OBJC_JBLEN,
1174 default to something innocuous.
1175 (build_next_objc_exception_stuff): Rename JBLEN.
1177 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1179 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
1181 2006-07-19 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1184 * objc-act.c (lookup_and_install_protocols): Skip error_mark_nodes.
1186 2006-06-06 Mike Stump <mrs@apple.com>
1188 * objc-act.c: Remove prototype for objc_build_volatilized_type.
1190 2006-05-24 Mike Stump <mrs@apple.com>
1192 * objc-act.c (build_next_objc_exception_stuff): Use JBLEN instead of _JBLEN.
1194 2006-05-05 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1197 * objc-act.c (objc_is_public): Return early on invalid type.
1199 2006-03-02 Fariborz Jahanian <fjahanian@apple.com>
1201 * objc-act.c (init_module_descriptor): Remove file name from
1203 (gen_type_name_0): Fix ICE when issuing warning.
1205 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
1206 * Make-lang.in (OBJC): Remove
1207 (OBJECTIVE-C): Remove
1208 (objective-c): Remove
1209 (.PHONY): Remove objective-c and ObjC
1211 2005-12-14 Andrew Pinski <pinskia@physics.uc.edu>
1214 * objc/objc-act.c (encode_type): Encode Complex types as 'j' followed
1217 2005-12-12 Andrew Pinski <pinskia@physics.uc.edu>
1220 * objc-act.c (encode_array): Handle arrays to zero sized types.
1222 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
1224 * Make-lang.in (objc.all.build, objc.install-normal): Remove.
1226 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
1228 * Make-lang.in: Remove all dependencies on s-gtype.
1230 2005-12-02 Richard Guenther <rguenther@suse.de>
1232 * objc-act.c (objc_build_exc_ptr, next_sjlj_build_enter_and_setjmp
1233 next_sjlj_build_exc_extract, next_sjlj_build_catch_list,
1234 next_sjlj_build_try_catch_finally, objc_begin_catch_clause,
1235 build_objc_method_call, objc_rewrite_function_call): Use buildN
1238 2005-10-20 Geoffrey Keating <geoffk@apple.com>
1240 * objc-act.c (synth_module_prologue): Clear TREE_NOTHROW
1241 on objc_msgSend and like builtin functions.
1243 2005-10-17 Andreas Krebbel <krebbel1@de.ibm.com>
1245 * objc-act.c (objc_build_component_ref): Adjust call to
1246 finish_class_member_access_expr due to a changed prototype.
1248 2005-08-31 Andrew Pinski <pinskia@physics.uc.edu>
1251 * objc-act.c (generate_strings): Remove and move code to
1253 (add_objc_string): here when creating a new string decl.
1254 (finish_objc): Don't call generate_strings.
1256 2005-08-31 Andrew Pinski <pinskia@physics.uc.edu>
1259 * objc-act.c (next_sjlj_build_try_catch_finally): Set
1260 TREE_SIDE_EFFECTS on catch_seq after building it.
1262 2005-08-09 Andrew Pinski <pinskia@physics.uc.edu>
1264 part of PR objc/21992
1265 * objc-act.c (handle_class_ref): The ref decl is always referenced.
1267 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
1269 Make CONSTRUCTOR use VEC to store initializers.
1270 * objc-act.c (objc_build_constructor): Use build_constructor_from_list
1271 instead of build_constructor.
1273 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
1275 * objc-act.c (objc_push_parm): DECL_ARG_TYPE_AS_WRITTEN is
1277 * objc-act.h (KEYWORD_ARG_NAME): Use decl_non_common.
1278 (KEYWORD_KEY_NAME): Use decl_minimal.
1279 (METHOD_SEL_NAME): Ditto..
1280 (METHOD_SEL_ARGS): Use decl_non_common.
1281 (METHOD_ADD_ARGS): Ditto.
1282 (METHOD_ADD_ARGS_ELLIPSIS_P): Use decl_common.
1283 (METHOD_DEFINITION): Ditto.
1284 (METHOD_ENCODING): Ditto.
1285 * objc-lang.c: (objc_init_ts): New function.
1287 2005-07-07 Ziemowit Laski <zlaski@apple.com>
1289 * objc-act.c (objc_build_struct): Pass in an actual @interface
1290 instead of its name, and annotate the struct created (and all
1291 existing variants thereof) with the @interface.
1292 (objc_compare_types): Treat forward-declared ObjC classes
1293 as stand-alone (root) classes for purposes of type comparisons.
1294 (build_private_template): Move some code to objc_build_struct().
1296 2005-07-07 Ziemowit Laski <zlaski@apple.com>
1299 * objc-act.c (objc_build_string_object): For GNU-style constants,
1300 use the @interface type rather than the built-in type.
1302 2005-07-03 Kazu Hirata <kazu@codesourcery.com>
1304 * Make-lang.in (cc1plus-checksum.c): Use
1305 build/genchecksum$(build_exeext), not build/genchecksum$(exeext).
1307 2005-07-02 Joseph S. Myers <joseph@codesourcery.com>
1309 * objc-act.c: Use %q to quote in diagnostics.
1311 2005-07-02 Joseph S. Myers <joseph@codesourcery.com>
1313 * objc-act.c: Use '+' flag instead of %J. Use 'q' flag for
1316 2005-06-30 Ziemowit Laski <zlaski@apple.com>
1318 * objc-act.c (objc_build_volatilized_type): New function.
1319 (objc_volatilize_decl): Call objc_build_volatilized_type()
1320 instead of build_qualified_type().
1322 2005-06-29 Ziemowit Laski <zlaski@apple.com>
1324 * objc-act.c (objc_build_internal_const_str_type): New function.
1325 (check_string_class_template): Use objc_get_class_ivars() instead
1326 of TYPE_FIELDS() to retrieve ivar list.
1327 (AT_LEAST_AS_LARGE_AS): Check the size of each field's type rather
1328 than the field itself.
1329 (objc_build_string_object): Synthesize a "__builtin_ObjCString"
1330 type and use it to lay out compile-time string objects.
1331 * objc-act.h (OCTI_INTERNAL_CNST_STR_TYPE, internal_const_str_type):
1334 2005-06-28 Paul Brook <paul@codesourcery.com>
1336 * objc-act.c (objc_init_exceptions): Call
1337 default_init_unwind_resume_libfunc.
1339 2005-06-27 Ziemowit Laski <zlaski@apple.com>
1341 * objc-act.c (objc_build_struct): Save the TYPE_OBJC_INFO
1342 portion of TYPE_LANG_SPECIFIC info for all variants of
1343 a class before calling finish_struct(), and restore
1344 same TYPE_OBJC_INFO afterwards.
1346 2005-06-25 Kelley Cook <kcook@gcc.gnu.org>
1348 * all files: Update FSF address in copyright headers.
1350 2005-06-15 Joseph S. Myers <joseph@codesourcery.com>
1352 * objc-act.c (my_build_string_pointer): New.
1353 (objc_get_class_reference, get_super_receiver): Call
1354 my_build_string_pointer instead of my_build_string when building
1357 2005-05-25 Mike Stump <mrs@mrs.kithrup.com>
1359 * objc-act.c (volatilized_hash): Avoid warnings on 64-bit
1362 2005-05-24 Ziemowit Laski <zlaski@apple.com>
1364 * objc-act.c (objc_build_struct): New function.
1365 (objc_derived_from_p): Likewise.
1366 (objc_build_component_ref): Likewise.
1367 (objc_copy_binfo): Likewise.
1368 (objc_xref_basetypes): Likewise.
1369 (objc_lookup_protocol): Likewise.
1370 (objc_compare_protocols): Likewise.
1371 (objc_volatilize_decl): Likewise.
1372 (encode_aggregate_fields): Likewise.
1373 (volatilized_hash): Likewise.
1374 (volatilized_eq): Likewise.
1375 (objc_compare_types): Likewise.
1376 (objc_type_quals_match): Likewise.
1377 (DERIVED_FROM_P): New ObjC macro, corresponding to C++ macro
1379 (get_class_ivars): Add second parameter indicating if entire
1380 hierarchy is desired.
1381 (struct volatilized_type): New type.
1382 (volatilized_htab): New hash table.
1383 (objc_types_compatible_p, objc_comptypes): Remove functions.
1384 (synth_module_prologue): Do not initialize 'unused_list'.
1385 (objc_get_class_reference): Fix ObjC++ impedance mismatches.
1386 (objc_declare_alias): Implement as a typedef.
1387 (objc_substitute_decl, objc_gimplify_expr): Reformat.
1388 (objc_get_class_ivars): Adjust call to get_class_ivars().
1389 (next_sjlj_build_enter_and_setjmp, synth_forward_declarations,
1390 build_ivar_reference, get_super_receiver): Call
1391 objc_build_component_ref() instead of build_component_ref().
1392 (objc_begin_catch_clause): Use DERIVED_FROM_P() instead of
1394 (build_private_template): Call objc_build_struct() instead of
1395 start_struct() and finish_struct().
1396 (hash_init): Initialize volatilized_htab.
1397 (objc_is_public): Adjust calls to objc_get_ivars(); adjust
1398 ObjC++ impedance mismatches.
1399 (encode_aggregate_within): Streamline by calling
1400 encode_aggregate_fields().
1401 * objc-act.h (objc_types_compatible_p): Remove prototype.
1402 (OCTI_UNUSED_LIST, unused_list): Remove slot.
1403 * objc-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove.
1405 2005-05-18 Geoffrey Keating <geoffk@apple.com>
1407 * Make-lang.in (cc1obj-dummy): New.
1408 (cc1obj-checksum.c): New.
1409 (cc1obj-checksum.o): New.
1410 (cc1obj): Add cc1obj-checksum.o.
1412 2005-05-18 Mike Stump <mrs@apple.com>
1415 * objc-act.c (struct interface_tuple): Mark it up for GC.
1416 (interface_htab): It is really a struct interface_tuple.
1418 2005-05-17 Ziemowit Laski <zlaski@apple.com>
1419 Mike Stump <mrs@apple.com>
1421 Yet more Objective-C++...
1423 * objc-act.c (objc_finish_try_stmt): Add return value.
1424 (objc_build_synchronized): Likewise.
1426 * objc-act.c (objc_is_gcable_type): Add.
1427 (objc_substitute_decl): Add.
1428 (objc_build_ivar_assignment): Add.
1429 (objc_build_global_assignment): Add.
1430 (objc_build_strong_cast_assignment): Add.
1431 (objc_is_ivar_reference_p): Add.
1432 (objc_is_global_reference_p): Add.
1433 (objc_generate_write_barrier): Add.
1434 (objc_rewrite_function_call): Add.
1435 (objc_gimplify_expr): Add Objective-C++ support.
1436 * objc-act.h (ALLOC_OBJC_TYPE_LANG_SPECIFIC): Likewise.
1437 (SIZEOF_OBJC_TYPE_LANG_SPECIFIC): Add.
1438 (INIT_TYPE_OBJC_INFO): Add Objective-C++ support.
1439 (DUP_TYPE_OBJC_INFO): Likewise.
1440 (struct imp_entry): Add field has_cxx_cdtors.
1441 (struct imp_entry *imp_list): Add OCTI_UMSG_FAST_DECL,
1442 OCTI_METH_LIST_TEMPL, OCTI_METH_PROTO_LIST_TEMPL,
1443 OCTI_IVAR_LIST_TEMPL, OCTI_ASSIGN_IVAR_DECL,
1444 OCTI_ASSIGN_IVAR_FAST_DECL, OCTI_ASSIGN_GLOBAL_DECL,
1445 OCTI_ASSIGN_STRONGCAST_DECL.
1446 (umsg_fast_decl): Add.
1447 (objc_assign_ivar_decl): Add.
1448 (objc_assign_ivar_fast_decl): Add.
1449 (objc_assign_global_decl): Add.
1450 (objc_assign_strong_cast_decl): Add.
1451 (objc_method_list_ptr): Add.
1452 (objc_method_proto_list_ptr): Add.
1453 (objc_ivar_list_ptr): Add.
1455 * objc-act.c (should_call_super_dealloc): Add.
1456 (OBJC_VERSION): Bump to 6.
1457 (objc_is_gcable_type): Add.
1458 (objc_substitute_decl): Add.
1459 (objc_build_ivar_assignment): Add.
1460 (objc_build_global_assignment): Add.
1461 (objc_build_strong_cast_assignment): Add.
1462 (objc_is_gcable_p): Add.
1463 (objc_is_ivar_reference_p): Add.
1464 (objc_is_global_reference_p): Add.
1465 (generate_shared_structures): Add flags parameter.
1466 (objc_generate_cxx_ctor_or_dtor): Add.
1467 (objc_generate_cxx_cdtors): Add.
1468 (add_class): Add name parameter.
1469 (objc_types_share_size_and_alignment): Add.
1470 (comp_proto_with_proto): Add strict parameter.
1471 (CLS_HAS_CXX_STRUCTORS): Add.
1472 (TAG_ASSIGNIVAR): Add.
1473 (TAG_ASSIGNGLOBAL): Add.
1474 (TAG_ASSIGNSTRONGCAST): Add.
1475 (TAG_MSGSEND_FAST): Add.
1476 (TAG_ASSIGNIVAR_FAST): Add.
1477 (TAG_CXX_CONSTRUCT): Add.
1478 (TAG_CXX_DESTRUCT): Add.
1479 (OBJC_LOOKUP_CLASS): Add.
1480 (OBJC_LOOKUP_NO_SUPER): Add.
1481 (objc_finish_file): Add pch support.
1482 (objc_finish_implementation): Add Objective-C++ support.
1483 (synth_module_prologue): Likewise.
1484 (synth_module_prologue): Add fast dispatching.
1485 (objc_get_class_reference): Add Objective-C++ support.
1486 (objc_generate_write_barrier): Likewise.
1487 (next_sjlj_build_enter_and_setjmp): Likewise.
1488 (objc_begin_try_stmt): Likewise.
1489 (build_next_objc_exception_stuff): Add fast ivar support.
1490 (build_private_template): Mark the record as used so debug
1491 information is generated.
1492 (build_protocol_template): Add Objective-C++ support.
1493 (objc_method_parm_type) Likewise.
1494 (objc_generate_cxx_ctor_or_dtor): Likewise.
1495 (objc_generate_cxx_cdtors): Likewise.
1496 (build_protocol_initializer): Likewise.
1497 (build_category_template): Likewise.
1498 (build_class_template): Likewise.
1499 (build_method_list_template): Likewise.
1500 (build_category_initializer): Likewise.
1501 (build_shared_structure_initializer): Likewise.
1502 (objc_finish_message_expr): Likewise.
1503 (build_objc_method_call): Add fast dispatch support.
1504 (lookup_method_static): Add support to end search at superclasses.
1505 (add_method_to_hash_list): Add strict parameter to
1506 comp_proto_with_proto.
1507 (objc_add_method): Likewise.
1508 (objc_add_method): Also set the interface_value.
1509 (add_instance_variable): Add Objective-C++ support.
1510 (objc_is_public): Likewise.
1511 (start_class): Likewise.
1512 (continue_class): Likewise.
1513 (encode_aggregate_within): Likewise.
1514 (start_method_def): Likewise.
1515 (objc_start_function): Clear current_function_returns_value
1516 and current_function_returns_null.
1517 (really_start_method): Add Objective-C++ support.
1518 (objc_finish_method_definition): Add warning for missing
1520 (finish_objc): Add Objective-C++ support.
1521 (generate_objc_image_info): Likewise.
1522 (objc_lookup_ivar): Likewise.
1523 * objc-act.h (TYPE_HAS_OBJC_INFO): Likewise.
1524 (INIT_TYPE_OBJC_INFO): Likewise.
1525 (DUP_TYPE_OBJC_INFO): Likewise.
1527 2005-04-23 DJ Delorie <dj@redhat.com>
1529 * objc-act.c: Adjust warning() callers.
1531 2005-04-21 Roger Sayle <roger@eyesopen.com>
1533 * objc-act.h (METHOD_ADD_ARGS_ELLIPSIS_P): New macro for accessing
1534 this field of an objc method decl.
1535 * objc-act.c (build_method_decl): Take an additional "ellipsis"
1536 argument, and set METHOD_ADD_ARGS_ELLIPSIS_P as appropriate.
1537 (objc_build_method_signature): Accept additional "ellipsis"
1538 argument and pass it to build_method_decl.
1539 (get_arg_type_list, start_method_def, gen_method_decl): Use
1540 the new METHOD_ADD_ARGS_ELLIPSIS_P instead of examining the
1541 TREE_OVERFLOW field of a TREE_LIST node.
1543 2005-04-20 Joseph S. Myers <joseph@codesourcery.com>
1546 * objc-act.c (objc_start_function): Create stack level for context
1547 of identifiers with variably modified type.
1549 2005-03-30 Joseph S. Myers <joseph@codesourcery.com>
1553 * objc-act.c (objc_start_function): Push context on
1554 label_context_stack.
1556 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
1558 * objc-act.c (next_sjlj_build_enter_and_setjmp,
1559 next_sjlj_build_catch_list, next_sjlj_build_try_catch_finally):
1560 Call c_common_truthvalue_conversion.
1562 2005-02-25 Joseph S. Myers <joseph@codesourcery.com>
1564 * Make-lang.in (objc/objc-parse.o-warn, objc/objc-parse.o,
1565 objc/objc-parse.c, objc/objc-parse.y): Remove
1566 (OBJC_OBJS, objc.srcextra, objc.tags, objc.mostlyclean,
1567 objc.distclean, objc.maintainer-clean): Update for new parser.
1568 * config-lang.in (gtfiles): Update for new parser.
1570 2005-01-29 Kazu Hirata <kazu@cs.umass.edu>
1572 * lang-specs.h, objc-act.c, objc-act.h, objc-lang.c: Update
1575 2005-01-27 Matt Austern <austern@apple.com>
1577 * objc-act.c (objc_finish_file): In ObjC++ mode, set at_eof before
1578 calling instantiate_pending_templates.
1580 2005-01-26 Alexander Malmberg <alexander@malmberg.org>
1583 * objc-act.c (build_selector_translation_table): Use
1584 input_location in the diagnostic for the GNU runtime or if
1585 TREE_PURPOSE (chain) is NULL.
1587 2005-01-25 Alexander Malmberg <alexander@malmberg.org>
1590 * objc-act.c (objc_types_compatible_p): New function.
1591 * objc-act.h (objc_types_compatible_p): Declare.
1592 * objc-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Define.
1594 2005-01-16 Ziemowit Laski <zlaski@apple.com>
1596 * objc-act.c (objc_push_parm): Call c_type_promotes_to()
1599 2005-01-15 Ziemowit Laski <zlaski@apple.com>
1602 * objc-act.c (get_arg_type_list): Decay function arguments into
1604 (objc_push_parm): Likewise; bring PARM_DECL construction closer
1605 in line with what the C front-end does.
1606 (objc_get_parm_info): Call pushdecl() and finish_decl() on
1607 each PARM_DECL, like the C front-end does.
1608 (start_method_def): Remove redundant ARRAY_TYPE decay.
1609 (objc_start_function): Bring closer in line with what the
1610 C front-end does for functions.
1612 2005-01-14 Mike Stump <mrs@apple.com>
1614 * lang-specs.h ("@objective-c"): Use cc1obj when -E is used so
1615 that -fobjc-exceptions is accepted.
1617 2004-12-30 Ziemowit Laski <zlaski@apple.com>
1620 * objc-act.c (get_arg_type_list, start_method_def): Decay
1621 array arguments into pointers.
1622 (gen_type_name_0): Learn to pretty-print array types.
1624 2004-12-15 Ziemowit Laski <zlaski@apple.com>
1626 * objc-act.c (build_private_template): Change to return 'void'; do
1627 not set ivar_context, uprivate_record or objc_instance_type.
1628 (objc_comptypes, gen_type_name_0): For types 'id' and 'Class',
1629 retrieve protocol list from the pointee rather than the pointer itself;
1630 check TYPE_HAS_OBJC_INFO(...) precondition before accessing
1631 TYPE_OBJC_PROTOCOL_LIST.
1632 (objc_get_protocol_qualified_type): For types 'id' and 'Class',
1633 construct a variant of the pointee as well as the pointer, and
1634 store protocol information in the former. When creating variants
1635 of RECORD_TYPEs, clone their TYPE_LANG_SPECIFIC fields and propagate
1636 TYPE_OBJC_INTERFACE information.
1637 (objc_declare_class): If a TYPE_DECL is looked up, retrieve the
1638 underlying RECORD_TYPE to check for presence of TYPE_OBJC_INTERFACE;
1639 for newly-created RECORD_TYPEs, create a tentative TYPE_OBJC_INTERFACE
1640 holding an IDENTIFIER_NODE.
1641 (objc_finish_message_expr): Check TYPE_HAS_OBJC_INFO(...) before
1642 accessing TYPE_OBJC_PROTOCOL_LIST; Use TYPE_OBJC_INTERFACE instead
1643 of calling lookup_interface(); allow for TYPE_OBJC_INTERFACE holding
1644 an IDENTIFIER_NODE (meaning a @class forward-declaration only).
1645 (objc_is_public): Check TYPE_OBJC_INTERFACE instead of calling
1647 (continue_class): For @implementations, set ivar_context,
1648 uprivate_record and objc_instance_type, for @interfaces, call
1649 build_private_template().
1650 (encode_pointer): Check TYPE_HAS_OBJC_INFO(...) before accessing
1651 TYPE_OBJC_INTERFACE.
1652 (objc_types_are_equivalent): Check TYPE_HAS_OBJC_INFO(...) before
1653 accessing TYPE_OBJC_PROTOCOL_LIST.
1654 * objc-act.h (OBJC_INFO_SLOT_ELTS, TYPE_OBJC_INFO, INIT_TYPE_OBJC_INFO,
1655 DUP_TYPE_OBJC_INFO, ALLOC_OBJC_TYPE_LANG_SPECIFIC,
1656 SIZEOF_OBJC_TYPE_LANG_SPECIFIC): New macros.
1657 (TYPE_OBJC_INTERFACE): Replaces TREE_STATIC_INSTANCE and now points
1658 to an actual @interface; stored in TYPE_LANG_SPECIFIC(...).
1659 (TYPE_OBJC_PROTOCOL_LIST): Replaces TYPE_PROTOCOL_LIST; stored in
1660 TYPE_LANG_SPECIFIC(...).
1661 (TREE_STATIC_INSTANCE, TYPE_PROTOCOL_LIST): Delete.
1662 (IS_ID, IS_CLASS, IS_PROTOCOL_QUALIFIED_UNTYPED, IS_SUPER,
1663 TYPED_OBJECT): Check for POINTER_TYPE rather than POINTER_TYPE_P;
1664 adjust for use of TYPE_OBJC_INTERFACE and TYPE_OBJC_PROTOCOL_LIST
1665 instead of TREE_STATIC_INSTANCE and TYPE_PROTOCOL_LIST.
1667 2004-11-29 Joseph Myers <joseph@codesourcery.com>
1670 * Make-lang.in (objc/objc-act.o): Update dependencies.
1671 * objc-act.c (objc_finish_file): Call
1672 maybe_apply_pending_pragma_weaks if not OBJCPLUS.
1674 2004-11-09 Andrew Pinski <pinskia@physics.uc.edu>
1677 * obj-act.c (encode_type): 96bits doubles are encoded the
1678 same way as 64bit and 128bit doubles are.
1680 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
1682 * objc-act.c: Use %q, %< and %> for quoting in diagnostics.
1684 2004-11-08 Andrew Pinski <pinskia@physics.uc.edu>
1687 * objc-act.c (generate_method_descriptors): Remove setting
1688 the new decls' type to variable_length_type.
1689 (generate_ivar_lists): Likewise.
1690 (generate_dispatch_tables): Likewise.
1692 2004-10-30 Ziemowit Laski <zlaski@apple.com>
1694 * objc-act.c (objc_lookup_ivar): The new OTHER parameter
1695 contains the result of the ID lookup by the C or C++
1696 front-end; in class methods, use OTHER if it exists;
1697 in instance methods, use OTHER only if it is locally
1700 2004-10-26 Ziemowit Laski <zlaski@apple.com>
1702 * objc-act.c (finish_class): Do not synthesize bogus
1703 'extern objc_object *_Foo;' declarations for @interface Foo.
1705 2004-10-25 Ziemowit Laski <zlaski@apple.com>
1706 David Ayers <d.ayers@inode.at>
1708 * objc-act.c (objc_comptypes): Use IS_PROTOCOL_QUALIFIED_UNTYPED
1709 instead of IS_PROTOCOL_QUALIFIED_ID; add comparisons for:
1710 'Class <Protocol> != id <Protocol>'; 'Class <Protocol> != <class> *';
1711 'Class <Protocol> == id' and 'Class <Protocol> == Class'.
1712 (objc_is_id): Add test for 'super'.
1713 (objc_finish_message_expr): Allow for messaging of 'Class <Proto>'
1714 receivers; if class methods are not found in protocol lists, search
1715 for instance methods therein and warn if one is found. Look in
1716 global hash tables for suitable method as a last resort when messaging
1717 'id <Proto>', 'Class <Proto>' and invalid receiver types.
1718 (objc_add_method): Insert instance methods listed in protocols into
1719 the global class method hash table.
1720 * objc-act.h (IS_PROTOCOL_QUALIFIED_ID): Rename to
1721 IS_PROTOCOL_QUALIFIED_UNTYPED and allow for 'Class <Proto>' in
1722 addition to 'id <Proto>'.
1724 2004-10-21 Andrew Pinski <pinskia@physics.uc.edu>
1727 * objc-act.c (objc_build_string_object): Create a CONST_DECL
1728 for the NeXT runtime case.
1730 2004-10-02 Kazu Hirata <kazu@cs.umass.edu>
1732 * objc-act.c: Fix comment typos.
1734 2004-09-24 Ziemowit Laski <zlaski@apple.com>
1736 * objc-act.c (init_objc_symtab, init_module_descriptor,
1737 build_shared_structure_initializer): When initializing 'long'
1738 fields, ensure that the initializer value is also 'long'.
1740 2004-09-24 Zack Weinberg <zack@codesourcery.com>
1742 * objc-act.c: Change annotate_with_locus to SET_EXPR_LOCATION
1744 (objc_init): Only set input_line to 0 #ifndef USE_MAPPED_LOCATION.
1745 (build_selector_translation_table): Use %J in diagnostic
1746 instead of diddling input_line. Fix spelling.
1748 2004-09-21 Ziemowit Laski <zlaski@apple.com>
1750 * objc-act.c (objc_fold_objc_type_ref): New function.
1751 * objc-act.h (objc_fold_objc_type_ref): New prototype.
1753 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
1755 * objc-act.c (objc_start_function, really_start_method,
1756 objc_get_parm_info, start_method_def): Update to new arg_info
1759 2004-09-07 Ziemowit Laski <zlaski@apple.com>
1761 * Make-lang.in (objc/objc-parse.o): Depend on $(C_COMMON_H) instead of
1763 (objc/objc-act.o): Depend on $(HASHTAB_H).
1764 * objc-act.c: Include hashtab.h; in ObjC++ mode, include cp-tree.h and
1765 objcp-decl.h instead of c-tree.h.
1766 (build_module_descriptor, get_class_ivars, synth_id_with_class_suffix,
1767 error_with_ivar, gen_method_decl, gen_declaration, setup_string_decl,
1768 build_protocol_template): Adjust prototypes.
1769 (build_module_initializer_routine, start_class, continue_class,
1770 finish_class, start_method_def, objc_start_function, start_protocol,
1771 build_method_decl, objc_add_method, add_instance_variable,
1772 build_ivar_reference, is_ivar, is_private, get_super_receiver,
1773 build_selector_table_decl, objc_push_parm, objc_get_parm_info,
1774 gen_type_name, gen_type_name_0, start_var_decl, finish_var_decl,
1775 create_field_decl): New prototypes.
1776 (objc_expand_function_end, comp_method_with_proto, objc_expr_last,
1777 gen_declaration_1, gen_declarator, is_complex_decl, adorn_decl,
1778 define_decl, create_builtin_decl, gen_declspecs): Remove prototypes.
1779 (TYPE_ID): Rename to OBJECT_TYPEDEF_NAME.
1780 (CLASS_TYPEDEF_NAME): New.
1781 (TAG_EXECCLASS): Change from a global variable to a #define.
1782 (TAG_RETURN_STRUCT): Delete.
1783 (TAG_GNUINIT): New, holds '__objc_gnu_init' name.
1784 (objc_inherit_code, objc_public_flag): New, moved from c-parse.in.
1785 (string_descriptor): New struct.
1786 (string_htab): New hash table.
1787 (string_hash, string_eq): New prototypes.
1788 (generate_struct_by_value_array): Call create_field_decl() instead of
1789 create_builtin_decl().
1790 (objc_init): Do not initialize objc_ellipsis_node or TAG_EXECCLASS;
1791 In ObjC++ mode, call cxx_init() instead of c_objc_common_init().
1792 (objc_finish_file): In ObjC++, call instantiate_pending_templates()
1793 and cp_finish_file().
1794 (define_decl, get_static_reference, get_protocol_reference,
1795 create_builtin_decl): Remove functions.
1796 (objc_start_class_interface, objc_start_category_interface,
1797 objc_start_protocol, objc_continue_interface, objc_finish_interface,
1798 objc_start_class_implementation, objc_start_category_implementation,
1799 objc_continue_implementation, objc_finish_implementation,
1800 objc_set_visibility, objc_set_method_type,
1801 objc_build_method_signature, objc_add_method_declaration,
1802 objc_start_method_definition, objc_add_instance_variable,
1803 objc_get_protocol_qualified_type, create_field_decl,
1804 start_var_decl, finish_var_decl): New functions.
1805 (setup_string_decl): Simplify since it is only called once.
1806 (synth_module_prologue): Call build_class_template(); predefine 'id'
1807 and 'Class' as typedefs; rename 'temp_type' to 'type'; disable debug
1808 hooks for duration of function; fix GNU runtime messenger signatures
1809 to correspond to reality; forward-declare '__objc_exec_class' for the
1810 GNU runtime; call build_selector_table_decl(); in ObjC++ mode, generate
1811 'extern "C" { ... }' wrappers around synthesized declarations; call
1812 build_protocol_template() and build_category_template().
1813 (string_hash, string_eq): New functions.
1814 (objc_build_string_object): Check metaclass correctness only once;
1815 store string literals in hash table.
1816 (objc_build_constructor): Do not convert initializer elements;
1817 adjust for ObjC++ impedance mismatch.
1818 (build_objc_symtab_template): Call create_field_decl() instead of
1819 create_builtin_decl().
1820 (init_objc_symtab): Add missing conversion to initializer element.
1821 (build_metadata_decl): Call start_var_decl() instead of define_decl().
1822 (generate_objc_symtab_decl): Do not call build_category_template();
1823 call start_var_decl() and finish_var_decl() instead of start_decl()
1825 (build_module_descriptor): Call create_field_decl() instead of
1826 grokfield(); call start_var_decl() and finish_var_decl() instead of
1827 start_decl() and finish_decl(); always mark module descriptor as
1828 used; move GNU runtime-specific functionality to
1829 build_module_initializer_routine().
1830 (build_module_initializer_routine): New function, broken off of
1831 build_module_descriptor().
1832 (objc_static_init_needed_p, objc_generate_static_init_call): New
1834 (generate_static_references, generate_strings,
1835 build_selector_translation_table, generate_descriptor_table,
1836 generate_ivars_list, generate_dispatch_table, generate_category): Call
1837 start_var_decl() and finish_var_decl() instead of start_decl() and
1838 finish_decl(); build a type directly instead of via groktypename().
1839 (build_selector_reference_decl, build_selector_table_decl,
1840 build_class_reference_decl, build_protocol_reference,
1841 generate_objc_image_info): Call start_var_decl() instead of
1843 (build_selector_reference): For GNU runtime, do not call
1844 build_selector_reference_decl().
1845 (build_selector, build_typed_selector_reference): Always convert
1846 result to the selector type.
1847 (add_objc_string): Cast return value to 'char *'.
1848 (build_method_prototype_template, build_selector_template,
1849 build_method_template): Use actual selector type for fields
1850 pointing to selectors.
1851 (finish_objc): For GNU runtime, call
1852 build_module_initializer_routine() after build_module_descriptor().
1853 (generate_protocol_list, generate_shared_structures): Call
1854 start_var_decl() and finish_var_decl() instead of start_decl() and
1855 finish_decl(); build a type directly instead of via
1857 (synth_id_with_class_suffix): Return a string.
1858 (get_arg_type_list): For instance methods, use the instance type for
1859 'self'; do not call groktypename_in_parm_context().
1860 (build_objc_string_decl): Squash redeclaration errors in ObjC++.
1861 (objc_is_class_name): Use OBJC_TYPE_NAME instead of TYPE_NAME;
1862 handle RECORD_TYPEs in ObjC as well as ObjC++.
1863 (objc_is_id): New function.
1864 (objc_is_object_ptr): Return the canonical type node.
1865 (objc_get_class_ivars): Simplify using get_class_ivars().
1866 (get_class_ivars): Remove second parameter; create a fresh copy
1867 of the ivar list for each call; do not check for existence of
1869 (objc_eh_runtime_type): Mark #ifndef OBJCPLUS.
1870 (objc_init_exceptions): When using SJLJ-style exceptions, require
1871 the use of '-fobjc-exceptions' flag; do not require it for DWARF-style
1873 (objc_build_exc_ptr, next_sjlj_build_try_catch_finally): Use
1874 objc_object_type instead of objc_id_type.
1875 (objc_begin_catch_clause): Convert the incoming PARM_DECL into
1876 a VAR_DECL before placing it in the appropriate scope; do not
1877 call define_decl(); adjust call to c_begin_compound_stmt();
1878 use objc_object_type instead of objc_id_type.
1879 (build_next_objc_exception_stuff): Call create_field_decl() instead
1880 of create_builtin_decl(); construct type directly instead of calling
1881 groktypename(); use OBJC_VOID_AT_END to mark end of function parameters.
1882 (build_private_template): Adjust call to get_class_ivars(); build
1883 a type directly instead of via groktypename().
1884 (build_protocol_template, build_method_prototype_list_template,
1885 build_method_prototype_template, build_category_template,
1886 build_selector_template, build_class_template, build_super_template,
1887 build_ivar_template, build_ivar_list_template,
1888 build_method_list_template, build_method_template):
1889 Call create_field_decl() instead of grokfield().
1890 (objc_method_parm_type): Do not call groktypename().
1891 (generate_descriptor_table): Call start_var_decl() and
1892 finish_var_decl() instead of start_decl() and finish_decl().
1893 (generate_method_descriptors, build_protocol_initializer,
1894 generate_dispatch_tables, build_category_initializer,
1895 build_shared_structure_initializer): Do not call groktypename().
1896 (generate_protocols): Call start_var_decl() and finish_var_decl()
1897 instead of start_decl() and finish_decl(); do not call groktypename().
1898 (error_with_ivar): Remove last parameter.
1899 (check_ivars): Do not iterate ovar CLASS_RAW_IVARS lists in addition
1900 to CLASS_IVARS lists; adjust calls to error_with_ivar().
1901 (generate_ivar_lists): Convert one of the initializer elements; do
1902 not call groktypename().
1903 (get_arg_type_list, start_method_def, gen_method_def): Account for
1904 new representation of variable arguments and '...' in Objective-C
1905 methods; add Objective-C++ impedance matching code.
1906 (is_objc_type_qualifier): Remove function.
1907 (adjust_type_for_id_default): Simplify; there is no longer a need to
1908 wade through declspecs.
1909 (lookup_interface, start_class, continue_class,
1910 finish_class, start_method_def, start_protocol, build_method_decl,
1911 objc_add_method, add_instance_variable, build_ivar_reference,
1912 is_ivar, is_private, get_super_receiver, objc_build_finally_epilogue):
1913 Make into static functions.
1914 (receiver_is_class_object): Use new IS_CLASS() macro.
1915 (objc_build_message_expr): Tweak ObjC++ message argument handling;
1916 call objc_finish_message_expr() instead of finish_message_expr().
1917 (finish_message_expr): Rename to objc_finish_message_expr(); use
1918 OBJC_TYPE_NAME and OBJC_SET_TYPE_NAME macros instead of TYPE_NAME.
1919 call gen_type_name() instead of gen_declaration(); call objc_is_id()
1920 instead of using IS_ID and IS_CLASS; Use objc_class_name instead of
1921 calling get_identifier("Class"); handle CONVERT_EXPRs in receiver.
1922 (build_objc_method_call, warn_with_method): Do not call groktypename().
1923 (build_ivar_reference): Call convert() instead of clobbering in a
1925 (hash_init): Initialize string_htab hash table.
1926 (add_instance_variable): Simplify parameter list; do not call grokfield();
1927 do not populate CLASS_IVARS list.
1928 (start_class): Check for the existence of super class, if one was specified.
1929 (continue_class): Use CLASS_RAW_IVARS rather than CLASS_IVARS; do not
1930 call build_class_template(); adjust call to get_class_ivars(); call
1931 build_decl(), pushdecl() and finish_decl() instead of define_decl().
1932 (finish_class): Call build_decl(), pushdecl() and finish_decl() instead
1934 (add_protocols): Use PROTOCOL_BINFO_ELTS for the tree vector size.
1935 (start_protocol): Do not call build_protocol_template(); use
1936 PROTOCOL_BINFO_ELTS for the tree vector size.
1937 (encode_type_qualifiers): Do not handle the 'const' qualifier here.
1938 (encode_pointer): Encode 'const char *' as 'r*', for backwards
1940 (encode_array): Use HOST_WIDE_INT_PRINT_DEC instead of "%ld".
1941 (encode_type): Handle the 'const' qualifier here.
1942 (objc_parmlist): New global variable, sued by objc_push_parm and
1943 objc_get_parm_info().
1944 (objc_push_parm, objc_get_parm_info): New functions.
1945 (objc_expr_last): Remove function.
1946 (synth_self_and_ucmd_args): For instance methods, use the instance
1947 type for 'self'; call objc_push_parm() instead of push_parm_decl().
1948 (start_method_def): Do not call push_scope(), declare_parm_level(),
1949 pop_scope(), push_parm_decl(), store_parm_decls() or objc_expr_last();
1950 just use objc_push_parm() and objc_get_parm_info().
1951 (comp_method_with_proto): Remove function.
1952 (objc_types_are_equivalent): Strip away indirections before comparing
1954 (comp_proto_with_proto): Do not call groktypename(); types are no
1955 longer in raw declspec format.
1956 (objc_start_function): New function.
1957 (really_start_method): Call comp_proto_with_proto() instead of
1958 comp_method_with_proto(); call objc_start_function() instead of
1959 hand-crafting a function declarator.
1960 (continue_method_def, objc_expand_function_end): Remove functions.
1961 (get_super_receiver): Call objc_get_current_scope() instead of
1962 get_current_scope(); reference 'super_class' field (instead of
1964 (finish_method_def): Rename to objc_finish_method_definition() and
1965 add a function decl parameter; move method encoding call from
1966 objc_expand_function_end().
1967 (is_complex_decl, adorn_decl, gen_declarator, gen_declspecs,
1968 gen_declaration_1): Remove functions.
1969 (tmpbuf, RAW_DECLSPEC): Remove.
1970 (gen_declaration): Remove second parameter; simplify to deal
1971 with TYPE_P nodes instead of raw declspecs.
1972 (gen_type_name, gen_type_name_0): New functions.
1973 (gen_method_decl): Remove second parameter; call gen_type_name()
1974 instead of gen_declaration_1().
1975 (dump_interface): Adjust calls to gen_declaration() and
1976 gen_method_decl(); do not allocate a separate string buffer.
1977 (init_objc): Allocate a larger string buffer to accommodate
1978 dump_interface(); adjust call to build_module_descriptor();
1979 add call to build_module_initializer_routine() for the GNU
1981 (generate_classref_translation_entry): Do not call start_decl(); call
1982 finish_var_decl() instead of finish_decl(); call convert() instead of
1984 * objc-act.h (CLASS_OWN_IVARS): Remove accessor.
1985 (CLASS_BINFO_ELTS): Reduce from 6 to 5, now that CLASS_OWN_IVARS is
1987 (OCTI_GNU_INIT_DECL, GNU_INIT_decl): New.
1988 (OCTI_ELLIPSIS_NODE, objc_ellipsis_node): Remove.
1989 (OCTI_ID_ID, id_type, objc_id_id): Rename to OCTI_ID_NAME,
1990 objc_object_type and objc_object_name, respectively.
1991 (OCTI_CLS_REF, OCTI_CLASS_NAME, objc_class_reference,
1992 objc_class_name): New.
1993 (IS_CLASS): New macro.
1994 (IS_ID, IS_SUPER): Robustify.
1995 (OCTI_EXECCLASS_DECL, execclass_decl): New.
1996 (finish_file, start_class, continue_class, finish_class,
1997 start_method_def, continue_method_def, finish_method_def,
1998 start_protocol, finish_protocol, objc_build_throw_stmt,
1999 objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
2000 objc_build_synchronized_epilogue, objc_build_try_prologue,
2001 objc_build_try_epilogue, objc_build_catch_stmt, objc_build_catch_epilogue,
2002 objc_build_finally_prologue, objc_build_finally_epilogue,
2003 is_ivar, is_private, is_public, add_instance_variable, objc_add_method,
2004 get_super_receiver, objc_clear_super_receiver, get_class_ivars_from_name,
2005 get_class_reference, get_static_reference, get_object_reference,
2006 build_message_expr, finish_message_expr, build_selector_expr,
2007 build_ivar_reference, build_keyword_decl, build_method_decl,
2008 build_protocol_expr, build_objc_string_object, objc_declare_alias,
2009 objc_declare_class, objc_declare_protocols, objc_comptypes,
2010 objc_check_decl, build_encode_expr): Remove prototypes.
2011 (imp_count, cat_count): Make GGC-aware.
2012 (OBJC_SET_TYPE_NAME): New macro.
2014 2004-09-03 Ziemowit Laski <zlaski@apple.com>
2016 * config-lang.in: Update copyright notice.
2017 (lang_requires): Indicate that ObjC requires C to be built first.
2019 2004-09-01 Ziemowit Laski <zlaski@apple.com>
2021 * objc-act.c (objc_check_decl): Use OBJC_TYPE_NAME macro instead of
2023 (build_objc_string_object): Rename to objc_build_string_object().
2024 (get_class_reference): Rename to objc_get_class_reference().
2025 (get_class_ivars_from_name): Rename to objc_get_class_ivars().
2026 (next_sjlj_build_catch_list, get_super_receiver): Call
2027 objc_get_class_reference() instead of get_class_reference().
2028 (build_keyword_decl): Rename to objc_build_keyword_decl().
2029 (build_message_expr): Rename to objc_build_message_expr().
2030 (build_protocol_expr): Rename to objc_build_protocol_expr().
2031 (build_selector_expr): Rename to objc_build_selector_expr().
2032 (build_encode_expr): Rename to objc_build_encode_expr().
2033 * objc-act.h (get_class_ivars_from_name): Rename prototype to
2034 objc_get_class_ivars().
2035 (get_class_reference): Rename prototype to objc_get_class_reference().
2036 (build_message_expr): Rename prototype to objc_build_message_expr().
2037 (build_selector_expr): Rename prototype to objc_build_selector_expr().
2038 (build_keyword_decl): Rename prototype to objc_build_keyword_decl().
2039 (build_protocol_expr): Rename prototype to objc_build_prototype_expr().
2040 (build_objc_string_object): Rename prototype to
2041 objc_build_string_object().
2043 2004-09-01 Ziemowit Laski <zlaski@apple.com>
2045 * objc-act.c (lookup_interface): Make function 'static' and add a
2047 (objc_check_decl, get_class_reference, objc_declare_alias,
2048 objc_declare_class, objc_is_object_ptr): Call objc_is_class_name()
2049 instead of is_class_name().
2050 (get_super_receiver, objc_clear_super_receiver): Call
2051 objc_get_current_scope() instead of get_current_scope().
2052 (is_class_name): Rename to objc_is_class_name.
2053 (lookup_objc_ivar): Rename to objc_lookup_ivar.
2055 2004-08-28 Ziemowit Laski <zlaski@apple.com>
2057 * objc-act.c (objc_is_reserved_word): New function.
2059 2004-08-15 Ziemowit Laski <zlaski@apple.com>
2061 * Make-lang.in (objc/objc-lang.o): Depend on $(C_PRETTY_PRINT_H),
2062 $(DIAGNOSTIC_H), c-objc-common.h and gtype-objc.h, but not on toplev.h.
2063 (objc/objc-parse.o): Do not depend on gtype-objc.h.
2064 * objc-act.c: Do not include gtype-objc.h.
2065 (finish_file): Rename to objc_finish_file().
2066 * objc-act.h (finish_file): Update copyright notice; remove prototype.
2067 * objc-lang.c: Update copyright notice; include diagnostic.h,
2068 c-objc-common.h, c-pretty-print.h and gtype-objc.h; do not include
2070 (finish_file): New hook routine.
2071 (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
2072 LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
2073 LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
2074 LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
2075 LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
2076 LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
2077 LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
2078 LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
2079 LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
2080 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
2081 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
2082 LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
2083 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
2084 LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
2085 LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
2086 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
2087 LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
2088 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
2089 LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
2090 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
2091 LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
2092 LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
2093 LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
2094 LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
2095 Move to c-objc-common.h.
2098 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
2100 Copying and distribution of this file, with or without modification,
2101 are permitted in any medium without royalty provided the copyright
2102 notice and this notice are preserved.