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: [email protected]
ReportedBy: [email protected]
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));