aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2000-10-31 17:02:45 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2000-10-31 17:02:45 +0100
commit681cb2337b00d65d62f78e653d6808b74ded295d (patch)
treed920483e11ab43928240149c1e181d5c0098cbaf /gcc/expr.c
parente541461a498d47602918a711290095ed28041355 (diff)
downloadgcc-681cb2337b00d65d62f78e653d6808b74ded295d.zip
gcc-681cb2337b00d65d62f78e653d6808b74ded295d.tar.gz
gcc-681cb2337b00d65d62f78e653d6808b74ded295d.tar.bz2
expr.c (do_store_flag): Pass operand_mode instead of GET_MODE (op0) to expand_shift.
* expr.c (do_store_flag): Pass operand_mode instead of GET_MODE (op0) to expand_shift. * g++.old-deja/g++.other/inline16.C: New test. From-SVN: r37160
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index d12f0a2..22ed6ad 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -10285,7 +10285,7 @@ do_store_flag (exp, target, mode, only_cheap)
op0 = expand_expr (inner, subtarget, VOIDmode, 0);
if (bitnum != 0)
- op0 = expand_shift (RSHIFT_EXPR, GET_MODE (op0), op0,
+ op0 = expand_shift (RSHIFT_EXPR, operand_mode, op0,
size_int (bitnum), subtarget, ops_unsignedp);
if (GET_MODE (op0) != mode)