public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Fix -fdump-rtl-ira segfault
@ 2012-01-17 12:59 Andreas Krebbel
  2012-01-17 13:13 ` Richard Guenther
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Krebbel @ 2012-01-17 12:59 UTC (permalink / raw)
  To: gcc-patches

Hi,

-fdump-rtl-ira currently segfaults on s390 if not also a reload dump
is requested.  The problem is that the ira_dump_file variable during
reload still points to the ira dump file although the file has already
been closed by the pass manager already.

Ok for mainline?

Bye,

-Andreas-


2012-01-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* ira.c (do_reload): Make sure ira_dump_file is re-set if no
	reload dump is requested.

---
 gcc/ira.c |    2 !!
 1 file changed, 2 modifications(!)

Index: gcc/ira.c
===================================================================
*** gcc/ira.c.orig
--- gcc/ira.c
*************** do_reload (void)
*** 3722,3728 ****
    basic_block bb;
    bool need_dce;
  
!   if (flag_ira_verbose < 10 && dump_file)
      ira_dump_file = dump_file;
  
    df_set_flags (DF_NO_INSN_RESCAN);
--- 3722,3728 ----
    basic_block bb;
    bool need_dce;
  
!   if (flag_ira_verbose < 10)
      ira_dump_file = dump_file;
  
    df_set_flags (DF_NO_INSN_RESCAN);

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

* Re: [PATCH] Fix -fdump-rtl-ira segfault
  2012-01-17 12:59 [PATCH] Fix -fdump-rtl-ira segfault Andreas Krebbel
@ 2012-01-17 13:13 ` Richard Guenther
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Guenther @ 2012-01-17 13:13 UTC (permalink / raw)
  To: Andreas Krebbel; +Cc: gcc-patches

On Tue, Jan 17, 2012 at 1:58 PM, Andreas Krebbel
<krebbel@linux.vnet.ibm.com> wrote:
> Hi,
>
> -fdump-rtl-ira currently segfaults on s390 if not also a reload dump
> is requested.  The problem is that the ira_dump_file variable during
> reload still points to the ira dump file although the file has already
> been closed by the pass manager already.
>
> Ok for mainline?

Looks obvious.

Richard.

> Bye,
>
> -Andreas-
>
>
> 2012-01-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
>
>        * ira.c (do_reload): Make sure ira_dump_file is re-set if no
>        reload dump is requested.
>
> ---
>  gcc/ira.c |    2 !!
>  1 file changed, 2 modifications(!)
>
> Index: gcc/ira.c
> ===================================================================
> *** gcc/ira.c.orig
> --- gcc/ira.c
> *************** do_reload (void)
> *** 3722,3728 ****
>    basic_block bb;
>    bool need_dce;
>
> !   if (flag_ira_verbose < 10 && dump_file)
>      ira_dump_file = dump_file;
>
>    df_set_flags (DF_NO_INSN_RESCAN);
> --- 3722,3728 ----
>    basic_block bb;
>    bool need_dce;
>
> !   if (flag_ira_verbose < 10)
>      ira_dump_file = dump_file;
>
>    df_set_flags (DF_NO_INSN_RESCAN);
>

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

end of thread, other threads:[~2012-01-17 13:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-17 12:59 [PATCH] Fix -fdump-rtl-ira segfault Andreas Krebbel
2012-01-17 13:13 ` Richard Guenther

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