This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

PR optimization/185



Fixes testcase

r_function(void)
{
	char c;
	asm( "mov %0, %%eax"
			:
			:"m" (&c)
			: "eax" ); 
}


Wed May 16 19:47:44 CEST 2001  Jan Hubicka  <jh@suse.cz>
	* stmt.c (expand_asm_operands): Be able to offload addressof
	expression to memory. (PR optimization/185)

Index: stmt.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/stmt.c,v
retrieving revision 1.195
diff -c -3 -p -r1.195 stmt.c
*** stmt.c	2001/05/02 14:31:45	1.195
--- stmt.c	2001/05/16 17:47:34
*************** expand_asm_operands (string, outputs, in
*** 1757,1762 ****
--- 1757,1763 ----
  				  op);
  	  else if (GET_CODE (op) == REG
  		   || GET_CODE (op) == SUBREG
+ 		   || GET_CODE (op) == ADDRESSOF
  		   || GET_CODE (op) == CONCAT)
  	    {
  	      tree type = TREE_TYPE (TREE_VALUE (tail));


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