public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug tree-optimization/48186] New: ICE: SIGFPE (division by zero) in maybe_hot_frequency_p at predict.c:129 with --param hot-bb-frequency-fraction=0 on basic code @ 2011-03-18 15:59 zsojka at seznam dot cz 2011-12-15 2:24 ` [Bug tree-optimization/48186] " pinskia at gcc dot gnu.org ` (5 more replies) 0 siblings, 6 replies; 7+ messages in thread From: zsojka at seznam dot cz @ 2011-03-18 15:59 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48186 Summary: ICE: SIGFPE (division by zero) in maybe_hot_frequency_p at predict.c:129 with --param hot-bb-frequency-fraction=0 on basic code Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned@gcc.gnu.org ReportedBy: zsojka@seznam.cz ----- testcase.c ----- void foo (void) { } ---------------------- Compiler output: $ gcc -O --param hot-bb-frequency-fraction=0 testcase.c testcase.c: In function 'foo': testcase.c:1:6: internal compiler error: Floating point exception Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. Program received signal SIGFPE, Arithmetic exception. 0x0000000000806f9c in maybe_hot_frequency_p (bb=Unhandled dwarf expression opcode 0xf3 ) at /mnt/svn/gcc-trunk/gcc/predict.c:129 129 if (freq < ENTRY_BLOCK_PTR->frequency / PARAM_VALUE (HOT_BB_FREQUENCY_FRACTION)) ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/48186] ICE: SIGFPE (division by zero) in maybe_hot_frequency_p at predict.c:129 with --param hot-bb-frequency-fraction=0 on basic code 2011-03-18 15:59 [Bug tree-optimization/48186] New: ICE: SIGFPE (division by zero) in maybe_hot_frequency_p at predict.c:129 with --param hot-bb-frequency-fraction=0 on basic code zsojka at seznam dot cz @ 2011-12-15 2:24 ` pinskia at gcc dot gnu.org 2013-04-04 14:51 ` mpolacek at gcc dot gnu.org ` (4 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: pinskia at gcc dot gnu.org @ 2011-12-15 2:24 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48186 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2011-12-15 Ever Confirmed|0 |1 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-12-15 02:20:27 UTC --- Confirmed. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/48186] ICE: SIGFPE (division by zero) in maybe_hot_frequency_p at predict.c:129 with --param hot-bb-frequency-fraction=0 on basic code 2011-03-18 15:59 [Bug tree-optimization/48186] New: ICE: SIGFPE (division by zero) in maybe_hot_frequency_p at predict.c:129 with --param hot-bb-frequency-fraction=0 on basic code zsojka at seznam dot cz 2011-12-15 2:24 ` [Bug tree-optimization/48186] " pinskia at gcc dot gnu.org @ 2013-04-04 14:51 ` mpolacek at gcc dot gnu.org 2013-04-04 15:49 ` mpolacek at gcc dot gnu.org ` (3 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: mpolacek at gcc dot gnu.org @ 2013-04-04 14:51 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48186 Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |mpolacek at gcc dot gnu.org AssignedTo|unassigned at gcc dot |mpolacek at gcc dot gnu.org |gnu.org | --- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> 2013-04-04 14:51:20 UTC --- I have a patch. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/48186] ICE: SIGFPE (division by zero) in maybe_hot_frequency_p at predict.c:129 with --param hot-bb-frequency-fraction=0 on basic code 2011-03-18 15:59 [Bug tree-optimization/48186] New: ICE: SIGFPE (division by zero) in maybe_hot_frequency_p at predict.c:129 with --param hot-bb-frequency-fraction=0 on basic code zsojka at seznam dot cz 2011-12-15 2:24 ` [Bug tree-optimization/48186] " pinskia at gcc dot gnu.org 2013-04-04 14:51 ` mpolacek at gcc dot gnu.org @ 2013-04-04 15:49 ` mpolacek at gcc dot gnu.org 2013-04-04 15:52 ` dominiq at lps dot ens.fr ` (2 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: mpolacek at gcc dot gnu.org @ 2013-04-04 15:49 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48186 --- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> 2013-04-04 15:49:00 UTC --- Author: mpolacek Date: Thu Apr 4 15:48:25 2013 New Revision: 197487 URL: http://gcc.gnu.org/viewcvs?rev=197487&root=gcc&view=rev Log: PR tree-optimization/48186 * predict.c (maybe_hot_frequency_p): Return false if HOT_BB_FREQUENCY_FRACTION is 0. (cgraph_maybe_hot_edge_p): Likewise. * gcc.dg/pr48186.c: New test. Added: trunk/gcc/testsuite/gcc.dg/pr48186.c Modified: trunk/gcc/ChangeLog trunk/gcc/predict.c trunk/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/48186] ICE: SIGFPE (division by zero) in maybe_hot_frequency_p at predict.c:129 with --param hot-bb-frequency-fraction=0 on basic code 2011-03-18 15:59 [Bug tree-optimization/48186] New: ICE: SIGFPE (division by zero) in maybe_hot_frequency_p at predict.c:129 with --param hot-bb-frequency-fraction=0 on basic code zsojka at seznam dot cz ` (2 preceding siblings ...) 2013-04-04 15:49 ` mpolacek at gcc dot gnu.org @ 2013-04-04 15:52 ` dominiq at lps dot ens.fr 2013-04-04 15:53 ` mpolacek at gcc dot gnu.org 2013-04-04 15:54 ` mpolacek at gcc dot gnu.org 5 siblings, 0 replies; 7+ messages in thread From: dominiq at lps dot ens.fr @ 2013-04-04 15:52 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48186 Dominique d'Humieres <dominiq at lps dot ens.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dominiq at lps dot ens.fr --- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2013-04-04 15:52:12 UTC --- *** Bug 40119 has been marked as a duplicate of this bug. *** ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/48186] ICE: SIGFPE (division by zero) in maybe_hot_frequency_p at predict.c:129 with --param hot-bb-frequency-fraction=0 on basic code 2011-03-18 15:59 [Bug tree-optimization/48186] New: ICE: SIGFPE (division by zero) in maybe_hot_frequency_p at predict.c:129 with --param hot-bb-frequency-fraction=0 on basic code zsojka at seznam dot cz ` (3 preceding siblings ...) 2013-04-04 15:52 ` dominiq at lps dot ens.fr @ 2013-04-04 15:53 ` mpolacek at gcc dot gnu.org 2013-04-04 15:54 ` mpolacek at gcc dot gnu.org 5 siblings, 0 replies; 7+ messages in thread From: mpolacek at gcc dot gnu.org @ 2013-04-04 15:53 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48186 --- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> 2013-04-04 15:53:25 UTC --- Author: mpolacek Date: Thu Apr 4 15:52:54 2013 New Revision: 197488 URL: http://gcc.gnu.org/viewcvs?rev=197488&root=gcc&view=rev Log: PR tree-optimization/48186 * predict.c (maybe_hot_frequency_p): Return false if HOT_BB_FREQUENCY_FRACTION is 0. (cgraph_maybe_hot_edge_p): Likewise. * gcc.dg/pr48186.c: New test. Added: branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/pr48186.c Modified: branches/gcc-4_8-branch/gcc/ChangeLog branches/gcc-4_8-branch/gcc/predict.c branches/gcc-4_8-branch/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/48186] ICE: SIGFPE (division by zero) in maybe_hot_frequency_p at predict.c:129 with --param hot-bb-frequency-fraction=0 on basic code 2011-03-18 15:59 [Bug tree-optimization/48186] New: ICE: SIGFPE (division by zero) in maybe_hot_frequency_p at predict.c:129 with --param hot-bb-frequency-fraction=0 on basic code zsojka at seznam dot cz ` (4 preceding siblings ...) 2013-04-04 15:53 ` mpolacek at gcc dot gnu.org @ 2013-04-04 15:54 ` mpolacek at gcc dot gnu.org 5 siblings, 0 replies; 7+ messages in thread From: mpolacek at gcc dot gnu.org @ 2013-04-04 15:54 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48186 Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> 2013-04-04 15:53:56 UTC --- Fixed. ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-04-04 15:54 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2011-03-18 15:59 [Bug tree-optimization/48186] New: ICE: SIGFPE (division by zero) in maybe_hot_frequency_p at predict.c:129 with --param hot-bb-frequency-fraction=0 on basic code zsojka at seznam dot cz 2011-12-15 2:24 ` [Bug tree-optimization/48186] " pinskia at gcc dot gnu.org 2013-04-04 14:51 ` mpolacek at gcc dot gnu.org 2013-04-04 15:49 ` mpolacek at gcc dot gnu.org 2013-04-04 15:52 ` dominiq at lps dot ens.fr 2013-04-04 15:53 ` mpolacek at gcc dot gnu.org 2013-04-04 15:54 ` mpolacek at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).