public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58555] New: Floating point exception in want_inline_self_recursive_call_p
@ 2013-09-27 19:19 dcb314 at hotmail dot com
  2013-09-27 21:04 ` [Bug c++/58555] " markus at trippelsdorf dot de
                   ` (29 more replies)
  0 siblings, 30 replies; 31+ messages in thread
From: dcb314 at hotmail dot com @ 2013-09-27 19:19 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58555

            Bug ID: 58555
           Summary: Floating point exception in
                    want_inline_self_recursive_call_p
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com

Created attachment 30919
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30919&action=edit
gzipped C++ source code

I just tried to compile package flamerobin-0.9.3-4.20130401snap with
gcc 4.9 trunk dated 20130925. It said

./src/metadata/root.cpp:375:1: internal compiler error: Floating point
exception
 }
 ^
0xafbfff crash_signal
    ../../src/trunk/gcc/toplev.c:335
0x50ed95 want_inline_self_recursive_call_p
    ../../src/trunk/gcc/ipa-inline.c:699
0xf72320 inline_small_functions
    ../../src/trunk/gcc/ipa-inline.c:1756
0xf72320 ipa_inline
    ../../src/trunk/gcc/ipa-inline.c:2009
0xf72320 execute
    ../../src/trunk/gcc/ipa-inline.c:2379
Please submit a full bug report,
with preprocessed source if appropriate.

Preprocessed source code attached. Flag -O3 required.

Checking the compiler source code, the offending line is

      if (!max_count
      && (edge->frequency * CGRAPH_FREQ_BASE / caller_freq
          >= max_prob))

I speculate that caller_freq == 0 and someone has missed out
a belt'n'braces check for zero before making the division.


^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2014-02-20  7:43 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-27 19:19 [Bug c++/58555] New: Floating point exception in want_inline_self_recursive_call_p dcb314 at hotmail dot com
2013-09-27 21:04 ` [Bug c++/58555] " markus at trippelsdorf dot de
2013-09-28 11:36 ` paolo.carlini at oracle dot com
2013-09-28 11:52 ` markus at trippelsdorf dot de
2013-09-30 10:25 ` [Bug middle-end/58555] [4.9 Regression] " rguenth at gcc dot gnu.org
2013-09-30 10:54 ` mpolacek at gcc dot gnu.org
2013-10-17  9:46 ` dcb314 at hotmail dot com
2013-11-05 14:42 ` rguenth at gcc dot gnu.org
2013-11-05 15:17 ` octoploid at yandex dot com
2013-11-05 16:23 ` octoploid at yandex dot com
2013-11-05 19:29 ` octoploid at yandex dot com
2013-11-13 14:05 ` dcb314 at hotmail dot com
2013-11-13 15:20 ` octoploid at yandex dot com
2013-12-04 15:29 ` jakub at gcc dot gnu.org
2013-12-04 15:56 ` octoploid at yandex dot com
2013-12-04 18:04 ` hubicka at ucw dot cz
2014-01-02  9:31 ` dcb314 at hotmail dot com
2014-01-09  9:33 ` dcb314 at hotmail dot com
2014-01-27 20:41 ` law at redhat dot com
2014-01-27 20:54 ` law at redhat dot com
2014-01-27 21:23 ` hubicka at gcc dot gnu.org
2014-01-27 21:27 ` law at redhat dot com
2014-01-27 21:41 ` hubicka at ucw dot cz
2014-01-27 21:52 ` law at redhat dot com
2014-02-18  6:37 ` jakub at gcc dot gnu.org
2014-02-18  8:26 ` dcb314 at hotmail dot com
2014-02-20  6:15 ` jakub at gcc dot gnu.org
2014-02-20  6:22 ` trippels at gcc dot gnu.org
2014-02-20  6:25 ` jakub at gcc dot gnu.org
2014-02-20  6:40 ` hubicka at gcc dot gnu.org
2014-02-20  7:43 ` trippels 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).