summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/expr.c8
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 <kenner@vlsi1.ultra.nyu.edu>
+ * 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. */
OpenPOWER on IntegriCloud