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

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).