arch/x86/functions
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat May 31 17:18:22 2008 +0000 (2008-05-31)
changeset 541 f6110c02fbc1
parent 383 f00eb97ff649
permissions -rw-r--r--
Matthias Kaehlcke <matthias at kaehlcke dot net> writes:

A compilation of an ARM toolchain with glibc 2.7 using crosstool-ng
failed with a gcc error in glibc-2.7/posix/regex_internal.c, more
concretly in the function build_wcs_upper_buffer(). The return type of
the function prototype in regex_internal.h doesn't correspond with the
return type of this function in regex_internal.c.

The attached patch corrects the return type of the function prototype
in regex_internal.h

/trunk/patches/glibc/2.7/180-glibc-2.7-build_wcs_upper_buffer.patch | 22 22 0 0 +++++++++++
1 file changed, 22 insertions(+)
     1 # Compute x86-specific values
     2 
     3 # This one really need a little love! :-(
     4 
     5 CT_DoArchValues() {
     6     # The architecture part of the tuple:
     7     arch="${CT_ARCH_ARCH}"
     8     [ -z "${arch}" ] && arch="${CT_ARCH_TUNE}"
     9     case "${arch}" in
    10         nocona|athlon*64|k8|athlon-fx|opteron)
    11             CT_DoError "Architecture is x86 (32-bit) but selected processor is \"${arch}\" (64-bit)";;
    12         "")                           CT_TARGET_ARCH=i386;;
    13         i386|i486|i586|i686)          CT_TARGET_ARCH="${arch}";;
    14         winchip*)                     CT_TARGET_ARCH=i486;;
    15         pentium|pentium-mmx|c3*)      CT_TARGET_ARCH=i586;;
    16         pentiumpro|pentium*|athlon*)  CT_TARGET_ARCH=i686;;
    17         *)                            CT_TARGET_ARCH=i586;;
    18     esac
    19 
    20     # The kernel ARCH:
    21     CT_KERNEL_ARCH=i386
    22 }