From 61fcaeec1e95fdaf23a7c41222f895dafe84af7f Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Thu, 9 Dec 2004 10:43:54 +0000 Subject: [PATCH] re PR c++/16681 (array initialization in struct construct is a memory hog) PR c++/16681 * tree-inline.c (estimate_num_insns_1): Add RANGE_EXPR case. From-SVN: r91930 --- gcc/ChangeLog | 5 +++++ gcc/tree-inline.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 666b76c4ffd..7bfcabe7df5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-12-09 Nathan Sidwell + + PR c++/16681 + * tree-inline.c (estimate_num_insns_1): Add RANGE_EXPR case. + 2004-12-08 Richard Henderson * config/i386/i386.md: Use FLAGS_REG everywhere. diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 0c72fe662e5..12cfe1e0ad0 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -1183,6 +1183,7 @@ estimate_num_insns_1 (tree *tp, int *walk_subtrees, void *data) case SAVE_EXPR: case ADDR_EXPR: case COMPLEX_EXPR: + case RANGE_EXPR: case CASE_LABEL_EXPR: case SSA_NAME: case CATCH_EXPR: