diff options
author | Richard Henderson <rth@redhat.com> | 2002-02-20 10:34:28 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2002-02-20 10:34:28 -0800 |
commit | f322b423194007ef5a08daa69a8301739b63fa88 (patch) | |
tree | 18e8651a6e8f8be265ac3185709457f1450f6c4f /gcc/expr.h | |
parent | d94084f79a5fa26e76b3b7697c6674b4223f51f7 (diff) | |
download | gcc-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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) \ |