aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1999-08-24 08:48:27 +0000
committerJeff Law <law@gcc.gnu.org>1999-08-24 02:48:27 -0600
commitd60eaeffd59d918196a8088a775726ef87a95127 (patch)
tree6ea8e9a4782893368a3104183fffe7c753b5a497 /gcc/expr.c
parent5dd34fe0d53cfc76315664961dd3c83b4686c4de (diff)
downloadgcc-d60eaeffd59d918196a8088a775726ef87a95127.zip
gcc-d60eaeffd59d918196a8088a775726ef87a95127.tar.gz
gcc-d60eaeffd59d918196a8088a775726ef87a95127.tar.bz2
expr.c (convert_move): Fix arguments to TRULY_NOOP_TRUNCATION call.
* expr.c (convert_move): Fix arguments to TRULY_NOOP_TRUNCATION call. From-SVN: r28818
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 5ad38cd..e96fe58 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -1020,7 +1020,8 @@ convert_move (to, from, unsignedp)
if (((can_extend_p (to_mode, intermediate, unsignedp)
!= CODE_FOR_nothing)
|| (GET_MODE_SIZE (to_mode) < GET_MODE_SIZE (intermediate)
- && TRULY_NOOP_TRUNCATION (to_mode, intermediate)))
+ && TRULY_NOOP_TRUNCATION (GET_MODE_BITSIZE (to_mode),
+ GET_MODE_BITSIZE (intermediate))))
&& (can_extend_p (intermediate, from_mode, unsignedp)
!= CODE_FOR_nothing))
{