diff options
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils/0001-write.c-chain_frchains_together_1-Reorder-assertion-.patch')
-rw-r--r-- | meta/recipes-devtools/binutils/binutils/0001-write.c-chain_frchains_together_1-Reorder-assertion-.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils/0001-write.c-chain_frchains_together_1-Reorder-assertion-.patch b/meta/recipes-devtools/binutils/binutils/0001-write.c-chain_frchains_together_1-Reorder-assertion-.patch new file mode 100644 index 0000000000..ffe6852dff --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils/0001-write.c-chain_frchains_together_1-Reorder-assertion-.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From c50d883cb61ff9917464cb695a0fd83fdb0f9c20 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alan Modra <amodra@bigpond.net.au> | ||
3 | Date: Mon, 21 Jan 2013 13:48:31 +0000 | ||
4 | Subject: [PATCH] write.c (chain_frchains_together_1): Reorder assertion to | ||
5 | avoid uninit warning. | ||
6 | |||
7 | Upstream-Status: Backport from 2.23.2 | ||
8 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
9 | --- | ||
10 | gas/write.c | 4 ++-- | ||
11 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
12 | |||
13 | diff --git a/gas/write.c b/gas/write.c | ||
14 | index a467147..56ebb6c 100644 | ||
15 | --- a/gas/write.c | ||
16 | +++ b/gas/write.c | ||
17 | @@ -406,8 +406,8 @@ chain_frchains_together_1 (segT section, struct frchain *frchp) | ||
18 | prev_fix = frchp->fix_tail; | ||
19 | } | ||
20 | } | ||
21 | - gas_assert (prev_frag->fr_type != 0); | ||
22 | - gas_assert (prev_frag != &dummy); | ||
23 | + gas_assert (prev_frag != &dummy | ||
24 | + && prev_frag->fr_type != 0); | ||
25 | prev_frag->fr_next = 0; | ||
26 | return prev_frag; | ||
27 | } | ||
28 | -- | ||
29 | 2.3.5 | ||
30 | |||