public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/41521]  New: [LTO] ICE verify_cgraph_node only with "-g"
@ 2009-09-30 16:45 burnus at gcc dot gnu dot org
  2009-10-14 10:51 ` [Bug lto/41521] " rguenth at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-09-30 16:45 UTC (permalink / raw)
  To: gcc-bugs

While

gfortran -O1 -flto  -c species.f90
gfortran -O1 -flto  -c atom.f90
gfortran -O1 -flto  -o species species.o atom.o

works, the following gives an ICE:

gfortran -O1 -flto -g  -c species.f90
gfortran -O1 -flto -g  -c atom.f90
gfortran -O1 -flto -g  -o species species.o atom.o
lto1: error: missing callgraph edge for call stmt:
# .MEM_23 = VDEF <.MEM_22>
D.1875_17 = __builtin_sqrtf (t1_12);

lto1: error: edge atom->__builtin_sqrtf has no corresponding call_stmt
D.1874_18 = D.1865_14 / D.1875_17;

atom/5(-1) @0x2b47d4c25e00 availability:available 46 time, 18 benefit 19 size,
9 benefit needed reachable body externally_visible finalized inlinable
  called by: species/0 (1.00 per call)
  calls: __builtin_sqrt/4 (1.00 per call) __builtin_sqrtf/6 (1.00 per call)
lto1: internal compiler error: verify_cgraph_node failed

! ------ atom.f90 ----------------
subroutine atom(sol,k,eval)
real, intent(in) :: sol
integer, intent(in) :: k(2)
real, intent(out) :: eval(2)
real t1
  t1=sqrt(dble(k(1)**2)-(sol)**2)
  eval(1)=sol**2/sqrt(t1)-sol**2
end subroutine


! ------ species.f90 ----------------
program species
integer spk(2)
real eval(2)
spk = 2
call atom(1.1,spk,eval)
end program


-- 
           Summary: [LTO] ICE verify_cgraph_node only with "-g"
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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


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

* [Bug lto/41521] [LTO] ICE verify_cgraph_node only with "-g"
  2009-09-30 16:45 [Bug lto/41521] New: [LTO] ICE verify_cgraph_node only with "-g" burnus at gcc dot gnu dot org
@ 2009-10-14 10:51 ` rguenth at gcc dot gnu dot org
  2009-10-14 10:55 ` rguenth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-10-14 10:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2009-10-14 10:51 -------
I have a patch.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rguenth at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-10-14 10:51:18
               date|                            |


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


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

* [Bug lto/41521] [LTO] ICE verify_cgraph_node only with "-g"
  2009-09-30 16:45 [Bug lto/41521] New: [LTO] ICE verify_cgraph_node only with "-g" burnus at gcc dot gnu dot org
  2009-10-14 10:51 ` [Bug lto/41521] " rguenth at gcc dot gnu dot org
@ 2009-10-14 10:55 ` rguenth at gcc dot gnu dot org
  2009-10-14 10:58 ` rguenth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-10-14 10:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2009-10-14 10:55 -------
*** Bug 41694 has been marked as a duplicate of this bug. ***


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anlauf at gmx dot de


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


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

* [Bug lto/41521] [LTO] ICE verify_cgraph_node only with "-g"
  2009-09-30 16:45 [Bug lto/41521] New: [LTO] ICE verify_cgraph_node only with "-g" burnus at gcc dot gnu dot org
  2009-10-14 10:51 ` [Bug lto/41521] " rguenth at gcc dot gnu dot org
  2009-10-14 10:55 ` rguenth at gcc dot gnu dot org
@ 2009-10-14 10:58 ` rguenth at gcc dot gnu dot org
  2009-10-14 13:09 ` rguenth at gcc dot gnu dot org
  2009-10-14 13:19 ` rguenth at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-10-14 10:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2009-10-14 10:57 -------
*** Bug 41566 has been marked as a duplicate of this bug. ***


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |toon at moene dot org


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


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

* [Bug lto/41521] [LTO] ICE verify_cgraph_node only with "-g"
  2009-09-30 16:45 [Bug lto/41521] New: [LTO] ICE verify_cgraph_node only with "-g" burnus at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2009-10-14 10:58 ` rguenth at gcc dot gnu dot org
@ 2009-10-14 13:09 ` rguenth at gcc dot gnu dot org
  2009-10-14 13:19 ` rguenth at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-10-14 13:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2009-10-14 13:08 -------
Subject: Bug 41521

Author: rguenth
Date: Wed Oct 14 13:08:44 2009
New Revision: 152767

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=152767
Log:
2009-10-14  Richard Guenther  <rguenther@suse.de>

        PR lto/41521
        * lto-streamer-in.c (input_bb): Replace debug stmts with
        nops instead of dropping them.

        * gfortran.dg/lto/pr41521_0.f90: New testcase.
        * gfortran.dg/lto/pr41521_1.f90: Likewise.

Added:
    trunk/gcc/testsuite/gfortran.dg/lto/pr41521_0.f90
    trunk/gcc/testsuite/gfortran.dg/lto/pr41521_1.f90
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/lto-streamer-in.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug lto/41521] [LTO] ICE verify_cgraph_node only with "-g"
  2009-09-30 16:45 [Bug lto/41521] New: [LTO] ICE verify_cgraph_node only with "-g" burnus at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2009-10-14 13:09 ` rguenth at gcc dot gnu dot org
@ 2009-10-14 13:19 ` rguenth at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-10-14 13:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from rguenth at gcc dot gnu dot org  2009-10-14 13:19 -------
Fixed.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.5.0


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


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

end of thread, other threads:[~2009-10-14 13:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-30 16:45 [Bug lto/41521] New: [LTO] ICE verify_cgraph_node only with "-g" burnus at gcc dot gnu dot org
2009-10-14 10:51 ` [Bug lto/41521] " rguenth at gcc dot gnu dot org
2009-10-14 10:55 ` rguenth at gcc dot gnu dot org
2009-10-14 10:58 ` rguenth at gcc dot gnu dot org
2009-10-14 13:09 ` rguenth at gcc dot gnu dot org
2009-10-14 13:19 ` rguenth at gcc dot gnu dot 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).