1 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
5 * objc-act.c: Mechanically replace "can not" with "cannot".
7 2019-01-01 Jakub Jelinek <jakub@redhat.com>
9 Update copyright years.
11 2018-12-19 David Malcolm <dmalcolm@redhat.com>
15 * objc-act.c (objc_maybe_build_component_ref): Strip any location
16 wrapper before checking for UOBJC_SUPER_decl and self_decl.
17 (objc_finish_message_expr): Strip any location wrapper.
18 (gen_declaration): Strip location wrappers from "w".
20 2018-10-17 David Malcolm <dmalcolm@redhat.com>
22 * Make-lang.in (selftest-objc): New.
24 2018-04-20 Martin Liska <mliska@suse.cz>
27 * objc-act.c (finish_class): Do not overflow string buffer.
29 2018-01-03 Jakub Jelinek <jakub@redhat.com>
31 Update copyright years.
33 2017-11-30 Jakub Jelinek <jakub@redhat.com>
35 * objc-next-runtime-abi-01.c (generate_dispatch_table): Use ; instead
38 2017-11-10 Martin Sebor <msebor@redhat.com>
41 * objc-encoding.c (encode_type): Use memcpy instead of strncpy.
43 2017-10-31 David Malcolm <dmalcolm@redhat.com>
45 * objc-gnu-runtime-abi-01.c (objc_gnu_runtime_abi_01_init): Use
46 UNKNOWN_LOCATION rather than 0.
48 2017-10-17 Nathan Sidwell <nathan@acm.org>
50 * objc-act.c (objc_common_tree_size): Return size of TYPE nodes.
52 2017-10-10 Richard Sandiford <richard.sandiford@linaro.org>
54 * objc-act.c (objc_decl_method_attributes): Use wi::to_wide when
55 operating on trees as wide_ints.
57 2017-09-29 Jakub Jelinek <jakub@redhat.com>
59 * objc-act.c (check_ivars, gen_declaration): For OBJCPLUS look at
60 DECL_BIT_FIELD_REPRESENTATIVE rather than DECL_INITIAL.
62 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
63 Alan Hayward <alan.hayward@arm.com>
64 David Sherwood <david.sherwood@arm.com>
66 * objc-encoding.c (encode_type): Use SCALAR_INT_TYPE_MODE.
68 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
69 Alan Hayward <alan.hayward@arm.com>
70 David Sherwood <david.sherwood@arm.com>
72 * objc-encoding.c (encode_type): Use SCALAR_FLOAT_TYPE_MODE
75 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
76 Alan Hayward <alan.hayward@arm.com>
77 David Sherwood <david.sherwood@arm.com>
79 * objc-encoding.c (encode_gnu_bitfield): Prefix mode names with E_ in
82 2017-08-09 Marek Polacek <polacek@redhat.com>
85 * objc-next-runtime-abi-02.c (build_v2_build_objc_method_call): Update
86 a call to build_conditional_expr.
88 2017-08-08 Martin Liska <mliska@suse.cz>
90 * objc-gnu-runtime-abi-01.c: Include header files.
91 * objc-next-runtime-abi-01.c: Likewise.
92 * objc-next-runtime-abi-02.c: Likewise.
94 2017-07-20 Nathan Sidwell <nathan@acm.org>
97 * objc-runtime-shared-support.c (build_ivar_list_initializer):
98 Don't presume first item is a FIELD_DECL.
100 2017-07-19 Nathan Sidwell <nathan@acm.org>
102 * objc-act.h (CLASS_NST_METHODS, CLASS_CLS_METHODS): Use
103 TYPE_{MIN,MAX}_VALUE_RAW.
105 2017-05-16 Sylvestre Ledru <sylvestre@debian.org>
107 * objc-runtime-shared-support.c (build_module_descriptor):
108 Remove unnecessary conditional when building instance of
109 objc_module. CID 1406758
111 2017-05-09 Nathan Sidwell <nathan@acm.org>
113 * objc-gnu-runtime-abi-01.c (objc_add_static_instance): Use
116 2017-05-04 Martin Sebor <msebor@redhat.com>
119 * objc-gnu-runtime-abi-01.c (objc_eh_runtime_type): Add missing
120 quoting to directives.
121 * objc-next-runtime-abi-01.c (objc_eh_runtime_type): Ditto.
122 * objc-next-runtime-abi-02.c (next_runtime_02_eh_type): Ditto.
124 2017-01-01 Jakub Jelinek <jakub@redhat.com>
126 Update copyright years.
128 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
129 Richard Biener <rguenther@suse.de>
131 * config-lang.in (gtfiles): Add c/c-parser.h.
133 2016-09-27 Jakub Jelinek <jakub@redhat.com>
135 * objc-act.c (continue_class): Remove break after return.
136 (objc_maybe_printable_name): Likewise.
138 2016-08-12 Marek Polacek <polacek@redhat.com>
141 * objc-encoding.c (encode_type): Add FALLTHRU.
143 2016-06-07 David Malcolm <dmalcolm@redhat.com>
145 * objc-act.c (objc_build_component_ref): Update call
146 to build_component_ref for added param, passing UNKNOWN_LOCATION.
148 2016-04-18 Michael Matz <matz@suse.de>
150 * objc-act.c (objc_build_struct): Use SET_DECL_ALIGN.
152 2016-02-12 Jakub Jelinek <jakub@redhat.com>
154 * objc-act.c: Spelling fixes - behaviour -> behavior and
155 neighbour -> neighbor.
156 * objc-map.h: Likewise.
158 2016-01-04 Jakub Jelinek <jakub@redhat.com>
160 Update copyright years.
162 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
164 * objc-act.c: Remove unused header files.
165 * objc-encoding.c: Likewise.
166 * objc-gnu-runtime-abi-01.c: Likewise.
167 * objc-lang.c: Likewise.
168 * objc-map.c: Likewise.
169 * objc-next-runtime-abi-01.c: Likewise.
170 * objc-next-runtime-abi-02.c: Likewise.
171 * objc-runtime-shared-support.c: Likewise.
173 2015-11-09 Alan Modra <amodra@gmail.com>
175 * objc-encoding.c (encode_aggregate_within): Cast obstack_next_free
178 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
180 * objc-lang.c: Reorder #include's and remove duplicates.
181 * objc-map.c: Likewise.
183 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
185 * objc-act.h, objc-next-runtime-abi-02.c, objc-runtime-hooks.h:
186 Remove useless typedefs.
188 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
190 * objc-map.h: Fix double word typos.
192 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
194 * objc-act.c: Adjust includes.
195 * objc-encoding.c: Likewise.
196 * objc-gnu-runtime-abi-01.c: Likewise.
197 * objc-lang.c: Likewise.
198 * objc-map.c: Likewise.
199 * objc-next-runtime-abi-01.c: Likewise.
200 * objc-next-runtime-abi-02.c: Likewise.
201 * objc-runtime-shared-support.c: Likewise.
203 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
205 * objc-act.c: Remove ipa-ref.h and plugin-api.h from include list.
207 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
209 * objc-act.c (objc_string_hasher): Inherit from ggc_ptr_hash
210 rather than ggc_hasher.
212 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
214 * objc-act.c (decl_name_hash): Inherit from nofree_ptr_hash rather
215 than typed_noop_remove. Remove redudant typedefs.
217 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
219 * objc-act.c: Do not include input.h, line-map.h or is-a.h.
220 * objc-encoding.c: Likewise.
221 * objc-gnu-runtime-abi-01.c: Likewise.
222 * objc-lang.c: Likewise.
223 * objc-map.c: Likewise.
224 * objc-next-runtime-abi-01.c: Likewise.
225 * objc-next-runtime-abi-02.c: Likewise.
226 * objc-runtime-shared-support.c: Likewise.
228 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
230 * objc-act.c : Adjust include files.
231 * objc-encoding.c : Likewise.
232 * objc-gnu-runtime-abi-01.c : Likewise.
233 * objc-lang.c : Likewise.
234 * objc-map.c : Likewise.
235 * objc-next-runtime-abi-01.c : Likewise.
236 * objc-next-runtime-abi-02.c : Likewise.
237 * objc-runtime-shared-support.c : Likewise.
239 2015-06-08 Aldy Hernandez <aldyh@redhat.com>
241 * objc-runtime-shared-support.c (build_module_descriptor): Set
242 TREE_USED on UOBJC_MODULES_decl.
244 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
246 * objc-act.c (objc_write_global_declarations): Adjust comment.
247 * objc-gnu-runtime-abi-01.c (build_selector_table_decl): Set
250 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
252 * objc-act.c: Adjust includes for restructured coretypes.h.
253 * objc-encoding.c: Likewise.
254 * objc-gnu-runtime-abi-01.c: Likewise.
255 * objc-lang.c: Likewise.
256 * objc-map.c: Likewise.
257 * objc-next-runtime-abi-01.c: Likewise.
258 * objc-next-runtime-abi-02.c: Likewise.
259 * objc-runtime-shared-support.c: Likewise.
261 2015-04-27 Jim Wilson <jim.wilson@linaro.org>
263 * Make-lang.in (objc.mostlyclean): Remove cc1obj.
265 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
267 * objc-act.c: Adjust for hash_table changes.
269 2015-01-09 Michael Collison <michael.collison@linaro.org>
271 * objc-act.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
272 input.h, alias.h, symtab.h, options, fold-const.h,
273 wide-int.h, and inchash.h due to flattening of tree.h.
274 * objc-encoding.c: Ditto.
275 * objc-gnu-runtime-abi-01.c: Ditto.
276 * objc-lang.c: Ditto.
278 * objc-next-runtime-abi-01.c: Ditto.
279 * objc-next-runtime-abi-02.c: Ditto.
280 * objc-runtime-shared-support.c: Ditto.
282 2015-01-05 Jakub Jelinek <jakub@redhat.com>
284 Update copyright years.
286 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
288 * objc-act.c: Adjust include files.
290 2014-10-22 Alan Modra <amodra@gmail.com>
292 * objc-encoding.c (encode_array): Cast result of obstack_base.
293 (encode_type): Likewise.
295 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
297 * objc-act.c: Adjust include files.
299 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
301 * objc-act.c: use hash_table instead of hashtab.
303 2014-09-15 Jakub Jelinek <jakub@redhat.com>
305 * Make-lang.in (check_objc_parallelize): Change to just an upper
308 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
310 * objc-act.c (objc_common_tree_size): New function.
311 * objc-act.h (KEYWORD_KEY_NAME, KEYWORD_ARG_NAME): Add type
313 (INSTANCE_METHOD_OR_CLASS_METHOD_DECL_CHECK): New macro.
314 (METHOD_SEL_NAME, METHOD_SEL_ARGS, METHOD_ADD_ARGS,
315 METHOD_ADD_ARGS_ELLIPSIS_P, METHOD_DEFINITION, METHOD_ENCODING,
316 METHOD_TYPE_ATTRIBUTES, METHOD_PROPERTY_CONTEXT): Add type checking.
317 (METHOD_SEL_ARGS): Use decl_common.size instead of
318 decl_non_common.result.
319 (PROPERTY_NAME, PROPERTY_GETTER_NAME, PROPERTY_SETTER_NAME,
320 PROPERTY_READONLY, PROPERTY_NONATOMIC, PROPERTY_ASSIGN_SEMANTICS,
321 PROPERTY_IVAR_NAME, PROPERTY_DYNAMIC, PROPERTY_HAS_NO_GETTER,
322 PROPERTY_HAS_NO_SETTER, PROPERTY_OPTIONAL): Add type checking.
323 (objc_common_tree_size): Declare.
324 * objc-lang.c (LANG_HOOKS_TREE_SIZE): New macro.
326 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
328 * objc-act.c (objc_xref_basetypes): Set TYPE_BINFO of type variants,
331 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
333 * objc-act.c: Adjust.
335 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
337 * objc-act.c (objc_build_string_object): Adjust.
338 (continue_class): Likewise.
339 * objc-act.h (ALLOC_OBJC_TYPE_LANG_SPECIFIC): Likewise.
340 * objc-map.c (objc_map_alloc_ggc): Likewise.
341 (objc_map_private_resize): Likewise.
342 * objc-next-runtime-abi-02.c (objc_next_runtime_abi_02_init):
344 (hash_name_enter): Likewise.
346 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
347 Mike Stump <mikestump@comcast.net>
348 Richard Sandiford <rdsandiford@googlemail.com>
350 * objc-act.c: Include wide-int.h.
351 (objc_decl_method_attributes): Use wide-int interfaces.
353 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
356 * objc-act.c (objc_ivar_visibility, objc_default_ivar_visibility): Add.
357 (objc_init): Initialize objc_default_ivar_visibility.
358 (objc_start_class_interface): Use objc_default_ivar_visibility.
359 (objc_start_class_implementation): Likewise.
360 (objc_lookup_ivar): Implement -fno-local-ivars.
362 2014-01-31 Marek Polacek <polacek@redhat.com>
365 * objc-next-runtime-abi-02.c (build_throw_stmt): Pass vNULL to
366 build_function_call_vec.
367 (finish_catch): Likewise.
368 (next_runtime_abi_02_get_class_reference): Likewise.
369 * objc-next-runtime-abi-01.c (build_objc_method_call): Pass vNULL to
370 build_function_call_vec.
371 (build_throw_stmt): Likewise.
372 * objc-gnu-runtime-abi-01.c: (build_objc_method_call): Pass vNULL to
373 build_function_call_vec.
374 (build_throw_stmt): Likewise.
376 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
378 Update copyright years
380 2013-12-04 Joseph Myers <joseph@codesourcery.com>
383 * objc-act.c (objc_synthesize_getter): Update calls to
384 c_sizeof_or_alignof_type.
386 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
388 * objc/objc-act.c: Add required include files from gimple.h.
390 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
392 * objc-encoding.c: Replace tree_low_cst (..., 1) with tree_to_uhwi
395 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
397 * objc-next-runtime-abi-02.c: Replace tree_low_cst (..., 0) with
398 tree_to_shwi throughout.
400 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
402 * objc-act.c: Include only gimplify.h and gimple.h as needed.
404 2013-11-14 Diego Novillo <dnovillo@google.com>
406 * objc-act.c: Include stringpool.h.
407 Include stor-layout.h.
409 * objc-encoding.c: Include stringpool.h.
410 Include stor-layout.h.
411 * objc-gnu-runtime-abi-01.c: Include stringpool.h.
412 * objc-next-runtime-abi-01.c:
413 Include stringpool.h.
414 * objc-next-runtime-abi-02.c: Include stringpool.h.
415 * objc-runtime-shared-support.c: Include stringpool.h.
417 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
419 * objc-act.c: Include gimplify.h.
421 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
423 * objc-act.c (objc_push_parm): Handle atomic qualifier.
425 2013-09-25 Tom Tromey <tromey@redhat.com>
427 * Make-lang.in (START_HDRS, cc1obj-checksum.o, objc/objc-lang.o)
428 (objc/objc-runtime-shared-support.o)
429 (objc/objc-gnu-runtime-abi-01.o, objc/objc-next-runtime-abi-01.o)
430 (objc/objc-next-runtime-abi-02.o, objc/objc-act.o)
431 (objc/objc-encoding.o, objc/objc-map.o): Remove.
433 2013-09-14 Iain Sandoe <iain@codesourcery.com>
436 * objc-next-runtime-abi-01.c (generate_objc_image_info): Remove.
437 (objc_generate_v1_next_metadata): Remove generation of ImageInfo.
438 * objc-next-runtime-abi-02.c (generate_v2_objc_image_info): Remove.
439 (objc_generate_v2_next_metadata): Remove generation of ImageInfo.
441 2013-07-21 OndÅ
\99ej BÃlka <neleai@seznam.cz>
443 * objc-act.c: Fix typos.
444 * objc-encoding.c: Likewise.
445 * objc-gnu-runtime-abi-01.c: Likewise.
446 * objc-next-runtime-abi-01.c: Likewise.
447 * objc-next-runtime-abi-02.c: Likewise.
449 2013-05-22 Paolo Carlini <paolo.carlini@oracle.com>
451 * objc-next-runtime-abi-02.c (build_v2_build_objc_method_call):
452 Fix build_conditional_expr call.
454 2013-05-16 Jason Merrill <jason@redhat.com>
456 * Make-lang.in (cc1obj$(exeext)): Use link mutex.
458 2012-11-20 Diego Novillo <dnovillo@google.com>
460 * objc-act.c: Replace all vec<T, A>() initializers with vNULL.
462 2012-11-16 Diego Novillo <dnovillo@google.com>
464 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
466 * objc-act.c: Use new vec API in vec.h.
467 * objc-act.h: Likewise.
468 * objc-gnu-runtime-abi-01.c: Likewise.
469 * objc-next-runtime-abi-01.c: Likewise.
470 * objc-next-runtime-abi-02.c: Likewise.
471 * objc-runtime-hooks.h: Likewise.
472 * objc-runtime-shared-support.c: Likewise.
473 * objc-runtime-shared-support.h: Likewise.
475 2012-10-01 Lawrence Crowl <crowl@google.com>
477 * Make-lang.in (OBJC_OBJS): Add dependence on hash-table.o.
478 (objc-act.o): Add dependence on hash-table.h.
479 * objc-act.c (objc_detect_field_duplicates): Change to new type-safe
482 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
484 * Make-ang.in: Adjust for move of C front-end files.
485 * config-lang.in: Likewise.
486 * objc-encoding.c: Look for cp-tree.h in cp/, and for c-tree.h
488 * objc-runtime-shared-support.c: Likewise.
489 * objc-next-runtime-abi-01.c: Likewise.
490 * objc-next-runtime-abi-02.c: Likewise.
491 * objc-gnu-runtime-abi-01.c: Likewise.
492 * objc-act.c: Likewise.
493 * objc-lang.c: Likewise.
495 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
497 * objc-next-runtime-abi-01.c: Do not include tm.h and output.h.
498 Include c-family/c-target.h.
499 (handle_next_class_ref): Rewrite to emit top-level asm statements.
500 (handle_next_impent): Likewise.
501 * objc/Make-lang.in: Fix dependencies for objc-next-runtime-abi-01.o.
503 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
505 * objc-act.c: Do not include output.h.
507 2012-05-17 Paolo Carlini <paolo.carlini@oracle.com>
510 * objc-act.c (objc_get_class_reference, objc_build_message_expr):
511 Use build_min_nt_loc.
513 2012-04-20 Jan Hubicka <jh@suse.cz>
515 * objc-act.c (mark_referenced_methods); Use
516 cgraph_mark_force_output_node.
518 2012-03-21 Steven Bosscher <steven@gcc.gnu.org>
520 * objc-act (objc_build_ivar_assignment): Do not call assemble_external.
521 (objc_build_global_assignment): Likewise.
522 (objc_build_strong_cast_assignment): Likewise.
523 * objc-next-runtime-abi-01.c: Cleanup commented-out assemble_external.
524 * objc-next-runtime-abi-02.c: Likewise.
525 * objc-gnu-runtime-abi-01.c: Likewise.
527 2012-03-05 Jason Merrill <jason@redhat.com>
529 * objc-map.c (objc_map_private_resize, objc_map_alloc_ggc): Don't
530 call _stat functions without MEM_STAT_INFO.
532 2011-11-12 Iain Sandoe <iains@gcc.gnu.org>
534 * objc-next-runtime-abi-01.c (objc_eh_personality): Use gcc personality
537 2011-10-29 Iain Sandoe <iains@gcc.gnu.org>
540 * objc-act.c (objc_build_string_object): Remove redundant second
541 call to fix_string_type (). Add a checking assert that we are,
542 indeed, passed a STRING_CST.
544 2011-10-18 Mikael Pettersson <mikpe@it.uu.se>
547 * objc-act.c (check_duplicates): Cast TREE_VEC_LENGTH result to
548 size_t to avoid signed/unsigned
550 (insert_method_into_method_map): Likewise.
552 2011-10-14 Nicola Pero <nicola.pero@meta-innovation.com>
554 * objc-map.h: New file.
555 * objc-map.c: New file.
556 * config-lang.in (gtfiles): Added objc-map.h.
557 * Make-lang.in (OBJC_OBJS): Added objc-map.o.
558 (objc/objc-map.o): New rule.
559 (objc/objc-act.o): Depend on objc/objc-map.h.
560 * objc-next-runtime-abi-02.c: Added a TODO comment.
561 * objc-act.c: Include objc-map.h.
562 (nst_method_hash_list, cls_method_hash_list): Removed.
563 (instance_method_map, class_method_map): New.
564 (cls_name_hash_list, als_name_hash_list): Removed.
565 (class_name_map, alias_name_map): Removed.
566 (ivar_offset_hash_list): Removed.
567 (hash_class_name_enter, hash_class_name_lookup, hash_enter,
568 hash_lookup, hash_add_attr, add_method_to_hash_list): Removed.
569 (interface_hash_init): New.
570 (objc_init): Call interface_hash_init.
571 (objc_write_global_declarations): Iterate over class_method_map
572 and instance_method_map instead of cls_method_hash_list and
573 nst_method_hash_list.
574 (objc_declare_alias): Use alias_name_map instead of
576 (objc_is_class_name): Use class_name_map and alias_name_map
577 instead of cls_name_hash_list and als_name_hash_list.
578 (interface_tuple, interface_htab, hash_interface, eq_interface):
580 (interface_map): New.
581 (add_class): Renamed to add_interface. Use interface_map instead
583 (lookup_interface): Use interface_map instead of interface_htab.
584 (check_duplicates): Changed first argument to be a tree,
585 potentially a TREE_VEC, instead of a hash. Changed implementation
587 (lookup_method_in_hash_lists): Use class_method_map and
588 instance_method_map instead of cls_method_hash_list and
589 nst_method_hash_list.
590 (objc_build_selector_expr): Likewise.
591 (hash_func): Removed.
592 (hash_init): Create instance_method_map, class_method_map,
593 class_name_map, and alias_name_map. Do not create
594 nst_method_hash_list, cls_method_hash_list, cls_name_hash_list,
595 als_name_hash_list, and ivar_offset_hash_list.
596 (insert_method_into_method_map): New.
597 (objc_add_method): Use insert_method_into_method_map instead of
598 add_method_to_hash_list.
599 (start_class): Call add_interface instead of add_class.
600 * objc-act.h (cls_name_hash_list, als_name_hash_list,
601 nst_method_hash_list, cls_method_hash_list): Removed.
603 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
605 * objc-next-runtime-abi-01.c (objc_build_exc_ptr): Delete old
606 interface with two parallel arrays to hold standard builtin
607 declarations, and replace it with a function based interface that
608 can support creating builtins on the fly in the future. Change
609 all uses, and poison the old names. Make sure 0 is not a
610 legitimate builtin index.
611 * objc-next-runtime-abi-02.c (objc_build_exc_ptr): Ditto.
612 * objc-gnu-runtime-abi-01.c (objc_build_exc_ptr): Ditto.
614 2011-07-19 Richard Guenther <rguenther@suse.de>
616 * objc-next-runtime-abi-02.c (objc_v2_build_ivar_ref):
617 Use fold_build_pointer_plus.
618 (objc2_build_ehtype_initializer): Likewise.
620 2011-07-11 Nicola Pero <nicola.pero@meta-innovation.com>
622 * objc-encoding.h (obstack.h): Do not include.
623 (util_obstack, util_firstobj): Do not declare.
624 (encode_field_decl): Updated prototype to return a tree and take a
625 single tree argument. Updated comments.
626 * objc-encoding.c (util_obstack, util_firstobj): Made static.
627 (objc_encoding_init): New.
628 (encode_field_decl): Existing function renamed to encode_field and
629 made static. New encode_field_decl wrapper function added.
630 (encode_aggregate_fields): Update call to encode_field_decl to
632 * objc-next-runtime-abi-02.c (obstack.h): Do not include.
633 (util_obstack, util_firstobj): Do not declare.
634 (build_v2_ivar_list_initializer): Updated call to
636 * objc-runtime-shared-support.c (obstack.h): Do not include.
637 (util_obstack, util_firstobj): Do not declare.
638 (build_ivar_list_initializer): Updated call to encode_field_decl.
639 * objc-act.c (objc_init): Use objc_encoding_init.
640 * Make-lang.in (objc/objc-runtime-shared-support.o): Do not depend
642 (objc/objc-gnu-runtime-abi-01.o): Likewise.
643 (objc/objc-next-runtime-abi-01.o): Likewise.
644 (objc/objc-next-runtime-abi-02.o): Likewise.
645 (objc/objc-act.o): Likewise.
647 2011-07-04 Nicola Pero <nicola.pero@meta-innovation.com>
649 Refactored encoding code into objc-encoding.h and objc-encoding.c.
650 * objc-act.c (util_obstack, util_firstobj, encode_type_qualifiers,
651 encode_type, generating_instance_variables, objc_method_parm_type,
652 objc_encoded_type_size, encode_method_prototype,
653 objc_build_encode_expr, pointee_is_readonly, encode_pointer,
654 encode_array, encode_vector, encode_aggregate_fields,
655 encode_aggregate_within, encode_next_bitfield,
656 encode_gnu_bitfield, encode_field_decl,
657 objc_v2_encode_property_attr): Moved to objc-encoding.h and
658 objc-encoding.c. No change in the actual code.
659 Include objc-encoding.h.
660 (objc_init): Added TODO.
661 (objc_build_property_setter_name): Made non-static so it can be
662 called from objc-encoding.c.
663 * objc-act.h (OBJC_ENCODE_INLINE_DEFS,
664 OBJC_ENCODE_DONT_INLINE_DEFS): Moved to objc-encoding.h.
665 * objc-runtime-shared-support.h (objc_v2_encode_property_attr,
666 encode_method_prototype, encode_field_decl,
667 generating_instance_variables): Moved to objc-encoding.h.
668 (objc_build_property_setter_name): Declare.
669 * objc-encoding.c: New.
670 * objc-encoding.h: New.
671 * objc-gnu-runtime-abi-01.c: Include objc-encoding.h.
672 * objc-next-runtime-abi-01.c: Likewise.
673 * objc-next-runtime-abi-02.c: Likewise.
674 * objc-runtime-shared-support.c: Likewise.
675 * Make-lang.in (OBJC_OBJS): Added objc-encoding.o.
676 (objc/objc-lang.o): Reordered dependencies.
677 (objc/objc-runtime-shared-support.o): Reordered dependencies.
678 Added dependencies on objc-encoding.h and on $(GGC_H),
679 $(DIAGNOSTIC_CORE_H), $(FLAGS_H) and input.h.
680 (objc/objc-gnu-runtime-abi-01.o): Likewise.
681 (objc/objc-next-runtime-abi-01.o): Likewise.
682 (objc/objc-next-runtime-abi-02.o): Likewise.
683 (objc/objc-act.o): Reordered dependencies. Added dependency on
685 (objc/objc-encoding.o): New rule.
687 * objc-encoding.c (encode_type): Use "%<%T%>" format when printing
688 warning "unknown type %<%T%> found during Objective-C encoding"
689 instead of using gen_type_name.
691 2011-06-05 Nicola Pero <nicola.pero@meta-innovation.com>
693 * objc-act.c (receiver_is_class_object): Expanded comment.
694 (objc_finish_message_expr): Likewise.
696 2011-06-02 Nicola Pero <nicola.pero@meta-innovation.com>
699 * objc-act.c (objc_finish_message_expr): Warn if messaging a class
700 that was only declared using @class without an @interface. Warn
701 if messaging an instance of a class that was only declared using
702 @class without an @interface, unless the receiver was also typed
703 with a protocol list.
705 2011-06-01 Nicola Pero <nicola.pero@meta-innovation.com>
707 * objc-act.c (objc_decl_method_attributes): Implement nonnull
708 attribute for Objective-C methods.
710 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
712 * config-lang.in (gtfiles): Updated order of files to fix building
713 when the gcc/cp directory is missing, as in the case of some
716 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
718 * objc-act.c (objc_compare_types): Use function_args_iterator
719 instead of TYPE_ARG_TYPES to compare function argument types.
721 2011-05-13 Toon Moene <toon@moene.org>
723 * objc-next-runtime-abi-02.c (newabi_append_ro):
724 Add const qualifier to constant variable pointer declaration.
726 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
728 * objc-act.h (CLASS_NAME, CLASS_SUPER_NAME): Use proper accessors.
729 (CLASS_NST_METHODS, CLASS_CLS_METHODS): Likewise.
730 (PROTOCOL_NAME, PROTOCOL_NST_METHODS, PROTOCOL_CLS_METHODS): Likewise.
732 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
734 * objc-runtime-shared-support.h (get_arg_type_list): Delete.
735 (build_function_type_for_method): Declare.
736 * objc-runtime-hooks.h (struct _objc_runtime_hooks_r): Change
737 type of get_arg_type_base_list field.
738 * objc-act.h (OBJC_VOID_AT_END): Delete.
739 * objc-act.c (get_arg_type_list): Delete.
740 (build_function_type_for_method): New function.
741 (objc_decl_method_attributes): Call build_function_type_for_method.
742 (really_start_method): Likewise.
743 * objc-gnu-runtime-abi-01.c
744 (gnu_runtime_abi_01_get_type_arg_list_base): Change prototype and
745 adjust function accordingly. Update header comment.
746 (build_objc_method_call): Call build_function_type_for_method.
747 * objc-next-runtime-abi-01.c
748 (next_runtime_abi_01_get_type_arg_list_base): Change prototype and
749 adjust function accordingly. Update header comment.
750 (build_objc_method_call): Call build_function_type_for_method.
751 * objc-next-runtime-abi-02.c
752 (next_runtime_abi_02_get_type_arg_list_base): Change prototype and
753 adjust function accordingly. Update header comment.
754 (objc_copy_to_temp_side_effect_params): Take fntype instead of a
755 typelist. Use function_args_iterator for traversing fntype.
756 (build_v2_build_objc_method_call): Adjust call to it.
757 Call build_function_type_for_method
759 2011-05-05 Joseph Myers <joseph@codesourcery.com>
761 * objc-act.c (objc_start_method_definition): Add parameter expr.
762 Update call to start_method_def.
763 (objc_generate_cxx_ctor_or_dtor, objc_synthesize_getter,
764 objc_synthesize_setter) Update calls to
765 objc_start_method_definition.
766 (objc_get_parm_info): Add parameter expr. Update call to
768 (start_method_def): Add parameter expr. Update call to
770 * objc-gnu-runtime-abi-01.c (build_module_initializer_routine):
771 Update call to objc_get_parm_info.
772 * objc-runtime-shared-support.h (objc_get_parm_info): Add extra
775 2011-04-26 Jason Merrill <jason@redhat.com>
777 * objc-act.c (objc_fold_objc_type_ref): Remove.
778 * objc-act.h: Remove prototype.
780 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
782 * objc-act.c (synth_module_prologue): Call build_function_type_list
783 instead of build_function_type.
784 * objc-next-runtime-abi-02.c (next_runtime_02_initialize):
787 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
789 * objc-act.c (ivar_of_class): New.
790 (objc_is_public): Use ivar_of_class.
792 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
794 * objc-act.c (objc_get_interface_ivars): Removed.
795 (objc_detect_field_duplicates): New.
796 (hash_instance_variable): New.
797 (eq_instance_variable): New.
799 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
801 * objc-act.c (objc_declare_protocols): Renamed to
802 objc_declare_protocol. Changed first argument to be an identifier
803 instead of a tree chain of identifiers, so that callers don't have
804 to create a temporary tree chain.
806 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
808 * objc-act.c (objc_declare_class): Changed to take a single
809 identifier as argument instead of a tree list. This means callers
810 don't have to build temporary tree lists to call this function.
811 (synth_module_prologue): Updated calls to objc_declare_class.
813 2011-04-13 Nicola Pero <nicola.pero@meta-innovation.com>
815 * objc-act.c (build_keyword_selector): Use get_identifier_with_length
816 instead of get_identifier.
818 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
820 * objc-lang.c (objc_init_ts): Move code for this function...
821 * objc-act.c (objc_common_init_ts): ...here. Define.
822 * objc-act.h (objc_common_init_ts): Declare.
824 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
826 * objc-act.c (objc_build_message_expr): Accept two arguments
827 instead of one so that callers can simply pass the arguments
828 without having to create a temporary chain to hold them.
830 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
832 * objc-act.c (comp_proto_with_proto): Do not create and use
833 inefficient temporary argument lists. Compare the arguments
834 directly. (match_proto_with_proto): Removed; incorporated into
835 comp_proto_with_proto ().
837 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
839 * objc-act.c (printable_ivar_name): New.
840 (add_instance_variable): Call printable_ivar_name() when an error
841 message needs to be printed. Do not prepare the instance variable
842 for printing unless there is an actual error.
844 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
846 * objc-act.c (objc_is_class_name, objc_is_id): For efficiency,
847 avoid calling identifier_global_value() multiple times.
849 2011-04-12 Martin Jambor <mjambor@suse.cz>
851 * objc-act.c (mark_referenced_methods): Call cgraph_get_create_node
852 instead of cgraph_node.
854 2011-04-06 Joseph Myers <joseph@codesourcery.com>
856 * objc-act.c: Include c-target.h instead of target.h.
857 * Make-lang.in (objc/objc-act.o): Update dependencies.
859 2011-03-06 Joseph Myers <joseph@codesourcery.com>
861 * lang-specs.h: Match -save-temps* instead of -save-temps.
863 2011-02-26 Nicola Pero <nicola.pero@meta-innovation.com>
865 * objc-act.c (objc_v2_encode_prop_attr): Rewritten.
867 2011-02-23 Nicola Pero <nicola.pero@meta-innovation.com>
869 * objc-act.c (build_private_template): Do not copy the
870 CLASS_HAS_EXCEPTION_ATTR from the class to the struct.
871 * objc-act.h (CLASS_HAS_EXCEPTION_ATTR): Define using
874 2011-02-22 Nicola Pero <nicola.pero@meta-innovation.com>
877 * objc-act.c (flexible_array_type_p): New.
878 (add_instance_variable): Produce an error if an instance variable
879 uses flexible array members.
880 (encode_array): Do not emit an error if encoding a flexible array
881 type while generating instance variables.
883 2011-02-21 Mike Stump <mikestump@comcast.net>
885 * Make-lang.in (check_objc_parallelize): Refine for 4 processor
888 2011-02-20 Nicola Pero <nicola.pero@meta-innovation.com>
890 * objc-gnu-runtime-abi-01.c (TARGET_64BIT): Removed. Removed
891 usage of padding fields. Do not include tm.h.
892 * objc-act.c (objc_write_global_declaration): Set input_location
893 to BUILTINS_LOCATION while generating runtime metadata.
895 2011-01-20 Nicola Pero <nicola.pero@meta-innovation.com>
898 * objc-act.c (objc_maybe_build_modify_expr): If 'rhs' has side
899 effects, do not use a temporary variable.
901 2011-01-19 Nicola Pero <nicola.pero@meta-innovation.com>
903 * objc-next-runtime-abi-01.c: Updated comments.
904 * objc-next-runtime-abi-02.c: Same.
906 2011-01-19 Nicola Pero <nicola.pero@meta-innovation.com>
908 * objc-act.c (objc_init, generate_struct_by_value_array): Updated
911 2011-01-19 Nicola Pero <nicola.pero@meta-innovation.com>
913 * objc-act.c: Updated comments.
914 * objc-next-runtime-abi-02.c: Same.
915 * objc-runtime-shared-support.c: Same.
916 * objc-runtime-hooks.h: Same.
918 * objc-gnu-runtime-abi-01.c: Same.
920 2011-01-19 Nicola Pero <nicola.pero@meta-innovation.com>
922 * objc-gnu-runtime-abi-01.c (objc_generate_v1_gnu_metadata): Do
923 not generate metadata if there is nothing to put into it.
925 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
927 * config-lang.in (gtfiles): Updated.
928 * Make-lang.in (START_HDRS): New.
929 (OBJC_OBJS): Added new object files.
930 (objc/objc-act.o): Updated prerequisites.
931 (objc/objc-lang.o): Updated prerequisites.
932 (objc/objc-runtime-shared-support.o): New.
933 (objc/objc-gnu-runtime-abi-01.o): New.
934 (objc/objc-next-runtime-abi-01.o): New.
935 (objc/objc-next-runtime-abi-02.o): New.
936 * objc-runtime-hooks.h: New.
937 * objc-runtime-shared-support.h: New.
938 * objc-runtime-shared-support.c: New.
939 * objc-gnu-runtime-abi-01.c: New.
940 * objc-next-metadata-tags.h: New.
941 * objc-next-runtime-abi-01.c: New.
942 * objc-next-runtime-abi-02.c: New.
943 * objc-lang.c: Include c-lang.h.
944 (LANG_HOOKS_EH_PERSONALITY): Removed.
945 * objc-act.h: Moved many declarations and code from objc-act.c
946 into objc-act.h to make them available outside objc-act.c.
947 (objc_eh_runtime_type): Removed.
948 (objc_eh_personality): Removed.
949 (CLASS_HAS_EXCEPTION_ATTR): New.
950 (OCTI_SUPER_SUPERFIELD_ID): New.
951 (OCTI_V1_PROP_LIST_TEMPL): New.
952 (OCTI_V1_PROP_NAME_ATTR_CHAIN): New.
953 (super_superclassfield_id): New.
954 (objc_prop_list_ptr): New.
955 (prop_names_attr_chain): New.
956 * objc-act.c: Include new runtime headers. Moved many #defines
957 and declarations into objc-act.h and
958 objc-runtime-shared-support.h. Made some corresponding functions
959 non-static, and moved some others into
960 objc-runtime-shared-support.c. Moved metadata generation code
961 into the new runtime hook files.
962 (ivar_offset_hash_list): New.
963 (objc_init): Call generate_struct_value_by_array() before doing
964 any runtime initialization. Create the appropriate runtime hook
966 (init_objc): Removed. Code moved directly into objc_init.
967 (finish_objc): Removed. Code moved directly into
968 objc_write_global_declarations.
969 (objc_write_global_declarations): Do the warn_selector checks
970 before emitting metadata. Use a runtime hook to emit the
971 metadata. Do not emit the metadata or do -gen-decls processing if
972 -fsyntax-only or we are producing a PCH.
973 (build_objc_exception_stuff): Renamed to
974 build_common_objc_exception_stuff. Remove TREE_NOTHROW flag from
975 objc_exception_throw_decl.
976 (synth_module_prologue): Call runtime initialize hook instead of
977 building runtime declarations here. Use the
978 default_constant_string_class_name runtime hook to set the
979 constant string class name.
980 (objc_build_string_object): Call the setup_const_string_class_decl
981 runtime hook instead of setup_string_decl. Call the
982 build_const_string_constructor runtime hook instead of building
983 the string object here.
984 (get_objc_string_decl): Added prop_names_attr case. Removed
985 gcc_unreachable() at the end.
986 (objc_begin_catch_clause): Distinguish between @catch (...) and
987 @catch (id x). Call the begin_catch runtime hook instead of
988 building the CATCH_EXPR here.
989 (objc_finish_catch_clause): Call the finish_catch runtime hook
990 instead of adding the catch here.
991 (objc_finish_try_stmt): Call the finish_try_stmt runtime hook
992 instead of doing it here.
993 (objc_build_throw_stmt): Bail out early for error_mark_node. Call
994 the build_exc_ptr runtime hook instead of objc_build_exc_ptr.
995 Call the build_throw_stmt runtime hook instead of building the
997 (objc_generate_cxx_cdtors): Set has_cxx_cdtors for the GNU runtime
999 (get_arg_type_list): Call the get_arg_type_list_base runtime hook
1000 instead of building the list of arguments here.
1001 (receiver_is_class_object): Call the receiver_is_class_object
1002 runtime hook instead of doing the check here. Call the
1003 tag_getclass runtime hook instead of using TAG_GETCLASS.
1004 (objc_finish_message_expr): Call the build_objc_method_call
1006 (objc_build_protocol_expr): Call the get_protocol_reference
1008 (objc_build_selector_expr): Call the build_selector_reference
1010 (build_ivar_reference): Call the build_ivar_reference runtime
1012 (hash_init): Set up ivar_offset_hash_list.
1013 (start_class): Recognize the objc_exception attribute and store
1015 (continue_class): Use the class_decl and metaclass_decl runtime
1017 (build_objc_property_accessor_helpers): Renamed to
1018 build_common_objc_property_accessor_helpers. Do not build
1019 objc_copyStruct_decl, objc_getPropertyStruct_decl and
1020 objc_setPropertyStruct_decl.
1021 (objc_synthesize_getter): Check what struct setter/getter helper
1022 is available instead of checking the type of runtime.
1023 (get_super_receiver): Use the super_superclassfield_ident runtime
1024 hook. Added assert. Use the get_class_super_ref and
1025 get_category_super_ref runtime hooks.
1026 (objc_v2_encode_prop_attr): New.
1028 2011-01-17 Nicola Pero <nicola.pero@meta-innovation.com>
1031 * objc-act.c (finish_objc): When calling check_duplicates to check
1032 duplicated instance methods, set 'is_class' to 0, not 1.
1034 2011-01-14 Ben Elliston <bje@au.ibm.com>
1037 * objc-act.c (generate_struct_by_value_array): Do not output a
1038 definition for struct_forward_array.
1040 2011-01-08 Iain Sandoe <iains@gcc.gnu.org>
1042 * objc-act.c (objc_finish_foreach_loop): Mark collection expression
1045 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
1047 * objc-act.c (check_that_protocol_is_defined): Fix a typo.
1049 2011-01-02 Nicola Pero <nicola.pero@meta-innovation.com>
1051 * objc-act.c (check_that_protocol_is_defined): New.
1052 (lookup_protocol): Call check_that_protocol_is_defined.
1054 2010-12-30 Nicola Pero <nicola.pero@meta-innovation.com>
1056 * objc-act.c (objc_types_are_equivalent): Fixed comparing protocol
1057 lists. Check them two-ways to fix comparisons when one protocol
1058 implements the other one, or when one list contains duplicated
1061 2010-12-30 Nicola Pero <nicola.pero@meta-innovation.com>
1063 * objc-act.c (objc_add_method): When emitting an error because a
1064 method with the same name but conflicting types is found in the
1065 same class or category interface, print a note with the location
1066 of the original method. Also, improved the error message to
1067 clearly state that the conflict is due to conflicting types, and
1068 produce it for protocols as well. Emit an error if two identical
1069 methods are declared in a protocol, but one is @required and the
1070 other one is @optional.
1072 2010-12-30 Nicola Pero <nicola.pero@meta-innovation.com>
1074 * objc-act.c (start_class): Warn when a class attribute is
1076 (objc_declare_protocols): Warn when a protocol attribute in a
1077 protocol forward-declaration is ignored.
1078 (start_protocol): Warn when a protocol attribute is ignored.
1080 2010-12-30 Nicola Pero <nicola.pero@meta-innovation.com>
1082 * objc-act.c (objc_set_method_opt): Tidy up error messages. In
1083 particular, explicitly mention whether the error is due to the
1084 @optional or @required keyword instead of mentioning
1085 "@optional/@required".
1087 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
1090 * objc-act.c (objc_build_synchronized): Check the argument of
1091 @synchronized and emit an appropriate error if it is not a valid
1092 Objective-C object. Deal gracefully with that case. Updated
1093 comments and variable names.
1095 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
1098 * objc-act.h (PROPERTY_REF_DEPRECATED_GETTER): New.
1099 * objc-tree.def (PROPERTY_REF): Increased the number of operands
1101 * objc-act.c (objc_finish_message_expr): Added optional argument
1102 allowing to return the deprecated method prototype for deprecated
1103 methods, instead of immediately emitting the deprecation warning.
1104 (objc_maybe_build_component_ref): Do not warn for a deprecated
1105 property. When building the getter call, get the deprecated
1106 method prototype from objc_finish_message_expr() and put it into
1108 (objc_build_class_component_ref): Same change.
1109 (finish_class): Mark the getter and setter as deprecated if they
1110 are generated from a deprecated property.
1111 (objc_gimplify_property_ref): If the getter is deprecated, emit a
1112 deprecation warning.
1113 (objc_build_setter_call, objc_build_message_expr,
1114 objc_finish_foreach_loop): Updated call to
1115 objc_finish_message_expr.
1117 2010-12-28 Nicola Pero <nicola.pero@meta-innovation.com>
1120 * objc-act.c (lookup_protocol): Added 'definition_required'
1121 argument. If 'definition_required', and the protocol is not
1122 defined, emit a warning.
1123 (objc_declare_protocols): Updated call to lookup_protocol.
1124 (start_protocol): Same change.
1125 (check_protocol_recursively): Same change.
1126 (objc_build_protocol_expr): Same change.
1127 (lookup_and_install_protocols): Added definition_required argument.
1128 Pass it to lookup_protocol.
1129 (objc_get_protocol_qualified_type): Updated call to
1130 lookup_and_install_protocols.
1131 (start_class): Updated calls to lookup_and_install_protocols; pass
1132 true to 'definition_required' to get the warnings.
1133 (start_protocol): Updated calls to lookup_and_install_protocols.
1135 2010-12-28 Nicola Pero <nicola.pero@meta-innovation.com>
1137 * objc-act.c (objc_start_category_interface): Produce an error if
1138 a class extension is found after the class @implementation.
1140 2010-12-28 Nicola Pero <nicola.pero@meta-innovation.com>
1143 * objc-act.c (encode_method_prototype): Fixed both location and
1144 format string of error "type %qT does not have a known size".
1146 2010-12-26 Nicola Pero <nicola.pero@meta-innovation.com>
1148 * config-lang.in (gtfiles): Added c-family/c-cppbuiltin.c.
1150 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
1152 * objc-act.c (next_sjlj_build_enter_and_setjmp): Use prototype_p.
1154 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
1156 * objc-act.c (objc_init): Call using_eh_for_cleanups.
1157 (objc_init_exceptions): Renamed to objc_maybe_warn_exceptions. Do
1158 not call using_eh_for_cleanups.
1159 (objc_begin_try_stmt): Do not call objc_init_exceptions.
1160 (objc_build_throw_stmt): Updated call to
1161 objc_maybe_warn_exceptions.
1163 2010-12-18 Iain Sandoe <iains@gcc.gnu.org>
1165 * objc/objc-act.c (objc_eh_personality): Select personality name on
1167 (objc_init_exceptions): New.
1168 (objc_begin_try_stmt): Use objc_init_exceptions.
1169 (objc_build_throw_stmt): Likewise.
1171 2010-12-10 Nicola Pero <nicola.pero@meta-innovation.com>
1173 * objc-act.c (objc_in_class_extension): New.
1174 (objc_start_category_interface): If -fobjc-std=objc1
1175 was specified, produce an error if a class extension is used.
1176 (objc_finish_interface): Reset objc_in_class_extension to false.
1177 (objc_add_property_declaration): Allow a class extension to extend
1178 readonly properties in the main @interface to be readwrite.
1179 (start_class): Added code to deal with class extensions. In that
1180 case, return the existing interface after adding any additional
1181 protocols to it and setting objc_in_class_extension to true.
1182 (continue_class): If in a class extension, do not generate the
1183 instance variable template.
1185 2010-12-08 Nicola Pero <nicola.pero@meta-innovation.com>
1187 * objc-act.c (objc_build_throw_stmt): Check that the argument of
1188 @throw is an object and emit an error if not.
1190 2010-12-08 Nicola Pero <nicola.pero@meta-innovation.com>
1192 * objc-act.c (objc_finish_foreach_loop): Use error_at() instead of
1193 error() when printing an error about the iterating variable or
1194 collection not being an object.
1196 2010-12-06 Nicola Pero <nicola.pero@meta-innovation.com>
1198 * objc-act.c (objc_finish_foreach_loop): Mark the
1199 object_expression as used.
1201 2010-12-06 Nicola Pero <nicola.pero@meta-innovation.com>
1203 * objc-act.c: Include c-family/c-objc.h.
1204 * objc-lang.c: Same change.
1205 * Make-lang.in (objc/objc-act.o): Depend on
1207 (objc/objc-lang.o): Same change.
1208 * config-lang.in (gtfiles): Added c-family/c-objc.h.
1210 2010-12-02 Joseph Myers <joseph@codesourcery.com>
1212 * lang-specs.h: Don't handle -ftraditional.
1214 2010-12-02 Nicola Pero <nicola.pero@meta-innovation.com>
1216 * objc-act.c (objc_build_throw_stmt): Return error_mark_node and
1217 not NULL_TREE when a @throw is used outside of a @catch block.
1219 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
1221 * objc-act.c (objc_build_volatilized_type): Removed.
1222 (objc_non_volatilized_type): Removed.
1223 (objc_type_quals_match): Removed.
1224 (local_variables_to_volatilize): New.
1225 (objc_volatilize_decl): Add the decl to volatilize to
1226 local_variables_to_volatilize, but don't volatilize it yet.
1227 (objc_finish_function): New.
1228 * objc-act.h (local_variables_to_volatilize): New.
1230 2010-11-29 Nicola Pero <nicola.pero@meta-innovation.com>
1231 Mike Stump <mikestump@comcast.net>
1233 Allow 'make check-objc -j2'
1234 * Make-lang.in (lang_checks_parallelized): New.
1235 (check_objc_parallelize): New.
1237 2010-11-29 Nicola Pero <nicola.pero@meta-innovation.com>
1239 * objc-act.c (start_class): When a class is reimplemented,
1240 generate an error and avoid adding the class to the list of
1241 implemented classes again, but do not return error_mark_node.
1243 2010-11-29 Nicola Pero <nicola.pero@meta-innovation.com>
1245 * objc-act.c (objc_maybe_build_component_ref): Removed TODO.
1247 2010-11-29 Nicola Pero <nicola.pero@meta-innovation.com>
1249 * objc-act.c (objc_eh_runtime_type): Avoid ICE if error_mark_node
1250 is passed as argument.
1251 (objc_begin_catch_clause): Added code to deal with an
1252 error_mark_node or NULL_TREE argument. Improved checks for
1253 invalid arguments. Added code to traverse typedefs.
1255 2010-11-29 Nicola Pero <nicola.pero@meta-innovation.com>
1257 * objc-act.c (objc_demangle): Return immediately if the string is
1258 too short. Detect names that do not need demangling, and return
1261 2010-11-27 Nicola Pero <nicola.pero@meta-innovation.com>
1263 Implemented optional properties.
1264 * objc-act.h (PROPERTY_OPTIONAL): New.
1265 * objc-act.c (objc_add_property_declaration): Set
1266 PROPERTY_OPTIONAL if appropriate.
1267 (finish_class): When generating definitions of setter and getter
1268 methods associated with a property for a protocol, mark them as
1269 optional if the property is optional.
1270 (maybe_make_artificial_property_decl): Added 'getter_name'
1271 argument. Set PROPERTY_OPTIONAL.
1272 (objc_maybe_build_component_ref): Updated calls to
1273 maybe_make_artificial_property_decl. Added code for optional,
1274 readonly properties.
1275 (objc_build_class_component_ref): Updated call to
1276 maybe_make_artificial_property_decl.
1278 2010-11-27 Nicola Pero <nicola.pero@meta-innovation.com>
1280 * objc-act.c (objc_build_struct): Fixed loops that save and
1281 restore TYPE_OBJC_INFO to iterate over all variants of the type; a
1282 special case for the current type is then no longer required.
1283 Duplicate TYPE_LANG_SPECIFIC for each type before restoring
1285 (objc_get_protocol_qualified_type): Updated comments.
1287 2010-11-25 Nicola Pero <nicola.pero@meta-innovation.com>
1289 * objc-act.c (objc_build_struct): Install TYPE_OBJC_INTERFACE
1290 after finish_struct, not before, otherwise it may be wiped out by
1291 it. This fixes spurious warnings when a class has more than 15
1294 2010-11-23 Nicola Pero <nicola.pero@meta-innovation.com>
1297 * lang-specs.h: Added objective-c-cpp-output. Mapped .mi to
1298 objective-c-cpp-output instead of objc-cpp-output. Print a
1299 deprecation note every time objc-cpp-output is requested.
1301 2010-11-22 Joseph Myers <joseph@codesourcery.com>
1303 * objc-act.c (write_symbols): Don't declare here.
1305 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
1308 * objc-act.c (objc_generate_write_barrier): Added assert to make sure
1309 this function is only called with the next runtime.
1311 2010-11-20 Jakub Jelinek <jakub@redhat.com>
1314 * objc-act.c (in_late_binary_op): Remove.
1316 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
1318 * objc-act.c (objc_start_class_interface): Do not warn that class
1319 attributes are unimplemented. Pass the attributes to start_class.
1320 (objc_start_category_interface): Updated call to start_class.
1321 (objc_start_class_implementation): Same change.
1322 (objc_start_category_implementation): Same change.
1323 (objc_build_class_component_ref): Warn if the class is deprecated.
1324 (build_private_template): Mark the template as deprecated if the
1325 class is deprecated.
1326 (start_class): Added 'attributes' argument. Emit a warning if
1327 using a deprecated class as superclass of a class, or original
1328 class of a category. Recognize the 'deprecated' attribute when
1329 starting and interface, and mark the interface with
1330 TREE_DEPRECATED if present. Store attributes in the interface.
1332 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
1334 * objc-act.c (lookup_protocol): Added 'warn_if_deprecated'
1335 argument. If it is 'true' and the protocol is deprecated, emit a
1336 deprecation warning.
1337 (objc_start_protocol): Do not warn that protocol attributes are
1338 unimplemented. Pass the attributes to start_protocol.
1339 (start_protocol): Added attributes argument. Recognize the
1340 'deprecated' attribute and mark the protocols with TREE_DEPRECATED
1341 if present. Store attributes in the protocol.
1342 (objc_declare_protocols): Added 'attributes' argument. Recognize
1343 the 'deprecated' attribute and mark the protocols with
1344 TREE_DEPRECATED if present. Store attributes in the protocol.
1345 Updated call to lookup_protocol.
1346 (objc_build_protocol_expr): Updated call to lookup_protocol.
1347 (check_protocol_recursively): Same change.
1348 (lookup_and_install_protocols): Same change.
1349 * objc-act.h: Updated comments.
1351 2010-11-17 Nicola Pero <nicola.pero@meta-innovation.com>
1353 * objc-act.c (lookup_method_in_protocol_list): Search methods in
1354 PROTOCOL_OPTIONAL_CLS_METHODS / PROTOCOL_OPTIONAL_NST_METHODS if
1355 they are not found in PROTOCOL_CLS_METHODS / PROTOCOL_NST_METHODS.
1357 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1359 * objc-act.c (objc_build_setter_call): New.
1360 (objc_maybe_build_modify_expr): Rewritten to build a compound
1362 (objc_build_incr_expr_for_property_ref): Updated calls to
1363 objc_maybe_build_modify_expr to call objc_build_setter_call
1364 instead. Use build_modify_expr () instead of build2 (MODIFY_EXPR,
1365 ...). Use convert () instead of build1 (NOP_EXPR, ...). Use
1366 TREE_NO_WARNING on the final compound statement to silence C++
1369 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1371 * objc-act.c (objc_build_incr_expr_for_property_ref): New.
1372 (objc_create_temporary_var): Moved it towards the beginning of the
1373 file so that objc_build_incr_expr_for_property_ref can use it.
1375 2010-11-14 Nicola Pero <nicola.pero@meta-innovation.com>
1377 * objc-act.c (objc_add_property_declaration): Check that the decl
1378 we received from the parser is a FIELD_DECL; reject array and
1379 bitfield properties. Convert the warning when a property is
1380 readonly and a setter is specified into an error. Convert errors
1381 when a property declaration does not match a property declaration
1382 in a superclass into warnings.
1383 (objc_add_synthesize_declaration_for_property): Use
1384 DECL_BIT_FIELD_TYPE to determine the type of an instance variable
1385 if it is a bitfield. Throw an error if we are asked to synthesize
1386 setters/getters for a bitfield instance variable but the property
1387 is not appropriate - it must be assign and nonatomic. If the
1388 property is readonly, allow the instance variable type to be a
1389 specialization of the property type.
1390 (objc_type_valid_for_messaging): Fixed returning 'false' for a
1391 Class qualified with a protocol when the 'accept_classes' argument
1394 2010-11-13 Nicola Pero <nicola.pero@meta-innovation.com>
1396 * objc-act.c (objc_get_protocol_qualified_type): detect cases
1397 where we are asked to attach a protocol to something which is not
1398 an Objective-C object type, and produce an error.
1400 2010-11-11 Nicola Pero <nicola.pero@meta-innovation.com>
1402 * objc-act.c (objc_add_property_declaration): Check that the type
1403 of a property and of an inherited property match.
1404 (objc_maybe_build_component_ref): Tidied up indentation and
1406 (objc_common_type): Added new type of check (-5).
1407 (objc_add_synthesize_declaration_for_property): Check that the
1408 property to synthesize and the instance variable to use have the
1411 2010-11-10 Joseph Myers <joseph@codesourcery.com>
1413 * objc-act.c (objc_init): Use %' in diagnostic.
1414 (objc_set_method_opt): Remove trailing '.' from diagnostic.
1416 2010-11-10 Joseph Myers <joseph@codesourcery.com>
1418 * objc-act.c (dump_base_name): Don't declare here.
1420 2010-11-08 Nicola Pero <nicola.pero@meta-innovation.com>
1422 * objc-act.c (objc_add_dynamic_declaration_for_property): Do not
1423 search for the @property declation only in the current context,
1424 but also in inherited properties. Do not mark the original
1425 PROPERTY_DECL in the @interface or @protocol with
1427 (check_methods): To check if a method is associated with a
1428 @dynamic property, search for the property in IMPL_PROPERTY_DECL.
1429 (check_accessible_methods): Same change.
1430 * objc-act.h: Updated comment.
1432 2010-11-08 Nicola Pero <nicola.pero@meta-innovation.com>
1434 * objc-act.c (objc_add_synthesize_declaration_for_property):
1435 Iterate over IMPL_PROPERTY_DECL, not CLASS_PROPERTY_DECL, when
1436 checking for an existing @synthesize or @dynamic declaration.
1437 Search for an inherited @property declaration if none is found in
1438 the local interface. If the required instance variable does not
1439 exist, return instead of trying to continue to prevent a compiler
1440 crash later. Check that the instance variable is not already
1441 being used by another @synthesize.
1442 (objc_add_dynamic_declaration_for_property): Iterate over
1443 IMPL_PROPERTY_DECL, not CLASS_PROPERTY_DECL, when checking for an
1444 existing @synthesize or @dynamic declaration.
1445 (objc_synthesize_getter): Search for the getter declaration in
1446 protocols and superclasses as well.
1447 (objc_synthesize_setter): Search for the setter declaration in
1448 protocols and superclasses as well.
1450 2010-11-08 Nicola Pero <nicola.pero@meta-innovation.com>
1452 * objc-act.c (lookup_property): When checking categories, also
1453 check the protocols attached to each.
1454 (objc_add_property_declaration): Determine the
1455 PROPERTY_SETTER_NAME and PROPERTY_GETTER_NAME here. Tidied up
1456 error message. Search for an existing property declaration with
1457 the same name which would be inherited from the class hiearchy,
1458 and produce an error if it has incompatible attributes.
1459 (check_methods): Changed second parameter. If the method is a
1460 getter or setter for a property, do not warn if it is inherited as
1461 opposed to implemented directly in the class.
1462 (check_protocol): Updated calls to check_methods.
1463 (finish_class): Do not determine the PROPERTY_SETTER_NAME and
1464 PROPERTY_GETTER_NAME here; this is now done earlier, in
1465 objc_add_property_declaration.
1466 * objc-act.h (CLASS_NAME, CLASS_SUPER_NAME): Added comments.
1468 2010-11-06 Nicola Pero <nicola.pero@meta-innovation.com>
1470 Fixed using the Objective-C 2.0 dot-syntax with self and super.
1471 * objc-act.c (OBJC_LOOKUP_NO_INSTANCE_METHODS_OF_ROOT_CLASS): New.
1472 (maybe_make_artificial_property_decl): Added 'implementation'
1473 argument. Use OBJC_LOOKUP_NO_INSTANCE_METHODS_OF_ROOT_CLASS when
1474 looking up getters or setters for a class. If an implementation
1475 is specified, search it as well for a getter or setter.
1476 (objc_maybe_build_component_ref): Updated calls to
1477 maybe_make_artificial_property_decl; added code to deal with
1478 'self' and 'super' and with methods declared locally in the
1479 implementation. Store the getter call expression in the
1480 PROPERTY_REF instead of throwing it away.
1481 (objc_build_class_component_ref): Updated calls to
1482 maybe_make_artificial_property_decl, and store the getter call
1483 expression in PROPERTY_REF instead of throwing it away.
1484 (lookup_method_static): Implemented
1485 OBJC_LOOKUP_NO_INSTANCE_METHODS_OF_ROOT_CLASS option.
1486 (objc_gimplify_property_ref): Do not build the getter method call
1487 here; instead use the one stored in the PROPERTY_REF. If it's not
1488 there, produce helpful error messages.
1489 * objc-tree.def (PROPERTY_REF): Increased the number of operands
1490 from 2 to 3. Updated comments.
1491 * objc-act.h (PROPERTY_REF_GETTER_CALL): New.
1493 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1496 * objc-act.c (objc_build_string_object): Amend for renamed hook.
1497 (objc_string_ref_type_p): New.
1498 (objc_check_format_arg): New.
1500 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
1502 Fixed using the Objective-C 2.0 dot-syntax with class names.
1503 * objc-act.c (objc_build_class_component_ref): New.
1505 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1507 * objc-act.c (objc_add_dynamic_declaration): Allow @dynamic in a
1509 (objc_type_valid_for_messaging): Added 'accept_classes' argument;
1510 if set to 'true', return 'true' for Class objects. Do not remove
1511 more than on pointer indirection.
1512 (objc_add_property_declaration): Only warn about 'assign'
1513 semantics for Objective-C objects if warn_property_assign_default;
1514 and do not warn if the property is readonly or if the type is a Class.
1515 (objc_finish_foreach_loop): Updated calls to
1516 objc_type_valid_for_messaging.
1518 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1520 Implemented -fobjc-std=objc1 flag.
1521 * objc-act.c (objc_start_class_interface): If attributes are
1522 specified when flag_objc1_only is set, print an error.
1523 (objc_start_category_interface): Same change.
1524 (objc_start_protocol): Same change.
1525 (objc_add_method_declaration): Same change.
1526 (objc_start_method_definition): Same change.
1527 (objc_build_keyword_decl): Same change.
1528 (objc_set_visibility): If OBJC_IVAR_VIS_PACKAGE is used when
1529 flag_objc1_set is set, print an error.
1530 (objc_set_method_opt): If flag_objc1_only is set, print an error.
1531 (objc_add_property_declaration): Same change.
1532 (objc_add_synthesize_declaration): Same change.
1533 (objc_add_dynamic_declaration): Same change.
1534 (objc_finish_foreach_loop): Same change.
1535 (objc_maybe_build_component_ref): If flag_objc1_only is set,
1538 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1540 * objc-act.c (maybe_make_artificial_property_decl): New.
1541 (objc_maybe_build_component_ref): Call
1542 maybe_make_artificial_property_decl if a property can not be
1543 found. Do not call objc_finish_message_expr if
1544 PROPERTY_HAS_NO_GETTER.
1545 * objc-act.h Updated comments.
1546 (PROPERTY_HAS_NO_GETTER): New.
1547 (PROPERTY_HAS_NO_SETTER): New.
1548 * objc-tree.def: Updated comment.
1550 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1552 Implemented format and noreturn attributes for Objective-C methods.
1553 * objc-act.c (objc_start_method_definition): If method attributes
1554 are specified emit a warning and ignore them.
1555 (build_objc_method_call): Moved deprecation warnings from here ...
1556 (objc_finish_message_expr): to here. Do not emit deprecation
1557 warnings if the receiver is of type 'id'.
1558 (really_start_method): Install 'deprecation' and 'noreturn'
1560 (objc_decl_method_attributes): Carefully filter out the list of
1561 attributes, allowing only "noreturn", "format", "sentinel" and
1562 "deprecated". In the case of "format", adjust the arguments.
1563 Always process the attributes in the same way no matter if
1564 "sentinel" is in the list or not.
1566 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1568 * objc-act.c (objc_maybe_build_component_ref): Warn about using
1569 deprecated properties.
1570 (objc_maybe_printable_name): Support PROPERTY_DECL.
1572 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1574 Implemented Objective-C 2.0 property accessors.
1575 * objc-act.h (enum objc_tree_index): Added OCTI_GET_PROPERTY_DECL,
1576 OCTI_SET_PROPERTY_DECL, OCTI_COPY_STRUCT_DECL,
1577 OCTI_GET_PROPERTY_STRUCT_DECL and OCTI_SET_PROPERTY_STRUCT_DECL.
1578 (objc_getProperty_decl): New.
1579 (objc_setProperty_decl): New.
1580 (objc_copyStruct_decl): New.
1581 (objc_getPropertyStruct_decl): New.
1582 (objc_setPropertyStruct_decl): New.
1583 * objc-act.c (build_objc_property_accessor_helpers): New.
1584 (synth_module_prologue): Call
1585 build_objc_property_accessor_helpers.
1587 (objc_synthesize_getter): Implemented synthesizing getters that
1588 work with properties that are not nonatomic, assign properties.
1589 (objc_synthesize_setter): Implemented synthesizing setters that
1590 work with properties that are not nonatomic, assign properties.
1592 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1594 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1595 * objc-tree.def (PROPERTY_REF): New.
1596 * objc-act.h: Added comments for all the PROPERTY_ macros.
1597 (PROPERTY_NAME): Use DECL_NAME.
1598 (PROPERTY_COPIES): Removed.
1599 (PROPERTY_READONLY): Use DECL_LANG_FLAG_0 for it.
1600 (PROPERTY_NONATOMIC): New.
1601 (objc_property_assign_semantics): Make it a typedef.
1602 (PROPERTY_ASSIGN_SEMANTICS): New.
1603 (PROPERTY_DYNAMIC): New.
1604 (PROPERTY_REF_OBJECT): New.
1605 (PROPERTY_REF_PROPERTY_DECL): New.
1606 * objc-act.c (CALL_EXPR_OBJC_PROPERTY_GETTER): Removed.
1607 (in_objc_property_setter_name_context): Removed.
1608 (objc_add_property_declaration): Removed copies and ivar arguments
1609 and code supporting them. Fixed recovering when readonly and
1610 setter attributes are specified. Removed support for @property in
1611 @implementation context. Updated error message. Double-check
1612 that a property does not have a DECL_INITIAL. Validate the
1613 property assign semantics and emit appropriate errors and
1614 warnings. Check for duplicate property declarations. Set
1615 DECL_SOURCE_LOCATION, TREE_DEPRECATED, PROPERTY_NONATOMIC,
1616 PROPERTY_ASSIGN_SEMANTICS and PROPERTY_DYNAMIC of the new
1617 PROPERTY_DECL. Do not set PROPERTY_COPIES. Set
1618 PROPERTY_IVAR_NAME to NULL_TREE.
1619 (objc_build_getter_call): Renamed to
1620 objc_maybe_build_component_ref. If the property is not found in
1621 the interface, search in the protocol list. Do not generate the
1622 getter call; instead, build and return a PROPERTY_REF.
1623 (objc_is_property_ref): New.
1624 (objc_setter_func_call): Removed.
1625 (get_selector_from_reference): Removed.
1626 (is_property): Removed.
1627 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1628 Updated to work on a PROPERTY_REF and use the PROPERTY_DECL from
1629 the PROPERTY_REF. Generate an error if the property is read-only.
1630 (build_property_reference): Removed.
1631 (objc_finish_message_expr): Removed check to produce "readonly
1632 property can not be set" error when
1633 in_objc_property_setter_name_context. We now generate the error
1634 earlier, in objc_maybe_build_modify_expr, which will only generate
1635 the setter call if the property is readwrite.
1636 (check_methods): Recognize dynamic properties.
1637 (check_methods_accessible): Same change.
1638 (objc_build_property_ivar_name): Removed.
1639 (objc_build_property_setter_name): Dropped bool argument. Always
1640 add the ':' at the end.
1641 (objc_gen_one_property_datum): Removed.
1642 (objc_process_getter_setter): Removed.
1643 (objc_synthesize_getter): Mark 'klass' argument as unused. Use
1644 PROPERTY_GETTER_NAME instead of PROPERTY_NAME. Set the
1645 DECL_SOURCE_LOCATION of the new method to be the same as the one
1646 for the @synthesize. Always use PROPERTY_IVAR_NAME as it is
1647 instead of trying to guess what it should be. Removed use of
1648 CLASS_IVARS. Use the location of @synthesize for c_finish_return
1649 and c_end_compound_statement.
1650 (objc_synthesize_setter): Mark 'klass' argument as unused. Use
1651 PROPERTY_SETTER_NAME instead of trying to guess what it should be.
1652 Set the DECL_SOURCE_LOCATION of the new method to be the same as
1653 the one for the @synthesize. Always use PROPERTY_IVAR_NAME as it
1654 is instead of trying to guess what it should be. Removed use of
1655 CLASS_IVARS. Use the location of @synthesize for c_finish_return
1656 and c_end_compound_statement. Emit an error and keep going,
1657 instead of aborting, if the setter prototype does not have the
1659 (objc_add_synthesize_declaration_for_property): New.
1660 (objc_add_synthesize_declaration): Removed ATTRIBUTE_UNUSED from
1661 all arguments. Improved error message. Filled in the rest of the
1662 function, which used to be a placeholder, with an actual
1664 (objc_add_dynamic_declaration_for_property): New.
1665 (objc_add_dynamic_declaration): Removed ATTRIBUTE_UNUSED from all
1666 arguments. Improved error message. Filled in the rest of the
1667 function, which used to be a placeholder, with an actual
1669 (objc_gen_property_data): Rewritten.
1670 (finish_class): Added explicit switch cases for
1671 CLASS_INTERFACE_TYPE, CATEGORY_INTERFACE_TYPE and
1672 PROTOCOL_INTERFACE_TYPE. Added a default switch case which is
1673 gcc_unreachable. Rewritten the processing of properties, in
1674 particular to not synthesize prototypes for getters and setters if
1675 they already exist and to install the getter and setter names into
1676 PROPERTY_GETTER_NAME and PROPERTY_SETTER_NAME. Do not generate
1677 warnings about setter, getter and ivar property attributes.
1678 (objc_lookup_ivar): Removed support for properties.
1679 (objc_gimplify_property_ref): New.
1680 (objc_gimplify_expr): Use a switch. In case of a PROPERTY_REF, call
1681 objc_gimplify_property_ref.
1683 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1685 * objc-act.c (objc_add_property_declaration): Added arguments to
1686 pass the various property attributes that were parsed with the
1687 property declaration. Process arguments to determine the final
1688 property attributes and produce error messages as appropriate.
1689 Added temporary code to keep the compiler silent about variables
1690 set but not used - for new attributes that are only checked but
1692 (property_readonly): Removed.
1693 (property_setter): Removed.
1694 (property_getter): Removed.
1695 (property_ivar): Removed.
1696 (property_copies): Removed.
1697 (objc_set_property_attr): Removed.
1698 * objc-act.h (enum property_assign_semantics): New.
1700 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1702 * objc-act.c (objc_add_property_variable): Renamed to
1703 objc_add_property_declaration. Added location argument. Updated
1704 warnings and errors to use it. Use error, not fatal_error, if a
1705 property declaration is found outside an interface or
1706 implementation context.
1708 2010-10-24 Nicola Pero <nicola.pero@meta-innovation.com>
1710 * objc-act.c (objc_build_keyword_decl): Updated comments. Do not
1711 emit a warning that method parameter attributes are unimplemented.
1712 Instead, store them into DECL_ATTRIBUTES of the KEYWORD_DECL.
1713 (start_method_def): Copy attributes from each KEYWORD_DECL into
1714 the corresponding PARM_DECL.
1715 (objc_warn_deprecated_use): Removed.
1716 (build_objc_method_call): Call warn_deprecated_use, not
1717 objc_warn_deprecated_use.
1718 (objc_maybe_printable_name): Do not try to get the identifier name
1719 of DECLs that we don't recognize. Immediately return NULL for them.
1720 (objc_printable_name): Removed C++-specific case, which is no
1721 longer used. Updated comments.
1723 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1725 * objc-act.c (OBJC_GEN_METHOD_LABEL): Updated comments.
1726 (objc_demangle): Return NULL if demangling can not be done because
1727 the string to demangle is not an Objective-C mangled method name.
1728 Be smarter in demangling method names so that at least for methods
1729 with no arguments we are able to almost always demangle '_' correctly.
1731 (objc_maybe_printable_name): New.
1732 (objc_printable_name): Call objc_maybe_printable_name. If it
1733 returns NULL, call cxx_printable_name in Objective-C++.
1735 2010-10-21 Iain Sandoe <iains@gcc.gnu.org>
1737 Based on the CFString implementation in FSF apple/trunk branch.
1739 * objc/objc-act.c (objc_build_string_object): Handle CFStrings.
1741 2010-10-21 Nicola Pero <nicola.pero@meta-innovation.com>
1743 * objc-act.c (get_objc_string_decl): Use a switch instead of a
1744 chain of ifs. Use gcc_unreachable instead of abort.
1745 (add_objc_string): Same change.
1746 (generate_protocol_list): Same change - twice.
1747 (synth_id_with_class_suffix): Same change.
1748 (build_keyword_selector): Same change - twice.
1749 (objc_build_message_expr): Same change.
1750 (objc_build_selector_expr): Same change.
1751 (check_methods): Same change - and added missing gcc_unreachable
1753 (check_methods_accessible): Same change - twice, and added missing
1754 gcc_unreachable for default case in one of them.
1755 (start_class): Same change - and added missing gcc_unreachable for
1757 (continue_class): Same change.
1758 (objc_gen_property_data): Same change.
1759 (finish_class): Same change.
1760 (encode_type_qualifiers): Added missing gcc_unreachable.
1761 (encode_type): Small code tidy up to reduce duplicated code. Use
1762 gcc_unreachable instead of abort - twice.
1763 (encode_gnu_bitfield): Use a switch instead of a chain of ifs -
1764 twice. Added missing gcc_unreachable for default case - twice.
1765 (dump_interface): Use a switch instead of a chain of ifs.
1766 (handle_impent): Same change.
1768 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1770 * objc-act.h (objc_inherit_code): Removed.
1771 * objc-act.c (objc_inherit_code): Removed.
1772 (objc_set_method_type): Removed.
1773 (objc_build_method_signature): Added is_class_method argument.
1774 Use it instead of the global objc_inherit_code variable.
1775 (objc_add_method_declaration): Same change.
1776 (objc_start_method_definition): Same change.
1777 (objc_generate_cxx_ctor_or_dtor): Updated call to
1778 objc_start_method_definition. Do not call objc_set_method_type.
1779 (adjust_type_for_id_default): Mark as inline.
1780 (objc_synthesize_getter): Updated call to
1781 objc_start_method_definition. Do not set objc_inherit_code.
1782 (objc_synthesize_setter): Updated call to
1783 objc_start_method_definition. Do not set objc_inherit_code.
1785 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1787 Merge from 'apple/trunk' branch on FSF servers. Obvious updates
1788 to gcc_alloc_xxx calls in hash_init and hash_class_name_enter to
1789 get it to compile in the current trunk.
1791 2006-01-27 Fariborz Jahanian <fjahanian@apple.com>
1794 * objc/objc-act.c (hash_class_name_enter): New.
1795 (hash_class_name_lookup): New.
1796 (objc_declare_alias): Enter alias name into hash table.
1797 (objc_declare_class): Enter class name into hash table.
1798 (objc_is_class_name): Do a hash look up of class name.
1799 (hash_init): Initialize the two new hash tables.
1800 * objc-act.h: Added cls_name_hash_list and als_name_hash_list
1801 declarations, removed class_chain and alias_chain.
1803 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1805 * objc-lang.c (finish_file): Removed.
1806 * objc-act.c (objc_finish_file): Renamed to
1807 objc_write_global_declarations. Do not try to instantiate C++
1808 templates when compiling Objective-C++ as this is now
1809 automatically done before this function is called. Do not check
1810 for syntax-only run or PCH generation as this is done by the
1812 * objc-act.h (objc_finish_file): Removed.
1814 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1816 Implemented parsing @synthesize and @dynamic for
1817 Objective-C/Objective-C++.
1818 * objc-act.c (objc_add_synthesize_declaration): New.
1819 (objc_add_dynamic_declaration): New.
1821 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1823 * objc-act.c (lookup_and_install_protocols): Return NULL if passed
1826 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1828 Merge from 'apple/trunk' branch on FSF servers.
1830 2006-03-10 Fariborz Jahanian <fjahanian@apple.com>
1833 * objc/objc-act.c (objc_is_class_name): template parameter is not
1834 an objective class name.
1835 (objc_generate_cxx_cdtors): Check for the null
1836 objc_implementation_context.
1838 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1840 Merge from 'apple/trunk' branch on FSF servers.
1842 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1845 * objc/objc-act.c (objc_non_volatilized_type): New
1847 2005-10-07 Fariborz Jahanian <fjahanian@apple.com>
1850 * objc-act.c (objc_build_volatilized_type): Build 'volatilzed'
1851 types with proper attribute set and correctly.
1852 (objc_volatilize_decl): Remove unneeded code.
1853 (objc_type_quals_match): Use the new attribute to check on
1855 (hash_init): removed unneeded code.
1857 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1859 Merge from 'apple/trunk' branch on FSF servers.
1861 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1864 * objc-act.c (objc_diagnose_private_ivar): New.
1866 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1868 * objc-act.c: Rename 'objc_public_flag' to objc_ivar_visibility and
1869 make its type 'objc_ivar_visibility_kind'.
1870 (objc_start_class_interface): Update to use visibility enum.
1871 (objc_start_class_implementation): Likewise.
1872 (objc_set_visibility): Update to use visibility enum, warn that
1873 @package is handle as per @public.
1874 (add_instance_variable): Handle OBJC_IVAR_VIS_PACKAGE.
1875 * objc-act.h: Rename 'objc_public_flag' to objc_ivar_visibility and
1876 make its type 'objc_ivar_visibility_kind'.
1878 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1880 merge from FSF apple 'trunk' branch.
1881 2006 Fariborz Jahanian <fjahanian@apple.com>
1883 Radars 4436866, 4505126, 4506903, 4517826
1884 * objc-act.c (CALL_EXPR_OBJC_PROPERTY_GETTER): New.
1885 property_readonly, property_getter, property_setter, property_ivar,
1886 property_copies, in_objc_property_setter_name_context: New vars.
1887 (objc_set_property_attr): New.
1888 (objc_add_property_variable): New.
1889 (lookup_property_in_list): New.
1890 (lookup_property): New.
1891 (objc_build_getter_call): New.
1892 (objc_setter_func_call): New.
1893 (get_selector_from_reference): New.
1894 (objc_build_setter_call): New.
1896 (build_property_reference): New.
1897 (objc_finish_message_expr): Detect readonly property and warn.
1898 (objc_build_property_ivar_name): New.
1899 (objc_build_property_setter_name): New.
1900 (objc_gen_one_property_datum): New.
1901 (objc_process_getter_setter): New.
1902 (objc_synthesize_getter): New.
1903 (objc_synthesize_setter): New.
1904 (objc_gen_property_data): New.
1905 (finish_class): Generate property data.
1906 (comp_proto_with_proto): Separated from ...
1907 (match_proto_with_proto): ... New.
1908 (objc_lookup_ivar): Handle properties.
1909 * objc-tree.def (PROPERTY_DECL): New tree code.
1910 * objc-act.h: CLASS_LANG_SLOT_ELTS, PROTOCOL_LANG_SLOT_ELTS update size.
1911 (METHOD_PROPERTY_CONTEXT): New.
1912 (PROPERTY_NAME): New.
1913 (PROPERTY_GETTER_NAME): New.
1914 (PROPERTY_SETTER_NAME): New.
1915 (PROPERTY_IVAR_NAME): New.
1916 (PROPERTY_READONLY): New.
1917 (PROPERTY_COPIES): New.
1918 (TOTAL_CLASS_RAW_IVARS): New.
1919 (CLASS_PROPERTY_DECL): New.
1920 (IMPL_PROPERTY_DECL): New.
1921 * objc-lang.c (objc_init_ts): Update fields for property_decl.
1923 2010-10-13 Richard Henderson <rth@redhat.com>
1925 * objc-act.c (objc_eh_personality): Update call to
1926 build_personality_function.
1928 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1930 merge from FSF apple 'trunk' branch.
1932 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1933 Radar 3803157 (method attributes)
1934 * objc/objc-act.h (METHOD_TYPE_ATTRIBUTES): New macro.
1935 * objc/objc-act.c (objc_decl_method_attributes): New.
1936 (objc_add_method_declaration): Process method's attribute.
1937 (objc_start_method_definition): Ditto.
1938 (build_objc_method_call): Inject method attribute into
1939 built function type.
1940 (objc_method_decl): New.
1941 (objc_warn_deprecated)use): New.
1943 2010-10-07 Andi Kleen <ak@linux.intel.com>
1945 * Make-lang.in (cc1obj-dummy): Remove.
1946 (cc1obj-checksum): Change to run checksum over object files
1949 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com>
1952 * objc-act.c (objc_finish_foreach_loop): Convert return value of
1953 countByEnumeratingWithState:objects:count: to long unsigned int.
1955 2010-10-07 Iain Sandoe <iains@gcc.gnu.org>
1957 * objc-act.c (build_objc_method_call): Replace calls to
1958 build_function_call () with the VEC equivalent. Construct parameter
1961 2010-10-07 Iain Sandoe <iains@gcc.gnu.org>
1963 * objc-act.c (objc_build_message_expr): Call mark_exp_read () to
1964 signal that the receiver has been used.
1966 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1968 * README: Obsolete file removed.
1970 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1972 Implemented fast enumeration for Objective-C.
1973 * objc-act.c (build_fast_enumeration_state_template): New.
1974 (TAG_ENUMERATION_MUTATION): New.
1975 (TAG_FAST_ENUMERATION_STATE): New.
1976 (synth_module_prologue): Call build_fast_enumeration_state_template() and set up
1977 objc_enumeration_mutation_decl.
1978 (objc_create_temporary_var): Allow providing a name to temporary
1980 (objc_build_exc_ptr): Updated calls to
1981 objc_create_temporary_var().
1982 (next_sjlj_build_try_catch_finally): Same change.
1983 (objc_finish_foreach_loop): New.
1984 * objc-act.h: Added OCTI_FAST_ENUM_STATE_TEMP,
1985 OCTI_ENUM_MUTATION_DECL, objc_fast_enumeration_state_template,
1986 objc_enumeration_mutation_decl.
1988 Merge from 'apple/trunk' branch on FSF servers.
1990 2006-04-12 Fariborz Jahanian <fjahanian@apple.com>
1993 * objc-act.c (objc_type_valid_for_messaging): New routine to check
1994 for valid objc object types.
1995 (objc_finish_foreach_loop): Check for invalid objc objects in
1998 2010-10-05 Nicola Pero <nicola.pero@meta-innovation.com>
2000 Merge from 'apple/trunk' branch on FSF servers.
2002 2005-10-17 Fariborz Jahanian <fjahanian@apple.com>
2005 * objc-act.c (objc_start_method_definition): Check for
2006 error_mark_node for the selector name and make a quick exit.
2008 2010-10-04 Andi Kleen <ak@linux.intel.com>
2010 * Make-lang.in (cc1obj-dummy, cc1obj): Add + to build rule.
2012 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
2014 merge from FSF 'apple/trunk' branch.
2015 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
2018 * objc/objc-act.c (objc_set_method_opt): New function.
2019 (objc_start_protocol, objc_finish_interface): Reset
2020 objc_method_optional_flag flag.
2021 (objc_add_method_declaration): Pass on the new
2022 flag to objc_add_method.
2023 (objc_add_method): Add optional methods to new chain in
2025 * objc/objc-act.h (CLASS_OPTIONAL_CLS_METHODS)
2026 (CLASS_OPTIONAL_NST_METHODS): New macros accessing a protocol
2027 class's optional method chains.
2029 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
2031 Merge from 'apple/trunk' branch on FSF servers.
2033 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
2036 * objc-act.c (objc_declare_class): Pick the right
2039 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2041 Merge from 'apple/trunk' branch on FSF servers.
2043 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
2046 * objc-act.c (objc_check_global_decl): New
2048 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2050 * objc-act.c (objc_is_reserved_word): Removed.
2052 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2054 * objc-act.c (objc_add_method_declaration): Handle and ignore
2056 (objc_start_method_definition): Likewise.
2057 (objc_generate_cxx_ctor_or_dtor): Pass NULL attributes to ctor/dtor.
2058 (objc_build_keyword_decl): Handle and ignore attributes.
2060 2010-09-28 Richard Henderson <rth@redhat.com>
2062 * objc-act.c (objc_eh_personality): Use targetm.except_unwind_info.
2064 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2066 * objc-act.c (objc_start_class_interface): Handle and ignore attributes.
2067 (objc_start_category_interface): Likewise.
2068 (objc_start_protocol): Likewise.
2070 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
2072 Merge from 'apple/trunk' branch on FSF servers.
2074 2005-08-23 Stuart Hastings <stuart@apple.com>
2075 Ziemowit Laski <zlaski@apple.com>
2078 * objc-act.c (objc_decay_parm_type): New function.
2079 (get_arg_type_list): Decay types for all named arguments.
2080 (objc_push_parm): Rebuild the PARM_DECL if its type has
2083 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
2085 * objc-act.c (encode_type): Fixed encoding enums with the next
2088 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
2090 Merge from 'apple/trunk' branch on FSF servers.
2092 2005-07-18 Ziemowit Laski <zlaski@apple.com>
2095 * objc-act.c (objc_compare_types): A new silent comparison
2096 mode (-4), differing from regular comparison (-3) in that
2097 'false' is returned instead of issuing warnings.
2099 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
2101 * objc-act.c (encode_type): Do not add 'r' with the next runtime.
2102 (encode_aggregate_within): Reorganized code to be more readable.
2103 (encode_aggregate_fields): Updated second argument to be 'bool'
2106 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
2111 * objc-act.c: Improved comments for encoding functions.
2112 (encode_aggregate_within): For the GNU runtime, rewritten some
2113 obsfuscated code to clarify the various cases.
2114 (encode_aggregate): Function removed.
2115 (encode_array): Generate an error if asked to encode an incomplete
2116 array as part of generating instance variables. Else, when
2117 encoding an incomplete array inside a structure, encode it as an
2119 (encode_pointer): For the GNU runtime, fixed encoding 'BOOL *' as
2120 '^c' instead of '*'.
2121 (encode_gnu_bitfield): Encode enumerated types exactly in the same
2122 type as integer types instead of using a hardcoded 'i'. If asked
2123 to encode a non-integer type as a bitfield, do not abort
2124 compilation immediately; instead generate an error, then skip the
2126 (encode_type): Use a 'switch' instead of a sequence of 'if's.
2127 Added a 'default' clause that gets executed if the type can not be
2128 matched, and that encodes it as '?' (unknown) and produces a
2129 warning. For the GNU runtime, encode enumerated types exactly in
2130 the same way as integer types instead of using a hardcoded 'i'.
2131 Encode long double as 'D'. Encode 128-bit integers as 'T' or 't'.
2132 Encode C++ reference types as pointers. Call encode_vector to
2134 (encode_vector): New function.
2136 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
2138 Merge from 'apple/trunk' branch on FSF servers. I modified the
2139 changes to be used only when compiling for the NeXT runtime.
2141 2005-10-10 Fariborz Jahanian <fjahanian@apple.com>
2145 * objc-act.c (encode_type): Remove the hack.
2147 2005-07-20 Ziemowit Laski <zlaski@apple.com>
2150 * objc-act.c (pointee_is_readonly): New function.
2151 (encode_pointer, encode_aggregate_within, encode_type):
2152 Attempt to emulate GCC 3.3 when generating type encodings.
2154 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
2156 Merge from 'apple/trunk' branch on FSF servers.
2158 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
2161 * objc-act.c (objc_have_common_types): New function.
2163 2005-06-22 Ziemowit Laski <zlaski@apple.com>
2166 * objc-act.c (objc_common_type): New function.
2168 2010-09-27 Richard Guenther <rguenther@suse.de>
2170 * objc-act.c (objc_get_class_reference): Use CP_TYPE_CONTEXT.
2171 (objc_is_global_reference_p): Use DECL_FILE_SCOPE_P.
2173 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
2175 * objc-act.c: Removed historical, obsolete comment at the top of
2178 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2181 * objc-act.c (objc_start_method_definition): Do not abort upon a
2182 'method definition not in @implementation context' error. Return
2185 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2188 * objc-act.c (objc_get_interface_ivars): New function.
2189 (objc_collecting_ivars): New variable.
2190 (continue_class): Set and reset objc_collecting_ivars for context.
2192 2010-09-15 Nicola Pero <nicola.pero@meta-innovation.com>
2194 Merge from 'apple/trunk' branch on FSF servers.
2196 2006-03-09 Fariborz Jahanian <fjahanian@apple.com>
2199 * objc/objc-act.c (objc_finish_message_expr): Look for message in
2200 @class's protocol list.
2202 2006-02-07 Fariborz Jahanian <fjahanian@apple.com>
2205 * objc/objc-act.c (objc_start_method_definition): Initialize
2206 break/continue labels.
2208 2005-08-22 Ziemowit Laski <zlaski@apple.com>
2211 * objc-act.c (objc_compare_types): Compare function
2212 pointers; indicate success if the right-hand side has
2213 a return type that is covariant, and the argument types
2214 contravariant, with those of the left side.
2216 2005-08-22 Ziemowit Laski <zlaski@apple.com>
2219 * objc-act.c (objc_get_protocol_qualified_type): When looking
2220 at a typedef, retrieve the precise type it describes (rather
2221 than merely looking up a class by name).
2223 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
2225 * objc/objc-act.c (objc_begin_try_stmt): Generate an error if
2226 -fobjc-exceptions was not used. (objc_build_throw_stmt): Same
2229 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
2231 * objc-act.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
2233 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
2236 * objc-act.c: build_objc_string_decl() remove declaration.
2237 (finish_var_decl): Remove forcing of var output and marking
2239 (init_def_list): Use integer_zero_node.
2240 (init_objc_symtab): Use integer_zero_node, make the short
2241 integer type specific on relevant nodes.
2242 (generate_objc_symtab_decl): Remove call to
2243 forward_declare_categories(). Use null_pointer_node where
2245 (build_module_descriptor): Comment and mark this item as
2247 (generate_static_references): Use gcc_unreachable instead of
2249 (diagnose_missing_method): New.
2250 (build_next_selector_translation_table): New.
2251 (build_gnu_selector_translation_table): New.
2252 (add_objc_string): Merge code from build_objc_string_decl...
2253 ... and delete build_objc_string_decl().
2254 (generate_dispatch_table): Make integer types explicit.
2255 (generate_category): Pass implent and arrange for the data
2256 to be extracted within the routine. Do not start new vars,
2257 but finish the ones collcted during parsing.
2258 (generate_shared_structures): Likewise.
2259 (finish_objc): Reorder code so that we finish variables before
2260 referencing them. Save the global data before calling meta-data
2261 creation routines, and pass the current reference to the two
2262 main routines. Only call generate_objc_image_info () for the
2264 (generate_classref_translation_entry): Comment on and make this
2265 item DECL_PRESERVE_P.
2266 (handle_class_ref): Use varpool interfaces, comment on and make
2267 this item DECL_PRESERVE_P.
2268 (handle_impent): Likewise.
2269 (generate_objc_image_info): Only generate when the content is
2270 non-zero. Make integer types explict.
2272 2010-07-03 Nathan Froyd <froydnj@codesourcery.com>
2275 * objc-act.c (build_sized_array_type): New function.
2276 (add_objc_string): Use it.
2277 (generate_protocol_list): Likewise.
2278 (generate_objc_image_info): Likewise.
2279 (add_field_decl): New function.
2280 (objc_build_struct): Use a VEC rather than building a TREE_LIST.
2281 (generate_struct_by_value_array): Use add_field_decl.
2282 (build_objc_symtab_template): Likewise.
2283 (build_module_descriptor): Likewise.
2284 (build_objc_exception_stuff): Likewise.
2285 (build_protocol_template): Likewise.
2286 (build_method_prototype_list_template): Likewise.
2287 (build_method_prototype_template): Likewise.
2288 (build_category_template): Likewise.
2289 (build_selector_template): Likewise.
2290 (build_class_template): Likewise.
2291 (build_super_template): Likewise.
2292 (build_ivar_template): Likewise.
2293 (build_ivar_list_template): Likewise.
2294 (build_method_list_template): Likewise.
2295 (build_method_template): Likewise.
2297 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2299 * objc-act.c: Do not include except.h.
2301 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2303 * objc-act.h (ALLOC_OBJC_TYPE_LANG_SPECIFIC): Use typed GC
2306 * objc-act.c (objc_volatilize_decl): Likewise.
2307 (objc_build_string_object): Likewise.
2308 (hash_init): Likewise.
2309 (hash_enter): Likewise.
2310 (hash_add_attr): Likewise.
2311 (add_class): Likewise.
2312 (start_class): Likewise.
2314 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
2316 * objc-act.c: Update include path for moved files.
2317 * objc-lang.c: Likewise.
2318 * config-lang.in: Update paths in gtfiles for files in c-family/.
2320 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
2322 * objc-act.c (build_next_objc_exception_stuff): Give setjmp a
2323 varargs type instead of a zero-argument type.
2325 2010-05-30 Nathan Froyd <froydnj@codesourcery.com>
2327 * objc-act.c (synth_module_prologue): Use build_function_type_list
2328 instead of build_function_type.
2329 (build_module_initializer_routine): Likewise.
2330 (build_next_objc_exception_stuff): Likewise.
2331 (build_objc_exception_stuff): Likewise.
2333 2010-05-27 Joseph Myers <joseph@codesourcery.com>
2335 * objc-act.c: Include diagnostic-core.h instead of diagnostic.h.
2336 * Make-lang.in (objc/objc-act.o): Update dependencies.
2338 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
2340 * objc-act.h: Do not include gimple.h.
2341 * objc-act.c: Do not include rtl.h, expr.h, libfuncs.h, and tm_p.h.
2342 Include gimple.h. Explain why except.h has to be included.
2343 * objc-lang.c: Do not include diagnostics.h.
2344 * Make-lang.in: Update dependencies.
2346 2010-05-25 Nathan Froyd <froydnj@codesourcery.com>
2348 * objc-act.c (objc_build_constructor): Adjust OBJCPLUS impedance
2349 mismatch code for VECs.
2351 2010-05-25 Nathan Froyd <froydnj@codesourcery.com>
2353 * objc-act.c (objc_build_constructor): Take a VEC instead of a tree.
2354 Use build_constructor instead of build_constructor_from_list.
2355 (objc_build_string_object): Build a VEC argument for
2356 objc_build_constructor.
2357 (init_def_list): Likewise.
2358 (init_objc_symtab): Likewise.
2359 (init_module_descriptor): Likewise.
2360 (generate_static_references): Likewise.
2361 (build_selector_translation_table): Likewise.
2362 (build_descriptor_table_initializer): Likewise.
2363 (generate_descriptor_table): Likewise.
2364 (build_protocol_initializer): Likewise.
2365 (build_ivar_list_initializer): Likewise.
2366 (generate_ivars_list): Likewise.
2367 (build_dispatch_table_initializer): Likewise.
2368 (generate_dispatch_table): Likewise.
2369 (generate_protocol_list): Likewise.
2370 (build_category_initializer): Likewise.
2371 (build_shared_structure_initializer): Likewise.
2372 (generate_objc_image_info): Likewise.
2374 2010-04-30 Iain Sandoe <iains@gcc.gnu.org>
2377 * objc-act.c (encode_aggregate_within): Encode structure tags
2378 with template args for ObjC++.
2380 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
2382 * objc-act.c: Do not include varray.h.
2384 2010-04-07 Jakub Jelinek <jakub@redhat.com>
2387 * objc-act.c (finish_var_decl, objc_begin_catch_clause,
2388 really_start_method, get_super_receiver, handle_class_ref): Set
2389 DECL_READ_P in addition to TREE_USED.
2391 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
2394 * objc-act.c (objc_init): Warn that -fobjc-gc is ignored for
2395 -fgnu-runtime and set flag_objc_gc to zero.
2397 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
2400 * objc-act.c (build_module_initializer_routine): Make the argument
2401 to objc_start_function NULL_TREE when compiling ObjC++.
2403 2010-02-18 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2404 Mike Stump <mikestump@comcast.net>
2407 * objc-act.c (finish_var_decl): Set the generated symbols as "used".
2409 2009-12-17 Shujing Zhao <pearly.zhao@oracle.com>
2411 * objc-act.c (objc_substitute_decl, build_ivar_reference,
2412 get_super_receiver): Update build_indirect_ref calls.
2414 2009-11-28 Jakub Jelinek <jakub@redhat.com>
2416 * objc-act.c (generate_shared_structures): Remove unused sc_spec and
2417 decl_specs variables.
2418 (objc_build_message_expr): Remove unused loc variable.
2419 (objc_finish_message_expr): Remove unused saved_rtype variable.
2420 (encode_field_decl): Remove unused type variable.
2423 * objc-act.c (objc_build_struct): INIT_TYPE_OBJC_INFO for
2424 type variants that don't have it initialized yet.
2426 2009-09-14 Jan Hubicka <jh@suse.cz>
2428 * objc-act.c (objc_add_static_instance): Do not set DECL_COMMON.
2430 2009-09-14 Richard Henderson <rth@redhat.com>
2432 * objc-act.c (objc_init_exceptions): Don't call
2433 default_init_unwind_resume_libfunc.
2434 (objc_build_exc_ptr): Use __builtin_eh_pointer.
2436 2009-09-13 Richard Guenther <rguenther@suse.de>
2437 Rafael Avila de Espindola <espindola@google.com>
2439 * objc-act.c (objc_eh_runtime_type): Export.
2440 (objc_init_exceptions): Remove. Move warning code ...
2441 (objc_begin_try_stmt): ... here
2442 (objc_build_throw_stmt): ... and here.
2443 (objc_eh_personality_decl): New.
2444 (objc_eh_personality): New function.
2445 * objc-act.h (objc_eh_runtime_type): Declare.
2446 (objc_eh_personality): Likewise.
2447 * objc-lang.c (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
2448 (LANG_HOOKS_EH_PERSONALITY): Likewise.
2450 2009-09-03 Diego Novillo <dnovillo@google.com>
2452 * objc-lang.c (lang_hooks): Remove const qualifier.
2454 2009-08-20 Richard Guenther <rguenther@suse.de>
2456 * objc-act.c: Include c-lang.h
2457 * Make-lang.in (objc/objc-act.o): Add c-lang.h dependency.
2459 2009-07-17 Aldy Hernandez <aldyh@redhat.com>
2460 Manuel López-Ibáñez <manu@gcc.gnu.org>
2463 * objc-act.c: Add location argument to all calls to
2464 build_fold_addr_expr.
2466 2009-07-14 Taras Glek <tglek@mozilla.com>
2467 Rafael Espindola <espindola@google.com>
2469 * Make-lang.in (objc.install-plugin): New target for
2470 installing plugin headers.
2472 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2474 * objc-act.c (next_sjlj_build_catch_list): Replace EXPR_LOCUS by
2477 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2479 * objc-act.c: Replace %J by an explicit location. Update all
2482 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2484 * objc-act.c: Replace %H by an explicit location. Update all
2487 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
2490 * objc-act.c (objc_build_message_args): Return if ARGS is the
2493 2009-06-19 Ian Lance Taylor <iant@google.com>
2495 * objc-act.c (objc_in_struct, objc_struct_types): Remove.
2496 (objc_struct_info): New static variable.
2497 (objc_start_struct): Pass &objc_struct_info, not &objc_in_struct
2498 and &objc_struct_types, to start_struct.
2499 (objc_finish_struct): Likewise for finish_struct.
2501 2009-06-15 Ian Lance Taylor <iant@google.com>
2503 * objc-act.c (objc_start_function): Don't set
2504 label_context_stack_se or label_context_stack_vm.
2506 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
2508 * objc-act.c (finish_var_decl): Pass location to finish_decl.
2509 (objc_get_parm_info): Same.
2510 (get_super_receiver): Same.
2511 * objc-act.c (objc_build_component_ref): Pass location to
2513 (build_module_initializer_routine): Pass location to
2514 c_end_compound_stmt.
2515 (objc_generate_static_init_call): Pass location to build_stmt.
2516 (build_typed_selector_reference): New location argument.
2517 (build_selector_reference): Same.
2518 (objc_substitute_decl): Pass location to build_array_ref.
2519 (next_sjlj_build_try_catch_finally): Pass location to build_stmt.
2520 (objc_begin_catch_clause): Same.
2521 (objc_finish_try_stmt): Same.
2522 (objc_finish_catch_clause): Pass location to c_end_compound_stmt.
2523 (objc_build_throw_stmt): New argument.
2524 (generate_shared_structures): Pass location to build_c_cast.
2525 (objc_build_message_expr): Use local location.
2526 (objc_finish_message_expr): Use input_location.
2527 (build_objc_method_call): New argument.
2528 (objc_build_selector_expr): Same.
2529 (get_super_receiver): Pass location to build_c_cast,
2530 build_modify_expr, build_compound_expr.
2531 * objc-act.c: Add location to all calls to start_struct, build_decl,
2534 2009-06-09 Ian Lance Taylor <iant@google.com>
2536 * objc-act.c (objc_gimplify_expr): Change return type to int.
2537 * objc-act.h: Update declaration.
2539 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
2541 * objc-act.c (objc_init): Skip print_struct_values during
2542 -fcompare-debug-second.
2544 2009-06-03 Ian Lance Taylor <iant@google.com>
2546 * Make-lang.in (cc1obj-checksum.o): Depend upon $(CONFIG_H) and
2549 2009-05-27 Ian Lance Taylor <iant@google.com>
2551 * Make-lang.in (cc1obj-dummy$(exeext)): Change $(COMPILER) to
2553 (cc1obj$(exeext)): Likewise.
2555 2009-05-26 Ian Lance Taylor <iant@google.com>
2557 * Make-lang.in (cc1obj-dummy$(exeext)): Use $(COMPILER).
2558 (cc1obj$(exeext)): Likewise.
2560 2009-05-20 Ian Lance Taylor <iant@google.com>
2562 * objc-act.c (objc_generate_cxx_ctor_or_dtor): Pass NULL rather
2563 than NULL_TREE to build_special_member_call.
2565 2009-05-10 Ian Lance Taylor <iant@google.com>
2567 * objc-act.c (objc_building_struct): New static variable.
2568 (objc_in_struct, objc_struct_types): New static variables.
2569 (objc_start_struct, objc_finish_struct): New static functions.
2570 (generate_struct_by_value_array): Call objc_start_struct instead
2571 of start_struct, and call objc_finish_struct instead of
2573 (objc_build_struct, build_objc_symtab_template): Likewise.
2574 (build_module_descriptor): Likewise.
2575 (build_next_objc_exception_stuff): Likewise.
2576 (build_protocol_template): Likewise.
2577 (build_method_prototype_list_template): Likewise.
2578 (build_method_prototype_template): Likewise.
2579 (build_category_template, build_selector_template): Likewise.
2580 (build_class_template, build_super_template): Likewise.
2581 (build_ivar_template, build_ivar_list_template): Likewise.
2582 (build_method_list_template): Likewise.
2583 (build_method_template): Likewise.
2585 2009-05-10 Joseph Myers <joseph@codesourcery.com>
2587 * objc-act.c: Include intl.h.
2588 (objc_lookup_protocol): Use complete sentences for diagnostics
2589 with %qE for identifiers and translating results of
2590 gen_type_name_0 to locale character set.
2591 (objc_check_decl, check_protocol_recursively,
2592 lookup_and_install_protocols, objc_build_string_object,
2593 objc_get_class_reference, objc_declare_alias, objc_declare_class,
2594 objc_get_class_ivars, error_with_ivar, check_duplicates,
2595 objc_finish_message_expr, objc_build_protocol_expr,
2596 objc_build_selector_expr, build_ivar_reference, objc_add_method,
2597 add_category, add_instance_variable, objc_is_public,
2598 check_methods, check_methods_accessible, check_protocol,
2599 start_class, finish_class, start_protocol, really_start_method,
2600 get_super_receiver, objc_lookup_ivar): Use %E and %qE for
2601 identifiers in diagnostics. Translate generated text to locale
2602 character set as needed.
2603 (check_protocol, check_protocols): Change name parameter to type
2605 (lang_report_error_function): Remove.
2607 2009-04-27 Ian Lance Taylor <iant@google.com>
2609 * objc-act.c (objc_gimplify_expr): Add casts to enum type.
2611 2009-04-24 Ian Lance Taylor <iant@google.com>
2613 * objc-act.c (get_super_receiver): Update calls to
2614 build_modify_expr to pass new argument.
2616 2009-04-21 Taras Glek <tglek@mozilla.com>
2618 * objc-act.c: Update GTY annotations to new syntax
2619 * objc-act.h: Likewise
2621 2009-04-21 Joseph Myers <joseph@codesourcery.com>
2623 * ChangeLog: Add copyright and license notices.
2625 2009-04-20 Ian Lance Taylor <iant@google.com>
2627 * objc-act.c (objc_rewrite_function_call): Change parameter from
2628 params to first_param. Change all callers.
2630 2009-03-30 Dominique d'Humieres <dominiq@lps.ens.fr>
2633 * objc-act.c (in_late_binary_op): Define for Objective-C++.
2635 2009-03-29 Joseph Myers <joseph@codesourcery.com>
2643 * objc-act.c (objc_finish_try_stmt): Set in_late_binary_op.
2645 2008-12-05 Sebastian Pop <sebastian.pop@amd.com>
2648 * Make-lang.in (cc1obj-dummy, cc1obj): Add BACKENDLIBS,
2651 2008-10-06 Aldy Hernandez <aldyh@redhat.com>
2653 * objc-act.c (objc_build_string_object): Pass location to
2655 (init_def_list): Same.
2656 (init_objc_symtab): Same.
2657 (init_module_descriptor): Same.
2658 (build_module_initializer_routine): Same.
2659 (generate_static_references): Same.
2660 (build_typed_selector_reference): Same.
2661 (add_objc_string): Same.
2662 (objc_substitute_decl): Same.
2663 (objc_build_ivar_assignment): Same.
2664 (objc_build_global_assignment): Same.
2665 (objc_build_strong_cast_assignment): Same.
2666 (generate_protocols): Same.
2667 (build_protocol_initializer): Same.
2668 (build_dispatch_table_initializer): Same.
2669 (generate_protocol_list): Same.
2670 (build_category_initializer): Same.
2671 (build_shared_structure_initializer): Same.
2672 (generate_shared_structures): Same.
2673 (objc_build_protocol_expr): Same.
2674 (build_ivar_reference): Same.
2675 (get_super_receiver): Same.
2677 2008-09-23 Aldy Hernandez <aldyh@redhat.com>
2679 * objc-act.c (next_sjlj_build_enter_and_setjmp): Call
2680 c_common_truthvalue_conversion with location.
2681 (next_sjlj_build_catch_list): Same.
2682 (next_sjlj_build_try_catch_finally): Same.
2684 2008-09-17 Andrew Pinski <andrew_pinski@playstation.sony.com>
2687 * objc-lang.c (LANG_HOOKS_GET_CALLEE_FNDECL): Don't define.
2688 * objc-act.h (objc_get_callee_fndecl): Remove prototype.
2689 * objc-act.c (objc_get_callee_fndecl): Kill.
2691 2008-09-17 Jan Hubicka <jh@suse.cz>
2694 * objc/objc-act.c (objc_finish_method_definition): Do not set
2697 2008-09-01 Aldy Hernandez <aldyh@redhat.com>
2699 * objc-act.c (build_typed_selector_reference): Pass input_location to
2700 build_unary_op calls.
2701 (build_selector_reference): Same, but to build_array_ref.
2702 (objc_substitute_decl): Same.
2703 (build_ivar_reference): Same, but to build_indirect_ref.
2704 (get_super_receiver): Same.
2706 2008-07-28 Richard Guenther <rguenther@suse.de>
2708 Merge from gimple-tuples-branch.
2710 2008-07-18 Aldy Hernandez <aldyh@redhat.com>
2712 * Make-lang.in (objc-lang.o): Depend on GIMPLE_H.
2713 (objc-act.o): Rename TREE_GIMPLE_H to GIMPLE_H.
2714 * objc-act.h: Include gimple.h instead of tree-gimple.h.
2715 * ipa-reference.c: Same.
2717 2007-11-10 Aldy Hernandez <aldyh@redhat.com>
2719 * objc-act.c (objc_gimplify_expr): Change pre and post to sequences.
2720 * objc-act.h (objc_gimplify_expr): Change prototype accordingly.
2722 2008-07-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2724 * objc-act.c: Fix comment typos.
2726 2008-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2728 * objc-act.c (objc_start_class_interface,
2729 objc_start_category_interface, objc_start_class_implementation,
2730 objc_start_category_implementation, objc_build_struct,
2731 generate_static_references, build_private_template,
2732 lookup_category, objc_add_method, add_category,
2733 add_instance_variable, objc_is_public, conforms_to_protocol,
2734 start_class, continue_class, finish_class): Avoid C++ keywords.
2736 2008-07-14 Jason Merrill <jason@redhat.com>
2739 * objc-act.c (objc_build_constructor): Update C++ tweak.
2741 2007-07-14 Rafael Ávila de Espíndola <espindola@google.com>
2743 * objc-act.c (synth_module_prologue): Use TREE_NO_WARNING instead
2744 of DECL_IN_SYSTEM_HEADER.
2746 2008-07-11 Ian Lance Taylor <iant@google.com>
2748 * objc-act.c (objc_is_reserved_word): Always check for RID_CLASS,
2749 etc., not just when OBJCPLUS is defined.
2751 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2753 * objc-act.c (setup_string_decl, objc_build_string_object,
2754 hash_interface, eq_interface, objc_begin_try_stmt,
2755 encode_method_prototype, build_ivar_list_initializer,
2756 objc_build_encode_expr): Fix for -Wc++-compat.
2758 2008-05-12 Tomas Bily <tbily@suse.cz>
2760 * objc-act.c (objc_generate_write_barrier, objc_finish_message_expr):
2763 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
2765 * objc-act.c (objc_build_string_object): Don't set TREE_INVARIANT.
2767 2008-04-03 Tom Tromey <tromey@redhat.com>
2769 * Make-lang.in (objc_OBJS): New variable.
2771 2008-03-27 Tom Tromey <tromey@redhat.com>
2773 * Make-lang.in: Revert automatic dependency patch.
2775 2008-03-27 Douglas Gregor <doug.gregor@gmail.com>
2778 * objc-act.c (objc_build_component_ref): Fix call to
2779 finish_class_member_access_expr.
2780 (objc_generate_cxx_ctor_or_dtor): Fix call to
2781 build_special_member_call.
2783 2008-03-25 Andrew Pinski <pinskia@gmail.com>
2786 * objc-act.c (encode_type): Handle when type is error_mark_node.
2787 (objc_push_parm): Handle when the type of parm is error_mark_node.
2789 2008-03-25 Tom Tromey <tromey@redhat.com>
2791 * Make-lang.in (objc_OBJS): New variable.
2792 (cc1obj-checksum.o, objc/objc-lang.o, objc/objc-act.o): Remove.
2794 2008-03-21 Andreas Tobler <a.tobler@schweiz.org>
2797 * objc-act.c (objc_generate_cxx_ctor_or_dtor): Rename IS_AGGR_TYPE to
2799 (objc_generate_cxx_cdtors): Likewise.
2800 (add_instance_variable): Likewise.
2802 2008-02-26 Tom Tromey <tromey@redhat.com>
2804 * objc-act.c (objc_init): Remove old location code.
2806 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2809 * Make-lang.in (cc1obj-dummy, cc1obj): Add $(GMPLIBS).
2811 2007-07-30 Nick Clifton <nickc@redhat.com>
2813 * Make-lang.in: Change copyright header to refer to version 3 of
2814 the GNU General Public License and to point readers at the
2815 COPYING3 file and the FSF's license web page.
2816 * lang-specs.h, objc-act.c, objc-tree.def, objc-act.h,
2817 config-lang.in, objc-lang.c: Likewise.
2819 2007-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2821 * objc-act.c (objc_get_callee_fndecl): Constify.
2822 * objc-act.h (objc_get_callee_fndecl): Likewise.
2824 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2826 * objc-act.c (volatilized_hash, volatilized_eq, string_hash,
2827 string_eq): Constify.
2829 2007-04-04 Stuart Hastings <stuart@apple.com>
2832 * objc/objc-act.c (next_sjlj_build_catch_list): Delete volatile from rethrow decl.
2834 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
2836 * Make-lang.in: Add dummy lang.install-pdf target.
2838 2007-02-18 Kazu Hirata <kazu@codesourcery.com>
2840 * objc/objc-act.c: Fix comment typos.
2842 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
2843 Brooks Moses <brooks.moses@codesourcery.com>
2844 Lee Millward <lee.millward@codesourcery.com>
2846 * objc-act.c (receiver_is_class_object): Use new CALL_EXPR accessors.
2847 (objc_get_callee_fndecl): Likewise.
2849 2007-01-23 Andrew Pinski <pinskia@gmail.com>
2852 * objc-act.c (objc_add_static_instance): Mark the decl as
2855 2007-01-20 Andrew Pinski <pinskia@gmail.com>
2858 * objc-act.c (hash_interface): Use IDENTIFIER_HASH_VALUE instead
2859 of htab_hash_pointer.
2860 (lookup_interface): Likewise.
2861 (add_class): Likewise.
2863 2007-01-02 Douglas Gregor <doug.gregor@gmail.com>
2865 * objc-act.c (objc_build_volatilized_type): Keep track of
2867 (objc_get_protocol_qualified_type): Ditto.
2869 2006-11-02 Andreas Tobler <a.tobler@schweiz.org>
2871 * objc-act.c (objc_finish_file): Remove ifdef clause for OBJCPLUS and
2872 content where we called cp_finish_file.
2874 2006-10-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
2876 * objc-act.c (synth_module_prologue): Replace calls to
2877 builtin_function with add_builtin_function.
2878 (build_next_objc_exception_stuff): Replace calls to
2879 builtin_function with add_builtin_function.
2880 (build_objc_exception_stuff): Replace calls to
2881 builtin_function with add_builtin_function.
2883 2006-10-10 Brooks Moses <bmoses@stanford.edu>
2885 * Make-lang.in: Added empty "objc.pdf" target.
2887 2006-09-26 Andrew Pinski <pinskia@physics.uc.edu>
2890 * objc-act.c (objc_push_parm): If we change the type of the
2891 decl, relayout the decl.
2893 2006-09-19 Eric Christopher <echristo@apple.com>
2895 * objc-act.c (JBLEN): Rename to OBJC_JBLEN,
2896 default to something innocuous.
2897 (build_next_objc_exception_stuff): Rename JBLEN.
2899 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2901 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
2903 2006-07-19 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2906 * objc-act.c (lookup_and_install_protocols): Skip error_mark_nodes.
2908 2006-06-06 Mike Stump <mrs@apple.com>
2910 * objc-act.c: Remove prototype for objc_build_volatilized_type.
2912 2006-05-24 Mike Stump <mrs@apple.com>
2914 * objc-act.c (build_next_objc_exception_stuff): Use JBLEN instead of _JBLEN.
2916 2006-05-05 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2919 * objc-act.c (objc_is_public): Return early on invalid type.
2921 2006-03-02 Fariborz Jahanian <fjahanian@apple.com>
2923 * objc-act.c (init_module_descriptor): Remove file name from
2925 (gen_type_name_0): Fix ICE when issuing warning.
2927 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
2929 * Make-lang.in (OBJC): Remove
2930 (OBJECTIVE-C): Remove
2931 (objective-c): Remove
2932 (.PHONY): Remove objective-c and ObjC
2934 2005-12-14 Andrew Pinski <pinskia@physics.uc.edu>
2937 * objc/objc-act.c (encode_type): Encode Complex types as 'j' followed
2940 2005-12-12 Andrew Pinski <pinskia@physics.uc.edu>
2943 * objc-act.c (encode_array): Handle arrays to zero sized types.
2945 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
2947 * Make-lang.in (objc.all.build, objc.install-normal): Remove.
2949 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
2951 * Make-lang.in: Remove all dependencies on s-gtype.
2953 2005-12-02 Richard Guenther <rguenther@suse.de>
2955 * objc-act.c (objc_build_exc_ptr, next_sjlj_build_enter_and_setjmp
2956 next_sjlj_build_exc_extract, next_sjlj_build_catch_list,
2957 next_sjlj_build_try_catch_finally, objc_begin_catch_clause,
2958 build_objc_method_call, objc_rewrite_function_call): Use buildN
2961 2005-10-20 Geoffrey Keating <geoffk@apple.com>
2963 * objc-act.c (synth_module_prologue): Clear TREE_NOTHROW
2964 on objc_msgSend and like builtin functions.
2966 2005-10-17 Andreas Krebbel <krebbel1@de.ibm.com>
2968 * objc-act.c (objc_build_component_ref): Adjust call to
2969 finish_class_member_access_expr due to a changed prototype.
2971 2005-08-31 Andrew Pinski <pinskia@physics.uc.edu>
2974 * objc-act.c (generate_strings): Remove and move code to
2976 (add_objc_string): here when creating a new string decl.
2977 (finish_objc): Don't call generate_strings.
2979 2005-08-31 Andrew Pinski <pinskia@physics.uc.edu>
2982 * objc-act.c (next_sjlj_build_try_catch_finally): Set
2983 TREE_SIDE_EFFECTS on catch_seq after building it.
2985 2005-08-09 Andrew Pinski <pinskia@physics.uc.edu>
2987 part of PR objc/21992
2988 * objc-act.c (handle_class_ref): The ref decl is always referenced.
2990 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
2992 Make CONSTRUCTOR use VEC to store initializers.
2993 * objc-act.c (objc_build_constructor): Use build_constructor_from_list
2994 instead of build_constructor.
2996 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
2998 * objc-act.c (objc_push_parm): DECL_ARG_TYPE_AS_WRITTEN is
3000 * objc-act.h (KEYWORD_ARG_NAME): Use decl_non_common.
3001 (KEYWORD_KEY_NAME): Use decl_minimal.
3002 (METHOD_SEL_NAME): Ditto..
3003 (METHOD_SEL_ARGS): Use decl_non_common.
3004 (METHOD_ADD_ARGS): Ditto.
3005 (METHOD_ADD_ARGS_ELLIPSIS_P): Use decl_common.
3006 (METHOD_DEFINITION): Ditto.
3007 (METHOD_ENCODING): Ditto.
3008 * objc-lang.c: (objc_init_ts): New function.
3010 2005-07-07 Ziemowit Laski <zlaski@apple.com>
3012 * objc-act.c (objc_build_struct): Pass in an actual @interface
3013 instead of its name, and annotate the struct created (and all
3014 existing variants thereof) with the @interface.
3015 (objc_compare_types): Treat forward-declared ObjC classes
3016 as stand-alone (root) classes for purposes of type comparisons.
3017 (build_private_template): Move some code to objc_build_struct().
3019 2005-07-07 Ziemowit Laski <zlaski@apple.com>
3022 * objc-act.c (objc_build_string_object): For GNU-style constants,
3023 use the @interface type rather than the built-in type.
3025 2005-07-03 Kazu Hirata <kazu@codesourcery.com>
3027 * Make-lang.in (cc1plus-checksum.c): Use
3028 build/genchecksum$(build_exeext), not build/genchecksum$(exeext).
3030 2005-07-02 Joseph S. Myers <joseph@codesourcery.com>
3032 * objc-act.c: Use %q to quote in diagnostics.
3034 2005-07-02 Joseph S. Myers <joseph@codesourcery.com>
3036 * objc-act.c: Use '+' flag instead of %J. Use 'q' flag for
3039 2005-06-30 Ziemowit Laski <zlaski@apple.com>
3041 * objc-act.c (objc_build_volatilized_type): New function.
3042 (objc_volatilize_decl): Call objc_build_volatilized_type()
3043 instead of build_qualified_type().
3045 2005-06-29 Ziemowit Laski <zlaski@apple.com>
3047 * objc-act.c (objc_build_internal_const_str_type): New function.
3048 (check_string_class_template): Use objc_get_class_ivars() instead
3049 of TYPE_FIELDS() to retrieve ivar list.
3050 (AT_LEAST_AS_LARGE_AS): Check the size of each field's type rather
3051 than the field itself.
3052 (objc_build_string_object): Synthesize a "__builtin_ObjCString"
3053 type and use it to lay out compile-time string objects.
3054 * objc-act.h (OCTI_INTERNAL_CNST_STR_TYPE, internal_const_str_type):
3057 2005-06-28 Paul Brook <paul@codesourcery.com>
3059 * objc-act.c (objc_init_exceptions): Call
3060 default_init_unwind_resume_libfunc.
3062 2005-06-27 Ziemowit Laski <zlaski@apple.com>
3064 * objc-act.c (objc_build_struct): Save the TYPE_OBJC_INFO
3065 portion of TYPE_LANG_SPECIFIC info for all variants of
3066 a class before calling finish_struct(), and restore
3067 same TYPE_OBJC_INFO afterwards.
3069 2005-06-25 Kelley Cook <kcook@gcc.gnu.org>
3071 * all files: Update FSF address in copyright headers.
3073 2005-06-15 Joseph S. Myers <joseph@codesourcery.com>
3075 * objc-act.c (my_build_string_pointer): New.
3076 (objc_get_class_reference, get_super_receiver): Call
3077 my_build_string_pointer instead of my_build_string when building
3080 2005-05-25 Mike Stump <mrs@mrs.kithrup.com>
3082 * objc-act.c (volatilized_hash): Avoid warnings on 64-bit
3085 2005-05-24 Ziemowit Laski <zlaski@apple.com>
3087 * objc-act.c (objc_build_struct): New function.
3088 (objc_derived_from_p): Likewise.
3089 (objc_build_component_ref): Likewise.
3090 (objc_copy_binfo): Likewise.
3091 (objc_xref_basetypes): Likewise.
3092 (objc_lookup_protocol): Likewise.
3093 (objc_compare_protocols): Likewise.
3094 (objc_volatilize_decl): Likewise.
3095 (encode_aggregate_fields): Likewise.
3096 (volatilized_hash): Likewise.
3097 (volatilized_eq): Likewise.
3098 (objc_compare_types): Likewise.
3099 (objc_type_quals_match): Likewise.
3100 (DERIVED_FROM_P): New ObjC macro, corresponding to C++ macro
3102 (get_class_ivars): Add second parameter indicating if entire
3103 hierarchy is desired.
3104 (struct volatilized_type): New type.
3105 (volatilized_htab): New hash table.
3106 (objc_types_compatible_p, objc_comptypes): Remove functions.
3107 (synth_module_prologue): Do not initialize 'unused_list'.
3108 (objc_get_class_reference): Fix ObjC++ impedance mismatches.
3109 (objc_declare_alias): Implement as a typedef.
3110 (objc_substitute_decl, objc_gimplify_expr): Reformat.
3111 (objc_get_class_ivars): Adjust call to get_class_ivars().
3112 (next_sjlj_build_enter_and_setjmp, synth_forward_declarations,
3113 build_ivar_reference, get_super_receiver): Call
3114 objc_build_component_ref() instead of build_component_ref().
3115 (objc_begin_catch_clause): Use DERIVED_FROM_P() instead of
3117 (build_private_template): Call objc_build_struct() instead of
3118 start_struct() and finish_struct().
3119 (hash_init): Initialize volatilized_htab.
3120 (objc_is_public): Adjust calls to objc_get_ivars(); adjust
3121 ObjC++ impedance mismatches.
3122 (encode_aggregate_within): Streamline by calling
3123 encode_aggregate_fields().
3124 * objc-act.h (objc_types_compatible_p): Remove prototype.
3125 (OCTI_UNUSED_LIST, unused_list): Remove slot.
3126 * objc-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove.
3128 2005-05-18 Geoffrey Keating <geoffk@apple.com>
3130 * Make-lang.in (cc1obj-dummy): New.
3131 (cc1obj-checksum.c): New.
3132 (cc1obj-checksum.o): New.
3133 (cc1obj): Add cc1obj-checksum.o.
3135 2005-05-18 Mike Stump <mrs@apple.com>
3138 * objc-act.c (struct interface_tuple): Mark it up for GC.
3139 (interface_htab): It is really a struct interface_tuple.
3141 2005-05-17 Ziemowit Laski <zlaski@apple.com>
3142 Mike Stump <mrs@apple.com>
3144 Yet more Objective-C++...
3146 * objc-act.c (objc_finish_try_stmt): Add return value.
3147 (objc_build_synchronized): Likewise.
3149 * objc-act.c (objc_is_gcable_type): Add.
3150 (objc_substitute_decl): Add.
3151 (objc_build_ivar_assignment): Add.
3152 (objc_build_global_assignment): Add.
3153 (objc_build_strong_cast_assignment): Add.
3154 (objc_is_ivar_reference_p): Add.
3155 (objc_is_global_reference_p): Add.
3156 (objc_generate_write_barrier): Add.
3157 (objc_rewrite_function_call): Add.
3158 (objc_gimplify_expr): Add Objective-C++ support.
3159 * objc-act.h (ALLOC_OBJC_TYPE_LANG_SPECIFIC): Likewise.
3160 (SIZEOF_OBJC_TYPE_LANG_SPECIFIC): Add.
3161 (INIT_TYPE_OBJC_INFO): Add Objective-C++ support.
3162 (DUP_TYPE_OBJC_INFO): Likewise.
3163 (struct imp_entry): Add field has_cxx_cdtors.
3164 (struct imp_entry *imp_list): Add OCTI_UMSG_FAST_DECL,
3165 OCTI_METH_LIST_TEMPL, OCTI_METH_PROTO_LIST_TEMPL,
3166 OCTI_IVAR_LIST_TEMPL, OCTI_ASSIGN_IVAR_DECL,
3167 OCTI_ASSIGN_IVAR_FAST_DECL, OCTI_ASSIGN_GLOBAL_DECL,
3168 OCTI_ASSIGN_STRONGCAST_DECL.
3169 (umsg_fast_decl): Add.
3170 (objc_assign_ivar_decl): Add.
3171 (objc_assign_ivar_fast_decl): Add.
3172 (objc_assign_global_decl): Add.
3173 (objc_assign_strong_cast_decl): Add.
3174 (objc_method_list_ptr): Add.
3175 (objc_method_proto_list_ptr): Add.
3176 (objc_ivar_list_ptr): Add.
3178 * objc-act.c (should_call_super_dealloc): Add.
3179 (OBJC_VERSION): Bump to 6.
3180 (objc_is_gcable_type): Add.
3181 (objc_substitute_decl): Add.
3182 (objc_build_ivar_assignment): Add.
3183 (objc_build_global_assignment): Add.
3184 (objc_build_strong_cast_assignment): Add.
3185 (objc_is_gcable_p): Add.
3186 (objc_is_ivar_reference_p): Add.
3187 (objc_is_global_reference_p): Add.
3188 (generate_shared_structures): Add flags parameter.
3189 (objc_generate_cxx_ctor_or_dtor): Add.
3190 (objc_generate_cxx_cdtors): Add.
3191 (add_class): Add name parameter.
3192 (objc_types_share_size_and_alignment): Add.
3193 (comp_proto_with_proto): Add strict parameter.
3194 (CLS_HAS_CXX_STRUCTORS): Add.
3195 (TAG_ASSIGNIVAR): Add.
3196 (TAG_ASSIGNGLOBAL): Add.
3197 (TAG_ASSIGNSTRONGCAST): Add.
3198 (TAG_MSGSEND_FAST): Add.
3199 (TAG_ASSIGNIVAR_FAST): Add.
3200 (TAG_CXX_CONSTRUCT): Add.
3201 (TAG_CXX_DESTRUCT): Add.
3202 (OBJC_LOOKUP_CLASS): Add.
3203 (OBJC_LOOKUP_NO_SUPER): Add.
3204 (objc_finish_file): Add pch support.
3205 (objc_finish_implementation): Add Objective-C++ support.
3206 (synth_module_prologue): Likewise.
3207 (synth_module_prologue): Add fast dispatching.
3208 (objc_get_class_reference): Add Objective-C++ support.
3209 (objc_generate_write_barrier): Likewise.
3210 (next_sjlj_build_enter_and_setjmp): Likewise.
3211 (objc_begin_try_stmt): Likewise.
3212 (build_next_objc_exception_stuff): Add fast ivar support.
3213 (build_private_template): Mark the record as used so debug
3214 information is generated.
3215 (build_protocol_template): Add Objective-C++ support.
3216 (objc_method_parm_type) Likewise.
3217 (objc_generate_cxx_ctor_or_dtor): Likewise.
3218 (objc_generate_cxx_cdtors): Likewise.
3219 (build_protocol_initializer): Likewise.
3220 (build_category_template): Likewise.
3221 (build_class_template): Likewise.
3222 (build_method_list_template): Likewise.
3223 (build_category_initializer): Likewise.
3224 (build_shared_structure_initializer): Likewise.
3225 (objc_finish_message_expr): Likewise.
3226 (build_objc_method_call): Add fast dispatch support.
3227 (lookup_method_static): Add support to end search at superclasses.
3228 (add_method_to_hash_list): Add strict parameter to
3229 comp_proto_with_proto.
3230 (objc_add_method): Likewise.
3231 (objc_add_method): Also set the interface_value.
3232 (add_instance_variable): Add Objective-C++ support.
3233 (objc_is_public): Likewise.
3234 (start_class): Likewise.
3235 (continue_class): Likewise.
3236 (encode_aggregate_within): Likewise.
3237 (start_method_def): Likewise.
3238 (objc_start_function): Clear current_function_returns_value
3239 and current_function_returns_null.
3240 (really_start_method): Add Objective-C++ support.
3241 (objc_finish_method_definition): Add warning for missing
3243 (finish_objc): Add Objective-C++ support.
3244 (generate_objc_image_info): Likewise.
3245 (objc_lookup_ivar): Likewise.
3246 * objc-act.h (TYPE_HAS_OBJC_INFO): Likewise.
3247 (INIT_TYPE_OBJC_INFO): Likewise.
3248 (DUP_TYPE_OBJC_INFO): Likewise.
3250 2005-04-23 DJ Delorie <dj@redhat.com>
3252 * objc-act.c: Adjust warning() callers.
3254 2005-04-21 Roger Sayle <roger@eyesopen.com>
3256 * objc-act.h (METHOD_ADD_ARGS_ELLIPSIS_P): New macro for accessing
3257 this field of an objc method decl.
3258 * objc-act.c (build_method_decl): Take an additional "ellipsis"
3259 argument, and set METHOD_ADD_ARGS_ELLIPSIS_P as appropriate.
3260 (objc_build_method_signature): Accept additional "ellipsis"
3261 argument and pass it to build_method_decl.
3262 (get_arg_type_list, start_method_def, gen_method_decl): Use
3263 the new METHOD_ADD_ARGS_ELLIPSIS_P instead of examining the
3264 TREE_OVERFLOW field of a TREE_LIST node.
3266 2005-04-20 Joseph S. Myers <joseph@codesourcery.com>
3269 * objc-act.c (objc_start_function): Create stack level for context
3270 of identifiers with variably modified type.
3272 2005-03-30 Joseph S. Myers <joseph@codesourcery.com>
3276 * objc-act.c (objc_start_function): Push context on
3277 label_context_stack.
3279 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
3281 * objc-act.c (next_sjlj_build_enter_and_setjmp,
3282 next_sjlj_build_catch_list, next_sjlj_build_try_catch_finally):
3283 Call c_common_truthvalue_conversion.
3285 2005-02-25 Joseph S. Myers <joseph@codesourcery.com>
3287 * Make-lang.in (objc/objc-parse.o-warn, objc/objc-parse.o,
3288 objc/objc-parse.c, objc/objc-parse.y): Remove
3289 (OBJC_OBJS, objc.srcextra, objc.tags, objc.mostlyclean,
3290 objc.distclean, objc.maintainer-clean): Update for new parser.
3291 * config-lang.in (gtfiles): Update for new parser.
3293 2005-01-29 Kazu Hirata <kazu@cs.umass.edu>
3295 * lang-specs.h, objc-act.c, objc-act.h, objc-lang.c: Update
3298 2005-01-27 Matt Austern <austern@apple.com>
3300 * objc-act.c (objc_finish_file): In ObjC++ mode, set at_eof before
3301 calling instantiate_pending_templates.
3303 2005-01-26 Alexander Malmberg <alexander@malmberg.org>
3306 * objc-act.c (build_selector_translation_table): Use
3307 input_location in the diagnostic for the GNU runtime or if
3308 TREE_PURPOSE (chain) is NULL.
3310 2005-01-25 Alexander Malmberg <alexander@malmberg.org>
3313 * objc-act.c (objc_types_compatible_p): New function.
3314 * objc-act.h (objc_types_compatible_p): Declare.
3315 * objc-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Define.
3317 2005-01-16 Ziemowit Laski <zlaski@apple.com>
3319 * objc-act.c (objc_push_parm): Call c_type_promotes_to()
3322 2005-01-15 Ziemowit Laski <zlaski@apple.com>
3325 * objc-act.c (get_arg_type_list): Decay function arguments into
3327 (objc_push_parm): Likewise; bring PARM_DECL construction closer
3328 in line with what the C front-end does.
3329 (objc_get_parm_info): Call pushdecl() and finish_decl() on
3330 each PARM_DECL, like the C front-end does.
3331 (start_method_def): Remove redundant ARRAY_TYPE decay.
3332 (objc_start_function): Bring closer in line with what the
3333 C front-end does for functions.
3335 2005-01-14 Mike Stump <mrs@apple.com>
3337 * lang-specs.h ("@objective-c"): Use cc1obj when -E is used so
3338 that -fobjc-exceptions is accepted.
3340 2004-12-30 Ziemowit Laski <zlaski@apple.com>
3343 * objc-act.c (get_arg_type_list, start_method_def): Decay
3344 array arguments into pointers.
3345 (gen_type_name_0): Learn to pretty-print array types.
3347 2004-12-15 Ziemowit Laski <zlaski@apple.com>
3349 * objc-act.c (build_private_template): Change to return 'void'; do
3350 not set ivar_context, uprivate_record or objc_instance_type.
3351 (objc_comptypes, gen_type_name_0): For types 'id' and 'Class',
3352 retrieve protocol list from the pointee rather than the pointer itself;
3353 check TYPE_HAS_OBJC_INFO(...) precondition before accessing
3354 TYPE_OBJC_PROTOCOL_LIST.
3355 (objc_get_protocol_qualified_type): For types 'id' and 'Class',
3356 construct a variant of the pointee as well as the pointer, and
3357 store protocol information in the former. When creating variants
3358 of RECORD_TYPEs, clone their TYPE_LANG_SPECIFIC fields and propagate
3359 TYPE_OBJC_INTERFACE information.
3360 (objc_declare_class): If a TYPE_DECL is looked up, retrieve the
3361 underlying RECORD_TYPE to check for presence of TYPE_OBJC_INTERFACE;
3362 for newly-created RECORD_TYPEs, create a tentative TYPE_OBJC_INTERFACE
3363 holding an IDENTIFIER_NODE.
3364 (objc_finish_message_expr): Check TYPE_HAS_OBJC_INFO(...) before
3365 accessing TYPE_OBJC_PROTOCOL_LIST; Use TYPE_OBJC_INTERFACE instead
3366 of calling lookup_interface(); allow for TYPE_OBJC_INTERFACE holding
3367 an IDENTIFIER_NODE (meaning a @class forward-declaration only).
3368 (objc_is_public): Check TYPE_OBJC_INTERFACE instead of calling
3370 (continue_class): For @implementations, set ivar_context,
3371 uprivate_record and objc_instance_type, for @interfaces, call
3372 build_private_template().
3373 (encode_pointer): Check TYPE_HAS_OBJC_INFO(...) before accessing
3374 TYPE_OBJC_INTERFACE.
3375 (objc_types_are_equivalent): Check TYPE_HAS_OBJC_INFO(...) before
3376 accessing TYPE_OBJC_PROTOCOL_LIST.
3377 * objc-act.h (OBJC_INFO_SLOT_ELTS, TYPE_OBJC_INFO, INIT_TYPE_OBJC_INFO,
3378 DUP_TYPE_OBJC_INFO, ALLOC_OBJC_TYPE_LANG_SPECIFIC,
3379 SIZEOF_OBJC_TYPE_LANG_SPECIFIC): New macros.
3380 (TYPE_OBJC_INTERFACE): Replaces TREE_STATIC_INSTANCE and now points
3381 to an actual @interface; stored in TYPE_LANG_SPECIFIC(...).
3382 (TYPE_OBJC_PROTOCOL_LIST): Replaces TYPE_PROTOCOL_LIST; stored in
3383 TYPE_LANG_SPECIFIC(...).
3384 (TREE_STATIC_INSTANCE, TYPE_PROTOCOL_LIST): Delete.
3385 (IS_ID, IS_CLASS, IS_PROTOCOL_QUALIFIED_UNTYPED, IS_SUPER,
3386 TYPED_OBJECT): Check for POINTER_TYPE rather than POINTER_TYPE_P;
3387 adjust for use of TYPE_OBJC_INTERFACE and TYPE_OBJC_PROTOCOL_LIST
3388 instead of TREE_STATIC_INSTANCE and TYPE_PROTOCOL_LIST.
3390 2004-11-29 Joseph Myers <joseph@codesourcery.com>
3393 * Make-lang.in (objc/objc-act.o): Update dependencies.
3394 * objc-act.c (objc_finish_file): Call
3395 maybe_apply_pending_pragma_weaks if not OBJCPLUS.
3397 2004-11-09 Andrew Pinski <pinskia@physics.uc.edu>
3400 * obj-act.c (encode_type): 96bits doubles are encoded the
3401 same way as 64bit and 128bit doubles are.
3403 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
3405 * objc-act.c: Use %q, %< and %> for quoting in diagnostics.
3407 2004-11-08 Andrew Pinski <pinskia@physics.uc.edu>
3410 * objc-act.c (generate_method_descriptors): Remove setting
3411 the new decls' type to variable_length_type.
3412 (generate_ivar_lists): Likewise.
3413 (generate_dispatch_tables): Likewise.
3415 2004-10-30 Ziemowit Laski <zlaski@apple.com>
3417 * objc-act.c (objc_lookup_ivar): The new OTHER parameter
3418 contains the result of the ID lookup by the C or C++
3419 front-end; in class methods, use OTHER if it exists;
3420 in instance methods, use OTHER only if it is locally
3423 2004-10-26 Ziemowit Laski <zlaski@apple.com>
3425 * objc-act.c (finish_class): Do not synthesize bogus
3426 'extern objc_object *_Foo;' declarations for @interface Foo.
3428 2004-10-25 Ziemowit Laski <zlaski@apple.com>
3429 David Ayers <d.ayers@inode.at>
3431 * objc-act.c (objc_comptypes): Use IS_PROTOCOL_QUALIFIED_UNTYPED
3432 instead of IS_PROTOCOL_QUALIFIED_ID; add comparisons for:
3433 'Class <Protocol> != id <Protocol>'; 'Class <Protocol> != <class> *';
3434 'Class <Protocol> == id' and 'Class <Protocol> == Class'.
3435 (objc_is_id): Add test for 'super'.
3436 (objc_finish_message_expr): Allow for messaging of 'Class <Proto>'
3437 receivers; if class methods are not found in protocol lists, search
3438 for instance methods therein and warn if one is found. Look in
3439 global hash tables for suitable method as a last resort when messaging
3440 'id <Proto>', 'Class <Proto>' and invalid receiver types.
3441 (objc_add_method): Insert instance methods listed in protocols into
3442 the global class method hash table.
3443 * objc-act.h (IS_PROTOCOL_QUALIFIED_ID): Rename to
3444 IS_PROTOCOL_QUALIFIED_UNTYPED and allow for 'Class <Proto>' in
3445 addition to 'id <Proto>'.
3447 2004-10-21 Andrew Pinski <pinskia@physics.uc.edu>
3450 * objc-act.c (objc_build_string_object): Create a CONST_DECL
3451 for the NeXT runtime case.
3453 2004-10-02 Kazu Hirata <kazu@cs.umass.edu>
3455 * objc-act.c: Fix comment typos.
3457 2004-09-24 Ziemowit Laski <zlaski@apple.com>
3459 * objc-act.c (init_objc_symtab, init_module_descriptor,
3460 build_shared_structure_initializer): When initializing 'long'
3461 fields, ensure that the initializer value is also 'long'.
3463 2004-09-24 Zack Weinberg <zack@codesourcery.com>
3465 * objc-act.c: Change annotate_with_locus to SET_EXPR_LOCATION
3467 (objc_init): Only set input_line to 0 #ifndef USE_MAPPED_LOCATION.
3468 (build_selector_translation_table): Use %J in diagnostic
3469 instead of diddling input_line. Fix spelling.
3471 2004-09-21 Ziemowit Laski <zlaski@apple.com>
3473 * objc-act.c (objc_fold_objc_type_ref): New function.
3474 * objc-act.h (objc_fold_objc_type_ref): New prototype.
3476 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
3478 * objc-act.c (objc_start_function, really_start_method,
3479 objc_get_parm_info, start_method_def): Update to new arg_info
3482 2004-09-07 Ziemowit Laski <zlaski@apple.com>
3484 * Make-lang.in (objc/objc-parse.o): Depend on $(C_COMMON_H) instead of
3486 (objc/objc-act.o): Depend on $(HASHTAB_H).
3487 * objc-act.c: Include hashtab.h; in ObjC++ mode, include cp-tree.h and
3488 objcp-decl.h instead of c-tree.h.
3489 (build_module_descriptor, get_class_ivars, synth_id_with_class_suffix,
3490 error_with_ivar, gen_method_decl, gen_declaration, setup_string_decl,
3491 build_protocol_template): Adjust prototypes.
3492 (build_module_initializer_routine, start_class, continue_class,
3493 finish_class, start_method_def, objc_start_function, start_protocol,
3494 build_method_decl, objc_add_method, add_instance_variable,
3495 build_ivar_reference, is_ivar, is_private, get_super_receiver,
3496 build_selector_table_decl, objc_push_parm, objc_get_parm_info,
3497 gen_type_name, gen_type_name_0, start_var_decl, finish_var_decl,
3498 create_field_decl): New prototypes.
3499 (objc_expand_function_end, comp_method_with_proto, objc_expr_last,
3500 gen_declaration_1, gen_declarator, is_complex_decl, adorn_decl,
3501 define_decl, create_builtin_decl, gen_declspecs): Remove prototypes.
3502 (TYPE_ID): Rename to OBJECT_TYPEDEF_NAME.
3503 (CLASS_TYPEDEF_NAME): New.
3504 (TAG_EXECCLASS): Change from a global variable to a #define.
3505 (TAG_RETURN_STRUCT): Delete.
3506 (TAG_GNUINIT): New, holds '__objc_gnu_init' name.
3507 (objc_inherit_code, objc_public_flag): New, moved from c-parse.in.
3508 (string_descriptor): New struct.
3509 (string_htab): New hash table.
3510 (string_hash, string_eq): New prototypes.
3511 (generate_struct_by_value_array): Call create_field_decl() instead of
3512 create_builtin_decl().
3513 (objc_init): Do not initialize objc_ellipsis_node or TAG_EXECCLASS;
3514 In ObjC++ mode, call cxx_init() instead of c_objc_common_init().
3515 (objc_finish_file): In ObjC++, call instantiate_pending_templates()
3516 and cp_finish_file().
3517 (define_decl, get_static_reference, get_protocol_reference,
3518 create_builtin_decl): Remove functions.
3519 (objc_start_class_interface, objc_start_category_interface,
3520 objc_start_protocol, objc_continue_interface, objc_finish_interface,
3521 objc_start_class_implementation, objc_start_category_implementation,
3522 objc_continue_implementation, objc_finish_implementation,
3523 objc_set_visibility, objc_set_method_type,
3524 objc_build_method_signature, objc_add_method_declaration,
3525 objc_start_method_definition, objc_add_instance_variable,
3526 objc_get_protocol_qualified_type, create_field_decl,
3527 start_var_decl, finish_var_decl): New functions.
3528 (setup_string_decl): Simplify since it is only called once.
3529 (synth_module_prologue): Call build_class_template(); predefine 'id'
3530 and 'Class' as typedefs; rename 'temp_type' to 'type'; disable debug
3531 hooks for duration of function; fix GNU runtime messenger signatures
3532 to correspond to reality; forward-declare '__objc_exec_class' for the
3533 GNU runtime; call build_selector_table_decl(); in ObjC++ mode, generate
3534 'extern "C" { ... }' wrappers around synthesized declarations; call
3535 build_protocol_template() and build_category_template().
3536 (string_hash, string_eq): New functions.
3537 (objc_build_string_object): Check metaclass correctness only once;
3538 store string literals in hash table.
3539 (objc_build_constructor): Do not convert initializer elements;
3540 adjust for ObjC++ impedance mismatch.
3541 (build_objc_symtab_template): Call create_field_decl() instead of
3542 create_builtin_decl().
3543 (init_objc_symtab): Add missing conversion to initializer element.
3544 (build_metadata_decl): Call start_var_decl() instead of define_decl().
3545 (generate_objc_symtab_decl): Do not call build_category_template();
3546 call start_var_decl() and finish_var_decl() instead of start_decl()
3548 (build_module_descriptor): Call create_field_decl() instead of
3549 grokfield(); call start_var_decl() and finish_var_decl() instead of
3550 start_decl() and finish_decl(); always mark module descriptor as
3551 used; move GNU runtime-specific functionality to
3552 build_module_initializer_routine().
3553 (build_module_initializer_routine): New function, broken off of
3554 build_module_descriptor().
3555 (objc_static_init_needed_p, objc_generate_static_init_call): New
3557 (generate_static_references, generate_strings,
3558 build_selector_translation_table, generate_descriptor_table,
3559 generate_ivars_list, generate_dispatch_table, generate_category): Call
3560 start_var_decl() and finish_var_decl() instead of start_decl() and
3561 finish_decl(); build a type directly instead of via groktypename().
3562 (build_selector_reference_decl, build_selector_table_decl,
3563 build_class_reference_decl, build_protocol_reference,
3564 generate_objc_image_info): Call start_var_decl() instead of
3566 (build_selector_reference): For GNU runtime, do not call
3567 build_selector_reference_decl().
3568 (build_selector, build_typed_selector_reference): Always convert
3569 result to the selector type.
3570 (add_objc_string): Cast return value to 'char *'.
3571 (build_method_prototype_template, build_selector_template,
3572 build_method_template): Use actual selector type for fields
3573 pointing to selectors.
3574 (finish_objc): For GNU runtime, call
3575 build_module_initializer_routine() after build_module_descriptor().
3576 (generate_protocol_list, generate_shared_structures): Call
3577 start_var_decl() and finish_var_decl() instead of start_decl() and
3578 finish_decl(); build a type directly instead of via
3580 (synth_id_with_class_suffix): Return a string.
3581 (get_arg_type_list): For instance methods, use the instance type for
3582 'self'; do not call groktypename_in_parm_context().
3583 (build_objc_string_decl): Squash redeclaration errors in ObjC++.
3584 (objc_is_class_name): Use OBJC_TYPE_NAME instead of TYPE_NAME;
3585 handle RECORD_TYPEs in ObjC as well as ObjC++.
3586 (objc_is_id): New function.
3587 (objc_is_object_ptr): Return the canonical type node.
3588 (objc_get_class_ivars): Simplify using get_class_ivars().
3589 (get_class_ivars): Remove second parameter; create a fresh copy
3590 of the ivar list for each call; do not check for existence of
3592 (objc_eh_runtime_type): Mark #ifndef OBJCPLUS.
3593 (objc_init_exceptions): When using SJLJ-style exceptions, require
3594 the use of '-fobjc-exceptions' flag; do not require it for DWARF-style
3596 (objc_build_exc_ptr, next_sjlj_build_try_catch_finally): Use
3597 objc_object_type instead of objc_id_type.
3598 (objc_begin_catch_clause): Convert the incoming PARM_DECL into
3599 a VAR_DECL before placing it in the appropriate scope; do not
3600 call define_decl(); adjust call to c_begin_compound_stmt();
3601 use objc_object_type instead of objc_id_type.
3602 (build_next_objc_exception_stuff): Call create_field_decl() instead
3603 of create_builtin_decl(); construct type directly instead of calling
3604 groktypename(); use OBJC_VOID_AT_END to mark end of function parameters.
3605 (build_private_template): Adjust call to get_class_ivars(); build
3606 a type directly instead of via groktypename().
3607 (build_protocol_template, build_method_prototype_list_template,
3608 build_method_prototype_template, build_category_template,
3609 build_selector_template, build_class_template, build_super_template,
3610 build_ivar_template, build_ivar_list_template,
3611 build_method_list_template, build_method_template):
3612 Call create_field_decl() instead of grokfield().
3613 (objc_method_parm_type): Do not call groktypename().
3614 (generate_descriptor_table): Call start_var_decl() and
3615 finish_var_decl() instead of start_decl() and finish_decl().
3616 (generate_method_descriptors, build_protocol_initializer,
3617 generate_dispatch_tables, build_category_initializer,
3618 build_shared_structure_initializer): Do not call groktypename().
3619 (generate_protocols): Call start_var_decl() and finish_var_decl()
3620 instead of start_decl() and finish_decl(); do not call groktypename().
3621 (error_with_ivar): Remove last parameter.
3622 (check_ivars): Do not iterate ovar CLASS_RAW_IVARS lists in addition
3623 to CLASS_IVARS lists; adjust calls to error_with_ivar().
3624 (generate_ivar_lists): Convert one of the initializer elements; do
3625 not call groktypename().
3626 (get_arg_type_list, start_method_def, gen_method_def): Account for
3627 new representation of variable arguments and '...' in Objective-C
3628 methods; add Objective-C++ impedance matching code.
3629 (is_objc_type_qualifier): Remove function.
3630 (adjust_type_for_id_default): Simplify; there is no longer a need to
3631 wade through declspecs.
3632 (lookup_interface, start_class, continue_class,
3633 finish_class, start_method_def, start_protocol, build_method_decl,
3634 objc_add_method, add_instance_variable, build_ivar_reference,
3635 is_ivar, is_private, get_super_receiver, objc_build_finally_epilogue):
3636 Make into static functions.
3637 (receiver_is_class_object): Use new IS_CLASS() macro.
3638 (objc_build_message_expr): Tweak ObjC++ message argument handling;
3639 call objc_finish_message_expr() instead of finish_message_expr().
3640 (finish_message_expr): Rename to objc_finish_message_expr(); use
3641 OBJC_TYPE_NAME and OBJC_SET_TYPE_NAME macros instead of TYPE_NAME.
3642 call gen_type_name() instead of gen_declaration(); call objc_is_id()
3643 instead of using IS_ID and IS_CLASS; Use objc_class_name instead of
3644 calling get_identifier("Class"); handle CONVERT_EXPRs in receiver.
3645 (build_objc_method_call, warn_with_method): Do not call groktypename().
3646 (build_ivar_reference): Call convert() instead of clobbering in a
3648 (hash_init): Initialize string_htab hash table.
3649 (add_instance_variable): Simplify parameter list; do not call grokfield();
3650 do not populate CLASS_IVARS list.
3651 (start_class): Check for the existence of super class, if one was specified.
3652 (continue_class): Use CLASS_RAW_IVARS rather than CLASS_IVARS; do not
3653 call build_class_template(); adjust call to get_class_ivars(); call
3654 build_decl(), pushdecl() and finish_decl() instead of define_decl().
3655 (finish_class): Call build_decl(), pushdecl() and finish_decl() instead
3657 (add_protocols): Use PROTOCOL_BINFO_ELTS for the tree vector size.
3658 (start_protocol): Do not call build_protocol_template(); use
3659 PROTOCOL_BINFO_ELTS for the tree vector size.
3660 (encode_type_qualifiers): Do not handle the 'const' qualifier here.
3661 (encode_pointer): Encode 'const char *' as 'r*', for backwards
3663 (encode_array): Use HOST_WIDE_INT_PRINT_DEC instead of "%ld".
3664 (encode_type): Handle the 'const' qualifier here.
3665 (objc_parmlist): New global variable, sued by objc_push_parm and
3666 objc_get_parm_info().
3667 (objc_push_parm, objc_get_parm_info): New functions.
3668 (objc_expr_last): Remove function.
3669 (synth_self_and_ucmd_args): For instance methods, use the instance
3670 type for 'self'; call objc_push_parm() instead of push_parm_decl().
3671 (start_method_def): Do not call push_scope(), declare_parm_level(),
3672 pop_scope(), push_parm_decl(), store_parm_decls() or objc_expr_last();
3673 just use objc_push_parm() and objc_get_parm_info().
3674 (comp_method_with_proto): Remove function.
3675 (objc_types_are_equivalent): Strip away indirections before comparing
3677 (comp_proto_with_proto): Do not call groktypename(); types are no
3678 longer in raw declspec format.
3679 (objc_start_function): New function.
3680 (really_start_method): Call comp_proto_with_proto() instead of
3681 comp_method_with_proto(); call objc_start_function() instead of
3682 hand-crafting a function declarator.
3683 (continue_method_def, objc_expand_function_end): Remove functions.
3684 (get_super_receiver): Call objc_get_current_scope() instead of
3685 get_current_scope(); reference 'super_class' field (instead of
3687 (finish_method_def): Rename to objc_finish_method_definition() and
3688 add a function decl parameter; move method encoding call from
3689 objc_expand_function_end().
3690 (is_complex_decl, adorn_decl, gen_declarator, gen_declspecs,
3691 gen_declaration_1): Remove functions.
3692 (tmpbuf, RAW_DECLSPEC): Remove.
3693 (gen_declaration): Remove second parameter; simplify to deal
3694 with TYPE_P nodes instead of raw declspecs.
3695 (gen_type_name, gen_type_name_0): New functions.
3696 (gen_method_decl): Remove second parameter; call gen_type_name()
3697 instead of gen_declaration_1().
3698 (dump_interface): Adjust calls to gen_declaration() and
3699 gen_method_decl(); do not allocate a separate string buffer.
3700 (init_objc): Allocate a larger string buffer to accommodate
3701 dump_interface(); adjust call to build_module_descriptor();
3702 add call to build_module_initializer_routine() for the GNU
3704 (generate_classref_translation_entry): Do not call start_decl(); call
3705 finish_var_decl() instead of finish_decl(); call convert() instead of
3707 * objc-act.h (CLASS_OWN_IVARS): Remove accessor.
3708 (CLASS_BINFO_ELTS): Reduce from 6 to 5, now that CLASS_OWN_IVARS is
3710 (OCTI_GNU_INIT_DECL, GNU_INIT_decl): New.
3711 (OCTI_ELLIPSIS_NODE, objc_ellipsis_node): Remove.
3712 (OCTI_ID_ID, id_type, objc_id_id): Rename to OCTI_ID_NAME,
3713 objc_object_type and objc_object_name, respectively.
3714 (OCTI_CLS_REF, OCTI_CLASS_NAME, objc_class_reference,
3715 objc_class_name): New.
3716 (IS_CLASS): New macro.
3717 (IS_ID, IS_SUPER): Robustify.
3718 (OCTI_EXECCLASS_DECL, execclass_decl): New.
3719 (finish_file, start_class, continue_class, finish_class,
3720 start_method_def, continue_method_def, finish_method_def,
3721 start_protocol, finish_protocol, objc_build_throw_stmt,
3722 objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
3723 objc_build_synchronized_epilogue, objc_build_try_prologue,
3724 objc_build_try_epilogue, objc_build_catch_stmt, objc_build_catch_epilogue,
3725 objc_build_finally_prologue, objc_build_finally_epilogue,
3726 is_ivar, is_private, is_public, add_instance_variable, objc_add_method,
3727 get_super_receiver, objc_clear_super_receiver, get_class_ivars_from_name,
3728 get_class_reference, get_static_reference, get_object_reference,
3729 build_message_expr, finish_message_expr, build_selector_expr,
3730 build_ivar_reference, build_keyword_decl, build_method_decl,
3731 build_protocol_expr, build_objc_string_object, objc_declare_alias,
3732 objc_declare_class, objc_declare_protocols, objc_comptypes,
3733 objc_check_decl, build_encode_expr): Remove prototypes.
3734 (imp_count, cat_count): Make GGC-aware.
3735 (OBJC_SET_TYPE_NAME): New macro.
3737 2004-09-03 Ziemowit Laski <zlaski@apple.com>
3739 * config-lang.in: Update copyright notice.
3740 (lang_requires): Indicate that ObjC requires C to be built first.
3742 2004-09-01 Ziemowit Laski <zlaski@apple.com>
3744 * objc-act.c (objc_check_decl): Use OBJC_TYPE_NAME macro instead of
3746 (build_objc_string_object): Rename to objc_build_string_object().
3747 (get_class_reference): Rename to objc_get_class_reference().
3748 (get_class_ivars_from_name): Rename to objc_get_class_ivars().
3749 (next_sjlj_build_catch_list, get_super_receiver): Call
3750 objc_get_class_reference() instead of get_class_reference().
3751 (build_keyword_decl): Rename to objc_build_keyword_decl().
3752 (build_message_expr): Rename to objc_build_message_expr().
3753 (build_protocol_expr): Rename to objc_build_protocol_expr().
3754 (build_selector_expr): Rename to objc_build_selector_expr().
3755 (build_encode_expr): Rename to objc_build_encode_expr().
3756 * objc-act.h (get_class_ivars_from_name): Rename prototype to
3757 objc_get_class_ivars().
3758 (get_class_reference): Rename prototype to objc_get_class_reference().
3759 (build_message_expr): Rename prototype to objc_build_message_expr().
3760 (build_selector_expr): Rename prototype to objc_build_selector_expr().
3761 (build_keyword_decl): Rename prototype to objc_build_keyword_decl().
3762 (build_protocol_expr): Rename prototype to objc_build_prototype_expr().
3763 (build_objc_string_object): Rename prototype to
3764 objc_build_string_object().
3766 2004-09-01 Ziemowit Laski <zlaski@apple.com>
3768 * objc-act.c (lookup_interface): Make function 'static' and add a
3770 (objc_check_decl, get_class_reference, objc_declare_alias,
3771 objc_declare_class, objc_is_object_ptr): Call objc_is_class_name()
3772 instead of is_class_name().
3773 (get_super_receiver, objc_clear_super_receiver): Call
3774 objc_get_current_scope() instead of get_current_scope().
3775 (is_class_name): Rename to objc_is_class_name.
3776 (lookup_objc_ivar): Rename to objc_lookup_ivar.
3778 2004-08-28 Ziemowit Laski <zlaski@apple.com>
3780 * objc-act.c (objc_is_reserved_word): New function.
3782 2004-08-15 Ziemowit Laski <zlaski@apple.com>
3784 * Make-lang.in (objc/objc-lang.o): Depend on $(C_PRETTY_PRINT_H),
3785 $(DIAGNOSTIC_H), c-objc-common.h and gtype-objc.h, but not on toplev.h.
3786 (objc/objc-parse.o): Do not depend on gtype-objc.h.
3787 * objc-act.c: Do not include gtype-objc.h.
3788 (finish_file): Rename to objc_finish_file().
3789 * objc-act.h (finish_file): Update copyright notice; remove prototype.
3790 * objc-lang.c: Update copyright notice; include diagnostic.h,
3791 c-objc-common.h, c-pretty-print.h and gtype-objc.h; do not include
3793 (finish_file): New hook routine.
3794 (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
3795 LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
3796 LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
3797 LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
3798 LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
3799 LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
3800 LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
3801 LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
3802 LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
3803 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
3804 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
3805 LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
3806 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
3807 LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
3808 LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
3809 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
3810 LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
3811 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
3812 LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
3813 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
3814 LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
3815 LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
3816 LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
3817 LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
3818 Move to c-objc-common.h.
3821 Copyright (C) 2004-2019 Free Software Foundation, Inc.
3823 Copying and distribution of this file, with or without modification,
3824 are permitted in any medium without royalty provided the copyright
3825 notice and this notice are preserved.