[Bug middle-end/11771] [3.4 regression] Segfault with simple double arithmetics

levon at movementarian dot org gcc-bugzilla@gcc.gnu.org
Sun Aug 3 14:34:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


levon at movementarian dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |levon at movementarian dot
                   |                            |org


------- Additional Comments From levon at movementarian dot org  2003-08-03 14:34 -------
I'm seeing this on i686-pc-linux-gnu. There's an inifinite recursion :

#2824 0x081833d1 in fold (expr=0x4032e3c0) at ../../gcc/fold-const.c:5824
#2825 0x081833d1 in fold (expr=0x4032e3a8) at ../../gcc/fold-const.c:5824
#2826 0x081833d1 in fold (expr=0x4032e390) at ../../gcc/fold-const.c:5824
...

(gdb) list fold-const.c:5824
5819                  || (INTEGRAL_TYPE_P (type) && flag_wrapv && !flag_trapv))
5820              && negate_expr_p (arg1)
5821              && (! TREE_SIDE_EFFECTS (arg0) || TREE_CONSTANT (arg1))
5822              && (! TREE_SIDE_EFFECTS (arg1) || TREE_CONSTANT (arg0)))
5823            return fold (build (MINUS_EXPR, type, negate_expr (arg1),
5824                                TREE_OPERAND (arg0, 0)));
5825
5826          if (! FLOAT_TYPE_P (type))
5827            {
5828              if (! wins && integer_zerop (arg0))



More information about the Gcc-bugs mailing list