expand_asm_operands breaks gcc.c-torture/execute/990130-1.c

Andreas Schwab schwab@issan.informatik.uni-dortmund.de
Mon Mar 15 01:28:00 GMT 1999


This fixes a regression with gcc.c-torture/execute/990130-1.c.


1999-03-14  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>

	* stmt.c (expand_asm_operands): Allow a memory operand everywhere
	a register operand is allowed.

--- egcs-2.93/gcc/stmt.c.~1~	Tue Mar  9 17:26:05 1999
+++ egcs-2.93/gcc/stmt.c	Sun Mar 14 15:21:31 1999
@@ -1344,14 +1344,10 @@
 	    allows_mem = 1;
 	    break;
 
-	  case 'g':  case 'X':
-	    allows_reg = 1;
-	    allows_mem = 1;
-	    break;
-
-	  case 'p': case 'r':
+	  case 'g':  case 'X':  case 'p':  case 'r':
 	  default:
 	    allows_reg = 1;
+	    allows_mem = 1;
 	    break;
 	  }
 

-- 
Andreas Schwab                                      "And now for something
schwab@issan.cs.uni-dortmund.de                      completely different"
schwab@gnu.org


More information about the Gcc-patches mailing list