public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/41835]  New: ICE with -flto -O3 (BB N can not throw but has an EH edge)
@ 2009-10-26 19:06 pinskia at gcc dot gnu dot org
  2009-10-26 20:56 ` [Bug tree-optimization/41835] " rguenth at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-10-26 19:06 UTC (permalink / raw)
  To: gcc-bugs

Looks like something is not removing the EH edges.
Anyways here is a simple testcase:
file 1):
void Stop_Profile( void );
struct CProfileSample { 
  ~CProfileSample( void )  { 
  Stop_Profile(); 
 }
};
void integrateVelocities(int);
void predictUnconstraintMotion(int size)
{
  CProfileSample __profile;
  for ( int i=0;i<size;i++) 
    integrateVelocities(1);
}

--- CUT ---
File 2:
void integrateVelocities(int) { }
void Stop_Profile( void ) {  }

--- CUT ---


-- 
           Summary: ICE with -flto -O3 (BB N can not throw but has an EH
                    edge)
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org


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


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

* [Bug tree-optimization/41835] ICE with -flto -O3 (BB N can not throw but has an EH edge)
  2009-10-26 19:06 [Bug tree-optimization/41835] New: ICE with -flto -O3 (BB N can not throw but has an EH edge) pinskia at gcc dot gnu dot org
@ 2009-10-26 20:56 ` rguenth at gcc dot gnu dot org
  2009-12-11 11:38 ` hubicka at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-10-26 20:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2009-10-26 20:56 -------
Confirmed.  There is a crude fixup pass, but this should be handled by
IPA nothrow (which doesn't exist).


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |lto
   Last reconfirmed|0000-00-00 00:00:00         |2009-10-26 20:56:03
               date|                            |


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


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

* [Bug tree-optimization/41835] ICE with -flto -O3 (BB N can not throw but has an EH edge)
  2009-10-26 19:06 [Bug tree-optimization/41835] New: ICE with -flto -O3 (BB N can not throw but has an EH edge) pinskia at gcc dot gnu dot org
  2009-10-26 20:56 ` [Bug tree-optimization/41835] " rguenth at gcc dot gnu dot org
@ 2009-12-11 11:38 ` hubicka at gcc dot gnu dot org
  2010-04-23 15:38 ` rguenth at gcc dot gnu dot org
  2010-04-25 23:44 ` hubicka at ucw dot cz
  3 siblings, 0 replies; 5+ messages in thread
From: hubicka at gcc dot gnu dot org @ 2009-12-11 11:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from hubicka at gcc dot gnu dot org  2009-12-11 11:37 -------
ipa nothrow is hidden in ipa-pure-const (that should be renamed eventually).
However issue here is that at IPA stage we should not touch function bodies, so
we should not do these updates.  This is why fixup pass exists to resolve these
cases after we get into local compilation.

This however seems like LTO is getting something wrong, we do make throw flags
to disappear at IPA for quite some time.


-- 


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


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

* [Bug tree-optimization/41835] ICE with -flto -O3 (BB N can not throw but has an EH edge)
  2009-10-26 19:06 [Bug tree-optimization/41835] New: ICE with -flto -O3 (BB N can not throw but has an EH edge) pinskia at gcc dot gnu dot org
  2009-10-26 20:56 ` [Bug tree-optimization/41835] " rguenth at gcc dot gnu dot org
  2009-12-11 11:38 ` hubicka at gcc dot gnu dot org
@ 2010-04-23 15:38 ` rguenth at gcc dot gnu dot org
  2010-04-25 23:44 ` hubicka at ucw dot cz
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-04-23 15:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2010-04-23 15:38 -------
Seems to work for me, even with the 4.5.0 release.


-- 

rguenth at gcc dot gnu dot org changed:

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


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


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

* [Bug tree-optimization/41835] ICE with -flto -O3 (BB N can not throw but has an EH edge)
  2009-10-26 19:06 [Bug tree-optimization/41835] New: ICE with -flto -O3 (BB N can not throw but has an EH edge) pinskia at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2010-04-23 15:38 ` rguenth at gcc dot gnu dot org
@ 2010-04-25 23:44 ` hubicka at ucw dot cz
  3 siblings, 0 replies; 5+ messages in thread
From: hubicka at ucw dot cz @ 2010-04-25 23:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from hubicka at ucw dot cz  2010-04-25 23:44 -------
Subject: Re:  ICE with -flto -O3 (BB N can not
        throw but has an EH edge)

> Seems to work for me, even with the 4.5.0 release.
Note that on mainline the code removing wpa fixup should help here too.  There
clearly was bugs.

Honza


-- 


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


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

end of thread, other threads:[~2010-04-25 23:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-26 19:06 [Bug tree-optimization/41835] New: ICE with -flto -O3 (BB N can not throw but has an EH edge) pinskia at gcc dot gnu dot org
2009-10-26 20:56 ` [Bug tree-optimization/41835] " rguenth at gcc dot gnu dot org
2009-12-11 11:38 ` hubicka at gcc dot gnu dot org
2010-04-23 15:38 ` rguenth at gcc dot gnu dot org
2010-04-25 23:44 ` hubicka at ucw dot cz

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