------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-15 
05:31 -------
Hmm, we call gimplify_type_sizes from:
          /* ??? We really shouldn't need to gimplify the type of the variable
             since it already should have been done.  But leave this here
             for now to avoid disrupting too many things at once.  */
          if (!TYPE_SIZES_GIMPLIFIED (TREE_TYPE (decl)))
            gimplify_type_sizes (TREE_TYPE (decl), stmt_p);


Here is the backtrace by the way:
#1  0x0094b2b8 in copy_tree_r (tp=0x42638db8, walk_subtrees=0xbfffea04, 
data=0x0) at /Users/
pinskia/src/local2/gcc/gcc/tree-inline.c:2320
#2  0x003ced90 in mostly_copy_tree_r (tp=0x42638db8, walk_subtrees=0xbfffea04, 
data=0x0) at /
Users/pinskia/src/local2/gcc/gcc/gimplify.c:616
#3  0x00949218 in walk_tree (tp=0x42638db8, func=0x3cec88 <mostly_copy_tree_r>, 
data=0x0, 
pset=0x0) at /Users/pinskia/src/local2/gcc/gcc/tree-inline.c:2053
#4  0x00949f6c in walk_tree (tp=0xbfffeb48, func=0x3cec88 <mostly_copy_tree_r>, 
data=0x0, 
pset=0x0) at /Users/pinskia/src/local2/gcc/gcc/tree-inline.c:2150
#5  0x003cf270 in unshare_expr (expr=0x42638d98) at 
/Users/pinskia/src/local2/gcc/gcc/gimplify.c:
723
#6  0x003e83fc in gimplify_one_sizepos (expr_p=0x42645c50, stmt_p=0x4260efbc) 
at /Users/
pinskia/src/local2/gcc/gcc/gimplify.c:4334
#7  0x003e7f20 in gimplify_type_sizes (type=0x42645c3c, list_p=0x4260efbc) at 
/Users/pinskia/src/
local2/gcc/gcc/gimplify.c:4304
#8  0x003d16c8 in gimplify_decl_expr (stmt_p=0x4260efbc) at 
/Users/pinskia/src/local2/gcc/gcc/
gimplify.c:1004
#9  0x003e4b78 in gimplify_expr (expr_p=0x4260efbc, pre_p=0xbfffece4, 
post_p=0xbfffece8, 
gimple_test_f=0x3cb15c <is_gimple_stmt>, fallback=fb_none) at 
/Users/pinskia/src/local2/gcc/gcc/
gimplify.c:3832
#10 0x003e393c in gimplify_stmt (stmt_p=0x4260efbc) at 
/Users/pinskia/src/local2/gcc/gcc/
gimplify.c:3587
#11 0x003e0a40 in gimplify_statement_list (expr_p=0x42638c00) at 
/Users/pinskia/src/local2/gcc/
gcc/gimplify.c:3121
#12 0x003e5de0 in gimplify_expr (expr_p=0x42638c00, pre_p=0xbfffee84, 
post_p=0xbfffee88, 
gimple_test_f=0x3cb15c <is_gimple_stmt>, fallback=fb_none) at 
/Users/pinskia/src/local2/gcc/gcc/
gimplify.c:3974
#13 0x003e393c in gimplify_stmt (stmt_p=0x42638c00) at 
/Users/pinskia/src/local2/gcc/gcc/
gimplify.c:3587
#14 0x003e3970 in gimplify_to_stmt_list (stmt_p=0x42638c00) at 
/Users/pinskia/src/local2/gcc/gcc/
gimplify.c:3595
#15 0x003d040c in gimplify_bind_expr (expr_p=0x42643318, temp=0x0, 
pre_p=0xbffff094) at /
Users/pinskia/src/local2/gcc/gcc/gimplify.c:864
#16 0x003e4ba0 in gimplify_expr (expr_p=0x42643318, pre_p=0xbffff094, 
post_p=0xbffff098, 
gimple_test_f=0x3cb15c <is_gimple_stmt>, fallback=fb_none) at 
/Users/pinskia/src/local2/gcc/gcc/
gimplify.c:3841
#17 0x003e393c in gimplify_stmt (stmt_p=0x42643318) at 
/Users/pinskia/src/local2/gcc/gcc/
gimplify.c:3587
#18 0x003e8a9c in gimplify_body (body_p=0x42643318, fndecl=0x426432b8, 
do_parms=1 '\001') at 
/Users/pinskia/src/local2/gcc/gcc/gimplify.c:4444
#19 0x003e9118 in gimplify_function_tree (fndecl=0x426432b8) at 
/Users/pinskia/src/local2/gcc/
gcc/gimplify.c:4503


I think we are missing a SAVE_EXPR somewhere.



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19956

Reply via email to