public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 08/20] MIPS/GAS: Improve a LUI complaint message
@ 2010-12-02 19:19 Maciej W. Rozycki
  2010-12-02 19:22 ` Paul Koning
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Maciej W. Rozycki @ 2010-12-02 19:19 UTC (permalink / raw)
  To: Richard Sandiford; +Cc: Catherine Moore, binutils

Hi,

 This change makes a LUI complaint message in mips_ip() report the 
value complained about and resemble English a bit more too.

2010-12-02  Maciej W. Rozycki  <macro@codesourcery.com>

	gas/
	* config/tc-mips.c (mips_ip)['u']: Report the value of the LUI
	argument complained about; reword the message.

 OK to apply?

  Maciej

binutils-gas-mips-msg-lui.diff
Index: binutils-fsf-trunk-quilt/gas/config/tc-mips.c
===================================================================
--- binutils-fsf-trunk-quilt.orig/gas/config/tc-mips.c	2010-12-01 21:05:50.000000000 +0000
+++ binutils-fsf-trunk-quilt/gas/config/tc-mips.c	2010-12-01 21:05:50.000000000 +0000
@@ -10005,7 +10005,8 @@ mips_ip (char *str, struct mips_cl_insn 
 		  && imm_expr.X_op == O_constant
 		  && (imm_expr.X_add_number < 0
 		      || imm_expr.X_add_number >= 0x10000))
-		as_bad (_("LUI expression not in range 0..65535"));
+		as_bad (_("LUI expression (%lu) not in 0..65535 range"),
+			(unsigned long) imm_expr.X_add_number);
 	      s = expr_end;
 	      continue;
 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-12-19  0:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-02 19:19 [PATCH 08/20] MIPS/GAS: Improve a LUI complaint message Maciej W. Rozycki
2010-12-02 19:22 ` Paul Koning
2010-12-03  0:10   ` Maciej W. Rozycki
2010-12-06  1:38 ` Hans-Peter Nilsson
2010-12-19  9:12   ` Maciej W. Rozycki
2010-12-07 10:14 ` Richard Sandiford
2010-12-09 22:53   ` Maciej W. Rozycki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).