libsoup3: update to 3.6.0; fix GTK2/3 app startup
[oi-userland.git] / components / developer / gcc-13 / patches / 0003-gcc-enable-the-.eh_frame-based-unwinder.patch
blobae10580f7ff034e41aba86022a77b850e6b99e95
1 From 5f81f0a0fc40d9b2b49da96abe152f75ddb20ed1 Mon Sep 17 00:00:00 2001
2 From: Richard Lowe <richlowe@richlowe.net>
3 Date: Wed, 5 Mar 2014 04:12:52 +0000
4 Subject: gcc: enable the .eh_frame based unwinder
6 ---
7 gcc/configure | 9 ++++++---
8 gcc/configure.ac | 9 ++++++---
9 2 files changed, 12 insertions(+), 6 deletions(-)
11 diff --git a/gcc/configure b/gcc/configure
12 index c7b26d1927de..6d06fe9226d7 100755
13 --- a/gcc/configure
14 +++ b/gcc/configure
15 @@ -24292,11 +24292,12 @@ if test $in_tree_ld != yes ; then
16 # numbers can be used in ld.so.1 feature checks even if a different
17 # linker is configured.
18 ld_ver=`$gcc_cv_ld -V 2>&1`
19 - if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
20 - ld_vers=`echo $ld_ver | sed -n \
21 - -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22 + if echo "$ld_ver" | $EGREP 'Solaris Link Editors|Solaris ELF Utilities' > /dev/null; then
23 + ld_vers=`echo $ld_ver | /bin/sed -n \
24 + -E 's,^.*: (5|1[0-9])\.[0-9][0-9]*-([0-9]\.[0-9][0-9]*).*$,\2,p'`
25 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
26 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
27 + ld_vers_isillumos=`echo "$ld_ver" | grep '(illumos)'`
30 esac
31 @@ -30124,6 +30125,8 @@ elif test x$gcc_cv_ld != x; then
32 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
33 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
34 gcc_cv_ld_eh_frame_hdr=yes
35 + elif test "$ld_vers_minor" -ge 1735 && test -n "$ld_vers_isillumos"; then
36 + gcc_cv_ld_eh_frame_hdr=yes
39 esac
40 diff --git a/gcc/configure.ac b/gcc/configure.ac
41 index 09082e8ccae3..4a3f16924759 100644
42 --- a/gcc/configure.ac
43 +++ b/gcc/configure.ac
44 @@ -3096,11 +3096,12 @@ if test $in_tree_ld != yes ; then
45 # numbers can be used in ld.so.1 feature checks even if a different
46 # linker is configured.
47 ld_ver=`$gcc_cv_ld -V 2>&1`
48 - if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
49 - ld_vers=`echo $ld_ver | sed -n \
50 - -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
51 + if echo "$ld_ver" | $EGREP 'Solaris Link Editors|Solaris ELF Utilities' > /dev/null; then
52 + ld_vers=`echo $ld_ver | /bin/sed -n \
53 + -E 's,^.*: (5|1[0-9])\.[0-9][0-9]*-([0-9]\.[0-9][0-9]*).*$,\2,p'`
54 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
55 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
56 + ld_vers_isillumos=`echo "$ld_ver" | grep '(illumos)'`
59 esac
60 @@ -5892,6 +5893,8 @@ elif test x$gcc_cv_ld != x; then
61 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
62 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
63 gcc_cv_ld_eh_frame_hdr=yes
64 + elif test "$ld_vers_minor" -ge 1735 && test -n "$ld_vers_isillumos"; then
65 + gcc_cv_ld_eh_frame_hdr=yes
68 esac