This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/56478] [4.8 Regression] ICE: Floating point exception in tree_estimate_probability
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 28 Feb 2013 08:05:03 +0000
- Subject: [Bug tree-optimization/56478] [4.8 Regression] ICE: Floating point exception in tree_estimate_probability
- Auto-submitted: auto-generated
- References: <bug-56478-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56478
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dehao at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-02-28 08:05:03 UTC ---
loop_bound = compare_bound = 0
base = -9223372036854775808
so
HOST_WIDE_INT loop_count = (loop_bound - base) / compare_step;
first invokes undefined behavior (loop_bound - base) computation and then
-LONG_LONG_MIN / -1 SIGFPEs.
That and the following code is just full of many potential undefined behaviors.
Even the compare_count++ or loop_count++ could trigger that.