public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/64280] New: [5 Regression] ICE in replace_uses_by, at tree-cfg.c:1789
@ 2014-12-12 10:02 rguenth at gcc dot gnu.org
2014-12-12 10:03 ` [Bug tree-optimization/64280] " rguenth at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-12-12 10:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64280
Bug ID: 64280
Summary: [5 Regression] ICE in replace_uses_by, at
tree-cfg.c:1789
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: rguenth at gcc dot gnu.org
Created attachment 34261
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34261&action=edit
preprocessed source
> ./cc1plus -quiet trainer.ii -O
trainer.cpp: In member function 'virtual bool zinnia::TrainerImpl::train(const
char*)':
trainer.cpp:124:6: internal compiler error: in replace_uses_by, at
tree-cfg.c:1789
0xfb5c3d replace_uses_by(tree_node*, tree_node*)
/space/rguenther/src/svn/trunk2/gcc/tree-cfg.c:1789
0xfb61dd gimple_merge_blocks
/space/rguenther/src/svn/trunk2/gcc/tree-cfg.c:1902
0xa64864 merge_blocks(basic_block_def*, basic_block_def*)
/space/rguenther/src/svn/trunk2/gcc/cfghooks.c:760
0xfce6cb cleanup_tree_cfg_bb
/space/rguenther/src/svn/trunk2/gcc/tree-cfgcleanup.c:657
0xfce74a cleanup_tree_cfg_1
/space/rguenther/src/svn/trunk2/gcc/tree-cfgcleanup.c:689
0xfce8a6 cleanup_tree_cfg_noloop
/space/rguenther/src/svn/trunk2/gcc/tree-cfgcleanup.c:747
0xfce9b2 cleanup_tree_cfg()
/space/rguenther/src/svn/trunk2/gcc/tree-cfgcleanup.c:802
0xe79acc execute_function_todo
/space/rguenther/src/svn/trunk2/gcc/passes.c:1893
0xe78d45 do_per_function
/space/rguenther/src/svn/trunk2/gcc/passes.c:1632
0xe79dfc execute_todo
/space/rguenther/src/svn/trunk2/gcc/passes.c:1997
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/64280] [5 Regression] ICE in replace_uses_by, at tree-cfg.c:1789
2014-12-12 10:02 [Bug tree-optimization/64280] New: [5 Regression] ICE in replace_uses_by, at tree-cfg.c:1789 rguenth at gcc dot gnu.org
@ 2014-12-12 10:03 ` rguenth at gcc dot gnu.org
2014-12-12 10:19 ` trippels at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-12-12 10:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64280
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |5.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/64280] [5 Regression] ICE in replace_uses_by, at tree-cfg.c:1789
2014-12-12 10:02 [Bug tree-optimization/64280] New: [5 Regression] ICE in replace_uses_by, at tree-cfg.c:1789 rguenth at gcc dot gnu.org
2014-12-12 10:03 ` [Bug tree-optimization/64280] " rguenth at gcc dot gnu.org
@ 2014-12-12 10:19 ` trippels at gcc dot gnu.org
2014-12-12 10:32 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-12-12 10:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64280
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |trippels at gcc dot gnu.org
--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
reduced test case:
class A
{
public:
A ();
};
class B
{
public:
B (int);
operator void *() { return m_fn1 () ? 0 : this; }
int m_fn1 ();
};
typedef int jmp_buf[];
struct C
{
jmp_buf cond_;
};
class F
{
C what_;
bool m_fn2 ();
};
int _setjmp (int[]);
void longjmp ();
class D
{
public:
D () { longjmp (); }
};
bool
F::m_fn2 ()
{
B a (0);
if (a)
if (_setjmp (what_.cond_))
return 0;
else
D ();
A b;
}
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/64280] [5 Regression] ICE in replace_uses_by, at tree-cfg.c:1789
2014-12-12 10:02 [Bug tree-optimization/64280] New: [5 Regression] ICE in replace_uses_by, at tree-cfg.c:1789 rguenth at gcc dot gnu.org
2014-12-12 10:03 ` [Bug tree-optimization/64280] " rguenth at gcc dot gnu.org
2014-12-12 10:19 ` trippels at gcc dot gnu.org
@ 2014-12-12 10:32 ` rguenth at gcc dot gnu.org
2014-12-12 13:26 ` rguenth at gcc dot gnu.org
2014-12-12 13:26 ` rguenth at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-12-12 10:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64280
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2014-12-12
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Mine.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/64280] [5 Regression] ICE in replace_uses_by, at tree-cfg.c:1789
2014-12-12 10:02 [Bug tree-optimization/64280] New: [5 Regression] ICE in replace_uses_by, at tree-cfg.c:1789 rguenth at gcc dot gnu.org
` (3 preceding siblings ...)
2014-12-12 13:26 ` rguenth at gcc dot gnu.org
@ 2014-12-12 13:26 ` rguenth at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-12-12 13:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64280
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Fri Dec 12 13:26:15 2014
New Revision: 218668
URL: https://gcc.gnu.org/viewcvs?rev=218668&root=gcc&view=rev
Log:
2014-12-12 Richard Biener <rguenther@suse.de>
PR middle-end/64280
* tree-cfg.c (replace_uses_by): Guard assert properly.
* g++.dg/torture/pr64280.C: New testcase.
Added:
trunk/gcc/testsuite/g++.dg/torture/pr64280.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-cfg.c
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/64280] [5 Regression] ICE in replace_uses_by, at tree-cfg.c:1789
2014-12-12 10:02 [Bug tree-optimization/64280] New: [5 Regression] ICE in replace_uses_by, at tree-cfg.c:1789 rguenth at gcc dot gnu.org
` (2 preceding siblings ...)
2014-12-12 10:32 ` rguenth at gcc dot gnu.org
@ 2014-12-12 13:26 ` rguenth at gcc dot gnu.org
2014-12-12 13:26 ` rguenth at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-12-12 13:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64280
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-12-12 13:26 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-12 10:02 [Bug tree-optimization/64280] New: [5 Regression] ICE in replace_uses_by, at tree-cfg.c:1789 rguenth at gcc dot gnu.org
2014-12-12 10:03 ` [Bug tree-optimization/64280] " rguenth at gcc dot gnu.org
2014-12-12 10:19 ` trippels at gcc dot gnu.org
2014-12-12 10:32 ` rguenth at gcc dot gnu.org
2014-12-12 13:26 ` rguenth at gcc dot gnu.org
2014-12-12 13:26 ` rguenth 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).