Patch from Enrico WEIGELT <weigelt@metux.de> to disable __cxa_atexit for those C libraries with no support (old uClibc).
1 http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/stdlib/msort.c.diff?r1=1.20&r2=1.21&cvsroot=glibc
5 msort.c: In function `msort_with_tmp':
6 msort.c:59: error: invalid lvalue in increment
7 msort.c:59: error: invalid lvalue in increment
8 msort.c:64: error: invalid lvalue in increment
9 msort.c:64: error: invalid lvalue in increment
11 when building with gcc-3.5.
13 ===================================================================
14 RCS file: /cvs/glibc/libc/stdlib/msort.c,v
15 retrieving revision 1.20
16 retrieving revision 1.21
18 --- libc/stdlib/msort.c 2002/09/24 04:20:57 1.20
19 +++ libc/stdlib/msort.c 2004/02/07 15:57:34 1.21
21 /* An alternative to qsort, with an identical interface.
22 This file is part of the GNU C Library.
23 - Copyright (C) 1992,95-97,99,2000,01,02 Free Software Foundation, Inc.
24 + Copyright (C) 1992,95-97,99,2000,01,02,04 Free Software Foundation, Inc.
25 Written by Mike Haertel, September 1988.
27 The GNU C Library is free software; you can redistribute it and/or
29 if ((*cmp) (b1, b2) <= 0)
32 - *((op_t *) tmp)++ = *((op_t *) b1)++;
33 + *((op_t *) tmp) = *((op_t *) b1);
34 + tmp += sizeof (op_t);
35 + b1 += sizeof (op_t);
40 - *((op_t *) tmp)++ = *((op_t *) b2)++;
41 + *((op_t *) tmp) = *((op_t *) b2);
42 + tmp += sizeof (op_t);
43 + b2 += sizeof (op_t);