]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/objc/ChangeLog
* config/alpha/freebsd.h (LINK_SPEC): Don't handle -Wl,.
[thirdparty/gcc.git] / gcc / objc / ChangeLog
CommitLineData
dee9f0c7 12010-12-02 Nicola Pero <nicola.pero@meta-innovation.com>
2
3 * objc-act.c (objc_build_throw_stmt): Return error_mark_node and
4 not NULL_TREE when a @throw is used outside of a @catch block.
5
d7489d8d 62010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
7
8 * objc-act.c (objc_build_volatilized_type): Removed.
9 (objc_non_volatilized_type): Removed.
10 (objc_type_quals_match): Removed.
11 (local_variables_to_volatilize): New.
12 (objc_volatilize_decl): Add the decl to volatilize to
13 local_variables_to_volatilize, but don't volatilize it yet.
14 (objc_finish_function): New.
15 * objc-act.h (local_variables_to_volatilize): New.
16
1569aee5 172010-11-29 Nicola Pero <nicola.pero@meta-innovation.com>
18 Mike Stump <mikestump@comcast.net>
19
20 Allow 'make check-objc -j2'
21 * Make-lang.in (lang_checks_parallelized): New.
22 (check_objc_parallelize): New.
23
1cd5e6ab 242010-11-29 Nicola Pero <nicola.pero@meta-innovation.com>
25
26 * objc-act.c (start_class): When a class is reimplemented,
27 generate an error and avoid adding the class to the list of
28 implemented classes again, but do not return error_mark_node.
29
1a19222c 302010-11-29 Nicola Pero <nicola.pero@meta-innovation.com>
31
32 * objc-act.c (objc_maybe_build_component_ref): Removed TODO.
33
b3d2d312 342010-11-29 Nicola Pero <nicola.pero@meta-innovation.com>
35
36 * objc-act.c (objc_eh_runtime_type): Avoid ICE if error_mark_node
37 is passed as argument.
38 (objc_begin_catch_clause): Added code to deal with an
39 error_mark_node or NULL_TREE argument. Improved checks for
40 invalid arguments. Added code to traverse typedefs.
41
9aa91c6c 422010-11-29 Nicola Pero <nicola.pero@meta-innovation.com>
43
44 * objc-act.c (objc_demangle): Return immediately if the string is
45 too short. Detect names that do not need demangling, and return
46 them unchanged.
47
db496216 482010-11-27 Nicola Pero <nicola.pero@meta-innovation.com>
49
50 Implemented optional properties.
51 * objc-act.h (PROPERTY_OPTIONAL): New.
52 * objc-act.c (objc_add_property_declaration): Set
53 PROPERTY_OPTIONAL if appropriate.
54 (finish_class): When generating definitions of setter and getter
55 methods associated with a property for a protocol, mark them as
56 optional if the property is optional.
57 (maybe_make_artificial_property_decl): Added 'getter_name'
58 argument. Set PROPERTY_OPTIONAL.
59 (objc_maybe_build_component_ref): Updated calls to
60 maybe_make_artificial_property_decl. Added code for optional,
61 readonly properties.
62 (objc_build_class_component_ref): Updated call to
63 maybe_make_artificial_property_decl.
64
2f78a7ce 652010-11-27 Nicola Pero <nicola.pero@meta-innovation.com>
66
67 * objc-act.c (objc_build_struct): Fixed loops that save and
68 restore TYPE_OBJC_INFO to iterate over all variants of the type; a
69 special case for the current type is then no longer required.
70 Duplicate TYPE_LANG_SPECIFIC for each type before restoring
71 TYPE_OBJC_INFO.
72 (objc_get_protocol_qualified_type): Updated comments.
73
39bf7c51 742010-11-25 Nicola Pero <nicola.pero@meta-innovation.com>
75
76 * objc-act.c (objc_build_struct): Install TYPE_OBJC_INTERFACE
77 after finish_struct, not before, otherwise it may be wiped out by
78 it. This fixes spurious warnings when a class has more than 15
79 instance variables.
80
e71ec76d 812010-11-23 Nicola Pero <nicola.pero@meta-innovation.com>
82
83 PR objc/24358
84 * lang-specs.h: Added objective-c-cpp-output. Mapped .mi to
85 objective-c-cpp-output instead of objc-cpp-output. Print a
86 deprecation note every time objc-cpp-output is requested.
87
cc4fa57a 882010-11-22 Joseph Myers <joseph@codesourcery.com>
89
90 * objc-act.c (write_symbols): Don't declare here.
91
6cbcc94e 922010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
93
94 PR objc/41108
95 * objc-act.c (objc_generate_write_barrier): Added assert to make sure
96 this function is only called with the next runtime.
97
02191613 982010-11-20 Jakub Jelinek <jakub@redhat.com>
99
100 PR c/46547
101 * objc-act.c (in_late_binary_op): Remove.
102
aed3bc0e 1032010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
c213e196 104
c1cfb0f5 105 * objc-act.c (objc_start_class_interface): Do not warn that class
106 attributes are unimplemented. Pass the attributes to start_class.
107 (objc_start_category_interface): Updated call to start_class.
108 (objc_start_class_implementation): Same change.
109 (objc_start_category_implementation): Same change.
110 (objc_build_class_component_ref): Warn if the class is deprecated.
111 (build_private_template): Mark the template as deprecated if the
112 class is deprecated.
113 (start_class): Added 'attributes' argument. Emit a warning if
114 using a deprecated class as superclass of a class, or original
115 class of a category. Recognize the 'deprecated' attribute when
116 starting and interface, and mark the interface with
117 TREE_DEPRECATED if present. Store attributes in the interface.
118
1192010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
120
c213e196 121 * objc-act.c (lookup_protocol): Added 'warn_if_deprecated'
122 argument. If it is 'true' and the protocol is deprecated, emit a
123 deprecation warning.
124 (objc_start_protocol): Do not warn that protocol attributes are
125 unimplemented. Pass the attributes to start_protocol.
126 (start_protocol): Added attributes argument. Recognize the
127 'deprecated' attribute and mark the protocols with TREE_DEPRECATED
128 if present. Store attributes in the protocol.
129 (objc_declare_protocols): Added 'attributes' argument. Recognize
130 the 'deprecated' attribute and mark the protocols with
131 TREE_DEPRECATED if present. Store attributes in the protocol.
132 Updated call to lookup_protocol.
133 (objc_build_protocol_expr): Updated call to lookup_protocol.
134 (check_protocol_recursively): Same change.
135 (lookup_and_install_protocols): Same change.
136 * objc-act.h: Updated comments.
137
53cd8676 1382010-11-17 Nicola Pero <nicola.pero@meta-innovation.com>
139
140 * objc-act.c (lookup_method_in_protocol_list): Search methods in
141 PROTOCOL_OPTIONAL_CLS_METHODS / PROTOCOL_OPTIONAL_NST_METHODS if
142 they are not found in PROTOCOL_CLS_METHODS / PROTOCOL_NST_METHODS.
143
6d922cb7 1442010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
145
146 * objc-act.c (objc_build_setter_call): New.
147 (objc_maybe_build_modify_expr): Rewritten to build a compound
148 statement.
149 (objc_build_incr_expr_for_property_ref): Updated calls to
150 objc_maybe_build_modify_expr to call objc_build_setter_call
151 instead. Use build_modify_expr () instead of build2 (MODIFY_EXPR,
152 ...). Use convert () instead of build1 (NOP_EXPR, ...). Use
153 TREE_NO_WARNING on the final compound statement to silence C++
154 warnings.
155
e4a7640a 1562010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
157
158 * objc-act.c (objc_build_incr_expr_for_property_ref): New.
159 (objc_create_temporary_var): Moved it towards the beginning of the
160 file so that objc_build_incr_expr_for_property_ref can use it.
161
25bf0383 1622010-11-14 Nicola Pero <nicola.pero@meta-innovation.com>
163
164 * objc-act.c (objc_add_property_declaration): Check that the decl
165 we received from the parser is a FIELD_DECL; reject array and
166 bitfield properties. Convert the warning when a property is
167 readonly and a setter is specified into an error. Convert errors
168 when a property declaration does not match a property declaration
169 in a superclass into warnings.
170 (objc_add_synthesize_declaration_for_property): Use
171 DECL_BIT_FIELD_TYPE to determine the type of an instance variable
172 if it is a bitfield. Throw an error if we are asked to synthesize
173 setters/getters for a bitfield instance variable but the property
174 is not appropriate - it must be assign and nonatomic. If the
175 property is readonly, allow the instance variable type to be a
176 specialization of the property type.
177 (objc_type_valid_for_messaging): Fixed returning 'false' for a
178 Class qualified with a protocol when the 'accept_classes' argument
179 is 'false'.
180
e5479368 1812010-11-13 Nicola Pero <nicola.pero@meta-innovation.com>
182
183 * objc-act.c (objc_get_protocol_qualified_type): detect cases
184 where we are asked to attach a protocol to something which is not
185 an Objective-C object type, and produce an error.
186
ad312852 1872010-11-11 Nicola Pero <nicola.pero@meta-innovation.com>
188
189 * objc-act.c (objc_add_property_declaration): Check that the type
190 of a property and of an inherited property match.
191 (objc_maybe_build_component_ref): Tidied up indentation and
192 comments.
193 (objc_common_type): Added new type of check (-5).
194 (objc_add_synthesize_declaration_for_property): Check that the
195 property to synthesize and the instance variable to use have the
196 same type.
197
bf776685 1982010-11-10 Joseph Myers <joseph@codesourcery.com>
199
200 * objc-act.c (objc_init): Use %' in diagnostic.
201 (objc_set_method_opt): Remove trailing '.' from diagnostic.
202
6bd9d862 2032010-11-10 Joseph Myers <joseph@codesourcery.com>
204
205 * objc-act.c (dump_base_name): Don't declare here.
206
99da7d7e 2072010-11-08 Nicola Pero <nicola.pero@meta-innovation.com>
208
209 * objc-act.c (objc_add_dynamic_declaration_for_property): Do not
210 search for the @property declation only in the current context,
211 but also in inherited properties. Do not mark the original
212 PROPERTY_DECL in the @interface or @protocol with
213 PROPERTY_DYNAMIC.
214 (check_methods): To check if a method is associated with a
215 @dynamic property, search for the property in IMPL_PROPERTY_DECL.
216 (check_accessible_methods): Same change.
217 * objc-act.h: Updated comment.
218
c84ce30a 2192010-11-08 Nicola Pero <nicola.pero@meta-innovation.com>
220
221 * objc-act.c (objc_add_synthesize_declaration_for_property):
222 Iterate over IMPL_PROPERTY_DECL, not CLASS_PROPERTY_DECL, when
223 checking for an existing @synthesize or @dynamic declaration.
224 Search for an inherited @property declaration if none is found in
225 the local interface. If the required instance variable does not
226 exist, return instead of trying to continue to prevent a compiler
227 crash later. Check that the instance variable is not already
228 being used by another @synthesize.
229 (objc_add_dynamic_declaration_for_property): Iterate over
230 IMPL_PROPERTY_DECL, not CLASS_PROPERTY_DECL, when checking for an
231 existing @synthesize or @dynamic declaration.
232 (objc_synthesize_getter): Search for the getter declaration in
233 protocols and superclasses as well.
234 (objc_synthesize_setter): Search for the setter declaration in
235 protocols and superclasses as well.
236
7f5203a8 2372010-11-08 Nicola Pero <nicola.pero@meta-innovation.com>
238
239 * objc-act.c (lookup_property): When checking categories, also
240 check the protocols attached to each.
241 (objc_add_property_declaration): Determine the
242 PROPERTY_SETTER_NAME and PROPERTY_GETTER_NAME here. Tidied up
243 error message. Search for an existing property declaration with
244 the same name which would be inherited from the class hiearchy,
245 and produce an error if it has incompatible attributes.
246 (check_methods): Changed second parameter. If the method is a
247 getter or setter for a property, do not warn if it is inherited as
248 opposed to implemented directly in the class.
249 (check_protocol): Updated calls to check_methods.
250 (finish_class): Do not determine the PROPERTY_SETTER_NAME and
251 PROPERTY_GETTER_NAME here; this is now done earlier, in
252 objc_add_property_declaration.
253 * objc-act.h (CLASS_NAME, CLASS_SUPER_NAME): Added comments.
254
736dea43 2552010-11-06 Nicola Pero <nicola.pero@meta-innovation.com>
256
f3fefa12 257 Fixed using the Objective-C 2.0 dot-syntax with self and super.
736dea43 258 * objc-act.c (OBJC_LOOKUP_NO_INSTANCE_METHODS_OF_ROOT_CLASS): New.
259 (maybe_make_artificial_property_decl): Added 'implementation'
260 argument. Use OBJC_LOOKUP_NO_INSTANCE_METHODS_OF_ROOT_CLASS when
261 looking up getters or setters for a class. If an implementation
262 is specified, search it as well for a getter or setter.
263 (objc_maybe_build_component_ref): Updated calls to
264 maybe_make_artificial_property_decl; added code to deal with
265 'self' and 'super' and with methods declared locally in the
266 implementation. Store the getter call expression in the
267 PROPERTY_REF instead of throwing it away.
268 (objc_build_class_component_ref): Updated calls to
269 maybe_make_artificial_property_decl, and store the getter call
270 expression in PROPERTY_REF instead of throwing it away.
271 (lookup_method_static): Implemented
272 OBJC_LOOKUP_NO_INSTANCE_METHODS_OF_ROOT_CLASS option.
273 (objc_gimplify_property_ref): Do not build the getter method call
274 here; instead use the one stored in the PROPERTY_REF. If it's not
275 there, produce helpful error messages.
276 * objc-tree.def (PROPERTY_REF): Increased the number of operands
277 from 2 to 3. Updated comments.
278 * objc-act.h (PROPERTY_REF_GETTER_CALL): New.
279
1f6616ee 2802010-11-06 Iain Sandoe <iains@gcc.gnu.org>
281
282 PR target/44981
283 * objc-act.c (objc_build_string_object): Amend for renamed hook.
284 (objc_string_ref_type_p): New.
285 (objc_check_format_arg): New.
286
b0d0931f 2872010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
288
289 Fixed using the Objective-C 2.0 dot-syntax with class names.
290 * objc-act.c (objc_build_class_component_ref): New.
291
f26877d5 2922010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
293
294 * objc-act.c (objc_add_dynamic_declaration): Allow @dynamic in a
295 category.
296 (objc_type_valid_for_messaging): Added 'accept_classes' argument;
297 if set to 'true', return 'true' for Class objects. Do not remove
298 more than on pointer indirection.
299 (objc_add_property_declaration): Only warn about 'assign'
300 semantics for Objective-C objects if warn_property_assign_default;
301 and do not warn if the property is readonly or if the type is a Class.
302 (objc_finish_foreach_loop): Updated calls to
303 objc_type_valid_for_messaging.
304
1ef143b6 3052010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
306
307 Implemented -fobjc-std=objc1 flag.
308 * objc-act.c (objc_start_class_interface): If attributes are
309 specified when flag_objc1_only is set, print an error.
310 (objc_start_category_interface): Same change.
311 (objc_start_protocol): Same change.
312 (objc_add_method_declaration): Same change.
313 (objc_start_method_definition): Same change.
314 (objc_build_keyword_decl): Same change.
315 (objc_set_visibility): If OBJC_IVAR_VIS_PACKAGE is used when
316 flag_objc1_set is set, print an error.
317 (objc_set_method_opt): If flag_objc1_only is set, print an error.
318 (objc_add_property_declaration): Same change.
319 (objc_add_synthesize_declaration): Same change.
320 (objc_add_dynamic_declaration): Same change.
321 (objc_finish_foreach_loop): Same change.
322 (objc_maybe_build_component_ref): If flag_objc1_only is set,
323 return immediately.
324
890881e7 3252010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
326
327 * objc-act.c (maybe_make_artificial_property_decl): New.
328 (objc_maybe_build_component_ref): Call
329 maybe_make_artificial_property_decl if a property can not be
330 found. Do not call objc_finish_message_expr if
331 PROPERTY_HAS_NO_GETTER.
332 * objc-act.h Updated comments.
333 (PROPERTY_HAS_NO_GETTER): New.
334 (PROPERTY_HAS_NO_SETTER): New.
335 * objc-tree.def: Updated comment.
336
8c582e4f 3372010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
338
339 Implemented format and noreturn attributes for Objective-C methods.
340 * objc-act.c (objc_start_method_definition): If method attributes
341 are specified emit a warning and ignore them.
342 (build_objc_method_call): Moved deprecation warnings from here ...
343 (objc_finish_message_expr): to here. Do not emit deprecation
344 warnings if the receiver is of type 'id'.
345 (really_start_method): Install 'deprecation' and 'noreturn'
346 attributes.
347 (objc_decl_method_attributes): Carefully filter out the list of
348 attributes, allowing only "noreturn", "format", "sentinel" and
349 "deprecated". In the case of "format", adjust the arguments.
350 Always process the attributes in the same way no matter if
351 "sentinel" is in the list or not.
352
cb92539e 3532010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
354
355 * objc-act.c (objc_maybe_build_component_ref): Warn about using
356 deprecated properties.
357 (objc_maybe_printable_name): Support PROPERTY_DECL.
358
7fd68cee 3592010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
360
361 Implemented Objective-C 2.0 property accessors.
362 * objc-act.h (enum objc_tree_index): Added OCTI_GET_PROPERTY_DECL,
363 OCTI_SET_PROPERTY_DECL, OCTI_COPY_STRUCT_DECL,
364 OCTI_GET_PROPERTY_STRUCT_DECL and OCTI_SET_PROPERTY_STRUCT_DECL.
365 (objc_getProperty_decl): New.
366 (objc_setProperty_decl): New.
367 (objc_copyStruct_decl): New.
368 (objc_getPropertyStruct_decl): New.
369 (objc_setPropertyStruct_decl): New.
370 * objc-act.c (build_objc_property_accessor_helpers): New.
371 (synth_module_prologue): Call
372 build_objc_property_accessor_helpers.
373 (lookup_ivar): New.
374 (objc_synthesize_getter): Implemented synthesizing getters that
375 work with properties that are not nonatomic, assign properties.
376 (objc_synthesize_setter): Implemented synthesizing setters that
377 work with properties that are not nonatomic, assign properties.
378
9d9f5bb3 3792010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
380
381 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
382 * objc-tree.def (PROPERTY_REF): New.
383 * objc-act.h: Added comments for all the PROPERTY_ macros.
384 (PROPERTY_NAME): Use DECL_NAME.
385 (PROPERTY_COPIES): Removed.
386 (PROPERTY_READONLY): Use DECL_LANG_FLAG_0 for it.
387 (PROPERTY_NONATOMIC): New.
388 (objc_property_assign_semantics): Make it a typedef.
389 (PROPERTY_ASSIGN_SEMANTICS): New.
390 (PROPERTY_DYNAMIC): New.
391 (PROPERTY_REF_OBJECT): New.
392 (PROPERTY_REF_PROPERTY_DECL): New.
393 * objc-act.c (CALL_EXPR_OBJC_PROPERTY_GETTER): Removed.
394 (in_objc_property_setter_name_context): Removed.
395 (objc_add_property_declaration): Removed copies and ivar arguments
396 and code supporting them. Fixed recovering when readonly and
397 setter attributes are specified. Removed support for @property in
398 @implementation context. Updated error message. Double-check
399 that a property does not have a DECL_INITIAL. Validate the
400 property assign semantics and emit appropriate errors and
401 warnings. Check for duplicate property declarations. Set
402 DECL_SOURCE_LOCATION, TREE_DEPRECATED, PROPERTY_NONATOMIC,
403 PROPERTY_ASSIGN_SEMANTICS and PROPERTY_DYNAMIC of the new
404 PROPERTY_DECL. Do not set PROPERTY_COPIES. Set
405 PROPERTY_IVAR_NAME to NULL_TREE.
406 (objc_build_getter_call): Renamed to
407 objc_maybe_build_component_ref. If the property is not found in
408 the interface, search in the protocol list. Do not generate the
409 getter call; instead, build and return a PROPERTY_REF.
410 (objc_is_property_ref): New.
411 (objc_setter_func_call): Removed.
412 (get_selector_from_reference): Removed.
413 (is_property): Removed.
414 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
415 Updated to work on a PROPERTY_REF and use the PROPERTY_DECL from
416 the PROPERTY_REF. Generate an error if the property is read-only.
417 (build_property_reference): Removed.
418 (objc_finish_message_expr): Removed check to produce "readonly
419 property can not be set" error when
420 in_objc_property_setter_name_context. We now generate the error
421 earlier, in objc_maybe_build_modify_expr, which will only generate
422 the setter call if the property is readwrite.
423 (check_methods): Recognize dynamic properties.
424 (check_methods_accessible): Same change.
425 (objc_build_property_ivar_name): Removed.
426 (objc_build_property_setter_name): Dropped bool argument. Always
427 add the ':' at the end.
428 (objc_gen_one_property_datum): Removed.
429 (objc_process_getter_setter): Removed.
430 (objc_synthesize_getter): Mark 'klass' argument as unused. Use
431 PROPERTY_GETTER_NAME instead of PROPERTY_NAME. Set the
432 DECL_SOURCE_LOCATION of the new method to be the same as the one
433 for the @synthesize. Always use PROPERTY_IVAR_NAME as it is
434 instead of trying to guess what it should be. Removed use of
435 CLASS_IVARS. Use the location of @synthesize for c_finish_return
436 and c_end_compound_statement.
437 (objc_synthesize_setter): Mark 'klass' argument as unused. Use
438 PROPERTY_SETTER_NAME instead of trying to guess what it should be.
439 Set the DECL_SOURCE_LOCATION of the new method to be the same as
440 the one for the @synthesize. Always use PROPERTY_IVAR_NAME as it
441 is instead of trying to guess what it should be. Removed use of
442 CLASS_IVARS. Use the location of @synthesize for c_finish_return
443 and c_end_compound_statement. Emit an error and keep going,
444 instead of aborting, if the setter prototype does not have the
445 expected argument.
446 (objc_add_synthesize_declaration_for_property): New.
447 (objc_add_synthesize_declaration): Removed ATTRIBUTE_UNUSED from
448 all arguments. Improved error message. Filled in the rest of the
449 function, which used to be a placeholder, with an actual
450 implementation.
451 (objc_add_dynamic_declaration_for_property): New.
452 (objc_add_dynamic_declaration): Removed ATTRIBUTE_UNUSED from all
453 arguments. Improved error message. Filled in the rest of the
454 function, which used to be a placeholder, with an actual
455 implementation.
456 (objc_gen_property_data): Rewritten.
457 (finish_class): Added explicit switch cases for
458 CLASS_INTERFACE_TYPE, CATEGORY_INTERFACE_TYPE and
459 PROTOCOL_INTERFACE_TYPE. Added a default switch case which is
460 gcc_unreachable. Rewritten the processing of properties, in
461 particular to not synthesize prototypes for getters and setters if
462 they already exist and to install the getter and setter names into
463 PROPERTY_GETTER_NAME and PROPERTY_SETTER_NAME. Do not generate
464 warnings about setter, getter and ivar property attributes.
465 (objc_lookup_ivar): Removed support for properties.
466 (objc_gimplify_property_ref): New.
467 (objc_gimplify_expr): Use a switch. In case of a PROPERTY_REF, call
468 objc_gimplify_property_ref.
469
7590f0e5 4702010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
471
472 * objc-act.c (objc_add_property_declaration): Added arguments to
473 pass the various property attributes that were parsed with the
474 property declaration. Process arguments to determine the final
475 property attributes and produce error messages as appropriate.
476 Added temporary code to keep the compiler silent about variables
477 set but not used - for new attributes that are only checked but
478 have no effect yet.
479 (property_readonly): Removed.
480 (property_setter): Removed.
481 (property_getter): Removed.
482 (property_ivar): Removed.
483 (property_copies): Removed.
484 (objc_set_property_attr): Removed.
485 * objc-act.h (enum property_assign_semantics): New.
486
1d894bcf 4872010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
488
489 * objc-act.c (objc_add_property_variable): Renamed to
490 objc_add_property_declaration. Added location argument. Updated
491 warnings and errors to use it. Use error, not fatal_error, if a
492 property declaration is found outside an interface or
493 implementation context.
494
601154bb 4952010-10-24 Nicola Pero <nicola.pero@meta-innovation.com>
496
497 * objc-act.c (objc_build_keyword_decl): Updated comments. Do not
498 emit a warning that method parameter attributes are unimplemented.
499 Instead, store them into DECL_ATTRIBUTES of the KEYWORD_DECL.
500 (start_method_def): Copy attributes from each KEYWORD_DECL into
501 the corresponding PARM_DECL.
502 (objc_warn_deprecated_use): Removed.
503 (build_objc_method_call): Call warn_deprecated_use, not
504 objc_warn_deprecated_use.
505 (objc_maybe_printable_name): Do not try to get the identifier name
506 of DECLs that we don't recognize. Immediately return NULL for them.
507 (objc_printable_name): Removed C++-specific case, which is no
508 longer used. Updated comments.
509
e23bf1fb 5102010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
511
512 * objc-act.c (OBJC_GEN_METHOD_LABEL): Updated comments.
513 (objc_demangle): Return NULL if demangling can not be done because
514 the string to demangle is not an Objective-C mangled method name.
515 Be smarter in demangling method names so that at least for methods
516 with no arguments we are able to almost always demangle '_' correctly.
517 Updated comments.
518 (objc_maybe_printable_name): New.
519 (objc_printable_name): Call objc_maybe_printable_name. If it
520 returns NULL, call cxx_printable_name in Objective-C++.
521
d4238e8b 5222010-10-21 Iain Sandoe <iains@gcc.gnu.org>
523
524 Based on the CFString implementation in FSF apple/trunk branch.
525
526 * objc/objc-act.c (objc_build_string_object): Handle CFStrings.
527
29d8eac9 5282010-10-21 Nicola Pero <nicola.pero@meta-innovation.com>
529
530 * objc-act.c (get_objc_string_decl): Use a switch instead of a
531 chain of ifs. Use gcc_unreachable instead of abort.
532 (add_objc_string): Same change.
533 (generate_protocol_list): Same change - twice.
534 (synth_id_with_class_suffix): Same change.
535 (build_keyword_selector): Same change - twice.
536 (objc_build_message_expr): Same change.
537 (objc_build_selector_expr): Same change.
538 (check_methods): Same change - and added missing gcc_unreachable
539 for default case.
540 (check_methods_accessible): Same change - twice, and added missing
541 gcc_unreachable for default case in one of them.
542 (start_class): Same change - and added missing gcc_unreachable for
543 default case.
544 (continue_class): Same change.
545 (objc_gen_property_data): Same change.
546 (finish_class): Same change.
547 (encode_type_qualifiers): Added missing gcc_unreachable.
548 (encode_type): Small code tidy up to reduce duplicated code. Use
549 gcc_unreachable instead of abort - twice.
550 (encode_gnu_bitfield): Use a switch instead of a chain of ifs -
551 twice. Added missing gcc_unreachable for default case - twice.
552 (dump_interface): Use a switch instead of a chain of ifs.
553 (handle_impent): Same change.
554
45b2b110 5552010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
556
557 * objc-act.h (objc_inherit_code): Removed.
558 * objc-act.c (objc_inherit_code): Removed.
559 (objc_set_method_type): Removed.
560 (objc_build_method_signature): Added is_class_method argument.
561 Use it instead of the global objc_inherit_code variable.
562 (objc_add_method_declaration): Same change.
563 (objc_start_method_definition): Same change.
564 (objc_generate_cxx_ctor_or_dtor): Updated call to
565 objc_start_method_definition. Do not call objc_set_method_type.
566 (adjust_type_for_id_default): Mark as inline.
567 (objc_synthesize_getter): Updated call to
568 objc_start_method_definition. Do not set objc_inherit_code.
569 (objc_synthesize_setter): Updated call to
570 objc_start_method_definition. Do not set objc_inherit_code.
571
e9e7c336 5722010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
573
574 Merge from 'apple/trunk' branch on FSF servers. Obvious updates
575 to gcc_alloc_xxx calls in hash_init and hash_class_name_enter to
576 get it to compile in the current trunk.
577
578 2006-01-27 Fariborz Jahanian <fjahanian@apple.com>
579
580 Radar 4345837
581 * objc/objc-act.c (hash_class_name_enter): New.
582 (hash_class_name_lookup): New.
583 (objc_declare_alias): Enter alias name into hash table.
584 (objc_declare_class): Enter class name into hash table.
585 (objc_is_class_name): Do a hash look up of class name.
586 (hash_init): Initialize the two new hash tables.
587 * objc-act.h: Added cls_name_hash_list and als_name_hash_list
588 declarations, removed class_chain and alias_chain.
589
64cd9619 5902010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
591
592 * objc-lang.c (finish_file): Removed.
593 * objc-act.c (objc_finish_file): Renamed to
594 objc_write_global_declarations. Do not try to instantiate C++
595 templates when compiling Objective-C++ as this is now
596 automatically done before this function is called. Do not check
597 for syntax-only run or PCH generation as this is done by the
598 callers.
599 * objc-act.h (objc_finish_file): Removed.
600
e1f293c0 6012010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
602
603 Implemented parsing @synthesize and @dynamic for
604 Objective-C/Objective-C++.
605 * objc-act.c (objc_add_synthesize_declaration): New.
606 (objc_add_dynamic_declaration): New.
607
6082010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
609
610 * objc-act.c (lookup_and_install_protocols): Return NULL if passed
611 error_mark_node.
612
69b07042 6132010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
614
615 Merge from 'apple/trunk' branch on FSF servers.
a1176db9 616
617 2006-03-10 Fariborz Jahanian <fjahanian@apple.com>
618
619 Radar 4407151
620 * objc/objc-act.c (objc_is_class_name): template parameter is not
621 an objective class name.
622 (objc_generate_cxx_cdtors): Check for the null
623 objc_implementation_context.
624
6252010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
626
627 Merge from 'apple/trunk' branch on FSF servers.
69b07042 628
629 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
630
631 Radar 4330422
632 * objc/objc-act.c (objc_non_volatilized_type): New
633
634 2005-10-07 Fariborz Jahanian <fjahanian@apple.com>
635
636 Radar 4204796
637 * objc-act.c (objc_build_volatilized_type): Build 'volatilzed'
638 types with proper attribute set and correctly.
639 (objc_volatilize_decl): Remove unneeded code.
640 (objc_type_quals_match): Use the new attribute to check on
641 'volatilzed' type.
642 (hash_init): removed unneeded code.
643
f15f2e56 6442010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
645
646 Merge from 'apple/trunk' branch on FSF servers.
647
648 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
649
650 Radar 4133425
651 * objc-act.c (objc_diagnose_private_ivar): New.
652
4a8875ed 6532010-10-17 Iain Sandoe <iains@gcc.gnu.org>
654
655 * objc-act.c: Rename 'objc_public_flag' to objc_ivar_visibility and
656 make its type 'objc_ivar_visibility_kind'.
657 (objc_start_class_interface): Update to use visibility enum.
658 (objc_start_class_implementation): Likewise.
659 (objc_set_visibility): Update to use visibility enum, warn that
660 @package is handle as per @public.
661 (add_instance_variable): Handle OBJC_IVAR_VIS_PACKAGE.
662 * objc-act.h: Rename 'objc_public_flag' to objc_ivar_visibility and
663 make its type 'objc_ivar_visibility_kind'.
664
86c110ac 6652010-10-14 Iain Sandoe <iains@gcc.gnu.org>
666
667 merge from FSF apple 'trunk' branch.
668 2006 Fariborz Jahanian <fjahanian@apple.com>
669
670 Radars 4436866, 4505126, 4506903, 4517826
671 * objc-act.c (CALL_EXPR_OBJC_PROPERTY_GETTER): New.
672 property_readonly, property_getter, property_setter, property_ivar,
673 property_copies, in_objc_property_setter_name_context: New vars.
674 (objc_set_property_attr): New.
675 (objc_add_property_variable): New.
676 (lookup_property_in_list): New.
677 (lookup_property): New.
678 (objc_build_getter_call): New.
679 (objc_setter_func_call): New.
680 (get_selector_from_reference): New.
681 (objc_build_setter_call): New.
682 (is_property): New.
683 (build_property_reference): New.
684 (objc_finish_message_expr): Detect readonly property and warn.
685 (objc_build_property_ivar_name): New.
686 (objc_build_property_setter_name): New.
687 (objc_gen_one_property_datum): New.
688 (objc_process_getter_setter): New.
689 (objc_synthesize_getter): New.
690 (objc_synthesize_setter): New.
691 (objc_gen_property_data): New.
692 (finish_class): Generate property data.
693 (comp_proto_with_proto): Separated from ...
694 (match_proto_with_proto): ... New.
695 (objc_lookup_ivar): Handle properties.
696 * objc-tree.def (PROPERTY_DECL): New tree code.
697 * objc-act.h: CLASS_LANG_SLOT_ELTS, PROTOCOL_LANG_SLOT_ELTS update size.
698 (METHOD_PROPERTY_CONTEXT): New.
699 (PROPERTY_NAME): New.
700 (PROPERTY_GETTER_NAME): New.
701 (PROPERTY_SETTER_NAME): New.
702 (PROPERTY_IVAR_NAME): New.
703 (PROPERTY_READONLY): New.
704 (PROPERTY_COPIES): New.
705 (TOTAL_CLASS_RAW_IVARS): New.
706 (CLASS_PROPERTY_DECL): New.
707 (IMPL_PROPERTY_DECL): New.
708 * objc-lang.c (objc_init_ts): Update fields for property_decl.
709
382597e4 7102010-10-13 Richard Henderson <rth@redhat.com>
711
712 * objc-act.c (objc_eh_personality): Update call to
713 build_personality_function.
714
40c8d1dd 7152010-10-13 Iain Sandoe <iains@gcc.gnu.org>
716
717 merge from FSF apple 'trunk' branch.
718
719 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
720 Radar 3803157 (method attributes)
721 * objc/objc-act.h (METHOD_TYPE_ATTRIBUTES): New macro.
722 * objc/objc-act.c (objc_decl_method_attributes): New.
723 (objc_add_method_declaration): Process method's attribute.
724 (objc_start_method_definition): Ditto.
725 (build_objc_method_call): Inject method attribute into
726 built function type.
727 (objc_method_decl): New.
728 (objc_warn_deprecated)use): New.
729
18cfeada 7302010-10-07 Andi Kleen <ak@linux.intel.com>
731
732 * Make-lang.in (cc1obj-dummy): Remove.
733 (cc1obj-checksum): Change to run checksum over object files
734 and options only.
735
31a38208 7362010-10-07 Nicola Pero <nicola.pero@meta-innovation.com>
737
738 PR objc/45925
739 * objc-act.c (objc_finish_foreach_loop): Convert return value of
740 countByEnumeratingWithState:objects:count: to long unsigned int.
741
b79b475d 7422010-10-07 Iain Sandoe <iains@gcc.gnu.org>
743
40d49b18 744 * objc-act.c (build_objc_method_call): Replace calls to
745 build_function_call () with the VEC equivalent. Construct parameter
746 lists as VECs.
747
7482010-10-07 Iain Sandoe <iains@gcc.gnu.org>
749
750 * objc-act.c (objc_build_message_expr): Call mark_exp_read () to
751 signal that the receiver has been used.
b79b475d 752
e1aa4dab 7532010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
754
755 * README: Obsolete file removed.
756
0a65c3bb 7572010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
758
759 Implemented fast enumeration for Objective-C.
760 * objc-act.c (build_fast_enumeration_state_template): New.
761 (TAG_ENUMERATION_MUTATION): New.
762 (TAG_FAST_ENUMERATION_STATE): New.
763 (synth_module_prologue): Call build_fast_enumeration_state_template() and set up
764 objc_enumeration_mutation_decl.
765 (objc_create_temporary_var): Allow providing a name to temporary
766 variables.
767 (objc_build_exc_ptr): Updated calls to
768 objc_create_temporary_var().
769 (next_sjlj_build_try_catch_finally): Same change.
770 (objc_finish_foreach_loop): New.
771 * objc-act.h: Added OCTI_FAST_ENUM_STATE_TEMP,
772 OCTI_ENUM_MUTATION_DECL, objc_fast_enumeration_state_template,
773 objc_enumeration_mutation_decl.
774
775 Merge from 'apple/trunk' branch on FSF servers.
776
777 2006-04-12 Fariborz Jahanian <fjahanian@apple.com>
778
779 Radar 4507230
780 * objc-act.c (objc_type_valid_for_messaging): New routine to check
781 for valid objc object types.
782 (objc_finish_foreach_loop): Check for invalid objc objects in
783 foreach header.
784
06517bd4 7852010-10-05 Nicola Pero <nicola.pero@meta-innovation.com>
786
787 Merge from 'apple/trunk' branch on FSF servers.
788
789 2005-10-17 Fariborz Jahanian <fjahanian@apple.com>
790
791 Radar 4290840
0a65c3bb 792 * objc-act.c (objc_start_method_definition): Check for
793 error_mark_node for the selector name and make a quick exit.
06517bd4 794
70293f47 7952010-10-04 Andi Kleen <ak@linux.intel.com>
796
797 * Make-lang.in (cc1obj-dummy, cc1obj): Add + to build rule.
798
069761fb 7992010-09-30 Iain Sandoe <iains@gcc.gnu.org>
800
801 merge from FSF 'apple/trunk' branch.
802 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
803
804 Radar 4386773
805 * objc/objc-act.c (objc_set_method_opt): New function.
806 (objc_start_protocol, objc_finish_interface): Reset
807 objc_method_optional_flag flag.
808 (objc_add_method_declaration): Pass on the new
809 flag to objc_add_method.
810 (objc_add_method): Add optional methods to new chain in
811 the protocol class.
812 * objc/objc-act.h (CLASS_OPTIONAL_CLS_METHODS,
813 CLASS_OPTIONAL_NST_METHODS): New macros accessing a protocol
814 class's optional method chains.
815
180bb2c0 8162010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
817
818 Merge from 'apple/trunk' branch on FSF servers.
819
820 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
821
822 Radar 4278236
823 * objc-act.c (objc_declare_class): Pick the right
824 type tree.
825
3511333e 8262010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
e147d6aa 827
828 Merge from 'apple/trunk' branch on FSF servers.
829
830 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
831
832 Radar 4281748
833 * objc-act.c (objc_check_global_decl): New
834
b27e241e 8352010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
836
837 * objc-act.c (objc_is_reserved_word): Removed.
838
03fc2271 8392010-09-28 Iain Sandoe <iains@gcc.gnu.org>
840
841 * objc-act.c (objc_add_method_declaration): Handle and ignore
842 attributes.
843 (objc_start_method_definition): Likewise.
844 (objc_generate_cxx_ctor_or_dtor): Pass NULL attributes to ctor/dtor.
845 (objc_build_keyword_decl): Handle and ignore attributes.
846
cc7d6aed 8472010-09-28 Richard Henderson <rth@redhat.com>
848
849 * objc-act.c (objc_eh_personality): Use targetm.except_unwind_info.
850
a336eb4b 8512010-09-28 Iain Sandoe <iains@gcc.gnu.org>
852
853 * objc-act.c (objc_start_class_interface): Handle and ignore attributes.
854 (objc_start_category_interface): Likewise.
855 (objc_start_protocol): Likewise.
856
ea446b0b 8572010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
858
859 Merge from 'apple/trunk' branch on FSF servers.
860
861 2005-08-23 Stuart Hastings <stuart@apple.com>
862 Ziemowit Laski <zlaski@apple.com>
863
864 Radar 4209854
865 * objc-act.c (objc_decay_parm_type): New function.
866 (get_arg_type_list): Decay types for all named arguments.
867 (objc_push_parm): Rebuild the PARM_DECL if its type has
868 been decayed.
869
9bc9b0a9 8702010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
c4bdb14e 871
872 * objc-act.c (encode_type): Fixed encoding enums with the next
873 runtime.
874
a198e083 8752010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
876
877 Merge from 'apple/trunk' branch on FSF servers.
878
879 2005-07-18 Ziemowit Laski <zlaski@apple.com>
880
881 Radar 4175534
882 * objc-act.c (objc_compare_types): A new silent comparison
883 mode (-4), differing from regular comparison (-3) in that
884 'false' is returned instead of issuing warnings.
885
eb855c7a 8862010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
887
888 * objc-act.c (encode_type): Do not add 'r' with the next runtime.
889 (encode_aggregate_within): Reorganized code to be more readable.
890 (encode_aggregate_fields): Updated second argument to be 'bool'
891 instead of 'int'.
892
f8ee0563 8932010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
894
895 PR objc/45763
896 PR objc/25450
897 PR objc/25464
898 * objc-act.c: Improved comments for encoding functions.
899 (encode_aggregate_within): For the GNU runtime, rewritten some
900 obsfuscated code to clarify the various cases.
901 (encode_aggregate): Function removed.
902 (encode_array): Generate an error if asked to encode an incomplete
903 array as part of generating instance variables. Else, when
904 encoding an incomplete array inside a structure, encode it as an
905 array of zero size.
906 (encode_pointer): For the GNU runtime, fixed encoding 'BOOL *' as
907 '^c' instead of '*'.
908 (encode_gnu_bitfield): Encode enumerated types exactly in the same
909 type as integer types instead of using a hardcoded 'i'. If asked
910 to encode a non-integer type as a bitfield, do not abort
911 compilation immediately; instead generate an error, then skip the
912 type.
913 (encode_type): Use a 'switch' instead of a sequence of 'if's.
914 Added a 'default' clause that gets executed if the type can not be
915 matched, and that encodes it as '?' (unknown) and produces a
916 warning. For the GNU runtime, encode enumerated types exactly in
917 the same way as integer types instead of using a hardcoded 'i'.
918 Encode long double as 'D'. Encode 128-bit integers as 'T' or 't'.
919 Encode C++ reference types as pointers. Call encode_vector to
920 encode vectors.
921 (encode_vector): New function.
922
9232010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
924
925 Merge from 'apple/trunk' branch on FSF servers. I modified the
926 changes to be used only when compiling for the NeXT runtime.
927
928 2005-10-10 Fariborz Jahanian <fjahanian@apple.com>
929
930 Radar 4301047
931
932 * objc-act.c (encode_type): Remove the hack.
933
934 2005-07-20 Ziemowit Laski <zlaski@apple.com>
935
936 Radar 4136935
937 * objc-act.c (pointee_is_readonly): New function.
938 (encode_pointer, encode_aggregate_within, encode_type):
939 Attempt to emulate GCC 3.3 when generating type encodings.
940
4abfc532 9412010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
942
943 Merge from 'apple/trunk' branch on FSF servers.
944
945 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
946
947 Radar 4229905
948 * objc-act.c (objc_have_common_types): New function.
949
950 2005-06-22 Ziemowit Laski <zlaski@apple.com>
951
952 Radar 4154928
953 * objc-act.c (objc_common_type): New function.
954
059410d7 9552010-09-27 Richard Guenther <rguenther@suse.de>
956
957 * objc-act.c (objc_get_class_reference): Use CP_TYPE_CONTEXT.
958 (objc_is_global_reference_p): Use DECL_FILE_SCOPE_P.
959
5ed38d93 9602010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
961
962 * objc-act.c: Removed historical, obsolete comment at the top of
963 the file.
964
d4a8fb25 9652010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
966
967 PR objc/23710
968 * objc-act.c (objc_start_method_definition): Do not abort upon a
969 'method definition not in @implementation context' error. Return
970 'false' instead.
971
e93ea189 9722010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
973
974 PR objc/25965
975 * objc-act.c (objc_get_interface_ivars): New function.
976 (objc_collecting_ivars): New variable.
977 (continue_class): Set and reset objc_collecting_ivars for context.
978
b24ba8fa 9792010-09-15 Nicola Pero <nicola.pero@meta-innovation.com>
980
981 Merge from 'apple/trunk' branch on FSF servers.
982
983 2006-03-09 Fariborz Jahanian <fjahanian@apple.com>
984
985 Radar 4457381
986 * objc/objc-act.c (objc_finish_message_expr): Look for message in
987 @class's protocol list.
988
989 2006-02-07 Fariborz Jahanian <fjahanian@apple.com>
990
991 Radar 4219590
992 * objc/objc-act.c (objc_start_method_definition): Initialize
993 break/continue labels.
994
995 2005-08-22 Ziemowit Laski <zlaski@apple.com>
996
997 Radar 4174166
998 * objc-act.c (objc_compare_types): Compare function
999 pointers; indicate success if the right-hand side has
1000 a return type that is covariant, and the argument types
1001 contravariant, with those of the left side.
1002
1003 2005-08-22 Ziemowit Laski <zlaski@apple.com>
1004
1005 Radar 4216500
1006 * objc-act.c (objc_get_protocol_qualified_type): When looking
1007 at a typedef, retrieve the precise type it describes (rather
1008 than merely looking up a class by name).
1009
48ca71c2 10102010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1011
1012 * objc/objc-act.c (objc_begin_try_stmt): Generate an error if
1013 -fobjc-exceptions was not used. (objc_build_throw_stmt): Same
1014 change.
1015
1767a056 10162010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1017
1018 * objc-act.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1019
c4796e8b 10202010-07-10 Iain Sandoe <iains@gcc.gnu.org>
1021
1022 PR objc/44140
1023 * objc-act.c: build_objc_string_decl() remove declaration.
1024 (finish_var_decl): Remove forcing of var output and marking
1025 as "Used".
1026 (init_def_list): Use integer_zero_node.
1027 (init_objc_symtab): Use integer_zero_node, make the short
1028 integer type specific on relevant nodes.
1029 (generate_objc_symtab_decl): Remove call to
1030 forward_declare_categories(). Use null_pointer_node where
1031 appropriate.
1032 (build_module_descriptor): Comment and mark this item as
1033 DECL_PRESERVE_P.
1034 (generate_static_references): Use gcc_unreachable instead of
1035 abort ().
1036 (diagnose_missing_method): New.
1037 (build_next_selector_translation_table): New.
1038 (build_gnu_selector_translation_table): New.
1039 (add_objc_string): Merge code from build_objc_string_decl...
1040 ... and delete build_objc_string_decl().
1041 (generate_dispatch_table): Make integer types explicit.
1042 (generate_category): Pass implent and arrange for the data
1043 to be extracted within the routine. Do not start new vars,
1044 but finish the ones collcted during parsing.
1045 (generate_shared_structures): Likewise.
1046 (finish_objc): Reorder code so that we finish variables before
1047 referencing them. Save the global data before calling meta-data
1048 creation routines, and pass the current reference to the two
1049 main routines. Only call generate_objc_image_info () for the
1050 NeXT runtime.
1051 (generate_classref_translation_entry): Comment on and make this
1052 item DECL_PRESERVE_P.
1053 (handle_class_ref): Use varpool interfaces, comment on and make
1054 this item DECL_PRESERVE_P.
1055 (handle_impent): Likewise.
1056 (generate_objc_image_info): Only generate when the content is
1057 non-zero. Make integer types explict.
1058
6ab3a6e6 10592010-07-03 Nathan Froyd <froydnj@codesourcery.com>
1060
1061 PR objc/24867
1062 * objc-act.c (build_sized_array_type): New function.
1063 (add_objc_string): Use it.
1064 (generate_protocol_list): Likewise.
1065 (generate_objc_image_info): Likewise.
1066 (add_field_decl): New function.
1067 (objc_build_struct): Use a VEC rather than building a TREE_LIST.
1068 (generate_struct_by_value_array): Use add_field_decl.
1069 (build_objc_symtab_template): Likewise.
1070 (build_module_descriptor): Likewise.
1071 (build_objc_exception_stuff): Likewise.
1072 (build_protocol_template): Likewise.
1073 (build_method_prototype_list_template): Likewise.
1074 (build_method_prototype_template): Likewise.
1075 (build_category_template): Likewise.
1076 (build_selector_template): Likewise.
1077 (build_class_template): Likewise.
1078 (build_super_template): Likewise.
1079 (build_ivar_template): Likewise.
1080 (build_ivar_list_template): Likewise.
1081 (build_method_list_template): Likewise.
1082 (build_method_template): Likewise.
1083
596981c8 10842010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1085
1086 * objc-act.c: Do not include except.h.
1087
ba72912a 10882010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1089
1090 * objc-act.h (ALLOC_OBJC_TYPE_LANG_SPECIFIC): Use typed GC
1091 allocation.
1092
1093 * objc-act.c (objc_volatilize_decl): Likewise.
1094 (objc_build_string_object): Likewise.
1095 (hash_init): Likewise.
1096 (hash_enter): Likewise.
1097 (hash_add_attr): Likewise.
1098 (add_class): Likewise.
1099 (start_class): Likewise.
1100
7bedc3a0 11012010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1102
1103 * objc-act.c: Update include path for moved files.
1104 * objc-lang.c: Likewise.
1105 * config-lang.in: Update paths in gtfiles for files in c-family/.
1106
70b3bc87 11072010-06-01 Nathan Froyd <froydnj@codesourcery.com>
1108
1109 * objc-act.c (build_next_objc_exception_stuff): Give setjmp a
1110 varargs type instead of a zero-argument type.
1111
a2c73aa9 11122010-05-30 Nathan Froyd <froydnj@codesourcery.com>
1113
1114 * objc-act.c (synth_module_prologue): Use build_function_type_list
1115 instead of build_function_type.
1116 (build_module_initializer_routine): Likewise.
1117 (build_next_objc_exception_stuff): Likewise.
1118 (build_objc_exception_stuff): Likewise.
1119
852f689e 11202010-05-27 Joseph Myers <joseph@codesourcery.com>
1121
1122 * objc-act.c: Include diagnostic-core.h instead of diagnostic.h.
1123 * Make-lang.in (objc/objc-act.o): Update dependencies.
1124
c4b9c21a 11252010-05-25 Steven Bosscher <steven@gcc.gnu.org>
1126
1127 * objc-act.h: Do not include gimple.h.
1128 * objc-act.c: Do not include rtl.h, expr.h, libfuncs.h, and tm_p.h.
1129 Include gimple.h. Explain why except.h has to be included.
1130 * objc-lang.c: Do not include diagnostics.h.
1131 * Make-lang.in: Update dependencies.
1132
d3f0a7c5 11332010-05-25 Nathan Froyd <froydnj@codesourcery.com>
1134
1135 * objc-act.c (objc_build_constructor): Adjust OBJCPLUS impedance
1136 mismatch code for VECs.
1137
4c6b0360 11382010-05-25 Nathan Froyd <froydnj@codesourcery.com>
1139
1140 * objc-act.c (objc_build_constructor): Take a VEC instead of a tree.
1141 Use build_constructor instead of build_constructor_from_list.
1142 (objc_build_string_object): Build a VEC argument for
1143 objc_build_constructor.
1144 (init_def_list): Likewise.
1145 (init_objc_symtab): Likewise.
1146 (init_module_descriptor): Likewise.
1147 (generate_static_references): Likewise.
1148 (build_selector_translation_table): Likewise.
1149 (build_descriptor_table_initializer): Likewise.
1150 (generate_descriptor_table): Likewise.
1151 (build_protocol_initializer): Likewise.
1152 (build_ivar_list_initializer): Likewise.
1153 (generate_ivars_list): Likewise.
1154 (build_dispatch_table_initializer): Likewise.
1155 (generate_dispatch_table): Likewise.
1156 (generate_protocol_list): Likewise.
1157 (build_category_initializer): Likewise.
1158 (build_shared_structure_initializer): Likewise.
1159 (generate_objc_image_info): Likewise.
1160
da1ad6a6 11612010-04-30 Iain Sandoe <iains@gcc.gnu.org>
1162
1163 PR objc++/32052
1164 * objc-act.c (encode_aggregate_within): Encode structure tags
1165 with template args for ObjC++.
1166
3f9da559 11672010-04-30 Steven Bosscher <steven@gcc.gnu.org>
1168
1169 * objc-act.c: Do not include varray.h.
1170
abc6c64f 11712010-04-07 Jakub Jelinek <jakub@redhat.com>
1172
1173 PR c/18624
1174 * objc-act.c (finish_var_decl, objc_begin_catch_clause,
1175 really_start_method, get_super_receiver, handle_class_ref): Set
1176 DECL_READ_P in addition to TREE_USED.
1177
421351fb 11782010-04-07 Iain Sandoe <iains@gcc.gnu.org>
1179
1180 PR objc/35996
1181 * objc-act.c (objc_init): Warn that -fobjc-gc is ignored for
1182 -fgnu-runtime and set flag_objc_gc to zero.
1183
1ecc1105 11842010-04-07 Iain Sandoe <iains@gcc.gnu.org>
1185
1186 PR objc++/23716
1187 * objc-act.c (build_module_initializer_routine): Make the argument
1188 to objc_start_function NULL_TREE when compiling ObjC++.
1189
44434890 11902010-02-18 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1191 Mike Stump <mikestump@comcast.net>
1192
8f071285 1193 PR objc/43061
44434890 1194 * objc-act.c (finish_var_decl): Set the generated symbols as "used".
1195
535059dc 11962009-12-17 Shujing Zhao <pearly.zhao@oracle.com>
1197
1198 * objc-act.c (objc_substitute_decl, build_ivar_reference,
1199 get_super_receiver): Update build_indirect_ref calls.
1200
2b03c8ee 12012009-11-28 Jakub Jelinek <jakub@redhat.com>
1202
f018d957 1203 * objc-act.c (generate_shared_structures): Remove unused sc_spec and
1204 decl_specs variables.
1205 (objc_build_message_expr): Remove unused loc variable.
1206 (objc_finish_message_expr): Remove unused saved_rtype variable.
1207 (encode_field_decl): Remove unused type variable.
1208
2b03c8ee 1209 PR obj-c++/42156
1210 * objc-act.c (objc_build_struct): INIT_TYPE_OBJC_INFO for
1211 type variants that don't have it initialized yet.
1212
078c3ef3 12132009-09-14 Jan Hubicka <jh@suse.cz>
1214
1215 * objc-act.c (objc_add_static_instance): Do not set DECL_COMMON.
1216
e38def9c 12172009-09-14 Richard Henderson <rth@redhat.com>
1218
1219 * objc-act.c (objc_init_exceptions): Don't call
1220 default_init_unwind_resume_libfunc.
1221 (objc_build_exc_ptr): Use __builtin_eh_pointer.
1222
58d82cd0 12232009-09-13 Richard Guenther <rguenther@suse.de>
1224 Rafael Avila de Espindola <espindola@google.com>
1225
1226 * objc-act.c (objc_eh_runtime_type): Export.
1227 (objc_init_exceptions): Remove. Move warning code ...
1228 (objc_begin_try_stmt): ... here
1229 (objc_build_throw_stmt): ... and here.
1230 (objc_eh_personality_decl): New.
1231 (objc_eh_personality): New function.
1232 * objc-act.h (objc_eh_runtime_type): Declare.
1233 (objc_eh_personality): Likewise.
1234 * objc-lang.c (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
1235 (LANG_HOOKS_EH_PERSONALITY): Likewise.
1236
34e5cced 12372009-09-03 Diego Novillo <dnovillo@google.com>
1238
1239 * objc-lang.c (lang_hooks): Remove const qualifier.
1240
874993a5 12412009-08-20 Richard Guenther <rguenther@suse.de>
1242
1243 * objc-act.c: Include c-lang.h
1244 * Make-lang.in (objc/objc-act.o): Add c-lang.h dependency.
1245
389dd41b 12462009-07-17 Aldy Hernandez <aldyh@redhat.com>
1247 Manuel López-Ibáñez <manu@gcc.gnu.org>
1248
1249 PR 40435
1250 * objc-act.c: Add location argument to all calls to
1251 build_fold_addr_expr.
1252
c02b6f4e 12532009-07-14 Taras Glek <tglek@mozilla.com>
1254 Rafael Espindola <espindola@google.com>
1255
1256 * Make-lang.in (objc.install-plugin): New target for
1257 installing plugin headers.
1258
1cf1742e 12592009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1260
1261 * objc-act.c (next_sjlj_build_catch_list): Replace EXPR_LOCUS by
1262 EXPR_LOCATION.
1263
712d2297 12642009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1265
1266 * objc-act.c: Replace %J by an explicit location. Update all
1267 calls.
1268
5fb6a912 12692009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1270
1271 * objc-act.c: Replace %H by an explicit location. Update all
1272 calls.
1273
61a9d3ca 12742009-06-22 Steven Bosscher <steven@gcc.gnu.org>
1275
1276 PR objc/28050
1277 * objc-act.c (objc_build_message_args): Return if ARGS is the
1278 error_mark_node.
1279
843bd2fa 12802009-06-19 Ian Lance Taylor <iant@google.com>
1281
1282 * objc-act.c (objc_in_struct, objc_struct_types): Remove.
1283 (objc_struct_info): New static variable.
1284 (objc_start_struct): Pass &objc_struct_info, not &objc_in_struct
1285 and &objc_struct_types, to start_struct.
1286 (objc_finish_struct): Likewise for finish_struct.
1287
f805d53d 12882009-06-15 Ian Lance Taylor <iant@google.com>
1289
1290 * objc-act.c (objc_start_function): Don't set
1291 label_context_stack_se or label_context_stack_vm.
1292
e60a6f7b 12932009-06-12 Aldy Hernandez <aldyh@redhat.com>
1294
1295 * objc-act.c (finish_var_decl): Pass location to finish_decl.
1296 (objc_get_parm_info): Same.
1297 (get_super_receiver): Same.
1298 * objc-act.c (objc_build_component_ref): Pass location to
1299 build_compound_ref.
1300 (build_module_initializer_routine): Pass location to
1301 c_end_compound_stmt.
1302 (objc_generate_static_init_call): Pass location to build_stmt.
1303 (build_typed_selector_reference): New location argument.
1304 (build_selector_reference): Same.
1305 (objc_substitute_decl): Pass location to build_array_ref.
1306 (next_sjlj_build_try_catch_finally): Pass location to build_stmt.
1307 (objc_begin_catch_clause): Same.
1308 (objc_finish_try_stmt): Same.
1309 (objc_finish_catch_clause): Pass location to c_end_compound_stmt.
1310 (objc_build_throw_stmt): New argument.
1311 (generate_shared_structures): Pass location to build_c_cast.
1312 (objc_build_message_expr): Use local location.
1313 (objc_finish_message_expr): Use input_location.
1314 (build_objc_method_call): New argument.
1315 (objc_build_selector_expr): Same.
1316 (get_super_receiver): Pass location to build_c_cast,
1317 build_modify_expr, build_compound_expr.
1318 * objc-act.c: Add location to all calls to start_struct, build_decl,
1319 finish_struct.
1320
d5b637fa 13212009-06-09 Ian Lance Taylor <iant@google.com>
1322
1323 * objc-act.c (objc_gimplify_expr): Change return type to int.
1324 * objc-act.h: Update declaration.
1325
71278019 13262009-06-08 Alexandre Oliva <aoliva@redhat.com>
1327
1328 * objc-act.c (objc_init): Skip print_struct_values during
1329 -fcompare-debug-second.
1330
cd819d2f 13312009-06-03 Ian Lance Taylor <iant@google.com>
1332
1333 * Make-lang.in (cc1obj-checksum.o): Depend upon $(CONFIG_H) and
1334 $(SYSTEM_H).
1335
40b6e20e 13362009-05-27 Ian Lance Taylor <iant@google.com>
1337
1338 * Make-lang.in (cc1obj-dummy$(exeext)): Change $(COMPILER) to
1339 $(LINKER).
1340 (cc1obj$(exeext)): Likewise.
1341
585d4848 13422009-05-26 Ian Lance Taylor <iant@google.com>
1343
1344 * Make-lang.in (cc1obj-dummy$(exeext)): Use $(COMPILER).
1345 (cc1obj$(exeext)): Likewise.
1346
f352a3fb 13472009-05-20 Ian Lance Taylor <iant@google.com>
1348
1349 * objc-act.c (objc_generate_cxx_ctor_or_dtor): Pass NULL rather
1350 than NULL_TREE to build_special_member_call.
1351
0b09525f 13522009-05-10 Ian Lance Taylor <iant@google.com>
1353
1354 * objc-act.c (objc_building_struct): New static variable.
1355 (objc_in_struct, objc_struct_types): New static variables.
1356 (objc_start_struct, objc_finish_struct): New static functions.
1357 (generate_struct_by_value_array): Call objc_start_struct instead
1358 of start_struct, and call objc_finish_struct instead of
1359 finish_struct.
1360 (objc_build_struct, build_objc_symtab_template): Likewise.
1361 (build_module_descriptor): Likewise.
1362 (build_next_objc_exception_stuff): Likewise.
1363 (build_protocol_template): Likewise.
1364 (build_method_prototype_list_template): Likewise.
1365 (build_method_prototype_template): Likewise.
1366 (build_category_template, build_selector_template): Likewise.
1367 (build_class_template, build_super_template): Likewise.
1368 (build_ivar_template, build_ivar_list_template): Likewise.
1369 (build_method_list_template): Likewise.
1370 (build_method_template): Likewise.
1371
a608187f 13722009-05-10 Joseph Myers <joseph@codesourcery.com>
1373
1374 * objc-act.c: Include intl.h.
1375 (objc_lookup_protocol): Use complete sentences for diagnostics
1376 with %qE for identifiers and translating results of
1377 gen_type_name_0 to locale character set.
1378 (objc_check_decl, check_protocol_recursively,
1379 lookup_and_install_protocols, objc_build_string_object,
1380 objc_get_class_reference, objc_declare_alias, objc_declare_class,
1381 objc_get_class_ivars, error_with_ivar, check_duplicates,
1382 objc_finish_message_expr, objc_build_protocol_expr,
1383 objc_build_selector_expr, build_ivar_reference, objc_add_method,
1384 add_category, add_instance_variable, objc_is_public,
1385 check_methods, check_methods_accessible, check_protocol,
1386 start_class, finish_class, start_protocol, really_start_method,
1387 get_super_receiver, objc_lookup_ivar): Use %E and %qE for
1388 identifiers in diagnostics. Translate generated text to locale
1389 character set as needed.
1390 (check_protocol, check_protocols): Change name parameter to type
1391 tree.
1392 (lang_report_error_function): Remove.
1393
bc620c5c 13942009-04-27 Ian Lance Taylor <iant@google.com>
1395
1396 * objc-act.c (objc_gimplify_expr): Add casts to enum type.
1397
8458f4ca 13982009-04-24 Ian Lance Taylor <iant@google.com>
1399
1400 * objc-act.c (get_super_receiver): Update calls to
1401 build_modify_expr to pass new argument.
1402
fb1e4f4a 14032009-04-21 Taras Glek <tglek@mozilla.com>
1404
1405 * objc-act.c: Update GTY annotations to new syntax
1406 * objc-act.h: Likewise
1407
7dfbd804 14082009-04-21 Joseph Myers <joseph@codesourcery.com>
1409
1410 * ChangeLog: Add copyright and license notices.
1411
b9c74b4d 14122009-04-20 Ian Lance Taylor <iant@google.com>
1413
1414 * objc-act.c (objc_rewrite_function_call): Change parameter from
1415 params to first_param. Change all callers.
1416
a3cad4e4 14172009-03-30 Dominique d'Humieres <dominiq@lps.ens.fr>
1418
1419 PR bootstrap/39583
1420 * objc-act.c (in_late_binary_op): Define for Objective-C++.
1421
a75b1c71 14222009-03-29 Joseph Myers <joseph@codesourcery.com>
1423
1424 PR c/456
1425 PR c/5675
1426 PR c/19976
1427 PR c/29116
1428 PR c/31871
1429 PR c/35198
1430 * objc-act.c (objc_finish_try_stmt): Set in_late_binary_op.
1431
9322d72e 14322008-12-05 Sebastian Pop <sebastian.pop@amd.com>
29bb3e39 1433
1434 PR bootstrap/38262
1435 * Make-lang.in (cc1obj-dummy, cc1obj): Add BACKENDLIBS,
1436 remove GMPLIBS.
1437
b6889cb0 14382008-10-06 Aldy Hernandez <aldyh@redhat.com>
1439
1440 * objc-act.c (objc_build_string_object): Pass location to
1441 build_unary_op.
1442 (init_def_list): Same.
1443 (init_objc_symtab): Same.
1444 (init_module_descriptor): Same.
1445 (build_module_initializer_routine): Same.
1446 (generate_static_references): Same.
1447 (build_typed_selector_reference): Same.
1448 (add_objc_string): Same.
1449 (objc_substitute_decl): Same.
1450 (objc_build_ivar_assignment): Same.
1451 (objc_build_global_assignment): Same.
1452 (objc_build_strong_cast_assignment): Same.
1453 (generate_protocols): Same.
1454 (build_protocol_initializer): Same.
1455 (build_dispatch_table_initializer): Same.
1456 (generate_protocol_list): Same.
1457 (build_category_initializer): Same.
1458 (build_shared_structure_initializer): Same.
1459 (generate_shared_structures): Same.
1460 (objc_build_protocol_expr): Same.
1461 (build_ivar_reference): Same.
1462 (get_super_receiver): Same.
1463
8e70fb09 14642008-09-23 Aldy Hernandez <aldyh@redhat.com>
1465
1466 * objc-act.c (next_sjlj_build_enter_and_setjmp): Call
1467 c_common_truthvalue_conversion with location.
1468 (next_sjlj_build_catch_list): Same.
1469 (next_sjlj_build_try_catch_finally): Same.
1470
4cd62850 14712008-09-17 Andrew Pinski <andrew_pinski@playstation.sony.com>
1472
1473 PR objc/37460
1474 * objc-lang.c (LANG_HOOKS_GET_CALLEE_FNDECL): Don't define.
1475 * objc-act.h (objc_get_callee_fndecl): Remove prototype.
1476 * objc-act.c (objc_get_callee_fndecl): Kill.
1477
73b5e722 14782008-09-17 Jan Hubicka <jh@suse.cz>
1479
1480 PR c++/18071
1481 * objc/objc-act.c (objc_finish_method_definition): Do not set
1482 DECL_INLINE.
1483
dda49785 14842008-09-01 Aldy Hernandez <aldyh@redhat.com>
1485
1486 * objc-act.c (build_typed_selector_reference): Pass input_location to
1487 build_unary_op calls.
1488 (build_selector_reference): Same, but to build_array_ref.
1489 (objc_substitute_decl): Same.
1490 (build_ivar_reference): Same, but to build_indirect_ref.
1491 (get_super_receiver): Same.
1492
75a70cf9 14932008-07-28 Richard Guenther <rguenther@suse.de>
1494
1495 Merge from gimple-tuples-branch.
1496
1497 2008-07-18 Aldy Hernandez <aldyh@redhat.com>
1498
1499 * Make-lang.in (objc-lang.o): Depend on GIMPLE_H.
1500 (objc-act.o): Rename TREE_GIMPLE_H to GIMPLE_H.
1501 * objc-act.h: Include gimple.h instead of tree-gimple.h.
1502 * ipa-reference.c: Same.
1503
1504 2007-11-10 Aldy Hernandez <aldyh@redhat.com>
1505
1506 * objc-act.c (objc_gimplify_expr): Change pre and post to sequences.
1507 * objc-act.h (objc_gimplify_expr): Change prototype accordingly.
1508
08cc44e7 15092008-07-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1510
1511 * objc-act.c: Fix comment typos.
1512
ceb0f408 15132008-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1514
1515 * objc-act.c (objc_start_class_interface,
1516 objc_start_category_interface, objc_start_class_implementation,
1517 objc_start_category_implementation, objc_build_struct,
1518 generate_static_references, build_private_template,
1519 lookup_category, objc_add_method, add_category,
1520 add_instance_variable, objc_is_public, conforms_to_protocol,
1521 start_class, continue_class, finish_class): Avoid C++ keywords.
1522
b4d6f57b 15232008-07-14 Jason Merrill <jason@redhat.com>
1524
1525 PR objc++/36723
1526 * objc-act.c (objc_build_constructor): Update C++ tweak.
1527
d3eff7bb 15282007-07-14 Rafael Ávila de Espíndola <espindola@google.com>
7cb6f926 1529
1530 * objc-act.c (synth_module_prologue): Use TREE_NO_WARNING instead
1531 of DECL_IN_SYSTEM_HEADER.
1532
5c6e5756 15332008-07-11 Ian Lance Taylor <iant@google.com>
1534
1535 * objc-act.c (objc_is_reserved_word): Always check for RID_CLASS,
1536 etc., not just when OBJCPLUS is defined.
1537
25a1c410 15382008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1539
1540 * objc-act.c (setup_string_decl, objc_build_string_object,
1541 hash_interface, eq_interface, objc_begin_try_stmt,
1542 encode_method_prototype, build_ivar_list_initializer,
1543 objc_build_encode_expr): Fix for -Wc++-compat.
1544
92cce2b2 15452008-05-12 Tomas Bily <tbily@suse.cz>
1546
1547 * objc-act.c (objc_generate_write_barrier, objc_finish_message_expr):
1548 Use CONVERT_EXPR_P.
1549
c7d4e749 15502008-04-23 Paolo Bonzini <bonzini@gnu.org>
1551
1552 * objc-act.c (objc_build_string_object): Don't set TREE_INVARIANT.
1553
6fb2153a 15542008-04-03 Tom Tromey <tromey@redhat.com>
1555
1556 * Make-lang.in (objc_OBJS): New variable.
1557
21886706 15582008-03-27 Tom Tromey <tromey@redhat.com>
1559
1560 * Make-lang.in: Revert automatic dependency patch.
1561
717ecce9 15622008-03-27 Douglas Gregor <doug.gregor@gmail.com>
1563
1564 PR obj-c++/35704
1565 * objc-act.c (objc_build_component_ref): Fix call to
1566 finish_class_member_access_expr.
1567 (objc_generate_cxx_ctor_or_dtor): Fix call to
1568 build_special_member_call.
1569
e226f54f 15702008-03-25 Andrew Pinski <pinskia@gmail.com>
1571
1572 PR objc/29197
1573 * objc-act.c (encode_type): Handle when type is error_mark_node.
1574 (objc_push_parm): Handle when the type of parm is error_mark_node.
1575
277b05bb 15762008-03-25 Tom Tromey <tromey@redhat.com>
1577
1578 * Make-lang.in (objc_OBJS): New variable.
1579 (cc1obj-checksum.o, objc/objc-lang.o, objc/objc-act.o): Remove.
1580
3594ce91 15812008-03-21 Andreas Tobler <a.tobler@schweiz.org>
1582
1583 PR bootstrap/35660
1584 * objc-act.c (objc_generate_cxx_ctor_or_dtor): Rename IS_AGGR_TYPE to
1585 MAYBE_CLASS_TYPE_P.
1586 (objc_generate_cxx_cdtors): Likewise.
1587 (add_instance_variable): Likewise.
1588
9c85a98a 15892008-02-26 Tom Tromey <tromey@redhat.com>
1590
1591 * objc-act.c (objc_init): Remove old location code.
1592
6ca01c3b 15932008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1594
1595 PR other/35107
1596 * Make-lang.in (cc1obj-dummy, cc1obj): Add $(GMPLIBS).
1597
c3adda75 15982007-07-30 Nick Clifton <nickc@redhat.com>
1599
1600 * Make-lang.in: Change copyright header to refer to version 3 of
1601 the GNU General Public License and to point readers at the
1602 COPYING3 file and the FSF's license web page.
1603 * lang-specs.h, objc-act.c, objc-tree.def, objc-act.h,
1604 config-lang.in, objc-lang.c: Likewise.
1605
b7bf20db 16062007-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1607
1608 * objc-act.c (objc_get_callee_fndecl): Constify.
1609 * objc-act.h (objc_get_callee_fndecl): Likewise.
1610
aae87fc3 16112007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1612
1613 * objc-act.c (volatilized_hash, volatilized_eq, string_hash,
1614 string_eq): Constify.
1615
2a3c85c8 16162007-04-04 Stuart Hastings <stuart@apple.com>
1617
1618 PR 31281
1619 * objc/objc-act.c (next_sjlj_build_catch_list): Delete volatile from rethrow decl.
1620
52df3169 16212007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1622
1623 * Make-lang.in: Add dummy lang.install-pdf target.
1624
97419919 16252007-02-18 Kazu Hirata <kazu@codesourcery.com>
1626
1627 * objc/objc-act.c: Fix comment typos.
1628
c2f47e15 16292007-02-15 Sandra Loosemore <sandra@codesourcery.com>
1630 Brooks Moses <brooks.moses@codesourcery.com>
1631 Lee Millward <lee.millward@codesourcery.com>
1632
1633 * objc-act.c (receiver_is_class_object): Use new CALL_EXPR accessors.
1634 (objc_get_callee_fndecl): Likewise.
1635
da2f0f2c 16362007-01-23 Andrew Pinski <pinskia@gmail.com>
1637
1638 PR objc/27438
1639 * objc-act.c (objc_add_static_instance): Mark the decl as
1640 TREE_USED.
1641
7eb56ad3 16422007-01-20 Andrew Pinski <pinskia@gmail.com>
1643
1644 PR objc/30479
1645 * objc-act.c (hash_interface): Use IDENTIFIER_HASH_VALUE instead
1646 of htab_hash_pointer.
1647 (lookup_interface): Likewise.
1648 (add_class): Likewise.
1649
6753bca0 16502007-01-02 Douglas Gregor <doug.gregor@gmail.com>
1651
1652 * objc-act.c (objc_build_volatilized_type): Keep track of
1653 canonical types.
1654 (objc_get_protocol_qualified_type): Ditto.
1655
718149a3 16562006-11-02 Andreas Tobler <a.tobler@schweiz.org>
1657
1658 * objc-act.c (objc_finish_file): Remove ifdef clause for OBJCPLUS and
1659 content where we called cp_finish_file.
1660
d3eff7bb 16612006-10-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
54be5d7e 1662
1663 * objc-act.c (synth_module_prologue): Replace calls to
1664 builtin_function with add_builtin_function.
1665 (build_next_objc_exception_stuff): Replace calls to
1666 builtin_function with add_builtin_function.
1667 (build_objc_exception_stuff): Replace calls to
1668 builtin_function with add_builtin_function.
1669
51f93521 16702006-10-10 Brooks Moses <bmoses@stanford.edu>
1671
1672 * Make-lang.in: Added empty "objc.pdf" target.
1673
ea028b59 16742006-09-26 Andrew Pinski <pinskia@physics.uc.edu>
1675
1676 PR objc/29195
1677 * objc-act.c (objc_push_parm): If we change the type of the
1678 decl, relayout the decl.
1679
6db57367 16802006-09-19 Eric Christopher <echristo@apple.com>
1681
1682 * objc-act.c (JBLEN): Rename to OBJC_JBLEN,
1683 default to something innocuous.
1684 (build_next_objc_exception_stuff): Rename JBLEN.
1685
e85b0b9f 16862006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1687
1688 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
1689
77874a3c 16902006-07-19 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1691
1692 PR obj-c++/28434
1693 * objc-act.c (lookup_and_install_protocols): Skip error_mark_nodes.
1694
15b5961f 16952006-06-06 Mike Stump <mrs@apple.com>
1696
1697 * objc-act.c: Remove prototype for objc_build_volatilized_type.
1698
8d6b10e2 16992006-05-24 Mike Stump <mrs@apple.com>
1700
1701 * objc-act.c (build_next_objc_exception_stuff): Use JBLEN instead of _JBLEN.
1702
ed672485 17032006-05-05 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1704
1705 PR objc/27240
1706 * objc-act.c (objc_is_public): Return early on invalid type.
1707
30f66f51 17082006-03-02 Fariborz Jahanian <fjahanian@apple.com>
1709
1710 * objc-act.c (init_module_descriptor): Remove file name from
1711 module descriptor.
1712 (gen_type_name_0): Fix ICE when issuing warning.
1713
d3eff7bb 17142006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
9f30f9e7 1715 * Make-lang.in (OBJC): Remove
1716 (OBJECTIVE-C): Remove
1717 (objective-c): Remove
1718 (.PHONY): Remove objective-c and ObjC
1719
0ee579cd 17202005-12-14 Andrew Pinski <pinskia@physics.uc.edu>
1721
1722 PR objc/25360
8d6b10e2 1723 * objc/objc-act.c (encode_type): Encode Complex types as 'j' followed
1724 by the inner type.
0ee579cd 1725
c4e3ffb1 17262005-12-12 Andrew Pinski <pinskia@physics.uc.edu>
1727
1728 PR objc/25348
1729 * objc-act.c (encode_array): Handle arrays to zero sized types.
1730
d3eff7bb 17312005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
ae6555f9 1732
1733 * Make-lang.in (objc.all.build, objc.install-normal): Remove.
1734
d3eff7bb 17352005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
758e52e0 1736
1737 * Make-lang.in: Remove all dependencies on s-gtype.
1738
a3a36c39 17392005-12-02 Richard Guenther <rguenther@suse.de>
1740
1741 * objc-act.c (objc_build_exc_ptr, next_sjlj_build_enter_and_setjmp
1742 next_sjlj_build_exc_extract, next_sjlj_build_catch_list,
1743 next_sjlj_build_try_catch_finally, objc_begin_catch_clause,
1744 build_objc_method_call, objc_rewrite_function_call): Use buildN
1745 instead of build.
1746
41cac6ed 17472005-10-20 Geoffrey Keating <geoffk@apple.com>
1748
1749 * objc-act.c (synth_module_prologue): Clear TREE_NOTHROW
1750 on objc_msgSend and like builtin functions.
1751
53d4f63c 17522005-10-17 Andreas Krebbel <krebbel1@de.ibm.com>
1753
fdf0e229 1754 * objc-act.c (objc_build_component_ref): Adjust call to
53d4f63c 1755 finish_class_member_access_expr due to a changed prototype.
1756
1cff51e3 17572005-08-31 Andrew Pinski <pinskia@physics.uc.edu>
1758
1759 PR objc/23306
1760 * objc-act.c (generate_strings): Remove and move code to
1761 finish decl to ...
1762 (add_objc_string): here when creating a new string decl.
1763 (finish_objc): Don't call generate_strings.
1764
c2400746 17652005-08-31 Andrew Pinski <pinskia@physics.uc.edu>
1766
1767 PR objc/23381
1768 * objc-act.c (next_sjlj_build_try_catch_finally): Set
1769 TREE_SIDE_EFFECTS on catch_seq after building it.
1770
9d44cae2 17712005-08-09 Andrew Pinski <pinskia@physics.uc.edu>
1772
1773 part of PR objc/21992
1774 * objc-act.c (handle_class_ref): The ref decl is always referenced.
1775
c75b4594 17762005-07-20 Giovanni Bajo <giovannibajo@libero.it>
1777
1778 Make CONSTRUCTOR use VEC to store initializers.
1779 * objc-act.c (objc_build_constructor): Use build_constructor_from_list
1780 instead of build_constructor.
1781
5ded8c6f 17822005-07-08 Daniel Berlin <dberlin@dberlin.org>
fdf0e229 1783
5ded8c6f 1784 * objc-act.c (objc_push_parm): DECL_ARG_TYPE_AS_WRITTEN is
1785 removed.
1786 * objc-act.h (KEYWORD_ARG_NAME): Use decl_non_common.
1787 (KEYWORD_KEY_NAME): Use decl_minimal.
1788 (METHOD_SEL_NAME): Ditto..
1789 (METHOD_SEL_ARGS): Use decl_non_common.
1790 (METHOD_ADD_ARGS): Ditto.
1791 (METHOD_ADD_ARGS_ELLIPSIS_P): Use decl_common.
1792 (METHOD_DEFINITION): Ditto.
1793 (METHOD_ENCODING): Ditto.
1794 * objc-lang.c: (objc_init_ts): New function.
1795
8e1be677 17962005-07-07 Ziemowit Laski <zlaski@apple.com>
1797
1798 * objc-act.c (objc_build_struct): Pass in an actual @interface
1799 instead of its name, and annotate the struct created (and all
1800 existing variants thereof) with the @interface.
1801 (objc_compare_types): Treat forward-declared ObjC classes
1802 as stand-alone (root) classes for purposes of type comparisons.
1803 (build_private_template): Move some code to objc_build_struct().
1804
99469381 18052005-07-07 Ziemowit Laski <zlaski@apple.com>
1806
1807 PR objc/22274
1808 * objc-act.c (objc_build_string_object): For GNU-style constants,
1809 use the @interface type rather than the built-in type.
1810
bd06ecb6 18112005-07-03 Kazu Hirata <kazu@codesourcery.com>
1812
1813 * Make-lang.in (cc1plus-checksum.c): Use
1814 build/genchecksum$(build_exeext), not build/genchecksum$(exeext).
1815
3284a242 18162005-07-02 Joseph S. Myers <joseph@codesourcery.com>
1817
1818 * objc-act.c: Use %q to quote in diagnostics.
1819
3cf8b391 18202005-07-02 Joseph S. Myers <joseph@codesourcery.com>
1821
1822 * objc-act.c: Use '+' flag instead of %J. Use 'q' flag for
1823 quoting.
1824
4dfa7ebc 18252005-06-30 Ziemowit Laski <zlaski@apple.com>
1826
1827 * objc-act.c (objc_build_volatilized_type): New function.
1828 (objc_volatilize_decl): Call objc_build_volatilized_type()
1829 instead of build_qualified_type().
1830
0616a948 18312005-06-29 Ziemowit Laski <zlaski@apple.com>
1832
1833 * objc-act.c (objc_build_internal_const_str_type): New function.
1834 (check_string_class_template): Use objc_get_class_ivars() instead
1835 of TYPE_FIELDS() to retrieve ivar list.
1836 (AT_LEAST_AS_LARGE_AS): Check the size of each field's type rather
1837 than the field itself.
1838 (objc_build_string_object): Synthesize a "__builtin_ObjCString"
1839 type and use it to lay out compile-time string objects.
1840 * objc-act.h (OCTI_INTERNAL_CNST_STR_TYPE, internal_const_str_type):
1841 New.
1842
1774763d 18432005-06-28 Paul Brook <paul@codesourcery.com>
1844
1845 * objc-act.c (objc_init_exceptions): Call
1846 default_init_unwind_resume_libfunc.
1847
0bee387e 18482005-06-27 Ziemowit Laski <zlaski@apple.com>
1849
1850 * objc-act.c (objc_build_struct): Save the TYPE_OBJC_INFO
1851 portion of TYPE_LANG_SPECIFIC info for all variants of
1852 a class before calling finish_struct(), and restore
1853 same TYPE_OBJC_INFO afterwards.
1854
85b2164b 18552005-06-25 Kelley Cook <kcook@gcc.gnu.org>
1856
1857 * all files: Update FSF address in copyright headers.
1858
f14c8207 18592005-06-15 Joseph S. Myers <joseph@codesourcery.com>
1860
1861 * objc-act.c (my_build_string_pointer): New.
1862 (objc_get_class_reference, get_super_receiver): Call
1863 my_build_string_pointer instead of my_build_string when building
1864 function arguments.
1865
737a4756 18662005-05-25 Mike Stump <mrs@mrs.kithrup.com>
1867
1868 * objc-act.c (volatilized_hash): Avoid warnings on 64-bit
1869 machines.
1870
499ea517 18712005-05-24 Ziemowit Laski <zlaski@apple.com>
1872
1873 * objc-act.c (objc_build_struct): New function.
1874 (objc_derived_from_p): Likewise.
1875 (objc_build_component_ref): Likewise.
1876 (objc_copy_binfo): Likewise.
1877 (objc_xref_basetypes): Likewise.
1878 (objc_lookup_protocol): Likewise.
1879 (objc_compare_protocols): Likewise.
1880 (objc_volatilize_decl): Likewise.
1881 (encode_aggregate_fields): Likewise.
1882 (volatilized_hash): Likewise.
1883 (volatilized_eq): Likewise.
1884 (objc_compare_types): Likewise.
1885 (objc_type_quals_match): Likewise.
1886 (DERIVED_FROM_P): New ObjC macro, corresponding to C++ macro
1887 of same name.
1888 (get_class_ivars): Add second parameter indicating if entire
1889 hierarchy is desired.
1890 (struct volatilized_type): New type.
1891 (volatilized_htab): New hash table.
1892 (objc_types_compatible_p, objc_comptypes): Remove functions.
1893 (synth_module_prologue): Do not initialize 'unused_list'.
1894 (objc_get_class_reference): Fix ObjC++ impedance mismatches.
1895 (objc_declare_alias): Implement as a typedef.
1896 (objc_substitute_decl, objc_gimplify_expr): Reformat.
1897 (objc_get_class_ivars): Adjust call to get_class_ivars().
1898 (next_sjlj_build_enter_and_setjmp, synth_forward_declarations,
1899 build_ivar_reference, get_super_receiver): Call
1900 objc_build_component_ref() instead of build_component_ref().
1901 (objc_begin_catch_clause): Use DERIVED_FROM_P() instead of
1902 objc_comptypes().
1903 (build_private_template): Call objc_build_struct() instead of
1904 start_struct() and finish_struct().
1905 (hash_init): Initialize volatilized_htab.
1906 (objc_is_public): Adjust calls to objc_get_ivars(); adjust
1907 ObjC++ impedance mismatches.
1908 (encode_aggregate_within): Streamline by calling
1909 encode_aggregate_fields().
1910 * objc-act.h (objc_types_compatible_p): Remove prototype.
1911 (OCTI_UNUSED_LIST, unused_list): Remove slot.
1912 * objc-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove.
1913
f1035767 19142005-05-18 Geoffrey Keating <geoffk@apple.com>
1915
1916 * Make-lang.in (cc1obj-dummy): New.
1917 (cc1obj-checksum.c): New.
1918 (cc1obj-checksum.o): New.
1919 (cc1obj): Add cc1obj-checksum.o.
1920
3c905014 19212005-05-18 Mike Stump <mrs@apple.com>
1922
1923 PR objc/21641
1924 * objc-act.c (struct interface_tuple): Mark it up for GC.
1925 (interface_htab): It is really a struct interface_tuple.
1926
82c07781 19272005-05-17 Ziemowit Laski <zlaski@apple.com>
1928 Mike Stump <mrs@apple.com>
0ced0389 1929
1930 Yet more Objective-C++...
1931
1932 * objc-act.c (objc_finish_try_stmt): Add return value.
1933 (objc_build_synchronized): Likewise.
1934
1935 * objc-act.c (objc_is_gcable_type): Add.
1936 (objc_substitute_decl): Add.
1937 (objc_build_ivar_assignment): Add.
1938 (objc_build_global_assignment): Add.
1939 (objc_build_strong_cast_assignment): Add.
1940 (objc_is_ivar_reference_p): Add.
1941 (objc_is_global_reference_p): Add.
1942 (objc_generate_write_barrier): Add.
1943 (objc_rewrite_function_call): Add.
1944 (objc_gimplify_expr): Add Objective-C++ support.
1945 * objc-act.h (ALLOC_OBJC_TYPE_LANG_SPECIFIC): Likewise.
1946 (SIZEOF_OBJC_TYPE_LANG_SPECIFIC): Add.
1947 (INIT_TYPE_OBJC_INFO): Add Objective-C++ support.
1948 (DUP_TYPE_OBJC_INFO): Likewise.
1949 (struct imp_entry): Add field has_cxx_cdtors.
1950 (struct imp_entry *imp_list): Add OCTI_UMSG_FAST_DECL,
1951 OCTI_METH_LIST_TEMPL, OCTI_METH_PROTO_LIST_TEMPL,
1952 OCTI_IVAR_LIST_TEMPL, OCTI_ASSIGN_IVAR_DECL,
1953 OCTI_ASSIGN_IVAR_FAST_DECL, OCTI_ASSIGN_GLOBAL_DECL,
1954 OCTI_ASSIGN_STRONGCAST_DECL.
1955 (umsg_fast_decl): Add.
1956 (objc_assign_ivar_decl): Add.
1957 (objc_assign_ivar_fast_decl): Add.
1958 (objc_assign_global_decl): Add.
1959 (objc_assign_strong_cast_decl): Add.
1960 (objc_method_list_ptr): Add.
1961 (objc_method_proto_list_ptr): Add.
1962 (objc_ivar_list_ptr): Add.
1963
1964 * objc-act.c (should_call_super_dealloc): Add.
1965 (OBJC_VERSION): Bump to 6.
1966 (objc_is_gcable_type): Add.
1967 (objc_substitute_decl): Add.
1968 (objc_build_ivar_assignment): Add.
1969 (objc_build_global_assignment): Add.
1970 (objc_build_strong_cast_assignment): Add.
1971 (objc_is_gcable_p): Add.
1972 (objc_is_ivar_reference_p): Add.
1973 (objc_is_global_reference_p): Add.
1974 (generate_shared_structures): Add flags parameter.
1975 (objc_generate_cxx_ctor_or_dtor): Add.
1976 (objc_generate_cxx_cdtors): Add.
1977 (add_class): Add name parameter.
1978 (objc_types_share_size_and_alignment): Add.
1979 (comp_proto_with_proto): Add strict parameter.
1980 (CLS_HAS_CXX_STRUCTORS): Add.
1981 (TAG_ASSIGNIVAR): Add.
1982 (TAG_ASSIGNGLOBAL): Add.
1983 (TAG_ASSIGNSTRONGCAST): Add.
1984 (TAG_MSGSEND_FAST): Add.
1985 (TAG_ASSIGNIVAR_FAST): Add.
1986 (TAG_CXX_CONSTRUCT): Add.
1987 (TAG_CXX_DESTRUCT): Add.
1988 (OBJC_LOOKUP_CLASS): Add.
1989 (OBJC_LOOKUP_NO_SUPER): Add.
1990 (objc_finish_file): Add pch support.
1991 (objc_finish_implementation): Add Objective-C++ support.
1992 (synth_module_prologue): Likewise.
1993 (synth_module_prologue): Add fast dispatching.
1994 (objc_get_class_reference): Add Objective-C++ support.
1995 (objc_generate_write_barrier): Likewise.
1996 (next_sjlj_build_enter_and_setjmp): Likewise.
1997 (objc_begin_try_stmt): Likewise.
1998 (build_next_objc_exception_stuff): Add fast ivar support.
1999 (build_private_template): Mark the record as used so debug
2000 information is generated.
2001 (build_protocol_template): Add Objective-C++ support.
2002 (objc_method_parm_type) Likewise.
2003 (objc_generate_cxx_ctor_or_dtor): Likewise.
2004 (objc_generate_cxx_cdtors): Likewise.
2005 (build_protocol_initializer): Likewise.
2006 (build_category_template): Likewise.
2007 (build_class_template): Likewise.
2008 (build_method_list_template): Likewise.
2009 (build_category_initializer): Likewise.
2010 (build_shared_structure_initializer): Likewise.
2011 (objc_finish_message_expr): Likewise.
2012 (build_objc_method_call): Add fast dispatch support.
2013 (lookup_method_static): Add support to end search at superclasses.
2014 (add_method_to_hash_list): Add strict parameter to
2015 comp_proto_with_proto.
2016 (objc_add_method): Likewise.
2017 (objc_add_method): Also set the interface_value.
2018 (add_instance_variable): Add Objective-C++ support.
2019 (objc_is_public): Likewise.
2020 (start_class): Likewise.
2021 (continue_class): Likewise.
2022 (encode_aggregate_within): Likewise.
2023 (start_method_def): Likewise.
2024 (objc_start_function): Clear current_function_returns_value
2025 and current_function_returns_null.
2026 (really_start_method): Add Objective-C++ support.
2027 (objc_finish_method_definition): Add warning for missing
2028 [super dealloc].
2029 (finish_objc): Add Objective-C++ support.
2030 (generate_objc_image_info): Likewise.
2031 (objc_lookup_ivar): Likewise.
2032 * objc-act.h (TYPE_HAS_OBJC_INFO): Likewise.
2033 (INIT_TYPE_OBJC_INFO): Likewise.
2034 (DUP_TYPE_OBJC_INFO): Likewise.
2035
c3ceba8e 20362005-04-23 DJ Delorie <dj@redhat.com>
2037
2038 * objc-act.c: Adjust warning() callers.
2039
450302fe 20402005-04-21 Roger Sayle <roger@eyesopen.com>
2041
2042 * objc-act.h (METHOD_ADD_ARGS_ELLIPSIS_P): New macro for accessing
2043 this field of an objc method decl.
2044 * objc-act.c (build_method_decl): Take an additional "ellipsis"
2045 argument, and set METHOD_ADD_ARGS_ELLIPSIS_P as appropriate.
2046 (objc_build_method_signature): Accept additional "ellipsis"
2047 argument and pass it to build_method_decl.
2048 (get_arg_type_list, start_method_def, gen_method_decl): Use
2049 the new METHOD_ADD_ARGS_ELLIPSIS_P instead of examining the
2050 TREE_OVERFLOW field of a TREE_LIST node.
2051
f5d156fd 20522005-04-20 Joseph S. Myers <joseph@codesourcery.com>
2053
2054 PR c/12913
2055 * objc-act.c (objc_start_function): Create stack level for context
2056 of identifiers with variably modified type.
2057
f08c7a57 20582005-03-30 Joseph S. Myers <joseph@codesourcery.com>
2059
2060 PR c/772
2061 PR c/17913
2062 * objc-act.c (objc_start_function): Push context on
2063 label_context_stack.
2064
45a78cc0 20652005-03-23 Joseph S. Myers <joseph@codesourcery.com>
2066
2067 * objc-act.c (next_sjlj_build_enter_and_setjmp,
2068 next_sjlj_build_catch_list, next_sjlj_build_try_catch_finally):
2069 Call c_common_truthvalue_conversion.
2070
1576dec7 20712005-02-25 Joseph S. Myers <joseph@codesourcery.com>
2072
2073 * Make-lang.in (objc/objc-parse.o-warn, objc/objc-parse.o,
2074 objc/objc-parse.c, objc/objc-parse.y): Remove
2075 (OBJC_OBJS, objc.srcextra, objc.tags, objc.mostlyclean,
2076 objc.distclean, objc.maintainer-clean): Update for new parser.
2077 * config-lang.in (gtfiles): Update for new parser.
2078
578ae71d 20792005-01-29 Kazu Hirata <kazu@cs.umass.edu>
2080
2081 * lang-specs.h, objc-act.c, objc-act.h, objc-lang.c: Update
2082 copyright.
2083
aac6b86a 20842005-01-27 Matt Austern <austern@apple.com>
2085
2086 * objc-act.c (objc_finish_file): In ObjC++ mode, set at_eof before
2087 calling instantiate_pending_templates.
fdf0e229 2088
0bd2c21c 20892005-01-26 Alexander Malmberg <alexander@malmberg.org>
2090
2091 PR objc/18862
2092 * objc-act.c (build_selector_translation_table): Use
2093 input_location in the diagnostic for the GNU runtime or if
2094 TREE_PURPOSE (chain) is NULL.
2095
d7c168e8 20962005-01-25 Alexander Malmberg <alexander@malmberg.org>
2097
2098 PR objc/18408
2099 * objc-act.c (objc_types_compatible_p): New function.
2100 * objc-act.h (objc_types_compatible_p): Declare.
2101 * objc-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Define.
2102
7e176567 21032005-01-16 Ziemowit Laski <zlaski@apple.com>
2104
2105 * objc-act.c (objc_push_parm): Call c_type_promotes_to()
2106 via a lang-hook.
2107
53832dfa 21082005-01-15 Ziemowit Laski <zlaski@apple.com>
2109
2110 PR objc/19321
2111 * objc-act.c (get_arg_type_list): Decay function arguments into
2112 pointers.
2113 (objc_push_parm): Likewise; bring PARM_DECL construction closer
2114 in line with what the C front-end does.
2115 (objc_get_parm_info): Call pushdecl() and finish_decl() on
2116 each PARM_DECL, like the C front-end does.
2117 (start_method_def): Remove redundant ARRAY_TYPE decay.
2118 (objc_start_function): Bring closer in line with what the
2119 C front-end does for functions.
2120
67f3526e 21212005-01-14 Mike Stump <mrs@apple.com>
2122
2123 * lang-specs.h ("@objective-c"): Use cc1obj when -E is used so
2124 that -fobjc-exceptions is accepted.
2125
b5266a0c 21262004-12-30 Ziemowit Laski <zlaski@apple.com>
2127
2128 PR objc/18971
2129 * objc-act.c (get_arg_type_list, start_method_def): Decay
2130 array arguments into pointers.
2131 (gen_type_name_0): Learn to pretty-print array types.
2132
6972a3bc 21332004-12-15 Ziemowit Laski <zlaski@apple.com>
2134
2135 * objc-act.c (build_private_template): Change to return 'void'; do
2136 not set ivar_context, uprivate_record or objc_instance_type.
2137 (objc_comptypes, gen_type_name_0): For types 'id' and 'Class',
2138 retrieve protocol list from the pointee rather than the pointer itself;
2139 check TYPE_HAS_OBJC_INFO(...) precondition before accessing
2140 TYPE_OBJC_PROTOCOL_LIST.
2141 (objc_get_protocol_qualified_type): For types 'id' and 'Class',
2142 construct a variant of the pointee as well as the pointer, and
2143 store protocol information in the former. When creating variants
2144 of RECORD_TYPEs, clone their TYPE_LANG_SPECIFIC fields and propagate
2145 TYPE_OBJC_INTERFACE information.
2146 (objc_declare_class): If a TYPE_DECL is looked up, retrieve the
2147 underlying RECORD_TYPE to check for presence of TYPE_OBJC_INTERFACE;
2148 for newly-created RECORD_TYPEs, create a tentative TYPE_OBJC_INTERFACE
2149 holding an IDENTIFIER_NODE.
2150 (objc_finish_message_expr): Check TYPE_HAS_OBJC_INFO(...) before
2151 accessing TYPE_OBJC_PROTOCOL_LIST; Use TYPE_OBJC_INTERFACE instead
2152 of calling lookup_interface(); allow for TYPE_OBJC_INTERFACE holding
2153 an IDENTIFIER_NODE (meaning a @class forward-declaration only).
2154 (objc_is_public): Check TYPE_OBJC_INTERFACE instead of calling
2155 lookup_interface().
2156 (continue_class): For @implementations, set ivar_context,
2157 uprivate_record and objc_instance_type, for @interfaces, call
2158 build_private_template().
2159 (encode_pointer): Check TYPE_HAS_OBJC_INFO(...) before accessing
2160 TYPE_OBJC_INTERFACE.
2161 (objc_types_are_equivalent): Check TYPE_HAS_OBJC_INFO(...) before
2162 accessing TYPE_OBJC_PROTOCOL_LIST.
2163 * objc-act.h (OBJC_INFO_SLOT_ELTS, TYPE_OBJC_INFO, INIT_TYPE_OBJC_INFO,
fdf0e229 2164 DUP_TYPE_OBJC_INFO, ALLOC_OBJC_TYPE_LANG_SPECIFIC,
6972a3bc 2165 SIZEOF_OBJC_TYPE_LANG_SPECIFIC): New macros.
2166 (TYPE_OBJC_INTERFACE): Replaces TREE_STATIC_INSTANCE and now points
2167 to an actual @interface; stored in TYPE_LANG_SPECIFIC(...).
2168 (TYPE_OBJC_PROTOCOL_LIST): Replaces TYPE_PROTOCOL_LIST; stored in
2169 TYPE_LANG_SPECIFIC(...).
2170 (TREE_STATIC_INSTANCE, TYPE_PROTOCOL_LIST): Delete.
2171 (IS_ID, IS_CLASS, IS_PROTOCOL_QUALIFIED_UNTYPED, IS_SUPER,
2172 TYPED_OBJECT): Check for POINTER_TYPE rather than POINTER_TYPE_P;
2173 adjust for use of TYPE_OBJC_INTERFACE and TYPE_OBJC_PROTOCOL_LIST
2174 instead of TREE_STATIC_INSTANCE and TYPE_PROTOCOL_LIST.
2175
b42190bc 21762004-11-29 Joseph Myers <joseph@codesourcery.com>
2177
2178 PR c/7544
2179 * Make-lang.in (objc/objc-act.o): Update dependencies.
2180 * objc-act.c (objc_finish_file): Call
2181 maybe_apply_pending_pragma_weaks if not OBJCPLUS.
2182
02fc645a 21832004-11-09 Andrew Pinski <pinskia@physics.uc.edu>
2184
2185 PR objc/18406
2186 * obj-act.c (encode_type): 96bits doubles are encoded the
2187 same way as 64bit and 128bit doubles are.
2188
1e5fcbe2 21892004-11-09 Joseph S. Myers <joseph@codesourcery.com>
2190
2191 * objc-act.c: Use %q, %< and %> for quoting in diagnostics.
2192
0aaa3c91 21932004-11-08 Andrew Pinski <pinskia@physics.uc.edu>
2194
2195 PR objc/16546
2196 * objc-act.c (generate_method_descriptors): Remove setting
2197 the new decls' type to variable_length_type.
2198 (generate_ivar_lists): Likewise.
2199 (generate_dispatch_tables): Likewise.
2200
e913c82d 22012004-10-30 Ziemowit Laski <zlaski@apple.com>
2202
2203 * objc-act.c (objc_lookup_ivar): The new OTHER parameter
2204 contains the result of the ID lookup by the C or C++
2205 front-end; in class methods, use OTHER if it exists;
2206 in instance methods, use OTHER only if it is locally
2207 declared.
2208
49bd32dc 22092004-10-26 Ziemowit Laski <zlaski@apple.com>
2210
2211 * objc-act.c (finish_class): Do not synthesize bogus
2212 'extern objc_object *_Foo;' declarations for @interface Foo.
2213
9e8a7e85 22142004-10-25 Ziemowit Laski <zlaski@apple.com>
2215 David Ayers <d.ayers@inode.at>
2216
2217 * objc-act.c (objc_comptypes): Use IS_PROTOCOL_QUALIFIED_UNTYPED
2218 instead of IS_PROTOCOL_QUALIFIED_ID; add comparisons for:
2219 'Class <Protocol> != id <Protocol>'; 'Class <Protocol> != <class> *';
2220 'Class <Protocol> == id' and 'Class <Protocol> == Class'.
2221 (objc_is_id): Add test for 'super'.
2222 (objc_finish_message_expr): Allow for messaging of 'Class <Proto>'
2223 receivers; if class methods are not found in protocol lists, search
2224 for instance methods therein and warn if one is found. Look in
2225 global hash tables for suitable method as a last resort when messaging
2226 'id <Proto>', 'Class <Proto>' and invalid receiver types.
2227 (objc_add_method): Insert instance methods listed in protocols into
2228 the global class method hash table.
2229 * objc-act.h (IS_PROTOCOL_QUALIFIED_ID): Rename to
2230 IS_PROTOCOL_QUALIFIED_UNTYPED and allow for 'Class <Proto>' in
2231 addition to 'id <Proto>'.
2232
6e030094 22332004-10-21 Andrew Pinski <pinskia@physics.uc.edu>
2234
2235 PR objc/17923
2236 * objc-act.c (objc_build_string_object): Create a CONST_DECL
2237 for the NeXT runtime case.
2238
9f9a4117 22392004-10-02 Kazu Hirata <kazu@cs.umass.edu>
2240
2241 * objc-act.c: Fix comment typos.
2242
4b6a1df9 22432004-09-24 Ziemowit Laski <zlaski@apple.com>
2244
2245 * objc-act.c (init_objc_symtab, init_module_descriptor,
2246 build_shared_structure_initializer): When initializing 'long'
2247 fields, ensure that the initializer value is also 'long'.
2248
775e7a4e 22492004-09-24 Zack Weinberg <zack@codesourcery.com>
2250
2251 * objc-act.c: Change annotate_with_locus to SET_EXPR_LOCATION
2252 throughout.
2253 (objc_init): Only set input_line to 0 #ifndef USE_MAPPED_LOCATION.
2254 (build_selector_translation_table): Use %J in diagnostic
2255 instead of diddling input_line. Fix spelling.
2256
e151b250 22572004-09-21 Ziemowit Laski <zlaski@apple.com>
2258
2259 * objc-act.c (objc_fold_objc_type_ref): New function.
2260 * objc-act.h (objc_fold_objc_type_ref): New prototype.
2261
ac206aff 22622004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
2263
2264 * objc-act.c (objc_start_function, really_start_method,
2265 objc_get_parm_info, start_method_def): Update to new arg_info
2266 structures.
2267
13dcc150 22682004-09-07 Ziemowit Laski <zlaski@apple.com>
2269
2270 * Make-lang.in (objc/objc-parse.o): Depend on $(C_COMMON_H) instead of
2271 objc/objc-act.h.
2272 (objc/objc-act.o): Depend on $(HASHTAB_H).
2273 * objc-act.c: Include hashtab.h; in ObjC++ mode, include cp-tree.h and
2274 objcp-decl.h instead of c-tree.h.
2275 (build_module_descriptor, get_class_ivars, synth_id_with_class_suffix,
2276 error_with_ivar, gen_method_decl, gen_declaration, setup_string_decl,
2277 build_protocol_template): Adjust prototypes.
2278 (build_module_initializer_routine, start_class, continue_class,
2279 finish_class, start_method_def, objc_start_function, start_protocol,
2280 build_method_decl, objc_add_method, add_instance_variable,
2281 build_ivar_reference, is_ivar, is_private, get_super_receiver,
2282 build_selector_table_decl, objc_push_parm, objc_get_parm_info,
2283 gen_type_name, gen_type_name_0, start_var_decl, finish_var_decl,
2284 create_field_decl): New prototypes.
2285 (objc_expand_function_end, comp_method_with_proto, objc_expr_last,
2286 gen_declaration_1, gen_declarator, is_complex_decl, adorn_decl,
2287 define_decl, create_builtin_decl, gen_declspecs): Remove prototypes.
2288 (TYPE_ID): Rename to OBJECT_TYPEDEF_NAME.
2289 (CLASS_TYPEDEF_NAME): New.
2290 (TAG_EXECCLASS): Change from a global variable to a #define.
2291 (TAG_RETURN_STRUCT): Delete.
2292 (TAG_GNUINIT): New, holds '__objc_gnu_init' name.
2293 (objc_inherit_code, objc_public_flag): New, moved from c-parse.in.
2294 (string_descriptor): New struct.
2295 (string_htab): New hash table.
2296 (string_hash, string_eq): New prototypes.
2297 (generate_struct_by_value_array): Call create_field_decl() instead of
2298 create_builtin_decl().
2299 (objc_init): Do not initialize objc_ellipsis_node or TAG_EXECCLASS;
2300 In ObjC++ mode, call cxx_init() instead of c_objc_common_init().
2301 (objc_finish_file): In ObjC++, call instantiate_pending_templates()
2302 and cp_finish_file().
2303 (define_decl, get_static_reference, get_protocol_reference,
2304 create_builtin_decl): Remove functions.
2305 (objc_start_class_interface, objc_start_category_interface,
2306 objc_start_protocol, objc_continue_interface, objc_finish_interface,
2307 objc_start_class_implementation, objc_start_category_implementation,
2308 objc_continue_implementation, objc_finish_implementation,
2309 objc_set_visibility, objc_set_method_type,
2310 objc_build_method_signature, objc_add_method_declaration,
2311 objc_start_method_definition, objc_add_instance_variable,
2312 objc_get_protocol_qualified_type, create_field_decl,
2313 start_var_decl, finish_var_decl): New functions.
2314 (setup_string_decl): Simplify since it is only called once.
2315 (synth_module_prologue): Call build_class_template(); predefine 'id'
2316 and 'Class' as typedefs; rename 'temp_type' to 'type'; disable debug
2317 hooks for duration of function; fix GNU runtime messenger signatures
2318 to correspond to reality; forward-declare '__objc_exec_class' for the
2319 GNU runtime; call build_selector_table_decl(); in ObjC++ mode, generate
2320 'extern "C" { ... }' wrappers around synthesized declarations; call
2321 build_protocol_template() and build_category_template().
2322 (string_hash, string_eq): New functions.
2323 (objc_build_string_object): Check metaclass correctness only once;
2324 store string literals in hash table.
2325 (objc_build_constructor): Do not convert initializer elements;
2326 adjust for ObjC++ impedance mismatch.
2327 (build_objc_symtab_template): Call create_field_decl() instead of
2328 create_builtin_decl().
2329 (init_objc_symtab): Add missing conversion to initializer element.
2330 (build_metadata_decl): Call start_var_decl() instead of define_decl().
2331 (generate_objc_symtab_decl): Do not call build_category_template();
2332 call start_var_decl() and finish_var_decl() instead of start_decl()
2333 and finish_decl().
2334 (build_module_descriptor): Call create_field_decl() instead of
2335 grokfield(); call start_var_decl() and finish_var_decl() instead of
2336 start_decl() and finish_decl(); always mark module descriptor as
2337 used; move GNU runtime-specific functionality to
2338 build_module_initializer_routine().
2339 (build_module_initializer_routine): New function, broken off of
2340 build_module_descriptor().
2341 (objc_static_init_needed_p, objc_generate_static_init_call): New
2342 functions.
2343 (generate_static_references, generate_strings,
2344 build_selector_translation_table, generate_descriptor_table,
2345 generate_ivars_list, generate_dispatch_table, generate_category): Call
2346 start_var_decl() and finish_var_decl() instead of start_decl() and
2347 finish_decl(); build a type directly instead of via groktypename().
2348 (build_selector_reference_decl, build_selector_table_decl,
2349 build_class_reference_decl, build_protocol_reference,
2350 generate_objc_image_info): Call start_var_decl() instead of
2351 build_decl().
2352 (build_selector_reference): For GNU runtime, do not call
2353 build_selector_reference_decl().
2354 (build_selector, build_typed_selector_reference): Always convert
2355 result to the selector type.
2356 (add_objc_string): Cast return value to 'char *'.
2357 (build_method_prototype_template, build_selector_template,
2358 build_method_template): Use actual selector type for fields
2359 pointing to selectors.
2360 (finish_objc): For GNU runtime, call
2361 build_module_initializer_routine() after build_module_descriptor().
2362 (generate_protocol_list, generate_shared_structures): Call
2363 start_var_decl() and finish_var_decl() instead of start_decl() and
2364 finish_decl(); build a type directly instead of via
2365 groktypename().
2366 (synth_id_with_class_suffix): Return a string.
2367 (get_arg_type_list): For instance methods, use the instance type for
2368 'self'; do not call groktypename_in_parm_context().
2369 (build_objc_string_decl): Squash redeclaration errors in ObjC++.
2370 (objc_is_class_name): Use OBJC_TYPE_NAME instead of TYPE_NAME;
2371 handle RECORD_TYPEs in ObjC as well as ObjC++.
2372 (objc_is_id): New function.
2373 (objc_is_object_ptr): Return the canonical type node.
2374 (objc_get_class_ivars): Simplify using get_class_ivars().
2375 (get_class_ivars): Remove second parameter; create a fresh copy
2376 of the ivar list for each call; do not check for existence of
2377 super class.
2378 (objc_eh_runtime_type): Mark #ifndef OBJCPLUS.
2379 (objc_init_exceptions): When using SJLJ-style exceptions, require
2380 the use of '-fobjc-exceptions' flag; do not require it for DWARF-style
2381 exceptions.
2382 (objc_build_exc_ptr, next_sjlj_build_try_catch_finally): Use
2383 objc_object_type instead of objc_id_type.
2384 (objc_begin_catch_clause): Convert the incoming PARM_DECL into
2385 a VAR_DECL before placing it in the appropriate scope; do not
2386 call define_decl(); adjust call to c_begin_compound_stmt();
2387 use objc_object_type instead of objc_id_type.
2388 (build_next_objc_exception_stuff): Call create_field_decl() instead
2389 of create_builtin_decl(); construct type directly instead of calling
2390 groktypename(); use OBJC_VOID_AT_END to mark end of function parameters.
2391 (build_private_template): Adjust call to get_class_ivars(); build
2392 a type directly instead of via groktypename().
2393 (build_protocol_template, build_method_prototype_list_template,
2394 build_method_prototype_template, build_category_template,
2395 build_selector_template, build_class_template, build_super_template,
2396 build_ivar_template, build_ivar_list_template,
2397 build_method_list_template, build_method_template):
2398 Call create_field_decl() instead of grokfield().
2399 (objc_method_parm_type): Do not call groktypename().
2400 (generate_descriptor_table): Call start_var_decl() and
2401 finish_var_decl() instead of start_decl() and finish_decl().
2402 (generate_method_descriptors, build_protocol_initializer,
2403 generate_dispatch_tables, build_category_initializer,
2404 build_shared_structure_initializer): Do not call groktypename().
2405 (generate_protocols): Call start_var_decl() and finish_var_decl()
2406 instead of start_decl() and finish_decl(); do not call groktypename().
2407 (error_with_ivar): Remove last parameter.
2408 (check_ivars): Do not iterate ovar CLASS_RAW_IVARS lists in addition
2409 to CLASS_IVARS lists; adjust calls to error_with_ivar().
2410 (generate_ivar_lists): Convert one of the initializer elements; do
2411 not call groktypename().
2412 (get_arg_type_list, start_method_def, gen_method_def): Account for
2413 new representation of variable arguments and '...' in Objective-C
2414 methods; add Objective-C++ impedance matching code.
2415 (is_objc_type_qualifier): Remove function.
2416 (adjust_type_for_id_default): Simplify; there is no longer a need to
2417 wade through declspecs.
2418 (lookup_interface, start_class, continue_class,
2419 finish_class, start_method_def, start_protocol, build_method_decl,
2420 objc_add_method, add_instance_variable, build_ivar_reference,
2421 is_ivar, is_private, get_super_receiver, objc_build_finally_epilogue):
2422 Make into static functions.
2423 (receiver_is_class_object): Use new IS_CLASS() macro.
2424 (objc_build_message_expr): Tweak ObjC++ message argument handling;
2425 call objc_finish_message_expr() instead of finish_message_expr().
2426 (finish_message_expr): Rename to objc_finish_message_expr(); use
2427 OBJC_TYPE_NAME and OBJC_SET_TYPE_NAME macros instead of TYPE_NAME.
2428 call gen_type_name() instead of gen_declaration(); call objc_is_id()
2429 instead of using IS_ID and IS_CLASS; Use objc_class_name instead of
2430 calling get_identifier("Class"); handle CONVERT_EXPRs in receiver.
2431 (build_objc_method_call, warn_with_method): Do not call groktypename().
2432 (build_ivar_reference): Call convert() instead of clobbering in a
2433 type.
2434 (hash_init): Initialize string_htab hash table.
2435 (add_instance_variable): Simplify parameter list; do not call grokfield();
2436 do not populate CLASS_IVARS list.
2437 (start_class): Check for the existence of super class, if one was specified.
2438 (continue_class): Use CLASS_RAW_IVARS rather than CLASS_IVARS; do not
2439 call build_class_template(); adjust call to get_class_ivars(); call
2440 build_decl(), pushdecl() and finish_decl() instead of define_decl().
2441 (finish_class): Call build_decl(), pushdecl() and finish_decl() instead
2442 of define_decl().
2443 (add_protocols): Use PROTOCOL_BINFO_ELTS for the tree vector size.
2444 (start_protocol): Do not call build_protocol_template(); use
2445 PROTOCOL_BINFO_ELTS for the tree vector size.
2446 (encode_type_qualifiers): Do not handle the 'const' qualifier here.
2447 (encode_pointer): Encode 'const char *' as 'r*', for backwards
2448 compatibility.
2449 (encode_array): Use HOST_WIDE_INT_PRINT_DEC instead of "%ld".
2450 (encode_type): Handle the 'const' qualifier here.
2451 (objc_parmlist): New global variable, sued by objc_push_parm and
2452 objc_get_parm_info().
2453 (objc_push_parm, objc_get_parm_info): New functions.
2454 (objc_expr_last): Remove function.
2455 (synth_self_and_ucmd_args): For instance methods, use the instance
2456 type for 'self'; call objc_push_parm() instead of push_parm_decl().
2457 (start_method_def): Do not call push_scope(), declare_parm_level(),
2458 pop_scope(), push_parm_decl(), store_parm_decls() or objc_expr_last();
2459 just use objc_push_parm() and objc_get_parm_info().
2460 (comp_method_with_proto): Remove function.
2461 (objc_types_are_equivalent): Strip away indirections before comparing
2462 underlying types.
2463 (comp_proto_with_proto): Do not call groktypename(); types are no
2464 longer in raw declspec format.
2465 (objc_start_function): New function.
2466 (really_start_method): Call comp_proto_with_proto() instead of
2467 comp_method_with_proto(); call objc_start_function() instead of
2468 hand-crafting a function declarator.
2469 (continue_method_def, objc_expand_function_end): Remove functions.
2470 (get_super_receiver): Call objc_get_current_scope() instead of
2471 get_current_scope(); reference 'super_class' field (instead of
2472 'class').
2473 (finish_method_def): Rename to objc_finish_method_definition() and
2474 add a function decl parameter; move method encoding call from
2475 objc_expand_function_end().
2476 (is_complex_decl, adorn_decl, gen_declarator, gen_declspecs,
2477 gen_declaration_1): Remove functions.
2478 (tmpbuf, RAW_DECLSPEC): Remove.
2479 (gen_declaration): Remove second parameter; simplify to deal
2480 with TYPE_P nodes instead of raw declspecs.
2481 (gen_type_name, gen_type_name_0): New functions.
2482 (gen_method_decl): Remove second parameter; call gen_type_name()
2483 instead of gen_declaration_1().
775e7a4e 2484 (dump_interface): Adjust calls to gen_declaration() and
13dcc150 2485 gen_method_decl(); do not allocate a separate string buffer.
2486 (init_objc): Allocate a larger string buffer to accommodate
2487 dump_interface(); adjust call to build_module_descriptor();
2488 add call to build_module_initializer_routine() for the GNU
2489 runtime.
2490 (generate_classref_translation_entry): Do not call start_decl(); call
2491 finish_var_decl() instead of finish_decl(); call convert() instead of
2492 build_c_cast().
2493 * objc-act.h (CLASS_OWN_IVARS): Remove accessor.
2494 (CLASS_BINFO_ELTS): Reduce from 6 to 5, now that CLASS_OWN_IVARS is
2495 gone.
2496 (OCTI_GNU_INIT_DECL, GNU_INIT_decl): New.
2497 (OCTI_ELLIPSIS_NODE, objc_ellipsis_node): Remove.
2498 (OCTI_ID_ID, id_type, objc_id_id): Rename to OCTI_ID_NAME,
2499 objc_object_type and objc_object_name, respectively.
2500 (OCTI_CLS_REF, OCTI_CLASS_NAME, objc_class_reference,
2501 objc_class_name): New.
2502 (IS_CLASS): New macro.
2503 (IS_ID, IS_SUPER): Robustify.
2504 (OCTI_EXECCLASS_DECL, execclass_decl): New.
2505 (finish_file, start_class, continue_class, finish_class,
2506 start_method_def, continue_method_def, finish_method_def,
2507 start_protocol, finish_protocol, objc_build_throw_stmt,
2508 objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
2509 objc_build_synchronized_epilogue, objc_build_try_prologue,
2510 objc_build_try_epilogue, objc_build_catch_stmt, objc_build_catch_epilogue,
2511 objc_build_finally_prologue, objc_build_finally_epilogue,
2512 is_ivar, is_private, is_public, add_instance_variable, objc_add_method,
2513 get_super_receiver, objc_clear_super_receiver, get_class_ivars_from_name,
2514 get_class_reference, get_static_reference, get_object_reference,
2515 build_message_expr, finish_message_expr, build_selector_expr,
2516 build_ivar_reference, build_keyword_decl, build_method_decl,
2517 build_protocol_expr, build_objc_string_object, objc_declare_alias,
2518 objc_declare_class, objc_declare_protocols, objc_comptypes,
2519 objc_check_decl, build_encode_expr): Remove prototypes.
2520 (imp_count, cat_count): Make GGC-aware.
2521 (OBJC_SET_TYPE_NAME): New macro.
775e7a4e 2522
89359403 25232004-09-03 Ziemowit Laski <zlaski@apple.com>
2524
2525 * config-lang.in: Update copyright notice.
2526 (lang_requires): Indicate that ObjC requires C to be built first.
2527
66eb9e7e 25282004-09-01 Ziemowit Laski <zlaski@apple.com>
2529
2530 * objc-act.c (objc_check_decl): Use OBJC_TYPE_NAME macro instead of
2531 TYPE_NAME.
2532 (build_objc_string_object): Rename to objc_build_string_object().
2533 (get_class_reference): Rename to objc_get_class_reference().
2534 (get_class_ivars_from_name): Rename to objc_get_class_ivars().
2535 (next_sjlj_build_catch_list, get_super_receiver): Call
2536 objc_get_class_reference() instead of get_class_reference().
2537 (build_keyword_decl): Rename to objc_build_keyword_decl().
2538 (build_message_expr): Rename to objc_build_message_expr().
2539 (build_protocol_expr): Rename to objc_build_protocol_expr().
2540 (build_selector_expr): Rename to objc_build_selector_expr().
2541 (build_encode_expr): Rename to objc_build_encode_expr().
2542 * objc-act.h (get_class_ivars_from_name): Rename prototype to
2543 objc_get_class_ivars().
2544 (get_class_reference): Rename prototype to objc_get_class_reference().
2545 (build_message_expr): Rename prototype to objc_build_message_expr().
2546 (build_selector_expr): Rename prototype to objc_build_selector_expr().
2547 (build_keyword_decl): Rename prototype to objc_build_keyword_decl().
2548 (build_protocol_expr): Rename prototype to objc_build_prototype_expr().
2549 (build_objc_string_object): Rename prototype to
2550 objc_build_string_object().
775e7a4e 2551
99d7d801 25522004-09-01 Ziemowit Laski <zlaski@apple.com>
2553
2554 * objc-act.c (lookup_interface): Make function 'static' and add a
2555 local prototype.
2556 (objc_check_decl, get_class_reference, objc_declare_alias,
2557 objc_declare_class, objc_is_object_ptr): Call objc_is_class_name()
2558 instead of is_class_name().
775e7a4e 2559 (get_super_receiver, objc_clear_super_receiver): Call
99d7d801 2560 objc_get_current_scope() instead of get_current_scope().
2561 (is_class_name): Rename to objc_is_class_name.
2562 (lookup_objc_ivar): Rename to objc_lookup_ivar.
2563
11a35d8f 25642004-08-28 Ziemowit Laski <zlaski@apple.com>
2565
2566 * objc-act.c (objc_is_reserved_word): New function.
2567
800b56f2 25682004-08-15 Ziemowit Laski <zlaski@apple.com>
2569
2570 * Make-lang.in (objc/objc-lang.o): Depend on $(C_PRETTY_PRINT_H),
2571 $(DIAGNOSTIC_H), c-objc-common.h and gtype-objc.h, but not on toplev.h.
2572 (objc/objc-parse.o): Do not depend on gtype-objc.h.
2573 * objc-act.c: Do not include gtype-objc.h.
2574 (finish_file): Rename to objc_finish_file().
2575 * objc-act.h (finish_file): Update copyright notice; remove prototype.
2576 * objc-lang.c: Update copyright notice; include diagnostic.h,
2577 c-objc-common.h, c-pretty-print.h and gtype-objc.h; do not include
2578 toplev.h.
2579 (finish_file): New hook routine.
2580 (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
2581 LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
2582 LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
775e7a4e 2583 LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
2584 LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
800b56f2 2585 LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
2586 LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
775e7a4e 2587 LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
800b56f2 2588 LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
2589 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
2590 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
2591 LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
2592 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
2593 LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
2594 LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
2595 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
2596 LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
2597 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
2598 LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
2599 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
2600 LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
2601 LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
2602 LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
2603 LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
2604 Move to c-objc-common.h.
7dfbd804 2605
2606\f
2607Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
2608
2609Copying and distribution of this file, with or without modification,
2610are permitted in any medium without royalty provided the copyright
2611notice and this notice are preserved.