From 0b1d1db44469627e031e6b41e1d3bbbe52d9ccea Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Wed, 28 Jul 2004 03:38:33 +0000 Subject: [PATCH] expr.c (expand_expr_real_1, [...]): Remove obsolete error check. * expr.c (expand_expr_real_1, case PARM_DECL): Remove obsolete error check. From-SVN: r85250 --- gcc/ChangeLog | 3 +++ gcc/expr.c | 8 -------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 60411fac08e..fba6d43b38b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2004-07-27 Richard Kenner + * expr.c (expand_expr_real_1, case PARM_DECL): Remove obsolete error + check. + * gimplify.c (maybe_with_size_expr): If already have WITH_SIZE_EXPR, don't make another one. diff --git a/gcc/expr.c b/gcc/expr.c index 0cb1fcad097..c3a0d8060a9 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -6335,14 +6335,6 @@ expand_expr_real_1 (tree exp, rtx target, enum machine_mode tmode, } case PARM_DECL: - if (!DECL_RTL_SET_P (exp)) - { - error ("%Jprior parameter's size depends on '%D'", exp, exp); - return CONST0_RTX (mode); - } - - /* ... fall through ... */ - case VAR_DECL: /* If a static var's type was incomplete when the decl was written, but the type is complete now, lay out the decl now. */ -- 2.30.2