diff options
Diffstat (limited to 'meta-microblaze/recipes-devtools/binutils/binutils/0010-fixing-the-constant-range-check-issue.patch')
-rw-r--r-- | meta-microblaze/recipes-devtools/binutils/binutils/0010-fixing-the-constant-range-check-issue.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/meta-microblaze/recipes-devtools/binutils/binutils/0010-fixing-the-constant-range-check-issue.patch b/meta-microblaze/recipes-devtools/binutils/binutils/0010-fixing-the-constant-range-check-issue.patch new file mode 100644 index 00000000..1b279f7e --- /dev/null +++ b/meta-microblaze/recipes-devtools/binutils/binutils/0010-fixing-the-constant-range-check-issue.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | From adfa8ca9782799670d87d03a01414aca5d9cc9e5 Mon Sep 17 00:00:00 2001 | ||
2 | From: Nagaraju Mekala <nmekala@xilix.com> | ||
3 | Date: Mon, 16 Oct 2017 15:44:23 +0530 | ||
4 | Subject: [PATCH 10/34] fixing the constant range check issue sample error: not | ||
5 | in range ffffffff80000000..7fffffff, not ffffffff70000000 | ||
6 | |||
7 | --- | ||
8 | gas/config/tc-microblaze.c | 2 +- | ||
9 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
10 | |||
11 | diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c | ||
12 | index 1cb9b2519c3..086f8704156 100644 | ||
13 | --- a/gas/config/tc-microblaze.c | ||
14 | +++ b/gas/config/tc-microblaze.c | ||
15 | @@ -757,7 +757,7 @@ parse_imm (char * s, expressionS * e, offsetT min, offsetT max) | ||
16 | if ((e->X_add_number >> 31) == 1) | ||
17 | e->X_add_number |= -((addressT) (1U << 31)); | ||
18 | |||
19 | - if (e->X_add_number < min || e->X_add_number > max) | ||
20 | + if ((int)e->X_add_number < min || (int)e->X_add_number > max) | ||
21 | { | ||
22 | as_fatal (_("operand must be absolute in range %lx..%lx, not %lx"), | ||
23 | (long) min, (long) max, (long) e->X_add_number); | ||
24 | -- | ||
25 | 2.37.1 (Apple Git-137.1) | ||
26 | |||