This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PR optimization/185
- To: gcc-patches at gcc dot gnu dot org, rth at cygnus dot com
- Subject: PR optimization/185
- From: Jan Hubicka <jh at suse dot cz>
- Date: Wed, 16 May 2001 19:49:35 +0200
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));