]> git.ipfire.org Git - thirdparty/gcc.git/blame - libobjc/ChangeLog
Don't warn about []int of string with NUL bytes.
[thirdparty/gcc.git] / libobjc / ChangeLog
CommitLineData
1588200e
NP
12010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
2
1575c9de
NP
3 PR libobjc/18764
4 * class.c (__objc_add_class_to_hash): Return YES if the class was
5 added, and NO if it already existed.
6 * init.c (__objc_init_class): If __objc_add_class_to_hash returns
7 NO, then abort the program with an error message.
8 * objc-private/runtime.h (__objc_add_class_to_hash): Updated
9 declaration.
10
112010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
12
1588200e
NP
13 * init.c (_objc_load_callback): Initialize with 0.
14 (__objc_call_callback): Renamed to __objc_call_load_callback.
15 Check _objc_load_callback only once, and if it is not set, return
16 immediately.
17 (objc_send_load): Updated call to __objc_call_callback.
18
c07499dc
NP
192010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
20
21 PR libobjc/16110
22 * init.c (__objc_send_message_in_list): Renamed to
23 __objc_send_load_using_method_list. Do not take an 'op' argument.
24 Register the 'load' selector if needed.
25 (__objc_send_load): Do not register the 'load' selector. Updated
26 call to __objc_send_message_in_list.
27 (__objc_create_classes_tree): Add the class of any claimed
28 category that was loaded in the module to the list of classes for
29 which we try to execute +load.
30
df0820da
NP
312010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
32
33 * objc-private/common.h: When DEBUG is defined, include <stdio.h>.
34 Updated comments.
35 * init.c (__objc_tree_insert_class): Use %p, not %x, when printing
36 a pointer using DEBUG_PRINTF.
37
c75534d1
NP
382010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
39
40 PR libobjc/45953
41 * selector.c (__sel_register_typed_name): When registering a new
42 selector with the same name as an existing one, reuse the existing
43 name string. Also updated types, casts and comments in the whole
44 function.
45
600cbba2
NP
462010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
47
48 * objc-private/module-abi-8.h (struct objc_symtab): Declare 'refs'
49 to be 'struct objc_selector *' and not 'SEL'.
50 * init.c (__objc_exec_class): Call
51 __objc_register_selectors_from_module instead of iterating over
52 each selector and calling __sel_register_typed_name for each.
53 * objc-private/selector.h: Declare
54 __objc_register_selectors_from_module instead of
55 __sel_register_typed_name.
56 * selector.c (__objc_register_selectors_from_module): New.
57 (__sel_register_typed_name): Made static.
58
bebf8772
NP
592010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
60
61 * linking.m: Do not include objc/NXConstStr.h.
62
9c68c0e5
NP
632010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
64
65 * objc-private/runtime.h (DEBUG_PRINTF): Moved from here ...
66 * objc-private/common.h (DEBUG_PRINTF): To here.
67 * hash.c: Do not include objc-private/runtime.h and objc/thr.h.
68
57d75eeb
NP
692010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
70
71 * hash.c: Tidied up comments and indentation. No code changes.
72
ef7ed5df
NP
732010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
74
75 PR libobjc/47012
76 * accessors.m (objc_getProperty): If not atomic, do not
77 retain/autorelease the returned value. (Problem reported by
78
f94e723b
NP
792010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
80
81 * objc-private/runtime.h (__objc_selector_max_index,
82 __objc_init_selector_tables, __objc_register_selectors_from_class,
83 __objc_register_selectors_from_list,
84 __objc_register_selectors_from_description_list): Moved to ...
85 * objc-private/selector.h: ... here.
86
d9df3365
NP
872010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
88
89 * objc-private/runtime.h (__objc_class_links_resolved): Removed.
90 (__objc_print_dtable_stats): Removed.
91 (__sel_register_typed_name): Removed.
92 * sendmsg.c (__objc_print_dtable_stats): Use 'void' as argument.
93
41720477
NP
942010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
95
96 * init.c (__objc_exec_class): Call __objc_resolve_class_links (),
97 if appropriate, after loading the module.
98
5f38ced1
NP
992010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
100
101 * sendmsg.c (method_setImplementation): Do not declare.
102
ecfc2705
NP
1032010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
104
105 * objc/message.h: Updated comments.
106 * objc/runtime.h: Updated comments.
107
6e45b376
NP
1082010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
109
110 * class.c (objc_lookupClass): Renamed to objc_lookUpClass.
111 * protocols.c: Updated all calls to objc_lookupClass to call
112 objc_lookUpClass instead.
113 * sendmsg.c (objc_lookupClass): Do not declare.
114 (get_imp): Update call to objc_lookupClass to call
115 objc_lookUpClass instead.
116 * objc/runtime.h (objc_lookupClass): Renamed to objc_lookUpClass.
117
fea78205
NP
1182010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
119
120 * objc/runtime.h (class_ivar_set_gcinvisible): Declare.
121 * sendmsg.c (_CLS_IN_CONSTRUCTION, CLS_IS_IN_CONSTRUCTION): Do not
122 define. Updated comments.
123
2899534b
NP
1242010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
125
126 * objc/encoding.h: Updated comments.
127 * objc/runtime.h: Updated comments.
128 (objc_setGetUnknownClassHandler): Mark with objc_EXPORT.
129 (objc_sizeof_type): Same.
130 (objc_alignof_type): Same.
131 (objc_aligned_size): Same.
132 (objc_promoted_size): Same.
133 (objc_skip_type_qualifiers): Same.
134 (objc_skip_typespec): Same.
135 (objc_skip_offset): Same.
136 (objc_skip_argspec): Same.
137 (objc_get_type_qualifiers): Same.
138 (objc_layout_structure): Same.
139 (objc_layout_structure_next_member): Same.
140 (objc_layout_finish_structure): Same.
141 (objc_layout_structure_get_info): Same.
142
120d5f8e
NP
1432010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
144
145 * init.c: Updated comments.
146 * objc/objc-api.h: Updated comments.
147 * objc/runtime.h (_objc_load_callback): Declare.
148
c34fc988
NP
1492010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
150
151 * objc/Object.h: Include deprecated/typedstream.h and
152 deprecated/hash.h instead of typedstream.h. Updated comments.
153
5ec582f9
NP
1542010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
155
156 * Makefile.in (OBJC_DEPRECATED_H): Added objc_msg_sendv.h.
157 * objc/deprecated/objc_msg_sendv.h: New.
158 * objc/message.h: Do not define retval_t, apply_t, arglist,
159 arglist_t, objc_msg_sendv, now in
160 objc/deprecated/objc_msg_sendv.h.
161 * objc/objc.h: Do not include message.h; include
162 objc/deprecated/objc_msg_sendv.h instead. Tidied up comments.
163 * sendmsg.c: Include objc/message.h.
164 * thr.c: Include objc/message.h.
165
805a07f1
NP
1662010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
167
168 * objc/objc-exception.h: Include objc-decls.h. Mark all
169 functions with objc_EXPORT.
170 * objc/objc-sync.h: Same change.
171
c06a8664
NP
1722010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
173
174 * Protocol.m: Moved all methods, with the exception of -isEqual:,
175 into the 'Deprecated' category.
176 * objc/Protocol.h: Removed all methods, moved to
177 objc/deprecated/Protocol.h. Include objc/deprecated/Protocol.h.
178 * objc/deprecated/Protocol.h: New.
179 * Makefile.in (OBJC_DEPRECATED_H): Added Protocol.h.
180
1af5b8f5
NP
1812010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
182
183 * init.c: Include objc-private/selector.h. Do not declare
184 __sel_register_typed_name.
185 * objc-private/selector.h (__sel_register_typed_name): Declare.
186 * selector.c: Include objc-private/selector.h.
187
575584a9
NP
1882010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
189
190 * class.c: Tidied up comments and indentation. No code changes.
191 * error.c: Same.
192 * exception.c: Same.
193 * init.c: Same.
194 * ivars.c: Same.
195 * memory.c: Same.
196 * objc-foreach.c: Same.
197 * objc-sync.c: Same.
198 * objects.c: Same.
199 * protocols.c: Same.
200 * sarray.c: Same.
201 * thr.c: Same.
202
fed2b101
NP
2032010-12-17 Nicola Pero <nicola.pero@meta-innovation.com>
204
205 * init.c: Include objc/runtime.h and objc-private/module-abi-8.h
206 instead of objc/objc-api.h.
207 (init_check_module_version): Take a 'struct objc_module *'
208 argument instead of 'Module_t'. Use 'struct objc_module *'
209 instead of 'Module_t'.
210 (__objc_created_classes_tree): Take a 'struct objc_module *'
211 argument instead of 'Module_t'; use 'struct objc_symtab *' instead
212 of 'Symtab_t'.
213 (__objc_call_callback): Take a 'struct objc_module *' argument
214 instead of 'Module_t'; use 'struct objc_symtab *' instead of
215 'Symtab_t' and 'struct objc_category *' instead of 'Category_t'.
216 (_objc_load_callback): Take a 'struct objc_category *' argument
217 instead of 'Category *'.
218 (class_superclass_of_class): Use objc_getClass() instead of
219 objc_lookup_class().
220 (create_tree_of_subclasses_inherited_from): Same change (also, use
221 an explicit 'if' instead of '?').
222 (objc_init_statics): Same change.
223 (objc_send_load): Same change.
224 (__objc_init_protocol): same change.
225 (__objc_send_message_in_list): Take a 'struct objc_method_list *'
226 argument instead of 'MethodList_t'. Use 'struct objc_method *'
227 instead of 'Method_t'.
228 (__objc_send_load): Use 'struct objc_method_list *' instead of
229 'MethodList_t'. Use sel_registerName() instead of
230 sel_register_name().
231 (__objc_exec_class): Take a 'struct objc_module *' argument
232 instead of 'Module_t'. Use 'struct objc_symtab *' instead of
233 'Symtab_t'. Use objc_getClass() instead of objc_lookup_class().
234 Use 'struct objc_category *' instead of 'Category_t'.
235
114dae43
NP
2362010-12-16 Nicola Pero <nicola.pero@meta-innovation.com>
237
238 * sendmsg.c: Include objc/runtime.h instead of objc/objc-api.h.
239 Include objc-private/module-abi-8.h and objc-private/selector.h
240 instead of objc/encoding.h.
241 (objc_msg_lookup_super): Use super->super_class instead of
242 super->class.
243 (method_get_first_argument, method_get_next_argument): Declare
244 locally.
245 (class_get_instance_method): Declare before using.
246 (objc_msg_sendv): Use 'struct objc_method' instead of 'Method'.
247 (__objc_init_dispatch_tables, __objc_send_initialize): Use
248 sel_registerName() instead of sel_register_name().
249 (__objc_forward): Use sel_getName() instead of sel_get_name().
250 (objc_get_uninstalled_dtable): Use 'void' as argument.
251 * objc-private/selector.h: New.
252
53f672ca
NP
2532010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
254
255 * objc/message.h (objc_super): When using the modern API, do not
256 define Super and Super_t, and always use 'super_class' for the
257 super class field.
258 (objc_msg_lookup_super): Updated prototype to use 'struct
259 objc_super *' instead of 'Super_t'.
260 * sendmsg.c (objc_msg_lookup_super): Updated prototype to use
261 'struct objc_super *' instead of 'Super_t'.
262
db1792ee
NP
2632010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
264
265 * objc/message.h: Update comments, reindented code and moved
266 deprecated types and functions at the end of the file. No code
267 changes.
268
3db1a28c
NP
2692010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
270
271 * ivars.c (class_addIvar): Use the 'size' argument instead of
272 trying to calculate it using objc_sizeof_type().
273 * objc/runtime.h (class_addIvar): Updated comments.
274
b427203d
NP
2752010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
276
277 * sendmsg.c: Reindented some code and tidied up comments. No
278 actual code changes.
279
002d4675
NP
2802010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
281
282 * objc/Object.h: Moved all the methods, with the exception of
283 -class and -isEqual:, into ...
284 * objc/deprecated/Object.h: here.
285 * Object.m: Moved all the methods, with the exception of -class
286 and -isEqual: into the 'Deprecated' category.
287
9ecfa8de
NP
2882010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
289
290 * objects.c (object_copy): Do not #undef as we are no longer
291 including objc/objc-api.h.
292 * selector.c: Include objc/runtime.h and
293 objc-private/module-abi-8.h. Do not include objc/objc-api.h and
294 objc/encoding.h. Updated
295 (__objc_register_selectors_from_class): Use struct
296 objc_method_list * instead of MethodList_t.
297 (__objc_register_selectors_from_list): Use Method instead of
298 Method_t.
299 (struct objc_method_description_list): Do not define here.
300 (__objc_register_instance_methods_to_class): Use struct
301 objc_method_list * instead of MethodList_t and Method instead of
302 Method_t.
303
d4645ada
NP
3042010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
305
306 * selector.c: Reindented some code and tidied up comments. No
307 actual code changes.
308
f436d2ff
IS
3092010-12-13 Iain Sandoe <iains@gcc.gnu.org>
310
311 * encoding.c (_darwin_rs6000_special_round_type_align): New.
312 (darwin_rs6000_special_round_type_align): Adjust to use new routine.
313
e97cfd97
NP
3142010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
315
316 * sendmsg.c (selector_resolveClassMethod): New.
317 (selector_resolveInstanceMethod): New.
318 (__objc_resolve_class_method): New.
319 (__objc_resolve_instance_method): New.
320 (get_imp): Call __objc_resolve_class_method or
321 __objc_resolve_instance_method at the appropriate time.
322 (objc_msg_lookup): Same.
323 (class_getClassMethod): Same.
324 (class_getInstanceMethod): Same.
325 (__objc_init_dispatch_tables): Initialize
326 selector_resolveClassMethod and selector_resolveInstanceMethod.
327 * objc/runtime.h: Updated documentation of class_getClassMethod,
328 class_getInstanceMethod and class_getMethodImplementation.
329
375d1239
NP
3302010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
331
332 * objc-private/module-abi-8.h (struct objc_symtab): Updated
333 description of sel_ref_cnt and refs.
334 * objc/deprecated/struct_objc_symtab.h (objc_symtab): Same change.
335
7de6ba7a
DK
3362010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
337
338 PR target/40125
339 PR lto/46695
340 * configure.ac (extra_ldflags_libobjc): Invoke ACX_LT_HOST_FLAGS.
341 * Makefile.in (lt_host_flags): Import AC_SUBST'd value.
342 * aclocal.m4: Regenerate.
343 * configure: Regenerate.
344
196891b5
MK
3452010-12-03 Matthias Klose <doko@ubuntu.com>
346
347 * configure.ac (VERSION): Bump the version to 3:0:0.
348 * configure: Regenerate.
349
d81e30b8
RFM
3502010-11-23 Richard Frith-Macdonald <rfm@gnu.org>
351
352 * sendmsg.c (get_imp): Fixed call to __objc_get_forward_imp to
353 pass nil as the receiver since we don't know the receiver at this
354 point.
355
49a35931
NP
3562010-11-18 Nicola Pero <nicola.pero@meta-innovation.com>
357
358 * ivars.c: Include stdlib.h.
359 * protocols.c: Same change.
360
682e805a
NP
3612010-10-24 Nicola Pero <nicola.pero@meta-innovation.com>
362
363 * Makefile.in (OBJC_SOURCE_FILES): Added accessors.m.
364 * accessors.m: New.
365 * init.c: Include objc-private/accessors.h.
366 (__objc_exec_class): Call __objc_accessors_init.
367 * objc-private/accessors.h: New.
368
5b8b526e
NP
3692010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
370
371 * objc/message.h: Moved initial includes outside of extern "C".
372 * objc/runtime.h: Add extern "C" for Objective-C++.
373
1501d094
NP
3742010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
375
376 * init.c (objc_send_load): Do not wait for NXConstantString to be
377 registered before executing +load. There is no point if
378 -fconstant-string-class=xxx is used when compiling all modules,
379 as is the case for almost all users.
380 * linking.m (__objc_linking): Do not try to forcefully link in
381 NXConstantString.
5b8b526e 382
6c5c7efd
NP
3832010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
384
385 * objc/runtime.h: Updated comments.
386 (class_addMethod): New.
387 (class_addIvar): New.
388 (class_replaceMethod): New.
389 (objc_allocateClassPair): New.
390 (objc_registerClassPair): New.
391 (objc_disposeClassPair): New.
392 * class.c (objc_allocateClassPair): New.
393 (objc_registerClassPair): New.
394 (objc_disposeClassPair): New.
395 (class_getSuperclass): Return Nil if a class is in construction.
396 * init.c (__objc_exec_class): Call __objc_init_class.
397 (__objc_init_class): New.
398 * ivars.c (class_copyIvarList): Return NULL if class is in
399 construction. Do not lock the runtime mutex.
400 (class_getInstanceVariable): Return NULL if class is in
401 construction. Do not lock the runtime mutex.
402 (class_addIvar): New.
403 * sendmsg.c (class_addMethod): New.
404 (class_replaceMethod): New.
405 * objc-private/module-abi-8.h (__CLS_SETNOTINFO): New.
406 (_CLS_IN_CONSTRUCTION): New.
407 (CLS_IS_IN_CONSTRUCTION): New.
408 (CLS_SET_IN_CONSTRUCTION): New.
409 (CLS_SET_NOT_IN_CONSTRUCTION): New.
410 * objc-private/runtime.h (__objc_init_class): New.
411
1cde73d7
NP
4122010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
413
414 * class.c (class_getSuperclass): Call __objc_resolve_class_links
415 if the class is not resolved yet.
416 * ivars.c (class_getInstanceVariable): Use class_getSuperclass.
417
3c44c190
NP
4182010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
419
420 * objc/runtime.h (class_getIvarLayout): New.
421 (class_getWeakIvarLayout): New.
422 (class_setIvarLayout): New.
423 (class_setWeakIvarLayout): New.
424 * ivars.c (class_getIvarLayout): New.
425 (class_getWeakIvarLayout): New.
426 (class_setIvarLayout): New.
427 (class_setWeakIvarLayout): New.
428
8437e063
NP
4292010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
430
431 * objc/runtime.h (class_copyPropertyList): New.
432 (class_getProperty): New.
433 (property_getAttributes): New.
434 (property_getName): New.
435 * ivars.c (class_copyPropertyList): New.
436 (class_getProperty): New.
437 (property_getAttributes): New.
438 (property_getName): New.
439
51194e8e
NP
4402010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
441
442 * objc-private/runtime.h (__objc_update_classes_with_methods): New.
443 * class.c (__objc_update_classes_with_methods): New.
444 (objc_getClassList): Do not lock the class lock.
445 * methods.c (method_exchangeImplementations): New.
446 (method_setImplementation): New.
447 * objc/runtime.h (method_setImplementation): New.
448 (method_exchangeImplementations): New.
449
ae422ccd
NP
4502010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
451
452 * Protocol.m: Include objc/runtime.h and
453 objc-private/module-abi-8.h instead of objc/objc-api.h. Do not
454 repeat Protocol's instance variables.
455 (struct objc_method_description_list): Do not define here.
456 ([-conformsTo:]): Reimplemented on top of protocol_conformsTo().
457 ([descriptionForInstanceMethod:]): Use sel_isEqual() to compare
458 selectors directly instead of getting names and then using strcmp.
459 ([descriptionForClassMethod:]): Same change.
460 ([-isEqual:]): Reimplemented on top of protocol_isEqual().
461 * protocols.c (protocol_getMethodDescription): Use sel_isEqual()
462 to compare selectors directly instead of getting names and then
463 using strcmp.
464 * objc/Protocol.h: Updated comments.
465
97764753 4662010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
f7185d47
NP
467
468 * init.c (__objc_init_protocol): New function which fixes up a
469 protocol's class pointer, registers it with the runtime, register
470 all protocol selectors and registers associated protocols too.
471 (objc_init_statics): Detect if we are initializing protocols, and
472 if so, use __objc_init_protocol instead of only fixing up the
473 class pointer.
474 (__objc_init_protocls): Use __objc_init_protocol.
475 * objc-private/module-abi-8.h: Updated comments.
476 * objc-private/runtime.h
477 (__objc_register_selectors_from_description_list): New.
478 * selector.c (__objc_register_selectors_from_description_list):
479 New. (struct objc_method_description_list): Declare.
480 * Protocol.m ([-descriptionForInstanceMethod:]): Use sel_get_name
481 when accessing the name of a method, which is now correctly a SEL.
482 ([-descriptionForClassMethod:]): Same change.
483 * protocols.c (protocol_getMethodDescription): Same change.
484 * objc/runtime.h: Updated comments.
485 (sel_registerTypedName): Fixed typo in function name.
486
5254c66b
NP
4872010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
488
489 PR libobjc/23214
490 * init.c (objc_init_statics): Do not skip the initialization of a
491 statics list if the first object has already been initialized; in
492 the case of Protocols, while the first one may have been
493 initialized, some others may not have been initialized yet.
494
b0453850
NP
4952010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
496
497 * Makefile.in (OBJC_DEPRECATED_H): Added
498 objc_get_uninstalled_dtable, objc_object_alloc.h and
499 struct_objc_static_instances.h.
500
ad49efbd
NP
5012010-10-13 Nicola Pero <nicola.pero@meta-innovation.com>
502
503 * encoding.c (method_copyReturnType): New.
504 (method_copyArgumentType): New.
505 (method_getReturnType): New.
506 (method_getArgumentType): New.
507 * methods.c (method_getDescription): New.
508 * objc/runtime.h (method_copyReturnType): New.
509 (method_copyArgumentType): New.
510 (method_getReturnType): New.
511 (method_getArgumentType): New.
512 (method_getDescription): New.
513
c994cc85
NP
5142010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
515
516 * encoding.c: Tidied up comments.
517 (objc_skip_variable_name): New static inline function.
518 (objc_sizeof_type): Use objc_skip_variable_name instead of copying
519 the same code over and over.
520 (objc_alignof_type): Same.
521 (objc_aligned_size): Same.
522 (objc_promoted_size): Same.
523 (objc_skip_typespec): Same.
524 (objc_layout_structure_next_member): Same.
525 (objc_skip_offset): Skip a '-' before the digits (if any). Fixed
526 historical bug where objc_skip_offset would skip one byte even if
527 there is no offset: check that the first offset digit is actually
528 a digit before skipping it.
529 (objc_skip_type_qualifiers): Mark as inline.
530 (objc_skip_typespec): Mark as inline.
531
ad9eef11
NP
5322010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
533
534 * Makefile.in (C_SOURCE_FILES): Added methods.c.
535 * encoding.c (method_getNumberOfArguments): New.
536 (method_get_number_of_arguments): Call
537 method_getNumberOfArguments.
538 * ivars.c (ivar_getName): Check for NULL variable argument.
539 (ivar_getOffset): Check for NULL variable argument.
540 (ivar_getTypeEncoding): Check for NULL variable argument.
541 (class_copyIvarList): New.
542 * methods.c: New.
543 * protocols.c (class_copyProtocolList): Check for Nil class_
544 argument.
545 * sendmsg.c: Use 'struct objc_method *' instead of Method_t, and
546 'struct objc_method_list *' instead of MethodList_t.
547 (class_getMethodImplementation): New.
548 (class_respondsToSelector): New.
549 (class_getInstanceMethod): New.
550 (class_getClassMethod): New.
551 * objc/runtime.h: Updated comments.
552 (class_copyIvarList): New.
553 (class_getInstanceMethod): New.
554 (class_getClassMethod): New.
555 (class_getMethodImplementation): New.
556 (class_respondsToSelector): New.
557 (method_getName): New.
558 (method_getImplementation): New.
559 (method_getTypeEncoding): New.
560 (class_copyMethodList): New.
561 (method_getNumberOfArguments): New.
562
be05b0f5
NP
5632010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
564
565 * class.c: Include objc/runtime.h and objc-private/module-abi-8.h
566 instead of objc/objc-api.h.
567 (objc_get_unknown_class_handler): Do not define.
568 (class_isMetaClass): New.
569 (class_getSuperclass): New.
570 (class_getVersion): New.
571 (class_setVersion): New.
572 (class_getInstanceSize): New.
573 * exceptions.c: Include objc/runtime.h instead of objc/objc-api.h.
574 (is_kind_of_exception_matcher): Use objc_getSuperclass instead of
575 objc_get_super_class.
576 (get_ttype_entry): Use objc_getRequiredClass instead of
577 objc_get_class.
578 * ivars.c (class_getClassVariable): New.
579 * objects.c: Include objc/runtime.h, objc/thr.h and
580 objc-private/module-abi-8.h instead of objc/objc-api.h
581 * objc/runtime.h (class_getClassVariable): New.
582 (class_isMetaClass): New.
583 (class_getSuperclass): New.
584 (class_getVersion): New.
585 (class_setVersion): New.
586 (class_getInstanceSize): New.
587 * objc-private/module-abi-8.h (HOST_BITS_PER_LONG): New (from
588 objc/objc-api.h)
589 (__CLS_INFO): Same.
590 (__CLS_ISINFO): Same.
591 (__CLS_SETINFO): Same.
592 (CLS_ISMETA): Same.
593 (CLS_ISCLASS): Same.
594 (CLS_ISRESOLV): Same.
595 (CLS_SETRESOLV): Same.
596 (CLS_ISINITIALIZED): Same.
597 (CLS_SETINITIALIZED): Same.
598 (CLS_GETNUMBER): Same.
599 (CLS_SETNUMBER): Same.
600
718a8e53
NP
6012010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
602
603 * archive.c: Do not include objc/objc.h.
604 * class.c: Do not include objc/objc.h.
605 * encoding.c: Include objc/runtime.h, ctype.h and
606 objc-private/module-abi-8.h instead of objc/objc-api.h and
607 objc/encoding.h.
608 * error.c: Do not include objc/objc.h.
609 * gc.c: Include tconfig.h and objc/encoding.h only if
610 OBJC_WITH_GC.
611 * hash.c: Include objc/runtime.h and objc/thr.h instead of
612 objc/objc-api.h. Do not include objc/objc.h.
613 * init.c: Do not include objc/objc.h.
614 * ivars.c: Include objc/runtime.h, objc-private/module-abi-8.h and
615 objc/thr.h instead of objc/objc-api.h. Do not include
616 objc/objc.h.
617 * linking.m: Tidied comment.
618 * memory.c: Include objc/runtime.h instead of objc/objc-api.h.
619 Do not include objc/objc.h.
620 * objects.c: Do not include objc/objc.h.
621 * objc-sync.c: Include objc/runtime.h instead of objc/objc-api.h.
622 * protocols.c: Do not include objc/objc.h.
623 * sarray.c: Include objc/runtime.h instead of objc/objc-api.h. Do
624 not include objc/objc.h.
625 * selector.c: Do not include objc/objc.h.
626 * sendmsg.c: Do not include objc/objc.h.
627 * thr.c: Include objc/runtime.h instead of objc/objc-api.h.
628 Do not include objc/objc.h.
629 * objc/objc-decls.h: Reindented code.
630 * objc/runtime.h Include objc-decls.h. Updated comments.
631 (objc_malloc): New.
632 (objc_atomic_malloc): New.
633 (objc_calloc): New.
634 (objc_realloc): New.
635 (objc_free): New.
636 * objc-private/runtime.h: Updated comments.
637
debfbfee
NP
6382010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
639
640 * Makefile.in (C_SOURCE_FILES): Added protocols.c.
641 * objc-private/protocols.h: New.
642 * protocols.c: New.
643 * init.c: Include objc-private/protocols.h.
644 (__objc_exec_class): Call __objc_protocols_init on startup.
645 (__objc_init_protocols): Call __objc_protocols_add_protocol.
646 * objc-private/runtime.h: Use (struct objc_method_list *) instead
647 of MethodList_t, and (struct objc_method *) instead of Method_t.
648 * objc/deprecated/struct_objc_class.h: Define
649 __objc_STRUCT_OBJC_CLASS_defined.
650 * objc-private/module-abi-8.h (struct
651 objc_method_description_list): New.
652 (struct objc_class): Only define if
653 __objc_STRUCT_OBJC_CLASS_defined is undefined.
654 * objc/runtime.h (class_getName): New.
655 (objc_getProtocol): New.
656 (objc_copyProtocolList): New.
657 (class_addProtocol): New.
658 (class_conformsToProtocol): New.
659 (class_copyProtocolList): New.
660 (protocol_conformsToProtocol): New.
661 (protocol_isEqual): New.
662 (protocol_getName): New.
663 (protocol_getMethodDescription): New.
664 (protocol_copyMethodDescriptionList): New.
665 (protocol_getProperty): New.
666 (protocol_copyPropertyList): New.
667 (protocol_copyProtocolList): New.
668 * class.c (class_getName): New.
669 * selector.c (sel_isEqual): New.
670
524660d2
NP
6712010-10-12 Nicola Pero <nicola.pero@meta-innovation.com>
672
673 * selector.c (sel_getName): Return "<null selector>" for a NULL
674 argument.
675 (sel_get_name): Return 0 for a NULL argument.
676 * objc/runtime.h (sel_getName): Updated documentation.
677
678 * objc-private/hash.h (class_hash_table): Unused declaration
679 removed.
680 (module_hash_table): Same.
681 * objc/deprecated/hash.h: Same changes.
682
90a2689f
NP
6832010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
684
685 * class.c (objc_getClassList): New.
686 (objc_getRequiredClass): New.
687 (objc_getMetaClass): New.
688 (objc_lookupClass): New.
689 (objc_getClass): New.
690 (__objc_get_unknown_class_handler): New.
691 (objc_setGetUnknownClassHandler): New.
692 (objc_get_class): Use __objc_get_unknown_class_handler.
693 (objc_lookup_class): Call objc_getClass.
694 * objc/objc-api.h: Updated comment and copyright notice.
695 * objc/runtime.h: Updated comments.
696 (objc_getClass): New.
697 (objc_lookupClass): New.
698 (objc_getMetaClass): New.
699 (objc_getRequiredClass): New.
700 (objc_getClassList): New.
701 (objc_setGetUnknownClassHandler): New.
702 (objc_get_unknown_class_handler): New.
703 * objc-private/runtime.h: Use __objc_private_runtime_INCLUDE_GNU
704 instead of __objc_runtime_INCLUDE_GNU as include guard.
705 * objc-private/error.h (_objc_abort): Mark as noreturn.
706
fdcbbfe7
NP
7072010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
708
709 * Makefile.in (C_SOURCE_FILES): Added ivars.c.
710 * ivars.c: New.
711 * objc/objc.h: Updated comments.
712 * objc/runtime.h (object_getClass): New.
713 (object_getClassName): New.
714 (object_setClass): New.
715 (class_getInstanceVariable): New.
716 (object_getIndexedIvars): New.
717 (object_getInstanceVariable): New.
718 (object_setInstanceVariable): New.
719 (object_getIvar): New.
720 (object_setIvar): New.
721 (ivar_getName): New.
722 (ivar_getOffset): New.
723 (ivar_getTypeEncoding): New.
724 * objc-private/module-abi-8.h (struct objc_class): Added.
725 * objects.c (object_getClassName): New.
726 (object_setClass): New.
727
bc18535a
NP
7282010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
729
730 * objc/objc.h: Updated comments.
731 * objc/objc-api.h: (object_copy): Added one argument; use a
732 #define to maintain backwards-compatibility. Moved
733 _objc_object_alloc, _objc_object_copy, _objc_object_dispose and
734 objc_get_uninstalled_dtable into
735 objc/deprecated/objc_get_uninstalled_dtable.h and
736 objc/deprecated/objc_object_alloc.h. Include these files.
737 * objc/deprecated/objc_get_uninstalled_dtable.h: New.
738 * objc/deprecated/objc_object_alloc.h: New.
739 * objc/runtime.h (set_getName): New.
740 (sel_getType): New.
741 (sel_getUid): New.
742 (sel_registerName): New.
743 (sel_registerTypedName): New.
744 (sel_isEqual): New.
745 (class_createInstance): New.
746 (object_copy): New.
747 (object_dispose): New.
748 * objects.c: Do not include tconfig.h. Include gc_typed.h if
749 building the garbage collection version.
750 (__objc_object_alloc): Removed.
751 (__objc_object_copy): Removed.
752 (__objc_object_dispose): Removed.
753 (class_createInstance): New from code in class_create_instance.
754 Cast second argument of GC_malloc_explicitly_typed. Use
755 objc_calloc. Do not call _objc_object_alloc.
756 (class_create_instance): Call class_createInstance.
757 (object_copy): Added extraBytes argument. Do not call
758 _objc_object_copy.
759 (object_dispose): Do not call _objc_object_dispose.
760 * memory.c (objc_free): When using garbage collection, mark the
761 argument as unused.
762 * selector.c (sel_getName): New.
763 (sel_get_name): Call sel_getName.
764 (sel_getType): New.
765 (sel_get_type): Call sel_getType.
766 (sel_registerName): New.
767 (sel_register_name): Call sel_registerName.
768 (sel_registerTypedName): New.
769 (sel_register_typed_name): Call sel_registerTypedName.
770 (sel_getUid): New.
771 (sel_get_uid): Call sel_getUid.
772
e4d50866
NP
7732010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
774
775 * objc/objc-api.h: Define Method, Method_t, Category and
776 Category_t. Prevent including this file at the same time as
777 objc/runtime.h. Updated comments.
778 * objc/deprecated/struct_objc_method.h: Do not define Method,
779 Method_t.
780 * objc/deprecated/struct_objc_category.h: Do not define Category,
781 Category_t.
782 * objc-private/module-abi-8.h: New file containing a copy of all
783 the structure definitions. Not used yet.
784 * objc/encoding.h (objc_aligned_size): Removed duplicate
785 declaration. Updated comments.
786 * objc/runtime.h: Added Ivar, objc_property_t, Property, Method,
787 Category, struct objc_method_description, _C_ID and similar,
788 _C_CONST and similar and _F_CONST and similar. Added
789 objc_sizeof_type, objc_alignof_type, objc_aligned_size,
790 objc_promoted_size, objc_skip_type_qualifier, objc_skip_typespec,
791 objc_skip_offset, objc_skip_argspec, objc_get_type_qualifiers,
792 struct objc_struct_layout, objc_layout_structure,
793 objc_layout_structure_next_member, objc_layout_finish_structure,
794 objc_layout_structure_get_info. Prevent including this file at
795 the same time as objc/objc-api.h.
796
2461ab4b
NP
7972010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
798
799 * Makefile.in (OBJC_DEPRECATED_H): Added struct_objc_category.h,
800 struct_objc_ivar.h, struct_objc_ivar_list.h, struct_objc_method.h,
801 struct_objc_method_list.h, struct_objc_module.h,
802 struct_objc_protocol_list.h, struct_objc_symtab.h.
803 * objc/deprecated/struct_objc_category.h: New.
804 * objc/deprecated/struct_objc_ivar.h: New.
805 * objc/deprecated/struct_objc_ivar_list.h: New.
806 * objc/deprecated/struct_objc_method.h: New.
807 * objc/deprecated/struct_objc_method_list.h: New.
808 * objc/deprecated/struct_objc_module.h: New.
809 * objc/deprecated/struct_objc_protocol_list.h: New.
810 * objc/deprecated/struct_objc_symtab.h: New.
811 * objc/deprecated/struct_objc_static_instances.h: New.
812 * objc/objc-api.h: Definitions of deprecated structures moved into
813 the above header fragment files in objc/deprecated/. Include the
814 files instead of definition the structures here. Updated
815 comments.
816 * objc/runtime.h: Updated comments. Do not include objc-api.h.
817 (objc_set_enumeration_mutation_handler): Renamed to
818 objc_setEnumerationMutationHandler.
819 * objc-foreach.c (objc_set_enumeration_mutation_handler): Renamed
820 to objc_setEnumerationMutationHandler.
821 * objc/objc-exception.h (objc_set_exception_matcher): Renamed to
822 objc_setExceptionMatcher.
823 (objc_set_uncaught_exception_handler): Renamed to
824 objc_setUncaughtExceptionHandler.
825 * exception.c: Same changes.
826
e2633f25
NP
8272010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
828
829 * objc-sync.c: Include objc-private/common.h.
830
cf3822f1
NP
8312010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
832
833 * objc-foreach.c: Include objc-private/common.h.
834 * objc/deprecated/METHOD_NULL.h: New file.
835 * objc/objc-api.h: Include deprecated/METHOD_NULL.h instead of
836 defining METHOD_NULL here.
837 * Makefile.in (OBJC_DEPRECATED_H): Added METHOD_NULL.h.
838 * Object.m ([+instancesRespondTo:]): Use (Method_t)0 instead of
839 METHOD_NULL.
840 ([-respondsTo:]): Same change.
841 * objc/objc-api.h (method_get_imp): Converted it into a normal
842 function so that we can hide the internals of struct objc_method.
843 * sendmsg.c (method_get_imp): Implemented.
844
6176c2a9
NP
8452010-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
846
847 * objc/objc-api.h (struct objc_super, Super, Super_t,
848 objc_msg_lookup_super, objc_msg_sendv, objc_msg_forward,
849 objc_msg_forward2): Declarations moved to objc/message.h. Include
850 message.h here.
851 * objc/message.h: Added such declarations; updated comments.
852
f05b9d93
NP
8532010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
854
855 Implemented fast enumeration for Objective-C.
856 * Makefile.in (C_SOURCE_FILES): Added objc-foreach.c.
857 (OBJC_H): Added runtime.h
858 * objc-foreach.c: New file.
859 * objc/runtime.h: New file.
860
2de87f04
KT
8612010-09-30 Kai Tietz <kai.tietz@onevision.com>
862
863 * objc/deprecated/struct_objc_class.h: Add padding
864 to avoid warning with -Wpadded.
865
177b48f9
NP
8662010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
867
868 * encoding.c (objc_sizeof_type): Added support for vector type and
869 for double long types.
870 (objc_alignof_type): Same change.
871 (objc_skip_typespec): Same change.
872 * objc/encoding.h (_C_GCINVISIBLE): Use '|' for _C_GCINVISIBLE
873 instead of '!' since '!' is already used for _C_VECTOR.
874 * objc/objc-api.h (_C_LNG_DBL): Added.
875
d284c684
NP
8762010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
877
878 * libobjc_entry.c: File removed.
879
7116b6ea
KT
8802010-09-26 Kai Tietz <kai.tietz@onevision.com>
881
bd74d88b 882 * sendmsg.c (objc_msg_lookup): Remove inline.
7116b6ea
KT
883 (objc_get_uninstalled_dtable): Likewise.
884 * encoding.c (objc_skip_type_qualifiers): Likewise.
885 (objc_skip_offset): Likewise.
886 * archive.c (__objc_write_object): Likewise
887 (__objc_write_class):
888 (__objc_write_selector):
889 (objc_read_char):
890 (objc_read_unsigned_char):
891 (objc_read_short):
892 (objc_read_unsigned_short):
893 (objc_read_int):
894 (objc_read_long):
895 (__objc_read_nbyte_uint):
896 (objc_read_unsigned_int):
897 (objc_read_unsigned_long):
898 * objc/objc-decls.h (obc_EXPORT): Remove dllexport for DLL_EXPORT case.
899 (objc_EXPORT): Likewise.
900 * objc/message.h (objc-decls.h): Add include.
901 * objc/objc-api.h: Mark API by objc_EXPORT.
902 * libobjc.def (__objc_responds_to): Removed.
903
5d3b14bd
NP
9042010-09-18 Nicola Pero <nicola.pero@meta-innovation.com>
905
906 * hash.c: Include objc-private/hash.h instead of objc/hash.h.
907
908 * objc/sarray.h: Moved into objc/deprecated/sarray.h;
909 objc/sarray.h replaced with a placeholder including the file from
910 the deprecated/ directory.
911 * objc-private/sarray.h: New file (private copy of sarray.h).
912 * hash.c: Include <assert.h> instead of "assert.h"
913 * sarray.c: Include <assert.h> instead of "assert.h". Include
914 objc-private/sarray.h instead of objc/sarray.h.
915 * selector.c: Include objc-private/sarray.h instead of
916 objc/sarray.h.
917 * sendmsg.c: Include <assert.h>. Include objc-private/sarray.h
918 instead of objc/sarray.h.
919 * Makefile.in (OBJC_DEPRECATED_H): Added sarray.h.
920
349cfd93
NP
9212010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
922
923 * objc-private/objc-list.h (list_remove_elem): Unused function
924 removed. (list_nth): Unused function removed. (list_find):
925 Unused function removed. (list_lenght): Unused function removed.
926
5be9cdc1
NP
9272010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
928
929 * objc/hash.h: Moved into objc/deprecated/hash.h; objc/hash.h
930 replaced with a placeholder including the file from the
931 deprecated/ directory.
932 * objc/objc-api.h: Updated includes.
933 * objc/typedstream.h: Updated includes.
934 * objc-private/hash.h: New file (private copy of hash.h).
935 * objc/objc-list.h: Moved into objc/deprecated/objc-list.h;
936 objc/objc-list.h replaced with a placeholder including the file
937 from the deprecated/ directory.
938 * objc-private/objc-list.h: New file (private copy of objc-list.h).
939 * init.c: Include objc-private/hash.h and objc-private/objc-list.h
940 instead of objc/hash.h and objc/objc-list.h.
941 * selector.c: Same change.
942 * class.c: Added include <string.h>, which used to be implicitly included
943 when hash.h was included.
944 * exception.c: Same change.
945 * objects.c: Same change.
946 * sarray.c: Same change.
947 * sendmsg.c: Same change.
948 * Makefile.in (OBJC_DEPRECATED_H): Added hash.h and objc-list.h.
5be9cdc1 949
fd312537
NP
9502010-09-14 Nicola Pero <nicola.pero@meta-innovation.com>
951
952 Implemented objc_sync_enter() and objc_sync_exit(), which are
953 required by @synchronized() to work.
954 * objc-sync.c: New file.
955 * objc/objc-sync.h: New file.
956 * objc-private/objc-sync.h: New file.
957 * init.c (__objc_exec_class): Call __objc_sync_init() during the
958 Objective-C runtime startup.
959 * Makefile.in: Added objc-sync.c and objc-sync.h.
960 * configure.ac: Added GCC_CHECK_TLS.
961 * acinclude.m4: Include ../config/enable.m4 and ../config/tls.m4.
962 * configure: Regenerated.
963 * config.h.in: Regenerated.
964
7e268280
NP
9652010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
966
967 * Makefile.in (%_gc.lo): New pattern rules to build the
968 garbage-collected version of the library. Removed rules for
969 specific files that are no longer needed. Standardized all rules.
970 (C_SOURCE_FILES, OBJC_SOURCE_FILES): New variables.
971 (OBJS, OBJS_GC): Compute these from C_SOURCE_FILES and
972 OBJC_SOURCE_FILES.
973 (INCLUDES): Removed the unused include -I$(srcdir)/objc.
974
9752010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
976
977 * memory.c (objc_calloc): Fixed call to GC_malloc when building
978 with Garbage Colletion.
979
457e68e7
NP
9802010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
981
982 * memory.c: Do not include objc-private/runtime.h.
983
d1be5d82
NP
9842010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
985
986 * objc/deprecated/objc_malloc.h: New file.
987 * objc/deprecated/objc_valloc.h: New file.
988 * objc/objc-api.h: Include the files instead of defining
989 objc_valloc, _objc_malloc() and similar.
990 * Makefile.in (OBJC_DEPRECATED_H): Added objc_valloc.h and
991 objc_malloc.h.
992 * memory.c: Removed the extra layer of indirection of _objc_malloc
993 and similar.
994 (objc_calloc): Use GC_malloc in the garbage-collected
995 implementation as GC_malloc returns memory that is already freed.
996 (objc_valloc): Deprecated.
997
7b869986
NP
9982010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
999
1000 * objc/deprecated/objc_error.h: New file.
1001 * objc/objc-api.h: Include deprecated/objc_error.h instead of
1002 defining objc_error and related.
1003 * error.c: New file. Added _objc_abort function which replaces
1004 objc_error. No change in functionality as they both print an
1005 error and abort.
1006 * misc.c: File removed. Code moved into memory.c and error.c.
1007 * memory.c: New file.
1008 * objc-private/error.h: New file.
1009 * archive.c: Include objc-private/error.h and use _objc_abort
1010 instead of objc_error everywhere.
1011 * class.c: Same change.
1012 * encoding.c: Same change.
1013 * init.c: Same change, and simplified init_check_module_version.
1014 * memory.c: Same change.
1015 * sendmsg.c: Same change.
1016 * thr.c: Same change.
1017 * Makefile.in (OBJ_DEPRECATED_H): Added objc_error.h.
1018 (OBJ_H): Reordered list.
1019 (OBJS): Removed misc.lo, added memory.lo and error.lo.
1020 (OBJS_GC): Removed misc_gc.lo, added memory_gc.lo and error_gc.lo.
1021 (misc_gc.lo): Rule removed.
1022 (error_gc.lo): Rule added.
1023 (memory_gc.lo): Rule added.
1024
6dead247
NP
10252010-09-12 Nicola Pero <nicola.pero@meta-innovation.com>
1026
1027 * objc/objc.h (__GNU_LIBOBJC__): New #define providing an easy way
1028 to check the API version. Added some comments.
1029
1030 * objc-private/common.h: New file.
1031 * NXConstStr.m: Include objc-private/common.h.
1032 * Object.m: Same change.
1033 * Protocol.m: Same change.
1034 * archive.c: Same change.
1035 * class.c: Same change.
1036 * encoding.c: Same change.
1037 * exception.c: Same change.
1038 * gc.c: Same change.
1039 * hash.c: Same change.
1040 * init.c: Same change.
1041 * libobjc_entry.c: Same change.
1042 * linking.m: Same change.
1043 * misc.c: Same change (and added a comment).
1044 * nil_method.c: Same change.
1045 * objects.c: Same change.
1046 * sarray.c: Same change.
1047 * selector.c: Same change.
1048 * sendmsg.c: Same change.
1049 * thr.c: Same change.
1050
83c28dfd
NP
10512010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1052
1053 * objc/objc-api.h: Removed obsolete #ifdef for NeXTSTEP.
1054
0c11b8fb
NP
10552010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1056
1057 * archive.c: Removed not needed includes.
1058 * class.c: Same change.
1059 * hash.c: Same change.
1060 * misc.c: Same change.
1061 * nil_method.c: Same change.
1062 * objects.c: Same change.
1063 * sarray.c: Same change.
1064 * sendmsg.c: Same change.
1065 * thr.c: Same change.
1066
a19fac96
NP
10672010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1068
1069 * objc/runtime.h: Moved to objc-private/runtime.h. Do not include
1070 all the objc/*.h files.
1071 * objc-private/runtime.h: New file.
1072 * archive.c: Include objc-private/runtime.h (and required objc/*.h
1073 files) instead of objc/runtime.h.
1074 * class.c: Same change.
1075 * hash.c: Same change.
1076 * init.c: Same change.
1077 * misc.c: Same change.
1078 * nil_method.c: Same change.
1079 * objects.c: Same change.
1080 * sarray.c: Same change.
1081 * selector.c: Same change.
1082 * sendmsg.c: Same change.
1083 * thr.c: Same change.
1084
3d0d8739
NP
10852010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
1086
1087 * objc/deprecated/struct_objc_selector.h: New file. Definition of
1088 'struct objc_selector' and 'sel_eq' moved here.
1089 * objc/deprecated/struct_objc_protocol.h: New file. Definition of
1090 'struct objc_procotol' moved here.
1091 * objc/deprecated/struct_objc_class.h: New file. Definition of
1092 'struct objc_class' moved here.
1093 * objc/deprecated/MetaClass.h: New file. Definition of MetClass
1094 moved here.
1095 * objc/deprecated/STR.h: New file. Definition of STR moved here.
1096 * objc/message.h: New file. Definitions for relval_t, apply_t,
1097 arglist, arglist_t and objc_msg_lookup were moved here.
1098 * objc/objc.h: Include the above files instead of defining the
1099 corresponding structs, types and functions here. Added new opaque
1100 definitions for SEL and Class. Use Class and not 'struct
1101 objc_class *' in the definition of 'struct objc_object'.
1102 Commented all types defined in the file. Removed special
1103 definition of BOOL as 'int' on __vxworks; use 'unsigned char'
1104 there as well.
1105 * objc/deprecated/objc-unexpected-exception.h: Renamed to
1106 objc_unexpected_exception.h.
1107 * objc/objc-api.h: Updated include of
1108 objc-unexpetected-exception.h
1109 * objc/objc-exception.h: Updated comments.
1110 * Makefile.in (OBJC_H, OBJC_DEPRECATED_H): Added the new header
1111 files. Reindented list of files.
1112
4c26f0a5
NP
11132010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1114
1115 * objc/objc-api.h (objc_trace): Unused variable removed.
1116
e976a775
NP
11172010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1118
1119 * objc/deprecated: New directory.
1120 * objc/deprecated/README: New file.
1121 * objc/README: New file.
1122 * objc/typedstream.h: Moved into objc/deprecated/typedstream.h;
1123 objc/typedstream.h replaced with a placeholder including the file
1124 from the deprecated/ directory.
1125 * objc/deprecated/objc-unexpected-exception.h: New file with the
1126 definition of _objc_unexpected_exception.
1127 * objc/objc-api.h: Include deprecated/objc-unexcepted-exception.h
1128 instead of defining _objc_unexpected_exception.
1129 * objc/deprecated/Object.h: New file with the deprecated Object
1130 methods in a 'Deprecated' category.
1131 * objc/Object.h Include deprecated/Object.h instead of defining
1132 the deprecated methods.
1133 * Object.m: Moved deprecated methods into 'Deprecated' category.
1134 * objc-private: New directory.
1135 * objc-private/README: New file.
1136 * Makefile.in (OBJC_DEPRECATED_H): New variable.
1137 (install-headers): Create installation directory for
1138 OBJC_DEPRECATED_H headers, and install them.
1139
11402010-09-10 Nicola Pero <nicola.pero@meta-innovation.com>
1141
1142 * objc/objc-exception.h: Fixed include of objc.h.
1143
e30511ed
NP
11442010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1145
1146 * objc/objc-exception.h: New file.
1147 * exception.c (objc_set_uncaught_exception_handler): Implemented.
1148 (objc_set_exception_matcher): Implemented.
1149 (objc_exception_throw): Use the uncaught exception handler if set.
1150 (PERSONALITY_FUNCTION): Use the exception matcher instead of the
1151 hardcoded isKindOf.
1152 (isKindOf): Renamed to is_kind_of_exception_matcher. Tidied code
1153 up. Removed segmentation fault when value is 'nil'.
1154 * objc/objc-api.h (_objc_unexpected_exception): Mark as
1155 deprecated.
1156 * Makefile.in (exception.lo, exception_gc.lo): Use
1157 -Wno-deprecated-declarations when compiling.
1158 (OBJC_H): Added objc-exception.h
1159
d6f62ada 11602010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
4470254f
NP
1161
1162 * objc/typedstream.h: Deprecate all functions in the file. This
1163 file is obsolete.
1164 * objc/Object.h ([+streamVersion:], [-read:], [-write:],
1165 [-awake]): Documented that these methods are deprecated. Added a
1166 brief description of the Object class and its relationship to the
1167 NSObject class.
1168 * Makefile.in: Compile archive.c and Object.m with
1169 -Wno-deprecated-declarations.
1170
88a2722e
NP
11712010-09-08 Nicola Pero <nicola.pero@meta-innovation.com>
1172
1173 Removed obsolete intermediate threading layer.
1174 * thr.c: Use __gthread_objc_xxx functions directly instead of
1175 __objc_thread_xxx ones.
1176 * objc/thr.h: Removed prototypes of no longer existing
1177 __objc_thread_xxx functions.
1178 * Makefile.in: Removed thr-objc.lo.
1179 * thr-dce.c: File removed.
1180 * thr-decosf1.c: File removed.
1181 * thr-irix.c: File removed.
1182 * thr-mach.c: File removed.
1183 * thr-objc.c: File removed.
1184 * thr-os2.c: File removed.
1185 * thr-posix.c: File removed.
1186 * thr-pthreads.c: File removed.
1187 * thr-rtems.c: File removed.
1188 * thr-single.c: File removed.
1189 * thr-solaris.c: File removed.
1190 * thr-vxworks.c: File removed.
1191 * thr-win32.c: File removed.
1192 * README.threads: File removed.
1193 * THREADS.MACH: File removed.
1194 * THREADS: Updated.
1195
29b71c02
NP
11962010-09-07 Nicola Pero <nicola.pero@meta-innovation.com>
1197
1198 * Object.m (MAX_CLASS_NAME_LEN): Unused define removed.
1199
265a000d
IS
12002010-09-06 Iain Sandoe <iains@gcc.gnu.org>
1201
1202 * encoding.c: Add TARGET_ALIGN_NATURAL definition for m64 powerpc darwin.
1203 Add a comment as to why, update FIXME comments.
1204
7b74bb63
NP
12052010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
1206
1207 * makefile.dos: Obsolete file removed.
1208
4d9e8446
RW
12092010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1210
1211 * aclocal.m4: Regenerate.
1212
19222959
DK
12132010-03-23 Dave Korn <dave.korn.cygwin@gmail.com>
1214
1215 PR libobjc/30445
1216 * configure.ac (extra_ldflags_libobjc): Define appropriately for
1217 Cygwin and MinGW hosts.
1218 * Makefile.am (libobjc_s.a): Remove dead pre-libtool target.
1219 (libobjc.dll): Likewise.
1220 * configure: Regenerate.
1221
43e02a8a
RW
12222009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1223
1224 * configure: Regenerate.
1225
288d6a77
JJ
12262009-11-28 Jakub Jelinek <jakub@redhat.com>
1227
1228 * sarray.c (sarray_free): Use old_buckets variable.
1229 * encoding.c (objc_layout_structure_next_member): Remove unused
1230 bfld_type_size variable.
1231
df58e648
RW
12322009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1233
1234 * configure.ac (AC_PREREQ): Bump to 2.64.
1235
5213506e
RW
12362009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1237
1238 * aclocal.m4: Regenerate.
1239 * configure: Regenerate.
1240 * config.h.in: Regenerate.
1241
84fec8a5
RW
12422009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1243
1244 * Makefile.in (LIBTOOL): Add $(LIBTOOLFLAGS).
1245
6efbd53f
RW
12462009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1247
1248 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
1249 New variables.
1250 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
1251
1b3b24c2
RW
12522009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1253
1254 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1255
748086b7
JJ
12562009-04-09 Nick Clifton <nickc@redhat.com>
1257
1258 * sendmsg.c: Change copyright header to refer to version 3 of
1259 the GNU General Public License with version 3.1 of the GCC
1260 Runtime Library Exception and to point readers at the COPYING3
1261 and COPYING3.RUNTIME files and the FSF's license web page.
1262 * NXConstStr.m: Likewise.
1263 * Object.m: Likewise.
1264 * Protocol.m: Likewise.
1265 * archive.c: Likewise.
1266 * class.c: Likewise.
1267 * encoding.c: Likewise.
1268 * exception.c: Likewise.
1269 * gc.c: Likewise.
1270 * hash.c: Likewise.
1271 * init.c: Likewise.
1272 * libobjc_entry.c: Likewise.
1273 * linking.m: Likewise.
1274 * misc.c: Likewise.
1275 * nil_method.c: Likewise.
1276 * objc/NXConstStr.h: Likewise.
1277 * objc/Object.h: Likewise.
1278 * objc/Protocol.h: Likewise.
1279 * objc/encoding.h: Likewise.
1280 * objc/hash.h: Likewise.
1281 * objc/objc-api.h: Likewise.
1282 * objc/objc-decls.h: Likewise.
1283 * objc/objc-list.h: Likewise.
1284 * objc/objc.h: Likewise.
1285 * objc/runtime.h: Likewise.
1286 * objc/sarray.h: Likewise.
1287 * objc/thr.h: Likewise.
1288 * objc/typedstream.h: Likewise.
1289 * objects.c: Likewise.
1290 * sarray.c: Likewise.
1291 * selector.c: Likewise.
1292 * thr-dce.c: Likewise.
1293 * thr-decosf1.c: Likewise.
1294 * thr-irix.c: Likewise.
1295 * thr-mach.c: Likewise.
1296 * thr-objc.c: Likewise.
1297 * thr-os2.c: Likewise.
1298 * thr-posix.c: Likewise.
1299 * thr-pthreads.c: Likewise.
1300 * thr-rtems.c: Likewise.
1301 * thr-single.c: Likewise.
1302 * thr-solaris.c: Likewise.
1303 * thr-vxworks.c: Likewise.
1304 * thr-win32.c: Likewise.
1305 * thr.c: Likewise.
1306 * libobjc.def: Change copyright header to refer to version 3 of
1307 the GNU General Public License and to point readers at the COPYING3
1308 file and the FSF's license web page.
1309 * makefile.dos: Likewise.
1310
13112009-04-09 Jakub Jelinek <jakub@redhat.com>
1312
1313 * Makefile.in: Change copyright header to refer to version
1314 3 of the GNU General Public License and to point readers at the
1315 COPYING3 file and the FSF's license web page.
1316 * configure.ac: Likewise.
1317
faef499b
DA
13182009-03-12 Richard Frith-Macdonald <rfm@gnu.org>
1319 David Ayers <ayers@fsfe.org>
1320
1321 PR libobjc/27466
1322 * objc/objc-api.h (_objc_unexpected_exception): Declare
1323 new hook. Update copyright dates.
1324 * exception.c (objc_exception_throw): Use hook. Update
1325 copyright dates.
1326 * libobjc.def (_objc_unexpected_exception): Export hook.
1327 Update copyright dates.
1328
7a9d3fe8
RW
13292009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1330
1331 * configure: Regenerate.
1332
baafc534
RW
13332008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1334
1335 * configure: Regenerate.
1336
b15b7ef8
KT
13372008-11-21 Kai Tietz <kai.tietz@onevision.com>
1338
1339 * Object.m (errno): Replaced by errno.h include.
1340 (compare): Cast self to id to prevent warning on comparison.
1341 * objc/objc.h (BOOL): Prevent redeclaration of BOOL, if it is
1342 already there.
1343 * sendmsg.c (__objc_print_dtable_stats): Remove type warnings.
1344 * thr-win32.c (__objc_thread_detach): Remove type warning.
1345 (__objc_thread_id): Likewise.
1346 * thr.c (__objc_thread_detach_functiont): Add __builtin_trap ()
1347 for noreturn.
1348
467b2e9e
PG
13492008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1350 Steve Ellcey <sje@cup.hp.com>
1351
1352 * configure: Regenerate for new libtool.
1353 * config.h.in: Regenerate for new libtool.
1354
920d063d
MK
13552008-07-18 Matthias Klose <doko@ubuntu.com>
1356
1357 * Makefile.in: Ignore missing ../boehm-gc/threads.mk.
1358
785fad0a
MK
13592008-07-18 Matthias Klose <doko@ubuntu.com>
1360
1361 * Makefile.in: Include ../boehm-gc/threads.mk.
1362 (OBJC_BOEHM_GC_LIBS): Define, (libobjc_gc$(libsuffix).la): Use it.
1363
a0ed5099
RW
13642008-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1365
1366 * Makefile.in (install-info): New stub target.
1367
18c04407
RW
13682008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1369
1370 * configure: Regenerate.
1371
b01bd5fe
KT
13722008-06-14 Kai Tietz <kai.tietz@onevision.com>
1373
1374 * exception.c (PERSONALITY_FUNCTION): Remove extra decrement
1375 if HAVE_GETIPINFO is not defined.
1376
c24aadf3
KT
13772008-06-10 Kai Tietz <kai.tietz@onevision.com>
1378
1379 * Object.m (compare): Add type id.
1380 * objc/Object.h: Likewise.
1381 * archive.c (objc_read_class): Use size_t to extend version to be
1382 size of pointer scalar width.
1383 * sendmsg.c (rtx): Undefine it before redefinition.
1384 (__objc_print_dtable_stats): Cast arguments to long as intended.
1385
3f6383d3
JB
13862008-05-30 Julian Brown <julian@codesourcery.com>
1387
1388 * exception.c (__objc_exception_class): Initialise as constant
1389 array for ARM EABI. Change macro to static const for non-ARM EABI.
1390 (ObjcException): Add note about structure layout. Remove landingPad
1391 and handlerSwitchValue for ARM EABI.
1392 (get_ttype_entry): Add __ARM_EABI_UNWINDER__ version
1393 of function.
1394 (CONTINUE_UNWINDING): Define for ARM EABI/otherwise cases.
1395 (PERSONALITY_FUNCTION): Use ARM EABI-specific arguments, and add
1396 ARM EABI unwinding support.
1397 (objc_exception_throw): Use memcpy to initialise exception class.
1398
dd25a747
AM
13992008-05-25 Alan Modra <amodra@bigpond.net.au>
1400
1401 * encoding.c (strip_array_types): Rename from get_inner_array_type.
1402 (rs6000_special_round_type_align): Update.
1403
7afa92c5
JB
14042008-05-09 Julian Brown <julian@codesourcery.com>
1405
1406 * Makefile.in (LTLDFLAGS): New.
1407 (libobjc$(libsuffix).la, libobjc_gc$(libsuffix).la): Use above.
1408
deb984e6
PB
14092008-04-18 Paolo Bonzini <bonzini@gnu.org>
1410
1411 PR bootstrap/35457
1412 * aclocal.m4: Regenerate.
1413 * configure: Regenerate.
1414
e7ad4ca7
DE
14152008-01-24 David Edelsohn <edelsohn@gnu.org>
1416
1417 * configure: Regenerate.
1418
2c888488
L
14192007-10-14 H.J. Lu <hongjiu.lu@intel.com>
1420
1421 * configure.ac: Don't run config-ml.in directly.
1422 (multilib_arg): New.
1423 * configure: Regenerated.
1424
30cad60d
AP
14252007-08-06 Andrew Pinski <pinskia@gmail.com>
1426
1427 PR libobjc/30731
1428 * exception.c (parse_lsda_header): Use _uleb128_t/_sleb128_t instead
1429 of _Unwind_Word for variables which are used in
1430 read_uleb128/read_sleb128.
1431 (PERSONALITY_FUNCTION): Likewise.
1432
12a27363
L
14332007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1434
1435 * aclocal.m4: Regenerated.
1436
af333b9a
AP
14372007-06-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
1438
1439 * configure.ac: Fix a typo in *-*-darwin clause.
1440 * configure: Regenerated.
1441
4620d81e
L
14422007-06-02 H.J. Lu <hongjiu.lu@intel.com>
1443
1444 * configure.ac: Fix a typo.
1445 * configure: Regenerated.
1446
82a6cadf
PB
14472007-06-02 Paolo Bonzini <bonzini@gnu.org>
1448
1449 * configure: Regenerate.
1450
45d5f86c
AP
14512007-06-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
1452
1453 * Makefile.in: Replace all uses of libext with libsuffix.
1454 * configure.ac: Likewise.
1455 * configure: Regenerate.
1456
1457 Revert:
1458 * Makefile.in: Remove all uses of $(libext).
1459
8b5dda41
AP
14602007-05-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
1461
1462 * Makefile.in: Remove all uses of $(libext).
1463
1cf3d07d
SE
14642007-05-23 Steve Ellcey <sje@cup.hp.com>
1465
1466 * configure: Regenerate.
1467 * aclocal.m4: Regenerate.
1468
8972bcd8
AR
14692007-04-21 Andrew Ruder <andy@aeruder.net>
1470
1471 * sendmsg.c (__objc_get_forward_imp): Call
1472 __objc_msg_forward2 for real.
1473
80ae8e8a
AR
14742007-04-09 Andrew Ruder <andy@aeruder.net>
1475
1476 * sendmsg.c: Added __objc_msg_forward2, a hook that allows
1477 external libraries to provide a function that returns the real
1478 forwarding function based on both the selector and the receiver.
1479 * objc/objc-api.h: Define __objc_msg_forward2.
1480
38593123
BM
14812007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1482
1483 * Makefile.in: Add dummy install-pdf target.
1484
3034b453
MLI
14852007-02-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1486
1487 * objc/objc-list.h (list_free): Add keyword 'inline' to avoid
1488 unused warning.
1489
58182de3
GK
14902006-10-31 Geoffrey Keating <geoffk@apple.com>
1491
1492 * encoding.c (darwin_rs6000_special_round_type_align): New.
1493
5b043f08
GK
14942006-10-14 Geoffrey Keating <geoffk@apple.com>
1495
1496 * Makefile.in: Use multi_basedir instead of toplevel_srcdir.
1497 * configure.ac: Use multi.m4 from aclocal rather than custom
1498 code. Use multi_basedir instead of toplevel_srcdir.
1499 * aclocal.m4: Regenerate.
1500 * configure: Regenerate.
1501
b5422ad7
BM
15022006-10-10 Brooks Moses <bmoses@stanford.edu>
1503
1504 * Makefile.in: Added empty "pdf" target.
1505
57255173
PB
15062006-07-18 Paolo Bonzini <bonzini@gnu.org>
1507
91ba215a 1508 * configure: Regenerate.
57255173 1509
2788992b
CD
15102006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1511
1512 * Makefile.in: Add install-html target. Add install-html to .PHONY
1513
529490b4
RO
15142006-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1515
1516 PR libobjc/26309
1517 * thr-objc.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1518
801a91f9
DA
15192006-01-24 David Ayers <d.ayers@inode.at>
1520
1521 PR libobjc/9751
1522 * gc.c (class_ivar_set_gcinvisible): Replace strncpy with memcpy
1523 and insure the new strings are '\0' termintated.
1524
8c3e5222
DA
15252006-01-24 David Ayers <d.ayers@inode.at>
1526
1527 PR libobjc/13946
1528 * configure.ac: Add include directives for --enable-objc-gc.
1529 * Makefile.in: Ditto.
1530 * configure: Regenerate.
1531
1532 * gc.c (__objc_class_structure_encoding): Increment the used bytes
1533 instead of the local pointer to them.
1534
06b11455
AP
15352005-12-14 Andrew Pinski <pinskia@physics.uc.edu>
1536
1537 PR objc/25360
91ba215a
AP
1538 * objc/objc-api.c (_C_COMPLEX): New define.
1539 * encoding.c (objc_sizeof_type): Handle _C_Complex.
1540 (objc_alignof_type): Likewise.
1541 (objc_skip_typespec): Likewise.
06b11455 1542
bf5b295c
DA
15432005-12-15 David Ayers <d.ayers@inode.at>
1544
1545 PR libobjc/14382
1546 * README (+load,+initialize): Fix documentation to reflect
1547 intended and implemented semantics for +load and +initialize.
1548
761c0d29
AP
15492005-12-12 Andrew Pinski <pinskia@physics.uc.edu>
1550
1551 * encoding.c (TYPE_FIELDS): Fix to skip over just _C_STRUCT_B and
1552 the name.
1553 (get_inner_array_type): Fix to skip over _C_ARY_B and size.
1554 (rs6000_special_round_type_align): Update for the ABI fix.
1555 (objc_layout_finish_structure): Correct the encoding which is passed to
1556 ROUND_TYPE_ALIGN.
1557
4540a3ad
AP
15582005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1559
1560 PR libobjc/25347
1561 * encoding.c (objc_sizeof_type): Don't handle _C_UNION_B special
1562 but use the struct layout functions.
1563 (objc_alignof_type): Likewise.
1564 (objc_layout_structure): Handle _C_UNION_B also.
1565 (objc_layout_structure_next_member): Likewise.
1566 (objc_layout_finish_structure): Likewise.
1567
153b4898
AP
15682005-12-11 Andrew Pinski <pinskia@physics.uc.edu>
1569
1570 PR libobjc/25346
1571 * objc/objc-api.h (_C_BOOL): New define.
1572 * encoding.c (objc_sizeof_type): Handle _C_BOOL.
1573 (objc_alignof_type): Likewise.
1574 (objc_skip_typespec): Likewise.
1575
84700346
DA
15762005-11-20 David Ayers <d.ayers@inode.at>
1577
1578 PR libobjc/19024
1579 * objc/hash.h: Remove deprecated hash API.
1580 * hash_compat.c: Remove.
1581 * Makefile.in: Remove reference to hash_compat.c.
1582
1583 * configure.ac (VERSION): Bump library version to 2:0:0.
1584 * configure: Regenerate.
1585
7ef67393
AO
15862005-11-09 Alexandre Oliva <aoliva@redhat.com>
1587
1588 PR other/4372
1589 * thr-objc.c (_XOPEN_SOURCE): Define.
1590
b7add506
UW
15912005-10-07 Ulrich Weigand <uweigand@de.ibm.com>
1592
1593 PR libobjc/23612
1594 * objc/objc-api.h (struct objc_ivar): Move definition to
1595 global scope.
1596
ca59f04b
AP
15972005-09-04 Andrew Pinski <pinskia@physics.uc.edu>
1598 Rasmus Hahn <rassahah@neofonie.de>
1599
1600 PR libobjc/23108
1601 * archive.c (objc_write_type): Correct the element offset.
1602 (objc_read_type): Likewise.
1603
f9d09c43
KC
16042005-08-17 Kelley Cook <kcook@gcc.gnu.org>
1605
1606 * All files: Update FSF address.
1607
ee1658f3
MK
16082005-08-13 Marcin Koziej <creep@desk.pl>
1609 Andrew Pinski <pinskia@physics.uc.edu>
1610
1611 PR libobjc/22492
1612 * exception.c (PERSONALITY_FUNCTION): Fix the PC with finally.
1613
a5a813f8
AP
16142005-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1615
1616 * Makefile.in (extra_ldflags_libobjc): New.
1617 (libobjc$(libext).la): Add extra_ldflags_libobjc to the link line.
1618 (libobjc_gc$(libext).la): Likewise.
1619 * configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
1620 "-Wl,-single_module".
1621 * configure: Regenerate.
1622 * linking.m (_objcInit): Remove.
1623
84fd360d
AP
16242005-07-26 Andrew Pinski <pinskia@physics.uc.edu>
1625
1626 PR libobjc/22606
1627 * Makefile.in (ALL_CFLAGS): Add -fexceptions.
1628
cf223603
DA
16292005-06-08 David Ayers <d.ayers@inode.at>
1630
1631 * objc/NXConstStr.h, objc/Object.h, objc/Protocol.h,
1632 objc/encoding.h, objc/hash.h, objc/objc-api.h,
1633 objc/runtime.h, objc/sarray.h, objc/thr.h,
1634 objc/typedstream.h: Do not include Objective-C headers as
1635 system headers.
1636
348a3445
DA
16372005-06-07 David Ayers <d.ayers@inode.at>
1638
1639 * archive.c, init.c, selector.c: Include hash.h.
1640 * archive.c, class.c, encoding.c, gc.c, hash.c, hash_compat.c,
1641 init.c, misc.c, nil_method.c, objects.c, sarray.c, selector.c,
1642 sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c, thr-mach.c,
1643 thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c, thr-rtems.c,
1644 thr-single.c, thr-solaris.c, thr-vxworks.c, thr-win32.c, thr.c:
1645 Include Objective-C headers with quotes and objc/ directory
1646 prefix.
1647
4419e343
RH
16482005-05-19 Richard Henderson <rth@redhat.com>
1649
1650 * exception.c: Revert last change.
1651
2e8a88f0
DA
16522005-05-19 David Ayers <d.ayers@inode.at>
1653
1654 * exception.c: Include tsystem.h for unwind.h.
1655
f4c767fd
MS
16562005-05-09 Mike Stump <mrs@apple.com>
1657
1658 * configure: Regenerate.
1659
6dab073b
MS
16602005-04-12 Mike Stump <mrs@apple.com>
1661
1662 * configure: Regenerate.
1663
2b37e3d5
ZW
16642005-03-21 Zack Weinberg <zack@codesourcery.com>
1665
1666 * Makefile.in: Set gcc_version here.
1667 * configure.ac: Do not invoke TL_AC_GCC_VERSION. Adjust quoting
1668 in definition of toolexeclibdir so that $(gcc_version) is expanded
1669 by the Makefile.
1670 * aclocal.m4, configure: Regenerate.
1671
e59ef543
DA
16722005-03-03 David Ayers <d.ayers@inode.at>
1673
1674 * objc/hash.h (OBJC_IGNORE_DEPRECATED_API): Update deprecated
1675 version reference. Correct typo.
1676
270a1283
DA
16772005-03-02 David Ayers <d.ayers@inode.at>
1678
1679 PR libobjc/19024
1680 * Makefile.in (OBJS): Add hash_compat.lo.
1681 (OBJS_GC): Add hash_compat_gc.lo.
1682 (hash_compat_gc.lo): New target and rule.
1683 * objc/hash.h (hash_new, hash_delete, hash_add, hash_remove)
1684 (hash_next, hash_value_for_key, hash_is_key_in_hash)
1685 (hash_ptr, hash_string, compare_ptrs, compare_strings): Prefix
1686 with objc_. Add deprecated non prefixed inlined versions.
1687 (OBJC_IGNORE_DEPRECATED_API): New macro to hide deprecated
1688 declarations.
1689 * hash.c (hash_new, hash_delete, hash_add, hash_remove, hash_next)
1690 (hash_value_for_key, hash_is_key_in_hash): Prefix with objc_ and
1691 update callers.
1692 * hash_compat.c: New file.
1693 * archive.c: Update callers.
1694 * init.c: Likewise.
1695 * selector.c: Likewise.
1696 * libobjc.def: Add objc_ versions of hash functions.
1697
6886e18e
AP
16982005-02-28 Andrew Pinski <pinskia@physics.uc.edu>
1699
1700 PR libobjc/20252
1701 * Makefile.in (GTHREAD_FLAGS): Remove.
1702 (ALL_CFLAGS): Remove usage of GTHREAD_FLAGS.
1703 * thr-objc.c: Include config.h.
1704 * configure.ac: Instead of looking at GCC's makefile, figure out if
1705 GTHREAD_FLAGS should be defined by looking at the `thread model'
1706 of the current gcc.
1707 * configure: Regenerate.
1708 * config.h.in: Regenerate.
1709
215c351a
PB
17102005-02-28 Paolo Bonzini <bonzini@gnu.org>
1711
1712 PR bootstrap/17383
1713 * configure.ac: Call GCC_TOPLEV_SUBDIRS.
1714 (Determine CFLAGS for gthread): Use $host_subdir.
1715 * configure: Regenerate.
1716 * Makefile.in (host_subdir): New.
1717 (INCLUDES): Use it.
1718
63b6f9ea
AP
17192004-12-20 Andrew Pinski <pinskia@physics.uc.edu>
1720
1721 PR libobjc/12035
1722 * gc.c: Remove definition of LOGWL, modWORDSZ, and divWORDSZ since
def9360c
AP
1723 they are not used.
1724 Include limits.h and stdlib.h.
1725 Define BITS_PER_WORD.
63b6f9ea 1726
64cbe55e
AM
17272004-12-12 Alexander Malmberg <alexander@malmberg.org>
1728
1729 * selector.c (__objc_init_selector_tables): Add missing void to
1730 definition.
1731
afabd8e6
RS
17322004-12-02 Richard Sandiford <rsandifo@redhat.com>
1733
1734 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
1735 * configure, aclocal.m4: Regenerate.
1736
2539bffe
KC
17372004-11-29 Kelley Cook <kcook@gcc.gnu.org>
1738
1739 * configure: Regenerate for libtool change.
1740
767f726e
KC
17412004-11-25 Kelley Cook <kcook@gcc.gnu.org>
1742
1743 * configure: Regenerate for libtool reversion.
1744
2c92e90f
KC
17452004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1746
1747 * configure: Regenerate for libtool change.
1748
2fc30700
KC
17492004-11-24 Kelley Cook <kcook@gcc.gnu.org>
1750
1751 * aclocal.m4, config.h.in: Regenerate.
1752
dd365157 17532004-10-08 Mike Stump <mrs@apple.com>
2b37e3d5 1754 Andrew Pinski <pinskia@physics.uc.edu>
dd365157
MS
1755
1756 * aclocal.m4: Rename to ...
1757 * acinclude.m4: here and also use m4_include instead of sinclude.
1758 * aclocal.m4: Regenerate.
1759 * configure: Regenerate.
1760 * configure.ac: Add AM_MAINTAINER_MODE and AM_PROG_CC_C_O.
5a59530d 1761 * Makefile.in (configure): Add @MAINT@ infront of configure.ac
dd365157 1762
8d488306
AP
17632004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
1764
1765 * archive.c: Fix all the warnings about passing unsigned char*
1766 to char* and the other way too.
1767
049bc404
AP
17682004-09-16 Andrew Pinski <pinskia@physics.uc.edu>
1769
1770 PR libobjc/16448
1771 * exception.c: Include config.h
1772 (objc_exception_throw): Change _GLIBCXX_SJLJ_EXCEPTIONS to
1773 SJLJ_EXCEPTIONS.
1774 * configure.ac: Find out what exception handling code we use.
1775 * configure: Regenerate.
1776 * config.h.in: New file, regenerate.
1777
45f17969
AP
17782004-09-16 Andrew Pinski <apinski@apple.com>
1779
1780 * encoding.c (ALTIVEC_VECTOR_MODE): Define a bogus macro.
1781
1506eac1
NN
17822004-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
1783
1784 * configure.ac: Switch from _GCC_TOPLEV_NONCANONICAL_TARGET to
1785 ACX_NONCANONICAL_TARGET.
1786 * configure: Regenerate.
1787
f13bb199
ZL
17882004-08-13 Ziemowit Laski <zlaski@apple.com>
1789
1790 * objc/sarray.h: Hoist include of assert.h near the top of file,
1791 and mark the remainder of the file 'extern "C"'.
1792
9567d415
AP
17932004-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1794
1795 * objc/Object.h: Move includes out of extern "C" blocks.
1796 * objc/encoding.h: Likewise.
1797 * objc/hash.h: Likewise.
1798 * objc/objc-api.h: Likewise.
1799 * objc/runtime.h: Likewise.
1800 * objc/sarray.h: Likewise.
1801 * objc/typedstream.h: Likewise.
1802
1a6213c3
ZL
18032004-08-12 Ziemowit Laski <zlaski@apple.com>
1804
1805 * objc/NXConstStr.h: Update copyright date; bracket with
1806 'extern "C"' for C++ use; make include syntax consistent
1807 by using <...> instead of "..."; hoist <objc/...> includes
1808 above the 'extern "C"' block.
1809 * objc/Object.h: Likewise.
1810 * objc/Protocol.h: Likewise.
1811 * objc/encoding.h: Likewise.
1812 * objc/hash.h: Likewise.
1813 * objc/runtime.h: Likewise.
1814 * objc/sarray.h: Likewise.
1815 * objc/thr.h: Likewise.
1816 * objc/typedstream.h: Likewise.
1817 * objc/objc-api.h: Add 'extern "C"' block for C++ use.
1818 (objc_static_instances): For C++ case, do away with
1819 zero-sized array.
1820 (objc_method): Hoist definition to file scope.
1821 (_objc_load_callback, _objc_object_alloc, class_get_class_method,
2b37e3d5 1822 class_get_instance_method, class_create_instance,
1a6213c3
ZL
1823 class_get_class_name, class_get_instance_size,
1824 class_get_meta_class, class_get_super_class, class_get_version,
1825 class_is_class, class_is_meta_class, class_set_version,
1826 class_get_gc_object_type, class_ivar_set_gcinvisible,
1827 get_imp): Rename 'class' parameter to '_class'.
1828 * objc/objc-list.h: Add 'extern "C"' block for C++ use.
1829 * objc/objc.h: Update copyright date.
1830 (arglist_t): Provide a union tag.
1831
bc012a44
AP
18322004-07-22 Andrew Pinski <pinskia@physics.uc.edu>
1833
1834 * thr.c (__objc_thread_detach_function): Do not mark as volatile
1835 but instead use the attribute noreturn.
1836
0cf61401
ZW
18372004-06-28 Zack Weinberg <zack@codesourcery.com>
1838
1839 * encoding.c: Rename target_flags with a #define to avoid
1840 conflict with a prior declaration.
1841
6f0aa5e1
AP
18422004-06-24 Andrew Pinski <apinski@apple.com>
1843
1844 * objc/encoding.h: Wrap the functions with extern "C" for C++
0cf61401 1845 mode.
6f0aa5e1
AP
1846 * objc/hash.h: Likewise.
1847 * objc/objc-api.h: Likewise.
1848 * objc/objc-list.h: Likewise.
1849 * objc/runtime.h: Likewise.
1850 * objc/sarray.h: Likewise.
1851 * objc/thr.h: Likewise.
1852 * objc/typedstream.h: Likewise.
1853
1854
e7ebc32a
NC
18552004-06-21 Nick Clifton <nickc@redhat.com>
1856
1857 * encoding.c (BITS_PER_UNIT): Define if a definition is not
1858 provided.
1859
5520b936
AM
18602004-06-20 Alexander Malmberg <alexander@malmberg.org>
1861
0cf61401
ZW
1862 * Makefile.in (exception.lo): Remove $(OBJC_GCFLAGS).
1863 (exception_gc.lo): New.
1864 (OBJS_GC): Add exception_gc.lo.
1865
a776161b
RH
18662004-06-17 Richard Henderson <rth@redhat.com>
1867
1868 * exception.c: New file.
1869 * Makefile.in (exception.lo): New.
1870 (OBJS): Add it.
1871
da727eab
AP
18722004-06-14 Andrew Pinski <pinskia@physics.uc.edu>
1873
1874 * linking.m (_objcInit): New empty function
1875 for Darwin only.
1876
3f35ff6f
AP
18772004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
1878
684c64bf
AP
1879 * configure.ac: Support --enable-shared=libobjc.
1880 * configure: Regenerate.
1881
3f35ff6f
AP
1882 PR libobjc/15901
1883 * configure.ac: Do not disable shared by default.
1884 * configure: Regenerate.
1885
1600b7d6
NP
18862004-06-03 Nicola Pero <n.pero@mi.flashnet.it>
1887
1888 * Protocol.m ([-isEqual:]): Small optimizations returning
1889 immediately if the argument is equal to self, and accessing
1890 the argument's name directly if it's a protocol.
1891
18922004-06-03 David Ayers <d.ayers@inode.at>
1893
1894 * Protocol.m ([-isEqual:]): Test the class of the argument.
1895
ff65de76
AP
18962004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
1897
7d34a5a9
AP
1898 * configure.ac (includedir): Rename to ...
1899 (includedirname).
1900 * Makefile.in: s/includedir/includedirname/.
1901
ff65de76
AP
1902 PR target/11572
1903 * configure.ac (includedir): Set to "include"
1904 except for Darwin.
1905 (libext) Set to empty except for Darwin.
1906 * configure: Regenerate
1907 * Makefile.in: s/libobjc.la/libobjc$(libext).la/g.
1908 s/include/$(includedir)/g.
1909
54b2f310
DJ
19102004-05-25 Daniel Jacobowitz <drow@false.org>
1911
1912 * Makefile.in: Add .NOEXPORT.
1913
435317e2
AP
19142004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
1915
1916 Merge from the libobjc-branch
1917 2004-02-09 Andrew Pinski <pinskia@physics.uc.edu>
0cf61401 1918
435317e2 1919 * Makefile.in (OBJC_H): Change objc-deps.h to objc-decls.h.
0cf61401 1920
435317e2 1921 2004-02-03 Andrew Pinski <pinskia@physics.uc.edu>
0cf61401 1922
435317e2 1923 * Makefile.in (OBJC_H): Add objc-deps.h.
0cf61401 1924
435317e2 1925 2004-01-27 Nicola Pero <n.pero@mi.flashnet.it>
0cf61401 1926
435317e2
AP
1927 * Protocol.m ([-conformsTo:]): If the argument is nil, return NO.
1928 ([-hash], [-isEqual:]): New methods.
0cf61401 1929
435317e2 1930 2004-01-27 Richard Frith-Macdonald <rfm@gnu.org>
0cf61401 1931
435317e2 1932 * sarray.c (sarray_free): Add a better comment.
0cf61401 1933
435317e2 1934 2004-01-27 Adam Fedor <fedor@gnu.org>
0cf61401 1935
435317e2
AP
1936 * hash.c (hash_add): Cast cachep to int.
1937 * selector.c (__sel_register_typed_name): Cast
1938 soffset_decode to int.
0cf61401 1939
435317e2 1940 2004-01-27 Alexander Malmberg <alexander@malmberg.org>
0cf61401 1941
435317e2
AP
1942 * selector.c: Rename register_selectors_from_list to
1943 __objc_register_selectors_from_list. Update caller.
1944 (__objc_register_selectors_from_list): Lock __objc_runtime_mutex
1945 while registering selectors. Use __sel_register_typed_name instead
1946 of sel_register_typed_name. Check for NULL method_name:s.
1947 (pool_alloc_selector): New function.
1948 (__sel_register_typed_name): Use pool_alloc_selector to allocate
1949 selector structures.
1950 * sendmsg.c (class_add_method_list): Use
1951 __objc_register_selectors_from_list.
1952 * objc/runtime.h: Add __objc_register_selectors_from_list.
0cf61401 1953
435317e2 1954 2004-01-25 Adam Fedor <fedor@gnu.org>
0cf61401
ZW
1955 Nicola Pero <n.pero@mi.flashnet.it>
1956 Andrew Pinski <pinskia@physics.uc.edu>
1957
435317e2
AP
1958 * objc/objc-decls.h: New file.
1959 * objc/objc-api.h (_objc_lookup_class): Mark as export.
1960 (_objc_load_callback): Likewise.
1961 (_objc_object_alloc): Likewise.
1962 (_objc_object_copy): Likewise.
1963 (_objc_object_dispose): Likewise.
0cf61401 1964
435317e2 1965 2004-01-25 Andrew Pinski <pinskia@physics.uc.edu>
0cf61401 1966
435317e2 1967 * archive.c: s/__inline__/inline
0cf61401
ZW
1968 * sendmsg.c: Likewise.
1969
435317e2
AP
1970 * encoding.c: Remove FIXME about the warning
1971 about unused variable.
1972 * sendmsg.c: Add a FIXME comment saying that
1973 this should be using libffi.
0cf61401 1974
435317e2 1975 * Makefile.in (LIBTOOL): Use @LIBTOOL@ now as it works.
0cf61401 1976
435317e2 1977
755bddc8
AP
19782004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
1979
1980 * archive.c (objc_read_class): Initialize class_name.
1981 (objc_read_selector): Initialize selector_name.
1982
eb01299a
RS
19832004-05-09 Richard Sandiford <rsandifo@redhat.com>
1984
1985 * Makefile.in (toolexecdir): Remove trailing space.
1986
db7f3c69
NN
19872004-04-15 Nathanael Nerode <neroden@gcc.gnu.org>
1988
1989 PR libobjc/14948
1990 * configure.ac: De-precious CC so multilibs work.
1991 * configure: Regenerate.
1992
a42a57cb
NN
19932004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
1994
1995 * configure.ac: Restore toolexecdir.
1996 * Makefile.in: Restore toolexecdir.
1997 * configure: Regenerate.
1998
9c01f395
NN
19992004-04-09 Nathanael Nerode <neroden@gcc.gnu.org>
2000
d770b996
NN
2001 * configure.ac: Remove (unused) glibcpp_prefixdir.
2002 * configure: Regenerate.
2003
3adc31d1
NN
2004 * configure.in: Rename to configure.ac.
2005 * Makefile.in: Update to match.
2006
608e1e0c
NN
2007 * Makefile.in: Remove toolexecdir, glibcpp_toolexecdir (unused).
2008 Replace glibcpp_toolexeclibdir with toolexeclibdir.
2009 * configure.in: Remove glibcpp_toolexecdir (unused).
2010 Replace glibcpp_toolexeclibdir with toolexeclibdir. Don't generate
2011 config.h or stamp-h (unused). Move one comment to the right place.
2012 * configure: Regenerate.
2013 * config.h.in: Remove (unused).
2014
88b16960
NN
2015 * config.h.in: Regenerate with autoheader.
2016
af0c82b3
NN
2017 * Makefile.in: Remove (unused) gcc_version_trigger.
2018 * configure.in: Remove (unused) glibcpp_builddir. Don't AC_SUBST
2019 gcc_version_trigger.
2020 * configure: Regenerate.
2021
252dde64
NN
2022 * configure.in: Switch to modern style for AC_INIT, AC_OUTPUT.
2023 Sort file into sections. Remove dnl where appropriate. Fix
2024 other style issues.
2025 * configure: Regenerate.
2026
88386050
NN
2027 * configure.in: Replace old AC_PROG_CC hack with new one.
2028 Define toplevel_srcdir in terms of srcdir, not top_srcdir (there
2029 are no subdirectory output files, so this is fine). Change prereq
2030 to autoconf 2.59.
2031 * aclocal.m4: Include ../config/no-executables.m4.
2032 * configure: Regenerate with autoconf 2.59.
2033
b43e7294
NN
2034 * configure.in: Improve comments on gthread_cflags. Improve m4
2035 quotation, and replace 'if test' with 'case', for --enable-objc-gc.
2036 * configure: Regenerate.
2037
1fcfac98
NN
2038 * configure.in: Move PACKAGE and VERSION settings up top. Remove
2039 unused call to AC_PROG_LN_S. Default RANLIB to ':'. Remove
2040 redundant checks for values of RANLIB, AR, INSTALL.
2041 * configure: Regenerate.
2042
9c01f395
NN
2043 * configure.in: Clean up handling of
2044 --enable-version-specific-runtime-libs and related variables;
2045 replace 'if test' with 'case' where reasonable. Fix comments.
2046 Remove useless libstdcxx_interface.
2047 * configure: Regenerate.
2048
2049 * configure.in: Use _GCC_TOPLEV_NONCANONICAL_TARGET.
2050 Replace uses of target_alias with target_noncanonical.
2051 * aclocal.m4: Include ../config/acx.m4.
2052 * configure: Regenerate.
2053 * Makefile.in: Replace uses of target_alias with target_noncanonical.
2054 Fix copyright statement.
2055
2056 * configure.in: Hand-inline bulky, confusing macros from
2057 aclocal.m4. Replace references to "GNU Objective C" with "GCC".
2058 Update copyright notice. Remove stuff for automake, which isn't
2059 used in this directory. Remove emacs local variables.
2060 * aclocal.m4: Remove hand-inlined macros. Update copyright notice.
2061 * configure: Regenerate.
2062
1adc3fec
MH
20632004-03-16 Manfred Hollstein <mh@suse.com>
2064
2065 * Makefile.in, configure.in, configure: Update copyright years.
2066
68a1af87
MH
20672004-03-15 Manfred Hollstein <mh@suse.com>
2068
2069 * Makefile.in (LIBOBJC_VERSION, LIBOBJC_GC_VERSION): Use
2070 definition from configure.in.
2071 * configure.in (PACKAGE): Add definition.
2072 (VERSION): Add definition; substitute it in output files.
2073 * configure: Re-generate.
2074
d5e63fce
ZL
20752004-03-05 Ziemowit Laski <zlaski@apple.com>
2076
2077 * objc/hash.h (hash_string, compare_strings):
2078 Add type-casts to make Objective-C++ happy.
2079 * objc/typedstream.h (objc_get_stream_class_version):
2080 Rename parameter from 'class' to 'class_name' to make
2081 Objective-C++ happy.
2082
8f8cdf33
MM
20832004-03-01 Michael Matz <matz@suse.de>
2084
2085 * Makefile.in (ALL_CFLAGS): Add -fno-strict-aliasing.
2086
25fe8680
ZL
20872004-02-06 Ziemowit Laski <zlaski@apple.com>
2088
2089 * objc/objc-api.h (objc_super): The 'class' field shall
2090 be named 'super_class' #ifdef __cplusplus.
2091
95727fb8
AP
20922004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
2093
2094 PR target/10781
2095 * encoding.c (rs6000_special_round_type_align): Define.
2096
5af0e6ae
AF
20972004-01-14 Adam Fedor <fedor@gnu.org>
2098
2099 PR libobjc/12155
2100 * selector.c (__objc_register_instance_methods_to_class): Free
2101 new_list if not used.
2102
b39f1868
AR
21032004-01-09 Andrew Ruder <aeruder@ksu.edu>
2104
2105 PR libobjc/11904
2106 * sarray.c (sarray_free): Free array->is_copy_of latter.
2107
75d3baee
ZW
21082003-12-01 Zack Weinberg <zack@codesourcery.com>
2109
2110 PR 11433
2111 * Protocol.m (descriptionForInstanceMethod): Don't dereference
2112 instance_methods if it's NULL.
2113 (descriptionForClassMethod): Likewise for class_methods.
2114
7989e4dc
RO
21152003-10-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2116
2117 * Makefile.in (runtime-info.h): Remove -Wp.
2118
54b98a47
RO
21192003-10-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2120
2121 * Makefile.in (CC1OBJ): Remove.
2122 (runtime-info.h): Invoke $(CC) so all MULTIFLAGS are handled
2123 correctly.
2124 Use .m extension for temporary file.
2125 Remove assembler temp file.
2126
beca20d2
JM
21272003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
2128
2129 * objc/hash.h (hash_string): Don't use a cast as an lvalue.
2130
05dcec66
RO
21312003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2132
2133 * Makefile.in (runtime-info.h): Use MULTIFLAGS.
2134
e517f636
AM
21352003-09-09 Alan Modra <amodra@bigpond.net.au>
2136
2137 * configure: Regenerate.
2138
45dff86e
AM
21392003-08-27 Alexander Malmberg <alexander@malmberg.org>
2140
2141 * Makefile.in, aclocal.m4: Update to $(libdir)/gcc/ instead of
2142 (libdir)/gcc-lib/ when installing.
2143 * configure: Regenerate.
2144
c19f8e35
NP
2145Thu Jul 10 10:27:43 2003 Nicola Pero <n.pero@mi.flashnet.it>
2146
2147 libobjc/9969
2148 * sendmsg.c (get_imp): Fixed rare threading problem.
2149 (__objc_responds_to): Similar fixes.
2150 (objc_msg_lookup): Similar fixes.
2151 (__objc_init_install_dtable): Lock the runtime before checking if the
2152 table is installed.
75d3baee 2153
6c82ad25
NN
21542003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
2155
38709cad
NN
2156 * hash.c, init.c, libobjc.def, libobjc_entry.c, linking.m,
2157 makefile.dos, misc.c, nil_method.c, objects.c, sarray.c,
2158 selector.c, sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c,
2159 thr-mach.c, thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c,
75d3baee 2160 thr-rtems.c, thr-single.c, thr-solaris.c, thr-vxworks.c,
38709cad 2161 thr-win32.c, thr.c: Replace "GNU CC" with "GCC".
6c82ad25
NN
2162 * Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c,
2163 class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h,
2164 objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h,
2165 objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h,
2166 objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC".
2167
e083f3f9 2168Tue May 13 14:56:03 2003 Richard Frith-Macdonald <rfm@gnu.org>
75d3baee 2169 Nicola Pero <n.pero@mi.flashnet.it>
e083f3f9
RFM
2170
2171 libobjc/10742
2172 * init.c (class_superclass_of_class): New function.
2173 (create_tree_of_subclasses_inherited_from): Use it.
2174 (__objc_tree_insert_class): Likewise.
2175 (class_is_subclass_of_class): Likewise.
75d3baee 2176
0b87e18e
DC
21772003-04-11 David Chad <davidc@freebsd.org>
2178 Loren J. Rittle <ljrittle@acm.org>
2179
2180 libobjc/8562
2181 * objc/hash.h (hash_string): Constify correctly.
2182 (compare_ptrs): Use direct compare.
2183 * objc/objc-list.h (list_nth): Rename index to indx to avoid shadow.
2184 * objc/sarray.h: Global rename index to indx to avoid shadow.
2185
ff8b9ca8
AS
21862003-03-12 Andreas Schwab <schwab@suse.de>
2187
2188 * aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
2189 glibcpp_toolexeclibdir.
2190 * configure: Rebuilt.
2191
3343fdd2
AO
21922003-02-20 Alexandre Oliva <aoliva@redhat.com>
2193
2194 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
2195 config.status.
2196 * configure: Rebuilt.
2197
c5e3e1ed
AO
21982003-01-27 Alexandre Oliva <aoliva@redhat.com>
2199
2200 * aclocal.m4 (glibcpp_toolexeclibdir): Instead of
2201 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
2202 version_specific_libs is enabled.
2203 * configure: Rebuilt.
2204
90e5b39f
CC
22052003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2206
2207 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
2208 (install-libs, install-headers): Prepend $(DESTDIR) to
2209 destination paths in all (un)installation commands.
2210
4977bab6
ZW
22112002-12-02 Zack Weinberg <zack@codesourcery.com>
2212
2213 * thr-objc.c: Include coretypes.h and tm.h.
2214
22152002-12-01 Zack Weinberg <zack@codesourcery.com>
2216
2217 * encoding.c, sendmsg.c: Include coretypes.h and tm.h.
2218
22192002-11-26 Nathanael Nerode <neroden@gcc.gnu.org>
2220
2221 * configure.in: Remove skip-this-dir support.
2222 * configure: Regenerate.
2223
6c5d742e
KG
22242002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2225
2226 * Makefile.in (all): Fix multilib parallel build.
2227
c2a68741
NP
2228Thu Sep 12 12:44:37 2002 Nicola Pero <n.pero@mi.flashnet.it>
2229
2230 * sendmsg.c (nil_method): Declare not to take a variable number of
2231 args.
2232 (objc_msg_lookup): Cast nil_method to IMP before returning it.
2233 (objc_msg_lookup_super): The same.
2234
edf4d41e
JH
22352002-09-10 Jan Hubicka <jh@suse.cz>
2236
65a8189e
AJ
2237 * nil_method.c (nil_method): No longer defined with variable
2238 arguments.
edf4d41e 2239
40165636
RB
22402002-07-02 Rodney Brown <rbrown64@csc.com.au>
2241
2242 * objc/encoding.h: Fix formatting.
2243 * objc/hash.h: Likewise.
2244 * objc/objc-api.h: Likewise.
2245 * objc/runtime.h: Likewise.
2246 * objc/thr.h: Likewise.
2247 * archive.c: Likewise.
2248 * class.c: Likewise.
2249 * encoding.c: Likewise.
2250 * gc.c: Likewise.
2251 * hash.c: Likewise.
2252 * init.c: Likewise.
2253 * misc.c: Likewise.
2254 * nil_method.c: Likewise.
2255 * objects.c: Likewise.
2256 * sarray.c: Likewise.
2257 * selector.c: Likewise.
2258 * sendmsg.c: Likewise.
2259 * thr-mach.c: Likewise.
2260 * thr.c: Likewise.
2261
aebb8c22
DD
22622002-06-25 DJ Delorie <dj@redhat.com>
2263
2264 * aclocal.m4 (GLIBCPP_CONFIGURE): Split out
2265 GLIBCPP_TOPREL_CONFIGURE.
2266 * configure.in: Call it before AC_CANONICAL_SYSTEM.
2267 * configure: Regenerate.
2268
b62cc13a
KG
22692002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2270
2271 * Object.m (forward, read, write): Fix unused parameter warnings.
2272 * encoding.c: Include <stdlib.h>.
2273 (target_flags): Mark with attribute unused.
2274 (atoi): Delete.
2275 * runtime.h (__objc_selector_max_index): Change to unsigned int.
2276 (__objc_generate_gc_type_description): Prototype.
2277 * selector.c (__objc_selector_max_index): Change to unsigned int.
2278
10cb24df
NP
2279Mon Jun 17 18:37:42 2002 Nicola Pero <n.pero@mi.flashnet.it>
2280
2281 * sendmsg.c (__objc_get_forward_imp): Fix warning by making sure
2282 we always have a return value: if __objc_msg_forward does not
2283 supply a forwarding implementation, return the default
2284 __builtin_apply based one.
2285
8f8c44cb
KG
22862002-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2287
2288 * Object.m: Fix signed/unsigned warning.
2289 * Protocol.m: Likewise.
2290 * archive.c: Always include stdlib.h.
2291 (objc_read_short, objc_read_unsigned_short, objc_read_int,
2292 objc_read_long, __objc_read_nbyte_uint, __objc_read_nbyte_ulong):
2293 Fix signed/unsigned warning.
2294 (objc_write_type, objc_read_type, objc_write_types,
2295 objc_read_types): Ensure ctype 8-bit safety.
2296 (__objc_no_write, __objc_no_read): Mark unused parameters.
2297 * class.c (class_table_setup): Specify void arg.
2298 * encoding.c (atoi, objc_sizeof_type, objc_alignof_type,
2299 objc_skip_typespec, objc_skip_offset,
2300 objc_layout_structure_next_member): Ensure ctype 8-bit safety.
2301 (objc_layout_structure_next_member): Ensure variables are
2302 initialized.
2303 * gc.c (__objc_generate_gc_type_description,
2304 class_ivar_set_gcinvisible): Mark unused parameters.
2305 * init.c (__objc_send_load, __objc_destroy_class_tree_node): Mark
2306 unused parameters.
2307 (__objc_init_protocols) Fix signed/unsigned warning.
2308 * nil_method.c (nil_method): Mark unused parameters.
2309 * thr.h (objc_thread_callback): Specify void arg.
2310 * sarray.c (sarray_new, sarray_realloc, sarray_free): Fix
2311 signed/unsigned warning.
2312 (sarray_free): Fix formatting.
2313 * selector.c (sel_types_match): Ensure ctype 8-bit safety.
2314 * sendmsg.c (__objc_init_install_dtable) Mark unused parameters.
2315
42bac116
AJ
23162002-06-09 Andreas Jaeger <aj@suse.de>
2317
2318 * encoding.c (objc_layout_structure_next_member): Remove unused
2319 variable.
2320
9aa338ec
KG
23212002-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2322
2323 * Makefile.in (SHELL): Set to @SHELL@.
2324 (WARN_CFLAGS): New.
2325 (ALL_CFLAGS): Add $(WARN_CFLAGS).
2326
1e6347d8
RO
23272002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2328
2329 * aclocal.m4: Allow for PWDCMD to override hardcoded pwd.
2330 * configure: Regenerate.
2331
6706f116
AO
23322002-05-08 Alexandre Oliva <aoliva@redhat.com>
2333
2334 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
2335 script entry, and set LD to it when configuring multilibs.
2336 * configure: Rebuilt.
2337
d0d091ae
DB
23382002-04-19 David O'Brien <obrien@FreeBSD.org>
2339
2340 * encoding.c (MAX, MIN, ROUNDING): #undef before defining.
2341
ed426a38 23422002-04-09 Hans-Peter Nilsson <hp@bitrange.com>
0bd9dd55
HPN
2343
2344 PR objc/6107
2345 * objc/objc-api.h (struct objc_protocol_list): Change type of
2346 member count from int to size_t.
2347
b150efee
FS
23482002-02-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2349
2350 PR libobjc/4039
2351 * aclocal.m4: Replace with version copied from libstdc++-v3.
2352 * configure.in: Update for changes to aclocal and Makefile.
2353 * configure: Regenerate.
2354 * Makefile.in: Correct install of multilibs and shared libs, use
2355 INSTALL_DATA for include files.
2356
e5e0f6f5
NP
2357Mon Dec 17 17:02:12 2001 Nicola Pero <nicola@brainstorm.co.uk>
2358
2359 * init.c (__objc_exec_class): Fixed bug in the loop on unclaimed
2360 categories - when an unclaimed category was found, the loop was
2361 doing two steps forward instead of one, so that in certain cases
2362 it was failing to properly load all the categories. (Reported
2363 with fix by Alexander Malmberg <alexander@malmberg.org>).
2364
d5114db1
AH
23652001-11-14 Aldy Hernandez <aldyh@redhat.com>
2366
4977bab6 2367 * encoding.c: Add target_flags.
d5114db1 2368
f4fdaeda
AH
23692001-11-07 Aldy Hernandez <aldyh@redhat.com>
2370
2371 * objc/objc-api.h (_C_VECTOR): New.
2372
2373 * encoding.c (VECTOR_TYPE): New.
2374
26e51caa
NP
2375Mon Oct 29 21:29:21 2001 Nicola Pero <n.pero@mi.flashnet.it>
2376
2377 * class.c: Rewritten the class table to use optimized, lock-free
4977bab6
ZW
2378 lookup. This more than doubles the speed of class method
2379 invocations. (class_table_setup), (class_table_insert),
2380 (class_table_replace), (class_table_get_safe),
2381 (class_table_next), (class_table_print),
2382 (class_table_print_histogram): New functions.
2383 (__objc_init_class_tables): Use class_table_setup.
2384 (__objc_add_class_to_hash): Use class_table_get_safe and
2385 class_table_insert. (objc_lookup_class), (objc_get_class): Do not
2386 assert the existence of the table; do not lock the runtime; use
2387 class_table_get_safe. (objc_next_class): Use class_table_next.
2388 (__objc_resolve_class_links): Use class_table_next.
2389 (class_pose_as): Use class_table_replace.
26e51caa 2390
71a18acf
OP
23912001-09-10 Ovidiu Predescu <ovidiu@cup.hp.com>
2392
2393 * gc.c: Removed the DEBUG declaration.
2394
5f1ecf82
NP
2395Wed Jul 18 12:48:56 2001 Nicola Pero <n.pero@mi.flashnet.it>
2396
2397 * thr.c (objc_mutex_lock): Invoke __objc_thread_id directly,
2398 rather than through objc_thread_id, to save a function call.
2399 (objc_mutex_trylock, objc_mutex_unlock, objc_condition_wait):
2400 Ditto.
2401
42d28de5
NP
2402Mon Jul 16 12:15:00 2001 Nicola Pero <n.pero@mi.flashnet.it>
2403
2404 * objc/objc-api.h (object_is_class): Fixed - buggy code was trying
2405 to cast an id to a Class, which can not be done. Make the check
2406 by using CLS_ISMETA on the class pointer instead.
2407 (object_is_meta_class): Similar fix.
2408
4173be7f
AO
24092001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
2410
2411 * configure.in (AC_EXEEXT): Work around in case it expands to
2412 nothing, as in autoconf 2.50.
2413 * acinclude.m4: Likewise.
2414 * configure: Rebuilt.
2415
27132e64
NP
24162001-06-08 Nicola Pero <n.pero@mi.flashnet.it>
2417
2418 * THREADS: Explain that when we compile libobjc inside GCC, we
2419 always use thr-objc.c as a backend, which uses GCC's thread code.
2420
e6be21fe
RFM
24212001-06-06 Richard Frith-Macdonald <rrfm@gnu.org>
2422
2423 * init.c (__objc_send_message_in_list): When setting a new entry
2424 in __objc_load_methods use the method IMP as key, but check to see
2425 if the method is in the hashtable by looking at the IMP also.
2426 Also ... call the method after adding it to the hashtable rather
2427 than before ... thus preventing an obscure possibility of infinite
2428 recursion if a +load method itself loads a subclass.
2429
12e01066
OP
24302001-05-25 Ovidiu Predescu <ovidiu@cup.hp.com>
2431
2432 * init.c (__objc_send_message_in_list): When setting a new entry
2433 in __objc_load_methods use the method name as key, not the method
2434 IMP (reported by Richard Frith-Macdonald <richard@brainstorm.co.uk>).
2435
10c179f3
JM
24362001-05-09 Joseph S. Myers <jsm28@cam.ac.uk>
2437
2438 * objc-features.texi: Move to ../gcc/objc.texi.
2439 * fdl.texi: Remove.
2440 * Makefile.in: Don't generate documentation from
2441 objc-features.texi.
2442
bcecb0b0
MM
24432001-05-01 Mark Mitchell <mark@codesourcery.com>
2444
2445 * fdl.texi: New file.
2446 * objc-features.texi: Simplify.
2447 * Makefile.in: Adjust accordingly.
2448
c3aac512
MM
24492001-04-30 Mark Mitchell <mark@codesourcery.com>
2450
2451 * objc-features.texi: Use the GFDL.
2452
49073def
JW
2453Wed Mar 21 04:44:58 EST 2001 John Wehle (john@feith.com)
2454
2455 * encoding.c (REAL_TYPE): Define.
2456
120d59bf
DE
24572001-03-19 David Edelsohn <edelsohn@gnu.org>
2458
2459 * encoding.c (TYPE_MODE): Define.
2460
b894530e
NP
24612001-03-14 Nicola Pero <n.pero@mi.flashnet.it>
2462
2463 * thr.c (objc_thread_add): New function.
2464 (objc_thread_remove): Ditto.
2465 * objc/thr.h: Declare them.
2466 * libobjc.def: Mention them.
2467
11014a3b
OP
24682001-02-28 Ovidiu Predescu <ovidiu@cup.hp.com>
2469
2470 * objc-features.texi: Document the @compatibility_alias compiler
2471 directive (description from Nicola Pero <n.pero@mi.flashnet.it>).
2472
a79ffa5a
RO
2473Fri Feb 23 18:12:00 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2474
2475 * sendmsg.c (__objc_forward): Delete strlen() declaration.
2476
7c6b0e92
GK
24772001-02-08 Geoffrey Keating <geoffk@redhat.com>
2478
2479 * configure.in: Don't run AC_PROG_CC_WORKS or AC_EXEEXT, because
2480 we're not interested in the result and they might fail.
2481 * configure: Regenerated.
2482
01d9cb8b
JM
24832001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2484
2485 * objc-features.texi: Use @email.
2486
0fc39d8a
JM
24872001-01-12 Joseph S. Myers <jsm28@cam.ac.uk>
2488
2489 * sendmsg.c (__objc_print_dtable_stats): Don't use #ifdef inside
2490 printf.
2491
919ee051
RE
24922000-01-11 Richard Earnshaw <rearnsha@arm.com>
2493
2494 * encoding.c (STRUCTURE_SIZE_BOUNDARY): Redefine in a way that
2495 determines the value dynamically.
2496
1104c18d
OP
2497Wed Jan 3 00:49:10 2001 Ovidiu Predescu <ovidiu@cup.hp.com>
2498
2499 * sendmsg.c: Added __objc_msg_forward, a hook that allows external
2500 libraries to provide a function that returns the real forwarding
2501 function. This can alleviate problems __builtin_apply() and
2502 friends have on various platforms. (Solution suggested by Helge
2503 Hess.)
42bac116 2504
1104c18d
OP
2505 * objc/objc-api.h: Define __objc_msg_forward.
2506
2507 * sendmsg.c: Define gen_rtx_REG.
2508
68c9c61a
RC
25092000-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2510
42bac116 2511 * thr-rtems.c: New file. Stub to compile.
68c9c61a 2512
6d93bca4
AO
25132000-09-06 Alexandre Oliva <aoliva@redhat.com>
2514
2515 * configure: Rebuilt with new libtool.m4.
2516
9d10fcf9
OP
2517Tue Aug 15 00:38:56 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2518
2519 * configure.in: Create a config.h file. Check for <sched.h>.
2520 * configure: Regenerate.
2521
2522 * config.h.in: Check for <sched.h>.
2523
57119aa9
ZW
25242000-08-14 Zack Weinberg <zack@wolery.cumb.org>
2525
2526 * configure: Regenerate after change to ../libtool.m4.
2527
b310e725
AS
25282000-08-14 Andreas Schwab <schwab@suse.de>
2529
2530 * objc-features.texi (Top): Move @menu at end of node.
2531
82fbe835
MH
25322000-08-11 Manfred Hollstein <manfredh@redhat.com>
2533
2534 * objc-features.texi: Move @node Top before @menu.
2535
b3dc253f
OP
2536Sun Aug 6 23:27:49 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2537
2538 * objc-features.texi: Documented the new -fconstant-string-class
2539 option.
2540
9bc3876e
OP
2541Sun Aug 6 22:51:16 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2542
2543 * thr-posix.c: Integrated Chris Ball's <cball@fmco.com> changes to
2544 improve the Posix thread support for Objective-C.
2545
8cab40f7
ZW
25462000-08-04 Zack Weinberg <zack@wolery.cumb.org>
2547
2548 * aclocal.m4: Replace copy of ../libtool.m4 with
2549 sinclude(../libtool.m4).
2550
c161c99b
NP
2551Fri Jul 28 08:58:02 2000 Nicola Pero <nicola@brainstorm.co.uk>
2552
42bac116 2553 * configure.in: Added libtool support; build shared libraries
c161c99b
NP
2554 if --enable-shared was passed on command line.
2555 * Makefile.in: Modified most compilation commands to use libtool.
2556 * aclocal.m4: New symbolic link to the ../libtool.m4, from the
2557 libtool distribution.
2558
9c14a607
OP
2559Sat Jul 29 00:10:21 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2560
2561 * sarray.c, Object.m: Removed the explicit prototypes for strlen
2562 and memcpy on 64-bit platforms (Suggested by Rodney Brown
2563 <rdb@cup.hp.com>).
2564
15794a95
L
25652000-05-12 H.J. Lu (hjl@gnu.org)
2566
2567 * Makefile.in (GTHREAD_FLAGS): New.
2568 (ALL_CFLAGS): Add $(GTHREAD_FLAGS).
2569 (OBJC_THREAD_FILE): Changed to thr-objc.
2570
2571 * configure.in (GTHREAD_FLAGS): New, check and replace it for
2572 Makefile.
2573 (OBJC_THREAD_FILE): Removed.
2574
2575 * thr-objc.c: New.
2576
8dd8d754
KG
25772000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2578
2579 * objc/hash.h: Include string.h.
2580
39b48e02
DE
25812000-04-15 David Edelsohn <edelsohn@gnu.org>
2582
2583 * Object.m (strlen): 64-bit PowerPC is a 64bit platform as well.
2584
bcdb1106
JJ
25852000-04-12 Jakub Jelinek <jakub@redhat.com>
2586
2587 * Object.m (strlen): Provide prototype on all 64bit platforms,
2588 not only alpha.
2589 * sarray.c (memcpy): Likewise.
2590 * encoding.c (objc_layout_finish_structure): Don't use
2591 ROUND_TYPE_ALIGN on sparc.
2592
35f10998
JJ
2593 * encoding.c (objc_layout_structure_next_member): Do the whole
2594 procedure even for the first member, so that we get correct
2595 alignment.
2596
2e3120e8
ZW
25972000-03-29 Zack Weinberg <zack@wolery.cumb.org>
2598
2599 * objc/Protocol.h, objc/objc-list.h: Change #endif labels to
2600 comments.
2601
6fc605d8
ZW
26022000-02-23 Zack Weinberg <zack@wolery.cumb.org>
2603
2604 * Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
2605
224a6bca
CB
2606Thu Sep 23 07:19:12 1999 Chris Ball <cball@fmco.com>
2607
2608 * thr-posix.c (__objc_mutex_deallocate): made deallocate work.
2609
e36e6e02
JL
2610Tue Sep 21 07:47:10 1999 Jeffrey A Law (law@cygnus.com)
2611
2612 * Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to
2613 the compiler when building C code.
42bac116 2614
76632dd0
DJ
2615Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2616
2617 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2618 libdir, libsubdir and tooldir.
2619
6000b42b
JDA
2620Mon Jun 21 05:40:15 1999 John David Anglin <dave@hiauly1>
2621
2622 * init.c (__objc_force_linking): Make global.
2623
6de94858
JL
2624Thu May 20 03:20:59 1999 Jeffrey A Law (law@cygnus.com)
2625
2626 * configure.in (AC_EXEEXT): Remove call.
2627 (compiler_name): Explicitly check with no extension and .exe
2628 extension.
2629 * configure: Regenerate.
2630
7af06410
MK
2631Sun Apr 25 01:15:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
2632
2633 * Makefile.in (CC1OBJ): Define in terms of CC.
2634 (runtime-info.h): Use.
2635
09608fa2
OP
2636Fri April 8 08:21:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
2637
2638 * objc-features.texi: Updated the URL to Boehm's GC page.
2639
56d654e4
OP
2640Fri Mar 26 23:41:07 1999 Ovidiu Predescu <ovidiu@cup.hp.com>
2641
2642 * archive.c (__objc_code_char, __objc_write_char): Explicitly specify
2643 the char as being signed (patch from Daniel Jacobowitz
2644 <drow@false.org>).
2645
e33abc2d
MK
2646Wed Mar 24 22:41:28 1999 Mumit Khan <khan@xraylith.wisc.edu>
2647
2648 * configure.in (AC_PREREQ): Update to 2.13.
2649 (AC_EXEEXT): Call to find possible file extension.
2650 (compiler_name): Use.
2651 * configure: Regenerate.
2652
ab87f8c8
JL
2653Wed Jan 27 02:31:01 1999 Jeffrey A Law (law@cygnus.com)
2654
2655 * Makefile.in (ALL_CFLAGS): Add -DIN_GCC.
2656
79014e6f
JL
2657Tue Jan 5 01:38:53 1999 Jeffrey A Law (law@cygnus.com)
2658
2659 * configure.in (thread_file): Correct and simplify code to find
2660 the thread file.
2661 * configure: Rebuilt.
2662
71205e0b
MH
26631998-11-26 Manfred Hollstein <manfred@s-direktnet.de>
2664
2665 * configure.in (compiler_name): Add check to detect if this
2666 language's compiler has been built.
2667 * configure: Regenerate.
2668
223a8848
KG
2669Mon Nov 23 16:50:28 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2670
2671 * configure.in: Use AC_PREREQ(2.12.1).
2672
74285159
JL
2673Thu Nov 19 20:33:37 1998 Jeffrey A Law (law@cygnus.com)
2674
2675 * Makefile.in (runtime-info.h): Avoid GNU make extensions.
2676
84beab38
KG
2677Sun Nov 8 17:46:14 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2678
2679 * Makefile.in (INCLUDES): Add -I$(srcdir)/$(MULTISRCTOP)../include.
2680
8a829fd9
KG
2681Thu Oct 22 14:34:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2682
2683 * configure.in: Use AC_CONFIG_AUX_DIR($topsrcdir).
2684
befb6d14
OP
2685Sat Oct 17 05:21:31 1998 Ovidiu Predescu <ovidiu@slip.net>
2686
2687 * objc-features.texi (Top): Changed the email address.
2688 * objc-features.texi (Garbage Collection): Use @uref instead of @url.
2689
2690Mon Oct 11 21:25:27 1998 Ovidiu Predescu <ovidiu@slip.net>
2691
2692 * encoding.c: Redefine get_inner_array_type to get the first entry
42bac116 2693 in the structure.
befb6d14 2694
1df287f8
RFM
2695Thu Oct 8 12:21:14 1998 Richard Frith-Macdonald <richard@brainstorm.co.uk>
2696
2697 * encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.
2698 (objc_get_type_qualifiers): Similarly.
2699 * objc/encoding.h (_C_BYREF): Define.
2700 (_F_BYREF): Define.
2701
07181a20
DM
27021998-10-07 David S. Miller <davem@pierdol.cobaltmicro.com>
2703
2704 * objc/sarray.h: Make boffset be an unsigned long when sparc so it
2705 works out on 64-bit systems.
2706
5e2f657b
AO
2707Tue Oct 6 20:32:06 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
2708
ceff9b14 2709 * Makefile.in (INCLUDES): Make it multilib-friendly.
5e2f657b 2710
4afb3646
L
2711Fri Oct 2 07:12:14 1998 H.J. Lu (hjl@gnu.org)
2712
2713 * Makefile.in (INCLUDES): Add -I$(srcdir)/../gcc.
2714
4102f627
RL
2715Thu Oct 1 22:33:03 1998 Robert Lipe <robertl@dgii.com>
2716 Jeffrey A Law (law@cygnus.com)
2717
2718 * Makefile.in (INCLUDES): Reference gcc via $MULTIBUILDTOP.
2719 (FLAGS_TO_PASS): Added.
2720 (runtime-info.h): Reference cc1ibj via $MULTIBUILDTOP.
2721
2722 * archive.c: Change config.h to tconfig.h.
2723
2724 * configure.in: Find gcc's object directory even for multilibs.
2725
2726Wed Sep 30 18:17:17 1998 Robert Lipe <robertl@dgii.com>
5ae4c799
RL
2727
2728 * configure.in: Escape ^ in grep string.
2729 * configure: Rebuilt.
2730
789eb4f5
JL
2731Wed Sep 30 09:14:52 1998 Jeffrey A Law (law@cygnus.com)
2732
2733 * All .h files pushed down into the objc/ subdirectory.
2734 * Makefile.in (copy_headers): Corresponding changes.
2735 * configure.in (AC_INIT): Corresponding changes.
2736 * configure: Rebuilt.
2737
bce1b489
BE
27381998-09-30 Ben Elliston <bje@cygnus.com>
2739 Jeff Law <law@cygnus.com>
2740
2741 * Makefile.in: Rewrite.
2742
2743 * configure.in: Likewise.
2744
2745 * configure: Regenerate.
2746
2747 * All .c files. Remove "objc" prefix when including objc header
2748 files. Include tconfig.h, not ../tconfig.h.
2749
2e5f02a3
OP
2750Mon Sep 21 23:27:10 1998 Ovidiu Predescu <ovidiu@slip.net>
2751
2752 * encoding.c (TREE_TYPE, ARRAY_TYPE): Define.
2753 (get_inner_array_type): Define.
2754
88e17b57
BE
27551998-09-21 Ben Elliston <bje@cygnus.com>
2756
2757 * New directory. Moved files from ../gcc/objc.