blob: ad4db430fa608721b6021e1c42ca86ec14887a30 [file] [log] [blame]
Andrew Geissler84ad7c52020-06-27 00:00:16 -05001From 2a7b66bbc0473c6cbe6653a48818962b5b411ef2 Mon Sep 17 00:00:00 2001
Brad Bishop286d45c2018-10-02 15:21:57 -04002From: Mahesh Bodapati <mbodapat@xilinx.com>
Brad Bishop26bdd442019-08-16 17:08:17 -04003Date: Fri, 29 Sep 2017 18:00:23 +0530
Andrew Geissler84ad7c52020-06-27 00:00:16 -05004Subject: [PATCH 12/43] [Patch,Microblaze]: fixed bug in GCC so that It will
5 support .long 0U and .long 0u
Brad Bishop286d45c2018-10-02 15:21:57 -04006
7---
8 gas/expr.c | 9 +++++++++
9 1 file changed, 9 insertions(+)
10
11diff --git a/gas/expr.c b/gas/expr.c
Andrew Geissler84ad7c52020-06-27 00:00:16 -050012index ee85bda1cc..b502418b71 100644
Brad Bishop286d45c2018-10-02 15:21:57 -040013--- a/gas/expr.c
14+++ b/gas/expr.c
15@@ -810,6 +810,15 @@ operand (expressionS *expressionP, enum expr_mode mode)
16 break;
17 }
18 }
19+ if ((*input_line_pointer == 'U') || (*input_line_pointer == 'u'))
20+ {
21+ input_line_pointer--;
22+
23+ integer_constant ((NUMBERS_WITH_SUFFIX || flag_m68k_mri)
24+ ? 0 : 10,
25+ expressionP);
26+ break;
27+ }
28 c = *input_line_pointer;
29 switch (c)
30 {
Andrew Geissler84ad7c52020-06-27 00:00:16 -050031--
322.17.1
33