* [Bug lto/50496] [4.7 regression] ICE in redirect_jump, at jump.c:1497
2011-09-23 15:50 [Bug lto/50496] New: [4.7 regression] ICE in redirect_jump, at jump.c:1497 markus at trippelsdorf dot de
@ 2011-09-23 15:58 ` markus at trippelsdorf dot de
2011-09-23 20:25 ` markus at trippelsdorf dot de
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: markus at trippelsdorf dot de @ 2011-09-23 15:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50496
--- Comment #1 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-09-23 15:50:00 UTC ---
Testcase is too big ATM: 1193 kilobytes.
Will post reduced testcase later.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug lto/50496] [4.7 regression] ICE in redirect_jump, at jump.c:1497
2011-09-23 15:50 [Bug lto/50496] New: [4.7 regression] ICE in redirect_jump, at jump.c:1497 markus at trippelsdorf dot de
2011-09-23 15:58 ` [Bug lto/50496] " markus at trippelsdorf dot de
@ 2011-09-23 20:25 ` markus at trippelsdorf dot de
2011-09-23 21:24 ` [Bug middle-end/50496] " pinskia at gcc dot gnu.org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: markus at trippelsdorf dot de @ 2011-09-23 20:25 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50496
--- Comment #2 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-09-23 19:50:31 UTC ---
Created attachment 25351
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25351
testcase
Somewhat reduced testcase.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/50496] [4.7 regression] ICE in redirect_jump, at jump.c:1497
2011-09-23 15:50 [Bug lto/50496] New: [4.7 regression] ICE in redirect_jump, at jump.c:1497 markus at trippelsdorf dot de
2011-09-23 15:58 ` [Bug lto/50496] " markus at trippelsdorf dot de
2011-09-23 20:25 ` markus at trippelsdorf dot de
@ 2011-09-23 21:24 ` pinskia at gcc dot gnu.org
2011-09-24 15:20 ` markus at trippelsdorf dot de
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-09-23 21:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50496
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code, lto
Component|lto |middle-end
Target Milestone|--- |4.7.0
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/50496] [4.7 regression] ICE in redirect_jump, at jump.c:1497
2011-09-23 15:50 [Bug lto/50496] New: [4.7 regression] ICE in redirect_jump, at jump.c:1497 markus at trippelsdorf dot de
` (2 preceding siblings ...)
2011-09-23 21:24 ` [Bug middle-end/50496] " pinskia at gcc dot gnu.org
@ 2011-09-24 15:20 ` markus at trippelsdorf dot de
2011-09-24 18:30 ` markus at trippelsdorf dot de
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: markus at trippelsdorf dot de @ 2011-09-24 15:20 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50496
Markus Trippelsdorf <markus at trippelsdorf dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #25351|0 |1
is obsolete| |
--- Comment #3 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-09-24 14:25:48 UTC ---
Created attachment 25357
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25357
reduced testcase
New reduced testcase after one round of "multidelta -level=0".
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/50496] [4.7 regression] ICE in redirect_jump, at jump.c:1497
2011-09-23 15:50 [Bug lto/50496] New: [4.7 regression] ICE in redirect_jump, at jump.c:1497 markus at trippelsdorf dot de
` (3 preceding siblings ...)
2011-09-24 15:20 ` markus at trippelsdorf dot de
@ 2011-09-24 18:30 ` markus at trippelsdorf dot de
2011-09-24 20:40 ` markus at trippelsdorf dot de
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: markus at trippelsdorf dot de @ 2011-09-24 18:30 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50496
--- Comment #4 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-09-24 18:23:15 UTC ---
I've found a new testcase that results in the same ICE:
% < test.cpp
class GCAlloc {
};
class BaseAlloc {
};
class String;
class Base {
public:
virtual void destroy( String *str ) const =0;
};
class String: public GCAlloc {
const Base *m_class;
public:
enum constants {
};
String( const char *data );
~String() {
m_class->destroy( this );
}
void copy( const String &other );
String & operator=( const char *other ) {
copy( String( other ) );
}
};
class ListElement: public BaseAlloc {
};
class List: public BaseAlloc {
ListElement *m_head;
void (*m_deletor)( void *);
public:
List(): m_deletor(0) {
}
const void *back() const {
}
bool empty() const {
return m_head == 0;
}
void popBack();
};
class FalconData: public BaseAlloc {
public:
virtual ~FalconData() {
}
};
class Stream: public FalconData {
};
class SrcLexer: public BaseAlloc {
List m_streams;
String m_whiteLead;
void reset();
};
void SrcLexer::reset()
{
m_whiteLead = "";
while( ! m_streams.empty() ) {
Stream *s = (Stream *) m_streams.back();
m_streams.popBack();
if ( !m_streams.empty() ) delete s;
}
}
% g++ -O2 test.cpp
test.ii: In member function ‘void SrcLexer::reset()’:
test.ii:59:1: internal compiler error: in redirect_jump, at jump.c:1497
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/50496] [4.7 regression] ICE in redirect_jump, at jump.c:1497
2011-09-23 15:50 [Bug lto/50496] New: [4.7 regression] ICE in redirect_jump, at jump.c:1497 markus at trippelsdorf dot de
` (4 preceding siblings ...)
2011-09-24 18:30 ` markus at trippelsdorf dot de
@ 2011-09-24 20:40 ` markus at trippelsdorf dot de
2011-10-15 12:52 ` [Bug rtl-optimization/50496] " ebotcazou at gcc dot gnu.org
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: markus at trippelsdorf dot de @ 2011-09-24 20:40 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50496
--- Comment #5 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-09-24 19:06:40 UTC ---
Created attachment 25358
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25358
fix
This patch from Chung-Lin Tang fixes both issues.
See: https://bugs.launchpad.net/ubuntu/+source/gcc-4.5/+bug/748138
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/50496] [4.7 regression] ICE in redirect_jump, at jump.c:1497
2011-09-23 15:50 [Bug lto/50496] New: [4.7 regression] ICE in redirect_jump, at jump.c:1497 markus at trippelsdorf dot de
` (5 preceding siblings ...)
2011-09-24 20:40 ` markus at trippelsdorf dot de
@ 2011-10-15 12:52 ` ebotcazou at gcc dot gnu.org
2011-10-15 12:58 ` markus at trippelsdorf dot de
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2011-10-15 12:52 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50496
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011-10-15
CC| |ebotcazou at gcc dot
| |gnu.org
Component|middle-end |rtl-optimization
Ever Confirmed|0 |1
--- Comment #6 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2011-10-15 12:51:30 UTC ---
I can reproduce.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/50496] [4.7 regression] ICE in redirect_jump, at jump.c:1497
2011-09-23 15:50 [Bug lto/50496] New: [4.7 regression] ICE in redirect_jump, at jump.c:1497 markus at trippelsdorf dot de
` (6 preceding siblings ...)
2011-10-15 12:52 ` [Bug rtl-optimization/50496] " ebotcazou at gcc dot gnu.org
@ 2011-10-15 12:58 ` markus at trippelsdorf dot de
2011-10-27 10:27 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: markus at trippelsdorf dot de @ 2011-10-15 12:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50496
Markus Trippelsdorf <markus at trippelsdorf dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |cltang at gcc dot gnu.org
--- Comment #7 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-10-15 12:58:01 UTC ---
Chung-Lin told me in a private mail, that he'll handle this when
he finds time.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/50496] [4.7 regression] ICE in redirect_jump, at jump.c:1497
2011-09-23 15:50 [Bug lto/50496] New: [4.7 regression] ICE in redirect_jump, at jump.c:1497 markus at trippelsdorf dot de
` (7 preceding siblings ...)
2011-10-15 12:58 ` markus at trippelsdorf dot de
@ 2011-10-27 10:27 ` rguenth at gcc dot gnu.org
2011-11-23 13:56 ` cltang at gcc dot gnu.org
2011-11-23 14:33 ` markus at trippelsdorf dot de
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-10-27 10:27 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50496
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|lto |
Priority|P3 |P1
--- Comment #8 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-10-27 10:26:52 UTC ---
Does not require LTO.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/50496] [4.7 regression] ICE in redirect_jump, at jump.c:1497
2011-09-23 15:50 [Bug lto/50496] New: [4.7 regression] ICE in redirect_jump, at jump.c:1497 markus at trippelsdorf dot de
` (8 preceding siblings ...)
2011-10-27 10:27 ` rguenth at gcc dot gnu.org
@ 2011-11-23 13:56 ` cltang at gcc dot gnu.org
2011-11-23 14:33 ` markus at trippelsdorf dot de
10 siblings, 0 replies; 12+ messages in thread
From: cltang at gcc dot gnu.org @ 2011-11-23 13:56 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50496
--- Comment #9 from Chung-Lin Tang <cltang at gcc dot gnu.org> 2011-11-23 13:22:34 UTC ---
Author: cltang
Date: Wed Nov 23 13:22:30 2011
New Revision: 181664
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=181664
Log:
2011-11-23 Chung-Lin Tang <cltang@codesourcery.com>
PR rtl-optimization/50496
* jump.c (redirect_jump): Assert fail on nlabel == NULL_RTX
only after epilogue is created. Add comments.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/jump.c
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/50496] [4.7 regression] ICE in redirect_jump, at jump.c:1497
2011-09-23 15:50 [Bug lto/50496] New: [4.7 regression] ICE in redirect_jump, at jump.c:1497 markus at trippelsdorf dot de
` (9 preceding siblings ...)
2011-11-23 13:56 ` cltang at gcc dot gnu.org
@ 2011-11-23 14:33 ` markus at trippelsdorf dot de
10 siblings, 0 replies; 12+ messages in thread
From: markus at trippelsdorf dot de @ 2011-11-23 14:33 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50496
Markus Trippelsdorf <markus at trippelsdorf dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #10 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-11-23 13:58:44 UTC ---
Fixed. Thanks.
^ permalink raw reply [flat|nested] 12+ messages in thread