This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/48304] New: ICE: SIGFPE (division by zero) in maybe_hot_count_p at predict.c:145 with --param hot-bb-count-fraction=0 -fprofile-use
- From: "zsojka at seznam dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 27 Mar 2011 19:12:58 +0000
- Subject: [Bug tree-optimization/48304] New: ICE: SIGFPE (division by zero) in maybe_hot_count_p at predict.c:145 with --param hot-bb-count-fraction=0 -fprofile-use
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48304
Summary: ICE: SIGFPE (division by zero) in maybe_hot_count_p at
predict.c:145 with --param hot-bb-count-fraction=0
-fprofile-use
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: zsojka@seznam.cz
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
Created attachment 23783
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23783
reduced testcase
Compiler output:
$ rm *.gcda
$ gcc --param hot-bb-count-fraction=0 testcase.c -fprofile-generate
$ ./a.out
$ gcc --param hot-bb-count-fraction=0 testcase.c -fprofile-use
Program received signal SIGFPE, Arithmetic exception.
0x00000000007fdece in maybe_hot_count_p (e=0x7ffff599b1c0) at
/mnt/svn/gcc-trunk/gcc/predict.c:145
145 > profile_info->sum_max / PARAM_VALUE
(HOT_BB_COUNT_FRACTION));