This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/21898] Segmentation fault on testsuite case gcc.dg/20020425-1.c
- From: "e9925248 at stud4 dot tuwien dot ac dot at" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jun 2005 20:46:41 -0000
- Subject: [Bug middle-end/21898] Segmentation fault on testsuite case gcc.dg/20020425-1.c
- References: <20050603093451.21898.e9925248@stud4.tuwien.ac.at>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From e9925248 at stud4 dot tuwien dot ac dot at 2005-06-03 20:46 -------
This is, what gdb shows, when it crashes:
Program received signal SIGSEGV, Segmentation fault.
0x08396436 in fold_convert_const_int_from_int (type=0xb7e80798, arg1=0xb7e78a20)
at ../.././gcc/fold-const.c:1737
1737 t = build_int_cst_wide (type, TREE_INT_CST_LOW (arg1),
(gdb) list
1732 {
1733 tree t;
1734
1735 /* Given an integer constant, make new constant with new type,
1736 appropriately sign-extended or truncated. */
1737 t = build_int_cst_wide (type, TREE_INT_CST_LOW (arg1),
1738 TREE_INT_CST_HIGH (arg1));
1739
1740 t = force_fit_type (t,
1741 /* Don't set the overflow when
(gdb) bt
#0 0x08396436 in fold_convert_const_int_from_int (type=0xb7e80798,
arg1=0xb7e78a20) at ../.././gcc/fold-const.c:1737
#1 0x08396db2 in fold_convert_const (code=NOP_EXPR, type=0xb7e80798,
arg1=0xb7e78a20) at ../.././gcc/fold-const.c:1875
#2 0x083bd315 in fold_unary (code=NOP_EXPR, type=0xb7e80798, op0=0xb7e78a20) at
../.././gcc/fold-const.c:7077
#3 0x083e3e8a in fold (expr=0xb7cc65a0) at ../.././gcc/fold-const.c:10351
#4 0x08094b6e in convert (type=0xb7e80798, expr=0xb7e78a20) at
../.././gcc/c-convert.c:108
#5 0x0812a1d6 in gimple_boolify (expr=0xb7e78a20) at ../.././gcc/gimplify.c:2094
#6 0x0812b4c5 in gimplify_cond_expr (expr_p=0xb7e0f074, pre_p=0xbf400bd8,
post_p=0xbf400bd4, target=0x0, fallback=fb_none)
at ../.././gcc/gimplify.c:2192
#7 0x08133442 in gimplify_expr (expr_p=0xb7e0f074, pre_p=0xbf400bd8,
post_p=0xbf400bd4, gimple_test_f=0x811cc72 <is_gimple_stmt>,
fallback=fb_none) at ../.././gcc/gimplify.c:3881
#8 0x0813300a in gimplify_stmt (stmt_p=0xb7e0f074) at ../.././gcc/gimplify.c:3744
#9 0x0813301d in gimplify_to_stmt_list (stmt_p=0xb7e0f074) at
../.././gcc/gimplify.c:3752
#10 0x0812ba2c in gimplify_cond_expr (expr_p=0xb7e0f09c, pre_p=0xbf401188,
post_p=0xbf401184, target=0x0, fallback=fb_none)
at ../.././gcc/gimplify.c:2223
#11 0x08133442 in gimplify_expr (expr_p=0xb7e0f09c, pre_p=0xbf401188,
post_p=0xbf401184, gimple_test_f=0x811cc72 <is_gimple_stmt>,
fallback=fb_none) at ../.././gcc/gimplify.c:3881
#12 0x0813300a in gimplify_stmt (stmt_p=0xb7e0f09c) at ../.././gcc/gimplify.c:3744
#13 0x0813301d in gimplify_to_stmt_list (stmt_p=0xb7e0f09c) at
../.././gcc/gimplify.c:3752
#14 0x0812ba2c in gimplify_cond_expr (expr_p=0xb7e0f0c4, pre_p=0xbf401738,
post_p=0xbf401734, target=0x0, fallback=fb_none)
at ../.././gcc/gimplify.c:2223
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21898