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