projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11b459c
)
(put_var_into_stack): When we operate on a pseudo
author
Richard Stallman
<rms@gnu.org>
Thu, 22 Oct 1992 12:04:56 +0000
(12:04 +0000)
committer
Richard Stallman
<rms@gnu.org>
Thu, 22 Oct 1992 12:04:56 +0000
(12:04 +0000)
that holds the address, use proper modes.
From-SVN: r2552
gcc/function.c
patch
|
blob
|
history
diff --git
a/gcc/function.c
b/gcc/function.c
index 7a94474a1a7a01e5f7be26a97cb1fde521d94775..1ff2778f61d7a48b0540a02b102a37d4ee87fa99 100644
(file)
--- a/
gcc/function.c
+++ b/
gcc/function.c
@@
-848,7
+848,10
@@
put_var_into_stack (decl)
&& GET_CODE (reg) == MEM
&& GET_CODE (XEXP (reg, 0)) == REG
&& REGNO (XEXP (reg, 0)) > LAST_VIRTUAL_REGISTER)
- reg = XEXP (reg, 0);
+ {
+ reg = XEXP (reg, 0);
+ decl_mode = promoted_mode = GET_MODE (reg);
+ }
if (GET_CODE (reg) != REG)
return;