diff options
| author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-21 11:51:36 +0000 |
|---|---|---|
| committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-21 11:51:36 +0000 |
| commit | 876ac72d173c52de51bc13e8a474db1128a574bf (patch) | |
| tree | 9ee5d2896de4d45c605fb112f6c78555584e7d93 | |
| parent | 8c71b4e998e3b3de3bec1979a1277034e39a9b0a (diff) | |
| download | ppe42-gcc-876ac72d173c52de51bc13e8a474db1128a574bf.tar.gz ppe42-gcc-876ac72d173c52de51bc13e8a474db1128a574bf.zip | |
* i386.c (ix86_va_arg): Fix allocation of temporary slot.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68298 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 4 | ||||
| -rw-r--r-- | gcc/config/i386/i386.c | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 640677a50b9..3233db4075e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Sat Jun 21 13:41:00 CEST 2003 Jan Hubicka <jh@suse.cz> + + * i386.c (ix86_va_arg): Fix allocation of temporary slot. + 2003-06-20 Kazu Hirata <kazu@cs.umass.edu> * config/h8300/h8300-protos.h: Add a prototype for diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 8409def0e46..479c4c91435 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -3157,10 +3157,12 @@ ix86_va_arg (valist, type) { int i; rtx mem; + rtx x; /* Never use the memory itself, as it has the alias set. */ - addr_rtx = XEXP (assign_temp (type, 0, 1, 0), 0); - mem = gen_rtx_MEM (BLKmode, addr_rtx); + x = XEXP (assign_temp (type, 0, 1, 0), 0); + mem = gen_rtx_MEM (BLKmode, x); + force_operand (x, addr_rtx); set_mem_alias_set (mem, get_varargs_alias_set ()); set_mem_align (mem, BITS_PER_UNIT); |

