kumquat-buildroot/package/gcc
Thomas Petazzoni fea35ce673 gcc/4.7: fix C++ exceptions and pthread_exit()
Following the introduction of the support for the musl C library, the
support of C++ exceptions or features like pthread_exit() got broken
even with other libraries such as glibc. This was reported as bug #7028.

The problem was caused by the gcc patch needed to add support for
musl, which modified the libgcc/unwind-dw2-fde-dip.c logic to decide
whether USE_PT_GNU_EH_FRAME should be enabled or not. It completely
removed the existing logic, replacing it by a single logic based on
the definition of TARGET_DL_ITERATE_PHDR. However, this constant gets
defined by the configure script only for Solaris, or Linux Musl
platforms. For glibc/uClibc, the configure script does not define it,
and therefore USE_PT_GNU_EH_FRAME is not defined, causing issues with
exception handling.

This patch fixes that by restoring all the logic of
libgcc/unwind-dw2-fde-dip.c, and just adding the musl logic as one
more case.

It has been successfully runtime tested using the two code examples
provided in bug #7208, with uClibc, musl and glibc.

Cc: Krzysztof Wrzalik <kwrzalik@gmail.com>
Cc: David Bachelart <david.bachelart@bbright.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-08-17 09:18:29 +02:00
..
4.2.2-avr32-2.1.5
4.4.7
4.5.4
4.7.4 gcc/4.7: fix C++ exceptions and pthread_exit() 2014-08-17 09:18:29 +02:00
4.8.3 gcc/4.8: add patch to enable more C++ features with uClibc 2014-08-17 09:16:27 +02:00
4.9.1 gcc/4.9: add patch to enable more C++ features with uClibc 2014-08-17 09:17:08 +02:00
arc-4.8-R3 gcc/arc-4.8-R3: add patch to enable more C++ features with uClibc 2014-08-17 09:17:18 +02:00
gcc-final gcc-final: disable shared build for static 2014-07-30 20:25:10 +02:00
gcc-initial
gcc-intermediate
Config.in.host gcc 4.9.1: add patch for PR60102 2014-08-06 19:52:13 +02:00
gcc.mk package: remove the trailing slash sign from <PKG>_SITE variable 2014-07-31 23:17:46 +02:00