Improve docs
[platform/upstream/glib.git] / ChangeLog.pre-2-12
1 2006-02-14  Matthias Clasen  <mclasen@redhat.com>
2
3         * glib/gstrfuncs.c: Improve docs.
4
5 2006-02-11  Matthias Clasen  <mclasen@redhat.com>
6
7         * configure.in: Bump version
8
9 2006-02-10  Matthias Clasen  <mclasen@redhat.com>
10
11         * === Released 2.9.6 ===
12
13         * NEWS: Updates
14
15 2006-01-31  Behdad Esfahbod  <behdad@gnome.org>
16
17         * docs/reference/glib/tmpl/relations.sgml (g_relation_insert): Specify
18         the type of varargs arguments. (bug #317679)
19
20 2006-01-31  Matthias Clasen  <mclasen@redhat.com>
21
22         * autogen.sh: Touch README and INSTALL here to pacify 
23         automake.  (#329124, Kjartan Maraas, Tim Janik)
24         
25 Tue Jan 31 16:45:03 2006  Tim Janik  <timj@imendio.com>
26
27         * glib/gdataset.c: carry out all dtalist pointer accesses atomically,
28         some missing cases where pointed out by Sebastian Wilhelmi.
29
30 Tue Jan 31 12:33:48 2006  Tim Janik  <timj@imendio.com>
31
32         * configure.in: generate build/win32/vs8/Makefile, to fix build breakage.
33
34 2006-01-30  David Schleef  <ds@schleef.org>
35
36         * glib/grand.c: Update URL
37
38 2006-01-29  Sven Herzberg  <herzi@gnome-de.org>
39
40         * docs/reference/gobject/tmpl/param_value_types.sgml: tell how to
41         create container classes which are as flexible as a GValue is
42
43 2006-01-27  Matthias Clasen  <mclasen@redhat.com>
44
45         * configure.in: Bump version
46
47         * === Released 2.9.5 ===
48
49         * glib/glib.symbols: Add g_mem_gc_friendly as an exported
50         variable.
51
52         * NEWS: Updates
53
54 2006-01-26  Matthias Clasen  <mclasen@redhat.com>
55
56         * glib/gmem.c (g_mem_init_nomessage): Fix C99isms.  (#328705, 
57         Kazuki Iwamoto)
58
59 Wed Jan 25 19:16:57 2006  Tim Janik  <timj@imendio.com>
60
61         * fixed buglets reported by Jens Granseuer in #328254.
62
63         * configure.in: free the memory allocated in posix_memalign() tests.
64
65         * glib/gslice.c: spelling fixes.
66
67 Wed Jan 25 16:39:18 2006  Tim Janik  <timj@imendio.com>
68
69         * glib/gslice.c: honour g_mem_gc_friendly settings when freeing
70         slices, make sure g_mem_gc_friendly is properly initialized.
71
72         * gmem.[hc]: ensure g_mem_gc_friendly is initialized from G_DEBUG upon
73         the first allocation. applied some branching optimizations.
74
75         * docs/macros.txt: reflected --enable-gc-friendly change and
76         described ENABLE_GC_FRIENDLY_DEFAULT as well as G_DEBUG=gc-friendly.
77
78         * configure.in: changed --enable-gc-friendly=yes to define
79         ENABLE_GC_FRIENDLY_DEFAULT.
80
81         * glib/garray.c: changed ENABLE_GC_FRIENDLY macro #ifdef-s to
82         if (G_UNLIKELY (g_mem_gc_friendly)).
83
84         * glib/gtree.c:
85         * glib/ghash.c: removed ENABLE_GC_FRIENDLY code which is now taken
86         care of by g_slice_free1().
87
88         * tests/slice-test.c: fixed leaks, reported by Kjartan Maraas.
89
90 Tue Jan 24 17:49:36 2006  Tim Janik  <timj@imendio.com>
91
92         * glib/gslice.c: only use posix_memalign() if it's known to work,
93         revert to memalign() otherwise.
94
95         * configure.in: check for broken posix_memalign() implementations
96         to fix #328254.
97
98 2006-01-24  Matthias Clasen  <mclasen@redhat.com>
99
100         * tests/unicode-encoding.c: Use UTF-16LE as target encoding
101         on all little-endian systems.  (#143380, Marc Moorcroft)
102
103 2006-01-23  Matthias Clasen  <mclasen@redhat.com>
104
105         * configure.in: Change the shared libary extension for hpux-ia64
106         to so.  (#328253, The Written Word)
107
108 Mon Jan 23 17:30:33 2006  Tim Janik  <timj@imendio.com>
109
110         * glib/gutils.c (_g_getenv_nomalloc): wiped out all the wonderfull
111         G_OS_WIN32 code i wrote ;-[) after tml told me windows has getenv()
112         as well.
113
114 Mon Jan 23 16:46:20 2006  Tim Janik  <timj@imendio.com>
115
116         * glib/gslice.c (slice_config_init): initialize GSlice config from
117         G_SLICE environment variable. we support G_SLICE=always-malloc
118         currently, which forces all g_slice_*() allocations to use the system
119         malloc instead.
120
121         * glib/gutils.c: 
122         g_parse_debug_string(): added a note about not using g_malloc() here.
123         _g_getenv_nomalloc(): getenv() variant that doesn't use g_malloc or 
124         g_slice. contains only guesswork in the WIN32 branch.
125
126 2006-01-18  Matthias Clasen  <mclasen@redhat.com>
127
128         * Bump version
129         
130         * === Released 2.9.4 ===
131
132         * NEWS: Updates
133
134 2006-01-17  Matthias Clasen  <mclasen@redhat.com>
135
136         * glib/gkeyfile.c (g_key_file_get_groups): Correct a g_new0()
137         call.  (#327421, Morten Welinder)
138
139 2006-01-17  Sebastian Wilhelmi  <seppi@seppi.de>
140
141         * glib/gthreadpool.c: To avoid deadlocks get rid of the settings
142         G_LOCK. Use the unused_thread_queue lock instead. Change
143         g_thread_pool_thread_proxy such that threads only wait on
144         non-exlusive pools for at most a 1/2 second. Do not reorder tasks
145         due to superfluous tasks. Global tasks wait at most for
146         max-idle-time milliseconds. Make sure, that no task is woken up
147         twice for the same event via a wakeup_serial. This fixes #324228.
148
149         * tests/threadpool-test.c: Adapt test accordingly. Do not pass
150         invalid NULL into the thread pools. This as well fixes #327290.
151
152 2006-01-16  Matthias Clasen  <mclasen@redhat.com>
153
154         * configure.in: Bump version
155
156         * === Released 2.9.3 ===
157
158         * NEWS: Updates
159
160         * glib/gthread.h (g_static_mutex_get_mutex_impl_shortcut): 
161         Rework the strict aliasing fix to not break C++, pointed
162         out by Murray Cumming.
163         
164         * glib/gasyncqueue.c (g_async_queue_push_sorted_unlocked):
165         Signal waiting threads, problem noticed by Christian Kellner.
166
167 2006-01-16  Matthias Clasen  <mclasen@redhat.com>
168
169         Fix bug 326747, Alberto Ruiz:
170         
171         * glib/gconvert.c (make_valid_utf8): Change this function to
172         replace unknown characters by the Unicode replacement character
173         instead of '?', and don't append "(invalid encoding)".
174         (g_filename_display_name, g_filename_display_basename): Document
175         how to determine if the filename was in an invalid encoding.
176
177 2006-01-14  Matthias Clasen  <mclasen@redhat.com>
178
179         * glib/gtree.c: Replace the simple recursive implementation
180         by a nonrecursive, threaded implementation by Maurizio 
181         Monge.  (#169285)
182
183 2006-01-12  Matthias Clasen  <mclasen@redhat.com>
184
185         * tests/asyncqueue-test.c (main): Fix the
186         assert to not always trigger.  (#326558, 
187         Daichi Kawahata)
188
189 2006-01-11  Matthias Clasen  <mclasen@redhat.com>
190
191         * tests/convert-test.c: Don't test items_read and
192         items_written in error cases where it is not set.
193
194         * tests/asyncqueue-test.c: Set error to NULL.
195
196 2006-01-08  Matthias Clasen  <mclasen@redhat.com>
197
198         * glib/gtree.c: Break some long lines.
199
200         * tests/tree-test.c: Add more tests.
201
202         * glib/gslice.c: Include config.h first, pointed out
203         by Bogdan Nicula.
204
205 2005-12-20  Sven Herzberg  <herzi@gnome-de.org>
206
207         * docs/reference/gobject/tmpl/gtype.sgml: explain that
208         G_TYPE_INSTANCE_GET_CLASS() does behave different during
209         initialization
210
211 2006-01-06  Matthias Clasen  <mclasen@redhat.com>
212
213         * glib/gslice.c: Only define _XOPEN_SOURCE if we know
214         that we have posix_memalign().  (#323937, Bogdan Nicula)
215
216 2006-01-05  Matthias Clasen  <mclasen@redhat.com>
217
218         * configure.in: Bump version
219
220         * === Released 2.9.2 ===
221
222 2006-01-05  Hans Breuer  <hans@breuer.org>
223
224         * glib/makefile.msc.in : added gslice.obj
225
226 2006-01-05  Matthias Clasen  <mclasen@redhat.com>
227
228         * NEWS: Updates
229
230         * glib/gmain.c: Clarify the documentation of source ids
231         a bit.  (#325874, Dan Williams)
232
233         * configure.in: Fix another strict aliasing problem.
234
235         * glib/gthreadpool.c: Avoid use of varargs macro.  (#325864,
236         Kazuki IWAMOTO)
237
238 2006-01-04  Manish Singh  <yosh@gimp.org>
239
240         * glib/glib.symbols
241         * glib/gstdio.h: don't macroized g_access, g_chdir, and g_unlink
242         either, since they have the same issue as g_rmdir. (Related to
243         bug #325249)
244
245 Wed Jan  4 13:33:25 2006  Tim Janik  <timj@gtk.org>
246
247         * glib/gslice.c (magazine_cache_pop_magazine): don't reverse chunk 
248         order when creating magazines, so we hand out chunks with ascending
249         adresses.
250
251 2006-01-04  Abel Cheung  <maddog@linuxhall.org>
252
253         * configure.in: Added "ml" "zh_HK" to ALL_LINGUAS.
254
255 2006-01-03  Martyn Russell  <martyn@imendio.com>
256
257         * docs/reference/glib/glib-sections.txt:
258         * glib/glib.symbols:
259         * glib/gthreadpool.[ch]:
260         - Added new API g_thread_pool_get_idle_time() and
261         g_thread_pool_set_idle_time(). (#324228).
262         
263         * tests/threadpool-test.c: 
264         - Updated test case to do thread pool sorting, thread pool with
265         no sorting and a thread pool with idle thread timeouts.
266         
267 2006-01-03  Matthias Clasen  <mclasen@redhat.com>
268         
269         * glib/gmain.h: Add new functions here, too.
270
271         * glib/glib.symbols: Add new functions.
272
273 2005-12-20  Michael Meeks  <michael.meeks@novell.com>
274
275         * glib/gmain.c (g_main_context_is_owner): new method
276         to determine if the current thread is the owner of the
277         context.
278
279 2006-01-02  Matthias Clasen  <mclasen@redhat.com>
280
281         * glib/glib.symbols: 
282         * glib/gstdio.h: 
283         * glib/gstdio.c (g_rmdir): Don't provide g_rmdir() as a macro
284         expanding to rmdir, since rmdir is not declared in a portable
285         system header we can include in gstdio.h.  (#325249, Jani Monoses)
286
287 2006-01-01  Tor Lillqvist  <tml@novell.com>
288
289         * glib/gspawn-win32.c (g_spawn_sync_utf8): Set the GIOChannels for
290         stdout and stderr to unbuffered. Otherwise the giochannel layer
291         will try to read from them regardless whether the
292         g_io_channel_win32_poll() call here has indicated
293         readability or not. (#325310)
294
295 2005-12-29  Matthias Clasen  <mclasen@redhat.com>
296
297         * glib/gutils.c (glib_check_version): Fix a copy-and-paste error
298         in the docs.  (#325273, Declan Naughton)
299
300 2005-12-27  Manish Singh  <yosh@gimp.org>
301
302         * tests/run-collate-tests.sh: use LC_ALL instead of LC_COLLATE, to
303         make sure we really override things.
304
305 2005-12-27  Matthias Clasen  <mclasen@redhat.com>
306         
307         Fix #316221, Michal Benes, Stanislav Brabec;
308
309         * configure.in: Fix a strict aliasing problem in 
310         g_static_mutex_get_mutex(). 
311         * glib/gthread.h: ...and in 
312         g_static_mutex_get_mutex_impl_shortcut().
313
314         * glib/gdatasetprivate.h: Add a cast to silence compiler
315         warnings.  (#321978, Andrew Paprocki)
316
317         Partial fix for bug #323937, Bogdan Nicula.
318
319         * configure.in: Check for malloc.h
320         * glib/gslice.c: Don't include malloc.h unconditionally.
321
322 2005-12-27  Manish Singh  <yosh@gimp.org>
323
324         * tests/run-collate-tests.sh: export LC_COLLATE so it takes.
325         (#324950, Dan Yefimov)
326
327 2005-12-26  Matthias Clasen  <mclasen@redhat.com>
328
329         * glib/gslice.c: On Win32, include process.h  (#325015, Kazuki
330         Iwamoto)
331
332 2005-12-25  Matthias Clasen  <mclasen@redhat.com>
333
334         * AUTHORS: Update my email
335
336         * tests/slice-test.c: Fix C99isms.  (#324950, Dan Yefimov)
337
338 2005-12-21  Matthias Clasen  <mclasen@redhat.com>
339         
340         * README.in: Add some notes on when 'make check' may fail.
341
342 2005-12-20  Matthias Clasen  <mclasen@redhat.com>
343
344         * glib/glib.symbols: 
345         * glib/gthreadpool.h: 
346         * glib/gthreadpool.c (g_thread_pool_set_sort_function): New function
347         to sort tasks pushed into a threadpool.  (#324479, Martyn Russell)
348
349         * tests/threadpool-test.c: Test this.
350
351 Tue Dec 20 18:14:14 2005  Tim Janik  <timj@imendio.com>
352
353         * glib/gslice.[hc]: added mem_error() and mem_assert() to test and 
354         handle  errors without depending on gmessage.c which might not be
355         setup when the error occours.
356         removed G_SLICE_CONFIG_ALWAYS_FREE config option, fixed the code so
357         always freeing can be achieved by adjusting the working set time to
358         0 with G_SLICE_CONFIG_WORKING_SET_MSECS.
359         added G_SLICE_CONFIG_COLOR_INCREMENT to test different color increments
360         (mainly 0 and 1). reduced the minimum block size to 128 bytes, to
361         minimize wastage if small amounts of differently sized structrues are
362         allocated, this does come at a performance cost of roughly 5% though.
363         fixed up block alignment calculation, so it works for varying
364         block sizes. only use strerror() not g_strerror() since the latter
365         depends on working GQuark and GSlice.
366         mem_error(): implemented in terms of fprintf and vfprintf.
367
368         * tests/slice-color.c: new program to test cache colorization effects.
369
370         * tests/slice-test.c: trade G_SLICE_CONFIG_ALWAYS_FREE for 0 duration
371         G_SLICE_CONFIG_WORKING_SET_MSECS.
372
373 2005-12-17  Matthias Clasen  <mclasen@redhat.com>
374
375         * glib/goption.c (parse_short_option): Set an error in all
376         failure cases.  (#324332, Tim-Philipp Müller) 
377
378 2005-12-17  Sebastian Wilhelmi  <seppi@seppi.de>
379
380         * glib/gatomic.c: Fix memory barrier position in g_atomic_int_get
381         and g_atomic_pointer_get. Add g_atomic_int_set and
382         g_atomic_pointer_set implementations for the !DEFINE_WITH_MUTEXES &&
383         G_ATOMIC_OP_MEMORY_BARRIER_NEEDED case, as well as defining them
384         as functions (additionally to the macros in the header) for the 
385         !G_ATOMIC_OP_MEMORY_BARRIER_NEEDED case.
386
387 2005-12-16  Matthias Clasen  <mclasen@redhat.com>
388
389         *  glib/gmem.c (g_allocator_new): Don't return a pointer to
390         a const struct, since apps expect to be able to modify it. 
391         (#324179, J. Ali Harlow)
392
393 Tue Dec 13 10:13:32 2005  Tim Janik  <timj@imendio.com>
394
395         * glib/gatomic.h: added g_atomic_pointer_set() and g_atomic_int_set()
396         for systems where the initialization of atomic variables requires a
397         write memory barrier.
398
399 2005-12-09  Matthias Clasen  <mclasen@redhat.com>
400
401         * configure.in: Bump version
402
403         * === Released 2.9.1 ===
404
405 2005-12-09  Alexander Larsson  <alexl@redhat.com>
406
407         * glib/glist.h: 
408         * glib/gslist.h:
409         Use G_GNUC_WARN_UNUSED_RESULT on list functions that return
410         the whole list.
411
412 2005-12-08  Matthias Clasen  <mclasen@redhat.com>
413
414         * NEWS: Updates
415
416 2005-12-07  Martyn Russell  <martyn@imendio.com>
417
418         * glib/gasyncqueue.c:
419         - Call g_queue_insert_sorted() instead of duplicating the code.
420         - Call g_queue_sort() instead of duplicating the code.
421         - Invert sort function results to make sure the same sort function
422         gives the same results across glist, gslist, gqueue and
423         gasyncqueue.
424
425         * tests/asyncqueue-test.c:
426         - Updated the sort function to reflect the example in the
427         documentation for gasyncqueue.c.
428
429 2005-12-07  Martyn Russell  <martyn@imendio.com>
430
431         * docs/reference/glib/glib-sections.txt:
432         * docs/reference/glib/tmpl/linked_lists_double.sgml:
433         * docs/reference/glib/tmpl/linked_lists_single.sgml:
434         * glib/glist.[ch]: 
435         * glib/gslist.[ch]: 
436         - Added g_list_insert_sorted_with_data () and
437         g_slist_insert_sorted_with_data ().
438         - Removed the extra check in g_list_sort() and g_slist_sort() for
439         GCompareDataFunc vs. GCompareFunc.
440         
441 2005-12-07  Tor Lillqvist  <tml@novell.com>
442
443         * glib-gettextize.in: Look up prefix at run-time on Win32,
444         assuming the standard directory structure with glib-gettextize in
445         $prefix/bin.
446
447 2005-12-06  Matthias Clasen  <mclasen@redhat.com>
448
449         * glib/gmem.h: Exempt GTK+ from the mem chunk deprecation, since
450         we need GTK+ 2.8 to compile against GLib 2.10.
451
452 2005-12-05  Manish Singh  <yosh@gimp.org>
453
454         * tests/run-collate-test.sh: set LC_COLLATE, not LANG, to be sure
455         to override any user settings.
456
457 2005-12-05  Matthias Clasen  <mclasen@redhat.com>
458
459         * configure.in: Revert an accidential commit
460
461 2005-12-05  Matthias Clasen  <mclasen@redhat.com>
462
463         * glib/gutf8.c: Documentation updates.  (#323291, Morten Welinder)
464
465         * tests/Makefile.am (TESTS_ENVIRONMENT): 
466         * tests/gobject/Makefile.am (TESTS_ENVIRONMENT): Set
467         MALLOC_CHECK_ and MALLOC_PERTURB_
468
469         * tests/run-collate-tests.sh: Run the collation tests explicitly 
470         in en_US locale. (#320463)
471
472         * glib/gmem.h: Really deprecate GMemChunk.
473
474         * glib/gdate.c: 
475         * glib/gutils.c: 
476         * glib/gtree.c: 
477         * glib/gstring.c: 
478         * glib/giochannel.c: 
479         * glib/gstrfuncs.c: Add versioned deprecation docs. 
480
481 2005-12-05  Martyn Russell  <martyn@imendio.com>
482
483         * docs/reference/glib/glib-sections.txt:
484         * glib/gasyncqueue.[ch]:
485         - Added support for sorting async queues by with _push_sorted(),
486         _push_sorted_unlocked(), _sort() and _sort_unlocked() (#323047).
487         
488         * tests/Makefile.am:
489         * tests/asyncqueue-test.c:
490         - Added test case for gasyncqueue.c
491
492 Mon Dec  5 15:53:20 2005  Tim Janik  <timj@imendio.com>
493
494         * glib/gslice.c: implement chain walking for arbitrary ->next pointer
495         offsets in g_slice_free_chain_with_offset() based on a patch by behdad
496         in bug 323178. moved time consuming logic from g_slice_free() out of
497         the inner loop, so g_slice_free_chain_with_offset() provides a real
498         performance benefit over g_slice_free1() now.
499         
500         * glib/gslice.h: renamed g_slice_free_chain() to
501         g_slice_free_chain_with_offset(). implemented g_slice_free_chain() as
502         a type-safe macro as suggested in bug 323178.
503         simplified the macro implementation of g_slice_free() and implemented
504         it in a type safe manner for all compliers as suggested by Morten
505         Welinder <mortenw@gnome.org>.
506
507         * glib/gmain.c:
508         * glib/glist.c:
509         * glib/gslist.c:
510         * glib/glib.symbols: s/g_slice_free_chain/g_slice_free_chain_with_offset/
511
512 2005-12-05  Matthias Clasen  <mclasen@redhat.com>
513
514         * glib/gasyncqueue.c: Add some docs.
515
516         * tests/libmoduletestplugin_a.c: Fix compiler warnings.
517
518         * glib/gatomic.c: In the ia64 implementation, use
519         __sync builtin without _si or _di suffix.  (#321229,
520         Stanislav Brabec, patch by Andreas Schwab)
521
522 2005-12-04  Behdad Esfahbod  <behdad@gnome.org>
523
524         * glib/gslice.h: Remove comma at the end of enum.
525
526 2005-12-04  Matthias Clasen  <mclasen@redhat.com>
527
528         Handle multiple user names with the same UID better.
529         (#319535, Laszlo Peter)
530         
531         * glib/gutils.c (g_get_any_init_do): When determining user
532         data, first look up $LOGNAME. If the UID doesn't match
533         getuid(), fall back to the current behaviour of looking
534         up the user data based on getuid().
535
536 2005-12-04  Matthias Clasen  <mclasen@redhat.com>
537
538         * glib/gmacros.h (G_GNUC_WARN_UNUSED_RESULT): Add a macro
539         to make gcc warn if a function result is ignored.  (#145466,
540         Arjan van de Ven, Alex Larsson)
541
542         * glib/gmem.h: Add the new attribute to g_realloc and 
543         g_try_realloc.
544
545 2005-12-03  Matthias Clasen  <mclasen@redhat.com>
546
547         * glib/glib.symbols: 
548         * glib/gcache.h: Deprecate g_cache_value_foreach. (#322956,
549         Nicolas Caniart)
550
551         * glib/gmappedfile.c: Make mapping of empty files
552         work.  (#321530)
553         
554         * glib/gfileutils.c: Don't fork a new process just to 
555         fix the permissions of the created temp file.  (#321318,
556         Alexis S. L. Carvalho)
557
558 2005-12-02  Matthias Clasen  <mclasen@redhat.com>
559
560         * README.in: Add a note about Solaris threads.
561
562         * glib/gspawn.c:
563         * configure.in: Remove support for Solaris threads. 
564         (#136971, Sebastian Wilhelmi, patch by Andrew Paprocki)
565
566 2005-12-02  Matthias Clasen  <mclasen@redhat.com>
567
568         * configure.in: Define G_GUINT64_CONSTANT in analogy to
569         G_GINT64_CONSTANT.  (#322568, Andrew Paprocki)
570
571 2005-12-02  Matthias Clasen  <mclasen@redhat.com>
572
573         * glib/gslice.c: Win32 portability fixes and C99ism removal,
574         pointed out by Kazuki Iwamoto.  (#323052)
575         
576 2005-12-02  Matthias Clasen  <mclasen@redhat.com>
577
578         * glib/gatomic.c (g_atomic_int_add): Add a missing volatile for
579         the IA64 implementation.
580
581 Fri Dec  2 16:18:09 2005  Tim Janik  <timj@imendio.com>
582
583         * glib/gslice.c: some naming and type size fixups.
584
585 Fri Dec  2 13:08:58 2005  Tim Janik  <timj@gtk.org>
586
587         * glib/gslice.h (g_slice_free): reworked GCC-specific type-safe macro
588         variant into something less verbose, but digestible for gcc-3.4.
589
590 Fri Dec  2 10:55:07 2005  Tim Janik  <timj@imendio.com>
591
592         * tests/slice-test.c: extended to perform the benchmarking on the old
593         memchunk code if 'O' is selected.
594
595         * tests/memchunks.c: new file which contains the old GLib mem chunks
596         implementation with prefix old_mem_chunk_.
597
598         * tests/Makefile.am: added memchunks.c
599
600 Fri Dec  2 00:16:59 2005  Tim Janik  <timj@imendio.com>
601
602         * glib/gslice.c: improved gettimeofday() timer resolution by maintaining
603         acceptable load distribution of the syscall.
604         (allocator_get_magazine_threshold): reduce minimum/single-thread magazine
605         sizes to approximately page_size/2.5 to avoid excessive startup allocations.
606
607 2005-12-01  Matthias Clasen  <mclasen@redhat.com>
608
609         * tests/gobject/ifacecheck.c (test_iface_base_init): Don't
610         double-free base interface members.
611
612         * tests/Makefile.am: Remove duplicate variable.
613
614 Thu Dec  1 17:32:46 2005  Tim Janik  <timj@imendio.com>
615
616         * glib/gslice.[hc]: new slice allocator implementation.
617
618         * tests/slice-test.c: added random slice allocation test.
619
620         * glib/gthread.[hc]: removed newly added private thread mem API.
621
622         * glib/gthreadinit.h:
623         * glib/gmessages.c:
624         * glib/gthread.c:
625         * glib/gmem.c: divided glib threading initialisation into three phases,
626         initialisation where private keys and messaging are not available (only
627         needed by gmem.c), initialisation without messaging but private keys
628         available (gslice.c, gmessage.c), and full fledged initialisers that
629         server the rest of glib. initialisation functions got renamed to reflect
630         the limitations of their corresponding phases.
631
632         * glib/gmem.c: removed memchunk code, defer allocations to 
633         g_slice_* instead.
634
635         * glib/gmem.[hc]: removed g_slice_* skeletons.
636
637         * glib/glib.symbols: added g_slice_* symbols.
638
639         * configure.in: check for availability of posix_memalign(3), memalign(3)
640         and valloc(3). 
641
642         * glib/Makefile.am: added gslice.[hc].
643
644 2005-12-01  Tor Lillqvist  <tml@novell.com>
645
646         * glib/gstdio.c (g_stat): In the Win32 implementation, strip
647         trailing slash(es) for non-root folders. stat() fails if non-root
648         folders are specified with trailing slashes. It's too much hassle
649         to demand that callers strip such slashes themselves, especially
650         as it is easy to get it wrong and strip the slash of a root
651         folder.
652         (g_rename): On NT-based Windows, use MoveFileEx() with
653         MOVEFILE_REPLACE_EXISTING to better match Unix behaviour.
654
655 2005-11-28  Matthias Clasen  <mclasen@redhat.com>
656
657         Fix G_STMT_START / G_STMT_END on Solaris.  (#321972,
658         Andrew Paprocki)
659         
660         * configure.in: Check whether do { } while (0) works.
661
662         * glib/gmacros.h: Use do { } while (0) for G_STMT_START / 
663         G_STMT_END if it works.
664         
665 2005-11-28  Matthias Clasen  <mclasen@redhat.com>
666
667         * glib/gthread.c (g_static_rw_lock_wait, g_static_rw_lock_signal): 
668         * glib/gnode.c (g_node_depth_traverse_level): 
669         * glib/gmem.c (g_allocator_new): 
670         * glib/ghash.c (g_hash_table_unref, g_hash_table_destroy) 
671         (g_hash_table_foreach_remove_or_steal): Silence compiler
672         warnings.
673
674 2005-11-27  Matthias Clasen  <mclasen@redhat.com>
675
676         * glib/gunicollate.c (g_utf8_collate_key_for_filename): 
677         Don't read beyond len.  (#322520, Christian Persch)
678
679 Wed Nov 23 17:34:01 2005  Tim Janik  <timj@imendio.com>
680
681         * glib/gdataset.c: access datalist flags via atomic pointer access
682         functions, instead of acquiring the dataset lock. this is faster and
683         also matches the atomic pointer readouts in gdatalistprivate.h and
684         direct pointer modifications required by gobject.c.
685
686 Wed Nov 23 13:35:31 2005  Tim Janik  <timj@gtk.org>
687
688         * glib/gdataset.c: streamlined initialization code somewhat,
689         removed GData node cache.
690
691 2005-11-22  Matthias Clasen  <mclasen@redhat.com>
692
693         * glib/ghash.c (g_hash_table_ref): 
694         (g_hash_table_unref): Mark these as new API.
695
696         Avoid double locking in g_intern_string (#322133,
697         Benedikt Meurer)
698
699         * glib/gdataset.c (g_quark_from_string_internal): New 
700         internal function which factors out common parts of 
701         g_quark_from[_static]_string.
702         (g_quark_from_string, g_quark_from_static_string):
703         Use g_quark_from_string_internal.
704         (g_intern_string, g_intern_static_string): Use
705         g_quark_from_string_internal, and only take the
706         lock once.
707         (g_quark_new): Don't store the strings shifted by -1
708         in the g_quarks array.
709         (g_quark_to_string): Adapt to the previous change.
710
711 Tue Nov 22 14:04:26 2005  Tim Janik  <timj@imendio.com>
712
713         * glib/ghash.h: 
714         * glib/ghash.c: 
715         g_hash_table_new_full(): create hash tables with a ref count of 1.
716         g_hash_table_ref(): atomically ref_count+=1
717         g_hash_table_unref(): atomically ref_count-=1, destroys hash table
718         when refcount reaches 0.
719         g_hash_table_destroy(): just destroy keys and values, unref by 1.
720         g_hash_table_insert(): 
721         g_hash_table_replace(): assert ref_count>0.
722
723         * glib/gatomic.h: 
724         * glib/gatomic.c: added 'volatile' qualifier to all atomic pointer and
725         integer pointers.
726
727 2005-11-20  Behdad Esfahbod  <behdad@gnome.org>
728
729         * glib/guniprop.c (g_unichar_get_mirror_char): Remove unused
730         variables. (#321984, Andrew Paprocki)
731
732 2005-11-18  Matthias Clasen  <mclasen@redhat.com>
733
734         * configure.in: Bump version
735
736 2005-11-17  Matthias Clasen  <mclasen@redhat.com>
737
738         * === Released 2.9.0 ===
739
740         * glib/glib.symbols: Updates
741
742         * glib/gutf8.c (g_utf8_offset_to_pointer): Add some performance
743         hints to the docs. (Paolo Borelli)
744         
745         * NEWS: Updates
746
747         * glib/gthread.c (g_thread_foreach): Mark as new api.
748
749         * README.in: Updates.
750
751         * glib/glib.symbols: 
752         * glib/gdate.h: 
753         * glib/gdate.c (g_date_set_time_t): 
754         (g_date_set_time_val): Add functions to set a date from
755         a time_t and from a GTimeVal.
756         (g_date_set_time): Deprecate.  (#314067, Roger Leigh)
757         
758         * tests/Makefile.am:
759         * tests/utf8-pointer.c: Unit tests for g_utf8_pointer_to_offset
760         and g_utf8_offset_to_pointer.
761
762         * glib/gutf8.c (g_utf8_pointer_to_offset) 
763         (g_utf8_offset_to_pointer): Handle negative offsets, and use
764         "stutter stepping" for going backwards. (#320638, Larry
765         Ewing)
766
767         * glib/gbacktrace.c:
768         * glib/gdate.c:
769         * glib/gthread.c: const correctness fixes, found
770         by Arjan van de Ven and gcc.
771         
772 2005-11-16  Behdad Esfahbod  <behdad@gnome.org>
773
774         * docs/reference/glib/tmpl/unicode.sgml: Correct typo on mentioning
775         @G_UNICODE_BREAK_UNKNOWN that should be #G_UNICODE_BREAK_UNKNOWN.
776
777 2005-11-09  Behdad Esfahbod  <behdad@gnome.org>
778
779         * glib/guniprop.c: Use bit hacks instead when checking a general
780         category value against multiple values.
781
782         * glib/gutf8.c: Change ISO10646 to Unicode in docs.
783
784 2005-11-10  Simos Xenitellis  <simos@gnome.org>
785
786         * configure.in: Added tt (Tatar) to ALL_LINGUAS.
787
788 2005-11-05  Tor Lillqvist  <tml@novell.com>
789
790         * glib/giowin32.c (g_io_win32_set_flags): Don't call g_warning().
791         (#320688) Instead set error and return failure.
792
793 2005-11-07  Matthias Clasen  <mclasen@redhat.com>
794
795         * glib/gmain.c (g_main_dispatch): Don't call cb_funcs->unref
796         while holding the context lock.  (#320886, Andy Wingo)
797
798 2005-11-07  Billy Biggs <vektor@dumbterm.net>
799
800         * tests/refcount/Makefile.am: Add a missing reference to libglib
801         in the LDADD for this test.
802
803 2005-11-07  Matthias Clasen  <mclasen@redhat.com>
804
805         * glib/gmem.c (g_allocator_new): We need to set n_preallocs to a
806         nonzero value, otherwise GTK+ 2.8 breaks when compiled against
807         GLib 2.9.  (#320755, Luca Ferretti)
808
809 2005-11-04  Matthias Clasen  <mclasen@redhat.com>
810
811         * glib/Makefile.am: Apply a patch from Behdad Esfahbod to 
812         use a faster lookup table for g_unichar_get_mirror_char().
813         * glib/gmirroringtable.h: The new table.
814         * glib/gunichartables.h: Remove bidi_mirroring_table.
815         * glib/gen-unicode-tables.pl: Don't generate the mirroring
816         table.
817         * glib/glib-mirroring-tab/*: Sources for the program
818         which generated gmirroringtable.h.
819
820         * glib/glist.c: Avoid some code duplication.
821
822         * glib/gscanner.h: Include gdataset.h.  (#320322)
823
824         * glib/gdebug.h: add new GDebugFlag for fatal_criticals
825         * glib/gmessages.c: (_g_debug_init): handle G_DEBUG=fatal_criticals,
826         to help find critical warnings in applications.  (#320017,
827         Vincent Untz)
828
829 2005-11-02  Tor Lillqvist  <tml@novell.com>
830
831         * glib/glib.symbols: Remove large amount of trailing whitespace
832         from one line. Remove #ifdef G_UNDEFINED from around
833         g_hash_table_new and g_hash_table_new_full symbols, what was the
834         purpose of that? Add the g_slice functions.
835
836 Tue Nov  1 16:24:20 2005  Tim Janik  <timj@imendio.com>
837
838         * glib/gmem.[hc]: prepared deprecation of GMemChunk and GAllocator.
839         added g_slice_*() API to allocate and cache small bits of memory.
840         an actuall allocator implementation for g_slice_*() is still pending.
841
842         * glib/gthread.[hc]: changes from a patch by Matthias Clasen.
843         changed GRealThread list to use in-structure *next; fields instead
844         of GSList, in order for thread iteration to not depenend on g_slice_*()
845         indirectly.
846         _g_thread_mem_private_get():
847         _g_thread_mem_private_set(): added accessors for private memory,
848         needed because the ordinary GPrivate implementation relies on GArray
849         and GSList and therefore indirectly on working g_slice_*() allocations.
850
851         * glib/gthread.[hc]:
852         g_thread_foreach(): new public API function to loop over all existing threads.
853
854         * glib/gdataset.c:
855         * glib/gstring.c:
856         * glib/gcache.c:
857         * glib/garray.c: 
858         * glib/gqueue.c:
859         * glib/gslist.c:
860         * glib/glist.c:
861         * glib/ghash.c:
862         * glib/gtree.c:
863         * glib/ghook.c:
864         * glib/gmain.c:
865         * glib/gnode.c:
866         removed GAllocator and free list usages and accompanying locks.
867         use g_slice_*() API to allocate and cache small bits of memory.
868
869         * glib/ghook.h: removed GMemChunk field from public API.
870
871         * glib/gslist.h:
872         * glib/glist.h: deprecate allocator API, provide _free1() for consistency.
873
874         * glib/gnode.h: deprecate allocator API.
875
876         * glib/gmain.c: reordered GPollRec fields so g_slice_free_chain() can
877         be used for poll rec lists.
878
879         * glib/grel.c: removed mem chunk usage, and allocated tuples via g_slice_*().
880         g_relation_destroy(): free all tuples from the all_tuples hash table,
881         this effectively maintains the life time track keeping of tuples.
882         g_relation_delete_tuple(): free tuples which are removed from the
883         all_tuples hash table. this fixes a temporary leak that was present
884         in the memchunk code until the destruction of the relation.
885
886 2005-10-29  Matthias Clasen  <mclasen@redhat.com>
887
888         * tests/convert-test.c: Add some tests for conversions between
889         UTF-8, UCS-4 and UTF-16.
890
891         * glib/gutf8.c (g_utf8_to_ucs4, g_utf8_to_utf16): Fix handling
892         of len == -1, noticed by Morten Welinder.
893
894 2005-10-27  Erdal Ronahi  <erdal.ronahi@gmail.com>
895
896         * configure.in: Added ku (Kurdish) to ALL_LINGUAS
897
898 2005-10-26  Matthias Clasen  <mclasen@redhat.com>
899
900         * glib/gutf8.c (g_ucs4_to_utf8): Don't set items_read twice
901         in the error case, and add some documentation.  (#319806, Morten
902         Welinder)
903
904 2005-10-19  Manish Singh  <yosh@gimp.org>
905
906         * configure.in: Use AC_CHECK_FUNCS for _NSGetEnviron, to get the
907         config.h symbol automatically. Fixes bug #313731.
908
909 2005-10-19  Tor Lillqvist  <tml@novell.com>
910
911         * glib/gwin32.c (g_win32_get_package_installation_directory):
912         Return a g_strdup()ed copy of the value stored in the hash table,
913         so that it can be g_free()d without leaving a dangling pointer in
914         the hash table. (#319232)
915
916 2005-10-06  Matthias Clasen  <mclasen@redhat.com>
917
918         * glib/gunicollate.c (g_utf8_collate_key_for_filename): Handle
919         all-zero sequences correctly.  (#317930, Sebastien Bacher)
920
921 2005-10-05  Matthias Clasen  <mclasen@redhat.com>
922
923         * glib/gmarkup.c (g_markup_escape_text): Doc addition
924
925         * Makefile.am: Add Collation tests.
926
927         * tests/collate/*: Inputs and expected outputs for collation tests.
928
929         * tests/run-collate-tests.sh: Script to run collation tests.
930
931         * tests/unicode-collate.c (main): Rework slightly to make
932         it usable in unit tests. Also test g_utf8_collate_key_for_filename().
933
934 2005-10-01  Behdad Esfahbod  <behdad@gnome.org>
935
936         * docs/reference/glib/tmpl/unicode.sgml:
937         * glib/gen-unicode-tables.pl:
938         * glib/gunibreak.h:
939         * glib/gunichartables.h:
940         * glib/gunicode.h:
941         * tests/casefold.txt:
942         * tests/casemap.txt: Updated to Unicode 4.1.  There are five new
943         GUnicodeBreakType types.  That may break some applications, like
944         Pango <= 1.10.
945
946 2005-09-26  Matthias Clasen  <mclasen@redhat.com>
947
948         * glib/gstrfuncs.c (g_ascii_strtoull): Add details to the 
949         docs.  (#314393, Matthew F. Barnes)
950
951         * glib/glib.symbols:
952         * glib/gprintf.h: Remove g_snprintf() and g_vsnprintf(), since
953         they are already declared in glib.h. This doesn't break documented
954         use of gprintf.h, but should probably be pointed out in the 
955         release notes for 2.10. (#314232, Behdad Esfahbod)
956
957 Tue Sep 20 13:16:04 2005  Tim Janik  <timj@imendio.com>
958
959         * glib/gpattern.c (g_pattern_ph_match): applied significant recursion
960         complexity optimization, based on a patch from Matthias Clasen.
961
962         * tests/patterntest.c: more tests, mostly from matthias.
963
964 2005-09-20  Matthias Clasen  <mclasen@redhat.com>
965
966         * glib/gqueue.c (g_queue_insert_sorted): Correct the docs.
967         (#316703, Mark Drago)
968
969 Mon Sep 19 17:23:23 2005  Tim Janik  <timj@imendio.com>
970
971         * glib/gpattern.c: applied a patch from matthias which checks on the
972         upper bound of GPatternSpec length to optimize matches.
973         cosmetic fixups.
974
975         * tests/patterntest.c: added more match cases.
976
977 2005-09-16  Tor Lillqvist  <tml@novell.com>
978
979         * glib/gstrfuncs.c (g_ascii_strcasecmp, g_ascii_strncasecmp): Add
980         warning to doc comment that these functions should not be used on
981         encodings like CP932.
982
983 2005-09-14  Matthias Clasen  <mclasen@redhat.com>
984
985         * tests/keyfile-test.c: Add a test for grup names of length 1.
986
987         * glib/gkeyfile.c (g_key_file_line_is_group): Accept group names
988         of length 1.  (#316309)
989         
990 2005-09-12  Matthias Clasen  <mclasen@redhat.com>
991
992         * glib/gmarkup.c (g_markup_escape_text): Clarify docs.
993
994 2005-09-11  Sebastian Wilhelmi  <seppi@seppi.de>
995
996         * tests/refcount/Makefile.am (INCLUDES): Link the the refcount
997         tests to the system thread library $(G_THREAD_LIBS). Fixes #313744
998         and #314217.
999
1000 2005-09-11  Kjartan Maraas  <kmaraas@gnome.org>
1001
1002         * glib/gmain.c: (g_child_watch_prepare), (g_child_watch_check),
1003         (child_watch_helper_thread): Remove some dead code. Closes
1004         bug #315278.
1005
1006 2005-09-07  Tor Lillqvist  <tml@novell.com>
1007
1008         * glib/Makefile.am: Create also a console version of the
1009         gspawn-win32-helper program, gspawn-win32-helper-console.exe.
1010         It's otherwise identical to gspawn-win32-helper.exe, except marked
1011         as a console application (linked without the -mwindows option).
1012         
1013         * glib/gspawn-win32.c (do_spawn_directly, do_spawn_with_pipes):
1014         Drop the dont_wait parameter. Its truth value correlated 100% with
1015         the NULLness of the exit_status parameter anyway, so it's enough
1016         to check whether exit_status is NULL. Invert the sense of the
1017         dont_return_handle parameter and rename it to do_return_handle, to
1018         make the code easier to read by avoiding double negations.
1019
1020         (g_spawn_sync_utf8, g_spawn_async_with_pipes_utf8): Modify calls
1021         to do_spawn_with_pipes() accordingly.
1022
1023         (do_spawn_with_pipes): If we have a console, use the console
1024         version of the helper program, otherwise use the GUI one. This
1025         avoids extra console windows opening up in some situations. (In
1026         case a console application uses the GUI gspawn-win32-helper.exe to
1027         spawn another console application we would get a separate console
1028         for the spawned console application).
1029
1030         * glib-zip.in: Distribute also gspawn-win32-helper-console.exe.
1031
1032 2005-09-05  Matthias Clasen  <mclasen@redhat.com>
1033
1034         * glib/gmappedfile.c (g_mapped_file_new): Report an error
1035         if the file is too large.  (#315275, Kjartan Maraas)
1036
1037         * glib/gkeyfile.c (g_key_file_load_from_fd): The return value
1038         of read() is signed.  (#315273, Kjartan Maraas)
1039         
1040 2005-08-31  Tor Lillqvist  <tml@novell.com>
1041
1042         * glib/gutils.h: Wrapping atexit() is a bad idea on Windows, where
1043         the EXE and each DLL have their own atexit function chains.
1044
1045         #define g_atexit as atexit instead. This means it has a
1046         better chance of doing what the caller wants. For instance,
1047         gtkhtml calls g_atexit() registering a function in gtkhtml
1048         itself. This caused a crash when g_atexit() was implemented as a
1049         function in the GLib DLL. The gtkhtml DLL was already unloaded by
1050         the time the GLib DLL got unloaded.
1051
1052         * glib/gutils.c: #undef the #define mentioned above, to also get a
1053         real g_atexit() into the DLL for backward compatibility. Document
1054         the Windows behaviour of g_atexit(), and document the varying ways
1055         atexit() can behave in the context of dynamically loaded modules
1056         on Unix.
1057
1058 2005-08-31  Matthias Clasen  <mclasen@redhat.com>
1059
1060         * glib/glib.symbols: 
1061         * glib/gquark.h: 
1062         * glib/gdataset.c: Add string interning functions.
1063
1064 2005-08-28  Matthias Clasen  <mclasen@redhat.com>
1065
1066         * glib/giochannel.c: Unify some near-duplicate strings. (#314654,
1067         Clytie Siddall)
1068         
1069 2005-08-26  Matthias Clasen  <mclasen@redhat.com>
1070
1071         * configure.in: Bump version to 2.9.0
1072
1073 2005-08-25  Tor Lillqvist  <tml@novell.com>
1074
1075         Make also the g_spawn*() functions take parameters in the GLib
1076         file name encoding, i.e. UTF-8, on Windows. Has no impact on Unix
1077         API or ABI. Like the other GLib API that was earlier changed to
1078         use UTF-8 on Windows, the names of the functions that take UTF-8
1079         have _utf8 suffixes added by using preprocessor macros in the
1080         header file. The old names are kept for functions with the old
1081         behaviour, taking parameters in the system codepage, for DLL ABI
1082         stability.
1083         
1084         * glib/gspawn.h: On Win32 add the suffix _utf8 to the names of the
1085         g_spawn*() functions.
1086         
1087         * glib/gspawn-win32.c: Use wide-char API on NT-based
1088         Windows. Convert parameters from UTF-8 to wide chars (NT) or
1089         system codepage (Win9x) and call the C library _wspawn*() or
1090         spawn*() functions respectvely. Add DLL ABI stability versions
1091         that take parameters in the system codepage.
1092
1093         * glib/gspawn-win32-helper.c: On NT-based Windows use the
1094         wide-char versions of argv and envp, and use wide-char API to
1095         change directory and spawn the program to run. Remove the verbose
1096         debugging output, it was too complex to modify for the wide-char
1097         features. (Just add temporary debugging printouts if needed, no
1098         need to have them permanently in the source.)
1099
1100         * glib/gspawn.c: Corresponding documentation updates.
1101
1102         * glib/glib.symbols: Corresponding changes: Mark the ABI stability
1103         symbols as PRIVATE, add the new _utf8-suffixed ones.
1104
1105 2005-08-24  Stepan Kasal  <kasal@ucw.cz>
1106
1107         * glib/gtypes.h (G_MININT64): Cast the constant to gint64; it is
1108         guint64 otherwise and that can produce warnings about comparison
1109         between signed and unsigned.
1110
1111 2005-08-23  Matthias Clasen  <mclasen@redhat.com>
1112
1113         * glib/gutils.c: Fix the crt_externs.h include.
1114
1115 2005-08-23  Stepan Kasal  <kasal@ucw.cz>
1116
1117         * NEWS: Fix spelling of my first name.
1118
1119 2005-08-23  Matthias Clasen  <mclasen@redhat.com>
1120
1121         * Bump version
1122
1123         * === Released 2.8.1 ===
1124
1125         * NEWS: Updates
1126
1127 2005-08-20  Hans Breuer  <hans@breuer.org>
1128
1129         * glib/makefile.msc.in : link with ws2_32.lib
1130
1131 2005-08-18  Tor Lillqvist  <tml@novell.com>
1132
1133         * configure.in: Check for <sys/wait.h>
1134
1135         * glib/gbacktrace.c: Include <sys/wait.h> on if HAVE_SYS_WAIT_H.
1136
1137 2005-08-18  Ross Burton  <ross@burtonini.com>
1138
1139         * glib/gstring.c:
1140         Optimise single-character insertions.
1141         
1142         * glib/gutf8.c:
1143         Note copied code.
1144         
1145         * tests/string-test.c:
1146         Add tests for new optimisation, and fix a leak.
1147
1148 2005-08-17  Matthias Clasen  <mclasen@redhat.com>
1149
1150         * configure.in: Check for crt_externs.h and _NSGetEnviron.
1151
1152         * glib/gutils.c: On Darwin, include crt-externs.h and
1153         define environ using _NSGetEnviron().  (#313731)
1154
1155 2005-08-16  Stepan Kasal  <kasal@ucw.cz>
1156
1157         * glib/gutils.c (g_get_any_init): Move the body of the big if...
1158         (g_get_any_init_do): ... to this new function.
1159         (g_get_any_init): Declare as inline.
1160         (g_get_any_init_locked): New inline function, does the locking.
1161         Make use of these two throughout the code.
1162
1163 2005-08-15  Matthias Clasen  <mclasen@redhat.com>
1164
1165         * glib/gbacktrace.c (g_on_error_stack_trace): Wait for
1166         the child process and then simply return. This makes 
1167         The "S" option work as documented in g_on_error_query().
1168         (#313125, Matthew F. Barnes)
1169
1170         * glib/gunicode.h: Update the link to Unicode category
1171         values.  (#313369, Behnam Esfahbod)
1172
1173         * glib/gqueue.c (g_queue_find_custom): Clarify docs
1174         a little.  (#311727, Tristan van Berkom)
1175
1176         * glib/abicheck.sh, gobject/abicheck.sh: Make the 
1177         check work on ia64 too, where some symbols ended up 
1178         in yet another section.
1179