public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/51439] New: [4.7 Regression] ICE(SIGFPE) in good_cloning_opportunity_p
@ 2011-12-06 17:14 burnus at gcc dot gnu.org
  2011-12-06 17:20 ` [Bug middle-end/51439] " dominiq at lps dot ens.fr
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: burnus at gcc dot gnu.org @ 2011-12-06 17:14 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51439
           Summary: [4.7 Regression] ICE(SIGFPE) in
                    good_cloning_opportunity_p
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: burnus@gcc.gnu.org
              Host: x86_64-unknown-linux-gnu


Created attachment 26007
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26007
Reduced test case (t108.ii, 6.8 KiB)

The attached test case compiles with GCC 4.6 g++ -O3 and with today's GCC 4.7
up to -O2; with -O3 one gets an ICE:

$ g++-4.6 -c -O3 t108.ii
$ g++ -c t108.ii
$ g++ -c -O3 t108.ii
t108.ii:118:38: internal compiler error: Floating point exception


Program received signal SIGFPE, Arithmetic exception.
0x0000000000ef75f1 in good_cloning_opportunity_p (size_cost=0, count_sum=0,
freq_sum=1000, time_benefit=70, node=<optimized out>)
    at gcc/ipa-cp.c:1233
1233          int evaluation = (time_benefit * freq_sum) / size_cost;

(gdb) bt
#0  0x0000000000ef75f1 in good_cloning_opportunity_p (size_cost=0, count_sum=0,
freq_sum=1000, time_benefit=70, node=<optimized out>)
    at gcc/ipa-cp.c:1233
#1  good_cloning_opportunity_p (time_benefit=<optimized out>, freq_sum=1000,
count_sum=<optimized out>, size_cost=0, node=Unhandled dwarf expression opcode
0xfa
)
    at gcc/ipa-cp.c:1205
#2  0x0000000000efce81 in decide_whether_version_node (node=0x2aaaacde8c60) at
gcc/ipa-cp.c:2258
#3  ipcp_decision_stage (topo=<optimized out>) atgcc/ipa-cp.c:2401
#4  ipcp_driver () at gcc/ipa-cp.c:2441
#5  0x00000000009aedf5 in execute_one_pass (pass=0x15bf200) at
gcc/passes.c:2074
#6  0x00000000009af5ba in execute_ipa_pass_list (pass=0x15bf200) at
gcc/passes.c:2441
#7  0x00000000007a8700 in ipa_passes () at gcc/cgraphunit.c:2075


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

end of thread, other threads:[~2011-12-13 15:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-06 17:14 [Bug middle-end/51439] New: [4.7 Regression] ICE(SIGFPE) in good_cloning_opportunity_p burnus at gcc dot gnu.org
2011-12-06 17:20 ` [Bug middle-end/51439] " dominiq at lps dot ens.fr
2011-12-06 19:50 ` burnus at gcc dot gnu.org
2011-12-07  0:57 ` steven at gcc dot gnu.org
2011-12-07  6:50 ` burnus at gcc dot gnu.org
2011-12-07  8:29 ` jakub at gcc dot gnu.org
2011-12-13 16:09 ` jamborm 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).