This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] NDS32/opcodes: Fix out-of-range integer constant


 This corrects the type of an out-of-range integer constant, removing a 
build error (GCC 4.3.2):

.../opcodes/nds32-asm.c: In function 'parse_operand':
.../opcodes/nds32-asm.c:1373: error: integer constant is too large for 'long' type

 OK to apply?

2014-01-03  Maciej W. Rozycki  <>

	* nds32-asm.c (parse_operand): Fix out-of-range integer constant.


Index: gdb-fsf-trunk-quilt/opcodes/nds32-asm.c
--- gdb-fsf-trunk-quilt.orig/opcodes/nds32-asm.c	2014-01-03 21:14:24.000000000 +0000
+++ gdb-fsf-trunk-quilt/opcodes/nds32-asm.c	2014-01-03 23:22:48.897953981 +0000
@@ -1370,7 +1370,7 @@ parse_operand (nds32_asm_desc_t *pdesc, 
   hashval_t hash;
   const field_t *fld = &LEX_GET_FIELD (syn);
   keyword_t *k;
-  int64_t value = 0x100000000;	/* Big enough to overflow.  */
+  int64_t value = 0x100000000LL;	/* Big enough to overflow.  */
   int r;
   uint64_t modifier = 0;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]