public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug rtl-optimization/49800] New: segfault with -fsched-pressure -fdump-rtl-sched1 @ 2011-07-21 8:22 krebbel at gcc dot gnu.org 2012-02-02 8:54 ` [Bug rtl-optimization/49800] [4.7 Regression] " pinskia at gcc dot gnu.org ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: krebbel at gcc dot gnu.org @ 2011-07-21 8:22 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49800 Summary: segfault with -fsched-pressure -fdump-rtl-sched1 Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization AssignedTo: unassigned@gcc.gnu.org ReportedBy: krebbel@gcc.gnu.org t.c: void foo (int a) { } /home/andreas/clean/gcc-head-build/gcc/cc1 -O2 -fdump-rtl-sched1 -fsched-pressure -quiet t.c Program received signal SIGSEGV, Segmentation fault. print_pseudo_costs (f=0x80cc9340) at /home/andreas/clean/gcc-head/gcc/ira-costs.c:1404 1404 if (REG_N_REFS (regno) <= 0) #0 print_pseudo_costs (f=0x80cc9340) at /home/andreas/clean/gcc-head/gcc/ira-costs.c:1404 #1 find_costs_and_classes (dump_file=0x80cc9340) at /home/andreas/clean/gcc-head/gcc/ira-costs.c:1770 #2 0x00000000803edf9e in ira_set_pseudo_classes (dump_file=0x80cc9340) at /home/andreas/clean/gcc-head/gcc/ira-costs.c:2031 #3 0x000000008085cda8 in sched_init () at /home/andreas/clean/gcc-head/gcc/haifa-sched.c:4250 #4 0x00000000808654f4 in haifa_sched_init () at /home/andreas/clean/gcc-head/gcc/haifa-sched.c:4273 #5 0x00000000804dcbca in schedule_insns () at /home/andreas/clean/gcc-head/gcc/sched-rgn.c:3299 #6 schedule_insns () at /home/andreas/clean/gcc-head/gcc/sched-rgn.c:3287 #7 0x00000000804dd4ce in rest_of_handle_sched () at /home/andreas/clean/gcc-head/gcc/sched-rgn.c:3501 (gdb) p regstat_n_sets_and_refs $1 = (regstat_n_sets_and_refs_t *) 0x0 regstat_n_sets_and_refs is not initialized when sched-pressure perhaps invoking regstat_init_n_sets_and_refs in sched_init is needed? This worked with 4.6. The check in print_pseudo_costs was: for (regno = max_reg_num () - 1; regno >= FIRST_PSEUDO_REGISTER; regno--) { if (regno_reg_rtx[regno] == NULL_RTX) continue; and has been changed to: for (regno = max_reg_num () - 1; regno >= FIRST_PSEUDO_REGISTER; regno--) { if (REG_N_REFS (regno) <= 0) continue; ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug rtl-optimization/49800] [4.7 Regression] segfault with -fsched-pressure -fdump-rtl-sched1 2011-07-21 8:22 [Bug rtl-optimization/49800] New: segfault with -fsched-pressure -fdump-rtl-sched1 krebbel at gcc dot gnu.org @ 2012-02-02 8:54 ` pinskia at gcc dot gnu.org 2012-02-02 8:59 ` krebbel at gcc dot gnu.org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu.org @ 2012-02-02 8:54 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49800 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|segfault with |[4.7 Regression] segfault |-fsched-pressure |with -fsched-pressure |-fdump-rtl-sched1 |-fdump-rtl-sched1 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-02-02 08:53:43 UTC --- Does this still fail? ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug rtl-optimization/49800] [4.7 Regression] segfault with -fsched-pressure -fdump-rtl-sched1 2011-07-21 8:22 [Bug rtl-optimization/49800] New: segfault with -fsched-pressure -fdump-rtl-sched1 krebbel at gcc dot gnu.org 2012-02-02 8:54 ` [Bug rtl-optimization/49800] [4.7 Regression] " pinskia at gcc dot gnu.org @ 2012-02-02 8:59 ` krebbel at gcc dot gnu.org 2012-02-02 18:34 ` vmakarov at redhat dot com ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: krebbel at gcc dot gnu.org @ 2012-02-02 8:59 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49800 --- Comment #2 from Andreas Krebbel <krebbel at gcc dot gnu.org> 2012-02-02 08:58:57 UTC --- (In reply to comment #1) > Does this still fail? Still fails with r183790. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug rtl-optimization/49800] [4.7 Regression] segfault with -fsched-pressure -fdump-rtl-sched1 2011-07-21 8:22 [Bug rtl-optimization/49800] New: segfault with -fsched-pressure -fdump-rtl-sched1 krebbel at gcc dot gnu.org 2012-02-02 8:54 ` [Bug rtl-optimization/49800] [4.7 Regression] " pinskia at gcc dot gnu.org 2012-02-02 8:59 ` krebbel at gcc dot gnu.org @ 2012-02-02 18:34 ` vmakarov at redhat dot com 2012-02-02 19:46 ` vmakarov at gcc dot gnu.org 2012-02-02 20:03 ` pinskia at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: vmakarov at redhat dot com @ 2012-02-02 18:34 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49800 --- Comment #3 from Vladimir Makarov <vmakarov at redhat dot com> 2012-02-02 18:33:34 UTC --- I am working on it. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug rtl-optimization/49800] [4.7 Regression] segfault with -fsched-pressure -fdump-rtl-sched1 2011-07-21 8:22 [Bug rtl-optimization/49800] New: segfault with -fsched-pressure -fdump-rtl-sched1 krebbel at gcc dot gnu.org ` (2 preceding siblings ...) 2012-02-02 18:34 ` vmakarov at redhat dot com @ 2012-02-02 19:46 ` vmakarov at gcc dot gnu.org 2012-02-02 20:03 ` pinskia at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: vmakarov at gcc dot gnu.org @ 2012-02-02 19:46 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49800 --- Comment #4 from Vladimir Makarov <vmakarov at gcc dot gnu.org> 2012-02-02 19:45:09 UTC --- Author: vmakarov Date: Thu Feb 2 19:45:04 2012 New Revision: 183843 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183843 Log: 2012-02-02 Vladimir Makarov <vmakarov@redhat.com> PR rtl-optimization/49800 * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs. (sched_finish): Call regstat_free_n_sets_and_refs. Modified: trunk/gcc/ChangeLog trunk/gcc/haifa-sched.c ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug rtl-optimization/49800] [4.7 Regression] segfault with -fsched-pressure -fdump-rtl-sched1 2011-07-21 8:22 [Bug rtl-optimization/49800] New: segfault with -fsched-pressure -fdump-rtl-sched1 krebbel at gcc dot gnu.org ` (3 preceding siblings ...) 2012-02-02 19:46 ` vmakarov at gcc dot gnu.org @ 2012-02-02 20:03 ` pinskia at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu.org @ 2012-02-02 20:03 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49800 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED Target Milestone|--- |4.7.0 --- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-02-02 20:03:08 UTC --- Fixed. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-02-02 20:03 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2011-07-21 8:22 [Bug rtl-optimization/49800] New: segfault with -fsched-pressure -fdump-rtl-sched1 krebbel at gcc dot gnu.org 2012-02-02 8:54 ` [Bug rtl-optimization/49800] [4.7 Regression] " pinskia at gcc dot gnu.org 2012-02-02 8:59 ` krebbel at gcc dot gnu.org 2012-02-02 18:34 ` vmakarov at redhat dot com 2012-02-02 19:46 ` vmakarov at gcc dot gnu.org 2012-02-02 20:03 ` pinskia 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).