aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2002-02-20 10:34:28 -0800
committerRichard Henderson <rth@gcc.gnu.org>2002-02-20 10:34:28 -0800
commitf322b423194007ef5a08daa69a8301739b63fa88 (patch)
tree18e8651a6e8f8be265ac3185709457f1450f6c4f /gcc/expr.h
parentd94084f79a5fa26e76b3b7697c6674b4223f51f7 (diff)
downloadgcc-f322b423194007ef5a08daa69a8301739b63fa88.zip
gcc-f322b423194007ef5a08daa69a8301739b63fa88.tar.gz
gcc-f322b423194007ef5a08daa69a8301739b63fa88.tar.bz2
re PR c/5615 (ICE in size_binop, at fold-const.c:1914)
PR c/5615 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype. From-SVN: r49904
Diffstat (limited to 'gcc/expr.h')
-rw-r--r--gcc/expr.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/expr.h b/gcc/expr.h
index e5b488a..c1ee7f4 100644
--- a/gcc/expr.h
+++ b/gcc/expr.h
@@ -97,7 +97,8 @@ struct args_size
of type ssizetype. */
#define ARGS_SIZE_TREE(SIZE) \
((SIZE).var == 0 ? ssize_int ((SIZE).constant) \
- : size_binop (PLUS_EXPR, (SIZE).var, ssize_int ((SIZE).constant)))
+ : size_binop (PLUS_EXPR, convert (ssizetype, (SIZE).var), \
+ ssize_int ((SIZE).constant)))
/* Convert the implicit sum in a `struct args_size' into an rtx. */
#define ARGS_SIZE_RTX(SIZE) \