This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/84746] [8 Regression] ICE on valid code at -O2 and -O3: Segmentation fault


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84746

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P2
      Known to work|                            |8.0
   Target Milestone|8.0                         |7.4
            Summary|[8 Regression] ICE on valid |[7 Regression] ICE on valid
                   |code at -O2 and -O3:        |code at -O2 and -O3:
                   |Segmentation fault          |Segmentation fault
           Priority|P2                          |P1
      Known to work|8.0                         |
   Target Milestone|7.4                         |8.0
            Summary|[7 Regression] ICE on valid |[8 Regression] ICE on valid
                   |code at -O2 and -O3:        |code at -O2 and -O3:
                   |Segmentation fault          |Segmentation fault

--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed on trunk, I'm eventually going to backport a variant of this.

--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Thu Mar  8 09:23:44 2018
New Revision: 258361

URL: https://gcc.gnu.org/viewcvs?rev=258361&root=gcc&view=rev
Log:
2018-03-08  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/84746
        * tree-ssa-pre.c (find_leader_in_sets): Deal with SET1 being NULL.
        (phi_translate): Pass in destination ANTIC_OUT set.
        (phi_translate_1): Likewise.  For a simplified result lookup
        a leader in ANTIC_OUT and AVAIL_OUT, not the ANTIC_IN sets.
        (phi_translate_set): Adjust.
        (do_pre_regular_insertion): Likewise.
        (do_pre_partial_partial_insertion): Likewise.

        * gcc.dg/torture/pr84746.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr84746.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-pre.c

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]