This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/29439] [4.2 regression] ICE in fold-const.c:1385 with -O1 -fwrapv -ftree-vrp
- From: "pluto at agmk dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Oct 2006 09:34:37 -0000
- Subject: [Bug tree-optimization/29439] [4.2 regression] ICE in fold-const.c:1385 with -O1 -fwrapv -ftree-vrp
- References: <bug-29439-7667@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #13 from pluto at agmk dot net 2006-10-18 09:34 -------
(In reply to comment #8)
> The call int_const_binop to seems to be wrong, if the comment is correct the
> following is more correct:
> tree tmp = int_const_binop (TRUNC_DIV_EXPR,
> res,
> val1, 0);
>
with -fwrapv + this change, the a-stwifi.adb compiles,
but other failure occurs later:
a-stwiun.adb:34:06: warning: cannot depend on "Wide_Fixed" (wrong
categorization)
a-stwiun.adb:34:06: warning: preelaborated unit cannot depend on
non-preelaborated unit
a-stwiun.adb:34:17: warning: no entities of "Wide_Fixed" are referenced
a-stwiun.adb:450:22: "Delete" not declared in "Wide_Fixed"
a-stwiun.adb:555:20: "Head" not declared in "Wide_Fixed"
a-stwiun.adb:567:22: "Head" not declared in "Wide_Fixed"
a-stwiun.adb:695:22: "Insert" not declared in "Wide_Fixed"
a-stwiun.adb:740:22: "Overwrite" not declared in "Wide_Fixed"
a-stwiun.adb:758:26: "Overwrite" not declared in "Wide_Fixed"
a-stwiun.adb:840:20: "Replace_Slice" not declared in "Wide_Fixed"
a-stwiun.adb:853:20: "Replace_Slice" not declared in "Wide_Fixed"
a-stwiun.adb:902:20: "Tail" not declared in "Wide_Fixed"
a-stwiun.adb:913:20: "Tail" not declared in "Wide_Fixed"
a-stwiun.adb:968:22: "Translate" not declared in "Wide_Fixed"
a-stwiun.adb:977:17: "Translate" not declared in "Wide_Fixed"
a-stwiun.adb:988:22: "Translate" not declared in "Wide_Fixed"
a-stwiun.adb:997:17: "Translate" not declared in "Wide_Fixed"
a-stwiun.adb:1011:22: "Trim" not declared in "Wide_Fixed"
a-stwiun.adb:1022:22: "Trim" not declared in "Wide_Fixed"
a-stwiun.adb:1036:22: "Trim" not declared in "Wide_Fixed"
a-stwiun.adb:1049:22: "Trim" not declared in "Wide_Fixed"
make[7]: *** [a-stwiun.o] Error 1
without this change and without -fwrapv bootstrap passes.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29439