public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Call reg_scan after if_convert
@ 2002-10-29  5:33 Hartmut Penner
  0 siblings, 0 replies; only message in thread
From: Hartmut Penner @ 2002-10-29  5:33 UTC (permalink / raw)
  To: gcc-patches

Hello,
             on s390x got a segmentation fault in init_alias_analysis, when
compiling
2000314-1.c with -O1. Looks like if_convert generates new register, and
there
is no reg_scan call between if_convert and life_analysis in toplev, if
compiling with -O1.
Fix is to call reg_scan after if_convert call.

Bootstrapped/regtest on s390x-ibm-linux

Ok to commit?

Changelog:
      * toplev.c (rest_of_compilation): Call reg_rescan after if_convert.

Index: toplev.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/toplev.c,v
retrieving revision 1.685
diff -c -p -r1.685 toplev.c
*** toplev.c             27 Oct 2002 09:14:03 -0000          1.685
--- toplev.c             29 Oct 2002 09:51:25 -0000
*************** rest_of_compilation (decl)
*** 3007,3012 ****
--- 3007,3014 ----
        cleanup_cfg (CLEANUP_EXPENSIVE);
        reg_scan (insns, max_reg_num (), 0);
        if_convert (0);
+       /* New registers have been created.  Rescan their usage.  */
+       reg_scan (insns, max_reg_num (), 0);
        close_dump_file (DFI_ce1, print_rtl_with_bb, get_insns ());
        timevar_pop (TV_IFCVT);
      }




Mit freundlichem Gruß / Best regards,

Hartmut Penner


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-10-29 13:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-29  5:33 [PATCH] Call reg_scan after if_convert Hartmut Penner

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