[Bug sanitizer/65583] [5 Regression][UBSAN] ICE segfault in inline_edge_summary

2015-03-27 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65583 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug sanitizer/65583] [5 Regression][UBSAN] ICE segfault in inline_edge_summary

2015-03-27 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65583 --- Comment #11 from Marek Polacek --- Author: mpolacek Date: Fri Mar 27 09:33:20 2015 New Revision: 221723 URL: https://gcc.gnu.org/viewcvs?rev=221723&root=gcc&view=rev Log: PR sanitizer/65583 * ubsan.c (ubsan_create_edge): New function

[Bug sanitizer/65583] [5 Regression][UBSAN] ICE segfault in inline_edge_summary

2015-03-26 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65583 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned a

[Bug sanitizer/65583] [5 Regression][UBSAN] ICE segfault in inline_edge_summary

2015-03-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65583 --- Comment #10 from Jakub Jelinek --- Or just teach ubsan pass to add cgraph edges for the calls it adds (I believe it doesn't remove any calls, just adds them). Guess that should be cheaper than scheduling another rebuild_cgraph_edges pass.

[Bug sanitizer/65583] [5 Regression][UBSAN] ICE segfault in inline_edge_summary

2015-03-26 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65583 --- Comment #9 from Marek Polacek --- (In reply to Jakub Jelinek from comment #8) > So, can you try to schedule another > NEXT_PASS (pass_rebuild_cgraph_edges); > right after ubsan pass if that fixes it? > And then move that right before ubsan

[Bug sanitizer/65583] [5 Regression][UBSAN] ICE segfault in inline_edge_summary

2015-03-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65583 --- Comment #8 from Jakub Jelinek --- So, can you try to schedule another NEXT_PASS (pass_rebuild_cgraph_edges); right after ubsan pass if that fixes it? And then move that right before ubsan and see if it is broken again?

[Bug sanitizer/65583] [5 Regression][UBSAN] ICE segfault in inline_edge_summary

2015-03-26 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65583 --- Comment #7 from Marek Polacek --- OK, that was clearly bogus. The "Discover nothorow functions before into_ssa" doesn't fix it.

[Bug sanitizer/65583] [5 Regression][UBSAN] ICE segfault in inline_edge_summary

2015-03-26 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65583 --- Comment #6 from Richard Biener --- Well, pass_local_optimization_passes immediately runs NEXT_PASS (pass_fixup_cfg); NEXT_PASS (pass_rebuild_cgraph_edges); which should be the only effect of pass_chkp_instrumentation_passes for

[Bug sanitizer/65583] [5 Regression][UBSAN] ICE segfault in inline_edge_summary

2015-03-26 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65583 --- Comment #5 from Richard Biener --- Does Honzas patch "Discover nothorow functions before into_ssa" fix it?

[Bug sanitizer/65583] [5 Regression][UBSAN] ICE segfault in inline_edge_summary

2015-03-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65583 --- Comment #4 from Jakub Jelinek --- Well, running the chkp pass queue for the sanitization doesn't make any sense. So, most likely the problem is that ubsan pass? doesn't update cgraph edges or something similar and with the removal of the chkp

[Bug sanitizer/65583] [5 Regression][UBSAN] ICE segfault in inline_edge_summary

2015-03-26 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65583 --- Comment #3 from Richard Biener --- Doesn't make sense to me.

[Bug sanitizer/65583] [5 Regression][UBSAN] ICE segfault in inline_edge_summary

2015-03-26 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65583 --- Comment #2 from Marek Polacek --- Started with r221660, the following seems to fix it: --- a/gcc/passes.c +++ b/gcc/passes.c @@ -425,7 +425,7 @@ public: virtual bool gate (function *) { /* Don't bother doing anything if the pr

[Bug sanitizer/65583] [5 Regression][UBSAN] ICE segfault in inline_edge_summary

2015-03-26 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65583 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|