Commit f322b423 by Richard Henderson Committed by Richard Henderson

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
parent d94084f7
2002-02-20 Richard Henderson <rth@redhat.com>
PR c/5615
* expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
2002-02-20 Tom Tromey <tromey@redhat.com> 2002-02-20 Tom Tromey <tromey@redhat.com>
* config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed. * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
......
...@@ -97,7 +97,8 @@ struct args_size ...@@ -97,7 +97,8 @@ struct args_size
of type ssizetype. */ of type ssizetype. */
#define ARGS_SIZE_TREE(SIZE) \ #define ARGS_SIZE_TREE(SIZE) \
((SIZE).var == 0 ? ssize_int ((SIZE).constant) \ ((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. */ /* Convert the implicit sum in a `struct args_size' into an rtx. */
#define ARGS_SIZE_RTX(SIZE) \ #define ARGS_SIZE_RTX(SIZE) \
......
/* PR c/5615 */
void f(int a, struct {int b[a];} c) {}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment