diff options
author | Richard Stallman <rms@gnu.org> | 1992-11-25 18:03:49 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1992-11-25 18:03:49 +0000 |
commit | 2ad701bad01f7a0a6ba0ace0c0c33fcacd835d30 (patch) | |
tree | e678acc5aba06f6bb73426ad7ee054b9278f20f3 /gcc | |
parent | 77636079f9e3661e3e2321b37a29c20284449f9e (diff) | |
download | gcc-2ad701bad01f7a0a6ba0ace0c0c33fcacd835d30.zip gcc-2ad701bad01f7a0a6ba0ace0c0c33fcacd835d30.tar.gz gcc-2ad701bad01f7a0a6ba0ace0c0c33fcacd835d30.tar.bz2 |
(expand_inline_function): Ensure a REG used as
COPY has REG_USERVAR_P set if LOC does.
From-SVN: r2796
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/integrate.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gcc/integrate.c b/gcc/integrate.c index 952a647..14ce727 100644 --- a/gcc/integrate.c +++ b/gcc/integrate.c @@ -1372,10 +1372,17 @@ expand_inline_function (fndecl, parms, target, ignore, type, structure_value_add { /* This is the good case where the parameter is in a register. If it is read-only and our argument is a constant, set up the - constant equivalence. */ - if (GET_CODE (copy) != REG && GET_CODE (copy) != SUBREG) + constant equivalence. + + If LOC is REG_USERVAR_P, the usual case, COPY must also have + that flag set if it is a register. */ + + if ((GET_CODE (copy) != REG && GET_CODE (copy) != SUBREG) + || (GET_CODE (copy) == REG && REG_USERVAR_P (loc) + && ! REG_USERVAR_P (copy))) { temp = copy_to_mode_reg (GET_MODE (loc), copy); + REG_USERVAR_P (temp) = REG_USERVAR_P (loc); if (CONSTANT_P (copy) || FIXED_BASE_PLUS_P (copy)) { map->const_equiv_map[REGNO (temp)] = copy; |