[Bug tree-optimization/114624] [14 Regression] ICE on valid code at -O3 on x86_64-linux-gnu: Segmentation fault

2024-04-08 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114624

Richard Biener  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|ASSIGNED|RESOLVED

--- Comment #5 from Richard Biener  ---
Fixed.

[Bug tree-optimization/114624] [14 Regression] ICE on valid code at -O3 on x86_64-linux-gnu: Segmentation fault

2024-04-08 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114624

--- Comment #4 from GCC Commits  ---
The master branch has been updated by Richard Biener :

https://gcc.gnu.org/g:97d5cd8740384dbce5a83080916388f80d8976dd

commit r14-9829-g97d5cd8740384dbce5a83080916388f80d8976dd
Author: Richard Biener 
Date:   Mon Apr 8 10:38:49 2024 +0200

tree-optimization/114624 - fix use-after-free in SCCP

We're inspecting the replaced PHI node after releasing it.

PR tree-optimization/114624
* tree-scalar-evolution.cc (final_value_replacement_loop):
Get at the PHI arg location before releasing the PHI node.

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

[Bug tree-optimization/114624] [14 Regression] ICE on valid code at -O3 on x86_64-linux-gnu: Segmentation fault

2024-04-08 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114624

Richard Biener  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
   Assignee|unassigned at gcc dot gnu.org  |rguenth at gcc dot 
gnu.org

--- Comment #3 from Richard Biener  ---
I will have a look.

[Bug tree-optimization/114624] [14 Regression] ICE on valid code at -O3 on x86_64-linux-gnu: Segmentation fault

2024-04-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114624

Andrew Pinski  changed:

   What|Removed |Added

   Keywords|ice-checking|

--- Comment #2 from Andrew Pinski  ---
Removing `ice-checking` because you can get it to crash even without checking
enabled.

[Bug tree-optimization/114624] [14 Regression] ICE on valid code at -O3 on x86_64-linux-gnu: Segmentation fault

2024-04-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114624

Andrew Pinski  changed:

   What|Removed |Added

 Ever confirmed|0   |1
   Last reconfirmed||2024-04-07
 Status|UNCONFIRMED |NEW

--- Comment #1 from Andrew Pinski  ---
Confirmed. It does not ICE with `-fno-checking` but does also ICE with
`-fdump-tree-sccp-lineno` too; it also crashes with -g (though later on).


I think it is crashing on:
```
d_9 = d_30;

```

statement.

[Bug tree-optimization/114624] [14 Regression] ICE on valid code at -O3 on x86_64-linux-gnu: Segmentation fault

2024-04-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114624

Andrew Pinski  changed:

   What|Removed |Added

Summary|ICE on valid code at -O3 on |[14 Regression] ICE on
   |x86_64-linux-gnu:   |valid code at -O3 on
   |Segmentation fault  |x86_64-linux-gnu:
   ||Segmentation fault
   Keywords||needs-bisection
   Target Milestone|--- |14.0
Version|unknown |14.0
  Component|middle-end  |tree-optimization