diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:46:13 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:46:13 +0200 |
commit | 8d89651ef729e560ad96dcfc002fcde6ff7f923b (patch) | |
tree | eb5be01c25f735d12fe9881ee6327c9b7e8bbe39 /meta-linaro-toolchain/recipes-devtools/gcc/gcc-linaro-4.8/0026-libgcc-sjlj-check.patch | |
download | meta-linaro-dizzy-enea.tar.gz |
initial commit for Enea Linux 5.0 armdizzy-enea
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-linaro-toolchain/recipes-devtools/gcc/gcc-linaro-4.8/0026-libgcc-sjlj-check.patch')
-rw-r--r-- | meta-linaro-toolchain/recipes-devtools/gcc/gcc-linaro-4.8/0026-libgcc-sjlj-check.patch | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/meta-linaro-toolchain/recipes-devtools/gcc/gcc-linaro-4.8/0026-libgcc-sjlj-check.patch b/meta-linaro-toolchain/recipes-devtools/gcc/gcc-linaro-4.8/0026-libgcc-sjlj-check.patch new file mode 100644 index 0000000..d4efab9 --- /dev/null +++ b/meta-linaro-toolchain/recipes-devtools/gcc/gcc-linaro-4.8/0026-libgcc-sjlj-check.patch | |||
@@ -0,0 +1,74 @@ | |||
1 | From 08c2398445e6cac282488f64ae6bf29cbcd8db23 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 29 Mar 2013 09:20:50 +0400 | ||
4 | Subject: [PATCH 26/35] libgcc-sjlj-check | ||
5 | |||
6 | ac_fn_c_try_compile doesnt seem to keep the intermediate files | ||
7 | which are needed for sjlj test to pass since it greps into the | ||
8 | generated file. So we run the compiler command using AC_TRY_COMMAND | ||
9 | which then generates the needed .s file | ||
10 | |||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | |||
13 | Upstream-Status: Pending | ||
14 | --- | ||
15 | libgcc/configure | 10 ++++++---- | ||
16 | libgcc/configure.ac | 10 ++++------ | ||
17 | 2 files changed, 10 insertions(+), 10 deletions(-) | ||
18 | |||
19 | diff --git a/libgcc/configure b/libgcc/configure | ||
20 | index 1425df6..d18e3cb 100644 | ||
21 | --- a/libgcc/configure | ||
22 | +++ b/libgcc/configure | ||
23 | @@ -4208,17 +4208,19 @@ void foo () | ||
24 | } | ||
25 | |||
26 | _ACEOF | ||
27 | -CFLAGS_hold=$CFLAGS | ||
28 | -CFLAGS="--save-temps -fexceptions" | ||
29 | libgcc_cv_lib_sjlj_exceptions=unknown | ||
30 | -if ac_fn_c_try_compile; then : | ||
31 | +if { ac_try='${CC-cc} -fexceptions -S conftest.c -o conftest.s 1>&5' | ||
32 | + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | ||
33 | + (eval $ac_try) 2>&5 | ||
34 | + ac_status=$? | ||
35 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
36 | + test $ac_status = 0; }; }; then | ||
37 | if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then | ||
38 | libgcc_cv_lib_sjlj_exceptions=yes | ||
39 | elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then | ||
40 | libgcc_cv_lib_sjlj_exceptions=no | ||
41 | fi | ||
42 | fi | ||
43 | -CFLAGS=$CFLAGS_hold | ||
44 | rm -f conftest* | ||
45 | |||
46 | fi | ||
47 | diff --git a/libgcc/configure.ac b/libgcc/configure.ac | ||
48 | index 8b7aba5..c7c9644 100644 | ||
49 | --- a/libgcc/configure.ac | ||
50 | +++ b/libgcc/configure.ac | ||
51 | @@ -216,16 +216,14 @@ void foo () | ||
52 | bar(); | ||
53 | } | ||
54 | ])]) | ||
55 | -CFLAGS_hold=$CFLAGS | ||
56 | -CFLAGS="--save-temps -fexceptions" | ||
57 | libgcc_cv_lib_sjlj_exceptions=unknown | ||
58 | -AS_IF([ac_fn_c_try_compile], | ||
59 | - [if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then | ||
60 | +if AC_TRY_COMMAND(${CC-cc} -fexceptions -S conftest.c -o conftest.s 1>&AS_MESSAGE_LOG_FD); then | ||
61 | + if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then | ||
62 | libgcc_cv_lib_sjlj_exceptions=yes | ||
63 | elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then | ||
64 | libgcc_cv_lib_sjlj_exceptions=no | ||
65 | - fi]) | ||
66 | -CFLAGS=$CFLAGS_hold | ||
67 | + fi | ||
68 | +fi | ||
69 | rm -f conftest* | ||
70 | ]) | ||
71 | |||
72 | -- | ||
73 | 1.7.10.4 | ||
74 | |||