This is the mail archive of the binutils@sourceware.org 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 11/20] MIPS/GAS: Remove dead base register code


Hi,

 This change removes dead code to handle "(4)", "(5)" and "(-)" base 
register format specifiers.  They are nowhere used in opcode tables nor in 
macro_build() invocations and "4" and "5" have been since taken for use as 
some DSP ASE immediate specifiers.

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

	gas/
	* config/tc-mips.c (mips_ip)['(']: Don't let '4', '5' or '-'
	as a base register specifier.

 OK to apply?

  Maciej

binutils-gas-mips-ip-breg-dead.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:51.000000000 +0000
+++ binutils-fsf-trunk-quilt/gas/config/tc-mips.c	2010-12-01 21:05:51.000000000 +0000
@@ -8998,8 +8998,7 @@ mips_ip (char *str, struct mips_cl_insn 
 		 we must have a left paren.  */
 	      /* This is dependent on the next operand specifier
 		 is a base register specification.  */
-	      gas_assert (args[1] == 'b' || args[1] == '5'
-		      || args[1] == '-' || args[1] == '4');
+	      gas_assert (args[1] == 'b');
 	      if (*s == '\0')
 		return;
 


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