Brad Bishop | f6355e4 | 2020-12-08 14:30:50 -0500 | [diff] [blame^] | 1 | From 3bb637b058c5f2622950e6984695e36f9cac067a Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Fri, 29 Sep 2017 18:00:23 +0530 |
| 4 | Subject: [PATCH 11/52] [Patch,Microblaze]: fixed bug in GCC so that It will |
| 5 | support .long 0U and .long 0u |
| 6 | |
| 7 | --- |
| 8 | gas/expr.c | 9 +++++++++ |
| 9 | 1 file changed, 9 insertions(+) |
| 10 | |
| 11 | diff --git a/gas/expr.c b/gas/expr.c |
| 12 | index 6f8ccb8230..0e34ca53d9 100644 |
| 13 | --- a/gas/expr.c |
| 14 | +++ b/gas/expr.c |
| 15 | @@ -803,6 +803,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 | { |
| 31 | -- |
| 32 | 2.17.1 |
| 33 | |